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://github.com/RLBot/RLBot/blob/master/src/main/python/rlbot/version.py # Store the version here so: # 1) we don't load dependencies by storing it in __init__.py # 2) we can import it in setup.py for the same reason # 3) we can import it into your module module # https://stackoverflow.com/questions/458550/st...
[ 2, 3574, 3740, 1378, 12567, 13, 785, 14, 7836, 20630, 14, 7836, 20630, 14, 2436, 672, 14, 9866, 14, 10677, 14, 12417, 14, 29412, 14, 45895, 13645, 14, 9641, 13, 9078, 198, 2, 9363, 262, 2196, 994, 523, 25, 198, 2, 352, 8, 356, 8...
2.865757
879
import unittest import numpy as np from numpy.testing import assert_almost_equal, assert_array_almost_equal from structured import common, gibbs, objects, varapprox from structured.common import mult_diag
[ 11748, 555, 715, 395, 198, 198, 11748, 299, 32152, 355, 45941, 198, 6738, 299, 32152, 13, 33407, 1330, 6818, 62, 28177, 62, 40496, 11, 6818, 62, 18747, 62, 28177, 62, 40496, 198, 198, 6738, 20793, 1330, 2219, 11, 46795, 1443, 11, 5563...
3.603448
58
import Arena from MCTS import MCTS from hex.HexGame import HexGame, display from hex.HexPlayers import * from hex.pytorch.NNet import NNetWrapper as NNet import numpy as np from utils import * """ use this script to play any two agents against each other, or play manually with any agent. """ g = HexGame(6) # all pl...
[ 11748, 10937, 198, 6738, 337, 4177, 50, 1330, 337, 4177, 50, 198, 6738, 17910, 13, 39, 1069, 8777, 1330, 22212, 8777, 11, 3359, 198, 6738, 17910, 13, 39, 1069, 24860, 1330, 1635, 198, 6738, 17910, 13, 9078, 13165, 354, 13, 6144, 316, ...
2.365419
561
"""Class definition for filtering duplicate files.""" from kaishi.core.misc import find_duplicate_inds from kaishi.core.misc import trim_list_by_inds from kaishi.core.misc import CollapseChildren from kaishi.core.pipeline_component import PipelineComponent class FilterDuplicateFiles(PipelineComponent): """Filter ...
[ 37811, 9487, 6770, 329, 25431, 23418, 3696, 526, 15931, 198, 6738, 38387, 21644, 13, 7295, 13, 44374, 1330, 1064, 62, 646, 489, 5344, 62, 521, 82, 198, 6738, 38387, 21644, 13, 7295, 13, 44374, 1330, 15797, 62, 4868, 62, 1525, 62, 521,...
3.656566
99
import re import itertools from bacteria_regex import BacteriaMatcher
[ 11748, 302, 198, 11748, 340, 861, 10141, 198, 198, 6738, 11492, 62, 260, 25636, 1330, 347, 10634, 19044, 2044, 628, 628, 198 ]
3.409091
22
from rodan.jobs.base import RodanTask from gamera.core import init_gamera, Image, load_image from gamera import gamera_xml from ProjectionSplitting import ProjectionSplitter from DirtyLayerRepair import DirtyLayerRepairman init_gamera()
[ 6738, 15299, 272, 13, 43863, 13, 8692, 1330, 6882, 272, 25714, 198, 198, 6738, 308, 18144, 13, 7295, 1330, 2315, 62, 70, 18144, 11, 7412, 11, 3440, 62, 9060, 198, 6738, 308, 18144, 1330, 308, 18144, 62, 19875, 198, 198, 6738, 4935, ...
3.408451
71
# Copyright (c) 2017, Matt Layman import os from handroll import logger from handroll.composers import Composer from handroll.composers.mixins import FrontmatterComposerMixin from handroll.i18n import _ class GenericHTMLComposer(FrontmatterComposerMixin, Composer): """A template class that performs basic handli...
[ 2, 15069, 357, 66, 8, 2177, 11, 4705, 18881, 805, 198, 198, 11748, 28686, 198, 198, 6738, 1021, 2487, 1330, 49706, 198, 6738, 1021, 2487, 13, 785, 1930, 364, 1330, 29936, 263, 198, 6738, 1021, 2487, 13, 785, 1930, 364, 13, 19816, 10...
2.596646
1,133
import os from oneandone.client import OneAndOneService token = os.getenv('ONEANDONE_TOKEN') client = OneAndOneService(token) # List all users users = client.list_users() # Retrieve a user user = client.get_user(user_id='') # Retrieve a user's API privileges api_info = client.api_info(user_id='') # Retrieve a use...
[ 11748, 28686, 198, 6738, 530, 392, 505, 13, 16366, 1330, 1881, 1870, 3198, 16177, 198, 198, 30001, 796, 28686, 13, 1136, 24330, 10786, 11651, 6981, 11651, 62, 10468, 43959, 11537, 198, 198, 16366, 796, 1881, 1870, 3198, 16177, 7, 30001, ...
2.462478
573
""" An implementation of http://en.wikipedia.org/wiki/Lempel%E2%80%93Ziv%E2%80%93Welch (without any entropy coder or codebook size limit) """ ## message = 'TOBEORNOTTOBEORTOBEORNOT' ## encoded = list(encode(message)) ## output = ''.join(decode(encoded)) ## message == output #. True ## list(show_lzw(message)) #. ['T', ...
[ 37811, 198, 2025, 7822, 286, 198, 4023, 1378, 268, 13, 31266, 13, 2398, 14, 15466, 14, 43, 368, 30242, 4, 36, 17, 4, 1795, 4, 6052, 57, 452, 4, 36, 17, 4, 1795, 4, 6052, 54, 417, 354, 198, 7, 19419, 597, 40709, 269, 12342, 393...
2.366534
753
import os import re import shutil if "{{ cookiecutter.has_models }}" == "no": shutil.rmtree("models") if "{{ cookiecutter.has_wizards }}" == "yes": os.mkdir("wizards") if "{{ cookiecutter.has_reports }}" == "yes": os.mkdir("reports") if "{{ cookiecutter.has_controller}}" == "yes": os.mkdir("control...
[ 11748, 28686, 198, 11748, 302, 198, 11748, 4423, 346, 628, 198, 361, 366, 27007, 19751, 8968, 353, 13, 10134, 62, 27530, 34949, 1, 6624, 366, 3919, 1298, 198, 220, 220, 220, 4423, 346, 13, 81, 16762, 631, 7203, 27530, 4943, 198, 198, ...
2.496183
131
from __future__ import print_function, absolute_import from builtins import str import sys, os, re, json, logging, errno from datetime import datetime from glob import glob from os.path import join, isfile, dirname, abspath, basename from makepy import argparse from makepy.config import read_setup_args, package_dir, r...
[ 6738, 11593, 37443, 834, 1330, 3601, 62, 8818, 11, 4112, 62, 11748, 198, 198, 6738, 3170, 1040, 1330, 965, 198, 11748, 25064, 11, 28686, 11, 302, 11, 33918, 11, 18931, 11, 11454, 3919, 198, 6738, 4818, 8079, 1330, 4818, 8079, 198, 673...
3.064846
293
print("Hello I am Sagar")
[ 4798, 7203, 15496, 314, 716, 25605, 283, 4943, 198 ]
2.888889
9
# coding:utf-8 """The file is just for test.""" import nltk from nltk.corpus import wordnet as wn from nltk.corpus import sentiwordnet as swn from nltk.stem import PorterStemmer from nltk.stem import WordNetLemmatizer lemmatizer = WordNetLemmatizer() ps = PorterStemmer() def penn_to_wn(tag): """ Convert betw...
[ 2, 19617, 25, 40477, 12, 23, 198, 37811, 464, 2393, 318, 655, 329, 1332, 526, 15931, 198, 198, 11748, 299, 2528, 74, 198, 6738, 299, 2528, 74, 13, 10215, 79, 385, 1330, 1573, 3262, 355, 266, 77, 198, 6738, 299, 2528, 74, 13, 10215...
2.329446
686
import io from os import path from setuptools import setup, find_packages MYDIR = path.abspath(path.dirname(__file__)) cmdclass = {} ext_modules = [] setup( name='airflow-notify-sns', version='0.0.2', author="Marcelo Santino", author_email="marcelo@santino.dev", description="Publish Airflow not...
[ 11748, 33245, 198, 6738, 28686, 1330, 3108, 198, 6738, 900, 37623, 10141, 1330, 9058, 11, 1064, 62, 43789, 198, 198, 26708, 34720, 796, 3108, 13, 397, 2777, 776, 7, 6978, 13, 15908, 3672, 7, 834, 7753, 834, 4008, 198, 198, 28758, 4871...
2.610119
336
num = 10 num2 =20 num3 =300 num4 =40
[ 22510, 796, 838, 198, 22510, 17, 796, 1238, 198, 22510, 18, 796, 6200, 198, 22510, 19, 796, 1821, 198 ]
1.947368
19
from .base import BaseComponent
[ 6738, 764, 8692, 1330, 7308, 21950, 628 ]
4.714286
7
""" This program demonstrates an infinite loop. This program will need to be force closed as it will never end. """ keep_going = "y" #Variable to control the loop. #Warning! Infinite loop! This program will never end. while keep_going == "y": sales = float(in...
[ 37811, 198, 1212, 1430, 15687, 281, 15541, 9052, 13, 198, 1212, 1430, 481, 761, 284, 307, 2700, 4838, 355, 340, 481, 1239, 886, 13, 198, 37811, 198, 198, 14894, 62, 5146, 796, 366, 88, 1, 220, 220, 220, 220, 220, 220, 220, 220, 22...
2.607973
301
from django.urls import path, include from . import views from django.contrib.auth import views as auth_views from django.contrib.staticfiles.urls import staticfiles_urlpatterns app_name='game' urlpatterns = [ #Home path('', views.home, name="home"), #Lobby path('lobbies/', views.lobbies, name="lobbi...
[ 6738, 42625, 14208, 13, 6371, 82, 1330, 3108, 11, 2291, 201, 198, 6738, 764, 1330, 5009, 201, 198, 201, 198, 6738, 42625, 14208, 13, 3642, 822, 13, 18439, 1330, 5009, 355, 6284, 62, 33571, 201, 198, 6738, 42625, 14208, 13, 3642, 822, ...
2.816054
598
#!/usr/bin/env python3 # -*- coding: utf-8 -*- # Copyright (c) 2015 Jérémie DECOCK (http://www.jdhp.org) """ This is the simplest Python GTK+3 snippet. See: http://python-gtk-3-tutorial.readthedocs.org/en/latest/layout.html """ from gi.repository import Gtk as gtk if __name__ == '__main__': main()
[ 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, 2, 15069, 357, 66, 8, 1853, 449, 2634, 29350, 44871, 27196, 11290, 357, 4023, 1378, 2503, 13, 73, 67, 24831,...
2.376923
130
import json from pathlib import Path __all__ = ["__version__", "__js__"] __js__ = json.load( (Path(__file__).parent.resolve() / "labextension/package.json").read_bytes() ) __version__ = __js__["version"]
[ 11748, 33918, 198, 6738, 3108, 8019, 1330, 10644, 198, 198, 834, 439, 834, 796, 14631, 834, 9641, 834, 1600, 366, 834, 8457, 834, 8973, 198, 834, 8457, 834, 796, 33918, 13, 2220, 7, 198, 220, 220, 220, 357, 15235, 7, 834, 7753, 834,...
2.714286
77
# coding: utf-8 # # Copyright 2022 :Barry-Thomas-Paul: Moss # # 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 applicab...
[ 2, 19617, 25, 3384, 69, 12, 23, 198, 2, 198, 2, 15069, 33160, 1058, 33, 6532, 12, 22405, 12, 12041, 25, 19935, 198, 2, 198, 2, 49962, 739, 262, 24843, 13789, 11, 10628, 362, 13, 15, 357, 1169, 366, 34156, 4943, 198, 2, 345, 743,...
3.049278
1,177
# -*- coding: utf-8 -*- import pandas as pd
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 11748, 19798, 292, 355, 279, 67, 628 ]
2.142857
21
# flake8: noqa # import all models into this package # if you have many models here with many references from one model to another this may # raise a RecursionError # to avoid this, import only the models that you directly need like: # from from fds.sdk.MarketIntelligence.model.pet import Pet # or import this package,...
[ 2, 781, 539, 23, 25, 645, 20402, 198, 198, 2, 1330, 477, 4981, 656, 428, 5301, 198, 2, 611, 345, 423, 867, 4981, 994, 351, 867, 10288, 422, 530, 2746, 284, 1194, 428, 743, 198, 2, 5298, 257, 3311, 24197, 12331, 198, 2, 284, 3368...
3.47619
273
""" #Ref: Sreenivas Sarwar Anik What are features? s """ ############################################## #Gabor filter, multiple filters in one. Generate fiter bank. """ For image processing and computer vision, Gabor filters are generally used in texture analysis, edge detection, feature extraction, etc. Gabor f...
[ 198, 37811, 198, 2, 8134, 25, 311, 1361, 38630, 6866, 5767, 1052, 1134, 198, 198, 2061, 389, 3033, 30, 220, 198, 82, 198, 37811, 198, 198, 29113, 7804, 4242, 2235, 198, 2, 38, 4820, 8106, 11, 3294, 16628, 287, 530, 13, 2980, 378, ...
3.008863
677
"""Assorted utilities for tests""" import unittest from typing import Tuple, List import cv2 import numpy as np import numpy.testing as npt from active_shape_model import ActiveShapeModel from image_shape import ImageShape from imgutils import load_images, apply_median_blur, apply_sobel from incisors import Incisors ...
[ 37811, 8021, 9741, 20081, 329, 5254, 37811, 198, 11748, 555, 715, 395, 198, 6738, 19720, 1330, 309, 29291, 11, 7343, 198, 198, 11748, 269, 85, 17, 198, 11748, 299, 32152, 355, 45941, 198, 11748, 299, 32152, 13, 33407, 355, 299, 457, 1...
2.272135
768
import numpy as np import time import re import os import operator import pickle as pickle import dateutil from urllib.request import urlopen from collections import namedtuple from pybasicbayes.util.text import progprint, progprint_xrange from pgmult.utils import mkdir from ctm import get_sparse_repr, split_test_tr...
[ 198, 11748, 299, 32152, 355, 45941, 198, 11748, 640, 198, 11748, 302, 198, 11748, 28686, 198, 11748, 10088, 198, 11748, 2298, 293, 355, 2298, 293, 198, 11748, 3128, 22602, 198, 6738, 2956, 297, 571, 13, 25927, 1330, 19016, 9654, 198, 67...
2.49009
555
import logging from vortex.errors import VortexException
[ 11748, 18931, 198, 6738, 42726, 13, 48277, 1330, 49790, 16922, 628, 628 ]
5
12
# Generated by Django 3.1.3 on 2020-12-01 19:08 from django.db import migrations, models
[ 2, 2980, 515, 416, 37770, 513, 13, 16, 13, 18, 319, 12131, 12, 1065, 12, 486, 678, 25, 2919, 198, 198, 6738, 42625, 14208, 13, 9945, 1330, 15720, 602, 11, 4981, 628 ]
2.84375
32
#!/usr/bin/env python import os import sys # See "Using the Django test runner to test reusable applications": # https://docs.djangoproject.com/en/3.1/topics/testing/advanced/#using-the-django-test-runner-to-test-reusable-applications import django from django.conf import settings from django.test.utils import get_ru...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 198, 11748, 28686, 198, 11748, 25064, 198, 198, 2, 4091, 366, 12814, 262, 37770, 1332, 17490, 284, 1332, 42339, 5479, 1298, 198, 2, 3740, 1378, 31628, 13, 28241, 648, 404, 305, 752, 13, 785...
2.6714
493
from collections import defaultdict import time import numpy as np import os from math import ceil class MinHeap: """ Implementation of Min Heap data structure """ def create_min_heap(self, arr): """ Converts a given array into a min heap :param arr: input array of numbers ...
[ 6738, 17268, 1330, 4277, 11600, 198, 11748, 640, 198, 11748, 299, 32152, 355, 45941, 198, 11748, 28686, 198, 6738, 10688, 1330, 2906, 346, 628, 198, 4871, 1855, 1544, 499, 25, 198, 220, 220, 220, 37227, 198, 220, 220, 220, 46333, 286, ...
2.235389
5,595
"""test fibonacci alogrithms""" from src.math import class_memoization_fibonacci from src.math import explicit_fibonacci from src.math import function_memoization_fibonacci from src.math import iterative_fibonacci from src.math import recursive_fibonacci def test_fibonacci(): """test fibonacci algorithms""" t...
[ 37811, 9288, 12900, 261, 44456, 435, 519, 81, 342, 907, 37811, 198, 6738, 12351, 13, 11018, 1330, 1398, 62, 11883, 78, 1634, 62, 69, 571, 261, 44456, 198, 6738, 12351, 13, 11018, 1330, 7952, 62, 69, 571, 261, 44456, 198, 6738, 12351, ...
2.513793
290
from keras.models import Sequential, Model from keras.layers import Input, Dense, Reshape, Flatten, Dropout,multiply from keras.layers.advanced_activations import LeakyReLU from keras.layers import BatchNormalization, Activation, Embedding, ZeroPadding2D import numpy as np
[ 6738, 41927, 292, 13, 27530, 1330, 24604, 1843, 11, 9104, 198, 6738, 41927, 292, 13, 75, 6962, 1330, 23412, 11, 360, 1072, 11, 1874, 71, 1758, 11, 1610, 41769, 11, 14258, 448, 11, 16680, 541, 306, 198, 6738, 41927, 292, 13, 75, 6962...
3.186047
86
#!/usr/bin/env python3 # NanoSciTracker - 2020 # Author: Luis G. Leon Vega <luis@luisleon.me> # # Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. The ASF li...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 18, 198, 2, 33504, 50, 979, 35694, 532, 12131, 198, 2, 6434, 25, 20894, 402, 13, 10592, 30310, 1279, 2290, 271, 31, 2290, 20919, 261, 13, 1326, 29, 198, 2, 198, 2, 49962, 284, 262, 2484...
2.905391
909
#!/usr/bin/env python3 import utils utils.check_version((3,7)) utils.clear() print('Hello, my name is Ethan Yee, I am a sophomore Digital & Interactive Media major from Chicago, IL.') print('My favorite video game is Super Smash Bros Ultimate for the Nintendo switch. The task of the game seems so simple, knock your...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 18, 198, 198, 11748, 3384, 4487, 198, 198, 26791, 13, 9122, 62, 9641, 19510, 18, 11, 22, 4008, 198, 26791, 13, 20063, 3419, 198, 198, 4798, 10786, 15496, 11, 616, 1438, 318, 28926, 575, 1...
4.012195
246
import pathlib from typing import List, Optional from clang import cindex # helper {{{ DEFAULT_CLANG_DLL = pathlib.Path("C:/Program Files/LLVM/bin/libclang.dll") SET_DLL = False def get_tu(path: pathlib.Path, include_path_list: List[pathlib.Path] = None, use_macro: bool = False, ...
[ 11748, 3108, 8019, 201, 198, 6738, 19720, 1330, 7343, 11, 32233, 201, 198, 6738, 537, 648, 1330, 269, 9630, 201, 198, 201, 198, 2, 31904, 22935, 90, 201, 198, 7206, 38865, 62, 5097, 15567, 62, 35, 3069, 796, 3108, 8019, 13, 15235, 7...
2.042818
724
import pytest from aioinject import providers from aioinject.containers import Container from aioinject.context import InjectionContext @pytest.fixture @pytest.fixture
[ 11748, 12972, 9288, 198, 198, 6738, 257, 952, 259, 752, 1330, 9549, 198, 6738, 257, 952, 259, 752, 13, 3642, 50221, 1330, 43101, 198, 6738, 257, 952, 259, 752, 13, 22866, 1330, 554, 29192, 21947, 628, 628, 198, 198, 31, 9078, 9288, ...
3.172414
58
# -*- coding: utf-8 -*- # # This class was auto-generated from the API references found at # https://epayments-api.developer-ingenico.com/s2sapi/v1/ # from ingenico.connect.sdk.domain.definitions.abstract_payment_method_specific_input import AbstractPaymentMethodSpecificInput from ingenico.connect.sdk.domain.hostedchec...
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 2, 198, 2, 770, 1398, 373, 8295, 12, 27568, 422, 262, 7824, 10288, 1043, 379, 198, 2, 3740, 1378, 538, 323, 902, 12, 15042, 13, 16244, 263, 12, 36795, 3713, 13, 785,...
3.376344
186
nome = input("Informe o seu nome:") print(quantosAs(nome))
[ 198, 198, 77, 462, 796, 5128, 7203, 818, 687, 68, 267, 384, 84, 299, 462, 25, 4943, 198, 4798, 7, 40972, 418, 1722, 7, 77, 462, 4008 ]
2.222222
27
import gym from rlberry.seeding import Seeder class Discrete(gym.spaces.Discrete): """ Class that represents discrete spaces. Inherited from gym.spaces.Discrete for compatibility with gym. rlberry wraps gym.spaces to make sure the seeding mechanism is unified in the library (rlberry.seeding) ...
[ 11748, 11550, 198, 6738, 374, 75, 8396, 13, 325, 8228, 1330, 1001, 5702, 628, 198, 4871, 8444, 8374, 7, 1360, 76, 13, 2777, 2114, 13, 15642, 8374, 2599, 198, 220, 220, 220, 37227, 198, 220, 220, 220, 5016, 326, 6870, 28810, 9029, 13...
2.455882
544
# 手动纯算法调用 import binascii from unicorn import * from unicorn.arm_const import * from UnicornTraceDebugger import udbg a1 = b'123' mu = Uc(UC_ARCH_ARM, UC_MODE_THUMB) #image image_base = 0x0 image_size = 0x10000 * 8 mu.mem_map(image_base, image_size) binary = open('jnilibs/libnative-lib.so','rb').read() mu.mem_write...
[ 2, 10545, 231, 233, 27950, 101, 163, 118, 107, 163, 106, 245, 37345, 243, 164, 108, 225, 18796, 101, 198, 11748, 9874, 292, 979, 72, 198, 198, 6738, 44986, 1330, 1635, 198, 6738, 44986, 13, 1670, 62, 9979, 1330, 1635, 198, 198, 6738...
2.061121
589
from django.core import serializers
[ 6738, 42625, 14208, 13, 7295, 1330, 11389, 11341, 628, 628, 628 ]
3.727273
11
""" tests for celery tasks """ from unittest.mock import patch, Mock import requests import tests.mocks as mocks from tasks import scheduler @patch('tasks.requests.post') @patch('service.resources.applications.requests.get') def test_scheduler(mock_query_get, mock_bluebeam_post, mock_env_access_key): # pylint: dis...
[ 37811, 5254, 329, 18725, 1924, 8861, 37227, 198, 6738, 555, 715, 395, 13, 76, 735, 1330, 8529, 11, 44123, 198, 11748, 7007, 198, 11748, 5254, 13, 76, 3320, 355, 285, 3320, 198, 6738, 8861, 1330, 6038, 18173, 198, 198, 31, 17147, 10786...
2.727273
671
from django.conf import settings from api.staticdata.control_list_entries.models import ControlListEntry
[ 6738, 42625, 14208, 13, 10414, 1330, 6460, 198, 6738, 40391, 13, 12708, 7890, 13, 13716, 62, 4868, 62, 298, 1678, 13, 27530, 1330, 6779, 8053, 30150, 628 ]
3.925926
27
from ...utils import db from .response.response_schema import (build_variant_response, build_biosample_or_individual_response) from . import BiosamplesParameters, GVariantsParameters, IndividualsParameters, generic_handler biosamples_proxy = BiosamplesParameters() gvariants_proxy...
[ 6738, 2644, 26791, 1330, 20613, 198, 6738, 764, 26209, 13, 26209, 62, 15952, 2611, 1330, 357, 11249, 62, 25641, 415, 62, 26209, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, ...
3.008865
564
# Copyright 2021 The TensorFlow Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applica...
[ 2, 15069, 33448, 383, 309, 22854, 37535, 46665, 13, 1439, 6923, 33876, 13, 198, 2, 198, 2, 49962, 739, 262, 24843, 13789, 11, 10628, 362, 13, 15, 357, 1169, 366, 34156, 15341, 198, 2, 345, 743, 407, 779, 428, 2393, 2845, 287, 11846,...
2.827586
609
from flask import Flask, request import json from flask_cors import CORS from app import utils, job from . import app, redis_store import threading CORS(app) # Activate the siege weapon... # No turning back now. @app.route('/api/enable', methods=['POST']) # Two factor @app.route('/api/getCode') @app.route('/ap...
[ 6738, 42903, 1330, 46947, 11, 2581, 198, 11748, 33918, 198, 6738, 42903, 62, 66, 669, 1330, 327, 20673, 198, 198, 6738, 598, 1330, 3384, 4487, 11, 1693, 198, 6738, 764, 1330, 598, 11, 2266, 271, 62, 8095, 198, 198, 11748, 4704, 278, ...
2.874286
175
"""Functions for learning the structure of a bayesian network from an input dataset""" import numpy as np from collections import namedtuple from itertools import combinations from sklearn.metrics import mutual_info_score from ...factors import Factor from ...factors import CPT def greedy_network_learning(df, degre...
[ 37811, 24629, 2733, 329, 4673, 262, 4645, 286, 257, 15489, 35610, 3127, 422, 281, 5128, 27039, 37811, 198, 11748, 299, 32152, 355, 45941, 198, 198, 6738, 17268, 1330, 3706, 83, 29291, 198, 6738, 340, 861, 10141, 1330, 17790, 198, 6738, ...
2.748466
1,141
from django.core import serializers from django.core.exceptions import ObjectDoesNotExist from django.db import DataError from django.http import JsonResponse, HttpResponse from django.utils.datastructures import MultiValueDictKeyError from django.views.decorators.csrf import csrf_exempt from clinicmodels.models impor...
[ 6738, 42625, 14208, 13, 7295, 1330, 11389, 11341, 198, 6738, 42625, 14208, 13, 7295, 13, 1069, 11755, 1330, 9515, 13921, 3673, 3109, 396, 198, 6738, 42625, 14208, 13, 9945, 1330, 6060, 12331, 198, 6738, 42625, 14208, 13, 4023, 1330, 449, ...
2.615713
2,342
# -*- coding: utf-8 -*- # pylint: disable-msg= E1002, E1101 """ Created on Wed Nov 21 09:04:17 2012 This file contains the definition of a set of very simple abstraction patterns in order to perform rhythm interpretation on an ECG signal. @author: T. Teijeiro """ import kardioml.segmentation.teijeiro.knowledge.obser...
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 2, 279, 2645, 600, 25, 15560, 12, 19662, 28, 412, 3064, 17, 11, 412, 1157, 486, 198, 37811, 198, 41972, 319, 3300, 5267, 2310, 7769, 25, 3023, 25, 1558, 2321, 198, 1...
2.304758
2,438
import unittest import os from ...BaseTestCase import BaseTestCase from centipede.Task import Task from centipede.Crawler.Fs import FsPath from centipede.Task.Fs.Checksum import ChecksumMatchError from centipede.Task.Image import UpdateImageMetadata class UpdateImageMetadataTest(BaseTestCase): """Test UpdateImageM...
[ 11748, 555, 715, 395, 198, 11748, 28686, 198, 6738, 2644, 14881, 14402, 20448, 1330, 7308, 14402, 20448, 198, 6738, 1247, 541, 18654, 13, 25714, 1330, 15941, 198, 6738, 1247, 541, 18654, 13, 34, 39464, 13, 42388, 1330, 376, 82, 15235, 1...
2.599444
719
from . import html5 from .examples import examples from lark import Lark from lark.tree import Tree
[ 6738, 764, 1330, 27711, 20, 198, 6738, 764, 1069, 12629, 1330, 6096, 198, 198, 6738, 300, 668, 1330, 406, 668, 198, 6738, 300, 668, 13, 21048, 1330, 12200, 628 ]
3.517241
29
#Turtle Race Game import turtle import random dice = [1,2,3,4,5,6] turtle.title("Turtle Race") turtle.setup(width=800, height=600) #Setup turtles playerone = turtle.Turtle() playerone.color('blue') playerone.shape('turtle') playerone.penup() playerone.goto(-200,100) #setup second turtle playert...
[ 2, 51, 17964, 12588, 3776, 201, 198, 201, 198, 11748, 28699, 201, 198, 11748, 4738, 201, 198, 201, 198, 67, 501, 796, 685, 16, 11, 17, 11, 18, 11, 19, 11, 20, 11, 21, 60, 201, 198, 201, 198, 83, 17964, 13, 7839, 7203, 51, 1796...
2.255357
560
from tqdm import tqdm import tensorflow as tf import numpy as np import cv2 import glob import gc import rasterio import pathlib import pandas as pd from rasterio.windows import Window from tensorflow.keras.layers import * from tensorflow.keras.applications import * from tensorflow.keras.callbacks import * from tensorf...
[ 6738, 256, 80, 36020, 1330, 256, 80, 36020, 198, 11748, 11192, 273, 11125, 355, 48700, 198, 11748, 299, 32152, 355, 45941, 198, 11748, 269, 85, 17, 198, 11748, 15095, 198, 11748, 308, 66, 198, 11748, 374, 1603, 952, 198, 11748, 3108, ...
2.752717
368
import pygame from units.Unit import Unit
[ 11748, 12972, 6057, 198, 198, 6738, 4991, 13, 26453, 1330, 11801, 628 ]
3.666667
12
from overrides import overrides from allennlp.common.util import JsonDict from allennlp.data import DatasetReader, Instance, Token from allennlp.models import Model from allennlp.predictors.predictor import Predictor from allennlp.data.tokenizers.word_splitter import SpacyWordSplitter @Predictor.register('cvt-tagger'...
[ 6738, 23170, 1460, 1330, 23170, 1460, 198, 198, 6738, 477, 1697, 34431, 13, 11321, 13, 22602, 1330, 449, 1559, 35, 713, 198, 6738, 477, 1697, 34431, 13, 7890, 1330, 16092, 292, 316, 33634, 11, 2262, 590, 11, 29130, 198, 6738, 477, 169...
2.595541
628
from django.shortcuts import render def about(request): """ A View to return the about.html """ return render(request, 'about/about.html') def privacy(request): """ A View to return the privacy.html """ return render(request, 'about/privacy.html')
[ 6738, 42625, 14208, 13, 19509, 23779, 1330, 8543, 628, 198, 4299, 546, 7, 25927, 2599, 198, 220, 220, 220, 37227, 317, 3582, 284, 1441, 262, 546, 13, 6494, 37227, 198, 220, 220, 220, 1441, 8543, 7, 25927, 11, 705, 10755, 14, 10755, ...
3.190476
84
""" The Scanner is responsible for iterating over the model.txt and transforming it into a more usable representation. It doesn't implement any transformations (expect for type casting). """ INPUT_SCAN_KEYS = { "max_feature_idx": ScannedValue(int), "num_class": ScannedValue(int), "num_tree_per_iterati...
[ 37811, 198, 464, 20937, 1008, 318, 4497, 329, 11629, 803, 625, 262, 2746, 13, 14116, 290, 25449, 340, 656, 257, 517, 198, 31979, 10552, 13, 198, 1026, 1595, 470, 3494, 597, 38226, 357, 1069, 806, 329, 2099, 13092, 737, 198, 37811, 628...
2.491071
896
import math import numpy if __name__ == "__main__": # test the iterative histogram iterative_histogram = IterativeHistogram(start=0, stop=10, n_bins=10) iterative_histogram.update(0) # 1 iterative_histogram.update(-1) # None iterative_histogram.update(10) # 10 it...
[ 11748, 10688, 201, 198, 11748, 299, 32152, 201, 198, 201, 198, 201, 198, 201, 198, 361, 11593, 3672, 834, 6624, 366, 834, 12417, 834, 1298, 201, 198, 220, 220, 220, 1303, 1332, 262, 11629, 876, 1554, 21857, 201, 198, 220, 220, 220, ...
2.105171
1,721
import os from basePhantom import _BasePhantom class _PhantomAssets(_BasePhantom): """ Wrapper around the Phantom REST calls for Assets """
[ 11748, 28686, 198, 6738, 2779, 2725, 11456, 1330, 4808, 14881, 2725, 11456, 628, 198, 4871, 4808, 2725, 11456, 8021, 1039, 28264, 14881, 2725, 11456, 2599, 198, 220, 220, 220, 37227, 198, 220, 220, 220, 27323, 2848, 1088, 262, 14407, 3061...
3.142857
49
#!/usr/bin/env python3 # -*- coding: utf-8 -*- # SolidBlue III - Open source data manager. # # __author__ = "Fabrizio Giudici" # __copyright__ = "Copyright © 2020 by Fabrizio Giudici" # __credits__ = ["Fabrizio Giudici"] # __license__ = "Apache v2" # __version__ = "1.0-ALPHA-4-SNAPSHOT" # __maintainer__ = "Fabr...
[ 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, 2, 220, 15831, 14573, 6711, 532, 4946, 2723, 1366, 4706, 13, 198, 2, 198, 2, 220, 11593, 9800, 834, 796, 3...
2.437768
233
import collections import logging import os import os.path import re import sys log = logging.getLogger(__name__) def render_api_and_obj_classes(module_name, api_classes, template): '''Render a template.''' return str(template.render({"module": {"name": module_name}, "classes...
[ 11748, 17268, 198, 11748, 18931, 198, 11748, 28686, 198, 11748, 28686, 13, 6978, 198, 11748, 302, 198, 11748, 25064, 198, 198, 6404, 796, 18931, 13, 1136, 11187, 1362, 7, 834, 3672, 834, 8, 628, 198, 198, 4299, 8543, 62, 15042, 62, 39...
2.603274
2,566
from selenium.webdriver.common.by import By
[ 6738, 384, 11925, 1505, 13, 12384, 26230, 13, 11321, 13, 1525, 1330, 2750, 628 ]
3.214286
14
import struct FILE_FORMAT_VERSION = 5
[ 11748, 2878, 198, 198, 25664, 62, 21389, 1404, 62, 43717, 796, 642, 198 ]
3
13
numbers = list(map(int, (input()).split(" "))) command = input() while command != 'end': tokens = command.split(" ") if tokens[0] == 'exchange': idx = int(tokens[1]) exchange(idx) elif tokens[0] == 'max': max_even_odd(tokens[1]) elif tokens[0] == 'min': ...
[ 77, 17024, 796, 1351, 7, 8899, 7, 600, 11, 357, 15414, 3419, 737, 35312, 7203, 366, 22305, 201, 198, 201, 198, 201, 198, 201, 198, 201, 198, 201, 198, 201, 198, 201, 198, 21812, 796, 5128, 3419, 201, 198, 4514, 3141, 14512, 705, 4...
1.942122
311
import cv2 import numpy as np from sklearn.cluster import DBSCAN as skDBSCAN
[ 11748, 269, 85, 17, 198, 11748, 299, 32152, 355, 45941, 198, 6738, 1341, 35720, 13, 565, 5819, 1330, 360, 4462, 44565, 355, 1341, 35, 4462, 44565, 628, 220, 220, 220, 220, 198, 220, 220, 220, 220 ]
2.416667
36
import uuid from pathlib import Path import factory import pytest from django.conf import settings from django.core.exceptions import MultipleObjectsReturned from django.core.files import File from tests.cases_tests.factories import ( ImageFactory, ImageFactoryWithImageFile, ImageFactoryWithImageFile4D, ...
[ 11748, 334, 27112, 198, 6738, 3108, 8019, 1330, 10644, 198, 198, 11748, 8860, 198, 11748, 12972, 9288, 198, 6738, 42625, 14208, 13, 10414, 1330, 6460, 198, 6738, 42625, 14208, 13, 7295, 13, 1069, 11755, 1330, 20401, 10267, 82, 13615, 276,...
3.1
180
from .core import * from .terminal import cli __version__ = '0.2.5'
[ 6738, 764, 7295, 1330, 1635, 220, 198, 6738, 764, 23705, 282, 1330, 537, 72, 198, 198, 834, 9641, 834, 796, 705, 15, 13, 17, 13, 20, 6, 628 ]
2.535714
28
"""------------------------------------------------------------*- fingerPrint module for Raspberry Pi Tested on: Raspberry Pi 3 B+ (c) Minh-An Dao 2019 (C) Bastian Raschke 2015 version 1.00 - 09/10/2019 -------------------------------------------------------------- * * ------------------------------------...
[ 37811, 47232, 10541, 9, 12, 198, 220, 7660, 18557, 8265, 329, 24244, 13993, 198, 220, 6208, 276, 319, 25, 24244, 13993, 513, 347, 10, 198, 220, 357, 66, 8, 1855, 71, 12, 2025, 360, 5488, 13130, 198, 220, 357, 34, 8, 17520, 666, 28...
3.773723
274
import random import string from typing import Optional from application.data.game_state import GameState from application.data.word_manager import WordManager class GameManager: """ Manages all the games. """ def create_game(self) -> GameState: """ Creates a new game. Retur...
[ 11748, 4738, 198, 11748, 4731, 198, 6738, 19720, 1330, 32233, 198, 198, 6738, 3586, 13, 7890, 13, 6057, 62, 5219, 1330, 3776, 9012, 198, 6738, 3586, 13, 7890, 13, 4775, 62, 37153, 1330, 9678, 13511, 628, 198, 4871, 3776, 13511, 25, 19...
2.350943
530
import random @DiceDecorator input_game = input("What Game are you playing?\n") if input_game.lower() == "monopoly": function(input_game,"2d6") while True: user_input = input("Roll Again? (Yes or No)\n") if user_input.lower() == "no": break function(input_game, "2d6") elif ...
[ 11748, 4738, 198, 198, 31, 35, 501, 10707, 273, 1352, 198, 198, 15414, 62, 6057, 796, 5128, 7203, 2061, 3776, 389, 345, 2712, 30, 59, 77, 4943, 198, 361, 5128, 62, 6057, 13, 21037, 3419, 6624, 366, 2144, 35894, 1298, 198, 220, 220, ...
2.35206
267
class Concept: '''Defines a concept and its parents concepts.''' def __init__(self, index, parents=None): ''' Attributes: - self.index: identifies a concept; - self.parents: this concept's parents. ''' self.index = index self.parents = parents def from...
[ 4871, 26097, 25, 198, 220, 220, 220, 705, 7061, 7469, 1127, 257, 3721, 290, 663, 3397, 10838, 2637, 7061, 628, 220, 220, 220, 825, 11593, 15003, 834, 7, 944, 11, 6376, 11, 3397, 28, 14202, 2599, 198, 220, 220, 220, 220, 220, 220, ...
2.392857
224
# Copyright (c) 2021, 2022, Oracle and/or its affiliates. # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License, version 2.0, # as published by the Free Software Foundation. # # This program is also distributed with certain software (including # ...
[ 2, 15069, 357, 66, 8, 33448, 11, 33160, 11, 18650, 290, 14, 273, 663, 29116, 13, 198, 2, 198, 2, 770, 1430, 318, 1479, 3788, 26, 345, 460, 17678, 4163, 340, 290, 14, 273, 13096, 198, 2, 340, 739, 262, 2846, 286, 262, 22961, 3611...
3.809798
347
from corehq.apps.domain.models import Domain from corehq.apps.locations.models import SQLLocation from corehq.apps.sms.api import send_sms_to_verified_number from corehq.util.translation import localize from memoized import memoized
[ 6738, 4755, 71, 80, 13, 18211, 13, 27830, 13, 27530, 1330, 20021, 198, 6738, 4755, 71, 80, 13, 18211, 13, 17946, 602, 13, 27530, 1330, 49747, 3069, 5040, 198, 6738, 4755, 71, 80, 13, 18211, 13, 82, 907, 13, 15042, 1330, 3758, 62, ...
3.295775
71
import asyncio import os from rf_api_client import RfApiClient from rf_api_client.models.maps_api_models import MapLayout, NewMapDto from rf_api_client.rf_api_client import UserAuth USERNAME = os.getenv('USERNAME') PASSWORD = os.getenv('PASSWORD') MAP_ID = os.getenv('MAP_ID') if __name__ == '__main__': loop ...
[ 11748, 30351, 952, 198, 11748, 28686, 198, 198, 6738, 374, 69, 62, 15042, 62, 16366, 1330, 371, 69, 32, 14415, 11792, 198, 6738, 374, 69, 62, 15042, 62, 16366, 13, 27530, 13, 31803, 62, 15042, 62, 27530, 1330, 9347, 32517, 11, 968, ...
2.554404
193
import importlib import logging import yaml import os from .eventbus import EventBus from .template import TemplateDict from performance.driver.core.utils import parseTimeExpr # TODO: Make @ expand to `performance.driver.core.classes` # TODO: Make MetricConfig use ComponentConfig def mergeConfig(source, destinatio...
[ 11748, 1330, 8019, 198, 11748, 18931, 198, 11748, 331, 43695, 198, 11748, 28686, 198, 198, 6738, 764, 15596, 10885, 1330, 8558, 16286, 198, 6738, 764, 28243, 1330, 37350, 35, 713, 198, 198, 6738, 2854, 13, 26230, 13, 7295, 13, 26791, 13...
2.839933
2,374
from typing import Optional import torch from sacred import Experiment from experiments.Experiment_utils import idx_maps, add_tensor_board_writers, run_training, create_logger from experiments.data_loading import data_loading_ingredient from src.LSTMLID import LSTMLIDModel LSTM_exp = Experiment('LSTM_experiment', in...
[ 6738, 19720, 1330, 32233, 198, 198, 11748, 28034, 198, 6738, 13626, 1330, 29544, 198, 198, 6738, 10256, 13, 20468, 3681, 62, 26791, 1330, 4686, 87, 62, 31803, 11, 751, 62, 83, 22854, 62, 3526, 62, 34422, 11, 1057, 62, 34409, 11, 2251,...
3.05625
160
from unittest import TestCase from jp.co.coworker.nlp_knock_handson.ch8.preprocessor import PreProcessor
[ 6738, 555, 715, 395, 1330, 6208, 20448, 198, 198, 6738, 474, 79, 13, 1073, 13, 8232, 967, 263, 13, 21283, 79, 62, 15418, 735, 62, 4993, 1559, 13, 354, 23, 13, 3866, 41341, 1330, 3771, 18709, 273, 628 ]
2.815789
38
#!/usr/bin/python # -*- coding: utf-8 -*- # @File : thread_queue_test.py # @Time : 2019/2/15 1:11 # @Author : MaiXiaochai # @Site : https://github.com/MaiXiaochai import time import threading from queue import Queue if __name__ == '__main__': main_var()
[ 2, 48443, 14629, 14, 8800, 14, 29412, 198, 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 198, 2, 2488, 8979, 220, 220, 220, 1058, 4704, 62, 36560, 62, 9288, 13, 9078, 198, 2, 2488, 7575, 220, 220, 220, 1058, 131...
2.280992
121
#-*- coding: utf-8 -*- import sys import junopy if __name__ == "__main__": main(sys.argv)
[ 2, 12, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 11748, 25064, 198, 11748, 10891, 11081, 628, 198, 198, 361, 11593, 3672, 834, 6624, 366, 834, 12417, 834, 1298, 198, 220, 220, 220, 1388, 7, 17597, 13, 853, 85, 8, 198 ...
2.155556
45
from datasets.basedataset import BaseDataset from .basedata import DGBaseData import os.path as osp
[ 6738, 40522, 13, 3106, 265, 292, 316, 1330, 7308, 27354, 292, 316, 198, 6738, 764, 3106, 1045, 1330, 360, 4579, 589, 6601, 198, 11748, 28686, 13, 6978, 355, 267, 2777, 198 ]
3.225806
31
from matplotlib.pyplot import spy import pandas as pd import questionary import matplotlib.pyplot as plt import fire import utils.gauge as gauge from utils.MCForecastTools import MCSimulation as MCSimulation import utils.alpacaConnect as alpacaConnect import utils.beta_sharpe_functions as stats if __name__ ==...
[ 6738, 2603, 29487, 8019, 13, 9078, 29487, 1330, 13997, 198, 11748, 19798, 292, 355, 279, 67, 220, 198, 11748, 1808, 560, 198, 11748, 2603, 29487, 8019, 13, 9078, 29487, 355, 458, 83, 198, 11748, 2046, 220, 198, 11748, 3384, 4487, 13, ...
2.81746
126
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.db import migrations from django.utils.text import slugify
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 6738, 11593, 37443, 834, 1330, 28000, 1098, 62, 17201, 874, 198, 198, 6738, 42625, 14208, 13, 9945, 1330, 15720, 602, 198, 6738, 42625, 14208, 13, 26791, 13, 5239, 1330, ...
2.957447
47
''' ''' ''' ISC License Copyright (c) 2016, Autonomous Vehicle Systems Lab, University of Colorado at Boulder Permission to use, copy, modify, and/or distribute this software for any purpose with or without fee is hereby granted, provided that the above copyright notice and this permission notice appear in all c...
[ 7061, 6, 705, 7061, 198, 7061, 6, 198, 3180, 34, 13789, 628, 15069, 357, 66, 8, 1584, 11, 5231, 38175, 21501, 11998, 3498, 11, 2059, 286, 7492, 379, 27437, 628, 2448, 3411, 284, 779, 11, 4866, 11, 13096, 11, 290, 14, 273, 14983, 4...
3.65019
263
from bokeh.plotting import figure from bokeh.models import ColumnDataSource, Range1d, FuncTickFormatter, FixedTicker from math import pi, floor #ColourOptions = ["red","blue","green","black","yellow","purple"] # define operator[]
[ 6738, 1489, 365, 71, 13, 29487, 889, 1330, 3785, 198, 6738, 1489, 365, 71, 13, 27530, 1330, 29201, 6601, 7416, 11, 13667, 16, 67, 11, 11138, 66, 51, 624, 8479, 1436, 11, 10832, 51, 15799, 198, 6738, 10688, 1330, 31028, 11, 4314, 198...
3.12987
77
from .payment import KeyHashInfo, ScriptHashInfo, PaymentCodeInfo from .registration import Registration from .registration import electron_markdown, opreturn
[ 6738, 764, 37301, 1330, 7383, 26257, 12360, 11, 12327, 26257, 12360, 11, 28784, 10669, 12360, 198, 6738, 764, 2301, 33397, 1330, 24610, 198, 6738, 764, 2301, 33397, 1330, 11538, 62, 4102, 2902, 11, 1034, 7783, 198 ]
4.416667
36
from . import initiate_driver
[ 6738, 764, 1330, 22118, 62, 26230, 198 ]
4.285714
7
file_content = open("3dec-input", 'r') #file_content = ["R75,D30,R83,U83,L12,D49,R71,U7,L72", "U62,R66,U55,R34,D71,R55,D58,R83"] #file_content = ["R98,U47,R26,D63,R33,U87,L62,D20,R33,U53,R51", "U98,R91,D20,R16,D67,R40,U7,R15,U6,R7"] #file_content = ["R8,U5,L5,D3", "U7,R6,D4,L4"] paths = [] for line in file_content: ...
[ 198, 198, 7753, 62, 11299, 796, 1280, 7203, 18, 12501, 12, 15414, 1600, 705, 81, 11537, 198, 2, 7753, 62, 11299, 796, 14631, 49, 2425, 11, 35, 1270, 11, 49, 5999, 11, 52, 5999, 11, 43, 1065, 11, 35, 2920, 11, 49, 4869, 11, 52, ...
1.868313
243
# -*- coding: utf-8 -*- """ This is a wrapper of head and tail projection. To generate sparse_module.so file, please use the following command (suppose you have Linux/MacOS/MacBook): python setup.py build_ext --inplace """ import os import numpy from setuptools import setup from setuptools import find_packages fro...
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 198, 37811, 198, 1212, 318, 257, 29908, 286, 1182, 290, 7894, 20128, 13, 1675, 7716, 29877, 62, 21412, 13, 568, 198, 7753, 11, 3387, 779, 262, 1708, 3141, 357, 18608, ...
2.329396
762
# Generated by Django 2.1.3 on 2018-11-18 22:58 from django.db import migrations, models import django.db.models.deletion
[ 2, 2980, 515, 416, 37770, 362, 13, 16, 13, 18, 319, 2864, 12, 1157, 12, 1507, 2534, 25, 3365, 198, 198, 6738, 42625, 14208, 13, 9945, 1330, 15720, 602, 11, 4981, 198, 11748, 42625, 14208, 13, 9945, 13, 27530, 13, 2934, 1616, 295, ...
2.818182
44
""" Django settings for example project. Generated by 'django-admin startproject' using Django 2.1.2. For more information on this file, see https://docs.djangoproject.com/en/2.1/topics/settings/ For the full list of settings and their values, see https://docs.djangoproject.com/en/2.1/ref/settings/ """ import os A...
[ 37811, 198, 35, 73, 14208, 6460, 329, 1672, 1628, 13, 198, 198, 8645, 515, 416, 705, 28241, 14208, 12, 28482, 923, 16302, 6, 1262, 37770, 362, 13, 16, 13, 17, 13, 198, 198, 1890, 517, 1321, 319, 428, 2393, 11, 766, 198, 5450, 1378...
2.334951
1,854
# Copyright 2021 Huawei Technologies Co., Ltd # # 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, 43208, 21852, 1766, 1539, 12052, 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.623408
1,256
import os import sys import py if not sys.platform.startswith('win'): py.test.skip("requires Windows") from pypy.module.posix import interp_nt as nt
[ 11748, 28686, 198, 11748, 25064, 198, 198, 11748, 12972, 198, 198, 361, 407, 25064, 13, 24254, 13, 9688, 2032, 342, 10786, 5404, 6, 2599, 198, 220, 220, 220, 12972, 13, 9288, 13, 48267, 7203, 47911, 3964, 4943, 198, 198, 6738, 279, 44...
2.724138
58
""" `tf.keras.layers.Layer` subclasses. """ from __future__ import absolute_import from __future__ import division from __future__ import print_function from __future__ import unicode_literals import functools import tensorflow as tf from forecaster.ops.diff import diff_1_pad from forecaster.ops.diff import diff_pad ...
[ 37811, 4600, 27110, 13, 6122, 292, 13, 75, 6962, 13, 49925, 63, 850, 37724, 13, 37227, 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, ...
3.40625
96
from ows_refactored.common.ows_legend_cfg import ( legend_mean_ndvi_ticks, legend_stddev_ndvi_ticks, ) # colour ramps------------------------------------- mean_cr = [ {"value": -0.0, "color": "#000000", "alpha": 0.0}, {"value": 0.0, "color": "#d73027"}, {"value": 0.1, "color": "#f46d43"}, {"val...
[ 6738, 12334, 82, 62, 5420, 529, 1850, 13, 11321, 13, 1666, 62, 1455, 437, 62, 37581, 1330, 357, 198, 220, 220, 220, 8177, 62, 32604, 62, 358, 8903, 62, 83, 3378, 11, 198, 220, 220, 220, 8177, 62, 301, 1860, 1990, 62, 358, 8903, ...
2.092922
10,568
from BaseHTTPServer import HTTPServer, BaseHTTPRequestHandler from SocketServer import ThreadingMixIn from SCTF import check_user, check_user_auth, FLAG import random import sys import os if __name__ == '__main__': if len(sys.argv) >= 3: addr, port = sys.argv[1], int(sys.argv[2]) else: addr...
[ 6738, 7308, 6535, 28820, 18497, 1330, 38288, 18497, 11, 7308, 40717, 18453, 25060, 198, 6738, 47068, 10697, 1330, 14122, 278, 35608, 818, 198, 6738, 311, 4177, 37, 1330, 2198, 62, 7220, 11, 2198, 62, 7220, 62, 18439, 11, 9977, 4760, 198...
2.445887
231
import pytest @pytest.mark.parametrize("given, expected", [ ("", "gluu"), ("my-ns", "my-ns"), ])
[ 11748, 12972, 9288, 628, 198, 31, 9078, 9288, 13, 4102, 13, 17143, 316, 380, 2736, 7203, 35569, 11, 2938, 1600, 685, 198, 220, 220, 220, 5855, 1600, 366, 70, 2290, 84, 12340, 198, 220, 220, 220, 5855, 1820, 12, 5907, 1600, 366, 1820...
2.183673
49
import argparse import os import shutil from subprocess import check_call from tempfile import TemporaryDirectory from PIL import Image from ..common_util.misc import makedirs from ..video_inpainting import create_padded_masked_video_dataset from ..video_inpainting.util import PILImagePadder def _unpad_copy_frames...
[ 11748, 1822, 29572, 198, 11748, 28686, 198, 11748, 4423, 346, 198, 6738, 850, 14681, 1330, 2198, 62, 13345, 198, 6738, 20218, 7753, 1330, 46042, 43055, 198, 198, 6738, 350, 4146, 1330, 7412, 198, 198, 6738, 11485, 11321, 62, 22602, 13, ...
2.560459
1,133
from pymongo import MongoClient client = MongoClient("mongodb://localhost:27017") for db_name in client.list_database_names(): print(db_name)
[ 6738, 279, 4948, 25162, 1330, 42591, 11792, 198, 198, 16366, 796, 42591, 11792, 7203, 31059, 375, 65, 1378, 36750, 25, 1983, 29326, 4943, 198, 198, 1640, 20613, 62, 3672, 287, 5456, 13, 4868, 62, 48806, 62, 14933, 33529, 198, 220, 220, ...
3.0625
48
from __future__ import absolute_import from pymunk._chipmunk_cffi_abi import ffi, lib, lib_path
[ 6738, 11593, 37443, 834, 1330, 4112, 62, 11748, 201, 198, 201, 198, 6738, 279, 4948, 2954, 13557, 35902, 76, 2954, 62, 66, 487, 72, 62, 17914, 1330, 277, 12463, 11, 9195, 11, 9195, 62, 6978, 220, 201, 198, 220, 220, 220, 220 ]
2.5
42
import argparse from westpa.cli.core.w_states import entry_point from unittest import mock from pytest import fixture
[ 11748, 1822, 29572, 198, 198, 6738, 7421, 8957, 13, 44506, 13, 7295, 13, 86, 62, 27219, 1330, 5726, 62, 4122, 198, 6738, 555, 715, 395, 1330, 15290, 198, 6738, 12972, 9288, 1330, 29220, 628 ]
3.529412
34