content
stringlengths
1
1.04M
input_ids
listlengths
1
774k
ratio_char_token
float64
0.38
22.9
token_count
int64
1
774k
import torch import torch.nn as nn import numpy as np from ..utils import export from torch.nn import functional as F @export @export @export @export @export @export I = Id() @export @export @export
[ 11748, 28034, 198, 11748, 28034, 13, 20471, 355, 299, 77, 198, 11748, 299, 32152, 355, 45941, 198, 6738, 11485, 26791, 1330, 10784, 198, 6738, 28034, 13, 20471, 1330, 10345, 355, 376, 198, 198, 31, 39344, 198, 198, 31, 39344, 198, 198, ...
2.759494
79
from django.conf.urls import url from . import views urlpatterns = [ url(r'^$', views.loadUserHome, name='loadUsersHome'), url(r'^viewProfile', views.viewProfile, name='viewProfile'), url(r'^createUser', views.createUser, name='createUser'), url(r'^submitUserCreation', views.submitUserCreation, name...
[ 6738, 42625, 14208, 13, 10414, 13, 6371, 82, 1330, 19016, 198, 6738, 764, 1330, 5009, 198, 198, 6371, 33279, 82, 796, 685, 628, 220, 220, 220, 19016, 7, 81, 6, 61, 3, 3256, 5009, 13, 2220, 12982, 16060, 11, 1438, 11639, 2220, 14490,...
2.629888
716
# Copyright 2021 UW-IT, University of Washington # SPDX-License-Identifier: Apache-2.0 import hashlib import json import logging from userservice.user import get_original_user, get_override_user logger = logging.getLogger(__name__)
[ 2, 15069, 33448, 33436, 12, 2043, 11, 2059, 286, 2669, 198, 2, 30628, 55, 12, 34156, 12, 33234, 7483, 25, 24843, 12, 17, 13, 15, 198, 11748, 12234, 8019, 198, 11748, 33918, 198, 11748, 18931, 198, 6738, 2985, 712, 501, 13, 7220, 133...
3.263889
72
import numpy as np import random import copy from utils import *
[ 11748, 299, 32152, 355, 45941, 198, 11748, 4738, 198, 11748, 4866, 198, 6738, 3384, 4487, 1330, 1635, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 198, 220, 220, 220, 220, ...
1.635135
74
import pytest from Application import application @pytest.fixture
[ 11748, 12972, 9288, 198, 6738, 15678, 1330, 3586, 198, 198, 31, 9078, 9288, 13, 69, 9602 ]
4.125
16
#!/usr/bin/python import numpy from textblob import Word from cogpheno.apps.assessments.models import BehavioralTrait from cogpheno.apps.assessments.views import for term in terms: make_new_concept(term) from textblob.wordnet import Synset # Add parts of speech for behavior in BehavioralTrait.objects.all(): ...
[ 2, 48443, 14629, 14, 8800, 14, 29412, 198, 11748, 299, 32152, 198, 6738, 2420, 2436, 672, 1330, 9678, 198, 198, 6738, 43072, 31024, 78, 13, 18211, 13, 562, 408, 902, 13, 27530, 1330, 38483, 51, 12907, 198, 6738, 43072, 31024, 78, 13, ...
2.606557
183
# This problem was recently asked by Uber: # Given a number of integers, combine them so it would create the largest number. from itertools import permutations print(largestNum([17, 7, 2, 45, 72])) # 77245217
[ 2, 220, 770, 1917, 373, 2904, 1965, 416, 12024, 25, 198, 198, 2, 11259, 257, 1271, 286, 37014, 11, 12082, 606, 523, 340, 561, 2251, 262, 4387, 1271, 13, 198, 6738, 340, 861, 10141, 1330, 9943, 32855, 628, 198, 198, 4798, 7, 28209, ...
3.396825
63
# -*- coding: utf-8 -*- from . import database from . import sitecfg from . import sleeper from . import loot_prices
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 198, 6738, 764, 1330, 6831, 198, 6738, 764, 1330, 2524, 37581, 198, 6738, 764, 1330, 46594, 198, 6738, 764, 1330, 16702, 62, 1050, 1063, 628, 628, 198 ]
2.97561
41
print('-' * 28) print('{:^28}'.format('BANCO DANIMONEY')) print('-' * 28) valor = int(input('Quanto deseja sacar? R$')) total = valor ced50 = total // 50 total %= 50 ced20 = total // 20 total %= 20 ced10 = total // 10 total %= 10 ced1 = total // 1 total %= 1 if ced50 > 0: print(f'Total de {ced50} cédu...
[ 4798, 10786, 19355, 1635, 2579, 8, 201, 198, 4798, 10786, 90, 25, 61, 2078, 92, 4458, 18982, 10786, 33, 1565, 8220, 360, 1565, 3955, 48399, 6, 4008, 201, 198, 4798, 10786, 19355, 1635, 2579, 8, 201, 198, 2100, 273, 796, 493, 7, 1541...
2.06746
252
from rest_framework.test import APITestCase from api.models import Favourite, Category from ..mocks import jellof_rice
[ 6738, 1334, 62, 30604, 13, 9288, 1330, 3486, 2043, 395, 20448, 198, 6738, 40391, 13, 27530, 1330, 376, 29023, 578, 11, 21743, 198, 6738, 11485, 76, 3320, 1330, 474, 695, 1659, 62, 20970, 628 ]
3.529412
34
import os import warnings import torch import pydicom import numpy as np from natsort import natsorted from torch.utils.data import Dataset class Patient: """ 3D-IRCADb-01 patient. Parameters ---------- path : str Path to patient records. tissue : str, optional Type of tis...
[ 11748, 28686, 198, 11748, 14601, 198, 198, 11748, 28034, 198, 11748, 279, 5173, 291, 296, 198, 11748, 299, 32152, 355, 45941, 198, 198, 6738, 299, 1381, 419, 1330, 299, 1381, 9741, 198, 6738, 28034, 13, 26791, 13, 7890, 1330, 16092, 292...
2.212378
3,070
from jina.peapods.pods.factory import PodFactory from jina.peapods.pods import Pod from jina.peapods.pods.compoundpod import CompoundPod from jina.parsers import set_pod_parser
[ 6738, 474, 1437, 13, 431, 499, 12978, 13, 79, 12978, 13, 69, 9548, 1330, 17437, 22810, 198, 6738, 474, 1437, 13, 431, 499, 12978, 13, 79, 12978, 1330, 17437, 198, 6738, 474, 1437, 13, 431, 499, 12978, 13, 79, 12978, 13, 5589, 633, ...
2.825397
63
from pyapprox.nataf_transformation import * from pyapprox.probability_measure_sampling import rejection_sampling from scipy.stats import norm as normal_rv from scipy.stats import beta as beta_rv from scipy.stats import gamma as gamma_rv from functools import partial import unittest from pyapprox.utilities import get_te...
[ 6738, 12972, 1324, 13907, 13, 77, 1045, 69, 62, 7645, 1161, 1330, 1635, 198, 6738, 12972, 1324, 13907, 13, 1676, 65, 1799, 62, 1326, 5015, 62, 37687, 11347, 1330, 17927, 62, 37687, 11347, 198, 6738, 629, 541, 88, 13, 34242, 1330, 2593...
2.729064
203
''' Web Class Helper Speed Testing Module 2.0.1 This source code file is under MIT License. Copyright (c) 2022 Class Tools Develop Team Contributors: jsh-jsh ren-yc ''' import psutil import sys from tkinter import * from tkinter.messagebox import showerror from time import sleep root = Tk() root.geometry('200x100') ro...
[ 7061, 6, 198, 13908, 5016, 5053, 525, 8729, 23983, 19937, 362, 13, 15, 13, 16, 198, 1212, 2723, 2438, 2393, 318, 739, 17168, 13789, 13, 198, 15269, 357, 66, 8, 33160, 5016, 20003, 6013, 4816, 198, 37146, 669, 25, 474, 1477, 12, 73, ...
3.048649
185
import logging import random from types import CodeType, new_class import uuid import os from flask import Blueprint, jsonify, session, request, current_app from datetime import datetime, timedelta from decimal import Decimal from sqlalchemy.sql.expression import null from app.models.model import Class, StuCls, Studen...
[ 11748, 18931, 198, 11748, 4738, 198, 6738, 3858, 1330, 6127, 6030, 11, 649, 62, 4871, 198, 11748, 334, 27112, 198, 11748, 28686, 198, 6738, 42903, 1330, 39932, 11, 33918, 1958, 11, 6246, 11, 2581, 11, 1459, 62, 1324, 198, 6738, 4818, ...
1.950315
5,072
import numpy as np import matplotlib.pyplot as plt import gym #discretize the spaces pole_theta_space = np.linspace(-0.20943951, 0.20943951, 10) pole_theta_velocity_space = np.linspace(-4, 4, 10) cart_position_space = np.linspace(-2.4, 2.4, 10) cart_velocity_space = np.linspace(-4, 4, 10) if __name__ == '__main__': ...
[ 11748, 299, 32152, 355, 45941, 198, 11748, 2603, 29487, 8019, 13, 9078, 29487, 355, 458, 83, 198, 11748, 11550, 198, 198, 2, 15410, 1186, 1096, 262, 9029, 198, 36869, 62, 1169, 8326, 62, 13200, 796, 45941, 13, 21602, 10223, 32590, 15, ...
1.920074
1,076
import angr import sys """ Solving reserial - NOT WORKING flag: EZAV ``` python solve.py ``` """ if __name__ == "__main__": main()
[ 11748, 281, 2164, 198, 11748, 25064, 198, 198, 37811, 198, 50, 10890, 581, 48499, 532, 5626, 30936, 2751, 198, 32109, 25, 412, 57, 10116, 198, 198, 15506, 63, 198, 29412, 8494, 13, 9078, 198, 15506, 63, 198, 37811, 628, 198, 198, 361,...
2.413793
58
from tkinter import * from misc.findrobots import findrobots Application()
[ 6738, 256, 74, 3849, 1330, 1635, 198, 6738, 12747, 13, 19796, 22609, 1747, 1330, 1064, 22609, 1747, 628, 198, 198, 23416, 3419, 198 ]
3.391304
23
#!/usr/bin/python import subprocess import bottle from bottle import route, static_file, debug, run, get, redirect from bottle import post, request, template, response import os, inspect, json, time, sys import random from threading import Thread, RLock #enable bottle debug debug(True) # WebApp route path # get dir...
[ 2, 48443, 14629, 14, 8800, 14, 29412, 198, 198, 11748, 850, 14681, 198, 11748, 9294, 198, 6738, 9294, 1330, 6339, 11, 9037, 62, 7753, 11, 14257, 11, 1057, 11, 651, 11, 18941, 198, 6738, 9294, 1330, 1281, 11, 2581, 11, 11055, 11, 288...
2.495082
610
# KVM-based Discoverable Cloudlet (KD-Cloudlet) # Copyright (c) 2015 Carnegie Mellon University. # All Rights Reserved. # # THIS SOFTWARE IS PROVIDED "AS IS," WITH NO WARRANTIES WHATSOEVER. CARNEGIE MELLON UNIVERSITY EXPRESSLY DISCLAIMS TO THE FULLEST EXTENT PERMITTEDBY LAW ALL EXPRESS, IMPLIED, AND STATUTORY WARRANT...
[ 2, 509, 15996, 12, 3106, 29704, 540, 10130, 1616, 357, 42, 35, 12, 18839, 1616, 8, 220, 198, 2, 15069, 357, 66, 8, 1853, 33976, 49808, 2059, 13, 198, 2, 1439, 6923, 33876, 13, 198, 2, 220, 198, 2, 12680, 47466, 3180, 36592, 2389, ...
3.665094
424
# # Copyright (c) 2008-2015 Thierry Florac <tflorac AT ulthar.net> # All Rights Reserved. # # This software is subject to the provisions of the Zope Public License, # Version 2.1 (ZPL). A copy of the ZPL should accompany this distribution. # THIS SOFTWARE IS PROVIDED "AS IS" AND ANY AND ALL EXPRESS OR IMPLIED # WARRAN...
[ 2, 198, 2, 15069, 357, 66, 8, 3648, 12, 4626, 536, 959, 563, 4432, 330, 1279, 83, 2704, 273, 330, 5161, 14856, 400, 283, 13, 3262, 29, 198, 2, 1439, 6923, 33876, 13, 198, 2, 198, 2, 770, 3788, 318, 2426, 284, 262, 8617, 286, 2...
3.239437
284
from inspect import isfunction, signature, ismethod from types import MethodType from typing import Callable, List from bobocep.rules.events.bobo_event import BoboEvent from bobocep.rules.events.histories.bobo_history import BoboHistory from bobocep.rules.predicates.bobo_predicate import BoboPredicate class BoboPred...
[ 6738, 10104, 1330, 318, 8818, 11, 9877, 11, 318, 24396, 198, 6738, 3858, 1330, 11789, 6030, 198, 6738, 19720, 1330, 4889, 540, 11, 7343, 198, 198, 6738, 275, 20391, 344, 79, 13, 38785, 13, 31534, 13, 65, 20391, 62, 15596, 1330, 5811, ...
2.996441
281
import rotation_matrix x_apt = 30 y_apt = -7.6 z_apt = 22 ii = -0.5 jj = -0.6 kk = 0.33 last_b = 30.234 rotation_matrix.transf(x_apt, y_apt, z_apt, ii, jj, kk, last_b)
[ 11748, 13179, 62, 6759, 8609, 201, 198, 201, 198, 87, 62, 2373, 796, 1542, 201, 198, 88, 62, 2373, 796, 532, 22, 13, 21, 201, 198, 89, 62, 2373, 796, 2534, 201, 198, 4178, 796, 532, 15, 13, 20, 201, 198, 41098, 796, 532, 15, 1...
1.759615
104
#!/usr/bin/python3 # Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. # SPDX-License-Identifier: Apache-2.0 OR MIT import re import sys if __name__ == "__main__": filenames = sys.argv[1:] checks = [copyright_check(fname) for fname in filenames] for i in range(len(filenames)): ...
[ 2, 48443, 14629, 14, 8800, 14, 29412, 18, 198, 2, 15069, 6186, 13, 785, 11, 3457, 13, 393, 663, 29116, 13, 1439, 6923, 33876, 13, 198, 2, 30628, 55, 12, 34156, 12, 33234, 7483, 25, 24843, 12, 17, 13, 15, 6375, 17168, 198, 11748, ...
2.331776
214
from random import randint, sample, choice import string from Crypto.Cipher import AES import struct import select import logging from socket_bytes_producer import SocketBytesProducer ENCODING = 'utf-8' LEN_COLUMN_LEN = 6 iv_param = 'This is an IV456' CRYPTO_INPUT_LEN_UNIT = 16 CIPHER_LEN_UNIT = 16 # aes密文长度为16的倍数 MA...
[ 198, 6738, 4738, 1330, 43720, 600, 11, 6291, 11, 3572, 198, 11748, 4731, 198, 6738, 36579, 13, 34, 10803, 1330, 34329, 198, 11748, 2878, 198, 11748, 2922, 198, 11748, 18931, 198, 6738, 17802, 62, 33661, 62, 18230, 2189, 1330, 47068, 459...
1.928412
447
"""Local Api tests.""" import json import os import pytest # type: ignore import requests_mock # type: ignore from airzone.localapi import Machine, OperationMode, Speed THIS_DIR = os.path.dirname(os.path.abspath(__file__)) response_test_path = os.path.join(THIS_DIR, "data/response.json") @pytest.fixture def mock...
[ 37811, 14565, 5949, 72, 5254, 526, 15931, 198, 11748, 33918, 198, 11748, 28686, 198, 198, 11748, 12972, 9288, 220, 1303, 2099, 25, 8856, 198, 11748, 7007, 62, 76, 735, 220, 1303, 2099, 25, 8856, 198, 198, 6738, 1633, 11340, 13, 12001, ...
2.651297
347
'''Spectral Modelling''' from __future__ import print_function, division import numpy as np import numpy.lib.recfunctions as rf from mla.spectral import * from mla.timing import * import scipy.stats from mla import tools class PSinjector(object): r'''injector of point source''' def __init__(self, spectrum, mc...
[ 7061, 6, 49738, 1373, 3401, 9417, 7061, 6, 198, 198, 6738, 11593, 37443, 834, 1330, 3601, 62, 8818, 11, 7297, 198, 11748, 299, 32152, 355, 45941, 198, 11748, 299, 32152, 13, 8019, 13, 8344, 12543, 2733, 355, 374, 69, 198, 6738, 285, ...
2.018641
5,311
import os, sys import numpy as np import cv2 import torch import torch.nn as nn from .ppyolov2_base import PPYOLOv2Base from .utils import Decode from .pt_utils import yolo_box, matrix_nms ALL_CLASSES_PubLayNet = [ 'Text', 'Title', 'List', 'Table', 'Figure', ] # PubLayNet ALL_CLASSES_TableBank = ['Tabl...
[ 11748, 28686, 11, 25064, 198, 11748, 299, 32152, 355, 45941, 198, 11748, 269, 85, 17, 198, 11748, 28034, 198, 11748, 28034, 13, 20471, 355, 299, 77, 198, 6738, 764, 14097, 349, 709, 17, 62, 8692, 1330, 21082, 56, 3535, 46, 85, 17, 1...
2.572519
131
import sys from heuristica import * from adapter import Adapter from guloso import rotaMinima if __name__=='__main__': main(sys.argv)
[ 11748, 25064, 198, 6738, 339, 27915, 64, 1330, 1635, 198, 6738, 21302, 1330, 43721, 198, 6738, 47161, 28213, 1330, 5724, 64, 9452, 8083, 198, 361, 11593, 3672, 834, 855, 6, 834, 12417, 834, 10354, 198, 220, 220, 220, 1388, 7, 17597, 1...
3.044444
45
from ._fasttree2 import TreeBuilderFastTree2
[ 6738, 47540, 7217, 21048, 17, 1330, 12200, 32875, 22968, 27660, 17 ]
4
11
import requests import pandas as pd import numpy as np import io from datetime import date, timedelta from pydrive.auth import GoogleAuth from pydrive.drive import GoogleDrive import zipfile gauth = GoogleAuth() gauth.LocalWebserverAuth() # Creates local webserver and auto handles authentication. drive = GoogleDrive...
[ 11748, 7007, 198, 11748, 19798, 292, 355, 279, 67, 198, 11748, 299, 32152, 355, 45941, 198, 11748, 33245, 198, 6738, 4818, 8079, 1330, 3128, 11, 28805, 12514, 198, 6738, 279, 5173, 11590, 13, 18439, 1330, 3012, 30515, 198, 6738, 279, 51...
2.623064
581
task = [[i + 1, 0] for i in range(12)] for i in range(int(input())): task[int(input()) - 1][1] += 1 for i, t in sorted(filter(lambda t: t[1] != 0, task), key = lambda x: x[1], reverse = True): print(i, t)
[ 35943, 796, 16410, 72, 1343, 352, 11, 657, 60, 329, 1312, 287, 2837, 7, 1065, 15437, 198, 198, 1640, 1312, 287, 2837, 7, 600, 7, 15414, 28955, 2599, 198, 220, 220, 220, 4876, 58, 600, 7, 15414, 28955, 532, 352, 7131, 16, 60, 15853...
2.336957
92
#!/usr/bin/env python3 # # Copyright 2017 Canonical Ltd # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law o...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 18, 198, 2, 198, 2, 15069, 2177, 19507, 605, 12052, 198, 2, 198, 2, 49962, 739, 262, 24843, 13789, 11, 10628, 362, 13, 15, 357, 1169, 366, 34156, 15341, 198, 2, 345, 743, 407, 779, 428,...
3.316062
386
import os, sys, random, warnings sys.path.append(os.path.join(os.path.dirname(__file__), '..', '..', 'utils')) from sorting_visualise import vis if __name__=='__main__': n = 100 item=[None]*n for i in range(n): item[i] = random.random()*100 insertion_sort(item, begin=0, end=len(item...
[ 11748, 28686, 11, 25064, 11, 4738, 11, 14601, 198, 17597, 13, 6978, 13, 33295, 7, 418, 13, 6978, 13, 22179, 7, 418, 13, 6978, 13, 15908, 3672, 7, 834, 7753, 834, 828, 705, 492, 3256, 705, 492, 3256, 705, 26791, 6, 4008, 198, 6738,...
1.865435
379
"""HACS Sensor Test Suite.""" # pylint: disable=missing-docstring import pytest from custom_components.hacs.repositories import HacsIntegrationRepository from custom_components.hacs.sensor import ( HACSSensor, async_setup_entry, async_setup_platform, ) @pytest.mark.asyncio @pytest.mark.asyncio @pyt...
[ 37811, 39, 2246, 50, 35367, 6208, 26264, 526, 15931, 198, 2, 279, 2645, 600, 25, 15560, 28, 45688, 12, 15390, 8841, 198, 11748, 12972, 9288, 198, 198, 6738, 2183, 62, 5589, 3906, 13, 71, 16436, 13, 260, 1930, 270, 1749, 1330, 367, 1...
2.653543
127
''' Given a non-empty array of digits representing a non-negative integer, plus one to the integer. The digits are stored such that the most significant digit is at the head of the list, and each element in the array contain a single digit. You may assume the integer does not contain any leading zero, except the nu...
[ 7061, 6, 198, 15056, 257, 1729, 12, 28920, 7177, 286, 19561, 10200, 257, 220, 198, 13159, 12, 31591, 18253, 11, 5556, 530, 284, 262, 18253, 13, 198, 198, 464, 19561, 389, 8574, 884, 326, 262, 749, 2383, 16839, 318, 379, 262, 220, 19...
4.059524
84
from typing import List from sort.simple.helper import Helper from sort.simple.sort import Sort from util.generic_type import C
[ 6738, 19720, 1330, 7343, 201, 198, 201, 198, 6738, 3297, 13, 36439, 13, 2978, 525, 1330, 5053, 525, 201, 198, 6738, 3297, 13, 36439, 13, 30619, 1330, 33947, 201, 198, 6738, 7736, 13, 41357, 62, 4906, 1330, 327, 201, 198, 201, 198, 2...
2.678571
56
import numpy as np import matplotlib.pyplot as plt import numba as nb @nb.njit def lumpvor2d(xcol, zcol, xvor, zvor, circvor=1): """ Compute the velocity at an arbitrary collocation point (xcol, zcol) due to vortex element of circulation circvor, placed at (xvor, zvor). :param xcol: x-coordinate of t...
[ 11748, 299, 32152, 355, 45941, 198, 11748, 2603, 29487, 8019, 13, 9078, 29487, 355, 458, 83, 198, 11748, 997, 7012, 355, 299, 65, 628, 198, 31, 46803, 13, 77, 45051, 198, 4299, 23844, 20867, 17, 67, 7, 87, 4033, 11, 1976, 4033, 11, ...
2.168326
2,109
from RestrictionTypeDetector import RestrictionTypeDetector from RestrictionTypeDetector import TYPE_INT from RestrictionTypeDetector import TYPE_FLOAT from RestrictionTypeDetector import MEASURE_OCCURRENCE class DisjointClassDetector(RestrictionTypeDetector): """ This class serves as interface for all Restri...
[ 198, 6738, 37163, 295, 6030, 11242, 9250, 1330, 37163, 295, 6030, 11242, 9250, 198, 6738, 37163, 295, 6030, 11242, 9250, 1330, 41876, 62, 12394, 198, 6738, 37163, 295, 6030, 11242, 9250, 1330, 41876, 62, 3697, 46, 1404, 198, 6738, 37163, ...
3.955414
157
""" These are all of the signatures related to decoding """ from signatures.abstracts import Signature
[ 37811, 201, 198, 4711, 389, 477, 286, 262, 17239, 3519, 284, 39938, 201, 198, 37811, 201, 198, 6738, 17239, 13, 397, 8709, 82, 1330, 34894, 201, 198, 201, 198 ]
3.758621
29
# stdlib imports import sys import time # FAPWS imports import config import errors access_logfid = sys.stdout error_logfid = sys.stdout def setup(): '''Update some global variables based on command-line configuration. ''' try: if config.conf['error_log']: error_logfid...
[ 2, 14367, 8019, 17944, 201, 198, 11748, 25064, 201, 198, 11748, 640, 201, 198, 201, 198, 2, 376, 2969, 19416, 17944, 201, 198, 11748, 4566, 201, 198, 11748, 8563, 201, 198, 201, 198, 15526, 62, 6404, 69, 312, 796, 25064, 13, 19282, ...
2.110565
407
""" File: my_drawing.py Name: Ethan Huang ---------------------- TODO: This program is a drawing I create for the drawing competition of StanCode101 It builds an interface from the background to the front layer, mimicking the "Kahoot" game to ask users to choose the real Karel. """ from campy.graphics.gobjects import ...
[ 37811, 198, 8979, 25, 616, 62, 19334, 278, 13, 9078, 198, 5376, 25, 28926, 31663, 198, 19351, 438, 198, 51, 3727, 46, 25, 198, 1212, 1430, 318, 257, 8263, 314, 2251, 329, 262, 8263, 5449, 286, 7299, 10669, 8784, 198, 1026, 12188, 28...
2.108268
5,394
import sys import numpy as np sys.path.append('..') from Game import Game from .DotsAndBoxesLogic import Board
[ 11748, 25064, 198, 11748, 299, 32152, 355, 45941, 198, 198, 17597, 13, 6978, 13, 33295, 10786, 492, 11537, 198, 6738, 3776, 1330, 3776, 198, 6738, 764, 35, 1747, 1870, 14253, 274, 11187, 291, 1330, 5926, 198 ]
3.111111
36
############################################################################### # Name: Siebren Kazemier # Student number: 12516597 # School: Uva # Project: Assignment week 4, Converting CSV file to JSON ############################################################################### import pandas as pd # csv_file = r...
[ 29113, 29113, 7804, 4242, 21017, 198, 2, 6530, 25, 48931, 65, 918, 16385, 368, 959, 198, 2, 13613, 1271, 25, 13151, 1433, 43239, 198, 2, 3961, 25, 471, 6862, 198, 2, 4935, 25, 50144, 1285, 604, 11, 35602, 889, 44189, 2393, 284, 1944...
3.554688
128
from Posicao import Posicao from AEstrela import AEstrela from QuebraCabeca import QuebraCabeca from QuebraCabecaImp import QuebraCabecaImp import math import queue import heapq from random import gammavariate, shuffle
[ 6738, 18574, 3970, 78, 1330, 18574, 3970, 78, 198, 6738, 317, 22362, 2411, 64, 1330, 317, 22362, 2411, 64, 198, 6738, 4670, 16057, 34, 397, 31047, 1330, 4670, 16057, 34, 397, 31047, 198, 6738, 4670, 16057, 34, 397, 31047, 26950, 1330, ...
3.205882
68
#Challenge 11 #The program asks the user to input two numbers. #It will then outputthe larger of these two numbers. num1 = int(input("please enter a number: ")) num2 = int(input("please enter a second number: ")) if num1 > num2: print("Num1 is bigger") elif num2 > num1: print("Num2 is bigger") else: pr...
[ 2, 41812, 3540, 1367, 201, 198, 2, 464, 1430, 7893, 262, 2836, 284, 5128, 734, 3146, 13, 201, 198, 2, 1026, 481, 788, 5072, 1169, 4025, 286, 777, 734, 3146, 13, 201, 198, 201, 198, 22510, 16, 796, 493, 7, 15414, 7203, 29688, 3802,...
2.811475
122
from relogic.textkit.semparse.sql.crawled_sql.sql_helper import get_query_tables, get_query_columns, get_query_tokens, generalize_sql from relogic.textkit.semparse.sql.crawled_sql.verify_sequence import verify import sqlparse import copy from moz_sql_parser import format, parse import re import json if __name__ == "...
[ 6738, 823, 519, 291, 13, 5239, 15813, 13, 43616, 29572, 13, 25410, 13, 66, 49263, 62, 25410, 13, 25410, 62, 2978, 525, 1330, 651, 62, 22766, 62, 83, 2977, 11, 651, 62, 22766, 62, 28665, 82, 11, 651, 62, 22766, 62, 83, 482, 641, ...
2.62715
2,733
import os # from extune.settings import EXPERIMENTS_DIR, MODULE_DIR from extune.sacred.utils import config_logger # from extune.model import model_fn, train_fn, input_fn from extune.sacred.ingredients import data_ingredient from network.train_network import train_network # from network.config import Config from ten...
[ 11748, 28686, 198, 198, 2, 422, 1070, 1726, 13, 33692, 1330, 7788, 18973, 3955, 15365, 62, 34720, 11, 33893, 62, 34720, 198, 6738, 1070, 1726, 13, 30584, 445, 13, 26791, 1330, 4566, 62, 6404, 1362, 198, 198, 2, 422, 1070, 1726, 13, ...
2.508653
1,618
#!/usr/bin/env python # coding:utf-8 """ Name : check_db_connection.py Author : Dmitry Kruchinin Date : 7/1/2021 Desc: """ from fixture.orm import ORMFixture from model.group import Group db = ORMFixture(host="localhost", database="addressbook", user="root", password="") try: groups = db.get_groups_lis...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 198, 2, 19617, 25, 40477, 12, 23, 198, 37811, 198, 5376, 220, 220, 220, 1058, 2198, 62, 9945, 62, 38659, 13, 9078, 198, 13838, 220, 1058, 45181, 33909, 24658, 259, 198, 10430, 220, 220, 2...
2.530952
420
# coding: utf-8 import io import magic from typing import List from deprecated import deprecated import requests import urllib3 import datetime import dateutil.parser import json import logging from pycti.api.opencti_api_connector import OpenCTIApiConnector from pycti.api.opencti_api_job import OpenCTIApiJob from py...
[ 2, 19617, 25, 3384, 69, 12, 23, 198, 198, 11748, 33245, 198, 11748, 5536, 198, 6738, 19720, 1330, 7343, 198, 6738, 39224, 1330, 39224, 198, 198, 11748, 7007, 198, 11748, 2956, 297, 571, 18, 198, 11748, 4818, 8079, 198, 11748, 3128, 22...
2.731197
3,776
from __future__ import print_function, unicode_literals import uuid from itertools import chain from numbers import Number from antelope import CatalogRef, BaseEntity, PropertyExists from synonym_dict import LowerDict entity_types = ('process', 'flow', 'quantity', 'fragment') entity_refs = { 'process': 'exchang...
[ 6738, 11593, 37443, 834, 1330, 3601, 62, 8818, 11, 28000, 1098, 62, 17201, 874, 198, 198, 11748, 334, 27112, 198, 6738, 340, 861, 10141, 1330, 6333, 198, 6738, 3146, 1330, 7913, 198, 6738, 1885, 47329, 1330, 44515, 8134, 11, 7308, 32398...
2.448576
1,264
import time import datetime import copy import json from collections import defaultdict import numpy as np from pycocotools.cocoeval import COCOeval class myCOCOeval(COCOeval): ''' Make COCOeval more flexible ''' def _prepare(self): ''' Prepare ._gts and ._dts for evaluation based on ...
[ 11748, 640, 198, 11748, 4818, 8079, 198, 11748, 4866, 198, 11748, 33918, 198, 6738, 17268, 1330, 4277, 11600, 198, 11748, 299, 32152, 355, 45941, 198, 6738, 12972, 66, 420, 313, 10141, 13, 66, 25634, 18206, 1330, 327, 4503, 46, 18206, 6...
1.79715
5,122
import numpy as np from numba import njit import utility # consav from consav import linear_interp # for linear interpolation @njit
[ 11748, 299, 32152, 355, 45941, 198, 6738, 997, 7012, 1330, 299, 45051, 198, 198, 11748, 10361, 198, 198, 2, 762, 615, 198, 6738, 762, 615, 1330, 14174, 62, 3849, 79, 1303, 329, 14174, 39555, 341, 198, 198, 31, 77, 45051 ]
3.35
40
# Copyright 2016 Datera # 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 applic...
[ 2, 15069, 1584, 360, 729, 64, 198, 2, 1439, 6923, 33876, 13, 198, 2, 198, 2, 220, 220, 220, 49962, 739, 262, 24843, 13789, 11, 10628, 362, 13, 15, 357, 1169, 366, 34156, 15341, 345, 743, 198, 2, 220, 220, 220, 407, 779, 428, 239...
2.217428
8,389
# main.py import module1 # even though test was added to sys.modules # in module1, we can still access it from here import test print(test()) # don't do this! It's a bad hack to illustrate how import looks # in sys.modules for the symbol we are importing
[ 2, 1388, 13, 9078, 198, 11748, 8265, 16, 198, 198, 2, 772, 996, 1332, 373, 2087, 284, 25064, 13, 18170, 198, 2, 287, 8265, 16, 11, 356, 460, 991, 1895, 340, 422, 994, 198, 11748, 1332, 198, 198, 4798, 7, 9288, 28955, 198, 198, 2...
3.513514
74
from __future__ import absolute_import, print_function, unicode_literals import contextlib import six from django import template from django.template.base import token_kwargs from django.utils.module_loading import import_string import django_ftl register = template.Library() MODE_SERVER = 'server' MODES = [ ...
[ 6738, 11593, 37443, 834, 1330, 4112, 62, 11748, 11, 3601, 62, 8818, 11, 28000, 1098, 62, 17201, 874, 198, 198, 11748, 4732, 8019, 198, 198, 11748, 2237, 198, 6738, 42625, 14208, 1330, 11055, 198, 6738, 42625, 14208, 13, 28243, 13, 8692,...
2.837696
191
import tkinter as tk import tkinter.ttk as ttk from tkinter import scrolledtext from datetime import datetime import logging import queue import time
[ 11748, 256, 74, 3849, 355, 256, 74, 198, 11748, 256, 74, 3849, 13, 926, 74, 355, 256, 30488, 198, 198, 6738, 256, 74, 3849, 1330, 629, 8375, 5239, 198, 6738, 4818, 8079, 1330, 4818, 8079, 198, 198, 11748, 18931, 198, 11748, 16834, 1...
3.270833
48
course = ' Python for Beginners ' print(len(course)) # Genereal perpous function print(course.upper()) print(course) print(course.lower()) print(course.title()) print(course.lstrip()) print(course.rstrip()) # Returns the index of the first occurrence of the character. print(course.find('P')) print(course.find('B'...
[ 17319, 796, 705, 220, 11361, 329, 16623, 2741, 220, 220, 220, 705, 198, 4798, 7, 11925, 7, 17319, 4008, 220, 1303, 5215, 567, 282, 583, 79, 516, 2163, 198, 4798, 7, 17319, 13, 45828, 28955, 198, 4798, 7, 17319, 8, 198, 4798, 7, 17...
3.093023
215
import pickle import torch import numpy as np import shutil import os import torch import cv2 from torchvision.ops.boxes import box_iou import matplotlib.pyplot as plt import matplotlib.patches as patches import json ''' This script can be used to convert dataset to the following form - a folder containing scene image...
[ 11748, 2298, 293, 198, 11748, 28034, 198, 11748, 299, 32152, 355, 45941, 198, 11748, 4423, 346, 198, 11748, 28686, 198, 11748, 28034, 198, 11748, 269, 85, 17, 198, 6738, 28034, 10178, 13, 2840, 13, 29305, 1330, 3091, 62, 72, 280, 198, ...
1.923203
2,448
import datetime
[ 11748, 4818, 8079 ]
5
3
""" Author: Hamza Dated: 20.04.2019 Project: texttomap """ import pickle import matplotlib.pyplot as plt import numpy as np import torch import torch.nn as nn import torch.nn.functional as F from torch.utils import data from util.word_encoding import getklass device = torch.device('cuda:0' if torch.cuda.is_availab...
[ 37811, 198, 13838, 25, 4345, 4496, 198, 35, 515, 25, 1160, 13, 3023, 13, 23344, 198, 16775, 25, 2420, 39532, 499, 198, 198, 37811, 198, 198, 11748, 2298, 293, 198, 198, 11748, 2603, 29487, 8019, 13, 9078, 29487, 355, 458, 83, 198, 1...
2.450617
648
""" Integration Test File for service_framework.connection_utils.py """ import logging import pytest from service_framework.utils import connection_utils from service_framework.connections.out.requester import Requester LOG = logging.getLogger(__name__) def test_connection_utils__base_connection__valid_validate_add...
[ 37811, 38410, 6208, 9220, 329, 2139, 62, 30604, 13, 38659, 62, 26791, 13, 9078, 37227, 198, 198, 11748, 18931, 198, 11748, 12972, 9288, 198, 6738, 2139, 62, 30604, 13, 26791, 1330, 4637, 62, 26791, 198, 6738, 2139, 62, 30604, 13, 8443, ...
2.345183
4,951
""" Created on 16/07/2014 @author: victor """ import traceback from pyproct.tools.plugins import PluginHandler
[ 37811, 198, 41972, 319, 1467, 14, 2998, 14, 4967, 198, 198, 31, 9800, 25, 2210, 273, 198, 37811, 198, 11748, 12854, 1891, 198, 6738, 12972, 1676, 310, 13, 31391, 13, 37390, 1330, 42636, 25060 ]
3.264706
34
# Generated by the protocol buffer compiler. DO NOT EDIT! # source: tensorflow/contrib/tensorboard/plugins/trace/trace_info.proto import sys _b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) from google.protobuf import descriptor as _descriptor from google.protobuf import message as _message ...
[ 2, 2980, 515, 416, 262, 8435, 11876, 17050, 13, 220, 8410, 5626, 48483, 0, 198, 2, 2723, 25, 11192, 273, 11125, 14, 3642, 822, 14, 83, 22854, 3526, 14, 37390, 14, 40546, 14, 40546, 62, 10951, 13, 1676, 1462, 198, 198, 11748, 25064, ...
2.436387
6,123
# -*- coding: utf-8 -*- # Python 2 and 3 from __future__ import unicode_literals import datetime import sys from unittest import TestCase from mock import patch from gapipy.client import Client from gapipy.query import Query from gapipy.models import DATE_FORMAT, AccommodationRoom from gapipy.resources import ( ...
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 2, 11361, 362, 290, 513, 198, 6738, 11593, 37443, 834, 1330, 28000, 1098, 62, 17201, 874, 198, 198, 11748, 4818, 8079, 198, 11748, 25064, 198, 6738, 555, 715, 395, 1330,...
3.213542
384
import cmd import sys if __name__ == '__main__': try: uppermethod().cmdloop() except KeyboardInterrupt: sys.exit()
[ 11748, 23991, 198, 11748, 25064, 198, 361, 11593, 3672, 834, 6624, 705, 834, 12417, 834, 10354, 198, 220, 220, 220, 1949, 25, 198, 220, 220, 220, 220, 220, 220, 220, 6727, 24396, 22446, 28758, 26268, 3419, 198, 220, 220, 220, 2845, 31...
2.421053
57
#! /usr/bin/env /usr/bin/python3 import subprocess from time import sleep import shutil import os import numpy import json if __name__ == '__main__': data = map( lambda s: {"interval":s[0], "primeTime":s[1], "accessTime":s[2]}, [# interval, primeTime, accessTime (2000000, 800000, 800000)...
[ 2, 0, 1220, 14629, 14, 8800, 14, 24330, 1220, 14629, 14, 8800, 14, 29412, 18, 198, 198, 11748, 850, 14681, 198, 6738, 640, 1330, 3993, 198, 11748, 4423, 346, 198, 11748, 28686, 198, 11748, 299, 32152, 198, 11748, 33918, 628, 198, 361,...
2.075044
573
#!/opt/anaconda3/bin/python import requests import ftfy import glob import argparse import os import jsonlines from tqdm import tqdm from datetime import datetime from slugify import slugify import json if __name__ == "__main__": args = parse_args() main(args)
[ 2, 48443, 8738, 14, 272, 330, 13533, 18, 14, 8800, 14, 29412, 198, 198, 11748, 7007, 198, 11748, 10117, 24928, 198, 11748, 15095, 198, 11748, 1822, 29572, 198, 11748, 28686, 198, 11748, 33918, 6615, 198, 6738, 256, 80, 36020, 1330, 256,...
2.967391
92
import tensorflow as tf tf.flags.DEFINE_string('name', 'exp', '') tf.flags.DEFINE_integer('restore_epoch', -1, '') tf.flags.DEFINE_integer('n_jobs', 16, '') tf.flags.DEFINE_integer('epochs', 100, '') tf.flags.DEFINE_integer('batch_size', 1, '') tf.flags.DEFINE_integer('node_num', 517, '') # 517 for global max, 43...
[ 11748, 11192, 273, 11125, 355, 48700, 198, 198, 27110, 13, 33152, 13, 7206, 29940, 62, 8841, 10786, 3672, 3256, 705, 11201, 3256, 10148, 8, 198, 27110, 13, 33152, 13, 7206, 29940, 62, 41433, 10786, 2118, 382, 62, 538, 5374, 3256, 532, ...
2.60307
456
from __future__ import division from ._bracket import bracket from ._brent import brent inf = float("inf") _eps = 1.4902e-08 def minimize( f, x0=None, x1=None, a=-inf, b=+inf, gfactor=2, rtol=_eps, atol=_eps, maxiter=500 ): r"""Function minimization. Applies :func:`brent_search.bracket` to find a brac...
[ 6738, 11593, 37443, 834, 1330, 7297, 198, 198, 6738, 47540, 1671, 8317, 1330, 19096, 198, 6738, 47540, 65, 1156, 1330, 275, 1156, 198, 198, 10745, 796, 12178, 7203, 10745, 4943, 198, 198, 62, 25386, 796, 352, 13, 2920, 2999, 68, 12, 2...
2.195323
727
import mysql.connector from os import getenv as env import urllib.parse as urlparse import logging from utils import setup_logging logger = logging.getLogger() OPENCAST_DB_URL = env("OPENCAST_DB_URL") OPENCAST_RUNNING_JOB_STATUS = 2 @setup_logging
[ 11748, 48761, 13, 8443, 273, 198, 6738, 28686, 1330, 651, 24330, 355, 17365, 198, 11748, 2956, 297, 571, 13, 29572, 355, 19016, 29572, 198, 198, 11748, 18931, 198, 6738, 3384, 4487, 1330, 9058, 62, 6404, 2667, 198, 198, 6404, 1362, 796,...
2.76087
92
from django import forms
[ 6738, 42625, 14208, 1330, 5107, 628 ]
4.333333
6
import pandas as pd data = { 'ages': [14, 18, 24, 42], 'heights': [165, 180, 176, 184] } print(data) df = pd.DataFrame(data, index=['ahmet',"akan","burak","duman"]) print(df) print(df.loc["ahmet"]) print() print(df.iloc[0]) print("------------------ READING DATA FROM CSV------------------------------") df2 =...
[ 11748, 19798, 292, 355, 279, 67, 198, 7890, 796, 1391, 198, 220, 220, 705, 1095, 10354, 685, 1415, 11, 1248, 11, 1987, 11, 5433, 4357, 198, 220, 220, 705, 258, 2337, 10354, 685, 20986, 11, 11546, 11, 26937, 11, 28598, 60, 198, 92, ...
2.411243
338
# author: Mukund Iyer # date: 12/29/21 """ This script will carry out cross-validation and hyperparameter optimization for different models of the data. Usage: model_tuning.py --processed_data_path=<processed_data_path> --results_folder_path=<results_path> Options: --processed_data_path=<processed_data_path> The...
[ 2, 1772, 25, 31509, 917, 314, 9860, 198, 2, 3128, 25, 1105, 14, 1959, 14, 2481, 198, 198, 37811, 198, 1212, 4226, 481, 3283, 503, 3272, 12, 12102, 341, 290, 8718, 17143, 2357, 23989, 329, 1180, 4981, 198, 1659, 262, 1366, 13, 198, ...
2.967548
832
# -*- coding: utf-8 -*- """ Created on Tue Nov 18 22:56:28 2014 @author: space_000 """ from scipy.io import loadmat import numpy as np import pymongo as mg client=mg.MongoClient() db=client['MKD'] colMKInit=db['marketInit'] #%% Create market trading days d=loadmat('E:\\Code Laboratory\\MFpy\\MongoPy\\MarketData\\wtda...
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 37811, 198, 41972, 319, 30030, 5267, 1248, 2534, 25, 3980, 25, 2078, 1946, 198, 198, 31, 9800, 25, 2272, 62, 830, 198, 37811, 198, 6738, 629, 541, 88, 13, 952, 1330, ...
2.055369
596
from onegov.form import _
[ 6738, 530, 9567, 13, 687, 1330, 4808, 628 ]
3.375
8
""" Post analysis module """ from typing import Tuple import numpy as np import pandas as pd import matplotlib.pyplot as plt from scipy.stats import norm from crosswalk import CWData, CWModel from crosswalk.scorelator import Scorelator
[ 37811, 198, 6307, 3781, 8265, 198, 37811, 198, 6738, 19720, 1330, 309, 29291, 198, 11748, 299, 32152, 355, 45941, 198, 11748, 19798, 292, 355, 279, 67, 198, 11748, 2603, 29487, 8019, 13, 9078, 29487, 355, 458, 83, 198, 6738, 629, 541, ...
3.5
68
from .crossover import NullCrossover, SBX, SP from .mutation import NullMutation, BitFlip, Polynomial, IntegerPolynomial, Uniform, SimpleRandom from .selection import BestSolutionSelection, BinaryTournamentSelection, BinaryTournament2Selection, \ RandomSolutionSelection, NaryRandomSolutionSelection, RankingAndCrowd...
[ 6738, 764, 66, 23954, 1330, 35886, 34, 23954, 11, 18056, 55, 11, 6226, 198, 6738, 764, 76, 7094, 1330, 35886, 44, 7094, 11, 4722, 7414, 541, 11, 12280, 26601, 498, 11, 34142, 34220, 26601, 498, 11, 35712, 11, 17427, 29531, 198, 6738, ...
3.305419
203
# Packages import numpy as np import sys sys.path.append('../') import filters # Filters function used for topology optimization import grcwa # Python RCWA Library. See downloading instructions at https://github.com/weiliangjinca/grcwa args = {} params = {} ## Define variables args['nG'] = 51 # Always check conver...
[ 2, 6400, 1095, 198, 11748, 299, 32152, 355, 45941, 220, 198, 11748, 25064, 198, 17597, 13, 6978, 13, 33295, 10786, 40720, 11537, 198, 11748, 16628, 1303, 7066, 1010, 2163, 973, 329, 1353, 1435, 23989, 220, 198, 11748, 1036, 66, 10247, 1...
2.271798
2,936
# coding=utf-8 # Copyright 2018 The Tensor2Tensor 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...
[ 2, 19617, 28, 40477, 12, 23, 198, 2, 15069, 2864, 383, 309, 22854, 17, 51, 22854, 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, 2...
3.337644
696
"""Relational algebra operators. Used to represent a query plan before it is converted into a series of iterators. References: * https://www.cs.rochester.edu/~nelson/courses/csc_173/relations/algebra.html * http://www.databasteknik.se/webbkursen/relalg-lecture/ * https://en.wikipedia.org/wiki/Relational_a...
[ 37811, 6892, 864, 37139, 12879, 13, 198, 198, 38052, 284, 2380, 257, 12405, 1410, 878, 340, 318, 11513, 656, 257, 2168, 286, 198, 2676, 2024, 13, 198, 198, 19927, 25, 198, 220, 220, 220, 1635, 3740, 1378, 2503, 13, 6359, 13, 305, 35...
2.601547
517
''' PLPCOPallet.py Pulls fresh data from PLPCO SDE database for dissolved roads and photos. Creates optimized data for sherlock widget by combining Class B & D dissolved data into a single feature class for each county. ''' from os.path import basename, join import arcpy from forklift.models import Pallet counties ...
[ 7061, 6, 198, 6489, 5662, 3185, 282, 1616, 13, 9078, 198, 198, 42940, 82, 4713, 1366, 422, 9297, 5662, 46, 311, 7206, 6831, 329, 26306, 9725, 290, 5205, 13, 198, 16719, 274, 23392, 1366, 329, 15059, 5354, 26295, 416, 19771, 5016, 347,...
1.918182
550
from pcloud import pcloud import cmdw if __name__ == '__main__': p = uploadtransfer() sendermail = "todut001@gmail.com" receivermails = "cumulus13@gmail.com" print p.uploadtransfer(sendermail, receivermails)
[ 6738, 279, 17721, 1330, 279, 17721, 198, 11748, 23991, 86, 198, 220, 220, 220, 220, 198, 361, 11593, 3672, 834, 6624, 705, 834, 12417, 834, 10354, 198, 220, 220, 220, 279, 796, 9516, 39437, 3419, 198, 220, 220, 220, 29788, 4529, 796, ...
2.682353
85
from .reacher import Reacher3DEnv from .pusher import PusherEnv from collections import OrderedDict import gym import numpy as np from gym import Wrapper from gym.envs.registration import EnvSpec
[ 6738, 764, 260, 3493, 1330, 797, 3493, 18, 35, 4834, 85, 198, 6738, 764, 79, 34055, 1330, 350, 34055, 4834, 85, 198, 6738, 17268, 1330, 14230, 1068, 35, 713, 198, 11748, 11550, 198, 11748, 299, 32152, 355, 45941, 198, 6738, 11550, 133...
3.396552
58
# Author: Nic Wolfe <nic@wolfeden.ca> # URL: http://code.google.com/p/sickbeard/ # # This file is part of Sick Beard. # # Sick Beard is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, either version 3 of t...
[ 2, 6434, 25, 8377, 37013, 1279, 6988, 31, 18829, 31829, 13, 6888, 29, 201, 198, 2, 10289, 25, 2638, 1378, 8189, 13, 13297, 13, 785, 14, 79, 14, 82, 624, 39433, 14, 201, 198, 2, 201, 198, 2, 770, 2393, 318, 636, 286, 32181, 41698...
2.69141
1,199
# Copyright (c) Microsoft Corporation. # Licensed under the MIT License. import math import torch from torch import nn import torch.nn.functional as F from tqdm import tqdm from .base_model import BaseModel from .msa_embeddings import MSAEmbeddings from .attention import ZBlock, YBlock, YAggregator, ZRefiner from .di...
[ 2, 15069, 357, 66, 8, 5413, 10501, 13, 198, 2, 49962, 739, 262, 17168, 13789, 13, 198, 11748, 10688, 198, 198, 11748, 28034, 198, 6738, 28034, 1330, 299, 77, 198, 11748, 28034, 13, 20471, 13, 45124, 355, 376, 198, 6738, 256, 80, 360...
3.424528
106
import numpy as np import math import random import os import multiprocessing from colorama import init, Fore, Back, Style class SudokuGenerator(object) : """ Generate unique sudoku solutions everytime for n*n grids. """ def generate_grid(self): """ Generate a grid of n*n numbers. """ grid =...
[ 11748, 299, 32152, 355, 45941, 198, 11748, 10688, 198, 11748, 4738, 198, 11748, 28686, 198, 11748, 18540, 305, 919, 278, 198, 6738, 3124, 1689, 1330, 2315, 11, 4558, 11, 5157, 11, 17738, 628, 198, 4871, 14818, 11601, 8645, 1352, 7, 1525...
2.123729
2,360
import Linarg import numpy as np from SimPEG import Utils
[ 11748, 5164, 853, 198, 11748, 299, 32152, 355, 45941, 198, 6738, 3184, 47, 7156, 1330, 7273, 4487 ]
3.352941
17
#!/usr/bin/env python # Imports import os import random from helpers import InsertQuery from faker import Faker # Quantity N_DRIVERS = 75 N_AUTOBUS = 100 N_CUSTOMERS = 7500 N_SUBSCRIPTIONS = 100000 N_RIDES = 450 * 365 N_LINES = 15 N_SERVED = 90 N_STOPS = 225 N_USED = 12000 # Fixed seed random.seed(0) Faker.seed(0) ...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 198, 198, 2, 1846, 3742, 198, 11748, 28686, 198, 11748, 4738, 198, 198, 6738, 49385, 1330, 35835, 20746, 198, 6738, 277, 3110, 1330, 376, 3110, 198, 198, 2, 39789, 198, 45, 62, 7707, 30194,...
2.503894
2,953
from flask import jsonify from identity import identity from identity.models.user import User @identity.route('/user')
[ 6738, 42903, 1330, 33918, 1958, 198, 6738, 5369, 1330, 5369, 198, 6738, 5369, 13, 27530, 13, 7220, 1330, 11787, 628, 198, 31, 738, 414, 13, 38629, 10786, 14, 7220, 11537, 198 ]
3.903226
31
""" test configuration settings """ import rez.vendor.unittest2 as unittest from rez.tests.util import TestBase from rez.exceptions import ConfigurationError from rez.config import Config, get_module_root_config, _replace_config from rez.system import system from rez.utils.data_utils import RO_AttrDictWrapper from rez....
[ 37811, 198, 9288, 8398, 6460, 198, 37811, 198, 11748, 302, 89, 13, 85, 18738, 13, 403, 715, 395, 17, 355, 555, 715, 395, 198, 6738, 302, 89, 13, 41989, 13, 22602, 1330, 6208, 14881, 198, 6738, 302, 89, 13, 1069, 11755, 1330, 28373, ...
3.55836
317
from __future__ import division, print_function, absolute_import import cv2 from base_camera import BaseCamera import warnings import numpy as np from PIL import Image from yolo import YOLO from deep_sort import preprocessing from deep_sort.detection import Detection from deep_sort.detection_yolo import Detection_YOL...
[ 6738, 11593, 37443, 834, 1330, 7297, 11, 3601, 62, 8818, 11, 4112, 62, 11748, 198, 198, 11748, 269, 85, 17, 198, 6738, 2779, 62, 25695, 1330, 7308, 35632, 198, 198, 11748, 14601, 198, 11748, 299, 32152, 355, 45941, 198, 6738, 350, 414...
3.810345
116
#!/usr/bin/env python # coding: utf-8 # <img align="left" src="https://lever-client-logos.s3.amazonaws.com/864372b1-534c-480e-acd5-9711f850815c-1524247202159.png" width=200> # <br></br> # <br></br> # # # Major Neural Network Architectures Challenge # ## *Data Science Unit 4 Sprint 3 Challenge* # # In this sprint cha...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 198, 2, 19617, 25, 3384, 69, 12, 23, 198, 198, 2, 1279, 9600, 10548, 2625, 9464, 1, 12351, 2625, 5450, 1378, 293, 332, 12, 16366, 12, 6404, 418, 13, 82, 18, 13, 33103, 8356, 13, 785, ...
3.217322
3,741
# !/usr/local/python/bin/python # -*- coding: utf-8 -*- # (C) Wu Dong, 2019 # All rights reserved # @Author: 'Wu Dong <wudong@eastwu.cn>' # @Time: '2020-03-17 15:37' from pre_request.exception import ParamsValueError from pre_request.filters.base import BaseFilter class LengthFilter(BaseFilter): """ 判断字符串长度的过...
[ 2, 5145, 14, 14629, 14, 12001, 14, 29412, 14, 8800, 14, 29412, 198, 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 2, 357, 34, 8, 18027, 28831, 11, 13130, 198, 2, 1439, 2489, 10395, 198, 2, 2488, 13838, 25, 705, ...
2.105943
774
#!/usr/bin/env python # -*- coding: utf-8 -*- """command.py: Interface to command line executables.""" from optparse import OptionParser import logging from os import path from subprocess import PIPE, Popen from time import time __author__ = "Rami Al-Rfou" __email__ = "rmyeid gmail" LOG_FORMAT = "%(asctime).19s %(l...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 198, 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 198, 37811, 21812, 13, 9078, 25, 26491, 284, 3141, 1627, 3121, 2977, 526, 15931, 198, 198, 6738, 2172, 29572, 1330, 160...
2.878698
338
import numpy as np from perfect_information_game.games import Chess from perfect_information_game.utils import iter_product from perfect_information_game.tablebases import get_verified_chess_subclass
[ 11748, 299, 32152, 355, 45941, 198, 6738, 2818, 62, 17018, 62, 6057, 13, 19966, 1330, 25774, 198, 6738, 2818, 62, 17018, 62, 6057, 13, 26791, 1330, 11629, 62, 11167, 198, 6738, 2818, 62, 17018, 62, 6057, 13, 11487, 65, 1386, 1330, 651...
3.941176
51
# Copyright (c) Pymatgen Development Team. # Distributed under the terms of the MIT License. import os import unittest import numpy as np from pymatgen.io.pwscf import PWInput, PWInputError, PWOutput from pymatgen.util.testing import PymatgenTest from pymatgen.core import Lattice, Structure if __name__ == "__mai...
[ 2, 15069, 357, 66, 8, 350, 4948, 265, 5235, 7712, 4816, 13, 198, 2, 4307, 6169, 739, 262, 2846, 286, 262, 17168, 13789, 13, 198, 198, 11748, 28686, 198, 11748, 555, 715, 395, 198, 198, 11748, 299, 32152, 355, 45941, 198, 198, 6738, ...
2.932203
118
from django.contrib import admin from .models import Contact admin.site.register(Contact, ContactAdmin)
[ 6738, 42625, 14208, 13, 3642, 822, 1330, 13169, 198, 6738, 764, 27530, 1330, 14039, 628, 198, 198, 28482, 13, 15654, 13, 30238, 7, 17829, 11, 14039, 46787, 8 ]
3.785714
28
# Generated by Django 2.0 on 2019-05-26 02:08 from django.db import migrations, models
[ 2, 2980, 515, 416, 37770, 362, 13, 15, 319, 13130, 12, 2713, 12, 2075, 7816, 25, 2919, 198, 198, 6738, 42625, 14208, 13, 9945, 1330, 15720, 602, 11, 4981, 628 ]
2.966667
30
# -*- coding: utf-8 -*- # Copyright (c) 2016 by University of Kassel and Fraunhofer Institute for Wind Energy and Energy # System Technology (IWES), Kassel. All rights reserved. Use of this source code is governed by a # BSD-style license that can be found in the LICENSE file. import networkx as nx import pan...
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 201, 198, 201, 198, 2, 15069, 357, 66, 8, 1584, 416, 2059, 286, 15035, 741, 290, 39313, 403, 71, 30288, 5136, 329, 3086, 6682, 290, 6682, 201, 198, 2, 4482, 8987, 357, 40...
1.975084
3,572