text stringlengths 25 2.19k | embedding listlengths 768 768 |
|---|---|
def random _ string ( ) : import os import base64 return '. '. join ( ( str ( os. getpid ( ) ), base64. urlsafe _ b64encode ( os. urandom ( 3 ) ). decode ('us - ascii'), ) ) | [
-0.0018237180775031447,
-0.49965164065361023,
0.5069518685340881,
-0.29229044914245605,
-0.5301342010498047,
1.1337738037109375,
-0.9807445406913757,
0.048012226819992065,
0.5503882169723511,
-0.2346644401550293,
0.5489549040794373,
0.3066892623901367,
-0.6753422021865845,
-1.1846741437911... |
def data _ laden _ sessions ( ) : connection = connect ( ) cur = connection. cursor ( ) try : # data is being loaded from de mongo db for session in sessions. find ( { }, { " _ id ", " session _ start ", " has _ sale ", " session _ end ", " segment ", " user _ agent ", " buid " } ) : if len ( session. keys ( ) ) > 6 : ... | [
-0.13043443858623505,
-0.35583099722862244,
1.0012880563735962,
0.20839793980121613,
0.6918947100639343,
-0.038208913058042526,
0.23459960520267487,
-0.7950828075408936,
-0.005870603956282139,
0.6135361790657043,
-0.7162122130393982,
-0.4858386516571045,
-0.6338752508163452,
0.020336549729... |
def sim _ kawasaki ( self, runs, cache = false, interval = 10 ) : self. title = " kawasaki " for r in range ( runs ) : # progress ( r, runs ) if cache : self. kawasaki _ sweep ( ) if ( r % interval = = 0 ) : self. cache. append ( copy. copy ( self. _ spins ) ) self. e. append ( self. calc _ total _ energy ( ) ) self. m... | [
-0.1762991100549698,
0.8282949924468994,
0.4979414641857147,
0.8972340226173401,
-0.4339231252670288,
0.4641413986682892,
0.8882848620414734,
-0.054694849997758865,
0.06849353015422821,
0.40100935101509094,
0.36987656354904175,
-0.7848031520843506,
-0.7961618304252625,
0.5148133635520935,
... |
def getweightoutedgesv ( self, * args ) : return _ snap. tneanet _ getweightoutedgesv ( self, * args ) | [
-0.4702174961566925,
0.3387863337993622,
0.43819597363471985,
-0.11774834245443344,
0.016859957948327065,
-0.8004330396652222,
0.621483325958252,
-0.13532178103923798,
-0.011677416041493416,
0.2778903543949127,
-0.059003982692956924,
-0.7117676138877869,
0.3192787170410156,
0.2706238925457... |
def systembeep ( self ) : print ( " \ a " ) | [
0.7656274437904358,
-0.49257418513298035,
0.44537779688835144,
0.5699871182441711,
0.32375863194465637,
0.8344138860702515,
0.0976773276925087,
0.2810858488082886,
0.2964620590209961,
0.24033431708812714,
-0.08119681477546692,
1.0313125848770142,
-0.10315893590450287,
0.585727334022522,
... |
def endeainti ( self, * args ) : return _ snap. tneanet _ endeainti ( self, * args ) | [
-0.9295711517333984,
0.09831365197896957,
0.3567638695240021,
-0.9810764789581299,
0.3441157937049866,
0.44258007407188416,
-0.004956886172294617,
-0.812772810459137,
-1.255893588066101,
0.6895771026611328,
-0.27759724855422974,
-1.7476611137390137,
-0.7996602058410645,
0.7790685296058655,... |
def get _ sql ( self, param _ type = param _ inline ) : self. _ arg _ conf. param _ type = param _ type tmp = map ( str, self. _ sql _ parts ) return " ". join ( tmp ) | [
-0.13824345171451569,
-0.32041701674461365,
0.3979754149913788,
0.4425869584083557,
0.08218716830015182,
0.40803444385528564,
-0.8750536441802979,
-0.1042209342122078,
-0.6475610136985779,
1.0827105045318604,
0.7009273767471313,
0.6692183017730713,
-0.8061444163322449,
1.0343605279922485,
... |
def forward ( ctx : any, analog _ tile : floatingpointtile, input _ : tensor, weights : tensor, _ : optional [ tensor ] = none, is _ test : bool = false ) - > tensor : # store in context for using during ` backward ( ) `. ctx. analog _ tile = analog _ tile ctx. weights = weights ctx. save _ for _ backward ( input _ ) #... | [
0.8382321000099182,
0.6102160811424255,
0.4337860643863678,
-0.40243396162986755,
0.33258646726608276,
0.5818964242935181,
0.5490338802337646,
-0.6786515712738037,
-0.3882353901863098,
-0.5326937437057495,
0.4839281737804413,
0.826431393623352,
0.6756805777549744,
-0.4256746470928192,
-0... |
def url _ for _ version ( self, version ) : self. set _ version ( ) return " https : / / github. com / cms - sw / cmssw / archive / % s. tar. gz " % self. cmssw _ u _ version | [
0.2484980672597885,
-0.12453973293304443,
0.3296765685081482,
-0.16006745398044586,
-0.22182443737983704,
0.5766863226890564,
-0.41486021876335144,
1.2085384130477905,
-0.44728514552116394,
-0.3403201997280121,
-0.4199516773223877,
-0.0420587919652462,
0.12790749967098236,
0.60010427236557... |
def sudoku ( grid ) : grid = format _ input ( grid ) while true : still _ to _ find = false for ordonate, line in enumerate ( grid ) : for abscisse, element in enumerate ( line ) : if element! ='_': continue coord = ( abscisse, ordonate ) if check ( grid, coord ) : still _ to _ find = true if not still _ to _ find : br... | [
-0.6393148303031921,
-0.19459432363510132,
0.6883312463760376,
0.08177062124013901,
-0.5207704305648804,
-0.23748184740543365,
0.5502917766571045,
-0.08995367586612701,
-0.8496469259262085,
0.12044736742973328,
0.7977296710014343,
-0.6365470290184021,
-0.14453426003456116,
0.11051464825868... |
def unit _ ids ( self ) : if self. _ unit _ ids is none : units _ df = self. ecephys _ session. units if isinstance ( self. _ unit _ filter, ( list, tuple, np. ndarray, pd. series ) ) : # if the user passes a list / array of ids units _ df = units _ df. loc [ self. _ unit _ filter ] print ( units _ df. ecephys _ struct... | [
-1.3158923387527466,
-0.050632819533348083,
0.6091592907905579,
-0.03651336580514908,
0.8364203572273254,
-0.38221824169158936,
0.7254055142402649,
-0.33266395330429077,
0.6414218544960022,
-0.21832017600536346,
0.4465153217315674,
0.6786465048789978,
-0.0004949470749124885,
-0.09613927453... |
def verify _ signature ( request, bank _ name, signature, auth = false, response = false ) : signature = force _ text ( signature ) with open ( settings. get _ public _ key ( bank _ name ) ) as handle : public _ key = rsa. importkey ( handle. read ( ) ) handle. close ( ) the _ key = pkcs1 _ v1 _ 5. new ( public _ key )... | [
-0.006782438140362501,
0.4343610405921936,
0.4396640956401825,
1.1401047706604004,
0.4140932857990265,
0.19359828531742096,
-0.23265108466148376,
-0.5183857083320618,
0.11295605450868607,
-0.05530046299099922,
-0.917542576789856,
-0.658440887928009,
-0.7196252942085266,
0.20708806812763214... |
def polygonize _ full ( self, lines ) : source = getattr ( lines,'geoms ', none ) or lines try : source = iter ( source ) except typeerror : source = [ source ] finally : obs = [ self. shapeup ( l ) for l in source ] l = len ( obs ) subs = ( c _ void _ p * l ) ( ) for i, g in enumerate ( obs ) : subs [ i ] = g. _ geom ... | [
0.3656366765499115,
0.005853001959621906,
0.4725450277328491,
-0.07187709957361221,
-0.2770533561706543,
0.4188067615032196,
-0.24624226987361908,
-0.2893160879611969,
0.5839189887046814,
-0.09458047896623611,
-0.3446093201637268,
-0.4055890738964081,
0.5375576615333557,
-0.178677573800086... |
def gray2red ( image ) : red = image green = np. zeros _ like ( image ) blue = np. zeros _ like ( image ) return np. stack ( [ red, green, blue ], axis = - 1 ) | [
-1.2649320363998413,
0.40180474519729614,
0.5126503705978394,
-0.126325324177742,
1.0676913261413574,
0.26188409328460693,
-0.405538409948349,
-0.9615671634674072,
-0.04327245429158211,
1.2198734283447266,
-0.20902574062347412,
1.2218153476715088,
0.23973360657691956,
1.265442967414856,
... |
def stop _ agent _ service ( self, quiet ) : pass | [
-0.7220782041549683,
-1.2284059524536133,
0.0064440141431987286,
-0.7215360403060913,
0.7416063547134399,
-0.09858067333698273,
-0.3360622525215149,
-0.9617763161659241,
0.04640219733119011,
-0.1572147160768509,
-0.3021988570690155,
1.060080647468567,
-0.26288193464279175,
0.00016253269859... |
def _ _ repr _ _ ( self ) : return " % s " % [ self. deck [ card ] for card in xrange ( len ( self. deck ) ) ] | [
-0.3640801012516022,
-0.5089796185493469,
0.5351687669754028,
-1.2719058990478516,
-0.33587896823883057,
0.21112926304340363,
-1.1617352962493896,
0.3419942259788513,
0.262998104095459,
-0.04608127847313881,
0.31371375918388367,
0.49670645594596863,
0.5529508590698242,
0.2877625823020935,
... |
def _ _ lt _ _ ( self, * args ) : return _ snap. tint _ _ _ lt _ _ ( self, * args ) | [
0.3250976502895355,
-0.969390869140625,
0.4110809862613678,
-0.3796745538711548,
0.5044373869895935,
-0.24426919221878052,
-0.5393168330192566,
-1.2668261528015137,
-0.8222252130508423,
-0.6291370987892151,
-0.9980937838554382,
-0.29594340920448303,
-0.657630205154419,
0.4364798963069916,
... |
def sign _ plaintext ( client _ secret, resource _ owner _ secret ) : # the " oauth _ signature " protocol parameter is set to the concatenated # value of : # 1. the client shared - secret, after being encoded ( ` section 3. 6 ` _ ). # #.. _ ` section 3. 6 ` : http : / / tools. ietf. org / html / rfc5849 # section - 3.... | [
0.2573477327823639,
-0.6257078051567078,
0.43121907114982605,
-0.9014442563056946,
-0.616763710975647,
-0.643165647983551,
-0.5048477649688721,
0.06426528096199036,
-0.26134130358695984,
0.7176067233085632,
-0.5893314480781555,
0.17761503159999847,
-0.5349091291427612,
-1.1654014587402344,... |
def _ is _ postgres _ responsive ( url ) : try : engine = sa. create _ engine ( url ) conn = engine. connect ( ) conn. close ( ) except sa. exc. operationalerror : return false return true | [
-0.6568676829338074,
0.18409346044063568,
0.773269772529602,
0.5906735062599182,
0.03262927383184433,
0.0028853807598352432,
-0.3956350088119507,
0.16916851699352264,
-0.5446973443031311,
0.16964051127433777,
0.49285638332366943,
-0.6149649620056152,
-0.8039249777793884,
-0.237711891531944... |
def all _ positions ( self ) : n = self. num _ active _ cameras ( ) ind = np. zeros ( n ) x = np. zeros ( ( n, 3 ) ) ptr = 0 for i, cam in enumerate ( self. cameras ) : if cam. initialized ( ) : ind [ ptr ] = i x [ ptr, : ] = cam. location ( ) ptr + = 1 return ind, x | [
-0.8941813707351685,
-0.9852532744407654,
0.34189197421073914,
0.4153790771961212,
0.17687076330184937,
-0.02947431430220604,
0.6186977624893188,
0.16873569786548615,
0.8223468065261841,
0.3174491822719574,
-0.8409332633018494,
-0.44667479395866394,
-0.4458540976047516,
-0.0317341312766075... |
def resample _ sitk ( self, img, img _ size, interpolator ) : reference _ physical _ size = np. zeros ( 3 ) reference _ physical _ size = [ ( sz - 1 ) * spc if sz * spc > mx else mx for sz, spc, mx in zip ( img. getsize ( ), img. getspacing ( ), reference _ physical _ size ) ] # create the reference image with a same o... | [
-0.213917076587677,
-0.3524166941642761,
0.6823261380195618,
-0.17139212787151337,
-0.4471314251422882,
-0.3965734541416168,
0.014866036362946033,
0.3174681067466736,
0.187677264213562,
0.4546511769294739,
0.4543139338493347,
0.0267640370875597,
-0.0848938524723053,
-0.1534748375415802,
... |
def transfermaterials ( shape, toassign, worldspace = true ) : for mesh in toassign : cmds. transfershadingsets ( shape, mesh, samplespace = worldspace ) | [
-0.21647284924983978,
-0.5455231070518494,
0.5471936464309692,
-0.010573134757578373,
-0.347754567861557,
0.9898756146430969,
0.4898211359977722,
-0.8575596213340759,
0.01468493789434433,
1.012648344039917,
0.024766575545072556,
1.259482741355896,
0.03296217694878578,
1.2500914335250854,
... |
def _ _ init _ _ ( self, * args ) : _ snap. tfltv _ swiginit ( self, _ snap. new _ tfltv ( * args ) ) | [
-0.14786161482334137,
0.6648010015487671,
-0.3278316259384155,
-0.27117639780044556,
-0.07696947455406189,
-0.9874345660209656,
0.7196694016456604,
0.6427845358848572,
-0.9105045199394226,
-0.8141782879829407,
-0.7077928781509399,
-0.6285871863365173,
-0.31799960136413574,
1.87527620792388... |
def _ _ init _ _ ( self, frame, width, height, row _ no, column _ no ) : self. image _ directory = " images " self. image _ frame = frame self. width = width self. height = height self. row _ no = row _ no self. column _ no = column _ no | [
0.08464562892913818,
0.47713425755500793,
0.49634188413619995,
0.6038094162940979,
0.0641297698020935,
-0.99806147813797,
0.17481109499931335,
0.5193314552307129,
-0.4208366870880127,
-0.4794725477695465,
-0.12902390956878662,
0.25610604882240295,
0.7851547002792358,
1.0893852710723877,
... |
def get _ ospf _ router _ id ( device ) : try : output = device. parse ('show ospf overview') except schemaemptyparsererror : return none try : return output. q. get _ values ('ospf - router - id ', 0 ) except exception as e : log. info ( " error retrieving router id : { e } ". format ( e = e ) ) return none | [
0.0820988267660141,
0.2015797197818756,
0.5063530206680298,
0.24629230797290802,
0.16571484506130219,
-0.39319780468940735,
0.22483429312705994,
0.1424778401851654,
0.011610284447669983,
-0.004711466375738382,
0.1754833459854126,
0.12333963066339493,
-0.8357715010643005,
0.5801605582237244... |
def appendbf ( self, * args ) : return _ snap. tmout _ appendbf ( self, * args ) | [
0.20837385952472687,
1.0449811220169067,
0.5541983246803284,
0.34551575779914856,
0.23619601130485535,
-0.1411905735731125,
0.7868049740791321,
0.514867901802063,
-0.7741838097572327,
-0.8860127329826355,
-0.19853344559669495,
-0.9863134026527405,
-1.513977289199829,
1.5854003429412842,
... |
def _ _ init _ _ ( self, cls, lock ) : self. _ lock = lock self. _ old _ cls = cls self. _ instance = none | [
-0.36432838439941406,
-0.3825640380382538,
0.5564582943916321,
-0.10334029048681259,
-0.25501033663749695,
-0.6237426400184631,
0.4644256830215454,
0.525161623954773,
0.9660995602607727,
-0.41176649928092957,
-0.3821445405483246,
0.512117862701416,
-0.14352141320705414,
-0.2256864458322525... |
def rightoflast ( self, * args ) : return _ snap. tstr _ rightoflast ( self, * args ) | [
0.48286157846450806,
0.4753829538822174,
0.28891366720199585,
-0.3407084047794342,
0.5883100628852844,
-0.42606988549232483,
0.08001067489385605,
-1.3285393714904785,
-1.701056718826294,
0.8378874063491821,
-0.4122239351272583,
-0.38417917490005493,
-0.5790385603904724,
0.09204225987195969... |
def requires _ nvcc _ version ( major _ version, minor _ version = 0, release _ version = 0 ) : try : nvcc _ version = nvcc. get _ cuda _ version ( ) except runtimeerror : nvcc _ version = ( 0, 0, 0 ) min _ version = ( major _ version, minor _ version, release _ version ) version _ str = ". ". join ( str ( v ) for v in... | [
-1.0124480724334717,
-0.47962111234664917,
0.6479565501213074,
0.8545661568641663,
-0.7376896142959595,
-0.056102581322193146,
0.3616369962692261,
-0.9320597648620605,
0.27416640520095825,
0.27394914627075195,
0.1227019801735878,
-0.238037109375,
0.19036054611206055,
0.36592593789100647,
... |
def create _ macd ( self, bot _ id, exchange ) : if not bot _ id or not exchange : raise exception ( " all data must be given " ) else : return self. macd _ repo. create ( bot _ id, exchange ) | [
0.06149108335375786,
0.12318896502256393,
0.33788010478019714,
-0.4154043197631836,
0.3089931607246399,
1.5646079778671265,
-1.5729689598083496,
0.9685477018356323,
0.5351162552833557,
-0.161965474486351,
0.7024064064025879,
0.9127771854400635,
-1.0733145475387573,
0.013703436590731144,
... |
def get _ label _ pixel ( ax ) : x _ label _ bounds = [ textobj. get _ window _ extent ( ) for textobj in ax. get _ xticklabels ( ) if len ( textobj. get _ text ( ) ) > 0 ] y _ label _ bounds = [ textobj. get _ window _ extent ( ) for textobj in ax. get _ yticklabels ( ) if len ( textobj. get _ text ( ) ) > 0 ] return ... | [
-0.16678504645824432,
-1.0772223472595215,
0.7975519895553589,
-0.4831591546535492,
-1.4276031255722046,
0.7944666147232056,
0.14581258594989777,
-0.7378108501434326,
0.17914803326129913,
0.7960417866706848,
-0.0165133997797966,
0.5706395506858826,
-0.32718002796173096,
0.6316148042678833,... |
def _ get _ certificate _ reference ( process _ type : str, next _ sequence _ value : int ) - > str : prefix = { processtypes. cfs : " cfs ", processtypes. com : " com ", processtypes. gmp : " gmp " } xxx = prefix [ process _ type ] # type : ignore [ index ] return f " { xxx } / { timezone. now ( ). year } / { next _ s... | [
-0.33108147978782654,
-0.2805459797382355,
0.5690604448318481,
-0.6743000149726868,
-0.6621188521385193,
-0.08540848642587662,
0.19417496025562286,
-0.776847779750824,
-0.1418641209602356,
0.9078627228736877,
0.5758692026138306,
0.370192289352417,
-0.5062482953071594,
0.1906595528125763,
... |
def intersect _ 2d ( x1, x2 ) : if x1. shape [ 1 ]! = x2. shape [ 1 ] : raise valueerror ( " input arrays must have same # columns " ) # this performs a matrix multiplication - esque thing between the two arrays # instead of summing, we want the equality, so we reduce in that way res = ( x1 [..., none ] = = x2. t [ non... | [
-0.14200107753276825,
0.18566107749938965,
0.8574584722518921,
0.36838439106941223,
0.19767068326473236,
-0.5943394303321838,
-0.9308684468269348,
-0.21739725768566132,
-0.9082064032554626,
1.217947006225586,
-0.31347179412841797,
0.37140172719955444,
-0.42143094539642334,
-0.3573719561100... |
def get _ arg _ value ( arg _ name, func, * func _ args, * * func _ kwargs ) : sig = signature ( func ) bound _ args = sig. bind ( * func _ args, * * func _ kwargs ) if arg _ name in bound _ args. arguments : arg _ val = bound _ args. arguments [ arg _ name ] else : raise typeerror ( f " { func. _ _ name _ _ } : does n... | [
0.24172288179397583,
-0.37886255979537964,
0.6607354879379272,
0.3231163024902344,
-0.06760508567094803,
-0.3996249735355377,
-0.3051607012748718,
0.003162696724757552,
-0.3475933372974396,
0.5296788811683655,
0.2990263104438782,
1.0594557523727417,
0.48395979404449463,
0.8665997982025146,... |
def test _ edit _ group ( self ) : group _ name = self. group _ name self. _ test _ create _ group ( group _ name ) new _ group _ name = self. group _ name new _ group _ desc = self. group _ description self. groups _ page. edit _ group ( group _ name, new _ group _ name, new _ group _ desc ) self. assertequal ( self. ... | [
-0.20598232746124268,
0.9466545581817627,
0.3408910632133484,
-0.2711721360683441,
1.0713058710098267,
-0.31773051619529724,
0.6017515659332275,
-0.20721495151519775,
-0.43936875462532043,
0.12972237169742584,
0.32100608944892883,
0.2712143361568451,
-0.40431350469589233,
0.983520627021789... |
def edit ( ident ) : data = data _ manager. get _ table _ from _ file ( ) for row in data : if row [ 0 ] = = str ( ident ) : row [ 1 ] = request. form ['title'] row [ 2 ] = request. form ['story'] row [ 3 ] = request. form ['criteria'] row [ 4 ] = request. form ['value'] row [ 5 ] = request. form ['estimation'] row [ 6... | [
-1.1858620643615723,
-0.5459126234054565,
0.6182587742805481,
-0.09875785559415817,
0.09117159992456436,
0.3429531157016754,
-0.5251522660255432,
0.7616572976112366,
-1.088804841041565,
-0.13765093684196472,
-0.13764043152332306,
0.030094966292381287,
0.22622089087963104,
0.313793361186981... |
def bs _ str _ to _ array ( bs _ arr _ str ) : bs _ arr _ str = str. split ( bs _ arr _ str, sep = ',') bs _ arr = [ ] for i in range ( len ( bs _ arr _ str ) ) : bs _ arr. append ( int ( bs _ arr _ str [ i ] ) ) return np. array ( bs _ arr ) | [
0.05899559333920479,
-1.5068365335464478,
0.9586017727851868,
0.24844692647457123,
0.5197960734367371,
0.28406620025634766,
0.24878369271755219,
0.10566578805446625,
0.4420703947544098,
0.7623559832572937,
0.36932697892189026,
1.6929019689559937,
-0.8901979327201843,
-0.3953608274459839,
... |
def update ( self ) : self. rect. y + = self. speedy # # kill the sprite after it moves over the top border if self. rect. top > height : self. kill ( ) | [
0.16255849599838257,
-0.8231021165847778,
0.6227818131446838,
0.7202234268188477,
0.41179051995277405,
-0.14124512672424316,
-0.003908400423824787,
-0.3620513081550598,
-0.5538352727890015,
-0.10345637798309326,
-0.26092079281806946,
-0.07117286324501038,
0.029361791908740997,
-0.316721558... |
def get _ global _ link _ transform _ function ( self, link : str, n : int = 1, numpy _ output : bool = false ) - > cs. function : return self. make _ function ( " t ", link, self. get _ global _ link _ transform, n = n, numpy _ output = numpy _ output ) | [
-0.5315370559692383,
0.5131354928016663,
0.3688095211982727,
0.025890428572893143,
0.3182287812232971,
-1.0733639001846313,
0.9944993853569031,
-0.01749262772500515,
0.3429252803325653,
-0.10762407630681992,
-0.9016559720039368,
1.192836880683899,
-0.3052537441253662,
-0.7642474174499512,
... |
def grouplines ( self ) : angles = [ x [ 1 ] for x in self. currdicgrain. pointslist ] # for single line, don't group if len ( angles ) = = 1 : self. currdicgrain. pointslist [ 0 ] [ 2 ] = 0 self. currdicgrain. groupslist = [ [ 0, angles [ 0 ], 0, 0, 0 ] ] else : # run clustering algorithm for > 1 line ms = meanshift (... | [
-0.259255588054657,
-0.24044403433799744,
0.5715574026107788,
-0.6323791742324829,
0.5035996437072754,
0.7516669631004333,
1.1021015644073486,
-0.4319012463092804,
-0.2109386920928955,
0.15042051672935486,
0.794043779373169,
0.4790489971637726,
0.0004760865995194763,
0.7674775123596191,
... |
def load _ conf ( file _ name ='conf. yaml') : hosts = [ ] if os. path. isfile ( file _ name ) : with open ( file _ name,'r +') as _ f : hosts = yaml. load ( _ f. read ( ) ) ['hosts'] return hosts | [
0.4267948567867279,
-0.27498167753219604,
0.5742530822753906,
0.5405859351158142,
-0.2007698267698288,
-0.4826962351799011,
-0.0009870689827948809,
1.4885231256484985,
-0.88688063621521,
0.5496857762336731,
-1.1021146774291992,
-0.2634980380535126,
0.1764877438545227,
0.866965115070343,
... |
def get _ valued _ jacobian ( matrix, guess _ x, guess _ y ) : return matrix. subs ( [ ( x, guess _ x ), ( y, guess _ y ) ] ) | [
-0.41215771436691284,
-0.20676159858703613,
0.3483406901359558,
0.36554715037345886,
-0.08872558921575546,
-0.13577523827552795,
0.041348546743392944,
-0.31496530771255493,
-1.1437236070632935,
0.52530437707901,
-0.32702985405921936,
1.1549826860427856,
0.4382559359073639,
-1.0526031255722... |
def test _ do _ select _ non _ existent _ id ( test _ dao ) : dut = dtmsimilaritem ( test _ dao ) dut. do _ select _ all ( revision _ id = 1 ) _ similar _ item = dut. do _ select ( 100 ) assert _ similar _ item is none | [
-0.06672954559326172,
0.10725443065166473,
0.23279884457588196,
0.465270072221756,
0.6834762692451477,
0.3239929676055908,
-0.015958622097969055,
-0.14897914230823517,
0.686803936958313,
0.09877748787403107,
-0.8137747049331665,
0.16510769724845886,
0.2454284131526947,
-0.44045495986938477... |
def tgutil _ makeexpbins ( * args ) : return _ snap. tgutil _ makeexpbins ( * args ) | [
-1.071904182434082,
0.9069899320602417,
-0.11836660653352737,
-0.6274604797363281,
-0.9934797883033752,
1.6810210943222046,
0.529734194278717,
0.3914521634578705,
-1.117218017578125,
0.16841675341129303,
-0.4345895051956177,
-0.410344660282135,
-0.881025493144989,
0.3965517282485962,
0.6... |
def _ update _ group _ user _ like ( self, group _ id, post _ url, current _ users, not _ liked _ by ) : for user _ id in current _ users : bool _ like = int ( user _ id not in not _ liked _ by ) if pd. read _ sql ( f'''select * from fact _ group _ user _ like where post _ url = " { post _ url } " and group _ id = { gr... | [
-0.9239213466644287,
-0.1791127771139145,
0.5500680804252625,
0.13938206434249878,
-0.4947163462638855,
0.6338828802108765,
0.6243961453437805,
0.03681814670562744,
-1.6179946660995483,
0.7488788962364197,
0.2541305124759674,
0.6128157377243042,
-1.0061949491500854,
0.33179396390914917,
... |
def setup ( self ) : super ( ). setup ( ) self. url = " https : / / cve " self. set _ source _ parameter ( " details _ url ", " image - details. json " ) self. set _ source _ parameter ( " severities ", [ " low " ] ) self. vulnerabilities _ json = { " vulnerabilities " : [ { " vuln " : " cve - 000 ", " package " : " pa... | [
-0.021793685853481293,
-0.026700707152485847,
0.41158342361450195,
-0.4761601984500885,
1.487565517425537,
-0.24998661875724792,
-0.2776326537132263,
0.2802504599094391,
0.24275580048561096,
-0.061514705419540405,
-0.8506268858909607,
0.342739462852478,
0.812435507774353,
1.309524536132812... |
def test _ list _ decimal _ min _ length _ 4 _ nistxml _ sv _ iv _ list _ decimal _ min _ length _ 5 _ 4 ( mode, save _ output, output _ format ) : assert _ bindings ( schema = " nistdata / list / decimal / schema + instance / nistschema - sv - iv - list - decimal - minlength - 5. xsd ", instance = " nistdata / list / ... | [
-0.1890268623828888,
-0.47402656078338623,
0.35296544432640076,
0.04824891686439514,
-0.3395554721355438,
-0.5093911290168762,
-0.15069331228733063,
-0.6169138550758362,
0.7773314118385315,
-0.25728487968444824,
-1.3494046926498413,
-0.43417760729789734,
-0.8329124450683594,
0.442558079957... |
def test _ example _ input _ one _ search _ value _ multiple _ select _ test ( self, ucc _ smartx _ selenium _ helper, ucc _ smartx _ rest _ helper ) : input _ page = inputpage ( ucc _ smartx _ selenium _ helper, ucc _ smartx _ rest _ helper ) input _ page. create _ new _ input. select ( " example input one " ) input _... | [
-0.6348613500595093,
0.19307120144367218,
0.5141648054122925,
0.5520074367523193,
1.0464292764663696,
0.5517153143882751,
-0.318514883518219,
-0.3770940899848938,
0.8753176927566528,
0.3723728656768799,
-0.5757463574409485,
-0.4991995394229889,
-0.2549431025981903,
0.673247218132019,
-0.... |
def kube _ strategy ( self ) : strat = kubesimplestrategy ( threshold = 10, interval = 1, max _ idletime = 5 ) strat. _ thread = threading. thread ( target = no _ op _ worker ( ) ) return strat | [
0.19825012981891632,
0.27388983964920044,
0.37523558735847473,
-0.2206537425518036,
0.506365180015564,
0.33681344985961914,
-0.0356430821120739,
-1.2297484874725342,
0.10993922501802444,
-0.41901323199272156,
0.13950954377651215,
0.17891275882720947,
-0.7265576124191284,
-0.711821198463439... |
def index ( request ) : form = crawlerform ( ) return render _ to _ response ('django _ web _ crawler / web _ crawler _ form. html ', {'form': form } ) | [
0.18597513437271118,
0.3415021300315857,
0.36644574999809265,
-0.4510408043861389,
0.578742265701294,
0.11171635240316391,
0.8279358744621277,
0.41936996579170227,
-0.8925484418869019,
-0.8878718614578247,
0.17229372262954712,
-0.2978001832962036,
0.39905470609664917,
0.5240932106971741,
... |
def onstatechange ( self, reason ) : if ( reason & state _ change _ init ) > 0 : # self. _ loaddatamodelmgr ( ) reason | = state _ change _ datamodelmgr if ( reason & state _ change _ datamodelmgr ) > 0 : self. _ loaddatamodelmgr ( ) if ( reason & state _ change _ curdataset ) > 0 : if'self'in self. modelsubmenus : sel... | [
-0.3457711637020111,
-0.4616924822330475,
0.4900427460670471,
-0.22421105206012726,
-0.2594303488731384,
-0.1578761786222458,
0.06523649394512177,
0.32413262128829956,
0.4658418297767639,
-0.16867294907569885,
-0.3187694847583771,
0.6195641756057739,
0.26223111152648926,
0.9097623229026794... |
def p _ matrix ( self ) : k = np. diag ( [ self. f, self. f, 1 ] ) return np. dot ( k, np. hstack ( ( self. r, self. t [ :, np. newaxis ] ) ) ) | [
-0.3233385980129242,
-0.7329488396644592,
0.49967053532600403,
-0.06550124287605286,
0.4683960974216461,
0.2940521538257599,
0.4454387128353119,
0.8731033205986023,
-0.36031457781791687,
0.744012713432312,
0.8371006846427917,
-1.1114095449447632,
0.03471152484416962,
-0.4732595980167389,
... |
def tographpergroupiterator ( self, * args ) : return _ snap. ttable _ tographpergroupiterator ( self, * args ) | [
-1.388366460800171,
0.2750213146209717,
0.3797113597393036,
0.3856322169303894,
-0.9428821206092834,
-0.1289752721786499,
1.3997350931167603,
-0.8857228755950928,
-1.0930836200714111,
0.661527156829834,
0.3270195424556732,
-1.0084991455078125,
-0.73319011926651,
-0.17975760996341705,
-0.... |
def generate _ view _ panel ( view _ update _ signal, tag _ update _ signal, style _ update _ signal, view _ list : list [ tuple [ str, str ] ], ) : return components. get _ view _ components ( view _ list ) | [
-0.9874195456504822,
0.05913262069225311,
0.2725025415420532,
0.05134519189596176,
-0.4737281799316406,
0.09153787791728973,
-0.5684463381767273,
-0.3418612480163574,
0.6825711727142334,
0.071905218064785,
-0.2552511990070343,
0.3353676497936249,
-0.4488394558429718,
-0.057332027703523636,... |
def _ _ init _ _ ( self, * args, * * kargs ) : # store the instance self. workflow = kargs. pop ('workflow ', none ) self. columns = self. workflow. columns. all ( ) self. initial _ values = kargs. pop ('initial _ values ', { } ) super ( ). _ _ init _ _ ( * args, * * kargs ) if not self. workflow : return for idx, colu... | [
-0.46320641040802,
0.42390793561935425,
0.45746874809265137,
-0.26977840065956116,
0.10155651718378067,
-0.11491350084543228,
-0.004349253140389919,
0.44295814633369446,
-0.7237289547920227,
0.30719754099845886,
-0.4660870432853699,
-0.4284282922744751,
0.4539935886859894,
1.11866092681884... |
def html ( self ) : return self. _ build _ html ( ) | [
-0.8164858222007751,
-0.11706648021936417,
-0.09699305146932602,
0.7097716927528381,
-0.5647488832473755,
0.6919652223587036,
-0.003889743471518159,
0.37710699439048767,
-0.07969406247138977,
-0.4278925955295563,
0.7293069958686829,
0.254190057516098,
-0.012164580635726452,
-0.507997334003... |
def discount _ rewards ( r ) : discounted _ r = np. zeros _ like ( r ) running _ add = 0 for t in reversed ( range ( len ( discounted _ r ) ) ) : if r [ t ]! = 0 : running _ add = 0 # reset the sum, since this was a game boundary ( pong specific! ) running _ add = r [ t ] + running _ add * gamma # belman equation disco... | [
0.4620036482810974,
-0.5166337490081787,
0.5875157117843628,
-0.5546414256095886,
0.8859192728996277,
0.46932023763656616,
0.32945266366004944,
0.4946363866329193,
0.7000280022621155,
0.7272230386734009,
0.2260061502456665,
0.6079587340354919,
-0.15356306731700897,
0.02079245075583458,
0... |
def mbo _ download ( self, download = true ) : if download : self. download _ data ('mbo') | [
0.7716442942619324,
-0.10636723786592484,
0.31746789813041687,
0.9424149394035339,
-0.3855412006378174,
0.30389976501464844,
0.008836068212985992,
0.42808520793914795,
0.0227500069886446,
0.16520144045352936,
-0.4248545467853546,
-0.04026515781879425,
-0.26114919781684875,
0.35180798172950... |
def getpivotvaln ( self, * args ) : return _ snap. tintv _ getpivotvaln ( self, * args ) | [
-1.3539985418319702,
-0.26104527711868286,
0.30006906390190125,
1.5490808486938477,
-0.0892961397767067,
-0.353191614151001,
-0.40153029561042786,
0.5319843888282776,
-0.2951623499393463,
-1.335557460784912,
-1.021196961402893,
0.3095986843109131,
-0.3201116621494293,
0.6959753036499023,
... |
def make _ cursor ( cursor _ type, size ) : cursor = _ cursors. get ( ( cursor _ type, size ) ) if cursor is none : if cursor _ type = = " line " : cursor = make _ cursor _ line ( size ) else : return valueerror ( " cursor _ type must be line " ) _ cursors [ ( cursor _ type, size ) ] = cursor return cursor | [
0.08227729797363281,
-0.22867639362812042,
0.23196107149124146,
-0.23971879482269287,
-0.05585525184869766,
-0.636612057685852,
-0.22513683140277863,
-0.6892421841621399,
0.5836899280548096,
-0.30627816915512085,
-0.13902707397937775,
0.8238621354103088,
-0.29255902767181396,
-0.2825404107... |
def getdevicemanagementrequeststatus ( self, requestid ) : mgmtrequests = apiclient. mgmtrequeststatus % ( self. host, requestid ) r = requests. get ( mgmtrequests, auth = self. credentials, verify = self. verify ) status = r. status _ code if status = = 200 : self. logger. debug ( " retrieved all device management req... | [
-1.968701720237732,
-0.3891950845718384,
0.41902709007263184,
-0.25905537605285645,
-0.2178833931684494,
-0.2060113102197647,
-0.7917963266372681,
-0.8204326033592224,
0.3781414330005646,
-0.17885300517082214,
-0.017636040225625038,
0.8391528129577637,
-0.5497993230819702,
0.91064751148223... |
def setfavouritescount ( self, count ) : self. _ favourites _ count = count | [
-0.5333801507949829,
0.23807817697525024,
0.31365296244621277,
-0.3759768307209015,
0.051675375550985336,
0.8611382842063904,
-0.2762552797794342,
-0.1326407790184021,
-1.233004093170166,
0.07461217790842056,
-1.3206450939178467,
0.46845099329948425,
-0.25594601035118103,
-0.39611494541168... |
def save _ to _ cfg ( self ) : self. cfg ['autofocus'] ['method'] = str ( self. method ) self. cfg ['autofocus'] ['tracking _ mode'] = str ( self. tracking _ mode ) self. cfg ['autofocus'] ['max _ wd _ stig _ diff'] = str ( [ self. max _ wd _ diff, self. max _ stig _ x _ diff, self. max _ stig _ y _ diff ] ) self. cfg ... | [
-0.6966102123260498,
-0.28824108839035034,
0.4280780553817749,
-0.6616716980934143,
-0.11097218841314316,
-0.31771284341812134,
0.1818724274635315,
-0.40017884969711304,
-0.6278923749923706,
0.26264652609825134,
-1.294464111328125,
-0.05184211581945419,
0.21720796823501587,
1.2069547176361... |
def test _ upload _ charts _ via _ helm _ upload ( copy _ test _ apps ) : app _ dir = copy _ test _ apps log. tc _ step ( " upload helm charts via helm - upload cmd from active controller " " and check charts are in / var / www / pages / " ) file _ path = container _ helper. upload _ helm _ charts ( tar _ file = os. pa... | [
1.2821061611175537,
-0.5657514929771423,
0.8270025849342346,
0.42760175466537476,
0.6572884321212769,
0.7186702489852905,
1.1590063571929932,
-0.8421417474746704,
-0.4153349995613098,
0.23360076546669006,
-0.6031525135040283,
0.012645282782614231,
0.5894796848297119,
-0.4261232912540436,
... |
def factory ( hostname, username, password, database, directory ) : return dbmarshal ( hostname, username, password, database, os. path. abspath ( directory ) ) | [
-0.34906628727912903,
0.6375349760055542,
0.43402522802352905,
0.3425242304801941,
-0.18843989074230194,
0.14994756877422333,
-0.5913417339324951,
0.48498034477233887,
-0.19693587720394135,
-0.994330108165741,
0.812337338924408,
0.3048589527606964,
0.05746355652809143,
-0.16327054798603058... |
def execution _ component _ id ( self, execution _ component _ id ) : self. _ execution _ component _ id = execution _ component _ id | [
-0.2161712944507599,
-1.0164066553115845,
-0.10605689883232117,
-0.11699330061674118,
0.7638562917709351,
1.453460693359375,
0.8553601503372192,
0.23618154227733612,
0.4357856214046478,
0.315191388130188,
0.39655768871307373,
-0.19224180281162262,
0.3947400152683258,
0.5994739532470703,
... |
def _ _ new _ _ ( s, * more ) : # real signature unknown ; restored from _ _ doc _ _ pass | [
-0.8009260892868042,
-0.5534924268722534,
0.4688420593738556,
0.8641753792762756,
-1.1760499477386475,
-0.24230769276618958,
0.8332360982894897,
-1.1120270490646362,
0.00872752908617258,
-0.19691911339759827,
-1.164334774017334,
-0.5995680093765259,
0.8356699347496033,
-0.3499341309070587,... |
def process _ account _ response ( request, transaction _ id, access _ token, success ) : payment _ txn = get _ object _ or _ 404 ( transaction, id = int ( transaction _ id ) ) try : if payment _ txn. get _ param ('access _ token')! = access _ token : raise http404 except transactionparam. doesnotexist : raise http404 ... | [
0.611980140209198,
-0.4098610579967499,
0.8633466958999634,
0.057734765112400055,
0.05883414298295975,
-0.5549360513687134,
0.7951066493988037,
-0.25995105504989624,
0.8932414650917053,
0.17284193634986877,
1.2234771251678467,
-0.49752750992774963,
0.8339754939079285,
-0.22981345653533936,... |
def _ _ getitem _ _ ( self, index _ tuple ) : return self. _ img [ index _ tuple [ 0 ], index _ tuple [ 1 ] ] | [
-1.6302303075790405,
0.1396152526140213,
0.3062282204627991,
-0.6317909359931946,
0.0838513970375061,
-0.3296646177768707,
0.32958078384399414,
-0.9112268686294556,
-0.44753846526145935,
0.12682093679904938,
0.4829227328300476,
0.0014179885620251298,
0.48286429047584534,
-1.410333275794983... |
def list ( self, request, * args, * * kwargs ) : return viewsets. readonlymodelviewset. list ( self, request, * args, * * kwargs ) | [
-1.0056052207946777,
-0.1785649061203003,
0.46779027581214905,
-0.02410239726305008,
-0.10871155560016632,
-0.4260450303554535,
-0.42075255513191223,
-0.5787709951400757,
0.7170614004135132,
-0.2811637222766876,
0.08829013258218765,
0.5148215293884277,
-0.0023544859141111374,
0.08590138703... |
def _ _ init _ _ ( self, output = none, path = none, verify = true ) : self. path = path or tempfile. mkdtemp ( ) self. output = output self. verify = verify self. check _ dependencies ( ) if isinstance ( output, output ) : self. url = output. reference self. _ file = none elif isinstance ( output, ( str, path ) ) : se... | [
0.29453256726264954,
-0.7709575891494751,
0.4201681911945343,
0.9470601081848145,
-0.7207507491111755,
-0.5258350372314453,
0.6058136820793152,
0.32242074608802795,
-0.23258903622627258,
-0.8719987273216248,
0.0034365227911621332,
-0.13932855427265167,
0.0005756781320087612,
0.628594875335... |
def delwc ( * args ) : return _ snap. tfile _ delwc ( * args ) | [
0.4860790967941284,
0.5504252910614014,
0.719044029712677,
-0.24435658752918243,
-0.35713592171669006,
0.9454536437988281,
0.6708696484565735,
0.03899453207850456,
-1.2810436487197876,
-0.45882758498191833,
0.168707013130188,
-0.4853799641132355,
-0.6482980251312256,
1.1137025356292725,
... |
def convert _ to _ tensor ( narray, device ) : pass | [
-0.7102598547935486,
0.06284799426794052,
0.05350549519062042,
0.7674760222434998,
-0.3655721843242645,
-0.3413850665092468,
1.0630706548690796,
-0.2991955578327179,
0.5634128451347351,
0.8455349206924438,
-0.7063758969306946,
-0.01081785373389721,
0.2822391390800476,
-0.8573073148727417,
... |
def _ _ init _ _ ( self, request _ validator, token _ expires _ in = none, token _ generator = none, refresh _ token _ generator = none, * args, * * kwargs ) : auth _ grant = authorizationcodegrant ( request _ validator ) implicit _ grant = implicitgrant ( request _ validator ) password _ grant = resourceownerpasswordc... | [
0.3851552903652191,
-0.1105254665017128,
0.9312436580657959,
1.351171851158142,
-0.0455419197678566,
-0.0803603008389473,
0.037698108702898026,
-0.011452686972916126,
0.27490007877349854,
-0.29928871989250183,
0.1171594113111496,
-0.2770591080188751,
0.23224778473377228,
0.0271213911473751... |
def charge _ miles _ added _ rated ( self ) - > float : return self. _ vehicle _ data. get ( " charge _ state ", { } ). get ( " charge _ miles _ added _ rated " ) | [
0.32322996854782104,
-0.2195553481578827,
0.17825309932231903,
-0.6144841909408569,
0.7465046644210815,
0.6071084141731262,
-1.5062021017074585,
-0.4921422004699707,
0.321684867143631,
-0.023690758273005486,
-0.10390828549861908,
0.8035397529602051,
-0.456307053565979,
0.08718270808458328,... |
def terminate ( self, status ) : try : for sim _ name in self. sim _ map. keys ( ) : self. terminate _ sim ( sim _ name ) except : print'encountered exception when terminating simulation'raise for k in self. sim _ map. keys ( ) : del self. sim _ map [ k ] self. log _ process. terminate ( ) | [
0.24171993136405945,
-0.4445233941078186,
0.39440491795539856,
0.5265589356422424,
0.31147146224975586,
-0.1389974057674408,
-0.9927948713302612,
-0.010526260361075401,
0.07591909915208817,
-0.06334031373262405,
-0.5376302003860474,
-0.634459912776947,
0.13547168672084808,
1.13408684730529... |
def print _ res ( self, result, index = none ) : if index is not none : print ( " { : > 3 } ". format ( index ) + " " + _ c. bold + _ c. blue + result [ " title " ] + _ c. reset ) if result [ " description " ] : print ( " " * 4 + " description : " + result [ " description " ] ) print ( " " * 4 + result [ " highlight " ... | [
-0.6570031642913818,
-0.16590185463428497,
0.81600022315979,
-0.4352562129497528,
0.5554414391517639,
-0.2915768325328827,
-0.5260273814201355,
-0.43019899725914,
0.06984446942806244,
-0.2740018963813782,
-0.21177902817726135,
0.1891048103570938,
-0.3755263090133667,
-0.4643581509590149,
... |
def merge ( line ) : # iterate over the input and create an output list # that has all of the non - zero tiles slid over # to the beginning of the list # with the appropriate number of zeroes at the end of the list list _ output = list ( line ) for dummy _ i in range ( 0, len ( list _ output ) - 1 ) : if list _ output ... | [
-0.5157051086425781,
0.09922626614570618,
0.9330629110336304,
0.40924933552742004,
0.18523575365543365,
-0.8202378749847412,
0.7203707695007324,
0.7638081908226013,
0.12369517982006073,
-0.5753245949745178,
-1.1053407192230225,
-0.3013184070587158,
-0.8898239135742188,
1.2723952531814575,
... |
def on _ retry ( self, exc, task _ id, args, kwargs, einfo ) : logger. info ( exc ) super ( basetask, self ). on _ retry ( exc, task _ id, args, kwargs, einfo ) | [
0.5329614281654358,
-0.45050761103630066,
0.4958031177520752,
0.27942922711372375,
0.429625928401947,
-0.476582795381546,
-0.12202458083629608,
0.8496890664100647,
0.08443426340818405,
-0.09200026094913483,
-1.0531163215637207,
0.5687257051467896,
0.8036996722221375,
0.04710923880338669,
... |
def radiallatlon ( waypoint ) : radialfixpattern = re. compile ( " [ a - z ] * \ d { 6 } " ) if re. match ( radialfixpattern, waypoint ) : distance = int ( waypoint [ - 3 : ] ) * 1852 bearing = int ( waypoint [ - 6 : - 3 ] ) * 0. 0175 refwaypoint = waypoint [ : - 6 ] refwaypointlocation = terminalareainterface. getwayp... | [
-0.16425052285194397,
-1.2834398746490479,
0.5193989276885986,
-1.2571485042572021,
-1.159826636314392,
0.02094716578722,
0.32210394740104675,
-0.3779158294200897,
0.20321957767009735,
0.2758530378341675,
-1.2701247930526733,
0.13813844323158264,
-0.5952820777893066,
0.07883363962173462,
... |
def tree _ walk _ dfs ( tree ) : yield tree [ 0 ] if tree [ 1 ] is not none : yield from tree _ walk _ dfs ( tree [ 1 ] ) if tree [ 2 ] is not none : yield from tree _ walk _ dfs ( tree [ 2 ] ) | [
-0.6901752352714539,
0.45102009177207947,
0.9232853055000305,
0.04471650347113609,
0.35623452067375183,
-0.2192535102367401,
-0.14336059987545013,
-0.6832227110862732,
-0.0948205441236496,
-0.41326904296875,
0.2585926055908203,
-0.5972339510917664,
-0.4430823028087616,
0.9735837578773499,
... |
def addcredentials ( credentialname, * * credential ) : loadconfig ( ) global configdict configdict [ " credentials " ] [ credentialname ] = credential saveconfig ( ) | [
-0.3964892029762268,
-0.7430371046066284,
0.2661341428756714,
0.29133474826812744,
-0.20836152136325836,
0.7157377600669861,
-0.49568188190460205,
1.2117899656295776,
-0.040541116148233414,
0.5485606789588928,
-1.9127922058105469,
-0.21181818842887878,
-0.8987002968788147,
0.13529069721698... |
def step _ delay ( self ) : return self. sequence [ self. _ current _ step ]. get ('delay') | [
-0.27365821599960327,
-0.024451343342661858,
0.49205175042152405,
0.9033265709877014,
0.1307990700006485,
0.8414153456687927,
0.6713810563087463,
0.34569576382637024,
-0.44420126080513,
-0.9506090879440308,
-0.6458473205566406,
-0.5869680047035217,
0.029576001688838005,
0.3729177713394165,... |
def getstdnamev ( * args ) : return _ snap. tstrutil _ getstdnamev ( * args ) | [
-0.699349045753479,
0.6748253703117371,
0.295747846364975,
0.43966588377952576,
-0.21310202777385712,
0.1290179044008255,
0.553726851940155,
-1.0932602882385254,
-1.3484864234924316,
-0.2850381135940552,
-1.3769420385360718,
0.8307774066925049,
0.49530288577079773,
0.7328974604606628,
1.... |
def solubility _ as _ function ( self, mesh, t ) : v = f. functionspace ( mesh. mesh, " dg ", 1 ) s = f. function ( v, name = " s " ) vs = f. testfunction ( v ) dx = mesh. dx f = 0 for mat in self. materials : f + = - s * vs * dx ( mat. id ) f + = mat. s _ 0 * f. exp ( - mat. e _ s / k _ b / t ) * vs * dx ( mat. id ) f... | [
0.42930153012275696,
-0.31580185890197754,
0.48407626152038574,
0.2696850299835205,
0.3178052306175232,
-0.3316749334335327,
-0.07626308500766754,
0.607101321220398,
0.14623068273067474,
-0.051276762038469315,
-0.5854112505912781,
-0.30794626474380493,
-0.06207508221268654,
-0.103999793529... |
def is _ symmetric ( self ) : return self = = self. transpose ( ) | [
-0.544901430606842,
0.6708606481552124,
0.25759613513946533,
0.030202247202396393,
0.35651838779449463,
-0.812306821346283,
0.9039662480354309,
-0.5062081813812256,
0.6514689922332764,
0.4296308159828186,
-1.1959019899368286,
0.10812601447105408,
-0.1246938407421112,
-0.2016817182302475,
... |
def add _ storage _ account ( self ) : from azure. mgmt. storage import storagemanagementclient from azure. mgmt. storage. models import storageaccountcreateparameters, sku, skuname, kind from msrestazure. azure _ active _ directory import aadtokencredentials from azure. mgmt. authorization. models import roleassignmen... | [
0.9451994299888611,
-0.0888364166021347,
0.6376023292541504,
1.3708491325378418,
-0.37907254695892334,
0.1871689409017563,
-0.13106219470500946,
-0.3415909707546234,
0.4087117314338684,
-0.19617798924446106,
0.2196395993232727,
0.37701672315597534,
-0.25421035289764404,
0.30443286895751953... |
def isunique ( self, word ) : if len ( word ) < 3 : return true abbr = self. getabbr ( word ) if word in self. dictionary : return self. abbrs [ abbr ] < 2 return abbr not in self. abbrs | [
-0.5860589146614075,
0.10191591829061508,
0.7989572882652283,
-0.46531936526298523,
-0.3266967833042145,
0.9733268618583679,
-0.7778826951980591,
-0.16826801002025604,
0.9463472962379456,
0.1246560662984848,
-0.5419766306877136,
0.42712175846099854,
-0.443148672580719,
0.24413208663463593,... |
def getversions ( self, request, context ) : context. code ( beta _ interfaces. statuscode. unimplemented ) | [
-0.991346001625061,
0.351972371339798,
0.3175069987773895,
0.8996294736862183,
0.7627399563789368,
0.32111427187919617,
0.005189094226807356,
-1.5410408973693848,
-0.17234694957733154,
0.300413578748703,
-0.863753080368042,
0.7550445199012756,
-0.644858717918396,
0.33872562646865845,
-0.... |
def gengeoprefattach ( * args ) : return _ snap. gengeoprefattach ( * args ) | [
-0.48741886019706726,
0.6268343329429626,
0.5989093780517578,
0.8988851308822632,
-0.19935573637485504,
1.3133960962295532,
1.3083000183105469,
0.050636257976293564,
-0.7721648812294006,
-0.1464575231075287,
0.1622902899980545,
-0.9146311283111572,
0.026515549048781395,
0.5585927367210388,... |
def sep _ dir ( file _ path : str, sepint : int = 1 ) : # get path separator separator = os. sep # split based on operating system x = file _ path. split ( separator ) # get inner directory inner _ dir = separator. join ( x [ - sepint : ] ) # join based on separator first _ path = separator. join ( x [ 0 : - sepint ] )... | [
-0.333619087934494,
-0.3295629322528839,
0.5937898755073547,
0.25007164478302,
-0.31992781162261963,
-0.2241329550743103,
0.146303191781044,
0.2585313320159912,
-0.32441389560699463,
-0.33016902208328247,
0.1703634411096573,
-0.2847647964954376,
-0.3090840280056,
-0.131491556763649,
0.87... |
def train ( self, i ) : prediction = int ( findprediction ( self. sampledata [ i ], self. centroiddata ) ) # append our prediction to the prediction list and if we were correct, increment the correct counter self. predicted. append ( [ int ( self. sampledata [ i ] [ 0 ] ), int ( self. sampledata [ i ] [ 1 ] ), predicti... | [
-1.0300264358520508,
0.02220076322555542,
0.4251251220703125,
-0.009280425496399403,
-0.06771273910999298,
-0.14511151611804962,
0.8789888024330139,
0.2288607805967331,
-0.4040657579898834,
0.2696482241153717,
-0.9266894459724426,
-0.20644497871398926,
-0.08095205575227737,
-0.038415856659... |
def getfail ( self ) : return self. _ fail | [
-0.3825628459453583,
0.4877006709575653,
0.2500053346157074,
0.19279877841472626,
-0.09347087889909744,
0.2913392186164856,
0.06633997708559036,
-1.3567020893096924,
-0.3003288805484772,
-1.3788961172103882,
-0.4490393102169037,
0.5222191214561462,
-0.8297592401504517,
-0.1849735677242279,... |
def mapping _ is _ valid ( self ) : # ensure a local storage is set local _ storage = self. local _ storage # clear the storage info text to begin self. ui. storage _ info. settext ( " " ) # hide this by default self. ui. save _ storage _ btn. hide ( ) # root is not mapped to a local storage if not local _ storage : se... | [
-0.4830743074417114,
-0.262596994638443,
0.8378497362136841,
0.797644853591919,
-0.2976047992706299,
0.6916682720184326,
1.0334209203720093,
0.0029211791697889566,
-0.13546088337898254,
-0.22841030359268188,
-0.09999771416187286,
-0.42230188846588135,
-0.3138270378112793,
0.986134946346283... |
def intattrvalueei ( self, * args ) : return _ snap. tneanet _ intattrvalueei ( self, * args ) | [
-0.33208614587783813,
0.45142096281051636,
0.19923925399780273,
0.0006646023248322308,
0.5650312304496765,
0.3401860296726227,
0.3730224072933197,
-0.2049616575241089,
-1.2727806568145752,
0.4504610002040863,
0.2078736126422882,
-0.682528018951416,
-0.5870400667190552,
0.7466360926628113,
... |
def addfltattrdate ( self, * args ) : return _ snap. tneanet _ addfltattrdate ( self, * args ) | [
0.29825738072395325,
0.5353752374649048,
0.3944331109523773,
-1.530975580215454,
0.9066224098205566,
0.29067954421043396,
-0.3107130527496338,
-0.07827436178922653,
-0.6064586639404297,
-1.0198607444763184,
0.11978203058242798,
-0.9341694116592407,
0.5960026979446411,
1.1146252155303955,
... |
def generate _ token ( length = 30, chars = unicode _ ascii _ character _ set ) : rand = random. systemrandom ( ) return''. join ( rand. choice ( chars ) for x in range ( length ) ) | [
-0.6158503293991089,
0.22873835265636444,
0.18949638307094574,
-0.9522847533226013,
-0.5091908574104309,
0.11436372250318527,
-1.1237478256225586,
0.35441282391548157,
0.49123960733413696,
-0.7878861427307129,
-0.8716450333595276,
0.6851471662521362,
0.3750135004520416,
-1.2119390964508057... |
def get _ contents _ soup ( self, url, driver = none, * * gatewaykwargs ) : soup = self. get _ soup _ source ( url = self. get _ soup _ url ( url ), driver = driver, * * gatewaykwargs ) title = self. get _ title _ from _ soup ( soup ) soup _ sections = self. get _ sections _ from _ soup ( soup ) contents = self. get _ ... | [
-0.9723029732704163,
-0.2589859962463379,
0.6961965560913086,
-0.15869076550006866,
-0.8887312412261963,
-0.9378846287727356,
-0.02755076438188553,
-0.18593847751617432,
0.15272299945354462,
-0.4828699827194214,
-0.11641757935285568,
-0.5132074952125549,
0.3640940487384796,
0.4393805265426... |
def get _ sgf _ pathname ( self, game _ id ) : return os. path. join ( self. sgf _ dir _ pathname, self. get _ sgf _ filename ( game _ id ) ) | [
0.4733373820781708,
-0.4173390865325928,
0.5052959322929382,
0.37258127331733704,
-0.16763846576213837,
-0.08809838443994522,
0.7184908986091614,
-0.1439155489206314,
-0.5155724287033081,
0.5655486583709717,
0.23043422400951385,
-0.191813662648201,
-0.49018797278404236,
0.09695279598236084... |
def pop ( self, name ) : trashinfo = self. get ( name ) full _ path _ to _ trashinfo _ file = os. path. join ( self. trashinfo _ path, name ) os. remove ( full _ path _ to _ trashinfo _ file ) return trashinfo | [
0.7029183506965637,
-0.6800358891487122,
0.6887128949165344,
-1.3497552871704102,
-0.7523433566093445,
0.13307960331439972,
0.05791794881224632,
-0.1042509377002716,
-0.6223305463790894,
0.22818559408187866,
-0.8513380289077759,
-1.0437430143356323,
-0.09272386878728867,
-0.905754387378692... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.