content
stringlengths
1
1.04M
input_ids
listlengths
1
774k
ratio_char_token
float64
0.38
22.9
token_count
int64
1
774k
from typing import Optional from pydantic.main import BaseModel
[ 6738, 19720, 1330, 32233, 198, 198, 6738, 279, 5173, 5109, 13, 12417, 1330, 7308, 17633, 628, 628, 628, 628, 198 ]
3.65
20
from networking_p4.services.service_drivers.default.services.attach_module import AttachModuleService from networking_p4.services.service_drivers.default.services.configure_module import ConfigureModuleService from networking_p4.services.service_drivers.default.services.create_module import CreateModuleService from net...
[ 6738, 19140, 62, 79, 19, 13, 30416, 13, 15271, 62, 36702, 13, 12286, 13, 30416, 13, 47348, 62, 21412, 1330, 3460, 620, 26796, 16177, 198, 6738, 19140, 62, 79, 19, 13, 30416, 13, 15271, 62, 36702, 13, 12286, 13, 30416, 13, 11250, 495...
3.626344
372
# Hello World program. # This is where you write a comment. if __name__ == "__main__": hello_world()
[ 2, 18435, 2159, 1430, 13, 198, 2, 770, 318, 810, 345, 3551, 257, 2912, 13, 628, 198, 361, 11593, 3672, 834, 6624, 366, 834, 12417, 834, 1298, 198, 220, 220, 220, 23748, 62, 6894, 3419, 198 ]
2.972222
36
import requests import unittest import json import uuid from flask_probanno import GET, POST, PUT from controllers.probanno_management import CALCULATE_PROBANNO_JOB from controllers.job import COMPLETE BASE_URL = "http://probannoweb.systemsbiology.net/api" HEADERS = {'cache-control': 'no-cache'} FASTA_1 = '267377' CA...
[ 11748, 7007, 198, 11748, 555, 715, 395, 198, 11748, 33918, 198, 11748, 334, 27112, 198, 198, 6738, 42903, 62, 1676, 65, 1236, 78, 1330, 17151, 11, 24582, 11, 350, 3843, 198, 6738, 20624, 13, 1676, 65, 1236, 78, 62, 27604, 1330, 33290,...
2.741071
560
from fastapi import FastAPI from pytest import fixture from tortoise import Model from tortoise.backends.base.executor import EXECUTOR_CACHE from tortoise.contrib.fastapi import register_tortoise from tortoise.fields import IntField, TextField from fastapi_pagination import Page, add_pagination from fastapi_pagination...
[ 6738, 3049, 15042, 1330, 12549, 17614, 198, 6738, 12972, 9288, 1330, 29220, 198, 6738, 7619, 25678, 1330, 9104, 198, 6738, 7619, 25678, 13, 1891, 2412, 13, 8692, 13, 18558, 38409, 1330, 7788, 2943, 3843, 1581, 62, 34, 2246, 13909, 198, ...
3.219388
196
# ============================================================================= # periscope-ps (blipp) # # Copyright (c) 2013-2016, Trustees of Indiana University, # All rights reserved. # # This software may be modified and distributed under the terms of the BSD # license. See the COPYING file for details. # # ...
[ 2, 38093, 25609, 198, 2, 220, 583, 2304, 3008, 12, 862, 357, 2436, 3974, 8, 198, 2, 198, 2, 220, 15069, 357, 66, 8, 2211, 12, 5304, 11, 9870, 2841, 286, 10278, 2059, 11, 198, 2, 220, 1439, 2489, 10395, 13, 198, 2, 198, 2, 220,...
2.292328
3,780
"""Events API module.""" import logging from future.utils import raise_from from splitio.api import APIException, headers_from_metadata from splitio.api.client import HttpClientException class EventsAPI(object): # pylint: disable=too-few-public-methods """Class that uses an httpClient to communicate with the e...
[ 37811, 37103, 7824, 8265, 526, 15931, 198, 11748, 18931, 198, 198, 6738, 2003, 13, 26791, 1330, 5298, 62, 6738, 198, 198, 6738, 6626, 952, 13, 15042, 1330, 7824, 16922, 11, 24697, 62, 6738, 62, 38993, 198, 6738, 6626, 952, 13, 15042, ...
2.222222
1,116
from setuptools import setup setup( name='pyhatchbuck', version='0.4', description='Python library for Hatchbuck API', url='https://github.com/jakesen/pyhatchbuck', author='Jacob Senecal', author_email='jacob.senecal@gmail.com', license='MIT', packages=['hatchbuck',], install_requir...
[ 6738, 900, 37623, 10141, 1330, 9058, 198, 198, 40406, 7, 198, 220, 220, 220, 1438, 11639, 9078, 71, 963, 27041, 3256, 198, 220, 220, 220, 2196, 11639, 15, 13, 19, 3256, 198, 220, 220, 220, 6764, 11639, 37906, 5888, 329, 31537, 27041, ...
2.59542
131
# Copyright 2021 - 2022 UniversitΓ€t TΓΌbingen, DKFZ and EMBL # for the German Human Genome-Phenome Archive (GHGA) # # 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/...
[ 2, 15069, 33448, 532, 33160, 26986, 270, 11033, 83, 309, 9116, 4623, 268, 11, 32975, 37, 57, 290, 17228, 9148, 198, 2, 329, 262, 2679, 5524, 5215, 462, 12, 47, 831, 462, 20816, 357, 17511, 9273, 8, 198, 2, 198, 2, 49962, 739, 262,...
2.592838
1,508
import sys import ctypes import struct a = 59 x = y = a b = 125.54 c = 'Hello World!' print(id(a)) print(sys.getsizeof(a)) print(ctypes.string_at(id(a), sys.getsizeof(a))) print(struct.unpack('LLLLLLl', ctypes.string_at(id(a), sys.getsizeof(a)))) print(id(int)) print('*' * 50) print(id(b)) print(sys.getsizeof(b)) ...
[ 11748, 25064, 198, 11748, 269, 19199, 198, 11748, 2878, 628, 198, 64, 796, 7863, 198, 87, 796, 331, 796, 257, 198, 65, 796, 13151, 13, 4051, 198, 66, 796, 705, 15496, 2159, 13679, 198, 198, 4798, 7, 312, 7, 64, 4008, 198, 4798, 7,...
2.159151
377
from peewee import AutoField, TextField, BigIntegerField, BooleanField, ForeignKeyField from inscrawler.persistence.entity.base_model import BaseModel from inscrawler.persistence.entity.profile_entity import ProfileEntity # TODO create indexes
[ 6738, 613, 413, 1453, 1330, 11160, 15878, 11, 8255, 15878, 11, 4403, 46541, 15878, 11, 41146, 15878, 11, 8708, 9218, 15878, 198, 198, 6738, 1035, 66, 39464, 13, 19276, 13274, 13, 26858, 13, 8692, 62, 19849, 1330, 7308, 17633, 198, 6738,...
3.859375
64
import sys import math from collections import defaultdict, deque sys.setrecursionlimit(10 ** 6) stdin = sys.stdin INF = float('inf') MOD = 10 ** 9 + 7 ni = lambda: int(ns()) na = lambda: list(map(int, stdin.readline().split())) ns = lambda: stdin.readline().strip() N = ni() ans = 1 A = [] for i in range(2, N + 1):...
[ 11748, 25064, 198, 11748, 10688, 198, 6738, 17268, 1330, 4277, 11600, 11, 390, 4188, 198, 198, 17597, 13, 2617, 8344, 24197, 32374, 7, 940, 12429, 718, 8, 198, 19282, 259, 796, 25064, 13, 19282, 259, 198, 198, 1268, 37, 796, 12178, 10...
2.492958
142
import argparse import sys, os import imageio import tensorflow as tf import Classification_BatchDataset import TensorflowUtils as utils import pickle import time from tensorflow.keras.models import Sequential, Model from tensorflow.keras.layers import Conv2D, MaxPool2D, Dropout, Flatten, Dense, Input, Lambda from ...
[ 198, 198, 11748, 1822, 29572, 198, 11748, 25064, 11, 28686, 198, 198, 11748, 2939, 952, 198, 11748, 11192, 273, 11125, 355, 48700, 198, 11748, 40984, 62, 33, 963, 27354, 292, 316, 198, 11748, 309, 22854, 11125, 18274, 4487, 355, 3384, 4...
2.322311
5,141
# -*- coding: utf-8 -*- """ Created March 2015 by JT Fuchs, UNC. This program interpolates grids of models. It is called by finegrid.py, which contains all the necessary options. Unless you want to change which wavelengths to keep, you shouldn't need to change things here. But keep in mind that interpolation is tricky...
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 37811, 198, 41972, 2805, 1853, 416, 449, 51, 376, 37533, 11, 39151, 13, 198, 198, 1212, 1430, 39555, 689, 50000, 286, 4981, 13, 632, 318, 1444, 416, 3734, 25928, 13, 9...
3.706667
150
import re # Search for an upper case "S" character in the beginning of a word, and print its position: txt = "The rain in Spain" x = re.search(r"\bS\w+", txt) print(x.span())
[ 11748, 302, 198, 198, 2, 11140, 329, 281, 6727, 1339, 366, 50, 1, 2095, 287, 262, 3726, 286, 257, 1573, 11, 290, 3601, 663, 2292, 25, 198, 198, 14116, 796, 366, 464, 6290, 287, 8602, 1, 198, 87, 796, 302, 13, 12947, 7, 81, 1, ...
2.809524
63
#!/usr/bin/env python # coding: utf-8 # In[31]: from typing import Optional, Callable, Tuple, List, NoReturn from functools import partial, reduce import matplotlib.pyplot as plt import matplotlib.image as img import numpy as np import cv2 as cv import PIL as pil # In[2]: # User-defined functions, utils module...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 198, 2, 19617, 25, 3384, 69, 12, 23, 198, 198, 2, 554, 58, 3132, 5974, 628, 198, 6738, 19720, 1330, 32233, 11, 4889, 540, 11, 309, 29291, 11, 7343, 11, 1400, 13615, 198, 6738, 1257, 310...
2.229757
988
from .bulletin import Bulletin from bs4 import BeautifulSoup import re
[ 6738, 764, 15065, 1616, 259, 1330, 30551, 198, 6738, 275, 82, 19, 1330, 23762, 50, 10486, 198, 198, 11748, 302, 628, 198 ]
3.363636
22
""" Copyright Jun 2021 Konstantin Briukhnov (kooltew at gmail.com) (@CostaBru). San-Francisco Bay Area. 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 limit...
[ 37811, 198, 15269, 7653, 33448, 17431, 18797, 259, 25866, 2724, 21116, 709, 357, 74, 970, 83, 413, 379, 308, 4529, 13, 785, 8, 4275, 13729, 64, 33, 622, 737, 2986, 12, 42885, 4861, 4696, 9498, 13, 198, 198, 5990, 3411, 318, 29376, 7...
3.774436
399
from mido import Message from settings import MIDI_MSG_NOTE_OFFSET from utility.state import KeyState
[ 6738, 3095, 78, 1330, 16000, 198, 6738, 6460, 1330, 33439, 62, 5653, 38, 62, 16580, 62, 27977, 28480, 198, 6738, 10361, 13, 5219, 1330, 7383, 9012, 628 ]
3.814815
27
import torch import torch.nn as nn import torch.utils.data as data import torch.optim as optim import torch.nn.functional as F import torchaudio class TextTransform: """Maps characters to integers and vice versa""" def text_to_int(self, text): """ Use a character map and convert text to an ...
[ 11748, 28034, 201, 198, 11748, 28034, 13, 20471, 355, 299, 77, 201, 198, 11748, 28034, 13, 26791, 13, 7890, 355, 1366, 201, 198, 11748, 28034, 13, 40085, 355, 6436, 201, 198, 11748, 28034, 13, 20471, 13, 45124, 355, 376, 201, 198, 117...
2.349593
492
resources = { 'style': { 'Animation' : 16973824, 'Animation.Activity' : 16973825, 'Animation.Dialog' : 16973826, 'Animation.InputMethod' : 16973910, 'Animation.Toast' : 16973828, 'Animation.Translucent' : 16973827, 'DeviceDefault.ButtonBar' : 16974287, ...
[ 37540, 796, 1391, 198, 220, 220, 220, 705, 7635, 10354, 1391, 198, 220, 220, 220, 220, 220, 220, 220, 705, 39520, 6, 1058, 1467, 5607, 2548, 1731, 11, 198, 220, 220, 220, 220, 220, 220, 220, 705, 39520, 13, 16516, 6, 1058, 1467, 5...
2.125189
40,946
import asyncio import logging import logging.handlers import discord from discord.ext import commands, tasks
[ 11748, 30351, 952, 198, 11748, 18931, 198, 11748, 18931, 13, 4993, 8116, 198, 198, 11748, 36446, 198, 6738, 36446, 13, 2302, 1330, 9729, 11, 8861, 628, 198 ]
4.148148
27
from typing import Dict from fastapi import FastAPI, Query from text_similarity.similarity import Texts app = FastAPI() @app.post("/similarity")
[ 6738, 19720, 1330, 360, 713, 198, 198, 6738, 3049, 15042, 1330, 12549, 17614, 11, 43301, 198, 198, 6738, 2420, 62, 38610, 414, 13, 38610, 414, 1330, 8255, 82, 198, 198, 1324, 796, 12549, 17614, 3419, 628, 198, 31, 1324, 13, 7353, 7203...
3.191489
47
"""Hello World for python.""" a = 3 print(a) print(a, ' helloworld number')
[ 37811, 15496, 2159, 329, 21015, 526, 15931, 198, 64, 796, 513, 198, 4798, 7, 64, 8, 198, 198, 4798, 7, 64, 11, 705, 5968, 322, 1764, 1271, 11537, 198 ]
2.655172
29
import requests from threading import Thread from django.db import connection from django.utils import timezone from .models import Player
[ 11748, 7007, 198, 6738, 4704, 278, 1330, 14122, 198, 198, 6738, 42625, 14208, 13, 9945, 1330, 4637, 198, 6738, 42625, 14208, 13, 26791, 1330, 640, 11340, 198, 198, 6738, 764, 27530, 1330, 7853, 628, 628 ]
4.114286
35
# Copyright 2021 Sony Group Corporation. # # 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 ...
[ 2, 15069, 33448, 10184, 4912, 10501, 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, 92...
2.525263
1,900
#!/usr/bin/env python # 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, software # d...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 198, 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, 9...
3.643678
174
import json from e2e.Libs.BLS import PrivateKey, PublicKey from e2e.Classes.Consensus.DataDifficulty import SignedDataDifficulty from e2e.Classes.Consensus.MeritRemoval import SignedMeritRemoval from e2e.Vectors.Generation.PrototypeChain import PrototypeChain proto: PrototypeChain = PrototypeChain(1, False) blsPri...
[ 11748, 33918, 198, 198, 6738, 304, 17, 68, 13, 25835, 82, 13, 33, 6561, 1330, 15348, 9218, 11, 5094, 9218, 198, 198, 6738, 304, 17, 68, 13, 9487, 274, 13, 9444, 7314, 13, 6601, 28813, 22402, 1330, 36215, 6601, 28813, 22402, 198, 673...
2.957983
476
import pathlib import sys import pytest from relion._parser.processgraph import ProcessGraph from relion._parser.processnode import ProcessNode from relion._parser.relion_pipeline import RelionPipeline @pytest.fixture @pytest.fixture @pytest.fixture @pytest.fixture @pytest.fixture @pytest.mark.skip...
[ 11748, 3108, 8019, 198, 11748, 25064, 198, 198, 11748, 12972, 9288, 198, 198, 6738, 823, 295, 13557, 48610, 13, 14681, 34960, 1330, 10854, 37065, 198, 6738, 823, 295, 13557, 48610, 13, 14681, 17440, 1330, 10854, 19667, 198, 6738, 823, 295...
3.007874
127
from django.contrib import admin from django.urls import path from .views import blog urlpatterns = [ path('', blog, name='blog'), ]
[ 6738, 42625, 14208, 13, 3642, 822, 1330, 13169, 198, 6738, 42625, 14208, 13, 6371, 82, 1330, 3108, 198, 6738, 764, 33571, 1330, 4130, 628, 198, 6371, 33279, 82, 796, 685, 198, 220, 220, 220, 3108, 10786, 3256, 4130, 11, 1438, 11639, 1...
3.021739
46
#!/usr/bin/env python # encoding: utf-8 """ @version: 0.0 @author: hailang @Email: seahailang@gmail.com @software: PyCharm @file: snake_env.py @time: 2018/6/21 15:45 """ import numpy as np import gym from gym.spaces import Discrete if __name__ == '__main__': s = SnakeEnv(10,[10])
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 198, 2, 21004, 25, 3384, 69, 12, 23, 628, 198, 37811, 198, 31, 9641, 25, 657, 13, 15, 198, 31, 9800, 25, 32405, 648, 198, 31, 15333, 25, 384, 993, 603, 648, 31, 14816, 13, 785, 198, ...
2.420168
119
n1 = int(input('Digite um nΓΊmero: ')) print(f'O dobro do nΓΊmero {n1} Γ© {n1*2} o seu triplo {n1*3} e sua raiz quadrada Γ© {n1**(1/2)}')
[ 77, 16, 796, 493, 7, 15414, 10786, 19511, 578, 23781, 299, 21356, 647, 78, 25, 705, 4008, 198, 4798, 7, 69, 6, 46, 466, 7957, 466, 299, 21356, 647, 78, 1391, 77, 16, 92, 38251, 1391, 77, 16, 9, 17, 92, 267, 384, 84, 1333, 489,...
1.835616
73
#!/usr/bin/python import HistGen_py import numpy myHist = [100, 300, 300, 700, 900, 600, 400, 200, 300, 100] myBins = ["infrared", "red", "orange", "yellow", "sour", "green", "teal", "blue", "violet", "ultraviolet"] myTest = HistGen_py.HistGen(myHist) for i in range(0,10): index = myTest.genIndex(numpy.random.randi...
[ 2, 48443, 14629, 14, 8800, 14, 29412, 198, 198, 11748, 5590, 13746, 62, 9078, 198, 11748, 299, 32152, 198, 198, 1820, 13749, 796, 685, 3064, 11, 5867, 11, 5867, 11, 13037, 11, 15897, 11, 10053, 11, 7337, 11, 939, 11, 5867, 11, 1802,...
2.451613
217
""" C DLLs ====== :Author: Caterina Urban """ from ctypes import util, CDLL libc = CDLL(util.find_library('c')) libapron = CDLL('libapron.so') libgmp = CDLL(util.find_library('gmp')) libmpfr = CDLL(util.find_library('mpfr'))
[ 37811, 198, 34, 360, 3069, 82, 198, 50155, 198, 198, 25, 13838, 25, 40742, 1437, 14665, 198, 37811, 198, 6738, 269, 19199, 1330, 7736, 11, 6458, 3069, 198, 198, 8019, 66, 796, 6458, 3069, 7, 22602, 13, 19796, 62, 32016, 10786, 66, 6...
2.360825
97
##__________________________________________________________________|| import collections ##__________________________________________________________________|| EventBuilderConfig = collections.namedtuple( 'EventBuilderConfig', 'base component' ) # base is for roottree.EventBuilderConfig ##__________________...
[ 2235, 27193, 834, 15886, 198, 11748, 17268, 198, 198, 2235, 27193, 834, 15886, 198, 9237, 32875, 16934, 796, 17268, 13, 13190, 83, 29291, 7, 198, 220, 220, 220, 705, 9237, 32875, 16934, 3256, 198, 220, 220, 220, 705, 8692, 7515, 6, 19...
5.888889
63
import asyncio import logging from dataclasses import dataclass from typing import Optional from kafka import KafkaConsumer from kafka.errors import KafkaError from laksyt.config.config import Config from laksyt.entities.kafka.consumer import get_kafka_consumer from laksyt.entities.kafka.schedule import Schedule, get...
[ 11748, 30351, 952, 198, 11748, 18931, 198, 6738, 4818, 330, 28958, 1330, 4818, 330, 31172, 198, 6738, 19720, 1330, 32233, 198, 198, 6738, 479, 1878, 4914, 1330, 46906, 49106, 198, 6738, 479, 1878, 4914, 13, 48277, 1330, 46906, 12331, 198,...
2.445215
2,163
from django.apps import AppConfig
[ 6738, 42625, 14208, 13, 18211, 1330, 2034, 16934, 628 ]
3.888889
9
"""Initializer class to prepare training""" import json from torch.utils.data import DataLoader from mvrss.utils.paths import Paths from mvrss.loaders.dataset import Carrada from mvrss.loaders.dataloaders import SequenceCarradaDataset class Initializer: """Class to prepare training model PARAMETERS ----...
[ 37811, 24243, 7509, 1398, 284, 8335, 3047, 37811, 198, 11748, 33918, 198, 6738, 28034, 13, 26791, 13, 7890, 1330, 6060, 17401, 198, 198, 6738, 285, 37020, 824, 13, 26791, 13, 6978, 82, 1330, 10644, 82, 198, 6738, 285, 37020, 824, 13, ...
2.947674
172
# # Copyright (c) 2015 Red Hat # Licensed under The MIT License (MIT) # http://opensource.org/licenses/MIT # import json from django.dispatch import receiver from django.db.models.signals import post_save from . import models from pdc.apps.component import signals as component_signals from pdc.apps.component import m...
[ 2, 198, 2, 15069, 357, 66, 8, 1853, 2297, 10983, 198, 2, 49962, 739, 383, 17168, 13789, 357, 36393, 8, 198, 2, 2638, 1378, 44813, 1668, 13, 2398, 14, 677, 4541, 14, 36393, 198, 2, 198, 11748, 33918, 198, 198, 6738, 42625, 14208, 1...
2.912779
493
import os def read_file(filename): """Read the contents of a file in the tests directory.""" root_dir = os.path.dirname(os.path.realpath(__file__)) with open(os.path.join(root_dir, filename), 'r') as f: return f.read()
[ 11748, 28686, 628, 198, 4299, 1100, 62, 7753, 7, 34345, 2599, 198, 220, 220, 220, 37227, 5569, 262, 10154, 286, 257, 2393, 287, 262, 5254, 8619, 526, 15931, 198, 220, 220, 220, 6808, 62, 15908, 796, 28686, 13, 6978, 13, 15908, 3672, ...
2.591398
93
import os import json from itertools import product import numpy as np from PIL import Image from os import walk import cv2 from detectron2 import model_zoo from detectron2.config import get_cfg from detectron2.data import DatasetCatalog from detectron2.data import MetadataCatalog from detectron2.data.datasets import...
[ 11748, 28686, 198, 11748, 33918, 198, 6738, 340, 861, 10141, 1330, 1720, 198, 11748, 299, 32152, 355, 45941, 198, 6738, 350, 4146, 1330, 7412, 198, 6738, 28686, 1330, 2513, 628, 198, 11748, 269, 85, 17, 198, 6738, 4886, 1313, 17, 1330, ...
2.622878
1,119
from django.views.generic.detail import DetailView from django.views.generic.list import ListView from django.views.generic.edit import CreateView, UpdateView, DeleteView from django.utils.decorators import method_decorator from django.contrib.auth.decorators import login_required from django.core.urlresolvers import r...
[ 6738, 42625, 14208, 13, 33571, 13, 41357, 13, 49170, 1330, 42585, 7680, 198, 6738, 42625, 14208, 13, 33571, 13, 41357, 13, 4868, 1330, 7343, 7680, 198, 6738, 42625, 14208, 13, 33571, 13, 41357, 13, 19312, 1330, 13610, 7680, 11, 10133, 7...
4.050228
219
from mongoengine import connect from config import Config from db.models.subscriptions import Subscriptions
[ 6738, 285, 25162, 18392, 1330, 2018, 198, 6738, 4566, 1330, 17056, 198, 6738, 20613, 13, 27530, 13, 7266, 12048, 507, 1330, 3834, 12048, 507, 198 ]
4.32
25
from ray.rllib.models.tf.tf_modelv2 import TFModelV2 from ray.rllib.models.tf.fcnet_v2 import FullyConnectedNetwork from ray.rllib.models import Model # deprecated and should not be used. class CustomModel_1(Model): """ Sample custom model with LSTM. Still working but deprecated and should not be used. ...
[ 6738, 26842, 13, 81, 297, 571, 13, 27530, 13, 27110, 13, 27110, 62, 19849, 85, 17, 1330, 24958, 17633, 53, 17, 198, 6738, 26842, 13, 81, 297, 571, 13, 27530, 13, 27110, 13, 16072, 3262, 62, 85, 17, 1330, 40234, 13313, 276, 26245, ...
2.254867
565
from django.conf import settings from django.db.models import options from django.db.models.signals import class_prepared, pre_init options.DEFAULT_NAMES = options.DEFAULT_NAMES + ('db_prefix',) pre_init.connect(model_prefix) class_prepared.connect(model_prefix)
[ 6738, 42625, 14208, 13, 10414, 1330, 6460, 198, 6738, 42625, 14208, 13, 9945, 13, 27530, 1330, 3689, 198, 6738, 42625, 14208, 13, 9945, 13, 27530, 13, 12683, 874, 1330, 1398, 62, 3866, 29190, 11, 662, 62, 15003, 198, 198, 25811, 13, 7...
3.068966
87
import clodius.tiles.time_interval as hgti import os.path as op
[ 11748, 537, 375, 3754, 13, 83, 2915, 13, 2435, 62, 3849, 2100, 355, 289, 13655, 72, 198, 11748, 28686, 13, 6978, 355, 1034, 628 ]
2.708333
24
# Generated by Django 2.1.11 on 2020-01-02 18:56 from django.db import migrations, models import qatrack.qatrack_core.fields
[ 2, 2980, 515, 416, 37770, 362, 13, 16, 13, 1157, 319, 12131, 12, 486, 12, 2999, 1248, 25, 3980, 198, 198, 6738, 42625, 14208, 13, 9945, 1330, 15720, 602, 11, 4981, 198, 198, 11748, 10662, 265, 39638, 13, 80, 265, 39638, 62, 7295, ...
2.782609
46
from pynput.keyboard import Key, Controller import time keyboard = Controller() try: while 1: time.sleep(3) keyboard.press(Key.alt) keyboard.press(Key.f4) except KeyboardInterrupt: pass
[ 6738, 279, 2047, 1996, 13, 2539, 3526, 1330, 7383, 11, 22741, 198, 11748, 640, 198, 198, 2539, 3526, 796, 22741, 3419, 198, 28311, 25, 198, 220, 220, 220, 981, 352, 25, 198, 220, 220, 220, 220, 220, 220, 220, 640, 13, 42832, 7, 18...
2.433333
90
from __future__ import absolute_import from __future__ import unicode_literals from __future__ import print_function from __future__ import division from future import standard_library standard_library.install_aliases() from celery import Celery app = Celery("hysds") app.config_from_object("celeryconfig") if __na...
[ 6738, 11593, 37443, 834, 1330, 4112, 62, 11748, 198, 6738, 11593, 37443, 834, 1330, 28000, 1098, 62, 17201, 874, 198, 6738, 11593, 37443, 834, 1330, 3601, 62, 8818, 198, 6738, 11593, 37443, 834, 1330, 7297, 198, 198, 6738, 2003, 1330, 3...
3.358491
106
from .msisdn_header import *
[ 198, 6738, 764, 907, 9409, 77, 62, 25677, 1330, 1635, 198 ]
2.727273
11
from functools import wraps from werkzeug.exceptions import BadRequest from flask import request, jsonify
[ 6738, 1257, 310, 10141, 1330, 27521, 198, 6738, 266, 9587, 2736, 1018, 13, 1069, 11755, 1330, 7772, 18453, 198, 6738, 42903, 1330, 2581, 11, 33918, 1958, 628, 198 ]
3.857143
28
from functools import partial from pathlib import Path import librosa import numpy as np import soundfile as sf import toml import torch from torch.nn import functional from torch.utils.data import DataLoader from tqdm import tqdm from audio_zen.acoustics.feature import stft, istft from audio_zen.utils import initial...
[ 6738, 1257, 310, 10141, 1330, 13027, 198, 6738, 3108, 8019, 1330, 10644, 198, 198, 11748, 9195, 4951, 64, 198, 11748, 299, 32152, 355, 45941, 198, 11748, 2128, 7753, 355, 264, 69, 198, 11748, 284, 4029, 198, 11748, 28034, 198, 6738, 280...
3.02994
167
#!/usr/bin/env python import rospy import sys import unittest import threading from turtlesim.msg import Pose from geometry_msgs.msg import Twist from skiros2_skill.ros.skill_layer_interface import SkillLayerInterface PKG = 'integration_tests' NAME = 'test_integration_tm' ## A sample python unit test if __name__...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 198, 11748, 686, 2777, 88, 198, 198, 11748, 25064, 198, 11748, 555, 715, 395, 198, 11748, 4704, 278, 198, 6738, 36288, 320, 13, 19662, 1330, 37557, 198, 6738, 22939, 62, 907, 14542, 13, 196...
2.863946
147
from ocpmodels.preprocessing import AtomsToGraphs from ocpmodels.datasets import SinglePointLmdbDataset, TrajectoryLmdbDataset import ase.io from ase.build import bulk from ase.build import fcc100, add_adsorbate, molecule from ase.constraints import FixAtoms from ase.calculators.emt import EMT from ase.optimize import ...
[ 6738, 267, 66, 4426, 375, 1424, 13, 3866, 36948, 1330, 1629, 3150, 2514, 37065, 82, 198, 6738, 267, 66, 4426, 375, 1424, 13, 19608, 292, 1039, 1330, 14206, 12727, 43, 9132, 65, 27354, 292, 316, 11, 4759, 752, 652, 43, 9132, 65, 2735...
2.722772
303
from .AAA3A_utils.cogsutils import CogsUtils # isort:skip from redbot.core import commands # isort:skip from redbot.core.i18n import Translator, cog_i18n # isort:skip from redbot.core.bot import Red # isort:skip import discord # isort:skip import typing # isort:skip from .helpers import embed_from_msg ...
[ 6738, 764, 29697, 18, 32, 62, 26791, 13, 66, 18463, 26791, 1330, 327, 18463, 18274, 4487, 220, 1303, 318, 419, 25, 48267, 201, 198, 6738, 2266, 13645, 13, 7295, 1330, 9729, 220, 1303, 318, 419, 25, 48267, 201, 198, 6738, 2266, 13645, ...
2.327658
2,408
#!/usr/bin/env python3 #Import packages from flask import * #Import local packages import dbHandler as db #Start flask app app = Flask(__name__) #Default index page @app.route('/') #The town page, the game will automatically direct the page to your town when accesing this URL @app.route('/login/') #The town page,...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 18, 198, 198, 2, 20939, 10392, 198, 6738, 42903, 1330, 1635, 198, 198, 2, 20939, 1957, 10392, 198, 11748, 20613, 25060, 355, 20613, 198, 198, 2, 10434, 42903, 598, 198, 1324, 796, 46947, 7,...
2.794979
239
''' Author: JIANG Yilun Date: 2022-02-21 15:13:14 LastEditTime: 2022-02-21 15:16:30 LastEditors: JIANG Yilun Description: FilePath: /UGA_INF/INF101/TP/TP6/2.6.1.4_mirror.py ''' import sys import math # Auto-generated code below aims at helping you parse # the standard input according to the problem statement. n = in...
[ 7061, 6, 198, 13838, 25, 449, 40, 15567, 575, 346, 403, 198, 10430, 25, 33160, 12, 2999, 12, 2481, 1315, 25, 1485, 25, 1415, 198, 5956, 18378, 7575, 25, 33160, 12, 2999, 12, 2481, 1315, 25, 1433, 25, 1270, 198, 5956, 18378, 669, 2...
2.79476
229
from django.contrib import admin from django.urls import path from leaderboard import views from django.contrib.auth.views import LoginView #, LogoutView urlpatterns = [ path('', views.main, name='main'), path('leaderboard/', views.leaderboard_view, name='leaderboard'), path('comments/', views.comments, name='comm...
[ 6738, 42625, 14208, 13, 3642, 822, 1330, 13169, 198, 6738, 42625, 14208, 13, 6371, 82, 1330, 3108, 198, 6738, 3554, 3526, 1330, 5009, 198, 6738, 42625, 14208, 13, 3642, 822, 13, 18439, 13, 33571, 1330, 23093, 7680, 220, 1303, 11, 5972, ...
3.132911
158
#!/usr/local/bin/python3 # noinspection PyShadowingBuiltins,PyUnusedLocal def compute(val1, val2): ''' Function returning the sum of two parameters. Args: val1 : Integer between 0 and 100. val2 : Integer between 0 and 100. Return: Integer : Sum of val1 and val2. ''' retu...
[ 2, 48443, 14629, 14, 12001, 14, 8800, 14, 29412, 18, 198, 198, 2, 645, 1040, 14978, 9485, 27447, 278, 39582, 1040, 11, 20519, 3118, 1484, 14565, 198, 4299, 24061, 7, 2100, 16, 11, 1188, 17, 2599, 198, 220, 220, 220, 705, 7061, 198, ...
2.362694
193
from routersploit import ( exploits, print_error, print_success, print_info, print_status, http_request, mute, validators, ) class Exploit(exploits.Exploit): """ Netwave IP Camera - Password Disclosure """ __info__ = { 'name': 'Netwave_IP_camera', 'descr...
[ 6738, 41144, 489, 30711, 1330, 357, 198, 220, 220, 220, 27062, 11, 198, 220, 220, 220, 3601, 62, 18224, 11, 198, 220, 220, 220, 3601, 62, 13138, 11, 198, 220, 220, 220, 3601, 62, 10951, 11, 198, 220, 220, 220, 3601, 62, 13376, 11,...
2.312775
454
import json from basic_class import * # fp = open("../config/header_pure.txt", "r") fp = open("../../config/header_pure.txt", "r") header_list = [] while True: line = fp.readline() # print(line) if line == "*": break elif line == "": continue else: l = line.split() ...
[ 11748, 33918, 198, 6738, 4096, 62, 4871, 1330, 1635, 198, 198, 2, 277, 79, 796, 1280, 7203, 40720, 11250, 14, 25677, 62, 37424, 13, 14116, 1600, 366, 81, 4943, 198, 46428, 796, 1280, 7203, 40720, 40720, 11250, 14, 25677, 62, 37424, 13...
2.02945
1,528
from RedNeuronal import RedNeuronal import h5py # direccion alvaro # data = h5py.File(r"C:\Users\Lenovo\Downloads\modelado\practica_3\digitos.h5", "r") # direccion dussan data = h5py.File(r"C:\Users\Dussan\Desktop\digitos_con_signos.h5", "r") X_train = data["X_train"][:] y_train = data["y_train"][:] X_test = data["X...
[ 6738, 2297, 8199, 333, 20996, 1330, 2297, 8199, 333, 20996, 198, 11748, 289, 20, 9078, 198, 198, 2, 19958, 535, 295, 435, 7785, 78, 198, 2, 1366, 796, 289, 20, 9078, 13, 8979, 7, 81, 1, 34, 7479, 14490, 59, 30659, 18768, 59, 10002...
2.114007
307
""" A class for the deep memory process. Deep memory is a flavor spawned by the techniques displayed in Memorizing Transformers (https://arxiv.org/abs/2203.08913). However, rather thqn saving each instance to an external memory bank, instead we search a space of differential memory, and only train the topk instances ...
[ 37811, 198, 198, 32, 1398, 329, 262, 2769, 4088, 1429, 13, 10766, 4088, 318, 257, 9565, 29013, 416, 262, 7605, 198, 13812, 276, 287, 41157, 2890, 39185, 357, 5450, 1378, 283, 87, 452, 13, 2398, 14, 8937, 14, 17572, 18, 13, 49352, 14...
2.77459
732
import sqlite3 as sqlite import os.path import atexit import threading class Litedao: """ It's recommended to use Dao by composition. Meaning: don't subclass it. DAO: Data Access Object (this one is built to work with SQLite). You give an SQL request with some params or not, it spills out the result n...
[ 11748, 44161, 578, 18, 355, 44161, 578, 198, 11748, 28686, 13, 6978, 198, 11748, 379, 37023, 198, 11748, 4704, 278, 628, 198, 4871, 406, 863, 5488, 25, 198, 220, 220, 220, 37227, 198, 220, 220, 220, 632, 338, 7151, 284, 779, 360, 54...
2.014249
4,702
## MODIFIED FROM _init_paths.py import os import sys PATH_CURRENT = os.path.abspath(os.path.dirname(__file__)) # print(PATH_CURRENT) # get parent dir: https://stackoverflow.com/questions/2860153/how-do-i-get-the-parent-directory-in-python from pathlib import Path PATH_PARENT = Path(PATH_CURRENT).parent #PATH_PARENT =...
[ 2235, 19164, 28343, 16034, 4808, 15003, 62, 6978, 82, 13, 9078, 198, 11748, 28686, 198, 11748, 25064, 198, 198, 34219, 62, 34, 39237, 796, 28686, 13, 6978, 13, 397, 2777, 776, 7, 418, 13, 6978, 13, 15908, 3672, 7, 834, 7753, 834, 40...
2.463035
257
import io import os import os.path import sys import unittest from cmdstanpy import TMPDIR from cmdstanpy.lib import Model, SamplerArgs, RunSet from cmdstanpy.cmds import compile_model, sample, summary, diagnose from cmdstanpy.cmds import get_drawset, save_csvfiles datafiles_path = os.path.join('test', 'data') ...
[ 11748, 33245, 198, 11748, 28686, 198, 11748, 28686, 13, 6978, 198, 11748, 25064, 198, 11748, 555, 715, 395, 198, 198, 6738, 23991, 14192, 9078, 1330, 21232, 5760, 4663, 198, 6738, 23991, 14192, 9078, 13, 8019, 1330, 9104, 11, 3409, 20053,...
3.115152
165
from django.template.loader import get_template
[ 6738, 42625, 14208, 13, 28243, 13, 29356, 1330, 651, 62, 28243 ]
4.272727
11
# This script will extract the important ride data from a .tcx # file specified by the user. The code below will then extract # the speed and power values at each time step. The data recording # of the Garmin MUST be set to one data point per second, as the # analysis assumes a time-step of 1 second. import lxml.etree...
[ 2, 770, 4226, 481, 7925, 262, 1593, 6594, 1366, 422, 257, 764, 23047, 87, 198, 2, 2393, 7368, 416, 262, 2836, 13, 383, 2438, 2174, 481, 788, 7925, 198, 2, 262, 2866, 290, 1176, 3815, 379, 1123, 640, 2239, 13, 383, 1366, 8296, 198,...
3.934066
91
""" Package of lms page objects for acceptance tests """ import os # Get the URL of the instance under test HOSTNAME = os.environ.get('BOK_CHOY_HOSTNAME', 'localhost') LMS_PORT = os.environ.get('BOK_CHOY_LMS_PORT', 8003) BASE_URL = os.environ.get('test_url', f'http://{HOSTNAME}:{LMS_PORT}')
[ 37811, 198, 27813, 286, 300, 907, 2443, 5563, 329, 13427, 5254, 198, 37811, 628, 198, 11748, 28686, 198, 198, 2, 3497, 262, 10289, 286, 262, 4554, 739, 1332, 198, 39, 10892, 20608, 796, 28686, 13, 268, 2268, 13, 1136, 10786, 8202, 42,...
2.587719
114
from django.contrib import admin # Register your models here. from ml.models import EECStats, EPStats, ETDStats @admin.register(EECStats) @admin.register(EPStats) @admin.register(ETDStats)
[ 6738, 42625, 14208, 13, 3642, 822, 1330, 13169, 198, 198, 2, 17296, 534, 4981, 994, 13, 198, 6738, 25962, 13, 27530, 1330, 412, 2943, 29668, 11, 14724, 29668, 11, 12152, 35, 29668, 198, 198, 31, 28482, 13, 30238, 7, 36, 2943, 29668, ...
2.855072
69
""" Given a binary tree and a sum, determine if the tree has a root-to-leaf path such that adding up all the values along the path equals the given sum. Note: A leaf is a node with no children. Example: Given the below binary tree and sum = 22, 5 / \ 4 8 / / \ 11 13 4 / \ \ 7 2 ...
[ 37811, 198, 15056, 257, 13934, 5509, 290, 257, 2160, 11, 5004, 611, 262, 5509, 468, 257, 6808, 12, 1462, 12, 33201, 3108, 884, 326, 4375, 510, 477, 262, 3815, 1863, 262, 3108, 21767, 262, 1813, 2160, 13, 198, 198, 6425, 25, 317, 128...
3.129264
557
'''Autogenerated by xml_generate script, do not edit!''' from OpenGL import platform as _p, arrays # Code generation uses this from OpenGL.raw.GLX import _types as _cs # End users want this... from OpenGL.raw.GLX._types import * from OpenGL.raw.GLX import _errors from OpenGL.constant import Constant as _C imp...
[ 7061, 6, 16541, 519, 877, 515, 416, 35555, 62, 8612, 378, 4226, 11, 466, 407, 4370, 0, 7061, 6, 201, 198, 6738, 30672, 1330, 3859, 355, 4808, 79, 11, 26515, 201, 198, 2, 6127, 5270, 3544, 428, 201, 198, 6738, 30672, 13, 1831, 13, ...
2.632979
188
import bisect from collections import OrderedDict from reprlib import recursive_repr as _recursive_repr # import pandas as pd # pd.set_option('mode.chained_assignment', 'raise') from controllers.mpc_controller import MpcController from controllers.controller_base import ControllerBase from structdict import StructDic...
[ 11748, 47457, 478, 198, 6738, 17268, 1330, 14230, 1068, 35, 713, 198, 6738, 41575, 8019, 1330, 45115, 62, 260, 1050, 355, 4808, 8344, 30753, 62, 260, 1050, 198, 198, 2, 1330, 19798, 292, 355, 279, 67, 198, 2, 279, 67, 13, 2617, 62, ...
3.37037
162
#!/usr/bin/env python3 # -*- coding: utf-8 -*- import binascii import time import unittest from unittest.mock import patch from ontology.ont_sdk import OntologySdk from ontology.smart_contract.neo_contract.abi.abi_function import AbiFunction from ontology.smart_contract.neo_contract.abi.abi_info import AbiInfo from on...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 18, 198, 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 11748, 9874, 292, 979, 72, 198, 11748, 640, 198, 11748, 555, 715, 395, 198, 6738, 555, 715, 395, 13, 76, 735, 1...
2.535627
407
import os from dotenv import load_dotenv basedir = os.path.abspath(os.path.dirname(__file__)) load_dotenv(os.path.join(basedir, '.env'))
[ 11748, 28686, 198, 6738, 16605, 24330, 1330, 3440, 62, 26518, 24330, 198, 3106, 343, 796, 28686, 13, 6978, 13, 397, 2777, 776, 7, 418, 13, 6978, 13, 15908, 3672, 7, 834, 7753, 834, 4008, 198, 2220, 62, 26518, 24330, 7, 418, 13, 6978...
2.555556
54
print(Solution().findNthDigit(194))
[ 198, 198, 4798, 7, 46344, 22446, 19796, 45, 400, 19511, 270, 7, 22913, 4008, 198 ]
2.533333
15
#!/usr/bin/env python # -*- coding: utf-8 -*- __author__ = 'Benjamin Milde' import requests import json import redis import re from timer import Timer red = redis.StrictRedis() #Todo: refactor. This has been mved to the relevant event generator #Abstracts away the details of communicating with the ambient server ...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 198, 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 834, 9800, 834, 796, 705, 11696, 13337, 29087, 68, 6, 198, 198, 11748, 7007, 198, 11748, 33918, 198, 11748, 2266, 271, ...
3.33913
115
# imports import requests import json from bs4 import BeautifulSoup from tqdm import tqdm import random from utilities import dict_from_json #websites: (these are the websites with the same format as UK) #does not work: #'https://us.pandora.net/en/jewelry/?start={}&sz=36&format=page-element'' websites = ['ht...
[ 2, 17944, 198, 11748, 7007, 198, 11748, 33918, 198, 6738, 275, 82, 19, 1330, 23762, 50, 10486, 198, 6738, 256, 80, 36020, 1330, 256, 80, 36020, 198, 11748, 4738, 198, 6738, 20081, 1330, 8633, 62, 6738, 62, 17752, 628, 198, 2, 732, 1...
2.129721
1,218
# -*- coding: utf-8 -*- from __future__ import division #~ Domysle dzielenie int jako liczb float # from igraph import * #~ Niepotrzebne import random #~ Niepotrzebne import matplotlib # matplotlib.use('Agg') import matplotlib.pyplot as plt #~ Do wykresow from matplotlib import rc import time ...
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 6738, 11593, 37443, 834, 1330, 7297, 1303, 93, 9666, 893, 293, 288, 89, 8207, 268, 494, 493, 474, 25496, 3476, 14969, 12178, 198, 2, 422, 45329, 1470, 1330, 1635, 220, ...
2.010695
748
# -------Global Variables--------- # Game board board =["-","-","-", "-","-","-", "-","-","-",] # If game is still going game_still_going = True # Who won? Or tie? winner = None # Whos turn is it current_player = "X" # Display board # Play a game of tic tac toe # Handle a single turn of an arb...
[ 2, 35656, 22289, 15965, 2977, 45537, 198, 198, 2, 3776, 3096, 198, 3526, 796, 14692, 12, 2430, 12, 2430, 12, 1600, 198, 220, 220, 220, 220, 220, 220, 220, 27444, 2430, 12, 2430, 12, 1600, 198, 220, 220, 220, 220, 220, 220, 220, 27...
2.797753
178
# -*- coding: utf-8 -*- """ Created on Tue Jun 25 17:34:23 2019 @author: chalbeisen This program is to download audios. The required arguments are set by the powershell script "Run-audio_download.ps1". """ from LookingToListen_Audio_clean import Audio import argparse import sys ''' -----------------...
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 201, 198, 37811, 201, 198, 41972, 319, 30030, 7653, 1679, 1596, 25, 2682, 25, 1954, 13130, 201, 198, 201, 198, 31, 9800, 25, 442, 282, 1350, 13254, 201, 198, 201, 198, 1212...
3.439446
289
import numpy as np import matplotlib.pyplot as plt import torch import random device = 'cuda' if torch.cuda.is_available() else 'cpu' from scipy.ndimage import gaussian_filter import sys from tqdm import tqdm from functools import partial import acd from copy import deepcopy sys.path.append('../..') sys.path.append('.....
[ 11748, 299, 32152, 355, 45941, 198, 11748, 2603, 29487, 8019, 13, 9078, 29487, 355, 458, 83, 198, 11748, 28034, 198, 11748, 4738, 198, 25202, 796, 705, 66, 15339, 6, 611, 28034, 13, 66, 15339, 13, 271, 62, 15182, 3419, 2073, 705, 3616...
2.25259
2,027
import json from django.test import TestCase from django.urls import reverse from rest_framework.test import APIClient from .constants import TEST_EMAIL from .constants import TEST_FIRSTNAME from .constants import TEST_LASTNAME
[ 11748, 33918, 198, 198, 6738, 42625, 14208, 13, 9288, 1330, 6208, 20448, 198, 6738, 42625, 14208, 13, 6371, 82, 1330, 9575, 198, 6738, 1334, 62, 30604, 13, 9288, 1330, 3486, 2149, 75, 1153, 198, 198, 6738, 764, 9979, 1187, 1330, 43001, ...
3.447761
67
import json import random import string from asyncio import TimeoutError from datetime import datetime as dt from io import BytesIO from time import time import discord from PyDictionary import PyDictionary as dictionary from discord.ext import commands, flags from humanize import naturaltime as nt from jikanpy import...
[ 11748, 33918, 198, 11748, 4738, 198, 11748, 4731, 198, 6738, 30351, 952, 1330, 3862, 448, 12331, 198, 6738, 4818, 8079, 1330, 4818, 8079, 355, 288, 83, 198, 6738, 33245, 1330, 2750, 4879, 9399, 198, 6738, 640, 1330, 640, 198, 198, 11748...
2.164535
8,521
from point import Point
[ 6738, 966, 1330, 6252 ]
5.75
4
# -*- coding: utf-8 -*- """ Script Name: Author: Do Trinh/Jimmy - 3D artist. Description: """ # ------------------------------------------------------------------------------------------------------------- """ Import """ from pyPLM.damg import DAMGDICT # ------------------------------------------------------...
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 37811, 198, 198, 7391, 6530, 25, 220, 198, 13838, 25, 2141, 33822, 71, 14, 40335, 532, 513, 35, 6802, 13, 198, 198, 11828, 25, 628, 198, 37811, 198, 2, 16529, 3880, ...
4.524272
103
from poker_ai.poker.dealer import Dealer from poker_ai.poker.card import Card
[ 6738, 27101, 62, 1872, 13, 79, 11020, 13, 31769, 263, 1330, 44480, 198, 6738, 27101, 62, 1872, 13, 79, 11020, 13, 9517, 1330, 5172, 628 ]
3.16
25
import pygame import sys import os import csv import random from pygame import * from minigame1.Player import * from minigame1.Mobs import * from minigame1.Camera import * from minigame1.KeyBlock import * from minigame1.PilarBlock import * from minigame1.Text import * from minigame1.HighScore import * from pprint impor...
[ 11748, 12972, 6057, 198, 11748, 25064, 198, 11748, 28686, 198, 11748, 269, 21370, 198, 11748, 4738, 198, 6738, 12972, 6057, 1330, 1635, 198, 6738, 949, 328, 480, 16, 13, 14140, 1330, 1635, 198, 6738, 949, 328, 480, 16, 13, 44, 8158, 1...
2.973684
114
# Copyright (C) 2013 Adobe Systems Incorporated. All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions # are met: # # 1. Redistributions of source code must retain the above # copyright notice, this list of con...
[ 2, 15069, 357, 34, 8, 2211, 21771, 11998, 3457, 40132, 13, 1439, 2489, 10395, 13, 198, 2, 198, 2, 2297, 396, 3890, 290, 779, 287, 2723, 290, 13934, 5107, 11, 351, 393, 1231, 198, 2, 17613, 11, 389, 10431, 2810, 326, 262, 1708, 340...
2.952045
709
# -*- coding: utf-8 -*- """ paperchase.manage.journals ~~~~~~~~~~~~~~~~~~~~~ jorunals management commands """ import datetime from flask.ext.script import Command, prompt, prompt_pass from werkzeug.datastructures import MultiDict from ..services import users
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 37811, 198, 220, 220, 220, 3348, 354, 589, 13, 805, 496, 13, 73, 18408, 198, 220, 220, 220, 220, 27156, 8728, 93, 628, 220, 220, 220, 474, 273, 403, 874, 4542, 9729,...
3.033333
90
"""Top-level package for simple-otp.""" __author__ = """Kshitij Nagvekar""" __email__ = 'kshitij.nagvekar@workindia.in' __version__ = '0.1.0' try: from secrets import SystemRandom except ImportError: from random import SystemRandom from typing import Sequence from .otp import OTP random = SystemRandom() d...
[ 37811, 9126, 12, 5715, 5301, 329, 2829, 12, 313, 79, 526, 15931, 198, 198, 834, 9800, 834, 796, 37227, 42, 16211, 2926, 15196, 303, 21070, 37811, 198, 834, 12888, 834, 796, 705, 591, 17945, 2926, 13, 77, 363, 303, 21070, 31, 1818, 5...
2.669935
306
import matplotlib.pyplot as plt import numpy as np import os import pandas as pd # Find path for cases curr_dir_path = os.path.dirname(os.path.realpath(__file__)) # print(curr_dir_path) # cases = os.listdir(curr_dir_path + '/Cases') # pop = cases.index('baseCase') # cases.pop(pop) # Label graph with bold characters f...
[ 11748, 2603, 29487, 8019, 13, 9078, 29487, 355, 458, 83, 198, 11748, 299, 32152, 355, 45941, 198, 11748, 28686, 198, 11748, 19798, 292, 355, 279, 67, 198, 198, 2, 9938, 3108, 329, 2663, 198, 22019, 81, 62, 15908, 62, 6978, 796, 28686,...
2.1618
822
import json import logging import os from flask import Flask, request, jsonify from pointy.api.add_points import add_points from pointy.api.add_team import add_team from pointy.api.add_user import add_user from pointy.api.get_score import get_score from pointy.api.get_scoreboard import get_scoreboard, get_scoreboard_...
[ 11748, 33918, 198, 11748, 18931, 198, 11748, 28686, 198, 198, 6738, 42903, 1330, 46947, 11, 2581, 11, 33918, 1958, 198, 198, 6738, 966, 88, 13, 15042, 13, 2860, 62, 13033, 1330, 751, 62, 13033, 198, 6738, 966, 88, 13, 15042, 13, 2860,...
2.803333
300
""" β–ˆβ–€β–„β–€β–ˆβ€ƒβ–ˆβ–€β–€β€ƒβ–€β–ˆβ–€β€ƒβ–ˆβ–€β–€β€ƒβ–ˆβ–€β–ˆβ€ƒβ–ˆβ–€β€ƒβ–€β–ˆβ–€β€ƒβ–„β–€β–ˆβ€ƒβ–€β–ˆβ–€ β–ˆβ–‘β–€β–‘β–ˆβ€ƒβ–ˆβ–ˆβ–„β€ƒβ–‘β–ˆβ–‘β€ƒβ–ˆβ–ˆβ–„β€ƒβ–ˆβ–„β–ˆβ€ƒβ–„β–ˆβ€ƒβ–‘β–ˆβ–‘β€ƒβ–ˆβ–€β–ˆβ€ƒβ–‘β–ˆβ–‘ Import & export routines. The code is licensed under the MIT license. """ __appname__ = 'routines' __version__ = '0.0.1' from .routine import Routine
[ 37811, 198, 8115, 44033, 45786, 44033, 8115, 447, 225, 8115, 44033, 44033, 447, 225, 44033, 8115, 44033, 447, 225, 8115, 44033, 44033, 447, 225, 8115, 44033, 8115, 447, 225, 8115, 44033, 447, 225, 44033, 8115, 44033, 447, 225, 45786, 4403...
1.622378
143
import random
[ 11748, 4738, 201, 198 ]
3.75
4
import pickle import os from tkinter import * import time if __name__ == "__main__": fileNameOfJob = 'mov_1.pkl' if(not os.path.exists( fileNameOfJob)): pass with open(fileNameOfJob,'rb') as f: currMoove =pickle.load(f) print(' loaded moove with %i cadrs'%len(currMoove...
[ 11748, 2298, 293, 201, 198, 11748, 28686, 201, 198, 6738, 256, 74, 3849, 1330, 1635, 201, 198, 11748, 640, 201, 198, 201, 198, 201, 198, 361, 11593, 3672, 834, 6624, 366, 834, 12417, 834, 1298, 201, 198, 220, 220, 220, 2393, 5376, 5...
1.848341
844
import re import streamlit as st import pandas as pd import numpy as np import altair as alt from PIL import Image import requests import sys,os pato = os.path.dirname direccion=pato(pato(pato(__file__))) sys.path.append(direccion) from notebooks.Canada import df_canada from notebooks.Canada_2 import df_canada1 from ...
[ 11748, 302, 198, 11748, 4269, 18250, 355, 336, 198, 11748, 19798, 292, 355, 279, 67, 198, 11748, 299, 32152, 355, 45941, 198, 11748, 5988, 958, 355, 5988, 198, 6738, 350, 4146, 1330, 7412, 198, 11748, 7007, 198, 11748, 25064, 11, 418, ...
2.312545
4,185
from rest_framework import viewsets from rest_framework.filters import SearchFilter from rest_framework.response import Response from . import biz, models, serializers from parkinglot.models import ParkingLot from utils.django_base import BaseApiPagination
[ 6738, 1334, 62, 30604, 1330, 5009, 1039, 198, 6738, 1334, 62, 30604, 13, 10379, 1010, 1330, 11140, 22417, 198, 6738, 1334, 62, 30604, 13, 26209, 1330, 18261, 198, 198, 6738, 764, 1330, 275, 528, 11, 4981, 11, 11389, 11341, 198, 6738, ...
3.869565
69
class HelloCNN(nn.Module): """ Simple CNN Clssifier """
[ 4871, 18435, 18474, 7, 20471, 13, 26796, 2599, 198, 220, 220, 220, 37227, 198, 220, 220, 220, 220, 220, 220, 220, 17427, 8100, 1012, 824, 7483, 198, 220, 220, 220, 37227, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, ...
1.833333
48
from research.three_phase.Engine import * from scipy.sparse import lil_matrix np.set_printoptions(linewidth=100000) def set_sub(A, cols, rows, sub_mat): """ Set sub-matrix in place into sparse matrix :param A: Sparse matrix :param cols: array of columns (size m) :param rows: array of rows (size...
[ 198, 6738, 2267, 13, 15542, 62, 40715, 13, 13798, 1330, 1635, 198, 198, 6738, 629, 541, 88, 13, 82, 29572, 1330, 42280, 62, 6759, 8609, 198, 198, 37659, 13, 2617, 62, 4798, 25811, 7, 2815, 413, 5649, 28, 3064, 830, 8, 628, 198, 42...
1.989412
1,700