content
stringlengths
1
1.05M
input_ids
listlengths
1
883k
ratio_char_token
float64
1
22.9
token_count
int64
1
883k
import tempfile from pathlib import Path import pytest from dug_helpers.dug_utils import FileFetcher, get_topmed_files, get_dbgap_files from roger.Config import config
[ 11748, 20218, 7753, 198, 198, 6738, 3108, 8019, 1330, 10644, 198, 198, 11748, 12972, 9288, 198, 198, 6738, 18735, 62, 16794, 364, 13, 646, 70, 62, 26791, 1330, 9220, 37, 316, 2044, 11, 651, 62, 4852, 1150, 62, 16624, 11, 651, 62, 99...
3.107143
56
# coding: utf-8 # truepy # Copyright (C) 2014-2015 Moses Palmr # # This program is free software: you can redistribute it and/or modify it under # the terms of the GNU General Public License as published by the Free Software # Foundation, either version 3 of the License, or (at your option) any later # version. # # Thi...
[ 2, 19617, 25, 3384, 69, 12, 23, 198, 2, 2081, 9078, 198, 2, 15069, 357, 34, 8, 1946, 12, 4626, 19010, 18358, 81, 198, 2, 198, 2, 770, 1430, 318, 1479, 3788, 25, 345, 460, 17678, 4163, 340, 290, 14, 273, 13096, 340, 739, 198, 2...
3.595745
282
# -*- coding: utf-8 -*- from elasticsearch import Elasticsearch from datetime import timedelta import datetime import os import json import logging from configparser import ConfigParser # logging.basicConfig(filename='logging_es.log', level=logging.INFO, format='%(asctime)s - %(name)s - %(levelna...
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 198, 6738, 27468, 12947, 1330, 48567, 12947, 198, 6738, 4818, 8079, 1330, 28805, 12514, 198, 11748, 4818, 8079, 198, 11748, 28686, 198, 11748, 33918, 198, 11748, 18931, 198,...
2.275992
529
__version__ = """1.8.4"""
[ 834, 9641, 834, 796, 37227, 16, 13, 23, 13, 19, 37811 ]
2.272727
11
from django.contrib import admin # general admin settings admin.site.site_header = 'Danesfield Admin' admin.site.site_title = 'Danesfield Admin'
[ 6738, 42625, 14208, 13, 3642, 822, 1330, 13169, 198, 198, 2, 2276, 13169, 6460, 198, 28482, 13, 15654, 13, 15654, 62, 25677, 796, 705, 35, 7305, 3245, 32053, 6, 198, 28482, 13, 15654, 13, 15654, 62, 7839, 796, 705, 35, 7305, 3245, 3...
3.244444
45
#!/usr/bin/env python # encoding: utf-8 """ expfitting.py Provide single or double exponential fits to data. """ import lmfit import numpy as np import scipy.optimize
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 198, 2, 21004, 25, 3384, 69, 12, 23, 198, 37811, 198, 11201, 32232, 13, 9078, 198, 15946, 485, 2060, 393, 4274, 39682, 11414, 284, 1366, 13, 198, 37811, 198, 198, 11748, 300, 76, 11147, 1...
2.931034
58
# pylint: disable=no-member from datetime import datetime from typing import Optional, Dict from django.db import transaction, models from django.apps import apps from django_cloud_tasks import tasks, serializers __all__ = ( "Routine", "RoutineVertex", "Pipeline", )
[ 2, 279, 2645, 600, 25, 15560, 28, 3919, 12, 19522, 198, 6738, 4818, 8079, 1330, 4818, 8079, 198, 6738, 19720, 1330, 32233, 11, 360, 713, 198, 6738, 42625, 14208, 13, 9945, 1330, 8611, 11, 4981, 198, 6738, 42625, 14208, 13, 18211, 1330...
2.958333
96
from datetime import datetime from uuid import UUID from ...serializer import IfoodSerializable from ...utils import auto_str from uuid import UUID
[ 6738, 4818, 8079, 1330, 4818, 8079, 198, 6738, 334, 27112, 1330, 471, 27586, 198, 6738, 2644, 46911, 7509, 1330, 1002, 702, 32634, 13821, 198, 6738, 2644, 26791, 1330, 8295, 62, 2536, 198, 198, 6738, 334, 27112, 1330, 471, 27586, 628, 1...
3.682927
41
# Importing section import json import requests import argparse import logging import time import datetime from classes.time_utils import TimeUtils import utilities as u # Main if __name__ == "__main__": arg_parser = argparse.ArgumentParser() arg_parser.add_argument('-c', help='config file') arg_parser.ad...
[ 2, 17267, 278, 2665, 198, 11748, 33918, 198, 11748, 7007, 198, 11748, 1822, 29572, 198, 11748, 18931, 198, 11748, 640, 198, 11748, 4818, 8079, 198, 6738, 6097, 13, 2435, 62, 26791, 1330, 3862, 18274, 4487, 198, 198, 11748, 20081, 355, 3...
2.204411
1,179
from spinnman.messages.scp.abstract_messages.abstract_scp_request\ import AbstractSCPRequest from spinnman.messages.sdp.sdp_flag import SDPFlag from spinnman.messages.sdp.sdp_header import SDPHeader from spinnman.messages.scp.scp_request_header import SCPRequestHeader from spinnman.messages.scp.scp_command import S...
[ 6738, 599, 3732, 805, 13, 37348, 1095, 13, 1416, 79, 13, 397, 8709, 62, 37348, 1095, 13, 397, 8709, 62, 1416, 79, 62, 25927, 59, 198, 220, 220, 220, 1330, 27741, 48956, 18453, 198, 6738, 599, 3732, 805, 13, 37348, 1095, 13, 21282, ...
2.907801
141
from Cocoa import * from Quartz import * from SampleCIView import SampleCIView from math import sin import objc NUM_POINTS=4
[ 6738, 18490, 12162, 1330, 1635, 198, 6738, 45976, 1330, 1635, 198, 198, 6738, 27565, 34, 3824, 769, 1330, 27565, 34, 3824, 769, 198, 198, 6738, 10688, 1330, 7813, 198, 198, 11748, 26181, 66, 198, 198, 41359, 62, 16402, 1268, 4694, 28, ...
3
43
from pathlib import Path from fhir.resources.codesystem import CodeSystem from oops_fhir.utils import CodeSystemConcept __all__ = ["RequestIntent"] _resource = CodeSystem.parse_file(Path(__file__).with_suffix(".json"))
[ 6738, 3108, 8019, 1330, 10644, 198, 198, 6738, 277, 71, 343, 13, 37540, 13, 40148, 6781, 1330, 6127, 11964, 198, 198, 6738, 267, 2840, 62, 69, 71, 343, 13, 26791, 1330, 6127, 11964, 3103, 984, 628, 198, 834, 439, 834, 796, 14631, 18...
3.082192
73
if __name__ == '__main__': main()
[ 198, 198, 361, 11593, 3672, 834, 6624, 705, 834, 12417, 834, 10354, 198, 220, 220, 220, 1388, 3419, 198 ]
2.105263
19
from .app import create_app # creates the app by calling the package APP = create_app()
[ 6738, 764, 1324, 1330, 2251, 62, 1324, 198, 198, 2, 8075, 262, 598, 416, 4585, 262, 5301, 198, 24805, 796, 2251, 62, 1324, 3419 ]
3.666667
24
from flask_restplus import Api API = Api( title="Book API", version='1.0', description="This Api provides endpoint for accessing books and their reviews." )
[ 6738, 42903, 62, 2118, 9541, 1330, 5949, 72, 198, 198, 17614, 796, 5949, 72, 7, 198, 220, 220, 220, 3670, 2625, 10482, 7824, 1600, 198, 220, 220, 220, 2196, 11639, 16, 13, 15, 3256, 198, 220, 220, 220, 6764, 2625, 1212, 5949, 72, ...
3.090909
55
import unittest from game import Game from suit import Suit if __name__ == '__main__': unittest.main()
[ 11748, 555, 715, 395, 198, 198, 6738, 983, 1330, 3776, 198, 6738, 6050, 1330, 28871, 628, 198, 198, 361, 11593, 3672, 834, 6624, 705, 834, 12417, 834, 10354, 198, 220, 220, 220, 555, 715, 395, 13, 12417, 3419, 198 ]
2.846154
39
from PyConstants import Paths from PyConstants import Codes from PyConstants import CacheTimes from PyBaseTest import BaseTest from PyRequest import PyRequest import time
[ 6738, 9485, 34184, 1187, 1330, 10644, 82, 198, 6738, 9485, 34184, 1187, 1330, 44380, 198, 6738, 9485, 34184, 1187, 1330, 34088, 28595, 198, 6738, 9485, 14881, 14402, 1330, 7308, 14402, 198, 6738, 9485, 18453, 1330, 9485, 18453, 198, 11748, ...
3.6
50
from __future__ import unicode_literals from hypothesis.strategies import integers from star_ratings import app_settings
[ 6738, 11593, 37443, 834, 1330, 28000, 1098, 62, 17201, 874, 198, 198, 6738, 14078, 13, 2536, 2397, 444, 1330, 37014, 198, 6738, 3491, 62, 10366, 654, 1330, 598, 62, 33692, 628 ]
3.967742
31
'''''' from .Bird import Bird from .Pipe import Pipe
[ 39115, 7061, 198, 6738, 764, 42562, 1330, 14506, 198, 6738, 764, 47, 3757, 1330, 36039 ]
3.466667
15
import os.path import configparser from dircheck import get_yesno_input import create_jobscripts from create_dirname_config import config_dirname_cfg from create_all_dirs import create_all import socket import cgns_load_data # Script that creates the two configuration files (case and render files) necessary to run the ...
[ 11748, 28686, 13, 6978, 198, 11748, 4566, 48610, 198, 6738, 288, 1980, 258, 694, 1330, 651, 62, 8505, 3919, 62, 15414, 198, 11748, 2251, 62, 21858, 46521, 198, 6738, 2251, 62, 15908, 3672, 62, 11250, 1330, 4566, 62, 15908, 3672, 62, 3...
3.008818
2,268
#!/usr/bin/python import sys import simplejson as json if __name__ == "__main__": main()
[ 2, 48443, 14629, 14, 8800, 14, 29412, 198, 11748, 25064, 198, 11748, 2829, 17752, 355, 33918, 198, 198, 361, 11593, 3672, 834, 6624, 366, 834, 12417, 834, 1298, 198, 220, 220, 220, 1388, 3419, 198 ]
2.685714
35
#!/usr/bin/env python2 import copy import random from classes.Pokemons import * from classes.Battle import *
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 17, 198, 198, 11748, 4866, 198, 11748, 4738, 198, 6738, 6097, 13, 47, 2088, 11567, 1330, 1635, 198, 6738, 6097, 13, 24064, 1330, 1635, 628 ]
3.363636
33
# 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 # distributed under t...
[ 2, 49962, 739, 262, 24843, 13789, 11, 10628, 362, 13, 15, 357, 1169, 366, 34156, 15341, 345, 743, 198, 2, 407, 779, 428, 2393, 2845, 287, 11846, 351, 262, 13789, 13, 921, 743, 7330, 198, 2, 257, 4866, 286, 262, 13789, 379, 198, 2,...
3.740088
227
from diem import chain_ids from liquidity import create_liquidity_provider, init_liquidity_provider from liquidity.liquidity import FaucetLiquidityProvider, DDLiquidityProvider CUSTODY_PRIVATE_KEYS = ( '{"liquidity":"c6537e56d844fa4a15f3bf5eacd41c9123a19ef19a1026f2325a6b2dd33a13f1"}' )
[ 6738, 2566, 368, 1330, 6333, 62, 2340, 198, 198, 6738, 31061, 1330, 2251, 62, 39250, 414, 62, 15234, 1304, 11, 2315, 62, 39250, 414, 62, 15234, 1304, 198, 6738, 31061, 13, 39250, 414, 1330, 376, 14272, 316, 41966, 414, 29495, 11, 360,...
2.508475
118
from .l2norm import L2Norm from .multibox_loss import MultiBoxLoss __all__ = ['L2Norm', 'MultiBoxLoss']
[ 6738, 764, 75, 17, 27237, 220, 220, 220, 220, 220, 220, 220, 1330, 406, 17, 35393, 198, 6738, 764, 16680, 571, 1140, 62, 22462, 1330, 15237, 14253, 43, 793, 198, 198, 834, 439, 834, 796, 37250, 43, 17, 35393, 3256, 705, 29800, 14253...
2.382979
47
import pymetry pym = pymetry pym.octagon(150, "yellow", 8)
[ 11748, 12972, 41935, 198, 79, 4948, 796, 12972, 41935, 198, 79, 4948, 13, 38441, 1840, 7, 8628, 11, 366, 36022, 1600, 807, 8, 198 ]
2.458333
24
""" Remote debugging support. This addon allows you to use a remote Python debugger with PyCharm, PyDev and possibly other IDEs. As it is, without modification, it only supports PyCharm, but it may work by pointing it at a similar egg file shipped with PyDev. Before using, point the addon to your pycharm-debug-py3k.e...
[ 37811, 198, 36510, 28769, 1104, 13, 198, 198, 1212, 48557, 3578, 345, 284, 779, 257, 6569, 11361, 49518, 351, 9485, 1925, 1670, 11, 9485, 13603, 290, 198, 39363, 584, 4522, 23041, 13, 1081, 340, 318, 11, 1231, 17613, 11, 340, 691, 697...
2.711297
956
import datetime from django.contrib import messages from django.contrib.auth.decorators import login_required, user_passes_test from django.http import HttpResponse from django.shortcuts import render from .book_assign import send_email_reject_book from todo.forms import SearchForm from todo.models import Task, Book,...
[ 11748, 4818, 8079, 198, 198, 6738, 42625, 14208, 13, 3642, 822, 1330, 6218, 198, 6738, 42625, 14208, 13, 3642, 822, 13, 18439, 13, 12501, 273, 2024, 1330, 17594, 62, 35827, 11, 2836, 62, 6603, 274, 62, 9288, 198, 6738, 42625, 14208, 1...
3.474227
97
import matplotlib.pyplot as plt # number of threads used to compute product of 2 matrices of dim. 1024 data_x = [1, 2, 3, 4, 8, 16, 32, 64, 128, 256, 512, 1024, 2048, 4096] # execution time in seconds data_y = [3.300059, 1.664494, 2.294884, 3.200235, 2.915945, 3.082389, 3.023162, 3.012096, ...
[ 11748, 2603, 29487, 8019, 13, 9078, 29487, 355, 458, 83, 198, 198, 2, 1271, 286, 14390, 973, 284, 24061, 1720, 286, 362, 2603, 45977, 286, 5391, 13, 28119, 198, 7890, 62, 87, 796, 685, 16, 11, 362, 11, 513, 11, 604, 11, 807, 11, ...
2.210145
276
# memoro.wsgi # WSGI config for memoro project. # # Author: Benjamin Bengfort <benjamin@bengfort.com> # Created: Sat Nov 28 13:44:01 2020 -0500 # # Copyright (C) 2020 Bengfort.com # For license information, see LICENSE # # ID: wsgi.py [] benjamin@bengfort.com $ """ WSGI config for memoro project. It exposes the W...
[ 198, 2, 16181, 78, 13, 18504, 12397, 198, 2, 25290, 18878, 4566, 329, 16181, 78, 1628, 13, 198, 2, 198, 2, 6434, 25, 220, 220, 14533, 14964, 3319, 1279, 11722, 13337, 31, 65, 1516, 3319, 13, 785, 29, 198, 2, 15622, 25, 220, 7031, ...
3.767123
292
""" Serialized Data Converter. Licensed under MIT Copyright (c) 2012 - 2015 Isaac Muse <isaacmuse@gmail.com> """ import sublime import sublime_plugin import codecs import re import traceback import os from SerializedDataConverter.lib.log import error_msg from SerializedDataConverter.lib import plist_includes as plist ...
[ 37811, 198, 32634, 1143, 6060, 35602, 353, 13, 198, 198, 26656, 15385, 739, 17168, 198, 15269, 357, 66, 8, 2321, 532, 1853, 19068, 32887, 1279, 9160, 330, 76, 1904, 31, 14816, 13, 785, 29, 198, 37811, 198, 11748, 41674, 198, 11748, 41...
3.467181
259
#!/usr/bin/env python2.7 import urho v = urho.Vector3() c = urho.Context() fs = urho.FileSystem(c) from urho import StringHash as sh import os print (os.getcwd()) a = App(c) #help(a) var = urho.Variant(u'/home/nathan/Desktop/testClang') print(var) print(fs.GetCurrentDir()) #a.engineParameters[urho.StringHash('Res...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 17, 13, 22, 198, 198, 11748, 2956, 8873, 198, 85, 796, 2956, 8873, 13, 38469, 18, 3419, 198, 66, 796, 2956, 8873, 13, 21947, 3419, 198, 9501, 796, 2956, 8873, 13, 8979, 11964, 7, 66, 8,...
2.604938
243
""" Django settings for tesis project. For more information on this file, see https://docs.djangoproject.com/en/1.7/topics/settings/ For the full list of settings and their values, see https://docs.djangoproject.com/en/1.7/ref/settings/ """ # -*- coding: utf-8 -*- # A tuple that lists people who get code error notifi...
[ 37811, 198, 35, 73, 14208, 6460, 329, 256, 9339, 1628, 13, 198, 198, 1890, 517, 1321, 319, 428, 2393, 11, 766, 198, 5450, 1378, 31628, 13, 28241, 648, 404, 305, 752, 13, 785, 14, 268, 14, 16, 13, 22, 14, 4852, 873, 14, 33692, 14...
2.821219
2,724
#!/usr/bin/env python # This software code is made available "AS IS" without warranties of any # kind. You may copy, display, modify and redistribute the software # code either by itself or as incorporated into your code; provided that # you do not remove any proprietary notices. Your use of this software # cod...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 198, 198, 2, 220, 770, 3788, 2438, 318, 925, 1695, 366, 1921, 3180, 1, 1231, 50174, 286, 597, 198, 2, 220, 1611, 13, 220, 921, 743, 4866, 11, 3359, 11, 13096, 290, 17678, 4163, 262, 378...
3.15696
1,408
from __future__ import absolute_import, division, print_function from models.base_net import BaseNet import losses.all as losses_lib import tensorflow as tf import tensorflow.contrib.slim as slim import numpy as np import pdb import optimizers.train_steps as train_steps import optimizers.ops as optimize from functo...
[ 198, 6738, 11593, 37443, 834, 1330, 4112, 62, 11748, 11, 7297, 11, 3601, 62, 8818, 198, 198, 6738, 220, 220, 4981, 13, 8692, 62, 3262, 1330, 7308, 7934, 198, 11748, 9089, 13, 439, 355, 9089, 62, 8019, 198, 11748, 11192, 273, 11125, ...
3.410256
117
# trigger build import json import uuid import pytest from mock import MagicMock, patch from src import handler, db from src.models import User, MiniApp, TObject from src.constants import ROLE from werkzeug.exceptions import BadRequest def test_execute_obj_post_no_permission(): with pytest.raises(BadRequest): ...
[ 2, 7616, 1382, 198, 11748, 33918, 198, 11748, 334, 27112, 198, 11748, 12972, 9288, 198, 6738, 15290, 1330, 6139, 44, 735, 11, 8529, 198, 6738, 12351, 1330, 21360, 11, 20613, 198, 6738, 12351, 13, 27530, 1330, 11787, 11, 12558, 4677, 11,...
2.423358
685
try: import uuid except ModuleNotFoundError as err: uuid = None ALPHABET = "ABCDEFGHIJKLMNOPQRSTUVWXYZ1234567890" PATTERN = [8, 4, 4, 4, 12] SEP = "-"
[ 28311, 25, 198, 220, 220, 220, 1330, 334, 27112, 198, 16341, 19937, 3673, 21077, 12331, 355, 11454, 25, 198, 220, 220, 220, 334, 27112, 796, 6045, 198, 198, 1847, 11909, 6242, 2767, 796, 366, 24694, 32988, 17511, 23852, 42, 31288, 45, ...
2.090909
77
# Copyright (c) 2019-present, Facebook, Inc. # # This source code is licensed under the MIT license found in the # LICENSE file in the root directory of this source tree. import glob import unittest from typing import List, Optional from unittest.mock import MagicMock, patch from .. import BuilderException, FastBuckB...
[ 2, 15069, 357, 66, 8, 13130, 12, 25579, 11, 3203, 11, 3457, 13, 198, 2, 198, 2, 770, 2723, 2438, 318, 11971, 739, 262, 17168, 5964, 1043, 287, 262, 198, 2, 38559, 24290, 2393, 287, 262, 6808, 8619, 286, 428, 2723, 5509, 13, 198, ...
3.473684
152
from time import time from typing import List from core.security import verify_password from db import users as DBUsers from fastapi import APIRouter, Depends, HTTPException, status from fastapi.responses import JSONResponse from models.user import DBUser from schemas.user import (UserCreate, UserUpdateActivate, UserU...
[ 6738, 640, 1330, 640, 198, 6738, 19720, 1330, 7343, 198, 198, 6738, 4755, 13, 12961, 1330, 11767, 62, 28712, 198, 6738, 20613, 1330, 2985, 355, 20137, 14490, 198, 6738, 3049, 15042, 1330, 3486, 4663, 39605, 11, 2129, 2412, 11, 14626, 16...
3.135135
185
## License: Apache 2.0. See LICENSE file in root directory. ## Copyright(c) 2015-2017 Intel Corporation. All Rights Reserved. ############################################### ## Open CV and Numpy integration ## ############################################### import pyrealsense2 as rs import numpy a...
[ 2235, 13789, 25, 24843, 362, 13, 15, 13, 4091, 38559, 24290, 2393, 287, 6808, 8619, 13, 201, 198, 2235, 15069, 7, 66, 8, 1853, 12, 5539, 8180, 10501, 13, 1439, 6923, 33876, 13, 201, 198, 201, 198, 29113, 7804, 4242, 21017, 201, 198,...
2.308247
1,249
import logging import os import psycopg2 import time import shlex import subprocess import shutil import threading from urllib.parse import urlparse logger = logging.getLogger(__name__)
[ 11748, 18931, 198, 11748, 28686, 198, 11748, 17331, 22163, 70, 17, 198, 11748, 640, 198, 11748, 427, 2588, 198, 11748, 850, 14681, 198, 11748, 4423, 346, 198, 11748, 4704, 278, 198, 198, 6738, 2956, 297, 571, 13, 29572, 1330, 19016, 295...
3.298246
57
import genetic_algorithm #where the population will be processed and the main loop is contained #initialise population with random candidate solutions print("Enter a function to be solved: \n") fitness_function = [1780, 17, -2] #n = ax + by #function: [n, a, b] ga = genetic_algorithm.genetic_algorithm(fitness_func...
[ 11748, 8513, 62, 282, 42289, 198, 198, 2, 3003, 262, 3265, 481, 307, 13686, 290, 262, 1388, 9052, 318, 7763, 628, 198, 2, 36733, 786, 3265, 351, 4738, 4540, 8136, 198, 198, 4798, 7203, 17469, 257, 2163, 284, 307, 16019, 25, 3467, 77...
3.582278
158
from flask import Flask, render_template app = Flask(__name__) if __name__ == '__main__': print(app.url_map) app.run(debug=True, host="0.0.0.0")
[ 6738, 42903, 1330, 46947, 11, 8543, 62, 28243, 198, 198, 1324, 796, 46947, 7, 834, 3672, 834, 8, 628, 198, 198, 361, 11593, 3672, 834, 6624, 705, 834, 12417, 834, 10354, 198, 220, 220, 220, 3601, 7, 1324, 13, 6371, 62, 8899, 8, 19...
2.378788
66
# -*- coding: utf-8 -*- # Generated by Django 1.11.15 on 2018-09-26 01:25 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, 1314, 319, 2864, 12, 2931, 12, 2075, 5534, 25, 1495, 198, 6738, 11593, 37443, 834, 1330, 28000, 1098, 62, 17201, 874, 198,...
2.753623
69
# Generated by Django 2.2.13 on 2021-03-10 21:33 import account.models import datetime from django.conf import settings import django.contrib.auth.models import django.contrib.auth.validators from django.db import migrations, models import django.db.models.deletion import django.utils.timezone
[ 198, 2, 2980, 515, 416, 37770, 362, 13, 17, 13, 1485, 319, 33448, 12, 3070, 12, 940, 2310, 25, 2091, 628, 198, 11748, 1848, 13, 27530, 198, 11748, 4818, 8079, 198, 6738, 42625, 14208, 13, 10414, 1330, 6460, 198, 11748, 42625, 14208, ...
3.180851
94
import tensorflow from PIL import Image from keras.models import Sequential from keras.layers import Conv2D, Conv2DTranspose, ConvLSTM2D from keras.optimizers import SGD import numpy as np import os from keras import backend as K from src.predictionAlgorithms.machineLearning.algorithms.ConvLSTM import ConvLstm from sr...
[ 11748, 11192, 273, 11125, 198, 6738, 350, 4146, 1330, 7412, 198, 6738, 41927, 292, 13, 27530, 1330, 24604, 1843, 198, 6738, 41927, 292, 13, 75, 6962, 1330, 34872, 17, 35, 11, 34872, 17, 35, 8291, 3455, 11, 34872, 43, 2257, 44, 17, 3...
3.247619
210
import bchlib from PIL import Image, ImageOps import numpy as np import glob from tqdm import tqdm import torch import matplotlib.pyplot as plt from model import StegaStampDecoder BCH_POLYNOMIAL = 137 BCH_BITS = 5 if __name__ == "__main__": dirPath = r"E:/dataset/stegastamp_crop" modelPath = r'saved_mod...
[ 11748, 275, 354, 8019, 198, 6738, 350, 4146, 1330, 7412, 11, 7412, 41472, 198, 11748, 299, 32152, 355, 45941, 198, 11748, 15095, 198, 6738, 256, 80, 36020, 1330, 256, 80, 36020, 198, 11748, 28034, 198, 11748, 2603, 29487, 8019, 13, 9078...
2.260563
426
import pytest from django.test import TestCase from django.test import override_settings import ozpcenter.api.contact_type.model_access as model_access from ozpcenter.models import ContactType from tests.cases.factories import ContactTypeFactory
[ 11748, 12972, 9288, 198, 6738, 42625, 14208, 13, 9288, 1330, 6208, 20448, 198, 6738, 42625, 14208, 13, 9288, 1330, 20957, 62, 33692, 198, 198, 11748, 15649, 79, 16159, 13, 15042, 13, 32057, 62, 4906, 13, 19849, 62, 15526, 355, 2746, 62,...
3.815385
65
#!/usr/bin/python3 """Simple bot to reply exactly the same what user sent to chat.""" # This program is dedicated to the public domain under the CC0 license. from telegrask import Telegrask bot = Telegrask("BOT_TOKEN") if __name__ == "__main__": bot.run(debug=True)
[ 2, 48443, 14629, 14, 8800, 14, 29412, 18, 198, 37811, 26437, 10214, 284, 10971, 3446, 262, 976, 644, 2836, 1908, 284, 8537, 526, 15931, 198, 2, 770, 1430, 318, 7256, 284, 262, 1171, 7386, 739, 262, 12624, 15, 5964, 13, 198, 198, 673...
2.956989
93
from django.db import models from django.utils.translation import ugettext_lazy as _ from emailqueue.models import BaseModel
[ 6738, 42625, 14208, 13, 9945, 1330, 4981, 198, 6738, 42625, 14208, 13, 26791, 13, 41519, 1330, 334, 1136, 5239, 62, 75, 12582, 355, 4808, 198, 198, 6738, 3053, 36560, 13, 27530, 1330, 7308, 17633, 628, 198 ]
3.555556
36
#!/usr/bin/env python # -*- coding: utf-8 -*- """This module is used to crawler emoji unicode from http://www.unicode.org/ """ import urllib import json import base64 import os from bs4 import BeautifulSoup __EMOJI_V4_URL = "http://www.unicode.org/emoji/charts/emoji-list.html" __EMOJI_V5_URL = "http://www.unicode.org/...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 198, 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 37811, 1212, 8265, 318, 973, 284, 27784, 1754, 44805, 28000, 1098, 422, 2638, 1378, 2503, 13, 46903, 1098, 13, 2398, 14...
2.458333
360
# (C) Copyright 2005-2021 Enthought, Inc., Austin, TX # All rights reserved. # # This software is provided without warranty under the terms of the BSD # license included in LICENSE.txt and may be redistributed only under # the conditions described in the aforementioned license. The license # is also available online at...
[ 2, 357, 34, 8, 15069, 5075, 12, 1238, 2481, 2039, 28895, 11, 3457, 1539, 9533, 11, 15326, 198, 2, 1439, 2489, 10395, 13, 198, 2, 198, 2, 770, 3788, 318, 2810, 1231, 18215, 739, 262, 2846, 286, 262, 347, 10305, 198, 2, 5964, 3017, ...
3.887097
124
import mmap import numpy as np from time import sleep import os
[ 11748, 8085, 499, 198, 11748, 299, 32152, 355, 45941, 198, 198, 6738, 640, 1330, 3993, 198, 198, 11748, 28686, 628 ]
3.35
20
# Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT license. from torch.optim import *
[ 2, 15069, 357, 66, 8, 5413, 10501, 13, 1439, 2489, 10395, 13, 198, 2, 49962, 739, 262, 17168, 5964, 13, 198, 6738, 28034, 13, 40085, 1330, 1635 ]
4.407407
27
# -*- coding: utf-8 -*- import pandas as pd import numpy as np from datetime import date from typing import Union,Tuple,Optional,List from ..config_features import CATEGORICAL_FEATURES,NUMERICAL_FEATURES from ..config import DAYS_FORECAST,ALL_STATIONS from ..utils.normalizer import get_normalizer_stats def train_tes...
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 198, 11748, 19798, 292, 355, 279, 67, 198, 11748, 299, 32152, 355, 45941, 198, 6738, 4818, 8079, 1330, 3128, 198, 6738, 19720, 1330, 4479, 11, 51, 29291, 11, 30719, 11, ...
2.032448
1,695
from .Preprocessor import Pipeline
[ 6738, 764, 6719, 41341, 1330, 37709, 198 ]
5
7
import os import sys import copy import ctypes import socket import logging import threading import functools import webbrowser logger = logging.getLogger(__name__) import keyboard from PySide2 import QtCore, QtWidgets, QtGui, QtWebEngineWidgets # TODO # Be able to import a text file in the description/title as variab...
[ 11748, 28686, 198, 11748, 25064, 198, 11748, 4866, 198, 11748, 269, 19199, 198, 11748, 17802, 198, 11748, 18931, 198, 11748, 4704, 278, 198, 11748, 1257, 310, 10141, 198, 11748, 3992, 40259, 198, 6404, 1362, 796, 18931, 13, 1136, 11187, 1...
3.706237
497
""" Contains unit tests to ensure single database items are created correctly in a Pascal VOC compatible format. """ import os from xml.etree.ElementTree import Element, SubElement import numpy as np from breakdb.io.export.voc import create_annotation from tests.helpers.dataset import create_random_string from tests....
[ 37811, 198, 4264, 1299, 4326, 5254, 284, 4155, 2060, 6831, 3709, 389, 2727, 9380, 287, 257, 198, 47, 27747, 569, 4503, 11670, 5794, 13, 198, 37811, 198, 11748, 28686, 198, 6738, 35555, 13, 316, 631, 13, 20180, 27660, 1330, 11703, 11, ...
3.72043
93
import os import os.path as osp import numpy as np import matplotlib.pyplot as plt from matplotlib.patches import Circle, Polygon, Rectangle from config import PARAMS def plot_globe(self, angle=0): ''' Plots the globe and its shade as viewed from 'angle'. ''' angle = self.normaliz...
[ 11748, 28686, 198, 11748, 28686, 13, 6978, 355, 267, 2777, 198, 11748, 299, 32152, 355, 45941, 198, 11748, 2603, 29487, 8019, 13, 9078, 29487, 355, 458, 83, 198, 6738, 2603, 29487, 8019, 13, 8071, 2052, 1330, 16291, 11, 12280, 14520, 11...
1.836866
2,642
from django.db import models from .base import BaseModel
[ 6738, 42625, 14208, 13, 9945, 1330, 4981, 198, 198, 6738, 764, 8692, 1330, 7308, 17633, 628 ]
3.6875
16
import random import numpy as np import cPickle as pkl Train_handle = open("./data/weixin_data/weixin_train.txt",'w') Test_handle = open("./data/weixin_data/weixin_test.txt",'w') Feature_handle = open("./data/weixin_data/weixin_feature.pkl",'w') max_len = 50 if __name__ == "__main__": train_sample_list, test...
[ 11748, 4738, 198, 11748, 299, 32152, 355, 45941, 198, 11748, 269, 31686, 293, 355, 279, 41582, 628, 198, 44077, 62, 28144, 796, 1280, 7, 1911, 14, 7890, 14, 732, 844, 259, 62, 7890, 14, 732, 844, 259, 62, 27432, 13, 14116, 1600, 6, ...
2.49711
173
import sys import sqlite3 import csv from random import randint from faker import Faker fake = Faker() if __name__ == "__main__": main()
[ 11748, 25064, 198, 11748, 44161, 578, 18, 198, 11748, 269, 21370, 198, 6738, 4738, 1330, 43720, 600, 198, 198, 6738, 277, 3110, 1330, 376, 3110, 198, 30706, 796, 376, 3110, 3419, 628, 628, 198, 198, 361, 11593, 3672, 834, 6624, 366, 8...
2.826923
52
from __future__ import annotations from amulet.world_interface.chunk.interfaces.leveldb.leveldb_12.leveldb_12_interface import ( LevelDB12Interface, ) INTERFACE_CLASS = LevelDB13Interface
[ 6738, 11593, 37443, 834, 1330, 37647, 198, 198, 6738, 38335, 13, 6894, 62, 39994, 13, 354, 2954, 13, 3849, 32186, 13, 293, 303, 335, 65, 13, 293, 303, 335, 65, 62, 1065, 13, 293, 303, 335, 65, 62, 1065, 62, 39994, 1330, 357, 198, ...
2.925373
67
from oarepo_model_builder.builders.json import JSONBuilder from oarepo_model_builder.output import JsonSchemaOutput
[ 6738, 267, 533, 7501, 62, 19849, 62, 38272, 13, 50034, 13, 17752, 1330, 19449, 32875, 198, 6738, 267, 533, 7501, 62, 19849, 62, 38272, 13, 22915, 1330, 449, 1559, 27054, 2611, 26410, 628 ]
3.545455
33
import numpy as np def square(x): """Square a number""" return x ** 2 def volume_converter(volume, unit): """Convert certain SI volumes to mLs""" conversions = {'mL': 1E-3, 'uL': 1E-6, 'nL': 1E-9, 'kL': 1E3} return round(volume * conversions[unit], 10) def squared_sum(in_list): """Finds the s...
[ 11748, 299, 32152, 355, 45941, 198, 198, 4299, 6616, 7, 87, 2599, 198, 220, 220, 220, 37227, 48011, 257, 1271, 37811, 198, 220, 220, 220, 1441, 2124, 12429, 362, 198, 198, 4299, 6115, 62, 1102, 332, 353, 7, 29048, 11, 4326, 2599, 19...
2.462963
162
from selenium import webdriver from selenium.webdriver.common.by import By from selenium.webdriver.support.ui import WebDriverWait from selenium.webdriver.support import expected_conditions as EC import psycopg2 import time import statistics from selenium.webdriver.support.select import Select import json # e...
[ 6738, 384, 11925, 1505, 1330, 3992, 26230, 198, 6738, 384, 11925, 1505, 13, 12384, 26230, 13, 11321, 13, 1525, 1330, 2750, 198, 6738, 384, 11925, 1505, 13, 12384, 26230, 13, 11284, 13, 9019, 1330, 5313, 32103, 21321, 198, 6738, 384, 119...
1.817618
1,612
# # $Header: /home/inqwell/cvsroot/dev/scripts/python/FotechUtils/dbUtils.py,v 1.1 2009/05/22 22:16:32 sanderst Exp $ # import KBC.fotech from Util import db from dbConfig import configurationProvider def getConnection( confile, system, level, access = "read", site = None, user = None, pwdfile = None ): """ ...
[ 2, 198, 2, 720, 39681, 25, 1220, 11195, 14, 259, 80, 4053, 14, 66, 14259, 15763, 14, 7959, 14, 46521, 14, 29412, 14, 37, 32469, 18274, 4487, 14, 9945, 18274, 4487, 13, 9078, 11, 85, 352, 13, 16, 3717, 14, 2713, 14, 1828, 2534, 2...
3.037855
317
#!/usr/bin/env python3 import random import argparse import sys parser = argparse.ArgumentParser() parser.add_argument("number", help="Generate a random numbers until they are equal to this.", type=int) parser.add_argument("-s", "--start", type=int, default=0, help="The range ...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 18, 198, 11748, 4738, 198, 11748, 1822, 29572, 198, 11748, 25064, 628, 198, 198, 48610, 796, 1822, 29572, 13, 28100, 1713, 46677, 3419, 198, 48610, 13, 2860, 62, 49140, 7203, 17618, 1600, 198...
2.675824
546
""" Clase para representar a los diferentes modelos y su comportamiento atributos(de momento) df=dataframe de entrenamiento proviniente del conjunto de datos de entrenamiento del usuario x_train,x_test,y_train,y_test, particiones de df para entrenar el modelo El resto de mtodos son autoexplicativos """ from numpy i...
[ 37811, 198, 2601, 589, 31215, 2380, 283, 257, 22346, 288, 361, 9100, 274, 2746, 418, 331, 424, 552, 419, 321, 1153, 78, 198, 198, 265, 2455, 418, 7, 2934, 2589, 78, 8, 198, 7568, 28, 7890, 14535, 390, 920, 918, 321, 1153, 78, 899,...
3.088235
170
#!/usr/bin/env python3 import numpy as np import sys import struct # from math import fabs from enum import IntEnum from scipy import spatial from math import * from collections import OrderedDict
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 18, 198, 198, 11748, 299, 32152, 355, 45941, 198, 11748, 25064, 198, 11748, 2878, 198, 2, 422, 10688, 1330, 7843, 82, 198, 6738, 33829, 1330, 2558, 4834, 388, 198, 6738, 629, 541, 88, 1330,...
3.491228
57
from src.eda import make_counter import pandas as pd import numpy as np from src.heroes import heroes, name_id, id_name def id_list_from_history(data): ''' Takes raw data returnd by api_calls.get_match_history() and returns a list of just the match ID's Input: data(list): ...
[ 6738, 12351, 13, 18082, 1330, 787, 62, 24588, 198, 11748, 19798, 292, 355, 279, 67, 198, 11748, 299, 32152, 355, 45941, 198, 6738, 12351, 13, 11718, 274, 1330, 10281, 11, 1438, 62, 312, 11, 4686, 62, 3672, 198, 198, 4299, 4686, 62, ...
2.22069
2,030
from django.shortcuts import render from .models import *
[ 6738, 42625, 14208, 13, 19509, 23779, 1330, 8543, 198, 6738, 764, 27530, 1330, 1635, 628 ]
3.933333
15
from rest_framework import serializers from rest_framework.validators import UniqueValidator from core.models import User
[ 6738, 1334, 62, 30604, 1330, 11389, 11341, 198, 6738, 1334, 62, 30604, 13, 12102, 2024, 1330, 30015, 47139, 1352, 198, 6738, 4755, 13, 27530, 1330, 11787, 628 ]
4.555556
27
from . import experts, gating_networks, gps, mixture_of_experts, training
[ 6738, 764, 1330, 6154, 11, 308, 803, 62, 3262, 5225, 11, 308, 862, 11, 11710, 62, 1659, 62, 23100, 912, 11, 3047, 198 ]
3.217391
23
from pynfldata.coaches_data import coaches_parser
[ 6738, 279, 2047, 69, 335, 1045, 13, 1073, 3694, 62, 7890, 1330, 11070, 62, 48610 ]
3.266667
15
import tensorflow as tf from tensorflow import keras from tensorflow.keras import layers, optimizers # BatchNorm # 2 images with 4x4 size, 3 channels # we explicitly enforce the mean and stddev to N(1, 0.5) x = tf.random.normal([2, 4, 4, 3], mean=1.0, stddev=0.5) net = layers.BatchNormalization(axis=-1, center=True...
[ 11748, 11192, 273, 11125, 355, 48700, 198, 198, 6738, 11192, 273, 11125, 1330, 41927, 292, 198, 6738, 11192, 273, 11125, 13, 6122, 292, 1330, 11685, 11, 6436, 11341, 198, 198, 2, 347, 963, 35393, 220, 198, 2, 362, 4263, 351, 604, 87, ...
2.632708
373
"""Application entry point.""" import argparse import logging from pytocl.protocol import Client def main(): """Main entry point of application.""" parser = argparse.ArgumentParser(description='Client for TORCS racing car simulation with SCRC ' 'network server...
[ 37811, 23416, 5726, 966, 526, 15931, 198, 11748, 1822, 29572, 198, 11748, 18931, 198, 198, 6738, 12972, 83, 38679, 13, 11235, 4668, 1330, 20985, 628, 198, 4299, 1388, 33529, 198, 220, 220, 220, 37227, 13383, 5726, 966, 286, 3586, 526, 1...
2.508772
399
import sublime import sublime_plugin import re import os rexLastTabs = re.compile(r'(\t+|\s+)$', re.MULTILINE) rexEmptyLines = re.compile('^[ \t]*$\r?\n', re.MULTILINE) rexCont = re.compile(r'[^\t\s].*[^\t\s]') rexFormatted = re.compile(r"((?<=\s)'|(?<=\t)')|('*\s[\+|\\|])") #https://github.com/jdc0589/JsFormat lin...
[ 11748, 41674, 198, 11748, 41674, 62, 33803, 198, 11748, 302, 198, 11748, 28686, 628, 198, 21510, 5956, 51, 8937, 796, 302, 13, 5589, 576, 7, 81, 6, 38016, 83, 10, 91, 59, 82, 28988, 3, 3256, 302, 13, 44, 16724, 4146, 8881, 8, 198,...
2.341772
316