content
stringlengths
1
1.05M
input_ids
listlengths
1
883k
ratio_char_token
float64
1
22.9
token_count
int64
1
883k
import mysql.connector import socket from contextlib import closing import json import random packetType= ["INF","TRN","USR"] database = mysql.connector.connect( host="localhost", user="root", port="3307", passwd="ergin00000", database="farmchain" )
[ 11748, 48761, 13, 8443, 273, 198, 11748, 17802, 198, 6738, 4732, 8019, 1330, 9605, 198, 11748, 33918, 198, 11748, 4738, 198, 198, 8002, 316, 6030, 28, 14631, 1268, 37, 2430, 5446, 45, 2430, 2937, 49, 8973, 198, 48806, 796, 48761, 13, ...
2.864583
96
#!/usr/bin/python '''Test WAF Access settings''' #TODO: make so waflz_server only runs once and then can post to it # ------------------------------------------------------------------------------ # Imports # ------------------------------------------------------------------------------ import pytest import subprocess...
[ 2, 48443, 14629, 14, 8800, 14, 29412, 198, 7061, 6, 14402, 370, 8579, 8798, 6460, 7061, 6, 198, 2, 51, 3727, 46, 25, 787, 523, 266, 1878, 75, 89, 62, 15388, 691, 4539, 1752, 290, 788, 460, 1281, 284, 340, 220, 198, 2, 16529, 261...
5.933764
619
#coding: utf-8 from __future__ import print_function from builtins import zip from builtins import object from cosmosis import output as output_module import numpy as np import sys import os
[ 2, 66, 7656, 25, 3384, 69, 12, 23, 198, 6738, 11593, 37443, 834, 1330, 3601, 62, 8818, 198, 6738, 3170, 1040, 1330, 19974, 198, 6738, 3170, 1040, 1330, 2134, 198, 6738, 8615, 76, 5958, 1330, 5072, 355, 5072, 62, 21412, 198, 198, 117...
3.574074
54
#!/usr/bin/env python # # convert SDCC .rel files to 32-bit ELF relocatable # # resulting file is simple: # # ------------------------ # ELF header # ------------------------ # .text section # .shstrtab section # .strtab section # .symtab section # ------------------------ # NULL elf32_shdr # .text elf32_shdr # .shstrt...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 198, 2, 198, 2, 10385, 9834, 4093, 764, 2411, 3696, 284, 3933, 12, 2545, 17852, 37, 823, 420, 21156, 198, 2, 198, 2, 7186, 2393, 318, 2829, 25, 198, 2, 198, 2, 220, 22369, 198, 2, 178...
2.200546
3,665
#! /usr/bin/env python import tensorflow as tf import numpy as np import os import time import datetime from tensorflow.contrib import learn from input_helpers import InputHelper # Parameters # ================================================== # Eval Parameters tf.flags.DEFINE_integer("batch_size", 64, "Batch Size (...
[ 2, 0, 1220, 14629, 14, 8800, 14, 24330, 21015, 198, 198, 11748, 11192, 273, 11125, 355, 48700, 198, 11748, 299, 32152, 355, 45941, 198, 11748, 28686, 198, 11748, 640, 198, 11748, 4818, 8079, 198, 6738, 11192, 273, 11125, 13, 3642, 822, ...
2.539349
1,474
from django.urls import reverse from django.conf import settings from django.contrib import messages from django.shortcuts import render, redirect from django.core.mail import send_mail from django.contrib.auth import login, logout, views, authenticate from django.views.generic.edit import CreateView from django.contri...
[ 6738, 42625, 14208, 13, 6371, 82, 1330, 9575, 198, 6738, 42625, 14208, 13, 10414, 1330, 6460, 198, 6738, 42625, 14208, 13, 3642, 822, 1330, 6218, 198, 6738, 42625, 14208, 13, 19509, 23779, 1330, 8543, 11, 18941, 198, 6738, 42625, 14208, ...
3.049451
364
v<caret>ar = (1, 'foo', None)
[ 85, 27, 6651, 83, 29, 283, 796, 357, 16, 11, 705, 21943, 3256, 6045, 8 ]
1.933333
15
# THIS FILE IS GENERATED FROM SCIPY SETUP.PY short_version = '1.5.4' version = '1.5.4' full_version = '1.5.4' git_revision = '19acfed431060aafaa963f7e530c95e70cd4b85c' release = True if not release: version = full_version
[ 198, 2, 12680, 45811, 3180, 24700, 1137, 11617, 16034, 6374, 4061, 56, 25823, 8577, 13, 47, 56, 198, 19509, 62, 9641, 796, 705, 16, 13, 20, 13, 19, 6, 198, 9641, 796, 705, 16, 13, 20, 13, 19, 6, 198, 12853, 62, 9641, 796, 705, ...
2.213592
103
from typing import TextIO, Union from .json import load_json from .yaml import load_yaml PARSERS = { 'yaml': load_yaml, 'json': load_json, }
[ 6738, 19720, 1330, 8255, 9399, 11, 4479, 198, 198, 6738, 764, 17752, 1330, 3440, 62, 17752, 198, 6738, 764, 88, 43695, 1330, 3440, 62, 88, 43695, 198, 198, 27082, 50, 4877, 796, 1391, 198, 220, 220, 220, 705, 88, 43695, 10354, 3440, ...
2.533333
60
# coding=utf-8 # *** WARNING: this file was generated by the Pulumi SDK Generator. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** import warnings import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union, overload from .. import _utilities from...
[ 2, 19617, 28, 40477, 12, 23, 198, 2, 17202, 39410, 25, 428, 2393, 373, 7560, 416, 262, 21624, 12994, 26144, 35986, 13, 17202, 198, 2, 17202, 2141, 407, 4370, 416, 1021, 4556, 345, 821, 1728, 345, 760, 644, 345, 389, 1804, 0, 17202, ...
2.628885
547
__author__ = 'AlexYang'
[ 834, 9800, 834, 796, 705, 15309, 38663, 6, 198 ]
2.666667
9
# -*- coding: utf-8 -*- from quail.distance import * import numpy as np import pytest from scipy.spatial.distance import cdist
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 198, 6738, 627, 603, 13, 30246, 1330, 1635, 198, 11748, 299, 32152, 355, 45941, 198, 11748, 12972, 9288, 198, 6738, 629, 541, 88, 13, 2777, 34961, 13, 30246, 1330, 269, ...
2.782609
46
#!/usr/bin/env python ############################################################################### # # # manifestManager.py # # ...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 198, 29113, 29113, 7804, 4242, 21017, 198, 2, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220,...
2.742495
1,499
# # PySNMP MIB module ZYXEL-AclV2-MIB (http://snmplabs.com/pysmi) # ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/ZYXEL-AclV2-MIB # Produced by pysmi-0.3.4 at Mon Apr 29 21:43:03 2019 # On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4 # Using Python version 3.7.3 (default, Mar 27...
[ 2, 198, 2, 9485, 15571, 7378, 337, 9865, 8265, 1168, 56, 55, 3698, 12, 32, 565, 53, 17, 12, 8895, 33, 357, 4023, 1378, 16184, 76, 489, 8937, 13, 785, 14, 79, 893, 11632, 8, 198, 2, 7054, 45, 13, 16, 2723, 2393, 1378, 14, 14490...
2.439575
11,477
#!/usr/bin/env python2.7 import unittest import canning if __name__ == "__main__": unittest.main()
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 17, 13, 22, 198, 198, 11748, 555, 715, 395, 198, 198, 11748, 460, 768, 628, 628, 198, 361, 11593, 3672, 834, 6624, 366, 834, 12417, 834, 1298, 198, 220, 220, 220, 555, 715, 395, 13, 124...
2.369565
46
print('-+-' *10) print(' GERADOR DE PA') print('+-+' * 10) c = 1 ter = int(input('Insira o primeiro termo - ')) rz = int(input('Insira a razo - ')) while c <= 10: print(ter, ' ', end=' ') ter += rz c += 1 print('FIM')
[ 4798, 10786, 19529, 19355, 1635, 940, 8, 198, 4798, 10786, 220, 220, 220, 220, 220, 220, 44186, 2885, 1581, 5550, 8147, 11537, 198, 4798, 10786, 10, 19529, 6, 1635, 838, 8, 198, 198, 66, 796, 352, 198, 198, 353, 796, 493, 7, 15414, ...
2.104348
115
#!/usr/bin/env python3 from .gp import GP from .pyro import _PyroMixin # This will only contain functions if Pyro is installed
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 18, 198, 198, 6738, 764, 31197, 1330, 14714, 198, 6738, 764, 9078, 305, 1330, 4808, 20519, 305, 35608, 259, 220, 1303, 770, 481, 691, 3994, 5499, 611, 44954, 318, 6589, 628 ]
3.333333
39
import pytest from flask_resty import Api from flask_resty.testing import assert_response # ----------------------------------------------------------------------------- # ----------------------------------------------------------------------------- def test_ping(base_client): response = base_client.get("/pi...
[ 11748, 12972, 9288, 198, 198, 6738, 42903, 62, 2118, 88, 1330, 5949, 72, 198, 6738, 42903, 62, 2118, 88, 13, 33407, 1330, 6818, 62, 26209, 198, 198, 2, 16529, 32501, 628, 198, 198, 2, 16529, 32501, 628, 198, 4299, 1332, 62, 13886, 7...
4.351064
94
from numpy.testing import assert_allclose from astropy.io import ascii from astropy import units as u import lightkurve as lk from exovetter import const as exo_const from exovetter import vetters from exovetter.tce import Tce from astropy.utils.data import get_pkg_data_filename
[ 6738, 299, 32152, 13, 33407, 1330, 6818, 62, 439, 19836, 198, 6738, 6468, 28338, 13, 952, 1330, 355, 979, 72, 198, 6738, 6468, 28338, 1330, 4991, 355, 334, 198, 11748, 1657, 74, 333, 303, 355, 300, 74, 198, 198, 6738, 409, 659, 83, ...
3.131868
91
# -*- coding: utf-8 -*- from ..Qt import QtCore, QtGui
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 6738, 11485, 48, 83, 1330, 33734, 14055, 11, 33734, 8205, 72, 628, 220, 220, 220, 220, 220, 220, 220, 220, 198 ]
1.857143
35
import os from subprocess import call files = ['000002b66c9c498e.jpg', '000002b97e5471a0.jpg', '000002c707c9895e.jpg', '0000048549557964.jpg', '000004f4400f6ec5.jpg', '0000071d71a0a6f6.jpg', '000013ba71c12506.jpg', '000018acd19b4ad3.jpg', '00001bc2c4027449.jpg', '00001bcc92282a38.jpg', '0000201cd362f303.jpg', '0000207...
[ 11748, 28686, 198, 6738, 850, 14681, 1330, 869, 198, 198, 16624, 796, 37250, 20483, 17, 65, 2791, 66, 24, 66, 36260, 68, 13, 9479, 3256, 705, 20483, 17, 65, 5607, 68, 20, 38339, 64, 15, 13, 9479, 3256, 705, 20483, 17, 66, 24038, 6...
2.07381
420
""" SNMP_FRAMEWORK_MIB """ from collections import OrderedDict from ydk.types import Entity, EntityPath, Identity, Enum, YType, YLeaf, YLeafList, YList, LeafDataList, Bits, Empty, Decimal64 from ydk.filters import YFilter from ydk.errors import YError, YModelError from ydk.errors.error_handler import handle_type_er...
[ 37811, 11346, 7378, 62, 10913, 2390, 6217, 14670, 62, 8895, 33, 220, 628, 198, 37811, 198, 6738, 17268, 1330, 14230, 1068, 35, 713, 198, 198, 6738, 331, 34388, 13, 19199, 1330, 20885, 11, 20885, 15235, 11, 27207, 11, 2039, 388, 11, 57...
3.017241
116
from aiogram.utils.markdown import hide_link from aiogram.types import CallbackQuery from loader import dp from utils import ( get_object, get_attributes_of_object ) from keyboards import ( anime_choose_safe_category, anime_sfw_categories, anime_nsfw_categories, animals_categories, ...
[ 6738, 257, 72, 21857, 13, 26791, 13, 4102, 2902, 1330, 7808, 62, 8726, 201, 198, 6738, 257, 72, 21857, 13, 19199, 1330, 4889, 1891, 20746, 201, 198, 201, 198, 6738, 40213, 1330, 288, 79, 201, 198, 6738, 3384, 4487, 1330, 357, 201, 1...
2.426752
157
#!c:\users\hooma\documents\github\spinesegmentation\segmentation_test\scripts\python.exe """ Execute a graph cut on a voxel image based on some foreground and background markers. Copyright (C) 2013 Oskar Maier This program is free software: you can redistribute it and/or modify it under the terms of the GNU General ...
[ 2, 0, 66, 7479, 18417, 59, 71, 4207, 64, 59, 15390, 2886, 59, 12567, 59, 2777, 1127, 1533, 14374, 59, 325, 5154, 341, 62, 9288, 59, 46521, 59, 29412, 13, 13499, 198, 198, 37811, 198, 23002, 1133, 257, 4823, 2005, 319, 257, 410, 11...
2.898542
1,577
author = 'Matt Harasymczuk' email = 'matt@astrotech.io' project = 'Astronaut Training Program' description = 'Astronaut Training Program' extensions = [ 'sphinx.ext.todo', 'sphinx.ext.imgmath', ] todo_emit_warnings = False todo_include_todos = True exclude_patterns = [] # ------------------------------------...
[ 9800, 796, 705, 13448, 2113, 4107, 23209, 89, 2724, 6, 198, 12888, 796, 705, 76, 1078, 31, 459, 2519, 354, 13, 952, 6, 198, 16302, 796, 705, 33751, 1313, 2306, 13614, 6118, 6, 198, 11213, 796, 705, 33751, 1313, 2306, 13614, 6118, 6,...
2.456954
1,208
from django_rdkit import models from django.forms.models import ModelForm from .models import Compound
[ 6738, 42625, 14208, 62, 4372, 15813, 1330, 4981, 198, 198, 6738, 42625, 14208, 13, 23914, 13, 27530, 1330, 9104, 8479, 198, 198, 6738, 764, 27530, 1330, 3082, 633, 628 ]
3.655172
29
from abc import ABC, abstractmethod from typing import Any, Generator, Iterable, List, Union def is_root(self, position: _Position) -> bool: """Check if the passed position contains the root node. Time complexity: O(1). :returns: True if the passed position holds the root node, else False ...
[ 6738, 450, 66, 1330, 9738, 11, 12531, 24396, 198, 6738, 19720, 1330, 4377, 11, 35986, 11, 40806, 540, 11, 7343, 11, 4479, 628, 628, 220, 220, 220, 825, 318, 62, 15763, 7, 944, 11, 2292, 25, 4808, 26545, 8, 4613, 20512, 25, 198, 22...
2.717314
2,547
from abc import ABC, abstractmethod import os import logging from nodes.helper import FileOutputNode from utils import file_utils from utils import signal_processing as sp from utils.shell_run import shell_run from config import OPENSMILE_HOME
[ 198, 6738, 450, 66, 1330, 9738, 11, 12531, 24396, 198, 11748, 28686, 198, 11748, 18931, 198, 198, 6738, 13760, 13, 2978, 525, 1330, 9220, 26410, 19667, 198, 6738, 3384, 4487, 1330, 2393, 62, 26791, 198, 6738, 3384, 4487, 1330, 6737, 62,...
3.614286
70
# Copyright 2019 The Texar 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 ...
[ 2, 15069, 13130, 383, 3567, 283, 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, 2393, 2845, 287, 11846, 351, ...
3.145773
343
from __future__ import absolute_import, division, print_function, unicode_literals import tensorflow as tf from keras import regularizers from tensorflow.keras.models import Sequential from tensorflow.keras.layers import Dense, Conv2D, Flatten, Dropout, MaxPooling2D from tensorflow.keras.preprocessing.image import Ima...
[ 6738, 11593, 37443, 834, 1330, 4112, 62, 11748, 11, 7297, 11, 3601, 62, 8818, 11, 28000, 1098, 62, 17201, 874, 198, 198, 11748, 11192, 273, 11125, 355, 48700, 198, 6738, 41927, 292, 1330, 3218, 11341, 198, 6738, 11192, 273, 11125, 13, ...
2.208314
2,141
import io import os from datetime import datetime from jinja2 import Template from loguru import logger from httprunner.exceptions import SummaryEmpty def gen_html_report(summary, report_template=None, report_dir=None, report_file=None): """ render html report with specified report name and template Args: ...
[ 11748, 33245, 198, 11748, 28686, 198, 6738, 4818, 8079, 1330, 4818, 8079, 198, 198, 6738, 474, 259, 6592, 17, 1330, 37350, 198, 6738, 2604, 14717, 1330, 49706, 198, 198, 6738, 1841, 1050, 403, 1008, 13, 1069, 11755, 1330, 21293, 40613, ...
2.555195
924
#client.py #!/usr/bin/python # This is client.py file import socket # Import socket module s = socket.socket() # Create a socket object host = socket.gethostname() # Get local machine name port = 12352 ...
[ 2, 16366, 13, 9078, 198, 198, 2, 48443, 14629, 14, 8800, 14, 29412, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1303, 770,...
2.027778
360
from CTFd import create_app from CTFd.models import * from sqlalchemy_utils import database_exists, create_database, drop_database from sqlalchemy.engine.url import make_url import datetime import six if six.PY2: text_type = unicode binary_type = str else: text_type = str binary_type = bytes ...
[ 6738, 327, 10234, 67, 1330, 2251, 62, 1324, 198, 6738, 327, 10234, 67, 13, 27530, 1330, 1635, 198, 6738, 44161, 282, 26599, 62, 26791, 1330, 6831, 62, 1069, 1023, 11, 2251, 62, 48806, 11, 4268, 62, 48806, 198, 6738, 44161, 282, 26599,...
2.834783
115
"""Consts for Kaiterra integration.""" from datetime import timedelta from homeassistant.const import ( CONCENTRATION_MICROGRAMS_PER_CUBIC_METER, CONCENTRATION_MILLIGRAMS_PER_CUBIC_METER, CONCENTRATION_PARTS_PER_BILLION, CONCENTRATION_PARTS_PER_MILLION, PERCENTAGE, Platform, ) DOMAIN = "kaite...
[ 37811, 3103, 6448, 329, 11611, 2676, 430, 11812, 526, 15931, 198, 198, 6738, 4818, 8079, 1330, 28805, 12514, 198, 198, 6738, 1363, 562, 10167, 13, 9979, 1330, 357, 198, 220, 220, 220, 39962, 3525, 49, 6234, 62, 49884, 49, 7730, 24115, ...
2.017381
863
from django.shortcuts import render, redirect from django.http import HttpResponseRedirect from .models import SupportProject # Create your views here.
[ 6738, 42625, 14208, 13, 19509, 23779, 1330, 8543, 11, 18941, 198, 6738, 42625, 14208, 13, 4023, 1330, 367, 29281, 31077, 7738, 1060, 198, 198, 6738, 764, 27530, 1330, 7929, 16775, 198, 198, 2, 13610, 534, 5009, 994, 13, 198 ]
3.948718
39
# Bep Marketplace ELE # Copyright (c) 2016-2021 Kolibri Solutions # License: See LICENSE file or https://github.com/KolibriSolutions/BepMarketplace/blob/master/LICENSE # from datetime import datetime from django.core.exceptions import ValidationError from django.db import models
[ 2, 220, 347, 538, 36703, 40342, 198, 2, 220, 15069, 357, 66, 8, 1584, 12, 1238, 2481, 25910, 571, 380, 23555, 198, 2, 220, 13789, 25, 4091, 38559, 24290, 2393, 393, 3740, 1378, 12567, 13, 785, 14, 42, 349, 571, 380, 50, 14191, 14,...
3.177778
90
from datetime import datetime from werkzeug.security import generate_password_hash from flask import Blueprint, jsonify, request from sqlalchemy.orm import joinedload from flask_login import login_required from app.models import db, User, Type from app.forms import UpdateUserForm from .auth_routes import authenticate, ...
[ 6738, 4818, 8079, 1330, 4818, 8079, 198, 6738, 266, 9587, 2736, 1018, 13, 12961, 1330, 7716, 62, 28712, 62, 17831, 198, 6738, 42903, 1330, 39932, 11, 33918, 1958, 11, 2581, 198, 6738, 44161, 282, 26599, 13, 579, 1330, 5399, 2220, 198, ...
3.681818
110
"""Machine Learning""" import importlib import numpy as np import pandas as pd import json from jsonschema import validate from sklearn.pipeline import make_pipeline from timeflux.core.node import Node from timeflux.core.exceptions import ValidationError, WorkerInterrupt from timeflux.helpers.background import Task fr...
[ 37811, 37573, 18252, 37811, 198, 198, 11748, 1330, 8019, 198, 11748, 299, 32152, 355, 45941, 198, 11748, 19798, 292, 355, 279, 67, 198, 11748, 33918, 198, 6738, 44804, 684, 2395, 2611, 1330, 26571, 198, 6738, 1341, 35720, 13, 79, 541, 4...
3.188679
159
# -*- coding: utf-8 -*- # Generated by Django 1.10.5 on 2017-01-22 15:45 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, 940, 13, 20, 319, 2177, 12, 486, 12, 1828, 1315, 25, 2231, 198, 6738, 11593, 37443, 834, 1330, 28000, 1098, 62, 17201, 874, 198, 1...
2.73913
69
#!/usr/bin/env python3 from aws_cdk import aws_iam as _iam from aws_cdk import aws_lambda as _lambda from aws_cdk import aws_dynamodb as _ddb from aws_cdk import core stack_prefix='restAPI-lab1-lambdaDynamoDB' app = core.App() stack = CdkStack(app, stack_prefix, stack_prefix=stack_prefix) core.Tags.of(stack).add('Na...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 18, 198, 198, 6738, 3253, 82, 62, 10210, 74, 1330, 3253, 82, 62, 1789, 355, 4808, 1789, 198, 6738, 3253, 82, 62, 10210, 74, 1330, 3253, 82, 62, 50033, 355, 4808, 50033, 198, 6738, 3253, ...
2.52518
139
students = [] read_file() print(students)
[ 19149, 658, 796, 17635, 628, 628, 198, 961, 62, 7753, 3419, 198, 4798, 7, 19149, 658, 8 ]
2.647059
17
"""Module for finding an effective equation of state for in the Lyman-alpha forest from a snapshot. Ported to python from Matteo Viel's IDL script.""" import h5py import math import numpy as np def read_gamma(num,base): """Reads in an HDF5 snapshot from the NE gadget version, fits a power law to the equation ...
[ 37811, 26796, 329, 4917, 281, 4050, 16022, 286, 1181, 329, 287, 262, 9334, 805, 12, 26591, 8222, 198, 6738, 257, 27479, 13, 4347, 276, 284, 21015, 422, 38789, 78, 569, 8207, 338, 4522, 43, 4226, 526, 15931, 198, 198, 11748, 289, 20, ...
1.936027
3,267
import gym from gym import error, spaces from gym import utils from gym.utils import seeding from evogym import * from evogym.envs import BenchmarkBase import random from math import * import numpy as np import os
[ 11748, 11550, 198, 6738, 11550, 1330, 4049, 11, 9029, 198, 6738, 11550, 1330, 3384, 4487, 198, 6738, 11550, 13, 26791, 1330, 384, 8228, 198, 198, 6738, 819, 519, 4948, 1330, 1635, 198, 6738, 819, 519, 4948, 13, 268, 14259, 1330, 25187, ...
3.460317
63
from operator import attrgetter import pyangbind.lib.xpathhelper as xpathhelper from pyangbind.lib.yangtypes import RestrictedPrecisionDecimalType, RestrictedClassType, TypedListType from pyangbind.lib.yangtypes import YANGBool, YANGListType, YANGDynClass, ReferenceType from pyangbind.lib.base import PybindBase from d...
[ 198, 6738, 10088, 1330, 708, 81, 1136, 353, 198, 11748, 12972, 648, 21653, 13, 8019, 13, 87, 6978, 2978, 525, 355, 2124, 6978, 2978, 525, 198, 6738, 12972, 648, 21653, 13, 8019, 13, 17859, 19199, 1330, 8324, 20941, 6719, 16005, 10707, ...
3.42623
122
from pug.nlp.db import representation from django.db import models
[ 6738, 279, 1018, 13, 21283, 79, 13, 9945, 1330, 10552, 198, 6738, 42625, 14208, 13, 9945, 1330, 4981, 628 ]
3.578947
19
import logging from typing import Any, Dict, Optional from homeassistant import config_entries from homeassistant.components.kodi.const import DOMAIN as KODI_DOMAIN from homeassistant.core import callback import voluptuous as vol from .const import ( OPTION_HIDE_WATCHED, OPTION_USE_AUTH_URL, OPTION_SEARCH...
[ 11748, 18931, 198, 6738, 19720, 1330, 4377, 11, 360, 713, 11, 32233, 198, 198, 6738, 1363, 562, 10167, 1330, 4566, 62, 298, 1678, 198, 6738, 1363, 562, 10167, 13, 5589, 3906, 13, 74, 23130, 13, 9979, 1330, 24121, 29833, 355, 509, 3727...
2.367769
242
from django.shortcuts import render from django.views.generic.edit import FormView from django.views.generic.edit import View from . import forms # , django . from django.contrib.auth.forms import AuthenticationForm from django.contrib.auth import logout from django.http import HttpResponseRedirect from dj...
[ 6738, 42625, 14208, 13, 19509, 23779, 1330, 8543, 201, 198, 6738, 42625, 14208, 13, 33571, 13, 41357, 13, 19312, 1330, 5178, 7680, 201, 198, 6738, 42625, 14208, 13, 33571, 13, 41357, 13, 19312, 1330, 3582, 201, 198, 6738, 764, 1330, 510...
3.067797
118
""" Django settings for imagetagger project. Generated by 'django-admin startproject' using Django 1.10.3. For more information on this file, see https://docs.djangoproject.com/en/1.10/topics/settings/ For the full list of settings and their values, see https://docs.djangoproject.com/en/1.10/ref/settings/ """ impor...
[ 37811, 198, 35, 73, 14208, 6460, 329, 3590, 316, 7928, 1628, 13, 198, 198, 8645, 515, 416, 705, 28241, 14208, 12, 28482, 923, 16302, 6, 1262, 37770, 352, 13, 940, 13, 18, 13, 198, 198, 1890, 517, 1321, 319, 428, 2393, 11, 766, 198...
2.466261
1,645
from flask import request from apps.auth.auth_require import required from apps.project.business.issue import IssueBusiness, IssueRecordBusiness, IssueDashBoardBusiness from apps.project.extentions import parse_json_form, validation, parse_list_args2 from library.api.render import json_detail_render, json_list_render2...
[ 6738, 42903, 1330, 2581, 198, 198, 6738, 6725, 13, 18439, 13, 18439, 62, 46115, 1330, 2672, 198, 6738, 6725, 13, 16302, 13, 22680, 13, 21949, 1330, 18232, 24749, 11, 18232, 23739, 24749, 11, 18232, 43041, 29828, 24749, 198, 6738, 6725, ...
3.070539
241
# Benedikt Hegner, DESY # benedikt.hegner@cern.ch # # this tool is based on Luca Lista's tree drawer module
[ 2, 25660, 1134, 83, 679, 70, 1008, 11, 22196, 56, 198, 2, 1888, 276, 1134, 83, 13, 258, 70, 1008, 31, 30903, 13, 354, 198, 2, 198, 2, 428, 2891, 318, 1912, 319, 7598, 64, 7343, 64, 338, 5509, 33451, 8265, 628, 220, 220, 220, 2...
2.425532
47
from translate import Translator translator = Translator(to_lang="zh") try: with open('./example.md', mode='r') as in_file: text = in_file.read() with open('./example-tranlated.md', mode='w') as trans_file: trans_file.write(translator.translate(text)) except FileNotFoundError as...
[ 6738, 15772, 1330, 3602, 41880, 220, 198, 198, 7645, 41880, 796, 3602, 41880, 7, 1462, 62, 17204, 2625, 23548, 4943, 198, 28311, 25, 198, 220, 220, 220, 351, 1280, 7, 4458, 14, 20688, 13, 9132, 3256, 4235, 11639, 81, 11537, 355, 287, ...
2.479167
144
#encoding:utf-8 from utils import weighted_random_subreddit t_channel = '@news756' subreddit = weighted_random_subreddit({ 'politics': 0.5, 'news': 0.5 })
[ 2, 12685, 7656, 25, 40477, 12, 23, 198, 198, 6738, 3384, 4487, 1330, 26356, 62, 25120, 62, 7266, 10748, 628, 198, 83, 62, 17620, 796, 705, 31, 10827, 38219, 6, 198, 7266, 10748, 796, 26356, 62, 25120, 62, 7266, 10748, 15090, 198, 22...
2.569231
65
''' This module contains the classes which represent XCB data types. ''' from xcbgen.expr import Field, Expression import __main__ # Cardinal datatype globals. See module __init__ method. tcard8 = SimpleType(('uint8_t',), 1) tcard16 = SimpleType(('uint16_t',), 2) tcard32 = SimpleType(('uint32_t',), 4) tint8 = Simp...
[ 7061, 6, 198, 1212, 8265, 4909, 262, 6097, 543, 2380, 1395, 23199, 1366, 3858, 13, 198, 7061, 6, 198, 6738, 2124, 21101, 5235, 13, 31937, 1330, 7663, 11, 41986, 198, 11748, 11593, 12417, 834, 628, 198, 198, 2, 25564, 4818, 265, 2981, ...
2.401929
311
# Copyright 2020 by Luke Selberg, Solis-Lemus Lab, WID. # All rights reserved. # This file is part of the BioKlustering Website. import pandas as pd from Bio import SeqIO from sklearn.feature_extraction.text import TfidfVectorizer from sklearn.cluster import KMeans from sklearn.decomposition import PCA from sklearn.cl...
[ 2, 15069, 12131, 416, 11336, 15300, 3900, 11, 4294, 271, 12, 43, 368, 385, 3498, 11, 370, 2389, 13, 198, 2, 1439, 2489, 10395, 13, 198, 2, 770, 2393, 318, 636, 286, 262, 16024, 42, 38878, 1586, 15887, 13, 198, 198, 11748, 19798, 2...
3.270833
144
# -*- coding: utf-8 -*- from src import icons, __version__ from src.actions import HOST_URL from src.actions.configure import ConfigureWorkflowAction from src.actions.help import HelpWorkflowAction from src.actions.index import IndexWorkflowAction from src.actions.projects import ProjectWorkflowAction from src.actions....
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 6738, 12351, 1330, 17149, 11, 11593, 9641, 834, 198, 6738, 12351, 13, 4658, 1330, 367, 10892, 62, 21886, 198, 6738, 12351, 13, 4658, 13, 11250, 495, 1330, 17056, 495, 12...
3.08547
234
import pandas as pd import numpy as np import matplotlib.pyplot as plt from sklearn.model_selection import train_test_split from sklearn.svm import SVC from sklearn.metrics import classification_report, confusion_matrix from mlxtend.plotting import plot_decision_regions # from sklearn import datasets from pandas.plotti...
[ 11748, 19798, 292, 355, 279, 67, 198, 11748, 299, 32152, 355, 45941, 198, 11748, 2603, 29487, 8019, 13, 9078, 29487, 355, 458, 83, 198, 6738, 1341, 35720, 13, 19849, 62, 49283, 1330, 4512, 62, 9288, 62, 35312, 198, 6738, 1341, 35720, ...
2.363296
534
from itertools import count from _pandigital_tools import is_pandigital def pand_products(): """ Returns the sum of all numbers n which have a factorization a * b = n such that a, b, n are (cumulatively) 1 through 9 pandigital. """ total = set() for a in range(2, 100): for b in count(...
[ 6738, 340, 861, 10141, 1330, 954, 198, 198, 6738, 4808, 79, 392, 328, 1287, 62, 31391, 1330, 318, 62, 79, 392, 328, 1287, 628, 198, 4299, 19798, 62, 29498, 33529, 198, 220, 220, 220, 37227, 198, 220, 220, 220, 16409, 262, 2160, 286,...
2.131915
235
from django.db import models from openstates.data.models import Bill
[ 6738, 42625, 14208, 13, 9945, 1330, 4981, 198, 6738, 1280, 27219, 13, 7890, 13, 27530, 1330, 3941, 628 ]
3.888889
18
import datetime import logging from collections import defaultdict, namedtuple from django.conf import settings from django.template.loader import render_to_string from django.urls import reverse from django.utils.translation import ugettext_lazy as _ from django_prbac.models import Grant, Role, UserRole from corehq...
[ 11748, 4818, 8079, 198, 11748, 18931, 198, 6738, 17268, 1330, 4277, 11600, 11, 3706, 83, 29291, 198, 198, 6738, 42625, 14208, 13, 10414, 1330, 6460, 198, 6738, 42625, 14208, 13, 28243, 13, 29356, 1330, 8543, 62, 1462, 62, 8841, 198, 673...
2.255377
2,557
from ..le_apcf_command_pkt import LE_APCF_Command from struct import pack, unpack from enum import IntEnum """ This pare base on spec <<Android BT HCI Requirement for BLE feature>> v0.52 Advertisement Package Content filter """
[ 6738, 11485, 293, 62, 499, 12993, 62, 21812, 62, 79, 21841, 1330, 12509, 62, 2969, 22495, 62, 21575, 198, 6738, 2878, 1330, 2353, 11, 555, 8002, 198, 6738, 33829, 1330, 2558, 4834, 388, 198, 198, 37811, 198, 1212, 279, 533, 2779, 319,...
3.41791
67
""" DocumentNGramSymWinGraph.py Created on May 23, 2017, 4:56 PM """ import networkx as nx import pygraphviz as pgv import matplotlib.pyplot as plt from networkx.drawing.nx_agraph import graphviz_layout from DocumentNGramGraph import DocumentNGramGraph
[ 37811, 198, 220, 16854, 10503, 859, 43094, 16643, 37065, 13, 9078, 198, 220, 198, 220, 15622, 319, 1737, 2242, 11, 2177, 11, 604, 25, 3980, 3122, 198, 220, 198, 37811, 198, 198, 11748, 3127, 87, 355, 299, 87, 198, 11748, 12972, 34960,...
2.793814
97
from __future__ import print_function from troposphere import ( Template, Parameter, Ref, Condition, Equals, And, Or, Not, If ) from troposphere import ec2 parameters = { "One": Parameter( "One", Type="String", ), "Two": Parameter( "Two", Type="String", ), "Thr...
[ 6738, 11593, 37443, 834, 1330, 3601, 62, 8818, 198, 198, 6738, 14673, 22829, 1330, 357, 198, 220, 220, 220, 37350, 11, 25139, 2357, 11, 6524, 11, 24295, 11, 7889, 874, 11, 843, 11, 1471, 11, 1892, 11, 1002, 198, 8, 198, 6738, 14673,...
2.126923
1,040
if __name__ == '__main__': main()
[ 198, 198, 361, 11593, 3672, 834, 6624, 705, 834, 12417, 834, 10354, 198, 220, 220, 220, 1388, 3419 ]
2.166667
18
# (c) Copyright IBM Corporation 2020. # LICENSE: Apache License 2.0 (Apache-2.0) # http://www.apache.org/licenses/LICENSE-2.0 import logging from lrtc_lib.data_access import single_dataset_loader from lrtc_lib.data_access.processors.dataset_part import DatasetPart from lrtc_lib.oracle_data_access import gold_labels_...
[ 2, 357, 66, 8, 15069, 19764, 10501, 12131, 13, 198, 198, 2, 38559, 24290, 25, 24843, 13789, 362, 13, 15, 357, 25189, 4891, 12, 17, 13, 15, 8, 198, 2, 2638, 1378, 2503, 13, 43073, 13, 2398, 14, 677, 4541, 14, 43, 2149, 24290, 12,...
2.530806
211
"""Convert lowered IR basic blocks to MATCH query strings.""" from collections import deque import six from .blocks import Filter, MarkLocation, QueryRoot, Recurse, Traverse from .expressions import TrueLiteral from .helpers import get_only_element_from_collection, validate_safe_string def _get_vertex_location_name(loc...
[ 37811, 3103, 1851, 17788, 14826, 4096, 7021, 284, 337, 11417, 12405, 13042, 526, 15931, 198, 6738, 17268, 1330, 390, 4188, 198, 11748, 2237, 198, 6738, 764, 27372, 1330, 25853, 11, 2940, 14749, 11, 43301, 30016, 11, 3311, 12321, 11, 4759,...
2.809741
2,854
from PokerRL.game.games import StandardLeduc from PokerRL.game.games import BigLeduc from PokerRL.eval.rl_br.RLBRArgs import RLBRArgs from PokerRL.eval.lbr.LBRArgs import LBRArgs from PokerRL.game.bet_sets import POT_ONLY from DeepCFR.EvalAgentDeepCFR import EvalAgentDeepCFR from DeepCFR.TrainingProfile import Training...
[ 6738, 36157, 7836, 13, 6057, 13, 19966, 1330, 8997, 43, 18123, 198, 6738, 36157, 7836, 13, 6057, 13, 19966, 1330, 4403, 43, 18123, 198, 6738, 36157, 7836, 13, 18206, 13, 45895, 62, 1671, 13, 7836, 11473, 42035, 1330, 45715, 11473, 42035...
1.394737
2,356
import sqlite3 from enum import Enum import random __all__ = ['state_mgr', 'game_state', 'next_state']
[ 11748, 44161, 578, 18, 198, 6738, 33829, 1330, 2039, 388, 198, 11748, 4738, 198, 198, 834, 439, 834, 796, 37250, 5219, 62, 76, 2164, 3256, 705, 6057, 62, 5219, 3256, 705, 19545, 62, 5219, 20520, 628, 628 ]
2.891892
37
"""Tests for callables."""
[ 37811, 51, 3558, 329, 869, 2977, 526, 15931, 198 ]
3
9
''' A compatibility layer for DSS C-API that mimics the official OpenDSS COM interface. Copyright (c) 2016-2019 Paulo Meira ''' from __future__ import absolute_import from .IDSS import IDSS
[ 7061, 6, 198, 32, 17764, 7679, 329, 360, 5432, 327, 12, 17614, 326, 17007, 873, 262, 1743, 4946, 5258, 50, 9440, 7071, 13, 198, 198, 15269, 357, 66, 8, 1584, 12, 23344, 34410, 2185, 8704, 198, 7061, 6, 198, 6738, 11593, 37443, 834, ...
3.410714
56
from .component import Component, using_scope import tensorflow.compat.v1 as tf tf.disable_v2_behavior()
[ 6738, 764, 42895, 1330, 35100, 11, 1262, 62, 29982, 198, 11748, 11192, 273, 11125, 13, 5589, 265, 13, 85, 16, 355, 48700, 198, 27110, 13, 40223, 62, 85, 17, 62, 46571, 3419, 628 ]
3.212121
33
from hydrocarbon_problem.env.types_ import Observation, Done, Stream, Column
[ 6738, 17173, 29255, 62, 45573, 13, 24330, 13, 19199, 62, 1330, 11086, 13208, 11, 24429, 11, 13860, 11, 29201 ]
4
19
''' Copyright (C) 2021 CG Cookie http://cgcookie.com hello@cgcookie.com Created by Jonathan Denning, Jonathan Williamson 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 ...
[ 7061, 6, 198, 15269, 357, 34, 8, 33448, 29925, 39606, 198, 4023, 1378, 66, 36484, 18055, 13, 785, 198, 31373, 31, 66, 36484, 18055, 13, 785, 198, 198, 41972, 416, 11232, 5601, 768, 11, 11232, 34974, 628, 220, 220, 220, 770, 1430, 31...
2.334393
1,573
import numpy as np import pytest from pandas import ( DataFrame, Series, concat, ) import pandas._testing as tm def create_mock_weights(obj, com, adjust, ignore_na): if isinstance(obj, DataFrame): if not len(obj.columns): return DataFrame(index=obj.index, columns=obj.columns) ...
[ 11748, 299, 32152, 355, 45941, 198, 11748, 12972, 9288, 198, 198, 6738, 19798, 292, 1330, 357, 198, 220, 220, 220, 6060, 19778, 11, 198, 220, 220, 220, 7171, 11, 198, 220, 220, 220, 1673, 265, 11, 198, 8, 198, 11748, 19798, 292, 135...
1.745395
923
# TODO finish implementing query import math from pyspark import SparkContext # from genex.cluster import sim_between_seq from brainex.op.query_op import sim_between_seq from brainex.parse import strip_function, remove_trailing_zeros from .classes import Sequence from brainex.database import genexengine def query(...
[ 198, 2, 16926, 46, 5461, 15427, 12405, 198, 198, 11748, 10688, 198, 6738, 279, 893, 20928, 1330, 17732, 21947, 198, 198, 2, 422, 2429, 1069, 13, 565, 5819, 1330, 985, 62, 23395, 62, 41068, 198, 6738, 3632, 1069, 13, 404, 13, 22766, ...
2.456368
2,544
import sys import time from typing import List import asyncio import ccxt.async_support as ccxt # import ccxt import itertools from enum import Enum if __name__ == '__main__': asyncio.run(main())
[ 11748, 25064, 201, 198, 11748, 640, 201, 198, 6738, 19720, 1330, 7343, 201, 198, 201, 198, 11748, 30351, 952, 201, 198, 11748, 36624, 742, 13, 292, 13361, 62, 11284, 355, 36624, 742, 201, 198, 2, 1330, 36624, 742, 201, 198, 11748, 340...
2.285714
105
WIDTH = 20 HEIGHT = 14 TITLE = 'Click Ninja' BACKGROUND = 'board' score(color = PURPLE) callback(spawn, 1) keydown('r', reset)
[ 54, 2389, 4221, 796, 1160, 198, 13909, 9947, 796, 1478, 198, 49560, 2538, 796, 705, 8164, 14152, 6, 198, 31098, 46025, 796, 705, 3526, 6, 198, 198, 26675, 7, 8043, 796, 33079, 16437, 8, 198, 47423, 7, 48183, 11, 352, 8, 198, 2539, ...
2.56
50
# Copyright (c) Microsoft Corporation. # Licensed under the MIT license. from typing import Callable, Dict import torch import torch.nn as nn from nni.retiarii import model_wrapper from nni.retiarii.nn.pytorch import NasBench201Cell __all__ = ['NasBench201'] OPS_WITH_STRIDE = { 'none': lambda C_in, C_out, st...
[ 2, 15069, 357, 66, 8, 5413, 10501, 13, 198, 2, 49962, 739, 262, 17168, 5964, 13, 198, 198, 6738, 19720, 1330, 4889, 540, 11, 360, 713, 198, 198, 11748, 28034, 198, 11748, 28034, 13, 20471, 355, 299, 77, 198, 198, 6738, 299, 8461, ...
2.301887
424
#!/usr/bin/env python3 import os from setuptools import setup with open(os.path.join(os.path.dirname(__file__), 'README.rst'), encoding='utf-8') as f: long_description = f.read() setup( name='dialog_py', version='1.0a1', description='Python API for cdialog/linux dialog', long_description=long_de...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 18, 198, 198, 11748, 28686, 198, 198, 6738, 900, 37623, 10141, 1330, 9058, 198, 198, 4480, 1280, 7, 418, 13, 6978, 13, 22179, 7, 418, 13, 6978, 13, 15908, 3672, 7, 834, 7753, 834, 828, ...
2.580994
463
# -*- coding: utf-8 -*- from __future__ import unicode_literals import unittest import nose from nose.tools import * from whoswho import who, config from nameparser.config.titles import TITLES as NAMEPARSER_TITLES # TODO: Should we ensure that the metadata is up to date? if __name__ == '__main__': nose.ma...
[ 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, 11748, 555, 715, 395, 198, 198, 11748, 9686, 198, 6738, 9686, 13, 31391, 1330, 1635, 198, 198, 6738...
2.901786
112
import json from flask import request from flask_restful import Resource, abort, reqparse from models.User import User """ POST Creates a new resource. GET Retrieves a resource. PUT Updates an existing resource. DELETE Deletes a resource. """
[ 11748, 33918, 198, 198, 6738, 42903, 1330, 2581, 198, 6738, 42903, 62, 2118, 913, 1330, 20857, 11, 15614, 11, 43089, 29572, 198, 198, 6738, 4981, 13, 12982, 1330, 11787, 198, 198, 37811, 198, 32782, 220, 220, 220, 220, 220, 220, 220, ...
2.621622
111
from django.forms import forms
[ 6738, 42625, 14208, 13, 23914, 1330, 5107, 201, 198, 201, 198 ]
3.090909
11
#!/usr/bin/python # Title: ROR/XOR/NOT encoder # File: rorxornotencode.py # Author: Guillaume Kaddouch # SLAE-681 import sys ror = lambda val, r_bits, max_bits: \ ((val & (2**max_bits-1)) >> r_bits%max_bits) | \ (val << (max_bits-(r_bits%max_bits)) & (2**max_bits-1)) shellcode = ( "\x31\xc0\x50\x68\x6e\x2f\...
[ 2, 48443, 14629, 14, 8800, 14, 29412, 198, 198, 2, 11851, 25, 371, 1581, 14, 55, 1581, 14, 11929, 2207, 12342, 198, 2, 9220, 25, 374, 273, 87, 1211, 313, 268, 8189, 13, 9078, 198, 2, 6434, 25, 1962, 5049, 2454, 509, 2860, 7673, ...
2.111712
555
import datetime from enum import Enum from typing import Any, Callable, Dict, List, Optional, Type, TypeVar, Union, cast import attr import ciso8601 import structlog from attr import converters from . import enums from .utils import as_json_dict, to_snake_case logger = structlog.get_logger() OMITTED = Omitted.tok...
[ 11748, 4818, 8079, 198, 6738, 33829, 1330, 2039, 388, 198, 6738, 19720, 1330, 4377, 11, 4889, 540, 11, 360, 713, 11, 7343, 11, 32233, 11, 5994, 11, 5994, 19852, 11, 4479, 11, 3350, 198, 198, 11748, 708, 81, 198, 11748, 269, 26786, 4...
2.888244
689
from library import config, ini, lang, log, performance, periphery, queue from asyncio import get_event_loop from threading import Thread, Event from PyQt5.QtCore import QObject, pyqtSignal from PyQt5.QtWidgets import QTreeWidgetItem # noinspection PyPep8Naming # noinspection PyPep8Naming # noinspection PyPep8Na...
[ 6738, 5888, 1330, 4566, 11, 287, 72, 11, 42392, 11, 2604, 11, 2854, 11, 46628, 11, 16834, 198, 198, 6738, 30351, 952, 1330, 651, 62, 15596, 62, 26268, 198, 6738, 4704, 278, 1330, 14122, 11, 8558, 198, 6738, 9485, 48, 83, 20, 13, 4...
2.870813
209
DEPTH = 3 # Action def my_controller(observation, action_space, is_act_continuous=False): ac = Action.mapAct[MinimaxAgent(observation).get_action(observation['controlled_snake_index'])] return [ac]
[ 46162, 4221, 796, 513, 198, 198, 2, 7561, 198, 198, 4299, 616, 62, 36500, 7, 672, 3168, 341, 11, 2223, 62, 13200, 11, 318, 62, 529, 62, 18487, 5623, 28, 25101, 2599, 198, 220, 220, 220, 936, 796, 7561, 13, 8899, 6398, 58, 9452, ...
2.688312
77
#!/usr/bin/pyton # Title: # Author: # Additional Authors: # Filename: # Description: # Version: # Date: # Last Modified: # Location_of_the_Video: # Meta_data_for_YouTube: # Web_Site_For_Video: # Start Your Code Here #EOF
[ 2, 48443, 14629, 14, 8800, 14, 9078, 1122, 198, 2, 11851, 25, 198, 2, 6434, 25, 198, 2, 15891, 46665, 25, 198, 2, 7066, 12453, 25, 198, 2, 12489, 25, 198, 2, 10628, 25, 198, 2, 7536, 25, 198, 2, 4586, 40499, 25, 198, 2, 13397,...
2.604651
86
# coding=utf-8 from parser.client import * from parser.client.ResponseItem import * with (Path(__file__).resolve().parent / "config.json").open("rt") as siteConfigFile: SITE_CONFIG = json.load(siteConfigFile)
[ 2, 19617, 28, 40477, 12, 23, 198, 198, 6738, 30751, 13, 16366, 1330, 1635, 198, 6738, 30751, 13, 16366, 13, 31077, 7449, 1330, 1635, 628, 198, 4480, 357, 15235, 7, 834, 7753, 834, 737, 411, 6442, 22446, 8000, 1220, 366, 11250, 13, 1...
3.013889
72
# -*- coding: utf-8 -*- ''' Copyright 2012 Rodrigo Pinheiro Matias <rodrigopmatias@gmail.com> 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 r...
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 7061, 6, 198, 15269, 2321, 46198, 13727, 258, 7058, 6550, 4448, 1279, 14892, 4359, 404, 6759, 4448, 31, 14816, 13, 785, 29, 198, 198, 26656, 15385, 739, 262, 24843, 1378...
1.98374
3,690
import pygame from pygame.locals import * import resourceManager
[ 11748, 12972, 6057, 198, 6738, 12972, 6057, 13, 17946, 874, 1330, 1635, 198, 11748, 8271, 13511, 198 ]
3.823529
17
from datetime import datetime from jsonschema_serialize_fork import NO_DEFAULT from pyramid.security import effective_principals from pyramid.threadlocal import get_current_request from string import ( digits, ascii_uppercase, ) import random import uuid from snovault.schema_utils import server_default A...
[ 6738, 4818, 8079, 1330, 4818, 8079, 198, 6738, 44804, 684, 2395, 2611, 62, 46911, 1096, 62, 32523, 1330, 8005, 62, 7206, 38865, 198, 6738, 27944, 13, 12961, 1330, 4050, 62, 1050, 1939, 541, 874, 198, 6738, 27944, 13, 16663, 12001, 1330,...
2.825758
264
from flask import Flask #from config import Config import config app = Flask(__name__) #app.config.from_object(Config) app.config.from_object(config) #from app import routes from app import gettoken
[ 6738, 42903, 1330, 46947, 198, 2, 6738, 4566, 1330, 17056, 198, 11748, 4566, 198, 198, 1324, 796, 46947, 7, 834, 3672, 834, 8, 198, 2, 1324, 13, 11250, 13, 6738, 62, 15252, 7, 16934, 8, 198, 1324, 13, 11250, 13, 6738, 62, 15252, 7...
3.389831
59
"""Todo module."""
[ 37811, 51, 24313, 8265, 526, 15931, 198 ]
2.714286
7
#!/usr/bin/python3.7 ######################################################################################## # pvt_collector/pipe.py - Represents a pipe within the system. # # Author: Ben Winchester # Copyright: Ben Winchester, 2021 ######################################################################################...
[ 2, 48443, 14629, 14, 8800, 14, 29412, 18, 13, 22, 198, 29113, 29113, 14468, 7804, 198, 2, 279, 36540, 62, 33327, 273, 14, 34360, 13, 9078, 532, 1432, 6629, 257, 12656, 1626, 262, 1080, 13, 198, 2, 198, 2, 6434, 25, 3932, 40868, 19...
4.412844
109
import unittest import os import json import requests import requests_mock from ioapi import api_url, IOService, AuthorizationError, UnexpectedResponseCodeError
[ 11748, 555, 715, 395, 198, 11748, 28686, 198, 11748, 33918, 198, 11748, 7007, 198, 11748, 7007, 62, 76, 735, 198, 6738, 33245, 15042, 1330, 40391, 62, 6371, 11, 314, 2640, 712, 501, 11, 35263, 12331, 11, 471, 42072, 31077, 10669, 12331,...
3.857143
42
''' fake posts to bootstrap a development database. Put any interesting cases useful for development in here. ''' from datetime import datetime POST_DATA_1 = [ { "created" : datetime(2015, 10, 1), "published": datetime(2015, 10, 1), "edited": datetime(2015, 10, 1), "rende...
[ 7061, 6, 198, 220, 220, 8390, 6851, 284, 6297, 26418, 257, 2478, 6831, 13, 5930, 597, 3499, 2663, 220, 198, 220, 220, 4465, 329, 2478, 287, 994, 13, 220, 198, 7061, 6, 198, 198, 6738, 4818, 8079, 1330, 4818, 8079, 628, 198, 32782, ...
1.785969
3,649
from __future__ import absolute_import from django.shortcuts import render import simplejson import datetime from django.http import HttpResponse
[ 6738, 11593, 37443, 834, 1330, 4112, 62, 11748, 198, 6738, 42625, 14208, 13, 19509, 23779, 1330, 8543, 198, 11748, 2829, 17752, 198, 11748, 4818, 8079, 198, 6738, 42625, 14208, 13, 4023, 1330, 367, 29281, 31077, 628, 628, 198 ]
3.947368
38
import math import warnings import numpy as np import pandas as pd from scipy.optimize import minimize import scipy.stats from scipy.stats import norm # edit from scipy.special import log_ndtr from sklearn.linear_model import LinearRegression from sklearn.metrics import mean_squared_error, mean_absolute_error
[ 11748, 10688, 198, 11748, 14601, 198, 198, 11748, 299, 32152, 355, 45941, 198, 11748, 19798, 292, 355, 279, 67, 198, 6738, 629, 541, 88, 13, 40085, 1096, 1330, 17775, 198, 11748, 629, 541, 88, 13, 34242, 198, 6738, 629, 541, 88, 13, ...
3.387097
93
# -*- coding: utf-8 -*- import setuptools with open(r'README.md', r'r', encoding="utf8") as stream: long_description = stream.read() setuptools.setup( name=r'hagworm', version=r'3.0.0', license=r'Apache License Version 2.0', platforms=[r'all'], author=r'Shaobo.Wang', author_email=r'wsb310...
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 198, 11748, 900, 37623, 10141, 198, 198, 4480, 1280, 7, 81, 6, 15675, 11682, 13, 9132, 3256, 374, 6, 81, 3256, 21004, 2625, 40477, 23, 4943, 355, 4269, 25, 198, 220, ...
1.806977
860
""" Simple IoC containers that provide direct access to various Keras providers """
[ 37811, 198, 26437, 27853, 34, 16472, 326, 2148, 1277, 1895, 284, 2972, 17337, 292, 9549, 198, 37811, 628, 628, 198 ]
4.4
20
#!/usr/bin/env python import netfilterqueue import scapy.all as scapy import re def process_packet(packet): """Modify downloads files on the fly while target uses HTTP/HTTPS. Do not forget to choose the port you will use on line 23 and 28 and uncomment them.""" scapy_packet = scapy.IP (packet.get_payload...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 198, 198, 11748, 2010, 24455, 36560, 198, 11748, 629, 12826, 13, 439, 355, 629, 12826, 198, 11748, 302, 628, 198, 4299, 1429, 62, 8002, 316, 7, 8002, 316, 2599, 198, 220, 220, 220, 37227, ...
2.193717
764