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
cloudnull/cloudlib
cloudlib/logger.py
LogSetup.default_logger
def default_logger(self, name=__name__, enable_stream=False, enable_file=True): """Default Logger. This is set to use a rotating File handler and a stream handler. If you use this logger all logged output that is INFO and above will be logged, unless debug_logging...
python
def default_logger(self, name=__name__, enable_stream=False, enable_file=True): """Default Logger. This is set to use a rotating File handler and a stream handler. If you use this logger all logged output that is INFO and above will be logged, unless debug_logging...
[ "def", "default_logger", "(", "self", ",", "name", "=", "__name__", ",", "enable_stream", "=", "False", ",", "enable_file", "=", "True", ")", ":", "if", "self", ".", "format", "is", "None", ":", "self", ".", "format", "=", "logging", ".", "Formatter", ...
Default Logger. This is set to use a rotating File handler and a stream handler. If you use this logger all logged output that is INFO and above will be logged, unless debug_logging is set then everything is logged. The logger will send the same data to a stdout as it does to the ...
[ "Default", "Logger", "." ]
train
https://github.com/cloudnull/cloudlib/blob/5038111ce02521caa2558117e3bae9e1e806d315/cloudlib/logger.py#L106-L145
cloudnull/cloudlib
cloudlib/logger.py
LogSetup.set_handler
def set_handler(self, log, handler): """Set the logging level as well as the handlers. :param log: ``object`` :param handler: ``object`` """ if self.debug_logging is True: log.setLevel(logging.DEBUG) handler.setLevel(logging.DEBUG) else: ...
python
def set_handler(self, log, handler): """Set the logging level as well as the handlers. :param log: ``object`` :param handler: ``object`` """ if self.debug_logging is True: log.setLevel(logging.DEBUG) handler.setLevel(logging.DEBUG) else: ...
[ "def", "set_handler", "(", "self", ",", "log", ",", "handler", ")", ":", "if", "self", ".", "debug_logging", "is", "True", ":", "log", ".", "setLevel", "(", "logging", ".", "DEBUG", ")", "handler", ".", "setLevel", "(", "logging", ".", "DEBUG", ")", ...
Set the logging level as well as the handlers. :param log: ``object`` :param handler: ``object``
[ "Set", "the", "logging", "level", "as", "well", "as", "the", "handlers", "." ]
train
https://github.com/cloudnull/cloudlib/blob/5038111ce02521caa2558117e3bae9e1e806d315/cloudlib/logger.py#L147-L162
cloudnull/cloudlib
cloudlib/logger.py
LogSetup.return_logfile
def return_logfile(filename, log_dir='/var/log'): """Return a path for logging file. If ``log_dir`` exists and the userID is 0 the log file will be written to the provided log directory. If the UserID is not 0 or log_dir does not exist the log file will be written to the users home fold...
python
def return_logfile(filename, log_dir='/var/log'): """Return a path for logging file. If ``log_dir`` exists and the userID is 0 the log file will be written to the provided log directory. If the UserID is not 0 or log_dir does not exist the log file will be written to the users home fold...
[ "def", "return_logfile", "(", "filename", ",", "log_dir", "=", "'/var/log'", ")", ":", "if", "sys", ".", "platform", "==", "'win32'", ":", "user", "=", "getpass", ".", "getuser", "(", ")", "else", ":", "user", "=", "os", ".", "getuid", "(", ")", "hom...
Return a path for logging file. If ``log_dir`` exists and the userID is 0 the log file will be written to the provided log directory. If the UserID is not 0 or log_dir does not exist the log file will be written to the users home folder. :param filename: ``str`` :param log_dir:...
[ "Return", "a", "path", "for", "logging", "file", "." ]
train
https://github.com/cloudnull/cloudlib/blob/5038111ce02521caa2558117e3bae9e1e806d315/cloudlib/logger.py#L165-L191
refnode/liquid
src/liquid/strscan.py
text_coords
def text_coords(string, position): r""" Transform a simple index into a human-readable position in a string. This function accepts a string and an index, and will return a triple of `(lineno, columnno, line)` representing the position through the text. It's useful for displaying a string index in a...
python
def text_coords(string, position): r""" Transform a simple index into a human-readable position in a string. This function accepts a string and an index, and will return a triple of `(lineno, columnno, line)` representing the position through the text. It's useful for displaying a string index in a...
[ "def", "text_coords", "(", "string", ",", "position", ")", ":", "line_start", "=", "string", ".", "rfind", "(", "'\\n'", ",", "0", ",", "position", ")", "+", "1", "line_end", "=", "string", ".", "find", "(", "'\\n'", ",", "position", ")", "lineno", "...
r""" Transform a simple index into a human-readable position in a string. This function accepts a string and an index, and will return a triple of `(lineno, columnno, line)` representing the position through the text. It's useful for displaying a string index in a human-readable way:: >>> s = ...
[ "r", "Transform", "a", "simple", "index", "into", "a", "human", "-", "readable", "position", "in", "a", "string", "." ]
train
https://github.com/refnode/liquid/blob/8b2b5efc635b0dbfe610db9036fdb4ae3e3d5439/src/liquid/strscan.py#L486-L513
refnode/liquid
src/liquid/strscan.py
get_regex
def get_regex(regex): """ Ensure we have a compiled regular expression object. >>> import re >>> get_regex('string') # doctest: +ELLIPSIS <_sre.SRE_Pattern object at 0x...> >>> pattern = re.compile(r'string') >>> get_regex(pattern) is pattern True >>> get...
python
def get_regex(regex): """ Ensure we have a compiled regular expression object. >>> import re >>> get_regex('string') # doctest: +ELLIPSIS <_sre.SRE_Pattern object at 0x...> >>> pattern = re.compile(r'string') >>> get_regex(pattern) is pattern True >>> get...
[ "def", "get_regex", "(", "regex", ")", ":", "if", "isinstance", "(", "regex", ",", "basestring", ")", ":", "return", "re", ".", "compile", "(", "regex", ")", "elif", "not", "isinstance", "(", "regex", ",", "re", ".", "_pattern_type", ")", ":", "raise",...
Ensure we have a compiled regular expression object. >>> import re >>> get_regex('string') # doctest: +ELLIPSIS <_sre.SRE_Pattern object at 0x...> >>> pattern = re.compile(r'string') >>> get_regex(pattern) is pattern True >>> get_regex(3) # doctest: +ELLIPSIS ...
[ "Ensure", "we", "have", "a", "compiled", "regular", "expression", "object", "." ]
train
https://github.com/refnode/liquid/blob/8b2b5efc635b0dbfe610db9036fdb4ae3e3d5439/src/liquid/strscan.py#L516-L535
refnode/liquid
src/liquid/strscan.py
Scanner.beginning_of_line
def beginning_of_line(self): r""" Return true if the scan pointer is at the beginning of a line. >>> s = Scanner("test\ntest\n") >>> s.beginning_of_line() True >>> s.skip(r'te') 2 >>> s.beginning_of_line() False ...
python
def beginning_of_line(self): r""" Return true if the scan pointer is at the beginning of a line. >>> s = Scanner("test\ntest\n") >>> s.beginning_of_line() True >>> s.skip(r'te') 2 >>> s.beginning_of_line() False ...
[ "def", "beginning_of_line", "(", "self", ")", ":", "if", "self", ".", "pos", ">", "len", "(", "self", ".", "string", ")", ":", "return", "None", "elif", "self", ".", "pos", "==", "0", ":", "return", "True", "return", "self", ".", "string", "[", "se...
r""" Return true if the scan pointer is at the beginning of a line. >>> s = Scanner("test\ntest\n") >>> s.beginning_of_line() True >>> s.skip(r'te') 2 >>> s.beginning_of_line() False >>> s.skip(r'st\n') ...
[ "r", "Return", "true", "if", "the", "scan", "pointer", "is", "at", "the", "beginning", "of", "a", "line", "." ]
train
https://github.com/refnode/liquid/blob/8b2b5efc635b0dbfe610db9036fdb4ae3e3d5439/src/liquid/strscan.py#L147-L170
refnode/liquid
src/liquid/strscan.py
Scanner.getch
def getch(self): """ Get a single character and advance the scan pointer. >>> s = Scanner("abc") >>> s.getch() 'a' >>> s.getch() 'b' >>> s.getch() 'c' >>> s.pos 3 """ self.pos += ...
python
def getch(self): """ Get a single character and advance the scan pointer. >>> s = Scanner("abc") >>> s.getch() 'a' >>> s.getch() 'b' >>> s.getch() 'c' >>> s.pos 3 """ self.pos += ...
[ "def", "getch", "(", "self", ")", ":", "self", ".", "pos", "+=", "1", "return", "self", ".", "string", "[", "self", ".", "pos", "-", "1", ":", "self", ".", "pos", "]" ]
Get a single character and advance the scan pointer. >>> s = Scanner("abc") >>> s.getch() 'a' >>> s.getch() 'b' >>> s.getch() 'c' >>> s.pos 3
[ "Get", "a", "single", "character", "and", "advance", "the", "scan", "pointer", "." ]
train
https://github.com/refnode/liquid/blob/8b2b5efc635b0dbfe610db9036fdb4ae3e3d5439/src/liquid/strscan.py#L190-L205
refnode/liquid
src/liquid/strscan.py
Scanner.peek
def peek(self, length): """ Get a number of characters without advancing the scan pointer. >>> s = Scanner("test string") >>> s.peek(7) 'test st' >>> s.peek(7) 'test st' """ return self.string[self.pos:self.pos + length]
python
def peek(self, length): """ Get a number of characters without advancing the scan pointer. >>> s = Scanner("test string") >>> s.peek(7) 'test st' >>> s.peek(7) 'test st' """ return self.string[self.pos:self.pos + length]
[ "def", "peek", "(", "self", ",", "length", ")", ":", "return", "self", ".", "string", "[", "self", ".", "pos", ":", "self", ".", "pos", "+", "length", "]" ]
Get a number of characters without advancing the scan pointer. >>> s = Scanner("test string") >>> s.peek(7) 'test st' >>> s.peek(7) 'test st'
[ "Get", "a", "number", "of", "characters", "without", "advancing", "the", "scan", "pointer", "." ]
train
https://github.com/refnode/liquid/blob/8b2b5efc635b0dbfe610db9036fdb4ae3e3d5439/src/liquid/strscan.py#L207-L217
refnode/liquid
src/liquid/strscan.py
Scanner.unscan
def unscan(self): """ Undo the last scan, resetting the position and match registers. >>> s = Scanner('test string') >>> s.pos 0 >>> s.skip(r'te') 2 >>> s.rest 'st string' >>> s.unscan() >>> s.po...
python
def unscan(self): """ Undo the last scan, resetting the position and match registers. >>> s = Scanner('test string') >>> s.pos 0 >>> s.skip(r'te') 2 >>> s.rest 'st string' >>> s.unscan() >>> s.po...
[ "def", "unscan", "(", "self", ")", ":", "self", ".", "pos_history", ".", "pop", "(", ")", "self", ".", "_pos", "=", "self", ".", "pos_history", "[", "-", "1", "]", "self", ".", "match_history", ".", "pop", "(", ")", "self", ".", "_match", "=", "s...
Undo the last scan, resetting the position and match registers. >>> s = Scanner('test string') >>> s.pos 0 >>> s.skip(r'te') 2 >>> s.rest 'st string' >>> s.unscan() >>> s.pos 0 >>> s.rest...
[ "Undo", "the", "last", "scan", "resetting", "the", "position", "and", "match", "registers", "." ]
train
https://github.com/refnode/liquid/blob/8b2b5efc635b0dbfe610db9036fdb4ae3e3d5439/src/liquid/strscan.py#L275-L295
refnode/liquid
src/liquid/strscan.py
Scanner.scan_full
def scan_full(self, regex, return_string=True, advance_pointer=True): """ Match from the current position. If `return_string` is false and a match is found, returns the number of characters matched. >>> s = Scanner("test string") >>> s.scan_full(r' ') ...
python
def scan_full(self, regex, return_string=True, advance_pointer=True): """ Match from the current position. If `return_string` is false and a match is found, returns the number of characters matched. >>> s = Scanner("test string") >>> s.scan_full(r' ') ...
[ "def", "scan_full", "(", "self", ",", "regex", ",", "return_string", "=", "True", ",", "advance_pointer", "=", "True", ")", ":", "regex", "=", "get_regex", "(", "regex", ")", "self", ".", "match", "=", "regex", ".", "match", "(", "self", ".", "string",...
Match from the current position. If `return_string` is false and a match is found, returns the number of characters matched. >>> s = Scanner("test string") >>> s.scan_full(r' ') >>> s.scan_full(r'test ') 'test ' >>> s.pos 5 ...
[ "Match", "from", "the", "current", "position", "." ]
train
https://github.com/refnode/liquid/blob/8b2b5efc635b0dbfe610db9036fdb4ae3e3d5439/src/liquid/strscan.py#L297-L327
refnode/liquid
src/liquid/strscan.py
Scanner.search_full
def search_full(self, regex, return_string=True, advance_pointer=True): """ Search from the current position. If `return_string` is false and a match is found, returns the number of characters matched (from the current position *up to* the end of the match). >>> s =...
python
def search_full(self, regex, return_string=True, advance_pointer=True): """ Search from the current position. If `return_string` is false and a match is found, returns the number of characters matched (from the current position *up to* the end of the match). >>> s =...
[ "def", "search_full", "(", "self", ",", "regex", ",", "return_string", "=", "True", ",", "advance_pointer", "=", "True", ")", ":", "regex", "=", "get_regex", "(", "regex", ")", "self", ".", "match", "=", "regex", ".", "search", "(", "self", ".", "strin...
Search from the current position. If `return_string` is false and a match is found, returns the number of characters matched (from the current position *up to* the end of the match). >>> s = Scanner("test string") >>> s.search_full(r' ') 'test ' ...
[ "Search", "from", "the", "current", "position", "." ]
train
https://github.com/refnode/liquid/blob/8b2b5efc635b0dbfe610db9036fdb4ae3e3d5439/src/liquid/strscan.py#L329-L360
refnode/liquid
src/liquid/strscan.py
Scanner.scan
def scan(self, regex): """ Match a pattern from the current position. If a match is found, advances the scan pointer and returns the matched string. Otherwise returns ``None``. >>> s = Scanner("test string") >>> s.pos 0 >>> s.scan(r'foo')...
python
def scan(self, regex): """ Match a pattern from the current position. If a match is found, advances the scan pointer and returns the matched string. Otherwise returns ``None``. >>> s = Scanner("test string") >>> s.pos 0 >>> s.scan(r'foo')...
[ "def", "scan", "(", "self", ",", "regex", ")", ":", "return", "self", ".", "scan_full", "(", "regex", ",", "return_string", "=", "True", ",", "advance_pointer", "=", "True", ")" ]
Match a pattern from the current position. If a match is found, advances the scan pointer and returns the matched string. Otherwise returns ``None``. >>> s = Scanner("test string") >>> s.pos 0 >>> s.scan(r'foo') >>> s.scan(r'bar') ...
[ "Match", "a", "pattern", "from", "the", "current", "position", "." ]
train
https://github.com/refnode/liquid/blob/8b2b5efc635b0dbfe610db9036fdb4ae3e3d5439/src/liquid/strscan.py#L362-L381
refnode/liquid
src/liquid/strscan.py
Scanner.scan_until
def scan_until(self, regex): """ Search for a pattern from the current position. If a match is found, advances the scan pointer and returns the matched string, from the current position *up to* the end of the match. Otherwise returns ``None``. >>> s = Scanner("test ...
python
def scan_until(self, regex): """ Search for a pattern from the current position. If a match is found, advances the scan pointer and returns the matched string, from the current position *up to* the end of the match. Otherwise returns ``None``. >>> s = Scanner("test ...
[ "def", "scan_until", "(", "self", ",", "regex", ")", ":", "return", "self", ".", "search_full", "(", "regex", ",", "return_string", "=", "True", ",", "advance_pointer", "=", "True", ")" ]
Search for a pattern from the current position. If a match is found, advances the scan pointer and returns the matched string, from the current position *up to* the end of the match. Otherwise returns ``None``. >>> s = Scanner("test string") >>> s.pos 0 ...
[ "Search", "for", "a", "pattern", "from", "the", "current", "position", "." ]
train
https://github.com/refnode/liquid/blob/8b2b5efc635b0dbfe610db9036fdb4ae3e3d5439/src/liquid/strscan.py#L383-L403
refnode/liquid
src/liquid/strscan.py
Scanner.scan_upto
def scan_upto(self, regex): """ Scan up to, but not including, the given regex. >>> s = Scanner("test string") >>> s.scan('t') 't' >>> s.scan_upto(r' ') 'est' >>> s.pos 4 >>> s.pos_history [0, 1,...
python
def scan_upto(self, regex): """ Scan up to, but not including, the given regex. >>> s = Scanner("test string") >>> s.scan('t') 't' >>> s.scan_upto(r' ') 'est' >>> s.pos 4 >>> s.pos_history [0, 1,...
[ "def", "scan_upto", "(", "self", ",", "regex", ")", ":", "pos", "=", "self", ".", "pos", "if", "self", ".", "scan_until", "(", "regex", ")", "is", "not", "None", ":", "self", ".", "pos", "-=", "len", "(", "self", ".", "matched", "(", ")", ")", ...
Scan up to, but not including, the given regex. >>> s = Scanner("test string") >>> s.scan('t') 't' >>> s.scan_upto(r' ') 'est' >>> s.pos 4 >>> s.pos_history [0, 1, 4]
[ "Scan", "up", "to", "but", "not", "including", "the", "given", "regex", "." ]
train
https://github.com/refnode/liquid/blob/8b2b5efc635b0dbfe610db9036fdb4ae3e3d5439/src/liquid/strscan.py#L405-L424
refnode/liquid
src/liquid/strscan.py
Scanner.skip
def skip(self, regex): """ Like :meth:`scan`, but return the number of characters matched. >>> s = Scanner("test string") >>> s.skip('test ') 5 """ return self.scan_full(regex, return_string=False, advance_pointer=True)
python
def skip(self, regex): """ Like :meth:`scan`, but return the number of characters matched. >>> s = Scanner("test string") >>> s.skip('test ') 5 """ return self.scan_full(regex, return_string=False, advance_pointer=True)
[ "def", "skip", "(", "self", ",", "regex", ")", ":", "return", "self", ".", "scan_full", "(", "regex", ",", "return_string", "=", "False", ",", "advance_pointer", "=", "True", ")" ]
Like :meth:`scan`, but return the number of characters matched. >>> s = Scanner("test string") >>> s.skip('test ') 5
[ "Like", ":", "meth", ":", "scan", "but", "return", "the", "number", "of", "characters", "matched", "." ]
train
https://github.com/refnode/liquid/blob/8b2b5efc635b0dbfe610db9036fdb4ae3e3d5439/src/liquid/strscan.py#L426-L434
refnode/liquid
src/liquid/strscan.py
Scanner.skip_until
def skip_until(self, regex): """ Like :meth:`scan_until`, but return the number of characters matched. >>> s = Scanner("test string") >>> s.skip_until(' ') 5 """ return self.search_full(regex, return_string=False, advance_pointer=True)
python
def skip_until(self, regex): """ Like :meth:`scan_until`, but return the number of characters matched. >>> s = Scanner("test string") >>> s.skip_until(' ') 5 """ return self.search_full(regex, return_string=False, advance_pointer=True)
[ "def", "skip_until", "(", "self", ",", "regex", ")", ":", "return", "self", ".", "search_full", "(", "regex", ",", "return_string", "=", "False", ",", "advance_pointer", "=", "True", ")" ]
Like :meth:`scan_until`, but return the number of characters matched. >>> s = Scanner("test string") >>> s.skip_until(' ') 5
[ "Like", ":", "meth", ":", "scan_until", "but", "return", "the", "number", "of", "characters", "matched", "." ]
train
https://github.com/refnode/liquid/blob/8b2b5efc635b0dbfe610db9036fdb4ae3e3d5439/src/liquid/strscan.py#L436-L444
refnode/liquid
src/liquid/strscan.py
Scanner.check
def check(self, regex): """ See what :meth:`scan` would return without advancing the pointer. >>> s = Scanner("test string") >>> s.check('test ') 'test ' >>> s.pos 0 """ return self.scan_full(regex, return_string=True, advance_...
python
def check(self, regex): """ See what :meth:`scan` would return without advancing the pointer. >>> s = Scanner("test string") >>> s.check('test ') 'test ' >>> s.pos 0 """ return self.scan_full(regex, return_string=True, advance_...
[ "def", "check", "(", "self", ",", "regex", ")", ":", "return", "self", ".", "scan_full", "(", "regex", ",", "return_string", "=", "True", ",", "advance_pointer", "=", "False", ")" ]
See what :meth:`scan` would return without advancing the pointer. >>> s = Scanner("test string") >>> s.check('test ') 'test ' >>> s.pos 0
[ "See", "what", ":", "meth", ":", "scan", "would", "return", "without", "advancing", "the", "pointer", "." ]
train
https://github.com/refnode/liquid/blob/8b2b5efc635b0dbfe610db9036fdb4ae3e3d5439/src/liquid/strscan.py#L446-L456
refnode/liquid
src/liquid/strscan.py
Scanner.check_until
def check_until(self, regex): """ See what :meth:`scan_until` would return without advancing the pointer. >>> s = Scanner("test string") >>> s.check_until(' ') 'test ' >>> s.pos 0 """ return self.search_full(regex, return_strin...
python
def check_until(self, regex): """ See what :meth:`scan_until` would return without advancing the pointer. >>> s = Scanner("test string") >>> s.check_until(' ') 'test ' >>> s.pos 0 """ return self.search_full(regex, return_strin...
[ "def", "check_until", "(", "self", ",", "regex", ")", ":", "return", "self", ".", "search_full", "(", "regex", ",", "return_string", "=", "True", ",", "advance_pointer", "=", "False", ")" ]
See what :meth:`scan_until` would return without advancing the pointer. >>> s = Scanner("test string") >>> s.check_until(' ') 'test ' >>> s.pos 0
[ "See", "what", ":", "meth", ":", "scan_until", "would", "return", "without", "advancing", "the", "pointer", "." ]
train
https://github.com/refnode/liquid/blob/8b2b5efc635b0dbfe610db9036fdb4ae3e3d5439/src/liquid/strscan.py#L458-L468
refnode/liquid
src/liquid/strscan.py
Scanner.exists
def exists(self, regex): """ See what :meth:`skip_until` would return without advancing the pointer. >>> s = Scanner("test string") >>> s.exists(' ') 5 >>> s.pos 0 Returns the number of characters matched if it does exist, or ``None``...
python
def exists(self, regex): """ See what :meth:`skip_until` would return without advancing the pointer. >>> s = Scanner("test string") >>> s.exists(' ') 5 >>> s.pos 0 Returns the number of characters matched if it does exist, or ``None``...
[ "def", "exists", "(", "self", ",", "regex", ")", ":", "return", "self", ".", "search_full", "(", "regex", ",", "return_string", "=", "False", ",", "advance_pointer", "=", "False", ")" ]
See what :meth:`skip_until` would return without advancing the pointer. >>> s = Scanner("test string") >>> s.exists(' ') 5 >>> s.pos 0 Returns the number of characters matched if it does exist, or ``None`` otherwise.
[ "See", "what", ":", "meth", ":", "skip_until", "would", "return", "without", "advancing", "the", "pointer", "." ]
train
https://github.com/refnode/liquid/blob/8b2b5efc635b0dbfe610db9036fdb4ae3e3d5439/src/liquid/strscan.py#L470-L483
ascribe/pyspool
spool/wallet.py
Wallet.address_from_path
def address_from_path(self, path=None): """ Args: path (str): Path for the HD wallet. If path is ``None`` it will generate a unique path based on time. Returns: A ``tuple`` with the path and leaf address. """ path = path if path else self...
python
def address_from_path(self, path=None): """ Args: path (str): Path for the HD wallet. If path is ``None`` it will generate a unique path based on time. Returns: A ``tuple`` with the path and leaf address. """ path = path if path else self...
[ "def", "address_from_path", "(", "self", ",", "path", "=", "None", ")", ":", "path", "=", "path", "if", "path", "else", "self", ".", "_unique_hierarchical_string", "(", ")", "return", "path", ",", "self", ".", "wallet", ".", "subkey_for_path", "(", "path",...
Args: path (str): Path for the HD wallet. If path is ``None`` it will generate a unique path based on time. Returns: A ``tuple`` with the path and leaf address.
[ "Args", ":", "path", "(", "str", ")", ":", "Path", "for", "the", "HD", "wallet", ".", "If", "path", "is", "None", "it", "will", "generate", "a", "unique", "path", "based", "on", "time", "." ]
train
https://github.com/ascribe/pyspool/blob/f8b10df1e7d2ea7950dde433c1cb6d5225112f4f/spool/wallet.py#L42-L53
ascribe/pyspool
spool/wallet.py
Wallet._unique_hierarchical_string
def _unique_hierarchical_string(self): """ Returns: str: a representation of time such as:: '2014/2/23/15/26/8/9877978' The last part (microsecond) is needed to avoid duplicates in rapid-fire transactions e.g. ``> 1`` edition. """ t = dateti...
python
def _unique_hierarchical_string(self): """ Returns: str: a representation of time such as:: '2014/2/23/15/26/8/9877978' The last part (microsecond) is needed to avoid duplicates in rapid-fire transactions e.g. ``> 1`` edition. """ t = dateti...
[ "def", "_unique_hierarchical_string", "(", "self", ")", ":", "t", "=", "datetime", ".", "now", "(", ")", "return", "'%s/%s/%s/%s/%s/%s/%s'", "%", "(", "t", ".", "year", ",", "t", ".", "month", ",", "t", ".", "day", ",", "t", ".", "hour", ",", "t", ...
Returns: str: a representation of time such as:: '2014/2/23/15/26/8/9877978' The last part (microsecond) is needed to avoid duplicates in rapid-fire transactions e.g. ``> 1`` edition.
[ "Returns", ":", "str", ":", "a", "representation", "of", "time", "such", "as", "::" ]
train
https://github.com/ascribe/pyspool/blob/f8b10df1e7d2ea7950dde433c1cb6d5225112f4f/spool/wallet.py#L55-L68
requirements/rparse
rparse.py
parse
def parse(requirements): """ Parses given requirements line-by-line. """ transformer = RTransformer() return map(transformer.transform, filter(None, map(_parse, requirements.splitlines())))
python
def parse(requirements): """ Parses given requirements line-by-line. """ transformer = RTransformer() return map(transformer.transform, filter(None, map(_parse, requirements.splitlines())))
[ "def", "parse", "(", "requirements", ")", ":", "transformer", "=", "RTransformer", "(", ")", "return", "map", "(", "transformer", ".", "transform", ",", "filter", "(", "None", ",", "map", "(", "_parse", ",", "requirements", ".", "splitlines", "(", ")", "...
Parses given requirements line-by-line.
[ "Parses", "given", "requirements", "line", "-", "by", "-", "line", "." ]
train
https://github.com/requirements/rparse/blob/726c944d1c61708ebcf4288893e2ea2f2e1eab8c/rparse.py#L98-L103
ilgarm/pyzimbra
pyzimbra/auth.py
Authenticator.authenticate
def authenticate(self, transport, account_name, password): """ Authenticates account, if no password given tries to pre-authenticate. @param transport: transport to use for method calls @param account_name: account name @param password: account password @return: AuthToken...
python
def authenticate(self, transport, account_name, password): """ Authenticates account, if no password given tries to pre-authenticate. @param transport: transport to use for method calls @param account_name: account name @param password: account password @return: AuthToken...
[ "def", "authenticate", "(", "self", ",", "transport", ",", "account_name", ",", "password", ")", ":", "if", "not", "isinstance", "(", "transport", ",", "ZimbraClientTransport", ")", ":", "raise", "ZimbraClientException", "(", "'Invalid transport'", ")", "if", "u...
Authenticates account, if no password given tries to pre-authenticate. @param transport: transport to use for method calls @param account_name: account name @param password: account password @return: AuthToken if authentication succeeded @raise AuthException: if authentication fa...
[ "Authenticates", "account", "if", "no", "password", "given", "tries", "to", "pre", "-", "authenticate", "." ]
train
https://github.com/ilgarm/pyzimbra/blob/c397bc7497554d260ec6fd1a80405aed872a70cc/pyzimbra/auth.py#L100-L113
theosysbio/means
src/means/simulation/ssa.py
SSASimulation.simulate_system
def simulate_system(self, parameters, initial_conditions, timepoints, max_moment_order=1, number_of_processes=1): """ Perform Gillespie SSA simulations and returns trajectories for of each species. Each trajectory is interpolated at the given time points. By defau...
python
def simulate_system(self, parameters, initial_conditions, timepoints, max_moment_order=1, number_of_processes=1): """ Perform Gillespie SSA simulations and returns trajectories for of each species. Each trajectory is interpolated at the given time points. By defau...
[ "def", "simulate_system", "(", "self", ",", "parameters", ",", "initial_conditions", ",", "timepoints", ",", "max_moment_order", "=", "1", ",", "number_of_processes", "=", "1", ")", ":", "max_moment_order", "=", "int", "(", "max_moment_order", ")", "assert", "("...
Perform Gillespie SSA simulations and returns trajectories for of each species. Each trajectory is interpolated at the given time points. By default, the average amounts of species for all simulations is returned. :param parameters: list of the initial values for the constants in the model. ...
[ "Perform", "Gillespie", "SSA", "simulations", "and", "returns", "trajectories", "for", "of", "each", "species", ".", "Each", "trajectory", "is", "interpolated", "at", "the", "given", "time", "points", ".", "By", "default", "the", "average", "amounts", "of", "s...
train
https://github.com/theosysbio/means/blob/fe164916a1d84ab2a4fa039871d38ccdf638b1db/src/means/simulation/ssa.py#L62-L139
theosysbio/means
src/means/simulation/ssa.py
_SSAGenerator._gssa
def _gssa(self, initial_conditions, t_max): """ This function is inspired from Yoav Ram's code available at: http://nbviewer.ipython.org/github/yoavram/ipython-notebooks/blob/master/GSSA.ipynb :param initial_conditions: the initial conditions of the system :param t_max: the tim...
python
def _gssa(self, initial_conditions, t_max): """ This function is inspired from Yoav Ram's code available at: http://nbviewer.ipython.org/github/yoavram/ipython-notebooks/blob/master/GSSA.ipynb :param initial_conditions: the initial conditions of the system :param t_max: the tim...
[ "def", "_gssa", "(", "self", ",", "initial_conditions", ",", "t_max", ")", ":", "# set the initial conditions and t0 = 0.", "species_over_time", "=", "[", "np", ".", "array", "(", "initial_conditions", ")", ".", "astype", "(", "\"int16\"", ")", "]", "t", "=", ...
This function is inspired from Yoav Ram's code available at: http://nbviewer.ipython.org/github/yoavram/ipython-notebooks/blob/master/GSSA.ipynb :param initial_conditions: the initial conditions of the system :param t_max: the time when the simulation should stop :return:
[ "This", "function", "is", "inspired", "from", "Yoav", "Ram", "s", "code", "available", "at", ":", "http", ":", "//", "nbviewer", ".", "ipython", ".", "org", "/", "github", "/", "yoavram", "/", "ipython", "-", "notebooks", "/", "blob", "/", "master", "/...
train
https://github.com/theosysbio/means/blob/fe164916a1d84ab2a4fa039871d38ccdf638b1db/src/means/simulation/ssa.py#L215-L234
theosysbio/means
src/means/simulation/ssa.py
_SSAGenerator.generate_single_simulation
def generate_single_simulation(self, x): """ Generate a single SSA simulation :param x: an integer to reset the random seed. If None, the initial random number generator is used :return: a list of :class:`~means.simulation.Trajectory` one per species in the problem :rtype: list[:...
python
def generate_single_simulation(self, x): """ Generate a single SSA simulation :param x: an integer to reset the random seed. If None, the initial random number generator is used :return: a list of :class:`~means.simulation.Trajectory` one per species in the problem :rtype: list[:...
[ "def", "generate_single_simulation", "(", "self", ",", "x", ")", ":", "#reset random seed", "if", "x", ":", "self", ".", "__rng", "=", "np", ".", "random", ".", "RandomState", "(", "x", ")", "# perform one stochastic simulation", "time_points", ",", "species_ove...
Generate a single SSA simulation :param x: an integer to reset the random seed. If None, the initial random number generator is used :return: a list of :class:`~means.simulation.Trajectory` one per species in the problem :rtype: list[:class:`~means.simulation.Trajectory`]
[ "Generate", "a", "single", "SSA", "simulation", ":", "param", "x", ":", "an", "integer", "to", "reset", "the", "random", "seed", ".", "If", "None", "the", "initial", "random", "number", "generator", "is", "used", ":", "return", ":", "a", "list", "of", ...
train
https://github.com/theosysbio/means/blob/fe164916a1d84ab2a4fa039871d38ccdf638b1db/src/means/simulation/ssa.py#L245-L270
askovpen/discord_simple
setup.py
requirements
def requirements(): """Build the requirements list for this project""" requirements_list = [] with open('requirements.txt') as requirements: for install in requirements: requirements_list.append(install.strip()) return requirements_list
python
def requirements(): """Build the requirements list for this project""" requirements_list = [] with open('requirements.txt') as requirements: for install in requirements: requirements_list.append(install.strip()) return requirements_list
[ "def", "requirements", "(", ")", ":", "requirements_list", "=", "[", "]", "with", "open", "(", "'requirements.txt'", ")", "as", "requirements", ":", "for", "install", "in", "requirements", ":", "requirements_list", ".", "append", "(", "install", ".", "strip", ...
Build the requirements list for this project
[ "Build", "the", "requirements", "list", "for", "this", "project" ]
train
https://github.com/askovpen/discord_simple/blob/6dff3a94b63bb3657fae8b16e3d03f944afee71b/setup.py#L4-L10
CodeLineFi/maclookup-python
src/maclookup/requester.py
Requester.request
def request(self, url, parameters): """Perform a http(s) request for given parameters to given URL Keyword arguments: url -- API url parameters -- dict with payload. """ try: request = Request(url + '?' + urlencode(parameters), None, { ...
python
def request(self, url, parameters): """Perform a http(s) request for given parameters to given URL Keyword arguments: url -- API url parameters -- dict with payload. """ try: request = Request(url + '?' + urlencode(parameters), None, { ...
[ "def", "request", "(", "self", ",", "url", ",", "parameters", ")", ":", "try", ":", "request", "=", "Request", "(", "url", "+", "'?'", "+", "urlencode", "(", "parameters", ")", ",", "None", ",", "{", "'X-Authentication-Token'", ":", "self", ".", "api_k...
Perform a http(s) request for given parameters to given URL Keyword arguments: url -- API url parameters -- dict with payload.
[ "Perform", "a", "http", "(", "s", ")", "request", "for", "given", "parameters", "to", "given", "URL" ]
train
https://github.com/CodeLineFi/maclookup-python/blob/0d87dc6cb1a8c8583c9d242fbb3e98d70d83664f/src/maclookup/requester.py#L26-L78
njharman/die
die/stats.py
Statistic.do_sum
def do_sum(self, count=1): '''Set self.sum, self.avr and return sum of dice rolled, count times. :param count: Number of rolls to make :return: Total sum of all rolls ''' if not self.roll.summable: return 0 self.sum = sum(self.roll.roll(count)) self.av...
python
def do_sum(self, count=1): '''Set self.sum, self.avr and return sum of dice rolled, count times. :param count: Number of rolls to make :return: Total sum of all rolls ''' if not self.roll.summable: return 0 self.sum = sum(self.roll.roll(count)) self.av...
[ "def", "do_sum", "(", "self", ",", "count", "=", "1", ")", ":", "if", "not", "self", ".", "roll", ".", "summable", ":", "return", "0", "self", ".", "sum", "=", "sum", "(", "self", ".", "roll", ".", "roll", "(", "count", ")", ")", "self", ".", ...
Set self.sum, self.avr and return sum of dice rolled, count times. :param count: Number of rolls to make :return: Total sum of all rolls
[ "Set", "self", ".", "sum", "self", ".", "avr", "and", "return", "sum", "of", "dice", "rolled", "count", "times", ".", ":", "param", "count", ":", "Number", "of", "rolls", "to", "make", ":", "return", ":", "Total", "sum", "of", "all", "rolls" ]
train
https://github.com/njharman/die/blob/ad6b837fcf2415d1a7c7283f3b333ad435d0821d/die/stats.py#L39-L48
njharman/die
die/stats.py
Statistic.do_bucket
def do_bucket(self, count=1): '''Set self.bucket and return results. :param count: Number of rolls to make :return: List of tuples (total of roll, times it was rolled) ''' self._bucket = dict() for roll in self.roll.roll(count): self._bucket[roll] = self._buck...
python
def do_bucket(self, count=1): '''Set self.bucket and return results. :param count: Number of rolls to make :return: List of tuples (total of roll, times it was rolled) ''' self._bucket = dict() for roll in self.roll.roll(count): self._bucket[roll] = self._buck...
[ "def", "do_bucket", "(", "self", ",", "count", "=", "1", ")", ":", "self", ".", "_bucket", "=", "dict", "(", ")", "for", "roll", "in", "self", ".", "roll", ".", "roll", "(", "count", ")", ":", "self", ".", "_bucket", "[", "roll", "]", "=", "sel...
Set self.bucket and return results. :param count: Number of rolls to make :return: List of tuples (total of roll, times it was rolled)
[ "Set", "self", ".", "bucket", "and", "return", "results", ".", ":", "param", "count", ":", "Number", "of", "rolls", "to", "make", ":", "return", ":", "List", "of", "tuples", "(", "total", "of", "roll", "times", "it", "was", "rolled", ")" ]
train
https://github.com/njharman/die/blob/ad6b837fcf2415d1a7c7283f3b333ad435d0821d/die/stats.py#L50-L58
njharman/die
die/stats.py
Statistic.do_run
def do_run(self, count=1): '''Roll count dice, store results. Does all stats so might be slower than specific doFoo methods. But, it is proly faster than running each of those seperately to get same stats. Sets the following properties: - stats.bucket - stats.sum ...
python
def do_run(self, count=1): '''Roll count dice, store results. Does all stats so might be slower than specific doFoo methods. But, it is proly faster than running each of those seperately to get same stats. Sets the following properties: - stats.bucket - stats.sum ...
[ "def", "do_run", "(", "self", ",", "count", "=", "1", ")", ":", "if", "not", "self", ".", "roll", ".", "summable", ":", "raise", "Exception", "(", "'Roll is not summable'", ")", "h", "=", "dict", "(", ")", "total", "=", "0", "for", "roll", "in", "s...
Roll count dice, store results. Does all stats so might be slower than specific doFoo methods. But, it is proly faster than running each of those seperately to get same stats. Sets the following properties: - stats.bucket - stats.sum - stats.avr :param cou...
[ "Roll", "count", "dice", "store", "results", ".", "Does", "all", "stats", "so", "might", "be", "slower", "than", "specific", "doFoo", "methods", ".", "But", "it", "is", "proly", "faster", "than", "running", "each", "of", "those", "seperately", "to", "get",...
train
https://github.com/njharman/die/blob/ad6b837fcf2415d1a7c7283f3b333ad435d0821d/die/stats.py#L60-L81
raamana/hiwenet
hiwenet/analyze_distance_behaviour.py
get_distr
def get_distr(center=0.0, stdev=default_stdev, length=50): "Returns a PDF of a given length. " # distr = np.random.random(length) # sticking to normal distibution to easily control separability distr = rng.normal(center, stdev, size=[length, 1]) return distr
python
def get_distr(center=0.0, stdev=default_stdev, length=50): "Returns a PDF of a given length. " # distr = np.random.random(length) # sticking to normal distibution to easily control separability distr = rng.normal(center, stdev, size=[length, 1]) return distr
[ "def", "get_distr", "(", "center", "=", "0.0", ",", "stdev", "=", "default_stdev", ",", "length", "=", "50", ")", ":", "# distr = np.random.random(length)", "# sticking to normal distibution to easily control separability", "distr", "=", "rng", ".", "normal", "(", "ce...
Returns a PDF of a given length.
[ "Returns", "a", "PDF", "of", "a", "given", "length", "." ]
train
https://github.com/raamana/hiwenet/blob/b12699b3722fd0a6a835e7d7ca4baf58fb181809/hiwenet/analyze_distance_behaviour.py#L59-L66
raamana/hiwenet
hiwenet/analyze_distance_behaviour.py
make_random_histogram
def make_random_histogram(center=0.0, stdev=default_stdev, length=default_feature_dim, num_bins=default_num_bins): "Returns a sequence of histogram density values that sum to 1.0" hist, bin_edges = np.histogram(get_distr(center, stdev, length), range=edge_range, bins=num_bins...
python
def make_random_histogram(center=0.0, stdev=default_stdev, length=default_feature_dim, num_bins=default_num_bins): "Returns a sequence of histogram density values that sum to 1.0" hist, bin_edges = np.histogram(get_distr(center, stdev, length), range=edge_range, bins=num_bins...
[ "def", "make_random_histogram", "(", "center", "=", "0.0", ",", "stdev", "=", "default_stdev", ",", "length", "=", "default_feature_dim", ",", "num_bins", "=", "default_num_bins", ")", ":", "hist", ",", "bin_edges", "=", "np", ".", "histogram", "(", "get_distr...
Returns a sequence of histogram density values that sum to 1.0
[ "Returns", "a", "sequence", "of", "histogram", "density", "values", "that", "sum", "to", "1", ".", "0" ]
train
https://github.com/raamana/hiwenet/blob/b12699b3722fd0a6a835e7d7ca4baf58fb181809/hiwenet/analyze_distance_behaviour.py#L69-L80
delfick/harpoon
harpoon/ship/syncer.py
Syncer.pull
def pull(self, conf, ignore_missing=False): """Push this image""" with Builder().remove_replaced_images(conf): self.push_or_pull(conf, "pull", ignore_missing=ignore_missing)
python
def pull(self, conf, ignore_missing=False): """Push this image""" with Builder().remove_replaced_images(conf): self.push_or_pull(conf, "pull", ignore_missing=ignore_missing)
[ "def", "pull", "(", "self", ",", "conf", ",", "ignore_missing", "=", "False", ")", ":", "with", "Builder", "(", ")", ".", "remove_replaced_images", "(", "conf", ")", ":", "self", ".", "push_or_pull", "(", "conf", ",", "\"pull\"", ",", "ignore_missing", "...
Push this image
[ "Push", "this", "image" ]
train
https://github.com/delfick/harpoon/blob/a2d39311d6127b7da2e15f40468bf320d598e461/harpoon/ship/syncer.py#L72-L75
delfick/harpoon
harpoon/ship/syncer.py
Syncer.push_or_pull
def push_or_pull(self, conf, action=None, ignore_missing=False): """Push or pull this image""" if action not in ("push", "pull"): raise ProgrammerError("Should have called push_or_pull with action to either push or pull, got {0}".format(action)) if not conf.image_index: ...
python
def push_or_pull(self, conf, action=None, ignore_missing=False): """Push or pull this image""" if action not in ("push", "pull"): raise ProgrammerError("Should have called push_or_pull with action to either push or pull, got {0}".format(action)) if not conf.image_index: ...
[ "def", "push_or_pull", "(", "self", ",", "conf", ",", "action", "=", "None", ",", "ignore_missing", "=", "False", ")", ":", "if", "action", "not", "in", "(", "\"push\"", ",", "\"pull\"", ")", ":", "raise", "ProgrammerError", "(", "\"Should have called push_o...
Push or pull this image
[ "Push", "or", "pull", "this", "image" ]
train
https://github.com/delfick/harpoon/blob/a2d39311d6127b7da2e15f40468bf320d598e461/harpoon/ship/syncer.py#L77-L136
mitsei/dlkit
dlkit/json_/grading/queries.py
GradebookColumnQuery.match_grade_system_id
def match_grade_system_id(self, grade_system_id, match): """Sets the grade system ``Id`` for this query. arg: grade_system_id (osid.id.Id): a grade system ``Id`` arg: match (boolean): ``true`` for a positive match, ``false`` for a negative match raise: NullArgumen...
python
def match_grade_system_id(self, grade_system_id, match): """Sets the grade system ``Id`` for this query. arg: grade_system_id (osid.id.Id): a grade system ``Id`` arg: match (boolean): ``true`` for a positive match, ``false`` for a negative match raise: NullArgumen...
[ "def", "match_grade_system_id", "(", "self", ",", "grade_system_id", ",", "match", ")", ":", "self", ".", "_add_match", "(", "'gradeSystemId'", ",", "str", "(", "grade_system_id", ")", ",", "bool", "(", "match", ")", ")" ]
Sets the grade system ``Id`` for this query. arg: grade_system_id (osid.id.Id): a grade system ``Id`` arg: match (boolean): ``true`` for a positive match, ``false`` for a negative match raise: NullArgument - ``grade_system_id`` is ``null`` *compliance: mandatory -...
[ "Sets", "the", "grade", "system", "Id", "for", "this", "query", "." ]
train
https://github.com/mitsei/dlkit/blob/445f968a175d61c8d92c0f617a3c17dc1dc7c584/dlkit/json_/grading/queries.py#L1350-L1360
kylef/maintain
maintain/release/aggregate.py
AggregateReleaser.releasers
def releasers(cls): """ Returns all of the supported releasers. """ return [ HookReleaser, VersionFileReleaser, PythonReleaser, CocoaPodsReleaser, NPMReleaser, CReleaser, ChangelogReleaser, G...
python
def releasers(cls): """ Returns all of the supported releasers. """ return [ HookReleaser, VersionFileReleaser, PythonReleaser, CocoaPodsReleaser, NPMReleaser, CReleaser, ChangelogReleaser, G...
[ "def", "releasers", "(", "cls", ")", ":", "return", "[", "HookReleaser", ",", "VersionFileReleaser", ",", "PythonReleaser", ",", "CocoaPodsReleaser", ",", "NPMReleaser", ",", "CReleaser", ",", "ChangelogReleaser", ",", "GitHubReleaser", ",", "GitReleaser", ",", "]...
Returns all of the supported releasers.
[ "Returns", "all", "of", "the", "supported", "releasers", "." ]
train
https://github.com/kylef/maintain/blob/4b60e6c52accb4a7faf0d7255a7079087d3ecee0/maintain/release/aggregate.py#L20-L35
kylef/maintain
maintain/release/aggregate.py
AggregateReleaser.detected_releasers
def detected_releasers(cls, config): """ Returns all of the releasers that are compatible with the project. """ def get_config(releaser): if config: return config.get(releaser.config_name(), {}) return {} releasers = [] for rele...
python
def detected_releasers(cls, config): """ Returns all of the releasers that are compatible with the project. """ def get_config(releaser): if config: return config.get(releaser.config_name(), {}) return {} releasers = [] for rele...
[ "def", "detected_releasers", "(", "cls", ",", "config", ")", ":", "def", "get_config", "(", "releaser", ")", ":", "if", "config", ":", "return", "config", ".", "get", "(", "releaser", ".", "config_name", "(", ")", ",", "{", "}", ")", "return", "{", "...
Returns all of the releasers that are compatible with the project.
[ "Returns", "all", "of", "the", "releasers", "that", "are", "compatible", "with", "the", "project", "." ]
train
https://github.com/kylef/maintain/blob/4b60e6c52accb4a7faf0d7255a7079087d3ecee0/maintain/release/aggregate.py#L38-L61
kylef/maintain
maintain/release/aggregate.py
AggregateReleaser.check_version_consistency
def check_version_consistency(self): """ Determine if any releasers have inconsistent versions """ version = None releaser_name = None for releaser in self.releasers: try: next_version = releaser.determine_current_version() except...
python
def check_version_consistency(self): """ Determine if any releasers have inconsistent versions """ version = None releaser_name = None for releaser in self.releasers: try: next_version = releaser.determine_current_version() except...
[ "def", "check_version_consistency", "(", "self", ")", ":", "version", "=", "None", "releaser_name", "=", "None", "for", "releaser", "in", "self", ".", "releasers", ":", "try", ":", "next_version", "=", "releaser", ".", "determine_current_version", "(", ")", "e...
Determine if any releasers have inconsistent versions
[ "Determine", "if", "any", "releasers", "have", "inconsistent", "versions" ]
train
https://github.com/kylef/maintain/blob/4b60e6c52accb4a7faf0d7255a7079087d3ecee0/maintain/release/aggregate.py#L71-L90
mitsei/dlkit
dlkit/aws_adapter/repository/aws_utils.py
get_aws_s3_handle
def get_aws_s3_handle(config_map): """Convenience function for getting AWS S3 objects Added by cjshaw@mit.edu, Jan 9, 2015 Added to aws_adapter build by birdland@mit.edu, Jan 25, 2015, and added support for Configuration May 25, 2017: Switch to boto3 """ url = 'https://' + config_map['s3_b...
python
def get_aws_s3_handle(config_map): """Convenience function for getting AWS S3 objects Added by cjshaw@mit.edu, Jan 9, 2015 Added to aws_adapter build by birdland@mit.edu, Jan 25, 2015, and added support for Configuration May 25, 2017: Switch to boto3 """ url = 'https://' + config_map['s3_b...
[ "def", "get_aws_s3_handle", "(", "config_map", ")", ":", "url", "=", "'https://'", "+", "config_map", "[", "'s3_bucket'", "]", "+", "'.s3.amazonaws.com'", "if", "not", "AWS_CLIENT", ".", "is_aws_s3_client_set", "(", ")", ":", "client", "=", "boto3", ".", "clie...
Convenience function for getting AWS S3 objects Added by cjshaw@mit.edu, Jan 9, 2015 Added to aws_adapter build by birdland@mit.edu, Jan 25, 2015, and added support for Configuration May 25, 2017: Switch to boto3
[ "Convenience", "function", "for", "getting", "AWS", "S3", "objects" ]
train
https://github.com/mitsei/dlkit/blob/445f968a175d61c8d92c0f617a3c17dc1dc7c584/dlkit/aws_adapter/repository/aws_utils.py#L12-L31
mitsei/dlkit
dlkit/aws_adapter/repository/aws_utils.py
get_signed_url
def get_signed_url(url, config_map): """ Convenience function for getting cloudfront signed URL given a saved URL cjshaw, Jan 7, 2015 Follows: http://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/ private-content-creating-signed-url-canned-policy.html#private- ...
python
def get_signed_url(url, config_map): """ Convenience function for getting cloudfront signed URL given a saved URL cjshaw, Jan 7, 2015 Follows: http://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/ private-content-creating-signed-url-canned-policy.html#private- ...
[ "def", "get_signed_url", "(", "url", ",", "config_map", ")", ":", "# From https://stackoverflow.com/a/34322915", "def", "rsa_signer", "(", "message", ")", ":", "private_key", "=", "open", "(", "config_map", "[", "'cloudfront_private_key_file'", "]", ",", "'r'", ")",...
Convenience function for getting cloudfront signed URL given a saved URL cjshaw, Jan 7, 2015 Follows: http://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/ private-content-creating-signed-url-canned-policy.html#private- content-creating-signed-url-canned-policy-pro...
[ "Convenience", "function", "for", "getting", "cloudfront", "signed", "URL", "given", "a", "saved", "URL" ]
train
https://github.com/mitsei/dlkit/blob/445f968a175d61c8d92c0f617a3c17dc1dc7c584/dlkit/aws_adapter/repository/aws_utils.py#L34-L79
mitsei/dlkit
dlkit/aws_adapter/repository/aws_utils.py
remove_file
def remove_file(config_map, file_key): """Convenience function for removing objects from AWS S3 Added by cjshaw@mit.edu, Apr 28, 2015 May 25, 2017: Switch to boto3 """ # for boto3, need to remove any leading / if file_key[0] == '/': file_key = file_key[1::] client = boto3.client( ...
python
def remove_file(config_map, file_key): """Convenience function for removing objects from AWS S3 Added by cjshaw@mit.edu, Apr 28, 2015 May 25, 2017: Switch to boto3 """ # for boto3, need to remove any leading / if file_key[0] == '/': file_key = file_key[1::] client = boto3.client( ...
[ "def", "remove_file", "(", "config_map", ",", "file_key", ")", ":", "# for boto3, need to remove any leading /", "if", "file_key", "[", "0", "]", "==", "'/'", ":", "file_key", "=", "file_key", "[", "1", ":", ":", "]", "client", "=", "boto3", ".", "client", ...
Convenience function for removing objects from AWS S3 Added by cjshaw@mit.edu, Apr 28, 2015 May 25, 2017: Switch to boto3
[ "Convenience", "function", "for", "removing", "objects", "from", "AWS", "S3" ]
train
https://github.com/mitsei/dlkit/blob/445f968a175d61c8d92c0f617a3c17dc1dc7c584/dlkit/aws_adapter/repository/aws_utils.py#L82-L100
mitsei/dlkit
dlkit/json_/grading/searches.py
GradeSystemSearchResults.get_grade_systems
def get_grade_systems(self): """Gets the grade system list resulting from the search. return: (osid.grading.GradeSystemList) - the grade system list raise: IllegalState - list already retrieved *compliance: mandatory -- This method must be implemented.* """ if self.ret...
python
def get_grade_systems(self): """Gets the grade system list resulting from the search. return: (osid.grading.GradeSystemList) - the grade system list raise: IllegalState - list already retrieved *compliance: mandatory -- This method must be implemented.* """ if self.ret...
[ "def", "get_grade_systems", "(", "self", ")", ":", "if", "self", ".", "retrieved", ":", "raise", "errors", ".", "IllegalState", "(", "'List has already been retrieved.'", ")", "self", ".", "retrieved", "=", "True", "return", "objects", ".", "GradeSystemList", "(...
Gets the grade system list resulting from the search. return: (osid.grading.GradeSystemList) - the grade system list raise: IllegalState - list already retrieved *compliance: mandatory -- This method must be implemented.*
[ "Gets", "the", "grade", "system", "list", "resulting", "from", "the", "search", "." ]
train
https://github.com/mitsei/dlkit/blob/445f968a175d61c8d92c0f617a3c17dc1dc7c584/dlkit/json_/grading/searches.py#L97-L108
mitsei/dlkit
dlkit/json_/grading/searches.py
GradeEntrySearchResults.get_grade_entries
def get_grade_entries(self): """Gets the package list resulting from the search. return: (osid.grading.GradeEntryList) - the grade entry list raise: IllegalState - list already retrieved *compliance: mandatory -- This method must be implemented.* """ if self.retrieved:...
python
def get_grade_entries(self): """Gets the package list resulting from the search. return: (osid.grading.GradeEntryList) - the grade entry list raise: IllegalState - list already retrieved *compliance: mandatory -- This method must be implemented.* """ if self.retrieved:...
[ "def", "get_grade_entries", "(", "self", ")", ":", "if", "self", ".", "retrieved", ":", "raise", "errors", ".", "IllegalState", "(", "'List has already been retrieved.'", ")", "self", ".", "retrieved", "=", "True", "return", "objects", ".", "GradeEntryList", "("...
Gets the package list resulting from the search. return: (osid.grading.GradeEntryList) - the grade entry list raise: IllegalState - list already retrieved *compliance: mandatory -- This method must be implemented.*
[ "Gets", "the", "package", "list", "resulting", "from", "the", "search", "." ]
train
https://github.com/mitsei/dlkit/blob/445f968a175d61c8d92c0f617a3c17dc1dc7c584/dlkit/json_/grading/searches.py#L221-L232
mitsei/dlkit
dlkit/json_/grading/searches.py
GradebookColumnSearchResults.get_gradebook_columns
def get_gradebook_columns(self): """Gets the gradebook column list resulting from the search. return: (osid.grading.GradebookColumnList) - the gradebook column list raise: IllegalState - list already retrieved *compliance: mandatory -- This method must be implemented.* ...
python
def get_gradebook_columns(self): """Gets the gradebook column list resulting from the search. return: (osid.grading.GradebookColumnList) - the gradebook column list raise: IllegalState - list already retrieved *compliance: mandatory -- This method must be implemented.* ...
[ "def", "get_gradebook_columns", "(", "self", ")", ":", "if", "self", ".", "retrieved", ":", "raise", "errors", ".", "IllegalState", "(", "'List has already been retrieved.'", ")", "self", ".", "retrieved", "=", "True", "return", "objects", ".", "GradebookColumnLis...
Gets the gradebook column list resulting from the search. return: (osid.grading.GradebookColumnList) - the gradebook column list raise: IllegalState - list already retrieved *compliance: mandatory -- This method must be implemented.*
[ "Gets", "the", "gradebook", "column", "list", "resulting", "from", "the", "search", "." ]
train
https://github.com/mitsei/dlkit/blob/445f968a175d61c8d92c0f617a3c17dc1dc7c584/dlkit/json_/grading/searches.py#L347-L359
mitsei/dlkit
dlkit/json_/grading/searches.py
GradebookSearchResults.get_gradebooks
def get_gradebooks(self): """Gets the gradebook list resulting from the search. return: (osid.grading.GradebookList) - the gradebook list raise: IllegalState - list already retrieved *compliance: mandatory -- This method must be implemented.* """ if self.retrieved: ...
python
def get_gradebooks(self): """Gets the gradebook list resulting from the search. return: (osid.grading.GradebookList) - the gradebook list raise: IllegalState - list already retrieved *compliance: mandatory -- This method must be implemented.* """ if self.retrieved: ...
[ "def", "get_gradebooks", "(", "self", ")", ":", "if", "self", ".", "retrieved", ":", "raise", "errors", ".", "IllegalState", "(", "'List has already been retrieved.'", ")", "self", ".", "retrieved", "=", "True", "return", "objects", ".", "GradebookList", "(", ...
Gets the gradebook list resulting from the search. return: (osid.grading.GradebookList) - the gradebook list raise: IllegalState - list already retrieved *compliance: mandatory -- This method must be implemented.*
[ "Gets", "the", "gradebook", "list", "resulting", "from", "the", "search", "." ]
train
https://github.com/mitsei/dlkit/blob/445f968a175d61c8d92c0f617a3c17dc1dc7c584/dlkit/json_/grading/searches.py#L473-L484
mitsei/dlkit
dlkit/filesystem_adapter/osid/objects.py
OsidList._get_next_object
def _get_next_object(self, object_class): """stub""" try: next_object = OsidList.next(self) except StopIteration: raise except Exception: # Need to specify exceptions here! raise OperationFailed() if isinstance(next_object, dict): ...
python
def _get_next_object(self, object_class): """stub""" try: next_object = OsidList.next(self) except StopIteration: raise except Exception: # Need to specify exceptions here! raise OperationFailed() if isinstance(next_object, dict): ...
[ "def", "_get_next_object", "(", "self", ",", "object_class", ")", ":", "try", ":", "next_object", "=", "OsidList", ".", "next", "(", "self", ")", "except", "StopIteration", ":", "raise", "except", "Exception", ":", "# Need to specify exceptions here!", "raise", ...
stub
[ "stub" ]
train
https://github.com/mitsei/dlkit/blob/445f968a175d61c8d92c0f617a3c17dc1dc7c584/dlkit/filesystem_adapter/osid/objects.py#L754-L764
mitsei/dlkit
dlkit/handcar/relationship/managers.py
RelationshipManager.get_relationship_lookup_session
def get_relationship_lookup_session(self): """Gets the ``OsidSession`` associated with the relationship lookup service. return: (osid.relationship.RelationshipLookupSession) - a ``RelationshipLookupSession`` raise: OperationFailed - unable to complete request raise: Un...
python
def get_relationship_lookup_session(self): """Gets the ``OsidSession`` associated with the relationship lookup service. return: (osid.relationship.RelationshipLookupSession) - a ``RelationshipLookupSession`` raise: OperationFailed - unable to complete request raise: Un...
[ "def", "get_relationship_lookup_session", "(", "self", ")", ":", "if", "not", "self", ".", "supports_relationship_lookup", "(", ")", ":", "raise", "Unimplemented", "(", ")", "try", ":", "from", ".", "import", "sessions", "except", "ImportError", ":", "raise", ...
Gets the ``OsidSession`` associated with the relationship lookup service. return: (osid.relationship.RelationshipLookupSession) - a ``RelationshipLookupSession`` raise: OperationFailed - unable to complete request raise: Unimplemented - ``supports_relationship_lookup()`` is ...
[ "Gets", "the", "OsidSession", "associated", "with", "the", "relationship", "lookup", "service", "." ]
train
https://github.com/mitsei/dlkit/blob/445f968a175d61c8d92c0f617a3c17dc1dc7c584/dlkit/handcar/relationship/managers.py#L337-L360
mitsei/dlkit
dlkit/handcar/relationship/managers.py
RelationshipManager.get_relationship_lookup_session_for_family
def get_relationship_lookup_session_for_family(self, family_id=None): """Gets the ``OsidSession`` associated with the relationship lookup service for the given family. arg: family_id (osid.id.Id): the ``Id`` of the family return: (osid.relationship.RelationshipLookupSession) - a ...
python
def get_relationship_lookup_session_for_family(self, family_id=None): """Gets the ``OsidSession`` associated with the relationship lookup service for the given family. arg: family_id (osid.id.Id): the ``Id`` of the family return: (osid.relationship.RelationshipLookupSession) - a ...
[ "def", "get_relationship_lookup_session_for_family", "(", "self", ",", "family_id", "=", "None", ")", ":", "if", "not", "family_id", ":", "raise", "NullArgument", "if", "not", "self", ".", "supports_relationship_lookup", "(", ")", ":", "raise", "Unimplemented", "(...
Gets the ``OsidSession`` associated with the relationship lookup service for the given family. arg: family_id (osid.id.Id): the ``Id`` of the family return: (osid.relationship.RelationshipLookupSession) - a ``RelationshipLookupSession`` raise: NotFound - no ``Family`` found ...
[ "Gets", "the", "OsidSession", "associated", "with", "the", "relationship", "lookup", "service", "for", "the", "given", "family", "." ]
train
https://github.com/mitsei/dlkit/blob/445f968a175d61c8d92c0f617a3c17dc1dc7c584/dlkit/handcar/relationship/managers.py#L362-L394
mitsei/dlkit
dlkit/handcar/relationship/managers.py
RelationshipManager.get_relationship_admin_session_for_family
def get_relationship_admin_session_for_family(self, family_id=None): """Gets the ``OsidSession`` associated with the relationship administration service for the given family. arg: family_id (osid.id.Id): the ``Id`` of the ``Family`` return: (osid.relationship.RelationshipAdminSession) - a ...
python
def get_relationship_admin_session_for_family(self, family_id=None): """Gets the ``OsidSession`` associated with the relationship administration service for the given family. arg: family_id (osid.id.Id): the ``Id`` of the ``Family`` return: (osid.relationship.RelationshipAdminSession) - a ...
[ "def", "get_relationship_admin_session_for_family", "(", "self", ",", "family_id", "=", "None", ")", ":", "if", "not", "family_id", ":", "raise", "NullArgument", "if", "not", "self", ".", "supports_relationship_admin", "(", ")", ":", "raise", "Unimplemented", "(",...
Gets the ``OsidSession`` associated with the relationship administration service for the given family. arg: family_id (osid.id.Id): the ``Id`` of the ``Family`` return: (osid.relationship.RelationshipAdminSession) - a ``RelationshipAdminSession`` raise: NotFound - no family ...
[ "Gets", "the", "OsidSession", "associated", "with", "the", "relationship", "administration", "service", "for", "the", "given", "family", "." ]
train
https://github.com/mitsei/dlkit/blob/445f968a175d61c8d92c0f617a3c17dc1dc7c584/dlkit/handcar/relationship/managers.py#L535-L567
mitsei/dlkit
dlkit/handcar/relationship/managers.py
RelationshipManager.get_family_lookup_session
def get_family_lookup_session(self): """Gets the ``OsidSession`` associated with the family lookup service. return: (osid.relationship.FamilyLookupSession) - a ``FamilyLookupSession`` raise: OperationFailed - unable to complete request raise: Unimplemented - ``supports...
python
def get_family_lookup_session(self): """Gets the ``OsidSession`` associated with the family lookup service. return: (osid.relationship.FamilyLookupSession) - a ``FamilyLookupSession`` raise: OperationFailed - unable to complete request raise: Unimplemented - ``supports...
[ "def", "get_family_lookup_session", "(", "self", ")", ":", "if", "not", "self", ".", "supports_family_lookup", "(", ")", ":", "raise", "Unimplemented", "(", ")", "try", ":", "from", ".", "import", "sessions", "except", "ImportError", ":", "raise", "OperationFa...
Gets the ``OsidSession`` associated with the family lookup service. return: (osid.relationship.FamilyLookupSession) - a ``FamilyLookupSession`` raise: OperationFailed - unable to complete request raise: Unimplemented - ``supports_family_lookup()`` is ``false`` ...
[ "Gets", "the", "OsidSession", "associated", "with", "the", "family", "lookup", "service", "." ]
train
https://github.com/mitsei/dlkit/blob/445f968a175d61c8d92c0f617a3c17dc1dc7c584/dlkit/handcar/relationship/managers.py#L672-L694
mitsei/dlkit
dlkit/handcar/relationship/managers.py
RelationshipManager.get_family_admin_session
def get_family_admin_session(self): """Gets the ``OsidSession`` associated with the family administrative service. return: (osid.relationship.FamilyAdminSession) - a ``FamilyAdminSession`` raise: OperationFailed - unable to complete request raise: Unimplemented - ``sup...
python
def get_family_admin_session(self): """Gets the ``OsidSession`` associated with the family administrative service. return: (osid.relationship.FamilyAdminSession) - a ``FamilyAdminSession`` raise: OperationFailed - unable to complete request raise: Unimplemented - ``sup...
[ "def", "get_family_admin_session", "(", "self", ")", ":", "if", "not", "self", ".", "supports_family_admin", "(", ")", ":", "raise", "Unimplemented", "(", ")", "try", ":", "from", ".", "import", "sessions", "except", "ImportError", ":", "raise", "OperationFail...
Gets the ``OsidSession`` associated with the family administrative service. return: (osid.relationship.FamilyAdminSession) - a ``FamilyAdminSession`` raise: OperationFailed - unable to complete request raise: Unimplemented - ``supports_family_admin()`` is ``false`` *co...
[ "Gets", "the", "OsidSession", "associated", "with", "the", "family", "administrative", "service", "." ]
train
https://github.com/mitsei/dlkit/blob/445f968a175d61c8d92c0f617a3c17dc1dc7c584/dlkit/handcar/relationship/managers.py#L743-L764
mitsei/dlkit
dlkit/handcar/relationship/managers.py
RelationshipProxyManager.get_relationship_lookup_session_for_family
def get_relationship_lookup_session_for_family(self, family_id=None, proxy=None, *args, **kwargs): """Gets the ``OsidSession`` associated with the relationship lookup service for the given family. arg: family_id (osid.id.Id): the ``Id`` of the family arg: proxy (osid.proxy.Proxy): a proxy...
python
def get_relationship_lookup_session_for_family(self, family_id=None, proxy=None, *args, **kwargs): """Gets the ``OsidSession`` associated with the relationship lookup service for the given family. arg: family_id (osid.id.Id): the ``Id`` of the family arg: proxy (osid.proxy.Proxy): a proxy...
[ "def", "get_relationship_lookup_session_for_family", "(", "self", ",", "family_id", "=", "None", ",", "proxy", "=", "None", ",", "*", "args", ",", "*", "*", "kwargs", ")", ":", "if", "not", "family_id", ":", "raise", "NullArgument", "if", "not", "self", "....
Gets the ``OsidSession`` associated with the relationship lookup service for the given family. arg: family_id (osid.id.Id): the ``Id`` of the family arg: proxy (osid.proxy.Proxy): a proxy return: (osid.relationship.RelationshipLookupSession) - a ``RelationshipLookupSession...
[ "Gets", "the", "OsidSession", "associated", "with", "the", "relationship", "lookup", "service", "for", "the", "given", "family", "." ]
train
https://github.com/mitsei/dlkit/blob/445f968a175d61c8d92c0f617a3c17dc1dc7c584/dlkit/handcar/relationship/managers.py#L925-L957
mitsei/dlkit
dlkit/handcar/relationship/managers.py
RelationshipProxyManager.get_relationship_query_session
def get_relationship_query_session(self, proxy=None): """Gets the ``OsidSession`` associated with the relationship query service. arg: proxy (osid.proxy.Proxy): a proxy return: (osid.relationship.RelationshipQuerySession) - a ``RelationshipQuerySession`` raise: NullA...
python
def get_relationship_query_session(self, proxy=None): """Gets the ``OsidSession`` associated with the relationship query service. arg: proxy (osid.proxy.Proxy): a proxy return: (osid.relationship.RelationshipQuerySession) - a ``RelationshipQuerySession`` raise: NullA...
[ "def", "get_relationship_query_session", "(", "self", ",", "proxy", "=", "None", ")", ":", "if", "not", "self", ".", "supports_relationship_query", "(", ")", ":", "raise", "Unimplemented", "(", ")", "try", ":", "from", ".", "import", "sessions", "except", "I...
Gets the ``OsidSession`` associated with the relationship query service. arg: proxy (osid.proxy.Proxy): a proxy return: (osid.relationship.RelationshipQuerySession) - a ``RelationshipQuerySession`` raise: NullArgument - ``proxy`` is ``null`` raise: OperationFailed -...
[ "Gets", "the", "OsidSession", "associated", "with", "the", "relationship", "query", "service", "." ]
train
https://github.com/mitsei/dlkit/blob/445f968a175d61c8d92c0f617a3c17dc1dc7c584/dlkit/handcar/relationship/managers.py#L959-L983
mitsei/dlkit
dlkit/handcar/relationship/managers.py
RelationshipProxyManager.get_relationship_query_session_for_family
def get_relationship_query_session_for_family(self, family_id=None, proxy=None): """Gets the ``OsidSession`` associated with the relationship query service for the given family. arg: family_id (osid.id.Id): the ``Id`` of the family arg: proxy (osid.proxy.Proxy): a proxy return: (o...
python
def get_relationship_query_session_for_family(self, family_id=None, proxy=None): """Gets the ``OsidSession`` associated with the relationship query service for the given family. arg: family_id (osid.id.Id): the ``Id`` of the family arg: proxy (osid.proxy.Proxy): a proxy return: (o...
[ "def", "get_relationship_query_session_for_family", "(", "self", ",", "family_id", "=", "None", ",", "proxy", "=", "None", ")", ":", "if", "not", "family_id", ":", "raise", "NullArgument", "if", "not", "self", ".", "supports_relationship_query", "(", ")", ":", ...
Gets the ``OsidSession`` associated with the relationship query service for the given family. arg: family_id (osid.id.Id): the ``Id`` of the family arg: proxy (osid.proxy.Proxy): a proxy return: (osid.relationship.RelationshipQuerySession) - a ``RelationshipQuerySession`` ...
[ "Gets", "the", "OsidSession", "associated", "with", "the", "relationship", "query", "service", "for", "the", "given", "family", "." ]
train
https://github.com/mitsei/dlkit/blob/445f968a175d61c8d92c0f617a3c17dc1dc7c584/dlkit/handcar/relationship/managers.py#L985-L1017
mitsei/dlkit
dlkit/handcar/relationship/managers.py
RelationshipProxyManager.get_relationship_search_session
def get_relationship_search_session(self, proxy=None): """Gets the ``OsidSession`` associated with the relationship search service. arg: proxy (osid.proxy.Proxy): a proxy return: (osid.relationship.RelationshipSearchSession) - a ``RelationshipSearchSession`` raise: N...
python
def get_relationship_search_session(self, proxy=None): """Gets the ``OsidSession`` associated with the relationship search service. arg: proxy (osid.proxy.Proxy): a proxy return: (osid.relationship.RelationshipSearchSession) - a ``RelationshipSearchSession`` raise: N...
[ "def", "get_relationship_search_session", "(", "self", ",", "proxy", "=", "None", ")", ":", "if", "not", "self", ".", "supports_relationship_search", "(", ")", ":", "raise", "Unimplemented", "(", ")", "try", ":", "from", ".", "import", "sessions", "except", ...
Gets the ``OsidSession`` associated with the relationship search service. arg: proxy (osid.proxy.Proxy): a proxy return: (osid.relationship.RelationshipSearchSession) - a ``RelationshipSearchSession`` raise: NullArgument - ``proxy`` is ``null`` raise: OperationFaile...
[ "Gets", "the", "OsidSession", "associated", "with", "the", "relationship", "search", "service", "." ]
train
https://github.com/mitsei/dlkit/blob/445f968a175d61c8d92c0f617a3c17dc1dc7c584/dlkit/handcar/relationship/managers.py#L1019-L1044
mitsei/dlkit
dlkit/handcar/relationship/managers.py
RelationshipProxyManager.get_relationship_search_session_for_family
def get_relationship_search_session_for_family(self, family_id=None, proxy=None): """Gets the ``OsidSession`` associated with the relationship search service for the given family. arg: family_id (osid.id.Id): the ``Id`` of the family arg: proxy (osid.proxy.Proxy): a proxy return: ...
python
def get_relationship_search_session_for_family(self, family_id=None, proxy=None): """Gets the ``OsidSession`` associated with the relationship search service for the given family. arg: family_id (osid.id.Id): the ``Id`` of the family arg: proxy (osid.proxy.Proxy): a proxy return: ...
[ "def", "get_relationship_search_session_for_family", "(", "self", ",", "family_id", "=", "None", ",", "proxy", "=", "None", ")", ":", "if", "not", "family_id", ":", "raise", "NullArgument", "if", "not", "self", ".", "supports_relationship_search", "(", ")", ":",...
Gets the ``OsidSession`` associated with the relationship search service for the given family. arg: family_id (osid.id.Id): the ``Id`` of the family arg: proxy (osid.proxy.Proxy): a proxy return: (osid.relationship.RelationshipSearchSession) - a ``RelationshipSearchSession...
[ "Gets", "the", "OsidSession", "associated", "with", "the", "relationship", "search", "service", "for", "the", "given", "family", "." ]
train
https://github.com/mitsei/dlkit/blob/445f968a175d61c8d92c0f617a3c17dc1dc7c584/dlkit/handcar/relationship/managers.py#L1046-L1078
mitsei/dlkit
dlkit/handcar/relationship/managers.py
RelationshipProxyManager.get_relationship_admin_session
def get_relationship_admin_session(self, proxy=None): """Gets the ``OsidSession`` associated with the relationship administration service. arg: proxy (osid.proxy.Proxy): a proxy return: (osid.relationship.RelationshipAdminSession) - a ``RelationshipAdminSession`` rais...
python
def get_relationship_admin_session(self, proxy=None): """Gets the ``OsidSession`` associated with the relationship administration service. arg: proxy (osid.proxy.Proxy): a proxy return: (osid.relationship.RelationshipAdminSession) - a ``RelationshipAdminSession`` rais...
[ "def", "get_relationship_admin_session", "(", "self", ",", "proxy", "=", "None", ")", ":", "if", "not", "self", ".", "supports_relationship_admin", "(", ")", ":", "raise", "Unimplemented", "(", ")", "try", ":", "from", ".", "import", "sessions", "except", "I...
Gets the ``OsidSession`` associated with the relationship administration service. arg: proxy (osid.proxy.Proxy): a proxy return: (osid.relationship.RelationshipAdminSession) - a ``RelationshipAdminSession`` raise: NullArgument - ``proxy`` is ``null`` raise: Operatio...
[ "Gets", "the", "OsidSession", "associated", "with", "the", "relationship", "administration", "service", "." ]
train
https://github.com/mitsei/dlkit/blob/445f968a175d61c8d92c0f617a3c17dc1dc7c584/dlkit/handcar/relationship/managers.py#L1080-L1104
mitsei/dlkit
dlkit/handcar/relationship/managers.py
RelationshipProxyManager.get_relationship_admin_session_for_family
def get_relationship_admin_session_for_family(self, family_id=None, proxy=None, *args, **kwargs): """Gets the ``OsidSession`` associated with the relationship administration service for the given family. arg: family_id (osid.id.Id): the ``Id`` of the family arg: proxy (osid.proxy.Proxy): ...
python
def get_relationship_admin_session_for_family(self, family_id=None, proxy=None, *args, **kwargs): """Gets the ``OsidSession`` associated with the relationship administration service for the given family. arg: family_id (osid.id.Id): the ``Id`` of the family arg: proxy (osid.proxy.Proxy): ...
[ "def", "get_relationship_admin_session_for_family", "(", "self", ",", "family_id", "=", "None", ",", "proxy", "=", "None", ",", "*", "args", ",", "*", "*", "kwargs", ")", ":", "if", "not", "family_id", ":", "raise", "NullArgument", "if", "not", "self", "."...
Gets the ``OsidSession`` associated with the relationship administration service for the given family. arg: family_id (osid.id.Id): the ``Id`` of the family arg: proxy (osid.proxy.Proxy): a proxy return: (osid.relationship.RelationshipAdminSession) - a ``RelationshipAdminS...
[ "Gets", "the", "OsidSession", "associated", "with", "the", "relationship", "administration", "service", "for", "the", "given", "family", "." ]
train
https://github.com/mitsei/dlkit/blob/445f968a175d61c8d92c0f617a3c17dc1dc7c584/dlkit/handcar/relationship/managers.py#L1106-L1138
mitsei/dlkit
dlkit/handcar/relationship/managers.py
RelationshipProxyManager.get_relationship_family_session
def get_relationship_family_session(self, proxy=None): """Gets the ``OsidSession`` to lookup relationship/family mappings. arg: proxy (osid.proxy.Proxy): a proxy return: (osid.relationship.RelationshipFamilySession) - a ``RelationshipFamilySession`` raise: NullArgume...
python
def get_relationship_family_session(self, proxy=None): """Gets the ``OsidSession`` to lookup relationship/family mappings. arg: proxy (osid.proxy.Proxy): a proxy return: (osid.relationship.RelationshipFamilySession) - a ``RelationshipFamilySession`` raise: NullArgume...
[ "def", "get_relationship_family_session", "(", "self", ",", "proxy", "=", "None", ")", ":", "if", "not", "self", ".", "supports_relationship_family", "(", ")", ":", "raise", "Unimplemented", "(", ")", "try", ":", "from", ".", "import", "sessions", "except", ...
Gets the ``OsidSession`` to lookup relationship/family mappings. arg: proxy (osid.proxy.Proxy): a proxy return: (osid.relationship.RelationshipFamilySession) - a ``RelationshipFamilySession`` raise: NullArgument - ``proxy`` is ``null`` raise: OperationFailed - unabl...
[ "Gets", "the", "OsidSession", "to", "lookup", "relationship", "/", "family", "mappings", "." ]
train
https://github.com/mitsei/dlkit/blob/445f968a175d61c8d92c0f617a3c17dc1dc7c584/dlkit/handcar/relationship/managers.py#L1180-L1205
mitsei/dlkit
dlkit/handcar/relationship/managers.py
RelationshipProxyManager.get_relationship_family_assignment_session
def get_relationship_family_assignment_session(self, proxy=None): """Gets the ``OsidSession`` associated with assigning relationships to families. arg: proxy (osid.proxy.Proxy): a proxy return: (osid.relationship.RelationshipFamilyAssignmentSession) - a ``RelationshipFamilyAs...
python
def get_relationship_family_assignment_session(self, proxy=None): """Gets the ``OsidSession`` associated with assigning relationships to families. arg: proxy (osid.proxy.Proxy): a proxy return: (osid.relationship.RelationshipFamilyAssignmentSession) - a ``RelationshipFamilyAs...
[ "def", "get_relationship_family_assignment_session", "(", "self", ",", "proxy", "=", "None", ")", ":", "if", "not", "self", ".", "supports_relationship_family_assignment", "(", ")", ":", "raise", "Unimplemented", "(", ")", "try", ":", "from", ".", "import", "ses...
Gets the ``OsidSession`` associated with assigning relationships to families. arg: proxy (osid.proxy.Proxy): a proxy return: (osid.relationship.RelationshipFamilyAssignmentSession) - a ``RelationshipFamilyAssignmentSession`` raise: NullArgument - ``proxy`` is ``null`` ...
[ "Gets", "the", "OsidSession", "associated", "with", "assigning", "relationships", "to", "families", "." ]
train
https://github.com/mitsei/dlkit/blob/445f968a175d61c8d92c0f617a3c17dc1dc7c584/dlkit/handcar/relationship/managers.py#L1207-L1233
mitsei/dlkit
dlkit/handcar/relationship/managers.py
RelationshipProxyManager.get_family_lookup_session
def get_family_lookup_session(self, proxy=None, *args, **kwargs): """Gets the ``OsidSession`` associated with the family lookup service. arg: proxy (osid.proxy.Proxy): a proxy return: (osid.relationship.FamilyLookupSession) - a ``FamilyLookupSession`` raise: NullArgu...
python
def get_family_lookup_session(self, proxy=None, *args, **kwargs): """Gets the ``OsidSession`` associated with the family lookup service. arg: proxy (osid.proxy.Proxy): a proxy return: (osid.relationship.FamilyLookupSession) - a ``FamilyLookupSession`` raise: NullArgu...
[ "def", "get_family_lookup_session", "(", "self", ",", "proxy", "=", "None", ",", "*", "args", ",", "*", "*", "kwargs", ")", ":", "if", "not", "self", ".", "supports_family_lookup", "(", ")", ":", "raise", "Unimplemented", "(", ")", "try", ":", "from", ...
Gets the ``OsidSession`` associated with the family lookup service. arg: proxy (osid.proxy.Proxy): a proxy return: (osid.relationship.FamilyLookupSession) - a ``FamilyLookupSession`` raise: NullArgument - ``proxy`` is ``null`` raise: OperationFailed - unable to comp...
[ "Gets", "the", "OsidSession", "associated", "with", "the", "family", "lookup", "service", "." ]
train
https://github.com/mitsei/dlkit/blob/445f968a175d61c8d92c0f617a3c17dc1dc7c584/dlkit/handcar/relationship/managers.py#L1253-L1277
mitsei/dlkit
dlkit/handcar/relationship/managers.py
RelationshipProxyManager.get_family_query_session
def get_family_query_session(self, proxy=None): """Gets the ``OsidSession`` associated with the family query service. arg: proxy (osid.proxy.Proxy): a proxy return: (osid.relationship.FamilyQuerySession) - a ``FamilyQuerySession`` raise: NullArgument - ``proxy`` is `...
python
def get_family_query_session(self, proxy=None): """Gets the ``OsidSession`` associated with the family query service. arg: proxy (osid.proxy.Proxy): a proxy return: (osid.relationship.FamilyQuerySession) - a ``FamilyQuerySession`` raise: NullArgument - ``proxy`` is `...
[ "def", "get_family_query_session", "(", "self", ",", "proxy", "=", "None", ")", ":", "if", "not", "self", ".", "supports_family_query", "(", ")", ":", "raise", "Unimplemented", "(", ")", "try", ":", "from", ".", "import", "sessions", "except", "ImportError",...
Gets the ``OsidSession`` associated with the family query service. arg: proxy (osid.proxy.Proxy): a proxy return: (osid.relationship.FamilyQuerySession) - a ``FamilyQuerySession`` raise: NullArgument - ``proxy`` is ``null`` raise: OperationFailed - unable to complet...
[ "Gets", "the", "OsidSession", "associated", "with", "the", "family", "query", "service", "." ]
train
https://github.com/mitsei/dlkit/blob/445f968a175d61c8d92c0f617a3c17dc1dc7c584/dlkit/handcar/relationship/managers.py#L1279-L1302
mitsei/dlkit
dlkit/handcar/relationship/managers.py
RelationshipProxyManager.get_family_search_session
def get_family_search_session(self, proxy=None): """Gets the ``OsidSession`` associated with the family search service. arg: proxy (osid.proxy.Proxy): a proxy return: (osid.relationship.FamilySearchSession) - a ``FamilySearchSession`` raise: NullArgument - ``proxy`` ...
python
def get_family_search_session(self, proxy=None): """Gets the ``OsidSession`` associated with the family search service. arg: proxy (osid.proxy.Proxy): a proxy return: (osid.relationship.FamilySearchSession) - a ``FamilySearchSession`` raise: NullArgument - ``proxy`` ...
[ "def", "get_family_search_session", "(", "self", ",", "proxy", "=", "None", ")", ":", "if", "not", "self", ".", "supports_family_search", "(", ")", ":", "raise", "Unimplemented", "(", ")", "try", ":", "from", ".", "import", "sessions", "except", "ImportError...
Gets the ``OsidSession`` associated with the family search service. arg: proxy (osid.proxy.Proxy): a proxy return: (osid.relationship.FamilySearchSession) - a ``FamilySearchSession`` raise: NullArgument - ``proxy`` is ``null`` raise: OperationFailed - unable to comp...
[ "Gets", "the", "OsidSession", "associated", "with", "the", "family", "search", "service", "." ]
train
https://github.com/mitsei/dlkit/blob/445f968a175d61c8d92c0f617a3c17dc1dc7c584/dlkit/handcar/relationship/managers.py#L1304-L1328
mitsei/dlkit
dlkit/handcar/relationship/managers.py
RelationshipProxyManager.get_family_hierarchy_session
def get_family_hierarchy_session(self, proxy=None): """Gets the ``OsidSession`` associated with the family hierarchy service. arg: proxy (osid.proxy.Proxy): a proxy return: (osid.relationship.FamilyHierarchySession) - a ``FamilyHierarchySession`` for families raise: ...
python
def get_family_hierarchy_session(self, proxy=None): """Gets the ``OsidSession`` associated with the family hierarchy service. arg: proxy (osid.proxy.Proxy): a proxy return: (osid.relationship.FamilyHierarchySession) - a ``FamilyHierarchySession`` for families raise: ...
[ "def", "get_family_hierarchy_session", "(", "self", ",", "proxy", "=", "None", ")", ":", "if", "not", "self", ".", "supports_family_hierarchy", "(", ")", ":", "raise", "Unimplemented", "(", ")", "try", ":", "from", ".", "import", "sessions", "except", "Impor...
Gets the ``OsidSession`` associated with the family hierarchy service. arg: proxy (osid.proxy.Proxy): a proxy return: (osid.relationship.FamilyHierarchySession) - a ``FamilyHierarchySession`` for families raise: NullArgument - ``proxy`` is ``null`` raise: OperationF...
[ "Gets", "the", "OsidSession", "associated", "with", "the", "family", "hierarchy", "service", "." ]
train
https://github.com/mitsei/dlkit/blob/445f968a175d61c8d92c0f617a3c17dc1dc7c584/dlkit/handcar/relationship/managers.py#L1373-L1397
mitsei/dlkit
dlkit/handcar/relationship/managers.py
RelationshipProxyManager.get_family_hierarchy_design_session
def get_family_hierarchy_design_session(self, proxy=None): """Gets the ``OsidSession`` associated with the family hierarchy design service. arg: proxy (osid.proxy.Proxy): a proxy return: (osid.relationship.FamilyHierarchyDesignSession) - a ``HierarchyDesignSession`` for famil...
python
def get_family_hierarchy_design_session(self, proxy=None): """Gets the ``OsidSession`` associated with the family hierarchy design service. arg: proxy (osid.proxy.Proxy): a proxy return: (osid.relationship.FamilyHierarchyDesignSession) - a ``HierarchyDesignSession`` for famil...
[ "def", "get_family_hierarchy_design_session", "(", "self", ",", "proxy", "=", "None", ")", ":", "if", "not", "self", ".", "supports_family_hierarchy_design", "(", ")", ":", "raise", "Unimplemented", "(", ")", "try", ":", "from", ".", "import", "sessions", "exc...
Gets the ``OsidSession`` associated with the family hierarchy design service. arg: proxy (osid.proxy.Proxy): a proxy return: (osid.relationship.FamilyHierarchyDesignSession) - a ``HierarchyDesignSession`` for families raise: NullArgument - ``proxy`` is ``null`` raise...
[ "Gets", "the", "OsidSession", "associated", "with", "the", "family", "hierarchy", "design", "service", "." ]
train
https://github.com/mitsei/dlkit/blob/445f968a175d61c8d92c0f617a3c17dc1dc7c584/dlkit/handcar/relationship/managers.py#L1399-L1423
mitsei/dlkit
dlkit/records/osid/base_records.py
AssetUtils._get_asset_content
def _get_asset_content(self, asset_id, asset_content_type_str=None, asset_content_id=None): """stub""" rm = self.my_osid_object._get_provider_manager('REPOSITORY') if 'assignedBankIds' in self.my_osid_object._my_map: if self.my_osid_object._proxy is not None: als = rm...
python
def _get_asset_content(self, asset_id, asset_content_type_str=None, asset_content_id=None): """stub""" rm = self.my_osid_object._get_provider_manager('REPOSITORY') if 'assignedBankIds' in self.my_osid_object._my_map: if self.my_osid_object._proxy is not None: als = rm...
[ "def", "_get_asset_content", "(", "self", ",", "asset_id", ",", "asset_content_type_str", "=", "None", ",", "asset_content_id", "=", "None", ")", ":", "rm", "=", "self", ".", "my_osid_object", ".", "_get_provider_manager", "(", "'REPOSITORY'", ")", "if", "'assig...
stub
[ "stub" ]
train
https://github.com/mitsei/dlkit/blob/445f968a175d61c8d92c0f617a3c17dc1dc7c584/dlkit/records/osid/base_records.py#L52-L97
mitsei/dlkit
dlkit/records/osid/base_records.py
AssetUtils.create_asset
def create_asset(self, asset_data=None, asset_type=None, asset_content_type=None, asset_content_record_types=None, display_name='', description=''): """stub""" # This method crea...
python
def create_asset(self, asset_data=None, asset_type=None, asset_content_type=None, asset_content_record_types=None, display_name='', description=''): """stub""" # This method crea...
[ "def", "create_asset", "(", "self", ",", "asset_data", "=", "None", ",", "asset_type", "=", "None", ",", "asset_content_type", "=", "None", ",", "asset_content_record_types", "=", "None", ",", "display_name", "=", "''", ",", "description", "=", "''", ")", ":...
stub
[ "stub" ]
train
https://github.com/mitsei/dlkit/blob/445f968a175d61c8d92c0f617a3c17dc1dc7c584/dlkit/records/osid/base_records.py#L99-L114
mitsei/dlkit
dlkit/records/osid/base_records.py
AssetUtils._set_asset
def _set_asset(self, asset_data=None, asset_type=None, asset_content_type=None, asset_content_record_types=None, display_name='', description=''): """stub""" # This method should be deprecat...
python
def _set_asset(self, asset_data=None, asset_type=None, asset_content_type=None, asset_content_record_types=None, display_name='', description=''): """stub""" # This method should be deprecat...
[ "def", "_set_asset", "(", "self", ",", "asset_data", "=", "None", ",", "asset_type", "=", "None", ",", "asset_content_type", "=", "None", ",", "asset_content_record_types", "=", "None", ",", "display_name", "=", "''", ",", "description", "=", "''", ")", ":",...
stub
[ "stub" ]
train
https://github.com/mitsei/dlkit/blob/445f968a175d61c8d92c0f617a3c17dc1dc7c584/dlkit/records/osid/base_records.py#L116-L184
mitsei/dlkit
dlkit/records/osid/base_records.py
AssetUtils.add_content_to_asset
def add_content_to_asset(self, asset_id, asset_data=None, asset_url=None, asset_content_type=None, asset_label=None): """stub""" # This method creates a new As...
python
def add_content_to_asset(self, asset_id, asset_data=None, asset_url=None, asset_content_type=None, asset_label=None): """stub""" # This method creates a new As...
[ "def", "add_content_to_asset", "(", "self", ",", "asset_id", ",", "asset_data", "=", "None", ",", "asset_url", "=", "None", ",", "asset_content_type", "=", "None", ",", "asset_label", "=", "None", ")", ":", "# This method creates a new AssetContent related to the give...
stub
[ "stub" ]
train
https://github.com/mitsei/dlkit/blob/445f968a175d61c8d92c0f617a3c17dc1dc7c584/dlkit/records/osid/base_records.py#L186-L198
mitsei/dlkit
dlkit/records/osid/base_records.py
AssetUtils._add_asset_content
def _add_asset_content(self, asset_id, asset_data=None, asset_url=None, asset_content_type=None, asset_label=None): """stub""" rm = self.my_osid_object_form._get_provide...
python
def _add_asset_content(self, asset_id, asset_data=None, asset_url=None, asset_content_type=None, asset_label=None): """stub""" rm = self.my_osid_object_form._get_provide...
[ "def", "_add_asset_content", "(", "self", ",", "asset_id", ",", "asset_data", "=", "None", ",", "asset_url", "=", "None", ",", "asset_content_type", "=", "None", ",", "asset_label", "=", "None", ")", ":", "rm", "=", "self", ".", "my_osid_object_form", ".", ...
stub
[ "stub" ]
train
https://github.com/mitsei/dlkit/blob/445f968a175d61c8d92c0f617a3c17dc1dc7c584/dlkit/records/osid/base_records.py#L203-L247
mitsei/dlkit
dlkit/records/osid/base_records.py
ProvenanceRecord.get_creation_time
def get_creation_time(self): """stub""" ct = self.my_osid_object._my_map['creationTime'] return DateTime(ct.year, ct.month, ct.day, ct.hour, ct.minute, ct.second, ...
python
def get_creation_time(self): """stub""" ct = self.my_osid_object._my_map['creationTime'] return DateTime(ct.year, ct.month, ct.day, ct.hour, ct.minute, ct.second, ...
[ "def", "get_creation_time", "(", "self", ")", ":", "ct", "=", "self", ".", "my_osid_object", ".", "_my_map", "[", "'creationTime'", "]", "return", "DateTime", "(", "ct", ".", "year", ",", "ct", ".", "month", ",", "ct", ".", "day", ",", "ct", ".", "ho...
stub
[ "stub" ]
train
https://github.com/mitsei/dlkit/blob/445f968a175d61c8d92c0f617a3c17dc1dc7c584/dlkit/records/osid/base_records.py#L431-L440
mitsei/dlkit
dlkit/records/osid/base_records.py
ProvenanceRecord._update_object_map
def _update_object_map(self, obj_map): """stub""" creation_time = obj_map['creationTime'] obj_map['creationTime'] = dict() obj_map['creationTime']['year'] = creation_time.year obj_map['creationTime']['month'] = creation_time.month obj_map['creationTime']['day'] = creation...
python
def _update_object_map(self, obj_map): """stub""" creation_time = obj_map['creationTime'] obj_map['creationTime'] = dict() obj_map['creationTime']['year'] = creation_time.year obj_map['creationTime']['month'] = creation_time.month obj_map['creationTime']['day'] = creation...
[ "def", "_update_object_map", "(", "self", ",", "obj_map", ")", ":", "creation_time", "=", "obj_map", "[", "'creationTime'", "]", "obj_map", "[", "'creationTime'", "]", "=", "dict", "(", ")", "obj_map", "[", "'creationTime'", "]", "[", "'year'", "]", "=", "...
stub
[ "stub" ]
train
https://github.com/mitsei/dlkit/blob/445f968a175d61c8d92c0f617a3c17dc1dc7c584/dlkit/records/osid/base_records.py#L470-L480
mitsei/dlkit
dlkit/records/osid/base_records.py
ProvenanceFormRecord._init_map
def _init_map(self): """stub""" self.my_osid_object_form._my_map['provenanceId'] = \ self._provenance_metadata['default_object_values'][0] if not self.my_osid_object_form.is_for_update(): if 'effectiveAgentId' in self.my_osid_object_form._kwargs: self.my_o...
python
def _init_map(self): """stub""" self.my_osid_object_form._my_map['provenanceId'] = \ self._provenance_metadata['default_object_values'][0] if not self.my_osid_object_form.is_for_update(): if 'effectiveAgentId' in self.my_osid_object_form._kwargs: self.my_o...
[ "def", "_init_map", "(", "self", ")", ":", "self", ".", "my_osid_object_form", ".", "_my_map", "[", "'provenanceId'", "]", "=", "self", ".", "_provenance_metadata", "[", "'default_object_values'", "]", "[", "0", "]", "if", "not", "self", ".", "my_osid_object_f...
stub
[ "stub" ]
train
https://github.com/mitsei/dlkit/blob/445f968a175d61c8d92c0f617a3c17dc1dc7c584/dlkit/records/osid/base_records.py#L494-L505
mitsei/dlkit
dlkit/records/osid/base_records.py
ProvenanceFormRecord._init_metadata
def _init_metadata(self): """stub""" self._provenance_metadata = { 'element_id': Id(self.my_osid_object_form._authority, self.my_osid_object_form._namespace, 'provenanceId'), 'element_label': 'provenanceId', 'i...
python
def _init_metadata(self): """stub""" self._provenance_metadata = { 'element_id': Id(self.my_osid_object_form._authority, self.my_osid_object_form._namespace, 'provenanceId'), 'element_label': 'provenanceId', 'i...
[ "def", "_init_metadata", "(", "self", ")", ":", "self", ".", "_provenance_metadata", "=", "{", "'element_id'", ":", "Id", "(", "self", ".", "my_osid_object_form", ".", "_authority", ",", "self", ".", "my_osid_object_form", ".", "_namespace", ",", "'provenanceId'...
stub
[ "stub" ]
train
https://github.com/mitsei/dlkit/blob/445f968a175d61c8d92c0f617a3c17dc1dc7c584/dlkit/records/osid/base_records.py#L507-L524
mitsei/dlkit
dlkit/records/osid/base_records.py
ProvenanceFormRecord.set_provenance
def set_provenance(self, provenance_id): """stub""" if not self.my_osid_object_form._is_valid_string( provenance_id, self.get_provenance_metadata()): raise InvalidArgument('provenanceId') self.my_osid_object_form._my_map['provenanceId'] = provenance_id
python
def set_provenance(self, provenance_id): """stub""" if not self.my_osid_object_form._is_valid_string( provenance_id, self.get_provenance_metadata()): raise InvalidArgument('provenanceId') self.my_osid_object_form._my_map['provenanceId'] = provenance_id
[ "def", "set_provenance", "(", "self", ",", "provenance_id", ")", ":", "if", "not", "self", ".", "my_osid_object_form", ".", "_is_valid_string", "(", "provenance_id", ",", "self", ".", "get_provenance_metadata", "(", ")", ")", ":", "raise", "InvalidArgument", "("...
stub
[ "stub" ]
train
https://github.com/mitsei/dlkit/blob/445f968a175d61c8d92c0f617a3c17dc1dc7c584/dlkit/records/osid/base_records.py#L530-L535
mitsei/dlkit
dlkit/records/osid/base_records.py
ResourceFormRecord._init_metadata
def _init_metadata(self): """stub""" self._resource_id_metadata = { 'element_id': Id(self.my_osid_object_form._authority, self.my_osid_object_form._namespace, 'resource_id'), 'element_label': 'Resource Id', 'in...
python
def _init_metadata(self): """stub""" self._resource_id_metadata = { 'element_id': Id(self.my_osid_object_form._authority, self.my_osid_object_form._namespace, 'resource_id'), 'element_label': 'Resource Id', 'in...
[ "def", "_init_metadata", "(", "self", ")", ":", "self", ".", "_resource_id_metadata", "=", "{", "'element_id'", ":", "Id", "(", "self", ".", "my_osid_object_form", ".", "_authority", ",", "self", ".", "my_osid_object_form", ".", "_namespace", ",", "'resource_id'...
stub
[ "stub" ]
train
https://github.com/mitsei/dlkit/blob/445f968a175d61c8d92c0f617a3c17dc1dc7c584/dlkit/records/osid/base_records.py#L583-L598
mitsei/dlkit
dlkit/records/osid/base_records.py
ResourceFormRecord.set_resource_id
def set_resource_id(self, resource_id=None): """stub""" if resource_id is None: raise NullArgument() if self.get_resource_id_metadata().is_read_only(): raise NoAccess() if not self.my_osid_object_form._is_valid_id( resource_id): raise I...
python
def set_resource_id(self, resource_id=None): """stub""" if resource_id is None: raise NullArgument() if self.get_resource_id_metadata().is_read_only(): raise NoAccess() if not self.my_osid_object_form._is_valid_id( resource_id): raise I...
[ "def", "set_resource_id", "(", "self", ",", "resource_id", "=", "None", ")", ":", "if", "resource_id", "is", "None", ":", "raise", "NullArgument", "(", ")", "if", "self", ".", "get_resource_id_metadata", "(", ")", ".", "is_read_only", "(", ")", ":", "raise...
stub
[ "stub" ]
train
https://github.com/mitsei/dlkit/blob/445f968a175d61c8d92c0f617a3c17dc1dc7c584/dlkit/records/osid/base_records.py#L604-L613
mitsei/dlkit
dlkit/records/osid/base_records.py
ResourceFormRecord.clear_resource_id
def clear_resource_id(self): """stub""" if (self.get_resource_id_metadata().is_read_only() or self.get_resource_id_metadata().is_required()): raise NoAccess() self.my_osid_object_form._my_map['resourceId'] = \ self.get_resource_id_metadata().get_default_id...
python
def clear_resource_id(self): """stub""" if (self.get_resource_id_metadata().is_read_only() or self.get_resource_id_metadata().is_required()): raise NoAccess() self.my_osid_object_form._my_map['resourceId'] = \ self.get_resource_id_metadata().get_default_id...
[ "def", "clear_resource_id", "(", "self", ")", ":", "if", "(", "self", ".", "get_resource_id_metadata", "(", ")", ".", "is_read_only", "(", ")", "or", "self", ".", "get_resource_id_metadata", "(", ")", ".", "is_required", "(", ")", ")", ":", "raise", "NoAcc...
stub
[ "stub" ]
train
https://github.com/mitsei/dlkit/blob/445f968a175d61c8d92c0f617a3c17dc1dc7c584/dlkit/records/osid/base_records.py#L615-L621
mitsei/dlkit
dlkit/records/osid/base_records.py
TextFormRecord.set_text
def set_text(self, text=None): """stub""" if text is None: raise NullArgument() if self.get_text_metadata().is_read_only(): raise NoAccess() if not self.my_osid_object_form._is_valid_string( text, self.get_text_metadata()): ...
python
def set_text(self, text=None): """stub""" if text is None: raise NullArgument() if self.get_text_metadata().is_read_only(): raise NoAccess() if not self.my_osid_object_form._is_valid_string( text, self.get_text_metadata()): ...
[ "def", "set_text", "(", "self", ",", "text", "=", "None", ")", ":", "if", "text", "is", "None", ":", "raise", "NullArgument", "(", ")", "if", "self", ".", "get_text_metadata", "(", ")", ".", "is_read_only", "(", ")", ":", "raise", "NoAccess", "(", ")...
stub
[ "stub" ]
train
https://github.com/mitsei/dlkit/blob/445f968a175d61c8d92c0f617a3c17dc1dc7c584/dlkit/records/osid/base_records.py#L688-L698
mitsei/dlkit
dlkit/records/osid/base_records.py
TextFormRecord.clear_text
def clear_text(self): """stub""" if (self.get_text_metadata().is_read_only() or self.get_text_metadata().is_required()): raise NoAccess() self.my_osid_object_form._my_map['text'] = \ dict(self.get_text_metadata().get_default_string_values()[0])
python
def clear_text(self): """stub""" if (self.get_text_metadata().is_read_only() or self.get_text_metadata().is_required()): raise NoAccess() self.my_osid_object_form._my_map['text'] = \ dict(self.get_text_metadata().get_default_string_values()[0])
[ "def", "clear_text", "(", "self", ")", ":", "if", "(", "self", ".", "get_text_metadata", "(", ")", ".", "is_read_only", "(", ")", "or", "self", ".", "get_text_metadata", "(", ")", ".", "is_required", "(", ")", ")", ":", "raise", "NoAccess", "(", ")", ...
stub
[ "stub" ]
train
https://github.com/mitsei/dlkit/blob/445f968a175d61c8d92c0f617a3c17dc1dc7c584/dlkit/records/osid/base_records.py#L700-L706
mitsei/dlkit
dlkit/records/osid/base_records.py
IntegerValueFormRecord._init_metadata
def _init_metadata(self): """stub""" self._min_integer_value = None self._max_integer_value = None self._integer_value_metadata = { 'element_id': Id(self.my_osid_object_form._authority, self.my_osid_object_form._namespace, ...
python
def _init_metadata(self): """stub""" self._min_integer_value = None self._max_integer_value = None self._integer_value_metadata = { 'element_id': Id(self.my_osid_object_form._authority, self.my_osid_object_form._namespace, ...
[ "def", "_init_metadata", "(", "self", ")", ":", "self", ".", "_min_integer_value", "=", "None", "self", ".", "_max_integer_value", "=", "None", "self", ".", "_integer_value_metadata", "=", "{", "'element_id'", ":", "Id", "(", "self", ".", "my_osid_object_form", ...
stub
[ "stub" ]
train
https://github.com/mitsei/dlkit/blob/445f968a175d61c8d92c0f617a3c17dc1dc7c584/dlkit/records/osid/base_records.py#L743-L762
mitsei/dlkit
dlkit/records/osid/base_records.py
IntegerValueFormRecord.set_integer_value
def set_integer_value(self, value=None): """stub""" if value is None: raise NullArgument() if self.get_integer_value_metadata().is_read_only(): raise NoAccess() if not self.my_osid_object_form._is_valid_integer( value, self.get_inte...
python
def set_integer_value(self, value=None): """stub""" if value is None: raise NullArgument() if self.get_integer_value_metadata().is_read_only(): raise NoAccess() if not self.my_osid_object_form._is_valid_integer( value, self.get_inte...
[ "def", "set_integer_value", "(", "self", ",", "value", "=", "None", ")", ":", "if", "value", "is", "None", ":", "raise", "NullArgument", "(", ")", "if", "self", ".", "get_integer_value_metadata", "(", ")", ".", "is_read_only", "(", ")", ":", "raise", "No...
stub
[ "stub" ]
train
https://github.com/mitsei/dlkit/blob/445f968a175d61c8d92c0f617a3c17dc1dc7c584/dlkit/records/osid/base_records.py#L768-L778
mitsei/dlkit
dlkit/records/osid/base_records.py
IntegerValueFormRecord.clear_integer_value
def clear_integer_value(self): """stub""" if (self.get_integer_value_metadata().is_read_only() or self.get_integer_value_metadata().is_required()): raise NoAccess() self.my_osid_object_form._my_map['integerValue'] = \ self.get_integer_value_metadata().get_...
python
def clear_integer_value(self): """stub""" if (self.get_integer_value_metadata().is_read_only() or self.get_integer_value_metadata().is_required()): raise NoAccess() self.my_osid_object_form._my_map['integerValue'] = \ self.get_integer_value_metadata().get_...
[ "def", "clear_integer_value", "(", "self", ")", ":", "if", "(", "self", ".", "get_integer_value_metadata", "(", ")", ".", "is_read_only", "(", ")", "or", "self", ".", "get_integer_value_metadata", "(", ")", ".", "is_required", "(", ")", ")", ":", "raise", ...
stub
[ "stub" ]
train
https://github.com/mitsei/dlkit/blob/445f968a175d61c8d92c0f617a3c17dc1dc7c584/dlkit/records/osid/base_records.py#L780-L786
mitsei/dlkit
dlkit/records/osid/base_records.py
DecimalValueFormRecord.set_decimal_value
def set_decimal_value(self, value=None): """stub""" if value is None: raise NullArgument() if self.get_decimal_value_metadata().is_read_only(): raise NoAccess() if not self.my_osid_object_form._is_valid_decimal( value, self.get_deci...
python
def set_decimal_value(self, value=None): """stub""" if value is None: raise NullArgument() if self.get_decimal_value_metadata().is_read_only(): raise NoAccess() if not self.my_osid_object_form._is_valid_decimal( value, self.get_deci...
[ "def", "set_decimal_value", "(", "self", ",", "value", "=", "None", ")", ":", "if", "value", "is", "None", ":", "raise", "NullArgument", "(", ")", "if", "self", ".", "get_decimal_value_metadata", "(", ")", ".", "is_read_only", "(", ")", ":", "raise", "No...
stub
[ "stub" ]
train
https://github.com/mitsei/dlkit/blob/445f968a175d61c8d92c0f617a3c17dc1dc7c584/dlkit/records/osid/base_records.py#L849-L859
mitsei/dlkit
dlkit/records/osid/base_records.py
DecimalValueFormRecord.clear_decimal_value
def clear_decimal_value(self): """stub""" if (self.get_decimal_value_metadata().is_read_only() or self.get_decimal_value_metadata().is_required()): raise NoAccess() self.my_osid_object_form._my_map['decimalValue'] = \ self.get_decimal_value_metadata().get_...
python
def clear_decimal_value(self): """stub""" if (self.get_decimal_value_metadata().is_read_only() or self.get_decimal_value_metadata().is_required()): raise NoAccess() self.my_osid_object_form._my_map['decimalValue'] = \ self.get_decimal_value_metadata().get_...
[ "def", "clear_decimal_value", "(", "self", ")", ":", "if", "(", "self", ".", "get_decimal_value_metadata", "(", ")", ".", "is_read_only", "(", ")", "or", "self", ".", "get_decimal_value_metadata", "(", ")", ".", "is_required", "(", ")", ")", ":", "raise", ...
stub
[ "stub" ]
train
https://github.com/mitsei/dlkit/blob/445f968a175d61c8d92c0f617a3c17dc1dc7c584/dlkit/records/osid/base_records.py#L861-L867
mitsei/dlkit
dlkit/records/osid/base_records.py
TextsRecord.get_text
def get_text(self, label): """stub""" if self.has_text(label): # Should this return a DisplayText? return DisplayText(self.my_osid_object._my_map['texts'][label]) raise IllegalState()
python
def get_text(self, label): """stub""" if self.has_text(label): # Should this return a DisplayText? return DisplayText(self.my_osid_object._my_map['texts'][label]) raise IllegalState()
[ "def", "get_text", "(", "self", ",", "label", ")", ":", "if", "self", ".", "has_text", "(", "label", ")", ":", "# Should this return a DisplayText?", "return", "DisplayText", "(", "self", ".", "my_osid_object", ".", "_my_map", "[", "'texts'", "]", "[", "labe...
stub
[ "stub" ]
train
https://github.com/mitsei/dlkit/blob/445f968a175d61c8d92c0f617a3c17dc1dc7c584/dlkit/records/osid/base_records.py#L891-L896
mitsei/dlkit
dlkit/records/osid/base_records.py
TextsFormRecord._init_metadata
def _init_metadata(self): """stub""" self._min_string_length = None self._max_string_length = None self._texts_metadata = { 'element_id': Id(self.my_osid_object_form._authority, self.my_osid_object_form._namespace, 'te...
python
def _init_metadata(self): """stub""" self._min_string_length = None self._max_string_length = None self._texts_metadata = { 'element_id': Id(self.my_osid_object_form._authority, self.my_osid_object_form._namespace, 'te...
[ "def", "_init_metadata", "(", "self", ")", ":", "self", ".", "_min_string_length", "=", "None", "self", ".", "_max_string_length", "=", "None", "self", ".", "_texts_metadata", "=", "{", "'element_id'", ":", "Id", "(", "self", ".", "my_osid_object_form", ".", ...
stub
[ "stub" ]
train
https://github.com/mitsei/dlkit/blob/445f968a175d61c8d92c0f617a3c17dc1dc7c584/dlkit/records/osid/base_records.py#L917-L971
mitsei/dlkit
dlkit/records/osid/base_records.py
TextsFormRecord.add_text
def add_text(self, text, label=None): """stub""" if label is None: label = self._label_metadata['default_string_values'][0] else: if not self.my_osid_object_form._is_valid_string( label, self.get_label_metadata()) or '.' in label: raise...
python
def add_text(self, text, label=None): """stub""" if label is None: label = self._label_metadata['default_string_values'][0] else: if not self.my_osid_object_form._is_valid_string( label, self.get_label_metadata()) or '.' in label: raise...
[ "def", "add_text", "(", "self", ",", "text", ",", "label", "=", "None", ")", ":", "if", "label", "is", "None", ":", "label", "=", "self", ".", "_label_metadata", "[", "'default_string_values'", "]", "[", "0", "]", "else", ":", "if", "not", "self", "....
stub
[ "stub" ]
train
https://github.com/mitsei/dlkit/blob/445f968a175d61c8d92c0f617a3c17dc1dc7c584/dlkit/records/osid/base_records.py#L985-L1011
mitsei/dlkit
dlkit/records/osid/base_records.py
TextsFormRecord.clear_text
def clear_text(self, label): """stub""" if label not in self.my_osid_object_form._my_map['texts']: raise NotFound() del self.my_osid_object_form._my_map['texts'][label]
python
def clear_text(self, label): """stub""" if label not in self.my_osid_object_form._my_map['texts']: raise NotFound() del self.my_osid_object_form._my_map['texts'][label]
[ "def", "clear_text", "(", "self", ",", "label", ")", ":", "if", "label", "not", "in", "self", ".", "my_osid_object_form", ".", "_my_map", "[", "'texts'", "]", ":", "raise", "NotFound", "(", ")", "del", "self", ".", "my_osid_object_form", ".", "_my_map", ...
stub
[ "stub" ]
train
https://github.com/mitsei/dlkit/blob/445f968a175d61c8d92c0f617a3c17dc1dc7c584/dlkit/records/osid/base_records.py#L1013-L1017
mitsei/dlkit
dlkit/records/osid/base_records.py
TextsFormRecord.clear_texts
def clear_texts(self): """stub""" if self._texts_metadata['required'] or self._texts_metadata['read_only']: raise NoAccess() self.my_osid_object_form._my_map['texts'] = \ dict(self._texts_metadata['default_object_values'][0])
python
def clear_texts(self): """stub""" if self._texts_metadata['required'] or self._texts_metadata['read_only']: raise NoAccess() self.my_osid_object_form._my_map['texts'] = \ dict(self._texts_metadata['default_object_values'][0])
[ "def", "clear_texts", "(", "self", ")", ":", "if", "self", ".", "_texts_metadata", "[", "'required'", "]", "or", "self", ".", "_texts_metadata", "[", "'read_only'", "]", ":", "raise", "NoAccess", "(", ")", "self", ".", "my_osid_object_form", ".", "_my_map", ...
stub
[ "stub" ]
train
https://github.com/mitsei/dlkit/blob/445f968a175d61c8d92c0f617a3c17dc1dc7c584/dlkit/records/osid/base_records.py#L1019-L1024
mitsei/dlkit
dlkit/records/osid/base_records.py
IntegerValuesRecord.get_integer_value
def get_integer_value(self, label): """stub""" if self.has_integer_value(label): return int(self.my_osid_object._my_map['integerValues'][label]) raise IllegalState()
python
def get_integer_value(self, label): """stub""" if self.has_integer_value(label): return int(self.my_osid_object._my_map['integerValues'][label]) raise IllegalState()
[ "def", "get_integer_value", "(", "self", ",", "label", ")", ":", "if", "self", ".", "has_integer_value", "(", "label", ")", ":", "return", "int", "(", "self", ".", "my_osid_object", ".", "_my_map", "[", "'integerValues'", "]", "[", "label", "]", ")", "ra...
stub
[ "stub" ]
train
https://github.com/mitsei/dlkit/blob/445f968a175d61c8d92c0f617a3c17dc1dc7c584/dlkit/records/osid/base_records.py#L1046-L1050
mitsei/dlkit
dlkit/records/osid/base_records.py
IntegerValuesFormRecord._init_metadata
def _init_metadata(self): """stub""" self._min_integer_value = None self._max_integer_value = None self._integer_values_metadata = { 'element_id': Id(self.my_osid_object_form._authority, self.my_osid_object_form._namespace, ...
python
def _init_metadata(self): """stub""" self._min_integer_value = None self._max_integer_value = None self._integer_values_metadata = { 'element_id': Id(self.my_osid_object_form._authority, self.my_osid_object_form._namespace, ...
[ "def", "_init_metadata", "(", "self", ")", ":", "self", ".", "_min_integer_value", "=", "None", "self", ".", "_max_integer_value", "=", "None", "self", ".", "_integer_values_metadata", "=", "{", "'element_id'", ":", "Id", "(", "self", ".", "my_osid_object_form",...
stub
[ "stub" ]
train
https://github.com/mitsei/dlkit/blob/445f968a175d61c8d92c0f617a3c17dc1dc7c584/dlkit/records/osid/base_records.py#L1071-L1120
mitsei/dlkit
dlkit/records/osid/base_records.py
IntegerValuesFormRecord.add_integer_value
def add_integer_value(self, value, label=None): """stub""" if value is None: raise NullArgument('value cannot be None') if label is None: label = self._label_metadata['default_string_values'][0] else: if not self.my_osid_object_form._is_valid_string( ...
python
def add_integer_value(self, value, label=None): """stub""" if value is None: raise NullArgument('value cannot be None') if label is None: label = self._label_metadata['default_string_values'][0] else: if not self.my_osid_object_form._is_valid_string( ...
[ "def", "add_integer_value", "(", "self", ",", "value", ",", "label", "=", "None", ")", ":", "if", "value", "is", "None", ":", "raise", "NullArgument", "(", "'value cannot be None'", ")", "if", "label", "is", "None", ":", "label", "=", "self", ".", "_labe...
stub
[ "stub" ]
train
https://github.com/mitsei/dlkit/blob/445f968a175d61c8d92c0f617a3c17dc1dc7c584/dlkit/records/osid/base_records.py#L1134-L1147
mitsei/dlkit
dlkit/records/osid/base_records.py
IntegerValuesFormRecord.clear_integer_value
def clear_integer_value(self, label): """stub""" if label not in self.my_osid_object_form._my_map['integerValues']: raise NotFound() del self.my_osid_object_form._my_map['integerValues'][label]
python
def clear_integer_value(self, label): """stub""" if label not in self.my_osid_object_form._my_map['integerValues']: raise NotFound() del self.my_osid_object_form._my_map['integerValues'][label]
[ "def", "clear_integer_value", "(", "self", ",", "label", ")", ":", "if", "label", "not", "in", "self", ".", "my_osid_object_form", ".", "_my_map", "[", "'integerValues'", "]", ":", "raise", "NotFound", "(", ")", "del", "self", ".", "my_osid_object_form", "."...
stub
[ "stub" ]
train
https://github.com/mitsei/dlkit/blob/445f968a175d61c8d92c0f617a3c17dc1dc7c584/dlkit/records/osid/base_records.py#L1149-L1153
mitsei/dlkit
dlkit/records/osid/base_records.py
IntegerValuesFormRecord.clear_integer_values
def clear_integer_values(self): """stub""" if self._integer_values_metadata['required'] or \ self._integer_values_metadata['read_only']: raise NoAccess() self.my_osid_object_form._my_map['integerValues'] = \ dict(self._integer_values_metadata['default_obje...
python
def clear_integer_values(self): """stub""" if self._integer_values_metadata['required'] or \ self._integer_values_metadata['read_only']: raise NoAccess() self.my_osid_object_form._my_map['integerValues'] = \ dict(self._integer_values_metadata['default_obje...
[ "def", "clear_integer_values", "(", "self", ")", ":", "if", "self", ".", "_integer_values_metadata", "[", "'required'", "]", "or", "self", ".", "_integer_values_metadata", "[", "'read_only'", "]", ":", "raise", "NoAccess", "(", ")", "self", ".", "my_osid_object_...
stub
[ "stub" ]
train
https://github.com/mitsei/dlkit/blob/445f968a175d61c8d92c0f617a3c17dc1dc7c584/dlkit/records/osid/base_records.py#L1155-L1161
mitsei/dlkit
dlkit/records/osid/base_records.py
DecimalValuesRecord.get_decimal_value
def get_decimal_value(self, label): """stub""" if self.has_decimal_value(label): return float(self.my_osid_object._my_map['decimalValues'][label]) raise IllegalState()
python
def get_decimal_value(self, label): """stub""" if self.has_decimal_value(label): return float(self.my_osid_object._my_map['decimalValues'][label]) raise IllegalState()
[ "def", "get_decimal_value", "(", "self", ",", "label", ")", ":", "if", "self", ".", "has_decimal_value", "(", "label", ")", ":", "return", "float", "(", "self", ".", "my_osid_object", ".", "_my_map", "[", "'decimalValues'", "]", "[", "label", "]", ")", "...
stub
[ "stub" ]
train
https://github.com/mitsei/dlkit/blob/445f968a175d61c8d92c0f617a3c17dc1dc7c584/dlkit/records/osid/base_records.py#L1183-L1187
mitsei/dlkit
dlkit/records/osid/base_records.py
DecimalValuesFormRecord._init_metadata
def _init_metadata(self): """stub""" self._min_decimal_value = None self._max_decimal_value = None self._decimal_values_metadata = { 'element_id': Id(self.my_osid_object_form._authority, self.my_osid_object_form._namespace, ...
python
def _init_metadata(self): """stub""" self._min_decimal_value = None self._max_decimal_value = None self._decimal_values_metadata = { 'element_id': Id(self.my_osid_object_form._authority, self.my_osid_object_form._namespace, ...
[ "def", "_init_metadata", "(", "self", ")", ":", "self", ".", "_min_decimal_value", "=", "None", "self", ".", "_max_decimal_value", "=", "None", "self", ".", "_decimal_values_metadata", "=", "{", "'element_id'", ":", "Id", "(", "self", ".", "my_osid_object_form",...
stub
[ "stub" ]
train
https://github.com/mitsei/dlkit/blob/445f968a175d61c8d92c0f617a3c17dc1dc7c584/dlkit/records/osid/base_records.py#L1208-L1258
mitsei/dlkit
dlkit/records/osid/base_records.py
DecimalValuesFormRecord.add_decimal_value
def add_decimal_value(self, value, label=None): """stub""" if label is None: label = self._label_metadata['default_string_values'][0] else: if not self.my_osid_object_form._is_valid_string( label, self.get_label_metadata()) or '.' in label: ...
python
def add_decimal_value(self, value, label=None): """stub""" if label is None: label = self._label_metadata['default_string_values'][0] else: if not self.my_osid_object_form._is_valid_string( label, self.get_label_metadata()) or '.' in label: ...
[ "def", "add_decimal_value", "(", "self", ",", "value", ",", "label", "=", "None", ")", ":", "if", "label", "is", "None", ":", "label", "=", "self", ".", "_label_metadata", "[", "'default_string_values'", "]", "[", "0", "]", "else", ":", "if", "not", "s...
stub
[ "stub" ]
train
https://github.com/mitsei/dlkit/blob/445f968a175d61c8d92c0f617a3c17dc1dc7c584/dlkit/records/osid/base_records.py#L1272-L1285
mitsei/dlkit
dlkit/records/osid/base_records.py
DecimalValuesFormRecord.clear_decimal_value
def clear_decimal_value(self, label): """stub""" if label not in self.my_osid_object_form._my_map['decimalValues']: raise NotFound() del self.my_osid_object_form._my_map['decimalValues'][label]
python
def clear_decimal_value(self, label): """stub""" if label not in self.my_osid_object_form._my_map['decimalValues']: raise NotFound() del self.my_osid_object_form._my_map['decimalValues'][label]
[ "def", "clear_decimal_value", "(", "self", ",", "label", ")", ":", "if", "label", "not", "in", "self", ".", "my_osid_object_form", ".", "_my_map", "[", "'decimalValues'", "]", ":", "raise", "NotFound", "(", ")", "del", "self", ".", "my_osid_object_form", "."...
stub
[ "stub" ]
train
https://github.com/mitsei/dlkit/blob/445f968a175d61c8d92c0f617a3c17dc1dc7c584/dlkit/records/osid/base_records.py#L1287-L1291