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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
aiondemand_AIOD-rest-api | public | public | 0 | 0 | test_get_unauthenticated | def test_get_unauthenticated(client_test_resource: TestClient, auto_publish: None, engine_test_resource_filled: Engine):"""You don't need authentication for GET"""response = client_test_resource.get(f"/test_resources/{engine_test_resource_filled}")assert response.status_code == 200, response.json() | 1 | 3 | 3 | 37 | 1 | 18 | 21 | 18 | client_test_resource,auto_publish,engine_test_resource_filled | ['response'] | None | {"Assign": 1, "Expr": 1} | 2 | 4 | 2 | ["client_test_resource.get", "response.json"] | 0 | [] | The function (test_get_unauthenticated) defined within the public class called public.The function start at line 18 and ends at 21. It contains 3 lines of code and it has a cyclomatic complexity of 1. It takes 3 parameters, represented as [18.0] and does not return any value. It declares 2.0 functions, and It has 2.0 ... |
aiondemand_AIOD-rest-api | public | public | 0 | 0 | test_platform_get_all_unauthenticated | def test_platform_get_all_unauthenticated(client_test_resource: TestClient, engine_test_resource_filled: Engine):"""You don't need authentication for GET"""response = client_test_resource.get("/platforms/example/test_resources")assert response.status_code == 200, response.json()assert len(response.json()) == 1 | 1 | 6 | 2 | 43 | 1 | 24 | 30 | 24 | client_test_resource,engine_test_resource_filled | ['response'] | None | {"Assign": 1, "Expr": 1} | 4 | 7 | 4 | ["client_test_resource.get", "response.json", "len", "response.json"] | 0 | [] | The function (test_platform_get_all_unauthenticated) defined within the public class called public.The function start at line 24 and ends at 30. It contains 6 lines of code and it has a cyclomatic complexity of 1. It takes 2 parameters, represented as [24.0] and does not return any value. It declares 4.0 functions, and... |
aiondemand_AIOD-rest-api | public | public | 0 | 0 | test_platform_get_unauthenticated | def test_platform_get_unauthenticated(client_test_resource: TestClient, engine_test_resource_filled: Engine):"""You don't need authentication for GET"""response = client_test_resource.get("/platforms/example/test_resources")assert response.status_code == 200, response.json()assert len(response.json()) == 1 | 1 | 6 | 2 | 43 | 1 | 33 | 39 | 33 | client_test_resource,engine_test_resource_filled | ['response'] | None | {"Assign": 1, "Expr": 1} | 4 | 7 | 4 | ["client_test_resource.get", "response.json", "len", "response.json"] | 0 | [] | The function (test_platform_get_unauthenticated) defined within the public class called public.The function start at line 33 and ends at 39. It contains 6 lines of code and it has a cyclomatic complexity of 1. It takes 2 parameters, represented as [33.0] and does not return any value. It declares 4.0 functions, and It... |
aiondemand_AIOD-rest-api | public | public | 0 | 0 | test_delete_authorized | def test_delete_authorized(client_test_resource, mocked_token: Mock, engine_test_resource_filled: Engine):response = client_test_resource.delete(f"/test_resources/{engine_test_resource_filled}",headers={"Authorization": "fake-token"},)assert response.status_code == 200, response.json() | 1 | 8 | 3 | 43 | 1 | 50 | 57 | 50 | client_test_resource,mocked_token,engine_test_resource_filled | ['response'] | None | {"Assign": 1} | 3 | 8 | 3 | ["client_test_resource.delete", "response.json", "pytest.mark.parametrize"] | 0 | [] | The function (test_delete_authorized) defined within the public class called public.The function start at line 50 and ends at 57. It contains 8 lines of code and it has a cyclomatic complexity of 1. It takes 3 parameters, represented as [50.0] and does not return any value. It declares 3.0 functions, and It has 3.0 fu... |
aiondemand_AIOD-rest-api | public | public | 0 | 0 | test_post_unauthenticated | def test_post_unauthenticated(client_test_resource: TestClient):response = client_test_resource.post("/test_resources", json={"title": "example"})assert response.status_code == 401, response.json()response_json = response.json()assert (response_json["detail"]== "No token found - This endpoint requires authorization. Yo... | 1 | 8 | 1 | 51 | 2 | 60 | 67 | 60 | client_test_resource | ['response_json', 'response'] | None | {"Assign": 2} | 3 | 8 | 3 | ["client_test_resource.post", "response.json", "response.json"] | 0 | [] | The function (test_post_unauthenticated) defined within the public class called public.The function start at line 60 and ends at 67. It contains 8 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 fu... |
aiondemand_AIOD-rest-api | public | public | 0 | 0 | test_put_authorized | def test_put_authorized(client_test_resource, mocked_token: Mock, engine_test_resource_filled: Engine):response = client_test_resource.put(f"/test_resources/{engine_test_resource_filled}",json={"title": "example"},headers={"Authorization": "fake-token"},)assert response.status_code == 200, response.json() | 1 | 9 | 3 | 51 | 1 | 78 | 86 | 78 | client_test_resource,mocked_token,engine_test_resource_filled | ['response'] | None | {"Assign": 1} | 3 | 9 | 3 | ["client_test_resource.put", "response.json", "pytest.mark.parametrize"] | 0 | [] | The function (test_put_authorized) defined within the public class called public.The function start at line 78 and ends at 86. It contains 9 lines of code and it has a cyclomatic complexity of 1. It takes 3 parameters, represented as [78.0] and does not return any value. It declares 3.0 functions, and It has 3.0 funct... |
aiondemand_AIOD-rest-api | public | public | 0 | 0 | test_put_unauthorized | def test_put_unauthorized(client_test_resource: TestClient, mocked_token: Mock, engine_test_resource_filled: Engine):response = client_test_resource.put(f"/test_resources/{engine_test_resource_filled}",json={"title": "example"},headers={"Authorization": "fake-token"},)assert response.status_code == 403, response.json()... | 1 | 11 | 3 | 67 | 2 | 92 | 102 | 92 | client_test_resource,mocked_token,engine_test_resource_filled | ['response_json', 'response'] | None | {"Assign": 2} | 4 | 11 | 4 | ["client_test_resource.put", "response.json", "response.json", "pytest.mark.parametrize"] | 0 | [] | The function (test_put_unauthorized) defined within the public class called public.The function start at line 92 and ends at 102. It contains 11 lines of code and it has a cyclomatic complexity of 1. It takes 3 parameters, represented as [92.0] and does not return any value. It declares 4.0 functions, and It has 4.0 f... |
aiondemand_AIOD-rest-api | public | public | 0 | 0 | test_put_unauthenticated | def test_put_unauthenticated(client_test_resource: TestClient):response = client_test_resource.put("/test_resources/1", json={"title": "example"})assert response.status_code == 401, response.json()response_json = response.json()assert (response_json["detail"]== "No token found - This endpoint requires authorization. Yo... | 1 | 8 | 1 | 51 | 2 | 105 | 112 | 105 | client_test_resource | ['response_json', 'response'] | None | {"Assign": 2} | 3 | 8 | 3 | ["client_test_resource.put", "response.json", "response.json"] | 0 | [] | The function (test_put_unauthenticated) defined within the public class called public.The function start at line 105 and ends at 112. It contains 8 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 f... |
aiondemand_AIOD-rest-api | public | public | 0 | 0 | test_nondeprecated_versions | def test_nondeprecated_versions(client: TestClient):response = client.get("/datasets")assert response.status_code == HTTPStatus.OKassert 'Deprecation' not in response.headersassert 'Sunset' not in response.headers | 1 | 5 | 1 | 37 | 1 | 7 | 11 | 7 | client | ['response'] | None | {"Assign": 1} | 1 | 5 | 1 | ["client.get"] | 0 | [] | The function (test_nondeprecated_versions) defined within the public class called public.The function start at line 7 and ends at 11. 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 declare 1.0 function, and It has 1.0 fun... |
aiondemand_AIOD-rest-api | public | public | 0 | 0 | test_happy_path | def test_happy_path(client_test_resource: TestClient,index: int,):resources = [factory_test_resource(title="my_test_resource", status=EntryStatus.DRAFT,platform="example", platform_resource_identifier=1),factory_test_resource(title="second_test_resource", status=EntryStatus.DRAFT,platform="example", platform_resource_i... | 4 | 24 | 2 | 183 | 5 | 16 | 42 | 16 | client_test_resource,index | ['identifiers', 'response_json', 'response', 'resources', 'identifier'] | None | {"Assign": 6, "Expr": 1, "For": 1, "With": 1} | 12 | 27 | 12 | ["factory_test_resource", "factory_test_resource", "register_asset", "logged_in_user", "client_test_resource.delete", "response.json", "client_test_resource.get", "response.json", "response.json", "len", "set", "pytest.mark.parametrize"] | 0 | [] | The function (test_happy_path) defined within the public class called public.The function start at line 16 and ends at 42. It contains 24 lines of code and it has a cyclomatic complexity of 4. It takes 2 parameters, represented as [16.0] and does not return any value. It declares 12.0 functions, and It has 12.0 functi... |
aiondemand_AIOD-rest-api | public | public | 0 | 0 | test_delete_requires_admin | def test_delete_requires_admin(owner: KeycloakUser,other: KeycloakUser,client_test_resource: TestClient,):identifier = register_asset(factory_test_resource(), owner=owner, status=EntryStatus.DRAFT)try_delete = partial(client_test_resource.delete,f"/test_resources/{identifier}",headers={"Authorization": "Fake token"})as... | 1 | 16 | 3 | 95 | 2 | 49 | 64 | 49 | owner,other,client_test_resource | ['try_delete', 'identifier'] | None | {"Assign": 2, "With": 2} | 9 | 16 | 9 | ["register_asset", "factory_test_resource", "partial", "try_delete", "logged_in_user", "try_delete", "logged_in_user", "try_delete", "pytest.mark.parametrize"] | 0 | [] | The function (test_delete_requires_admin) defined within the public class called public.The function start at line 49 and ends at 64. It contains 16 lines of code and it has a cyclomatic complexity of 1. It takes 3 parameters, represented as [49.0] and does not return any value. It declares 9.0 functions, and It has 9... |
aiondemand_AIOD-rest-api | public | public | 0 | 0 | test_non_existent | def test_non_existent(client_test_resource: TestClient,mocked_privileged_token: Mock,):response = client_test_resource.delete(f"/test_resources/test_44", headers={"Authorization": "Fake token"})assert response.status_code == HTTPStatus.NOT_FOUND, response.json()assert response.json()["detail"] == f"Test_resource 'test_... | 1 | 9 | 2 | 55 | 1 | 67 | 75 | 67 | client_test_resource,mocked_privileged_token | ['response'] | None | {"Assign": 1} | 3 | 9 | 3 | ["client_test_resource.delete", "response.json", "response.json"] | 0 | [] | The function (test_non_existent) defined within the public class called public.The function start at line 67 and ends at 75. It contains 9 lines of code and it has a cyclomatic complexity of 1. It takes 2 parameters, represented as [67.0] and does not return any value. It declares 3.0 functions, and It has 3.0 functio... |
aiondemand_AIOD-rest-api | public | public | 0 | 0 | test_not_valid | def test_not_valid(client_test_resource: TestClient,mocked_privileged_token: Mock,):response = client_test_resource.delete(f"/test_resources/data_44", headers={"Authorization": "Fake token"})assert response.status_code == HTTPStatus.UNPROCESSABLE_ENTITY, response.json()assert "is not a valid" in response.json()["detail... | 1 | 9 | 2 | 54 | 1 | 78 | 86 | 78 | client_test_resource,mocked_privileged_token | ['response'] | None | {"Assign": 1} | 3 | 9 | 3 | ["client_test_resource.delete", "response.json", "response.json"] | 0 | [] | The function (test_not_valid) defined within the public class called public.The function start at line 78 and ends at 86. It contains 9 lines of code and it has a cyclomatic complexity of 1. It takes 2 parameters, represented as [78.0] and does not return any value. It declares 3.0 functions, and It has 3.0 functions ... |
aiondemand_AIOD-rest-api | public | public | 0 | 0 | test_add_after_deletion | def test_add_after_deletion(client_test_resource: TestClient,mocked_privileged_token: Mock,):body = {"title": "my_favourite_resource"}response = client_test_resource.post("/test_resources", json=body, headers={"Authorization": "Fake token"})assert response.status_code == 200, response.json()id_ = response.json()["ident... | 1 | 18 | 2 | 122 | 3 | 89 | 106 | 89 | client_test_resource,mocked_privileged_token | ['body', 'id_', 'response'] | None | {"Assign": 5} | 7 | 18 | 7 | ["client_test_resource.post", "response.json", "response.json", "client_test_resource.delete", "response.json", "client_test_resource.post", "response.json"] | 0 | [] | The function (test_add_after_deletion) defined within the public class called public.The function start at line 89 and ends at 106. It contains 18 lines of code and it has a cyclomatic complexity of 1. It takes 2 parameters, represented as [89.0] and does not return any value. It declares 7.0 functions, and It has 7.0... |
aiondemand_AIOD-rest-api | public | public | 0 | 0 | test_get_happy_path | def test_get_happy_path(client_test_resource: TestClient, engine_test_resource_filled: str):response = client_test_resource.get(f"/test_resources/{engine_test_resource_filled}")assert response.status_code == HTTPStatus.OK, response.json()response_json = response.json()assert response_json["title"] == "A title"assert re... | 1 | 7 | 2 | 65 | 2 | 11 | 18 | 11 | client_test_resource,engine_test_resource_filled | ['response_json', 'response'] | None | {"Assign": 2} | 4 | 8 | 4 | ["client_test_resource.get", "response.json", "response.json", "startswith"] | 0 | [] | The function (test_get_happy_path) defined within the public class called public.The function start at line 11 and ends at 18. It contains 7 lines of code and it has a cyclomatic complexity of 1. It takes 2 parameters, represented as [11.0] and does not return any value. It declares 4.0 functions, and It has 4.0 funct... |
aiondemand_AIOD-rest-api | public | public | 0 | 0 | test_not_found | def test_not_found(client_test_resource: TestClient, engine_test_resource_filled: str):response = client_test_resource.get("/test_resources/test_99")assert response.status_code == HTTPStatus.NOT_FOUND, response.json()assert response.json()["detail"] == "Test_resource 'test_99' not found in the database." | 1 | 4 | 2 | 44 | 1 | 21 | 24 | 21 | client_test_resource,engine_test_resource_filled | ['response'] | None | {"Assign": 1} | 3 | 4 | 3 | ["client_test_resource.get", "response.json", "response.json"] | 0 | [] | The function (test_not_found) defined within the public class called public.The function start at line 21 and ends at 24. It contains 4 lines of code and it has a cyclomatic complexity of 1. It takes 2 parameters, represented as [21.0] and does not return any value. It declares 3.0 functions, and It has 3.0 functions ... |
aiondemand_AIOD-rest-api | public | public | 0 | 0 | test_not_valid | def test_not_valid(client_test_resource: TestClient, engine_test_resource_filled: str):response = client_test_resource.get("/test_resources/99")assert response.status_code == HTTPStatus.UNPROCESSABLE_ENTITY, response.json()assert "is not a valid" in response.json()["detail"] | 1 | 4 | 2 | 44 | 1 | 27 | 30 | 27 | client_test_resource,engine_test_resource_filled | ['response'] | None | {"Assign": 1} | 3 | 4 | 3 | ["client_test_resource.get", "response.json", "response.json"] | 0 | [] | The function (test_not_valid) defined within the public class called public.The function start at line 27 and ends at 30. It contains 4 lines of code and it has a cyclomatic complexity of 1. It takes 2 parameters, represented as [27.0] and does not return any value. It declares 3.0 functions, and It has 3.0 functions ... |
aiondemand_AIOD-rest-api | public | public | 0 | 0 | test_get_draft_unauthenticated_not_allowed | def test_get_draft_unauthenticated_not_allowed(client_test_resource: TestClient):identifier = register_asset(factory_test_resource(), owner=ALICE, status=EntryStatus.DRAFT)response = client_test_resource.get(f"/test_resources/{identifier}")assert response.status_code == HTTPStatus.UNAUTHORIZED | 1 | 4 | 1 | 42 | 2 | 33 | 36 | 33 | client_test_resource | ['identifier', 'response'] | None | {"Assign": 2} | 3 | 4 | 3 | ["register_asset", "factory_test_resource", "client_test_resource.get"] | 0 | [] | The function (test_get_draft_unauthenticated_not_allowed) defined within the public class called public.The function start at line 33 and ends at 36. 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. It declares 3.0 functions, a... |
aiondemand_AIOD-rest-api | public | public | 0 | 0 | test_get_draft_no_permission_not_allowed | def test_get_draft_no_permission_not_allowed(client_test_resource: TestClient):identifier = register_asset(factory_test_resource(), owner=ALICE, status=EntryStatus.DRAFT)with logged_in_user():response = client_test_resource.get(f"/test_resources/{identifier}", headers={"Authorization": "fake-token"})assert response.sta... | 1 | 5 | 1 | 55 | 2 | 39 | 43 | 39 | client_test_resource | ['identifier', 'response'] | None | {"Assign": 2, "With": 1} | 4 | 5 | 4 | ["register_asset", "factory_test_resource", "logged_in_user", "client_test_resource.get"] | 0 | [] | The function (test_get_draft_no_permission_not_allowed) defined within the public class called public.The function start at line 39 and ends at 43. 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, and... |
aiondemand_AIOD-rest-api | public | public | 0 | 0 | test_get_draft_with_permission_is_allowed | def test_get_draft_with_permission_is_allowed(client_test_resource: TestClient):identifier = register_asset(factory_test_resource(), owner=ALICE, status=EntryStatus.DRAFT)with logged_in_user(ALICE):response = client_test_resource.get(f"/test_resources/{identifier}", headers={"Authorization": "fake-token"})assert respon... | 1 | 5 | 1 | 56 | 2 | 46 | 50 | 46 | client_test_resource | ['identifier', 'response'] | None | {"Assign": 2, "With": 1} | 4 | 5 | 4 | ["register_asset", "factory_test_resource", "logged_in_user", "client_test_resource.get"] | 0 | [] | The function (test_get_draft_with_permission_is_allowed) defined within the public class called public.The function start at line 46 and ends at 50. 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, an... |
aiondemand_AIOD-rest-api | public | public | 0 | 0 | test_get_all_happy_path | def test_get_all_happy_path(client_test_resource: TestClient):resources = [factory_test_resource(title="my_test_resource_1", status=EntryStatus.PUBLISHED,platform_resource_identifier="2"),factory_test_resource(title="My second test resource", status=EntryStatus.PUBLISHED,platform_resource_identifier="3"),factory_test_r... | 2 | 23 | 1 | 173 | 4 | 8 | 32 | 8 | client_test_resource | ['response_json', 'resources', 'identifiers', 'response'] | None | {"Assign": 5, "Expr": 2, "With": 1} | 10 | 25 | 10 | ["factory_test_resource", "factory_test_resource", "factory_test_resource", "DbSession", "session.add_all", "session.commit", "client_test_resource.get", "response.json", "response.json", "len"] | 0 | [] | The function (test_get_all_happy_path) defined within the public class called public.The function start at line 8 and ends at 32. It contains 23 lines of code and it has a cyclomatic complexity of 2. The function does not take any parameters and does not return any value. It declares 10.0 functions, and It has 10.0 fu... |
aiondemand_AIOD-rest-api | public | public | 0 | 0 | test_get_count_happy_path | def test_get_count_happy_path(client_test_resource: TestClient):with DbSession() as session:session.add_all([factory_test_resource(title="my_test_resource_1", status=EntryStatus.PUBLISHED,platform_resource_identifier="1"),factory_test_resource(title="My second test resource", status=EntryStatus.PUBLISHED,platform_resou... | 1 | 21 | 1 | 142 | 2 | 14 | 35 | 14 | client_test_resource | ['response_json', 'response'] | None | {"Assign": 2, "Expr": 2, "With": 1} | 11 | 22 | 11 | ["DbSession", "session.add_all", "factory_test_resource", "factory_test_resource", "factory_test_resource", "datetime.datetime.now", "factory_test_resource", "session.commit", "client_test_resource.get", "response.json", "response.json"] | 0 | [] | The function (test_get_count_happy_path) defined within the public class called public.The function start at line 14 and ends at 35. It contains 21 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 11.0 functions, and It has 11.0... |
aiondemand_AIOD-rest-api | public | public | 0 | 0 | test_get_count_detailed_happy_path | def test_get_count_detailed_happy_path(client_test_resource: TestClient):with DbSession() as session:session.add_all([factory_test_resource(title="my_test_resource_1", status=EntryStatus.PUBLISHED,platform_resource_identifier="1"),factory_test_resource(title="My second test resource", status=EntryStatus.PUBLISHED,platf... | 1 | 23 | 1 | 183 | 2 | 38 | 61 | 38 | client_test_resource | ['response_json', 'response'] | None | {"Assign": 2, "Expr": 2, "With": 1} | 12 | 24 | 12 | ["DbSession", "session.add_all", "factory_test_resource", "factory_test_resource", "factory_test_resource", "datetime.datetime.now", "factory_test_resource", "factory_test_resource", "session.commit", "client_test_resource.get", "response.json", "response.json"] | 0 | [] | The function (test_get_count_detailed_happy_path) defined within the public class called public.The function start at line 38 and ends at 61. 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 12.0 functions, and It... |
aiondemand_AIOD-rest-api | public | public | 0 | 0 | test_get_count_total | def test_get_count_total(client: TestClient,person: Person,publication: Publication,contact: Contact,):register_asset(person)register_asset(publication)register_asset(contact)resources = [Publication(name="2", platform="example", platform_resource_identifier=2),Publication(name="3", platform="example", platform_resourc... | 2 | 28 | 4 | 171 | 3 | 64 | 95 | 64 | client,person,publication,contact | ['resources', 'response_json', 'response'] | None | {"Assign": 5, "Expr": 5, "For": 1, "With": 1} | 12 | 32 | 12 | ["register_asset", "register_asset", "register_asset", "Publication", "Publication", "AIoDEntryORM", "DbSession", "session.add_all", "session.commit", "client.get", "response.json", "response.json"] | 0 | [] | The function (test_get_count_total) defined within the public class called public.The function start at line 64 and ends at 95. It contains 28 lines of code and it has a cyclomatic complexity of 2. It takes 4 parameters, represented as [64.0] and does not return any value. It declares 12.0 functions, and It has 12.0 f... |
aiondemand_AIOD-rest-api | public | public | 0 | 0 | test_get_happy_path | def test_get_happy_path(client_test_resource: TestClient, engine_test_resource_filled: Engine):response = client_test_resource.get(f"/platforms/example/test_resources/1")assert response.status_code == 200, response.json()response_json = response.json()assert response_json["title"] == "A title"assert response_json["iden... | 1 | 7 | 2 | 60 | 2 | 5 | 12 | 5 | client_test_resource,engine_test_resource_filled | ['response_json', 'response'] | None | {"Assign": 2} | 3 | 8 | 3 | ["client_test_resource.get", "response.json", "response.json"] | 0 | [] | The function (test_get_happy_path) defined within the public class called public.The function start at line 5 and ends at 12. It contains 7 lines of code and it has a cyclomatic complexity of 1. It takes 2 parameters, represented as [5.0] and does not return any value. It declares 3.0 functions, and It has 3.0 functio... |
aiondemand_AIOD-rest-api | public | public | 0 | 0 | test_not_found | def test_not_found(client_test_resource: TestClient, engine_test_resource_filled: Engine):response = client_test_resource.get("/platforms/example/test_resources/99")assert response.status_code == 404, response.json()assert response.json()["detail"] == "Test_resource '99' of 'example' not found in the database." | 1 | 4 | 2 | 42 | 1 | 15 | 18 | 15 | client_test_resource,engine_test_resource_filled | ['response'] | None | {"Assign": 1} | 3 | 4 | 3 | ["client_test_resource.get", "response.json", "response.json"] | 0 | [] | The function (test_not_found) defined within the public class called public.The function start at line 15 and ends at 18. It contains 4 lines of code and it has a cyclomatic complexity of 1. It takes 2 parameters, represented as [15.0] and does not return any value. It declares 3.0 functions, and It has 3.0 functions ... |
aiondemand_AIOD-rest-api | public | public | 0 | 0 | test_wrong_platform | def test_wrong_platform(client_test_resource: TestClient, engine_test_resource_filled: Engine):response = client_test_resource.get("/platforms/openml/test_resources/1")assert response.status_code == 404, response.json()assert response.json()["detail"] == "Test_resource '1' of 'openml' not found in the database." | 1 | 4 | 2 | 42 | 1 | 21 | 24 | 21 | client_test_resource,engine_test_resource_filled | ['response'] | None | {"Assign": 1} | 3 | 4 | 3 | ["client_test_resource.get", "response.json", "response.json"] | 0 | [] | The function (test_wrong_platform) defined within the public class called public.The function start at line 21 and ends at 24. It contains 4 lines of code and it has a cyclomatic complexity of 1. It takes 2 parameters, represented as [21.0] and does not return any value. It declares 3.0 functions, and It has 3.0 funct... |
aiondemand_AIOD-rest-api | public | public | 0 | 0 | test_nonexistent_platform | def test_nonexistent_platform(client_test_resource: TestClient, engine_test_resource_filled: Engine):response = client_test_resource.get("/platforms/nonexistent_platform/test_resources/1")assert response.status_code == 400, response.json()assert response.json()["detail"] == "platform 'nonexistent_platform' not recogniz... | 1 | 6 | 2 | 42 | 1 | 27 | 32 | 27 | client_test_resource,engine_test_resource_filled | ['response'] | None | {"Assign": 1} | 3 | 6 | 3 | ["client_test_resource.get", "response.json", "response.json"] | 0 | [] | The function (test_nonexistent_platform) defined within the public class called public.The function start at line 27 and ends at 32. It contains 6 lines of code and it has a cyclomatic complexity of 1. It takes 2 parameters, represented as [27.0] and does not return any value. It declares 3.0 functions, and It has 3.0... |
aiondemand_AIOD-rest-api | public | public | 0 | 0 | test_get_all_happy_path | def test_get_all_happy_path(client_test_resource: TestClient, auto_publish):resources = [TestResource(title="my_test_resource_1", platform="example", platform_resource_identifier="1",aiod_entry=AIoDEntryORM(),),TestResource(title="My second test resource",platform="example",platform_resource_identifier="2",aiod_entry=A... | 2 | 27 | 2 | 166 | 4 | 8 | 35 | 8 | client_test_resource,auto_publish | ['response_json', 'resources', 'identifiers', 'response'] | None | {"Assign": 5, "Expr": 2, "With": 1} | 11 | 28 | 11 | ["TestResource", "AIoDEntryORM", "TestResource", "AIoDEntryORM", "DbSession", "session.add_all", "session.commit", "client_test_resource.get", "response.json", "response.json", "len"] | 0 | [] | The function (test_get_all_happy_path) defined within the public class called public.The function start at line 8 and ends at 35. It contains 27 lines of code and it has a cyclomatic complexity of 2. It takes 2 parameters, represented as [8.0] and does not return any value. It declares 11.0 functions, and It has 11.0 ... |
aiondemand_AIOD-rest-api | public | public | 0 | 0 | test_unicode | def test_unicode(client_test_resource: TestClient, title: str, auto_publish: None):with logged_in_user():response = client_test_resource.post("/test_resources",json={"title": title},headers={"Authorization": "Fake token"},)assert response.status_code == 200, response.json()assert "identifier" in response.json()identifi... | 1 | 15 | 3 | 119 | 3 | 20 | 35 | 20 | client_test_resource,title,auto_publish | ['response_json', 'identifier', 'response'] | None | {"Assign": 4, "With": 1} | 9 | 16 | 9 | ["logged_in_user", "client_test_resource.post", "response.json", "response.json", "response.json", "client_test_resource.get", "response.json", "response.json", "pytest.mark.parametrize"] | 0 | [] | The function (test_unicode) defined within the public class called public.The function start at line 20 and ends at 35. It contains 15 lines of code and it has a cyclomatic complexity of 1. It takes 3 parameters, represented as [20.0] and does not return any value. It declares 9.0 functions, and It has 9.0 functions c... |
aiondemand_AIOD-rest-api | public | public | 0 | 0 | test_missing_value | def test_missing_value(client_test_resource: TestClient):body: dict[str, str] = {}with logged_in_user():response = client_test_resource.post("/test_resources", json=body, headers={"Authorization": "Fake token"})assert response.status_code == 422, response.json()assert response.json()["detail"] == [{"loc": ["body", "tit... | 1 | 10 | 1 | 84 | 1 | 38 | 47 | 38 | client_test_resource | ['response'] | None | {"AnnAssign": 1, "Assign": 1, "With": 1} | 4 | 10 | 4 | ["logged_in_user", "client_test_resource.post", "response.json", "response.json"] | 0 | [] | The function (test_missing_value) defined within the public class called public.The function start at line 38 and ends at 47. 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 function... |
aiondemand_AIOD-rest-api | public | public | 0 | 0 | test_null_value | def test_null_value(client_test_resource: TestClient):body = {"title": None}with logged_in_user():response = client_test_resource.post("/test_resources", json=body, headers={"Authorization": "Fake token"})assert response.status_code == 422, response.json()assert response.json()["detail"] == [{"loc": ["body", "title"],"... | 1 | 14 | 1 | 81 | 2 | 50 | 63 | 50 | client_test_resource | ['body', 'response'] | None | {"Assign": 2, "With": 1} | 4 | 14 | 4 | ["logged_in_user", "client_test_resource.post", "response.json", "response.json"] | 0 | [] | The function (test_null_value) defined within the public class called public.The function start at line 50 and ends at 63. It contains 14 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 c... |
aiondemand_AIOD-rest-api | public | public | 0 | 0 | test_posting_same_item_twice | def test_posting_same_item_twice(client_test_resource: TestClient):headers = {"Authorization": "Fake token"}body = {"title": "title1", "platform": "example", "platform_resource_identifier": "1"}connector_user = kc_connector_with_roles()with logged_in_user(connector_user):response = client_test_resource.post("/test_reso... | 1 | 16 | 1 | 141 | 5 | 66 | 83 | 66 | client_test_resource | ['body', 'headers', 'response', 'connector_user', 'identifier'] | None | {"Assign": 7, "With": 2} | 9 | 18 | 9 | ["kc_connector_with_roles", "logged_in_user", "client_test_resource.post", "response.json", "response.json", "logged_in_user", "client_test_resource.post", "response.json", "response.json"] | 0 | [] | The function (test_posting_same_item_twice) defined within the public class called public.The function start at line 66 and ends at 83. It contains 16 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 9.0 functions, and It has 9.... |
aiondemand_AIOD-rest-api | public | public | 0 | 0 | test_posting_same_item_twice_but_deleted | def test_posting_same_item_twice_but_deleted(client_test_resource: TestClient):headers = {"Authorization": "Fake token"}body = {"title": "title1"}with logged_in_user():response = client_test_resource.post("/test_resources", json=body, headers=headers)identifier = response.json()["identifier"]assert response.status_code... | 1 | 17 | 1 | 144 | 4 | 86 | 104 | 86 | client_test_resource | ['headers', 'body', 'identifier', 'response'] | None | {"Assign": 8, "With": 3} | 11 | 19 | 11 | ["logged_in_user", "client_test_resource.post", "response.json", "response.json", "response.json", "logged_in_user", "client_test_resource.delete", "response.json", "logged_in_user", "client_test_resource.post", "response.json"] | 0 | [] | The function (test_posting_same_item_twice_but_deleted) defined within the public class called public.The function start at line 86 and ends at 104. It contains 17 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 11.0 functions, ... |
aiondemand_AIOD-rest-api | public | public | 0 | 0 | test_platform_and_platform_identifier_defaults_are_set_if_not_provided | def test_platform_and_platform_identifier_defaults_are_set_if_not_provided(client_test_resource: TestClient):"""The platform and platform_resource_identifier are set by the server."""headers = {"Authorization": "Fake token"}body = {"title": "title1", "platform": None, "platform_resource_identifier": None}with logged_in... | 1 | 12 | 1 | 111 | 3 | 107 | 122 | 107 | client_test_resource | ['headers', 'body', 'response'] | None | {"Assign": 5, "Expr": 1, "With": 2} | 6 | 16 | 6 | ["logged_in_user", "client_test_resource.post", "response.json", "logged_in_user", "client_test_resource.post", "response.json"] | 0 | [] | The function (test_platform_and_platform_identifier_defaults_are_set_if_not_provided) defined within the public class called public.The function start at line 107 and ends at 122. 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 valu... |
aiondemand_AIOD-rest-api | public | public | 0 | 0 | test_post_platform_and_platform_resource_identifier_rejected | def test_post_platform_and_platform_resource_identifier_rejected(client_test_resource: TestClient):headers = {"Authorization": "Fake token"}body = {"title": "title1", "platform": "aiod", "platform_resource_identifier": 2}with logged_in_user():response = client_test_resource.post("/test_resources", json=body, headers=he... | 1 | 10 | 1 | 71 | 3 | 124 | 134 | 124 | client_test_resource | ['headers', 'body', 'response'] | None | {"Assign": 3, "With": 1} | 3 | 11 | 3 | ["logged_in_user", "client_test_resource.post", "response.json"] | 0 | [] | The function (test_post_platform_and_platform_resource_identifier_rejected) defined within the public class called public.The function start at line 124 and ends at 134. 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... |
aiondemand_AIOD-rest-api | public | public | 0 | 0 | test_no_platform_with_platform_resource_identifier | def test_no_platform_with_platform_resource_identifier(client_test_resource: TestClient):headers = {"Authorization": "Fake token"}body = {"title": "title1", "platform": None, "platform_resource_identifier": "1"}with logged_in_user():response = client_test_resource.post("/test_resources", json=body, headers=headers)asse... | 1 | 12 | 1 | 77 | 3 | 138 | 149 | 138 | client_test_resource | ['headers', 'body', 'response'] | None | {"Assign": 3, "With": 1} | 4 | 12 | 4 | ["logged_in_user", "client_test_resource.post", "response.json", "response.json"] | 0 | [] | The function (test_no_platform_with_platform_resource_identifier) defined within the public class called public.The function start at line 138 and ends at 149. 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 declares 4.0 f... |
aiondemand_AIOD-rest-api | public | public | 0 | 0 | test_platform_with_no_platform_resource_identifier | def test_platform_with_no_platform_resource_identifier(client_test_resource: TestClient):headers = {"Authorization": "Fake token"}body = {"title": "title1", "platform": "example", "platform_resource_identifier": None}with logged_in_user():response = client_test_resource.post("/test_resources", json=body, headers=header... | 1 | 12 | 1 | 77 | 3 | 152 | 163 | 152 | client_test_resource | ['headers', 'body', 'response'] | None | {"Assign": 3, "With": 1} | 4 | 12 | 4 | ["logged_in_user", "client_test_resource.post", "response.json", "response.json"] | 0 | [] | The function (test_platform_with_no_platform_resource_identifier) defined within the public class called public.The function start at line 152 and ends at 163. 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 declares 4.0 f... |
aiondemand_AIOD-rest-api | public | public | 0 | 0 | test_connector_can_post_to_valid_platform | def test_connector_can_post_to_valid_platform(client_test_resource: TestClient,):headers = {"Authorization": "Fake token"}connector_user = kc_connector_with_roles()body = {"title": "ConnectorResource","platform": "example","platform_resource_identifier": "conn-123"}with logged_in_user(connector_user):response = client_... | 1 | 13 | 1 | 63 | 4 | 165 | 177 | 165 | client_test_resource | ['headers', 'connector_user', 'body', 'response'] | None | {"Assign": 4, "With": 1} | 3 | 13 | 3 | ["kc_connector_with_roles", "logged_in_user", "client_test_resource.post"] | 0 | [] | The function (test_connector_can_post_to_valid_platform) defined within the public class called public.The function start at line 165 and ends at 177. It contains 13 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,... |
aiondemand_AIOD-rest-api | public | public | 0 | 0 | test_connector_cannot_post_to_other_platform | def test_connector_cannot_post_to_other_platform(client_test_resource: TestClient,):headers = {"Authorization": "Fake token"}connector_user = kc_connector_with_roles()body = {"title": "ConnectorResource","platform": "aiod","platform_resource_identifier": "conn-123"}with logged_in_user(connector_user):response = client_... | 1 | 14 | 1 | 76 | 4 | 180 | 193 | 180 | client_test_resource | ['headers', 'connector_user', 'body', 'response'] | None | {"Assign": 4, "With": 1} | 4 | 14 | 4 | ["kc_connector_with_roles", "logged_in_user", "client_test_resource.post", "response.json"] | 0 | [] | The function (test_connector_cannot_post_to_other_platform) defined within the public class called public.The function start at line 180 and ends at 193. It contains 14 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 functio... |
aiondemand_AIOD-rest-api | public | public | 0 | 0 | test_connector_uploads_bypass_review | def test_connector_uploads_bypass_review(client: TestClient, publication: Publication):publication.platform = "example"publication.platform_resource_identifier = "example_id"with logged_in_user(kc_connector_with_roles()):response = client.post("/publications",content=publication.json(),headers={"Authorization": "Fake t... | 1 | 14 | 2 | 104 | 3 | 196 | 210 | 196 | client,publication | ['asset', 'identifier', 'response'] | None | {"Assign": 5, "With": 2} | 8 | 15 | 8 | ["logged_in_user", "kc_connector_with_roles", "client.post", "publication.json", "response.json", "response.json", "DbSession", "session.get"] | 0 | [] | The function (test_connector_uploads_bypass_review) defined within the public class called public.The function start at line 196 and ends at 210. It contains 14 lines of code and it has a cyclomatic complexity of 1. It takes 2 parameters, represented as [196.0] and does not return any value. It declares 8.0 functions, ... |
aiondemand_AIOD-rest-api | public | public | 0 | 0 | test_taxonomy_is_enforced_for_user | def test_taxonomy_is_enforced_for_user(client: TestClient,body_asset: dict):body_asset["scientific_domain"] = ["not-a-domain"]with logged_in_user():response = client.post("/datasets/", json=body_asset, headers={"Authorization": "Fake token"})assert response.status_code == HTTPStatus.BAD_REQUEST, response.json()body_ass... | 1 | 20 | 2 | 142 | 1 | 214 | 235 | 214 | client,body_asset | ['response'] | None | {"Assign": 6, "With": 1} | 8 | 22 | 8 | ["logged_in_user", "client.post", "response.json", "client.post", "response.json", "client.put", "response.json", "response.json"] | 0 | [] | The function (test_taxonomy_is_enforced_for_user) defined within the public class called public.The function start at line 214 and ends at 235. It contains 20 lines of code and it has a cyclomatic complexity of 1. It takes 2 parameters, represented as [214.0] and does not return any value. It declares 8.0 functions, an... |
aiondemand_AIOD-rest-api | public | public | 0 | 0 | test_taxonomy_is_not_enforced_for_connector | def test_taxonomy_is_not_enforced_for_connector(client: TestClient,body_asset: dict):body_asset["scientific_domain"] = ["not-a-domain"]body_asset["platform"] = "example"body_asset["platform_resource_identifier"] = "example"with logged_in_user(kc_connector_with_roles()):response = client.post("/datasets/", json=body_ass... | 1 | 17 | 2 | 116 | 1 | 238 | 255 | 238 | client,body_asset | ['response'] | None | {"Assign": 6, "With": 1} | 7 | 18 | 7 | ["logged_in_user", "kc_connector_with_roles", "client.post", "response.json", "client.put", "response.json", "response.json"] | 0 | [] | The function (test_taxonomy_is_not_enforced_for_connector) defined within the public class called public.The function start at line 238 and ends at 255. It contains 17 lines of code and it has a cyclomatic complexity of 1. It takes 2 parameters, represented as [238.0] and does not return any value. It declares 7.0 func... |
aiondemand_AIOD-rest-api | public | public | 0 | 0 | test_example_is_valid | def test_example_is_valid(router, client: TestClient, with_organisation_taxonomies):example_values = {}res_create = resource_create(router.resource_class)for attribute, model_field in res_create.__fields__.items():# We don't use `dict.get` because we want to know about -any- value, including Noneif "example" in model_f... | 5 | 15 | 3 | 142 | 4 | 264 | 281 | 264 | router,client,with_organisation_taxonomies | ['example_values', 'res_create', 'examples', 'response'] | None | {"Assign": 7, "For": 1, "If": 3, "With": 1} | 9 | 18 | 9 | ["resource_create", "res_create.__fields__.items", "isinstance", "logged_in_user", "client.post", "response.json", "pytest.mark.versions", "pytest.mark.parametrize", "map"] | 0 | [] | The function (test_example_is_valid) defined within the public class called public.The function start at line 264 and ends at 281. It contains 15 lines of code and it has a cyclomatic complexity of 5. It takes 3 parameters, represented as [264.0] and does not return any value. It declares 9.0 functions, and It has 9.0... |
aiondemand_AIOD-rest-api | public | public | 0 | 0 | test_unicode | def test_unicode(client_test_resource: TestClient,engine_test_resource_filled: Engine,title: str,):with logged_in_user(kc_user_with_roles("update_test_resources")):response = client_test_resource.put(f"/test_resources/{engine_test_resource_filled}",json={"title": title, "platform": "openml", "platform_resource_identifi... | 1 | 18 | 3 | 120 | 2 | 15 | 32 | 15 | client_test_resource,engine_test_resource_filled,title | ['response_json', 'response'] | None | {"Assign": 3, "With": 1} | 8 | 18 | 8 | ["logged_in_user", "kc_user_with_roles", "client_test_resource.put", "response.json", "client_test_resource.get", "response.json", "response.json", "pytest.mark.parametrize"] | 0 | [] | The function (test_unicode) defined within the public class called public.The function start at line 15 and ends at 32. It contains 18 lines of code and it has a cyclomatic complexity of 1. It takes 3 parameters, represented as [15.0] and does not return any value. It declares 8.0 functions, and It has 8.0 functions c... |
aiondemand_AIOD-rest-api | public | public | 0 | 0 | test_non_existent | def test_non_existent(client_test_resource: TestClient,engine_test_resource_filled: Engine,mocked_privileged_token: Mock,):response = client_test_resource.put("/test_resources/test_2",json={"title": "new_title", "platform": "other", "platform_resource_identifier": "2"},headers={"Authorization": "Fake token"},)assert re... | 1 | 13 | 3 | 75 | 2 | 35 | 47 | 35 | client_test_resource,engine_test_resource_filled,mocked_privileged_token | ['response_json', 'response'] | None | {"Assign": 2} | 3 | 13 | 3 | ["client_test_resource.put", "response.json", "response.json"] | 0 | [] | The function (test_non_existent) defined within the public class called public.The function start at line 35 and ends at 47. It contains 13 lines of code and it has a cyclomatic complexity of 1. It takes 3 parameters, represented as [35.0] and does not return any value. It declares 3.0 functions, and It has 3.0 functi... |
aiondemand_AIOD-rest-api | public | public | 0 | 0 | test_wrong_identifier_type | def test_wrong_identifier_type(client_test_resource: TestClient,engine_test_resource_filled: Engine,mocked_privileged_token: Mock,):response = client_test_resource.put("/test_resources/data_2",json={"title": "new_title", "platform": "other", "platform_resource_identifier": "2"},headers={"Authorization": "Fake token"},)... | 1 | 13 | 3 | 77 | 2 | 50 | 62 | 50 | client_test_resource,engine_test_resource_filled,mocked_privileged_token | ['response_json', 'response'] | None | {"Assign": 2} | 3 | 13 | 3 | ["client_test_resource.put", "response.json", "response.json"] | 0 | [] | The function (test_wrong_identifier_type) defined within the public class called public.The function start at line 50 and ends at 62. It contains 13 lines of code and it has a cyclomatic complexity of 1. It takes 3 parameters, represented as [50.0] and does not return any value. It declares 3.0 functions, and It has 3... |
aiondemand_AIOD-rest-api | public | public | 0 | 0 | test_too_long_name | def test_too_long_name(client_test_resource: TestClient,engine_test_resource_filled: Engine,mocked_privileged_token: Mock,):name = "a" * 251response = client_test_resource.put(f"/test_resources/{engine_test_resource_filled}", json={"title": name}, headers={"Authorization": "Fake token"})assert response.status_code == 4... | 1 | 19 | 3 | 99 | 3 | 65 | 83 | 65 | client_test_resource,engine_test_resource_filled,mocked_privileged_token | ['response_json', 'name', 'response'] | None | {"Assign": 3} | 3 | 19 | 3 | ["client_test_resource.put", "response.json", "response.json"] | 0 | [] | The function (test_too_long_name) defined within the public class called public.The function start at line 65 and ends at 83. It contains 19 lines of code and it has a cyclomatic complexity of 1. It takes 3 parameters, represented as [65.0] and does not return any value. It declares 3.0 functions, and It has 3.0 funct... |
aiondemand_AIOD-rest-api | public | public | 0 | 0 | test_no_platform_with_platform_resource_identifier | def test_no_platform_with_platform_resource_identifier(client_test_resource: TestClient,engine_test_resource_filled: Engine,):"""The error handling should be the same as with the POST endpoints, so we're not testing allthe possible UNIQUE / CHECK constraints here, just this one."""with logged_in_user(kc_user_with_roles... | 1 | 16 | 2 | 82 | 1 | 86 | 105 | 86 | client_test_resource,engine_test_resource_filled | ['response'] | None | {"Assign": 1, "Expr": 1, "With": 1} | 5 | 20 | 5 | ["logged_in_user", "kc_user_with_roles", "client_test_resource.put", "response.json", "response.json"] | 0 | [] | The function (test_no_platform_with_platform_resource_identifier) defined within the public class called public.The function start at line 86 and ends at 105. It contains 16 lines of code and it has a cyclomatic complexity of 1. It takes 2 parameters, represented as [86.0] and does not return any value. It declares 5.0... |
aiondemand_AIOD-rest-api | RouterTestObject | public | 0 | 1 | version | def version(self) -> int:return 0 | 1 | 2 | 1 | 9 | 0 | 116 | 117 | 116 | self | [] | int | {"Return": 1} | 0 | 2 | 0 | [] | 20 | ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3719382_myint_rstcheck.src.rstcheck._cli_py.version_callback", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3913638_scijava_scyjava.src.scyjava._versions_py.get_version", "_.content.gdrive.MyDrive.Phd_Thesis.Datase... | The function (version) defined within the public class called RouterTestObject, that inherit another class.The function start at line 116 and ends at 117. 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 has 20.0 functions c... |
aiondemand_AIOD-rest-api | RouterTestObject | public | 0 | 1 | resource_name | def resource_name(self) -> str:return "test_resource" | 1 | 2 | 1 | 9 | 0 | 120 | 121 | 120 | self | [] | str | {"Return": 1} | 0 | 2 | 0 | [] | 0 | [] | The function (resource_name) defined within the public class called RouterTestObject, that inherit another class.The function start at line 120 and ends at 121. 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.. |
aiondemand_AIOD-rest-api | RouterTestObject | public | 0 | 1 | resource_name_plural | def resource_name_plural(self) -> str:return "test_resources" | 1 | 2 | 1 | 9 | 0 | 124 | 125 | 124 | self | [] | str | {"Return": 1} | 0 | 2 | 0 | [] | 0 | [] | The function (resource_name_plural) defined within the public class called RouterTestObject, that inherit another class.The function start at line 124 and ends at 125. 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.. |
aiondemand_AIOD-rest-api | RouterTestObject | public | 0 | 1 | resource_class | def resource_class(self) -> Type[TestObject]:return TestObject | 1 | 2 | 1 | 12 | 0 | 128 | 129 | 128 | self | [] | Type[TestObject] | {"Return": 1} | 0 | 2 | 0 | [] | 0 | [] | The function (resource_class) defined within the public class called RouterTestObject, that inherit another class.The function start at line 128 and ends at 129. 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.. |
aiondemand_AIOD-rest-api | public | public | 0 | 0 | test_objects | def test_objects() -> list[TestObject]:named1, named2 = TestEnum(name="named_string1"), TestEnum(name="named_string2")enum1, enum2, enum3 = TestEnum2(name="1"), TestEnum2(name="2"), TestEnum2(name="3")objects = [TestObject(aiod_entry=AIoDEntryORM(status=EntryStatus.PUBLISHED),title="object 1",named_string=named1,named_... | 1 | 25 | 0 | 161 | 1 | 133 | 157 | 133 | ['objects'] | list[TestObject] | {"Assign": 3, "Return": 1} | 13 | 25 | 13 | ["TestEnum", "TestEnum", "TestEnum2", "TestEnum2", "TestEnum2", "TestObject", "AIoDEntryORM", "TestObject", "AIoDEntryORM", "TestObject", "AIoDEntryORM", "TestObject", "AIoDEntryORM"] | 0 | [] | The function (test_objects) defined within the public class called public.The function start at line 133 and ends at 157. It contains 25 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 13.0 functions, and It has 13.0 functions ... | |
aiondemand_AIOD-rest-api | public | public | 0 | 0 | client_with_testobject | def client_with_testobject(test_objects: list[TestObject]) -> TestClient:with DbSession() as session:session.add_all(test_objects)session.commit()app = FastAPI()app.include_router(RouterTestObject().create(""))yield TestClient(app) | 1 | 7 | 1 | 53 | 1 | 161 | 167 | 161 | test_objects | ['app'] | TestClient | {"Assign": 1, "Expr": 4, "With": 1} | 8 | 7 | 8 | ["DbSession", "session.add_all", "session.commit", "FastAPI", "app.include_router", "create", "RouterTestObject", "TestClient"] | 0 | [] | The function (client_with_testobject) defined within the public class called public.The function start at line 161 and ends at 167. 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 8.0 functions, and It has 8.0 fun... |
aiondemand_AIOD-rest-api | public | public | 0 | 0 | test_get_happy_path | def test_get_happy_path(test_objects: list[TestObject], client_with_testobject: TestClient):identifier = test_objects[0].identifierresponse = client_with_testobject.get(f"/test_resources/{identifier}")assert response.status_code == 200, response.json()response_json = response.json()assert response_json["identifier"] ==... | 1 | 10 | 2 | 89 | 3 | 170 | 180 | 170 | test_objects,client_with_testobject | ['response_json', 'identifier', 'response'] | None | {"Assign": 3} | 3 | 11 | 3 | ["client_with_testobject.get", "response.json", "response.json"] | 0 | [] | The function (test_get_happy_path) defined within the public class called public.The function start at line 170 and ends at 180. It contains 10 lines of code and it has a cyclomatic complexity of 1. It takes 2 parameters, represented as [170.0] and does not return any value. It declares 3.0 functions, and It has 3.0 f... |
aiondemand_AIOD-rest-api | public | public | 0 | 0 | test_get_all_happy_path | def test_get_all_happy_path(client_with_testobject: TestClient):response = client_with_testobject.get("/test_resources")assert response.status_code == 200, response.json()response_json = response.json()assert "deprecated" not in response.headersassert len(response_json) == 4r1, r2, r3, r4 = sorted(response_json, key=la... | 1 | 14 | 1 | 126 | 2 | 183 | 197 | 183 | client_with_testobject | ['response_json', 'response'] | None | {"Assign": 3} | 5 | 15 | 5 | ["client_with_testobject.get", "response.json", "response.json", "len", "sorted"] | 0 | [] | The function (test_get_all_happy_path) defined within the public class called public.The function start at line 183 and ends at 197. It contains 14 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 functions, and It has 5.0 f... |
aiondemand_AIOD-rest-api | public | public | 0 | 0 | test_post_happy_path | def test_post_happy_path(client_with_testobject: TestClient, auto_publish: None):with logged_in_user():response = client_with_testobject.post("/test_resources",json={"title": "title","named_string": "named_string1","named_string_list": ["1", "4"],"related_objects": [{"field1": "val1.1", "field2": "val1.2"},{"field1": "... | 1 | 28 | 2 | 213 | 4 | 200 | 227 | 200 | client_with_testobject,auto_publish | ['obj', 'objects', 'related_objects', 'response'] | None | {"Assign": 4, "With": 1} | 7 | 28 | 7 | ["logged_in_user", "client_with_testobject.post", "response.json", "json", "client_with_testobject.get", "sorted", "sorted"] | 0 | [] | The function (test_post_happy_path) defined within the public class called public.The function start at line 200 and ends at 227. It contains 28 lines of code and it has a cyclomatic complexity of 1. It takes 2 parameters, represented as [200.0] and does not return any value. It declares 7.0 functions, and It has 7.0 ... |
aiondemand_AIOD-rest-api | public | public | 0 | 0 | test_put_happy_path | def test_put_happy_path(test_objects: list[TestObject], client_with_testobject: TestClient, auto_publish: None):identifier = test_objects[3].identifierwith logged_in_user(kc_user_with_roles("update_test_resources")):response = client_with_testobject.put(f"/test_resources/{identifier}",json={"title": "new title","named_... | 1 | 28 | 3 | 231 | 4 | 230 | 257 | 230 | test_objects,client_with_testobject,auto_publish | ['related_objects', 'identifier', 'changed_resource', 'response'] | None | {"Assign": 4, "With": 1} | 8 | 28 | 8 | ["logged_in_user", "kc_user_with_roles", "client_with_testobject.put", "response.json", "json", "client_with_testobject.get", "sorted", "sorted"] | 0 | [] | The function (test_put_happy_path) defined within the public class called public.The function start at line 230 and ends at 257. It contains 28 lines of code and it has a cyclomatic complexity of 1. It takes 3 parameters, represented as [230.0] and does not return any value. It declares 8.0 functions, and It has 8.0 f... |
aiondemand_AIOD-rest-api | SchemaConverterTestResource | public | 0 | 1 | to_class | def to_class(self) -> Type[SchemaClass]:return SchemaClass | 1 | 2 | 1 | 12 | 0 | 24 | 25 | 24 | self | [] | Type[SchemaClass] | {"Return": 1} | 0 | 2 | 0 | [] | 0 | [] | The function (to_class) defined within the public class called SchemaConverterTestResource, that inherit another class.The function start at line 24 and ends at 25. 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.. |
aiondemand_AIOD-rest-api | SchemaConverterTestResource | public | 0 | 1 | convert | def convert(self, session: Session, aiod: TestResource) -> SchemaClass:return SchemaClass(title_with_alternative_name=aiod.title) | 1 | 2 | 3 | 24 | 0 | 27 | 28 | 27 | self,session,aiod | [] | SchemaClass | {"Return": 1} | 1 | 2 | 1 | ["SchemaClass"] | 114 | ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3569468_lun_4_jose.ext.extra_py.Extra.presence", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3588611_cfelton_rhea.examples.cores.fifo36.test_fifo36_py.test_fifo36_conversion", "_.content.gdrive.MyDrive.Phd_Thesis.... | The function (convert) defined within the public class called SchemaConverterTestResource, that inherit another class.The function start at line 27 and ends at 28. It contains 2 lines of code and it has a cyclomatic complexity of 1. It takes 3 parameters, represented as [27.0] and does not return any value. It declare ... |
aiondemand_AIOD-rest-api | RouterWithOtherSchema | public | 0 | 1 | schema_converters | def schema_converters(self) -> dict[str, SchemaConverter[TestResource, Any]]:return {"other-schema": SchemaConverterTestResource()} | 1 | 2 | 1 | 25 | 0 | 35 | 36 | 35 | self | [] | dict[str, SchemaConverter[TestResource, Any]] | {"Return": 1} | 1 | 2 | 1 | ["SchemaConverterTestResource"] | 0 | [] | The function (schema_converters) defined within the public class called RouterWithOtherSchema, that inherit another class.The function start at line 35 and ends at 36. 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... |
aiondemand_AIOD-rest-api | public | public | 0 | 0 | client_test_resource_other_schema | def client_test_resource_other_schema() -> TestClient:"""A Startlette TestClient including routes to the TestResource, using schemas "aiod" and"other-schema" """app = FastAPI()app.include_router(RouterWithOtherSchema().create(""))return TestClient(app) | 1 | 4 | 0 | 30 | 1 | 40 | 45 | 40 | ['app'] | TestClient | {"Assign": 1, "Expr": 2, "Return": 1} | 6 | 6 | 6 | ["FastAPI", "app.include_router", "create", "RouterWithOtherSchema", "TestClient", "pytest.fixture"] | 0 | [] | The function (client_test_resource_other_schema) defined within the public class called public.The function start at line 40 and ends at 45. 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. It declares 6.0 functions, and It ha... | |
aiondemand_AIOD-rest-api | public | public | 0 | 0 | test_resources_aiod | def test_resources_aiod(client_test_resource: TestClient,client_test_resource_other_schema: TestClient,engine_test_resource_filled: Engine,schema_string: str,):for client in [client_test_resource_other_schema, client_test_resource]:response = client.get("/test_resources" + schema_string)assert response.status_code == 2... | 2 | 13 | 4 | 83 | 2 | 49 | 62 | 49 | client_test_resource,client_test_resource_other_schema,engine_test_resource_filled,schema_string | ['json_', 'response'] | None | {"Assign": 2, "For": 1} | 5 | 14 | 5 | ["client.get", "response.json", "response.json", "len", "pytest.mark.parametrize"] | 0 | [] | The function (test_resources_aiod) defined within the public class called public.The function start at line 49 and ends at 62. It contains 13 lines of code and it has a cyclomatic complexity of 2. It takes 4 parameters, represented as [49.0] and does not return any value. It declares 5.0 functions, and It has 5.0 func... |
aiondemand_AIOD-rest-api | public | public | 0 | 0 | test_resource_aiod | def test_resource_aiod(client_test_resource: TestClient,client_test_resource_other_schema: TestClient,engine_test_resource_filled: Engine,schema_string: str,):for client in [client_test_resource_other_schema, client_test_resource]:response = client.get(f"/test_resources/{engine_test_resource_filled}" + schema_string)as... | 2 | 12 | 4 | 71 | 2 | 66 | 77 | 66 | client_test_resource,client_test_resource_other_schema,engine_test_resource_filled,schema_string | ['json_', 'response'] | None | {"Assign": 2, "For": 1} | 4 | 12 | 4 | ["client.get", "response.json", "response.json", "pytest.mark.parametrize"] | 0 | [] | The function (test_resource_aiod) defined within the public class called public.The function start at line 66 and ends at 77. It contains 12 lines of code and it has a cyclomatic complexity of 2. It takes 4 parameters, represented as [66.0] and does not return any value. It declares 4.0 functions, and It has 4.0 funct... |
aiondemand_AIOD-rest-api | public | public | 0 | 0 | test_aiod_only_other_schema | def test_aiod_only_other_schema(client_test_resource: TestClient, url_part: str):response = client_test_resource.get("/test_resources" + url_part)assert response.status_code == 422, response.json()assert response.json()["detail"][0]["msg"] == "unexpected value; permitted: 'aiod'" | 1 | 4 | 2 | 50 | 1 | 81 | 84 | 81 | client_test_resource,url_part | ['response'] | None | {"Assign": 1} | 4 | 4 | 4 | ["client_test_resource.get", "response.json", "response.json", "pytest.mark.parametrize"] | 0 | [] | The function (test_aiod_only_other_schema) defined within the public class called public.The function start at line 81 and ends at 84. It contains 4 lines of code and it has a cyclomatic complexity of 1. It takes 2 parameters, represented as [81.0] and does not return any value. It declares 4.0 functions, and It has 4... |
aiondemand_AIOD-rest-api | public | public | 0 | 0 | test_resources_other_schema | def test_resources_other_schema(client_test_resource_other_schema: TestClient, engine_test_resource_filled: Engine):response = client_test_resource_other_schema.get("/test_resources?schema=other-schema")assert response.status_code == 200, response.json()json_ = response.json()assert len(json_) == 1assert json_[0]["titl... | 1 | 9 | 2 | 63 | 2 | 87 | 95 | 87 | client_test_resource_other_schema,engine_test_resource_filled | ['json_', 'response'] | None | {"Assign": 2} | 4 | 9 | 4 | ["client_test_resource_other_schema.get", "response.json", "response.json", "len"] | 0 | [] | The function (test_resources_other_schema) defined within the public class called public.The function start at line 87 and ends at 95. It contains 9 lines of code and it has a cyclomatic complexity of 1. It takes 2 parameters, represented as [87.0] and does not return any value. It declares 4.0 functions, and It has 4... |
aiondemand_AIOD-rest-api | public | public | 0 | 0 | test_resource_other_schema | def test_resource_other_schema(client_test_resource_other_schema: TestClient, engine_test_resource_filled: Engine):response = client_test_resource_other_schema.get(f"/test_resources/{engine_test_resource_filled}?schema=other-schema")assert response.status_code == 200, response.json()json_ = response.json()assert json_[... | 1 | 8 | 2 | 51 | 2 | 98 | 105 | 98 | client_test_resource_other_schema,engine_test_resource_filled | ['json_', 'response'] | None | {"Assign": 2} | 3 | 8 | 3 | ["client_test_resource_other_schema.get", "response.json", "response.json"] | 0 | [] | The function (test_resource_other_schema) defined within the public class called public.The function start at line 98 and ends at 105. It contains 8 lines of code and it has a cyclomatic complexity of 1. It takes 2 parameters, represented as [98.0] and does not return any value. It declares 3.0 functions, and It has 3... |
aiondemand_AIOD-rest-api | public | public | 0 | 0 | test_nonexistent_schema | def test_nonexistent_schema(client_test_resource_other_schema: TestClient, url: str):response = client_test_resource_other_schema.get(url)assert response.status_code == 422, response.json()msg = response.json()["detail"][0]["msg"]assert msg == "unexpected value; permitted: 'aiod', 'other-schema'" | 1 | 5 | 2 | 51 | 2 | 111 | 115 | 111 | client_test_resource_other_schema,url | ['msg', 'response'] | None | {"Assign": 2} | 4 | 5 | 4 | ["client_test_resource_other_schema.get", "response.json", "response.json", "pytest.mark.parametrize"] | 0 | [] | The function (test_nonexistent_schema) defined within the public class called public.The function start at line 111 and ends at 115. It contains 5 lines of code and it has a cyclomatic complexity of 1. It takes 2 parameters, represented as [111.0] and does not return any value. It declares 4.0 functions, and It has 4.... |
aiondemand_AIOD-rest-api | public | public | 0 | 0 | test_invalid_value_is_rejected | def test_invalid_value_is_rejected(field, value, body_agent, client, with_organisation_taxonomies):organisation = copy.copy(body_agent)organisation[field] = valuewith logged_in_user():response = client.post("/organisations",json=organisation,headers={"Authorization": "Fake token"},)assert response.status_code == HTTPSt... | 1 | 13 | 5 | 94 | 2 | 17 | 30 | 17 | field,value,body_agent,client,with_organisation_taxonomies | ['organisation', 'response'] | None | {"Assign": 3, "With": 1} | 7 | 14 | 7 | ["copy.copy", "logged_in_user", "client.post", "response.json", "response.json", "response.json", "pytest.mark.parametrize"] | 0 | [] | The function (test_invalid_value_is_rejected) defined within the public class called public.The function start at line 17 and ends at 30. It contains 13 lines of code and it has a cyclomatic complexity of 1. It takes 5 parameters, represented as [17.0] and does not return any value. It declares 7.0 functions, and It h... |
aiondemand_AIOD-rest-api | public | public | 0 | 0 | test_happy_path | def test_happy_path(client: TestClient,organisation: Organisation,person: Person,):organisation.name = "Organisation"organisation.legal_name = "EU"person.name = "Person"person.given_name = "Alice"with DbSession() as session:session.add(organisation)session.merge(person)session.commit()response = client.get(f"/agents/{o... | 1 | 27 | 3 | 180 | 2 | 10 | 40 | 10 | client,organisation,person | ['response_json', 'response'] | None | {"Assign": 8, "Expr": 3, "With": 1} | 10 | 31 | 10 | ["DbSession", "session.add", "session.merge", "session.commit", "client.get", "response.json", "response.json", "client.get", "response.json", "response.json"] | 0 | [] | The function (test_happy_path) defined within the public class called public.The function start at line 10 and ends at 40. It contains 27 lines of code and it has a cyclomatic complexity of 1. It takes 3 parameters, represented as [10.0] and does not return any value. It declares 10.0 functions, and It has 10.0 functi... |
aiondemand_AIOD-rest-api | public | public | 0 | 0 | test_ignore_deleted | def test_ignore_deleted(client: TestClient,organisation: Organisation,person: Person,):organisation.name = "Organisation"organisation.date_deleted = datetime.datetime.now()person.name = "Person"with DbSession() as session:session.add(organisation)session.merge(person)session.commit()response = client.get(f"/agents/{org... | 1 | 16 | 3 | 103 | 1 | 43 | 61 | 43 | client,organisation,person | ['response'] | None | {"Assign": 5, "Expr": 3, "With": 1} | 9 | 19 | 9 | ["datetime.datetime.now", "DbSession", "session.add", "session.merge", "session.commit", "client.get", "response.json", "client.get", "response.json"] | 0 | [] | The function (test_ignore_deleted) defined within the public class called public.The function start at line 43 and ends at 61. It contains 16 lines of code and it has a cyclomatic complexity of 1. It takes 3 parameters, represented as [43.0] and does not return any value. It declares 9.0 functions, and It has 9.0 func... |
aiondemand_AIOD-rest-api | public | public | 0 | 0 | test_happy_path | def test_happy_path(client: TestClient,dataset: Dataset,publication: Publication,):dataset.name = "Dataset"publication.name = "Publication"with DbSession() as session:session.add(dataset)session.merge(publication)session.commit()response = client.get(f"/ai_assets/{dataset.identifier}")assert response.status_code == 200... | 1 | 23 | 3 | 156 | 2 | 8 | 33 | 8 | client,dataset,publication | ['response_json', 'response'] | None | {"Assign": 6, "Expr": 3, "With": 1} | 10 | 26 | 10 | ["DbSession", "session.add", "session.merge", "session.commit", "client.get", "response.json", "response.json", "client.get", "response.json", "response.json"] | 0 | [] | The function (test_happy_path) defined within the public class called public.The function start at line 8 and ends at 33. It contains 23 lines of code and it has a cyclomatic complexity of 1. It takes 3 parameters, represented as [8.0] and does not return any value. It declares 10.0 functions, and It has 10.0 function... |
aiondemand_AIOD-rest-api | public | public | 0 | 0 | test_happy_path | def test_happy_path(client: TestClient,organisation: Organisation,person: Person,):organisation.name = "Organisation"person.name = "Person"with DbSession() as session:session.add(organisation)session.merge(person)session.commit()response = client.get(f"/ai_resources/{organisation.identifier}")assert response.status_cod... | 1 | 23 | 3 | 156 | 2 | 8 | 33 | 8 | client,organisation,person | ['response_json', 'response'] | None | {"Assign": 6, "Expr": 3, "With": 1} | 10 | 26 | 10 | ["DbSession", "session.add", "session.merge", "session.commit", "client.get", "response.json", "response.json", "client.get", "response.json", "response.json"] | 0 | [] | The function (test_happy_path) defined within the public class called public.The function start at line 8 and ends at 33. It contains 23 lines of code and it has a cyclomatic complexity of 1. It takes 3 parameters, represented as [8.0] and does not return any value. It declares 10.0 functions, and It has 10.0 function... |
aiondemand_AIOD-rest-api | public | public | 0 | 0 | test_happy_path_with_filters | def test_happy_path_with_filters(client: TestClient,mocked_privileged_token: Mock,body_asset: dict,resource_type,resource_filters: dict,expected_count: int,auto_publish: None,):response = client.post(f"/{resource_type}", json=body_asset, headers={"Authorization": "Fake token"})assert response.status_code == 200, respon... | 1 | 18 | 7 | 109 | 2 | 50 | 69 | 50 | client,mocked_privileged_token,body_asset,resource_type,resource_filters,expected_count,auto_publish | ['response_json', 'response'] | None | {"Assign": 3} | 28 | 20 | 28 | ["client.post", "response.json", "client.get", "response.json", "response.json", "isinstance", "len", "pytest.mark.parametrize", "pytest.mark.parametrize", "strftime", "datetime.today", "strftime", "datetime.today", "strftime", "datetime.today", "timedelta", "strftime", "datetime.today", "timedelta", "strftime", "datet... | 0 | [] | The function (test_happy_path_with_filters) defined within the public class called public.The function start at line 50 and ends at 69. It contains 18 lines of code and it has a cyclomatic complexity of 1. It takes 7 parameters, represented as [50.0] and does not return any value. It declares 28.0 functions, and It ha... |
aiondemand_AIOD-rest-api | public | public | 0 | 0 | test_happy_path | def test_happy_path(client: TestClient,body_asset: dict,auto_publish: None,):body = copy.copy(body_asset)body["name"] = "Case Study"with logged_in_user():response = client.post("/case_studies", json=body, headers={"Authorization": "Fake token"})assert response.status_code == 200, response.json()identifier = response.js... | 1 | 15 | 3 | 112 | 4 | 8 | 24 | 8 | client,body_asset,auto_publish | ['response_json', 'body', 'identifier', 'response'] | None | {"Assign": 6, "With": 1} | 8 | 17 | 8 | ["copy.copy", "logged_in_user", "client.post", "response.json", "response.json", "client.get", "response.json", "response.json"] | 0 | [] | The function (test_happy_path) defined within the public class called public.The function start at line 8 and ends at 24. It contains 15 lines of code and it has a cyclomatic complexity of 1. It takes 3 parameters, represented as [8.0] and does not return any value. It declares 8.0 functions, and It has 8.0 functions ... |
aiondemand_AIOD-rest-api | public | public | 0 | 0 | test_happy_path | def test_happy_path(client: TestClient, body_asset: dict, auto_publish: None):body = copy.deepcopy(body_asset)body["status_info"] = "https://www.example.com/cluster-status"body["type"] = "storage"with logged_in_user():response = client.post("/computational_assets", json=body, headers={"Authorization": "Fake token"})ass... | 1 | 15 | 3 | 124 | 4 | 8 | 25 | 8 | client,body_asset,auto_publish | ['response_json', 'body', 'identifier', 'response'] | None | {"Assign": 7, "With": 1} | 8 | 18 | 8 | ["copy.deepcopy", "logged_in_user", "client.post", "response.json", "response.json", "client.get", "response.json", "response.json"] | 0 | [] | The function (test_happy_path) defined within the public class called public.The function start at line 8 and ends at 25. It contains 15 lines of code and it has a cyclomatic complexity of 1. It takes 3 parameters, represented as [8.0] and does not return any value. It declares 8.0 functions, and It has 8.0 functions ... |
aiondemand_AIOD-rest-api | public | public | 0 | 0 | test_happy_path | def test_happy_path(client: TestClient, body_asset: dict, auto_publish: None):with logged_in_user():response = client.post("/persons", json={"name": "test person"}, headers={"Authorization": "Fake token"})person_identifier = response.json()['identifier']body = copy.deepcopy(body_asset)body["name"] = "Contact name"body[... | 1 | 35 | 3 | 303 | 5 | 19 | 57 | 19 | client,body_asset,auto_publish | ['person_identifier', 'body', 'response_json', 'response', 'identifier'] | None | {"Assign": 12, "With": 3} | 12 | 39 | 12 | ["logged_in_user", "client.post", "response.json", "copy.deepcopy", "logged_in_user", "client.post", "response.json", "response.json", "logged_in_user", "client.get", "response.json", "response.json"] | 0 | [] | The function (test_happy_path) defined within the public class called public.The function start at line 19 and ends at 57. It contains 35 lines of code and it has a cyclomatic complexity of 1. It takes 3 parameters, represented as [19.0] and does not return any value. It declares 12.0 functions, and It has 12.0 functi... |
aiondemand_AIOD-rest-api | public | public | 0 | 0 | test_post_duplicate_email | def test_post_duplicate_email(client: TestClient,auto_publish: None,):"""It should be possible to add same email in different contacts, to enable"""body1 = {"email": ["a@example.com", "b@example.com"]}body2 = {"email": ["c@example.com", "b@example.com"]}# Authenticated users should not get masked e-mail addresseswith l... | 1 | 20 | 2 | 229 | 8 | 60 | 86 | 60 | client,auto_publish | ['second_contact_identifier', 'body3', 'contact', 'first_contact_identifier', 'body1', 'body2', 'response', 'msg'] | None | {"Assign": 10, "Expr": 2, "With": 1} | 14 | 27 | 14 | ["logged_in_user", "client.post", "response.json", "response.json", "client.post", "response.json", "response.json", "json", "client.get", "set", "client.put", "json", "client.get", "set"] | 0 | [] | The function (test_post_duplicate_email) defined within the public class called public.The function start at line 60 and ends at 86. It contains 20 lines of code and it has a cyclomatic complexity of 1. It takes 2 parameters, represented as [60.0] and does not return any value. It declares 14.0 functions, and It has 1... |
aiondemand_AIOD-rest-api | public | public | 0 | 0 | test_person_and_organisation_both_specified | def test_person_and_organisation_both_specified(client: TestClient):headers = {"Authorization": "Fake token"}body = {"person": 1, "organisation": 1}with logged_in_user():client.post("/persons", json={"name": "test person"}, headers=headers)client.post("/organisations", json={"name": "test organisation"}, headers=header... | 1 | 9 | 1 | 105 | 3 | 90 | 98 | 90 | client | ['headers', 'body', 'response'] | None | {"Assign": 3, "Expr": 2, "With": 1} | 7 | 9 | 7 | ["logged_in_user", "client.post", "client.post", "client.post", "response.json", "response.json", "pytest.mark.skip"] | 0 | [] | The function (test_person_and_organisation_both_specified) defined within the public class called public.The function start at line 90 and ends at 98. 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 declares 7.0 functions, ... |
aiondemand_AIOD-rest-api | public | public | 0 | 0 | contact2 | def contact2(body_concept) -> Contact:body = copy.copy(body_concept)body["platform"] = "aiod"body["platform_resource_identifier"] = "fake:100"body["email"] = ["fake@email.com", "fake2@email.com"]return _create_class_with_body(Contact, body) | 1 | 6 | 1 | 44 | 1 | 102 | 107 | 102 | body_concept | ['body'] | Contact | {"Assign": 4, "Return": 1} | 2 | 6 | 2 | ["copy.copy", "_create_class_with_body"] | 0 | [] | The function (contact2) defined within the public class called public.The function start at line 102 and ends at 107. 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, and It has 2.0 functions called ... |
aiondemand_AIOD-rest-api | public | public | 0 | 0 | test_email_mask_for_not_authenticated_user | def test_email_mask_for_not_authenticated_user(client: TestClient,mocked_privileged_token: Mock,contact: Contact,contact2: Contact,endpoint: str,auto_publish: None,):with DbSession() as session:session.add(contact)session.add(contact2)session.commit()session.refresh(contact)# clunky way to account for random identifier... | 3 | 22 | 6 | 133 | 3 | 119 | 143 | 119 | client,mocked_privileged_token,contact,contact2,endpoint,auto_publish | ['guest_response', 'endpoint', 'guest_response_json'] | None | {"Assign": 4, "Expr": 4, "For": 1, "If": 1, "With": 1} | 12 | 25 | 12 | ["DbSession", "session.add", "session.add", "session.commit", "session.refresh", "endpoint.replace", "client.get", "guest_response.json", "guest_response.json", "isinstance", "len", "pytest.mark.parametrize"] | 0 | [] | The function (test_email_mask_for_not_authenticated_user) defined within the public class called public.The function start at line 119 and ends at 143. It contains 22 lines of code and it has a cyclomatic complexity of 3. It takes 6 parameters, represented as [119.0] and does not return any value. It declares 12.0 func... |
aiondemand_AIOD-rest-api | public | public | 0 | 0 | test_email_mask_for_authenticated_user | def test_email_mask_for_authenticated_user(client: TestClient,mocked_privileged_token: Mock,overwrites_keycloak_token: None,# Technically already used by privileged token, but we also overwrite explicitly# noqa: E501contact: Contact,contact2: Contact,auto_publish: None,):headers = {"Authorization": "Fake token"}with Db... | 1 | 36 | 6 | 292 | 3 | 146 | 187 | 146 | client,mocked_privileged_token,overwrites_keycloak_token,contact,contact2,auto_publish | ['headers', 'response_json', 'response'] | None | {"Assign": 11, "Expr": 4, "With": 1} | 20 | 42 | 20 | ["DbSession", "session.add", "session.add", "session.commit", "session.refresh", "client.get", "response.json", "len", "set", "client.get", "response.json", "response.json", "set", "client.get", "response.json", "len", "set", "client.get", "response.json", "set"] | 0 | [] | The function (test_email_mask_for_authenticated_user) defined within the public class called public.The function start at line 146 and ends at 187. It contains 36 lines of code and it has a cyclomatic complexity of 1. It takes 6 parameters, represented as [146.0] and does not return any value. It declares 20.0 function... |
aiondemand_AIOD-rest-api | public | public | 0 | 0 | test_email_privacy_for_ai4europe_cms | def test_email_privacy_for_ai4europe_cms(client: TestClient,mocked_privileged_token: Mock,contact: Contact,platform: Platform,endpoint: str,auto_publish: None,):with DbSession() as session:contact.platform = "ai4europe_cms"contact.platform_resource_identifier = "fake:100"email = Email(name="fake@email.com")another_emai... | 3 | 34 | 6 | 230 | 6 | 199 | 239 | 199 | client,mocked_privileged_token,contact,platform,endpoint,auto_publish | ['headers', 'email', 'response_json', 'endpoint', 'response', 'another_email'] | None | {"Assign": 14, "Expr": 3, "If": 2, "With": 1} | 16 | 41 | 16 | ["DbSession", "Email", "Email", "session.add", "session.commit", "session.refresh", "endpoint.replace", "client.get", "response.json", "isinstance", "len", "client.get", "response.json", "isinstance", "len", "pytest.mark.parametrize"] | 0 | [] | The function (test_email_privacy_for_ai4europe_cms) defined within the public class called public.The function start at line 199 and ends at 239. It contains 34 lines of code and it has a cyclomatic complexity of 3. It takes 6 parameters, represented as [199.0] and does not return any value. It declares 16.0 functions,... |
aiondemand_AIOD-rest-api | public | public | 0 | 0 | test_empty_country | def test_empty_country(client: TestClient, body_asset: dict, auto_publish: None):body = copy.deepcopy(body_asset)body["name"] = "Contact name"body["location"] = [{"address": {}}]with logged_in_user():response = client.post("/contacts", json=body, headers={"Authorization": "Fake token"})assert response.status_code == HT... | 1 | 9 | 3 | 98 | 2 | 242 | 250 | 242 | client,body_asset,auto_publish | ['body', 'response'] | None | {"Assign": 5, "With": 1} | 6 | 9 | 6 | ["copy.deepcopy", "logged_in_user", "client.post", "response.json", "client.get", "response.json"] | 0 | [] | The function (test_empty_country) defined within the public class called public.The function start at line 242 and ends at 250. It contains 9 lines of code and it has a cyclomatic complexity of 1. It takes 3 parameters, represented as [242.0] and does not return any value. It declares 6.0 functions, and It has 6.0 fun... |
aiondemand_AIOD-rest-api | public | public | 0 | 0 | test_happy_path | def test_happy_path(client: TestClient,body_asset: dict,person: Person,auto_publish: None,):with DbSession() as session:session.add(person)session.commit()session.refresh(person)body = copy.deepcopy(body_asset)body["issn"] = "20493630"body["measurement_technique"] = "mass spectrometry"body["temporal_coverage"] = "2011/... | 1 | 36 | 4 | 305 | 4 | 12 | 53 | 12 | client,body_asset,person,auto_publish | ['response_json', 'body', 'identifier', 'response'] | None | {"Assign": 11, "Expr": 3, "With": 2} | 12 | 42 | 12 | ["DbSession", "session.add", "session.commit", "session.refresh", "copy.deepcopy", "logged_in_user", "client.post", "response.json", "response.json", "client.get", "response.json", "response.json"] | 0 | [] | The function (test_happy_path) defined within the public class called public.The function start at line 12 and ends at 53. It contains 36 lines of code and it has a cyclomatic complexity of 1. It takes 4 parameters, represented as [12.0] and does not return any value. It declares 12.0 functions, and It has 12.0 functi... |
aiondemand_AIOD-rest-api | public | public | 0 | 0 | test_post_invalid_huggingface_identifier | def test_post_invalid_huggingface_identifier(client: TestClient,mocked_privileged_token: Mock,):body = {"name": "name", "platform": "huggingface", "platform_resource_identifier": ""}response = client.post("/datasets", json=body, headers={"Authorization": "Fake token"})assert response.status_code == status.HTTP_422_UNPR... | 1 | 13 | 2 | 83 | 2 | 57 | 70 | 57 | client,mocked_privileged_token | ['body', 'response'] | None | {"Assign": 2} | 3 | 14 | 3 | ["client.post", "response.json", "response.json"] | 0 | [] | The function (test_post_invalid_huggingface_identifier) defined within the public class called public.The function start at line 57 and ends at 70. It contains 13 lines of code and it has a cyclomatic complexity of 1. It takes 2 parameters, represented as [57.0] and does not return any value. It declares 3.0 functions,... |
aiondemand_AIOD-rest-api | public | public | 0 | 0 | test_post_invalid_openml_identifier | def test_post_invalid_openml_identifier(client: TestClient,mocked_privileged_token: Mock,):body = {"name": "name", "platform": "openml", "platform_resource_identifier": "a"}response = client.post("/datasets", json=body, headers={"Authorization": "Fake token"})assert response.status_code == status.HTTP_422_UNPROCESSABLE... | 1 | 11 | 2 | 80 | 2 | 73 | 84 | 73 | client,mocked_privileged_token | ['body', 'response'] | None | {"Assign": 2} | 3 | 12 | 3 | ["client.post", "response.json", "response.json"] | 0 | [] | The function (test_post_invalid_openml_identifier) defined within the public class called public.The function start at line 73 and ends at 84. It contains 11 lines of code and it has a cyclomatic complexity of 1. It takes 2 parameters, represented as [73.0] and does not return any value. It declares 3.0 functions, and ... |
aiondemand_AIOD-rest-api | public | public | 0 | 0 | test_happy_path | def test_happy_path(client: TestClient,body_asset: dict,person: Person,publication: Publication,contact: Contact,auto_publish: None,):person_identifier = person.identifiercontact_identifier = contact.identifierpublication_identifier = publication.identifierwith DbSession() as session:session.add(person)session.add(cont... | 2 | 107 | 6 | 830 | 15 | 28 | 151 | 28 | client,body_asset,person,publication,contact,auto_publish | ['contact_identifier', 'date_modified', 'person_identifier', 'datetime_create_request', 'description_plain', 'body', 'notes', 'response_json', 'datetime_update_request', 'publication_identifier', 'date_created', 'description_html', 'identifier', 'response', 'lorem'] | None | {"Assign": 32, "Expr": 5, "With": 3} | 35 | 124 | 35 | ["DbSession", "session.add", "session.add", "session.merge", "session.commit", "copy.deepcopy", "replace", "datetime.utcnow", "logged_in_user", "client.post", "response.json", "response.json", "client.get", "response.json", "response.json", "dateutil.parser.parse", "dateutil.parser.parse", "total_seconds", "total_secon... | 0 | [] | The function (test_happy_path) defined within the public class called public.The function start at line 28 and ends at 151. It contains 107 lines of code and it has a cyclomatic complexity of 2. It takes 6 parameters, represented as [28.0] and does not return any value. It declares 35.0 functions, and It has 35.0 func... |
aiondemand_AIOD-rest-api | public | public | 0 | 0 | test_post_duplicate_named_relations.create_body | def create_body(i: int, *keywords):return {"name": f"dataset{i}", "keyword": keywords} | 1 | 2 | 2 | 21 | 0 | 162 | 163 | 162 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (test_post_duplicate_named_relations.create_body) defined within the public class called public.The function start at line 162 and ends at 163. It contains 2 lines of code and it has a cyclomatic complexity of 1. It takes 2 parameters, represented as [162.0] and does not return any value.. |
aiondemand_AIOD-rest-api | public | public | 0 | 0 | test_post_duplicate_named_relations | def test_post_duplicate_named_relations(client: TestClient,auto_publish: None,):"""Unittest mirroring situation reported during the data migration of AI4EU news."""def create_body(i: int, *keywords):return {"name": f"dataset{i}", "keyword": keywords}body1 = create_body(1, "AI")body2 = create_body(2,"AI","ArtificialInte... | 2 | 61 | 2 | 263 | 7 | 154 | 223 | 154 | client,auto_publish | ['identifiers', 'body3', 'body1', 'body4', 'body2', 'response', 'post_news'] | Returns | {"Assign": 10, "Expr": 2, "For": 1, "Return": 1, "With": 1} | 19 | 70 | 19 | ["create_body", "create_body", "create_body", "create_body", "partial", "logged_in_user", "post_news", "identifiers.append", "response.json", "client.get", "response.json", "set", "response.json", "client.get", "len", "response.json", "client.get", "set", "response.json"] | 0 | [] | The function (test_post_duplicate_named_relations) defined within the public class called public.The function start at line 154 and ends at 223. It contains 61 lines of code and it has a cyclomatic complexity of 2. It takes 2 parameters, represented as [154.0], and this function return a value. It declares 19.0 functio... |
aiondemand_AIOD-rest-api | public | public | 0 | 0 | test_post_duplicate_named_relations_with_different_capitals.create_body | def create_body(i: int, *keywords):return {"name": f"dataset{i}", "keyword": keywords} | 1 | 2 | 2 | 21 | 0 | 230 | 231 | 230 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (test_post_duplicate_named_relations_with_different_capitals.create_body) defined within the public class called public.The function start at line 230 and ends at 231. It contains 2 lines of code and it has a cyclomatic complexity of 1. It takes 2 parameters, represented as [230.0] and does not return any ... |
aiondemand_AIOD-rest-api | public | public | 0 | 0 | test_post_duplicate_named_relations_with_different_capitals | def test_post_duplicate_named_relations_with_different_capitals(client: TestClient,mocked_privileged_token: Mock,):def create_body(i: int, *keywords):return {"name": f"dataset{i}", "keyword": keywords}body1 = create_body(1, "AI")body2 = create_body(2, "ai")client.post("/news", json=body1, headers={"Authorization": "Fak... | 1 | 10 | 2 | 80 | 3 | 226 | 237 | 226 | client,mocked_privileged_token | ['body2', 'body1', 'response'] | Returns | {"Assign": 3, "Expr": 1, "Return": 1} | 5 | 12 | 5 | ["create_body", "create_body", "client.post", "client.post", "response.json"] | 0 | [] | The function (test_post_duplicate_named_relations_with_different_capitals) defined within the public class called public.The function start at line 226 and ends at 237. It contains 10 lines of code and it has a cyclomatic complexity of 1. It takes 2 parameters, represented as [226.0], and this function return a value. ... |
aiondemand_AIOD-rest-api | public | public | 0 | 0 | test_post_editors.assert_editors_are_stored | def assert_editors_are_stored(id_: str, *editors: int):body = {"name": "How user evaluation changed in times of COVID-19","aiod_entry": {"editor": editors},}with logged_in_user():response = client.post("/events", json=body, headers=headers)assert response.status_code == 200, response.json()response = client.get(f"/even... | 1 | 12 | 2 | 105 | 0 | 254 | 265 | 254 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (test_post_editors.assert_editors_are_stored) defined within the public class called public.The function start at line 254 and ends at 265. It contains 12 lines of code and it has a cyclomatic complexity of 1. It takes 2 parameters, represented as [254.0] and does not return any value.. |
aiondemand_AIOD-rest-api | public | public | 0 | 0 | test_post_editors | def test_post_editors(client: TestClient,auto_publish: None,):"""Unittest mirroring situation reported during the data migration of AI4EU events."""headers = {"Authorization": "Fake token"}identifiers = []with logged_in_user():for i in range(1, 4):response = client.post("/persons", json={"name": str(i)}, headers=header... | 2 | 14 | 2 | 106 | 5 | 240 | 269 | 240 | client,auto_publish | ['editors_actual', 'identifiers', 'body', 'headers', 'response'] | None | {"Assign": 7, "Expr": 5, "For": 1, "With": 2} | 18 | 30 | 18 | ["logged_in_user", "range", "client.post", "str", "identifiers.append", "response.json", "logged_in_user", "client.post", "response.json", "client.get", "response.json", "response.json", "response.json", "set", "set", "assert_editors_are_stored", "assert_editors_are_stored", "assert_editors_are_stored"] | 0 | [] | The function (test_post_editors) defined within the public class called public.The function start at line 240 and ends at 269. It contains 14 lines of code and it has a cyclomatic complexity of 2. It takes 2 parameters, represented as [240.0] and does not return any value. It declares 18.0 functions, and It has 18.0 f... |
aiondemand_AIOD-rest-api | public | public | 0 | 0 | test_create_aiod_entry | def test_create_aiod_entry(client: TestClient, auto_publish):body = {"name": "news"}start = datetime.now(pytz.utc)with logged_in_user():response = client.post("/news", json=body, headers={"Authorization": "Fake token"})end = datetime.now(pytz.utc)assert response.status_code == 200, response.json()identifier = response.... | 1 | 16 | 2 | 158 | 8 | 272 | 289 | 272 | client,auto_publish | ['end', 'date_modified', 'start', 'resource_json', 'body', 'response', 'date_created', 'identifier'] | None | {"Assign": 9, "With": 1} | 10 | 18 | 10 | ["datetime.now", "logged_in_user", "client.post", "datetime.now", "response.json", "response.json", "client.get", "response.json", "dateutil.parser.parse", "dateutil.parser.parse"] | 0 | [] | The function (test_create_aiod_entry) defined within the public class called public.The function start at line 272 and ends at 289. It contains 16 lines of code and it has a cyclomatic complexity of 1. It takes 2 parameters, represented as [272.0] and does not return any value. It declares 10.0 functions, and It has 1... |
aiondemand_AIOD-rest-api | public | public | 0 | 0 | test_update_aiod_entry | def test_update_aiod_entry(client: TestClient,mocked_privileged_token: Mock,person: Person,auto_publish: None,):with DbSession() as session:session.add(person)session.commit()session.refresh(person)body = {"name": "news"}start = datetime.now(pytz.utc)response = client.post("/news", json=body, headers={"Authorization": ... | 1 | 30 | 4 | 274 | 10 | 292 | 326 | 292 | client,mocked_privileged_token,person,auto_publish | ['end', 'date_modified', 'start', 'entries', 'resource_json', 'body', 'response', 'put_body', 'date_created', 'identifier'] | None | {"Assign": 12, "Expr": 3, "With": 2} | 20 | 35 | 20 | ["DbSession", "session.add", "session.commit", "session.refresh", "datetime.now", "client.post", "datetime.now", "response.json", "response.json", "client.put", "response.json", "client.get", "response.json", "dateutil.parser.parse", "dateutil.parser.parse", "DbSession", "all", "session.scalars", "select", "len"] | 0 | [] | The function (test_update_aiod_entry) defined within the public class called public.The function start at line 292 and ends at 326. It contains 30 lines of code and it has a cyclomatic complexity of 1. It takes 4 parameters, represented as [292.0] and does not return any value. It declares 20.0 functions, and It has 2... |
aiondemand_AIOD-rest-api | public | public | 0 | 0 | assert_distributions | def assert_distributions(client: TestClient, identifier: str, *content_urls: str):response = client.get(f"/datasets/{identifier}")distributions = response.json()["distribution"]assert {distribution["content_url"] for distribution in distributions} == set(content_urls)distribution_class = datatype_of_field(Dataset, "dis... | 3 | 8 | 3 | 96 | 3 | 329 | 337 | 329 | client,identifier,*content_urls | ['distribution_class', 'distributions', 'response'] | None | {"Assign": 4, "With": 1} | 9 | 9 | 9 | ["client.get", "response.json", "set", "datatype_of_field", "DbSession", "all", "session.scalars", "select", "set"] | 1 | ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95056621_aiondemand_AIOD_rest_api.src.tests.routers.resource_routers.test_router_dataset_generic_fields_py.test_update_distribution"] | The function (assert_distributions) defined within the public class called public.The function start at line 329 and ends at 337. It contains 8 lines of code and it has a cyclomatic complexity of 3. It takes 3 parameters, represented as [329.0] and does not return any value. It declares 9.0 functions, It has 9.0 functi... |
aiondemand_AIOD-rest-api | public | public | 0 | 0 | test_update_distribution | def test_update_distribution(client: TestClient, mocked_privileged_token: Mock, auto_publish: None):body = {"name": "dataset", "distribution": [{"content_url": "url"}]}response = client.post("/datasets", json=body, headers={"Authorization": "Fake token"})assert response.status_code == 200, response.json()identifier = r... | 1 | 14 | 3 | 206 | 3 | 340 | 355 | 340 | client,mocked_privileged_token,auto_publish | ['body', 'identifier', 'response'] | None | {"Assign": 7, "Expr": 3} | 10 | 16 | 10 | ["client.post", "response.json", "response.json", "assert_distributions", "client.put", "response.json", "assert_distributions", "client.put", "response.json", "assert_distributions"] | 0 | [] | The function (test_update_distribution) defined within the public class called public.The function start at line 340 and ends at 355. It contains 14 lines of code and it has a cyclomatic complexity of 1. It takes 3 parameters, represented as [340.0] and does not return any value. It declares 10.0 functions, and It has... |
aiondemand_AIOD-rest-api | public | public | 0 | 0 | assert_relations | def assert_relations(client: TestClient,identifier: str,type_: str,has_part: list[int] | None = None,is_part_of: list[int] | None = None,relevant_resource: list[int] | None = None,relevant_to: list[int] | None = None,):response = client.get(f"/{type_}/{identifier}")resource = response.json()assert response.status_code ... | 5 | 16 | 7 | 132 | 2 | 358 | 373 | 358 | client,identifier,type_,has_part,is_part_of,relevant_resource,relevant_to | ['resource', 'response'] | None | {"Assign": 2} | 2 | 16 | 2 | ["client.get", "response.json"] | 1 | ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95056621_aiondemand_AIOD_rest_api.src.tests.routers.resource_routers.test_router_dataset_generic_fields_py.test_relations_between_resources"] | The function (assert_relations) defined within the public class called public.The function start at line 358 and ends at 373. It contains 16 lines of code and it has a cyclomatic complexity of 5. It takes 7 parameters, represented as [358.0] and does not return any value. It declares 2.0 functions, It has 2.0 functions... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.