content
stringlengths
1
1.04M
input_ids
listlengths
1
774k
ratio_char_token
float64
0.38
22.9
token_count
int64
1
774k
from django.urls import path from . import views urlpatterns = [ path('register/', views.registerPage, name="register"), path('login/', views.loginPage, name="login"), path('logout/', views.logoutUser, name="logout"), path('', views.home, name='home' ), path('dashboard', views.dashboard, name='dashboard' )...
[ 6738, 42625, 14208, 13, 6371, 82, 1330, 3108, 198, 6738, 764, 1330, 5009, 628, 198, 6371, 33279, 82, 796, 685, 198, 220, 3108, 10786, 30238, 14, 3256, 5009, 13, 30238, 9876, 11, 1438, 2625, 30238, 12340, 198, 197, 6978, 10786, 38235, ...
2.897436
390
#!/usr/bin/python # Classification (U) """Program: find_dt_pos.py Description: Unit testing of find_dt_pos in mysql_log_admin.py. Usage: test/unit/mysql_log_admin/find_dt_pos.py Arguments: """ # Libraries and Global Variables # Standard import sys import os if sys.version_info < (2, 7): ...
[ 2, 48443, 14629, 14, 8800, 14, 29412, 198, 2, 40984, 357, 52, 8, 198, 198, 37811, 15167, 25, 220, 1064, 62, 28664, 62, 1930, 13, 9078, 628, 220, 220, 220, 12489, 25, 220, 11801, 4856, 286, 1064, 62, 28664, 62, 1930, 287, 48761, 62...
2.152165
4,758
import hashlib import logging from typing import Tuple, Optional from asn1crypto import keys, algos, pem, x509 from asn1crypto.keys import PublicKeyInfo logger = logging.getLogger(__name__) CRYPTO_BACKEND: CryptoBackend = _select_default_crypto_backend() def load_certs_from_pemder(cert_files): """ ...
[ 11748, 12234, 8019, 198, 11748, 18931, 198, 6738, 19720, 1330, 309, 29291, 11, 32233, 198, 198, 6738, 355, 77, 16, 29609, 78, 1330, 8251, 11, 435, 70, 418, 11, 279, 368, 11, 2124, 29022, 198, 6738, 355, 77, 16, 29609, 78, 13, 13083,...
2.194444
864
# (c) Crown Owned Copyright, 2016. Dstl. from django.contrib.auth import get_user_model from django.core.urlresolvers import reverse from django_webtest import WebTest from apps.organisations.models import Organisation
[ 2, 357, 66, 8, 12223, 11744, 276, 15069, 11, 1584, 13, 360, 301, 75, 13, 198, 198, 6738, 42625, 14208, 13, 3642, 822, 13, 18439, 1330, 651, 62, 7220, 62, 19849, 198, 6738, 42625, 14208, 13, 7295, 13, 6371, 411, 349, 690, 1330, 957...
3.328358
67
from .attr_manip import * from .auto_print import * from .caller import * from .macro import *
[ 6738, 764, 35226, 62, 805, 541, 1330, 1635, 198, 6738, 764, 23736, 62, 4798, 1330, 1635, 198, 6738, 764, 13345, 263, 1330, 1635, 198, 6738, 764, 20285, 305, 1330, 1635, 198 ]
3.064516
31
# *** Create Account *** # Code based on https://www.twilio.com/docs/iam/api/account # Download Python 3 from https://www.python.org/downloads/ # Download the Twilio helper library from https://www.twilio.com/docs/python/install import os from twilio.rest import Client #from datetime import datetime | not required for ...
[ 2, 17202, 13610, 10781, 17202, 198, 2, 6127, 1912, 319, 3740, 1378, 2503, 13, 4246, 346, 952, 13, 785, 14, 31628, 14, 1789, 14, 15042, 14, 23317, 198, 2, 10472, 11361, 513, 422, 3740, 1378, 2503, 13, 29412, 13, 2398, 14, 15002, 82, ...
2.68623
886
""" FIND INTERSECTION: Have the function FindIntersection(strArr) read the array of strings stored in strArr which will contain 2 elements: the first element will represent a list of comma-separated numbers sorted in ascending order, the second element will represent a second list of comma-separated numbers...
[ 37811, 201, 198, 37, 12115, 17828, 4877, 24565, 25, 201, 198, 11980, 262, 2163, 9938, 9492, 5458, 7, 2536, 3163, 81, 8, 1100, 262, 7177, 286, 13042, 8574, 287, 965, 3163, 81, 543, 481, 3994, 362, 4847, 25, 201, 198, 220, 220, 220, ...
3.696774
155
import sys import tkinter as tk import tkinter.font as font import random from PIL import Image, ImageTk from pathlib import Path import time from . import common poker = PokerSort()
[ 11748, 25064, 198, 11748, 256, 74, 3849, 355, 256, 74, 198, 11748, 256, 74, 3849, 13, 10331, 355, 10369, 198, 11748, 4738, 198, 6738, 350, 4146, 1330, 7412, 11, 7412, 51, 74, 198, 6738, 3108, 8019, 1330, 10644, 198, 11748, 640, 198, ...
3.298246
57
import numpy as np from tqdm import tqdm from scipy.spatial.distance import cdist class MFCent(object): """ Implementation of """
[ 198, 11748, 299, 32152, 355, 45941, 198, 6738, 256, 80, 36020, 1330, 256, 80, 36020, 198, 6738, 629, 541, 88, 13, 2777, 34961, 13, 30246, 1330, 269, 17080, 198, 198, 4871, 337, 4851, 298, 7, 15252, 2599, 198, 197, 37811, 198, 197, 3...
2.72549
51
from ..IPacket import IPacket class UpdateAck(IPacket): "Sent by client to ack Update"
[ 6738, 11485, 4061, 8317, 1330, 6101, 8317, 198, 198, 4871, 10133, 32, 694, 7, 4061, 8317, 2599, 198, 220, 220, 220, 220, 198, 220, 220, 220, 366, 31837, 416, 5456, 284, 257, 694, 10133, 1, 198 ]
2.694444
36
# TODO: Finish implementing this with Twilio or some form of text message service
[ 2, 16926, 46, 25, 32585, 15427, 428, 351, 1815, 346, 952, 393, 617, 1296, 286, 2420, 3275, 2139, 198 ]
4.315789
19
# Copyright (c) 2019 Microsoft Corporation. # Copyright (c) 2018 Ricky Tian Qi Chen # Licensed under the MIT license. import math import os import torch from tqdm import tqdm from torch.utils.data import DataLoader from torch.autograd import Variable import lib.utils as utils from metric_helpers.mi_metric import comp...
[ 2, 15069, 357, 66, 8, 13130, 5413, 10501, 13, 198, 2, 15069, 357, 66, 8, 2864, 31668, 20834, 21924, 12555, 198, 2, 49962, 739, 262, 17168, 5964, 13, 198, 198, 11748, 10688, 198, 11748, 28686, 198, 11748, 28034, 198, 6738, 256, 80, 3...
2.17024
1,586
# -*- coding: utf-8 -*- ''' Copyright (c) 2014 @author: Marat Khayrullin <xmm.dev@gmail.com> ''' API_VERSION_V0 = 0 API_VERSION = API_VERSION_V0 bp_name = 'api_v0' api_v0_prefix = '{prefix}/v{version}'.format( prefix='/api', # current_app.config['URL_PREFIX'], version=API_VERSION_V0 )
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 7061, 6, 198, 15269, 357, 66, 8, 1946, 198, 31, 9800, 25, 1526, 265, 5311, 323, 622, 297, 259, 1279, 87, 3020, 13, 7959, 31, 14816, 13, 785, 29, 198, 7061, 6, 198,...
2.152174
138
#!/usr/bin/env python """Glues together an experiment, agent, and environment. """ from __future__ import print_function class RLGlue: """RLGlue class args: env_name (string): the name of the module where the Environment class can be found agent_name (string): the name of the module where t...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 198, 198, 37811, 9861, 947, 1978, 281, 6306, 11, 5797, 11, 290, 2858, 13, 198, 37811, 198, 198, 6738, 11593, 37443, 834, 1330, 3601, 62, 8818, 628, 198, 4871, 45715, 9861, 518, 25, 198, 2...
3.122807
114
import api import os import time CRONALLY_API_KEY_NAME='CRONALLY_API_KEY' CRONALLY_SECRET_KEY_NAME='CRONALLY_API_SECRET' CRONALLY_API_SNS_TOPIC_NAME='CRONALLY_API_SNS_TOPIC' CRONALLY_API_SNS_ACCESS_KEY_ID_NAME='CRONALLY_API_ACCESS_KEY_ID' CRONALLY_API_SNS_SECRET_ACCESS_KEY_NAME='CRONALLY_API_SECRET_ACCESS_KEY' LIMIT_...
[ 11748, 40391, 198, 11748, 28686, 198, 11748, 640, 198, 198, 9419, 1340, 19807, 62, 17614, 62, 20373, 62, 20608, 11639, 9419, 1340, 19807, 62, 17614, 62, 20373, 6, 198, 9419, 1340, 19807, 62, 23683, 26087, 62, 20373, 62, 20608, 11639, 94...
2.271605
162
#!/usr/bin/env python3 import argparse import os import logging import json import base_solution import lp_model import greedy_model import aoc_model import aoc_model_second_generation def parse_file(file_path): """Parse a file in the appropriate format for the model.""" bids = {} with open(file_path, "r...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 18, 198, 11748, 1822, 29572, 198, 11748, 28686, 198, 11748, 18931, 198, 11748, 33918, 198, 198, 11748, 2779, 62, 82, 2122, 198, 11748, 300, 79, 62, 19849, 198, 11748, 31828, 62, 19849, 198, ...
2.299559
681
#!/usr/bin/env python # -*- coding: utf-8 -*- from setuptools import setup, find_packages with open('README.rst') as readme_file: readme = readme_file.read() with open('HISTORY.rst') as history_file: history = history_file.read() with open('requirements.txt') as f: install_requires = [l.strip() for l in...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 198, 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 198, 6738, 900, 37623, 10141, 1330, 9058, 11, 1064, 62, 43789, 198, 198, 4480, 1280, 10786, 15675, 11682, 13, 81, 301, ...
2.505728
611
from .DbConnector import * from .DataMethods import *
[ 6738, 764, 43832, 34525, 1330, 1635, 198, 6738, 764, 6601, 46202, 1330, 1635 ]
4.076923
13
from django.core.management.base import BaseCommand from django.utils.text import slugify from dcim.models import Site from tenancy.models import Contact, ContactAssignment, ContactRole
[ 6738, 42625, 14208, 13, 7295, 13, 27604, 13, 8692, 1330, 7308, 21575, 198, 6738, 42625, 14208, 13, 26791, 13, 5239, 1330, 31065, 1958, 198, 198, 6738, 30736, 320, 13, 27530, 1330, 14413, 198, 6738, 46543, 13, 27530, 1330, 14039, 11, 140...
4
47
import pygame # Class that handles creating text objects to be displayed on the screen # Displays the text by "pasting" it onto the given surface with the blit method
[ 11748, 12972, 6057, 201, 198, 201, 198, 2, 5016, 326, 17105, 4441, 2420, 5563, 284, 307, 9066, 319, 262, 3159, 201, 198, 201, 198, 220, 220, 220, 1303, 3167, 26024, 262, 2420, 416, 366, 79, 9222, 1, 340, 4291, 262, 1813, 4417, 351, ...
3.6875
48
from .common import ApiTestHelperNoAuth from django.utils.timezone import now from rebuc_app.models import *
[ 6738, 764, 11321, 1330, 5949, 72, 14402, 47429, 2949, 30515, 198, 6738, 42625, 14208, 13, 26791, 13, 2435, 11340, 1330, 783, 198, 6738, 3405, 1229, 62, 1324, 13, 27530, 1330, 1635, 628, 198 ]
3.363636
33
from datetime import datetime, timezone from logging import getLogger import threading from .task import Tasks, Batch, Schedulable from .utils import run_forever, handle_sigterm from .job import Job, JobStatus, advance_job_status from .brokers.base import Broker from .const import DEFAULT_QUEUE, DEFAULT_NAMESPACE, DEF...
[ 6738, 4818, 8079, 1330, 4818, 8079, 11, 640, 11340, 198, 6738, 18931, 1330, 651, 11187, 1362, 198, 11748, 4704, 278, 198, 198, 6738, 764, 35943, 1330, 309, 6791, 11, 347, 963, 11, 27774, 377, 540, 198, 6738, 764, 26791, 1330, 1057, 62...
2.489256
3,025
from flask import Flask from flask_sqlalchemy import SQLAlchemy app = Flask(__name__) app.config.from_pyfile('config.cfg') #db = SQLAlchemy(app) from routes import * if __name__ == '__main__': app.run(host='0.0.0.0', port=5000)
[ 6738, 42903, 1330, 46947, 198, 6738, 42903, 62, 25410, 282, 26599, 1330, 16363, 2348, 26599, 198, 198, 1324, 796, 46947, 7, 834, 3672, 834, 8, 198, 1324, 13, 11250, 13, 6738, 62, 9078, 7753, 10786, 11250, 13, 37581, 11537, 198, 2, 994...
2.611111
90
# Sets a key on the selected channels in the control box. from maya import cmds
[ 2, 21394, 257, 1994, 319, 262, 6163, 9619, 287, 262, 1630, 3091, 13, 628, 198, 6738, 743, 64, 1330, 23991, 82, 198 ]
3.727273
22
from attrdict import AttrDict import os cfg = AttrDict({ # 'exp_name': 'test-len10-delta', # 'exp_name': 'test-len1-fixedscale-aggre-super', # 'exp_name': 'test-aggre-super', # 'exp_name': 'test-mask', 'exp_name': 'test-proposal', 'resume': True, 'device': 'cuda:3', # 'device': 'cpu', ...
[ 6738, 708, 4372, 713, 1330, 3460, 81, 35, 713, 198, 11748, 28686, 198, 198, 37581, 796, 3460, 81, 35, 713, 15090, 198, 220, 220, 220, 1303, 705, 11201, 62, 3672, 10354, 705, 9288, 12, 11925, 940, 12, 67, 12514, 3256, 198, 220, 220, ...
1.885787
394
from .template import SnippetParsingError from email.mime.text import MIMEText from email.mime.image import MIMEImage from email.mime.audio import MIMEAudio from email.mime.multipart import MIMEMultipart from email.mime.application import MIMEApplication import re from csv import DictReader class Binder: """ ...
[ 6738, 764, 28243, 1330, 5489, 3974, 316, 47, 945, 278, 12331, 198, 198, 6738, 3053, 13, 76, 524, 13, 5239, 1330, 337, 3955, 2767, 2302, 198, 6738, 3053, 13, 76, 524, 13, 9060, 1330, 337, 12789, 5159, 198, 6738, 3053, 13, 76, 524, ...
2.234389
1,105
#!/usr/bin/env python import click import scripts.docker_cmds as dc from scripts.groups import mynode @mynode.command() @mynode.command() @mynode.command() @mynode.command() @mynode.command() if __name__ == "__main__": mynode()
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 198, 11748, 3904, 198, 11748, 14750, 13, 45986, 62, 28758, 82, 355, 30736, 198, 6738, 14750, 13, 24432, 1330, 616, 17440, 628, 198, 31, 1820, 17440, 13, 21812, 3419, 628, 198, 31, 1820, 174...
2.741573
89
import numpy as np from lcnn.box import Box # C is a dict storing all the configuration C = Box() # shortcut for C.model M = Box()
[ 11748, 299, 32152, 355, 45941, 201, 198, 201, 198, 6738, 300, 66, 20471, 13, 3524, 1330, 8315, 201, 198, 201, 198, 2, 327, 318, 257, 8633, 23069, 477, 262, 8398, 201, 198, 34, 796, 8315, 3419, 201, 198, 201, 198, 2, 29401, 329, 32...
2.648148
54
from __future__ import unicode_literals from copy import deepcopy from lxml import etree from docutil.str_util import normalize, find_list, find_sentence,\ smart_decode, clean_breaks XTEXT = etree.XPath("string()") XSCRIPTS = etree.XPath(".//script") PARAGRAPHS = {'div', 'p'}
[ 6738, 11593, 37443, 834, 1330, 28000, 1098, 62, 17201, 874, 198, 6738, 4866, 1330, 2769, 30073, 198, 6738, 300, 19875, 1330, 2123, 631, 198, 6738, 2205, 22602, 13, 2536, 62, 22602, 1330, 3487, 1096, 11, 1064, 62, 4868, 11, 1064, 62, 3...
2.631579
114
# Copyright 2021 Huawei Technologies Co., Ltd # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or a...
[ 2, 15069, 33448, 43208, 21852, 1766, 1539, 12052, 201, 198, 2, 201, 198, 2, 49962, 739, 262, 24843, 13789, 11, 10628, 362, 13, 15, 357, 1169, 366, 34156, 15341, 201, 198, 2, 345, 743, 407, 779, 428, 2393, 2845, 287, 11846, 351, 262,...
3.355828
326
import jwt import uuid import time from datetime import datetime from tests.conftest import set_config_values import pytest from flask import json, current_app, request from freezegun import freeze_time from notifications_python_client.authentication import create_jwt_token from app import api_user from app.dao.api_k...
[ 11748, 474, 46569, 198, 11748, 334, 27112, 198, 11748, 640, 198, 6738, 4818, 8079, 1330, 4818, 8079, 198, 6738, 5254, 13, 1102, 701, 395, 1330, 900, 62, 11250, 62, 27160, 198, 198, 11748, 12972, 9288, 198, 6738, 42903, 1330, 33918, 11, ...
2.768916
489
from pytorch_adapt.adapters import DANN from pytorch_adapt.frameworks.ignite import Ignite, IgniteRecordKeeperLogger from .. import TEST_FOLDER from .utils import get_datasets, get_gcd
[ 6738, 12972, 13165, 354, 62, 42552, 13, 324, 12126, 1330, 360, 22846, 198, 6738, 12972, 13165, 354, 62, 42552, 13, 19298, 19653, 13, 570, 578, 1330, 16583, 578, 11, 16583, 578, 23739, 42, 41278, 11187, 1362, 198, 198, 6738, 11485, 1330,...
3.016129
62
from django.conf.urls import url from django.utils.translation import ugettext_lazy as _ import content.views urlpatterns = [ url(_(r'^fetchSurahs/$'), content.views.FetchSurahs.as_view(), name='fetch_surahs'), url(_(r'^fetchAyats/$'), content.views.FetchAyats.as_view(), name=...
[ 6738, 42625, 14208, 13, 10414, 13, 6371, 82, 1330, 19016, 198, 6738, 42625, 14208, 13, 26791, 13, 41519, 1330, 334, 1136, 5239, 62, 75, 12582, 355, 4808, 198, 198, 11748, 2695, 13, 33571, 198, 198, 6371, 33279, 82, 796, 685, 628, 220,...
2.173432
271
# https://stackoverflow.com/questions/16294819/check-if-my-python-has-all-required-packages
[ 2, 220, 3740, 1378, 25558, 2502, 11125, 13, 785, 14, 6138, 507, 14, 1433, 1959, 2780, 1129, 14, 9122, 12, 361, 12, 1820, 12, 29412, 12, 10134, 12, 439, 12, 35827, 12, 43789 ]
2.787879
33
import pyximport; pyximport.install() from gryphon.lib.exchange.itbit_btc_usd import ItbitBTCUSDExchange from gryphon.tests.logic.exchange_wrappers.public_methods import ExchangePublicMethodsTests
[ 11748, 12972, 87, 11748, 26, 12972, 87, 11748, 13, 17350, 3419, 198, 198, 6738, 308, 563, 746, 261, 13, 8019, 13, 1069, 3803, 13, 270, 2545, 62, 18347, 66, 62, 385, 67, 1330, 632, 2545, 35964, 29072, 3109, 3803, 198, 6738, 308, 563,...
2.898551
69
from manimlib.animation.transform import Transform from manimlib.basic.basic_function import to_expand_lists, to_get_point from manimlib.constants import PI from manimlib.utils.config_ops import generate_args, merge_config_kwargs
[ 6738, 582, 320, 8019, 13, 11227, 341, 13, 35636, 1330, 26981, 198, 6738, 582, 320, 8019, 13, 35487, 13, 35487, 62, 8818, 1330, 284, 62, 11201, 392, 62, 20713, 11, 284, 62, 1136, 62, 4122, 198, 6738, 582, 320, 8019, 13, 9979, 1187, ...
3.25
76
from . expressions.basic import Variable, Expression, Addition, Subtraction, Multiplication, Division from . expressions.trigonometric import Sin, Cos, Tan, Sinh, Cosh, Tanh from . expressions.unary import Exp, Sqrt, Ln, Sqrt, Par from . expressions.discontinous import Min, Max from . expressions.equation import Equa...
[ 6738, 764, 14700, 13, 35487, 1330, 35748, 11, 41986, 11, 3060, 653, 11, 3834, 83, 7861, 11, 15237, 489, 3299, 11, 7458, 198, 6738, 764, 14700, 13, 2213, 37107, 16996, 1330, 10884, 11, 10437, 11, 11818, 11, 220, 10884, 71, 11, 327, 3...
3.459227
233
# 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.548387
217
from .filec_pb2 import * __all__ = ['CreatedMsg', 'ModifiedMsg', 'MovedMsg', 'DeleteMsg']
[ 6738, 764, 7753, 66, 62, 40842, 17, 1330, 1635, 628, 198, 834, 439, 834, 796, 37250, 41972, 50108, 3256, 705, 5841, 1431, 50108, 3256, 705, 44, 2668, 50108, 3256, 705, 38727, 50108, 20520 ]
2.757576
33
from pytanga.components import AbstractComponent
[ 6738, 12972, 83, 16484, 13, 5589, 3906, 1330, 27741, 21950, 628, 198 ]
4.25
12
""" The below functions are not automatically imported when you import the tribology package. They need to be imported on a sub-module level: :code:`from tribology.p3can.p3can import p3can, generate_input_file` **Note: The P3CAN project is currently not maintained!** The P3CAN project aimed to develop a Py...
[ 37811, 201, 198, 201, 198, 464, 2174, 5499, 389, 407, 6338, 17392, 618, 345, 1330, 262, 201, 198, 83, 822, 1435, 5301, 13, 1119, 761, 284, 307, 17392, 319, 257, 850, 12, 21412, 1241, 25, 201, 198, 201, 198, 25, 8189, 25, 63, 6738,...
2.498771
2,847
from django.shortcuts import render from .serializer import AccountSerializer from .models import Account from rest_framework import viewsets # Create your views here.
[ 6738, 42625, 14208, 13, 19509, 23779, 1330, 8543, 198, 6738, 764, 46911, 7509, 1330, 10781, 32634, 7509, 198, 6738, 764, 27530, 1330, 10781, 198, 6738, 1334, 62, 30604, 1330, 5009, 1039, 198, 2, 13610, 534, 5009, 994, 13, 628, 198 ]
4.25
40
from ..factory import Type
[ 6738, 11485, 69, 9548, 1330, 5994, 628 ]
4
7
import h5py import numpy as np import argparse import sys import cv2 # Getter for the all available keys # Getter for keys that aren't currently curated # Getter for keys that have a specific number of labelers # Returns the video, mask, and label data from a given key # Updates labeling data for a video # Enable...
[ 11748, 289, 20, 9078, 198, 11748, 299, 32152, 355, 45941, 198, 11748, 1822, 29572, 198, 11748, 25064, 198, 11748, 269, 85, 17, 198, 197, 2, 3497, 353, 329, 262, 477, 1695, 8251, 198, 197, 2, 3497, 353, 329, 8251, 326, 3588, 470, 305...
3.362573
171
#Kyle Verdeyen #Independent Study, Summer 2017 #Joanne Selinski #Views for the classeditor, uses UpdateView to copy over the MainFormModel into something that can be edited. from django.urls import reverse from mainform.models import MainFormModel from django.views.generic.edit import UpdateView # Create your views her...
[ 2, 42516, 4643, 2934, 88, 268, 198, 2, 40566, 12481, 11, 10216, 2177, 198, 2, 9908, 21952, 15300, 21141, 198, 2, 7680, 82, 329, 262, 1398, 35352, 11, 3544, 10133, 7680, 284, 4866, 625, 262, 8774, 8479, 17633, 656, 1223, 326, 460, 30...
3.833333
84
"""Write a HashTable class that stores strings in a hash table, where keys are calculated using the first two letters of the string.""" # Setup hash_table = HashTable() # Test calculate_hash_value # Should be 8568 print(hash_table.calculate_hash_value('UDACITY')) # Test lookup edge...
[ 37811, 16594, 257, 21059, 10962, 1398, 326, 7000, 13042, 201, 198, 259, 257, 12234, 3084, 11, 810, 8251, 389, 10488, 201, 198, 3500, 262, 717, 734, 7475, 286, 262, 4731, 526, 15931, 201, 198, 220, 220, 220, 220, 220, 220, 220, 220, ...
2.533898
236
import os import struct from JumpScale import j j.application.start("pexpect") import JumpScale.baselib.expect e=j.tools.expect.new("sh") do=e.execShellCmd do("cd /etc") print do("ls") # from IPython import embed # print "DEBUG NOW main" # embed() j.application.stop()
[ 11748, 28686, 198, 11748, 2878, 198, 198, 6738, 15903, 29990, 1330, 474, 198, 198, 73, 13, 31438, 13, 9688, 7203, 24900, 806, 4943, 198, 198, 11748, 15903, 29990, 13, 12093, 417, 571, 13, 1069, 806, 628, 198, 68, 28, 73, 13, 31391, ...
2.745098
102
# Copyright (c) 2015 Mirantis Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing...
[ 2, 15069, 357, 66, 8, 1853, 7381, 20836, 3457, 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, 262, 13789, 13, ...
3.45614
285
"""AutoComplete.py - An IDLE extension dla automatically completing names. This extension can complete either attribute names of file names. It can pop a window przy all available names, dla the user to select from. """ zaimportuj os zaimportuj sys zaimportuj string z idlelib.configHandler zaimportuj idleConf # This...
[ 37811, 27722, 20988, 13, 9078, 532, 1052, 4522, 2538, 7552, 288, 5031, 6338, 14339, 3891, 13, 198, 198, 1212, 7552, 460, 1844, 2035, 11688, 3891, 286, 2393, 3891, 13, 632, 460, 1461, 198, 64, 4324, 778, 7357, 477, 1695, 3891, 11, 288,...
1.984401
4,167
import peewee as pw db = pw.SqliteDatabase('/config.db') db.create_tables([RoleChannel, ReactionRole])
[ 11748, 613, 413, 1453, 355, 279, 86, 198, 198, 9945, 796, 279, 86, 13, 50, 13976, 578, 38105, 10786, 14, 11250, 13, 9945, 11537, 198, 198, 9945, 13, 17953, 62, 83, 2977, 26933, 47445, 29239, 11, 39912, 47445, 12962, 198 ]
2.625
40
""" Base Job """ # local Django from app.modules.util.helpers import Helpers from app.modules.entity.option_entity import Option_Entity
[ 37811, 198, 14881, 15768, 198, 37811, 198, 198, 2, 1957, 37770, 198, 6738, 598, 13, 18170, 13, 22602, 13, 16794, 364, 1330, 10478, 364, 198, 6738, 598, 13, 18170, 13, 26858, 13, 18076, 62, 26858, 1330, 16018, 62, 32398, 198 ]
3.425
40
import lib.dongle as d import time #-------------------------------------------------------------------- #----------------------------------------------------------------------- #------------------------------------------------------------------------ #-----------------------------------------------------------...
[ 11748, 9195, 13, 67, 506, 293, 355, 288, 198, 11748, 640, 198, 198, 2, 10097, 650, 198, 220, 220, 220, 220, 198, 2, 10097, 26866, 198, 198, 2, 10097, 982, 198, 198, 2, 10097, 45537, 628, 198, 2, 10097, 10541, 628, 198, 198, 67, ...
8.897959
49
from sh import chmod, Command, mkdir, tar from ..err import Err from .core import twopaths, onepath class Tar(object): """ With ``tar+...`` type URLs, passing fragment can give the source file nature; but by default it has directory nature. A fragment can reference a subdirectory or a particular fil...
[ 6738, 427, 1330, 442, 4666, 11, 9455, 11, 33480, 15908, 11, 13422, 198, 198, 6738, 11485, 8056, 1330, 41512, 198, 6738, 764, 7295, 1330, 665, 18569, 82, 11, 530, 6978, 628, 198, 4871, 14110, 7, 15252, 2599, 198, 220, 220, 220, 37227, ...
3.377622
286
import os import regex as re from langdetect import detect from util.constant import Path from sys import stdout from util.log import Log FACT_DIGIT_REGEX = r"\[\d+\]" TENANT_REGEX = r"locataire(s)?" LANDLORD_REGEX = r"locat(eur|rice)(s)?" regexes = [ # absent re.compile( FACT_DIGIT_REGEX + ...
[ 11748, 28686, 198, 11748, 40364, 355, 302, 198, 6738, 42392, 15255, 478, 1330, 4886, 198, 6738, 7736, 13, 9979, 415, 1330, 10644, 198, 6738, 25064, 1330, 14367, 448, 198, 6738, 7736, 13, 6404, 1330, 5972, 198, 198, 37, 10659, 62, 35, ...
2.026151
1,912
#!/usr/bin/env python # encoding: utf-8 # The MIT License # # Copyright 2015-2016 University Library Bochum <ottomanhistoriography@ruhr-uni-bochum.de>. # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), to deal # ...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 198, 2, 21004, 25, 3384, 69, 12, 23, 198, 198, 2, 383, 17168, 13789, 198, 2, 198, 2, 220, 15069, 1853, 12, 5304, 2059, 10074, 3248, 354, 388, 1279, 1252, 5185, 10034, 10145, 4867, 31, 6...
2.525322
6,832
## # This software was developed and / or modified by Raytheon Company, # pursuant to Contract DG133W-05-CQ-1067 with the US Government. # # U.S. EXPORT CONTROLLED TECHNICAL DATA # This software product contains export-restricted data whose # export/transfer/disclosure is restricted by U.S. law. Dissemination # to ...
[ 2235, 198, 2, 770, 3788, 373, 4166, 290, 1220, 393, 9518, 416, 7760, 1169, 261, 5834, 11, 198, 2, 12997, 284, 17453, 46133, 16945, 54, 12, 2713, 12, 34, 48, 12, 940, 3134, 351, 262, 1294, 5070, 13, 201, 198, 2, 220, 201, 198, 2,...
2.7219
863
__version__ = '0.6.2' CLIENT_VERSION = __version__ API_VERSION = '2020-03-19'
[ 834, 9641, 834, 796, 705, 15, 13, 21, 13, 17, 6, 198, 5097, 28495, 62, 43717, 796, 11593, 9641, 834, 198, 17614, 62, 43717, 796, 705, 42334, 12, 3070, 12, 1129, 6, 198 ]
2.363636
33
from django.contrib.auth.models import User from django.http import HttpResponse, HttpResponseRedirect from django.shortcuts import render, render_to_response, get_object_or_404 from django.template import RequestContext from SecureWitnessApp.models import Comment, Report from SecureWitnessApp.forms import CommentForm ...
[ 6738, 42625, 14208, 13, 3642, 822, 13, 18439, 13, 27530, 1330, 11787, 198, 6738, 42625, 14208, 13, 4023, 1330, 367, 29281, 31077, 11, 367, 29281, 31077, 7738, 1060, 198, 6738, 42625, 14208, 13, 19509, 23779, 1330, 8543, 11, 8543, 62, 14...
3.857143
84
from __future__ import unicode_literals from django.contrib import admin from django.test import RequestFactory, TestCase from djcelery.admin import PeriodicTaskAdmin from djcelery.models import PeriodicTask, IntervalSchedule, PERIOD_CHOICES request = MockRequest() site = admin.AdminSite()
[ 6738, 11593, 37443, 834, 1330, 28000, 1098, 62, 17201, 874, 198, 198, 6738, 42625, 14208, 13, 3642, 822, 1330, 13169, 198, 6738, 42625, 14208, 13, 9288, 1330, 19390, 22810, 11, 6208, 20448, 198, 198, 6738, 42625, 7015, 88, 13, 28482, 13...
3.494118
85
# Copyright 2021-2021, cQuaid and the valheim-fch-editor contributors # SPDX-License-Identifier: MIT import struct from LocalUtil import BinIFace # vim:ts=4:sw=4:et
[ 2, 15069, 33448, 12, 1238, 2481, 11, 269, 4507, 1698, 290, 262, 1188, 9096, 12, 69, 354, 12, 35352, 20420, 198, 2, 30628, 55, 12, 34156, 12, 33234, 7483, 25, 17168, 198, 11748, 2878, 198, 6738, 10714, 18274, 346, 1330, 20828, 5064, ...
2.862069
58
import torch from torch import nn
[ 11748, 28034, 198, 6738, 28034, 1330, 299, 77, 198 ]
3.777778
9
class SceneSamples(): ''' ''' #--------------------------------------------------------------------------- geo_def = ['2a07667f31f99fc450eaecc8fbd8aa46'] #--------------------------------------------------------------------------- paper_samples = ['0058113bdc8bee5f387bb5ad316d7b28'] paper_sa...
[ 4871, 28315, 50, 12629, 33529, 198, 220, 220, 220, 705, 7061, 198, 220, 220, 220, 705, 7061, 198, 220, 220, 220, 1303, 10097, 32284, 198, 220, 220, 220, 40087, 62, 4299, 796, 37250, 17, 64, 2998, 28933, 69, 3132, 69, 2079, 16072, 17...
1.953453
4,619
"""Contains outputs structure parser.""" import math from typing import Any, Dict, Final, Optional, Tuple from pyplumio import util OUTPUTS: Final = ( "fan", "feeder", "heating_pump", "water_heater_pump", "ciculation_pump", "lighter", "alarm", "outer_boiler", "fan2_exhaust", "...
[ 37811, 4264, 1299, 23862, 4645, 30751, 526, 15931, 198, 198, 11748, 10688, 198, 6738, 19720, 1330, 4377, 11, 360, 713, 11, 8125, 11, 32233, 11, 309, 29291, 198, 198, 6738, 12972, 489, 388, 952, 1330, 7736, 198, 198, 2606, 7250, 3843, ...
2.354217
415
#!/usr/bin/env python from resource_management.libraries.script import Script from resource_management.libraries.functions import default # server configurations config = Script.get_config() stack_root = Script.get_stack_root() doris_user = config['configurations']['doris-env']['doris_user'] doris_group = user_group...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 198, 198, 6738, 8271, 62, 27604, 13, 75, 11127, 13, 12048, 1330, 12327, 198, 6738, 8271, 62, 27604, 13, 75, 11127, 13, 12543, 2733, 1330, 4277, 198, 198, 2, 4382, 25412, 198, 11250, 796, ...
2.578488
688
import requests import simplejson
[ 11748, 7007, 198, 11748, 2829, 17752, 198 ]
4.857143
7
# Generated by Django 2.2.2 on 2019-06-30 20:49 from django.conf import settings from django.db import migrations, models import django.db.models.deletion
[ 2, 2980, 515, 416, 37770, 362, 13, 17, 13, 17, 319, 13130, 12, 3312, 12, 1270, 1160, 25, 2920, 198, 198, 6738, 42625, 14208, 13, 10414, 1330, 6460, 198, 6738, 42625, 14208, 13, 9945, 1330, 15720, 602, 11, 4981, 198, 11748, 42625, 14...
3.019231
52
import unittest import sys sys.path.append('../src/msdp/') from script import ann if __name__ == '__main__': # Select whole test cases into test plate suite = unittest.TestLoader().loadTestsFromTestCase(TestAnn) # Select particular single test case into test plate #suite = unittest.TestSuite(...
[ 11748, 555, 715, 395, 198, 11748, 25064, 198, 17597, 13, 6978, 13, 33295, 10786, 40720, 10677, 14, 907, 26059, 14, 11537, 198, 6738, 4226, 1330, 1529, 198, 220, 220, 220, 220, 220, 220, 220, 220, 198, 198, 361, 11593, 3672, 834, 6624,...
2.746914
162
"""Magia Record NCOP Game version script""" __author__ = 'Vardë' import sys from pathlib import Path import vardefunc as vdf import havsfunc as hvf import G41Fun as gf import placebo import xvs from vsutil import depth, split, join import lvsfunc as lvf import vapoursynth as vs core = vs.core X264 = 'x264_tmod' N...
[ 37811, 13436, 544, 13266, 8823, 3185, 3776, 2196, 4226, 37811, 198, 834, 9800, 834, 796, 705, 53, 446, 26689, 6, 198, 198, 11748, 25064, 198, 6738, 3108, 8019, 1330, 10644, 198, 198, 11748, 410, 446, 891, 19524, 355, 410, 7568, 198, 1...
2.125749
1,336
# ##### BEGIN GPL LICENSE BLOCK ##### # # 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 2 # of the License, or (at your option) any later version. # # This program is distrib...
[ 2, 46424, 347, 43312, 38644, 38559, 24290, 9878, 11290, 46424, 198, 2, 198, 2, 220, 770, 1430, 318, 1479, 3788, 26, 345, 460, 17678, 4163, 340, 290, 14, 273, 198, 2, 220, 13096, 340, 739, 262, 2846, 286, 262, 22961, 3611, 5094, 1378...
3.00531
565
#!/usr/bin/env python """`git remote rm name`""" import click import github_remote MODULE_NAME = "github_remote.rm" PROG_NAME = 'python -m %s' % MODULE_NAME @click.command() @click.option('--help', is_flag=True, is_eager=False, expose_value=False, callback=_help) if __name__ == "__main__": _cli()
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 198, 37811, 63, 18300, 6569, 42721, 1438, 63, 37811, 198, 11748, 3904, 198, 11748, 33084, 62, 47960, 198, 198, 33365, 24212, 62, 20608, 796, 366, 12567, 62, 47960, 13, 26224, 1, 198, 4805, ...
2.632479
117
# Python - 3.6.0 Test.describe('Basic Tests') Test.assert_equals(seats_in_theater(16, 11, 5, 3), 96) Test.assert_equals(seats_in_theater(1, 1, 1, 1), 0) Test.assert_equals(seats_in_theater(13, 6, 8, 3), 18) Test.assert_equals(seats_in_theater(60, 100, 60, 1), 99) Test.assert_equals(seats_in_theater(1000, 1000, 1000, 1...
[ 2, 11361, 532, 513, 13, 21, 13, 15, 198, 198, 14402, 13, 20147, 4892, 10786, 26416, 30307, 11537, 198, 14402, 13, 30493, 62, 4853, 874, 7, 325, 1381, 62, 259, 62, 1169, 729, 7, 1433, 11, 1367, 11, 642, 11, 513, 828, 9907, 8, 198...
2.208054
149
# Copyright (c) 2021 NVIDIA CORPORATION & AFFILIATES. 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 requir...
[ 2, 15069, 357, 66, 8, 33448, 15127, 23929, 44680, 6234, 1222, 317, 5777, 4146, 40, 29462, 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, ...
2.132483
2,038
import cadquery as cq import logging, importlib from types import SimpleNamespace as Measures import utilities # Local directory import. # Selective reloading to pick up changes made between script executions. # See: https://github.com/CadQuery/CQ-editor/issues/99#issue-525367146 importlib.reload(utilities) log = log...
[ 11748, 20603, 22766, 355, 269, 80, 198, 11748, 18931, 11, 1330, 8019, 198, 6738, 3858, 1330, 17427, 36690, 10223, 355, 45040, 198, 11748, 20081, 1303, 10714, 8619, 1330, 13, 198, 198, 2, 9683, 425, 18126, 278, 284, 2298, 510, 2458, 925,...
2.851613
465
# (c) Copyright IBM Corp. 2010, 2017. All Rights Reserved. import pytest import unittest import mock from resilient.co3sslutil import match_hostname
[ 2, 357, 66, 8, 15069, 19764, 11421, 13, 3050, 11, 2177, 13, 1439, 6923, 33876, 13, 198, 11748, 12972, 9288, 198, 11748, 555, 715, 395, 198, 11748, 15290, 198, 6738, 30738, 13, 1073, 18, 45163, 22602, 1330, 2872, 62, 4774, 3672, 628 ]
3.571429
42
from keras.models import model_from_json import math import numpy as np import os import pandas as pd import seaborn as sns from sklearn.metrics import hamming_loss, accuracy_score, roc_auc_score from tfr.spectrogram import create_window from tfr.files import load_wav from tfr.analysis import split_to_blocks from tfr.r...
[ 6738, 41927, 292, 13, 27530, 1330, 2746, 62, 6738, 62, 17752, 198, 11748, 10688, 198, 11748, 299, 32152, 355, 45941, 198, 11748, 28686, 198, 11748, 19798, 292, 355, 279, 67, 198, 11748, 384, 397, 1211, 355, 3013, 82, 198, 6738, 1341, ...
2.66236
1,161
#!/usr/bin/env python3 import argparse import datetime import itertools import logging import re import socket import subprocess import sys import time from contextlib import closing from pathlib import Path from fabric import Connection from invoke import CommandTimedOut log = logging.getLogger('rtl8xxxu benchmark')...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 18, 198, 11748, 1822, 29572, 198, 11748, 4818, 8079, 198, 11748, 340, 861, 10141, 198, 11748, 18931, 198, 11748, 302, 198, 11748, 17802, 198, 11748, 850, 14681, 198, 11748, 25064, 198, 11748, ...
2.631868
364
from string import ascii_uppercase def int_to_a1(num, alphabet): ''' Converts column position integer to correponding A1 notation letter. Expects alphabet to be the ASCII 26 lowercase or uppercase letters. 1 indexed. 0 returns empty string. ''' base = len(alphabet) result = "" w...
[ 6738, 4731, 1330, 355, 979, 72, 62, 7211, 2798, 589, 198, 198, 4299, 493, 62, 1462, 62, 64, 16, 7, 22510, 11, 24830, 2599, 198, 220, 220, 220, 705, 7061, 198, 220, 220, 220, 1482, 24040, 5721, 2292, 18253, 198, 220, 220, 220, 284,...
2.141026
390
from django.template.base import TemplateSyntaxError from django.test import SimpleTestCase from django.utils.lorem_ipsum import COMMON_P, WORDS from ..utils import setup
[ 6738, 42625, 14208, 13, 28243, 13, 8692, 1330, 37350, 13940, 41641, 12331, 198, 6738, 42625, 14208, 13, 9288, 1330, 17427, 14402, 20448, 198, 6738, 42625, 14208, 13, 26791, 13, 75, 29625, 62, 2419, 388, 1330, 22240, 1340, 62, 47, 11, 21...
3.46
50
from django.db import models from imagekit.models import ImageSpecField from imagekit.processors import ResizeToFill
[ 6738, 42625, 14208, 13, 9945, 1330, 4981, 198, 6738, 2939, 15813, 13, 27530, 1330, 7412, 22882, 15878, 198, 6738, 2939, 15813, 13, 14681, 669, 1330, 1874, 1096, 2514, 33762, 628 ]
3.933333
30
import json import logging from pathlib import Path import shutil import sys import pytest from nbautoexport.sentinel import NbAutoexportConfig, SAVE_PROGRESS_INDICATOR_FILE from nbautoexport.utils import ( JupyterNotebook, cleared_argv, find_notebooks, get_logger, working_directory, ) def test_...
[ 11748, 33918, 198, 11748, 18931, 198, 6738, 3108, 8019, 1330, 10644, 198, 11748, 4423, 346, 198, 11748, 25064, 198, 198, 11748, 12972, 9288, 198, 198, 6738, 299, 65, 23736, 39344, 13, 34086, 20538, 1330, 399, 65, 27722, 39344, 16934, 11, ...
2.608491
636
imprt random clss TicTacToe: def __init__(self, playerX, playerO): self.board = [' '] * 9 self.playerX, self.playerO = playerX, playerO self.playerX_turn = True p1 = MinimaxPlayer() p2 = Player() while True: t = TicTacToe(p1, p2) t.play_game()
[ 320, 1050, 83, 4738, 628, 198, 565, 824, 309, 291, 51, 330, 2514, 68, 25, 198, 220, 220, 220, 825, 11593, 15003, 834, 7, 944, 11, 2137, 55, 11, 2137, 46, 2599, 198, 220, 220, 220, 220, 220, 220, 220, 2116, 13, 3526, 796, 37250, ...
2.05
140
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.conf import settings from django.utils.translation import ugettext_lazy as _ from cms.plugin_base import CMSPluginBase from cms.plugin_pool import plugin_pool from djangocms_bootstrap4.helpers import get_plugin_template, concat_classes from...
[ 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, 10414, 1330, 6460, 198, 6738, 42625, 14208, 13, 26791, 13, 41519, 1330, 334, ...
2.121801
977
''' ------------------------------------------------------------------------------ Copyright (c) 2016 Microsoft 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, ...
[ 7061, 6, 198, 10097, 26171, 198, 15069, 357, 66, 8, 1584, 5413, 10501, 198, 2448, 3411, 318, 29376, 7520, 11, 1479, 286, 3877, 11, 284, 597, 1048, 16727, 257, 4866, 198, 286, 428, 3788, 290, 3917, 10314, 3696, 357, 1169, 366, 25423, ...
4.575972
283
import tkinter import tkinter.font # Custom Labels constants from scripts import General, Parameters, Constants from scripts.frontend.custom_widgets.WidgetInterface import WidgetInterface """ Parent generic label """ """ Custom label """
[ 11748, 256, 74, 3849, 198, 11748, 256, 74, 3849, 13, 10331, 198, 198, 2, 8562, 3498, 1424, 38491, 198, 6738, 14750, 1330, 3611, 11, 40117, 11, 4757, 1187, 198, 6738, 14750, 13, 8534, 437, 13, 23144, 62, 28029, 11407, 13, 38300, 39317,...
3.506849
73
import math import arcade from bullet import Bullet class GlowImageSprite(Bullet): """ Sprite that sets its angle to the direction it is traveling in. """ def update(self): """ Move the sprite """ super().update() self.angle = math.degrees(math.atan2(self.change_y, self.change_x))
[ 11748, 10688, 198, 11748, 27210, 198, 6738, 10492, 1330, 18003, 628, 198, 4871, 45929, 5159, 38454, 578, 7, 33481, 1616, 2599, 198, 220, 220, 220, 37227, 33132, 326, 5621, 663, 9848, 284, 262, 4571, 340, 318, 11300, 287, 13, 37227, 628,...
2.908257
109
import requests,os,time,random,re,json os.system('clear') _c='\033[96m' _g='\033[92m' _w='\033[97m' _r='\033[91m' print(""" %s\t############################# \t# %s[ NUYUL CAPING ] %s# \t# %s[ BY KANG-NEWBIE ] %s# \t############################# %sNote: Author tidak bertanggung jawab atas a...
[ 11748, 7007, 11, 418, 11, 2435, 11, 25120, 11, 260, 11, 17752, 201, 198, 201, 198, 418, 13, 10057, 10786, 20063, 11537, 201, 198, 62, 66, 11639, 59, 44427, 58, 4846, 76, 6, 201, 198, 62, 70, 11639, 59, 44427, 58, 5892, 76, 6, 20...
1.872781
338
import os from pathlib import Path from unittest import TestCase import validator.validator as validator from .test_utils import schema, build_map
[ 11748, 28686, 198, 6738, 3108, 8019, 1330, 10644, 198, 6738, 555, 715, 395, 1330, 6208, 20448, 198, 198, 11748, 4938, 1352, 13, 12102, 1352, 355, 4938, 1352, 198, 6738, 764, 9288, 62, 26791, 1330, 32815, 11, 1382, 62, 8899, 628 ]
3.725
40
import json import logging # add additional attributes you need here format_string = { "filename": "%(filename)s", "levelname": "%(levelname)s", "message": "%(message)s", "levelno": "%(levelno)s", "logger": "%(name)s", "pathname": "%(pathname)s", "funcName": "%(funcName)s" } # set default ...
[ 11748, 33918, 198, 11748, 18931, 198, 198, 2, 751, 3224, 12608, 345, 761, 994, 198, 18982, 62, 8841, 796, 1391, 198, 220, 220, 220, 366, 34345, 1298, 36521, 7, 34345, 8, 82, 1600, 198, 220, 220, 220, 366, 5715, 3672, 1298, 36521, 7,...
2.72549
153
import logging from ipaddress import IPv4Address from typing import Any, Dict import rapidjson import uvicorn from fastapi import Depends, FastAPI from fastapi.middleware.cors import CORSMiddleware from starlette.responses import JSONResponse from freqtrade.exceptions import OperationalException from freqtrade.rpc.ap...
[ 11748, 18931, 198, 6738, 20966, 21975, 1330, 25961, 19, 20231, 198, 6738, 19720, 1330, 4377, 11, 360, 713, 198, 198, 11748, 5801, 17752, 198, 11748, 334, 25531, 1211, 198, 6738, 3049, 15042, 1330, 2129, 2412, 11, 12549, 17614, 198, 6738, ...
3.391304
138
from slack import SlackConnection from socketio import SocketIOConnection
[ 6738, 30740, 1330, 36256, 32048, 198, 6738, 17802, 952, 1330, 47068, 9399, 32048, 198 ]
5.285714
14
# -*- coding = utf-8 -*- # @Time : 2021/6/18 17:26 # @Author : 水神与月神 # @File : LocalWeb.py # @Software : PyCharm import cv2 as cv from keras import backend as K from ListMerge import list_merge from TestModel import TestModel from Classes.Normal import Normal from SlidingWindow.SlidingWindow import SlidingWindow cla...
[ 2, 532, 9, 12, 19617, 796, 3384, 69, 12, 23, 532, 9, 12, 198, 2, 2488, 7575, 1058, 33448, 14, 21, 14, 1507, 1596, 25, 2075, 198, 2, 2488, 13838, 1058, 10545, 108, 112, 15351, 10310, 236, 17312, 230, 15351, 198, 2, 2488, 8979, 10...
1.543726
526
__all__ = [ 'common', 'corpus', 'document', 'analysis', ] from gender_analysis import * from gender_analysis.corpus import Corpus from gender_analysis.document import Document
[ 834, 439, 834, 796, 685, 198, 220, 220, 220, 705, 11321, 3256, 198, 220, 220, 220, 705, 10215, 79, 385, 3256, 198, 220, 220, 220, 705, 22897, 3256, 198, 220, 220, 220, 705, 20930, 3256, 198, 60, 198, 198, 6738, 5279, 62, 20930, 13...
2.924242
66
''' 绘制各种图形 弧 圆形 椭圆 矩形(正方形) 多边形 绘制图像 ''' import sys,math from PyQt5.QtWidgets import * from PyQt5.QtGui import * from PyQt5.QtCore import * if __name__ == '__main__': app = QApplication(sys.argv) main = DrawAll() main.show() sys.exit(app.exec_())
[ 7061, 6, 198, 198, 163, 119, 246, 26344, 114, 28938, 226, 163, 100, 235, 32368, 122, 37605, 95, 198, 198, 28156, 100, 198, 28839, 228, 37605, 95, 198, 162, 97, 255, 28839, 228, 198, 163, 253, 102, 37605, 95, 171, 120, 230, 29826, ...
1.534483
174
""" --- Day 10: Syntax Scoring --- https://adventofcode.com/2021/day/10 """ from aocd import data from statistics import median a = b = 0 bs = [] for line in data.splitlines(): parser = Parser() try: parser(line) except ParserError as err: a += err.syntax_error_score else: bs...
[ 37811, 198, 6329, 3596, 838, 25, 26375, 897, 1446, 3255, 11420, 198, 5450, 1378, 324, 1151, 1659, 8189, 13, 785, 14, 1238, 2481, 14, 820, 14, 940, 198, 37811, 198, 6738, 257, 420, 67, 1330, 1366, 198, 6738, 7869, 1330, 14288, 628, 6...
2.337017
181
from temboo.Library.eBay.Trading.AddBasicListing import AddBasicListing, AddBasicListingInputSet, AddBasicListingResultSet, AddBasicListingChoreographyExecution from temboo.Library.eBay.Trading.AddItem import AddItem, AddItemInputSet, AddItemResultSet, AddItemChoreographyExecution from temboo.Library.eBay.Trading.AddMe...
[ 6738, 2169, 2127, 78, 13, 23377, 13, 68, 15262, 13, 2898, 4980, 13, 4550, 26416, 8053, 278, 1330, 3060, 26416, 8053, 278, 11, 3060, 26416, 8053, 278, 20560, 7248, 11, 3060, 26416, 8053, 278, 23004, 7248, 11, 3060, 26416, 8053, 278, 19...
3.475504
1,041
import numpy as np return array1, array2
[ 11748, 299, 32152, 355, 45941, 628, 220, 220, 220, 220, 220, 220, 220, 1441, 7177, 16, 11, 7177, 17, 198 ]
2.5
20
# -*- coding: utf-8 -*- from __future__ import absolute_import as _init __author__ = 'lovelylain' __version__ = '0.2.1' __all__ = ['ApiStruct', 'MdApi', 'TraderApi'] if 0: from . import ApiStruct _init()
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 198, 6738, 11593, 37443, 834, 1330, 4112, 62, 11748, 355, 4808, 15003, 198, 198, 834, 9800, 834, 796, 705, 23205, 306, 34277, 6, 198, 834, 9641, 834, 796, 705, 15, 13,...
2.344444
90
from flask import Flask app = Flask(__name__) # "/hello"와 "/hi"에 각각 라우팅한다 # "/hello"와 "/hi"라는 서로 다른 리소스 경로 설정 @app.route('/hello') @app.route('/hi') if __name__=="__main__": app.run(port=5000)
[ 6738, 42903, 1330, 46947, 198, 198, 1324, 796, 46947, 7, 834, 3672, 834, 8, 198, 198, 2, 12813, 31373, 1, 168, 247, 222, 12813, 5303, 1, 168, 245, 238, 220, 166, 108, 223, 166, 108, 223, 31619, 251, 120, 168, 248, 108, 169, 234, ...
1.402778
144
# Licensed under the BSD 3-Clause License # Copyright (C) 2021 GeospaceLab (geospacelab) # Author: Lei Cai, Space Physics and Astronomy, University of Oulu __author__ = "Lei Cai" __copyright__ = "Copyright 2021, GeospaceLab" __license__ = "BSD-3-Clause License" __email__ = "lei.cai@oulu.fi" __docformat__ = "reStructur...
[ 2, 49962, 739, 262, 347, 10305, 513, 12, 2601, 682, 13789, 198, 2, 15069, 357, 34, 8, 33448, 2269, 24912, 17822, 357, 469, 2117, 330, 417, 397, 8, 198, 2, 6434, 25, 48579, 327, 1872, 11, 4687, 23123, 290, 25398, 9145, 11, 2059, 28...
2.754286
350
from dataclasses import dataclass from typing import Any, Optional from ..utils import parse_json @dataclass
[ 6738, 4818, 330, 28958, 1330, 4818, 330, 31172, 198, 6738, 19720, 1330, 4377, 11, 32233, 198, 198, 6738, 11485, 26791, 1330, 21136, 62, 17752, 628, 198, 31, 19608, 330, 31172, 198 ]
3.612903
31