repository_name stringlengths 7 55 | func_path_in_repository stringlengths 4 223 | func_name stringlengths 1 134 | whole_func_string stringlengths 75 104k | language stringclasses 1
value | func_code_string stringlengths 75 104k | func_code_tokens listlengths 19 28.4k | func_documentation_string stringlengths 1 46.9k | func_documentation_tokens listlengths 1 1.97k | split_name stringclasses 1
value | func_code_url stringlengths 87 315 |
|---|---|---|---|---|---|---|---|---|---|---|
glyph/txsni | txsni/only_noticed_pypi_pem_after_i_wrote_this.py | objectsFromPEM | def objectsFromPEM(pemdata):
"""
Load some objects from a PEM.
"""
certificates = []
keys = []
blobs = [b""]
for line in pemdata.split(b"\n"):
if line.startswith(b'-----BEGIN'):
if b'CERTIFICATE' in line:
blobs = certificates
else:
... | python | def objectsFromPEM(pemdata):
"""
Load some objects from a PEM.
"""
certificates = []
keys = []
blobs = [b""]
for line in pemdata.split(b"\n"):
if line.startswith(b'-----BEGIN'):
if b'CERTIFICATE' in line:
blobs = certificates
else:
... | [
"def",
"objectsFromPEM",
"(",
"pemdata",
")",
":",
"certificates",
"=",
"[",
"]",
"keys",
"=",
"[",
"]",
"blobs",
"=",
"[",
"b\"\"",
"]",
"for",
"line",
"in",
"pemdata",
".",
"split",
"(",
"b\"\\n\"",
")",
":",
"if",
"line",
".",
"startswith",
"(",
... | Load some objects from a PEM. | [
"Load",
"some",
"objects",
"from",
"a",
"PEM",
"."
] | train | https://github.com/glyph/txsni/blob/5014c141a7acef63e20fcf6c36fa07f0cd754ce1/txsni/only_noticed_pypi_pem_after_i_wrote_this.py#L9-L28 |
revelc/pyaccumulo | pyaccumulo/__init__.py | following_key | def following_key(key):
"""
Returns the key immediately following the input key - based on the Java implementation found in
org.apache.accumulo.core.data.Key, function followingKey(PartialKey part)
:param key: the key to be followed
:return: a key that immediately follows the input key
"""
i... | python | def following_key(key):
"""
Returns the key immediately following the input key - based on the Java implementation found in
org.apache.accumulo.core.data.Key, function followingKey(PartialKey part)
:param key: the key to be followed
:return: a key that immediately follows the input key
"""
i... | [
"def",
"following_key",
"(",
"key",
")",
":",
"if",
"key",
".",
"timestamp",
"is",
"not",
"None",
":",
"key",
".",
"timestamp",
"-=",
"1",
"elif",
"key",
".",
"colVisibility",
"is",
"not",
"None",
":",
"key",
".",
"colVisibility",
"=",
"following_array",... | Returns the key immediately following the input key - based on the Java implementation found in
org.apache.accumulo.core.data.Key, function followingKey(PartialKey part)
:param key: the key to be followed
:return: a key that immediately follows the input key | [
"Returns",
"the",
"key",
"immediately",
"following",
"the",
"input",
"key",
"-",
"based",
"on",
"the",
"Java",
"implementation",
"found",
"in",
"org",
".",
"apache",
".",
"accumulo",
".",
"core",
".",
"data",
".",
"Key",
"function",
"followingKey",
"(",
"P... | train | https://github.com/revelc/pyaccumulo/blob/8adcf535bb82ba69c749efce785c9efc487e85de/pyaccumulo/__init__.py#L50-L67 |
revelc/pyaccumulo | pyaccumulo/__init__.py | Range.followingPrefix | def followingPrefix(prefix):
"""Returns a String that sorts just after all Strings beginning with a prefix"""
prefixBytes = array('B', prefix)
changeIndex = len(prefixBytes) - 1
while (changeIndex >= 0 and prefixBytes[changeIndex] == 0xff ):
changeIndex = changeIndex - 1;
... | python | def followingPrefix(prefix):
"""Returns a String that sorts just after all Strings beginning with a prefix"""
prefixBytes = array('B', prefix)
changeIndex = len(prefixBytes) - 1
while (changeIndex >= 0 and prefixBytes[changeIndex] == 0xff ):
changeIndex = changeIndex - 1;
... | [
"def",
"followingPrefix",
"(",
"prefix",
")",
":",
"prefixBytes",
"=",
"array",
"(",
"'B'",
",",
"prefix",
")",
"changeIndex",
"=",
"len",
"(",
"prefixBytes",
")",
"-",
"1",
"while",
"(",
"changeIndex",
">=",
"0",
"and",
"prefixBytes",
"[",
"changeIndex",
... | Returns a String that sorts just after all Strings beginning with a prefix | [
"Returns",
"a",
"String",
"that",
"sorts",
"just",
"after",
"all",
"Strings",
"beginning",
"with",
"a",
"prefix"
] | train | https://github.com/revelc/pyaccumulo/blob/8adcf535bb82ba69c749efce785c9efc487e85de/pyaccumulo/__init__.py#L100-L111 |
revelc/pyaccumulo | pyaccumulo/__init__.py | Range.prefix | def prefix(rowPrefix):
"""Returns a Range that covers all rows beginning with a prefix"""
fp = Range.followingPrefix(rowPrefix)
return Range(srow=rowPrefix, sinclude=True, erow=fp, einclude=False) | python | def prefix(rowPrefix):
"""Returns a Range that covers all rows beginning with a prefix"""
fp = Range.followingPrefix(rowPrefix)
return Range(srow=rowPrefix, sinclude=True, erow=fp, einclude=False) | [
"def",
"prefix",
"(",
"rowPrefix",
")",
":",
"fp",
"=",
"Range",
".",
"followingPrefix",
"(",
"rowPrefix",
")",
"return",
"Range",
"(",
"srow",
"=",
"rowPrefix",
",",
"sinclude",
"=",
"True",
",",
"erow",
"=",
"fp",
",",
"einclude",
"=",
"False",
")"
] | Returns a Range that covers all rows beginning with a prefix | [
"Returns",
"a",
"Range",
"that",
"covers",
"all",
"rows",
"beginning",
"with",
"a",
"prefix"
] | train | https://github.com/revelc/pyaccumulo/blob/8adcf535bb82ba69c749efce785c9efc487e85de/pyaccumulo/__init__.py#L114-L117 |
revelc/pyaccumulo | pyaccumulo/__init__.py | Accumulo.add_mutations_and_flush | def add_mutations_and_flush(self, table, muts):
"""
Add mutations to a table without the need to create and manage a batch writer.
"""
if not isinstance(muts, list) and not isinstance(muts, tuple):
muts = [muts]
cells = {}
for mut in muts:
cells.se... | python | def add_mutations_and_flush(self, table, muts):
"""
Add mutations to a table without the need to create and manage a batch writer.
"""
if not isinstance(muts, list) and not isinstance(muts, tuple):
muts = [muts]
cells = {}
for mut in muts:
cells.se... | [
"def",
"add_mutations_and_flush",
"(",
"self",
",",
"table",
",",
"muts",
")",
":",
"if",
"not",
"isinstance",
"(",
"muts",
",",
"list",
")",
"and",
"not",
"isinstance",
"(",
"muts",
",",
"tuple",
")",
":",
"muts",
"=",
"[",
"muts",
"]",
"cells",
"="... | Add mutations to a table without the need to create and manage a batch writer. | [
"Add",
"mutations",
"to",
"a",
"table",
"without",
"the",
"need",
"to",
"create",
"and",
"manage",
"a",
"batch",
"writer",
"."
] | train | https://github.com/revelc/pyaccumulo/blob/8adcf535bb82ba69c749efce785c9efc487e85de/pyaccumulo/__init__.py#L271-L280 |
revelc/pyaccumulo | pyaccumulo/__init__.py | Accumulo.remove_constraint | def remove_constraint(self, table, constraint):
"""
:param table: table name
:param constraint: the constraint number as returned by list_constraints
"""
self.client.removeConstraint(self.login, table, constraint) | python | def remove_constraint(self, table, constraint):
"""
:param table: table name
:param constraint: the constraint number as returned by list_constraints
"""
self.client.removeConstraint(self.login, table, constraint) | [
"def",
"remove_constraint",
"(",
"self",
",",
"table",
",",
"constraint",
")",
":",
"self",
".",
"client",
".",
"removeConstraint",
"(",
"self",
".",
"login",
",",
"table",
",",
"constraint",
")"
] | :param table: table name
:param constraint: the constraint number as returned by list_constraints | [
":",
"param",
"table",
":",
"table",
"name",
":",
"param",
"constraint",
":",
"the",
"constraint",
"number",
"as",
"returned",
"by",
"list_constraints"
] | train | https://github.com/revelc/pyaccumulo/blob/8adcf535bb82ba69c749efce785c9efc487e85de/pyaccumulo/__init__.py#L324-L329 |
glyph/txsni | txsni/snimap.py | _ConnectionProxy.get_context | def get_context(self):
"""
A basic override of get_context to ensure that the appropriate proxy
object is returned.
"""
ctx = self._obj.get_context()
return _ContextProxy(ctx, self._factory) | python | def get_context(self):
"""
A basic override of get_context to ensure that the appropriate proxy
object is returned.
"""
ctx = self._obj.get_context()
return _ContextProxy(ctx, self._factory) | [
"def",
"get_context",
"(",
"self",
")",
":",
"ctx",
"=",
"self",
".",
"_obj",
".",
"get_context",
"(",
")",
"return",
"_ContextProxy",
"(",
"ctx",
",",
"self",
".",
"_factory",
")"
] | A basic override of get_context to ensure that the appropriate proxy
object is returned. | [
"A",
"basic",
"override",
"of",
"get_context",
"to",
"ensure",
"that",
"the",
"appropriate",
"proxy",
"object",
"is",
"returned",
"."
] | train | https://github.com/glyph/txsni/blob/5014c141a7acef63e20fcf6c36fa07f0cd754ce1/txsni/snimap.py#L56-L62 |
revelc/pyaccumulo | pyaccumulo/proxy/AccumuloProxy.py | Client.login | def login(self, principal, loginProperties):
"""
Parameters:
- principal
- loginProperties
"""
self.send_login(principal, loginProperties)
return self.recv_login() | python | def login(self, principal, loginProperties):
"""
Parameters:
- principal
- loginProperties
"""
self.send_login(principal, loginProperties)
return self.recv_login() | [
"def",
"login",
"(",
"self",
",",
"principal",
",",
"loginProperties",
")",
":",
"self",
".",
"send_login",
"(",
"principal",
",",
"loginProperties",
")",
"return",
"self",
".",
"recv_login",
"(",
")"
] | Parameters:
- principal
- loginProperties | [
"Parameters",
":",
"-",
"principal",
"-",
"loginProperties"
] | train | https://github.com/revelc/pyaccumulo/blob/8adcf535bb82ba69c749efce785c9efc487e85de/pyaccumulo/proxy/AccumuloProxy.py#L651-L658 |
revelc/pyaccumulo | pyaccumulo/proxy/AccumuloProxy.py | Client.addConstraint | def addConstraint(self, login, tableName, constraintClassName):
"""
Parameters:
- login
- tableName
- constraintClassName
"""
self.send_addConstraint(login, tableName, constraintClassName)
return self.recv_addConstraint() | python | def addConstraint(self, login, tableName, constraintClassName):
"""
Parameters:
- login
- tableName
- constraintClassName
"""
self.send_addConstraint(login, tableName, constraintClassName)
return self.recv_addConstraint() | [
"def",
"addConstraint",
"(",
"self",
",",
"login",
",",
"tableName",
",",
"constraintClassName",
")",
":",
"self",
".",
"send_addConstraint",
"(",
"login",
",",
"tableName",
",",
"constraintClassName",
")",
"return",
"self",
".",
"recv_addConstraint",
"(",
")"
] | Parameters:
- login
- tableName
- constraintClassName | [
"Parameters",
":",
"-",
"login",
"-",
"tableName",
"-",
"constraintClassName"
] | train | https://github.com/revelc/pyaccumulo/blob/8adcf535bb82ba69c749efce785c9efc487e85de/pyaccumulo/proxy/AccumuloProxy.py#L685-L693 |
revelc/pyaccumulo | pyaccumulo/proxy/AccumuloProxy.py | Client.addSplits | def addSplits(self, login, tableName, splits):
"""
Parameters:
- login
- tableName
- splits
"""
self.send_addSplits(login, tableName, splits)
self.recv_addSplits() | python | def addSplits(self, login, tableName, splits):
"""
Parameters:
- login
- tableName
- splits
"""
self.send_addSplits(login, tableName, splits)
self.recv_addSplits() | [
"def",
"addSplits",
"(",
"self",
",",
"login",
",",
"tableName",
",",
"splits",
")",
":",
"self",
".",
"send_addSplits",
"(",
"login",
",",
"tableName",
",",
"splits",
")",
"self",
".",
"recv_addSplits",
"(",
")"
] | Parameters:
- login
- tableName
- splits | [
"Parameters",
":",
"-",
"login",
"-",
"tableName",
"-",
"splits"
] | train | https://github.com/revelc/pyaccumulo/blob/8adcf535bb82ba69c749efce785c9efc487e85de/pyaccumulo/proxy/AccumuloProxy.py#L725-L733 |
revelc/pyaccumulo | pyaccumulo/proxy/AccumuloProxy.py | Client.attachIterator | def attachIterator(self, login, tableName, setting, scopes):
"""
Parameters:
- login
- tableName
- setting
- scopes
"""
self.send_attachIterator(login, tableName, setting, scopes)
self.recv_attachIterator() | python | def attachIterator(self, login, tableName, setting, scopes):
"""
Parameters:
- login
- tableName
- setting
- scopes
"""
self.send_attachIterator(login, tableName, setting, scopes)
self.recv_attachIterator() | [
"def",
"attachIterator",
"(",
"self",
",",
"login",
",",
"tableName",
",",
"setting",
",",
"scopes",
")",
":",
"self",
".",
"send_attachIterator",
"(",
"login",
",",
"tableName",
",",
"setting",
",",
"scopes",
")",
"self",
".",
"recv_attachIterator",
"(",
... | Parameters:
- login
- tableName
- setting
- scopes | [
"Parameters",
":",
"-",
"login",
"-",
"tableName",
"-",
"setting",
"-",
"scopes"
] | train | https://github.com/revelc/pyaccumulo/blob/8adcf535bb82ba69c749efce785c9efc487e85de/pyaccumulo/proxy/AccumuloProxy.py#L763-L772 |
revelc/pyaccumulo | pyaccumulo/proxy/AccumuloProxy.py | Client.checkIteratorConflicts | def checkIteratorConflicts(self, login, tableName, setting, scopes):
"""
Parameters:
- login
- tableName
- setting
- scopes
"""
self.send_checkIteratorConflicts(login, tableName, setting, scopes)
self.recv_checkIteratorConflicts() | python | def checkIteratorConflicts(self, login, tableName, setting, scopes):
"""
Parameters:
- login
- tableName
- setting
- scopes
"""
self.send_checkIteratorConflicts(login, tableName, setting, scopes)
self.recv_checkIteratorConflicts() | [
"def",
"checkIteratorConflicts",
"(",
"self",
",",
"login",
",",
"tableName",
",",
"setting",
",",
"scopes",
")",
":",
"self",
".",
"send_checkIteratorConflicts",
"(",
"login",
",",
"tableName",
",",
"setting",
",",
"scopes",
")",
"self",
".",
"recv_checkItera... | Parameters:
- login
- tableName
- setting
- scopes | [
"Parameters",
":",
"-",
"login",
"-",
"tableName",
"-",
"setting",
"-",
"scopes"
] | train | https://github.com/revelc/pyaccumulo/blob/8adcf535bb82ba69c749efce785c9efc487e85de/pyaccumulo/proxy/AccumuloProxy.py#L803-L812 |
revelc/pyaccumulo | pyaccumulo/proxy/AccumuloProxy.py | Client.clearLocatorCache | def clearLocatorCache(self, login, tableName):
"""
Parameters:
- login
- tableName
"""
self.send_clearLocatorCache(login, tableName)
self.recv_clearLocatorCache() | python | def clearLocatorCache(self, login, tableName):
"""
Parameters:
- login
- tableName
"""
self.send_clearLocatorCache(login, tableName)
self.recv_clearLocatorCache() | [
"def",
"clearLocatorCache",
"(",
"self",
",",
"login",
",",
"tableName",
")",
":",
"self",
".",
"send_clearLocatorCache",
"(",
"login",
",",
"tableName",
")",
"self",
".",
"recv_clearLocatorCache",
"(",
")"
] | Parameters:
- login
- tableName | [
"Parameters",
":",
"-",
"login",
"-",
"tableName"
] | train | https://github.com/revelc/pyaccumulo/blob/8adcf535bb82ba69c749efce785c9efc487e85de/pyaccumulo/proxy/AccumuloProxy.py#L841-L848 |
revelc/pyaccumulo | pyaccumulo/proxy/AccumuloProxy.py | Client.cloneTable | def cloneTable(self, login, tableName, newTableName, flush, propertiesToSet, propertiesToExclude):
"""
Parameters:
- login
- tableName
- newTableName
- flush
- propertiesToSet
- propertiesToExclude
"""
self.send_cloneTable(login, tableName, newTableName, flush, propertiesTo... | python | def cloneTable(self, login, tableName, newTableName, flush, propertiesToSet, propertiesToExclude):
"""
Parameters:
- login
- tableName
- newTableName
- flush
- propertiesToSet
- propertiesToExclude
"""
self.send_cloneTable(login, tableName, newTableName, flush, propertiesTo... | [
"def",
"cloneTable",
"(",
"self",
",",
"login",
",",
"tableName",
",",
"newTableName",
",",
"flush",
",",
"propertiesToSet",
",",
"propertiesToExclude",
")",
":",
"self",
".",
"send_cloneTable",
"(",
"login",
",",
"tableName",
",",
"newTableName",
",",
"flush"... | Parameters:
- login
- tableName
- newTableName
- flush
- propertiesToSet
- propertiesToExclude | [
"Parameters",
":",
"-",
"login",
"-",
"tableName",
"-",
"newTableName",
"-",
"flush",
"-",
"propertiesToSet",
"-",
"propertiesToExclude"
] | train | https://github.com/revelc/pyaccumulo/blob/8adcf535bb82ba69c749efce785c9efc487e85de/pyaccumulo/proxy/AccumuloProxy.py#L873-L884 |
revelc/pyaccumulo | pyaccumulo/proxy/AccumuloProxy.py | Client.compactTable | def compactTable(self, login, tableName, startRow, endRow, iterators, flush, wait):
"""
Parameters:
- login
- tableName
- startRow
- endRow
- iterators
- flush
- wait
"""
self.send_compactTable(login, tableName, startRow, endRow, iterators, flush, wait)
self.recv_c... | python | def compactTable(self, login, tableName, startRow, endRow, iterators, flush, wait):
"""
Parameters:
- login
- tableName
- startRow
- endRow
- iterators
- flush
- wait
"""
self.send_compactTable(login, tableName, startRow, endRow, iterators, flush, wait)
self.recv_c... | [
"def",
"compactTable",
"(",
"self",
",",
"login",
",",
"tableName",
",",
"startRow",
",",
"endRow",
",",
"iterators",
",",
"flush",
",",
"wait",
")",
":",
"self",
".",
"send_compactTable",
"(",
"login",
",",
"tableName",
",",
"startRow",
",",
"endRow",
"... | Parameters:
- login
- tableName
- startRow
- endRow
- iterators
- flush
- wait | [
"Parameters",
":",
"-",
"login",
"-",
"tableName",
"-",
"startRow",
"-",
"endRow",
"-",
"iterators",
"-",
"flush",
"-",
"wait"
] | train | https://github.com/revelc/pyaccumulo/blob/8adcf535bb82ba69c749efce785c9efc487e85de/pyaccumulo/proxy/AccumuloProxy.py#L919-L931 |
revelc/pyaccumulo | pyaccumulo/proxy/AccumuloProxy.py | Client.cancelCompaction | def cancelCompaction(self, login, tableName):
"""
Parameters:
- login
- tableName
"""
self.send_cancelCompaction(login, tableName)
self.recv_cancelCompaction() | python | def cancelCompaction(self, login, tableName):
"""
Parameters:
- login
- tableName
"""
self.send_cancelCompaction(login, tableName)
self.recv_cancelCompaction() | [
"def",
"cancelCompaction",
"(",
"self",
",",
"login",
",",
"tableName",
")",
":",
"self",
".",
"send_cancelCompaction",
"(",
"login",
",",
"tableName",
")",
"self",
".",
"recv_cancelCompaction",
"(",
")"
] | Parameters:
- login
- tableName | [
"Parameters",
":",
"-",
"login",
"-",
"tableName"
] | train | https://github.com/revelc/pyaccumulo/blob/8adcf535bb82ba69c749efce785c9efc487e85de/pyaccumulo/proxy/AccumuloProxy.py#L965-L972 |
revelc/pyaccumulo | pyaccumulo/proxy/AccumuloProxy.py | Client.createTable | def createTable(self, login, tableName, versioningIter, type):
"""
Parameters:
- login
- tableName
- versioningIter
- type
"""
self.send_createTable(login, tableName, versioningIter, type)
self.recv_createTable() | python | def createTable(self, login, tableName, versioningIter, type):
"""
Parameters:
- login
- tableName
- versioningIter
- type
"""
self.send_createTable(login, tableName, versioningIter, type)
self.recv_createTable() | [
"def",
"createTable",
"(",
"self",
",",
"login",
",",
"tableName",
",",
"versioningIter",
",",
"type",
")",
":",
"self",
".",
"send_createTable",
"(",
"login",
",",
"tableName",
",",
"versioningIter",
",",
"type",
")",
"self",
".",
"recv_createTable",
"(",
... | Parameters:
- login
- tableName
- versioningIter
- type | [
"Parameters",
":",
"-",
"login",
"-",
"tableName",
"-",
"versioningIter",
"-",
"type"
] | train | https://github.com/revelc/pyaccumulo/blob/8adcf535bb82ba69c749efce785c9efc487e85de/pyaccumulo/proxy/AccumuloProxy.py#L1001-L1010 |
revelc/pyaccumulo | pyaccumulo/proxy/AccumuloProxy.py | Client.deleteTable | def deleteTable(self, login, tableName):
"""
Parameters:
- login
- tableName
"""
self.send_deleteTable(login, tableName)
self.recv_deleteTable() | python | def deleteTable(self, login, tableName):
"""
Parameters:
- login
- tableName
"""
self.send_deleteTable(login, tableName)
self.recv_deleteTable() | [
"def",
"deleteTable",
"(",
"self",
",",
"login",
",",
"tableName",
")",
":",
"self",
".",
"send_deleteTable",
"(",
"login",
",",
"tableName",
")",
"self",
".",
"recv_deleteTable",
"(",
")"
] | Parameters:
- login
- tableName | [
"Parameters",
":",
"-",
"login",
"-",
"tableName"
] | train | https://github.com/revelc/pyaccumulo/blob/8adcf535bb82ba69c749efce785c9efc487e85de/pyaccumulo/proxy/AccumuloProxy.py#L1041-L1048 |
revelc/pyaccumulo | pyaccumulo/proxy/AccumuloProxy.py | Client.deleteRows | def deleteRows(self, login, tableName, startRow, endRow):
"""
Parameters:
- login
- tableName
- startRow
- endRow
"""
self.send_deleteRows(login, tableName, startRow, endRow)
self.recv_deleteRows() | python | def deleteRows(self, login, tableName, startRow, endRow):
"""
Parameters:
- login
- tableName
- startRow
- endRow
"""
self.send_deleteRows(login, tableName, startRow, endRow)
self.recv_deleteRows() | [
"def",
"deleteRows",
"(",
"self",
",",
"login",
",",
"tableName",
",",
"startRow",
",",
"endRow",
")",
":",
"self",
".",
"send_deleteRows",
"(",
"login",
",",
"tableName",
",",
"startRow",
",",
"endRow",
")",
"self",
".",
"recv_deleteRows",
"(",
")"
] | Parameters:
- login
- tableName
- startRow
- endRow | [
"Parameters",
":",
"-",
"login",
"-",
"tableName",
"-",
"startRow",
"-",
"endRow"
] | train | https://github.com/revelc/pyaccumulo/blob/8adcf535bb82ba69c749efce785c9efc487e85de/pyaccumulo/proxy/AccumuloProxy.py#L1077-L1086 |
revelc/pyaccumulo | pyaccumulo/proxy/AccumuloProxy.py | Client.exportTable | def exportTable(self, login, tableName, exportDir):
"""
Parameters:
- login
- tableName
- exportDir
"""
self.send_exportTable(login, tableName, exportDir)
self.recv_exportTable() | python | def exportTable(self, login, tableName, exportDir):
"""
Parameters:
- login
- tableName
- exportDir
"""
self.send_exportTable(login, tableName, exportDir)
self.recv_exportTable() | [
"def",
"exportTable",
"(",
"self",
",",
"login",
",",
"tableName",
",",
"exportDir",
")",
":",
"self",
".",
"send_exportTable",
"(",
"login",
",",
"tableName",
",",
"exportDir",
")",
"self",
".",
"recv_exportTable",
"(",
")"
] | Parameters:
- login
- tableName
- exportDir | [
"Parameters",
":",
"-",
"login",
"-",
"tableName",
"-",
"exportDir"
] | train | https://github.com/revelc/pyaccumulo/blob/8adcf535bb82ba69c749efce785c9efc487e85de/pyaccumulo/proxy/AccumuloProxy.py#L1117-L1125 |
revelc/pyaccumulo | pyaccumulo/proxy/AccumuloProxy.py | Client.flushTable | def flushTable(self, login, tableName, startRow, endRow, wait):
"""
Parameters:
- login
- tableName
- startRow
- endRow
- wait
"""
self.send_flushTable(login, tableName, startRow, endRow, wait)
self.recv_flushTable() | python | def flushTable(self, login, tableName, startRow, endRow, wait):
"""
Parameters:
- login
- tableName
- startRow
- endRow
- wait
"""
self.send_flushTable(login, tableName, startRow, endRow, wait)
self.recv_flushTable() | [
"def",
"flushTable",
"(",
"self",
",",
"login",
",",
"tableName",
",",
"startRow",
",",
"endRow",
",",
"wait",
")",
":",
"self",
".",
"send_flushTable",
"(",
"login",
",",
"tableName",
",",
"startRow",
",",
"endRow",
",",
"wait",
")",
"self",
".",
"rec... | Parameters:
- login
- tableName
- startRow
- endRow
- wait | [
"Parameters",
":",
"-",
"login",
"-",
"tableName",
"-",
"startRow",
"-",
"endRow",
"-",
"wait"
] | train | https://github.com/revelc/pyaccumulo/blob/8adcf535bb82ba69c749efce785c9efc487e85de/pyaccumulo/proxy/AccumuloProxy.py#L1155-L1165 |
revelc/pyaccumulo | pyaccumulo/proxy/AccumuloProxy.py | Client.getLocalityGroups | def getLocalityGroups(self, login, tableName):
"""
Parameters:
- login
- tableName
"""
self.send_getLocalityGroups(login, tableName)
return self.recv_getLocalityGroups() | python | def getLocalityGroups(self, login, tableName):
"""
Parameters:
- login
- tableName
"""
self.send_getLocalityGroups(login, tableName)
return self.recv_getLocalityGroups() | [
"def",
"getLocalityGroups",
"(",
"self",
",",
"login",
",",
"tableName",
")",
":",
"self",
".",
"send_getLocalityGroups",
"(",
"login",
",",
"tableName",
")",
"return",
"self",
".",
"recv_getLocalityGroups",
"(",
")"
] | Parameters:
- login
- tableName | [
"Parameters",
":",
"-",
"login",
"-",
"tableName"
] | train | https://github.com/revelc/pyaccumulo/blob/8adcf535bb82ba69c749efce785c9efc487e85de/pyaccumulo/proxy/AccumuloProxy.py#L1195-L1202 |
revelc/pyaccumulo | pyaccumulo/proxy/AccumuloProxy.py | Client.getIteratorSetting | def getIteratorSetting(self, login, tableName, iteratorName, scope):
"""
Parameters:
- login
- tableName
- iteratorName
- scope
"""
self.send_getIteratorSetting(login, tableName, iteratorName, scope)
return self.recv_getIteratorSetting() | python | def getIteratorSetting(self, login, tableName, iteratorName, scope):
"""
Parameters:
- login
- tableName
- iteratorName
- scope
"""
self.send_getIteratorSetting(login, tableName, iteratorName, scope)
return self.recv_getIteratorSetting() | [
"def",
"getIteratorSetting",
"(",
"self",
",",
"login",
",",
"tableName",
",",
"iteratorName",
",",
"scope",
")",
":",
"self",
".",
"send_getIteratorSetting",
"(",
"login",
",",
"tableName",
",",
"iteratorName",
",",
"scope",
")",
"return",
"self",
".",
"rec... | Parameters:
- login
- tableName
- iteratorName
- scope | [
"Parameters",
":",
"-",
"login",
"-",
"tableName",
"-",
"iteratorName",
"-",
"scope"
] | train | https://github.com/revelc/pyaccumulo/blob/8adcf535bb82ba69c749efce785c9efc487e85de/pyaccumulo/proxy/AccumuloProxy.py#L1231-L1240 |
revelc/pyaccumulo | pyaccumulo/proxy/AccumuloProxy.py | Client.getMaxRow | def getMaxRow(self, login, tableName, auths, startRow, startInclusive, endRow, endInclusive):
"""
Parameters:
- login
- tableName
- auths
- startRow
- startInclusive
- endRow
- endInclusive
"""
self.send_getMaxRow(login, tableName, auths, startRow, startInclusive, endR... | python | def getMaxRow(self, login, tableName, auths, startRow, startInclusive, endRow, endInclusive):
"""
Parameters:
- login
- tableName
- auths
- startRow
- startInclusive
- endRow
- endInclusive
"""
self.send_getMaxRow(login, tableName, auths, startRow, startInclusive, endR... | [
"def",
"getMaxRow",
"(",
"self",
",",
"login",
",",
"tableName",
",",
"auths",
",",
"startRow",
",",
"startInclusive",
",",
"endRow",
",",
"endInclusive",
")",
":",
"self",
".",
"send_getMaxRow",
"(",
"login",
",",
"tableName",
",",
"auths",
",",
"startRow... | Parameters:
- login
- tableName
- auths
- startRow
- startInclusive
- endRow
- endInclusive | [
"Parameters",
":",
"-",
"login",
"-",
"tableName",
"-",
"auths",
"-",
"startRow",
"-",
"startInclusive",
"-",
"endRow",
"-",
"endInclusive"
] | train | https://github.com/revelc/pyaccumulo/blob/8adcf535bb82ba69c749efce785c9efc487e85de/pyaccumulo/proxy/AccumuloProxy.py#L1273-L1285 |
revelc/pyaccumulo | pyaccumulo/proxy/AccumuloProxy.py | Client.getTableProperties | def getTableProperties(self, login, tableName):
"""
Parameters:
- login
- tableName
"""
self.send_getTableProperties(login, tableName)
return self.recv_getTableProperties() | python | def getTableProperties(self, login, tableName):
"""
Parameters:
- login
- tableName
"""
self.send_getTableProperties(login, tableName)
return self.recv_getTableProperties() | [
"def",
"getTableProperties",
"(",
"self",
",",
"login",
",",
"tableName",
")",
":",
"self",
".",
"send_getTableProperties",
"(",
"login",
",",
"tableName",
")",
"return",
"self",
".",
"recv_getTableProperties",
"(",
")"
] | Parameters:
- login
- tableName | [
"Parameters",
":",
"-",
"login",
"-",
"tableName"
] | train | https://github.com/revelc/pyaccumulo/blob/8adcf535bb82ba69c749efce785c9efc487e85de/pyaccumulo/proxy/AccumuloProxy.py#L1321-L1328 |
revelc/pyaccumulo | pyaccumulo/proxy/AccumuloProxy.py | Client.getSplits | def getSplits(self, login, tableName, maxSplits):
"""
Parameters:
- login
- tableName
- maxSplits
"""
self.send_getSplits(login, tableName, maxSplits)
return self.recv_getSplits() | python | def getSplits(self, login, tableName, maxSplits):
"""
Parameters:
- login
- tableName
- maxSplits
"""
self.send_getSplits(login, tableName, maxSplits)
return self.recv_getSplits() | [
"def",
"getSplits",
"(",
"self",
",",
"login",
",",
"tableName",
",",
"maxSplits",
")",
":",
"self",
".",
"send_getSplits",
"(",
"login",
",",
"tableName",
",",
"maxSplits",
")",
"return",
"self",
".",
"recv_getSplits",
"(",
")"
] | Parameters:
- login
- tableName
- maxSplits | [
"Parameters",
":",
"-",
"login",
"-",
"tableName",
"-",
"maxSplits"
] | train | https://github.com/revelc/pyaccumulo/blob/8adcf535bb82ba69c749efce785c9efc487e85de/pyaccumulo/proxy/AccumuloProxy.py#L1357-L1365 |
revelc/pyaccumulo | pyaccumulo/proxy/AccumuloProxy.py | Client.importDirectory | def importDirectory(self, login, tableName, importDir, failureDir, setTime):
"""
Parameters:
- login
- tableName
- importDir
- failureDir
- setTime
"""
self.send_importDirectory(login, tableName, importDir, failureDir, setTime)
self.recv_importDirectory() | python | def importDirectory(self, login, tableName, importDir, failureDir, setTime):
"""
Parameters:
- login
- tableName
- importDir
- failureDir
- setTime
"""
self.send_importDirectory(login, tableName, importDir, failureDir, setTime)
self.recv_importDirectory() | [
"def",
"importDirectory",
"(",
"self",
",",
"login",
",",
"tableName",
",",
"importDir",
",",
"failureDir",
",",
"setTime",
")",
":",
"self",
".",
"send_importDirectory",
"(",
"login",
",",
"tableName",
",",
"importDir",
",",
"failureDir",
",",
"setTime",
")... | Parameters:
- login
- tableName
- importDir
- failureDir
- setTime | [
"Parameters",
":",
"-",
"login",
"-",
"tableName",
"-",
"importDir",
"-",
"failureDir",
"-",
"setTime"
] | train | https://github.com/revelc/pyaccumulo/blob/8adcf535bb82ba69c749efce785c9efc487e85de/pyaccumulo/proxy/AccumuloProxy.py#L1393-L1403 |
revelc/pyaccumulo | pyaccumulo/proxy/AccumuloProxy.py | Client.importTable | def importTable(self, login, tableName, importDir):
"""
Parameters:
- login
- tableName
- importDir
"""
self.send_importTable(login, tableName, importDir)
self.recv_importTable() | python | def importTable(self, login, tableName, importDir):
"""
Parameters:
- login
- tableName
- importDir
"""
self.send_importTable(login, tableName, importDir)
self.recv_importTable() | [
"def",
"importTable",
"(",
"self",
",",
"login",
",",
"tableName",
",",
"importDir",
")",
":",
"self",
".",
"send_importTable",
"(",
"login",
",",
"tableName",
",",
"importDir",
")",
"self",
".",
"recv_importTable",
"(",
")"
] | Parameters:
- login
- tableName
- importDir | [
"Parameters",
":",
"-",
"login",
"-",
"tableName",
"-",
"importDir"
] | train | https://github.com/revelc/pyaccumulo/blob/8adcf535bb82ba69c749efce785c9efc487e85de/pyaccumulo/proxy/AccumuloProxy.py#L1435-L1443 |
revelc/pyaccumulo | pyaccumulo/proxy/AccumuloProxy.py | Client.listIterators | def listIterators(self, login, tableName):
"""
Parameters:
- login
- tableName
"""
self.send_listIterators(login, tableName)
return self.recv_listIterators() | python | def listIterators(self, login, tableName):
"""
Parameters:
- login
- tableName
"""
self.send_listIterators(login, tableName)
return self.recv_listIterators() | [
"def",
"listIterators",
"(",
"self",
",",
"login",
",",
"tableName",
")",
":",
"self",
".",
"send_listIterators",
"(",
"login",
",",
"tableName",
")",
"return",
"self",
".",
"recv_listIterators",
"(",
")"
] | Parameters:
- login
- tableName | [
"Parameters",
":",
"-",
"login",
"-",
"tableName"
] | train | https://github.com/revelc/pyaccumulo/blob/8adcf535bb82ba69c749efce785c9efc487e85de/pyaccumulo/proxy/AccumuloProxy.py#L1503-L1510 |
revelc/pyaccumulo | pyaccumulo/proxy/AccumuloProxy.py | Client.listConstraints | def listConstraints(self, login, tableName):
"""
Parameters:
- login
- tableName
"""
self.send_listConstraints(login, tableName)
return self.recv_listConstraints() | python | def listConstraints(self, login, tableName):
"""
Parameters:
- login
- tableName
"""
self.send_listConstraints(login, tableName)
return self.recv_listConstraints() | [
"def",
"listConstraints",
"(",
"self",
",",
"login",
",",
"tableName",
")",
":",
"self",
".",
"send_listConstraints",
"(",
"login",
",",
"tableName",
")",
"return",
"self",
".",
"recv_listConstraints",
"(",
")"
] | Parameters:
- login
- tableName | [
"Parameters",
":",
"-",
"login",
"-",
"tableName"
] | train | https://github.com/revelc/pyaccumulo/blob/8adcf535bb82ba69c749efce785c9efc487e85de/pyaccumulo/proxy/AccumuloProxy.py#L1541-L1548 |
revelc/pyaccumulo | pyaccumulo/proxy/AccumuloProxy.py | Client.mergeTablets | def mergeTablets(self, login, tableName, startRow, endRow):
"""
Parameters:
- login
- tableName
- startRow
- endRow
"""
self.send_mergeTablets(login, tableName, startRow, endRow)
self.recv_mergeTablets() | python | def mergeTablets(self, login, tableName, startRow, endRow):
"""
Parameters:
- login
- tableName
- startRow
- endRow
"""
self.send_mergeTablets(login, tableName, startRow, endRow)
self.recv_mergeTablets() | [
"def",
"mergeTablets",
"(",
"self",
",",
"login",
",",
"tableName",
",",
"startRow",
",",
"endRow",
")",
":",
"self",
".",
"send_mergeTablets",
"(",
"login",
",",
"tableName",
",",
"startRow",
",",
"endRow",
")",
"self",
".",
"recv_mergeTablets",
"(",
")"
... | Parameters:
- login
- tableName
- startRow
- endRow | [
"Parameters",
":",
"-",
"login",
"-",
"tableName",
"-",
"startRow",
"-",
"endRow"
] | train | https://github.com/revelc/pyaccumulo/blob/8adcf535bb82ba69c749efce785c9efc487e85de/pyaccumulo/proxy/AccumuloProxy.py#L1577-L1586 |
revelc/pyaccumulo | pyaccumulo/proxy/AccumuloProxy.py | Client.offlineTable | def offlineTable(self, login, tableName):
"""
Parameters:
- login
- tableName
"""
self.send_offlineTable(login, tableName)
self.recv_offlineTable() | python | def offlineTable(self, login, tableName):
"""
Parameters:
- login
- tableName
"""
self.send_offlineTable(login, tableName)
self.recv_offlineTable() | [
"def",
"offlineTable",
"(",
"self",
",",
"login",
",",
"tableName",
")",
":",
"self",
".",
"send_offlineTable",
"(",
"login",
",",
"tableName",
")",
"self",
".",
"recv_offlineTable",
"(",
")"
] | Parameters:
- login
- tableName | [
"Parameters",
":",
"-",
"login",
"-",
"tableName"
] | train | https://github.com/revelc/pyaccumulo/blob/8adcf535bb82ba69c749efce785c9efc487e85de/pyaccumulo/proxy/AccumuloProxy.py#L1617-L1624 |
revelc/pyaccumulo | pyaccumulo/proxy/AccumuloProxy.py | Client.onlineTable | def onlineTable(self, login, tableName):
"""
Parameters:
- login
- tableName
"""
self.send_onlineTable(login, tableName)
self.recv_onlineTable() | python | def onlineTable(self, login, tableName):
"""
Parameters:
- login
- tableName
"""
self.send_onlineTable(login, tableName)
self.recv_onlineTable() | [
"def",
"onlineTable",
"(",
"self",
",",
"login",
",",
"tableName",
")",
":",
"self",
".",
"send_onlineTable",
"(",
"login",
",",
"tableName",
")",
"self",
".",
"recv_onlineTable",
"(",
")"
] | Parameters:
- login
- tableName | [
"Parameters",
":",
"-",
"login",
"-",
"tableName"
] | train | https://github.com/revelc/pyaccumulo/blob/8adcf535bb82ba69c749efce785c9efc487e85de/pyaccumulo/proxy/AccumuloProxy.py#L1653-L1660 |
revelc/pyaccumulo | pyaccumulo/proxy/AccumuloProxy.py | Client.removeConstraint | def removeConstraint(self, login, tableName, constraint):
"""
Parameters:
- login
- tableName
- constraint
"""
self.send_removeConstraint(login, tableName, constraint)
self.recv_removeConstraint() | python | def removeConstraint(self, login, tableName, constraint):
"""
Parameters:
- login
- tableName
- constraint
"""
self.send_removeConstraint(login, tableName, constraint)
self.recv_removeConstraint() | [
"def",
"removeConstraint",
"(",
"self",
",",
"login",
",",
"tableName",
",",
"constraint",
")",
":",
"self",
".",
"send_removeConstraint",
"(",
"login",
",",
"tableName",
",",
"constraint",
")",
"self",
".",
"recv_removeConstraint",
"(",
")"
] | Parameters:
- login
- tableName
- constraint | [
"Parameters",
":",
"-",
"login",
"-",
"tableName",
"-",
"constraint"
] | train | https://github.com/revelc/pyaccumulo/blob/8adcf535bb82ba69c749efce785c9efc487e85de/pyaccumulo/proxy/AccumuloProxy.py#L1689-L1697 |
revelc/pyaccumulo | pyaccumulo/proxy/AccumuloProxy.py | Client.removeIterator | def removeIterator(self, login, tableName, iterName, scopes):
"""
Parameters:
- login
- tableName
- iterName
- scopes
"""
self.send_removeIterator(login, tableName, iterName, scopes)
self.recv_removeIterator() | python | def removeIterator(self, login, tableName, iterName, scopes):
"""
Parameters:
- login
- tableName
- iterName
- scopes
"""
self.send_removeIterator(login, tableName, iterName, scopes)
self.recv_removeIterator() | [
"def",
"removeIterator",
"(",
"self",
",",
"login",
",",
"tableName",
",",
"iterName",
",",
"scopes",
")",
":",
"self",
".",
"send_removeIterator",
"(",
"login",
",",
"tableName",
",",
"iterName",
",",
"scopes",
")",
"self",
".",
"recv_removeIterator",
"(",
... | Parameters:
- login
- tableName
- iterName
- scopes | [
"Parameters",
":",
"-",
"login",
"-",
"tableName",
"-",
"iterName",
"-",
"scopes"
] | train | https://github.com/revelc/pyaccumulo/blob/8adcf535bb82ba69c749efce785c9efc487e85de/pyaccumulo/proxy/AccumuloProxy.py#L1725-L1734 |
revelc/pyaccumulo | pyaccumulo/proxy/AccumuloProxy.py | Client.removeTableProperty | def removeTableProperty(self, login, tableName, property):
"""
Parameters:
- login
- tableName
- property
"""
self.send_removeTableProperty(login, tableName, property)
self.recv_removeTableProperty() | python | def removeTableProperty(self, login, tableName, property):
"""
Parameters:
- login
- tableName
- property
"""
self.send_removeTableProperty(login, tableName, property)
self.recv_removeTableProperty() | [
"def",
"removeTableProperty",
"(",
"self",
",",
"login",
",",
"tableName",
",",
"property",
")",
":",
"self",
".",
"send_removeTableProperty",
"(",
"login",
",",
"tableName",
",",
"property",
")",
"self",
".",
"recv_removeTableProperty",
"(",
")"
] | Parameters:
- login
- tableName
- property | [
"Parameters",
":",
"-",
"login",
"-",
"tableName",
"-",
"property"
] | train | https://github.com/revelc/pyaccumulo/blob/8adcf535bb82ba69c749efce785c9efc487e85de/pyaccumulo/proxy/AccumuloProxy.py#L1765-L1773 |
revelc/pyaccumulo | pyaccumulo/proxy/AccumuloProxy.py | Client.renameTable | def renameTable(self, login, oldTableName, newTableName):
"""
Parameters:
- login
- oldTableName
- newTableName
"""
self.send_renameTable(login, oldTableName, newTableName)
self.recv_renameTable() | python | def renameTable(self, login, oldTableName, newTableName):
"""
Parameters:
- login
- oldTableName
- newTableName
"""
self.send_renameTable(login, oldTableName, newTableName)
self.recv_renameTable() | [
"def",
"renameTable",
"(",
"self",
",",
"login",
",",
"oldTableName",
",",
"newTableName",
")",
":",
"self",
".",
"send_renameTable",
"(",
"login",
",",
"oldTableName",
",",
"newTableName",
")",
"self",
".",
"recv_renameTable",
"(",
")"
] | Parameters:
- login
- oldTableName
- newTableName | [
"Parameters",
":",
"-",
"login",
"-",
"oldTableName",
"-",
"newTableName"
] | train | https://github.com/revelc/pyaccumulo/blob/8adcf535bb82ba69c749efce785c9efc487e85de/pyaccumulo/proxy/AccumuloProxy.py#L1801-L1809 |
revelc/pyaccumulo | pyaccumulo/proxy/AccumuloProxy.py | Client.setLocalityGroups | def setLocalityGroups(self, login, tableName, groups):
"""
Parameters:
- login
- tableName
- groups
"""
self.send_setLocalityGroups(login, tableName, groups)
self.recv_setLocalityGroups() | python | def setLocalityGroups(self, login, tableName, groups):
"""
Parameters:
- login
- tableName
- groups
"""
self.send_setLocalityGroups(login, tableName, groups)
self.recv_setLocalityGroups() | [
"def",
"setLocalityGroups",
"(",
"self",
",",
"login",
",",
"tableName",
",",
"groups",
")",
":",
"self",
".",
"send_setLocalityGroups",
"(",
"login",
",",
"tableName",
",",
"groups",
")",
"self",
".",
"recv_setLocalityGroups",
"(",
")"
] | Parameters:
- login
- tableName
- groups | [
"Parameters",
":",
"-",
"login",
"-",
"tableName",
"-",
"groups"
] | train | https://github.com/revelc/pyaccumulo/blob/8adcf535bb82ba69c749efce785c9efc487e85de/pyaccumulo/proxy/AccumuloProxy.py#L1841-L1849 |
revelc/pyaccumulo | pyaccumulo/proxy/AccumuloProxy.py | Client.setTableProperty | def setTableProperty(self, login, tableName, property, value):
"""
Parameters:
- login
- tableName
- property
- value
"""
self.send_setTableProperty(login, tableName, property, value)
self.recv_setTableProperty() | python | def setTableProperty(self, login, tableName, property, value):
"""
Parameters:
- login
- tableName
- property
- value
"""
self.send_setTableProperty(login, tableName, property, value)
self.recv_setTableProperty() | [
"def",
"setTableProperty",
"(",
"self",
",",
"login",
",",
"tableName",
",",
"property",
",",
"value",
")",
":",
"self",
".",
"send_setTableProperty",
"(",
"login",
",",
"tableName",
",",
"property",
",",
"value",
")",
"self",
".",
"recv_setTableProperty",
"... | Parameters:
- login
- tableName
- property
- value | [
"Parameters",
":",
"-",
"login",
"-",
"tableName",
"-",
"property",
"-",
"value"
] | train | https://github.com/revelc/pyaccumulo/blob/8adcf535bb82ba69c749efce785c9efc487e85de/pyaccumulo/proxy/AccumuloProxy.py#L1879-L1888 |
revelc/pyaccumulo | pyaccumulo/proxy/AccumuloProxy.py | Client.splitRangeByTablets | def splitRangeByTablets(self, login, tableName, range, maxSplits):
"""
Parameters:
- login
- tableName
- range
- maxSplits
"""
self.send_splitRangeByTablets(login, tableName, range, maxSplits)
return self.recv_splitRangeByTablets() | python | def splitRangeByTablets(self, login, tableName, range, maxSplits):
"""
Parameters:
- login
- tableName
- range
- maxSplits
"""
self.send_splitRangeByTablets(login, tableName, range, maxSplits)
return self.recv_splitRangeByTablets() | [
"def",
"splitRangeByTablets",
"(",
"self",
",",
"login",
",",
"tableName",
",",
"range",
",",
"maxSplits",
")",
":",
"self",
".",
"send_splitRangeByTablets",
"(",
"login",
",",
"tableName",
",",
"range",
",",
"maxSplits",
")",
"return",
"self",
".",
"recv_sp... | Parameters:
- login
- tableName
- range
- maxSplits | [
"Parameters",
":",
"-",
"login",
"-",
"tableName",
"-",
"range",
"-",
"maxSplits"
] | train | https://github.com/revelc/pyaccumulo/blob/8adcf535bb82ba69c749efce785c9efc487e85de/pyaccumulo/proxy/AccumuloProxy.py#L1917-L1926 |
revelc/pyaccumulo | pyaccumulo/proxy/AccumuloProxy.py | Client.tableExists | def tableExists(self, login, tableName):
"""
Parameters:
- login
- tableName
"""
self.send_tableExists(login, tableName)
return self.recv_tableExists() | python | def tableExists(self, login, tableName):
"""
Parameters:
- login
- tableName
"""
self.send_tableExists(login, tableName)
return self.recv_tableExists() | [
"def",
"tableExists",
"(",
"self",
",",
"login",
",",
"tableName",
")",
":",
"self",
".",
"send_tableExists",
"(",
"login",
",",
"tableName",
")",
"return",
"self",
".",
"recv_tableExists",
"(",
")"
] | Parameters:
- login
- tableName | [
"Parameters",
":",
"-",
"login",
"-",
"tableName"
] | train | https://github.com/revelc/pyaccumulo/blob/8adcf535bb82ba69c749efce785c9efc487e85de/pyaccumulo/proxy/AccumuloProxy.py#L1959-L1966 |
revelc/pyaccumulo | pyaccumulo/proxy/AccumuloProxy.py | Client.pingTabletServer | def pingTabletServer(self, login, tserver):
"""
Parameters:
- login
- tserver
"""
self.send_pingTabletServer(login, tserver)
self.recv_pingTabletServer() | python | def pingTabletServer(self, login, tserver):
"""
Parameters:
- login
- tserver
"""
self.send_pingTabletServer(login, tserver)
self.recv_pingTabletServer() | [
"def",
"pingTabletServer",
"(",
"self",
",",
"login",
",",
"tserver",
")",
":",
"self",
".",
"send_pingTabletServer",
"(",
"login",
",",
"tserver",
")",
"self",
".",
"recv_pingTabletServer",
"(",
")"
] | Parameters:
- login
- tserver | [
"Parameters",
":",
"-",
"login",
"-",
"tserver"
] | train | https://github.com/revelc/pyaccumulo/blob/8adcf535bb82ba69c749efce785c9efc487e85de/pyaccumulo/proxy/AccumuloProxy.py#L2021-L2028 |
revelc/pyaccumulo | pyaccumulo/proxy/AccumuloProxy.py | Client.getActiveScans | def getActiveScans(self, login, tserver):
"""
Parameters:
- login
- tserver
"""
self.send_getActiveScans(login, tserver)
return self.recv_getActiveScans() | python | def getActiveScans(self, login, tserver):
"""
Parameters:
- login
- tserver
"""
self.send_getActiveScans(login, tserver)
return self.recv_getActiveScans() | [
"def",
"getActiveScans",
"(",
"self",
",",
"login",
",",
"tserver",
")",
":",
"self",
".",
"send_getActiveScans",
"(",
"login",
",",
"tserver",
")",
"return",
"self",
".",
"recv_getActiveScans",
"(",
")"
] | Parameters:
- login
- tserver | [
"Parameters",
":",
"-",
"login",
"-",
"tserver"
] | train | https://github.com/revelc/pyaccumulo/blob/8adcf535bb82ba69c749efce785c9efc487e85de/pyaccumulo/proxy/AccumuloProxy.py#L2055-L2062 |
revelc/pyaccumulo | pyaccumulo/proxy/AccumuloProxy.py | Client.getActiveCompactions | def getActiveCompactions(self, login, tserver):
"""
Parameters:
- login
- tserver
"""
self.send_getActiveCompactions(login, tserver)
return self.recv_getActiveCompactions() | python | def getActiveCompactions(self, login, tserver):
"""
Parameters:
- login
- tserver
"""
self.send_getActiveCompactions(login, tserver)
return self.recv_getActiveCompactions() | [
"def",
"getActiveCompactions",
"(",
"self",
",",
"login",
",",
"tserver",
")",
":",
"self",
".",
"send_getActiveCompactions",
"(",
"login",
",",
"tserver",
")",
"return",
"self",
".",
"recv_getActiveCompactions",
"(",
")"
] | Parameters:
- login
- tserver | [
"Parameters",
":",
"-",
"login",
"-",
"tserver"
] | train | https://github.com/revelc/pyaccumulo/blob/8adcf535bb82ba69c749efce785c9efc487e85de/pyaccumulo/proxy/AccumuloProxy.py#L2091-L2098 |
revelc/pyaccumulo | pyaccumulo/proxy/AccumuloProxy.py | Client.removeProperty | def removeProperty(self, login, property):
"""
Parameters:
- login
- property
"""
self.send_removeProperty(login, property)
self.recv_removeProperty() | python | def removeProperty(self, login, property):
"""
Parameters:
- login
- property
"""
self.send_removeProperty(login, property)
self.recv_removeProperty() | [
"def",
"removeProperty",
"(",
"self",
",",
"login",
",",
"property",
")",
":",
"self",
".",
"send_removeProperty",
"(",
"login",
",",
"property",
")",
"self",
".",
"recv_removeProperty",
"(",
")"
] | Parameters:
- login
- property | [
"Parameters",
":",
"-",
"login",
"-",
"property"
] | train | https://github.com/revelc/pyaccumulo/blob/8adcf535bb82ba69c749efce785c9efc487e85de/pyaccumulo/proxy/AccumuloProxy.py#L2225-L2232 |
revelc/pyaccumulo | pyaccumulo/proxy/AccumuloProxy.py | Client.setProperty | def setProperty(self, login, property, value):
"""
Parameters:
- login
- property
- value
"""
self.send_setProperty(login, property, value)
self.recv_setProperty() | python | def setProperty(self, login, property, value):
"""
Parameters:
- login
- property
- value
"""
self.send_setProperty(login, property, value)
self.recv_setProperty() | [
"def",
"setProperty",
"(",
"self",
",",
"login",
",",
"property",
",",
"value",
")",
":",
"self",
".",
"send_setProperty",
"(",
"login",
",",
"property",
",",
"value",
")",
"self",
".",
"recv_setProperty",
"(",
")"
] | Parameters:
- login
- property
- value | [
"Parameters",
":",
"-",
"login",
"-",
"property",
"-",
"value"
] | train | https://github.com/revelc/pyaccumulo/blob/8adcf535bb82ba69c749efce785c9efc487e85de/pyaccumulo/proxy/AccumuloProxy.py#L2259-L2267 |
revelc/pyaccumulo | pyaccumulo/proxy/AccumuloProxy.py | Client.authenticateUser | def authenticateUser(self, login, user, properties):
"""
Parameters:
- login
- user
- properties
"""
self.send_authenticateUser(login, user, properties)
return self.recv_authenticateUser() | python | def authenticateUser(self, login, user, properties):
"""
Parameters:
- login
- user
- properties
"""
self.send_authenticateUser(login, user, properties)
return self.recv_authenticateUser() | [
"def",
"authenticateUser",
"(",
"self",
",",
"login",
",",
"user",
",",
"properties",
")",
":",
"self",
".",
"send_authenticateUser",
"(",
"login",
",",
"user",
",",
"properties",
")",
"return",
"self",
".",
"recv_authenticateUser",
"(",
")"
] | Parameters:
- login
- user
- properties | [
"Parameters",
":",
"-",
"login",
"-",
"user",
"-",
"properties"
] | train | https://github.com/revelc/pyaccumulo/blob/8adcf535bb82ba69c749efce785c9efc487e85de/pyaccumulo/proxy/AccumuloProxy.py#L2333-L2341 |
revelc/pyaccumulo | pyaccumulo/proxy/AccumuloProxy.py | Client.changeUserAuthorizations | def changeUserAuthorizations(self, login, user, authorizations):
"""
Parameters:
- login
- user
- authorizations
"""
self.send_changeUserAuthorizations(login, user, authorizations)
self.recv_changeUserAuthorizations() | python | def changeUserAuthorizations(self, login, user, authorizations):
"""
Parameters:
- login
- user
- authorizations
"""
self.send_changeUserAuthorizations(login, user, authorizations)
self.recv_changeUserAuthorizations() | [
"def",
"changeUserAuthorizations",
"(",
"self",
",",
"login",
",",
"user",
",",
"authorizations",
")",
":",
"self",
".",
"send_changeUserAuthorizations",
"(",
"login",
",",
"user",
",",
"authorizations",
")",
"self",
".",
"recv_changeUserAuthorizations",
"(",
")"
... | Parameters:
- login
- user
- authorizations | [
"Parameters",
":",
"-",
"login",
"-",
"user",
"-",
"authorizations"
] | train | https://github.com/revelc/pyaccumulo/blob/8adcf535bb82ba69c749efce785c9efc487e85de/pyaccumulo/proxy/AccumuloProxy.py#L2371-L2379 |
revelc/pyaccumulo | pyaccumulo/proxy/AccumuloProxy.py | Client.changeLocalUserPassword | def changeLocalUserPassword(self, login, user, password):
"""
Parameters:
- login
- user
- password
"""
self.send_changeLocalUserPassword(login, user, password)
self.recv_changeLocalUserPassword() | python | def changeLocalUserPassword(self, login, user, password):
"""
Parameters:
- login
- user
- password
"""
self.send_changeLocalUserPassword(login, user, password)
self.recv_changeLocalUserPassword() | [
"def",
"changeLocalUserPassword",
"(",
"self",
",",
"login",
",",
"user",
",",
"password",
")",
":",
"self",
".",
"send_changeLocalUserPassword",
"(",
"login",
",",
"user",
",",
"password",
")",
"self",
".",
"recv_changeLocalUserPassword",
"(",
")"
] | Parameters:
- login
- user
- password | [
"Parameters",
":",
"-",
"login",
"-",
"user",
"-",
"password"
] | train | https://github.com/revelc/pyaccumulo/blob/8adcf535bb82ba69c749efce785c9efc487e85de/pyaccumulo/proxy/AccumuloProxy.py#L2407-L2415 |
revelc/pyaccumulo | pyaccumulo/proxy/AccumuloProxy.py | Client.createLocalUser | def createLocalUser(self, login, user, password):
"""
Parameters:
- login
- user
- password
"""
self.send_createLocalUser(login, user, password)
self.recv_createLocalUser() | python | def createLocalUser(self, login, user, password):
"""
Parameters:
- login
- user
- password
"""
self.send_createLocalUser(login, user, password)
self.recv_createLocalUser() | [
"def",
"createLocalUser",
"(",
"self",
",",
"login",
",",
"user",
",",
"password",
")",
":",
"self",
".",
"send_createLocalUser",
"(",
"login",
",",
"user",
",",
"password",
")",
"self",
".",
"recv_createLocalUser",
"(",
")"
] | Parameters:
- login
- user
- password | [
"Parameters",
":",
"-",
"login",
"-",
"user",
"-",
"password"
] | train | https://github.com/revelc/pyaccumulo/blob/8adcf535bb82ba69c749efce785c9efc487e85de/pyaccumulo/proxy/AccumuloProxy.py#L2443-L2451 |
revelc/pyaccumulo | pyaccumulo/proxy/AccumuloProxy.py | Client.dropLocalUser | def dropLocalUser(self, login, user):
"""
Parameters:
- login
- user
"""
self.send_dropLocalUser(login, user)
self.recv_dropLocalUser() | python | def dropLocalUser(self, login, user):
"""
Parameters:
- login
- user
"""
self.send_dropLocalUser(login, user)
self.recv_dropLocalUser() | [
"def",
"dropLocalUser",
"(",
"self",
",",
"login",
",",
"user",
")",
":",
"self",
".",
"send_dropLocalUser",
"(",
"login",
",",
"user",
")",
"self",
".",
"recv_dropLocalUser",
"(",
")"
] | Parameters:
- login
- user | [
"Parameters",
":",
"-",
"login",
"-",
"user"
] | train | https://github.com/revelc/pyaccumulo/blob/8adcf535bb82ba69c749efce785c9efc487e85de/pyaccumulo/proxy/AccumuloProxy.py#L2479-L2486 |
revelc/pyaccumulo | pyaccumulo/proxy/AccumuloProxy.py | Client.getUserAuthorizations | def getUserAuthorizations(self, login, user):
"""
Parameters:
- login
- user
"""
self.send_getUserAuthorizations(login, user)
return self.recv_getUserAuthorizations() | python | def getUserAuthorizations(self, login, user):
"""
Parameters:
- login
- user
"""
self.send_getUserAuthorizations(login, user)
return self.recv_getUserAuthorizations() | [
"def",
"getUserAuthorizations",
"(",
"self",
",",
"login",
",",
"user",
")",
":",
"self",
".",
"send_getUserAuthorizations",
"(",
"login",
",",
"user",
")",
"return",
"self",
".",
"recv_getUserAuthorizations",
"(",
")"
] | Parameters:
- login
- user | [
"Parameters",
":",
"-",
"login",
"-",
"user"
] | train | https://github.com/revelc/pyaccumulo/blob/8adcf535bb82ba69c749efce785c9efc487e85de/pyaccumulo/proxy/AccumuloProxy.py#L2513-L2520 |
revelc/pyaccumulo | pyaccumulo/proxy/AccumuloProxy.py | Client.grantSystemPermission | def grantSystemPermission(self, login, user, perm):
"""
Parameters:
- login
- user
- perm
"""
self.send_grantSystemPermission(login, user, perm)
self.recv_grantSystemPermission() | python | def grantSystemPermission(self, login, user, perm):
"""
Parameters:
- login
- user
- perm
"""
self.send_grantSystemPermission(login, user, perm)
self.recv_grantSystemPermission() | [
"def",
"grantSystemPermission",
"(",
"self",
",",
"login",
",",
"user",
",",
"perm",
")",
":",
"self",
".",
"send_grantSystemPermission",
"(",
"login",
",",
"user",
",",
"perm",
")",
"self",
".",
"recv_grantSystemPermission",
"(",
")"
] | Parameters:
- login
- user
- perm | [
"Parameters",
":",
"-",
"login",
"-",
"user",
"-",
"perm"
] | train | https://github.com/revelc/pyaccumulo/blob/8adcf535bb82ba69c749efce785c9efc487e85de/pyaccumulo/proxy/AccumuloProxy.py#L2549-L2557 |
revelc/pyaccumulo | pyaccumulo/proxy/AccumuloProxy.py | Client.grantTablePermission | def grantTablePermission(self, login, user, table, perm):
"""
Parameters:
- login
- user
- table
- perm
"""
self.send_grantTablePermission(login, user, table, perm)
self.recv_grantTablePermission() | python | def grantTablePermission(self, login, user, table, perm):
"""
Parameters:
- login
- user
- table
- perm
"""
self.send_grantTablePermission(login, user, table, perm)
self.recv_grantTablePermission() | [
"def",
"grantTablePermission",
"(",
"self",
",",
"login",
",",
"user",
",",
"table",
",",
"perm",
")",
":",
"self",
".",
"send_grantTablePermission",
"(",
"login",
",",
"user",
",",
"table",
",",
"perm",
")",
"self",
".",
"recv_grantTablePermission",
"(",
... | Parameters:
- login
- user
- table
- perm | [
"Parameters",
":",
"-",
"login",
"-",
"user",
"-",
"table",
"-",
"perm"
] | train | https://github.com/revelc/pyaccumulo/blob/8adcf535bb82ba69c749efce785c9efc487e85de/pyaccumulo/proxy/AccumuloProxy.py#L2585-L2594 |
revelc/pyaccumulo | pyaccumulo/proxy/AccumuloProxy.py | Client.hasSystemPermission | def hasSystemPermission(self, login, user, perm):
"""
Parameters:
- login
- user
- perm
"""
self.send_hasSystemPermission(login, user, perm)
return self.recv_hasSystemPermission() | python | def hasSystemPermission(self, login, user, perm):
"""
Parameters:
- login
- user
- perm
"""
self.send_hasSystemPermission(login, user, perm)
return self.recv_hasSystemPermission() | [
"def",
"hasSystemPermission",
"(",
"self",
",",
"login",
",",
"user",
",",
"perm",
")",
":",
"self",
".",
"send_hasSystemPermission",
"(",
"login",
",",
"user",
",",
"perm",
")",
"return",
"self",
".",
"recv_hasSystemPermission",
"(",
")"
] | Parameters:
- login
- user
- perm | [
"Parameters",
":",
"-",
"login",
"-",
"user",
"-",
"perm"
] | train | https://github.com/revelc/pyaccumulo/blob/8adcf535bb82ba69c749efce785c9efc487e85de/pyaccumulo/proxy/AccumuloProxy.py#L2623-L2631 |
revelc/pyaccumulo | pyaccumulo/proxy/AccumuloProxy.py | Client.hasTablePermission | def hasTablePermission(self, login, user, table, perm):
"""
Parameters:
- login
- user
- table
- perm
"""
self.send_hasTablePermission(login, user, table, perm)
return self.recv_hasTablePermission() | python | def hasTablePermission(self, login, user, table, perm):
"""
Parameters:
- login
- user
- table
- perm
"""
self.send_hasTablePermission(login, user, table, perm)
return self.recv_hasTablePermission() | [
"def",
"hasTablePermission",
"(",
"self",
",",
"login",
",",
"user",
",",
"table",
",",
"perm",
")",
":",
"self",
".",
"send_hasTablePermission",
"(",
"login",
",",
"user",
",",
"table",
",",
"perm",
")",
"return",
"self",
".",
"recv_hasTablePermission",
"... | Parameters:
- login
- user
- table
- perm | [
"Parameters",
":",
"-",
"login",
"-",
"user",
"-",
"table",
"-",
"perm"
] | train | https://github.com/revelc/pyaccumulo/blob/8adcf535bb82ba69c749efce785c9efc487e85de/pyaccumulo/proxy/AccumuloProxy.py#L2661-L2670 |
revelc/pyaccumulo | pyaccumulo/proxy/AccumuloProxy.py | Client.revokeSystemPermission | def revokeSystemPermission(self, login, user, perm):
"""
Parameters:
- login
- user
- perm
"""
self.send_revokeSystemPermission(login, user, perm)
self.recv_revokeSystemPermission() | python | def revokeSystemPermission(self, login, user, perm):
"""
Parameters:
- login
- user
- perm
"""
self.send_revokeSystemPermission(login, user, perm)
self.recv_revokeSystemPermission() | [
"def",
"revokeSystemPermission",
"(",
"self",
",",
"login",
",",
"user",
",",
"perm",
")",
":",
"self",
".",
"send_revokeSystemPermission",
"(",
"login",
",",
"user",
",",
"perm",
")",
"self",
".",
"recv_revokeSystemPermission",
"(",
")"
] | Parameters:
- login
- user
- perm | [
"Parameters",
":",
"-",
"login",
"-",
"user",
"-",
"perm"
] | train | https://github.com/revelc/pyaccumulo/blob/8adcf535bb82ba69c749efce785c9efc487e85de/pyaccumulo/proxy/AccumuloProxy.py#L2735-L2743 |
revelc/pyaccumulo | pyaccumulo/proxy/AccumuloProxy.py | Client.revokeTablePermission | def revokeTablePermission(self, login, user, table, perm):
"""
Parameters:
- login
- user
- table
- perm
"""
self.send_revokeTablePermission(login, user, table, perm)
self.recv_revokeTablePermission() | python | def revokeTablePermission(self, login, user, table, perm):
"""
Parameters:
- login
- user
- table
- perm
"""
self.send_revokeTablePermission(login, user, table, perm)
self.recv_revokeTablePermission() | [
"def",
"revokeTablePermission",
"(",
"self",
",",
"login",
",",
"user",
",",
"table",
",",
"perm",
")",
":",
"self",
".",
"send_revokeTablePermission",
"(",
"login",
",",
"user",
",",
"table",
",",
"perm",
")",
"self",
".",
"recv_revokeTablePermission",
"(",... | Parameters:
- login
- user
- table
- perm | [
"Parameters",
":",
"-",
"login",
"-",
"user",
"-",
"table",
"-",
"perm"
] | train | https://github.com/revelc/pyaccumulo/blob/8adcf535bb82ba69c749efce785c9efc487e85de/pyaccumulo/proxy/AccumuloProxy.py#L2771-L2780 |
revelc/pyaccumulo | pyaccumulo/proxy/AccumuloProxy.py | Client.createBatchScanner | def createBatchScanner(self, login, tableName, options):
"""
Parameters:
- login
- tableName
- options
"""
self.send_createBatchScanner(login, tableName, options)
return self.recv_createBatchScanner() | python | def createBatchScanner(self, login, tableName, options):
"""
Parameters:
- login
- tableName
- options
"""
self.send_createBatchScanner(login, tableName, options)
return self.recv_createBatchScanner() | [
"def",
"createBatchScanner",
"(",
"self",
",",
"login",
",",
"tableName",
",",
"options",
")",
":",
"self",
".",
"send_createBatchScanner",
"(",
"login",
",",
"tableName",
",",
"options",
")",
"return",
"self",
".",
"recv_createBatchScanner",
"(",
")"
] | Parameters:
- login
- tableName
- options | [
"Parameters",
":",
"-",
"login",
"-",
"tableName",
"-",
"options"
] | train | https://github.com/revelc/pyaccumulo/blob/8adcf535bb82ba69c749efce785c9efc487e85de/pyaccumulo/proxy/AccumuloProxy.py#L2809-L2817 |
revelc/pyaccumulo | pyaccumulo/proxy/AccumuloProxy.py | Client.createScanner | def createScanner(self, login, tableName, options):
"""
Parameters:
- login
- tableName
- options
"""
self.send_createScanner(login, tableName, options)
return self.recv_createScanner() | python | def createScanner(self, login, tableName, options):
"""
Parameters:
- login
- tableName
- options
"""
self.send_createScanner(login, tableName, options)
return self.recv_createScanner() | [
"def",
"createScanner",
"(",
"self",
",",
"login",
",",
"tableName",
",",
"options",
")",
":",
"self",
".",
"send_createScanner",
"(",
"login",
",",
"tableName",
",",
"options",
")",
"return",
"self",
".",
"recv_createScanner",
"(",
")"
] | Parameters:
- login
- tableName
- options | [
"Parameters",
":",
"-",
"login",
"-",
"tableName",
"-",
"options"
] | train | https://github.com/revelc/pyaccumulo/blob/8adcf535bb82ba69c749efce785c9efc487e85de/pyaccumulo/proxy/AccumuloProxy.py#L2847-L2855 |
revelc/pyaccumulo | pyaccumulo/proxy/AccumuloProxy.py | Client.nextK | def nextK(self, scanner, k):
"""
Parameters:
- scanner
- k
"""
self.send_nextK(scanner, k)
return self.recv_nextK() | python | def nextK(self, scanner, k):
"""
Parameters:
- scanner
- k
"""
self.send_nextK(scanner, k)
return self.recv_nextK() | [
"def",
"nextK",
"(",
"self",
",",
"scanner",
",",
"k",
")",
":",
"self",
".",
"send_nextK",
"(",
"scanner",
",",
"k",
")",
"return",
"self",
".",
"recv_nextK",
"(",
")"
] | Parameters:
- scanner
- k | [
"Parameters",
":",
"-",
"scanner",
"-",
"k"
] | train | https://github.com/revelc/pyaccumulo/blob/8adcf535bb82ba69c749efce785c9efc487e85de/pyaccumulo/proxy/AccumuloProxy.py#L2953-L2960 |
revelc/pyaccumulo | pyaccumulo/proxy/AccumuloProxy.py | Client.updateAndFlush | def updateAndFlush(self, login, tableName, cells):
"""
Parameters:
- login
- tableName
- cells
"""
self.send_updateAndFlush(login, tableName, cells)
self.recv_updateAndFlush() | python | def updateAndFlush(self, login, tableName, cells):
"""
Parameters:
- login
- tableName
- cells
"""
self.send_updateAndFlush(login, tableName, cells)
self.recv_updateAndFlush() | [
"def",
"updateAndFlush",
"(",
"self",
",",
"login",
",",
"tableName",
",",
"cells",
")",
":",
"self",
".",
"send_updateAndFlush",
"(",
"login",
",",
"tableName",
",",
"cells",
")",
"self",
".",
"recv_updateAndFlush",
"(",
")"
] | Parameters:
- login
- tableName
- cells | [
"Parameters",
":",
"-",
"login",
"-",
"tableName",
"-",
"cells"
] | train | https://github.com/revelc/pyaccumulo/blob/8adcf535bb82ba69c749efce785c9efc487e85de/pyaccumulo/proxy/AccumuloProxy.py#L3021-L3029 |
revelc/pyaccumulo | pyaccumulo/proxy/AccumuloProxy.py | Client.createWriter | def createWriter(self, login, tableName, opts):
"""
Parameters:
- login
- tableName
- opts
"""
self.send_createWriter(login, tableName, opts)
return self.recv_createWriter() | python | def createWriter(self, login, tableName, opts):
"""
Parameters:
- login
- tableName
- opts
"""
self.send_createWriter(login, tableName, opts)
return self.recv_createWriter() | [
"def",
"createWriter",
"(",
"self",
",",
"login",
",",
"tableName",
",",
"opts",
")",
":",
"self",
".",
"send_createWriter",
"(",
"login",
",",
"tableName",
",",
"opts",
")",
"return",
"self",
".",
"recv_createWriter",
"(",
")"
] | Parameters:
- login
- tableName
- opts | [
"Parameters",
":",
"-",
"login",
"-",
"tableName",
"-",
"opts"
] | train | https://github.com/revelc/pyaccumulo/blob/8adcf535bb82ba69c749efce785c9efc487e85de/pyaccumulo/proxy/AccumuloProxy.py#L3057-L3065 |
revelc/pyaccumulo | pyaccumulo/proxy/AccumuloProxy.py | Client.getFollowing | def getFollowing(self, key, part):
"""
Parameters:
- key
- part
"""
self.send_getFollowing(key, part)
return self.recv_getFollowing() | python | def getFollowing(self, key, part):
"""
Parameters:
- key
- part
"""
self.send_getFollowing(key, part)
return self.recv_getFollowing() | [
"def",
"getFollowing",
"(",
"self",
",",
"key",
",",
"part",
")",
":",
"self",
".",
"send_getFollowing",
"(",
"key",
",",
"part",
")",
"return",
"self",
".",
"recv_getFollowing",
"(",
")"
] | Parameters:
- key
- part | [
"Parameters",
":",
"-",
"key",
"-",
"part"
] | train | https://github.com/revelc/pyaccumulo/blob/8adcf535bb82ba69c749efce785c9efc487e85de/pyaccumulo/proxy/AccumuloProxy.py#L3205-L3212 |
fabaff/python-mystrom | pymystrom/switch.py | MyStromPlug.set_relay_on | def set_relay_on(self):
"""Turn the relay on."""
if not self.get_relay_state():
try:
request = requests.get(
'{}/relay'.format(self.resource), params={'state': '1'},
timeout=self.timeout)
if request.status_code == 200:
... | python | def set_relay_on(self):
"""Turn the relay on."""
if not self.get_relay_state():
try:
request = requests.get(
'{}/relay'.format(self.resource), params={'state': '1'},
timeout=self.timeout)
if request.status_code == 200:
... | [
"def",
"set_relay_on",
"(",
"self",
")",
":",
"if",
"not",
"self",
".",
"get_relay_state",
"(",
")",
":",
"try",
":",
"request",
"=",
"requests",
".",
"get",
"(",
"'{}/relay'",
".",
"format",
"(",
"self",
".",
"resource",
")",
",",
"params",
"=",
"{"... | Turn the relay on. | [
"Turn",
"the",
"relay",
"on",
"."
] | train | https://github.com/fabaff/python-mystrom/blob/86410f8952104651ef76ad37c84c29740c50551e/pymystrom/switch.py#L23-L33 |
fabaff/python-mystrom | pymystrom/switch.py | MyStromPlug.set_relay_off | def set_relay_off(self):
"""Turn the relay off."""
if self.get_relay_state():
try:
request = requests.get(
'{}/relay'.format(self.resource), params={'state': '0'},
timeout=self.timeout)
if request.status_code == 200:
... | python | def set_relay_off(self):
"""Turn the relay off."""
if self.get_relay_state():
try:
request = requests.get(
'{}/relay'.format(self.resource), params={'state': '0'},
timeout=self.timeout)
if request.status_code == 200:
... | [
"def",
"set_relay_off",
"(",
"self",
")",
":",
"if",
"self",
".",
"get_relay_state",
"(",
")",
":",
"try",
":",
"request",
"=",
"requests",
".",
"get",
"(",
"'{}/relay'",
".",
"format",
"(",
"self",
".",
"resource",
")",
",",
"params",
"=",
"{",
"'st... | Turn the relay off. | [
"Turn",
"the",
"relay",
"off",
"."
] | train | https://github.com/fabaff/python-mystrom/blob/86410f8952104651ef76ad37c84c29740c50551e/pymystrom/switch.py#L35-L45 |
fabaff/python-mystrom | pymystrom/switch.py | MyStromPlug.get_relay_state | def get_relay_state(self):
"""Get the relay state."""
self.get_status()
try:
self.state = self.data['relay']
except TypeError:
self.state = False
return bool(self.state) | python | def get_relay_state(self):
"""Get the relay state."""
self.get_status()
try:
self.state = self.data['relay']
except TypeError:
self.state = False
return bool(self.state) | [
"def",
"get_relay_state",
"(",
"self",
")",
":",
"self",
".",
"get_status",
"(",
")",
"try",
":",
"self",
".",
"state",
"=",
"self",
".",
"data",
"[",
"'relay'",
"]",
"except",
"TypeError",
":",
"self",
".",
"state",
"=",
"False",
"return",
"bool",
"... | Get the relay state. | [
"Get",
"the",
"relay",
"state",
"."
] | train | https://github.com/fabaff/python-mystrom/blob/86410f8952104651ef76ad37c84c29740c50551e/pymystrom/switch.py#L57-L65 |
fabaff/python-mystrom | pymystrom/switch.py | MyStromPlug.get_consumption | def get_consumption(self):
"""Get current power consumption in mWh."""
self.get_status()
try:
self.consumption = self.data['power']
except TypeError:
self.consumption = 0
return self.consumption | python | def get_consumption(self):
"""Get current power consumption in mWh."""
self.get_status()
try:
self.consumption = self.data['power']
except TypeError:
self.consumption = 0
return self.consumption | [
"def",
"get_consumption",
"(",
"self",
")",
":",
"self",
".",
"get_status",
"(",
")",
"try",
":",
"self",
".",
"consumption",
"=",
"self",
".",
"data",
"[",
"'power'",
"]",
"except",
"TypeError",
":",
"self",
".",
"consumption",
"=",
"0",
"return",
"se... | Get current power consumption in mWh. | [
"Get",
"current",
"power",
"consumption",
"in",
"mWh",
"."
] | train | https://github.com/fabaff/python-mystrom/blob/86410f8952104651ef76ad37c84c29740c50551e/pymystrom/switch.py#L67-L75 |
fabaff/python-mystrom | pymystrom/switch.py | MyStromPlug.get_temperature | def get_temperature(self):
"""Get current temperature in celsius."""
try:
request = requests.get(
'{}/temp'.format(self.resource), timeout=self.timeout, allow_redirects=False)
self.temperature = request.json()['compensated']
return self.temperature
... | python | def get_temperature(self):
"""Get current temperature in celsius."""
try:
request = requests.get(
'{}/temp'.format(self.resource), timeout=self.timeout, allow_redirects=False)
self.temperature = request.json()['compensated']
return self.temperature
... | [
"def",
"get_temperature",
"(",
"self",
")",
":",
"try",
":",
"request",
"=",
"requests",
".",
"get",
"(",
"'{}/temp'",
".",
"format",
"(",
"self",
".",
"resource",
")",
",",
"timeout",
"=",
"self",
".",
"timeout",
",",
"allow_redirects",
"=",
"False",
... | Get current temperature in celsius. | [
"Get",
"current",
"temperature",
"in",
"celsius",
"."
] | train | https://github.com/fabaff/python-mystrom/blob/86410f8952104651ef76ad37c84c29740c50551e/pymystrom/switch.py#L77-L87 |
mdscruggs/ga | ga/examples/biggest_multiple.py | BiggestMultipleGA.eval_fitness | def eval_fitness(self, chromosome):
"""
Convert a 1-gene chromosome into an integer and calculate its fitness
by checking it against each required factor.
return: fitness value
"""
score = 0
number = self.translator.translate_gene(chromosome.genes[0])
... | python | def eval_fitness(self, chromosome):
"""
Convert a 1-gene chromosome into an integer and calculate its fitness
by checking it against each required factor.
return: fitness value
"""
score = 0
number = self.translator.translate_gene(chromosome.genes[0])
... | [
"def",
"eval_fitness",
"(",
"self",
",",
"chromosome",
")",
":",
"score",
"=",
"0",
"number",
"=",
"self",
".",
"translator",
".",
"translate_gene",
"(",
"chromosome",
".",
"genes",
"[",
"0",
"]",
")",
"for",
"factor",
"in",
"self",
".",
"factors",
":"... | Convert a 1-gene chromosome into an integer and calculate its fitness
by checking it against each required factor.
return: fitness value | [
"Convert",
"a",
"1",
"-",
"gene",
"chromosome",
"into",
"an",
"integer",
"and",
"calculate",
"its",
"fitness",
"by",
"checking",
"it",
"against",
"each",
"required",
"factor",
"."
] | train | https://github.com/mdscruggs/ga/blob/adac7a004e5e22d888e44ab39f313064c3803b38/ga/examples/biggest_multiple.py#L43-L71 |
fabaff/python-mystrom | pymystrom/bulb.py | MyStromBulb.get_status | def get_status(self):
"""Get the details from the bulb."""
try:
request = requests.get(
'{}/{}/'.format(self.resource, URI), timeout=self.timeout)
raw_data = request.json()
# Doesn't always work !!!!!
#self._mac = next(iter(self.raw_data))
... | python | def get_status(self):
"""Get the details from the bulb."""
try:
request = requests.get(
'{}/{}/'.format(self.resource, URI), timeout=self.timeout)
raw_data = request.json()
# Doesn't always work !!!!!
#self._mac = next(iter(self.raw_data))
... | [
"def",
"get_status",
"(",
"self",
")",
":",
"try",
":",
"request",
"=",
"requests",
".",
"get",
"(",
"'{}/{}/'",
".",
"format",
"(",
"self",
".",
"resource",
",",
"URI",
")",
",",
"timeout",
"=",
"self",
".",
"timeout",
")",
"raw_data",
"=",
"request... | Get the details from the bulb. | [
"Get",
"the",
"details",
"from",
"the",
"bulb",
"."
] | train | https://github.com/fabaff/python-mystrom/blob/86410f8952104651ef76ad37c84c29740c50551e/pymystrom/bulb.py#L31-L42 |
fabaff/python-mystrom | pymystrom/bulb.py | MyStromBulb.get_bulb_state | def get_bulb_state(self):
"""Get the relay state."""
self.get_status()
try:
self.state = self.data['on']
except TypeError:
self.state = False
return bool(self.state) | python | def get_bulb_state(self):
"""Get the relay state."""
self.get_status()
try:
self.state = self.data['on']
except TypeError:
self.state = False
return bool(self.state) | [
"def",
"get_bulb_state",
"(",
"self",
")",
":",
"self",
".",
"get_status",
"(",
")",
"try",
":",
"self",
".",
"state",
"=",
"self",
".",
"data",
"[",
"'on'",
"]",
"except",
"TypeError",
":",
"self",
".",
"state",
"=",
"False",
"return",
"bool",
"(",
... | Get the relay state. | [
"Get",
"the",
"relay",
"state",
"."
] | train | https://github.com/fabaff/python-mystrom/blob/86410f8952104651ef76ad37c84c29740c50551e/pymystrom/bulb.py#L44-L52 |
fabaff/python-mystrom | pymystrom/bulb.py | MyStromBulb.get_power | def get_power(self):
"""Get current power."""
self.get_status()
try:
self.consumption = self.data['power']
except TypeError:
self.consumption = 0
return self.consumption | python | def get_power(self):
"""Get current power."""
self.get_status()
try:
self.consumption = self.data['power']
except TypeError:
self.consumption = 0
return self.consumption | [
"def",
"get_power",
"(",
"self",
")",
":",
"self",
".",
"get_status",
"(",
")",
"try",
":",
"self",
".",
"consumption",
"=",
"self",
".",
"data",
"[",
"'power'",
"]",
"except",
"TypeError",
":",
"self",
".",
"consumption",
"=",
"0",
"return",
"self",
... | Get current power. | [
"Get",
"current",
"power",
"."
] | train | https://github.com/fabaff/python-mystrom/blob/86410f8952104651ef76ad37c84c29740c50551e/pymystrom/bulb.py#L54-L62 |
fabaff/python-mystrom | pymystrom/bulb.py | MyStromBulb.get_firmware | def get_firmware(self):
"""Get the current firmware version."""
self.get_status()
try:
self.firmware = self.data['fw_version']
except TypeError:
self.firmware = 'Unknown'
return self.firmware | python | def get_firmware(self):
"""Get the current firmware version."""
self.get_status()
try:
self.firmware = self.data['fw_version']
except TypeError:
self.firmware = 'Unknown'
return self.firmware | [
"def",
"get_firmware",
"(",
"self",
")",
":",
"self",
".",
"get_status",
"(",
")",
"try",
":",
"self",
".",
"firmware",
"=",
"self",
".",
"data",
"[",
"'fw_version'",
"]",
"except",
"TypeError",
":",
"self",
".",
"firmware",
"=",
"'Unknown'",
"return",
... | Get the current firmware version. | [
"Get",
"the",
"current",
"firmware",
"version",
"."
] | train | https://github.com/fabaff/python-mystrom/blob/86410f8952104651ef76ad37c84c29740c50551e/pymystrom/bulb.py#L64-L72 |
fabaff/python-mystrom | pymystrom/bulb.py | MyStromBulb.get_brightness | def get_brightness(self):
"""Get current brightness."""
self.get_status()
try:
self.brightness = self.data['color'].split(';')[-1]
except TypeError:
self.brightness = 0
return self.brightness | python | def get_brightness(self):
"""Get current brightness."""
self.get_status()
try:
self.brightness = self.data['color'].split(';')[-1]
except TypeError:
self.brightness = 0
return self.brightness | [
"def",
"get_brightness",
"(",
"self",
")",
":",
"self",
".",
"get_status",
"(",
")",
"try",
":",
"self",
".",
"brightness",
"=",
"self",
".",
"data",
"[",
"'color'",
"]",
".",
"split",
"(",
"';'",
")",
"[",
"-",
"1",
"]",
"except",
"TypeError",
":"... | Get current brightness. | [
"Get",
"current",
"brightness",
"."
] | train | https://github.com/fabaff/python-mystrom/blob/86410f8952104651ef76ad37c84c29740c50551e/pymystrom/bulb.py#L74-L82 |
fabaff/python-mystrom | pymystrom/bulb.py | MyStromBulb.get_transition_time | def get_transition_time(self):
"""Get the transition time in ms."""
self.get_status()
try:
self.transition_time = self.data['ramp']
except TypeError:
self.transition_time = 0
return self.transition_time | python | def get_transition_time(self):
"""Get the transition time in ms."""
self.get_status()
try:
self.transition_time = self.data['ramp']
except TypeError:
self.transition_time = 0
return self.transition_time | [
"def",
"get_transition_time",
"(",
"self",
")",
":",
"self",
".",
"get_status",
"(",
")",
"try",
":",
"self",
".",
"transition_time",
"=",
"self",
".",
"data",
"[",
"'ramp'",
"]",
"except",
"TypeError",
":",
"self",
".",
"transition_time",
"=",
"0",
"ret... | Get the transition time in ms. | [
"Get",
"the",
"transition",
"time",
"in",
"ms",
"."
] | train | https://github.com/fabaff/python-mystrom/blob/86410f8952104651ef76ad37c84c29740c50551e/pymystrom/bulb.py#L84-L92 |
fabaff/python-mystrom | pymystrom/bulb.py | MyStromBulb.get_color | def get_color(self):
"""Get current color."""
self.get_status()
try:
self.color = self.data['color']
self.mode = self.data['mode']
except TypeError:
self.color = 0
self.mode = ''
return {'color': self.color, 'mode': self.mode} | python | def get_color(self):
"""Get current color."""
self.get_status()
try:
self.color = self.data['color']
self.mode = self.data['mode']
except TypeError:
self.color = 0
self.mode = ''
return {'color': self.color, 'mode': self.mode} | [
"def",
"get_color",
"(",
"self",
")",
":",
"self",
".",
"get_status",
"(",
")",
"try",
":",
"self",
".",
"color",
"=",
"self",
".",
"data",
"[",
"'color'",
"]",
"self",
".",
"mode",
"=",
"self",
".",
"data",
"[",
"'mode'",
"]",
"except",
"TypeError... | Get current color. | [
"Get",
"current",
"color",
"."
] | train | https://github.com/fabaff/python-mystrom/blob/86410f8952104651ef76ad37c84c29740c50551e/pymystrom/bulb.py#L94-L104 |
fabaff/python-mystrom | pymystrom/bulb.py | MyStromBulb.set_color_hsv | def set_color_hsv(self, hue, saturation, value):
"""Turn the bulb on with the given values as HSV."""
try:
data = "action=on&color={};{};{}".format(hue, saturation, value)
request = requests.post(
'{}/{}/{}'.format(self.resource, URI, self._mac),
d... | python | def set_color_hsv(self, hue, saturation, value):
"""Turn the bulb on with the given values as HSV."""
try:
data = "action=on&color={};{};{}".format(hue, saturation, value)
request = requests.post(
'{}/{}/{}'.format(self.resource, URI, self._mac),
d... | [
"def",
"set_color_hsv",
"(",
"self",
",",
"hue",
",",
"saturation",
",",
"value",
")",
":",
"try",
":",
"data",
"=",
"\"action=on&color={};{};{}\"",
".",
"format",
"(",
"hue",
",",
"saturation",
",",
"value",
")",
"request",
"=",
"requests",
".",
"post",
... | Turn the bulb on with the given values as HSV. | [
"Turn",
"the",
"bulb",
"on",
"with",
"the",
"given",
"values",
"as",
"HSV",
"."
] | train | https://github.com/fabaff/python-mystrom/blob/86410f8952104651ef76ad37c84c29740c50551e/pymystrom/bulb.py#L139-L149 |
fabaff/python-mystrom | pymystrom/bulb.py | MyStromBulb.set_rainbow | def set_rainbow(self, duration):
"""Turn the bulb on and create a rainbow."""
for i in range(0, 359):
self.set_color_hsv(i, 100, 100)
time.sleep(duration/359) | python | def set_rainbow(self, duration):
"""Turn the bulb on and create a rainbow."""
for i in range(0, 359):
self.set_color_hsv(i, 100, 100)
time.sleep(duration/359) | [
"def",
"set_rainbow",
"(",
"self",
",",
"duration",
")",
":",
"for",
"i",
"in",
"range",
"(",
"0",
",",
"359",
")",
":",
"self",
".",
"set_color_hsv",
"(",
"i",
",",
"100",
",",
"100",
")",
"time",
".",
"sleep",
"(",
"duration",
"/",
"359",
")"
] | Turn the bulb on and create a rainbow. | [
"Turn",
"the",
"bulb",
"on",
"and",
"create",
"a",
"rainbow",
"."
] | train | https://github.com/fabaff/python-mystrom/blob/86410f8952104651ef76ad37c84c29740c50551e/pymystrom/bulb.py#L155-L159 |
fabaff/python-mystrom | pymystrom/bulb.py | MyStromBulb.set_sunrise | def set_sunrise(self, duration):
"""Turn the bulb on and create a sunrise."""
self.set_transition_time(duration/100)
for i in range(0, duration):
try:
data = "action=on&color=3;{}".format(i)
request = requests.post(
'{}/{}/{}'.forma... | python | def set_sunrise(self, duration):
"""Turn the bulb on and create a sunrise."""
self.set_transition_time(duration/100)
for i in range(0, duration):
try:
data = "action=on&color=3;{}".format(i)
request = requests.post(
'{}/{}/{}'.forma... | [
"def",
"set_sunrise",
"(",
"self",
",",
"duration",
")",
":",
"self",
".",
"set_transition_time",
"(",
"duration",
"/",
"100",
")",
"for",
"i",
"in",
"range",
"(",
"0",
",",
"duration",
")",
":",
"try",
":",
"data",
"=",
"\"action=on&color=3;{}\"",
".",
... | Turn the bulb on and create a sunrise. | [
"Turn",
"the",
"bulb",
"on",
"and",
"create",
"a",
"sunrise",
"."
] | train | https://github.com/fabaff/python-mystrom/blob/86410f8952104651ef76ad37c84c29740c50551e/pymystrom/bulb.py#L161-L174 |
fabaff/python-mystrom | pymystrom/bulb.py | MyStromBulb.set_flashing | def set_flashing(self, duration, hsv1, hsv2):
"""Turn the bulb on, flashing with two colors."""
self.set_transition_time(100)
for step in range(0, int(duration/2)):
self.set_color_hsv(hsv1[0], hsv1[1], hsv1[2])
time.sleep(1)
self.set_color_hsv(hsv2[0], hsv2[1]... | python | def set_flashing(self, duration, hsv1, hsv2):
"""Turn the bulb on, flashing with two colors."""
self.set_transition_time(100)
for step in range(0, int(duration/2)):
self.set_color_hsv(hsv1[0], hsv1[1], hsv1[2])
time.sleep(1)
self.set_color_hsv(hsv2[0], hsv2[1]... | [
"def",
"set_flashing",
"(",
"self",
",",
"duration",
",",
"hsv1",
",",
"hsv2",
")",
":",
"self",
".",
"set_transition_time",
"(",
"100",
")",
"for",
"step",
"in",
"range",
"(",
"0",
",",
"int",
"(",
"duration",
"/",
"2",
")",
")",
":",
"self",
".",... | Turn the bulb on, flashing with two colors. | [
"Turn",
"the",
"bulb",
"on",
"flashing",
"with",
"two",
"colors",
"."
] | train | https://github.com/fabaff/python-mystrom/blob/86410f8952104651ef76ad37c84c29740c50551e/pymystrom/bulb.py#L176-L183 |
fabaff/python-mystrom | pymystrom/bulb.py | MyStromBulb.set_off | def set_off(self):
"""Turn the bulb off."""
try:
request = requests.post(
'{}/{}/{}/'.format(self.resource, URI, self._mac),
data={'action': 'off'}, timeout=self.timeout)
if request.status_code == 200:
pass
except requests.e... | python | def set_off(self):
"""Turn the bulb off."""
try:
request = requests.post(
'{}/{}/{}/'.format(self.resource, URI, self._mac),
data={'action': 'off'}, timeout=self.timeout)
if request.status_code == 200:
pass
except requests.e... | [
"def",
"set_off",
"(",
"self",
")",
":",
"try",
":",
"request",
"=",
"requests",
".",
"post",
"(",
"'{}/{}/{}/'",
".",
"format",
"(",
"self",
".",
"resource",
",",
"URI",
",",
"self",
".",
"_mac",
")",
",",
"data",
"=",
"{",
"'action'",
":",
"'off'... | Turn the bulb off. | [
"Turn",
"the",
"bulb",
"off",
"."
] | train | https://github.com/fabaff/python-mystrom/blob/86410f8952104651ef76ad37c84c29740c50551e/pymystrom/bulb.py#L196-L205 |
mdscruggs/ga | ga/translators.py | BaseTranslator.translate_chromosome | def translate_chromosome(self, chromosome):
"""
Translate all the genes in a chromosome.
chromosome: a ``chromosomes.Chromosome`` instance to translate
return: a list of translation products for the genes in the chromosome
"""
assert isinstance(chromos... | python | def translate_chromosome(self, chromosome):
"""
Translate all the genes in a chromosome.
chromosome: a ``chromosomes.Chromosome`` instance to translate
return: a list of translation products for the genes in the chromosome
"""
assert isinstance(chromos... | [
"def",
"translate_chromosome",
"(",
"self",
",",
"chromosome",
")",
":",
"assert",
"isinstance",
"(",
"chromosome",
",",
"Chromosome",
")",
"return",
"[",
"self",
".",
"translate_gene",
"(",
"g",
")",
"for",
"g",
"in",
"chromosome",
"]"
] | Translate all the genes in a chromosome.
chromosome: a ``chromosomes.Chromosome`` instance to translate
return: a list of translation products for the genes in the chromosome | [
"Translate",
"all",
"the",
"genes",
"in",
"a",
"chromosome",
".",
"chromosome",
":",
"a",
"chromosomes",
".",
"Chromosome",
"instance",
"to",
"translate",
"return",
":",
"a",
"list",
"of",
"translation",
"products",
"for",
"the",
"genes",
"in",
"the",
"chrom... | train | https://github.com/mdscruggs/ga/blob/adac7a004e5e22d888e44ab39f313064c3803b38/ga/translators.py#L30-L39 |
mdscruggs/ga | ga/translators.py | BinaryFloatTranslator.translate_gene | def translate_gene(self, gene):
"""
Translate a gene with binary DNA into a base-10 floating point real number.
Parses the DNA in this manner:
1. The first bit determines the sign of the integer portion of the result (0=positive, 1=negative)
2. The next ``significand... | python | def translate_gene(self, gene):
"""
Translate a gene with binary DNA into a base-10 floating point real number.
Parses the DNA in this manner:
1. The first bit determines the sign of the integer portion of the result (0=positive, 1=negative)
2. The next ``significand... | [
"def",
"translate_gene",
"(",
"self",
",",
"gene",
")",
":",
"if",
"self",
".",
"signed",
":",
"sign",
"=",
"1",
"if",
"gene",
".",
"dna",
"[",
"0",
"]",
"==",
"'0'",
"else",
"-",
"1",
"base_start_idx",
"=",
"1",
"else",
":",
"sign",
"=",
"1",
... | Translate a gene with binary DNA into a base-10 floating point real number.
Parses the DNA in this manner:
1. The first bit determines the sign of the integer portion of the result (0=positive, 1=negative)
2. The next ``significand_length`` bits of the DNA are converted into a base-... | [
"Translate",
"a",
"gene",
"with",
"binary",
"DNA",
"into",
"a",
"base",
"-",
"10",
"floating",
"point",
"real",
"number",
".",
"Parses",
"the",
"DNA",
"in",
"this",
"manner",
":",
"1",
".",
"The",
"first",
"bit",
"determines",
"the",
"sign",
"of",
"the... | train | https://github.com/mdscruggs/ga/blob/adac7a004e5e22d888e44ab39f313064c3803b38/ga/translators.py#L65-L97 |
pymacaron/pymacaron | pymacaron/__init__.py | API.load_clients | def load_clients(self, path=None, apis=[]):
"""Generate client libraries for the given apis, without starting an
api server"""
if not path:
raise Exception("Missing path to api swagger files")
if type(apis) is not list:
raise Exception("'apis' should be a list o... | python | def load_clients(self, path=None, apis=[]):
"""Generate client libraries for the given apis, without starting an
api server"""
if not path:
raise Exception("Missing path to api swagger files")
if type(apis) is not list:
raise Exception("'apis' should be a list o... | [
"def",
"load_clients",
"(",
"self",
",",
"path",
"=",
"None",
",",
"apis",
"=",
"[",
"]",
")",
":",
"if",
"not",
"path",
":",
"raise",
"Exception",
"(",
"\"Missing path to api swagger files\"",
")",
"if",
"type",
"(",
"apis",
")",
"is",
"not",
"list",
... | Generate client libraries for the given apis, without starting an
api server | [
"Generate",
"client",
"libraries",
"for",
"the",
"given",
"apis",
"without",
"starting",
"an",
"api",
"server"
] | train | https://github.com/pymacaron/pymacaron/blob/af244f203f8216108b39d374d46bf8e1813f13d5/pymacaron/__init__.py#L53-L81 |
pymacaron/pymacaron | pymacaron/__init__.py | API.load_apis | def load_apis(self, path, ignore=[], include_crash_api=False):
"""Load all swagger files found at the given path, except those whose
names are in the 'ignore' list"""
if not path:
raise Exception("Missing path to api swagger files")
if type(ignore) is not list:
... | python | def load_apis(self, path, ignore=[], include_crash_api=False):
"""Load all swagger files found at the given path, except those whose
names are in the 'ignore' list"""
if not path:
raise Exception("Missing path to api swagger files")
if type(ignore) is not list:
... | [
"def",
"load_apis",
"(",
"self",
",",
"path",
",",
"ignore",
"=",
"[",
"]",
",",
"include_crash_api",
"=",
"False",
")",
":",
"if",
"not",
"path",
":",
"raise",
"Exception",
"(",
"\"Missing path to api swagger files\"",
")",
"if",
"type",
"(",
"ignore",
")... | Load all swagger files found at the given path, except those whose
names are in the 'ignore' list | [
"Load",
"all",
"swagger",
"files",
"found",
"at",
"the",
"given",
"path",
"except",
"those",
"whose",
"names",
"are",
"in",
"the",
"ignore",
"list"
] | train | https://github.com/pymacaron/pymacaron/blob/af244f203f8216108b39d374d46bf8e1813f13d5/pymacaron/__init__.py#L84-L127 |
pymacaron/pymacaron | pymacaron/__init__.py | API.publish_apis | def publish_apis(self, path='doc'):
"""Publish all loaded apis on under the uri /<path>/<api-name>, by
redirecting to http://petstore.swagger.io/
"""
assert path
if not self.apis:
raise Exception("You must call .load_apis() before .publish_apis()")
# Infer ... | python | def publish_apis(self, path='doc'):
"""Publish all loaded apis on under the uri /<path>/<api-name>, by
redirecting to http://petstore.swagger.io/
"""
assert path
if not self.apis:
raise Exception("You must call .load_apis() before .publish_apis()")
# Infer ... | [
"def",
"publish_apis",
"(",
"self",
",",
"path",
"=",
"'doc'",
")",
":",
"assert",
"path",
"if",
"not",
"self",
".",
"apis",
":",
"raise",
"Exception",
"(",
"\"You must call .load_apis() before .publish_apis()\"",
")",
"# Infer the live host url from pym-config.yaml",
... | Publish all loaded apis on under the uri /<path>/<api-name>, by
redirecting to http://petstore.swagger.io/ | [
"Publish",
"all",
"loaded",
"apis",
"on",
"under",
"the",
"uri",
"/",
"<path",
">",
"/",
"<api",
"-",
"name",
">",
"by",
"redirecting",
"to",
"http",
":",
"//",
"petstore",
".",
"swagger",
".",
"io",
"/"
] | train | https://github.com/pymacaron/pymacaron/blob/af244f203f8216108b39d374d46bf8e1813f13d5/pymacaron/__init__.py#L130-L174 |
pymacaron/pymacaron | pymacaron/__init__.py | API.start | def start(self, serve=[]):
"""Load all apis, either as local apis served by the flask app, or as
remote apis to be called from whithin the app's endpoints, then start
the app server"""
# Check arguments
if type(serve) is str:
serve = [serve]
elif type(serve) ... | python | def start(self, serve=[]):
"""Load all apis, either as local apis served by the flask app, or as
remote apis to be called from whithin the app's endpoints, then start
the app server"""
# Check arguments
if type(serve) is str:
serve = [serve]
elif type(serve) ... | [
"def",
"start",
"(",
"self",
",",
"serve",
"=",
"[",
"]",
")",
":",
"# Check arguments",
"if",
"type",
"(",
"serve",
")",
"is",
"str",
":",
"serve",
"=",
"[",
"serve",
"]",
"elif",
"type",
"(",
"serve",
")",
"is",
"list",
":",
"pass",
"else",
":"... | Load all apis, either as local apis served by the flask app, or as
remote apis to be called from whithin the app's endpoints, then start
the app server | [
"Load",
"all",
"apis",
"either",
"as",
"local",
"apis",
"served",
"by",
"the",
"flask",
"app",
"or",
"as",
"remote",
"apis",
"to",
"be",
"called",
"from",
"whithin",
"the",
"app",
"s",
"endpoints",
"then",
"start",
"the",
"app",
"server"
] | train | https://github.com/pymacaron/pymacaron/blob/af244f203f8216108b39d374d46bf8e1813f13d5/pymacaron/__init__.py#L177-L279 |
pymacaron/pymacaron | pymacaron/exceptions.py | add_error | def add_error(name=None, code=None, status=None):
"""Create a new Exception class"""
if not name or not status or not code:
raise Exception("Can't create Exception class %s: you must set both name, status and code" % name)
myexception = type(name, (PyMacaronException, ), {"code": code, "status": sta... | python | def add_error(name=None, code=None, status=None):
"""Create a new Exception class"""
if not name or not status or not code:
raise Exception("Can't create Exception class %s: you must set both name, status and code" % name)
myexception = type(name, (PyMacaronException, ), {"code": code, "status": sta... | [
"def",
"add_error",
"(",
"name",
"=",
"None",
",",
"code",
"=",
"None",
",",
"status",
"=",
"None",
")",
":",
"if",
"not",
"name",
"or",
"not",
"status",
"or",
"not",
"code",
":",
"raise",
"Exception",
"(",
"\"Can't create Exception class %s: you must set bo... | Create a new Exception class | [
"Create",
"a",
"new",
"Exception",
"class"
] | train | https://github.com/pymacaron/pymacaron/blob/af244f203f8216108b39d374d46bf8e1813f13d5/pymacaron/exceptions.py#L72-L81 |
pymacaron/pymacaron | pymacaron/exceptions.py | responsify | def responsify(error):
"""Take an Error model and return it as a Flask response"""
assert str(type(error).__name__) == 'Error'
if error.error in code_to_class:
e = code_to_class[error.error](error.error_description)
if error.error_id:
e.error_id = error.error_id
if error.... | python | def responsify(error):
"""Take an Error model and return it as a Flask response"""
assert str(type(error).__name__) == 'Error'
if error.error in code_to_class:
e = code_to_class[error.error](error.error_description)
if error.error_id:
e.error_id = error.error_id
if error.... | [
"def",
"responsify",
"(",
"error",
")",
":",
"assert",
"str",
"(",
"type",
"(",
"error",
")",
".",
"__name__",
")",
"==",
"'Error'",
"if",
"error",
".",
"error",
"in",
"code_to_class",
":",
"e",
"=",
"code_to_class",
"[",
"error",
".",
"error",
"]",
... | Take an Error model and return it as a Flask response | [
"Take",
"an",
"Error",
"model",
"and",
"return",
"it",
"as",
"a",
"Flask",
"response"
] | train | https://github.com/pymacaron/pymacaron/blob/af244f203f8216108b39d374d46bf8e1813f13d5/pymacaron/exceptions.py#L94-L107 |
pymacaron/pymacaron | pymacaron/exceptions.py | is_error | def is_error(o):
"""True if o is an instance of a swagger Error model or a flask Response of
an error model"""
if hasattr(o, 'error') and hasattr(o, 'error_description') and hasattr(o, 'status'):
return True
return False | python | def is_error(o):
"""True if o is an instance of a swagger Error model or a flask Response of
an error model"""
if hasattr(o, 'error') and hasattr(o, 'error_description') and hasattr(o, 'status'):
return True
return False | [
"def",
"is_error",
"(",
"o",
")",
":",
"if",
"hasattr",
"(",
"o",
",",
"'error'",
")",
"and",
"hasattr",
"(",
"o",
",",
"'error_description'",
")",
"and",
"hasattr",
"(",
"o",
",",
"'status'",
")",
":",
"return",
"True",
"return",
"False"
] | True if o is an instance of a swagger Error model or a flask Response of
an error model | [
"True",
"if",
"o",
"is",
"an",
"instance",
"of",
"a",
"swagger",
"Error",
"model",
"or",
"a",
"flask",
"Response",
"of",
"an",
"error",
"model"
] | train | https://github.com/pymacaron/pymacaron/blob/af244f203f8216108b39d374d46bf8e1813f13d5/pymacaron/exceptions.py#L110-L115 |
pymacaron/pymacaron | pymacaron/exceptions.py | format_error | def format_error(e):
"""Take an exception caught within pymacaron_core and turn it into a
bravado-core Error instance
"""
if isinstance(e, PyMacaronException):
return e.to_model()
if isinstance(e, PyMacaronCoreException) and e.__class__.__name__ == 'ValidationError':
return Validat... | python | def format_error(e):
"""Take an exception caught within pymacaron_core and turn it into a
bravado-core Error instance
"""
if isinstance(e, PyMacaronException):
return e.to_model()
if isinstance(e, PyMacaronCoreException) and e.__class__.__name__ == 'ValidationError':
return Validat... | [
"def",
"format_error",
"(",
"e",
")",
":",
"if",
"isinstance",
"(",
"e",
",",
"PyMacaronException",
")",
":",
"return",
"e",
".",
"to_model",
"(",
")",
"if",
"isinstance",
"(",
"e",
",",
"PyMacaronCoreException",
")",
"and",
"e",
".",
"__class__",
".",
... | Take an exception caught within pymacaron_core and turn it into a
bravado-core Error instance | [
"Take",
"an",
"exception",
"caught",
"within",
"pymacaron_core",
"and",
"turn",
"it",
"into",
"a",
"bravado",
"-",
"core",
"Error",
"instance"
] | train | https://github.com/pymacaron/pymacaron/blob/af244f203f8216108b39d374d46bf8e1813f13d5/pymacaron/exceptions.py#L118-L130 |
pymacaron/pymacaron | pymacaron/exceptions.py | raise_error | def raise_error(e):
"""Take a bravado-core Error model and raise it as an exception"""
code = e.error
if code in code_to_class:
raise code_to_class[code](e.error_description)
else:
raise InternalServerError(e.error_description) | python | def raise_error(e):
"""Take a bravado-core Error model and raise it as an exception"""
code = e.error
if code in code_to_class:
raise code_to_class[code](e.error_description)
else:
raise InternalServerError(e.error_description) | [
"def",
"raise_error",
"(",
"e",
")",
":",
"code",
"=",
"e",
".",
"error",
"if",
"code",
"in",
"code_to_class",
":",
"raise",
"code_to_class",
"[",
"code",
"]",
"(",
"e",
".",
"error_description",
")",
"else",
":",
"raise",
"InternalServerError",
"(",
"e"... | Take a bravado-core Error model and raise it as an exception | [
"Take",
"a",
"bravado",
"-",
"core",
"Error",
"model",
"and",
"raise",
"it",
"as",
"an",
"exception"
] | train | https://github.com/pymacaron/pymacaron/blob/af244f203f8216108b39d374d46bf8e1813f13d5/pymacaron/exceptions.py#L133-L139 |
pymacaron/pymacaron | pymacaron/exceptions.py | PyMacaronException.http_reply | def http_reply(self):
"""Return a Flask reply object describing this error"""
data = {
'status': self.status,
'error': self.code.upper(),
'error_description': str(self)
}
if self.error_caught:
data['error_caught'] = pformat(self.error_caug... | python | def http_reply(self):
"""Return a Flask reply object describing this error"""
data = {
'status': self.status,
'error': self.code.upper(),
'error_description': str(self)
}
if self.error_caught:
data['error_caught'] = pformat(self.error_caug... | [
"def",
"http_reply",
"(",
"self",
")",
":",
"data",
"=",
"{",
"'status'",
":",
"self",
".",
"status",
",",
"'error'",
":",
"self",
".",
"code",
".",
"upper",
"(",
")",
",",
"'error_description'",
":",
"str",
"(",
"self",
")",
"}",
"if",
"self",
"."... | Return a Flask reply object describing this error | [
"Return",
"a",
"Flask",
"reply",
"object",
"describing",
"this",
"error"
] | train | https://github.com/pymacaron/pymacaron/blob/af244f203f8216108b39d374d46bf8e1813f13d5/pymacaron/exceptions.py#L26-L49 |
pymacaron/pymacaron | pymacaron/exceptions.py | PyMacaronException.to_model | def to_model(self):
"""Return a bravado-core Error instance"""
e = ApiPool().current_server_api.model.Error(
status=self.status,
error=self.code.upper(),
error_description=str(self),
)
if self.error_id:
e.error_id = self.error_id
if... | python | def to_model(self):
"""Return a bravado-core Error instance"""
e = ApiPool().current_server_api.model.Error(
status=self.status,
error=self.code.upper(),
error_description=str(self),
)
if self.error_id:
e.error_id = self.error_id
if... | [
"def",
"to_model",
"(",
"self",
")",
":",
"e",
"=",
"ApiPool",
"(",
")",
".",
"current_server_api",
".",
"model",
".",
"Error",
"(",
"status",
"=",
"self",
".",
"status",
",",
"error",
"=",
"self",
".",
"code",
".",
"upper",
"(",
")",
",",
"error_d... | Return a bravado-core Error instance | [
"Return",
"a",
"bravado",
"-",
"core",
"Error",
"instance"
] | train | https://github.com/pymacaron/pymacaron/blob/af244f203f8216108b39d374d46bf8e1813f13d5/pymacaron/exceptions.py#L51-L64 |
mdscruggs/ga | ga/util.py | compute_fitness_cdf | def compute_fitness_cdf(chromosomes, ga):
"""
Return a list of fitness-weighted cumulative probabilities for a set of chromosomes.
chromosomes: chromosomes to use for fitness-based calculations
ga: ``algorithms.BaseGeneticAlgorithm`` used to obtain fitness values using its ``eval_fitness`` method... | python | def compute_fitness_cdf(chromosomes, ga):
"""
Return a list of fitness-weighted cumulative probabilities for a set of chromosomes.
chromosomes: chromosomes to use for fitness-based calculations
ga: ``algorithms.BaseGeneticAlgorithm`` used to obtain fitness values using its ``eval_fitness`` method... | [
"def",
"compute_fitness_cdf",
"(",
"chromosomes",
",",
"ga",
")",
":",
"ga",
".",
"sort",
"(",
"chromosomes",
")",
"fitness",
"=",
"[",
"ga",
".",
"eval_fitness",
"(",
"c",
")",
"for",
"c",
"in",
"chromosomes",
"]",
"min_fit",
"=",
"min",
"(",
"fitness... | Return a list of fitness-weighted cumulative probabilities for a set of chromosomes.
chromosomes: chromosomes to use for fitness-based calculations
ga: ``algorithms.BaseGeneticAlgorithm`` used to obtain fitness values using its ``eval_fitness`` method
return: list of fitness-weighted cumulative... | [
"Return",
"a",
"list",
"of",
"fitness",
"-",
"weighted",
"cumulative",
"probabilities",
"for",
"a",
"set",
"of",
"chromosomes",
".",
"chromosomes",
":",
"chromosomes",
"to",
"use",
"for",
"fitness",
"-",
"based",
"calculations",
"ga",
":",
"algorithms",
".",
... | train | https://github.com/mdscruggs/ga/blob/adac7a004e5e22d888e44ab39f313064c3803b38/ga/util.py#L4-L24 |
mdscruggs/ga | ga/util.py | weighted_choice | def weighted_choice(seq, cdf):
"""
Select a random element from a sequence, given cumulative probabilities of selection.
See ``compute_fitness_cdf`` function for obtaining cumulative probabilities.
seq: sequence to select from
cdf: sequence with 1 cumulative probability value in [0, 1] f... | python | def weighted_choice(seq, cdf):
"""
Select a random element from a sequence, given cumulative probabilities of selection.
See ``compute_fitness_cdf`` function for obtaining cumulative probabilities.
seq: sequence to select from
cdf: sequence with 1 cumulative probability value in [0, 1] f... | [
"def",
"weighted_choice",
"(",
"seq",
",",
"cdf",
")",
":",
"assert",
"len",
"(",
"seq",
")",
"==",
"len",
"(",
"cdf",
")",
"rand",
"=",
"random",
".",
"random",
"(",
")",
"for",
"i",
",",
"e",
"in",
"enumerate",
"(",
"seq",
")",
":",
"cp",
"="... | Select a random element from a sequence, given cumulative probabilities of selection.
See ``compute_fitness_cdf`` function for obtaining cumulative probabilities.
seq: sequence to select from
cdf: sequence with 1 cumulative probability value in [0, 1] for each element in ``seq``
return:... | [
"Select",
"a",
"random",
"element",
"from",
"a",
"sequence",
"given",
"cumulative",
"probabilities",
"of",
"selection",
".",
"See",
"compute_fitness_cdf",
"function",
"for",
"obtaining",
"cumulative",
"probabilities",
".",
"seq",
":",
"sequence",
"to",
"select",
"... | train | https://github.com/mdscruggs/ga/blob/adac7a004e5e22d888e44ab39f313064c3803b38/ga/util.py#L27-L46 |
openstack/python-monascaclient | monascaclient/common/monasca_manager.py | MonascaManager._list | def _list(self, path, dim_key=None, **kwargs):
"""Get a list of metrics."""
url_str = self.base_url + path
if dim_key and dim_key in kwargs:
dim_str = self.get_dimensions_url_string(kwargs[dim_key])
kwargs[dim_key] = dim_str
if kwargs:
url_str += '?%s... | python | def _list(self, path, dim_key=None, **kwargs):
"""Get a list of metrics."""
url_str = self.base_url + path
if dim_key and dim_key in kwargs:
dim_str = self.get_dimensions_url_string(kwargs[dim_key])
kwargs[dim_key] = dim_str
if kwargs:
url_str += '?%s... | [
"def",
"_list",
"(",
"self",
",",
"path",
",",
"dim_key",
"=",
"None",
",",
"*",
"*",
"kwargs",
")",
":",
"url_str",
"=",
"self",
".",
"base_url",
"+",
"path",
"if",
"dim_key",
"and",
"dim_key",
"in",
"kwargs",
":",
"dim_str",
"=",
"self",
".",
"ge... | Get a list of metrics. | [
"Get",
"a",
"list",
"of",
"metrics",
"."
] | train | https://github.com/openstack/python-monascaclient/blob/03b07534145928eb2debad938da033c232dda105/monascaclient/common/monasca_manager.py#L37-L51 |
mdscruggs/ga | ga/examples/irrigation.py | mapstr_to_list | def mapstr_to_list(mapstr):
""" Convert an ASCII map string with rows to a list of strings, 1 string per row. """
maplist = []
with StringIO(mapstr) as infile:
for row in infile:
maplist.append(row.strip())
return maplist | python | def mapstr_to_list(mapstr):
""" Convert an ASCII map string with rows to a list of strings, 1 string per row. """
maplist = []
with StringIO(mapstr) as infile:
for row in infile:
maplist.append(row.strip())
return maplist | [
"def",
"mapstr_to_list",
"(",
"mapstr",
")",
":",
"maplist",
"=",
"[",
"]",
"with",
"StringIO",
"(",
"mapstr",
")",
"as",
"infile",
":",
"for",
"row",
"in",
"infile",
":",
"maplist",
".",
"append",
"(",
"row",
".",
"strip",
"(",
")",
")",
"return",
... | Convert an ASCII map string with rows to a list of strings, 1 string per row. | [
"Convert",
"an",
"ASCII",
"map",
"string",
"with",
"rows",
"to",
"a",
"list",
"of",
"strings",
"1",
"string",
"per",
"row",
"."
] | train | https://github.com/mdscruggs/ga/blob/adac7a004e5e22d888e44ab39f313064c3803b38/ga/examples/irrigation.py#L67-L75 |
mdscruggs/ga | ga/examples/irrigation.py | sprinkler_reaches_cell | def sprinkler_reaches_cell(x, y, sx, sy, r):
"""
Return whether a cell is within the radius of the sprinkler.
x: column index of cell
y: row index of cell
sx: column index of sprinkler
sy: row index of sprinkler
r: sprinkler radius
"""
dx = sx - x
dy = sy - y
return mat... | python | def sprinkler_reaches_cell(x, y, sx, sy, r):
"""
Return whether a cell is within the radius of the sprinkler.
x: column index of cell
y: row index of cell
sx: column index of sprinkler
sy: row index of sprinkler
r: sprinkler radius
"""
dx = sx - x
dy = sy - y
return mat... | [
"def",
"sprinkler_reaches_cell",
"(",
"x",
",",
"y",
",",
"sx",
",",
"sy",
",",
"r",
")",
":",
"dx",
"=",
"sx",
"-",
"x",
"dy",
"=",
"sy",
"-",
"y",
"return",
"math",
".",
"sqrt",
"(",
"dx",
"**",
"2",
"+",
"dy",
"**",
"2",
")",
"<=",
"r"
] | Return whether a cell is within the radius of the sprinkler.
x: column index of cell
y: row index of cell
sx: column index of sprinkler
sy: row index of sprinkler
r: sprinkler radius | [
"Return",
"whether",
"a",
"cell",
"is",
"within",
"the",
"radius",
"of",
"the",
"sprinkler",
"."
] | train | https://github.com/mdscruggs/ga/blob/adac7a004e5e22d888e44ab39f313064c3803b38/ga/examples/irrigation.py#L78-L90 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.