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 -*- from __future__ import absolute_import from __future__ import division from __future__ import print_function import sys import os import tensorflow as tf tf.logging.set_verbosity(tf.logging.INFO) ROOT_PATH = '/tmp/census_data' TRAIN_PATH = '/tmp/census_data/adult.data' EVAL_PATH =...
[ 2, 532, 9, 12, 19617, 25, 40477, 12, 23, 532, 9, 12, 201, 198, 6738, 11593, 37443, 834, 1330, 4112, 62, 11748, 201, 198, 6738, 11593, 37443, 834, 1330, 7297, 201, 198, 6738, 11593, 37443, 834, 1330, 3601, 62, 8818, 201, 198, 11748, ...
2.294801
1,981
#Escreva um programa que leia um valor em metros e o exiba convertido em centimetros e milimetros numero = float(input('Digite o nmero: ')) print('O valor de {} em centmetros : {}'.format(numero, numero * 100)) print('O valor de {} em milmetros : {}'.format(numero, numero * 1000))
[ 2, 47051, 260, 6862, 23781, 1430, 64, 8358, 443, 544, 23781, 1188, 273, 795, 1138, 4951, 304, 267, 409, 23718, 10385, 17305, 795, 1247, 38813, 4951, 304, 1465, 38813, 4951, 198, 198, 22510, 3529, 796, 12178, 7, 15414, 10786, 19511, 578,...
2.858586
99
#!/usr/bin/env python # Created by "Thieu" at 10:26, 02/03/2022 ----------% # Email: nguyenthieu2102@gmail.com % # Github: https://github.com/thieu1995 % ...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 198, 2, 15622, 416, 366, 817, 22304, 1, 379, 838, 25, 2075, 11, 7816, 14, 3070, 14, 1238, 1828, 24200, 438, 4, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 22...
2.13285
828
import random import math import time import copy allstudents = [] ################################################################ #ignore anything above this line #example students #add new ones by pasting more below here with this exact syntax #make sure to get the names right! #the first name is the person's na...
[ 11748, 4738, 198, 11748, 10688, 198, 11748, 640, 198, 11748, 4866, 198, 198, 439, 19149, 658, 796, 17635, 198, 198, 29113, 29113, 198, 2, 46430, 1997, 2029, 428, 1627, 628, 198, 2, 20688, 2444, 198, 2, 2860, 649, 3392, 416, 1613, 278,...
3.437428
1,726
import os import sys import time PATH = os.path.join(os.getcwd(), '..') sys.path.append(PATH) import cv2 import numpy as np import matplotlib.pyplot as plt from obj_avoidance import run_avoidance # for the reference label_dict = {1: 'wall', 2: 'floor', 3: 'plant', 4: 'ceiling', 5: 'furniture', 6: 'person'...
[ 11748, 28686, 201, 198, 11748, 25064, 201, 198, 11748, 640, 201, 198, 34219, 796, 28686, 13, 6978, 13, 22179, 7, 418, 13, 1136, 66, 16993, 22784, 705, 492, 11537, 201, 198, 17597, 13, 6978, 13, 33295, 7, 34219, 8, 201, 198, 201, 198...
2.123984
492
from datetime import timedelta import pytest from fastapi import HTTPException from pydantic import SecretStr from app.core.security import ( create_access_token, get_password_hash, get_user_id_from_token, verify_password, ) pytestmark = pytest.mark.asyncio
[ 6738, 4818, 8079, 1330, 28805, 12514, 198, 198, 11748, 12972, 9288, 198, 6738, 3049, 15042, 1330, 14626, 16922, 198, 6738, 279, 5173, 5109, 1330, 3943, 13290, 198, 198, 6738, 598, 13, 7295, 13, 12961, 1330, 357, 198, 220, 220, 220, 2251...
2.896907
97
from __future__ import absolute_import, division, print_function import logging import select import subprocess import fire import logzero import numpy as np from logzero import logger import itertools import scipy import scipy.optimize import cPickle as pickle logzero.loglevel(logging.DEBUG) def group(lst, n): ...
[ 6738, 11593, 37443, 834, 1330, 4112, 62, 11748, 11, 7297, 11, 3601, 62, 8818, 198, 198, 11748, 18931, 198, 11748, 2922, 198, 11748, 850, 14681, 198, 198, 11748, 2046, 198, 11748, 2604, 22570, 198, 11748, 299, 32152, 355, 45941, 198, 673...
2.461009
436
import logging from django.conf import settings logger = logging.getLogger(__name__)
[ 11748, 18931, 198, 198, 6738, 42625, 14208, 13, 10414, 1330, 6460, 198, 198, 6404, 1362, 796, 18931, 13, 1136, 11187, 1362, 7, 834, 3672, 834, 8, 628, 198 ]
3.178571
28
employees_data = [] while True: in_line = input() if 'filter base' == in_line: break [name, value] = filter(None, in_line.split(" -> ")) employees_data.append({name: check_type(value)}) criteria = input() separator = '=' * 20 result = '' for entry in range(len(employees_data)): for n...
[ 198, 198, 7033, 2841, 62, 7890, 796, 17635, 198, 198, 4514, 6407, 25, 198, 220, 220, 220, 287, 62, 1370, 796, 5128, 3419, 198, 220, 220, 220, 611, 705, 24455, 2779, 6, 6624, 287, 62, 1370, 25, 198, 220, 220, 220, 220, 220, 220, ...
2.462312
199
# Copyright (c) 2018 Graphcore Ltd. All rights reserved. # This script is run by the release agent to create a release of PopTorch
[ 2, 15069, 357, 66, 8, 2864, 29681, 7295, 12052, 13, 1439, 2489, 10395, 13, 198, 2, 770, 4226, 318, 1057, 416, 262, 2650, 5797, 284, 2251, 257, 2650, 286, 8099, 15884, 354, 628 ]
4
33
# -*- coding: utf-8 -*- """pytest configuration and top-level fixtures.""" __author__ = "Chris Lunsford" __author_email__ = "chrlunsf@cisco.com" __copyright__ = "Copyright (c) 2016-2018 Cisco and/or its affiliates." __license__ = "MIT" import os import string import tempfile import pytest from tes...
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 201, 198, 37811, 9078, 9288, 8398, 290, 1353, 12, 5715, 34609, 526, 15931, 201, 198, 201, 198, 201, 198, 834, 9800, 834, 796, 366, 15645, 406, 13271, 3841, 1, 201, 198, 834...
2.304038
421
from .hm_duration import *
[ 6738, 764, 23940, 62, 32257, 1330, 1635, 198 ]
3.375
8
from animations.color import base
[ 6738, 22407, 13, 8043, 1330, 2779, 628 ]
5
7
import math import torch import torch.nn as nn import torch.nn.functional as Func import torch.nn.init as init from nac import NeuralAccumulatorCell from torch.nn.parameter import Parameter
[ 11748, 10688, 198, 11748, 28034, 198, 11748, 28034, 13, 20471, 355, 299, 77, 198, 11748, 28034, 13, 20471, 13, 45124, 355, 11138, 66, 198, 11748, 28034, 13, 20471, 13, 15003, 355, 2315, 198, 198, 6738, 299, 330, 1330, 47986, 17320, 388,...
3.490909
55
''' Defines classes for coweb service bots. Copyright (c) The Dojo Foundation 2011. All Rights Reserved. Copyright (c) IBM Corporation 2008, 2011. All Rights Reserved. ''' # std lib import json import sys # coweb from .reqack import ReqAckDelegate def run(botClass): ''' Looks on the command line for informati...
[ 7061, 6, 198, 7469, 1127, 6097, 329, 9875, 1765, 2139, 29641, 13, 198, 198, 15269, 357, 66, 8, 383, 2141, 7639, 5693, 2813, 13, 1439, 6923, 33876, 13, 198, 15269, 357, 66, 8, 19764, 10501, 3648, 11, 2813, 13, 1439, 6923, 33876, 13, ...
2.858238
261
import logging, sys, XenAPI, os, time sys.path.insert(0, '../../') # ssid: snapshot id # number: how many instances to create main()
[ 11748, 18931, 11, 25064, 11, 21173, 17614, 11, 28686, 11, 640, 198, 198, 17597, 13, 6978, 13, 28463, 7, 15, 11, 705, 40720, 40720, 11537, 198, 198, 2, 264, 30255, 25, 27479, 4686, 198, 2, 1271, 25, 703, 867, 10245, 284, 2251, 628, ...
2.956522
46
#example pagination parameter having total_pages from backend #example list api view #example url urlspattern = [ re_path(r'^api/v2/visits/', VisitAPIView.as_view(), name="visits_api"), ]
[ 198, 198, 2, 20688, 42208, 1883, 11507, 1719, 2472, 62, 31126, 422, 30203, 220, 628, 198, 2, 20688, 1351, 40391, 1570, 220, 628, 198, 198, 2, 20688, 19016, 198, 6371, 2777, 265, 759, 796, 685, 198, 197, 260, 62, 6978, 7, 81, 6, 61...
2.702703
74
import pandas as pd from vivarium.framework.engine import Builder from vivarium.framework.population import SimulantData from vivarium.framework.event import Event
[ 11748, 19798, 292, 355, 279, 67, 198, 198, 6738, 410, 452, 17756, 13, 30604, 13, 18392, 1330, 35869, 198, 6738, 410, 452, 17756, 13, 30604, 13, 39748, 1330, 3184, 377, 415, 6601, 198, 6738, 410, 452, 17756, 13, 30604, 13, 15596, 1330,...
3.772727
44
import logging from threading import Timer from tencentcloud.ssm.v20190923 import models, ssm_client from tencentcloud.common.profile import client_profile from tencentcloud.common import credential from tencentcloud.common.exception.tencent_cloud_sdk_exception import TencentCloudSDKException def __get_client(sec...
[ 11748, 18931, 198, 6738, 4704, 278, 1330, 5045, 263, 198, 6738, 3478, 1087, 17721, 13, 824, 76, 13, 85, 23344, 2931, 1954, 1330, 4981, 11, 264, 5796, 62, 16366, 198, 6738, 3478, 1087, 17721, 13, 11321, 13, 13317, 1330, 5456, 62, 13317...
2.485554
1,246
"""Test cases for lane.py.""" import os import unittest from typing import Dict import numpy as np from .lane import ( eval_lane_per_threshold, evaluate_lane_marking, get_foreground, get_lane_class, sub_task_funcs, ) if __name__ == "__main__": unittest.main()
[ 37811, 14402, 2663, 329, 11193, 13, 9078, 526, 15931, 198, 11748, 28686, 198, 11748, 555, 715, 395, 198, 6738, 19720, 1330, 360, 713, 198, 198, 11748, 299, 32152, 355, 45941, 198, 198, 6738, 764, 33533, 1330, 357, 198, 220, 220, 220, ...
2.466102
118
from PIL import Image, ImageDraw, ImageFont from urllib.request import Request, urlopen from urllib.parse import quote, unquote import json import pytz import os from calendarhelper import getCaldavEvents, calendarEvent from datetime import datetime, date, timedelta, tzinfo, timezone from tzlocal import get_localzone f...
[ 6738, 350, 4146, 1330, 7412, 11, 7412, 25302, 11, 7412, 23252, 198, 6738, 2956, 297, 571, 13, 25927, 1330, 19390, 11, 19016, 9654, 198, 6738, 2956, 297, 571, 13, 29572, 1330, 9577, 11, 555, 22708, 198, 11748, 33918, 198, 11748, 12972, ...
2.293423
593
# # PySNMP MIB module ZXR10-MIB (http://snmplabs.com/pysmi) # ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/ZXR10-MIB # Produced by pysmi-0.3.4 at Wed May 1 15:48:21 2019 # On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4 # Using Python version 3.7.3 (default, Mar 27 2019, 09:23...
[ 2, 198, 2, 9485, 15571, 7378, 337, 9865, 8265, 1168, 55, 49, 940, 12, 8895, 33, 357, 4023, 1378, 16184, 76, 489, 8937, 13, 785, 14, 79, 893, 11632, 8, 198, 2, 7054, 45, 13, 16, 2723, 2393, 1378, 14, 14490, 14, 67, 615, 47562, ...
2.51455
46,254
# please set your own SECRET_KEY to a long random string # SECRET_KEY = ""
[ 2, 3387, 900, 534, 898, 10729, 26087, 62, 20373, 284, 257, 890, 4738, 4731, 198, 2, 10729, 26087, 62, 20373, 796, 13538, 198 ]
3.26087
23
# coding=utf-8 # *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** import warnings import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union, overload from .. import...
[ 2, 19617, 28, 40477, 12, 23, 198, 2, 17202, 39410, 25, 428, 2393, 373, 7560, 416, 262, 21624, 12994, 24118, 687, 10290, 357, 27110, 5235, 8, 16984, 13, 17202, 198, 2, 17202, 2141, 407, 4370, 416, 1021, 4556, 345, 821, 1728, 345, 760...
2.165885
1,706
from bingads.v13.bulk.entities import * from bingads.service_client import _CAMPAIGN_OBJECT_FACTORY_V13 from bingads.v13.internal.bulk.entities.single_record_bulk_entity import _SingleRecordBulkEntity from bingads.v13.internal.bulk.mappings import _SimpleBulkMapping from bingads.v13.internal.bulk.string_table import _S...
[ 6738, 275, 278, 5643, 13, 85, 1485, 13, 65, 12171, 13, 298, 871, 1330, 1635, 198, 6738, 275, 278, 5643, 13, 15271, 62, 16366, 1330, 4808, 34, 2390, 4537, 16284, 62, 9864, 23680, 62, 37, 10659, 15513, 62, 53, 1485, 198, 6738, 275, ...
2.902778
144
import json import logging import logging.handlers import os import re import subprocess import types import uuid import librosa import numpy as np import torch from shutil import rmtree from librosa.filters import mel as librosa_mel_fn from scipy.io import wavfile from daft_exprt.symbols import ascii, eos, punctua...
[ 11748, 33918, 198, 11748, 18931, 198, 11748, 18931, 13, 4993, 8116, 198, 11748, 28686, 198, 11748, 302, 198, 11748, 850, 14681, 198, 11748, 3858, 198, 11748, 334, 27112, 198, 198, 11748, 9195, 4951, 64, 198, 11748, 299, 32152, 355, 45941,...
2.245839
10,755
# Copyright (c) 2020-2021, NVIDIA CORPORATION from typing import TypeVar, Union import geopandas as gpd import pandas as pd from geopandas.geoseries import GeoSeries as gpGeoSeries import cudf from cuspatial.geometry.geoarrowbuffers import GeoArrowBuffers from cuspatial.geometry.geocolumn import GeoColumn, GeoMeta ...
[ 2, 15069, 357, 66, 8, 12131, 12, 1238, 2481, 11, 15127, 23929, 44680, 6234, 198, 198, 6738, 19720, 1330, 5994, 19852, 11, 4479, 198, 198, 11748, 30324, 392, 292, 355, 27809, 67, 198, 11748, 19798, 292, 355, 279, 67, 198, 6738, 30324, ...
2.49884
431
#!/usr/bin/env python import os import sys from ete3 import Tree import shutil import math import myfunc from colour import Color blue = Color("blue") red = Color("red") from itolapi import Itol from itolapi import ItolExport rundir = os.path.dirname(os.path.realpath(__file__)) usage=""" USAGE: itol_pfamtree.py [-...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 198, 198, 11748, 28686, 198, 11748, 25064, 198, 6738, 304, 660, 18, 1330, 12200, 198, 11748, 4423, 346, 198, 11748, 10688, 198, 11748, 616, 20786, 198, 6738, 9568, 1330, 5315, 198, 17585, 796...
2.354205
6,468
"create 2D point set for Howorka model where force shall be evaluated." import numpy as np from itertools import product import math import matplotlib.pyplot as plt import nanopores gauss = np.polynomial.legendre.leggauss nanopores.add_params( h = 0.5, hout = 1., Ry = 10., Rx = 3., ) # load parame...
[ 1, 17953, 362, 35, 966, 900, 329, 1374, 967, 64, 2746, 810, 2700, 2236, 307, 16726, 526, 198, 11748, 299, 32152, 355, 45941, 198, 6738, 340, 861, 10141, 1330, 1720, 198, 11748, 10688, 198, 11748, 2603, 29487, 8019, 13, 9078, 29487, 35...
2.452381
294
import math """ Class Calculator This class does some simple mathematic operations. """
[ 11748, 10688, 198, 198, 37811, 198, 9487, 43597, 198, 198, 1212, 1398, 857, 617, 2829, 33161, 4560, 13, 198, 37811, 628 ]
4.333333
21
import subprocess import shlex import re import json
[ 11748, 850, 14681, 198, 11748, 427, 2588, 198, 11748, 302, 198, 11748, 33918, 628 ]
3.857143
14
# -*- coding: utf8 -*- """ Convert REST JSON dict to DNSRecordBase classes """ import logging log = logging.getLogger(__name__) from datetime import timedelta from .dnsrecords import DNSRecordBase
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 23, 532, 9, 12, 198, 37811, 198, 3103, 1851, 30617, 19449, 8633, 284, 18538, 23739, 14881, 6097, 198, 37811, 198, 198, 11748, 18931, 198, 198, 6404, 796, 18931, 13, 1136, 11187, 1362, 7, 834, 3672...
3.028986
69
import sys import tkinter as tk import tkinter.font as tkfont import tkinter.filedialog as tkfile import tkinter.messagebox as tkmessage import argparse import ctypes import platform import signal def Libs(): # returns a dict s_lib={} for ss in range(2,7): # Shared C library lib_base = "./" #location lib_b...
[ 11748, 25064, 198, 11748, 256, 74, 3849, 355, 256, 74, 198, 11748, 256, 74, 3849, 13, 10331, 355, 256, 74, 10331, 198, 11748, 256, 74, 3849, 13, 69, 3902, 498, 519, 355, 256, 74, 7753, 198, 11748, 256, 74, 3849, 13, 20500, 3524, 3...
2.43932
412
import scipy.io.wavfile as siow import scipy.signal as ssr import matplotlib.pyplot as plt import numpy as np import math def groupNumpy(to_group_array, interval, debug=True): ''' Breaks numpy array into an array of arrays. Where each array is <interval> long. Inputs: to_group_array - array we wish to brea...
[ 11748, 629, 541, 88, 13, 952, 13, 45137, 7753, 355, 33721, 322, 220, 198, 11748, 629, 541, 88, 13, 12683, 282, 355, 264, 27891, 198, 11748, 2603, 29487, 8019, 13, 9078, 29487, 355, 458, 83, 198, 11748, 299, 32152, 355, 45941, 198, 1...
2.656947
583
from binding import BindableProperty def test_nesting(): a = A(1) b = B(2) a.bind_x_to(b.y) assert a.x == 1 and b.y == 1
[ 6738, 12765, 1330, 41211, 540, 21746, 198, 198, 4299, 1332, 62, 77, 37761, 33529, 628, 220, 220, 220, 257, 796, 317, 7, 16, 8, 198, 220, 220, 220, 275, 796, 347, 7, 17, 8, 628, 220, 220, 220, 257, 13, 21653, 62, 87, 62, 1462, ...
2.089552
67
import os import sys import random import math from time import * import decimal print('Minecraft Resource Calculator') print('Enter the individual items and the calculator will') print('tell you how many chest or stacks it is!') print('*Only works for items that stack up to 64*') sleep(1) while True: ...
[ 11748, 28686, 201, 198, 11748, 25064, 201, 198, 11748, 4738, 201, 198, 11748, 10688, 201, 198, 6738, 640, 1330, 1635, 201, 198, 11748, 32465, 201, 198, 201, 198, 4798, 10786, 39194, 20857, 43597, 11537, 201, 198, 4798, 10786, 17469, 262, ...
2.44582
323
# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! """Client and server classes corresponding to protobuf-defined services.""" import grpc from google.protobuf import empty_pb2 as google_dot_protobuf_dot_empty__pb2 from spaceone.api.identity.v1 import domain_owner_pb2 as spaceone_dot_api_dot_identit...
[ 2, 2980, 515, 416, 262, 308, 49, 5662, 11361, 8435, 17050, 13877, 13, 8410, 5626, 48483, 0, 198, 37811, 11792, 290, 4382, 6097, 11188, 284, 1237, 672, 3046, 12, 23211, 2594, 526, 15931, 198, 11748, 1036, 14751, 198, 198, 6738, 23645, ...
2.197757
981
import json import os from udpipe import Model from conllu import parse from collections import OrderedDict model_map = { 'en': 'udpipe/english-ewt-ud-2.5-191206.udpipe', 'zh': 'udpipe/chinese-gsd-ud-2.5-191206.udpipe', 'ar': 'udpipe/arabic-padt-ud-2.5-191206.udpipe' } def find_span(offsets, begin_offset...
[ 11748, 33918, 198, 11748, 28686, 198, 6738, 334, 26059, 3757, 1330, 9104, 198, 6738, 369, 297, 84, 1330, 21136, 198, 6738, 17268, 1330, 14230, 1068, 35, 713, 198, 198, 19849, 62, 8899, 796, 1391, 198, 220, 220, 220, 705, 268, 10354, 7...
1.955861
1,382
""" Module to distribute the S3 download over a spark cluster Useful when the data is highly partitioned and unable to be loaded by standard methods Results end up in a table Usage: ``` from parallel_fetch import DbricksParallelFetch # define the aws_bucket and output_dir for the s3_fetch to...
[ 37811, 198, 220, 220, 220, 19937, 284, 14983, 262, 311, 18, 4321, 625, 257, 9009, 13946, 198, 220, 220, 220, 49511, 618, 262, 1366, 318, 4047, 18398, 276, 290, 5906, 284, 307, 9639, 416, 3210, 5050, 198, 220, 220, 220, 15691, 886, 5...
3.053191
282
def merge(left, right): """Merge sort merging function.""" merged_array=[] while left or right: if not left: merged_array.append(right.pop()) elif (not right) or left[-1] > right[-1]: merged_array.append(left.pop()) else: merged_array.append(right.pop()) merged_array.reverse() return merged_array d...
[ 4299, 20121, 7, 9464, 11, 826, 2599, 198, 197, 37811, 13102, 469, 3297, 35981, 2163, 526, 15931, 198, 197, 647, 2004, 62, 18747, 28, 21737, 198, 197, 4514, 1364, 393, 826, 25, 198, 197, 197, 361, 407, 1364, 25, 198, 197, 197, 197, ...
2.688312
231
# -*- coding: utf-8 -*- from bs4 import BeautifulSoup import urllib.request as urllib2 import re import pickle import logging import ssl import urllib.parse import base64 from datetime import datetime,timedelta from time import sleep import time import os import discord from dotenv import load_dotenv import requests #i...
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 6738, 275, 82, 19, 1330, 23762, 50, 10486, 198, 11748, 2956, 297, 571, 13, 25927, 355, 2956, 297, 571, 17, 198, 11748, 302, 198, 11748, 2298, 293, 198, 11748, 18931, 1...
2.777929
734
print("Hello, world") while True: txt = input('Digite um valor: ') print(eval(txt))
[ 4798, 7203, 15496, 11, 995, 4943, 198, 198, 4514, 6407, 25, 198, 220, 220, 220, 256, 742, 796, 5128, 10786, 19511, 578, 23781, 1188, 273, 25, 705, 8, 198, 220, 220, 220, 3601, 7, 18206, 7, 14116, 4008 ]
2.421053
38
from django.shortcuts import render_to_response from .forms import * from django.contrib.auth.decorators import login_required from django.contrib.auth import logout from django.views.decorators.csrf import csrf_protect from django.http import HttpResponseRedirect from django.template import RequestContext
[ 6738, 42625, 14208, 13, 19509, 23779, 1330, 8543, 62, 1462, 62, 26209, 198, 198, 6738, 764, 23914, 1330, 1635, 198, 6738, 42625, 14208, 13, 3642, 822, 13, 18439, 13, 12501, 273, 2024, 1330, 17594, 62, 35827, 198, 6738, 42625, 14208, 13,...
3.5
88
#!/usr/bin/env python import os from assembler import Assembler from optionresolver import OptionResolver from patchers import PatchManager, PatchPatcher # Get the user supplied options options = OptionResolver() # Assemble the source code assembler = Assembler(options.manifest()["projects"], options.destination(), o...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 198, 11748, 28686, 198, 6738, 11156, 1754, 1330, 1081, 4428, 1754, 198, 6738, 3038, 411, 14375, 1330, 16018, 4965, 14375, 198, 6738, 1458, 3533, 1330, 17106, 13511, 11, 17106, 12130, 2044, 198,...
3.551724
174
d1 = {} d2 = {'one': 1, 'two': 2 } d3 = dict(one=1, two=2) d4 = dict((1, 2), (3, 4)) d5 = dict({1:2, 3:4})
[ 67, 16, 796, 23884, 198, 67, 17, 796, 1391, 6, 505, 10354, 352, 11, 705, 11545, 10354, 362, 1782, 628, 198, 67, 18, 796, 8633, 7, 505, 28, 16, 11, 734, 28, 17, 8, 198, 198, 67, 19, 796, 8633, 19510, 16, 11, 362, 828, 357, 18...
1.681818
66
CHANNEL_ACCESS_TOKEN = r'YOUR CHANNEL ACCESS TOKEN' CHANNEL_SECRET = r'YOUR CHANNEL SECRET' STR_CURRENT_STATUS_RESPOND = ("{current_status}\n" + "1.\n" + "2." ) STR_CURRENT_STATUS = r'' STR_ACTIVATE_BOT = r'' STR_DEACTIVATE_BOT = ...
[ 3398, 22846, 3698, 62, 26861, 7597, 62, 10468, 43959, 796, 374, 6, 56, 11698, 5870, 22846, 3698, 15859, 7597, 5390, 43959, 6, 198, 3398, 22846, 3698, 62, 23683, 26087, 796, 374, 6, 56, 11698, 5870, 22846, 3698, 10729, 26087, 6, 198, 1...
1.712727
275
# coding=utf-8 import logging import os import time
[ 2, 19617, 28, 40477, 12, 23, 198, 198, 11748, 18931, 198, 11748, 28686, 198, 11748, 640 ]
3.25
16
import pigpio import time ROTATION = 2 STEP_PER_ROTATE = 200 MICROSTEP = 16 ENABLE = 10 MS1 = 9 MS2 = 11 MS3 = 5 RESET = 6 SLEEP = 13 STEP = 19 DIR = 26 WAIT = 0.005 pi = pigpio.pi() for pin in [ENABLE, MS1, MS2, MS3, RESET, SLEEP, STEP, DIR]: pi.set_mode(pin, pigpio.OUTPUT) pi.write(RESET, 0) pi.write(SLEEP...
[ 11748, 12967, 79, 952, 198, 11748, 640, 198, 198, 49, 2394, 6234, 796, 362, 198, 42135, 62, 18973, 62, 49, 2394, 6158, 796, 939, 198, 49884, 49, 10892, 8905, 796, 1467, 198, 198, 1677, 17534, 796, 838, 198, 5653, 16, 796, 860, 198, ...
1.962145
317
#!/Users/richard/anaconda3/bin/python3 """Launch app using Anaconda 3.""" from views.interface import MerlinMotionControlApp if __name__ == "__main__": MerlinMotionControlApp().run()
[ 2, 48443, 14490, 14, 7527, 446, 14, 272, 330, 13533, 18, 14, 8800, 14, 29412, 18, 198, 198, 37811, 38296, 598, 1262, 1052, 330, 13533, 513, 526, 15931, 198, 198, 6738, 5009, 13, 39994, 1330, 32918, 45740, 15988, 4677, 628, 198, 361, ...
3.031746
63
# Copyright The Cloud Custodian Authors. # SPDX-License-Identifier: Apache-2.0 import jmespath from googleapiclient.errors import HttpError from c7n_gcp.provider import resources from c7n_gcp.query import QueryResourceManager, TypeInfo
[ 2, 15069, 383, 10130, 40619, 375, 666, 46665, 13, 198, 2, 30628, 55, 12, 34156, 12, 33234, 7483, 25, 24843, 12, 17, 13, 15, 198, 11748, 474, 6880, 6978, 198, 6738, 23645, 499, 291, 75, 1153, 13, 48277, 1330, 367, 29281, 12331, 198, ...
3.216216
74
import numpy as np from math import hypot as hyp
[ 11748, 299, 32152, 355, 45941, 198, 6738, 10688, 1330, 8813, 355, 5328, 628 ]
3.846154
13
import unittest from uuid import uuid4 from os import path from .client import CLIENT from ...settings import ( BucketSettings, UploadSettings, PartSettings, CopyFileSettings ) from ...models.file import FileModel, PartModel from ...bucket.blocking import BlockingFile
[ 11748, 555, 715, 395, 198, 198, 6738, 334, 27112, 1330, 334, 27112, 19, 198, 6738, 28686, 1330, 3108, 198, 198, 6738, 764, 16366, 1330, 45148, 198, 198, 6738, 2644, 33692, 1330, 357, 198, 220, 220, 220, 48353, 26232, 11, 198, 220, 220...
3.306818
88
import sys from os import path sys.path.append( path.dirname( path.dirname( path.abspath(__file__) ) ) ) import unittest from csv_dataset import * if __name__ == "__main__": unittest.main()
[ 11748, 25064, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220,...
1.737805
164
from crispy_forms.helper import ( FormHelper, Layout ) from crispy_forms.layout import ( HTML, Fieldset, Submit ) from django import forms from django.urls import reverse from django.utils.translation import gettext_lazy as _ from shop import models
[ 6738, 42807, 62, 23914, 13, 2978, 525, 1330, 357, 198, 220, 220, 220, 5178, 47429, 11, 47639, 198, 8, 198, 6738, 42807, 62, 23914, 13, 39786, 1330, 357, 198, 220, 220, 220, 11532, 11, 7663, 2617, 11, 39900, 198, 8, 198, 6738, 42625,...
3.3
80
import csv import json json_files = ['generated_names', 'registered_names', 'used_names'] for jf in json_files: infile = open('data/{}.json'.format(jf), 'r') outfile = open('data/{}.csv'.format(jf), 'w') print('{} > {}'.format(infile, outfile)) writer = csv.DictWriter(outfile, fieldnames=['na...
[ 11748, 269, 21370, 201, 198, 11748, 33918, 201, 198, 201, 198, 17752, 62, 16624, 796, 37250, 27568, 62, 14933, 3256, 705, 33736, 62, 14933, 3256, 705, 1484, 62, 14933, 20520, 201, 198, 201, 198, 1640, 474, 69, 287, 33918, 62, 16624, 2...
2.19863
292
# Generated by Django 3.2.7 on 2022-02-08 23:41 from django.db import migrations, models
[ 2, 2980, 515, 416, 37770, 513, 13, 17, 13, 22, 319, 33160, 12, 2999, 12, 2919, 2242, 25, 3901, 198, 198, 6738, 42625, 14208, 13, 9945, 1330, 15720, 602, 11, 4981, 628 ]
2.84375
32
import asyncio import logging from unittest import TestCase from rest_api_py_lib import BitsgapClient from tests.keys import public_key,private_key
[ 11748, 30351, 952, 198, 11748, 18931, 198, 6738, 555, 715, 395, 1330, 6208, 20448, 198, 6738, 1334, 62, 15042, 62, 9078, 62, 8019, 1330, 44733, 43554, 11792, 198, 6738, 5254, 13, 13083, 1330, 1171, 62, 2539, 11, 19734, 62, 2539, 628 ]
3.634146
41
"""CFNgin hook for cleaning up resources prior to CFN stack deletion.""" # TODO move to runway.cfngin.hooks on next major release import logging from botocore.exceptions import ClientError from ..cfngin.lookups.handlers.output import OutputLookup from ..cfngin.lookups.handlers.rxref import RxrefLookup from ..cfngin.l...
[ 37811, 22495, 45, 1655, 8011, 329, 12724, 510, 4133, 3161, 284, 18551, 45, 8931, 39948, 526, 15931, 198, 2, 16926, 46, 1445, 284, 23443, 13, 12993, 782, 259, 13, 25480, 82, 319, 1306, 1688, 2650, 198, 11748, 18931, 198, 198, 6738, 102...
2.259605
963
import snowflake.connector as snowcon import json import getpass import sys if __name__=='__main__': print("Don't call directly. Install package and import as a class.") sf = Snowflake() sf.set_environment_settings("ETL_PULL", "ST_WEB", "ST_WEB_WH_PROD_ETL", "WEB_PROD") print(sf.get_snowflake_versio...
[ 11748, 6729, 47597, 13, 8443, 273, 355, 6729, 1102, 198, 11748, 33918, 198, 11748, 651, 6603, 198, 11748, 25064, 628, 198, 361, 11593, 3672, 834, 855, 6, 834, 12417, 834, 10354, 198, 220, 220, 220, 3601, 7203, 3987, 470, 869, 3264, 13...
2.620968
124
# ============================================================================= # Author: Teerapat Jenrungrot - https://github.com/mjenrungrot/ # FileName: 12916.py # Description: UVa Online Judge - 12916 # ============================================================================= N = int(inpu...
[ 2, 38093, 25609, 198, 2, 220, 6434, 25, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1665, 263, 499, 265, 13364, 81, 2150, 10599, 532, 3740, 1378, 12567, 13, 785, 14, 76, 48796, 81, 2150, 10599, 14, 198, 2, 220, 9220, 5376, 25, ...
2.400735
272
#!/usr/bin/env docker-script #!python:latest python import os, sys details = os.uname() print('Uname: ', details.sysname, details.release, details.machine) print('Guest CWD:', os.getcwd()) print('Host CWD: ', os.environ['HOST_CWD']) print('argv: ', sys.argv)
[ 2, 48443, 14629, 14, 8800, 14, 24330, 36253, 12, 12048, 198, 2, 0, 29412, 25, 42861, 21015, 198, 11748, 28686, 11, 25064, 198, 198, 36604, 796, 28686, 13, 403, 480, 3419, 198, 198, 4798, 10786, 3118, 480, 25, 220, 220, 220, 46083, 3...
2.528302
106
#### Startup ## import random from time import sleep as s names = [] thirdPlace = [] for x in range(1, 33): print("Name", x) name = input("Please enter a name: ") names.append(name) #print(names) ## This line is for bug fixing, uncomments if you want to check all the names are in the list. p...
[ 4242, 40472, 22492, 201, 198, 11748, 4738, 201, 198, 6738, 640, 1330, 3993, 355, 264, 201, 198, 14933, 796, 17635, 201, 198, 17089, 27271, 796, 17635, 201, 198, 201, 198, 1640, 2124, 287, 2837, 7, 16, 11, 4747, 2599, 201, 198, 220, ...
2.487746
3,754
import json import os from hashlib import md5 from unittest.mock import Mock import pytest from common.tests import factories from hmrc_sdes.api_client import HmrcSdesClient pytestmark = pytest.mark.django_db
[ 11748, 33918, 198, 11748, 28686, 198, 6738, 12234, 8019, 1330, 45243, 20, 198, 6738, 555, 715, 395, 13, 76, 735, 1330, 44123, 198, 198, 11748, 12972, 9288, 198, 198, 6738, 2219, 13, 41989, 1330, 17590, 198, 6738, 289, 76, 6015, 62, 82...
3.028169
71
# -*- coding: utf-8 -*-
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 201, 198, 201, 198 ]
1.588235
17
# Hero's Inventory 2.0 # Demonstrates tuples # create a tuple with some items and display with a for loop inventory = ("sword", "armor", "shield", "healing potion") print("Your items:") for item in inventory: print(item) input("\nPress the enter key to continue.") # get the...
[ 2, 8757, 338, 35772, 362, 13, 15, 198, 2, 7814, 2536, 689, 12777, 2374, 198, 198, 2, 2251, 257, 46545, 351, 617, 3709, 290, 3359, 351, 257, 329, 9052, 198, 24807, 796, 5855, 30553, 1600, 198, 220, 220, 220, 220, 220, 220, 220, 220...
3.142157
408
# Copyright 2021 The Jax Influence 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/LICENSE-2.0 # # Unless required by applicable law or agreed ...
[ 2, 15069, 33448, 383, 449, 897, 35948, 46665, 13, 198, 2, 198, 2, 49962, 739, 262, 24843, 13789, 11, 10628, 362, 13, 15, 357, 1169, 366, 34156, 15341, 198, 2, 345, 743, 407, 779, 428, 2393, 2845, 287, 11846, 351, 262, 13789, 13, 1...
3.136722
1,141
"""Plugin to process the data retrieved from `gcpcloud.CureIAM` plugin """ import json import logging import datetime from CureIAM.models.iamriskscore import IAMRiskScoreModel from CureIAM.models.applyrecommendationmodel import IAMApplyRecommendationModel from CureIAM import util _log = logging.getLogger(__name__)
[ 37811, 37233, 284, 1429, 262, 1366, 29517, 422, 4600, 70, 13155, 17721, 13, 34, 495, 40, 2390, 63, 13877, 198, 37811, 198, 198, 11748, 33918, 198, 11748, 18931, 198, 11748, 4818, 8079, 198, 198, 6738, 36947, 40, 2390, 13, 27530, 13, 1...
3.357895
95
from bitstring import BitArray, BitStream # Definition of constants KEY_SIZE = 128 REGISTER_SIZE = 128 LAST_INDEX = 127 INITIALIZATION_CLOCKS = 256 if __name__ == '__main__': # Define number of rounds NO_ROUNDS = 25 ONES_PADDING = BitArray('0xFFFFFFFF') # Test vector of GRAIN(128 bit key) # ...
[ 6738, 1643, 8841, 1330, 4722, 19182, 11, 4722, 12124, 198, 198, 2, 30396, 286, 38491, 198, 20373, 62, 33489, 796, 13108, 198, 31553, 41517, 62, 33489, 796, 13108, 198, 43, 11262, 62, 12115, 6369, 796, 18112, 198, 1268, 2043, 12576, 1488...
2.481752
548
#!/usr/bin/env python # The MIT License (MIT) # # Copyright (c) 2013 Bartosz Zaczynski # # 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...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 198, 198, 2, 383, 17168, 13789, 357, 36393, 8, 198, 2, 198, 2, 15069, 357, 66, 8, 2211, 13167, 418, 89, 44922, 47143, 198, 2, 198, 2, 2448, 3411, 318, 29376, 7520, 11, 1479, 286, 3877, ...
3.515012
433
# -*- coding: utf-8 -*- """Abstract model definition.""" from collections import OrderedDict import numpy as np import torch import torch.nn as nn
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 37811, 23839, 2746, 6770, 526, 15931, 198, 198, 6738, 17268, 1330, 14230, 1068, 35, 713, 198, 198, 11748, 299, 32152, 355, 45941, 198, 11748, 28034, 198, 11748, 28034, 13,...
3.125
48
# Generated by Django 2.2 on 2021-05-01 07:31 from django.db import migrations
[ 2, 2980, 515, 416, 37770, 362, 13, 17, 319, 33448, 12, 2713, 12, 486, 8753, 25, 3132, 198, 198, 6738, 42625, 14208, 13, 9945, 1330, 15720, 602, 628 ]
2.892857
28
import fire from configparser import ConfigParser from utils.processing import str_to_sql_dict from utils.validation import * from utils.logging import * from parse.worker import Worker from output.cmd import beautify from output.mermaid import Mermaid from output.json import to_json from typing import Optional, List f...
[ 11748, 2046, 198, 6738, 4566, 48610, 1330, 17056, 46677, 198, 6738, 3384, 4487, 13, 36948, 1330, 965, 62, 1462, 62, 25410, 62, 11600, 198, 6738, 3384, 4487, 13, 12102, 341, 1330, 1635, 198, 6738, 3384, 4487, 13, 6404, 2667, 1330, 1635, ...
3.482456
114
from win32gui import GetWindowText, GetForegroundWindow old = "" while True: new =GetWindowText(GetForegroundWindow()) if old != new: # print(new) if new.lower().find("inkscape")>0: print("OK") old = new
[ 198, 6738, 1592, 2624, 48317, 1330, 3497, 27703, 8206, 11, 3497, 16351, 2833, 27703, 198, 198, 727, 796, 13538, 198, 4514, 6407, 25, 198, 220, 220, 220, 649, 796, 3855, 27703, 8206, 7, 3855, 16351, 2833, 27703, 28955, 628, 220, 220, 2...
2.330275
109
from django.contrib.auth import get_user_model from rest_framework.reverse import reverse_lazy from rest_framework.test import APITestCase from rest_framework import status from django.contrib.auth.hashers import make_password User = get_user_model()
[ 6738, 42625, 14208, 13, 3642, 822, 13, 18439, 1330, 651, 62, 7220, 62, 19849, 198, 6738, 1334, 62, 30604, 13, 50188, 1330, 9575, 62, 75, 12582, 198, 6738, 1334, 62, 30604, 13, 9288, 1330, 3486, 2043, 395, 20448, 198, 6738, 1334, 62, ...
3.527778
72
import configparser import os from pyspark.sql import SparkSession, Window from pyspark.sql.functions import col, asc, desc from pyspark.sql.functions import date_format, row_number, monotonically_increasing_id from pyspark.sql.functions import year, month, dayofmonth, hour, weekofyear, date_format from pyspark.sql.typ...
[ 11748, 4566, 48610, 198, 11748, 28686, 198, 6738, 279, 893, 20928, 13, 25410, 1330, 17732, 36044, 11, 26580, 198, 6738, 279, 893, 20928, 13, 25410, 13, 12543, 2733, 1330, 951, 11, 10570, 11, 1715, 198, 6738, 279, 893, 20928, 13, 25410, ...
2.926661
5,645
# Savital https://github.com/Savital # Reads data from proc import os
[ 2, 8858, 1287, 3740, 1378, 12567, 13, 785, 14, 47362, 1287, 198, 2, 4149, 82, 1366, 422, 13834, 198, 198, 11748, 28686, 198 ]
3.086957
23
from django.test import TestCase from django.contrib.auth import get_user_model from .models import Entry
[ 6738, 42625, 14208, 13, 9288, 1330, 6208, 20448, 198, 6738, 42625, 14208, 13, 3642, 822, 13, 18439, 1330, 651, 62, 7220, 62, 19849, 198, 198, 6738, 764, 27530, 1330, 21617, 198 ]
3.451613
31
# grows via 2^n/2 # fn= { 0 ; n=0 # 1 ; n=1 # f(n-1)+f(n-2) ; n>1} # for f(n)>n it will take very long time to compute # bad algo """ F(n) / \ f(n-1) f(n-2) / \ / \ f(n-2) f(n...
[ 2, 13676, 2884, 362, 61, 77, 14, 17, 201, 198, 2, 24714, 28, 1391, 220, 657, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2162, 299, 28, 15, 201, 198, 2, 220, 220, 220, 220, 220, 220, 352, 220, 220, 220, 220, ...
1.589789
568
import time import turtle as t t.mode('standard') t.speed(8) DISTANCE = 8 RESIZE_RATIO = 6 t.pensize(RESIZE_RATIO) def function(self, _function, trace_size: float = 0.1, x_range: tuple = (), y_range: tuple = ()): restorer = Restorer() for index in range(trace_size, trace_size): y = ...
[ 11748, 640, 198, 11748, 28699, 355, 256, 198, 198, 83, 13, 14171, 10786, 20307, 11537, 198, 83, 13, 12287, 7, 23, 8, 198, 35, 8808, 19240, 796, 807, 198, 19535, 35400, 62, 49, 1404, 9399, 796, 718, 198, 198, 83, 13, 79, 641, 1096,...
2.526412
549
#!/usr/bin/env python3 """script for testing connection to database""" import pyodbc import sys import os from models.user import User import models driver = os.environ.get('CONTACT_SQL_DRIVER') server = os.environ.get('CONTACT_SQL_SERVER') database = os.environ.get('CONTACT_SQL_DB') username = os.environ.get('CONTACT...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 18, 198, 37811, 12048, 329, 4856, 4637, 284, 6831, 37811, 198, 11748, 12972, 375, 15630, 198, 11748, 25064, 198, 11748, 28686, 198, 6738, 4981, 13, 7220, 1330, 11787, 198, 11748, 4981, 198, 1...
2.59761
502
import json import pprint """ TITLE: imagine buy in bookshoop - interaktive fun with User :) ISSUE : help you choose the right item, get to know the User's preferences, i.e. - the thematic category that interests him, the results improved for him, a detailed description of the selected item assumptions: no method h...
[ 11748, 33918, 198, 11748, 279, 4798, 198, 198, 37811, 198, 49560, 2538, 25, 5967, 2822, 287, 1492, 1477, 11224, 532, 987, 461, 83, 425, 1257, 351, 11787, 14373, 220, 198, 198, 16744, 8924, 1058, 1037, 345, 3853, 262, 826, 2378, 11, 65...
2.833579
679
"""django_bookworm.books_and_chapters URL Configuration The `urlpatterns` list routes URLs to views. For more information please see: https://docs.djangoproject.com/en/2.1/topics/http/urls/ Examples: Function views 1. Add an import: from my_app import views 2. Add a URL to urlpatterns: path('', views.hom...
[ 37811, 28241, 14208, 62, 2070, 25323, 13, 12106, 62, 392, 62, 354, 12126, 10289, 28373, 198, 198, 464, 4600, 6371, 33279, 82, 63, 1351, 11926, 32336, 284, 5009, 13, 1114, 517, 1321, 3387, 766, 25, 198, 220, 220, 220, 3740, 1378, 31628...
2.847943
559
from app import create_app from flask_script import Manager,Server #initialise our extensions and server class that aid in launching of our server # Creating app instance app = create_app('development') manager = Manager(app) manager.add_command('server',Server) #launch app server if __name__ == '__main__': #checks i...
[ 6738, 598, 1330, 2251, 62, 1324, 198, 6738, 42903, 62, 12048, 1330, 9142, 11, 10697, 1303, 36733, 786, 674, 18366, 290, 4382, 1398, 326, 6133, 287, 13925, 286, 674, 4382, 198, 2, 30481, 598, 4554, 198, 1324, 796, 2251, 62, 1324, 10786...
3.822917
96
""" Copyright (C) 2020-2022 Benjamin Bokser """ import plots import mpc_cvx # import time # import sys import numpy as np import copy from scipy.linalg import expm import itertools np.set_printoptions(suppress=True, linewidth=np.nan)
[ 37811, 198, 15269, 357, 34, 8, 12131, 12, 1238, 1828, 14533, 47390, 2655, 198, 37811, 198, 11748, 21528, 198, 11748, 285, 14751, 62, 33967, 87, 198, 198, 2, 1330, 640, 198, 2, 1330, 25064, 198, 11748, 299, 32152, 355, 45941, 198, 1174...
2.86747
83
from sklearn.neighbors import NearestNeighbors import numpy as np import torch import torch.nn as nn from torch.autograd import Variable def check_value(inds, val): ''' Check to see if an array is a single element equaling a particular value for pre-processing inputs in a function ''' if(np.array(inds).siz...
[ 6738, 1341, 35720, 13, 710, 394, 32289, 1330, 3169, 12423, 46445, 32289, 198, 11748, 299, 32152, 355, 45941, 198, 11748, 28034, 198, 11748, 28034, 13, 20471, 355, 299, 77, 198, 6738, 28034, 13, 2306, 519, 6335, 1330, 35748, 198, 198, 42...
2.097136
1,781
from setuptools import setup, find_packages import endktheme setup( name="endktheme", description="Visualization themes following Energinet's design guide.", version=endktheme.__version__, author="Simon J. Larsen", author_email="simonhffh@gmail.com", license="MIT", packages=find_packages(),...
[ 6738, 900, 37623, 10141, 1330, 9058, 11, 1064, 62, 43789, 198, 11748, 886, 74, 43810, 198, 198, 40406, 7, 198, 220, 220, 220, 1438, 2625, 437, 74, 43810, 1600, 198, 220, 220, 220, 6764, 2625, 36259, 1634, 13460, 1708, 412, 1008, 1655,...
2.876033
121
import os from django.contrib.auth.decorators import login_required from django.core.cache import cache from django.core.files.storage import default_storage from django.http import JsonResponse, HttpResponse from django.template.loader import render_to_string from async_downloads.cache import get_collection_key from...
[ 11748, 28686, 198, 198, 6738, 42625, 14208, 13, 3642, 822, 13, 18439, 13, 12501, 273, 2024, 1330, 17594, 62, 35827, 198, 6738, 42625, 14208, 13, 7295, 13, 23870, 1330, 12940, 198, 6738, 42625, 14208, 13, 7295, 13, 16624, 13, 35350, 1330...
3.552381
105
import numpy as np import torch
[ 11748, 299, 32152, 355, 45941, 198, 11748, 28034, 628 ]
3.666667
9
#!usr/bin/env python # coding=utf-8 # Created by zhezhiyong@163.com on 2016/11/17. from flask import jsonify from . import api from .. import mongodb
[ 2, 0, 14629, 14, 8800, 14, 24330, 21015, 198, 2, 19617, 28, 40477, 12, 23, 198, 2, 15622, 416, 1976, 258, 89, 5303, 88, 506, 31, 24136, 13, 785, 319, 1584, 14, 1157, 14, 1558, 13, 198, 198, 6738, 42903, 1330, 33918, 1958, 198, 1...
2.637931
58
from utils import * Clean() HgUpdate21() PatchAll() Build_VC11Express_64() OptimusForceIntel() RunAll() OptimusForceNVIDIA() RunAll() Clean() HgUpdate33() PatchAll() Build_VC11Express_64() OptimusForceNVIDIA() RunAll() Clean() HgUpdate33()
[ 6738, 3384, 4487, 1330, 1635, 201, 198, 201, 198, 197, 201, 198, 32657, 3419, 201, 198, 201, 198, 39, 70, 10260, 2481, 3419, 201, 198, 33952, 3237, 3419, 201, 198, 15580, 62, 15922, 1157, 38839, 62, 2414, 3419, 201, 198, 27871, 20704,...
2.268908
119
from corehq.apps.reports.generic import GenericTabularReport from corehq.apps.reports.standard import CustomProjectReport
[ 6738, 4755, 71, 80, 13, 18211, 13, 48922, 13, 41357, 1330, 42044, 33349, 934, 19100, 198, 6738, 4755, 71, 80, 13, 18211, 13, 48922, 13, 20307, 1330, 8562, 16775, 19100, 628, 628, 198 ]
3.818182
33
# global imports import unittest import numpy as np from future.builtins import range # local imports import correlation_toolbox.helper as cthlp if __name__ == '__main__': unittest.main()
[ 2, 3298, 17944, 198, 11748, 555, 715, 395, 198, 11748, 299, 32152, 355, 45941, 198, 6738, 2003, 13, 18780, 1040, 1330, 2837, 198, 198, 2, 1957, 17944, 198, 11748, 16096, 62, 25981, 3524, 13, 2978, 525, 355, 269, 400, 34431, 628, 198, ...
3.095238
63
import os import shutil print(os.listdir('/'))
[ 11748, 28686, 198, 11748, 4423, 346, 198, 198, 4798, 7, 418, 13, 4868, 15908, 10786, 14, 6, 4008 ]
2.611111
18
''' NAME Tarea_4.py VERSION 1.0 AUTHOR Victor Jesus Enriquez Castro <victorec@lcg.unam.mx> DESCRIPTION Empleando Entrez.einfo y ENtrez.read el programa imprime la descripcion de los campos FieldList y LinkList en la base de datos protein, de la misma ...
[ 7061, 6, 198, 20608, 198, 220, 220, 220, 220, 220, 220, 220, 309, 20337, 62, 19, 13, 9078, 198, 220, 220, 220, 220, 220, 220, 220, 220, 198, 43717, 198, 220, 220, 220, 220, 220, 220, 220, 352, 13, 15, 198, 220, 220, 220, 220, ...
2.453307
1,542
import os,sys,inspect from HDPython.base import * from HDPython.v_symbol import v_symbol from HDPython.primitive_type_converter import get_primitive_hdl_converter from HDPython.lib_enums import varSig, InOut_t
[ 11748, 28686, 11, 17597, 11, 1040, 806, 198, 198, 6738, 5572, 37906, 13, 8692, 1330, 1635, 198, 6738, 5572, 37906, 13, 85, 62, 1837, 23650, 1330, 410, 62, 1837, 23650, 198, 6738, 5572, 37906, 13, 19795, 1800, 62, 4906, 62, 1102, 332, ...
2.623529
85
#!/usr/bin/env python # -*- coding: utf-8 -*- import os import sys import pip from setuptools import setup, find_packages import fabrik if sys.argv[-1] == "publish": os.system("python setup.py sdist upload") sys.exit() package_exclude = ("tests*", "examples*") packages = find_packages(exclude=package_exclu...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 198, 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 198, 11748, 28686, 198, 11748, 25064, 198, 11748, 7347, 198, 6738, 900, 37623, 10141, 1330, 9058, 11, 1064, 62, 43789, ...
2.323944
923
foo # comment
[ 21943, 1303, 2912, 198 ]
3.5
4
import codecs import csv import filecmp import os import time import click import pyimgur import requests from zipfile import ZipFile, ZIP_DEFLATED from hacktools import common, wii version = "1.5.5" isofile = "data/disc.iso" infolder = "data/extract/" outfolder = "data/repack/" replacefolder = "data/replace/" fontin ...
[ 11748, 40481, 82, 198, 11748, 269, 21370, 198, 11748, 2393, 48991, 198, 11748, 28686, 198, 11748, 640, 198, 11748, 3904, 198, 11748, 12972, 19791, 198, 11748, 7007, 198, 6738, 19974, 7753, 1330, 38636, 8979, 11, 42977, 62, 7206, 3697, 116...
2.384758
538
# -*- coding: utf-8 -*- # # This file is part of Sequana software # # Copyright (c) 2016 - Sequana Development Team # # File author(s): # Thomas Cokelaer <thomas.cokelaer@pasteur.fr> # Dimitri Desvillechabrol <dimitri.desvillechabrol@pasteur.fr>, # <d.desvillechabrol@gmail.com> # # Distributed un...
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 2, 198, 2, 220, 770, 2393, 318, 636, 286, 24604, 2271, 3788, 198, 2, 198, 2, 220, 15069, 357, 66, 8, 1584, 532, 24604, 2271, 7712, 4816, 198, 2, 198, 2, 220, 9220,...
2.041588
17,529
from unittest.mock import patch from feed.models import FeedItem from tests import BaseTestFixture, basic_auth_headers
[ 6738, 555, 715, 395, 13, 76, 735, 1330, 8529, 198, 198, 6738, 3745, 13, 27530, 1330, 18272, 7449, 198, 6738, 5254, 1330, 7308, 14402, 37, 9602, 11, 4096, 62, 18439, 62, 50145, 628 ]
3.666667
33