text stringlengths 25 2.19k | embedding listlengths 768 768 |
|---|---|
def _ _ init _ _ ( self, path : str, alert _ id, fps = 25, shape = ( 1080, 1920, 3 ) ) - > none : super ( ). _ _ init _ _ ( ) self. video _ path = os. path. join ( path,'video ', str ( alert _ id ) + '. mp4') self. img _ path = os. path. join ( path,'image ', str ( alert _ id ) + '. jpg') self. shape = shape self. data... | [
0.7871509790420532,
-0.699509859085083,
0.619240403175354,
0.5815762877464294,
0.5677087306976318,
-0.45712345838546753,
-0.12840679287910461,
0.025135142728686333,
-0.32483819127082825,
0.1913081258535385,
-0.2508796453475952,
0.8447719216346741,
0.2329740822315216,
0.711856484413147,
0... |
def test _ cant _ retrieve _ private _ community _ not _ member _ of _ post ( self ) : user = make _ user ( ) headers = make _ authentication _ headers _ for _ user ( user ) community _ owner = make _ user ( ) community = make _ community ( creator = community _ owner, type = community. community _ type _ private ) pos... | [
0.15469427406787872,
0.4863251745700836,
0.39644044637680054,
0.7374470829963684,
0.7273936867713928,
0.5343562364578247,
-0.7099212408065796,
-1.59345543384552,
-0.1348164975643158,
-1.1876907348632812,
-0.4575403332710266,
0.4587881565093994,
-1.1425576210021973,
0.34414881467819214,
0... |
def weightnormconvolution1d ( x, num _ filters, dilation _ rate, filter _ size = 3, stride = [ 1 ], pad ='valid ', init _ scale = 1., init = false, gated = false, counters = { }, reuse = false ) : name = get _ name ('weight _ norm _ conv1d ', counters ) with tf. variable _ scope ( name ) : if reuse : tf. get _ variable... | [
0.23357558250427246,
-0.3720250427722931,
0.9027922749519348,
0.5268324613571167,
-1.1458276510238647,
0.02567020058631897,
0.09987246990203857,
-0.007473255507647991,
0.3803349435329437,
0.9793630242347717,
0.23633863031864166,
0.3803997039794922,
0.019324418157339096,
0.743780255317688,
... |
def get _ user _ classifieds _ promotion _ packs ( self, user _ id ) : endpoint = f " / users / { user _ id } / classifieds _ promotion _ packs " return self. _ call _ api ('get ', endpoint ) | [
-1.0471456050872803,
0.3488430976867676,
0.39101722836494446,
1.6715611219406128,
-0.6014488935470581,
0.08034495264291763,
-0.753820538520813,
-1.0731992721557617,
0.5044479966163635,
-0.2481752187013626,
-0.6506298184394836,
1.6296350955963135,
-0.918427050113678,
1.0720129013061523,
0... |
def _ replace _ faker _ attr ( self, matchobj ) : attr = matchobj. group ( 0 ). replace ('< ','' ). replace ('> ','' ) # prepare template to handle quotes # for example, in situtations where the specification may # be " < first _ name _ _ from _ _ users > < last _ name _ _ from _ _ users > " # we want to be able to gen... | [
-0.49525150656700134,
-0.442515105009079,
0.7803875803947449,
-1.344474196434021,
-0.9017791748046875,
-1.0864516496658325,
0.5916669368743896,
0.4385712742805481,
0.43727031350135803,
0.17085467278957367,
-0.12698867917060852,
-0.657945990562439,
0.41864562034606934,
-0.03805705904960632,... |
def test _ people _ collection _ str _ representation ( people _ collection _ factory ) : now = datetime. datetime ( 2020, 8, 30, 10, 54, tzinfo = datetime. timezone. utc ) collection = people _ collection _ factory. build ( created _ at = now ) assert'< 2020 - 08 - 30t10 : 54 + 00 : 00 >'in str ( collection ) assert'e... | [
-0.47825098037719727,
-1.1464341878890991,
0.2608010768890381,
-0.5674436092376709,
0.2240840345621109,
1.4485828876495361,
-0.5920284390449524,
-0.37004297971725464,
-0.5455803871154785,
0.09544637054204941,
-0.12880657613277435,
0.04912490397691727,
0.12108459323644638,
0.157462224364280... |
def base85 _ to _ ipv6 ( addr : str ) - > str :... | [
-0.904202938079834,
-0.4879942834377289,
0.22794432938098907,
-0.7112693786621094,
-0.9069284796714783,
-0.710867702960968,
0.5262727737426758,
-0.5418727993965149,
0.7196948528289795,
1.2690696716308594,
-0.7251894474029541,
1.4587112665176392,
0.816966712474823,
-0.9709717631340027,
0.... |
def stim _ table _ spontaneous ( self ) : # used by sweep _ p _ events for creating null dist. # todo : this may not be need anymore? ask the scientists if sweep _ p _ events will be required in the future. if self. _ stim _ table _ spontaneous is none : spont _ table = self. ecephys _ session. get _ stimulus _ table (... | [
0.42548003792762756,
-0.1543092429637909,
0.6897202730178833,
0.40273699164390564,
-0.9995585083961487,
-0.6499730348587036,
0.537266731262207,
-0.11101871728897095,
-0.7076094746589661,
-0.02912408486008644,
-0.2525792419910431,
1.11081063747406,
-0.23729069530963898,
0.05528418719768524,... |
def name ( self ) : pass # pragma : no cover | [
0.04938369244337082,
-1.1421526670455933,
0.28560158610343933,
0.6906951069831848,
-0.08424042165279388,
0.9705058336257935,
0.6263291239738464,
-0.5398100018501282,
0.08642607927322388,
-0.15454761683940887,
-0.5744637846946716,
-0.00027046140166930854,
0.8599720001220703,
0.3196811974048... |
def surface _ points ( self ) : return [ [ self. points [ p ] for p in s ] for s in self. surfaces ] | [
0.33114713430404663,
-0.637097954750061,
0.015060670673847198,
0.880861222743988,
0.41060349345207214,
1.4620387554168701,
0.5504673719406128,
0.3291567862033844,
0.3529966175556183,
0.09949371218681335,
-0.32005900144577026,
0.019446540623903275,
-0.22553665935993195,
0.7820700407028198,
... |
def _ _ lt _ _ ( self, * args ) : return _ snap. tintinthhi _ _ _ lt _ _ ( self, * args ) | [
0.47063684463500977,
-0.8721533417701721,
0.2809971868991852,
-0.5329251885414124,
0.811430037021637,
-0.16399173438549042,
-0.27351534366607666,
-1.1803841590881348,
-1.6197423934936523,
-0.53508460521698,
-1.1428234577178955,
-0.15346673130989075,
-1.3901430368423462,
0.473440557718277,
... |
def state ( self ) : confidence = 0 face _ name = state _ unknown # search high verify face for i _ name, i _ co in self. known _ faces. items ( ) : if i _ co > confidence : confidence = i _ co face _ name = i _ name return face _ name | [
-0.2998752295970917,
-0.6497159600257874,
0.6558985710144043,
0.7183300256729126,
0.4919268488883972,
0.3638392388820648,
0.771723747253418,
-0.5112466812133789,
-0.007177424617111683,
-0.20748370885849,
-0.505147397518158,
0.5088379383087158,
0.389496386051178,
0.3986152112483978,
-0.03... |
def print _ to ( self, fd ) : _ lib. seccomp _ export _ pfc ( self. filter, fd ) | [
0.7755420804023743,
-0.3744717240333557,
0.352703720331192,
-0.11914248019456863,
0.26032865047454834,
-0.236385777592659,
0.5875923037528992,
-0.6450353860855103,
-0.47083383798599243,
-0.3710154891014099,
0.33338621258735657,
1.3159635066986084,
0.0021005638409405947,
0.06102427467703819... |
def getrandom ( self ) : if self. count = = 0 : return false i = randint ( 1, self. count ) return self. dic [ i ] | [
-0.8239217400550842,
0.5258088111877441,
0.5934991836547852,
-0.5735035538673401,
-0.3310018479824066,
0.3569267988204956,
0.6382684707641602,
0.11728384345769882,
-0.1506652534008026,
-0.38330620527267456,
0.49459633231163025,
-0.33424046635627747,
-1.6151912212371826,
-0.2612957954406738... |
def create _ tcp _ listener ( self, blb _ id, listener _ port, backend _ port, scheduler, health _ check _ timeout _ in _ second = none, health _ check _ interval = none, unhealthy _ threshold = none, healthy _ threshold = none, client _ token = none, config = none ) : path = utils. append _ uri ( self. version,'blb ',... | [
0.561276376247406,
-0.5776241421699524,
0.7002816200256348,
-0.15549327433109283,
0.17104148864746094,
-0.08510444313287735,
-0.7320603132247925,
-0.4740668833255768,
-0.8084113597869873,
0.42983293533325195,
-0.543097972869873,
0.46836724877357483,
-0.638737142086029,
-0.21128380298614502... |
def getdevices ( self, parameters = none ) : bulkretrieve = apiclient. bulkretrieve % ( self. host ) r = requests. get ( bulkretrieve, auth = self. credentials, params = parameters, verify = self. verify ) status = r. status _ code if status = = 200 : self. logger. debug ( " bulk retrieval successful " ) return r. json... | [
-1.535436987876892,
0.015020609833300114,
0.8190122842788696,
0.5893753170967102,
0.5906174778938293,
-0.5157045722007751,
0.038921087980270386,
-0.2781422734260559,
0.08931604772806168,
0.4868229329586029,
0.08982104808092117,
1.2718505859375,
-1.5449111461639404,
0.6978261470794678,
-0... |
def _ _ init _ _ ( _ _ self _ _, *, firewall _ policy _ name : pulumi. input [ str ], resource _ group _ name : pulumi. input [ str ], id : optional [ pulumi. input [ str ] ] = none, name : optional [ pulumi. input [ str ] ] = none, priority : optional [ pulumi. input [ int ] ] = none, rule _ group _ name : optional [ ... | [
-0.34247615933418274,
0.6815083026885986,
0.5993160009384155,
-0.5007836222648621,
0.6294567584991455,
0.30719947814941406,
-0.3790358603000641,
0.1037994772195816,
-0.022272227331995964,
0.2543642818927765,
-0.747539758682251,
0.07961863279342651,
0.11104754358530045,
0.1497788280248642,
... |
def isignored ( self ) : with open ( self. filename ) as input _ file : # pylint : disable = unspecified - encoding for line in input _ file : if line. startswith ( " # " ) and line [ 1 : ]. strip ( ) = = " shelldoc - ignore " : return true return false | [
0.5739040970802307,
-0.216756209731102,
0.671968936920166,
-0.19233638048171997,
0.252543181180954,
0.6684907078742981,
-0.09641052037477493,
0.47678208351135254,
-0.5388639569282532,
-0.22095468640327454,
-0.29001784324645996,
-0.19289229810237885,
-0.780893087387085,
0.5589345097541809,
... |
def encrypt _ event ( self ) : self. currentpath = os. path. abspath ( self. pathent. get ( ) ) key = self. enckey. get ( ) if not self. path _ exists ( self. currentpath ) or not self. is _ safe _ key ( key ) : return self. encryptionrunning = true self. completion = 0. 0 if self. pathtype. get ( ) = = 0 : threading. ... | [
-0.1439601480960846,
0.11612410843372345,
0.6567931771278381,
0.8848608732223511,
0.5913472175598145,
-0.3336983919143677,
0.657873272895813,
-0.12362074106931686,
-0.3145817518234253,
0.8606016635894775,
0.003236315445974469,
0.13254545629024506,
-0.43178436160087585,
0.9875649213790894,
... |
def add _ field ( cls, field, insert _ after ) : with cls. _ fields _ lock : idx = cls. fields. index _ by _ name ( insert _ after ) + 1 # this class may not have its own fields attribute. make sure not to edit an attribute belonging to a parent # class. cls. fields. insert ( idx, field ) setattr ( cls, _ mangle ( fiel... | [
-0.5074599981307983,
0.865836501121521,
0.5500529408454895,
-0.04358465597033501,
0.1594582051038742,
0.43052938580513,
-0.08449307829141617,
0.16182062029838562,
-0.38509541749954224,
-0.8807151317596436,
-1.050782322883606,
-0.7528712749481201,
-0.310528963804245,
0.05427610129117966,
... |
def propagatedatetime ( self, datetimeobj, updatepositionandvelocity = false ) : p, v = self. sgp4 _ satellite. propagate ( datetimeobj. year, datetimeobj. month, datetimeobj. day, datetimeobj. hour, datetimeobj. minute, datetimeobj. second + datetimeobj. microsecond / 1e6 ) if updatepositionandvelocity : self. current... | [
-0.5260831117630005,
-0.18403460085391998,
1.0239900350570679,
-0.08551646023988724,
-1.2031059265136719,
0.3647100329399109,
-0.6811750531196594,
-0.8470040559768677,
0.5779947638511658,
0.7296587824821472,
-0.34987038373947144,
-0.3291192650794983,
0.06992791593074799,
0.5201801657676697... |
def get _ audio _ features ( tracks, access _ token ) : partial _ tracks = tracks final _ result = [ ] while len ( partial _ tracks ) > 0 : n = min ( len ( partial _ tracks ), 100 ) partial _ ids = " " for t in partial _ tracks [ : n ] : partial _ ids = partial _ ids + t ['id'] + ','url = " https : / / api. spotify. co... | [
-0.33905670046806335,
-0.5288816094398499,
0.5685030817985535,
0.33864808082580566,
0.6624932289123535,
-0.3198883533477783,
-0.8418866395950317,
-0.5090585350990295,
-0.6169242262840271,
-0.006549258250743151,
0.07988135516643524,
0.7147080302238464,
-0.20394206047058105,
-0.2260247766971... |
def run _ call ( cmd, * * kw ) : logger. info ('running command : % s'%''. join ( cmd ) ) process = subprocess. popen ( cmd, stdout = subprocess. pipe, stderr = subprocess. pipe, * * kw ) stdout = [ line. strip ('\ n') for line in process. stdout. readlines ( ) ] stderr = [ line. strip ('\ n') for line in process. stde... | [
0.19904725253582,
-0.5437988638877869,
0.9090344905853271,
-0.4083298146724701,
-1.1013619899749756,
-0.07679885625839233,
-1.5050203800201416,
-0.2455870360136032,
-0.2836039960384369,
0.06348259001970291,
0.2639942765235901,
0.22177141904830933,
-0.19467751681804657,
0.5811413526535034,
... |
def postorder ( self, node = none ) : if node is none : node = self. root for child in node. children : for subtree in self. postorder ( child ) : yield subtree yield node | [
0.5580990314483643,
0.5359416007995605,
1.0698177814483643,
0.21162734925746918,
-1.243895173072815,
-0.13735438883304596,
-0.41279205679893494,
0.6180545687675476,
-0.20064812898635864,
-0.8125035762786865,
-0.6586224436759949,
-0.5771452784538269,
-0.3896389305591583,
1.2929086685180664,... |
def predict ( self, x _ test ) : y _ predicted = [ ] # for each value in the x _ test list for val in x _ test : # y = mx + b equation prediction = ( self. slope * val [ 0 ] ) + self. intercept y _ predicted. append ( prediction ) return y _ predicted | [
0.2615470886230469,
0.052644725888967514,
0.4242786467075348,
0.5012906789779663,
0.4638002812862396,
0.10078948736190796,
-0.11694511771202087,
0.50901198387146,
0.1393946260213852,
-0.17469292879104614,
-0.49197664856910706,
-0.00403768103569746,
-0.05606973171234131,
0.16794776916503906... |
def get _ version _ string ( filename, what, language = none ) : # verqueryvalue ( ) returns an array of that for varfileinfo \ translation # class langandcodepage ( ctypes. structure ) : _ fields _ = [ ( " wlanguage ", ctypes. c _ uint16 ), ( " wcodepage ", ctypes. c _ uint16 ) ] wstr _ file = ctypes. wstring _ at ( f... | [
0.6210540533065796,
-0.8516402840614319,
0.6758536696434021,
-0.5099921822547913,
-0.5221545696258545,
0.2557661831378937,
-0.3381284177303314,
0.08014491945505142,
-0.16812635958194733,
0.5885381698608398,
0.12673942744731903,
-0.23943951725959778,
-0.6620070338249207,
0.416530966758728,
... |
def build ( self, spec, prefix ) : options = [ " - v " ] options + = self. build _ targets with working _ dir ( self. build _ directory ) : inspect. getmodule ( self ). ninja ( * options ) | [
-0.509896993637085,
-0.5180444717407227,
0.31697356700897217,
0.7483893632888794,
1.4538248777389526,
-0.0227967519313097,
0.1023348793387413,
0.12243384122848511,
-0.25861087441444397,
-0.2388768047094345,
0.09662512689828873,
1.1754019260406494,
0.5636457204818726,
0.3510925769805908,
... |
def onchildrenchanged ( self, event ) : pass | [
0.8357059955596924,
-0.7982571125030518,
0.26512399315834045,
0.269521564245224,
-0.14162026345729828,
0.4384150505065918,
0.15164034068584442,
-0.23748761415481567,
-0.1441773772239685,
-0.14611171185970306,
-1.7984287738800049,
0.5840457677841187,
0.5623143911361694,
0.36853915452957153,... |
def add _ account ( name : str, user : str ) : assert not utility. check _ empty _ string ( name ), " account name cannot be empty or blank spaces " utility. is _ exist ( account, exp _ message = " account name already exists! ", name _ _ iexact = name, status = true ) return account ( name = name. strip ( ), user = us... | [
-0.016866035759449005,
-0.23441849648952484,
0.6868491768836975,
0.5956774950027466,
-0.3296516239643097,
0.8540514707565308,
-0.06005530431866646,
-0.23979733884334564,
0.3066191077232361,
0.5952335000038147,
-0.13545522093772888,
0.33619415760040283,
-0.687965989112854,
-0.55536991357803... |
def updateprompt ( self, int ) : if int = = 1 : self. prompt = fore. blue +'ckd - scaleway ['+ fore. red + datacenter + fore. blue +'] #'+ style. reset _ all elif int = = 0 : self. prompt = fore. blue +'ckd - scaleway ['+ fore. green + datacenter + fore. blue +'] #'+ style. reset _ all else : self. prompt = fore. blue ... | [
-1.235037088394165,
-0.44718918204307556,
0.6172372698783875,
-0.814323902130127,
-0.39727601408958435,
0.5514163374900818,
-0.5028496384620667,
-0.9105604887008667,
0.3197634816169739,
1.065223217010498,
0.014660811983048916,
0.92475825548172,
0.04480671510100365,
0.7297754287719727,
0.... |
def tfile _ getuniquefnm ( * args ) : return _ snap. tfile _ getuniquefnm ( * args ) | [
-0.4454447329044342,
0.5275094509124756,
0.26097381114959717,
0.3698977530002594,
0.454132616519928,
-0.2689095437526703,
0.3473412096500397,
0.33605751395225525,
-1.544535517692566,
-0.2672390341758728,
-0.7831767201423645,
-0.6254481673240662,
-0.35088491439819336,
-0.38637223839759827,
... |
def addnode ( self, * args ) : return _ snap. tngraph _ addnode ( self, * args ) | [
-0.5523366332054138,
1.4898045063018799,
0.23586145043373108,
0.6761131286621094,
1.0352610349655151,
0.19997522234916687,
0.5193759799003601,
0.6438108086585999,
-0.6249255537986755,
-0.08117259293794632,
0.02245062217116356,
-1.1775957345962524,
-0.897418737411499,
0.20625314116477966,
... |
def load ( self ) : try : # check if the file really exists self. frameset = numpy. load ( " datasets \ \ " + self. name + " frames. npy " ) except : print ( " error laoding the frames, please check the name of your dataset or \ nsee if your files are not corrupted " ) try : # check if the file really exists self. inpu... | [
-0.04479765146970749,
-0.40570029616355896,
0.5483074188232422,
-0.11815248429775238,
0.19544067978858948,
0.09333301335573196,
0.026078077033162117,
-0.08047710359096527,
0.04944825544953346,
-0.4832109212875366,
0.4405156970024109,
0.5956254601478577,
-0.7468218803405762,
0.5970563292503... |
def update _ model ( self ) - > torch. tensor : samples = self. memory. sample _ batch ( ) loss = self. _ compute _ dqn _ loss ( samples ) self. optimizer. zero _ grad ( ) loss. backward ( ) self. optimizer. step ( ) return loss. item ( ) | [
-0.7502961158752441,
-0.45737510919570923,
0.4531523585319519,
-0.019997885450720787,
-0.6118243336677551,
-0.27704161405563354,
0.2733273506164551,
-0.6411423683166504,
-0.07051638513803482,
-0.08858344703912735,
-0.2815139889717102,
0.24445997178554535,
-0.27037253975868225,
-1.321282267... |
def get _ machine _ formatted _ dataset ( self ) : x _ data = np. array ( [ row [ " machineformat " ] [ " input " ] [ 0 ] for row in self. dataset ] ) y _ data = np. array ( [ row [ " machineformat " ] [ " output " ] [ 0 ] for row in self. dataset ] ) return x _ data, y _ data | [
-0.6481316685676575,
-0.9543416500091553,
0.2038070261478424,
-1.162898302078247,
-0.17745664715766907,
0.34626275300979614,
-1.0171854496002197,
-0.3143140971660614,
-0.6465650796890259,
-0.41490256786346436,
1.1509596109390259,
1.3128445148468018,
0.4359479248523712,
1.038908839225769,
... |
def cancel _ subscription ( self, data ) : if not self. cart : self. log. warn ( " unable to find purchase for ipn. " ) return sku = data. get ( " item _ number ", none ) recurring _ by _ sku = dict ( [ ( li. sku, li ) for li in self. cart. recurring _ lineitems ] ) item = recurring _ by _ sku. get ( sku ) if item : it... | [
0.3413466215133667,
-0.7558678984642029,
0.45891323685646057,
0.5823169350624084,
0.09292596578598022,
-0.949752688407898,
-0.4492138922214508,
0.02315337397158146,
0.055681779980659485,
-0.20310078561306,
-0.45462581515312195,
0.0201425664126873,
-0.1029801070690155,
-1.7360482215881348,
... |
def test _ initial ( self ) : field = omnibooleanfield. _ meta. get _ field ('initial _ data') self. assertisinstance ( field, models. nullbooleanfield ) self. asserttrue ( field. blank ) self. asserttrue ( field. null ) | [
0.6094637513160706,
0.11193325370550156,
0.3538490831851959,
-0.13370852172374725,
0.9791644811630249,
1.0379443168640137,
-0.20904694497585297,
0.48760053515434265,
0.22889406979084015,
-0.472660094499588,
-0.47244635224342346,
0.33466029167175293,
-0.11110171675682068,
0.3236406445503235... |
def load ( cls, infile = " " ) : with open ( infile,'rb') as f : mac = pickle. load ( f ) assert ( isinstance ( mac, cls ) ), " type of unpickled object must be machine " return mac | [
-0.46522843837738037,
-0.5753926634788513,
0.48582398891448975,
-0.6425171494483948,
-0.6574952602386475,
0.9523910880088806,
0.6274399161338806,
0.048153962939977646,
-0.6403071284294128,
-0.8073294162750244,
-0.22896437346935272,
-0.28196442127227783,
-0.9956790804862976,
-0.697799801826... |
def _ _ str _ _ ( self ) : str _ = str ( tuple ( str ( card ) for card in self. cards ) ) str _ = str _. replace ( "'",'' ) return str _ | [
-0.6137431859970093,
-0.6293148994445801,
0.8939292430877686,
-1.819006323814392,
-0.03930468112230301,
0.32790035009384155,
-1.847406029701233,
0.4525725245475769,
-0.887974739074707,
0.9029912948608398,
0.21791870892047882,
-0.2740573585033417,
-0.18797734379768372,
-0.8636197447776794,
... |
def _ _ getattr _ _ ( self, attr ) : string = str ( self ) if hasattr ( string, attr ) : return getattr ( string, attr ) raise attributeerror ( attr ) | [
0.8928197026252747,
-0.7512367963790894,
0.43186989426612854,
-0.5717931389808655,
-0.2698958218097687,
-0.6180815100669861,
0.48006486892700195,
-0.9427449703216553,
0.3471881151199341,
-0.5716274976730347,
1.2589012384414673,
0.216339111328125,
0.9386674761772156,
0.0033378086518496275,
... |
def purgeimagesdirectory ( ufopath, topurge ) : for filename in topurge : if subpathexists ( ufopath, * [ " images ", filename ] ) : path = subpathjoin ( ufopath, * [ " images ", filename ] ) os. remove ( path ) | [
-0.4344576597213745,
0.19439385831356049,
0.40199360251426697,
-0.04835447669029236,
1.144688606262207,
-0.2546740770339966,
0.5209288597106934,
0.2514585256576538,
0.28762876987457275,
0.37989163398742676,
0.353522926568985,
0.12943772971630096,
0.19951114058494568,
0.012212901376187801,
... |
def reanalyze _ callers ( * args ) : return _ ida _ auto. reanalyze _ callers ( * args ) | [
-1.4853026866912842,
-0.003771606832742691,
0.34314775466918945,
0.5928057432174683,
0.8461905717849731,
-0.37639421224594116,
0.57136070728302,
-0.34677568078041077,
-0.3805953860282898,
-0.9326998591423035,
-0.9253724813461304,
-0.17263352870941162,
-1.115668773651123,
0.9114327430725098... |
def _ _ init _ _ ( self, profile _ name ) : self. profile _ name = profile _ name try : with open ('resources / user _ profiles /'+ self. profile _ name + '. json ','r') as f : self. profile = json. load ( f ) except ioerror as error : print ( error ) | [
0.4943291246891022,
-1.158035397529602,
0.6093021631240845,
-0.07365989685058594,
-0.49327513575553894,
0.16449390351772308,
-0.005362171214073896,
-0.11744125187397003,
-0.4243888854980469,
0.557803750038147,
-1.1160649061203003,
-0.46525970101356506,
0.2703135907649994,
-0.66969925165176... |
def zeeman ( cls, spin _ particle, field ) : return cls. mkh1 ( spin _ particle, field ) | [
-0.07169804722070694,
-0.558225154876709,
0.05980280786752701,
0.19172795116901398,
-0.20016758143901825,
0.6776381731033325,
-0.3633696436882019,
1.0112473964691162,
-0.019528193399310112,
-0.05410132184624672,
-0.480343759059906,
0.21934136748313904,
-0.7975373864173889,
-0.0707169994711... |
def convert _ video _ to _ data ( self, video _ file _ path ) : if self. has _ video _ already _ been _ processed ( video _ file _ path ) : return none cap = cv2. videocapture ( video _ file _ path ) assert cap. isopened ( ) # can open file index = - 1 while true : returned _ value, frame = cap. read ( ) if not returne... | [
-0.3858104646205902,
-0.4773261249065399,
0.7665677070617676,
0.621356725692749,
0.1355866640806198,
-0.04317571595311165,
1.2329128980636597,
-0.48034432530403137,
0.6083832383155823,
-0.33898496627807617,
0.03968610242009163,
0.7515183687210083,
0.7834908366203308,
-0.2250162959098816,
... |
def getprimhashcd ( * args ) : return _ snap. tstrhashf _ md5 _ getprimhashcd ( * args ) | [
1.6016253232955933,
0.19084133207798004,
0.5283905267715454,
0.6511672735214233,
-0.638203501701355,
0.6542873978614807,
0.5043644309043884,
0.5971745848655701,
-0.7211125493049622,
-0.4784374237060547,
0.2029198259115219,
-0.010679499246180058,
-1.0634433031082153,
-0.039154425263404846,
... |
def test _ form _ widgets ( self ) : self. assertin ('django. forms. widgets. textinput ', omnidurationfield. form _ widgets ) self. assertin ('django. forms. widgets. textarea ', omnidurationfield. form _ widgets ) | [
-0.14580737054347992,
0.31379225850105286,
0.28498485684394836,
-0.09157335013151169,
0.4233042001724243,
0.5682079195976257,
-0.3211623728275299,
0.9816007018089294,
0.22568859159946442,
-0.012306895107030869,
-0.6160132884979248,
-0.38275378942489624,
-0.039315707981586456,
1.49756479263... |
def api ( self ) : return self. _ api | [
-0.8454206585884094,
-1.4417701959609985,
-0.024140896275639534,
-0.2148832231760025,
-0.09176202118396759,
0.5694159865379333,
0.699551522731781,
-0.538977861404419,
0.859083354473114,
-1.0105267763137817,
-0.1353675276041031,
0.380972683429718,
-0.26486170291900635,
-0.6917795538902283,
... |
def daemonize ( self, workdir = os. path. dirname ( _ _ file _ _ ) ) : try : pid = os. fork ( ) except oserror, e : raise exception, " % s [ % d ] " % ( e. strerror, e. errno ) if ( pid = = 0 ) : # the first child. # become the leader of the session os. setsid ( ) try : pid = os. fork ( ) # fork a second child. except ... | [
-0.42468541860580444,
-0.44354650378227234,
1.0890027284622192,
0.39599692821502686,
-0.18875645101070404,
-0.6777791976928711,
1.0831705331802368,
-0.729532778263092,
0.24424169957637787,
-0.8780481815338135,
0.13478288054466248,
-0.17708802223205566,
-0.033224716782569885,
0.277494966983... |
def test _ people _ collection _ petl _ view ( tmp _ path, dummy _ people _ collection ) : assert isinstance ( dummy _ people _ collection. petl _ view, petl. table ) assert dummy _ people _ collection. petl _ view. nrows ( ) = = 5 | [
0.04028540104627609,
0.6799626350402832,
0.21861810982227325,
-0.7862730026245117,
0.24438932538032532,
0.6342157125473022,
0.5988719463348389,
-0.18348108232021332,
0.04765371233224869,
-1.1996674537658691,
-0.199917733669281,
-0.15491119027137756,
-0.0857698917388916,
0.23377487063407898... |
def test _ assert _ has _ all _ required _ fields _ valid ( self, get _ required _ field _ names ) : get _ required _ field _ names. return _ value = ['foo ','bar ','baz'] handler = omniformsaveinstancehandler ( name ='save instance ', order = 0, form = self. omni _ form ) handler. assert _ has _ all _ required _ field... | [
-0.5976595282554626,
-0.24787099659442902,
0.5312110185623169,
0.47962990403175354,
0.36779943108558655,
0.772505521774292,
-0.4781937301158905,
1.0621769428253174,
0.1544935405254364,
-0.26246488094329834,
-1.2889825105667114,
-0.5749204754829407,
-0.8626297116279602,
0.39751505851745605,... |
def set _ button _ icon ( self, deck _ id : str, page : int, button : int, icon : str ) - > none : if self. get _ button _ icon ( deck _ id, page, button )! = icon : self. _ button _ state ( deck _ id, page, button ) [ " icon " ] = icon self. _ save _ state ( ) self. update _ button _ filters ( deck _ id, page, button ... | [
-0.26501500606536865,
-0.5080891251564026,
0.3350415527820587,
-0.19334246218204498,
-0.05196824669837952,
-0.11486697196960449,
-0.20937469601631165,
0.24445335566997528,
0.04794374480843544,
0.2754523754119873,
-1.355434775352478,
0.24443566799163818,
0.7778636813163757,
-0.1069102808833... |
def create _ customizable _ cli _ parameters ( customize _ func ) : # pylint : disable = c0103 if customize _ func. func _ name! ='customize': raise valueerror ( " function name must be'customize ', not % r " % ( customize _ func. func _ name, ) ) def do _ call ( cls, * args, * * kwargs ) : # build dictionary containin... | [
-0.4262138307094574,
0.27578628063201904,
0.4429022967815399,
-0.3181288540363312,
-0.1838999092578888,
-1.0246793031692505,
-0.1297304779291153,
-0.2069770246744156,
-0.38712480664253235,
1.1853536367416382,
0.2106962352991104,
0.6935845017433167,
0.1493394821882248,
0.6176939606666565,
... |
def isnode ( self, * args ) : return _ snap. pneanet _ isnode ( self, * args ) | [
-1.3679769039154053,
0.48553305864334106,
0.35919204354286194,
0.8196970820426941,
1.6057907342910767,
0.49219244718551636,
-0.5010879635810852,
-0.5593897700309753,
0.15079882740974426,
0.3865344822406769,
-0.6956659555435181,
-1.2105435132980347,
-0.800921618938446,
0.3643648624420166,
... |
def em _ aud ( ) : global file, mess select _ lb = label ( aud _ win, text ='select file : ', font = cas, bg ='# c3f0fa ', fg ='# fa0505') select _ lb. place ( x = 5, y = 50 ) file _ au = entry ( aud _ win, width = 55, font = cas, relief ='ridge') file _ au. place ( x = 7, y = 75 ) file _ au. focus ( ) def browse ( ) :... | [
0.6899794936180115,
-0.5452426075935364,
1.0684826374053955,
0.3161303997039795,
-0.039855845272541046,
1.086056113243103,
1.8799208402633667,
-0.4087168872356415,
0.23200534284114838,
-0.018569307401776314,
-0.20365464687347412,
1.3077943325042725,
0.1309187412261963,
1.1394596099853516,
... |
def process ( self, line ) : user = self. _ extract _ username _ from _ line ( line ) message = self. _ extract _ message _ from _ line ( line ) if not user or not message : return print ('command - > user : "'+ user +'" message : "'+ message +'"') message _ args = message. split ( ) msg = message _ args [ 0 ] if msg =... | [
0.28648415207862854,
-0.49742016196250916,
0.9630134701728821,
0.9287095069885254,
0.4594722390174866,
-0.21653880178928375,
0.574148416519165,
-0.2758219838142395,
0.3825305998325348,
-0.6625886559486389,
-0.22414617240428925,
0.40420591831207275,
-0.1375632882118225,
0.5484784245491028,
... |
def delete _ database ( self ) : for part _ file in self. file : part _ file. delete _ database ( ) self. delete ( ) | [
0.5199614763259888,
-0.23704949021339417,
0.281692773103714,
0.41274094581604004,
1.2302652597427368,
0.8722932934761047,
0.5765877962112427,
0.8533186316490173,
-0.33573347330093384,
-0.034603726118803024,
-0.1440441757440567,
-0.1945071518421173,
-1.4251632690429688,
1.2765294313430786,
... |
def devicesubmitshellcommandqueue ( device, command _ queue ) : remote _ command _ file _ path ='/ data / local / tmp / adb _ command _ file. sh'if not command _ queue : return with tempfile. namedtemporaryfile ( prefix ='adb _ command _ file _ ', suffix = '. sh') as command _ file : command _ file. write ('#! / bin / ... | [
-0.20590165257453918,
-0.5288101434707642,
0.8303170800209045,
-0.21682915091514587,
0.6476241946220398,
0.6419785618782043,
-0.1351877897977829,
-0.1954805552959442,
-0.40585237741470337,
0.18355655670166016,
-0.08009955286979675,
0.24568361043930054,
0.8032950162887573,
1.470957159996032... |
def redirect _ stream ( system _ stream, target _ stream ) : if target _ stream is none : target _ fd = os. open ( os. devnull, os. o _ rdwr ) else : target _ fd = target _ stream. fileno ( ) os. dup2 ( target _ fd, system _ stream. fileno ( ) ) | [
0.08059275895357132,
-0.7940992116928101,
0.6877094507217407,
0.1656554490327835,
0.27233681082725525,
0.030349496752023697,
0.7889596223831177,
-0.18768563866615295,
0.5378934144973755,
-0.6276043057441711,
0.40340670943260193,
1.9103339910507202,
0.4969561696052551,
0.061303041875362396,... |
def docusign _ parser ( self ) : try : return self. _ docusign _ parser except attributeerror : self. _ docusign _ parser = self. get _ docusign _ parser ( ) return self. _ docusign _ parser | [
-0.1480657160282135,
0.09884785115718842,
0.43691983819007874,
-0.35889166593551636,
-0.7956616282463074,
0.05985351279377937,
0.7754986882209778,
0.1968315690755844,
0.9719851016998291,
-0.8954238891601562,
-0.09555408358573914,
-0.26316723227500916,
-0.2583226263523102,
0.127611935138702... |
def delete _ data ( column, crit ) : conn = sqlite3. connect ( " bsp. db " ) cursor = conn. cursor ( ) sql = " delete from daten where % s =? " % ( column ) cursor. execute ( sql, ( crit, ) ) conn. commit ( ) cursor. close ( ) conn. close ( ) | [
0.9993990659713745,
0.6593906879425049,
0.6759030818939209,
0.7052014470100403,
0.2684568762779236,
0.5825451016426086,
-0.49984562397003174,
0.22874434292316437,
-0.91883784532547,
0.13150601089000702,
0.03559263423085213,
0.15146483480930328,
-0.1345631331205368,
-0.690252423286438,
0.... |
def finnplus ( ) : print ('posting to paidarticle') data = request. json domain = data ['url'] [ : - 10 ] data = pay _ article ( data ['url'], domain ) if not data. get ('payment _ successful') : return make _ response ('payment failed ', 403 ) return jsonify ( data ) | [
-0.5602219700813293,
1.0205079317092896,
0.6883667707443237,
-0.09626206755638123,
0.07653650641441345,
-0.5051671266555786,
-0.6160068511962891,
-0.3713410794734955,
0.2323264330625534,
-0.008463035337626934,
-0.0822165459394455,
-0.03550969809293747,
-0.03979378193616867,
-0.591481626033... |
def guestbook _ key ( guestbook _ name = none ) : return db. key. from _ path ('guestbook ', guestbook _ name or'default _ guestbook') | [
-0.8826234936714172,
0.4611073136329651,
-0.007483143359422684,
1.5818350315093994,
0.2134239226579666,
0.7333327531814575,
-0.14679665863513947,
0.27459096908569336,
-0.9934076070785522,
1.2136142253875732,
-0.5503441095352173,
-0.8311858177185059,
-1.6360909938812256,
-0.7510793805122375... |
def get _ logits ( self, batch _ samples ) : logits = [ ] for i in range ( len ( self. model _ obj. predictors _ ) ) : logits. append ( self. model _ obj. weights _ [ i ] * self. model _ obj. predictors _ [ i ]. predict _ proba ( batch _ samples ) [ :, - 1 ] ) return np. mean ( logits, axis = 0 ) | [
-0.901313841342926,
-0.4968678951263428,
0.63279128074646,
0.1318691074848175,
0.9899284243583679,
0.39714089035987854,
-0.42731913924217224,
0.05473218858242035,
-0.6159480214118958,
0.8310403823852539,
-0.33290621638298035,
0.7998718619346619,
-0.5885828733444214,
-0.02385038323700428,
... |
def format _ dependency _ creator ( connection _ type, to _ deployment ) - > str : return f'{ connection _ type }. { to _ deployment } ' | [
-0.19718778133392334,
-1.1582664251327515,
0.423859566450119,
-0.030437741428613663,
0.36163565516471863,
0.4569575786590576,
-0.6724622845649719,
-0.8503398299217224,
-0.5741507411003113,
0.25862443447113037,
1.6451568603515625,
0.09397444128990173,
0.9307571649551392,
-0.3295068442821502... |
def area _ ratio ( sed _ cube ) : depth, lat, lon = np. shape ( sed _ cube. data ) area _ ratio _ data = np. zeros ( ( depth, lat, lon ) ) for j in range ( 0, lon ) : for i in range ( 0, lat ) : for k in range ( 0, depth ) : area _ ratio _ data [ k, i, j ] = ( sed _ data [ k, i, j ] / a _ total ) area _ ratio _ cube = ... | [
-0.49419599771499634,
-0.20081885159015656,
0.6358420252799988,
-1.3460946083068848,
-0.8164509534835815,
0.10884373635053635,
0.5904242396354675,
0.9289783835411072,
0.6557115912437439,
0.9392688274383545,
0.919127345085144,
-0.1876453012228012,
0.23213554918766022,
0.3763255774974823,
... |
def read _ novel _ info _ in _ scraper ( self ) - > none : raise fallbacktobrowser ( ) | [
-0.9876465797424316,
-0.24703261256217957,
0.35439831018447876,
0.6032253503799438,
0.5844484567642212,
0.5004147291183472,
-0.09780779480934143,
-0.5612267851829529,
-1.2714064121246338,
-0.21205374598503113,
0.7857745885848999,
-0.2239704430103302,
0.8151156306266785,
0.47303226590156555... |
def get _ config _ dir ( self ) : if self. conf. config _ dir and isinstance ( self. conf. config _ dir, str ) : # use config _ dir parameter if defined, and is a string return self. conf. config _ dir elif self. conf. config _ file : # multiple config files ( neutron and agent ) are usually defined if isinstance ( sel... | [
-0.6220545172691345,
-0.7323884963989258,
0.700558066368103,
0.5275325179100037,
-0.20616111159324646,
-0.6857522130012512,
1.1421390771865845,
0.07015097886323929,
-0.739636242389679,
-0.08010796457529068,
0.6638468503952026,
-0.2721744477748871,
-0.5642337203025818,
1.2375885248184204,
... |
def validate _ word _ length ( guess, word _ length ) : # if word is right length if not len ( guess ) = = word _ length : return'word is not the same length'return'' | [
0.9169765710830688,
-0.14381256699562073,
0.3102295398712158,
0.4090726971626282,
-0.27123621106147766,
0.7598885297775269,
-0.0033361082896590233,
-0.02473638579249382,
0.4343595802783966,
1.4555355310440063,
0.2534257173538208,
0.2638370394706726,
-1.2156860828399658,
0.5551683902740479,... |
def native _ server _ client ( native _ server ) : return get _ server _ client ( native _ server ) | [
-0.8574081063270569,
-1.1486856937408447,
-0.1323120892047882,
0.09211593866348267,
-1.1855125427246094,
-0.057629626244306564,
-0.5267975926399231,
-0.7209485769271851,
-1.0075480937957764,
-0.3536369204521179,
-0.38707616925239563,
0.9054393768310547,
-0.37017831206321716,
-0.01025119330... |
def fold _ encryption ( self, key ) : data = { " empty _ dirs " : [ ], " files " : { }, " key " :'' } errors = [ ] ignored = len ( self. currentpath ) + 1 for root, folders, files in os. walk ( self. currentpath ) : if not files and not folders : # empty dir encname = cryptutils. string _ to _ ints ( root [ ignored : ]... | [
-0.8030324578285217,
0.29875805974006653,
0.7457791566848755,
0.33245858550071716,
0.14575406908988953,
0.4215708374977112,
1.7941001653671265,
0.36750760674476624,
-0.32957446575164795,
0.34467628598213196,
-0.8397676944732666,
-0.9294205904006958,
-0.6828700304031372,
1.2490880489349365,... |
def try _ add _ flag ( args, compiler, flag ) : if try _ compile ( compiler, flags = args + [ flag ] ) : args. append ( flag ) | [
0.5321230292320251,
0.804838240146637,
0.2770659625530243,
0.5328512191772461,
1.194730281829834,
0.652880847454071,
-1.2086434364318848,
-0.1537935733795166,
-1.0608391761779785,
-0.4778291583061218,
-0.382625937461853,
0.424184113740921,
-0.6823298931121826,
1.4384791851043701,
0.12894... |
def trove _ dashboard _ pip _ install ( config _ yaml, clone _ dir ) : juju _ log ('pip install from : { } '. format ( clone _ dir ) ) pip _ install ( clone _ dir ) | [
0.0777217298746109,
0.5035237073898315,
0.41860005259513855,
0.7809130549430847,
1.0454456806182861,
0.39270034432411194,
0.6893031001091003,
1.1396130323410034,
-0.39436227083206177,
1.22270929813385,
-0.3032139837741852,
0.14595858752727509,
0.6128501296043396,
-0.5715795755386353,
0.7... |
def getkeyid ( self, * args ) : return _ snap. tintflth _ getkeyid ( self, * args ) | [
0.8402656316757202,
-0.1399640291929245,
0.5151575207710266,
1.0053565502166748,
0.8825480937957764,
0.33608829975128174,
0.07207358628511429,
-0.5230576395988464,
-0.4065001606941223,
-0.6363213062286377,
-0.05503052845597267,
-0.023325618356466293,
-1.5554077625274658,
1.0347923040390015... |
def to _ dict ( self ) : return {'name': self. name,'build - deps': self. build _ deps,'env - vars': self. env _ vars } | [
-0.6903940439224243,
-1.6286540031433105,
0.32696735858917236,
-1.0265777111053467,
-0.3601893186569214,
0.5410667061805725,
-0.1982330083847046,
0.014612558297812939,
-0.2730969786643982,
0.20066618919372559,
-1.5164657831192017,
-0.010921689681708813,
0.43844670057296753,
0.5831467509269... |
def show _ on _ led _ strip ( self ) : try : import adafruit _ ws2801 import adafruit _ gpio. spi as spi except importerror : logger. info ('could not import modules to show messages on led.') return pixel _ count = 160 pixel _ clock = 11 pixel _ dout = 19 pixels = adafruit _ ws2801. ws2801pixels ( pixel _ count, clk =... | [
0.29746702313423157,
0.7525110244750977,
0.5845069885253906,
-1.482266902923584,
0.13510853052139282,
0.7878192067146301,
0.19149379432201385,
-0.2939821779727936,
0.8922455906867981,
0.48255449533462524,
0.1612122505903244,
1.1079583168029785,
-0.0760340541601181,
1.1066862344741821,
-0... |
def _ handle _ vip ( self, address, is _ anycast ) : # given a vip, handle directly rather than processing with a host interface. role = " anycast " if is _ anycast else " vip " try : ipaddrs = ipaddress. objects. filter ( address = str ( address ) ) if ipaddrs. count ( ) > 1 : self. log _ debug ( f " { address } has m... | [
-0.7473599910736084,
-0.3441828489303589,
0.675042986869812,
-0.37242427468299866,
0.4315951466560364,
-0.21414607763290405,
0.598094642162323,
0.24365638196468353,
1.2641698122024536,
0.6798561215400696,
0.012586541473865509,
-0.24119068682193756,
-0.6972014904022217,
-0.3156697452068329,... |
def generate ( self, models, sample, * * kwargs ) : model = ensemblemodel ( models ) return self. _ generate ( model, sample, * * kwargs ) | [
-1.5343127250671387,
-0.416816771030426,
0.16553351283073425,
0.7119247317314148,
-0.2721693515777588,
0.43227821588516235,
-0.2155601531267166,
-0.2794615626335144,
-0.1261960119009018,
-0.010462324135005474,
-0.7746490240097046,
-0.6434082388877869,
-0.6853188276290894,
0.375568777322769... |
def login _ failures ( self, login _ failures ) : self. _ login _ failures = login _ failures | [
-0.7993781566619873,
-0.6360782980918884,
0.26713573932647705,
0.7223585844039917,
0.26980021595954895,
0.9478954672813416,
-0.2995777726173401,
0.2620907127857208,
-0.11291857808828354,
-1.3607535362243652,
-1.116863489151001,
-0.15642929077148438,
-0.38065850734710693,
-0.142907992005348... |
def _ normalizeglifunicode ( element, writer ) : v = element. attrib. get ( " hex " ) # invalid data possibility : no hex value if v : # invalid data possibility : invalid hex value try : d = int ( v, 16 ) v = f " { d : 04x } " except valueerror : return else : return writer. simpleelement ( " unicode ", attrs = dict (... | [
0.3909991681575775,
0.7486069202423096,
0.49827665090560913,
-0.5924637913703918,
-0.4344719350337982,
-0.31143155694007874,
-0.1902659833431244,
1.5763988494873047,
0.14771735668182373,
-0.7987168431282043,
-0.22276602685451508,
-0.3688569962978363,
0.25536054372787476,
-0.266582846641540... |
def _ _ eq _ _ ( self, * args ) : return _ snap. tvoid _ _ _ eq _ _ ( self, * args ) | [
-1.403425693511963,
0.056794386357069016,
-0.04943200573325157,
-0.4617827236652374,
0.7265705466270447,
-0.10165268182754517,
0.19073334336280823,
-0.31400343775749207,
-0.18361373245716095,
1.2530438899993896,
-0.7752736806869507,
-1.194370150566101,
0.2285977154970169,
-0.23699727654457... |
def calc _ lightpath _ state ( self, position _ open : int, position _ close : int ) : self. _ inserted = bool ( position _ close ) self. _ removed = bool ( position _ open ) trans = 0. 0 if self. _ inserted else 1. 0 return lightpathstate ( inserted = self. _ inserted, removed = self. _ removed, output = { self. outpu... | [
0.1076890379190445,
-0.6356083750724792,
0.5165747404098511,
-0.13768422603607178,
-1.3836088180541992,
-0.08357490599155426,
0.4296245872974396,
0.30050429701805115,
0.08577147871255875,
-0.2033345103263855,
-0.5376707911491394,
-0.8938500285148621,
-0.8493385910987854,
-0.229927450418472... |
def test _ prepare _ grant _ uri ( self ) : self. asserturlequal ( prepare _ grant _ uri ( * * self. auth _ grant ), self. auth _ grant _ uri ) self. asserturlequal ( prepare _ grant _ uri ( * * self. auth _ grant _ list _ scope ), self. auth _ grant _ uri _ list _ scope ) self. asserturlequal ( prepare _ grant _ uri (... | [
-0.4805406928062439,
0.3787709176540375,
0.588743269443512,
0.2929078936576843,
0.16522717475891113,
0.18012705445289612,
1.0774019956588745,
0.2659189999103546,
0.7570683360099792,
0.09041611850261688,
0.0392005480825901,
0.6153284311294556,
-0.4212852120399475,
0.33201277256011963,
0.4... |
def tasks _ schema _ json ( self ) : return self. get ('tasks _ schema _ json') | [
-0.694745659828186,
-0.12867172062397003,
0.2878458797931671,
0.39462172985076904,
-0.07951771467924118,
-0.4091755151748657,
0.3526231348514557,
0.21093319356441498,
0.21659985184669495,
0.6662017703056335,
-1.3080923557281494,
0.7792056202888489,
1.1697715520858765,
-0.7391542792320251,
... |
def associated ( associated _ cls : type [ _ m ], attribute _ name : str, cardinality :'cardinality'='one - to - many ', uselist : literal ['auto'] | bool ='auto ', backref _ suffix : str ='_ _ tablename _ _ ', onupdate : str | none = none ) - >'rel [ list [ _ m ] ] | rel [ _ m | none ]': assert cardinality in ('one - ... | [
0.12782491743564606,
0.10321816802024841,
0.8011335730552673,
-0.2529485523700714,
0.07742691040039062,
-0.18816973268985748,
0.5688539743423462,
0.05647389218211174,
0.2110675573348999,
0.13080812990665436,
0.32266685366630554,
0.21695655584335327,
0.8211361169815063,
-0.03998398035764694... |
def ttable _ new ( * args ) : return _ snap. ttable _ new ( * args ) | [
-0.978762149810791,
-0.23203636705875397,
0.41856321692466736,
0.2653736174106598,
-0.4378918707370758,
0.021343285217881203,
0.5396747589111328,
-0.4880397319793701,
-1.8976720571517944,
0.16275210678577423,
-0.714263379573822,
-1.262811541557312,
1.0523909330368042,
0.5699639916419983,
... |
def get _ global _ link _ geometric _ jacobian ( self, link : str, q : arraytype ) - > casadiarraytype : root = self. urdf. get _ root ( ) e = self. get _ global _ link _ position ( link, q ) pdot = cs. dm. zeros ( 3 ) joint _ index _ order = [ ] jacobian _ columns = [ ] for joint in self. urdf. joints : if joint. type... | [
-0.1356915980577469,
-0.34987667202949524,
0.8116487264633179,
0.19387692213058472,
-0.012379100546240807,
0.32900145649909973,
0.6176792979240417,
-0.5348247289657593,
-0.797581672668457,
0.03149118646979332,
0.021925484761595726,
1.2632746696472168,
-0.33838266134262085,
-0.0544614382088... |
def _ get _ projects _ query ( self ) : if not self. projects : return none if isinstance ( self. projects, dict ) : versions _ query = [ bool ( filter = [ term ( project = project ), term ( version = version ) ] ) for project, version in self. projects. items ( ) ] return bool ( should = versions _ query ) if isinstan... | [
-0.3508402407169342,
0.5604164600372314,
0.3382994532585144,
-0.585692822933197,
-0.003550472669303417,
0.6864423155784607,
-1.1663239002227783,
0.14231108129024506,
0.2445606291294098,
0.3938240110874176,
1.1094640493392944,
0.03680936619639397,
-0.7037200331687927,
0.12126629054546356,
... |
def return _ book ( request ) : base = get _ base ( request ) if userprofile. objects. get ( user = request. user ). entity! ='staff': return redirect ('/ home /') if request. method = = " post " : book _ number = request. post. get ( " book _ number " ) library _ card _ num = request. post. get ( " library _ card _ nu... | [
0.42842385172843933,
-0.19231386482715607,
0.8062514066696167,
0.6950798034667969,
-0.5340762138366699,
0.9917885065078735,
0.20244953036308289,
0.626289427280426,
-0.8426946997642517,
0.35487326979637146,
0.7969796061515808,
-0.49611756205558777,
-0.6959829926490784,
0.21204930543899536,
... |
def get _ district ( self, response ) : logger. info ( " in get school. last url : % s ", response. url ) if self. process _ errors ( response, [ teststrings. error ] ) : url = self. url _ provider. get _ institute _ login _ url ( self. student. get ( formkeys. std ( ), " " ) ) yield scrapy. request ( url = url, callba... | [
-1.3883459568023682,
0.3074980676174164,
0.7823542356491089,
-0.1635979264974594,
0.2879500389099121,
-0.5037586688995361,
-0.07787355780601501,
-0.593122661113739,
1.0443273782730103,
-0.887407124042511,
-0.07050715386867523,
0.8359969258308411,
1.1563931703567505,
0.3009238541126251,
0... |
def test _ atomic _ hex _ binary _ min _ length _ 1 _ nistxml _ sv _ iv _ atomic _ hex _ binary _ min _ length _ 2 _ 5 ( mode, save _ output, output _ format ) : assert _ bindings ( schema = " nistdata / atomic / hexbinary / schema + instance / nistschema - sv - iv - atomic - hexbinary - minlength - 2. xsd ", instance ... | [
0.0797518640756607,
-0.589870810508728,
0.4722019135951996,
0.779532790184021,
-0.40210822224617004,
0.2792760133743286,
-0.26737672090530396,
-0.2794622480869293,
-0.4499359130859375,
0.054217152297496796,
-0.9106317758560181,
-0.08903370052576065,
-0.17673808336257935,
0.7862066030502319... |
def mid ( self, * args ) : return _ snap. tstr _ mid ( self, * args ) | [
-0.7472739219665527,
0.162700355052948,
0.39385658502578735,
-0.06019797921180725,
0.21931912004947662,
0.26397770643234253,
-0.01559027936309576,
-0.0032314539421349764,
-0.4692579209804535,
-0.3735451400279999,
-0.1358397901058197,
-0.3602604269981384,
-1.1677770614624023,
0.036071721464... |
def test _ available _ drives ( self ) : with patch ( self. drives _ property, new _ callable = propertymock ) as drives : drives. return _ value = self. drives _ data storagepool = self. _ initialize _ dummy _ instance ( ) self. assertequal ( storagepool. available _ drives, ['010000005000c500551ed1ff0000000000000000 ... | [
0.23881322145462036,
-0.671261191368103,
0.8047376871109009,
-0.8501912355422974,
1.225874423980713,
-0.056130729615688324,
0.6505752801895142,
0.19731129705905914,
-0.39391130208969116,
0.38510754704475403,
-0.5373097062110901,
-0.31694138050079346,
-0.8617029190063477,
0.189896360039711,... |
def hostgroup _ name _ as _ hostname ( self, hostgroup _ name _ as _ hostname ) : self. _ hostgroup _ name _ as _ hostname = hostgroup _ name _ as _ hostname | [
-0.3825477957725525,
-0.48153695464134216,
-0.00023288506781682372,
0.4967862069606781,
-0.9110561609268188,
0.09076764434576035,
0.4405287504196167,
0.5110507011413574,
-1.3192121982574463,
0.15010441839694977,
-0.0008170397486537695,
-1.2746676206588745,
0.20712657272815704,
0.7705470919... |
def mprint ( self, matrix ) : n = len ( matrix ) for i in xrange ( n ) : for j in xrange ( len ( matrix [ i ] ) ) : print matrix [ i ] [ j ], " ", print print " - - - - - - - - - - - - - - - - - - - - - - - - - - " | [
-0.2588474452495575,
0.3207424283027649,
0.9350074529647827,
-0.30717208981513977,
-0.6190308928489685,
-0.14728961884975433,
0.2677707374095917,
-0.2206113487482071,
0.37207022309303284,
0.2601509094238281,
0.1361750215291977,
0.57890385389328,
-0.03391468897461891,
0.8848804235458374,
... |
def add _ session _ to _ request ( request ) : middleware = sessionmiddleware ( ) middleware. process _ request ( request ) request. session. save ( ) | [
-1.2999802827835083,
-0.5467201471328735,
0.42933470010757446,
0.5809035897254944,
0.7628835439682007,
-0.23461146652698517,
-0.26154714822769165,
-0.5050544738769531,
1.6721906661987305,
-0.24002008140087128,
0.12461146712303162,
0.23629853129386902,
0.09259006381034851,
0.231954321265220... |
def addstr ( self, * args ) : return _ snap. tbigstrpool _ addstr ( self, * args ) | [
-0.7505366206169128,
0.2951844334602356,
0.20128872990608215,
0.12294457107782364,
0.8914052844047546,
1.1241050958633423,
1.2277053594589233,
-0.5035834908485413,
-1.1297816038131714,
-0.694796621799469,
-0.13276664912700653,
-0.02929905243217945,
-1.3853667974472046,
0.25046271085739136,... |
def read _ gravity ( self ) : x, y, z = self. _ read _ vector ( self. bno055 _ gravity _ data _ x _ lsb _ addr ) return ( x / 100. 0, y / 100. 0, z / 100. 0 ) | [
-0.07164563983678818,
0.3939984440803528,
0.6467384696006775,
0.13411420583724976,
0.15194351971149445,
0.8318678736686707,
0.16446326673030853,
-1.1120775938034058,
-1.3492379188537598,
0.4989336133003235,
0.02509557455778122,
0.3611707389354706,
-0.9631685614585876,
-0.1354072391986847,
... |
def point _ control ( self, dnorth, deast, b _ stop = false, gotofunction = none, arrive _ distance = 4 ) : if gotofunction is none : gotofunction = self. vehicle. simple _ goto currentlocation = self. vehicle. location. global _ relative _ frame targetlocation = get _ location _ metres ( currentlocation, dnorth, deast... | [
-0.8620679974555969,
-0.3145480751991272,
0.5363485813140869,
-0.3564404547214508,
0.6699721217155457,
0.31477078795433044,
-0.26633745431900024,
-0.2782203257083893,
-0.5015396475791931,
0.521965742111206,
0.015648020431399345,
0.10383997857570648,
-0.2280322164297104,
-0.790441632270813,... |
def _ _ init _ _ ( self, * args ) : _ snap. tintvinthi _ swiginit ( self, _ snap. new _ tintvinthi ( * args ) ) | [
0.4884338080883026,
-0.054753366857767105,
0.3564760982990265,
0.6831677556037903,
0.1047150269150734,
0.037798669189214706,
0.18795521557331085,
-0.09702941030263901,
-1.029772162437439,
0.6801207065582275,
-0.6797003149986267,
-0.2060426026582718,
-1.6827392578125,
0.3403487205505371,
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.