content
stringlengths
1
1.05M
input_ids
listlengths
1
883k
ratio_char_token
float64
1
22.9
token_count
int64
1
883k
# -*- encoding: utf-8 from sqlalchemy.testing import eq_, is_ from sqlalchemy import schema from sqlalchemy.sql import table, column, quoted_name from sqlalchemy.dialects import mssql from sqlalchemy.dialects.mssql import mxodbc from sqlalchemy.testing import fixtures, AssertsCompiledSQL from sqlalchemy import sql from...
[ 2, 532, 9, 12, 21004, 25, 3384, 69, 12, 23, 198, 6738, 44161, 282, 26599, 13, 33407, 1330, 37430, 62, 11, 318, 62, 198, 6738, 44161, 282, 26599, 1330, 32815, 198, 6738, 44161, 282, 26599, 13, 25410, 1330, 3084, 11, 5721, 11, 10947, ...
3.261111
180
# coding=utf-8 # *** WARNING: this file was generated by pulumigen. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** import warnings import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union, overload from ... import _utilities from ... import me...
[ 2, 19617, 28, 40477, 12, 23, 198, 2, 17202, 39410, 25, 428, 2393, 373, 7560, 416, 279, 14452, 9324, 13, 17202, 198, 2, 17202, 2141, 407, 4370, 416, 1021, 4556, 345, 821, 1728, 345, 760, 644, 345, 389, 1804, 0, 17202, 198, 198, 117...
3.344828
116
#MenuTitle: Align All Components # -*- coding: utf-8 -*- __doc__=""" Fakes auto-alignment in glyphs that cannot be auto-aligned. """ import GlyphsApp thisFont = Glyphs.font # frontmost font thisFontMaster = thisFont.selectedFontMaster # active master thisFontMasterID = thisFont.selectedFontMaster.id # active master l...
[ 2, 23381, 19160, 25, 978, 570, 1439, 36109, 198, 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 834, 15390, 834, 2625, 15931, 198, 37, 1124, 8295, 12, 282, 16747, 287, 25874, 82, 326, 2314, 307, 8295, 12, 41634, 13...
3.275424
236
#!/usr/bin/env python3 """ Stanford CS106AP TK Drawing Lecture Exercises Courtesy of Nick Parlante """ import tkinter as tk # provided function, this code is complete def make_canvas(width, height): """ Creates and returns a drawing canvas of the given int size, ready for drawing. """ top = tk.T...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 18, 198, 198, 37811, 198, 32140, 3841, 9429, 15801, 2969, 198, 51, 42, 40027, 31209, 495, 1475, 2798, 2696, 198, 31825, 286, 8047, 2547, 75, 12427, 198, 37811, 198, 198, 11748, 256, 74, 384...
2.656652
233
# Only PCM 16 bit wav 44100 Hz - Use audacity or sox to convert audio files. # WAV generation # Synth # sox -n --no-show-progress -G --channels 1 -r 44100 -b 16 -t wav bip.wav synth 0.25 sine 800 # sox -n --no-show-progress -G --channels 1 -r 44100 -b 16 -t wav bop.wav synth 0.25 sine 400 # Voices # pico2wave -l ...
[ 198, 2, 5514, 4217, 44, 1467, 1643, 266, 615, 5846, 3064, 26109, 532, 5765, 2709, 4355, 393, 523, 87, 284, 10385, 6597, 3696, 13, 198, 198, 2, 370, 10116, 5270, 198, 198, 2, 16065, 400, 198, 2, 523, 87, 532, 77, 1377, 3919, 12, ...
2.345372
1,329
from .video_utils import VideoClips from .utils import list_dir from .folder import make_dataset from .vision import VisionDataset
[ 6738, 764, 15588, 62, 26791, 1330, 7623, 2601, 2419, 198, 6738, 764, 26791, 1330, 1351, 62, 15908, 198, 6738, 764, 43551, 1330, 787, 62, 19608, 292, 316, 198, 6738, 764, 10178, 1330, 19009, 27354, 292, 316, 628 ]
3.567568
37
# -*- coding: utf-8 -*- """ sphinx.builders.qthelp ~~~~~~~~~~~~~~~~~~~~~~ Build input files for the Qt collection generator. :copyright: Copyright 2007-2016 by the Sphinx team, see AUTHORS. :license: BSD, see LICENSE for details. """ import os import re import codecs import posixpath from os impo...
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 37811, 198, 220, 220, 220, 599, 20079, 87, 13, 50034, 13, 80, 1169, 34431, 198, 220, 220, 220, 220, 27156, 8728, 4907, 628, 220, 220, 220, 10934, 5128, 3696, 329, 262,...
2.478137
1,052
""" This code is used to scrape ScienceDirect of publication urls and write them to a text file in the current directory for later use. """ import selenium from selenium import webdriver import numpy as np import pandas as pd import bs4 from bs4 import BeautifulSoup import time from sklearn.utils import shuffle def s...
[ 37811, 198, 1212, 2438, 318, 973, 284, 42778, 5800, 13470, 286, 9207, 2956, 7278, 290, 3551, 606, 284, 198, 64, 2420, 2393, 287, 262, 1459, 8619, 329, 1568, 779, 13, 198, 37811, 198, 198, 11748, 384, 11925, 1505, 198, 6738, 384, 11925...
2.501552
2,899
# Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. The ASF licenses this file # to you under the Apache License, Version 2.0 (the # "License"); you may not u...
[ 2, 49962, 284, 262, 24843, 10442, 5693, 357, 1921, 37, 8, 739, 530, 198, 2, 393, 517, 18920, 5964, 11704, 13, 220, 4091, 262, 28536, 2393, 198, 2, 9387, 351, 428, 670, 329, 3224, 1321, 198, 2, 5115, 6634, 9238, 13, 220, 383, 7054,...
3.326923
572
#!/usr/bin/env python3 import json import platform if __name__ == "__main__": data = make_sys_report() with open("log_system_information.json", "w") as f: json.dump(data, f, indent=4) print(json.dumps(data, indent=4)) print("System info gathered successfully - saved as \"log_system_informat...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 18, 198, 198, 11748, 33918, 198, 11748, 3859, 628, 198, 198, 361, 11593, 3672, 834, 6624, 366, 834, 12417, 834, 1298, 198, 220, 220, 220, 1366, 796, 787, 62, 17597, 62, 13116, 3419, 198, ...
2.707317
123
""" Utils for creating xdelta patches. """ import logging from subprocess import check_output, CalledProcessError from shutil import copyfile from os import remove, path
[ 37811, 198, 18274, 4487, 329, 4441, 2124, 67, 12514, 16082, 13, 198, 37811, 198, 11748, 18931, 198, 6738, 850, 14681, 1330, 2198, 62, 22915, 11, 34099, 18709, 12331, 198, 6738, 4423, 346, 1330, 4866, 7753, 198, 6738, 28686, 1330, 4781, ...
3.909091
44
from rotor import Rotor import sys import getopt if __name__ == '__main__': main(sys.argv[1:])
[ 6738, 44883, 1330, 18481, 273, 198, 11748, 25064, 198, 11748, 651, 8738, 628, 628, 198, 361, 11593, 3672, 834, 6624, 705, 834, 12417, 834, 10354, 198, 220, 220, 220, 1388, 7, 17597, 13, 853, 85, 58, 16, 25, 12962, 198 ]
2.575
40
import time import numpy as np from scipy import sparse from numba import njit from numpy.linalg import norm from scipy.sparse.linalg import svds from andersoncd.lasso import dual_lasso def solver_group( X, y, alpha, grp_size, max_iter=10000, tol=1e-4, f_gap=10, K=5, use_acc=False, algo='bcd', ...
[ 11748, 640, 198, 11748, 299, 32152, 355, 45941, 198, 198, 6738, 629, 541, 88, 1330, 29877, 198, 6738, 997, 7012, 1330, 299, 45051, 198, 6738, 299, 32152, 13, 75, 1292, 70, 1330, 2593, 198, 6738, 629, 541, 88, 13, 82, 29572, 13, 75, ...
1.735426
2,899
""" Greedy Word Swap with Word Importance Ranking =================================================== When WIR method is set to ``unk``, this is a reimplementation of the search method from the paper: Is BERT Really Robust? A Strong Baseline for Natural Language Attack on Text Classification and Entailment by Jin et...
[ 37811, 198, 43887, 4716, 9678, 48408, 351, 9678, 17267, 590, 45407, 198, 10052, 4770, 18604, 628, 198, 2215, 370, 4663, 2446, 318, 900, 284, 7559, 2954, 15506, 11, 428, 318, 257, 21123, 32851, 286, 262, 2989, 198, 24396, 422, 262, 3348,...
3.675258
194
from lemur import database def rotate_certificate(endpoint, new_cert): """ Rotates a certificate on a given endpoint. :param endpoint: :param new_cert: :return: """ # ensure that certificate is available for rotation endpoint.source.plugin.update_endpoint(endpoint, new_cert) endpo...
[ 6738, 443, 28582, 1330, 6831, 628, 198, 4299, 23064, 62, 22583, 22460, 7, 437, 4122, 11, 649, 62, 22583, 2599, 198, 220, 220, 220, 37227, 198, 220, 220, 220, 18481, 689, 257, 10703, 319, 257, 1813, 36123, 13, 628, 220, 220, 220, 105...
2.992063
126
# coding: utf-8 # Copyright Luna Technology 2015 # Matthieu Riviere <mriviere@luna-technology.com> from __future__ import absolute_import import os from celery import Celery # Set the default Django settings module for the 'celery' program os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'pype.settings') from djan...
[ 2, 19617, 25, 3384, 69, 12, 23, 198, 198, 2, 15069, 23694, 8987, 1853, 198, 2, 45524, 22304, 34686, 13235, 1279, 76, 15104, 13235, 31, 75, 9613, 12, 45503, 13, 785, 29, 198, 198, 6738, 11593, 37443, 834, 1330, 4112, 62, 11748, 198, ...
3.09697
165
import os, sys import json # anchorroot this_file_path = os.path.split(os.path.realpath(__file__))[0] this_path = this_file_path root_path = this_file_path while this_path: if os.path.exists(os.path.join(this_path, 'sosweety_root_anchor.py')): root_path = this_path break par_path = ...
[ 11748, 28686, 11, 25064, 201, 198, 11748, 33918, 201, 198, 201, 198, 2, 220, 18021, 15763, 201, 198, 5661, 62, 7753, 62, 6978, 796, 28686, 13, 6978, 13, 35312, 7, 418, 13, 6978, 13, 5305, 6978, 7, 834, 7753, 834, 4008, 58, 15, 60,...
2.156886
835
from gtrain import Model import numpy as np import tensorflow as tf #________________________________________EXAMPLES_OF_NetForHypinv_CLASS_____________________________________________
[ 6738, 308, 27432, 1330, 9104, 198, 11748, 299, 32152, 355, 45941, 198, 11748, 11192, 273, 11125, 355, 48700, 628, 628, 198, 2, 10221, 2602, 6369, 2390, 6489, 1546, 62, 19238, 62, 7934, 1890, 49926, 16340, 62, 31631, 10221, 2602, 29343, ...
4.488372
43
from ..factory import Method
[ 6738, 11485, 69, 9548, 1330, 11789, 628 ]
4.285714
7
import numpy from keras.preprocessing import sequence from keras.preprocessing.text import Tokenizer from src.support import support
[ 11748, 299, 32152, 198, 198, 6738, 41927, 292, 13, 3866, 36948, 1330, 8379, 198, 6738, 41927, 292, 13, 3866, 36948, 13, 5239, 1330, 29130, 7509, 198, 6738, 12351, 13, 11284, 1330, 1104, 628, 198 ]
4
34
from setuptools import setup version = "1.0.0" long_description = """ PayPalHttp is a generic http client designed to be used with code-generated projects. """ setup( name="paypalhttp", long_description=long_description, version=version, author="PayPal", packages=["paypalhttp", "paypalhttp/testu...
[ 6738, 900, 37623, 10141, 1330, 9058, 198, 198, 9641, 796, 366, 16, 13, 15, 13, 15, 1, 198, 198, 6511, 62, 11213, 796, 37227, 198, 197, 19197, 11531, 43481, 318, 257, 14276, 2638, 5456, 3562, 284, 307, 973, 351, 2438, 12, 27568, 4493...
2.738318
428
# coding: utf-8 # # Copyright 2022 :Barry-Thomas-Paul: Moss # # 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 applicab...
[ 2, 19617, 25, 3384, 69, 12, 23, 198, 2, 198, 2, 15069, 33160, 1058, 33, 6532, 12, 22405, 12, 12041, 25, 19935, 198, 2, 198, 2, 49962, 739, 262, 24843, 13789, 11, 10628, 362, 13, 15, 357, 1169, 366, 34156, 4943, 198, 2, 345, 743,...
3.709091
495
# -*- coding: utf-8 -*- # Generated by Django 1.9.6 on 2016-09-27 15:35 from __future__ import unicode_literals from django.db import migrations
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 2, 2980, 515, 416, 37770, 352, 13, 24, 13, 21, 319, 1584, 12, 2931, 12, 1983, 1315, 25, 2327, 198, 6738, 11593, 37443, 834, 1330, 28000, 1098, 62, 17201, 874, 198, 1...
2.672727
55
import numpy as np from sklearn.metrics import roc_curve, auc def prec_recall_1d(nms_pos_o, nms_prob_o, gt_pos_o, durations, detection_overlap, win_size, remove_eof=True): """ nms_pos, nms_prob, and gt_pos are lists of numpy arrays specifying detection position, detection probability and GT position. ...
[ 11748, 299, 32152, 355, 45941, 198, 6738, 1341, 35720, 13, 4164, 10466, 1330, 686, 66, 62, 22019, 303, 11, 257, 1229, 628, 628, 198, 198, 4299, 3718, 62, 8344, 439, 62, 16, 67, 7, 77, 907, 62, 1930, 62, 78, 11, 299, 907, 62, 167...
2.372124
1,521
# 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. #----------------------------------------------------------------------...
[ 2, 19617, 25, 3384, 69, 12, 23, 198, 198, 2, 10097, 45537, 198, 2, 15069, 357, 66, 8, 5413, 10501, 13, 1439, 2489, 10395, 13, 198, 2, 49962, 739, 262, 17168, 13789, 13, 4091, 13789, 13, 14116, 287, 262, 1628, 6808, 329, 198, 2, ...
4.837209
129
import gym import gym.spaces as spaces import sys import socket from _thread import * import os import numpy as np import pandas as pd import math as m import time import random if __name__ == '__main__': # Construct MAIN SERVER object env = NetEnv() #WALK for i in range(100000): env.step() print('Done') ...
[ 11748, 11550, 198, 11748, 11550, 13, 2777, 2114, 355, 9029, 198, 11748, 25064, 198, 198, 11748, 17802, 198, 198, 6738, 4808, 16663, 1330, 1635, 198, 11748, 28686, 198, 198, 11748, 299, 32152, 355, 45941, 198, 11748, 19798, 292, 355, 279, ...
2.866071
112
# -*- coding: utf-8 -*- # @File : session.py # @Author : zhkuo # @Time : 2021/1/3 9:12 # @Desc : from sqlalchemy import create_engine # from sqlalchemy.orm import scoped_session from sqlalchemy.orm import sessionmaker from app.core.config import settings """ : https://www.osgeo.cn/sqlalchemy/orm/session_basi...
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 2, 2488, 8979, 220, 220, 1058, 6246, 13, 9078, 198, 2, 2488, 13838, 1058, 1976, 71, 74, 20895, 198, 2, 2488, 7575, 220, 220, 1058, 33448, 14, 16, 14, 18, 860, 25, ...
2.567901
324
from pathlib import Path import pickle import tkinter as tk import tkinter.filedialog def open_dialog(**opt): """Parameters ---------- Options will be passed to `tkinter.filedialog.askopenfilename`. See also tkinter's document. Followings are example of frequently used options. - filetypes=[(l...
[ 6738, 3108, 8019, 1330, 10644, 198, 11748, 2298, 293, 198, 11748, 256, 74, 3849, 355, 256, 74, 198, 11748, 256, 74, 3849, 13, 69, 3902, 498, 519, 628, 198, 4299, 1280, 62, 38969, 519, 7, 1174, 8738, 2599, 198, 220, 220, 220, 37227, ...
2.522059
952
# Copyright 2016 EMC Corporation # # 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, 220, 220, 220, 15069, 1584, 412, 9655, 10501, 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, 428, 2393, 2845, 287, ...
3.434579
214
import matplotlib.pyplot as plt import networkx as nx from networkx.drawing.nx_agraph import graphviz_layout
[ 11748, 2603, 29487, 8019, 13, 9078, 29487, 355, 458, 83, 198, 11748, 3127, 87, 355, 299, 87, 198, 6738, 3127, 87, 13, 19334, 278, 13, 77, 87, 62, 6111, 1330, 4823, 85, 528, 62, 39786, 628, 198 ]
3
37
import setuptools setuptools.setup( name = 'sili-canvas', version = '0.0.1', license = 'MIT', url = 'https://github.com/SilicalNZ/canvas', description = 'A series of easy to use classes to perform complex 2D array transformations', long_description = '', author = 'SilicalNZ', packages ...
[ 11748, 900, 37623, 10141, 198, 198, 2617, 37623, 10141, 13, 40406, 7, 198, 220, 220, 220, 1438, 796, 705, 82, 2403, 12, 5171, 11017, 3256, 198, 220, 220, 220, 2196, 796, 705, 15, 13, 15, 13, 16, 3256, 198, 220, 220, 220, 5964, 796...
2.725926
135
# Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. The ASF licenses this file # to you under the Apache License, Version 2.0 (the # "License"); you may not u...
[ 2, 49962, 284, 262, 24843, 10442, 5693, 357, 1921, 37, 8, 739, 530, 198, 2, 393, 517, 18920, 5964, 11704, 13, 220, 4091, 262, 28536, 2393, 198, 2, 9387, 351, 428, 670, 329, 3224, 1321, 198, 2, 5115, 6634, 9238, 13, 220, 383, 7054,...
3.70977
348
# coding:utf-8 from typing import Dict, List, Optional, cast, TYPE_CHECKING from .chord_util import ChordUtil, InternalControlFlowException, NodeIsDownedExceptiopn if TYPE_CHECKING: from .chord_node import ChordNode
[ 2, 19617, 25, 40477, 12, 23, 198, 198, 6738, 19720, 1330, 360, 713, 11, 7343, 11, 32233, 11, 3350, 11, 41876, 62, 50084, 2751, 198, 198, 6738, 764, 354, 585, 62, 22602, 1330, 609, 585, 18274, 346, 11, 18628, 15988, 37535, 16922, 11,...
3.054795
73
#!/usr/bin/env python import pandas as pd from pathlib import Path from torch.utils.data import DataLoader
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 198, 198, 11748, 19798, 292, 355, 279, 67, 198, 198, 6738, 3108, 8019, 1330, 10644, 198, 6738, 28034, 13, 26791, 13, 7890, 1330, 6060, 17401, 628 ]
3.235294
34
from AudioLib.AudioEffect import AudioEffect
[ 6738, 13491, 25835, 13, 21206, 18610, 1330, 13491, 18610, 198 ]
4.5
10
#!/usr/bin/env python from __future__ import print_function import logging import os
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 198, 6738, 11593, 37443, 834, 1330, 3601, 62, 8818, 198, 11748, 18931, 198, 11748, 28686, 628 ]
3.583333
24
# Copyright 2021 Huawei Technologies Co., Ltd # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to...
[ 2, 15069, 33448, 43208, 21852, 1766, 1539, 12052, 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...
4.112195
205
import numpy as np from blmath.numerics import vx def apex(points, axis): ''' Find the most extreme point in the direction of the axis provided. axis: A vector, which is an 3x1 np.array. ''' coords_on_axis = points.dot(axis) return points[np.argmax(coords_on_axis)] def inflection_points(poin...
[ 11748, 299, 32152, 355, 45941, 198, 6738, 698, 11018, 13, 77, 6975, 873, 1330, 410, 87, 198, 198, 4299, 40167, 7, 13033, 11, 16488, 2599, 198, 220, 220, 220, 705, 7061, 198, 220, 220, 220, 9938, 262, 749, 3257, 966, 287, 262, 4571, ...
3.005674
705
import os import discode TOKEN = os.environ.get("TOKEN") # The token from the developer portal. client = discode.Client(token=TOKEN, intents=discode.Intents.default()) # The ready listener gets fired when the bot/client is completely ready for use. # The message_create listener is fired whenever a message is s...
[ 11748, 28686, 198, 198, 11748, 1221, 1098, 198, 198, 10468, 43959, 796, 28686, 13, 268, 2268, 13, 1136, 7203, 10468, 43959, 4943, 198, 2, 383, 11241, 422, 262, 8517, 17898, 13, 198, 198, 16366, 796, 1221, 1098, 13, 11792, 7, 30001, 28...
3.563107
103
from .activations import * from .adaptive_avgmax_pool import \ adaptive_avgmax_pool2d, select_adaptive_pool2d, AdaptiveAvgMaxPool2d, SelectAdaptivePool2d from .blur_pool import BlurPool2d from .classifier import ClassifierHead, create_classifier from .cond_conv2d import CondConv2d, get_condconv_initializer from .co...
[ 6738, 764, 15791, 602, 1330, 1635, 198, 6738, 764, 42552, 425, 62, 615, 70, 9806, 62, 7742, 1330, 3467, 198, 220, 220, 220, 29605, 62, 615, 70, 9806, 62, 7742, 17, 67, 11, 2922, 62, 42552, 425, 62, 7742, 17, 67, 11, 30019, 425, ...
2.923784
761
""" Name: Bondi References: Bondi, Proc. Roy. Soc. Lond. A, v282, p303, (1964) Coordinates: Spherical Symmetry: Spherical Notes: Outgoing Coordinates """ from sympy import Function, diag, sin, symbols coords = symbols("r v theta phi", real=True) variables = () functions = symbols("C M", cls=Function) r, v, th, ph = co...
[ 37811, 198, 5376, 25, 12812, 72, 198, 19927, 25, 12812, 72, 11, 31345, 13, 9817, 13, 3345, 13, 406, 623, 13, 317, 11, 410, 32568, 11, 279, 22572, 11, 357, 46477, 8, 198, 7222, 585, 17540, 25, 1338, 37910, 198, 13940, 3020, 11973, ...
2.412371
194
from __future__ import unicode_literals import json from django.apps import apps from django.core.urlresolvers import NoReverseMatch, reverse from django.http import Http404, HttpRequest, QueryDict from django.test import TestCase, override_settings from django.utils import timezone from wagtail.wagtailcore.models i...
[ 6738, 11593, 37443, 834, 1330, 28000, 1098, 62, 17201, 874, 198, 198, 11748, 33918, 198, 198, 6738, 42625, 14208, 13, 18211, 1330, 6725, 198, 6738, 42625, 14208, 13, 7295, 13, 6371, 411, 349, 690, 1330, 1400, 49, 964, 325, 23850, 11, ...
2.763804
326
import os from setuptools import setup VERSION = "0.2" setup( name="instapaper-to-sqlite", description="Save data from Instapaper to a SQLite database", long_description=get_long_description(), long_description_content_type="text/markdown", author="Benjamin Congdon", author_email="me@bcon.g...
[ 11748, 28686, 198, 198, 6738, 900, 37623, 10141, 1330, 9058, 198, 198, 43717, 796, 366, 15, 13, 17, 1, 628, 198, 198, 40406, 7, 198, 220, 220, 220, 1438, 2625, 8625, 499, 2136, 12, 1462, 12, 25410, 578, 1600, 198, 220, 220, 220, 6...
2.408621
580
from typing import List from pybm import PybmConfig from pybm.command import CLICommand from pybm.config import get_reporter_class from pybm.exceptions import PybmError from pybm.reporters import BaseReporter from pybm.status_codes import ERROR, SUCCESS from pybm.util.path import get_subdirs
[ 6738, 19720, 1330, 7343, 198, 198, 6738, 12972, 20475, 1330, 9485, 20475, 16934, 198, 6738, 12972, 20475, 13, 21812, 1330, 7852, 2149, 2002, 392, 198, 6738, 12972, 20475, 13, 11250, 1330, 651, 62, 260, 26634, 62, 4871, 198, 6738, 12972, ...
3.314607
89
""" For a given detector get a WIMPrate for a given detector (not taking into account any detector effects """ import numericalunits as nu import wimprates as wr import dddm export, __all__ = dddm.exporter()
[ 37811, 198, 1890, 257, 1813, 31029, 651, 257, 370, 3955, 47, 4873, 329, 257, 1813, 31029, 357, 1662, 2263, 656, 198, 23317, 597, 31029, 3048, 198, 37811, 198, 198, 11748, 29052, 41667, 355, 14364, 198, 11748, 266, 320, 1050, 689, 355, ...
3.349206
63
#!/usr/bin/env python3 import torch from torch import optim import torch.nn.functional as F import argparse from sklearn.metrics import mean_squared_error import numpy as np import json from . import utils from .model_utils import get_pi_exact_vec, rnn_vae_forward_one_stage, rnn_vae_forward_two_stage
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 18, 198, 198, 11748, 28034, 198, 6738, 28034, 1330, 6436, 198, 11748, 28034, 13, 20471, 13, 45124, 355, 376, 198, 198, 11748, 1822, 29572, 198, 6738, 1341, 35720, 13, 4164, 10466, 1330, 1612,...
3.039216
102
#! -*- coding: utf-8 -*- from setuptools import setup, find_packages setup( name='bert4keras', version='0.8.4', description='an elegant bert4keras', long_description='bert4keras: https://github.com/bojone/bert4keras', license='Apache License 2.0', url='https://github.com/bojone/bert4keras', ...
[ 2, 0, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 198, 6738, 900, 37623, 10141, 1330, 9058, 11, 1064, 62, 43789, 198, 198, 40406, 7, 198, 220, 220, 220, 1438, 11639, 4835, 19, 6122, 292, 3256, 198, 220, 220, 220, ...
2.350785
191
# import cProfile # import pstats # import io from picture import * # pr = cProfile.Profile() # pr.enable() if __name__ == '__main__': p = Picture() p.genPerms() p.detuctAll() p.backtrackLoop() p.saveOtput() # pr.disable() # s = io.StringIO() # sortby = 'cumulative' # ps = pstats...
[ 2, 1330, 269, 37046, 198, 2, 1330, 279, 34242, 198, 2, 1330, 33245, 198, 6738, 4286, 1330, 1635, 198, 198, 2, 778, 796, 269, 37046, 13, 37046, 3419, 198, 2, 778, 13, 21633, 3419, 628, 198, 198, 361, 11593, 3672, 834, 6624, 705, 83...
2.297753
178
# imports import os import json import subprocess abs_join = lambda p1, p2 : os.path.abspath(os.path.join(p1, p2)) # constants SCRIPT_DIR = os.path.abspath(os.path.dirname(__file__)) SEED_RELPATH = "./strprose/example_files/_seeds.json" SEED_FULLPATH = abs_join(SCRIPT_DIR, SEED_RELPATH) SEED_INFO = None with open(SEE...
[ 2, 17944, 198, 11748, 28686, 198, 11748, 33918, 198, 11748, 850, 14681, 198, 8937, 62, 22179, 796, 37456, 279, 16, 11, 279, 17, 1058, 28686, 13, 6978, 13, 397, 2777, 776, 7, 418, 13, 6978, 13, 22179, 7, 79, 16, 11, 279, 17, 4008, ...
2.275862
406
from __future__ import division from mmtbx.tls import tools import math import time pdb_str_1 = """ CRYST1 10.000 10.000 10.000 90.00 90.00 90.00 P1 ATOM 1 CA THR A 6 0.000 0.000 0.000 1.00 0.00 C ATOM 1 CA THR B 6 3.000 0.000 0.000 1.00 0.00 C """...
[ 6738, 11593, 37443, 834, 1330, 7297, 198, 6738, 8085, 83, 65, 87, 13, 83, 7278, 1330, 4899, 198, 11748, 10688, 198, 11748, 640, 198, 198, 79, 9945, 62, 2536, 62, 16, 796, 37227, 198, 9419, 56, 2257, 16, 220, 220, 838, 13, 830, 220...
1.629787
705
import sys from django.urls import resolve
[ 11748, 25064, 198, 6738, 42625, 14208, 13, 6371, 82, 1330, 10568, 628 ]
3.666667
12
""" Training script for steps_with_decay policy""" import argparse import os import sys import pickle import resource import traceback import logging from collections import defaultdict import numpy as np import yaml import torch from torch.autograd import Variable import torch.nn as nn import cv2 cv2.setNumThreads(0...
[ 37811, 13614, 4226, 329, 4831, 62, 4480, 62, 12501, 323, 2450, 37811, 198, 198, 11748, 1822, 29572, 198, 11748, 28686, 198, 11748, 25064, 198, 11748, 2298, 293, 198, 11748, 8271, 198, 11748, 12854, 1891, 198, 11748, 18931, 198, 6738, 1726...
2.19221
8,293
# Copyright (c) 2019-2020 hippo91 <guillaume.peillex@gmail.com> # Copyright (c) 2020 Claudiu Popa <pcmanticore@gmail.com> # Copyright (c) 2021 Pierre Sassoulas <pierre.sassoulas@gmail.com> # Copyright (c) 2021 Marc Mueller <30130371+cdce8p@users.noreply.github.com> # Licensed under the LGPL: https://www.gnu.org/licens...
[ 2, 15069, 357, 66, 8, 13130, 12, 42334, 18568, 78, 6420, 1279, 5162, 5049, 2454, 13, 431, 346, 2588, 31, 14816, 13, 785, 29, 198, 2, 15069, 357, 66, 8, 12131, 36303, 16115, 8099, 64, 1279, 79, 11215, 5109, 382, 31, 14816, 13, 785,...
2.390202
1,735
input = """ 2 18 3 0 3 19 20 21 1 1 1 0 18 2 23 3 0 3 19 24 25 1 1 2 1 21 23 3 5 21 19 20 24 25 0 0 6 0 5 5 21 19 20 24 25 1 1 1 1 1 0 21 a 19 b 20 c 24 d 25 e 28 f 0 B+ 0 B- 1 0 1 """ output = """ COST 1@1 """
[ 15414, 796, 37227, 198, 17, 1248, 513, 657, 513, 678, 1160, 2310, 198, 16, 352, 352, 657, 1248, 198, 17, 2242, 513, 657, 513, 678, 1987, 1679, 198, 16, 352, 362, 352, 2310, 2242, 198, 18, 642, 2310, 678, 1160, 1987, 1679, 657, 657...
1.918182
110
import random names_string = input(" . (,) .\n") names = names_string.split(",") print(names) n = random.randint(0, len(names)) print(f" {names[n]} !")
[ 11748, 4738, 198, 198, 14933, 62, 8841, 796, 5128, 7203, 220, 220, 220, 764, 357, 35751, 220, 764, 59, 77, 4943, 198, 14933, 796, 3891, 62, 8841, 13, 35312, 7, 2430, 8, 198, 198, 4798, 7, 14933, 8, 198, 198, 77, 796, 4738, 13, 2...
2.352941
68
import sys import typing import numpy as np main()
[ 11748, 25064, 201, 198, 11748, 19720, 201, 198, 201, 198, 11748, 299, 32152, 355, 45941, 201, 198, 201, 198, 201, 198, 201, 198, 201, 198, 12417, 3419, 201, 198 ]
2.241379
29
import network mqtt = network.mqtt("loboris", "mqtt://loboris.eu", user="wifimcu", password="wifimculobo", cleansession=True, connected_cb=conncb, disconnected_cb=disconncb, subscribed_cb=subscb, published_cb=pubcb, data_cb=datacb) # secure connection requires more memory and may not work # mqtts = network.mqtt("ecli...
[ 11748, 3127, 628, 198, 76, 80, 926, 796, 3127, 13, 76, 80, 926, 7203, 75, 672, 37279, 1600, 366, 76, 80, 926, 1378, 75, 672, 37279, 13, 12496, 1600, 2836, 2625, 86, 361, 320, 27399, 1600, 9206, 2625, 86, 361, 320, 3129, 20391, 160...
2.663774
922
# Generated by Django 2.2.8 on 2019-12-14 19:07 from django.db import migrations, models
[ 2, 2980, 515, 416, 37770, 362, 13, 17, 13, 23, 319, 13130, 12, 1065, 12, 1415, 678, 25, 2998, 198, 198, 6738, 42625, 14208, 13, 9945, 1330, 15720, 602, 11, 4981, 628 ]
2.84375
32
# flake8: NOQA E501 import ast import random from textwrap import dedent from typing import List from main.exercises import generate_list, generate_string from main.text import ExerciseStep, MessageStep, Page, Step, VerbatimStep, search_ast from main.utils import returns_stdout
[ 2, 781, 539, 23, 25, 8005, 48, 32, 412, 33548, 198, 11748, 6468, 198, 11748, 4738, 198, 6738, 2420, 37150, 1330, 4648, 298, 198, 6738, 19720, 1330, 7343, 198, 198, 6738, 1388, 13, 1069, 2798, 2696, 1330, 7716, 62, 4868, 11, 7716, 62...
3.46988
83
import time import redis import json import argparse """ Follows the StackExchange best practice for creating a work queue. Basically push a task and publish a message that a task is there.""" if __name__ == "__main__": parser = argparse.ArgumentParser() parser.add_argument("-q", "--queue", help="The q...
[ 11748, 640, 198, 11748, 2266, 271, 198, 11748, 33918, 198, 11748, 1822, 29572, 628, 198, 37811, 7281, 82, 262, 23881, 3109, 3803, 1266, 3357, 329, 4441, 257, 670, 16834, 13, 198, 220, 220, 220, 20759, 4574, 257, 4876, 290, 7715, 257, ...
2.398707
464
from __future__ import absolute_import, unicode_literals import os from celery import Celery # set the default Django settings module for the 'celery' program. os.environ.setdefault("DJANGO_SETTINGS_MODULE", "app.settings") app = Celery("app") # Using a string here means the worker doesn't have to serialize # the ...
[ 6738, 11593, 37443, 834, 1330, 4112, 62, 11748, 11, 28000, 1098, 62, 17201, 874, 198, 198, 11748, 28686, 198, 198, 6738, 18725, 1924, 1330, 15248, 1924, 198, 198, 2, 900, 262, 4277, 37770, 6460, 8265, 329, 262, 705, 7015, 88, 6, 1430,...
3.166667
252
from garage.core.serializable import Serializable from garage.core.parameterized import Parameterized # noqa: I100 __all__ = ['Serializable', 'Parameterized']
[ 6738, 15591, 13, 7295, 13, 46911, 13821, 1330, 23283, 13821, 198, 6738, 15591, 13, 7295, 13, 17143, 2357, 1143, 1330, 25139, 2357, 1143, 220, 1303, 645, 20402, 25, 314, 3064, 198, 198, 834, 439, 834, 796, 37250, 32634, 13821, 3256, 705,...
3.577778
45
from django.forms import forms
[ 6738, 42625, 14208, 13, 23914, 1330, 5107, 628, 628, 198 ]
3.5
10
if __name__ == "__main__": task = TaskB() task.run()
[ 198, 361, 11593, 3672, 834, 6624, 366, 834, 12417, 834, 1298, 198, 220, 220, 220, 4876, 796, 15941, 33, 3419, 198, 220, 220, 220, 4876, 13, 5143, 3419 ]
2.178571
28
#!/usr/bin/python import socket,sys,os TCP_IP = '127.0.0.1' TCP_PORT = 6262 BUFFER_SIZE = 1024 s= socket.socket(socket.AF_INET,socket.SOCK_STREAM) s.bind((TCP_IP,TCP_PORT)) s.listen(5) conn, addr = s.accept() print('Connection entrante :', addr) data = conn.recv(BUFFER_SIZE) if data == "m" : os.popen("chmod...
[ 2, 48443, 14629, 14, 8800, 14, 29412, 628, 198, 198, 11748, 17802, 11, 17597, 11, 418, 198, 198, 4825, 47, 62, 4061, 220, 796, 705, 16799, 13, 15, 13, 15, 13, 16, 6, 198, 4825, 47, 62, 15490, 796, 718, 29119, 198, 19499, 45746, ...
2.15261
249
from rest_framework_jwt.utils import jwt_decode_handler from users.models import User from users.serializers import UserSerializer
[ 6738, 1334, 62, 30604, 62, 73, 46569, 13, 26791, 1330, 474, 46569, 62, 12501, 1098, 62, 30281, 198, 198, 6738, 2985, 13, 27530, 1330, 11787, 198, 6738, 2985, 13, 46911, 11341, 1330, 11787, 32634, 7509, 628, 628, 198 ]
3.578947
38
# Copyright (c) 2020 Xilinx, Inc. # 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 of conditions and the f...
[ 2, 15069, 357, 66, 8, 12131, 1395, 346, 28413, 11, 3457, 13, 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, 26...
2.569754
5,971
from tkinter import * from tkcalendar import Calendar from datetime import datetime from datetime import date import tkinter as tk from tkinter import ttk from tkinter.messagebox import askyesno import re import sqlite3 import tkinter.messagebox import pandas as pd import pandas as pd import datetime ...
[ 6738, 256, 74, 3849, 1330, 1635, 201, 198, 6738, 256, 74, 9948, 9239, 1330, 26506, 201, 198, 6738, 4818, 8079, 1330, 4818, 8079, 201, 198, 6738, 4818, 8079, 1330, 3128, 201, 198, 201, 198, 11748, 256, 74, 3849, 355, 256, 74, 201, 19...
2.151943
566
import os import tempfile import unittest from datetime import datetime from google.protobuf.json_format import ParseDict from ...monitoring.MonitoringDatabase import MonitoringDatabase from ...protobuf.generated.computer_info_pb2 import ADD, UpdateEvent from ...protobuf.generated.monitoring_service_pb2 import DataUp...
[ 11748, 28686, 198, 11748, 20218, 7753, 198, 11748, 555, 715, 395, 198, 6738, 4818, 8079, 1330, 4818, 8079, 198, 198, 6738, 23645, 13, 11235, 672, 3046, 13, 17752, 62, 18982, 1330, 2547, 325, 35, 713, 198, 198, 6738, 2644, 41143, 278, ...
3.759259
108
# Copyright (c) 2020. Hanchen Wang, hw501@cam.ac.uk import os, open3d, numpy as np File_ = open('ModelNet_flist_short.txt', 'w') if __name__ == "__main__": root_dir = "../data/ModelNet_subset/" for root, dirs, files in os.walk(root_dir, topdown=False): for file in files: if '.ply' in fi...
[ 2, 220, 15069, 357, 66, 8, 12131, 13, 367, 1192, 831, 15233, 11, 289, 86, 33548, 31, 20991, 13, 330, 13, 2724, 198, 198, 11748, 28686, 11, 1280, 18, 67, 11, 299, 32152, 355, 45941, 198, 198, 8979, 62, 796, 1280, 10786, 17633, 7934...
1.987952
498
# coding: utf-8 # Copyright (c) Pymatgen Development Team. # Distributed under the terms of the MIT License. from __future__ import division, unicode_literals """ This module is used for analysis of materials with potential application as intercalation batteries. """ __author__ = "Anubhav Jain, Shyue Ping Ong" __co...
[ 2, 19617, 25, 3384, 69, 12, 23, 198, 2, 15069, 357, 66, 8, 350, 4948, 265, 5235, 7712, 4816, 13, 198, 2, 4307, 6169, 739, 262, 2846, 286, 262, 17168, 13789, 13, 198, 198, 6738, 11593, 37443, 834, 1330, 7297, 11, 28000, 1098, 62, ...
2.244679
5,027
########################################################################## # # Copyright (c) 2013, John Haddon. All rights reserved. # Copyright (c) 2013, Image Engine Design Inc. All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that ...
[ 29113, 29113, 7804, 2235, 198, 2, 198, 2, 220, 15069, 357, 66, 8, 2211, 11, 1757, 367, 48078, 13, 1439, 2489, 10395, 13, 198, 2, 220, 15069, 357, 66, 8, 2211, 11, 7412, 7117, 8495, 3457, 13, 1439, 2489, 10395, 13, 198, 2, 198, 2...
3.471318
645
# Generated by Django 3.2 on 2021-04-15 18:05 from django.conf import settings from django.db import migrations, models import django.db.models.deletion
[ 2, 2980, 515, 416, 37770, 513, 13, 17, 319, 33448, 12, 3023, 12, 1314, 1248, 25, 2713, 198, 198, 6738, 42625, 14208, 13, 10414, 1330, 6460, 198, 6738, 42625, 14208, 13, 9945, 1330, 15720, 602, 11, 4981, 198, 11748, 42625, 14208, 13, ...
3.1
50
#!/usr/bin/env python # Copyright 2016 Andy Chu. 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 """ cmd_exec_test.py: Test...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 198, 2, 15069, 1584, 12382, 25459, 13, 1439, 2489, 10395, 13, 198, 2, 49962, 739, 262, 24843, 13789, 11, 10628, 362, 13, 15, 357, 1169, 366, 34156, 15341, 198, 2, 345, 743, 407, 779, 428,...
2.950249
201
# Generated by Django 2.0.8 on 2019-05-29 16:00 from django.db import migrations, models
[ 2, 2980, 515, 416, 37770, 362, 13, 15, 13, 23, 319, 13130, 12, 2713, 12, 1959, 1467, 25, 405, 198, 198, 6738, 42625, 14208, 13, 9945, 1330, 15720, 602, 11, 4981, 628 ]
2.84375
32
#!/usr/bin/env python from .api import capture __version__ = "0.0.7" __all__ = ("capture",)
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 198, 6738, 764, 15042, 1330, 8006, 198, 198, 834, 9641, 834, 796, 366, 15, 13, 15, 13, 22, 1, 198, 834, 439, 834, 796, 5855, 27144, 495, 1600, 8, 198 ]
2.447368
38
import numpy as np import torch import torch.nn.functional as F from codes.d_agents.a0_base_agent import float32_preprocessor from codes.d_agents.on_policy.on_policy_agent import OnPolicyAgent from codes.e_utils import rl_utils, replay_buffer from codes.d_agents.actions import ProbabilityActionSelector from codes.e_ut...
[ 11748, 299, 32152, 355, 45941, 198, 11748, 28034, 198, 11748, 28034, 13, 20471, 13, 45124, 355, 376, 198, 198, 6738, 12416, 13, 67, 62, 49638, 13, 64, 15, 62, 8692, 62, 25781, 1330, 12178, 2624, 62, 3866, 41341, 198, 6738, 12416, 13, ...
3.425926
108
from discord.ext.commands import Bot, Cog
[ 6738, 36446, 13, 2302, 13, 9503, 1746, 1330, 18579, 11, 327, 519 ]
3.416667
12
from django import forms from django.core.mail import send_mail from django.conf import settings
[ 6738, 42625, 14208, 1330, 5107, 198, 6738, 42625, 14208, 13, 7295, 13, 4529, 1330, 3758, 62, 4529, 198, 6738, 42625, 14208, 13, 10414, 1330, 6460, 628 ]
3.769231
26
import gi gi.require_version('Gtk', '3.0') from gi.repository import Gio, Gtk, Gdk
[ 11748, 308, 72, 198, 12397, 13, 46115, 62, 9641, 10786, 38, 30488, 3256, 705, 18, 13, 15, 11537, 198, 6738, 308, 72, 13, 260, 1930, 37765, 1330, 402, 952, 11, 402, 30488, 11, 402, 34388, 198 ]
2.305556
36
import random if __name__ == '__main__': game()
[ 11748, 4738, 628, 198, 198, 361, 11593, 3672, 834, 6624, 705, 834, 12417, 834, 10354, 198, 220, 220, 220, 983, 3419, 198 ]
2.5
22
from enum import Enum
[ 6738, 33829, 1330, 2039, 388, 628, 628 ]
3.571429
7
# Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. The ASF licenses this file # to you under the Apache License, Version 2.0 (the # "License"); you may not u...
[ 2, 49962, 284, 262, 24843, 10442, 5693, 357, 1921, 37, 8, 739, 530, 198, 2, 393, 517, 18920, 5964, 11704, 13, 220, 4091, 262, 28536, 2393, 198, 2, 9387, 351, 428, 670, 329, 3224, 1321, 198, 2, 5115, 6634, 9238, 13, 220, 383, 7054,...
3.671088
377
"""Test OpenZWave Websocket API.""" from unittest.mock import patch from openzwavemqtt.const import ( ATTR_CODE_SLOT, ATTR_LABEL, ATTR_OPTIONS, ATTR_POSITION, ATTR_VALUE, ValueType, ) from openpeerpower.components.ozw.const import ATTR_CONFIG_PARAMETER from openpeerpower.components.ozw.lock im...
[ 37811, 14402, 4946, 57, 39709, 47736, 5459, 7824, 526, 15931, 198, 6738, 555, 715, 395, 13, 76, 735, 1330, 8529, 198, 198, 6738, 1280, 89, 19204, 76, 80, 926, 13, 9979, 1330, 357, 198, 220, 220, 220, 5161, 5446, 62, 34, 16820, 62, ...
2.006211
483
import pytest from flask import Markup from notifications_utils.formatters import ( unlink_govuk_escaped, notify_email_markdown, notify_letter_preview_markdown, notify_plain_text_email_markdown, sms_encode, formatted_list, strip_dvla_markup, strip_pipes, escape_html, remove_whit...
[ 11748, 12972, 9288, 198, 6738, 42903, 1330, 2940, 929, 198, 198, 6738, 19605, 62, 26791, 13, 18982, 1010, 1330, 357, 198, 220, 220, 220, 555, 8726, 62, 9567, 2724, 62, 3798, 5813, 11, 198, 220, 220, 220, 19361, 62, 12888, 62, 4102, ...
2.45614
1,140
banner_text("*") banner_text("Always look on the bright side of life...") banner_text("If life seems jolly rotten,") banner_text("There's something you've forgotten!") banner_text("And that's to laugh and smile and dance and sing,") banner_text(" ") banner_text("When you're feeling in the dumps,") banner_text("Don't ...
[ 198, 198, 3820, 1008, 62, 5239, 7203, 9, 4943, 198, 3820, 1008, 62, 5239, 7203, 30374, 804, 319, 262, 6016, 1735, 286, 1204, 9313, 8, 198, 3820, 1008, 62, 5239, 7203, 1532, 1204, 2331, 474, 5098, 36371, 553, 8, 198, 3820, 1008, 62, ...
2.980392
204
from .provider import Provider from .adapter import Adapter from .device import Device from .gatt import GattService, GattCharacteristic, GattDescriptor
[ 6738, 764, 15234, 1304, 1330, 32549, 198, 6738, 764, 324, 3429, 1330, 43721, 198, 6738, 764, 25202, 1330, 16232, 198, 6738, 764, 70, 1078, 1330, 402, 1078, 16177, 11, 402, 1078, 27275, 2569, 11, 402, 1078, 24564, 1968, 273, 198 ]
3.825
40
from axju.generic.basic import BasicWorker from axju.generic.execution import ExecutionWorker from axju.generic.template import TemplateWorker
[ 6738, 7877, 14396, 13, 41357, 13, 35487, 1330, 14392, 12468, 263, 198, 6738, 7877, 14396, 13, 41357, 13, 18558, 1009, 1330, 37497, 12468, 263, 198, 6738, 7877, 14396, 13, 41357, 13, 28243, 1330, 37350, 12468, 263, 198 ]
3.864865
37
#!/usr/bin/env python # Copyright European Organization for Nuclear Research (CERN) # # 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 # # Authors: ...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 198, 198, 2, 15069, 3427, 12275, 329, 19229, 4992, 357, 34, 28778, 8, 198, 2, 198, 2, 49962, 739, 262, 24843, 13789, 11, 10628, 362, 13, 15, 357, 1169, 366, 34156, 15341, 198, 2, 921, 7...
2.286301
1,460
# +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ # Esse arquivo possui algumas modificaes em relao ao arquivo apresentado no vdeo do YouTube # No deixe de assistir o vdeo e estudar pela documentao ofical Dash # +++...
[ 2, 1343, 44627, 44627, 44627, 44627, 44627, 44627, 44627, 198, 2, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 8678, 325, 610, 421, 23593, 1184, 9019, 435, 70, 388, 292, 953, 811, 64, 274, 795, 823, 5488, ...
2.608016
1,023
import re import datetime from javaccflab.lexer import parse from javaccflab.java_token import TokenType, Token, update_token_value
[ 11748, 302, 198, 11748, 4818, 8079, 198, 6738, 474, 615, 4134, 2704, 397, 13, 2588, 263, 1330, 21136, 198, 6738, 474, 615, 4134, 2704, 397, 13, 12355, 62, 30001, 1330, 29130, 6030, 11, 29130, 11, 4296, 62, 30001, 62, 8367, 628 ]
3.243902
41
""" .. module:: CAttackEvasionPGDExp :synopsis: Evasion attack using Projected Gradient Descent. .. moduleauthor:: Battista Biggio <battista.biggio@unica.it> """ from secml.adv.attacks.evasion import CAttackEvasionPGDLS
[ 37811, 198, 492, 8265, 3712, 7257, 926, 441, 15200, 4247, 6968, 35, 16870, 198, 220, 220, 1058, 28869, 24608, 25, 4319, 4247, 1368, 1262, 4935, 276, 17701, 1153, 2935, 1087, 13, 198, 198, 492, 8265, 9800, 3712, 12350, 12523, 4403, 27769...
2.860759
79
import sqlite3
[ 11748, 44161, 578, 18, 198, 220, 220, 220, 220, 198 ]
2
10
import math
[ 11748, 10688, 198 ]
4
3
######################################################## FLASK SETTINGS ############################################################## #Variable used to securly sign cookies ##THIS IS SET IN DEV ENVIRONMENT FOR CONVENIENCE BUT SHOULD BE SET AS AN ENVIRONMENT VARIABLE IN PROD SECRET_KEY = "dev" ########################...
[ 29113, 14468, 7804, 9977, 1921, 42, 25823, 51, 20754, 1303, 29113, 14468, 7804, 4242, 2, 198, 2, 43015, 973, 284, 792, 333, 306, 1051, 14746, 198, 2235, 43559, 3180, 25823, 3268, 5550, 53, 12964, 53, 4663, 1340, 10979, 7473, 7102, 28290...
4.076923
143
import numpy as np from typing import Tuple, Union, Optional from autoarray.structures.arrays.two_d import array_2d_util from autoarray.geometry import geometry_util from autoarray import numba_util from autoarray.mask import mask_2d_util def grid_2d_via_mask_from( mask_2d: np.ndarray, pixel_s...
[ 11748, 299, 32152, 355, 45941, 201, 198, 6738, 19720, 1330, 309, 29291, 11, 4479, 11, 32233, 201, 198, 201, 198, 6738, 8295, 18747, 13, 7249, 942, 13, 3258, 592, 13, 11545, 62, 67, 1330, 7177, 62, 17, 67, 62, 22602, 201, 198, 6738, ...
2.467327
4,239
# coding: utf-8 import requests, math import gevent from gevent.queue import Queue from gevent import monkey; monkey.patch_all() from pyquery import PyQuery if __name__ == '__main__': p = Proxies() p.get_proxies(20, 1) result = p.get_result() print(result)
[ 2, 19617, 25, 3384, 69, 12, 23, 198, 198, 11748, 7007, 11, 10688, 198, 11748, 4903, 1151, 198, 6738, 4903, 1151, 13, 36560, 1330, 4670, 518, 198, 6738, 4903, 1151, 1330, 21657, 26, 21657, 13, 17147, 62, 439, 3419, 198, 6738, 12972, ...
2.619048
105
# Copyright 2021 TUNiB inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, softw...
[ 2, 15069, 33448, 309, 4944, 72, 33, 753, 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, ...
3.863388
183
# coding: utf-8 """ Name: upper_air_humidity.py Make upper level weather chart. Usage: python3 upper_air_humidity.py --file <ncfile> Author: Ryosuke Tomita Date: 2022/01/07 """ import argparse from ncmagics import fetchtime, japanmap, meteotool def parse_args() -> dict: """parse_args. set file path. A...
[ 2, 19617, 25, 3384, 69, 12, 23, 198, 37811, 198, 5376, 25, 6727, 62, 958, 62, 17047, 17995, 13, 9078, 198, 198, 12050, 6727, 1241, 6193, 8262, 13, 198, 198, 28350, 25, 21015, 18, 6727, 62, 958, 62, 17047, 17995, 13, 9078, 1377, 77...
1.966387
1,547
# # Autogenerated by Thrift Compiler (0.13.0) # # DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING # # options string: py # from thrift.Thrift import TType, TMessageType, TFrozenDict, TException, TApplicationException from thrift.protocol.TProtocol import TProtocolException from thrift.TRecursive impo...
[ 2, 198, 2, 5231, 519, 877, 515, 416, 16283, 2135, 3082, 5329, 357, 15, 13, 1485, 13, 15, 8, 198, 2, 198, 2, 8410, 5626, 48483, 4725, 48481, 7013, 15986, 311, 11335, 14603, 7013, 35876, 25003, 7013, 15986, 8410, 2751, 198, 2, 198, ...
2.311089
1,019