repository_name stringlengths 5 67 | func_path_in_repository stringlengths 4 234 | func_name stringlengths 0 314 | whole_func_string stringlengths 52 3.87M | language stringclasses 6
values | func_code_string stringlengths 52 3.87M | func_code_tokens listlengths 15 672k | func_documentation_string stringlengths 1 47.2k | func_documentation_tokens listlengths 1 3.92k | split_name stringclasses 1
value | func_code_url stringlengths 85 339 |
|---|---|---|---|---|---|---|---|---|---|---|
mitsei/dlkit | dlkit/json_/assessment/managers.py | AssessmentManager.get_assessment_offered_lookup_session_for_bank | def get_assessment_offered_lookup_session_for_bank(self, bank_id):
"""Gets the ``OsidSession`` associated with the assessment offered lookup service for the given bank.
arg: bank_id (osid.id.Id): the ``Id`` of the bank
return: (osid.assessment.AssessmentOfferedLookupSession) - an
... | python | def get_assessment_offered_lookup_session_for_bank(self, bank_id):
"""Gets the ``OsidSession`` associated with the assessment offered lookup service for the given bank.
arg: bank_id (osid.id.Id): the ``Id`` of the bank
return: (osid.assessment.AssessmentOfferedLookupSession) - an
... | [
"def",
"get_assessment_offered_lookup_session_for_bank",
"(",
"self",
",",
"bank_id",
")",
":",
"if",
"not",
"self",
".",
"supports_assessment_offered_lookup",
"(",
")",
":",
"raise",
"errors",
".",
"Unimplemented",
"(",
")",
"##",
"# Also include check to see if the ca... | Gets the ``OsidSession`` associated with the assessment offered lookup service for the given bank.
arg: bank_id (osid.id.Id): the ``Id`` of the bank
return: (osid.assessment.AssessmentOfferedLookupSession) - an
``AssessmentOfferedLookupSession``
raise: NotFound - ``bank_id``... | [
"Gets",
"the",
"OsidSession",
"associated",
"with",
"the",
"assessment",
"offered",
"lookup",
"service",
"for",
"the",
"given",
"bank",
"."
] | train | https://github.com/mitsei/dlkit/blob/445f968a175d61c8d92c0f617a3c17dc1dc7c584/dlkit/json_/assessment/managers.py#L1346-L1368 |
mitsei/dlkit | dlkit/json_/assessment/managers.py | AssessmentManager.get_assessment_offered_query_session | def get_assessment_offered_query_session(self):
"""Gets the ``OsidSession`` associated with the assessment offered query service.
return: (osid.assessment.AssessmentOfferedQuerySession) - an
``AssessmentOfferedQuerySession``
raise: OperationFailed - unable to complete request
... | python | def get_assessment_offered_query_session(self):
"""Gets the ``OsidSession`` associated with the assessment offered query service.
return: (osid.assessment.AssessmentOfferedQuerySession) - an
``AssessmentOfferedQuerySession``
raise: OperationFailed - unable to complete request
... | [
"def",
"get_assessment_offered_query_session",
"(",
"self",
")",
":",
"if",
"not",
"self",
".",
"supports_assessment_offered_query",
"(",
")",
":",
"raise",
"errors",
".",
"Unimplemented",
"(",
")",
"# pylint: disable=no-member",
"return",
"sessions",
".",
"Assessment... | Gets the ``OsidSession`` associated with the assessment offered query service.
return: (osid.assessment.AssessmentOfferedQuerySession) - an
``AssessmentOfferedQuerySession``
raise: OperationFailed - unable to complete request
raise: Unimplemented - ``supports_assessment_offere... | [
"Gets",
"the",
"OsidSession",
"associated",
"with",
"the",
"assessment",
"offered",
"query",
"service",
"."
] | train | https://github.com/mitsei/dlkit/blob/445f968a175d61c8d92c0f617a3c17dc1dc7c584/dlkit/json_/assessment/managers.py#L1371-L1386 |
mitsei/dlkit | dlkit/json_/assessment/managers.py | AssessmentManager.get_assessment_offered_query_session_for_bank | def get_assessment_offered_query_session_for_bank(self, bank_id):
"""Gets the ``OsidSession`` associated with the assessment offered query service for the given bank.
arg: bank_id (osid.id.Id): the ``Id`` of the bank
return: (osid.assessment.AssessmentOfferedQuerySession) - an
... | python | def get_assessment_offered_query_session_for_bank(self, bank_id):
"""Gets the ``OsidSession`` associated with the assessment offered query service for the given bank.
arg: bank_id (osid.id.Id): the ``Id`` of the bank
return: (osid.assessment.AssessmentOfferedQuerySession) - an
... | [
"def",
"get_assessment_offered_query_session_for_bank",
"(",
"self",
",",
"bank_id",
")",
":",
"if",
"not",
"self",
".",
"supports_assessment_offered_query",
"(",
")",
":",
"raise",
"errors",
".",
"Unimplemented",
"(",
")",
"##",
"# Also include check to see if the cata... | Gets the ``OsidSession`` associated with the assessment offered query service for the given bank.
arg: bank_id (osid.id.Id): the ``Id`` of the bank
return: (osid.assessment.AssessmentOfferedQuerySession) - an
``AssessmentOfferedQuerySession``
raise: NotFound - ``bank_id`` no... | [
"Gets",
"the",
"OsidSession",
"associated",
"with",
"the",
"assessment",
"offered",
"query",
"service",
"for",
"the",
"given",
"bank",
"."
] | train | https://github.com/mitsei/dlkit/blob/445f968a175d61c8d92c0f617a3c17dc1dc7c584/dlkit/json_/assessment/managers.py#L1392-L1414 |
mitsei/dlkit | dlkit/json_/assessment/managers.py | AssessmentManager.get_assessment_taken_lookup_session | def get_assessment_taken_lookup_session(self):
"""Gets the ``OsidSession`` associated with the assessment taken lookup service.
return: (osid.assessment.AssessmentTakenLookupSession) - an
``AssessmentTakenLookupSession``
raise: OperationFailed - unable to complete request
... | python | def get_assessment_taken_lookup_session(self):
"""Gets the ``OsidSession`` associated with the assessment taken lookup service.
return: (osid.assessment.AssessmentTakenLookupSession) - an
``AssessmentTakenLookupSession``
raise: OperationFailed - unable to complete request
... | [
"def",
"get_assessment_taken_lookup_session",
"(",
"self",
")",
":",
"if",
"not",
"self",
".",
"supports_assessment_taken_lookup",
"(",
")",
":",
"raise",
"errors",
".",
"Unimplemented",
"(",
")",
"# pylint: disable=no-member",
"return",
"sessions",
".",
"AssessmentTa... | Gets the ``OsidSession`` associated with the assessment taken lookup service.
return: (osid.assessment.AssessmentTakenLookupSession) - an
``AssessmentTakenLookupSession``
raise: OperationFailed - unable to complete request
raise: Unimplemented - ``supports_assessment_taken_loo... | [
"Gets",
"the",
"OsidSession",
"associated",
"with",
"the",
"assessment",
"taken",
"lookup",
"service",
"."
] | train | https://github.com/mitsei/dlkit/blob/445f968a175d61c8d92c0f617a3c17dc1dc7c584/dlkit/json_/assessment/managers.py#L1504-L1519 |
mitsei/dlkit | dlkit/json_/assessment/managers.py | AssessmentManager.get_assessment_taken_lookup_session_for_bank | def get_assessment_taken_lookup_session_for_bank(self, bank_id):
"""Gets the ``OsidSession`` associated with the assessment taken lookup service for the given bank.
arg: bank_id (osid.id.Id): the ``Id`` of the bank
return: (osid.assessment.AssessmentTakenLookupSession) - an
`... | python | def get_assessment_taken_lookup_session_for_bank(self, bank_id):
"""Gets the ``OsidSession`` associated with the assessment taken lookup service for the given bank.
arg: bank_id (osid.id.Id): the ``Id`` of the bank
return: (osid.assessment.AssessmentTakenLookupSession) - an
`... | [
"def",
"get_assessment_taken_lookup_session_for_bank",
"(",
"self",
",",
"bank_id",
")",
":",
"if",
"not",
"self",
".",
"supports_assessment_taken_lookup",
"(",
")",
":",
"raise",
"errors",
".",
"Unimplemented",
"(",
")",
"##",
"# Also include check to see if the catalo... | Gets the ``OsidSession`` associated with the assessment taken lookup service for the given bank.
arg: bank_id (osid.id.Id): the ``Id`` of the bank
return: (osid.assessment.AssessmentTakenLookupSession) - an
``AssessmentTakenLookupSession``
raise: NotFound - ``bank_id`` not f... | [
"Gets",
"the",
"OsidSession",
"associated",
"with",
"the",
"assessment",
"taken",
"lookup",
"service",
"for",
"the",
"given",
"bank",
"."
] | train | https://github.com/mitsei/dlkit/blob/445f968a175d61c8d92c0f617a3c17dc1dc7c584/dlkit/json_/assessment/managers.py#L1525-L1547 |
mitsei/dlkit | dlkit/json_/assessment/managers.py | AssessmentManager.get_assessment_taken_query_session | def get_assessment_taken_query_session(self):
"""Gets the ``OsidSession`` associated with the assessment taken query service.
return: (osid.assessment.AssessmentTakenQuerySession) - an
``AssessmentTakenQuerySession``
raise: OperationFailed - unable to complete request
r... | python | def get_assessment_taken_query_session(self):
"""Gets the ``OsidSession`` associated with the assessment taken query service.
return: (osid.assessment.AssessmentTakenQuerySession) - an
``AssessmentTakenQuerySession``
raise: OperationFailed - unable to complete request
r... | [
"def",
"get_assessment_taken_query_session",
"(",
"self",
")",
":",
"if",
"not",
"self",
".",
"supports_assessment_taken_query",
"(",
")",
":",
"raise",
"errors",
".",
"Unimplemented",
"(",
")",
"# pylint: disable=no-member",
"return",
"sessions",
".",
"AssessmentTake... | Gets the ``OsidSession`` associated with the assessment taken query service.
return: (osid.assessment.AssessmentTakenQuerySession) - an
``AssessmentTakenQuerySession``
raise: OperationFailed - unable to complete request
raise: Unimplemented - ``supports_assessment_taken_query(... | [
"Gets",
"the",
"OsidSession",
"associated",
"with",
"the",
"assessment",
"taken",
"query",
"service",
"."
] | train | https://github.com/mitsei/dlkit/blob/445f968a175d61c8d92c0f617a3c17dc1dc7c584/dlkit/json_/assessment/managers.py#L1550-L1565 |
mitsei/dlkit | dlkit/json_/assessment/managers.py | AssessmentManager.get_assessment_taken_query_session_for_bank | def get_assessment_taken_query_session_for_bank(self, bank_id):
"""Gets the ``OsidSession`` associated with the assessment taken query service for the given bank.
arg: bank_id (osid.id.Id): the ``Id`` of the bank
return: (osid.assessment.AssessmentTakenQuerySession) - an
``As... | python | def get_assessment_taken_query_session_for_bank(self, bank_id):
"""Gets the ``OsidSession`` associated with the assessment taken query service for the given bank.
arg: bank_id (osid.id.Id): the ``Id`` of the bank
return: (osid.assessment.AssessmentTakenQuerySession) - an
``As... | [
"def",
"get_assessment_taken_query_session_for_bank",
"(",
"self",
",",
"bank_id",
")",
":",
"if",
"not",
"self",
".",
"supports_assessment_taken_query",
"(",
")",
":",
"raise",
"errors",
".",
"Unimplemented",
"(",
")",
"##",
"# Also include check to see if the catalog ... | Gets the ``OsidSession`` associated with the assessment taken query service for the given bank.
arg: bank_id (osid.id.Id): the ``Id`` of the bank
return: (osid.assessment.AssessmentTakenQuerySession) - an
``AssessmentTakenQuerySession``
raise: NotFound - ``bank_id`` not foun... | [
"Gets",
"the",
"OsidSession",
"associated",
"with",
"the",
"assessment",
"taken",
"query",
"service",
"for",
"the",
"given",
"bank",
"."
] | train | https://github.com/mitsei/dlkit/blob/445f968a175d61c8d92c0f617a3c17dc1dc7c584/dlkit/json_/assessment/managers.py#L1571-L1593 |
mitsei/dlkit | dlkit/json_/assessment/managers.py | AssessmentManager.get_bank_lookup_session | def get_bank_lookup_session(self):
"""Gets the OsidSession associated with the bank lookup service.
return: (osid.assessment.BankLookupSession) - a
``BankLookupSession``
raise: OperationFailed - unable to complete request
raise: Unimplemented - ``supports_bank_lookup()... | python | def get_bank_lookup_session(self):
"""Gets the OsidSession associated with the bank lookup service.
return: (osid.assessment.BankLookupSession) - a
``BankLookupSession``
raise: OperationFailed - unable to complete request
raise: Unimplemented - ``supports_bank_lookup()... | [
"def",
"get_bank_lookup_session",
"(",
"self",
")",
":",
"if",
"not",
"self",
".",
"supports_bank_lookup",
"(",
")",
":",
"raise",
"errors",
".",
"Unimplemented",
"(",
")",
"# pylint: disable=no-member",
"return",
"sessions",
".",
"BankLookupSession",
"(",
"runtim... | Gets the OsidSession associated with the bank lookup service.
return: (osid.assessment.BankLookupSession) - a
``BankLookupSession``
raise: OperationFailed - unable to complete request
raise: Unimplemented - ``supports_bank_lookup() is false``
*compliance: optional -- T... | [
"Gets",
"the",
"OsidSession",
"associated",
"with",
"the",
"bank",
"lookup",
"service",
"."
] | train | https://github.com/mitsei/dlkit/blob/445f968a175d61c8d92c0f617a3c17dc1dc7c584/dlkit/json_/assessment/managers.py#L1683-L1697 |
mitsei/dlkit | dlkit/json_/assessment/managers.py | AssessmentManager.get_bank_query_session | def get_bank_query_session(self):
"""Gets the OsidSession associated with the bank query service.
return: (osid.assessment.BankQuerySession) - a
``BankQuerySession``
raise: OperationFailed - unable to complete request
raise: Unimplemented - ``supports_bank_query() is f... | python | def get_bank_query_session(self):
"""Gets the OsidSession associated with the bank query service.
return: (osid.assessment.BankQuerySession) - a
``BankQuerySession``
raise: OperationFailed - unable to complete request
raise: Unimplemented - ``supports_bank_query() is f... | [
"def",
"get_bank_query_session",
"(",
"self",
")",
":",
"if",
"not",
"self",
".",
"supports_bank_query",
"(",
")",
":",
"raise",
"errors",
".",
"Unimplemented",
"(",
")",
"# pylint: disable=no-member",
"return",
"sessions",
".",
"BankQuerySession",
"(",
"runtime",... | Gets the OsidSession associated with the bank query service.
return: (osid.assessment.BankQuerySession) - a
``BankQuerySession``
raise: OperationFailed - unable to complete request
raise: Unimplemented - ``supports_bank_query() is false``
*compliance: optional -- This ... | [
"Gets",
"the",
"OsidSession",
"associated",
"with",
"the",
"bank",
"query",
"service",
"."
] | train | https://github.com/mitsei/dlkit/blob/445f968a175d61c8d92c0f617a3c17dc1dc7c584/dlkit/json_/assessment/managers.py#L1702-L1716 |
mitsei/dlkit | dlkit/json_/assessment/managers.py | AssessmentManager.get_bank_admin_session | def get_bank_admin_session(self):
"""Gets the OsidSession associated with the bank administration service.
return: (osid.assessment.BankAdminSession) - a
``BankAdminSession``
raise: OperationFailed - unable to complete request
raise: Unimplemented - ``supports_bank_adm... | python | def get_bank_admin_session(self):
"""Gets the OsidSession associated with the bank administration service.
return: (osid.assessment.BankAdminSession) - a
``BankAdminSession``
raise: OperationFailed - unable to complete request
raise: Unimplemented - ``supports_bank_adm... | [
"def",
"get_bank_admin_session",
"(",
"self",
")",
":",
"if",
"not",
"self",
".",
"supports_bank_admin",
"(",
")",
":",
"raise",
"errors",
".",
"Unimplemented",
"(",
")",
"# pylint: disable=no-member",
"return",
"sessions",
".",
"BankAdminSession",
"(",
"runtime",... | Gets the OsidSession associated with the bank administration service.
return: (osid.assessment.BankAdminSession) - a
``BankAdminSession``
raise: OperationFailed - unable to complete request
raise: Unimplemented - ``supports_bank_admin() is false``
*compliance: optional... | [
"Gets",
"the",
"OsidSession",
"associated",
"with",
"the",
"bank",
"administration",
"service",
"."
] | train | https://github.com/mitsei/dlkit/blob/445f968a175d61c8d92c0f617a3c17dc1dc7c584/dlkit/json_/assessment/managers.py#L1721-L1735 |
mitsei/dlkit | dlkit/json_/assessment/managers.py | AssessmentManager.get_bank_hierarchy_session | def get_bank_hierarchy_session(self):
"""Gets the session traversing bank hierarchies.
return: (osid.assessment.BankHierarchySession) - a
``BankHierarchySession``
raise: OperationFailed - unable to complete request
raise: Unimplemented - ``supports_bank_hierarchy() is ... | python | def get_bank_hierarchy_session(self):
"""Gets the session traversing bank hierarchies.
return: (osid.assessment.BankHierarchySession) - a
``BankHierarchySession``
raise: OperationFailed - unable to complete request
raise: Unimplemented - ``supports_bank_hierarchy() is ... | [
"def",
"get_bank_hierarchy_session",
"(",
"self",
")",
":",
"if",
"not",
"self",
".",
"supports_bank_hierarchy",
"(",
")",
":",
"raise",
"errors",
".",
"Unimplemented",
"(",
")",
"# pylint: disable=no-member",
"return",
"sessions",
".",
"BankHierarchySession",
"(",
... | Gets the session traversing bank hierarchies.
return: (osid.assessment.BankHierarchySession) - a
``BankHierarchySession``
raise: OperationFailed - unable to complete request
raise: Unimplemented - ``supports_bank_hierarchy() is false``
*compliance: optional -- This met... | [
"Gets",
"the",
"session",
"traversing",
"bank",
"hierarchies",
"."
] | train | https://github.com/mitsei/dlkit/blob/445f968a175d61c8d92c0f617a3c17dc1dc7c584/dlkit/json_/assessment/managers.py#L1740-L1754 |
mitsei/dlkit | dlkit/json_/assessment/managers.py | AssessmentProxyManager.get_assessment_session | def get_assessment_session(self, proxy):
"""Gets an ``AssessmentSession`` which is responsible for taking assessments and examining responses from assessments taken.
arg: proxy (osid.proxy.Proxy): a proxy
return: (osid.assessment.AssessmentSession) - an assessment
session for... | python | def get_assessment_session(self, proxy):
"""Gets an ``AssessmentSession`` which is responsible for taking assessments and examining responses from assessments taken.
arg: proxy (osid.proxy.Proxy): a proxy
return: (osid.assessment.AssessmentSession) - an assessment
session for... | [
"def",
"get_assessment_session",
"(",
"self",
",",
"proxy",
")",
":",
"if",
"not",
"self",
".",
"supports_assessment",
"(",
")",
":",
"raise",
"errors",
".",
"Unimplemented",
"(",
")",
"# pylint: disable=no-member",
"return",
"sessions",
".",
"AssessmentSession",
... | Gets an ``AssessmentSession`` which is responsible for taking assessments and examining responses from assessments taken.
arg: proxy (osid.proxy.Proxy): a proxy
return: (osid.assessment.AssessmentSession) - an assessment
session for this service
raise: NullArgument - ``proxy... | [
"Gets",
"an",
"AssessmentSession",
"which",
"is",
"responsible",
"for",
"taking",
"assessments",
"and",
"examining",
"responses",
"from",
"assessments",
"taken",
"."
] | train | https://github.com/mitsei/dlkit/blob/445f968a175d61c8d92c0f617a3c17dc1dc7c584/dlkit/json_/assessment/managers.py#L1905-L1921 |
mitsei/dlkit | dlkit/json_/assessment/managers.py | AssessmentProxyManager.get_assessment_session_for_bank | def get_assessment_session_for_bank(self, bank_id, proxy):
"""Gets an ``AssessmentSession`` which is responsible for performing assessments for the given bank ``Id``.
arg: bank_id (osid.id.Id): the ``Id`` of a bank
arg: proxy (osid.proxy.Proxy): a proxy
return: (osid.assessment.As... | python | def get_assessment_session_for_bank(self, bank_id, proxy):
"""Gets an ``AssessmentSession`` which is responsible for performing assessments for the given bank ``Id``.
arg: bank_id (osid.id.Id): the ``Id`` of a bank
arg: proxy (osid.proxy.Proxy): a proxy
return: (osid.assessment.As... | [
"def",
"get_assessment_session_for_bank",
"(",
"self",
",",
"bank_id",
",",
"proxy",
")",
":",
"if",
"not",
"self",
".",
"supports_assessment",
"(",
")",
":",
"raise",
"errors",
".",
"Unimplemented",
"(",
")",
"##",
"# Also include check to see if the catalog Id is ... | Gets an ``AssessmentSession`` which is responsible for performing assessments for the given bank ``Id``.
arg: bank_id (osid.id.Id): the ``Id`` of a bank
arg: proxy (osid.proxy.Proxy): a proxy
return: (osid.assessment.AssessmentSession) - an assessment
session for this serv... | [
"Gets",
"an",
"AssessmentSession",
"which",
"is",
"responsible",
"for",
"performing",
"assessments",
"for",
"the",
"given",
"bank",
"Id",
"."
] | train | https://github.com/mitsei/dlkit/blob/445f968a175d61c8d92c0f617a3c17dc1dc7c584/dlkit/json_/assessment/managers.py#L1924-L1945 |
mitsei/dlkit | dlkit/json_/assessment/managers.py | AssessmentProxyManager.get_assessment_results_session | def get_assessment_results_session(self, proxy):
"""Gets an ``AssessmentResultsSession`` to retrieve assessment results.
arg: proxy (osid.proxy.Proxy): a proxy
return: (osid.assessment.AssessmentResultsSession) - an
assessment results session for this service
raise: ... | python | def get_assessment_results_session(self, proxy):
"""Gets an ``AssessmentResultsSession`` to retrieve assessment results.
arg: proxy (osid.proxy.Proxy): a proxy
return: (osid.assessment.AssessmentResultsSession) - an
assessment results session for this service
raise: ... | [
"def",
"get_assessment_results_session",
"(",
"self",
",",
"proxy",
")",
":",
"if",
"not",
"self",
".",
"supports_assessment_results",
"(",
")",
":",
"raise",
"errors",
".",
"Unimplemented",
"(",
")",
"# pylint: disable=no-member",
"return",
"sessions",
".",
"Asse... | Gets an ``AssessmentResultsSession`` to retrieve assessment results.
arg: proxy (osid.proxy.Proxy): a proxy
return: (osid.assessment.AssessmentResultsSession) - an
assessment results session for this service
raise: NullArgument - ``proxy`` is ``null``
raise: Operati... | [
"Gets",
"an",
"AssessmentResultsSession",
"to",
"retrieve",
"assessment",
"results",
"."
] | train | https://github.com/mitsei/dlkit/blob/445f968a175d61c8d92c0f617a3c17dc1dc7c584/dlkit/json_/assessment/managers.py#L1948-L1965 |
mitsei/dlkit | dlkit/json_/assessment/managers.py | AssessmentProxyManager.get_assessment_results_session_for_bank | def get_assessment_results_session_for_bank(self, bank_id, proxy):
"""Gets an ``AssessmentResultsSession`` to retrieve assessment results for the given bank.
arg: bank_id (osid.id.Id): the ``Id`` of the assessment taken
arg: proxy (osid.proxy.Proxy): a proxy
return: (osid.assessme... | python | def get_assessment_results_session_for_bank(self, bank_id, proxy):
"""Gets an ``AssessmentResultsSession`` to retrieve assessment results for the given bank.
arg: bank_id (osid.id.Id): the ``Id`` of the assessment taken
arg: proxy (osid.proxy.Proxy): a proxy
return: (osid.assessme... | [
"def",
"get_assessment_results_session_for_bank",
"(",
"self",
",",
"bank_id",
",",
"proxy",
")",
":",
"if",
"not",
"self",
".",
"supports_assessment_results",
"(",
")",
":",
"raise",
"errors",
".",
"Unimplemented",
"(",
")",
"##",
"# Also include check to see if th... | Gets an ``AssessmentResultsSession`` to retrieve assessment results for the given bank.
arg: bank_id (osid.id.Id): the ``Id`` of the assessment taken
arg: proxy (osid.proxy.Proxy): a proxy
return: (osid.assessment.AssessmentResultsSession) - an
assessment results session f... | [
"Gets",
"an",
"AssessmentResultsSession",
"to",
"retrieve",
"assessment",
"results",
"for",
"the",
"given",
"bank",
"."
] | train | https://github.com/mitsei/dlkit/blob/445f968a175d61c8d92c0f617a3c17dc1dc7c584/dlkit/json_/assessment/managers.py#L1968-L1990 |
mitsei/dlkit | dlkit/json_/assessment/managers.py | AssessmentProxyManager.get_item_search_session | def get_item_search_session(self, proxy):
"""Gets the ``OsidSession`` associated with the item search service.
arg: proxy (osid.proxy.Proxy): a proxy
return: (osid.assessment.ItemSearchSession) - an
``ItemSearchSession``
raise: NullArgument - ``proxy`` is ``null``
... | python | def get_item_search_session(self, proxy):
"""Gets the ``OsidSession`` associated with the item search service.
arg: proxy (osid.proxy.Proxy): a proxy
return: (osid.assessment.ItemSearchSession) - an
``ItemSearchSession``
raise: NullArgument - ``proxy`` is ``null``
... | [
"def",
"get_item_search_session",
"(",
"self",
",",
"proxy",
")",
":",
"if",
"not",
"self",
".",
"supports_item_search",
"(",
")",
":",
"raise",
"errors",
".",
"Unimplemented",
"(",
")",
"# pylint: disable=no-member",
"return",
"sessions",
".",
"ItemSearchSession"... | Gets the ``OsidSession`` associated with the item search service.
arg: proxy (osid.proxy.Proxy): a proxy
return: (osid.assessment.ItemSearchSession) - an
``ItemSearchSession``
raise: NullArgument - ``proxy`` is ``null``
raise: OperationFailed - unable to complete re... | [
"Gets",
"the",
"OsidSession",
"associated",
"with",
"the",
"item",
"search",
"service",
"."
] | train | https://github.com/mitsei/dlkit/blob/445f968a175d61c8d92c0f617a3c17dc1dc7c584/dlkit/json_/assessment/managers.py#L2083-L2099 |
mitsei/dlkit | dlkit/json_/assessment/managers.py | AssessmentProxyManager.get_item_search_session_for_bank | def get_item_search_session_for_bank(self, bank_id, proxy):
"""Gets the ``OsidSession`` associated with the item search service for the given bank.
arg: bank_id (osid.id.Id): the ``Id`` of the bank
arg: proxy (osid.proxy.Proxy): a proxy
return: (osid.assessment.ItemSearchSession) ... | python | def get_item_search_session_for_bank(self, bank_id, proxy):
"""Gets the ``OsidSession`` associated with the item search service for the given bank.
arg: bank_id (osid.id.Id): the ``Id`` of the bank
arg: proxy (osid.proxy.Proxy): a proxy
return: (osid.assessment.ItemSearchSession) ... | [
"def",
"get_item_search_session_for_bank",
"(",
"self",
",",
"bank_id",
",",
"proxy",
")",
":",
"if",
"not",
"self",
".",
"supports_item_search",
"(",
")",
":",
"raise",
"errors",
".",
"Unimplemented",
"(",
")",
"##",
"# Also include check to see if the catalog Id i... | Gets the ``OsidSession`` associated with the item search service for the given bank.
arg: bank_id (osid.id.Id): the ``Id`` of the bank
arg: proxy (osid.proxy.Proxy): a proxy
return: (osid.assessment.ItemSearchSession) - ``an
_item_search_session``
raise: NotFound ... | [
"Gets",
"the",
"OsidSession",
"associated",
"with",
"the",
"item",
"search",
"service",
"for",
"the",
"given",
"bank",
"."
] | train | https://github.com/mitsei/dlkit/blob/445f968a175d61c8d92c0f617a3c17dc1dc7c584/dlkit/json_/assessment/managers.py#L2102-L2125 |
mitsei/dlkit | dlkit/json_/assessment/managers.py | AssessmentProxyManager.get_item_admin_session | def get_item_admin_session(self, proxy):
"""Gets the ``OsidSession`` associated with the item administration service.
arg: proxy (osid.proxy.Proxy): a proxy
return: (osid.assessment.ItemAdminSession) - an
``ItemAdminSession``
raise: NullArgument - ``proxy`` is ``null... | python | def get_item_admin_session(self, proxy):
"""Gets the ``OsidSession`` associated with the item administration service.
arg: proxy (osid.proxy.Proxy): a proxy
return: (osid.assessment.ItemAdminSession) - an
``ItemAdminSession``
raise: NullArgument - ``proxy`` is ``null... | [
"def",
"get_item_admin_session",
"(",
"self",
",",
"proxy",
")",
":",
"if",
"not",
"self",
".",
"supports_item_admin",
"(",
")",
":",
"raise",
"errors",
".",
"Unimplemented",
"(",
")",
"# pylint: disable=no-member",
"return",
"sessions",
".",
"ItemAdminSession",
... | Gets the ``OsidSession`` associated with the item administration service.
arg: proxy (osid.proxy.Proxy): a proxy
return: (osid.assessment.ItemAdminSession) - an
``ItemAdminSession``
raise: NullArgument - ``proxy`` is ``null``
raise: OperationFailed - unable to compl... | [
"Gets",
"the",
"OsidSession",
"associated",
"with",
"the",
"item",
"administration",
"service",
"."
] | train | https://github.com/mitsei/dlkit/blob/445f968a175d61c8d92c0f617a3c17dc1dc7c584/dlkit/json_/assessment/managers.py#L2128-L2144 |
mitsei/dlkit | dlkit/json_/assessment/managers.py | AssessmentProxyManager.get_item_admin_session_for_bank | def get_item_admin_session_for_bank(self, bank_id, proxy):
"""Gets the ``OsidSession`` associated with the item admin service for the given bank.
arg: bank_id (osid.id.Id): the ``Id`` of the bank
arg: proxy (osid.proxy.Proxy): a proxy
return: (osid.assessment.ItemAdminSession) - `... | python | def get_item_admin_session_for_bank(self, bank_id, proxy):
"""Gets the ``OsidSession`` associated with the item admin service for the given bank.
arg: bank_id (osid.id.Id): the ``Id`` of the bank
arg: proxy (osid.proxy.Proxy): a proxy
return: (osid.assessment.ItemAdminSession) - `... | [
"def",
"get_item_admin_session_for_bank",
"(",
"self",
",",
"bank_id",
",",
"proxy",
")",
":",
"if",
"not",
"self",
".",
"supports_item_admin",
"(",
")",
":",
"raise",
"errors",
".",
"Unimplemented",
"(",
")",
"##",
"# Also include check to see if the catalog Id is ... | Gets the ``OsidSession`` associated with the item admin service for the given bank.
arg: bank_id (osid.id.Id): the ``Id`` of the bank
arg: proxy (osid.proxy.Proxy): a proxy
return: (osid.assessment.ItemAdminSession) - ``an
_item_admin_session``
raise: NotFound - `... | [
"Gets",
"the",
"OsidSession",
"associated",
"with",
"the",
"item",
"admin",
"service",
"for",
"the",
"given",
"bank",
"."
] | train | https://github.com/mitsei/dlkit/blob/445f968a175d61c8d92c0f617a3c17dc1dc7c584/dlkit/json_/assessment/managers.py#L2147-L2170 |
mitsei/dlkit | dlkit/json_/assessment/managers.py | AssessmentProxyManager.get_assessment_lookup_session | def get_assessment_lookup_session(self, proxy):
"""Gets the ``OsidSession`` associated with the assessment lookup service.
arg: proxy (osid.proxy.Proxy): a proxy
return: (osid.assessment.AssessmentLookupSession) - an
``AssessmentLookupSession``
raise: NullArgument - ... | python | def get_assessment_lookup_session(self, proxy):
"""Gets the ``OsidSession`` associated with the assessment lookup service.
arg: proxy (osid.proxy.Proxy): a proxy
return: (osid.assessment.AssessmentLookupSession) - an
``AssessmentLookupSession``
raise: NullArgument - ... | [
"def",
"get_assessment_lookup_session",
"(",
"self",
",",
"proxy",
")",
":",
"if",
"not",
"self",
".",
"supports_assessment_lookup",
"(",
")",
":",
"raise",
"errors",
".",
"Unimplemented",
"(",
")",
"# pylint: disable=no-member",
"return",
"sessions",
".",
"Assess... | Gets the ``OsidSession`` associated with the assessment lookup service.
arg: proxy (osid.proxy.Proxy): a proxy
return: (osid.assessment.AssessmentLookupSession) - an
``AssessmentLookupSession``
raise: NullArgument - ``proxy`` is ``null``
raise: OperationFailed - una... | [
"Gets",
"the",
"OsidSession",
"associated",
"with",
"the",
"assessment",
"lookup",
"service",
"."
] | train | https://github.com/mitsei/dlkit/blob/445f968a175d61c8d92c0f617a3c17dc1dc7c584/dlkit/json_/assessment/managers.py#L2264-L2281 |
mitsei/dlkit | dlkit/json_/assessment/managers.py | AssessmentProxyManager.get_assessment_lookup_session_for_bank | def get_assessment_lookup_session_for_bank(self, bank_id, proxy):
"""Gets the ``OsidSession`` associated with the assessment lookup service for the given bank.
arg: bank_id (osid.id.Id): the ``Id`` of the bank
arg: proxy (osid.proxy.Proxy): a proxy
return: (osid.assessment.Assessm... | python | def get_assessment_lookup_session_for_bank(self, bank_id, proxy):
"""Gets the ``OsidSession`` associated with the assessment lookup service for the given bank.
arg: bank_id (osid.id.Id): the ``Id`` of the bank
arg: proxy (osid.proxy.Proxy): a proxy
return: (osid.assessment.Assessm... | [
"def",
"get_assessment_lookup_session_for_bank",
"(",
"self",
",",
"bank_id",
",",
"proxy",
")",
":",
"if",
"not",
"self",
".",
"supports_assessment_lookup",
"(",
")",
":",
"raise",
"errors",
".",
"Unimplemented",
"(",
")",
"##",
"# Also include check to see if the ... | Gets the ``OsidSession`` associated with the assessment lookup service for the given bank.
arg: bank_id (osid.id.Id): the ``Id`` of the bank
arg: proxy (osid.proxy.Proxy): a proxy
return: (osid.assessment.AssessmentLookupSession) - ``an
_assessment_lookup_session``
... | [
"Gets",
"the",
"OsidSession",
"associated",
"with",
"the",
"assessment",
"lookup",
"service",
"for",
"the",
"given",
"bank",
"."
] | train | https://github.com/mitsei/dlkit/blob/445f968a175d61c8d92c0f617a3c17dc1dc7c584/dlkit/json_/assessment/managers.py#L2284-L2307 |
mitsei/dlkit | dlkit/json_/assessment/managers.py | AssessmentProxyManager.get_assessment_query_session | def get_assessment_query_session(self, proxy):
"""Gets the ``OsidSession`` associated with the assessment query service.
arg: proxy (osid.proxy.Proxy): a proxy
return: (osid.assessment.AssessmentQuerySession) - an
``AssessmentQuerySession``
raise: NullArgument - ``pr... | python | def get_assessment_query_session(self, proxy):
"""Gets the ``OsidSession`` associated with the assessment query service.
arg: proxy (osid.proxy.Proxy): a proxy
return: (osid.assessment.AssessmentQuerySession) - an
``AssessmentQuerySession``
raise: NullArgument - ``pr... | [
"def",
"get_assessment_query_session",
"(",
"self",
",",
"proxy",
")",
":",
"if",
"not",
"self",
".",
"supports_assessment_query",
"(",
")",
":",
"raise",
"errors",
".",
"Unimplemented",
"(",
")",
"# pylint: disable=no-member",
"return",
"sessions",
".",
"Assessme... | Gets the ``OsidSession`` associated with the assessment query service.
arg: proxy (osid.proxy.Proxy): a proxy
return: (osid.assessment.AssessmentQuerySession) - an
``AssessmentQuerySession``
raise: NullArgument - ``proxy`` is ``null``
raise: OperationFailed - unable... | [
"Gets",
"the",
"OsidSession",
"associated",
"with",
"the",
"assessment",
"query",
"service",
"."
] | train | https://github.com/mitsei/dlkit/blob/445f968a175d61c8d92c0f617a3c17dc1dc7c584/dlkit/json_/assessment/managers.py#L2310-L2327 |
mitsei/dlkit | dlkit/json_/assessment/managers.py | AssessmentProxyManager.get_assessment_query_session_for_bank | def get_assessment_query_session_for_bank(self, bank_id, proxy):
"""Gets the ``OsidSession`` associated with the assessment query service for the given bank.
arg: bank_id (osid.id.Id): the ``Id`` of the bank
arg: proxy (osid.proxy.Proxy): a proxy
return: (osid.assessment.Assessmen... | python | def get_assessment_query_session_for_bank(self, bank_id, proxy):
"""Gets the ``OsidSession`` associated with the assessment query service for the given bank.
arg: bank_id (osid.id.Id): the ``Id`` of the bank
arg: proxy (osid.proxy.Proxy): a proxy
return: (osid.assessment.Assessmen... | [
"def",
"get_assessment_query_session_for_bank",
"(",
"self",
",",
"bank_id",
",",
"proxy",
")",
":",
"if",
"not",
"self",
".",
"supports_assessment_query",
"(",
")",
":",
"raise",
"errors",
".",
"Unimplemented",
"(",
")",
"##",
"# Also include check to see if the ca... | Gets the ``OsidSession`` associated with the assessment query service for the given bank.
arg: bank_id (osid.id.Id): the ``Id`` of the bank
arg: proxy (osid.proxy.Proxy): a proxy
return: (osid.assessment.AssessmentQuerySession) - ``an
_assessment_query_session``
ra... | [
"Gets",
"the",
"OsidSession",
"associated",
"with",
"the",
"assessment",
"query",
"service",
"for",
"the",
"given",
"bank",
"."
] | train | https://github.com/mitsei/dlkit/blob/445f968a175d61c8d92c0f617a3c17dc1dc7c584/dlkit/json_/assessment/managers.py#L2330-L2353 |
mitsei/dlkit | dlkit/json_/assessment/managers.py | AssessmentProxyManager.get_assessment_bank_session | def get_assessment_bank_session(self, proxy):
"""Gets the ``OsidSession`` associated with the assessment banking service.
arg: proxy (osid.proxy.Proxy): a proxy
return: (osid.assessment.AssessmentBankSession) - an
``AssessmentBankSession``
raise: NullArgument - ``pro... | python | def get_assessment_bank_session(self, proxy):
"""Gets the ``OsidSession`` associated with the assessment banking service.
arg: proxy (osid.proxy.Proxy): a proxy
return: (osid.assessment.AssessmentBankSession) - an
``AssessmentBankSession``
raise: NullArgument - ``pro... | [
"def",
"get_assessment_bank_session",
"(",
"self",
",",
"proxy",
")",
":",
"if",
"not",
"self",
".",
"supports_assessment_bank",
"(",
")",
":",
"raise",
"errors",
".",
"Unimplemented",
"(",
")",
"# pylint: disable=no-member",
"return",
"sessions",
".",
"Assessment... | Gets the ``OsidSession`` associated with the assessment banking service.
arg: proxy (osid.proxy.Proxy): a proxy
return: (osid.assessment.AssessmentBankSession) - an
``AssessmentBankSession``
raise: NullArgument - ``proxy`` is ``null``
raise: OperationFailed - unable... | [
"Gets",
"the",
"OsidSession",
"associated",
"with",
"the",
"assessment",
"banking",
"service",
"."
] | train | https://github.com/mitsei/dlkit/blob/445f968a175d61c8d92c0f617a3c17dc1dc7c584/dlkit/json_/assessment/managers.py#L2456-L2473 |
mitsei/dlkit | dlkit/json_/assessment/managers.py | AssessmentProxyManager.get_assessment_bank_assignment_session | def get_assessment_bank_assignment_session(self, proxy):
"""Gets the ``OsidSession`` associated with the assessment bank assignment service.
arg: proxy (osid.proxy.Proxy): a proxy
return: (osid.assessment.AssessmentBankAssignmentSession) - an
``AssessmentBankAssignmentSession... | python | def get_assessment_bank_assignment_session(self, proxy):
"""Gets the ``OsidSession`` associated with the assessment bank assignment service.
arg: proxy (osid.proxy.Proxy): a proxy
return: (osid.assessment.AssessmentBankAssignmentSession) - an
``AssessmentBankAssignmentSession... | [
"def",
"get_assessment_bank_assignment_session",
"(",
"self",
",",
"proxy",
")",
":",
"if",
"not",
"self",
".",
"supports_assessment_bank_assignment",
"(",
")",
":",
"raise",
"errors",
".",
"Unimplemented",
"(",
")",
"# pylint: disable=no-member",
"return",
"sessions"... | Gets the ``OsidSession`` associated with the assessment bank assignment service.
arg: proxy (osid.proxy.Proxy): a proxy
return: (osid.assessment.AssessmentBankAssignmentSession) - an
``AssessmentBankAssignmentSession``
raise: NullArgument - ``proxy`` is ``null``
rais... | [
"Gets",
"the",
"OsidSession",
"associated",
"with",
"the",
"assessment",
"bank",
"assignment",
"service",
"."
] | train | https://github.com/mitsei/dlkit/blob/445f968a175d61c8d92c0f617a3c17dc1dc7c584/dlkit/json_/assessment/managers.py#L2476-L2493 |
mitsei/dlkit | dlkit/json_/assessment/managers.py | AssessmentProxyManager.get_assessment_basic_authoring_session | def get_assessment_basic_authoring_session(self, proxy):
"""Gets the ``OsidSession`` associated with the assessment authoring service.
arg: proxy (osid.proxy.Proxy): a proxy
return: (osid.assessment.AssessmentBasicAuthoringSession) - an
``AssessmentBasicAuthoringSession``
... | python | def get_assessment_basic_authoring_session(self, proxy):
"""Gets the ``OsidSession`` associated with the assessment authoring service.
arg: proxy (osid.proxy.Proxy): a proxy
return: (osid.assessment.AssessmentBasicAuthoringSession) - an
``AssessmentBasicAuthoringSession``
... | [
"def",
"get_assessment_basic_authoring_session",
"(",
"self",
",",
"proxy",
")",
":",
"if",
"not",
"self",
".",
"supports_assessment_basic_authoring",
"(",
")",
":",
"raise",
"errors",
".",
"Unimplemented",
"(",
")",
"# pylint: disable=no-member",
"return",
"sessions"... | Gets the ``OsidSession`` associated with the assessment authoring service.
arg: proxy (osid.proxy.Proxy): a proxy
return: (osid.assessment.AssessmentBasicAuthoringSession) - an
``AssessmentBasicAuthoringSession``
raise: NullArgument - ``proxy`` is ``null``
raise: Op... | [
"Gets",
"the",
"OsidSession",
"associated",
"with",
"the",
"assessment",
"authoring",
"service",
"."
] | train | https://github.com/mitsei/dlkit/blob/445f968a175d61c8d92c0f617a3c17dc1dc7c584/dlkit/json_/assessment/managers.py#L2496-L2513 |
mitsei/dlkit | dlkit/json_/assessment/managers.py | AssessmentProxyManager.get_assessment_basic_authoring_session_for_bank | def get_assessment_basic_authoring_session_for_bank(self, bank_id, proxy):
"""Gets the ``OsidSession`` associated with the assessment authoring service for the given bank.
arg: bank_id (osid.id.Id): the ``Id`` of a bank
arg: proxy (osid.proxy.Proxy): a proxy
return: (osid.assessme... | python | def get_assessment_basic_authoring_session_for_bank(self, bank_id, proxy):
"""Gets the ``OsidSession`` associated with the assessment authoring service for the given bank.
arg: bank_id (osid.id.Id): the ``Id`` of a bank
arg: proxy (osid.proxy.Proxy): a proxy
return: (osid.assessme... | [
"def",
"get_assessment_basic_authoring_session_for_bank",
"(",
"self",
",",
"bank_id",
",",
"proxy",
")",
":",
"if",
"not",
"self",
".",
"supports_assessment_basic_authoring",
"(",
")",
":",
"raise",
"errors",
".",
"Unimplemented",
"(",
")",
"##",
"# Also include ch... | Gets the ``OsidSession`` associated with the assessment authoring service for the given bank.
arg: bank_id (osid.id.Id): the ``Id`` of a bank
arg: proxy (osid.proxy.Proxy): a proxy
return: (osid.assessment.AssessmentBasicAuthoringSession) - an
``AssessmentBasicAuthoringSes... | [
"Gets",
"the",
"OsidSession",
"associated",
"with",
"the",
"assessment",
"authoring",
"service",
"for",
"the",
"given",
"bank",
"."
] | train | https://github.com/mitsei/dlkit/blob/445f968a175d61c8d92c0f617a3c17dc1dc7c584/dlkit/json_/assessment/managers.py#L2516-L2540 |
mitsei/dlkit | dlkit/json_/assessment/managers.py | AssessmentProxyManager.get_assessment_offered_admin_session | def get_assessment_offered_admin_session(self, proxy):
"""Gets the ``OsidSession`` associated with the assessment offered administration service.
arg: proxy (osid.proxy.Proxy): a proxy
return: (osid.assessment.AssessmentOfferedAdminSession) - an
``AssessmentOfferedAdminSessio... | python | def get_assessment_offered_admin_session(self, proxy):
"""Gets the ``OsidSession`` associated with the assessment offered administration service.
arg: proxy (osid.proxy.Proxy): a proxy
return: (osid.assessment.AssessmentOfferedAdminSession) - an
``AssessmentOfferedAdminSessio... | [
"def",
"get_assessment_offered_admin_session",
"(",
"self",
",",
"proxy",
")",
":",
"if",
"not",
"self",
".",
"supports_assessment_offered_admin",
"(",
")",
":",
"raise",
"errors",
".",
"Unimplemented",
"(",
")",
"# pylint: disable=no-member",
"return",
"sessions",
... | Gets the ``OsidSession`` associated with the assessment offered administration service.
arg: proxy (osid.proxy.Proxy): a proxy
return: (osid.assessment.AssessmentOfferedAdminSession) - an
``AssessmentOfferedAdminSession``
raise: NullArgument - ``proxy`` is ``null``
r... | [
"Gets",
"the",
"OsidSession",
"associated",
"with",
"the",
"assessment",
"offered",
"administration",
"service",
"."
] | train | https://github.com/mitsei/dlkit/blob/445f968a175d61c8d92c0f617a3c17dc1dc7c584/dlkit/json_/assessment/managers.py#L2635-L2652 |
mitsei/dlkit | dlkit/json_/assessment/managers.py | AssessmentProxyManager.get_assessment_offered_admin_session_for_bank | def get_assessment_offered_admin_session_for_bank(self, bank_id, proxy):
"""Gets the ``OsidSession`` associated with the assessment offered admin service for the given bank.
arg: bank_id (osid.id.Id): the ``Id`` of the bank
arg: proxy (osid.proxy.Proxy): a proxy
return: (osid.asse... | python | def get_assessment_offered_admin_session_for_bank(self, bank_id, proxy):
"""Gets the ``OsidSession`` associated with the assessment offered admin service for the given bank.
arg: bank_id (osid.id.Id): the ``Id`` of the bank
arg: proxy (osid.proxy.Proxy): a proxy
return: (osid.asse... | [
"def",
"get_assessment_offered_admin_session_for_bank",
"(",
"self",
",",
"bank_id",
",",
"proxy",
")",
":",
"if",
"not",
"self",
".",
"supports_assessment_offered_admin",
"(",
")",
":",
"raise",
"errors",
".",
"Unimplemented",
"(",
")",
"##",
"# Also include check ... | Gets the ``OsidSession`` associated with the assessment offered admin service for the given bank.
arg: bank_id (osid.id.Id): the ``Id`` of the bank
arg: proxy (osid.proxy.Proxy): a proxy
return: (osid.assessment.AssessmentOfferedAdminSession) - an
``AssessmentOfferedAdminS... | [
"Gets",
"the",
"OsidSession",
"associated",
"with",
"the",
"assessment",
"offered",
"admin",
"service",
"for",
"the",
"given",
"bank",
"."
] | train | https://github.com/mitsei/dlkit/blob/445f968a175d61c8d92c0f617a3c17dc1dc7c584/dlkit/json_/assessment/managers.py#L2655-L2678 |
mitsei/dlkit | dlkit/json_/assessment/managers.py | AssessmentProxyManager.get_assessment_offered_bank_session | def get_assessment_offered_bank_session(self, proxy):
"""Gets the session for retrieving offered assessments to bank mappings.
arg: proxy (osid.proxy.Proxy): a proxy
return: (osid.assessment.AssessmentOfferedBankSession) - an
``AssessmentOfferedBankSession``
raise: N... | python | def get_assessment_offered_bank_session(self, proxy):
"""Gets the session for retrieving offered assessments to bank mappings.
arg: proxy (osid.proxy.Proxy): a proxy
return: (osid.assessment.AssessmentOfferedBankSession) - an
``AssessmentOfferedBankSession``
raise: N... | [
"def",
"get_assessment_offered_bank_session",
"(",
"self",
",",
"proxy",
")",
":",
"if",
"not",
"self",
".",
"supports_assessment_offered_bank",
"(",
")",
":",
"raise",
"errors",
".",
"Unimplemented",
"(",
")",
"# pylint: disable=no-member",
"return",
"sessions",
".... | Gets the session for retrieving offered assessments to bank mappings.
arg: proxy (osid.proxy.Proxy): a proxy
return: (osid.assessment.AssessmentOfferedBankSession) - an
``AssessmentOfferedBankSession``
raise: NullArgument - ``proxy`` is ``null``
raise: OperationFail... | [
"Gets",
"the",
"session",
"for",
"retrieving",
"offered",
"assessments",
"to",
"bank",
"mappings",
"."
] | train | https://github.com/mitsei/dlkit/blob/445f968a175d61c8d92c0f617a3c17dc1dc7c584/dlkit/json_/assessment/managers.py#L2681-L2698 |
mitsei/dlkit | dlkit/json_/assessment/managers.py | AssessmentProxyManager.get_assessment_offered_bank_assignment_session | def get_assessment_offered_bank_assignment_session(self, proxy):
"""Gets the session for assigning offered assessments to bank mappings.
arg: proxy (osid.proxy.Proxy): a proxy
return: (osid.assessment.AssessmentOfferedBankAssignmentSession)
- an ``AssessmentOfferedBankAssignm... | python | def get_assessment_offered_bank_assignment_session(self, proxy):
"""Gets the session for assigning offered assessments to bank mappings.
arg: proxy (osid.proxy.Proxy): a proxy
return: (osid.assessment.AssessmentOfferedBankAssignmentSession)
- an ``AssessmentOfferedBankAssignm... | [
"def",
"get_assessment_offered_bank_assignment_session",
"(",
"self",
",",
"proxy",
")",
":",
"if",
"not",
"self",
".",
"supports_assessment_offered_bank_assignment",
"(",
")",
":",
"raise",
"errors",
".",
"Unimplemented",
"(",
")",
"# pylint: disable=no-member",
"retur... | Gets the session for assigning offered assessments to bank mappings.
arg: proxy (osid.proxy.Proxy): a proxy
return: (osid.assessment.AssessmentOfferedBankAssignmentSession)
- an ``AssessmentOfferedBankAssignmentSession``
raise: NullArgument - ``proxy`` is ``null``
ra... | [
"Gets",
"the",
"session",
"for",
"assigning",
"offered",
"assessments",
"to",
"bank",
"mappings",
"."
] | train | https://github.com/mitsei/dlkit/blob/445f968a175d61c8d92c0f617a3c17dc1dc7c584/dlkit/json_/assessment/managers.py#L2701-L2719 |
mitsei/dlkit | dlkit/json_/assessment/managers.py | AssessmentProxyManager.get_assessment_taken_admin_session | def get_assessment_taken_admin_session(self, proxy):
"""Gets the ``OsidSession`` associated with the assessment taken administration service.
arg: proxy (osid.proxy.Proxy): a proxy
return: (osid.assessment.AssessmentTakenAdminSession) - an
``AssessmentTakenAdminSession``
... | python | def get_assessment_taken_admin_session(self, proxy):
"""Gets the ``OsidSession`` associated with the assessment taken administration service.
arg: proxy (osid.proxy.Proxy): a proxy
return: (osid.assessment.AssessmentTakenAdminSession) - an
``AssessmentTakenAdminSession``
... | [
"def",
"get_assessment_taken_admin_session",
"(",
"self",
",",
"proxy",
")",
":",
"if",
"not",
"self",
".",
"supports_assessment_taken_admin",
"(",
")",
":",
"raise",
"errors",
".",
"Unimplemented",
"(",
")",
"# pylint: disable=no-member",
"return",
"sessions",
".",... | Gets the ``OsidSession`` associated with the assessment taken administration service.
arg: proxy (osid.proxy.Proxy): a proxy
return: (osid.assessment.AssessmentTakenAdminSession) - an
``AssessmentTakenAdminSession``
raise: NullArgument - ``proxy`` is ``null``
raise: ... | [
"Gets",
"the",
"OsidSession",
"associated",
"with",
"the",
"assessment",
"taken",
"administration",
"service",
"."
] | train | https://github.com/mitsei/dlkit/blob/445f968a175d61c8d92c0f617a3c17dc1dc7c584/dlkit/json_/assessment/managers.py#L2814-L2831 |
mitsei/dlkit | dlkit/json_/assessment/managers.py | AssessmentProxyManager.get_assessment_taken_admin_session_for_bank | def get_assessment_taken_admin_session_for_bank(self, bank_id, proxy):
"""Gets the ``OsidSession`` associated with the assessment taken admin service for the given bank.
arg: bank_id (osid.id.Id): the ``Id`` of the bank
arg: proxy (osid.proxy.Proxy): a proxy
return: (osid.assessme... | python | def get_assessment_taken_admin_session_for_bank(self, bank_id, proxy):
"""Gets the ``OsidSession`` associated with the assessment taken admin service for the given bank.
arg: bank_id (osid.id.Id): the ``Id`` of the bank
arg: proxy (osid.proxy.Proxy): a proxy
return: (osid.assessme... | [
"def",
"get_assessment_taken_admin_session_for_bank",
"(",
"self",
",",
"bank_id",
",",
"proxy",
")",
":",
"if",
"not",
"self",
".",
"supports_assessment_taken_admin",
"(",
")",
":",
"raise",
"errors",
".",
"Unimplemented",
"(",
")",
"##",
"# Also include check to s... | Gets the ``OsidSession`` associated with the assessment taken admin service for the given bank.
arg: bank_id (osid.id.Id): the ``Id`` of the bank
arg: proxy (osid.proxy.Proxy): a proxy
return: (osid.assessment.AssessmentTakenAdminSession) - an
``AssessmentTakenSearchSessio... | [
"Gets",
"the",
"OsidSession",
"associated",
"with",
"the",
"assessment",
"taken",
"admin",
"service",
"for",
"the",
"given",
"bank",
"."
] | train | https://github.com/mitsei/dlkit/blob/445f968a175d61c8d92c0f617a3c17dc1dc7c584/dlkit/json_/assessment/managers.py#L2834-L2857 |
mitsei/dlkit | dlkit/json_/assessment/managers.py | AssessmentProxyManager.get_assessment_taken_bank_session | def get_assessment_taken_bank_session(self, proxy):
"""Gets the session for retrieving taken assessments to bank mappings.
arg: proxy (osid.proxy.Proxy): a proxy
return: (osid.assessment.AssessmentTakenBankSession) - an
``AssessmentTakenBankSession``
raise: NullArgum... | python | def get_assessment_taken_bank_session(self, proxy):
"""Gets the session for retrieving taken assessments to bank mappings.
arg: proxy (osid.proxy.Proxy): a proxy
return: (osid.assessment.AssessmentTakenBankSession) - an
``AssessmentTakenBankSession``
raise: NullArgum... | [
"def",
"get_assessment_taken_bank_session",
"(",
"self",
",",
"proxy",
")",
":",
"if",
"not",
"self",
".",
"supports_assessment_taken_bank",
"(",
")",
":",
"raise",
"errors",
".",
"Unimplemented",
"(",
")",
"# pylint: disable=no-member",
"return",
"sessions",
".",
... | Gets the session for retrieving taken assessments to bank mappings.
arg: proxy (osid.proxy.Proxy): a proxy
return: (osid.assessment.AssessmentTakenBankSession) - an
``AssessmentTakenBankSession``
raise: NullArgument - ``proxy`` is ``null``
raise: OperationFailed - u... | [
"Gets",
"the",
"session",
"for",
"retrieving",
"taken",
"assessments",
"to",
"bank",
"mappings",
"."
] | train | https://github.com/mitsei/dlkit/blob/445f968a175d61c8d92c0f617a3c17dc1dc7c584/dlkit/json_/assessment/managers.py#L2860-L2877 |
mitsei/dlkit | dlkit/json_/assessment/managers.py | AssessmentProxyManager.get_assessment_taken_bank_assignment_session | def get_assessment_taken_bank_assignment_session(self, proxy):
"""Gets the session for assigning taken assessments to bank mappings.
arg: proxy (osid.proxy.Proxy): a proxy
return: (osid.assessment.AssessmentTakenBankAssignmentSession) -
an ``AssessmentTakenBankAssignmentSessi... | python | def get_assessment_taken_bank_assignment_session(self, proxy):
"""Gets the session for assigning taken assessments to bank mappings.
arg: proxy (osid.proxy.Proxy): a proxy
return: (osid.assessment.AssessmentTakenBankAssignmentSession) -
an ``AssessmentTakenBankAssignmentSessi... | [
"def",
"get_assessment_taken_bank_assignment_session",
"(",
"self",
",",
"proxy",
")",
":",
"if",
"not",
"self",
".",
"supports_assessment_taken_bank_assignment",
"(",
")",
":",
"raise",
"errors",
".",
"Unimplemented",
"(",
")",
"# pylint: disable=no-member",
"return",
... | Gets the session for assigning taken assessments to bank mappings.
arg: proxy (osid.proxy.Proxy): a proxy
return: (osid.assessment.AssessmentTakenBankAssignmentSession) -
an ``AssessmentTakenBankAssignmentSession``
raise: NullArgument - ``proxy`` is ``null``
raise: ... | [
"Gets",
"the",
"session",
"for",
"assigning",
"taken",
"assessments",
"to",
"bank",
"mappings",
"."
] | train | https://github.com/mitsei/dlkit/blob/445f968a175d61c8d92c0f617a3c17dc1dc7c584/dlkit/json_/assessment/managers.py#L2880-L2898 |
mitsei/dlkit | dlkit/json_/assessment/managers.py | AssessmentProxyManager.get_bank_hierarchy_design_session | def get_bank_hierarchy_design_session(self, proxy):
"""Gets the session designing bank hierarchies.
arg: proxy (osid.proxy.Proxy): a proxy
return: (osid.assessment.BankHierarchyDesignSession) - a
``BankHierarchySession``
raise: NullArgument - ``proxy`` is ``null``
... | python | def get_bank_hierarchy_design_session(self, proxy):
"""Gets the session designing bank hierarchies.
arg: proxy (osid.proxy.Proxy): a proxy
return: (osid.assessment.BankHierarchyDesignSession) - a
``BankHierarchySession``
raise: NullArgument - ``proxy`` is ``null``
... | [
"def",
"get_bank_hierarchy_design_session",
"(",
"self",
",",
"proxy",
")",
":",
"if",
"not",
"self",
".",
"supports_bank_hierarchy_design",
"(",
")",
":",
"raise",
"errors",
".",
"Unimplemented",
"(",
")",
"# pylint: disable=no-member",
"return",
"sessions",
".",
... | Gets the session designing bank hierarchies.
arg: proxy (osid.proxy.Proxy): a proxy
return: (osid.assessment.BankHierarchyDesignSession) - a
``BankHierarchySession``
raise: NullArgument - ``proxy`` is ``null``
raise: OperationFailed - unable to complete request
... | [
"Gets",
"the",
"session",
"designing",
"bank",
"hierarchies",
"."
] | train | https://github.com/mitsei/dlkit/blob/445f968a175d61c8d92c0f617a3c17dc1dc7c584/dlkit/json_/assessment/managers.py#L2977-L2994 |
philipbergen/popen | popen/__init__.py | Sh.env | def env(self, **kw):
'''
Allows adding/overriding env vars in the execution context.
:param kw: Key-value pairs
:return: self
'''
self._original_env = kw
if self._env is None:
self._env = dict(os.environ)
self._env.update({k: unicode(v) for k, ... | python | def env(self, **kw):
'''
Allows adding/overriding env vars in the execution context.
:param kw: Key-value pairs
:return: self
'''
self._original_env = kw
if self._env is None:
self._env = dict(os.environ)
self._env.update({k: unicode(v) for k, ... | [
"def",
"env",
"(",
"self",
",",
"*",
"*",
"kw",
")",
":",
"self",
".",
"_original_env",
"=",
"kw",
"if",
"self",
".",
"_env",
"is",
"None",
":",
"self",
".",
"_env",
"=",
"dict",
"(",
"os",
".",
"environ",
")",
"self",
".",
"_env",
".",
"update... | Allows adding/overriding env vars in the execution context.
:param kw: Key-value pairs
:return: self | [
"Allows",
"adding",
"/",
"overriding",
"env",
"vars",
"in",
"the",
"execution",
"context",
".",
":",
"param",
"kw",
":",
"Key",
"-",
"value",
"pairs",
":",
"return",
":",
"self"
] | train | https://github.com/philipbergen/popen/blob/85a6897475dd865403ec3b704fb5fb0e93f0ff64/popen/__init__.py#L113-L123 |
philipbergen/popen | popen/__init__.py | Sh.expand | def expand(self, expand):
'''
Turn off argument expansion, useful for 'grep'. Example:
Sh('grep .*').expand(False) > 'tango'
:param expand: True or False
:return: self
'''
self._expand = expand
cmd = self._original_cmd
if len(cmd) == 1:
... | python | def expand(self, expand):
'''
Turn off argument expansion, useful for 'grep'. Example:
Sh('grep .*').expand(False) > 'tango'
:param expand: True or False
:return: self
'''
self._expand = expand
cmd = self._original_cmd
if len(cmd) == 1:
... | [
"def",
"expand",
"(",
"self",
",",
"expand",
")",
":",
"self",
".",
"_expand",
"=",
"expand",
"cmd",
"=",
"self",
".",
"_original_cmd",
"if",
"len",
"(",
"cmd",
")",
"==",
"1",
":",
"if",
"not",
"type",
"(",
"cmd",
"[",
"0",
"]",
")",
"in",
"("... | Turn off argument expansion, useful for 'grep'. Example:
Sh('grep .*').expand(False) > 'tango'
:param expand: True or False
:return: self | [
"Turn",
"off",
"argument",
"expansion",
"useful",
"for",
"grep",
".",
"Example",
":"
] | train | https://github.com/philipbergen/popen/blob/85a6897475dd865403ec3b704fb5fb0e93f0ff64/popen/__init__.py#L134-L152 |
philipbergen/popen | popen/__init__.py | Sh.returncode | def returncode(self):
'''
Runs the command if it has not yet run (redirecting output to stdout).
:return: The returncode of the last executed command in the chain.
'''
if not self._pop:
self > sys.stdout
link = self
while link is not None:
... | python | def returncode(self):
'''
Runs the command if it has not yet run (redirecting output to stdout).
:return: The returncode of the last executed command in the chain.
'''
if not self._pop:
self > sys.stdout
link = self
while link is not None:
... | [
"def",
"returncode",
"(",
"self",
")",
":",
"if",
"not",
"self",
".",
"_pop",
":",
"self",
">",
"sys",
".",
"stdout",
"link",
"=",
"self",
"while",
"link",
"is",
"not",
"None",
":",
"if",
"link",
".",
"_pop",
":",
"return",
"link",
".",
"_pop",
"... | Runs the command if it has not yet run (redirecting output to stdout).
:return: The returncode of the last executed command in the chain. | [
"Runs",
"the",
"command",
"if",
"it",
"has",
"not",
"yet",
"run",
"(",
"redirecting",
"output",
"to",
"stdout",
")",
".",
":",
"return",
":",
"The",
"returncode",
"of",
"the",
"last",
"executed",
"command",
"in",
"the",
"chain",
"."
] | train | https://github.com/philipbergen/popen/blob/85a6897475dd865403ec3b704fb5fb0e93f0ff64/popen/__init__.py#L165-L176 |
philipbergen/popen | popen/__init__.py | Sh.reset | def reset(self):
'''
Allows you to re-run the command chain.
:return: self
'''
t = self
while t._output is not None:
t = t._output
while t is not None:
if t._pop and t._pop.returncode is None:
t._pop.kill()
t... | python | def reset(self):
'''
Allows you to re-run the command chain.
:return: self
'''
t = self
while t._output is not None:
t = t._output
while t is not None:
if t._pop and t._pop.returncode is None:
t._pop.kill()
t... | [
"def",
"reset",
"(",
"self",
")",
":",
"t",
"=",
"self",
"while",
"t",
".",
"_output",
"is",
"not",
"None",
":",
"t",
"=",
"t",
".",
"_output",
"while",
"t",
"is",
"not",
"None",
":",
"if",
"t",
".",
"_pop",
"and",
"t",
".",
"_pop",
".",
"ret... | Allows you to re-run the command chain.
:return: self | [
"Allows",
"you",
"to",
"re",
"-",
"run",
"the",
"command",
"chain",
".",
":",
"return",
":",
"self"
] | train | https://github.com/philipbergen/popen/blob/85a6897475dd865403ec3b704fb5fb0e93f0ff64/popen/__init__.py#L178-L193 |
philipbergen/popen | popen/__init__.py | Sh._append | def _append(self, sh):
'''
Internal. Chains a command after this.
:param sh: Next command.
'''
sh._input = self
self._output = sh
if self._env:
sh._env = dict(self._env)
if self._cwd:
sh._cwd = self._cwd | python | def _append(self, sh):
'''
Internal. Chains a command after this.
:param sh: Next command.
'''
sh._input = self
self._output = sh
if self._env:
sh._env = dict(self._env)
if self._cwd:
sh._cwd = self._cwd | [
"def",
"_append",
"(",
"self",
",",
"sh",
")",
":",
"sh",
".",
"_input",
"=",
"self",
"self",
".",
"_output",
"=",
"sh",
"if",
"self",
".",
"_env",
":",
"sh",
".",
"_env",
"=",
"dict",
"(",
"self",
".",
"_env",
")",
"if",
"self",
".",
"_cwd",
... | Internal. Chains a command after this.
:param sh: Next command. | [
"Internal",
".",
"Chains",
"a",
"command",
"after",
"this",
".",
":",
"param",
"sh",
":",
"Next",
"command",
"."
] | train | https://github.com/philipbergen/popen/blob/85a6897475dd865403ec3b704fb5fb0e93f0ff64/popen/__init__.py#L329-L339 |
philipbergen/popen | popen/__init__.py | Sh._run | def _run(self, stdout=subprocess.PIPE):
'''
Internal. Starts running this command and those before it. Can only
be called once.
:param stdout: Where to send stdout for this link in the chain.
'''
assert self._pop is None
if self._input is not None:
sel... | python | def _run(self, stdout=subprocess.PIPE):
'''
Internal. Starts running this command and those before it. Can only
be called once.
:param stdout: Where to send stdout for this link in the chain.
'''
assert self._pop is None
if self._input is not None:
sel... | [
"def",
"_run",
"(",
"self",
",",
"stdout",
"=",
"subprocess",
".",
"PIPE",
")",
":",
"assert",
"self",
".",
"_pop",
"is",
"None",
"if",
"self",
".",
"_input",
"is",
"not",
"None",
":",
"self",
".",
"_input",
".",
"_run",
"(",
")",
"cwd",
"=",
"("... | Internal. Starts running this command and those before it. Can only
be called once.
:param stdout: Where to send stdout for this link in the chain. | [
"Internal",
".",
"Starts",
"running",
"this",
"command",
"and",
"those",
"before",
"it",
".",
"Can",
"only",
"be",
"called",
"once",
".",
":",
"param",
"stdout",
":",
"Where",
"to",
"send",
"stdout",
"for",
"this",
"link",
"in",
"the",
"chain",
"."
] | train | https://github.com/philipbergen/popen/blob/85a6897475dd865403ec3b704fb5fb0e93f0ff64/popen/__init__.py#L341-L383 |
philipbergen/popen | popen/__init__.py | Sh._stream_out | def _stream_out(self, outfile, append=False):
'''
Internal. Writes all stdout into outfile.
:param outfile: Filename or file-like object for writing.
:param append: Opens filename with append.
:return: This command's returncode.
'''
if type(outfile) in (str, unico... | python | def _stream_out(self, outfile, append=False):
'''
Internal. Writes all stdout into outfile.
:param outfile: Filename or file-like object for writing.
:param append: Opens filename with append.
:return: This command's returncode.
'''
if type(outfile) in (str, unico... | [
"def",
"_stream_out",
"(",
"self",
",",
"outfile",
",",
"append",
"=",
"False",
")",
":",
"if",
"type",
"(",
"outfile",
")",
"in",
"(",
"str",
",",
"unicode",
")",
":",
"outfile",
"=",
"os",
".",
"path",
".",
"expanduser",
"(",
"os",
".",
"path",
... | Internal. Writes all stdout into outfile.
:param outfile: Filename or file-like object for writing.
:param append: Opens filename with append.
:return: This command's returncode. | [
"Internal",
".",
"Writes",
"all",
"stdout",
"into",
"outfile",
".",
":",
"param",
"outfile",
":",
"Filename",
"or",
"file",
"-",
"like",
"object",
"for",
"writing",
".",
":",
"param",
"append",
":",
"Opens",
"filename",
"with",
"append",
".",
":",
"retur... | train | https://github.com/philipbergen/popen/blob/85a6897475dd865403ec3b704fb5fb0e93f0ff64/popen/__init__.py#L385-L396 |
philipbergen/popen | popen/__init__.py | Sh.pipe | def pipe(cls, input):
'''
Creates a stdin source for Sh object chains.
:param input: If string; open as filename, if iterable, send iterated content into next command,
if none of the above assume file like object.
To input a string as content source, wrap in iterable:
p... | python | def pipe(cls, input):
'''
Creates a stdin source for Sh object chains.
:param input: If string; open as filename, if iterable, send iterated content into next command,
if none of the above assume file like object.
To input a string as content source, wrap in iterable:
p... | [
"def",
"pipe",
"(",
"cls",
",",
"input",
")",
":",
"if",
"type",
"(",
"input",
")",
"in",
"(",
"str",
",",
"unicode",
")",
":",
"return",
"cls",
".",
"Stdin",
".",
"from_file",
"(",
"input",
")",
"try",
":",
"return",
"cls",
".",
"Stdin",
".",
... | Creates a stdin source for Sh object chains.
:param input: If string; open as filename, if iterable, send iterated content into next command,
if none of the above assume file like object.
To input a string as content source, wrap in iterable:
print 'Lines in "my_input_string":', Sh.pip... | [
"Creates",
"a",
"stdin",
"source",
"for",
"Sh",
"object",
"chains",
".",
":",
"param",
"input",
":",
"If",
"string",
";",
"open",
"as",
"filename",
"if",
"iterable",
"send",
"iterated",
"content",
"into",
"next",
"command",
"if",
"none",
"of",
"the",
"ab... | train | https://github.com/philipbergen/popen/blob/85a6897475dd865403ec3b704fb5fb0e93f0ff64/popen/__init__.py#L399-L418 |
Vagrants/blackbird | blackbird/utils/helpers.py | helper_import | def helper_import(module_name, class_name=None):
"""
Return class or module object.
if the argument is only a module name and return a module object.
if the argument is a module and class name, and return a class object.
"""
try:
module = __import__(module_name, globals(), locals(), [cla... | python | def helper_import(module_name, class_name=None):
"""
Return class or module object.
if the argument is only a module name and return a module object.
if the argument is a module and class name, and return a class object.
"""
try:
module = __import__(module_name, globals(), locals(), [cla... | [
"def",
"helper_import",
"(",
"module_name",
",",
"class_name",
"=",
"None",
")",
":",
"try",
":",
"module",
"=",
"__import__",
"(",
"module_name",
",",
"globals",
"(",
")",
",",
"locals",
"(",
")",
",",
"[",
"class_name",
"]",
")",
"except",
"(",
"Blac... | Return class or module object.
if the argument is only a module name and return a module object.
if the argument is a module and class name, and return a class object. | [
"Return",
"class",
"or",
"module",
"object",
".",
"if",
"the",
"argument",
"is",
"only",
"a",
"module",
"name",
"and",
"return",
"a",
"module",
"object",
".",
"if",
"the",
"argument",
"is",
"a",
"module",
"and",
"class",
"name",
"and",
"return",
"a",
"... | train | https://github.com/Vagrants/blackbird/blob/3b38cd5650caae362e0668dbd38bf8f88233e079/blackbird/utils/helpers.py#L9-L29 |
Vagrants/blackbird | blackbird/utils/helpers.py | global_import | def global_import(mod_name):
"""
This function search sys.path[1:], return specified module.
sys.path[1:] means the directories other than current directory('./').
'mod_name' as an argument is string type object.
"""
mod_tuple = imp.find_module(mod_name, sys.path[1:])
mod = imp.load_module(... | python | def global_import(mod_name):
"""
This function search sys.path[1:], return specified module.
sys.path[1:] means the directories other than current directory('./').
'mod_name' as an argument is string type object.
"""
mod_tuple = imp.find_module(mod_name, sys.path[1:])
mod = imp.load_module(... | [
"def",
"global_import",
"(",
"mod_name",
")",
":",
"mod_tuple",
"=",
"imp",
".",
"find_module",
"(",
"mod_name",
",",
"sys",
".",
"path",
"[",
"1",
":",
"]",
")",
"mod",
"=",
"imp",
".",
"load_module",
"(",
"mod_name",
",",
"mod_tuple",
"[",
"0",
"]"... | This function search sys.path[1:], return specified module.
sys.path[1:] means the directories other than current directory('./').
'mod_name' as an argument is string type object. | [
"This",
"function",
"search",
"sys",
".",
"path",
"[",
"1",
":",
"]",
"return",
"specified",
"module",
".",
"sys",
".",
"path",
"[",
"1",
":",
"]",
"means",
"the",
"directories",
"other",
"than",
"current",
"directory",
"(",
".",
"/",
")",
"."
] | train | https://github.com/Vagrants/blackbird/blob/3b38cd5650caae362e0668dbd38bf8f88233e079/blackbird/utils/helpers.py#L32-L42 |
kylef/maintain | maintain/commands/repo.py | gather_repositories | def gather_repositories():
"""
Collects all of the repositories. The current implementation
searches for them in the current working directory.
"""
for (root, dirs, files) in os.walk('.', topdown=True):
if '.git' not in dirs:
continue
for dir in list(dirs):
... | python | def gather_repositories():
"""
Collects all of the repositories. The current implementation
searches for them in the current working directory.
"""
for (root, dirs, files) in os.walk('.', topdown=True):
if '.git' not in dirs:
continue
for dir in list(dirs):
... | [
"def",
"gather_repositories",
"(",
")",
":",
"for",
"(",
"root",
",",
"dirs",
",",
"files",
")",
"in",
"os",
".",
"walk",
"(",
"'.'",
",",
"topdown",
"=",
"True",
")",
":",
"if",
"'.git'",
"not",
"in",
"dirs",
":",
"continue",
"for",
"dir",
"in",
... | Collects all of the repositories. The current implementation
searches for them in the current working directory. | [
"Collects",
"all",
"of",
"the",
"repositories",
".",
"The",
"current",
"implementation",
"searches",
"for",
"them",
"in",
"the",
"current",
"working",
"directory",
"."
] | train | https://github.com/kylef/maintain/blob/4b60e6c52accb4a7faf0d7255a7079087d3ecee0/maintain/commands/repo.py#L12-L27 |
kylef/maintain | maintain/commands/repo.py | run | def run(command, exit, silent, check):
"""
Runs given command on all repos and checks status
$ maintain repo run -- git checkout master
"""
status = 0
for (repo, path) in gather_repositories():
if check and not check_repo(repo, path):
status = 1
if exit:
... | python | def run(command, exit, silent, check):
"""
Runs given command on all repos and checks status
$ maintain repo run -- git checkout master
"""
status = 0
for (repo, path) in gather_repositories():
if check and not check_repo(repo, path):
status = 1
if exit:
... | [
"def",
"run",
"(",
"command",
",",
"exit",
",",
"silent",
",",
"check",
")",
":",
"status",
"=",
"0",
"for",
"(",
"repo",
",",
"path",
")",
"in",
"gather_repositories",
"(",
")",
":",
"if",
"check",
"and",
"not",
"check_repo",
"(",
"repo",
",",
"pa... | Runs given command on all repos and checks status
$ maintain repo run -- git checkout master | [
"Runs",
"given",
"command",
"on",
"all",
"repos",
"and",
"checks",
"status"
] | train | https://github.com/kylef/maintain/blob/4b60e6c52accb4a7faf0d7255a7079087d3ecee0/maintain/commands/repo.py#L79-L107 |
bkabrda/anymarkup-core | anymarkup_core/__init__.py | parse | def parse(inp, format=None, encoding='utf-8', force_types=True):
"""Parse input from file-like object, unicode string or byte string.
Args:
inp: file-like object, unicode string or byte string with the markup
format: explicitly override the guessed `inp` markup format
encoding: `inp` en... | python | def parse(inp, format=None, encoding='utf-8', force_types=True):
"""Parse input from file-like object, unicode string or byte string.
Args:
inp: file-like object, unicode string or byte string with the markup
format: explicitly override the guessed `inp` markup format
encoding: `inp` en... | [
"def",
"parse",
"(",
"inp",
",",
"format",
"=",
"None",
",",
"encoding",
"=",
"'utf-8'",
",",
"force_types",
"=",
"True",
")",
":",
"proper_inp",
"=",
"inp",
"if",
"hasattr",
"(",
"inp",
",",
"'read'",
")",
":",
"proper_inp",
"=",
"inp",
".",
"read",... | Parse input from file-like object, unicode string or byte string.
Args:
inp: file-like object, unicode string or byte string with the markup
format: explicitly override the guessed `inp` markup format
encoding: `inp` encoding, defaults to utf-8
force_types:
if `True`, in... | [
"Parse",
"input",
"from",
"file",
"-",
"like",
"object",
"unicode",
"string",
"or",
"byte",
"string",
"."
] | train | https://github.com/bkabrda/anymarkup-core/blob/299935092fc2650cca4e32ec92441786918f9bab/anymarkup_core/__init__.py#L76-L117 |
bkabrda/anymarkup-core | anymarkup_core/__init__.py | parse_file | def parse_file(path, format=None, encoding='utf-8', force_types=True):
"""A convenience wrapper of parse, which accepts path of file to parse.
Args:
path: path to file to parse
format: explicitly override the guessed `inp` markup format
encoding: file encoding, defaults to utf-8
... | python | def parse_file(path, format=None, encoding='utf-8', force_types=True):
"""A convenience wrapper of parse, which accepts path of file to parse.
Args:
path: path to file to parse
format: explicitly override the guessed `inp` markup format
encoding: file encoding, defaults to utf-8
... | [
"def",
"parse_file",
"(",
"path",
",",
"format",
"=",
"None",
",",
"encoding",
"=",
"'utf-8'",
",",
"force_types",
"=",
"True",
")",
":",
"try",
":",
"with",
"open",
"(",
"path",
",",
"'rb'",
")",
"as",
"f",
":",
"return",
"parse",
"(",
"f",
",",
... | A convenience wrapper of parse, which accepts path of file to parse.
Args:
path: path to file to parse
format: explicitly override the guessed `inp` markup format
encoding: file encoding, defaults to utf-8
force_types:
if `True`, integers, floats, booleans and none/null
... | [
"A",
"convenience",
"wrapper",
"of",
"parse",
"which",
"accepts",
"path",
"of",
"file",
"to",
"parse",
"."
] | train | https://github.com/bkabrda/anymarkup-core/blob/299935092fc2650cca4e32ec92441786918f9bab/anymarkup_core/__init__.py#L120-L141 |
bkabrda/anymarkup-core | anymarkup_core/__init__.py | serialize | def serialize(struct, format, target=None, encoding='utf-8'):
"""Serialize given structure and return it as encoded string or write it to file-like object.
Args:
struct: structure (dict or list) with unicode members to serialize; note that list
can only be serialized to json
format:... | python | def serialize(struct, format, target=None, encoding='utf-8'):
"""Serialize given structure and return it as encoded string or write it to file-like object.
Args:
struct: structure (dict or list) with unicode members to serialize; note that list
can only be serialized to json
format:... | [
"def",
"serialize",
"(",
"struct",
",",
"format",
",",
"target",
"=",
"None",
",",
"encoding",
"=",
"'utf-8'",
")",
":",
"# raise if \"unicode-opened\"",
"if",
"hasattr",
"(",
"target",
",",
"'encoding'",
")",
"and",
"target",
".",
"encoding",
":",
"raise",
... | Serialize given structure and return it as encoded string or write it to file-like object.
Args:
struct: structure (dict or list) with unicode members to serialize; note that list
can only be serialized to json
format: specify markup format to serialize structure as
target: bina... | [
"Serialize",
"given",
"structure",
"and",
"return",
"it",
"as",
"encoded",
"string",
"or",
"write",
"it",
"to",
"file",
"-",
"like",
"object",
"."
] | train | https://github.com/bkabrda/anymarkup-core/blob/299935092fc2650cca4e32ec92441786918f9bab/anymarkup_core/__init__.py#L144-L177 |
bkabrda/anymarkup-core | anymarkup_core/__init__.py | serialize_file | def serialize_file(struct, path, format=None, encoding='utf-8'):
"""A convenience wrapper of serialize, which accepts path of file to serialize to.
Args:
struct: structure (dict or list) with unicode members to serialize; note that list
can only be serialized to json
path: path of t... | python | def serialize_file(struct, path, format=None, encoding='utf-8'):
"""A convenience wrapper of serialize, which accepts path of file to serialize to.
Args:
struct: structure (dict or list) with unicode members to serialize; note that list
can only be serialized to json
path: path of t... | [
"def",
"serialize_file",
"(",
"struct",
",",
"path",
",",
"format",
"=",
"None",
",",
"encoding",
"=",
"'utf-8'",
")",
":",
"try",
":",
"with",
"open",
"(",
"path",
",",
"'wb'",
")",
"as",
"f",
":",
"return",
"serialize",
"(",
"struct",
",",
"format"... | A convenience wrapper of serialize, which accepts path of file to serialize to.
Args:
struct: structure (dict or list) with unicode members to serialize; note that list
can only be serialized to json
path: path of the file to serialize to
format: override markup format to serial... | [
"A",
"convenience",
"wrapper",
"of",
"serialize",
"which",
"accepts",
"path",
"of",
"file",
"to",
"serialize",
"to",
"."
] | train | https://github.com/bkabrda/anymarkup-core/blob/299935092fc2650cca4e32ec92441786918f9bab/anymarkup_core/__init__.py#L180-L199 |
bkabrda/anymarkup-core | anymarkup_core/__init__.py | _do_parse | def _do_parse(inp, fmt, encoding, force_types):
"""Actually parse input.
Args:
inp: bytes yielding file-like object
fmt: format to use for parsing
encoding: encoding of `inp`
force_types:
if `True`, integers, floats, booleans and none/null
are recogni... | python | def _do_parse(inp, fmt, encoding, force_types):
"""Actually parse input.
Args:
inp: bytes yielding file-like object
fmt: format to use for parsing
encoding: encoding of `inp`
force_types:
if `True`, integers, floats, booleans and none/null
are recogni... | [
"def",
"_do_parse",
"(",
"inp",
",",
"fmt",
",",
"encoding",
",",
"force_types",
")",
":",
"res",
"=",
"{",
"}",
"_check_lib_installed",
"(",
"fmt",
",",
"'parse'",
")",
"if",
"fmt",
"==",
"'ini'",
":",
"cfg",
"=",
"configobj",
".",
"ConfigObj",
"(",
... | Actually parse input.
Args:
inp: bytes yielding file-like object
fmt: format to use for parsing
encoding: encoding of `inp`
force_types:
if `True`, integers, floats, booleans and none/null
are recognized and returned as proper types instead of strings;
... | [
"Actually",
"parse",
"input",
"."
] | train | https://github.com/bkabrda/anymarkup-core/blob/299935092fc2650cca4e32ec92441786918f9bab/anymarkup_core/__init__.py#L208-L259 |
bkabrda/anymarkup-core | anymarkup_core/__init__.py | _do_serialize | def _do_serialize(struct, fmt, encoding):
"""Actually serialize input.
Args:
struct: structure to serialize to
fmt: format to serialize to
encoding: encoding to use while serializing
Returns:
encoded serialized structure
Raises:
various sorts of errors raised by ... | python | def _do_serialize(struct, fmt, encoding):
"""Actually serialize input.
Args:
struct: structure to serialize to
fmt: format to serialize to
encoding: encoding to use while serializing
Returns:
encoded serialized structure
Raises:
various sorts of errors raised by ... | [
"def",
"_do_serialize",
"(",
"struct",
",",
"fmt",
",",
"encoding",
")",
":",
"res",
"=",
"None",
"_check_lib_installed",
"(",
"fmt",
",",
"'serialize'",
")",
"if",
"fmt",
"==",
"'ini'",
":",
"config",
"=",
"configobj",
".",
"ConfigObj",
"(",
"encoding",
... | Actually serialize input.
Args:
struct: structure to serialize to
fmt: format to serialize to
encoding: encoding to use while serializing
Returns:
encoded serialized structure
Raises:
various sorts of errors raised by libraries while serializing | [
"Actually",
"serialize",
"input",
"."
] | train | https://github.com/bkabrda/anymarkup-core/blob/299935092fc2650cca4e32ec92441786918f9bab/anymarkup_core/__init__.py#L262-L302 |
bkabrda/anymarkup-core | anymarkup_core/__init__.py | _ensure_proper_types | def _ensure_proper_types(struct, encoding, force_types):
"""A convenience function that recursively makes sure the given structure
contains proper types according to value of `force_types`.
Args:
struct: a structure to check and fix
encoding: encoding to use on found bytestrings
for... | python | def _ensure_proper_types(struct, encoding, force_types):
"""A convenience function that recursively makes sure the given structure
contains proper types according to value of `force_types`.
Args:
struct: a structure to check and fix
encoding: encoding to use on found bytestrings
for... | [
"def",
"_ensure_proper_types",
"(",
"struct",
",",
"encoding",
",",
"force_types",
")",
":",
"if",
"force_types",
"is",
"None",
":",
"return",
"struct",
"# if it's an empty value",
"res",
"=",
"None",
"if",
"isinstance",
"(",
"struct",
",",
"(",
"dict",
",",
... | A convenience function that recursively makes sure the given structure
contains proper types according to value of `force_types`.
Args:
struct: a structure to check and fix
encoding: encoding to use on found bytestrings
force_types:
if `True`, integers, floats, booleans and ... | [
"A",
"convenience",
"function",
"that",
"recursively",
"makes",
"sure",
"the",
"given",
"structure",
"contains",
"proper",
"types",
"according",
"to",
"value",
"of",
"force_types",
"."
] | train | https://github.com/bkabrda/anymarkup-core/blob/299935092fc2650cca4e32ec92441786918f9bab/anymarkup_core/__init__.py#L305-L351 |
bkabrda/anymarkup-core | anymarkup_core/__init__.py | _recognize_basic_types | def _recognize_basic_types(s):
"""If value of given string `s` is an integer (or long), float or boolean, convert it
to a proper type and return it.
"""
tps = [int, float]
if not six.PY3: # compat for older versions of six that don't have PY2
tps.append(long)
for tp in tps:
try:... | python | def _recognize_basic_types(s):
"""If value of given string `s` is an integer (or long), float or boolean, convert it
to a proper type and return it.
"""
tps = [int, float]
if not six.PY3: # compat for older versions of six that don't have PY2
tps.append(long)
for tp in tps:
try:... | [
"def",
"_recognize_basic_types",
"(",
"s",
")",
":",
"tps",
"=",
"[",
"int",
",",
"float",
"]",
"if",
"not",
"six",
".",
"PY3",
":",
"# compat for older versions of six that don't have PY2",
"tps",
".",
"append",
"(",
"long",
")",
"for",
"tp",
"in",
"tps",
... | If value of given string `s` is an integer (or long), float or boolean, convert it
to a proper type and return it. | [
"If",
"value",
"of",
"given",
"string",
"s",
"is",
"an",
"integer",
"(",
"or",
"long",
")",
"float",
"or",
"boolean",
"convert",
"it",
"to",
"a",
"proper",
"type",
"and",
"return",
"it",
"."
] | train | https://github.com/bkabrda/anymarkup-core/blob/299935092fc2650cca4e32ec92441786918f9bab/anymarkup_core/__init__.py#L354-L373 |
bkabrda/anymarkup-core | anymarkup_core/__init__.py | _get_format | def _get_format(format, fname, inp=None):
"""Try to guess markup format of given input.
Args:
format: explicit format override to use
fname: name of file, if a file was used to read `inp`
inp: optional bytestring to guess format of (can be None, if markup
format is to be gue... | python | def _get_format(format, fname, inp=None):
"""Try to guess markup format of given input.
Args:
format: explicit format override to use
fname: name of file, if a file was used to read `inp`
inp: optional bytestring to guess format of (can be None, if markup
format is to be gue... | [
"def",
"_get_format",
"(",
"format",
",",
"fname",
",",
"inp",
"=",
"None",
")",
":",
"fmt",
"=",
"None",
"err",
"=",
"True",
"if",
"format",
"is",
"not",
"None",
":",
"if",
"format",
"in",
"fmt_to_exts",
":",
"fmt",
"=",
"format",
"err",
"=",
"Fal... | Try to guess markup format of given input.
Args:
format: explicit format override to use
fname: name of file, if a file was used to read `inp`
inp: optional bytestring to guess format of (can be None, if markup
format is to be guessed only from `format` and `fname`)
Returns:... | [
"Try",
"to",
"guess",
"markup",
"format",
"of",
"given",
"input",
"."
] | train | https://github.com/bkabrda/anymarkup-core/blob/299935092fc2650cca4e32ec92441786918f9bab/anymarkup_core/__init__.py#L376-L422 |
bkabrda/anymarkup-core | anymarkup_core/__init__.py | _guess_fmt_from_bytes | def _guess_fmt_from_bytes(inp):
"""Try to guess format of given bytestring.
Args:
inp: byte string to guess format of
Returns:
guessed format
"""
stripped = inp.strip()
fmt = None
ini_section_header_re = re.compile(b'^\[([\w-]+)\]')
if len(stripped) == 0:
# this... | python | def _guess_fmt_from_bytes(inp):
"""Try to guess format of given bytestring.
Args:
inp: byte string to guess format of
Returns:
guessed format
"""
stripped = inp.strip()
fmt = None
ini_section_header_re = re.compile(b'^\[([\w-]+)\]')
if len(stripped) == 0:
# this... | [
"def",
"_guess_fmt_from_bytes",
"(",
"inp",
")",
":",
"stripped",
"=",
"inp",
".",
"strip",
"(",
")",
"fmt",
"=",
"None",
"ini_section_header_re",
"=",
"re",
".",
"compile",
"(",
"b'^\\[([\\w-]+)\\]'",
")",
"if",
"len",
"(",
"stripped",
")",
"==",
"0",
"... | Try to guess format of given bytestring.
Args:
inp: byte string to guess format of
Returns:
guessed format | [
"Try",
"to",
"guess",
"format",
"of",
"given",
"bytestring",
"."
] | train | https://github.com/bkabrda/anymarkup-core/blob/299935092fc2650cca4e32ec92441786918f9bab/anymarkup_core/__init__.py#L425-L458 |
OpenAgInitiative/openag_python | openag/cli/cloud/farm.py | create_farm | def create_farm(farm_name):
"""
Create a farm. Creates a farm named FARM_NAME on the currently selected
cloud server. You can use the `openag cloud select_farm` command to start
mirroring data into it.
"""
utils.check_for_cloud_server()
utils.check_for_cloud_user()
server = Server(config... | python | def create_farm(farm_name):
"""
Create a farm. Creates a farm named FARM_NAME on the currently selected
cloud server. You can use the `openag cloud select_farm` command to start
mirroring data into it.
"""
utils.check_for_cloud_server()
utils.check_for_cloud_user()
server = Server(config... | [
"def",
"create_farm",
"(",
"farm_name",
")",
":",
"utils",
".",
"check_for_cloud_server",
"(",
")",
"utils",
".",
"check_for_cloud_user",
"(",
")",
"server",
"=",
"Server",
"(",
"config",
"[",
"\"cloud_server\"",
"]",
"[",
"\"url\"",
"]",
")",
"username",
"=... | Create a farm. Creates a farm named FARM_NAME on the currently selected
cloud server. You can use the `openag cloud select_farm` command to start
mirroring data into it. | [
"Create",
"a",
"farm",
".",
"Creates",
"a",
"farm",
"named",
"FARM_NAME",
"on",
"the",
"currently",
"selected",
"cloud",
"server",
".",
"You",
"can",
"use",
"the",
"openag",
"cloud",
"select_farm",
"command",
"to",
"start",
"mirroring",
"data",
"into",
"it",... | train | https://github.com/OpenAgInitiative/openag_python/blob/f6202340292bbf7185e1a7d4290188c0dacbb8d0/openag/cli/cloud/farm.py#L11-L34 |
OpenAgInitiative/openag_python | openag/cli/cloud/farm.py | list_farms | def list_farms():
"""
List all farms you can manage. If you have selected a farm already, the
name of that farm will be prefixed with an asterisk in the returned list.
"""
utils.check_for_cloud_server()
utils.check_for_cloud_user()
server = Server(config["cloud_server"]["url"])
server.lo... | python | def list_farms():
"""
List all farms you can manage. If you have selected a farm already, the
name of that farm will be prefixed with an asterisk in the returned list.
"""
utils.check_for_cloud_server()
utils.check_for_cloud_user()
server = Server(config["cloud_server"]["url"])
server.lo... | [
"def",
"list_farms",
"(",
")",
":",
"utils",
".",
"check_for_cloud_server",
"(",
")",
"utils",
".",
"check_for_cloud_user",
"(",
")",
"server",
"=",
"Server",
"(",
"config",
"[",
"\"cloud_server\"",
"]",
"[",
"\"url\"",
"]",
")",
"server",
".",
"log_in",
"... | List all farms you can manage. If you have selected a farm already, the
name of that farm will be prefixed with an asterisk in the returned list. | [
"List",
"all",
"farms",
"you",
"can",
"manage",
".",
"If",
"you",
"have",
"selected",
"a",
"farm",
"already",
"the",
"name",
"of",
"that",
"farm",
"will",
"be",
"prefixed",
"with",
"an",
"asterisk",
"in",
"the",
"returned",
"list",
"."
] | train | https://github.com/OpenAgInitiative/openag_python/blob/f6202340292bbf7185e1a7d4290188c0dacbb8d0/openag/cli/cloud/farm.py#L37-L58 |
OpenAgInitiative/openag_python | openag/cli/cloud/farm.py | init_farm | def init_farm(farm_name):
"""
Select a farm to use. This command sets up the replication between your
local database and the selected cloud server if you have already
initialized your local database with the `openag db init` command.
"""
utils.check_for_cloud_server()
utils.check_for_cloud_u... | python | def init_farm(farm_name):
"""
Select a farm to use. This command sets up the replication between your
local database and the selected cloud server if you have already
initialized your local database with the `openag db init` command.
"""
utils.check_for_cloud_server()
utils.check_for_cloud_u... | [
"def",
"init_farm",
"(",
"farm_name",
")",
":",
"utils",
".",
"check_for_cloud_server",
"(",
")",
"utils",
".",
"check_for_cloud_user",
"(",
")",
"old_farm_name",
"=",
"config",
"[",
"\"cloud_server\"",
"]",
"[",
"\"farm_name\"",
"]",
"if",
"old_farm_name",
"and... | Select a farm to use. This command sets up the replication between your
local database and the selected cloud server if you have already
initialized your local database with the `openag db init` command. | [
"Select",
"a",
"farm",
"to",
"use",
".",
"This",
"command",
"sets",
"up",
"the",
"replication",
"between",
"your",
"local",
"database",
"and",
"the",
"selected",
"cloud",
"server",
"if",
"you",
"have",
"already",
"initialized",
"your",
"local",
"database",
"... | train | https://github.com/OpenAgInitiative/openag_python/blob/f6202340292bbf7185e1a7d4290188c0dacbb8d0/openag/cli/cloud/farm.py#L62-L78 |
OpenAgInitiative/openag_python | openag/cli/cloud/farm.py | deinit_farm | def deinit_farm():
"""
Detach from the current farm. Cancels the replication between your local
server and the cloud instance if it is set up.
"""
utils.check_for_cloud_server()
utils.check_for_cloud_user()
utils.check_for_cloud_farm()
farm_name = config["cloud_server"]["farm_name"]
... | python | def deinit_farm():
"""
Detach from the current farm. Cancels the replication between your local
server and the cloud instance if it is set up.
"""
utils.check_for_cloud_server()
utils.check_for_cloud_user()
utils.check_for_cloud_farm()
farm_name = config["cloud_server"]["farm_name"]
... | [
"def",
"deinit_farm",
"(",
")",
":",
"utils",
".",
"check_for_cloud_server",
"(",
")",
"utils",
".",
"check_for_cloud_user",
"(",
")",
"utils",
".",
"check_for_cloud_farm",
"(",
")",
"farm_name",
"=",
"config",
"[",
"\"cloud_server\"",
"]",
"[",
"\"farm_name\"",... | Detach from the current farm. Cancels the replication between your local
server and the cloud instance if it is set up. | [
"Detach",
"from",
"the",
"current",
"farm",
".",
"Cancels",
"the",
"replication",
"between",
"your",
"local",
"server",
"and",
"the",
"cloud",
"instance",
"if",
"it",
"is",
"set",
"up",
"."
] | train | https://github.com/OpenAgInitiative/openag_python/blob/f6202340292bbf7185e1a7d4290188c0dacbb8d0/openag/cli/cloud/farm.py#L81-L92 |
mitsei/dlkit | dlkit/json_/assessment/objects.py | Question.get_learning_objective_ids | def get_learning_objective_ids(self):
""" This method mirrors that in the Item.
So that questions can also be inspected for learning objectives
"""
if 'learningObjectiveIds' not in self._my_map: # Will this ever be the case?
collection = JSONClientValidated('assessment',
... | python | def get_learning_objective_ids(self):
""" This method mirrors that in the Item.
So that questions can also be inspected for learning objectives
"""
if 'learningObjectiveIds' not in self._my_map: # Will this ever be the case?
collection = JSONClientValidated('assessment',
... | [
"def",
"get_learning_objective_ids",
"(",
"self",
")",
":",
"if",
"'learningObjectiveIds'",
"not",
"in",
"self",
".",
"_my_map",
":",
"# Will this ever be the case?",
"collection",
"=",
"JSONClientValidated",
"(",
"'assessment'",
",",
"collection",
"=",
"'Item'",
",",... | This method mirrors that in the Item.
So that questions can also be inspected for learning objectives | [
"This",
"method",
"mirrors",
"that",
"in",
"the",
"Item",
"."
] | train | https://github.com/mitsei/dlkit/blob/445f968a175d61c8d92c0f617a3c17dc1dc7c584/dlkit/json_/assessment/objects.py#L112-L124 |
mitsei/dlkit | dlkit/json_/assessment/objects.py | Question.get_learning_objectives | def get_learning_objectives(self):
""" This method also mirrors that in the Item."""
# This is pretty much identicial to the method in assessment.Item!
mgr = self._get_provider_manager('LEARNING')
lookup_session = mgr.get_objective_lookup_session(proxy=getattr(self, "_proxy", None))
... | python | def get_learning_objectives(self):
""" This method also mirrors that in the Item."""
# This is pretty much identicial to the method in assessment.Item!
mgr = self._get_provider_manager('LEARNING')
lookup_session = mgr.get_objective_lookup_session(proxy=getattr(self, "_proxy", None))
... | [
"def",
"get_learning_objectives",
"(",
"self",
")",
":",
"# This is pretty much identicial to the method in assessment.Item!",
"mgr",
"=",
"self",
".",
"_get_provider_manager",
"(",
"'LEARNING'",
")",
"lookup_session",
"=",
"mgr",
".",
"get_objective_lookup_session",
"(",
"... | This method also mirrors that in the Item. | [
"This",
"method",
"also",
"mirrors",
"that",
"in",
"the",
"Item",
"."
] | train | https://github.com/mitsei/dlkit/blob/445f968a175d61c8d92c0f617a3c17dc1dc7c584/dlkit/json_/assessment/objects.py#L128-L134 |
mitsei/dlkit | dlkit/json_/assessment/objects.py | Item.get_learning_objectives | def get_learning_objectives(self):
"""Gets the any ``Objectives`` corresponding to this item.
return: (osid.learning.ObjectiveList) - the learning objectives
raise: OperationFailed - unable to complete request
*compliance: mandatory -- This method must be implemented.*
"""
... | python | def get_learning_objectives(self):
"""Gets the any ``Objectives`` corresponding to this item.
return: (osid.learning.ObjectiveList) - the learning objectives
raise: OperationFailed - unable to complete request
*compliance: mandatory -- This method must be implemented.*
"""
... | [
"def",
"get_learning_objectives",
"(",
"self",
")",
":",
"# Implemented from template for osid.learning.Activity.get_assets_template",
"if",
"not",
"bool",
"(",
"self",
".",
"_my_map",
"[",
"'learningObjectiveIds'",
"]",
")",
":",
"raise",
"errors",
".",
"IllegalState",
... | Gets the any ``Objectives`` corresponding to this item.
return: (osid.learning.ObjectiveList) - the learning objectives
raise: OperationFailed - unable to complete request
*compliance: mandatory -- This method must be implemented.* | [
"Gets",
"the",
"any",
"Objectives",
"corresponding",
"to",
"this",
"item",
"."
] | train | https://github.com/mitsei/dlkit/blob/445f968a175d61c8d92c0f617a3c17dc1dc7c584/dlkit/json_/assessment/objects.py#L413-L431 |
mitsei/dlkit | dlkit/json_/assessment/objects.py | Item.get_question | def get_question(self):
"""Gets the question.
return: (osid.assessment.Question) - the question
raise: OperationFailed - unable to complete request
*compliance: mandatory -- This method must be implemented.*
"""
question_map = dict(self._my_map['question'])
que... | python | def get_question(self):
"""Gets the question.
return: (osid.assessment.Question) - the question
raise: OperationFailed - unable to complete request
*compliance: mandatory -- This method must be implemented.*
"""
question_map = dict(self._my_map['question'])
que... | [
"def",
"get_question",
"(",
"self",
")",
":",
"question_map",
"=",
"dict",
"(",
"self",
".",
"_my_map",
"[",
"'question'",
"]",
")",
"question_map",
"[",
"'learningObjectiveIds'",
"]",
"=",
"self",
".",
"_my_map",
"[",
"'learningObjectiveIds'",
"]",
"return",
... | Gets the question.
return: (osid.assessment.Question) - the question
raise: OperationFailed - unable to complete request
*compliance: mandatory -- This method must be implemented.* | [
"Gets",
"the",
"question",
"."
] | train | https://github.com/mitsei/dlkit/blob/445f968a175d61c8d92c0f617a3c17dc1dc7c584/dlkit/json_/assessment/objects.py#L446-L458 |
mitsei/dlkit | dlkit/json_/assessment/objects.py | Item.get_answers | def get_answers(self):
"""Gets the answers.
return: (osid.assessment.AnswerList) - the answers
raise: OperationFailed - unable to complete request
*compliance: mandatory -- This method must be implemented.*
"""
# Implemented from template for osid.repository.Asset.get_... | python | def get_answers(self):
"""Gets the answers.
return: (osid.assessment.AnswerList) - the answers
raise: OperationFailed - unable to complete request
*compliance: mandatory -- This method must be implemented.*
"""
# Implemented from template for osid.repository.Asset.get_... | [
"def",
"get_answers",
"(",
"self",
")",
":",
"# Implemented from template for osid.repository.Asset.get_asset_contents_template",
"return",
"AnswerList",
"(",
"self",
".",
"_my_map",
"[",
"'answers'",
"]",
",",
"runtime",
"=",
"self",
".",
"_runtime",
",",
"proxy",
"=... | Gets the answers.
return: (osid.assessment.AnswerList) - the answers
raise: OperationFailed - unable to complete request
*compliance: mandatory -- This method must be implemented.* | [
"Gets",
"the",
"answers",
"."
] | train | https://github.com/mitsei/dlkit/blob/445f968a175d61c8d92c0f617a3c17dc1dc7c584/dlkit/json_/assessment/objects.py#L479-L491 |
mitsei/dlkit | dlkit/json_/assessment/objects.py | ItemForm._init_metadata | def _init_metadata(self, **kwargs):
"""Initialize form metadata"""
osid_objects.OsidObjectForm._init_metadata(self, **kwargs)
self._learning_objectives_default = self._mdata['learning_objectives']['default_id_values'] | python | def _init_metadata(self, **kwargs):
"""Initialize form metadata"""
osid_objects.OsidObjectForm._init_metadata(self, **kwargs)
self._learning_objectives_default = self._mdata['learning_objectives']['default_id_values'] | [
"def",
"_init_metadata",
"(",
"self",
",",
"*",
"*",
"kwargs",
")",
":",
"osid_objects",
".",
"OsidObjectForm",
".",
"_init_metadata",
"(",
"self",
",",
"*",
"*",
"kwargs",
")",
"self",
".",
"_learning_objectives_default",
"=",
"self",
".",
"_mdata",
"[",
... | Initialize form metadata | [
"Initialize",
"form",
"metadata"
] | train | https://github.com/mitsei/dlkit/blob/445f968a175d61c8d92c0f617a3c17dc1dc7c584/dlkit/json_/assessment/objects.py#L671-L674 |
mitsei/dlkit | dlkit/json_/assessment/objects.py | ItemForm.get_learning_objectives_metadata | def get_learning_objectives_metadata(self):
"""Gets the metadata for learning objectives.
return: (osid.Metadata) - metadata for the learning objectives
*compliance: mandatory -- This method must be implemented.*
"""
# Implemented from template for osid.learning.ActivityForm.ge... | python | def get_learning_objectives_metadata(self):
"""Gets the metadata for learning objectives.
return: (osid.Metadata) - metadata for the learning objectives
*compliance: mandatory -- This method must be implemented.*
"""
# Implemented from template for osid.learning.ActivityForm.ge... | [
"def",
"get_learning_objectives_metadata",
"(",
"self",
")",
":",
"# Implemented from template for osid.learning.ActivityForm.get_assets_metadata_template",
"metadata",
"=",
"dict",
"(",
"self",
".",
"_mdata",
"[",
"'learning_objectives'",
"]",
")",
"metadata",
".",
"update",... | Gets the metadata for learning objectives.
return: (osid.Metadata) - metadata for the learning objectives
*compliance: mandatory -- This method must be implemented.* | [
"Gets",
"the",
"metadata",
"for",
"learning",
"objectives",
"."
] | train | https://github.com/mitsei/dlkit/blob/445f968a175d61c8d92c0f617a3c17dc1dc7c584/dlkit/json_/assessment/objects.py#L684-L694 |
mitsei/dlkit | dlkit/json_/assessment/objects.py | ItemForm.set_learning_objectives | def set_learning_objectives(self, objective_ids):
"""Sets the learning objectives.
arg: objective_ids (osid.id.Id[]): the learning objective
``Ids``
raise: InvalidArgument - ``objective_ids`` is invalid
raise: NoAccess - ``Metadata.isReadOnly()`` is ``true``
... | python | def set_learning_objectives(self, objective_ids):
"""Sets the learning objectives.
arg: objective_ids (osid.id.Id[]): the learning objective
``Ids``
raise: InvalidArgument - ``objective_ids`` is invalid
raise: NoAccess - ``Metadata.isReadOnly()`` is ``true``
... | [
"def",
"set_learning_objectives",
"(",
"self",
",",
"objective_ids",
")",
":",
"# Implemented from template for osid.learning.ActivityForm.set_assets_template",
"if",
"not",
"isinstance",
"(",
"objective_ids",
",",
"list",
")",
":",
"raise",
"errors",
".",
"InvalidArgument"... | Sets the learning objectives.
arg: objective_ids (osid.id.Id[]): the learning objective
``Ids``
raise: InvalidArgument - ``objective_ids`` is invalid
raise: NoAccess - ``Metadata.isReadOnly()`` is ``true``
*compliance: mandatory -- This method must be implemented.* | [
"Sets",
"the",
"learning",
"objectives",
"."
] | train | https://github.com/mitsei/dlkit/blob/445f968a175d61c8d92c0f617a3c17dc1dc7c584/dlkit/json_/assessment/objects.py#L699-L719 |
mitsei/dlkit | dlkit/json_/assessment/objects.py | ItemForm.clear_learning_objectives | def clear_learning_objectives(self):
"""Clears the learning objectives.
raise: NoAccess - ``Metadata.isRequired()`` or
``Metadata.isReadOnly()`` is ``true``
*compliance: mandatory -- This method must be implemented.*
"""
# Implemented from template for osid.lea... | python | def clear_learning_objectives(self):
"""Clears the learning objectives.
raise: NoAccess - ``Metadata.isRequired()`` or
``Metadata.isReadOnly()`` is ``true``
*compliance: mandatory -- This method must be implemented.*
"""
# Implemented from template for osid.lea... | [
"def",
"clear_learning_objectives",
"(",
"self",
")",
":",
"# Implemented from template for osid.learning.ActivityForm.clear_assets_template",
"if",
"(",
"self",
".",
"get_learning_objectives_metadata",
"(",
")",
".",
"is_read_only",
"(",
")",
"or",
"self",
".",
"get_learni... | Clears the learning objectives.
raise: NoAccess - ``Metadata.isRequired()`` or
``Metadata.isReadOnly()`` is ``true``
*compliance: mandatory -- This method must be implemented.* | [
"Clears",
"the",
"learning",
"objectives",
"."
] | train | https://github.com/mitsei/dlkit/blob/445f968a175d61c8d92c0f617a3c17dc1dc7c584/dlkit/json_/assessment/objects.py#L721-L733 |
mitsei/dlkit | dlkit/json_/assessment/objects.py | Assessment.get_level_id | def get_level_id(self):
"""Gets the ``Id`` of a ``Grade`` corresponding to the assessment difficulty.
return: (osid.id.Id) - a grade ``Id``
*compliance: mandatory -- This method must be implemented.*
"""
# Implemented from template for osid.resource.Resource.get_avatar_id_templ... | python | def get_level_id(self):
"""Gets the ``Id`` of a ``Grade`` corresponding to the assessment difficulty.
return: (osid.id.Id) - a grade ``Id``
*compliance: mandatory -- This method must be implemented.*
"""
# Implemented from template for osid.resource.Resource.get_avatar_id_templ... | [
"def",
"get_level_id",
"(",
"self",
")",
":",
"# Implemented from template for osid.resource.Resource.get_avatar_id_template",
"if",
"not",
"bool",
"(",
"self",
".",
"_my_map",
"[",
"'levelId'",
"]",
")",
":",
"raise",
"errors",
".",
"IllegalState",
"(",
"'this Assess... | Gets the ``Id`` of a ``Grade`` corresponding to the assessment difficulty.
return: (osid.id.Id) - a grade ``Id``
*compliance: mandatory -- This method must be implemented.* | [
"Gets",
"the",
"Id",
"of",
"a",
"Grade",
"corresponding",
"to",
"the",
"assessment",
"difficulty",
"."
] | train | https://github.com/mitsei/dlkit/blob/445f968a175d61c8d92c0f617a3c17dc1dc7c584/dlkit/json_/assessment/objects.py#L822-L833 |
mitsei/dlkit | dlkit/json_/assessment/objects.py | Assessment.get_level | def get_level(self):
"""Gets the ``Grade`` corresponding to the assessment difficulty.
return: (osid.grading.Grade) - the level
raise: OperationFailed - unable to complete request
*compliance: mandatory -- This method must be implemented.*
"""
# Implemented from templa... | python | def get_level(self):
"""Gets the ``Grade`` corresponding to the assessment difficulty.
return: (osid.grading.Grade) - the level
raise: OperationFailed - unable to complete request
*compliance: mandatory -- This method must be implemented.*
"""
# Implemented from templa... | [
"def",
"get_level",
"(",
"self",
")",
":",
"# Implemented from template for osid.resource.Resource.get_avatar_template",
"if",
"not",
"bool",
"(",
"self",
".",
"_my_map",
"[",
"'levelId'",
"]",
")",
":",
"raise",
"errors",
".",
"IllegalState",
"(",
"'this Assessment h... | Gets the ``Grade`` corresponding to the assessment difficulty.
return: (osid.grading.Grade) - the level
raise: OperationFailed - unable to complete request
*compliance: mandatory -- This method must be implemented.* | [
"Gets",
"the",
"Grade",
"corresponding",
"to",
"the",
"assessment",
"difficulty",
"."
] | train | https://github.com/mitsei/dlkit/blob/445f968a175d61c8d92c0f617a3c17dc1dc7c584/dlkit/json_/assessment/objects.py#L837-L854 |
mitsei/dlkit | dlkit/json_/assessment/objects.py | Assessment.get_rubric | def get_rubric(self):
"""Gets the rubric.
return: (osid.assessment.Assessment) - the assessment
raise: IllegalState - ``has_rubric()`` is ``false``
raise: OperationFailed - unable to complete request
*compliance: mandatory -- This method must be implemented.*
"""
... | python | def get_rubric(self):
"""Gets the rubric.
return: (osid.assessment.Assessment) - the assessment
raise: IllegalState - ``has_rubric()`` is ``false``
raise: OperationFailed - unable to complete request
*compliance: mandatory -- This method must be implemented.*
"""
... | [
"def",
"get_rubric",
"(",
"self",
")",
":",
"# Implemented from template for osid.resource.Resource.get_avatar_template",
"if",
"not",
"bool",
"(",
"self",
".",
"_my_map",
"[",
"'rubricId'",
"]",
")",
":",
"raise",
"errors",
".",
"IllegalState",
"(",
"'this Assessment... | Gets the rubric.
return: (osid.assessment.Assessment) - the assessment
raise: IllegalState - ``has_rubric()`` is ``false``
raise: OperationFailed - unable to complete request
*compliance: mandatory -- This method must be implemented.* | [
"Gets",
"the",
"rubric",
"."
] | train | https://github.com/mitsei/dlkit/blob/445f968a175d61c8d92c0f617a3c17dc1dc7c584/dlkit/json_/assessment/objects.py#L885-L903 |
mitsei/dlkit | dlkit/json_/assessment/objects.py | Assessment.has_next_assessment_part | def has_next_assessment_part(self, assessment_part_id):
"""This supports the basic simple sequence case. Can be overriden in a record for other cases"""
if not self.supports_child_ordering or not self.supports_simple_child_sequencing:
raise AttributeError() # Only available through a record... | python | def has_next_assessment_part(self, assessment_part_id):
"""This supports the basic simple sequence case. Can be overriden in a record for other cases"""
if not self.supports_child_ordering or not self.supports_simple_child_sequencing:
raise AttributeError() # Only available through a record... | [
"def",
"has_next_assessment_part",
"(",
"self",
",",
"assessment_part_id",
")",
":",
"if",
"not",
"self",
".",
"supports_child_ordering",
"or",
"not",
"self",
".",
"supports_simple_child_sequencing",
":",
"raise",
"AttributeError",
"(",
")",
"# Only available through a ... | This supports the basic simple sequence case. Can be overriden in a record for other cases | [
"This",
"supports",
"the",
"basic",
"simple",
"sequence",
"case",
".",
"Can",
"be",
"overriden",
"in",
"a",
"record",
"for",
"other",
"cases"
] | train | https://github.com/mitsei/dlkit/blob/445f968a175d61c8d92c0f617a3c17dc1dc7c584/dlkit/json_/assessment/objects.py#L941-L950 |
mitsei/dlkit | dlkit/json_/assessment/objects.py | Assessment.get_next_assessment_part_id | def get_next_assessment_part_id(self, assessment_part_id=None):
"""This supports the basic simple sequence case. Can be overriden in a record for other cases"""
if assessment_part_id is None:
part_id = self.get_id()
else:
part_id = assessment_part_id
return get_ne... | python | def get_next_assessment_part_id(self, assessment_part_id=None):
"""This supports the basic simple sequence case. Can be overriden in a record for other cases"""
if assessment_part_id is None:
part_id = self.get_id()
else:
part_id = assessment_part_id
return get_ne... | [
"def",
"get_next_assessment_part_id",
"(",
"self",
",",
"assessment_part_id",
"=",
"None",
")",
":",
"if",
"assessment_part_id",
"is",
"None",
":",
"part_id",
"=",
"self",
".",
"get_id",
"(",
")",
"else",
":",
"part_id",
"=",
"assessment_part_id",
"return",
"g... | This supports the basic simple sequence case. Can be overriden in a record for other cases | [
"This",
"supports",
"the",
"basic",
"simple",
"sequence",
"case",
".",
"Can",
"be",
"overriden",
"in",
"a",
"record",
"for",
"other",
"cases"
] | train | https://github.com/mitsei/dlkit/blob/445f968a175d61c8d92c0f617a3c17dc1dc7c584/dlkit/json_/assessment/objects.py#L952-L961 |
mitsei/dlkit | dlkit/json_/assessment/objects.py | AssessmentForm._init_metadata | def _init_metadata(self, **kwargs):
"""Initialize form metadata"""
osid_objects.OsidObjectForm._init_metadata(self, **kwargs)
self._rubric_default = self._mdata['rubric']['default_id_values'][0]
self._level_default = self._mdata['level']['default_id_values'][0] | python | def _init_metadata(self, **kwargs):
"""Initialize form metadata"""
osid_objects.OsidObjectForm._init_metadata(self, **kwargs)
self._rubric_default = self._mdata['rubric']['default_id_values'][0]
self._level_default = self._mdata['level']['default_id_values'][0] | [
"def",
"_init_metadata",
"(",
"self",
",",
"*",
"*",
"kwargs",
")",
":",
"osid_objects",
".",
"OsidObjectForm",
".",
"_init_metadata",
"(",
"self",
",",
"*",
"*",
"kwargs",
")",
"self",
".",
"_rubric_default",
"=",
"self",
".",
"_mdata",
"[",
"'rubric'",
... | Initialize form metadata | [
"Initialize",
"form",
"metadata"
] | train | https://github.com/mitsei/dlkit/blob/445f968a175d61c8d92c0f617a3c17dc1dc7c584/dlkit/json_/assessment/objects.py#L1019-L1023 |
mitsei/dlkit | dlkit/json_/assessment/objects.py | AssessmentForm._init_map | def _init_map(self, record_types=None, **kwargs):
"""Initialize form map"""
osid_objects.OsidObjectForm._init_map(self, record_types=record_types)
self._my_map['rubricId'] = self._rubric_default
self._my_map['assignedBankIds'] = [str(kwargs['bank_id'])]
self._my_map['levelId'] = ... | python | def _init_map(self, record_types=None, **kwargs):
"""Initialize form map"""
osid_objects.OsidObjectForm._init_map(self, record_types=record_types)
self._my_map['rubricId'] = self._rubric_default
self._my_map['assignedBankIds'] = [str(kwargs['bank_id'])]
self._my_map['levelId'] = ... | [
"def",
"_init_map",
"(",
"self",
",",
"record_types",
"=",
"None",
",",
"*",
"*",
"kwargs",
")",
":",
"osid_objects",
".",
"OsidObjectForm",
".",
"_init_map",
"(",
"self",
",",
"record_types",
"=",
"record_types",
")",
"self",
".",
"_my_map",
"[",
"'rubric... | Initialize form map | [
"Initialize",
"form",
"map"
] | train | https://github.com/mitsei/dlkit/blob/445f968a175d61c8d92c0f617a3c17dc1dc7c584/dlkit/json_/assessment/objects.py#L1025-L1032 |
mitsei/dlkit | dlkit/json_/assessment/objects.py | AssessmentForm.get_level_metadata | def get_level_metadata(self):
"""Gets the metadata for a grade level.
return: (osid.Metadata) - metadata for the grade level
*compliance: mandatory -- This method must be implemented.*
"""
# Implemented from template for osid.resource.ResourceForm.get_group_metadata_template
... | python | def get_level_metadata(self):
"""Gets the metadata for a grade level.
return: (osid.Metadata) - metadata for the grade level
*compliance: mandatory -- This method must be implemented.*
"""
# Implemented from template for osid.resource.ResourceForm.get_group_metadata_template
... | [
"def",
"get_level_metadata",
"(",
"self",
")",
":",
"# Implemented from template for osid.resource.ResourceForm.get_group_metadata_template",
"metadata",
"=",
"dict",
"(",
"self",
".",
"_mdata",
"[",
"'level'",
"]",
")",
"metadata",
".",
"update",
"(",
"{",
"'existing_i... | Gets the metadata for a grade level.
return: (osid.Metadata) - metadata for the grade level
*compliance: mandatory -- This method must be implemented.* | [
"Gets",
"the",
"metadata",
"for",
"a",
"grade",
"level",
"."
] | train | https://github.com/mitsei/dlkit/blob/445f968a175d61c8d92c0f617a3c17dc1dc7c584/dlkit/json_/assessment/objects.py#L1034-L1044 |
mitsei/dlkit | dlkit/json_/assessment/objects.py | AssessmentForm.set_level | def set_level(self, grade_id):
"""Sets the level of difficulty expressed as a ``Grade``.
arg: grade_id (osid.id.Id): the grade level
raise: InvalidArgument - ``grade_id`` is invalid
raise: NoAccess - ``Metadata.isReadOnly()`` is ``true``
raise: NullArgument - ``grade_id`` ... | python | def set_level(self, grade_id):
"""Sets the level of difficulty expressed as a ``Grade``.
arg: grade_id (osid.id.Id): the grade level
raise: InvalidArgument - ``grade_id`` is invalid
raise: NoAccess - ``Metadata.isReadOnly()`` is ``true``
raise: NullArgument - ``grade_id`` ... | [
"def",
"set_level",
"(",
"self",
",",
"grade_id",
")",
":",
"# Implemented from template for osid.resource.ResourceForm.set_avatar_template",
"if",
"self",
".",
"get_level_metadata",
"(",
")",
".",
"is_read_only",
"(",
")",
":",
"raise",
"errors",
".",
"NoAccess",
"("... | Sets the level of difficulty expressed as a ``Grade``.
arg: grade_id (osid.id.Id): the grade level
raise: InvalidArgument - ``grade_id`` is invalid
raise: NoAccess - ``Metadata.isReadOnly()`` is ``true``
raise: NullArgument - ``grade_id`` is ``null``
*compliance: mandatory... | [
"Sets",
"the",
"level",
"of",
"difficulty",
"expressed",
"as",
"a",
"Grade",
"."
] | train | https://github.com/mitsei/dlkit/blob/445f968a175d61c8d92c0f617a3c17dc1dc7c584/dlkit/json_/assessment/objects.py#L1049-L1064 |
mitsei/dlkit | dlkit/json_/assessment/objects.py | AssessmentForm.get_rubric_metadata | def get_rubric_metadata(self):
"""Gets the metadata for a rubric assessment.
return: (osid.Metadata) - metadata for the assesment
*compliance: mandatory -- This method must be implemented.*
"""
# Implemented from template for osid.resource.ResourceForm.get_group_metadata_templa... | python | def get_rubric_metadata(self):
"""Gets the metadata for a rubric assessment.
return: (osid.Metadata) - metadata for the assesment
*compliance: mandatory -- This method must be implemented.*
"""
# Implemented from template for osid.resource.ResourceForm.get_group_metadata_templa... | [
"def",
"get_rubric_metadata",
"(",
"self",
")",
":",
"# Implemented from template for osid.resource.ResourceForm.get_group_metadata_template",
"metadata",
"=",
"dict",
"(",
"self",
".",
"_mdata",
"[",
"'rubric'",
"]",
")",
"metadata",
".",
"update",
"(",
"{",
"'existing... | Gets the metadata for a rubric assessment.
return: (osid.Metadata) - metadata for the assesment
*compliance: mandatory -- This method must be implemented.* | [
"Gets",
"the",
"metadata",
"for",
"a",
"rubric",
"assessment",
"."
] | train | https://github.com/mitsei/dlkit/blob/445f968a175d61c8d92c0f617a3c17dc1dc7c584/dlkit/json_/assessment/objects.py#L1082-L1092 |
mitsei/dlkit | dlkit/json_/assessment/objects.py | AssessmentForm.set_rubric | def set_rubric(self, assessment_id):
"""Sets the rubric expressed as another assessment.
arg: assessment_id (osid.id.Id): the assessment ``Id``
raise: InvalidArgument - ``assessment_id`` is invalid
raise: NoAccess - ``Metadata.isReadOnly()`` is ``true``
raise: NullArgument... | python | def set_rubric(self, assessment_id):
"""Sets the rubric expressed as another assessment.
arg: assessment_id (osid.id.Id): the assessment ``Id``
raise: InvalidArgument - ``assessment_id`` is invalid
raise: NoAccess - ``Metadata.isReadOnly()`` is ``true``
raise: NullArgument... | [
"def",
"set_rubric",
"(",
"self",
",",
"assessment_id",
")",
":",
"# Implemented from template for osid.resource.ResourceForm.set_avatar_template",
"if",
"self",
".",
"get_rubric_metadata",
"(",
")",
".",
"is_read_only",
"(",
")",
":",
"raise",
"errors",
".",
"NoAccess"... | Sets the rubric expressed as another assessment.
arg: assessment_id (osid.id.Id): the assessment ``Id``
raise: InvalidArgument - ``assessment_id`` is invalid
raise: NoAccess - ``Metadata.isReadOnly()`` is ``true``
raise: NullArgument - ``assessment_id`` is ``null``
*compli... | [
"Sets",
"the",
"rubric",
"expressed",
"as",
"another",
"assessment",
"."
] | train | https://github.com/mitsei/dlkit/blob/445f968a175d61c8d92c0f617a3c17dc1dc7c584/dlkit/json_/assessment/objects.py#L1097-L1112 |
mitsei/dlkit | dlkit/json_/assessment/objects.py | AssessmentForm.clear_rubric | def clear_rubric(self):
"""Clears the rubric.
raise: NoAccess - ``Metadata.isRequired()`` or
``Metadata.isReadOnly()`` is ``true``
*compliance: mandatory -- This method must be implemented.*
"""
# Implemented from template for osid.resource.ResourceForm.clear_a... | python | def clear_rubric(self):
"""Clears the rubric.
raise: NoAccess - ``Metadata.isRequired()`` or
``Metadata.isReadOnly()`` is ``true``
*compliance: mandatory -- This method must be implemented.*
"""
# Implemented from template for osid.resource.ResourceForm.clear_a... | [
"def",
"clear_rubric",
"(",
"self",
")",
":",
"# Implemented from template for osid.resource.ResourceForm.clear_avatar_template",
"if",
"(",
"self",
".",
"get_rubric_metadata",
"(",
")",
".",
"is_read_only",
"(",
")",
"or",
"self",
".",
"get_rubric_metadata",
"(",
")",
... | Clears the rubric.
raise: NoAccess - ``Metadata.isRequired()`` or
``Metadata.isReadOnly()`` is ``true``
*compliance: mandatory -- This method must be implemented.* | [
"Clears",
"the",
"rubric",
"."
] | train | https://github.com/mitsei/dlkit/blob/445f968a175d61c8d92c0f617a3c17dc1dc7c584/dlkit/json_/assessment/objects.py#L1114-L1126 |
mitsei/dlkit | dlkit/json_/assessment/objects.py | AssessmentForm.set_children | def set_children(self, child_ids):
"""Set the children IDs"""
if not self._supports_simple_sequencing():
raise errors.IllegalState()
self._my_map['childIds'] = [str(i) for i in child_ids] | python | def set_children(self, child_ids):
"""Set the children IDs"""
if not self._supports_simple_sequencing():
raise errors.IllegalState()
self._my_map['childIds'] = [str(i) for i in child_ids] | [
"def",
"set_children",
"(",
"self",
",",
"child_ids",
")",
":",
"if",
"not",
"self",
".",
"_supports_simple_sequencing",
"(",
")",
":",
"raise",
"errors",
".",
"IllegalState",
"(",
")",
"self",
".",
"_my_map",
"[",
"'childIds'",
"]",
"=",
"[",
"str",
"("... | Set the children IDs | [
"Set",
"the",
"children",
"IDs"
] | train | https://github.com/mitsei/dlkit/blob/445f968a175d61c8d92c0f617a3c17dc1dc7c584/dlkit/json_/assessment/objects.py#L1150-L1154 |
mitsei/dlkit | dlkit/json_/assessment/objects.py | AssessmentOffered.are_items_sequential | def are_items_sequential(self):
"""Tests if the items or parts in this assessment are taken sequentially.
return: (boolean) - ``true`` if the items are taken
sequentially, ``false`` if the items can be skipped and
revisited
*compliance: mandatory -- This method m... | python | def are_items_sequential(self):
"""Tests if the items or parts in this assessment are taken sequentially.
return: (boolean) - ``true`` if the items are taken
sequentially, ``false`` if the items can be skipped and
revisited
*compliance: mandatory -- This method m... | [
"def",
"are_items_sequential",
"(",
"self",
")",
":",
"if",
"self",
".",
"_my_map",
"[",
"'itemsSequential'",
"]",
"is",
"None",
":",
"return",
"self",
".",
"get_assessment",
"(",
")",
".",
"are_items_sequential",
"(",
")",
"return",
"bool",
"(",
"self",
"... | Tests if the items or parts in this assessment are taken sequentially.
return: (boolean) - ``true`` if the items are taken
sequentially, ``false`` if the items can be skipped and
revisited
*compliance: mandatory -- This method must be implemented.* | [
"Tests",
"if",
"the",
"items",
"or",
"parts",
"in",
"this",
"assessment",
"are",
"taken",
"sequentially",
"."
] | train | https://github.com/mitsei/dlkit/blob/445f968a175d61c8d92c0f617a3c17dc1dc7c584/dlkit/json_/assessment/objects.py#L1294-L1305 |
mitsei/dlkit | dlkit/json_/assessment/objects.py | AssessmentOffered.are_items_shuffled | def are_items_shuffled(self):
"""Tests if the items or parts appear in a random order.
return: (boolean) - ``true`` if the items appear in a random
order, ``false`` otherwise
*compliance: mandatory -- This method must be implemented.*
"""
if self._my_map['itemsS... | python | def are_items_shuffled(self):
"""Tests if the items or parts appear in a random order.
return: (boolean) - ``true`` if the items appear in a random
order, ``false`` otherwise
*compliance: mandatory -- This method must be implemented.*
"""
if self._my_map['itemsS... | [
"def",
"are_items_shuffled",
"(",
"self",
")",
":",
"if",
"self",
".",
"_my_map",
"[",
"'itemsShuffled'",
"]",
"is",
"None",
":",
"return",
"self",
".",
"get_assessment",
"(",
")",
".",
"are_items_shuffled",
"(",
")",
"return",
"bool",
"(",
"self",
".",
... | Tests if the items or parts appear in a random order.
return: (boolean) - ``true`` if the items appear in a random
order, ``false`` otherwise
*compliance: mandatory -- This method must be implemented.* | [
"Tests",
"if",
"the",
"items",
"or",
"parts",
"appear",
"in",
"a",
"random",
"order",
"."
] | train | https://github.com/mitsei/dlkit/blob/445f968a175d61c8d92c0f617a3c17dc1dc7c584/dlkit/json_/assessment/objects.py#L1307-L1317 |
mitsei/dlkit | dlkit/json_/assessment/objects.py | AssessmentOffered.get_start_time | def get_start_time(self):
"""Gets the start time for this assessment.
return: (osid.calendaring.DateTime) - the designated start time
raise: IllegalState - ``has_start_time()`` is ``false``
*compliance: mandatory -- This method must be implemented.*
"""
# Implemented f... | python | def get_start_time(self):
"""Gets the start time for this assessment.
return: (osid.calendaring.DateTime) - the designated start time
raise: IllegalState - ``has_start_time()`` is ``false``
*compliance: mandatory -- This method must be implemented.*
"""
# Implemented f... | [
"def",
"get_start_time",
"(",
"self",
")",
":",
"# Implemented from template for osid.assessment.AssessmentOffered.get_start_time_template",
"if",
"not",
"bool",
"(",
"self",
".",
"_my_map",
"[",
"'startTime'",
"]",
")",
":",
"raise",
"errors",
".",
"IllegalState",
"(",... | Gets the start time for this assessment.
return: (osid.calendaring.DateTime) - the designated start time
raise: IllegalState - ``has_start_time()`` is ``false``
*compliance: mandatory -- This method must be implemented.* | [
"Gets",
"the",
"start",
"time",
"for",
"this",
"assessment",
"."
] | train | https://github.com/mitsei/dlkit/blob/445f968a175d61c8d92c0f617a3c17dc1dc7c584/dlkit/json_/assessment/objects.py#L1333-L1345 |
mitsei/dlkit | dlkit/json_/assessment/objects.py | AssessmentOffered.get_duration | def get_duration(self):
"""Gets the duration for this assessment.
return: (osid.calendaring.Duration) - the duration
raise: IllegalState - ``has_duration()`` is ``false``
*compliance: mandatory -- This method must be implemented.*
"""
# Implemented from template for os... | python | def get_duration(self):
"""Gets the duration for this assessment.
return: (osid.calendaring.Duration) - the duration
raise: IllegalState - ``has_duration()`` is ``false``
*compliance: mandatory -- This method must be implemented.*
"""
# Implemented from template for os... | [
"def",
"get_duration",
"(",
"self",
")",
":",
"# Implemented from template for osid.assessment.AssessmentOffered.get_duration_template",
"if",
"not",
"bool",
"(",
"self",
".",
"_my_map",
"[",
"'duration'",
"]",
")",
":",
"raise",
"errors",
".",
"IllegalState",
"(",
")... | Gets the duration for this assessment.
return: (osid.calendaring.Duration) - the duration
raise: IllegalState - ``has_duration()`` is ``false``
*compliance: mandatory -- This method must be implemented.* | [
"Gets",
"the",
"duration",
"for",
"this",
"assessment",
"."
] | train | https://github.com/mitsei/dlkit/blob/445f968a175d61c8d92c0f617a3c17dc1dc7c584/dlkit/json_/assessment/objects.py#L1393-L1404 |
mitsei/dlkit | dlkit/json_/assessment/objects.py | AssessmentOffered.get_score_system_id | def get_score_system_id(self):
"""Gets the grade system ``Id`` for the score.
return: (osid.id.Id) - the grade system ``Id``
raise: IllegalState - ``is_scored()`` is ``false``
*compliance: mandatory -- This method must be implemented.*
"""
# Implemented from template f... | python | def get_score_system_id(self):
"""Gets the grade system ``Id`` for the score.
return: (osid.id.Id) - the grade system ``Id``
raise: IllegalState - ``is_scored()`` is ``false``
*compliance: mandatory -- This method must be implemented.*
"""
# Implemented from template f... | [
"def",
"get_score_system_id",
"(",
"self",
")",
":",
"# Implemented from template for osid.resource.Resource.get_avatar_id_template",
"if",
"not",
"bool",
"(",
"self",
".",
"_my_map",
"[",
"'scoreSystemId'",
"]",
")",
":",
"raise",
"errors",
".",
"IllegalState",
"(",
... | Gets the grade system ``Id`` for the score.
return: (osid.id.Id) - the grade system ``Id``
raise: IllegalState - ``is_scored()`` is ``false``
*compliance: mandatory -- This method must be implemented.* | [
"Gets",
"the",
"grade",
"system",
"Id",
"for",
"the",
"score",
"."
] | train | https://github.com/mitsei/dlkit/blob/445f968a175d61c8d92c0f617a3c17dc1dc7c584/dlkit/json_/assessment/objects.py#L1419-L1431 |
mitsei/dlkit | dlkit/json_/assessment/objects.py | AssessmentOffered.get_rubric | def get_rubric(self):
"""Gets the rubric.
return: (osid.assessment.AssessmentOffered) - the assessment
offered
raise: IllegalState - ``has_rubric()`` is ``false``
raise: OperationFailed - unable to complete request
*compliance: mandatory -- This method must be ... | python | def get_rubric(self):
"""Gets the rubric.
return: (osid.assessment.AssessmentOffered) - the assessment
offered
raise: IllegalState - ``has_rubric()`` is ``false``
raise: OperationFailed - unable to complete request
*compliance: mandatory -- This method must be ... | [
"def",
"get_rubric",
"(",
"self",
")",
":",
"# Implemented from template for osid.resource.Resource.get_avatar_template",
"if",
"not",
"bool",
"(",
"self",
".",
"_my_map",
"[",
"'rubricId'",
"]",
")",
":",
"raise",
"errors",
".",
"IllegalState",
"(",
"'this Assessment... | Gets the rubric.
return: (osid.assessment.AssessmentOffered) - the assessment
offered
raise: IllegalState - ``has_rubric()`` is ``false``
raise: OperationFailed - unable to complete request
*compliance: mandatory -- This method must be implemented.* | [
"Gets",
"the",
"rubric",
"."
] | train | https://github.com/mitsei/dlkit/blob/445f968a175d61c8d92c0f617a3c17dc1dc7c584/dlkit/json_/assessment/objects.py#L1533-L1552 |
mitsei/dlkit | dlkit/json_/assessment/objects.py | AssessmentOfferedForm._init_metadata | def _init_metadata(self, **kwargs):
"""Initialize form metadata"""
osid_objects.OsidObjectForm._init_metadata(self, **kwargs)
self._level_default = self._mdata['level']['default_id_values'][0]
self._start_time_default = self._mdata['start_time']['default_date_time_values'][0]
sel... | python | def _init_metadata(self, **kwargs):
"""Initialize form metadata"""
osid_objects.OsidObjectForm._init_metadata(self, **kwargs)
self._level_default = self._mdata['level']['default_id_values'][0]
self._start_time_default = self._mdata['start_time']['default_date_time_values'][0]
sel... | [
"def",
"_init_metadata",
"(",
"self",
",",
"*",
"*",
"kwargs",
")",
":",
"osid_objects",
".",
"OsidObjectForm",
".",
"_init_metadata",
"(",
"self",
",",
"*",
"*",
"kwargs",
")",
"self",
".",
"_level_default",
"=",
"self",
".",
"_mdata",
"[",
"'level'",
"... | Initialize form metadata | [
"Initialize",
"form",
"metadata"
] | train | https://github.com/mitsei/dlkit/blob/445f968a175d61c8d92c0f617a3c17dc1dc7c584/dlkit/json_/assessment/objects.py#L1659-L1669 |
mitsei/dlkit | dlkit/json_/assessment/objects.py | AssessmentOfferedForm._init_map | def _init_map(self, record_types=None, **kwargs):
"""Initialize form map"""
osid_objects.OsidObjectForm._init_map(self, record_types=record_types)
self._my_map['levelId'] = self._level_default
self._my_map['startTime'] = self._start_time_default
self._my_map['gradeSystemId'] = se... | python | def _init_map(self, record_types=None, **kwargs):
"""Initialize form map"""
osid_objects.OsidObjectForm._init_map(self, record_types=record_types)
self._my_map['levelId'] = self._level_default
self._my_map['startTime'] = self._start_time_default
self._my_map['gradeSystemId'] = se... | [
"def",
"_init_map",
"(",
"self",
",",
"record_types",
"=",
"None",
",",
"*",
"*",
"kwargs",
")",
":",
"osid_objects",
".",
"OsidObjectForm",
".",
"_init_map",
"(",
"self",
",",
"record_types",
"=",
"record_types",
")",
"self",
".",
"_my_map",
"[",
"'levelI... | Initialize form map | [
"Initialize",
"form",
"map"
] | train | https://github.com/mitsei/dlkit/blob/445f968a175d61c8d92c0f617a3c17dc1dc7c584/dlkit/json_/assessment/objects.py#L1671-L1683 |
mitsei/dlkit | dlkit/json_/assessment/objects.py | AssessmentOfferedForm.get_items_sequential_metadata | def get_items_sequential_metadata(self):
"""Gets the metadata for sequential operation.
return: (osid.Metadata) - metadata for the sequential flag
*compliance: mandatory -- This method must be implemented.*
"""
# Implemented from template for osid.resource.ResourceForm.get_grou... | python | def get_items_sequential_metadata(self):
"""Gets the metadata for sequential operation.
return: (osid.Metadata) - metadata for the sequential flag
*compliance: mandatory -- This method must be implemented.*
"""
# Implemented from template for osid.resource.ResourceForm.get_grou... | [
"def",
"get_items_sequential_metadata",
"(",
"self",
")",
":",
"# Implemented from template for osid.resource.ResourceForm.get_group_metadata_template",
"metadata",
"=",
"dict",
"(",
"self",
".",
"_mdata",
"[",
"'items_sequential'",
"]",
")",
"metadata",
".",
"update",
"(",... | Gets the metadata for sequential operation.
return: (osid.Metadata) - metadata for the sequential flag
*compliance: mandatory -- This method must be implemented.* | [
"Gets",
"the",
"metadata",
"for",
"sequential",
"operation",
"."
] | train | https://github.com/mitsei/dlkit/blob/445f968a175d61c8d92c0f617a3c17dc1dc7c584/dlkit/json_/assessment/objects.py#L1732-L1742 |
mitsei/dlkit | dlkit/json_/assessment/objects.py | AssessmentOfferedForm.set_items_sequential | def set_items_sequential(self, sequential):
"""Sets the items sequential flag.
arg: sequential (boolean): ``true`` if the items are taken
sequentially, ``false`` if the items can be skipped and
revisited
raise: InvalidArgument - ``sequential`` is invalid
... | python | def set_items_sequential(self, sequential):
"""Sets the items sequential flag.
arg: sequential (boolean): ``true`` if the items are taken
sequentially, ``false`` if the items can be skipped and
revisited
raise: InvalidArgument - ``sequential`` is invalid
... | [
"def",
"set_items_sequential",
"(",
"self",
",",
"sequential",
")",
":",
"# Implemented from template for osid.resource.ResourceForm.set_group_template",
"if",
"self",
".",
"get_items_sequential_metadata",
"(",
")",
".",
"is_read_only",
"(",
")",
":",
"raise",
"errors",
"... | Sets the items sequential flag.
arg: sequential (boolean): ``true`` if the items are taken
sequentially, ``false`` if the items can be skipped and
revisited
raise: InvalidArgument - ``sequential`` is invalid
raise: NoAccess - ``Metadata.isReadOnly()`` is ``t... | [
"Sets",
"the",
"items",
"sequential",
"flag",
"."
] | train | https://github.com/mitsei/dlkit/blob/445f968a175d61c8d92c0f617a3c17dc1dc7c584/dlkit/json_/assessment/objects.py#L1747-L1763 |
mitsei/dlkit | dlkit/json_/assessment/objects.py | AssessmentOfferedForm.clear_items_sequential | def clear_items_sequential(self):
"""Clears the items sequential flag.
raise: NoAccess - ``Metadata.isRequired()`` or
``Metadata.isReadOnly()`` is ``true``
*compliance: mandatory -- This method must be implemented.*
"""
# Implemented from template for osid.reso... | python | def clear_items_sequential(self):
"""Clears the items sequential flag.
raise: NoAccess - ``Metadata.isRequired()`` or
``Metadata.isReadOnly()`` is ``true``
*compliance: mandatory -- This method must be implemented.*
"""
# Implemented from template for osid.reso... | [
"def",
"clear_items_sequential",
"(",
"self",
")",
":",
"# Implemented from template for osid.resource.ResourceForm.clear_group_template",
"if",
"(",
"self",
".",
"get_items_sequential_metadata",
"(",
")",
".",
"is_read_only",
"(",
")",
"or",
"self",
".",
"get_items_sequent... | Clears the items sequential flag.
raise: NoAccess - ``Metadata.isRequired()`` or
``Metadata.isReadOnly()`` is ``true``
*compliance: mandatory -- This method must be implemented.* | [
"Clears",
"the",
"items",
"sequential",
"flag",
"."
] | train | https://github.com/mitsei/dlkit/blob/445f968a175d61c8d92c0f617a3c17dc1dc7c584/dlkit/json_/assessment/objects.py#L1765-L1777 |
mitsei/dlkit | dlkit/json_/assessment/objects.py | AssessmentOfferedForm.get_items_shuffled_metadata | def get_items_shuffled_metadata(self):
"""Gets the metadata for shuffling items.
return: (osid.Metadata) - metadata for the shuffled flag
*compliance: mandatory -- This method must be implemented.*
"""
# Implemented from template for osid.resource.ResourceForm.get_group_metadat... | python | def get_items_shuffled_metadata(self):
"""Gets the metadata for shuffling items.
return: (osid.Metadata) - metadata for the shuffled flag
*compliance: mandatory -- This method must be implemented.*
"""
# Implemented from template for osid.resource.ResourceForm.get_group_metadat... | [
"def",
"get_items_shuffled_metadata",
"(",
"self",
")",
":",
"# Implemented from template for osid.resource.ResourceForm.get_group_metadata_template",
"metadata",
"=",
"dict",
"(",
"self",
".",
"_mdata",
"[",
"'items_shuffled'",
"]",
")",
"metadata",
".",
"update",
"(",
"... | Gets the metadata for shuffling items.
return: (osid.Metadata) - metadata for the shuffled flag
*compliance: mandatory -- This method must be implemented.* | [
"Gets",
"the",
"metadata",
"for",
"shuffling",
"items",
"."
] | train | https://github.com/mitsei/dlkit/blob/445f968a175d61c8d92c0f617a3c17dc1dc7c584/dlkit/json_/assessment/objects.py#L1781-L1791 |
mitsei/dlkit | dlkit/json_/assessment/objects.py | AssessmentOfferedForm.set_items_shuffled | def set_items_shuffled(self, shuffle):
"""Sets the shuffle flag.
The shuffle flag may be overidden by other assessment sequencing
rules.
arg: shuffle (boolean): ``true`` if the items are shuffled,
``false`` if the items appear in the designated order
raise: ... | python | def set_items_shuffled(self, shuffle):
"""Sets the shuffle flag.
The shuffle flag may be overidden by other assessment sequencing
rules.
arg: shuffle (boolean): ``true`` if the items are shuffled,
``false`` if the items appear in the designated order
raise: ... | [
"def",
"set_items_shuffled",
"(",
"self",
",",
"shuffle",
")",
":",
"# Implemented from template for osid.resource.ResourceForm.set_group_template",
"if",
"self",
".",
"get_items_shuffled_metadata",
"(",
")",
".",
"is_read_only",
"(",
")",
":",
"raise",
"errors",
".",
"... | Sets the shuffle flag.
The shuffle flag may be overidden by other assessment sequencing
rules.
arg: shuffle (boolean): ``true`` if the items are shuffled,
``false`` if the items appear in the designated order
raise: InvalidArgument - ``shuffle`` is invalid
r... | [
"Sets",
"the",
"shuffle",
"flag",
"."
] | train | https://github.com/mitsei/dlkit/blob/445f968a175d61c8d92c0f617a3c17dc1dc7c584/dlkit/json_/assessment/objects.py#L1796-L1814 |
mitsei/dlkit | dlkit/json_/assessment/objects.py | AssessmentOfferedForm.clear_items_shuffled | def clear_items_shuffled(self):
"""Clears the shuffle flag.
raise: NoAccess - ``Metadata.isRequired()`` or
``Metadata.isReadOnly()`` is ``true``
*compliance: mandatory -- This method must be implemented.*
"""
# Implemented from template for osid.resource.Resour... | python | def clear_items_shuffled(self):
"""Clears the shuffle flag.
raise: NoAccess - ``Metadata.isRequired()`` or
``Metadata.isReadOnly()`` is ``true``
*compliance: mandatory -- This method must be implemented.*
"""
# Implemented from template for osid.resource.Resour... | [
"def",
"clear_items_shuffled",
"(",
"self",
")",
":",
"# Implemented from template for osid.resource.ResourceForm.clear_group_template",
"if",
"(",
"self",
".",
"get_items_shuffled_metadata",
"(",
")",
".",
"is_read_only",
"(",
")",
"or",
"self",
".",
"get_items_shuffled_me... | Clears the shuffle flag.
raise: NoAccess - ``Metadata.isRequired()`` or
``Metadata.isReadOnly()`` is ``true``
*compliance: mandatory -- This method must be implemented.* | [
"Clears",
"the",
"shuffle",
"flag",
"."
] | train | https://github.com/mitsei/dlkit/blob/445f968a175d61c8d92c0f617a3c17dc1dc7c584/dlkit/json_/assessment/objects.py#L1816-L1828 |
mitsei/dlkit | dlkit/json_/assessment/objects.py | AssessmentOfferedForm.get_start_time_metadata | def get_start_time_metadata(self):
"""Gets the metadata for the assessment start time.
return: (osid.Metadata) - metadata for the start time
*compliance: mandatory -- This method must be implemented.*
"""
# Implemented from template for osid.resource.ResourceForm.get_group_meta... | python | def get_start_time_metadata(self):
"""Gets the metadata for the assessment start time.
return: (osid.Metadata) - metadata for the start time
*compliance: mandatory -- This method must be implemented.*
"""
# Implemented from template for osid.resource.ResourceForm.get_group_meta... | [
"def",
"get_start_time_metadata",
"(",
"self",
")",
":",
"# Implemented from template for osid.resource.ResourceForm.get_group_metadata_template",
"metadata",
"=",
"dict",
"(",
"self",
".",
"_mdata",
"[",
"'start_time'",
"]",
")",
"metadata",
".",
"update",
"(",
"{",
"'... | Gets the metadata for the assessment start time.
return: (osid.Metadata) - metadata for the start time
*compliance: mandatory -- This method must be implemented.* | [
"Gets",
"the",
"metadata",
"for",
"the",
"assessment",
"start",
"time",
"."
] | train | https://github.com/mitsei/dlkit/blob/445f968a175d61c8d92c0f617a3c17dc1dc7c584/dlkit/json_/assessment/objects.py#L1832-L1842 |
mitsei/dlkit | dlkit/json_/assessment/objects.py | AssessmentOfferedForm.set_start_time | def set_start_time(self, start):
"""Sets the assessment start time.
arg: start (osid.calendaring.DateTime): assessment start time
raise: InvalidArgument - ``start`` is invalid
raise: NoAccess - ``Metadata.isReadOnly()`` is ``true``
*compliance: mandatory -- This method must... | python | def set_start_time(self, start):
"""Sets the assessment start time.
arg: start (osid.calendaring.DateTime): assessment start time
raise: InvalidArgument - ``start`` is invalid
raise: NoAccess - ``Metadata.isReadOnly()`` is ``true``
*compliance: mandatory -- This method must... | [
"def",
"set_start_time",
"(",
"self",
",",
"start",
")",
":",
"# Implemented from template for osid.assessment.AssessmentOfferedForm.set_start_time_template",
"if",
"self",
".",
"get_start_time_metadata",
"(",
")",
".",
"is_read_only",
"(",
")",
":",
"raise",
"errors",
".... | Sets the assessment start time.
arg: start (osid.calendaring.DateTime): assessment start time
raise: InvalidArgument - ``start`` is invalid
raise: NoAccess - ``Metadata.isReadOnly()`` is ``true``
*compliance: mandatory -- This method must be implemented.* | [
"Sets",
"the",
"assessment",
"start",
"time",
"."
] | train | https://github.com/mitsei/dlkit/blob/445f968a175d61c8d92c0f617a3c17dc1dc7c584/dlkit/json_/assessment/objects.py#L1847-L1863 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.