project_name
string
class_name
string
class_modifiers
string
class_implements
int64
class_extends
int64
function_name
string
function_body
string
cyclomatic_complexity
int64
NLOC
int64
num_parameter
int64
num_token
int64
num_variable
int64
start_line
int64
end_line
int64
function_index
int64
function_params
string
function_variable
string
function_return_type
string
function_body_line_type
string
function_num_functions
int64
function_num_lines
int64
outgoing_function_count
int64
outgoing_function_names
string
incoming_function_count
int64
incoming_function_names
string
lexical_representation
string
aws-deadline_deadline-cloud
TestTypeValidationAndConversion
public
0
0
test_float_parameter_validation_valid_values
def test_float_parameter_validation_valid_values(self,job_parameter: parameters.JobParameter,input_value: Union[int, float, str],expected_output: float,) -> None:"""Test that valid FLOAT parameter values and conversions work correctly."""result = parameters.validate_job_parameter_value(job_parameter, input_value)assert...
1
9
4
51
0
236
245
236
self,job_parameter,input_value,expected_output
[]
None
{"Assign": 1, "Expr": 1}
11
10
11
["parameters.validate_job_parameter_value", "isinstance", "pytest.mark.parametrize", "pytest.param", "pytest.param", "pytest.param", "pytest.param", "pytest.param", "pytest.param", "pytest.param", "pytest.param"]
0
[]
The function (test_float_parameter_validation_valid_values) defined within the public class called TestTypeValidationAndConversion.The function start at line 236 and ends at 245. It contains 9 lines of code and it has a cyclomatic complexity of 1. It takes 4 parameters, represented as [236.0] and does not return any va...
aws-deadline_deadline-cloud
TestTypeValidationAndConversion
public
0
0
test_float_parameter_validation_conversion_errors
def test_float_parameter_validation_conversion_errors(self, job_parameter: parameters.JobParameter, input_value: Any, expected_error_pattern: str) -> None:"""Test that FLOAT parameters raise ValueError for non-convertible values."""with pytest.raises((ValueError, TypeError), match=expected_error_pattern):parameters.val...
1
5
4
46
0
282
287
282
self,job_parameter,input_value,expected_error_pattern
[]
None
{"Expr": 2, "With": 1}
8
6
8
["pytest.raises", "parameters.validate_job_parameter_value", "pytest.mark.parametrize", "pytest.param", "pytest.param", "pytest.param", "pytest.param", "pytest.param"]
0
[]
The function (test_float_parameter_validation_conversion_errors) defined within the public class called TestTypeValidationAndConversion.The function start at line 282 and ends at 287. It contains 5 lines of code and it has a cyclomatic complexity of 1. It takes 4 parameters, represented as [282.0] and does not return a...
aws-deadline_deadline-cloud
TestTypeValidationAndConversion
public
0
0
test_unsupported_type_error
def test_unsupported_type_error(self) -> None:"""Test that an incorrect type in the type definition raises a TypeError."""with pytest.raises(TypeError,match="The definition for job parameter 'test_param' has unsupported type 'UNSUPPORTED'",):job_parameter: parameters.JobParameter = {"name": "test_param","type": "UNSUPP...
1
10
1
45
0
289
299
289
self
[]
None
{"AnnAssign": 1, "Expr": 2, "With": 1}
2
11
2
["pytest.raises", "parameters.validate_job_parameter_value"]
0
[]
The function (test_unsupported_type_error) defined within the public class called TestTypeValidationAndConversion.The function start at line 289 and ends at 299. It contains 10 lines of code and it has a cyclomatic complexity of 1. The function does not take any parameters and does not return any value. It declares 2.0...
aws-deadline_deadline-cloud
TestConstraintValidation
public
0
0
test_length_constraints_valid_values
def test_length_constraints_valid_values(self, job_parameter: parameters.JobParameter, input_value: str, expected_output: str) -> None:"""Test that STRING/PATH parameters with length constraints accept valid values."""result = parameters.validate_job_parameter_value(job_parameter, input_value)assert result == expected_...
1
6
4
43
0
345
351
345
self,job_parameter,input_value,expected_output
[]
None
{"Assign": 1, "Expr": 1}
11
7
11
["parameters.validate_job_parameter_value", "isinstance", "pytest.mark.parametrize", "pytest.param", "pytest.param", "pytest.param", "pytest.param", "pytest.param", "pytest.param", "pytest.param", "pytest.param"]
0
[]
The function (test_length_constraints_valid_values) defined within the public class called TestConstraintValidation.The function start at line 345 and ends at 351. It contains 6 lines of code and it has a cyclomatic complexity of 1. It takes 4 parameters, represented as [345.0] and does not return any value. It declare...
aws-deadline_deadline-cloud
TestConstraintValidation
public
0
0
test_length_constraints_violation_errors
def test_length_constraints_violation_errors(self, job_parameter: parameters.JobParameter, input_value: str, expected_error_pattern: str) -> None:"""Test that STRING/PATH parameters raise ValueError for length constraint violations."""with pytest.raises(ValueError, match=expected_error_pattern):parameters.validate_job_...
1
5
4
42
0
403
408
403
self,job_parameter,input_value,expected_error_pattern
[]
None
{"Expr": 2, "With": 1}
10
6
10
["pytest.raises", "parameters.validate_job_parameter_value", "pytest.mark.parametrize", "pytest.param", "pytest.param", "pytest.param", "pytest.param", "pytest.param", "pytest.param", "pytest.param"]
0
[]
The function (test_length_constraints_violation_errors) defined within the public class called TestConstraintValidation.The function start at line 403 and ends at 408. It contains 5 lines of code and it has a cyclomatic complexity of 1. It takes 4 parameters, represented as [403.0] and does not return any value. It dec...
aws-deadline_deadline-cloud
TestConstraintValidation
public
0
0
test_value_constraints_valid_values
def test_value_constraints_valid_values(self,job_parameter: parameters.JobParameter,input_value: Union[str, int, float],expected_output: Union[int, float],) -> None:"""Test that parameters with value constraints accept valid values."""result = parameters.validate_job_parameter_value(job_parameter, input_value)assert re...
1
9
4
59
0
436
445
436
self,job_parameter,input_value,expected_output
[]
None
{"Assign": 1, "Expr": 1}
17
10
17
["parameters.validate_job_parameter_value", "type", "type", "pytest.mark.parametrize", "pytest.param", "pytest.param", "pytest.param", "pytest.param", "pytest.param", "pytest.param", "pytest.param", "pytest.param", "pytest.param", "pytest.param", "pytest.param", "pytest.param", "pytest.param"]
0
[]
The function (test_value_constraints_valid_values) defined within the public class called TestConstraintValidation.The function start at line 436 and ends at 445. It contains 9 lines of code and it has a cyclomatic complexity of 1. It takes 4 parameters, represented as [436.0] and does not return any value. It declares...
aws-deadline_deadline-cloud
TestConstraintValidation
public
0
0
test_value_constraints_violation_errors
def test_value_constraints_violation_errors(self,job_parameter: parameters.JobParameter,input_value: Union[str, int, float],expected_error_pattern: str,) -> None:"""Test that parameters raise ValueError for value constraint violations."""with pytest.raises(ValueError, match=expected_error_pattern):parameters.validate_j...
1
8
4
50
0
508
516
508
self,job_parameter,input_value,expected_error_pattern
[]
None
{"Expr": 2, "With": 1}
12
9
12
["pytest.raises", "parameters.validate_job_parameter_value", "pytest.mark.parametrize", "pytest.param", "pytest.param", "pytest.param", "pytest.param", "pytest.param", "pytest.param", "pytest.param", "pytest.param", "pytest.param"]
0
[]
The function (test_value_constraints_violation_errors) defined within the public class called TestConstraintValidation.The function start at line 508 and ends at 516. It contains 8 lines of code and it has a cyclomatic complexity of 1. It takes 4 parameters, represented as [508.0] and does not return any value. It decl...
aws-deadline_deadline-cloud
TestConstraintValidation
public
0
0
test_allowed_values_constraint_valid_values
def test_allowed_values_constraint_valid_values(self,job_parameter: parameters.JobParameter,input_value: Union[str, int, float],expected_output: Union[str, int, float],) -> None:"""Test that parameters with allowedValues constraints accept valid values."""result = parameters.validate_job_parameter_value(job_parameter, ...
1
9
4
61
0
591
600
591
self,job_parameter,input_value,expected_output
[]
None
{"Assign": 1, "Expr": 1}
15
10
15
["parameters.validate_job_parameter_value", "type", "type", "pytest.mark.parametrize", "pytest.param", "pytest.param", "pytest.param", "pytest.param", "pytest.param", "pytest.param", "pytest.param", "pytest.param", "pytest.param", "pytest.param", "pytest.param"]
0
[]
The function (test_allowed_values_constraint_valid_values) defined within the public class called TestConstraintValidation.The function start at line 591 and ends at 600. It contains 9 lines of code and it has a cyclomatic complexity of 1. It takes 4 parameters, represented as [591.0] and does not return any value. It ...
aws-deadline_deadline-cloud
TestConstraintValidation
public
0
0
test_allowed_values_constraint_violation_errors
def test_allowed_values_constraint_violation_errors(self,job_parameter: parameters.JobParameter,input_value: Union[str, int, float],expected_error_pattern: str,) -> None:"""Test that parameters raise ValueError for allowedValues constraint violations."""with pytest.raises(ValueError, match=expected_error_pattern):param...
1
8
4
50
0
687
695
687
self,job_parameter,input_value,expected_error_pattern
[]
None
{"Expr": 2, "With": 1}
13
9
13
["pytest.raises", "parameters.validate_job_parameter_value", "pytest.mark.parametrize", "pytest.param", "pytest.param", "pytest.param", "pytest.param", "pytest.param", "pytest.param", "pytest.param", "pytest.param", "pytest.param", "pytest.param"]
0
[]
The function (test_allowed_values_constraint_violation_errors) defined within the public class called TestConstraintValidation.The function start at line 687 and ends at 695. It contains 8 lines of code and it has a cyclomatic complexity of 1. It takes 4 parameters, represented as [687.0] and does not return any value....
aws-deadline_deadline-cloud
TestConstraintValidation
public
0
0
test_multiple_constraints_valid_values
def test_multiple_constraints_valid_values(self,job_parameter: parameters.JobParameter,input_value: Union[str, int, float],expected_output: Union[str, int, float],) -> None:"""Test that parameters with multiple constraints accept values that satisfy all constraints."""result = parameters.validate_job_parameter_value(jo...
1
9
4
61
0
808
817
808
self,job_parameter,input_value,expected_output
[]
None
{"Assign": 1, "Expr": 1}
14
10
14
["parameters.validate_job_parameter_value", "type", "type", "pytest.mark.parametrize", "pytest.param", "pytest.param", "pytest.param", "pytest.param", "pytest.param", "pytest.param", "pytest.param", "pytest.param", "pytest.param", "pytest.param"]
0
[]
The function (test_multiple_constraints_valid_values) defined within the public class called TestConstraintValidation.The function start at line 808 and ends at 817. It contains 9 lines of code and it has a cyclomatic complexity of 1. It takes 4 parameters, represented as [808.0] and does not return any value. It decla...
aws-deadline_deadline-cloud
TestConstraintValidation
public
0
0
test_multiple_constraints_violation_errors
def test_multiple_constraints_violation_errors(self,job_parameter: parameters.JobParameter,input_value: Union[str, int, float],expected_error_pattern: str,) -> None:"""Test that parameters with multiple constraints raise ValueError when any constraint is violated."""with pytest.raises(ValueError, match=expected_error_p...
1
8
4
50
0
935
943
935
self,job_parameter,input_value,expected_error_pattern
[]
None
{"Expr": 2, "With": 1}
13
9
13
["pytest.raises", "parameters.validate_job_parameter_value", "pytest.mark.parametrize", "pytest.param", "pytest.param", "pytest.param", "pytest.param", "pytest.param", "pytest.param", "pytest.param", "pytest.param", "pytest.param", "pytest.param"]
0
[]
The function (test_multiple_constraints_violation_errors) defined within the public class called TestConstraintValidation.The function start at line 935 and ends at 943. It contains 8 lines of code and it has a cyclomatic complexity of 1. It takes 4 parameters, represented as [935.0] and does not return any value. It d...
aws-deadline_deadline-cloud
public
public
0
0
valid_control
def valid_control(request: pytest.FixtureRequest) -> str:return request.param
1
2
1
15
0
37
38
37
request
[]
str
{"Return": 1}
1
2
1
["pytest.fixture"]
0
[]
The function (valid_control) defined within the public class called public.The function start at line 37 and ends at 38. It contains 2 lines of code and it has a cyclomatic complexity of 1. The function does not take any parameters and does not return any value. It declare 1.0 function, and It has 1.0 function called ...
aws-deadline_deadline-cloud
public
public
0
0
valid_label
def valid_label() -> str:return "alabel"
1
2
0
8
0
42
43
42
[]
str
{"Return": 1}
0
2
0
[]
0
[]
The function (valid_label) defined within the public class called public.The function start at line 42 and ends at 43. It contains 2 lines of code and it has a cyclomatic complexity of 1. The function does not take any parameters and does not return any value..
aws-deadline_deadline-cloud
public
public
0
0
valid_group_label
def valid_group_label() -> str:return "agrouplabel"
1
2
0
8
0
47
48
47
[]
str
{"Return": 1}
0
2
0
[]
0
[]
The function (valid_group_label) defined within the public class called public.The function start at line 47 and ends at 48. It contains 2 lines of code and it has a cyclomatic complexity of 1. The function does not take any parameters and does not return any value..
aws-deadline_deadline-cloud
public
public
0
0
valid_decimal
def valid_decimal() -> int:return 1
1
2
0
8
0
52
53
52
[]
int
{"Return": 1}
0
2
0
[]
0
[]
The function (valid_decimal) defined within the public class called public.The function start at line 52 and ends at 53. It contains 2 lines of code and it has a cyclomatic complexity of 1. The function does not take any parameters and does not return any value..
aws-deadline_deadline-cloud
public
public
0
0
valid_single_step_delta
def valid_single_step_delta() -> float:return 1.5
1
2
0
10
0
57
58
57
[]
float
{"Return": 1}
0
2
0
[]
0
[]
The function (valid_single_step_delta) defined within the public class called public.The function start at line 57 and ends at 58. It contains 2 lines of code and it has a cyclomatic complexity of 1. The function does not take any parameters and does not return any value..
aws-deadline_deadline-cloud
public
public
0
0
parameter_name
def parameter_name() -> str:return "myparam"
1
2
0
8
0
62
63
62
[]
str
{"Return": 1}
0
2
0
[]
0
[]
The function (parameter_name) defined within the public class called public.The function start at line 62 and ends at 63. It contains 2 lines of code and it has a cyclomatic complexity of 1. The function does not take any parameters and does not return any value..
aws-deadline_deadline-cloud
public
public
0
0
valid_user_interface_spec
def valid_user_interface_spec(valid_control: str,valid_label: str,valid_group_label: str,valid_decimal: int,valid_single_step_delta: float,) -> parameters.UserInterfaceSpec:return {"control": valid_control,"label": valid_label,"groupLabel": valid_group_label,"decimal": valid_decimal,"singleStepDelta": valid_single_step...
1
14
5
51
0
67
80
67
valid_control,valid_label,valid_group_label,valid_decimal,valid_single_step_delta
[]
parameters.UserInterfaceSpec
{"Return": 1}
0
14
0
[]
0
[]
The function (valid_user_interface_spec) defined within the public class called public.The function start at line 67 and ends at 80. It contains 14 lines of code and it has a cyclomatic complexity of 1. It takes 5 parameters, represented as [67.0] and does not return any value..
aws-deadline_deadline-cloud
public
public
0
0
test_validate_user_interface_spec_valid
def test_validate_user_interface_spec_valid(valid_user_interface_spec: parameters.UserInterfaceSpec,parameter_name: str,) -> None:"""Tests that when calling validate_user_interface_spec with a valid user interface specthat no exception is raised"""# WHENresult = parameters.validate_user_interface_spec(valid_user_interf...
1
9
2
34
1
83
96
83
valid_user_interface_spec,parameter_name
['result']
None
{"Assign": 1, "Expr": 1}
1
14
1
["parameters.validate_user_interface_spec"]
0
[]
The function (test_validate_user_interface_spec_valid) defined within the public class called public.The function start at line 83 and ends at 96. It contains 9 lines of code and it has a cyclomatic complexity of 1. It takes 2 parameters, represented as [83.0] and does not return any value. It declare 1.0 function, and...
aws-deadline_deadline-cloud
public
public
0
0
test_validate_user_interface_spec_valid_optional_missing
def test_validate_user_interface_spec_valid_optional_missing(valid_user_interface_spec: parameters.UserInterfaceSpec,field: str,parameter_name: str,) -> None:"""Tests that optional fields for the user interface are still valid when missing:- control- label- groupLabel- decimal- singleStepDelta"""# GIVENuser_interface_s...
1
11
3
54
1
109
130
109
valid_user_interface_spec,field,parameter_name
['user_interface_spec']
None
{"Assign": 1, "Expr": 2}
5
22
5
["cast", "valid_user_interface_spec.copy", "parameters.validate_user_interface_spec", "pytest.mark.parametrize", "pytest.mark.parametrize"]
0
[]
The function (test_validate_user_interface_spec_valid_optional_missing) defined within the public class called public.The function start at line 109 and ends at 130. It contains 11 lines of code and it has a cyclomatic complexity of 1. It takes 3 parameters, represented as [109.0] and does not return any value. It decl...
aws-deadline_deadline-cloud
public
public
0
0
test_validate_user_interface_spec_nonvalid_control_type.when
def when() -> None:parameters.validate_user_interface_spec(user_interface_spec,parameter_name=parameter_name,)
1
5
0
17
0
153
157
153
null
[]
None
null
0
0
0
null
0
null
The function (test_validate_user_interface_spec_nonvalid_control_type.when) defined within the public class called public.The function start at line 153 and ends at 157. It contains 5 lines of code and it has a cyclomatic complexity of 1. The function does not take any parameters and does not return any value..
aws-deadline_deadline-cloud
public
public
0
0
test_validate_user_interface_spec_nonvalid_control_type
def test_validate_user_interface_spec_nonvalid_control_type(control: Any,parameter_name: str,) -> None:"""Tests that passing a value with an nonvalid "control" value raises an exception"""# GIVENuser_interface_spec: dict = {"control": control}# WHENdef when() -> None:parameters.validate_user_interface_spec(user_interfa...
1
11
2
46
0
144
164
144
control,parameter_name
[]
None
{"AnnAssign": 1, "Expr": 4, "With": 1}
14
21
14
["parameters.validate_user_interface_spec", "pytest.raises", "when", "ctx.match", "re.escape", "re.escape", "str", "pytest.mark.parametrize", "pytest.param", "pytest.param", "pytest.param", "pytest.param", "pytest.param", "pytest.param"]
0
[]
The function (test_validate_user_interface_spec_nonvalid_control_type) defined within the public class called public.The function start at line 144 and ends at 164. It contains 11 lines of code and it has a cyclomatic complexity of 1. It takes 2 parameters, represented as [144.0] and does not return any value. It decla...
aws-deadline_deadline-cloud
public
public
0
0
test_validate_user_interface_spec_nonvalid_label_type.when
def when() -> None:parameters.validate_user_interface_spec(user_interface_spec,parameter_name=parameter_name,)
1
5
0
17
0
187
191
187
null
[]
None
null
0
0
0
null
0
null
The function (test_validate_user_interface_spec_nonvalid_label_type.when) defined within the public class called public.The function start at line 187 and ends at 191. It contains 5 lines of code and it has a cyclomatic complexity of 1. The function does not take any parameters and does not return any value..
aws-deadline_deadline-cloud
public
public
0
0
test_validate_user_interface_spec_nonvalid_label_type
def test_validate_user_interface_spec_nonvalid_label_type(label: Any,parameter_name: str,) -> None:"""Tests that passing a value with an nonvalid "label" value raises an exception"""# GIVENuser_interface_spec: dict = {"label": label}# WHENdef when() -> None:parameters.validate_user_interface_spec(user_interface_spec,pa...
1
12
2
51
0
178
199
178
label,parameter_name
[]
None
{"AnnAssign": 1, "Expr": 3, "With": 1}
12
22
12
["parameters.validate_user_interface_spec", "pytest.raises", "when", "str", "type", "pytest.mark.parametrize", "pytest.param", "pytest.param", "pytest.param", "pytest.param", "pytest.param", "pytest.param"]
0
[]
The function (test_validate_user_interface_spec_nonvalid_label_type) defined within the public class called public.The function start at line 178 and ends at 199. It contains 12 lines of code and it has a cyclomatic complexity of 1. It takes 2 parameters, represented as [178.0] and does not return any value. It declare...
aws-deadline_deadline-cloud
public
public
0
0
test_validate_user_interface_spec_nonvalid_group_label_type.when
def when() -> None:parameters.validate_user_interface_spec(user_interface_spec,parameter_name=parameter_name,)
1
5
0
17
0
222
226
222
null
[]
None
null
0
0
0
null
0
null
The function (test_validate_user_interface_spec_nonvalid_group_label_type.when) defined within the public class called public.The function start at line 222 and ends at 226. It contains 5 lines of code and it has a cyclomatic complexity of 1. The function does not take any parameters and does not return any value..
aws-deadline_deadline-cloud
public
public
0
0
test_validate_user_interface_spec_nonvalid_group_label_type
def test_validate_user_interface_spec_nonvalid_group_label_type(group_label: Any,parameter_name: str,) -> None:"""Tests that passing a value with an nonvalid "groupLabel" value raises an exception"""# GIVENuser_interface_spec: dict = {"groupLabel": group_label}# WHENdef when() -> None:parameters.validate_user_interface...
1
12
2
51
0
213
234
213
group_label,parameter_name
[]
None
{"AnnAssign": 1, "Expr": 3, "With": 1}
12
22
12
["parameters.validate_user_interface_spec", "pytest.raises", "when", "str", "type", "pytest.mark.parametrize", "pytest.param", "pytest.param", "pytest.param", "pytest.param", "pytest.param", "pytest.param"]
0
[]
The function (test_validate_user_interface_spec_nonvalid_group_label_type) defined within the public class called public.The function start at line 213 and ends at 234. It contains 12 lines of code and it has a cyclomatic complexity of 1. It takes 2 parameters, represented as [213.0] and does not return any value. It d...
aws-deadline_deadline-cloud
public
public
0
0
test_validate_user_interface_spec_nonvalid_decimals_type.when
def when() -> None:parameters.validate_user_interface_spec(user_interface_spec,parameter_name=parameter_name,)
1
5
0
17
0
257
261
257
null
[]
None
null
0
0
0
null
0
null
The function (test_validate_user_interface_spec_nonvalid_decimals_type.when) defined within the public class called public.The function start at line 257 and ends at 261. It contains 5 lines of code and it has a cyclomatic complexity of 1. The function does not take any parameters and does not return any value..
aws-deadline_deadline-cloud
public
public
0
0
test_validate_user_interface_spec_nonvalid_decimals_type
def test_validate_user_interface_spec_nonvalid_decimals_type(decimals: Any,parameter_name: str,) -> None:"""Tests that passing a value with an nonvalid "decimals" value raises an exception"""# GIVENuser_interface_spec: dict = {"decimals": decimals}# WHENdef when() -> None:parameters.validate_user_interface_spec(user_in...
1
12
2
51
0
248
269
248
decimals,parameter_name
[]
None
{"AnnAssign": 1, "Expr": 3, "With": 1}
12
22
12
["parameters.validate_user_interface_spec", "pytest.raises", "when", "str", "type", "pytest.mark.parametrize", "pytest.param", "pytest.param", "pytest.param", "pytest.param", "pytest.param", "pytest.param"]
0
[]
The function (test_validate_user_interface_spec_nonvalid_decimals_type) defined within the public class called public.The function start at line 248 and ends at 269. It contains 12 lines of code and it has a cyclomatic complexity of 1. It takes 2 parameters, represented as [248.0] and does not return any value. It decl...
aws-deadline_deadline-cloud
public
public
0
0
test_validate_user_interface_spec_nonvalid_decimals_negative.when
def when() -> None:parameters.validate_user_interface_spec(user_interface_spec,parameter_name=parameter_name,)
1
5
0
17
0
281
285
281
null
[]
None
null
0
0
0
null
0
null
The function (test_validate_user_interface_spec_nonvalid_decimals_negative.when) defined within the public class called public.The function start at line 281 and ends at 285. It contains 5 lines of code and it has a cyclomatic complexity of 1. The function does not take any parameters and does not return any value..
aws-deadline_deadline-cloud
public
public
0
0
test_validate_user_interface_spec_nonvalid_decimals_negative
def test_validate_user_interface_spec_nonvalid_decimals_negative(parameter_name: str,) -> None:"""Tests that passing a negative value for "decimals" raises an exception"""# GIVENdecimals = -1user_interface_spec: dict = {"decimals": decimals}# WHENdef when() -> None:parameters.validate_user_interface_spec(user_interface...
1
12
1
51
1
272
293
272
parameter_name
['decimals']
None
{"AnnAssign": 1, "Assign": 1, "Expr": 3, "With": 1}
4
22
4
["parameters.validate_user_interface_spec", "pytest.raises", "when", "str"]
0
[]
The function (test_validate_user_interface_spec_nonvalid_decimals_negative) defined within the public class called public.The function start at line 272 and ends at 293. It contains 12 lines of code and it has a cyclomatic complexity of 1. The function does not take any parameters and does not return any value. It decl...
aws-deadline_deadline-cloud
public
public
0
0
test_validate_user_interface_spec_nonvalid_single_step_delta_type.when
def when() -> None:parameters.validate_user_interface_spec(user_interface_spec,parameter_name=parameter_name,)
1
5
0
17
0
315
319
315
null
[]
None
null
0
0
0
null
0
null
The function (test_validate_user_interface_spec_nonvalid_single_step_delta_type.when) defined within the public class called public.The function start at line 315 and ends at 319. It contains 5 lines of code and it has a cyclomatic complexity of 1. The function does not take any parameters and does not return any value...
aws-deadline_deadline-cloud
public
public
0
0
test_validate_user_interface_spec_nonvalid_single_step_delta_type
def test_validate_user_interface_spec_nonvalid_single_step_delta_type(single_step_delta: Any,parameter_name: str,) -> None:"""Tests that passing a value with an nonvalid "singleStepDelta" value raises an exception"""# GIVENuser_interface_spec: dict = {"singleStepDelta": single_step_delta}# WHENdef when() -> None:parame...
1
12
2
51
0
306
327
306
single_step_delta,parameter_name
[]
None
{"AnnAssign": 1, "Expr": 3, "With": 1}
11
22
11
["parameters.validate_user_interface_spec", "pytest.raises", "when", "str", "type", "pytest.mark.parametrize", "pytest.param", "pytest.param", "pytest.param", "pytest.param", "pytest.param"]
0
[]
The function (test_validate_user_interface_spec_nonvalid_single_step_delta_type) defined within the public class called public.The function start at line 306 and ends at 327. It contains 12 lines of code and it has a cyclomatic complexity of 1. It takes 2 parameters, represented as [306.0] and does not return any value...
aws-deadline_deadline-cloud
public
public
0
0
test_validate_user_interface_spec_nonvalid_single_step_delta_non_positive.when
def when() -> None:parameters.validate_user_interface_spec(user_interface_spec,parameter_name=parameter_name,)
1
5
0
17
0
346
350
346
null
[]
None
null
0
0
0
null
0
null
The function (test_validate_user_interface_spec_nonvalid_single_step_delta_non_positive.when) defined within the public class called public.The function start at line 346 and ends at 350. It contains 5 lines of code and it has a cyclomatic complexity of 1. The function does not take any parameters and does not return a...
aws-deadline_deadline-cloud
public
public
0
0
test_validate_user_interface_spec_nonvalid_single_step_delta_non_positive
def test_validate_user_interface_spec_nonvalid_single_step_delta_non_positive(single_step_delta: float,parameter_name: str,) -> None:"""Tests that passing a non-positive value for "singleStepDelta" value raises an exception"""# GIVENuser_interface_spec: dict = {"singleStepDelta": single_step_delta}# WHENdef when() -> N...
1
12
2
51
0
337
358
337
single_step_delta,parameter_name
[]
None
{"AnnAssign": 1, "Expr": 3, "With": 1}
7
22
7
["parameters.validate_user_interface_spec", "pytest.raises", "when", "str", "pytest.mark.parametrize", "pytest.param", "pytest.param"]
0
[]
The function (test_validate_user_interface_spec_nonvalid_single_step_delta_non_positive) defined within the public class called public.The function start at line 337 and ends at 358. It contains 12 lines of code and it has a cyclomatic complexity of 1. It takes 2 parameters, represented as [337.0] and does not return a...
aws-deadline_deadline-cloud
public
public
0
0
test_validate_user_interface_spec_nonvalid_file_filters.when
def when() -> None:parameters.validate_user_interface_spec(user_interface_spec,parameter_name=parameter_name,)
1
5
0
17
0
379
383
379
null
[]
None
null
0
0
0
null
0
null
The function (test_validate_user_interface_spec_nonvalid_file_filters.when) defined within the public class called public.The function start at line 379 and ends at 383. It contains 5 lines of code and it has a cyclomatic complexity of 1. The function does not take any parameters and does not return any value..
aws-deadline_deadline-cloud
public
public
0
0
test_validate_user_interface_spec_nonvalid_file_filters
def test_validate_user_interface_spec_nonvalid_file_filters(parameter_name: str,) -> None:"""Tests that when the input contains a "fileFilters" field, that its elements are passedto validate_user_interface_file_filter and exceptions raised by that call are not caught."""# GIVENfile_filter = object()user_interface_spec ...
1
20
1
82
3
361
393
361
parameter_name
['error', 'file_filter', 'user_interface_spec']
None
{"Assign": 3, "Expr": 4, "With": 2}
7
33
7
["object", "Exception", "patch.object", "parameters.validate_user_interface_spec", "pytest.raises", "when", "mock_validate_user_interface_file_filter.assert_called_once_with"]
0
[]
The function (test_validate_user_interface_spec_nonvalid_file_filters) defined within the public class called public.The function start at line 361 and ends at 393. It contains 20 lines of code and it has a cyclomatic complexity of 1. The function does not take any parameters and does not return any value. It declares ...
aws-deadline_deadline-cloud
public
public
0
0
test_validate_user_interface_spec_nonvalid_file_filters_nonlist.when
def when() -> None:parameters.validate_user_interface_spec(user_interface_spec,parameter_name=parameter_name,)
1
5
0
17
0
417
421
417
null
[]
None
null
0
0
0
null
0
null
The function (test_validate_user_interface_spec_nonvalid_file_filters_nonlist.when) defined within the public class called public.The function start at line 417 and ends at 421. It contains 5 lines of code and it has a cyclomatic complexity of 1. The function does not take any parameters and does not return any value..
aws-deadline_deadline-cloud
public
public
0
0
test_validate_user_interface_spec_nonvalid_file_filters_nonlist
def test_validate_user_interface_spec_nonvalid_file_filters_nonlist(parameter_name: str,file_filters: Any,) -> None:"""Tests that when the input contains a "fileFilters" field value that is not a list that anexception is raised"""# GIVENuser_interface_spec = {"fileFilters": file_filters}# WHENdef when() -> None:paramet...
1
12
2
49
1
407
430
407
parameter_name,file_filters
['user_interface_spec']
None
{"Assign": 1, "Expr": 3, "With": 1}
12
24
12
["parameters.validate_user_interface_spec", "pytest.raises", "when", "str", "type", "pytest.mark.parametrize", "pytest.param", "pytest.param", "pytest.param", "pytest.param", "pytest.param", "pytest.param"]
0
[]
The function (test_validate_user_interface_spec_nonvalid_file_filters_nonlist) defined within the public class called public.The function start at line 407 and ends at 430. It contains 12 lines of code and it has a cyclomatic complexity of 1. It takes 2 parameters, represented as [407.0] and does not return any value. ...
aws-deadline_deadline-cloud
public
public
0
0
test_validate_user_interface_spec_nonvalid_file_filter_default.when
def when() -> None:parameters.validate_user_interface_spec(user_interface_spec,parameter_name=parameter_name,)
1
5
0
17
0
451
455
451
null
[]
None
null
0
0
0
null
0
null
The function (test_validate_user_interface_spec_nonvalid_file_filter_default.when) defined within the public class called public.The function start at line 451 and ends at 455. It contains 5 lines of code and it has a cyclomatic complexity of 1. The function does not take any parameters and does not return any value..
aws-deadline_deadline-cloud
public
public
0
0
test_validate_user_interface_spec_nonvalid_file_filter_default
def test_validate_user_interface_spec_nonvalid_file_filter_default(parameter_name: str,) -> None:"""Tests that when the input contains a "fileFilterDefault" field, that its value is passedto validate_user_interface_file_filter and exceptions raised by that call are not caught."""# GIVENfile_filter = object()user_interf...
1
20
1
81
3
433
465
433
parameter_name
['error', 'file_filter', 'user_interface_spec']
None
{"Assign": 3, "Expr": 4, "With": 2}
7
33
7
["object", "Exception", "patch.object", "parameters.validate_user_interface_spec", "pytest.raises", "when", "mock_validate_user_interface_file_filter.assert_called_once_with"]
0
[]
The function (test_validate_user_interface_spec_nonvalid_file_filter_default) defined within the public class called public.The function start at line 433 and ends at 465. It contains 20 lines of code and it has a cyclomatic complexity of 1. The function does not take any parameters and does not return any value. It de...
aws-deadline_deadline-cloud
public
public
0
0
_compare_requirements
def _compare_requirements(first, second):assert len(first.get("amounts")) == len(second.get("amounts"))assert len(first.get("attributes")) == len(second.get("attributes"))for amount in first.get("amounts"):name = amount.get("name")_min = amount.get("min")_max = amount.get("max")for ref_amount in second.get("amounts"):i...
9
25
2
233
5
33
58
33
first,second
['values', 'operation', 'name', '_min', '_max']
None
{"Assign": 6, "For": 4, "If": 2}
30
26
30
["len", "first.get", "len", "second.get", "len", "first.get", "len", "second.get", "first.get", "amount.get", "amount.get", "amount.get", "second.get", "ref_amount.get", "ref_amount.get", "ref_amount.get", "ValueError", "format", "first.get", "attribute.get", "attribute.get", "attribute.get", "second.get", "ref_attribu...
2
["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.94876780_aws_deadline_deadline_cloud.test.unit.deadline_client.ui.test_host_requirements_dataclass_serialize_py.test_host_requirements_as_dictionary_serialize", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.94876780...
The function (_compare_requirements) defined within the public class called public.The function start at line 33 and ends at 58. It contains 25 lines of code and it has a cyclomatic complexity of 9. It takes 2 parameters, represented as [33.0] and does not return any value. It declares 30.0 functions, It has 30.0 funct...
aws-deadline_deadline-cloud
public
public
0
0
test_host_requirements_as_objects_serialize
def test_host_requirements_as_objects_serialize():requirements = HostRequirements(os_requirements=OsRequirements(operating_systems=[OsRequirements.WINDOWS],# type: ignorecpu_archs=[OsRequirements.X86_64],# type: ignore),hardware_requirements=HardwareRequirements(cpu_min=8,cpu_max=64,memory_min=16 * 1024,memory_max=128 ...
1
27
0
123
2
61
87
61
['open_jd_requirements', 'requirements']
None
{"Assign": 2, "Expr": 1}
8
27
8
["HostRequirements", "OsRequirements", "HardwareRequirements", "CustomRequirements", "CustomAmountRequirement", "CustomAttributeRequirement", "requirements.serialize", "_compare_requirements"]
0
[]
The function (test_host_requirements_as_objects_serialize) defined within the public class called public.The function start at line 61 and ends at 87. It contains 27 lines of code and it has a cyclomatic complexity of 1. The function does not take any parameters and does not return any value. It declares 8.0 functions,...
aws-deadline_deadline-cloud
public
public
0
0
test_host_requirements_as_dictionary_serialize
def test_host_requirements_as_dictionary_serialize():requirements = HostRequirements(os_requirements={# type: ignore"operating_systems": ["windows"],"cpu_archs": ["x86_64"],},hardware_requirements={# type: ignore"cpu_min": 8,"cpu_max": 64,"memory_min": 16 * 1024,"memory_max": 128 * 1024,},custom_requirements={# type: i...
1
23
0
111
2
90
112
90
['open_jd_requirements', 'requirements']
None
{"Assign": 2, "Expr": 1}
3
23
3
["HostRequirements", "requirements.serialize", "_compare_requirements"]
0
[]
The function (test_host_requirements_as_dictionary_serialize) defined within the public class called public.The function start at line 90 and ends at 112. It contains 23 lines of code and it has a cyclomatic complexity of 1. The function does not take any parameters and does not return any value. It declares 3.0 functi...
aws-deadline_deadline-cloud
public
public
0
0
test_host_requirements_invalid_os
def test_host_requirements_invalid_os():with pytest.raises(ValueError):requirements = HostRequirements(os_requirements=OsRequirements(operating_systems=["freebsd"],# type: ignorecpu_archs=[OsRequirements.X86_64],# type: ignore),hardware_requirements=HardwareRequirements(cpu_min=8,cpu_max=64,memory_min=16 * 1024,memory_...
1
27
0
121
1
115
141
115
['requirements']
None
{"Assign": 1, "Expr": 1, "With": 1}
8
27
8
["pytest.raises", "HostRequirements", "OsRequirements", "HardwareRequirements", "CustomRequirements", "CustomAmountRequirement", "CustomAttributeRequirement", "requirements.serialize"]
0
[]
The function (test_host_requirements_invalid_os) defined within the public class called public.The function start at line 115 and ends at 141. It contains 27 lines of code and it has a cyclomatic complexity of 1. The function does not take any parameters and does not return any value. It declares 8.0 functions, and It...
aws-deadline_deadline-cloud
public
public
0
0
test_host_requirements_invalid_arch
def test_host_requirements_invalid_arch():with pytest.raises(ValueError):requirements = HostRequirements(os_requirements=OsRequirements(operating_systems=[OsRequirements.LINUX],# type: ignorecpu_archs=["risc-v"],# type: ignore),hardware_requirements=HardwareRequirements(cpu_min=8,cpu_max=64,memory_min=16 * 1024,memory_...
1
27
0
121
1
144
170
144
['requirements']
None
{"Assign": 1, "Expr": 1, "With": 1}
8
27
8
["pytest.raises", "HostRequirements", "OsRequirements", "HardwareRequirements", "CustomRequirements", "CustomAmountRequirement", "CustomAttributeRequirement", "requirements.serialize"]
0
[]
The function (test_host_requirements_invalid_arch) defined within the public class called public.The function start at line 144 and ends at 170. It contains 27 lines of code and it has a cyclomatic complexity of 1. The function does not take any parameters and does not return any value. It declares 8.0 functions, and ...
aws-deadline_deadline-cloud
public
public
0
0
test_valid_timeout_entries
def test_valid_timeout_entries(tooltip, is_activated, seconds, expected):entry = TimeoutEntry(tooltip=tooltip, is_activated=is_activated, seconds=seconds)assert entry.tooltip == expected["tooltip"]assert entry.is_activated == expected["is_activated"]assert entry.seconds == expected["seconds"]
1
5
4
54
1
36
40
36
tooltip,is_activated,seconds,expected
['entry']
None
{"Assign": 1}
16
5
16
["TimeoutEntry", "pytest.mark.parametrize", "pytest.param", "int", "total_seconds", "timedelta", "int", "total_seconds", "timedelta", "pytest.param", "int", "total_seconds", "timedelta", "int", "total_seconds", "timedelta"]
0
[]
The function (test_valid_timeout_entries) defined within the public class called public.The function start at line 36 and ends at 40. It contains 5 lines of code and it has a cyclomatic complexity of 1. It takes 4 parameters, represented as [36.0] and does not return any value. It declares 16.0 functions, and It has 1...
aws-deadline_deadline-cloud
public
public
0
0
test_non_valid_seconds
def test_non_valid_seconds(seconds, error_message):with pytest.raises(ValueError) as exc_info:TimeoutEntry(tooltip="Test", seconds=seconds)assert str(exc_info.value) == error_message
1
4
2
36
0
50
53
50
seconds,error_message
[]
None
{"Expr": 1, "With": 1}
6
4
6
["pytest.raises", "TimeoutEntry", "str", "pytest.mark.parametrize", "pytest.param", "pytest.param"]
0
[]
The function (test_non_valid_seconds) defined within the public class called public.The function start at line 50 and ends at 53. It contains 4 lines of code and it has a cyclomatic complexity of 1. It takes 2 parameters, represented as [50.0] and does not return any value. It declares 6.0 functions, and It has 6.0 fu...
aws-deadline_deadline-cloud
public
public
0
0
test_empty_fields
def test_empty_fields(tooltip, error_message):with pytest.raises(ValueError) as exc_info:TimeoutEntry(tooltip=tooltip)assert str(exc_info.value) == error_message
1
4
2
32
0
62
65
62
tooltip,error_message
[]
None
{"Expr": 1, "With": 1}
5
4
5
["pytest.raises", "TimeoutEntry", "str", "pytest.mark.parametrize", "pytest.param"]
0
[]
The function (test_empty_fields) defined within the public class called public.The function start at line 62 and ends at 65. It contains 4 lines of code and it has a cyclomatic complexity of 1. It takes 2 parameters, represented as [62.0] and does not return any value. It declares 5.0 functions, and It has 5.0 functio...
aws-deadline_deadline-cloud
public
public
0
0
valid_timeout_entries
def valid_timeout_entries() -> TimeoutTableEntries:"""Fixture providing a TimeoutTableEntries instance with valid entries."""entries = {"entry1": TimeoutEntry(tooltip="First timeout", is_activated=True, seconds=3600),"entry2": TimeoutEntry(tooltip="Second timeout", is_activated=False, seconds=7200),}return TimeoutTable...
1
6
0
52
1
69
75
69
['entries']
TimeoutTableEntries
{"Assign": 1, "Expr": 1, "Return": 1}
3
7
3
["TimeoutEntry", "TimeoutEntry", "TimeoutTableEntries"]
0
[]
The function (valid_timeout_entries) defined within the public class called public.The function start at line 69 and ends at 75. It contains 6 lines of code and it has a cyclomatic complexity of 1. The function does not take any parameters and does not return any value. It declares 3.0 functions, and It has 3.0 functi...
aws-deadline_deadline-cloud
TestTimeoutTableEntries
public
0
0
test_to_sticky_settings_dict
def test_to_sticky_settings_dict(self, valid_timeout_entries):"""Test conversion of TimeoutTableEntries to dictionary format, including value checks."""result = valid_timeout_entries.to_sticky_settings_dict()assert isinstance(result, dict)assert len(result) == 2# Check entry1assert "entry1" in resultassert result["entr...
1
8
2
67
0
79
92
79
self,valid_timeout_entries
[]
None
{"Assign": 1, "Expr": 1}
3
14
3
["valid_timeout_entries.to_sticky_settings_dict", "isinstance", "len"]
0
[]
The function (test_to_sticky_settings_dict) defined within the public class called TestTimeoutTableEntries.The function start at line 79 and ends at 92. It contains 8 lines of code and it has a cyclomatic complexity of 1. It takes 2 parameters, represented as [79.0] and does not return any value. It declares 3.0 functi...
aws-deadline_deadline-cloud
TestTimeoutTableEntries
public
0
0
test_update_from_sticky_settings
def test_update_from_sticky_settings(self, valid_timeout_entries):"""Test updating TimeoutTableEntries from dictionary data."""update_data = {"entry1": {"is_activated": False, "seconds": 1800},}valid_timeout_entries.update_from_sticky_settings(update_data)# Check entry1 updatesassert valid_timeout_entries.entries["entr...
1
9
2
74
0
94
108
94
self,valid_timeout_entries
[]
None
{"Assign": 1, "Expr": 2}
1
15
1
["valid_timeout_entries.update_from_sticky_settings"]
0
[]
The function (test_update_from_sticky_settings) defined within the public class called TestTimeoutTableEntries.The function start at line 94 and ends at 108. It contains 9 lines of code and it has a cyclomatic complexity of 1. It takes 2 parameters, represented as [94.0] and does not return any value. It declare 1.0 fu...
aws-deadline_deadline-cloud
TestTimeoutTableEntries
public
0
0
test_update_from_sticky_settings_with_nonexistent_entry
def test_update_from_sticky_settings_with_nonexistent_entry(self, valid_timeout_entries):"""Test updating with data for non-existent entries."""update_data = {"nonexistent_entry": {"is_activated": False, "seconds": 1800}}# Should not raise an error, should simply ignore non-existent entriesvalid_timeout_entries.update_...
1
4
2
36
0
110
116
110
self,valid_timeout_entries
[]
None
{"Assign": 1, "Expr": 2}
1
7
1
["valid_timeout_entries.update_from_sticky_settings"]
0
[]
The function (test_update_from_sticky_settings_with_nonexistent_entry) defined within the public class called TestTimeoutTableEntries.The function start at line 110 and ends at 116. It contains 4 lines of code and it has a cyclomatic complexity of 1. It takes 2 parameters, represented as [110.0] and does not return any...
aws-deadline_deadline-cloud
TestTimeoutTableEntries
public
0
0
test_validate_entries_success
def test_validate_entries_success(self, valid_timeout_entries):"""Test validation with valid entries."""valid_timeout_entries.validate_entries()# Should not raise an exception
1
2
2
13
0
118
120
118
self,valid_timeout_entries
[]
None
{"Expr": 2}
1
3
1
["valid_timeout_entries.validate_entries"]
0
[]
The function (test_validate_entries_success) defined within the public class called TestTimeoutTableEntries.The function start at line 118 and ends at 120. It contains 2 lines of code and it has a cyclomatic complexity of 1. It takes 2 parameters, represented as [118.0] and does not return any value. It declare 1.0 fun...
aws-deadline_deadline-cloud
TestTimeoutTableEntries
public
0
0
test_validate_entries_with_zero_timeout
def test_validate_entries_with_zero_timeout(self, valid_timeout_entries):"""Test validation fails with zero timeout in activated entry."""valid_timeout_entries.entries["entry1"].seconds = 0with pytest.raises(NonValidInputError) as exc_info:valid_timeout_entries.validate_entries()assert "entry1" in str(exc_info.value)as...
1
6
2
51
0
122
130
122
self,valid_timeout_entries
[]
None
{"Assign": 1, "Expr": 2, "With": 1}
4
9
4
["pytest.raises", "valid_timeout_entries.validate_entries", "str", "str"]
0
[]
The function (test_validate_entries_with_zero_timeout) defined within the public class called TestTimeoutTableEntries.The function start at line 122 and ends at 130. It contains 6 lines of code and it has a cyclomatic complexity of 1. It takes 2 parameters, represented as [122.0] and does not return any value. It decla...
aws-deadline_deadline-cloud
TestTimeoutTableEntries
public
0
0
test_validate_entries_with_multiple_zero_timeouts
def test_validate_entries_with_multiple_zero_timeouts(self, valid_timeout_entries):"""Test validation fails with multiple zero timeouts."""valid_timeout_entries.entries["entry1"].seconds = 0valid_timeout_entries.entries["entry2"].seconds = 0with pytest.raises(NonValidInputError) as exc_info:valid_timeout_entries.valida...
1
12
2
105
0
132
150
132
self,valid_timeout_entries
[]
None
{"Assign": 3, "Expr": 3, "With": 2}
8
19
8
["pytest.raises", "valid_timeout_entries.validate_entries", "str", "str", "pytest.raises", "valid_timeout_entries.validate_entries", "str", "str"]
0
[]
The function (test_validate_entries_with_multiple_zero_timeouts) defined within the public class called TestTimeoutTableEntries.The function start at line 132 and ends at 150. It contains 12 lines of code and it has a cyclomatic complexity of 1. It takes 2 parameters, represented as [132.0] and does not return any valu...
aws-deadline_deadline-cloud
public
public
0
0
test_input_in_hardware_requirements_widget_should_be_integer_within_range
def test_input_in_hardware_requirements_widget_should_be_integer_within_range(qtbot):widget = HardwareRequirementsWidget()qtbot.addWidget(widget)assert widget.cpu_row.min_spin_box.min == 0assert widget.cpu_row.min_spin_box.max == 100000assert widget.cpu_row.max_spin_box.min == 0assert widget.cpu_row.max_spin_box.max ==...
1
23
1
216
1
31
58
31
qtbot
['widget']
None
{"Assign": 1, "Expr": 1}
2
28
2
["HardwareRequirementsWidget", "qtbot.addWidget"]
0
[]
The function (test_input_in_hardware_requirements_widget_should_be_integer_within_range) defined within the public class called public.The function start at line 31 and ends at 58. It contains 23 lines of code and it has a cyclomatic complexity of 1. The function does not take any parameters and does not return any val...
aws-deadline_deadline-cloud
public
public
0
0
test_name_in_custom_amount_widget_should_be_truncated
def test_name_in_custom_amount_widget_should_be_truncated(qtbot):widget = CustomAmountWidget(MagicMock(), 1)qtbot.addWidget(widget)invalid_str = "a" * (AMOUNT_NAME_MAX_LENGTH + 1)widget.name_line_edit.setText(invalid_str)assert widget.name_line_edit.text() == invalid_str[:AMOUNT_NAME_MAX_LENGTH]
1
6
1
52
2
61
67
61
qtbot
['invalid_str', 'widget']
None
{"Assign": 2, "Expr": 2}
5
7
5
["CustomAmountWidget", "MagicMock", "qtbot.addWidget", "widget.name_line_edit.setText", "widget.name_line_edit.text"]
0
[]
The function (test_name_in_custom_amount_widget_should_be_truncated) defined within the public class called public.The function start at line 61 and ends at 67. It contains 6 lines of code and it has a cyclomatic complexity of 1. The function does not take any parameters and does not return any value. It declares 5.0 f...
aws-deadline_deadline-cloud
public
public
0
0
test_name_in_custom_amount_widget_should_not_allow_invalid_chars
def test_name_in_custom_amount_widget_should_not_allow_invalid_chars(qtbot):widget = CustomAmountWidget(MagicMock(), 1)qtbot.addWidget(widget)invalid_str = ""widget.name_line_edit.setText(invalid_str)assert widget.name_line_edit.hasAcceptableInput() is False
1
6
1
42
2
70
76
70
qtbot
['invalid_str', 'widget']
None
{"Assign": 2, "Expr": 2}
5
7
5
["CustomAmountWidget", "MagicMock", "qtbot.addWidget", "widget.name_line_edit.setText", "widget.name_line_edit.hasAcceptableInput"]
0
[]
The function (test_name_in_custom_amount_widget_should_not_allow_invalid_chars) defined within the public class called public.The function start at line 70 and ends at 76. It contains 6 lines of code and it has a cyclomatic complexity of 1. The function does not take any parameters and does not return any value. It dec...
aws-deadline_deadline-cloud
public
public
0
0
test_name_in_custom_amount_widget_should_allow_identifiers
def test_name_in_custom_amount_widget_should_allow_identifiers(qtbot):widget = CustomAmountWidget(MagicMock(), 1)qtbot.addWidget(widget)valid_identifier = "a" + (".a" * math.floor((AMOUNT_NAME_MAX_LENGTH - 1) / 2))widget.name_line_edit.setText(valid_identifier)assert widget.name_line_edit.hasAcceptableInput()
1
6
1
57
2
79
85
79
qtbot
['valid_identifier', 'widget']
None
{"Assign": 2, "Expr": 2}
6
7
6
["CustomAmountWidget", "MagicMock", "qtbot.addWidget", "math.floor", "widget.name_line_edit.setText", "widget.name_line_edit.hasAcceptableInput"]
0
[]
The function (test_name_in_custom_amount_widget_should_allow_identifiers) defined within the public class called public.The function start at line 79 and ends at 85. It contains 6 lines of code and it has a cyclomatic complexity of 1. The function does not take any parameters and does not return any value. It declares ...
aws-deadline_deadline-cloud
public
public
0
0
test_name_in_custom_amount_widget_does_not_allow_invalid_identifiers
def test_name_in_custom_amount_widget_does_not_allow_invalid_identifiers(qtbot):widget = CustomAmountWidget(MagicMock(), 1)qtbot.addWidget(widget)valid_identifier = "a"invalid_identifier = "a" * (IDENTFIER_MAX_LENGTH + 1)widget.name_line_edit.setText(".".join([valid_identifier, invalid_identifier]))assert widget.name_l...
1
7
1
60
3
88
96
88
qtbot
['valid_identifier', 'invalid_identifier', 'widget']
None
{"Assign": 3, "Expr": 2}
6
9
6
["CustomAmountWidget", "MagicMock", "qtbot.addWidget", "widget.name_line_edit.setText", "join", "widget.name_line_edit.hasAcceptableInput"]
0
[]
The function (test_name_in_custom_amount_widget_does_not_allow_invalid_identifiers) defined within the public class called public.The function start at line 88 and ends at 96. It contains 7 lines of code and it has a cyclomatic complexity of 1. The function does not take any parameters and does not return any value. It...
aws-deadline_deadline-cloud
public
public
0
0
test_name_in_custom_amount_widget_should_not_allow_missing_identifiers
def test_name_in_custom_amount_widget_should_not_allow_missing_identifiers(qtbot):widget = CustomAmountWidget(MagicMock(), 1)qtbot.addWidget(widget)missing_identifier = "a..a"widget.name_line_edit.setText(missing_identifier)assert widget.name_line_edit.hasAcceptableInput() is False
1
6
1
42
2
99
105
99
qtbot
['missing_identifier', 'widget']
None
{"Assign": 2, "Expr": 2}
5
7
5
["CustomAmountWidget", "MagicMock", "qtbot.addWidget", "widget.name_line_edit.setText", "widget.name_line_edit.hasAcceptableInput"]
0
[]
The function (test_name_in_custom_amount_widget_should_not_allow_missing_identifiers) defined within the public class called public.The function start at line 99 and ends at 105. It contains 6 lines of code and it has a cyclomatic complexity of 1. The function does not take any parameters and does not return any value....
aws-deadline_deadline-cloud
public
public
0
0
test_name_in_custom_amount_widget_should_not_allow_reserved_first_identifier
def test_name_in_custom_amount_widget_should_not_allow_reserved_first_identifier(qtbot):widget = CustomAmountWidget(MagicMock(), 1)qtbot.addWidget(widget)for reserved_identifier in RESERVED_FIRST_IDENTIFIERS:widget.name_line_edit.setText(reserved_identifier)with pytest.raises(NonValidInputError) as e:widget.get_require...
2
12
1
65
1
108
121
108
qtbot
['widget']
None
{"Assign": 1, "Expr": 3, "For": 1, "With": 1}
8
14
8
["CustomAmountWidget", "MagicMock", "qtbot.addWidget", "widget.name_line_edit.setText", "pytest.raises", "widget.get_requirement", "str", "str"]
0
[]
The function (test_name_in_custom_amount_widget_should_not_allow_reserved_first_identifier) defined within the public class called public.The function start at line 108 and ends at 121. It contains 12 lines of code and it has a cyclomatic complexity of 2. The function does not take any parameters and does not return an...
aws-deadline_deadline-cloud
public
public
0
0
test_value_in_custom_amount_widget_should_be_integer_within_range
def test_value_in_custom_amount_widget_should_be_integer_within_range(qtbot):widget = CustomAmountWidget(MagicMock(), 1)qtbot.addWidget(widget)assert widget.min_spin_box.min == 0assert widget.min_spin_box.max == MAX_INT_VALUEassert widget.max_spin_box.min == 0assert widget.max_spin_box.max == MAX_INT_VALUE
1
7
1
53
1
124
131
124
qtbot
['widget']
None
{"Assign": 1, "Expr": 1}
3
8
3
["CustomAmountWidget", "MagicMock", "qtbot.addWidget"]
0
[]
The function (test_value_in_custom_amount_widget_should_be_integer_within_range) defined within the public class called public.The function start at line 124 and ends at 131. It contains 7 lines of code and it has a cyclomatic complexity of 1. The function does not take any parameters and does not return any value. It ...
aws-deadline_deadline-cloud
public
public
0
0
test_name_in_custom_attribute_widget_should_be_truncated
def test_name_in_custom_attribute_widget_should_be_truncated(qtbot):widget = CustomAttributeWidget(MagicMock(), 1, CustomRequirementsWidget())qtbot.addWidget(widget)invalid_str = "a" * (ATTRIBUTE_NAME_MAX_LENGTH + 1)widget.name_line_edit.setText(invalid_str)assert widget.name_line_edit.text() == invalid_str[:ATTRIBUTE_...
1
6
1
56
2
134
140
134
qtbot
['invalid_str', 'widget']
None
{"Assign": 2, "Expr": 2}
6
7
6
["CustomAttributeWidget", "MagicMock", "CustomRequirementsWidget", "qtbot.addWidget", "widget.name_line_edit.setText", "widget.name_line_edit.text"]
0
[]
The function (test_name_in_custom_attribute_widget_should_be_truncated) defined within the public class called public.The function start at line 134 and ends at 140. It contains 6 lines of code and it has a cyclomatic complexity of 1. The function does not take any parameters and does not return any value. It declares ...
aws-deadline_deadline-cloud
public
public
0
0
test_name_in_custom_attribute_widget_should_follow_regex_pattern
def test_name_in_custom_attribute_widget_should_follow_regex_pattern(qtbot):widget = CustomAttributeWidget(MagicMock(), 1, CustomRequirementsWidget())qtbot.addWidget(widget)invalid_str = ""widget.name_line_edit.setText(invalid_str)assert widget.name_line_edit.hasAcceptableInput() is False
1
6
1
46
2
143
149
143
qtbot
['invalid_str', 'widget']
None
{"Assign": 2, "Expr": 2}
6
7
6
["CustomAttributeWidget", "MagicMock", "CustomRequirementsWidget", "qtbot.addWidget", "widget.name_line_edit.setText", "widget.name_line_edit.hasAcceptableInput"]
0
[]
The function (test_name_in_custom_attribute_widget_should_follow_regex_pattern) defined within the public class called public.The function start at line 143 and ends at 149. It contains 6 lines of code and it has a cyclomatic complexity of 1. The function does not take any parameters and does not return any value. It d...
aws-deadline_deadline-cloud
public
public
0
0
test_value_in_custom_attribute_widget_should_be_truncated
def test_value_in_custom_attribute_widget_should_be_truncated(qtbot):parent_widget = CustomAttributeWidget(MagicMock(), 1, CustomRequirementsWidget())widget = CustomAttributeValueWidget(MagicMock(), parent_widget)qtbot.addWidget(widget)invalid_str = "a" * 101widget.line_edit.setText(invalid_str)assert widget.line_edit....
1
7
1
62
3
152
159
152
qtbot
['invalid_str', 'parent_widget', 'widget']
None
{"Assign": 3, "Expr": 2}
8
8
8
["CustomAttributeWidget", "MagicMock", "CustomRequirementsWidget", "CustomAttributeValueWidget", "MagicMock", "qtbot.addWidget", "widget.line_edit.setText", "widget.line_edit.text"]
0
[]
The function (test_value_in_custom_attribute_widget_should_be_truncated) defined within the public class called public.The function start at line 152 and ends at 159. It contains 7 lines of code and it has a cyclomatic complexity of 1. The function does not take any parameters and does not return any value. It declares...
aws-deadline_deadline-cloud
public
public
0
0
test_value_in_custom_attribute_widget_should_follow_regex_pattern
def test_value_in_custom_attribute_widget_should_follow_regex_pattern(qtbot):parent_widget = CustomAttributeWidget(MagicMock(), 1, CustomRequirementsWidget())widget = CustomAttributeValueWidget(MagicMock(), parent_widget)qtbot.addWidget(widget)invalid_str = ""widget.line_edit.setText(invalid_str)assert widget.line_edi...
1
7
1
56
3
162
169
162
qtbot
['invalid_str', 'parent_widget', 'widget']
None
{"Assign": 3, "Expr": 2}
8
8
8
["CustomAttributeWidget", "MagicMock", "CustomRequirementsWidget", "CustomAttributeValueWidget", "MagicMock", "qtbot.addWidget", "widget.line_edit.setText", "widget.line_edit.hasAcceptableInput"]
0
[]
The function (test_value_in_custom_attribute_widget_should_follow_regex_pattern) defined within the public class called public.The function start at line 162 and ends at 169. It contains 7 lines of code and it has a cyclomatic complexity of 1. The function does not take any parameters and does not return any value. It ...
aws-deadline_deadline-cloud
public
public
0
0
test_name_in_custom_attribute_widget_should_allow_identifiers
def test_name_in_custom_attribute_widget_should_allow_identifiers(qtbot):widget = CustomAttributeWidget(MagicMock(), 1, CustomRequirementsWidget())qtbot.addWidget(widget)valid_identifier = "a" + (".a" * math.floor((AMOUNT_NAME_MAX_LENGTH - 1) / 2))widget.name_line_edit.setText(valid_identifier)assert widget.name_line_e...
1
6
1
61
2
172
178
172
qtbot
['valid_identifier', 'widget']
None
{"Assign": 2, "Expr": 2}
7
7
7
["CustomAttributeWidget", "MagicMock", "CustomRequirementsWidget", "qtbot.addWidget", "math.floor", "widget.name_line_edit.setText", "widget.name_line_edit.hasAcceptableInput"]
0
[]
The function (test_name_in_custom_attribute_widget_should_allow_identifiers) defined within the public class called public.The function start at line 172 and ends at 178. It contains 6 lines of code and it has a cyclomatic complexity of 1. The function does not take any parameters and does not return any value. It decl...
aws-deadline_deadline-cloud
public
public
0
0
test_name_in_custom_attribute_widget_does_not_allow_invalid_identifiers
def test_name_in_custom_attribute_widget_does_not_allow_invalid_identifiers(qtbot):widget = CustomAttributeWidget(MagicMock(), 1, CustomRequirementsWidget())qtbot.addWidget(widget)valid_identifier = "a"invalid_identifier = "a" * (IDENTFIER_MAX_LENGTH + 1)widget.name_line_edit.setText(".".join([valid_identifier, invalid...
1
7
1
64
3
181
189
181
qtbot
['valid_identifier', 'invalid_identifier', 'widget']
None
{"Assign": 3, "Expr": 2}
7
9
7
["CustomAttributeWidget", "MagicMock", "CustomRequirementsWidget", "qtbot.addWidget", "widget.name_line_edit.setText", "join", "widget.name_line_edit.hasAcceptableInput"]
0
[]
The function (test_name_in_custom_attribute_widget_does_not_allow_invalid_identifiers) defined within the public class called public.The function start at line 181 and ends at 189. It contains 7 lines of code and it has a cyclomatic complexity of 1. The function does not take any parameters and does not return any valu...
aws-deadline_deadline-cloud
public
public
0
0
test_name_in_custom_attribute_widget_should_not_allow_missing_identifiers
def test_name_in_custom_attribute_widget_should_not_allow_missing_identifiers(qtbot):widget = CustomAttributeWidget(MagicMock(), 1, CustomRequirementsWidget())qtbot.addWidget(widget)missing_identifier = "a..a"widget.name_line_edit.setText(missing_identifier)assert widget.name_line_edit.hasAcceptableInput() is False
1
6
1
46
2
192
198
192
qtbot
['missing_identifier', 'widget']
None
{"Assign": 2, "Expr": 2}
6
7
6
["CustomAttributeWidget", "MagicMock", "CustomRequirementsWidget", "qtbot.addWidget", "widget.name_line_edit.setText", "widget.name_line_edit.hasAcceptableInput"]
0
[]
The function (test_name_in_custom_attribute_widget_should_not_allow_missing_identifiers) defined within the public class called public.The function start at line 192 and ends at 198. It contains 6 lines of code and it has a cyclomatic complexity of 1. The function does not take any parameters and does not return any va...
aws-deadline_deadline-cloud
public
public
0
0
test_name_in_custom_attribute_widget_should_not_end_with_period
def test_name_in_custom_attribute_widget_should_not_end_with_period(qtbot):widget = CustomAttributeWidget(MagicMock(), 1, CustomRequirementsWidget())value_widget = CustomAttributeValueWidget(MagicMock(), widget)qtbot.addWidget(widget)qtbot.addWidget(value_widget)value_widget.line_edit.setText("test")identifier_ends_wit...
1
11
1
84
3
201
214
201
qtbot
['identifier_ends_with_period', 'value_widget', 'widget']
None
{"Assign": 3, "Expr": 5, "With": 1}
12
14
12
["CustomAttributeWidget", "MagicMock", "CustomRequirementsWidget", "CustomAttributeValueWidget", "MagicMock", "qtbot.addWidget", "qtbot.addWidget", "value_widget.line_edit.setText", "widget.name_line_edit.setText", "pytest.raises", "widget.get_requirement", "str"]
0
[]
The function (test_name_in_custom_attribute_widget_should_not_end_with_period) defined within the public class called public.The function start at line 201 and ends at 214. It contains 11 lines of code and it has a cyclomatic complexity of 1. The function does not take any parameters and does not return any value. It d...
aws-deadline_deadline-cloud
public
public
0
0
test_name_in_custom_attribute_widget_should_not_allow_reserved_first_identifier
def test_name_in_custom_attribute_widget_should_not_allow_reserved_first_identifier(qtbot):widget = CustomAttributeWidget(MagicMock(), 1, CustomRequirementsWidget())value_widget = CustomAttributeValueWidget(MagicMock(), widget)qtbot.addWidget(widget)qtbot.addWidget(value_widget)value_widget.line_edit.setText("test")for...
2
15
1
93
2
217
234
217
qtbot
['value_widget', 'widget']
None
{"Assign": 2, "Expr": 5, "For": 1, "With": 1}
13
18
13
["CustomAttributeWidget", "MagicMock", "CustomRequirementsWidget", "CustomAttributeValueWidget", "MagicMock", "qtbot.addWidget", "qtbot.addWidget", "value_widget.line_edit.setText", "widget.name_line_edit.setText", "pytest.raises", "widget.get_requirement", "str", "str"]
0
[]
The function (test_name_in_custom_attribute_widget_should_not_allow_reserved_first_identifier) defined within the public class called public.The function start at line 217 and ends at 234. It contains 15 lines of code and it has a cyclomatic complexity of 2. The function does not take any parameters and does not return...
aws-deadline_deadline-cloud
public
public
0
0
test_input_in_line_edit_widget_should_be_truncated
def test_input_in_line_edit_widget_should_be_truncated(qtbot):"""Test that the line edit widget is created and can be edited."""widget = _JobTemplateLineEditWidget(None, {"type": "STRING", "name": "test-name"})qtbot.addWidget(widget)invalid_str = "a" * (STRING_FIELD_MAX_LENGTH + 1)widget.set_value(invalid_str)assert wi...
1
6
1
55
2
18
27
18
qtbot
['invalid_str', 'widget']
None
{"Assign": 2, "Expr": 3}
4
10
4
["_JobTemplateLineEditWidget", "qtbot.addWidget", "widget.set_value", "widget.value"]
0
[]
The function (test_input_in_line_edit_widget_should_be_truncated) defined within the public class called public.The function start at line 18 and ends at 27. It contains 6 lines of code and it has a cyclomatic complexity of 1. The function does not take any parameters and does not return any value. It declares 4.0 func...
aws-deadline_deadline-cloud
public
public
0
0
test_input_in_line_edit_widget_should_be_casted
def test_input_in_line_edit_widget_should_be_casted(qtbot, object, expected_string):"""Tests that inputs to a line edit widget can be converted to strings."""# GIVENwidget = _JobTemplateLineEditWidget(None, {"type": "STRING", "name": "value-to-convert"})qtbot.addWidget(widget)# WHENwidget.set_value(object)# THENassert ...
1
5
3
46
1
38
51
38
qtbot,object,expected_string
['widget']
None
{"Assign": 1, "Expr": 3}
9
14
9
["_JobTemplateLineEditWidget", "qtbot.addWidget", "widget.set_value", "widget.value", "pytest.mark.parametrize", "pytest.param", "pytest.param", "pytest.param", "Path"]
0
[]
The function (test_input_in_line_edit_widget_should_be_casted) defined within the public class called public.The function start at line 38 and ends at 51. It contains 5 lines of code and it has a cyclomatic complexity of 1. It takes 3 parameters, represented as [38.0] and does not return any value. It declares 9.0 func...
aws-deadline_deadline-cloud
public
public
0
0
test_input_in_int_spin_box_widget_should_be_integer_within_range
def test_input_in_int_spin_box_widget_should_be_integer_within_range(qtbot):"""Test that the line edit widget is created and can be edited."""widget = _JobTemplateIntSpinBoxWidget(None, {"type": "INT", "name": "test-name", "minValue": 0, "maxValue": 99})qtbot.addWidget(widget)widget.set_value(-1)assert widget.value() =...
1
9
1
65
1
54
67
54
qtbot
['widget']
None
{"Assign": 1, "Expr": 4}
6
14
6
["_JobTemplateIntSpinBoxWidget", "qtbot.addWidget", "widget.set_value", "widget.value", "widget.set_value", "widget.value"]
0
[]
The function (test_input_in_int_spin_box_widget_should_be_integer_within_range) defined within the public class called public.The function start at line 54 and ends at 67. It contains 9 lines of code and it has a cyclomatic complexity of 1. The function does not take any parameters and does not return any value. It dec...
aws-deadline_deadline-cloud
public
public
0
0
test_input_in_float_spin_box_widget_should_be_float_within_range
def test_input_in_float_spin_box_widget_should_be_float_within_range(qtbot):"""Test that the line edit widget is created and can be edited."""widget = _JobTemplateFloatSpinBoxWidget(None, {"type": "FLOAT", "name": "test-name", "minValue": 0, "maxValue": 99})qtbot.addWidget(widget)widget.set_value(-1)assert widget.value...
1
9
1
65
1
70
83
70
qtbot
['widget']
None
{"Assign": 1, "Expr": 4}
6
14
6
["_JobTemplateFloatSpinBoxWidget", "qtbot.addWidget", "widget.set_value", "widget.value", "widget.set_value", "widget.value"]
0
[]
The function (test_input_in_float_spin_box_widget_should_be_float_within_range) defined within the public class called public.The function start at line 70 and ends at 83. It contains 9 lines of code and it has a cyclomatic complexity of 1. The function does not take any parameters and does not return any value. It dec...
aws-deadline_deadline-cloud
public
public
0
0
shared_job_settings_tab
def shared_job_settings_tab(qtbot, temp_job_bundle_dir) -> SharedJobSettingsWidget:initial_settings = JobBundleSettings(input_job_bundle_dir=temp_job_bundle_dir, name="test-name")widget = SharedJobSettingsWidget(initial_settings=initial_settings,initial_shared_parameter_values=dict(),)qtbot.addWidget(widget)return widg...
1
8
2
44
2
14
21
14
qtbot,temp_job_bundle_dir
['initial_settings', 'widget']
SharedJobSettingsWidget
{"Assign": 2, "Expr": 1, "Return": 1}
5
8
5
["JobBundleSettings", "SharedJobSettingsWidget", "dict", "qtbot.addWidget", "pytest.fixture"]
0
[]
The function (shared_job_settings_tab) defined within the public class called public.The function start at line 14 and ends at 21. It contains 8 lines of code and it has a cyclomatic complexity of 1. It takes 2 parameters, represented as [14.0] and does not return any value. It declares 5.0 functions, and It has 5.0 f...
aws-deadline_deadline-cloud
public
public
0
0
test_name_should_be_truncated_to_openjd_spec_128_chars
def test_name_should_be_truncated_to_openjd_spec_128_chars(shared_job_settings_tab: SharedJobSettingsWidget,):expected_max_job_name_length = 128invalid_str = "a" * (expected_max_job_name_length + 1)shared_job_settings_tab.shared_job_properties_box.sub_name_edit.setText(invalid_str)assert (shared_job_settings_tab.shared...
1
10
1
48
2
24
33
24
shared_job_settings_tab
['expected_max_job_name_length', 'invalid_str']
None
{"Assign": 2, "Expr": 1}
2
10
2
["shared_job_settings_tab.shared_job_properties_box.sub_name_edit.setText", "shared_job_settings_tab.shared_job_properties_box.sub_name_edit.text"]
0
[]
The function (test_name_should_be_truncated_to_openjd_spec_128_chars) defined within the public class called public.The function start at line 24 and ends at 33. It contains 10 lines of code and it has a cyclomatic complexity of 1. The function does not take any parameters and does not return any value. It declares 2.0...
aws-deadline_deadline-cloud
public
public
0
0
test_description_should_be_truncated_to_openjd_spec_2048_chars
def test_description_should_be_truncated_to_openjd_spec_2048_chars(shared_job_settings_tab: SharedJobSettingsWidget,):expected_max_job_description_length = 2048invalid_str = "a" * (expected_max_job_description_length + 1)shared_job_settings_tab.shared_job_properties_box.desc_edit.setText(invalid_str)assert (shared_job_...
1
10
1
48
2
36
45
36
shared_job_settings_tab
['invalid_str', 'expected_max_job_description_length']
None
{"Assign": 2, "Expr": 1}
2
10
2
["shared_job_settings_tab.shared_job_properties_box.desc_edit.setText", "shared_job_settings_tab.shared_job_properties_box.desc_edit.text"]
0
[]
The function (test_description_should_be_truncated_to_openjd_spec_2048_chars) defined within the public class called public.The function start at line 36 and ends at 45. It contains 10 lines of code and it has a cyclomatic complexity of 1. The function does not take any parameters and does not return any value. It decl...
aws-deadline_deadline-cloud
public
public
0
0
test_priority_should_be_integer_within_range
def test_priority_should_be_integer_within_range(shared_job_settings_tab: SharedJobSettingsWidget):shared_job_settings_tab.shared_job_properties_box.priority_box.setValue(-1)assert shared_job_settings_tab.shared_job_properties_box.priority_box.value() == 0shared_job_settings_tab.shared_job_properties_box.priority_box.s...
1
5
1
52
0
48
53
48
shared_job_settings_tab
[]
None
{"Expr": 2}
4
6
4
["shared_job_settings_tab.shared_job_properties_box.priority_box.setValue", "shared_job_settings_tab.shared_job_properties_box.priority_box.value", "shared_job_settings_tab.shared_job_properties_box.priority_box.setValue", "shared_job_settings_tab.shared_job_properties_box.priority_box.value"]
0
[]
The function (test_priority_should_be_integer_within_range) defined within the public class called public.The function start at line 48 and ends at 53. It contains 5 lines of code and it has a cyclomatic complexity of 1. The function does not take any parameters and does not return any value. It declares 4.0 functions,...
aws-deadline_deadline-cloud
public
public
0
0
test_initial_state_should_be_allowed_enums
def test_initial_state_should_be_allowed_enums(shared_job_settings_tab: SharedJobSettingsWidget):shared_job_settings_tab.shared_job_properties_box.initial_status_box.setCurrentText("Invalid")assert (shared_job_settings_tab.shared_job_properties_box.initial_status_box.currentText()== "READY")
1
6
1
31
0
56
61
56
shared_job_settings_tab
[]
None
{"Expr": 1}
2
6
2
["shared_job_settings_tab.shared_job_properties_box.initial_status_box.setCurrentText", "shared_job_settings_tab.shared_job_properties_box.initial_status_box.currentText"]
0
[]
The function (test_initial_state_should_be_allowed_enums) defined within the public class called public.The function start at line 56 and ends at 61. It contains 6 lines of code and it has a cyclomatic complexity of 1. The function does not take any parameters and does not return any value. It declares 2.0 functions, a...
aws-deadline_deadline-cloud
public
public
0
0
test_max_failed_tasks_count_should_be_integer_within_range
def test_max_failed_tasks_count_should_be_integer_within_range(shared_job_settings_tab: SharedJobSettingsWidget,):shared_job_settings_tab.shared_job_properties_box.max_failed_tasks_count_box.setValue(-1)assert shared_job_settings_tab.shared_job_properties_box.max_failed_tasks_count_box.value() == 0
1
5
1
31
0
64
68
64
shared_job_settings_tab
[]
None
{"Expr": 1}
2
5
2
["shared_job_settings_tab.shared_job_properties_box.max_failed_tasks_count_box.setValue", "shared_job_settings_tab.shared_job_properties_box.max_failed_tasks_count_box.value"]
0
[]
The function (test_max_failed_tasks_count_should_be_integer_within_range) defined within the public class called public.The function start at line 64 and ends at 68. It contains 5 lines of code and it has a cyclomatic complexity of 1. The function does not take any parameters and does not return any value. It declares ...
aws-deadline_deadline-cloud
public
public
0
0
test_max_retries_per_task_should_be_integer_within_range
def test_max_retries_per_task_should_be_integer_within_range(shared_job_settings_tab: SharedJobSettingsWidget,):shared_job_settings_tab.shared_job_properties_box.max_retries_per_task_box.setValue(-1)assert shared_job_settings_tab.shared_job_properties_box.max_retries_per_task_box.value() == 0
1
5
1
31
0
71
75
71
shared_job_settings_tab
[]
None
{"Expr": 1}
2
5
2
["shared_job_settings_tab.shared_job_properties_box.max_retries_per_task_box.setValue", "shared_job_settings_tab.shared_job_properties_box.max_retries_per_task_box.value"]
0
[]
The function (test_max_retries_per_task_should_be_integer_within_range) defined within the public class called public.The function start at line 71 and ends at 75. It contains 5 lines of code and it has a cyclomatic complexity of 1. The function does not take any parameters and does not return any value. It declares 2....
aws-deadline_deadline-cloud
public
public
0
0
test_max_worker_count_should_be_integer_within_range
def test_max_worker_count_should_be_integer_within_range(shared_job_settings_tab: SharedJobSettingsWidget,):shared_job_settings_tab.shared_job_properties_box.max_worker_count_box.setValue(-1)assert shared_job_settings_tab.shared_job_properties_box.max_worker_count_box.value() == 1
1
5
1
31
0
78
82
78
shared_job_settings_tab
[]
None
{"Expr": 1}
2
5
2
["shared_job_settings_tab.shared_job_properties_box.max_worker_count_box.setValue", "shared_job_settings_tab.shared_job_properties_box.max_worker_count_box.value"]
0
[]
The function (test_max_worker_count_should_be_integer_within_range) defined within the public class called public.The function start at line 78 and ends at 82. It contains 5 lines of code and it has a cyclomatic complexity of 1. The function does not take any parameters and does not return any value. It declares 2.0 fu...
aws-deadline_deadline-cloud
public
public
0
0
temp_dir
def temp_dir():"""Fixture to provide a temporary directory."""with tempfile.TemporaryDirectory() as temp_dir:yield temp_dir
1
3
0
16
0
35
41
35
[]
None
{"Expr": 2, "With": 1}
2
7
2
["tempfile.TemporaryDirectory", "pytest.fixture"]
1
["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3924769_jaraco_zipp.tests.test_path_py.TestPath.zipfile_ondisk"]
The function (temp_dir) defined within the public class called public.The function start at line 35 and ends at 41. It contains 3 lines of code and it has a cyclomatic complexity of 1. The function does not take any parameters and does not return any value. It declares 2.0 functions, It has 2.0 functions called inside ...
aws-deadline_deadline-cloud
public
public
0
0
temp_assets_dir
def temp_assets_dir():"""Fixture to provide a temporary directory for asset files."""with tempfile.TemporaryDirectory() as assets_dir:yield assets_dir
1
3
0
16
0
45
51
45
[]
None
{"Expr": 2, "With": 1}
2
7
2
["tempfile.TemporaryDirectory", "pytest.fixture"]
0
[]
The function (temp_assets_dir) defined within the public class called public.The function start at line 45 and ends at 51. It contains 3 lines of code and it has a cyclomatic complexity of 1. The function does not take any parameters and does not return any value. It declares 2.0 functions, and It has 2.0 functions ca...
aws-deadline_deadline-cloud
public
public
0
0
boto_config
def boto_config() -> Generator[None, None, None]:os.environ["AWS_ACCESS_KEY_ID"] = "ACCESSKEY"os.environ["AWS_SECRET_ACCESS_KEY"] = "wJalrXUtnFEMI/K7MDENG/bPxRfiCYEXAMPLEKEY"os.environ["AWS_SECURITY_TOKEN"] = "testing"os.environ["AWS_SESSION_TOKEN"] = "testing"os.environ["AWS_DEFAULT_REGION"] = "us-west-2"mock = mock_a...
1
10
0
69
1
55
65
55
['mock']
Generator[None, None, None]
{"Assign": 6, "Expr": 3}
4
11
4
["mock_aws", "mock.start", "mock.stop", "pytest.fixture"]
0
[]
The function (boto_config) defined within the public class called public.The function start at line 55 and ends at 65. It contains 10 lines of code and it has a cyclomatic complexity of 1. The function does not take any parameters and does not return any value. It declares 4.0 functions, and It has 4.0 functions calle...
aws-deadline_deadline-cloud
public
public
0
0
s3_fixture
def s3_fixture(boto_config) -> Generator[BaseClient, None, None]:"""Fixture to get a mock S3 client."""yield aws_clients.get_s3_client()
1
2
1
21
0
69
73
69
boto_config
[]
Generator[BaseClient, None, None]
{"Expr": 2}
2
5
2
["aws_clients.get_s3_client", "pytest.fixture"]
0
[]
The function (s3_fixture) defined within the public class called public.The function start at line 69 and ends at 73. It contains 2 lines of code and it has a cyclomatic complexity of 1. The function does not take any parameters and does not return any value. It declares 2.0 functions, and It has 2.0 functions called ...
aws-deadline_deadline-cloud
public
public
0
0
create_s3_bucket.create_bucket
def create_bucket(bucket_name):s3.create_bucket(Bucket=bucket_name, CreateBucketConfiguration={"LocationConstraint": "us-west-2"})
1
4
1
21
0
82
85
82
null
[]
None
null
0
0
0
null
0
null
The function (create_s3_bucket.create_bucket) defined within the public class called public.The function start at line 82 and ends at 85. It contains 4 lines of code and it has a cyclomatic complexity of 1. The function does not take any parameters and does not return any value..
aws-deadline_deadline-cloud
public
public
0
0
create_s3_bucket
def create_s3_bucket(boto_config, s3) -> Callable[[str], None]:# pylint: disable=invalid-name"""Fixture that returns a function that creates moto S3 buckets."""def create_bucket(bucket_name):s3.create_bucket(Bucket=bucket_name, CreateBucketConfiguration={"LocationConstraint": "us-west-2"})return create_bucket
1
3
2
21
0
77
87
77
boto_config,s3
[]
Callable[[str], None]
{"Expr": 2, "Return": 1}
2
11
2
["s3.create_bucket", "pytest.fixture"]
5
["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.94876780_aws_deadline_deadline_cloud.test.unit.deadline_job_attachments.test_asset_sync_py.TestAssetSync.before_test", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.94876780_aws_deadline_deadline_cloud.test.unit.dea...
The function (create_s3_bucket) defined within the public class called public.The function start at line 77 and ends at 87. It contains 3 lines of code and it has a cyclomatic complexity of 1. It takes 2 parameters, represented as [77.0] and does not return any value. It declares 2.0 functions, It has 2.0 functions cal...
aws-deadline_deadline-cloud
public
public
0
0
fixture_default_job_attachment_s3_settings
def fixture_default_job_attachment_s3_settings():"""Fixture returning default settings for an S3 bucket associated with a Queue"""return JobAttachmentS3Settings(s3BucketName="test-bucket",rootPrefix="assetRoot",)
1
5
0
17
0
91
98
91
[]
Returns
{"Expr": 1, "Return": 1}
2
8
2
["JobAttachmentS3Settings", "pytest.fixture"]
0
[]
The function (fixture_default_job_attachment_s3_settings) defined within the public class called public.The function start at line 91 and ends at 98. It contains 5 lines of code and it has a cyclomatic complexity of 1. The function does not take any parameters, and this function return a value. It declares 2.0 function...
aws-deadline_deadline-cloud
public
public
0
0
fixture_default_attachments
def fixture_default_attachments(farm_id, queue_id):"""Fixture returning default settings for a Job"""return Attachments(manifests=[ManifestProperties(rootPath="/tmp",rootPathFormat=PathFormat.POSIX,inputManifestPath=f"assetRoot/Manifests/{farm_id}/{queue_id}/Inputs/0000/manifest_input",inputManifestHash="manifesthash",...
1
12
2
45
0
102
116
102
farm_id,queue_id
[]
Returns
{"Expr": 1, "Return": 1}
3
15
3
["Attachments", "ManifestProperties", "pytest.fixture"]
0
[]
The function (fixture_default_attachments) defined within the public class called public.The function start at line 102 and ends at 116. It contains 12 lines of code and it has a cyclomatic complexity of 1. It takes 2 parameters, represented as [102.0], and this function return a value. It declares 3.0 functions, and ...
aws-deadline_deadline-cloud
public
public
0
0
fixture_vfs_attachments
def fixture_vfs_attachments():"""Fixture returning default settings for a Job"""return Attachments(manifests=[ManifestProperties(rootPath="/tmp",rootPathFormat=PathFormat.POSIX,inputManifestPath="manifest.json",inputManifestHash="manifesthash",outputRelativeDirectories=["test/outputs"],)],fileSystem=JobAttachmentsFileS...
1
13
0
47
0
120
135
120
[]
Returns
{"Expr": 1, "Return": 1}
3
16
3
["Attachments", "ManifestProperties", "pytest.fixture"]
0
[]
The function (fixture_vfs_attachments) defined within the public class called public.The function start at line 120 and ends at 135. It contains 13 lines of code and it has a cyclomatic complexity of 1. The function does not take any parameters, and this function return a value. It declares 3.0 functions, and It has 3...
aws-deadline_deadline-cloud
public
public
0
0
fixture_windows_attachments
def fixture_windows_attachments():"""Fixture returning default settings for a Job submitted on a Windows machine"""return Attachments(manifests=[ManifestProperties(rootPath=r"C:\Users\temp",rootPathFormat=PathFormat.WINDOWS,inputManifestPath="manifest.json",inputManifestHash="manifesthash",outputRelativeDirectories=["t...
1
12
0
42
0
139
153
139
[]
Returns
{"Expr": 1, "Return": 1}
3
15
3
["Attachments", "ManifestProperties", "pytest.fixture"]
0
[]
The function (fixture_windows_attachments) defined within the public class called public.The function start at line 139 and ends at 153. It contains 12 lines of code and it has a cyclomatic complexity of 1. The function does not take any parameters, and this function return a value. It declares 3.0 functions, and It h...
aws-deadline_deadline-cloud
public
public
0
0
fixture_attachments_no_required_assets
def fixture_attachments_no_required_assets():"""Fixture returning Job settings with no required assets (inputs)"""return Attachments(manifests=[ManifestProperties(rootPath="/tmp",rootPathFormat=PathFormat.POSIX,outputRelativeDirectories=["test/outputs"],)],)
1
10
0
33
0
157
169
157
[]
Returns
{"Expr": 1, "Return": 1}
3
13
3
["Attachments", "ManifestProperties", "pytest.fixture"]
0
[]
The function (fixture_attachments_no_required_assets) defined within the public class called public.The function start at line 157 and ends at 169. It contains 10 lines of code and it has a cyclomatic complexity of 1. The function does not take any parameters, and this function return a value. It declares 3.0 functions...
aws-deadline_deadline-cloud
public
public
0
0
fixture_default_asset_sync
def fixture_default_asset_sync(farm_id: str):"""Fixture returning a default AssetSync instance"""return AssetSync(farm_id)
1
2
1
13
0
173
177
173
farm_id
[]
Returns
{"Expr": 1, "Return": 1}
2
5
2
["AssetSync", "pytest.fixture"]
0
[]
The function (fixture_default_asset_sync) defined within the public class called public.The function start at line 173 and ends at 177. It contains 2 lines of code and it has a cyclomatic complexity of 1. The function does not take any parameters, and this function return a value. It declares 2.0 functions, and It has...
aws-deadline_deadline-cloud
public
public
0
0
assert_manifest.__inner_func__
def __inner_func__(bucket, manifest_location, expected_manifest):with BytesIO() as manifest:bucket.download_fileobj(manifest_location, manifest)manifest_json = json.loads(manifest.getvalue().decode("utf-8"))assert manifest_json == expected_manifest
1
5
3
45
0
186
191
186
null
[]
None
null
0
0
0
null
0
null
The function (assert_manifest.__inner_func__) defined within the public class called public.The function start at line 186 and ends at 191. It contains 5 lines of code and it has a cyclomatic complexity of 1. It takes 3 parameters, represented as [186.0] and does not return any value..
aws-deadline_deadline-cloud
public
public
0
0
assert_manifest
def assert_manifest():"""Assert that a manifest file in a mock s3 bucket matches what's expected."""def __inner_func__(bucket, manifest_location, expected_manifest):with BytesIO() as manifest:bucket.download_fileobj(manifest_location, manifest)manifest_json = json.loads(manifest.getvalue().decode("utf-8"))assert manife...
1
3
0
9
1
181
193
181
['manifest_json']
Returns
{"Assign": 1, "Expr": 2, "Return": 1, "With": 1}
5
13
5
["BytesIO", "bucket.download_fileobj", "json.loads", "decode", "manifest.getvalue"]
0
[]
The function (assert_manifest) defined within the public class called public.The function start at line 181 and ends at 193. It contains 3 lines of code and it has a cyclomatic complexity of 1. The function does not take any parameters, and this function return a value. It declares 5.0 functions, and It has 5.0 functi...
aws-deadline_deadline-cloud
public
public
0
0
assert_canonical_manifest.__inner_func__
def __inner_func__(bucket, manifest_location: str, expected_manifest: str):with BytesIO() as manifest:bucket.download_fileobj(manifest_location, manifest)assert manifest.getvalue().decode("utf-8") == expected_manifest
1
4
3
41
0
202
206
202
null
[]
None
null
0
0
0
null
0
null
The function (assert_canonical_manifest.__inner_func__) defined within the public class called public.The function start at line 202 and ends at 206. It contains 4 lines of code and it has a cyclomatic complexity of 1. It takes 3 parameters, represented as [202.0] and does not return any value..
aws-deadline_deadline-cloud
public
public
0
0
assert_canonical_manifest
def assert_canonical_manifest():"""Assert that a canonical manifest file in a mock s3 bucket matches what's expected."""def __inner_func__(bucket, manifest_location: str, expected_manifest: str):with BytesIO() as manifest:bucket.download_fileobj(manifest_location, manifest)assert manifest.getvalue().decode("utf-8") == ...
1
3
0
9
0
197
208
197
[]
Returns
{"Expr": 2, "Return": 1, "With": 1}
4
12
4
["BytesIO", "bucket.download_fileobj", "decode", "manifest.getvalue"]
4
["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.94876780_aws_deadline_deadline_cloud.test.unit.deadline_job_attachments.test_asset_sync_py.TestAssetSync.test_sync_outputs", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.94876780_aws_deadline_deadline_cloud.test.un...
The function (assert_canonical_manifest) defined within the public class called public.The function start at line 197 and ends at 208. It contains 3 lines of code and it has a cyclomatic complexity of 1. The function does not take any parameters, and this function return a value. It declares 4.0 functions, It has 4.0 f...