query
stringlengths
10
3.6k
document
stringlengths
19
61.4k
metadata
dict
negatives
listlengths
0
101
negative_scores
listlengths
0
101
document_score
stringlengths
3
10
document_rank
stringclasses
102 values
Sets the id of this Context.
def id(YKHO, id): YKHO._id = id
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def V_9M(YKHO, hbFX):\n YKHO.id_ = hbFX", "def V_9M(YKHO, id):\n YKHO.__id = id", "def psjw(YKHO, id):\n YKHO.id = int(id)", "def V_9M(YKHO, id):\n YKHO.data['id'] = id", "def V_9M(YKHO, hbFX=None):\n if hbFX is None:\n YKHO.id = id(YKHO)\n else:\n YKHO.id = hbFX", "def ek...
[ "0.8333739", "0.83109325", "0.8123394", "0.798901", "0.7937271", "0.7878671", "0.77810943", "0.7772996", "0.7772996", "0.7772996", "0.7772996", "0.7772996", "0.7772996", "0.7772996", "0.7772996", "0.7772996", "0.7772996", "0.7763799", "0.7763799", "0.7763799", "0.7763799", ...
0.0
-1
Returns true if both objects are equal
def xa14(YKHO, Elif): if not isinstance(Elif, cFqH): return False return YKHO.__dict__ == Elif.__dict__
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def xa14(YKHO, Elif):\n return p6XU(YKHO, Elif)", "def xa14(YKHO, Elif):\n return p6XU(YKHO, Elif)", "def xa14(YKHO, Elif):\n try:\n return YKHO.object == Elif.object and isinstance(YKHO, type(Elif))\n except:\n return False", "def xa14(YKHO, Elif):\n if isinstance(YKHO, Elif.__c...
[ "0.8088132", "0.8088132", "0.8054589", "0.7982687", "0.79670393", "0.79670393", "0.79670393", "0.79670393", "0.79670393", "0.79670393", "0.79670393", "0.79670393", "0.79670393", "0.79670393", "0.79670393", "0.79670393", "0.79670393", "0.79670393", "0.79670393", "0.79670393", ...
0.0
-1
Returns true if both objects are not equal
def Vdqg(YKHO, Elif): return not YKHO == Elif
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Vdqg(YKHO, Elif: object) -> bool:\n if YKHO.__eq__(Elif):\n return False\n return True", "def Vdqg(YKHO, Elif: object) -> bool:\n return not YKHO.__eq__(Elif)", "def Vdqg(YKHO, Elif) -> bool:\n return not YKHO.__eq__(Elif)", "def xa14(YKHO, Elif):\n return not YKHO.__ne__(Elif)", ...
[ "0.845611", "0.8391477", "0.8144138", "0.81410587", "0.8132492", "0.8093973", "0.80920255", "0.80920255", "0.80920255", "0.8085325", "0.8085325", "0.8076365", "0.8076365", "0.8065748" ]
0.0
-1
The time when this table was created, in milliseconds since the epoch.
def bZt2(YKHO) -> str: return qe4Y.get(YKHO, 'creation_time')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def x7vo(YKHO):\n return YKHO._create_time", "def x7vo(YKHO):\n return YKHO._create_time", "def x7vo(YKHO):\n return YKHO._create_time", "def OhEq(YKHO):\n return YKHO.getThisUpdate()", "def PFre(YKHO):\n return YKHO._created_timestamp", "def wqpv(YKHO) -> qcWV.datetime:\n return YKHO._...
[ "0.80330205", "0.80330205", "0.80330205", "0.78535074", "0.78340864", "0.7812318", "0.7812318", "0.78018546", "0.78018546", "0.78018546", "0.77463055", "0.77463055", "0.77463055", "0.7725385", "0.7725385", "0.7725385", "0.7725385", "0.7704169", "0.7682911", "0.76779926", "0.7...
0.7758315
12
The default collation of the table.
def e6FJ(YKHO) -> str: return qe4Y.get(YKHO, 'default_collation')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def soVO(YKHO) -> str:\n return qe4Y.get(YKHO, 'collation')", "def soVO(YKHO) -> str:\n return qe4Y.get(YKHO, 'collation')", "def soVO(YKHO) -> h8nf[str]:\n return qe4Y.get(YKHO, 'collation')", "def HzSl(YKHO, PM_4):\n if PM_4 == 83:\n return 'utf8_bin'\n for gtI8 in YKHO.charset_map:\n...
[ "0.78136224", "0.78136224", "0.77737534", "0.7545584", "0.7475068", "0.7276392", "0.7276392", "0.7105119", "0.7040239", "0.63822234", "0.61310786", "0.6046535", "0.58100015", "0.5646899", "0.5602024", "0.55141604", "0.55011624", "0.545752", "0.54123014", "0.539641", "0.537901...
0.86264414
0
[Optional] Describes the data format, location, and other properties of a table stored outside of BigQuery. By defining these properties, the data source can then be queried as if it were a standard BigQuery table.
def ELMM(YKHO) -> 'outputs.ExternalDataConfigurationResponse': return qe4Y.get(YKHO, 'external_data_configuration')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def tyNF(YKHO) -> 'outputs.PreventionStoredInfoTypeLargeCustomDictionaryBigQueryFieldTable':\n return qe4Y.get(YKHO, 'table')", "def qWJY(*qIxc, **B2fa):\n return {'columns': [{'title': 'id'}, {'title': 'name'}, {'title': 'type'}], 'data': [[18371164, 'All', 'CUSTOM'], [18371166, 'None', 'CUSTOM'], [183711...
[ "0.69016546", "0.66494435", "0.64065456", "0.6119074", "0.60907674", "0.6067867", "0.6024894", "0.5946301", "0.5924499", "0.592229", "0.592079", "0.58975965", "0.5889021", "0.58009356", "0.5758227", "0.5740704", "0.5728949", "0.57172334", "0.56923234", "0.5678525", "0.5628191...
0.0
-1
[Optional] A descriptive name for this table.
def D7WV(YKHO) -> str: return qe4Y.get(YKHO, 'friendly_name')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def mWFP(YKHO):\n if YKHO.table:\n return '{}.{}'.format(YKHO.table, YKHO.field_name)\n return YKHO.field_name", "def GTA_() -> str:\n pass", "def mWFP(YKHO) -> str:\n return f'lookup_table_{YKHO.table_number}'", "def GTA_(YKHO) -> qe4Y.Output[str]:\n return qe4Y.get(YKHO, 'table_name')...
[ "0.7807215", "0.7501432", "0.7392283", "0.73176074", "0.7271936", "0.72107065", "0.72107065", "0.72107065", "0.7193346", "0.7180009", "0.7155558", "0.7147313", "0.71393424", "0.7030151", "0.6995039", "0.6979066", "0.6903773", "0.68651736", "0.6852314", "0.68083334", "0.680833...
0.0
-1
The type of the resource.
def eJTR(YKHO) -> str: return qe4Y.get(YKHO, 'kind')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Qjbs(Emd4):\n pass", "def Qjbs(YKHO) -> h8nf[str]:\n return qe4Y.get(YKHO, 'resource_type')", "def Qjbs(YKHO) -> h8nf[str]:\n return qe4Y.get(YKHO, 'resource_type')", "def Qjbs(YKHO) -> h8nf[qe4Y.Input[str]]:\n return qe4Y.get(YKHO, 'resource_type')", "def Qjbs(YKHO) -> h8nf[qe4Y.Input[str]...
[ "0.87906647", "0.8584323", "0.8584323", "0.8426089", "0.8426089", "0.8426089", "0.8426089", "0.8426089", "0.8225315", "0.79590267", "0.78331804", "0.78331804", "0.78331804", "0.78331804", "0.78331804", "0.78331804", "0.78331804", "0.78331804", "0.78331804", "0.78331804", "0.7...
0.0
-1
The geographic location where the table resides. This value is inherited from the dataset.
def Rci7(YKHO) -> str: return qe4Y.get(YKHO, 'location')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Rci7(YKHO):\n return YKHO.geometry.location", "def TuoA(YKHO):\n return YKHO.query.geo", "def hbd3(YKHO):\n return YKHO.location", "def hbd3(YKHO):\n return YKHO.location", "def hbd3(YKHO):\n return YKHO.__location", "def Rci7(YKHO):\n return YKHO._location", "def Rci7(YKHO):\n ...
[ "0.74479157", "0.7304543", "0.72684556", "0.72581834", "0.72391886", "0.71933967", "0.71933967", "0.7173958", "0.7147563", "0.7044566", "0.70119196", "0.6993423", "0.69838476", "0.6938545", "0.692765", "0.692765", "0.692765", "0.68873495", "0.6885552", "0.6877596", "0.6819904...
0.7098293
18
The size of this table in bytes, excluding any data in the streaming buffer.
def j9v1(YKHO) -> str: return qe4Y.get(YKHO, 'num_bytes')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def jiw9(YKHO):\n return len(YKHO.table)", "def IpkL(YKHO):\n return YKHO.table_size", "def DEza(YKHO):\n return ED7W.Table_Size(YKHO)", "def wuRi(YKHO):\n return YKHO.tables.nbytes", "def IpkL(YKHO, GTA_):\n return YKHO.get_table_size_from_IS(GTA_)", "def MU3Z(YKHO, GTA_):\n Aofo = YKH...
[ "0.8699214", "0.8579445", "0.85120296", "0.8310454", "0.7801687", "0.7751941", "0.7647896", "0.76134", "0.7611741", "0.7601728", "0.7590972", "0.75707984", "0.7558651", "0.7512537", "0.7486619", "0.7486619", "0.7486619", "0.7486619", "0.74509245", "0.74500346", "0.7446358", ...
0.0
-1
The number of rows of data in this table, excluding any data in the streaming buffer.
def NwL4(YKHO) -> str: return qe4Y.get(YKHO, 'num_rows')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def GU5X(YKHO):\n return ED7W.DSTable_NumberOfRows(YKHO)", "def DR2N(YKHO) -> int:\n return len(YKHO.rows)", "def DR2N(YKHO) -> int:\n return len(YKHO.rows)", "def NwL4(YKHO):\n return len(YKHO.rows)", "def KyVX(YKHO):\n return len(YKHO.value)", "def NwL4(YKHO):\n return len(YKHO.rows)"...
[ "0.85394216", "0.85293907", "0.85293907", "0.84312284", "0.8412384", "0.84086573", "0.81958157", "0.81296355", "0.811677", "0.811077", "0.81107044", "0.8102242", "0.80644774", "0.80101675", "0.7989217", "0.7980506", "0.79217064", "0.7915248", "0.7888677", "0.78502095", "0.779...
0.7893846
18
Total number of logical bytes in the table or materialized view.
def s_12(YKHO) -> str: return qe4Y.get(YKHO, 'num_total_logical_bytes')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def YaWQ(YKHO):\n with YKHO.session as cuiw:\n Aofo = cuiw.execute(EfUA([JfyU.sum(OymE.size)])).scalar()\n if Aofo is None:\n return 0\n return Swre(Aofo)", "def wuRi(YKHO):\n return YKHO.tables.nbytes", "def jiw9(YKHO):\n return len(YKHO.table)", "def t_lK(YKHO):\n ...
[ "0.79217714", "0.7506452", "0.7446191", "0.7316531", "0.7173879", "0.71348846", "0.7132611", "0.7127796", "0.70895934", "0.70560026", "0.7046603", "0.70415944", "0.70050097", "0.7003393", "0.6993725", "0.69600844", "0.6946887", "0.6924681", "0.69006073", "0.68954057", "0.6868...
0.75662625
1
The physical size of this table in bytes. This also includes storage used for time travel. This data is not kept in real time, and might be delayed by a few seconds to a few minutes.
def KC5y(YKHO) -> str: return qe4Y.get(YKHO, 'num_total_physical_bytes')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def IpkL(YKHO):\n return YKHO.table_size", "def DEza(YKHO):\n return ED7W.Table_Size(YKHO)", "def jiw9(YKHO):\n return len(YKHO.table)", "def YSVa(YKHO):\n return YKHO.__table_size(zuQF)", "def IpkL(YKHO, GTA_):\n return YKHO.get_table_size_from_IS(GTA_)", "def zNig(YKHO):\n zNig = 0\n ...
[ "0.8460477", "0.8297233", "0.8112408", "0.78544104", "0.77760714", "0.7577903", "0.75246567", "0.75227606", "0.7506876", "0.7425617", "0.7370523", "0.7364475", "0.73087907", "0.73022574", "0.72907454", "0.72852165", "0.7267207", "0.72555375", "0.7214479", "0.72122824", "0.718...
0.7121418
34
[TrustedTester] Range partitioning specification for this table. Only one of timePartitioning and rangePartitioning should be specified.
def paAK(YKHO) -> 'outputs.RangePartitioningResponse': return qe4Y.get(YKHO, 'range_partitioning')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def G_XU(YKHO):\n raise Exception('Unimplemented')", "def epGU(YKHO):\n XOh9 = YKHO.table_config['partitions']\n if XOh9 is None or len(XOh9) == 0:\n return False\n if isinstance(XOh9, list):\n return all((ZfUD is not None for ZfUD in XOh9))\n raise ValueError('Partitions must be a l...
[ "0.5908911", "0.57341045", "0.5669595", "0.55702806", "0.5398147", "0.5370436", "0.5356754", "0.5342656", "0.53156346", "0.5257485", "0.525152", "0.5233062", "0.52306575", "0.52021116", "0.5191875", "0.5169792", "0.51235795", "0.5108051", "0.51012963", "0.5096346", "0.5034526...
0.67215306
0
[Required] Reference describing the ID of this table.
def vwxP(YKHO) -> 'outputs.TableReferenceResponse': return qe4Y.get(YKHO, 'table_reference')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def iK1K(YKHO) -> str:\n return qe4Y.get(YKHO, 'table_id')", "def ShR8(YKHO):\n return YKHO._table.id", "def zZ1q(YKHO):\n return YKHO._id", "def id(YKHO):\n return YKHO.__id", "def id(YKHO):\n return YKHO.__id", "def Fknb(YKHO):\n return YKHO._route_table_id", "def yHil(YKHO):\n r...
[ "0.7902887", "0.7523377", "0.7228239", "0.72048825", "0.7185027", "0.7131604", "0.70950943", "0.70671606", "0.70671606", "0.70671606", "0.70671606", "0.70671606", "0.70671606", "0.70671606", "0.70671606", "0.70671606", "0.70671606", "0.70671606", "0.70671606", "0.70671606", "...
0.0
-1
Convert a datetime object to an indystandard datetime string.
def hLAQ(JRYC: Union[str, datetime]) -> str: if isinstance(JRYC, qcWV): JRYC = JRYC.replace(tzinfo=rIAI.utc).isoformat(' ').replace('+00:00', 'Z') return JRYC
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def mtM3(YKHO, eGVy):\n if isinstance(eGVy, oyIN.datetime64):\n eGVy = rLdf.Timestamp(eGVy).to_pydatetime()\n if isinstance(eGVy, JRYC.datetime):\n return eGVy.strftime('%Y%m%dT%H%M%S')\n elif isinstance(eGVy, JRYC.date):\n return eGVy.strftime('%Y%m%d')\n else:\n return eGV...
[ "0.7868194", "0.750783", "0.74204874", "0.74170095", "0.73605525", "0.7308985", "0.72649616", "0.72649616", "0.7225484", "0.7208789", "0.71867216", "0.71677744", "0.7121334", "0.70454055", "0.7031042", "0.6987522", "0.69870627", "0.6958048", "0.6956313", "0.6837198", "0.68329...
0.745024
2
Timestamp in ISO format.
def JUFO() -> str: return hLAQ(RN2L())
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def CQ0f(E3oo):\n if E3oo is None:\n return None\n return qcWV.isoformat(qcWV.utcfromtimestamp(int(E3oo)))", "def E3oo():\n return qcWV.now().strftime('%Y%m%dT%H%M%S')", "def X2x9():\n return '{}Z'.format(qcWV.datetime.utcnow().strftime('%Y-%m-%dT%H:%M:%S.%f')[:-3])", "def ZhGg(E3oo):\n ...
[ "0.7669968", "0.753076", "0.7455154", "0.73336184", "0.7227689", "0.72097605", "0.7126199", "0.71094406", "0.7083096", "0.70634013", "0.7055605", "0.7049728", "0.7026564", "0.6989766", "0.6977851", "0.69755125", "0.69750756", "0.6954906", "0.6915595", "0.69046843", "0.6893874...
0.0
-1
Return a weighted sum of items. Items can be list of tensors, numpy arrays, or nested lists / dicts. If ``weights`` is None, this is simply an unweighted sum.
def Sv4c(DumB: list[T], _mSQ: Sequence[float | None]=YWvJ(bdIy[h8nf[float]], None)) -> Kt_s: if _mSQ is None: _mSQ = [None] * len(DumB) assert len(DumB) == len(_mSQ) > 0 LihS = DumB[0] ayYY = 'Unsupported element type in weighted sum: {}. Value is: {}' if isinstance(LihS, str): raise...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Sv4c(nPrm, tpio=None, _mSQ=None):\n if isinstance(nPrm, zuVY.DataArray):\n return TVmJ(nPrm, tpio, _mSQ)\n elif isinstance(nPrm, zuVY.Dataset):\n return A0ZJ(nPrm, tpio, _mSQ)\n else:\n raise ValueError('Data must be an xarray Dataset or DataArray')", "def KiTx(DumB, _mSQ):\n ...
[ "0.71925735", "0.6888829", "0.6864763", "0.6765233", "0.65581334", "0.64911574", "0.6438327", "0.6420932", "0.64095163", "0.6386797", "0.63724184", "0.6240242", "0.62072104", "0.61985594", "0.618577", "0.6174428", "0.61200285", "0.6046423", "0.60413694", "0.602425", "0.600418...
0.83690184
0
Mock function for implementing the ConnectionError exception for get_comments() function.
def XT5k(Ms2Z, MOPg, NArs, vYBr, Odov): raise G4JS.exceptions.ConnectionError
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def GGAq(YKHO):\n pass", "def M9J3(YKHO):\n with YKHO.assertRaises(AssertionError):\n YKHO.resource.comments(-1)\n with YKHO.assertRaises(AssertionError):\n YKHO.resource.comments('foo', 'bar')", "def jK8x(YKHO):\n pass", "def StEW():\n with Po4F('cheddar.index.remote.get') as _x...
[ "0.7054444", "0.70382273", "0.67858785", "0.6677939", "0.6630677", "0.6601845", "0.6470455", "0.6204246", "0.61810756", "0.61799806", "0.6118818", "0.6112512", "0.60544556", "0.5960097", "0.5942213", "0.5930291", "0.59279805", "0.59199744", "0.5894636", "0.588664", "0.5883708...
0.7270582
0
Mock function for implementing test responses from the server for put_comments() function.
def ZRV1(JBvl, hGN5): Ze5t = TMAJ.Mock() Ze5t.status_code = JBvl Ze5t.content = hGN5 def ZG9D(Ms2Z, MOPg, qQXR, vYBr, Odov): return Ze5t return ZG9D
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def I9NX(JBvl, hGN5):\n Ze5t = TMAJ.Mock()\n Ze5t.status_code = JBvl\n Ze5t.content = hGN5\n\n def ZG9D(Ms2Z, MOPg, NArs, vYBr, Odov):\n return Ze5t\n return ZG9D", "def DzJc(YKHO):\n OeRI = YKHO.client.post(gxEw('posts:comment_create'), data={'post': YKHO.post.id, 'user': YKHO.user.id, ...
[ "0.7138392", "0.7061201", "0.69146216", "0.6888383", "0.66953963", "0.66437674", "0.6604533", "0.66018337", "0.65766215", "0.65766215", "0.6532709", "0.6520894", "0.6465181", "0.6458578", "0.643454", "0.6431737", "0.6422859", "0.64016324", "0.63384837", "0.62964875", "0.62892...
0.7498607
0
Mock function for implementing the ConnectionError exception for put_comments() function.
def QVjr(Ms2Z, MOPg, qQXR, vYBr, Odov): raise G4JS.exceptions.ConnectionError
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def M9J3(YKHO):\n with YKHO.assertRaises(AssertionError):\n YKHO.resource.comments(-1)\n with YKHO.assertRaises(AssertionError):\n YKHO.resource.comments('foo', 'bar')", "def CKhT(Ms2Z, MOPg, qQXR, vYBr, Odov):\n raise G4JS.exceptions.Timeout", "def XT5k(Ms2Z, MOPg, NArs, vYBr, Odov):\n ...
[ "0.701195", "0.6750641", "0.65917635", "0.6359844", "0.6262346", "0.622226", "0.6175148", "0.6137611", "0.60764325", "0.6060395", "0.60466164", "0.6030629", "0.60175973", "0.5988928", "0.59687793", "0.59592646", "0.59098583", "0.59045106", "0.585974", "0.58461463", "0.5845886...
0.7312669
0
Return the passed in dictionary after removing any keys whose value is `None`
def mkTU(nPrm: Dict[Any, Any]) -> cuzp[ImMB, ImMB]: return dict(nmsr(lambda WKvO: WKvO[1] is None, nPrm.items()))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Yylp(cmPJ: Dict) -> cuzp:\n return {H5ew: BWXx for H5ew, BWXx in cmPJ.items() if BWXx is not None}", "def e5iB(fGC9):\n Ylbp = {}\n Ylbp.update(((H5ew, BWXx) for H5ew, BWXx in fGC9.iteritems() if BWXx is not None))\n return Ylbp", "def xnx3(tbx9):\n return {G1Hx: Ty9i for G1Hx, Ty9i in list(...
[ "0.8293126", "0.8260851", "0.7992403", "0.7960719", "0.78745437", "0.7855159", "0.77950966", "0.77699697", "0.77135247", "0.7688711", "0.76405084", "0.76347107", "0.7607296", "0.75683933", "0.75189096", "0.7494253", "0.7407655", "0.73980755", "0.7361079", "0.7335773", "0.7264...
0.7465794
16
Utility function to merge the keys and values of two dicts recursively
def vGZu(cntZ: Dict[Any, Any], CsFy: Dict[Any, Any]) -> cuzp[ImMB, ImMB]: if not isinstance(CsFy, dict): return CsFy Aofo = _qLf(cntZ) for H5ew, BWXx in CsFy.items(): if H5ew in Aofo and isinstance(Aofo[H5ew], dict): Aofo[H5ew] = vGZu(Aofo[H5ew], BWXx) else: A...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def RSKQ(jzdc, Fg_i, pmON=None):\n if pmON is None:\n pmON = []\n for H5ew in Fg_i:\n if H5ew in jzdc:\n if isinstance(jzdc[H5ew], dict) and isinstance(Fg_i[H5ew], dict):\n RSKQ(jzdc[H5ew], Fg_i[H5ew], pmON + [str(H5ew)])\n else:\n jzdc[H5ew] = Fg_i[H...
[ "0.7748852", "0.77468914", "0.7737366", "0.77141505", "0.77141505", "0.7690336", "0.7646337", "0.76312804", "0.7622293", "0.7611898", "0.75830215", "0.75754756", "0.7544592", "0.7533087", "0.75329417", "0.7528591", "0.7523194", "0.749724", "0.74854934", "0.74854034", "0.74471...
0.76600325
6
Splits the data_set into a train and test split
def FJfc(wDWA, zBu_, NI2E): ai_V = oyIN.random.choice(wDWA.shape[0], zBu_ + NI2E, replace=False) UrO7 = wDWA.shape[1] - 1 PJz9 = UrO7 Oei2 = SRYB.ALGORITHM_INFO['feature_offset'] cC56 = wDWA[ai_V[0:zBu_], Oei2:UrO7] VJv0 = wDWA[ai_V[0:zBu_], PJz9] sAoX = wDWA[ai_V[zBu_:zBu_ + NI2E], Oei2:UrO...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def cTf9(onqj):\n XxFT, t4zr = bHtP(onqj, test_size=0.2, random_state=42)\n return (XxFT, t4zr)", "def F_Ph(YKHO):\n YKHO.train, YKHO.valid, bGrB, bGrB = bHtP(YKHO.data, YKHO.data, test_size=0.2)\n YKHO.valid, YKHO.test, bGrB, bGrB = bHtP(YKHO.valid, YKHO.valid, test_size=0.5)", "def FJfc(YKHO, NI2...
[ "0.8487214", "0.8336971", "0.813719", "0.80679923", "0.8036128", "0.7971644", "0.7941187", "0.79350126", "0.7880899", "0.7875266", "0.7874642", "0.78510416", "0.7848221", "0.7831215", "0.78145176", "0.7807052", "0.7785325", "0.7741662", "0.77382153", "0.7736848", "0.7695744",...
0.7858266
11
Return the representationish for this image.
def wHJl(YKHO): kmT1 = "<Journalize(id='{}', action_date='{}', action='{}')" return kmT1.format(YKHO.id, YKHO.action_date, YKHO.action)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def UpuU(YKHO) -> str:\n raise NotImplementedError()", "def wHJl(YKHO):\n return YKHO.textual_representation().encode('utf-8')", "def LNo8(YKHO):\n return YKHO._image", "def TcPZ(YKHO) -> jqNH:\n pass", "def wHJl(YKHO) -> str:\n Csk6 = YKHO.image_data\n ROpF = 'x'.join(map(str, Csk6.shape...
[ "0.71336955", "0.67383814", "0.6677891", "0.66539836", "0.66193813", "0.66084206", "0.6528242", "0.65189004", "0.6492569", "0.64611065", "0.6428156", "0.64237547", "0.64206696", "0.64206696", "0.64206696", "0.64206696", "0.64206696", "0.64206696", "0.64206696", "0.64206696", ...
0.0
-1
Return all associated skinCluster nodes.
def iY1I(eEku): if not GfZ5(eEku): eEku = [eEku] dixj = [] for Q6kx in eEku: dixj.extend([Kxs4 for Kxs4 in set(Q6kx.listHistory(type='skinCluster') or Q6kx.listConnections(type='skinCluster')) if Kxs4 not in dixj]) return dixj
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def CDNe(YKHO):\n return YKHO.__allNodes", "def JqV7(YKHO):\n Ziit = []\n for gEmA in YKHO.layers:\n Ziit += gEmA.nodes\n return Ziit", "def aAQH(YKHO):\n return YKHO.ironic_client.node.list()", "def qmh8(YKHO):\n return YKHO._get_all_nodes()", "def qmh8(YKHO):\n return YKHO.nod...
[ "0.6869982", "0.68501186", "0.6800282", "0.67999434", "0.6752082", "0.67087334", "0.6697265", "0.66299033", "0.6623317", "0.66205287", "0.66205287", "0.6594207", "0.6594207", "0.6594207", "0.65872383", "0.657886", "0.6540526", "0.6511304", "0.65077835", "0.65014374", "0.64998...
0.6725553
5
Test getting storage used by a s3 bucket
def JwKw(YKHO, cOAi): cOAi().list_buckets.return_value = list(liH3.keys()) cOAi().list_objects.side_effect = [list(liH3['bucket1'].keys()), list(liH3['bucket2'].keys())] cOAi().stat_object.side_effect = list(liH3['bucket1'].values()) + list(liH3['bucket2'].values()) G_be = PVaq.s3_storage_manager.S3Stor...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def c3k_(YKHO):\n pass", "def shIM(YKHO):\n w2B8 = iVGz.resource('s3', region_name='us-east-1')\n w2B8.create_bucket(Bucket='foobucket')\n zSWz = GfEL()\n zSWz.connect('default')\n YKHO.assertEqual(zSWz.get_buckets(), ['foobucket'])", "def l2Jd(YKHO, cOAi):\n cOAi().list_objects.return_val...
[ "0.718965", "0.7160721", "0.69289345", "0.6745038", "0.66251934", "0.65960777", "0.6431287", "0.64245534", "0.63582176", "0.63471043", "0.6336915", "0.63159096", "0.6314473", "0.6300853", "0.62948203", "0.62579805", "0.62569636", "0.62335104", "0.6220839", "0.62145793", "0.62...
0.7999693
0
Returns the path on disk to the supplied document. May be ``None`` if the document has not been saved.
def r6Pl(C13M): try: pmON = C13M.fullName.fsName except Exception: pmON = None return pmON
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def r81T(YKHO):\n return oAb3.Path(KVWQ(YKHO.get_document().uri).path)", "def WjZY(YKHO):\n if YKHO.fs.tmp_dir:\n Vpak = YKHO.fs.tmp_dir + Hy7s.sep + YKHO.fs.get_document()\n else:\n Vpak = YKHO.fs.get_document()\n return Vpak", "def GUIN(YKHO) -> str:\n return qe4Y.get(YKHO, 'raw_...
[ "0.75493854", "0.6856172", "0.6446816", "0.6441175", "0.6441175", "0.6357646", "0.6263664", "0.62145454", "0.6175039", "0.61661816", "0.61201173", "0.60995424", "0.59786606", "0.59786606", "0.59786606", "0.59674996", "0.59674996", "0.5962638", "0.59606266", "0.5959413", "0.59...
0.7979619
0
Returns a fully connected layer in tensorflow.
def tuA3(vHnr, gqIb, YDYE=ZylS.nn.relu, lzjZ='', nfqd=False): if not lzjZ: lzjZ = ''.join((str(WKvO) for WKvO in oyIN.random.randint(9, size=10))) yzQ0 = ZylS.Variable(ZylS.truncated_normal([int(vHnr.shape[1]), gqIb]), name='w_' + lzjZ) if nfqd: ZylS.summary.histogram('weights', yzQ0) Fg...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def VoJx(YKHO, vHnr, I07O, YDYE=None):\n Sqw_ = vHnr.get_shape().as_list()[1]\n Ot1W = [Sqw_, I07O]\n with ZylS.variable_scope(YKHO._count_layer('fully_connected')):\n WZcn = YKHO._get_variable('weights', Ot1W, vHnr.dtype)\n WKvO = ZylS.matmul(vHnr, WZcn)\n WKvO = YKHO._bias(WKvO)\n ...
[ "0.76150006", "0.74527204", "0.7389604", "0.72646606", "0.7242828", "0.7193371", "0.7164736", "0.68571", "0.6856851", "0.68173015", "0.68106276", "0.6700139", "0.66871935", "0.65814614", "0.6538123", "0.6533016", "0.64895093", "0.648114", "0.6476825", "0.64760816", "0.6446395...
0.7459731
1
Returns true if both objects are equal
def xa14(YKHO, Elif): if not isinstance(Elif, bghC): return False return YKHO.__dict__ == Elif.__dict__
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def xa14(YKHO, Elif):\n return p6XU(YKHO, Elif)", "def xa14(YKHO, Elif):\n return p6XU(YKHO, Elif)", "def xa14(YKHO, Elif):\n try:\n return YKHO.object == Elif.object and isinstance(YKHO, type(Elif))\n except:\n return False", "def xa14(YKHO, Elif):\n if isinstance(YKHO, Elif.__c...
[ "0.8088132", "0.8088132", "0.8054589", "0.7982687", "0.79670393", "0.79670393", "0.79670393", "0.79670393", "0.79670393", "0.79670393", "0.79670393", "0.79670393", "0.79670393", "0.79670393", "0.79670393", "0.79670393", "0.79670393", "0.79670393", "0.79670393", "0.79670393", ...
0.0
-1
Returns true if both objects are not equal
def Vdqg(YKHO, Elif): return not YKHO == Elif
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Vdqg(YKHO, Elif: object) -> bool:\n if YKHO.__eq__(Elif):\n return False\n return True", "def Vdqg(YKHO, Elif: object) -> bool:\n return not YKHO.__eq__(Elif)", "def Vdqg(YKHO, Elif) -> bool:\n return not YKHO.__eq__(Elif)", "def xa14(YKHO, Elif):\n return not YKHO.__ne__(Elif)", ...
[ "0.845611", "0.8391477", "0.8144138", "0.81410587", "0.8132492", "0.8093973", "0.80920255", "0.80920255", "0.80920255", "0.8085325", "0.8085325", "0.8076365", "0.8076365", "0.8065748" ]
0.0
-1
Return the name of the sensor.
def mWFP(YKHO): return YKHO._name
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def mWFP(YKHO):\n return YKHO._sensor.name", "def _lKy(YKHO):\n return YKHO.data[1]", "def mWFP(YKHO):\n return YKHO.device.device_data[YKHO.device_id]['name'] + f' {YKHO._sensor_type}'", "def mWFP(YKHO):\n return f'{YKHO._name} {lc9R[YKHO.sensor][0]}'", "def mWFP(YKHO):\n return f'{YKHO._na...
[ "0.91896784", "0.9168378", "0.890185", "0.8770976", "0.8511273", "0.8479953", "0.844435", "0.8299758", "0.8186503", "0.8105667", "0.8079737", "0.8066149", "0.8049647", "0.7700968", "0.7612295", "0.7611456", "0.7600605", "0.7600605", "0.7600605", "0.75392073", "0.75166553", ...
0.0
-1
Return the state attributes of the sensor.
def R1i3(YKHO): return {PlJk: eeAU, BAzM: YKHO._timestamp}
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def R1i3(YKHO):\n return YKHO.attributes", "def R1i3(YKHO):\n return YKHO._attributes", "def R1i3(YKHO):\n return YKHO.attr", "def R1i3(YKHO):\n return YKHO.attr", "def R1i3(YKHO) -> cuzp[str, any]:\n return YKHO._device.state_attributes", "def R1i3(YKHO):\n return YKHO._state_attrs", ...
[ "0.8418945", "0.82497084", "0.8243777", "0.8243777", "0.8200083", "0.8169021", "0.8169021", "0.8159991", "0.8159991", "0.8145903", "0.8145903", "0.8145903", "0.8145903", "0.8145903", "0.8145903", "0.8145903", "0.8145903", "0.8145903", "0.8145903", "0.8145903", "0.8145903", ...
0.7713804
47
Delete a country group (deleteCountryGroup) Delete a country groups by its country group code. This endpoint usually used for testing purpose to cleanup test data.
def ZrSt(lIUc: str, _63S: Optional[str]=None, Cbut: Optional[Dict[str, str]]=None, **B2fa): if _63S is None: _63S, P1dF = FQvI() if P1dF: return (None, P1dF) QePW = Kpka.create(country_group_code=lIUc, namespace=_63S) return n8as(QePW, additional_headers=Cbut, **B2fa)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "async def delete_country_group_async(lIUc: str, _63S: Optional[str]=None, Cbut: Optional[Dict[str, str]]=None, **B2fa):\n if _63S is None:\n _63S, P1dF = FQvI()\n if P1dF:\n return (None, P1dF)\n QePW = Kpka.create(country_group_code=lIUc, namespace=_63S)\n return await x1ax(QePW,...
[ "0.85902894", "0.7012122", "0.690866", "0.68461424", "0.6839419", "0.68078065", "0.67244136", "0.6713779", "0.6656999", "0.66211504", "0.6599354", "0.6589754", "0.65427905", "0.6506878", "0.6440473", "0.6428682", "0.6424824", "0.641218", "0.63813734", "0.6370706", "0.634458",...
0.85491055
1
Delete a country group (deleteCountryGroup) Delete a country groups by its country group code. This endpoint usually used for testing purpose to cleanup test data.
async def delete_country_group_async(lIUc: str, _63S: Optional[str]=None, Cbut: Optional[Dict[str, str]]=None, **B2fa): if _63S is None: _63S, P1dF = FQvI() if P1dF: return (None, P1dF) QePW = Kpka.create(country_group_code=lIUc, namespace=_63S) return await x1ax(QePW, additional...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ZrSt(lIUc: str, _63S: Optional[str]=None, Cbut: Optional[Dict[str, str]]=None, **B2fa):\n if _63S is None:\n _63S, P1dF = FQvI()\n if P1dF:\n return (None, P1dF)\n QePW = Kpka.create(country_group_code=lIUc, namespace=_63S)\n return n8as(QePW, additional_headers=Cbut, **B2fa)"...
[ "0.8546806", "0.70092034", "0.69062155", "0.6843592", "0.6836356", "0.68070465", "0.67232513", "0.67144614", "0.6652703", "0.66178745", "0.6595043", "0.65898865", "0.6541353", "0.6504214", "0.643811", "0.642654", "0.64240503", "0.6408796", "0.63758665", "0.63706183", "0.63418...
0.85889673
0
Update a country group (updateCountryGroup) Update a country groups. The countryGroupCode must be exist beforehand.
def OmSG(lIUc: str, TBsA: Optional[UpdateCountryGroupRequest]=None, _63S: Optional[str]=None, Cbut: Optional[Dict[str, str]]=None, **B2fa): if _63S is None: _63S, P1dF = FQvI() if P1dF: return (None, P1dF) QePW = VwNg.create(country_group_code=lIUc, body=TBsA, namespace=_63S) ret...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "async def update_country_group_async(lIUc: str, TBsA: Optional[UpdateCountryGroupRequest]=None, _63S: Optional[str]=None, Cbut: Optional[Dict[str, str]]=None, **B2fa):\n if _63S is None:\n _63S, P1dF = FQvI()\n if P1dF:\n return (None, P1dF)\n QePW = VwNg.create(country_group_code=lI...
[ "0.8204224", "0.6409706", "0.62188023", "0.608649", "0.60575014", "0.60530055", "0.60199076", "0.58349484", "0.56926996", "0.5641211", "0.56131303", "0.56108296", "0.546043", "0.54586095", "0.54392755", "0.5436049", "0.53917164", "0.5369921", "0.5363396", "0.5326239", "0.5323...
0.8342735
0
Update a country group (updateCountryGroup) Update a country groups. The countryGroupCode must be exist beforehand.
async def update_country_group_async(lIUc: str, TBsA: Optional[UpdateCountryGroupRequest]=None, _63S: Optional[str]=None, Cbut: Optional[Dict[str, str]]=None, **B2fa): if _63S is None: _63S, P1dF = FQvI() if P1dF: return (None, P1dF) QePW = VwNg.create(country_group_code=lIUc, body=T...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def OmSG(lIUc: str, TBsA: Optional[UpdateCountryGroupRequest]=None, _63S: Optional[str]=None, Cbut: Optional[Dict[str, str]]=None, **B2fa):\n if _63S is None:\n _63S, P1dF = FQvI()\n if P1dF:\n return (None, P1dF)\n QePW = VwNg.create(country_group_code=lIUc, body=TBsA, namespace=_63...
[ "0.8341961", "0.64082706", "0.6215589", "0.60842746", "0.60568357", "0.6052311", "0.6018487", "0.58323324", "0.5691085", "0.5636549", "0.56118095", "0.5609613", "0.5455656", "0.54537344", "0.5434462", "0.5431773", "0.53906065", "0.5373576", "0.53592575", "0.5323223", "0.53199...
0.82036316
1
The derivative of the RHS with respect to sigma
def kko7(YKHO, QTg7, Ty9i, fxrA=False): TOwr = YKHO.survey.getSrcByFreq(QTg7)[0] NFIY = TOwr.S_eDeriv_m(YKHO, Ty9i, fxrA) return -1j * wW3z(QTg7) * NFIY
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def EWqU(eHNT, jQ3Z, WKvO, WTkW=0.5, _hZ2=1e-08):\n pass", "def My9F(YKHO):\n return YKHO._Kd * (YKHO._getErrorFunction() - YKHO._previousError) / YKHO._dt", "def thKP(YKHO, EcVT):\n return 3 * EcVT[1] ** 2", "def MTp0(a1PO, NArs):\n c9nX = ZylS.cast(NArs['t_final'].get_value(), dtype=ZylS.float6...
[ "0.68527174", "0.6536688", "0.643671", "0.6419633", "0.64191926", "0.6397669", "0.63838464", "0.636017", "0.63280016", "0.63218224", "0.62655926", "0.62512535", "0.6231818", "0.6197454", "0.616442", "0.6144404", "0.6141581", "0.61311233", "0.6127966", "0.6110649", "0.610561",...
0.0
-1
Returns the number of rows in arraydata
def jOFs(YKHO, _AKB): return len(YKHO.arraydata)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def DR2N(nPrm):\n return int(ZO_c.GetCount_management(nPrm).getOutput(0))", "def UHFx(YKHO):\n return YKHO.data_array.size", "def SWGE(YKHO) -> int:\n ...", "def NYFn(YKHO):\n return YKHO.data.shape[1]", "def RTy5(YKHO):\n BLg0 = YKHO.df.shape\n DR2N = BLg0[0]\n return DR2N", "def HN...
[ "0.8233816", "0.78524345", "0.76663595", "0.7593465", "0.7550645", "0.7510177", "0.7488041", "0.7400101", "0.737704", "0.73633367", "0.73269194", "0.7269484", "0.7262394", "0.72371435", "0.7221", "0.71860474", "0.7163175", "0.7062287", "0.7034802", "0.7023831", "0.7018027", ...
0.77230555
2
Returns the number of columns in arraydata
def qyQ5(YKHO, _AKB): if len(YKHO.arraydata) > 0: return len(YKHO.arraydata[0]) - 2 return 0
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def PD5p(qw7D):\n return (len(qw7D), len(qw7D[0]))", "def w_tA(nPrm):\n G9jH.info('Number of rows of data: %s' % len(nPrm))\n G9jH.info('Number of columns of data: %s' % len(nPrm[1]))", "def NFUC(YKHO):\n return YKHO.data.shape[0]", "def qyQ5(YKHO):\n if not YKHO.o_data is None:\n if YK...
[ "0.8023058", "0.7789613", "0.7653921", "0.75697285", "0.7532519", "0.7477663", "0.7402054", "0.73721355", "0.736128", "0.72163296", "0.72155184", "0.7205677", "0.7165945", "0.71463376", "0.71280736", "0.7078896", "0.70699185", "0.7060351", "0.70494926", "0.7032408", "0.702078...
0.7980242
1
Sets the model data to the most recent data from the frame.
def QdZT(YKHO, RyIZ): YKHO.arraydata = RyIZ YKHO.layoutChanged.emit()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def edSQ(YKHO):\n pass", "def hwsa(YKHO):\n YKHO.model_df = rLdf.DataFrame(columns=YKHO.query_df[YKHO.column_name].unique())\n YKHO.model_df[YKHO.column_index] = YKHO.min_increments\n YKHO.model_df.set_index(YKHO.column_index, inplace=True)", "def r7tU(YKHO):\n YKHO._model.update()\n YKHO.__r...
[ "0.6391546", "0.6367261", "0.6358637", "0.63338894", "0.6280461", "0.6034211", "0.60014874", "0.59743905", "0.59566677", "0.5945333", "0.59240943", "0.59240943", "0.59240943", "0.59233314", "0.590194", "0.5892477", "0.58576316", "0.58479875", "0.58388937", "0.58239424", "0.58...
0.0
-1
Test applying a VIM strategy that starts to apply but then fails
def oiYy(YKHO): YKHO.vim_client.get_strategy.side_effect = [DuNL, Byqv, gULd] YKHO.vim_client.apply_strategy.return_value = Byqv YKHO.worker.perform_state_action(YKHO.strategy_step) YKHO.assert_step_updated(YKHO.strategy_step.subcloud_id, GDa9.STRATEGY_STATE_FAILED)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def oz05():\n pass", "def m3pV(AhdN, Ehsq):\n import exopy.__main__ as r50I\n\n def VbVE(d7pR):\n\n class FalseEntryPoint(fLP9):\n\n def tyeH(YKHO, *qIxc, **B2fa):\n\n def bK0K(wvEv):\n raise Exception('Failed to add stupid argument to parser')\n ...
[ "0.58349484", "0.57588017", "0.56066304", "0.5570331", "0.54221207", "0.5287976", "0.52789307", "0.5272874", "0.5271053", "0.52681977", "0.5249422", "0.5243324", "0.524135", "0.52055943", "0.5142456", "0.5116529", "0.5113984", "0.5100642", "0.5069906", "0.5052782", "0.5047976...
0.53130245
5
Test applying a VIM strategy while a broken strategy exists
def gCwt(YKHO): YKHO.vim_client.get_strategy.side_effect = [gULd] YKHO.worker.perform_state_action(YKHO.strategy_step) YKHO.vim_client.apply_strategy.assert_not_called() YKHO.assert_step_updated(YKHO.strategy_step.subcloud_id, GDa9.STRATEGY_STATE_FAILED)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Ivtw(YKHO):\n YKHO.vim_client.get_strategy.return_value = DuNL\n YKHO.vim_client.apply_strategy.return_value = gULd\n YKHO.worker.perform_state_action(YKHO.strategy_step)\n YKHO.assert_step_updated(YKHO.strategy_step.subcloud_id, GDa9.STRATEGY_STATE_FAILED)", "def oiYy(YKHO):\n YKHO.vim_client...
[ "0.5744124", "0.5599518", "0.55969155", "0.55531347", "0.5370553", "0.53486234", "0.5240246", "0.5151608", "0.509064", "0.5085574", "0.5067957", "0.5050297", "0.5042007", "0.5039046", "0.5033658", "0.5031068", "0.5028002", "0.50040144", "0.5001511", "0.49954057", "0.49946094"...
0.56996334
1
Converts tensor to onehot tensor
def sAJt(vhpA, Crrw=10): KLLm = oyIN.zeros((vhpA.shape[0], Crrw)) KLLm[range(vhpA.shape[0]), vhpA.astype(int)] = 1.0 return KLLm
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def N9CW(vhpA: torch.Tensor, jTqs: int=-1, tpio: int=-1) -> ht2j.Tensor:\n if not nNW7(vhpA):\n raise ValueError(f'tensor must be integer type, current type: {vhpA.dtype}')\n bKPk = vhpA.max() + 1\n if jTqs == -1:\n jTqs = int(bKPk)\n if jTqs < bKPk:\n raise ValueError(f'num_classe...
[ "0.806305", "0.8020203", "0.7963499", "0.79215986", "0.79052496", "0.7861582", "0.7861582", "0.7826264", "0.7794856", "0.7721877", "0.7685404", "0.76773524", "0.76697624", "0.76599205", "0.7653098", "0.7648181", "0.7648173", "0.7648173", "0.7613151", "0.7549753", "0.7549657",...
0.8071545
0
Given a string and a nonnegative int n, return a larger string that is n copies of the original string.
def S8ww(str, exwG): if exwG <= 0: return 'n has to be non-negative' else: return str * exwG
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def t788(_CS_, exwG):\n return sorted(_CS_, key=lambda WKvO: WKvO[exwG])", "def N0Pp(vIwR, exwG):\n f6j1 = vIwR\n if exwG > 0:\n f6j1 = vIwR[exwG:] + vIwR[:exwG]\n elif exwG < 0:\n by6d = len(vIwR) - abs(exwG)\n AmtQ = vIwR[by6d:]\n vq5J = vIwR[:by6d]\n f6j1 = AmtQ ...
[ "0.6991367", "0.6444605", "0.6290526", "0.6149936", "0.6113236", "0.60905534", "0.6036309", "0.600256", "0.5998178", "0.5964973", "0.59335476", "0.5930521", "0.59211814", "0.5910505", "0.58888716", "0.5858266", "0.58437264", "0.5831173", "0.58119625", "0.58072406", "0.5792413...
0.6976988
1
The topleft dot indicator.
def exPc(YKHO) -> bool: return bool(YKHO._getindicator(1))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def GXLG(YKHO) -> bool:\n return bool(YKHO._getindicator(2))", "def j6vy(YKHO):\n return len(YKHO.top_row) + len(YKHO.bottom_row) + len(YKHO.left_col) + len(YKHO.right_col)", "def tlxW(YKHO):\n return YKHO.points['topRight'].y", "def tlxW(YKHO):\n return YKHO.points['topRight'].y", "def b8v3(YK...
[ "0.6752271", "0.6279848", "0.59957975", "0.59957975", "0.58692133", "0.58631235", "0.58264565", "0.58264565", "0.5737743", "0.57141167", "0.57067084", "0.5655358", "0.5648357", "0.5642877", "0.5623615", "0.5605227", "0.55811876", "0.55688363", "0.55584145", "0.55462706", "0.5...
0.7540004
0
The bottomleft dot indicator.
def GXLG(YKHO) -> bool: return bool(YKHO._getindicator(2))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def es2x(YKHO):\n return YKHO.points['bottomRight'].y", "def es2x(YKHO):\n return YKHO.points['bottomRight'].y", "def _VYi(YKHO) -> float:\n return YKHO._bb_bottom", "def exPc(YKHO) -> bool:\n return bool(YKHO._getindicator(1))", "def es2x(YKHO):\n return YKHO._bottom", "def Mh0j(YKHO) -> ...
[ "0.66587734", "0.66587734", "0.6630531", "0.6579593", "0.65287286", "0.6503158", "0.64272845", "0.63668114", "0.63127744", "0.62767315", "0.62678593", "0.6206965", "0.6138494", "0.6117231", "0.6050496", "0.60307425", "0.60206085", "0.60176796", "0.5960389", "0.59450656", "0.5...
0.79062665
0
A simple decorator for wrapping functions that return tensors to move them to a GPU, if one is available.
def wj8D(FYKK): @xBlr.wraps(FYKK) def h3Xc(*qIxc, **B2fa): Aofo = FYKK(*qIxc, **B2fa) return MyMC(Aofo) return h3Xc
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def rPWr(eHNT):\n\n def _gRY(*qIxc, **B2fa):\n \"\"\"returns a torch tensor for cpu or gpu when appropriate.\"\"\"\n KCHu, Mkmy, Csk6, XP5J = eHNT(*qIxc, **B2fa)\n if ht2j.cuda.is_available():\n KCHu = ht2j.from_numpy(KCHu).cuda().type(yDqo)\n else:\n KCHu = ht2...
[ "0.7602797", "0.7318461", "0.6736358", "0.6361371", "0.63007003", "0.6243802", "0.6211542", "0.6173982", "0.6097828", "0.6088415", "0.6045646", "0.60398614", "0.5967361", "0.59182614", "0.5910665", "0.5886841", "0.5869622", "0.5864254", "0.5835428", "0.5798669", "0.5740398", ...
0.69810545
2
Convert a sequence of categorical values to onehot representation
def FJcC(yrx4, jXxl, Ep8u): x6A0 = oyIN.array([yrx4]).reshape(-1) OiDk = oyIN.eye(jXxl)[x6A0] Aofo = iQnE(ht2j.FloatTensor(OiDk).view(-1, Ep8u, jXxl)) return Aofo
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def KLLm(Q6uT):\n YwN_ = Q6uT\n R7t9 = 'ARNDCQEGHILKMFPSTWYV'\n gitN = oyIN.array([P8oC for P8oC in R7t9])\n _x49 = oyIN.concatenate([[(gitN == P8oC.upper()).astype(int)] if str(P8oC).upper() in R7t9 else oyIN.array([[-1] * len(R7t9)]) for P8oC in YwN_])\n return _x49", "def ObtX(aWuw):\n T4M1 ...
[ "0.7900038", "0.7761454", "0.77572477", "0.7656085", "0.7645253", "0.76205313", "0.76140594", "0.75799567", "0.75201845", "0.75153685", "0.7484859", "0.7478565", "0.74712616", "0.7459115", "0.74381256", "0.7420046", "0.74090344", "0.74061126", "0.7405195", "0.7398852", "0.736...
0.0
-1
Compute softmax values for each sets of scores in x.
def N93T(WKvO): uw5A = oyIN.exp(WKvO - oyIN.max(WKvO)) return uw5A / uw5A.sum()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def N93T(YKHO, cCrA):\n MvhI = oyIN.sum(oyIN.exp(cCrA), axis=1, keepdims=True)\n N93T = oyIN.exp(cCrA) / MvhI\n return N93T", "def N93T(WKvO):\n j1LR = oyIN.exp(oyIN.asarray(WKvO))\n return j1LR / j1LR.sum(0)", "def N93T(cCrA):\n XeFQ = oyIN.exp(cCrA)\n return XeFQ / oyIN.sum(XeFQ)", "de...
[ "0.7796294", "0.7760558", "0.7759004", "0.77567077", "0.76577055", "0.76577055", "0.76577055", "0.76577055", "0.7585655", "0.743143", "0.7407772", "0.73941606", "0.7358175", "0.73174125", "0.72689486", "0.72623265", "0.72614294", "0.7256868", "0.723019", "0.7214918", "0.72017...
0.70900273
52
Initializes the elevation servo
def PVEz(YKHO): if YKHO.pwm_controller is None: print('You must initialize the PWM controller before the servo') raise rAPz YKHO.elevation_servo = mn_U(YKHO.pwm_controller, YKHO.antenny_config.get('elevation_servo_index')) YKHO.elevation_servo_load() return YKHO.elevation_servo
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def mKZi(YKHO, mWFP: str=None):\n if mWFP is not None:\n YKHO.servo_config.load(mWFP)\n YKHO.elevation_servo.set_min_position(YKHO.servo_config.get('elevation')['min'])\n YKHO.elevation_servo.set_max_position(YKHO.servo_config.get('elevation')['max'])", "def FIMM(YKHO):\n super().__init__()\n ...
[ "0.6986267", "0.6177895", "0.61232555", "0.6107497", "0.6106311", "0.6078838", "0.60276484", "0.60055256", "0.5999789", "0.5956045", "0.5903296", "0.5903059", "0.59018105", "0.5891061", "0.5890614", "0.5855732", "0.5842102", "0.5822398", "0.58103454", "0.57966363", "0.5791346...
0.7202165
0
Builds a Pandas DataFrame for the AggregateFilter's bins. This method constructs a Pandas DataFrame object for the AggregateFilter with columns annotated by filter bin information. This is a helper method for the Tally.get_pandas_dataframe(...) method.
def G_9O(YKHO, Zgof, _0fC, QxIo=None, **B2fa): RZif = oyIN.empty(YKHO.num_bins, dtype=tuple) for YRbF, bin in enumerate(YKHO.bins): RZif[YRbF] = bin RZif = oyIN.repeat(RZif, _0fC) FvuU = Zgof / len(RZif) RZif = oyIN.tile(RZif, FvuU) jQ3Z = rLdf.DataFrame({YKHO.type: RZif}) return jQ3...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def G_9O(YKHO, ei96, QxIo=None):\n if YKHO.left_filter == YKHO.right_filter:\n jQ3Z = YKHO.left_filter.get_pandas_dataframe(ei96, QxIo)\n else:\n jeHe = YKHO.left_filter.get_pandas_dataframe(ei96, QxIo)\n w20b = YKHO.right_filter.get_pandas_dataframe(ei96, QxIo)\n jeHe = jeHe.asty...
[ "0.6558768", "0.6209868", "0.61848015", "0.5863795", "0.5760703", "0.5684288", "0.5642039", "0.55959946", "0.5516651", "0.54755014", "0.54674554", "0.54308707", "0.540216", "0.53679585", "0.53450966", "0.5335203", "0.52899563", "0.5273754", "0.52399236", "0.5221628", "0.52143...
0.6769158
0
Draw from the uniform distribution with bounds [0, upper_value).
def A85R(n_mx): return int(oyIN.random.random() * n_mx)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def js4S(LSh8, CN9P):\n return LSh8 + tuKI.random() * (CN9P - LSh8)", "def GPVb(GOGW):\n return oyIN.random.uniform(GOGW[0], GOGW[1])", "def wL7C(CN9P, mLGw):\n mvm2 = []\n for YRbF in range(mLGw):\n BWXx = tuKI.randint(0, CN9P - 1)\n mvm2.append(BWXx)\n return mvm2", "def MhI4(Y...
[ "0.6739893", "0.6541357", "0.6341239", "0.62541753", "0.6017499", "0.59122705", "0.58457863", "0.58209", "0.58063513", "0.5738522", "0.5738522", "0.5737967", "0.57255375", "0.5666568", "0.5607356", "0.55762553", "0.54986304", "0.5497341", "0.5494295", "0.5480217", "0.5471701"...
0.671232
1
Takes two tuples of coordinates (a query and a reference) and returns a boolean indicating whether the query overlaps any part of the reference. Query overlaps reference if either the start or the end of the query falls between the reference range. >>> test_overlap((1, 4), (5, 10)) False >>> test_overlap((1, 5), (5, 10...
def FWdW(xDcj, aC0l): return aC0l[0] <= xDcj[0] <= aC0l[1] or aC0l[0] <= xDcj[1] <= aC0l[1] or xDcj[0] <= aC0l[0] <= aC0l[1] <= xDcj[1]
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def yHH9(N7sD, ksBp, uWrF, sbXL):\n return not (ksBp < uWrF or sbXL < N7sD)", "def yHH9(KmOw, sBxj, vq0F, LTB2):\n return KmOw <= vq0F <= sBxj or vq0F <= KmOw <= LTB2", "def reZ_(hfRT, bISz, jQIj):\n q7V9 = hfRT[0]\n yKcO = int(hfRT[1])\n Os4s = int(hfRT[2])\n if q7V9 not in jQIj:\n re...
[ "0.70355207", "0.6989546", "0.6939245", "0.68323493", "0.68128633", "0.67454463", "0.6732577", "0.6711391", "0.6696669", "0.6662298", "0.65639406", "0.6531077", "0.65205234", "0.6464498", "0.6449246", "0.63985574", "0.6377017", "0.6326594", "0.6312239", "0.63035893", "0.62760...
0.842389
0
Instantiates a RE_BOW_DECODER model object.
def FIMM(YKHO, CV7R=None, JB0M=None, zjZy=None, jXxl=None, aso3=None, igk9=None, FnKq=None, hWWO=None, grvR=None, LPUu={}, GwO0=None, iP6U=None, Ycb5=False, begE=ht2j.device('cpu'), **t9eR): super(wr59, YKHO).__init__() YKHO._load_path = GwO0 YKHO._epoch_or_best = iP6U if not Ycb5 and GwO0 is not None: ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FIMM(YKHO, yMhW, bVbr, Zwn2, VWHT, d6u5, hoaX, w8yg, bOso, kHev, W5e8, BrC3, b0Ix, fPO8, K0do='adam', N77f='categorical_crossentropy'):\n YKHO.window_size = yMhW\n YKHO.alphabet_size = bVbr\n YKHO.embedding_size = Zwn2\n YKHO.conv_layers = VWHT\n YKHO.total_number_of_filters = xBlr.reduce(lambda...
[ "0.5732961", "0.5725582", "0.56224823", "0.5609708", "0.557355", "0.55470616", "0.5472067", "0.5462747", "0.5426218", "0.5416998", "0.54123", "0.5404653", "0.5369267", "0.5368163", "0.5367015", "0.5358027", "0.5354505", "0.5351841", "0.5341687", "0.5334403", "0.5322333", "0...
0.70592344
0
Read image using its path. Default value is grayscale, and image is read by YCbCr format as the paper said.
def cE34(pmON, E4ec=True): if E4ec: return Zxt2.misc.imread(pmON, flatten=True, mode='YCbCr').astype(oyIN.float) else: return Zxt2.misc.imread(pmON, mode='YCbCr').astype(oyIN.float)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def cE34(pmON, E4ec=True):\n if E4ec:\n return Zxt2.misc.imread(pmON, flatten=True, mode='YCbCr').astype(oyIN.float)\n else:\n return Zxt2.misc.imread(pmON, mode='YCbCr').astype(oyIN.float)", "def cE34(pmON, E4ec=True):\n if E4ec:\n return Zxt2.misc.imread(pmON, flatten=True, mode='...
[ "0.7786202", "0.777032", "0.76410556", "0.7521609", "0.7467179", "0.74580973", "0.7368277", "0.7228054", "0.7215092", "0.7214897", "0.720058", "0.71829665", "0.70770717", "0.70580566", "0.7028147", "0.70162797", "0.6945682", "0.6943187", "0.69340265", "0.6900752", "0.6892851"...
0.77277374
2
Construct a DataSet. one_hot arg is used only if fake_data is true. `dtype` can be either `uint8` to leave the input as `[0, 255]`, or `float16` to rescale into `[0, 1]`.
def FIMM(YKHO, Yw_3, Crrw, yDqo=m1c7.float16, q3V_=True): yDqo = m1c7.as_dtype(yDqo).base_dtype if yDqo not in (m1c7.uint8, m1c7.float16): raise TypeError('Invalid image dtype %r, expected uint8 or float16' % yDqo) assert Yw_3.shape[0] == Crrw.shape[0], 'images.shape: %s labels.shape: %s' % (Yw_3.sh...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def KLLm(WKvO, jTqs, yDqo=oLG2.float32):\n return yOcR.nn.one_hot(WKvO, jTqs).astype(yDqo)", "def aFAW(a1PO, jTqs, begE='cpu'):\n return ht2j.zeros(a1PO.size()[0], jTqs).to(begE).scatter_(1, a1PO.view(-1, 1), 1)", "def OVnz(Crrw: np.ndarray, LeZt: int, jDK_: int=0, JsoO=False, yDqo=bool):\n if JsoO:\n...
[ "0.68997324", "0.6356934", "0.63522905", "0.62943405", "0.6291095", "0.6275374", "0.62567407", "0.6245759", "0.6223719", "0.6219973", "0.6215124", "0.6209283", "0.6209039", "0.620597", "0.6202614", "0.61832446", "0.61798906", "0.6153753", "0.61519146", "0.61473185", "0.613268...
0.0
-1
Whether this target generates header files during building.
def SgFW(YKHO): return True
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def w2wV(nUeQ):\n return not nUeQ.is_dir() and (not nUeQ.name == 'module.modulemap.in') and (nUeQ.name != 'libcxx.imp')", "def DF6r(ckRy):\n if not Hy7s.path.exists(ckRy.generated_dir):\n return True\n if not Hy7s.path.exists(ckRy.index_file):\n return True\n with open(ckRy.index_file, ...
[ "0.6351012", "0.6333202", "0.6155612", "0.58451384", "0.5826202", "0.5765669", "0.5675578", "0.55789876", "0.55672276", "0.55388415", "0.5509707", "0.54891735", "0.54826945", "0.53893036", "0.5372234", "0.5351331", "0.52846694", "0.52776176", "0.52710676", "0.52660954", "0.52...
0.7422676
0
Sample all variables and return as a dictionary.
def Ueki(YKHO): YKHO._sync() Csk6 = {TZ9E: BlNT.unpack('<f', YKHO.pic.read(4))[0] for TZ9E in dJ1p} Csk6['ts_pic'] = BlNT.unpack('<i', YKHO.pic.read(4))[0] return Csk6
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def mvm2(YKHO):\n rQ2r = {}\n for Ty9i in YKHO.all_variables():\n for bGrB in range(gigf.max_satisfy_tries):\n rQ2r[Ty9i] = Ty9i.sample()\n if YKHO.check(rQ2r):\n break\n assert len(rQ2r) == len(YKHO.all_variables())\n return rQ2r", "def czoV(YKHO):\n re...
[ "0.7674708", "0.7417095", "0.65749156", "0.65292966", "0.65135473", "0.6441782", "0.643683", "0.6249105", "0.6218143", "0.6149392", "0.61231697", "0.6112385", "0.6105623", "0.60613453", "0.6038819", "0.5962434", "0.5958079", "0.59174085", "0.5859233", "0.58390564", "0.5829304...
0.0
-1
Keeps only alphanumeric characters and lowers them
def jUjA(KCHu: str) -> str: return ZbWC.sub('[^a-zA-Z0-9]', '', KCHu).lower()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def vAu5(WKvO):\n return LSh8(finE('\\\\W+', '', str(WKvO)))", "def yWld(l5Ny):\n l5Ny = ZbWC.sub('[^A-Za-z\\\\s]', '', l5Ny)\n return l5Ny.lower()", "def hWT_(l5Ny):\n XP5J = ZbWC.compile('[^a-zA-Z]')\n RI88 = XP5J.sub('', l5Ny)\n RI88 = RI88.lower()\n return RI88", "def v4Ct(l5Ny):\n ...
[ "0.7742487", "0.7555332", "0.7489212", "0.748212", "0.7439685", "0.7334157", "0.7264554", "0.72211844", "0.7216447", "0.7195798", "0.71799576", "0.7172865", "0.71604776", "0.7149594", "0.70787424", "0.7052824", "0.7042457", "0.70306444", "0.70044094", "0.7003077", "0.6997283"...
0.7115608
14
Samples values from truncated normal distribution centered at 0
def pjBP(zNig, gwAu=1): return vJeS.rvs(-gwAu, gwAu, size=zNig)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def seai(JBMS, M1Jx, Zi2P, reTc, zNig=None):\n jzdc, Fg_i = ((Zi2P - JBMS) / M1Jx, (reTc - JBMS) / M1Jx)\n Mkmy = eQSh.truncnorm.rvs(jzdc, Fg_i, size=zNig)\n return Mkmy * M1Jx + JBMS", "def d39J(YKHO, qIxc):\n y906, bKZA = qIxc\n return uXlY(y906, bKZA, (None, YKHO.latent_dim))", "def d39J(YKHO...
[ "0.69710225", "0.6861845", "0.6861845", "0.6861845", "0.6861845", "0.6861845", "0.68373376", "0.6746532", "0.6731208", "0.66560835", "0.66424775", "0.6609895", "0.6560262", "0.649696", "0.64863753", "0.6477289", "0.6444458", "0.6420713", "0.6403661", "0.6372714", "0.6367038",...
0.64158607
18
Initialize a model, tokenizer and config.
def FIMM(YKHO, QjBU: argparse.Namespace, svPB=None, Tuqy='base', GPtr=None, b0j5=None, C3ST=None, **MAVq): super().__init__() YKHO.step_count = 0 YKHO.hparams = QjBU YKHO.output_dir = GkAb(YKHO.hparams.output_dir) BXLT = YKHO.hparams.cache_dir if YKHO.hparams.cache_dir else None if GPtr is None:...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FIMM(YKHO, C3ST, b0j5):\n YKHO.model = C3ST\n YKHO.tokenizer = b0j5\n YKHO.max_context_size = DtYh\n YKHO.predict_len = paSp\n YKHO.beam_size = baHf\n YKHO.beam_steps = wWT_", "def BSpf(SQWW, Xu3r, b0j5):\n GPtr = Xhj8.from_pretrained(SQWW.model_name_or_path, num_labels=Xu3r.num_labels, ...
[ "0.7721862", "0.75269216", "0.71541077", "0.7110465", "0.7072716", "0.7058341", "0.70387423", "0.69877243", "0.6955412", "0.6924358", "0.68692195", "0.6806762", "0.6740265", "0.67386603", "0.67232543", "0.6722358", "0.6664681", "0.66439635", "0.6599982", "0.65382737", "0.6530...
0.6357611
40
Returns ['data']['value'] of first subchild's data entity, if it exists
def bgF3(YKHO, hJIL, F3Am): t3fv = None if hJIL: try: t3fv = F3Am['children']['dataEntity'][0]['data']['value'] except: raise KeyError('Data value not found for {}'.format(F3Am)) return t3fv
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def kYq6(MMe4, LEXu):\n if LEXu not in MMe4:\n return None\n wEf2 = MMe4[LEXu][0]['value']\n if not wEf2:\n return None\n return wEf2['value'] if isinstance(wEf2, dict) else wEf2", "def iOdm(YKHO, nPrm):\n wvau = None\n if not nPrm:\n jpc5 = YKHO.instance.get_related(YKHO.r...
[ "0.58509576", "0.5834961", "0.57106614", "0.5700003", "0.56631577", "0.5642633", "0.56403315", "0.56063944", "0.559187", "0.5564173", "0.55620027", "0.5524665", "0.5493252", "0.54701823", "0.5397819", "0.53884274", "0.5368115", "0.53607947", "0.5356973", "0.53258836", "0.5305...
0.6942079
0
Returns list of `DataPoint` of a deployment
def HQ3o(YKHO, eUG7, QOGf, PcW4, **B2fa): cbLf = YKHO._metric_id_availability_deployment(feed_id=eUG7, server_id=QOGf, resource_id=PcW4) return YKHO.list_availability(metric_id=cbLf, **B2fa)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def y6oW(YKHO) -> x1iM[cuzp]:\n return [{'name': YKHO.name, 'head_host': YKHO.head_host, 'head_port': YKHO.head_port}]", "def jRCS(JvOq, eucH=None, biGm=None):\n if biGm and eucH is not None:\n z8u6 = EHQe(JvOq)\n hfTV = [g2Vd for g2Vd in IxSb(JvOq, eucH, biGm)]\n cUv7 = x0hE.CoreV1Api...
[ "0.6197668", "0.586651", "0.57324106", "0.55762476", "0.55762476", "0.55495584", "0.5535297", "0.55101895", "0.55036724", "0.5424236", "0.53874755", "0.53760296", "0.5372146", "0.5356725", "0.531656", "0.530651", "0.5289987", "0.524022", "0.52307934", "0.5222782", "0.5189373"...
0.4648708
100
Draws an ellipse on this image. position = (x, y) specifies the topleft corner, and size = (width, height) specifies the width and height of the ellipse. border_width specifies the width of the border to draw. If it is 0, the ellipse is
def A40V(YKHO, qfpW, dQgj, zNig, e7ZM=0, DNwW='topleft'): qfpW = P3Um.color._determine(qfpW) vgXP = YKHO._calculate_offset(DNwW, zNig) a9eO.draw.ellipse(YKHO._surf, qfpW, (dQgj + vgXP, zNig), e7ZM)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def A40V(YKHO, qfpW, dQgj, zNig=None, e7ZM=0, DNwW='topleft'):\n if zNig is None:\n mawX = P3Um.Rect(dQgj)\n else:\n mawX = P3Um.Rect(dQgj, zNig)\n vgXP = YKHO._calculate_offset(DNwW, mawX.size)\n a9eO.draw.ellipse(YKHO._surf, qfpW, (mawX.pos + vgXP, mawX.size), e7ZM)\n YKHO._version +...
[ "0.77426904", "0.72297555", "0.70628095", "0.68637216", "0.6805927", "0.6719079", "0.67154104", "0.66144174", "0.6564764", "0.6468441", "0.64360106", "0.6431525", "0.64258194", "0.64236206", "0.6420154", "0.64131224", "0.63699245", "0.63572997", "0.63543624", "0.631804", "0.6...
0.7774541
0
Draws an elliptical arc on this surface. position = (x, y) specifies the topleft corner, and size = (width, height) specifies the width and height of the ellipse. The start_angle and end_angle specify the range of the arc to draw. border_width specifies the width of the border to draw. If it is 0, the ellipse is
def aGEO(YKHO, qfpW, dQgj, zNig, TTnr, SQHj, e7ZM=0, DNwW='topleft'): qfpW = P3Um.color._determine(qfpW) vgXP = YKHO._calculate_offset(DNwW, zNig) a9eO.draw.arc(YKHO._surf, qfpW, (dQgj + vgXP, zNig), TTnr, SQHj, e7ZM)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def aGEO(YKHO, qfpW, TTnr, SQHj, dQgj, zNig=None, e7ZM=0, DNwW='topleft'):\n if zNig is None:\n mawX = P3Um.Rect(dQgj)\n else:\n mawX = P3Um.Rect(dQgj, zNig)\n vgXP = YKHO._calculate_offset(DNwW, mawX.size)\n a9eO.draw.arc(YKHO._surf, qfpW, (mawX.pos + vgXP, mawX.size), TTnr, SQHj, e7ZM)\...
[ "0.7217539", "0.68452185", "0.682003", "0.67782253", "0.6691401", "0.6664652", "0.65185124", "0.6517495", "0.6421039", "0.63649523", "0.6291049", "0.62850755", "0.62775254", "0.62722635", "0.6254285", "0.6239966", "0.6239083", "0.6177745", "0.6160329", "0.61075497", "0.610121...
0.72403
0
Return the 2D rotation matrix corresponding to the given angle.
def oqzE(YylR): SCXK = oyIN.asarray([[oyIN.cos(YylR), -oyIN.sin(YylR)], [oyIN.sin(YylR), oyIN.cos(YylR)]]) return SCXK
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def yVAD(YylR):\n nYlf = CEWs(YylR).rad\n return oyIN.array([[YhSR(nYlf), -YUNn(nYlf)], [YUNn(nYlf), YhSR(nYlf)]])", "def Arlt(YylR):\n Z9rn, KCHu = (YhSR(YylR), YUNn(YylR))\n return oyIN.array([[Z9rn, -KCHu], [KCHu, Z9rn]])", "def bULF(YylR) -> oyIN.array:\n return oyIN.array([[oyIN.cos(YylR), ...
[ "0.8493576", "0.8353667", "0.8197651", "0.8136927", "0.8061678", "0.7804649", "0.7756534", "0.75383544", "0.7510617", "0.7437409", "0.7412163", "0.7402979", "0.73650944", "0.7327914", "0.72343284", "0.7194354", "0.71743864", "0.7136688", "0.70758903", "0.7070923", "0.70621735...
0.81990165
2
Asks user to specify a city, month, and day to analyze.
def RxGd(): print("Hello! Let's explore some US bikeshare data!") CjKC = Sm0u[0] x0eS = X_bn[0] while True: print('Choose a city! Chicago, New York city or Washington. Which you prefer to analyze?\n') j5sA = input() if j5sA.lower() not in gysO: print('Sorry, invalid e...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def NoUH(j5sA, x0eS, CjKC):\n print('The city you have entered is: ', j5sA)\n print('The month you have entered is: ', x0eS)\n print('The day you have entered is: ', CjKC)", "def RxGd():\n j5sA = None\n x0eS = None\n CjKC = None\n while CjKC == None:\n j5sA = input('Please enter a cit...
[ "0.6671077", "0.65363395", "0.64597565", "0.6374352", "0.6349016", "0.6310872", "0.6287443", "0.62599736", "0.62324905", "0.62140554", "0.6205851", "0.6182028", "0.6172251", "0.61696005", "0.61590976", "0.6159067", "0.6153877", "0.6145122", "0.6132135", "0.61053854", "0.61032...
0.6091941
21
Loads data for the specified city and filters by month and day if applicable.
def UlWi(j5sA, x0eS, CjKC): jQ3Z = rLdf.read_csv(OerS[j5sA]) jQ3Z['Start Time'] = rLdf.to_datetime(jQ3Z['Start Time']) jQ3Z['month'] = jQ3Z['Start Time'].dt.month jQ3Z['day_of_week'] = jQ3Z['Start Time'].dt.weekday_name if x0eS.lower() != 'all': X_bn = ['all', 'january', 'february', 'march',...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def UlWi(j5sA, x0eS, CjKC):\n jQ3Z = rLdf.read_csv(OerS[j5sA])\n jQ3Z['Start Time'] = rLdf.to_datetime(jQ3Z['Start Time'])\n jQ3Z['month'] = jQ3Z['Start Time'].dt.month\n jQ3Z['hour'] = jQ3Z['Start Time'].dt.hour\n jQ3Z['day_of_week'] = jQ3Z['Start Time'].dt.weekday_name\n if x0eS == 0 and CjKC =...
[ "0.81320685", "0.8108889", "0.8045821", "0.8042514", "0.80090284", "0.80071104", "0.79991937", "0.7998333", "0.7988789", "0.797905", "0.79737365", "0.79610896", "0.7956163", "0.7947432", "0.79463065", "0.7908287", "0.7908229", "0.7904569", "0.7900715", "0.78930074", "0.788921...
0.77198625
59
Displays statistics on the most frequent times of travel.
def dWJR(jQ3Z): print('\nCalculating The Most Frequent Times of Travel...\n') SWox = ITS7.time() liaA = jQ3Z['month'].mode()[0] X_bn = ['January', 'February', 'March', 'April', 'May', 'June'] XYie = X_bn[liaA - 1] print('The Most Common Month is:', XYie) xt_g = jQ3Z['day_of_week'].mode()[0] ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def dWJR(jQ3Z):\n print('\\nDisplaying the statistics on the most frequent times of travel...\\n')\n SWox = ITS7.time()\n hFPs = jQ3Z['Month'].mode()[0]\n print('For the selected filter, the month with the most travels is: ' + str(X_bn[hFPs - 1]).title() + '.')\n DSEJ = jQ3Z['Weekday'].mode()[0]\n ...
[ "0.80247396", "0.80233026", "0.7915788", "0.78266186", "0.7822246", "0.78143597", "0.77659196", "0.7740343", "0.773628", "0.77344066", "0.76867086", "0.7668633", "0.7651731", "0.7644636", "0.76399267", "0.76367253", "0.7625196", "0.7623158", "0.7612803", "0.76002145", "0.7583...
0.0
-1
Displays statistics on the most popular stations and trip.
def Huc_(jQ3Z): print('\nCalculating The Most Popular Stations and Trip:...\n') SWox = ITS7.time() bTuL = jQ3Z['Start Station'].mode()[0] print('The most commonly used start station is:', bTuL) Nj0t = jQ3Z['End Station'].mode()[0] print('The most commonly used end station is:', Nj0t) jQ3Z['T...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Huc_(jQ3Z):\n print('\\nCalculating The Most Popular Stations and Trip...\\n')\n SWox = ITS7.time()\n print(_8rG(jQ3Z))\n print(oFx8(jQ3Z))\n print(_Ek3(jQ3Z))\n print('\\nThis took %s seconds.' % (ITS7.time() - SWox))\n print('-' * 40)", "def Huc_(nPrm):\n print('\\nCalculating The M...
[ "0.7815675", "0.7662213", "0.7553417", "0.74914914", "0.74748665", "0.7446617", "0.7428588", "0.74237514", "0.74177027", "0.7400495", "0.7387161", "0.7385634", "0.73647535", "0.735934", "0.73566747", "0.73548365", "0.7351854", "0.7351274", "0.735057", "0.73421645", "0.7340198...
0.0
-1
Displays statistics on the total and average trip duration.
def kDMA(jQ3Z): print('\nCalculating Trip Duration:...\n') SWox = ITS7.time() print('Total Travel Time is:', jQ3Z['Trip Duration'].sum()) print('Mean Travel Time is:', jQ3Z['Trip Duration'].mean()) print('\nThis took %s seconds.' % (ITS7.time() - SWox)) print('-' * 40) return (jQ3Z['Trip Dur...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def kDMA(nPrm):\n print('\\nCalculating Trip Duration...\\n')\n SWox = ITS7.time()\n DbBi = nPrm['Trip Duration'].sum()\n print('The Total Travel Time is {} Hours'.format(DbBi / 3600))\n IEfE = nPrm['Trip Duration'].mean()\n print('The Average Travel Time is {} Minutes'.format(IEfE / 60))\n pr...
[ "0.814274", "0.8025143", "0.80041367", "0.79496753", "0.7937415", "0.79312176", "0.7926815", "0.7915187", "0.79142886", "0.7908032", "0.79055744", "0.7900715", "0.7891682", "0.78894734", "0.7886722", "0.78851086", "0.7884266", "0.7882474", "0.78738385", "0.78686154", "0.78664...
0.7623416
83
PFR represented as a marching ODE.
def XX3i(): I1Pn = 'h2o2.xml' fAu8 = soie.Solution(I1Pn) wGZt = 1500 y4fz = soie.one_atm fAu8.TPX = (wGZt, y4fz, 'H2:2, O2:1, AR:0.1') u54L = 1.5e-07 nFdY = 0.006 jIbV = 0.0001 jWa5 = 2000 Jw7X = u54L / jWa5 juK4 = nFdY * fAu8.density * jIbV ywwl = fAu8.n_species Omfx...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Pksa(YKHO, XSoh='x'):\n YKHO.reset()\n YKHO.mol.orthoDen()\n YKHO.mol.orthoFock()\n MKlR = -1j * YKHO.stepsize\n for or8S, ITS7 in enumerate(YKHO.time):\n if XSoh.lower() == 'x':\n YKHO.mol.computeDipole()\n YKHO.dipole.append(oyIN.real(YKHO.mol.mu[0]))\n elif...
[ "0.5635199", "0.55776995", "0.55264556", "0.5456321", "0.54017174", "0.5393865", "0.5387657", "0.53733474", "0.5246317", "0.52183264", "0.51928186", "0.5192656", "0.5191723", "0.51655555", "0.51263756", "0.5117637", "0.51151127", "0.51081467", "0.5107799", "0.50951695", "0.50...
0.0
-1
Add to children in order. comments_by_item is not predictable order, therefore items list is taken as argument)
def GZ8y(DumB, _nnl, ACnF): for ZfUD in DumB: Tj1O = _nnl.get(ZfUD) if Tj1O: Duju(HRmL.magenta('Add comments to '), ZfUD, HRmL.blue('Comments'), Tj1O) ZfUD.add_comments(Tj1O, ACnF)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def nkbQ(YKHO, ZfUD):\n afYC = ZfUD.GetChildren()\n if len(afYC) > 1:\n YKHO._dirty = True\n afYC.sort(YKHO.OnCompareItems)", "def Oay5(XkN1, Tj1O, ACnF):\n cVZg = XkN1['open_brace']\n oD_O, Tj1O = Qrt_(lambda aM_I: aM_I.position.start_pos < cVZg.position.start_pos, Tj1O)\n cVZg.add_...
[ "0.647478", "0.6413509", "0.63679296", "0.6323175", "0.5957797", "0.59012496", "0.5690921", "0.56721836", "0.565662", "0.56307185", "0.5568565", "0.5533133", "0.55193686", "0.5496968", "0.54672384", "0.54522127", "0.5434004", "0.54247403", "0.5346394", "0.52920437", "0.528558...
0.7971857
0
Reset performance statistics to zero across the cluster.
def NCiY(mWFP): U5bT = {'name': mWFP, 'changes': {}, 'result': None, 'comment': ''} if qqwM['test']: U5bT['comment'] = 'Zeroing cluster statistics' return U5bT PHIk['trafficserver.zero_cluster']() U5bT['result'] = True U5bT['comment'] = 'Zeroed cluster statistics' return U5bT
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def SiRx(YKHO):\n YKHO.sum_metric = 0.0\n YKHO.num_inst = 0.0\n YKHO.metrics.reset_stats()", "def Tf3z(YKHO):\n YKHO.stats.reset()", "def Tf3z(YKHO):\n YKHO.stats.reset()", "def SiRx(YKHO):\n n0jB()", "def SiRx(YKHO) -> None:\n YKHO.statistics = oRi_(float)", "def SiRx(YKHO):\n YK...
[ "0.7827252", "0.7534795", "0.7534795", "0.7402714", "0.7365327", "0.7331224", "0.7309859", "0.72884315", "0.72294605", "0.71887064", "0.70849186", "0.7044942", "0.70418096", "0.701435", "0.701435", "0.701435", "0.70138794", "0.6930379", "0.6849832", "0.6824036", "0.6729499", ...
0.64971566
36
Returns a batch of upto length N continguous experiences.
def mvm2(YKHO, Ep8u): _0VL = oyIN.random.randint(len(YKHO._storage), size=Ep8u) jWe2 = [] for d6pt in _0VL: yKcO = 0 Imx0 = yKcO + YKHO._sequence_length jWe2.append(YKHO._storage[d6pt][yKcO:Imx0 + 1]) return jWe2
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def KL7m(YKHO, Ep8u):\n Wc9F = []\n for YRbF in range(Ep8u):\n d6pt = tuKI.choice(range(YKHO.n_experience - 1))\n Wc9F.append(YKHO.get_single_experience(d6pt))\n return Wc9F", "def Wc9F(OxJJ, exwG):\n OxJJ = [tTpl for tTpl in OxJJ]\n zNig = len(OxJJ)\n return [OxJJ[YRbF:YRbF + exw...
[ "0.6279547", "0.6212554", "0.6212151", "0.6068479", "0.5892613", "0.588865", "0.588865", "0.588865", "0.5800799", "0.571749", "0.5615903", "0.5614911", "0.55598754", "0.55528826", "0.55171096", "0.5510915", "0.54928464", "0.5478786", "0.54710984", "0.5463956", "0.5456808", ...
0.0
-1
Sets the id of this CrossMarginLoan.
def id(YKHO, id): YKHO._id = id
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def V_9M(YKHO, id):\n YKHO.__id = id", "def V_9M(YKHO, hbFX):\n YKHO.id_ = hbFX", "def psjw(YKHO, id):\n YKHO.id = int(id)", "def HMFB(YKHO, HMFB):\n YKHO._loan_id = HMFB", "def V_9M(YKHO, id):\n YKHO.data['id'] = id", "def V_9M(YKHO, id):\n YKHO.id = id\n print('self id = ' + str(YK...
[ "0.7334544", "0.7289575", "0.7157138", "0.71011764", "0.69114923", "0.6827113", "0.67162114", "0.67162114", "0.67162114", "0.67162114", "0.67162114", "0.67162114", "0.67162114", "0.67162114", "0.67162114", "0.67162114", "0.6709656", "0.6709656", "0.6709656", "0.6709656", "0.6...
0.0
-1
Sets the amount of this CrossMarginLoan.
def Z5kt(YKHO, Z5kt): if YKHO.local_vars_configuration.client_side_validation and Z5kt is None: raise ValueError('Invalid value for `amount`, must not be `None`') YKHO._amount = Z5kt
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def e92W(YKHO, Z5kt):\n YKHO.amount = Z5kt", "def Z5kt(YKHO, Z5kt):\n YKHO._amount = Z5kt", "def Z5kt(YKHO, Z5kt):\n YKHO._amount = Z5kt", "def Z5kt(YKHO, Z5kt):\n YKHO._amount = Z5kt", "def Z5kt(YKHO, Z5kt):\n YKHO._amount = Z5kt", "def Z5kt(YKHO, Z5kt):\n YKHO._amount = Z5kt", "def ...
[ "0.6575343", "0.6407547", "0.6407547", "0.6407547", "0.6407547", "0.6407547", "0.6407547", "0.6407547", "0.6407547", "0.6407547", "0.5885513", "0.58744335", "0.5828171", "0.5828171", "0.58017755", "0.58017755", "0.58017755", "0.5695555", "0.56628186", "0.56616986", "0.565533"...
0.504995
78
Sets the repaid of this CrossMarginLoan.
def jV7c(YKHO, jV7c): YKHO._repaid = jV7c
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def zbn_(YKHO, zbn_):\n YKHO._repaid_interest = zbn_", "def UzwB(YKHO, G6OJ):\n YKHO.repin = G6OJ", "def t00m(YKHO, Yd3j):\n YKHO.__recharge = Yd3j", "def a9I_(YKHO, a9I_):\n YKHO._rpn = a9I_", "def a9I_(YKHO, a9I_):\n YKHO._rpn = a9I_", "def jV7c(YKHO):\n return YKHO._repaid", "def y...
[ "0.59658605", "0.56281686", "0.544545", "0.53470695", "0.53470695", "0.5343957", "0.5249176", "0.5146487", "0.51265526", "0.50668824", "0.5064865", "0.5063873", "0.5018679", "0.5012497", "0.4951365", "0.49425554", "0.49197307", "0.4899127", "0.4885343", "0.48730257", "0.48395...
0.7470001
0
Sets the unpaid_interest of this CrossMarginLoan.
def axNE(YKHO, axNE): YKHO._unpaid_interest = axNE
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def z1sQ(YKHO, z1sQ):\n YKHO._paid_interest = z1sQ", "def jeBE(YKHO, jeBE):\n YKHO._unapproved = jeBE", "def APAm(YKHO, APAm):\n YKHO._isolation_policy_num_not_in = APAm", "def zbn_(YKHO, zbn_):\n YKHO._repaid_interest = zbn_", "def qVmF(YKHO, qVmF):\n YKHO._open_interest = qVmF", "def roQ...
[ "0.65660286", "0.64163935", "0.5621806", "0.559974", "0.557969", "0.55691355", "0.52356446", "0.5185407", "0.51847136", "0.5159445", "0.51123214", "0.50992906", "0.5087776", "0.50336075", "0.5019461", "0.49983567", "0.49954283", "0.4945987", "0.49367666", "0.49328208", "0.491...
0.87522936
0
Returns true if both objects are equal
def xa14(YKHO, Elif): if not isinstance(Elif, R56u): return False return YKHO.to_dict() == Elif.to_dict()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def xa14(YKHO, Elif):\n return p6XU(YKHO, Elif)", "def xa14(YKHO, Elif):\n return p6XU(YKHO, Elif)", "def xa14(YKHO, Elif):\n try:\n return YKHO.object == Elif.object and isinstance(YKHO, type(Elif))\n except:\n return False", "def xa14(YKHO, Elif):\n if isinstance(YKHO, Elif.__c...
[ "0.8088132", "0.8088132", "0.8054589", "0.7982687", "0.79670393", "0.79670393", "0.79670393", "0.79670393", "0.79670393", "0.79670393", "0.79670393", "0.79670393", "0.79670393", "0.79670393", "0.79670393", "0.79670393", "0.79670393", "0.79670393", "0.79670393", "0.79670393", ...
0.0
-1
Returns true if both objects are not equal
def Vdqg(YKHO, Elif): if not isinstance(Elif, R56u): return True return YKHO.to_dict() != Elif.to_dict()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Vdqg(YKHO, Elif: object) -> bool:\n if YKHO.__eq__(Elif):\n return False\n return True", "def Vdqg(YKHO, Elif: object) -> bool:\n return not YKHO.__eq__(Elif)", "def Vdqg(YKHO, Elif) -> bool:\n return not YKHO.__eq__(Elif)", "def xa14(YKHO, Elif):\n return not YKHO.__ne__(Elif)", ...
[ "0.845611", "0.8391477", "0.8144138", "0.81410587", "0.8132492", "0.8093973", "0.80920255", "0.80920255", "0.80920255", "0.8085325", "0.8085325", "0.8076365", "0.8076365", "0.8065748", "0.8042487", "0.8042487", "0.8042487", "0.8042487", "0.8042487", "0.8042487", "0.8042487", ...
0.0
-1
Determine if a queue is local or not
def fw4S(gGq6): iObY() return gGq6 in [e1vZ(0) for e1vZ in NZDI.getDests()]
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def tWdm(YKHO):\n TF1W = YKHO._grep_qstat('queued')\n if TF1W:\n return True\n return False", "def L8ri(YKHO) -> bool:\n xDcj = l633.get('get_pga_inet_addresses')\n U5bT = g74T.fetchone(YKHO.pg_conn, xDcj)\n if U5bT['inet_server_addr'] == U5bT['inet_client_addr']:\n return True\n ...
[ "0.65059656", "0.63774717", "0.629765", "0.6286598", "0.6280513", "0.6280513", "0.62551486", "0.6235655", "0.6216112", "0.6118212", "0.6069025", "0.60412204", "0.60391194", "0.6012053", "0.5975139", "0.5963351", "0.5937814", "0.5916416", "0.59056616", "0.586541", "0.5862007",...
0.8629293
0
Canonicalize local queue names to Athena queue names If the passedin queue name is a local print queue that bounces to an Athena print queue, canonicalize to the Athena print queue. If the queue does not exist on the default CUPS server, then assume it is an alreadycanonicalized Athena queue. If the queue refers to a l...
def Ps0V(gGq6): iObY() j8eK = cK0s(gGq6) if not j8eK: return gGq6 mLim = wOmD = BlFX = pmON = KcEq = bIwZ = None mLim, wOmD = uRlK.splittype(j8eK) if wOmD: BlFX, pmON = uRlK.splithost(wOmD) if BlFX: KcEq, bIwZ = uRlK.splitport(BlFX) if mLim and KcEq and pmON and (...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def yqNO(gGq6):\n q65w = Ps0V(gGq6)\n if not q65w:\n return (CoZO, None, gGq6)\n gGq6 = q65w\n gGq6 = gGq6.split('/')[0]\n TquA = LEG5(gGq6)\n if not TquA:\n return (CoZO, None, gGq6)\n return (CoZO, TquA, gGq6)", "def Q64Y(YKHO) -> h8nf[qe4Y.Input[str]]:\n return qe4Y.get(Y...
[ "0.68510914", "0.6002772", "0.5856126", "0.5711096", "0.5605801", "0.5411404", "0.5410876", "0.5342672", "0.5275022", "0.5266116", "0.52198374", "0.51719046", "0.5141873", "0.5124191", "0.5106551", "0.5096371", "0.5089035", "0.5077614", "0.50696933", "0.5054045", "0.49461082"...
0.80063903
0
Validate that the username is formatted and unique
def Z3WL(NtEF): MBVI = 3 eQSh = 'valid' if len(NtEF) < MBVI: eQSh = 'invalid' elif ZbWC.match('^[a-zA-Z0-9_-]+$', NtEF) is None: eQSh = 'invalid' else: CBIr = ZS6a.get_user_by_username(NtEF) if CBIr is not None: eQSh = 'taken' return eQSh
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def lKfQ(YKHO):\n nPrm = YKHO.cleaned_data['username']\n if '@' in nPrm or '|' in nPrm or ' ' in nPrm or ('+' in nPrm):\n raise H6V6.ValidationError(bGrB(u'Usernames should not have special characters.'))\n try:\n CBIr = mv1M.objects.get(username__exact=YKHO.cleaned_data['username'])\n ex...
[ "0.8056219", "0.79686534", "0.7955156", "0.7949714", "0.79144996", "0.7913527", "0.79119647", "0.7898224", "0.78747183", "0.78584737", "0.7857931", "0.77379966", "0.77307016", "0.77265024", "0.77124137", "0.7707888", "0.7702503", "0.7699926", "0.76864743", "0.7684254", "0.767...
0.79610443
2
Validate the email is formatted and unique
def Bt7w(D3lj): jGRS = 'valid' try: Bt7w(D3lj) CBIr = ZS6a.get_user_by_email(D3lj) if CBIr is not None: jGRS = 'taken' except: jGRS = 'invalid' return jGRS
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Bt7w(YKHO):\n if not ZbWC.match('[^@.]+@[A-Za-z]+\\\\.[a-z]+', YKHO.email):\n return 'Invalid email address!'\n return YKHO.email", "def YBiq(YKHO):\n if mv1M.objects.filter(email__iexact=YKHO.cleaned_data['email']):\n raise H6V6.ValidationError(bGrB('This email address is already in u...
[ "0.7350793", "0.7335948", "0.7335948", "0.733099", "0.7328245", "0.7314295", "0.73135495", "0.7309215", "0.7290749", "0.7283638", "0.7235074", "0.72296256", "0.721521", "0.7213764", "0.72075385", "0.7171827", "0.71575016", "0.714647", "0.7130795", "0.7125248", "0.71215254", ...
0.0
-1
Unload a config entry.
async def async_unload_entry(ajET: HomeAssistant, bTKY: ConfigEntry) -> bool: if (yT1k := (await ajET.config_entries.async_unload_platforms(bTKY, aprE))): ajET.data[Sugg].pop(bTKY.entry_id) if not ajET.data[Sugg]: ajET.data.pop(Sugg) return yT1k
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "async def async_unload_entry(ajET, PhL6):\n yT1k = await ajET.config_entries.async_forward_entry_unload(PhL6, 'climate')\n return yT1k", "async def async_unload_entry(ajET: HomeAssistant, bTKY: ConfigEntry) -> bool:\n ajET.data.pop(Sugg)\n return True", "async def async_unload_entry(ajET: HomeAssis...
[ "0.697284", "0.6888074", "0.6779855", "0.6747459", "0.6689002", "0.6657831", "0.66162205", "0.6603433", "0.65925974", "0.65595686", "0.65411645", "0.6507643", "0.6507643", "0.6507643", "0.6507643", "0.64977276", "0.64931643", "0.6486601", "0.6486601", "0.6486601", "0.6486601"...
0.63742703
47
Init a player character.
def FIMM(YKHO, bseI='cuby', WY3t=True, vQ4U=0, ZYD1=None): P8oC.playerid += 1 YKHO.id = P8oC.playerid YKHO.onlineId = ZYD1 YKHO.character = bseI.strip().lower() XVLt = Hy7s.listdir(P8oC.assetPath + '/characters/' + bseI) P1dX = {} for Ux0P in XVLt: YBcr = Ux0P.split('.')[len(Ux0P.spl...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FIMM(YKHO, sZqf: str, oyg0: int=0) -> None:\n YKHO.letter, YKHO.player = (sZqf, oyg0)", "def IH60(YKHO, Owhb):\n YKHO.player = YKHO.server.object_manager.add_player(Owhb)", "def FIMM(YKHO, WKvO, LVAh, YWSi):\n YKHO.health = oTBI.health\n YKHO.description = 'maincharacter'\n YKHO.direction = ...
[ "0.6877978", "0.67164236", "0.63931024", "0.6342751", "0.63021165", "0.6231091", "0.617353", "0.61452585", "0.61354876", "0.60334456", "0.5999012", "0.5994385", "0.59669787", "0.5916112", "0.5911151", "0.5896063", "0.5895674", "0.587402", "0.58585274", "0.5807152", "0.5793074...
0.6267583
5
Check to see if there is a rect collision with a tile.
def aDwL(YKHO, oeNL): return YKHO.colWithBox(oeNL, [2.0, 2.0, 2.0])
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def CuUu(YKHO, mawX):\n Fg_i = YKHO.left() > mawX.right() or YKHO.right() < mawX.left() or YKHO.top() < mawX.bottom() or (YKHO.bottom() > mawX.top())\n return not Fg_i", "def m3z8(Tc2u, jhwP):\n Nx80 = FlUN(*Tc2u)\n IgPc = FlUN(*jhwP)\n return Nx80.intersects(IgPc)", "def wnOk(YKHO, rdlD, fvDH):...
[ "0.7444433", "0.7138657", "0.6913372", "0.690468", "0.6882083", "0.6852363", "0.68004674", "0.67938626", "0.6784718", "0.67813694", "0.6767994", "0.6755162", "0.6731557", "0.67149675", "0.67098755", "0.66847414", "0.66832954", "0.6676328", "0.66522986", "0.6632362", "0.660971...
0.0
-1
Reduce resistance after getting bumped.
def SkZU(YKHO, vutH=0.5): if not YKHO.isNoReduce: YKHO.resist -= vutH if YKHO.resist < 1.0: YKHO.resist = 1.0 iWgZ.send('Player_' + str(YKHO.id) + '_Resist_UpdateHud') YKHO.noReduce(0.75)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def mSbW(YKHO):\n YKHO.mass *= 0.8", "def YBBW(YKHO) -> None:\n if YKHO.health < YKHO.max_health:\n if YKHO.repair_timer == 0:\n YKHO.health += 1\n YKHO.repair_timer = YKHO.REPAIR_TIME\n else:\n YKHO.repair_timer -= 1", "def jVj0(YKHO, GTZT):\n YKHO.ratio...
[ "0.64036787", "0.6369406", "0.62445503", "0.62332255", "0.62231964", "0.61548936", "0.6113797", "0.609788", "0.60246056", "0.5955771", "0.5951543", "0.5933296", "0.5902022", "0.5882861", "0.5875462", "0.58654344", "0.5846275", "0.5814933", "0.5805769", "0.5795994", "0.5788501...
0.6934086
0
Creates and saves a superuser with the given su_id, first_name, last_name, email, phone_number and password.
def Zp54(YKHO, kL9a, c9ua, zp3f, D3lj, JSoq, jTXt): CBIr = YKHO.create_user(kL9a, c9ua, zp3f, D3lj, JSoq, password=jTXt) CBIr.is_admin = True CBIr.save(using=YKHO._db) return CBIr
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def lYUQ(YKHO, kL9a, c9ua, zp3f, D3lj, JSoq, jTXt=None):\n if not D3lj and (not kL9a):\n raise ValueError('Users must have an email address or SU ID')\n CBIr = YKHO.model(su_id=kL9a, first_name=c9ua, last_name=zp3f, phone_number=JSoq, email=YKHO.normalize_email(D3lj), password=J6bg.make_random_passwor...
[ "0.7705317", "0.7383623", "0.73430467", "0.7330442", "0.73119366", "0.7304643", "0.72870594", "0.72814137", "0.72575825", "0.7225236", "0.722275", "0.72103", "0.71939236", "0.7190888", "0.7165532", "0.7147439", "0.711341", "0.71050483", "0.7102248", "0.70973366", "0.70884067"...
0.8629904
0
Generate a PyTorch Variable of uniform random noise.
def RoBV(Ep8u, tpio): ARTs = ht2j.rand(Ep8u, tpio) * 2 - 1 return ARTs.view(Ep8u, tpio, 1, 1)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Mrvv(ekHH, gR1k):\n return iQnE(ht2j.randn(ekHH, gR1k))", "def xWOZ(YKHO):\n YKHO.noise.resize_(YKHO.batch_size, int(YKHO.opt.nz), 1, 1).normal_(0, 1)\n YKHO.noisev = iQnE(YKHO.noise)", "def dKmm(cDK5, G67N):\n return ht2j.randn(cDK5, G67N).to(begE)", "def ltt5(YKHO, WKvO):\n return WKvO +...
[ "0.83419305", "0.7170281", "0.7039853", "0.6834736", "0.6795651", "0.67750555", "0.6632702", "0.65720916", "0.6552767", "0.65078986", "0.6494427", "0.6440631", "0.6412848", "0.63924724", "0.6389693", "0.63593805", "0.63531125", "0.63404405", "0.6334233", "0.63182336", "0.6318...
0.64616275
11
Gets the room_type of this Room.
def kmJ1(YKHO): return YKHO._room_type
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def XxYi(YKHO):\n kmJ1 = ''\n mLGw = ajWY(1, 8)\n if mLGw >= 1 and mLGw <= 4:\n kmJ1 = 'Empty'\n elif mLGw >= 5 and mLGw <= 7:\n kmJ1 = 'Monster'\n elif mLGw == 8:\n kmJ1 = 'Treasure'\n return kmJ1", "def FRul(YKHO):\n return YKHO._type", "def FRul(YKHO):\n return Y...
[ "0.6807455", "0.65633297", "0.65633297", "0.6513084", "0.6490215", "0.6490215", "0.64093226", "0.63901407", "0.6387068", "0.63868695", "0.63840944", "0.6338362", "0.63365144", "0.6327687", "0.63035", "0.62619424", "0.624822", "0.62220824", "0.6201027", "0.6159388", "0.6159329...
0.8705415
1
Sets the room_type of this Room.
def kmJ1(YKHO, kmJ1): if kmJ1 is not None and len(kmJ1) > 200: raise ValueError('Invalid value for `room_type`, length must be less than or equal to `200`') YKHO._room_type = kmJ1
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def kmJ1(YKHO, kmJ1):\n if kmJ1 is None:\n raise ValueError('Invalid value for `room_type`, must not be `None`')\n YKHO._room_type = kmJ1", "def u1qz(YKHO):\n YKHO.current_room = YKHO.grid.current_room_type", "def kmJ1(YKHO):\n return YKHO._room_type", "def kmJ1(YKHO):\n return YKHO._ro...
[ "0.88217705", "0.72221285", "0.7075677", "0.7075677", "0.65159637", "0.65159637", "0.64423233", "0.62254155", "0.62083435", "0.6206444", "0.61632866", "0.6127253", "0.6100346", "0.6100346", "0.6100346", "0.6069128", "0.6067452", "0.6064143", "0.6064143", "0.6050231", "0.60203...
0.82254165
1
Gets the surface of this Room.
def J20S(YKHO): return YKHO._surface
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def J20S(YKHO):\n return yPLI(YKHO.topods_shape())", "def B7Mv(YKHO):\n return YKHO._surface_area", "def QdZT(YKHO) -> a9eO.Surface:\n return YKHO.surface", "def HV9K(YKHO, BdN0: bool=True) -> 'pygame.Surface':\n if BdN0:\n return YKHO.get_crop_rect(YKHO.get_rect())\n return YKHO._surfa...
[ "0.6824311", "0.68202114", "0.6735238", "0.66922826", "0.6575736", "0.6555278", "0.6513427", "0.6487768", "0.64553696", "0.6404262", "0.6380272", "0.63388795", "0.6226513", "0.6226513", "0.61905426", "0.6102062", "0.59627134", "0.5912662", "0.5910866", "0.58555657", "0.581760...
0.8211755
0
Sets the surface of this Room.
def J20S(YKHO, J20S): if J20S is not None and J20S > 1000: raise ValueError('Invalid value for `surface`, must be a value less than or equal to `1000`') if J20S is not None and J20S < 0: raise ValueError('Invalid value for `surface`, must be a value greater than or equal to `0`') YKHO._surfa...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def PCaf(YKHO, J20S: str, LNo8: pygame.image) -> None:\n YKHO.surface = J20S\n YKHO.__set_image__(LNo8)", "def B7Mv(YKHO, B7Mv):\n YKHO._surface_area = B7Mv", "def FIMM(YKHO, J20S, mawX):\n YKHO.surface = J20S\n YKHO.rect = mawX", "def FIMM(YKHO, J20S, mawX):\n YKHO.surface = J20S\n YKHO...
[ "0.71654326", "0.6339202", "0.6316111", "0.6316111", "0.62931836", "0.595468", "0.58006126", "0.56688917", "0.56118697", "0.5603917", "0.55900055", "0.55900055", "0.55878067", "0.5583206", "0.5562287", "0.55397046", "0.55367815", "0.54776967", "0.54473186", "0.5446557", "0.54...
0.71615326
1
Gets the wall_covering of this Room.
def Opda(YKHO): return YKHO._wall_covering
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def l7Vm(YKHO):\n return YKHO._floor_covering", "def Opda(YKHO, Opda):\n if Opda is not None and len(Opda) > 200:\n raise ValueError('Invalid value for `wall_covering`, length must be less than or equal to `200`')\n YKHO._wall_covering = Opda", "def AyI1(YKHO):\n return YKHO.container['side_...
[ "0.70156467", "0.6534892", "0.6401697", "0.6128864", "0.6128864", "0.59380764", "0.5869793", "0.5761123", "0.5761123", "0.5731232", "0.56444997", "0.55022466", "0.5385891", "0.5371985", "0.52586985", "0.5175374", "0.51701766", "0.5161036", "0.51559114", "0.5154135", "0.51453"...
0.8477903
0
Gets the floor_covering of this Room.
def l7Vm(YKHO): return YKHO._floor_covering
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Opda(YKHO):\n return YKHO._wall_covering", "def pBSp(YKHO):\n return YKHO.container['floor']", "def pBSp(YKHO):\n return YKHO._floor", "def l7Vm(YKHO, l7Vm):\n if l7Vm is not None and len(l7Vm) > 200:\n raise ValueError('Invalid value for `floor_covering`, length must be less than or e...
[ "0.7359682", "0.69954157", "0.69395536", "0.638733", "0.5925529", "0.5925529", "0.5724004", "0.57221574", "0.56341654", "0.5511471", "0.5504571", "0.53731996", "0.5369445", "0.53591454", "0.5288676", "0.5245271", "0.52119094", "0.5189952", "0.517897", "0.5166886", "0.51487815...
0.85488707
0
Gets the general_state of this Room.
def lIVf(YKHO): return YKHO._general_state
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def j3Sc(YKHO):\n return YKHO.game_state", "def j3Sc(YKHO):\n return YKHO._current_state", "def j3Sc(YKHO):\n return YKHO._game_state", "def j3Sc(YKHO):\n return YKHO._game_state", "def j3Sc(YKHO):\n return YKHO._game_state", "def j3Sc(YKHO):\n return YKHO._game_state", "def j3Sc(YKHO...
[ "0.6855938", "0.6822563", "0.6776716", "0.6770722", "0.6770722", "0.6770722", "0.672692", "0.66817755", "0.66817755", "0.6440449", "0.6392815", "0.6392815", "0.63719195", "0.63719195", "0.63719195", "0.63642895", "0.62649244", "0.62649244", "0.62649244", "0.62649244", "0.6264...
0.8256431
0
Returns true if both objects are equal
def xa14(YKHO, Elif): if not isinstance(Elif, uHxD): return False return YKHO.__dict__ == Elif.__dict__
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def xa14(YKHO, Elif):\n return p6XU(YKHO, Elif)", "def xa14(YKHO, Elif):\n return p6XU(YKHO, Elif)", "def xa14(YKHO, Elif):\n try:\n return YKHO.object == Elif.object and isinstance(YKHO, type(Elif))\n except:\n return False", "def xa14(YKHO, Elif):\n if isinstance(YKHO, Elif.__c...
[ "0.8088132", "0.8088132", "0.8054589", "0.7982687", "0.79670393", "0.79670393", "0.79670393", "0.79670393", "0.79670393", "0.79670393", "0.79670393", "0.79670393", "0.79670393", "0.79670393", "0.79670393", "0.79670393", "0.79670393", "0.79670393", "0.79670393", "0.79670393", ...
0.0
-1