content
stringlengths
1
1.04M
input_ids
listlengths
1
774k
ratio_char_token
float64
0.38
22.9
token_count
int64
1
774k
# # Copyright (c) 2020, Neptune Labs Sp. z o.o. # # 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 agr...
[ 2, 198, 2, 15069, 357, 66, 8, 12131, 11, 26461, 23500, 1338, 13, 1976, 267, 13, 78, 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, ...
2.647225
1,063
from pydantic import BaseModel
[ 6738, 279, 5173, 5109, 1330, 7308, 17633, 628 ]
4
8
#This code and description is written by Hoplin #This code is written with API version 1.0.0(Rewirte-V) #No matter to use it as non-commercial. import discord import asyncio import os from discord.ext import commands import urllib from urllib.request import URLError from urllib.request import HTTPError from urllib.req...
[ 2, 1212, 2438, 290, 6764, 318, 3194, 416, 9996, 2815, 198, 2, 1212, 2438, 318, 3194, 351, 7824, 2196, 352, 13, 15, 13, 15, 7, 30003, 343, 660, 12, 53, 8, 198, 2, 2949, 2300, 284, 779, 340, 355, 1729, 12, 36313, 13, 198, 198, 1...
3.48731
197
""" Created on Dec 8, 2017 @author: nhan.nguyen Verify that user can close a reopened pool ledger. """ from indy import pool from utilities import utils from utilities import common, constant from test_scripts.functional_tests.pool.pool_test_base import PoolTestBase import pytest
[ 37811, 198, 41972, 319, 4280, 807, 11, 2177, 198, 198, 31, 9800, 25, 299, 7637, 13, 782, 4669, 268, 198, 13414, 1958, 326, 2836, 460, 1969, 257, 37415, 5933, 37208, 13, 198, 37811, 198, 198, 6738, 773, 88, 1330, 5933, 198, 6738, 200...
3.594937
79
from keras.engine.topology import Layer from keras import backend as K import tensorflow as tf import numpy as np import random import math import ComplexTensor as ct # This layer represets a power series # a_0*I+a_1*X+a_2*X^2+...+a_n*X^n # Where X is a complex input matrix, and the coefficients a_n are complex. # T...
[ 198, 6738, 41927, 292, 13, 18392, 13, 4852, 1435, 1330, 34398, 198, 6738, 41927, 292, 1330, 30203, 355, 509, 198, 11748, 11192, 273, 11125, 355, 48700, 198, 11748, 299, 32152, 355, 45941, 198, 11748, 4738, 198, 11748, 10688, 198, 198, 1...
3.096601
559
# @author Tasuku Miura # @brief Training for controller to output steering and throttle commands given # an image taken from a monocular camera. (Assumes CUDA enabled) # python train.py --root-dir /home/ubuntu/ws/amr_core/model_sandbox/model_nn_controller_service/data # put images and pickle file in ./data # TODO: save...
[ 2, 2488, 9800, 24932, 33263, 13756, 5330, 198, 2, 2488, 65, 3796, 13614, 329, 10444, 284, 5072, 19702, 290, 29976, 9729, 1813, 198, 2, 281, 2939, 2077, 422, 257, 937, 37320, 4676, 13, 357, 8021, 8139, 29369, 5631, 9343, 8, 198, 2, 2...
2.646751
954
class SynthError(Exception): """ Generic error raised by library. """ pass class SynthValidationError(SynthError): """ Raised on attribute validation failure. """ pass
[ 4871, 16065, 400, 12331, 7, 16922, 2599, 198, 220, 220, 220, 37227, 198, 220, 220, 220, 42044, 4049, 4376, 416, 5888, 13, 198, 220, 220, 220, 37227, 198, 220, 220, 220, 1208, 628, 198, 4871, 16065, 400, 7762, 24765, 12331, 7, 29934, ...
2.805556
72
__all__ = ['observing_bands'] import astropy.units as u observing_bands = { 'U' : (365*u.nm, 66*u.nm), 'B' : (445*u.nm, 94*u.nm), 'G' : (464*u.nm, 128*u.nm), 'V' : (551*u.nm, 88*u.nm), 'R' : (658*u.nm, 138*u.nm), 'I' : (806*u.nm, 149*u.nm), 'Y' : (1020*u.nm, 120*u.nm), 'J' : (1220*u.nm...
[ 834, 439, 834, 796, 37250, 672, 31293, 62, 21397, 20520, 198, 198, 11748, 6468, 28338, 13, 41667, 355, 334, 198, 198, 672, 31293, 62, 21397, 796, 1391, 198, 220, 220, 220, 705, 52, 6, 1058, 357, 24760, 9, 84, 13, 21533, 11, 7930, ...
1.625468
267
import GlobalVariables import Character, Enemies, Encounters import AdventureMap import Actions import gui import NPCs import tkinter import Conditions # Will change to initialize to 'None' after more testing and whatnot is done # GlobalVariables.PC = Character.Rogue() # GlobalVariables.Enemy = Enemies....
[ 11748, 8060, 23907, 2977, 201, 198, 11748, 15684, 11, 24364, 11, 14711, 15044, 201, 198, 11748, 9553, 13912, 201, 198, 11748, 24439, 201, 198, 11748, 11774, 201, 198, 11748, 28167, 201, 198, 201, 198, 11748, 256, 74, 3849, 201, 198, 117...
3.253521
142
from .providers import load_world, load_vehicle
[ 6738, 764, 15234, 4157, 1330, 3440, 62, 6894, 11, 3440, 62, 33892, 1548, 198 ]
3.428571
14
""" Sense manipulations following the framework of the STARLING package. """ # import networkx as nx from pysem.data import SENSE from collections import defaultdict
[ 37811, 198, 41166, 7704, 5768, 1708, 262, 9355, 286, 262, 25424, 43, 2751, 5301, 13, 198, 37811, 198, 2, 1330, 3127, 87, 355, 299, 87, 198, 6738, 12972, 43616, 13, 7890, 1330, 311, 24290, 198, 6738, 17268, 1330, 4277, 11600, 628 ]
4.073171
41
from tkinter import Frame, Label from tkinter import StringVar from tkinter import N, Y, SW, SE from widgetclasses.MyLabelFrame import MyLabelFrame from widgetclasses.MyOptionMenu import MyOptionMenu from widgetclasses.MyButton import MyButton from widgetclasses.MyLabel import MyLabel from widgetclasses.DoubleScrolle...
[ 6738, 256, 74, 3849, 1330, 25184, 11, 36052, 198, 6738, 256, 74, 3849, 1330, 10903, 19852, 198, 6738, 256, 74, 3849, 1330, 399, 11, 575, 11, 12672, 11, 7946, 628, 198, 6738, 26295, 37724, 13, 3666, 33986, 19778, 1330, 2011, 33986, 197...
3.748387
155
n1 = float(input('Nota 1: ')) n2 = float(input('Nota 2: ')) m = (n1 + n2)/2 print('A média do aluno é {:.2f}'.format(m))
[ 77, 16, 796, 12178, 7, 15414, 10786, 3673, 64, 352, 25, 705, 4008, 198, 77, 17, 796, 12178, 7, 15414, 10786, 3673, 64, 362, 25, 705, 4008, 198, 76, 796, 357, 77, 16, 1343, 299, 17, 20679, 17, 198, 4798, 10786, 32, 285, 2634, 67,...
2
60
import argparse import os import torch from torch.utils.data import DataLoader import torch.nn as nn import torch.nn.functional as F from dataset import ASVspoof2019 from evaluate_tDCF_asvspoof19 import compute_eer_and_tdcf from tqdm import tqdm import eval_metrics as em import numpy as np if __name__ == "__main__": ...
[ 11748, 1822, 29572, 198, 11748, 28686, 198, 11748, 28034, 198, 6738, 28034, 13, 26791, 13, 7890, 1330, 6060, 17401, 198, 11748, 28034, 13, 20471, 355, 299, 77, 198, 11748, 28034, 13, 20471, 13, 45124, 355, 376, 198, 6738, 27039, 1330, 7...
2.600939
426
# utilities to generate molecules with this repo. # v1. Dec 2020, F. Grisoni
[ 2, 20081, 284, 7716, 17745, 351, 428, 29924, 13, 198, 2, 410, 16, 13, 4280, 12131, 11, 376, 13, 1902, 1653, 72, 628 ]
3.391304
23
import base64 import json import logging import base58 from forge_sdk import protos as forge_protos from forge_sdk import utils as forge_utils logger = logging.getLogger('model-mobile')
[ 11748, 2779, 2414, 198, 11748, 33918, 198, 11748, 18931, 198, 198, 11748, 2779, 3365, 198, 6738, 28325, 62, 21282, 74, 1330, 1237, 418, 355, 28325, 62, 11235, 418, 198, 198, 6738, 28325, 62, 21282, 74, 1330, 3384, 4487, 355, 28325, 62, ...
3.275862
58
# coding: utf-8 import os from os.path import join, dirname from sympy import Symbol, Lambda, Function, Dummy from sympy import Tuple, IndexedBase from sympy.core.function import AppliedUndef from sympy.core.function import UndefinedFunction from sympy import Integer, Float from sympy import sympify from sympy import...
[ 2, 19617, 25, 3384, 69, 12, 23, 198, 198, 11748, 28686, 198, 6738, 28686, 13, 6978, 1330, 4654, 11, 26672, 3672, 198, 198, 6738, 10558, 88, 1330, 38357, 11, 21114, 6814, 11, 15553, 11, 360, 13513, 198, 6738, 10558, 88, 1330, 309, 29...
3.353175
504
import pytest
[ 11748, 12972, 9288, 628 ]
3.75
4
import argparse import os from multiprocessing.pool import ThreadPool from utils.backend import HikeDBClient, update_db from utils.combine_gpx import CombineGpx from utils.gpx_import import GpxImport from utils.plotting import plot_elevation, plot_coordinates, plot_heart_rate from utils.report import render_html GPX...
[ 11748, 1822, 29572, 198, 11748, 28686, 198, 6738, 18540, 305, 919, 278, 13, 7742, 1330, 14122, 27201, 198, 198, 6738, 3384, 4487, 13, 1891, 437, 1330, 367, 522, 11012, 11792, 11, 4296, 62, 9945, 198, 6738, 3384, 4487, 13, 24011, 500, ...
2.991935
124
from .augmentation_factory import * from .blur import Blur, RandomBlur, RandomGaussianBlur from .mirror import Mirror, RandomMirror from .crop import RandomCrop, CentreCrop from .normalize import Normalize, NormalizeDpn, NormalizeLe, NormalizeTorchvision from .colour import RandomBrightnessContrast, RandomSaturation fr...
[ 6738, 764, 559, 5154, 341, 62, 69, 9548, 1330, 1635, 198, 6738, 764, 2436, 333, 1330, 1086, 333, 11, 14534, 3629, 333, 11, 14534, 35389, 31562, 3629, 333, 198, 6738, 764, 10793, 1472, 1330, 17918, 11, 14534, 27453, 1472, 198, 6738, 76...
3.640777
103
from abc import abstractmethod from enum import Enum from typing import List, Type from tales.components import Component from tales.entities.entity import Entity from tales.world import World
[ 6738, 450, 66, 1330, 12531, 24396, 198, 6738, 33829, 1330, 2039, 388, 198, 6738, 19720, 1330, 7343, 11, 5994, 198, 198, 6738, 19490, 13, 5589, 3906, 1330, 35100, 198, 6738, 19490, 13, 298, 871, 13, 26858, 1330, 20885, 198, 6738, 19490, ...
4.170213
47
import unittest class AggregateTestCase(unittest.TestCase): """Tests for class ``Aggregate``. """ @classmethod def setUpClass(cls): """Set up the class fixture. """ from ugentaggregates.aggregates import Aggregate cls.Aggregate = Aggregate def setUp(self): ...
[ 11748, 555, 715, 395, 628, 198, 4871, 19015, 49373, 14402, 20448, 7, 403, 715, 395, 13, 14402, 20448, 2599, 198, 220, 220, 220, 37227, 51, 3558, 329, 1398, 7559, 46384, 49373, 15506, 13, 198, 220, 220, 220, 37227, 628, 220, 220, 220, ...
1.837051
5,155
# Copyright 2017-2019 EPAM Systems, Inc. (https://www.epam.com/) # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by appli...
[ 2, 15069, 2177, 12, 23344, 14724, 2390, 11998, 11, 3457, 13, 357, 5450, 1378, 2503, 13, 538, 321, 13, 785, 34729, 198, 2, 198, 2, 49962, 739, 262, 24843, 13789, 11, 10628, 362, 13, 15, 357, 1169, 366, 34156, 15341, 198, 2, 345, 74...
3.162338
462
#!/usr/bin/env python3 # -*- coding: utf-8 -*- import sys from cgxsh_lib.file_crypto import edit_config_file if __name__ == '__main__': sys.exit(edit_config_file())
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 18, 198, 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 11748, 25064, 198, 198, 6738, 269, 70, 87, 1477, 62, 8019, 13, 7753, 62, 29609, 78, 1330, 4370, 62, 11250, 62, ...
2.342466
73
# Generated by Django 2.1.4 on 2019-01-23 20:41 from django.conf import settings from django.db import migrations, models
[ 2, 2980, 515, 416, 37770, 362, 13, 16, 13, 19, 319, 13130, 12, 486, 12, 1954, 1160, 25, 3901, 201, 198, 201, 198, 6738, 42625, 14208, 13, 10414, 1330, 6460, 201, 198, 6738, 42625, 14208, 13, 9945, 1330, 15720, 602, 11, 4981, 201, ...
2.804348
46
""" Configurables for Transformer """ from transformer_2.utils.config_system import ConfigSystem __all__ = ['make_config'] _C = ConfigSystem(validate_config_fn=validate_config) # --------------------------------------------------------------------------- # # Start of configs # -------------------------------------...
[ 37811, 198, 16934, 333, 2977, 329, 3602, 16354, 198, 37811, 198, 198, 6738, 47385, 62, 17, 13, 26791, 13, 11250, 62, 10057, 1330, 17056, 11964, 198, 198, 834, 439, 834, 796, 37250, 15883, 62, 11250, 20520, 628, 198, 198, 62, 34, 796, ...
3.349385
976
from django.contrib.auth import authenticate, login, logout from django.db import IntegrityError from django.http import HttpResponse, HttpResponseRedirect from django.shortcuts import render from django.urls import reverse from django.contrib.auth.decorators import login_required from django import forms from django.u...
[ 6738, 42625, 14208, 13, 3642, 822, 13, 18439, 1330, 8323, 5344, 11, 17594, 11, 2604, 448, 198, 6738, 42625, 14208, 13, 9945, 1330, 39348, 12331, 198, 6738, 42625, 14208, 13, 4023, 1330, 367, 29281, 31077, 11, 367, 29281, 31077, 7738, 10...
3.019417
309
number1 = 10 number2 = 20 number4 = 40 number3 = 30
[ 17618, 16, 796, 838, 198, 17618, 17, 796, 1160, 198, 198, 17618, 19, 796, 2319, 198, 198, 17618, 18, 796, 1542, 628 ]
2.5
22
#!/usr/bin/env python3 import rospy import math from arduinobot_controller.srv import AnglesConverter, AnglesConverterResponse """ arduinobot - angles_converter This script implements two services on the topics - radians_to_degrees - degrees_to_radians Both of them receives a request with the format: ...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 18, 198, 11748, 686, 2777, 88, 198, 11748, 10688, 198, 6738, 50065, 259, 672, 313, 62, 36500, 13, 27891, 85, 1330, 2895, 829, 3103, 332, 353, 11, 2895, 829, 3103, 332, 353, 31077, 198, 19...
3.269316
453
from primitiv import optimizers as O from primitiv import Optimizer, Parameter, Device, Graph, Shape from primitiv import initializers as I from primitiv import devices as D from primitiv import functions as F from primitiv import tensor_functions as tF import unittest import tempfile import numpy as np
[ 6738, 2684, 270, 452, 1330, 6436, 11341, 355, 440, 198, 6738, 2684, 270, 452, 1330, 30011, 7509, 11, 25139, 2357, 11, 16232, 11, 29681, 11, 25959, 198, 6738, 2684, 270, 452, 1330, 4238, 11341, 355, 314, 198, 6738, 2684, 270, 452, 1330...
3.516854
89
import gym from gym.envs.box2d import CarRacing from stable_baselines.common.policies import CnnPolicy from stable_baselines.common.vec_env import DummyVecEnv from stable_baselines import PPO2 if __name__ == '__main__': env = lambda : CarRacing( grayscale=1, show_info_panel=0, discretize_...
[ 11748, 11550, 198, 6738, 11550, 13, 268, 14259, 13, 3524, 17, 67, 1330, 1879, 49, 4092, 198, 198, 6738, 8245, 62, 12093, 20655, 13, 11321, 13, 79, 4160, 444, 1330, 327, 20471, 36727, 198, 6738, 8245, 62, 12093, 20655, 13, 11321, 13, ...
2.234043
282
from rest_framework import permissions from rest_framework.permissions import BasePermission
[ 6738, 1334, 62, 30604, 1330, 21627, 198, 6738, 1334, 62, 30604, 13, 525, 8481, 1330, 7308, 5990, 3411, 628 ]
4.947368
19
# Copyright (C) 2017 Beijing Didi Infinity Technology and Development Co.,Ltd. # 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/LI...
[ 2, 15069, 357, 34, 8, 2177, 11618, 7731, 72, 22385, 8987, 290, 7712, 1766, 1539, 43, 8671, 13, 198, 2, 1439, 2489, 10395, 13, 198, 2, 198, 2, 49962, 739, 262, 24843, 13789, 11, 10628, 362, 13, 15, 357, 1169, 366, 34156, 15341, 198...
2.993017
716
# # A template class representing the interactions that the end-user has # with the filesystem in a z-machine. # # Third-party programs are expected to subclass ZFilesystem and # override all the methods, then pass an instance of their class to be # driven by the main z-machine engine. # # For the license of this file,...
[ 2, 198, 2, 317, 11055, 1398, 10200, 262, 12213, 326, 262, 886, 12, 7220, 468, 198, 2, 351, 262, 29905, 287, 257, 1976, 12, 30243, 13, 198, 2, 198, 2, 10467, 12, 10608, 4056, 389, 2938, 284, 47611, 1168, 25876, 6781, 290, 198, 2, ...
3.598201
667
#!/usr/bin/python import sys import os.path from functools import wraps from flask import Flask, g, render_template, redirect, request from flask_login import login_required, current_user, login_user, logout_user from flask_bcrypt import Bcrypt from util.database import * # 5000 seems a bit... basic. Feel free to ...
[ 2, 48443, 14629, 14, 8800, 14, 29412, 198, 198, 11748, 25064, 198, 11748, 28686, 13, 6978, 198, 198, 6738, 1257, 310, 10141, 1330, 27521, 198, 198, 6738, 42903, 1330, 46947, 11, 308, 11, 8543, 62, 28243, 11, 18941, 11, 2581, 198, 6738...
2.739938
646
#!/usr/bin/env python from mudparser.matches import (IPv4Match, IPv6Match, TCPMatch, UDPMatch, EthMatch, MUDMatch) __all__ = ['AccessListEntry']
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 198, 198, 6738, 17492, 48610, 13, 6759, 2052, 1330, 357, 4061, 85, 19, 23850, 11, 25961, 21, 23850, 11, 17283, 5868, 963, 11, 43700, 5868, 963, 11, 9956, 23850, 11, 337, 8322, 23850, 8, 1...
2.727273
55
""" Tests for the stow stub command """ # pylint: disable=missing-docstring # disable lint errors for function names longer that 30 characters # pylint: disable=invalid-name import os import pytest import dploy from dploy import error from tests import utils SUBCMD = "stow"
[ 37811, 198, 51, 3558, 329, 262, 336, 322, 17071, 3141, 198, 37811, 198, 2, 279, 2645, 600, 25, 15560, 28, 45688, 12, 15390, 8841, 198, 2, 15560, 300, 600, 8563, 329, 2163, 3891, 2392, 326, 1542, 3435, 198, 2, 279, 2645, 600, 25, 1...
3.135417
96
import pydeck as pdk from pydeck_carto import register_carto_layer
[ 11748, 12972, 35875, 355, 279, 34388, 198, 6738, 12972, 35875, 62, 26674, 78, 1330, 7881, 62, 26674, 78, 62, 29289, 628 ]
3.238095
21
#!/usr/bin/env python3 # Imports import bpy class BlenderNC_NT_preloader(bpy.types.Node): # === Basics === # Description string """A datacube node""" # Optional identifier string. If not explicitly defined, # the python class name is used. bl_idname = "datacubePreloadNode" # Label for nice...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 18, 198, 2, 1846, 3742, 198, 11748, 275, 9078, 628, 198, 4871, 1086, 2194, 7792, 62, 11251, 62, 3866, 29356, 7, 65, 9078, 13, 19199, 13, 19667, 2599, 198, 220, 220, 220, 1303, 24844, 4588...
3.180328
366
# Echo server implemented using socket server and # a ThredoMixIn class. This class replaces the normal # socket with one that can be cancelled. Also uses spawn() # internally to launch threads. from thredo.socket import * import thredo import socketserver import signal thredo.run(main)
[ 2, 21455, 4382, 9177, 1262, 17802, 4382, 290, 220, 198, 2, 257, 536, 48454, 35608, 818, 1398, 13, 220, 220, 770, 1398, 24020, 262, 3487, 198, 2, 17802, 351, 530, 326, 460, 307, 16769, 13, 220, 4418, 3544, 10922, 3419, 198, 2, 20947,...
3.658537
82
from django.utils.translation import ugettext_lazy as _ from rest_framework import serializers from tutors.models import StudentRequest, TutorStudents from users.models import User from users.serializers import UserSerializer
[ 6738, 42625, 14208, 13, 26791, 13, 41519, 1330, 334, 1136, 5239, 62, 75, 12582, 355, 4808, 198, 198, 6738, 1334, 62, 30604, 1330, 11389, 11341, 198, 198, 6738, 9732, 669, 13, 27530, 1330, 13613, 18453, 11, 22792, 273, 28239, 198, 198, ...
3.932203
59
"""Shared math functions.""" def math_sum(num1, num2): """Returns the sum of two parameters.""" return num1 + num2
[ 37811, 2484, 1144, 10688, 5499, 526, 15931, 628, 198, 4299, 10688, 62, 16345, 7, 22510, 16, 11, 997, 17, 2599, 198, 220, 220, 220, 37227, 35561, 262, 2160, 286, 734, 10007, 526, 15931, 198, 220, 220, 220, 1441, 997, 16, 1343, 997, 1...
2.840909
44
# Copyright (c) 2013, Minda Sai Pvt LTd and contributors # For license information, please see license.txt from __future__ import unicode_literals import frappe from frappe import _ import math from calendar import monthrange from datetime import datetime,timedelta,date from dateutil.rrule import * # def get_con...
[ 2, 15069, 357, 66, 8, 2211, 11, 10175, 64, 25251, 18367, 83, 34146, 67, 290, 20420, 198, 2, 1114, 5964, 1321, 11, 3387, 766, 5964, 13, 14116, 198, 198, 6738, 11593, 37443, 834, 1330, 28000, 1098, 62, 17201, 874, 198, 11748, 5306, 27...
2.877049
244
import unittest from models.dqn.dqnalgorithm import DqnAlgorithm import random import roomai import roomai.sevenking from models.dqn.dqnalgorithm import DqnPlayer from models.dqn.sevenking import SevenKingModel_ThreePlayers import roomai.common
[ 198, 11748, 555, 715, 395, 198, 6738, 4981, 13, 49506, 77, 13, 49506, 77, 282, 42289, 1330, 360, 80, 77, 2348, 42289, 198, 11748, 4738, 198, 11748, 2119, 1872, 198, 11748, 2119, 1872, 13, 26548, 3364, 198, 6738, 4981, 13, 49506, 77, ...
3.233766
77
""" File: my_drawing Name: LEE HSUAN HSUAN ---------------------- TODO: """ from campy.graphics.gobjects import GOval, GRect, GArc, GPolygon ,GLabel from campy.graphics.gwindow import GWindow def main(): """ Sometimes little things in daily life that bring us happiness. Hope everyone can enjoy every mome...
[ 37811, 198, 8979, 25, 616, 62, 19334, 278, 198, 5376, 25, 406, 6500, 367, 12564, 1565, 367, 12564, 1565, 198, 19351, 438, 198, 51, 3727, 46, 25, 198, 37811, 198, 198, 6738, 1413, 88, 13, 70, 11549, 13, 70, 48205, 1330, 10351, 2100, ...
2.181529
1,570
symbol_table = { '00000000': 'A', '00000001': 'B', '00000010': 'C', '00000011': 'D', '00000100': 'E', '00000101': 'F', '00000110': 'G', '00000111': 'H', '00001000': 'I', '00001001': 'J', '00001010': 'K', '00001011': 'L', '00001100': 'M', '00001101': 'N', '0000...
[ 1837, 23650, 62, 11487, 796, 1391, 198, 220, 220, 220, 705, 8269, 10354, 705, 32, 3256, 198, 220, 220, 220, 705, 10535, 486, 10354, 705, 33, 3256, 198, 220, 220, 220, 705, 10535, 940, 10354, 705, 34, 3256, 198, 220, 220, 220, 705, ...
1.781629
1,154
# Copyright (C) 2010 The MITRE Corporation. See the toplevel # file LICENSE for license terms. # This file contains utilities which may be used either by # build_tarball.py, install.py, or any of the dist.py files in # the individual tasks. # THIS FILE DOES NOT RELY ON THE MAT PYTHON MODULE. import subprocess impor...
[ 2, 15069, 357, 34, 8, 3050, 383, 17168, 2200, 10501, 13, 4091, 262, 284, 1154, 626, 198, 2, 2393, 38559, 24290, 329, 5964, 2846, 13, 198, 198, 2, 770, 2393, 4909, 20081, 543, 743, 307, 973, 2035, 416, 198, 2, 1382, 62, 18870, 1894...
3.902685
298
import os import requests from file_handler import download_image, get_filename if __name__ == "__main__": main()
[ 11748, 28686, 198, 11748, 7007, 198, 6738, 2393, 62, 30281, 1330, 4321, 62, 9060, 11, 651, 62, 34345, 628, 628, 198, 361, 11593, 3672, 834, 6624, 366, 834, 12417, 834, 1298, 198, 220, 220, 220, 1388, 3419, 198 ]
3.210526
38
snippet_normalize (cr, width, height) cr.set_line_width (0.16) cr.move_to (0.3, 0.33) cr.rel_line_to (0.2, -0.2) cr.rel_line_to (0.2, 0.2) cr.set_line_join (cairo.LINE_JOIN_MITER) #/* default */ cr.stroke () cr.move_to (0.3, 0.63) cr.rel_line_to (0.2, -0.2) cr.rel_line_to (0.2, 0.2) cr.set_line_join (cairo.LINE_JOIN_B...
[ 16184, 3974, 316, 62, 11265, 1096, 357, 6098, 11, 9647, 11, 6001, 8, 198, 6098, 13, 2617, 62, 1370, 62, 10394, 357, 15, 13, 1433, 8, 198, 6098, 13, 21084, 62, 1462, 357, 15, 13, 18, 11, 657, 13, 2091, 8, 198, 6098, 13, 2411, 6...
1.822394
259
from typing import Tuple from item_engine.constants import * from item_engine.lin_lin_network import Model as LL_Model from item_engine.textbase import make_characters, Char, Token if __name__ == '__main__': calls_to = {} @memorize def function(token: Token, char) -> Tuple[ACTION, STATE]: """ ...
[ 6738, 19720, 1330, 309, 29291, 198, 198, 6738, 2378, 62, 18392, 13, 9979, 1187, 1330, 1635, 198, 6738, 2378, 62, 18392, 13, 2815, 62, 2815, 62, 27349, 1330, 9104, 355, 27140, 62, 17633, 198, 6738, 2378, 62, 18392, 13, 5239, 8692, 1330...
1.793701
2,826
""" Author: Vinícius Jardim Email: viniciuspjardim@gmail.com Date: 3/2016 """ import math import random import re import wave import matplotlib.pyplot as plt import numpy as np import pyaudio as pa from scipy.io.wavfile import write from scipy import signal from src.musics import * class Notes: """Musical notes...
[ 37811, 198, 13838, 25, 11820, 8836, 28599, 449, 446, 320, 198, 15333, 25, 410, 47277, 3754, 79, 73, 446, 320, 31, 14816, 13, 785, 198, 10430, 25, 513, 14, 5304, 198, 37811, 198, 198, 11748, 10688, 198, 11748, 4738, 198, 11748, 302, ...
2.189369
1,806
from __future__ import (absolute_import, division, print_function, unicode_literals) from sqlalchemy.ext.declarative import declarative_base from sqlalchemy.orm import scoped_session, sessionmaker from zope.sqlalchemy import ZopeTransactionExtension __all__ = ['Base', 'Session'] Session = ...
[ 6738, 11593, 37443, 834, 1330, 357, 48546, 62, 11748, 11, 7297, 11, 3601, 62, 8818, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 28000, 1098, 62, 17201...
2.910959
146
from typing import ( Protocol, Awaitable, TypeVar, Callable, Union, runtime_checkable, Dict, TypedDict, Generic, Type, TYPE_CHECKING, ) from typing_extensions import ParamSpec if TYPE_CHECKING: from .object import Object T = TypeVar("T", covariant=True...
[ 6738, 19720, 1330, 357, 201, 198, 220, 220, 220, 20497, 11, 201, 198, 220, 220, 220, 5851, 4548, 540, 11, 201, 198, 220, 220, 220, 5994, 19852, 11, 201, 198, 220, 220, 220, 4889, 540, 11, 201, 198, 220, 220, 220, 4479, 11, 201, ...
2.284519
239
import json import subprocess import re import sys from nittymcpick.cls.comment import Comment
[ 11748, 33918, 198, 11748, 850, 14681, 198, 11748, 302, 198, 11748, 25064, 198, 198, 6738, 299, 715, 4948, 13155, 624, 13, 565, 82, 13, 23893, 1330, 18957, 628 ]
3.464286
28
""" Copyright 2017 Google Inc. 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, software dis...
[ 37811, 198, 15269, 2177, 3012, 3457, 13, 198, 26656, 15385, 739, 262, 24843, 13789, 11, 10628, 362, 13, 15, 357, 1169, 366, 34156, 15341, 198, 5832, 743, 407, 779, 428, 2393, 2845, 287, 11846, 351, 262, 13789, 13, 198, 1639, 743, 7330...
2.780612
588
import os import numpy as np import math import scipy import pickle TRAIN_DATA_PATH = "/Users/evanradcliffe/Senior Design/webserver/app/asl-alphabet/asl_alphabet_train" split_arr = lambda arr: arr[int(len(arr)/7):] def read_hand3d(): """read data from files (run setup_asl.py to generate)""" images = pickle.l...
[ 11748, 28686, 198, 11748, 299, 32152, 355, 45941, 198, 11748, 10688, 198, 11748, 629, 541, 88, 198, 11748, 2298, 293, 198, 198, 51, 3861, 1268, 62, 26947, 62, 34219, 796, 12813, 14490, 14, 1990, 272, 6335, 33783, 14, 31224, 8495, 14, ...
2.221116
1,004
from .insn import * from .variant import RV64I,Extensions @isa("lui", 0x37) class InstructionLUI(InstructionUType): """ The Load Upper Immediate (LUI) instruction loads the given immediate (unsigned 20 bit) to the upper 20 bit of the destination register. The lower bits are set to zero in the destination ...
[ 6738, 764, 1040, 77, 1330, 1635, 198, 6738, 764, 25641, 415, 1330, 31367, 2414, 40, 11, 11627, 5736, 628, 198, 31, 9160, 7203, 2290, 72, 1600, 657, 87, 2718, 8, 198, 4871, 46486, 43, 10080, 7, 6310, 2762, 3843, 2981, 2599, 198, 220,...
1.898696
997
import torch import torch.nn as nn import torch.nn.functional as F from torch import Tensor from .learnable import Scale, Balance from .softmax import SpatialSoftmax2d from .spectral import SpectralConv2d from ImageFunctions.utility.torch import get_valid_padding from .registry import register from . import create as ...
[ 11748, 28034, 198, 11748, 28034, 13, 20471, 355, 299, 77, 198, 11748, 28034, 13, 20471, 13, 45124, 355, 376, 198, 6738, 28034, 1330, 309, 22854, 198, 6738, 764, 35720, 540, 1330, 21589, 11, 22924, 198, 6738, 764, 4215, 9806, 1330, 1338,...
3.182482
137
""" -*- test-case-name: PyHouse/src/Modules/Utilities/coordinate_tools.py -*- @name: PyHouse/src/Modules/Utilities/coordinate_tools.py @author: D. Brian Kimmel @contact: d.briankimmel@gmail.com @copyright: 2016-2016 by D. Brian Kimmel @date: Created on Jun 21, 2016 @licencse: MIT License @summa...
[ 37811, 198, 12, 9, 12, 1332, 12, 7442, 12, 3672, 25, 220, 9485, 18102, 14, 10677, 14, 5841, 5028, 14, 18274, 2410, 14, 37652, 4559, 62, 31391, 13, 9078, 220, 532, 9, 12, 198, 198, 31, 3672, 25, 220, 220, 220, 220, 220, 220, 9485...
2.099432
704
from django.apps import AppConfig
[ 6738, 42625, 14208, 13, 18211, 1330, 2034, 16934, 628 ]
3.888889
9
# the pre compiled functions would be written here # only the algocryption module can access these complied functions
[ 2, 262, 662, 14102, 5499, 561, 307, 3194, 994, 198, 2, 691, 262, 435, 70, 420, 13168, 8265, 460, 1895, 777, 35413, 5499, 198 ]
4.916667
24
import os, sys sys.path.append(os.path.abspath(os.getcwd())) from pymongo import MongoClient API = 'http://localhost:4200' # frontend api PRIMEIROAPP_API_DEV = os.environ.get('PRIMEIROAPP_API_DEV') PRIMEIROAPP_API_PROD = os.environ.get('PRIMEIROAPP_API_PROD') conn = MongoClient(host=PRIMEIROAPP_API_DEV, port=27017...
[ 11748, 28686, 11, 25064, 198, 198, 17597, 13, 6978, 13, 33295, 7, 418, 13, 6978, 13, 397, 2777, 776, 7, 418, 13, 1136, 66, 16993, 3419, 4008, 198, 198, 6738, 279, 4948, 25162, 1330, 42591, 11792, 198, 198, 17614, 796, 705, 4023, 137...
2.376022
367
import re import nltk import gensim import logging from pymystem3 import Mystem from string import punctuation from nltk.corpus import stopwords log = logging.getLogger(__name__)
[ 11748, 302, 198, 11748, 299, 2528, 74, 198, 11748, 308, 641, 320, 198, 11748, 18931, 198, 198, 6738, 12972, 1820, 927, 18, 1330, 2011, 927, 198, 6738, 4731, 1330, 21025, 2288, 198, 6738, 299, 2528, 74, 13, 10215, 79, 385, 1330, 2245, ...
3.081967
61
# Copyright 2013 Google Inc. All Rights Reserved. """Provide commands for managing SSL certificates of Cloud SQL instances.""" from googlecloudsdk.calliope import base class SslCerts(base.Group): """Provide commands for managing SSL certificates of Cloud SQL instances. Provide commands for managing SSL certif...
[ 2, 15069, 2211, 3012, 3457, 13, 1439, 6923, 33876, 13, 198, 198, 37811, 15946, 485, 9729, 329, 11149, 25952, 20835, 286, 10130, 16363, 10245, 526, 15931, 628, 198, 6738, 23645, 17721, 21282, 74, 13, 13345, 72, 3008, 1330, 2779, 628, 198...
3.30916
262
import unicodedata from pyglet.window import key from pyglet.libs.darwin.cocoapy import * NSArray = ObjCClass('NSArray') NSApplication = ObjCClass('NSApplication') # This custom NSTextView subclass is used for capturing all of the # on_text, on_text_motion, and on_text_motion_select events. PygletTextView = ObjCC...
[ 11748, 28000, 9043, 1045, 198, 198, 6738, 12972, 70, 1616, 13, 17497, 1330, 1994, 198, 198, 6738, 12972, 70, 1616, 13, 8019, 82, 13, 27455, 5404, 13, 66, 25634, 12826, 1330, 1635, 198, 198, 8035, 19182, 796, 38764, 34, 9487, 10786, 80...
2.982609
115
#!/usr/bin/env python from BaseHTTPServer import HTTPServer from threading import Thread from webserver.context import RequestHandler if __name__ == "__main__": from sys import argv if len(argv) == 2: run(port=int(argv[1])) else: run()
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 198, 6738, 7308, 6535, 28820, 18497, 1330, 38288, 18497, 198, 6738, 4704, 278, 1330, 14122, 198, 6738, 2639, 18497, 13, 22866, 1330, 19390, 25060, 628, 198, 361, 11593, 3672, 834, 6624, 366, ...
2.561905
105
from state import State from mystack import Stack from myqueue import Queue """ Define the number of stones can capstones for each board size. """ STONES = { 3: (10,0), 4: (15,0), 5: (21,1), 6: (30,1), 8: (50,2) } """ Define constants representing flat stones, standing stones and cap stones. """ FLAT_STONE...
[ 6738, 1181, 1330, 1812, 198, 6738, 21619, 441, 1330, 23881, 198, 6738, 616, 36560, 1330, 4670, 518, 198, 198, 37811, 198, 7469, 500, 262, 1271, 286, 14966, 460, 1451, 28750, 329, 1123, 3096, 2546, 13, 198, 37811, 198, 2257, 39677, 796, ...
3.355412
1,238
import concurrent.futures import logging import os import sys import boto3 import log_return from job_requester import JobRequester LOGGER = logging.getLogger(__name__) LOGGER.setLevel(logging.DEBUG) LOGGER.addHandler(logging.StreamHandler(sys.stdout)) TEST_IMAGE = "763104351884.dkr.ecr.us-west-2.amazonaws.com/t...
[ 11748, 24580, 13, 69, 315, 942, 198, 11748, 18931, 198, 11748, 28686, 198, 11748, 25064, 628, 198, 11748, 275, 2069, 18, 198, 198, 11748, 2604, 62, 7783, 198, 198, 6738, 1693, 62, 8897, 7834, 1330, 15768, 16844, 7834, 628, 198, 25294, ...
2.693285
1,102
from django.shortcuts import render from django.views.generic import ListView from pdn.models import *
[ 6738, 42625, 14208, 13, 19509, 23779, 1330, 8543, 198, 6738, 42625, 14208, 13, 33571, 13, 41357, 1330, 7343, 7680, 198, 198, 6738, 279, 32656, 13, 27530, 1330, 1635, 628 ]
3.62069
29
from dotenv import load_dotenv import os from psycopg2 import connect, OperationalError load_dotenv()
[ 6738, 16605, 24330, 1330, 3440, 62, 26518, 24330, 198, 11748, 28686, 198, 6738, 17331, 22163, 70, 17, 1330, 2018, 11, 6564, 864, 12331, 198, 2220, 62, 26518, 24330, 3419, 628 ]
3.433333
30
import os import sys import logging import time import argparse import re import pymysql.cursors import pymysql.err from prometheus_client import CollectorRegistry, Gauge, Counter, push_to_gateway FORMAT = '%(asctime)s [%(process)d] [%(levelname)s] [%(name)s] %(message)s' TABLE_DEF = """ CREATE TABLE `alembic_vers...
[ 11748, 28686, 198, 11748, 25064, 198, 11748, 18931, 198, 11748, 640, 198, 11748, 1822, 29572, 198, 11748, 302, 198, 198, 11748, 279, 4948, 893, 13976, 13, 66, 1834, 669, 198, 11748, 279, 4948, 893, 13976, 13, 8056, 198, 198, 6738, 1552,...
2.162191
931
#!/usr/bin/env python import json import os ''' The whitelist object is for reading the standard minecraft whitelist.json, and also maintaining a blacklist.json. '''
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 198, 11748, 33918, 198, 11748, 28686, 198, 198, 7061, 6, 198, 464, 20542, 46331, 2134, 318, 329, 3555, 262, 3210, 6164, 3323, 198, 1929, 270, 46331, 13, 17752, 11, 290, 635, 10941, 257, 388...
3.408163
49
__author__ = 'dimitris' """ URLS for the Advanced Builder """ from django.conf.urls import patterns, include, url from builder_advanced import views urlpatterns = patterns('', # Basic pages url(r'^$', views.index, name='advanced-builder-index'), ...
[ 834, 9800, 834, 796, 705, 27740, 270, 2442, 6, 198, 198, 37811, 198, 4261, 6561, 329, 262, 13435, 35869, 198, 37811, 198, 198, 6738, 42625, 14208, 13, 10414, 13, 6371, 82, 1330, 7572, 11, 2291, 11, 19016, 198, 6738, 27098, 62, 32225, ...
1.925558
403
from rest_framework import serializers from django.contrib.auth.models import User from coffee_book.models import User, Coffee, BrewMethod, Review, Region
[ 6738, 1334, 62, 30604, 1330, 11389, 11341, 198, 6738, 42625, 14208, 13, 3642, 822, 13, 18439, 13, 27530, 1330, 11787, 198, 6738, 6891, 62, 2070, 13, 27530, 1330, 11787, 11, 19443, 11, 9702, 17410, 11, 6602, 11, 17718, 198 ]
3.974359
39
import sys import cStringIO import urllib2 from img_utils import prepare_image from PIL import Image from wintria.wintria.settings import PROJECT_ROOT thumbnail_size = 100, 100 dest_thumb_url = PROJECT_ROOT + 'wintria/wintria/logo_static/logo_thumbs/' dest_gen_url = PROJECT_ROOT + 'wintria/wintria/logo_static/logob...
[ 11748, 25064, 198, 11748, 269, 10100, 9399, 198, 11748, 2956, 297, 571, 17, 198, 198, 6738, 33705, 62, 26791, 1330, 8335, 62, 9060, 198, 6738, 350, 4146, 1330, 7412, 198, 6738, 266, 600, 7496, 13, 86, 600, 7496, 13, 33692, 1330, 21965...
2.391003
289
# -*- coding: utf-8 -*- """ Sahana Eden Population Outreach Models @copyright: 2015-2021 (c) Sahana Software Foundation @license: MIT Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the S...
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 198, 37811, 22982, 2271, 23369, 20133, 3806, 16250, 32329, 628, 220, 220, 220, 2488, 22163, 4766, 25, 1853, 12, 1238, 2481, 357, 66, 8, 22982, 2271, 10442, 5693, 198, 22...
2.285929
3,333
from fastapi import APIRouter from pydantic import UUID4 from models.cv.cv import CVModel, CV_Pydantic from models.cv.details import DetailsModel cv_router = APIRouter() @cv_router.get("/{cv_id}") @cv_router.get("/") @cv_router.post("/{user_id}")
[ 6738, 3049, 15042, 1330, 3486, 4663, 39605, 198, 6738, 279, 5173, 5109, 1330, 471, 27586, 19, 198, 6738, 4981, 13, 33967, 13, 33967, 1330, 26196, 17633, 11, 26196, 62, 47, 5173, 5109, 198, 6738, 4981, 13, 33967, 13, 36604, 1330, 14890, ...
2.544554
101
from typing import Dict import pandas as pd import datetime as dt from src.typeDefs.freqVoltConfig import IFreqVoltConfig from src.typeDefs.voltRecord import IVoltDataRecord from typing import List
[ 6738, 19720, 1330, 360, 713, 198, 11748, 19798, 292, 355, 279, 67, 198, 11748, 4818, 8079, 355, 288, 83, 198, 6738, 12351, 13, 4906, 7469, 82, 13, 19503, 80, 53, 5978, 16934, 1330, 16876, 42180, 53, 5978, 16934, 198, 6738, 12351, 13, ...
3.372881
59
#!/usr/bin/env python #coding:utf-8 # Purpose: whitespace processing # Created: 06.01.2011 # Copyright (C) 2011, Manfred Moitzi # License: MIT from __future__ import unicode_literals, print_function, division __author__ = "mozman <mozman@gmx.at>" from .compatibility import tostr from .xmlns import register_c...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 201, 198, 2, 66, 7656, 25, 40477, 12, 23, 201, 198, 2, 32039, 25, 13216, 10223, 7587, 201, 198, 2, 15622, 25, 9130, 13, 486, 13, 9804, 201, 198, 2, 15069, 357, 34, 8, 2813, 11, 1869, ...
2.781609
174
import pandas as pd df = pd.read_csv('data_banknote_authentication.txt') outliers(1.5, df) outliers(2.5, df) print() authentic = df[df['class'] == 0] # class 0 fake = df[df['class'] == 1] # class 1 outliers(1.5, authentic) outliers(2.0, authentic) outliers(2.5, authentic) print() outliers(1.5, fake) outliers(2....
[ 11748, 19798, 292, 355, 279, 67, 198, 7568, 796, 279, 67, 13, 961, 62, 40664, 10786, 7890, 62, 17796, 11295, 62, 41299, 3299, 13, 14116, 11537, 628, 198, 198, 448, 75, 3183, 7, 16, 13, 20, 11, 47764, 8, 198, 448, 75, 3183, 7, 17...
2.194969
159
from api.base_datastream_api import UAICensorBaseDatastreamApi from api.utils import gen_async_video_censor_url
[ 6738, 40391, 13, 8692, 62, 19608, 459, 1476, 62, 15042, 1330, 46164, 2149, 22854, 14881, 27354, 459, 1476, 32, 14415, 198, 6738, 40391, 13, 26791, 1330, 2429, 62, 292, 13361, 62, 15588, 62, 66, 22854, 62, 6371, 198 ]
2.947368
38
import math import numpy.linalg import numpy as np def shrink(X, tau): """ Apply the shrinkage operator the the elements of X. Returns V such that V[i,j] = max(abs(X[i,j]) - tau,0). """ V = np.copy(X).reshape(X.size) for i in range(V.size): V[i] = math.copysign(max(abs(V[i]) - tau, 0), ...
[ 11748, 10688, 198, 11748, 299, 32152, 13, 75, 1292, 70, 198, 11748, 299, 32152, 355, 45941, 198, 198, 4299, 22085, 7, 55, 11, 256, 559, 2599, 198, 220, 220, 220, 37227, 198, 220, 220, 220, 27967, 262, 22085, 496, 10088, 262, 262, 48...
1.88401
1,207
__author__ = 'wkerzend'
[ 834, 9800, 834, 796, 705, 86, 6122, 89, 437, 6, 198 ]
2.181818
11
#!/usr/bin/env python """ Test each connector's standalone CLI cache tool """ import os import json import sqlite3 try: import StringIO as io except ImportError: import io import datetime import pandas import nose try: import elasticsearch.exceptions _HAVE_ELASTICSEARCH = True except ImportError: ...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 198, 37811, 198, 14402, 1123, 21716, 338, 27669, 43749, 12940, 2891, 198, 37811, 198, 198, 11748, 28686, 198, 11748, 33918, 198, 11748, 44161, 578, 18, 198, 28311, 25, 198, 220, 220, 220, 133...
1.984591
10,059
import accimage import numpy as np import imageio import os ACCIMAGE_SAVE = os.environ.get('ACCIMAGE_SAVE', '') if len(ACCIMAGE_SAVE) and ACCIMAGE_SAVE.lower() not in {'0', 'false', 'no'}: SAVE_IMAGES = True else: SAVE_IMAGES = False def image_to_np(image): """ Returns: np.ndarray: Image conve...
[ 11748, 697, 9060, 198, 11748, 299, 32152, 355, 45941, 198, 11748, 2939, 952, 198, 11748, 28686, 198, 198, 26861, 3955, 11879, 62, 4090, 6089, 796, 28686, 13, 268, 2268, 13, 1136, 10786, 26861, 3955, 11879, 62, 4090, 6089, 3256, 10148, 8...
2.410256
234
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Written by Lucas Sinclair. MIT Licensed. Contact at www.sinclair.bio """ # Built-in modules # # Internal modules # # First party modules # ############################################################################### class NonRedundant(object): """ The N...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 18, 198, 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 198, 37811, 198, 25354, 416, 15257, 34927, 13, 198, 36393, 49962, 13, 198, 17829, 379, 7324, 13, 31369, 27659, 13, ...
3.195122
164
#!/usr/bin/env python3 # # Copyright 2020 IBM # 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 t...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 18, 198, 2, 198, 2, 15069, 12131, 19764, 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, 1...
2.651657
1,177
from django.apps import AppConfig
[ 6738, 42625, 14208, 13, 18211, 1330, 2034, 16934, 628 ]
3.888889
9
'''https://leetcode.com/problems/operations-on-tree/ 1993. Operations on Tree Medium 152 34 Add to List Share You are given a tree with n nodes numbered from 0 to n - 1 in the form of a parent array parent where parent[i] is the parent of the ith node. The root of the tree is node 0, so parent[0] = -1 since it has ...
[ 7061, 6, 5450, 1378, 293, 316, 8189, 13, 785, 14, 1676, 22143, 14, 3575, 602, 12, 261, 12, 21048, 14, 198, 24465, 13, 16205, 319, 12200, 198, 31205, 198, 198, 17827, 198, 198, 2682, 198, 198, 4550, 284, 7343, 198, 198, 11649, 198, ...
3.114644
1,038
# -------------------------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # --------------------------------------------------------------------...
[ 2, 16529, 1783, 10541, 198, 2, 15069, 357, 66, 8, 5413, 10501, 13, 1439, 2489, 10395, 13, 198, 2, 49962, 739, 262, 17168, 13789, 13, 4091, 13789, 13, 14116, 287, 262, 1628, 6808, 329, 5964, 1321, 13, 198, 2, 16529, 1783, 10541, 198,...
3.190977
665
_base_ = [ '../_base_/models/cascade_rcnn_r50_fpn.py', './my_voc.py', './my_runtime.py' ] model = dict( pretrained='open-mmlab://resnext101_32x4d', backbone=dict( type='ResNeXt', depth=101, num_stages=4, out_indices=(0, 1, 2, 3), frozen_stages=1, norm_...
[ 62, 8692, 62, 796, 685, 198, 220, 220, 220, 705, 40720, 62, 8692, 62, 14, 27530, 14, 66, 28966, 62, 6015, 20471, 62, 81, 1120, 62, 69, 21999, 13, 9078, 3256, 198, 220, 220, 220, 705, 19571, 1820, 62, 18893, 13, 9078, 3256, 198, ...
1.575378
1,917
import setuptools with open("README.md") as readme: long_description = readme.read() setuptools.setup( name="simpleparser", version="0.1.3", author="NamorNiradnug", author_email="roma57linux@gmail.com", packages=["simpleparser"], tests_require=["test.py"], description="Simple library w...
[ 11748, 900, 37623, 10141, 198, 198, 4480, 1280, 7203, 15675, 11682, 13, 9132, 4943, 355, 1100, 1326, 25, 198, 220, 220, 220, 890, 62, 11213, 796, 1100, 1326, 13, 961, 3419, 198, 198, 2617, 37623, 10141, 13, 40406, 7, 198, 220, 220, ...
2.597143
350
# -*- coding: utf-8 -*- # Part of Odoo. See LICENSE file for full copyright and licensing details. from odoo import api, fields, models
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 2, 2142, 286, 10529, 2238, 13, 4091, 38559, 24290, 2393, 329, 1336, 6634, 290, 15665, 3307, 13, 198, 198, 6738, 16298, 2238, 1330, 40391, 11, 7032, 11, 4981, 628 ]
3.209302
43
import os from flask import Flask from flask_mail import Mail from flask_sqlalchemy import SQLAlchemy from flask_login import LoginManager from flask_assets import Environment from flask_wtf import CsrfProtect from flask_compress import Compress from flask_rq import RQ from flask_oauthlib.provider import OAuth2Provider...
[ 11748, 28686, 198, 6738, 42903, 1330, 46947, 198, 6738, 42903, 62, 4529, 1330, 11099, 198, 6738, 42903, 62, 25410, 282, 26599, 1330, 16363, 2348, 26599, 198, 6738, 42903, 62, 38235, 1330, 23093, 13511, 198, 6738, 42903, 62, 19668, 1330, 9...
3.229508
244
# coding: utf-8 """ Binary Heap https://en.wikipedia.org/wiki/Binary_heap https://en.wikipedia.org/wiki/Heap_(data_structure) A binary heap is a special binary tree which satisfies following properties: - The tree is complete. - The parent's value is less than or equal to children's values. - The root's value would be...
[ 2, 19617, 25, 3384, 69, 12, 23, 198, 37811, 198, 33, 3219, 679, 499, 198, 5450, 1378, 268, 13, 31266, 13, 2398, 14, 15466, 14, 33, 3219, 62, 258, 499, 198, 5450, 1378, 268, 13, 31266, 13, 2398, 14, 15466, 14, 1544, 499, 41052, 7...
3.08209
268
from django.template.loader import render_to_string from jinja2 import Environment, PackageLoader, select_autoescape from ..templatetags.dtt_filters import to_snake_case
[ 6738, 42625, 14208, 13, 28243, 13, 29356, 1330, 8543, 62, 1462, 62, 8841, 198, 6738, 474, 259, 6592, 17, 1330, 9344, 11, 15717, 17401, 11, 2922, 62, 2306, 3028, 36435, 198, 198, 6738, 11485, 11498, 489, 265, 316, 3775, 13, 67, 926, ...
3.222222
54
from path import Path as path import pixabay as python_pixabay import tempfile from sklearn.externals import joblib import os import time import warnings import json import requests import numpy as np import re cache_filename = "pixabay_cache.pkl" api_key = None cache_update_interval = 3600 cache_expiry = 24*3600 cac...
[ 6738, 3108, 1330, 10644, 355, 3108, 198, 11748, 279, 844, 397, 323, 355, 21015, 62, 79, 844, 397, 323, 198, 11748, 20218, 7753, 198, 6738, 1341, 35720, 13, 1069, 759, 874, 1330, 1693, 8019, 198, 11748, 28686, 198, 11748, 640, 198, 117...
2.70339
354
""" pydeptree file.py -- contains functions to parses .py file -- extract function names, class names -- find what other functions a given function rely on @By Seth (Xiaohui) Wang @email: sethwang199418@gmail.com """ ''' class pyfile: def __init__(self, file_dir): self.file_dir = file_dir # find what ...
[ 37811, 198, 9078, 2934, 457, 631, 198, 7753, 13, 9078, 198, 438, 4909, 5499, 284, 13544, 274, 764, 9078, 2393, 198, 438, 7925, 2163, 3891, 11, 1398, 3891, 198, 438, 1064, 644, 584, 5499, 257, 1813, 2163, 8814, 319, 198, 31, 3886, 20...
2.475806
248
"""Base test case support for tools. Version Added: 3.0 """ from __future__ import unicode_literals import os import tempfile from copy import deepcopy from functools import wraps from unittest import SkipTest import kgb import six from reviewbot.config import config from reviewbot.repositories import GitRepos...
[ 37811, 14881, 1332, 1339, 1104, 329, 4899, 13, 198, 198, 14815, 10687, 25, 198, 220, 220, 220, 513, 13, 15, 198, 37811, 198, 198, 6738, 11593, 37443, 834, 1330, 28000, 1098, 62, 17201, 874, 198, 198, 11748, 28686, 198, 11748, 20218, 7...
2.11042
4,981
"""Interfaces defined in the state chart model. The interfaces defined in the state chart model are represented as separate classes. """ class SCI_Interface: """Implementation of scope sci_interface. """
[ 37811, 9492, 32186, 5447, 287, 262, 1181, 8262, 2746, 13, 198, 198, 464, 20314, 5447, 287, 262, 1181, 8262, 2746, 389, 7997, 198, 292, 4553, 6097, 13, 198, 198, 37811, 198, 198, 4871, 6374, 40, 62, 39317, 25, 628, 197, 37811, 3546, ...
3.633333
60