content
stringlengths
1
1.05M
input_ids
listlengths
1
883k
ratio_char_token
float64
1
22.9
token_count
int64
1
883k
import sys import os sys.path.append(os.path.dirname(os.path.dirname(os.path.abspath(__file__)))) from database.database import ma from models import KoeFavorite from .user_schema import UserSchema from .koe_schema import KoeSchema
[ 11748, 25064, 201, 198, 11748, 28686, 201, 198, 17597, 13, 6978, 13, 33295, 7, 418, 13, 6978, 13, 15908, 3672, 7, 418, 13, 6978, 13, 15908, 3672, 7, 418, 13, 6978, 13, 397, 2777, 776, 7, 834, 7753, 834, 35514, 201, 198, 201, 198, ...
2.802326
86
import pickle import sys import numpy as np # Define the valid programs here if __name__ == '__main__': rollout_fn = sys.argv[1] parse_rollout(rollout_fn=rollout_fn)
[ 11748, 2298, 293, 198, 11748, 25064, 198, 198, 11748, 299, 32152, 355, 45941, 198, 198, 2, 2896, 500, 262, 4938, 4056, 994, 198, 361, 11593, 3672, 834, 6624, 705, 834, 12417, 834, 10354, 198, 220, 220, 220, 38180, 62, 22184, 796, 2506...
2.588235
68
import unittest import pandas as pd import numpy as np import os import tempfile import shutil from signatureanalyzer.signatureanalyzer import run_spectra from signatureanalyzer.bnmf import ardnmf from signatureanalyzer.utils import file_loader SPECTRA_ARROW = "../../examples/example_luad_spectra_1.tsv" SPECTRA_WORD ...
[ 11748, 555, 715, 395, 198, 11748, 19798, 292, 355, 279, 67, 198, 11748, 299, 32152, 355, 45941, 198, 11748, 28686, 198, 11748, 20218, 7753, 198, 11748, 4423, 346, 198, 198, 6738, 9877, 38200, 9107, 13, 12683, 1300, 38200, 9107, 1330, 10...
2.835616
146
from .python_utils import make_print_if_verbose
[ 6738, 764, 29412, 62, 26791, 1330, 787, 62, 4798, 62, 361, 62, 19011, 577, 628, 198 ]
3.125
16
""" RRFS-CMAQ File Reader """ import numpy as np import xarray as xr from numpy import concatenate from pandas import Series def open_mfdataset( fname, convert_to_ppb=True, mech="cb6r3_ae6_aq", var_list=None, fname_pm25=None, surf_only=False, **kwargs ): # Like WRF-chem add var list t...
[ 37811, 26067, 10652, 12, 34, 5673, 48, 9220, 25342, 37227, 198, 11748, 299, 32152, 355, 45941, 198, 11748, 2124, 18747, 355, 2124, 81, 198, 6738, 299, 32152, 1330, 1673, 36686, 378, 198, 6738, 19798, 292, 1330, 7171, 628, 198, 198, 4299...
1.815259
17,917
load("@com_github_atlassian_bazel_tools//multirun:def.bzl", "command") load("@bazel_skylib//lib:shell.bzl", "shell") # This macro expects target directory for the file as an additional command line argument.
[ 2220, 7203, 31, 785, 62, 12567, 62, 25864, 46091, 62, 65, 41319, 62, 31391, 1003, 16680, 343, 403, 25, 4299, 13, 65, 48274, 1600, 366, 21812, 4943, 198, 2220, 7203, 31, 65, 41319, 62, 15688, 8019, 1003, 8019, 25, 29149, 13, 65, 4827...
3.166667
66
#!/usr/bin/env python # -*- coding: utf8 -*- # ***************************************************************** # ** PTS -- Python Toolkit for working with SKIRT ** # ** Astronomical Observatory, Ghent University ** # ***************************************************************** ## ...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 198, 2, 532, 9, 12, 19617, 25, 3384, 69, 23, 532, 9, 12, 198, 2, 41906, 17174, 9, 198, 2, 12429, 220, 220, 220, 220, 220, 220, 20907, 1377, 11361, 16984, 15813, 329, 1762, 351, 14277, ...
4.831858
226
from dataclasses import dataclass from typing import Iterable import torch from torchmetrics import ConfusionMatrix from collections import defaultdict argmax = lambda l: l.index(max(l)) BIRAD_MAP = ['2', '3', '4', '5'] _lbm()
[ 6738, 4818, 330, 28958, 1330, 4818, 330, 31172, 198, 6738, 19720, 1330, 40806, 540, 198, 198, 11748, 28034, 198, 6738, 28034, 4164, 10466, 1330, 7326, 4241, 46912, 198, 6738, 17268, 1330, 4277, 11600, 198, 198, 853, 9806, 796, 37456, 300,...
3.038961
77
# # dporules.py # # Author(s): # Matteo Spallanzani <spmatteo@iis.ee.ethz.ch> # # Copyright (c) 2020-2021 ETH Zurich. # # 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.apach...
[ 2, 220, 198, 2, 288, 1819, 5028, 13, 9078, 198, 2, 220, 198, 2, 6434, 7, 82, 2599, 198, 2, 38789, 78, 1338, 439, 35410, 3216, 1279, 2777, 6759, 660, 78, 31, 72, 271, 13, 1453, 13, 2788, 89, 13, 354, 29, 198, 2, 220, 198, 2, ...
2.942922
438
# -*- coding: utf-8 -*- # System imports import json # Third-party imports import falcon from news_api.endpoints.vespaSearcher import vespaSearch from news_api.endpoints.top_entities import getTopNewEntities from news_api.endpoints.top_clusters import getTopNewCluster # Local imports # from news_api import settings ...
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 198, 2, 4482, 17944, 198, 11748, 33918, 198, 198, 2, 10467, 12, 10608, 17944, 198, 11748, 24215, 1102, 198, 6738, 1705, 62, 15042, 13, 437, 13033, 13, 1158, 8957, 50, ...
3.135922
103
#9-Faa um programa que leia um nmero indeterminado de notas. Aps esta entrada de dados, faa seguinte: #. Mostre a quantidade de notas que foram lidas. #. Exiba todas as notas na ordem em que foram informadas. #. Calcule e mostre a mdia das notas. #. Calcule e mostre a quantidade de notas acima da mdia calculada. list=[...
[ 2, 24, 12, 37, 7252, 23781, 1430, 64, 8358, 443, 544, 23781, 299, 647, 78, 773, 13221, 4533, 390, 407, 292, 13, 317, 862, 1556, 64, 24481, 4763, 390, 9955, 418, 11, 277, 7252, 384, 5162, 600, 68, 25, 198, 2, 13, 4042, 260, 257, ...
2.368715
358
from fractions import gcd def smallestDiv(): """Finds smallest number that is evenly divisible from 1 through 20""" return reduce(lambda x,y: lcm(x,y), range(1,21)) if __name__ == '__main__': print smallestDiv()
[ 6738, 49876, 1330, 308, 10210, 198, 198, 4299, 18197, 24095, 33529, 198, 197, 37811, 16742, 82, 18197, 1271, 326, 318, 21894, 2659, 12843, 422, 352, 832, 1160, 37811, 198, 197, 7783, 4646, 7, 50033, 2124, 11, 88, 25, 300, 11215, 7, 87...
3.1
70
import argparse import csv import glob import os import pandas as pd import matplotlib.pyplot as plt import numpy as np import seaborn as sns sns.set() shapes = ['TriangPrismIsosc', 'parallelepiped', 'sphere', 'wire'] if __name__ == "__main__": main()
[ 11748, 1822, 29572, 198, 11748, 269, 21370, 198, 11748, 15095, 198, 11748, 28686, 198, 198, 11748, 19798, 292, 355, 279, 67, 198, 11748, 2603, 29487, 8019, 13, 9078, 29487, 355, 458, 83, 198, 11748, 299, 32152, 355, 45941, 198, 11748, 3...
2.663265
98
#!/usr/bin/env python # -*- coding: utf-8 -*- __author__ = 'Keith Yang' __email__ = 'yang@keitheis.org' __version__ = '0.1.0' from pyramid.settings import asbool from .bootstrap import BootstrapFactory
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 198, 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 198, 834, 9800, 834, 796, 705, 46868, 10998, 6, 198, 834, 12888, 834, 796, 705, 17859, 31, 365, 31470, 271, 13, 2398,...
2.653846
78
#!/bin/python3 import math import os import random import re import sys def print_singly_linked_list(node, sep, fptr): while node: fptr.write(str(node.data)) node = node.next if node: fptr.write(sep) # Complete the mergeLists function below. # # For your reference: # # Sing...
[ 2, 48443, 8800, 14, 29412, 18, 198, 198, 11748, 10688, 198, 11748, 28686, 198, 11748, 4738, 198, 11748, 302, 198, 11748, 25064, 198, 198, 4299, 3601, 62, 82, 4420, 62, 25614, 62, 4868, 7, 17440, 11, 41767, 11, 277, 20692, 2599, 198, ...
2.055028
527
from quo import Console from quo.pretty import Pretty from quo.panel import Panel DATA = "My name is Quo" console = Console() for w in range(130): console.echo(Panel(Pretty(DATA), width=w))
[ 6738, 18658, 1330, 24371, 198, 6738, 18658, 13, 37784, 1330, 20090, 198, 6738, 18658, 13, 35330, 1330, 18810, 628, 198, 26947, 796, 366, 3666, 1438, 318, 2264, 78, 1, 628, 198, 198, 41947, 796, 24371, 3419, 198, 1640, 266, 287, 2837, ...
3.15873
63
#-*- coding: utf-8 -*- from django.conf import settings WYSIHTML5_EDITOR = { # Give the editor a name, the name will also be set as class # name on the iframe and on the iframe's body 'name': 'null', # Whether the editor should look like the textarea (by adopting styles) 'style': 'true', # Id...
[ 2, 12, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 198, 6738, 42625, 14208, 13, 10414, 1330, 6460, 198, 198, 54, 56, 11584, 28656, 20, 62, 24706, 1581, 796, 1391, 198, 220, 220, 220, 1303, 13786, 262, 5464, 257, 1438, 1...
2.378061
2,042
from protocols import reports_3_0_0 as participant_old from protocols import participant_1_0_0 from protocols.migration import BaseMigration
[ 6738, 19565, 1330, 3136, 62, 18, 62, 15, 62, 15, 355, 18399, 62, 727, 198, 6738, 19565, 1330, 18399, 62, 16, 62, 15, 62, 15, 198, 6738, 19565, 13, 76, 4254, 1330, 7308, 44, 4254, 628 ]
3.944444
36
from builtins import object from datetime import timedelta import factory from django.utils.timezone import now from bluebottle.pages.models import Page from .accounts import BlueBottleUserFactory
[ 6738, 3170, 1040, 1330, 2134, 198, 6738, 4818, 8079, 1330, 28805, 12514, 198, 198, 11748, 8860, 198, 6738, 42625, 14208, 13, 26791, 13, 2435, 11340, 1330, 783, 198, 198, 6738, 4171, 10985, 293, 13, 31126, 13, 27530, 1330, 7873, 198, 673...
3.921569
51
# Copyright The IETF Trust 2020, All Rights Reserved # -*- coding: utf-8 -*- # Generated by Django 1.11.27 on 2020-01-17 12:32 from django.db import migrations def create_or_delete_ipr_doc_events(apps, delete=False): """Create or delete DocEvents for IprEvents Mostly duplicates IprEvent.create_doc_even...
[ 2, 15069, 383, 314, 22274, 9870, 12131, 11, 1439, 6923, 33876, 198, 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 2, 2980, 515, 416, 37770, 352, 13, 1157, 13, 1983, 319, 12131, 12, 486, 12, 1558, 1105, 25, 2624, ...
2.256959
934
# -*- coding: utf-8 -*- """ Created on Tue Dec 15 23:52:04 2020 @author: Madhur Gupta """ from __future__ import print_function import cv2 import argparse ap=argparse.ArgumentParser() ap.add_argument('-i','--image',required=True,help='path to image') args=vars(ap.parse_args()) image=cv2.imread(args['...
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 201, 198, 37811, 201, 198, 41972, 319, 30030, 4280, 1315, 2242, 25, 4309, 25, 3023, 12131, 201, 198, 201, 198, 31, 9800, 25, 4627, 48349, 42095, 201, 198, 37811, 201, 198, ...
2.182825
361
# -*- coding: utf-8 -*- """ ACLReader test cases """ import unittest from kazoo.security import ACL, Id from zk_shell.acl import ACLReader
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 198, 37811, 17382, 33634, 1332, 2663, 37227, 198, 198, 11748, 555, 715, 395, 198, 198, 6738, 479, 1031, 2238, 13, 12961, 1330, 17382, 11, 5121, 198, 198, 6738, 1976, 74,...
2.769231
52
"""Base validators.""" import re from dictator.errors import ValidationError from dictator.validators import Validator from typing import Type, Callable, Any, Tuple, Union HEX_REGEX = re.compile(r"^(0x)?([0-9A-Fa-f]+)$") BIN_REGEX = re.compile(r"^(0b)?([0-1]+)$") def _validate_integer(_value: Any, **kwargs: Any) ...
[ 37811, 14881, 4938, 2024, 526, 15931, 198, 198, 11748, 302, 198, 6738, 26671, 13, 48277, 1330, 3254, 24765, 12331, 198, 6738, 26671, 13, 12102, 2024, 1330, 48951, 1352, 198, 6738, 19720, 1330, 5994, 11, 4889, 540, 11, 4377, 11, 309, 292...
2.616592
892
from .ReportParser import ReportParser
[ 6738, 764, 19100, 46677, 1330, 6358, 46677, 628 ]
5
8
import torch.nn as nn import torch """ # use this one when not doing multi-task learning as a baseline class EncoderRNN(nn.Module): def __init__(self, input_size, hidden_size, nlayers=2): super(EncoderRNN, self).__init__() self.nlayers = nlayers self.hidden_size = hidden_size self...
[ 11748, 28034, 13, 20471, 355, 299, 77, 198, 11748, 28034, 628, 198, 198, 37811, 198, 2, 779, 428, 530, 618, 407, 1804, 5021, 12, 35943, 4673, 355, 257, 14805, 198, 4871, 14711, 12342, 49, 6144, 7, 20471, 13, 26796, 2599, 198, 220, 2...
2.417476
309
import torch import torch.nn as nn from torch.optim.lr_scheduler import CosineAnnealingLR, CosineAnnealingWarmRestarts import itertools import matplotlib.pyplot as plt initial_lr = 0.1 net_1 = model() optimizer_1 = torch.optim.Adam(net_1.parameters(), lr=initial_lr) scheduler_1 = CosineAnnealingWarmRestart...
[ 198, 11748, 28034, 198, 11748, 28034, 13, 20471, 355, 299, 77, 198, 6738, 28034, 13, 40085, 13, 14050, 62, 1416, 704, 18173, 1330, 10437, 500, 43227, 4272, 35972, 11, 10437, 500, 43227, 4272, 54, 1670, 19452, 5889, 198, 11748, 340, 861,...
2.227154
383
from django.urls import path from .views import events_calendar, calendar_event_detail, past_competitions app_name = 'events_calendar' urlpatterns = [ path('past_competitions/', past_competitions, name='past_competitions'), path('<int:year>/<int:month>/<int:day>/<int:hour>/<slug:event>/', calendar_...
[ 6738, 42625, 14208, 13, 6371, 82, 1330, 3108, 198, 198, 6738, 764, 33571, 1330, 2995, 62, 9948, 9239, 11, 11845, 62, 15596, 62, 49170, 11, 1613, 62, 5589, 316, 1756, 628, 198, 1324, 62, 3672, 796, 705, 31534, 62, 9948, 9239, 6, 198,...
2.618182
165
#!/usr/bin/env python3 # -*- coding: utf-8 -*- import pdb import numpy as np import pandas as pd from sklearn.linear_model import LinearRegression from trading_gym.utils.data.toy import create_toy_data from trading_gym.envs.portfolio_gym.portfolio_gym import PortfolioTradingGym order_book_id_number = 100 toy_data = cr...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 18, 198, 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 11748, 279, 9945, 198, 11748, 299, 32152, 355, 45941, 198, 11748, 19798, 292, 355, 279, 67, 198, 6738, 1341, 35720,...
2.49697
495
"""session speaker Revision ID: 6f98e24760d Revises: 58588eba8cb8 Create Date: 2013-11-22 17:28:47.751025 """ # revision identifiers, used by Alembic. revision = '6f98e24760d' down_revision = '58588eba8cb8' from alembic import op import sqlalchemy as sa
[ 37811, 29891, 10834, 198, 198, 18009, 1166, 4522, 25, 718, 69, 4089, 68, 23753, 1899, 67, 198, 18009, 2696, 25, 7618, 39118, 1765, 64, 23, 21101, 23, 198, 16447, 7536, 25, 2211, 12, 1157, 12, 1828, 1596, 25, 2078, 25, 2857, 13, 2425...
2.47619
105
#!/usr/bin/python """ this is the code to accompany the Lesson 3 (decision tree) mini-project use an DT to identify emails from the Enron corpus by their authors Sara has label 0 Chris has label 1 """ import sys from time import time sys.path.append("../tools/") from email_preprocess impor...
[ 2, 48443, 14629, 14, 8800, 14, 29412, 198, 198, 37811, 220, 198, 220, 220, 220, 428, 318, 262, 2438, 284, 13873, 262, 12892, 261, 513, 357, 12501, 1166, 5509, 8, 9927, 12, 16302, 628, 220, 220, 220, 779, 281, 24311, 284, 5911, 7237,...
3.561688
308
''' mode: python; py-indent-offset: 4; tab-width: 4; coding: utf-8 Copyright (C) 2020 Airbus SAS ''' import unittest import time import numpy as np import pandas as pd from sos_trades_core.execution_engine.execution_engine import ExecutionEngine from climateeconomics.sos_processes.iam.witness.witness_dev.usecase_witnes...
[ 7061, 6, 198, 14171, 25, 21015, 26, 12972, 12, 521, 298, 12, 28968, 25, 604, 26, 7400, 12, 10394, 25, 604, 26, 19617, 25, 3384, 69, 12, 23, 198, 15269, 357, 34, 8, 12131, 39173, 35516, 198, 7061, 6, 198, 11748, 555, 715, 395, 19...
2.655172
203
import os import csv import h5py import numpy as np from neuron import h from .sim_module import SimulatorMod from bmtk.simulator.bionet.biocell import BioCell from bmtk.simulator.bionet.io_tools import io from bmtk.simulator.bionet.pointprocesscell import PointProcessCell pc = h.ParallelContext() MPI_RANK = int(pc....
[ 11748, 28686, 198, 11748, 269, 21370, 198, 11748, 289, 20, 9078, 198, 11748, 299, 32152, 355, 45941, 198, 6738, 43164, 1330, 289, 198, 198, 6738, 764, 14323, 62, 21412, 1330, 13942, 5841, 198, 6738, 275, 16762, 74, 13, 14323, 8927, 13, ...
2.765625
128
import time client_msg_type = 689 reserved_data_field = 0
[ 11748, 640, 198, 198, 16366, 62, 19662, 62, 4906, 796, 718, 4531, 198, 411, 8520, 62, 7890, 62, 3245, 796, 657, 628, 628, 628, 628, 628 ]
2.615385
26
# ------------------------------------------------------------- # # 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 unde...
[ 2, 20368, 1783, 32501, 198, 2, 198, 2, 49962, 284, 262, 24843, 10442, 5693, 357, 1921, 37, 8, 739, 530, 198, 2, 393, 517, 18920, 5964, 11704, 13, 220, 4091, 262, 28536, 2393, 198, 2, 9387, 351, 428, 670, 329, 3224, 1321, 198, 2, ...
4.4
215
from .home import Steg __all__ = ['Steg',]
[ 6738, 764, 11195, 1330, 520, 1533, 198, 198, 834, 439, 834, 796, 37250, 7447, 70, 3256, 60 ]
2.529412
17
import ctypes from ctypes import wintypes, windll import win32api import win32con import win32gui # PUL = ctypes.POINTER(ctypes.c_ulong) PUL = ctypes.c_void_p # HookProc = ctypes.WINFUNCTYPE( wintypes.LPARAM, ctypes.c_int32, wintypes.WPARAM, ctypes.POINTER(KeyBdMsg)) # SendInput = windll.user32.Se...
[ 11748, 269, 19199, 198, 6738, 269, 19199, 1330, 266, 600, 9497, 11, 2344, 297, 198, 198, 11748, 1592, 2624, 15042, 198, 11748, 1592, 2624, 1102, 198, 11748, 1592, 2624, 48317, 198, 198, 2, 350, 6239, 796, 269, 19199, 13, 16402, 41358, ...
2.277008
722
from django.shortcuts import render import numpy as np
[ 6738, 42625, 14208, 13, 19509, 23779, 1330, 8543, 198, 11748, 299, 32152, 355, 45941, 628, 628 ]
3.625
16
from django.db import models from django.contrib.auth.models import AbstractBaseUser
[ 6738, 42625, 14208, 13, 9945, 1330, 4981, 201, 198, 6738, 42625, 14208, 13, 3642, 822, 13, 18439, 13, 27530, 1330, 27741, 14881, 12982, 201, 198, 201, 198, 201, 198 ]
3.137931
29
from .validators import Validator, BaseRule __all__ = ('Validator', 'BaseRule',)
[ 6738, 764, 12102, 2024, 1330, 48951, 1352, 11, 7308, 31929, 628, 198, 834, 439, 834, 796, 19203, 47139, 1352, 3256, 705, 14881, 31929, 3256, 8, 198 ]
3.192308
26
#! /usr/bin/env python """ Compare bruker read_pdata to read. """ import nmrglue as ng import matplotlib.pyplot as plt # read in the data data_dir = "data/bruker_exp/1/pdata/1" # From pre-procced data. dic, data = ng.bruker.read_pdata(data_dir, scale_data=True) udic = ng.bruker.guess_udic(dic, data) uc = ng.fileiob...
[ 2, 0, 1220, 14629, 14, 8800, 14, 24330, 21015, 198, 37811, 198, 41488, 18145, 6122, 1100, 62, 79, 7890, 284, 1100, 13, 198, 37811, 198, 198, 11748, 28642, 81, 4743, 518, 355, 23370, 198, 11748, 2603, 29487, 8019, 13, 9078, 29487, 355,...
2.207358
598
import io import os import unittest import boto3 from botocore.response import StreamingBody from botocore.stub import Stubber from functions.posts_get.posts_get_logic import posts_get_logic
[ 11748, 33245, 198, 11748, 28686, 198, 11748, 555, 715, 395, 198, 198, 11748, 275, 2069, 18, 198, 6738, 10214, 420, 382, 13, 26209, 1330, 43124, 25842, 198, 6738, 10214, 420, 382, 13, 301, 549, 1330, 41135, 527, 198, 198, 6738, 5499, 1...
3.233333
60
from typing import Union, List import copy import math import numpy as np """ Principles: - geometry objects are defined by the minimum required information - Points are made of coordinates (floats), everything else is based on Points except for Vectors """ def move(obj: Union[Point, Line, Rectangle, Box, ...
[ 6738, 19720, 1330, 4479, 11, 7343, 198, 11748, 4866, 198, 11748, 10688, 198, 11748, 299, 32152, 355, 45941, 628, 198, 37811, 198, 47231, 6418, 25, 198, 198, 12, 22939, 5563, 389, 5447, 416, 262, 5288, 2672, 1321, 198, 12, 11045, 389, ...
2.272817
1,008
import os, logging if not os.path.exists('config'): os.mkdir('config') log = logging.getLogger('danmu') log.setLevel(logging.DEBUG) fileHandler = logging.FileHandler(os.path.join('config', 'run.log'), encoding = 'utf8') fileHandler.setLevel(logging.DEBUG) formatter = logging.Formatter('%(asctime)-17s <%(message...
[ 11748, 28686, 11, 18931, 201, 198, 201, 198, 361, 407, 28686, 13, 6978, 13, 1069, 1023, 10786, 11250, 6, 2599, 28686, 13, 28015, 15908, 10786, 11250, 11537, 201, 198, 6404, 796, 18931, 13, 1136, 11187, 1362, 10786, 25604, 30300, 11537, ...
2.449339
227
import multiprocessing import time import gym import gym3 import numpy as np from gym.vector import make as make_vec_env from procgen import ProcgenGym3Env population_size = 112 number_env_steps = 1000 if __name__ == "__main__": main()
[ 11748, 18540, 305, 919, 278, 198, 11748, 640, 198, 198, 11748, 11550, 198, 11748, 11550, 18, 198, 11748, 299, 32152, 355, 45941, 198, 6738, 11550, 13, 31364, 1330, 787, 355, 787, 62, 35138, 62, 24330, 198, 6738, 13834, 5235, 1330, 31345...
2.964286
84
import time import typing
[ 11748, 640, 198, 11748, 19720, 628, 628 ]
4.142857
7
# adapted from https://sites.google.com/site/mikescoderama/Home/0-1-knapsack-problem-in-p W = 10 v = [9, 14, 16, 30] w = [2, 3, 4, 6] print(zeroOneKnapsack(v, w, W))
[ 198, 2, 16573, 422, 220, 3740, 1378, 49315, 13, 13297, 13, 785, 14, 15654, 14, 76, 1134, 3798, 12342, 1689, 14, 16060, 14, 15, 12, 16, 12, 15418, 1686, 441, 12, 45573, 12, 259, 12, 79, 198, 198, 54, 796, 838, 198, 85, 796, 685, ...
2.023256
86
# Generated by Django 3.0.2 on 2020-10-08 22:36 from django.db import migrations, models
[ 2, 2980, 515, 416, 37770, 513, 13, 15, 13, 17, 319, 12131, 12, 940, 12, 2919, 2534, 25, 2623, 198, 198, 6738, 42625, 14208, 13, 9945, 1330, 15720, 602, 11, 4981, 628 ]
2.84375
32
import os import sys import django sys.path.append(os.path.dirname(os.path.dirname(os.path.abspath(__file__)))) os.environ.setdefault("DJANGO_SETTINGS_MODULE", "museum.settings") django.setup() from django.contrib.auth.models import User # noqa: E402 from museum_site.models import * # noqa: E402 if __name__ == ...
[ 11748, 28686, 198, 11748, 25064, 198, 198, 11748, 42625, 14208, 198, 198, 17597, 13, 6978, 13, 33295, 7, 418, 13, 6978, 13, 15908, 3672, 7, 418, 13, 6978, 13, 15908, 3672, 7, 418, 13, 6978, 13, 397, 2777, 776, 7, 834, 7753, 834, 3...
2.578947
133
import matplotlib.pylab as plt import numpy as np plt.figure() axes=plt.gca() y= np.random.randn(9) col_labels=['col1','col2','col3'] row_labels=['row1','row2','row3'] table_vals=[[11,12,13],[21,22,23],[28,29,30]] row_colors=['red','gold','green'] the_table = plt.table(cellText=table_vals, colWidth...
[ 11748, 2603, 29487, 8019, 13, 79, 2645, 397, 355, 458, 83, 198, 11748, 299, 32152, 355, 45941, 198, 198, 489, 83, 13, 26875, 3419, 198, 897, 274, 28, 489, 83, 13, 70, 6888, 3419, 198, 88, 28, 45941, 13, 25120, 13, 25192, 77, 7, ...
1.825083
303
import re import os def extract(regularE : str, init : str, stop : str, string : str): """ regularE: RE to catch string init: First string to replace stop: Last string to replace string: String to apply the RE With a regular expression and init and stop t...
[ 11748, 302, 198, 11748, 28686, 628, 198, 4299, 7925, 7, 16338, 36, 1058, 965, 11, 2315, 1058, 965, 11, 2245, 1058, 965, 11, 4731, 1058, 965, 2599, 198, 220, 220, 220, 37227, 198, 220, 220, 220, 220, 220, 220, 220, 3218, 36, 25, 22...
2.541414
495
#!/usr/env/python3 # coding=utf-8 # # Generate Steamguard OTP with the shared secret passed as an argument # Ganesh Velu import hmac import base64 import hashlib import codecs import time import sys STEAM_DECODE_CHARS = ['2', '3', '4', '5', '6', '7', '8', '9', 'B', 'C', 'D', 'F', 'G', 'H', 'J',...
[ 2, 48443, 14629, 14, 24330, 14, 29412, 18, 198, 2, 19617, 28, 40477, 12, 23, 198, 2, 198, 2, 2980, 378, 9094, 14864, 440, 7250, 351, 262, 4888, 3200, 3804, 355, 281, 4578, 198, 2, 23207, 5069, 17378, 84, 220, 198, 198, 11748, 289,...
1.980315
254
""" """
[ 37811, 198, 198, 37811, 198 ]
1.8
5
"""Handle rendering of the Energy Power Meter widget.""" from apps.widgets.resource_goal import resource_goal def supply(request, page_name): """Return the view_objects content, which in this case is empty.""" _ = page_name team = request.user.get_profile().team if team: interval = resource_...
[ 37811, 37508, 14837, 286, 262, 6682, 4333, 46423, 26295, 526, 15931, 198, 6738, 6725, 13, 28029, 11407, 13, 31092, 62, 35231, 1330, 8271, 62, 35231, 628, 198, 4299, 5127, 7, 25927, 11, 2443, 62, 3672, 2599, 198, 220, 220, 220, 37227, ...
2.673077
208
import argparse import json from authlib.jose import JsonWebKey from cryptography.hazmat.primitives import serialization def generate_key_pair(filename, kid=None): """ 'kid' will default to the jwk thumbprint if not set explicitly. Reference: https://tools.ietf.org/html/rfc7638 """ options = {} ...
[ 11748, 1822, 29572, 198, 11748, 33918, 198, 198, 6738, 6284, 8019, 13, 73, 577, 1330, 449, 1559, 13908, 9218, 198, 6738, 45898, 13, 71, 1031, 6759, 13, 19795, 20288, 1330, 11389, 1634, 628, 198, 4299, 7716, 62, 2539, 62, 24874, 7, 343...
2.427586
580
### # Copyright (c) 2019-present, IBM Research # Licensed under The MIT License [see LICENSE for details] ### from collections import defaultdict from hkpy.hkpyo.model import HKOContext, HKOContextManager, HKOConcept, HKOSubConceptAxiom, HKOConjunctionExpression, \ HKODisjunctionExpression, HKOConceptAssertion, H...
[ 21017, 198, 2, 15069, 357, 66, 8, 13130, 12, 25579, 11, 19764, 4992, 198, 2, 49962, 739, 383, 17168, 13789, 685, 3826, 38559, 24290, 329, 3307, 60, 198, 21017, 198, 198, 6738, 17268, 1330, 4277, 11600, 198, 198, 6738, 289, 74, 9078, ...
3.007194
139
from django.contrib import admin from .models import Account, Product, Drink, Topping, Order admin.site.register(Account) admin.site.register(Product) admin.site.register(Drink) admin.site.register(Topping) admin.site.register(Order)
[ 6738, 42625, 14208, 13, 3642, 822, 1330, 13169, 198, 198, 6738, 764, 27530, 1330, 10781, 11, 8721, 11, 32906, 11, 1675, 2105, 11, 8284, 628, 198, 28482, 13, 15654, 13, 30238, 7, 30116, 8, 198, 28482, 13, 15654, 13, 30238, 7, 15667, ...
3.246575
73
from __future__ import absolute_import from influxdb_client.client.influxdb_client import InfluxDBClient
[ 6738, 11593, 37443, 834, 1330, 4112, 62, 11748, 198, 198, 6738, 25065, 9945, 62, 16366, 13, 16366, 13, 10745, 22564, 9945, 62, 16366, 1330, 4806, 22564, 11012, 11792, 198 ]
3.655172
29
from django.contrib.auth.models import User from django import forms from .models import UserProfile
[ 6738, 42625, 14208, 13, 3642, 822, 13, 18439, 13, 27530, 1330, 11787, 198, 6738, 42625, 14208, 1330, 5107, 198, 6738, 764, 27530, 1330, 11787, 37046, 628, 198, 220, 628, 198 ]
3.566667
30
import sys import numpy as np import os import requests import json import logging from json import JSONEncoder from keras.models import model_from_json sys.path.append('..') from preprocessing.InputHelper import InputHelper from model.lstm import rmse from model.lstm import buildModel from keras.preprocessing.sequenc...
[ 11748, 25064, 198, 11748, 299, 32152, 355, 45941, 198, 11748, 28686, 198, 11748, 7007, 198, 11748, 33918, 198, 11748, 18931, 198, 6738, 33918, 1330, 19449, 27195, 12342, 198, 6738, 41927, 292, 13, 27530, 1330, 2746, 62, 6738, 62, 17752, 1...
2.495356
1,292
from manhattan.manage import config from manhattan.nav import Nav, NavItem from blueprints.accounts.manage import blueprint from blueprints.accounts.models import Account __all__ = ['AccountConfig']
[ 6738, 582, 12904, 13, 805, 496, 1330, 4566, 198, 6738, 582, 12904, 13, 28341, 1330, 13244, 11, 13244, 7449, 198, 198, 6738, 4171, 17190, 13, 23317, 82, 13, 805, 496, 1330, 30881, 198, 6738, 4171, 17190, 13, 23317, 82, 13, 27530, 1330,...
3.740741
54
from aiohttp import ClientConnectionError from wsrpc_aiohttp.testing import BaseTestCase, async_timeout
[ 6738, 257, 952, 4023, 1330, 20985, 32048, 12331, 198, 6738, 266, 27891, 14751, 62, 64, 952, 4023, 13, 33407, 1330, 7308, 14402, 20448, 11, 30351, 62, 48678, 628 ]
3.75
28
import logging import logging.config import os LOG_DIR = os.path.dirname(os.path.abspath(__file__)) log_config = { 'version': 1, 'formatters': { 'verbose': { 'class': 'logging.Formatter', 'format': '%(asctime)s [%(name)s] %(levelname)-8s %(pathname)s:%(lineno)d - %(message)s', ...
[ 11748, 18931, 198, 11748, 18931, 13, 11250, 198, 11748, 28686, 198, 198, 25294, 62, 34720, 796, 28686, 13, 6978, 13, 15908, 3672, 7, 418, 13, 6978, 13, 397, 2777, 776, 7, 834, 7753, 834, 4008, 198, 6404, 62, 11250, 796, 1391, 198, 2...
1.816406
1,280
#!/usr/bin/env python import os import platform from glob import glob import utils.appconfig as appconfig # GLOBAL CONSTANTS # --- File Structure Constants --- BASE_DIRS = { 'delivery': [ 'CritiqueArchive' ], 'docs': [], 'frames': [], ...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 198, 198, 11748, 28686, 198, 11748, 3859, 198, 6738, 15095, 1330, 15095, 198, 198, 11748, 3384, 4487, 13, 1324, 11250, 355, 598, 11250, 628, 198, 2, 10188, 9864, 1847, 7102, 2257, 1565, 4694,...
1.733558
593
# coding=utf-8 # Copyright 2020 The TensorFlow Datasets Authors and the HuggingFace Datasets Authors. # # 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/LI...
[ 2, 19617, 28, 40477, 12, 23, 198, 2, 15069, 12131, 383, 309, 22854, 37535, 16092, 292, 1039, 46665, 290, 262, 12905, 2667, 32388, 16092, 292, 1039, 46665, 13, 198, 2, 198, 2, 49962, 739, 262, 24843, 13789, 11, 10628, 362, 13, 15, 35...
2.869767
430
from lib.interface import cabecalho
[ 6738, 9195, 13, 39994, 1330, 16212, 721, 282, 8873, 220, 628, 198 ]
3.25
12
from graph import Graph matrix = [] with open('p083_matrix.txt') as file: for line in file.readlines(): currentline = [int(n) for n in line.split(',')] matrix.append(currentline) numGraph = Graph() # add each node first for i in range(len(matrix)): for j in range(len(matrix[i])): num...
[ 6738, 4823, 1330, 29681, 198, 198, 6759, 8609, 796, 17635, 198, 198, 4480, 1280, 10786, 79, 48290, 62, 6759, 8609, 13, 14116, 11537, 355, 2393, 25, 198, 220, 220, 220, 329, 1627, 287, 2393, 13, 961, 6615, 33529, 198, 220, 220, 220, ...
1.929464
1,361
from django.core.exceptions import ObjectDoesNotExist from django.shortcuts import render, redirect, get_object_or_404 from designs import models as design_models from feet import models as foot_models from products import models as product_models from .models import Cart, CartItem # def add_cart(request, pk, desi...
[ 6738, 42625, 14208, 13, 7295, 13, 1069, 11755, 1330, 9515, 13921, 3673, 3109, 396, 198, 6738, 42625, 14208, 13, 19509, 23779, 1330, 8543, 11, 18941, 11, 651, 62, 15252, 62, 273, 62, 26429, 198, 6738, 9824, 1330, 4981, 355, 1486, 62, 2...
2.280263
1,520
""" Script to deploy a website to the server by ftp. - Compares local directory with remote directory - Updates modified files - Adds new files - Optionally, removes deleted files from remote Requires: python 3.3+ Due to use of ftplib.mlsd() The MIT License (...
[ 37811, 198, 220, 220, 220, 12327, 284, 6061, 257, 3052, 284, 262, 4382, 416, 10117, 79, 13, 628, 220, 220, 220, 220, 220, 220, 220, 532, 3082, 3565, 1957, 8619, 351, 6569, 8619, 198, 220, 220, 220, 220, 220, 220, 220, 532, 28090, ...
2.399564
3,211
""" Author : Robin Singh Programs List: 1.Queue 2.Circular Queue 3.Double Ended Queue """ import inspect
[ 37811, 198, 13838, 1058, 12325, 14403, 198, 15167, 82, 7343, 25, 198, 16, 13, 34991, 220, 198, 17, 13, 31560, 934, 4670, 518, 198, 18, 13, 25628, 47624, 4670, 518, 198, 37811, 198, 198, 11748, 10104, 628, 628 ]
2.894737
38
from wataru.commands.models.base import CommandBase from wataru.logging import getLogger import wataru.rules.models as rmodels import os import sys logger = getLogger(__name__)
[ 6738, 4383, 11493, 13, 9503, 1746, 13, 27530, 13, 8692, 1330, 9455, 14881, 198, 6738, 4383, 11493, 13, 6404, 2667, 1330, 651, 11187, 1362, 198, 11748, 4383, 11493, 13, 38785, 13, 27530, 355, 374, 27530, 198, 198, 11748, 28686, 198, 1174...
3.214286
56
# A Sensation which creates a Polyline of 35 points of the finger joints, along which a Circle Path is animated. from pysensationcore import * import sensation_helpers as sh import HandOperations # We will use the joint positions of the fingers to animate a Circle along a PolylinePath fingers = ["thumb", "indexFinger"...
[ 2, 317, 14173, 341, 543, 8075, 257, 12280, 1370, 286, 3439, 2173, 286, 262, 7660, 24039, 11, 1863, 543, 257, 16291, 10644, 318, 15108, 13, 198, 6738, 279, 893, 25742, 7295, 1330, 1635, 198, 11748, 18098, 62, 16794, 364, 355, 427, 198,...
2.756859
1,057
"""Extract inception_v3_feats from videos for Youtube-8M feature extractor.""" import os import torch import init_path import misc.config as cfg from misc.utils import (concat_feat_var, get_dataloader, make_cuda, make_variable) from models import inception_v3 if __name__ == '__main__': #...
[ 37811, 11627, 974, 30839, 62, 85, 18, 62, 5036, 1381, 422, 5861, 329, 27431, 12, 23, 44, 3895, 7925, 273, 526, 15931, 198, 198, 11748, 28686, 198, 198, 11748, 28034, 198, 198, 11748, 2315, 62, 6978, 198, 11748, 12747, 13, 11250, 355, ...
1.947818
1,054
from collections import deque from ..utils.collections import DictLike from ..matcher.core import ReteNet from ..matcher.actions import make_node_token, make_edge_token, make_attr_token from .sampler import NextReactionMethod
[ 6738, 17268, 1330, 390, 4188, 220, 198, 6738, 11485, 26791, 13, 4033, 26448, 1330, 360, 713, 7594, 198, 6738, 11485, 6759, 2044, 13, 7295, 1330, 4990, 68, 7934, 198, 6738, 11485, 6759, 2044, 13, 4658, 1330, 787, 62, 17440, 62, 30001, ...
3.5
66
### performing function similar to --snapcheck option in command line ###### from jnpr.jsnapy import SnapAdmin from pprint import pprint from jnpr.junos import Device js = SnapAdmin() config_file = "/etc/jsnapy/testfiles/config_single_snapcheck.yml" snapvalue = js.snapcheck(config_file, "snap") for snapcheck in snap...
[ 21017, 9489, 2163, 2092, 284, 1377, 45380, 9122, 3038, 287, 3141, 1627, 46424, 2, 198, 6738, 474, 77, 1050, 13, 8457, 77, 12826, 1330, 16026, 46787, 198, 6738, 279, 4798, 1330, 279, 4798, 198, 6738, 474, 77, 1050, 13, 29741, 418, 1330...
3.09375
192
from typing import * if __name__ == "__main__": so = Solution() print(so.numberOfSteps(123))
[ 6738, 19720, 1330, 1635, 628, 198, 198, 361, 11593, 3672, 834, 6624, 366, 834, 12417, 834, 1298, 198, 220, 220, 220, 523, 796, 28186, 3419, 198, 220, 220, 220, 3601, 7, 568, 13, 17618, 5189, 8600, 82, 7, 10163, 4008 ]
2.575
40
import Tkinter as tk from PIL import Image, ImageTk import aggdraw window = tk.Tk() label = tk.Label(window) label.pack() # schedule changing images import itertools, random, time # Begin # img = aggdraw.Draw("RGBA", (1000,600), random_n(0,222,n=3) ) import geovis sf = geovis.shapefile_fork.Reader("D:/Test Da...
[ 198, 11748, 309, 74, 3849, 355, 256, 74, 198, 6738, 350, 4146, 1330, 7412, 11, 7412, 51, 74, 198, 11748, 4194, 19334, 198, 198, 17497, 796, 256, 74, 13, 51, 74, 3419, 198, 18242, 796, 256, 74, 13, 33986, 7, 17497, 8, 198, 18242, ...
2.465021
243
from utils import utils if __name__ == "__main__": day = 10 data = utils.get_ints_from_file(f"data/aoc{day}_data.txt") data = sorted(data) data = [0] + data + [data[-1]+3] print(f"Part 1 solution: {part_1(data)}") print(f"Part 2 solution: {part_2(data)}")
[ 6738, 3384, 4487, 1330, 3384, 4487, 198, 198, 361, 11593, 3672, 834, 6624, 366, 834, 12417, 834, 1298, 198, 220, 220, 220, 1110, 796, 838, 198, 220, 220, 220, 1366, 796, 3384, 4487, 13, 1136, 62, 29503, 62, 6738, 62, 7753, 7, 69, ...
2.222222
126
""" @author: Alexander Studier-Fischer, Jan Odenthal, Berkin Oezdemir, Isabella Camplisson, University of Heidelberg """ from HyperGuiModules import * import logging import os #logging.basicConfig(level=logging.DEBUG) xSize=None ySize=None if __name__ == '__main__': main()
[ 37811, 198, 31, 9800, 25, 10009, 3604, 959, 12, 37, 24645, 11, 2365, 10529, 34728, 11, 4312, 5116, 440, 8471, 9536, 343, 11, 1148, 43653, 7298, 489, 30927, 11, 2059, 286, 679, 5943, 3900, 198, 37811, 198, 198, 6738, 15079, 8205, 72, ...
2.813725
102
# Free the prisoner, defeat the guard and grab the gem. hero.moveRight() # Free Patrick from behind the "Weak Door". hero.attack("Weak Door") hero.moveRight(2) # Defeat the guard, named "Two". # Get the gem. hero.moveRight() hero.moveDown(3)
[ 2, 3232, 262, 17234, 11, 7433, 262, 4860, 290, 5552, 262, 16840, 13, 198, 11718, 13, 21084, 11028, 3419, 198, 2, 3232, 9925, 422, 2157, 262, 366, 44898, 19821, 1911, 198, 11718, 13, 20358, 7203, 44898, 19821, 4943, 198, 11718, 13, 210...
3.171053
76
# -*- coding: utf-8 -*- # import libraries import os from PIL import Image import nltk import numpy as np import matplotlib.pyplot as plt import random from scipy.ndimage import gaussian_gradient_magnitude from wordcloud import WordCloud, ImageColorGenerator, STOPWORDS # import mask image. Search for stencil image...
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 198, 2, 1330, 12782, 220, 198, 198, 11748, 28686, 198, 6738, 350, 4146, 1330, 7412, 198, 198, 11748, 299, 2528, 74, 198, 11748, 299, 32152, 355, 45941, 198, 11748, 2603,...
2.86747
332
# -*- coding: utf-8 -*- """ Created on Thu Oct 26 08:19:16 2017 @author: 0 """ from scipy.misc import imresize from scipy.signal import convolve,convolve2d import scipy from PIL import Image import cv2 import numpy as np img = cv2.imread("C://Users/0/Downloads/basketball1.png",0) img2 = cv2.imread("C://Users/0/Downloa...
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 37811, 198, 41972, 319, 26223, 2556, 2608, 8487, 25, 1129, 25, 1433, 2177, 198, 198, 31, 9800, 25, 657, 198, 37811, 198, 6738, 629, 541, 88, 13, 44374, 1330, 545, 411,...
1.872624
1,052
#!usr/bin/env python3 #import dependecies import sqlite3 import csv #connect to test_data conn = sqlite3.connect('test_data.db') #create a cursor c = conn.cursor() c.execute("DROP TABLE test_data") #create a test_data table c.execute("""CREATE TABLE test_data(age integer, sex te...
[ 2, 0, 14629, 14, 8800, 14, 24330, 21015, 18, 198, 198, 2, 11748, 4745, 721, 444, 198, 11748, 44161, 578, 18, 198, 11748, 269, 21370, 198, 198, 2, 8443, 284, 1332, 62, 7890, 198, 37043, 796, 44161, 578, 18, 13, 8443, 10786, 9288, 6...
1.914948
388
from swift_cloud_py.entities.control_output.fixed_time_schedule import FixedTimeSchedule from swift_cloud_py.entities.intersection.intersection import Intersection from swift_cloud_py.validate_safety_restrictions.validate_bounds import validate_bounds from swift_cloud_py.validate_safety_restrictions.validate_completene...
[ 6738, 14622, 62, 17721, 62, 9078, 13, 298, 871, 13, 13716, 62, 22915, 13, 34021, 62, 2435, 62, 15952, 5950, 1330, 10832, 7575, 27054, 5950, 198, 6738, 14622, 62, 17721, 62, 9078, 13, 298, 871, 13, 3849, 5458, 13, 3849, 5458, 1330, 4...
3.384045
539
from timingsignal import TimingSignal from brick_characterizer.CharBase import CharBase
[ 6738, 4628, 654, 570, 282, 1330, 5045, 278, 11712, 282, 198, 6738, 17214, 62, 22769, 7509, 13, 12441, 14881, 1330, 3178, 14881, 628 ]
3.869565
23
from .str2num import str2num __all__ = [ 'str2num' ]
[ 6738, 764, 2536, 17, 22510, 1330, 965, 17, 22510, 198, 198, 834, 439, 834, 796, 685, 198, 220, 220, 220, 705, 2536, 17, 22510, 6, 198, 60, 198 ]
2.071429
28
import sys # First: to understand the uses of "format" below, read these: # Format String Syntax https://docs.python.org/2/library/string.html#formatstrings # Format Specification Mini-Language https://docs.python.org/2/library/string.html#formatspec # In Python 2, there are two integer types: int, long. # int i...
[ 11748, 25064, 198, 198, 2, 3274, 25, 284, 1833, 262, 3544, 286, 366, 18982, 1, 2174, 11, 1100, 777, 25, 198, 2, 220, 220, 18980, 10903, 26375, 897, 3740, 1378, 31628, 13, 29412, 13, 2398, 14, 17, 14, 32016, 14, 8841, 13, 6494, 2, ...
2.618357
828
import os from sendDetailedEmail.email import MailAttachment if __name__=="__main__": clientEmail = input("input a valid client email ID: ") sendMail(clientEmail)
[ 11748, 28686, 198, 6738, 3758, 32080, 15333, 13, 12888, 1330, 11099, 8086, 15520, 198, 198, 361, 11593, 3672, 834, 855, 1, 834, 12417, 834, 1298, 198, 220, 220, 220, 5456, 15333, 796, 5128, 7203, 15414, 257, 4938, 5456, 3053, 4522, 25, ...
3.185185
54
from contextlib import contextmanager import pathlib import sys from typing import Union, List from .import_hook import PyFinder, PyHTTPFinder # Singleton instance of PyFinder pyfinder: PyFinder = None def _update_syspath(path: str): """ Append `path` to sys.path so that files in path can be imported """...
[ 6738, 4732, 8019, 1330, 4732, 37153, 198, 11748, 3108, 8019, 198, 11748, 25064, 198, 6738, 19720, 1330, 4479, 11, 7343, 198, 6738, 764, 11748, 62, 25480, 1330, 9485, 37, 5540, 11, 9485, 40717, 37, 5540, 198, 198, 2, 5573, 10565, 4554, ...
3.100423
946
#!/usr/bin/env python3 import uuid import click from rastervision.rv_config import RVConfig if __name__ == '__main__': batch_submit()
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 18, 198, 198, 11748, 334, 27112, 198, 198, 11748, 3904, 198, 198, 6738, 374, 1603, 10178, 13, 81, 85, 62, 11250, 1330, 31367, 16934, 628, 628, 198, 361, 11593, 3672, 834, 6624, 705, 834, ...
2.685185
54
from fastapi import APIRouter from models.item_model import Payload from service import item_service router = APIRouter()
[ 198, 6738, 3049, 15042, 1330, 3486, 4663, 39605, 198, 198, 6738, 4981, 13, 9186, 62, 19849, 1330, 7119, 2220, 198, 6738, 2139, 1330, 2378, 62, 15271, 198, 198, 472, 353, 796, 3486, 4663, 39605, 3419, 198 ]
3.472222
36
""" Docker Configurator http://www.github.com/EnigmaCurry/docker-configurator This tool creates self-configuring docker containers given a single YAML file. Run this script before your main docker CMD. It will write fresh config files on every startup of the container, based off of Mako templates embedded in the doc...
[ 37811, 198, 35, 12721, 17056, 333, 1352, 198, 4023, 1378, 2503, 13, 12567, 13, 785, 14, 4834, 13495, 34, 16682, 14, 45986, 12, 11250, 333, 1352, 628, 198, 1212, 2891, 8075, 2116, 12, 11250, 870, 36253, 16472, 1813, 257, 2060, 198, 56,...
3.255252
952
from datetime import date import boundaries boundaries.register('federal-electoral-districts', # The slug of the boundary set # The name of the boundary set for display. name='Federal electoral districts', # Generic singular name for a boundary from this set. Optional if the # boundary set's name ends...
[ 6738, 4818, 8079, 1330, 3128, 198, 198, 11748, 13215, 198, 198, 7784, 3166, 13, 30238, 10786, 69, 2110, 12, 9509, 6864, 12, 17080, 2012, 82, 3256, 1303, 383, 31065, 286, 262, 18645, 900, 198, 220, 220, 220, 1303, 383, 1438, 286, 262, ...
3.165441
816
# # from .subscriber import Subscriber from .logger import Logger from .constants import Constants from .events import Events # import json
[ 2, 198, 2, 198, 6738, 764, 7266, 1416, 24735, 1330, 3834, 1416, 24735, 198, 6738, 764, 6404, 1362, 1330, 5972, 1362, 198, 6738, 764, 9979, 1187, 1330, 4757, 1187, 198, 6738, 764, 31534, 1330, 18715, 198, 198, 2, 198, 11748, 33918, 198...
3.357143
42
''' Authentication methods for cs166 final project. ''' import random, hashlib from .db import retrieve_accounts lower_case = ['a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i', 'j', 'k', 'l', 'm', 'n', 'o', 'p', 'q', 'r', 's', 't', 'u', 'v', 'w', 'x', 'y', 'z'] upper_case = ['A', 'B', 'C', 'D', 'E', 'F', 'G', 'H', '...
[ 7061, 6, 628, 220, 220, 220, 48191, 5050, 329, 50115, 23055, 2457, 1628, 13, 198, 198, 7061, 6, 198, 198, 11748, 4738, 11, 12234, 8019, 198, 6738, 764, 9945, 1330, 19818, 62, 23317, 82, 198, 198, 21037, 62, 7442, 796, 37250, 64, 325...
2.515901
1,415
# coding: utf-8 """ @author: csy @license: (C) Copyright 2017-2018 @contact: wyzycao@gmail.com @time: 2018/11/22 @desc: """ import unittest from orm.data_base import Database
[ 2, 19617, 25, 3384, 69, 12, 23, 198, 37811, 198, 31, 9800, 25, 269, 1837, 198, 31, 43085, 25, 357, 34, 8, 15069, 2177, 12, 7908, 198, 31, 32057, 25, 266, 88, 7357, 66, 5488, 31, 14816, 13, 785, 198, 31, 2435, 25, 2864, 14, 115...
2.492958
71
import distutils from setuptools import setup try: from kervi.platforms.windows.version import VERSION except: VERSION = "0.0" try: distutils.dir_util.remove_tree("dist") except: pass setup( name='kervi-hal-win', version=VERSION, packages=[ "kervi/platforms/windows", ], in...
[ 11748, 1233, 26791, 198, 6738, 900, 37623, 10141, 1330, 9058, 198, 198, 28311, 25, 198, 220, 220, 220, 422, 479, 712, 72, 13, 24254, 82, 13, 28457, 13, 9641, 1330, 44156, 2849, 198, 16341, 25, 198, 220, 220, 220, 44156, 2849, 796, 3...
2.22807
171
import argparse import materia as mtr import dask.distributed if __name__ == "__main__": parser = argparse.ArgumentParser() parser.add_argument("--qcenv", type=str) parser.add_argument("--scratch", type=str) parser.add_argument("--dask_scratch", type=str) parser.add_argument("--num_evals", type=int...
[ 11748, 1822, 29572, 198, 11748, 26910, 544, 355, 285, 2213, 198, 11748, 288, 2093, 13, 17080, 6169, 198, 198, 361, 11593, 3672, 834, 6624, 366, 834, 12417, 834, 1298, 198, 220, 220, 220, 30751, 796, 1822, 29572, 13, 28100, 1713, 46677, ...
2.338667
375
# -*- coding: utf-8 -*- """Top-level package for simple.""" __author__ = """John Bridstrup""" __email__ = 'john.bridstrup@gmail.com' __version__ = '0.1.8' # import Data # import data_analysis # import kernels # import KMC # import running # import simple # import simulations # import statevector
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 198, 37811, 9126, 12, 5715, 5301, 329, 2829, 526, 15931, 198, 198, 834, 9800, 834, 796, 37227, 7554, 28320, 301, 12618, 37811, 198, 834, 12888, 834, 796, 705, 30686, 13,...
2.941176
102
# from traceback import TracebackException from django.contrib.auth.forms import UserCreationForm # from django.contrib.auth.models import User from django.contrib.auth import login, authenticate from django.contrib.auth.decorators import login_required from django.core.paginator import Paginator, EmptyPage, PageNotAn...
[ 2, 422, 12854, 1891, 1330, 34912, 1891, 16922, 198, 198, 6738, 42625, 14208, 13, 3642, 822, 13, 18439, 13, 23914, 1330, 11787, 12443, 341, 8479, 198, 2, 422, 42625, 14208, 13, 3642, 822, 13, 18439, 13, 27530, 1330, 11787, 198, 6738, 4...
2.456023
2,092
import discord import utils import inspect from discord.ext import commands from io import StringIO
[ 11748, 36446, 198, 11748, 3384, 4487, 198, 11748, 10104, 198, 198, 6738, 36446, 13, 2302, 1330, 9729, 198, 6738, 33245, 1330, 10903, 9399, 628, 198 ]
4.12
25