nwo
stringlengths
5
86
sha
stringlengths
40
40
path
stringlengths
4
189
language
stringclasses
1 value
identifier
stringlengths
1
94
parameters
stringlengths
2
4.03k
argument_list
stringclasses
1 value
return_statement
stringlengths
0
11.5k
docstring
stringlengths
1
33.2k
docstring_summary
stringlengths
0
5.15k
docstring_tokens
list
function
stringlengths
34
151k
function_tokens
list
url
stringlengths
90
278
gimli-org/gimli
17aa2160de9b15ababd9ef99e89b1bc3277bbb23
pygimli/physics/ert/ves.py
python
VESManagerApp
()
Call VESManager as console app
Call VESManager as console app
[ "Call", "VESManager", "as", "console", "app" ]
def VESManagerApp(): """Call VESManager as console app""" parser = VESManager.createArgParser(dataSuffix='ves') options = parser.parse_args() verbose = not options.quiet if verbose: print("VES Manager console application.") print(options._get_kwargs()) mgr = VESManager(verbose...
[ "def", "VESManagerApp", "(", ")", ":", "parser", "=", "VESManager", ".", "createArgParser", "(", "dataSuffix", "=", "'ves'", ")", "options", "=", "parser", ".", "parse_args", "(", ")", "verbose", "=", "not", "options", ".", "quiet", "if", "verbose", ":", ...
https://github.com/gimli-org/gimli/blob/17aa2160de9b15ababd9ef99e89b1bc3277bbb23/pygimli/physics/ert/ves.py#L541-L562
aws/lumberyard
f85344403c1c2e77ec8c75deb2c116e97b713217
dev/Tools/Python/3.7.10/linux_x64/lib/python3.7/site-packages/dateutil/utils.py
python
today
(tzinfo=None)
return datetime.combine(dt.date(), time(0, tzinfo=tzinfo))
Returns a :py:class:`datetime` representing the current day at midnight :param tzinfo: The time zone to attach (also used to determine the current day). :return: A :py:class:`datetime.datetime` object representing the current day at midnight.
Returns a :py:class:`datetime` representing the current day at midnight
[ "Returns", "a", ":", "py", ":", "class", ":", "datetime", "representing", "the", "current", "day", "at", "midnight" ]
def today(tzinfo=None): """ Returns a :py:class:`datetime` representing the current day at midnight :param tzinfo: The time zone to attach (also used to determine the current day). :return: A :py:class:`datetime.datetime` object representing the current day at midnight. """...
[ "def", "today", "(", "tzinfo", "=", "None", ")", ":", "dt", "=", "datetime", ".", "now", "(", "tzinfo", ")", "return", "datetime", ".", "combine", "(", "dt", ".", "date", "(", ")", ",", "time", "(", "0", ",", "tzinfo", "=", "tzinfo", ")", ")" ]
https://github.com/aws/lumberyard/blob/f85344403c1c2e77ec8c75deb2c116e97b713217/dev/Tools/Python/3.7.10/linux_x64/lib/python3.7/site-packages/dateutil/utils.py#L13-L26
mindspore-ai/mindspore
fb8fd3338605bb34fa5cea054e535a8b1d753fab
mindspore/python/mindspore/ops/_op_impl/_custom_op/_basic.py
python
_check_bias
(shape_bias, shape_a, shape_b, m_shape, n_shape)
_check_bias
_check_bias
[ "_check_bias" ]
def _check_bias(shape_bias, shape_a, shape_b, m_shape, n_shape): """_check_bias""" is_gevm = True if shape_a[-2] == 1 or shape_a[-1] == 1 else False is_gemv = True if shape_b[-2] == 1 or shape_b[-1] == 1 else False if shape_bias: if len(shape_bias) == 1: if (is_gevm or is_gemv) and s...
[ "def", "_check_bias", "(", "shape_bias", ",", "shape_a", ",", "shape_b", ",", "m_shape", ",", "n_shape", ")", ":", "is_gevm", "=", "True", "if", "shape_a", "[", "-", "2", "]", "==", "1", "or", "shape_a", "[", "-", "1", "]", "==", "1", "else", "Fals...
https://github.com/mindspore-ai/mindspore/blob/fb8fd3338605bb34fa5cea054e535a8b1d753fab/mindspore/python/mindspore/ops/_op_impl/_custom_op/_basic.py#L69-L83
CRYTEK/CRYENGINE
232227c59a220cbbd311576f0fbeba7bb53b2a8c
Editor/Python/windows/Lib/site-packages/pip/_vendor/distlib/metadata.py
python
_get_name_and_version
(name, version, for_filename=False)
return '%s-%s' % (name, version)
Return the distribution name with version. If for_filename is true, return a filename-escaped form.
Return the distribution name with version.
[ "Return", "the", "distribution", "name", "with", "version", "." ]
def _get_name_and_version(name, version, for_filename=False): """Return the distribution name with version. If for_filename is true, return a filename-escaped form.""" if for_filename: # For both name and version any runs of non-alphanumeric or '.' # characters are replaced with a single '-...
[ "def", "_get_name_and_version", "(", "name", ",", "version", ",", "for_filename", "=", "False", ")", ":", "if", "for_filename", ":", "# For both name and version any runs of non-alphanumeric or '.'", "# characters are replaced with a single '-'. Additionally any", "# spaces in the...
https://github.com/CRYTEK/CRYENGINE/blob/232227c59a220cbbd311576f0fbeba7bb53b2a8c/Editor/Python/windows/Lib/site-packages/pip/_vendor/distlib/metadata.py#L222-L232
aws/lumberyard
f85344403c1c2e77ec8c75deb2c116e97b713217
dev/Tools/Python/3.7.10/windows/Lib/textwrap.py
python
fill
(text, width=70, **kwargs)
return w.fill(text)
Fill a single paragraph of text, returning a new string. Reformat the single paragraph in 'text' to fit in lines of no more than 'width' columns, and return a new string containing the entire wrapped paragraph. As with wrap(), tabs are expanded and other whitespace characters converted to space. See ...
Fill a single paragraph of text, returning a new string.
[ "Fill", "a", "single", "paragraph", "of", "text", "returning", "a", "new", "string", "." ]
def fill(text, width=70, **kwargs): """Fill a single paragraph of text, returning a new string. Reformat the single paragraph in 'text' to fit in lines of no more than 'width' columns, and return a new string containing the entire wrapped paragraph. As with wrap(), tabs are expanded and other whit...
[ "def", "fill", "(", "text", ",", "width", "=", "70", ",", "*", "*", "kwargs", ")", ":", "w", "=", "TextWrapper", "(", "width", "=", "width", ",", "*", "*", "kwargs", ")", "return", "w", ".", "fill", "(", "text", ")" ]
https://github.com/aws/lumberyard/blob/f85344403c1c2e77ec8c75deb2c116e97b713217/dev/Tools/Python/3.7.10/windows/Lib/textwrap.py#L381-L391
Cisco-Talos/moflow
ed71dfb0540d9e0d7a4c72f0881b58958d573728
BAP-0.7-moflow/libtracewrap/libtrace/protobuf/python/mox.py
python
UnorderedGroup.IsSatisfied
(self)
return len(self._methods) == 0
Return True if there are not any methods in this group.
Return True if there are not any methods in this group.
[ "Return", "True", "if", "there", "are", "not", "any", "methods", "in", "this", "group", "." ]
def IsSatisfied(self): """Return True if there are not any methods in this group.""" return len(self._methods) == 0
[ "def", "IsSatisfied", "(", "self", ")", ":", "return", "len", "(", "self", ".", "_methods", ")", "==", "0" ]
https://github.com/Cisco-Talos/moflow/blob/ed71dfb0540d9e0d7a4c72f0881b58958d573728/BAP-0.7-moflow/libtracewrap/libtrace/protobuf/python/mox.py#L1257-L1260
wxWidgets/wxPython-Classic
19571e1ae65f1ac445f5491474121998c97a1bf0
src/osx_carbon/_core.py
python
Rect2D.GetPosition
(*args, **kwargs)
return _core_.Rect2D_GetPosition(*args, **kwargs)
GetPosition(self) -> Point2D
GetPosition(self) -> Point2D
[ "GetPosition", "(", "self", ")", "-", ">", "Point2D" ]
def GetPosition(*args, **kwargs): """GetPosition(self) -> Point2D""" return _core_.Rect2D_GetPosition(*args, **kwargs)
[ "def", "GetPosition", "(", "*", "args", ",", "*", "*", "kwargs", ")", ":", "return", "_core_", ".", "Rect2D_GetPosition", "(", "*", "args", ",", "*", "*", "kwargs", ")" ]
https://github.com/wxWidgets/wxPython-Classic/blob/19571e1ae65f1ac445f5491474121998c97a1bf0/src/osx_carbon/_core.py#L1847-L1849
ouster-lidar/ouster_example
13ea8e8b8a4951fb630dbc9108666995c8443bf6
python/src/ouster/client/data.py
python
LidarPacket.frame_id
(self)
return self._pf.frame_id(self._data)
Get the frame id of the packet.
Get the frame id of the packet.
[ "Get", "the", "frame", "id", "of", "the", "packet", "." ]
def frame_id(self) -> int: """Get the frame id of the packet.""" return self._pf.frame_id(self._data)
[ "def", "frame_id", "(", "self", ")", "->", "int", ":", "return", "self", ".", "_pf", ".", "frame_id", "(", "self", ".", "_data", ")" ]
https://github.com/ouster-lidar/ouster_example/blob/13ea8e8b8a4951fb630dbc9108666995c8443bf6/python/src/ouster/client/data.py#L164-L166
pmq20/node-packer
12c46c6e44fbc14d9ee645ebd17d5296b324f7e0
current/tools/gyp/pylib/gyp/generator/cmake.py
python
CreateCMakeTargetFullName
(qualified_target)
return StringToCMakeTargetName(cmake_target_full_name)
An unambiguous name for the target.
An unambiguous name for the target.
[ "An", "unambiguous", "name", "for", "the", "target", "." ]
def CreateCMakeTargetFullName(qualified_target): """An unambiguous name for the target.""" gyp_file, gyp_target_name, gyp_target_toolset = ( gyp.common.ParseQualifiedTarget(qualified_target)) cmake_target_full_name = gyp_file + ':' + gyp_target_name if gyp_target_toolset and gyp_target_toolset != 'target'...
[ "def", "CreateCMakeTargetFullName", "(", "qualified_target", ")", ":", "gyp_file", ",", "gyp_target_name", ",", "gyp_target_toolset", "=", "(", "gyp", ".", "common", ".", "ParseQualifiedTarget", "(", "qualified_target", ")", ")", "cmake_target_full_name", "=", "gyp_fi...
https://github.com/pmq20/node-packer/blob/12c46c6e44fbc14d9ee645ebd17d5296b324f7e0/current/tools/gyp/pylib/gyp/generator/cmake.py#L567-L574
catboost/catboost
167f64f237114a4d10b2b4ee42adb4569137debe
contrib/tools/python/src/Lib/lib-tk/turtle.py
python
TNavigator.heading
(self)
return (self._angleOffset + self._angleOrient*result) % self._fullcircle
Return the turtle's current heading. No arguments. Example (for a Turtle instance named turtle): >>> turtle.left(67) >>> turtle.heading() 67.0
Return the turtle's current heading.
[ "Return", "the", "turtle", "s", "current", "heading", "." ]
def heading(self): """ Return the turtle's current heading. No arguments. Example (for a Turtle instance named turtle): >>> turtle.left(67) >>> turtle.heading() 67.0 """ x, y = self._orient result = round(math.atan2(y, x)*180.0/math.pi, 10) % 360...
[ "def", "heading", "(", "self", ")", ":", "x", ",", "y", "=", "self", ".", "_orient", "result", "=", "round", "(", "math", ".", "atan2", "(", "y", ",", "x", ")", "*", "180.0", "/", "math", ".", "pi", ",", "10", ")", "%", "360.0", "result", "/=...
https://github.com/catboost/catboost/blob/167f64f237114a4d10b2b4ee42adb4569137debe/contrib/tools/python/src/Lib/lib-tk/turtle.py#L1811-L1824
cyberbotics/webots
af7fa7d68dcf7b4550f1f2e132092b41e83698fc
resources/osm_importer/parser_objects.py
python
Parser.parse_way
(self, way)
Parse a way element and create the corresponding object.
Parse a way element and create the corresponding object.
[ "Parse", "a", "way", "element", "and", "create", "the", "corresponding", "object", "." ]
def parse_way(self, way): """Parse a way element and create the corresponding object.""" osmId = way.attrib['id'] tags = self.get_tags(way) refs = [] for ref in way.findall('nd'): refs.append(ref.attrib['ref']) self.wayRefList[osmId] = refs # we need to store...
[ "def", "parse_way", "(", "self", ",", "way", ")", ":", "osmId", "=", "way", ".", "attrib", "[", "'id'", "]", "tags", "=", "self", ".", "get_tags", "(", "way", ")", "refs", "=", "[", "]", "for", "ref", "in", "way", ".", "findall", "(", "'nd'", "...
https://github.com/cyberbotics/webots/blob/af7fa7d68dcf7b4550f1f2e132092b41e83698fc/resources/osm_importer/parser_objects.py#L95-L125
ChromiumWebApps/chromium
c7361d39be8abd1574e6ce8957c8dbddd4c6ccf7
ppapi/generators/idl_thunk.py
python
_GetDefaultFailureValue
(t)
return None
Returns the default failure value for a given type. Returns None if no default failure value exists for the type.
Returns the default failure value for a given type.
[ "Returns", "the", "default", "failure", "value", "for", "a", "given", "type", "." ]
def _GetDefaultFailureValue(t): """Returns the default failure value for a given type. Returns None if no default failure value exists for the type. """ values = { 'PP_Bool': 'PP_FALSE', 'PP_Resource': '0', 'struct PP_Var': 'PP_MakeUndefined()', 'float': '0.0f', 'int32_t': 'enter....
[ "def", "_GetDefaultFailureValue", "(", "t", ")", ":", "values", "=", "{", "'PP_Bool'", ":", "'PP_FALSE'", ",", "'PP_Resource'", ":", "'0'", ",", "'struct PP_Var'", ":", "'PP_MakeUndefined()'", ",", "'float'", ":", "'0.0f'", ",", "'int32_t'", ":", "'enter.retval(...
https://github.com/ChromiumWebApps/chromium/blob/c7361d39be8abd1574e6ce8957c8dbddd4c6ccf7/ppapi/generators/idl_thunk.py#L174-L192
apache/singa
93fd9da72694e68bfe3fb29d0183a65263d238a1
python/singa/sonnx.py
python
SingaFrontend._create_transpose
(cls, op, op_t)
return node
get a onnx node from singa Transpose operator Args: op: a given operator Args: op_t: the tensor of the operator Returns: the onnx node
get a onnx node from singa Transpose operator Args: op: a given operator Args: op_t: the tensor of the operator Returns: the onnx node
[ "get", "a", "onnx", "node", "from", "singa", "Transpose", "operator", "Args", ":", "op", ":", "a", "given", "operator", "Args", ":", "op_t", ":", "the", "tensor", "of", "the", "operator", "Returns", ":", "the", "onnx", "node" ]
def _create_transpose(cls, op, op_t): """ get a onnx node from singa Transpose operator Args: op: a given operator Args: op_t: the tensor of the operator Returns: the onnx node """ node = cls._common_singa_tensor_to_onnx_node(o...
[ "def", "_create_transpose", "(", "cls", ",", "op", ",", "op_t", ")", ":", "node", "=", "cls", ".", "_common_singa_tensor_to_onnx_node", "(", "op", ",", "op_t", ")", "node", ".", "attribute", ".", "extend", "(", "[", "helper", ".", "make_attribute", "(", ...
https://github.com/apache/singa/blob/93fd9da72694e68bfe3fb29d0183a65263d238a1/python/singa/sonnx.py#L405-L420
eclipse/sumo
7132a9b8b6eea734bdec38479026b4d8c4336d03
tools/traci/_vehicle.py
python
VehicleDomain.getLength
(self, vehID)
return self._getUniversal(tc.VAR_LENGTH, vehID)
getLength(string) -> double Returns the length in m of the given vehicle.
getLength(string) -> double
[ "getLength", "(", "string", ")", "-", ">", "double" ]
def getLength(self, vehID): """getLength(string) -> double Returns the length in m of the given vehicle. """ return self._getUniversal(tc.VAR_LENGTH, vehID)
[ "def", "getLength", "(", "self", ",", "vehID", ")", ":", "return", "self", ".", "_getUniversal", "(", "tc", ".", "VAR_LENGTH", ",", "vehID", ")" ]
https://github.com/eclipse/sumo/blob/7132a9b8b6eea734bdec38479026b4d8c4336d03/tools/traci/_vehicle.py#L476-L481
ChromiumWebApps/chromium
c7361d39be8abd1574e6ce8957c8dbddd4c6ccf7
gpu/command_buffer/build_gles2_cmd_buffer.py
python
GLGenerator.WriteGLES2ToPPAPIBridge
(self, filename)
Connects GLES2 helper library to PPB_OpenGLES2 interface
Connects GLES2 helper library to PPB_OpenGLES2 interface
[ "Connects", "GLES2", "helper", "library", "to", "PPB_OpenGLES2", "interface" ]
def WriteGLES2ToPPAPIBridge(self, filename): """Connects GLES2 helper library to PPB_OpenGLES2 interface""" file = CWriter(filename) file.Write(_LICENSE) file.Write(_DO_NOT_EDIT_WARNING) file.Write("#ifndef GL_GLEXT_PROTOTYPES\n") file.Write("#define GL_GLEXT_PROTOTYPES\n") file.Write("#en...
[ "def", "WriteGLES2ToPPAPIBridge", "(", "self", ",", "filename", ")", ":", "file", "=", "CWriter", "(", "filename", ")", "file", ".", "Write", "(", "_LICENSE", ")", "file", ".", "Write", "(", "_DO_NOT_EDIT_WARNING", ")", "file", ".", "Write", "(", "\"#ifnde...
https://github.com/ChromiumWebApps/chromium/blob/c7361d39be8abd1574e6ce8957c8dbddd4c6ccf7/gpu/command_buffer/build_gles2_cmd_buffer.py#L7760-L7803
NeoGeographyToolkit/StereoPipeline
eedf54a919fb5cce1ab0e280bb0df4050763aa11
src/asp/Tools/historical_helper.py
python
parseInterestPoints
(ipString)
return ip
Return the list of IP as a numpy array
Return the list of IP as a numpy array
[ "Return", "the", "list", "of", "IP", "as", "a", "numpy", "array" ]
def parseInterestPoints(ipString): '''Return the list of IP as a numpy array''' parts = ipString.split() if len(parts) % 2 == 1: raise Exception('The number of IP numbers must be even!') numIp = int(len(parts) / 2) ip = np.ndarray(shape=(numIp,2), dtype=float) for i in range(numIp): ...
[ "def", "parseInterestPoints", "(", "ipString", ")", ":", "parts", "=", "ipString", ".", "split", "(", ")", "if", "len", "(", "parts", ")", "%", "2", "==", "1", ":", "raise", "Exception", "(", "'The number of IP numbers must be even!'", ")", "numIp", "=", "...
https://github.com/NeoGeographyToolkit/StereoPipeline/blob/eedf54a919fb5cce1ab0e280bb0df4050763aa11/src/asp/Tools/historical_helper.py#L76-L90
catboost/catboost
167f64f237114a4d10b2b4ee42adb4569137debe
contrib/python/scikit-learn/py3/sklearn/pipeline.py
python
Pipeline.predict
(self, X, **predict_params)
return self.steps[-1][-1].predict(Xt, **predict_params)
Apply transforms to the data, and predict with the final estimator Parameters ---------- X : iterable Data to predict on. Must fulfill input requirements of first step of the pipeline. **predict_params : dict of string -> object Parameters to the ``p...
Apply transforms to the data, and predict with the final estimator
[ "Apply", "transforms", "to", "the", "data", "and", "predict", "with", "the", "final", "estimator" ]
def predict(self, X, **predict_params): """Apply transforms to the data, and predict with the final estimator Parameters ---------- X : iterable Data to predict on. Must fulfill input requirements of first step of the pipeline. **predict_params : dict of...
[ "def", "predict", "(", "self", ",", "X", ",", "*", "*", "predict_params", ")", ":", "Xt", "=", "X", "for", "_", ",", "name", ",", "transform", "in", "self", ".", "_iter", "(", "with_final", "=", "False", ")", ":", "Xt", "=", "transform", ".", "tr...
https://github.com/catboost/catboost/blob/167f64f237114a4d10b2b4ee42adb4569137debe/contrib/python/scikit-learn/py3/sklearn/pipeline.py#L396-L420
netease-youdao/hex
d7b8773dae8dde63f3807cef1d48c017077db727
tools/make_hex_module.py
python
create_7z_archive
(input_dir, zip_file)
Creates a 7z archive of the specified input directory.
Creates a 7z archive of the specified input directory.
[ "Creates", "a", "7z", "archive", "of", "the", "specified", "input", "directory", "." ]
def create_7z_archive(input_dir, zip_file): """ Creates a 7z archive of the specified input directory. """ command = os.environ['CEF_COMMAND_7ZIP'] run('"' + command + '" a -y ' + zip_file + ' ' + input_dir, os.path.split(zip_file)[0])
[ "def", "create_7z_archive", "(", "input_dir", ",", "zip_file", ")", ":", "command", "=", "os", ".", "environ", "[", "'CEF_COMMAND_7ZIP'", "]", "run", "(", "'\"'", "+", "command", "+", "'\" a -y '", "+", "zip_file", "+", "' '", "+", "input_dir", ",", "os", ...
https://github.com/netease-youdao/hex/blob/d7b8773dae8dde63f3807cef1d48c017077db727/tools/make_hex_module.py#L31-L34
esa/pagmo
80281d549c8f1b470e1489a5d37c8f06b2e429c0
PyGMO/util/_analysis.py
python
analysis._build_polynomial
(self, x, degree, interaction=False)
return A
Builds the polynomial base necessary to fit or evaluate a regression model. **USAGE:** analysis._build_polynomial(x=analysis.points, degree=2 [,interaction=True]) * x [number of points][dimension]: chromosome (or list of chromosomes) of the point (or points) whose polynomial is buil...
Builds the polynomial base necessary to fit or evaluate a regression model.
[ "Builds", "the", "polynomial", "base", "necessary", "to", "fit", "or", "evaluate", "a", "regression", "model", "." ]
def _build_polynomial(self, x, degree, interaction=False): """ Builds the polynomial base necessary to fit or evaluate a regression model. **USAGE:** analysis._build_polynomial(x=analysis.points, degree=2 [,interaction=True]) * x [number of points][dimension]: chromosome (or l...
[ "def", "_build_polynomial", "(", "self", ",", "x", ",", "degree", ",", "interaction", "=", "False", ")", ":", "from", "itertools", "import", "combinations_with_replacement", "if", "interaction", ":", "coef", "=", "list", "(", "combinations_with_replacement", "(", ...
https://github.com/esa/pagmo/blob/80281d549c8f1b470e1489a5d37c8f06b2e429c0/PyGMO/util/_analysis.py#L952-L993
wlanjie/AndroidFFmpeg
7baf9122f4b8e1c74e7baf4be5c422c7a5ba5aaf
tools/fdk-aac-build/armeabi-v7a/toolchain/lib/python2.7/lib-tk/turtle.py
python
TNavigator.heading
(self)
return (self._angleOffset + self._angleOrient*result) % self._fullcircle
Return the turtle's current heading. No arguments. Example (for a Turtle instance named turtle): >>> turtle.left(67) >>> turtle.heading() 67.0
Return the turtle's current heading.
[ "Return", "the", "turtle", "s", "current", "heading", "." ]
def heading(self): """ Return the turtle's current heading. No arguments. Example (for a Turtle instance named turtle): >>> turtle.left(67) >>> turtle.heading() 67.0 """ x, y = self._orient result = round(math.atan2(y, x)*180.0/math.pi, 10) % 360...
[ "def", "heading", "(", "self", ")", ":", "x", ",", "y", "=", "self", ".", "_orient", "result", "=", "round", "(", "math", ".", "atan2", "(", "y", ",", "x", ")", "*", "180.0", "/", "math", ".", "pi", ",", "10", ")", "%", "360.0", "result", "/=...
https://github.com/wlanjie/AndroidFFmpeg/blob/7baf9122f4b8e1c74e7baf4be5c422c7a5ba5aaf/tools/fdk-aac-build/armeabi-v7a/toolchain/lib/python2.7/lib-tk/turtle.py#L1810-L1823
Xilinx/Vitis-AI
fc74d404563d9951b57245443c73bef389f3657f
tools/Vitis-AI-Quantizer/vai_q_tensorflow1.x/tensorflow/contrib/learn/python/learn/monitors.py
python
EveryN.every_n_post_step
(self, step, session)
Callback after a step is finished or `end()` is called. Args: step: `int`, the current value of the global step. session: `Session` object.
Callback after a step is finished or `end()` is called.
[ "Callback", "after", "a", "step", "is", "finished", "or", "end", "()", "is", "called", "." ]
def every_n_post_step(self, step, session): """Callback after a step is finished or `end()` is called. Args: step: `int`, the current value of the global step. session: `Session` object. """ pass
[ "def", "every_n_post_step", "(", "self", ",", "step", ",", "session", ")", ":", "pass" ]
https://github.com/Xilinx/Vitis-AI/blob/fc74d404563d9951b57245443c73bef389f3657f/tools/Vitis-AI-Quantizer/vai_q_tensorflow1.x/tensorflow/contrib/learn/python/learn/monitors.py#L320-L327
RamadhanAmizudin/malware
2c6c53c8b0d556f5d8078d6ca0fc4448f4697cf1
Fuzzbunch/fuzzbunch/session.py
python
SessionInfo.get_label
(self)
return self.label
Get the label for this info
Get the label for this info
[ "Get", "the", "label", "for", "this", "info" ]
def get_label(self): """Get the label for this info""" return self.label
[ "def", "get_label", "(", "self", ")", ":", "return", "self", ".", "label" ]
https://github.com/RamadhanAmizudin/malware/blob/2c6c53c8b0d556f5d8078d6ca0fc4448f4697cf1/Fuzzbunch/fuzzbunch/session.py#L80-L82
yuxng/PoseCNN
9f3dd7b7bce21dcafc05e8f18ccc90da3caabd04
lib/datasets/gmu_scene.py
python
gmu_scene.metadata_path_from_index
(self, index)
return metadata_path
Construct an metadata path from the image's "index" identifier.
Construct an metadata path from the image's "index" identifier.
[ "Construct", "an", "metadata", "path", "from", "the", "image", "s", "index", "identifier", "." ]
def metadata_path_from_index(self, index): """ Construct an metadata path from the image's "index" identifier. """ index_meta = index.replace('Images', 'MetaData') index_meta = index_meta.replace('rgb', 'meta') metadata_path = os.path.join(self._data_path, index_meta + '....
[ "def", "metadata_path_from_index", "(", "self", ",", "index", ")", ":", "index_meta", "=", "index", ".", "replace", "(", "'Images'", ",", "'MetaData'", ")", "index_meta", "=", "index_meta", ".", "replace", "(", "'rgb'", ",", "'meta'", ")", "metadata_path", "...
https://github.com/yuxng/PoseCNN/blob/9f3dd7b7bce21dcafc05e8f18ccc90da3caabd04/lib/datasets/gmu_scene.py#L95-L104
BlzFans/wke
b0fa21158312e40c5fbd84682d643022b6c34a93
cygwin/lib/python2.6/tempfile.py
python
mkstemp
(suffix="", prefix=template, dir=None, text=False)
return _mkstemp_inner(dir, prefix, suffix, flags)
User-callable function to create and return a unique temporary file. The return value is a pair (fd, name) where fd is the file descriptor returned by os.open, and name is the filename. If 'suffix' is specified, the file name will end with that suffix, otherwise there will be no suffix. If 'prefi...
User-callable function to create and return a unique temporary file. The return value is a pair (fd, name) where fd is the file descriptor returned by os.open, and name is the filename.
[ "User", "-", "callable", "function", "to", "create", "and", "return", "a", "unique", "temporary", "file", ".", "The", "return", "value", "is", "a", "pair", "(", "fd", "name", ")", "where", "fd", "is", "the", "file", "descriptor", "returned", "by", "os", ...
def mkstemp(suffix="", prefix=template, dir=None, text=False): """User-callable function to create and return a unique temporary file. The return value is a pair (fd, name) where fd is the file descriptor returned by os.open, and name is the filename. If 'suffix' is specified, the file name will end w...
[ "def", "mkstemp", "(", "suffix", "=", "\"\"", ",", "prefix", "=", "template", ",", "dir", "=", "None", ",", "text", "=", "False", ")", ":", "if", "dir", "is", "None", ":", "dir", "=", "gettempdir", "(", ")", "if", "text", ":", "flags", "=", "_tex...
https://github.com/BlzFans/wke/blob/b0fa21158312e40c5fbd84682d643022b6c34a93/cygwin/lib/python2.6/tempfile.py#L259-L293
Tencent/CMONGO
c40380caa14e05509f46993aa8b8da966b09b0b5
src/third_party/scons-2.5.0/scons-local-2.5.0/SCons/Executor.py
python
Executor.scan
(self, scanner, node_list)
Scan a list of this Executor's files (targets or sources) for implicit dependencies and update all of the targets with them. This essentially short-circuits an N*M scan of the sources for each individual target, which is a hell of a lot more efficient.
Scan a list of this Executor's files (targets or sources) for implicit dependencies and update all of the targets with them. This essentially short-circuits an N*M scan of the sources for each individual target, which is a hell of a lot more efficient.
[ "Scan", "a", "list", "of", "this", "Executor", "s", "files", "(", "targets", "or", "sources", ")", "for", "implicit", "dependencies", "and", "update", "all", "of", "the", "targets", "with", "them", ".", "This", "essentially", "short", "-", "circuits", "an"...
def scan(self, scanner, node_list): """Scan a list of this Executor's files (targets or sources) for implicit dependencies and update all of the targets with them. This essentially short-circuits an N*M scan of the sources for each individual target, which is a hell of a lot more efficie...
[ "def", "scan", "(", "self", ",", "scanner", ",", "node_list", ")", ":", "env", "=", "self", ".", "get_build_env", "(", ")", "path", "=", "self", ".", "get_build_scanner_path", "kw", "=", "self", ".", "get_kw", "(", ")", "# TODO(batch): scan by batches)", ...
https://github.com/Tencent/CMONGO/blob/c40380caa14e05509f46993aa8b8da966b09b0b5/src/third_party/scons-2.5.0/scons-local-2.5.0/SCons/Executor.py#L481-L501
wlanjie/AndroidFFmpeg
7baf9122f4b8e1c74e7baf4be5c422c7a5ba5aaf
tools/fdk-aac-build/armeabi/toolchain/lib/python2.7/lib-tk/Tkinter.py
python
Spinbox.selection_element
(self, element=None)
return self.selection("element", element)
Sets or gets the currently selected element. If a spinbutton element is specified, it will be displayed depressed
Sets or gets the currently selected element.
[ "Sets", "or", "gets", "the", "currently", "selected", "element", "." ]
def selection_element(self, element=None): """Sets or gets the currently selected element. If a spinbutton element is specified, it will be displayed depressed """ return self.selection("element", element)
[ "def", "selection_element", "(", "self", ",", "element", "=", "None", ")", ":", "return", "self", ".", "selection", "(", "\"element\"", ",", "element", ")" ]
https://github.com/wlanjie/AndroidFFmpeg/blob/7baf9122f4b8e1c74e7baf4be5c422c7a5ba5aaf/tools/fdk-aac-build/armeabi/toolchain/lib/python2.7/lib-tk/Tkinter.py#L3519-L3525
0vercl0k/rp
5fe693c26d76b514efaedb4084f6e37d820db023
src/third_party/beaengine/headers/BeaEnginePython.py
python
Disasm.seek
(self, offset = -1)
getter/setter for offset Example : disasm.seek(0x400) # define offset where disasm engine must work print("%08x" % disasm.seek()) # get offset position
getter/setter for offset Example : disasm.seek(0x400) # define offset where disasm engine must work print("%08x" % disasm.seek()) # get offset position
[ "getter", "/", "setter", "for", "offset", "Example", ":", "disasm", ".", "seek", "(", "0x400", ")", "#", "define", "offset", "where", "disasm", "engine", "must", "work", "print", "(", "%08x", "%", "disasm", ".", "seek", "()", ")", "#", "get", "offset",...
def seek(self, offset = -1): """ getter/setter for offset Example : disasm.seek(0x400) # define offset where disasm engine must work print("%08x" % disasm.seek()) # get offset position """ if offset == -1: return self.infos.offset - addresso...
[ "def", "seek", "(", "self", ",", "offset", "=", "-", "1", ")", ":", "if", "offset", "==", "-", "1", ":", "return", "self", ".", "infos", ".", "offset", "-", "addressof", "(", "self", ".", "target", ")", "else", ":", "self", ".", "infos", ".", "...
https://github.com/0vercl0k/rp/blob/5fe693c26d76b514efaedb4084f6e37d820db023/src/third_party/beaengine/headers/BeaEnginePython.py#L1207-L1218
wxWidgets/wxPython-Classic
19571e1ae65f1ac445f5491474121998c97a1bf0
src/msw/_controls.py
python
AnyButton.SetBitmapFocus
(*args, **kwargs)
return _controls_.AnyButton_SetBitmapFocus(*args, **kwargs)
SetBitmapFocus(self, Bitmap bitmap)
SetBitmapFocus(self, Bitmap bitmap)
[ "SetBitmapFocus", "(", "self", "Bitmap", "bitmap", ")" ]
def SetBitmapFocus(*args, **kwargs): """SetBitmapFocus(self, Bitmap bitmap)""" return _controls_.AnyButton_SetBitmapFocus(*args, **kwargs)
[ "def", "SetBitmapFocus", "(", "*", "args", ",", "*", "*", "kwargs", ")", ":", "return", "_controls_", ".", "AnyButton_SetBitmapFocus", "(", "*", "args", ",", "*", "*", "kwargs", ")" ]
https://github.com/wxWidgets/wxPython-Classic/blob/19571e1ae65f1ac445f5491474121998c97a1bf0/src/msw/_controls.py#L96-L98
Illumina/hap.py
84011695b2ff2406c16a335106db6831fb67fdfe
src/python/Haplo/vcfeval.py
python
runVCFEval
(vcf1, vcf2, target, args)
Run VCFEval and convert it's output to something quantify understands
Run VCFEval and convert it's output to something quantify understands
[ "Run", "VCFEval", "and", "convert", "it", "s", "output", "to", "something", "quantify", "understands" ]
def runVCFEval(vcf1, vcf2, target, args): """ Run VCFEval and convert it's output to something quantify understands """ starttime = time.time() vtf = tempfile.NamedTemporaryFile(dir=args.scratch_prefix, prefix="vcfeval.result", ...
[ "def", "runVCFEval", "(", "vcf1", ",", "vcf2", ",", "target", ",", "args", ")", ":", "starttime", "=", "time", ".", "time", "(", ")", "vtf", "=", "tempfile", ".", "NamedTemporaryFile", "(", "dir", "=", "args", ".", "scratch_prefix", ",", "prefix", "=",...
https://github.com/Illumina/hap.py/blob/84011695b2ff2406c16a335106db6831fb67fdfe/src/python/Haplo/vcfeval.py#L58-L156
wxWidgets/wxPython-Classic
19571e1ae65f1ac445f5491474121998c97a1bf0
src/osx_cocoa/richtext.py
python
RichTextObject.Clone
(*args, **kwargs)
return _richtext.RichTextObject_Clone(*args, **kwargs)
Clone(self) -> RichTextObject
Clone(self) -> RichTextObject
[ "Clone", "(", "self", ")", "-", ">", "RichTextObject" ]
def Clone(*args, **kwargs): """Clone(self) -> RichTextObject""" return _richtext.RichTextObject_Clone(*args, **kwargs)
[ "def", "Clone", "(", "*", "args", ",", "*", "*", "kwargs", ")", ":", "return", "_richtext", ".", "RichTextObject_Clone", "(", "*", "args", ",", "*", "*", "kwargs", ")" ]
https://github.com/wxWidgets/wxPython-Classic/blob/19571e1ae65f1ac445f5491474121998c97a1bf0/src/osx_cocoa/richtext.py#L1375-L1377
cmu-sei/pharos
af54b6ada58d50c046fa899452addce80e9ce8da
tools/ooanalyzer/ida/OOAnalyzer.py
python
PyOOAnalyzer.get_parse_results
(self)
return self.__parse_results
Return results of parsing
Return results of parsing
[ "Return", "results", "of", "parsing" ]
def get_parse_results(self): ''' Return results of parsing ''' if len(self.__parse_results) == 0: return None return self.__parse_results
[ "def", "get_parse_results", "(", "self", ")", ":", "if", "len", "(", "self", ".", "__parse_results", ")", "==", "0", ":", "return", "None", "return", "self", ".", "__parse_results" ]
https://github.com/cmu-sei/pharos/blob/af54b6ada58d50c046fa899452addce80e9ce8da/tools/ooanalyzer/ida/OOAnalyzer.py#L203-L210
wlanjie/AndroidFFmpeg
7baf9122f4b8e1c74e7baf4be5c422c7a5ba5aaf
tools/fdk-aac-build/armeabi-v7a/toolchain/lib/python2.7/decimal.py
python
Decimal.__truediv__
(self, other, context=None)
return ans._fix(context)
Return self / other.
Return self / other.
[ "Return", "self", "/", "other", "." ]
def __truediv__(self, other, context=None): """Return self / other.""" other = _convert_other(other) if other is NotImplemented: return NotImplemented if context is None: context = getcontext() sign = self._sign ^ other._sign if self._is_special...
[ "def", "__truediv__", "(", "self", ",", "other", ",", "context", "=", "None", ")", ":", "other", "=", "_convert_other", "(", "other", ")", "if", "other", "is", "NotImplemented", ":", "return", "NotImplemented", "if", "context", "is", "None", ":", "context"...
https://github.com/wlanjie/AndroidFFmpeg/blob/7baf9122f4b8e1c74e7baf4be5c422c7a5ba5aaf/tools/fdk-aac-build/armeabi-v7a/toolchain/lib/python2.7/decimal.py#L1293-L1350
microsoft/TSS.MSR
0f2516fca2cd9929c31d5450e39301c9bde43688
TSS.Py/src/TpmTypes.py
python
TPMT_PUBLIC.toTpm
(self, buf)
TpmMarshaller method
TpmMarshaller method
[ "TpmMarshaller", "method" ]
def toTpm(self, buf): """ TpmMarshaller method """ if self.parameters == None: return buf.writeShort(self.parameters.GetUnionSelector()) buf.writeShort(self.nameAlg) buf.writeInt(self.objectAttributes) buf.writeSizedByteBuf(self.authPolicy) self.parameters.toTpm(b...
[ "def", "toTpm", "(", "self", ",", "buf", ")", ":", "if", "self", ".", "parameters", "==", "None", ":", "return", "buf", ".", "writeShort", "(", "self", ".", "parameters", ".", "GetUnionSelector", "(", ")", ")", "buf", ".", "writeShort", "(", "self", ...
https://github.com/microsoft/TSS.MSR/blob/0f2516fca2cd9929c31d5450e39301c9bde43688/TSS.Py/src/TpmTypes.py#L8202-L8210
krishauser/Klampt
972cc83ea5befac3f653c1ba20f80155768ad519
Python/python2_version/klampt/math/optimize.py
python
OptimizationProblemBuilder.equalitySatisfiedSymbolic
(self,tol=1e-3,soft=False)
return symbolic.abs_(res) <= tol
Returns a symbolic.Expression, over variables in self.context, that evaluates to True if the equality constraint is met with tolerance tol
Returns a symbolic.Expression, over variables in self.context, that evaluates to True if the equality constraint is met with tolerance tol
[ "Returns", "a", "symbolic", ".", "Expression", "over", "variables", "in", "self", ".", "context", "that", "evaluates", "to", "True", "if", "the", "equality", "constraint", "is", "met", "with", "tolerance", "tol" ]
def equalitySatisfiedSymbolic(self,tol=1e-3,soft=False): """Returns a symbolic.Expression, over variables in self.context, that evaluates to True if the equality constraint is met with tolerance tol""" res = self.equalityResidualSymbolic(soft) if res is None: return None return s...
[ "def", "equalitySatisfiedSymbolic", "(", "self", ",", "tol", "=", "1e-3", ",", "soft", "=", "False", ")", ":", "res", "=", "self", ".", "equalityResidualSymbolic", "(", "soft", ")", "if", "res", "is", "None", ":", "return", "None", "return", "symbolic", ...
https://github.com/krishauser/Klampt/blob/972cc83ea5befac3f653c1ba20f80155768ad519/Python/python2_version/klampt/math/optimize.py#L1067-L1072
floooh/oryol
eb08cffe1b1cb6b05ed14ec692bca9372cef064e
tools/texexport.py
python
toETC
(srcFilename, dstFilename, format)
Convert a file to ETC2 in a KTX container file. FIXME: alpha channel support
Convert a file to ETC2 in a KTX container file. FIXME: alpha channel support
[ "Convert", "a", "file", "to", "ETC2", "in", "a", "KTX", "container", "file", ".", "FIXME", ":", "alpha", "channel", "support" ]
def toETC(srcFilename, dstFilename, format) : ''' Convert a file to ETC2 in a KTX container file. FIXME: alpha channel support ''' if format not in ETCFormats : error('invalid ETC texture format {}!'.format(format)) ensureDstDirectory() tmpFilename, ext = os.path.splitext(dstFilenam...
[ "def", "toETC", "(", "srcFilename", ",", "dstFilename", ",", "format", ")", ":", "if", "format", "not", "in", "ETCFormats", ":", "error", "(", "'invalid ETC texture format {}!'", ".", "format", "(", "format", ")", ")", "ensureDstDirectory", "(", ")", "tmpFilen...
https://github.com/floooh/oryol/blob/eb08cffe1b1cb6b05ed14ec692bca9372cef064e/tools/texexport.py#L176-L206
aws/lumberyard
f85344403c1c2e77ec8c75deb2c116e97b713217
dev/Gems/CloudGemMetric/v1/AWS/python/windows/Lib/llvmlite/binding/passmanagers.py
python
PassManager.add_sroa_pass
(self)
See http://llvm.org/docs/Passes.html#scalarrepl-scalar-replacement-of-aggregates-dt. Note that this pass corresponds to the ``opt -sroa`` command-line option, despite the link above.
See http://llvm.org/docs/Passes.html#scalarrepl-scalar-replacement-of-aggregates-dt. Note that this pass corresponds to the ``opt -sroa`` command-line option, despite the link above.
[ "See", "http", ":", "//", "llvm", ".", "org", "/", "docs", "/", "Passes", ".", "html#scalarrepl", "-", "scalar", "-", "replacement", "-", "of", "-", "aggregates", "-", "dt", ".", "Note", "that", "this", "pass", "corresponds", "to", "the", "opt", "-", ...
def add_sroa_pass(self): """See http://llvm.org/docs/Passes.html#scalarrepl-scalar-replacement-of-aggregates-dt. Note that this pass corresponds to the ``opt -sroa`` command-line option, despite the link above.""" ffi.lib.LLVMPY_AddSROAPass(self)
[ "def", "add_sroa_pass", "(", "self", ")", ":", "ffi", ".", "lib", ".", "LLVMPY_AddSROAPass", "(", "self", ")" ]
https://github.com/aws/lumberyard/blob/f85344403c1c2e77ec8c75deb2c116e97b713217/dev/Gems/CloudGemMetric/v1/AWS/python/windows/Lib/llvmlite/binding/passmanagers.py#L73-L77
wxWidgets/wxPython-Classic
19571e1ae65f1ac445f5491474121998c97a1bf0
src/osx_cocoa/richtext.py
python
RichTextLine.GetPosition
(*args, **kwargs)
return _richtext.RichTextLine_GetPosition(*args, **kwargs)
GetPosition(self) -> Point
GetPosition(self) -> Point
[ "GetPosition", "(", "self", ")", "-", ">", "Point" ]
def GetPosition(*args, **kwargs): """GetPosition(self) -> Point""" return _richtext.RichTextLine_GetPosition(*args, **kwargs)
[ "def", "GetPosition", "(", "*", "args", ",", "*", "*", "kwargs", ")", ":", "return", "_richtext", ".", "RichTextLine_GetPosition", "(", "*", "args", ",", "*", "*", "kwargs", ")" ]
https://github.com/wxWidgets/wxPython-Classic/blob/19571e1ae65f1ac445f5491474121998c97a1bf0/src/osx_cocoa/richtext.py#L1927-L1929
aws/lumberyard
f85344403c1c2e77ec8c75deb2c116e97b713217
dev/Gems/CloudGemMetric/v1/AWS/common-code/Lib/pandas/plotting/_misc.py
python
_Options.reset
(self)
Reset the option store to its initial state Returns ------- None
Reset the option store to its initial state
[ "Reset", "the", "option", "store", "to", "its", "initial", "state" ]
def reset(self): """ Reset the option store to its initial state Returns ------- None """ self.__init__()
[ "def", "reset", "(", "self", ")", ":", "self", ".", "__init__", "(", ")" ]
https://github.com/aws/lumberyard/blob/f85344403c1c2e77ec8c75deb2c116e97b713217/dev/Gems/CloudGemMetric/v1/AWS/common-code/Lib/pandas/plotting/_misc.py#L460-L468
generalized-intelligence/GAAS
29ab17d3e8a4ba18edef3a57c36d8db6329fac73
deprecated/algorithms/sfm/OpenSfM/opensfm/matching.py
python
robust_match
(p1, p2, camera1, camera2, matches, config)
Filter matches by fitting a geometric model. If cameras are perspective without distortion, then the Fundamental matrix is used. Otherwise, we use the Essential matrix.
Filter matches by fitting a geometric model.
[ "Filter", "matches", "by", "fitting", "a", "geometric", "model", "." ]
def robust_match(p1, p2, camera1, camera2, matches, config): """Filter matches by fitting a geometric model. If cameras are perspective without distortion, then the Fundamental matrix is used. Otherwise, we use the Essential matrix. """ if (camera1.projection_type == 'perspective' and ...
[ "def", "robust_match", "(", "p1", ",", "p2", ",", "camera1", ",", "camera2", ",", "matches", ",", "config", ")", ":", "if", "(", "camera1", ".", "projection_type", "==", "'perspective'", "and", "camera1", ".", "k1", "==", "0.0", "and", "camera1", ".", ...
https://github.com/generalized-intelligence/GAAS/blob/29ab17d3e8a4ba18edef3a57c36d8db6329fac73/deprecated/algorithms/sfm/OpenSfM/opensfm/matching.py#L151-L163
BSVino/DoubleAction
c550b168a3e919926c198c30240f506538b92e75
mp/src/thirdparty/protobuf-2.3.0/python/google/protobuf/reflection.py
python
_BytesForNonRepeatedElement
(value, field_number, field_type)
Returns the number of bytes needed to serialize a non-repeated element. The returned byte count includes space for tag information and any other additional space associated with serializing value. Args: value: Value we're serializing. field_number: Field number of this value. (Since the field number ...
Returns the number of bytes needed to serialize a non-repeated element. The returned byte count includes space for tag information and any other additional space associated with serializing value.
[ "Returns", "the", "number", "of", "bytes", "needed", "to", "serialize", "a", "non", "-", "repeated", "element", ".", "The", "returned", "byte", "count", "includes", "space", "for", "tag", "information", "and", "any", "other", "additional", "space", "associated...
def _BytesForNonRepeatedElement(value, field_number, field_type): """Returns the number of bytes needed to serialize a non-repeated element. The returned byte count includes space for tag information and any other additional space associated with serializing value. Args: value: Value we're serializing. ...
[ "def", "_BytesForNonRepeatedElement", "(", "value", ",", "field_number", ",", "field_type", ")", ":", "try", ":", "fn", "=", "type_checkers", ".", "TYPE_TO_BYTE_SIZE_FN", "[", "field_type", "]", "return", "fn", "(", "field_number", ",", "value", ")", "except", ...
https://github.com/BSVino/DoubleAction/blob/c550b168a3e919926c198c30240f506538b92e75/mp/src/thirdparty/protobuf-2.3.0/python/google/protobuf/reflection.py#L748-L765
Tencent/CMONGO
c40380caa14e05509f46993aa8b8da966b09b0b5
buildscripts/packager.py
python
make_package
(distro, build_os, arch, spec, srcdir)
return distro.make_pkg(build_os, arch, spec, srcdir)
Construct the package for (arch, distro, spec), getting packaging files from srcdir and any user-specified suffix from suffixes
Construct the package for (arch, distro, spec), getting packaging files from srcdir and any user-specified suffix from suffixes
[ "Construct", "the", "package", "for", "(", "arch", "distro", "spec", ")", "getting", "packaging", "files", "from", "srcdir", "and", "any", "user", "-", "specified", "suffix", "from", "suffixes" ]
def make_package(distro, build_os, arch, spec, srcdir): """Construct the package for (arch, distro, spec), getting packaging files from srcdir and any user-specified suffix from suffixes""" sdir=setupdir(distro, build_os, arch, spec) ensure_dir(sdir) # Note that the RPM packages get their man p...
[ "def", "make_package", "(", "distro", ",", "build_os", ",", "arch", ",", "spec", ",", "srcdir", ")", ":", "sdir", "=", "setupdir", "(", "distro", ",", "build_os", ",", "arch", ",", "spec", ")", "ensure_dir", "(", "sdir", ")", "# Note that the RPM packages ...
https://github.com/Tencent/CMONGO/blob/c40380caa14e05509f46993aa8b8da966b09b0b5/buildscripts/packager.py#L417-L440
papyrussolution/OpenPapyrus
bbfb5ec2ea2109b8e2f125edd838e12eaf7b8b91
Src/OSF/protobuf-3.19.1/python/google/protobuf/internal/python_message.py
python
_OneofListener.__init__
(self, parent_message, field)
Args: parent_message: The message whose _Modified() method we should call when we receive Modified() messages. field: The descriptor of the field being set in the parent message.
Args: parent_message: The message whose _Modified() method we should call when we receive Modified() messages. field: The descriptor of the field being set in the parent message.
[ "Args", ":", "parent_message", ":", "The", "message", "whose", "_Modified", "()", "method", "we", "should", "call", "when", "we", "receive", "Modified", "()", "messages", ".", "field", ":", "The", "descriptor", "of", "the", "field", "being", "set", "in", "...
def __init__(self, parent_message, field): """Args: parent_message: The message whose _Modified() method we should call when we receive Modified() messages. field: The descriptor of the field being set in the parent message. """ super(_OneofListener, self).__init__(parent_message) se...
[ "def", "__init__", "(", "self", ",", "parent_message", ",", "field", ")", ":", "super", "(", "_OneofListener", ",", "self", ")", ".", "__init__", "(", "parent_message", ")", "self", ".", "_field", "=", "field" ]
https://github.com/papyrussolution/OpenPapyrus/blob/bbfb5ec2ea2109b8e2f125edd838e12eaf7b8b91/Src/OSF/protobuf-3.19.1/python/google/protobuf/internal/python_message.py#L1524-L1531
aws/lumberyard
f85344403c1c2e77ec8c75deb2c116e97b713217
dev/Tools/Python/3.7.10/windows/Lib/platform.py
python
python_implementation
()
return _sys_version()[0]
Returns a string identifying the Python implementation. Currently, the following implementations are identified: 'CPython' (C implementation of Python), 'IronPython' (.NET implementation of Python), 'Jython' (Java implementation of Python), 'PyPy' (Python implementation ...
Returns a string identifying the Python implementation.
[ "Returns", "a", "string", "identifying", "the", "Python", "implementation", "." ]
def python_implementation(): """ Returns a string identifying the Python implementation. Currently, the following implementations are identified: 'CPython' (C implementation of Python), 'IronPython' (.NET implementation of Python), 'Jython' (Java implementation of Python), ...
[ "def", "python_implementation", "(", ")", ":", "return", "_sys_version", "(", ")", "[", "0", "]" ]
https://github.com/aws/lumberyard/blob/f85344403c1c2e77ec8c75deb2c116e97b713217/dev/Tools/Python/3.7.10/windows/Lib/platform.py#L1253-L1264
aws/lumberyard
f85344403c1c2e77ec8c75deb2c116e97b713217
dev/Gems/CloudGemMetric/v1/AWS/python/windows/Lib/pandas/core/internals/blocks.py
python
ObjectBlock._replace_single
( self, to_replace, value, inplace=False, filter=None, regex=False, convert=True, mask=None, )
return block
Replace elements by the given value. Parameters ---------- to_replace : object or pattern Scalar to replace or regular expression to match. value : object Replacement object. inplace : bool, default False Perform inplace modification. ...
Replace elements by the given value.
[ "Replace", "elements", "by", "the", "given", "value", "." ]
def _replace_single( self, to_replace, value, inplace=False, filter=None, regex=False, convert=True, mask=None, ): """ Replace elements by the given value. Parameters ---------- to_replace : object or pattern ...
[ "def", "_replace_single", "(", "self", ",", "to_replace", ",", "value", ",", "inplace", "=", "False", ",", "filter", "=", "None", ",", "regex", "=", "False", ",", "convert", "=", "True", ",", "mask", "=", "None", ",", ")", ":", "inplace", "=", "valid...
https://github.com/aws/lumberyard/blob/f85344403c1c2e77ec8c75deb2c116e97b713217/dev/Gems/CloudGemMetric/v1/AWS/python/windows/Lib/pandas/core/internals/blocks.py#L2734-L2842
rodeofx/OpenWalter
6116fbe3f04f1146c854afbfbdbe944feaee647e
walter/maya/scripts/walterPanel/walterMayaTraverser.py
python
WalterMayaImplementation.setGroup
(self, origin, path, group)
Set the group of the given expression.
Set the group of the given expression.
[ "Set", "the", "group", "of", "the", "given", "expression", "." ]
def setGroup(self, origin, path, group): """Set the group of the given expression.""" # Walter Standin dependNode = self.getDependNode(origin) if not dependNode: om.MGlobal.displayError( "%s: Can't find object %s in the scene." % (self.NAME, origin)) ...
[ "def", "setGroup", "(", "self", ",", "origin", ",", "path", ",", "group", ")", ":", "# Walter Standin", "dependNode", "=", "self", ".", "getDependNode", "(", "origin", ")", "if", "not", "dependNode", ":", "om", ".", "MGlobal", ".", "displayError", "(", "...
https://github.com/rodeofx/OpenWalter/blob/6116fbe3f04f1146c854afbfbdbe944feaee647e/walter/maya/scripts/walterPanel/walterMayaTraverser.py#L640-L696
apple/swift-lldb
d74be846ef3e62de946df343e8c234bde93a8912
scripts/Python/static-binding/lldb.py
python
SBSection.GetFileOffset
(self)
return _lldb.SBSection_GetFileOffset(self)
GetFileOffset(SBSection self) -> uint64_t
GetFileOffset(SBSection self) -> uint64_t
[ "GetFileOffset", "(", "SBSection", "self", ")", "-", ">", "uint64_t" ]
def GetFileOffset(self): """GetFileOffset(SBSection self) -> uint64_t""" return _lldb.SBSection_GetFileOffset(self)
[ "def", "GetFileOffset", "(", "self", ")", ":", "return", "_lldb", ".", "SBSection_GetFileOffset", "(", "self", ")" ]
https://github.com/apple/swift-lldb/blob/d74be846ef3e62de946df343e8c234bde93a8912/scripts/Python/static-binding/lldb.py#L9302-L9304
catboost/catboost
167f64f237114a4d10b2b4ee42adb4569137debe
contrib/tools/python/src/Lib/xml/sax/_exceptions.py
python
SAXException.getException
(self)
return self._exception
Return the embedded exception, or None if there was none.
Return the embedded exception, or None if there was none.
[ "Return", "the", "embedded", "exception", "or", "None", "if", "there", "was", "none", "." ]
def getException(self): "Return the embedded exception, or None if there was none." return self._exception
[ "def", "getException", "(", "self", ")", ":", "return", "self", ".", "_exception" ]
https://github.com/catboost/catboost/blob/167f64f237114a4d10b2b4ee42adb4569137debe/contrib/tools/python/src/Lib/xml/sax/_exceptions.py#L30-L32
wxWidgets/wxPython-Classic
19571e1ae65f1ac445f5491474121998c97a1bf0
src/osx_carbon/_core.py
python
EvtHandler.AddPendingEvent
(*args, **kwargs)
return _core_.EvtHandler_AddPendingEvent(*args, **kwargs)
AddPendingEvent(self, Event event)
AddPendingEvent(self, Event event)
[ "AddPendingEvent", "(", "self", "Event", "event", ")" ]
def AddPendingEvent(*args, **kwargs): """AddPendingEvent(self, Event event)""" return _core_.EvtHandler_AddPendingEvent(*args, **kwargs)
[ "def", "AddPendingEvent", "(", "*", "args", ",", "*", "*", "kwargs", ")", ":", "return", "_core_", ".", "EvtHandler_AddPendingEvent", "(", "*", "args", ",", "*", "*", "kwargs", ")" ]
https://github.com/wxWidgets/wxPython-Classic/blob/19571e1ae65f1ac445f5491474121998c97a1bf0/src/osx_carbon/_core.py#L4168-L4170
benoitsteiner/tensorflow-opencl
cb7cb40a57fde5cfd4731bc551e82a1e2fef43a5
tensorflow/contrib/distributions/python/ops/sample_stats.py
python
_insert_back_keep_dims
(x, axis)
return x
Insert the dims in `axis` back as singletons after being removed. Args: x: `Tensor`. axis: Python list of integers. Returns: `Tensor` with same values as `x`, but additional singleton dimensions.
Insert the dims in `axis` back as singletons after being removed.
[ "Insert", "the", "dims", "in", "axis", "back", "as", "singletons", "after", "being", "removed", "." ]
def _insert_back_keep_dims(x, axis): """Insert the dims in `axis` back as singletons after being removed. Args: x: `Tensor`. axis: Python list of integers. Returns: `Tensor` with same values as `x`, but additional singleton dimensions. """ for i in sorted(axis): x = array_ops.expand_dims(x...
[ "def", "_insert_back_keep_dims", "(", "x", ",", "axis", ")", ":", "for", "i", "in", "sorted", "(", "axis", ")", ":", "x", "=", "array_ops", ".", "expand_dims", "(", "x", ",", "axis", "=", "i", ")", "return", "x" ]
https://github.com/benoitsteiner/tensorflow-opencl/blob/cb7cb40a57fde5cfd4731bc551e82a1e2fef43a5/tensorflow/contrib/distributions/python/ops/sample_stats.py#L265-L277
qt/qt
0a2f2382541424726168804be2c90b91381608c6
src/3rdparty/webkit/Source/ThirdParty/gyp/pylib/gyp/xcodeproj_file.py
python
XCBuildPhase._AddBuildFileToDicts
(self, pbxbuildfile, path=None)
Maintains the _files_by_path and _files_by_xcfilelikeelement dicts. If path is specified, then it is the path that is being added to the phase, and pbxbuildfile must contain either a PBXFileReference directly referencing that path, or it must contain a PBXVariantGroup that itself contains a PBXFileRefe...
Maintains the _files_by_path and _files_by_xcfilelikeelement dicts.
[ "Maintains", "the", "_files_by_path", "and", "_files_by_xcfilelikeelement", "dicts", "." ]
def _AddBuildFileToDicts(self, pbxbuildfile, path=None): """Maintains the _files_by_path and _files_by_xcfilelikeelement dicts. If path is specified, then it is the path that is being added to the phase, and pbxbuildfile must contain either a PBXFileReference directly referencing that path, or it must ...
[ "def", "_AddBuildFileToDicts", "(", "self", ",", "pbxbuildfile", ",", "path", "=", "None", ")", ":", "xcfilelikeelement", "=", "pbxbuildfile", ".", "_properties", "[", "'fileRef'", "]", "paths", "=", "[", "]", "if", "path", "!=", "None", ":", "# It's best wh...
https://github.com/qt/qt/blob/0a2f2382541424726168804be2c90b91381608c6/src/3rdparty/webkit/Source/ThirdParty/gyp/pylib/gyp/xcodeproj_file.py#L1742-L1796
Polidea/SiriusObfuscator
b0e590d8130e97856afe578869b83a209e2b19be
SymbolExtractorAndRenamer/lldb/scripts/Python/static-binding/lldb.py
python
SBTypeFilter.__eq__
(self, *args)
return _lldb.SBTypeFilter___eq__(self, *args)
__eq__(self, SBTypeFilter rhs) -> bool
__eq__(self, SBTypeFilter rhs) -> bool
[ "__eq__", "(", "self", "SBTypeFilter", "rhs", ")", "-", ">", "bool" ]
def __eq__(self, *args): """__eq__(self, SBTypeFilter rhs) -> bool""" return _lldb.SBTypeFilter___eq__(self, *args)
[ "def", "__eq__", "(", "self", ",", "*", "args", ")", ":", "return", "_lldb", ".", "SBTypeFilter___eq__", "(", "self", ",", "*", "args", ")" ]
https://github.com/Polidea/SiriusObfuscator/blob/b0e590d8130e97856afe578869b83a209e2b19be/SymbolExtractorAndRenamer/lldb/scripts/Python/static-binding/lldb.py#L11143-L11145
rapidsai/cudf
d5b2448fc69f17509304d594f029d0df56984962
python/cudf/cudf/io/orc.py
python
read_orc_metadata
(path)
return num_rows, num_stripes, col_names
{docstring}
{docstring}
[ "{", "docstring", "}" ]
def read_orc_metadata(path): """{docstring}""" orc_file = orc.ORCFile(path) num_rows = orc_file.nrows num_stripes = orc_file.nstripes col_names = orc_file.schema.names return num_rows, num_stripes, col_names
[ "def", "read_orc_metadata", "(", "path", ")", ":", "orc_file", "=", "orc", ".", "ORCFile", "(", "path", ")", "num_rows", "=", "orc_file", ".", "nrows", "num_stripes", "=", "orc_file", ".", "nstripes", "col_names", "=", "orc_file", ".", "schema", ".", "name...
https://github.com/rapidsai/cudf/blob/d5b2448fc69f17509304d594f029d0df56984962/python/cudf/cudf/io/orc.py#L151-L160
aws/lumberyard
f85344403c1c2e77ec8c75deb2c116e97b713217
dev/Gems/CloudGemMetric/v1/AWS/python/windows/Lib/pandas/core/arrays/datetimelike.py
python
validate_inferred_freq
(freq, inferred_freq, freq_infer)
return freq, freq_infer
If the user passes a freq and another freq is inferred from passed data, require that they match. Parameters ---------- freq : DateOffset or None inferred_freq : DateOffset or None freq_infer : bool Returns ------- freq : DateOffset or None freq_infer : bool Notes ----...
If the user passes a freq and another freq is inferred from passed data, require that they match.
[ "If", "the", "user", "passes", "a", "freq", "and", "another", "freq", "is", "inferred", "from", "passed", "data", "require", "that", "they", "match", "." ]
def validate_inferred_freq(freq, inferred_freq, freq_infer): """ If the user passes a freq and another freq is inferred from passed data, require that they match. Parameters ---------- freq : DateOffset or None inferred_freq : DateOffset or None freq_infer : bool Returns ------...
[ "def", "validate_inferred_freq", "(", "freq", ",", "inferred_freq", ",", "freq_infer", ")", ":", "if", "inferred_freq", "is", "not", "None", ":", "if", "freq", "is", "not", "None", "and", "freq", "!=", "inferred_freq", ":", "raise", "ValueError", "(", "f\"In...
https://github.com/aws/lumberyard/blob/f85344403c1c2e77ec8c75deb2c116e97b713217/dev/Gems/CloudGemMetric/v1/AWS/python/windows/Lib/pandas/core/arrays/datetimelike.py#L1655-L1687
klzgrad/naiveproxy
ed2c513637c77b18721fe428d7ed395b4d284c83
src/net/tools/quic/benchmark/run_client.py
python
Timestamp
(datetm=None)
return timestamp
Get the timestamp in microseconds. Args: datetm: the date and time to be converted to timestamp. If not set, use the current UTC time. Returns: The timestamp in microseconds.
Get the timestamp in microseconds. Args: datetm: the date and time to be converted to timestamp. If not set, use the current UTC time. Returns: The timestamp in microseconds.
[ "Get", "the", "timestamp", "in", "microseconds", ".", "Args", ":", "datetm", ":", "the", "date", "and", "time", "to", "be", "converted", "to", "timestamp", ".", "If", "not", "set", "use", "the", "current", "UTC", "time", ".", "Returns", ":", "The", "ti...
def Timestamp(datetm=None): """Get the timestamp in microseconds. Args: datetm: the date and time to be converted to timestamp. If not set, use the current UTC time. Returns: The timestamp in microseconds. """ datetm = datetm or datetime.datetime.utcnow() diff = datetm - datetime.datetime.utcf...
[ "def", "Timestamp", "(", "datetm", "=", "None", ")", ":", "datetm", "=", "datetm", "or", "datetime", ".", "datetime", ".", "utcnow", "(", ")", "diff", "=", "datetm", "-", "datetime", ".", "datetime", ".", "utcfromtimestamp", "(", "0", ")", "timestamp", ...
https://github.com/klzgrad/naiveproxy/blob/ed2c513637c77b18721fe428d7ed395b4d284c83/src/net/tools/quic/benchmark/run_client.py#L30-L41
oracle/graaljs
36a56e8e993d45fc40939a3a4d9c0c24990720f1
graal-nodejs/tools/gyp/pylib/gyp/MSVSSettings.py
python
_MSVSOnly
(tool, name, setting_type)
Defines a setting that is only found in MSVS. Args: tool: a dictionary that gives the names of the tool for MSVS and MSBuild. name: the name of the setting. setting_type: the type of this setting.
Defines a setting that is only found in MSVS.
[ "Defines", "a", "setting", "that", "is", "only", "found", "in", "MSVS", "." ]
def _MSVSOnly(tool, name, setting_type): """Defines a setting that is only found in MSVS. Args: tool: a dictionary that gives the names of the tool for MSVS and MSBuild. name: the name of the setting. setting_type: the type of this setting. """ def _Translate(unused_value, unused_msbuild_setti...
[ "def", "_MSVSOnly", "(", "tool", ",", "name", ",", "setting_type", ")", ":", "def", "_Translate", "(", "unused_value", ",", "unused_msbuild_settings", ")", ":", "# Since this is for MSVS only settings, no translation will happen.", "pass", "_msvs_validators", "[", "tool",...
https://github.com/oracle/graaljs/blob/36a56e8e993d45fc40939a3a4d9c0c24990720f1/graal-nodejs/tools/gyp/pylib/gyp/MSVSSettings.py#L293-L307
Xilinx/Vitis-AI
fc74d404563d9951b57245443c73bef389f3657f
tools/Vitis-AI-Quantizer/vai_q_tensorflow1.x/tensorflow/python/profiler/tfprof_logger.py
python
_get_logged_ops
(graph, run_meta=None, add_trace=True, add_trainable_var=True)
return logged_ops, string_to_id
Extract trainable model parameters and FLOPs for ops from a Graph. Args: graph: tf.Graph. run_meta: RunMetadata proto used to complete shape information. add_trace: Whether to add op trace information. add_trainable_var: Whether to assign tf.compat.v1.trainable_variables() op type '_trainable_v...
Extract trainable model parameters and FLOPs for ops from a Graph.
[ "Extract", "trainable", "model", "parameters", "and", "FLOPs", "for", "ops", "from", "a", "Graph", "." ]
def _get_logged_ops(graph, run_meta=None, add_trace=True, add_trainable_var=True): """Extract trainable model parameters and FLOPs for ops from a Graph. Args: graph: tf.Graph. run_meta: RunMetadata proto used to complete shape information. add_trace: Whether to add op trace informat...
[ "def", "_get_logged_ops", "(", "graph", ",", "run_meta", "=", "None", ",", "add_trace", "=", "True", ",", "add_trainable_var", "=", "True", ")", ":", "if", "run_meta", ":", "graph", "=", "_fill_missing_graph_shape", "(", "graph", ",", "run_meta", ")", "op_mi...
https://github.com/Xilinx/Vitis-AI/blob/fc74d404563d9951b57245443c73bef389f3657f/tools/Vitis-AI-Quantizer/vai_q_tensorflow1.x/tensorflow/python/profiler/tfprof_logger.py#L77-L141
aws/lumberyard
f85344403c1c2e77ec8c75deb2c116e97b713217
dev/Tools/Python/3.7.10/mac/Python.framework/Versions/3.7/lib/python3.7/site-packages/urllib3/util/response.py
python
is_fp_closed
(obj)
Checks whether a given file-like object is closed. :param obj: The file-like object to check.
Checks whether a given file-like object is closed.
[ "Checks", "whether", "a", "given", "file", "-", "like", "object", "is", "closed", "." ]
def is_fp_closed(obj): """ Checks whether a given file-like object is closed. :param obj: The file-like object to check. """ try: # Check `isclosed()` first, in case Python3 doesn't set `closed`. # GH Issue #928 return obj.isclosed() except AttributeError: ...
[ "def", "is_fp_closed", "(", "obj", ")", ":", "try", ":", "# Check `isclosed()` first, in case Python3 doesn't set `closed`.", "# GH Issue #928", "return", "obj", ".", "isclosed", "(", ")", "except", "AttributeError", ":", "pass", "try", ":", "# Check via the official file...
https://github.com/aws/lumberyard/blob/f85344403c1c2e77ec8c75deb2c116e97b713217/dev/Tools/Python/3.7.10/mac/Python.framework/Versions/3.7/lib/python3.7/site-packages/urllib3/util/response.py#L7-L35
mantidproject/mantid
03deeb89254ec4289edb8771e0188c2090a02f32
qt/python/mantidqtinterfaces/mantidqtinterfaces/Muon/GUI/Common/plot_widget/plotting_canvas/plotting_canvas_view_interface.py
python
PlottingCanvasViewInterface.get_ylim_list
(self)
Returns a list of y limits for all axes
Returns a list of y limits for all axes
[ "Returns", "a", "list", "of", "y", "limits", "for", "all", "axes" ]
def get_ylim_list(self): """Returns a list of y limits for all axes""" pass
[ "def", "get_ylim_list", "(", "self", ")", ":", "pass" ]
https://github.com/mantidproject/mantid/blob/03deeb89254ec4289edb8771e0188c2090a02f32/qt/python/mantidqtinterfaces/mantidqtinterfaces/Muon/GUI/Common/plot_widget/plotting_canvas/plotting_canvas_view_interface.py#L58-L60
tensorflow/tensorflow
419e3a6b650ea4bd1b0cba23c4348f8a69f3272e
tensorflow/python/keras/engine/training_v1.py
python
Model._set_inputs
(self, inputs, outputs=None, training=None)
Set model's input and output specs based on the input data received. This is to be used for Model subclasses, which do not know at instantiation time what their inputs look like. Args: inputs: Single array, or list of arrays. The arrays could be placeholders, Numpy arrays, data tensors, or T...
Set model's input and output specs based on the input data received.
[ "Set", "model", "s", "input", "and", "output", "specs", "based", "on", "the", "input", "data", "received", "." ]
def _set_inputs(self, inputs, outputs=None, training=None): """Set model's input and output specs based on the input data received. This is to be used for Model subclasses, which do not know at instantiation time what their inputs look like. Args: inputs: Single array, or list of arrays. The arr...
[ "def", "_set_inputs", "(", "self", ",", "inputs", ",", "outputs", "=", "None", ",", "training", "=", "None", ")", ":", "self", ".", "_set_save_spec", "(", "inputs", ")", "inputs", "=", "self", ".", "_set_input_attrs", "(", "inputs", ")", "if", "outputs",...
https://github.com/tensorflow/tensorflow/blob/419e3a6b650ea4bd1b0cba23c4348f8a69f3272e/tensorflow/python/keras/engine/training_v1.py#L2588-L2633
edvardHua/PoseEstimationForMobile
e31fb850c92ba7e220f861e9484b9cd1bdd5696f
training/docker/cocoapi/PythonAPI/pycocotools/coco.py
python
COCO.getCatIds
(self, catNms=[], supNms=[], catIds=[])
return ids
filtering parameters. default skips that filter. :param catNms (str array) : get cats for given cat names :param supNms (str array) : get cats for given supercategory names :param catIds (int array) : get cats for given cat ids :return: ids (int array) : integer array of cat ids
filtering parameters. default skips that filter. :param catNms (str array) : get cats for given cat names :param supNms (str array) : get cats for given supercategory names :param catIds (int array) : get cats for given cat ids :return: ids (int array) : integer array of cat ids
[ "filtering", "parameters", ".", "default", "skips", "that", "filter", ".", ":", "param", "catNms", "(", "str", "array", ")", ":", "get", "cats", "for", "given", "cat", "names", ":", "param", "supNms", "(", "str", "array", ")", ":", "get", "cats", "for"...
def getCatIds(self, catNms=[], supNms=[], catIds=[]): """ filtering parameters. default skips that filter. :param catNms (str array) : get cats for given cat names :param supNms (str array) : get cats for given supercategory names :param catIds (int array) : get cats for given...
[ "def", "getCatIds", "(", "self", ",", "catNms", "=", "[", "]", ",", "supNms", "=", "[", "]", ",", "catIds", "=", "[", "]", ")", ":", "catNms", "=", "catNms", "if", "_isArrayLike", "(", "catNms", ")", "else", "[", "catNms", "]", "supNms", "=", "su...
https://github.com/edvardHua/PoseEstimationForMobile/blob/e31fb850c92ba7e220f861e9484b9cd1bdd5696f/training/docker/cocoapi/PythonAPI/pycocotools/coco.py#L157-L177
catboost/catboost
167f64f237114a4d10b2b4ee42adb4569137debe
contrib/python/scikit-learn/py3/sklearn/feature_selection/_univariate_selection.py
python
f_regression
(X, y, center=True)
return F, pv
Univariate linear regression tests. Linear model for testing the individual effect of each of many regressors. This is a scoring function to be used in a feature selection procedure, not a free standing feature selection procedure. This is done in 2 steps: 1. The correlation between each regresso...
Univariate linear regression tests.
[ "Univariate", "linear", "regression", "tests", "." ]
def f_regression(X, y, center=True): """Univariate linear regression tests. Linear model for testing the individual effect of each of many regressors. This is a scoring function to be used in a feature selection procedure, not a free standing feature selection procedure. This is done in 2 steps: ...
[ "def", "f_regression", "(", "X", ",", "y", ",", "center", "=", "True", ")", ":", "X", ",", "y", "=", "check_X_y", "(", "X", ",", "y", ",", "[", "'csr'", ",", "'csc'", ",", "'coo'", "]", ",", "dtype", "=", "np", ".", "float64", ")", "n_samples",...
https://github.com/catboost/catboost/blob/167f64f237114a4d10b2b4ee42adb4569137debe/contrib/python/scikit-learn/py3/sklearn/feature_selection/_univariate_selection.py#L231-L306
IntelRealSense/librealsense
c94410a420b74e5fb6a414bd12215c05ddd82b69
wrappers/python/examples/box_dimensioner_multicam/calibration_kabsch.py
python
PoseEstimation.perform_pose_estimation
(self)
return retval
Calculates the extrinsic calibration from the coordinate space of the camera to the coordinate space spanned by a chessboard by retrieving the 3d coordinates of the chessboard with the depth information and subsequently using the kabsch algortihm for finding the optimal rigid transformation between the two coo...
Calculates the extrinsic calibration from the coordinate space of the camera to the coordinate space spanned by a chessboard by retrieving the 3d coordinates of the chessboard with the depth information and subsequently using the kabsch algortihm for finding the optimal rigid transformation between the two coo...
[ "Calculates", "the", "extrinsic", "calibration", "from", "the", "coordinate", "space", "of", "the", "camera", "to", "the", "coordinate", "space", "spanned", "by", "a", "chessboard", "by", "retrieving", "the", "3d", "coordinates", "of", "the", "chessboard", "with...
def perform_pose_estimation(self): """ Calculates the extrinsic calibration from the coordinate space of the camera to the coordinate space spanned by a chessboard by retrieving the 3d coordinates of the chessboard with the depth information and subsequently using the kabsch algortihm for finding the optim...
[ "def", "perform_pose_estimation", "(", "self", ")", ":", "corners3D", "=", "self", ".", "get_chessboard_corners_in3d", "(", ")", "retval", "=", "{", "}", "for", "(", "serial", ",", "[", "found_corners", ",", "points2D", ",", "points3D", ",", "validPoints", "...
https://github.com/IntelRealSense/librealsense/blob/c94410a420b74e5fb6a414bd12215c05ddd82b69/wrappers/python/examples/box_dimensioner_multicam/calibration_kabsch.py#L180-L221
PaddlePaddle/Paddle
1252f4bb3e574df80aa6d18c7ddae1b3a90bd81c
python/paddle/fluid/contrib/model_stat.py
python
_summary_model
(block_vars, one_op)
return in_data_shape, out_data_shape, params, flops
Compute operator's params and flops. Args: block_vars: all vars of one block one_op: one operator to count Returns: in_data_shape: one operator's input data shape out_data_shape: one operator's output data shape params: one operator's PARAMs flops: : one operator...
Compute operator's params and flops. Args: block_vars: all vars of one block one_op: one operator to count Returns: in_data_shape: one operator's input data shape out_data_shape: one operator's output data shape params: one operator's PARAMs flops: : one operator...
[ "Compute", "operator", "s", "params", "and", "flops", ".", "Args", ":", "block_vars", ":", "all", "vars", "of", "one", "block", "one_op", ":", "one", "operator", "to", "count", "Returns", ":", "in_data_shape", ":", "one", "operator", "s", "input", "data", ...
def _summary_model(block_vars, one_op): ''' Compute operator's params and flops. Args: block_vars: all vars of one block one_op: one operator to count Returns: in_data_shape: one operator's input data shape out_data_shape: one operator's output data shape params: ...
[ "def", "_summary_model", "(", "block_vars", ",", "one_op", ")", ":", "if", "one_op", ".", "type", "in", "[", "'conv2d'", ",", "'depthwise_conv2d'", "]", ":", "k_arg_shape", "=", "block_vars", "[", "one_op", ".", "input", "(", "\"Filter\"", ")", "[", "0", ...
https://github.com/PaddlePaddle/Paddle/blob/1252f4bb3e574df80aa6d18c7ddae1b3a90bd81c/python/paddle/fluid/contrib/model_stat.py#L68-L139
pytorch/pytorch
7176c92687d3cc847cc046bf002269c6949a21c2
tools/nightly.py
python
check_branch
(subcommand: str, branch: Optional[str])
return None
Checks that the branch name can be checked out.
Checks that the branch name can be checked out.
[ "Checks", "that", "the", "branch", "name", "can", "be", "checked", "out", "." ]
def check_branch(subcommand: str, branch: Optional[str]) -> Optional[str]: """Checks that the branch name can be checked out.""" if subcommand != "checkout": return None # first make sure actual branch name was given if branch is None: return "Branch name to checkout must be supplied wit...
[ "def", "check_branch", "(", "subcommand", ":", "str", ",", "branch", ":", "Optional", "[", "str", "]", ")", "->", "Optional", "[", "str", "]", ":", "if", "subcommand", "!=", "\"checkout\"", ":", "return", "None", "# first make sure actual branch name was given",...
https://github.com/pytorch/pytorch/blob/7176c92687d3cc847cc046bf002269c6949a21c2/tools/nightly.py#L193-L210
hanpfei/chromium-net
392cc1fa3a8f92f42e4071ab6e674d8e0482f83f
third_party/catapult/dashboard/dashboard/mr.py
python
_AllSubtestsDeprecated
(test)
return all(t.deprecated for t in descendant_tests)
Checks whether all descendant tests are marked as deprecated.
Checks whether all descendant tests are marked as deprecated.
[ "Checks", "whether", "all", "descendant", "tests", "are", "marked", "as", "deprecated", "." ]
def _AllSubtestsDeprecated(test): """Checks whether all descendant tests are marked as deprecated.""" descendant_tests = list_tests.GetTestDescendants( test.key, has_rows=True, keys_only=False) return all(t.deprecated for t in descendant_tests)
[ "def", "_AllSubtestsDeprecated", "(", "test", ")", ":", "descendant_tests", "=", "list_tests", ".", "GetTestDescendants", "(", "test", ".", "key", ",", "has_rows", "=", "True", ",", "keys_only", "=", "False", ")", "return", "all", "(", "t", ".", "deprecated"...
https://github.com/hanpfei/chromium-net/blob/392cc1fa3a8f92f42e4071ab6e674d8e0482f83f/third_party/catapult/dashboard/dashboard/mr.py#L177-L181
eventql/eventql
7ca0dbb2e683b525620ea30dc40540a22d5eb227
deps/3rdparty/spidermonkey/mozjs/build/pymake/pymake/parserdata.py
python
Rule._executeweak
(self, makefile, context)
If the context is weak (we're just handling dependencies) we can make a number of assumptions here. This lets us go really fast and is generally good.
If the context is weak (we're just handling dependencies) we can make a number of assumptions here. This lets us go really fast and is generally good.
[ "If", "the", "context", "is", "weak", "(", "we", "re", "just", "handling", "dependencies", ")", "we", "can", "make", "a", "number", "of", "assumptions", "here", ".", "This", "lets", "us", "go", "really", "fast", "and", "is", "generally", "good", "." ]
def _executeweak(self, makefile, context): """ If the context is weak (we're just handling dependencies) we can make a number of assumptions here. This lets us go really fast and is generally good. """ assert context.weak deps = self.depexp.resolvesplit(makefile, makefile...
[ "def", "_executeweak", "(", "self", ",", "makefile", ",", "context", ")", ":", "assert", "context", ".", "weak", "deps", "=", "self", ".", "depexp", ".", "resolvesplit", "(", "makefile", ",", "makefile", ".", "variables", ")", "# Skip targets with no rules and...
https://github.com/eventql/eventql/blob/7ca0dbb2e683b525620ea30dc40540a22d5eb227/deps/3rdparty/spidermonkey/mozjs/build/pymake/pymake/parserdata.py#L164-L179
google/skia
82d65d0487bd72f5f7332d002429ec2dc61d2463
tools/skpbench/skpbench.py
python
SubprocessMonitor.run
(self)
Runs on the background thread.
Runs on the background thread.
[ "Runs", "on", "the", "background", "thread", "." ]
def run(self): """Runs on the background thread.""" for line in iter(self._proc.stdout.readline, b''): self._queue.put(Message(Message.READLINE, line.decode('utf-8').rstrip())) self._queue.put(Message(Message.EXIT))
[ "def", "run", "(", "self", ")", ":", "for", "line", "in", "iter", "(", "self", ".", "_proc", ".", "stdout", ".", "readline", ",", "b''", ")", ":", "self", ".", "_queue", ".", "put", "(", "Message", "(", "Message", ".", "READLINE", ",", "line", "....
https://github.com/google/skia/blob/82d65d0487bd72f5f7332d002429ec2dc61d2463/tools/skpbench/skpbench.py#L132-L136
catboost/catboost
167f64f237114a4d10b2b4ee42adb4569137debe
contrib/tools/python/src/Lib/lib-tk/turtle.py
python
TurtleScreen.colormode
(self, cmode=None)
Return the colormode or set it to 1.0 or 255. Optional argument: cmode -- one of the values 1.0 or 255 r, g, b values of colortriples have to be in range 0..cmode. Example (for a TurtleScreen instance named screen): >>> screen.colormode() 1.0 >>> screen.colormo...
Return the colormode or set it to 1.0 or 255.
[ "Return", "the", "colormode", "or", "set", "it", "to", "1", ".", "0", "or", "255", "." ]
def colormode(self, cmode=None): """Return the colormode or set it to 1.0 or 255. Optional argument: cmode -- one of the values 1.0 or 255 r, g, b values of colortriples have to be in range 0..cmode. Example (for a TurtleScreen instance named screen): >>> screen.colorm...
[ "def", "colormode", "(", "self", ",", "cmode", "=", "None", ")", ":", "if", "cmode", "is", "None", ":", "return", "self", ".", "_colormode", "if", "cmode", "==", "1.0", ":", "self", ".", "_colormode", "=", "float", "(", "cmode", ")", "elif", "cmode",...
https://github.com/catboost/catboost/blob/167f64f237114a4d10b2b4ee42adb4569137debe/contrib/tools/python/src/Lib/lib-tk/turtle.py#L1128-L1147
trailofbits/llvm-sanitizer-tutorial
d29dfeec7f51fbf234fd0080f28f2b30cd0b6e99
llvm/tools/clang/bindings/python/clang/cindex.py
python
Cursor.is_bitfield
(self)
return conf.lib.clang_Cursor_isBitField(self)
Check if the field is a bitfield.
Check if the field is a bitfield.
[ "Check", "if", "the", "field", "is", "a", "bitfield", "." ]
def is_bitfield(self): """ Check if the field is a bitfield. """ return conf.lib.clang_Cursor_isBitField(self)
[ "def", "is_bitfield", "(", "self", ")", ":", "return", "conf", ".", "lib", ".", "clang_Cursor_isBitField", "(", "self", ")" ]
https://github.com/trailofbits/llvm-sanitizer-tutorial/blob/d29dfeec7f51fbf234fd0080f28f2b30cd0b6e99/llvm/tools/clang/bindings/python/clang/cindex.py#L1872-L1876
klzgrad/naiveproxy
ed2c513637c77b18721fe428d7ed395b4d284c83
src/build/android/gyp/util/md5_check.py
python
_Metadata.AddFile
(self, path, tag)
Adds metadata for a non-zip file. Args: path: Path to the file. tag: A short string representative of the file contents.
Adds metadata for a non-zip file.
[ "Adds", "metadata", "for", "a", "non", "-", "zip", "file", "." ]
def AddFile(self, path, tag): """Adds metadata for a non-zip file. Args: path: Path to the file. tag: A short string representative of the file contents. """ self._AssertNotQueried() self._files.append({ 'path': path, 'tag': tag, })
[ "def", "AddFile", "(", "self", ",", "path", ",", "tag", ")", ":", "self", ".", "_AssertNotQueried", "(", ")", "self", ".", "_files", ".", "append", "(", "{", "'path'", ":", "path", ",", "'tag'", ":", "tag", ",", "}", ")" ]
https://github.com/klzgrad/naiveproxy/blob/ed2c513637c77b18721fe428d7ed395b4d284c83/src/build/android/gyp/util/md5_check.py#L363-L374
aws/lumberyard
f85344403c1c2e77ec8c75deb2c116e97b713217
dev/Tools/Python/3.7.10/mac/Python.framework/Versions/3.7/lib/python3.7/tkinter/__init__.py
python
Grid.grid_configure
(self, cnf={}, **kw)
Position a widget in the parent widget in a grid. Use as options: column=number - use cell identified with given column (starting with 0) columnspan=number - this widget will span several columns in=master - use master to contain this widget in_=master - see 'in' option description ...
Position a widget in the parent widget in a grid. Use as options: column=number - use cell identified with given column (starting with 0) columnspan=number - this widget will span several columns in=master - use master to contain this widget in_=master - see 'in' option description ...
[ "Position", "a", "widget", "in", "the", "parent", "widget", "in", "a", "grid", ".", "Use", "as", "options", ":", "column", "=", "number", "-", "use", "cell", "identified", "with", "given", "column", "(", "starting", "with", "0", ")", "columnspan", "=", ...
def grid_configure(self, cnf={}, **kw): """Position a widget in the parent widget in a grid. Use as options: column=number - use cell identified with given column (starting with 0) columnspan=number - this widget will span several columns in=master - use master to contain this widget ...
[ "def", "grid_configure", "(", "self", ",", "cnf", "=", "{", "}", ",", "*", "*", "kw", ")", ":", "self", ".", "tk", ".", "call", "(", "(", "'grid'", ",", "'configure'", ",", "self", ".", "_w", ")", "+", "self", ".", "_options", "(", "cnf", ",", ...
https://github.com/aws/lumberyard/blob/f85344403c1c2e77ec8c75deb2c116e97b713217/dev/Tools/Python/3.7.10/mac/Python.framework/Versions/3.7/lib/python3.7/tkinter/__init__.py#L2209-L2226
baidu-research/tensorflow-allreduce
66d5b855e90b0949e9fa5cca5599fd729a70e874
tensorflow/python/debug/lib/source_utils.py
python
guess_is_tensorflow_py_library
(py_file_path)
return (py_file_path.startswith(_TENSORFLOW_BASEDIR) and not py_file_path.endswith("_test.py") and not os.path.dirname(py_file_path).endswith( os.path.normpath("python/debug/examples")))
Guess whether a Python source file is a part of the tensorflow library. Special cases: 1) Returns False for unit-test files in the library (*_test.py), 2) Returns False for files under python/debug/examples. Args: py_file_path: full path of the Python source file in question. Returns: (`bool`) ...
Guess whether a Python source file is a part of the tensorflow library.
[ "Guess", "whether", "a", "Python", "source", "file", "is", "a", "part", "of", "the", "tensorflow", "library", "." ]
def guess_is_tensorflow_py_library(py_file_path): """Guess whether a Python source file is a part of the tensorflow library. Special cases: 1) Returns False for unit-test files in the library (*_test.py), 2) Returns False for files under python/debug/examples. Args: py_file_path: full path of the Py...
[ "def", "guess_is_tensorflow_py_library", "(", "py_file_path", ")", ":", "if", "(", "not", "is_extension_uncompiled_python_source", "(", "py_file_path", ")", "and", "not", "is_extension_compiled_python_source", "(", "py_file_path", ")", ")", ":", "raise", "ValueError", "...
https://github.com/baidu-research/tensorflow-allreduce/blob/66d5b855e90b0949e9fa5cca5599fd729a70e874/tensorflow/python/debug/lib/source_utils.py#L56-L82
ricardoquesada/Spidermonkey
4a75ea2543408bd1b2c515aa95901523eeef7858
python/mozbuild/mozbuild/base.py
python
MachCommandConditions.is_firefox_or_mulet
(cls)
return (MachCommandConditions.is_firefox(cls) or MachCommandConditions.is_mulet(cls))
Must have a Firefox or Mulet build.
Must have a Firefox or Mulet build.
[ "Must", "have", "a", "Firefox", "or", "Mulet", "build", "." ]
def is_firefox_or_mulet(cls): """Must have a Firefox or Mulet build.""" return (MachCommandConditions.is_firefox(cls) or MachCommandConditions.is_mulet(cls))
[ "def", "is_firefox_or_mulet", "(", "cls", ")", ":", "return", "(", "MachCommandConditions", ".", "is_firefox", "(", "cls", ")", "or", "MachCommandConditions", ".", "is_mulet", "(", "cls", ")", ")" ]
https://github.com/ricardoquesada/Spidermonkey/blob/4a75ea2543408bd1b2c515aa95901523eeef7858/python/mozbuild/mozbuild/base.py#L626-L629
cinder/Cinder
e83f5bb9c01a63eec20168d02953a0879e5100f7
docs/libs/bs4/element.py
python
PageElement.find_previous_siblings
(self, name=None, attrs={}, text=None, limit=None, **kwargs)
return self._find_all(name, attrs, text, limit, self.previous_siblings, **kwargs)
Returns the siblings of this Tag that match the given criteria and appear before this Tag in the document.
Returns the siblings of this Tag that match the given criteria and appear before this Tag in the document.
[ "Returns", "the", "siblings", "of", "this", "Tag", "that", "match", "the", "given", "criteria", "and", "appear", "before", "this", "Tag", "in", "the", "document", "." ]
def find_previous_siblings(self, name=None, attrs={}, text=None, limit=None, **kwargs): """Returns the siblings of this Tag that match the given criteria and appear before this Tag in the document.""" return self._find_all(name, attrs, text, limit, ...
[ "def", "find_previous_siblings", "(", "self", ",", "name", "=", "None", ",", "attrs", "=", "{", "}", ",", "text", "=", "None", ",", "limit", "=", "None", ",", "*", "*", "kwargs", ")", ":", "return", "self", ".", "_find_all", "(", "name", ",", "attr...
https://github.com/cinder/Cinder/blob/e83f5bb9c01a63eec20168d02953a0879e5100f7/docs/libs/bs4/element.py#L431-L436
freesurfer/freesurfer
6dbe527d43ffa611acb2cd112e9469f9bfec8e36
python/freesurfer/utils/general.py
python
readlines
(filename)
return content
Reads the lines of a text file in to a list.
Reads the lines of a text file in to a list.
[ "Reads", "the", "lines", "of", "a", "text", "file", "in", "to", "a", "list", "." ]
def readlines(filename): '''Reads the lines of a text file in to a list.''' with open(filename) as file: content = file.read().splitlines() return content
[ "def", "readlines", "(", "filename", ")", ":", "with", "open", "(", "filename", ")", "as", "file", ":", "content", "=", "file", ".", "read", "(", ")", ".", "splitlines", "(", ")", "return", "content" ]
https://github.com/freesurfer/freesurfer/blob/6dbe527d43ffa611acb2cd112e9469f9bfec8e36/python/freesurfer/utils/general.py#L16-L20
wxWidgets/wxPython-Classic
19571e1ae65f1ac445f5491474121998c97a1bf0
src/msw/_core.py
python
Rect2D.__init__
(self, *args, **kwargs)
__init__(self, Double x=0.0, Double y=0.0, Double w=0.0, Double h=0.0) -> Rect2D wx.Rect2D is a rectangle, with position and size, in a 2D coordinate system with floating point component values.
__init__(self, Double x=0.0, Double y=0.0, Double w=0.0, Double h=0.0) -> Rect2D
[ "__init__", "(", "self", "Double", "x", "=", "0", ".", "0", "Double", "y", "=", "0", ".", "0", "Double", "w", "=", "0", ".", "0", "Double", "h", "=", "0", ".", "0", ")", "-", ">", "Rect2D" ]
def __init__(self, *args, **kwargs): """ __init__(self, Double x=0.0, Double y=0.0, Double w=0.0, Double h=0.0) -> Rect2D wx.Rect2D is a rectangle, with position and size, in a 2D coordinate system with floating point component values. """ _core_.Rect2D_swiginit(self,_c...
[ "def", "__init__", "(", "self", ",", "*", "args", ",", "*", "*", "kwargs", ")", ":", "_core_", ".", "Rect2D_swiginit", "(", "self", ",", "_core_", ".", "new_Rect2D", "(", "*", "args", ",", "*", "*", "kwargs", ")", ")" ]
https://github.com/wxWidgets/wxPython-Classic/blob/19571e1ae65f1ac445f5491474121998c97a1bf0/src/msw/_core.py#L1837-L1844
natanielruiz/android-yolo
1ebb54f96a67a20ff83ddfc823ed83a13dc3a47f
jni-build/jni/include/external/bazel_tools/tools/objc/j2objc_dead_code_pruner.py
python
BuildReachabilityTree
(dependency_mapping_files, file_open=open)
return tree
Builds a reachability tree using entries from dependency mapping files. Args: dependency_mapping_files: A comma separated list of J2ObjC-generated dependency mapping files. file_open: Reference to the builtin open function so it may be overridden for testing. Returns: A dict mapping J2O...
Builds a reachability tree using entries from dependency mapping files.
[ "Builds", "a", "reachability", "tree", "using", "entries", "from", "dependency", "mapping", "files", "." ]
def BuildReachabilityTree(dependency_mapping_files, file_open=open): """Builds a reachability tree using entries from dependency mapping files. Args: dependency_mapping_files: A comma separated list of J2ObjC-generated dependency mapping files. file_open: Reference to the builtin open function so i...
[ "def", "BuildReachabilityTree", "(", "dependency_mapping_files", ",", "file_open", "=", "open", ")", ":", "tree", "=", "dict", "(", ")", "for", "dependency_mapping_file", "in", "dependency_mapping_files", ".", "split", "(", "','", ")", ":", "with", "file_open", ...
https://github.com/natanielruiz/android-yolo/blob/1ebb54f96a67a20ff83ddfc823ed83a13dc3a47f/jni-build/jni/include/external/bazel_tools/tools/objc/j2objc_dead_code_pruner.py#L41-L63
hanpfei/chromium-net
392cc1fa3a8f92f42e4071ab6e674d8e0482f83f
third_party/catapult/third_party/gsutil/third_party/boto/boto/connection.py
python
HostConnectionPool._pair_stale
(self, pair)
return return_time + ConnectionPool.STALE_DURATION < now
Returns true of the (connection,time) pair is too old to be used.
Returns true of the (connection,time) pair is too old to be used.
[ "Returns", "true", "of", "the", "(", "connection", "time", ")", "pair", "is", "too", "old", "to", "be", "used", "." ]
def _pair_stale(self, pair): """ Returns true of the (connection,time) pair is too old to be used. """ (_conn, return_time) = pair now = time.time() return return_time + ConnectionPool.STALE_DURATION < now
[ "def", "_pair_stale", "(", "self", ",", "pair", ")", ":", "(", "_conn", ",", "return_time", ")", "=", "pair", "now", "=", "time", ".", "time", "(", ")", "return", "return_time", "+", "ConnectionPool", ".", "STALE_DURATION", "<", "now" ]
https://github.com/hanpfei/chromium-net/blob/392cc1fa3a8f92f42e4071ab6e674d8e0482f83f/third_party/catapult/third_party/gsutil/third_party/boto/boto/connection.py#L192-L199
wxWidgets/wxPython-Classic
19571e1ae65f1ac445f5491474121998c97a1bf0
src/osx_carbon/_misc.py
python
TimeSpan_Hours
(*args, **kwargs)
return _misc_.TimeSpan_Hours(*args, **kwargs)
TimeSpan_Hours(long hours) -> TimeSpan
TimeSpan_Hours(long hours) -> TimeSpan
[ "TimeSpan_Hours", "(", "long", "hours", ")", "-", ">", "TimeSpan" ]
def TimeSpan_Hours(*args, **kwargs): """TimeSpan_Hours(long hours) -> TimeSpan""" return _misc_.TimeSpan_Hours(*args, **kwargs)
[ "def", "TimeSpan_Hours", "(", "*", "args", ",", "*", "*", "kwargs", ")", ":", "return", "_misc_", ".", "TimeSpan_Hours", "(", "*", "args", ",", "*", "*", "kwargs", ")" ]
https://github.com/wxWidgets/wxPython-Classic/blob/19571e1ae65f1ac445f5491474121998c97a1bf0/src/osx_carbon/_misc.py#L4580-L4582
ChromiumWebApps/chromium
c7361d39be8abd1574e6ce8957c8dbddd4c6ccf7
tools/telemetry/telemetry/page/extensions_profile_creator.py
python
ExtensionsProfileCreator._PrepareExtensionInstallFiles
(self)
Download extension archives and create extension install files.
Download extension archives and create extension install files.
[ "Download", "extension", "archives", "and", "create", "extension", "install", "files", "." ]
def _PrepareExtensionInstallFiles(self): """Download extension archives and create extension install files.""" extensions_to_install = self._extensions_to_install if self._theme_to_install: extensions_to_install = extensions_to_install + [self._theme_to_install] num_extensions = len(extensions_to_...
[ "def", "_PrepareExtensionInstallFiles", "(", "self", ")", ":", "extensions_to_install", "=", "self", ".", "_extensions_to_install", "if", "self", ".", "_theme_to_install", ":", "extensions_to_install", "=", "extensions_to_install", "+", "[", "self", ".", "_theme_to_inst...
https://github.com/ChromiumWebApps/chromium/blob/c7361d39be8abd1574e6ce8957c8dbddd4c6ccf7/tools/telemetry/telemetry/page/extensions_profile_creator.py#L108-L139
wxWidgets/wxPython-Classic
19571e1ae65f1ac445f5491474121998c97a1bf0
src/msw/_gdi.py
python
GraphicsContext.EndLayer
(*args, **kwargs)
return _gdi_.GraphicsContext_EndLayer(*args, **kwargs)
EndLayer(self) composites back the drawings into the context with the opacity given at the BeginLayer call
EndLayer(self)
[ "EndLayer", "(", "self", ")" ]
def EndLayer(*args, **kwargs): """ EndLayer(self) composites back the drawings into the context with the opacity given at the BeginLayer call """ return _gdi_.GraphicsContext_EndLayer(*args, **kwargs)
[ "def", "EndLayer", "(", "*", "args", ",", "*", "*", "kwargs", ")", ":", "return", "_gdi_", ".", "GraphicsContext_EndLayer", "(", "*", "args", ",", "*", "*", "kwargs", ")" ]
https://github.com/wxWidgets/wxPython-Classic/blob/19571e1ae65f1ac445f5491474121998c97a1bf0/src/msw/_gdi.py#L6432-L6439
SpenceKonde/megaTinyCore
1c4a70b18a149fe6bcb551dfa6db11ca50b8997b
megaavr/tools/libs/serial/rfc2217.py
python
Serial.rfc2217_flow_server_ready
(self)
\ check if server is ready to receive data. block for some time when not.
\ check if server is ready to receive data. block for some time when not.
[ "\\", "check", "if", "server", "is", "ready", "to", "receive", "data", ".", "block", "for", "some", "time", "when", "not", "." ]
def rfc2217_flow_server_ready(self): """\ check if server is ready to receive data. block for some time when not. """
[ "def", "rfc2217_flow_server_ready", "(", "self", ")", ":" ]
https://github.com/SpenceKonde/megaTinyCore/blob/1c4a70b18a149fe6bcb551dfa6db11ca50b8997b/megaavr/tools/libs/serial/rfc2217.py#L885-L889
apache/trafodion
8455c839ad6b6d7b6e04edda5715053095b78046
install/python-installer/db_install.py
python
user_input
(options, prompt_mode=True, pwd='')
get user's input and check input value
get user's input and check input value
[ "get", "user", "s", "input", "and", "check", "input", "value" ]
def user_input(options, prompt_mode=True, pwd=''): """ get user's input and check input value """ global cfgs apache = True if hasattr(options, 'apache') and options.apache else False offline = True if hasattr(options, 'offline') and options.offline else False silent = True if hasattr(options, 'sil...
[ "def", "user_input", "(", "options", ",", "prompt_mode", "=", "True", ",", "pwd", "=", "''", ")", ":", "global", "cfgs", "apache", "=", "True", "if", "hasattr", "(", "options", ",", "'apache'", ")", "and", "options", ".", "apache", "else", "False", "of...
https://github.com/apache/trafodion/blob/8455c839ad6b6d7b6e04edda5715053095b78046/install/python-installer/db_install.py#L192-L425
wxWidgets/wxPython-Classic
19571e1ae65f1ac445f5491474121998c97a1bf0
wx/lib/agw/rulerctrl.py
python
RulerCtrl.LabelMinor
(self, label=True)
Sets whether the minor ticks should be labeled or not. :param `label`: ``True`` to label minor ticks, ``False`` otherwise.
Sets whether the minor ticks should be labeled or not.
[ "Sets", "whether", "the", "minor", "ticks", "should", "be", "labeled", "or", "not", "." ]
def LabelMinor(self, label=True): """ Sets whether the minor ticks should be labeled or not. :param `label`: ``True`` to label minor ticks, ``False`` otherwise. """ if self._labelminor != label: self._labelminor = label self.Invalidate()
[ "def", "LabelMinor", "(", "self", ",", "label", "=", "True", ")", ":", "if", "self", ".", "_labelminor", "!=", "label", ":", "self", ".", "_labelminor", "=", "label", "self", ".", "Invalidate", "(", ")" ]
https://github.com/wxWidgets/wxPython-Classic/blob/19571e1ae65f1ac445f5491474121998c97a1bf0/wx/lib/agw/rulerctrl.py#L887-L896
mindspore-ai/mindspore
fb8fd3338605bb34fa5cea054e535a8b1d753fab
mindspore/python/mindspore/nn/probability/distribution/poisson.py
python
Poisson._log_prob
(self, value, rate=None)
return log_unnormalized_prob - log_normalization
r""" Log probability density function of Poisson distributions. Args: Args: value (Tensor): The value to be evaluated. rate (Tensor): The rate of the distribution. Default: self.rate. Note: `value` must be greater or equal to zero. .. ma...
r""" Log probability density function of Poisson distributions.
[ "r", "Log", "probability", "density", "function", "of", "Poisson", "distributions", "." ]
def _log_prob(self, value, rate=None): r""" Log probability density function of Poisson distributions. Args: Args: value (Tensor): The value to be evaluated. rate (Tensor): The rate of the distribution. Default: self.rate. Note: `value` m...
[ "def", "_log_prob", "(", "self", ",", "value", ",", "rate", "=", "None", ")", ":", "value", "=", "self", ".", "_check_value", "(", "value", ",", "\"value\"", ")", "value", "=", "self", ".", "cast", "(", "value", ",", "self", ".", "dtype", ")", "rat...
https://github.com/mindspore-ai/mindspore/blob/fb8fd3338605bb34fa5cea054e535a8b1d753fab/mindspore/python/mindspore/nn/probability/distribution/poisson.py#L222-L248
wxWidgets/wxPython-Classic
19571e1ae65f1ac445f5491474121998c97a1bf0
wx/lib/agw/persist/persist_handlers.py
python
AbstractHandler.Restore
(self)
Restores the widget's settings by calling :meth:`PersistentObject.RestoreValue() <lib.agw.persist.persistencemanager.PersistentObject.RestoreValue>`, which in turns calls :meth:`PersistenceManager.RestoreValue() <lib.agw.persist.persistencemanager.PersistenceManager.RestoreValue>`. :note: This method m...
Restores the widget's settings by calling :meth:`PersistentObject.RestoreValue() <lib.agw.persist.persistencemanager.PersistentObject.RestoreValue>`, which in turns calls :meth:`PersistenceManager.RestoreValue() <lib.agw.persist.persistencemanager.PersistenceManager.RestoreValue>`.
[ "Restores", "the", "widget", "s", "settings", "by", "calling", ":", "meth", ":", "PersistentObject", ".", "RestoreValue", "()", "<lib", ".", "agw", ".", "persist", ".", "persistencemanager", ".", "PersistentObject", ".", "RestoreValue", ">", "which", "in", "tu...
def Restore(self): """ Restores the widget's settings by calling :meth:`PersistentObject.RestoreValue() <lib.agw.persist.persistencemanager.PersistentObject.RestoreValue>`, which in turns calls :meth:`PersistenceManager.RestoreValue() <lib.agw.persist.persistencemanager.PersistenceManager.Restor...
[ "def", "Restore", "(", "self", ")", ":", "pass" ]
https://github.com/wxWidgets/wxPython-Classic/blob/19571e1ae65f1ac445f5491474121998c97a1bf0/wx/lib/agw/persist/persist_handlers.py#L130-L138
wxWidgets/wxPython-Classic
19571e1ae65f1ac445f5491474121998c97a1bf0
src/osx_cocoa/html.py
python
HtmlPrintout.SetHeader
(*args, **kwargs)
return _html.HtmlPrintout_SetHeader(*args, **kwargs)
SetHeader(self, String header, int pg=PAGE_ALL)
SetHeader(self, String header, int pg=PAGE_ALL)
[ "SetHeader", "(", "self", "String", "header", "int", "pg", "=", "PAGE_ALL", ")" ]
def SetHeader(*args, **kwargs): """SetHeader(self, String header, int pg=PAGE_ALL)""" return _html.HtmlPrintout_SetHeader(*args, **kwargs)
[ "def", "SetHeader", "(", "*", "args", ",", "*", "*", "kwargs", ")", ":", "return", "_html", ".", "HtmlPrintout_SetHeader", "(", "*", "args", ",", "*", "*", "kwargs", ")" ]
https://github.com/wxWidgets/wxPython-Classic/blob/19571e1ae65f1ac445f5491474121998c97a1bf0/src/osx_cocoa/html.py#L1284-L1286
pmq20/node-packer
12c46c6e44fbc14d9ee645ebd17d5296b324f7e0
lts/tools/gyp/pylib/gyp/msvs_emulation.py
python
MsvsSettings.GetAsmflags
(self, config)
return asmflags
Returns the flags that need to be added to ml invocations.
Returns the flags that need to be added to ml invocations.
[ "Returns", "the", "flags", "that", "need", "to", "be", "added", "to", "ml", "invocations", "." ]
def GetAsmflags(self, config): """Returns the flags that need to be added to ml invocations.""" config = self._TargetConfig(config) asmflags = [] safeseh = self._Setting(('MASM', 'UseSafeExceptionHandlers'), config) if safeseh == 'true': asmflags.append('/safeseh') return asmflags
[ "def", "GetAsmflags", "(", "self", ",", "config", ")", ":", "config", "=", "self", ".", "_TargetConfig", "(", "config", ")", "asmflags", "=", "[", "]", "safeseh", "=", "self", ".", "_Setting", "(", "(", "'MASM'", ",", "'UseSafeExceptionHandlers'", ")", "...
https://github.com/pmq20/node-packer/blob/12c46c6e44fbc14d9ee645ebd17d5296b324f7e0/lts/tools/gyp/pylib/gyp/msvs_emulation.py#L433-L440
MrMC/mrmc
5a8e460b2aec44f03eb9604cbd7681d4277dbb81
tools/EventClients/lib/python/xbmcclient.py
python
Packet.send
(self, sock, addr, uid=UNIQUE_IDENTIFICATION)
return True
Send the entire message to the specified socket and address. Arguments: sock -- datagram socket object (socket.socket) addr -- address, port pair (eg: ("127.0.0.1", 9777) ) uid -- unique identification
Send the entire message to the specified socket and address.
[ "Send", "the", "entire", "message", "to", "the", "specified", "socket", "and", "address", "." ]
def send(self, sock, addr, uid=UNIQUE_IDENTIFICATION): """Send the entire message to the specified socket and address. Arguments: sock -- datagram socket object (socket.socket) addr -- address, port pair (eg: ("127.0.0.1", 9777) ) uid -- unique identification """ ...
[ "def", "send", "(", "self", ",", "sock", ",", "addr", ",", "uid", "=", "UNIQUE_IDENTIFICATION", ")", ":", "self", ".", "uid", "=", "uid", "for", "a", "in", "range", "(", "0", ",", "self", ".", "num_packets", "(", ")", ")", ":", "try", ":", "sock"...
https://github.com/MrMC/mrmc/blob/5a8e460b2aec44f03eb9604cbd7681d4277dbb81/tools/EventClients/lib/python/xbmcclient.py#L242-L256
DGA-MI-SSI/YaCo
9b85e6ca1809114c4df1382c11255f7e38408912
deps/flatbuffers-1.8.0/python/flatbuffers/table.py
python
Table.VectorLen
(self, off)
return ret
VectorLen retrieves the length of the vector whose offset is stored at "off" in this object.
VectorLen retrieves the length of the vector whose offset is stored at "off" in this object.
[ "VectorLen", "retrieves", "the", "length", "of", "the", "vector", "whose", "offset", "is", "stored", "at", "off", "in", "this", "object", "." ]
def VectorLen(self, off): """VectorLen retrieves the length of the vector whose offset is stored at "off" in this object.""" N.enforce_number(off, N.UOffsetTFlags) off += self.Pos off += encode.Get(N.UOffsetTFlags.packer_type, self.Bytes, off) ret = encode.Get(N.UOffs...
[ "def", "VectorLen", "(", "self", ",", "off", ")", ":", "N", ".", "enforce_number", "(", "off", ",", "N", ".", "UOffsetTFlags", ")", "off", "+=", "self", ".", "Pos", "off", "+=", "encode", ".", "Get", "(", "N", ".", "UOffsetTFlags", ".", "packer_type"...
https://github.com/DGA-MI-SSI/YaCo/blob/9b85e6ca1809114c4df1382c11255f7e38408912/deps/flatbuffers-1.8.0/python/flatbuffers/table.py#L56-L64
epam/Indigo
30e40b4b1eb9bae0207435a26cfcb81ddcc42be1
api/python/indigo/__init__.py
python
IndigoObject.iteratePseudoatoms
(self)
return self.dispatcher.IndigoObject( self.dispatcher, self.dispatcher._checkResult( Indigo._lib.indigoIteratePseudoatoms(self.id) ), )
Molecule method returns an iterator for all pseudoatoms Returns: IndigoObject: atom iterator
Molecule method returns an iterator for all pseudoatoms
[ "Molecule", "method", "returns", "an", "iterator", "for", "all", "pseudoatoms" ]
def iteratePseudoatoms(self): """Molecule method returns an iterator for all pseudoatoms Returns: IndigoObject: atom iterator """ self.dispatcher._setSessionId() return self.dispatcher.IndigoObject( self.dispatcher, self.dispatcher._checkResul...
[ "def", "iteratePseudoatoms", "(", "self", ")", ":", "self", ".", "dispatcher", ".", "_setSessionId", "(", ")", "return", "self", ".", "dispatcher", ".", "IndigoObject", "(", "self", ".", "dispatcher", ",", "self", ".", "dispatcher", ".", "_checkResult", "(",...
https://github.com/epam/Indigo/blob/30e40b4b1eb9bae0207435a26cfcb81ddcc42be1/api/python/indigo/__init__.py#L811-L823
borglab/gtsam
a5bee157efce6a0563704bce6a5d188c29817f39
python/gtsam/examples/IMUKittiExampleGPS.py
python
main
()
Main runner.
Main runner.
[ "Main", "runner", "." ]
def main(): """Main runner.""" args = parse_args() kitti_calibration, imu_measurements, gps_measurements = loadKittiData() if not kitti_calibration.bodyTimu.equals(Pose3(), 1e-8): raise ValueError( "Currently only support IMUinBody is identity, i.e. IMU and body frame are the same" ...
[ "def", "main", "(", ")", ":", "args", "=", "parse_args", "(", ")", "kitti_calibration", ",", "imu_measurements", ",", "gps_measurements", "=", "loadKittiData", "(", ")", "if", "not", "kitti_calibration", ".", "bodyTimu", ".", "equals", "(", "Pose3", "(", ")"...
https://github.com/borglab/gtsam/blob/a5bee157efce6a0563704bce6a5d188c29817f39/python/gtsam/examples/IMUKittiExampleGPS.py#L334-L362
apache/trafodion
8455c839ad6b6d7b6e04edda5715053095b78046
install/python-installer/scripts/httplib2/__init__.py
python
_parse_www_authenticate
(headers, headername='www-authenticate')
return retval
Returns a dictionary of dictionaries, one dict per auth_scheme.
Returns a dictionary of dictionaries, one dict per auth_scheme.
[ "Returns", "a", "dictionary", "of", "dictionaries", "one", "dict", "per", "auth_scheme", "." ]
def _parse_www_authenticate(headers, headername='www-authenticate'): """Returns a dictionary of dictionaries, one dict per auth_scheme.""" retval = {} if headers.has_key(headername): try: authenticate = headers[headername].strip() www_auth = USE_WWW_AUTH_STRICT_PARSING and WW...
[ "def", "_parse_www_authenticate", "(", "headers", ",", "headername", "=", "'www-authenticate'", ")", ":", "retval", "=", "{", "}", "if", "headers", ".", "has_key", "(", "headername", ")", ":", "try", ":", "authenticate", "=", "headers", "[", "headername", "]...
https://github.com/apache/trafodion/blob/8455c839ad6b6d7b6e04edda5715053095b78046/install/python-installer/scripts/httplib2/__init__.py#L305-L332
tensorflow/tensorflow
419e3a6b650ea4bd1b0cba23c4348f8a69f3272e
tensorflow/python/saved_model/function_deserialization.py
python
_gen_gradient_func
(func)
return gradient_func
Wraps a deserialized function.
Wraps a deserialized function.
[ "Wraps", "a", "deserialized", "function", "." ]
def _gen_gradient_func(func): """Wraps a deserialized function.""" def gradient_func(unused_op, *result_grads): # Replace all `None` arguments, because the traced custom gradient function # expects tensors. Replacing with zeros is correct since the `None` values # occur when the gradient is unconnected...
[ "def", "_gen_gradient_func", "(", "func", ")", ":", "def", "gradient_func", "(", "unused_op", ",", "*", "result_grads", ")", ":", "# Replace all `None` arguments, because the traced custom gradient function", "# expects tensors. Replacing with zeros is correct since the `None` values...
https://github.com/tensorflow/tensorflow/blob/419e3a6b650ea4bd1b0cba23c4348f8a69f3272e/tensorflow/python/saved_model/function_deserialization.py#L450-L463
apple/turicreate
cce55aa5311300e3ce6af93cb45ba791fd1bdf49
deps/src/libxml2-2.9.1/python/libxml2class.py
python
uCSIsMiscellaneousSymbolsandArrows
(code)
return ret
Check whether the character is part of MiscellaneousSymbolsandArrows UCS Block
Check whether the character is part of MiscellaneousSymbolsandArrows UCS Block
[ "Check", "whether", "the", "character", "is", "part", "of", "MiscellaneousSymbolsandArrows", "UCS", "Block" ]
def uCSIsMiscellaneousSymbolsandArrows(code): """Check whether the character is part of MiscellaneousSymbolsandArrows UCS Block """ ret = libxml2mod.xmlUCSIsMiscellaneousSymbolsandArrows(code) return ret
[ "def", "uCSIsMiscellaneousSymbolsandArrows", "(", "code", ")", ":", "ret", "=", "libxml2mod", ".", "xmlUCSIsMiscellaneousSymbolsandArrows", "(", "code", ")", "return", "ret" ]
https://github.com/apple/turicreate/blob/cce55aa5311300e3ce6af93cb45ba791fd1bdf49/deps/src/libxml2-2.9.1/python/libxml2class.py#L1970-L1974
aws/lumberyard
f85344403c1c2e77ec8c75deb2c116e97b713217
dev/Tools/Python/3.7.10/mac/Python.framework/Versions/3.7/lib/python3.7/site-packages/pkg_resources/__init__.py
python
ResourceManager.resource_listdir
(self, package_or_requirement, resource_name)
return get_provider(package_or_requirement).resource_listdir( resource_name )
List the contents of the named resource directory
List the contents of the named resource directory
[ "List", "the", "contents", "of", "the", "named", "resource", "directory" ]
def resource_listdir(self, package_or_requirement, resource_name): """List the contents of the named resource directory""" return get_provider(package_or_requirement).resource_listdir( resource_name )
[ "def", "resource_listdir", "(", "self", ",", "package_or_requirement", ",", "resource_name", ")", ":", "return", "get_provider", "(", "package_or_requirement", ")", ".", "resource_listdir", "(", "resource_name", ")" ]
https://github.com/aws/lumberyard/blob/f85344403c1c2e77ec8c75deb2c116e97b713217/dev/Tools/Python/3.7.10/mac/Python.framework/Versions/3.7/lib/python3.7/site-packages/pkg_resources/__init__.py#L1161-L1165
limbo018/DREAMPlace
146c3b9fd003d1acd52c96d9fd02e3f0a05154e4
dreamplace/ops/density_potential/density_potential.py
python
plot
(plot_count, density_map, padding, name)
density map contour and heat map
density map contour and heat map
[ "density", "map", "contour", "and", "heat", "map" ]
def plot(plot_count, density_map, padding, name): """ density map contour and heat map """ density_map = density_map[padding:-1 - padding, padding:-1 - padding] print("max density = %g" % (np.amax(density_map))) print("mean density = %g" % (np.mean(density_map))) fig = plt.figure() ax ...
[ "def", "plot", "(", "plot_count", ",", "density_map", ",", "padding", ",", "name", ")", ":", "density_map", "=", "density_map", "[", "padding", ":", "-", "1", "-", "padding", ",", "padding", ":", "-", "1", "-", "padding", "]", "print", "(", "\"max dens...
https://github.com/limbo018/DREAMPlace/blob/146c3b9fd003d1acd52c96d9fd02e3f0a05154e4/dreamplace/ops/density_potential/density_potential.py#L309-L332
catboost/catboost
167f64f237114a4d10b2b4ee42adb4569137debe
contrib/python/numpy/py3/numpy/lib/type_check.py
python
imag
(val)
Return the imaginary part of the complex argument. Parameters ---------- val : array_like Input array. Returns ------- out : ndarray or scalar The imaginary component of the complex argument. If `val` is real, the type of `val` is used for the output. If `val` has comp...
Return the imaginary part of the complex argument.
[ "Return", "the", "imaginary", "part", "of", "the", "complex", "argument", "." ]
def imag(val): """ Return the imaginary part of the complex argument. Parameters ---------- val : array_like Input array. Returns ------- out : ndarray or scalar The imaginary component of the complex argument. If `val` is real, the type of `val` is used for the...
[ "def", "imag", "(", "val", ")", ":", "try", ":", "return", "val", ".", "imag", "except", "AttributeError", ":", "return", "asanyarray", "(", "val", ")", ".", "imag" ]
https://github.com/catboost/catboost/blob/167f64f237114a4d10b2b4ee42adb4569137debe/contrib/python/numpy/py3/numpy/lib/type_check.py#L168-L203
CoolProp/CoolProp
381c8535e5dec3eec27ad430ebbfff8bc9dfc008
wrappers/Python/CoolProp/Plots/ConsistencyPlots.py
python
ConsistencyAxis.to_axis_units
(self, label, vals)
Convert to the units used in the plot
Convert to the units used in the plot
[ "Convert", "to", "the", "units", "used", "in", "the", "plot" ]
def to_axis_units(self, label, vals): """ Convert to the units used in the plot """ if label in ['Hmolar', 'Smolar', 'Umolar', 'Dmolar', 'P']: return vals / 1000 elif label in ['T']: return vals else: raise ValueError(label)
[ "def", "to_axis_units", "(", "self", ",", "label", ",", "vals", ")", ":", "if", "label", "in", "[", "'Hmolar'", ",", "'Smolar'", ",", "'Umolar'", ",", "'Dmolar'", ",", "'P'", "]", ":", "return", "vals", "/", "1000", "elif", "label", "in", "[", "'T'",...
https://github.com/CoolProp/CoolProp/blob/381c8535e5dec3eec27ad430ebbfff8bc9dfc008/wrappers/Python/CoolProp/Plots/ConsistencyPlots.py#L293-L300
hanpfei/chromium-net
392cc1fa3a8f92f42e4071ab6e674d8e0482f83f
third_party/catapult/third_party/gsutil/third_party/boto/boto/manage/task.py
python
Task.check
(self)
Determine how long until the next scheduled time for a Task. Returns the number of seconds until the next scheduled time or zero if the task needs to be run immediately. If it's an hourly task and it's never been run, run it now. If it's a daily task and it's never been run and the hour ...
Determine how long until the next scheduled time for a Task. Returns the number of seconds until the next scheduled time or zero if the task needs to be run immediately. If it's an hourly task and it's never been run, run it now. If it's a daily task and it's never been run and the hour ...
[ "Determine", "how", "long", "until", "the", "next", "scheduled", "time", "for", "a", "Task", ".", "Returns", "the", "number", "of", "seconds", "until", "the", "next", "scheduled", "time", "or", "zero", "if", "the", "task", "needs", "to", "be", "run", "im...
def check(self): """ Determine how long until the next scheduled time for a Task. Returns the number of seconds until the next scheduled time or zero if the task needs to be run immediately. If it's an hourly task and it's never been run, run it now. If it's a daily task ...
[ "def", "check", "(", "self", ")", ":", "boto", ".", "log", ".", "info", "(", "'checking Task[%s]-now=%s, last=%s'", "%", "(", "self", ".", "name", ",", "self", ".", "now", ",", "self", ".", "last_executed", ")", ")", "if", "self", ".", "hourly", "and",...
https://github.com/hanpfei/chromium-net/blob/392cc1fa3a8f92f42e4071ab6e674d8e0482f83f/third_party/catapult/third_party/gsutil/third_party/boto/boto/manage/task.py#L68-L100