content
stringlengths
1
1.05M
input_ids
listlengths
1
883k
ratio_char_token
float64
1
22.9
token_count
int64
1
883k
import random from math import sqrt sum = 0 for x in range(101): sum += x print(sum) ''' range(101) 0-100 101 range(1,101) 1-100 range(1,101,2) 1-100 2 range(100,0,-2) 100-0 -2 ''' sum = 0 for x in range(100, 0, -2): sum += x print(sum) # while # 0-100 answer = random.randint(0, 100) count = 0 while Tr...
[ 11748, 4738, 198, 6738, 10688, 1330, 19862, 17034, 198, 198, 16345, 796, 657, 198, 1640, 2124, 287, 2837, 7, 8784, 2599, 198, 220, 220, 220, 2160, 15853, 2124, 198, 4798, 7, 16345, 8, 198, 7061, 6, 198, 9521, 7, 8784, 8, 220, 657, ...
2.158371
442
# Copyright (C) 2018, HTCondor Team, Computer Sciences Department, # University of Wisconsin-Madison, WI. # # 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/license...
[ 2, 15069, 357, 34, 8, 2864, 11, 22063, 623, 273, 4816, 11, 13851, 13473, 2732, 11, 198, 2, 2059, 286, 9279, 12, 46845, 11, 29360, 13, 198, 2, 198, 2, 49962, 739, 262, 24843, 13789, 11, 10628, 362, 13, 15, 357, 1169, 366, 34156, ...
3.741036
251
# Copyright (c) 2021 PaddlePaddle 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 required by appli...
[ 2, 15069, 357, 66, 8, 33448, 350, 37382, 47, 37382, 46665, 13, 1439, 6923, 33876, 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...
3.585062
241
from .api import run_query_get_token from .api import convert_to_dask from .api import run_query_get_results from .api import run_query_get_concat_results from .api import register_file_system from .api import deregister_file_system from .api import FileSystemType, DriverType, EncryptionType from .api import SchemaFro...
[ 6738, 764, 15042, 1330, 1057, 62, 22766, 62, 1136, 62, 30001, 198, 6738, 764, 15042, 1330, 10385, 62, 1462, 62, 67, 2093, 198, 6738, 764, 15042, 1330, 1057, 62, 22766, 62, 1136, 62, 43420, 198, 6738, 764, 15042, 1330, 1057, 62, 22766,...
3.22439
205
# Jeonghyun Kim, UVR KAIST @jeonghyunct.kaist.ac.kr import os, sys import json import h5py import numpy as np import quaternion import torch from torch.utils.data import Dataset BASE_DIR_1 = os.path.dirname(os.path.abspath(__file__)) # scan2cad BASE_DIR = os.path.dirname(BASE_DIR_1) # dataset ROOT_DIR = os.path.dirn...
[ 2, 3852, 19757, 88, 403, 6502, 11, 471, 13024, 509, 32, 8808, 2488, 18015, 19757, 88, 16260, 13, 4914, 396, 13, 330, 13, 38584, 198, 198, 11748, 28686, 11, 25064, 198, 11748, 33918, 198, 11748, 289, 20, 9078, 198, 11748, 299, 32152, ...
2.422741
686
#!/usr/bin/env python """ Compute diffusion coefficient from MSD data. Time interval, DT, is obtained from in.pmd in the same directory. Usage: msd2diff.py [options] MSD_FILE Options: -h, --help Show this message and exit. -o, --offset OFFSET Offset of given data. [default: 0] --plot Plot ...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 198, 37811, 198, 7293, 1133, 44258, 35381, 422, 6579, 35, 1366, 13, 198, 7575, 16654, 11, 24311, 11, 318, 6492, 422, 287, 13, 4426, 67, 287, 262, 976, 8619, 13, 198, 198, 28350, 25, 198, ...
2.047059
1,105
import os f = open(os.path.join(os.path.dirname(__file__), '../input/5/part2.txt'), 'r') if __name__ == '__main__': main()
[ 11748, 28686, 198, 198, 69, 796, 1280, 7, 418, 13, 6978, 13, 22179, 7, 418, 13, 6978, 13, 15908, 3672, 7, 834, 7753, 834, 828, 705, 40720, 15414, 14, 20, 14, 3911, 17, 13, 14116, 33809, 705, 81, 11537, 628, 628, 198, 361, 11593, ...
2.258621
58
import behave
[ 11748, 17438, 628, 198 ]
4
4
"""Tests camera and system functions.""" import unittest from unittest import mock from blinkpy.blinkpy import Blink from blinkpy.helpers.util import BlinkURLHandler from blinkpy.sync_module import BlinkSyncModule, BlinkOwl from blinkpy.camera import BlinkCamera, BlinkCameraMini
[ 37811, 51, 3558, 4676, 290, 1080, 5499, 526, 15931, 198, 11748, 555, 715, 395, 198, 6738, 555, 715, 395, 1330, 15290, 198, 198, 6738, 21019, 9078, 13, 2436, 676, 9078, 1330, 41732, 198, 6738, 21019, 9078, 13, 16794, 364, 13, 22602, 13...
3.76
75
from __future__ import absolute_import import numpy as np from openmdao.api import Group from .dynamic_pressure_comp import DynamicPressureComp from .lift_drag_force_comp import LiftDragForceComp from .cd0_comp import CD0Comp from .kappa_comp import KappaComp from .cla_comp import CLaComp from .cl_comp import CLComp...
[ 6738, 11593, 37443, 834, 1330, 4112, 62, 11748, 198, 198, 11748, 299, 32152, 355, 45941, 198, 198, 6738, 1280, 9132, 5488, 13, 15042, 1330, 4912, 198, 198, 6738, 764, 67, 28995, 62, 36151, 62, 5589, 1330, 26977, 13800, 495, 7293, 198, ...
3.237288
118
import matplotlib.pyplot as plt import argparse, csv, numpy, time, os, re if __name__ == "__main__": parser = argparse.ArgumentParser(description = 'Plotter for the Software Benchmarking Script') parser.add_argument('-f', help='Results file as input (in csv format)') parser.add_argument('-t', help='Name o...
[ 11748, 2603, 29487, 8019, 13, 9078, 29487, 355, 458, 83, 198, 11748, 1822, 29572, 11, 269, 21370, 11, 299, 32152, 11, 640, 11, 28686, 11, 302, 628, 198, 361, 11593, 3672, 834, 6624, 366, 834, 12417, 834, 1298, 198, 220, 220, 220, 30...
2.771186
236
# -*- coding: utf-8 -*- # ===== Default imports ===== import asyncio import logging # ===== External libs imports ===== from aiogram import Bot, Dispatcher, types from aiogram.dispatcher import FSMContext # ===== Local imports ===== from analytics import BotAnalytics from db_manager import DbManager from lang_man...
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 198, 2, 29335, 15161, 17944, 29335, 198, 198, 11748, 30351, 952, 198, 11748, 18931, 198, 198, 2, 29335, 34579, 9195, 82, 17944, 29335, 198, 198, 6738, 257, 72, 21857, 13...
3.89726
146
# 6. # , N, , "" # 1111 9999. , : # N . # : N = 16, 2418 : # 16 / 2 = 8 # 16 / 4 = 4 # 16 / 1 = 16 # 16 / 8 = 2 N = int(input()) for number in range(1111, 9999 + 1): is_number_special = True number_as_string = str(number) # Could also write for index...
[ 2, 718, 13, 197, 220, 198, 2, 220, 220, 220, 837, 220, 220, 220, 220, 220, 399, 11, 220, 220, 837, 220, 220, 220, 220, 13538, 198, 2, 220, 220, 13374, 16, 220, 860, 17032, 13, 220, 220, 220, 220, 220, 837, 220, 220, 220, 220, ...
2.031847
314
import pytest import numbers import numpy as np from numpy.testing import assert_raises from numpy.testing import assert_array_equal from numpy.testing import assert_equal from numpy.testing import assert_raises_regex from skopt.space import LogN, Normalize
[ 11748, 12972, 9288, 198, 11748, 3146, 198, 11748, 299, 32152, 355, 45941, 198, 6738, 299, 32152, 13, 33407, 1330, 6818, 62, 430, 2696, 198, 6738, 299, 32152, 13, 33407, 1330, 6818, 62, 18747, 62, 40496, 198, 6738, 299, 32152, 13, 33407,...
3.575342
73
# coding=utf-8 # Copyright 2018 The Google AI Language Team Authors and The HuggingFace Inc. team. # # 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/LICEN...
[ 2, 19617, 28, 40477, 12, 23, 198, 2, 15069, 2864, 383, 3012, 9552, 15417, 4816, 46665, 290, 383, 12905, 2667, 32388, 3457, 13, 1074, 13, 198, 2, 198, 2, 49962, 739, 262, 24843, 13789, 11, 10628, 362, 13, 15, 357, 1169, 366, 34156, ...
2.324895
4,266
import numpy as np import multiprocessing as mp import pyfftw from numpy import pi, exp, sqrt, sin, cos, conj, arctan, tanh, tan from numpy import heaviside as heav from include import helper import h5py # ---------Spatial and potential parameters-------------- Mx = My = 64 Nx = Ny = 128 # Number of grid pts dx = dy...
[ 11748, 299, 32152, 355, 45941, 198, 11748, 18540, 305, 919, 278, 355, 29034, 198, 11748, 12972, 487, 4246, 198, 6738, 299, 32152, 1330, 31028, 11, 1033, 11, 19862, 17034, 11, 7813, 11, 8615, 11, 11644, 11, 610, 310, 272, 11, 25706, 71...
2.133886
3,137
from __future__ import print_function import requests import sys import os verbose=True try: username=os.environ['USERNAME'] password=os.environ['PASSWORD'] except: print("Crumb Diaganostic requires USERNAME/PASSWORD to be set as environment variables") sys.exit(-1) jenkins_url=os.environ['JENKINS_URL'...
[ 6738, 11593, 37443, 834, 1330, 3601, 62, 8818, 198, 11748, 7007, 198, 11748, 25064, 198, 11748, 28686, 198, 198, 19011, 577, 28, 17821, 198, 28311, 25, 198, 220, 220, 220, 20579, 28, 418, 13, 268, 2268, 17816, 29904, 20608, 20520, 198, ...
2.5825
400
# -*- coding: utf-8 -*- for i in range(int(raw_input())): x, y = [int(x) for x in raw_input().split()] if x > y: x, y = y, x x += 1 if x % 2 == 0 else 2 print sum([j for j in range(x, y, 2)])
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 198, 1640, 1312, 287, 2837, 7, 600, 7, 1831, 62, 15414, 28955, 2599, 198, 220, 220, 220, 2124, 11, 331, 796, 685, 600, 7, 87, 8, 329, 2124, 287, 8246, 62, 15414, 2...
1.990909
110
import tensorflow as tf FLIPPING_TENSOR = tf.constant([1.0, -1.0, 1.0]) mock_data = tf.constant([ [1., 2., 3.], [4., 5., 6.], [7., 8., 9.] ]) mock_labels = tf.constant([ [1.], [0.], [1.] ]) sampling_lambda = lambda x, y: sample_data(x, y, 512) train_data = tf.data.Dataset.from_tensors((mock_data, ...
[ 11748, 11192, 273, 11125, 355, 48700, 198, 198, 3697, 31444, 2751, 62, 51, 16938, 1581, 796, 48700, 13, 9979, 415, 26933, 16, 13, 15, 11, 532, 16, 13, 15, 11, 352, 13, 15, 12962, 628, 198, 76, 735, 62, 7890, 796, 48700, 13, 9979, ...
1.986726
226
from flask import Flask app = Flask(__name__)
[ 6738, 42903, 1330, 46947, 198, 1324, 796, 46947, 7, 834, 3672, 834, 8, 628 ]
3.357143
14
# Generated by Django 3.1.6 on 2021-02-16 11:37 from django.db import migrations, models
[ 2, 2980, 515, 416, 37770, 513, 13, 16, 13, 21, 319, 33448, 12, 2999, 12, 1433, 1367, 25, 2718, 198, 198, 6738, 42625, 14208, 13, 9945, 1330, 15720, 602, 11, 4981, 628 ]
2.84375
32
import aiohttp import asyncio import time import time import argparse import glob import os import shutil import random import re import requests import sys from concurrent import futures import pdfkit import time from retrying import retry from pygments import highlight from pygments.lexers import...
[ 11748, 257, 952, 4023, 201, 198, 11748, 30351, 952, 201, 198, 11748, 640, 201, 198, 11748, 640, 201, 198, 201, 198, 11748, 1822, 29572, 201, 198, 11748, 15095, 201, 198, 11748, 28686, 201, 198, 11748, 4423, 346, 201, 198, 11748, 4738, ...
2.915119
377
from django.test import SimpleTestCase as TestCase from corehq.apps.app_manager.models import _parse_xml import os
[ 6738, 42625, 14208, 13, 9288, 1330, 17427, 14402, 20448, 355, 6208, 20448, 198, 6738, 4755, 71, 80, 13, 18211, 13, 1324, 62, 37153, 13, 27530, 1330, 4808, 29572, 62, 19875, 198, 11748, 28686, 198 ]
3.382353
34
import protocolbuffers.Consts_pb2 as Consts_pb2 from google.protobuf import descriptor, message, reflection DESCRIPTOR = descriptor.FileDescriptor(name = 'Localization.proto', package = 'EA.Sims4.Network', serialized_pb = '\n\x12Localization.proto\x12\x10EA.Sims4.Network\x1a\x0cConsts.proto"\x85\n\n\x14Loc...
[ 11748, 8435, 36873, 364, 13, 3103, 6448, 62, 40842, 17, 355, 4757, 82, 62, 40842, 17, 198, 6738, 23645, 13, 11235, 672, 3046, 1330, 43087, 11, 3275, 11, 14580, 198, 198, 30910, 36584, 32961, 796, 43087, 13, 8979, 24564, 1968, 273, 7, ...
2.705831
9,209
# input N, M = map(int, input().split()) Ds = [*map(int, input().split())] # compute dp = [False] * (N+1) for ni in range(N+1): if ni == 0: dp[ni] = True for D in Ds: if ni >= D: dp[ni] = dp[ni] or dp[ni-D] # output print("Yes" if dp[-1] else "No")
[ 2, 5128, 198, 45, 11, 337, 796, 3975, 7, 600, 11, 5128, 22446, 35312, 28955, 198, 30832, 796, 30138, 8899, 7, 600, 11, 5128, 22446, 35312, 3419, 15437, 198, 198, 2, 24061, 198, 26059, 796, 685, 25101, 60, 1635, 357, 45, 10, 16, 8,...
1.875817
153
# sorting n=int(input()) array=list(map(int,input().split())) i=0 count=[] counter=0 while i<len(array): min=i start=i+1 while(start<len(array)): if array[start]<array[min]: min=start start+=1 if i!=min: array[i],array[min]=array[min],array[i] count.append(i) ...
[ 2, 29407, 198, 77, 28, 600, 7, 15414, 28955, 198, 18747, 28, 4868, 7, 8899, 7, 600, 11, 15414, 22446, 35312, 3419, 4008, 198, 72, 28, 15, 198, 9127, 28, 21737, 198, 24588, 28, 15, 198, 4514, 1312, 27, 11925, 7, 18747, 2599, 198, ...
1.951965
229
import unittest from app.models import News # News = news.News # if __name__ == '__main__': # unittest.main()
[ 11748, 555, 715, 395, 198, 6738, 598, 13, 27530, 1330, 3000, 198, 2, 3000, 796, 1705, 13, 9980, 628, 198, 2, 611, 11593, 3672, 834, 6624, 705, 834, 12417, 834, 10354, 198, 2, 220, 220, 220, 220, 555, 715, 395, 13, 12417, 3419, 198...
2.636364
44
import argparse parser = argparse.ArgumentParser() parser.add_argument('ghcomment', type=str) # this is for test-me-please phrases parser.add_argument('--focus', type=str, default="") parser.add_argument('--version', type=str, default="") parser.add_argument('--retrieve', type=str, default="focus") args = parser.pars...
[ 11748, 1822, 29572, 198, 198, 48610, 796, 1822, 29572, 13, 28100, 1713, 46677, 3419, 198, 48610, 13, 2860, 62, 49140, 10786, 456, 23893, 3256, 2099, 28, 2536, 8, 1303, 428, 318, 329, 1332, 12, 1326, 12, 29688, 20144, 198, 48610, 13, 2...
3.146552
116
""" This script cleans and prepares the data set of bookings for the future usage """ import argparse import logging import sys import pandas as pd from preprocessing.common import canonize_datetime, raw_data_to_df, check_processed_columns, check_data OLD_BREAKPOINT_MATCHER = { 2001: [ (1, 1, "New Year"...
[ 37811, 198, 1212, 4226, 20658, 290, 25978, 262, 1366, 900, 286, 1492, 654, 329, 262, 2003, 8748, 198, 37811, 198, 198, 11748, 1822, 29572, 198, 11748, 18931, 198, 11748, 25064, 198, 198, 11748, 19798, 292, 355, 279, 67, 198, 198, 6738, ...
2.116576
2,582
from sanic import Blueprint, Request, HTTPResponse, response from sanic.models.handler_types import RouteHandler from functools import wraps from inspect import isawaitable from typing import Callable, Dict, Any, Union, Awaitable, List, Optional ACCEPTED_WISH_VERS = ['wish.alpha.v1'] WishHandler = Callable[..., Union...
[ 6738, 5336, 291, 1330, 39932, 11, 19390, 11, 7154, 51, 4805, 9774, 2591, 11, 2882, 198, 6738, 5336, 291, 13, 27530, 13, 30281, 62, 19199, 1330, 18956, 25060, 198, 6738, 1257, 310, 10141, 1330, 27521, 198, 6738, 10104, 1330, 318, 707, ...
3.137931
116
#!/usr/bin/env python """Algorthims for function optimisation great_deluge() is a hillclimbing algorithm based on: Gunter Dueck: New Optimization Heuristics, The Great Deluge Algorithm and the Record-to-Record Travel. Journal of Computational Physics, Vol. 104, 1993, pp. 86 - 92 ga_evolve(...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 198, 37811, 2348, 70, 1506, 12078, 329, 2163, 6436, 5612, 628, 220, 220, 1049, 62, 12381, 2217, 3419, 318, 257, 12788, 565, 320, 4623, 11862, 1912, 319, 25, 220, 220, 220, 220, 198, 220, ...
2.863799
558
import argparse import boto3 import json import logging import os from progressbar import ProgressBar import sys """ Collects IAM Policies Evaluates policies looking for badness (*.*, Effect:Allow + NotAction) Need to add more tests/use cases """ if __name__ == "__main__": # execute only if run as a scrip...
[ 11748, 1822, 29572, 198, 11748, 275, 2069, 18, 198, 11748, 33918, 198, 11748, 18931, 198, 11748, 28686, 198, 6738, 4371, 5657, 1330, 18387, 10374, 198, 11748, 25064, 198, 198, 37811, 198, 31337, 82, 314, 2390, 42283, 198, 198, 36, 2100, ...
3.264706
102
import json import os import re from testinfra.utils.ansible_runner import AnsibleRunner import util testinfra_hosts = AnsibleRunner(os.environ['MOLECULE_INVENTORY_FILE']).get_hosts('agent-integrations')
[ 11748, 33918, 198, 11748, 28686, 198, 11748, 302, 198, 198, 6738, 1332, 10745, 430, 13, 26791, 13, 504, 856, 62, 16737, 1330, 28038, 856, 49493, 198, 198, 11748, 7736, 198, 198, 9288, 10745, 430, 62, 4774, 82, 796, 28038, 856, 49493, ...
2.890411
73
import os import sys from contextlib import contextmanager from invoke import UnexpectedExit
[ 11748, 28686, 198, 11748, 25064, 198, 6738, 4732, 8019, 1330, 4732, 37153, 198, 198, 6738, 26342, 1330, 471, 42072, 30337, 628, 198 ]
4.363636
22
# -*- coding:utf-8 -*- from ais_sdk.utils import encode_to_base64 from ais_sdk.utils import decode_to_wave_file from ais_sdk.distortion_correct import distortion_correct_aksk from ais_sdk.utils import init_global_env import json if __name__ == '__main__': # # access moderation distortion correct.post data by a...
[ 2, 532, 9, 12, 19617, 25, 40477, 12, 23, 532, 9, 12, 198, 6738, 257, 271, 62, 21282, 74, 13, 26791, 1330, 37773, 62, 1462, 62, 8692, 2414, 198, 6738, 257, 271, 62, 21282, 74, 13, 26791, 1330, 36899, 62, 1462, 62, 19204, 62, 7753...
2.551515
495
# Generated by Django 2.2.6 on 2019-10-25 16:24 from django.db import migrations, models import django.db.models.deletion
[ 2, 2980, 515, 416, 37770, 362, 13, 17, 13, 21, 319, 13130, 12, 940, 12, 1495, 1467, 25, 1731, 198, 198, 6738, 42625, 14208, 13, 9945, 1330, 15720, 602, 11, 4981, 198, 11748, 42625, 14208, 13, 9945, 13, 27530, 13, 2934, 1616, 295, ...
2.818182
44
from rainbow.cloudformation import Cloudformation from base import DataSourceBase __all__ = ['CfnOutputsDataSource', 'CfnResourcesDataSource', 'CfnParametersDataSource']
[ 6738, 27223, 13, 17721, 1161, 1330, 10130, 1161, 198, 6738, 2779, 1330, 6060, 7416, 14881, 198, 198, 834, 439, 834, 796, 37250, 34, 22184, 26410, 82, 6601, 7416, 3256, 705, 34, 22184, 33236, 6601, 7416, 3256, 705, 34, 22184, 48944, 6601...
3.345455
55
import redis from bundle_config import config from django.core.management.base import NoArgsCommand
[ 11748, 2266, 271, 198, 6738, 18537, 62, 11250, 1330, 4566, 198, 198, 6738, 42625, 14208, 13, 7295, 13, 27604, 13, 8692, 1330, 1400, 42035, 21575, 198 ]
3.884615
26
#!/usr/bin/env python # Copyright 2020 Stanford University, Los Alamos National Laboratory # # 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 ...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 198, 198, 2, 15069, 12131, 13863, 2059, 11, 5401, 41514, 418, 2351, 18643, 198, 2, 198, 2, 49962, 739, 262, 24843, 13789, 11, 10628, 362, 13, 15, 357, 1169, 366, 34156, 15341, 198, 2, 345...
3.424528
318
"""This plugin extends Gaphor with XMI export functionality.""" import logging from gaphor.abc import ActionProvider, Service from gaphor.core import action, gettext from gaphor.plugins.xmiexport import exportmodel from gaphor.ui.filedialog import FileDialog logger = logging.getLogger(__name__)
[ 37811, 1212, 13877, 14582, 402, 6570, 273, 351, 1395, 8895, 10784, 11244, 526, 15931, 198, 198, 11748, 18931, 198, 198, 6738, 308, 6570, 273, 13, 39305, 1330, 7561, 29495, 11, 4809, 198, 6738, 308, 6570, 273, 13, 7295, 1330, 2223, 11, ...
3.370787
89
import contextlib import os import pathlib import subprocess import sys import tempfile
[ 11748, 4732, 8019, 198, 11748, 28686, 198, 11748, 3108, 8019, 198, 11748, 850, 14681, 198, 11748, 25064, 198, 11748, 20218, 7753, 628, 628, 628, 628, 628, 628 ]
3.666667
27
import os commit_string = "data" not_add = ['results', 'data', 'weights'] for item in os.listdir(): if item in not_add: # print(item) continue else: os.system(f"git add {item}") os.system(f'git commit -m "{commit_string}"') os.system("git push origin main")
[ 11748, 28686, 198, 198, 41509, 62, 8841, 796, 366, 7890, 1, 198, 1662, 62, 2860, 796, 37250, 43420, 3256, 705, 7890, 3256, 705, 43775, 20520, 198, 1640, 2378, 287, 28686, 13, 4868, 15908, 33529, 198, 220, 220, 220, 611, 2378, 287, 407...
2.416667
120
from src.cmp.pycompiler import Grammar from src.ast_nodes import ( ProgramNode, ClassDeclarationNode, FuncDeclarationNode, AttrDeclarationNode, IfNode, WhileNode, LetNode, CaseNode, IsvoidNode, AssignNode, VarDeclarationNode, CaseItemNode, NotNode, ...
[ 6738, 12351, 13, 48991, 13, 9078, 5589, 5329, 1330, 20159, 3876, 201, 198, 6738, 12351, 13, 459, 62, 77, 4147, 1330, 357, 201, 198, 220, 220, 220, 6118, 19667, 11, 201, 198, 220, 220, 220, 5016, 37835, 10186, 19667, 11, 201, 198, 22...
2.121771
271
# For @UniBorg # courtesy Yasir siddiqui """Self Destruct Plugin .sd <time in seconds> <text> """ import time from userbot import CMD_HELP from telethon.errors import rpcbaseerrors from userbot.utils import admin_cmd import importlib.util CMD_HELP.update({ "selfdestruct": ".sdm number | [text]\ \...
[ 2, 1114, 2488, 3118, 72, 33, 2398, 198, 2, 12537, 25957, 343, 264, 1638, 1557, 72, 198, 37811, 24704, 8145, 1356, 42636, 198, 13, 21282, 1279, 2435, 287, 4201, 29, 1279, 5239, 29, 198, 37811, 628, 198, 11748, 640, 198, 6738, 2836, 1...
2.816667
180
import os obj = Template(template_name='test.html', context={'name': 'OSAMA'}) print(obj.render()) obj.context= None print(obj.render(context={'name': 'os'})) obj2 = Template(template_name='test.html') print(obj2.render(context={'name': 'os'}))
[ 11748, 28686, 628, 198, 26801, 796, 37350, 7, 28243, 62, 3672, 11639, 9288, 13, 6494, 3256, 4732, 34758, 6, 3672, 10354, 705, 2640, 25087, 6, 30072, 198, 4798, 7, 26801, 13, 13287, 28955, 198, 26801, 13, 22866, 28, 6045, 198, 4798, 7,...
2.786517
89
#Basics a = "hello" a += " I'm a dog" print(a) print(len(a)) print(a[1:]) #Output: ello I'm a dog print(a[:5]) #Output: hello(index 5 is not included) print(a[2:5])#Output: llo(index 2 is included) print(a[::2])#Step size #string is immutable so you can't assign a[1]= b x = a.upper() print(x) x = a.capitalize() prin...
[ 2, 15522, 873, 198, 198, 64, 796, 366, 31373, 1, 198, 64, 15853, 366, 314, 1101, 257, 3290, 1, 198, 4798, 7, 64, 8, 198, 4798, 7, 11925, 7, 64, 4008, 198, 4798, 7, 64, 58, 16, 25, 12962, 1303, 26410, 25, 304, 18798, 314, 1101,...
2.478125
320
# -*- coding: utf-8 -*- """ test_01_accept_time_get_headers ~~~~~~~~~~~~~~ The 2GIS API Test Check time get headers :author: Vadim Glushkov :copyright: Copyright 2019, The2GIS API Test" :license: MIT :version: 1.0.0 :maintainer: Vadim Glushkov :email: plussg@yandex.ru :status: Development """ import pytest import a...
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 37811, 198, 9288, 62, 486, 62, 13635, 62, 2435, 62, 1136, 62, 50145, 198, 15116, 8728, 4907, 198, 198, 464, 362, 38, 1797, 7824, 6208, 198, 9787, 640, 651, 24697, 198,...
2.683453
139
"""Returns the string length of categorical values""" from h2oaicore.transformer_utils import CustomTransformer import datatable as dt import numpy as np
[ 37811, 35561, 262, 4731, 4129, 286, 4253, 12409, 3815, 37811, 198, 6738, 289, 17, 12162, 291, 382, 13, 7645, 16354, 62, 26791, 1330, 8562, 8291, 16354, 198, 11748, 4818, 21156, 355, 288, 83, 198, 11748, 299, 32152, 355, 45941, 628 ]
3.875
40
""" Subpackage containing EOTasks for geometrical transformations """ from .utilities import ErosionTask, VectorToRaster, RasterToVector from .sampling import PointSamplingTask, PointSampler, PointRasterSampler __version__ = '0.4.2'
[ 37811, 198, 7004, 26495, 7268, 412, 2394, 6791, 329, 4903, 908, 8143, 38226, 198, 37811, 198, 198, 6738, 764, 315, 2410, 1330, 412, 4951, 295, 25714, 11, 20650, 2514, 49, 1603, 11, 371, 1603, 2514, 38469, 198, 6738, 764, 37687, 11347, ...
3.357143
70
"""User Model.""" # Django from django.db import models from django.contrib.auth.models import AbstractUser # Utilities from .utils import ApiModel
[ 37811, 12982, 9104, 526, 15931, 198, 198, 2, 37770, 198, 6738, 42625, 14208, 13, 9945, 1330, 4981, 220, 198, 6738, 42625, 14208, 13, 3642, 822, 13, 18439, 13, 27530, 1330, 27741, 12982, 198, 198, 2, 41086, 198, 6738, 764, 26791, 1330, ...
3.347826
46
from collections import namedtuple import json from asynctest.mock import patch import pytest from ethereumd.server import RPCServer from ethereumd.proxy import EthereumProxy from aioethereum.errors import BadResponseError from .base import BaseTestRunner Request = namedtuple('Request', ['json'])
[ 6738, 17268, 1330, 3706, 83, 29291, 198, 11748, 33918, 198, 6738, 355, 2047, 310, 395, 13, 76, 735, 1330, 8529, 198, 11748, 12972, 9288, 198, 198, 6738, 304, 17733, 67, 13, 15388, 1330, 39400, 10697, 198, 6738, 304, 17733, 67, 13, 364...
3.662651
83
# This file is part of NEORL. # Copyright (c) 2021 Exelon Corporation and MIT Nuclear Science and Engineering # NEORL is free software: you can redistribute it and/or modify # it under the terms of the MIT LICENSE # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # ...
[ 2, 220, 220, 220, 770, 2393, 318, 636, 286, 10635, 1581, 43, 13, 201, 198, 201, 198, 2, 220, 220, 220, 15069, 357, 66, 8, 33448, 1475, 417, 261, 10501, 290, 17168, 19229, 5800, 290, 14044, 201, 198, 2, 220, 220, 220, 10635, 1581, ...
3.069401
317
from scipy.io import wavfile import numpy as np import pingouin as pg import pandas as pd _,data = wavfile.read('wav//ed//mp3baked.wav') _,data1 = wavfile.read('wav//ing//ingeating.wav') i= data.shape[0]-1 j = data1.shape[0]-1 index_1 = -1 index_2 = -1 try: data.shape[1] except IndexError: ...
[ 6738, 629, 541, 88, 13, 952, 1330, 266, 615, 7753, 201, 198, 11748, 299, 32152, 355, 45941, 201, 198, 11748, 29400, 280, 259, 220, 355, 23241, 201, 198, 11748, 19798, 292, 355, 279, 67, 201, 198, 201, 198, 62, 11, 7890, 796, 266, ...
1.881188
707
from textwrap import dedent import pytest from pylox.lox import Lox TEST_SRC = dedent( """\ /* This is a multiline block comment */ """ ) EXPECTED_STDOUTS: list[str] = []
[ 6738, 2420, 37150, 1330, 4648, 298, 198, 198, 11748, 12972, 9288, 198, 198, 6738, 279, 2645, 1140, 13, 75, 1140, 1330, 406, 1140, 198, 198, 51, 6465, 62, 50, 7397, 796, 4648, 298, 7, 198, 220, 220, 220, 37227, 59, 198, 220, 220, 2...
2.27907
86
from mlbase.utils.misc import lazy tensorflow = lazy("tensorflow") numpy = lazy("numpy") gensim = lazy("gensim")
[ 6738, 25962, 8692, 13, 26791, 13, 44374, 1330, 16931, 198, 198, 83, 22854, 11125, 796, 16931, 7203, 83, 22854, 11125, 4943, 198, 77, 32152, 796, 16931, 7203, 77, 32152, 4943, 198, 70, 641, 320, 796, 16931, 7203, 70, 641, 320, 4943, 19...
2.714286
42
import re import setuptools README_FILENAME = "README.md" VERSION_FILENAME = "observed.py" VERSION_RE = r"^__version__ = ['\"]([^'\"]*)['\"]" # Get version information with open(VERSION_FILENAME, "r") as version_file: mo = re.search(VERSION_RE, version_file.read(), re.M) if mo: version = mo.group(1) else: ...
[ 11748, 302, 198, 11748, 900, 37623, 10141, 628, 198, 15675, 11682, 62, 46700, 1677, 10067, 796, 366, 15675, 11682, 13, 9132, 1, 198, 43717, 62, 46700, 1677, 10067, 796, 366, 672, 45852, 13, 9078, 1, 198, 43717, 62, 2200, 796, 374, 1, ...
2.746193
394
import os import json import numpy as np import pickle from typing import Any from pycocotools.coco import COCO from torch.utils.data import Dataset
[ 11748, 28686, 198, 11748, 33918, 198, 11748, 299, 32152, 355, 45941, 198, 11748, 2298, 293, 198, 6738, 19720, 1330, 4377, 198, 198, 6738, 12972, 66, 420, 313, 10141, 13, 66, 25634, 1330, 327, 4503, 46, 198, 6738, 28034, 13, 26791, 13, ...
3.212766
47
import sys import operator sys.stdin = open('input.txt') fact = [1, 1] for i in range(2, 15): fact.append(fact[-1] * i) while True: try: n, k = map(int, raw_input().split()) coef = map(int, raw_input().split()) except: break print fact[n] / reduce(operator.mul, [fact[c] for c in...
[ 11748, 25064, 198, 11748, 10088, 198, 198, 17597, 13, 19282, 259, 796, 1280, 10786, 15414, 13, 14116, 11537, 198, 22584, 796, 685, 16, 11, 352, 60, 198, 1640, 1312, 287, 2837, 7, 17, 11, 1315, 2599, 198, 220, 220, 220, 1109, 13, 332...
2.201342
149
from django.contrib.auth.models import User from django.db import models from django.urls import reverse # Create your models here.
[ 6738, 42625, 14208, 13, 3642, 822, 13, 18439, 13, 27530, 1330, 11787, 198, 6738, 42625, 14208, 13, 9945, 1330, 4981, 198, 6738, 42625, 14208, 13, 6371, 82, 1330, 9575, 198, 198, 2, 13610, 534, 4981, 994, 13, 628 ]
3.526316
38
#!/usr/bin/python # ***************************************************************************** # # Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. The A...
[ 2, 48443, 14629, 14, 8800, 14, 29412, 198, 198, 2, 41906, 17174, 4557, 35625, 198, 2, 198, 2, 49962, 284, 262, 24843, 10442, 5693, 357, 1921, 37, 8, 739, 530, 198, 2, 393, 517, 18920, 5964, 11704, 13, 220, 4091, 262, 28536, 2393, ...
2.406001
3,133
# -*- coding: utf-8 -*- """ helper function: convert Hz to Bark scale Args: fInHz: The frequency to be converted, can be scalar or vector cModel: The name of the model ('Schroeder' [default], 'Terhardt', 'Zwicker', 'Traunmuller') Returns: Bark values of the input dimension """ import numpy as np imp...
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 37811, 198, 2978, 525, 2163, 25, 10385, 26109, 284, 20511, 5046, 628, 220, 943, 14542, 25, 198, 220, 220, 220, 277, 818, 7399, 25, 383, 8373, 284, 307, 11513, 11, 460,...
2.894737
114
# Copyright 2019 The Magenta Authors. # # 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 ...
[ 2, 15069, 13130, 383, 2944, 29188, 46665, 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, 11846, 351, 262, 13789, 13, 198, ...
2.139085
6,363
# usr/bin/env python """Functions to cluster using UPGMA upgma takes an dictionary of pair tuples mapped to distances as input. UPGMA_cluster takes an array and a list of PhyloNode objects corresponding to the array as input. Can also generate this type of input from a DictArray using inputs_from_dict_array function....
[ 2, 514, 81, 14, 8800, 14, 24330, 21015, 198, 37811, 24629, 2733, 284, 13946, 1262, 471, 6968, 5673, 198, 198, 929, 70, 2611, 2753, 281, 22155, 286, 5166, 12777, 2374, 27661, 284, 18868, 355, 5128, 13, 198, 198, 52, 6968, 5673, 62, 5...
2.866508
2,105
#this code will generate the structural verilog for a single entry in the register file #takes in the output file manager, the entry number, the number of bits, the number of reads, and the width of the #tristate buffers on the read outputs #expects the same things as make_store_cell, ensure code is valid there #Matt...
[ 2, 5661, 2438, 481, 7716, 262, 13204, 3326, 346, 519, 329, 257, 2060, 5726, 287, 262, 7881, 2393, 198, 2, 83, 1124, 287, 262, 5072, 2393, 4706, 11, 262, 5726, 1271, 11, 262, 1271, 286, 10340, 11, 262, 1271, 286, 9743, 11, 290, 262...
2.968912
193
"""API for AVB""" import json import sys import requests #Example of use if __name__ == "__main__": resp = actualite_found() result = get_result(resp,2,"description") print(result) print(nb_result(resp))
[ 37811, 17614, 329, 14661, 33, 37811, 198, 198, 11748, 33918, 198, 11748, 25064, 198, 198, 11748, 7007, 628, 628, 198, 198, 2, 16281, 286, 779, 198, 361, 11593, 3672, 834, 6624, 366, 834, 12417, 834, 1298, 198, 220, 220, 220, 1217, 796...
2.722892
83
#!/usr/bin/env python # -*- coding: utf-8 -*- # ----------------------------------------------------------------------------- # (C) British Crown Copyright 2017-2021 Met Office. # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the ...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 198, 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 2, 16529, 32501, 198, 2, 357, 34, 8, 3517, 12223, 15069, 2177, 12, 1238, 2481, 3395, 4452, 13, 198, 2, 1439, 2489, ...
3.697342
489
#Copyright (c) 2017 Andre Santos # #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, merge, publish, distribute...
[ 198, 2, 15269, 357, 66, 8, 2177, 10948, 28458, 198, 2, 198, 2, 5990, 3411, 318, 29376, 7520, 11, 1479, 286, 3877, 11, 284, 597, 1048, 16727, 257, 4866, 198, 2, 1659, 428, 3788, 290, 3917, 10314, 3696, 357, 1169, 366, 25423, 12340, ...
2.494655
10,290
from django.contrib.auth.models import User from rest_framework import viewsets, status from rest_framework.response import Response from rest_framework.permissions import IsAuthenticated, IsAdminUser from api.serializers import TODOListSerializer from api.models import TODOList
[ 6738, 42625, 14208, 13, 3642, 822, 13, 18439, 13, 27530, 1330, 11787, 198, 6738, 1334, 62, 30604, 1330, 5009, 1039, 11, 3722, 198, 6738, 1334, 62, 30604, 13, 26209, 1330, 18261, 198, 6738, 1334, 62, 30604, 13, 525, 8481, 1330, 1148, 4...
4.028571
70
# ProgramB.py print('Hello World')
[ 2, 6118, 33, 13, 9078, 198, 4798, 10786, 15496, 2159, 11537, 198 ]
2.916667
12
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.db import migrations, models import django.db.models.deletion
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 6738, 11593, 37443, 834, 1330, 28000, 1098, 62, 17201, 874, 198, 198, 6738, 42625, 14208, 13, 9945, 1330, 15720, 602, 11, 4981, 198, 11748, 42625, 14208, 13, 9945, 13, 2...
2.82
50
# Never do that! Use one of these instead... is_even = lambda i : i % 2 == 0 is_even = lambda i : not i & 1 is_odd = lambda i : not is_even(i)
[ 198, 2, 7236, 466, 326, 0, 5765, 530, 286, 777, 2427, 986, 198, 198, 271, 62, 10197, 796, 37456, 1312, 1058, 1312, 4064, 362, 6624, 657, 198, 271, 62, 10197, 796, 37456, 1312, 1058, 407, 1312, 1222, 352, 198, 271, 62, 5088, 796, 3...
2.716981
53
#!/usr/bin/env python # # Wordpress Bruteforce Tool # # By @random_robbie # # import requests import json import sys import argparse import re import os.path from requests.packages.urllib3.exceptions import InsecureRequestWarning requests.packages.urllib3.disable_warnings(InsecureRequestWarning) session = requests.Se...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 198, 2, 198, 2, 9678, 8439, 30291, 891, 8387, 16984, 198, 2, 198, 2, 2750, 2488, 25120, 62, 305, 11848, 494, 198, 2, 220, 198, 2, 198, 198, 11748, 7007, 198, 11748, 33918, 198, 11748, 2...
2.720287
976
import heapq import time from os import path from math import floor if __name__ == "__main__": # test case 1, output: {1: 0, 2: 1, 3: 2, 4: 2, 5: 3, 6: 4} # graph = { # 1: [(6, 7), (5, 3), (2, 1), (4, 2), (3, 3)], # 2: [(1, 1), (3, 1), (4, 1), (6, 6)], # 3: [(1, 3), (2, 1), (6, 2)]...
[ 11748, 24575, 80, 198, 11748, 640, 198, 6738, 28686, 1330, 3108, 198, 6738, 10688, 1330, 4314, 628, 628, 628, 198, 361, 11593, 3672, 834, 6624, 366, 834, 12417, 834, 1298, 198, 220, 220, 220, 1303, 1332, 1339, 352, 11, 5072, 25, 1391,...
1.942857
700
import warnings from collections import Counter, Mapping, Sequence from numbers import Number from typing import Dict, List import numpy as np import torch from mmdet.core.mask.structures import BitmapMasks from torch.nn import functional as F _step_counter = Counter()
[ 11748, 14601, 198, 6738, 17268, 1330, 15034, 11, 337, 5912, 11, 45835, 198, 6738, 3146, 1330, 7913, 198, 6738, 19720, 1330, 360, 713, 11, 7343, 198, 198, 11748, 299, 32152, 355, 45941, 198, 11748, 28034, 198, 6738, 8085, 15255, 13, 7295...
3.714286
77
# -*- coding: utf-8 -*- """Test the terminaltables output adapter.""" from __future__ import unicode_literals from textwrap import dedent import pytest from cli_helpers.compat import HAS_PYGMENTS from cli_helpers.tabular_output import terminaltables_adapter if HAS_PYGMENTS: from pygments.style import Style ...
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 37811, 14402, 262, 5651, 2501, 2977, 5072, 21302, 526, 15931, 198, 198, 6738, 11593, 37443, 834, 1330, 28000, 1098, 62, 17201, 874, 198, 6738, 2420, 37150, 1330, 4648, 298...
2.498498
333
#! /usr/bin/env python # encoding: utf-8 # harald at klimachs.de import re from waflib import Utils,Errors from waflib.Tools import fc,fc_config,fc_scan from waflib.Configure import conf from waflib.Tools.compiler_fc import fc_compiler fc_compiler['aix'].insert(0, 'fc_xlf') def configure(conf): conf.find_xlf() con...
[ 2, 0, 1220, 14629, 14, 8800, 14, 24330, 21015, 198, 2, 21004, 25, 3384, 69, 12, 23, 198, 2, 3971, 1940, 379, 479, 2475, 620, 82, 13, 2934, 198, 198, 11748, 302, 198, 6738, 266, 1878, 8019, 1330, 7273, 4487, 11, 9139, 5965, 198, ...
2.408046
174
#!/usr/bin/python3 # -*- coding:utf-8 -*- # __author__ = '__MeGustas__' from django.test import TestCase from django.db import connection from tutorials.create_table.models import * # Create your tests here.
[ 2, 48443, 14629, 14, 8800, 14, 29412, 18, 198, 2, 532, 9, 12, 19617, 25, 40477, 12, 23, 532, 9, 12, 198, 2, 11593, 9800, 834, 796, 705, 834, 5308, 38, 436, 292, 834, 6, 198, 198, 6738, 42625, 14208, 13, 9288, 1330, 6208, 20448, ...
2.864865
74
import copy from web3 import Web3 from .utils import utils as hero_utils CONTRACT_ADDRESS = '0x5f753dcdf9b1ad9aabc1346614d1f4746fd6ce5c' ABI = """ [ {"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"addres...
[ 11748, 4866, 198, 6738, 3992, 18, 1330, 5313, 18, 198, 6738, 764, 26791, 1330, 3384, 4487, 355, 4293, 62, 26791, 198, 198, 10943, 5446, 10659, 62, 2885, 7707, 7597, 796, 705, 15, 87, 20, 69, 44550, 17896, 7568, 24, 65, 16, 324, 24, ...
3.451826
6,518
# -*- coding: utf-8 -*- from __future__ import unicode_literals from tipi import tipi as _tipi tipi = lambda s: _tipi(s, lang='fr')
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 6738, 11593, 37443, 834, 1330, 28000, 1098, 62, 17201, 874, 628, 198, 6738, 8171, 72, 1330, 8171, 72, 355, 4808, 22504, 72, 628, 198, 22504, 72, 796, 37456, 264, 25, 4...
2.464286
56
from django.db import models VEHICLE_CHOICES = ( ('OASISSB', 'OASIS Small Business'), ('OASIS', 'OASIS Unrestricted') ) STATUS_CHOICES = ( ('P', 'In Progress'), ('C', 'Completed'), ('F', 'Cancelled') )
[ 6738, 42625, 14208, 13, 9945, 1330, 4981, 198, 198, 6089, 39, 31419, 62, 44899, 34444, 796, 357, 198, 220, 220, 220, 19203, 46, 1921, 16744, 33, 3256, 705, 46, 1921, 1797, 10452, 7320, 33809, 198, 220, 220, 220, 19203, 46, 1921, 1797,...
2.287129
101
""" Contains the QuantumCircuit class boom. """
[ 37811, 198, 4264, 1299, 262, 29082, 31560, 5013, 1398, 198, 2127, 296, 13, 198, 37811, 198 ]
3
16
import sys sys.path.append("..") # change environment to see tools from make_hydrodem import bathymetricGradient workspace = r"" # path to geodatabase to use as a workspace snapGrid = r"" # path to snapping grid hucPoly = r"" # path to local folder polygon hydrographyArea = r"" # path to NHD area feature class...
[ 11748, 25064, 201, 198, 17597, 13, 6978, 13, 33295, 7203, 492, 4943, 1303, 1487, 2858, 284, 766, 4899, 201, 198, 6738, 787, 62, 15511, 305, 9536, 1330, 7837, 88, 4164, 1173, 42731, 1153, 201, 198, 201, 198, 5225, 10223, 796, 374, 1593...
3.071429
196
# This is the OpenGL context for drawing flow calculation lines from Context import * from primitives import Vector2, Segment from OpenGL.GL import * from copy import deepcopy
[ 2, 770, 318, 262, 30672, 4732, 329, 8263, 5202, 17952, 3951, 198, 6738, 30532, 1330, 1635, 198, 6738, 2684, 20288, 1330, 20650, 17, 11, 1001, 5154, 198, 6738, 30672, 13, 8763, 1330, 1635, 198, 6738, 4866, 1330, 2769, 30073, 198 ]
4.4
40
from .interval_collectors import *
[ 6738, 764, 3849, 2100, 62, 33327, 669, 1330, 1635, 198 ]
3.5
10
# -*- coding: utf-8 -*- # @Time: 2020/11/8 23:47 # @Author: GraceKoo # @File: test.py # @Desc: from threading import Thread import time if __name__ == "__main__": t1 = Thread(target=print_numbers) t1.setDaemon(True) t1.start() # print("")
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 2, 2488, 7575, 25, 12131, 14, 1157, 14, 23, 2242, 25, 2857, 198, 2, 2488, 13838, 25, 16156, 42, 2238, 198, 2, 2488, 8979, 25, 1332, 13, 9078, 198, 2, 2488, 24564, ...
2.224138
116
""" Django settings for massenergize_portal_backend project. Generated by 'django-admin startproject' using Django 2.1.4. For more information on this file, see https://docs.djangoproject.com/en/2.1/topics/settings/ For the full list of settings and their values, see https://docs.djangoproject.com/en/2.1/ref/setting...
[ 37811, 198, 35, 73, 14208, 6460, 329, 2347, 877, 70, 1096, 62, 634, 282, 62, 1891, 437, 1628, 13, 198, 198, 8645, 515, 416, 705, 28241, 14208, 12, 28482, 923, 16302, 6, 1262, 37770, 362, 13, 16, 13, 19, 13, 198, 198, 1890, 517, ...
2.308656
2,553
import asyncio # from aiorpcgrid.client import Client from aiorpcgrid.task import AsyncTask, State
[ 11748, 30351, 952, 198, 198, 2, 422, 257, 1504, 14751, 25928, 13, 16366, 1330, 20985, 198, 6738, 257, 1504, 14751, 25928, 13, 35943, 1330, 1081, 13361, 25714, 11, 1812, 628 ]
3.366667
30
# Copyright 2020, OpenTelemetry Authors # # 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 i...
[ 2, 15069, 12131, 11, 4946, 31709, 41935, 46665, 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, 198, ...
3.081174
579
# Generated by Django 4.0.2 on 2022-04-01 16:09 from django.db import migrations, models
[ 2, 2980, 515, 416, 37770, 604, 13, 15, 13, 17, 319, 33160, 12, 3023, 12, 486, 1467, 25, 2931, 198, 198, 6738, 42625, 14208, 13, 9945, 1330, 15720, 602, 11, 4981, 628 ]
2.84375
32
import numpy as np import torch import random from .odenet_mnist.layers import MetaNODE
[ 11748, 299, 32152, 355, 45941, 198, 11748, 28034, 198, 11748, 4738, 198, 198, 6738, 764, 375, 268, 316, 62, 10295, 396, 13, 75, 6962, 1330, 30277, 45, 16820, 198, 220, 220, 220, 220, 220, 220, 220, 220 ]
2.621622
37
""" Module: 'ubinascii' on esp32 1.10.0 """ # MCU: (sysname='esp32', nodename='esp32', release='1.10.0', version='v1.10 on 2019-01-25', machine='ESP32 module with ESP32') # Stubber: 1.2.0
[ 37811, 198, 26796, 25, 705, 549, 24252, 979, 72, 6, 319, 15024, 2624, 352, 13, 940, 13, 15, 198, 37811, 198, 2, 13122, 52, 25, 357, 17597, 3672, 11639, 9774, 2624, 3256, 18666, 12453, 11639, 9774, 2624, 3256, 2650, 11639, 16, 13, 94...
2.3625
80
""" @author : Spencer Lyon """ from __future__ import division import sys import unittest from nose.plugins.skip import SkipTest from jv import JvWorker from quantecon import compute_fixed_point from quantecon.tests import get_h5_data_file, write_array, max_abs_diff # specify params -- use defaults A = 1.4 alpha = 0...
[ 37811, 198, 198, 31, 9800, 1058, 15971, 35193, 198, 198, 37811, 198, 6738, 11593, 37443, 834, 1330, 7297, 198, 11748, 25064, 198, 11748, 555, 715, 395, 198, 6738, 9686, 13, 37390, 13, 48267, 1330, 32214, 14402, 198, 6738, 474, 85, 1330,...
2.270677
399
"""Config This module is in charge of providing all the necessary settings to the rest of the modules in excentury. """ import os import re import sys import textwrap import argparse from collections import OrderedDict from excentury.command import error, trace, import_mod DESC = """Edit a configuration file for ex...
[ 37811, 16934, 198, 198, 1212, 8265, 318, 287, 3877, 286, 4955, 477, 262, 3306, 6460, 284, 198, 1169, 1334, 286, 262, 13103, 287, 409, 14792, 13, 198, 198, 37811, 198, 198, 11748, 28686, 198, 11748, 302, 198, 11748, 25064, 198, 11748, ...
2.094246
4,414
# -*- coding: utf-8 -*- ''' Created on Thu Nov 19 20:52:33 2015 @author: SW274998 ''' from nseta.common.commons import * import datetime import unittest import time from bs4 import BeautifulSoup from tests import htmls import json import requests import six from nseta.common.urls import * import nseta.common.urls as ...
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 7061, 6, 198, 41972, 319, 26223, 5267, 678, 1160, 25, 4309, 25, 2091, 1853, 198, 198, 31, 9800, 25, 12672, 1983, 28324, 23, 198, 7061, 6, 198, 6738, 299, 2617, 64, 1...
2.845029
342
from django import forms from .models import Account from common.models import Comment, Attachments from leads.models import Lead from contacts.models import Contact from django.db.models import Q
[ 6738, 42625, 14208, 1330, 5107, 198, 6738, 764, 27530, 1330, 10781, 198, 6738, 2219, 13, 27530, 1330, 18957, 11, 3460, 620, 902, 198, 6738, 5983, 13, 27530, 1330, 20116, 198, 6738, 13961, 13, 27530, 1330, 14039, 198, 6738, 42625, 14208, ...
4.166667
48
# # Copyright 2018 PyWren Team # # 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, 198, 2, 15069, 2864, 9485, 54, 918, 4816, 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, 198, ...
3.621212
198
import os import random inputDirectory = "./original" outputDirectory = "./processed" #probability parameters TopLevel = 0.6 SecondLevel = 0.5 ThirdLevel = 0.4 FourAndAbove = 0.2 pickInside = 0.5 pickOutside = 0.25 topics = [] siteLevel = [] fileStructure = [] count = 0 topicIndex=0 for foldername in os.listdir...
[ 11748, 28686, 198, 11748, 4738, 198, 198, 15414, 43055, 796, 366, 19571, 14986, 1, 198, 22915, 43055, 796, 366, 19571, 14681, 276, 1, 198, 198, 2, 1676, 65, 1799, 10007, 198, 9126, 4971, 796, 657, 13, 21, 198, 12211, 4971, 796, 657, ...
2.265411
584
#!/usr/bin/env python # -*- coding: utf-8 -*- # This file is part of the Kramers-Kronig Calculator software package. # # Copyright (c) 2013 Benjamin Watts, Daniel J. Lauk # # The software is licensed under the terms of the zlib/libpng license. # For details see LICENSE.txt """This module implements the Kramers-Kronig...
[ 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, 770, 2393, 318, 636, 286, 262, 509, 859, 364, 12, 42, 1313, 328, 43597, 3788, 5301, 13, 198, 2, 198, 2, 1...
2.527566
5,387
from PIL import ImageDraw, Image from math import cos,sin,radians from random import randint import sys a = "a0A1b2B3c4C5d6D7e8E9f!F,g.G/h?H<i>I:j;J'k\"K\\l|L/m M\nn\tN@o#O$p%P^q&Q*r(R)s_S-t+T=u{U}v[V]w W x X y Y z Z" if len(a) > 128: print("TOO MANY CHARACTERS") sys.exit(1) # for i in a: # print("%s -> %...
[ 6738, 350, 4146, 1330, 7412, 25302, 11, 7412, 198, 6738, 10688, 1330, 8615, 11, 31369, 11, 6335, 1547, 198, 6738, 4738, 1330, 43720, 600, 198, 11748, 25064, 198, 198, 64, 796, 366, 64, 15, 32, 16, 65, 17, 33, 18, 66, 19, 34, 20, ...
1.770903
598
import math from collections import defaultdict from typing import List, Dict, Any from nonebot import on_command, on_message, on_notice, on_regex, get_driver from nonebot.log import logger from nonebot.permission import Permission from nonebot.typing import T_State from nonebot.adapters import Event, Bot from nonebot...
[ 11748, 10688, 198, 6738, 17268, 1330, 4277, 11600, 198, 6738, 19720, 1330, 7343, 11, 360, 713, 11, 4377, 198, 198, 6738, 4844, 13645, 1330, 319, 62, 21812, 11, 319, 62, 20500, 11, 319, 62, 42138, 11, 319, 62, 260, 25636, 11, 651, 62...
2.471154
832