content
stringlengths
1
1.05M
input_ids
listlengths
1
883k
ratio_char_token
float64
1
22.9
token_count
int64
1
883k
# -*- coding: utf-8 -*- """ Profile: http://hl7.org/fhir/StructureDefinition/Claim Release: R4 Version: 4.0.1 Build ID: 9346c8cc45 Last updated: 2019-11-01T09:29:23.356+11:00 """ from pydantic.validators import bytes_validator # noqa: F401 from .. import fhirtypes # noqa: F401 from .. import claim def test_claim_...
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 37811, 198, 37046, 25, 2638, 1378, 18519, 22, 13, 2398, 14, 69, 71, 343, 14, 1273, 5620, 36621, 14, 44819, 198, 26362, 25, 371, 19, 198, 14815, 25, 604, 13, 15, 13, ...
2.707719
2,306
import argparse import os.path import sys sys.path.append( os.path.abspath(os.path.join(os.path.dirname(__file__), os.path.pardir))) import pymia.deeplearning.logging as log import tensorflow as tf import pc.configuration.config as cfg import pc.data.handler as hdlr import pc.data.split as split import pc.model....
[ 11748, 1822, 29572, 198, 11748, 28686, 13, 6978, 198, 11748, 25064, 198, 198, 17597, 13, 6978, 13, 33295, 7, 198, 220, 220, 220, 28686, 13, 6978, 13, 397, 2777, 776, 7, 418, 13, 6978, 13, 22179, 7, 418, 13, 6978, 13, 15908, 3672, ...
2.786164
318
from nipype.interfaces.utility import Function Topup_scan_params = Function(function=topup_scan_params, input_names=['pe_direction', 'te', 'epi_factor'], output_names=['fn']) Apply_scan_params = Function(function=apply_scan_params, ...
[ 6738, 299, 541, 2981, 13, 3849, 32186, 13, 315, 879, 1330, 15553, 628, 198, 198, 9126, 929, 62, 35836, 62, 37266, 796, 15553, 7, 8818, 28, 4852, 929, 62, 35836, 62, 37266, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220,...
1.760148
271
import os import pickle from deployConfig import workDir import sys env_fp = f"{workDir}/env.pickle" if not os.path.exists(env_fp): env = {} with open(env_fp, "wb") as fh: pickle.dump(env, fh) # add_to_env("LD_LIBRARY_PATH", "/usr/local/lib/eopenssl11/") # add_to_env("LD_LIBRARY_PATH", f"{p...
[ 11748, 28686, 198, 11748, 2298, 293, 198, 6738, 6061, 16934, 1330, 670, 35277, 198, 11748, 25064, 198, 24330, 62, 46428, 796, 277, 1, 90, 1818, 35277, 92, 14, 24330, 13, 27729, 293, 1, 628, 628, 198, 361, 407, 28686, 13, 6978, 13, 1...
2.146552
232
""" from: http://adventofcode.com/2017/day/6 --- Day 6: Memory Reallocation --- A debugger program here is having an issue: it is trying to repair a memory reallocation routine, but it keeps getting stuck in an infinite loop. In this area, there are sixteen memory banks; each memory bank can hold any number of blocks....
[ 37811, 198, 6738, 25, 2638, 1378, 324, 1151, 1659, 8189, 13, 785, 14, 5539, 14, 820, 14, 21, 198, 198, 6329, 3596, 718, 25, 14059, 797, 439, 5040, 11420, 198, 32, 49518, 1430, 994, 318, 1719, 281, 2071, 25, 340, 318, 2111, 284, 91...
3.895434
679
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """Unittests for the GDAl tools. This file is part of the REDRESS algorithm M. Lamare, M. Dumont, G. Picard (IGE, CEN). """ import pytest from geojson import Polygon, Feature, FeatureCollection, dump from redress.geospatial.gdal_ops import (build_poly_from_coords, ...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 18, 198, 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 37811, 3118, 715, 3558, 329, 262, 27044, 2348, 4899, 13, 198, 198, 1212, 2393, 318, 636, 286, 262, 23848, 49, 759...
2.07109
211
from output.models.ms_data.regex.letterlike_symbols_xsd.letterlike_symbols import Doc __all__ = [ "Doc", ]
[ 6738, 5072, 13, 27530, 13, 907, 62, 7890, 13, 260, 25636, 13, 9291, 2339, 62, 1837, 2022, 10220, 62, 87, 21282, 13, 9291, 2339, 62, 1837, 2022, 10220, 1330, 14432, 198, 198, 834, 439, 834, 796, 685, 198, 220, 220, 220, 366, 23579, ...
2.382979
47
"""test.py Python3 Test script that demonstrates the passing of an initialized python structure to C and retrieving the structure back. """ import testMod from ctypes import * TESTSTRUCT._fields_ = [ ("name", c_char_p), ("next", POINTER(TESTSTRUCT), #We can use a structure pointer for a linked list. ...
[ 37811, 9288, 13, 9078, 198, 37906, 18, 198, 14402, 4226, 326, 15687, 262, 6427, 286, 281, 198, 17532, 21015, 4645, 284, 327, 290, 50122, 198, 1169, 4645, 736, 13, 198, 37811, 198, 11748, 1332, 5841, 198, 6738, 269, 19199, 1330, 1635, ...
3.036232
414
from __future__ import print_function import os import csv import graphviz import numpy as np import plotly.graph_objs as go import plotly import plotly.plotly as py import matplotlib.pyplot as plt import matplotlib.pylab as pylab import copy import warnings import matplotlib as mpl from plotly.offline import download...
[ 6738, 11593, 37443, 834, 1330, 3601, 62, 8818, 198, 198, 11748, 28686, 198, 11748, 269, 21370, 198, 11748, 4823, 85, 528, 198, 11748, 299, 32152, 355, 45941, 198, 11748, 7110, 306, 13, 34960, 62, 672, 8457, 355, 467, 198, 11748, 7110, ...
1.911457
7,262
# -*- coding: utf-8 -*- """ --------------------------------------------- File Name: Desciption: Author: fanzhiwei date: 2019/9/5 9:58 --------------------------------------------- Change Activity: 2019/9/5 9:58 ----------------------------------------...
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 37811, 198, 3880, 32501, 198, 220, 220, 220, 9220, 6530, 25, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 198, 220, 220, 220, 2935, 979, 1159, 25, 220, 220, 220...
2.622283
368
from django.utils.text import slugify from django_extensions.db.fields import AutoSlugField from django.db import models from datetime import datetime # Create your models here.
[ 6738, 42625, 14208, 13, 26791, 13, 5239, 1330, 31065, 1958, 198, 6738, 42625, 14208, 62, 2302, 5736, 13, 9945, 13, 25747, 1330, 11160, 11122, 1018, 15878, 628, 198, 6738, 42625, 14208, 13, 9945, 1330, 4981, 198, 6738, 4818, 8079, 1330, ...
3.54902
51
from brl_gym.estimators.learnable_bf.learnable_bf import LearnableBF #from brl_gym.estimators.learnable_bf.bf_dataset import BayesFilterDataset
[ 6738, 865, 75, 62, 1360, 76, 13, 395, 320, 2024, 13, 35720, 540, 62, 19881, 13, 35720, 540, 62, 19881, 1330, 14365, 540, 29499, 198, 2, 6738, 865, 75, 62, 1360, 76, 13, 395, 320, 2024, 13, 35720, 540, 62, 19881, 13, 19881, 62, 1...
2.636364
55
import os import argparse import logging import numpy as np import torch as th from torch.utils.data import DataLoader from torchvision import transforms import ttools from ttools.modules.image_operators import crop_like import rendernet.dataset as dset import rendernet.modules.preprocessors as pre import rendernet....
[ 11748, 28686, 198, 11748, 1822, 29572, 198, 11748, 18931, 198, 198, 11748, 299, 32152, 355, 45941, 198, 11748, 28034, 355, 294, 198, 6738, 28034, 13, 26791, 13, 7890, 1330, 6060, 17401, 198, 6738, 28034, 10178, 1330, 31408, 198, 198, 1174...
3.314741
251
from django.db import models # Create your models here. from shortener.models import CondenseURL
[ 6738, 42625, 14208, 13, 9945, 1330, 4981, 198, 198, 2, 13610, 534, 4981, 994, 13, 198, 6738, 1790, 877, 13, 27530, 1330, 9724, 1072, 21886 ]
3.88
25
if __name__ == "__main__": from pathlib import Path clean_pycache(Path(__file__).parents[2])
[ 198, 198, 361, 11593, 3672, 834, 6624, 366, 834, 12417, 834, 1298, 198, 220, 220, 220, 422, 3108, 8019, 1330, 10644, 628, 220, 220, 220, 3424, 62, 9078, 23870, 7, 15235, 7, 834, 7753, 834, 737, 23743, 58, 17, 12962, 198 ]
2.536585
41
from dataclasses import dataclass from typing import List from orbsim_language.orbsim_ast.expression_node import ExpressionNode
[ 6738, 4818, 330, 28958, 1330, 4818, 330, 31172, 198, 6738, 19720, 1330, 7343, 198, 6738, 37403, 320, 62, 16129, 13, 273, 1443, 320, 62, 459, 13, 38011, 62, 17440, 1330, 41986, 19667 ]
3.96875
32
import sys import numpy as np import pandas as pd if __name__ == '__main__': argv = sys.argv if len(argv) < 7: print('USAGE: %s <in1_name> <in1_suffix> <in2_name> <in2_suffix> <out_name> <add_keys>'%argv[0]) sys.exit(-1) in1_name = argv[1] in1_suffix = argv[2] in2_name = argv[3] ...
[ 11748, 25064, 198, 198, 11748, 299, 32152, 355, 45941, 198, 11748, 19798, 292, 355, 279, 67, 198, 198, 361, 11593, 3672, 834, 6624, 705, 834, 12417, 834, 10354, 198, 220, 220, 220, 1822, 85, 796, 25064, 13, 853, 85, 198, 220, 220, 2...
1.811765
340
from sys import stdout
[ 6738, 25064, 1330, 14367, 448, 628 ]
4
6
import argparse import csv import os parser = argparse.ArgumentParser() parser.add_argument('-i', '--input', help="Input path of the missing urls CSV file") parser.add_argument('-o', '--output', help="Output directory where the new CSV files will be stored") parser.add_argument('-q', '--quiet', action='store_true', he...
[ 11748, 1822, 29572, 198, 11748, 269, 21370, 198, 11748, 28686, 198, 198, 48610, 796, 1822, 29572, 13, 28100, 1713, 46677, 3419, 198, 48610, 13, 2860, 62, 49140, 10786, 12, 72, 3256, 705, 438, 15414, 3256, 1037, 2625, 20560, 3108, 286, 2...
2.486523
742
# -*- coding: utf-8 -*- """ Created on Tue Nov 21 11:20:06 2017 @author: NPB """ import cv2 import pickle
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 37811, 198, 41972, 319, 30030, 5267, 2310, 1367, 25, 1238, 25, 3312, 2177, 198, 198, 31, 9800, 25, 28498, 33, 198, 37811, 198, 198, 11748, 269, 85, 17, 198, 11748, 229...
2.291667
48
# @Created Date: 2019-12-08 06:46:49 pm # @Filename: api.py # @Email: 1730416009@stu.suda.edu.cn # @Author: ZeFeng Zhu # @Last Modified: 2020-02-16 10:54:32 am # @Copyright (c) 2020 MinghuiGroup, Soochow University from typing import Iterable, Iterator, Optional, Union, Generator, Dict, List from time import perf_coun...
[ 2, 2488, 41972, 7536, 25, 13130, 12, 1065, 12, 2919, 9130, 25, 3510, 25, 2920, 9114, 198, 2, 2488, 35063, 25, 40391, 13, 9078, 198, 2, 2488, 15333, 25, 220, 1596, 21288, 1433, 28694, 31, 301, 84, 13, 82, 15339, 13, 15532, 13, 3152...
1.983362
8,595
''' Function and classes representing statistical tools. ''' __author__ = ['Miguel Ramos Pernas'] __email__ = ['miguel.ramos.pernas@cern.ch'] from hep_spt.stats.core import chi2_one_dof, one_sigma from hep_spt.core import decorate, taking_ndarray from hep_spt import PACKAGE_PATH import numpy as np import os from scip...
[ 7061, 6, 198, 22203, 290, 6097, 10200, 13905, 4899, 13, 198, 7061, 6, 198, 198, 834, 9800, 834, 796, 37250, 44, 328, 2731, 36692, 350, 1142, 292, 20520, 198, 834, 12888, 834, 796, 37250, 76, 328, 2731, 13, 859, 418, 13, 525, 24716, ...
2.439459
2,808
import tornado import logging import httplib try: import simplejson as json except ImportError: import json from octopus.core.framework.wsappframework import WSAppFramework, MainLoopApplication from octopus.core.framework.webservice import MappingSet from octopus.core.communication.http import Http400 from oc...
[ 11748, 33718, 198, 11748, 18931, 198, 11748, 1841, 489, 571, 198, 28311, 25, 198, 220, 220, 220, 1330, 2829, 17752, 355, 33918, 198, 16341, 17267, 12331, 25, 198, 220, 220, 220, 1330, 33918, 198, 198, 6738, 19318, 25790, 13, 7295, 13, ...
3.363636
165
from provstore.document import Document from provstore.bundle_manager import BundleManager from provstore.bundle import Bundle
[ 6738, 899, 8095, 13, 22897, 1330, 16854, 198, 6738, 899, 8095, 13, 65, 31249, 62, 37153, 1330, 25282, 13511, 198, 6738, 899, 8095, 13, 65, 31249, 1330, 25282, 198 ]
4.37931
29
from __future__ import annotations import typing as tp from loguru import logger
[ 6738, 11593, 37443, 834, 1330, 37647, 198, 11748, 19720, 355, 256, 79, 198, 198, 6738, 2604, 14717, 1330, 49706, 628 ]
4.15
20
# Login to https://developer.spotify.com/dashboard/, create an application and fill these out before use! client_id = "" client_secret = ""
[ 2, 23093, 284, 3740, 1378, 16244, 263, 13, 20485, 1958, 13, 785, 14, 42460, 3526, 47454, 2251, 281, 3586, 290, 6070, 777, 503, 878, 779, 0, 198, 16366, 62, 312, 796, 13538, 198, 16366, 62, 21078, 796, 13538 ]
3.657895
38
import cv2 import numpy as np import matplotlib.image as mpimg from pathlib import Path from model import * CAMERA_STEERING_CORRECTION = 0.2 def image_path(sample, camera="center"): """ Transform the sample path to the repository structure. Args: sample: a sample (row) of the data d...
[ 11748, 269, 85, 17, 201, 198, 11748, 299, 32152, 355, 45941, 201, 198, 11748, 2603, 29487, 8019, 13, 9060, 355, 29034, 9600, 201, 198, 201, 198, 6738, 3108, 8019, 1330, 10644, 201, 198, 201, 198, 6738, 2746, 1330, 1635, 201, 198, 201,...
2.461996
3,197
import json import logging from typing import List import os import sys import numpy as np import torch from torch.utils.data import DataLoader from tqdm import tqdm from transformers import AutoTokenizer, BertTokenizer from vilbert.vilbert import BertConfig from utils.cli import get_parser from utils.dataset.commo...
[ 11748, 33918, 198, 11748, 18931, 198, 6738, 19720, 1330, 7343, 198, 11748, 28686, 198, 11748, 25064, 198, 198, 11748, 299, 32152, 355, 45941, 198, 11748, 28034, 198, 6738, 28034, 13, 26791, 13, 7890, 1330, 6060, 17401, 198, 6738, 256, 80,...
2.821192
302
from modeledcommandparameter import * from pseudoregion import *
[ 6738, 29563, 21812, 17143, 2357, 1330, 1635, 198, 6738, 25038, 382, 70, 295, 1330, 1635, 198 ]
4.0625
16
import numpy as np import torch from torch.nn import functional as F from torch.utils.data import Dataset, DataLoader from torchvision import datasets, transforms from torchvision.utils import save_image from utils.fast_tensor_dataloader import FastTensorDataLoader
[ 11748, 299, 32152, 355, 45941, 198, 11748, 28034, 198, 6738, 28034, 13, 20471, 1330, 10345, 355, 376, 198, 6738, 28034, 13, 26791, 13, 7890, 1330, 16092, 292, 316, 11, 6060, 17401, 198, 6738, 28034, 10178, 1330, 40522, 11, 31408, 198, 6...
3.702703
74
from flask import ( Blueprint,session, flash, g, redirect, render_template, request, url_for ) from werkzeug.exceptions import abort from anonymail.auth import login_required from anonymail.db import get_db import datetime now = datetime.datetime.now() current_year = now.year bp = Blueprint('posts', __name__)
[ 6738, 42903, 1330, 357, 198, 220, 220, 220, 39932, 11, 29891, 11, 7644, 11, 308, 11, 18941, 11, 8543, 62, 28243, 11, 2581, 11, 19016, 62, 1640, 198, 8, 198, 6738, 266, 9587, 2736, 1018, 13, 1069, 11755, 1330, 15614, 198, 198, 6738, ...
3.22449
98
# from python-decouple import config from flask import Flask, request, jsonify from .obj_detector import object_detection # from flask_sqlalchemy import SQLAlchemy from dotenv import load_dotenv load_dotenv()
[ 2, 422, 21015, 12, 12501, 43846, 1330, 4566, 201, 198, 6738, 42903, 1330, 46947, 11, 2581, 11, 33918, 1958, 201, 198, 6738, 764, 26801, 62, 15255, 9250, 1330, 2134, 62, 15255, 3213, 201, 198, 2, 422, 42903, 62, 25410, 282, 26599, 1330...
3.220588
68
from .subroutine import subroutine from parameters.string_parameter import string_parameter as String from parameters.numeric_parameter import numeric_parameter as Numeric from parameters.array_parameter import array_parameter as Array from ast import literal_eval
[ 6738, 764, 7266, 81, 28399, 1330, 850, 81, 28399, 198, 6738, 10007, 13, 8841, 62, 17143, 2357, 1330, 4731, 62, 17143, 2357, 355, 10903, 198, 6738, 10007, 13, 77, 39223, 62, 17143, 2357, 1330, 35575, 62, 17143, 2357, 355, 399, 39223, 1...
4.092308
65
import requests import json from config import config from logbook import Logger, StreamHandler import sys StreamHandler(sys.stdout).push_application() log = Logger('auth')
[ 11748, 7007, 198, 11748, 33918, 198, 6738, 4566, 1330, 4566, 198, 6738, 2604, 2070, 1330, 5972, 1362, 11, 13860, 25060, 198, 11748, 25064, 198, 198, 12124, 25060, 7, 17597, 13, 19282, 448, 737, 14689, 62, 31438, 3419, 198, 6404, 796, 59...
3.804348
46
# Copyright (c) 2019 Bita Hasheminezhad # # Distributed under the Boost Software License, Version 1.0. (See accompanying # file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) # #942: `fold_left`, `fold_right` and `fmap` do not work with a lazy function import numpy as np from phylanx import Phyl...
[ 2, 220, 15069, 357, 66, 8, 13130, 4722, 64, 7875, 258, 3810, 89, 18108, 198, 2, 198, 2, 220, 4307, 6169, 739, 262, 19835, 10442, 13789, 11, 10628, 352, 13, 15, 13, 357, 6214, 19249, 198, 2, 220, 2393, 38559, 24290, 62, 16, 62, 1...
2.607143
224
# Die Fibonacci-Folge ist die unendliche Folge natrlicher Zahlen, die (ursprnglich) mit zweimal der Zahl 1 beginnt # oder (hufig, in moderner Schreibweise) zustzlich mit einer fhrenden Zahl 0 versehen ist. # Im Anschluss ergibt jeweils die Summe zweier aufeinanderfolgender Zahlen die unmittelbar danach folgende Zahl: #...
[ 2, 6733, 41566, 261, 44456, 12, 37, 349, 469, 318, 83, 4656, 555, 437, 677, 258, 30938, 469, 34664, 81, 677, 372, 49063, 11925, 11, 4656, 357, 1834, 1050, 782, 33467, 8, 10255, 1976, 732, 4402, 4587, 1168, 15668, 352, 2221, 429, 198...
2.39196
199
import numpy as np import dnnlib.tflib as tflib from training import dataset tflib.init_tf()
[ 11748, 299, 32152, 355, 45941, 198, 11748, 288, 20471, 8019, 13, 83, 2704, 571, 355, 256, 2704, 571, 198, 6738, 3047, 1330, 27039, 628, 198, 83, 2704, 571, 13, 15003, 62, 27110, 3419, 628 ]
2.823529
34
from collections import namedtuple import pytest from rest_framework.authtoken.models import Token from tests.conftest import twilio_vcr from apostello import models StatusCode = namedtuple("StatusCode", "anon, user, staff")
[ 6738, 17268, 1330, 3706, 83, 29291, 198, 198, 11748, 12972, 9288, 198, 6738, 1334, 62, 30604, 13, 18439, 30001, 13, 27530, 1330, 29130, 198, 6738, 5254, 13, 1102, 701, 395, 1330, 665, 346, 952, 62, 85, 6098, 198, 198, 6738, 18584, 111...
3.538462
65
""" A *really* simple guestbook flask app. Data is stored in a SQLite database that looks something like the following: +------------+------------------+------------+ | Name | Email | signed_on | +============+==================+============+ | John Doe | jdoe@example.com | 2012-05-28 | +------...
[ 37811, 198, 32, 1635, 27485, 9, 2829, 8319, 2070, 42903, 598, 13, 6060, 318, 8574, 287, 257, 16363, 578, 6831, 326, 198, 5460, 82, 1223, 588, 262, 1708, 25, 198, 198, 10, 10541, 10, 1783, 44785, 10541, 10, 220, 198, 91, 6530, 220, ...
2.845934
701
import sqlite3 import base64 import requests import json import hashlib import logging from lingvodoc.queue.client import QueueClient #def change_dict_status(session, converting_status_url, status, task_id, progress): # def change_dict_status(task_id, progress): # #session.put(converting_status_url, json={'...
[ 11748, 44161, 578, 18, 198, 11748, 2779, 2414, 198, 11748, 7007, 198, 11748, 33918, 198, 11748, 12234, 8019, 198, 11748, 18931, 198, 198, 6738, 18459, 85, 375, 420, 13, 36560, 13, 16366, 1330, 4670, 518, 11792, 628, 628, 628, 198, 198, ...
2.35141
461
""" Tests the code. """ from torch.utils.data import DataLoader from models import MODELS from pipeline import argument_parser from pipeline.datasets import DATASETS, get_dataset from run import main def test_datasets(): """ Tests all the datasets defined in pipeline.datasets.DATASETS. """ for ds_name in DA...
[ 37811, 30307, 262, 2438, 13, 37227, 198, 198, 6738, 28034, 13, 26791, 13, 7890, 1330, 6060, 17401, 198, 198, 6738, 4981, 1330, 19164, 37142, 198, 6738, 11523, 1330, 4578, 62, 48610, 198, 6738, 11523, 13, 19608, 292, 1039, 1330, 360, 140...
2.395672
647
# -*- coding: utf-8 -*- import numpy as np import random import os import sys import torch from src.agent import ( EpsilonGreedyAgent, MaxAgent, RandomAgent, RandomCreateBVAgent, ProbabilityAgent, QAgent, QAndUtilityAgent, MultiEpsilonGreedyAgent, MultiMaxAgent, MultiProbabilit...
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 198, 11748, 299, 32152, 355, 45941, 198, 11748, 4738, 198, 11748, 28686, 198, 11748, 25064, 198, 11748, 28034, 198, 198, 6738, 12351, 13, 25781, 1330, 357, 198, 220, 220, ...
2.470588
153
def func(x, y, z): """ :param x: <caret> :param y: :param z: :return: """
[ 4299, 25439, 7, 87, 11, 331, 11, 1976, 2599, 198, 220, 220, 220, 37227, 220, 198, 220, 220, 220, 1058, 17143, 2124, 25, 1279, 6651, 83, 29, 198, 220, 220, 220, 1058, 17143, 331, 25, 220, 198, 220, 220, 220, 1058, 17143, 1976, 25, ...
1.741379
58
from hashlib import sha3_256 import magic from enums import Dep, MangoType MIME_MTYPE = { 'text/plain': MangoType.text, 'audio/flac': MangoType.audio_flac, 'audio/wav': MangoType.audio_wav, 'image/png': MangoType.picture_png, 'image/jpeg': MangoType.picture_jpg, 'video/x-matroska': MangoType....
[ 6738, 12234, 8019, 1330, 427, 64, 18, 62, 11645, 198, 198, 11748, 5536, 198, 198, 6738, 551, 5700, 1330, 2129, 11, 337, 14208, 6030, 198, 198, 44, 12789, 62, 44, 25216, 796, 1391, 198, 220, 220, 220, 705, 5239, 14, 25638, 10354, 337...
2.098446
386
#!/usr/bin/env python3 # MIT License # # Copyright (c) 2020 FABRIC Testbed # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights # to ...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 18, 198, 2, 17168, 13789, 198, 2, 198, 2, 15069, 357, 66, 8, 12131, 376, 6242, 41132, 6208, 3077, 198, 2, 198, 2, 2448, 3411, 318, 29376, 7520, 11, 1479, 286, 3877, 11, 284, 597, 1048, ...
2.955497
764
# Generated by Django 3.1.2 on 2022-02-27 17:59 from django.conf import settings from django.db import migrations, models import django.db.models.deletion import versatileimagefield.fields
[ 2, 2980, 515, 416, 37770, 513, 13, 16, 13, 17, 319, 33160, 12, 2999, 12, 1983, 1596, 25, 3270, 198, 198, 6738, 42625, 14208, 13, 10414, 1330, 6460, 198, 6738, 42625, 14208, 13, 9945, 1330, 15720, 602, 11, 4981, 198, 11748, 42625, 14...
3.237288
59
#!/usr/bin/python # -*- coding: utf-8 -*- # python version 2.7 # Cemal Melih Tanis (C) ############################################################################### import os import shutil import datetime from pytz import timezone from uuid import uuid4 from definitions import * import fetchers import cal...
[ 2, 48443, 14629, 14, 8800, 14, 29412, 201, 198, 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 201, 198, 2, 21015, 2196, 362, 13, 22, 201, 198, 2, 327, 368, 282, 5616, 4449, 11818, 271, 357, 34, 8, 201, 198, 29113, ...
2.761513
608
import sys import subprocess if __name__ == "__main__": main()
[ 11748, 25064, 198, 11748, 850, 14681, 198, 198, 361, 11593, 3672, 834, 6624, 366, 834, 12417, 834, 1298, 198, 220, 220, 220, 1388, 3419, 198 ]
2.72
25
################################################# #****************LINEAR MODELS******************# ################################################# CLASSIF_LOGISTIC_REGRESSION = {"C":{"range": (1., 100.), "type": 1}, "tol":{"range": (0.0001,0.9999), "type": 1}} ...
[ 29113, 14468, 2, 198, 2, 8412, 24027, 1503, 19164, 37142, 8412, 1174, 2, 198, 29113, 14468, 2, 198, 198, 31631, 5064, 62, 25294, 8808, 2149, 62, 2200, 10761, 47621, 796, 19779, 34, 8351, 9521, 1298, 357, 16, 1539, 1802, 12179, 366, 49...
2.302966
1,416
# -*- coding: utf-8 -*- from datetime import timedelta import logging from delorean import Delorean import tornado.web from gryphon.dashboards.handlers.admin_base import AdminBaseHandler from gryphon.lib.exchange import exchange_factory from gryphon.lib.models.order import Order from gryphon.lib.models.exchange impor...
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 6738, 4818, 8079, 1330, 28805, 12514, 198, 11748, 18931, 198, 198, 6738, 1619, 29456, 1330, 4216, 29456, 198, 11748, 33718, 13, 12384, 198, 198, 6738, 308, 563, 746, 261, ...
3.092391
184
import yfinance as yf import numpy as np import pandas as pd if __name__ == "__main__": stock = StockSetup('SPY', 3) print(stock.data.tail()) print(stock.data.isna().sum())
[ 11748, 331, 69, 14149, 355, 331, 69, 198, 11748, 299, 32152, 355, 45941, 198, 11748, 19798, 292, 355, 279, 67, 628, 198, 198, 361, 11593, 3672, 834, 6624, 366, 834, 12417, 834, 1298, 198, 220, 220, 220, 4283, 796, 10500, 40786, 10786,...
2.527027
74
from collections import OrderedDict from .base import ApiBase import logging logger = logging.getLogger(__name__)
[ 6738, 17268, 1330, 14230, 1068, 35, 713, 198, 198, 6738, 764, 8692, 1330, 5949, 72, 14881, 198, 11748, 18931, 198, 198, 6404, 1362, 796, 18931, 13, 1136, 11187, 1362, 7, 834, 3672, 834, 8, 628 ]
3.342857
35
import graphene from schema.queries import Query from schema.mutations import Mutations schema = graphene.Schema(query=Query, mutation=Mutations)
[ 11748, 42463, 198, 6738, 32815, 13, 421, 10640, 1330, 43301, 198, 6738, 32815, 13, 21973, 602, 1330, 13859, 602, 198, 198, 15952, 2611, 796, 42463, 13, 27054, 2611, 7, 22766, 28, 20746, 11, 15148, 28, 44, 32855, 8, 198 ]
3.769231
39
""" This module contains a number of other commands that can be run via the cli. All classes in this submodule which inherit the baseclass `airbox.commands.base.Command` are automatically included in the possible commands to execute via the commandline. The commands can be called using their `name` property. """ from...
[ 37811, 198, 1212, 8265, 4909, 257, 1271, 286, 584, 9729, 326, 460, 307, 1057, 2884, 262, 537, 72, 13, 198, 198, 3237, 6097, 287, 428, 850, 21412, 543, 16955, 262, 2779, 4871, 4600, 958, 3524, 13, 9503, 1746, 13, 8692, 13, 21575, 63,...
3.109091
550
#!/usr/bin/python # Copyright 2015 Google Inc. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by appli...
[ 2, 48443, 14629, 14, 8800, 14, 29412, 198, 2, 15069, 1853, 3012, 3457, 13, 1439, 6923, 33876, 13, 198, 2, 198, 2, 49962, 739, 262, 24843, 13789, 11, 10628, 362, 13, 15, 357, 1169, 366, 34156, 15341, 198, 2, 345, 743, 407, 779, 428...
3.58209
201
import re from ava.common.check import _ValueCheck, _TimingCheck from ava.common.exception import InvalidFormatException # metadata name = __name__ description = "checks for shell injection"
[ 11748, 302, 198, 6738, 1196, 64, 13, 11321, 13, 9122, 1330, 4808, 11395, 9787, 11, 4808, 14967, 278, 9787, 198, 6738, 1196, 64, 13, 11321, 13, 1069, 4516, 1330, 17665, 26227, 16922, 628, 198, 2, 20150, 198, 3672, 796, 11593, 3672, 834...
3.679245
53
import os import xml.etree.ElementTree as ET import numpy as np import scipy.sparse import scipy.io as sio import cPickle import subprocess import uuid if __name__ == '__main__': #Save_Name = './dataset/8.train_val' ImageSets = ['../LOC/LOC_Split/trecvid_val_8.txt', '../LOC/LOC_Split/trecvid_train_8.txt'] ...
[ 11748, 28686, 198, 11748, 35555, 13, 316, 631, 13, 20180, 27660, 355, 12152, 198, 11748, 299, 32152, 355, 45941, 198, 11748, 629, 541, 88, 13, 82, 29572, 198, 11748, 629, 541, 88, 13, 952, 355, 264, 952, 198, 11748, 269, 31686, 293, ...
2.013104
1,221
import argparse import logging import os import sys import numpy as np from tqdm import tqdm import time import torch import torch.nn as nn from torch import optim from torch.utils.tensorboard import SummaryWriter from torch.utils.data import DataLoader from models.unet import UNet from models.nested_unet import Nest...
[ 11748, 1822, 29572, 198, 11748, 18931, 198, 11748, 28686, 198, 11748, 25064, 198, 11748, 299, 32152, 355, 45941, 198, 6738, 256, 80, 36020, 1330, 256, 80, 36020, 198, 11748, 640, 198, 198, 11748, 28034, 198, 11748, 28034, 13, 20471, 355, ...
2.058007
1,224
from booking.constants import myConstant
[ 6738, 25452, 13, 9979, 1187, 1330, 616, 3103, 18797, 198 ]
4.1
10
import urllib import xml.etree.ElementTree as ET address = raw_input('Enter location: ') url = address print 'Retrieving', url uh = urllib.urlopen(url) data = uh.read() print 'Retrieved',len(data),'characters' tree = ET.fromstring(data) sumcount=count=0 counts = tree.findall('.//count') for i in counts: co...
[ 11748, 2956, 297, 571, 198, 11748, 35555, 13, 316, 631, 13, 20180, 27660, 355, 12152, 628, 628, 198, 21975, 796, 8246, 62, 15414, 10786, 17469, 4067, 25, 705, 8, 628, 198, 6371, 796, 2209, 198, 4798, 705, 9781, 37418, 3256, 19016, 198...
2.584906
159
from flask import Flask from flask.ext.tweepy import Tweepy app = Flask(__name__) app.config.setdefault('TWEEPY_CONSUMER_KEY', 'sve32G2LtUhvgyj64J0aaEPNk') app.config.setdefault('TWEEPY_CONSUMER_SECRET', '0z4NmfjET4BrLiOGsspTkVKxzDK1Qv6Yb2oiHpZC9Vi0T9cY2X') app.config.setdefault('TWEEPY_ACCESS_TOKEN_KEY', '1425531373-...
[ 6738, 42903, 1330, 46947, 198, 6738, 42903, 13, 2302, 13, 83, 732, 538, 88, 1330, 24205, 538, 88, 198, 198, 1324, 796, 46947, 7, 834, 3672, 834, 8, 198, 1324, 13, 11250, 13, 2617, 12286, 10786, 34551, 35238, 56, 62, 10943, 50, 5883,...
1.944
250
from __future__ import absolute_import from .__main__ import main from .sftp import * from .sync import * __version__ = '0.6'
[ 6738, 11593, 37443, 834, 1330, 4112, 62, 11748, 198, 198, 6738, 764, 834, 12417, 834, 1330, 1388, 198, 6738, 764, 82, 701, 79, 1330, 1635, 198, 6738, 764, 27261, 1330, 1635, 198, 198, 834, 9641, 834, 796, 705, 15, 13, 21, 6, 198 ]
2.976744
43
"""Simple predictor using random forest """ import pandas as pd import numpy as np import math from sklearn.ensemble import RandomForestRegressor from sklearn.ensemble import RandomForestClassifier from sklearn import preprocessing from sklearn.metrics import mean_absolute_error from sklearn.metrics import f1_score fr...
[ 37811, 26437, 41568, 1262, 4738, 8222, 198, 37811, 198, 198, 11748, 19798, 292, 355, 279, 67, 198, 11748, 299, 32152, 355, 45941, 198, 11748, 10688, 198, 6738, 1341, 35720, 13, 1072, 11306, 1330, 14534, 34605, 8081, 44292, 198, 6738, 1341...
3.721893
169
def showSpeed(func, r, *args): '''Usage: showSpeed(function, runs) You can also pass arguments into <function> like so: showSpeed(function, runs, <other>, <args>, <here> ...) showSpeed() prints the average execution time of <function> over <runs> runs ''' import os, sys, gc from time import...
[ 4299, 905, 22785, 7, 20786, 11, 374, 11, 1635, 22046, 2599, 198, 220, 220, 220, 705, 7061, 28350, 25, 905, 22785, 7, 8818, 11, 4539, 8, 198, 220, 220, 220, 921, 460, 635, 1208, 7159, 656, 1279, 8818, 29, 588, 523, 25, 198, 220, ...
2.431965
463
#!/usr/bin/env python u""" polygonize.py Yara Mohajerani (Last update 09/2020) Read output predictions and convert to shapefile lines """ import os import sys import rasterio import numpy as np import getopt import shapefile from skimage.measure import find_contours from shapely.geometry import Polygon,LineString,Poin...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 198, 84, 37811, 198, 35428, 14520, 1096, 13, 9078, 198, 56, 3301, 9719, 1228, 263, 3216, 357, 5956, 4296, 7769, 14, 42334, 8, 198, 198, 5569, 5072, 16277, 290, 10385, 284, 5485, 7753, 3951,...
3.174603
126
import numpy as np import pytest from autofit.graphical import ( EPMeanField, LaplaceOptimiser, EPOptimiser, Factor, ) from autofit.messages import FixedMessage, NormalMessage np.random.seed(1) prior_std = 10. error_std = 1. a = np.array([[-1.3], [0.7]]) b = np.array([-0.5]) n_obs = 100 n_features,...
[ 11748, 299, 32152, 355, 45941, 198, 11748, 12972, 9288, 198, 198, 6738, 1960, 1659, 270, 13, 34960, 605, 1330, 357, 198, 220, 220, 220, 14724, 5308, 272, 15878, 11, 198, 220, 220, 220, 4689, 5372, 27871, 320, 5847, 11, 198, 220, 220, ...
2.007181
557
import math from torch import nn import torch import torch.nn.functional as F import linear_cpu as linear
[ 11748, 10688, 198, 6738, 28034, 1330, 299, 77, 198, 11748, 28034, 198, 11748, 28034, 13, 20471, 13, 45124, 355, 376, 198, 11748, 14174, 62, 36166, 355, 14174, 628, 198 ]
3.724138
29
""" Files API """ import boto3 import os import io from datetime import datetime, timedelta import json import time from s3_helpers import write_s3_json, read_s3_json, delete_s3_key from api_helpers import json_serial from search_files import crawl_available_files, update_pdf_fields from dynamo_helpers import add_file_...
[ 37811, 13283, 7824, 37227, 198, 11748, 275, 2069, 18, 198, 11748, 28686, 198, 11748, 33245, 198, 6738, 4818, 8079, 1330, 4818, 8079, 11, 28805, 12514, 198, 11748, 33918, 198, 11748, 640, 198, 6738, 264, 18, 62, 16794, 364, 1330, 3551, 6...
3.09009
222
# coding: utf-8 """ """ import flask import flask_login import json from flask_babel import _ from . import frontend from .. import logic from ..logic.object_permissions import Permissions from ..logic.security_tokens import verify_token from ..logic.languages import get_languages, get_language, get_language_by_lang...
[ 2, 19617, 25, 3384, 69, 12, 23, 198, 37811, 198, 198, 37811, 198, 198, 11748, 42903, 198, 11748, 42903, 62, 38235, 198, 11748, 33918, 198, 6738, 42903, 62, 65, 9608, 1330, 4808, 198, 198, 6738, 764, 1330, 2166, 437, 198, 6738, 11485, ...
3.621495
214
#!/usr/bin/env python3 import codecs import os import re from setuptools import setup with open('README.md', 'r') as f: readme = f.read() here = os.path.abspath(os.path.dirname(__file__)) _title = 'caaalle' _description = 'caaalle' _author = 'Carl Larsson' _author_email = 'example@gmail.com' _license = 'Apache ...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 18, 198, 198, 11748, 40481, 82, 198, 11748, 28686, 198, 11748, 302, 198, 6738, 900, 37623, 10141, 1330, 9058, 198, 198, 4480, 1280, 10786, 15675, 11682, 13, 9132, 3256, 705, 81, 11537, 355, ...
2.457275
433
#!/usr/bin/env python # -*- coding: utf-8 -*- # # ----------------------------------------------------------------------------- # Copyright (c) 2016 The Regents of the University of California # # This file is part of kevlar (http://github.com/dib-lab/kevlar) and is # licensed under the MIT license: see LICENSE. # ----...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 198, 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 2, 198, 2, 16529, 32501, 198, 2, 15069, 357, 66, 8, 1584, 383, 3310, 658, 286, 262, 2059, 286, 3442, 198, 2, 198, ...
2.261331
1,037
get_magic_triangle(5)
[ 201, 198, 201, 198, 1136, 62, 32707, 62, 28461, 9248, 7, 20, 8, 201, 198 ]
1.8
15
# -*- coding: utf-8 -*- import os import telebot import time import random import threading from emoji import emojize from telebot import types from pymongo import MongoClient import traceback token = os.environ['TELEGRAM_TOKEN'] bot = telebot.TeleBot(token) #client=MongoClient(os.environ['database']) #db=client. #u...
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 11748, 28686, 198, 11748, 5735, 13645, 198, 11748, 640, 198, 11748, 4738, 198, 11748, 4704, 278, 198, 6738, 44805, 1330, 795, 13210, 1096, 198, 6738, 5735, 13645, 1330, 38...
2.383784
185
from .api import MojangApi from .dispatcher import Dispatch from .exceptions import ( ApiException, ResourceNotFound, InternalServerException, UserNotFound, ) __version__ = "0.0.1a" __license__ = "MIT" __author__ = "capslock321"
[ 6738, 764, 15042, 1330, 40120, 648, 32, 14415, 201, 198, 6738, 764, 6381, 8071, 2044, 1330, 35934, 201, 198, 6738, 764, 1069, 11755, 1330, 357, 201, 198, 220, 220, 220, 5949, 72, 16922, 11, 201, 198, 220, 220, 220, 20857, 3673, 21077,...
2.471698
106
from loguru import logger from channels.db import database_sync_to_async from schema.base import query from .models import Player from .schemata import PlayerConnection
[ 6738, 2604, 14717, 1330, 49706, 198, 198, 6738, 9619, 13, 9945, 1330, 6831, 62, 27261, 62, 1462, 62, 292, 13361, 198, 198, 6738, 32815, 13, 8692, 1330, 12405, 198, 198, 6738, 764, 27530, 1330, 7853, 198, 6738, 764, 1416, 4411, 1045, 1...
3.844444
45
import asyncio import logging import random import time from abc import ABC from typing import Literal, Optional import aiohttp import discord from redbot.core import Config, bank, checks, commands from redbot.core.utils.chat_formatting import box from redbot.core.utils.menus import DEFAULT_CONTROLS, menu from tabulat...
[ 11748, 30351, 952, 198, 11748, 18931, 198, 11748, 4738, 198, 11748, 640, 198, 6738, 450, 66, 1330, 9738, 198, 6738, 19720, 1330, 25659, 1691, 11, 32233, 198, 198, 11748, 257, 952, 4023, 198, 11748, 36446, 198, 6738, 2266, 13645, 13, 729...
3.270833
192
""" Deep Learning """ import pandas as pd from keras.models import Sequential from keras.layers import Dense from sklearn.model_selection import train_test_split from sklearn.metrics import confusion_matrix from sklearn.preprocessing import LabelEncoder, OneHotEncoder from sklearn.preprocessing import StandardScaler f...
[ 37811, 198, 29744, 18252, 198, 37811, 198, 198, 11748, 19798, 292, 355, 279, 67, 198, 6738, 41927, 292, 13, 27530, 1330, 24604, 1843, 198, 6738, 41927, 292, 13, 75, 6962, 1330, 360, 1072, 198, 6738, 1341, 35720, 13, 19849, 62, 49283, ...
2.742188
768
import re # import all settings-modules here, so we can only import this module to get them all from python_settings.settings_activatable import * from python_settings.settings_child_placeholder import * from python_settings.settings_choice import * from python_settings.settings_comment import * from python_settings.s...
[ 11748, 302, 198, 198, 2, 1330, 477, 6460, 12, 18170, 994, 11, 523, 356, 460, 691, 1330, 428, 8265, 284, 651, 606, 477, 198, 6738, 21015, 62, 33692, 13, 33692, 62, 15791, 21156, 1330, 1635, 198, 6738, 21015, 62, 33692, 13, 33692, 62,...
4.123457
162
# -*- coding: utf-8 -*- import timeit from functools import wraps from titan.manages.global_manager import GlobalManager
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 11748, 640, 270, 198, 6738, 1257, 310, 10141, 1330, 27521, 198, 6738, 48047, 13, 805, 1095, 13, 20541, 62, 37153, 1330, 8060, 13511, 628 ]
3.210526
38
# Copyright (c) 2014 Eventbrite, Inc. All rights reserved. # See "LICENSE" file for license. import re open_r_str = r'\<\?cs\s*([a-zA-Z]+)([:]|\s)' close_r_str = r'\<\?cs\s*/([a-zA-Z]+)\s*\?\>' open_r = re.compile(open_r_str) close_r = re.compile(close_r_str)
[ 2, 15069, 357, 66, 8, 1946, 8558, 1671, 578, 11, 3457, 13, 1439, 2489, 10395, 13, 198, 2, 4091, 366, 43, 2149, 24290, 1, 2393, 329, 5964, 13, 198, 198, 11748, 302, 198, 198, 9654, 62, 81, 62, 2536, 796, 374, 6, 49778, 59, 30, ...
2.031008
129
# -*- coding: utf-8 -*- # Copyright 2019 Subteno IT # License MIT License import requests import xmltodict import string import random import io
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 2, 15069, 13130, 3834, 1452, 78, 7283, 198, 2, 13789, 17168, 13789, 198, 198, 11748, 7007, 198, 11748, 2124, 76, 2528, 375, 713, 198, 11748, 4731, 198, 11748, 4738, 198,...
3.12766
47
import bpy from bpy.types import Panel from bpy.props import * import math default_surface_names = [ ("bcc", "bcc", "", 1), ("schwarzp", "schwarzp", "", 2), ("schwarzd", "schwarzd", "", 3), ("gyroid", "gyroid", "", 4), ("double-p", "double-p", "", 5), ("double-d", "double-d", "", 6), ("doub...
[ 11748, 275, 9078, 198, 6738, 275, 9078, 13, 19199, 1330, 18810, 198, 6738, 275, 9078, 13, 1676, 862, 1330, 1635, 198, 11748, 10688, 198, 198, 12286, 62, 42029, 62, 14933, 796, 685, 198, 220, 220, 220, 5855, 65, 535, 1600, 366, 65, 5...
2.032836
335
import argparse import torch from torch.nn import Softplus from pina import PINN, Plotter from pina.model import FeedForward from problems.burgers import Burgers1D if __name__ == "__main__": parser = argparse.ArgumentParser(description="Run PINA") group = parser.add_mutually_exclusive_group(required=True) ...
[ 11748, 1822, 29572, 198, 11748, 28034, 198, 6738, 28034, 13, 20471, 1330, 8297, 9541, 198, 198, 6738, 279, 1437, 1330, 34279, 45, 11, 28114, 353, 198, 6738, 279, 1437, 13, 19849, 1330, 18272, 39746, 198, 6738, 2761, 13, 7423, 364, 1330,...
2.316879
628
""" In a binary tree, the root node is at depth 0, and children of each depth k node are at depth k+1. Two nodes of a binary tree are cousins if they have the same depth, but have different parents. We are given the root of a binary tree with unique values, and the values xand yof two different nodes in the tree. Retu...
[ 37811, 198, 198, 818, 257, 13934, 5509, 11, 262, 6808, 10139, 318, 379, 6795, 657, 11, 290, 1751, 286, 1123, 6795, 479, 10139, 389, 379, 6795, 479, 10, 16, 13, 198, 7571, 13760, 286, 257, 13934, 5509, 389, 28706, 611, 484, 423, 262,...
2.895706
326
from .configuration_entry import ConfigurationEntry from utility_ai.traits.utility_score_trait import UtilityScoreTrait
[ 6738, 764, 11250, 3924, 62, 13000, 1330, 28373, 30150, 198, 6738, 10361, 62, 1872, 13, 9535, 896, 13, 315, 879, 62, 26675, 62, 9535, 270, 1330, 34030, 26595, 51, 12907, 628 ]
3.903226
31
from collections import namedtuple Style = namedtuple('Style', 'name fg bg') default_pal = { Style('inv-black', 'black', 'light gray'), Style('green-bold', 'dark green,bold', ''), Style('red-bold', 'dark red,bold', ''), Style('blue-bold', 'dark blue,bold', ''), St...
[ 6738, 17268, 1330, 3706, 83, 29291, 198, 198, 21466, 796, 3706, 83, 29291, 10786, 21466, 3256, 705, 3672, 277, 70, 275, 70, 11537, 198, 198, 12286, 62, 18596, 796, 1391, 198, 220, 220, 220, 17738, 10786, 16340, 12, 13424, 3256, 220, 2...
1.939341
577
#!/usr/bin/env python3 import tensorflow as tf x=tf.Variable(0.5) y = x*x sess = tf.Session() sess.run(tf.global_variables_initializer()) print("x =",sess.run(x)) print("y =",sess.run(y))
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 18, 198, 11748, 11192, 273, 11125, 355, 48700, 198, 198, 87, 28, 27110, 13, 43015, 7, 15, 13, 20, 8, 198, 88, 796, 2124, 9, 87, 198, 82, 408, 796, 48700, 13, 36044, 3419, 198, 82, 408...
2.223529
85
import os import random import cv2 import numpy as np from gen_textures import add_noise, texture, blank_image from nist_tools.extract_nist_text import BaseMain, parse_args, display if __name__ == '__main__': random.seed(123) args = parse_args() CombineMain().main(args) print('done')
[ 11748, 28686, 198, 11748, 4738, 198, 198, 11748, 269, 85, 17, 198, 11748, 299, 32152, 355, 45941, 198, 198, 6738, 2429, 62, 5239, 942, 1330, 751, 62, 3919, 786, 11, 11743, 11, 9178, 62, 9060, 198, 6738, 299, 396, 62, 31391, 13, 2302...
2.756757
111
# this function looks for either the encounter date or the patient's date of birth # so that we can avoid duplicate encounters. import time #this will select element in div with relement div.
[ 2, 428, 2163, 3073, 329, 2035, 262, 8791, 3128, 393, 262, 5827, 338, 3128, 286, 4082, 220, 198, 2, 523, 326, 356, 460, 3368, 23418, 16925, 13, 220, 198, 11748, 640, 628, 198, 2, 5661, 481, 2922, 5002, 287, 2659, 351, 302, 1732, 26...
2.797619
84
from flask import g from flask_restplus import Resource, marshal from app import db from app.api.namespaces.token_namespace import token_ns, token from app.api.security.authentication import basic_auth, token_auth
[ 6738, 42903, 1330, 308, 198, 6738, 42903, 62, 2118, 9541, 1330, 20857, 11, 22397, 282, 198, 198, 6738, 598, 1330, 20613, 198, 6738, 598, 13, 15042, 13, 14933, 43076, 13, 30001, 62, 14933, 10223, 1330, 11241, 62, 5907, 11, 11241, 198, ...
3.661017
59
# -*- coding: utf-8 -*- # low --> Starting index, high --> Ending index test = Solution() print test.quickSort([10, 80, 30, 90, 40, 50, 70], 0, 6)
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 2, 1877, 220, 14610, 17962, 6376, 11, 220, 1029, 220, 14610, 43626, 6376, 198, 198, 9288, 796, 28186, 3419, 198, 4798, 1332, 13, 24209, 42758, 26933, 940, 11, 4019, 11, ...
2.586207
58
#!/usr/bin/env python3 # -*- coding: utf-8 -*- # Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. The ASF licenses this file # to you under the Apache Licen...
[ 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, 49962, 284, 262, 24843, 10442, 5693, 357, 1921, 37, 8, 739, 530, 198, 2, 393, 517, 18920, 5964, 11704, ...
3.080263
760
import json if __name__ == '__main__': test_norun()
[ 11748, 33918, 201, 198, 201, 198, 201, 198, 201, 198, 361, 11593, 3672, 834, 6624, 705, 834, 12417, 834, 10354, 201, 198, 220, 220, 220, 1332, 62, 13099, 403, 3419, 201, 198 ]
2.03125
32
# -*- coding: utf-8 -*- """ # @file name : module_containers.py # @author : tingsongyu # @date : 2019-09-20 10:08:00 # @brief : Sequential, ModuleList, ModuleDict """ import torch import torchvision import torch.nn as nn from collections import OrderedDict # ============================ Sequential ...
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 37811, 198, 2, 2488, 7753, 1438, 220, 1058, 8265, 62, 3642, 50221, 13, 9078, 198, 2, 2488, 9800, 220, 220, 220, 220, 1058, 256, 654, 506, 24767, 198, 2, 2488, 4475, ...
2.631884
345
import pytest import shutil as sh import pandas as pd from pathlib import Path from glob import glob import libs.dirs as dirs from libs.iteration_manager import SampleImages from libs.utils import copy_files, replace_symbols
[ 11748, 12972, 9288, 198, 11748, 4423, 346, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 355, 427, 198, 11748, 19798, 292, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 355, 279, 67,...
2.05298
151
data={ "":" ", "":" ", "":" ", "":" SHOW TIME!", "":" ", "":" \n ", "":" ", "":"! \n ", "":" ", "":" ", "":" ", }
[ 7890, 34758, 198, 220, 220, 220, 366, 2404, 220, 220, 33172, 198, 220, 220, 220, 366, 2404, 220, 220, 33172, 198, 220, 220, 220, 366, 2404, 220, 220, 33172, 198, 220, 220, 220, 366, 2404, 220, 220, 37041, 20460, 40754, 198, 220, 220...
1.621622
111
BASE_URL = 'https://api.themoviedb.org/3'
[ 33, 11159, 62, 21886, 796, 705, 5450, 1378, 15042, 13, 18855, 709, 798, 65, 13, 2398, 14, 18, 6, 198 ]
2.1
20
speed(0) penup() setposition(-100, 0) pendown() for i in range (6): pendown() make_square(i) penup() forward(35)
[ 12287, 7, 15, 8, 201, 198, 201, 198, 3617, 929, 3419, 201, 198, 2617, 9150, 32590, 3064, 11, 657, 8, 201, 198, 37038, 593, 3419, 201, 198, 1640, 1312, 287, 2837, 357, 21, 2599, 201, 198, 220, 220, 220, 44017, 593, 3419, 201, 198, ...
1.944444
72
""" Module for reading data from 'linearX.csv' and 'linearY.csv' """ import numpy as np def loadData (x_file="ass1_data/linearX.csv", y_file="ass1_data/linearY.csv"): """ Loads the X, Y matrices. Splits into training, validation and test sets """ X = np.genfromtxt(x_file) Y = np.genfromtxt(y_...
[ 37811, 198, 26796, 329, 3555, 1366, 422, 705, 29127, 55, 13, 40664, 6, 290, 705, 29127, 56, 13, 40664, 6, 198, 37811, 198, 198, 11748, 299, 32152, 355, 45941, 198, 198, 4299, 3440, 6601, 357, 87, 62, 7753, 2625, 562, 16, 62, 7890, ...
2.294643
336
from django import forms from .models import Experiment
[ 6738, 42625, 14208, 1330, 5107, 198, 198, 6738, 764, 27530, 1330, 29544, 628 ]
4.461538
13