content
stringlengths
1
1.05M
input_ids
listlengths
1
883k
ratio_char_token
float64
1
22.9
token_count
int64
1
883k
import os from time import sleep import requests querysub0 = 'https://linkeddata1.calcul.u-psud.fr/sparql?default-graph-uri=&query=construct%7B+%3Fs+%3Fp+%3Fo%7D+where+%7B+%0D%0Aselect+distinct+%3Fs+%3Fp+%3Fo+where+%7B%0D%0A%7B%0D%0A%3Fs1+++%3Chttp%3A%2F%2Fyago-knowledge.org%2Fresource%2FactedIn%3E+++%3Fs+.%0D%0A%3Fs2...
[ 11748, 28686, 198, 6738, 640, 1330, 3993, 198, 11748, 7007, 198, 198, 10819, 893, 549, 15, 796, 705, 5450, 1378, 8726, 6048, 1045, 16, 13, 9948, 3129, 13, 84, 12, 862, 463, 13, 8310, 14, 82, 1845, 13976, 30, 12286, 12, 34960, 12, ...
1.877612
670
''' Created on Apr 12, 2011 @author: svenkratz ''' import TestGestures import Protractor3D.Protractor3D from Protractor3D.Protractor3D import * triangle = triplify(TestGestures.Triangle) print triangle circle1 = triplify(TestGestures.Circle_1) circle2 = triplify(TestGestures.Circle_2) rectangle = triplify(TestG...
[ 7061, 6, 198, 41972, 319, 2758, 1105, 11, 2813, 198, 198, 31, 9800, 25, 264, 574, 74, 10366, 89, 198, 7061, 6, 628, 198, 11748, 6208, 38, 395, 942, 198, 11748, 5038, 40450, 18, 35, 13, 19703, 40450, 18, 35, 198, 6738, 5038, 40450,...
2.727473
455
#!/usr/bin/env python # -*- coding: utf-8 -*- # # @Author: Jos Snchez-Gallego (gallegoj@uw.edu) # @Date: 2021-03-24 # @Filename: test_hal.py # @License: BSD 3-clause (http://www.opensource.org/licenses/BSD-3-Clause) import pytest from hal import __version__ pytestmark = [pytest.mark.asyncio]
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 198, 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 2, 198, 2, 2488, 13838, 25, 22568, 5489, 2395, 89, 12, 26552, 1455, 78, 357, 13528, 1455, 13210, 31, 84, 86, 13, 15...
2.328125
128
import numpy as np if __name__ == '__main__': with open('input.txt') as f: pin = np.array([int(x) for x in f.read().split(',')]) distances = np.abs(pin[None, :] - np.arange(pin.max() + 1)[:, None]) total_fuel = np.sum(distances, axis=1) print(f'Solution 1: {total_fuel.min()}') distances...
[ 11748, 299, 32152, 355, 45941, 628, 198, 198, 361, 11593, 3672, 834, 6624, 705, 834, 12417, 834, 10354, 198, 220, 220, 220, 351, 1280, 10786, 15414, 13, 14116, 11537, 355, 277, 25, 198, 220, 220, 220, 220, 220, 220, 220, 6757, 796, ...
2.242424
198
# Generated by Django 2.2.10 on 2020-05-18 10:49 from django.db import migrations
[ 2, 2980, 515, 416, 37770, 362, 13, 17, 13, 940, 319, 12131, 12, 2713, 12, 1507, 838, 25, 2920, 198, 198, 6738, 42625, 14208, 13, 9945, 1330, 15720, 602, 628 ]
2.8
30
#!/usr/bin/env python # -*- coding: utf-8 -*- # Python version: 3.6 import numpy as np from torchvision import datasets, transforms import logging import random import torch # Settings for a multiplicative linear congruential generator (aka Lehmer # generator) suggested in 'Random Number Generators: Good # Ones ...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 198, 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 2, 11361, 2196, 25, 513, 13, 21, 628, 198, 11748, 299, 32152, 355, 45941, 198, 6738, 28034, 10178, 1330, 40522, 11, 3...
2.035028
5,310
#! /usr/bin/python3 # Author: gaurav512 ''' Script written to scrape basic information about a Codeforces profile given the user id Usage: Enter the userid as command line argument OR as the input after running the following in terminal- python3 codeforces.py [userid] ''' import requests, bs4, sys if __name__ =...
[ 2, 0, 1220, 14629, 14, 8800, 14, 29412, 18, 198, 198, 2, 6434, 25, 308, 2899, 615, 25836, 198, 198, 7061, 6, 12327, 3194, 284, 42778, 4096, 1321, 546, 257, 220, 198, 43806, 891, 273, 728, 7034, 1813, 262, 2836, 4686, 198, 28350, 2...
3.166667
108
#!/usr/bin/env python # -*- coding: utf-8 -*- # # test_combinator.py # # Copyright 2020 QuatroPe # # This file is part of ProperImage (https://github.com/quatrope/ProperImage) # License: BSD-3-Clause # Full Text: https://github.com/quatrope/ProperImage/blob/master/LICENSE.txt # """ test_combinator module from Proper...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 198, 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 2, 198, 2, 220, 1332, 62, 785, 8800, 1352, 13, 9078, 198, 2, 198, 2, 220, 15069, 12131, 2264, 47756, 6435, 198, 2, ...
2.692308
195
''' parameter --------- df:woe,logit logitsklearn, return ------ Score example: df= cal_score(df,logit) '''
[ 220, 220, 220, 220, 198, 7061, 6, 198, 17143, 2357, 198, 45537, 198, 7568, 25, 86, 2577, 11, 6404, 270, 198, 6404, 896, 74, 35720, 11, 198, 198, 7783, 198, 23031, 198, 220, 220, 220, 15178, 198, 198, 20688, 25, 198, 220, 220, 220,...
1.955882
68
#! /usr/bin/env python3 """ Runs process_logdata_ekf.py on the .ulg files in the supplied directory. ulog files are skipped from the analysis, if a corresponding .pdf file already exists (unless the overwrite flag was set). """ # -*- coding: utf-8 -*- import argparse import os, glob from process_logdata_ekf import p...
[ 2, 0, 1220, 14629, 14, 8800, 14, 24330, 21015, 18, 198, 37811, 198, 10987, 82, 1429, 62, 6404, 7890, 62, 988, 69, 13, 9078, 319, 262, 764, 377, 70, 3696, 287, 262, 14275, 8619, 13, 334, 6404, 3696, 389, 26684, 422, 262, 3781, 11, ...
3.056452
124
import inspect import warnings from pathlib import Path
[ 11748, 10104, 198, 11748, 14601, 198, 6738, 3108, 8019, 1330, 10644, 628, 198 ]
4.461538
13
# Python import logging from os import path # Abstract from genie.abstract import Lookup # Parser from genie.libs import parser from genie.metaparser.util.exceptions import SchemaEmptyParserError # unicon from unicon.eal.dialogs import Statement, Dialog log = logging.getLogger(__name__) def save_device_informatio...
[ 2, 11361, 198, 11748, 18931, 198, 6738, 28686, 1330, 3108, 198, 198, 2, 27741, 198, 6738, 2429, 494, 13, 397, 8709, 1330, 6803, 929, 198, 198, 2, 23042, 263, 198, 6738, 2429, 494, 13, 8019, 82, 1330, 30751, 198, 6738, 2429, 494, 13,...
2.316143
1,338
import matplotlib.pyplot as plt import numpy as np from labellines import labelLines # # Trying to get interpolation to work but getting error: # # ValueError: The number of derivatives at boundaries does not match: expected 1, got 0+0 # from scipy.interpolate import make_interp_spline, BSpline # n_users = np.array([1...
[ 11748, 2603, 29487, 8019, 13, 9078, 29487, 355, 458, 83, 198, 11748, 299, 32152, 355, 45941, 198, 6738, 2248, 695, 1127, 1330, 6167, 43, 1127, 198, 198, 2, 1303, 31165, 284, 651, 39555, 341, 284, 670, 475, 1972, 4049, 25, 198, 2, 13...
2.357717
1,244
# import the necessary packages import argparse import cv2 import numpy as np from polydomino.colordescriptor import ColorDescriptor from polydomino.searcher import Searcher # construct the argument parser and parse the arguments ap = argparse.ArgumentParser() ap.add_argument( "-i", "--index", required=T...
[ 2, 1330, 262, 3306, 10392, 198, 11748, 1822, 29572, 198, 198, 11748, 269, 85, 17, 198, 11748, 299, 32152, 355, 45941, 198, 198, 6738, 7514, 3438, 2879, 13, 4033, 585, 3798, 1968, 273, 1330, 5315, 24564, 1968, 273, 198, 6738, 7514, 343...
2.828854
707
import click from irekua_dev_tools.utils import load_config from irekua_dev_tools.utils import get_working_directory from irekua_dev_tools.utils import load_environment_variables from irekua_dev_tools.utils import load_repository_info from . import git from . import dev from . import config from . import db from .ex...
[ 11748, 3904, 198, 198, 6738, 35918, 74, 6413, 62, 7959, 62, 31391, 13, 26791, 1330, 3440, 62, 11250, 198, 6738, 35918, 74, 6413, 62, 7959, 62, 31391, 13, 26791, 1330, 651, 62, 16090, 62, 34945, 198, 6738, 35918, 74, 6413, 62, 7959, ...
2.980769
156
from optimism.JaxConfig import * from optimism import MinimizeScalar from optimism.test import TestFixture from optimism.material import J2Plastic df = jacfwd(f) if __name__ == '__main__': TestFixture.unittest.main()
[ 6738, 24323, 13, 41, 897, 16934, 1330, 1635, 198, 6738, 24323, 1330, 1855, 48439, 3351, 282, 283, 198, 6738, 24323, 13, 9288, 1330, 6208, 37, 9602, 198, 198, 6738, 24323, 13, 33665, 1330, 449, 17, 3646, 3477, 198, 7568, 796, 474, 330,...
2.829268
82
# -*- coding: utf-8 -*- """ import datetime from anima import defaults defaults.timing_resolution = datetime.timedelta(minutes=10) from anima.ui import SET_PYSIDE2 SET_PYSIDE2() from anima.ui.widgets.review import APPROVE, REQUEST_REVISION from anima.ui import review_dialog review_dialog.UI(review_type=REQUEST_REVIS...
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 37811, 198, 11748, 4818, 8079, 198, 6738, 2355, 64, 1330, 26235, 198, 12286, 82, 13, 16514, 278, 62, 29268, 796, 4818, 8079, 13, 16514, 276, 12514, 7, 1084, 1769, 28, ...
2.858108
296
import math import re from itertools import permutations from logging import getLogger from typing import Tuple, Union from rpy2 import robjects from rpy2.rinterface_lib.embedded import RRuntimeError from z3 import BitVecVal from .. import util, results from ..decider import RowNumberInfo from ..program import LineIn...
[ 11748, 10688, 198, 11748, 302, 198, 6738, 340, 861, 10141, 1330, 9943, 32855, 198, 6738, 18931, 1330, 651, 11187, 1362, 198, 6738, 19720, 1330, 309, 29291, 11, 4479, 198, 198, 6738, 374, 9078, 17, 1330, 3857, 752, 82, 198, 6738, 374, ...
3.479675
123
# -*- coding: utf-8 -*- """ ------ What is this file? ------ This script targets the istanbul_airbnb_raw.csv file. It cleans the .csv file in order to prepare it for further analysis """ #%% --- Import Required Packages --- import os import pathlib from pathlib import Path # To wrap around filepaths impor...
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 37811, 198, 23031, 1867, 318, 428, 2393, 30, 40103, 198, 198, 1212, 4226, 6670, 262, 318, 38006, 15065, 62, 958, 31971, 62, 1831, 13, 40664, 2393, 13, 632, 20658, 262, ...
2.301676
3,401
import time import select import queue import atexit import sys import logging from networkdevice import ShureNetworkDevice from channel import chart_update_list, data_update_list # from mic import WirelessMic # from iem import IEM NetworkDevices = [] DeviceMessageQueue = queue.Queue() # @atexit.register # atex...
[ 11748, 640, 198, 11748, 2922, 198, 11748, 16834, 198, 11748, 379, 37023, 198, 11748, 25064, 198, 11748, 18931, 198, 198, 6738, 3127, 25202, 1330, 911, 495, 26245, 24728, 198, 6738, 6518, 1330, 8262, 62, 19119, 62, 4868, 11, 1366, 62, 19...
3.149254
134
import enum QUEUED = Status.QUEUED STARTED = Status.STARTED FINISHED = Status.FINISHED ERROR = Status.ERROR
[ 11748, 33829, 198, 198, 48, 8924, 52, 1961, 796, 12678, 13, 48, 8924, 52, 1961, 198, 2257, 7227, 1961, 796, 12678, 13, 2257, 7227, 1961, 198, 20032, 18422, 1961, 796, 12678, 13, 20032, 18422, 1961, 198, 24908, 796, 12678, 13, 24908, 1...
2.595238
42
"""Simulation 1:1:1 comptition binding""" import numpy as np from high_accuracy_binding_equations import * # We can choose to work in a common unit, typically nM, or uM, as long as all # numbers are in the same unit, the result is valid. We assume uM for all # concentrations bellow. # First, lets simulate a few sin...
[ 37811, 8890, 1741, 352, 25, 16, 25, 16, 401, 457, 653, 12765, 37811, 198, 198, 11748, 299, 32152, 355, 45941, 198, 6738, 1029, 62, 4134, 23843, 62, 30786, 62, 4853, 602, 1330, 1635, 198, 198, 2, 775, 460, 3853, 284, 670, 287, 257, ...
3.111465
314
import numpy as np from pathlib import Path import sys if __name__ == '__main__': # absolute path my_path = Path(__file__).parent.resolve().expanduser() main_path = my_path.parent.parent seed = 0 nlat = 10 alpha = 1.0 beta = 6.0 gamma = 1.0 epochs = 100 # cmd...
[ 11748, 299, 32152, 355, 45941, 201, 198, 6738, 3108, 8019, 1330, 10644, 201, 198, 11748, 25064, 201, 198, 201, 198, 361, 11593, 3672, 834, 6624, 705, 834, 12417, 834, 10354, 201, 198, 201, 198, 220, 220, 220, 1303, 4112, 3108, 201, 19...
1.9325
400
########################################################################## # # Unit tests (pytest) for load.py # ########################################################################## # SimFin - Simple financial data for Python. # www.simfin.com - www.github.com/simfin/simfin # See README.md for instructions and LI...
[ 29113, 29113, 7804, 2235, 198, 2, 198, 2, 11801, 5254, 357, 9078, 9288, 8, 329, 3440, 13, 9078, 198, 2, 198, 29113, 29113, 7804, 2235, 198, 2, 3184, 18467, 532, 17427, 3176, 1366, 329, 11361, 13, 198, 2, 7324, 13, 14323, 15643, 13, ...
2.746084
1,213
import sys from plum import Dispatcher B = sys.modules[__name__] # Allow both import styles. dispatch = Dispatcher() # This dispatch namespace will be used everywhere. from .generic import * from .shaping import * from .linear_algebra import * from .random import * from .numpy import * from .types import * from ...
[ 11748, 25064, 198, 198, 6738, 22802, 1330, 3167, 8071, 2044, 198, 198, 33, 796, 25064, 13, 18170, 58, 834, 3672, 834, 60, 220, 1303, 22507, 1111, 1330, 12186, 13, 198, 6381, 17147, 796, 3167, 8071, 2044, 3419, 220, 1303, 770, 27965, 2...
3.125874
143
# coding: utf-8 from nbgrader.api import Gradebook from nbgrader.apps import ExportApp as BaseExportApp from traitlets import Instance from traitlets import Type from traitlets import default from ..plugins import CanvasCsvExportPlugin from ..plugins import CustomExportPlugin aliases = { "log-level": "Applicatio...
[ 2, 19617, 25, 3384, 69, 12, 23, 198, 198, 6738, 299, 65, 2164, 5067, 13, 15042, 1330, 22653, 2070, 198, 6738, 299, 65, 2164, 5067, 13, 18211, 1330, 36472, 4677, 355, 7308, 43834, 4677, 198, 6738, 1291, 2578, 912, 1330, 2262, 590, 19...
2.938596
228
""" django_ocr_server/conf.py +++++++++++++++++++++++++ The settings manager for **django_ocr_server**. Usage: .. code-block:: python from django_ocr_server.conf import ocr_settings # Next line will print a value of **OCR_TESSERACT_LANG** # using the variable from the Django's *settings.py* file # if the variab...
[ 37811, 198, 28241, 14208, 62, 1696, 62, 15388, 14, 10414, 13, 9078, 198, 44627, 25128, 10, 198, 198, 464, 6460, 4706, 329, 12429, 28241, 14208, 62, 1696, 62, 15388, 1174, 13, 198, 198, 28350, 25, 198, 198, 492, 2438, 12, 9967, 3712, ...
3.098859
263
from django.apps import AppConfig
[ 6738, 42625, 14208, 13, 18211, 1330, 2034, 16934, 198 ]
3.777778
9
import math import numpy as np from openeye import oechem from torsion.inchi_keys import get_torsion_oeatom_list, get_torsion_oebond def GetPairwiseDistanceMatrix(icoords, jcoords): ''' input: two sets of coordinates, icoords, jcoords; each of which are a list of OEDoubleArray(3) containing x, y, a...
[ 11748, 10688, 198, 11748, 299, 32152, 355, 45941, 198, 6738, 1280, 25379, 1330, 267, 721, 4411, 198, 6738, 256, 669, 295, 13, 8589, 72, 62, 13083, 1330, 651, 62, 83, 669, 295, 62, 2577, 37696, 62, 4868, 11, 651, 62, 83, 669, 295, ...
2.098945
1,991
""" Candidate generation & LTR Learning to Ranking""" # -*- coding: utf-8 -*- from __future__ import absolute_import from __future__ import division from __future__ import print_function import os import sys import argparse from operator import itemgetter from math import sqrt import pandas as pd import pymysql from ...
[ 37811, 40327, 5270, 1222, 406, 5446, 18252, 284, 45407, 37811, 198, 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 6738, 11593, 37443, 834, 1330, 4112, 62, 11748, 198, 6738, 11593, 37443, 834, 1330, 7297, 198, 6738, 11...
2.591255
526
from datetime import timedelta from airflow import DAG from airflow.utils.dates import days_ago from airflow.operators.python_operator import PythonOperator from tweetstream.consumers.twitter_streaming import TwitterStreamingConsumer from tweetstream.clients.spark import SparkClient default_args = { "owner": "twee...
[ 6738, 4818, 8079, 1330, 28805, 12514, 198, 6738, 45771, 1330, 360, 4760, 198, 6738, 45771, 13, 26791, 13, 19581, 1330, 1528, 62, 3839, 198, 6738, 45771, 13, 3575, 2024, 13, 29412, 62, 46616, 1330, 11361, 18843, 1352, 198, 6738, 6126, 55...
2.71885
313
from polyphony import testbench test()
[ 6738, 7514, 23021, 1330, 1332, 26968, 198, 198, 9288, 3419, 198 ]
3.636364
11
#!/usr/bin/python from setuptools import setup, find_packages from codecs import open with open('README.rst', 'r', 'utf-8') as fd: long_description = fd.read() setup(name='ipynb_format', version='0.1.1', description='A code formatter for python code in ipython notebooks', long_description=long_...
[ 2, 48443, 14629, 14, 8800, 14, 29412, 198, 198, 6738, 900, 37623, 10141, 1330, 9058, 11, 1064, 62, 43789, 198, 6738, 40481, 82, 1330, 1280, 198, 198, 4480, 1280, 10786, 15675, 11682, 13, 81, 301, 3256, 705, 81, 3256, 705, 40477, 12, ...
2.348115
451
# -*- coding: utf-8 -*- feet = eval(input("Enter a value for feet: ")) meter = feet * 0.305 print (feet, "feet is %.4f meters" %(meter))
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 198, 39690, 796, 5418, 7, 15414, 7203, 17469, 257, 1988, 329, 3625, 25, 366, 4008, 198, 198, 27231, 796, 3625, 1635, 657, 13, 22515, 198, 198, 4798, 357, 39690, 11, 36...
2.413793
58
from mxnet import gluon from mxnet.gluon import HybridBlock from ceecnet.nn.layers.conv2Dnormed import * from ceecnet.utils.get_norm import * from ceecnet.nn.layers.attention import * # ======= Definitions for CEEC unit v2 (replace concatenations with Fusion ========================= # -----------------------...
[ 6738, 285, 87, 3262, 1330, 1278, 84, 261, 198, 6738, 285, 87, 3262, 13, 70, 2290, 261, 1330, 29481, 12235, 198, 6738, 2906, 721, 3262, 13, 20471, 13, 75, 6962, 13, 42946, 17, 35, 27237, 276, 1330, 1635, 198, 6738, 2906, 721, 3262, ...
4.705357
112
from django.db.models import Q from haystack import indexes from reviewboard.reviews.models import ReviewRequest
[ 6738, 42625, 14208, 13, 9945, 13, 27530, 1330, 1195, 198, 6738, 27678, 25558, 1330, 39199, 198, 198, 6738, 2423, 3526, 13, 19023, 82, 13, 27530, 1330, 6602, 18453, 628 ]
3.965517
29
from .statement import Statement, StatementType from .event import Event from ._helpers import debugmsg, simulation_error
[ 6738, 764, 26090, 1330, 21983, 11, 21983, 6030, 198, 6738, 764, 15596, 1330, 8558, 198, 6738, 47540, 16794, 364, 1330, 14257, 19662, 11, 18640, 62, 18224, 198 ]
4.518519
27
REDIS_URL = "redis://redis:6379/0" DEBUG = True TESTING = False JOBS = [ { 'id': 'actoken_refresh', 'func': 'actoken:refresh', 'args': None, 'trigger': 'interval', 'seconds': 7000 } ]
[ 22083, 1797, 62, 21886, 796, 366, 445, 271, 1378, 445, 271, 25, 21, 29088, 14, 15, 1, 198, 30531, 796, 6407, 198, 51, 6465, 2751, 796, 10352, 198, 198, 45006, 4462, 796, 685, 198, 220, 220, 220, 1391, 198, 220, 220, 220, 220, 220,...
1.918033
122
from shutil import copy, copytree, rmtree import pathlib import os import time def update(): """Update is a script to auto update all the files that the user is using""" print('Warehouse Hub is updating, do not close this window...') time.sleep(3) print('Applying patch...') time.sleep(1) c...
[ 6738, 4423, 346, 1330, 4866, 11, 4866, 21048, 11, 374, 16762, 631, 198, 11748, 3108, 8019, 198, 11748, 28686, 198, 11748, 640, 628, 198, 4299, 4296, 33529, 198, 220, 220, 220, 37227, 10260, 318, 257, 4226, 284, 8295, 4296, 477, 262, 3...
2.873518
253
import functools import tensorflow as tf from core import trainer_video, input_reader from core.model_builder import build_man_model from google.protobuf import text_format from object_detection.builders import input_reader_builder from object_detection.protos import input_reader_pb2 from object_detection.protos import...
[ 11748, 1257, 310, 10141, 198, 11748, 11192, 273, 11125, 355, 48700, 198, 6738, 4755, 1330, 21997, 62, 15588, 11, 5128, 62, 46862, 198, 6738, 4755, 13, 19849, 62, 38272, 1330, 1382, 62, 805, 62, 19849, 198, 6738, 23645, 13, 11235, 672, ...
2.601371
1,021
# -*- coding: utf-8 -*-
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 628 ]
1.785714
14
# -*- coding: utf-8 -*- """ Created on Sat Mar 17 23:01:40 2018 @author: pc """ import scholarly,re,urllib.request,nltk import bs4 as bs # ============================================================================= # #Problme les derniere conf ne se rajoute pas # ========================================...
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 201, 198, 37811, 201, 198, 41972, 319, 7031, 1526, 1596, 2242, 25, 486, 25, 1821, 2864, 201, 198, 201, 198, 31, 9800, 25, 40653, 201, 198, 37811, 201, 198, 201, 198, 11748,...
2.561338
269
#!/usr/bin/env python3 """ Main code for Robot """ import wpilib import robotmap from wpilib import Joystick from subsystems.drivetrain import DriveTrain as Drive from subsystems.grabber import cubeGrabber from subsystems.elevator import Elevator from subsystems.climber import Climber from subsystems.autonomous import...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 18, 198, 37811, 198, 13383, 2438, 329, 16071, 198, 37811, 198, 198, 11748, 266, 79, 22282, 198, 11748, 9379, 8899, 198, 6738, 266, 79, 22282, 1330, 14087, 13915, 198, 6738, 39335, 82, 13, 1...
3.255034
149
#!/usr/bin/env python3 """ ATTOM API https://api.developer.attomdata.com """ import requests from urllib.parse import quote, urlencode from api import api PATH = "attomavm/detail" def get_avm_by_address(number_street, city_state): """ API request to get attomavm/detail """ params = urlencode( { "add...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 18, 198, 37811, 198, 17139, 2662, 7824, 198, 5450, 1378, 15042, 13, 16244, 263, 13, 1078, 296, 7890, 13, 785, 198, 37811, 198, 11748, 7007, 198, 6738, 2956, 297, 571, 13, 29572, 1330, 9577,...
2.515
200
import django from django.db import models from django.db.models.base import ModelBase from django.utils import six from .manager import IdMapManager from . import tls # thread local storage META_VALUES = { 'use_strong_refs': False, 'multi_db': False }
[ 11748, 42625, 14208, 198, 6738, 42625, 14208, 13, 9945, 1330, 4981, 198, 6738, 42625, 14208, 13, 9945, 13, 27530, 13, 8692, 1330, 9104, 14881, 198, 198, 6738, 42625, 14208, 13, 26791, 1330, 2237, 198, 198, 6738, 764, 37153, 1330, 5121, ...
2.977778
90
from unittest import TestCase from search_in_rotated_sorted_array import Solution
[ 6738, 555, 715, 395, 1330, 6208, 20448, 198, 198, 6738, 2989, 62, 259, 62, 10599, 515, 62, 82, 9741, 62, 18747, 1330, 28186, 628 ]
3.5
24
#!/usr/bin/env python # -*- coding: utf-8 -*- # 3rd party imports import numpy as np import xarray as xr __author__ = "Louis Richard" __email__ = "louisr@irfu.se" __copyright__ = "Copyright 2020-2021" __license__ = "MIT" __version__ = "2.3.7" __status__ = "Prototype" def ts_skymap(time, data, energy, phi, theta, **...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 198, 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 198, 2, 513, 4372, 2151, 17944, 198, 11748, 299, 32152, 355, 45941, 198, 11748, 2124, 18747, 355, 2124, 81, 198, 198, ...
2.130324
1,174
''' Author: Alex Wong <alexw@cs.ucla.edu> If you use this code, please cite the following paper: A. Wong, and S. Soatto. Unsupervised Depth Completion with Calibrated Backprojection Layers. https://arxiv.org/pdf/2108.10531.pdf @inproceedings{wong2021unsupervised, title={Unsupervised Depth Completion with Calibrate...
[ 7061, 6, 198, 13838, 25, 4422, 27247, 1279, 1000, 87, 86, 31, 6359, 13, 36616, 64, 13, 15532, 29, 198, 198, 1532, 345, 779, 428, 2438, 11, 3387, 21729, 262, 1708, 3348, 25, 198, 198, 32, 13, 27247, 11, 290, 311, 13, 1406, 45807, ...
2.202162
925
# Definition for singly-linked list. # class ListNode: # def __init__(self, val=0, next=None): # self.val = val # self.next = next
[ 2, 30396, 329, 1702, 306, 12, 25614, 1351, 13, 198, 2, 1398, 7343, 19667, 25, 198, 2, 220, 220, 220, 220, 825, 11593, 15003, 834, 7, 944, 11, 1188, 28, 15, 11, 1306, 28, 14202, 2599, 198, 2, 220, 220, 220, 220, 220, 220, 220, ...
2.272727
66
import time import re import tweepy import preprocessor as p import config import string consumer_key = config.consumer_key consumer_secret = config.consumer_secret access_token = config.access_token access_token_secret = config.access_token_secret bearer_token = config.bearer_token username = config.username password...
[ 11748, 640, 198, 11748, 302, 198, 11748, 4184, 538, 88, 198, 11748, 662, 41341, 355, 279, 198, 11748, 4566, 198, 11748, 4731, 198, 198, 49827, 62, 2539, 796, 4566, 13, 49827, 62, 2539, 198, 49827, 62, 21078, 796, 4566, 13, 49827, 62, ...
2.740741
783
# Generated by Django 2.0.3 on 2018-03-14 09:59 from django.db import migrations, models
[ 2, 2980, 515, 416, 37770, 362, 13, 15, 13, 18, 319, 2864, 12, 3070, 12, 1415, 7769, 25, 3270, 198, 198, 6738, 42625, 14208, 13, 9945, 1330, 15720, 602, 11, 4981, 628 ]
2.84375
32
import tensorflow as tf import numpy as np from tensorflow.python.ops.gen_batch_ops import batch from model import AudioClass from qrnn import QRNN from numpy.random import seed from numpy.random import randn from random import randint from lstmfcn import LSTM_FCN import librosa import os if __name__ == "__main__": ...
[ 11748, 11192, 273, 11125, 355, 48700, 198, 11748, 299, 32152, 355, 45941, 198, 6738, 11192, 273, 11125, 13, 29412, 13, 2840, 13, 5235, 62, 43501, 62, 2840, 1330, 15458, 198, 6738, 2746, 1330, 13491, 9487, 198, 6738, 10662, 81, 20471, 13...
3.084112
107
from pytanga.components import AbstractComponent
[ 6738, 12972, 83, 16484, 13, 5589, 3906, 1330, 27741, 21950, 628, 198 ]
4.25
12
import math from typing import List, Tuple if __name__ == '__main__': solucao_problema()
[ 11748, 10688, 198, 198, 6738, 19720, 1330, 7343, 11, 309, 29291, 628, 628, 628, 628, 628, 198, 198, 361, 11593, 3672, 834, 6624, 705, 834, 12417, 834, 10354, 198, 220, 220, 220, 1540, 1229, 5488, 62, 1676, 903, 2611, 3419, 198 ]
2.560976
41
from pymongo import MongoClient import pymongo from datetime import datetime,time import time from bson.code import Code mongo_client=MongoClient('mongodb://localhost:27017/') db=mongo_client.mydb db_col=db.things dbc = mongo_client.mydb.things print mongo_client print(db) print("connected") data = dbc.find() ...
[ 6738, 279, 4948, 25162, 1330, 42591, 11792, 198, 11748, 279, 4948, 25162, 198, 6738, 4818, 8079, 1330, 4818, 8079, 11, 2435, 198, 11748, 640, 198, 6738, 275, 1559, 13, 8189, 1330, 6127, 198, 198, 76, 25162, 62, 16366, 28, 44, 25162, 1...
2.631918
777
#!/usr/bin/env python # -*- coding: utf-8 -*- """ serialize provide means to persist and recreate the currently known set of W_Tags and all shapes and transformations reachable from there. The rmarshal modules is used for serialization; the format is marshal_proto = ( int, # number of shapes [ # shape list ...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 198, 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 37811, 198, 198, 46911, 1096, 198, 198, 15234, 485, 1724, 284, 21160, 290, 32049, 262, 3058, 1900, 198, 2617, 286, 370,...
2.238052
3,306
from web3 import Web3, HTTPProvider import json import os w3 = Web3(HTTPProvider("http://127.0.0.1:7545", request_kwargs={'timeout': 60})) print(f"Web3 is connected : {w3.isConnected()}") accounts = w3.eth.accounts # ------------------------------- get contract ------------------------------- ...
[ 6738, 3992, 18, 1330, 5313, 18, 11, 14626, 29495, 198, 11748, 33918, 198, 11748, 28686, 628, 198, 86, 18, 796, 5313, 18, 7, 40717, 29495, 7203, 4023, 1378, 16799, 13, 15, 13, 15, 13, 16, 25, 2425, 2231, 1600, 198, 220, 220, 220, 2...
2.922581
465
from preprocessing import preprocess from approach1_rulebased import get_predictions_rulebased from approach2_machine_learning import get_predictions_ml from bertopic_clustering import cluster_precursors def main(): '''Main function to use from commandline, preprocess input to generate embeddings, detect agr...
[ 6738, 662, 36948, 1330, 662, 14681, 201, 198, 6738, 3164, 16, 62, 25135, 3106, 1330, 651, 62, 28764, 9278, 62, 25135, 3106, 201, 198, 6738, 3164, 17, 62, 30243, 62, 40684, 1330, 651, 62, 28764, 9278, 62, 4029, 201, 198, 6738, 275, 8...
3.381148
244
from tkinter import * import threading import sql_manager as ss g=GUI()
[ 6738, 256, 74, 3849, 1330, 1635, 201, 198, 11748, 4704, 278, 201, 198, 11748, 44161, 62, 37153, 355, 37786, 201, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 201, 198, 201, 198, 70, 28, 40156, 3419, 2...
2.088889
45
import sys OPERATIONS = { 'addr': lambda a, b, c, registers: registers[a] + registers[b], 'addi': lambda a, b, c, registers: registers[a] + b, 'mulr': lambda a, b, c, registers: registers[a] * registers[b], 'muli': lambda a, b, c, registers: registers[a] * b, 'banr': lambda a, b, c, registers: registers[a] ...
[ 11748, 25064, 628, 198, 31054, 18421, 796, 1391, 198, 220, 705, 29851, 10354, 37456, 257, 11, 275, 11, 269, 11, 28441, 25, 28441, 58, 64, 60, 1343, 28441, 58, 65, 4357, 198, 220, 705, 2860, 72, 10354, 37456, 257, 11, 275, 11, 269, ...
2.605911
406
from aiohttp import web from agents import Agent if __name__ == "__main__": webserver = WebServer("127.0.0.1", 8080, "/ws")
[ 6738, 257, 952, 4023, 1330, 3992, 198, 198, 6738, 6554, 1330, 15906, 628, 198, 198, 361, 11593, 3672, 834, 6624, 366, 834, 12417, 834, 1298, 198, 220, 220, 220, 2639, 18497, 796, 5313, 10697, 7203, 16799, 13, 15, 13, 15, 13, 16, 160...
2.64
50
from wazimap.data.tables import FieldTable # Define our tables so the data API can discover them. # Household tables FieldTable(['rural population'], universe='Population', table_per_level=False) FieldTable(['area', 'sex'], universe='Population', table_per_level=False) FieldTable(['census_year', 'measure'], universe...
[ 6738, 266, 1031, 320, 499, 13, 7890, 13, 83, 2977, 1330, 7663, 10962, 628, 198, 2, 2896, 500, 674, 8893, 523, 262, 1366, 7824, 460, 7073, 606, 13, 198, 2, 37306, 8893, 198, 15878, 10962, 7, 17816, 81, 1523, 3265, 6, 4357, 6881, 11...
2.964325
1,822
import os import asyncio import logging from pony.orm import * import logger from database import start_orm, get_biggest_virgin, Guild, Virgin logger = logging.getLogger('virginity-bot') if __name__ == '__main__': loop = asyncio.get_event_loop() loop.run_until_complete(main())
[ 11748, 28686, 198, 11748, 30351, 952, 198, 11748, 18931, 198, 198, 6738, 26902, 13, 579, 1330, 1635, 198, 198, 11748, 49706, 198, 6738, 6831, 1330, 923, 62, 579, 11, 651, 62, 14261, 3495, 62, 85, 4672, 11, 16446, 11, 5283, 198, 198, ...
3.010417
96
import os import shutil from .base import GnuRecipe
[ 11748, 28686, 198, 11748, 4423, 346, 198, 6738, 764, 8692, 1330, 18509, 84, 37523, 628 ]
3.533333
15
import os import sys import berserk from github import Github, InputFileContent, Gist SEPARATOR = "." PADDING = {"puzzle": 0, "crazyhouse": 0, "chess960": 0, "kingOfTheHill": 0, "threeCheck": 2, "antichess": 0, "atomic": 0, "horde": 0, "racingKings": 0, "ultraBullet": 0, "blitz": 1, "classical"...
[ 11748, 28686, 198, 11748, 25064, 198, 11748, 275, 364, 9587, 198, 6738, 33084, 1330, 38994, 11, 23412, 8979, 19746, 11, 402, 396, 198, 198, 5188, 27082, 25633, 796, 366, 526, 628, 198, 47, 29266, 2751, 796, 19779, 79, 9625, 1298, 657, ...
2.070423
568
"""empty message Revision ID: 60c735df8d2f Revises: 88bb7e12da60 Create Date: 2019-09-06 08:27:03.082097 """ from alembic import op import sqlalchemy as sa # revision identifiers, used by Alembic. revision = "60c735df8d2f" down_revision = "88bb7e12da60" branch_labels = None depends_on = None
[ 37811, 28920, 3275, 198, 198, 18009, 1166, 4522, 25, 3126, 66, 22, 2327, 7568, 23, 67, 17, 69, 198, 18009, 2696, 25, 9193, 11848, 22, 68, 1065, 6814, 1899, 198, 16447, 7536, 25, 13130, 12, 2931, 12, 3312, 8487, 25, 1983, 25, 3070, ...
2.430894
123
import scipy.io.wavfile as wav import numpy as np import os import pickle import random import operator from python_speech_features import mfcc dataset = [] training_set = [] test_set = [] # Get the distance between feature vectors # Find Neighbors # Identify the Nearest Neighbor (Genres) # Model Evaluation to...
[ 11748, 629, 541, 88, 13, 952, 13, 45137, 7753, 355, 266, 615, 198, 11748, 299, 32152, 355, 45941, 198, 11748, 28686, 198, 11748, 2298, 293, 198, 11748, 4738, 198, 11748, 10088, 198, 6738, 21015, 62, 45862, 62, 40890, 1330, 285, 69, 53...
2.924084
382
import argparse from libs.data_model import AnchorNorthstarDataframe, SalesForceDataframe, \ AnchorSalesforceAccountsDataframe, AnchorSalesforceContactsDataframe from libs.utils import save_dataframes_to_excel parser = argparse.ArgumentParser(description='Reconcile accounts and contacts between Anchor and Salesfo...
[ 11748, 1822, 29572, 198, 198, 6738, 9195, 82, 13, 7890, 62, 19849, 1330, 29253, 273, 14157, 7364, 6601, 14535, 11, 17329, 10292, 6601, 14535, 11, 3467, 198, 220, 220, 220, 29253, 273, 44490, 3174, 30116, 82, 6601, 14535, 11, 29253, 273,...
2.825641
585
bill()
[ 198, 198, 35546, 3419 ]
2
4
test = { 'name': 'q3b1', 'points': 2, 'suites': [ { 'cases': [ { 'code': '>>> 4 <= ' "sum(list(X1.describe().loc['mean'])) " '<= 9\n' 'True', ...
[ 9288, 796, 1391, 220, 220, 705, 3672, 10354, 705, 80, 18, 65, 16, 3256, 198, 220, 220, 220, 705, 13033, 10354, 362, 11, 198, 220, 220, 220, 705, 2385, 2737, 10354, 685, 220, 220, 1391, 220, 220, 705, 33964, 10354, 685, 220, 220, 1...
1.32807
570
"""Scanpy's high-level API provides an overview of all features relevant to pratical use:: import scanpy.api as sc .. raw:: html <h3>Preprocessing tools</h3> Filtering of highly-variable genes, batch-effect correction, per-cell (UMI) normalization, preprocessing recipes. .. raw:: html <h4>Basic Preproc...
[ 37811, 33351, 9078, 338, 1029, 12, 5715, 7824, 3769, 281, 16700, 286, 477, 3033, 5981, 284, 778, 39056, 779, 3712, 628, 220, 220, 1330, 9367, 9078, 13, 15042, 355, 629, 628, 198, 198, 492, 8246, 3712, 27711, 628, 220, 220, 1279, 71, ...
2.475649
1,232
import torch from torch import nn from torch.nn import CrossEntropyLoss, MSELoss from .modeling_albert import AlbertPreTrainedModel, AlbertLayerNorm, AlbertLayerGroup from .modeling_bert import BertEmbeddings from .modeling_highway_bert import BertPooler import numpy as np
[ 11748, 28034, 198, 6738, 28034, 1330, 299, 77, 198, 6738, 28034, 13, 20471, 1330, 6372, 14539, 28338, 43, 793, 11, 6579, 3698, 793, 198, 198, 6738, 764, 4666, 10809, 62, 282, 4835, 1330, 9966, 6719, 2898, 1328, 17633, 11, 9966, 49925, ...
3.426829
82
# Copyright 2020 Kapil Thangavelu # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing,...
[ 2, 15069, 12131, 27344, 346, 536, 16484, 626, 84, 198, 2, 198, 2, 49962, 739, 262, 24843, 13789, 11, 10628, 362, 13, 15, 357, 1169, 366, 34156, 15341, 198, 2, 345, 743, 407, 779, 428, 2393, 2845, 287, 11846, 351, 262, 13789, 13, 1...
3.897436
156
import json import os import sys sys.path.append('/usr/lib/python2.7/dist-packages') import cv2 import numpy as np from tqdm import * import dataset_utils
[ 11748, 33918, 198, 11748, 28686, 198, 198, 11748, 25064, 198, 17597, 13, 6978, 13, 33295, 10786, 14, 14629, 14, 8019, 14, 29412, 17, 13, 22, 14, 17080, 12, 43789, 11537, 220, 198, 11748, 269, 85, 17, 198, 198, 11748, 299, 32152, 355, ...
2.758621
58
import numpy as np from scipy.constants import mu_0, epsilon_0 import matplotlib.pyplot as plt from PIL import Image import warnings warnings.filterwarnings('ignore') from ipywidgets import interact, interactive, IntSlider, widget, FloatText, FloatSlider, fixed from .Wiggle import wiggle, PrimaryWave, ReflectedWave i...
[ 11748, 299, 32152, 355, 45941, 198, 6738, 629, 541, 88, 13, 9979, 1187, 1330, 38779, 62, 15, 11, 304, 862, 33576, 62, 15, 198, 11748, 2603, 29487, 8019, 13, 9078, 29487, 355, 458, 83, 198, 6738, 350, 4146, 1330, 7412, 198, 11748, 14...
3.819672
183
data = ( 'bols', # 0x00 'bolt', # 0x01 'bolp', # 0x02 'bolh', # 0x03 'bom', # 0x04 'bob', # 0x05 'bobs', # 0x06 'bos', # 0x07 'boss', # 0x08 'bong', # 0x09 'boj', # 0x0a 'boc', # 0x0b 'bok', # 0x0c 'bot', # 0x0d 'bop', # 0x0e 'boh', # 0x0f 'bwa', # 0x1...
[ 7890, 796, 357, 201, 198, 6, 65, 10220, 3256, 220, 220, 220, 1303, 657, 87, 405, 201, 198, 6, 25593, 3256, 220, 220, 220, 1303, 657, 87, 486, 201, 198, 6, 28984, 79, 3256, 220, 220, 220, 1303, 657, 87, 2999, 201, 198, 6, 28984, ...
1.408094
3,558
from social_core.backends.azuread import AzureADOAuth2
[ 6738, 1919, 62, 7295, 13, 1891, 2412, 13, 1031, 495, 324, 1330, 22134, 2885, 23621, 1071, 17, 198 ]
3.055556
18
# Copyright (c) 2012 Israel Herraiz <isra@herraiz.org> # Permission is hereby granted, free of charge, to any person obtaining # a copy of this software and associated documentation files (the # "Software"), to deal in the Software without restriction, including # without limitation the rights to use, copy, modify, me...
[ 2, 15069, 357, 66, 8, 2321, 2692, 2332, 430, 528, 1279, 271, 430, 31, 372, 430, 528, 13, 2398, 29, 198, 198, 2, 2448, 3411, 318, 29376, 7520, 11, 1479, 286, 3877, 11, 284, 597, 1048, 16727, 198, 2, 257, 4866, 286, 428, 3788, 290...
3.762987
308
import traceback from typing import Optional from .i18n import _
[ 11748, 12854, 1891, 198, 6738, 19720, 1330, 32233, 198, 6738, 764, 72, 1507, 77, 1330, 4808, 628, 628, 628, 628 ]
3.6
20
import sys import csv import requests from parsel import Selector from scraper.parser import get_features_from_item start_url = 'http://www.world-art.ru/animation/rating_top.php' SIGN_STDOUT = '-' FORMAT_CSV = 'csv' FORMAT_JL = 'jl' def parse(url: str, out_path: str, out_format: str): """ gets link and ret...
[ 11748, 25064, 198, 11748, 269, 21370, 198, 11748, 7007, 198, 6738, 1582, 741, 1330, 9683, 273, 198, 6738, 19320, 525, 13, 48610, 1330, 651, 62, 40890, 62, 6738, 62, 9186, 628, 198, 9688, 62, 6371, 796, 705, 4023, 1378, 2503, 13, 6894,...
2.573333
450
from __future__ import print_function import os import sys import serial.tools.list_ports from PyQt4 import QtCore from PyQt4 import QtGui from photogate_ui import Ui_PhotogateMainWindow from photogate_serial import PhotogateDevice from photogate_serial import getListOfPorts import dependency_hack try: import scipy...
[ 6738, 11593, 37443, 834, 1330, 3601, 62, 8818, 198, 11748, 28686, 198, 11748, 25064, 198, 11748, 11389, 13, 31391, 13, 4868, 62, 3742, 198, 6738, 9485, 48, 83, 19, 1330, 33734, 14055, 198, 6738, 9485, 48, 83, 19, 1330, 33734, 8205, 72...
2.903525
539
from core import Variable from operation import * a = Variable(2) b = square(a) c = square(b) print(c.data)
[ 198, 6738, 4755, 1330, 35748, 198, 6738, 4905, 1330, 1635, 628, 198, 64, 796, 35748, 7, 17, 8, 198, 65, 796, 6616, 7, 64, 8, 198, 66, 796, 6616, 7, 65, 8, 628, 198, 4798, 7, 66, 13, 7890, 8, 628 ]
2.780488
41
name = 'sharepoint' from .sharepoint import SharePointSite __author__='James Classen' __version__='0.0.2'
[ 3672, 796, 705, 20077, 4122, 6, 198, 198, 6738, 764, 20077, 4122, 1330, 8734, 12727, 29123, 198, 834, 9800, 834, 11639, 14731, 5016, 268, 6, 198, 834, 9641, 834, 11639, 15, 13, 15, 13, 17, 6 ]
2.944444
36
# Copyright 2015 The Offline Content Packager Authors. All rights reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless requi...
[ 2, 15069, 1853, 383, 49749, 14041, 6400, 3536, 46665, 13, 1439, 2489, 10395, 13, 198, 2, 198, 2, 49962, 739, 262, 24843, 13789, 11, 10628, 362, 13, 15, 357, 1169, 366, 34156, 15341, 198, 2, 345, 743, 407, 779, 428, 2393, 2845, 287, ...
3.716049
243
from pathlib import Path from pyspark.sql import SparkSession, functions as f from pyspark.sql.dataframe import DataFrame # Monkeypatch in case I don't use Spark 3.0 DataFrame.transform = transform # Sample/demo purposes mpns_v8_name_relationships_filepath: str = ( "data/analysis/mpns/sample_mpns_v8/name...
[ 6738, 3108, 8019, 1330, 10644, 198, 198, 6738, 279, 893, 20928, 13, 25410, 1330, 17732, 36044, 11, 5499, 355, 277, 198, 6738, 279, 893, 20928, 13, 25410, 13, 7890, 14535, 1330, 6060, 19778, 628, 198, 2, 220, 26997, 17147, 287, 1339, 3...
2.595568
361
# -*- coding: utf-8 -*- """ Created on Wed May 23 16:56:57 2018 @author: tommy_mizuki """ import my_library my_func(1,2)
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 37811, 198, 41972, 319, 3300, 1737, 2242, 1467, 25, 3980, 25, 3553, 2864, 198, 198, 31, 9800, 25, 16667, 1820, 62, 76, 528, 11308, 198, 37811, 628, 198, 11748, 616, 62...
2.214286
56
n = int(input()) count = 0 number = 0 while True: if '666' in str(number): # '666' count . count += 1 if count == n: #count print -> n print(number) break number += 1
[ 77, 796, 493, 7, 15414, 28955, 198, 9127, 796, 657, 198, 17618, 796, 657, 198, 4514, 6407, 25, 198, 220, 220, 220, 611, 705, 27310, 6, 287, 965, 7, 17618, 2599, 197, 2, 220, 705, 27310, 6, 220, 954, 764, 198, 220, 220, 220, 220,...
2.1
100
""" plot request rate """ import os, sys sys.path.append(os.path.join(os.path.dirname(os.path.abspath(__file__)), "../")) from utils.common import * if __name__ == "__main__": import argparse ap = argparse.ArgumentParser() ap.add_argument("--trace", type=str, help="trace path") ap.add_argument("--type", t...
[ 37811, 7110, 2581, 2494, 198, 198, 37811, 198, 198, 11748, 28686, 11, 25064, 198, 17597, 13, 6978, 13, 33295, 7, 418, 13, 6978, 13, 22179, 7, 418, 13, 6978, 13, 15908, 3672, 7, 418, 13, 6978, 13, 397, 2777, 776, 7, 834, 7753, 834,...
2.697561
205
import os import redis import logging config = { 'development': DevelopmentConfig, 'production': ProductionConfig, 'default': DevelopmentConfig }
[ 11748, 28686, 198, 11748, 2266, 271, 198, 11748, 18931, 628, 198, 11250, 796, 1391, 198, 220, 220, 220, 705, 31267, 10354, 7712, 16934, 11, 198, 220, 220, 220, 705, 25493, 10354, 19174, 16934, 11, 198, 220, 220, 220, 705, 12286, 10354, ...
3.232143
56
import tensorflow as tf from tensorflow.python import pywrap_tensorflow from tensorflow.python.platform import tf_logging as logging from tensorflow.python.training import saver as tf_saver def average_gradients(tower_grads): """Calculate the average gradient for each shared variable across all towers. Note t...
[ 11748, 11192, 273, 11125, 355, 48700, 198, 6738, 11192, 273, 11125, 13, 29412, 1330, 12972, 37150, 62, 83, 22854, 11125, 198, 6738, 11192, 273, 11125, 13, 29412, 13, 24254, 1330, 48700, 62, 6404, 2667, 355, 18931, 198, 6738, 11192, 273, ...
2.576271
1,652
from dataclasses import dataclass from typing import List from paralleldomain.model.annotation.common import Annotation from paralleldomain.model.annotation.polyline_2d import Polyline2D
[ 6738, 4818, 330, 28958, 1330, 4818, 330, 31172, 198, 6738, 19720, 1330, 7343, 198, 198, 6738, 9315, 23826, 391, 13, 19849, 13, 1236, 14221, 13, 11321, 1330, 1052, 38983, 198, 6738, 9315, 23826, 391, 13, 19849, 13, 1236, 14221, 13, 35428...
3.653846
52
import os import shutil import sys from maplist import installed_games backup_dir = "F:/bsps" if len(sys.argv) == 2: backup_dir = sys.argv[1] print(f"Making backups in '{backup_dir}'") i = 0 for base_dir, game_dir in installed_games: i += 1 print(f"Backing up ({i}/{len(installed_games)}) {game_dir}...")...
[ 11748, 28686, 198, 11748, 4423, 346, 198, 11748, 25064, 198, 198, 6738, 17266, 489, 396, 1330, 6589, 62, 19966, 628, 198, 1891, 929, 62, 15908, 796, 366, 37, 14079, 1443, 862, 1, 198, 361, 18896, 7, 17597, 13, 853, 85, 8, 6624, 362,...
2.208
375
from typing import List, Optional from pydantic import AnyHttpUrl from infobip_channels.core.models import CamelCaseModel, ResponseBase
[ 6738, 19720, 1330, 7343, 11, 32233, 198, 198, 6738, 279, 5173, 5109, 1330, 4377, 43481, 28165, 198, 198, 6738, 1167, 672, 541, 62, 354, 8961, 13, 7295, 13, 27530, 1330, 43281, 20448, 17633, 11, 18261, 14881, 628, 628, 628 ]
3.666667
39
import logging from flask import Flask, request, jsonify from extractor.document import Document from extractor.five_w_extractor import FiveWExtractor app = Flask(__name__) log = logging.getLogger(__name__) host = None port = 5000 debug = False options = None extractor = FiveWExtractor() ch = logging.StreamHandler() ...
[ 11748, 18931, 198, 6738, 42903, 1330, 46947, 11, 2581, 11, 33918, 1958, 198, 198, 6738, 7925, 273, 13, 22897, 1330, 16854, 198, 6738, 7925, 273, 13, 13261, 62, 86, 62, 2302, 40450, 1330, 10579, 8845, 742, 40450, 198, 198, 1324, 796, 4...
3.041958
143
import os import tempfile import pkg_resources as p from CPAC.utils.symlinks import create_symlinks mocked_outputs = \ p.resource_filename( "CPAC", os.path.join( 'utils', 'tests', 'test_symlinks-outputs.txt' ) )
[ 11748, 28686, 198, 11748, 20218, 7753, 198, 11748, 279, 10025, 62, 37540, 355, 279, 198, 198, 6738, 16932, 2246, 13, 26791, 13, 37047, 28751, 1330, 2251, 62, 37047, 28751, 628, 198, 76, 3543, 62, 22915, 82, 796, 3467, 198, 220, 220, 2...
1.992958
142
# -*- coding: utf-8 -*- # Generated by Django 1.10.1 on 2016-09-09 15:33 from __future__ import unicode_literals from django.db import migrations, models import django.db.models.deletion import django_extensions.db.fields
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 2, 2980, 515, 416, 37770, 352, 13, 940, 13, 16, 319, 1584, 12, 2931, 12, 2931, 1315, 25, 2091, 198, 6738, 11593, 37443, 834, 1330, 28000, 1098, 62, 17201, 874, 198, ...
2.8
80
"""Script for running the dserve server.""" import os from flask import ( Flask, jsonify, send_file, abort, request, ) from flask_cors import CORS, cross_origin app = Flask(__name__) cors = CORS(app) def overlay_root(): overlays = app._dataset.access_overlays() content = { ...
[ 37811, 7391, 329, 2491, 262, 288, 2655, 303, 4382, 526, 15931, 198, 198, 11748, 28686, 198, 198, 6738, 42903, 1330, 357, 198, 220, 220, 220, 46947, 11, 198, 220, 220, 220, 33918, 1958, 11, 198, 220, 220, 220, 3758, 62, 7753, 11, 198...
2.313084
428
#!/usr/bin/env python # -*- coding: utf-8 -*- # """ util regex tool refs: http://www.symantec.com/connect/articles/detection-sql-injection-and-cross-site-scripting-attacks """ import re INJECTION_REGEX = re.compile( r"(%27)|(\')|(\-\-)|(%23)|(#)|" # Regex for detection of SQL meta-characters r"\w*((%27)|(\...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 198, 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 2, 628, 198, 37811, 198, 22602, 40364, 2891, 198, 5420, 82, 25, 198, 4023, 1378, 2503, 13, 37047, 415, 721, 13, 785, ...
2.190083
605
#!/usr/bin/env python REGISTERS = { 'IOCFG2': 0x00, 'IOCFG1': 0x01, 'IOCFG0': 0x02, 'FIFOTHR': 0x03, 'SYNC1': 0x04, 'SYNC0': 0x05, 'PKTLEN': 0x06, 'PKTCTRL1': 0x07, 'PKTCTRL0': 0x08, 'ADDR': 0x09, 'CHANNR': 0x0A, 'FSCTRL1': 0x0B, 'FSCTRL0': 0x0C, 'FREQ2': 0x0D, ...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 198, 198, 31553, 8808, 4877, 796, 1391, 198, 220, 220, 220, 705, 40, 4503, 30386, 17, 10354, 657, 87, 405, 11, 198, 220, 220, 220, 705, 40, 4503, 30386, 16, 10354, 657, 87, 486, 11, 198...
1.513944
1,004
''' @func:to store useful links module @create:2021.10.20 '''
[ 7061, 6, 198, 31, 20786, 25, 1462, 3650, 4465, 6117, 8265, 198, 31, 17953, 25, 1238, 2481, 13, 940, 13, 1238, 198, 7061, 6 ]
2.541667
24