106 "-a",
107 "--all",
108 action="store_true",
109 help="Whether all optimal/intermediate solutions should be returned (only intermediate works)",110 )
111 parser.add_argument(
112 "-t",
21HEADERS = {"X-Api-Key": os.getenv("API_KEY")}
22SOLVER_NAME = os.getenv("SOLVER_IMAGE")
23
24test_problem = "int: i; array[1..2] of var 0..i: x; constraint x[1] < i /\ x[2] < i; solve :: int_search( x, input_order, indomain_min ) maximize x[1] + x[2];" 25test_data = "i = 1000000;"
26test_solvers = ["gecode", "chuffed", "or-tools"]
27test_objective = True
94 command=["bash"],
95 args=[
96 "-c",
97 f'echo "{base64.b64encode(problem.encode("utf8")).decode("ascii")}" > /input/model.b64.mzn && echo "{base64.b64encode(data.encode("utf8")).decode("ascii")}" > /input/data.b64.dzn', 98 ],
99 volume_mounts=[client.V1VolumeMount(mount_path="/input", name="input")],
100 )
220
221class DBHandler(object):
222 """
223 A simple singleton class that makes sure that only one connection to the database is ever initialised.224 """
225
226 def __new__(cls):
72 HTTPException: Incorrect username or password
73
74 Returns:
75 dict: A dictionary telling if the login attempt was successful, as well as an included 76 access token and token_type
77 """
78 user = select(u for u in User if u.username == form_data.username)[:]
Line length greater than configured max_line_length
detected, defaults to 79 character. This limit can be configured docs