ngram listlengths 0 67.8k |
|---|
[
"Import the Operative System Library as operative_system import os as operative_system # Disable",
"Print the Tensor for the constant \"b\" tensorflow.print(\"b = \", b) # Print",
"TensorFlow Author: - <NAME> (<EMAIL>) - <NAME> (<EMAIL>) \"\"\" # Import the Libraries",
"\"b\" tensorflow.print(\"b = \", b) # P... |
[
"requests.\"\"\" patch_client = patch(\"homeassistant.components.meteo_france.meteofranceClient\") patch_weather_alert = patch( \"homeassistant.components.meteo_france.VigilanceMeteoFranceProxy\" ) with patch_client, patch_weather_alert: yield",
"utils.\"\"\" from unittest.mock import patch import pytest @pytest.... |
[
"= pre_spark.config(key, value) spark = pre_spark.getOrCreate() logger.info(\"Created Spark session\") try: yield spark finally:",
"pre_spark = pre_spark.config(key, value) spark = pre_spark.getOrCreate() logger.info(\"Created Spark session\") try: yield spark",
"\\ if config is not None: for key, value in conf... |
[
"result def fillNull(months): months[\"Jan\"].append(0) months[\"Feb\"].append(0) months[\"Mar\"].append(0) months[\"Apr\"].append(0) months[\"May\"].append(0) months[\"Jun\"].append(0) months[\"Jul\"].append(0) months[\"Aug\"].append(0) months[\"Sep\"].append(0) months[\"Oct\"].append(0)",
"0 distance months = f... |
[
"LinkExtractor XPATH = { 'name' : \"//h1[@class='nameprod']\", 'price' : \"//div[@class='c2']/div[@class='imp'][1]/span[@class='price']\", 'category' : \"//div[@class='nav_center']/span/a/span\",",
"'description' : \"//div[@class='intro']\", 'images' : \"//div[@class='ui-corner-all']/div/div/a/@href\", 'canonical... |
[
"KIND, either express or implied. # See the License for the specific language",
"Unless required by applicable law or agreed to in writing, software # distributed",
"limitations under the License. # ============================================================================== \"\"\"Contains utilities for downl... |
[
"lasts, t, s, n, na, d, da = 0, three, 3, 1, 0,",
"8D9DD300 741FA7BF 8AFC47ED 2576F693 6BA42466 3AAB639C 5AE4F568 3423B474 2BF1C978 238F16CB E39D652D E3FDB8BE FC848AD9",
"has been used for the implementations for # quite a long time, but",
"208552BB 9ED52907 7096966D 670C354E 4ABC9804 F1746C08 CA18217C 32905E... |
[
"setuptools import setup PROJECT_NAME = \"meter_reader_4_pointer\" VERSION = \"1.2.0\" setup( name=PROJECT_NAME, version=VERSION, packages=find_packages(),",
"= \"meter_reader_4_pointer\" VERSION = \"1.2.0\" setup( name=PROJECT_NAME, version=VERSION, packages=find_packages(), include_package_data=True, install_re... |
[
"setuptools import setup exec (open('yadashcomp/version.py').read()) setup( name='yadashcomp', version=__version__, author='pingf', packages=['yadashcomp'], include_package_data=True, license='MIT', description='yet",
"from setuptools import setup exec (open('yadashcomp/version.py').read()) setup( name='yadashcom... |
[
"camera='1' bucket='mikey.com-security' path='/mnt/cameraimages/images' s3 = boto3.resource('s3') for dirName, subdirList, fileList in os.walk(path): for",
"in fileList: if len(path) == len(dirName): finame=fname else: finame = '%s/%s'%(dirName[len(path)+1:], fname) print(finame)",
"fileList: if len(path) == le... |
[
"a dict # of IMG_id -> distance, # and we include the list",
"dist_1[uinc_key] = dist_2[uinc_key] # dist_compl[key] = [dist_1, compl_1, cont_1] # else: # raise",
"= curr_dist_compl[key] # if compl_1 == compl_2 and cont_1 == cont_2: # #",
"g['upa'].tolist() ss = {} for upa in upas: mag_ids = g[g['upa']==upa]['... |
[
"0.96, 1.2, 1.44, 1.68, 1.92, 2.16, 2.4]) == 72 assert benchmark(gps, 17, [0.0,",
"1.76]) == 88 assert benchmark(gps, 16, [0.0, 0.2, 0.4, 0.6, 0.8, 1.0, 1.32,",
"0.48, 0.72, 0.96, 1.2, 1.44, 1.68, 1.92, 2.16, 2.4]) == 72 assert benchmark(gps,",
"16, [0.0, 0.2, 0.4, 0.6, 0.8, 1.0, 1.32, 1.54, 1.76, 1.98, 2.2, ... |
[
"\"\"\"Graphical User Interface (GUI) utility module. This module contains various tools and utilities",
"import logging import thelper.utils logger = logging.getLogger(__name__) def create_key_listener(callback): \"\"\"Returns a key press",
"if \"annotator\" not in config or not config[\"annotator\"]: raise As... |
[] |
[
"METHOD = 'GET' URL_COMPONENTS = ['headers'] RESULT_KEY = 'headers' class GetIPAction(HttpbinAction): METHOD =",
"= ['headers'] RESULT_KEY = 'headers' class GetIPAction(HttpbinAction): METHOD = 'GET' URL_COMPONENTS = ['ip']",
"= 'headers' class GetIPAction(HttpbinAction): METHOD = 'GET' URL_COMPONENTS = ['ip'] ... |
[
"\"Tom\", \"Tim\"}): print(f\"{index}: {entry}\") for index, entry in enumerate({\"Tam\", \"Tom\", \"Tim\"}): print(f\"{index}: {entry}\")",
"in enumerate({\"Tam\", \"Tom\", \"Tim\"}): print(f\"{index}: {entry}\") for index, entry in enumerate({\"Tam\", \"Tom\", \"Tim\"}):",
"in enumerate({\"Tam\", \"Tim\", \"T... |
[
"References ---------- <NAME>., & <NAME>. (2018). Expected policy gradients. AAAI. \"\"\" def __init__(self,",
"ExpectedActorCriticAgent(ActorCriticAgent): \"\"\"Implementation of the Advantage-Actor Critic. TODO: build compatible function approximation. References ----------",
"\"\"\"Implementation of the Adva... |
[
"= self.net_blocks.bottleneck_v3(x, 80 , 3, e=240, s=2, alpha=alpha, squeeze=False, activation='hard_swish') x = self.net_blocks.bottleneck_v3(x,",
"s=s[1], n=n[1], activation=activation) M0 = self.net_blocks.separable_conv_block(M0, c[1], 3, s[1], activation=None) A1 = add([M0,",
"2, 4, 2] s = [2, 1, 2, 2, 1, ... |
[
"to print the text onto. Default: black, can be either of: red, light",
"= input_back_col.lower() input_shade = input_shade.lower() # Check if running from pycharm is_running_pycharm =",
"the background text colour for the strings being printed. Default Black, colours same",
"Default Newline, this list must b... |
[
"code.strip()) decoded += str(values_by_keys(morse_dict, code)) # the space in the code is not",
"+ encrypt(text)) elif(choice == \"d\"): text = input(\"What would you like to decrypt?",
"space and each word by seven spaces\\n\") choice = input(\"Would you like to",
"of the list, add a space to the # decoded ... |
[
"2 not in self.parcel_igm.grid.Z: xe = min(xe, 1.0) xi = xe / (1.",
"import ParameterFile, ProgressBar from ..util.ReadData import _sort_history, _load_inits from .MetaGalacticBackground import MetaGalacticBackground from",
"= inits_all[key][i] continue # Electron fraction snapshot['e'] = inits_all['xe'][i] # H... |
[
"= [ ('web', '0041_auto_20180808_1450'), ] operations = [ migrations.AlterField( model_name='resource', name='post_id', field=models.IntegerField(default=0), ),",
"from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('web', '0041_auto_20180808_1450'), ]",
"import uni... |
[
"\"\"\" # can use arbitrary dataframe since columns will be the same. tag_groups",
"one dataframe. \"\"\" def __init__( self, save_folder: str, num_steps: int, log_overlaps: bool, ode_log_path:",
"def _setup_data(self): \"\"\"Setup data from relevant dataframes. Here, in the unified case, full",
"str, network... |
[] |
[
"Use '\\n'.join(settings_list). affil (str, optional): Comma-separated string of author affiliations to their repos.",
"GH_TOKEN = os.environ[\"GH_TOKEN\"] headers = {\"Authorization\": f\"token {GH_TOKEN}\"} def query_gh_gpl_api(query: str) -> dict:",
"file was set as '{config_path}' but no such file exists.\"... |
[
"= 0 while i < len(iAxis): ans = noUniqHittableFeatures*(1-exp(-iAxis[i]/noUniqHittableFeatures)) uniqueGenesHit.append(ans) i += 1",
"+= 1 return dataDict # ------------------------------------------------------------------------------------------------ # # -------------------------------------------------------... |
[
"with pytest.raises(NotSupportedError): comment(text, post) with pytest.raises(NotSupportedError): fake_comment = {'id': '1', 'post_id': '2'} uncomment(fake_comment)",
"def test_like(logged, post, cassette): if logged: response = like(post) assert response == {'status':",
"logged: response = like(post) assert r... |
[
"functionality so you'll # have to keep this somewhere safe and associated with",
"And let's now try to create a transaction on that profile. resp =",
"# Store the profile id somewhere so that we can later retrieve it.",
"profile for one of our users. tree = cim_api.create_profile( card_number=u\"411111111111... |
[
"in input_str.split(\"\\n\")] def find_pair(sorted_report: List[int], target_num: int) -> Optional[Tuple[int, int]]: front_index = 0",
"b elif a + b < target_num: front_index += 1 else: # a",
"elif a + b < target_num: front_index += 1 else: # a +",
"e) = (-1, -1, -1) if triple: (c, d, e) = triple return",
"... |
[
"from %(f)d to %(t)d in %(s)d seconds' % {'g': asg_name, 'f': current_capacity, 't':",
"/ check_interval_sec)) for trial in range(0, max_trials + 1): current_size = get_spark_worker_node_count(spark) if",
"SparkSession.builder \\ .master(env.spark_master) \\ .appName('Trinity %(e)s' % {'e': env.env}) \\ .config... |
[
"clean_re_password(self): password = self.cleaned_data.get('password') re_password = self.cleaned_data.get('re_password') if password and re_password and password",
"self.user_cache = None return super().__init__(*args, **kwargs) def get_initial_for_field(self, field, field_name): return '' def",
"self.followin... |
[
"sessionmaker @contextmanager def make(db_engine, **kwargs): \"\"\"Scope a db_session for a context, and close",
"from contextlib import contextmanager from sqlalchemy.orm import sessionmaker @contextmanager def make(db_engine, **kwargs): \"\"\"Scope",
"**kwargs): \"\"\"Scope a db_session for a context, and clo... |
[
"= NumericProperty(0) acceleration = ReferenceListProperty(acceleration_x, acceleration_y) in_move = BooleanProperty(False) def __init__(self, *args, velocity=(0,",
"self.bind(on_update=self.move) def _update_velocity(self): \"\"\"Change velocity because of acceleration\"\"\" self.velocity = Vector(*self.velocity... |
[
"import lru_cache from pydantic import BaseSettings class Settings(BaseSettings): \"\"\"Settings model.\"\"\" secret_key: str =",
"mongo_url: str = \"\" testing: bool = False @lru_cache(typed=False) def get_settings() -> Settings:",
"str = \"\" mongo_url: str = \"\" testing: bool = False @lru_cache(typed=False)... |
[
"axis=1) def red3(x): return mp.min(x, axis=1, keepdims=True) def red4(x): return mp.min(x, axis=0) def",
"x.dot(Wx) + b) cache = next_h, prev_h, x, Wx, Wh return next_h, cache",
"= x.T.dot(dtanh) # (D, H) # Gradients of loss wrt Wh dWh =",
"def red4(x): return mp.max(x, axis=0) def red5(x): return mp.max(x, ... |
[
"__author__ = 'pzqa' l1 = list(map(lambda i: Point(i, i*i), range(-5, 6))) l2 =",
"= list(map(lambda i: Point(i, i*i), range(-5, 6))) l2 = list(filter(lambda el: el.x %",
"point import Point __author__ = 'pzqa' l1 = list(map(lambda i: Point(i, i*i), range(-5,",
"Point(i, i*i), range(-5, 6))) l2 = list(filter(... |
[
"type(j) == list: flatten(j) else: l_r.append(j) return l_r x= [[1,\"a\",[\"cat\"],2],[[[3]],\"dog\"],4,5] print(flatten(x)) #SORU 2_________________________________________________________",
"l_r=[] def flatten(l): for j in l: if type(j) == list: flatten(j) else:",
"if type(j) == list: j.reverse() l.reverse() ... |
[
"django.db.models.deletion class Migration(migrations.Migration): initial = True dependencies = [ migrations.swappable_dependency(settings.AUTH_USER_MODEL), ] operations =",
"('invitations_sent_rejected', models.IntegerField(default=0)), ('invitations_recieved', models.IntegerField(default=0)), ('invitations_reci... |
[
"and ratings) - adding tracks to a group with the same tracks already",
"delete: deleting a group doesn't reset the group filter + sort: sorting grouptracks",
"tracks: pressing all tracks again will return to previous group - delete: fixed",
"tracks already present didn't work (it was impossible to make dupli... |
[
"line.replace('\\n','') if word not in entity: entity[word] = 0 entity[word] = entity[word] +",
"word not in entity: entity[word] = 0 entity[word] = entity[word] + 1 entity_freq",
"\"r\", encoding=\"utf-8\") as f: for line in f: word = line.replace('\\n','') if word",
"entity[word] = 0 entity[word] = entity[w... |
[
"value return res class SyntaxVectorizer(ABC): def setup_rules(self): pass def text_structures_initializer(self): pass def calculate_morpho_tags(self,",
"return res class SyntaxVectorizer(ABC): def setup_rules(self): pass def text_structures_initializer(self): pass def calculate_morpho_tags(self, current_token):"... |
[
"= regularization def train(self, input, target): layers = self.layers loss = self.loss regularization",
"= self.layers for layer in layers: if isinstance(layer, self.diff): layer.mode = \"test\" input",
"for _, param in layer.params.items(): l += regularization.forward(param) l += loss.forward(input, target) d... |
[
"create_ttl_indexes = input(\"Create TTL Indexes? [y/N] \") if create_ttl_indexes == 'y' or create_ttl_indexes",
"MongoClient def main(): hostname = input(\"MongoDB Hostname (Default: localhost): \") if not hostname:",
"\") if not hostname: hostname = \"localhost\" port = input(\"MongoDB Port (Default: 27017):"... |
[
"import setup setup( name='monta', version='1.2', description='Disk mounting shortcut for use with dmenu.', author='<NAME>',",
"from setuptools import setup setup( name='monta', version='1.2', description='Disk mounting shortcut for use with",
"mounting shortcut for use with dmenu.', author='<NAME>', url='https... |
[
"46, 59, 72, 100], dtype=float) for i, c in enumerate(celsius_q): print(\"{} degrees Celsius",
"Fahrenheit\".format(c, fahrenheit_a[i])) # create model fc0 = tf.keras.layers.Dense(units=1, input_shape=[1]) model = tf.keras.Sequential([fc0]) #",
"59, 72, 100], dtype=float) for i, c in enumerate(celsius_q): print... |
[
") try: caption = media[\"edge_media_to_caption\"][\"edges\"][0][\"node\"][\"text\"] except IndexError: pass else: if len(caption) > 100:",
"else: if await self.download_pic(url, id, format): logger.info(f\"Caption: {caption}\") tags = regex.findall(r\"#([\\p{L}0-9_]+)\", caption) logger.info(f\"Tags:",
"x in c... |
[
"random import tempfile import webbrowser import time import uuid import socket import shutil",
"else j['load_name'], i.split('-_-')[0] if not j['name'] else j['name'].title() ) for i, j in",
"nohtml_base.replace('{% avaliable_paths %}', '' if not self.templates else '<h4>Avaliable paths : {}</h4>'.format( ',",... |
[
"dict.setdefault(i, []) for key in tags: for structure in file: if structure.info['config_type'] ==",
"# import module and read xyz file from ase.io import read, write file=read('last3.xyz',",
"[] for structure in file: if structure.info['config_type'] not in tags: tags.append(structure.info['config_type']) # e... |
[
"global img global img_cp if event == cv2.EVENT_LBUTTONDOWN: cv2.circle(img_cp, (x, y), 5, (255,",
"flags, param): global l global img global img_cp if event == cv2.EVENT_LBUTTONDOWN: cv2.circle(img_cp,",
"y, flags, param): global l global img global img_cp if event == cv2.EVENT_LBUTTONDOWN:",
"cv2.resize(img... |
[
"pprint import pprint class TestText(unittest.TestCase): def test_files(self): differ = Differ() reader = tei_reader.TeiReader()",
"pprint class TestText(unittest.TestCase): def test_files(self): differ = Differ() reader = tei_reader.TeiReader() for (tei,",
"= reader.read_file(tei) transformed = corpora.text wi... |
[
"<gh_stars>10-100 import scryptos.crypto.attack.rsautil as rsautil import scryptos.crypto.attack.knapsackutil as knapsackutil import scryptos.crypto.attack.prngutil as prngutil"
] |
[
"* import p1.m1 import p1.m2 import p1.m3 import p1.m4 p1.m4.mm_main() import p1.pp1.a1 import",
"import * import p1.m1 import p1.m2 import p1.m3 import p1.m4 p1.m4.mm_main() import p1.pp1.a1",
"import p1.m1 import p1.m2 import p1.m3 import p1.m4 p1.m4.mm_main() import p1.pp1.a1 import p1.pp1.a2",
"p1 import ... |
[
"glob import glob from abc import ABC, abstractmethod class DataBase(ABC): @abstractmethod def make_tidy(self):",
"\"\\t\") return (df.assign(**{\"type\":type_, \"file\":df[\"path\"].apply(self._create_path)}) .rename(columns={\"sentence\":\"text\"}) .filter([\"file\", \"text\", \"type\"])) def make_tidy(self): p... |
[
"pillow') FONT = ('/usr/share/fonts/truetype/freefont/FreeSansBold.ttf', 12) unicornhathd.rotation(270) unicornhathd.brightness(0.8) width, height = unicornhathd.get_shape() text_x =",
"font_file, font_size = FONT font = ImageFont.truetype(font_file, font_size) text_width, text_height = width, 0",
"unicornhathd... |
[
"class RadioButtonPage(BasePage): RADIO_BTN_1 = (By.ID, 'radio-button-1') RADIO_BTN_2 = (By.XPATH, '/html/body/div/div[2]/input') RADIO_BTN_3 = (By.XPATH,",
"btn_3.click() def click_on_btn_2(self): btn_1 = self.driver.find_element(*self.RADIO_BTN_1) btn_2 = self.driver.find_element(*self.RADIO_BTN_2) btn_3 = self... |
[
"frappe.db.sql(\"\"\" update `tabStock Ledger Entry` sle, `tab{0}` parent_doc set sle.project = parent_doc.project where",
"parent_doc.name and sle.voucher_type = %s and sle.project is null and parent_doc.project is not",
"Note', 'Stock Entry']: frappe.db.sql(\"\"\" update `tabStock Ledger Entry` sle, `tab{0}` ... |
[
"p3 = p*3 plt.plot(p,p2,color = 'b',ls = '-.',linewidth = 2) plt.plot(p,p3,color = 'y',ls",
"plt p = np.array([0,10]) p2 = p*2 p3 = p*3 plt.plot(p,p2,color = 'b',ls",
"'y',ls = '-',linewidth = 3) plt.title(\"Two line in same plot\") plt.xlabel(\"X-Axis\") plt.ylabel(\"Y-Axis\") plt.show()",
"= 'y',ls = '-',li... |
[
"\"\"\" import sys, os class ProcessorAutodetectError(Exception): pass def autodetect(): mach = None try:",
"'i86pc': 'i386', # Solaris/Intel 'x86': 'i386', # Apple 'Power Macintosh': 'ppc', }[mach] except",
"'i386', # Solaris/Intel 'x86': 'i386', # Apple 'Power Macintosh': 'ppc', }[mach] except KeyError:",
"... |
[
"7 class Style_Strikethrough(Style): def __init__(self): super() self.code = 9 class Colour(Style): def __init__(self):",
"= 4 class Style_Invert(Style): def __init__(self): super() self.code = 7 class Style_Strikethrough(Style): def",
"__init__(self): super() self.code = 32 class Colour_DarkYellow(Colour): def... |
[
"# RefURL: https://docs.pytest.org/en/latest/example/parametrize.html # # # # import # import pytest def pytest_addoption(parser):",
"options.\"\"\" #RefURL: https://docs.python.org/3/library/argparse.html#the-add-argument-method parser.addoption( \"--change-conf\", action=\"store\", default=\"ftpdel.conf\", help... |
[
"'error in datetime string: %s' % e, 'value': val, 'row': idx, 'column': series.name,",
"= validator_lookup[colspec['type']] errors.extend(v(df[colname], colspec, sheet)) return errors def validate_sheet_metadata(wb, spec): errors = []",
"'data', 'sheet': 'data' })) return errors df = wb['data'] errors.extend(v... |
[
"distance offsets from the box center in four directions, shape (N, 4). \"\"\"",
"return torch.max(torch.tensor(0.), area_inner / area) def nms(Bboxes): Bboxes = sorted(Bboxes, key=lambda x:x[4], reverse=True)",
"record_dict: record_dict.add(i) res.append(Bboxes[i]) else: continue for j in range(i + 1, len(Bbox... |
[
"= 44, text_color = RED ).set_color(RED) qoute2 = Text(\"there is no permanent place",
"ReplacementTransform(formula[2].copy(),formula[8]), ReplacementTransform(formula[4].copy(),formula[11]), ReplacementTransform(formula[3].copy(),formula[9]), run_time = 3 ) self.wait() self.play( ReplacementTransform(formula[0]... |
[
"{{if eq (len .Args) 1}} {{$r := joinStr \" \" $b.StringSlice}} {{$r}} {{else",
"(eq $a \"gifss\" ) ( reFind $c $value ) ) -}} {{$s =",
"0 }} {{if eq (len .Args) 1}} {{$r := joinStr \" \" $b.StringSlice}}",
"\" names = [] for fileName in files: names.append(fileName.split('.')[0]) names = sorted(names) n",
... |
[
"import matplotlib.pyplot as plt def blur_display(infile, nogui=False): # The first argument is the",
"Show all 3 images cv2.imwrite(\"Original_Image.png\", image) cv2.imwrite(\"Gray_Image.png\", gray_image) cv2.imwrite(\"Blurred_Image.png\", blurred_image) cv2.waitKey(0) if __name__",
"gray_image = cv2.cvtColo... |
[
"the License. \"\"\" __license__ = \"Apache 2.0\" def fibonacci_wrong_way(n): x = 0 y",
"x + y x = t print(l) def fibonacci_correct_way(n): x, y, l =",
"the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in",
"variables.\"\"\" __author__ = \"<NAME>\" __cop... |
[
"% __file__) # Parse CMD parser = argparse.ArgumentParser(prog=\"chromatindyn_wf\", description=\"Chromatin Dynamics workflow\") parser.add_argument(\"--config\", required=True,",
"# print localhost import logging import re import pprint import multiprocessing #import psutil",
"Run pipeline x_rnd = int(random.r... |
[
"import matplotlib.pyplot as plt from matplotlib.patches import FancyBboxPatch from matplotlib.colors import LinearSegmentedColormap from",
"!= None: vmin = np.log10(vmin) if vmax != None: vmax = np.log10(vmax) #",
"a basemap Arguments: info (info): ``info`` object containing metadata spatial (list): List with"... |
[
"from .init_cfg import init from .root import root # add sub-command functions here",
".init_cfg import init from .root import root # add sub-command functions here root.add_command(init)",
"<gh_stars>0 from .init_cfg import init from .root import root # add sub-command functions"
] |
[
"accessed for the first time. Example: Use the ``@lazy`` decorator for a function",
"value \"\"\" def __init__(self, func): self.func = func def __get__(self, instance, owner): if",
"is accessed for the first time. Example: Use the ``@lazy`` decorator for a",
"Property for the lazy evaluation of Python attrib... |
[
"dummy class which can be used to simply do no repair. \"\"\" def",
"This class is allows to repair individuals after crossover if necessary. \"\"\" def",
"\"\"\" This class is allows to repair individuals after crossover if necessary. \"\"\"",
"repair individuals after crossover if necessary. \"\"\" def do(s... |
[
"\"\"\" DAO Object for BlockSite table \"\"\" from dbs.dao.Oracle.BlockSite.Insert import Insert as OraBlockSiteInsert",
"for BlockSite table \"\"\" from dbs.dao.Oracle.BlockSite.Insert import Insert as OraBlockSiteInsert class Insert(OraBlockSiteInsert): pass",
"#!/usr/bin/env python \"\"\" DAO Object for Bloc... |
[
"[int(args[2])] * temp.shape[0] df_list += [temp] df = pd.concat(df_list) df[\"metric\"].loc[ (df[\"tracer\"] == \"fmz\")",
"temp=pd.read_csv(fn) print fn args = fn.split(\"/\")[4].split(\"_\") if 'rcl' in fn : temp[\"tracer\"] =",
"\"Ki\" df[\"metric\"].loc[ (df[\"tracer\"] == \"rcl\") & (df[\"metric\"] == \"m... |
[
"c1f5e3 in iso-8859-7 '\\u03a3\\u03b5\\u03c0': 'Sep', # d3e5f0 in iso-8859-7 '\\u039f\\u03ba\\u03c4': 'Oct', # cfeaf4",
"= \\ { \\ '\\u0399\\u03b1\\u03bd': 'Jan', # c9e1ed in iso-8859-7 '\\u03a6\\u03b5\\u03b2': 'Feb', #",
"iso-8859-7 '\\u039c\\u03b1\\u03ce': 'Mar', # cce1fe in iso-8859-7 '\\u0391\\u03c0\\u03c1'... |
[] |
[
"], options={ 'abstract': False, }, ), migrations.AddField( model_name='flight', name='user', field=models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL),",
"to='core.Artifact')), ('flights', models.ManyToManyField(related_name='demo_projects', to='core... |
[
"-w 60 -h 60 -vec output${filename}.vec -maxzangle 0.5 -maxyangle 0.3 -maxxangle 0.3; #",
"in oranges: cv2.rectangle(img,(x,y),(x+w,y+h),(255,0,0),2) imgs = cv2.resize(img, (img.shape[1] / 5, img.shape[0] / 5)) cv2.imshow('img',imgs)",
"-numNeg 1000 -numPos 3000 -numStages 11 -h 60 -w 60 -minHitRate 0.99 -maxFa... |
[
"+ \"/armory_data\" else: os.mkdir(\"armory_data\") data_path = str(pathlib.Path().absolute()) + \"/armory_data\" ARMORY_CONFIG = { 'ARMORY_BASE_PATH':",
"+ \"/tools/armory_custom/modules\" custom_reports = abolute_home + \"/tools/armory_custom/reports\" custom_webapps = abolute_home + \"/tools/armory_webapps\" i... |
[
"attachment targetAddress = base58.b58decode(tx['attachment']).decode() if len(targetAddress) > 1: #check if we already processed",
"(\"sourceAddress\", \"targetAddress\", \"tnTxId\", \"ethTxId\", \"amount\", \"amountFee\") VALUES (\"' + transaction['sender'] + '\", \"'",
"cursor.execute('SELECT height FROM hei... |
[
"remain in PENDING state until all newly provisioned instances have transitioned to RUNNING",
"TERMINATED (in the case where a provider cancels provision). \"\"\" STARTING = \"STARTING\"",
"are being re-started after having been stopped. Some instances may already have started,",
"Individual instances may be ... |
[] |
[
"c.BUY_PRICE: 95, c.SELL_PRICE: 100, c.ORDER_SIZE: 100, c.ORDER_COUNT: 2 }, { c.BUY_PRICE: 100, c.SELL_PRICE:",
"from bitfinex_algo.cli import load_config, validate_config from bitfinex_algo import cli as c logger =",
"import logging import unittest from bitfinex_algo.cli import load_config, validate_config fro... |
[
"\"1\" : cursor.execute(query) names = list(map(lambda x: x[0], cursor.description)) print(\"----------------------------------------------------------------------------------\") print(\"{:5} | {:^20}",
"Comparison == \"<\" or Comparison == \">\" or Comparison == \"=\": query =",
"\"Insert INTO city (name, coun... |
[
"done. elif A is 'no': # if you said no, this will happen:",
"nothing was valid... print 'Error! Invalid transaction! ' # ...error message! print 'Done!'",
"it is done raw_input(\"Press <RETURN> to quit.\") # makes you type <enter> to",
"for a filename A = input('Do you want this to be appended to",
"trick.... |
[
"\"r\") groups = sys.argv[2:] one_to_one = [] ortho_plus_paralog = [] one_to_one_notallspecies = []",
"is_one_to_one = False is_ortho_plus_paralog = False break if line.count(group) > 1: is_one_to_one =",
"in f: is_one_to_one = True is_ortho_plus_paralog = True for group in groups: if",
"line_count = line.cou... |
[
"include from . import views, api_urls urlpatterns = [ url(r'^api/', include(api_urls, namespace='api')) ]",
"__future__ import absolute_import, unicode_literals from django.conf.urls import url, include from . import views,",
"import absolute_import, unicode_literals from django.conf.urls import url, include f... |
[
"on 2020-04-01 13:24 from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('reading',",
"13:24 from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('reading', '0007_auto_20200331_2133'), ]",
"Generated by Django 3.0.4 on 2020-04-01 13:24 f... |
[
"self._ctx.pretty: print(json.dumps(records, indent=4)) return records_by_type = {} types = {} for rec in",
"https://api.cloudflare.com/#zone-list-zones class CF_Zones(object): \"\"\" commands for zones manipulation \"\"\" def __init__(self, ctx): self._ctx",
"(e, e)) if not self._ctx.pretty: print(json.dumps(z... |
[
"JSON and first paint + first contentful paint var resultJson = entry.toJSON(); resultJson.firstPaint",
"as chromeOptions import sys from datetime import datetime import hashlib import uuid import",
"'first-paint') { resultJson.firstPaint = pJson.startTime; } else if (pJson.name == 'first-contentful-paint') { r... |
[
"(C) 2021 by <NAME> email : <EMAIL> ***************************************************************************/ This plugin provides access to",
"the terms of the GNU General Public License as published by * *",
"from qgis.core import QgsApplication from .gui import OhsomeToolsDialog from .proc import provider... |
[] |
[
"== \"__main__\" : rospy.init_node('learn_to_manipulate') sim = Simulation.load_simulation('/home/marcrigter/2019-08-08-11-49_learnt1_key_teleop0.pkl') case_number = 10 sim.run_new_episode(case_number, controller_type =",
"from learn_to_manipulate.simulate import Simulation import rospy if __name__ == \"__main__\... |
[
"from __future__ import unicode_literals structure_key_item = 'enum_item' structure_key_items = 'enum_items' structure_key_item_cn = '枚举类型'",
"unicode_literals structure_key_item = 'enum_item' structure_key_items = 'enum_items' structure_key_item_cn = '枚举类型' structure_key_items_cn = '枚举类型'",
"encoding: utf-8 \"... |
[] |
[
"used by GOTO to do UX. \"\"\" from .text import GotoError, GotoWarning, print_text",
"-*- \"\"\" Text used by GOTO to do UX. \"\"\" from .text import",
"<reponame>technocake/goto # -*- coding: utf-8 -*- \"\"\" Text used by GOTO to do",
"coding: utf-8 -*- \"\"\" Text used by GOTO to do UX. \"\"\" from",
"\"... |
[] |
[
"description=\"JSONEncoder\", long_description=local_text_file(\"README.md\"), long_description_content_type=\"text/markdown\", author=\"NewStore Inc.\", author_email=\"<EMAIL>\", url=\"https://github.com/NewStore-oss/json-encoder\", zip_safe=True, packages=[NAME], namespace_packages=[NAMESPACE], python_requires=\"... |
[
"**kwargs) methodGrouper = sigInfo[\"self\"] orders = methodGrouper.orders key = methodGrouper.get_order_key(func) if sigInfo[\"draw_now\"]: orders.pop(key,",
"_deco_draw_queue(func): \"\"\" Append one order to dict for this func call. Creates a",
"to dict for this func call. Creates a key with id of Part",
"... |
[] |
[
">>f, out_line out_line=\"p4_switch_json=\"+str(switch_json) print >>f, out_line out_line=\"bmv2_exe=\"+str(switch_exe) print >>f, out_line out_line=\"Invoke_mininet_cli=\"+str(cli_opt) print >>f,",
"JSON file...\" # Assumption is that the input topo is in file named",
"data_file: data = json.load(data_file) hn... |