content
stringlengths
1
1.05M
input_ids
listlengths
1
883k
ratio_char_token
float64
1
22.9
token_count
int64
1
883k
#!/usr/bin/env python # coding=utf-8 from pyecharts.option import grid
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 198, 2, 19617, 28, 40477, 12, 23, 198, 198, 6738, 12972, 3055, 5889, 13, 18076, 1330, 10706, 628 ]
2.807692
26
import logging from .endpoint import ask def request_payment(user_id, message, options): """Note that amount is a integer which specifies the amount of cents in the transaction Smooch will default to the currency specified in your account settings.""" if not valid_args(user_id, message, options): ...
[ 11748, 18931, 198, 198, 6738, 764, 437, 4122, 1330, 1265, 628, 628, 198, 4299, 2581, 62, 37301, 7, 7220, 62, 312, 11, 3275, 11, 3689, 2599, 198, 220, 220, 220, 37227, 6425, 326, 2033, 318, 257, 18253, 543, 26052, 262, 2033, 286, 160...
2.380721
1,442
import keras from keras.models import load_model from PIL import Image import matplotlib.pylab as plt import numpy as np import zipfile print("Extract") zip_ref = zipfile.ZipFile("./asset.zip", 'r') zip_ref.extractall(".") zip_ref.close() print("Load Model") model=load_model("cifar-model.h5") CIFAR_10_CLASSES=["Plane",...
[ 11748, 41927, 292, 198, 6738, 41927, 292, 13, 27530, 1330, 3440, 62, 19849, 198, 6738, 350, 4146, 1330, 7412, 198, 11748, 2603, 29487, 8019, 13, 79, 2645, 397, 355, 458, 83, 198, 11748, 299, 32152, 355, 45941, 198, 11748, 19974, 7753, ...
2.432
250
""" tt URL Configuration The `urlpatterns` list routes URLs to views. For more information please see: https://docs.djangoproject.com/en/2.1/topics/http/urls/ Examples: Function views 1. Add an import: from my_app import views 2. Add a URL to urlpatterns: path('', views.home, name='home') Class-based vi...
[ 37811, 198, 926, 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, ...
2.946429
560
import os import click os.environ["GIT_PYTHON_REFRESH"] = "quiet"
[ 11748, 28686, 198, 198, 11748, 3904, 198, 198, 418, 13, 268, 2268, 14692, 38, 2043, 62, 47, 56, 4221, 1340, 62, 2200, 10913, 44011, 8973, 796, 366, 39624, 1, 628 ]
2.3
30
import glob import os if __name__ == __name__: main()
[ 11748, 15095, 198, 11748, 28686, 628, 198, 198, 361, 11593, 3672, 834, 6624, 11593, 3672, 834, 25, 198, 220, 220, 220, 1388, 3419, 198 ]
2.541667
24
import numpy as np import pandas as pd import seaborn as sns import matplotlib.pyplot as plt from sklearn.metrics import classification_report #EVERY TIME THE DATASET IS RETRIEVED FROM GITHUB input_file = 'https://raw.githubusercontent.com/lcphy/Digital-Innovation-Lab/master/bank-full.csv' dataset = pd.read_csv(input...
[ 11748, 299, 32152, 355, 45941, 198, 11748, 19798, 292, 355, 279, 67, 198, 11748, 384, 397, 1211, 355, 3013, 82, 198, 11748, 2603, 29487, 8019, 13, 9078, 29487, 355, 458, 83, 198, 6738, 1341, 35720, 13, 4164, 10466, 1330, 17923, 62, 13...
2.366088
2,707
# Copyright 2015-2018 Capital One Services, 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/LICENSE-2.0 # # Unless required by applicable law or agreed ...
[ 2, 15069, 1853, 12, 7908, 9747, 1881, 6168, 11, 11419, 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, ...
3.92638
163
# Copyright 2016 Intel Corporation # Copyright 2017 Wind River # 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 applica...
[ 2, 15069, 1584, 8180, 10501, 198, 2, 15069, 2177, 3086, 5866, 220, 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...
2.645191
2,204
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ STEP 2 Takes the list of urls in the json files and downloads the html files to local drive Start with: scrapy runspider ReviewsCollector.py """ import scrapy import json
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 18, 198, 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 37811, 198, 42135, 362, 198, 51, 1124, 262, 1351, 286, 2956, 7278, 287, 262, 33918, 3696, 290, 21333, 262, 27711, ...
3.054795
73
from abc import ABC, abstractmethod from .color import Color
[ 6738, 450, 66, 1330, 9738, 11, 12531, 24396, 198, 6738, 764, 8043, 1330, 5315, 628, 628 ]
4
16
import random Daughter = Family('Ashley', 'Smith', 'Brown') Son = Family('Kevin', 'Smith', 'Brown') print(Daughter.eyes) print(Son.eyes) #with the kids being born it will define what color hair and eyes # they may randomly get through inheritance
[ 11748, 4738, 198, 198, 35, 3637, 796, 7884, 10786, 26754, 1636, 3256, 705, 17919, 3256, 705, 20644, 11537, 198, 31056, 796, 7884, 10786, 23865, 3256, 705, 17919, 3256, 705, 20644, 11537, 198, 198, 4798, 7, 35, 3637, 13, 48418, 8, 198, ...
3.195122
82
""" homeassistant.components.device_tracker.owntracks ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ OwnTracks platform for the device tracker. For more details about this platform, please refer to the documentation at https://home-assistant.io/components/device_tracker.owntracks/ """ import json import logging im...
[ 37811, 198, 11195, 562, 10167, 13, 5589, 3906, 13, 25202, 62, 2213, 10735, 13, 6887, 81, 4595, 198, 27156, 27156, 27156, 93, 198, 23858, 2898, 4595, 3859, 329, 262, 3335, 30013, 13, 198, 198, 1890, 517, 3307, 546, 428, 3859, 11, 3387,...
2.287902
653
#!/usr/bin/env python # -*- coding:utf-8 -*- # Created by Roger on 2019-09-10 # Mostly by AllenNLP import logging import math from typing import Any, Dict, List, Optional, Tuple import torch import torch.nn.functional as F from allennlp.data import Vocabulary from allennlp.models.model import Model from allennlp.mod...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 198, 2, 532, 9, 12, 19617, 25, 40477, 12, 23, 532, 9, 12, 220, 198, 2, 15622, 416, 13637, 319, 13130, 12, 2931, 12, 940, 198, 2, 33495, 416, 9659, 45, 19930, 198, 198, 11748, 18931, 1...
2.74714
1,661
""" Given 3 bottles of capacities 3, 5, and 9 liters, count number of all possible solutions to get 7 liters """ current_path = [[0, 0, 0]] CAPACITIES = (3, 5, 9) solutions_count = 0 if __name__ == "__main__": try: current_state = [0, 0, 0] move_to_new_state(current_state) print(s...
[ 37811, 198, 220, 220, 220, 11259, 513, 14096, 286, 32484, 513, 11, 642, 11, 290, 860, 6578, 364, 11, 220, 198, 220, 220, 220, 954, 1271, 286, 477, 1744, 8136, 284, 651, 767, 6578, 364, 198, 37811, 198, 198, 14421, 62, 6978, 796, 1...
2.412088
182
# Copyright 2019 Extreme Networks, 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 i...
[ 2, 15069, 13130, 18111, 27862, 11, 3457, 13, 198, 2, 198, 2, 49962, 739, 262, 24843, 13789, 11, 10628, 362, 13, 15, 357, 1169, 366, 34156, 15341, 198, 2, 345, 743, 407, 779, 428, 2393, 2845, 287, 11846, 351, 262, 13789, 13, 198, 2...
3.51752
371
# 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 may ...
[ 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, 5964, 1321, 13, 19...
4.45625
160
# -*- coding: utf-8 -*- """ test_simple_compression ~~~~~~~~~~~~~~~~~~~~~~~~~ Tests for compression of single chunks. """ import brotli import pytest from hypothesis import given from hypothesis.strategies import binary, integers, sampled_from, one_of def test_roundtrip_compression_with_files(simple_compressed_fil...
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 37811, 198, 9288, 62, 36439, 62, 5589, 2234, 198, 27156, 15116, 93, 198, 198, 51, 3558, 329, 19794, 286, 2060, 22716, 13, 198, 37811, 198, 11748, 1379, 83, 4528, 198, ...
2.921951
205
from decimal import Decimal
[ 6738, 32465, 1330, 4280, 4402, 628 ]
4.833333
6
from scryptos import * p1 = 32581479300404876772405716877547 p2 = 27038194053540661979045656526063 p3 = 26440615366395242196516853423447 n = p1*p2*p3 e = 3 c = int(open("flag.enc", "rb").read().encode("hex"), 16) # from User's Guide to PARI/GP, nth_root function sqrtnall = 'sqrtnall(x,n)={my(V,r,z,r2);r=sqrtn(x,n,&z...
[ 6738, 629, 6012, 418, 1330, 1635, 198, 198, 79, 16, 796, 513, 25600, 1415, 3720, 6200, 1821, 2780, 32059, 22, 1731, 43526, 1433, 5774, 2425, 2857, 198, 79, 17, 796, 20479, 2548, 1129, 26598, 2327, 1821, 2791, 33581, 40350, 2996, 2996, ...
1.870769
650
# -*- coding: utf-8 -*- # Generated by Django 1.11 on 2018-03-29 06:43 from __future__ import unicode_literals from django.conf import settings from django.db import migrations, models import django.db.models.deletion import musa.models
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 2, 2980, 515, 416, 37770, 352, 13, 1157, 319, 2864, 12, 3070, 12, 1959, 9130, 25, 3559, 198, 6738, 11593, 37443, 834, 1330, 28000, 1098, 62, 17201, 874, 198, 198, 6738...
2.950617
81
# Copyright 2021, Kay Hayen, mailto:kay.hayen@gmail.com # # Part of "Nuitka", an optimizing Python compiler that is compatible and # integrates with CPython, but also works on its own. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in complianc...
[ 2, 220, 220, 220, 220, 15069, 33448, 11, 17356, 9075, 268, 11, 6920, 1462, 25, 5568, 13, 71, 323, 268, 31, 14816, 13, 785, 198, 2, 198, 2, 220, 220, 220, 220, 2142, 286, 366, 45, 5013, 4914, 1600, 281, 45780, 11361, 17050, 326, ...
3.474227
388
import math from sys import exit # , n - , P - , # m = -(nlog2P) / ln2 (2 - ), - -log2P # - : (((i + 1)*x + p(i+1)) mod M) mod m, - x - , i - -, # pi - i- , M - 31 , M = 2^31 - 1, M = 2 147 483 647, M - . # - k . BloomFilter # . # m, , # . , : # 1, ...
[ 11748, 10688, 198, 6738, 25064, 1330, 8420, 198, 198, 2, 837, 299, 532, 220, 220, 220, 220, 837, 350, 532, 220, 220, 837, 220, 220, 198, 2, 220, 285, 796, 532, 7, 77, 6404, 17, 47, 8, 1220, 300, 77, 17, 357, 17, 532, 10612, 22...
1.714149
1,046
"""A test that subscribes to NumPy arrays. Uses REQ/REP (on PUB/SUB socket + 1) to synchronize """ #----------------------------------------------------------------------------- # Copyright (c) 2010 Brian Granger # # Distributed under the terms of the New BSD License. The full license is in # the file COPYING.BSD...
[ 37811, 32, 1332, 326, 11452, 274, 284, 31835, 20519, 26515, 13, 198, 198, 5842, 274, 4526, 48, 14, 35316, 357, 261, 350, 10526, 14, 50, 10526, 17802, 1343, 352, 8, 284, 18305, 1096, 198, 37811, 198, 198, 2, 10097, 32501, 198, 2, 220...
4.061538
130
import sqlite3 con = sqlite3.connect(":memory:") # enable extension loading con.enable_load_extension(True) # Load the fulltext search extension con.execute("select load_extension('./fts3.so')") # alternatively you can load the extension using an API call: # con.load_extension("./fts3.so") # disable extension load...
[ 11748, 44161, 578, 18, 198, 198, 1102, 796, 44161, 578, 18, 13, 8443, 7, 1298, 31673, 25, 4943, 198, 198, 2, 7139, 7552, 11046, 198, 1102, 13, 21633, 62, 2220, 62, 2302, 3004, 7, 17821, 8, 198, 198, 2, 8778, 262, 1336, 5239, 2989,...
3.445205
292
# Lint as: python3 # Copyright 2018 The TensorFlow Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless ...
[ 2, 406, 600, 355, 25, 21015, 18, 198, 2, 15069, 2864, 383, 309, 22854, 37535, 46665, 13, 1439, 6923, 33876, 13, 198, 2, 198, 2, 49962, 739, 262, 24843, 13789, 11, 10628, 362, 13, 15, 357, 1169, 366, 34156, 15341, 198, 2, 345, 743,...
2.753886
3,474
#! usr/env/bin python import glob import numpy as np import pandas as pd from tqdm import tqdm def get_place_crime_count(path:str)->pd.DataFrame: """ Function to return """ # Extracting the table name from and year from the given file path t_name = " ".join(path[path.index("Table"):path.index(...
[ 2, 0, 514, 81, 14, 24330, 14, 8800, 21015, 198, 11748, 15095, 198, 198, 11748, 299, 32152, 355, 45941, 198, 11748, 19798, 292, 355, 279, 67, 198, 6738, 256, 80, 36020, 1330, 256, 80, 36020, 628, 628, 198, 4299, 651, 62, 5372, 62, ...
2.334586
532
# pylint: disable=no-self-use,invalid-name import numpy as np from numpy.testing import assert_almost_equal import torch from allennlp.common import Params from allennlp.data import Vocabulary from allennlp.modules.token_embedders import BagOfWordCountsTokenEmbedder from allennlp.common.testing import AllenNlpTestCase ...
[ 2, 279, 2645, 600, 25, 15560, 28, 3919, 12, 944, 12, 1904, 11, 259, 12102, 12, 3672, 198, 11748, 299, 32152, 355, 45941, 198, 6738, 299, 32152, 13, 33407, 1330, 6818, 62, 28177, 62, 40496, 198, 11748, 28034, 198, 6738, 477, 1697, 34...
3.309278
97
import argparse import logging import multiprocessing as mp import logging import os from detectron2.evaluation import inference_context import torch import torch.distributed as dist import torch.multiprocessing as mp from detectron2.utils.collect_env import collect_env_info from detectron2.utils.logger import setup_lo...
[ 11748, 1822, 29572, 198, 11748, 18931, 198, 11748, 18540, 305, 919, 278, 355, 29034, 198, 11748, 18931, 198, 11748, 28686, 198, 6738, 4886, 1313, 17, 13, 18206, 2288, 1330, 32278, 62, 22866, 198, 11748, 28034, 198, 11748, 28034, 13, 17080...
2.095483
1,948
import numpy as np # from sklearn.ensemble import BaggingClassifier # from sklearn.tree import DecisionTreeClassifier from sklearn.neighbors import KNeighborsClassifier from sklearn.utils.validation import ( check_X_y, check_array, NotFittedError, ) from sklearn.utils.multiclass import check_classificati...
[ 11748, 299, 32152, 355, 45941, 198, 198, 2, 422, 1341, 35720, 13, 1072, 11306, 1330, 347, 16406, 9487, 7483, 198, 2, 422, 1341, 35720, 13, 21048, 1330, 26423, 27660, 9487, 7483, 198, 6738, 1341, 35720, 13, 710, 394, 32289, 1330, 509, ...
3.144928
138
# Tumblr Setup # Replace the values with your information # OAuth keys can be generated from https://api.tumblr.com/console/calls/user/info consumer_key='ShbOqI5zErQXOL7Qnd5XduXpY9XQUlBgJDpCLeq1OYqnY2KzSt' #replace with your key consumer_secret='ulZradkbJGksjpl2MMlshAfJgEW6TNeSdZucykqeTp8jvwgnhu' #replace with your sec...
[ 2, 24434, 31122, 198, 2, 40177, 262, 3815, 351, 534, 1321, 198, 2, 440, 30515, 8251, 460, 307, 7560, 422, 3740, 1378, 15042, 13, 45364, 13, 785, 14, 41947, 14, 66, 5691, 14, 7220, 14, 10951, 198, 49827, 62, 2539, 11639, 2484, 65, ...
2.849415
684
from django.contrib import admin from django.contrib.auth.models import Group from accounts.models import EmailUser from shared.admin import ExportCsvMixin # no need for groups - we only have regular users and superusers admin.site.unregister(Group)
[ 6738, 42625, 14208, 13, 3642, 822, 1330, 13169, 198, 6738, 42625, 14208, 13, 3642, 822, 13, 18439, 13, 27530, 1330, 4912, 198, 198, 6738, 5504, 13, 27530, 1330, 9570, 12982, 198, 6738, 4888, 13, 28482, 1330, 36472, 34, 21370, 35608, 259...
3.705882
68
import hashlib import hmac import logging import time from json.decoder import JSONDecodeError from typing import TYPE_CHECKING, Any, Dict, List, Optional, Tuple from urllib.parse import urlencode import requests from rotkehlchen.assets.asset import Asset from rotkehlchen.assets.converters import asset_from_coinbase ...
[ 11748, 12234, 8019, 198, 11748, 289, 20285, 198, 11748, 18931, 198, 11748, 640, 198, 6738, 33918, 13, 12501, 12342, 1330, 19449, 10707, 1098, 12331, 198, 6738, 19720, 1330, 41876, 62, 50084, 2751, 11, 4377, 11, 360, 713, 11, 7343, 11, 3...
2.754386
1,254
# -*- coding: utf-8 -*- """ ldap.controls.deref - classes for (see https://tools.ietf.org/html/draft-masarati-ldap-deref) See https://www.python-ldap.org/ for project details. """ __all__ = [ 'DEREF_CONTROL_OID', 'DereferenceControl', ] import ldap.controls from ldap.controls import LDAPControl,KNOWN_RESPONSE_CO...
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 37811, 198, 335, 499, 13, 13716, 82, 13, 67, 567, 69, 532, 6097, 329, 198, 7, 3826, 3740, 1378, 31391, 13, 1155, 69, 13, 2398, 14, 6494, 14, 35679, 12, 5356, 283, ...
3.015625
320
import requests import urllib.request import os.path import shutil import csv if __name__ == '__main__': main()
[ 11748, 7007, 198, 11748, 2956, 297, 571, 13, 25927, 198, 11748, 28686, 13, 6978, 198, 11748, 4423, 346, 198, 11748, 269, 21370, 628, 220, 198, 198, 361, 11593, 3672, 834, 6624, 705, 834, 12417, 834, 10354, 198, 220, 220, 220, 1388, 34...
2.790698
43
from __future__ import absolute_import import signal import tornado.ioloop import logging from .protocol import ( Error, unpack_response, decode_message, valid_topic_name, valid_channel_name, identify, subscribe, ready, finish, touch, requeue, nop, pub, mpub, ...
[ 6738, 11593, 37443, 834, 1330, 4112, 62, 11748, 198, 198, 11748, 6737, 198, 11748, 33718, 13, 1669, 11224, 198, 11748, 18931, 198, 198, 6738, 764, 11235, 4668, 1330, 357, 198, 220, 220, 220, 13047, 11, 198, 220, 220, 220, 555, 8002, 6...
2.508738
515
import get_data_ours import get_data_akiba import get_data_NearLinear import get_data_LinearTime import os import matplotlib.pyplot as plt # graphs = ["uk-2002", "arabic-2005", "gsh-2015-tpd", "uk-2005", "it-2004", "sk-2005", "uk-2007-05", "webbase-2001", "asia.osm", "road_usa", "europe.osm", "rgg_n26_s0", "RHG-10000...
[ 11748, 651, 62, 7890, 62, 4662, 198, 11748, 651, 62, 7890, 62, 461, 23718, 198, 11748, 651, 62, 7890, 62, 40640, 14993, 451, 198, 11748, 651, 62, 7890, 62, 14993, 451, 7575, 198, 11748, 28686, 198, 11748, 2603, 29487, 8019, 13, 9078, ...
2.455541
1,552
import configparser import sys import inspect from argparse import ArgumentParser, RawDescriptionHelpFormatter
[ 11748, 4566, 48610, 198, 11748, 25064, 198, 11748, 10104, 198, 198, 6738, 1822, 29572, 1330, 45751, 46677, 11, 16089, 11828, 22087, 8479, 1436, 628, 628, 628, 198 ]
4.37037
27
#%% Import libs import numpy as np from sklearn.ensemble import RandomForestClassifier from sklearn.model_selection import cross_validate from sklearn.metrics import make_scorer, accuracy_score, precision_score, recall_score, f1_score import h5py import time from ssccoorriinngg import ssccoorriinngg import numpy as np ...
[ 2, 16626, 17267, 9195, 82, 198, 11748, 299, 32152, 355, 45941, 198, 6738, 1341, 35720, 13, 1072, 11306, 1330, 14534, 34605, 9487, 7483, 198, 6738, 1341, 35720, 13, 19849, 62, 49283, 1330, 3272, 62, 12102, 378, 198, 6738, 1341, 35720, 13...
2.05848
6,669
""" Main BEHAVIOR demo collection entrypoint """ import argparse import copy import datetime import os import bddl import numpy as np import igibson from igibson.activity.activity_base import iGBEHAVIORActivityInstance from igibson.render.mesh_renderer.mesh_renderer_cpu import MeshRendererSettings from igibson.rende...
[ 37811, 198, 13383, 9348, 7801, 12861, 1581, 13605, 4947, 5726, 4122, 198, 37811, 198, 198, 11748, 1822, 29572, 198, 11748, 4866, 198, 11748, 4818, 8079, 198, 11748, 28686, 198, 198, 11748, 275, 1860, 75, 198, 11748, 299, 32152, 355, 45941...
2.918782
197
from django.utils.text import slugify from django.utils.html import format_html
[ 6738, 42625, 14208, 13, 26791, 13, 5239, 1330, 31065, 1958, 198, 6738, 42625, 14208, 13, 26791, 13, 6494, 1330, 5794, 62, 6494, 628 ]
3.521739
23
# Generated by Django 2.1.5 on 2019-03-26 11:35 from django.conf import settings from django.db import migrations, models import django.db.models.deletion
[ 2, 2980, 515, 416, 37770, 362, 13, 16, 13, 20, 319, 13130, 12, 3070, 12, 2075, 1367, 25, 2327, 198, 198, 6738, 42625, 14208, 13, 10414, 1330, 6460, 198, 6738, 42625, 14208, 13, 9945, 1330, 15720, 602, 11, 4981, 198, 11748, 42625, 14...
3.019231
52
from my_collection import logger if __name__ == "__main__": logger.now().debug("debug1") logger.now().debug("debug2") logger.now().info("hello1") logger.now().info("hello2") logger.now().with_field("key", "val").error("with field1") logger.now().with_field("key", "val").error("with field2")
[ 6738, 616, 62, 43681, 1330, 49706, 198, 198, 361, 11593, 3672, 834, 6624, 366, 834, 12417, 834, 1298, 198, 220, 220, 220, 49706, 13, 2197, 22446, 24442, 7203, 24442, 16, 4943, 198, 220, 220, 220, 49706, 13, 2197, 22446, 24442, 7203, 2...
2.709402
117
import argparse from robotremoteserver import RobotRemoteServer from .iperf3 import Iperf3 if __name__ == '__main__': # create commandline parser parser = argparse.ArgumentParser(formatter_class=argparse.ArgumentDefaultsHelpFormatter) parser.prog = 'python3 -m robotframework_iperf3' # add parser opt...
[ 11748, 1822, 29572, 198, 6738, 9379, 2787, 6421, 18497, 1330, 16071, 36510, 10697, 198, 6738, 764, 9346, 69, 18, 1330, 314, 525, 69, 18, 628, 198, 361, 11593, 3672, 834, 6624, 705, 834, 12417, 834, 10354, 628, 220, 220, 220, 1303, 225...
2.31003
329
df8.cbind(df9) # A B C D A0 B0 C0 D0 # ----- ------ ------ ------ ------ ----- ----- ----- # -0.09 0.944 0.160 0.271 -0.351 1.66 -2.32 -0.86 # -0.95 0.669 0.664 1.535 -0.633 -1.78 0.32 1.27 # 0.17 0.657 0.970 -0.419 -1.413 -0.51 0.64 -1.25 # 0.58 -0.516 -1.598 -1.346 0.71...
[ 7568, 23, 13, 21101, 521, 7, 7568, 24, 8, 198, 198, 2, 220, 220, 220, 220, 317, 220, 220, 220, 220, 220, 347, 220, 220, 220, 220, 220, 327, 220, 220, 220, 220, 220, 360, 220, 220, 220, 220, 317, 15, 220, 220, 220, 347, 15, 2...
1.624413
426
#!/usr/bin/env python3 # -*- encoding: utf-8 -*- from collections import abc from keyword import iskeyword
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 18, 198, 2, 532, 9, 12, 21004, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 198, 6738, 17268, 1330, 450, 66, 198, 6738, 21179, 1330, 318, 2539, 4775, 628 ]
2.868421
38
"""The Tag problem. Implemented according to the paper `Anytime Point-Based Approximations for Large POMDPs <https://arxiv.org/pdf/1110.0027.pdf>`_. Transition model: the robot moves deterministically. The target's movement depends on the robot; With Pr=0.8 the target moves away from the robot, and with P...
[ 37811, 464, 17467, 1917, 13, 1846, 1154, 12061, 1864, 284, 262, 3348, 4600, 7149, 2435, 6252, 12, 15001, 201, 198, 4677, 13907, 320, 602, 329, 13601, 350, 2662, 6322, 82, 1279, 5450, 1378, 283, 87, 452, 13, 2398, 14, 12315, 14, 1157, ...
2.930693
202
# MIT License # # Copyright (c) 2019 Red Hat, Inc. # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights # to use, copy, modify, merge,...
[ 2, 17168, 13789, 198, 2, 198, 2, 15069, 357, 66, 8, 13130, 2297, 10983, 11, 3457, 13, 198, 198, 2, 2448, 3411, 318, 29376, 7520, 11, 1479, 286, 3877, 11, 284, 597, 1048, 16727, 257, 4866, 198, 2, 286, 428, 3788, 290, 3917, 10314, ...
3.828488
344
#!/usr/bin/env python from ndarray_ducktypes.ArrayCollection import ArrayCollection from ndarray_ducktypes.MaskedArray import MaskedArray from ndarray_ducktypes.MaskedArrayCollection import MaskedArrayCollection import numpy as np # Tests for Masked ArrayCollections. # # First try: Simply make an arraycollection of Ma...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 198, 6738, 299, 67, 18747, 62, 646, 694, 19199, 13, 19182, 36307, 1330, 15690, 36307, 198, 6738, 299, 67, 18747, 62, 646, 694, 19199, 13, 45195, 276, 19182, 1330, 18007, 276, 19182, 198, 67...
2.925325
308
# Generated by the protocol buffer compiler. DO NOT EDIT! # source: core.proto import sys _b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) from google.protobuf import descriptor as _descriptor from google.protobuf import message as _message from google.protobuf import reflection as _reflecti...
[ 2, 2980, 515, 416, 262, 8435, 11876, 17050, 13, 220, 8410, 5626, 48483, 0, 198, 2, 2723, 25, 4755, 13, 1676, 1462, 198, 198, 11748, 25064, 198, 62, 65, 28, 17597, 13, 9641, 62, 10951, 58, 15, 60, 27, 18, 290, 357, 50033, 2124, 2...
2.352775
81,905
from neomodel import StructuredNode, StringProperty, JSONProperty, \ Relationship, IntegerProperty import numpy as np import re from models.text_relation import TextRelation __all__ = ['TextNode']
[ 6738, 497, 296, 375, 417, 1330, 32112, 1522, 19667, 11, 10903, 21746, 11, 19449, 21746, 11, 3467, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 39771, 11, 34142, 21746, 198,...
3
74
import unittest from .helpers import StubBoard, StubPiece, C, WHITE, BLACK if __name__ == '__main__': unittest.main()
[ 11748, 555, 715, 395, 198, 6738, 764, 16794, 364, 1330, 41135, 29828, 11, 41135, 47, 8535, 11, 327, 11, 44925, 11, 31963, 628, 198, 361, 11593, 3672, 834, 6624, 705, 834, 12417, 834, 10354, 198, 220, 220, 220, 555, 715, 395, 13, 124...
2.795455
44
from lib.fmd.namedentity import NamedEntity from lib.fmd.decorators import Action, ListStage, GetStage from lib.exceptions.workflow import EntryException
[ 6738, 9195, 13, 69, 9132, 13, 13190, 26858, 1330, 34441, 32398, 198, 6738, 9195, 13, 69, 9132, 13, 12501, 273, 2024, 1330, 7561, 11, 7343, 29391, 11, 3497, 29391, 198, 6738, 9195, 13, 1069, 11755, 13, 1818, 11125, 1330, 21617, 16922, ...
3.666667
42
from __future__ import ( absolute_import, unicode_literals, ) import abc import six from pysoa.server.internal.types import is_switch __all__ = ( 'SwitchedAction', )
[ 6738, 11593, 37443, 834, 1330, 357, 198, 220, 220, 220, 4112, 62, 11748, 11, 198, 220, 220, 220, 28000, 1098, 62, 17201, 874, 11, 198, 8, 198, 198, 11748, 450, 66, 198, 198, 11748, 2237, 198, 198, 6738, 12972, 568, 64, 13, 15388, ...
2.597222
72
from .base import * SECRET_KEY = 'test' # SECURITY WARNING: don't run with debug turned on in production! DEBUG = True TEMPLATE_DEBUG = True ALLOWED_HOSTS = ['127.0.0.1'] DATABASES = { 'default': { 'ENGINE': 'django.db.backends.sqlite3', 'NAME': 'sqlite3.db', 'USER': '', 'PASSWO...
[ 6738, 764, 8692, 1330, 1635, 198, 198, 23683, 26087, 62, 20373, 796, 705, 9288, 6, 198, 198, 2, 10729, 4261, 9050, 39410, 25, 836, 470, 1057, 351, 14257, 2900, 319, 287, 3227, 0, 198, 30531, 796, 6407, 198, 51, 3620, 6489, 6158, 62,...
2.133858
254
#!/usr/bin/env python3 # Author: Emmanuel Odeke <odeke@ualberta.ca> # This example steps you through using resty & restAssured to save pickled/serialized # data as a blob and then later re-using it in after deserialization. # Sample usage might be in collaborative computing ie publish results from an expensive # compu...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 18, 198, 2, 6434, 25, 32390, 440, 2934, 365, 1279, 1098, 365, 31, 723, 4835, 64, 13, 6888, 29, 198, 198, 2, 770, 1672, 4831, 345, 832, 1262, 1334, 88, 1222, 1334, 8021, 1522, 284, 3613,...
3.613445
119
# dataframe: a data-frame implementation using method piping # # Copyright (C) 2016 Simon Dirmeier # # This file is part of dataframe. # # dataframe is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, either versi...
[ 2, 1366, 14535, 25, 257, 1366, 12, 14535, 7822, 1262, 2446, 48426, 198, 2, 198, 2, 15069, 357, 34, 8, 1584, 11288, 36202, 49468, 198, 2, 198, 2, 770, 2393, 318, 636, 286, 1366, 14535, 13, 198, 2, 198, 2, 1366, 14535, 318, 1479, ...
3.246753
385
# Copyright 2017 Google Inc. 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 a...
[ 2, 15069, 2177, 3012, 3457, 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, 13789, ...
2.563433
4,556
import warnings import cupy from cupy_backends.cuda.api import runtime from cupy.cuda import device from cupyx.jit import _cuda_types from cupyx.jit._internal_types import BuiltinFunc from cupyx.jit._internal_types import Data from cupyx.jit._internal_types import Constant from cupyx.jit._internal_types import Range ...
[ 11748, 14601, 198, 198, 11748, 6508, 88, 198, 198, 6738, 6508, 88, 62, 1891, 2412, 13, 66, 15339, 13, 15042, 1330, 19124, 198, 6738, 6508, 88, 13, 66, 15339, 1330, 3335, 198, 6738, 6508, 28391, 13, 45051, 1330, 4808, 66, 15339, 62, ...
2.505391
742
# str1 = " hello " print(str1) print(len(str1)) # print(str1.strip()) print(len(str1.strip())) # print(str1.lstrip()) print(len(str1.lstrip())) # print(str1.rstrip()) print(len(str1.rstrip()))
[ 2, 220, 198, 2536, 16, 796, 366, 23748, 366, 198, 198, 4798, 7, 2536, 16, 8, 198, 4798, 7, 11925, 7, 2536, 16, 4008, 198, 2, 220, 198, 4798, 7, 2536, 16, 13, 36311, 28955, 198, 4798, 7, 11925, 7, 2536, 16, 13, 36311, 3419, 400...
2.095745
94
# -*- coding: utf-8 -*- from .util import rms from .util import moving_average from .util import moving_avg_conv from .util import moving_avg_fft from .util import normalize from .util import next_pow2 from .util import top_and_tail from .util import extrapolate from .util import nearest from .util import deprecated fr...
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 6738, 764, 22602, 1330, 374, 907, 198, 6738, 764, 22602, 1330, 3867, 62, 23913, 198, 6738, 764, 22602, 1330, 3867, 62, 615, 70, 62, 42946, 198, 6738, 764, 22602, 1330, ...
3.267241
116
from toontown.toonbase.ToonBaseGlobal import * from panda3d.core import * from direct.interval.IntervalGlobal import * from direct.distributed.ClockDelta import * from direct.distributed import DistributedObject from toontown.toonbase import ToontownGlobals from direct.directnotify import DirectNotifyGlobal from direct...
[ 6738, 284, 756, 593, 13, 1462, 261, 8692, 13, 51, 2049, 14881, 22289, 1330, 1635, 198, 6738, 279, 5282, 18, 67, 13, 7295, 1330, 1635, 198, 6738, 1277, 13, 3849, 2100, 13, 9492, 2100, 22289, 1330, 1635, 198, 6738, 1277, 13, 17080, 61...
3.648045
179
#!/home/a.ghaderi/.conda/envs/envjm/bin/python # Model 2 import pystan import pandas as pd import numpy as np import sys sys.path.append('../../') import utils parts = 1 data = utils.get_data() #loading dateset data = data[data['participant']==parts] mis = np.where((data['n200lat']<.101)|(data['n200lat']>....
[ 2, 48443, 11195, 14, 64, 13, 456, 5067, 72, 11757, 66, 13533, 14, 268, 14259, 14, 24330, 73, 76, 14, 8800, 14, 29412, 198, 2, 9104, 362, 198, 11748, 12972, 14192, 220, 198, 11748, 19798, 292, 355, 279, 67, 198, 11748, 299, 32152, ...
2.266884
1,229
from redis import Redis from redis import from_url from rq import push_connection, pop_connection from rq.job import Job from functools import wraps import times from flask import Blueprint from flask import current_app, url_for, abort from flask import render_template from rq import Queue, Worker from rq import cancel...
[ 6738, 2266, 271, 1330, 2297, 271, 198, 6738, 2266, 271, 1330, 422, 62, 6371, 198, 6738, 374, 80, 1330, 4574, 62, 38659, 11, 1461, 62, 38659, 198, 6738, 374, 80, 13, 21858, 1330, 15768, 198, 6738, 1257, 310, 10141, 1330, 27521, 198, ...
2.511628
688
from acquisition.step import AcquisitionStep from acquisition.stats import AcquisitionStatsDClient from acquisition.move_step import AcquisitionMoveStep from acquisition.delete_step import AcquisitionDeleteStep from acquisition.batch_step import AcquisitionBatchStep from acquisition.reinject_step import AcquisitionRein...
[ 6738, 12673, 13, 9662, 1330, 44564, 8600, 198, 6738, 12673, 13, 34242, 1330, 44564, 29668, 35, 11792, 198, 6738, 12673, 13, 21084, 62, 9662, 1330, 44564, 21774, 8600, 198, 6738, 12673, 13, 33678, 62, 9662, 1330, 44564, 38727, 8600, 198, ...
3.543779
217
# -*- coding: utf-8 -*- # Copyright (c) 2017, Frappe Technologies Pvt. Ltd. and contributors # For license information, please see license.txt from __future__ import unicode_literals from frappe.model.document import Document from frappe.contacts.address_and_contact import load_address_and_contact
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 2, 15069, 357, 66, 8, 2177, 11, 39313, 27768, 21852, 18367, 83, 13, 12052, 13, 290, 20420, 198, 2, 1114, 5964, 1321, 11, 3387, 766, 5964, 13, 14116, 198, 198, 6738, ...
3.488372
86
from torch import nn import numpy as np import base.basenetwork as BaseN from networks.cholesky import CholeskyBlock
[ 6738, 28034, 1330, 299, 77, 198, 11748, 299, 32152, 355, 45941, 198, 11748, 2779, 13, 12093, 268, 316, 1818, 355, 7308, 45, 198, 6738, 7686, 13, 354, 4316, 2584, 1330, 609, 4316, 2584, 12235, 628 ]
3.371429
35
import logging from pydantic import BaseModel, Field from typing import List from .similar import important_words from .server import app _MAX_LENGTH = 2000 logger = logging.getLogger(__name__) # Strange things happen with error handling when using alias - splitting up into two input models
[ 11748, 18931, 198, 198, 6738, 279, 5173, 5109, 1330, 7308, 17633, 11, 7663, 198, 6738, 19720, 1330, 7343, 198, 198, 6738, 764, 38610, 1330, 1593, 62, 10879, 198, 6738, 764, 15388, 1330, 598, 198, 198, 62, 22921, 62, 43, 49494, 796, 47...
3.822785
79
try: # num = 10 / 0 number = int(input("Enter a number: ")) print(number) # catch specific errors except ZeroDivisionError as err: print(err) except ValueError: print("Invalid input")
[ 198, 28311, 25, 198, 220, 220, 220, 1303, 997, 796, 838, 1220, 657, 198, 220, 220, 220, 1271, 796, 493, 7, 15414, 7203, 17469, 257, 1271, 25, 366, 4008, 198, 220, 220, 220, 3601, 7, 17618, 8, 198, 198, 2, 4929, 2176, 8563, 198, ...
2.746667
75
import numpy as np def _yz(y, z, t, yout): """ Shared implementation of peaksampl and sumpeaks. """ y = np.asarray(y) z = np.asarray(z) t = np.asarray(t) y = np.pad(y, [(0, 0)] * (y.ndim - 1) + [(1, 1)], constant_values=yout) offset = np.argmax(np.abs(y), axis=-1) ampl = np.tak...
[ 11748, 299, 32152, 355, 45941, 198, 198, 4299, 4808, 45579, 7, 88, 11, 1976, 11, 256, 11, 345, 83, 2599, 198, 220, 220, 220, 37227, 198, 220, 220, 220, 39403, 7822, 286, 25740, 321, 489, 290, 2160, 431, 4730, 13, 198, 220, 220, 22...
2.1537
1,581
# SPDX-License-Identifier: BSD-3-Clause from amaranth import * from amaranth.build import * from .common import PS8Resource, MIOSet __all__ = ( 'PMUResource', )
[ 2, 30628, 55, 12, 34156, 12, 33234, 7483, 25, 347, 10305, 12, 18, 12, 2601, 682, 198, 6738, 716, 19173, 400, 220, 220, 220, 220, 220, 220, 1330, 1635, 198, 6738, 716, 19173, 400, 13, 11249, 1330, 1635, 198, 198, 6738, 764, 11321, ...
2.328947
76
from django.test import TestCase from django.urls import reverse from rest_framework import status from Dormroom.models import Dormroom from SIFUser.mixins import AuthTestMixin from StudentVillage.models import StudentVillage from Washlist.jobs import reset_washlists from Washlist.models.Templates import TemplateList...
[ 6738, 42625, 14208, 13, 9288, 1330, 6208, 20448, 198, 6738, 42625, 14208, 13, 6371, 82, 1330, 9575, 198, 198, 6738, 1334, 62, 30604, 1330, 3722, 198, 198, 6738, 360, 579, 3823, 13, 27530, 1330, 360, 579, 3823, 198, 6738, 311, 5064, 12...
3.766667
120
from functools import partial from typing import Any, Optional, List from torchvision.prototype.transforms import ImageNetEval from torchvision.transforms.functional import InterpolationMode from ...models.mobilenetv3 import MobileNetV3, _mobilenet_v3_conf, InvertedResidualConfig from ._api import WeightsEnum, Weight...
[ 6738, 1257, 310, 10141, 1330, 13027, 198, 6738, 19720, 1330, 4377, 11, 32233, 11, 7343, 198, 198, 6738, 28034, 10178, 13, 38124, 13, 7645, 23914, 1330, 7412, 7934, 36, 2100, 198, 6738, 28034, 10178, 13, 7645, 23914, 13, 45124, 1330, 422...
2.593272
327
from django.urls import re_path from django.views.generic import TemplateView from .views import RegisterView, VerifyEmailView urlpatterns = [ re_path(r'^$', RegisterView.as_view(), name='rest_register'), re_path(r'^verify-email/$', VerifyEmailView.as_view(), name='rest_verify_email'), # This url is use...
[ 6738, 42625, 14208, 13, 6371, 82, 1330, 302, 62, 6978, 198, 6738, 42625, 14208, 13, 33571, 13, 41357, 1330, 37350, 7680, 628, 198, 6738, 764, 33571, 1330, 17296, 7680, 11, 49899, 15333, 7680, 198, 198, 6371, 33279, 82, 796, 685, 198, ...
2.99422
346
from django.test import TestCase # Create your tests here. from crawler.download import * from crawler.models import *
[ 6738, 42625, 14208, 13, 9288, 1330, 6208, 20448, 198, 198, 2, 13610, 534, 5254, 994, 13, 198, 6738, 27784, 1754, 13, 15002, 1330, 1635, 198, 6738, 27784, 1754, 13, 27530, 1330, 1635, 628, 198 ]
3.588235
34
#!/usr/bin/python3 from urllib.request import urlopen from xml.etree.ElementTree import parse # Download the RSS feed and parse it u = urlopen('http://planet.python.org/rss20.xml') doc = parse(u) # Extract and output tags of interest for item in doc.iterfind('channel/item'): title = item.findtext('title') date = i...
[ 2, 48443, 14629, 14, 8800, 14, 29412, 18, 198, 198, 6738, 2956, 297, 571, 13, 25927, 1330, 19016, 9654, 198, 6738, 35555, 13, 316, 631, 13, 20180, 27660, 1330, 21136, 198, 198, 2, 10472, 262, 25012, 3745, 290, 21136, 340, 198, 84, 7...
2.973684
152
"""dedupper_app URL Configuration The `urlpatterns` list routes URLs to views. For more information please see: https://docs.djangoproject.com/en/2.0/topics/http/urls/ Examples: Function views 1. Add an import: from my_app import views 2. Add a URL to urlpatterns: path('', views.home, name='home') Class-...
[ 37811, 9395, 45828, 62, 1324, 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, ...
2.742173
543
from . import qtlib QT_LIB = qtlib.QT_LIB if QT_LIB == 'PyQt5': from PyQt5.uic import *
[ 6738, 764, 1330, 10662, 83, 8019, 198, 48, 51, 62, 40347, 796, 10662, 83, 8019, 13, 48, 51, 62, 40347, 198, 361, 1195, 51, 62, 40347, 6624, 705, 20519, 48, 83, 20, 10354, 198, 220, 220, 220, 422, 9485, 48, 83, 20, 13, 84, 291, ...
1.916667
48
#!/usr/bin/env python # Copyright 2016 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 ...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 198, 2, 15069, 1584, 3012, 3457, 13, 198, 2, 198, 2, 49962, 739, 262, 24843, 13789, 11, 10628, 362, 13, 15, 357, 1169, 366, 34156, 15341, 198, 2, 345, 743, 407, 779, 428, 2393, 2845, 28...
3.134731
334
name=input('input your name:'); print('hello'); print(name.capitalize());
[ 3672, 28, 15414, 10786, 15414, 534, 1438, 25, 24036, 198, 4798, 10786, 31373, 24036, 198, 4798, 7, 3672, 13, 27544, 1096, 35430 ]
3.318182
22
import pyperclip import random import string
[ 11748, 12972, 525, 15036, 198, 11748, 4738, 220, 198, 11748, 4731, 628, 220, 628, 198 ]
3.4
15
import unittest import app
[ 11748, 555, 715, 395, 198, 198, 11748, 598, 198 ]
3.111111
9
#!/usr/bin/env python """ rip_annotated_junctions.py Non-reference/species verson of this script, no lift-over Rips junctions from annotation files contained in jan_24_2016_annotations.tar.gz, as described in annotation_definition.md. Junctions are dumped to stdout, which we record as annotated_junctions.tsv.gz in ru...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 198, 37811, 198, 5528, 62, 34574, 515, 62, 29741, 2733, 13, 9078, 198, 198, 15419, 12, 35790, 14, 35448, 1646, 261, 286, 428, 4226, 11, 645, 10303, 12, 2502, 198, 198, 49, 2419, 10891, 27...
1.98796
2,824
# -*- coding: utf-8 -*- import numpy as np def vmd( signal, alpha, tau, K, DC, init, tol): ''' VMD VMD VMD u omega2*pi/fs*omega Input and Parameters: signal - the time domain signal (1D) to be decomposed alpha - the balancing parameter of the data-fidelity constraint tau ...
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 198, 11748, 299, 32152, 355, 45941, 198, 198, 4299, 410, 9132, 7, 6737, 11, 17130, 11, 256, 559, 11, 509, 11, 6257, 11, 2315, 11, 284, 75, 2599, 198, 220, 220, 220, ...
2.06285
2,498
import models import stores member1 =models.Member("ahmed",33) member2 =models.Member("mohamed",30) post1=models.Post("Post1", "Content1") post2= models.Post("Post2", "Content2") post3= models.Post("Post3", "Content3") #member store member_store=stores.MemberStore() member_store.add(member1) member_store.add(member...
[ 11748, 4981, 198, 11748, 7000, 628, 198, 19522, 16, 796, 27530, 13, 27608, 7203, 993, 1150, 1600, 2091, 8, 198, 19522, 17, 796, 27530, 13, 27608, 7203, 76, 1219, 2434, 1600, 1270, 8, 198, 198, 7353, 16, 28, 27530, 13, 6307, 7203, 63...
2.696629
178
#!/usr/bin/env python ''' Author : Bhavyanshu Parasher Email : bhavyanshu@codershangout.org Description : shellfind.py is a Python command line utility which lets you look for shells on a site that the hacker must have uploaded. It considers all the shells available and tries all possibilities via dictionary match. '''...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 198, 7061, 6, 198, 13838, 1058, 16581, 2830, 504, 13415, 2547, 31218, 198, 15333, 1058, 275, 71, 2830, 504, 13415, 31, 19815, 364, 33255, 448, 13, 2398, 198, 11828, 1058, 7582, 19796, 13, 9...
3.106796
206
# A string S consisting of N characters is considered to be properly nested if any of the following conditions is true: # S is empty; # S has the form "(U)" or "[U]" or "{U}" where U is a properly nested string; S has the form "VW" where V and W are properly nested strings. # For example, the string "{[()()]}" is prope...
[ 2, 317, 4731, 311, 17747, 286, 399, 3435, 318, 3177, 284, 307, 6105, 28376, 611, 597, 286, 262, 1708, 3403, 318, 2081, 25, 198, 2, 311, 318, 6565, 26, 198, 2, 311, 468, 262, 1296, 30629, 52, 16725, 393, 12878, 52, 30866, 393, 4514...
3.585455
275
import bpy import random as rnd from collections import Counter import itertools as iter feld_von, feld_bis = -4, 4 spielfeld_von, spielfeld_bis = feld_von-6, feld_bis+6 anz = int((feld_bis-feld_von)**3*.3) spielfeld = {(rnd.randint(feld_von, feld_bis), rnd.randint( feld_von, feld_bis), rnd.randint(feld_von, fe...
[ 11748, 275, 9078, 198, 11748, 4738, 355, 374, 358, 198, 6738, 17268, 1330, 15034, 198, 11748, 340, 861, 10141, 355, 11629, 220, 628, 198, 16265, 62, 26982, 11, 730, 335, 62, 41907, 796, 532, 19, 11, 604, 198, 2777, 8207, 16265, 62, ...
2.265176
626
from dataclasses import dataclass import numpy as np import xarray as xr from power_perceiver.load_prepared_batches.data_sources import PV from power_perceiver.load_prepared_batches.data_sources.prepared_data_source import XarrayBatch
[ 6738, 4818, 330, 28958, 1330, 4818, 330, 31172, 198, 198, 11748, 299, 32152, 355, 45941, 198, 11748, 2124, 18747, 355, 2124, 81, 198, 198, 6738, 1176, 62, 525, 39729, 13, 2220, 62, 3866, 29190, 62, 8664, 2052, 13, 7890, 62, 82, 2203, ...
3.131579
76
#encoding=utf8 # import logging import time from logging.handlers import TimedRotatingFileHandler #---------------------------------------------------------------------- if __name__ == "__main__": logFilePath = "timed_test.log" logger = logging.getLogger("YouLoggerName") logger.setLevel(logging.INFO) ...
[ 2, 12685, 7656, 28, 40477, 23, 198, 2, 220, 198, 198, 11748, 18931, 198, 11748, 640, 198, 198, 6738, 18931, 13, 4993, 8116, 1330, 5045, 276, 24864, 803, 8979, 25060, 198, 198, 2, 10097, 23031, 220, 220, 198, 361, 11593, 3672, 834, 6...
2.216146
384
from operator import eq # Static fields; an enumeration of instances: PersonAction.compliment = PersonAction("person compliments") PersonAction.informing = PersonAction("person gives information about the service order") PersonAction.query = PersonAction("person wants to know about his/her order") PersonAction.angry...
[ 6738, 10088, 1330, 37430, 628, 198, 198, 2, 36125, 7032, 26, 281, 27056, 341, 286, 10245, 25, 198, 15439, 12502, 13, 23855, 3681, 796, 7755, 12502, 7203, 6259, 42025, 4943, 198, 15439, 12502, 13, 259, 15464, 796, 7755, 12502, 7203, 6259...
4.337349
83
# Tool Name :- MyServer # Author :- LordReaper # Date :- 13/11/2018 - 9/11/2019 # Powered By :- H1ckPro Software's import sys import os from time import sleep from core.system import * if len(sys.argv)>1: pass else: print ("error : invalid arguments !!") print ("use : myserver --help for more information") s...
[ 2, 16984, 6530, 1058, 12, 2011, 10697, 198, 2, 6434, 1058, 12, 4453, 3041, 2136, 198, 2, 7536, 1058, 12, 1511, 14, 1157, 14, 7908, 532, 860, 14, 1157, 14, 23344, 198, 2, 45090, 2750, 1058, 12, 367, 16, 694, 2964, 10442, 338, 198, ...
2.251212
2,269
""" test gen_epub. """ from tmx2epub.gen_epub import gen_epub def test_gen_epub2(): """ test_gen_epub2. """ from pathlib import Path infile = r"tests\2.tmx" stem = Path(infile).absolute().stem outfile = f"{Path(infile).absolute().parent / stem}.epub" assert gen_epub(infile, debug=True) == out...
[ 37811, 1332, 2429, 62, 538, 549, 13, 37227, 198, 198, 6738, 256, 36802, 17, 538, 549, 13, 5235, 62, 538, 549, 1330, 2429, 62, 538, 549, 628, 198, 4299, 1332, 62, 5235, 62, 538, 549, 17, 33529, 198, 220, 220, 220, 37227, 1332, 62, ...
2.401408
142
import json import time import random import logging import requests import os logging.basicConfig(level=logging.INFO) base_url = os.getenv('BASE_URL', 'http://localhost') + ':' + os.getenv( 'DAPR_HTTP_PORT', '3500') PUBSUB_NAME = 'order_pub_sub' TOPIC = 'orders' logging.info('Publishing to baseUR...
[ 11748, 33918, 198, 11748, 640, 198, 11748, 4738, 198, 11748, 18931, 198, 11748, 7007, 198, 11748, 28686, 198, 198, 6404, 2667, 13, 35487, 16934, 7, 5715, 28, 6404, 2667, 13, 10778, 8, 198, 198, 8692, 62, 6371, 796, 28686, 13, 1136, 24...
2.28754
313
# -*- coding: utf-8 -*- from linepy import * from datetime import datetime from time import sleep from humanfriendly import format_timespan, format_size, format_number, format_length import time, random, sys, json, codecs, threading, glob, re, string, os, requests, subprocess, six, ast, pytz, urllib, urllib.parse #===...
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 198, 6738, 1627, 9078, 1330, 1635, 198, 6738, 4818, 8079, 1330, 4818, 8079, 198, 6738, 640, 1330, 3993, 198, 6738, 1692, 13120, 1330, 5794, 62, 22355, 6839, 11, 5794, 62...
2.94186
688
def send(self, channel_id, payload): # Fanout emitter return self.connection.publish(channel_id, payload)
[ 198, 220, 220, 220, 825, 3758, 7, 944, 11, 6518, 62, 312, 11, 21437, 2599, 198, 220, 220, 220, 220, 220, 220, 220, 1303, 13836, 448, 795, 1967, 198, 220, 220, 220, 220, 220, 220, 220, 1441, 2116, 13, 38659, 13, 12984, 1836, 7, 1...
2.490196
51
#!/usr/bin/env python from btmacd.binance_fetcher import BinanceFetcher if __name__ == "__main__": main()
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 198, 198, 6738, 275, 17209, 330, 67, 13, 8800, 590, 62, 34045, 2044, 1330, 347, 14149, 37, 316, 2044, 628, 198, 198, 361, 11593, 3672, 834, 6624, 366, 834, 12417, 834, 1298, 198, 220, 220...
2.425532
47
# 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.58637
9,494
from torch import nn as nn from .base_model import BaseModel from ..nn.conv2d import DenseConv2d from ..nn.linear import DenseLinear __all__ = ["Conv2", "conv2", "Conv4", "conv4"] def conv2() -> Conv2: return Conv2() def conv4() -> Conv4: return Conv4() # TODO: define pretrain etc.
[ 6738, 28034, 1330, 299, 77, 355, 299, 77, 198, 198, 6738, 764, 8692, 62, 19849, 1330, 7308, 17633, 198, 6738, 11485, 20471, 13, 42946, 17, 67, 1330, 360, 1072, 3103, 85, 17, 67, 198, 6738, 11485, 20471, 13, 29127, 1330, 360, 1072, 1...
2.564103
117
import argparse import ConfigParser import sys, os, re import biana try: from biana import * except: sys.exit(10) import methods_dictionaries as methods_dicts def generate_network(options): """ Generates a protein-protein interaction network extracting information from BIANA. """ ...
[ 11748, 1822, 29572, 201, 198, 11748, 17056, 46677, 201, 198, 11748, 25064, 11, 28686, 11, 302, 201, 198, 201, 198, 11748, 275, 7484, 201, 198, 28311, 25, 422, 275, 7484, 1330, 1635, 201, 198, 16341, 25, 25064, 13, 37023, 7, 940, 8, ...
2.077689
11,546