content
stringlengths
1
1.05M
input_ids
listlengths
1
883k
ratio_char_token
float64
1
22.9
token_count
int64
1
883k
from __future__ import division import cv2 import track import detect
[ 6738, 11593, 37443, 834, 1330, 7297, 198, 198, 11748, 269, 85, 17, 198, 198, 11748, 2610, 198, 11748, 4886, 628 ]
3.65
20
SEECRET = 'Extremely secretive seecret. You could not guess this one if your life depended on it.' DATABASE = 'db/data.db' DATABASE_PRICES = 'db/prices.db' SESSION_TTL = 240 WEBSOCKETS_PORT= 7334 WEBSOCKETS_URI = 'ws://localhost:' + str(WEBSOCKETS_PORT) DEFAULT_LEDGER = { 'value': 10000, 'asset_id': 1 } DEFAU...
[ 5188, 2943, 26087, 796, 705, 36716, 306, 32654, 384, 721, 1186, 13, 921, 714, 407, 4724, 428, 530, 611, 534, 1204, 33785, 319, 340, 2637, 198, 35, 1404, 6242, 11159, 796, 705, 9945, 14, 7890, 13, 9945, 6, 198, 35, 1404, 6242, 11159,...
2.421053
152
# -*- coding: utf-8 -*- # Form implementation generated from reading ui file 'telas/telaEditUser.ui' # # Created by: PyQt5 UI code generator 5.13.0 # # WARNING! All changes made in this file will be lost! from PyQt5 import QtCore, QtGui, QtWidgets from PyQt5.QtWidgets import QMessageBox import PyrebaseConnector as P...
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 198, 2, 5178, 7822, 7560, 422, 3555, 334, 72, 2393, 705, 37524, 292, 14, 83, 10304, 18378, 12982, 13, 9019, 6, 198, 2, 198, 2, 15622, 416, 25, 9485, 48, 83, 20, 12...
2.533333
210
import pytest from edera import Condition from edera import Task from edera.exceptions import TargetVerificationError from edera.testing import DefaultScenario from edera.testing import ScenarioWithProvidedStubs
[ 11748, 12972, 9288, 198, 198, 6738, 1225, 8607, 1330, 24295, 198, 6738, 1225, 8607, 1330, 15941, 198, 6738, 1225, 8607, 13, 1069, 11755, 1330, 12744, 13414, 2649, 12331, 198, 6738, 1225, 8607, 13, 33407, 1330, 15161, 3351, 39055, 198, 673...
3.981481
54
# Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # d...
[ 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, 11846, 351, 262, 13789, 13, 921, 743, 7330, 198, 2, 220, 220, ...
3.375
192
#!/usr/bin/python3 import MySQLdb from ognddbfuncs import getognchk unkglider = [] # ----------------------------------------------------------- # -----------------------------------------------------------
[ 2, 48443, 14629, 14, 8800, 14, 29412, 18, 198, 11748, 33476, 9945, 198, 6738, 267, 70, 358, 9945, 12543, 6359, 1330, 651, 2360, 354, 74, 198, 2954, 4743, 1304, 796, 17635, 198, 2, 20368, 22369, 6329, 198, 198, 2, 20368, 22369, 6329, ...
4.837209
43
"""Edinburgh Genomics Online SF2 web application. examples: To start the tornado server: $ start_sf2_webapp More information is available at: - http://gitlab.genepool.private/hdunnda/sf2-webapp """ __version__="0.0.1" import os import tornado.options from tornado.options import define, options import sf2...
[ 37811, 7407, 22222, 5215, 31994, 7467, 14362, 17, 3992, 3586, 13, 198, 198, 1069, 12629, 25, 198, 198, 2514, 923, 262, 33718, 4382, 25, 628, 220, 220, 220, 720, 923, 62, 28202, 17, 62, 12384, 1324, 198, 198, 5167, 1321, 318, 1695, 3...
3.130719
612
#!/usr/bin/env python # coding:utf-8 import cv2 from PIL import Image from PyPDF2 import PdfFileReader import logging Image.MAX_IMAGE_PIXELS = None log = logging.getLogger(__name__)
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 220, 198, 2, 19617, 25, 40477, 12, 23, 198, 11748, 269, 85, 17, 198, 6738, 350, 4146, 1330, 7412, 198, 6738, 9485, 20456, 17, 1330, 350, 7568, 8979, 33634, 198, 11748, 18931, 198, 198, 51...
2.710145
69
#Copy a image
[ 2, 29881, 257, 2939 ]
3.25
4
# import paddle
[ 2, 1330, 39517, 201, 198, 201, 198, 201 ]
2.5
8
import numpy as np from futile.Utils import write HaeV = 27.21138386 def _occ_and_virt(log): """ Extract the number of occupied and empty orbitals from a logfile """ norb = log.log['Total Number of Orbitals'] if log.log['Spin treatment'] == 'Averaged': norbv = log.evals[0].info[0]-norb ...
[ 198, 11748, 299, 32152, 355, 45941, 198, 6738, 35322, 13, 18274, 4487, 1330, 3551, 198, 39, 3609, 53, 796, 2681, 13, 21895, 2548, 21734, 628, 198, 4299, 4808, 13966, 62, 392, 62, 48940, 7, 6404, 2599, 198, 220, 220, 220, 37227, 198, ...
2.188559
1,416
import torch from torch.autograd import Variable from sklearn.metrics import confusion_matrix, classification_report import numpy as np import time # import our model and data from rnn import RNN from data import get_data hidden_size = 10 learning_rate = 0.01 num_layers = 2 num_epochs = 1000 sequence_length = 10 batc...
[ 11748, 28034, 198, 6738, 28034, 13, 2306, 519, 6335, 1330, 35748, 198, 6738, 1341, 35720, 13, 4164, 10466, 1330, 10802, 62, 6759, 8609, 11, 17923, 62, 13116, 198, 11748, 299, 32152, 355, 45941, 198, 11748, 640, 198, 198, 2, 1330, 674, ...
2.6997
333
# Solve the quadratic equation ax**2 + bx + c = 0 # import complex math module import cmath a=int(input("Enter a:")) b=int(input("Enter b:")) c=int(input("Enter c:")) # calculate the discriminant d = (b**2) - (4*a*c) # find two solutions sol1 = (-b-cmath.sqrt(d))/(2*a) sol2 = (-b+cmath.sqrt(d))/(2*a) print('The solutio...
[ 2, 4294, 303, 262, 15094, 81, 1512, 16022, 7877, 1174, 17, 1343, 275, 87, 1343, 269, 796, 657, 198, 2, 1330, 3716, 10688, 8265, 198, 11748, 269, 11018, 198, 64, 28, 600, 7, 15414, 7203, 17469, 257, 11097, 4008, 198, 65, 28, 600, 7...
2.38
150
import numpy as np from fos.core.scene import Scene from fos.core.plots import Plot from fos.core.tracks import Tracks from fos.core.points import Points #data=200*np.random.rand(1000000,3) #colors=np.random.rand(1000000,4) data=[200*np.random.rand(int(np.round(30*np.random.rand()))+1,3).astype('float32') for i in...
[ 11748, 299, 32152, 355, 45941, 198, 6738, 277, 418, 13, 7295, 13, 29734, 220, 1330, 28315, 198, 6738, 277, 418, 13, 7295, 13, 489, 1747, 220, 1330, 28114, 198, 6738, 277, 418, 13, 7295, 13, 46074, 1330, 42259, 198, 6738, 277, 418, 1...
2.413559
295
"""vis widgets """ # Copyright (c) 2020 ipyradiant contributors. # Distributed under the terms of the Modified BSD License. __all__ = [ "CytoscapeVisualizer", "DatashaderVisualizer", "VisualizerBase", "LayoutSelector", "NXBase", ] from .base import NXBase, VisualizerBase from .cytoscape import Cyto...
[ 37811, 4703, 40803, 198, 37811, 198, 2, 15069, 357, 66, 8, 12131, 20966, 2417, 324, 3014, 20420, 13, 198, 2, 4307, 6169, 739, 262, 2846, 286, 262, 40499, 347, 10305, 13789, 13, 198, 198, 834, 439, 834, 796, 685, 198, 220, 220, 220, ...
3.014388
139
r""" .. _compartmental-modeling-tools: Compartmental Modeling Tools ---------------------------- These functions build theoretical distributions with which to understand how Dismod-AT works, and how disease processes work. 1. Specify a disease process by making simple Python functions that return disease rates ...
[ 81, 37811, 198, 492, 4808, 5589, 1823, 282, 12, 4666, 10809, 12, 31391, 25, 198, 198, 7293, 1823, 282, 9104, 278, 20003, 198, 1783, 10541, 198, 198, 4711, 5499, 1382, 16200, 24570, 351, 543, 284, 1833, 198, 4919, 44955, 375, 12, 1404,...
2.766599
3,916
# -*- coding: utf-8 -*- # Generated by Django 1.10.2 on 2016-11-13 01:17 from __future__ import unicode_literals from django.db import migrations, models import randomslugfield.fields
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 2, 2980, 515, 416, 37770, 352, 13, 940, 13, 17, 319, 1584, 12, 1157, 12, 1485, 5534, 25, 1558, 198, 6738, 11593, 37443, 834, 1330, 28000, 1098, 62, 17201, 874, 198, ...
2.818182
66
import sys from typing import Callable, List try: sys.getsizeof(0) getsizeof = lambda x: sys.getsizeof(x) except: # import resource getsizeof = lambda _: 1#resource.getrusage(resource.RUSAGE_SELF).ru_maxrss def get_size(obj, seen=None): """Recursively finds size of objects""" size = getsizeof(...
[ 11748, 25064, 198, 6738, 19720, 1330, 4889, 540, 11, 7343, 198, 198, 28311, 25, 198, 220, 220, 220, 25064, 13, 11407, 1096, 1659, 7, 15, 8, 198, 220, 220, 220, 3011, 1096, 1659, 796, 37456, 2124, 25, 25064, 13, 11407, 1096, 1659, 7,...
2.455285
738
from __future__ import division import numpy as np import pandas as pd import math from tqdm import tqdm from matplotlib.colors import rgb2hex
[ 6738, 11593, 37443, 834, 1330, 7297, 198, 11748, 299, 32152, 355, 45941, 198, 11748, 19798, 292, 355, 279, 67, 198, 11748, 10688, 198, 6738, 256, 80, 36020, 1330, 256, 80, 36020, 198, 6738, 2603, 29487, 8019, 13, 4033, 669, 1330, 46140,...
3.302326
43
import sys sys.setrecursionlimit(10**6) root = None main(int(input()))
[ 11748, 25064, 198, 17597, 13, 2617, 8344, 24197, 32374, 7, 940, 1174, 21, 8, 198, 15763, 796, 6045, 198, 12417, 7, 600, 7, 15414, 3419, 4008 ]
2.692308
26
from kubernetes import client, config import json # YML if __name__ == '__main__': main()
[ 6738, 479, 18478, 3262, 274, 1330, 5456, 11, 4566, 198, 11748, 33918, 628, 198, 2, 575, 5805, 628, 198, 198, 361, 11593, 3672, 834, 6624, 705, 834, 12417, 834, 10354, 198, 220, 220, 220, 1388, 3419, 198 ]
2.675676
37
"""Animations that update mobjects.""" __all__ = ["UpdateFromFunc", "UpdateFromAlphaFunc", "MaintainPositionRelativeTo"] import operator as op import typing from ..animation.animation import Animation if typing.TYPE_CHECKING: from ..mobject.mobject import Mobject
[ 37811, 35320, 602, 326, 4296, 7251, 752, 82, 526, 15931, 198, 198, 834, 439, 834, 796, 14631, 10260, 4863, 37, 19524, 1600, 366, 10260, 4863, 38077, 37, 19524, 1600, 366, 44, 32725, 26545, 6892, 876, 2514, 8973, 628, 198, 11748, 10088, ...
3.325301
83
import torch import torch.nn as nn # ---------------------- # MobileNetV1 # ---------------------- # +BN+ReLU # DW++BN+ReLU # ---------------------- # MobileNet V2 # ---------------------- if __name__ == '__main__': model = MobileNetV2() # model = MobileNetV1() input = t...
[ 11748, 28034, 201, 198, 11748, 28034, 13, 20471, 355, 299, 77, 201, 198, 201, 198, 201, 198, 201, 198, 2, 41436, 438, 201, 198, 2, 12173, 7934, 53, 16, 201, 198, 2, 41436, 438, 201, 198, 2, 1343, 15766, 10, 3041, 41596, 201, 198, ...
2.327485
171
from xbrr.base.reader.base_parser import BaseParser from xbrr.edinet.reader.element_value import ElementValue
[ 6738, 2124, 1671, 81, 13, 8692, 13, 46862, 13, 8692, 62, 48610, 1330, 7308, 46677, 198, 6738, 2124, 1671, 81, 13, 27152, 316, 13, 46862, 13, 30854, 62, 8367, 1330, 11703, 11395, 628 ]
3.363636
33
"""This program first reads in the sqlite database made by ParseAuthors.py. Then, after just a little data cleaning, it undergoes PCA decomposition. After being decomposed via PCA, the author data is then clustered by way of a K-means clustering algorithm. The number of clusters can be set by changing the value of n_cl...
[ 37811, 1212, 1430, 717, 9743, 287, 262, 44161, 578, 6831, 925, 416, 2547, 325, 30515, 669, 13, 9078, 13, 198, 6423, 11, 706, 655, 257, 1310, 1366, 12724, 11, 340, 17777, 274, 4217, 32, 26969, 9150, 13, 198, 3260, 852, 38237, 1335, 2...
2.583969
786
# Your NumMatrix object will be instantiated and called as such: # obj = NumMatrix(matrix) # param_1 = obj.sumRegion(row1,col1,row2,col2)
[ 198, 2, 3406, 31835, 46912, 2134, 481, 307, 9113, 12931, 290, 1444, 355, 884, 25, 198, 2, 26181, 796, 31835, 46912, 7, 6759, 8609, 8, 198, 2, 5772, 62, 16, 796, 26181, 13, 16345, 47371, 7, 808, 16, 11, 4033, 16, 11, 808, 17, 11,...
2.836735
49
""" \033[0m -> \033[;;m -> 0 - 1 - 4 - 5 - 7 - 8 - 30 - 31 - 32 - 33 - 34 - 35 - 36 - 37 - : 40 - +10 """ from copy import copy as _copy METHOD_DEFAULT = -1 METHOD_BOLD = 1 METHOD_UNDERLINE = 4 METHOD_...
[ 37811, 198, 198, 59, 44427, 58, 15, 76, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 4613, 220, 198, 59, 44427, 58, 7665, 76, 220, 220, 220, 220, 4613, ...
2.269476
783
import abc from functools import cached_property, partial import jax import jax.numpy as jnp def __add__(self, other): return Lambda(pairwise_new) class Lambda(_PairwiseKernel): def duplicate(kernel, num): """Create a stack of kernels such that the Gram matrix becomes block diagonal. ...
[ 11748, 450, 66, 198, 6738, 1257, 310, 10141, 1330, 39986, 62, 26745, 11, 13027, 198, 198, 11748, 474, 897, 198, 11748, 474, 897, 13, 77, 32152, 355, 474, 37659, 628, 628, 220, 220, 220, 825, 11593, 2860, 834, 7, 944, 11, 584, 2599, ...
2.506887
363
# super class from genie.libs.ops.msdp.iosxe.msdp import Msdp as MsdpXE
[ 2, 2208, 1398, 201, 198, 6738, 2429, 494, 13, 8019, 82, 13, 2840, 13, 907, 26059, 13, 4267, 27705, 13, 907, 26059, 1330, 6997, 26059, 355, 6997, 26059, 55, 36, 201 ]
2.354839
31
import aiohttp import pytest from aiohttp import web from virtool_workflow.api.client import JobApiHttpSession from tests.api.mocks.mock_api import mock_routes
[ 11748, 257, 952, 4023, 198, 11748, 12972, 9288, 198, 6738, 257, 952, 4023, 1330, 3992, 198, 6738, 4118, 970, 62, 1818, 11125, 13, 15042, 13, 16366, 1330, 15768, 32, 14415, 43481, 36044, 198, 198, 6738, 5254, 13, 15042, 13, 76, 3320, 1...
3
55
# Generated by Django 3.0.14 on 2021-08-08 10:04 from django.db import migrations, models
[ 2, 2980, 515, 416, 37770, 513, 13, 15, 13, 1415, 319, 33448, 12, 2919, 12, 2919, 838, 25, 3023, 198, 198, 6738, 42625, 14208, 13, 9945, 1330, 15720, 602, 11, 4981, 628 ]
2.875
32
"""Unit test for google.py""" __author__ = "Mark Pilgrim (f8dy@diveintomark.org)" __version__ = "$Revision: 1.4 $" __date__ = "$Date: 2004/02/06 21:00:53 $" __copyright__ = "Copyright (c) 2002 Mark Pilgrim" __license__ = "Python" import google import unittest import sys, os import GoogleSOAPFacade from StringIO impor...
[ 37811, 26453, 1332, 329, 23645, 13, 9078, 37811, 198, 198, 834, 9800, 834, 796, 366, 9704, 46440, 357, 69, 23, 9892, 31, 67, 425, 600, 296, 668, 13, 2398, 16725, 198, 834, 9641, 834, 796, 17971, 18009, 1166, 25, 352, 13, 19, 720, ...
2.746377
138
import sys import asyncio import tornado.ioloop from classes.rabbitmq_tornado import TornadoAdapter from tornado import gen from services.read_sheet import read_sheet RABBIT_URI = "amqp://guest:guest@localhost:5672/" if __name__ == "__main__": if sys.platform == 'win32': asyncio.set_event_loop_policy(as...
[ 11748, 25064, 198, 11748, 30351, 952, 198, 198, 11748, 33718, 13, 1669, 11224, 198, 6738, 6097, 13, 81, 14229, 76, 80, 62, 45910, 4533, 1330, 48970, 47307, 198, 6738, 33718, 1330, 2429, 198, 198, 6738, 2594, 13, 961, 62, 21760, 1330, ...
2.105581
663
#!/usr/bin/env python3 import json import argparse import re import datetime import paramiko import requests # cmd ['ssh', 'smart', # 'mkdir -p /home/levabd/smart-home-temp-humidity-monitor; # cat - > /home/levabd/smart-home-temp-humidity-monitor/lr.json'] from btlewrap import available_backends, Blu...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 18, 198, 198, 11748, 33918, 198, 11748, 1822, 29572, 198, 11748, 302, 198, 11748, 4818, 8079, 198, 11748, 5772, 12125, 198, 11748, 7007, 198, 198, 2, 23991, 220, 37250, 45824, 3256, 705, 2700...
2.129911
7,713
# Copyright (c) 2021 CNES/JPL # # All rights reserved. Use of this source code is governed by a # BSD-style license that can be found in the LICENSE file. """ Orbital error ------------- """ from typing import Dict, Tuple # import dask.array as da import numpy as np # from .. import random_signal from .. import setti...
[ 2, 15069, 357, 66, 8, 33448, 31171, 1546, 14, 41, 6489, 198, 2, 198, 2, 1439, 2489, 10395, 13, 5765, 286, 428, 2723, 2438, 318, 21825, 416, 257, 198, 2, 347, 10305, 12, 7635, 5964, 326, 460, 307, 1043, 287, 262, 38559, 24290, 2393...
2.273828
661
'''This module implements the Zawinksi threading algorithm. https://www.jwz.org/doc/threading.html The main function is process(), which takes a queryset, ie. all messages in a list, and returns the root_node of a container tree representing the thread. Use root_node.walk() to walk the container tree. NOTE: There ar...
[ 7061, 6, 1212, 8265, 23986, 262, 1168, 707, 2973, 72, 4704, 278, 11862, 13, 198, 5450, 1378, 2503, 13, 73, 86, 89, 13, 2398, 14, 15390, 14, 16663, 278, 13, 6494, 198, 198, 464, 1388, 2163, 318, 1429, 22784, 543, 2753, 257, 42517, ...
2.39361
7,355
from flask import Flask app = Flask(__name__)
[ 6738, 42903, 1330, 46947, 198, 198, 1324, 796, 46947, 7, 834, 3672, 834, 8, 198 ]
3.133333
15
#!/usr/bin/env python # -*- coding: utf-8 -*- # # Copyright 2011 Manuel Francisco Naranjo <manuel at aircable dot net> # # 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....
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 198, 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 2, 198, 2, 220, 15069, 2813, 25995, 6033, 13596, 272, 7639, 1279, 18713, 379, 1633, 66, 540, 16605, 2010, 29, 198, 2,...
2.861048
439
# coding: utf-8 from flask import Flask from flask_babel import Babel from flask_bootstrap import Bootstrap app = Flask(__name__) app.config.from_pyfile('application.cfg') app.secret_key = '_\xeb\xaa9\xea\xb9&\xe8\xdfx\xd4oKu\x01\xf3\x94d\x08\xdeGs\x11<' #TODO get if from config babel = Babel(app) Bootstrap(app) ...
[ 2, 19617, 25, 3384, 69, 12, 23, 198, 198, 6738, 42903, 1330, 46947, 198, 6738, 42903, 62, 65, 9608, 1330, 50175, 198, 6738, 42903, 62, 18769, 26418, 1330, 18892, 26418, 198, 198, 1324, 796, 46947, 7, 834, 3672, 834, 8, 198, 1324, 13...
2.466667
150
from __future__ import annotations from unittest import TestCase from enum import Enum from typing import Dict, Iterable, Optional, Set, List from jsonschema import validate as validate_json from nrf5_cmake.property import Access, Property from nrf5_cmake.version import Version def set_prop(self, property_name...
[ 6738, 11593, 37443, 834, 1330, 37647, 198, 198, 6738, 555, 715, 395, 1330, 6208, 20448, 198, 6738, 33829, 1330, 2039, 388, 198, 6738, 19720, 1330, 360, 713, 11, 40806, 540, 11, 32233, 11, 5345, 11, 7343, 198, 6738, 44804, 684, 2395, 2...
2.695313
256
# Generated by Django 2.0.7 on 2018-08-26 13:28 from django.db import migrations, models import django.db.models.deletion
[ 2, 2980, 515, 416, 37770, 362, 13, 15, 13, 22, 319, 2864, 12, 2919, 12, 2075, 1511, 25, 2078, 198, 198, 6738, 42625, 14208, 13, 9945, 1330, 15720, 602, 11, 4981, 198, 11748, 42625, 14208, 13, 9945, 13, 27530, 13, 2934, 1616, 295, ...
2.818182
44
import dataclasses import json import dataclasses_json
[ 11748, 4818, 330, 28958, 198, 11748, 33918, 198, 198, 11748, 4818, 330, 28958, 62, 17752, 628 ]
3.5625
16
# Copyright 2008-2018 Univa 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 agreed to in...
[ 2, 15069, 3648, 12, 7908, 791, 12151, 10501, 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.880435
184
"""Reject observations based on PDOP, which is based on estimated covariance matrix of unknowns Description: ------------ Identifies observations from the dataset with PDOP greater than a configured limit. """ # External library imports import numpy as np # Midgard imports from midgard.dev import plugins # Where i...
[ 37811, 3041, 752, 13050, 1912, 319, 14340, 3185, 11, 543, 318, 1912, 319, 6108, 44829, 590, 17593, 286, 6439, 82, 198, 198, 11828, 25, 198, 10541, 198, 198, 33234, 6945, 13050, 422, 262, 27039, 351, 14340, 3185, 3744, 621, 257, 17839, ...
3.605839
137
import pygame, time from pygame.constants import QUIT, WINDOWCLOSE #from src import * win = pygame.display.set_mode([800,600], 16) pygame.init() quitcount = 0 while True: win.fill([200, 200, 200]) for event in pygame.event.get(): if event.type in ( #pygame.QUIT, #pygame.WINDOWCL...
[ 11748, 12972, 6057, 11, 640, 198, 6738, 12972, 6057, 13, 9979, 1187, 1330, 19604, 2043, 11, 370, 12115, 3913, 32737, 198, 2, 6738, 12351, 1330, 1635, 198, 198, 5404, 796, 12972, 6057, 13, 13812, 13, 2617, 62, 14171, 26933, 7410, 11, 8...
1.965354
635
# Generated by Django 3.1.7 on 2021-03-16 20:08 from django.db import migrations, models
[ 2, 2980, 515, 416, 37770, 513, 13, 16, 13, 22, 319, 33448, 12, 3070, 12, 1433, 1160, 25, 2919, 198, 198, 6738, 42625, 14208, 13, 9945, 1330, 15720, 602, 11, 4981, 628 ]
2.84375
32
# # Copyright (C) 2016-2020 by Ihor E. Novikov # Copyright (C) 2020 by Krzysztof Broski # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU Affero General Public License # as published by the Free Software Foundation, either version 3 # of the License, or (at y...
[ 2, 198, 2, 220, 15069, 357, 34, 8, 1584, 12, 42334, 416, 314, 17899, 412, 13, 5267, 1134, 709, 198, 2, 220, 15069, 357, 34, 8, 12131, 416, 13685, 89, 893, 89, 1462, 69, 14266, 4106, 198, 2, 198, 2, 220, 770, 1430, 318, 1479, 3...
2.804058
1,725
#!/usr/bin/python # -*- coding: utf-8 -*- import os import logging from threading import Thread from pogom import config from pogom.app import Pogom from pogom.utils import get_args, insert_mock_data, load_credentials from pogom.search import search_loop from pogom.models import create_tables, Pokemon from pogom.pgo...
[ 2, 48443, 14629, 14, 8800, 14, 29412, 198, 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 198, 11748, 28686, 198, 11748, 18931, 198, 198, 6738, 4704, 278, 1330, 14122, 198, 198, 6738, 279, 519, 296, 1330, 4566, 198, ...
2.350665
827
import re from multiprocessing.pool import Pool from pathlib import Path from typing import Union import numpy as np import pandas as pd from google.cloud import storage from feature.plot.to_images import PlotWriter from utils.data.eegdataloader import EegDataLoader gs_client = storage.Client() LABEL_FILE_NAME = "ev...
[ 11748, 302, 198, 6738, 18540, 305, 919, 278, 13, 7742, 1330, 19850, 198, 6738, 3108, 8019, 1330, 10644, 198, 6738, 19720, 1330, 4479, 198, 198, 11748, 299, 32152, 355, 45941, 198, 11748, 19798, 292, 355, 279, 67, 198, 6738, 23645, 13, ...
3.313725
102
# Volatility # # Authors: # Mike Auty <mike.auty@gmail.com> # # This file is part of Volatility. # # Volatility is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 2 of the License, or # (at your op...
[ 2, 4709, 18486, 198, 2, 198, 2, 46665, 25, 198, 2, 4995, 317, 3935, 1279, 76, 522, 13, 2306, 88, 31, 14816, 13, 785, 29, 198, 2, 198, 2, 770, 2393, 318, 636, 286, 4709, 18486, 13, 198, 2, 198, 2, 4709, 18486, 318, 1479, 3788, ...
3.133501
397
from thundra.application.application_info_provider import ApplicationInfoProvider from thundra.config import config_names from thundra.config.config_provider import ConfigProvider
[ 6738, 294, 917, 430, 13, 31438, 13, 31438, 62, 10951, 62, 15234, 1304, 1330, 15678, 12360, 29495, 198, 6738, 294, 917, 430, 13, 11250, 1330, 4566, 62, 14933, 198, 6738, 294, 917, 430, 13, 11250, 13, 11250, 62, 15234, 1304, 1330, 17056...
4
46
corner_tuples = ( (1, 26, 105), (5, 101, 80), (21, 51, 30), (25, 76, 55), (126, 50, 71), (130, 75, 96), (146, 125, 46), (150, 100, 121), ) edge_orbit_id = { 2: 0, 3: 1, 4: 0, 6: 0, 11: 1, 16: 0, 10: 0, 15: 1, 20: 0, 22: 0, 23: 1, 24: 0, #...
[ 10215, 1008, 62, 28047, 2374, 796, 357, 198, 220, 220, 220, 357, 16, 11, 2608, 11, 13343, 828, 198, 220, 220, 220, 357, 20, 11, 8949, 11, 4019, 828, 198, 220, 220, 220, 357, 2481, 11, 6885, 11, 1542, 828, 198, 220, 220, 220, 357...
1.545117
35,053
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.db import migrations, models import colorful.fields
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 6738, 11593, 37443, 834, 1330, 28000, 1098, 62, 17201, 874, 198, 198, 6738, 42625, 14208, 13, 9945, 1330, 15720, 602, 11, 4981, 198, 11748, 20239, 13, 25747, 628 ]
3.095238
42
from odoo import api, fields, models
[ 6738, 16298, 2238, 1330, 40391, 11, 7032, 11, 4981, 628 ]
3.8
10
from django.db import models name = models.CharField(pgettext_lazy( "Name of Account", "Name"), max_length=64) email = models.EmailField() phone = PhoneNumberField(null=True) industry = models.CharField( _("Industry Type"), max_length=255, choices=INDCHOICES, blank=True,...
[ 6738, 42625, 14208, 13, 9945, 1330, 4981, 628, 220, 220, 220, 1438, 796, 4981, 13, 12441, 15878, 7, 79, 1136, 5239, 62, 75, 12582, 7, 198, 220, 220, 220, 220, 220, 220, 220, 366, 5376, 286, 10781, 1600, 366, 5376, 12340, 3509, 62, ...
2.610837
406
from pypge.benchmarks import explicit import numpy as np # visualization libraries import matplotlib.pyplot as plt # Set your output directories img_dir = "../img/explicit/" data_dir = "../benchmarks/explicit/" names = [ "koza_01", "koza_02", "koza_03", "lipson_01", "lipson_02", "lipson_03", "nguyen_01", ...
[ 6738, 279, 4464, 469, 13, 26968, 14306, 1330, 7952, 198, 198, 11748, 299, 32152, 355, 45941, 198, 198, 2, 32704, 12782, 198, 11748, 2603, 29487, 8019, 13, 9078, 29487, 355, 458, 83, 628, 198, 198, 2, 5345, 534, 5072, 29196, 198, 9600,...
2.176471
289
from os import mkdir from pathlib import Path from shutil import rmtree from zipfile import ZipFile, ZIP_DEFLATED # Get the root path to this repo repo_dir = Path(__file__).parent # Get the kit directory kit_dir = repo_dir / "test_kit" # Get the build directory build_dir = repo_dir / "build" # Get the license file lic...
[ 6738, 28686, 1330, 33480, 15908, 198, 6738, 3108, 8019, 1330, 10644, 198, 6738, 4423, 346, 1330, 374, 16762, 631, 198, 6738, 19974, 7753, 1330, 38636, 8979, 11, 42977, 62, 7206, 3697, 11617, 198, 198, 2, 3497, 262, 6808, 3108, 284, 428,...
2.742529
435
########################################################################### # # Copyright 2021 Google 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 # # https://www.apache.org/l...
[ 29113, 29113, 7804, 21017, 198, 2, 198, 2, 220, 15069, 33448, 3012, 11419, 198, 2, 198, 2, 220, 49962, 739, 262, 24843, 13789, 11, 10628, 362, 13, 15, 357, 1169, 366, 34156, 15341, 198, 2, 220, 345, 743, 407, 779, 428, 2393, 2845, ...
3.231915
1,410
import uuid from django.db import models from cortaswamp import enums from django.contrib.auth.models import AbstractBaseUser, UserManager from django.contrib.postgres.fields import JSONField
[ 11748, 334, 27112, 198, 6738, 42625, 14208, 13, 9945, 1330, 4981, 198, 6738, 12794, 292, 86, 696, 1330, 551, 5700, 198, 6738, 42625, 14208, 13, 3642, 822, 13, 18439, 13, 27530, 1330, 27741, 14881, 12982, 11, 11787, 13511, 198, 6738, 426...
3.527273
55
import os, json CONFIG_PATH = os.path.expanduser('~') + os.sep + '.tweetsender_config.json'
[ 11748, 28686, 11, 33918, 198, 198, 10943, 16254, 62, 34219, 796, 28686, 13, 6978, 13, 11201, 392, 7220, 10786, 93, 11537, 1343, 28686, 13, 325, 79, 1343, 45302, 83, 732, 1039, 2194, 62, 11250, 13, 17752, 6 ]
2.486486
37
from .Cache import * from .Utils import *
[ 6738, 764, 30562, 1330, 1635, 198, 6738, 764, 18274, 4487, 1330, 1635, 198 ]
3.230769
13
from utils.http import HTTP
[ 6738, 3384, 4487, 13, 4023, 1330, 14626, 628 ]
3.625
8
#------------------------------------------------------------------------------ # Copyright 2013 Esri # 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/LICENS...
[ 2, 10097, 26171, 198, 2, 15069, 2211, 8678, 380, 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, 92...
3.12704
858
import datetime import math import django from py3njection import inject from learn.infrastructure.configuration import LearnConfiguration from learn.learn_base_settings import available_settings
[ 11748, 4818, 8079, 198, 11748, 10688, 198, 198, 11748, 42625, 14208, 198, 6738, 12972, 18, 77, 29192, 1330, 8677, 198, 198, 6738, 2193, 13, 10745, 6410, 13, 11250, 3924, 1330, 14365, 38149, 198, 6738, 2193, 13, 35720, 62, 8692, 62, 3369...
4.326087
46
# Generated by Django 3.1.8 on 2021-06-15 08:51 from django.db import migrations
[ 2, 2980, 515, 416, 37770, 513, 13, 16, 13, 23, 319, 33448, 12, 3312, 12, 1314, 8487, 25, 4349, 198, 198, 6738, 42625, 14208, 13, 9945, 1330, 15720, 602, 628, 628 ]
2.741935
31
from .core import * __all__ = ["Operator", "LambdaOperator", "TransformerOperator", "Normalize", "FillMissing", "Vocab", "Categorize", "ToTensor", "UnknownCategoryError", ]
[ 6738, 764, 7295, 1330, 1635, 198, 198, 834, 439, 834, 796, 14631, 18843, 1352, 1600, 366, 43, 4131, 6814, 18843, 1352, 1600, 366, 8291, 16354, 18843, 1352, 1600, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 366, 26447, 1096,...
2.45
80
from tensorflow.python.keras.layers import Lambda, Convolution2D, BatchNormalization, Flatten, Dense, Cropping2D from tensorflow.python.keras.models import Sequential from tensorflow.python.keras.optimizers import Adam from trainer.util import normalize, resize
[ 6738, 11192, 273, 11125, 13, 29412, 13, 6122, 292, 13, 75, 6962, 1330, 21114, 6814, 11, 34872, 2122, 17, 35, 11, 347, 963, 26447, 1634, 11, 1610, 41769, 11, 360, 1072, 11, 9325, 2105, 17, 35, 198, 6738, 11192, 273, 11125, 13, 29412,...
3.35443
79
import functools import logging import time from typing import Optional from django.conf import settings from django.db import transaction from pymongo.errors import DuplicateKeyError from node.core.database import get_database from node.core.exceptions import BlockchainIsNotLockedError, BlockchainLockingError, Block...
[ 11748, 1257, 310, 10141, 198, 11748, 18931, 198, 11748, 640, 198, 6738, 19720, 1330, 32233, 198, 198, 6738, 42625, 14208, 13, 10414, 1330, 6460, 198, 6738, 42625, 14208, 13, 9945, 1330, 8611, 198, 6738, 279, 4948, 25162, 13, 48277, 1330, ...
3.821782
101
PRESET = { "general": GeneralPattern, "unique": Unique_Patterns, "runtime": Runtime_Patterns, }
[ 628, 198, 48296, 2767, 796, 1391, 198, 220, 220, 220, 366, 24622, 1298, 3611, 47546, 11, 198, 220, 220, 220, 366, 34642, 1298, 30015, 62, 47546, 82, 11, 198, 220, 220, 220, 366, 43282, 1298, 43160, 62, 47546, 82, 11, 198, 92 ]
2.619048
42
# coding=utf-8 # Copyright 2020 George Mihaila. # # 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 agr...
[ 2, 19617, 28, 40477, 12, 23, 198, 2, 15069, 12131, 4502, 337, 4449, 39460, 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, ...
2.887115
1,816
#!/usr/bin/env python # -*- coding: utf-8 -*- import timeit import ssl from urllib.request import Request, urlopen if __name__ == '__main__': main()
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 198, 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 198, 11748, 640, 270, 198, 11748, 264, 6649, 198, 6738, 2956, 297, 571, 13, 25927, 1330, 19390, 11, 19016, 9654, 628, ...
2.484375
64
from lib.external.PluginManager import PluginInterface, Manager from prettytable import PrettyTable from aayudh import utils, fileutils import sys import os current_dir = os.path.abspath(os.path.dirname(__file__)) root_dir = os.path.normpath(os.path.join(current_dir, "..")) sys.path.insert(0, root_dir) Manager()....
[ 6738, 9195, 13, 22615, 13, 37233, 13511, 1330, 42636, 39317, 11, 9142, 198, 6738, 2495, 11487, 1330, 20090, 10962, 198, 6738, 257, 323, 463, 71, 1330, 3384, 4487, 11, 2393, 26791, 198, 198, 11748, 25064, 198, 11748, 28686, 628, 198, 144...
3.017241
116
"""Provides basis translators for SMEFT and and WET that can be used with the `wcxf` Python package.""" from . import smeft, smeft_higgs from . import wet from wilson import wcxf
[ 37811, 15946, 1460, 4308, 4779, 2024, 329, 9447, 36, 9792, 290, 290, 370, 2767, 326, 460, 307, 973, 351, 262, 198, 63, 86, 66, 26152, 63, 11361, 5301, 526, 15931, 628, 198, 6738, 764, 1330, 895, 68, 701, 11, 895, 68, 701, 62, 71, ...
2.888889
72
# -*- coding: UTF-8 -*- # # copyright: 2020-2022, Frederico Martins # author: Frederico Martins <http://github.com/fscm> # license: SPDX-License-Identifier: MIT """Tests for the Nakfa currency representation(s).""" from decimal import Context from pytest import raises from multicurrency import Currency from multicurr...
[ 2, 532, 9, 12, 19617, 25, 41002, 12, 23, 532, 9, 12, 198, 2, 198, 2, 6634, 25, 12131, 12, 1238, 1828, 11, 18669, 3713, 3981, 1040, 198, 2, 1772, 25, 18669, 3713, 3981, 1040, 1279, 4023, 1378, 12567, 13, 785, 14, 69, 1416, 76, ...
3.276074
163
# vim:fileencoding=utf-8 # License: BSD Copyright: 2016, Kovid Goyal <kovid at kovidgoyal.net> from __python__ import hash_literals from ast import ( AST_Definitions, AST_Scope, AST_Method, AST_Except, AST_EmptyStatement, AST_Statement, AST_Seq, AST_BaseCall, AST_Dot, AST_Sub, AST_ItemAccess, AST_Condition...
[ 2, 43907, 25, 7753, 12685, 7656, 28, 40477, 12, 23, 198, 2, 13789, 25, 347, 10305, 15069, 25, 1584, 11, 43326, 312, 402, 4815, 1279, 21862, 312, 379, 479, 709, 312, 70, 4815, 13, 3262, 29, 198, 6738, 11593, 29412, 834, 1330, 12234, ...
2.309595
1,334
import logging import os from dotenv import load_dotenv import sentry_sdk from sentry_sdk.integrations.asgi import SentryAsgiMiddleware from sentry_sdk.integrations.logging import ignore_logger from typing import Optional import helpers import helpers.content as content import helpers.entities as entities from helpers...
[ 11748, 18931, 198, 11748, 28686, 198, 6738, 16605, 24330, 1330, 3440, 62, 26518, 24330, 198, 11748, 1908, 563, 62, 21282, 74, 198, 6738, 1908, 563, 62, 21282, 74, 13, 18908, 9143, 13, 292, 12397, 1330, 11352, 563, 1722, 12397, 34621, 15...
2.857895
570
from bs4 import BeautifulSoup import requests
[ 6738, 275, 82, 19, 1330, 23762, 50, 10486, 198, 11748, 7007, 628, 628, 628 ]
3.642857
14
################################################################################ # # MRC FGU Computational Genomics Group # # $Id$ # # Copyright (C) 2009 Andreas Heger # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License # as publish...
[ 29113, 29113, 14468, 198, 2, 198, 2, 220, 220, 337, 7397, 25503, 52, 22476, 864, 5215, 31994, 4912, 198, 2, 198, 2, 220, 220, 720, 7390, 3, 198, 2, 198, 2, 220, 220, 15069, 357, 34, 8, 3717, 33728, 679, 1362, 198, 2, 198, 2, 2...
2.343853
4,246
#coding:utf-8 from django.db import models from django.contrib.auth.models import User
[ 2, 66, 7656, 25, 40477, 12, 23, 198, 6738, 42625, 14208, 13, 9945, 1330, 4981, 198, 6738, 42625, 14208, 13, 3642, 822, 13, 18439, 13, 27530, 1330, 11787, 628 ]
3.034483
29
#! /usr/bin/env python # Copyright (c) 2016 Zielezinski A, combio.pl import argparse import sys from alfpy import word_distance from alfpy import word_pattern from alfpy import word_vector from alfpy.utils import distmatrix from alfpy.utils import seqrecords from alfpy.version import __version__ if __name__ == ...
[ 2, 0, 1220, 14629, 14, 8800, 14, 24330, 21015, 198, 198, 2, 15069, 357, 66, 8, 1584, 1168, 494, 36858, 21141, 317, 11, 1974, 952, 13, 489, 198, 198, 11748, 1822, 29572, 198, 11748, 25064, 198, 198, 6738, 435, 69, 9078, 1330, 1573, ...
2.931624
117
# Fazer com que o interpretador leia duas notas de um aluno, calcule e mostre a sua mdia. n1 = float(input('\nDigite a primeira nota: ')) n2 = float(input('Digite a segunda nota: ')) media = (n1 + n2) / 2 print('\nA primeira nota : {:.1f}.'.format(n1)) print('A segunda nota : {:.1f}.'.format(n2)) print('Portanto, sua ...
[ 2, 376, 19178, 401, 8358, 267, 6179, 7079, 443, 544, 7043, 292, 407, 292, 390, 23781, 435, 36909, 11, 2386, 23172, 304, 749, 260, 257, 424, 64, 45243, 544, 13, 198, 198, 77, 16, 796, 12178, 7, 15414, 10786, 59, 77, 19511, 578, 257...
2.346667
150
# coding: utf-8 # TODO: check full mapping of one enum to another (is every value of mapped enum has pair and vice versa) # TODO: pep8 # TODO: pylint # TODO: generate docs # TODO: rewrite exceptions texts & rename exception classes import random from rels import exceptions def __deepcopy__(self, memo): ...
[ 2, 19617, 25, 3384, 69, 12, 23, 198, 198, 2, 16926, 46, 25, 2198, 1336, 16855, 286, 530, 33829, 284, 1194, 357, 271, 790, 1988, 286, 27661, 33829, 468, 5166, 290, 7927, 25470, 8, 198, 2, 16926, 46, 25, 279, 538, 23, 198, 2, 1692...
3.160377
106
import numpy as np import zipfile from io import StringIO import os import json import pandas as pd import transformations as tr from multiprocess import Pool import plotly import plotly.graph_objs as go from dd_pose.dataset_item import DatasetItem, StampedTransforms # a coordinate frame which allows for identity tr...
[ 11748, 299, 32152, 355, 45941, 198, 11748, 19974, 7753, 198, 6738, 33245, 1330, 10903, 9399, 198, 11748, 28686, 198, 11748, 33918, 198, 11748, 19798, 292, 355, 279, 67, 198, 11748, 38226, 355, 491, 198, 6738, 18540, 305, 919, 1330, 19850,...
2.808989
267
import os import tensorflow as tf import numpy as np import matplotlib.pyplot as plt import tensorflow.keras.backend as K from models import load_model, load_adfmodel from PIL import Image # GENERAL PARAMETERS MODE = 'diag' # 'diag', 'half', or 'full' # LOAD MODEL print(os.getcwd()) adfmodel = load...
[ 11748, 28686, 201, 198, 11748, 11192, 273, 11125, 355, 48700, 201, 198, 11748, 299, 32152, 355, 45941, 201, 198, 11748, 2603, 29487, 8019, 13, 9078, 29487, 355, 458, 83, 201, 198, 11748, 11192, 273, 11125, 13, 6122, 292, 13, 1891, 437, ...
2.066066
666
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Created on Sun Apr 29 20:03:22 2018 @author: gauravpant """ import numpy as np import pandas as pd df=pd.read_csv('data/responses.csv', sep=',',header=0) #f = open('data/responses.csv') #csv_f = csv.reader(f) # #headers = [] #data = [] # # #for i, row in enumerate(...
[ 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, 41972, 319, 3825, 2758, 2808, 1160, 25, 3070, 25, 1828, 2864, 198, 198, 31, 9800, 25, 308, 2899, 615,...
2.45283
901
from src.switchbox import * from src.point import * from src.netcrackerformat import * from src.sbhelper import * from src.direction import * from src.logger import * from src.analysis.posBasedFilter import * from src.analysis.analysispass import * from src.analysis.directionAnalysis import * # =====================...
[ 6738, 12351, 13, 31943, 3524, 1330, 1635, 198, 6738, 12351, 13, 4122, 1330, 1635, 198, 6738, 12351, 13, 3262, 6098, 10735, 18982, 1330, 1635, 198, 6738, 12351, 13, 36299, 2978, 525, 1330, 1635, 198, 6738, 12351, 13, 37295, 1330, 1635, 1...
3.384298
242
from lib.base import BaseJiraAction from lib.formatters import to_project_dict __all__ = [ 'GetJiraProjectComponentsAction' ]
[ 6738, 9195, 13, 8692, 1330, 7308, 41, 8704, 12502, 198, 6738, 9195, 13, 18982, 1010, 1330, 284, 62, 16302, 62, 11600, 198, 198, 834, 439, 834, 796, 685, 198, 220, 220, 220, 705, 3855, 41, 8704, 16775, 7293, 3906, 12502, 6, 198, 60, ...
2.977778
45
#included from https://github.com/sysopfb/brieflz import os from ctypes import * import binascii import zlib import struct CURR_DIR = os.path.abspath(os.path.dirname(__file__)) LIB_PATH = os.path.join(CURR_DIR, 'blzpack_lib.so') brieflz = cdll.LoadLibrary(LIB_PATH) DEFAULT_BLOCK_SIZE = 1024 * 1024 if __name__ == "...
[ 2, 259, 10341, 422, 3740, 1378, 12567, 13, 785, 14, 17597, 404, 21855, 14, 65, 3796, 75, 89, 198, 11748, 28686, 198, 6738, 269, 19199, 1330, 1635, 198, 11748, 9874, 292, 979, 72, 198, 11748, 1976, 8019, 198, 11748, 2878, 198, 198, 3...
2.453237
139
#!/usr/bin/env python3 # Copyright 2017-present, Facebook, Inc. # All rights reserved. # # This source code is licensed under the license found in the # LICENSE file in the root directory of this source tree. """DrQA Document Reader model""" import math import random import ipdb import torch import torch.optim as opt...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 18, 198, 2, 15069, 2177, 12, 25579, 11, 3203, 11, 3457, 13, 198, 2, 1439, 2489, 10395, 13, 198, 2, 198, 2, 770, 2723, 2438, 318, 11971, 739, 262, 5964, 1043, 287, 262, 198, 2, 38559, ...
3.212534
367
# Generated by Django 4.0.1 on 2022-01-10 09:29 from django.db import migrations, models
[ 2, 2980, 515, 416, 37770, 604, 13, 15, 13, 16, 319, 33160, 12, 486, 12, 940, 7769, 25, 1959, 198, 198, 6738, 42625, 14208, 13, 9945, 1330, 15720, 602, 11, 4981, 628 ]
2.84375
32
from pathlib import Path import pandas as pd import numpy as np import logging #patching import unittest try: # python 3.4+ should use builtin unittest.mock not mock package from unittest.mock import patch except ImportError: from mock import patch #app import methylcheck import methylprep TESTPATH = 'te...
[ 6738, 3108, 8019, 1330, 10644, 198, 11748, 19798, 292, 355, 279, 67, 198, 11748, 299, 32152, 355, 45941, 198, 11748, 18931, 198, 198, 2, 17147, 278, 198, 11748, 555, 715, 395, 198, 28311, 25, 198, 220, 220, 220, 1303, 21015, 513, 13, ...
2.622024
336
""" The Yahoo finance component. https://github.com/iprak/yahoofinance """ from datetime import timedelta import logging from typing import Union import async_timeout from homeassistant.const import CONF_SCAN_INTERVAL from homeassistant.helpers import discovery from homeassistant.helpers.aiohttp_client import async_...
[ 37811, 198, 464, 16551, 9604, 7515, 13, 198, 198, 5450, 1378, 12567, 13, 785, 14, 541, 17716, 14, 88, 17108, 1659, 14149, 198, 37811, 198, 198, 6738, 4818, 8079, 1330, 28805, 12514, 198, 11748, 18931, 198, 6738, 19720, 1330, 4479, 198, ...
2.07275
1,622
# Desafio 109: Modifique as funes que form criadas no desafio 107 para que # elas aceitem um parmetro a mais, informando se o valor retornado por elas # vai ser ou no formatado pela funo moeda(), desenvolvida no desafio 108. from rotinas import titulo from modulos.ex109 import moeda as m valor = int(input('Digite um...
[ 2, 2935, 1878, 952, 16003, 25, 3401, 361, 2350, 355, 1257, 274, 8358, 1296, 269, 21244, 292, 645, 748, 1878, 952, 16226, 31215, 8358, 220, 198, 2, 1288, 292, 31506, 9186, 23781, 1582, 4164, 305, 257, 285, 15152, 11, 4175, 25440, 384, ...
2.344322
273
import json import tempfile from acrcloud.recognizer import ACRCloudRecognizeType from acrcloud.recognizer import ACRCloudRecognizer from mod_track_search.bean import get_track_id from model.Track import Track
[ 11748, 33918, 198, 11748, 20218, 7753, 198, 198, 6738, 936, 81, 17721, 13, 26243, 7509, 1330, 7125, 49, 18839, 6690, 2360, 1096, 6030, 198, 6738, 936, 81, 17721, 13, 26243, 7509, 1330, 7125, 49, 18839, 6690, 2360, 7509, 198, 6738, 953, ...
2.476636
107
from freezegun import freeze_time from salesforce_timecard.core import TimecardEntry import pytest import json
[ 6738, 1479, 89, 1533, 403, 1330, 16611, 62, 2435, 198, 6738, 4200, 3174, 62, 2435, 9517, 13, 7295, 1330, 3862, 9517, 30150, 198, 11748, 12972, 9288, 198, 11748, 33918, 628 ]
3.733333
30
__author__ = 'Ahmed Hani Ibrahim' import abc
[ 834, 9800, 834, 796, 705, 10910, 1150, 367, 3216, 30917, 6, 198, 11748, 450, 66, 628 ]
2.875
16
from datetime import datetime, timedelta, timezone from typing import Optional from fastapi import (APIRouter, Depends, HTTPException, Request, Response, status) from jose import JWTError, jwt from sqlalchemy.orm import Session from app.api.deps import get_current_user, get_db from app.api.utils ...
[ 6738, 4818, 8079, 1330, 4818, 8079, 11, 28805, 12514, 11, 640, 11340, 198, 6738, 19720, 1330, 32233, 198, 198, 6738, 3049, 15042, 1330, 357, 2969, 4663, 39605, 11, 2129, 2412, 11, 14626, 16922, 11, 19390, 11, 18261, 11, 198, 220, 220, ...
3.15847
183
""" 58. Length of Last Word """
[ 37811, 201, 198, 3365, 13, 22313, 286, 4586, 9678, 201, 198, 37811, 201 ]
2.615385
13
import torch from torch_geometric.data import Data from torch_geometric.transforms import BaseTransform from torch_geometric.utils import to_networkx, from_networkx import networkx as nx import numpy as np from federatedscope.core.configs.config import global_cfg
[ 11748, 28034, 198, 198, 6738, 28034, 62, 469, 16996, 13, 7890, 1330, 6060, 198, 6738, 28034, 62, 469, 16996, 13, 7645, 23914, 1330, 7308, 41762, 198, 6738, 28034, 62, 469, 16996, 13, 26791, 1330, 284, 62, 27349, 87, 11, 422, 62, 27349...
3.539474
76
#!/usr/bin/env python # William Lam # www.virtuallyghetto.com """ vSphere Python SDK program for updating ESXi Advanced Settings Usage: python update_esxi_advanced_settings.py -s 192.168.1.200 \ -u 'administrator@vsphere.local' \ -p VMware1! -c VSAN-Cluster -k VSAN.ClomRepairDelay -v 120 """ import argpa...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 198, 2, 3977, 10923, 198, 2, 7324, 13, 48940, 935, 70, 35619, 13, 785, 198, 198, 37811, 198, 85, 38882, 11361, 26144, 1430, 329, 19698, 13380, 42528, 13435, 16163, 198, 198, 28350, 25, 198,...
2.167965
1,155