content
stringlengths
1
1.04M
input_ids
listlengths
1
774k
ratio_char_token
float64
0.38
22.9
token_count
int64
1
774k
import os import random import pickle import math import torch from torch.utils.data import Dataset from torchvision.ops import nms import numpy as np import h5py from tqdm import trange from utils.misc import mrcn_crop_pool_layer, recursive_jitter_roi, repeat_loader, calculate_iou __all__ = ['RankDataset', 'RankEv...
[ 11748, 28686, 198, 11748, 4738, 198, 11748, 2298, 293, 198, 11748, 10688, 198, 198, 11748, 28034, 198, 6738, 28034, 13, 26791, 13, 7890, 1330, 16092, 292, 316, 198, 6738, 28034, 10178, 13, 2840, 1330, 299, 907, 198, 11748, 299, 32152, 3...
3.025862
116
from nmigen import * from nmigen.build import Platform # Simple blink script. Call this with: # ```python # blink = Blink(12000000) # blink once a second, the icesugar runs at 12mhz # led = platform.request('led_r') # # m = Module() # m.submodules += blink # m.d.comb += led.eq(blink.state) # ```
[ 6738, 28642, 9324, 1330, 1635, 198, 6738, 28642, 9324, 13, 11249, 1330, 19193, 198, 198, 2, 17427, 21019, 4226, 13, 4889, 428, 351, 25, 198, 2, 7559, 63, 29412, 198, 2, 21019, 796, 41732, 7, 1065, 10535, 8, 1303, 21019, 1752, 257, 1...
2.902913
103
#- # Copyright (c) 2018 Alex Richardson # All rights reserved. # # This software was developed by the University of Cambridge Computer # Laboratory as part of the Rigorous Engineering of Mainstream Systems (REMS) # project, funded by EPSRC grant EP/K008528/1. # # @BERI_LICENSE_HEADER_START@ # # Licensed to BERI Open Sy...
[ 2, 12, 198, 2, 15069, 357, 66, 8, 2864, 4422, 21679, 198, 2, 1439, 2489, 10395, 13, 198, 2, 198, 2, 770, 3788, 373, 4166, 416, 262, 2059, 286, 14457, 13851, 198, 2, 18643, 355, 636, 286, 262, 24666, 9610, 14044, 286, 8774, 5532, ...
3.570149
335
import tensorflow as tf from tensorflow.python.framework import graph_util sess = tf.InteractiveSession() op = tf.range([3, 4], [18, 10], [5, 3], name="range") target=op.eval(); print(target) constant_graph = graph_util.convert_variables_to_constants(sess, sess.graph_def, ['range']) with tf.gfile.FastGFile("range....
[ 11748, 11192, 273, 11125, 355, 48700, 198, 6738, 11192, 273, 11125, 13, 29412, 13, 30604, 1330, 4823, 62, 22602, 198, 198, 82, 408, 796, 48700, 13, 9492, 5275, 36044, 3419, 198, 198, 404, 796, 48700, 13, 9521, 26933, 18, 11, 604, 4357...
2.666667
147
#!/usr/bin/python import configparser import argparse import pandas as pd import datetime import sql_itis import logging import os import requests from zipfile import ZipFile, BadZipfile import re from io import BytesIO import xml.etree.ElementTree as ET #test olnly if __name__ == '__main__': global logger lo...
[ 2, 48443, 14629, 14, 8800, 14, 29412, 198, 11748, 4566, 48610, 198, 11748, 1822, 29572, 198, 11748, 19798, 292, 355, 279, 67, 198, 11748, 4818, 8079, 198, 11748, 44161, 62, 11815, 198, 11748, 18931, 198, 11748, 28686, 198, 11748, 7007, ...
3.010309
194
from bs4 import BeautifulSoup from book import BookFetcher from category import Category import concurrent.futures import time import colorama class CategoryFetcher: """ Create a category object containing book objects. """ @staticmethod
[ 6738, 275, 82, 19, 1330, 23762, 50, 10486, 198, 6738, 1492, 1330, 4897, 37, 316, 2044, 198, 6738, 6536, 1330, 21743, 198, 11748, 24580, 13, 69, 315, 942, 198, 11748, 640, 198, 11748, 3124, 1689, 628, 198, 4871, 21743, 37, 316, 2044, ...
3.38961
77
import numpy as np import pytest from pandas import DataFrame pytest.importorskip("jinja2") from pandas.io.formats.style import Styler
[ 11748, 299, 32152, 355, 45941, 198, 11748, 12972, 9288, 198, 198, 6738, 19798, 292, 1330, 6060, 19778, 198, 198, 9078, 9288, 13, 11748, 669, 74, 541, 7203, 18594, 6592, 17, 4943, 198, 6738, 19798, 292, 13, 952, 13, 687, 1381, 13, 7635...
3
46
import discord import json import random from discord.ext import commands from difflib import get_close_matches from core.paginator import EmbedPaginatorSession as EPS
[ 11748, 36446, 198, 11748, 33918, 198, 11748, 4738, 198, 6738, 36446, 13, 2302, 1330, 9729, 198, 6738, 814, 8019, 1330, 651, 62, 19836, 62, 6759, 2052, 198, 6738, 4755, 13, 79, 363, 20900, 1330, 13302, 276, 47, 363, 20900, 36044, 355, ...
3.930233
43
from django.utils import timezone from django import forms from django.forms.util import ErrorDict PAYMENT_FIELDS = {'credit_card__number': 'x_card_num', 'credit_card__cvv': 'x_card_code', 'credit_card__exp_date': 'x_exp_date', 'credit_card__expiration_month': 'x_e...
[ 6738, 42625, 14208, 13, 26791, 1330, 640, 11340, 198, 6738, 42625, 14208, 1330, 5107, 198, 6738, 42625, 14208, 13, 23914, 13, 22602, 1330, 13047, 35, 713, 198, 198, 4537, 56, 10979, 62, 11674, 3698, 5258, 796, 1391, 6, 43082, 62, 9517, ...
2.037259
2,335
from typing import Iterable, Union import psycopg2.extras import psycopg2.extensions import logging from privex.db.base import CursorManager from privex.db.types import GenericCursor from privex.db.query.base import BaseQueryBuilder, QueryMode log = logging.getLogger(__name__) class PostgresQueryBuilder(BaseQueryBu...
[ 6738, 19720, 1330, 40806, 540, 11, 4479, 198, 11748, 17331, 22163, 70, 17, 13, 2302, 8847, 198, 11748, 17331, 22163, 70, 17, 13, 2302, 5736, 198, 11748, 18931, 198, 198, 6738, 1293, 303, 87, 13, 9945, 13, 8692, 1330, 327, 21471, 13511...
2.309751
3,138
import graphene from graphene import relay from kaffepause.common.types import CountableConnection from kaffepause.users.types import UserConnection, UserNode
[ 11748, 42463, 198, 6738, 42463, 1330, 24248, 198, 198, 6738, 479, 2001, 538, 682, 13, 11321, 13, 19199, 1330, 2764, 540, 32048, 198, 6738, 479, 2001, 538, 682, 13, 18417, 13, 19199, 1330, 11787, 32048, 11, 11787, 19667, 628, 628, 198 ]
4
41
from symbol_table import SymbolTable from values import * # def func_N(args): # return Number(float(args[0])) stdlib = SymbolTable() stdlib.set('I', Func(func_I)) stdlib.set('S', Func(func_S)) # stdlib.set('N', Func(func_N)) stdlib.set('P', Func(func_P))
[ 6738, 6194, 62, 11487, 1330, 38357, 10962, 198, 6738, 3815, 1330, 1635, 198, 198, 2, 825, 25439, 62, 45, 7, 22046, 2599, 198, 2, 220, 220, 220, 220, 1441, 7913, 7, 22468, 7, 22046, 58, 15, 60, 4008, 198, 198, 19282, 8019, 796, 383...
2.429907
107
import json import numpy as np from autodisc.helper.data import JSONNumpyEncoder, json_numpy_object_hook from autodisc.helper.data import set_dict_default_values
[ 11748, 33918, 198, 11748, 299, 32152, 355, 45941, 198, 6738, 1960, 375, 2304, 13, 2978, 525, 13, 7890, 1330, 19449, 45, 32152, 27195, 12342, 11, 33918, 62, 77, 32152, 62, 15252, 62, 25480, 198, 6738, 1960, 375, 2304, 13, 2978, 525, 13...
3.113208
53
#!/usr/local/bin/python # Things that are generally useful but require nothing other # than standard libraries. import copy, filecmp, glob, itertools, os, pprint, random, re, stat, string, urllib, urllib2 import config # bleagh import jinja2 #html_done = False alnum = string.digits + string.ascii_lowercase if os....
[ 2, 48443, 14629, 14, 12001, 14, 8800, 14, 29412, 198, 198, 2, 11597, 326, 389, 4143, 4465, 475, 2421, 2147, 584, 198, 2, 621, 3210, 12782, 13, 198, 198, 11748, 4866, 11, 2393, 48991, 11, 15095, 11, 340, 861, 10141, 11, 28686, 11, ...
2.455505
663
import eneel.load_functions as load_functions import eneel.printer as printer import logging logger = logging.getLogger("main_logger")
[ 11748, 551, 68, 417, 13, 2220, 62, 12543, 2733, 355, 3440, 62, 12543, 2733, 198, 11748, 551, 68, 417, 13, 1050, 3849, 355, 20632, 198, 198, 11748, 18931, 198, 198, 6404, 1362, 796, 18931, 13, 1136, 11187, 1362, 7203, 12417, 62, 6404, ...
3.043478
46
# -*- coding: utf-8 -*- """ @Author: Timothy Berkelbach Bing Gu Spin-orbital G0W0 Refs [1] Lange and Berkelbach, 2018, JCTC """ import numpy as np import scipy.linalg from scipy.optimize import newton from pyscf.lib import logger import pyscf.ao2mo import pyscf from functools import reduce def g0(gw, om...
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 37811, 198, 31, 13838, 25, 22283, 4312, 7750, 19496, 198, 220, 220, 220, 220, 220, 220, 220, 220, 21631, 1962, 198, 198, 4561, 259, 12, 27688, 1287, 402, 15, 54, 15, ...
1.792468
3,797
# Test script for genome_util package - it should be launched from # the root of the genome_util module, ideally just with 'make test', as # it looks for a hardcoded relative path to find the 'test.cfg' file import unittest import json import ConfigParser from pprint import pprint from subprocess import call from bi...
[ 2, 6208, 4226, 329, 19270, 62, 22602, 5301, 532, 340, 815, 307, 5611, 422, 198, 2, 262, 6808, 286, 262, 19270, 62, 22602, 8265, 11, 30274, 655, 351, 705, 15883, 1332, 3256, 355, 198, 2, 340, 3073, 329, 257, 1327, 40976, 3585, 3108, ...
3.621951
164
from django.conf import settings from django.conf.urls import url from django.urls import include from django.urls import path from django.contrib import admin from controlcenter.views import controlcenter urlpatterns = [ url(r'^admin/', admin.site.urls), url(r'^admin/dashboard/', controlcenter.urls), ur...
[ 6738, 42625, 14208, 13, 10414, 1330, 6460, 198, 198, 6738, 42625, 14208, 13, 10414, 13, 6371, 82, 1330, 19016, 198, 6738, 42625, 14208, 13, 6371, 82, 1330, 2291, 198, 6738, 42625, 14208, 13, 6371, 82, 1330, 3108, 198, 6738, 42625, 14208...
2.466667
300
""" Note that the equality dict in Simplex data structure can be simplified by elimate the jar whose coefficient is zero. This will be fixed later. """ """ Implementation of Simplex-based quantifier-free linear arithmetic solver. Reference: Bruno Dutertre and Leonardo de Moura. A Fast Linear-Arithmetic Solver for DP...
[ 37811, 198, 6425, 326, 262, 10537, 8633, 287, 3184, 11141, 1366, 4645, 460, 307, 27009, 416, 1288, 1920, 262, 17379, 3025, 35381, 198, 271, 6632, 13, 770, 481, 307, 5969, 1568, 13, 198, 37811, 198, 198, 37811, 198, 3546, 32851, 286, 3...
1.931749
20,410
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.contrib.sites.models import Site from django.db import models from django.urls import reverse from django.utils.translation import ugettext_lazy as _
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 6738, 11593, 37443, 834, 1330, 28000, 1098, 62, 17201, 874, 198, 198, 6738, 42625, 14208, 13, 3642, 822, 13, 49315, 13, 27530, 1330, 14413, 198, 6738, 42625, 14208, 13, ...
3.108108
74
#%% import torch # def se3_norm2(output, label): #Fill me
[ 2, 16626, 198, 11748, 28034, 628, 220, 220, 220, 220, 198, 220, 220, 220, 220, 198, 220, 220, 220, 1303, 825, 384, 18, 62, 27237, 17, 7, 22915, 11, 6167, 2599, 198, 220, 220, 220, 220, 220, 220, 220, 1303, 33762, 502, 628 ]
1.906977
43
import os from cms.plugin_pool import plugin_pool from cms.plugin_base import CMSPluginBase from django.utils.translation import ugettext_lazy as _ import models from django.conf import settings from filer.settings import FILER_ADMIN_ICON_SIZES, FILER_PUBLICMEDIA_PREFIX, FILER_PRIVATEMEDIA_PREFIX, FILER_STATICMEDIA_PR...
[ 11748, 28686, 198, 6738, 269, 907, 13, 33803, 62, 7742, 1330, 13877, 62, 7742, 198, 6738, 269, 907, 13, 33803, 62, 8692, 1330, 40773, 37233, 14881, 198, 6738, 42625, 14208, 13, 26791, 13, 41519, 1330, 334, 1136, 5239, 62, 75, 12582, 3...
2.92126
127
from django.conf import settings from django.conf.urls.static import static from django.contrib import admin from django.urls import path, include from finance.views import company_article_list, ChartData, dash, dash_ajax app_name = 'finance' urlpatterns = [ path('companies/', company_article_list, name='companies...
[ 6738, 42625, 14208, 13, 10414, 1330, 6460, 198, 6738, 42625, 14208, 13, 10414, 13, 6371, 82, 13, 12708, 1330, 9037, 198, 6738, 42625, 14208, 13, 3642, 822, 1330, 13169, 198, 6738, 42625, 14208, 13, 6371, 82, 1330, 3108, 11, 2291, 198, ...
2.546125
271
# 抓取二进制数据 import requests import sys import io sys.stdout = io.TextIOWrapper(sys.stdout.buffer,encoding='utf8') # Change default encoding to utf8 r=requests.get('http://github.com/favicon.ico') print(r.text) print(r.content) with open('favicon.ico','wb') as f: f.write(r.content)
[ 2, 10545, 232, 241, 20998, 244, 12859, 234, 32573, 249, 26344, 35050, 243, 108, 162, 235, 106, 198, 11748, 7007, 198, 11748, 25064, 198, 11748, 33245, 198, 17597, 13, 19282, 448, 796, 33245, 13, 8206, 40, 3913, 430, 2848, 7, 17597, 13...
2.308943
123
from django.urls import path from django.contrib.auth.views import ( LoginView, LogoutView, PasswordResetView, PasswordResetDoneView, PasswordResetConfirmView, PasswordResetCompleteView, ) from . import views as accounts_view app_name = "accounts" urlpatterns = [ path("login/", LoginView...
[ 6738, 42625, 14208, 13, 6371, 82, 1330, 3108, 198, 6738, 42625, 14208, 13, 3642, 822, 13, 18439, 13, 33571, 1330, 357, 198, 220, 220, 220, 23093, 7680, 11, 198, 220, 220, 220, 5972, 448, 7680, 11, 198, 220, 220, 220, 30275, 4965, 31...
2.48474
557
# @l2g 1855 python3 # [1855] Maximum Distance Between a Pair of Values # Difficulty: Medium # https://leetcode.com/problems/maximum-distance-between-a-pair-of-values # # You are given two non-increasing 0-indexed integer arrays nums1​​​​​​ and nums2​​​​​​. # A pair of indices (i,j),where 0 <= i < nums1.length and 0 <= ...
[ 2, 2488, 75, 17, 70, 1248, 2816, 21015, 18, 198, 2, 685, 1507, 2816, 60, 22246, 34600, 14307, 257, 39645, 286, 27068, 198, 2, 27419, 25, 13398, 198, 2, 3740, 1378, 293, 316, 8189, 13, 785, 14, 1676, 22143, 14, 47033, 12, 30246, 12...
2.422222
675
#!/usr/bin/python # (c) 2017, Giuseppe Pellegrino <mr.giuseppepellegrino@gmail.com> ANSIBLE_METADATA = {'metadata_version': '1.0', 'status': ['preview'], 'supported_by': 'community'} DOCUMENTATION = ''' --- module: rabbitmq_cluster_name short_description: Ensure RabbitMQ clust...
[ 2, 48443, 14629, 14, 8800, 14, 29412, 198, 198, 2, 357, 66, 8, 2177, 11, 8118, 1904, 27768, 12903, 1455, 81, 2879, 1279, 43395, 13, 12397, 1904, 381, 538, 417, 1455, 81, 2879, 31, 14816, 13, 785, 29, 198, 198, 15037, 34563, 62, 47...
2.674383
648
n=int(input()) i = 1 alllist = [] while i < n+1 : a,b=map(str, input().split()) c = [a ,int(b),i] alllist.append(c) i += 1 alllist.sort(key=lambda x:(x[0],-x[1]),reverse=True) alllist.reverse() j = 0 while j < n : print(alllist[j][2]) j += 1
[ 77, 28, 600, 7, 15414, 28955, 198, 72, 796, 352, 198, 282, 297, 396, 796, 17635, 198, 4514, 1312, 1279, 299, 10, 16, 1058, 198, 220, 257, 11, 65, 28, 8899, 7, 2536, 11, 5128, 22446, 35312, 28955, 198, 220, 269, 796, 685, 64, 837...
2.040323
124
# -*- coding: utf-8 -*- from __future__ import unicode_literals, print_function, division, absolute_import from belt.models import GisTimeStampedModel from django.contrib.gis.db import models from django.utils.encoding import python_2_unicode_compatible from gis_timezones.managers import TimeZoneManager @python_2_u...
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 6738, 11593, 37443, 834, 1330, 28000, 1098, 62, 17201, 874, 11, 3601, 62, 8818, 11, 7297, 11, 4112, 62, 11748, 198, 198, 6738, 10999, 13, 27530, 1330, 402, 271, 7575, ...
3.078534
191
# -*- coding: utf-8 -*- """ Created on Wed Jun 17 12:11:13 2020 @author: Jin Dou """ import os import warnings from configparser import ConfigParser,BasicInterpolation import yaml import re def isFolderOrFile(path:str): ''' not exist 0 dir 1 file 2 others -1 ''' out = -1 if checkExist...
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 37811, 198, 41972, 319, 3300, 7653, 1596, 1105, 25, 1157, 25, 1485, 12131, 198, 198, 31, 9800, 25, 17297, 5728, 198, 37811, 198, 198, 11748, 28686, 198, 11748, 14601, 19...
1.970588
374
from django.apps import AppConfig
[ 6738, 42625, 14208, 13, 18211, 1330, 2034, 16934, 628 ]
3.888889
9
# coding: utf-8 from poyonga import Groonga g = Groonga() _call_with_apachearrow( g, "select", table="Users", match_columns="name,location_str,description", query="東京", output_type="apache-arrow", output_columns="_key,name", ) # NOTE: Groonga's Apache Arrow output doesn't support drilld...
[ 2, 19617, 25, 3384, 69, 12, 23, 198, 6738, 279, 726, 44294, 1330, 10299, 44294, 628, 198, 198, 70, 796, 10299, 44294, 3419, 198, 198, 62, 13345, 62, 4480, 62, 43073, 6018, 7, 198, 220, 220, 220, 308, 11, 198, 220, 220, 220, 366, ...
2.52521
238
solver = Solution() print(solver.reverseWords2("the sky is blue"))
[ 198, 82, 14375, 796, 28186, 3419, 198, 4798, 7, 82, 14375, 13, 50188, 37117, 17, 7203, 1169, 6766, 318, 4171, 48774 ]
3.190476
21
import flax.nn as nn import jax.numpy as jnp def weight_standardize(w, axis, eps): """Subtracts mean and divides by standard deviation.""" w = w - jnp.mean(w, axis=axis) w = w / (jnp.std(w, axis=axis) + eps) return w class StdConv(nn.Conv): """Convolution with weight standardization.""" class ResidualUn...
[ 11748, 781, 897, 13, 20471, 355, 299, 77, 198, 11748, 474, 897, 13, 77, 32152, 355, 474, 37659, 628, 198, 4299, 3463, 62, 20307, 1096, 7, 86, 11, 16488, 11, 304, 862, 2599, 198, 220, 37227, 7004, 83, 974, 82, 1612, 290, 36319, 416...
2.666667
159
obj=car() obj .speed=200 obj.display()
[ 26801, 28, 7718, 3419, 198, 26801, 764, 12287, 28, 2167, 198, 26801, 13, 13812, 3419 ]
2.533333
15
from __future__ import print_function import json import keras from keras.datasets import mnist from keras.layers import Dense, Dropout from keras.models import Sequential from keras.optimizers import RMSprop from abstract_competition import AbstractCompetition class MnistKerasDnn(AbstractCompetition): """ Dee...
[ 6738, 11593, 37443, 834, 1330, 3601, 62, 8818, 198, 198, 11748, 33918, 198, 198, 11748, 41927, 292, 198, 6738, 41927, 292, 13, 19608, 292, 1039, 1330, 285, 77, 396, 198, 6738, 41927, 292, 13, 75, 6962, 1330, 360, 1072, 11, 14258, 448,...
3.419048
105
# flake8: noqa: F401 from .IsoFile import IsoFile from .DVDIndexers import DVDIndexer, D2VWitch, DGIndexNV, DGIndex from .dataclasses import * from .utils.spathlib import SPath from .utils import spathlib, types, utils
[ 2, 781, 539, 23, 25, 645, 20402, 25, 376, 21844, 198, 198, 6738, 764, 40, 568, 8979, 1330, 314, 568, 8979, 198, 198, 6738, 764, 39218, 15732, 364, 1330, 12490, 15732, 263, 11, 360, 17, 30133, 2007, 11, 46133, 15732, 27159, 11, 46133...
2.846154
78
from aws_cdk import (core ) from .ingestion_stack import IngestionStack from .data_store_stack import DataStoreStack
[ 6738, 3253, 82, 62, 10210, 74, 1330, 357, 7295, 1267, 198, 198, 6738, 764, 278, 395, 295, 62, 25558, 1330, 554, 3495, 295, 25896, 198, 6738, 764, 7890, 62, 8095, 62, 25558, 1330, 6060, 22658, 25896, 198 ]
3.189189
37
from tracardi.domain.event import Event from tracardi.domain.payload.tracker_payload import TrackerPayload from tracardi.domain.profile import Profile from tracardi.service.notation.dot_accessor import DotAccessor from tracardi.service.plugin.domain.console import Console
[ 6738, 491, 330, 22490, 13, 27830, 13, 15596, 1330, 8558, 198, 6738, 491, 330, 22490, 13, 27830, 13, 15577, 2220, 13, 2213, 10735, 62, 15577, 2220, 1330, 26885, 19197, 2220, 198, 6738, 491, 330, 22490, 13, 27830, 13, 13317, 1330, 13118, ...
3.653333
75
# Copyright 2018-2019 The Van Valen Lab at the California Institute of # Technology (Caltech), with support from the Paul Allen Family Foundation, # Google, & National Institutes of Health (NIH) under Grant U24CA224309-01. # All rights reserved. # # Licensed under a modified Apache License, Version 2.0 (the "License");...
[ 2, 15069, 2864, 12, 23344, 383, 6656, 3254, 268, 3498, 379, 262, 3442, 5136, 286, 198, 2, 8987, 357, 9771, 13670, 828, 351, 1104, 422, 262, 3362, 9659, 7884, 5693, 11, 198, 2, 3012, 11, 1222, 2351, 33656, 286, 3893, 357, 22125, 39, ...
4.262458
301
from turtle import Turtle
[ 6738, 28699, 1330, 33137, 628 ]
5.4
5
import cv2 import glob import numpy as np # from utils import salva_imagem_com_predicao import pandas as pd import matplotlib.pyplot as plt from skimage import transform from PIL import Image import os X = [] y = [] arquivos_de_gatos = "train/cat/" arquivos_nao_gatos = "train/noncat/" get_dataset(arquivos_de_g...
[ 11748, 269, 85, 17, 198, 11748, 15095, 198, 11748, 299, 32152, 355, 45941, 198, 2, 422, 3384, 4487, 1330, 3664, 6862, 62, 48466, 368, 62, 785, 62, 28764, 3970, 78, 198, 11748, 19798, 292, 355, 279, 67, 198, 11748, 2603, 29487, 8019, ...
2.471239
452
from typing import List from aspen.api.schemas.base import BaseResponse
[ 6738, 19720, 1330, 7343, 198, 198, 6738, 355, 3617, 13, 15042, 13, 1416, 4411, 292, 13, 8692, 1330, 7308, 31077, 628, 628 ]
3.454545
22
Mein neuer Code neue Codezeile
[ 5308, 259, 497, 15573, 6127, 198, 198, 710, 518, 6127, 2736, 576, 198 ]
2.461538
13
# -*- coding: UTF-8 -*- """ leetcode:1371.每个元音包含偶数次的最长子字符串 """
[ 2, 532, 9, 12, 19617, 25, 41002, 12, 23, 532, 9, 12, 198, 37811, 198, 293, 316, 8189, 25, 1485, 4869, 13, 162, 107, 237, 10310, 103, 17739, 225, 165, 253, 111, 44293, 227, 28938, 104, 161, 223, 35050, 243, 108, 162, 105, 94, 214...
1.04918
61
from __future__ import print_function import re import sys STRING_INPUT_LABEL = "(string)" class AllocationsConfig( object ): """ """ def __init__( self, default_year=None, strict_parsing=False, validate_dates=True ): """ """ self._default_year = default_year self._str...
[ 6738, 11593, 37443, 834, 1330, 3601, 62, 8818, 198, 198, 11748, 302, 198, 11748, 25064, 198, 198, 18601, 2751, 62, 1268, 30076, 62, 48780, 3698, 796, 30629, 8841, 16725, 198, 198, 4871, 1439, 20968, 16934, 7, 2134, 15179, 198, 220, 220,...
2.284483
11,252
import toml, json, os, io, base64 from django.core.management.base import BaseCommand from django.conf import settings from biostar.recipes.models import Analysis, Project, Data, image_path, Access from biostar.accounts.models import User, Profile from biostar.recipes import util, auth
[ 11748, 284, 4029, 11, 33918, 11, 28686, 11, 33245, 11, 2779, 2414, 198, 6738, 42625, 14208, 13, 7295, 13, 27604, 13, 8692, 1330, 7308, 21575, 198, 6738, 42625, 14208, 13, 10414, 1330, 6460, 198, 6738, 3182, 455, 283, 13, 8344, 18636, ...
3.430233
86
from modules.pentgoGUI import play # Lancer le jeu Pentago en interface graphique play()
[ 6738, 13103, 13, 16923, 2188, 40156, 1330, 711, 198, 198, 2, 406, 8250, 443, 11223, 84, 9696, 3839, 551, 7071, 4823, 2350, 198, 1759, 3419 ]
3.56
25
#!/usr/bin/env python # -*- coding: utf-8 -*- # # Written by Chris Arceneaux # GitHub: https://github.com/carceneaux # Email: carceneaux@thinksis.com # Website: http://arsano.ninja # # Note: Example code For testing purposes only # # This code has been released under the terms of the Apache-2.0 license # http://opensou...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 198, 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 2, 198, 2, 22503, 416, 5180, 10173, 1734, 14644, 198, 2, 21722, 25, 3740, 1378, 12567, 13, 785, 14, 66, 5605, 1734, ...
2.146715
2,222
#! /usr/bin/env python3 # Copyright 2017 John Hanley. # # Permission is hereby granted, free of charge, to any person obtaining a # copy of this software and associated documentation files (the "Software"), # to deal in the Software without restriction, including without limitation # the rights to use, copy, modify, m...
[ 2, 0, 1220, 14629, 14, 8800, 14, 24330, 21015, 18, 198, 198, 2, 15069, 2177, 1757, 9530, 1636, 13, 198, 2, 198, 2, 2448, 3411, 318, 29376, 7520, 11, 1479, 286, 3877, 11, 284, 597, 1048, 16727, 257, 198, 2, 4866, 286, 428, 3788, ...
2.727509
1,156
# -*- coding: utf-8 -*- """ Root lattice realizations """ # **************************************************************************** # Copyright (C) 2007-2013 Nicolas M. Thiery <nthiery at users.sf.net> # 2012 Nicolas Borie <nicolas.borie at univ-mlv.fr> # # (with contributions...
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 37811, 198, 30016, 47240, 501, 1103, 4582, 198, 37811, 198, 2, 41906, 17174, 46068, 198, 2, 220, 220, 220, 220, 220, 220, 15069, 357, 34, 8, 4343, 12, 6390, 29737, 337...
2.600423
2,365
#!/usr/bin/env python3.9 """ This program gets the number of runs that a given player (argv[1]) has set. """ import asyncio import concurrent.futures from asyncio.events import AbstractEventLoop from itertools import count from sys import argv, exit, stderr from typing import Awaitable, Iterator import requests from...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 18, 13, 24, 198, 198, 37811, 198, 1212, 1430, 3011, 262, 1271, 286, 4539, 326, 257, 1813, 2137, 357, 853, 85, 58, 16, 12962, 468, 900, 13, 198, 37811, 198, 198, 11748, 30351, 952, 198, ...
2.527731
595
from sklearn.model_selection import *
[ 6738, 1341, 35720, 13, 19849, 62, 49283, 1330, 1635 ]
4.111111
9
# Copyright (C) 2020 Intel Corporation # # SPDX-License-Identifier: MIT import os import cv2 import numpy as np from skimage.measure import approximate_polygon, find_contours from model_loader import ModelLoader
[ 2, 15069, 357, 34, 8, 12131, 8180, 10501, 198, 2, 198, 2, 30628, 55, 12, 34156, 12, 33234, 7483, 25, 17168, 198, 198, 11748, 28686, 198, 11748, 269, 85, 17, 198, 11748, 299, 32152, 355, 45941, 198, 6738, 1341, 9060, 13, 1326, 5015, ...
3.47541
61
import torch from overrides import overrides from torch.nn.parameter import Parameter from allennlp.modules.similarity_functions.similarity_function import SimilarityFunction @SimilarityFunction.register("full_add_composition") class FullAddSimilarity(SimilarityFunction): """ This similarity function comput...
[ 11748, 28034, 198, 198, 6738, 23170, 1460, 1330, 23170, 1460, 198, 6738, 28034, 13, 20471, 13, 17143, 2357, 1330, 25139, 2357, 198, 198, 6738, 477, 1697, 34431, 13, 18170, 13, 38610, 414, 62, 12543, 2733, 13, 38610, 414, 62, 8818, 1330,...
3.105727
227
# Copyright 2019 Huawei Technologies Co., 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 or a...
[ 2, 15069, 13130, 43208, 21852, 1766, 1539, 12052, 201, 198, 2, 201, 198, 2, 49962, 739, 262, 24843, 13789, 11, 10628, 362, 13, 15, 357, 1169, 366, 34156, 15341, 201, 198, 2, 345, 743, 407, 779, 428, 2393, 2845, 287, 11846, 351, 262,...
3.414545
275
import importlib import os import socket import sys import traceback from boring import SERVER_SOFTWARE from boring.exception import HttpException from boring.http import Response from boring.middleware import StaticsHandler def getapp(app): ''' get wsgi callable object''' try: module, func = app.sp...
[ 11748, 1330, 8019, 198, 11748, 28686, 198, 11748, 17802, 198, 11748, 25064, 198, 11748, 12854, 1891, 198, 198, 6738, 14262, 1330, 18871, 5959, 62, 15821, 37485, 198, 6738, 14262, 13, 1069, 4516, 1330, 367, 29281, 16922, 198, 6738, 14262, ...
3.092857
140
import ssl from celery_connectors.utils import ev # end of build_ssl_options
[ 11748, 264, 6649, 198, 6738, 18725, 1924, 62, 8443, 669, 13, 26791, 1330, 819, 198, 198, 2, 886, 286, 1382, 62, 45163, 62, 25811, 198 ]
3.12
25
#!/bin/env python # # xls_output.py: functions for writing analysis results to Excel files # Copyright (C) University of Manchester 2015-2019 Peter Briggs, Leo Zeef # & Ian Donaldson # """ xls_output.py Functions for outputting analysis results to XLSX spreadsheet """ import datetime import xlsxwriter imp...
[ 2, 48443, 8800, 14, 24330, 21015, 198, 2, 198, 2, 220, 220, 220, 220, 2124, 7278, 62, 22915, 13, 9078, 25, 5499, 329, 3597, 3781, 2482, 284, 24134, 3696, 198, 2, 220, 220, 220, 220, 15069, 357, 34, 8, 2059, 286, 9502, 1853, 12, ...
1.966142
4,578
from subprocess import CalledProcessError import pytest from hooks.post_gen_project import ( check_command_exists, initial_commit, install_virtualenv, setup_github, setup_pre_commit, ) @pytest.mark.parametrize( "side_effect", [ FileNotFoundError(), CalledProcessError(1, "...
[ 6738, 850, 14681, 1330, 34099, 18709, 12331, 198, 198, 11748, 12972, 9288, 198, 198, 6738, 26569, 13, 7353, 62, 5235, 62, 16302, 1330, 357, 198, 220, 220, 220, 2198, 62, 21812, 62, 1069, 1023, 11, 198, 220, 220, 220, 4238, 62, 41509, ...
2.442029
138
from setuptools import setup setup( name='geocoderpl', version='1.1', description='GeocoderPL is an application written in Python, which can be used for geocoding address points in ' + 'Poland along with the possibility to display basic information about a given address point and the ' + ...
[ 6738, 900, 37623, 10141, 1330, 9058, 198, 198, 40406, 7, 198, 220, 220, 220, 1438, 11639, 469, 420, 12342, 489, 3256, 198, 220, 220, 220, 2196, 11639, 16, 13, 16, 3256, 198, 220, 220, 220, 6764, 11639, 10082, 420, 12342, 6489, 318, ...
2.638814
371
from django.contrib.auth.models import User from django.db import models from django_extensions.db.models import TimeStampedModel from cities_light.abstract_models import (AbstractCity, AbstractRegion, AbstractCountry, AbstractSubRegion) from cities_light.receivers import connect_default_signals connect_default_s...
[ 6738, 42625, 14208, 13, 3642, 822, 13, 18439, 13, 27530, 1330, 11787, 198, 6738, 42625, 14208, 13, 9945, 1330, 4981, 198, 6738, 42625, 14208, 62, 2302, 5736, 13, 9945, 13, 27530, 1330, 3862, 1273, 13322, 17633, 198, 6738, 4736, 62, 2971...
3.659341
91
from setuptools import setup setup(name='kapre', version='0.1.2.1', description='Kapre: Keras Audio Preprocessors. Keras layers for audio pre-processing in deep learning', author='Keunwoo Choi', url='http://github.com/keunwoo/kapre/', download_url='http://github.com/keunwoochoi/kapre/rele...
[ 6738, 900, 37623, 10141, 1330, 9058, 198, 198, 40406, 7, 3672, 11639, 74, 499, 260, 3256, 198, 220, 220, 220, 220, 220, 2196, 11639, 15, 13, 16, 13, 17, 13, 16, 3256, 198, 220, 220, 220, 220, 220, 6764, 11639, 42, 499, 260, 25, ...
2.108911
303
ID_TO_LABEL = \ {'100028': 0, '100082': 1, '100167': 2, '100191': 3, '100192': 4, '100207': 5, '10022': 6, '100230': 7, '100280': 8, '100338': 9, '100363': 10, '100372': 11, '100407': 12, '100474': 13, '100484': 14, '100485': 15, '10050...
[ 2389, 62, 10468, 62, 48780, 3698, 796, 3467, 198, 220, 220, 220, 1391, 6, 12825, 2078, 10354, 657, 11, 198, 220, 220, 220, 220, 705, 12825, 6469, 10354, 352, 11, 198, 220, 220, 220, 220, 705, 3064, 21940, 10354, 362, 11, 198, 220, ...
1.654187
77,646
# -*- coding:utf-8 -*- import os import argparse import paddle import paddlehub as hub from paddlehub.module.module import serving, moduleinfo, runnable from paddlenlp import Taskflow @moduleinfo( name="nptag", version="1.0.0", summary="", author="Baidu", author_email="", type="nlp/text_to_kn...
[ 2, 532, 9, 12, 19617, 25, 40477, 12, 23, 532, 9, 12, 198, 11748, 28686, 198, 11748, 1822, 29572, 198, 198, 11748, 39517, 198, 11748, 39517, 40140, 355, 12575, 198, 6738, 39517, 40140, 13, 21412, 13, 21412, 1330, 7351, 11, 8265, 10951,...
2.637681
138
from typing import Generator if __name__ == "__main__": for i in fib(50): print(i)
[ 6738, 19720, 1330, 35986, 628, 198, 198, 361, 11593, 3672, 834, 6624, 366, 834, 12417, 834, 1298, 198, 220, 220, 220, 329, 1312, 287, 12900, 7, 1120, 2599, 198, 220, 220, 220, 220, 220, 220, 220, 3601, 7, 72, 8, 198 ]
2.390244
41
# author: tthomas@metamorphsoftware.com # date: 2017-06-05 # description: automations script for converting '.m' files to python wrappers import re import glob if __name__ == '__main__': component_name = "" params_orig = list() params_new = list() unknowns_orig = list() unknowns_new = list() ...
[ 2, 1772, 25, 256, 400, 16911, 31, 4164, 37670, 43776, 13, 785, 198, 2, 3128, 25, 220, 220, 2177, 12, 3312, 12, 2713, 198, 2, 6764, 25, 3557, 602, 4226, 329, 23202, 45302, 76, 6, 3696, 284, 21015, 7917, 11799, 198, 198, 11748, 302,...
1.643126
2,917
import sys, os from PySide2.QtUiTools import QUiLoader #allows us to import .ui files from PySide2.QtWidgets import QApplication, QLineEdit, QPushButton, QFileDialog, QAction, QSlider, QMouseEventTransition, QLabel from PySide2.QtCore import QFile, QObject, QUrl from PySide2.QtMultimedia import QMediaPlayer from PySide...
[ 11748, 25064, 11, 28686, 198, 6738, 9485, 24819, 17, 13, 48, 83, 52, 72, 33637, 1330, 19604, 72, 17401, 1303, 47205, 514, 284, 1330, 764, 9019, 3696, 198, 6738, 9485, 24819, 17, 13, 48, 83, 54, 312, 11407, 1330, 1195, 23416, 11, 119...
2.589109
202
from RL.utils.util_fns import update_mean_std import logging import sys from typing import List import numpy as np import RL ids = 0 logger = logging.getLogger(__name__) ldebug = logger.isEnabledFor(logging.DEBUG) class ExperienceBuffer: '''A circular buffer to hold experiences''' @property @propert...
[ 6738, 45715, 13, 26791, 13, 22602, 62, 69, 5907, 1330, 4296, 62, 32604, 62, 19282, 198, 11748, 18931, 198, 11748, 25064, 198, 6738, 19720, 1330, 7343, 198, 198, 11748, 299, 32152, 355, 45941, 198, 198, 11748, 45715, 198, 198, 2340, 796,...
2.230108
930
# -*- coding: utf-8 -*- """ Do statistics on the transcriptomic type and plot low-dimensional embeddings. """ import pandas as pd import matplotlib.pyplot as plt import seaborn as sns import os from scipy.stats import ranksums plt.rcParams["svg.fonttype"] = "none" sns.set( context="paper", style="ticks", ...
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 37811, 198, 5211, 7869, 319, 262, 14687, 10179, 2099, 290, 7110, 1877, 12, 19577, 198, 20521, 67, 654, 13, 198, 37811, 628, 198, 11748, 19798, 292, 355, 279, 67, 198, ...
2.026263
1,980
#!/usr/bin/env python # -*- coding: utf-8 -*- """ Module that contains the command line app. Why does this file exist, and why not put this in __main__? You might be tempted to import things from __main__ later, but that will cause problems: the code will get executed twice: - When you run `python -mapex` pyt...
[ 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, 198, 26796, 326, 4909, 262, 3141, 1627, 598, 13, 198, 198, 5195, 857, 428, 2393, 2152, 11, 290, 1521, 407...
3.005682
704
# jsb/plugs/core/topic.py # # """ manage topics. """ ## jsb imports from jsb.lib.commands import cmnds from jsb.lib.examples import examples ## basic imports import time ## checktopicmode function def checktopicmode(bot, ievent): """ callback for change in channel topic mode """ chan = ievent.channel ...
[ 2, 474, 36299, 14, 489, 10339, 14, 7295, 14, 26652, 13, 9078, 198, 2, 198, 2, 198, 198, 37811, 6687, 10233, 13, 37227, 198, 198, 2235, 474, 36299, 17944, 198, 198, 6738, 474, 36299, 13, 8019, 13, 9503, 1746, 1330, 12067, 358, 82, ...
2.707536
2,561
import json from collections import namedtuple from typing import Dict, NamedTuple def dict_to_object(data_dict: Dict) -> NamedTuple: """Converts dict to an object""" try: Data = namedtuple("Data", " ".join(data_dict.keys())) except AttributeError: raise TypeError("Must be a dict.") ...
[ 11748, 33918, 198, 198, 6738, 17268, 1330, 3706, 83, 29291, 198, 198, 6738, 19720, 1330, 360, 713, 11, 34441, 51, 29291, 628, 628, 198, 4299, 8633, 62, 1462, 62, 15252, 7, 7890, 62, 11600, 25, 360, 713, 8, 4613, 34441, 51, 29291, 25...
2.491909
309
# Copyright (c) Facebook, Inc. and its affiliates. # This source code is licensed under the MIT license found in the # LICENSE file in the root directory of this source tree. import unittest from prepare_vads import split_vad if __name__ == '__main__': unittest.main()
[ 2, 15069, 357, 66, 8, 3203, 11, 3457, 13, 290, 663, 29116, 13, 198, 198, 2, 770, 2723, 2438, 318, 11971, 739, 262, 17168, 5964, 1043, 287, 262, 198, 2, 38559, 24290, 2393, 287, 262, 6808, 8619, 286, 428, 2723, 5509, 13, 198, 198, ...
3.349398
83
# Licensed under a 3-clause BSD style license - see LICENSE.rst import numpy as np from .. import core as erfa def test_erfa_wrapper(): """ Runs a set of tests that mostly make sure vectorization is working as expected """ jd = np.linspace(2456855.5, 2456855.5+1.0/24.0/60.0, 60*2+1) ra = np....
[ 2, 49962, 739, 257, 513, 12, 565, 682, 347, 10305, 3918, 5964, 532, 766, 38559, 24290, 13, 81, 301, 198, 198, 11748, 299, 32152, 355, 45941, 198, 6738, 11485, 1330, 4755, 355, 1931, 13331, 628, 198, 4299, 1332, 62, 263, 13331, 62, 4...
1.948682
2,124
import RPi.GPIO as GPIO import time import re import socket import sys import traceback import paho.mqtt.client as mqtt from threading import Thread
[ 11748, 25812, 72, 13, 16960, 9399, 355, 50143, 201, 198, 11748, 640, 201, 198, 11748, 302, 201, 198, 11748, 17802, 201, 198, 11748, 25064, 201, 198, 11748, 12854, 1891, 201, 198, 201, 198, 11748, 279, 17108, 13, 76, 80, 926, 13, 16366...
2.890909
55
# coding: utf-8 # # Copyright 2014 The Oppia Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless requi...
[ 2, 19617, 25, 3384, 69, 12, 23, 198, 2, 198, 2, 15069, 1946, 383, 9385, 544, 46665, 13, 1439, 6923, 33876, 13, 198, 2, 198, 2, 49962, 739, 262, 24843, 13789, 11, 10628, 362, 13, 15, 357, 1169, 366, 34156, 15341, 198, 2, 345, 743...
3.601626
369
from tflyrics.text_provider import TextProvider import pytest class MockProvider(TextProvider): """A mock TextProvider.""" def __init__(self, mock_arg: object): """Create a MockProvider object.""" super(MockProvider, self).__init__() self.mock_arg = mock_arg def test_abstractnes...
[ 6738, 256, 12254, 10466, 13, 5239, 62, 15234, 1304, 1330, 8255, 29495, 198, 11748, 12972, 9288, 628, 198, 198, 4871, 44123, 29495, 7, 8206, 29495, 2599, 198, 220, 220, 220, 37227, 32, 15290, 8255, 29495, 526, 15931, 628, 220, 220, 220, ...
2.799087
219
from setuptools import setup setup(name='ledger', version='1.6', description='Ledger Payments App', url='https://github.com/dbca-wa/ledger', author='Department of Parks and Wildlife', author_email='asi@dbca.wa.gov.au', license='BSD', packages=['ledger','ledger.accounts','ledge...
[ 6738, 900, 37623, 10141, 1330, 9058, 198, 198, 40406, 7, 3672, 11639, 992, 1362, 3256, 198, 220, 220, 220, 220, 220, 2196, 11639, 16, 13, 21, 3256, 198, 220, 220, 220, 220, 220, 6764, 11639, 42416, 1362, 41318, 2034, 3256, 198, 220, ...
2.239234
1,045
import unittest import six import requests from tests.bandwidth.helpers import get_account_client as get_client from tests.bandwidth.helpers import create_response, AUTH, headers if six.PY3: from unittest.mock import patch else: from mock import patch from bandwidth_old.voice import Client
[ 11748, 555, 715, 395, 198, 11748, 2237, 198, 11748, 7007, 198, 6738, 5254, 13, 3903, 10394, 13, 16794, 364, 1330, 651, 62, 23317, 62, 16366, 355, 651, 62, 16366, 198, 6738, 5254, 13, 3903, 10394, 13, 16794, 364, 1330, 2251, 62, 26209,...
3.382022
89
import sys, argparse, string import csv import warnings from sklearn.metrics import f1_score # Read a Tab-separated ImageID - Caption pair file # Print 1-level key-value dictionary, sorted (with numeric key) # Main if __name__ == '__main__': main(sys.argv[1:])
[ 11748, 25064, 11, 1822, 29572, 11, 4731, 198, 11748, 269, 21370, 198, 11748, 14601, 198, 198, 6738, 1341, 35720, 13, 4164, 10466, 1330, 277, 16, 62, 26675, 628, 198, 2, 4149, 257, 16904, 12, 25512, 515, 7412, 2389, 532, 11260, 5166, 2...
3.011111
90
''' Given a binary tree containing digits from 0-9 only, each root-to-leaf path could represent a number. An example is the root-to-leaf path 1->2->3 which represents the number 123. Find the total sum of all root-to-leaf numbers. For example, 1 / \ 2 3 The root-to-leaf path 1->2 represents the number 12....
[ 7061, 6, 198, 15056, 257, 13934, 5509, 7268, 19561, 422, 657, 12, 24, 691, 11, 1123, 6808, 12, 1462, 12, 33201, 3108, 714, 2380, 257, 1271, 13, 198, 198, 2025, 1672, 318, 262, 6808, 12, 1462, 12, 33201, 3108, 352, 3784, 17, 3784, ...
3.216495
194
""" Common utilities for logging, command line processing and more. """ from .logger import Logger
[ 37811, 8070, 20081, 329, 18931, 11, 3141, 1627, 7587, 290, 517, 13, 37227, 198, 198, 6738, 764, 6404, 1362, 1330, 5972, 1362, 198 ]
4.347826
23
"""Base Entity definition for SmartWeather Integration.""" from homeassistant.helpers.entity import Entity import homeassistant.helpers.device_registry as dr from typing import Dict, List from homeassistant.const import ( ATTR_ATTRIBUTION, ATTR_FRIENDLY_NAME, ) from .const import ( DOMAIN, ATTR_BRAND, ...
[ 37811, 14881, 20885, 6770, 329, 10880, 41865, 38410, 526, 15931, 198, 6738, 1363, 562, 10167, 13, 16794, 364, 13, 26858, 1330, 20885, 198, 11748, 1363, 562, 10167, 13, 16794, 364, 13, 25202, 62, 2301, 4592, 355, 1553, 198, 6738, 19720, ...
2.330418
1,029
import time import numpy as np import tensorflow as tf import collections from deepchem.utils.save import log from deepchem.metrics import to_one_hot from deepchem.metrics import from_one_hot from deepchem.models import KerasModel, layers from deepchem.models.losses import L2Loss, SparseSoftmaxCrossEntropy from deepch...
[ 11748, 640, 198, 11748, 299, 32152, 355, 45941, 198, 11748, 11192, 273, 11125, 355, 48700, 198, 11748, 17268, 198, 198, 6738, 2769, 15245, 13, 26791, 13, 21928, 1330, 2604, 198, 6738, 2769, 15245, 13, 4164, 10466, 1330, 284, 62, 505, 62...
2.411943
3,952
import os import sys from subprocess import call from cv2 import VideoCapture, cvtColor, COLOR_BGR2RGB from PyQt5 import QtCore, QtWidgets from PyQt5.QtWidgets import QApplication from PyQt5.QtCore import Qt, QTimer from PyQt5.QtGui import QImage, QPixmap, QIcon from PyQt5.QtWidgets import QMainWindow, QFileDia...
[ 11748, 28686, 201, 198, 11748, 25064, 201, 198, 6738, 850, 14681, 1330, 869, 201, 198, 6738, 269, 85, 17, 1330, 7623, 49630, 11, 269, 36540, 10258, 11, 20444, 1581, 62, 33, 10761, 17, 36982, 201, 198, 6738, 9485, 48, 83, 20, 1330, 3...
2.387387
222
from django.contrib import admin from django.utils.translation import gettext_lazy as _ from parler.admin import TranslatableAdmin from bluebottle.impact.models import ImpactType, ImpactGoal admin.site.register(ImpactType, ImpactTypeAdmin)
[ 6738, 42625, 14208, 13, 3642, 822, 1330, 13169, 198, 6738, 42625, 14208, 13, 26791, 13, 41519, 1330, 651, 5239, 62, 75, 12582, 355, 4808, 198, 198, 6738, 1582, 1754, 13, 28482, 1330, 3602, 49009, 46787, 198, 198, 6738, 4171, 10985, 293,...
3.565217
69
from __future__ import print_function import numpy as np from sklearn.preprocessing import normalize import preprocessing
[ 6738, 11593, 37443, 834, 1330, 3601, 62, 8818, 198, 11748, 299, 32152, 355, 45941, 198, 6738, 1341, 35720, 13, 3866, 36948, 1330, 3487, 1096, 198, 198, 11748, 662, 36948, 628 ]
4.133333
30
import os import sys import subprocess if __name__ == "__main__": sys.exit(main(sys.argv[1:]))
[ 11748, 28686, 198, 11748, 25064, 198, 11748, 850, 14681, 628, 198, 198, 361, 11593, 3672, 834, 6624, 366, 834, 12417, 834, 1298, 198, 220, 220, 220, 25064, 13, 37023, 7, 12417, 7, 17597, 13, 853, 85, 58, 16, 47715, 4008, 198 ]
2.487805
41
# Generated by Django 3.1.3 on 2021-01-08 09:54 from django.db import migrations, models
[ 2, 2980, 515, 416, 37770, 513, 13, 16, 13, 18, 319, 33448, 12, 486, 12, 2919, 7769, 25, 4051, 198, 198, 6738, 42625, 14208, 13, 9945, 1330, 15720, 602, 11, 4981, 628 ]
2.84375
32
# Generated by Django 2.1.15 on 2020-04-22 07:01 from django.db import migrations, models
[ 2, 2980, 515, 416, 37770, 362, 13, 16, 13, 1314, 319, 12131, 12, 3023, 12, 1828, 8753, 25, 486, 198, 198, 6738, 42625, 14208, 13, 9945, 1330, 15720, 602, 11, 4981, 628 ]
2.875
32
from ex13_1 import * from ex13_2 import * from collections import Counter # I have downloaded _Pride and Prejudice_ from Gutenberg website and modified header with '#' def count_number_frequency(l): '''Print the 20 most frequently used words in the book''' c = Counter(l) print(c.most_common(20)) if __name__ == '...
[ 6738, 409, 1485, 62, 16, 1330, 1635, 198, 6738, 409, 1485, 62, 17, 1330, 1635, 198, 198, 6738, 17268, 1330, 15034, 198, 2, 314, 423, 15680, 4808, 6836, 485, 290, 3771, 10456, 501, 62, 422, 20336, 3052, 290, 9518, 13639, 351, 705, 2,...
2.954545
198
import argparse # Data Loading import pickle from tensorflow.keras.backend import squeeze from global_utils import * import models random.seed(42) if __name__ == "__main__": print("TensorFlow version: {}".format(tf.__version__)) print("Eager execution: {}".format(tf.executing_eagerly())) parser = argp...
[ 11748, 1822, 29572, 198, 198, 2, 6060, 12320, 198, 11748, 2298, 293, 198, 198, 6738, 11192, 273, 11125, 13, 6122, 292, 13, 1891, 437, 1330, 21229, 198, 6738, 3298, 62, 26791, 1330, 1635, 198, 11748, 4981, 198, 198, 25120, 13, 28826, 7...
2.270903
2,093
# зодиак + Выигрышные номера тиража + предыдущий тираж к примеру 2000
[ 2, 12466, 115, 25443, 112, 18849, 16142, 31583, 1343, 12466, 240, 45035, 18849, 140, 111, 21169, 45035, 141, 230, 22177, 45035, 16843, 12466, 121, 25443, 120, 16843, 21169, 16142, 220, 20375, 18849, 21169, 16142, 140, 114, 16142, 1343, 1246...
1.014286
70
#!/usr/bin/env python3 # coding: utf-8 ''' Programme : heure.py version 1.0 Date : 19-12-2017 Auteur : Jullien Arnaud Matériel utilisé : Fonctionnement programme : ''' from raspiomix import Raspiomix from datetime import datetime from threading import Thread import time from CAcqPuissance import CAcqPuissa...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 18, 198, 2, 19617, 25, 3384, 69, 12, 23, 198, 7061, 6, 198, 15167, 1326, 1058, 339, 495, 13, 9078, 220, 220, 220, 220, 220, 220, 2196, 352, 13, 15, 198, 10430, 1058, 678, 12, 1065, 12...
2.26455
189
import torch from torch.utils.data import Dataset import json import numpy as np import os from PIL import Image from torchvision import transforms as T from .ray_utils import * import torchvision.transforms as T from torch.utils import data import torch from tqdm import tqdm import numpy as np import random im...
[ 11748, 28034, 198, 6738, 28034, 13, 26791, 13, 7890, 1330, 16092, 292, 316, 198, 11748, 33918, 198, 11748, 299, 32152, 355, 45941, 198, 11748, 28686, 198, 6738, 350, 4146, 1330, 7412, 198, 6738, 28034, 10178, 1330, 31408, 355, 309, 198, ...
3.375
136
# This is the bokeh_magic loader and installer, if you want to see the # bokeh_magic source code check the following url: # https://github.com/bokeh/bokeh/blob/master/extensions/bokeh_magic.py from __future__ import print_function from IPython import get_ipython def install_bokeh_magic(): "An alternative way to...
[ 2, 770, 318, 262, 1489, 365, 71, 62, 32707, 40213, 290, 29124, 11, 611, 345, 765, 284, 766, 262, 220, 198, 2, 1489, 365, 71, 62, 32707, 2723, 2438, 2198, 262, 1708, 19016, 25, 198, 2, 3740, 1378, 12567, 13, 785, 14, 65, 2088, 71...
2.812903
310
from ast import literal_eval from typing import Dict, List import click from pygitguardian.models import Detail from ggshield.text_utils import STYLE, display_error, format_text, pluralize
[ 6738, 6468, 1330, 18875, 62, 18206, 198, 6738, 19720, 1330, 360, 713, 11, 7343, 198, 198, 11748, 3904, 198, 6738, 12972, 18300, 14864, 666, 13, 27530, 1330, 42585, 198, 198, 6738, 308, 70, 26662, 13, 5239, 62, 26791, 1330, 3563, 56, 2...
3.555556
54
from app import db
[ 6738, 598, 1330, 20613, 198 ]
3.8
5
from django.apps import AppConfig
[ 6738, 42625, 14208, 13, 18211, 1330, 2034, 16934, 628 ]
3.888889
9