content
stringlengths
1
1.04M
input_ids
listlengths
1
774k
ratio_char_token
float64
0.38
22.9
token_count
int64
1
774k
# generate grouped data and a bipartite social graph import synthetic_data_generation as gen import numpy as np if __name__ == "__main__": main()
[ 2, 7716, 32824, 1366, 290, 257, 14141, 433, 578, 1919, 4823, 198, 198, 11748, 18512, 62, 7890, 62, 20158, 355, 2429, 198, 198, 11748, 299, 32152, 355, 45941, 198, 198, 361, 11593, 3672, 834, 6624, 366, 834, 12417, 834, 1298, 198, 220,...
3.255319
47
from sql_alchemy import database
[ 6738, 44161, 62, 282, 26599, 1330, 6831, 628 ]
4.25
8
import argparse import math import random import os import sys import numpy as np import torch from torch import nn, autograd, optim from torch.nn import functional as F from torch.utils import data import torch.distributed as dist from torchvision import transforms, utils from tqdm import tqdm from copy import deepcop...
[ 11748, 1822, 29572, 198, 11748, 10688, 198, 11748, 4738, 198, 11748, 28686, 198, 11748, 25064, 198, 11748, 299, 32152, 355, 45941, 198, 11748, 28034, 198, 6738, 28034, 1330, 299, 77, 11, 1960, 519, 6335, 11, 6436, 198, 6738, 28034, 13, ...
2.340548
2,772
import execnet import cPickle as pickle from collections import Counter import numpy as np from sklearn.cluster import MiniBatchKMeans from scipy.spatial.distance import cdist, pdist from sklearn import cluster, metrics from time import time if __name__ == '__channelexec__': while 1: X = pickle.load(open("/med...
[ 11748, 2452, 3262, 198, 11748, 269, 31686, 293, 355, 2298, 293, 198, 6738, 17268, 1330, 15034, 198, 11748, 299, 32152, 355, 45941, 198, 6738, 1341, 35720, 13, 565, 5819, 1330, 12558, 33, 963, 42, 5308, 504, 198, 6738, 629, 541, 88, 13...
2.81875
160
# Copyright (c) 2017 Alex Socha # http://www.alexsocha.com/pynode from pynode.src import communicate
[ 2, 15069, 357, 66, 8, 2177, 4422, 1406, 11693, 201, 198, 2, 2638, 1378, 2503, 13, 1000, 87, 568, 11693, 13, 785, 14, 79, 2047, 1098, 201, 198, 201, 198, 6738, 279, 2047, 1098, 13, 10677, 1330, 10996, 201, 198 ]
2.65
40
import gzip import jsonlines import os import shutil def read_jsonl(file): """Read a JSON lines file into a list of JSON dicts. Args: file (file object): An existing file object to be read from. The file can either be a json lines file (extension `.jsonl`) or a gzip file (exte...
[ 11748, 308, 13344, 198, 11748, 33918, 6615, 198, 11748, 28686, 198, 11748, 4423, 346, 628, 198, 4299, 1100, 62, 17752, 75, 7, 7753, 2599, 198, 220, 220, 220, 37227, 5569, 257, 19449, 3951, 2393, 656, 257, 1351, 286, 19449, 8633, 82, 1...
2.350114
437
import socket import threading import time import http.client import requests import os count = 1 #while 1: count = 0 while count < 32: r = requests.get("http://127.0.0.1:1123/index") filename = "./tmp/"+str(count) with open(os.path.join(os.path.dirname(os.path.abspath("__file__")),filename),"wb") as f: ...
[ 11748, 17802, 198, 11748, 4704, 278, 198, 11748, 640, 198, 11748, 2638, 13, 16366, 198, 11748, 7007, 198, 11748, 28686, 198, 198, 9127, 796, 352, 198, 2, 4514, 352, 25, 198, 9127, 796, 657, 198, 4514, 954, 1279, 3933, 25, 198, 220, ...
2.509434
159
sample = """Player 1: 9 2 6 3 1 Player 2: 5 8 4 7 10""" starting_decks = """Player 1: 3 42 4 25 14 36 32 18 33 10 35 50 16 31 34 46 9 6 41 7 15 45 30 27 49 Player 2: 8 11 47 21 17 39 29 43 23 28 13 22 5 20 44 38 26 37 2 24 48 12 19 1 40"""
[ 39873, 796, 37227, 14140, 352, 25, 198, 24, 198, 17, 198, 21, 198, 18, 198, 16, 198, 198, 14140, 362, 25, 198, 20, 198, 23, 198, 19, 198, 22, 198, 940, 37811, 198, 198, 38690, 62, 12501, 591, 796, 37227, 14140, 352, 25, 198, 18,...
1.624161
149
import logging from sqlalchemy import create_engine from sqlalchemy.orm import sessionmaker from pynYNAB.ObjClient import RootObjClient from pynYNAB.connection import nYnabConnection from pynYNAB.exceptions import NoBudgetNameException, BudgetNotFound, NoCredentialsException from pynYNAB.schema import Base, Catalog, ...
[ 11748, 18931, 198, 198, 6738, 44161, 282, 26599, 1330, 2251, 62, 18392, 198, 6738, 44161, 282, 26599, 13, 579, 1330, 6246, 10297, 198, 198, 6738, 279, 2047, 56, 4535, 33, 13, 49201, 11792, 1330, 20410, 49201, 11792, 198, 6738, 279, 2047...
3.306306
111
# flake8: noqa from catalyst_rl.rl.exploration import *
[ 2, 781, 539, 23, 25, 645, 20402, 198, 6738, 31357, 62, 45895, 13, 45895, 13, 20676, 6944, 1330, 1635, 198 ]
2.8
20
import numpy as np # linear algebra import pandas as pd # data processing, CSV file I/O (e.g. pd.read_csv) from matplotlib import pyplot as plt import tensorflow as tf from tensorflow.keras.optimizers import RMSprop,Nadam,Adadelta,Adam from tensorflow.keras.layers import BatchNormalization,LeakyReLU from tensorflow.ker...
[ 11748, 299, 32152, 355, 45941, 1303, 14174, 37139, 198, 11748, 19798, 292, 355, 279, 67, 1303, 1366, 7587, 11, 44189, 2393, 314, 14, 46, 357, 68, 13, 70, 13, 279, 67, 13, 961, 62, 40664, 8, 198, 6738, 2603, 29487, 8019, 1330, 12972,...
2.524829
2,195
if __name__ == "__main__": k = 2 a = [0, -1, 2, 1] print(angryProfessor(k,a))
[ 198, 361, 11593, 3672, 834, 6624, 366, 834, 12417, 834, 1298, 198, 220, 220, 220, 479, 796, 362, 198, 220, 220, 220, 257, 796, 685, 15, 11, 532, 16, 11, 362, 11, 352, 60, 198, 220, 220, 220, 3601, 7, 648, 563, 25031, 7, 74, 11...
1.875
48
import importlib # These are special sizes LENGTH_PREFIXED_VAR_SIZE = -1 CODEC_CACHE = {}
[ 11748, 1330, 8019, 628, 198, 2, 2312, 389, 2041, 10620, 198, 43, 49494, 62, 47, 31688, 10426, 1961, 62, 53, 1503, 62, 33489, 796, 532, 16, 628, 198, 198, 34, 3727, 2943, 62, 34, 2246, 13909, 796, 23884, 628 ]
2.461538
39
import sqlite3 from ioscrack import crack
[ 11748, 44161, 578, 18, 198, 198, 6738, 1312, 418, 6098, 441, 1330, 8469, 628, 628, 628 ]
3
16
"""Users Serializers""" #Django from django.contrib.auth import authenticate, password_validation # Django REST Framework from rest_framework import serializers from rest_framework.authtoken.models import Token from rest_framework.validators import UniqueValidator #Models from handwritten.users.models import User cla...
[ 37811, 14490, 23283, 11341, 37811, 198, 2, 35, 73, 14208, 198, 6738, 42625, 14208, 13, 3642, 822, 13, 18439, 1330, 8323, 5344, 11, 9206, 62, 12102, 341, 198, 2, 37770, 30617, 25161, 198, 6738, 1334, 62, 30604, 1330, 11389, 11341, 198, ...
2.633242
728
class Vessel(object): """Dummy class to return pre-generated data """ def get_duty(self): """Dummy method, returns fake duty cycle """ return 50 def set_duty(self, duty): """Dummy method, will be used to set the output duty cycle """ pass if __name...
[ 198, 4871, 44734, 7, 15252, 2599, 198, 220, 220, 220, 37227, 35, 13513, 1398, 284, 1441, 662, 12, 27568, 1366, 198, 220, 220, 220, 37227, 628, 628, 220, 220, 220, 825, 651, 62, 26278, 7, 944, 2599, 198, 220, 220, 220, 220, 220, 22...
2.372222
180
""" Exceptions for storage events. """ class SampleStorageError(Exception): """ Superclass of all storage related exceptions. Denotes a general storage error. """ class StorageInitError(SampleStorageError): """ Denotes an error during initialization of the storage system. """ class OwnerCh...
[ 37811, 198, 3109, 11755, 329, 6143, 2995, 13, 198, 37811, 628, 198, 4871, 27565, 31425, 12331, 7, 16922, 2599, 198, 220, 220, 220, 37227, 198, 220, 220, 220, 3115, 4871, 286, 477, 6143, 3519, 13269, 13, 5601, 6421, 257, 2276, 6143, 40...
3.684524
168
import re import sys PASSWORD_RE = re.compile('(\d+)-(\d+) (\w): (\w+)') if __name__ == '__main__': correct_count = 0 for line in sys.stdin: pos1, pos2, letter, password = PASSWORD_RE.match(line).groups() pos1 = int(pos1) - 1 pos2 = int(pos2) - 1 if (letter == password[pos1]...
[ 11748, 302, 198, 11748, 25064, 628, 198, 47924, 54, 12532, 62, 2200, 796, 302, 13, 5589, 576, 10786, 38016, 67, 10, 13219, 38016, 67, 28988, 357, 59, 86, 2599, 357, 59, 86, 28988, 11537, 628, 198, 361, 11593, 3672, 834, 6624, 705, 8...
2.170213
188
from typing import List, Tuple, Union from tikzpy.drawing_objects.point import Point from tikzpy.drawing_objects.drawing_object import DrawingObject from tikzpy.utils.helpers import brackets class PlotCoordinates(DrawingObject): """ A class to create plots in the tikz environment. Attributes : op...
[ 6738, 19720, 1330, 7343, 11, 309, 29291, 11, 4479, 198, 6738, 256, 1134, 89, 9078, 13, 19334, 278, 62, 48205, 13, 4122, 1330, 6252, 198, 6738, 256, 1134, 89, 9078, 13, 19334, 278, 62, 48205, 13, 19334, 278, 62, 15252, 1330, 40027, 1...
2.940887
203
from django.http import HttpResponse from django.template import loader from django.shortcuts import render, redirect
[ 6738, 42625, 14208, 13, 4023, 1330, 367, 29281, 31077, 198, 6738, 42625, 14208, 13, 28243, 1330, 40213, 198, 6738, 42625, 14208, 13, 19509, 23779, 1330, 8543, 11, 18941, 628, 628, 628, 628, 198 ]
3.818182
33
import hashlib import lxml.html import os import pickle import requests import sys _ascii = ('01234567890123456789012345678901 ' '!"#$%&\'()*+,-./0123456789:;<=>?@' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`' 'abcdefghijklmnopqrstuvwxyz{|}~')
[ 11748, 12234, 8019, 198, 11748, 300, 19875, 13, 6494, 198, 11748, 28686, 198, 11748, 2298, 293, 198, 11748, 7007, 198, 11748, 25064, 628, 198, 62, 292, 979, 72, 796, 19203, 486, 1954, 2231, 3134, 4531, 486, 1954, 2231, 3134, 4531, 486, ...
1.861111
144
import paddle.fluid as fluid import paddle import paddorch.cuda import paddorch.nn import os import paddorch.nn.functional from paddle.fluid import dygraph import numpy as np
[ 11748, 39517, 13, 35522, 312, 355, 11711, 198, 11748, 39517, 198, 11748, 14098, 273, 354, 13, 66, 15339, 198, 11748, 14098, 273, 354, 13, 20471, 198, 11748, 28686, 198, 11748, 14098, 273, 354, 13, 20471, 13, 45124, 198, 6738, 39517, 13,...
3.320755
53
import logging from .ibindex import IbIndexQueryService from .nasdaq import NasdaqIndexScraper, NasdaqCompany from .google import StockDomain, GoogleFinanceQueryService from .bloomberg import BloombergQueryService from .avanza import AvanzaQueryService from .ig import IGQueryService from .yahoo import YahooQueryService...
[ 11748, 18931, 198, 6738, 764, 571, 9630, 1330, 21089, 15732, 20746, 16177, 198, 6738, 764, 24716, 48539, 1330, 22767, 48539, 15732, 3351, 38545, 11, 22767, 48539, 39154, 198, 6738, 764, 13297, 1330, 10500, 43961, 11, 3012, 37, 14149, 20746,...
3.9
110
from django.conf import settings from django.db import models class TimeStampedModel(models.Model): """ Time Stamped Model """ created = models.DateTimeField(auto_now_add=True) modified = models.DateTimeField(auto_now=True) class Voice(TimeStampedModel): """ Voice Model to analyze and save pitches ...
[ 6738, 42625, 14208, 13, 10414, 1330, 6460, 198, 6738, 42625, 14208, 13, 9945, 1330, 4981, 628, 198, 4871, 3862, 1273, 13322, 17633, 7, 27530, 13, 17633, 2599, 198, 220, 220, 220, 37227, 3862, 520, 13322, 9104, 37227, 628, 220, 220, 220,...
2.722955
758
import numpy as np import pandas as pd np.random.seed(1) LENGTH = 500 A = np.random.rand(LENGTH) A[np.random.choice(LENGTH, 20, replace = False)] = np.nan B = np.random.randint(100, size = LENGTH) C = A + np.random.normal(0, 0.2, LENGTH) D = A + np.random.normal(0, 0.1, LENGTH) E = np.random.rand(LENGTH) E[np.rand...
[ 11748, 299, 32152, 355, 45941, 198, 11748, 19798, 292, 355, 279, 67, 198, 198, 37659, 13, 25120, 13, 28826, 7, 16, 8, 198, 198, 43, 49494, 796, 5323, 198, 198, 32, 796, 45941, 13, 25120, 13, 25192, 7, 43, 49494, 8, 198, 32, 58, ...
2.2
300
xmark = '<:xmark:820320509211574284>' tick = '<:tick:820320509564551178>' voice_channel = '<:Voice_channels:820162682883014667> ' text_channel = '<:Text_Channel:820162682970832897>' error = '<:error:820162683147911169>' questionmark = '<:questionmark:820319249867866143>' info = '<:info:820332723121684530>' youtube = '<...
[ 87, 4102, 796, 705, 27, 25, 87, 4102, 25, 41739, 19504, 1120, 5892, 1157, 46900, 30336, 29, 6, 198, 42298, 796, 705, 27, 25, 42298, 25, 41739, 19504, 1120, 50148, 30505, 1157, 3695, 29, 6, 198, 38888, 62, 17620, 796, 705, 27, 25, ...
1.908549
503
# Copyright 2022 MosaicML Composer authors # SPDX-License-Identifier: Apache-2.0 """Log to `Weights and Biases <https://wandb.ai/>`_.""" from __future__ import annotations import atexit import os import pathlib import re import sys import tempfile import warnings from typing import Any, Dict, List, Optional from co...
[ 2, 15069, 33160, 5826, 18452, 5805, 29936, 263, 7035, 198, 2, 30628, 55, 12, 34156, 12, 33234, 7483, 25, 24843, 12, 17, 13, 15, 198, 198, 37811, 11187, 284, 4600, 1135, 2337, 290, 8436, 1386, 1279, 5450, 1378, 86, 392, 65, 13, 1872,...
2.795796
666
import config from controlClient import ControlClient from recognizer import Recognizer from voiceListener import VoiceListener import logging client=ControlClient(config.mqtt_broker_address,config.mqtt_broker_port,config.mqtt_voice_topic) recognizer=Recognizer(config.model_directory) logger = logging.getLogger(__nam...
[ 11748, 4566, 198, 6738, 1630, 11792, 1330, 6779, 11792, 198, 6738, 3018, 7509, 1330, 31517, 7509, 198, 6738, 3809, 33252, 1330, 15282, 33252, 198, 11748, 18931, 628, 198, 16366, 28, 15988, 11792, 7, 11250, 13, 76, 80, 926, 62, 7957, 612...
3.27027
111
from honeygrove.config import Config from honeygrove.services.HTTPService import HTTPService from twisted.internet import reactor import requests import threading import unittest
[ 6738, 12498, 27333, 303, 13, 11250, 1330, 17056, 198, 6738, 12498, 27333, 303, 13, 30416, 13, 6535, 28820, 712, 501, 1330, 38288, 712, 501, 198, 198, 6738, 19074, 13, 37675, 1330, 21905, 198, 198, 11748, 7007, 198, 11748, 4704, 278, 198...
3.956522
46
"""Parsing of CLI input (args).""" import argparse from ickafka.__version__ import VERSION def get_args(): """Parse args""" parser = argparse.ArgumentParser(description="Consume from kafka") parser.add_argument( "-s", "--server", help="kafka broker ip or hostname", default="localhost"...
[ 37811, 47, 945, 278, 286, 43749, 5128, 357, 22046, 21387, 15931, 201, 198, 201, 198, 11748, 1822, 29572, 201, 198, 6738, 220, 624, 1878, 4914, 13, 834, 9641, 834, 1330, 44156, 2849, 201, 198, 201, 198, 201, 198, 4299, 651, 62, 22046, ...
2.399072
431
import pytest
[ 11748, 12972, 9288, 628, 628, 198 ]
3
6
from construct import * from ..common import debug_field, DirtyBits ShipStatus_Partial = Struct( "DirtyBits" / DirtyBits, "NumSystems" / VarInt, "Systems" / debug_field(Byte[this.NumSystems]), ) ShipStatus_Full = Struct( )
[ 6738, 5678, 1330, 1635, 198, 198, 6738, 11485, 11321, 1330, 14257, 62, 3245, 11, 32052, 33, 896, 198, 198, 25586, 19580, 62, 7841, 498, 796, 32112, 7, 198, 220, 220, 220, 366, 35, 5893, 33, 896, 1, 1220, 32052, 33, 896, 11, 198, 2...
2.644444
90
import multiprocessing, logging, sys, re, os, StringIO, threading, time, Queue, collections from logging import Logger class MultiProcessingLogHandler(logging.Handler): """taken from http://stackoverflow.com/questions/641420/how-should-i-log-while-using-multiprocessing-in-python added counting of log message...
[ 11748, 18540, 305, 919, 278, 11, 18931, 11, 25064, 11, 302, 11, 28686, 11, 10903, 9399, 11, 4704, 278, 11, 640, 11, 4670, 518, 11, 17268, 198, 198, 6738, 18931, 1330, 5972, 1362, 198, 198, 4871, 15237, 18709, 278, 11187, 25060, 7, 6...
3.151961
204
_MAJOR = u"0" _MINOR = u"6" _REVISION = u"1-unreleased" VERSION_SHORT = u"{0}.{1}".format(_MAJOR, _MINOR) VERSION = u"{0}.{1}.{2}".format(_MAJOR, _MINOR, _REVISION)
[ 62, 5673, 41, 1581, 796, 334, 1, 15, 1, 198, 62, 23678, 1581, 796, 334, 1, 21, 1, 198, 62, 2200, 29817, 2849, 796, 334, 1, 16, 12, 403, 30147, 1, 198, 198, 43717, 62, 9693, 9863, 796, 334, 1, 90, 15, 27422, 90, 16, 92, 1911,...
1.886364
88
#----------------------------------------------------------------------------- # Copyright (c) 2012 - 2022, Anaconda, Inc., and Bokeh Contributors. # All rights reserved. # # The full license is in the file LICENSE.txt, distributed with this software. #-------------------------------------------------------------------...
[ 2, 10097, 32501, 198, 2, 15069, 357, 66, 8, 2321, 532, 33160, 11, 1052, 330, 13533, 11, 3457, 1539, 290, 347, 2088, 71, 25767, 669, 13, 198, 2, 1439, 2489, 10395, 13, 198, 2, 198, 2, 383, 1336, 5964, 318, 287, 262, 2393, 38559, ...
4.3309
822
# IMPORTS import cv2 # Read the video file cap = cv2.VideoCapture("./Data/cars.avi") # PROPids of the video frame frame_width = int(cap.get(cv2.CAP_PROP_FRAME_WIDTH)) frame_height = int(cap.get(cv2.CAP_PROP_FRAME_HEIGHT)) # FourCC Codec to identify the video file format fourcc = cv2.VideoWriter_fourcc(*"XVID") saved...
[ 2, 30023, 33002, 198, 11748, 269, 85, 17, 198, 198, 2, 4149, 262, 2008, 2393, 198, 11128, 796, 269, 85, 17, 13, 10798, 49630, 7, 1911, 14, 6601, 14, 37993, 13, 15820, 4943, 198, 198, 2, 4810, 3185, 2340, 286, 262, 2008, 5739, 198,...
2.311436
411
import boto3 from botocore.exceptions import ClientError from boto3.dynamodb.conditions import Key import json import os import logging import datetime from dateutil import tz from pprint import pprint from lib.vpc import * import logging logger = logging.getLogger() class AWSAccount(object): """Class to repre...
[ 198, 11748, 275, 2069, 18, 198, 6738, 10214, 420, 382, 13, 1069, 11755, 1330, 20985, 12331, 198, 6738, 275, 2069, 18, 13, 67, 4989, 375, 65, 13, 17561, 1756, 1330, 7383, 198, 11748, 33918, 198, 11748, 28686, 198, 11748, 18931, 198, 11...
2.234921
5,836
import numpy as np import pandas as pd import matplotlib import matplotlib.pyplot as plt import collections import copy # deadspots = 175.2 (full fov) / res / 2 * discretisation # eg. 115x44 disc. 5 -> 175.2/115/2*5 = 3.81 deg # 2nd July (93a92648a5e774c97e3368e3306782382f626b6d) - SR=1, rho=0.1, theta=5 deg data = { ...
[ 11748, 299, 32152, 355, 45941, 198, 11748, 19798, 292, 355, 279, 67, 198, 11748, 2603, 29487, 8019, 198, 11748, 2603, 29487, 8019, 13, 9078, 29487, 355, 458, 83, 198, 11748, 17268, 198, 11748, 4866, 198, 198, 2, 2636, 2777, 1747, 796, ...
2.097739
1,504
s = Solution() data = [ ['0.1', '0.1.0.0'], ['1.0.1', '1'], ['7.5.2.4', '7.3'], ['1.1', '1.01'], ["19.8.3.17.5.01.0.0.4.0.0.0.0.0.0.0.0.0.0.0.0.0.00.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0...
[ 198, 82, 796, 28186, 3419, 198, 198, 7890, 796, 685, 198, 220, 220, 220, 37250, 15, 13, 16, 3256, 705, 15, 13, 16, 13, 15, 13, 15, 6, 4357, 198, 220, 220, 220, 37250, 16, 13, 15, 13, 16, 3256, 705, 16, 6, 4357, 198, 220, 220...
1.130556
720
import json import os import shutil import sys import zipfile from tempfile import TemporaryDirectory from unittest import TestCase, main, skipIf from cogent3.app.data_store import ( OVERWRITE, DataStoreMember, ReadOnlyDirectoryDataStore, ReadOnlyTinyDbDataStore, ReadOnlyZippedDataStore, Singl...
[ 11748, 33918, 198, 11748, 28686, 198, 11748, 4423, 346, 198, 11748, 25064, 198, 11748, 19974, 7753, 198, 198, 6738, 20218, 7753, 1330, 46042, 43055, 198, 6738, 555, 715, 395, 1330, 6208, 20448, 11, 1388, 11, 14267, 1532, 198, 198, 6738, ...
2.461149
592
from AppLauncher.backend.models.accounts import Account as ModelsAccount
[ 6738, 2034, 46182, 2044, 13, 1891, 437, 13, 27530, 13, 23317, 82, 1330, 10781, 355, 32329, 30116, 201, 198 ]
3.894737
19
N = int(input()) A = [] s2 = set() for _ in range(N): x,i = map(int, input().split()) A.append([x,i]) s2.add(i) ID = dict() cnt_id = 0 for i in sorted(list(s2)): ID[i]=cnt_id cnt_id+=1 B = [] for a,b in A: B.append([a, ID[b]]) B.sort() check = [0]*cnt_id S=0 ans=1000000000 for E in range(len(B)): check[B[E][1...
[ 45, 796, 493, 7, 15414, 28955, 198, 32, 796, 17635, 198, 82, 17, 796, 900, 3419, 198, 1640, 4808, 287, 2837, 7, 45, 2599, 198, 197, 87, 11, 72, 796, 3975, 7, 600, 11, 5128, 22446, 35312, 28955, 198, 197, 32, 13, 33295, 26933, 87...
1.822511
231
# -*- coding: utf-8 -*- # ******************************************************** # Author and developer: Aleksandr Suvorov # -------------------------------------------------------- # Licensed: BSD 3-Clause License (see LICENSE for details) # -------------------------------------------------------- # Url: https://git...
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 2, 41906, 8412, 4557, 198, 2, 6434, 290, 8517, 25, 9300, 591, 46273, 1778, 20867, 709, 198, 2, 20368, 22369, 198, 2, 49962, 25, 347, 10305, 513, 12, 2601, 682, 13789, ...
4.782609
138
""" Behavioral pattern: Chain of responsibility """ from abc import ABC, abstractmethod # ----------------------------------------------------------------- # ----------------------------------------------------------------- request = [3, 14, 34, 9] c1 = Client() c1.delegate(request)
[ 37811, 198, 220, 220, 220, 38483, 3912, 25, 198, 220, 220, 220, 220, 220, 220, 220, 21853, 286, 5798, 198, 37811, 198, 198, 6738, 450, 66, 1330, 9738, 11, 12531, 24396, 628, 198, 198, 2, 16529, 12, 628, 628, 198, 2, 16529, 12, 628...
4.205479
73
from django.contrib import admin from django.contrib.auth.admin import UserAdmin from .models import User, Persona # Register your models here. admin.site.register(User, UserAdmin) admin.site.register(Persona)
[ 6738, 42625, 14208, 13, 3642, 822, 1330, 13169, 198, 6738, 42625, 14208, 13, 3642, 822, 13, 18439, 13, 28482, 1330, 11787, 46787, 198, 6738, 764, 27530, 1330, 11787, 11, 41581, 628, 198, 2, 17296, 534, 4981, 994, 13, 198, 28482, 13, 1...
3.47541
61
# -*- coding: utf-8 -*- """ Created on Fri Apr 8 16:54:36 2011 @author: ProfMobius @version: v1.0 """ import sys import logging from optparse import OptionParser from commands import Commands, CLIENT, SERVER, CalledProcessError from mcp import recompile_side if __name__ == '__main__': main()
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 37811, 198, 41972, 319, 19480, 2758, 220, 807, 1467, 25, 4051, 25, 2623, 2813, 198, 198, 31, 9800, 25, 4415, 44702, 3754, 198, 31, 9641, 25, 410, 16, 13, 15, 198, 37...
2.923077
104
x = 4 result = 3*x - 2 == 10 print(result)
[ 87, 796, 604, 198, 20274, 796, 513, 9, 87, 532, 362, 6624, 838, 198, 4798, 7, 20274, 8, 198 ]
2.263158
19
# -*- coding: utf-8 -*- from __future__ import absolute_import from morphine import features from morphine.feature_extractor import FeatureExtractor from morphine.basetagger import PartialTagger
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 6738, 11593, 37443, 834, 1330, 4112, 62, 11748, 198, 198, 6738, 43948, 1330, 3033, 198, 6738, 43948, 13, 30053, 62, 2302, 40450, 1330, 27018, 11627, 40450, 198, 6738, 4394...
3.735849
53
from collections import OrderedDict import numpy as np from matplotlib import pyplot as plt from matplotlib.ticker import FormatStrFormatter
[ 6738, 17268, 1330, 14230, 1068, 35, 713, 198, 198, 11748, 299, 32152, 355, 45941, 198, 6738, 2603, 29487, 8019, 1330, 12972, 29487, 355, 458, 83, 198, 6738, 2603, 29487, 8019, 13, 83, 15799, 1330, 18980, 13290, 8479, 1436, 628 ]
3.666667
39
from neon.transforms.cost import Cost
[ 6738, 25988, 13, 7645, 23914, 13, 15805, 1330, 6446, 628, 198 ]
3.636364
11
# Generated by Django 3.2.6 on 2021-08-25 13:48 from django.db import migrations import django.db.models.deletion import paper_uploads.cloudinary.models.fields.image
[ 2, 2980, 515, 416, 37770, 513, 13, 17, 13, 21, 319, 33448, 12, 2919, 12, 1495, 1511, 25, 2780, 198, 198, 6738, 42625, 14208, 13, 9945, 1330, 15720, 602, 198, 11748, 42625, 14208, 13, 9945, 13, 27530, 13, 2934, 1616, 295, 198, 11748,...
3
56
from nltk.tokenize import word_tokenize from server.db import MongoClientContext from operator import itemgetter from server import server_app from collections import defaultdict from itertools import chain import string import tempfile import os import nltk import logging nltk.data.path.append('nltk_data') class Si...
[ 6738, 299, 2528, 74, 13, 30001, 1096, 1330, 1573, 62, 30001, 1096, 198, 6738, 4382, 13, 9945, 1330, 42591, 11792, 21947, 198, 6738, 10088, 1330, 2378, 1136, 353, 198, 6738, 4382, 1330, 4382, 62, 1324, 198, 6738, 17268, 1330, 4277, 11600...
2.399567
3,236
from typing import Optional from botocore.client import BaseClient from typing import Dict from typing import Union from botocore.paginate import Paginator from datetime import datetime from botocore.waiter import Waiter from typing import List
[ 6738, 19720, 1330, 32233, 198, 6738, 10214, 420, 382, 13, 16366, 1330, 7308, 11792, 198, 6738, 19720, 1330, 360, 713, 198, 6738, 19720, 1330, 4479, 198, 6738, 10214, 420, 382, 13, 79, 363, 4559, 1330, 31525, 20900, 198, 6738, 4818, 8079...
4.032787
61
# Copyright (c) 2021, NVIDIA CORPORATION. All rights reserved. # # NVIDIA CORPORATION and its licensors retain all intellectual property # and proprietary rights in and to this software, related documentation # and any modifications thereto. Any use, reproduction, disclosure or # distribution of this software and rel...
[ 2, 15069, 357, 66, 8, 33448, 11, 15127, 23929, 44680, 6234, 13, 220, 1439, 2489, 10395, 13, 198, 2, 198, 2, 15127, 23929, 44680, 6234, 290, 663, 8240, 669, 12377, 477, 9028, 3119, 198, 2, 290, 20622, 2489, 287, 290, 284, 428, 3788, ...
2.452449
3,165
# load every working model from the model collection into workspace import sys import os import importlib import pandas as pd import numpy as np import libsbml from C import DIR_MODELS_REGROUPED, DIR_MODELS def get_submodel(submodel_path: str, model_info: pd.DataFrame): """ This function lo...
[ 2, 3440, 790, 1762, 2746, 422, 262, 2746, 4947, 656, 44573, 198, 198, 11748, 25064, 198, 11748, 28686, 198, 11748, 1330, 8019, 198, 11748, 19798, 292, 355, 279, 67, 198, 11748, 299, 32152, 355, 45941, 198, 198, 11748, 9195, 36299, 4029,...
2.589069
1,976
# # 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 ASF licenses this file to You under the Apache License, Version 2.0 # (the "License"); you may not us...
[ 2, 198, 2, 49962, 284, 262, 24843, 10442, 5693, 357, 1921, 37, 8, 739, 530, 393, 517, 198, 2, 18920, 5964, 11704, 13, 220, 4091, 262, 28536, 2393, 9387, 351, 198, 2, 428, 670, 329, 3224, 1321, 5115, 6634, 9238, 13, 198, 2, 383, ...
2.235367
10,541
from ..algorithm.parameters import params from ..fitness.base_ff_classes.base_ff import base_ff import editdistance # https://pypi.python.org/pypi/editdistance import lzstring # https://pypi.python.org/pypi/lzstring/ import dtw # https://pypi.python.org/pypi/dtw """ This fitness function is for a sequence-match p...
[ 6738, 11485, 282, 42289, 13, 17143, 7307, 1330, 42287, 198, 6738, 11485, 69, 3659, 13, 8692, 62, 487, 62, 37724, 13, 8692, 62, 487, 1330, 2779, 62, 487, 198, 198, 11748, 4370, 30246, 220, 1303, 3740, 1378, 79, 4464, 72, 13, 29412, 1...
2.568234
1,297
from enum import Enum from math import radians, cos, sin THETAS = [] for theta in range(1080): theta = radians(float(theta/3)) xd_d = float(cos(theta)) yd_d = float(sin(theta)) THETAS.append((xd_d,yd_d)) LINES = { "top-left" : 201, "bottom-right" : 188, "top-right" : 187, "left-right" : 186,...
[ 6738, 33829, 1330, 2039, 388, 201, 198, 6738, 10688, 1330, 2511, 1547, 11, 8615, 11, 7813, 201, 198, 201, 198, 4221, 2767, 1921, 796, 17635, 201, 198, 201, 198, 1640, 262, 8326, 287, 2837, 7, 24045, 2599, 201, 198, 197, 1169, 8326, ...
1.735983
1,409
# Copyright (c) 2019 The Johns Hopkins University/Applied Physics Laboratory # 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/LICEN...
[ 2, 15069, 357, 66, 8, 13130, 383, 25824, 21183, 2059, 14, 4677, 18511, 23123, 18643, 198, 2, 1439, 6923, 33876, 13, 198, 2, 198, 2, 49962, 739, 262, 24843, 13789, 11, 10628, 362, 13, 15, 357, 1169, 366, 34156, 15341, 345, 743, 198, ...
2.259428
4,614
# -*- coding: utf-8 -*- # Generated by Django 1.11.1 on 2017-05-20 03:39 from __future__ import unicode_literals from django.db import migrations, models
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 2, 2980, 515, 416, 37770, 352, 13, 1157, 13, 16, 319, 2177, 12, 2713, 12, 1238, 7643, 25, 2670, 198, 6738, 11593, 37443, 834, 1330, 28000, 1098, 62, 17201, 874, 198, ...
2.736842
57
import os import shutil import uuid from os.path import join, splitext from typing import List import mobi import uvicorn from fastapi import FastAPI, UploadFile, File, Form, HTTPException import iscc from iscc_cli.tika import detector, parser from iscc_cli.const import SUPPORTED_MIME_TYPES, GMT import iscc_service fr...
[ 11748, 28686, 198, 11748, 4423, 346, 198, 11748, 334, 27112, 198, 6738, 28686, 13, 6978, 1330, 4654, 11, 4328, 578, 742, 198, 6738, 19720, 1330, 7343, 198, 198, 11748, 7251, 72, 198, 11748, 334, 25531, 1211, 198, 6738, 3049, 15042, 1330...
2.266386
3,799
Modpack_name = "My modpack" #appears in the about dialog Modpack_author = "My name" #appears in the about dialog Modpack_url = "http://example.com/" #link to this appears in the about dialog M...
[ 198, 5841, 8002, 62, 3672, 796, 366, 3666, 953, 8002, 1, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1303, 1324, 4127, 287, 262, 546, 17310, 198, 5841, 8002, 62, 9800, 796, 366, 3666, 1438,...
2.15621
781
import os import six import shutil import yaml import click import pickle import pandas as pd from pyfiglet import figlet_format, Figlet from prettytable import PrettyTable from cognito.table import Table from datetime import datetime from tqdm import tqdm, trange def save_to(path, df, encoder): """ Save th...
[ 11748, 28686, 198, 11748, 2237, 198, 11748, 4423, 346, 198, 11748, 331, 43695, 198, 11748, 3904, 198, 11748, 2298, 293, 198, 11748, 19798, 292, 355, 279, 67, 198, 6738, 12972, 5647, 1616, 1330, 2336, 1616, 62, 18982, 11, 12138, 1616, 19...
2.351488
1,579
# -*- coding: utf-8 -*- """ Created on Sun Aug 12 12:51:11 2018 @author: admin """ # -*- coding: utf-8 -*- """ Created on Sat Aug 11 15:12:22 2018 @author: admin """ from video_pixels import video import numpy as np import cv2 from matplotlib import pyplot as plt cap = cv2.VideoCapture('2.avi') ...
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 201, 198, 37811, 201, 198, 41972, 319, 3825, 2447, 1105, 1105, 25, 4349, 25, 1157, 2864, 201, 198, 201, 198, 31, 9800, 25, 13169, 201, 198, 37811, 201, 198, 201, 198, 2, ...
2.131481
540
from nltk import corpus, stopwords, tokenize output = tokenize.TextTilingTokenizer().tokenize(corpus.brown.raw()[0:10000]) output = [token for token in output if token not in stopwords]
[ 6738, 299, 2528, 74, 1330, 35789, 11, 2245, 10879, 11, 11241, 1096, 198, 198, 22915, 796, 11241, 1096, 13, 8206, 51, 4386, 30642, 7509, 22446, 30001, 1096, 7, 10215, 79, 385, 13, 33282, 13, 1831, 3419, 58, 15, 25, 49388, 12962, 198, ...
3.186441
59
# Copyright 2016 Google Inc. 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 applicable law or a...
[ 2, 15069, 1584, 3012, 3457, 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, 287, 11846, 351, 262, 13789, ...
3.044099
771
# -*- coding: utf-8 -*- # Copyright 2019 the HERA Project # Licensed under the MIT License '''Tests for io.py''' import pytest import numpy as np import os import warnings import shutil import copy from collections import OrderedDict as odict import pyuvdata from pyuvdata import UVCal, UVData, UVFlag from pyuvdata.ut...
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 2, 15069, 13130, 262, 24906, 32, 4935, 198, 2, 49962, 739, 262, 17168, 13789, 198, 198, 7061, 6, 51, 3558, 329, 33245, 13, 9078, 7061, 6, 198, 198, 11748, 12972, 9288,...
3.232919
322
""" >>> from massweb.mass_requests.mass_request import MassRequest >>> from massweb.targets.target import Target >>> >>> target_1 = Target(url=u"http://course.hyperiongray.com/vuln1", data={"password": "blh123"}, ttype="post") >>> target_2 = Target(url=u"http://course.hyperiongray.com/vuln2/898538a7...
[ 37811, 198, 220, 220, 220, 13163, 422, 2347, 12384, 13, 22208, 62, 8897, 3558, 13, 22208, 62, 25927, 1330, 5674, 18453, 198, 220, 220, 220, 13163, 422, 2347, 12384, 13, 83, 853, 1039, 13, 16793, 1330, 12744, 198, 220, 220, 220, 13163,...
2.476056
710
from Router import * from PyQt4 import QtCore
[ 6738, 48538, 1330, 1635, 198, 6738, 9485, 48, 83, 19, 1330, 33734, 14055, 198 ]
3.285714
14
import pandas as pd import sys import json import sqlite3 if __name__ == '__main__': main(sys.argv)
[ 11748, 19798, 292, 355, 279, 67, 198, 11748, 25064, 198, 11748, 33918, 198, 11748, 44161, 578, 18, 628, 198, 361, 11593, 3672, 834, 6624, 705, 834, 12417, 834, 10354, 198, 220, 220, 220, 1388, 7, 17597, 13, 853, 85, 8, 198 ]
2.585366
41
# -*- coding: utf-8 -*- """spacy.ipynb Automatically generated by Colaboratory. Original file is located at https://colab.research.google.com/drive/1PvWiuiOWi9TFTT6hZQJrobxF87dT5LBY """ !pip3 install spacy import spacy import time nlp=spacy.load('en') # this will use nltk_data folder to load library data="i ...
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 37811, 2777, 1590, 13, 541, 2047, 65, 198, 198, 38062, 4142, 7560, 416, 1623, 4820, 2870, 13, 198, 198, 20556, 2393, 318, 5140, 379, 198, 220, 220, 220, 3740, 1378, 40...
2.552511
219
import aiohttp import logging import xml.etree.ElementTree as ET from bs4 import BeautifulSoup from .types import ( BCHydroAccount, BCHydroInterval, BCHydroRates, BCHydroDailyElectricity, BCHydroDailyUsage, ) from .const import ( USER_AGENT, URL_POST_LOGIN, URL_GET_ACCOUNT_JSON, UR...
[ 11748, 257, 952, 4023, 198, 11748, 18931, 198, 11748, 35555, 13, 316, 631, 13, 20180, 27660, 355, 12152, 198, 6738, 275, 82, 19, 1330, 23762, 50, 10486, 198, 198, 6738, 764, 19199, 1330, 357, 198, 220, 220, 220, 347, 3398, 5173, 305, ...
2.297619
168
# 1. After getting the duration iterate through each second and get the frames # at each second # 2. Next step is to get how much ever frames you want in that second with the upper- # bound of min(X,FPS) # 3. Need to see whether to save the images /Frames and then randomly select min(X,FPS) # ...
[ 2, 352, 13, 220, 220, 220, 2293, 1972, 262, 9478, 11629, 378, 832, 1123, 1218, 290, 651, 262, 13431, 220, 198, 2, 220, 220, 220, 220, 220, 220, 379, 1123, 1218, 198, 2, 362, 13, 220, 220, 220, 7406, 2239, 318, 284, 651, 703, 881...
2.63138
529
WORD_MARK = None
[ 54, 12532, 62, 44, 14175, 796, 6045, 198 ]
2.125
8
''' Runs unit tests for Util functionality ''' import sys import os sys.path.insert(0, os.path.join(os.path.dirname(__file__), '..')) import unittest from main.consolidate_uber_data import Pipeline
[ 7061, 6, 44743, 4326, 5254, 329, 7273, 346, 11244, 705, 7061, 198, 11748, 25064, 198, 11748, 28686, 198, 17597, 13, 6978, 13, 28463, 7, 15, 11, 28686, 13, 6978, 13, 22179, 7, 418, 13, 6978, 13, 15908, 3672, 7, 834, 7753, 834, 828, ...
2.985075
67
from .dolt import ( Branch, Commit, Dolt, DoltException, DoltHubContext, KeyPair, Remote, Status, Table, _execute, ) from .types import BranchT, CommitT, DoltT, KeyPairT, RemoteT, StatusT, TableT from .utils import ( CREATE, FORCE_CREATE, REPLACE, UPDATE, colu...
[ 6738, 764, 67, 5978, 1330, 357, 198, 220, 220, 220, 20551, 11, 198, 220, 220, 220, 35910, 11, 198, 220, 220, 220, 360, 5978, 11, 198, 220, 220, 220, 360, 5978, 16922, 11, 198, 220, 220, 220, 360, 5978, 16066, 21947, 11, 198, 220, ...
2.101695
236
''' Created on May 10, 2021 @author: Fred ''' from PIL import Image from datetime import datetime import random, os class tdeck(): ''' classdocs ''' def __init__(self, card_dir='./card_images/', invert=True, invert_chance=25): ''' Args ---- card_dir :...
[ 7061, 6, 201, 198, 41972, 319, 1737, 838, 11, 33448, 201, 198, 201, 198, 31, 9800, 25, 8559, 201, 198, 7061, 6, 201, 198, 6738, 350, 4146, 1330, 7412, 201, 198, 6738, 4818, 8079, 1330, 4818, 8079, 201, 198, 11748, 4738, 11, 28686, ...
2.058853
2,022
import akutil as aku import arkouda as ak def expand(size, segs, vals): """ Expand an array with values placed into the indicated segments. Parameters ---------- size : ak.pdarray The size of the array to be expanded segs : ak.pdarray The indices where the values should be placed ...
[ 11748, 47594, 22602, 355, 257, 23063, 198, 11748, 610, 74, 2778, 64, 355, 47594, 198, 198, 4299, 4292, 7, 7857, 11, 384, 14542, 11, 410, 874, 2599, 198, 220, 220, 220, 37227, 49368, 281, 7177, 351, 3815, 4624, 656, 262, 8203, 17894, ...
2.617521
468
""" API Uptime Monitor Author: Kevin Xin Amiteshk Sharma Status: Good, Bad, Incompatible, Unknown """ import logging from enum import Enum import requests # pylint:disable=import-error, ungrouped-imports from requests.packages.urllib3.exceptions impor...
[ 37811, 198, 220, 220, 220, 7824, 471, 457, 524, 18289, 198, 220, 220, 220, 220, 198, 220, 220, 220, 6434, 25, 198, 220, 220, 220, 220, 220, 220, 220, 7939, 25426, 198, 220, 220, 220, 220, 220, 220, 220, 1703, 2737, 71, 74, 40196, ...
2.23388
915
# -*- coding: utf-8 -*- """ Input arguments (Parameters) for Organizations resources RESTful API ----------------------------------------------------------- """ # from flask_marshmallow import base_fields from flask_restx_patched import Parameters, PatchJSONParameters from . import schemas from .models import Organiz...
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 37811, 198, 20560, 7159, 357, 48944, 8, 329, 41846, 4133, 30617, 913, 7824, 198, 43801, 6329, 198, 37811, 198, 198, 2, 422, 42903, 62, 76, 5406, 42725, 1330, 2779, 62, ...
4.373333
75
from .unit import * N = kg * m / s**2 J = N * m W = J / s Pa = N / m**2 # electricity A = coulomb / s V = W / A ohm = V / A T = kg * s**-2 / A F = coulomb / V gauss = 10**-4 * T
[ 6738, 764, 20850, 1330, 1635, 198, 198, 45, 796, 14211, 1635, 285, 1220, 264, 1174, 17, 198, 41, 796, 399, 1635, 285, 198, 54, 796, 449, 1220, 264, 198, 28875, 796, 399, 1220, 285, 1174, 17, 198, 198, 2, 8744, 198, 32, 796, 2284, ...
2.011111
90
from .sessions import *
[ 6738, 764, 82, 6202, 1330, 1635 ]
3.833333
6
from os import listdir, path from client.util.HTMLUtil import HTMLUtil from client.util.html.ButtonBuilder import ButtonBuilder from client.util.html.ListBuilder import ListBuilder from client.util.html.LinkBuider import LinkBuilder valid_report_types = ['NLU', 'NLU_Timing', 'Refresh_DD', 'Markov_Chain']
[ 6738, 28686, 1330, 1351, 15908, 11, 3108, 198, 6738, 5456, 13, 22602, 13, 28656, 18274, 346, 1330, 11532, 18274, 346, 198, 6738, 5456, 13, 22602, 13, 6494, 13, 21864, 32875, 1330, 20969, 32875, 198, 6738, 5456, 13, 22602, 13, 6494, 13, ...
3.322581
93
# # Copyright (c) 2016-2019 Dickson S. Guedes. # # This module is free software; you can redistribute it and/or modify it under # the [PostgreSQL License](http://www.opensource.org/licenses/postgresql). # # Permission to use, copy, modify, and distribute this software and its # documentation for any purpose, without fe...
[ 2, 198, 2, 15069, 357, 66, 8, 1584, 12, 23344, 360, 46381, 311, 13, 402, 1739, 274, 13, 198, 2, 198, 2, 770, 8265, 318, 1479, 3788, 26, 345, 460, 17678, 4163, 340, 290, 14, 273, 13096, 340, 739, 198, 2, 262, 685, 6307, 47701, ...
4.02719
331
# coding=utf-8 # *** WARNING: this file was generated by crd2pulumi. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** import warnings import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union from ... import _utilities, _tables __all__ = [ '...
[ 2, 19617, 28, 40477, 12, 23, 198, 2, 17202, 39410, 25, 428, 2393, 373, 7560, 416, 1067, 67, 17, 79, 377, 12994, 13, 17202, 198, 2, 17202, 2141, 407, 4370, 416, 1021, 4556, 345, 821, 1728, 345, 760, 644, 345, 389, 1804, 0, 17202, ...
2.578841
1,985
import sys import matplotlib.pyplot as plt import numpy as np import pandas as pd import icubam import icubam.predicu.data import icubam.predicu.plot data_source = ["bedcounts", "combined_bedcounts_public"] # Logic of this code: the computation of quantities, even when seemingly simple, # is performed separately fr...
[ 11748, 25064, 198, 198, 11748, 2603, 29487, 8019, 13, 9078, 29487, 355, 458, 83, 198, 11748, 299, 32152, 355, 45941, 198, 11748, 19798, 292, 355, 279, 67, 198, 198, 11748, 14158, 549, 321, 198, 11748, 14158, 549, 321, 13, 28764, 291, ...
2.028714
4,214
from datetime import datetime import json import os
[ 6738, 4818, 8079, 1330, 4818, 8079, 198, 11748, 33918, 198, 11748, 28686, 628 ]
4.076923
13
import requests from bs4 import BeautifulSoup import sys username = "" # Fill it passwd = "" # Fill it session = requests.Session() url = "https://www.codechef.com/login" r = session.get(url, verify = False) soup = BeautifulSoup(r.text, features = "lxml") _csrf = soup.find("input", attrs = {"name": "csrfToken"})[...
[ 11748, 7007, 198, 6738, 275, 82, 19, 1330, 23762, 50, 10486, 198, 11748, 25064, 198, 198, 29460, 796, 13538, 1303, 27845, 340, 198, 6603, 16993, 796, 13538, 1303, 27845, 340, 198, 198, 29891, 796, 7007, 13, 36044, 3419, 198, 198, 6371, ...
2.588115
488
from graphutil import Graph if __name__ == "__main__": test_arcs() test_write() test_connected_components() test_bfs() test_bfs_full() test_substitute()
[ 6738, 4823, 22602, 1330, 29681, 628, 628, 198, 361, 11593, 3672, 834, 6624, 366, 834, 12417, 834, 1298, 198, 220, 220, 220, 1332, 62, 5605, 82, 3419, 198, 220, 220, 220, 1332, 62, 13564, 3419, 198, 220, 220, 220, 1332, 62, 15236, 62...
2.350649
77
import enum __all__ = ("EventKind", "ALL_EVENTS") ALL_EVENTS = ( EventKind.INSERT, EventKind.UPDATE, EventKind.DELETE )
[ 11748, 33829, 628, 198, 834, 439, 834, 796, 5855, 9237, 35854, 1600, 366, 7036, 62, 20114, 15365, 4943, 628, 198, 198, 7036, 62, 20114, 15365, 796, 357, 198, 220, 220, 220, 8558, 35854, 13, 20913, 17395, 11, 198, 220, 220, 220, 8558, ...
2.322034
59
from subprocess import check_output from ast import literal_eval from Segmentation.params import regions_file from Segmentation.utilities import fix_json_fname import numpy as np def evaluation(fname_to_check, regions_fname=regions_file): """Evaluate results with neurofinder""" fname_to_check = fix_jso...
[ 6738, 850, 14681, 1330, 2198, 62, 22915, 201, 198, 6738, 6468, 1330, 18875, 62, 18206, 201, 198, 6738, 1001, 5154, 341, 13, 37266, 1330, 7652, 62, 7753, 201, 198, 6738, 1001, 5154, 341, 13, 315, 2410, 1330, 4259, 62, 17752, 62, 69, ...
2.770588
340
from pyglet.gl import *
[ 6738, 12972, 70, 1616, 13, 4743, 1330, 1635, 628, 198 ]
2.6
10
from django.contrib import admin from .models import Attachment, Message @admin.register(Attachment) @admin.register(Message)
[ 6738, 42625, 14208, 13, 3642, 822, 1330, 13169, 198, 198, 6738, 764, 27530, 1330, 3460, 15520, 11, 16000, 628, 198, 31, 28482, 13, 30238, 7, 8086, 15520, 8, 628, 198, 31, 28482, 13, 30238, 7, 12837, 8, 198 ]
3.447368
38
# Based on the original https://www.reddit.com/r/deepfakes/ code sample import cv2
[ 2, 13403, 319, 262, 2656, 3740, 1378, 2503, 13, 10748, 13, 785, 14, 81, 14, 22089, 69, 1124, 14, 2438, 6291, 198, 198, 11748, 269, 85, 17 ]
3.074074
27
import json import os import tempfile from unittest import skipIf from django.conf import settings from django.contrib.contenttypes.models import ContentType from django.urls import reverse from nautobot.extras.choices import WebhookHttpMethodChoices from nautobot.extras.context_managers import web_request_context f...
[ 11748, 33918, 198, 11748, 28686, 198, 11748, 20218, 7753, 198, 6738, 555, 715, 395, 1330, 14267, 1532, 198, 198, 6738, 42625, 14208, 13, 10414, 1330, 6460, 198, 6738, 42625, 14208, 13, 3642, 822, 13, 11299, 19199, 13, 27530, 1330, 14041, ...
2.641243
2,124
# import the necessary packages from moviepy.editor import VideoFileClip import time import os # 프레임당 이미지로 저장 if __name__ == '__main__': video_path = './fifth_season9/fifth_season_landmark.mp4' save_dir = './fifth_season9' out_name = 'landmark_img' video_to_image(video_path, save_dir, out_name)
[ 2, 1330, 262, 3306, 10392, 198, 6738, 3807, 9078, 13, 35352, 1330, 7623, 8979, 2601, 541, 198, 11748, 640, 198, 11748, 28686, 198, 198, 2, 220, 169, 242, 226, 167, 254, 230, 168, 252, 226, 46695, 117, 23821, 251, 112, 167, 107, 116,...
2.186207
145
#! /usr/bin/env python """This module acts as an interface for acting on git logs""" from string import Template from git_wrapper import exceptions from git_wrapper.utils.decorators import reference_exists
[ 2, 0, 1220, 14629, 14, 8800, 14, 24330, 21015, 198, 37811, 1212, 8265, 6529, 355, 281, 7071, 329, 7205, 319, 17606, 17259, 37811, 198, 198, 6738, 4731, 1330, 37350, 198, 198, 6738, 17606, 62, 48553, 1330, 13269, 198, 6738, 17606, 62, ...
3.87037
54
from src.data.download import download_database from src.data.ranking_file import read_rankings from src.data.rankings import get_and_save_rankings from src.data.raw import save_names_from_database from src.ranking.differences import calculate_ranking_difference_across_variants, save_ranking_differences from src.rankin...
[ 6738, 12351, 13, 7890, 13, 15002, 1330, 4321, 62, 48806, 198, 6738, 12351, 13, 7890, 13, 28405, 62, 7753, 1330, 1100, 62, 43027, 654, 198, 6738, 12351, 13, 7890, 13, 43027, 654, 1330, 651, 62, 392, 62, 21928, 62, 43027, 654, 198, 67...
3.345912
159
import re import psycopg2 from werkzeug.security import generate_password_hash, check_password_hash from flask import Blueprint, request, jsonify, make_response from app.api.v1.models.property_models import PropertyRecords from app.api.v1.models.database import init_db from app.api.v1.utils.validators import validate f...
[ 11748, 302, 198, 11748, 17331, 22163, 70, 17, 198, 6738, 266, 9587, 2736, 1018, 13, 12961, 1330, 7716, 62, 28712, 62, 17831, 11, 2198, 62, 28712, 62, 17831, 198, 6738, 42903, 1330, 39932, 11, 2581, 11, 33918, 1958, 11, 787, 62, 26209,...
2.621554
798
############################## # # # loxygenK/musical_typer # # ゲームシステム # # (c)2020 loxygenK # # All rights reversed. # # # ############################## import re import chardet import pygame import romkan from lib import Drawin...
[ 14468, 7804, 4242, 2235, 198, 2, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1303, 198, 2, 220, 220, 300, 23536, 5235, 42, 14, 14664, 605...
1.568284
15,399