text stringlengths 25 2.19k | embedding listlengths 768 768 |
|---|---|
def clean _ data ( df _ housing, df _ public _ schools, df _ private _ schools, df _ hospitals, df _ population ) : df _ dcmetro = clean _ homes _ data ( df _ housing ) df _ dcmetro = merge _ data ( df _ dcmetro, df _ public _ schools, df _ private _ schools, df _ hospitals ) df _ dcmetro = merge _ population _ data ( ... | [
-0.7676685452461243,
1.1206908226013184,
0.46881935000419617,
0.19284945726394653,
0.4103507399559021,
0.5696451663970947,
0.010414991527795792,
0.05130365118384361,
-0.7298730611801147,
0.18305926024913788,
0.3080505132675171,
0.4634689688682556,
0.21239477396011353,
-0.10642513632774353,... |
def _ _ init _ _ ( self, fields = none ) : super ( ). _ _ init _ _ ( fields ) self ['kind'] ='upload ' | [
-0.028365379199385643,
1.1546392440795898,
0.5949780941009521,
-0.2547927498817444,
0.5557168126106262,
0.01916399970650673,
-0.2538970112800598,
0.15947090089321136,
-0.4793885052204132,
0.2700583040714264,
-0.8048750162124634,
0.04488113150000572,
-0.09671556204557419,
0.5073511004447937... |
def versions _ data ( self ) : return self. get ('versions _ data') | [
-0.34298810362815857,
0.4167521595954895,
0.10963118821382523,
0.16690416634082794,
0.37522831559181213,
1.255415678024292,
-0.8470542430877686,
-0.3472456634044647,
0.13202036917209625,
0.26142045855522156,
-0.6344801187515259,
0.024195542559027672,
0.45752114057540894,
-0.068359620869159... |
def accel _ volt _ to _ lambda ( accel _ volt ) : return 12. 25e - 10 / np. sqrt ( accel _ volt ) * 1 / np. sqrt ( 1 + ( - e * accel _ volt / ( 2 * m0 * c * c ) ) ) | [
0.767619788646698,
-1.3440650701522827,
0.3527204692363739,
-0.8956291675567627,
-0.08709629625082016,
0.5525477528572083,
0.0750526711344719,
0.29584577679634094,
0.920246958732605,
0.217949777841568,
0.16873890161514282,
0.6896390318870544,
0.5825721621513367,
0.21737150847911835,
0.26... |
def punctuation _ remover ( doc : str ) - > str : return str ( doc ). translate ( translation ) | [
-0.09819620847702026,
-0.822936475276947,
0.030893826857209206,
-0.18530641496181488,
-1.6647226810455322,
-0.13553251326084137,
-0.019087260589003563,
1.1758216619491577,
-0.4430826008319855,
0.23836061358451843,
0.24565936625003815,
-0.5979945659637451,
-0.32791513204574585,
-0.686553180... |
def begni ( self, * args ) : return _ snap. pngraph _ begni ( self, * args ) | [
0.503622829914093,
0.7091306447982788,
0.4739343225955963,
0.9281145334243774,
1.175690770149231,
-1.094769835472107,
0.03281477466225624,
-1.0651055574417114,
-0.46665576100349426,
-0.45249292254447937,
-1.187488317489624,
0.12407035380601883,
-0.772623598575592,
-0.26921239495277405,
0... |
def _ _ eq _ _ ( self, * args ) : return _ snap. tngraphmpnodei _ _ _ eq _ _ ( self, * args ) | [
-1.0171070098876953,
-0.013259412720799446,
-0.19332179427146912,
-0.6674565076828003,
0.5101603269577026,
-0.06252536177635193,
0.6445422768592834,
-0.6102983355522156,
-0.9053359627723694,
0.53347247838974,
-0.45442190766334534,
-0.5831610560417175,
-0.5024195909500122,
0.116559982299804... |
def store _ stars ( self, out _ stem, out _ dir ) : # star file for the tomograms tomos _ star = sub. star ( ) tomos _ star. add _ column ('_ omtomosegmentation') # tomograms loop for i, tomo _ fname in enumerate ( self. _ _ tomos. keys ( ) ) : # pickling the tomogram tomo _ dir = out _ dir +'/ tomo _'+ str ( i ) if no... | [
-0.49114885926246643,
0.22526642680168152,
0.5346612334251404,
0.1886986494064331,
-0.49876242876052856,
-0.07681775838136673,
0.671796977519989,
0.749164342880249,
0.4190616309642792,
0.1799405962228775,
-0.5303621888160706,
0.025979481637477875,
0.11666151136159897,
0.40084996819496155,
... |
def _ determine _ north _ ( current _ grid, index _ i, index _ j, current _ size ) : # local declarations - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - north = false # variable to store if north cell exist or not # local statements - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - ... | [
-0.31359976530075073,
-0.7080939412117004,
0.5838647484779358,
0.8471061587333679,
-0.6939051747322083,
0.07003650069236755,
0.07383904606103897,
-0.7221860289573669,
-0.8784863948822021,
0.568973958492279,
0.10474181175231934,
0.14110219478607178,
-0.714319109916687,
1.3514161109924316,
... |
def _ _ call _ _ ( self ) : return self. _ agent ( ) | [
-0.579166054725647,
-1.1167950630187988,
0.26106715202331543,
-0.7716932892799377,
0.11004255712032318,
-0.8276940584182739,
-0.294329434633255,
-0.5047645568847656,
0.5153146386146545,
-0.6613144874572754,
-0.0576225109398365,
0.35317128896713257,
-0.10952671617269516,
-0.8366864323616028... |
def _ _ lt _ _ ( self, * args ) : return _ snap. tintprstrhi _ _ _ lt _ _ ( self, * args ) | [
0.14502915740013123,
-0.5718421936035156,
0.3964346945285797,
-0.719973623752594,
-0.008300240151584148,
-0.10147567838430405,
-0.3645235002040863,
-1.7688710689544678,
-0.8429419994354248,
-0.7794176340103149,
-0.8449131846427917,
-0.3970826268196106,
-1.3590575456619263,
0.96999549865722... |
def validmove ( self, destcol, col, card ) : # columns out of bounds if destcol < 0 or destcol > 9 or col < 0 or col > 9 or destcol = = col or len ( self. board [ col ] ) < 1 : return false # destination can't take the specified card if len ( self. board [ destcol ] ) > 0 : if self. board [ destcol ] [ - 1 ] [ 0 ]! = c... | [
-0.3725584149360657,
-0.0803399384021759,
1.15609872341156,
-0.07470963150262833,
-0.9776296019554138,
0.5560780167579651,
-0.274771124124527,
-0.1461559236049652,
-0.3899645507335663,
0.6234637498855591,
-0.3202075958251953,
0.21172687411308289,
-0.4310919940471649,
-0.5066159963607788,
... |
def tungraph _ new ( * args ) : return _ snap. tungraph _ new ( * args ) | [
-1.011253833770752,
-0.3265136182308197,
0.19326579570770264,
-0.29704928398132324,
-0.7020846009254456,
-0.4589139521121979,
0.030940404161810875,
0.06284444779157639,
-0.23905916512012482,
-0.16961239278316498,
-0.7864980697631836,
-0.24563591182231903,
0.38016068935394287,
0.08494346588... |
def test _ compile _ regex _ with _ phone _ number _ regex ( ) : rule _ obj = rule ( 1, " ^ ( \ d { 3 } ) - ( \ d { 3 } ) - ( \ d { 4 } ) $ ", " a ", " b ", 2 ) actual = rule _ obj. _ coerce _ source _ matchpattern _ as _ compiled _ regex ( ) expected = rule ( 1, re. compile ( " ^ ( \ \ d { 3 } ) - ( \ \ d { 3 } ) - ( ... | [
0.04122678190469742,
-0.5975850820541382,
0.6700522899627686,
0.21243706345558167,
0.6231160759925842,
0.22536253929138184,
-0.07681258767843246,
0.5990487337112427,
0.7938644289970398,
-1.3725823163986206,
-0.8191723227500916,
0.06241125240921974,
0.4361952841281891,
-0.20600678026676178,... |
def getsechashcd ( self, * args ) : return _ snap. tbigstrpool _ getsechashcd ( self, * args ) | [
1.0919932126998901,
0.3104453980922699,
0.3850322663784027,
0.054021112620830536,
0.3778507113456726,
0.1890755295753479,
1.3559887409210205,
0.42745277285575867,
-0.7982484102249146,
-1.0715742111206055,
-0.26423415541648865,
0.33079302310943604,
-0.8506656885147095,
0.5290795564651489,
... |
def children ( self ) : return self. children _ ms | [
0.1716413050889969,
-0.3509807586669922,
0.3906826972961426,
0.3282257318496704,
-0.5314934253692627,
0.7549511790275574,
0.5325964093208313,
-0.4557388722896576,
0.004437645431607962,
-1.4977569580078125,
-0.9036356806755066,
-0.01187365222722292,
-0.11978457123041153,
0.4025174081325531,... |
def get _ by _ symbol ( symbol ) : s = symbol. strip ( ). upper ( ) return element. _ elements _ by _ symbol [ s ] | [
-0.7211185693740845,
0.025307023897767067,
-0.03469179570674896,
-0.051961351186037064,
0.13126803934574127,
-0.9992244839668274,
0.890095591545105,
-0.5663100481033325,
0.2960345447063446,
-0.47764599323272705,
-0.1440904140472412,
1.1214218139648438,
0.4312443435192108,
-0.04685551300644... |
def getdat ( self, * args ) : return _ snap. tstrintprhi _ getdat ( self, * args ) | [
0.7875032424926758,
0.06761826574802399,
0.44757187366485596,
-1.3256025314331055,
0.8399034142494202,
0.9962983727455139,
-0.2963402271270752,
-0.4252833127975464,
-1.6178715229034424,
-0.24452969431877136,
0.11952192336320877,
-0.07410822808742523,
-0.8696397542953491,
-0.441346257925033... |
def first _ deploy ( ) : # if we're on the local machine, there's no point in cloning # the project, because it's already been cloned. otherwise # the user couldn't run this file if env. run = = run : # we're doing this to filter out the hosts that have # already been setup and deployed to with settings ( warn _ only =... | [
0.6892071962356567,
0.1827390193939209,
0.4385279417037964,
0.8394891619682312,
0.7457631230354309,
0.5562623143196106,
0.6396811604499817,
-0.8151919841766357,
-0.009275986813008785,
0.23925632238388062,
0.4585999846458435,
0.7825562953948975,
0.006767370272427797,
0.3826824724674225,
-... |
def turn _ off ( self ) : hub. my _ pages. smartplug. set ( self. _ id,'off') hub. my _ pages. smartplug. wait _ while _ updating ( self. _ id,'off') self. update ( ) | [
-0.7546343207359314,
-0.6639297008514404,
0.3682233691215515,
0.2698225677013397,
0.3855912387371063,
0.49997928738594055,
-0.050505004823207855,
1.3718327283859253,
0.2777732014656067,
-0.5996474027633667,
-0.24669179320335388,
0.2772912085056305,
-1.2170207500457764,
-0.01238173618912696... |
def onnx _ rename _ names ( model, strategy ='simple ', recursive = true, verbose = 0, flog = print, counts = none, replace = none, taken = none ) : counts = counts or {'init': 0,'node': 0,'result': 0 } replace = replace or { } taken = taken or set ( ) graph = model. graph if hasattr ( model,'graph') else model for obj... | [
0.12145289778709412,
-0.27561864256858826,
0.8934875726699829,
-0.016298139467835426,
-0.991412341594696,
-0.8704749345779419,
0.2997151017189026,
-0.6314563751220703,
-0.28558167815208435,
0.38830819725990295,
-0.6410471200942993,
0.0018214244628325105,
0.6120913028717041,
-0.046840731054... |
def get _ impute _ create ( self, impute _ cols, nonimpute _ cols ) : # key columns and date column query = " select % s " % ", ". join ( map ( str, self. groups. values ( ) ) ) # columns with imputation filling as needed query + = self. _ get _ impute _ select ( impute _ cols, nonimpute _ cols ) # imputation starts fr... | [
-0.517830491065979,
0.4422353506088257,
0.5142773389816284,
-0.38428181409835815,
0.6851236820220947,
0.10318122059106827,
-0.08800233900547028,
-0.7025328278541565,
-0.9936535954475403,
0.7416562438011169,
0.43556642532348633,
0.02173767052590847,
0.15590542554855347,
0.021323444321751595... |
def getch ( self, * args ) : return _ snap. trstr _ getch ( self, * args ) | [
0.4125348627567291,
0.7278958559036255,
0.305908203125,
0.3237459361553192,
0.6694468855857849,
0.6971855163574219,
1.165915846824646,
0.08309326320886612,
-0.8413797616958618,
-0.26563629508018494,
-0.04963632673025131,
-0.7956241965293884,
0.10053198039531708,
-0.9308544993400574,
1.04... |
def test _ kill _ statistics _ from _ content _ empty ( self ) : content = self. load _ resource ( file _ kill _ statistics _ empty ) kill _ statistics = killstatistics. from _ content ( content ) self. assertisnone ( kill _ statistics ) | [
0.8017606139183044,
-0.5084514021873474,
0.3372494578361511,
-0.11046748608350754,
0.6833217144012451,
0.6346280574798584,
-0.3855139911174774,
-0.75022953748703,
-0.36042600870132446,
-0.38452887535095215,
-0.16912628710269928,
-0.35039857029914856,
0.8129562735557556,
-1.0323820114135742... |
def is _ installed ( spack _ path, package ) : name = package. split ('@') [ 0 ] spack _ bin = os. path. join ( spack _ path,'bin ','spack') cmd = [ spack _ bin,'find ','- - show - full - compiler ','- v'] code, output, error = run _ cmd _ output ( cmd ) installed _ packages = { } for line in output. split ('\ n') : li... | [
0.6519663333892822,
0.24274864792823792,
0.9892953634262085,
-0.12537120282649994,
-0.20245005190372467,
-0.7742810845375061,
-0.03167811408638954,
0.7544819712638855,
-0.08358508348464966,
0.17042286694049835,
-0.9444717168807983,
-0.03432811424136162,
-0.6205300688743591,
0.3852445483207... |
def contexts ( cls ) : if not hasattr ( mongo. _ self,'contexts') : mongo. _ self. contexts = [ ] return mongo. _ self. contexts | [
-0.4721512496471405,
0.36853155493736267,
0.6874566078186035,
0.036787502467632294,
0.5167831182479858,
-0.08164893090724945,
0.7008057832717896,
-0.6142817735671997,
1.0664738416671753,
0.0871235728263855,
-0.9041568040847778,
-0.2948121130466461,
-0.3909093737602234,
0.6810500025749207,
... |
def cut _ path ( path ) : filename = path [ path. rfind ( " / " ) + 1 : ] return filename | [
0.043846406042575836,
-0.5639158487319946,
0.6932770013809204,
0.7446979284286499,
-0.6107410788536072,
0.6194494962692261,
1.259696125984192,
-0.5123315453529358,
-0.07335119694471359,
0.7397060394287109,
0.8699581623077393,
-0.05607735365629196,
-0.2244572639465332,
-1.6255394220352173,
... |
def _ send _ events ( self, add _ events _ task ) : # todo : re - enable not actually sending an event if it is empty. however, if we turn this on, it # currently causes too much error output and the client connection closes too frequently. we need to # actually send some sort of application level keep alive. # if add ... | [
-0.7900010347366333,
0.17638418078422546,
0.7358621954917908,
0.4864990711212158,
0.6858117580413818,
0.23997539281845093,
0.045414477586746216,
-0.4265097975730896,
0.09357024729251862,
0.7106590867042542,
-0.10506103932857513,
-0.29378798604011536,
-1.0734258890151978,
0.0818342939019203... |
def load _ template ( self, template : str ) - > template : env = dict ( trim _ blocks = true, lstrip _ blocks = true, keep _ trailing _ newline = false ) jinja2 _ ext = ". jinja2 " if not template. endswith ( jinja2 _ ext ) : self. _ log. error ( " template file name must end with % s " % jinja2 _ ext ) raise valueerr... | [
-0.0002287092211190611,
-0.5327184796333313,
0.764029860496521,
0.11271806061267853,
-1.7922616004943848,
0.5524010062217712,
-0.12376021593809128,
-0.14813843369483948,
-0.592846691608429,
-0.5116540789604187,
0.4097426235675812,
-0.3580649495124817,
-0.4388608932495117,
0.028777122497558... |
def traverse _ tree ( go _ tree, tuple _ list, current _ node ) : go _ node = go _ tree [ current _ node ] if not go _ node. parents : return for parent in go _ node. parents : tuple _ list. append ( ( current _ node, parent ) ) traverse _ tree ( go _ tree, tuple _ list, parent ) | [
-1.213274598121643,
1.1342580318450928,
0.4628559648990631,
-0.24135884642601013,
0.5175239443778992,
0.06392508745193481,
-0.1657947599887848,
0.7300199270248413,
-0.9316748380661011,
1.2639105319976807,
0.048313748091459274,
-0.7506207227706909,
-0.5204976201057434,
0.9640571475028992,
... |
def _ _ init _ _ ( self ) : # 小 大 self. head = node ( float ( " - inf " ) ) self. tail = node ( float ( " inf " ) ) | [
0.5517683029174805,
0.3259339928627014,
0.5088284015655518,
0.11181654781103134,
-0.154804065823555,
0.7100052833557129,
-0.026106856763362885,
0.5872357487678528,
0.13736623525619507,
-0.137625053524971,
-1.0847212076187134,
0.7816457152366638,
-0.440437376499176,
0.937868595123291,
0.1... |
def test _ remove _ stop _ words _ all _ words ( self ) : expected = [ ] actual = remove _ stop _ words ( ['the ','a ','is'], removestopwordstest. stop _ words ) self. assertequal ( expected, actual ) | [
-0.30934688448905945,
-0.29514166712760925,
0.38633936643600464,
0.4502437710762024,
0.43708527088165283,
-0.15771062672138214,
-0.6019245982170105,
1.559826374053955,
0.1703500598669052,
0.4087214767932892,
-0.42862632870674133,
-0.46485912799835205,
-0.6835418939590454,
0.292988836765289... |
def check _ client _ key ( self, client _ key ) : lower, upper = self. client _ key _ length return ( set ( client _ key ) < = self. safe _ characters and lower < = len ( client _ key ) < = upper ) | [
-0.1497887223958969,
-0.1266433745622635,
0.27619823813438416,
-0.38323652744293213,
-1.0641623735427856,
0.8401175737380981,
-0.18978793919086456,
-1.3465434312820435,
-0.2800033986568451,
1.0728858709335327,
-0.14845816791057587,
0.5906209945678711,
-1.2570692300796509,
0.304725497961044... |
def exit ( self ) : self. backend _ object. connection _ pool. close _ connection ( self. backend _ object, req _ number = self. req _ number, mode = " download ", thread _ number = self. thread _ number, uid = " get " ) | [
-0.24905164539813995,
-0.8719068765640259,
0.725638747215271,
-0.24213942885398865,
0.942349910736084,
0.4970149099826813,
0.0132357282564044,
-0.0782904103398323,
-0.9211947917938232,
-0.2639031708240509,
0.4742112457752228,
1.012524127960205,
-1.361592173576355,
0.3217840790748596,
0.8... |
def _ look _ for _ missing _ candidates ( self ) : found _ pools = set ( ) if isinstance ( self. _ picked _ candidates, dict ) : for pool, candidates in self. _ picked _ candidates. iteritems ( ) : if len ( candidates ) > 0 : found _ pools. add ( pool ) else : for candidate in self. _ picked _ candidates : found _ pool... | [
-0.6077458262443542,
-0.4173344671726227,
0.4492301642894745,
-0.5295246243476868,
0.33989620208740234,
0.695580780506134,
0.3510567247867584,
-0.5586800575256348,
-0.4229922890663147,
-0.4761975109577179,
0.3824477791786194,
-0.09345289319753647,
0.12238089740276337,
0.1851872056722641,
... |
def test _ form _ widgets ( self ) : self. assertin ('django. forms. widgets. datetimeinput ', omnidatetimefield. form _ widgets ) | [
-0.160712331533432,
0.47347378730773926,
0.24466535449028015,
0.36208653450012207,
0.3437642455101013,
1.0261188745498657,
-0.6882168650627136,
0.8050972819328308,
0.10055948793888092,
-0.6641383171081543,
-1.183687686920166,
-0.7984604835510254,
-0.07764396071434021,
0.9939054846763611,
... |
def loadconnliststr _ pungraph ( * args ) : return _ snap. loadconnliststr _ pungraph ( * args ) | [
-0.9186224341392517,
0.4480445384979248,
0.20422080159187317,
0.6539021730422974,
-1.0285115242004395,
-0.9932262897491455,
-0.5285733938217163,
0.12187173962593079,
0.3680097162723541,
0.23872365057468414,
-0.6027504205703735,
-0.6476162672042847,
-0.9240015149116516,
0.052294716238975525... |
def setup ( self ) : self. caption = " mirra template " # window name self. size = 640, 480 # window size self. pos = 100, 100 # window top left location self. fullscreen = 0 # if fullscreen is on it will overwrite your pos and size to match the display's resolution self. framerate = 15 # set refresh framerate | [
0.3678988814353943,
-0.7919983267784119,
0.46938565373420715,
0.2590598165988922,
-0.597591757774353,
-0.4609895944595337,
0.3709515333175659,
-0.23101459443569183,
0.4994511604309082,
-0.1799890697002411,
-0.4838942885398865,
0.050034452229738235,
-0.45826876163482666,
1.2617155313491821,... |
def _ extract _ extra _ params ( self, extra _ params ) : kwargs = { } for arg in extra _ params. groups ( ) : if arg and " = " in arg : k, v = arg. split ( " = ", 1 ) kwargs [ k. strip ( ) ] = v. strip ( ) return kwargs | [
-0.4265751838684082,
-0.04705151170492172,
0.45923912525177,
-0.6227091550827026,
-0.7995451092720032,
-0.3214801549911499,
-0.741711437702179,
0.3363955020904541,
-0.10312346369028091,
1.1640546321868896,
-0.9167835712432861,
0.19789284467697144,
-0.37001073360443115,
1.0737099647521973,
... |
def test _ start _ next _ task ( self ) : # setup service _ dict = { } service _ id = str ( uuid. uuid4 ( ) ) corr _ id = str ( uuid. uuid4 ( ) ) orig _ corr _ id = str ( uuid. uuid4 ( ) ) service _ dict [ service _ id ] = {'corr _ id': corr _ id,'original _ corr _ id': orig _ corr _ id,'pause _ chain': true,'kill _ ch... | [
0.43633076548576355,
0.606013298034668,
0.7748115062713623,
0.39327433705329895,
0.269694060087204,
0.43629005551338196,
0.3610558807849884,
-0.1369420737028122,
-0.5144335031509399,
-0.46195897459983826,
-0.4289959967136383,
0.9155272245407104,
-0.2825171649456024,
0.11789841949939728,
... |
def test _ wireup ( self ) : # just a comment of the line below # # it is possible to set the error which is going to be shown when # # the test is not fulfilled... like this next _ one # # # self. assertisinstance ( dict001, dict,'first argument is not a dictionary') # # # it is possible to do the same as below with t... | [
-0.3256244957447052,
0.11059063673019409,
0.6676182746887207,
0.08080907166004181,
1.3284825086593628,
0.705855131149292,
0.6782810091972351,
-0.9238144755363464,
0.8808368444442749,
-1.1236149072647095,
0.9089502692222595,
0.34839215874671936,
-0.6249613165855408,
-0.20733590424060822,
... |
def test _ can _ delete _ post _ of _ community _ if _ mod ( self ) : user = make _ user ( ) community _ creator = make _ user ( ) community = make _ community ( creator = community _ creator ) user. join _ community _ with _ name ( community _ name = community. name ) community _ creator. add _ moderator _ with _ user... | [
0.582271158695221,
0.09003342688083649,
0.640716552734375,
0.9227477312088013,
0.26217377185821533,
0.25881969928741455,
0.4211978614330292,
-0.20885807275772095,
0.035238977521657944,
-0.40692245960235596,
-0.4673125147819519,
-0.6964194178581238,
-0.42164841294288635,
0.18723373115062714... |
def _ _ eq _ _ ( self, * args ) : return _ snap. tlflt _ _ _ eq _ _ ( self, * args ) | [
-0.700426459312439,
-0.36268728971481323,
-0.0522652342915535,
-1.1757360696792603,
0.32329803705215454,
0.4472312927246094,
0.5712615251541138,
-0.09727539122104645,
-0.4381192922592163,
0.03704966604709625,
-1.2976551055908203,
-1.6828585863113403,
0.1153016984462738,
1.3336141109466553,... |
def test _ prepare _ token _ request ( self ) : self. assertformbodyequal ( prepare _ token _ request ( * * self. grant _ body ), self. auth _ grant _ body ) self. assertformbodyequal ( prepare _ token _ request ( * * self. pwd _ body ), self. password _ body ) self. assertformbodyequal ( prepare _ token _ request ( * ... | [
-0.7430568933486938,
-0.06806284934282303,
0.5076087117195129,
-0.29879143834114075,
0.5068758130073547,
0.13628675043582916,
-0.6244925260543823,
-0.6022032499313354,
0.3839598596096039,
-0.7571991682052612,
-0.3209514915943146,
0.5852512717247009,
0.2913113534450531,
0.26655447483062744,... |
def tch _ getusfromyuascii ( * args ) : return _ snap. tch _ getusfromyuascii ( * args ) | [
0.515704870223999,
0.6877520084381104,
0.2986356019973755,
0.15299850702285767,
0.11614341288805008,
0.28820621967315674,
0.6035247445106506,
-0.24851322174072266,
-0.6433582901954651,
0.04772116243839264,
-0.7768617272377014,
0.5135760307312012,
0.3335708975791931,
-0.32586246728897095,
... |
def lines _ intersection ( ab, cd ) : a, b, c, d = ab. a, ab. b, cd. a, cd. b epsilon = 0. 01 v1 = b - a n = point ( - v1. y, v1. x ) * ( 1 / norm ( v1 ) ) nc = dot ( c - a, n ) nd = dot ( d - a, n ) if abs ( nd - nc ) < epsilon : return none return c + ( ( 0 - nc ) / ( nd - nc ) ) * ( d - c ) | [
1.456094741821289,
-0.5724101066589355,
0.8937318921089172,
-0.9468485713005066,
0.3956100344657898,
0.29032814502716064,
-0.25936204195022583,
-0.39839062094688416,
-0.07320485264062881,
0.6058244109153748,
1.186785340309143,
-0.3502674698829651,
0.19505880773067474,
-0.47711271047592163,... |
def start _ game ( board _ size = 50, direction ='up') : snake = snake ( board _ size ) # rgb colors ( red, green, blue ) color _ apple = ( 0, 255, 0 ) # green color _ snake = ( 0, 0, 255 ) # blue color _ board = ( 255, 255, 255 ) # white # create board ( board size is position of 10x10 pixels ) pygame. init ( ) board ... | [
0.11581097543239594,
0.45709359645843506,
1.0380899906158447,
-0.29204779863357544,
-0.14129285514354706,
0.17623817920684814,
0.7387180924415588,
-0.39322927594184875,
0.5698636174201965,
0.7852974534034729,
-0.3050965666770935,
0.3114893436431885,
0.02326950617134571,
0.6999078392982483,... |
def _ config _ server ( self ) : # create shared roster group via ejabberctl. cmd ='srg _ create % s % s % s % s % s'% ( util. escape _ shell ( self. _ shared _ group ), util. escape _ shell ( self. hostname ), util. escape _ shell ( self. _ shared _ group ), util. escape _ shell ( self. _ shared _ group ), util. escap... | [
-0.8424139618873596,
0.6996625065803528,
0.7157229781150818,
-0.43943506479263306,
0.35646551847457886,
0.17395229637622833,
0.5754759907722473,
0.21379201114177704,
-0.7351564764976501,
0.27224063873291016,
-0.7724670171737671,
0.18719591200351715,
-0.825885534286499,
0.8229905962944031,
... |
def test _ valid _ nonce ( self ) : nonce ='0123456789012345678901234567890123456789012345678901234567890123'assert signaturevalidator ( self. lti _ consumer ). check _ nonce ( nonce ) | [
1.1376489400863647,
-0.001220477046445012,
0.6573929190635681,
0.5450308918952942,
0.4026353657245636,
-0.02571941167116165,
0.11276417225599289,
0.16281554102897644,
-0.018594451248645782,
-0.24978701770305634,
-0.8393713235855103,
-0.8401471376419067,
-1.360491156578064,
0.22890856862068... |
def getipv6accesslist ( self, access _ list _ name ) : query ='' conn = self. get _ connection ( ) headers = {'content - type':'application / json ','authorization':'a10 % s'% self. sessionid } conn. request ('get ', self. get _ path ( ) +'/'+ str ( access _ list _ name ). replace ( " / ", " % 2f " ) + query, headers =... | [
-0.8376317024230957,
-0.8244768977165222,
0.8091731071472168,
0.08359906822443008,
-0.915239155292511,
-1.0777608156204224,
-0.5567232966423035,
0.014669589698314667,
0.6566248536109924,
1.2995543479919434,
-0.14469121396541595,
0.09515025466680527,
-0.1418655663728714,
-0.0925740525126457... |
def test _ cant _ retrieve _ foreign _ post _ status ( self ) : user = make _ user ( ) foreign _ user = make _ user ( ) headers = make _ authentication _ headers _ for _ user ( user ) post _ text = make _ fake _ post _ text ( ) post = foreign _ user. create _ public _ post ( text = post _ text, is _ draft = true ) url ... | [
0.461440771818161,
1.0459179878234863,
0.6384631395339966,
0.7740360498428345,
0.1706492006778717,
0.953353762626648,
-0.473114550113678,
-0.8241782188415527,
-0.22999651730060577,
-1.5018478631973267,
-0.45395582914352417,
-0.3180849552154541,
-0.2776215076446533,
0.09487177431583405,
0... |
def hash _ onnx _ object ( obj, max _ size ) : m = hashlib. sha256 ( ) if hasattr ( obj,'op _ type') : # an operator. m. update ( obj. op _ type. encode ('ascii') ) m. update ( str ( len ( obj. input ) ). encode ('ascii') ) m. update ( str ( len ( obj. output ) ). encode ('ascii') ) if hasattr ( obj,'attribute') : for ... | [
0.45853763818740845,
-0.176172137260437,
0.7660149931907654,
0.055126920342445374,
-1.2312926054000854,
-0.39472824335098267,
-0.5531208515167236,
-0.7682676911354065,
0.5259986519813538,
-0.09033536165952682,
0.032245464622974396,
-0.33320149779319763,
0.5012516975402832,
-0.6994777321815... |
def newfromjsondict ( data ) : if'status'in data : from twitter import status # have to do the import here to prevent cyclic imports in the _ _ init _ _. py # file status = status. newfromjsondict ( data ['status'] ) else : status = none return user ( id = data. get ('id ', none ), name = data. get ('name ', none ), sc... | [
-0.19738468527793884,
-0.6991785168647766,
0.8038634061813354,
-0.2345861941576004,
-0.5560732483863831,
-0.10557253658771515,
-0.3362750709056854,
-0.16335104405879974,
0.7798379063606262,
-0.19279979169368744,
-1.170303463935852,
-0.44912469387054443,
0.25706130266189575,
0.4822032749652... |
def getnumfnm ( * args ) : return _ snap. tstr _ getnumfnm ( * args ) | [
-0.6935060620307922,
0.5095081329345703,
0.09156976640224457,
0.8484151363372803,
1.1739743947982788,
-1.7808419466018677,
0.494859516620636,
-0.12494533509016037,
-0.4735443592071533,
-1.1677980422973633,
-1.1643379926681519,
-0.10001958906650543,
0.45705658197402954,
-0.501039445400238,
... |
def cmdresult ( self, args ) : cmdid, cmdin, cmdout, cmderr = self. popen ( args ) result = cmdout. read ( ) result + = cmderr. read ( ) cmdin. close ( ) cmdout. close ( ) cmderr. close ( ) status = cmdid. wait ( ) return status, result | [
-0.6633477807044983,
-0.8601238131523132,
0.6870350241661072,
-0.6793212294578552,
0.46594566106796265,
-0.035598140209913254,
-0.2777685821056366,
-0.12329459190368652,
-0.6586681008338928,
-0.2757101058959961,
-0.4099276661872864,
-1.0446799993515015,
-0.5111175179481506,
0.2529631555080... |
def _ create _ examples ( self, lines, set _ type ) : examples = [ ] for ( i, line ) in enumerate ( lines ) : guid = " % s - % s " % ( set _ type, i ) text _ a = line [ 3 ] label = line [ 1 ] examples. append ( inputexample ( guid = guid, text _ a = text _ a, text _ b = none, label = label ) ) return examples | [
0.06597063690423965,
-0.04676133394241333,
0.20320652425289154,
-0.20981547236442566,
0.24420805275440216,
0.2051631659269333,
-0.7810811996459961,
-0.33941036462783813,
-0.31049007177352905,
0.51038658618927,
0.10087377578020096,
-0.016207721084356308,
-0.14086852967739105,
0.409916460514... |
def evaluate ( self, data : list [ dict [ str, any ] ], data _ label _ name : str, error _ log : optional [ list ['mrrsearchtester. queryresult'] ] = none, error _ log _ rank _ threshold : int = 10, filter _ language : optional [ str ] = none ) - > float : assert len ( data ) > 0,'data must have more than 0 rows.'np. r... | [
0.10767487436532974,
0.7599204778671265,
0.6593204140663147,
-0.5725303292274475,
-0.5881555676460266,
-0.6860746145248413,
-0.014806786552071571,
-0.028455452993512154,
-0.015148148871958256,
0.7214093208312988,
-0.08822361379861832,
0.5899860262870789,
-0.04494243860244751,
0.50980722904... |
def disable _ feature ( self, tag ) : if tag in self. features : parsetag = self. features [ self. features. index ( tag ) ] parsetag. disable ( ) | [
0.31553295254707336,
-0.9091798663139343,
0.1765960454940796,
0.1535865217447281,
-0.17436164617538452,
-0.07470203936100006,
-0.33685919642448425,
0.7987939715385437,
-0.7009335160255432,
-0.633936882019043,
-0.5697187185287476,
0.15729273855686188,
-0.7575518488883972,
0.4310525357723236... |
def mis _ status ( self ) : try : col _ list = ['stocks allowed for mis ','margin allowed ','stocks not allowed for mis ','stocks which were allowed but temporarily banned'] sheet _ df = self. create _ dataframe ( self. _ urls ['mis'], col _ list ) # create nested _ dict for mis allowed scrip with margin multiplier mis... | [
-0.3975365459918976,
-0.4737755060195923,
0.461519718170166,
-0.1551181972026825,
-0.8355596661567688,
0.09462575614452362,
-0.208988755941391,
0.19782209396362305,
0.03788433223962784,
0.1333434283733368,
0.27416661381721497,
0.693244457244873,
0.3450966775417328,
0.4335167706012726,
1.... |
def safe _ save _ path ( path ) : if not just _ filename ( path ) : return path return os. path. join ( default _ user _ dir, path ) | [
0.06329245120286942,
0.33966684341430664,
0.26546329259872437,
1.0974735021591187,
-0.006864939350634813,
0.673886775970459,
0.8913692831993103,
-0.25432324409484863,
0.21563871204853058,
-0.15282423794269562,
0.14600570499897003,
-0.9750528931617737,
-0.6778704524040222,
-0.44088816642761... |
def test _ requestavatarnointerface ( self ) : self. assertraises ( notimplementederror, self. realm. requestavatar,'username ', none, [ ] ) | [
-0.9436132907867432,
0.8643980622291565,
0.3993752598762512,
0.508901834487915,
-0.24360089004039764,
0.09528493881225586,
0.7917081713676453,
-0.3537692129611969,
0.7656061053276062,
-1.125396966934204,
-0.6607068181037903,
0.31289342045783997,
-0.20374079048633575,
0.8970222473144531,
... |
def create _ order ( api _ key : str = api _ key, api _ secret : str = api _ secret, ) : client = privatebitwyrewsclient ( api _ key = api _ key, api _ secret = api _ secret ) client. create _ order ( ) while true : # you can do something to change payload to your needs per loop # eg read db, api calls, kafka consume e... | [
-0.4617992341518402,
-0.271130234003067,
0.9395374059677124,
-0.3672822415828705,
0.9230114817619324,
-0.32660964131355286,
-0.8382996320724487,
-1.523716926574707,
-1.1803374290466309,
-0.07438480108976364,
-0.6349195241928101,
0.7147333025932312,
-0.7634111642837524,
0.3529820740222931,
... |
def isrnode ( self, * args ) : return _ snap. tbpgraph _ isrnode ( self, * args ) | [
0.060783788561820984,
1.5430824756622314,
0.40849459171295166,
0.43965065479278564,
1.1268877983093262,
-0.4043591320514679,
0.1842537820339203,
-0.052347030490636826,
-0.45188936591148376,
0.8728729486465454,
0.10155472904443741,
0.36594918370246887,
-2.126511573791504,
0.2475659549236297... |
def loadconnlist _ pungraph ( * args ) : return _ snap. loadconnlist _ pungraph ( * args ) | [
-1.5670360326766968,
0.49317944049835205,
0.27823513746261597,
0.8970035314559937,
-0.536124050617218,
-1.0224438905715942,
-0.22608838975429535,
0.7258853316307068,
0.7802154421806335,
0.3842025697231293,
-1.4650146961212158,
-0.8976646661758423,
-0.943203866481781,
0.34845462441444397,
... |
def set _ logger ( loglevel ='info ', logfile = none, logsize = 2 * * 28, lognum = 4 ) : logformat ='% ( asctime ) s % ( levelname ) s % ( name ) s % ( module ) s : % ( lineno ) s - % ( message ) s'rootlogger = logging. getlogger ( ) if logfile : if not logfile. startswith ('/') : if'i3prod'in os. environ : logfile = o... | [
0.06528067588806152,
-0.48928412795066833,
0.9667498469352722,
0.3057909309864044,
-0.4916447103023529,
0.05214543640613556,
0.14584462344646454,
-0.0938900038599968,
-0.5810526609420776,
-0.7817813158035278,
-0.2158973217010498,
-0.05750130116939545,
-0.4983519911766052,
0.858896315097808... |
def paths _ from _ click ( self, click ) : total = self. _ get _ zero _ intersection _ array ( ) def add ( typ, branch _ or _ cusp ) : if not self. is _ branch _ or _ cusp _ collapsed ( typ, branch _ or _ cusp ) : # todo : collapsed cusp idx = self. _ path _ idx ( typ, br ) total [ idx ] + = 1 for sw in self. switches ... | [
-0.3214157819747925,
0.09227059036493301,
0.704161524772644,
0.052171237766742706,
-0.39563536643981934,
-0.27185913920402527,
1.4330213069915771,
0.04950595647096634,
0.6874917149543762,
0.05741246044635773,
-0.27076104283332825,
-0.8567937612533569,
-0.2524930536746979,
-0.15428431332111... |
def post ( * * args ) : import json from lib. py import req out = {'message':'start'} try : if'filedata'in req. params : # read the content fdata = req. params ['filedata'] fname, content = scrub ( fdata. filename ), fdata. file. read ( ) # check size if len ( content ) > conf. max _ file _ size : out = { " error " : "... | [
-0.5774174332618713,
-0.19758309423923492,
0.8155376315116882,
0.23794247210025787,
-0.13707982003688812,
-0.04464716091752052,
0.08662779629230499,
0.2393953502178192,
-0.9866440892219543,
0.2583651542663574,
-0.03671213239431381,
-0.35238996148109436,
-0.4372001886367798,
0.2894475758075... |
def hull _ vertices ( xy ) : hull = convexhull ( xy ) return xy [ hull. vertices ] | [
0.2852240800857544,
0.7003446817398071,
0.18471097946166992,
0.10512128472328186,
0.19119705259799957,
-0.7418639063835144,
-1.0085339546203613,
-0.9655271172523499,
0.8426977396011353,
0.8862625956535339,
-0.42611053586006165,
1.2222788333892822,
0.4770984649658203,
-0.8512619733810425,
... |
def getei ( self, * args ) : return _ snap. pneanet _ getei ( self, * args ) | [
-0.5180187821388245,
1.239896535873413,
0.37936830520629883,
1.3517472743988037,
2.099790334701538,
-0.052380356937646866,
0.3419434428215027,
-0.596359133720398,
-1.1761280298233032,
-1.1238371133804321,
-0.7339696288108826,
-1.4991846084594727,
-0.41147178411483765,
0.0073938071727752686... |
def getdefaultqos ( ctx ) : cli _ utils. establish _ connection ( ctx ) ctx. logger. info ( " " " : " " " + " " " ; " " " + " " ) try : _ volumeqos = ctx. element. get _ default _ qos ( ) except common. apiservererror as e : ctx. logger. error ( e. message ) exit ( ) except baseexception as e : ctx. logger. error ( e. ... | [
0.10317403078079224,
-0.09897526353597641,
0.8640785217285156,
0.1868901550769806,
0.4797552824020386,
-0.04935188218951225,
-0.3991539776325226,
-1.2941821813583374,
-0.09625037014484406,
0.05458400398492813,
-0.013493531383574009,
0.48711147904396057,
-0.9872571229934692,
-0.211318314075... |
def _ _ init _ _ ( self, * * kwargs ) : param _ defaults = {'name': none,'id': none,'id _ str': none,'screen _ name': none,'following': none,'followed _ by': none } for ( param, default ) in param _ defaults. iteritems ( ) : setattr ( self, param, kwargs. get ( param, default ) ) | [
-0.6404924988746643,
0.01765424944460392,
0.37853923439979553,
0.8634623885154724,
0.6616609692573547,
0.16987760365009308,
-0.6130452156066895,
-0.8273782730102539,
-0.13085070252418518,
0.0867295041680336,
-0.941257119178772,
-0.4249463975429535,
-0.5866583585739136,
1.4121967554092407,
... |
def test _ name _ field _ valid ( self ) : instance = omnifield ( name ='this _ is _ a _ valid _ field') try : instance. full _ clean ( ) except validationerror as err : self. assertnotin ('name ', err. error _ dict ) else : self. fail ('validation error not raised') | [
0.3415396809577942,
0.24119940400123596,
0.4854719638824463,
-0.137259840965271,
-0.9628363847732544,
1.1563427448272705,
-0.6155259609222412,
0.27343615889549255,
0.21116796135902405,
0.19340744614601135,
-1.359098196029663,
-1.262529730796814,
-0.6208974719047546,
-0.11891722679138184,
... |
def searchvforw ( self, * args ) : return _ snap. tintintvv _ searchvforw ( self, * args ) | [
-0.8004594445228577,
0.49603137373924255,
0.4474996030330658,
0.40541428327560425,
0.02473902702331543,
-0.2894904911518097,
-0.13259506225585938,
-0.6948602795600891,
-0.2809138894081116,
-0.33855950832366943,
0.451026976108551,
-0.04175935313105583,
-0.40647003054618835,
0.53349196910858... |
def reportmatch ( winner, loser ) : # sql is a variable containing the sql command used with the database to # protect against sql injection. # data is a variable for the values used in the sql statement sent to the # database in a tuple format to project against sql injection. commit _ flag ='yes'with connect ( commit... | [
0.1602173000574112,
0.7656797766685486,
0.9153907895088196,
-0.0917762964963913,
0.4165608882904053,
0.09318089485168457,
0.00359256356023252,
0.7068933844566345,
-1.028403401374817,
-0.059700582176446915,
-0.33779221773147583,
-0.49562960863113403,
-1.2940853834152222,
-0.4852517545223236... |
def save ( self, * args, * * kwargs ) : if self. title : if not self. slug : self. slug = slugify ( self. title ) super ( image, self ). save ( * args, * * kwargs ) | [
-0.859195351600647,
-0.23694251477718353,
0.4723086357116699,
-0.559790313243866,
0.6107211112976074,
-0.8085438013076782,
-1.3332048654556274,
1.183070182800293,
-0.2069075107574463,
0.006494108121842146,
-0.309181272983551,
0.0792250707745552,
-0.33433324098587036,
1.365661382675171,
-... |
def trove _ dashboard _ relation _ changed ( ) : juju _ log ('trove - plugin - relation - changed hook run') | [
0.776860773563385,
0.36415377259254456,
0.3510509431362152,
0.16252116858959198,
0.8870888352394104,
-0.8376082181930542,
0.9175254106521606,
0.31250035762786865,
-0.15209436416625977,
0.2811847925186157,
-0.002286711009219289,
0.9752050042152405,
-0.007451372686773539,
-0.5929003357887268... |
def test _ getextensions ( self ) : self. writesetup ( " twisted. transmutate ", " topfiles " ) self. writesetup ( " twisted. tele. port ", " tele ", " topfiles " ) self. assertextensions ( [ " twisted. tele. port ", " twisted. transmutate " ] ) | [
-0.05002512410283089,
0.686362087726593,
0.32877781987190247,
0.4208977520465851,
0.5007517337799072,
-0.7639285326004028,
-0.19411641359329224,
-0.0354563407599926,
0.645975649356842,
0.12271391600370407,
-0.4398585855960846,
-0.4422478675842285,
-0.3574230372905731,
-0.059243008494377136... |
def _ grad _ nll ( p, gp, y, priorfn = none ) : # apply priors on gp hyperparameters if priorfn is not none : if not np. isfinite ( priorfn ( p ) ) : return np. inf # negative gradient of log likelihood return - gp. grad _ log _ likelihood ( y, quiet = true ) | [
-0.3074145019054413,
0.2058575600385666,
0.6476375460624695,
-0.33292561769485474,
-0.38656294345855713,
0.5096876621246338,
-1.062246561050415,
0.2587014138698578,
-0.6842465400695801,
0.03445161506533623,
0.5847575664520264,
0.3429100215435028,
-0.14699687063694,
0.6832574009895325,
0.... |
def getfltattrinddate ( self, * args ) : return _ snap. tneanet _ getfltattrinddate ( self, * args ) | [
0.49057736992836,
0.5266390442848206,
0.2873154282569885,
-1.7492355108261108,
1.5626100301742554,
-0.12558047473430634,
-0.11923575401306152,
-0.38176262378692627,
-0.8173297643661499,
-1.0633288621902466,
-0.1242557242512703,
-0.2840901017189026,
-0.08111868798732758,
1.1881831884384155,... |
def get _ network ( name ) : if not _ _ sets. has _ key ( name ) : raise keyerror ('unknown network : { } '. format ( name ) ) return _ _ sets [ name ] | [
-0.6251329779624939,
0.4333072304725647,
0.3165845274925232,
-0.19232921302318573,
-0.33137670159339905,
-0.13608136773109436,
-0.299363911151886,
-2.052382469177246,
-0.09415851533412933,
-0.5887536406517029,
-0.22488096356391907,
0.1591424196958542,
-0.1814267486333847,
-0.52704381942749... |
def getattrenames ( self, * args ) : return _ snap. pneanet _ getattrenames ( self, * args ) | [
-0.8337220549583435,
0.8747239112854004,
0.42960166931152344,
0.38518691062927246,
0.4980301558971405,
0.16572406888008118,
-0.8242779970169067,
-0.609316349029541,
-0.08762707561254501,
-0.30335643887519836,
-0.08824475854635239,
-0.5134130120277405,
-0.34214186668395996,
0.81555724143981... |
def test _ atomic _ language _ min _ length _ 1 _ nistxml _ sv _ iv _ atomic _ language _ min _ length _ 2 _ 5 ( mode, save _ output, output _ format ) : assert _ bindings ( schema = " nistdata / atomic / language / schema + instance / nistschema - sv - iv - atomic - language - minlength - 2. xsd ", instance = " nistda... | [
0.28796833753585815,
-0.8710227012634277,
0.3861941695213318,
0.43345388770103455,
-0.795489490032196,
0.002500578062608838,
0.04263937845826149,
-0.5238695740699768,
-0.24512998759746552,
0.3803543746471405,
-0.7888973951339722,
0.3646491467952728,
-0.19892460107803345,
0.3646316528320312... |
def mse ( x, t ) : return ( x - t ) * * 2 | [
0.6445146799087524,
-1.034517526626587,
0.04452066868543625,
0.12235748767852783,
-0.612743079662323,
0.5664870738983154,
-1.073042392730713,
-0.574339747428894,
-0.7643640041351318,
0.8236766457557678,
-1.1152675151824951,
0.30118539929389954,
0.8860639333724976,
-0.4848037362098694,
-0... |
def clear _ area ( x = 1, y = 1, width = 80, height = 24, fore _ colour = 39, back _ colour = 49 ) : # execute function to check for valid colours and force correction fore _ colour, back _ colour = colour _ check ( fore _ colour, back _ colour ) # replace area with spaces, thus applying backcolour. for i in range ( he... | [
0.6291788816452026,
0.16950322687625885,
0.7637585401535034,
-0.7436217665672302,
-0.6836625933647156,
-0.08360020816326141,
0.4359493553638458,
-0.0847368985414505,
-0.263113409280777,
0.6962390542030334,
0.8563663959503174,
1.7021540403366089,
-0.1792997419834137,
0.36875367164611816,
... |
def test _ old _ urllib _ import ( self ) : code1 ='''from future import standard _ library with standard _ library. suspend _ hooks ( ) : import module _ importing _ old _ urllib'''self. _ write _ test _ script ( code1,'runme. py') code2 ='''import urllib assert'urlopen'in dir ( urllib ) print ('import succeeded!')'''... | [
0.15282464027404785,
-0.2329746037721634,
0.7741873860359192,
1.1407445669174194,
-0.11351900547742844,
0.9029005169868469,
1.273719072341919,
-0.08725310117006302,
0.15136420726776123,
0.12181177735328674,
-1.0585401058197021,
0.44827860593795776,
-0.6381678581237793,
0.20302288234233856,... |
def interfacecapabilities _ 0 ( self, i ) : return self. interfacecapabilities [ i ] & 255 | [
-1.3733354806900024,
-0.14881159365177155,
0.5189414024353027,
-0.13989375531673431,
-0.508910596370697,
0.41957831382751465,
1.2198426723480225,
-0.6215115189552307,
0.7907040119171143,
0.14090058207511902,
-0.5089045763015747,
-0.4971332550048828,
-0.6871562600135803,
-0.0986830070614814... |
def loadtxt ( * args ) : return _ snap. tstr _ loadtxt ( * args ) | [
-0.4183410704135895,
0.9221678376197815,
0.429482638835907,
-0.5726947784423828,
-0.856935441493988,
-0.0633719190955162,
0.004874339327216148,
-0.3281434178352356,
-0.6254496574401855,
0.10269157588481903,
-1.0195136070251465,
-1.1621110439300537,
-0.7563402056694031,
-0.05993703752756119... |
def remote ( * args, conan _ api, parser, * * kwargs ) : | [
-0.5130636096000671,
-1.2060309648513794,
0.46580833196640015,
0.30869948863983154,
0.05561003088951111,
0.6181452870368958,
-0.5395814776420593,
0.043579425662755966,
-1.028024673461914,
0.16491058468818665,
-1.4907615184783936,
0.8843985199928284,
-1.1474529504776,
-0.2721368372440338,
... |
def _ prepare _ transitions _ without _ proxy _ pc ( self ) : transitions = { unixremote. unix _ remote : { unixremote. unix _ local : { " action " : [ " _ execute _ command _ to _ change _ state " ], }, unixremote. unix _ remote _ root : { " action " : [ " _ execute _ command _ to _ change _ state " ], } }, unixremote... | [
-0.43880757689476013,
-0.19952011108398438,
0.5054662227630615,
-1.136439323425293,
0.07188642770051956,
0.05324006453156471,
-0.5452760457992554,
-0.11356709152460098,
-0.14006245136260986,
-0.027235466986894608,
-0.869353175163269,
-0.1518436074256897,
-0.10299123823642731,
0.31145077943... |
def getrndeid ( self, * args ) : return _ snap. tnegraph _ getrndeid ( self, * args ) | [
0.8131843209266663,
0.8080118894577026,
0.4381205439567566,
0.24732501804828644,
0.7919823527336121,
-0.15912793576717377,
0.2951028645038605,
-0.3584935665130615,
-0.03833254054188728,
0.5947909355163574,
-0.7821872234344482,
-0.7191041707992554,
-1.294118046760559,
1.0751347541809082,
... |
def test _ named _ table _ pk _ token _ function ( self ) : for i in range ( 5 ) : tokentestmodel. create ( key = i, val = i ) named = namedtable ( default _ keyspace, tokentestmodel. _ _ table _ name _ _ ) query = named. all ( ). limit ( 1 ) first _ page = list ( query ) last = first _ page [ - 1 ] self. asserttrue ( ... | [
-0.49581241607666016,
0.7595905065536499,
0.5031294822692871,
0.07526654750108719,
-0.038049351423978806,
-0.041842132806777954,
-0.5341699719429016,
-0.46906736493110657,
-0.817933976650238,
-0.5918620824813843,
-0.9114680886268616,
-0.26279711723327637,
0.2558210492134094,
0.548379063606... |
def define _ data _ pipeline ( sm _ role, workflow _ execution _ role, data _ pipeline _ name, return _ yaml = true, dump _ yaml _ file = " templates / sagemaker _ data _ pipeline. yaml ", ) : # pass required parameters dynamically for each execution using placeholders. execution _ input = executioninput ( schema = { "... | [
0.032353099435567856,
0.5452412962913513,
0.7876821160316467,
-0.16632959246635437,
-0.11817184090614319,
-0.4169769883155823,
-0.08512655645608902,
0.9972584843635559,
-0.4421505033969879,
0.4076058268547058,
-0.598400354385376,
1.067859172821045,
0.6752721667289734,
0.48355257511138916,
... |
def test _ determine _ adaptive _ level ( self ) : # adaptive _ levels get converted to ` ` level ` ` objects in main, but here we skip main and test scheduler directly adaptive _ levels = { ( 1, 5 ) : { ('opt ','freq') : level ( repr ='wb97xd / 6 - 311 + g ( 2d, 2p )'), ('sp ', ) : level ( repr ='ccsd ( t ) - f12 / au... | [
0.6868953704833984,
-0.023262644186615944,
0.6236499547958374,
0.43358317017555237,
0.1592492163181305,
-0.10782851278781891,
-0.15716615319252014,
-0.6243776082992554,
-0.5930687189102173,
-0.34471338987350464,
-0.18608306348323822,
-0.1452876478433609,
0.42145290970802307,
0.636518239974... |
def _ _ len _ _ ( self ) : return len ( self. _ node ) | [
-0.3990348279476166,
-0.07540395855903625,
0.28526413440704346,
-2.2039403915405273,
0.35262611508369446,
0.07902583479881287,
0.2849906384944916,
0.8594093322753906,
0.49758613109588623,
-0.33767011761665344,
-0.9490000605583191,
0.30478373169898987,
0.7157495021820068,
-0.780194878578186... |
def done ( ) : global file, mess m. showinfo ('procedure ','where would you like the embedded file to be saved? \ n'' select the path in the next window.') out = asksaveasfilename ( title ='save your embedded file as ', filetypes = [ ('audio file ', '. wav') ], defaultextension = '. wav ', initialdir = os. getcwd ( ), ... | [
0.8779444098472595,
-0.5787960290908813,
0.787384033203125,
0.0017082465346902609,
-0.0737491175532341,
1.3072346448898315,
0.9855068922042847,
-0.12915611267089844,
-0.7427967190742493,
0.1337032914161682,
0.37704554200172424,
1.2119760513305664,
-0.860531210899353,
0.6720556020736694,
... |
def getsccs _ pneanet ( * args ) : return _ snap. getsccs _ pneanet ( * args ) | [
-0.7710962891578674,
0.32596004009246826,
0.37621009349823,
0.6813269853591919,
0.014347561635077,
-0.1414371281862259,
-0.9712411165237427,
-1.9222320318222046,
-0.8763931393623352,
-0.9607688784599304,
-0.08562476187944412,
-0.47013044357299805,
-0.48628100752830505,
-0.00228534545749425... |
def device _ info ( self ) : return { " identifiers " : { ('air _ korea ','quality') },'name':'air korea ','manufacturer':'data. go. kr ','model':'air _ korea _ quality'} | [
-0.3719457983970642,
0.21246463060379028,
0.43002358078956604,
0.18700146675109863,
-0.5199401378631592,
0.6248317360877991,
-0.5276013612747192,
-0.20665116608142853,
-0.28619760274887085,
0.05573628842830658,
-1.0330908298492432,
-0.1015138179063797,
0.5453705787658691,
0.113631069660186... |
def _ _ new _ _ ( cls : type ['word'], text : str, width : int ) - >'word': return tuple. _ _ new _ _ ( cls, ( text, width ) ) | [
-0.545050859451294,
0.1785002201795578,
0.5144817233085632,
-0.2880368232727051,
-0.7115703821182251,
0.29787230491638184,
-0.5215355157852173,
-0.2021607905626297,
0.22941432893276215,
0.2223789393901825,
-0.3050210177898407,
-0.8094474673271179,
-0.3764055371284485,
0.24839159846305847,
... |
def query ( self ) :... return... | [
0.1169535219669342,
-0.48376986384391785,
0.3396950364112854,
0.35282427072525024,
-0.0947764664888382,
0.17221298813819885,
0.8707131743431091,
-0.06449058651924133,
0.05658014863729477,
-1.4283509254455566,
0.009709211066365242,
0.24915052950382233,
-1.505149245262146,
-0.224891036748886... |
def pickafile ( self ) : fname = qtwidgets. qfiledialog. getopenfilename ( self,'open file ', '.') if fname [ 0 ] : self. filepathtext. settext ( fname [ 0 ] ) self. loadbutton. setenabled ( true ) | [
0.5983728766441345,
-1.3672161102294922,
0.41887927055358887,
-0.02410958521068096,
-0.404901385307312,
0.4027034342288971,
0.8539395928382874,
0.9843047857284546,
0.17267963290214539,
0.09019972383975983,
-0.5282738208770752,
-0.31305888295173645,
0.06897112727165222,
-0.04514287784695625... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.