content
stringlengths
1
1.04M
input_ids
listlengths
1
774k
ratio_char_token
float64
0.38
22.9
token_count
int64
1
774k
# From https://raw.githubusercontent.com/python/cpython/master/Lib/test/test_userlist.py # Licensed under the Python Software Foundation License Version 2. # Copyright © 2001-2020 Python Software Foundation. All rights reserved. # Copyright © 2000 BeOpen.com. All rights reserved. # Copyright © 1995-2000 Corporati...
[ 2, 220, 3574, 3740, 1378, 1831, 13, 12567, 43667, 13, 785, 14, 29412, 14, 13155, 7535, 14, 9866, 14, 25835, 14, 9288, 14, 9288, 62, 7220, 4868, 13, 9078, 198, 198, 2, 220, 49962, 739, 262, 11361, 10442, 5693, 13789, 10628, 362, 13, ...
3.786458
192
from argparse import ArgumentParser import json import os import sys import shutil import tempfile from nbconvert.nbconvertapp import NbConvertApp from nbconvert.preprocessors import TagRemovePreprocessor from nbconvert.exporters import TemplateExporter import re PY_CODE_REGEX = re.compile(r'^#@slideshow\s+(.+)$') MAR...
[ 6738, 1822, 29572, 1330, 45751, 46677, 198, 11748, 33918, 198, 11748, 28686, 198, 11748, 25064, 198, 11748, 4423, 346, 198, 11748, 20218, 7753, 198, 6738, 299, 65, 1102, 1851, 13, 46803, 1102, 1851, 1324, 1330, 399, 65, 3103, 1851, 4677, ...
2.843478
230
""" Mathematical utilities. """ import numpy as np def linear_converter(orig_range, new_range, ignore_errors=False): """ Return a function that converts points within orig_range to points in new_range. """ assert ( len(orig_range) == 2 ), f"argument orig_range must be a list-like with len ...
[ 37811, 198, 19044, 10024, 605, 20081, 13, 198, 37811, 198, 11748, 299, 32152, 355, 45941, 628, 198, 4299, 14174, 62, 1102, 332, 353, 7, 11612, 62, 9521, 11, 649, 62, 9521, 11, 8856, 62, 48277, 28, 25101, 2599, 198, 220, 220, 220, 37...
2.216028
574
import sys from ext.debugger.elt.logger import LogClient c = LogClient(connect=True) if len(sys.argv) > 1: c.log_dir = sys.argv[1] c.save_log()
[ 11748, 25064, 198, 6738, 1070, 13, 24442, 1362, 13, 2120, 13, 6404, 1362, 1330, 5972, 11792, 198, 198, 66, 796, 5972, 11792, 7, 8443, 28, 17821, 8, 198, 361, 18896, 7, 17597, 13, 853, 85, 8, 1875, 352, 25, 198, 220, 220, 220, 269,...
2.328125
64
from __future__ import print_function import torch import numpy as np from PIL import Image import inspect, re import numpy as np import os import collections from PIL import Image import cv2 from collections import OrderedDict import flowiz as fz # Converts a Tensor into a Numpy array # |imtype|: the desired type of ...
[ 6738, 11593, 37443, 834, 1330, 3601, 62, 8818, 198, 11748, 28034, 198, 11748, 299, 32152, 355, 45941, 198, 6738, 350, 4146, 1330, 7412, 198, 11748, 10104, 11, 302, 198, 11748, 299, 32152, 355, 45941, 198, 11748, 28686, 198, 11748, 17268, ...
3.203704
162
import os os.getcwd() print('line5') print('line6') print('line7') print('Line 7') print('Line 8') print('line9')
[ 11748, 28686, 198, 198, 418, 13, 1136, 66, 16993, 3419, 198, 198, 4798, 10786, 1370, 20, 11537, 198, 4798, 10786, 1370, 21, 11537, 198, 4798, 10786, 1370, 22, 11537, 198, 4798, 10786, 13949, 767, 11537, 198, 4798, 10786, 13949, 807, 115...
2.4375
48
############################################################################################################### # DESAFIO: 018 # TÍTULO: Seno, cosseno e tangente # AULA: 08 # EXERCÍCIO: Faça um programa que leia um ângulo qualquer e mostre na tela o valor do seno, cosseno e tangente # desse ângulo. #################...
[ 198, 29113, 29113, 29113, 7804, 4242, 21017, 198, 198, 2, 22196, 8579, 9399, 25, 5534, 23, 198, 2, 309, 38638, 51, 6239, 46, 25, 2311, 78, 11, 269, 793, 23397, 304, 13875, 21872, 198, 2, 317, 6239, 32, 25, 8487, 198, 2, 7788, 4769...
3.091633
251
""" Script to generate annotations for SEATTLE """ import os import sys sys.argv=[''] ## note ada-03 is '/nethome/jbang36/eva_jaeho' ## ada-01 is '/nethome/jbang36/eva_storage' sys.path.append('/nethome/jbang36/eva_jaeho') sys.path.append('/nethome/jbang36/eva_storage') import time import numpy as np #import...
[ 37811, 198, 7391, 284, 7716, 37647, 329, 7946, 35455, 198, 198, 37811, 628, 198, 11748, 28686, 198, 11748, 25064, 198, 17597, 13, 853, 85, 41888, 7061, 60, 198, 2235, 3465, 512, 64, 12, 3070, 318, 31051, 77, 2788, 462, 14, 73, 36668, ...
2.978571
420
# coding=utf-8 from __future__ import unicode_literals from ckeditor_uploader.fields import RichTextUploadingField from django.core.mail import send_mail from django.db import models from django.db.models.signals import post_save from django.urls import reverse from django.utils.translation import ugettext as _ from sl...
[ 2, 19617, 28, 40477, 12, 23, 198, 6738, 11593, 37443, 834, 1330, 28000, 1098, 62, 17201, 874, 198, 6738, 269, 9091, 2072, 62, 25850, 263, 13, 25747, 1330, 3998, 8206, 41592, 278, 15878, 198, 6738, 42625, 14208, 13, 7295, 13, 4529, 133...
2.435666
443
from django.db import models from datetime import datetime
[ 6738, 42625, 14208, 13, 9945, 1330, 4981, 198, 6738, 4818, 8079, 1330, 4818, 8079, 628, 628, 198 ]
3.705882
17
""" A styled grid """ # pylint: disable=R0903,C0103,W0703,R0901 from wxyz.core.base import T, W, WXYZBase from wxyz.html.widget_color import AlphaColor, EmptyAlphaColor from ._version import module_name, module_version from .widget_datagrid import DataGrid @W.register class CellRenderer(WXYZBase): """ [0.1.6]/ce...
[ 37811, 317, 45552, 10706, 198, 37811, 198, 2, 279, 2645, 600, 25, 15560, 28, 49, 2931, 3070, 11, 34, 486, 3070, 11, 54, 15, 36809, 11, 49, 2931, 486, 198, 6738, 266, 5431, 89, 13, 7295, 13, 8692, 1330, 309, 11, 370, 11, 370, 342...
2.37931
1,276
from django.contrib import admin from .models import * # Register your models here. admin.site.register(Post) admin.site.register(UpvotePost) admin.site.register(Comment) admin.site.register(ReplyComment)
[ 6738, 42625, 14208, 13, 3642, 822, 1330, 13169, 198, 6738, 764, 27530, 1330, 1635, 198, 2, 17296, 534, 4981, 994, 13, 628, 198, 28482, 13, 15654, 13, 30238, 7, 6307, 8, 198, 28482, 13, 15654, 13, 30238, 7, 4933, 27257, 6307, 8, 198,...
3.377049
61
from os import environ import json import re from utils import (LOG_LEVEL, Response, HandledError)
[ 6738, 28686, 1330, 551, 2268, 198, 11748, 33918, 198, 11748, 302, 198, 198, 6738, 3384, 4487, 1330, 357, 25294, 62, 2538, 18697, 11, 18261, 11, 7157, 992, 12331, 8, 198 ]
3.333333
30
# # Copyright (c) 2015-2019 Thierry Florac <tflorac AT ulthar.net> # All Rights Reserved. # # This software is subject to the provisions of the Zope Public License, # Version 2.1 (ZPL). A copy of the ZPL should accompany this distribution. # THIS SOFTWARE IS PROVIDED "AS IS" AND ANY AND ALL EXPRESS OR IMPLIED # WARRAN...
[ 2, 198, 2, 15069, 357, 66, 8, 1853, 12, 23344, 536, 959, 563, 4432, 330, 1279, 83, 2704, 273, 330, 5161, 14856, 400, 283, 13, 3262, 29, 198, 2, 1439, 6923, 33876, 13, 198, 2, 198, 2, 770, 3788, 318, 2426, 284, 262, 8617, 286, ...
2.754762
1,680
# -*- coding: utf-8 -*- import sys import re from .report import Reporter from .utils import getlogger, CommandWrapper logger = getlogger(__name__) logger.setLevel(10)
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 11748, 25064, 198, 198, 11748, 302, 198, 6738, 764, 13116, 1330, 25869, 198, 6738, 764, 26791, 1330, 651, 6404, 1362, 11, 9455, 36918, 2848, 198, 198, 6404, 1362, 796, 6...
2.774194
62
from traw.const import API_PATH, BASE_API_PATH
[ 6738, 1291, 86, 13, 9979, 1330, 7824, 62, 34219, 11, 49688, 62, 17614, 62, 34219, 628, 198 ]
2.882353
17
from setuptools import setup setup( name='deep4cast', version='0.1b', description='package for forecasting and anomaly detection using deep learning', url='https://github.com/MSRDL/Deep4Cat', author='Microsoft', author_email='ktran@microsoft.com', license='BSD', packages=['deep4cast'], ...
[ 6738, 900, 37623, 10141, 1330, 9058, 198, 198, 40406, 7, 198, 220, 220, 220, 1438, 11639, 22089, 19, 2701, 3256, 198, 220, 220, 220, 2196, 11639, 15, 13, 16, 65, 3256, 198, 220, 220, 220, 6764, 11639, 26495, 329, 41164, 290, 32172, ...
2.772727
132
#!/usr/bin/env python3 # -*- mode: python; tab-width: 4; indent-tabs-mode: nil; -*- # ------------------------------------------------------------------------------------------------- # Copyright (c) 2019 Marcus Geelnard # # This software is provided 'as-is', without any express or implied warranty. In no event will th...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 18, 198, 2, 532, 9, 12, 4235, 25, 21015, 26, 7400, 12, 10394, 25, 604, 26, 33793, 12, 8658, 82, 12, 14171, 25, 18038, 26, 532, 9, 12, 198, 2, 16529, 3880, 12, 198, 2, 15069, 357, 66...
3.813008
369
#!/bin/python3 import math import os import random import re import sys # Complete the solve function below. if __name__ == '__main__': fptr = open(os.environ['OUTPUT_PATH'], 'w') s = input() result = solve(s) fptr.write(result + '\n') fptr.close()
[ 2, 48443, 8800, 14, 29412, 18, 198, 198, 11748, 10688, 198, 11748, 28686, 198, 11748, 4738, 198, 11748, 302, 198, 11748, 25064, 628, 198, 198, 2, 13248, 262, 8494, 2163, 2174, 13, 628, 198, 361, 11593, 3672, 834, 6624, 705, 834, 12417...
2.477477
111
from Qt import QtWidgets, QtCore from .widgets import LogsWidget, LogDetailWidget from pypeapp import style
[ 6738, 33734, 1330, 33734, 54, 312, 11407, 11, 33734, 14055, 198, 6738, 764, 28029, 11407, 1330, 5972, 82, 38300, 11, 5972, 11242, 603, 38300, 198, 6738, 279, 2981, 1324, 1330, 3918, 628 ]
3.40625
32
import matplotlib.pyplot as plt import matplotlib from .node import AQPNode
[ 11748, 2603, 29487, 8019, 13, 9078, 29487, 355, 458, 83, 198, 11748, 2603, 29487, 8019, 198, 198, 6738, 764, 17440, 1330, 39514, 13137, 1098 ]
3.166667
24
# Copyright (c) 2015, Julian Straub <jstraub@csail.mit.edu> # Licensed under the MIT license. See the license file LICENSE. import numpy as np import subprocess as subp import matplotlib.pyplot as plt import re, argparse, os parser = argparse.ArgumentParser(description = 'DpMM sampler') parser.add_argument('-i','--i...
[ 2, 15069, 357, 66, 8, 1853, 11, 18322, 15195, 549, 1279, 73, 12044, 549, 31, 6359, 603, 13, 2781, 13, 15532, 29, 198, 2, 49962, 739, 262, 17168, 5964, 13, 4091, 262, 5964, 2393, 38559, 24290, 13, 198, 11748, 299, 32152, 355, 45941, ...
2.482546
974
#!/usr/bin/env python3 from configparser import ConfigParser import os from pathlib import Path from opensearchpy import OpenSearch config = ConfigParser() config.read(Path.home() / '.elasticsearch.ini') config.read(Path(os.environ['SEARCH_TOOLS']) / 'wp_search_tools/indexer/config.ini') user = config.get('elastic...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 18, 198, 198, 6738, 4566, 48610, 1330, 17056, 46677, 198, 11748, 28686, 198, 6738, 3108, 8019, 1330, 10644, 198, 198, 6738, 1034, 1072, 998, 9078, 1330, 4946, 18243, 628, 198, 11250, 796, 170...
3.269076
249
from fastapi import APIRouter, HTTPException, Depends, Query, status from sqlmodel import Session from pydantic import EmailStr from database import UserRead, UserUpdate, get_session, User from config import ADMINS_EMAILS from oauth import get_current_user from crud.operations import ( get_objects, get_object...
[ 6738, 3049, 15042, 1330, 3486, 4663, 39605, 11, 14626, 16922, 11, 2129, 2412, 11, 43301, 11, 3722, 198, 6738, 44161, 19849, 1330, 23575, 198, 6738, 279, 5173, 5109, 1330, 9570, 13290, 198, 198, 6738, 6831, 1330, 11787, 5569, 11, 11787, ...
2.848185
303
#!/usr/bin/env python #coding:utf-8 # Author: Beining --<ACICFG> # Purpose: A batch poster of srt file to danmaku on Bilibili. # Created: 11/23/2014 # srt2Bilibili is licensed under GNUv2 license ''' srt2Bilibili 0.02.2 alpha Beining@ACICFG cnbeining[at]gmail.com http://www.cnbeining.com https://github.com/cnbeining/s...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 198, 2, 66, 7656, 25, 40477, 12, 23, 198, 2, 6434, 25, 220, 1355, 3191, 1377, 27, 2246, 2149, 30386, 29, 198, 2, 32039, 25, 317, 15458, 11968, 286, 264, 17034, 2393, 284, 46078, 76, 871...
2.170689
5,718
from __future__ import absolute_import from __future__ import division from __future__ import print_function import torch from ray.rllib.a3c.policy import Policy from threading import Lock class TorchPolicy(Policy): """The policy base class for Torch. The model is a separate object than the policy. This co...
[ 6738, 11593, 37443, 834, 1330, 4112, 62, 11748, 198, 6738, 11593, 37443, 834, 1330, 7297, 198, 6738, 11593, 37443, 834, 1330, 3601, 62, 8818, 198, 198, 11748, 28034, 198, 198, 6738, 26842, 13, 81, 297, 571, 13, 64, 18, 66, 13, 30586, ...
2.781818
605
from flask import flash, url_for from conekt.extensions import admin_required from werkzeug.utils import redirect from conekt.controllers.admin.controls import admin_controls from conekt.models.expression.coexpression_clusters import CoexpressionClusteringMethod from conekt.models.expression.networks import Expression...
[ 6738, 42903, 1330, 7644, 11, 19016, 62, 1640, 198, 6738, 369, 988, 83, 13, 2302, 5736, 1330, 13169, 62, 35827, 198, 6738, 266, 9587, 2736, 1018, 13, 26791, 1330, 18941, 198, 198, 6738, 369, 988, 83, 13, 3642, 36667, 13, 28482, 13, 1...
2.889049
694
"""Unit test for treadmill.restclient. """ from __future__ import absolute_import from __future__ import division from __future__ import print_function from __future__ import unicode_literals import unittest import mock import simplejson.scanner as sjs import requests from six.moves import http_client from treadmi...
[ 37811, 26453, 1332, 329, 49246, 13, 2118, 16366, 13, 198, 37811, 198, 198, 6738, 11593, 37443, 834, 1330, 4112, 62, 11748, 198, 6738, 11593, 37443, 834, 1330, 7297, 198, 6738, 11593, 37443, 834, 1330, 3601, 62, 8818, 198, 6738, 11593, 3...
2.19663
6,113
from chainercv.visualizations.vis_bbox import vis_bbox # NOQA from chainercv.visualizations.vis_image import vis_image # NOQA from chainercv.visualizations.vis_keypoint import vis_keypoint # NOQA from chainercv.visualizations.vis_label import vis_label # NOQA
[ 6738, 6333, 2798, 85, 13, 41464, 4582, 13, 4703, 62, 65, 3524, 1330, 1490, 62, 65, 3524, 220, 1303, 8005, 48, 32, 198, 6738, 6333, 2798, 85, 13, 41464, 4582, 13, 4703, 62, 9060, 1330, 1490, 62, 9060, 220, 1303, 8005, 48, 32, 198, ...
3
88
""" mcpython - a minecraft clone written in python licenced under the MIT-licence (https://github.com/mcpython4-coding/core) Contributors: uuk, xkcdjerry (inactive) Based on the game of fogleman (https://github.com/fogleman/Minecraft), licenced under the MIT-licence Original game "minecraft" by Mojang Studios (www.m...
[ 37811, 198, 76, 13155, 7535, 532, 257, 6164, 3323, 17271, 3194, 287, 21015, 3476, 5864, 739, 262, 17168, 12, 677, 594, 220, 198, 7, 5450, 1378, 12567, 13, 785, 14, 76, 13155, 7535, 19, 12, 66, 7656, 14, 7295, 8, 198, 198, 37146, 6...
2.628662
1,570
from distutils.core import setup, Extension from Cython.Build import cythonize import numpy as np extensions = [ Extension( name='wiring', include_dirs=[np.get_include()], sources=['wiring.pyx', 'cpp-thinning.cpp', 'cpp-refinement.cpp', 'cpp-MinBinaryHeap.cpp', 'cpp-anchorpoints.cpp'], ...
[ 6738, 1233, 26791, 13, 7295, 1330, 9058, 11, 27995, 198, 6738, 327, 7535, 13, 15580, 1330, 3075, 400, 261, 1096, 198, 11748, 299, 32152, 355, 45941, 198, 198, 2302, 5736, 796, 685, 198, 220, 220, 220, 27995, 7, 198, 220, 220, 220, 2...
2.241546
207
# Generated by Django 3.0.8 on 2020-07-11 10:41 from django.db import migrations, models
[ 2, 2980, 515, 416, 37770, 513, 13, 15, 13, 23, 319, 12131, 12, 2998, 12, 1157, 838, 25, 3901, 198, 198, 6738, 42625, 14208, 13, 9945, 1330, 15720, 602, 11, 4981, 628 ]
2.84375
32
from sacred import Experiment ex = Experiment()
[ 6738, 13626, 1330, 29544, 198, 1069, 796, 29544, 3419, 198 ]
4.8
10
import pytest pytestmark = pytest.mark.slow version_file_content = """ major = 1 minor = 0 patch = 0 """ config_file_content_single_file = """ __config_version__ = 1 GLOBALS = { 'serializer': { 'semver': '{{major}}.{{minor}}.{{patch}}', } } FILES = ["README.md"] VERSION = ['major', 'minor', 'patch...
[ 11748, 12972, 9288, 198, 198, 9078, 9288, 4102, 796, 12972, 9288, 13, 4102, 13, 38246, 198, 198, 9641, 62, 7753, 62, 11299, 796, 37227, 198, 22478, 796, 352, 198, 1084, 273, 796, 657, 198, 17147, 796, 657, 198, 37811, 198, 198, 11250,...
2.338432
523
import sys sys.path.append('.') import unittest import numpy as np from environment.custom.knapsack_v2.heuristic.factory import WasteReductionHeuristic, ORTools, RandomHeuristic from environment.custom.knapsack_v2.misc.utils import compute_stats
[ 11748, 25064, 198, 17597, 13, 6978, 13, 33295, 10786, 2637, 8, 198, 11748, 555, 715, 395, 198, 11748, 299, 32152, 355, 45941, 198, 198, 6738, 2858, 13, 23144, 13, 15418, 1686, 441, 62, 85, 17, 13, 258, 27915, 13, 69, 9548, 1330, 353...
3.306667
75
from pathlib import Path
[ 6738, 3108, 8019, 1330, 10644, 628, 628 ]
4
7
# Funktion zur Ausgabe einer Sanduhr auf der Konsole # Die maximale Breite wird als Integer-Wert an die # Funktion übergeben. Die Funktion hat keinen Rückgabewert # Startpunkt des Hauptprogramms # Hier wird die implementierte Funktion zu Demonstrations- und # Testzwecken aufgerufen. printSandglass(8)
[ 2, 37299, 5378, 1976, 333, 27545, 70, 11231, 304, 7274, 3837, 7456, 81, 257, 3046, 4587, 17431, 6753, 198, 2, 6733, 12991, 1000, 3719, 578, 266, 1447, 435, 82, 34142, 12, 54, 861, 281, 4656, 198, 2, 37299, 5378, 6184, 120, 527, 469,...
2.807339
109
import enum
[ 11748, 33829, 628 ]
4.333333
3
# -*- coding: utf-8 -*- # File copeid from https://github.com/kennethreitz/setup.py from setuptools import setup, find_packages with open('README.md') as f: readme = f.read() with open('LICENSE') as f: license = f.read() setup( name='HashtagCreator', version='0.1.0', description='Simple Python...
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 198, 2, 9220, 19271, 312, 422, 3740, 1378, 12567, 13, 785, 14, 74, 1697, 2788, 260, 4224, 14, 40406, 13, 9078, 198, 198, 6738, 900, 37623, 10141, 1330, 9058, 11, 1064,...
2.626126
222
# -*- coding: utf-8 -*- """ Created on Mon May 10 14:10:33 2021 @author: Jannik """ import requests import pandas as pd from datetime import datetime, date, timedelta from pathlib import Path # list all forecast files already present in the eu hub url = "https://api.github.com/repos/epiforecasts/covid19-forecast-hub...
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 37811, 198, 41972, 319, 2892, 1737, 838, 1478, 25, 940, 25, 2091, 33448, 198, 198, 31, 9800, 25, 449, 1236, 1134, 198, 37811, 198, 198, 11748, 7007, 198, 11748, 19798, ...
2.306889
479
import nvisii import random opt = lambda: None opt.spp = 400 opt.width = 500 opt.height = 500 opt.noise = False opt.out = '10_light_texture.png' # # # # # # # # # # # # # # # # # # # # # # # # # nvisii.initialize(headless = True, verbose = True) if not opt.noise is True: nvisii.enable_denoiser() camera = nvi...
[ 11748, 299, 4703, 4178, 198, 11748, 4738, 198, 198, 8738, 796, 37456, 25, 6045, 198, 8738, 13, 82, 381, 796, 7337, 220, 198, 8738, 13, 10394, 796, 5323, 198, 8738, 13, 17015, 796, 5323, 220, 198, 8738, 13, 3919, 786, 796, 10352, 198...
2.362052
2,066
from datetime import datetime import json from django import forms from django.contrib import messages from django.contrib.auth import authenticate, login, logout from django.core.paginator import Paginator, EmptyPage from django.db import IntegrityError from django.db.models import F from django.http import HttpRespo...
[ 6738, 4818, 8079, 1330, 4818, 8079, 198, 11748, 33918, 198, 198, 6738, 42625, 14208, 1330, 5107, 198, 6738, 42625, 14208, 13, 3642, 822, 1330, 6218, 198, 6738, 42625, 14208, 13, 3642, 822, 13, 18439, 1330, 8323, 5344, 11, 17594, 11, 260...
2.392983
3,392
from hapycolor import exceptions import numpy as np class PAM: """ Partition Around Medoids The goal of the algorithm is to minimize the average dissimilarity of objects to their closest selected object. A k-medoid algorithm was chosen instead of a regular k-means, since it is...
[ 6738, 387, 9078, 8043, 1330, 13269, 198, 11748, 299, 32152, 355, 45941, 628, 198, 4871, 350, 2390, 25, 198, 220, 220, 220, 37227, 198, 220, 220, 220, 2142, 653, 16824, 2019, 10994, 628, 220, 220, 220, 220, 220, 220, 220, 383, 3061, ...
2.446397
1,138
# Author: Hiu Hong Yu && Ming-Hung Lu # University of California, Davis # Winter 2017 - ECS 240 - Zhendong Su #Standard Libraries #3rd Party Libraries #Local Libraries import variable_table
[ 2, 6434, 25, 15902, 84, 9764, 10605, 11405, 26980, 12, 39505, 6026, 198, 2, 2059, 286, 3442, 11, 7802, 198, 2, 10633, 2177, 532, 412, 7902, 14956, 532, 1168, 15631, 506, 1778, 198, 198, 2, 23615, 46267, 198, 198, 2, 18, 4372, 3615, ...
3.509091
55
"""This module contains unit tests for fragmenting function and methods.""" from prody.tests import TestCase from numpy import arange from numpy.random import shuffle from prody import * from prody.tests.datafiles import pathDatafile AG = prody.parsePDB(pathDatafile('pdb3mht.pdb')) SHUFFLED = arange(len(AG)) shuffl...
[ 37811, 1212, 8265, 4909, 4326, 5254, 329, 24225, 278, 2163, 290, 5050, 526, 15931, 198, 198, 6738, 386, 9892, 13, 41989, 1330, 6208, 20448, 198, 198, 6738, 299, 32152, 1330, 610, 858, 198, 6738, 299, 32152, 13, 25120, 1330, 36273, 198, ...
2.805369
149
""" Quick-Insert-Export (QIE) Dictionary Data Engine Library Copyright (c) 2020 SilverousBlack, volantebjb License: MIT ----- ----- ----- ----- ----- """ from QIE_Core import * from LanguageIdentityEntry import * from TranslationEntry import * from TranslationDictionary import * from LanguageIdentityCollection impor...
[ 37811, 198, 21063, 12, 44402, 12, 43834, 357, 48, 10008, 8, 28261, 6060, 7117, 10074, 198, 198, 15269, 357, 66, 8, 12131, 7698, 516, 9915, 11, 2322, 415, 1765, 73, 65, 198, 198, 34156, 25, 17168, 198, 198, 30934, 37404, 37404, 37404, ...
4.079208
101
import character from select_bar import * from selenium import webdriver import pickle import time import os import msg from login import * from complete_movements import * driver = webdriver.Chrome() login(driver, character) goto_country(driver) time.sleep(1) goto(select_bar.event_zone(driver)) while Tr...
[ 628, 198, 11748, 2095, 198, 6738, 2922, 62, 5657, 1330, 1635, 198, 198, 6738, 384, 11925, 1505, 1330, 3992, 26230, 198, 11748, 2298, 293, 198, 11748, 640, 198, 11748, 28686, 198, 11748, 31456, 198, 198, 6738, 17594, 1330, 1635, 198, 673...
3.053571
112
# server.py # coding:utf-8 # 从wsgiref模块导入 from wsgiref.simple_server import make_server # 导入我们自己编写的application函数: from wsgi import application # 创建一个服务器,IP地址为空,端口是8000,处理函数是application: httpd = make_server('', 8000, application) print("Serving HTTP on port 8000...") # 开始监听HTTP请求: httpd.serve_forever() print("Listening...
[ 2, 4382, 13, 9078, 198, 2, 19617, 25, 40477, 12, 23, 198, 2, 220, 20015, 236, 18504, 70, 557, 69, 162, 101, 94, 161, 251, 245, 43380, 120, 17739, 98, 198, 6738, 266, 45213, 557, 69, 13, 36439, 62, 15388, 1330, 787, 62, 15388, 19...
1.668394
193
""" CoA Generation | Cannlytics Author: Keegan Skeate <keegan@cannlytics.com> Created: 2/6/2021 Updated: 7/15/2021 License: MIT LIcense <https://opensource.org/licenses/MIT> TODO: - Allow users to create CoA's with a myriad of templates! (.docx, .xlsx, etc.) - Import any docx template styed with Django format...
[ 37811, 198, 7222, 32, 16588, 930, 12283, 306, 14094, 198, 198, 13838, 25, 19799, 1030, 19460, 378, 1279, 11035, 1030, 31, 66, 1236, 306, 14094, 13, 785, 29, 198, 41972, 25, 362, 14, 21, 14, 1238, 2481, 198, 17354, 25, 767, 14, 1314,...
3.012369
1,051
#!/usr/bin/env python3 # -*- coding: utf-8 -*- import os import time import logging from .configuration import Configuration from .build_info import BuildInfo from .build_status_audio_presenter import AudioPresenter from .build_status_gui_presenter import GuiPresenter class ExtremeFeedbackApp: '''Entry point to ...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 18, 198, 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 198, 11748, 28686, 198, 11748, 640, 198, 11748, 18931, 198, 6738, 764, 11250, 3924, 1330, 28373, 198, 6738, 764, 11...
3.427184
103
# -*- coding: utf-8 -*- # Generated by Django 1.9 on 2016-01-12 12:08 from __future__ import unicode_literals import datetime from django.db import migrations, models from django.utils.timezone import utc
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 2, 2980, 515, 416, 37770, 352, 13, 24, 319, 1584, 12, 486, 12, 1065, 1105, 25, 2919, 198, 6738, 11593, 37443, 834, 1330, 28000, 1098, 62, 17201, 874, 198, 198, 11748, ...
2.915493
71
# Generated by the protocol buffer compiler. DO NOT EDIT! # source: proto/devices/device.proto import sys _b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) from google.protobuf import descriptor as _descriptor from google.protobuf import message as _message from google.protobuf import reflect...
[ 2, 2980, 515, 416, 262, 8435, 11876, 17050, 13, 220, 8410, 5626, 48483, 0, 198, 2, 2723, 25, 44876, 14, 42034, 14, 25202, 13, 1676, 1462, 198, 198, 11748, 25064, 198, 62, 65, 28, 17597, 13, 9641, 62, 10951, 58, 15, 60, 27, 18, 2...
2.415686
2,805
import itertools S, r = input().split(' ') S = list(S) S.sort() r = int(r) C = itertools.combinations_with_replacement(S, r) for i in C: print(*i, sep='')
[ 11748, 340, 861, 10141, 198, 198, 50, 11, 374, 796, 5128, 22446, 35312, 10786, 705, 8, 198, 198, 50, 796, 1351, 7, 50, 8, 198, 50, 13, 30619, 3419, 198, 81, 796, 493, 7, 81, 8, 198, 198, 34, 796, 340, 861, 10141, 13, 24011, 73...
2.16
75
#!/usr/bin/python import sys import sqlite3 import Adafruit_DHT import socket import datetime # Required variables dbfile = '/root/TempApp/temperature.db' table = 'temperature' device_name = socket.gethostname() process_ts = datetime.datetime.now() # sqlite3 connection to the temperature database conn = sqlite3.conn...
[ 2, 48443, 14629, 14, 8800, 14, 29412, 198, 11748, 25064, 198, 11748, 44161, 578, 18, 198, 11748, 1215, 1878, 4872, 62, 35, 6535, 198, 11748, 17802, 198, 11748, 4818, 8079, 198, 198, 2, 20906, 9633, 198, 9945, 7753, 796, 31051, 15763, ...
2.961303
491
__author__ = 'slovanos' # from code import something
[ 834, 9800, 834, 796, 705, 6649, 22590, 418, 6, 198, 198, 2, 422, 2438, 1330, 1223 ]
3.3125
16
import os import shutil import hashlib from tempfile import mkdtemp import patoolib import time import datetime unpack_suffixes = [ '.deb', '.gz', '.xz', '.bz2', '.zip', '.whl' ] def dircontent(root): """ Yields all elements of directory (recursively). Starting from top. Good for chmod. Do not f...
[ 11748, 28686, 198, 11748, 4423, 346, 198, 11748, 12234, 8019, 198, 6738, 20218, 7753, 1330, 33480, 67, 29510, 198, 11748, 1458, 970, 571, 198, 11748, 640, 198, 11748, 4818, 8079, 198, 198, 403, 8002, 62, 37333, 844, 274, 796, 685, 45302...
2.104195
739
region = None stage = None account = None lambda_name = None the_api = """ theAPI: Type: AWS::ApiGateway::RestApi DependsOn: LambdaFunction Properties: Description: LambdaTool created this AWS ApiGateway RestApi thing Body: swagger: "2.0" info: version: "2017-11-15T16...
[ 36996, 796, 6045, 198, 14247, 796, 6045, 198, 23317, 796, 6045, 198, 50033, 62, 3672, 796, 6045, 198, 198, 1169, 62, 15042, 796, 37227, 220, 262, 17614, 25, 198, 220, 220, 220, 5994, 25, 30865, 3712, 32, 14415, 22628, 1014, 3712, 1945...
1.799234
2,351
""" Tasks for making even transactional emails consolidated. """ from django.db import connection from osf.models import ( OSFUser as User, NotificationDigest, ) from framework.celery_tasks import app as celery_app from framework.sentry import log_exception from modularodm import Q from website import mails fro...
[ 37811, 198, 51, 6791, 329, 1642, 772, 48878, 1538, 7237, 27890, 13, 198, 37811, 198, 6738, 42625, 14208, 13, 9945, 1330, 4637, 198, 6738, 267, 28202, 13, 27530, 1330, 357, 198, 220, 220, 220, 7294, 37, 12982, 355, 11787, 11, 198, 220,...
2.115288
1,596
# coding: utf-8 # 搜索 import os import sys import codecs from elasticsearch import Elasticsearch es = Elasticsearch([{'host':'127.0.0.1', 'port': 9200}]) INDEX_NAME = "index_street_info" def query_all(): """Queries all matches in Elasticsearch, to be used further for suggesting product names when a us...
[ 2, 19617, 25, 3384, 69, 12, 23, 198, 198, 2, 10545, 238, 250, 163, 112, 95, 198, 198, 11748, 28686, 198, 11748, 25064, 198, 11748, 40481, 82, 198, 6738, 27468, 12947, 1330, 48567, 12947, 198, 198, 274, 796, 48567, 12947, 26933, 90, ...
2.550802
187
#!/usr/bin/env python3 import sys if __name__ == '__main__': sys.exit(main(sys.argv[1:]))
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 18, 198, 198, 11748, 25064, 198, 198, 361, 11593, 3672, 834, 6624, 705, 834, 12417, 834, 10354, 198, 220, 220, 220, 25064, 13, 37023, 7, 12417, 7, 17597, 13, 853, 85, 58, 16, 47715, 4008 ...
2.209302
43
from django.contrib import admin from .models import Author, Book, Publisher admin.site.register(Author) admin.site.register(Book) admin.site.register(Publisher)
[ 6738, 42625, 14208, 13, 3642, 822, 1330, 13169, 198, 6738, 764, 27530, 1330, 6434, 11, 4897, 11, 28045, 198, 198, 28482, 13, 15654, 13, 30238, 7, 13838, 8, 198, 28482, 13, 15654, 13, 30238, 7, 10482, 8, 198, 28482, 13, 15654, 13, 30...
3.4375
48
from .cancel_and_help_dialog import CancelAndHelpDialog from .create_delivery_dialog import CreateDeliveryDialog from .list_deliveries_dialog import ListDeliveriesDialog from .salutation_dialog import SalutationDialog from .main_dialog import MainDialog __all__ = [ "CancelAndHelpDialog", "CreateDeliveryDialog"...
[ 6738, 764, 66, 21130, 62, 392, 62, 16794, 62, 38969, 519, 1330, 27910, 1870, 22087, 44204, 198, 6738, 764, 17953, 62, 12381, 6315, 62, 38969, 519, 1330, 13610, 33129, 44204, 198, 6738, 764, 4868, 62, 12381, 1428, 444, 62, 38969, 519, ...
3.094488
127
# -*- coding: utf-8 -*- from typing import Callable, Optional import funcy as fy import numpy as np import pandas as pd import sklearn.base from sklearn.base import BaseEstimator, TransformerMixin from sklearn.preprocessing import FunctionTransformer from sklearn.utils.validation import check_is_fitted from sklearn_pa...
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 6738, 19720, 1330, 4889, 540, 11, 32233, 198, 198, 11748, 1257, 948, 355, 277, 88, 198, 11748, 299, 32152, 355, 45941, 198, 11748, 19798, 292, 355, 279, 67, 198, 11748, ...
3.076923
1,872
# Copyright 2021 Jakub Kuczys (https://github.com/jack1142) # # 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 # # https://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicab...
[ 2, 15069, 33448, 25845, 549, 509, 1229, 89, 893, 357, 5450, 1378, 12567, 13, 785, 14, 19650, 1157, 3682, 8, 198, 2, 198, 2, 49962, 739, 262, 24843, 13789, 11, 10628, 362, 13, 15, 357, 1169, 366, 34156, 15341, 198, 2, 345, 743, 407...
3.445448
1,439
import base64 import yaml def decode_base64_jwt_token(base64_token): ''' decode ''' return decode_jwt_token_data(decode_base64_bytes_to_string(decode_base64(base64_token))) def decode_jwt_token_data(jwt_token): ''' split token ''' splitted_string = jwt_token.split(".") decoded_d...
[ 198, 11748, 2779, 2414, 198, 198, 11748, 331, 43695, 628, 198, 4299, 36899, 62, 8692, 2414, 62, 73, 46569, 62, 30001, 7, 8692, 2414, 62, 30001, 2599, 198, 220, 220, 220, 705, 7061, 198, 220, 220, 220, 36899, 198, 220, 220, 220, 705,...
2.338235
476
# # Copyright (c) 2018 ISP RAS (http://www.ispras.ru) # Ivannikov Institute for System Programming of the Russian Academy of Sciences # # 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 # # h...
[ 2, 198, 2, 15069, 357, 66, 8, 2864, 33086, 371, 1921, 357, 4023, 1378, 2503, 13, 271, 1050, 292, 13, 622, 8, 198, 2, 16975, 1236, 1134, 709, 5136, 329, 4482, 30297, 286, 262, 3394, 8581, 286, 13473, 198, 2, 198, 2, 49962, 739, 2...
2.773401
3,173
# -*- coding: utf-8 -*- ############################################################################## # # Hommat - a tiny library for homogenous matrices/coordinates. # Authors: # - Richard Petri <dasricht at gmail.com> # # This is free and unencumbered software released into the public domain. # # Anyone is ...
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 29113, 29113, 7804, 4242, 2235, 198, 2, 220, 198, 2, 220, 367, 2002, 265, 532, 257, 7009, 5888, 329, 3488, 27897, 2603, 45977, 14, 37652, 17540, 13, 198, 2, 220, 46665...
2.236898
1,870
# -*- coding=utf-8 -*- from __future__ import division, print_function, absolute_import from base_model import BaseModel from util import * import tensorflow as tf import pickle
[ 2, 532, 9, 12, 19617, 28, 40477, 12, 23, 532, 9, 12, 198, 6738, 11593, 37443, 834, 1330, 7297, 11, 3601, 62, 8818, 11, 4112, 62, 11748, 198, 198, 6738, 2779, 62, 19849, 1330, 7308, 17633, 198, 6738, 7736, 1330, 1635, 198, 198, 117...
3.351852
54
import os from yaml import load, dump, FullLoader from fandogh_cli.utils import makedirs try: from yaml import CLoader as Loader, CDumper as Dumper except ImportError: from yaml import Loader, Dumper _config_repository = {} clusters = get_user_config().get('clusters', None)
[ 11748, 28686, 198, 6738, 331, 43695, 1330, 3440, 11, 10285, 11, 6462, 17401, 198, 6738, 277, 25440, 456, 62, 44506, 13, 26791, 1330, 285, 4335, 17062, 198, 198, 28311, 25, 198, 220, 220, 220, 422, 331, 43695, 1330, 7852, 1170, 263, 35...
2.902913
103
from .parallel import _Parallel # noqa from .serial import _Serial # noqa from .utilities import _PlacementResult # noqa
[ 6738, 764, 1845, 29363, 1330, 4808, 10044, 29363, 220, 1303, 645, 20402, 198, 6738, 764, 46911, 1330, 4808, 32634, 220, 1303, 645, 20402, 198, 6738, 764, 315, 2410, 1330, 4808, 3646, 5592, 23004, 220, 1303, 645, 20402, 198 ]
3.263158
38
import os
[ 11748, 28686, 201, 198, 201, 198, 201, 198, 201, 198 ]
1.7
10
from sqlalchemy import create_engine, MetaData, Table from sqlalchemy.orm import mapper, sessionmaker if __name__ == "__main__": session = loadSession() res = session.query(Story).all() with open('data.csv', 'w') as data: for story in res: data.write('{0}\t{1}\t{2}\t{3}\n'.format(story...
[ 6738, 44161, 282, 26599, 1330, 2251, 62, 18392, 11, 30277, 6601, 11, 8655, 198, 6738, 44161, 282, 26599, 13, 579, 1330, 285, 11463, 11, 6246, 10297, 198, 220, 198, 361, 11593, 3672, 834, 6624, 366, 834, 12417, 834, 1298, 198, 220, 220...
2.548611
144
"""Useful functions.""" import os as _os from collections import namedtuple as _namedtuple from functools import partial as _partial import pickle as _pickle import numpy as _np def generate_random_numbers(n_part, dist_type='exp', cutoff=3): """Generate random numbers with a cutted off dist_type distribution. ...
[ 37811, 11041, 913, 5499, 526, 15931, 198, 11748, 28686, 355, 4808, 418, 198, 6738, 17268, 1330, 3706, 83, 29291, 355, 4808, 13190, 83, 29291, 198, 6738, 1257, 310, 10141, 1330, 13027, 355, 4808, 47172, 198, 11748, 2298, 293, 355, 4808, ...
2.569149
1,128
import numpy as np import pandas as pd import matplotlib.pyplot as plt from glob import glob import seaborn as sn waves08 = sorted(glob('environment/environment/waves/wmb-sued/wmb-sued_2019-08-**.csv')) waves09 = sorted(glob('environment/environment/waves/wmb-sued/wmb-sued_2019-09-**.csv')) waves10 = sorted(glob('env...
[ 11748, 299, 32152, 355, 45941, 198, 11748, 19798, 292, 355, 279, 67, 198, 11748, 2603, 29487, 8019, 13, 9078, 29487, 355, 458, 83, 198, 6738, 15095, 1330, 15095, 198, 11748, 384, 397, 1211, 355, 3013, 628, 198, 32569, 2919, 796, 23243, ...
2.110294
4,352
from rest_framework import serializers from .models import Joke
[ 6738, 1334, 62, 30604, 1330, 11389, 11341, 198, 6738, 764, 27530, 1330, 449, 2088 ]
4.5
14
import json import time from decimal import Decimal import httpx from cryptofeed_werks.controllers import HTTPX_ERRORS, iter_api from cryptofeed_werks.lib import parse_datetime from .constants import API_URL, BTC, MAX_RESULTS, MIN_ELAPSED_PER_REQUEST def get_ftx_api_pagination_id(timestamp, last_data=[], data=[])...
[ 11748, 33918, 198, 11748, 640, 198, 6738, 32465, 1330, 4280, 4402, 198, 198, 11748, 2638, 87, 198, 198, 6738, 8194, 1659, 2308, 62, 15448, 591, 13, 3642, 36667, 1330, 14626, 55, 62, 24908, 50, 11, 11629, 62, 15042, 198, 6738, 8194, 16...
2.878594
313
from processutils.textfilter import DataSplit import argparse parser = argparse.ArgumentParser(description="my_split.py") parser.add_argument('-f', "--file_prefix") parser.add_argument('--train_name', default="train") parser.add_argument('--valid_name', default="valid") parser.add_argument("--valid_size", default=1000...
[ 6738, 1429, 26791, 13, 5239, 24455, 1330, 6060, 41205, 198, 11748, 1822, 29572, 198, 198, 48610, 796, 1822, 29572, 13, 28100, 1713, 46677, 7, 11213, 2625, 1820, 62, 35312, 13, 9078, 4943, 198, 48610, 13, 2860, 62, 49140, 10786, 12, 69, ...
2.637813
439
from __future__ import unicode_literals from django.apps import AppConfig
[ 6738, 11593, 37443, 834, 1330, 28000, 1098, 62, 17201, 874, 198, 198, 6738, 42625, 14208, 13, 18211, 1330, 2034, 16934, 628 ]
3.619048
21
from confluent_kafka import Producer import socket import json from datetime import datetime # check https://github.com/confluentinc/examples/blob/6.2.0-post/clients/cloud/python/producer.py for ack examples conf = {'bootstrap.servers': "kafka-1:9092", 'client.id': socket.gethostname()} producer = Producer(conf) for...
[ 6738, 1013, 28216, 62, 74, 1878, 4914, 1330, 30436, 198, 11748, 17802, 198, 11748, 33918, 198, 6738, 4818, 8079, 1330, 4818, 8079, 198, 198, 2, 2198, 3740, 1378, 12567, 13, 785, 14, 10414, 28216, 1939, 14, 1069, 12629, 14, 2436, 672, ...
2.227758
281
import sys, os import unittest os.environ["TF_NUM_INTEROP_THREADS"] = "8" os.environ["TF_NUM_INTRAOP_THREADS"] = "8" os.environ["ITK_GLOBAL_DEFAULT_NUMBER_OF_THREADS"] = "8" import tempfile import shutil import tensorflow as tf import antspymm import antspyt1w import antspynet import ants testingClass = unittest.Tes...
[ 11748, 25064, 11, 28686, 198, 11748, 555, 715, 395, 198, 198, 418, 13, 268, 2268, 14692, 10234, 62, 41359, 62, 41358, 3185, 62, 4221, 15675, 50, 8973, 796, 366, 23, 1, 198, 418, 13, 268, 2268, 14692, 10234, 62, 41359, 62, 12394, 386...
2.286142
1,003
import tkinter as tk import numpy as np from tkinter import messagebox from math import ceil
[ 11748, 256, 74, 3849, 355, 256, 74, 201, 198, 11748, 299, 32152, 355, 45941, 201, 198, 6738, 256, 74, 3849, 1330, 3275, 3524, 201, 198, 6738, 10688, 1330, 2906, 346, 201, 198, 201, 198, 201, 198, 201, 198, 201, 198, 201, 198, 201, ...
2.203704
54
#! /usr/bin/env python import json import jsonRead import time filename = 'terraform_input.json' with open(filename, 'r') as data_file: data = json.load(data_file)
[ 2, 0, 1220, 14629, 14, 8800, 14, 24330, 21015, 198, 11748, 33918, 198, 11748, 33918, 5569, 198, 11748, 640, 198, 34345, 796, 705, 353, 430, 687, 62, 15414, 13, 17752, 6, 198, 4480, 1280, 7, 34345, 11, 705, 81, 11537, 355, 1366, 62, ...
2.790323
62
from rest_framework import status from rest_framework.permissions import AllowAny from rest_framework.response import Response from rest_framework.views import APIView from rest_framework import viewsets from django.views.decorators.csrf import csrf_exempt from django.utils.decorators import method_decorator from .seri...
[ 6738, 1334, 62, 30604, 1330, 3722, 198, 6738, 1334, 62, 30604, 13, 525, 8481, 1330, 22507, 7149, 198, 6738, 1334, 62, 30604, 13, 26209, 1330, 18261, 198, 6738, 1334, 62, 30604, 13, 33571, 1330, 3486, 3824, 769, 198, 6738, 1334, 62, 30...
3.403922
255
# # PySNMP MIB module ASCEND-MIBSS7NMI-MIB (http://snmplabs.com/pysmi) # ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/ASCEND-MIBSS7NMI-MIB # Produced by pysmi-0.3.4 at Mon Apr 29 17:12:21 2019 # On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4 # Using Python version 3.7.3 (defau...
[ 2, 198, 2, 9485, 15571, 7378, 337, 9865, 8265, 25400, 10619, 12, 8895, 4462, 50, 22, 45, 8895, 12, 8895, 33, 357, 4023, 1378, 16184, 76, 489, 8937, 13, 785, 14, 79, 893, 11632, 8, 198, 2, 7054, 45, 13, 16, 2723, 2393, 1378, 14, ...
2.67673
6,923
import asyncio import aiohttp from bs4 import BeautifulSoup
[ 11748, 30351, 952, 198, 11748, 257, 952, 4023, 198, 6738, 275, 82, 19, 1330, 23762, 50, 10486, 628, 198, 220, 220, 220, 220, 198 ]
2.791667
24
from .parsers import RawConfigParser, SafeConfigParser, ConfigParser
[ 6738, 764, 79, 945, 364, 1330, 16089, 16934, 46677, 11, 19978, 16934, 46677, 11, 17056, 46677, 198 ]
4.058824
17
from collections import defaultdict, Counter import math import pandas as pd import numpy as np import sys import os import random from datetime import datetime
[ 6738, 17268, 1330, 4277, 11600, 11, 15034, 198, 11748, 10688, 198, 11748, 19798, 292, 355, 279, 67, 198, 11748, 299, 32152, 355, 45941, 198, 11748, 25064, 198, 11748, 28686, 198, 11748, 4738, 198, 6738, 4818, 8079, 1330, 4818, 8079, 198 ]
4.025
40
import math if __name__ == '__main__': target = 7 nums = [2, 3, 1, 2, 4, 3] assert(Solution().minSubArrayLen(target,nums) == 2) target = 4 nums = [1, 4, 4] assert(Solution().minSubArrayLen(target,nums) == 1) target = 11 nums = [1, 1, 1, 1, 1, 1, 1, 1] assert(Solution().mi...
[ 11748, 10688, 201, 198, 201, 198, 361, 11593, 3672, 834, 6624, 705, 834, 12417, 834, 10354, 201, 198, 220, 220, 220, 2496, 796, 767, 201, 198, 220, 220, 220, 997, 82, 796, 685, 17, 11, 513, 11, 352, 11, 362, 11, 604, 11, 513, 60...
2.088757
169
from .gmplot import GoogleMapPlotter
[ 6738, 764, 39870, 29487, 1330, 3012, 13912, 43328, 353, 628 ]
3.8
10
from django.utils.encoding import force_str from rest_framework.compat import coreapi, coreschema from rest_framework.pagination import PageNumberPagination, _positive_int
[ 6738, 42625, 14208, 13, 26791, 13, 12685, 7656, 1330, 2700, 62, 2536, 198, 6738, 1334, 62, 30604, 13, 5589, 265, 1330, 4755, 15042, 11, 4755, 15952, 2611, 198, 6738, 1334, 62, 30604, 13, 79, 363, 1883, 1330, 7873, 15057, 47, 363, 1883...
3.55102
49
from __future__ import annotations from typing import Optional import game.actions import game.color import game.combat import game.components.ai import game.components.inventory import game.engine import game.entity import game.exceptions import game.input_handlers from game.node import Node from game.typing import ...
[ 6738, 11593, 37443, 834, 1330, 37647, 198, 198, 6738, 19720, 1330, 32233, 198, 198, 11748, 983, 13, 4658, 198, 11748, 983, 13, 8043, 198, 11748, 983, 13, 39969, 198, 11748, 983, 13, 5589, 3906, 13, 1872, 198, 11748, 983, 13, 5589, 390...
3.875
88
#!/usr/bin/env python3 import unittest from tmc import points from tmc.utils import load, get_stdout module_name="src.hello_world" main = load(module_name, "main") @points('p01-01.1') if __name__ == '__main__': unittest.main()
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 18, 198, 198, 11748, 555, 715, 395, 628, 198, 6738, 256, 23209, 1330, 2173, 198, 198, 6738, 256, 23209, 13, 26791, 1330, 3440, 11, 651, 62, 19282, 448, 198, 198, 21412, 62, 3672, 2625, 10...
2.425743
101
# -*- mode: python; coding: utf-8 -*- import re import os import sys import atexit import datetime import threading import sublime import sublime_plugin import lldb import lldbutil import lldb_wrappers from monitors import LLDBUIUpdater from lldb_wrappers import thread_created from debug import debug, debugPlugin,...
[ 2, 532, 9, 12, 4235, 25, 21015, 26, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 198, 11748, 302, 198, 11748, 28686, 198, 11748, 25064, 198, 11748, 379, 37023, 198, 11748, 4818, 8079, 198, 11748, 4704, 278, 198, 198, 11748, 41674, ...
1.857447
1,410
from msmbuilder.utils import load,dump from msmbuilder.featurizer import DihedralFeaturizer import os, glob from msmbuilder.decomposition import tICA import mdtraj as md import pandas as pd from msmbuilder.msm import MarkovStateModel from msmbuilder.cluster import KMeans trj_list = load("traj_list.pkl") print("Foun...
[ 6738, 13845, 2022, 3547, 263, 13, 26791, 1330, 3440, 11, 39455, 198, 6738, 13845, 2022, 3547, 263, 13, 5036, 2541, 7509, 1330, 6031, 21962, 14304, 2541, 7509, 198, 11748, 28686, 11, 15095, 198, 6738, 13845, 2022, 3547, 263, 13, 12501, 2...
2.518797
266
import os import sys import logging import datetime import boto3 from boto3.dynamodb.conditions import Key, Attr import json import urllib from helpers import web_helpers from helpers import raid_helpers import settings # Set Logging Level logger = logging.getLogger() logger.setLevel(logging.ERROR) def get_institut...
[ 11748, 28686, 198, 11748, 25064, 198, 11748, 18931, 198, 11748, 4818, 8079, 198, 11748, 275, 2069, 18, 198, 6738, 275, 2069, 18, 13, 67, 4989, 375, 65, 13, 17561, 1756, 1330, 7383, 11, 3460, 81, 198, 11748, 33918, 198, 11748, 2956, 29...
2.364333
3,914
import numpy as np from itertools import permutations, product if __name__ == "__main__": test_gravity = particle_particle(np.array([10,0,0,0])) print(test_gravity.get_acceleration(np.array([[0,0,0],[1,1,1],[10,0,0],[20,0,0]])))
[ 11748, 299, 32152, 355, 45941, 198, 6738, 340, 861, 10141, 1330, 9943, 32855, 11, 1720, 198, 198, 361, 11593, 3672, 834, 6624, 366, 834, 12417, 834, 1298, 198, 220, 220, 220, 1332, 62, 46453, 796, 18758, 62, 3911, 1548, 7, 37659, 13, ...
2.38
100
import json from nexinfosys.models.musiasem_concepts import PedigreeMatrix from nexinfosys.model_services import IExecutableCommand, get_case_study_registry_objects class PedigreeMatrixCommand(IExecutableCommand): """ Declaration of a pedigree matrix, which can be used """ def execute(self, state: ...
[ 11748, 33918, 198, 198, 6738, 497, 87, 10745, 418, 893, 13, 27530, 13, 14664, 4448, 368, 62, 43169, 82, 1330, 13457, 41233, 46912, 198, 6738, 497, 87, 10745, 418, 893, 13, 19849, 62, 30416, 1330, 314, 23002, 18187, 21575, 11, 651, 62,...
2.483871
403
ES_HOST = "localhost" ES_PORT = "9200"
[ 1546, 62, 39, 10892, 796, 366, 36750, 1, 198, 1546, 62, 15490, 796, 366, 24, 2167, 1, 198 ]
2.166667
18
#!/usr/bin/python3 import os data = [] for file in os.listdir('log'): with open("log/{0}".format(file), 'r') as log: for line in log: data.append(Event(line)) data.sort(key=lambda x: x.time) checkAcuireReleaseIntersect(data) checkAquireAfterRequest(data) print ("All tests were passed!")
[ 2, 48443, 14629, 14, 8800, 14, 29412, 18, 198, 198, 11748, 28686, 198, 198, 7890, 796, 17635, 198, 198, 1640, 2393, 287, 28686, 13, 4868, 15908, 10786, 6404, 6, 2599, 198, 220, 220, 220, 351, 1280, 7203, 6404, 14, 90, 15, 92, 1911, ...
2.401515
132
try: from setuptools import setup except ImportError: from distutils.core import setup with open('description') as readme_file: long_description = readme_file.read() setup( name='lightct', version='0.1.0', author='C. Simpson, L.Courtois', author_email='c.a.simpson01@gmail.com', package...
[ 28311, 25, 198, 220, 220, 220, 422, 900, 37623, 10141, 1330, 9058, 198, 16341, 17267, 12331, 25, 198, 220, 220, 220, 422, 1233, 26791, 13, 7295, 1330, 9058, 198, 198, 4480, 1280, 10786, 11213, 11537, 355, 1100, 1326, 62, 7753, 25, 198...
2.563679
424