content
stringlengths
1
1.04M
input_ids
listlengths
1
774k
ratio_char_token
float64
0.38
22.9
token_count
int64
1
774k
import sys from nltk.stem import PorterStemmer from nltk.tokenize import TreebankWordTokenizer stemmer = PorterStemmer() # Expected format of db_info_dic # db_id: database id. # table_names: vector of table names. # table_names_original: vector of original table names. # column_names: vec...
[ 11748, 25064, 198, 198, 6738, 299, 2528, 74, 13, 927, 220, 220, 220, 220, 220, 1330, 20890, 1273, 368, 647, 198, 6738, 299, 2528, 74, 13, 30001, 1096, 220, 1330, 12200, 17796, 26449, 30642, 7509, 198, 198, 927, 647, 220, 796, 20890, ...
2.626529
1,063
# Copyright (c) 2020 Intel Corporation # # 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, merge, publish, d...
[ 2, 15069, 357, 66, 8, 12131, 8180, 10501, 198, 2, 198, 2, 2448, 3411, 318, 29376, 7520, 11, 1479, 286, 3877, 11, 284, 597, 1048, 16727, 257, 4866, 198, 2, 286, 428, 3788, 290, 3917, 10314, 3696, 357, 1169, 366, 25423, 12340, 284, ...
2.395066
2,716
from torchvision import transforms # CenterCrop # RandomCrop # transforms.RandomCrop(size, padding=None, pad_if_needed=False, fill=0, padding_mode='constant') # RandomResizedCrop # transforms.RandomResizedCrop(size, scale=(0.08, 1.0), ratio=(3/4, 4/3), interpolation) # FiveCrop, TenCrop ...
[ 6738, 28034, 10178, 1330, 31408, 628, 220, 220, 220, 1303, 3337, 34, 1773, 628, 220, 220, 220, 1303, 14534, 34, 1773, 198, 220, 220, 220, 1303, 31408, 13, 29531, 34, 1773, 7, 7857, 11, 24511, 28, 14202, 11, 14841, 62, 361, 62, 27938...
2.281873
1,153
from flask import Flask, Blueprint, render_template, request, url_for, redirect from flask_sqlalchemy import SQLAlchemy from flask_login import login_required, current_user from .models import User, Scores, Board from datetime import datetime from . import db main = Blueprint('main', __name__) @main.route("/") ...
[ 6738, 42903, 1330, 46947, 11, 39932, 11, 8543, 62, 28243, 11, 2581, 11, 19016, 62, 1640, 11, 18941, 198, 6738, 42903, 62, 25410, 282, 26599, 1330, 16363, 2348, 26599, 198, 6738, 42903, 62, 38235, 1330, 17594, 62, 35827, 11, 1459, 62, ...
3.378151
119
# Generated by Django 3.1 on 2008-12-31 19:48 from django.db import migrations
[ 2, 2980, 515, 416, 37770, 513, 13, 16, 319, 3648, 12, 1065, 12, 3132, 678, 25, 2780, 198, 198, 6738, 42625, 14208, 13, 9945, 1330, 15720, 602, 628 ]
2.892857
28
class WheelValidationError(Exception): """Superclass for all wheel validation errors raised by this package""" pass class RecordValidationError(WheelValidationError): """ Superclass for all validation errors raised due to a wheel's :file:`RECORD` being inaccurate or incomplete """ pass ...
[ 4871, 15810, 7762, 24765, 12331, 7, 16922, 2599, 198, 220, 220, 220, 37227, 12442, 4871, 329, 477, 7825, 21201, 8563, 4376, 416, 428, 5301, 37811, 628, 220, 220, 220, 1208, 628, 198, 4871, 13266, 7762, 24765, 12331, 7, 45307, 7762, 2476...
3.013396
1,269
from js9 import j JSConfigFactory = j.tools.configmanager.base_class_configs JSConfigClient = j.tools.configmanager.base_class_config TEMPLATE = """ host = "localhost" port = 27017 username = "" password_ = "" alias = "" db = "" authentication_source = "" authentication_mechanism = "" ssl = false # Boolean replicaset ...
[ 6738, 44804, 24, 1330, 474, 198, 198, 20120, 16934, 22810, 796, 474, 13, 31391, 13, 11250, 37153, 13, 8692, 62, 4871, 62, 11250, 82, 198, 20120, 16934, 11792, 796, 474, 13, 31391, 13, 11250, 37153, 13, 8692, 62, 4871, 62, 11250, 198, ...
3.084112
107
#!/usr/bin/python2.7 import re import numpy light_matrix = numpy.zeros((1000,1000), dtype= numpy.int) regex = '^([a-z ]+)(\d+)(?:,)(\d+)(?: \w+ )(\d+)(?:,)(\d+)' with open('input.txt') as fp: for line in fp: instructions = re.search(regex, line) for x_axis in range(int(instructions.group(2)), int(instructions...
[ 2, 48443, 14629, 14, 8800, 14, 29412, 17, 13, 22, 198, 198, 11748, 302, 198, 11748, 299, 32152, 198, 198, 2971, 62, 6759, 8609, 796, 299, 32152, 13, 9107, 418, 19510, 12825, 11, 12825, 828, 288, 4906, 28, 299, 32152, 13, 600, 8, 1...
2.20597
335
import unittest from flask_monitoringdashboard.core.profiler.util import PathHash from flask_monitoringdashboard.database import StackLine, CodeLine FN = 'filename0' LN = 42 STACK_LINES = [ StackLine( request_id=0, position=0, indent=0, duration=1010, code=CodeLine(filenam...
[ 11748, 555, 715, 395, 198, 198, 6738, 42903, 62, 41143, 278, 42460, 3526, 13, 7295, 13, 5577, 5329, 13, 22602, 1330, 10644, 26257, 198, 6738, 42903, 62, 41143, 278, 42460, 3526, 13, 48806, 1330, 23881, 13949, 11, 6127, 13949, 198, 198, ...
2.147632
359
from time import sleep contador(1, 10, 1) print() contador(10, 0, 2) print() print('<>'*15) i = int(input('Número inicial: ')) f = int(input('Número final: ')) p = abs(int(input('Passo: '))) # Pega o número inteiro, sem sinal (positivo) contador(i, f, p) print() print('<>'*15)
[ 6738, 640, 1330, 3993, 628, 198, 198, 3642, 7079, 7, 16, 11, 838, 11, 352, 8, 198, 4798, 3419, 198, 3642, 7079, 7, 940, 11, 657, 11, 362, 8, 198, 4798, 3419, 198, 4798, 10786, 27, 29, 6, 9, 1314, 8, 198, 72, 796, 493, 7, 154...
2.169231
130
# Copyright 2018 The Bazel Authors. All rights reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable la...
[ 2, 15069, 2864, 383, 347, 41319, 46665, 13, 1439, 2489, 10395, 13, 198, 2, 198, 2, 49962, 739, 262, 24843, 13789, 11, 10628, 362, 13, 15, 357, 1169, 366, 34156, 15341, 198, 2, 345, 743, 407, 779, 428, 2393, 2845, 287, 11846, 351, ...
2.403296
1,153
import unittest import json from pyanalysis.mysql import Conn from pyanalysis.moment import moment as m from pyghostbt.strategy import Strategy from pyghostbt.tool.order import * from pyghostbt.tool.runtime import Runtime from pyghostbt.const import * from dateutil import tz strategy_1st_config = { "mode": "backt...
[ 11748, 555, 715, 395, 198, 11748, 33918, 198, 198, 6738, 279, 4121, 8767, 13, 28744, 13976, 1330, 20776, 198, 6738, 279, 4121, 8767, 13, 32542, 298, 1330, 2589, 355, 285, 198, 6738, 12972, 38933, 18347, 13, 2536, 4338, 1330, 20561, 198,...
2.354633
313
name = '_'.join(__name__.split('.')[-2:]) VERSION = '$Id: mcz.py,v 1.1 2009/04/07 16:35:31 kocolosk Exp $'[5:-2] import ROOT class_ = ROOT.TProfile binning = { 'nbinsx': 60, 'xbins': (0.0, 15.0) } props = { 'SetXTitle': ('MC #pi p_{T}',), 'SetYTitle': ('<MC #pi p_{T} / particle jet p_{T}>',) } b...
[ 3672, 220, 220, 220, 796, 705, 62, 4458, 22179, 7, 834, 3672, 834, 13, 35312, 10786, 2637, 38381, 12, 17, 25, 12962, 198, 43717, 796, 705, 3, 7390, 25, 285, 26691, 13, 9078, 11, 85, 352, 13, 16, 3717, 14, 3023, 14, 2998, 1467, 2...
1.93401
197
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Created on Sun Jun 21 01:51:33 2020 @author: liujiachen """ from ray.tune.schedulers import FIFOScheduler, TrialScheduler from ray.tune.trial import Trial from ray.tune.trial_runner import TrialRunner from ray.tune.web_server import TuneServer
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 18, 198, 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 37811, 198, 41972, 319, 3825, 7653, 2310, 5534, 25, 4349, 25, 2091, 12131, 198, 198, 31, 9800, 25, 7649, 84, 7285...
2.75
108
# Copyright (c) 2018 PaddlePaddle Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by app...
[ 2, 220, 220, 15069, 357, 66, 8, 2864, 350, 37382, 47, 37382, 46665, 13, 1439, 6923, 33876, 13, 198, 2, 198, 2, 49962, 739, 262, 24843, 13789, 11, 10628, 362, 13, 15, 357, 1169, 366, 34156, 15341, 198, 2, 345, 743, 407, 779, 428, ...
3.157143
350
# Define values in the following fields. Arguments can also be passed via the command line USER = "" # Your email address KEY = "" # Your API Key ZONE = "" # Your zone ID (optional) ORG = "" # Your organization ID (optional) MAXP = 10 # Number of pages in the traffic tab the script will inspect
[ 2, 2896, 500, 3815, 287, 262, 1708, 7032, 13, 20559, 2886, 460, 635, 307, 3804, 2884, 262, 3141, 1627, 198, 198, 29904, 796, 13538, 1303, 3406, 3053, 2209, 198, 20373, 220, 796, 13538, 1303, 3406, 7824, 7383, 198, 57, 11651, 796, 1353...
3.772152
79
# Code to reproduce the regression experiments in the paper import numpy as np from fair_dummies.cf_regression import run_experiment # parameters are tuned on training set # choose test=True to evaluate training performance # test seed random_state_train_test = 123 # repeat the experiments for num_experiments times ...
[ 198, 2, 6127, 284, 22919, 262, 20683, 10256, 287, 262, 3348, 198, 11748, 299, 32152, 355, 45941, 198, 6738, 3148, 62, 67, 39578, 13, 12993, 62, 2301, 2234, 1330, 1057, 62, 23100, 3681, 198, 198, 2, 10007, 389, 16524, 319, 3047, 900, ...
2.037804
1,111
from flask import current_app from coronastats import db, cache app = current_app @app.route("/api/infected_log/", methods=["GET"]) @cache.cached(timeout=3600) @app.route("/api/infected_increase_log/", methods=["GET"]) @cache.cached(timeout=3600) @app.route("/api/get_last_log_by_location/", methods=["GET"]) @ca...
[ 6738, 42903, 1330, 1459, 62, 1324, 198, 198, 6738, 26920, 459, 1381, 1330, 20613, 11, 12940, 198, 198, 1324, 796, 1459, 62, 1324, 628, 198, 31, 1324, 13, 38629, 7203, 14, 15042, 14, 27816, 276, 62, 6404, 14, 1600, 5050, 28, 14692, 1...
2.574627
134
# -*- encoding: utf-8 -*- '''Database model for the "unittest" application This module provides the definition of the database tables and fields used by "unittest", the application which keeps track of the raw data and the analysis results of the polarimetric unit tests done in Bicocca. The core of the module is the...
[ 2, 532, 9, 12, 21004, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 198, 7061, 6, 38105, 2746, 329, 262, 366, 403, 715, 395, 1, 3586, 198, 198, 1212, 8265, 3769, 262, 6770, 286, 262, 6831, 8893, 290, 7032, 973, 416, 198, 1, 403, 715,...
2.453686
4,124
from mindsdb.api.mongo.classes import Responder from mindsdb.utilities.with_kwargs_wrapper import WithKWArgsWrapper responder = Responce()
[ 6738, 9017, 9945, 13, 15042, 13, 76, 25162, 13, 37724, 1330, 10328, 8623, 198, 6738, 9017, 9945, 13, 315, 2410, 13, 4480, 62, 46265, 22046, 62, 48553, 1330, 2080, 42, 54, 42035, 36918, 2848, 628, 198, 198, 5546, 263, 796, 10328, 27078...
3.227273
44
# # Copyright (c) 2019-2020 Google LLC. All Rights Reserved. # Copyright (c) 2016-2018 Nest Labs Inc. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # ...
[ 2, 198, 2, 220, 220, 220, 15069, 357, 66, 8, 13130, 12, 42334, 3012, 11419, 13, 1439, 6923, 33876, 13, 198, 2, 220, 220, 220, 15069, 357, 66, 8, 1584, 12, 7908, 21420, 23500, 3457, 13, 1439, 6923, 33876, 13, 198, 2, 198, 2, 220,...
3.001776
563
# Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. import json from typing import List from cdm.enums import CdmObjectType from cdm.persistence import PersistenceLayer from cdm.objectmodel import CdmCorpusContext, ...
[ 171, 119, 123, 2, 15069, 357, 66, 8, 5413, 10501, 13, 1439, 2489, 10395, 13, 198, 2, 49962, 739, 262, 17168, 13789, 13, 4091, 13789, 13, 14116, 287, 262, 1628, 6808, 329, 5964, 1321, 13, 198, 11748, 33918, 198, 6738, 19720, 1330, 73...
4.008523
352
''' Some of below services are referring: http://face-recognition.readthedocs.io/en/latest/_modules/face_recognition/api.html ''' import numpy as np from configs import configs
[ 7061, 6, 198, 4366, 286, 2174, 2594, 389, 9759, 25, 198, 4023, 1378, 2550, 12, 26243, 653, 13, 961, 83, 704, 420, 82, 13, 952, 14, 268, 14, 42861, 47835, 18170, 14, 2550, 62, 26243, 653, 14, 15042, 13, 6494, 198, 198, 7061, 6, 1...
3.016667
60
# -*- coding: utf-8 -*- """ Tencent is pleased to support the open source community by making 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) available. Copyright (C) 2017-2021 THL A29 Limited, a Tencent company. All rights reserved. Licensed under the MIT License (the "License"); you may not use this file except in co...
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 37811, 198, 24893, 1087, 318, 10607, 284, 1104, 262, 1280, 2723, 2055, 416, 1642, 5525, 241, 251, 165, 110, 116, 162, 247, 118, 12859, 239, 47, 7252, 50, 33176, 111, 2...
1.844881
1,934
# # Copyright (C) 2016 UAVCAN Development Team <uavcan.org> # # This software is distributed under the terms of the MIT License. # # Author: Pavel Kirienko <pavel.kirienko@zubax.com> # from . import pyqtgraph
[ 2, 198, 2, 15069, 357, 34, 8, 1584, 220, 471, 10116, 44565, 7712, 4816, 220, 1279, 84, 615, 5171, 13, 2398, 29, 198, 2, 198, 2, 770, 3788, 318, 9387, 739, 262, 2846, 286, 262, 17168, 13789, 13, 198, 2, 198, 2, 6434, 25, 49612, ...
2.826667
75
# Copyright (c) 2021 The Regents of the University of California # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are # met: redistributions of source code must retain the above copyright # notice, this lis...
[ 2, 15069, 357, 66, 8, 33448, 383, 3310, 658, 286, 262, 2059, 286, 3442, 198, 2, 1439, 2489, 10395, 13, 198, 2, 198, 2, 2297, 396, 3890, 290, 779, 287, 2723, 290, 13934, 5107, 11, 351, 393, 1231, 198, 2, 17613, 11, 389, 10431, 28...
2.271135
3,312
import copy import math import typing import jax import jax._src.util as util from jax import lax, numpy as jnp from src.backend import get_param, shard, dims_to_shape, INT_OR_TUPLE, dot, matmul, transpose from src.context import Context REVERSIBLE_CTX = typing.Tuple[typing.Dict[str, jnp.ndarray], jnp.ndarray, jnp.n...
[ 11748, 4866, 198, 11748, 10688, 198, 11748, 19720, 198, 198, 11748, 474, 897, 198, 11748, 474, 897, 13557, 10677, 13, 22602, 355, 7736, 198, 6738, 474, 897, 1330, 36919, 11, 299, 32152, 355, 474, 37659, 198, 198, 6738, 12351, 13, 1891, ...
2.626761
142
#/u/GoldenSights import praw # simple interface to the reddit API, also handles rate limiting of requests import time import sqlite3 import random '''USER CONFIGURATION''' USERNAME = "" #This is the bot's Username. In order to send mail, he must have some amount of Karma. PASSWORD = "" #This is the bot's Password. ...
[ 2, 14, 84, 14, 32378, 50, 2337, 198, 11748, 279, 1831, 1303, 2829, 7071, 284, 262, 18374, 7824, 11, 635, 17105, 2494, 15637, 286, 7007, 198, 11748, 640, 198, 11748, 44161, 578, 18, 198, 11748, 4738, 198, 198, 7061, 6, 29904, 25626, ...
3.044586
628
import string from pyparsing import * from ..constants.punctuation.deff import DASH, COMMA, EOL from ..constants.types.deff import FREQUENCY from decl import * frequency << FREQUENCY expcode << Word(string.digits + string.uppercase) expansion << expcode + Suppress(DASH) + frequency
[ 11748, 4731, 198, 198, 6738, 279, 4464, 945, 278, 1330, 1635, 198, 6738, 11485, 9979, 1187, 13, 79, 16260, 2288, 13, 2934, 487, 1330, 360, 11211, 11, 9440, 5673, 11, 412, 3535, 198, 6738, 11485, 9979, 1187, 13, 19199, 13, 2934, 487, ...
3.108696
92
import sqlite3 from scrapy.exceptions import DropItem
[ 11748, 44161, 578, 18, 198, 198, 6738, 15881, 88, 13, 1069, 11755, 1330, 14258, 7449, 628, 198 ]
3.352941
17
#!/usr/bin/env python # -*- coding: utf-8 -*- # common  import os import os.path as op # pip import netCDF4 as nc # tk from ..io.matlab import ReadMatfile def description(p): 'returns description of the file' print('getting info... {0}'.format(p)) txt = '\n\n\n-->{0}'.format(p) if op.isdir(p): ...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 198, 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 198, 2, 2219, 1849, 198, 11748, 28686, 198, 11748, 28686, 13, 6978, 355, 1034, 198, 198, 2, 7347, 198, 11748, 2010, 3...
1.932668
401
# print "This is testing value in for loop\n\n" # fruits = '<div id="b87bfc25-3cce-44f0-9948-a4f4f55a1b9f" style="height: 525; width: 100%;" class="plotly-graph-div"></div><script type="text/javascript">window.PLOTLYENV=window.PLOTLYENV || {};window.PLOTLYENV.BASE_URL="https://plot.ly";Plotly.newPlot("b87bfc25-3cce-4...
[ 198, 2, 3601, 366, 1212, 318, 4856, 1988, 287, 329, 9052, 59, 77, 59, 77, 1, 198, 198, 2, 15921, 796, 705, 27, 7146, 4686, 2625, 65, 5774, 65, 16072, 1495, 12, 18, 66, 344, 12, 2598, 69, 15, 12, 2079, 2780, 12, 64, 19, 69, 1...
2.223496
349
""" tests.unit.xmlutil_test ~~~~~~~~~~~~~~~~~~~~ """ import xml.etree.ElementTree as ET import salt.utils.xmlutil as xml from tests.support.unit import TestCase class XMLUtilTestCase(TestCase): """ Tests that salt.utils.xmlutil properly parses XML data and returns as a properly formatted dictiona...
[ 37811, 198, 220, 220, 220, 5254, 13, 20850, 13, 19875, 22602, 62, 9288, 198, 220, 220, 220, 220, 27156, 8728, 198, 37811, 198, 11748, 35555, 13, 316, 631, 13, 20180, 27660, 355, 12152, 198, 198, 11748, 8268, 13, 26791, 13, 19875, 2260...
3.541353
133
"""Meetup API.""" from flask import Flask, render_template, request, send_from_directory import json import os app = Flask(__name__, static_folder='img') @app.route('/img/<path:path>') def send_img(path): """Send image from dir.""" app.logger.debug(path) return send_from_directory('', path) @app.route...
[ 37811, 29318, 929, 7824, 526, 15931, 198, 198, 6738, 42903, 1330, 46947, 11, 8543, 62, 28243, 11, 2581, 11, 3758, 62, 6738, 62, 34945, 198, 11748, 33918, 198, 11748, 28686, 198, 198, 1324, 796, 46947, 7, 834, 3672, 834, 11, 9037, 62, ...
2.324478
527
''' Created on Aug 3, 2009 @author: rb ''' import os; import os.path; import tempfile; if __name__ == '__main__': blastPath = "/export/lab/programs/blast"; qryPath = os.path.join(blastPath, "q/mtgi9not_az"); outPath = os.path.join(blastPath, "out/mtgi9not_az2.txt"); batchSize = 20; main(blastPath, qryPath, ou...
[ 7061, 6, 198, 41972, 319, 2447, 513, 11, 3717, 198, 198, 31, 9800, 25, 374, 65, 198, 7061, 6, 198, 198, 11748, 28686, 26, 198, 11748, 28686, 13, 6978, 26, 198, 11748, 20218, 7753, 26, 198, 197, 198, 198, 361, 11593, 3672, 834, 662...
2.365517
145
import operator from haystack.query import SearchQuerySet, SQ query = 'lil way' sqs = SearchQuerySet().filter(reduce(operator.__and__, [SQ(name=word.strip()) for word in query.split(' ')]))
[ 11748, 10088, 198, 6738, 27678, 25558, 13, 22766, 1330, 11140, 20746, 7248, 11, 49747, 198, 198, 22766, 796, 705, 75, 346, 835, 6, 198, 31166, 82, 796, 11140, 20746, 7248, 22446, 24455, 7, 445, 7234, 7, 46616, 13, 834, 392, 834, 11, ...
3.064516
62
#!/usr/bin/env python3 """ Conditional imports depending on whether the AMD version is installed or not """ from lib.utils import get_backend if get_backend() == "amd": from . import losses_plaid as losses else: from . import losses_tf as losses
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 18, 198, 37811, 9724, 1859, 17944, 6906, 319, 1771, 262, 10324, 2196, 318, 6589, 393, 407, 37227, 198, 198, 6738, 9195, 13, 26791, 1330, 651, 62, 1891, 437, 198, 198, 361, 651, 62, 1891, ...
3.324675
77
import socket import json from pynput import keyboard # нужно установить для управления с клавиатуры import time msg = { "x_dir": 0, "y_dir": 0, "shot": 0 } host = ("192.168.1.1", 5000) sendFreq = 15 # слать 15 пакетов в секунду def onPress(key): """ вызывается при нажатии какой либо клави...
[ 11748, 17802, 198, 11748, 33918, 198, 6738, 279, 2047, 1996, 1330, 10586, 220, 220, 220, 220, 1303, 12466, 121, 35072, 140, 114, 22177, 15166, 220, 35072, 21727, 20375, 16142, 22177, 25443, 110, 18849, 20375, 45367, 12466, 112, 30143, 40623...
1.650761
985
# Generated by Django 3.0.2 on 2020-06-06 23:24 from django.db import migrations, models import django.db.models.deletion
[ 2, 2980, 515, 416, 37770, 513, 13, 15, 13, 17, 319, 12131, 12, 3312, 12, 3312, 2242, 25, 1731, 198, 198, 6738, 42625, 14208, 13, 9945, 1330, 15720, 602, 11, 4981, 198, 11748, 42625, 14208, 13, 9945, 13, 27530, 13, 2934, 1616, 295, ...
2.818182
44
from django.db import models from permissions.models import ENVIRONMENT_PERMISSION_TYPE
[ 6738, 42625, 14208, 13, 9945, 1330, 4981, 198, 198, 6738, 21627, 13, 27530, 1330, 12964, 53, 4663, 1340, 10979, 62, 18973, 44, 40373, 62, 25216, 628 ]
3.461538
26
from django.db import models # Create your models here.
[ 6738, 42625, 14208, 13, 9945, 1330, 4981, 628, 198, 2, 13610, 534, 4981, 994, 13, 628 ]
3.6875
16
import numpy as np import matplotlib.pyplot as plt from scipy.integrate import simps from read_env import read_env1 from abi_read import abi_read from coordsys import CoordSys if __name__ == "__main__": F = compose_wf(kk, bands, eigen_val, eigen_vec) plt.imshow(F[0]) plt.draw() plt.savefig("out.png"...
[ 11748, 299, 32152, 355, 45941, 198, 11748, 2603, 29487, 8019, 13, 9078, 29487, 355, 458, 83, 198, 6738, 629, 541, 88, 13, 18908, 4873, 1330, 985, 862, 198, 6738, 1100, 62, 24330, 1330, 1100, 62, 24330, 16, 198, 6738, 450, 72, 62, 96...
2.439394
132
""" CTD parses the CTD data file and yields a generated dictionary of record values. For a description of the CTD file format see the following link: http://ctdbase.org/downloads/;jsessionid=0BD8D8C07B7661002359C02D7C0275F8 Source Project: biothings.interactions Author: Greg Taylor: greg.k.taylor@gmail.com """ i...
[ 37811, 198, 4177, 35, 13544, 274, 262, 16356, 35, 1366, 2393, 290, 19299, 198, 64, 7560, 22155, 286, 1700, 3815, 13, 198, 198, 1890, 257, 6764, 286, 262, 16356, 35, 2393, 5794, 766, 262, 198, 27780, 278, 2792, 25, 198, 198, 4023, 13...
3.0125
160
#!/usr/bin/env python3 import sys import os # Change path so we find Xlib sys.path.append(os.path.join(os.path.dirname(__file__), '..')) from Xlib import X, display, Xutil from Xlib.protocol import request if __name__ == '__main__': main(sys.argv) # vim: noet ts=4
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 18, 198, 198, 11748, 25064, 198, 11748, 28686, 198, 198, 2, 9794, 3108, 523, 356, 1064, 1395, 8019, 198, 17597, 13, 6978, 13, 33295, 7, 418, 13, 6978, 13, 22179, 7, 418, 13, 6978, 13, 1...
2.53271
107
# idcount : enumerate identifiers in files. import os import os.path rwordSet = set(["asm", "auto", "bool", "break", "case", "catch", "char", "class", "const", "constexpr", "const_cast", "continue", "decltype", "default", "delete", "do", "double", "dynamic_cast", "else", "enum", "...
[ 2, 4686, 9127, 1058, 27056, 378, 42814, 287, 3696, 13, 201, 198, 201, 198, 11748, 28686, 201, 198, 11748, 28686, 13, 6978, 201, 198, 201, 198, 81, 4775, 7248, 796, 900, 7, 14692, 8597, 1600, 366, 23736, 1600, 366, 30388, 1600, 366, ...
2.235679
611
''' Created on 25.05.2011 @author: SIGIESEC ''' from timeit import Timer import platform KEY_COLUMN="key_column" VALUE_COLUMN="value_column" if __name__ == "__main__": print "Python version %s (%s)" % (platform.python_version(), getattr(platform, "python_implementation", lambda: "Unknown")()) print platform...
[ 7061, 6, 198, 41972, 319, 1679, 13, 2713, 13, 9804, 198, 198, 31, 9800, 25, 33993, 11015, 2943, 198, 7061, 6, 198, 198, 6738, 640, 270, 1330, 5045, 263, 198, 11748, 3859, 198, 198, 20373, 62, 25154, 5883, 45, 2625, 2539, 62, 28665, ...
2.922619
168
#!/usr/bin/env python #filename: dinkum-install-from-git.py #path: project/bin/ #repo: http://github.com/dinkumsoftware/dinkum.git """ This installs all the dinkumsoftware programs & code in ~/.dinkum/git-copy by copying files from the git clone of dinkumsoftware. It puts symbolic links in ~/doc/dinkum/* to all ...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 198, 2, 34345, 25, 288, 676, 388, 12, 17350, 12, 6738, 12, 18300, 13, 9078, 198, 2, 6978, 25, 1628, 14, 8800, 14, 198, 2, 260, 7501, 25, 2638, 1378, 12567, 13, 785, 14, 67, 676, 388, ...
2.973264
6,957
import tweepy import logging import os
[ 198, 11748, 4184, 538, 88, 198, 11748, 18931, 198, 11748, 28686, 628 ]
3.416667
12
""" Face Mesh Module By : JikanDev Website : https://jikandev.xyz/ """ import cv2 import mediapipe as mp class FaceMeshDetector(): """ Find 468 Landmarks using the mediapipe library. Exports the landmarks in pixel format. """ def __init__(self, mode=False, maxFaces=1, refine_lm=False, m...
[ 37811, 201, 198, 32388, 47529, 19937, 201, 198, 3886, 1058, 449, 49894, 13603, 201, 198, 33420, 1058, 3740, 1378, 73, 1134, 392, 1990, 13, 5431, 89, 14, 201, 198, 37811, 201, 198, 11748, 269, 85, 17, 201, 198, 11748, 16957, 499, 3757,...
2.10814
1,683
import tempfile import uuid from enum import Enum from pathlib import Path from typing import NamedTuple, Dict from django.contrib.auth.models import User from django.contrib.postgres.fields import JSONField from django.db import models from django.db.models import Sum, Max, QuerySet import ppe.dataclasses as dc from...
[ 11748, 20218, 7753, 198, 11748, 334, 27112, 198, 6738, 33829, 1330, 2039, 388, 198, 6738, 3108, 8019, 1330, 10644, 198, 6738, 19720, 1330, 34441, 51, 29291, 11, 360, 713, 198, 198, 6738, 42625, 14208, 13, 3642, 822, 13, 18439, 13, 27530...
3.167513
197
from django.test import TestCase from libs.crypto.encrypt import CryptoHelper
[ 6738, 42625, 14208, 13, 9288, 1330, 6208, 20448, 198, 198, 6738, 9195, 82, 13, 29609, 78, 13, 12685, 6012, 1330, 36579, 47429, 628 ]
3.478261
23
#!/usr/bin/env python3 import gym import ptan import numpy as np from tensorboardX import SummaryWriter import torch import torch.nn as nn import torch.nn.functional as F import torch.optim as optim GAMMA = 0.99 LEARNING_RATE = 0.01 EPISODES_TO_TRAIN = 4 if __name__ == "__main__": env = gym.make("CartPole-v0"...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 18, 198, 11748, 11550, 198, 11748, 279, 38006, 198, 11748, 299, 32152, 355, 45941, 198, 6738, 11192, 273, 3526, 55, 1330, 21293, 34379, 198, 198, 11748, 28034, 198, 11748, 28034, 13, 20471, 3...
2.085393
1,335
# future from __future__ import annotations # stdlib from typing import Any from typing import Dict from typing import List from typing import Optional # third party from google.protobuf.reflection import GeneratedProtocolMessageType # syft absolute import syft as sy # relative from .....proto.core.node.common.acti...
[ 2, 2003, 198, 6738, 11593, 37443, 834, 1330, 37647, 198, 198, 2, 14367, 8019, 198, 6738, 19720, 1330, 4377, 198, 6738, 19720, 1330, 360, 713, 198, 6738, 19720, 1330, 7343, 198, 6738, 19720, 1330, 32233, 198, 198, 2, 2368, 2151, 198, 6...
3.619048
168
from __future__ import print_function, unicode_literals from datetime import datetime from pathlib import Path from PyQt5 import QtWidgets from PyQt5.QtCore import QThread from PyQt5.QtGui import QTextDocument, QTextBlock import tracra_export from mailbox import MailboxAnalyzeObject from oauth_utils import openOauth...
[ 6738, 11593, 37443, 834, 1330, 3601, 62, 8818, 11, 28000, 1098, 62, 17201, 874, 198, 198, 6738, 4818, 8079, 1330, 4818, 8079, 198, 6738, 3108, 8019, 1330, 10644, 198, 198, 6738, 9485, 48, 83, 20, 1330, 33734, 54, 312, 11407, 198, 6738...
2.876
250
#!/usr/bin/env python from gnuradio import gr from gnuradio import audio from gnuradio import trellis, digital, filter, blocks from gnuradio import eng_notation import math import sys import random import fsm_utils try: from gnuradio import analog except ImportError: sys.stderr.write("Error: Program requires ...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 198, 198, 6738, 19967, 333, 324, 952, 1330, 1036, 198, 6738, 19967, 333, 324, 952, 1330, 6597, 198, 6738, 19967, 333, 324, 952, 1330, 2054, 297, 271, 11, 4875, 11, 8106, 11, 7021, 198, 67...
2.736486
148
import math def get_chunks(xs, chunk_count=3): """ Helper function to split a list into roughly equally sized chunks. """ chunk_width = math.ceil(len(xs) / chunk_count) ranges = range(0, len(xs), chunk_width) return [xs[x:x + chunk_width] for x in ranges]
[ 11748, 10688, 628, 198, 4299, 651, 62, 354, 14125, 7, 34223, 11, 16058, 62, 9127, 28, 18, 2599, 198, 220, 220, 220, 37227, 198, 220, 220, 220, 5053, 525, 2163, 284, 6626, 257, 1351, 656, 7323, 8603, 19943, 22716, 13, 198, 220, 220, ...
2.635514
107
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ ####################################### # Script que permite crear gráfica histórica # a partir de datos de precipitación de la NASA # Author: Jorge Mauricio # Email: jorge.ernesto.mauricio@gmail.com # Date: 2018-02-01 # Version: 1.0 ###################################...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 18, 198, 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 37811, 198, 29113, 4242, 21017, 198, 2, 12327, 8358, 9943, 578, 1126, 283, 1036, 6557, 69, 3970, 1554, 10205, 30997...
2.919192
198
# region [Imports] # * Standard Library Imports ----------------------------------------------------------------------------> import os import asyncio from io import BytesIO from pathlib import Path from datetime import datetime from tempfile import TemporaryDirectory from textwrap import dedent # * Third Party Impo...
[ 198, 198, 2, 3814, 685, 3546, 3742, 60, 198, 198, 2, 1635, 8997, 10074, 1846, 3742, 16529, 10541, 29, 198, 11748, 28686, 198, 11748, 30351, 952, 198, 6738, 33245, 1330, 2750, 4879, 9399, 198, 6738, 3108, 8019, 1330, 10644, 198, 6738, ...
2.446888
4,274
from tkinter import * from math import sqrt root = Tk() root.title("Calculadora") root['bg'] = "cyan" f_num = DoubleVar() l_num = DoubleVar() operation = StringVar() label_value = StringVar() singal = IntVar() singal.set(0) # declaring widgets label = Label(root, textvariable = label_value, bg = "cyan", font = ("an...
[ 6738, 256, 74, 3849, 1330, 1635, 198, 6738, 10688, 1330, 19862, 17034, 198, 198, 15763, 796, 309, 74, 3419, 198, 15763, 13, 7839, 7203, 9771, 3129, 324, 5799, 4943, 198, 15763, 17816, 35904, 20520, 796, 366, 948, 272, 1, 198, 198, 69,...
2.547676
1,678
# -*- coding: utf-8 -*- """ Copyright [2009-2017] EMBL-European Bioinformatics Institute 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...
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 198, 37811, 198, 15269, 685, 10531, 12, 5539, 60, 17228, 9148, 12, 22030, 16024, 259, 18982, 873, 5136, 198, 26656, 15385, 739, 262, 24843, 13789, 11, 10628, 362, 13, 15...
2.97543
407
from django.conf import settings from django.contrib import messages from django.contrib.auth.decorators import permission_required from django.template.response import TemplateResponse from django.shortcuts import get_object_or_404, redirect from django.utils.translation import pgettext_lazy from ....core.utils impor...
[ 6738, 42625, 14208, 13, 10414, 1330, 6460, 198, 6738, 42625, 14208, 13, 3642, 822, 1330, 6218, 198, 6738, 42625, 14208, 13, 3642, 822, 13, 18439, 13, 12501, 273, 2024, 1330, 7170, 62, 35827, 198, 6738, 42625, 14208, 13, 28243, 13, 26209...
3.471761
301
SACCHAROMYCES_CEREVISIAE_TAXONOMY_ID = 4932 DROSOPHILA_MELANOGASTER_TAXONOMY_ID = 7227 HOMO_SAPIENS_TAXONOMY_ID = 9606 GENE_PLACEHOLDER = 'MYGENETOKEN' DISEASE_PLACEHOLDER = 'MYDISEASETOKEN'
[ 50, 2246, 38019, 2662, 44816, 1546, 62, 34, 9338, 29817, 3539, 36, 62, 5603, 55, 1340, 2662, 56, 62, 2389, 796, 5125, 2624, 198, 7707, 2640, 3185, 39, 47164, 62, 44, 3698, 1565, 7730, 1921, 5781, 62, 5603, 55, 1340, 2662, 56, 62, ...
1.828571
105
import torch import torch.nn as nn from model.ctr.fm import FM from model.basic.mlp import MLP from model.basic.output_layer import OutputLayer """ Model: FNN: Factorization-machine supported Neural Network Version: arXiv [v1] Mon, 11 Jan 2016 10:04:40 UTC Reference: Zhang, W., Du, T., & Wang, J. (2016). D...
[ 11748, 28034, 198, 11748, 28034, 13, 20471, 355, 299, 77, 198, 6738, 2746, 13, 24087, 13, 38353, 1330, 18695, 198, 6738, 2746, 13, 35487, 13, 4029, 79, 1330, 10373, 47, 198, 6738, 2746, 13, 35487, 13, 22915, 62, 29289, 1330, 25235, 49...
2.966667
150
n1 = int(input("Digite um número inteiro: ")) n2 = int(input("Digite um número inteiro: ")) n3 = int(input("Digite um número inteiro: ")) n4 = int(input("Digite um número inteiro: ")) n5 = int(input("Digite um número inteiro: ")) lista1 = [n1, n2, n3, n4, n5] print(lista1) lista2 = [1, 2, 3, 4, 5] print(lista2)
[ 77, 16, 796, 493, 7, 15414, 7203, 19511, 578, 23781, 299, 21356, 647, 78, 493, 68, 7058, 25, 366, 4008, 198, 77, 17, 796, 493, 7, 15414, 7203, 19511, 578, 23781, 299, 21356, 647, 78, 493, 68, 7058, 25, 366, 4008, 198, 77, 18, 79...
2.00641
156
# ----------------------------------------------------------------------------- # Copyright (c) 2014--, The Qiita Development Team. # # Distributed under the terms of the BSD 3-clause License. # # The full license is in the file LICENSE, distributed with this software. # ------------------------------------------------...
[ 2, 16529, 32501, 198, 2, 15069, 357, 66, 8, 1946, 438, 11, 383, 21924, 5350, 7712, 4816, 13, 198, 2, 198, 2, 4307, 6169, 739, 262, 2846, 286, 262, 347, 10305, 513, 12, 565, 682, 13789, 13, 198, 2, 198, 2, 383, 1336, 5964, 318, ...
3.885714
175
from .Athena import Athena from .Configuration import configuration from .console import Console from .Embeds import embeds from .PugTools import PugSession from .Database import GuildDatabase, Guild
[ 6738, 764, 2953, 831, 64, 1330, 21341, 201, 198, 6738, 764, 38149, 1330, 8398, 201, 198, 6738, 764, 41947, 1330, 24371, 201, 198, 6738, 764, 31567, 5379, 1330, 11525, 82, 201, 198, 6738, 764, 47, 1018, 33637, 1330, 33260, 36044, 201, ...
3.961538
52
import numpy as np import pylab as plt import os from gastrometry import biweight_median, biweight_mad from gastrometry import median_check_finite import pickle if __name__ == "__main__": #stat = plot_distribution_residuals(path='../data/', stat = 'stat.pkl', mas=3600.*1e3) #plt.savefig('../../../../Dropbox/...
[ 11748, 299, 32152, 355, 45941, 198, 11748, 279, 2645, 397, 355, 458, 83, 198, 11748, 28686, 198, 6738, 21956, 398, 11973, 1330, 3182, 6551, 62, 1150, 666, 11, 3182, 6551, 62, 9937, 198, 6738, 21956, 398, 11973, 1330, 14288, 62, 9122, ...
2.497238
181
FORMER_TEAM_NAME_MAP = { 'AFC Bournemouth': 'AFC Bournemouth', 'Accrington FC': 'Accrington FC', 'Arsenal FC': 'Arsenal FC', 'Aston Villa': 'Aston Villa', 'Barnsley FC': 'Barnsley FC', 'Birmingham City': 'Birmingham City', 'Birmingham FC': 'Birmingham City', 'Blackburn Rovers': 'Blackbur...
[ 21389, 1137, 62, 9328, 2390, 62, 20608, 62, 33767, 796, 1391, 198, 220, 220, 220, 705, 32, 4851, 347, 1798, 46880, 10354, 705, 32, 4851, 347, 1798, 46880, 3256, 198, 220, 220, 220, 705, 17320, 24833, 10029, 10354, 705, 17320, 24833, 1...
2.607167
1,479
import py import pytest from _pytest.tmpdir import tmpdir, TempdirHandler @pytest.mark.skipif(not hasattr(py.path.local, 'mksymlinkto'), reason="symlink not available on this platform")
[ 11748, 12972, 198, 11748, 12972, 9288, 198, 198, 6738, 4808, 9078, 9288, 13, 22065, 15908, 1330, 45218, 15908, 11, 24189, 15908, 25060, 198, 198, 31, 9078, 9288, 13, 4102, 13, 48267, 361, 7, 1662, 468, 35226, 7, 9078, 13, 6978, 13, 12...
2.506024
83
import os import sys import win32gui import win32con import time win32gui.EnumWindows( winEnumHandler, sys.argv[1] ) print(sys.argv) # Manuscript_Dec_30.pdf - Adobe Reader sys.exit()
[ 11748, 28686, 198, 11748, 25064, 198, 198, 11748, 1592, 2624, 48317, 198, 11748, 1592, 2624, 1102, 198, 11748, 640, 628, 198, 5404, 2624, 48317, 13, 4834, 388, 11209, 7, 1592, 4834, 388, 25060, 11, 25064, 13, 853, 85, 58, 16, 60, 1267...
2.647887
71
from eth_utils import ( encode_hex, ) from eth.typing import ( BaseOrSpoofTransaction, ) from eth.vm.computation import BaseComputation from eth.vm.forks.homestead.state import ( HomesteadState, HomesteadTransactionExecutor, ) from .computation import SpuriousDragonComputation from ._utils import co...
[ 6738, 4555, 62, 26791, 1330, 357, 198, 220, 220, 220, 37773, 62, 33095, 11, 198, 8, 198, 198, 6738, 4555, 13, 774, 13886, 1330, 357, 198, 220, 220, 220, 7308, 5574, 4561, 37711, 48720, 11, 198, 8, 198, 198, 6738, 4555, 13, 14761, ...
2.974138
116
# Normal Incremental Function # Lambda Expression incrementLamba = lambda x : x * 3 print("The Increment Normal : ", incrementNormal(50)) print("The Increment Lamba : ", incrementLamba(15)) productLamba = lambda x, y : x * y print("The Produt Lamba : ", productLamba(15, 3)) # # Printing The Type # print(type(increm...
[ 2, 14435, 10791, 37098, 15553, 198, 198, 2, 21114, 6814, 41986, 198, 24988, 434, 43, 31842, 796, 37456, 2124, 1058, 2124, 1635, 513, 198, 198, 4798, 7203, 464, 10791, 434, 14435, 1058, 33172, 18703, 26447, 7, 1120, 4008, 198, 4798, 7203...
3.13913
115
from logging import getLogger from django.db.models.signals import pre_save, pre_delete from django.dispatch import receiver from dynamic_databases.models import DynamicDatabaseConfig logger = getLogger('dynamic_databases.receivers') @receiver([pre_save, pre_delete], sender=DynamicDatabaseConfig)
[ 198, 6738, 18931, 1330, 651, 11187, 1362, 198, 198, 6738, 42625, 14208, 13, 9945, 13, 27530, 13, 12683, 874, 1330, 662, 62, 21928, 11, 662, 62, 33678, 198, 6738, 42625, 14208, 13, 6381, 17147, 1330, 9733, 198, 198, 6738, 8925, 62, 196...
3.426966
89
import exceptions import requests class Client(object): """Client for the API. :param string session: Keystoneauth session. :param string token: Token used for HuaWei VBS access. :param string endpoint: HuaWei VBS endpoint url. :param string tenant_id: The project ID used for context. """ ...
[ 11748, 13269, 198, 11748, 7007, 628, 198, 4871, 20985, 7, 15252, 2599, 198, 220, 220, 220, 37227, 11792, 329, 262, 7824, 13, 198, 220, 220, 220, 1058, 17143, 4731, 6246, 25, 29055, 18439, 6246, 13, 198, 220, 220, 220, 1058, 17143, 473...
2.061738
1,231
""" Created on 08 Okt. 2021 @author: Bas van Stein This example shows how you can use MiP-EGO in order to perform hyper-parameter optimization for machine learning tasks. """ #import packages from sklearn.datasets import load_iris from sklearn.svm import SVC from sklearn.model_selection import cross_val_score, KFold...
[ 37811, 198, 41972, 319, 8487, 6762, 83, 13, 33448, 198, 198, 31, 9800, 25, 6455, 5719, 15215, 198, 198, 1212, 1672, 2523, 703, 345, 460, 779, 13756, 47, 12, 7156, 46, 287, 1502, 284, 1620, 8718, 12, 17143, 2357, 23989, 329, 4572, 46...
3.063439
599
# -*- python -*- # This software was produced by NIST, an agency of the U.S. government, # and by statute is not subject to copyright in the United States. # Recipients of this software assume all responsibilities associated # with its operation, modification and maintenance. However, to # facilitate maintenance we as...
[ 2, 532, 9, 12, 21015, 532, 9, 12, 198, 198, 2, 770, 3788, 373, 4635, 416, 399, 8808, 11, 281, 4086, 286, 262, 471, 13, 50, 13, 1230, 11, 198, 2, 290, 416, 14195, 318, 407, 2426, 284, 6634, 287, 262, 1578, 1829, 13, 198, 2, 3...
3.769006
342
from celery import Task, shared_task from celery.utils.log import get_logger from spaceone.core.error import ERROR_TASK_LOCATOR, ERROR_TASK_METHOD from spaceone.core.locator import Locator from spaceone.core.logger import set_logger from spaceone.core.transaction import Transaction _LOGGER = get_logger(__name__) ...
[ 6738, 18725, 1924, 1330, 15941, 11, 4888, 62, 35943, 198, 6738, 18725, 1924, 13, 26791, 13, 6404, 1330, 651, 62, 6404, 1362, 198, 198, 6738, 2272, 505, 13, 7295, 13, 18224, 1330, 33854, 62, 51, 1921, 42, 62, 29701, 25633, 11, 33854, ...
2.992248
129
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.db import models, migrations import datetime from django.utils.timezone import utc
[ 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, 9945, 1330, 4981, 11, 15720, 602, 198, 11748, 4818, 8079, 198, 6738, 42625, ...
3.037736
53
import io import os.path from setuptools import find_packages, setup version = '0.0.1-alpha' def parse_requirements(filename): ''' load requirements from a pip requirements file''' lineiter = (line.strip() for line in open(filename)) return [line for line in lineiter if line and not line.startswith('#')] ...
[ 11748, 33245, 198, 11748, 28686, 13, 6978, 198, 6738, 900, 37623, 10141, 1330, 1064, 62, 43789, 11, 9058, 198, 198, 9641, 796, 705, 15, 13, 15, 13, 16, 12, 26591, 6, 198, 198, 4299, 21136, 62, 8897, 18883, 7, 34345, 2599, 198, 220, ...
2.519337
362
from __future__ import print_function import numpy as np import warnings from keras.layers import merge, Input from keras.layers import Dense, Activation, Flatten, Dropout from keras.layers import Convolution3D, MaxPooling3D, ZeroPadding3D, AveragePooling3D, UpSampling3D from keras.layers import BatchNormalization fr...
[ 6738, 11593, 37443, 834, 1330, 3601, 62, 8818, 198, 198, 11748, 299, 32152, 355, 45941, 198, 11748, 14601, 198, 198, 6738, 41927, 292, 13, 75, 6962, 1330, 20121, 11, 23412, 198, 6738, 41927, 292, 13, 75, 6962, 1330, 360, 1072, 11, 131...
3.225166
151
import logging from pprint import pprint, pformat # noqa from flask import request from pantomime.types import PDF, CSV from banal import ensure_list from followthemoney import model from followthemoney.types import registry from followthemoney.helpers import entity_filename from aleph.core import url_for from aleph....
[ 11748, 18931, 198, 6738, 279, 4798, 1330, 279, 4798, 11, 279, 18982, 220, 1303, 645, 20402, 198, 6738, 42903, 1330, 2581, 198, 6738, 279, 11456, 524, 13, 19199, 1330, 12960, 11, 44189, 198, 6738, 3958, 282, 1330, 4155, 62, 4868, 198, ...
3.544554
202
from django.db.models import fields from django.db.models.expressions import ExpressionWrapper from django.db.models.fields import IntegerField from django.http.response import HttpResponse from django.shortcuts import redirect, render from django.views.generic import TemplateView from django.utils import timezone from...
[ 6738, 42625, 14208, 13, 9945, 13, 27530, 1330, 7032, 198, 6738, 42625, 14208, 13, 9945, 13, 27530, 13, 42712, 507, 1330, 41986, 36918, 2848, 198, 6738, 42625, 14208, 13, 9945, 13, 27530, 13, 25747, 1330, 34142, 15878, 198, 6738, 42625, ...
3.476563
384
import unittest import torch from rising.transforms import Pad
[ 11748, 555, 715, 395, 198, 198, 11748, 28034, 198, 198, 6738, 7396, 13, 7645, 23914, 1330, 15744, 628 ]
3.666667
18
from grafo import Grafo vertices = ['J', 'C', 'E', 'P', 'M', 'T', 'Z'] arestas = {'a1': 'J-C', 'a2': 'C-E', 'a3': 'C-E', 'a4': 'C-P', 'a5': 'C-P', 'a6': 'C-M', 'a7': 'C-T', 'a8': 'M-T', 'a9': 'T-Z'} paraiba = Grafo(vertices, arestas) grafo = Grafo(['A', 'B', 'C', 'D', 'E', 'F', 'G', 'H', 'I', 'J', 'K'], ...
[ 6738, 7933, 6513, 1330, 7037, 6513, 198, 198, 1851, 1063, 796, 37250, 41, 3256, 705, 34, 3256, 705, 36, 3256, 705, 47, 3256, 705, 44, 3256, 705, 51, 3256, 705, 57, 20520, 198, 12423, 292, 796, 1391, 6, 64, 16, 10354, 705, 41, 12, ...
1.722034
590
"""scrapli_community.scrapli.genericdriver.sync""" import time from scrapli.driver import NetworkDriver def default_sync_on_open(conn: NetworkDriver) -> None: """ scrapli_genericdriver default on_open callable This is tested with a cisco wlc using auth_bypass so we have to send creds during on open ...
[ 37811, 1416, 430, 489, 72, 62, 28158, 13, 1416, 430, 489, 72, 13, 41357, 26230, 13, 27261, 37811, 198, 11748, 640, 198, 198, 6738, 19320, 489, 72, 13, 26230, 1330, 7311, 32103, 628, 198, 4299, 4277, 62, 27261, 62, 261, 62, 9654, 7, ...
2.494975
398
__all__ = ['instructions']
[ 834, 439, 834, 796, 37250, 259, 7249, 507, 20520 ]
2.888889
9
#!/usr/bin/python # coding=utf-8 # # This scripts reformats old metric files by adding a version number and a date
[ 2, 48443, 14629, 14, 8800, 14, 29412, 198, 2, 19617, 28, 40477, 12, 23, 198, 2, 198, 2, 770, 14750, 4975, 1381, 1468, 18663, 3696, 416, 4375, 257, 2196, 1271, 290, 257, 3128, 628, 198 ]
3.342857
35
import seaborn as sns import pandas as pd import matplotlib.pyplot as plt import os bench_result = f'{os.path.dirname(__file__)}/bench_result.txt' if __name__ == '__main__': load_df()
[ 11748, 384, 397, 1211, 355, 3013, 82, 198, 11748, 19798, 292, 355, 279, 67, 198, 11748, 2603, 29487, 8019, 13, 9078, 29487, 355, 458, 83, 198, 11748, 28686, 198, 198, 26968, 62, 20274, 796, 277, 6, 90, 418, 13, 6978, 13, 15908, 3672...
2.493506
77
#! /usr/bin/env python # -*- coding: utf-8 -*- import setuptools with open('README.md') as f: long_description = f.read() setuptools.setup( name='jumper', packages=["jumper"], description="Discontinuous transcript assembly for coronaviruses", long_description=long_description, long_description...
[ 2, 0, 1220, 14629, 14, 8800, 14, 24330, 21015, 198, 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 11748, 900, 37623, 10141, 198, 198, 4480, 1280, 10786, 15675, 11682, 13, 9132, 11537, 355, 277, 25, 198, 220, 220, ...
2.353741
294
# Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. The ASF licenses this file # to you under the Apache License, Version 2.0 (the # "License"); you may not u...
[ 2, 49962, 284, 262, 24843, 10442, 5693, 357, 1921, 37, 8, 739, 530, 198, 2, 393, 517, 18920, 5964, 11704, 13, 220, 4091, 262, 28536, 2393, 198, 2, 9387, 351, 428, 670, 329, 3224, 1321, 198, 2, 5115, 6634, 9238, 13, 220, 383, 7054,...
2.405862
14,569
from gmpy2 import invert import libnum e = 65537 n = 88503001447845031603457048661635807319447136634748350130947825183012205093541 c = 40876621398366534035989065383910105526025410999058860023908252093679681817257 # from yafu p = 274539690398523616505159415195049044439 q = 322368694010594584041053487661458382819 asser...
[ 6738, 308, 3149, 88, 17, 1330, 287, 1851, 198, 11748, 9195, 22510, 198, 198, 68, 796, 45021, 2718, 198, 77, 796, 9193, 1120, 6200, 1415, 2857, 5705, 31938, 1433, 3070, 2231, 2154, 2780, 2791, 1433, 2327, 1795, 4790, 1129, 34825, 1485, ...
2.12
200
from collections import defaultdict from brownie import chain from yearn.networks import Network INCIDENTS = defaultdict(list) INCIDENTS.update({ Network.Mainnet: { # yUSDC getPricePerFullShare reverts from block 10532764 to block 10532775 because all liquidity was removed for testing "0x597aD1e...
[ 6738, 17268, 1330, 4277, 11600, 198, 198, 6738, 7586, 494, 1330, 6333, 198, 198, 6738, 614, 77, 13, 3262, 5225, 1330, 7311, 198, 198, 30158, 2389, 15365, 796, 4277, 11600, 7, 4868, 8, 198, 198, 30158, 2389, 15365, 13, 19119, 15090, 19...
1.985063
1,272
# -*- coding: utf-8 -*- # Generated by the protocol buffer compiler. DO NOT EDIT! # source: google/api/system_parameter.proto import sys _b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) from google.protobuf import descriptor as _descriptor from google.protobuf import message as _message from...
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 2, 2980, 515, 416, 262, 8435, 11876, 17050, 13, 220, 8410, 5626, 48483, 0, 198, 2, 2723, 25, 23645, 14, 15042, 14, 10057, 62, 17143, 2357, 13, 1676, 1462, 198, 198, ...
2.566386
2,493
import ast import re import pymel.core as pm import maya.cmds as cmds import maya.OpenMaya as api import utils __all__ = [ 'decodeMetaData', 'decodeMetaDataValue', 'encodeMetaData', 'encodeMetaDataValue', 'findMetaNodes', 'getMetaClasses', 'getMetaData', 'hasMetaClass', 'isMetaN...
[ 198, 11748, 6468, 198, 11748, 302, 198, 198, 11748, 279, 4948, 417, 13, 7295, 355, 9114, 198, 11748, 743, 64, 13, 28758, 82, 355, 23991, 82, 198, 11748, 743, 64, 13, 11505, 6747, 64, 355, 40391, 198, 198, 11748, 3384, 4487, 628, 198...
2.446325
5,673
import argparse import os from model import build_face_encoder from recognizer import FaceRecognizer if __name__ == "__main__": parser = argparse.ArgumentParser(description = "") parser.add_argument("--weights", dest="weights", required=True, help="path to pre-train vgg-face weights file") parser.add_arg...
[ 11748, 1822, 29572, 198, 11748, 28686, 198, 198, 6738, 2746, 1330, 1382, 62, 2550, 62, 12685, 12342, 198, 6738, 3018, 7509, 1330, 15399, 6690, 2360, 7509, 198, 198, 361, 11593, 3672, 834, 6624, 366, 834, 12417, 834, 1298, 198, 220, 220,...
2.991329
346
from datetime import datetime from custom.ilsgateway.utils import supply_points_with_latest_status_by_datespan, get_current_group from dimagi.utils.dates import DateSpan
[ 6738, 4818, 8079, 1330, 4818, 8079, 198, 198, 6738, 2183, 13, 4487, 10494, 1014, 13, 26791, 1330, 5127, 62, 13033, 62, 4480, 62, 42861, 62, 13376, 62, 1525, 62, 19581, 6839, 11, 651, 62, 14421, 62, 8094, 198, 6738, 5391, 18013, 13, ...
3.392157
51
from datetime import datetime from grpc_adenine.database import (connection as db) """ ServicesList table is mapped to the elastos_console database. It maps the User with its api key. """
[ 6738, 4818, 8079, 1330, 4818, 8079, 198, 198, 6738, 1036, 14751, 62, 40780, 500, 13, 48806, 1330, 357, 38659, 355, 20613, 8, 198, 198, 37811, 198, 31007, 8053, 3084, 318, 27661, 284, 262, 1288, 459, 418, 62, 41947, 6831, 13, 632, 8739...
3.673077
52
from sys import stdin from enum import Enum #the two lines below are for the final code #setarr(arr) #arr = sortlines(arr, order) main()
[ 6738, 25064, 1330, 14367, 259, 198, 6738, 33829, 1330, 2039, 388, 198, 198, 2, 1169, 734, 3951, 2174, 389, 329, 262, 2457, 2438, 198, 198, 2, 2617, 3258, 7, 3258, 8, 198, 2, 3258, 796, 3297, 6615, 7, 3258, 11, 1502, 8, 198, 220, ...
2.305556
72
# Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. # SPDX-License-Identifier: MIT-0 """ Pytorch map style dataset classes for proteins (seq, struct, seq+struct). Modified from https://github.com/drorlab/gvp-pytorch/blob/main/gvp/data.py """ import math import tqdm import numpy as np import torch impo...
[ 2, 15069, 6186, 13, 785, 11, 3457, 13, 393, 663, 29116, 13, 1439, 6923, 33876, 13, 198, 2, 30628, 55, 12, 34156, 12, 33234, 7483, 25, 17168, 12, 15, 198, 198, 37811, 198, 20519, 13165, 354, 3975, 3918, 27039, 6097, 329, 15568, 357, ...
2.073949
8,276
# -*- coding: utf-8 -*- import time import requests from dateutil.parser import parse from linebot import LineBotApi from linebot.models import TextSendMessage from linebot.exceptions import LineBotApiError # 爬蟲參考 # http://bhan0507.logdown.com/posts/1291544-python-facebook-api # 在Facebook Graph API Exploer取得token(自己新...
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 11748, 640, 198, 11748, 7007, 198, 6738, 3128, 22602, 13, 48610, 1330, 21136, 198, 6738, 1627, 13645, 1330, 6910, 20630, 32, 14415, 198, 6738, 1627, 13645, 13, 27530, 1330...
1.30517
2,592