content
stringlengths
1
1.04M
input_ids
listlengths
1
774k
ratio_char_token
float64
0.38
22.9
token_count
int64
1
774k
import praw reddit = praw.Reddit(client_id='zoq10cuAou8EGQ', client_secret='XovsEgldtAcH2eDJhzkIDOfcTVw', user_agent='Fetch')
[ 11748, 279, 1831, 198, 198, 10748, 796, 279, 1831, 13, 22367, 7, 16366, 62, 312, 11639, 10872, 80, 940, 27399, 32, 280, 23, 7156, 48, 3256, 5456, 62, 21078, 11639, 55, 709, 82, 36, 70, 335, 83, 12832, 39, 17, 68, 35028, 32179, 74,...
2.210526
57
import os, sys import json import numpy as np '''glabal variables''' raw_path = 'raw' offset = [0, 15000, 30000, 45000, 60000, 64767, 79767, 94767, 109767, 124767] total_length = 129154 team_dict = {'阿根廷': 0, '巴西': 1,} team_list = ['Argentina', 'Brazil'] flag_reverse = [[0, 1], [1, 0]] pitch_w = 1050 pitch_h = 680 hal...
[ 11748, 28686, 11, 25064, 198, 11748, 33918, 198, 11748, 299, 32152, 355, 45941, 198, 198, 7061, 6, 4743, 44349, 9633, 7061, 6, 198, 1831, 62, 6978, 796, 705, 1831, 6, 198, 28968, 796, 685, 15, 11, 1315, 830, 11, 513, 2388, 11, 4153,...
2.348624
218
# Copyright 2013-2022 Lawrence Livermore National Security, LLC and other # Spack Project Developers. See the top-level COPYRIGHT file for details. # # SPDX-License-Identifier: (Apache-2.0 OR MIT) from spack import * class RGgsci(RPackage): """Scientific Journal and Sci-Fi Themed Color Palettes for 'ggplot2'. ...
[ 2, 15069, 2211, 12, 1238, 1828, 13914, 45036, 3549, 2351, 4765, 11, 11419, 290, 584, 198, 2, 1338, 441, 4935, 34152, 13, 4091, 262, 1353, 12, 5715, 27975, 38162, 9947, 2393, 329, 3307, 13, 198, 2, 198, 2, 30628, 55, 12, 34156, 12, ...
2.44186
387
import math import os, sys from paper import Paper reload(sys) sys.setdefaultencoding('utf8') corpusPath = '/Users/hazemalsaied/RA/Corpus/Sci-Summ-Test/' summPath = '/Users/hazemalsaied/RA/Evaluation/SciSumm/summaries' SciSummSigleDocSummarizer.summarizeSciSumm(corpusPath, summPath)
[ 11748, 10688, 198, 11748, 28686, 11, 25064, 198, 198, 6738, 3348, 1330, 14962, 628, 198, 260, 2220, 7, 17597, 8, 198, 17597, 13, 2617, 12286, 12685, 7656, 10786, 40477, 23, 11537, 198, 10215, 79, 385, 15235, 796, 31051, 14490, 14, 71, ...
2.423729
118
from output.models.nist_data.list_pkg.any_uri.schema_instance.nistschema_sv_iv_list_any_uri_min_length_5_xsd.nistschema_sv_iv_list_any_uri_min_length_5 import NistschemaSvIvListAnyUriMinLength5 __all__ = [ "NistschemaSvIvListAnyUriMinLength5", ]
[ 6738, 5072, 13, 27530, 13, 77, 396, 62, 7890, 13, 4868, 62, 35339, 13, 1092, 62, 9900, 13, 15952, 2611, 62, 39098, 13, 77, 1023, 2395, 2611, 62, 21370, 62, 452, 62, 4868, 62, 1092, 62, 9900, 62, 1084, 62, 13664, 62, 20, 62, 87, ...
2.241071
112
# Copyright 2013, 2014 Rackspace # 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 ...
[ 2, 15069, 2211, 11, 1946, 37927, 13200, 198, 2, 1439, 6923, 33876, 13, 198, 2, 198, 2, 220, 220, 220, 49962, 739, 262, 24843, 13789, 11, 10628, 362, 13, 15, 357, 1169, 366, 34156, 15341, 345, 743, 198, 2, 220, 220, 220, 407, 779, ...
3.407035
199
from NodeDefender.mqtt.command import fire, topic_format
[ 6738, 19081, 7469, 2194, 13, 76, 80, 926, 13, 21812, 1330, 2046, 11, 7243, 62, 18982, 198 ]
3.352941
17
from django.db import models # Create your models here.
[ 6738, 42625, 14208, 13, 9945, 1330, 4981, 198, 198, 2, 13610, 534, 4981, 994, 13, 628, 198 ]
3.470588
17
from torch.utils.data import Dataset, DataLoader import string import pronouncing import nltk import unicodedata # if __name__ == '__main__': # data = Data('process_data.txt') # print(len(data)) # for dt in data: # print(dt) # assert False
[ 6738, 28034, 13, 26791, 13, 7890, 1330, 16092, 292, 316, 11, 6060, 17401, 198, 11748, 4731, 198, 11748, 9668, 18155, 198, 11748, 299, 2528, 74, 198, 11748, 28000, 9043, 1045, 198, 198, 2, 611, 11593, 3672, 834, 6624, 705, 834, 12417, ...
2.495238
105
import machine import time from machine import Timer from micropython import const import gc import repl_drop import wlan_wrapper import mqtt_wrapper # import crypto_wrapper import crypto_wrapper_none as crypto_wrapper import uart_wrapper import keyscan from freq_counter import FreqCounter BOOT_TIME = const(3) DEVICE_...
[ 11748, 4572, 198, 11748, 640, 198, 6738, 4572, 1330, 5045, 263, 198, 6738, 12314, 1773, 7535, 1330, 1500, 198, 11748, 308, 66, 198, 11748, 2186, 62, 14781, 198, 11748, 266, 9620, 62, 48553, 198, 11748, 285, 80, 926, 62, 48553, 198, 2,...
2.598575
421
from unittest.mock import Mock from flask.helpers import url_for from musicrecs import spotify_iface from musicrecs.enums import MusicType, RoundStatus, SnoozinRecType from musicrecs.spotify.item.spotify_music import SpotifyAlbum, SpotifyTrack from musicrecs.database.models import Round, Submission from musicrecs.dat...
[ 6738, 555, 715, 395, 13, 76, 735, 1330, 44123, 198, 198, 6738, 42903, 13, 16794, 364, 1330, 19016, 62, 1640, 198, 198, 6738, 2647, 260, 6359, 1330, 4136, 1958, 62, 361, 558, 198, 6738, 2647, 260, 6359, 13, 268, 5700, 1330, 7849, 603...
3.434783
207
#!/usr/bin/python # -*- coding: utf-8 -*- # Copyright: (c) 2021, Cindy Zhao <cizhao@cisco.com> # GNU General Public License v3.0+ (see LICENSE or https://www.gnu.org/licenses/gpl-3.0.txt) from __future__ import absolute_import, division, print_function __metaclass__ = type DOCUMENTATION = r''' --- module: aci_cloud_...
[ 2, 48443, 14629, 14, 8800, 14, 29412, 198, 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 198, 2, 15069, 25, 357, 66, 8, 33448, 11, 39062, 29436, 1279, 66, 528, 23778, 31, 66, 4861, 13, 785, 29, 198, 2, 22961, ...
2.424022
2,198
""" This module provides support for testing the REST API. """ # -------------------------------------------------------------------------------- # Class: BaseUrl # -------------------------------------------------------------------------------- # ---------------------------------------------------------------------...
[ 37811, 198, 1212, 8265, 3769, 1104, 329, 4856, 262, 30617, 7824, 13, 198, 37811, 198, 198, 2, 16529, 1783, 198, 2, 5016, 25, 7308, 28165, 198, 2, 16529, 1783, 628, 198, 2, 16529, 1783, 198, 2, 5016, 25, 11787, 198, 2, 16529, 1783, ...
10.3
60
import json from os import getenv import requests
[ 11748, 33918, 198, 6738, 28686, 1330, 651, 24330, 198, 198, 11748, 7007, 628 ]
4
13
#!/usr/bin/env python import sys if __name__ == "__main__": if len(sys.argv) < 3: print("Usage: python "+sys.argv[0]+" <tour_files> <out_tour>") else: tour_files, out_tour = sys.argv[1:] merge_group(tour_files, out_tour)
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 198, 11748, 25064, 628, 198, 198, 361, 11593, 3672, 834, 6624, 366, 834, 12417, 834, 1298, 198, 197, 361, 18896, 7, 17597, 13, 853, 85, 8, 1279, 513, 25, 198, 197, 197, 4798, 7203, 28350,...
2.109091
110
# Copyright (c) 2021, TNO # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are met: # # 1. Redistributions of source code must retain the above copyright notice, this # list of conditions and the followi...
[ 2, 15069, 357, 66, 8, 33448, 11, 309, 15285, 198, 2, 1439, 2489, 10395, 13, 198, 2, 198, 2, 2297, 396, 3890, 290, 779, 287, 2723, 290, 13934, 5107, 11, 351, 393, 1231, 198, 2, 17613, 11, 389, 10431, 2810, 326, 262, 1708, 3403, 3...
3.706349
504
from collections import defaultdict from functools import reduce from operator import mul import attr import re @attr.s @attr.s with open('d10.txt') as f: instructions = sorted(line.strip() for line in f) bot_instructions = [line for line in instructions if line.startswith('bot ')] bots = dict(bot_instru...
[ 6738, 17268, 1330, 4277, 11600, 198, 6738, 1257, 310, 10141, 1330, 4646, 198, 6738, 10088, 1330, 35971, 198, 198, 11748, 708, 81, 198, 11748, 302, 628, 198, 31, 35226, 13, 82, 628, 198, 31, 35226, 13, 82, 628, 198, 4480, 1280, 10786, ...
2.519231
468
''' Created on Feb 15, 2016 @author: jason ''' from .sklearntools import MultipleResponseEstimator, BackwardEliminationEstimatorCV, \ QuantileRegressor, ResponseTransformingEstimator from pyearth import Earth from sklearn.pipeline import Pipeline from sklearn.calibration import CalibratedClassifierCV outcomes = ...
[ 7061, 6, 198, 41972, 319, 3158, 1315, 11, 1584, 198, 198, 31, 9800, 25, 474, 888, 198, 7061, 6, 198, 198, 6738, 764, 8135, 3238, 429, 10141, 1330, 20401, 31077, 22362, 320, 1352, 11, 5157, 904, 36, 2475, 1883, 22362, 320, 1352, 3353...
3.118056
144
from django.urls import path from . import views # 'app_name' is used to distinguish different app templates in the project app_name = 'polls' # The 'name' value will be used by the {% url %} template tag urlpatterns = [ path('', views.index, name='index'), path('hello/<name>', views.say_hello, name='hello'), path(...
[ 6738, 42625, 14208, 13, 6371, 82, 1330, 3108, 198, 198, 6738, 764, 1330, 5009, 198, 2, 705, 1324, 62, 3672, 6, 318, 973, 284, 15714, 1180, 598, 24019, 287, 262, 1628, 198, 1324, 62, 3672, 796, 705, 30393, 82, 6, 198, 2, 383, 705, ...
2.947368
190
#!/usr/bin/python # -*- coding: utf-8 -*- # Project Haystack timezone data # (C) 2016 VRT Systems # # vim: set ts=4 sts=4 et tw=78 sw=4 si: import pytz import datetime from .version import LATEST_VER # The official list of timezones as of 6th Jan 2016: # Yes, that's *without* the usual country prefix. HAYSTACK_TIME...
[ 2, 48443, 14629, 14, 8800, 14, 29412, 198, 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 2, 4935, 9075, 25558, 640, 11340, 1366, 198, 2, 357, 34, 8, 1584, 6453, 51, 11998, 198, 2, 198, 2, 43907, 25, 900, 40379, ...
2.15533
2,955
from PyQt4.QtGui import * from PyQt4.QtCore import * from pymongo import MongoClient import json
[ 6738, 9485, 48, 83, 19, 13, 48, 83, 8205, 72, 1330, 1635, 198, 6738, 9485, 48, 83, 19, 13, 48, 83, 14055, 1330, 1635, 198, 6738, 279, 4948, 25162, 1330, 42591, 11792, 198, 11748, 33918, 628 ]
2.722222
36
# This file is part of the clacks framework. # # http://clacks-project.org # # Copyright: # (C) 2010-2012 GONICUS GmbH, Germany, http://www.gonicus.de # # License: # GPL-2: http://www.gnu.org/licenses/gpl-2.0.html # # See the LICENSE file in the project's top-level directory for details. # Global command types NORM...
[ 2, 770, 2393, 318, 636, 286, 262, 537, 4595, 9355, 13, 198, 2, 198, 2, 220, 2638, 1378, 565, 4595, 12, 16302, 13, 2398, 198, 2, 198, 2, 15069, 25, 198, 2, 220, 357, 34, 8, 3050, 12, 6999, 402, 1340, 2149, 2937, 402, 2022, 39, ...
3.248639
551
# Copyright (c) 2019, NVIDIA CORPORATION. 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 applic...
[ 2, 15069, 357, 66, 8, 13130, 11, 15127, 23929, 44680, 6234, 13, 1439, 2489, 10395, 13, 198, 2, 198, 2, 49962, 739, 262, 24843, 13789, 11, 10628, 362, 13, 15, 357, 1169, 366, 34156, 15341, 198, 2, 345, 743, 407, 779, 428, 2393, 284...
3.583969
262
from splitcli.split_apis import http_client
[ 6738, 6626, 44506, 13, 35312, 62, 499, 271, 1330, 2638, 62, 16366 ]
3.583333
12
############################################################################# ## ## Copyright (C) 2018 The Qt Company Ltd. ## Contact: http://www.qt.io/licensing/ ## ## This file is part of the Qt for Python examples of the Qt Toolkit. ## ## $QT_BEGIN_LICENSE:BSD$ ## You may use this file under the terms of the BSD li...
[ 198, 29113, 29113, 7804, 4242, 2, 198, 2235, 198, 2235, 15069, 357, 34, 8, 2864, 383, 33734, 5834, 12052, 13, 198, 2235, 14039, 25, 2638, 1378, 2503, 13, 39568, 13, 952, 14, 677, 26426, 14, 198, 2235, 198, 2235, 770, 2393, 318, 636,...
3.394444
720
# # Copyright (c) 2017, Massachusetts Institute of Technology All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are met: # # Redistributions of source code must retain the above copyright notice, this # list o...
[ 2, 198, 2, 15069, 357, 66, 8, 2177, 11, 10140, 5136, 286, 8987, 1439, 2489, 10395, 13, 198, 2, 198, 2, 2297, 396, 3890, 290, 779, 287, 2723, 290, 13934, 5107, 11, 351, 393, 1231, 198, 2, 17613, 11, 389, 10431, 2810, 326, 262, 17...
2.481283
1,683
import altair as alt import pandas as pd penguins_df = pd.read_csv('data/penguins.csv') # Obtain all the labels of the numeric columns in a list # Name the list numeric_cols numeric_cols = penguins_df.select_dtypes('number').columns.tolist() # Next repeat a histogram plot for every numeric column on the x axis nume...
[ 11748, 5988, 958, 355, 5988, 198, 11748, 19798, 292, 355, 279, 67, 628, 198, 79, 13561, 1040, 62, 7568, 796, 279, 67, 13, 961, 62, 40664, 10786, 7890, 14, 79, 13561, 1040, 13, 40664, 11537, 198, 198, 2, 1835, 3153, 477, 262, 14722, ...
2.696262
214
# Generated by Django 4.0.1 on 2022-01-31 09:51 from django.db import migrations, models import django.db.models.deletion
[ 2, 2980, 515, 416, 37770, 604, 13, 15, 13, 16, 319, 33160, 12, 486, 12, 3132, 7769, 25, 4349, 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
""" Copyright 2021 Inmanta 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 ...
[ 37811, 198, 220, 220, 220, 15069, 33448, 554, 76, 4910, 628, 220, 220, 220, 49962, 739, 262, 24843, 13789, 11, 10628, 362, 13, 15, 357, 1169, 366, 34156, 15341, 198, 220, 220, 220, 345, 743, 407, 779, 428, 2393, 2845, 287, 11846, 35...
3.090476
840
#!/usr/bin/env python # -*- coding: utf-8 -*- google_analytics = '' cookie_secret = 'RESET ME!!!!' #MongoDB Settings mongodb_host = '127.0.0.1' mongodb_port = 27017 database_name = 'bookshelf' #Douban api_key = '' api_secret = '' callback = '' #Development Settings Debug = True
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 198, 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 198, 13297, 62, 38200, 14094, 796, 10148, 198, 44453, 62, 21078, 796, 705, 19535, 2767, 11948, 13896, 6, 198, 198, 2, ...
2.495575
113
import boto3 import os sqs = boto3.client('sqs') s3 = boto3.client('s3') queueUrl = boto3.resource('sqs').get_queue_by_name(QueueName='samprocessorqueue').url waitTime = 0 while True: response = sqs.receive_message(QueueUrl=queueUrl, WaitTimeSeconds=waitTime, MaxNumberOfMessages=1) waitTime = 15 if ...
[ 171, 119, 123, 11748, 275, 2069, 18, 198, 11748, 28686, 198, 198, 31166, 82, 796, 275, 2069, 18, 13, 16366, 10786, 31166, 82, 11537, 198, 82, 18, 796, 275, 2069, 18, 13, 16366, 10786, 82, 18, 11537, 198, 36560, 28165, 796, 275, 2069...
2.598592
426
import tensorflow as tf import os os.environ['TF_CPP_MIN_LOG_LEVEL']='2' a = tf.placeholder(tf.float32) b = tf.placeholder(tf.float32) add = a+b sess = tf.Session() print(sess.run(add,feed_dict={a:3,b:4}))
[ 11748, 11192, 273, 11125, 355, 48700, 198, 11748, 28686, 198, 418, 13, 268, 2268, 17816, 10234, 62, 8697, 47, 62, 23678, 62, 25294, 62, 2538, 18697, 20520, 11639, 17, 6, 628, 198, 64, 796, 48700, 13, 5372, 13829, 7, 27110, 13, 22468, ...
2.177083
96
from geojson.base import GeoJSON class Default(object): """GeoJSON default, long/lat WGS84, is not serialized."""
[ 6738, 4903, 13210, 1559, 13, 8692, 1330, 32960, 40386, 628, 628, 198, 198, 4871, 15161, 7, 15252, 2599, 628, 220, 220, 220, 37227, 10082, 78, 40386, 4277, 11, 890, 14, 15460, 370, 14313, 5705, 11, 318, 407, 11389, 1143, 526, 15931, 19...
2.952381
42
import os from io import StringIO, FileIO from shutil import copyfile from .utils import override from voidpp_tools.compat import builtins, FileNotFoundError, FileExistsError, UnsupportedOperation
[ 11748, 28686, 198, 6738, 33245, 1330, 10903, 9399, 11, 9220, 9399, 198, 6738, 4423, 346, 1330, 4866, 7753, 198, 6738, 764, 26791, 1330, 20957, 198, 6738, 7951, 381, 62, 31391, 13, 5589, 265, 1330, 3170, 1040, 11, 9220, 3673, 21077, 1233...
3.882353
51
import pymongo import sys import os currentDir = os.path.dirname(os.path.realpath(__file__)) sys.path.append(currentDir + "../serverScripts") from userIdsDAO import UserIdsDAO client = pymongo.MongoClient() db = client.bayesGame userIdsDAO = UserIdsDAO(db) newId = str(userIdsDAO.createNewId()) print newId print us...
[ 11748, 279, 4948, 25162, 198, 11748, 25064, 198, 11748, 28686, 198, 198, 14421, 35277, 796, 28686, 13, 6978, 13, 15908, 3672, 7, 418, 13, 6978, 13, 5305, 6978, 7, 834, 7753, 834, 4008, 198, 17597, 13, 6978, 13, 33295, 7, 14421, 35277,...
2.486667
150
import ast from flake8_fine_pytest.watchers.base import BaseWatcher
[ 11748, 6468, 198, 198, 6738, 781, 539, 23, 62, 38125, 62, 9078, 9288, 13, 47261, 3533, 13, 8692, 1330, 7308, 54, 34734, 628 ]
3.043478
23
""" A selection of view objects used in testing. """ VIEW_WITH_FILTER_AND_REGEX = """ <?xml version="1.1" encoding="UTF-8"?> <hudson.model.ListView> <name>%s</name> <filterExecutors>true</filterExecutors> <filterQueue>true</filterQueue> <properties class="hudson.model.View$PropertyList"/> <jobNames> <com...
[ 37811, 198, 32, 6356, 286, 1570, 5563, 973, 287, 4856, 13, 198, 37811, 198, 198, 28206, 62, 54, 10554, 62, 46700, 5781, 62, 6981, 62, 31553, 6369, 796, 37227, 198, 47934, 19875, 2196, 2625, 16, 13, 16, 1, 21004, 2625, 48504, 12, 23,...
2.555556
306
import mysql.connector from sqlalchemy import create_engine from sqlalchemy import types import numpy as np import pandas as pd import time import yaml with open("config.yml", 'r') as config_doc: config = yaml.safe_load(config_doc) engine = create_engine(engine_str_formatter(config)) cnx = engine.connect() # Ta...
[ 11748, 48761, 13, 8443, 273, 198, 6738, 44161, 282, 26599, 1330, 2251, 62, 18392, 198, 6738, 44161, 282, 26599, 1330, 3858, 198, 11748, 299, 32152, 355, 45941, 198, 11748, 19798, 292, 355, 279, 67, 198, 11748, 640, 198, 11748, 331, 4369...
2.323383
804
#!/usr/bin/env python3 r""" See help text for details. """ import sys import subprocess import re save_dir_path = sys.path.pop(0) modules = ['gen_arg', 'gen_print', 'gen_valid', 'gen_misc', 'gen_cmd', 'var_funcs'] for module in modules: exec("from " + module + " import *") sys.path.insert(0, save_dir_path) pa...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 18, 198, 198, 81, 37811, 198, 6214, 1037, 2420, 329, 3307, 13, 198, 37811, 198, 198, 11748, 25064, 198, 11748, 850, 14681, 198, 11748, 302, 198, 198, 21928, 62, 15908, 62, 6978, 796, 25064,...
2.481243
2,639
check()
[ 198, 9122, 3419, 198 ]
2.25
4
from django.test import TestCase from django.urls import reverse from django.contrib.auth.models import User, Group from appinput.models import App from appinput.forms import AppForm
[ 6738, 42625, 14208, 13, 9288, 1330, 6208, 20448, 198, 6738, 42625, 14208, 13, 6371, 82, 1330, 9575, 198, 6738, 42625, 14208, 13, 3642, 822, 13, 18439, 13, 27530, 1330, 11787, 11, 4912, 198, 6738, 598, 15414, 13, 27530, 1330, 2034, 198, ...
3.68
50
# -*- coding: utf-8 -*- """ @author: Adam Reinhold Von Fisher - https://www.linkedin.com/in/adamrvfisher/ """ #This is a technical analysis tool #Import modules import numpy as np #Define function
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 37811, 198, 198, 31, 9800, 25, 7244, 22299, 2946, 26985, 14388, 532, 3740, 1378, 2503, 13, 25614, 259, 13, 785, 14, 259, 14, 324, 321, 81, 85, 69, 4828, 14, 198, 198...
2.753425
73
from threading import Thread, Semaphore from aicm.landing_track import LandingPriority from time import sleep from aicm.airport_generator import AirportGenerator from aicm.general import planes g = AirportGenerator() """ Class that represents the implementation of an Airplane. """ class Airplane(Thread): """__init__...
[ 6738, 4704, 278, 1330, 14122, 11, 12449, 6570, 382, 198, 6738, 257, 291, 76, 13, 1044, 278, 62, 11659, 1330, 29689, 22442, 414, 198, 6738, 640, 1330, 3993, 198, 6738, 257, 291, 76, 13, 958, 634, 62, 8612, 1352, 1330, 12690, 8645, 13...
2.913858
267
# -------------------------------------------------------------------------- # # Copyright 2006-2009, University of Chicago # # Copyright 2008-2009, Distributed Systems Architecture Group, Universidad # # Complutense de Madrid (dsa-research.org) # # ...
[ 2, 16529, 35937, 1303, 198, 2, 15069, 4793, 12, 10531, 11, 2059, 286, 4842, 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, 22...
2.377016
1,984
import time import threading import asyncio import math
[ 198, 11748, 640, 198, 11748, 4704, 278, 198, 11748, 30351, 952, 198, 11748, 10688, 628, 198 ]
3.6875
16
from flask_graphql_auth import get_jwt_identity import graphene from graphql import GraphQLError from graphql_relay import to_global_id from graphene import relay from graphene_sqlalchemy import SQLAlchemyObjectType from app.api.models import db from app.api.models import Job as JobModel, Event as EventModel from . im...
[ 6738, 42903, 62, 34960, 13976, 62, 18439, 1330, 651, 62, 73, 46569, 62, 738, 414, 198, 11748, 42463, 198, 6738, 4823, 13976, 1330, 29681, 48, 2538, 81, 1472, 198, 6738, 4823, 13976, 62, 2411, 323, 1330, 284, 62, 20541, 62, 312, 198, ...
3.3125
128
from app import db from app.api import bp from app.api.auth import basic_auth, token_auth from app.api.errors import bad_request from app.models import User, Comms from flask import jsonify, request, url_for @bp.route('/tokens', methods=['POST']) @basic_auth.login_required @bp.route('/tokens/goog', methods=['POST'...
[ 6738, 598, 1330, 20613, 198, 6738, 598, 13, 15042, 1330, 275, 79, 198, 6738, 598, 13, 15042, 13, 18439, 1330, 4096, 62, 18439, 11, 11241, 62, 18439, 198, 6738, 598, 13, 15042, 13, 48277, 1330, 2089, 62, 25927, 198, 6738, 598, 13, 27...
2.827338
139
# Copyright (c) OpenMMLab. All rights reserved. import copy from os.path import dirname, exists, join import numpy as np import pytest import torch from mmdet3d.models.builder import build_segmentor from mmdet.apis import set_random_seed def _get_config_directory(): """Find the predefined detector config direct...
[ 2, 15069, 357, 66, 8, 4946, 44, 5805, 397, 13, 1439, 2489, 10395, 13, 198, 11748, 4866, 198, 6738, 28686, 13, 6978, 1330, 26672, 3672, 11, 7160, 11, 4654, 198, 198, 11748, 299, 32152, 355, 45941, 198, 11748, 12972, 9288, 198, 11748, ...
2.775044
569
# Copyright (c) 2012-2014, GPy authors (see AUTHORS.txt). # Licensed under the BSD 3-clause license (see LICENSE.txt) from .model import * from .parameterization.parameterized import adjust_name_for_printing, Parameterizable from .parameterization.param import Param, ParamConcatenation from .parameterization.observabl...
[ 2, 15069, 357, 66, 8, 2321, 12, 4967, 11, 14714, 88, 7035, 357, 3826, 37195, 20673, 13, 14116, 737, 198, 2, 49962, 739, 262, 347, 10305, 513, 12, 565, 682, 5964, 357, 3826, 38559, 24290, 13, 14116, 8, 198, 198, 6738, 764, 19849, 1...
3.300752
133
import datetime from firebase_admin import initialize_app, messaging
[ 11748, 4818, 8079, 198, 6738, 2046, 8692, 62, 28482, 1330, 41216, 62, 1324, 11, 19925, 628 ]
4.375
16
import os VERSION = "1.0" MODEL_NAME = os.path.basename(os.path.dirname(__file__)) DOCKERHUB_REPO = f"danieldeutsch/{MODEL_NAME}" DEFAULT_IMAGE = f"{DOCKERHUB_REPO}:{VERSION}" AUTOMATICALLY_PUBLISH = True from repro.models.zhao2019.models import MoverScore, MoverScoreForSummarization from repro.models.zhao2019.setup ...
[ 11748, 28686, 198, 198, 43717, 796, 366, 16, 13, 15, 1, 198, 33365, 3698, 62, 20608, 796, 28686, 13, 6978, 13, 12093, 12453, 7, 418, 13, 6978, 13, 15908, 3672, 7, 834, 7753, 834, 4008, 198, 35, 11290, 1137, 39, 10526, 62, 2200, 16...
2.619403
134
# -*- coding: utf-8 -*- # # Copyright 2019 Google LLC. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless requir...
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 1303, 198, 2, 15069, 13130, 3012, 11419, 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...
3.31586
744
import os import os.path import requests import inspect import shelve import time from functools import wraps from types import ModuleType from datetime import datetime from cloudpickle import CloudPickler # MUST: API_TOKEN, GROUP_ID, GROUP_NAME, JUPYTERHUB_USER, INSTANCE_TYPE, IMAGE_NAME from primehub_job.utils impor...
[ 11748, 28686, 198, 11748, 28686, 13, 6978, 198, 11748, 7007, 198, 11748, 10104, 198, 11748, 7497, 303, 198, 11748, 640, 198, 6738, 1257, 310, 10141, 1330, 27521, 198, 6738, 3858, 1330, 19937, 6030, 198, 6738, 4818, 8079, 1330, 4818, 8079,...
2.634328
536
from django.test import TestCase from virtus.core.forms import ClienteModelForm
[ 6738, 42625, 14208, 13, 9288, 1330, 6208, 20448, 198, 6738, 4118, 385, 13, 7295, 13, 23914, 1330, 20985, 68, 17633, 8479, 628, 198 ]
3.565217
23
'''Some helper functions for PyTorch, including: - get_mean_and_std: calculate the mean and std value of dataset. - msr_init: net parameter initialization. - progress_bar: progress bar mimic xlua.progress. ''' import os import sys import time import math import shutil import torch import numpy as np impor...
[ 7061, 6, 4366, 31904, 5499, 329, 9485, 15884, 354, 11, 1390, 25, 198, 220, 220, 220, 532, 651, 62, 32604, 62, 392, 62, 19282, 25, 15284, 262, 1612, 290, 14367, 1988, 286, 27039, 13, 198, 220, 220, 220, 532, 13845, 81, 62, 15003, 2...
2.320413
1,161
# uninhm # https://codeforces.com/contest/1535/problem/B # greedy from math import gcd t = int(input()) for i in range(t): n = int(input()) a = list(map(int, input().split())) a = list(filter(lambda x: x%2==0, a)) + list(filter(lambda x: x%2==1, a)) ans = 0 for i in range(n): for j in ra...
[ 2, 26329, 23940, 198, 2, 3740, 1378, 19815, 891, 273, 728, 13, 785, 14, 3642, 395, 14, 1314, 2327, 14, 45573, 14, 33, 198, 2, 31828, 198, 198, 6738, 10688, 1330, 308, 10210, 198, 198, 83, 796, 493, 7, 15414, 28955, 198, 198, 1640,...
1.975962
208
import logging from datetime import datetime from bs4 import BeautifulSoup as bs from django.utils.crypto import get_random_string from commentparser import fix_comment_image from forum.messaging.models import GlobalMessage, Mail from markdownparser import parse_to_markdown from utils import non_naive_datetime_ber fr...
[ 11748, 18931, 198, 6738, 4818, 8079, 1330, 4818, 8079, 198, 198, 6738, 275, 82, 19, 1330, 23762, 50, 10486, 355, 275, 82, 198, 6738, 42625, 14208, 13, 26791, 13, 29609, 78, 1330, 651, 62, 25120, 62, 8841, 198, 198, 6738, 2912, 48610, ...
3.477941
136
import numpy as np import socket # get checksum
[ 11748, 299, 32152, 355, 45941, 198, 11748, 17802, 198, 198, 2, 651, 8794, 388, 628, 220, 220, 220, 220 ]
2.842105
19
# Copyright (c) Meta Platforms, Inc. and affiliates. # # This source code is licensed under the MIT license found in the # LICENSE file in the root directory of this source tree. # This file defines tests for the Backtester classes import statistics import unittest import unittest.mock as mock from typing import Any,...
[ 2, 15069, 357, 66, 8, 30277, 19193, 82, 11, 3457, 13, 290, 29116, 13, 198, 2, 198, 2, 770, 2723, 2438, 318, 11971, 739, 262, 17168, 5964, 1043, 287, 262, 198, 2, 38559, 24290, 2393, 287, 262, 6808, 8619, 286, 428, 2723, 5509, 13, ...
2.764977
651
"""Config player for sounds on an external sound card.""" from typing import List from mpf.config_players.device_config_player import DeviceConfigPlayer MYPY = False if MYPY: # pragma: no cover from mpf.devices.hardware_sound_system import HardwareSoundSystem # pylint: disable-msg=cyclic-import,unused-import;...
[ 37811, 16934, 2137, 329, 5238, 319, 281, 7097, 2128, 2657, 526, 15931, 198, 6738, 19720, 1330, 7343, 198, 198, 6738, 29034, 69, 13, 11250, 62, 32399, 13, 25202, 62, 11250, 62, 7829, 1330, 16232, 16934, 14140, 198, 198, 26708, 47, 56, ...
2.302128
940
# Copyright 2018 The TensorFlow Probability Authors. # # 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 o...
[ 2, 15069, 2864, 383, 309, 22854, 37535, 30873, 1799, 46665, 13, 198, 2, 198, 2, 49962, 739, 262, 24843, 13789, 11, 10628, 362, 13, 15, 357, 1169, 366, 34156, 15341, 198, 2, 345, 743, 407, 779, 428, 2393, 2845, 287, 11846, 351, 262, ...
2.440479
4,007
from Bio import pairwise2 from Bio.SubsMat.MatrixInfo import blosum62 import numpy as np import scipy import pandas as pd import regex as re import pickle def sub_pivot_df(pps, sdf, group=True): """function takes a long form datatable of extracts and peaks (input sdf), filters for peptide plasmids of interest...
[ 6738, 16024, 1330, 5166, 3083, 17, 198, 6738, 16024, 13, 7004, 82, 19044, 13, 46912, 12360, 1330, 698, 418, 388, 5237, 198, 198, 11748, 299, 32152, 355, 45941, 198, 11748, 629, 541, 88, 198, 11748, 19798, 292, 355, 279, 67, 198, 11748...
2.435616
5,110
# -*- coding: utf-8 -*- import datetime import time import re import os from werkzeug import secure_filename from flask import ( Blueprint, render_template, request, current_app, jsonify ) from sqlalchemy.orm import load_only from wexplorer.database import db from wexplorer.explorer.models import ( Company...
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 11748, 4818, 8079, 198, 11748, 640, 198, 11748, 302, 198, 11748, 28686, 198, 6738, 266, 9587, 2736, 1018, 1330, 5713, 62, 34345, 198, 6738, 42903, 1330, 357, 198, 220, 2...
2.418799
2,032
from tiled.client import from_uri from tiled.client.node import Node from intake.catalog import Catalog from intake.source import DataSource class TiledCatalog(Catalog): """View Tiled server as a catalog See the documentation for setting up such a server at https://blueskyproject.io/tiled/ A tiled s...
[ 6738, 256, 3902, 13, 16366, 1330, 422, 62, 9900, 198, 6738, 256, 3902, 13, 16366, 13, 17440, 1330, 19081, 198, 6738, 10337, 13, 9246, 11794, 1330, 44515, 198, 6738, 10337, 13, 10459, 1330, 6060, 7416, 628, 198, 4871, 309, 3902, 49015, ...
2.416324
1,458
#!/usr/bin/env python3 import csv import sys import config if __name__ == '__main__': main() # Made by Misha Krieger-Raynauld and Simon Gauvin
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 18, 198, 198, 11748, 269, 21370, 198, 11748, 25064, 198, 11748, 4566, 628, 628, 198, 361, 11593, 3672, 834, 6624, 705, 834, 12417, 834, 10354, 198, 220, 220, 220, 1388, 3419, 198, 198, 2, ...
2.637931
58
# Generated by Django 2.1.3 on 2018-11-17 17:40 from django.db import migrations, models
[ 2, 2980, 515, 416, 37770, 362, 13, 16, 13, 18, 319, 2864, 12, 1157, 12, 1558, 1596, 25, 1821, 198, 198, 6738, 42625, 14208, 13, 9945, 1330, 15720, 602, 11, 4981, 628 ]
2.84375
32
from .base import * import dj_database_url import django_heroku DEBUG = False ALLOWED_HOSTS = ['.herokuapp.com'] # Application definition INSTALLED_APPS = [ 'django.contrib.admin', 'django.contrib.auth', 'django.contrib.contenttypes', 'django.contrib.sessions', 'django.contrib.messages', 'dj...
[ 6738, 764, 8692, 1330, 1635, 198, 11748, 42625, 62, 48806, 62, 6371, 198, 11748, 42625, 14208, 62, 11718, 23063, 628, 198, 30531, 796, 10352, 198, 7036, 3913, 1961, 62, 39, 10892, 50, 796, 685, 4458, 11718, 23063, 1324, 13, 785, 20520, ...
2.532787
488
# rasterio from collections import namedtuple import logging import os import warnings from rasterio._base import eval_window, window_shape, window_index from rasterio._drivers import driver_count, GDALEnv import rasterio.dtypes from rasterio.dtypes import ( bool_, ubyte, uint8, uint16, int16, uint32, int32, floa...
[ 2, 374, 1603, 952, 198, 198, 6738, 17268, 1330, 3706, 83, 29291, 198, 11748, 18931, 198, 11748, 28686, 198, 11748, 14601, 198, 198, 6738, 374, 1603, 952, 13557, 8692, 1330, 5418, 62, 17497, 11, 4324, 62, 43358, 11, 4324, 62, 9630, 198...
2.621792
2,221
import os # These paths are mounted into the docker container by docker-entrypoint.sh WATCH_FOLDER = "/mount/watch/" MASTER_FOLDER = "/mount/master/" ACCESS_FOLDER = "/mount/access/" WEB_FOLDER = "/tmp/" OUTPUT_FOLDER = "/mount/output/" ACCESS_FFMPEG_DESTINATION_EXT = ".mp4" ACCESS_FFMPEG_ARGS = [ '-loglevel', 'p...
[ 11748, 28686, 198, 198, 2, 2312, 13532, 389, 12623, 656, 262, 36253, 9290, 416, 36253, 12, 13000, 4122, 13, 1477, 198, 35192, 62, 37, 3535, 14418, 796, 12813, 14948, 14, 8340, 30487, 198, 31180, 5781, 62, 37, 3535, 14418, 796, 12813, ...
2.354759
1,618
#!/usr/bin/env python import RPi.GPIO as GPIO import sys sys.path.append('MFRC522-python') from mfrc522 import SimpleMFRC522 #wav file import pygame import time pygame.mixer.init() #nfc_please.wav #nfc_plz = pygame.mixer.Sound("nfc_please.wav") nfc_done = pygame.mixer.Sound("nfc_done.wav.wav") reader = SimpleMFRC52...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 198, 198, 11748, 25812, 72, 13, 16960, 9399, 355, 50143, 198, 11748, 25064, 198, 17597, 13, 6978, 13, 33295, 10786, 49800, 7397, 49542, 12, 29412, 11537, 198, 6738, 285, 69, 6015, 49542, 1330...
2.24269
342
from heaps.base import Heap class MinHeap(Heap): """vanilla min-heap priority queue""" heap = [] def _upheap(self, pos=None): """up-heap element at given pos in heap array""" child = pos or len(self.heap) - 1 parent = (child - 1) // 2 while child and self.heap[child].key...
[ 6738, 339, 1686, 13, 8692, 1330, 679, 499, 628, 198, 4871, 1855, 1544, 499, 7, 1544, 499, 2599, 198, 220, 220, 220, 37227, 10438, 5049, 949, 12, 258, 499, 8475, 16834, 37811, 628, 220, 220, 220, 24575, 796, 17635, 628, 220, 220, 220...
1.964654
679
"""Utility for sending signed transactions to an Account on Starknet.""" import subprocess try: from starkware.cairo.common.hash_state import compute_hash_on_elements from starkware.crypto.signature.signature import private_to_stark_key, sign from starkware.starknet.public.abi import get_selector_from_name...
[ 37811, 18274, 879, 329, 7216, 4488, 8945, 284, 281, 10781, 319, 20956, 3262, 526, 15931, 198, 11748, 850, 14681, 198, 198, 28311, 25, 198, 220, 220, 220, 422, 19278, 1574, 13, 66, 18131, 13, 11321, 13, 17831, 62, 5219, 1330, 24061, 62...
2.449309
868
from django.apps import AppConfig
[ 6738, 42625, 14208, 13, 18211, 1330, 2034, 16934, 628 ]
3.888889
9
import asyncio import typing from nonebot import logger __all__ = ("CacheManager",)
[ 11748, 30351, 952, 198, 11748, 19720, 198, 198, 6738, 4844, 13645, 1330, 49706, 628, 198, 198, 834, 439, 834, 796, 5855, 30562, 13511, 1600, 8, 198 ]
3.384615
26
#!/usr/bin/python """This module is part of Swampy, a suite of programs available from allendowney.com/swampy. Copyright 2011 Allen B. Downey Distributed under the GNU General Public License at gnu.org/licenses/gpl.html. """ import optparse import os import copy import random import sys import string import time # ...
[ 2, 48443, 14629, 14, 8800, 14, 29412, 198, 198, 37811, 1212, 8265, 318, 636, 286, 29114, 88, 11, 257, 18389, 286, 4056, 1695, 422, 198, 439, 437, 593, 2959, 13, 785, 14, 2032, 696, 88, 13, 198, 198, 15269, 2813, 9659, 347, 13, 558...
2.270731
7,103
#!/usr/bin/env python # -*- coding: utf-8 -*- # # Copyright 2015 clowwindy # # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless requir...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 198, 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 2, 198, 2, 15069, 1853, 537, 322, 7972, 88, 198, 2, 198, 2, 49962, 739, 262, 24843, 13789, 11, 10628, 362, 13, 15, ...
3.261905
294
from _iledef import *
[ 6738, 4808, 3902, 891, 1330, 1635, 198 ]
3.142857
7
''' Copyright 2022 Airbus SAS Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software dis...
[ 7061, 6, 198, 15269, 33160, 39173, 35516, 198, 198, 26656, 15385, 739, 262, 24843, 13789, 11, 10628, 362, 13, 15, 357, 1169, 366, 34156, 15341, 198, 5832, 743, 407, 779, 428, 2393, 2845, 287, 11846, 351, 262, 13789, 13, 198, 1639, 743...
3.776471
170
#!/usr/bin/env python # A basic python code to implement the kinematics model for the differential mobile robot # and reflect its behavior on graphs. ######################################################################################################### #Import the required libraries: import rospy import math from a...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 198, 2, 317, 4096, 21015, 2438, 284, 3494, 262, 479, 7749, 23372, 2746, 329, 262, 22577, 5175, 9379, 198, 2, 290, 4079, 663, 4069, 319, 28770, 13, 198, 198, 29113, 29113, 29113, 7804, 2, ...
2.866271
4,382
## exchange邮件发送相关的库包 from exchangelib import DELEGATE, Account, Credentials, Configuration, NTLM, Message, Mailbox, HTMLBody from exchangelib.protocol import BaseProtocol, NoVerifyHTTPAdapter import urllib3 import smtplib from email.mime.text import MIMEText urllib3.disable_warnings() # 可以避免老是报错... class kEmailSende...
[ 2235, 5163, 165, 224, 106, 20015, 114, 20998, 239, 34460, 223, 33566, 116, 17739, 111, 21410, 41753, 241, 44293, 227, 198, 6738, 9933, 8368, 571, 1330, 5550, 2538, 38, 6158, 11, 10781, 11, 327, 445, 14817, 11, 28373, 11, 399, 14990, 4...
1.505747
2,001
# Normalization of data # rescale data to a std of 1 from scipy.cluster.vq import whiten from matplotlib import pyplot as plt data = [5,1,3,3,2,3,3,8,1,2,2,3,5] scaled_data = whiten(data) print(scaled_data) plt.plot(data, label="original") plt.plot(scaled_data, label="scaled") plt.legend() plt.show() # scale sma...
[ 198, 198, 2, 14435, 1634, 286, 1366, 198, 2, 6811, 1000, 1366, 284, 257, 14367, 286, 352, 198, 198, 6738, 629, 541, 88, 13, 565, 5819, 13, 85, 80, 1330, 20542, 268, 198, 6738, 2603, 29487, 8019, 1330, 12972, 29487, 355, 458, 83, 1...
2.3125
288
from setuptools import setup, find_packages import os version = '1.0' setup(name='fhf.toolbox', version=version, description="Flint Hill Frontiers Community Toolbox", long_description=open("README.md").read() + "\n" + open(os.path.join("docs", "HISTORY.txt")).read(), # G...
[ 6738, 900, 37623, 10141, 1330, 9058, 11, 1064, 62, 43789, 198, 11748, 28686, 198, 198, 9641, 796, 705, 16, 13, 15, 6, 198, 198, 40406, 7, 3672, 11639, 69, 71, 69, 13, 25981, 3524, 3256, 198, 220, 220, 220, 220, 220, 2196, 28, 9641...
2.21902
694
import api import config from api import logger import time import random from api import servers from colorama import init init() @logger.catch start()
[ 11748, 40391, 198, 11748, 4566, 198, 6738, 40391, 1330, 49706, 198, 11748, 640, 198, 11748, 4738, 198, 6738, 40391, 1330, 9597, 198, 6738, 3124, 1689, 1330, 2315, 198, 15003, 3419, 628, 198, 31, 6404, 1362, 13, 40198, 198, 9688, 3419 ]
3.85
40
"""Python program that accepts an integer (n) and computes the value of n+nn+nnn""" n = input('enter an integer: ') sum1 = int(n*3) + int(n*2) + int(n) print(sum1)
[ 37811, 37906, 1430, 326, 18178, 281, 18253, 357, 77, 8, 290, 552, 1769, 262, 1988, 286, 299, 10, 20471, 10, 20471, 77, 37811, 198, 77, 796, 5128, 10786, 9255, 281, 18253, 25, 705, 8, 198, 16345, 16, 796, 493, 7, 77, 9, 18, 8, 13...
2.603175
63
# Copyright 2021 Zilliz. 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 law or agree...
[ 2, 15069, 33448, 1168, 359, 528, 13, 1439, 2489, 10395, 13, 198, 2, 198, 2, 49962, 739, 262, 24843, 13789, 11, 10628, 362, 13, 15, 357, 1169, 366, 34156, 15341, 198, 2, 345, 743, 407, 779, 428, 2393, 2845, 287, 11846, 351, 262, 13...
3.041322
363
# Copyright 2017 Cloudbase Solutions Srl # # 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...
[ 2, 15069, 2177, 10130, 8692, 23555, 21714, 75, 198, 2, 198, 2, 1439, 6923, 33876, 13, 198, 2, 198, 2, 220, 220, 220, 49962, 739, 262, 24843, 13789, 11, 10628, 362, 13, 15, 357, 1169, 366, 34156, 15341, 345, 743, 198, 2, 220, 220, ...
3.205047
317
version = "2.4.1" default_app_config = "jazzmin.apps.JazzminConfig"
[ 9641, 796, 366, 17, 13, 19, 13, 16, 1, 198, 12286, 62, 1324, 62, 11250, 796, 366, 73, 8101, 1084, 13, 18211, 13, 41, 8101, 1084, 16934, 1, 198 ]
2.344828
29
# Copyright (c) 2015-2018 Claudiu Popa <pcmanticore@gmail.com> # Copyright (c) 2016 Derek Gustafson <degustaf@gmail.com> # Licensed under the GPL: https://www.gnu.org/licenses/old-licenses/gpl-2.0.html # For details: https://github.com/PyCQA/pylint/blob/master/COPYING import astroid from pylint.checkers import strin...
[ 2, 15069, 357, 66, 8, 1853, 12, 7908, 36303, 16115, 8099, 64, 1279, 79, 11215, 5109, 382, 31, 14816, 13, 785, 29, 198, 2, 15069, 357, 66, 8, 1584, 20893, 26657, 1878, 1559, 1279, 13500, 436, 1878, 31, 14816, 13, 785, 29, 198, 198,...
1.917178
326
#!/usr/bin/env python3 # ============================================================================== # # FILE: urnresolver # # USAGE: urnresolver urn:data:un:locode # urnresolver urn:data:un:locode # urnresolver urn:data:xz:hxl:standard:core:hashtag # ...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 18, 198, 2, 38093, 25609, 28, 198, 2, 198, 2, 220, 220, 220, 220, 220, 220, 220, 220, 220, 45811, 25, 220, 220, 700, 411, 14375, 198, 2, 198, 2, 220, 220, 220, 220, 220, 220, 220, 2...
1.886006
12,062
#!/usr/bin/env python3 # -*- coding: utf-8 -*- # 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 Licen...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 18, 198, 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 198, 2, 49962, 284, 262, 24843, 10442, 5693, 357, 1921, 37, 8, 739, 530, 198, 2, 393, 517, 18920, 5964, 11704, ...
2.601504
1,197
#!/usr/bin/env python3 ''' Find and replace the Icestation-32's initial RAM in the FPGA configuration file with an arbitary program. This can then be directly converted to a bitstream and uploaded to the FPGA. This allows uploading a game together with otherwise unchanged hardware without having to re-run yosys and ne...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 18, 198, 7061, 6, 198, 16742, 290, 6330, 262, 314, 9165, 341, 12, 2624, 338, 4238, 13931, 287, 262, 376, 6968, 32, 8398, 2393, 198, 4480, 281, 9277, 560, 1430, 13, 198, 198, 1212, 460, ...
2.490234
2,048
import pandas as pd import numpy as np import os import json merge()
[ 11748, 19798, 292, 355, 279, 67, 198, 11748, 299, 32152, 355, 45941, 198, 198, 11748, 28686, 198, 11748, 33918, 198, 198, 647, 469, 3419, 198, 197, 197, 197, 197, 628, 628, 628, 198 ]
2.484848
33
#Copyright 2009 Humanitarian International Services Group # #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, 15269, 3717, 5524, 8353, 4037, 6168, 4912, 198, 2, 198, 2, 26656, 15385, 739, 262, 24843, 13789, 11, 10628, 362, 13, 15, 357, 1169, 366, 34156, 15341, 198, 2, 5832, 743, 407, 779, 428, 2393, 2845, 287, 11846, 351, 262, 13789, 13,...
2.402315
4,233
'''This router contains the implementation for the cleaning API. ''' import json from fastapi import APIRouter, UploadFile, File, Query # , HTTPException, Form import pydantic from typing import List from wb_nlp.interfaces import mongodb from wb_nlp.types.models import ( ModelTypes, GetVectorParams, SimilarWords...
[ 7061, 6, 1212, 20264, 4909, 262, 7822, 329, 262, 12724, 7824, 13, 198, 7061, 6, 198, 11748, 33918, 198, 6738, 3049, 15042, 1330, 3486, 4663, 39605, 11, 36803, 8979, 11, 9220, 11, 43301, 220, 1303, 837, 14626, 16922, 11, 5178, 198, 117...
2.67642
2,905
#!/usr/bin/env python3 __author__ = 'Rafael Zamora, rz4@hood.edu' from setuptools import setup, find_packages import numpy as np setup( name="DeepDoom-DE", version="0.1.0", description="Deep Reinforcement Learning Development Environment Powered By ViZDoom 1.1.1. and Keras 2.0", license="MIT", ke...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 18, 198, 198, 834, 9800, 834, 796, 705, 49, 1878, 3010, 38343, 5799, 11, 374, 89, 19, 31, 2894, 13, 15532, 6, 198, 198, 6738, 900, 37623, 10141, 1330, 9058, 11, 1064, 62, 43789, 198, 11...
2.580756
291
#NOTE #Everything in Tk is a window and objects are placed in a hierarchy import tkinter mainwindow = tkinter.Tk() mainwindow.title("using Canvas widget") mainwindow.geometry("640x480") label = tkinter.Label(mainwindow,text='Hello World') label.pack(side='top') leftframe = tkinter.Frame(mainwindow) leftframe.p...
[ 2, 16580, 198, 198, 2, 19693, 287, 309, 74, 318, 257, 4324, 290, 5563, 389, 4624, 287, 257, 18911, 198, 198, 11748, 256, 74, 3849, 628, 198, 198, 12417, 17497, 796, 256, 74, 3849, 13, 51, 74, 3419, 198, 198, 12417, 17497, 13, 7839...
3.105882
680
import copy import json import unittest import os import string import random import marathon_lb
[ 11748, 4866, 198, 11748, 33918, 198, 11748, 555, 715, 395, 198, 11748, 28686, 198, 11748, 4731, 198, 11748, 4738, 198, 198, 11748, 22336, 62, 23160, 628, 628 ]
3.740741
27
"""API URL Configuration The `urlpatterns` list routes URLs to views. For more information please see: https://docs.djangoproject.com/en/1.11/topics/http/urls/ Examples: Function views 1. Add an import: from my_app import views 2. Add a URL to urlpatterns: url(r'^$', views.home, name='home') Class-based ...
[ 37811, 17614, 10289, 28373, 198, 198, 464, 4600, 6371, 33279, 82, 63, 1351, 11926, 32336, 284, 5009, 13, 1114, 517, 1321, 3387, 766, 25, 198, 220, 220, 220, 3740, 1378, 31628, 13, 28241, 648, 404, 305, 752, 13, 785, 14, 268, 14, 16,...
2.416244
591
from __future__ import absolute_import from . import utils from . import parameters
[ 6738, 11593, 37443, 834, 1330, 4112, 62, 11748, 198, 198, 6738, 764, 1330, 3384, 4487, 198, 6738, 764, 1330, 10007 ]
4.2
20
#!/usr/bin/python import socket import struct rawSocket = socket.socket(socket.PF_PACKET, socket.SOCK_RAW, socket.htons(0x800)) #rawSocket = socket.socket(socket.AF_INET, socket.SOCK_RAW, socket.htons(0x0800)) #the 0x0800 means IP protocol #/usr/include/linux/if_ether.h will show you the defined Ethernet Protocol ID'...
[ 2, 48443, 14629, 14, 8800, 14, 29412, 198, 198, 11748, 17802, 198, 11748, 2878, 198, 198, 1831, 39105, 796, 17802, 13, 44971, 7, 44971, 13, 42668, 62, 47, 8120, 2767, 11, 17802, 13, 50, 11290, 62, 20530, 11, 17802, 13, 4352, 684, 7,...
2.659236
314