content
stringlengths
1
1.05M
input_ids
listlengths
1
883k
ratio_char_token
float64
1
22.9
token_count
int64
1
883k
from django.shortcuts import render,redirect from django.http import HttpResponse,HttpResponseRedirect from django.views import generic from django.contrib.auth.decorators import login_required from django.utils.decorators import method_decorator from .models import Character,Comic,Power,CharacterPower,CharacterComic f...
[ 6738, 42625, 14208, 13, 19509, 23779, 1330, 8543, 11, 445, 1060, 198, 6738, 42625, 14208, 13, 4023, 1330, 367, 29281, 31077, 11, 43481, 31077, 7738, 1060, 198, 6738, 42625, 14208, 13, 33571, 1330, 14276, 198, 6738, 42625, 14208, 13, 3642,...
3.654054
185
"""Set-up and execute the main loop""" import RPi.GPIO as GPIO import time GPIO.setmode(GPIO.BCM) GPIO.setwarnings(False) #Right motor input A GPIO.setup(18,GPIO.OUT) #Right motor input B GPIO.setup(23,GPIO.OUT) GPIO.output(18,GPIO.HIGH) GPIO.output(23,GPIO.LOW)
[ 37811, 7248, 12, 929, 290, 12260, 262, 1388, 9052, 37811, 198, 11748, 25812, 72, 13, 16960, 9399, 355, 50143, 198, 11748, 640, 198, 198, 16960, 9399, 13, 2617, 14171, 7, 16960, 9399, 13, 2749, 44, 8, 198, 16960, 9399, 13, 2617, 40539,...
2.321739
115
import pymysql # config = { 'host': '127.0.0.1', 'port': 3306, 'user': 'root', 'password': '', 'db': 'classdata', 'charset': 'utf8', 'cursorclass': pymysql.cursors.DictCursor, }
[ 11748, 279, 4948, 893, 13976, 198, 198, 2, 220, 198, 11250, 796, 1391, 198, 220, 220, 220, 705, 4774, 10354, 705, 16799, 13, 15, 13, 15, 13, 16, 3256, 198, 220, 220, 220, 705, 634, 10354, 513, 20548, 11, 198, 220, 220, 220, 705, ...
1.935185
108
from rest_framework import viewsets from rest_framework.views import APIView from registerapp import serializers from registerapp import models
[ 6738, 1334, 62, 30604, 1330, 5009, 1039, 198, 6738, 1334, 62, 30604, 13, 33571, 1330, 3486, 3824, 769, 198, 198, 6738, 7881, 1324, 1330, 11389, 11341, 198, 6738, 7881, 1324, 1330, 4981, 628 ]
4.424242
33
#!/usr/bin/env python # -*- coding: utf-8 -*- """ jduck.py Description: Author: luutp Contact: luubot2207@gmail.com Created on: 2021/02/27 """ # Utilities # %% # ================================IMPORT PACKAGES==================================== # Utilities from traitlets.config.configurable import SingletonConfigur...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 198, 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 37811, 198, 73, 646, 694, 13, 9078, 198, 11828, 25, 198, 198, 13838, 25, 300, 84, 315, 79, 198, 17829, 25, 300, 84,...
3.68254
126
# pylint: disable=missing-class-docstring,invalid-name import typing from graphql.language import ( InputObjectTypeDefinitionNode, InputObjectTypeExtensionNode, ObjectTypeDefinitionNode, ObjectTypeExtensionNode, ) from graphql.type import ( GraphQLArgument, GraphQLBoolean, GraphQLEnumType, ...
[ 2, 279, 2645, 600, 25, 15560, 28, 45688, 12, 4871, 12, 15390, 8841, 11, 259, 12102, 12, 3672, 198, 11748, 19720, 198, 198, 6738, 4823, 13976, 13, 16129, 1330, 357, 198, 220, 220, 220, 23412, 10267, 6030, 36621, 19667, 11, 198, 220, ...
2.835514
535
# Copyright 2019 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # https://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing,...
[ 2, 15069, 13130, 3012, 11419, 198, 2, 198, 2, 49962, 739, 262, 24843, 13789, 11, 10628, 362, 13, 15, 357, 1169, 366, 34156, 15341, 198, 2, 345, 743, 407, 779, 428, 2393, 2845, 287, 11846, 351, 262, 13789, 13, 198, 2, 921, 743, 733...
3.472973
370
from .grandchild_objects import Cookies from .grandchild_objects import Dns from .grandchild_objects import Dom from .grandchild_objects import Geo #from .grandchild_objects import Http #from .grandchild_objects import Meta from .grandchild_objects import Ssl #from .grandchild_objects import WhoIs
[ 6738, 764, 23936, 9410, 62, 48205, 1330, 45305, 198, 6738, 764, 23936, 9410, 62, 48205, 1330, 360, 5907, 198, 6738, 764, 23936, 9410, 62, 48205, 1330, 9666, 198, 6738, 764, 23936, 9410, 62, 48205, 1330, 32960, 198, 2, 6738, 764, 23936, ...
3.820513
78
#!/usr/bin/env python3 """ script for calculating gc skew Chris Brown ctb@berkeley.edu """ # python modules import os import sys import argparse import numpy as np from scipy import signal from itertools import cycle, product # plotting modules from matplotlib import use as mplUse mplUse('Agg') import matplotlib.py...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 18, 198, 198, 37811, 198, 12048, 329, 26019, 308, 66, 43370, 198, 198, 15645, 4373, 198, 310, 65, 31, 527, 13490, 13, 15532, 198, 37811, 198, 198, 2, 21015, 13103, 198, 11748, 28686, 198, ...
2.09948
4,041
# This sample is provided for demonstration purposes only. # It is not intended for production use. # This example does not constitute trading advice. import os from dotenv import dotenv_values from algosdk import mnemonic, account from algofi.v1.asset import Asset from algofi.v1.client import AlgofiTestnetClient, Algo...
[ 2, 770, 6291, 318, 2810, 329, 13646, 4959, 691, 13, 198, 2, 632, 318, 407, 5292, 329, 3227, 779, 13, 198, 2, 770, 1672, 857, 407, 15613, 7313, 5608, 13, 198, 11748, 28686, 198, 6738, 16605, 24330, 1330, 16605, 24330, 62, 27160, 198,...
3.217219
755
#!/usr/bin/env python import getopt import sys import string import re import time sys.path.insert(1,"..") from SOAPpy import SOAP import traceback DEFAULT_SERVERS_FILE = './inventory.servers' DEFAULT_METHODS = ('SimpleBuy', 'RequestForQuote','Buy','Ping') if __name__ == "__main__": ...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 628, 198, 11748, 651, 8738, 198, 11748, 25064, 198, 11748, 4731, 198, 11748, 302, 198, 11748, 640, 198, 17597, 13, 6978, 13, 28463, 7, 16, 553, 492, 4943, 198, 6738, 12809, 2969, 9078, 1330...
2.523077
130
import os import json import shutil with open("entry.tp") as entry: entry = json.loads(entry.read()) startcmd = entry['plugin_start_cmd'].split("%TP_PLUGIN_FOLDER%")[1].split("\\") filedirectory = startcmd[0] fileName = startcmd[1] if os.path.exists(filedirectory): os.remove(os.path.join(os.getcwd(), "Wi...
[ 11748, 28686, 198, 11748, 33918, 198, 11748, 4423, 346, 198, 198, 4480, 1280, 7203, 13000, 13, 34788, 4943, 355, 5726, 25, 198, 220, 220, 220, 5726, 796, 33918, 13, 46030, 7, 13000, 13, 961, 28955, 198, 198, 9688, 28758, 796, 5726, 17...
2.413437
387
for _ in range(int(input())): x, y = list(map(int, input().split())) flag = 1 for i in range(x, y + 1): n = i * i + i + 41 for j in range(2, n): if j * j > n: break if n % j == 0: flag = 0 break if flag == 0: break if flag: print("OK") else: print("Sorry")
[ 1640, 4808, 287, 2837, 7, 600, 7, 15414, 28955, 2599, 198, 197, 87, 11, 331, 796, 1351, 7, 8899, 7, 600, 11, 5128, 22446, 35312, 3419, 4008, 198, 197, 32109, 796, 352, 198, 197, 1640, 1312, 287, 2837, 7, 87, 11, 331, 1343, 352, ...
1.986395
147
{ 'targets': [ { 'target_name': 'hiredis', 'sources': [ 'src/hiredis.cc' , 'src/reader.cc' ], 'include_dirs': ["<!(node -e \"require('nan')\")"], 'dependencies': [ 'deps/hiredis.gyp:hiredis-c' ], 'defines': [ '_GNU_SOURCE' ], ...
[ 90, 198, 220, 705, 83, 853, 1039, 10354, 685, 198, 220, 220, 220, 1391, 198, 220, 220, 220, 220, 220, 705, 16793, 62, 3672, 10354, 705, 71, 1202, 271, 3256, 198, 220, 220, 220, 220, 220, 705, 82, 2203, 10354, 685, 198, 220, 220, ...
1.581301
246
from pywire import * width = 4 a = Signal(width, io="in") b = Signal(width, io="out") Inverter(a, b) build()
[ 6738, 12972, 21809, 1330, 1635, 628, 198, 198, 10394, 796, 604, 198, 64, 796, 26484, 7, 10394, 11, 33245, 2625, 259, 4943, 198, 65, 796, 26484, 7, 10394, 11, 33245, 2625, 448, 4943, 198, 818, 332, 353, 7, 64, 11, 275, 8, 198, 1124...
2.466667
45
# Minhyuk Sung (mhsung@cs.stanford.edu) # April 2018 import os, sys BASE_DIR = os.path.normpath( os.path.join(os.path.dirname(os.path.abspath(__file__)))) sys.path.append(os.path.join(BASE_DIR, '..')) from datasets import * from generate_outputs import * from scipy.optimize import linear_sum_assignment #impor...
[ 2, 1855, 12114, 2724, 29802, 357, 76, 71, 9854, 31, 6359, 13, 14192, 3841, 13, 15532, 8, 198, 2, 3035, 2864, 198, 198, 11748, 28686, 11, 25064, 198, 33, 11159, 62, 34720, 796, 28686, 13, 6978, 13, 27237, 6978, 7, 198, 220, 220, 22...
2.547945
146
import os from conans import ConanFile, tools from conans.errors import ConanInvalidConfiguration
[ 11748, 28686, 198, 6738, 369, 504, 1330, 31634, 8979, 11, 4899, 198, 6738, 369, 504, 13, 48277, 1330, 31634, 44651, 38149, 628 ]
4.5
22
def main(): """ Entry point """ # Important: sorted smallest to largest coins = [1, 2, 5, 10, 20, 50, 100, 200] coin_index = {coin: index for index, coin in enumerate(coins)} # How many ways are there of making each number from 1 to 200 from these values? # Building up from 1 means...
[ 198, 4299, 1388, 33529, 198, 220, 220, 220, 37227, 198, 220, 220, 220, 21617, 966, 198, 220, 220, 220, 37227, 198, 220, 220, 220, 1303, 28511, 25, 23243, 18197, 284, 4387, 198, 220, 220, 220, 10796, 796, 685, 16, 11, 362, 11, 642, ...
2.030968
775
#!/usr/bin/env python # Copyright 2017 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...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 198, 198, 2, 15069, 2177, 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, 4...
3.645455
220
from . import utils ################################################# """ INSTRUMENT """ ################################################# ################################################# ################################################# ################################################# ...
[ 6738, 764, 1330, 3384, 4487, 198, 29113, 14468, 2, 198, 37811, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 3268, 18601, 5883, 3525, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 37227, 198, ...
5.081081
74
# # Copyright (c) 2022 Airbyte, Inc., all rights reserved. # import pytest pytest_plugins = ("source_acceptance_test.plugin",)
[ 2, 198, 2, 15069, 357, 66, 8, 33160, 3701, 26327, 11, 3457, 1539, 477, 2489, 10395, 13, 198, 2, 628, 198, 11748, 12972, 9288, 198, 198, 9078, 9288, 62, 37390, 796, 5855, 10459, 62, 13635, 590, 62, 9288, 13, 33803, 1600, 8, 628 ]
3.046512
43
# -*- coding: utf-8 -*- """ @Time 2021/10/9 17:51 @Auth @File __init__.py.py @IDE PyCharm @QQ : 810400085 """
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 37811, 198, 31, 7575, 220, 33448, 14, 940, 14, 24, 1596, 25, 4349, 198, 31, 30515, 220, 220, 198, 31, 8979, 11593, 15003, 834, 13, 9078, 13, 9078, 198, 31, 14114, 94...
1.898305
59
""" Standard Regression model ------------------------- """ import numpy as np import pandas as pd from typing import Union from ..logging import get_logger from .regression_model import RegressionModel from sklearn.linear_model import LinearRegression logger = get_logger(__name__)
[ 37811, 198, 23615, 3310, 2234, 2746, 198, 22369, 12, 198, 37811, 198, 11748, 299, 32152, 355, 45941, 198, 11748, 19798, 292, 355, 279, 67, 198, 198, 6738, 19720, 1330, 4479, 198, 6738, 11485, 6404, 2667, 1330, 651, 62, 6404, 1362, 198, ...
3.653846
78
from hailtop.utils import (partition, url_basename, url_join, url_scheme, url_and_params, parse_docker_image_reference)
[ 6738, 387, 2326, 404, 13, 26791, 1330, 357, 3911, 653, 11, 19016, 62, 12093, 12453, 11, 19016, 62, 22179, 11, 19016, 62, 15952, 1326, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 22...
2.183099
71
from django.urls import path,include from . import views urlpatterns = [ path('home/', views.home, name = 'home'), path('add_hood/',views.uploadNeighbourhood, name = 'add_hood'), path('viewhood/',views.viewHood, name = 'viewhood'), path('hood/<int:pk>/',views.hood, name = 'hood'), path('add_bizna/'...
[ 6738, 42625, 14208, 13, 6371, 82, 1330, 3108, 11, 17256, 198, 6738, 764, 1330, 5009, 198, 198, 6371, 33279, 82, 796, 685, 198, 220, 220, 220, 3108, 10786, 11195, 14, 3256, 5009, 13, 11195, 11, 1438, 796, 705, 11195, 33809, 198, 220, ...
2.553254
338
# -*- coding: utf-8 -*- # # Copyright (c) 2017 nexB Inc. and others. All rights reserved. # http://nexb.com and https://github.com/nexB/scancode-toolkit/ # The ScanCode software is licensed under the Apache License version 2.0. # Data generated with ScanCode require an acknowledgment. # ScanCode is a trademark of nexB ...
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 2, 198, 2, 15069, 357, 66, 8, 2177, 497, 87, 33, 3457, 13, 290, 1854, 13, 1439, 2489, 10395, 13, 198, 2, 2638, 1378, 12413, 65, 13, 785, 290, 3740, 1378, 12567, 13...
2.911816
1,735
# ensaio = [[[[1, 999.4951009067408, 999.495100909791, '1001100.11100010011001100001001', '100011.10010111010000111110100', '1', '1'], [2, 999.5052434400473, 999.5052434497359, '0000100.11100010011001100001001', '111011.10010111010000111110000', '1', '2'], [3, 999.51676448592, 999.516764613072, '0000100.111000100110011...
[ 2, 3140, 64, 952, 796, 16410, 30109, 16, 11, 36006, 13, 33781, 3064, 3829, 3134, 26200, 11, 36006, 13, 33781, 3064, 44675, 3720, 16, 11, 705, 3064, 42060, 13, 1157, 3064, 39103, 42060, 1157, 2388, 47705, 3256, 705, 3064, 28555, 13, 30...
2.314397
293,724
"""Ebuild Test Fixtures.""" import os from typing import Any, Dict, List from etest_test import helpers_test EBUILDS: Dict[str, List[Dict[str, Any]]] = {} helpers_test.import_directory(__name__, os.path.dirname(__file__))
[ 37811, 36, 11249, 6208, 376, 25506, 526, 15931, 198, 11748, 28686, 198, 6738, 19720, 1330, 4377, 11, 360, 713, 11, 7343, 198, 198, 6738, 2123, 395, 62, 9288, 1330, 49385, 62, 9288, 198, 198, 36, 19499, 4146, 5258, 25, 360, 713, 58, ...
2.710843
83
import random from pymongo import MongoClient from observable import Observable from phrase import Phrase
[ 11748, 4738, 198, 6738, 279, 4948, 25162, 1330, 42591, 11792, 198, 198, 6738, 42550, 1330, 19243, 540, 198, 6738, 9546, 1330, 1380, 22789, 198 ]
4.458333
24
#!flask/bin/python #from user import User from sampleObjects.User import User from datetime import datetime from sampleObjects.DetectionPoint import DetectionPoint import time, requests, random, atexit for i in range (50): requestGenerator() time.sleep(1.5) atexit.register(closingTime)
[ 2, 0, 2704, 2093, 14, 8800, 14, 29412, 198, 2, 6738, 2836, 1330, 11787, 198, 6738, 6291, 10267, 82, 13, 12982, 1330, 11787, 198, 6738, 4818, 8079, 1330, 4818, 8079, 198, 6738, 6291, 10267, 82, 13, 11242, 3213, 12727, 1330, 46254, 1272...
3.168421
95
import asyncio import json import datetime from aiohttp import ClientSession from channels.generic.http import AsyncHttpConsumer from .constants import BLOGS
[ 11748, 30351, 952, 198, 11748, 33918, 198, 11748, 4818, 8079, 198, 6738, 257, 952, 4023, 1330, 20985, 36044, 198, 6738, 9619, 13, 41357, 13, 4023, 1330, 1081, 13361, 43481, 49106, 198, 6738, 764, 9979, 1187, 1330, 9878, 7730, 50, 628 ]
3.975
40
import os from pathlib import Path
[ 11748, 28686, 198, 6738, 3108, 8019, 1330, 10644, 628, 628 ]
3.8
10
from stringtoiso.convert_to_iso import convert
[ 6738, 4731, 1462, 26786, 13, 1102, 1851, 62, 1462, 62, 26786, 1330, 10385 ]
3.538462
13
from aux_sys_err_prediction_module.additive.R_runmed_spline.my_R_runmed_spline_fit import R_runmed_smooth_spline from numpy import random, array, median, zeros, arange, hstack from win32com.client import Dispatch import math myName = 'R_runmed_spline' useMAD = True # use median absolute deviations instead of ...
[ 6738, 27506, 62, 17597, 62, 8056, 62, 28764, 2867, 62, 21412, 13, 2860, 1800, 13, 49, 62, 5143, 1150, 62, 22018, 500, 13, 1820, 62, 49, 62, 5143, 1150, 62, 22018, 500, 62, 11147, 1330, 371, 62, 5143, 1150, 62, 5796, 5226, 62, 2201...
2.392552
1,289
#!/usr/bin/env python # Copyright (c) 2016-present, Gregory Szorc # All rights reserved. # # This software may be modified and distributed under the terms # of the BSD license. See the LICENSE file for details. import os import sys from setuptools import setup try: import cffi except ImportError: cffi = None ...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 198, 2, 15069, 357, 66, 8, 1584, 12, 25579, 11, 20653, 27974, 24449, 198, 2, 1439, 2489, 10395, 13, 198, 2, 198, 2, 770, 3788, 743, 307, 9518, 290, 9387, 739, 262, 2846, 198, 2, 286, ...
2.47139
1,101
import math num = float(input('Digite um numero real qualquer: ')) print('O numero: {} tem a parte inteira {}'.format(num, math.trunc(num)))
[ 11748, 10688, 198, 22510, 796, 12178, 7, 15414, 10786, 19511, 578, 23781, 997, 3529, 1103, 4140, 10819, 25, 705, 4008, 198, 4798, 10786, 46, 997, 3529, 25, 23884, 2169, 257, 636, 68, 493, 68, 8704, 23884, 4458, 18982, 7, 22510, 11, 10...
2.916667
48
# Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved. import torch from .active_rotating_filter import active_rotating_filter from .active_rotating_filter import ActiveRotatingFilter from .rotation_invariant_encoding import rotation_invariant_encoding from .rotation_invariant_encoding import RotationI...
[ 2, 15069, 357, 66, 8, 3203, 11, 3457, 13, 290, 663, 29116, 13, 1439, 6923, 33876, 13, 198, 11748, 28034, 198, 6738, 764, 5275, 62, 10599, 803, 62, 24455, 1330, 4075, 62, 10599, 803, 62, 24455, 198, 6738, 764, 5275, 62, 10599, 803, ...
3.44375
160
from sympy.core.cache import cacheit
[ 6738, 10558, 88, 13, 7295, 13, 23870, 1330, 12940, 270, 628 ]
3.454545
11
import torch
[ 11748, 28034, 198, 197, 198 ]
3
5
# Copyright (c) 2017-2018 Martin Olejar # # SPDX-License-Identifier: BSD-3-Clause # The BSD-3-Clause license for this file can be found in the LICENSE file included with this distribution # or at https://spdx.org/licenses/BSD-3-Clause.html#licenseText import os import pytest from imx import img # Used Directories DAT...
[ 2, 15069, 357, 66, 8, 2177, 12, 7908, 5780, 30093, 9491, 198, 2, 198, 2, 30628, 55, 12, 34156, 12, 33234, 7483, 25, 347, 10305, 12, 18, 12, 2601, 682, 198, 2, 383, 347, 10305, 12, 18, 12, 2601, 682, 5964, 329, 428, 2393, 460, ...
2.651042
192
#!/usr/bin/env python # -*- coding: utf-8 -*- # Return recent items from a json feed. Recent means "In the last X days." import os import doctest import json import urllib2 import argparse import types import gzip from datetime import datetime, timedelta from time import mktime def pretty_date(ago): """ Process a ...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 198, 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 2, 8229, 2274, 3709, 422, 257, 33918, 3745, 13, 22926, 1724, 366, 818, 262, 938, 1395, 1528, 526, 198, 11748, 28686, ...
2.069672
2,928
#! /usr/bin/python # Multistage table builder # (c) Peter Kankowski, 2008 ############################################################################## # This script was submitted to the PCRE project by Peter Kankowski as part of # the upgrading of Unicode property support. The new code speeds up property # matching...
[ 2, 0, 1220, 14629, 14, 8800, 14, 29412, 198, 198, 2, 7854, 396, 496, 3084, 27098, 198, 2, 357, 66, 8, 5613, 509, 962, 12079, 11, 3648, 198, 198, 29113, 29113, 7804, 4242, 2235, 198, 2, 770, 4226, 373, 8948, 284, 262, 4217, 2200, ...
2.681823
9,897
from setuptools import setup, find_packages from retrobiocat_web import __version__ with open('requirements.txt') as f: requirements = f.read().splitlines() setup( name = 'retrobiocat_web', packages = find_packages(), include_package_data=True, version = __version__, license='', description = 'Retrosynt...
[ 6738, 900, 37623, 10141, 1330, 9058, 11, 1064, 62, 43789, 198, 6738, 12175, 8482, 420, 265, 62, 12384, 1330, 11593, 9641, 834, 198, 198, 4480, 1280, 10786, 8897, 18883, 13, 14116, 11537, 355, 277, 25, 198, 220, 5359, 796, 277, 13, 961...
3.023697
211
# -*- coding: utf-8 -*- import pickle import numpy as np from rdkit import Chem from rdkit.Chem import AllChem,DataStructs
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 201, 198, 201, 198, 11748, 2298, 293, 201, 198, 11748, 299, 32152, 355, 45941, 201, 198, 6738, 374, 67, 15813, 1330, 12870, 201, 198, 6738, 374, 67, 15813, 13, 41829, 1330, ...
2.471698
53
import functools import logging import random from flask import Flask, render_template, request import joblib from lxml.html import html5parser import lxml.html import requests import yarl import webstruct.model import webstruct.sequence_encoding import webstruct.webannotator webstruct_demo = Flask(__name__, instan...
[ 11748, 1257, 310, 10141, 198, 11748, 18931, 198, 11748, 4738, 198, 198, 6738, 42903, 1330, 46947, 11, 8543, 62, 28243, 11, 2581, 198, 11748, 1693, 8019, 198, 6738, 300, 19875, 13, 6494, 1330, 27711, 20, 48610, 198, 11748, 300, 19875, 13...
3.284615
130
__author__ = 'Alex Rogozhnikov' from setuptools import setup setup( name="einops", version='0.3.2', description="A new flavour of deep learning operations", long_description=open('README.md', encoding='utf-8').read(), long_description_content_type='text/markdown', url='https://github.com/arogo...
[ 834, 9800, 834, 796, 705, 15309, 8041, 8590, 71, 45451, 6, 198, 198, 6738, 900, 37623, 10141, 1330, 9058, 198, 198, 40406, 7, 198, 220, 220, 220, 1438, 2625, 68, 259, 2840, 1600, 198, 220, 220, 220, 2196, 11639, 15, 13, 18, 13, 17...
2.742754
276
# Generated by Django 3.1.6 on 2021-02-15 19:01 from django.db import migrations, models import django.db.models.deletion
[ 2, 2980, 515, 416, 37770, 513, 13, 16, 13, 21, 319, 33448, 12, 2999, 12, 1314, 678, 25, 486, 198, 198, 6738, 42625, 14208, 13, 9945, 1330, 15720, 602, 11, 4981, 198, 11748, 42625, 14208, 13, 9945, 13, 27530, 13, 2934, 1616, 295, 6...
2.818182
44
"""Core experiments for the dependency label prediction task.""" import collections import copy import logging from typing import (Any, Dict, Iterator, Optional, Sequence, Set, Tuple, Type, Union) from ldp import datasets, learning from ldp.models import probes, projections from ldp.parse import pt...
[ 37811, 14055, 10256, 329, 262, 20203, 6167, 17724, 4876, 526, 15931, 198, 11748, 17268, 198, 11748, 4866, 198, 11748, 18931, 198, 6738, 19720, 1330, 357, 7149, 11, 360, 713, 11, 40806, 1352, 11, 32233, 11, 45835, 11, 5345, 11, 309, 2929...
2.411602
2,534
#!/usr/bin/env python3 # # Author: # Tamas Jos (@skelsec) # import os import io import datetime import glob import hashlib from pycquery_krb.protocol.asn1_structs import Ticket, EncryptedData, \ krb5_pvno, KrbCredInfo, EncryptionKey, KRBCRED, TicketFlags, EncKrbCredPart from pycquery_krb.common.utils import dt_to_k...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 18, 198, 2, 198, 2, 6434, 25, 198, 2, 220, 11552, 292, 22568, 4275, 82, 7750, 2363, 8, 198, 2, 198, 198, 11748, 28686, 198, 11748, 33245, 198, 11748, 4818, 8079, 198, 11748, 15095, 198, ...
2.604239
2,595
#!/opt/az/psf/python/2.7/bin/python from openeye.oechem import * import cgi #creates a list of smiles of the syntax [smiles|molId,smiles|molId] #takes a list of smiles and writes it as sdf using a memory buffer #creates a list of smiles of the syntax [smiles|molId,smiles|molId] if __name__ == "__main__": print...
[ 2, 48443, 8738, 14, 1031, 14, 862, 69, 14, 29412, 14, 17, 13, 22, 14, 8800, 14, 29412, 198, 6738, 1280, 25379, 13, 78, 721, 4411, 1330, 1635, 198, 198, 11748, 269, 12397, 198, 198, 2, 20123, 274, 257, 1351, 286, 21845, 286, 262, ...
2.243013
823
# This file was automatically generated by SWIG (http://www.swig.org). # Version 4.0.2 # # Do not make changes to this file unless you know what you are doing--modify # the SWIG interface file instead. from sys import version_info as _swig_python_version_info if _swig_python_version_info < (2, 7, 0): raise Runtime...
[ 2, 770, 2393, 373, 6338, 7560, 416, 12672, 3528, 357, 4023, 1378, 2503, 13, 2032, 328, 13, 2398, 737, 198, 2, 10628, 604, 13, 15, 13, 17, 198, 2, 198, 2, 2141, 407, 787, 2458, 284, 428, 2393, 4556, 345, 760, 644, 345, 389, 1804,...
2.699548
1,328
import os import sentry_sdk from sentry_sdk.integrations.django import DjangoIntegration # Build paths inside the project like this: os.path.join(BASE_DIR, ...) BASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__))) PWA_SERVICE_WORKER_PATH = os.path.join( BASE_DIR, 'routes/static/routes/js', 'serv...
[ 11748, 28686, 198, 11748, 1908, 563, 62, 21282, 74, 198, 6738, 1908, 563, 62, 21282, 74, 13, 18908, 9143, 13, 28241, 14208, 1330, 37770, 34500, 1358, 198, 198, 2, 10934, 13532, 2641, 262, 1628, 588, 428, 25, 28686, 13, 6978, 13, 22179...
2.174643
3,155
""" Plotter Lighting Systems ~~~~~~~~~~~~~~~~~~~~~~~~ The :class:`pyvista.Plotter` class comes with three options for the default lighting system: * a light kit consisting of a headlight and four camera lights, * an illumination system containing three lights arranged around the camera, * no lighting. With mes...
[ 37811, 198, 43328, 353, 43150, 11998, 198, 27156, 15116, 198, 198, 464, 1058, 4871, 25, 63, 9078, 85, 12523, 13, 43328, 353, 63, 1398, 2058, 351, 1115, 3689, 329, 262, 4277, 198, 43351, 1080, 25, 628, 220, 1635, 257, 1657, 6220, 17747...
3.91568
676
from swimport.all import * src = FileSource('src.h') swim = Swim('example') swim(pools.c_string) swim(pools.numpy_arrays(r"../resources", allow_char_arrays=True)) swim(pools.include(src)) assert swim(Function.Behaviour()(src)) > 0 swim.write('example.i') print('ok!')
[ 6738, 9422, 634, 13, 439, 1330, 1635, 628, 198, 10677, 796, 9220, 7416, 10786, 10677, 13, 71, 11537, 198, 2032, 320, 796, 35953, 10786, 20688, 11537, 198, 198, 2032, 320, 7, 7742, 82, 13, 66, 62, 8841, 8, 198, 2032, 320, 7, 7742, ...
2.518519
108
import numpy as np import PIL.Image import pythreejs import ipyvolume as ipv from .datasets import UrlCached def _randomSO3(): """return random rotatation matrix, algo by James Arvo""" u1 = np.random.random() u2 = np.random.random() u3 = np.random.random() R = np.array([[np.cos(2*np.pi*u1), np.si...
[ 11748, 299, 32152, 355, 45941, 198, 198, 11748, 350, 4146, 13, 5159, 198, 11748, 279, 5272, 631, 8457, 198, 198, 11748, 20966, 88, 29048, 355, 20966, 85, 198, 6738, 764, 19608, 292, 1039, 1330, 8799, 75, 34, 2317, 198, 198, 4299, 4808...
2.087977
1,364
''' * @author Waldinsamkeit * @email Zenglz_pro@163.com * @create date 2020-09-25 14:33:38 * @desc ''' import torch '''--------------------- Weighted Binary cross Entropy ----------------------''' ''' In Torch BCELoss, weight is set to every element of input instead of to every class ''' ''' ----------------...
[ 7061, 6, 198, 1635, 2488, 9800, 24261, 1040, 321, 365, 270, 198, 1635, 2488, 12888, 1168, 1516, 75, 89, 62, 1676, 31, 24136, 13, 785, 198, 1635, 2488, 17953, 3128, 12131, 12, 2931, 12, 1495, 1478, 25, 2091, 25, 2548, 198, 1635, 2488...
3.492424
132
from typing import * import attr from dlms_cosem.hdlc import validators
[ 6738, 19720, 1330, 1635, 198, 198, 11748, 708, 81, 198, 198, 6738, 288, 75, 907, 62, 66, 577, 76, 13, 71, 25404, 66, 1330, 4938, 2024, 628 ]
2.777778
27
from __future__ import division, absolute_import, print_function import warnings import numpy as np try: import scipy.stats as stats except ImportError: pass from .common import Benchmark
[ 6738, 11593, 37443, 834, 1330, 7297, 11, 4112, 62, 11748, 11, 3601, 62, 8818, 198, 198, 11748, 14601, 198, 198, 11748, 299, 32152, 355, 45941, 198, 198, 28311, 25, 198, 220, 220, 220, 1330, 629, 541, 88, 13, 34242, 355, 9756, 198, 1...
3.306452
62
from django.db import models from django.contrib.auth.models import AbstractBaseUser, BaseUserManager
[ 6738, 42625, 14208, 13, 9945, 1330, 4981, 198, 6738, 42625, 14208, 13, 3642, 822, 13, 18439, 13, 27530, 1330, 27741, 14881, 12982, 11, 7308, 12982, 13511, 628, 628, 198 ]
3.655172
29
from dataclasses import dataclass, field from typing import Optional, Iterable, Union
[ 6738, 4818, 330, 28958, 1330, 4818, 330, 31172, 11, 2214, 198, 6738, 19720, 1330, 32233, 11, 40806, 540, 11, 4479, 628, 198 ]
4
22
# # Copyright 2018, Arun Saha <arunksaha@gmail.com> # import matplotlib import matplotlib.pyplot as plt import matplotlib.dates as md import datetime as dt import sys import os # Open the file, read the string contents into a list, # and return the list. # Convert usecs (numeric) to datetime # >>> ts = 1520189090755...
[ 2, 198, 2, 15069, 2864, 11, 943, 403, 311, 12236, 1279, 283, 14125, 12236, 31, 14816, 13, 785, 29, 198, 2, 198, 11748, 2603, 29487, 8019, 198, 11748, 2603, 29487, 8019, 13, 9078, 29487, 355, 458, 83, 198, 11748, 2603, 29487, 8019, 1...
2.692593
270
from dotenv import load_dotenv load_dotenv() import sys import os import re import json import psycopg2 from meme_classifier.images import process_image path = sys.argv[1] data = json.load(open(os.path.join(path, 'result.json'), 'r')) chat_id = data['id'] conn = psycopg2.connect(os.getenv('POSTGRES_CREDENTIALS')) ...
[ 6738, 16605, 24330, 1330, 3440, 62, 26518, 24330, 198, 2220, 62, 26518, 24330, 3419, 198, 198, 11748, 25064, 198, 11748, 28686, 198, 11748, 302, 198, 11748, 33918, 198, 198, 11748, 17331, 22163, 70, 17, 198, 198, 6738, 25336, 62, 4871, ...
2.439189
296
# Generated by Django 2.0.3 on 2018-03-15 01:05 from django.db import migrations, models
[ 2, 2980, 515, 416, 37770, 362, 13, 15, 13, 18, 319, 2864, 12, 3070, 12, 1314, 5534, 25, 2713, 198, 198, 6738, 42625, 14208, 13, 9945, 1330, 15720, 602, 11, 4981, 628 ]
2.84375
32
#!/usr/bin/env python3 """ Build a table of Python / Pydantic to JSON Schema mappings. Done like this rather than as a raw rst table to make future edits easier. Please edit this file directly not .tmp_schema_mappings.rst """ table = [ [ 'bool', 'boolean', '', 'JSON Schema Core', ...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 18, 198, 37811, 198, 15580, 257, 3084, 286, 11361, 1220, 350, 5173, 5109, 284, 19449, 10011, 2611, 285, 39242, 13, 198, 198, 45677, 588, 428, 2138, 621, 355, 257, 8246, 374, 301, 3084, 284,...
1.976814
5,003
import time import unittest from nose.plugins.attrib import attr from hubspot3.test import helper from hubspot3.broadcast import Broadcast, BroadcastClient if __name__ == "__main__": unittest.main()
[ 11748, 640, 198, 11748, 555, 715, 395, 198, 6738, 9686, 13, 37390, 13, 1078, 822, 1330, 708, 81, 198, 6738, 12575, 20485, 18, 13, 9288, 1330, 31904, 198, 6738, 12575, 20485, 18, 13, 36654, 2701, 1330, 44244, 11, 44244, 11792, 628, 198...
3.21875
64
# -*- coding: utf-8 -*- """ Module to prepare test data for benchmarking geo operations. """ import enum import logging from pathlib import Path import pprint import shutil import sys import tempfile from typing import Optional import urllib.request import zipfile # Add path so the benchmark packages are found sys.pa...
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 37811, 198, 26796, 284, 8335, 1332, 1366, 329, 18335, 278, 40087, 4560, 13, 198, 37811, 198, 198, 11748, 33829, 198, 11748, 18931, 198, 6738, 3108, 8019, 1330, 10644, 198,...
2.357591
1,594
""" setup earthquake depth relocation directory """ import obspy import sh import numpy as np import click from os.path import join from glob import glob import copy if __name__ == "__main__": main()
[ 37811, 198, 40406, 16295, 6795, 35703, 8619, 198, 37811, 198, 198, 11748, 909, 2777, 88, 198, 11748, 427, 198, 11748, 299, 32152, 355, 45941, 198, 11748, 3904, 198, 6738, 28686, 13, 6978, 1330, 4654, 198, 6738, 15095, 1330, 15095, 198, ...
3.349206
63
# vim: set encoding=utf-8 # # Copyright(c)2015 IntelCorporation # # LicensedundertheApacheLicense,Version2.0(the"License"); # youmaynotusethisfileexceptincompliancewiththeLicense. # YoumayobtainacopyoftheLicenseat # # http://www.apache.org/licenses/LICENSE-2.0 # # Unlessrequiredbyapplicablelaworagreedtoinwriting...
[ 2, 43907, 25, 900, 21004, 28, 40477, 12, 23, 198, 198, 2, 198, 2, 220, 15069, 7, 66, 8, 4626, 8180, 10606, 1819, 341, 198, 2, 198, 2, 220, 49962, 4625, 1169, 25189, 4891, 34156, 11, 14815, 17, 13, 15, 7, 1169, 1, 34156, 15341, ...
2.654586
1,352
#!/usr/bin/env python3 import math try: # from PDFPageDetailedAggregator: from pdfminer.pdfdocument import PDFDocument, PDFNoOutlines from pdfminer.pdfparser import PDFParser from pdfminer.pdfinterp import PDFResourceManager, PDFPageInterpreter from pdfminer.converter import PDFPageAggregator ...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 18, 198, 198, 11748, 10688, 198, 198, 28311, 25, 198, 220, 220, 220, 1303, 422, 14340, 5837, 496, 32080, 46384, 2301, 1352, 25, 198, 220, 220, 220, 422, 37124, 1084, 263, 13, 12315, 22897, ...
2.421154
520
from pox.core import core import pox.openflow.libopenflow_01 as of from forwarding.l2_learning import * from tkinter import * from project.firewall import TestFW from project.ui import UI
[ 6738, 745, 87, 13, 7295, 1330, 4755, 220, 198, 11748, 745, 87, 13, 9654, 11125, 13, 8019, 9654, 11125, 62, 486, 355, 286, 198, 6738, 43448, 13, 75, 17, 62, 40684, 1330, 1635, 220, 198, 198, 6738, 256, 74, 3849, 1330, 1635, 198, 19...
3.216667
60
# mako/__init__.py # Copyright (C) 2006-2016 the Mako authors and contributors <see AUTHORS file> # # This module is part of Mako and is released under # the MIT License: http://www.opensource.org/licenses/mit-license.php __version__ = '1.0.9'
[ 2, 285, 25496, 14, 834, 15003, 834, 13, 9078, 198, 2, 15069, 357, 34, 8, 4793, 12, 5304, 262, 15841, 78, 7035, 290, 20420, 1279, 3826, 37195, 20673, 2393, 29, 198, 2, 198, 2, 770, 8265, 318, 636, 286, 15841, 78, 290, 318, 2716, ...
3
82
# Copyright (c) 2021 PPViT Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable l...
[ 2, 15069, 357, 66, 8, 33448, 21082, 38432, 51, 46665, 13, 1439, 6923, 33876, 13, 198, 2, 198, 2, 49962, 739, 262, 24843, 13789, 11, 10628, 362, 13, 15, 357, 1169, 366, 34156, 15341, 198, 2, 345, 743, 407, 779, 428, 2393, 2845, 287...
3.34386
285
from ._FisherS import randsphere, preprocessing, SeparabilityAnalysis, point_inseparability_to_pointID from ._call_estimators import TwoNN, run_singleGMST,run_singleCorrDim,runDANCo, runDANCoStats, runDANColoop,runANOVAglobal,runANOVAlocal,radovanovic_estimators_matlab,Hidalgo from ._DANCo import dancoDimEst as danco_p...
[ 6738, 47540, 37, 4828, 50, 1330, 374, 1746, 79, 1456, 11, 662, 36948, 11, 8621, 283, 1799, 32750, 11, 966, 62, 259, 25512, 1799, 62, 1462, 62, 4122, 2389, 198, 6738, 47540, 13345, 62, 395, 320, 2024, 1330, 4930, 6144, 11, 1057, 62, ...
2.868263
167
# from zfnew import GetInfo, Login base_url = 'url' lgn = Login(base_url=base_url) lgn.login('', '') cookies = lgn.cookies # cookies person = GetInfo(base_url=base_url, cookies=cookies) message = person.get_message() print(message)
[ 2, 220, 198, 198, 6738, 1976, 69, 3605, 1330, 3497, 12360, 11, 23093, 198, 198, 8692, 62, 6371, 796, 705, 6371, 6, 198, 198, 75, 4593, 796, 23093, 7, 8692, 62, 6371, 28, 8692, 62, 6371, 8, 198, 75, 4593, 13, 38235, 10786, 3256, ...
2.576087
92
import sys import random from faker import Faker if __name__ == "__main__": fake = Faker("pt_BR") path = "python/" try: nLinhas = int(sys.argv[1]) nCampos = int(sys.argv[2]) except: nLinhas = 1000 nCampos = 10 gera(nLinhas, nCampos)
[ 11748, 25064, 198, 11748, 4738, 198, 6738, 277, 3110, 1330, 376, 3110, 628, 198, 198, 361, 11593, 3672, 834, 6624, 366, 834, 12417, 834, 1298, 198, 220, 220, 220, 8390, 796, 376, 3110, 7203, 457, 62, 11473, 4943, 198, 220, 220, 220, ...
2.027972
143
n = int(input(' : ')) data = dict() time_list = list() for i in range(1, n+1): print(f' {i} : ', end='') text = input().split() time = text[0] time_list.append(int(time)) name = text[1] obj = [name, time] data[i] = tuple(obj) f, s, t, fi, si, ti = sort(data, sorted(time_list)) time_list...
[ 198, 198, 77, 796, 493, 7, 15414, 10786, 220, 1058, 705, 4008, 198, 198, 7890, 796, 8633, 3419, 198, 2435, 62, 4868, 796, 1351, 3419, 198, 198, 1640, 1312, 287, 2837, 7, 16, 11, 299, 10, 16, 2599, 198, 220, 220, 220, 3601, 7, 69...
2.075697
251
#!/usr/bin/env python # # Copyright (c) 2016-2017 Nest Labs, 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/lice...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 628, 198, 2, 198, 2, 220, 220, 220, 15069, 357, 66, 8, 1584, 12, 5539, 21420, 23500, 11, 3457, 13, 198, 2, 220, 220, 220, 1439, 2489, 10395, 13, 198, 2, 198, 2, 220, 220, 220, 49962, ...
3.161954
389
import turtle as t import math
[ 11748, 28699, 355, 256, 198, 11748, 10688, 628, 220, 220, 220, 220, 198 ]
2.846154
13
# Copyright (c) Facebook, Inc. and its affiliates. # # This source code is licensed under the MIT license found in the # LICENSE file in the root directory of this source tree. import math import torch import torch.nn as nn import torch.nn.functional as F from .modules import ( TransformerLayer, LearnedPosit...
[ 2, 15069, 357, 66, 8, 3203, 11, 3457, 13, 290, 663, 29116, 13, 198, 2, 198, 2, 770, 2723, 2438, 318, 11971, 739, 262, 17168, 5964, 1043, 287, 262, 198, 2, 38559, 24290, 2393, 287, 262, 6808, 8619, 286, 428, 2723, 5509, 13, 198, ...
3.165468
139
# Copyright 2020 Google LLC. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing,...
[ 2, 15069, 12131, 3012, 11419, 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, 198, 2, 921, 743,...
3.77381
252
from pyb import CAN CAN.initfilterbanks(14) can = CAN(1) print(can) can.init(CAN.LOOPBACK) print(can) print(can.any(0)) # Catch all filter can.setfilter(0, CAN.MASK16, 0, (0, 0, 0, 0)) can.send('abcd', 123) print(can.any(0)) print(can.recv(0)) can.send('abcd', -1) print(can.recv(0)) can.send('abcd', 0x7FF + 1) pr...
[ 6738, 12972, 65, 1330, 15628, 198, 198, 44565, 13, 15003, 24455, 43558, 7, 1415, 8, 198, 5171, 796, 15628, 7, 16, 8, 198, 4798, 7, 5171, 8, 198, 198, 5171, 13, 15003, 7, 44565, 13, 21982, 3185, 31098, 8, 198, 4798, 7, 5171, 8, 1...
2.080508
708
import asyncio import time import unittest from typing import Optional from quarkchain.cluster.miner import DoubleSHA256, Miner, MiningWork, validate_seal from quarkchain.config import ConsensusType from quarkchain.core import RootBlock, RootBlockHeader from quarkchain.p2p import ecies from quarkchain.utils import sha...
[ 11748, 30351, 952, 198, 11748, 640, 198, 11748, 555, 715, 395, 198, 6738, 19720, 1330, 32233, 198, 198, 6738, 627, 668, 7983, 13, 565, 5819, 13, 1084, 263, 1330, 11198, 37596, 11645, 11, 29295, 11, 29269, 12468, 11, 26571, 62, 325, 28...
3.516129
93
""" Evaluates the training performance of the autoencoder. """ import time import pandas as pd import numpy as np import torch import torch.optim as optim import torch.nn as nn import ccobra import onehot import autoencoder # General settings training_datafile = '../../data/Ragni-train.csv' test_datafile = '../....
[ 37811, 26439, 12632, 262, 3047, 2854, 286, 262, 1960, 6571, 66, 12342, 13, 198, 198, 37811, 198, 198, 11748, 640, 198, 198, 11748, 19798, 292, 355, 279, 67, 198, 11748, 299, 32152, 355, 45941, 198, 11748, 28034, 198, 11748, 28034, 13, ...
2.46736
1,057
#-*- coding: UTF-8 -*- """ Tencent is pleased to support the open source community by making GAutomator available. Copyright (C) 2016 THL A29 Limited, a Tencent company. All rights reserved. Licensed under the MIT License (the "License"); you may not use this file except in compliance with the License. You may obtain a...
[ 2, 12, 9, 12, 19617, 25, 41002, 12, 23, 532, 9, 12, 198, 37811, 198, 24893, 1087, 318, 10607, 284, 1104, 262, 1280, 2723, 2055, 416, 1642, 14545, 315, 296, 1352, 1695, 13, 198, 15269, 357, 34, 8, 1584, 2320, 43, 317, 1959, 15302, ...
2.788235
595
#!/usr/bin/env python import vtk from vtk.test import Testing from vtk.util.misc import vtkGetDataRoot VTK_DATA_ROOT = vtkGetDataRoot() if __name__ == "__main__": Testing.main([(TestSynchronizedTemplates3D, 'test')])
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 201, 198, 11748, 410, 30488, 201, 198, 6738, 410, 30488, 13, 9288, 1330, 23983, 201, 198, 6738, 410, 30488, 13, 22602, 13, 44374, 1330, 410, 30488, 3855, 6601, 30016, 201, 198, 36392, 42, 6...
2.533333
90
"""A module for deserializing data to Python objects.""" # pylint: disable=unidiomatic-typecheck # pylint: disable=protected-access # pylint: disable=too-many-branches # pylint: disable=wildcard-import import enum import functools import typing from typing import Any, Callable, Dict, List, Optional, Union from deser...
[ 37811, 32, 8265, 329, 748, 48499, 2890, 1366, 284, 11361, 5563, 526, 15931, 198, 198, 2, 279, 2645, 600, 25, 15560, 28, 403, 19830, 13730, 12, 4906, 9122, 198, 2, 279, 2645, 600, 25, 15560, 28, 24326, 12, 15526, 198, 2, 279, 2645, ...
2.32481
5,514
from ssf import SSF ssf = SSF(errors='raise')
[ 6738, 264, 28202, 1330, 6723, 37, 198, 824, 69, 796, 6723, 37, 7, 48277, 11639, 40225, 11537, 198 ]
2.555556
18
import os import pyfiglet from pytube import YouTube, Playlist file_size = 0 folder_name = "" # Progress Bar # Show Progress Bar # Get Download Location # Get Desired Resolution # Single Video Download # Playlist Single Video Download # Playlist Download # Main Function # Start of Program if __name_...
[ 11748, 28686, 198, 198, 11748, 12972, 5647, 1616, 198, 6738, 12972, 29302, 1330, 7444, 11, 3811, 4868, 198, 198, 7753, 62, 7857, 796, 657, 198, 43551, 62, 3672, 796, 13538, 628, 198, 2, 18387, 2409, 628, 198, 2, 5438, 18387, 2409, 628...
3.378641
103
# # Copyright 2014-2018 Neueda Ltd. # from cdr import Cdr import unittest field1 = 1 field2 = 2 field3 = 55 if __name__ == '__main__': unittest.main()
[ 2, 198, 2, 15069, 1946, 12, 7908, 3169, 1739, 64, 12052, 13, 198, 2, 198, 6738, 269, 7109, 1330, 327, 7109, 198, 11748, 555, 715, 395, 628, 198, 3245, 16, 796, 352, 198, 3245, 17, 796, 362, 198, 3245, 18, 796, 5996, 628, 198, 19...
2.424242
66
""" Copyright (c) 2003-2007 Gustavo Niemeyer <gustavo@niemeyer.net> This module offers extensions to the standard Python datetime module. """ import datetime import os import struct import sys import time from mo_future import PY3, string_types __license__ = "Simplified BSD" __all__ = ["tzutc", "tzoffset", "tzloca...
[ 37811, 198, 15269, 357, 66, 8, 5816, 12, 12726, 220, 43715, 78, 11556, 368, 2959, 263, 1279, 70, 436, 615, 78, 31, 8461, 368, 2959, 263, 13, 3262, 29, 198, 198, 1212, 8265, 4394, 18366, 284, 262, 3210, 11361, 198, 19608, 8079, 8265,...
2.560185
432
# -*- coding: utf-8 -*- """ # @SoftwareIDE : PyCharm2020Pro # @ProjectName : PySide2MVCFramework # @FileName : view.py # @Author : # @Email : 2839414139@qq.com # @ZhFileDescription : # @EnFileDescription : """ import os from pyside2mvcframework.core.view...
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 37811, 198, 2, 2488, 25423, 14114, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1058, 9485, 1925, 1670, 42334, 2964, 198, 2, 2488, 16775, 5376, 220, 220, 220, 220, 220...
2.266667
285
# Copyright (c) 2020, Xilinx # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are met: # # * Redistributions of source code must retain the above copyright notice, this # list of conditions and the follow...
[ 2, 15069, 357, 66, 8, 12131, 11, 1395, 346, 28413, 198, 2, 1439, 2489, 10395, 13, 198, 2, 198, 2, 2297, 396, 3890, 290, 779, 287, 2723, 290, 13934, 5107, 11, 351, 393, 1231, 198, 2, 17613, 11, 389, 10431, 2810, 326, 262, 1708, 3...
3.472015
536
import ast import emoji import os import pandas as pd _SUPPORT_CACHE_CSV = emoji.datafile('emoji_support.csv') _API_LEVELS = { 1: ("(no codename)", "1.0"), 2: ("(no codename)", "1.1"), 3: ("Cupcake", "1.5 "), 4: ("Donut", "1.6 "), 5: ("Eclair", "2.0"), 6: ("Eclair", "2.0.1"), 7: ("Eclair", "2.1 "), 8:...
[ 11748, 6468, 198, 11748, 44805, 198, 11748, 28686, 198, 11748, 19798, 292, 355, 279, 67, 198, 198, 62, 40331, 15490, 62, 34, 2246, 13909, 62, 7902, 53, 796, 44805, 13, 7890, 7753, 10786, 368, 31370, 62, 11284, 13, 40664, 11537, 198, 1...
2.166911
683
import json from django.urls import reverse from rest_framework import status from rest_framework.test import APITestCase from paste import constants from tests.mixins import SnippetListTestCaseMixin from tests.utils import constant, create_snippet, create_user
[ 11748, 33918, 198, 198, 6738, 42625, 14208, 13, 6371, 82, 1330, 9575, 198, 198, 6738, 1334, 62, 30604, 1330, 3722, 198, 6738, 1334, 62, 30604, 13, 9288, 1330, 3486, 2043, 395, 20448, 198, 198, 6738, 17008, 1330, 38491, 198, 198, 6738, ...
3.708333
72
# python3 from itertools import permutations if __name__ == '__main__': n = int(input()) prices = list(map(int, input().split())) clicks = list(map(int, input().split())) assert len(prices) == len(clicks) == n print(max_dot_product(prices, clicks))
[ 2, 21015, 18, 198, 198, 6738, 340, 861, 10141, 1330, 9943, 32855, 628, 628, 198, 361, 11593, 3672, 834, 6624, 705, 834, 12417, 834, 10354, 198, 220, 220, 220, 299, 796, 493, 7, 15414, 28955, 198, 220, 220, 220, 4536, 796, 1351, 7, ...
2.609524
105
hasGoodCredit = True price = 1000000 deposit = 0 if hasGoodCredit: deposit = price/10 else: deposit = price/5 print(f"Deposit needed: {deposit}")
[ 10134, 10248, 23690, 796, 6407, 198, 20888, 796, 1802, 2388, 198, 10378, 7434, 796, 657, 198, 361, 468, 10248, 23690, 25, 198, 220, 220, 220, 14667, 796, 2756, 14, 940, 198, 17772, 25, 198, 220, 220, 220, 14667, 796, 2756, 14, 20, 1...
2.732143
56
import config as props import sys import getopt from GitHubDataFetcher import GitHubDataFetcher from DependencyFile import DependencyFile from ErrorFile import ErrorFile # Github Token TOKEN = props.token OWNER = "" REPOSITORY = "" OUTPUTFILE = "" if __name__ == "__main__": main(sys.argv[1:])
[ 11748, 4566, 355, 25744, 201, 198, 11748, 25064, 201, 198, 11748, 651, 8738, 201, 198, 6738, 21722, 6601, 37, 316, 2044, 1330, 21722, 6601, 37, 316, 2044, 201, 198, 6738, 37947, 1387, 8979, 1330, 37947, 1387, 8979, 201, 198, 6738, 13047...
2.726496
117
import argparse import cv2 import glob import os from basicsr.archs.rrdbnet_arch import RRDBNet import time from realesrgan import RealESRGANer from realesrgan.archs.srvgg_arch import SRVGGNetCompact def main(): """Inference demo for Real-ESRGAN. """ parser = argparse.ArgumentParser() parser.add_argu...
[ 11748, 1822, 29572, 198, 11748, 269, 85, 17, 198, 11748, 15095, 198, 11748, 28686, 198, 6738, 19165, 81, 13, 34592, 13, 81, 4372, 65, 3262, 62, 998, 1330, 26067, 11012, 7934, 198, 11748, 640, 198, 198, 6738, 1103, 274, 81, 1030, 1330,...
2.167325
2,785
import os filenames_delete = [ 'CHG', 'CHGCAR', 'CONTCAR', 'DOSCAR', 'EIGENVAL', 'IBZKPT', 'job.err', 'job.out', 'OSZICAR', 'PCDAT', 'REPORT', 'vasp.log', 'vasprun.xml', 'WAVECAR', 'XDATCAR' ] for filename in filenames_delete: try: ...
[ 11748, 28686, 198, 198, 10379, 268, 1047, 62, 33678, 796, 685, 198, 220, 220, 220, 705, 3398, 38, 3256, 198, 220, 220, 220, 705, 3398, 15916, 1503, 3256, 198, 220, 220, 220, 705, 10943, 4825, 1503, 3256, 198, 220, 220, 220, 705, 351...
1.865942
276
''' Sean Chen's solution. See mine in largest_values_in_each_row.py ''' from collection import deque
[ 7061, 6, 198, 26408, 12555, 338, 4610, 13, 198, 6214, 6164, 287, 4387, 62, 27160, 62, 259, 62, 27379, 62, 808, 13, 9078, 198, 7061, 6, 198, 198, 6738, 4947, 1330, 390, 4188, 628 ]
3.029412
34