content
stringlengths
1
1.04M
input_ids
listlengths
1
774k
ratio_char_token
float64
0.38
22.9
token_count
int64
1
774k
if __name__ == '__main__': print("This is program is being run by itself") else: print("i am being imported from another module") from mymodule import sayhi,version sayhi() print("Verison",version)
[ 361, 11593, 3672, 834, 6624, 705, 834, 12417, 834, 10354, 198, 220, 220, 220, 3601, 7203, 1212, 318, 1430, 318, 852, 1057, 416, 2346, 4943, 198, 17772, 25, 198, 220, 220, 220, 3601, 7203, 72, 716, 852, 17392, 422, 1194, 8265, 4943, ...
3.151515
66
#!/usr/bin/env python # -*- coding:utf-8 -*- import numpy as np import rmgpy.constants as constants from rmgpy.statmech import Conformer, IdealGasTranslation, LinearRotor, NonlinearRotor, HarmonicOscillator from rmgpy.qm.qmdata import QMData from rmgpy.qm.symmetry import PointGroupCalculator from .qchem import QChem...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 198, 2, 532, 9, 12, 19617, 25, 40477, 12, 23, 532, 9, 12, 198, 198, 11748, 299, 32152, 355, 45941, 198, 198, 11748, 374, 11296, 9078, 13, 9979, 1187, 355, 38491, 198, 6738, 374, 11296, ...
1.658856
1,451
from kokki import Package Package("pip", provider = "kokki.providers.package.easy_install.EasyInstallProvider" )
[ 198, 6738, 479, 482, 4106, 1330, 15717, 198, 198, 27813, 7203, 79, 541, 1600, 198, 220, 220, 220, 10131, 796, 366, 32004, 4106, 13, 15234, 4157, 13, 26495, 13, 38171, 62, 17350, 13, 28406, 15798, 29495, 1, 198, 8 ]
3.025641
39
from django.dispatch import Signal prefs_save = Signal(providing_args=['app', 'updated_prefs']) """Issued when dynamic preferences models are saved."""
[ 6738, 42625, 14208, 13, 6381, 17147, 1330, 26484, 628, 198, 3866, 9501, 62, 21928, 796, 26484, 7, 15234, 2530, 62, 22046, 28, 17816, 1324, 3256, 705, 43162, 62, 3866, 9501, 6, 12962, 198, 37811, 27738, 1739, 618, 8925, 15387, 4981, 389,...
3.422222
45
# Generated by Django 3.2.3 on 2021-06-13 05:29 import ckeditor.fields 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, 18, 319, 33448, 12, 3312, 12, 1485, 8870, 25, 1959, 198, 198, 11748, 269, 9091, 2072, 13, 25747, 198, 6738, 42625, 14208, 13, 10414, 1330, 6460, 198, 6738, 42625, 14208, 13, 9945, 1330, 157...
3.050847
59
import time import asyncio import aiopg import uvloop import asyncpg asyncio.set_event_loop_policy(uvloop.EventLoopPolicy()) dsn = 'dbname=rssant user=rssant password=rssant host=127.0.0.1' loop = asyncio.get_event_loop() loop.run_until_complete(run_aiopg()) loop = asyncio.get_event_loop() loop.run_until_compl...
[ 11748, 640, 198, 11748, 30351, 952, 198, 11748, 257, 14922, 70, 198, 11748, 334, 85, 26268, 198, 11748, 30351, 6024, 628, 198, 292, 13361, 952, 13, 2617, 62, 15596, 62, 26268, 62, 30586, 7, 14795, 26268, 13, 9237, 39516, 36727, 28955, ...
2.648438
128
from matplotlib import use # use("Qt5Agg") # use('TkAgg') from mpl_toolkits.mplot3d import Axes3D # Not explicitly used, but necessary from matplotlib.transforms import Affine2D # Not explicitly used, but necessary import mpl_toolkits.axisartist.floating_axes as floating_axe...
[ 6738, 2603, 29487, 8019, 1330, 779, 198, 2, 779, 7203, 48, 83, 20, 46384, 4943, 198, 2, 779, 10786, 51, 74, 46384, 11537, 198, 6738, 285, 489, 62, 25981, 74, 896, 13, 76, 29487, 18, 67, 1330, 12176, 274, 18, 35, 220, 220, 220, 2...
2.723894
565
"""setuptools module for uniscripts. """ # Always prefer setuptools over distutils from setuptools import setup, find_packages # To use a consistent encoding from codecs import open from os import path here = path.abspath(path.dirname(__file__)) # adapted from https://coderwall.com/p/qawuyq/use-markdown-readme-s-in-...
[ 37811, 2617, 37623, 10141, 8265, 329, 555, 2304, 1968, 82, 13, 198, 37811, 198, 198, 2, 16622, 4702, 900, 37623, 10141, 625, 1233, 26791, 198, 6738, 900, 37623, 10141, 1330, 9058, 11, 1064, 62, 43789, 198, 2, 1675, 779, 257, 6414, 210...
2.667503
797
import os import sys import numpy as np
[ 11748, 28686, 198, 11748, 25064, 198, 11748, 299, 32152, 355, 45941, 628 ]
3.416667
12
from pymongo import MongoClient client= MongoClient('localhost', 27017) db=client.db_cek if __name__=='__main__': main()
[ 6738, 279, 4948, 25162, 1330, 42591, 11792, 198, 198, 16366, 28, 42591, 11792, 10786, 36750, 3256, 2681, 29326, 8, 198, 9945, 28, 16366, 13, 9945, 62, 344, 74, 198, 198, 361, 11593, 3672, 834, 855, 6, 834, 12417, 834, 10354, 198, 220,...
2.73913
46
import numpy as np # Element-wise multiplication of three vectors
[ 11748, 299, 32152, 355, 45941, 628, 198, 2, 11703, 12, 3083, 48473, 286, 1115, 30104, 198 ]
4.25
16
import requests from django.shortcuts import render from django.contrib.auth.decorators import login_required from .models import Book # following line has to match the settings-file you are using from django.conf import settings def sync_zotero(request): """ renders a simple template with a button to trigger sy...
[ 11748, 7007, 198, 6738, 42625, 14208, 13, 19509, 23779, 1330, 8543, 198, 6738, 42625, 14208, 13, 3642, 822, 13, 18439, 13, 12501, 273, 2024, 1330, 17594, 62, 35827, 198, 198, 6738, 764, 27530, 1330, 4897, 198, 2, 1708, 1627, 468, 284, ...
2.264489
949
import os import subprocess file = "some_file.txt" with open(file, 'w') as opened_file: opened_file.write('Hola!') subprocess.run(["cat", file]) if os.path.exists(file): os.remove(file) assert not os.path.exists(file)
[ 11748, 28686, 198, 11748, 850, 14681, 198, 198, 7753, 796, 366, 11246, 62, 7753, 13, 14116, 1, 198, 4480, 1280, 7, 7753, 11, 705, 86, 11537, 355, 4721, 62, 7753, 25, 198, 220, 220, 220, 4721, 62, 7753, 13, 13564, 10786, 39, 5708, ...
2.48913
92
TASK_STAGES = ( ('n', 'Not Started'), ('i', 'In Progress'), ('r', 'In Review'), ('d', 'Done'), )
[ 51, 1921, 42, 62, 2257, 25552, 796, 357, 198, 220, 220, 220, 220, 220, 220, 220, 19203, 77, 3256, 705, 3673, 31026, 33809, 198, 220, 220, 220, 220, 220, 220, 220, 19203, 72, 3256, 705, 818, 18387, 33809, 198, 220, 220, 220, 220, 2...
1.821918
73
from urllib.parse import urlencode import uuid from formtools.wizard.storage.base import BaseStorage from formtools.wizard.storage.session import SessionStorage import requests from django.conf import settings from django.contrib.sessions.exceptions import SuspiciousSession from django.core.cache import cache from dj...
[ 6738, 2956, 297, 571, 13, 29572, 1330, 2956, 11925, 8189, 198, 11748, 334, 27112, 198, 198, 6738, 1296, 31391, 13, 86, 8669, 13, 35350, 13, 8692, 1330, 7308, 31425, 198, 6738, 1296, 31391, 13, 86, 8669, 13, 35350, 13, 29891, 1330, 235...
3.424658
146
import discord import aiohttp from bs4 import BeautifulSoup from discord.ext import commands from helpers import utilityfunctions as util
[ 11748, 36446, 198, 11748, 257, 952, 4023, 198, 6738, 275, 82, 19, 1330, 23762, 50, 10486, 198, 6738, 36446, 13, 2302, 1330, 9729, 198, 6738, 49385, 1330, 10361, 12543, 2733, 355, 7736, 628, 628 ]
4.147059
34
#!/usr/bin/env python # Copyright (c) 2018, 2019 Diamond Key Security, NFP # 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 not...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 198, 2, 15069, 357, 66, 8, 2864, 11, 13130, 220, 13566, 7383, 4765, 11, 399, 5837, 198, 2, 1439, 2489, 10395, 13, 198, 2, 198, 2, 2297, 396, 3890, 290, 779, 287, 2723, 290, 13934, 5107,...
2.235051
11,840
import math import pickle import torch import torch.nn.functional as F from torch import nn from torch_sparse import SparseTensor from estimation.sparse_to_dense import scipy_to_dense from models.GCNII_DenseLayer import GCNIIConv_arxiv from models.GCNII_layer import GCNIIdenseConv from estimation.generate_edge_index...
[ 11748, 10688, 198, 11748, 2298, 293, 198, 198, 11748, 28034, 198, 11748, 28034, 13, 20471, 13, 45124, 355, 376, 198, 6738, 28034, 1330, 299, 77, 198, 6738, 28034, 62, 82, 29572, 1330, 1338, 17208, 51, 22854, 198, 198, 6738, 31850, 13, ...
3.176871
147
from gtts import gTTS from pydub import AudioSegment AudioSegment.converter = "C:\\ffmpeg\\bin\\ffmpeg.exe" AudioSegment.ffmpeg = "C:\\ffmpeg\\bin\\ffmpeg.exe" AudioSegment.ffprobe ="C:\\ffmpeg\\bin\\ffprobe.exe" from pydub.playback import play import playsound tts = gTTS(text='Test Hatsune Miku', lang='en', slow=True...
[ 6738, 308, 83, 912, 1330, 308, 51, 4694, 198, 6738, 279, 5173, 549, 1330, 13491, 41030, 434, 198, 21206, 41030, 434, 13, 1102, 332, 353, 796, 366, 34, 25, 6852, 487, 43913, 6852, 8800, 6852, 487, 43913, 13, 13499, 1, 198, 21206, 410...
2.568966
290
from datetime import datetime from time import sleep import requests from mycroft import MycroftSkill, intent_handler from mycroft.audio import wait_while_speaking from mycroft.util.format import nice_duration, TimeResolution API_ENDPOINT = "https://example.com/api" API_KEY = "XXXXXXXXXXXXXXXXX" MINUTES = 60 # secon...
[ 6738, 4818, 8079, 1330, 4818, 8079, 198, 6738, 640, 1330, 3993, 198, 11748, 7007, 220, 198, 198, 6738, 616, 36714, 1330, 2011, 36714, 35040, 11, 6824, 62, 30281, 198, 6738, 616, 36714, 13, 24051, 1330, 4043, 62, 4514, 62, 25159, 198, ...
3.317308
104
#!/usr/bin/env python3 from sys import argv with open(argv[1]) as f: for line in f: length, numbers = line.rstrip("\n").split(";") duplicates = {} for n in numbers.split(","): if n in duplicates: print(n) break duplicates[n] = True
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 18, 198, 198, 6738, 25064, 1330, 1822, 85, 198, 198, 4480, 1280, 7, 853, 85, 58, 16, 12962, 355, 277, 25, 198, 220, 220, 220, 329, 1627, 287, 277, 25, 198, 220, 220, 220, 220, 220, 22...
1.921687
166
#Print multiples of 10 for numbers in a given range for num in range(5): if num > 0: print(num * 10)
[ 198, 2, 18557, 5021, 2374, 286, 838, 329, 3146, 287, 257, 1813, 2837, 198, 1640, 997, 287, 2837, 7, 20, 2599, 198, 220, 611, 997, 1875, 657, 25, 198, 220, 220, 220, 3601, 7, 22510, 1635, 838, 8 ]
2.815789
38
from SpaceUnitTest import SpaceUnitTest if __name__ == '__main__': unittest.main()
[ 6738, 4687, 26453, 14402, 1330, 4687, 26453, 14402, 198, 198, 361, 11593, 3672, 834, 6624, 705, 834, 12417, 834, 10354, 198, 220, 220, 220, 555, 715, 395, 13, 12417, 3419, 198 ]
2.83871
31
import torch from detectron2.layers import cat from bodyhands.utils.extend_utils_boxes import pairwise_ioa from detectron2.structures import Boxes
[ 11748, 28034, 198, 6738, 4886, 1313, 17, 13, 75, 6962, 1330, 3797, 220, 198, 6738, 1767, 43365, 13, 26791, 13, 2302, 437, 62, 26791, 62, 29305, 1330, 5166, 3083, 62, 952, 64, 198, 6738, 4886, 1313, 17, 13, 7249, 942, 1330, 8315, 274...
3.418605
43
""" mpltex ====== """ golden_ratio = (5**.5-1.0)/2.0 packages = ['amsmath', 'amssymb', 'amsfonts', 'amsbsy', 'bm'] usepackages = [r'\usepackage{{{0}}}'.format(pkg) for pkg in packages] def get_rcParams(fig_width_pt = 232.0, scale = 1.0, dpi = 600): """TODO: write a description Parameters ---------...
[ 37811, 198, 76, 489, 16886, 198, 50155, 198, 198, 37811, 198, 198, 24267, 268, 62, 10366, 952, 796, 357, 20, 1174, 13, 20, 12, 16, 13, 15, 20679, 17, 13, 15, 198, 43789, 796, 37250, 4105, 11018, 3256, 705, 321, 824, 88, 2022, 3256...
2.0067
597
#!/usr/bin/env python3 from constraint import * import pyexcel as pe from time import time # create the problem object problem = Problem(RecursiveBacktrackingSolver()) # import the Garam grid grid = pe.get_array(file_name='csp_grid.ods') n_lines, n_cols = len(grid), len(grid[0]) # display the Garam grid nicely prin...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 18, 198, 198, 6738, 32315, 1330, 1635, 198, 11748, 12972, 1069, 5276, 355, 613, 198, 6738, 640, 1330, 640, 198, 198, 2, 2251, 262, 1917, 2134, 198, 45573, 796, 20647, 7, 6690, 30753, 7282, ...
1.94993
2,137
# data = list(range(1, 46)) # # import random # # # def random_pop(data): # number = random.randint(0, len(data) - 1) # return data.pop(number) # # # for i in range(1, 7): # print(random_pop(data)) ## # import webbrowser # # url = "https://coastwatch.pfeg.noaa.gov/erddap/griddap/erdMH1chlamday.geotif?chlor...
[ 2, 1366, 796, 1351, 7, 9521, 7, 16, 11, 6337, 4008, 198, 2, 198, 2, 1330, 4738, 198, 2, 198, 2, 198, 2, 825, 4738, 62, 12924, 7, 7890, 2599, 198, 2, 220, 220, 220, 220, 1271, 796, 4738, 13, 25192, 600, 7, 15, 11, 18896, 7, ...
1.942553
470
from .base import * DEBUG = False WAGTAILSEARCH_BACKENDS = { 'default': { 'BACKEND': 'wagtail.wagtailsearch.backends.elasticsearch.ElasticSearch', 'INDEX': 'wagtaildemo' } } CACHES = { 'default': { 'BACKEND': 'redis_cache.cache.RedisCache', 'LOCATION': '127.0.0.1:6379', ...
[ 6738, 764, 8692, 1330, 1635, 198, 198, 30531, 796, 10352, 628, 198, 54, 4760, 5603, 4146, 5188, 31315, 62, 31098, 1677, 5258, 796, 1391, 198, 220, 220, 220, 705, 12286, 10354, 1391, 198, 220, 220, 220, 220, 220, 220, 220, 705, 31098, ...
2.135838
346
from sklearn import tree from sklearn.datasets import load_iris from sklearn.externals.six import StringIO import pydot from IPython.display import Image if __name__ == '__main__': iris = load_iris() print predictByDTC(iris.data, iris.target, iris.data[0:,])
[ 6738, 1341, 35720, 1330, 5509, 198, 6738, 1341, 35720, 13, 19608, 292, 1039, 1330, 3440, 62, 29616, 198, 198, 6738, 1341, 35720, 13, 1069, 759, 874, 13, 19412, 1330, 10903, 9399, 220, 220, 198, 11748, 279, 5173, 313, 198, 198, 6738, 6...
2.67619
105
import minimalmodbus import serial
[ 11748, 10926, 4666, 10885, 198, 11748, 11389, 198 ]
4.375
8
import os import sys from configparser import ConfigParser configr = ConfigParser() from subprocess import Popen as pop pp = os.getcwd() config = ConfigParser() val = [] path = pp para = path + "/det.ini" print(para) val2 = [] config.read(para) ad = config['installation']['installation'] print(pp) if ad == "False": ...
[ 11748, 28686, 198, 11748, 25064, 198, 6738, 4566, 48610, 1330, 17056, 46677, 198, 10414, 3692, 796, 17056, 46677, 3419, 198, 6738, 850, 14681, 1330, 8099, 268, 355, 1461, 198, 381, 796, 28686, 13, 1136, 66, 16993, 3419, 198, 11250, 796, ...
2.700389
257
# Generated by Django 3.2.9 on 2021-12-05 08:52 from django.db import migrations, models
[ 2, 2980, 515, 416, 37770, 513, 13, 17, 13, 24, 319, 33448, 12, 1065, 12, 2713, 8487, 25, 4309, 198, 198, 6738, 42625, 14208, 13, 9945, 1330, 15720, 602, 11, 4981, 628 ]
2.84375
32
text = " <option>Álvaro Obregón</option>\n" +" <option>Azcapotzalco</option>\n" +" <option>Benito Juárez</option>\n" +" <option>Coyoacán</option>\n" +" <option>Cuajimalpa de Morelos</option>\n" +" <option>Cuauhtémoc</option>...
[ 198, 5239, 796, 366, 1279, 18076, 29, 127, 223, 6780, 12022, 1835, 2301, 18840, 3556, 18076, 29, 59, 77, 1, 1343, 1, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1279, 18076, 29, ...
1.677177
666
# tk01.py import tkinter as tk main()
[ 2, 256, 74, 486, 13, 9078, 198, 11748, 256, 74, 3849, 355, 256, 74, 198, 198, 12417, 3419, 198 ]
2.052632
19
# # Author: Frantisek Kolacek <work@kolacek.it # Version: 1.0 # import logging import sqlite3 from datetime import datetime from .exception import StashDatabaseException
[ 2, 198, 2, 6434, 25, 1305, 415, 786, 74, 25910, 558, 74, 1279, 1818, 31, 74, 349, 558, 74, 13, 270, 198, 2, 10628, 25, 352, 13, 15, 198, 2, 198, 198, 11748, 18931, 198, 11748, 44161, 578, 18, 198, 6738, 4818, 8079, 1330, 4818, ...
2.982759
58
""" Handle only one request one time not good for developer Flask is a small and lightweight Python web framework that provides useful tools and features that make creating web applications in Python easier. It gives developers flexibility and is a more accessible framework for new developers since you can build a web...
[ 37811, 198, 37508, 691, 530, 2581, 530, 640, 198, 1662, 922, 329, 8517, 198, 198, 7414, 2093, 318, 257, 1402, 290, 18700, 11361, 3992, 9355, 326, 3769, 4465, 4899, 290, 3033, 326, 787, 4441, 3992, 5479, 287, 11361, 4577, 13, 198, 1026...
3.790323
310
from cerulean import Terminal
[ 6738, 26074, 2261, 272, 1330, 24523, 628, 628, 198 ]
3.777778
9
# Copyright 2014-2016 Ivan Kravets <me@ikravets.com> # # 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, 15069, 1946, 12, 5304, 21798, 509, 5758, 912, 1279, 1326, 31, 1134, 5758, 912, 13, 785, 29, 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.252448
2,349
# -*- coding: utf-8 -*- {%- set app = pillar.kedb.server %} from os.path import join, dirname, abspath, normpath DATABASES = { 'default': { {%- if app.database.engine == 'mysql' %} 'ENGINE': 'django.db.backends.mysql', 'PORT': '3306', 'OPTIONS': {'init_command': 'SET storage_engine...
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 90, 33963, 900, 598, 796, 30042, 13, 9091, 65, 13, 15388, 4064, 92, 198, 198, 6738, 28686, 13, 6978, 1330, 4654, 11, 26672, 3672, 11, 2352, 6978, 11, 2593, 6978, 198, ...
2.142733
1,149
#!/usr/bin/env python3 import re, sys import getopt, pickle import time, datetime import urllib.request import smtplib from email.mime.text import MIMEText import getpass # import browser_cookie3 # Create email with subject and body, then sends via gmail address provided # Gets and caches your gmail address # G...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 18, 198, 198, 11748, 302, 11, 25064, 198, 11748, 651, 8738, 11, 2298, 293, 198, 11748, 640, 11, 4818, 8079, 198, 198, 11748, 2956, 297, 571, 13, 25927, 198, 11748, 895, 83, 489, 571, 198,...
3.185714
140
import threading import logging LOCK = threading.Lock() logger = logging.getLogger("CERTBOT") handler = logging.StreamHandler() logger.addHandler(handler) logger.setLevel(logging.INFO)
[ 11748, 4704, 278, 198, 11748, 18931, 198, 198, 36840, 796, 4704, 278, 13, 25392, 3419, 198, 6404, 1362, 796, 18931, 13, 1136, 11187, 1362, 7203, 34, 17395, 33, 2394, 4943, 198, 30281, 796, 18931, 13, 12124, 25060, 3419, 198, 6404, 1362,...
3.1
60
from .WtBtAnalyst import WtBtAnalyst from .WtCtaOptimizer import WtCtaOptimizer __all__ = ["WtBtAnalyst","WtCtaOptimizer"]
[ 6738, 764, 54, 83, 33, 83, 2025, 21470, 1330, 370, 83, 33, 83, 2025, 21470, 201, 198, 6738, 764, 54, 83, 34, 8326, 27871, 320, 7509, 1330, 370, 83, 34, 8326, 27871, 320, 7509, 201, 198, 201, 198, 834, 439, 834, 796, 14631, 54, 8...
2.172414
58
#!/usr/bin/env python3 from collections import defaultdict from copy import copy from strips import * from golog_program import * from domains.math1 import S s = S(0) p = Sequence( Choose( Exec(S.incr()), Exec(S.double()) ), Choose( Exec(S.incr()...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 18, 198, 198, 6738, 17268, 1330, 4277, 11600, 198, 6738, 4866, 1330, 4866, 198, 6738, 22670, 1330, 1635, 198, 6738, 308, 928, 62, 23065, 1330, 1635, 198, 6738, 18209, 13, 11018, 16, 1330, 3...
1.930233
215
# Copyright (c) 2019 Works Applications 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 a...
[ 2, 15069, 357, 66, 8, 13130, 10933, 26622, 1766, 1539, 12052, 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, 2...
3.535885
209
"""Wrappers for rlpyt algorithms that inject reward from a custom reward model at execution time. TODO: need to figure out exactly how I'm going to do this for algorithms other than PG. Some notes: - For PG algorithms (PPO + A2C) it's easy to override the reward used at training time by subclassing & overriding the...
[ 37811, 36918, 11799, 329, 374, 75, 9078, 83, 16113, 326, 8677, 6721, 422, 257, 2183, 6721, 2746, 198, 265, 9706, 640, 13, 198, 198, 51, 3727, 46, 25, 761, 284, 3785, 503, 3446, 703, 314, 1101, 1016, 284, 466, 428, 329, 16113, 584, ...
3.492032
502
import pytest from unittest.mock import patch from ..alarm_time import diff_between_weekdays, get_next_weekday, next_time # time.localtime(126000) 35*60*60 # time.struct_time(tm_year=1970, tm_mon=1, tm_mday=2, # tm_hour=12, tm_min=0, tm_sec=0, # tm_wday=4, tm_yday=2, tm_isdst=0)
[ 11748, 12972, 9288, 198, 6738, 555, 715, 395, 13, 76, 735, 1330, 8529, 198, 198, 6738, 11485, 282, 1670, 62, 2435, 1330, 814, 62, 23395, 62, 10464, 12545, 11, 651, 62, 19545, 62, 10464, 820, 11, 1306, 62, 2435, 628, 198, 2, 640, 1...
1.893491
169
# Approach 1 # reverseList([1, 2, 3, 4, 5, 6], 0, 5) = [6 5 4 3 2 1] # Approach 2 # reverseList([1, 2, 3, 4, 5, 6], 0, 5) = [6 5 4 3 2 1]
[ 2, 38066, 352, 198, 198, 2, 9575, 8053, 26933, 16, 11, 362, 11, 513, 11, 604, 11, 642, 11, 718, 4357, 657, 11, 642, 8, 796, 685, 21, 642, 604, 513, 362, 352, 60, 628, 198, 2, 38066, 362, 198, 198, 2, 9575, 8053, 26933, 16, 1...
2
71
import requests import json import time import datetime import random import jwt from requests.models import Response
[ 11748, 7007, 198, 11748, 33918, 198, 11748, 640, 198, 11748, 4818, 8079, 198, 11748, 4738, 198, 11748, 474, 46569, 198, 6738, 7007, 13, 27530, 1330, 18261, 628 ]
4.407407
27
from django.db import models from django.contrib.auth.models import User from article.models import ArticlePost # django-ckeditor # from ckeditor.fields import RichTextField from ckeditor_uploader.fields import RichTextUploadingField # django-mptt from mptt.models import MPTTModel, TreeForeignKey # 博文的评论
[ 6738, 42625, 14208, 13, 9945, 1330, 4981, 198, 6738, 42625, 14208, 13, 3642, 822, 13, 18439, 13, 27530, 1330, 11787, 198, 6738, 2708, 13, 27530, 1330, 10172, 6307, 198, 2, 42625, 14208, 12, 694, 35352, 198, 2, 422, 269, 9091, 2072, 13...
3.019608
102
import torch import cv2 import numpy as np import os from models.cspnet import CSPNet_p3p4p5 from utils.keras_weights_loader import load_keras_weights from utils.utils import * if __name__ == '__main__': device = 'cuda:0' weights_path = 'net_e121_l0.hdf5' out_path = 'output/valresults/city/h/off/121' i...
[ 11748, 28034, 198, 11748, 269, 85, 17, 198, 11748, 299, 32152, 355, 45941, 198, 11748, 28686, 198, 6738, 4981, 13, 66, 2777, 3262, 1330, 327, 4303, 7934, 62, 79, 18, 79, 19, 79, 20, 198, 6738, 3384, 4487, 13, 6122, 292, 62, 43775, ...
2.013514
740
DEFAULT_BITS = 16
[ 7206, 38865, 62, 26094, 50, 796, 1467, 198 ]
2.25
8
#!/usr/bin/python
[ 2, 48443, 14629, 14, 8800, 14, 29412, 628, 198 ]
2.222222
9
#Escreva um programa que pergunte a quantidade de Km percorridos por um carro alugado e a quantidade de dias pelos quais ele foi alugado. Calcule o preço a pagar, sabendo que o carro custa R$60 por dia e R$0,15 por Km rodado. dias = int(input('Por quantos dias o carro foi alugado? ')) km = float(input('Quantos quilomet...
[ 2, 47051, 260, 6862, 23781, 1430, 64, 8358, 583, 70, 6311, 257, 5554, 312, 671, 390, 509, 76, 583, 10215, 6058, 418, 16964, 23781, 1097, 305, 435, 1018, 4533, 304, 257, 5554, 312, 671, 390, 2566, 292, 16176, 418, 627, 15152, 9766, 1...
2.405512
254
s='Some text with spaces' x=s.split() {i:x.count(i) for i in x}
[ 82, 11639, 4366, 2420, 351, 9029, 6, 198, 87, 28, 82, 13, 35312, 3419, 198, 90, 72, 25, 87, 13, 9127, 7, 72, 8, 329, 1312, 287, 2124, 92 ]
2.172414
29
import os from sphinx_scylladb_theme import override_rst_epilog, override_smv_latest_version
[ 11748, 28686, 198, 198, 6738, 599, 20079, 87, 62, 82, 948, 297, 324, 65, 62, 43810, 1330, 20957, 62, 81, 301, 62, 538, 346, 519, 11, 20957, 62, 5796, 85, 62, 42861, 62, 9641, 628, 628, 198 ]
2.648649
37
import unittest from httmock import HTTMock from myria.connection import MyriaConnection from myria.test.mock import * from myria.udf import MyriaFunction, MyriaPostgresFunction, myria_function from raco.backends.myria.connection import FunctionTypes from raco.myrial.parser import Parser
[ 11748, 555, 715, 395, 198, 198, 6738, 1841, 76, 735, 1330, 7154, 15972, 735, 198, 6738, 616, 7496, 13, 38659, 1330, 2011, 7496, 32048, 198, 6738, 616, 7496, 13, 9288, 13, 76, 735, 1330, 1635, 198, 6738, 616, 7496, 13, 463, 69, 1330,...
3.423529
85
from sport_activities_features.weather_identification import WeatherIdentification from sport_activities_features.tcx_manipulation import TCXFile #read TCX file tcx_file = TCXFile() tcx_data = tcx_file.read_one_file("path_to_the_file") #configure visual crossing api key visual_crossing_api_key = "API_KEY" # https://w...
[ 6738, 6332, 62, 15791, 871, 62, 40890, 13, 23563, 62, 738, 2649, 1330, 15615, 33234, 2649, 198, 6738, 6332, 62, 15791, 871, 62, 40890, 13, 23047, 87, 62, 805, 541, 1741, 1330, 17283, 55, 8979, 198, 198, 2, 961, 17283, 55, 2393, 198,...
3.120482
166
#!/usr/bin/env python # -*- coding: utf-8 -*- import os import os.path as op import shutil as su from datetime import datetime import numpy as np import pandas as pd import xarray as xr from scipy.io import loadmat from .geo import gc_distance # AUX. FUNCTIONs def geo_distance_azimuth(lat_matrix, lon_matrix, lat_p...
[ 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, 28686, 198, 11748, 28686, 13, 6978, 355, 1034, 198, 11748, 4423, 346, 355, 424, 198, 6738, 4818, 8079, 1330...
1.845631
13,837
import numpy as np import matplotlib.pyplot as plt k = 100 iters = 1000 episodes = 50 eps_01_rewards = np.zeros(iters) eps_1_rewards = np.zeros(iters) eps_decay_rewards = np.zeros(iters) ucb_rewards = np.zeros(iters) for i in range(episodes): random_test_list = [x for x in np.random.normal(0, 1, k)] eps_0...
[ 11748, 299, 32152, 355, 45941, 198, 11748, 2603, 29487, 8019, 13, 9078, 29487, 355, 458, 83, 198, 198, 74, 796, 1802, 198, 270, 364, 796, 8576, 198, 538, 8052, 796, 2026, 628, 198, 198, 25386, 62, 486, 62, 260, 2017, 796, 45941, 13,...
2.120805
596
# 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...
2.297566
12,367
# pylint: disable=unused-argument,unused-variable from datetime import datetime import pytest from xoto3.utils.oncall_default import NotSafeToDefaultError, OnCallDefault utcnow = OnCallDefault(datetime.utcnow) def test_disallow_positional_without_default(): """A positional-possible argument without a defaul...
[ 2, 279, 2645, 600, 25, 15560, 28, 403, 1484, 12, 49140, 11, 403, 1484, 12, 45286, 198, 6738, 4818, 8079, 1330, 4818, 8079, 198, 198, 11748, 12972, 9288, 198, 198, 6738, 2124, 2069, 18, 13, 26791, 13, 261, 13345, 62, 12286, 1330, 189...
3.10101
198
import os import sys import argparse import numpy as np import pandas as pd from pyntcloud.io import write_ply if __name__ == '__main__': main()
[ 11748, 28686, 198, 11748, 25064, 198, 11748, 1822, 29572, 198, 11748, 299, 32152, 355, 45941, 198, 11748, 19798, 292, 355, 279, 67, 198, 6738, 12972, 429, 17721, 13, 952, 1330, 3551, 62, 2145, 198, 198, 361, 11593, 3672, 834, 6624, 705,...
2.884615
52
""" Test installation of the Quotient offering, as well as testing signup with different combinations of selected benefactor factories """ from time import time from twisted.trial.unittest import TestCase from twisted.python.reflect import qual from axiom.scripts import axiomatic from axiom.store import Store from a...
[ 37811, 198, 14402, 9988, 286, 262, 2264, 313, 1153, 6011, 11, 355, 880, 355, 4856, 198, 12683, 929, 351, 1180, 17790, 286, 6163, 2204, 11218, 17590, 198, 37811, 198, 198, 6738, 640, 1330, 640, 198, 198, 6738, 19074, 13, 45994, 13, 403...
2.47081
1,062
import json import numpy as np
[ 11748, 33918, 198, 11748, 299, 32152, 355, 45941, 628 ]
3.555556
9
# -*- coding: utf-8 -*- from __future__ import absolute_import, division, print_function from builtins import object, zip from future.utils import PY2, as_native_str, string_types import datetime import io import os import re import sys from uuid import uuid4 import dateutil import pytz import requests from dateutil....
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 6738, 11593, 37443, 834, 1330, 4112, 62, 11748, 11, 7297, 11, 3601, 62, 8818, 198, 6738, 3170, 1040, 1330, 2134, 11, 19974, 198, 6738, 2003, 13, 26791, 1330, 350, 56, ...
2.263841
31,212
from fastapi import status from fastapi.testclient import TestClient from api import db from api.models import Card def test_get_legacy_card(client: TestClient, session: db.Session): """Must be able to read JSON for a legacy card""" # This is handled by a migration normally (legacy cards can't normally be cr...
[ 6738, 3049, 15042, 1330, 3722, 198, 6738, 3049, 15042, 13, 9288, 16366, 1330, 6208, 11792, 198, 198, 6738, 40391, 1330, 20613, 198, 6738, 40391, 13, 27530, 1330, 5172, 628, 198, 4299, 1332, 62, 1136, 62, 1455, 1590, 62, 9517, 7, 16366, ...
3.020979
1,001
#!/usr/bin/env python3 # -*- coding: utf-8 -*- # This file is part of CbM (https://github.com/ec-jrc/cbm). # Author : Gilbert Voican, Konstantinos Anastasakis # Credits : GTCAP Team # Copyright : 2021 European Commission, Joint Research Centre # License : 3-Clause BSD import os import psycopg2 # from psycopg2...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 18, 198, 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 198, 2, 770, 2393, 318, 636, 286, 327, 65, 44, 357, 5450, 1378, 12567, 13, 785, 14, 721, 12, 73, 6015, 14, 66...
2.654606
5,113
import torch import torch.nn as nn import torch.optim as optim from transformers import ( AdamW, get_linear_schedule_with_warmup, ) from .metrics import FullMetrics import pytorch_lightning as pl from pytorch_lightning import loggers as pl_loggers
[ 11748, 28034, 198, 11748, 28034, 13, 20471, 355, 299, 77, 198, 11748, 28034, 13, 40085, 355, 6436, 198, 6738, 6121, 364, 1330, 357, 198, 220, 220, 220, 7244, 54, 11, 198, 220, 220, 220, 651, 62, 29127, 62, 15952, 5950, 62, 4480, 62,...
2.747475
99
input_file = open("input.txt", "r") lines = input_file.read().splitlines() #Read whole file, split by newlines lines = [int(i) for i in lines] lines.sort() lines.append(lines[-1]+3) oneDifference = 0 threeDifference = 0 previousJoltage = 0 for outlet in lines: if outlet - 3 == previousJoltage: threeDiffer...
[ 15414, 62, 7753, 796, 1280, 7203, 15414, 13, 14116, 1600, 366, 81, 4943, 198, 6615, 796, 5128, 62, 7753, 13, 961, 22446, 35312, 6615, 3419, 220, 1303, 5569, 2187, 2393, 11, 6626, 416, 649, 6615, 198, 6615, 796, 685, 600, 7, 72, 8, ...
2.841837
196
#!/usr/bin/env python # -*- coding: utf-8 -*- import logging import argparse from core.web import webapp logging.basicConfig(format='%(levelname)s:%(module)s:%(message)s', level=logging.ERROR) COMMANDS = { 'webserver': webserver, 'syncdb': syncdb, } 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, 18931, 198, 11748, 1822, 29572, 198, 198, 6738, 4755, 13, 12384, 1330, 3992, 1324, 198, 198, 6404, 2667, 13...
2.393701
127
# Spaces minsp = 0 maxsp = 500 # Admin's configuration print("Hey Admin!") sw = str(input("Make up a word : ")) guesses = float(input("How many guesses should the user have : ")) h = str(input("Do you want to give the user a hint? y/n : ")) guess = '' gc = 0 # Admin's hint if h == 'y': hint = str(input("What hin...
[ 2, 48086, 198, 42951, 79, 796, 657, 198, 9806, 2777, 796, 5323, 198, 198, 2, 32053, 338, 8398, 198, 4798, 7203, 10814, 32053, 2474, 8, 198, 2032, 796, 965, 7, 15414, 7203, 12050, 510, 257, 1573, 1058, 366, 4008, 198, 5162, 44667, 79...
2.383743
529
import enum import requests import sseclient from json import loads from typing import Callable from typing import Generator from typing import Tuple from pycspr.api import NodeConnectionInfo class NodeSseChannelType(enum.Enum): """ Enumeration over set of exposed node SEE event types. """ deploys = enum.aut...
[ 11748, 33829, 198, 11748, 7007, 198, 11748, 264, 325, 16366, 198, 6738, 33918, 1330, 15989, 198, 6738, 19720, 1330, 4889, 540, 198, 6738, 19720, 1330, 35986, 198, 6738, 19720, 1330, 309, 29291, 198, 198, 6738, 12972, 6359, 1050, 13, 15042...
2.304885
1,863
# library imports from django.db import models from django.core.validators import MaxValueValidator, MinValueValidator # property imports from .properties import * # import socket # Koennte die richtige Loesung sein...
[ 2, 5888, 17944, 198, 6738, 42625, 14208, 13, 9945, 1330, 4981, 198, 6738, 42625, 14208, 13, 7295, 13, 12102, 2024, 1330, 5436, 11395, 47139, 1352, 11, 1855, 11395, 47139, 1352, 198, 198, 2, 3119, 17944, 198, 6738, 764, 48310, 1330, 1635...
3.622951
61
#!/usr/bin/env python3 import sys main()
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 18, 198, 198, 11748, 25064, 628, 198, 198, 12417, 3419, 198 ]
2.368421
19
import unittest, types from pyvisdk import Vim from tests.common import get_options from pyvisdk.facade.task import TaskManager TASKS = ['hello world', 'I hate VMware', 'me too', 'This is a very long task name, a very very long name', 'school sucks', 'one more', 'l...
[ 11748, 555, 715, 395, 11, 3858, 198, 6738, 12972, 4703, 34388, 1330, 36645, 198, 6738, 5254, 13, 11321, 1330, 651, 62, 25811, 198, 6738, 12972, 4703, 34388, 13, 38942, 671, 13, 35943, 1330, 15941, 13511, 198, 198, 51, 1921, 27015, 796, ...
2.383333
180
#! /usr/bin/python3 ############################################################# ### Helper File for TFRecords and Image manipulation ######## ############################################################# import tensorflow as tf import numpy as np ## Label mapping for Cityscapes (34 classes) Cityscapes34_I...
[ 2, 0, 1220, 14629, 14, 8800, 14, 29412, 18, 201, 198, 29113, 14468, 7804, 4242, 2, 201, 198, 21017, 5053, 525, 9220, 329, 24958, 6690, 3669, 290, 7412, 17512, 46424, 21017, 220, 201, 198, 29113, 14468, 7804, 4242, 2, 201, 198, 11748, ...
2.256084
4,397
from widgetastic.utils import ParametrizedLocator from widgetastic.widget import ClickableMixin from widgetastic.widget import Widget from widgetastic.xpath import quote class Button(BaseButton, Widget, ClickableMixin): """A Patternfly button You can match by text, partial text or by attributes, you can als...
[ 6738, 26295, 3477, 13, 26791, 1330, 25139, 316, 380, 8863, 33711, 1352, 198, 6738, 26295, 3477, 13, 42655, 1330, 6914, 540, 35608, 259, 198, 6738, 26295, 3477, 13, 42655, 1330, 370, 17484, 198, 6738, 26295, 3477, 13, 87, 6978, 1330, 957...
2.93609
266
import analyser.caption_factory import data_connector.model_sentence import data_connector.model_word import data_connector.data_manager from xml.etree.ElementTree import * import re import sys sys.path.append("../") from log_writer import LogWriter
[ 11748, 11090, 263, 13, 6888, 1159, 62, 69, 9548, 198, 11748, 1366, 62, 8443, 273, 13, 19849, 62, 34086, 594, 198, 11748, 1366, 62, 8443, 273, 13, 19849, 62, 4775, 198, 11748, 1366, 62, 8443, 273, 13, 7890, 62, 37153, 198, 6738, 3555...
3.346667
75
from __future__ import absolute_import # Copyright (c) 2010-2015 openpyxl """Reader for a single worksheet.""" from io import BytesIO # compatibility imports from openpyxl.xml.functions import iterparse # package imports from openpyxl.cell import Cell from openpyxl.worksheet import Worksheet, ColumnDimension, RowDim...
[ 6738, 11593, 37443, 834, 1330, 4112, 62, 11748, 198, 2, 15069, 357, 66, 8, 3050, 12, 4626, 1280, 9078, 87, 75, 198, 198, 37811, 33634, 329, 257, 2060, 2499, 25473, 526, 15931, 198, 6738, 33245, 1330, 2750, 4879, 9399, 198, 198, 2, 1...
2.657746
710
""" ================================= Creating a dataset class in MOABB ================================= """ # Authors: Pedro L. C. Rodrigues, Sylvain Chevallier # # https://github.com/plcrodrigues/Workshop-MOABB-BCI-Graz-2019 import numpy as np from scipy.io import savemat, loadmat import mne from moab...
[ 37811, 201, 198, 10052, 28, 201, 198, 32071, 257, 27039, 1398, 287, 13070, 6242, 33, 201, 198, 10052, 28, 201, 198, 37811, 201, 198, 2, 46665, 25, 28855, 406, 13, 327, 13, 16114, 947, 11, 24286, 391, 25233, 439, 959, 201, 198, 2, ...
2.792734
2,147
# -*- encoding: utf-8 -*- from unittest import TestCase from sqlalchemy import create_engine from sqlalchemy.orm import sessionmaker from sqlalchemy_filterparams_tests.models import ( Base, )
[ 2, 532, 9, 12, 21004, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 198, 6738, 555, 715, 395, 1330, 6208, 20448, 198, 6738, 44161, 282, 26599, 1330, 2251, 62, 18392, 198, 6738, 44161, 282, 26599, 13, 579, 1330, 6246, 10297, 198, 198, 673...
3.030303
66
from heisen.config import settings from jsonrpclib.request import ConnectionPool rpc_call = get_rpc_connection()
[ 6738, 339, 13254, 13, 11250, 1330, 6460, 198, 6738, 33918, 81, 79, 565, 571, 13, 25927, 1330, 26923, 27201, 628, 198, 198, 81, 14751, 62, 13345, 796, 651, 62, 81, 14751, 62, 38659, 3419, 198 ]
3.314286
35
import numpy as np
[ 11748, 299, 32152, 355, 45941, 198 ]
3.166667
6
import subprocess from functools import partial from django.core.management.base import BaseCommand from django.conf import settings from pathlib import Path import os run = partial(subprocess.run, shell=True, check=True) class Command(BaseCommand): """Update pytition install """
[ 11748, 850, 14681, 198, 6738, 1257, 310, 10141, 1330, 13027, 198, 6738, 42625, 14208, 13, 7295, 13, 27604, 13, 8692, 1330, 7308, 21575, 198, 6738, 42625, 14208, 13, 10414, 1330, 6460, 198, 6738, 3108, 8019, 1330, 10644, 198, 11748, 28686,...
3.518072
83
# AUTOGENERATED! DO NOT EDIT! File to edit: ttbarzp.ipynb (unless otherwise specified). __all__ = ['get_elijah_ttbarzp_cs', 'get_manuel_ttbarzp_cs', 'import47Ddata', 'get47Dfeatures'] # Cell import numpy as np import tensorflow as tf # Cell def get_elijah_ttbarzp_cs(): r""" Contains cross section information...
[ 2, 47044, 7730, 1677, 1137, 11617, 0, 8410, 5626, 48483, 0, 9220, 284, 4370, 25, 256, 83, 5657, 89, 79, 13, 541, 2047, 65, 357, 25252, 4306, 7368, 737, 198, 198, 834, 439, 834, 796, 37250, 1136, 62, 417, 32778, 62, 926, 5657, 89, ...
2.133626
1,594
import os import re import sys from .core import Migration from .core.exceptions import MigrationException from .helpers import Utils from getpass import getpass from .cli import CLI
[ 11748, 28686, 198, 11748, 302, 198, 11748, 25064, 198, 198, 6738, 764, 7295, 1330, 36991, 198, 6738, 764, 7295, 13, 1069, 11755, 1330, 36991, 16922, 198, 6738, 764, 16794, 364, 1330, 7273, 4487, 198, 6738, 651, 6603, 1330, 651, 6603, 19...
3.914894
47
# Generated by Django 2.0.7 on 2018-08-06 02:02 from django.db import migrations, models
[ 2, 2980, 515, 416, 37770, 362, 13, 15, 13, 22, 319, 2864, 12, 2919, 12, 3312, 7816, 25, 2999, 198, 198, 6738, 42625, 14208, 13, 9945, 1330, 15720, 602, 11, 4981, 628 ]
2.84375
32
from setuptools import setup, find_packages setup( name="PyRundeck", version="0.3.7", description="A thin, pure Python wrapper for the Rundeck API", author="Panagiotis Koutsourakis", author_email="kutsurak@ekt.gr", license='BSD', url='https://github.com/EKT/pyrundeck', classifiers=[ ...
[ 6738, 900, 37623, 10141, 1330, 9058, 11, 1064, 62, 43789, 198, 198, 40406, 7, 198, 220, 220, 220, 1438, 2625, 20519, 49, 917, 68, 694, 1600, 198, 220, 220, 220, 2196, 2625, 15, 13, 18, 13, 22, 1600, 198, 220, 220, 220, 6764, 2625,...
2.311637
507
from abc import ABCMeta, abstractmethod from multiprocessing import cpu_count from numpy import exp, conj, zeros, complex64 from numba import jit from pyfftw.builders import fft2, ifft2 class DiffractionExecutor(metaclass=ABCMeta): """ Abstract class for diffraction object. The class takes on the input in...
[ 6738, 450, 66, 1330, 9738, 48526, 11, 12531, 24396, 198, 6738, 18540, 305, 919, 278, 1330, 42804, 62, 9127, 198, 6738, 299, 32152, 1330, 1033, 11, 11644, 11, 1976, 27498, 11, 3716, 2414, 198, 6738, 997, 7012, 1330, 474, 270, 198, 6738...
2.363829
1,891
# Generated by Django 3.2.2 on 2021-05-16 03:23 from django.conf import settings import django.core.validators from django.db import migrations, models import django.db.models.deletion
[ 2, 2980, 515, 416, 37770, 513, 13, 17, 13, 17, 319, 33448, 12, 2713, 12, 1433, 7643, 25, 1954, 198, 198, 6738, 42625, 14208, 13, 10414, 1330, 6460, 198, 11748, 42625, 14208, 13, 7295, 13, 12102, 2024, 198, 6738, 42625, 14208, 13, 99...
3.065574
61
# # PySNMP MIB module APPN-DLUR-MIB (http://snmplabs.com/pysmi) # ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/APPN-DLUR-MIB # Produced by pysmi-0.3.4 at Mon Apr 29 17:08:22 2019 # On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4 # Using Python version 3.7.3 (default, Mar 27 201...
[ 2, 198, 2, 9485, 15571, 7378, 337, 9865, 8265, 3486, 13137, 12, 19260, 4261, 12, 8895, 33, 357, 4023, 1378, 16184, 76, 489, 8937, 13, 785, 14, 79, 893, 11632, 8, 198, 2, 7054, 45, 13, 16, 2723, 2393, 1378, 14, 14490, 14, 67, 615...
2.423964
5,116
from django.urls import path from planning.views import main app_name = 'planning' urlpatterns = [ path('', main, name='main'), ]
[ 6738, 42625, 14208, 13, 6371, 82, 1330, 3108, 198, 198, 6738, 5410, 13, 33571, 1330, 1388, 198, 198, 1324, 62, 3672, 796, 705, 11578, 768, 6, 198, 6371, 33279, 82, 796, 685, 198, 220, 220, 220, 3108, 10786, 3256, 1388, 11, 1438, 116...
2.833333
48
# Base conversion algorithm # Fastest way to convert bases # Note this does it in reverse so the strings and the strings elements # must be reversed usrNum = int(input("Enter a number to convert:\n")) usrBase = int(input("Enter a base:\n")) print(baseConvert(usrNum, usrBase))
[ 2, 7308, 11315, 11862, 198, 2, 12549, 395, 835, 284, 10385, 12536, 198, 2, 5740, 428, 857, 340, 287, 9575, 523, 262, 13042, 290, 262, 13042, 4847, 198, 2, 1276, 307, 17687, 628, 198, 198, 14629, 33111, 796, 493, 7, 15414, 7203, 1746...
3.544304
79
from blinkstick import blinkstick
[ 6738, 21019, 13915, 1330, 21019, 13915, 198 ]
4.857143
7
"""Feature extraction tools based off a two channel EEG recording""" import numpy as np from classification.config.constants import ( EEG_CHANNELS, AGE_FEATURE_BINS, ) from classification.features.pipeline import get_feature_union def get_eeg_features(epochs, in_bed_seconds, out_of_bed_seconds): """Retur...
[ 37811, 38816, 22236, 4899, 1912, 572, 257, 734, 6518, 48749, 8296, 37811, 198, 11748, 299, 32152, 355, 45941, 198, 198, 6738, 17923, 13, 11250, 13, 9979, 1187, 1330, 357, 198, 220, 220, 220, 48749, 62, 3398, 22846, 37142, 11, 198, 220, ...
2.771739
644
preference_list_of_user=[]
[ 3866, 4288, 62, 4868, 62, 1659, 62, 7220, 28, 21737 ]
2.6
10
import os import re from bs4 import BeautifulSoup from string import ascii_lowercase base_file = "OPTED/words_X.html" fiveletter = [] for letter in ascii_lowercase: file = base_file.replace("X",letter) with open(file, "r") as f: html = f.read() words = BeautifulSoup(html, "html.parser").find_al...
[ 11748, 28686, 198, 11748, 302, 198, 198, 6738, 275, 82, 19, 1330, 23762, 50, 10486, 198, 6738, 4731, 1330, 355, 979, 72, 62, 21037, 7442, 198, 198, 8692, 62, 7753, 796, 366, 3185, 36493, 14, 10879, 62, 55, 13, 6494, 1, 198, 198, 1...
2.260135
296
import unittest from unittest.mock import patch from models.coordinate import Coordinate
[ 11748, 555, 715, 395, 198, 6738, 555, 715, 395, 13, 76, 735, 1330, 8529, 198, 6738, 4981, 13, 37652, 4559, 1330, 22819, 4559, 628 ]
3.75
24
"""Realization of algorithms for char-by-char text encryption. Functions: rot_13(str) -> str Character offset by 13 positions. caesar_1(str) -> str Character offset by 1 position. """ def rot_13(char_in: str) -> str: """Character offset by 13 positions. Parameters: char_in :...
[ 37811, 15633, 1634, 286, 16113, 329, 1149, 12, 1525, 12, 10641, 2420, 15835, 13, 198, 198, 24629, 2733, 25, 198, 220, 220, 220, 5724, 62, 1485, 7, 2536, 8, 4613, 965, 198, 220, 220, 220, 220, 220, 220, 220, 15684, 11677, 416, 1511, ...
2.277567
526
import unittest import asyncio from lbry import utils from torba.testcase import AsyncioTestCase
[ 11748, 555, 715, 395, 198, 11748, 30351, 952, 198, 6738, 18360, 563, 1330, 3384, 4487, 198, 6738, 7332, 7012, 13, 9288, 7442, 1330, 1081, 13361, 952, 14402, 20448, 628, 628, 198 ]
3.258065
31