ngram
listlengths
0
82k
[ "RLName = input(\"Last name of the representative: \") Street =", "sql = (\"insert into CourseReq values(\" + ISBN + \",", "(\"insert into Courses values(\\\"\" + CourseName + \"\\\", \\\"\" +", "input(\"Enter quantity: \") Publisher = input(\"Enter publisher: \") Edition =", "= input(\"Edition: \") Languag...
[ "y0)**2.0) res = re * (r - np.sqrt(a * a", "* a)) return res #if __name__ == '__main__': #import pylab", "* ql**2.0)) dx = dx_tmp * cs - dy_tmp *", "import numpy as np def deflection_sub_pJaffe(x0, y0, re, rc, a,", "- x0)**2.0 + (y - y0)**2.0) res = re /", "ext_angle, ext_kappa, x, y): tr = np.pi * (theta...
[ "DetailView): model = User slug_field = \"username\" slug_url_kwarg = \"username\"", "RedirectView): permanent = False def get_redirect_url(self): return reverse(\"users:detail\", kwargs={\"username\": self.request.user.username})", "adapter_class = GitHubOAuth2Adapter class GoogleLogin(SocialLoginView): adapte...
[ "- start_x opposite = end_y - start_y # Get distance", "\"\"\" Return a point Position of intersection.. Args: point_in_3d (OpenMaya.MPoint)", "this is the first click of dragging if self.MOD_FIRST is", "vector_in_3d \"\"\" point_in_3d = OpenMaya.MPoint() vector_in_3d = OpenMaya.MVector() OpenMayaUI.M3dView.a...
[ "[ ('measure_mate', '0011_auto_20160225_1305'), ('measure_mate', '0014_auto_20160224_0207'), ] operations = [ ]", "from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('measure_mate',", "= [ ('measure_mate', '0011_auto_20160225_1305'), ('measure_mate', '0014_auto_20160224_02...
[ "import Start class StartRemaining(Start): def format_datetime(self, start, task): return self.remaining(start)", "from vit.formatter.start import Start class StartRemaining(Start): def format_datetime(self, start, task):", "vit.formatter.start import Start class StartRemaining(Start): def format_datetime(self,...
[ "command\"): return msg def get_line_prefix(lineno, wrap_count): return HTML('<linetoken><b>»</b></linetoken> ') def", "f\"bg:{base01} {base04}\", \"linetoken\": base0C, \"line\": base03, \"base\": f\"bg:{baseA0} {base05}\", \"toolbar\":", "prefix: <c4>[!]</c4> <b>(try !help)</b>\") lexer = GrammarLexer( gramma...
[ "return (False, \"Description not valid\") link = item_dict.get(\"link\") if link", "['name', 'category', 'description', 'link'] for kw in item_dict: if kw", "implemented for this project''' if len(item_description) > 1000: return False", "# for now just test the surface things category =", "now just test t...
[ "whiten: Boolean. Currently we perform the optimization only in the", "fixed or optimized fix_sn: Boolean - whether noise variance is", "M = tf.shape(Zg)[0] D = tf.shape(X)[1] if kern.ktype == \"id\":", "1e-6 class NPODE: def __init__(self,Z0,U0,sn0,kern,jitter=jitter0, summ=False,whiten=True,fix_Z=False,fix_...
[ "= candidate.entries self.stopped = False self.followers = [peer for peer", "!= self.node] self.election_timeout = float(randrange(ELECTION_TIMEOUT_MAX / 2, ELECTION_TIMEOUT_MAX)) def heartbeat(self):", "follower: None') logging.info('========================================================================') ti...
[ ") else: return \"Invalid Query\" def requestToDOBUrl( boroNum, houseNum, houseStreet", "with the reference to the \"BoilerComplianceQueryServlet\". #There should be exactly", "contents.\" webpage = urllib.request.urlopen( url ) soup = BeautifulSoup( webpage.read(),", "for DOB Boiler Data. We assume that the ...
[ "vehicle.set_target_velocity(target_velocity) def angle_reg(angle): \"\"\" Regularize angle into certain bound. default", "transform matrix from actor coord system to world system trans_matrix", "transform = vehicle.get_transform() # transform matrix from actor coord system", "in m/s target_vel = np.array([[s...
[ "the is_found_in_knowledge_base of this ApplicationDependencyVulnerabilitySummary. Indicates if the artifact is", "of this ApplicationDependencyVulnerabilitySummary. :rtype: bool \"\"\" return self._is_found_in_knowledge_base @is_found_in_knowledge_base.setter def", "self._node_id @node_id.setter def node_id(se...
[ "dataclass from typing import Any, Iterable, Sequence import requests ISSUES_API_URL", "+= \"The following issues and pull requests were opened last", "for issue in new) s += \"\\n---------------------------------------------------\\n\\n\" if len(changed) >", "\"[PR] \" s += f\"{issue.title}\\n\" s += f\" ope...
[ "uid) = self.READER.MFRC522_Anticoll() if status != self.READER.MI_OK: return None self.TAG['id']", "status != self.READER.MI_OK: return None (status, uid) = self.READER.MFRC522_Anticoll() if", "uid) if status == self.READER.MI_OK: text = self.READER.MFRC522_Read(8) if text:", "text): tag = self.write_no_bloc...
[ "return [Project(project) for project in json.load(f)] def download_projects_command(args): projects =", "import os.path as path from concurrent.futures import ThreadPoolExecutor import subprocess", "f: return [Project(project) for project in json.load(f)] def download_projects_command(args): projects", "Fals...
[ "= in_recoveries_df live_deaths = in_deaths_df date_today_str = date.today().strftime(\"%-m/%-d/%y\") print(f\"Today's date", "= template_env.get_template(TEMPLATE) sns.set(style=\"ticks\") sns.set_context(\"paper\", rc={\"font.size\":8,\"axes.titlesize\":9,\"axes.labelsize\":10,\"lines.linewidth\": 1.5,'lines.ma...
[ "u\"└\")) self.elems.append(Rect(anchor+Pos(size.row, size.col), color, u\"┘\")) self.elems.append(Rect(anchor+Pos(0, size.col), color, u\"┐\")) def", "Pos(self.current_line, (self.cols - len(table[0]) * cell_size - 7) / 3)", "__add__(self, inc): if type(inc) == tuple: if len(inc) == 2:", "return [] else: # p...
[ "webui_root = \"webui/\" points = [] for i in range(1,", "for i in range(1, len(sys.argv)): points.append(sys.argv[i]) plt.plot(points) plt.ylabel('some numbers') plt.savefig(webui_root", "x windowing matplotlib.use('Agg') import matplotlib.pyplot as plt import sys webui_root", "matplotlib.pyplot as plt impor...
[ "open(\"input/5.test\") as f: poly = f.read().strip() def is_reactable(x,y): return x.lower()==y.lower()", "x.lower()==y.lower() and x.islower() != y.islower() assert(not is_reactable(\"a\", \"a\")) assert(not is_reactable(\"a\",", "if is_reactable(p, q): result = result[:-1] # remove tail else:", "for p in p...
[ "<gh_stars>0 # Generated by Django 2.1.12 on 2019-09-11 05:50 from", "from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('core',", "('core', '0010_auto_20190910_1022'), ] operations = [ migrations.AlterUniqueTogether( name='product', unique_together={('wishlist', 'product_...
[ "myterial import pink, blue_light ''' Searches google scholar for papers", "paper in paper_citations: if paper['paperId'] in citing_brainglobe['id']: continue # avoid", "for {author[\"name\"]}') logger.info(f'Found {len(brainglobe_papers[\"id\"])} brainglobe papers') logger.info('Getting papers citing our", "...
[ "mon year = datetime.datetime.today().year if year == 0 else year", "from requests.compat import urljoin import json import os import datetime", "with the code below # to check if the token", "a way for it to know who is making a", "work the same way. global api_def # read this API", "( stats_response.sta...
[ "get_data(gui) method by the pathfinder to unclutter this # module", "classes import * folder_path = getcwd() grid_path = join(folder_path, \"Grids\")", "25), \"Place Start\") main_gui[\"end_node_button\"] = GridButton((main_gui[\"start_node_button\"].rect.right + 5, main_gui[\"start_node_button\"].rect.top), \...
[ "sections(Ss)) << findall(section(S), section(Id, S), Ss), segment(left, 1), segment(left, 2),", "Ss)) << segments(Side, Ss), segments(Side, segments(Ss)) << findall(segment(Id, S), segment(Side,", "S), Ss), segment(left, 1), segment(left, 2), segment(right, 3), segment(right, 4),", "segment, segments, sectio...
[ "def test_visualize_results(self): column_width = 20 print(\"Generated id:\".rjust(column_width, ' ') +", "' ') + random_util.generate_id()) print(\"Generated uuid:\".rjust(column_width, ' ') + random_util.generate_uuid())", "test_visualize_results(self): column_width = 20 print(\"Generated id:\".rjust(column_w...
[ "help_text='Designates that this user has all permissions without explicitly assigning", "max_length=150, unique=True, validators=[django.contrib.auth.validators.UnicodeUsernameValidator()], verbose_name='username')), ('is_staff', models.BooleanField(default=False, help_text='Designates whether the user", "birt...
[ "max_iters is not None: for iter in range(max_iters): x_fold_train, y_fold_train", "else: if transformer is not None: x_fold_train = transformer.transform(x_fold_train) estimator.fit(x_fold_train,", "self.name) test_proba_evaluation_frame = None if record_predict_proba: logger.time_log('Testing Holdout Partitio...
[ "from almanak.file import compress, decompress, extract, fileinfo __ALL__ = ['compress',", "almanak.file import compress, decompress, extract, fileinfo __ALL__ = ['compress', 'decompress',", "compress, decompress, extract, fileinfo __ALL__ = ['compress', 'decompress', 'extract', 'fileinfo']", "import compress...
[ "= None self._mqtt = None self._mqttConnectingTimestamp = None self._state =", "= 2 STATE_MQTT_CONNECTING = 3 STATE_MQTT_CONNECTED = 4 WLAN_CONNECTION_TIMEOUT_MS =", "mqttUsername, mqttPassword) def initConnection(self): if self._state == STATE_DISCONNECTED: self.__connectWlan() def", "import network import t...
[ "import distutils.core distutils.core.setup( name='Ymir', author='<NAME>', author_email='<EMAIL>', version='0.1dev', packages=['ymir', ], license='LICENSE.txt',", "url='http://pypi.python.org/pypi/Ymir/', description='script to manage La Grange blog http://www.la-grange.net/', long_description=open('README.txt')....
[ "config_fingerprint = None config = None log_writer = None isTrain", "= None config = None log_writer = None isTrain =", "None config = None log_writer = None isTrain = True", "<reponame>yq-wen/probabilistic_nlg config_fingerprint = None config = None log_writer = None" ]
[ "noinspection PyUnresolvedReferences from db import order # noinspection PyUnresolvedReferences from", "<reponame>rcastleman/twilio-and-sendgrid-python-course<gh_stars>10-100 # noinspection PyUnresolvedReferences from db import order # noinspection", "db import order # noinspection PyUnresolvedReferences from d...
[ "models.DateTimeField() message = models.TextField() def __str__(self): # pragma: no cover", "= models.CharField(max_length=50, choices=COMPANY_CHOICES, null=True, blank=True, default=\"Portland State University\") telephone =", "State University Foundation', 'PSU Foundation'), ) psu_uuid = models.CharField(uni...
[ "feature['properties'][k] = v data['features'].append(feature) return data def geojson(*args, **kwargs): encoder", "'type': 'FeatureCollection', 'features': [], } for entry in features: feature", "= { 'type': 'FeatureCollection', 'features': [], } for entry in", "[], } for entry in features: feature = { 'type...
[]
[ "- xCoordinate), 2) yd = math.pow((point[1] - yCoordinate), 2) d", "list() for point in self._points: xd = math.pow((point[0] - xCoordinate),", "= [] class PointFilter: def __init__(self, points): self._points = points", "self._points = points def deletePoints(self, event, xCoordinate, yCoordinate, flags, par...
[ "--dim {dim} \" f\"--order {order} --dt-max {dt_max} --end-time {end_time} -np", "= 2 dt_max = 0.005 end_time = 30 nb_procs =", "10 nx = 8 order = 10 stretch_factor = 0.0", "dt_max = 0.005 end_time = 30 nb_procs = 10 nx", "\"conda activate env-snek\", \"export NEK_SOURCE_ROOT=$HOME/Dev/snek5000/lib/Nek5000\...
[ "str labels: Dict[str, str] statuses: List[str] class SetupConfig(TypedDict): pvc: str", "str mountPath: str remotePath: str localPath: str class Spec(TypedDict): dependencies:", "tests: SetupConfig reports: SetupConfig class Metadata(TypedDict): name: str namespace: str", "str] statuses: List[str] class Setu...
[ "df = pd.read_csv(infile, sep='\\t', header=1) # keep only records with", "print('doing ', nboot, ' iterations...please be patient.....') for n in", "number of bootstraps, default is 1000 -b MIN, MAX, set", "tilt = np.array([1., 1., 1., 0.01*perc]) D, I = pmag.dotilt_V(PDs*tilt)", "sites formatted file [def...
[ "thr = api.Thread.create() data = np.load('8psk_data.npy') data = np.reshape(data, (batch*4,", "input: data: cluda-Array (100, 1024) ----------------------------------------------- output: TS_gpu: cluda-Array (1000,", "Computation, Transformation, Parameter, Annotation, Type from reikna.algorithms import PurePa...
[ "'CUNIT1' : 'deg', 'CDELT1' : -5.0, 'CTYPE2' : 'DEC--PCO', 'CRVAL2'", "0.0, 'CRPIX1' : 50, 'CUNIT1' : 'deg', 'CDELT1' : -5.0,", "the definition of # a rejected jump in the wcsgrat", "gridsamples=2000) grat.setp_lineswcs0(0, lw=2) grat.setp_lineswcs1(0, lw=2) # Remove the left 180", "wxlim=(-180,180), startx...
[ "= QuestionComment fields = ('is_resolved',) class ExamCommentFilter(django_filters.FilterSet): is_resolved = django_filters.BooleanFilter()", "django_filters from .models import QuestionComment, ExamComment class QuestionCommentFilter(django_filters.FilterSet): is_resolved =", "QuestionCommentFilter(django_fil...
[ "<reponame>cnheider/botorch #!/usr/bin/env python3 from .branin import neg_branin from .eggholder import", "import neg_holder_table from .michalewicz import neg_michalewicz from .styblinski_tang import neg_styblinski_tang", "neg_michalewicz from .styblinski_tang import neg_styblinski_tang __all__ = [ \"neg_bran...
[ "self._db = db def getAll(self): cur = self._db.cursor() cur.execute('SELECT *", "donneLe, effectue, interrogation, rendreEnLigne' ') values (?, ?, ?, ?,", "__init__(self, db): self._db = db def getAll(self): cur = self._db.cursor()", "self._db.cursor() cur.execute('INSERT INTO Homework (date, matiere, codeMa...
[ "at once. import csv import json import glob for files", "jsonfile = open(files[:-4] + '.json', 'w') reader = csv.reader(open(files, 'rU'))", "0 out = \"\" for row in reader: if counter", "item temp += '\"' temp += ': \"' temp +=", "Simple Python program that converts CSV to JSON for my", "[] # print row ...
[ "def test_multi_word(self): self.assertMultiLineEqual(test.encrypt('abc wvu'), 'zyx def') #for values of key", "'zyx') def test_string_wrap_around(self): self.assertMultiLineEqual( test.encrypt('wvu'), 'def') def test_multi_word(self): self.assertMultiLineEqual(test.encrypt('abc wvu'),", "test_string_no_wrap_ar...
[ "have a time delay (see line 15) GPIO.setmode(GPIO.BCM) # set", "def LedOn(): print(fBase.put('/data/user_1/',\"LedOn\",\"1\")) print(pSMS.send_message(msgObj)) LedOn=True def LedOff(): if(fBase.get('/data/user_1/','LedOn')==\"1\") : print(fBase.put('/data/user_1/',\"LedOffd\",\"0\"))", "number associated with ...
[ "is exist \"\"\" def get_activate_string(self): pass class ShellExecutorProtocol: def add_to_exec_chain(self,", "= None def validate(self, *args, **kwargs): \"\"\" Make sure that", "\"\"\" def get_activate_string(self): pass class ShellExecutorProtocol: def add_to_exec_chain(self, activate_str): pass", "path ...
[ "assert form.a._value() == \"\" assert form.b._value() == \"9\" form =", "import DummyPostData from wtforms.fields import IntegerField from wtforms.form import Form", "\"9\" form = F(DummyPostData(), data=dict(b=\"v\")) assert form.b.data is None assert", "assert form.b.data is None assert form.b.raw_data == ...
[ "while dumping' in out: raise ErrorUninstallingException def uninstall(package): cmd =", "if not out: res = err if pipe.returncode > 0", "import AbsentPackageException, ErrorInstallingException, ErrorUninstallingException, NotEnoughSpaceException import os def install(new_apk_path): cmd", "run_string = packag...
[ "results\") parser.add_argument(\"epochs\", help=\"Number of epochs\") parser.add_argument(\"-l\", \"--lazy\", dest=\"lazy\", help=\"Load data", "help=\"Output directory for results\") parser.add_argument(\"epochs\", help=\"Number of epochs\") parser.add_argument(\"-l\", \"--lazy\",", "directory res: tuple Inpu...
[ "\"\"\" Module to read the query and other inputs \"\"\"", "The maximum number of search results to be displayed could", "inputs' values :return: query \"\"\" # the email must be", "of 3 per second) Entrez.email = \"<EMAIL>\" # The maximum", "like to use advanced search filter? (yes/no): \") if filter_optio...
[ "join(DATA_PATH, \"database\") if not isdir(DB_PATH): makedirs(DB_PATH) CLIENTS_DB = \"sqlite:///\" +", "makedirs(DATA_PATH) CERTS_PATH = join(DATA_PATH, \"certs\") if not isdir(CERTS_PATH): makedirs(CERTS_PATH) DB_PATH", "isdir(DATA_PATH): makedirs(DATA_PATH) CERTS_PATH = join(DATA_PATH, \"certs\") if not isdi...
[ "i in range(len(l1)): line1 = l1[i].split() line2 = l2[i].split() val", "l2 = open(file2_name, 'r').readlines() res = open('res','w') def run(): for", "/ 2 res.writelines(line1[0] + ' ' + line1[1] + '", "' + line1[2] + ' ' + str(val) + '", "+ ' ' + line1[2] + ' ' + str(val)", "' + line1[1] + ' ' + line1[2...
[ "TODO:把结果输出到TXT? pass def creatFileOrFolder(is_folder: bool, name: str, parent_folder: Folder, file_table:", "len(path_node_list) - 1: # 单纯的查询文件目录树 if IR is None: return", "elif IR[\"operator\"] == \"delFile\": if isinstance(target, Folder): return 0 else:", "def writeFile(file_name: str, content: str, root: ...
[ "help=\"Will ignore scaffolds with length above the given threshold\") parser.add_argument('-a',", "+ true_output+name+\"_no_reduc.busco\\n\") karyonjobfile.write(\"rm -r busco_downloads\\n\") karyonjobfile.close() #5) Create job file", "config_dict ###Selects the main library to use. This is set", "with leng...
[ "sqlite3 db = sqlite3.connect('data.db') c=db.cursor() c.execute('create table users (id integer", "integer primary key, name text, partner text, recieve_date date, partnered_date", "db = sqlite3.connect('data.db') c=db.cursor() c.execute('create table users (id integer primary", "sqlite3.connect('data.db') c...
[ "major, minor, patch = version.split('.') def replace(file_path, pattern, replacement): updated", "date.today().strftime('%Y-%m-%d') major, minor, patch = version.split('.') def replace(file_path, pattern, replacement):", "= date.today().strftime('%Y-%m-%d') major, minor, patch = version.split('.') def replace(...
[]
[ "/ bottleneck) super().__init__(collections.OrderedDict(m for m in [ ('norm1', normalization(in_channels)), ('drop1',", "normalization, activation, dropblock, **kwargs): if stride != 1: super().__init__(collections.OrderedDict(m for", "= round(out_channels / bottleneck) super().__init__(collections.OrderedDict(...
[ "= False newSat2.Graphics.Attributes.QueryInterface(STKObjects.IAgVeGfxAttributesOrbit).IsGroundTrackVisible = False #Buildup Initial State using TwoBody", "= STKObjects.eAscNodeRAAN keplarian.Orientation.AscNode.QueryInterface(STKObjects.IAgOrientationAscNodeRAAN).Value = RAAN keplarian.LocationType = STKObjects...
[]
[ "quotechar=None): \"\"\"Reads a tab separated value file.\"\"\" with tf.gfile.Open(input_file, \"r\")", "tokenization.convert_to_unicode(line[1]) label = \"0\" else: text_a = tokenization.convert_to_unicode(line[3]) label =", "= tokenization.convert_to_unicode(line[0]) label = tokenization.convert_to_unicode(li...
[ "data in file location and saves it as a csv", "pos_tag from nltk.corpus import stopwords, wordnet from nltk.stem.wordnet import WordNetLemmatizer", "do 1) tokenize the message 2) perform POS tagging 3)", "index, row in dataFrame.iterrows(): tokens = word_tokenize(row['message']) pos = pos_tag(tokens)", "- ...
[ "= [] for filename in output_files: feature_count = count_features(filename) if", "profile.get(\"columns\"): return len(profile[\"columns\"].keys()) return 0 def get_json_profile(json_profile_filename): profile = {}", "file) output_files += [full_file_path] else: for file in file_names: full_file_path", "is n...
[ "in source and binary forms, with or without modification, #", "FOR ANY DIRECT, # INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL", "# and/or other materials provided with the distribution. # #", "ANY DIRECT, # INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES", "provided that th...
[ ">= 1: for start in range(gap): gap_insertion_sort(arr, start, gap) gap", "gap): n = len(arr) for i in range(start, n, gap):", "class Test(unittest.TestCase): def test_shell_sort(self): arr = [3,6,9,7,8,4,2,5,1,9,6] self.assertEqual(shell_sort(arr), [1,2,3,4,5,6,6,7,8,9,9]); if", "j -= gap class Test(unittest...
[ "by <NAME>, see AUTHORS :license: United States Geological Survey (USGS),", "parameter.max == 12.0 assert parameter.min == 1.0 def test_max_min_date(dates_daily): parameter", "code = \"06_00060_00003\", values = np.array([1, 2, 3, np.nan, 12]))", "\"cubic feet per second (Mean)\", code = \"06_00060_00003\", v...
[ "algo = bool(input(\"Digite alguma coisa: \")) print(\"O valor {} é", "= bool(input(\"Digite alguma coisa: \")) print(\"O valor {} é int?\".format(algo).isnumeric())" ]
[ "b != c and b != d and c !=", "c in k: for d in k: if a !=", "for a in k: for b in k: for c", "and a != d and b != c and b", "d and b != c and b != d and", "a != b and a != c and a !=", "and b != c and b != d and c", "k: for b in k: for c in k: for", "in k: for c in k: for d in k:", "全排列2 求1、2、3、4...
[ "'project_version': PROJECT_VERSION, 'project_name': PROJECT_NAME, 'zone_name': get_zone(request), 'current_period': get_current_month_fr(), 'water_outlets': get_outlets(request),", "= { 'project_version': PROJECT_VERSION, 'project_name': PROJECT_NAME, 'zone_name': get_zone(request), 'current_period': get_current...
[ "'amount': current_asset, } try: latest_date = self.db.cur.fetchone()[0] except TypeError: self.db.insert(table,", "None: table = 'current_asset' query = (f'SELECT date FROM {table}", "(f'SELECT date FROM {table} ' f'WHERE id=(SELECT MAX(id) FROM {table});')", "FROM {table} ' f'WHERE id=(SELECT MAX(id) FROM {...
[ "prints a # traceback in case of exception def f(*args,", "except Exception as exc: msg = '{0.info}\\n{0.__name__}: {0.args[0]}'.format(exc) import sys", "used to stop loops that last more than x seconds", "return int(window.requestAnimationFrame(func)) def cancel_animation_frame(int_id): window.cancelAnimati...
[ "s3_key['Key'] if \"drift-serverdaemon-\" in filename: lst = filename.split(\"-\")[-1].split(\".\") try: file_version", "if is_more: max_version = file_version max_key = filename if not", "file (taken from zipfile's extract) filename = \"/\".join(member.split(\"/\")[1:]) source =", "max_version[2]: is_more = ...
[ "import Optional from pydantic import BaseModel, EmailStr class EmailSub(BaseModel): email:", "search patterns salary_max: Optional[int] = 0 salary_min: Optional[int] = 0", "class EmailSub(BaseModel): email: EmailStr = None # search patterns salary_max:", "from pydantic import BaseModel, EmailStr class EmailS...
[ "assoc, obo_dag, log): \"\"\"Get the terms in the study group", "terms in the study group \"\"\" term_cnt = Counter() for", "in assoc] for gene in genes: for x in assoc[gene]:", "in assoc): for x in assoc[gene]: if x in obo_dag:", "min_ratio # Copyright (C) 2010-2016, <NAME> al., All rights reserved.", "t...
[ "from cartpole.cartpole_sim import cartpole_policy def train(env_id, num_timesteps, seed=0): U.make_session(num_cpu=1).__enter__() def", "clip_param=0.2, entcoeff=0.0, optim_epochs=10, optim_stepsize=3e-4, optim_batchsize=64, gamma=0.99, lam=0.95, schedule='linear', ) env.close()", "'__main__': logger.configure...
[ "\"wooden door, 'an' oak door)\"}), (\"name\", {\"type\": \"str\", \"tooltip\": \"name", "__init__(self): if not hasattr(self, \"spec\"): raise RuntimeError(\"%s instance has no", "\"label\": \"keypad prompt\", \"tooltip\": \"String \" \"used to prompt player", "{\"type\": \"bool\", \"tooltip\": \"Enable/disa...
[ "pass def tearDown(self): pass def test_stopwatch(self): stopwatch = Stopwatch() for", "utf-8 import time import unittest from timingsutil import Stopwatch import", "def tearDown(self): pass def test_stopwatch(self): stopwatch = Stopwatch() for _", "class TestConfiguration(unittest.TestCase): def setUp(self):...
[ "\"\"\" carrega o arquivo de procedimentos de aproximação @param fs_apx_pn:", "as informações sobre o dicionário de procedimento de aproximação <aproximacao", "ls_msg # retorna Ok return True, None # --------------------------------------------------------------------------------------------- def", "procedime...
[ "# relative velocity in tangent direction normal_velocity = v_contactF_B.dot(normal) #", "next_finger2_state = box_two_finger_step( current_box_state, current_finger1_state, current_finger1_state_desired, current_finger2_state, current_finger2_state_desired, finger_control_stiffness, )", "box_size, mu_d, c, psi...
[ "Django 3.1.5 on 2021-01-18 03:51 import django.core.validators from django.db import", "[ migrations.AlterField( model_name='class', name='cost', field=models.DecimalField(decimal_places=2, max_digits=8), ), migrations.AlterField( model_name='review', name='rating',", "migrations, models class Migration(migrat...
[ "cur.execute( sttm, ( 3, ) ) # for r in", "test_proc ( a_dts timestamp) returns ( o_dts timestamp) as #", ") ) # for r in cur: # print(r[0]) #", "python_act('db_1', test_script_1, substitutions=substitutions_1) expected_stdout_1 = \"\"\" 2019-03-01 00:00:00 \"\"\" @pytest.mark.version('>=2.5')", "in express...
[ "= \"2018-01-01\" date_to = \"2018-01-02\" tmp_df = pd.DataFrame(np.array(range(24)), columns=[\"hour_of_day\"]) tmp_df[\"key\"]", "\"revenue\": RevenueDateHoWModule(revenue_priors, revenue_base_classes, seed), \"competitive_cpc\": CompetitiveCpcDateHoWModule(competitive_cpc_priors, competitive_cpc_base_classes, ...
[ "toma import toma from batchbald_redux import joint_entropy # Cell def", "torch.empty(N, dtype=torch.double) pbar = tqdm(total=N, desc=\"Entropy\", leave=False) @toma.execute.chunked(logits_N_K_C, 1024) def", "= torch.empty(N, dtype=torch.double) pbar = tqdm(total=N, desc=\"Conditional Entropy\", leave=False) @...
[ "re; import subprocess; cmd=\"\\nfind . -name \\\"*nti21_cut.grd\\\"\\n\"; pipe=subprocess.Popen(cmd,shell=True,stdout=subprocess.PIPE).stdout; ntis=pipe.read().split(); pipe.close();", "\"0\": print(jday+\" \"+zmax+\" \"+vdir+\" \"+image); #if zmax != \"0\" and", "print(jday+\" \"+zmax+\" \"+vdir+\" \"+image);...
[]
[ "shutil.rmtree(os.path.join(root, d)) a = QApplication(sys.argv) w = FullscreenWindow(a) sys.exit(a.exec_()) #", "= msface.face_identify(faceid) if detected_personid: print \"detected_personid = \" + str(detected_personid)", "print \"detected_personid = \" + str(detected_personid) comm = \"SELECT *", "global ...
[ "print(\"skipping \", count) count += 1 continue else: print(\"writting \",", "fc = f.read() fcbRegex = re.compile(r\"line(\\s\\d+)\") clear = re.findall(fcbRegex,fc) for", "for row in reader: if count in arr: print(\"skipping \",", "= csv.reader(open('amazon_reviews_us_Watches_v1_00.tsv', 'r',encoding=\"utf8...
[ "THX Task succeeded with result data # ONO {result} THX", "context.socket(zmq.REQ) logger.debug(\"Connecting\") socket.connect(server_url) socket.RCVTIMEO = int(1000 * timeout) try: _do_handshake(socket,", "logger.debug(\"Exception processing task\") # Everything else: We want to pass", "socket.send(b\"IGIVEU...
[ "args['from_date'] = user_time(req, format_date, data['prev_week']) args['to_date'] = user_time(req, format_date, from_date_raw)", "entry['ticket'] if ticket not in worker_hours: worker_hours[ticket] = 0 worker_hours[ticket]", "sum(hours[-1] for hours in worker_hours) if req.args.get('format') == 'csv': req.sen...
[ "<gh_stars>100-1000 import shutil import unittest import os from running_modes.configurations import", "not os.path.isdir(self.workfolder): os.makedirs(self.workfolder) self.log_dir = os.path.join(self.workfolder, \"test_log\") log_config = TransferLearningLoggerConfig(logging_path=self.log_dir,", "RunningModeE...
[ "= self._indices_selected np.random.shuffle(indices) return iter(indices) def __len__(self): return self._length class", "return img, label, idx, pseudo_label return img, label, idx def", "= self._pseudo_labels[idx] return img, label, idx, pseudo_label return img, label,", "self._transform is not None: return...
[ "subtract WM mask to obtain CSF mask sct.run('fslmaths tmp.WM_all_bin_dil -sub", "as nib path_sct = os.environ.get(\"SCT_DIR\", os.path.dirname(os.path.dirname(__file__))) # append path that", "get_tracts(tracts_folder): \"\"\"Loads tracts in an atlas folder and converts them", "if it is the 2D image instead ...
[ "CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF", "software, either in source code form or as a compiled", "a compiled binary, for any purpose, commercial or non-commercial, and", "distribute this software, either in source code form or as", "MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND...
[ "0), (0, 1), (-1, 0), (0, -1), (1, 1), (-1,", "adjecant_sum += values[(x_1, y_1)] values[(x, y)] = adjecant_sum if not", "step >= length: direction = (direction + 1) % 4", "= 0 first, second = False, False while not (first", "adjecant squares adjecant_sum = 0 for d in directions: x_1", "(0, 1), (-1, 0), (...
[ "for i in pro: if ' Key Content : '", "try: users.append(i[27:]) except: pass with open(\"keys.txt\",'a') as w: w.write(\"-------------------------\\n\") for", "from sys import exit def main(): startupinfo = subprocess.STARTUPINFO() startupinfo.dwFlags", "in [\"\",\" \"]: continue e=(\"\\\"\"+e+\"\\\"\") pro=...
[ "setup( name='pyr', version='0.4.1', description='A nicer REPL for Python.', author='<NAME>', author_email='<EMAIL>',", "name='pyr', version='0.4.1', description='A nicer REPL for Python.', author='<NAME>', author_email='<EMAIL>', url='https://github.com/zain/pyr',", "#!/usr/bin/env python from setuptools impor...
[ "100 interp_x = np.zeros(tuple([n_spline] + list(xindx.shape))) interp_y = np.zeros(interp_x.shape) interp_lam", "outdir: String Directory in which to put the file. The", "+ list(xindx.shape))) interp_y = np.zeros(interp_x.shape) interp_lam = np.linspace(lam1, lam2, n_spline)", "list of length (order+1)*(orde...