content
stringlengths
1
1.05M
input_ids
listlengths
1
883k
ratio_char_token
float64
1
22.9
token_count
int64
1
883k
import cv2 import numpy as np import time class WindowManager(object):
[ 11748, 269, 85, 17, 198, 11748, 299, 32152, 355, 45941, 198, 11748, 640, 628, 628, 198, 4871, 26580, 13511, 7, 15252, 2599, 198 ]
3.26087
23
""" Alpha version of a version of ELLA that plays nicely with sklearn @author: Paul Ruvolo """ from math import log import numpy as np from scipy.special import logsumexp from scipy.linalg import sqrtm, inv, norm from sklearn.linear_model import LinearRegression, Ridge, LogisticRegression, Lasso import matplotlib.pyp...
[ 37811, 12995, 2196, 286, 257, 2196, 286, 412, 3069, 32, 326, 5341, 16576, 351, 1341, 35720, 198, 197, 31, 9800, 25, 3362, 11667, 10396, 78, 198, 37811, 198, 198, 6738, 10688, 1330, 2604, 198, 11748, 299, 32152, 355, 45941, 198, 6738, ...
3.361345
119
""" MIT License Copyright (c) 2020-present phenom4n4n 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, pub...
[ 37811, 198, 36393, 13789, 198, 198, 15269, 357, 66, 8, 12131, 12, 25579, 6566, 296, 19, 77, 19, 77, 198, 198, 5990, 3411, 318, 29376, 7520, 11, 1479, 286, 3877, 11, 284, 597, 1048, 16727, 257, 4866, 198, 1659, 428, 3788, 290, 3917, ...
3.324324
407
__author__ = 'katharine' import csv import struct import time import datetime if __name__ == "__main__": import sys generate_files(sys.argv[1], sys.argv[2])
[ 834, 9800, 834, 796, 705, 74, 776, 34569, 6, 198, 198, 11748, 269, 21370, 198, 11748, 2878, 198, 11748, 640, 198, 11748, 4818, 8079, 628, 198, 198, 361, 11593, 3672, 834, 6624, 366, 834, 12417, 834, 1298, 198, 220, 220, 220, 1330, 2...
2.560606
66
from PHPUnitKit.tests import unittest from PHPUnitKit.plugin import is_valid_php_version_file_version
[ 6738, 19599, 26453, 20827, 13, 41989, 1330, 555, 715, 395, 198, 198, 6738, 19599, 26453, 20827, 13, 33803, 1330, 318, 62, 12102, 62, 10121, 62, 9641, 62, 7753, 62, 9641, 628 ]
3.354839
31
import pytest from feed.consts import FeedVersion from feed.utils import randomize_case from feed.errors import FeedVersionError # FeedVersion.supported # FeedVersion.get
[ 11748, 12972, 9288, 198, 198, 6738, 3745, 13, 1102, 6448, 1330, 18272, 14815, 198, 6738, 3745, 13, 26791, 1330, 4738, 1096, 62, 7442, 198, 6738, 3745, 13, 48277, 1330, 18272, 14815, 12331, 628, 198, 2, 18272, 14815, 13, 15999, 628, 198,...
3.62
50
from django.db import migrations, models
[ 6738, 42625, 14208, 13, 9945, 1330, 15720, 602, 11, 4981, 628 ]
3.818182
11
Credits = [ ('Bootstrap', 'https://getbootstrap.com', 'The Bootstrap team', 'MIT'), ('Bottle', 'http://bottlepy.org', 'Marcel Hellkamp', 'MIT'), ('Cheroot', 'https://github.com/cherrypy/cheroot', 'CherryPy Team', 'BSD 3-Clause "New" or "Revised" License'), ('Click', 'https://github.com/pallets/click', '...
[ 42855, 796, 685, 198, 220, 220, 220, 19203, 36476, 26418, 3256, 705, 5450, 1378, 1136, 18769, 26418, 13, 785, 3256, 705, 464, 18892, 26418, 1074, 3256, 705, 36393, 33809, 198, 220, 220, 220, 19203, 28653, 293, 3256, 705, 4023, 1378, 109...
2.541436
543
#---------------- # 01_02 #---------------- # TensorFlow and tf.keras import tensorflow as tf from tensorflow import keras # Helper libraries import numpy as np import matplotlib.pyplot as plt # TensorFlow's version : 1.12.0 print('TensorFlow\'s version : ', tf.__version__) #---------------- # 1 IMDB #----------...
[ 2, 1783, 198, 2, 5534, 62, 2999, 220, 198, 2, 1783, 198, 198, 2, 309, 22854, 37535, 290, 48700, 13, 6122, 292, 198, 11748, 11192, 273, 11125, 355, 48700, 198, 6738, 11192, 273, 11125, 1330, 41927, 292, 198, 198, 2, 5053, 525, 12782,...
2.251773
1,692
from django.urls import include, path from .views import (annotation, auto_labeling, comment, example, example_state, health, label, project, tag, task) from .views.tasks import category, relation, span, text urlpatterns_project = [ path( route='category-types', view=label.Cate...
[ 6738, 42625, 14208, 13, 6371, 82, 1330, 2291, 11, 3108, 198, 198, 6738, 764, 33571, 1330, 357, 1236, 14221, 11, 8295, 62, 18242, 278, 11, 2912, 11, 1672, 11, 1672, 62, 5219, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 22...
2.135794
2,872
import numpy as np import matplotlib.pyplot as plt import pandas as pd from pynwb import TimeSeries from datetime import datetime from dateutil.tz import tzlocal from pynwb import NWBFile from ipywidgets import widgets from pynwb.core import DynamicTable from pynwb.file import Subject from nwbwidgets.view import defaul...
[ 11748, 299, 32152, 355, 45941, 198, 11748, 2603, 29487, 8019, 13, 9078, 29487, 355, 458, 83, 198, 11748, 19798, 292, 355, 279, 67, 198, 6738, 279, 2047, 39346, 1330, 3862, 27996, 198, 6738, 4818, 8079, 1330, 4818, 8079, 198, 6738, 3128,...
2.995575
226
# -*- coding: utf-8 -*- from __future__ import division from datetime import datetime, timedelta import logging import os from guessit import guessit logger = logging.getLogger(__name__) #: Video extensions VIDEO_EXTENSIONS = ('.3g2', '.3gp', '.3gp2', '.3gpp', '.60d', '.ajp', '.asf', '.asx', '.avchd', '.avi', '.bik'...
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 6738, 11593, 37443, 834, 1330, 7297, 198, 6738, 4818, 8079, 1330, 4818, 8079, 11, 28805, 12514, 198, 11748, 18931, 198, 11748, 28686, 198, 198, 6738, 4724, 270, 1330, 4724...
2.251266
987
# Generated by Django 3.2.7 on 2021-10-18 23:21 from django.conf import settings from django.db import migrations, models import django.db.models.deletion
[ 2, 2980, 515, 416, 37770, 513, 13, 17, 13, 22, 319, 33448, 12, 940, 12, 1507, 2242, 25, 2481, 198, 198, 6738, 42625, 14208, 13, 10414, 1330, 6460, 198, 6738, 42625, 14208, 13, 9945, 1330, 15720, 602, 11, 4981, 198, 11748, 42625, 142...
3.019231
52
# Copyright (c) 2020, NVIDIA CORPORATION. All rights reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by appli...
[ 2, 15069, 357, 66, 8, 12131, 11, 15127, 23929, 44680, 6234, 13, 220, 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...
3.540201
398
""" @author: tyrantlucifer @contact: tyrantlucifer@gmail.com @blog: https://tyrantlucifer.com @file: main.py @time: 2021/2/18 21:36 @desc: shadowsocksr-cli """ import argparse import traceback from shadowsocksr_cli.functions import * if __name__ == "__main__": main()
[ 37811, 198, 31, 9800, 25, 47167, 75, 1229, 7087, 198, 31, 32057, 25, 47167, 75, 1229, 7087, 31, 14816, 13, 785, 198, 31, 14036, 25, 3740, 1378, 774, 5250, 75, 1229, 7087, 13, 785, 198, 31, 7753, 25, 1388, 13, 9078, 198, 31, 2435, ...
2.622642
106
import zlib import zmq import simplejson import sys, os, datetime, time """ " Configuration """ __relayEDDN = 'tcp://eddn.edcd.io:9500' #__timeoutEDDN = 600000 # 10 minuts __timeoutEDDN = 60000 # 1 minut # Set False to listen to production stream; True to listen to debug stream __deb...
[ 11748, 1976, 8019, 198, 11748, 1976, 76, 80, 198, 11748, 2829, 17752, 198, 11748, 25064, 11, 28686, 11, 4818, 8079, 11, 640, 198, 198, 37811, 198, 366, 220, 28373, 198, 37811, 198, 834, 2411, 323, 1961, 35504, 220, 220, 220, 220, 220,...
2.387629
485
print (repleace_pattern([1,2,3,1,2,3,4],[1,2,3,4],[9,0]))
[ 201, 198, 201, 198, 201, 198, 201, 198, 201, 198, 4798, 357, 260, 1154, 558, 62, 33279, 26933, 16, 11, 17, 11, 18, 11, 16, 11, 17, 11, 18, 11, 19, 38430, 16, 11, 17, 11, 18, 11, 19, 38430, 24, 11, 15, 60, 4008, 201, 198, 2...
1.385965
57
# Copyright 2017 Mycroft AI 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 writin...
[ 2, 15069, 2177, 2011, 36714, 9552, 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.86
150
"""Unit tests for image iteration """ import logging import unittest import numpy from data_models.polarisation import PolarisationFrame from processing_components.image.iterators import image_raster_iter, image_channel_iter, image_null_iter from processing_components.image.operations import create_empty_image_li...
[ 37811, 26453, 5254, 329, 2939, 24415, 628, 198, 37811, 198, 11748, 18931, 198, 11748, 555, 715, 395, 198, 198, 11748, 299, 32152, 198, 198, 6738, 1366, 62, 27530, 13, 79, 6192, 5612, 1330, 32909, 5612, 19778, 198, 198, 6738, 7587, 62, ...
3.381944
144
import cv2 import numpy as np from scipy import ndimage
[ 11748, 269, 85, 17, 198, 11748, 299, 32152, 355, 45941, 198, 6738, 629, 541, 88, 1330, 299, 67, 9060, 628 ]
2.85
20
import os import sys import pytest from msl.qt import convert, Button, QtWidgets, QtCore, Qt
[ 11748, 28686, 198, 11748, 25064, 198, 198, 11748, 12972, 9288, 198, 198, 6738, 285, 6649, 13, 39568, 1330, 10385, 11, 20969, 11, 33734, 54, 312, 11407, 11, 33734, 14055, 11, 33734, 628, 628, 628 ]
2.941176
34
from random import randint from time import sleep computador = randint(0, 5) # Faz o computador "PENSAR" print('-=-' * 20) print('Vou Pensar em Um Nmero Entre 0 e 5. Tente Adivinhar Paoca...') print('-=-' * 20) jogador = int(input('Em que Nmero eu Pensei? ')) # Jogador tenta Adivinhar print('PROCESSANDO........') sleep...
[ 6738, 4738, 1330, 43720, 600, 198, 6738, 640, 1330, 3993, 198, 785, 1996, 7079, 796, 43720, 600, 7, 15, 11, 642, 8, 1303, 376, 1031, 267, 2653, 7079, 366, 47, 16938, 1503, 1, 198, 4798, 10786, 12, 10779, 6, 1635, 1160, 8, 198, 479...
2.530928
194
from tkinter import* import tkinter.font as font import sqlite3 name2='' regis2='' branch2='' if __name__=='__main__': main()
[ 6738, 256, 74, 3849, 1330, 9, 201, 198, 11748, 256, 74, 3849, 13, 10331, 355, 10369, 201, 198, 11748, 44161, 578, 18, 201, 198, 201, 198, 3672, 17, 28, 7061, 201, 198, 2301, 271, 17, 28, 7061, 201, 198, 1671, 3702, 17, 28, 7061, ...
1.852273
88
import unittest import time import logging logging.basicConfig() from intelhex import IntelHex import Adafruit_GPIO.I2C as i2c from gpiozero import OutputDevice from gpiozero import DigitalInputDevice from ctypes import c_uint8, c_uint16, c_uint32, cast, pointer, POINTER from ctypes import create_string_buffer, Struct...
[ 11748, 555, 715, 395, 198, 11748, 640, 198, 11748, 18931, 198, 6404, 2667, 13, 35487, 16934, 3419, 198, 6738, 33649, 33095, 1330, 8180, 39, 1069, 198, 11748, 1215, 1878, 4872, 62, 16960, 9399, 13, 40, 17, 34, 355, 1312, 17, 66, 198, ...
2.359828
931
import threading
[ 11748, 4704, 278, 628 ]
4.5
4
from .fmodobject import * from .globalvars import dll as _dll from .globalvars import get_class def get_group(self, idx): grp_ptr = c_void_p() self._call_fmod("FMOD_ChannelGroup_GetGroup", idx) return ChannelGroup(grp_ptr) def get_spectrum(self, numvalues, channeloffset, window): ...
[ 6738, 764, 69, 4666, 15252, 1330, 1635, 198, 6738, 764, 20541, 85, 945, 1330, 288, 297, 355, 4808, 12736, 198, 6738, 764, 20541, 85, 945, 1330, 651, 62, 4871, 628, 198, 220, 220, 220, 825, 651, 62, 8094, 7, 944, 11, 4686, 87, 2599...
2.433962
742
import sqlite3 from bottle import route, run,debug,template,request,redirect debug(True) run(reloader=True)
[ 11748, 44161, 578, 18, 198, 6738, 9294, 1330, 6339, 11, 1057, 11, 24442, 11, 28243, 11, 25927, 11, 445, 1060, 628, 628, 628, 220, 220, 220, 220, 628, 198, 24442, 7, 17821, 8, 198, 5143, 7, 260, 29356, 28, 17821, 8, 198 ]
2.857143
42
"""Module to initialize Maxmind databases and lookup IP metadata.""" import logging import os from typing import Optional, Tuple, NamedTuple import geoip2.database from pipeline.metadata.mmdb_reader import mmdb_reader MAXMIND_CITY = 'GeoLite2-City.mmdb' MAXMIND_ASN = 'GeoLite2-ASN.mmdb' # Tuple(netblock, asn, as_n...
[ 37811, 26796, 284, 41216, 5436, 10155, 20083, 290, 35847, 6101, 20150, 526, 15931, 198, 198, 11748, 18931, 198, 11748, 28686, 198, 6738, 19720, 1330, 32233, 11, 309, 29291, 11, 34441, 51, 29291, 198, 198, 11748, 40087, 541, 17, 13, 48806,...
2.179054
296
from __future__ import print_function """ This example generates random data and plots a graph in the browser. Run it using Gevent directly using: $ python plot_graph.py Or with an Gunicorn wrapper: $ gunicorn -k "geventwebsocket.gunicorn.workers.GeventWebSocketWorker" \ plot_graph:resource """ impo...
[ 6738, 11593, 37443, 834, 1330, 3601, 62, 8818, 198, 198, 37811, 198, 1212, 1672, 18616, 4738, 1366, 290, 21528, 257, 4823, 287, 262, 6444, 13, 198, 198, 10987, 340, 1262, 2269, 1151, 3264, 1262, 25, 198, 220, 220, 220, 720, 21015, 711...
3.049774
221
import os import numpy as np import tensorflow as tf from nas_big_data.combo.load_data import load_data_npz_gz from deephyper.nas.run.util import create_dir from deephyper.nas.train_utils import selectMetric os.environ["CUDA_VISIBLE_DEVICES"] = ",".join([str(i) for i in range(4)]) HERE = os.path.dirname(os.path.absp...
[ 11748, 28686, 198, 11748, 299, 32152, 355, 45941, 198, 11748, 11192, 273, 11125, 355, 48700, 198, 198, 6738, 25221, 62, 14261, 62, 7890, 13, 785, 2127, 13, 2220, 62, 7890, 1330, 3440, 62, 7890, 62, 37659, 89, 62, 34586, 198, 6738, 276...
2.425287
348
""" Summary: Utility Functions that could be helpful in any part of the API. All functions that are likely to be called across a number of classes and Functions in the API should be grouped here for convenience. Author: Duncan Runnacles Created: 01 Apr 2016 Copyri...
[ 37811, 201, 198, 201, 198, 21293, 25, 201, 198, 220, 220, 220, 34030, 40480, 326, 714, 307, 7613, 287, 597, 636, 286, 262, 7824, 13, 201, 198, 201, 198, 220, 220, 220, 1439, 5499, 326, 389, 1884, 284, 307, 1444, 1973, 257, 1271, 2...
2.302751
5,417
"""Definitions of UI content objects.""" from dataclasses import asdict from dataclasses import dataclass from enum import Enum from typing import Dict from typing import Generic from typing import TypeVar from ..utils.compatibility import TypeAlias from ..utils.serialize import SerializationFormat T = TypeVar("T"...
[ 37811, 7469, 50101, 286, 12454, 2695, 5563, 526, 15931, 198, 198, 6738, 4818, 330, 28958, 1330, 355, 11600, 198, 6738, 4818, 330, 28958, 1330, 4818, 330, 31172, 198, 6738, 33829, 1330, 2039, 388, 198, 6738, 19720, 1330, 360, 713, 198, 6...
3.330769
130
# u28_cerr_cfg.py: # # Non-regression test configuration file for MessageLogger service: # distinct threshold level for linked destination, where # import FWCore.ParameterSet.Config as cms process = cms.Process("TEST") import FWCore.Framework.test.cmsExceptionsFatal_cff process.options = FWCore.Framework.test.cmsExc...
[ 2, 334, 2078, 62, 2189, 81, 62, 37581, 13, 9078, 25, 198, 2, 198, 2, 8504, 12, 2301, 2234, 1332, 8398, 2393, 329, 16000, 11187, 1362, 2139, 25, 198, 2, 7310, 11387, 1241, 329, 6692, 10965, 11, 810, 198, 2, 198, 198, 11748, 48849, ...
2.528455
492
""" Created:04 Mar. 2020 Author: Jordan Prechac """ from revibe._helpers import const from administration.utils import retrieve_variable from content.models import Song, Album, Artist from content.serializers import v1 as cnt_ser_v1 # ----------------------------------------------------------------------------- # _...
[ 37811, 198, 41972, 25, 3023, 1526, 13, 12131, 198, 13838, 25, 8078, 3771, 354, 330, 198, 37811, 198, 198, 6738, 2710, 32438, 13557, 16794, 364, 1330, 1500, 198, 198, 6738, 3662, 13, 26791, 1330, 19818, 62, 45286, 198, 6738, 2695, 13, ...
3.284314
204
""" Authors: Elena Vasileva, Zoran Ivanovski E-mail: elenavasileva95@gmail.com, mars@feit.ukim.edu.mk Course: Mashinski vid, FEEIT, Spring 2021 Date: 09.03.2021 Description: function library model operations: construction, loading, saving Python version: 3.6 """ # python imports from keras.layers import ...
[ 37811, 198, 30515, 669, 25, 37254, 23663, 576, 6862, 11, 1168, 31884, 21798, 709, 20545, 198, 36, 12, 4529, 25, 1288, 268, 615, 292, 576, 6862, 3865, 31, 14816, 13, 785, 11, 48962, 31, 5036, 270, 13, 2724, 320, 13, 15532, 13, 28015,...
2.681791
1,653
#!/usr/bin/env python3 #-*- coding: utf-8 -*- from itertools import combinations packages = [int(num) for num in open('input.txt')] print(solve(packages, 3))
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 18, 198, 2, 12, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 198, 6738, 340, 861, 10141, 1330, 17790, 198, 198, 43789, 796, 685, 600, 7, 22510, 8, 329, 997, 287, 1280, 10786, ...
2.65
60
import configparser import math import re import urllib from pathlib import Path from PIL import Image if __name__ == '__main__': main()
[ 11748, 4566, 48610, 198, 11748, 10688, 198, 11748, 302, 198, 11748, 2956, 297, 571, 198, 6738, 3108, 8019, 1330, 10644, 198, 6738, 350, 4146, 1330, 7412, 198, 198, 361, 11593, 3672, 834, 6624, 705, 834, 12417, 834, 10354, 198, 220, 220,...
3.155556
45
""" Unit tests for SNIa truth catalog code. """ import os import unittest import sqlite3 import numpy as np import pandas as pd from desc.sims_truthcatalog import SNeTruthWriter, SNSynthPhotFactory if __name__ == '__main__': unittest.main()
[ 37811, 198, 26453, 5254, 329, 11346, 40, 64, 3872, 18388, 2438, 13, 198, 37811, 198, 11748, 28686, 198, 11748, 555, 715, 395, 198, 11748, 44161, 578, 18, 198, 11748, 299, 32152, 355, 45941, 198, 11748, 19798, 292, 355, 279, 67, 198, 6...
2.895349
86
# Copyright (c) 2018, DjaoDjin 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: # # 1. Redistributions of source code must retain the above copyright notice, # this list of conditions and t...
[ 2, 15069, 357, 66, 8, 2864, 11, 19307, 5488, 35, 18594, 753, 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...
3.457467
529
import sys import struct
[ 11748, 25064, 198, 11748, 2878, 628 ]
4.333333
6
# Copyright 2017 Novartis Institutes for BioMedical Research 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 agre...
[ 2, 15069, 2177, 5267, 433, 271, 33656, 329, 16024, 37158, 4992, 3457, 13, 49962, 739, 262, 24843, 13789, 11, 10628, 362, 13, 15, 357, 1169, 366, 34156, 15341, 345, 743, 407, 779, 428, 2393, 2845, 287, 11846, 351, 262, 13789, 13, 921, ...
4.25
172
from binance.client import Client import PySimpleGUI as sg api_key = "your_binance_apikey" secret_key = "your_binance_secretkey" client = Client(api_key=api_key, api_secret=secret_key) # price # 24h percentchange # GUI sg.theme('DefaultNoMoreNagging') # Tabs # Layout layout = [[sg.Text("Crypto Cu...
[ 6738, 9874, 590, 13, 16366, 1330, 20985, 201, 198, 11748, 9485, 26437, 40156, 355, 264, 70, 201, 198, 201, 198, 15042, 62, 2539, 796, 366, 14108, 62, 8800, 590, 62, 499, 522, 88, 1, 201, 198, 21078, 62, 2539, 796, 366, 14108, 62, ...
2.326165
279
import graphene from ...unurshop.ushop import models from ..core.mutations import BaseBulkMutation, ModelBulkDeleteMutation
[ 11748, 42463, 198, 198, 6738, 2644, 403, 333, 24643, 13, 1530, 404, 1330, 4981, 198, 6738, 11485, 7295, 13, 21973, 602, 1330, 7308, 33, 12171, 44, 7094, 11, 9104, 33, 12171, 38727, 44, 7094, 628, 198 ]
3.527778
36
import os, sys, re import json import pandas as pd import pymongo from main.LOADERS.publication_loader import PublicationLoader from main.MONGODB_PUSHERS.mongodb_pusher import MongoDbPusher from main.NLP.PREPROCESSING.preprocessor import Preprocessor
[ 11748, 28686, 11, 25064, 11, 302, 201, 198, 11748, 33918, 201, 198, 11748, 19798, 292, 355, 279, 67, 201, 198, 11748, 279, 4948, 25162, 201, 198, 201, 198, 6738, 1388, 13, 35613, 4877, 13, 11377, 341, 62, 29356, 1330, 45065, 17401, 20...
2.965909
88
# _ # /\ | | # / \ _ __ ___| |__ ___ _ __ _ _ # / /\ \ | '__/ __| '_ \ / _ \ '__| | | | # / ____ \| | | (__| | | | __/ | | |_| | # /_/ \_\_| \___|_| |_|\___|_| \__, | # __/ | # |___/ # Copyright (C) 20...
[ 2, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 4808, 198, 2, 220, 220, 220, 1220, 59, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 930, 930, 198, 2, 220, 220, 1220, 220, ...
1.735135
370
from core.celery.config import ERIGONES_TASK_USER from que.tasks import execute, get_task_logger from vms.models import SnapshotDefine, Snapshot, BackupDefine, Backup, IPAddress logger = get_task_logger(__name__) def is_vm_missing(vm, msg): """ Check failed command output and return True if VM is not on comp...
[ 6738, 4755, 13, 7015, 88, 13, 11250, 1330, 13793, 3528, 39677, 62, 51, 1921, 42, 62, 29904, 198, 6738, 8358, 13, 83, 6791, 1330, 12260, 11, 651, 62, 35943, 62, 6404, 1362, 198, 6738, 410, 907, 13, 27530, 1330, 16026, 9442, 7469, 500...
2.464274
3,037
# Definition for a binary tree node. # class TreeNode: # def __init__(self, val=0, left=None, right=None): # self.val = val # self.left = left # self.right = right
[ 2, 30396, 329, 257, 13934, 5509, 10139, 13, 198, 2, 1398, 12200, 19667, 25, 198, 2, 220, 220, 220, 220, 825, 11593, 15003, 834, 7, 944, 11, 1188, 28, 15, 11, 1364, 28, 14202, 11, 826, 28, 14202, 2599, 198, 2, 220, 220, 220, 220,...
2.258824
85
# -*- coding: utf-8 -*- # Copyright (C) 2014-2016 Andrey Antukh <niwi@niwi.nz> # Copyright (C) 2014-2016 Jess Espino <jespinog@gmail.com> # Copyright (C) 2014-2016 David Barragn <bameda@dbarragan.com> # Copyright (C) 2014-2016 Alejandro Alonso <alejandro.alonso@kaleidos.net> # Copyright (C) 2014-2016 Anler Hernndez <he...
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 2, 15069, 357, 34, 8, 1946, 12, 5304, 843, 4364, 3738, 2724, 71, 1279, 8461, 37686, 31, 8461, 37686, 13, 27305, 29, 198, 2, 15069, 357, 34, 8, 1946, 12, 5304, 12707,...
3.318801
367
import torch
[ 11748, 28034, 198 ]
4.333333
3
#!/usr/local/bin/python3 # -*- coding: utf-8 -*- import os import argparse import logging import numpy as np from PIL import Image import matplotlib import matplotlib.pyplot as plt import torch import torch.nn as nn from torchvision import transforms import cv2 import tqdm from net.pspnet import PSPNet models = { ...
[ 2, 48443, 14629, 14, 12001, 14, 8800, 14, 29412, 18, 198, 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 11748, 28686, 198, 11748, 1822, 29572, 198, 11748, 18931, 198, 11748, 299, 32152, 355, 45941, 198, 6738, 350, 4...
2.54849
629
from src.gridworld_mdp import GridWorld
[ 6738, 12351, 13, 25928, 6894, 62, 9132, 79, 1330, 24846, 10603, 628 ]
3.416667
12
# -*- coding: utf-8 -*- """Summary Classifier. Pipeline classifier using the basic summary statistics and an estimator. """ __author__ = ["MatthewMiddlehurst"] __all__ = ["SummaryClassifier"] import numpy as np from sklearn.ensemble import RandomForestClassifier from sktime.base._base import _clone_estimator from s...
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 37811, 22093, 5016, 7483, 13, 198, 198, 47, 541, 4470, 1398, 7483, 1262, 262, 4096, 10638, 7869, 290, 281, 3959, 1352, 13, 198, 37811, 198, 198, 834, 9800, 834, 796, 1...
3.52
125
from django.shortcuts import redirect from django.views import View
[ 6738, 42625, 14208, 13, 19509, 23779, 1330, 18941, 198, 6738, 42625, 14208, 13, 33571, 1330, 3582, 628 ]
4.058824
17
import typing as tp from unittest import TestCase import hypothesis as hp from hypothesis import strategies as st import pypeln as pl import cytoolz as cz MAX_EXAMPLES = 10 T = tp.TypeVar("T")
[ 11748, 19720, 355, 256, 79, 198, 6738, 555, 715, 395, 1330, 6208, 20448, 198, 198, 11748, 14078, 355, 27673, 198, 6738, 14078, 1330, 10064, 355, 336, 198, 11748, 279, 4464, 45542, 355, 458, 198, 11748, 3075, 25981, 89, 355, 24785, 198, ...
3.16129
62
import json from app.model import TrainMetrics, TrainPlots TEST_SUMMARY = ''' { "Epoch":10, "Real Accuracy":"1%", "Fake Accuracy":"99%", "Elapsed Time":"0:06:30.957221" } ''' TEST_HYPERPARAMETERS = ''' { "Epochs": 100, "Batch Size": 256, "Eval Frequency": 10, "Batches Per Epoch": 234...
[ 11748, 33918, 198, 198, 6738, 598, 13, 19849, 1330, 16835, 9171, 10466, 11, 16835, 3646, 1747, 198, 198, 51, 6465, 62, 50, 5883, 44, 13153, 796, 705, 7061, 198, 90, 198, 220, 220, 220, 366, 13807, 5374, 1298, 940, 11, 198, 220, 220,...
1.321529
309,515
import logging from collections import namedtuple logger = logging.getLogger("pybinsim.Pose")
[ 11748, 18931, 198, 6738, 17268, 1330, 3706, 83, 29291, 198, 198, 6404, 1362, 796, 18931, 13, 1136, 11187, 1362, 7203, 9078, 65, 1040, 320, 13, 47, 577, 4943, 628, 628, 198 ]
3.193548
31
from flask_sqlalchemy import SQLAlchemy from flask_redis import FlaskRedis from flask_migrate import Migrate # from flask_rq2 import RQ from rq import Queue from morphocut_server.worker import redis_conn database = SQLAlchemy() redis_store = FlaskRedis() migrate = Migrate() redis_queue = Queue(connection=redis_conn)...
[ 198, 6738, 42903, 62, 25410, 282, 26599, 1330, 16363, 2348, 26599, 198, 6738, 42903, 62, 445, 271, 1330, 46947, 7738, 271, 198, 6738, 42903, 62, 76, 42175, 1330, 337, 42175, 198, 2, 422, 42903, 62, 81, 80, 17, 1330, 371, 48, 198, 19...
2.982301
113
from __future__ import print_function """ Low-level serial communication for Trinamic TMCM-140-42-SE controller (used internally for the Thorlabs MFC1) """ import serial, struct, time, collections try: # this is nicer because it provides deadlock debugging information from acq4.util.Mutex import RecursiveMut...
[ 6738, 11593, 37443, 834, 1330, 3601, 62, 8818, 198, 37811, 198, 20535, 12, 5715, 11389, 6946, 329, 33822, 18127, 309, 9655, 44, 12, 15187, 12, 3682, 12, 5188, 10444, 198, 7, 1484, 20947, 329, 262, 13002, 75, 8937, 337, 4851, 16, 8, ...
2.166182
1,721
import unittest from signals.generators.ios.core_data import get_current_version, get_core_data_from_folder
[ 11748, 555, 715, 395, 198, 6738, 10425, 13, 8612, 2024, 13, 4267, 13, 7295, 62, 7890, 1330, 651, 62, 14421, 62, 9641, 11, 651, 62, 7295, 62, 7890, 62, 6738, 62, 43551, 628 ]
3.30303
33
# commend the lines for plotting using import matplotlib.pyplot as plt import networkx as nx # nx.draw_networkx_nodes(G[time_point],pos,node_size=200) # edges # nx.draw_networkx_edges(G[time_point],pos,edgelist=elarge,width=3) # nx.draw_networkx_edges(G[time_point],pos,edgelist=esmall,width=3,alpha=0.5,e...
[ 2, 35695, 262, 3951, 329, 29353, 1262, 198, 11748, 2603, 29487, 8019, 13, 9078, 29487, 355, 458, 83, 220, 198, 11748, 3127, 87, 355, 299, 87, 198, 2, 220, 220, 220, 299, 87, 13, 19334, 62, 27349, 87, 62, 77, 4147, 7, 38, 58, 243...
2.30102
196
from sys import stdin input = stdin.readline N = int(input()) primes = [1]*(N+1) primes[0] = 0 primes[1] = 0 for i in range(2,int(N**0.5)+1): if primes[i]: for j in range(i*i,N+1,i): primes[j] = 0 for i in range(N+1): if primes[i]: print(i,end = " ")
[ 6738, 25064, 1330, 14367, 259, 220, 198, 15414, 796, 14367, 259, 13, 961, 1370, 198, 198, 45, 796, 493, 7, 15414, 28955, 198, 1050, 999, 796, 685, 16, 60, 9, 7, 45, 10, 16, 8, 220, 198, 1050, 999, 58, 15, 60, 796, 657, 220, 19...
1.797546
163
# vim:fileencoding=utf-8:noet from __future__ import (unicode_literals, absolute_import, print_function) __copyright__ = '2013, Kovid Goyal <kovid at kovidgoyal.net>' __docformat__ = 'restructuredtext en' import sys import os import errno from time import sleep from powerline.lib.monotonic import monotonic from powe...
[ 2, 43907, 25, 7753, 12685, 7656, 28, 40477, 12, 23, 25, 3919, 316, 198, 6738, 11593, 37443, 834, 1330, 357, 46903, 1098, 62, 17201, 874, 11, 4112, 62, 11748, 11, 3601, 62, 8818, 8, 198, 198, 834, 22163, 4766, 834, 796, 705, 6390, ...
2.565693
274
#!/usr/bin/env python # -*- coding: utf-8 -*- # Copyright (c) 2012-2019 SoftBank Robotics. All rights reserved. # Use of this source code is governed by a BSD-style license (see the COPYING file). """ Fake Interact """ from __future__ import absolute_import from __future__ import unicode_literals from __future__ import...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 198, 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 2, 15069, 357, 66, 8, 2321, 12, 23344, 8297, 28650, 47061, 13, 1439, 2489, 10395, 13, 198, 2, 5765, 286, 428, 2723, ...
2.385429
851
#!/usr/bin/python import sys import argparse
[ 2, 48443, 14629, 14, 8800, 14, 29412, 198, 11748, 25064, 198, 11748, 1822, 29572, 198 ]
3
15
# ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ # Copyright 2021- QuOCS Team # # 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://ww...
[ 2, 1343, 44627, 44627, 44627, 44627, 44627, 14030, 45340, 198, 2, 220, 15069, 33448, 12, 220, 2264, 4503, 50, 4816, 198, 2, 198, 2, 220, 49962, 739, 262, 24843, 13789, 11, 10628, 362, 13, 15, 357, 1169, 366, 34156, 15341, 198, 2, 22...
3.845878
279
from datadog_checks.base import ConfigurationError, OpenMetricsBaseCheck EVENT_TYPE = SOURCE_TYPE_NAME = 'pulsar'
[ 6738, 4818, 324, 519, 62, 42116, 13, 8692, 1330, 28373, 12331, 11, 4946, 9171, 10466, 14881, 9787, 198, 198, 20114, 3525, 62, 25216, 796, 311, 31033, 62, 25216, 62, 20608, 796, 705, 79, 5753, 283, 6, 628 ]
3.135135
37
import ipfsapi c = ipfsapi.connect() peer_id = c.key_list()['Keys'][1]['Id'] c.name_publish('QmYjYGKXqo36GDt6f6qvp9qKAsrc72R9y88mQSLvogu8Ub', key='another_key') result = c.cat('/ipns/' + peer_id) print(result)
[ 11748, 20966, 9501, 15042, 628, 198, 66, 796, 20966, 9501, 15042, 13, 8443, 3419, 198, 33350, 62, 312, 796, 269, 13, 2539, 62, 4868, 3419, 17816, 40729, 6, 7131, 16, 7131, 6, 7390, 20520, 198, 198, 66, 13, 3672, 62, 12984, 1836, 107...
1.945455
110
import pygame def get_width(self) -> int: """Returns the widget of the window.""" if self.surface: return self.surface.get_width() return self.initial_dimension[0] def get_height(self) -> int: """Returns the height of the window.""" if self.surfa...
[ 11748, 12972, 6057, 201, 198, 201, 198, 201, 198, 220, 220, 220, 825, 651, 62, 10394, 7, 944, 8, 4613, 493, 25, 201, 198, 220, 220, 220, 220, 220, 220, 220, 37227, 35561, 262, 26295, 286, 262, 4324, 526, 15931, 201, 198, 220, 220,...
2.219444
360
from hypothesis import given, assume, settings from hypothesis.strategies import floats from numpy import cos from pytest import approx from fastats.optimise.newton_raphson import newton_raphson nr_func = newton_raphson(1, 1e-6, root=func, return_callable=True) nr_cos = newton_raphson(0.5, 1e-6, root=cos_func...
[ 198, 6738, 14078, 1330, 1813, 11, 7048, 11, 6460, 198, 6738, 14078, 13, 2536, 2397, 444, 1330, 36016, 198, 6738, 299, 32152, 1330, 8615, 198, 6738, 12972, 9288, 1330, 5561, 198, 198, 6738, 3049, 1381, 13, 40085, 786, 13, 3605, 1122, 6...
2.8
150
import cv2 import os import numpy as np # This module contains all common functions that are called in tester.py file # Given an image below function returns rectangle for face detected alongwith gray scale image # Given a directory below function returns part of gray_img which is face alongwith its label/ID # ...
[ 11748, 269, 85, 17, 198, 11748, 28686, 198, 11748, 299, 32152, 355, 45941, 628, 198, 2, 770, 8265, 4909, 477, 2219, 5499, 326, 389, 1444, 287, 256, 7834, 13, 9078, 2393, 628, 198, 2, 11259, 281, 2939, 2174, 2163, 5860, 35991, 329, 1...
4.57377
122
import argparse from os import listdir, mkdir from os.path import join, isdir from subprocess import call import sys import datasets from shutil import which """ Script to use pdftoppm to turn the pdfs into single images per page """ if __name__ == "__main__": parser = argparse.ArgumentParser(description='Cache...
[ 11748, 1822, 29572, 198, 6738, 28686, 1330, 1351, 15908, 11, 33480, 15908, 198, 6738, 28686, 13, 6978, 1330, 4654, 11, 318, 15908, 198, 6738, 850, 14681, 1330, 869, 198, 11748, 25064, 198, 11748, 40522, 198, 6738, 4423, 346, 1330, 543, ...
2.654155
373
""" A module that helps solving problems in physics. """ from . import units from .matrices import mgamma, msigma, minkowski_tensor, mdft __all__ = [ 'units', 'mgamma', 'msigma', 'minkowski_tensor', 'mdft', ]
[ 37811, 198, 32, 8265, 326, 5419, 18120, 2761, 287, 11887, 13, 198, 37811, 198, 198, 6738, 764, 1330, 4991, 198, 6738, 764, 6759, 45977, 1330, 10527, 321, 2611, 11, 13845, 13495, 11, 285, 676, 12079, 62, 83, 22854, 11, 45243, 701, 198,...
2.650602
83
printf("Hello world")
[ 37435, 7203, 15496, 995, 4943, 220, 198 ]
3.285714
7
from elasticsearch.client.utils import NamespacedClient, query_params, _make_path, SKIP_IN_PATH
[ 6738, 27468, 12947, 13, 16366, 13, 26791, 1330, 28531, 32416, 11792, 11, 12405, 62, 37266, 11, 4808, 15883, 62, 6978, 11, 14277, 4061, 62, 1268, 62, 34219, 628 ]
3.464286
28
# coding: utf-8 # Copyright (c) 2016, 2022, Oracle and/or its affiliates. All rights reserved. # This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may c...
[ 2, 19617, 25, 3384, 69, 12, 23, 198, 2, 15069, 357, 66, 8, 1584, 11, 33160, 11, 18650, 290, 14, 273, 663, 29116, 13, 220, 1439, 2489, 10395, 13, 198, 2, 770, 3788, 318, 10668, 12, 36612, 284, 345, 739, 262, 14499, 2448, 33532, 1...
3.057143
140
from typing import List import os import re
[ 6738, 19720, 1330, 7343, 198, 11748, 28686, 198, 11748, 302, 628, 628, 198 ]
3.692308
13
import dask import numpy as np import pandas as pd from epimargin.models import Age_SIRVD from epimargin.utils import annually, normalize, percent, years from studies.vaccine_allocation.commons import * from tqdm import tqdm import warnings warnings.filterwarnings("error") num_sims = 1000 simulation_range = 1...
[ 11748, 288, 2093, 198, 11748, 299, 32152, 355, 45941, 198, 11748, 19798, 292, 355, 279, 67, 198, 6738, 2462, 320, 853, 259, 13, 27530, 1330, 7129, 62, 50, 4663, 8898, 198, 6738, 2462, 320, 853, 259, 13, 26791, 1330, 13844, 11, 3487, ...
2.181818
814
'''Every agent has an agent state, which is its local view of the world''' import numpy as np import itertools
[ 7061, 6, 6109, 5797, 468, 281, 5797, 1181, 11, 543, 318, 663, 1957, 1570, 286, 262, 995, 7061, 6, 198, 11748, 299, 32152, 355, 45941, 198, 11748, 340, 861, 10141 ]
3.666667
30
from .server import app # noqa
[ 6738, 764, 15388, 1330, 598, 220, 1303, 645, 20402, 198 ]
3.2
10
# imports from . import coordinates from . import data from .modflow import * from . import utils from .data import mfdatascalar, mfdatalist, mfdataarray from .mfmodel import MFModel from .mfbase import ExtFileAction
[ 2, 17944, 198, 6738, 764, 1330, 22715, 198, 6738, 764, 1330, 1366, 198, 6738, 764, 4666, 11125, 1330, 1635, 198, 6738, 764, 1330, 3384, 4487, 198, 198, 6738, 764, 7890, 1330, 285, 16344, 265, 27747, 283, 11, 285, 16344, 10254, 396, 11...
3.30303
66
import sys # The unittest module got a significant overhaul # in 2.7, so if we're in 2.6 we can use the backported # version unittest2. if sys.version_info[:2] == (2, 6): import unittest2 as unittest import simplejson as json from ordereddict import OrderedDict else: import unittest import json ...
[ 11748, 25064, 628, 198, 2, 383, 555, 715, 395, 8265, 1392, 257, 2383, 18708, 198, 2, 287, 362, 13, 22, 11, 523, 611, 356, 821, 287, 362, 13, 21, 356, 460, 779, 262, 736, 9213, 198, 2, 2196, 555, 715, 395, 17, 13, 198, 361, 250...
2.903226
124
from typing import Union from flask import request from flask_restful import Resource from exceptions import InvalidRequestError from models import Scoring from utils import flask_response, rank, sort def secondary_sort(attr: str, side_of_ball: str) -> tuple: """ Determine the secondary sort attribute and ...
[ 6738, 19720, 1330, 4479, 198, 198, 6738, 42903, 1330, 2581, 198, 6738, 42903, 62, 2118, 913, 1330, 20857, 198, 198, 6738, 13269, 1330, 17665, 18453, 12331, 198, 6738, 4981, 1330, 1446, 3255, 198, 6738, 3384, 4487, 1330, 42903, 62, 26209, ...
2.964158
279
import configparser c = configparser.ConfigParser() c.read("production.ini") config = {} config['host'] = c['dboption']['chost'] config['port'] = int(c['dboption']['cport']) config['user'] = c['dboption']['cuser'] config['pw'] = c['dboption']['cpw'] config['db'] = c['dboption']['cdb'] config['homepath'] = c['option'][...
[ 11748, 4566, 48610, 198, 198, 66, 796, 4566, 48610, 13, 16934, 46677, 3419, 198, 66, 13, 961, 7203, 25493, 13, 5362, 4943, 198, 11250, 796, 23884, 198, 11250, 17816, 4774, 20520, 796, 269, 17816, 9945, 18076, 6, 7131, 6, 354, 455, 205...
2.184869
7,032
""" Coderpad solution """ if __name__ == "__main__": arr = [5,1,3,6,2,4] pend(arr) arr = [5, 1, 3, 2, 4] pend(arr) arr = [10, 4, 1, 5, 4, 3, 7, 9] pend(arr)
[ 37811, 198, 34, 12342, 15636, 4610, 198, 37811, 198, 198, 361, 11593, 3672, 834, 6624, 366, 834, 12417, 834, 1298, 198, 220, 220, 220, 5240, 796, 685, 20, 11, 16, 11, 18, 11, 21, 11, 17, 11, 19, 60, 198, 220, 220, 220, 44017, 7,...
1.759615
104
import os import configparser import json import time from IO.inputConfigParser import InputConfigParser from IO.redisDB import RedisDB from optimization.ModelException import MissingKeysException from optimization.controllerDiscrete import OptControllerDiscrete from optimization.controllerMpc import OptControllerMPC...
[ 11748, 28686, 198, 11748, 4566, 48610, 198, 11748, 33918, 198, 198, 11748, 640, 198, 198, 6738, 24418, 13, 15414, 16934, 46677, 1330, 23412, 16934, 46677, 198, 6738, 24418, 13, 445, 271, 11012, 1330, 2297, 271, 11012, 198, 6738, 23989, 13...
4.5
162
"""Unit tests for math-oriented common classes.""" import unittest import math import numpy as np from .vector import Vec3, OrthonormalBasis from .raycast_base import Ray from .camera import Camera if __name__ == '__main__': unittest.main()
[ 37811, 26453, 5254, 329, 10688, 12, 17107, 2219, 6097, 526, 15931, 198, 198, 11748, 555, 715, 395, 198, 11748, 10688, 198, 11748, 299, 32152, 355, 45941, 198, 198, 6738, 764, 31364, 1330, 38692, 18, 11, 47664, 261, 6636, 15522, 271, 198...
3.1625
80
# MIT License # # Copyright (c) 2015-2020 Iakiv Kramarenko # # 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, modif...
[ 2, 17168, 13789, 198, 2, 198, 2, 15069, 357, 66, 8, 1853, 12, 42334, 314, 461, 452, 509, 859, 5757, 7204, 198, 2, 198, 2, 2448, 3411, 318, 29376, 7520, 11, 1479, 286, 3877, 11, 284, 597, 1048, 16727, 257, 4866, 198, 2, 286, 428,...
3.622951
366
# -*- coding: utf-8 -*- # Copyright 2019 Cohesity Inc. import cohesity_management_sdk.models.continuous_schedule import cohesity_management_sdk.models.daily_schedule import cohesity_management_sdk.models.monthly_schedule import cohesity_management_sdk.models.rpo_schedule
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 2, 15069, 13130, 1766, 956, 414, 3457, 13, 198, 198, 11748, 763, 956, 414, 62, 27604, 62, 21282, 74, 13, 27530, 13, 18487, 5623, 62, 15952, 5950, 198, 11748, 763, 956,...
2.864583
96
#!/usr/bin/python # Copyright 2013 Mellanox Technologies, 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 applicab...
[ 2, 48443, 14629, 14, 8800, 14, 29412, 198, 2, 15069, 2211, 32993, 272, 1140, 21852, 11, 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, 2...
2.786747
830
from .launcher import Launcher from .model import DataModel from .layers import LayerManager from .labels import LabelManager from .singleton import Singleton
[ 198, 198, 6738, 764, 38722, 2044, 1330, 26385, 198, 6738, 764, 19849, 1330, 6060, 17633, 198, 6738, 764, 75, 6962, 1330, 34398, 13511, 198, 6738, 764, 23912, 1424, 1330, 36052, 13511, 198, 6738, 764, 12215, 10565, 1330, 5573, 10565, 198 ]
4.025
40
from typing import List, Union import numpy as np import pandas_datareader as pdr import pandas as pd import matplotlib.pyplot as plt def rsi(symbol :str ,name :str, date :str) -> None : """ Calculates and visualises the Relative Stock Index on a Stock of the company. Parameters: symbol(str) : Sy...
[ 6738, 19720, 1330, 7343, 11, 4479, 198, 11748, 299, 32152, 355, 45941, 198, 11748, 19798, 292, 62, 19608, 533, 5067, 355, 279, 7109, 198, 11748, 19798, 292, 355, 279, 67, 198, 11748, 2603, 29487, 8019, 13, 9078, 29487, 355, 458, 83, 6...
2.302242
1,115
import unittest import logging from ..basic import DictDatastore from ..key import Key from ..query import Query if __name__ == '__main__': unittest.main()
[ 198, 11748, 555, 715, 395, 198, 11748, 18931, 198, 198, 6738, 11485, 35487, 1330, 360, 713, 27354, 459, 382, 198, 6738, 11485, 2539, 1330, 7383, 198, 6738, 11485, 22766, 1330, 43301, 628, 628, 628, 628, 628, 628, 628, 628, 628, 628, 6...
2.904762
63
from django.db import models
[ 6738, 42625, 14208, 13, 9945, 1330, 4981, 628, 198 ]
3.444444
9
import torch DEVICE = torch.device("cuda") SAVED_CHECKPOINTS = [32*1000, 100*1000, 150*1000, 200*1000, 300*1000, 400*1000] SAVED_CHECKPOINTS += [10*1000, 20*1000, 30*1000, 40*1000, 50*1000, 60*1000, 70*1000, 80*1000, 90*1000] SAVED_CHECKPOINTS += [25*1000, 50*1000, 75*1000] SAVED_CHECKPOINTS = set(SAVED_CHECKPOINTS)...
[ 11748, 28034, 198, 198, 7206, 27389, 796, 28034, 13, 25202, 7203, 66, 15339, 4943, 198, 198, 4090, 53, 1961, 62, 50084, 16402, 1268, 4694, 796, 685, 2624, 9, 12825, 11, 1802, 9, 12825, 11, 6640, 9, 12825, 11, 939, 9, 12825, 11, 5867...
2.244755
143
#!/usr/bin/env python3 ############################################################################### # Module Imports ############################################################################### import pyscp import textwrap from dominate import tags as dt from . import core, lex, ext ########################...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 18, 198, 198, 29113, 29113, 7804, 4242, 21017, 198, 2, 19937, 1846, 3742, 198, 29113, 29113, 7804, 4242, 21017, 198, 198, 11748, 279, 893, 13155, 198, 11748, 2420, 37150, 198, 198, 6738, 1786...
3.393001
743
#!/usr/bin/env python3 import json from allenyoucert import Cert main()
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 18, 198, 198, 11748, 33918, 198, 6738, 477, 268, 5832, 22583, 1330, 14965, 198, 198, 12417, 3419, 198 ]
2.846154
26
from .common import *
[ 201, 198, 6738, 764, 11321, 1330, 1635, 201 ]
3
8
import os from cs50 import SQL from flask import Flask, flash, redirect, render_template, request, session from flask_session import Session from tempfile import mkdtemp from werkzeug.exceptions import default_exceptions, HTTPException, InternalServerError from werkzeug.security import check_password_hash, generate_pa...
[ 11748, 28686, 198, 198, 6738, 50115, 1120, 1330, 16363, 198, 6738, 42903, 1330, 46947, 11, 7644, 11, 18941, 11, 8543, 62, 28243, 11, 2581, 11, 6246, 198, 6738, 42903, 62, 29891, 1330, 23575, 198, 6738, 20218, 7753, 1330, 33480, 67, 2951...
3.187817
394
from django import forms from django.contrib.auth.models import User from django.forms.utils import ErrorList
[ 6738, 42625, 14208, 1330, 5107, 198, 6738, 42625, 14208, 13, 3642, 822, 13, 18439, 13, 27530, 1330, 11787, 198, 6738, 42625, 14208, 13, 23914, 13, 26791, 1330, 13047, 8053, 628 ]
3.7
30
from telethon.sync import TelegramClient from telethon.errors.rpcerrorlist import PhoneNumberBannedError import pickle, os from colorama import init, Fore from time import sleep init() n = Fore.RESET lg = Fore.LIGHTGREEN_EX r = Fore.RED w = Fore.WHITE cy = Fore.CYAN ye = Fore.YELLOW colors = [lg, r, w, cy, ye] try: ...
[ 6738, 5735, 400, 261, 13, 27261, 1330, 50203, 11792, 198, 6738, 5735, 400, 261, 13, 48277, 13, 81, 79, 2189, 1472, 4868, 1330, 14484, 15057, 33, 3577, 12331, 198, 11748, 2298, 293, 11, 28686, 198, 6738, 3124, 1689, 1330, 2315, 11, 455...
1.861939
3,187