content
stringlengths
1
1.04M
input_ids
listlengths
1
774k
ratio_char_token
float64
0.38
22.9
token_count
int64
1
774k
#!/usr/bin/env python import argparse import subprocess import sys import os import json import boto3 import botocore import sagemaker from botocore.exceptions import ClientError from sagemaker import ModelPackage from pathlib import Path import logging import traceback logging.basicConfig(level=logging.INFO) LOGGER =...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 198, 11748, 1822, 29572, 198, 11748, 850, 14681, 198, 11748, 25064, 198, 11748, 28686, 198, 11748, 33918, 198, 11748, 275, 2069, 18, 198, 11748, 10214, 420, 382, 198, 11748, 45229, 32174, 198, ...
2.169386
3,371
import phonenumbers from django.forms import ( ModelForm, HiddenInput, ValidationError ) from django.core.validators import validate_email from crm.models import ( Individual, IndividualAddress, IndividualEmail, IndividualPhone, SourceType, Source, Campaign ) from crm.validator...
[ 11748, 32896, 268, 17024, 198, 198, 6738, 42625, 14208, 13, 23914, 1330, 357, 198, 220, 220, 220, 9104, 8479, 11, 198, 220, 220, 220, 20458, 20560, 11, 198, 220, 220, 220, 3254, 24765, 12331, 198, 8, 198, 6738, 42625, 14208, 13, 7295,...
2.941667
120
# -*- coding: utf-8 -*- import os import json import importlib api_mode_env_name = 'A4KSTREAMING_API_MODE'
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 198, 11748, 28686, 198, 11748, 33918, 198, 11748, 1330, 8019, 198, 198, 15042, 62, 14171, 62, 24330, 62, 3672, 796, 705, 32, 19, 42, 2257, 32235, 2751, 62, 17614, 62, ...
2.319149
47
import base64 import html import sys import urllib.parse from time import sleep import dorktara import xssScan import entry entry.entryy() Menu()
[ 11748, 2779, 2414, 201, 198, 11748, 27711, 201, 198, 11748, 25064, 201, 198, 11748, 2956, 297, 571, 13, 29572, 201, 198, 6738, 640, 1330, 3993, 201, 198, 11748, 288, 967, 83, 3301, 201, 198, 11748, 2124, 824, 33351, 201, 198, 11748, 5...
2.346667
75
description = 'alias for wave length' group = 'lowlevel' devices = dict( wl = device('nicos.devices.generic.DeviceAlias', devclass='nicos.core.Readable' ), )
[ 11213, 796, 705, 26011, 329, 6769, 4129, 6, 198, 198, 8094, 796, 705, 9319, 5715, 6, 198, 198, 42034, 796, 8633, 7, 198, 220, 220, 220, 266, 75, 796, 3335, 10786, 6988, 418, 13, 42034, 13, 41357, 13, 24728, 40489, 3256, 198, 220, ...
2.588235
68
from accessdata.client import Client ## Only required if anon auth is disallowed. client = Client("https://localhost:4443/", None, validate=False) client.session.cert = "/path/to/cert" print(client.cases)
[ 6738, 1895, 7890, 13, 16366, 1330, 20985, 198, 198, 2235, 5514, 2672, 611, 281, 261, 6284, 318, 595, 40845, 13, 198, 16366, 796, 20985, 7203, 5450, 1378, 36750, 25, 2598, 3559, 14, 1600, 6045, 11, 26571, 28, 25101, 8, 198, 16366, 13, ...
3.377049
61
import pandas as pd from pydataset import data import sys sys.path.insert(1, '../') import fastg3.ncrisp as g3ncrisp df = data("iris") xparams = { 'Sepal.Length':{ 'type': 'numerical', 'predicate': 'absolute_distance', 'params': [0.05] }, 'Sepal.Width':{ 'type': 'numerical...
[ 11748, 19798, 292, 355, 279, 67, 198, 6738, 279, 5173, 265, 292, 316, 1330, 1366, 198, 198, 11748, 25064, 198, 17597, 13, 6978, 13, 28463, 7, 16, 11, 705, 40720, 11537, 198, 11748, 3049, 70, 18, 13, 10782, 2442, 79, 355, 308, 18, ...
2.163265
441
from zwierzeta.zwierze import Zwierze import random
[ 6738, 1976, 86, 959, 89, 17167, 13, 89, 86, 959, 2736, 1330, 1168, 86, 959, 2736, 198, 11748, 4738, 198 ]
2.6
20
from django.contrib import admin from ..models import ( GeneralManager, Item, Inventory, ItemSale, Shop, ShoppingMall, Transaction, Checkout, ) from .item_admin import ItemAdmin from .inventory_admin import InventoryAdmin from .shop_admin import ShopAdmin from .shoppingmall_admin impor...
[ 6738, 42625, 14208, 13, 3642, 822, 1330, 13169, 198, 198, 6738, 11485, 27530, 1330, 357, 198, 220, 220, 220, 3611, 13511, 11, 198, 220, 220, 220, 9097, 11, 198, 220, 220, 220, 35772, 11, 198, 220, 220, 220, 9097, 50, 1000, 11, 198, ...
3.333333
270
#Except for the pytorch part content of this file is copied from https://github.com/abisee/pointer-generator/blob/master/ from __future__ import unicode_literals, print_function, division import sys reload(sys) sys.setdefaultencoding('utf8') import os import time import argparse from datetime import datetime impor...
[ 2, 30313, 329, 262, 12972, 13165, 354, 636, 2695, 286, 428, 2393, 318, 18984, 422, 3740, 1378, 12567, 13, 785, 14, 397, 786, 68, 14, 29536, 12, 8612, 1352, 14, 2436, 672, 14, 9866, 14, 198, 198, 6738, 11593, 37443, 834, 1330, 28000,...
2.287458
901
from ..source import GitSource from ..package import Package from ..patch import LocalPatch from ..util import target_arch import os
[ 6738, 11485, 10459, 1330, 15151, 7416, 198, 6738, 11485, 26495, 1330, 15717, 198, 6738, 11485, 17147, 1330, 10714, 33952, 198, 6738, 11485, 22602, 1330, 2496, 62, 998, 198, 198, 11748, 28686, 198 ]
4.1875
32
fullscreen: bool = False
[ 12853, 9612, 25, 20512, 796, 10352, 198 ]
3.571429
7
from .message import decode MESSAGES = [ "!AIVDM,1,1,,B,15M67FC000G?ufbE`FepT@3n00Sa,0*5C", "!AIVDM,1,1,,B,15NG6V0P01G?cFhE`R2IU?wn28R>,0*05", "!AIVDM,1,1,,A,15NJQiPOl=G?m:bE`Gpt<aun00S8,0*56", "!AIVDM,1,1,,B,15NPOOPP00o?bIjE`UEv4?wF2HIU,0*31", "!AIVDM,1,1,,A,35NVm2gP00o@5k:EbbPJnwwN25e3,0*35", ...
[ 6738, 764, 20500, 1330, 36899, 198, 198, 44, 1546, 4090, 48075, 796, 685, 198, 220, 220, 220, 366, 0, 32, 3824, 23127, 11, 16, 11, 16, 9832, 33, 11, 1314, 44, 3134, 4851, 830, 38, 30, 3046, 65, 36, 63, 37, 538, 51, 31, 18, 77,...
1.365239
397
import urllib import urllib2 import cookielib import StrCookieJar import json import lxml.html headers = { "Referer": "http://www.xiami.com/member/login", "User-Agent": 'Mozilla/5.0 (IsomByt; checker)', } if __name__ == "__main__": user = User() user.login("email","password") print user.checkin()...
[ 11748, 2956, 297, 571, 198, 11748, 2956, 297, 571, 17, 198, 11748, 4255, 8207, 571, 198, 11748, 4285, 34, 18055, 47511, 198, 11748, 33918, 198, 11748, 300, 19875, 13, 6494, 628, 198, 50145, 796, 1391, 198, 220, 220, 220, 366, 8134, 11...
2.488372
129
#!/usr/bin/env python3 # Copyright 2020 Google LLC # # Licensed under the the Apache License v2.0 with LLVM Exceptions (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # https://llvm.org/LICENSE.txt # # Unless required by applicable law ...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 18, 198, 2, 15069, 12131, 3012, 11419, 198, 2, 198, 2, 49962, 739, 262, 262, 24843, 13789, 410, 17, 13, 15, 351, 27140, 15996, 1475, 11755, 357, 1169, 366, 34156, 15341, 198, 2, 345, 743,...
2.48161
2,012
class Patient(): """ Attributes ---------- los: length of stay in hospital priority: priority for accessing bed (loer number = higher priority) time_enter_queue: time patient arrives and joins queue for bed time_leave_queue: time patient leaves queue and enter...
[ 4871, 35550, 33529, 198, 220, 220, 220, 37227, 198, 220, 220, 220, 49213, 198, 220, 220, 220, 24200, 438, 198, 220, 220, 220, 22346, 25, 198, 220, 220, 220, 220, 220, 220, 220, 4129, 286, 2652, 287, 4436, 198, 220, 220, 220, 8475, ...
2.670807
161
import os import unittest import logging import vtk, qt, ctk, slicer from slicer.ScriptedLoadableModule import ( ScriptedLoadableModule, ScriptedLoadableModuleWidget, ScriptedLoadableModuleTest, ) from EPISURGBase import EPISURGBaseLogic # pylint: disable=import-error class EPISURGSegment(ScriptedLoadableModul...
[ 11748, 28686, 198, 11748, 555, 715, 395, 198, 11748, 18931, 198, 11748, 410, 30488, 11, 10662, 83, 11, 269, 30488, 11, 14369, 263, 198, 6738, 14369, 263, 13, 7391, 276, 8912, 540, 26796, 1330, 357, 198, 220, 12327, 276, 8912, 540, 267...
3.091324
1,095
from sciencequiz import db import enum import datetime association_quiz_questions = db.Table('quiz_questions', db.Model.metadata, db.Column('quiz_id', db.Integer, db.ForeignKey('quizzes.id')), db.Column('question_id', db.Integer, db.ForeignKey...
[ 6738, 3783, 421, 528, 1330, 20613, 198, 11748, 33829, 198, 11748, 4818, 8079, 198, 198, 562, 41003, 62, 421, 528, 62, 6138, 507, 796, 20613, 13, 10962, 10786, 421, 528, 62, 6138, 507, 3256, 20613, 13, 17633, 13, 38993, 11, 198, 220, ...
1.863208
212
from visdialch.encoders.lf import LateFusionEncoder from visdialch.encoders.rva import RvAEncoder
[ 6738, 1490, 38969, 354, 13, 12685, 375, 364, 13, 1652, 1330, 18319, 37, 4241, 27195, 12342, 198, 6738, 1490, 38969, 354, 13, 12685, 375, 364, 13, 81, 6862, 1330, 371, 85, 32, 27195, 12342, 628 ]
2.828571
35
# coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for # license information. # # Code generated by Microsoft (R) AutoRest Code Generator. # Changes ...
[ 2, 19617, 28, 40477, 12, 23, 198, 2, 16529, 35937, 198, 2, 15069, 357, 66, 8, 5413, 10501, 13, 1439, 2489, 10395, 13, 198, 2, 49962, 739, 262, 17168, 13789, 13, 4091, 13789, 13, 14116, 287, 262, 1628, 6808, 329, 198, 2, 5964, 1321...
3.09611
437
from __future__ import absolute_import, unicode_literals from django.contrib import admin from feincms_banners import models admin.site.register( models.Banner, list_display=( 'name', 'is_active', 'type', 'url', 'active_from', 'active_until', 'embeds', 'impressions', 'click_count'), list...
[ 6738, 11593, 37443, 834, 1330, 4112, 62, 11748, 11, 28000, 1098, 62, 17201, 874, 198, 198, 6738, 42625, 14208, 13, 3642, 822, 1330, 13169, 198, 198, 6738, 730, 1939, 907, 62, 65, 15672, 1330, 4981, 628, 198, 28482, 13, 15654, 13, 3023...
2.582979
235
#!/usr/bin/env python3 from re import match
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 18, 198, 6738, 302, 1330, 2872, 628 ]
3
15
from django.db import models from django.contrib.auth.models import User from stores.models import Store # Create your models here. class Profile(models.Model): ''' Profile associated with User model. Automatically added from signal when User is created. ''' user = models.OneToOneField(User, verb...
[ 6738, 42625, 14208, 13, 9945, 1330, 4981, 198, 6738, 42625, 14208, 13, 3642, 822, 13, 18439, 13, 27530, 1330, 11787, 198, 6738, 7000, 13, 27530, 1330, 9363, 198, 198, 2, 13610, 534, 4981, 994, 13, 198, 4871, 13118, 7, 27530, 13, 17633...
3.003067
326
import pandas as pd import os.path from django.core.management.base import BaseCommand, CommandError import logging from travels.models import Trip # full_path = os.path.join("../files/Wycieczki.xlsx") # trips = pd.read_excel(full_path, sheet_name='Góry') # print(trips["Nazwa wycieczki"]) class Command(BaseCommand):...
[ 11748, 19798, 292, 355, 279, 67, 198, 11748, 28686, 13, 6978, 198, 6738, 42625, 14208, 13, 7295, 13, 27604, 13, 8692, 1330, 7308, 21575, 11, 9455, 12331, 198, 11748, 18931, 198, 6738, 17781, 13, 27530, 1330, 18383, 198, 198, 2, 1336, ...
1.642924
1,067
""" This file contains an abstraction for implment pairwise loss training """ import tensorflow as tf from tensorflow.keras import backend as K import time import tempfile import shutil import subprocess import os from collections import defaultdict from timeit import default_timer as timer from mmnrm.utils import s...
[ 37811, 198, 1212, 2393, 4909, 281, 34651, 329, 4114, 434, 5166, 3083, 2994, 3047, 198, 37811, 198, 198, 11748, 11192, 273, 11125, 355, 48700, 198, 6738, 11192, 273, 11125, 13, 6122, 292, 1330, 30203, 355, 509, 198, 11748, 640, 198, 1174...
2.906764
547
"""Represent SQL tokens as Pandas operations. """ from sqlalchemy.sql import operators from sqlalchemy import sql from sqlalchemy import util from sqlalchemy import types as sqltypes import functools import pandas as pd import numpy as np import collections from . import dbapi from sqlalchemy.sql.functions import Gen...
[ 198, 37811, 40171, 16363, 16326, 355, 16492, 292, 4560, 13, 198, 198, 37811, 198, 6738, 44161, 282, 26599, 13, 25410, 1330, 12879, 198, 6738, 44161, 282, 26599, 1330, 44161, 198, 6738, 44161, 282, 26599, 1330, 7736, 198, 6738, 44161, 282,...
2.85523
1,195
from __future__ import division, print_function from scipy import optimize import numpy as np import plyades.util as util import astropy.units as units
[ 6738, 11593, 37443, 834, 1330, 7297, 11, 3601, 62, 8818, 198, 6738, 629, 541, 88, 1330, 27183, 198, 11748, 299, 32152, 355, 45941, 198, 11748, 35960, 2367, 13, 22602, 355, 7736, 198, 11748, 6468, 28338, 13, 41667, 355, 4991, 628, 628, ...
3.565217
46
"""Contains the parent class for DEPRECATED Scriptlets. This is deprecated and will be removed in config_version 6 with MPF 0.60. Use custom code instead. """ from mpf.core.delays import DelayManager from mpf.core.logging import LogMixin class Scriptlet(LogMixin): """Baseclass for DEPRECATED scriptlets which ar...
[ 37811, 4264, 1299, 262, 2560, 1398, 329, 5550, 47, 38827, 11617, 12327, 5289, 13, 198, 198, 1212, 318, 39224, 290, 481, 307, 4615, 287, 4566, 62, 9641, 718, 351, 4904, 37, 657, 13, 1899, 13, 198, 11041, 2183, 2438, 2427, 13, 198, 37...
2.7525
400
import matplotlib.pyplot as plt import data moisture = data.get("Moisture") plt.plot(moisture) plt.show() plt.plot(sorted(moisture)) plt.show()
[ 11748, 2603, 29487, 8019, 13, 9078, 29487, 355, 458, 83, 198, 11748, 1366, 198, 198, 5908, 396, 495, 796, 1366, 13, 1136, 7203, 16632, 396, 495, 4943, 198, 489, 83, 13, 29487, 7, 5908, 396, 495, 8, 198, 489, 83, 13, 12860, 3419, 1...
2.28125
64
altura=200 altura=altura+50 print(altura)
[ 2501, 5330, 28, 2167, 198, 2501, 5330, 28, 2501, 5330, 10, 1120, 198, 4798, 7, 2501, 5330, 8 ]
2.277778
18
import numpy as np import matplotlib.pyplot as plt x = lambda x,y,z=None: y y = lambda x,y,z=None: -np.sin(x) + 0.01*y z = lambda x,y,z=None: np.cos(z) xlim = [-2*np.pi, 2*np.pi] ylim = [-2*np.pi, 2*np.pi] zlim = [-2*np.pi, 2*np.pi] direction_field_2d(x, y, xlim, ylim) direction_field_3d(x, y, z, xlim, ylim, zlim, n...
[ 11748, 299, 32152, 355, 45941, 198, 11748, 2603, 29487, 8019, 13, 9078, 29487, 355, 458, 83, 628, 198, 198, 87, 796, 37456, 2124, 11, 88, 11, 89, 28, 14202, 25, 331, 198, 88, 796, 37456, 2124, 11, 88, 11, 89, 28, 14202, 25, 532, ...
1.897143
175
#!/usr/bin/env python3 #// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. #// SPDX-License-Identifier: Apache-2.0 # AWS CloudSaga - Simulate security events in AWS # Joshua "DozerCat" McKiddy - Customer Incident Response Team (CIRT) - AWS import logging import time import datetime import argparse ...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 18, 198, 2, 1003, 15069, 6186, 13, 785, 11, 3457, 13, 393, 663, 29116, 13, 1439, 6923, 33876, 13, 198, 2, 1003, 30628, 55, 12, 34156, 12, 33234, 7483, 25, 24843, 12, 17, 13, 15, 198, ...
2.409284
2,585
import base64 import json import mock import sys import requests import unittest from ...authentication.base import AuthenticationBase from ...exceptions import Auth0Error
[ 11748, 2779, 2414, 198, 11748, 33918, 198, 11748, 15290, 198, 11748, 25064, 198, 11748, 7007, 198, 11748, 555, 715, 395, 198, 6738, 2644, 41299, 3299, 13, 8692, 1330, 48191, 14881, 198, 6738, 2644, 1069, 11755, 1330, 26828, 15, 12331, 628...
4.325
40
from .input_layer import InputLayer, InputLayerSettings from .convolutional_layer import ConvolutionalLayer, ConvolutionalLayerSettings from .pooling_layer import PoolingLayer, PoolingLayerSettings from .relu_layer import ReluLayer, ReluLayerSettings from .full_connected_layer import FullConnectedLayer, FullConnectedLa...
[ 6738, 764, 15414, 62, 29289, 1330, 23412, 49925, 11, 23412, 49925, 26232, 198, 6738, 764, 42946, 2122, 282, 62, 29289, 1330, 34872, 2122, 282, 49925, 11, 34872, 2122, 282, 49925, 26232, 198, 6738, 764, 7742, 278, 62, 29289, 1330, 19850, ...
4
83
from tor_worker import OUR_BOTS from tor_worker.config import Config from tor_worker.context import ( InvalidState, is_claimable_post, is_claimed_post_response, is_code_of_conduct, has_youtube_captions, ) from tor_worker.user_interaction import ( format_bot_response as _, message_link, r...
[ 6738, 7332, 62, 28816, 1330, 30229, 62, 33, 33472, 198, 6738, 7332, 62, 28816, 13, 11250, 1330, 17056, 198, 6738, 7332, 62, 28816, 13, 22866, 1330, 357, 198, 220, 220, 220, 17665, 9012, 11, 198, 220, 220, 220, 318, 62, 6604, 540, 62...
2.281338
6,039
#!/usr/bin/env python3 from typing import List, Union import requests from .. import swc class NeuroMorpho: """ A class that manages remote queries and downloads from a NeuronMorphology server, such as neuromorpho.org. . """ def __init__(self, cache_location: str = "~/.neuromorphocache/") ...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 18, 198, 198, 6738, 19720, 1330, 7343, 11, 4479, 198, 11748, 7007, 198, 198, 6738, 11485, 1330, 1509, 66, 628, 198, 4871, 13782, 44, 13425, 78, 25, 198, 220, 220, 220, 37227, 198, 220, 22...
2.060185
1,944
import numpy as np import sklearn.mixture as mixture import math, pickle, json, copy, random, ast #Note: We assume that each action takes 1 time unit. class GMMMDPSimulator(): """ Arguments: - gmm_pickled: Name of a txt file containing a pickled GMM - transition_matrix: Name of a npy file containing transition m...
[ 11748, 299, 32152, 355, 45941, 198, 11748, 1341, 35720, 13, 76, 9602, 355, 11710, 198, 11748, 10688, 11, 2298, 293, 11, 33918, 11, 4866, 11, 4738, 11, 6468, 198, 198, 2, 6425, 25, 775, 7048, 326, 1123, 2223, 2753, 352, 640, 4326, 13...
3.689873
158
from micropython import const from time import sleep, monotonic from board import LED1, BUTTON1 from digitalio import DigitalInOut, Direction, Pull from wink import flash_led from ctap_errors import CTAP2_OK, CTAP2_ERR_ACTION_TIMEOUT, CTAP2_ERR_KEEPALIVE_CANCEL DELAY_TIME = const(10) # 10 ms WINK_FREQ = const(10) #...
[ 6738, 12314, 1773, 7535, 1330, 1500, 198, 6738, 640, 1330, 3993, 11, 937, 313, 9229, 198, 6738, 3096, 1330, 12365, 16, 11, 21728, 11357, 16, 198, 6738, 4875, 952, 1330, 10231, 818, 7975, 11, 41837, 11, 21429, 198, 6738, 41955, 1330, 7...
2.771186
118
r""" Principal ideal domains """ #***************************************************************************** # Copyright (C) 2008 Teresa Gomez-Diaz (CNRS) <Teresa.Gomez-Diaz@univ-mlv.fr> # # Distributed under the terms of the GNU General Public License (GPL) # http://www.gnu.org/licenses/ #*******...
[ 81, 37811, 198, 42904, 8521, 7306, 18209, 198, 37811, 198, 2, 17174, 17174, 4557, 35625, 198, 2, 220, 15069, 357, 34, 8, 3648, 34405, 33231, 12, 35, 17890, 357, 34, 41256, 8, 1279, 6767, 14625, 13, 38, 30010, 12, 35, 17890, 31, 403,...
3.26087
506
from desdeo_problem.problem.Variable import Variable from desdeo_problem.problem.Objective import ScalarObjective from desdeo_problem.problem.Problem import MOProblem, ProblemBase from desdeo_problem import ScalarConstraint, problem import numpy as np """ A real-world multi-objective problem suite (the RE benchmark s...
[ 6738, 748, 2934, 78, 62, 45573, 13, 45573, 13, 43015, 1330, 35748, 198, 6738, 748, 2934, 78, 62, 45573, 13, 45573, 13, 10267, 425, 1330, 34529, 283, 10267, 425, 198, 6738, 748, 2934, 78, 62, 45573, 13, 45573, 13, 40781, 1330, 13070, ...
2.342816
3,480
# For @UniBorg """fake exit \n.fexit""" from telethon import events @borg.on(events.NewMessage(outgoing=True, pattern='^\.(f?f)exit'))
[ 2, 1114, 2488, 3118, 72, 33, 2398, 198, 198, 37811, 30706, 8420, 198, 59, 77, 13, 69, 37023, 37811, 198, 6738, 5735, 400, 261, 1330, 2995, 198, 198, 31, 23297, 13, 261, 7, 31534, 13, 3791, 12837, 7, 448, 5146, 28, 17821, 11, 3912,...
2.446429
56
CONTEXT_DICT = {"premis": "http://www.loc.gov/premis/rdf/v1#", "test": "info:fedora/test/", "rdfs": "http://www.w3.org/2000/01/rdf-schema#", "xsi": "http://www.w3.org/2001/XMLSchema-instance", "xmlns": "http://www.w3.org/2000/xmlns/", "rdf"...
[ 10943, 32541, 62, 35, 18379, 796, 19779, 31605, 271, 1298, 366, 4023, 1378, 2503, 13, 17946, 13, 9567, 14, 31605, 271, 14, 4372, 69, 14, 85, 16, 2, 1600, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, ...
1.861736
933
import os import pandas as pd
[ 11748, 28686, 198, 11748, 19798, 292, 355, 279, 67 ]
3.222222
9
# Generated by Django 3.1.2 on 2020-10-22 14:19 from django.db import migrations, models import django.db.models.deletion
[ 2, 2980, 515, 416, 37770, 513, 13, 16, 13, 17, 319, 12131, 12, 940, 12, 1828, 1478, 25, 1129, 198, 198, 6738, 42625, 14208, 13, 9945, 1330, 15720, 602, 11, 4981, 198, 11748, 42625, 14208, 13, 9945, 13, 27530, 13, 2934, 1616, 295, ...
2.818182
44
# -*- coding: utf-8 -*- from bigg_models.version import (__version__ as version, __api_version__ as api_version) from cobradb.models import Model from cobradb.models import * from cobradb.model_loading import parse from cobradb import settings from cobradb.util import make_reaction_co...
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 198, 6738, 1263, 70, 62, 27530, 13, 9641, 1330, 357, 834, 9641, 834, 355, 2196, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, ...
2.252846
17,746
# -*- coding:utf-8 -*- """ """ from hypergbm.estimators import detect_lgbm_gpu from hypergbm.search_space import GeneralSearchSpaceGenerator from hypernets.core import Choice from hypernets.pipeline.base import DataFrameMapper from hypernets.tabular.cuml_ex import CumlToolBox from hypernets.utils import logging from ....
[ 2, 532, 9, 12, 19617, 25, 40477, 12, 23, 532, 9, 12, 198, 37811, 198, 198, 37811, 198, 6738, 8718, 70, 20475, 13, 395, 320, 2024, 1330, 4886, 62, 75, 70, 20475, 62, 46999, 198, 6738, 8718, 70, 20475, 13, 12947, 62, 13200, 1330, ...
2.225974
385
import unittest from utils import intToBase if __name__ == '__main__': unittest.main()
[ 11748, 555, 715, 395, 198, 6738, 3384, 4487, 1330, 493, 2514, 14881, 198, 198, 361, 11593, 3672, 834, 6624, 705, 834, 12417, 834, 10354, 198, 220, 555, 715, 395, 13, 12417, 3419 ]
2.78125
32
#------------------------------------------------------------------------------ # Libraries #------------------------------------------------------------------------------ # Standard import numpy as np import pandas as pd import cvxpy as cp from sklearn.preprocessing import PolynomialFeatures from statsmodels.tools.too...
[ 2, 10097, 26171, 198, 2, 46267, 198, 2, 10097, 26171, 198, 2, 8997, 198, 11748, 299, 32152, 355, 45941, 198, 11748, 19798, 292, 355, 279, 67, 198, 11748, 269, 85, 87, 9078, 355, 31396, 198, 6738, 1341, 35720, 13, 3866, 36948, 1330, ...
2.337364
4,052
# Import Tkinter Frame to use it and modify default from tkinter import Frame as tkFrame # Import all util from ntk.utils from ntk.utils import * # frame class can be called once the root tk is defined # only one must required field is root which is the any of widget # other params can be set to get di...
[ 2, 17267, 309, 74, 3849, 25184, 284, 779, 340, 290, 13096, 4277, 198, 198, 6738, 256, 74, 3849, 1330, 25184, 355, 256, 74, 19778, 198, 198, 2, 17267, 477, 7736, 422, 299, 30488, 13, 26791, 198, 198, 6738, 299, 30488, 13, 26791, 1330...
3.719665
239
# Copyright 2008-2015 Nokia Networks # Copyright 2016- Robot Framework Foundation # # 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 ...
[ 2, 220, 15069, 3648, 12, 4626, 26182, 27862, 198, 2, 220, 15069, 1584, 12, 220, 220, 220, 220, 16071, 25161, 5693, 198, 2, 198, 2, 220, 49962, 739, 262, 24843, 13789, 11, 10628, 362, 13, 15, 357, 1169, 366, 34156, 15341, 198, 2, 2...
3.646409
181
# Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. The ASF licenses this file # to you under the Apache License, Version 2.0 (the # "License"); you may not u...
[ 2, 49962, 284, 262, 24843, 10442, 5693, 357, 1921, 37, 8, 739, 530, 198, 2, 393, 517, 18920, 5964, 11704, 13, 220, 4091, 262, 28536, 2393, 198, 2, 9387, 351, 428, 670, 329, 3224, 1321, 198, 2, 5115, 6634, 9238, 13, 220, 383, 7054,...
3.072566
565
from flask import Flask from flask_migrate import Migrate from config import Config from app.main import bp as main_bp from app.auth import bp as auth_bp from app.account import bp as acc_bp from app.interface import bp as interface_bp from app.questions import bp as questions_bp from app.db import db from app.auth ...
[ 6738, 42903, 1330, 46947, 198, 6738, 42903, 62, 76, 42175, 1330, 337, 42175, 198, 198, 6738, 4566, 1330, 17056, 198, 198, 6738, 598, 13, 12417, 1330, 275, 79, 355, 1388, 62, 46583, 198, 6738, 598, 13, 18439, 1330, 275, 79, 355, 6284, ...
3.383178
107
""" Init file for the Fintoc Python SDK. """ from fintoc.core import Fintoc from fintoc.version import __version__
[ 37811, 198, 31768, 2393, 329, 262, 376, 600, 420, 11361, 26144, 13, 198, 37811, 198, 198, 6738, 277, 600, 420, 13, 7295, 1330, 376, 600, 420, 198, 6738, 277, 600, 420, 13, 9641, 1330, 11593, 9641, 834, 198 ]
3.052632
38
#!/usr/bin/env python3 # Copyright (c) Facebook, Inc. and its affiliates. All rights reserved. import numpy as np import unittest import torch
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 18, 198, 2, 15069, 357, 66, 8, 3203, 11, 3457, 13, 290, 663, 29116, 13, 1439, 2489, 10395, 13, 628, 198, 11748, 299, 32152, 355, 45941, 198, 11748, 555, 715, 395, 198, 11748, 28034, 628 ]
3.395349
43
from fastapi import APIRouter, Depends, HTTPException from fastapi_utils.cbv import cbv from sqlalchemy.orm import Session from controllers.app_controller import get_all_apps, create_app, get_app_info_by_id, update_app_info, delete_app_info from models.db import get_db from controllers.exceptions import AppInfoExceptio...
[ 6738, 3049, 15042, 1330, 3486, 4663, 39605, 11, 2129, 2412, 11, 14626, 16922, 198, 6738, 3049, 15042, 62, 26791, 13, 21101, 85, 1330, 269, 65, 85, 198, 6738, 44161, 282, 26599, 13, 579, 1330, 23575, 198, 6738, 20624, 13, 1324, 62, 365...
3.084444
225
#!/usr/bin/env python ''' slice.py - This script slices MRT format data. Copyright (C) 2016 greenHippo, LLC. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICE...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 198, 7061, 6, 198, 48369, 13, 9078, 532, 770, 4226, 24314, 337, 14181, 5794, 1366, 13, 198, 198, 15269, 357, 34, 8, 1584, 4077, 39, 3974, 78, 11, 11419, 13, 198, 198, 26656, 15385, 739, ...
3.113793
290
from PIL import Image from PIL import ImageFont from PIL import ImageDraw from io import BytesIO import time # Wraps text so it fits within max_width.
[ 6738, 350, 4146, 1330, 7412, 198, 6738, 350, 4146, 1330, 7412, 23252, 198, 6738, 350, 4146, 1330, 7412, 25302, 220, 198, 6738, 33245, 1330, 2750, 4879, 9399, 198, 11748, 640, 198, 198, 2, 27323, 862, 2420, 523, 340, 11414, 1626, 3509, ...
3.454545
44
import re
[ 11748, 302, 628, 198 ]
3
4
import json import requests from project.user_provision import getJsonResponse from project.plugin import getApiToken, inviteMessage, removalMessage
[ 11748, 33918, 198, 11748, 7007, 198, 6738, 1628, 13, 7220, 62, 1676, 10178, 1330, 651, 41, 1559, 31077, 198, 6738, 1628, 13, 33803, 1330, 651, 32, 14415, 30642, 11, 14037, 12837, 11, 9934, 12837, 628 ]
4.285714
35
# -*- coding: utf-8 -*- """Functions to handle various numerical operations, including optimization.""" from __future__ import division import random import sys from decimal import Decimal as D from math import exp from math import log import numpy as np from scipy.optimize import minimize, minimize_scalar, dual_an...
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 198, 37811, 24629, 2733, 284, 5412, 2972, 29052, 4560, 11, 1390, 23989, 526, 15931, 198, 198, 6738, 11593, 37443, 834, 1330, 7297, 198, 198, 11748, 4738, 198, 11748, 25064...
2.367422
4,371
# Copyright 2015 Leon Sixt # # 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, sof...
[ 2, 15069, 1853, 10592, 311, 6346, 198, 2, 198, 2, 49962, 739, 262, 24843, 13789, 11, 10628, 362, 13, 15, 357, 1169, 366, 34156, 15341, 198, 2, 345, 743, 407, 779, 428, 2393, 2845, 287, 11846, 351, 262, 13789, 13, 198, 2, 921, 743,...
2.418462
2,600
from .grid_workers import * from .helpers import * from .models import * from .models.controllers import * from .problems import * from .utils import * from .workers import *
[ 6738, 764, 25928, 62, 22896, 1330, 1635, 198, 198, 6738, 764, 16794, 364, 1330, 1635, 198, 198, 6738, 764, 27530, 1330, 1635, 198, 6738, 764, 27530, 13, 3642, 36667, 1330, 1635, 198, 198, 6738, 764, 1676, 22143, 1330, 1635, 198, 198, ...
3.377358
53
try: from coingecko_api import * from config import * from framebuffer import * from utils import * from fbi import * from ifb import * from script_interfaces import * from http_client import * except ImportError: from .coingecko_api import * from .config import * from .frame...
[ 28311, 25, 198, 220, 220, 220, 422, 763, 11912, 37549, 62, 15042, 1330, 1635, 198, 220, 220, 220, 422, 4566, 1330, 1635, 198, 220, 220, 220, 422, 5739, 22252, 1330, 1635, 198, 220, 220, 220, 422, 3384, 4487, 1330, 1635, 198, 220, 22...
2.810651
169
#!/usr/bin/env python3 """ Tirelessly runs a 2nd level analysis using the results of our afni_proc.py execution script. Created 12/17/2020 by Benjamin Velie. veliebm@gmail.com """ # Import pedantic and boring standard Python libraries. from datetime import datetime import argparse from pathlib import Path import json...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 18, 198, 37811, 198, 51, 557, 8613, 4539, 257, 362, 358, 1241, 3781, 1262, 262, 2482, 286, 674, 6580, 8461, 62, 36942, 13, 9078, 9706, 4226, 13, 198, 198, 41972, 1105, 14, 1558, 14, 42334...
2.436233
3,897
#!/usr/bin/python # Scripted by Jesse Nebling (@bashexplode) # Works with both masscan and nmap results import re import csv import argparse parser = argparse.ArgumentParser(description='Convert GNMap file to CSV by IP address | open ports') parser.add_argument('inputfile') parser.add_argument('outputfile') args = par...
[ 2, 48443, 14629, 14, 8800, 14, 29412, 198, 2, 12327, 276, 416, 18033, 29837, 1359, 4275, 12093, 33095, 489, 1098, 8, 198, 2, 10933, 351, 1111, 2347, 5171, 290, 299, 8899, 2482, 198, 11748, 302, 198, 11748, 269, 21370, 198, 11748, 1822...
2.065949
743
# coding=utf-8 """ Module: num2word_EN_GB.py Requires: num2word_EN.py Version: 1.0 Author: Taro Ogawa (tso@users.sourceforge.org) Copyright: Copyright (c) 2003, Taro Ogawa. All Rights Reserved. Licence: This module is distributed under the Lesser General Public Licence. http://www.opensource.org/...
[ 2, 19617, 28, 40477, 12, 23, 198, 198, 37811, 198, 26796, 25, 997, 17, 4775, 62, 1677, 62, 4579, 13, 9078, 198, 39618, 25, 997, 17, 4775, 62, 1677, 13, 9078, 198, 14815, 25, 352, 13, 15, 198, 198, 13838, 25, 198, 220, 220, 309, ...
2.219955
441
import json
[ 11748, 33918, 628 ]
4.333333
3
#!/usr/bin/python import lcddriver import time import os import signal if __name__ == "__main__": lcd = lcddriver.lcd() killer = GracefulKiller() print "MPC - parser up and running" while True : if killer.kill_now: print "Service Shutdown requeste...
[ 2, 48443, 14629, 14, 8800, 14, 29412, 198, 198, 11748, 300, 66, 1860, 38291, 198, 11748, 640, 198, 11748, 28686, 198, 11748, 6737, 628, 628, 198, 220, 220, 220, 220, 628, 220, 220, 220, 220, 220, 220, 220, 220, 198, 361, 11593, 3672...
2.012605
238
from django.db import models COMPLEXITY_LEVEL = [ (1, 'Very Easy'), (2, 'Easy'), (3, 'Medium'), (4, 'Hard'), (5, 'Very Hard'), ]
[ 6738, 42625, 14208, 13, 9945, 1330, 4981, 628, 198, 198, 41335, 55, 9050, 62, 2538, 18697, 796, 685, 198, 220, 220, 220, 357, 16, 11, 705, 16371, 16789, 33809, 198, 220, 220, 220, 357, 17, 11, 705, 28406, 33809, 198, 220, 220, 220, ...
2.09589
73
# ########################################################################### # # CLOUDERA APPLIED MACHINE LEARNING PROTOTYPE (AMP) # (C) Cloudera, Inc. 2021 # All rights reserved. # # Applicable Open Source License: Apache 2.0 # # NOTE: Cloudera open source products are modular software products # made up of hu...
[ 2, 1303, 29113, 29113, 7804, 2235, 198, 2, 198, 2, 220, 7852, 2606, 14418, 32, 3486, 49094, 337, 16219, 8881, 12509, 1503, 15871, 48006, 2394, 56, 11401, 357, 23518, 8, 198, 2, 220, 357, 34, 8, 1012, 280, 1082, 64, 11, 3457, 13, 3...
3.300142
703
from flask_wtf import FlaskForm from wtforms import StringField, PasswordField, BooleanField, SubmitField,TextAreaField from wtforms.validators import ValidationError, DataRequired, Email, EqualTo,Length from models import User from flask import request
[ 6738, 42903, 62, 86, 27110, 1330, 46947, 8479, 198, 6738, 266, 83, 23914, 1330, 10903, 15878, 11, 30275, 15878, 11, 41146, 15878, 11, 39900, 15878, 11, 8206, 30547, 15878, 198, 6738, 266, 83, 23914, 13, 12102, 2024, 1330, 3254, 24765, 1...
4.112903
62
def fetch_columns_options(data, table=False): """Handle creating column options based on the data Parameters ---------- data: dict data from stored dcc.Store component table: bool (def. False) Flag for returning table list Returns ---------- options:...
[ 4299, 21207, 62, 28665, 82, 62, 25811, 7, 7890, 11, 3084, 28, 25101, 2599, 198, 220, 220, 220, 37227, 37508, 4441, 5721, 3689, 1912, 319, 262, 1366, 628, 220, 220, 220, 40117, 198, 220, 220, 220, 24200, 438, 198, 220, 220, 220, 220,...
2.40201
398
"""Economy-level structuring of BLP simulation results.""" from typing import Dict, Hashable, Optional, Sequence, TYPE_CHECKING, Union import numpy as np from ..configurations.formulation import Formulation from ..configurations.integration import Integration from ..utilities.basics import Array, Mapping, RecArray, ...
[ 37811, 28489, 88, 12, 5715, 2878, 870, 286, 9878, 47, 18640, 2482, 526, 15931, 198, 198, 6738, 19720, 1330, 360, 713, 11, 21059, 540, 11, 32233, 11, 45835, 11, 41876, 62, 50084, 2751, 11, 4479, 198, 198, 11748, 299, 32152, 355, 45941,...
2.681967
2,135
#!/usr/bin/env python3 import asyncio import base64 from urllib.parse import urlparse try: from . import peony, api except (SystemError, ImportError): from __init__ import peony import api client = peony.PeonyClient(**api.keys) if __name__ == '__main__': main()
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 18, 198, 198, 11748, 30351, 952, 198, 11748, 2779, 2414, 198, 6738, 2956, 297, 571, 13, 29572, 1330, 19016, 29572, 198, 198, 28311, 25, 198, 220, 220, 220, 422, 764, 1330, 613, 1647, 11, ...
2.714286
105
# Copyright 2018-2020 Xanadu Quantum Technologies 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...
[ 2, 15069, 2864, 12, 42334, 47482, 324, 84, 29082, 21852, 3457, 13, 198, 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, ...
2.348454
6,922
from .estimator import PyxitClassifier __all__ = ["PyxitClassifier"]
[ 6738, 764, 395, 320, 1352, 1330, 9485, 10198, 9487, 7483, 198, 198, 834, 439, 834, 796, 14631, 20519, 10198, 9487, 7483, 8973, 198 ]
3.043478
23
import math __all__ = [ 'map_range', 'range_geometric_row', 'arange', 'diffs', 'allclose', 'argsort', 'argmin', 'argmax', 'clamp', ] def map_range(value, from_min, from_max, to_min, to_max): """Performs a linear interpolation of a value within the range of [from_min, f...
[ 11748, 10688, 198, 198, 834, 439, 834, 796, 685, 198, 220, 220, 220, 705, 8899, 62, 9521, 3256, 198, 220, 220, 220, 705, 9521, 62, 469, 16996, 62, 808, 3256, 198, 220, 220, 220, 705, 283, 858, 3256, 198, 220, 220, 220, 705, 67, ...
2.57906
1,404
# -*- coding: utf-8 -*- from .featurecache import * from .psTMColorfeatures import * from .psTMfeatures import * from .swEVMfeatures import * from .vgg19features import *
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 6738, 764, 30053, 23870, 1330, 1635, 198, 6738, 764, 862, 15972, 10258, 40890, 1330, 1635, 198, 6738, 764, 862, 15972, 40890, 1330, 1635, 198, 6738, 764, 2032, 36, 15996, ...
3.090909
55
import pandas as pd import numpy as np from collections import defaultdict from sklearn.base import BaseEstimator, clone, is_classifier from sklearn.metrics import check_scoring, roc_curve from sklearn.model_selection import check_cv from joblib import Parallel, delayed from scipy import interp, stats import matplo...
[ 11748, 19798, 292, 355, 279, 67, 198, 11748, 299, 32152, 355, 45941, 198, 198, 6738, 17268, 1330, 4277, 11600, 198, 198, 6738, 1341, 35720, 13, 8692, 1330, 7308, 22362, 320, 1352, 11, 17271, 11, 318, 62, 4871, 7483, 198, 6738, 1341, 3...
2.377736
2,147
""" Last change: 10.06.2018 """ import numpy as np import matplotlib.pyplot as plt if __name__ == '__main__': print("### data_preprocessing_all is running directly ###") main() else: print("### data_preprocessing_all is running from the import ###")
[ 37811, 198, 5956, 1487, 25, 838, 13, 3312, 13, 7908, 198, 37811, 198, 198, 11748, 299, 32152, 355, 45941, 198, 11748, 2603, 29487, 8019, 13, 9078, 29487, 355, 458, 83, 628, 198, 361, 11593, 3672, 834, 6624, 705, 834, 12417, 834, 10354...
2.88172
93
# -*- coding: utf-8 -*- from collective.solr.testing import LEGACY_COLLECTIVE_SOLR_FUNCTIONAL_TESTING from plone.testing import layered from unittest import TestSuite import doctest optionflags = ( doctest.ELLIPSIS | doctest.NORMALIZE_WHITESPACE | doctest.REPORT_ONLY_FIRST_FAILURE | doctest.IGNORE_EXCE...
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 6738, 10098, 13, 34453, 81, 13, 33407, 1330, 20978, 43300, 62, 25154, 16779, 9306, 62, 50, 3535, 49, 62, 42296, 4177, 2849, 1847, 62, 51, 6465, 2751, 198, 6738, 458, 5...
2.470588
136
# based on https://github.com/MhLiao/MaskTextSpotter/blob/master/evaluation/icdar2015/e2e/weighted_editdistance.py # MIT license import numpy as np
[ 2, 1912, 319, 3740, 1378, 12567, 13, 785, 14, 44, 71, 43, 13481, 14, 45195, 8206, 32565, 353, 14, 2436, 672, 14, 9866, 14, 18206, 2288, 14, 291, 27455, 4626, 14, 68, 17, 68, 14, 6551, 276, 62, 19312, 30246, 13, 9078, 198, 2, 171...
2.745455
55
import os from celery import Celery os.environ.setdefault("DJANGO_SETTINGS_MODULE", "literal.settings") app = Celery("literal") app.config_from_object("django.conf:settings", namespace="CELERY") app.autodiscover_tasks()
[ 11748, 28686, 198, 198, 6738, 18725, 1924, 1330, 15248, 1924, 198, 198, 418, 13, 268, 2268, 13, 2617, 12286, 7203, 35028, 1565, 11230, 62, 28480, 51, 20754, 62, 33365, 24212, 1600, 366, 18250, 1691, 13, 33692, 4943, 198, 198, 1324, 796,...
2.7875
80
# python3 import numpy as np import matplotlib.pyplot as plt from tensorflow.keras.models import load_model def slerp(val, low, high): """Spherical Linear Interpolation""" omega = np.arccos(np.clip(np.dot(low/np.linalg.norm(high), high/np.linalg.norm(high)), -1, 1)) ...
[ 2, 21015, 18, 198, 198, 11748, 299, 32152, 355, 45941, 198, 11748, 2603, 29487, 8019, 13, 9078, 29487, 355, 458, 83, 198, 6738, 11192, 273, 11125, 13, 6122, 292, 13, 27530, 1330, 3440, 62, 19849, 628, 198, 4299, 1017, 263, 79, 7, 21...
2.341794
591
import config from pprint import pprint import time import shelve import io, sys import requests from Bio import SeqIO ENTREZ_COVID_SEARCH_URL = 'https://eutils.ncbi.nlm.nih.gov/entrez/eutils/esearch.fcgi?db=nucleotide&term=txid2697049[Organism:noexp]&retmode=json&retmax=10000' ENTREZ_NUCL_DOWNLOAD_URL = 'https://eut...
[ 11748, 4566, 198, 6738, 279, 4798, 1330, 279, 4798, 198, 11748, 640, 198, 11748, 7497, 303, 198, 11748, 33245, 11, 25064, 198, 11748, 7007, 198, 6738, 16024, 1330, 1001, 80, 9399, 198, 198, 3525, 2200, 57, 62, 8220, 11008, 62, 5188, 3...
2.793103
232
# Python-MySQL based Hotel Reservation System. import mysql.connector as sql # Creating some variables. mydb = sql.connect(host="localhost", user="root", passwd="", db="python") mycursor = mydb.cursor() # MySQL Structure: # DB : python # Table Name: hotel # cust_id # cust_name # address # roomno # mobileno # check_in...
[ 2, 11361, 12, 3666, 17861, 1912, 12696, 1874, 13208, 4482, 13, 198, 11748, 48761, 13, 8443, 273, 355, 44161, 198, 198, 2, 30481, 617, 9633, 13, 198, 1820, 9945, 796, 44161, 13, 8443, 7, 4774, 2625, 36750, 1600, 2836, 2625, 15763, 1600...
2.878571
140
#!/usr/bin/env python from Bio.SeqIO import parse from argparse import ArgumentParser import pandas as pd from glob import glob from os.path import join as opj from os.path import basename import numpy as np import sys if __name__ == '__main__': main()
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 198, 198, 6738, 16024, 13, 4653, 80, 9399, 1330, 21136, 198, 6738, 1822, 29572, 1330, 45751, 46677, 198, 11748, 19798, 292, 355, 279, 67, 198, 6738, 15095, 1330, 15095, 198, 6738, 28686, 13, ...
3.105882
85
"""Example app to react to an intent to tell you the time.""" import random import logging from datetime import datetime import os from pyowm import OWM from pyowm.commons.exceptions import PyOWMError from pyowm.utils import config from pyowm.utils import timestamps from rhasspyhermes.intent import Slot from rhasspyh...
[ 37811, 16281, 598, 284, 6324, 284, 281, 6824, 284, 1560, 345, 262, 640, 526, 15931, 198, 11748, 4738, 198, 11748, 18931, 198, 6738, 4818, 8079, 1330, 4818, 8079, 198, 11748, 28686, 198, 198, 6738, 12972, 322, 76, 1330, 440, 22117, 198, ...
2.41204
2,990
@client.command() @commands.has_permissions(kick_members=True) @client.command() @commands.has_permissions(kick_members=True)
[ 198, 31, 16366, 13, 21812, 3419, 198, 31, 9503, 1746, 13, 10134, 62, 525, 8481, 7, 24585, 62, 30814, 28, 17821, 8, 628, 198, 31, 16366, 13, 21812, 3419, 198, 31, 9503, 1746, 13, 10134, 62, 525, 8481, 7, 24585, 62, 30814, 28, 17821...
2.844444
45
import vapoursynth as vs import math import functools import sys
[ 11748, 38187, 454, 28869, 400, 355, 3691, 198, 11748, 10688, 198, 11748, 1257, 310, 10141, 198, 11748, 25064, 198 ]
3.421053
19
# GNU MediaGoblin -- federated, autonomous media hosting # Copyright (C) 2011, 2012 MediaGoblin contributors. See AUTHORS. # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU Affero General Public License as published by # the Free Software Foundation, either versio...
[ 2, 22961, 6343, 38, 672, 2815, 1377, 28062, 515, 11, 18284, 2056, 13662, 198, 2, 15069, 357, 34, 8, 2813, 11, 2321, 6343, 38, 672, 2815, 20420, 13, 220, 4091, 37195, 20673, 13, 198, 2, 198, 2, 770, 1430, 318, 1479, 3788, 25, 345, ...
2.758073
2,013
import time import datetime import os from signal import signal, SIGINT, SIGTERM from sys import exit app_name = os.environ.get('APP_NAME', 'UNKNOWN') if __name__ == '__main__': # Tell Python to run the handler() function when SIGINT is received signal(SIGINT, handler) signal(SIGTERM, handler) print(...
[ 11748, 640, 198, 11748, 4818, 8079, 198, 11748, 28686, 198, 6738, 6737, 1330, 6737, 11, 33993, 12394, 11, 33993, 5781, 44, 198, 6738, 25064, 1330, 8420, 198, 198, 1324, 62, 3672, 796, 28686, 13, 268, 2268, 13, 1136, 10786, 24805, 62, ...
2.422764
246
import pickle import unittest from .. import events
[ 11748, 2298, 293, 198, 11748, 555, 715, 395, 198, 198, 6738, 11485, 1330, 2995, 628 ]
3.6
15
'''Tests for methods in helpers/import_common_class/paragraph_helpers.py These are integration tests requiring a db. Will do later''' # pylint: disable=missing-function-docstring import helpers.no_import_common_class.paragraph_helpers as para_helper import testing.data.list_constants as list_data # Todo: Impleme...
[ 7061, 6, 51, 3558, 329, 5050, 287, 49385, 14, 11748, 62, 11321, 62, 4871, 14, 20360, 62, 16794, 364, 13, 9078, 198, 220, 220, 220, 2312, 389, 11812, 5254, 10616, 257, 20613, 13, 220, 2561, 466, 1568, 7061, 6, 198, 2, 279, 2645, 60...
3.57971
138
# Copyright 2018 Google 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, 2864, 3012, 3457, 198, 2, 198, 2, 49962, 739, 262, 24843, 13789, 11, 10628, 362, 13, 15, 357, 1169, 366, 34156, 15341, 198, 2, 345, 743, 407, 779, 428, 2393, 2845, 287, 11846, 351, 262, 13789, 13, 198, 2, 921, 743, 7330,...
3.85
180
# This script is to run automate running machline for the Weber and Brebner results import numpy as np import json import subprocess import time import multiprocessing as mp import os # Record and print the time required to run MachLine start_time = time.time() ## Main input_conditions = "Swept_half_wing_condition...
[ 2, 770, 4226, 318, 284, 1057, 43511, 2491, 3235, 1370, 329, 262, 28137, 290, 3719, 65, 1008, 2482, 198, 198, 11748, 299, 32152, 355, 45941, 198, 11748, 33918, 198, 11748, 850, 14681, 198, 11748, 640, 198, 11748, 18540, 305, 919, 278, ...
2.92418
488
#!/usr/bin/python # Copyright (c) 2017-present Alibaba Group Holding Limited. He Guimin <heguimin36@163.com.com> # GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) # # This file is part of Ansible # # Ansible is free software: you can redistribute it and/or modify # it under t...
[ 2, 48443, 14629, 14, 8800, 14, 29412, 198, 2, 15069, 357, 66, 8, 2177, 12, 25579, 41992, 4912, 31703, 15302, 13, 679, 1962, 320, 259, 1279, 258, 5162, 320, 259, 2623, 31, 24136, 13, 785, 13, 785, 29, 198, 2, 22961, 3611, 5094, 137...
2.353974
3,020
import dominate from dominate.tags import meta, h3, table, tr, td, p, a, img, br import os class HTML: """This HTML class allows us to save images and write texts into a single HTML file. It consists of functions such as <add_header> (add a text header to the HTML file), <add_images> (add a row of imag...
[ 11748, 17863, 198, 6738, 17863, 13, 31499, 1330, 13634, 11, 289, 18, 11, 3084, 11, 491, 11, 41560, 11, 279, 11, 257, 11, 33705, 11, 865, 198, 11748, 28686, 628, 198, 4871, 11532, 25, 198, 220, 220, 220, 37227, 1212, 11532, 1398, 357...
1.727573
4,236
def find_django_migrations_module(module_name): """ Tries to locate <module_name>.migrations_django (without actually importing it). Appends either ".migrations_django" or ".migrations" to module_name. For details why: https://docs.djangoproject.com/en/1.7/topics/migrations/#libraries-third-party-app...
[ 198, 4299, 1064, 62, 28241, 14208, 62, 76, 3692, 602, 62, 21412, 7, 21412, 62, 3672, 2599, 198, 220, 220, 220, 37227, 309, 1678, 284, 17276, 1279, 21412, 62, 3672, 28401, 76, 3692, 602, 62, 28241, 14208, 357, 19419, 1682, 33332, 340, ...
2.562264
265
from math import isclose import numpy as np import scipy.misc import scipy.special from tools.walk_trees import walk_trees from tools.game_tree.nodes import ActionNode
[ 6738, 10688, 1330, 318, 19836, 198, 11748, 299, 32152, 355, 45941, 198, 11748, 629, 541, 88, 13, 44374, 198, 11748, 629, 541, 88, 13, 20887, 198, 198, 6738, 4899, 13, 11152, 62, 83, 6037, 1330, 2513, 62, 83, 6037, 198, 6738, 4899, 1...
3.145455
55