content
stringlengths
1
1.04M
input_ids
listlengths
1
774k
ratio_char_token
float64
0.38
22.9
token_count
int64
1
774k
import base64 import hashlib import hmac import json from json import JSONDecodeError from typing import Tuple, Callable, List, Optional from agora import solana from agora.client import Environment from agora.error import WebhookRequestError from .create_account import CreateAccountRequest, CreateAccountResponse from...
[ 11748, 2779, 2414, 198, 11748, 12234, 8019, 198, 11748, 289, 20285, 198, 11748, 33918, 198, 6738, 33918, 1330, 19449, 10707, 1098, 12331, 198, 6738, 19720, 1330, 309, 29291, 11, 4889, 540, 11, 7343, 11, 32233, 198, 198, 6738, 556, 5799, ...
2.522564
2,371
from pyladies_wordcount import * import re
[ 6738, 279, 2645, 50192, 62, 4775, 9127, 1330, 1635, 198, 11748, 302, 628, 628, 198 ]
3.133333
15
# coding: utf-8 from __future__ import absolute_import from flask import json from six import BytesIO from g2lserver.models.grammar import Grammar # noqa: E501 from g2lserver.models.grammar_id import GrammarID # noqa: E501 from g2lserver.test import BaseTestCase class TestGrammarController(BaseTestCase): """...
[ 2, 19617, 25, 3384, 69, 12, 23, 198, 198, 6738, 11593, 37443, 834, 1330, 4112, 62, 11748, 198, 198, 6738, 42903, 1330, 33918, 198, 6738, 2237, 1330, 2750, 4879, 9399, 198, 198, 6738, 308, 17, 75, 15388, 13, 27530, 13, 4546, 3876, 13...
2.290262
534
from django.urls import path from . import views urlpatterns = [ path('', views.CourseListView.as_view(), name='course_list'), path('subject/<slug:subject>/', views.CourseListView.as_view(), name='course_list_subject'), path('course/<slug:slug>/', views.Course...
[ 6738, 42625, 14208, 13, 6371, 82, 1330, 3108, 198, 6738, 764, 1330, 5009, 198, 198, 6371, 33279, 82, 796, 685, 198, 220, 220, 220, 3108, 10786, 3256, 198, 220, 220, 220, 220, 220, 220, 220, 220, 5009, 13, 49046, 8053, 7680, 13, 292,...
2.209424
382
import itertools import pandas as pd from meerkat import DataPanel from meerkat.columns.prediction_column import ClassificationOutputColumn from robustnessgym.core.model import Model from robustnessgym.tasks.task import ExtractiveQuestionAnswering DATASETS = [ ("squad", "validation"), ] # 'squad' 'validation'...
[ 11748, 340, 861, 10141, 198, 198, 11748, 19798, 292, 355, 279, 67, 198, 6738, 502, 9587, 265, 1330, 6060, 26639, 198, 6738, 502, 9587, 265, 13, 28665, 82, 13, 28764, 2867, 62, 28665, 1330, 40984, 26410, 39470, 198, 198, 6738, 12373, 1...
2.369318
352
import numpy as np "***Run Length Analysis***" #returns an array of numbers for each consecutive monomer; to be used in histogram plotting "***Monomer composition analysis***" #Returns a list of the percent compostion of each monomer, in monomerID order "***lambda factor calculation***" def theta_polymer(polymer_in...
[ 11748, 299, 32152, 355, 45941, 198, 198, 1, 8162, 10987, 22313, 14691, 8162, 1, 198, 198, 2, 7783, 82, 281, 7177, 286, 3146, 329, 1123, 12785, 937, 12057, 26, 284, 307, 973, 287, 1554, 21857, 29353, 198, 198, 1, 8162, 44, 6326, 263,...
2.882038
746
from scholrroles import registry from scholrroles.models import Role, Permission
[ 6738, 5513, 349, 81, 305, 829, 1330, 20478, 198, 6738, 5513, 349, 81, 305, 829, 13, 27530, 1330, 20934, 11, 2448, 3411, 198 ]
3.521739
23
# Copyright 2014 Rackspace, Inc. # Copyright 2015 Red Hat, Inc. # All Rights Reserved. # # Copyright 2020-2021 Hewlett Packard Enterprise Development LP # # 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...
[ 2, 15069, 1946, 37927, 13200, 11, 3457, 13, 198, 2, 15069, 1853, 2297, 10983, 11, 3457, 13, 198, 2, 1439, 6923, 33876, 13, 198, 2, 198, 2, 15069, 12131, 12, 1238, 2481, 30446, 15503, 6400, 446, 14973, 7712, 18470, 198, 2, 198, 2, ...
3.58427
445
import scrapy import requests import json from crawler.items import CrawlerItem
[ 11748, 15881, 88, 198, 11748, 7007, 198, 11748, 33918, 198, 6738, 27784, 1754, 13, 23814, 1330, 20177, 1754, 7449, 198 ]
4
20
###################################################################### # Author: The Spring 2019 226 Class! # # Assignment: T04: Adventure in Gitland # # Purpose: To recreate a choose-your-own-adventure style game # by refactoring T01. # # Each "twist" in the story is from a different group. The resulting story # will ...
[ 29113, 29113, 4242, 2235, 198, 2, 6434, 25, 383, 8225, 13130, 31510, 5016, 0, 198, 2, 198, 2, 50144, 25, 309, 3023, 25, 9553, 287, 15151, 1044, 198, 2, 198, 2, 32039, 25, 1675, 32049, 257, 3853, 12, 14108, 12, 593, 12, 324, 5388, ...
3.011866
4,972
import api_keys import json from TwitterAPI import TwitterAPI api = TwitterAPI(api_keys.consumer_key, api_keys.consumer_secret, api_keys.access_token, api_keys.access_secret) hashtag = 'corona' try: results = api.request('search/tweets', {'q': hashtag.strip(), 'lang': 'en'}) # only limited to 15 tweets cou...
[ 11748, 40391, 62, 13083, 198, 11748, 33918, 220, 198, 6738, 3009, 17614, 1330, 3009, 17614, 628, 198, 15042, 796, 3009, 17614, 7, 15042, 62, 13083, 13, 49827, 62, 2539, 11, 40391, 62, 13083, 13, 49827, 62, 21078, 11, 220, 40391, 62, 1...
2.653153
222
import numpy as np import matplotlib.pyplot as plt import matplotlib.colors as colors from matplotlib import animation import matplotlib.patches as patches from scipy.ndimage import correlate, convolve from mpl_toolkits.mplot3d import axes3d, Axes3D img = np.load('lena.npy') # template cornes in image space [[x1, x2,...
[ 11748, 299, 32152, 355, 45941, 198, 11748, 2603, 29487, 8019, 13, 9078, 29487, 355, 458, 83, 198, 11748, 2603, 29487, 8019, 13, 4033, 669, 355, 7577, 198, 6738, 2603, 29487, 8019, 1330, 11034, 198, 11748, 2603, 29487, 8019, 13, 8071, 20...
2.205325
1,953
# -*- coding: utf-8 -*- # Part of Odoo. See LICENSE file for full copyright and licensing details. import datetime import json import werkzeug from dateutil.relativedelta import relativedelta from werkzeug.exceptions import NotFound from odoo import fields, http from odoo.http import request from odoo.tools import i...
[ 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, 11748, 4818, 8079, 198, 11748, 33918, 198, 11748, 266, 9587, 27...
3.306931
101
import xml.etree.ElementTree as ET from gomatic.mixins import CommonEqualityMixin from gomatic.xml_operations import PossiblyMissingElement, Ensurance
[ 11748, 35555, 13, 316, 631, 13, 20180, 27660, 355, 12152, 198, 198, 6738, 308, 13730, 13, 19816, 1040, 1330, 8070, 36, 13237, 35608, 259, 198, 6738, 308, 13730, 13, 19875, 62, 3575, 602, 1330, 43046, 43730, 20180, 11, 48221, 3874, 628, ...
3.613636
44
from collections import namedtuple import requests import packaging.version UpdateResult = namedtuple("UpdateResult", ["compatible", "latest"]) session = None def get_session(): """Return a static :class:`requests.Session` object used by :func:`check_update`, so they can share a persistent connection. ""...
[ 6738, 17268, 1330, 3706, 83, 29291, 198, 11748, 7007, 198, 11748, 16846, 13, 9641, 198, 198, 10260, 23004, 796, 3706, 83, 29291, 7203, 10260, 23004, 1600, 14631, 38532, 1600, 366, 42861, 8973, 8, 198, 198, 29891, 796, 6045, 198, 198, 42...
2.645811
943
""" Copyright (c) 2017, Jairus Martin. Distributed under the terms of the MIT License. The full license is in the file LICENSE.text, distributed with this software. Created on Apr 16, 2017 @author: jrm """ from .block import Block from enaml.core.api import *
[ 37811, 198, 15269, 357, 66, 8, 2177, 11, 449, 958, 385, 5780, 13, 198, 198, 20344, 6169, 739, 262, 2846, 286, 262, 17168, 13789, 13, 198, 198, 464, 1336, 5964, 318, 287, 262, 2393, 38559, 24290, 13, 5239, 11, 9387, 351, 428, 3788, ...
3.384615
78
#!/usr/bin/env python from __future__ import print_function from __future__ import absolute_import from builtins import range import os import pytest from proteus.iproteus import opts, default_s from proteus import Profiling, NumericalSolution import unittest import numpy as np import numpy.testing as npt from importli...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 198, 6738, 11593, 37443, 834, 1330, 3601, 62, 8818, 198, 6738, 11593, 37443, 834, 1330, 4112, 62, 11748, 198, 6738, 3170, 1040, 1330, 2837, 198, 11748, 28686, 198, 11748, 12972, 9288, 198, 67...
3.202532
158
#!/usr/bin/env python3 import sys import numpy import copy import math import random import sklearn.neighbors import sklearn.linear_model import sklearn.tree import sklearn.ensemble import pyclustering.cluster.xmeans from valueprobes_parser import * NODE_PER_TEST_THRESHOLD = 100 RANDOM_SEED = 0 DO_CLUSTERING = True ...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 18, 198, 198, 11748, 25064, 198, 11748, 299, 32152, 198, 11748, 4866, 198, 11748, 10688, 198, 11748, 4738, 198, 11748, 1341, 35720, 13, 710, 394, 32289, 198, 11748, 1341, 35720, 13, 29127, 62...
2.672727
165
from geosoup.raster import Raster, np, gdal_array, gdal from geosoup.common import Handler, Opt from sklearn.ensemble import RandomForestRegressor from sklearn.model_selection import GridSearchCV from sklearn.metrics import mean_squared_error from sklearn import linear_model from abc import ABCMeta, abstractmetho...
[ 6738, 4903, 418, 10486, 13, 81, 1603, 1330, 371, 1603, 11, 45941, 11, 308, 31748, 62, 18747, 11, 308, 31748, 201, 198, 6738, 4903, 418, 10486, 13, 11321, 1330, 32412, 11, 13123, 201, 198, 6738, 1341, 35720, 13, 1072, 11306, 1330, 1453...
1.884741
37,663
import FWCore.ParameterSet.Config as cms from DQM.HcalTasks.HcalOfflineHarvesting import * # apply some customization # - ptype = 1 Offlien processing # - runkey value 2 - cosmics hcalOfflineHarvesting.ptype = 1 hcalOfflineHarvesting.runkeyVal = 2 hcalOfflineHarvesting.runkeyName = "cosmic"
[ 11748, 48849, 14055, 13, 36301, 7248, 13, 16934, 355, 269, 907, 198, 6738, 360, 48, 44, 13, 39, 9948, 51, 6791, 13, 39, 9948, 28657, 13587, 4223, 278, 1330, 1635, 198, 198, 2, 4174, 617, 31344, 198, 2, 532, 197, 457, 2981, 796, 35...
2.90099
101
# -*- coding: utf-8 -*- # Form implementation generated from reading ui file 'AddQuestion.ui' # # Created by: PyQt4 UI code generator 4.11.4 # # WARNING! All changes made in this file will be lost! from PyQt4 import QtCore, QtGui try: _fromUtf8 = QtCore.QString.fromUtf8 except AttributeError: try:...
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 201, 198, 201, 198, 2, 5178, 7822, 7560, 422, 3555, 334, 72, 2393, 705, 4550, 24361, 13, 9019, 6, 201, 198, 2, 201, 198, 2, 15622, 416, 25, 9485, 48, 83, 19, 12454, 243...
2.318519
270
class HttpListenerException(Win32Exception, ISerializable, _Exception): """ The exception that is thrown when an error occurs processing an HTTP request. HttpListenerException() HttpListenerException(errorCode: int) HttpListenerException(errorCode: int,message: str) """ def add_Serializ...
[ 4871, 367, 29281, 33252, 16922, 7, 16643, 2624, 16922, 11, 3180, 48499, 13821, 11, 4808, 16922, 2599, 201, 198, 220, 220, 220, 37227, 201, 198, 383, 6631, 326, 318, 8754, 618, 281, 4049, 8833, 7587, 281, 14626, 2581, 13, 201, 198, 201...
2.708178
538
import argparse import os import random import numpy as np import torch import torch.nn.parallel import torch.utils.data from tqdm import tqdm from source.lmi_model import LMIModel #from source.lmi_model_no_sef import LMIModel_NOSEF from source import data_loader from source import sdf_nn from source.base import file_...
[ 11748, 1822, 29572, 198, 11748, 28686, 198, 11748, 4738, 198, 11748, 299, 32152, 355, 45941, 198, 11748, 28034, 198, 11748, 28034, 13, 20471, 13, 1845, 29363, 198, 11748, 28034, 13, 26791, 13, 7890, 198, 6738, 256, 80, 36020, 1330, 256, ...
2.863014
146
# from platform import node import datetime from sys import excepthook from numpy.lib.function_base import select from owslib.wfs import WebFeatureService import geopandas as gpd from requests import Request as req from shapely.geometry.polygon import Polygon # from library import basic_functions as bf import library.b...
[ 2, 422, 3859, 1330, 10139, 198, 11748, 4818, 8079, 198, 6738, 25064, 1330, 43748, 79, 400, 566, 198, 6738, 299, 32152, 13, 8019, 13, 8818, 62, 8692, 1330, 2922, 198, 6738, 12334, 6649, 571, 13, 86, 9501, 1330, 5313, 38816, 16177, 198,...
2.87013
231
numbers = [11,22,33,11,32,21,22] new = [] for number in numbers: if number not in new: new.append(number) print(new)
[ 77, 17024, 796, 685, 1157, 11, 1828, 11, 2091, 11, 1157, 11, 2624, 11, 2481, 11, 1828, 60, 198, 3605, 796, 17635, 198, 1640, 1271, 287, 3146, 25, 198, 220, 220, 220, 611, 1271, 407, 287, 649, 25, 198, 220, 220, 220, 220, 220, 22...
2.20339
59
# %% [markdown] # File: pipeline/green_classifier.py # %% """Module for GreenClassifier class.""" # --------------------------------------------------------------------------------- import numpy as np from collections import Counter import os import json import pickle # %% from sklearn.model_selection import train_te...
[ 2, 43313, 685, 4102, 2902, 60, 198, 2, 9220, 25, 11523, 14, 14809, 62, 4871, 7483, 13, 9078, 198, 198, 2, 43313, 198, 37811, 26796, 329, 3469, 9487, 7483, 1398, 526, 15931, 198, 2, 16529, 1783, 12, 198, 11748, 299, 32152, 355, 45941...
3.15146
548
#!/usr/bin/env python2 # -*- coding: utf-8 -*- """ Created on Fri Dec 29 12:51:12 2017 @author: deeplearning """ import tensorflow as tf
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 17, 198, 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 37811, 198, 41972, 319, 19480, 4280, 2808, 1105, 25, 4349, 25, 1065, 2177, 198, 198, 31, 9800, 25, 2769, 40684, 1...
2.555556
54
# -*- coding: utf-8 -*- """QuatumFullAdder.ipynb Automatically generated by Colaboratory. Original file is located at https://colab.research.google.com/drive/10xAvcrvOO3l0zYMVx12R7llDTh_BDsNm """ !pip install qiskit from qiskit import Aer, execute, QuantumCircuit from qiskit.visualization import plot_histogram ...
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 37811, 4507, 21307, 13295, 2782, 1082, 13, 541, 2047, 65, 198, 198, 38062, 4142, 7560, 416, 1623, 4820, 2870, 13, 198, 198, 20556, 2393, 318, 5140, 379, 198, 220, 220, ...
2.428266
467
import numpy as np import pandas as pd import glob from functools import reduce
[ 11748, 299, 32152, 355, 45941, 198, 11748, 19798, 292, 355, 279, 67, 198, 11748, 15095, 198, 6738, 1257, 310, 10141, 1330, 4646 ]
3.590909
22
# Copyright (c) 2019 Cable Television Laboratories, 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 ...
[ 2, 15069, 357, 66, 8, 13130, 20249, 21516, 46779, 11, 3457, 13, 198, 2, 49962, 739, 262, 24843, 13789, 11, 10628, 362, 13, 15, 357, 1169, 366, 34156, 15341, 198, 2, 345, 743, 407, 779, 428, 2393, 2845, 287, 11846, 351, 262, 13789, ...
3.657143
280
import pytest from django import forms from posts.models import Post
[ 11748, 12972, 9288, 198, 198, 6738, 42625, 14208, 1330, 5107, 198, 6738, 6851, 13, 27530, 1330, 2947, 628 ]
3.944444
18
""" crawler csv summary daily url: https://coronavirus.ohio.gov/static/COVIDSummaryData.csv """ import requests # from parsel import Selector import datetime as dt import time import sys import os import json import pandas as pd # import fnmatch as fnm # from lxml import html import addfips import util.basic as basic ...
[ 37811, 198, 66, 39464, 269, 21370, 10638, 4445, 198, 6371, 25, 3740, 1378, 10215, 261, 615, 19397, 13, 1219, 952, 13, 9567, 14, 12708, 14, 8220, 11008, 22093, 6601, 13, 40664, 198, 37811, 198, 198, 11748, 7007, 198, 2, 422, 1582, 741,...
2.61809
995
from numerical_tic_tac_toe import Board from numerical_tic_tac_toe import Player if __name__ == '__main__': main()
[ 6738, 29052, 62, 13370, 62, 83, 330, 62, 44579, 1330, 5926, 198, 6738, 29052, 62, 13370, 62, 83, 330, 62, 44579, 1330, 7853, 628, 628, 628, 198, 198, 361, 11593, 3672, 834, 6624, 705, 834, 12417, 834, 10354, 198, 220, 220, 220, 1388...
2.8
45
# -*- coding: utf-8 -*- # Generated by Django 1.11.6 on 2018-04-12 12:18 from __future__ import unicode_literals from django.db import migrations, models import django.db.models.deletion
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 2, 2980, 515, 416, 37770, 352, 13, 1157, 13, 21, 319, 2864, 12, 3023, 12, 1065, 1105, 25, 1507, 198, 6738, 11593, 37443, 834, 1330, 28000, 1098, 62, 17201, 874, 198, ...
2.73913
69
# 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 # d...
[ 2, 220, 220, 220, 49962, 739, 262, 24843, 13789, 11, 10628, 362, 13, 15, 357, 1169, 366, 34156, 15341, 345, 743, 198, 2, 220, 220, 220, 407, 779, 428, 2393, 2845, 287, 11846, 351, 262, 13789, 13, 921, 743, 7330, 198, 2, 220, 220, ...
3.416667
252
import sys from fp_lib.common import cliparser from fp_lib.common import log from fp_utils.base import fs from fp_utils.base import setpip from fp_utils.base import code from fp_utils.base import confeditor LOG = log.getLogger(__name__) if __name__ == '__main__': sys.exit(main())
[ 11748, 25064, 198, 198, 6738, 277, 79, 62, 8019, 13, 11321, 1330, 10651, 28198, 198, 6738, 277, 79, 62, 8019, 13, 11321, 1330, 2604, 198, 6738, 277, 79, 62, 26791, 13, 8692, 1330, 43458, 198, 6738, 277, 79, 62, 26791, 13, 8692, 1330...
2.761905
105
import platform import pandas as pd import sklearn import numpy as np import os from sklearn.externals import joblib from sklearn.preprocessing import LabelEncoder from sklearn.pipeline import FeatureUnion, Pipeline from sklearn.preprocessing import StandardScaler from sklearn.preprocessing import OneHotEncoder from sk...
[ 11748, 3859, 198, 11748, 19798, 292, 355, 279, 67, 198, 11748, 1341, 35720, 198, 11748, 299, 32152, 355, 45941, 198, 11748, 28686, 198, 6738, 1341, 35720, 13, 1069, 759, 874, 1330, 1693, 8019, 198, 6738, 1341, 35720, 13, 3866, 36948, 13...
3.758123
277
## evaluates to itself
[ 220, 220, 220, 22492, 47850, 284, 2346, 198 ]
3.375
8
from tornado.log import app_log from urls.login_url import login_url from urls.login_url import logout_url from tapplet.url import * activator_urls = ( login_url, logout_url, )
[ 6738, 33718, 13, 6404, 1330, 598, 62, 6404, 198, 6738, 2956, 7278, 13, 38235, 62, 6371, 1330, 17594, 62, 6371, 198, 6738, 2956, 7278, 13, 38235, 62, 6371, 1330, 2604, 448, 62, 6371, 198, 6738, 256, 1324, 1616, 13, 6371, 1330, 1635, ...
2.134615
104
from typing import List import numpy as np from dataclasses import dataclass, field from template_support.file_storage import FileStorage @dataclass class TemplateExample: """Template example descriptor.""" storage_key: str # File storage key features: np.ndarray # Features of the given example f...
[ 6738, 19720, 1330, 7343, 198, 198, 11748, 299, 32152, 355, 45941, 198, 6738, 4818, 330, 28958, 1330, 4818, 330, 31172, 11, 2214, 198, 198, 6738, 11055, 62, 11284, 13, 7753, 62, 35350, 1330, 9220, 31425, 628, 198, 31, 19608, 330, 31172, ...
3.315789
323
import logging from docserver.db.models.base import Model from docserver.db.models.permission import Permission, PermissionCollection # noqa F401 from docserver.db.models.tag import Tag # noqa F401 from docserver.db.models.package import Package # noqa F401 from docserver.db.models.documentation_version import Docu...
[ 11748, 18931, 198, 198, 6738, 2205, 15388, 13, 9945, 13, 27530, 13, 8692, 1330, 9104, 198, 6738, 2205, 15388, 13, 9945, 13, 27530, 13, 525, 3411, 1330, 2448, 3411, 11, 2448, 3411, 36307, 220, 1303, 645, 20402, 376, 21844, 198, 6738, 2...
3.293706
143
# Copyright 2021 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # https://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, ...
[ 2, 15069, 33448, 3012, 11419, 198, 2, 198, 2, 49962, 739, 262, 24843, 13789, 11, 10628, 362, 13, 15, 357, 1169, 366, 34156, 15341, 198, 2, 345, 743, 407, 779, 428, 2393, 2845, 287, 11846, 351, 262, 13789, 13, 198, 2, 921, 743, 733...
2.217247
1,206
from unittest.mock import patch from django.test import Client, TestCase, override_settings from django.contrib.sites.models import Site from django.urls import reverse from robots.models import Rule, Url from .utils import create_rules
[ 6738, 555, 715, 395, 13, 76, 735, 1330, 8529, 198, 198, 6738, 42625, 14208, 13, 9288, 1330, 20985, 11, 6208, 20448, 11, 20957, 62, 33692, 198, 6738, 42625, 14208, 13, 3642, 822, 13, 49315, 13, 27530, 1330, 14413, 198, 6738, 42625, 142...
3.544118
68
import unittest, time, sys, time, random, json sys.path.extend(['.','..','../..','py']) import h2o, h2o_cmd, h2o_hosts, h2o_browse as h2b, h2o_import as h2i, h2o_common DO_RANDOM_SAMPLE = False DO_RF = False print "Assumes you ran ../build_for_clone.py in this directory" print "Using h2o-nodes.json. Also the sandbox d...
[ 11748, 555, 715, 395, 11, 640, 11, 25064, 11, 640, 11, 4738, 11, 33918, 198, 17597, 13, 6978, 13, 2302, 437, 7, 17816, 2637, 4032, 492, 41707, 40720, 492, 41707, 9078, 6, 12962, 198, 11748, 289, 17, 78, 11, 289, 17, 78, 62, 28758,...
2.339623
159
import collections import hashlib import pathlib import sys CHUNK_SIZE = 10 * 1024 * 1024 FileInfo = collections.namedtuple("FileInfo", ["original", "duplicates"]) if __name__ == "__main__": app = Application(sys.argv[1]) app.run()
[ 11748, 17268, 201, 198, 11748, 12234, 8019, 201, 198, 11748, 3108, 8019, 201, 198, 11748, 25064, 201, 198, 201, 198, 201, 198, 3398, 4944, 42, 62, 33489, 796, 838, 1635, 28119, 1635, 28119, 201, 198, 201, 198, 201, 198, 8979, 12360, 7...
2.305785
121
''' DSPT1 Unit 3 Sprint 1 Module 2-OOP and Code Style ''' from random import randint class TwentySided: '''General Representation of a 20 Sided Die''' def list_players(self): '''Prints the rollers of the die''' print('{} is rolling first, and {} is rolling second'.format(self.player1, self.pl...
[ 7061, 6, 198, 35, 4303, 51, 16, 11801, 513, 23178, 352, 19937, 362, 12, 46, 3185, 290, 6127, 17738, 198, 7061, 6, 198, 6738, 4738, 1330, 43720, 600, 628, 198, 4871, 22381, 50, 1384, 25, 198, 220, 220, 220, 705, 7061, 12218, 10858, ...
2.387006
354
import numpy as np import torch from torchvision import transforms import torch.nn as nn import torch.nn.functional as F import math ######################################################### ######## [L]IGHTNESS [A][B] COLOR SPACE ############################### #######################################################...
[ 11748, 299, 32152, 355, 45941, 198, 11748, 28034, 198, 6738, 28034, 10178, 1330, 31408, 198, 11748, 28034, 13, 20471, 355, 299, 77, 198, 11748, 28034, 13, 20471, 13, 45124, 355, 376, 198, 11748, 10688, 198, 198, 29113, 14468, 7804, 2, 1...
2.500562
889
#!/usr/bin/python3 import sys import os import shutil import requests import json from urllib.request import urlopen import zipfile from clint.textui import progress # extract IPSW filename from URL # download file # download and parse json file if __name__ == '__main__': argv = sys.argv argc = len(argv) decompr...
[ 2, 48443, 14629, 14, 8800, 14, 29412, 18, 198, 11748, 25064, 198, 11748, 28686, 198, 11748, 4423, 346, 198, 11748, 7007, 198, 11748, 33918, 198, 6738, 2956, 297, 571, 13, 25927, 1330, 19016, 9654, 198, 11748, 19974, 7753, 198, 6738, 537...
2.364224
464
from django.core.management.base import BaseCommand, CommandError from app.models import Results, Attribute, AttributeItem
[ 6738, 42625, 14208, 13, 7295, 13, 27604, 13, 8692, 1330, 7308, 21575, 11, 9455, 12331, 198, 6738, 598, 13, 27530, 1330, 15691, 11, 3460, 4163, 11, 3460, 4163, 7449 ]
4.206897
29
import pytest from click.testing import CliRunner from dockupdater.dockupdater import cli from dockupdater.lib.scanner import Scanner @pytest.mark.cli @pytest.mark.cli
[ 11748, 12972, 9288, 198, 6738, 3904, 13, 33407, 1330, 1012, 72, 49493, 198, 198, 6738, 23423, 929, 67, 729, 13, 67, 735, 929, 67, 729, 1330, 537, 72, 198, 6738, 23423, 929, 67, 729, 13, 8019, 13, 35836, 1008, 1330, 20937, 1008, 628,...
2.836066
61
#!/usr/bin/python3 import sys sys.path.append("..") from read_data import get_data import numpy as np from sklearn.utils.extmath import safe_sparse_dot import matplotlib.pyplot as plt import random import os import code from sklearn.preprocessing import normalize from scipy import stats from functools import reduce i...
[ 2, 48443, 14629, 14, 8800, 14, 29412, 18, 198, 198, 11748, 25064, 198, 17597, 13, 6978, 13, 33295, 7203, 492, 4943, 198, 6738, 1100, 62, 7890, 1330, 651, 62, 7890, 198, 198, 11748, 299, 32152, 355, 45941, 198, 6738, 1341, 35720, 13, ...
3.212633
2,248
#!/usr/bin/python # -*- coding: utf-8 -*- import gae_form as form import model # Commons Validators Expressions vemail = form.regexp("^([0-9a-zA-Z]+([_.-]?[0-9a-zA-Z]+)*@[0-9a-zA-Z]+[0-9,a-z,A-Z,.,-]*(.){1}[a-zA-Z]{2,4})+$", "Precisa ser um endereco de e-mail válido !.") vdigito = form.regexp("\d+", "Precisa se...
[ 2, 48443, 14629, 14, 8800, 14, 29412, 201, 198, 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 201, 198, 11748, 308, 3609, 62, 687, 355, 1296, 201, 198, 11748, 2746, 201, 198, 201, 198, 2, 13815, 48951, 2024, 10604, 507...
1.687633
938
import nltk import pandas as pd if __name__ == '__main__': nltk.download('punkt') nltk.download('averaged_perceptron_tagger') make_data('train') make_data('dev') make_data('test')
[ 11748, 299, 2528, 74, 198, 11748, 19798, 292, 355, 279, 67, 198, 198, 361, 11593, 3672, 834, 6624, 705, 834, 12417, 834, 10354, 198, 220, 220, 220, 299, 2528, 74, 13, 15002, 10786, 30354, 83, 11537, 198, 220, 220, 220, 299, 2528, 74...
2.310345
87
# 04 (DESAFIO) # Crie um jogo onde o computador vai “pensar” em um número entre # 0 e 10. O jogador vai tentar adivinhar qual número foi escolhido # até acertar, entre os palpites diga ao jogador se o número do # computador é maior ou menor ao que ele digitou, no final mostre # quantos palpites foram necessários par...
[ 2, 8702, 357, 30910, 8579, 9399, 8, 198, 2, 327, 5034, 23781, 474, 24076, 319, 2934, 267, 2653, 7079, 410, 1872, 564, 250, 79, 641, 283, 447, 251, 795, 23781, 299, 21356, 647, 78, 920, 260, 198, 2, 657, 304, 838, 13, 440, 48342, ...
2.19171
386
class Point: """Definition d'un point"""
[ 4871, 6252, 25, 198, 220, 220, 220, 37227, 36621, 288, 6, 403, 966, 37811, 198 ]
3
15
#!/usr/bin/env python from random import choice, randrange, seed from sys import argv if __name__ == "__main__": seed() f_name = argv[1] if len(argv) > 1 else "fortunes.txt" with open(f_name) as f: main(f) """ My first solution is similar to Dave Webb's, but I also wrote up an iterative func...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 198, 198, 6738, 4738, 1330, 3572, 11, 43720, 9521, 11, 9403, 198, 6738, 25064, 1330, 1822, 85, 628, 628, 198, 198, 361, 11593, 3672, 834, 6624, 366, 834, 12417, 834, 1298, 198, 220, 220, ...
2.464891
413
#!/usr/bin/env python3 # -*- coding: utf-8 -* #import sys from random import randint import numpy as np class PhylogeneticTree(): ''' A set of utilitarian methods for the reconstruction of phylogenetic trees ''' ''' Finds the max value in the matrix ''' """ Randomly initialize the matrix by adding gaps to t...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 18, 198, 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 198, 2, 11748, 25064, 198, 198, 6738, 4738, 1330, 43720, 600, 198, 11748, 299, 32152, 355, 45941, 198, 198, 4871, 1380, 2645...
3.189394
132
import redis from listener import Listener r = redis.Redis() client = Listener(r, ['__key*__:*'], Myclass()) client.start()
[ 11748, 2266, 271, 198, 6738, 24783, 1330, 7343, 877, 198, 198, 81, 796, 2266, 271, 13, 7738, 271, 3419, 198, 16366, 796, 7343, 877, 7, 81, 11, 37250, 834, 2539, 9, 834, 25, 9, 6, 4357, 2011, 4871, 28955, 198, 16366, 13, 9688, 3419...
2.8
45
from functools import reduce from operator import getitem from typing import Any, Callable, Sequence, Tuple from basic_utils.seq_helpers import butlast, last __all__ = [ 'get_in_dict', 'get_keys', 'prune_dict', 'set_in_dict', ] def get_keys(d: dict, keys: Sequence[Any], default: Callable=None) -> Tu...
[ 6738, 1257, 310, 10141, 1330, 4646, 198, 6738, 10088, 1330, 651, 9186, 198, 6738, 19720, 1330, 4377, 11, 4889, 540, 11, 45835, 11, 309, 29291, 198, 198, 6738, 4096, 62, 26791, 13, 41068, 62, 16794, 364, 1330, 475, 12957, 11, 938, 198,...
2.42112
786
from initializers import * from Eje import * from OpenGL.GLUT import * from OpenGL.GLU import * import os from key_interactions import * os.environ['SDL_VIDEO_CENTERED'] = '1' # centrar pantalla main()
[ 6738, 4238, 11341, 1330, 1635, 198, 6738, 412, 18015, 1330, 1635, 198, 6738, 30672, 13, 8763, 3843, 1330, 1635, 198, 6738, 30672, 13, 8763, 52, 1330, 1635, 198, 11748, 28686, 198, 6738, 1994, 62, 3849, 4658, 1330, 1635, 198, 198, 418, ...
3.014706
68
# This file is part of qdpy. # # qdpy is free software: you can redistribute it and/or modify # it under the terms of the GNU Lesser General Public License as # published by the Free Software Foundation, either version 3 of # the License, or (at your option) any later version. # # qdpy is distributed ...
[ 2, 220, 220, 220, 770, 2393, 318, 636, 286, 10662, 67, 9078, 13, 198, 2, 198, 2, 220, 220, 220, 10662, 67, 9078, 318, 1479, 3788, 25, 345, 460, 17678, 4163, 340, 290, 14, 273, 13096, 198, 2, 220, 220, 220, 340, 739, 262, 2846, ...
2.702703
1,110
""" Library Features: Name: lib_data_io_generic Author(s): Fabio Delogu (fabio.delogu@cimafoundation.org) Date: '20200401' Version: '3.0.0' """ ################################################################################# # -------------------------------------------------------------...
[ 37811, 198, 23377, 17571, 25, 198, 198, 5376, 25, 220, 220, 220, 220, 220, 220, 220, 220, 220, 9195, 62, 7890, 62, 952, 62, 41357, 198, 13838, 7, 82, 2599, 220, 220, 220, 220, 14236, 952, 4216, 519, 84, 357, 36434, 952, 13, 12381,...
6.915254
531
# 2020.08.11 # Problem Statement: # https://leetcode.com/problems/combination-sum-ii/ # almost the same as q39
[ 2, 12131, 13, 2919, 13, 1157, 198, 2, 20647, 21983, 25, 198, 2, 3740, 1378, 293, 316, 8189, 13, 785, 14, 1676, 22143, 14, 24011, 1883, 12, 16345, 12, 4178, 14, 198, 2, 2048, 262, 976, 355, 10662, 2670, 198, 220, 220, 220, 220, 2...
2.479167
48
import site # so that ai4water directory is in path import unittest import os import sys ai4_dir = os.path.dirname(os.path.dirname(os.path.abspath(sys.argv[0]))) site.addsitedir(ai4_dir) import numpy as np import pandas as pd from ai4water.preprocessing.transformations import Transformation from ai4water.tf_attribu...
[ 11748, 2524, 220, 220, 1303, 523, 326, 257, 72, 19, 7050, 8619, 318, 287, 3108, 198, 11748, 555, 715, 395, 198, 11748, 28686, 198, 11748, 25064, 198, 1872, 19, 62, 15908, 796, 28686, 13, 6978, 13, 15908, 3672, 7, 418, 13, 6978, 13, ...
2.510511
333
from command_runner import runCommand
[ 198, 6738, 3141, 62, 16737, 1330, 1057, 21575, 628, 198 ]
4.1
10
""" Define command plugins """ __import__("pkg_resources").declare_namespace(__name__)
[ 37811, 198, 7469, 500, 3141, 20652, 198, 37811, 198, 198, 834, 11748, 834, 7203, 35339, 62, 37540, 11074, 32446, 533, 62, 14933, 10223, 7, 834, 3672, 834, 8, 198 ]
3.034483
29
######################### IMPORTS ######################### import ast # Abstract syntax trees import json # JSON encoder and decoder import pandas # Python data analysis library import random ...
[ 14468, 7804, 2, 30023, 33002, 1303, 14468, 7804, 198, 198, 11748, 6468, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220...
2.900055
5,463
t=int(input()) for i in range(t): str=input() l=len(str) if l>=0 and l<=25: print('Y') else: print('N')
[ 83, 28, 600, 7, 15414, 28955, 198, 1640, 1312, 287, 2837, 7, 83, 2599, 198, 220, 220, 220, 965, 28, 15414, 3419, 198, 220, 220, 220, 300, 28, 11925, 7, 2536, 8, 198, 220, 220, 220, 611, 300, 29, 28, 15, 290, 300, 27, 28, 1495,...
1.753247
77
x = int(input('Digite um número: ')) if x > 0: print(f'\n{x} é positivo.') else: print(f'\n{x} é negativo.')
[ 87, 796, 493, 7, 15414, 10786, 19511, 578, 23781, 299, 21356, 647, 78, 25, 705, 4008, 198, 198, 361, 2124, 1875, 657, 25, 198, 220, 220, 220, 3601, 7, 69, 6, 59, 77, 90, 87, 92, 38251, 46436, 23593, 2637, 8, 198, 17772, 25, 198,...
1.84375
64
from .exceptions import WebEncoderException from .main import WebEncoder __all__ = ["WebEncoder", "WebEncoderException"] __version__ = "0.1.2"
[ 6738, 764, 1069, 11755, 1330, 5313, 27195, 12342, 16922, 198, 6738, 764, 12417, 1330, 5313, 27195, 12342, 198, 198, 834, 439, 834, 796, 14631, 13908, 27195, 12342, 1600, 366, 13908, 27195, 12342, 16922, 8973, 198, 198, 834, 9641, 834, 796...
3.020833
48
from typing import Text from datetime import datetime __year__ = '2021' if __name__ == '__main__': print(Date.get_year())
[ 6738, 19720, 1330, 8255, 198, 6738, 4818, 8079, 1330, 4818, 8079, 198, 198, 834, 1941, 834, 796, 705, 1238, 2481, 6, 628, 198, 198, 361, 11593, 3672, 834, 6624, 705, 834, 12417, 834, 10354, 198, 220, 220, 220, 3601, 7, 10430, 13, 11...
2.765957
47
"""Tests for the models of the ``subscriptions`` app.""" from django.test import TestCase from mixer.backend.django import mixer class SubscriptionTestCase(TestCase): """Tests for the ``Subscription`` model class.""" def test_model(self): """Should be able to instantiate and save the model.""" ...
[ 37811, 51, 3558, 329, 262, 4981, 286, 262, 7559, 7266, 12048, 507, 15506, 598, 526, 15931, 198, 6738, 42625, 14208, 13, 9288, 1330, 6208, 20448, 198, 198, 6738, 33938, 13, 1891, 437, 13, 28241, 14208, 1330, 33938, 628, 198, 4871, 3834, ...
3.014706
136
input() count = [0]*100 for n in map(int, input().split()): count[n] += 1 print(" ".join(map(str, count)))
[ 15414, 3419, 198, 9127, 796, 685, 15, 60, 9, 3064, 198, 1640, 299, 287, 3975, 7, 600, 11, 5128, 22446, 35312, 3419, 2599, 198, 220, 220, 220, 954, 58, 77, 60, 15853, 352, 198, 4798, 7203, 27071, 22179, 7, 8899, 7, 2536, 11, 954, ...
2.444444
45
import sysconfig MSYS2 = "mingw" in sysconfig.get_platform() VERSION = "0.99.4" VERSION_NAME = "Morphy"
[ 11748, 25064, 11250, 198, 198, 5653, 16309, 17, 796, 366, 2229, 86, 1, 287, 25064, 11250, 13, 1136, 62, 24254, 3419, 198, 198, 43717, 796, 366, 15, 13, 2079, 13, 19, 1, 198, 43717, 62, 20608, 796, 366, 20044, 6883, 1, 198 ]
2.52381
42
import sys, os THIS_FOLDER = os.path.dirname(os.path.abspath(__file__)) from efficient_eigensolvers import PowerMethod, QR_unshifted, QR_shifted, QR_wilkinson_shift, RayleighQuotientIteration from matricesGenerator import matrix_generator import time import math import matplotlib.pyplot as plt from scipy.linalg import ...
[ 11748, 25064, 11, 28686, 198, 43559, 62, 37, 3535, 14418, 796, 28686, 13, 6978, 13, 15908, 3672, 7, 418, 13, 6978, 13, 397, 2777, 776, 7, 834, 7753, 834, 4008, 198, 6738, 6942, 62, 68, 328, 641, 349, 690, 1330, 4333, 17410, 11, 42...
2.092062
2,444
import io import os import re from setuptools import setup, find_packages setup( name="albumentations_experimental", version=get_version(), description="Experimental functionality for the Albumentaions library.", long_description=get_long_description(), long_description_content_type="text/markdo...
[ 11748, 33245, 198, 11748, 28686, 198, 11748, 302, 198, 6738, 900, 37623, 10141, 1330, 9058, 11, 1064, 62, 43789, 628, 628, 198, 40406, 7, 198, 220, 220, 220, 1438, 2625, 282, 65, 1713, 602, 62, 23100, 9134, 1600, 198, 220, 220, 220, ...
2.88535
471
import itertools import os.path import re import h5py import numpy as np import boxlib import cameralib import data.datasets3d as p3ds import matlabfile import paths import util from data.preproc_for_efficiency import make_efficient_example @util.cache_result_on_disk(f'{paths.CACHE_DIR}/3dhp.pkl', min_time="2020-11...
[ 11748, 340, 861, 10141, 198, 11748, 28686, 13, 6978, 198, 11748, 302, 198, 198, 11748, 289, 20, 9078, 198, 11748, 299, 32152, 355, 45941, 198, 198, 11748, 3091, 8019, 198, 11748, 12172, 1691, 571, 198, 11748, 1366, 13, 19608, 292, 1039,...
2.704
125
"""""" """ Thermochemistry calculation from frequencies and coordinates. Copied from otherm (https://github.com/duartegroup/otherm) 16/05/2021. See autode/common/thermochemistry.pdf for mathematical background All calculations performed in SI units, for simplicity. """ import numpy as np from enum import Enum from au...
[ 15931, 15931, 15931, 198, 37811, 198, 35048, 76, 37074, 17952, 422, 19998, 290, 22715, 13, 6955, 798, 422, 198, 847, 76, 357, 5450, 1378, 12567, 13, 785, 14, 646, 433, 1533, 3233, 14, 847, 76, 8, 1467, 14, 2713, 14, 1238, 2481, 13, ...
2.170164
6,482
# -*- coding: utf-8 -*- import os import django os.environ.setdefault("DJANGO_SETTINGS_MODULE", "mex.settings") django.setup()
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 11748, 28686, 198, 11748, 42625, 14208, 198, 198, 418, 13, 268, 2268, 13, 2617, 12286, 7203, 35028, 1565, 11230, 62, 28480, 51, 20754, 62, 33365, 24212, 1600, 366, 76, 1...
2.37037
54
# -*- coding: utf-8 -*- import multiprocessing import os import sys import functools import uuid import contextlib import concurrent import fractalshades.utils as fsutils import fractalshades.settings as fssettings # https://gist.github.com/EdwinChan/3c13d3a746bb3ec5082f @contextlib.contextmanager def redirect_out...
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 11748, 18540, 305, 919, 278, 198, 11748, 28686, 198, 11748, 25064, 198, 11748, 1257, 310, 10141, 198, 11748, 334, 27112, 198, 11748, 4732, 8019, 198, 11748, 24580, 198, 19...
2.373832
321
""" This module provides functionality to get additional input_output from the user. """ from input_output.progress_printer import ProgressPrinter def get_yes_no_answer(question): """ Ask user a yes/no-question. :param question: The question. :type question: str :return: The answer. :rtype: b...
[ 37811, 198, 1212, 8265, 3769, 11244, 284, 651, 3224, 5128, 62, 22915, 422, 262, 2836, 13, 198, 37811, 198, 6738, 5128, 62, 22915, 13, 33723, 62, 1050, 3849, 1330, 18387, 6836, 3849, 628, 198, 4299, 651, 62, 8505, 62, 3919, 62, 41484, ...
2.753333
1,650
# -*- coding: utf-8 -*- # Generated by Django 1.11.6 on 2017-12-09 19:59 from __future__ import unicode_literals from django.db import migrations, models
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 2, 2980, 515, 416, 37770, 352, 13, 1157, 13, 21, 319, 2177, 12, 1065, 12, 2931, 678, 25, 3270, 198, 6738, 11593, 37443, 834, 1330, 28000, 1098, 62, 17201, 874, 198, ...
2.736842
57
import pytest import fail_all_resources import os @pytest.fixture @pytest.fixture OVERSIZED_EVENT = { "invokingEvent": "{\"configurationItemSummary\": {\"changeType\": \"UPDATE\",\"configurationItemVersion\": \"1.2\",\"configurationItemCaptureTime\":\"2016-10-06T16:46:16.261Z\",\"configurationStateId\": 0,\"a...
[ 11748, 12972, 9288, 198, 11748, 2038, 62, 439, 62, 37540, 198, 11748, 28686, 628, 198, 31, 9078, 9288, 13, 69, 9602, 628, 198, 31, 9078, 9288, 13, 69, 9602, 628, 198, 8874, 4877, 14887, 1961, 62, 20114, 3525, 796, 1391, 198, 220, 22...
2.696339
1,202
# -*- coding: utf-8 -*- # cython: language_level=3 # BSD 3-Clause License # # Copyright (c) 2020-2022, Faster Speeding # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are met: # # * Redistributions of sour...
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 2, 3075, 400, 261, 25, 3303, 62, 5715, 28, 18, 198, 2, 347, 10305, 513, 12, 2601, 682, 13789, 198, 2, 198, 2, 15069, 357, 66, 8, 12131, 12, 1238, 1828, 11, 38996, ...
3.061361
1,043
from enum import Enum
[ 6738, 33829, 1330, 2039, 388, 628, 628, 198 ]
3.25
8
#!/usr/bin/env python3 """Calls `gn` with the right --dotfile= and --root= arguments for LLVM.""" # GN normally expects a file called '.gn' at the root of the repository. # Since LLVM's GN build isn't supported, putting that file at the root # is deemed inappropriate, which requires passing --dotfile= and -root= to GN...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 18, 198, 37811, 34, 5691, 4600, 4593, 63, 351, 262, 826, 1377, 26518, 7753, 28, 290, 1377, 15763, 28, 7159, 329, 27140, 15996, 526, 15931, 198, 198, 2, 15484, 7685, 13423, 257, 2393, 1444, ...
3.206704
179
# Generated by Django 3.1 on 2020-10-12 12:35 from django.db import migrations, models
[ 2, 2980, 515, 416, 37770, 513, 13, 16, 319, 12131, 12, 940, 12, 1065, 1105, 25, 2327, 198, 198, 6738, 42625, 14208, 13, 9945, 1330, 15720, 602, 11, 4981, 628 ]
2.966667
30
import tcod as libtcod from components.equipment import EquipmentSlots from components.equippable import Equippable from entity import Entity from item_choice_definition.weapon_choices_values.knive_choices import get_knife_choices from item_choice_definition.weapon_choices_values.sword_choices import get_sword_choices ...
[ 11748, 256, 19815, 355, 9195, 83, 19815, 198, 6738, 6805, 13, 4853, 4667, 1330, 22412, 11122, 1747, 198, 6738, 6805, 13, 4853, 3974, 540, 1330, 7889, 3974, 540, 198, 6738, 9312, 1330, 20885, 198, 6738, 2378, 62, 25541, 62, 46758, 13, ...
3.468647
303
# 1.指定Python脚本解析器 #!/home/xlz/.conda/envs/mei_d/bin/python3.6 import os from django.shortcuts import render from django.conf import settings from goods import models from contents.utils import get_categories from goods.utils import get_breadcrumb from celery_tasks.main import celery_app # 4.编写静态化详情页Python脚本代码 @cele...
[ 2, 352, 13, 162, 234, 229, 22522, 248, 37906, 164, 226, 248, 17312, 105, 164, 100, 96, 162, 252, 238, 161, 247, 101, 198, 2, 48443, 11195, 14, 87, 75, 89, 11757, 66, 13533, 14, 268, 14259, 14, 1326, 72, 62, 67, 14, 8800, 14, 2...
1.517267
1,332
""" Copyright (c) Facebook, Inc. and its affiliates. This source code is licensed under the MIT license found in the LICENSE file in the root directory of this source tree. """ import math import numpy as np import logging from PIL import Image from PIL import ImageFont from PIL import ImageDraw from torch.nn import ...
[ 37811, 198, 15269, 357, 66, 8, 3203, 11, 3457, 13, 290, 663, 29116, 13, 198, 198, 1212, 2723, 2438, 318, 11971, 739, 262, 17168, 5964, 1043, 287, 262, 198, 43, 2149, 24290, 2393, 287, 262, 6808, 8619, 286, 428, 2723, 5509, 13, 198, ...
2.256932
1,623
import unittest from decimal import Decimal from logging.config import dictConfig from assistant.tests import LOGGING from assistant.utils import parse_money if __name__ == '__main__': unittest.main()
[ 11748, 555, 715, 395, 198, 6738, 32465, 1330, 4280, 4402, 198, 6738, 18931, 13, 11250, 1330, 8633, 16934, 198, 198, 6738, 8796, 13, 41989, 1330, 41605, 38, 2751, 198, 6738, 8796, 13, 26791, 1330, 21136, 62, 26316, 628, 198, 198, 361, ...
3.42623
61
import datetime import numpy as np import pandas as pd import pytest from visions.test.utils import ( contains, convert, get_contains_cases, get_convert_cases, get_inference_cases, infers, ) from pandas_profiling.config import config from pandas_profiling.model.typeset import ( ...
[ 11748, 4818, 8079, 201, 198, 201, 198, 11748, 299, 32152, 355, 45941, 201, 198, 11748, 19798, 292, 355, 279, 67, 201, 198, 11748, 12972, 9288, 201, 198, 6738, 26096, 13, 9288, 13, 26791, 1330, 357, 201, 198, 220, 220, 220, 4909, 11, ...
2.013812
2,172
__author__ = 'zoulida' from rqalpha import run config = { "base": { "strategy_file": "./examples/buy_and_hold_Tick.py",#"examples/buy_and_hold_Tick.py"""./examples/buy_and_hold.py",examples/golden_cross.py "start_date": "2019-06-03", "end_date": "2019-07-04", "frequency": "tick", ...
[ 834, 9800, 834, 796, 705, 89, 2852, 3755, 6, 198, 6738, 374, 80, 26591, 1330, 1057, 198, 198, 11250, 796, 1391, 198, 220, 220, 220, 366, 8692, 1298, 1391, 198, 220, 220, 220, 220, 220, 220, 220, 366, 2536, 4338, 62, 7753, 1298, 36...
1.452267
838
# .fs # .vs import re
[ 2, 764, 9501, 201, 198, 2, 764, 14259, 201, 198, 11748, 302, 201, 198 ]
1.785714
14
import nltk from nltk.tokenize import word_tokenize, sent_tokenize import gensim from gensim.models import FastText from time import time from megasplittor2000 import split_into_lists_of_words import multiprocessing import matplotlib.pyplot as plt from sklearn.decomposition import PCA import numpy as np import logging ...
[ 11748, 299, 2528, 74, 198, 6738, 299, 2528, 74, 13, 30001, 1096, 1330, 1573, 62, 30001, 1096, 11, 1908, 62, 30001, 1096, 198, 11748, 308, 641, 320, 198, 6738, 308, 641, 320, 13, 27530, 1330, 12549, 8206, 198, 6738, 640, 1330, 640, 1...
2.913907
302
""" Default hyperparameter search spaces used in Gradient Boosting model """ from autogluon.core import Real, Int from autogluon.core.constants import BINARY, MULTICLASS, REGRESSION
[ 37811, 15161, 8718, 17143, 2357, 2989, 9029, 973, 287, 17701, 1153, 19835, 278, 2746, 37227, 198, 6738, 1960, 49006, 261, 13, 7295, 1330, 6416, 11, 2558, 198, 6738, 1960, 49006, 261, 13, 7295, 13, 9979, 1187, 1330, 347, 1268, 13153, 11,...
3.509434
53
import scrapydd.main
[ 11748, 15881, 88, 1860, 13, 12417, 201, 198, 201 ]
2.555556
9
from main_train import DataSetQueue import tensorflow as tf if __name__ == '__main__': main()
[ 6738, 1388, 62, 27432, 1330, 6060, 7248, 34991, 198, 11748, 11192, 273, 11125, 355, 48700, 628, 628, 198, 198, 361, 11593, 3672, 834, 6624, 705, 834, 12417, 834, 10354, 198, 220, 220, 220, 1388, 3419, 198 ]
2.861111
36
#!/usr/bin/python import argparse import cv2 import numpy as np import sys from boost_auto import observe from mil_ros_tools import BagCrawler from sub8_vision_tools import ImageCrawler, VideoCrawler if __name__ == '__main__': usage_msg = "Pass the path to a bag, the start of an image sequence, or 'video' for a w...
[ 2, 48443, 14629, 14, 8800, 14, 29412, 198, 11748, 1822, 29572, 198, 11748, 269, 85, 17, 198, 11748, 299, 32152, 355, 45941, 198, 11748, 25064, 198, 6738, 5750, 62, 23736, 1330, 12414, 198, 6738, 1465, 62, 4951, 62, 31391, 1330, 20127, ...
2.426802
888
from typing import List from pytpp.api.api_base import API, APIResponse, api_response_property from pytpp.properties.response_objects.client import Client
[ 6738, 19720, 1330, 7343, 198, 6738, 12972, 83, 381, 13, 15042, 13, 15042, 62, 8692, 1330, 7824, 11, 3486, 4663, 9774, 2591, 11, 40391, 62, 26209, 62, 26745, 198, 6738, 12972, 83, 381, 13, 48310, 13, 26209, 62, 48205, 13, 16366, 1330, ...
3.545455
44