content
stringlengths
1
1.04M
input_ids
listlengths
1
774k
ratio_char_token
float64
0.38
22.9
token_count
int64
1
774k
''' Comparisons and boolean are important, and they will continue to be throughout all your programming tasks. The while loop allows you to continue to execute statements 'while' some condition is true. while <expr> : <statements> <expr> here is just like in the if statement. It needs ...
[ 7061, 6, 198, 220, 220, 220, 22565, 9886, 290, 25131, 389, 1593, 11, 290, 484, 481, 2555, 284, 307, 3690, 477, 534, 220, 198, 220, 220, 220, 8300, 8861, 13, 220, 628, 220, 220, 220, 383, 981, 9052, 3578, 345, 284, 2555, 284, 12260...
3.264271
473
# Generated by Django 3.1.3 on 2020-11-28 17:56 from django.db import migrations, models import django.db.models.deletion
[ 2, 2980, 515, 416, 37770, 513, 13, 16, 13, 18, 319, 12131, 12, 1157, 12, 2078, 1596, 25, 3980, 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
''' Shows how to create single color images ''' import cv2 from cr import vision as vision image = vision.single_color_image(500, 500, vision.GOLD) cv2.imshow('image', image) cv2.waitKey() image = vision.single_color_image(500, 500, 128) cv2.imshow('image', image) cv2.waitKey()
[ 7061, 6, 198, 2484, 1666, 703, 284, 2251, 2060, 3124, 4263, 198, 7061, 6, 198, 11748, 269, 85, 17, 198, 6738, 1067, 1330, 5761, 355, 5761, 198, 198, 9060, 796, 5761, 13, 29762, 62, 8043, 62, 9060, 7, 4059, 11, 5323, 11, 5761, 13, ...
2.764706
102
if __name__ == "__main__": n = int(input("Entert the Fibonacci range:")) check_fib(n)
[ 201, 198, 201, 198, 361, 11593, 3672, 834, 6624, 366, 834, 12417, 834, 1298, 201, 198, 220, 220, 220, 299, 796, 493, 7, 15414, 7203, 17469, 83, 262, 41566, 261, 44456, 2837, 11097, 4008, 201, 198, 220, 220, 220, 2198, 62, 69, 571, ...
2.152174
46
from ldap3 import Server, Connection, ALL from datetime import datetime as livetime from app.models import User
[ 6738, 300, 67, 499, 18, 1330, 9652, 11, 26923, 11, 11096, 201, 198, 6738, 4818, 8079, 1330, 4818, 8079, 355, 2107, 2435, 201, 198, 6738, 598, 13, 27530, 1330, 11787, 201, 198, 201, 198 ]
3.441176
34
from ortools.sat.python import cp_model import pandas as pd from collections import defaultdict import sys log = ""
[ 6738, 393, 31391, 13, 49720, 13, 29412, 1330, 31396, 62, 19849, 198, 11748, 19798, 292, 355, 279, 67, 198, 6738, 17268, 1330, 4277, 11600, 198, 11748, 25064, 198, 198, 6404, 796, 13538, 628, 198 ]
3.5
34
#!/usr/bin/python # -*- coding: utf-8 -*- import pytest import numpy as np import zfit from hepstats.hypotests.parameters import POI, POIarray
[ 2, 48443, 14629, 14, 8800, 14, 29412, 198, 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 11748, 12972, 9288, 198, 11748, 299, 32152, 355, 45941, 198, 11748, 1976, 11147, 198, 198, 6738, 47585, 34242, 13, 36362, 313, ...
2.636364
55
from transformer_2.layers.multihead_attention import MultiheadAttention from transformer_2.layers.transistor import Transistor __all__ = ['MultiheadAttention', 'Transistor']
[ 6738, 47385, 62, 17, 13, 75, 6962, 13, 41684, 2256, 62, 1078, 1463, 1330, 15237, 2256, 8086, 1463, 198, 6738, 47385, 62, 17, 13, 75, 6962, 13, 7645, 32380, 1330, 3602, 32380, 628, 198, 834, 439, 834, 796, 37250, 29800, 2256, 8086, 1...
3.591837
49
""" Compare two integers given as strings. Example For a = "12" and b = "13", the output should be compareIntegers(a, b) = "less"; For a = "875" and b = "799", the output should be compareIntegers(a, b) = "greater"; For a = "1000" and b = "1000", the output should be compareIntegers(a, b) = "equal". """
[ 37811, 198, 41488, 734, 37014, 1813, 355, 13042, 13, 198, 198, 16281, 198, 198, 1890, 257, 796, 366, 1065, 1, 290, 275, 796, 366, 1485, 1600, 262, 5072, 815, 307, 198, 5589, 533, 34500, 364, 7, 64, 11, 275, 8, 796, 366, 1203, 8172...
2.783784
111
# This code parses date/times, so please # # pip install python-dateutil # # To use this code, make sure you # # import json # # and then, to convert JSON from a string, do # # result = article_model_from_dict(json.loads(json_string)) from enum import Enum from dataclasses import dataclass from typing impo...
[ 2, 770, 2438, 13544, 274, 3128, 14, 22355, 11, 523, 3387, 198, 2, 198, 2, 220, 220, 220, 220, 7347, 2721, 21015, 12, 4475, 22602, 198, 2, 198, 2, 1675, 779, 428, 2438, 11, 787, 1654, 345, 198, 2, 198, 2, 220, 220, 220, 220, 13...
2.832432
185
MAX_PAGE_SIZE = 1000
[ 22921, 62, 4537, 8264, 62, 33489, 796, 8576, 198 ]
2.333333
9
""" Created on Feb 27, 2017 @author: Siyuan Huang Training and Testing Code for Subactivity LSTM """ from __future__ import print_function import numpy as np import json import h5py import glob import scipy.io import os from keras.preprocessing import sequence from keras.preprocessing.image import ImageDataGenerato...
[ 37811, 198, 41972, 319, 3158, 2681, 11, 2177, 198, 198, 31, 9800, 25, 311, 7745, 7258, 31663, 198, 198, 44357, 290, 23983, 6127, 329, 3834, 21797, 406, 2257, 44, 198, 198, 37811, 198, 198, 6738, 11593, 37443, 834, 1330, 3601, 62, 8818...
3.231884
207
# coding=utf-8 # *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** import pulumi import pulumi.runtime from .. import utilities, tables class API(pulumi.CustomResource): """ Manages an API Mana...
[ 2, 19617, 28, 40477, 12, 23, 198, 2, 17202, 39410, 25, 428, 2393, 373, 7560, 416, 262, 21624, 12994, 24118, 687, 10290, 357, 27110, 5235, 8, 16984, 13, 17202, 198, 2, 17202, 2141, 407, 4370, 416, 1021, 4556, 345, 821, 1728, 345, 760...
2.575642
1,051
from .crawler import start_tweet_crawler
[ 6738, 764, 66, 39464, 1330, 923, 62, 83, 7277, 62, 66, 39464 ]
3.333333
12
"""empty message Revision ID: 611965970ba7 Revises: fbf389ef5017 Create Date: 2020-12-01 11:01:05.140699 """ from alembic import op import sqlalchemy as sa # revision identifiers, used by Alembic. revision = '123ewrwerwe' down_revision = '611965970ba7' branch_labels = None depends_on = None
[ 37811, 28920, 3275, 198, 198, 18009, 1166, 4522, 25, 8454, 1129, 36445, 2154, 7012, 22, 198, 18009, 2696, 25, 277, 19881, 29769, 891, 20, 29326, 198, 16447, 7536, 25, 12131, 12, 1065, 12, 486, 1367, 25, 486, 25, 2713, 13, 1415, 3312, ...
2.614035
114
import os, sys sys.path.insert(0, os.path.abspath("..")) import pytest import pycaret.nlp import pycaret.datasets if __name__ == "__main__": test()
[ 11748, 28686, 11, 25064, 198, 17597, 13, 6978, 13, 28463, 7, 15, 11, 28686, 13, 6978, 13, 397, 2777, 776, 7203, 492, 48774, 198, 198, 11748, 12972, 9288, 198, 11748, 12972, 6651, 83, 13, 21283, 79, 198, 11748, 12972, 6651, 83, 13, 1...
2.323529
68
# coding=utf-8 import mock import os import pandas as pd import pytest from flexmock import flexmock from sportsreference import utils from sportsreference.mlb.roster import Player, Roster from sportsreference.mlb.teams import Team YEAR = 2017
[ 2, 19617, 28, 40477, 12, 23, 198, 11748, 15290, 198, 11748, 28686, 198, 11748, 19798, 292, 355, 279, 67, 198, 11748, 12972, 9288, 198, 6738, 7059, 76, 735, 1330, 7059, 76, 735, 198, 6738, 5701, 35790, 1330, 3384, 4487, 198, 6738, 5701...
3.315789
76
# coding=utf-8 # Author: Diego González Chávez # email : diegogch@cbpf.br / diego.gonzalez.chavez@gmail.com # # This class controls the: # Network/Spectrum/Impedance Analyzer # HP / Agilent : 4395A # # TODO: # Clean code # Make documentation import time as _time import numpy as _np from .instruments_base import Instr...
[ 2, 19617, 28, 40477, 12, 23, 198, 198, 2, 6434, 25, 9500, 17109, 6557, 36858, 609, 6557, 33425, 198, 2, 3053, 1058, 4656, 70, 519, 354, 31, 21101, 79, 69, 13, 1671, 1220, 4656, 2188, 13, 70, 13569, 22149, 13, 354, 28851, 31, 14816...
2.863636
154
""" Processor is a node that calculates how long it takes to process a message. """ import pandas as pd import uuid from heapq import heappush, heappop from numpy import random from simpy.core import Environment from nodes.core.base import BaseNode from typing import Dict, List, Tuple, Any, Callable, Optional, Union...
[ 37811, 198, 18709, 273, 318, 257, 10139, 326, 43707, 703, 890, 340, 2753, 284, 1429, 257, 3275, 13, 198, 37811, 198, 198, 11748, 19798, 292, 355, 279, 67, 198, 11748, 334, 27112, 198, 6738, 24575, 80, 1330, 339, 1324, 1530, 11, 339, ...
1.972357
2,894
# Crie um programa que tenha uma função fatorial() que receba dois parâmetros: o primeiro que indique # o número a calcular e outro chamado show, que será um valor lógico (opcional) indicando se será # mostrado ou não na tela o processo de cálculo do fatorial. def factorial(number, show=False): """ Calcula o f...
[ 2, 327, 5034, 23781, 1430, 64, 8358, 3478, 3099, 334, 2611, 1257, 16175, 28749, 277, 21592, 3419, 8358, 1407, 7012, 466, 271, 1582, 22940, 4164, 4951, 25, 267, 6994, 7058, 8358, 773, 2350, 198, 2, 267, 299, 21356, 647, 78, 257, 2386, ...
2.196481
341
''' Programming Puzzles The following are a few experiments you can try yourself. The answers can be found at http://python-for-kids.com/. #1: Favorites Make a list of your favorite hobbies and give the list the variable name games. Now make a list of your favorite foods and name the variable foods. Join the two lists...
[ 7061, 6, 198, 15167, 2229, 31913, 198, 464, 1708, 389, 257, 1178, 10256, 345, 460, 1949, 3511, 13, 383, 198, 504, 86, 364, 460, 307, 1043, 379, 2638, 1378, 29412, 12, 1640, 12, 45235, 13, 785, 11757, 198, 198, 2, 16, 25, 38196, 27...
2.877577
1,552
from sdmxthon.api.api import read_sdmx, get_datasets, get_pandas_df, xml_to_csv __all__ = ['read_sdmx', 'get_datasets', 'get_pandas_df', 'xml_to_csv']
[ 6738, 264, 36020, 87, 400, 261, 13, 15042, 13, 15042, 1330, 1100, 62, 21282, 36802, 11, 651, 62, 19608, 292, 1039, 11, 651, 62, 79, 392, 292, 62, 7568, 11, 35555, 62, 1462, 62, 40664, 198, 198, 834, 439, 834, 796, 37250, 961, 62, ...
2.140845
71
# -*- coding: utf-8 -*- # Generated by Django 1.11 on 2018-10-19 20:33 from __future__ import unicode_literals from django.conf import settings from django.db import migrations, models import django.db.models.deletion
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 2, 2980, 515, 416, 37770, 352, 13, 1157, 319, 2864, 12, 940, 12, 1129, 1160, 25, 2091, 198, 6738, 11593, 37443, 834, 1330, 28000, 1098, 62, 17201, 874, 198, 198, 6738,...
2.933333
75
""" Implementation of the interpreter-level compile/eval builtins. """ from pypy.interpreter.pycode import PyCode from pypy.interpreter.baseobjspace import W_Root, ObjSpace from pypy.interpreter.error import OperationError from pypy.interpreter.gateway import NoneNotWrapped def compile(space, w_source, filename, mod...
[ 37811, 198, 3546, 32851, 286, 262, 28846, 12, 5715, 17632, 14, 18206, 3170, 1040, 13, 198, 37811, 198, 198, 6738, 279, 4464, 88, 13, 3849, 3866, 353, 13, 9078, 8189, 1330, 9485, 10669, 198, 6738, 279, 4464, 88, 13, 3849, 3866, 353, ...
2.431586
1,564
from .rom_kan_converter import RomKanConverter
[ 6738, 764, 398, 62, 27541, 62, 1102, 332, 353, 1330, 3570, 42, 272, 3103, 332, 353 ]
2.875
16
# Create your views here. from mozdns.views import MozdnsDeleteView from mozdns.views import MozdnsCreateView from mozdns.views import MozdnsDetailView from mozdns.views import MozdnsUpdateView from mozdns.views import MozdnsListView from mozdns.view.models import View from mozdns.view.forms import ViewForm class Vi...
[ 2, 13610, 534, 5009, 994, 13, 198, 6738, 6941, 89, 67, 5907, 13, 33571, 1330, 28036, 67, 5907, 38727, 7680, 198, 6738, 6941, 89, 67, 5907, 13, 33571, 1330, 28036, 67, 5907, 16447, 7680, 198, 6738, 6941, 89, 67, 5907, 13, 33571, 1330...
2.875536
233
import csv #DEPRECATED # data from: https://github.com/linanqiu/reddit-dataset
[ 11748, 269, 21370, 198, 198, 2, 46162, 38827, 11617, 198, 2, 1366, 422, 25, 3740, 1378, 12567, 13, 785, 14, 2815, 272, 80, 16115, 14, 10748, 12, 19608, 292, 316 ]
2.633333
30
#!/usr/bin/env python3 # -*- coding: utf-8 -*- import os import sys tests = ['test_drag', 'test_control_valve', 'test_two_phase', 'test_two_phase_voidage', 'test_separator', 'test_piping', 'test_packed_bed', 'test_compressible', 'test_core', 'test_safety_valve', 'test_open_flow', 'test_filters', 'test_flow_meter', 'te...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 18, 198, 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 11748, 28686, 198, 11748, 25064, 198, 198, 41989, 796, 37250, 9288, 62, 7109, 363, 3256, 705, 9288, 62, 13716, 62, ...
2.494643
560
import unittest import bioreflib as brf import os # os.system('clear') if __name__ == '__main__': unittest.main()
[ 11748, 555, 715, 395, 198, 11748, 3182, 382, 2704, 571, 355, 865, 69, 198, 11748, 28686, 198, 198, 2, 28686, 13, 10057, 10786, 20063, 11537, 628, 198, 198, 361, 11593, 3672, 834, 6624, 705, 834, 12417, 834, 10354, 198, 220, 220, 220, ...
2.489796
49
"""This module defines the routes of stocks app.""" from . import app from .auth import login_required # 3rd Party Requirements from flask import render_template, abort, redirect, url_for, session, g, request, flash from sqlalchemy.exc import IntegrityError, DBAPIError # Models from .models import Company, db, Portfo...
[ 37811, 1212, 8265, 15738, 262, 11926, 286, 14420, 598, 526, 15931, 198, 6738, 764, 1330, 598, 198, 6738, 764, 18439, 1330, 17594, 62, 35827, 198, 198, 2, 513, 4372, 3615, 24422, 198, 6738, 42903, 1330, 8543, 62, 28243, 11, 15614, 11, ...
2.328927
3,934
# -*- coding: utf-8 -*- """ Created on Thu Aug 10 16:24:02 2017 @author: hexo """ import matplotlib.pyplot as plt from matplotlib.font_manager import FontProperties #引用Windows中的字体 font_set = FontProperties(fname=r'C:\Windows\Fonts\simsun.ttc', size=15) plt.figure(u'中文') plt.plot([1,2,3,4],[-2,-1,0,1]) plt.title...
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 37811, 198, 41972, 319, 26223, 2447, 838, 1467, 25, 1731, 25, 2999, 2177, 198, 198, 31, 9800, 25, 17910, 78, 198, 37811, 198, 198, 11748, 2603, 29487, 8019, 13, 9078, ...
2.088372
215
# Copyright (C) 2013-present The DataCentric Authors. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law o...
[ 2, 15069, 357, 34, 8, 2211, 12, 25579, 383, 6060, 19085, 1173, 46665, 13, 198, 2, 198, 2, 49962, 739, 262, 24843, 13789, 11, 10628, 362, 13, 15, 357, 1169, 366, 34156, 15341, 198, 2, 345, 743, 407, 779, 428, 2393, 2845, 287, 11846...
2.18643
4,613
import json import numpy as np import math from dotaenv.bot_util import vectorize_observation
[ 11748, 33918, 198, 11748, 299, 32152, 355, 45941, 198, 11748, 10688, 198, 6738, 288, 4265, 24330, 13, 13645, 62, 22602, 1330, 15879, 1096, 62, 672, 3168, 341, 628, 628, 628 ]
3.3
30
# coding=utf-8 nome = str(input('Digite o nome da cidade onde mora para saber se tem Santo no nome ')).strip() u = nome.upper() n = u.find('SANTO') if n == 0: print('O nome da cidade tem Santo no início.') else: print('O nome da cidade não tem Santo no início.')
[ 2, 19617, 28, 40477, 12, 23, 198, 77, 462, 796, 965, 7, 15414, 10786, 19511, 578, 267, 299, 462, 12379, 269, 312, 671, 319, 2934, 2146, 64, 31215, 17463, 263, 384, 2169, 10844, 78, 645, 299, 462, 705, 29720, 36311, 3419, 198, 198, ...
2.275
120
from typing import Dict, Iterable, Optional import pytest from tango.common.testing import TangoTestCase from tango.format import _OPEN_FUNCTIONS, DillFormat, JsonFormat, TextFormat
[ 6738, 19720, 1330, 360, 713, 11, 40806, 540, 11, 32233, 198, 198, 11748, 12972, 9288, 198, 198, 6738, 13875, 78, 13, 11321, 13, 33407, 1330, 309, 14208, 14402, 20448, 198, 6738, 13875, 78, 13, 18982, 1330, 4808, 3185, 1677, 62, 42296, ...
3.425926
54
################################################################################### # # Copyright (c) 2017-2019 MuK IT GmbH. # # This file is part of MuK Utils # (see https://mukit.at). # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU Lesser Genera...
[ 29113, 29113, 14468, 21017, 198, 2, 198, 2, 220, 220, 220, 15069, 357, 66, 8, 2177, 12, 23344, 8252, 42, 7283, 402, 2022, 39, 13, 198, 2, 198, 2, 220, 220, 220, 770, 2393, 318, 636, 286, 8252, 42, 7273, 4487, 220, 198, 2, 220, ...
3.671533
274
# web_app/__init__.py from flask import Flask from flask_sqlalchemy import SQLAlchemy from flask_migrate import Migrate from app.routes.home_routes import home_routes from app.routes.book_routes import book_routes db = SQLAlchemy() migrate = Migrate() # app factory structure db = SQLAlchemy() migrate = Migrate() ...
[ 2, 3992, 62, 1324, 14, 834, 15003, 834, 13, 9078, 198, 198, 6738, 42903, 1330, 46947, 198, 198, 6738, 42903, 62, 25410, 282, 26599, 1330, 16363, 2348, 26599, 198, 6738, 42903, 62, 76, 42175, 1330, 337, 42175, 198, 198, 6738, 598, 13, ...
2.484581
227
from django.shortcuts import render, redirect from django.contrib.auth.decorators import login_required from chinese.models import * from language.views_common import * import datetime import json
[ 6738, 42625, 14208, 13, 19509, 23779, 1330, 8543, 11, 18941, 198, 6738, 42625, 14208, 13, 3642, 822, 13, 18439, 13, 12501, 273, 2024, 1330, 17594, 62, 35827, 198, 6738, 442, 3762, 13, 27530, 1330, 1635, 198, 6738, 3303, 13, 33571, 62, ...
3.722222
54
import gravity from gravity import Gravity, Production, Attraction, Doubly import dispersion import utils import vec_SA import count_model
[ 11748, 13522, 220, 198, 6738, 13522, 1330, 24084, 11, 19174, 11, 3460, 7861, 11, 5728, 36874, 198, 11748, 4596, 6900, 198, 11748, 3384, 4487, 198, 11748, 43030, 62, 4090, 198, 11748, 954, 62, 19849, 198 ]
4
35
""" Functions related to junction trees. """ import networkx as nx import numpy as np import trilearn.graph.junction_tree_expander as jte def is_junction_tree(tree): """ Checks the junction tree property of tree. Args: tree (NetworkX graph): A junction tree. Returns: bool: True if tre...
[ 37811, 198, 24629, 2733, 3519, 284, 35037, 7150, 13, 198, 37811, 198, 198, 11748, 3127, 87, 355, 299, 87, 198, 11748, 299, 32152, 355, 45941, 198, 198, 11748, 1333, 35720, 13, 34960, 13, 73, 4575, 62, 21048, 62, 11201, 4066, 355, 474,...
2.125781
6,400
from src.writing.draft.Draft import Draft from src.writing.editor.Editor import Editor class Environment(object): """TEMPLATE CLASS for Environments. An Environment must be able to put Drafts and their Editors together to form Draft-Editor complexes. It must then allow a writer to use the Editor to a...
[ 6738, 12351, 13, 16502, 13, 35679, 13, 37741, 1330, 13650, 198, 6738, 12351, 13, 16502, 13, 35352, 13, 17171, 1330, 12058, 628, 198, 4871, 9344, 7, 15252, 2599, 198, 220, 220, 220, 37227, 51, 3620, 6489, 6158, 42715, 329, 2039, 12103, ...
3.04065
246
#!/usr/bin/python3 # -*- coding: UTF-8 -*- import ipaddress
[ 2, 48443, 14629, 14, 8800, 14, 29412, 18, 198, 2, 532, 9, 12, 19617, 25, 41002, 12, 23, 532, 9, 12, 198, 11748, 20966, 21975, 628, 628, 198 ]
2.285714
28
import requests import xmltodict # convert xml to json import json import haversine as hs # used for distance calculations between coordinates from typing import List SANTANDER_URL = "https://tfl.gov.uk/tfl/syndication/feeds/cycle-hire/livecyclehireupdates.xml" COST_PER_HALF_AN_HOUR = "2.00" if __name__ == "__ma...
[ 11748, 7007, 198, 11748, 2124, 76, 2528, 375, 713, 220, 1303, 10385, 35555, 284, 33918, 198, 11748, 33918, 198, 11748, 387, 690, 500, 355, 289, 82, 220, 1303, 973, 329, 5253, 16765, 1022, 22715, 198, 198, 6738, 19720, 1330, 7343, 198, ...
2.741935
155
#!/usr/bin/env python3 # -*- coding: utf-8 -*- # Copyright (c) 2017 Jérémie DECOCK (http://www.jdhp.org) # This script is provided under the terms and conditions of the MIT license: # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (th...
[ 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, 15069, 357, 66, 8, 2177, 449, 2634, 29350, 44871, 27196, 11290, 357, 4023, 1378, 2503, 13, 73, 67, 24831,...
2.465842
2,020
""" Revision ID: 0161_email_branding Revises: 0160_another_letter_org Create Date: 2018-01-30 15:35:12.016574 """ import sqlalchemy as sa from alembic import op from sqlalchemy.dialects import postgresql revision = "0161_email_branding" down_revision = "0160_another_letter_org"
[ 37811, 198, 198, 18009, 1166, 4522, 25, 5534, 5333, 62, 12888, 62, 17938, 278, 198, 18009, 2696, 25, 5534, 1899, 62, 29214, 62, 9291, 62, 2398, 198, 16447, 7536, 25, 2864, 12, 486, 12, 1270, 1315, 25, 2327, 25, 1065, 13, 486, 2996, ...
2.679245
106
# Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. # # 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, c...
[ 2, 15069, 6186, 13, 785, 11, 3457, 13, 393, 663, 29116, 13, 1439, 6923, 33876, 13, 198, 2, 198, 2, 2448, 3411, 318, 29376, 7520, 11, 1479, 286, 3877, 11, 284, 597, 1048, 16727, 257, 4866, 286, 198, 2, 428, 3788, 290, 3917, 10314, ...
3.736508
315
#!/usr/bin/env python # -*- coding: utf-8 -*- # @Date : 2017-12-15 16:03:42 # @Author : jimmy (jimmywangheng@qq.com) # @Link : http://sdcs.sysu.edu.cn # @Version : $Id$ import os import numpy as np import time import datetime import random import multiprocessing import math from itertools import groupby from ...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 198, 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 2, 2488, 10430, 220, 220, 220, 1058, 2177, 12, 1065, 12, 1314, 1467, 25, 3070, 25, 3682, 198, 2, 2488, 13838, 220, ...
2.916667
360
import pygame
[ 11748, 12972, 6057, 628 ]
3.75
4
#!/usr/bin/env python3 # -*- coding: utf-8 -*- import sys if sys.version_info < (3, 5): sys.exit("Error: Must be using Python 3.5 or higher") import imp imp.load_module('bitcoinkeyaddr', *imp.find_module('lib')) imp.load_module('bitcoinkeyaddr_gui', *imp.find_module('gui')) from PyQt5.QtWidgets import QApplicati...
[ 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, 11748, 25064, 198, 361, 25064, 13, 9641, 62, 10951, 1279, 357, 18, 11, 642, 2599, 198, 220, 220, 220, 25064,...
2.590426
188
from django.test.utils import override_settings import pytest from rest_framework.test import APIRequestFactory from olympia import amo from olympia.amo.tests import addon_factory, TestCase from olympia.discovery.models import DiscoveryItem from olympia.discovery.serializers import DiscoverySerializer from olympia.tr...
[ 6738, 42625, 14208, 13, 9288, 13, 26791, 1330, 20957, 62, 33692, 198, 198, 11748, 12972, 9288, 198, 6738, 1334, 62, 30604, 13, 9288, 1330, 7824, 18453, 22810, 198, 198, 6738, 267, 6760, 544, 1330, 716, 78, 198, 6738, 267, 6760, 544, 1...
3.808511
94
""" This file implements the calculation of available features independently. For usage, you should call `subscribe_features` firstly, then retrive the corresponding observation adapter by define observation space observation_space = gym.spaces.Dict(subscribe_features(` dict( distance_to_center=(stack_size...
[ 37811, 198, 1212, 2393, 23986, 262, 17952, 286, 1695, 3033, 14799, 13, 1114, 8748, 11, 345, 815, 869, 198, 63, 7266, 12522, 62, 40890, 63, 717, 306, 11, 788, 1005, 11590, 262, 11188, 13432, 21302, 416, 8160, 13432, 2272, 198, 198, 672...
2.314308
1,279
import collections ### HyperOptimization Parameters ### Scalar = collections.namedtuple("Scalar", ("scale", "default", "min", "max")) Either = collections.namedtuple("Either", ("alternatives",)) ### Execution ### Command = collections.namedtuple("Command", ("shell", "chdir", "options")) def command(shell, chdir = ...
[ 11748, 17268, 198, 198, 21017, 15079, 27871, 320, 1634, 40117, 44386, 198, 198, 3351, 282, 283, 796, 17268, 13, 13190, 83, 29291, 7203, 3351, 282, 283, 1600, 5855, 9888, 1600, 366, 12286, 1600, 366, 1084, 1600, 366, 9806, 48774, 198, 32...
2.694006
951
import listchaining from random import randint from time import time from typing import Union from .utils import check_result_of_multiple_runs, get_percentage_difference random_array = [randint(53454, 6565656) for _ in range(randint(1000000, 2000000))] @check_result_of_multiple_runs(number_of_runs=20) @check_res...
[ 11748, 1351, 354, 1397, 198, 6738, 4738, 1330, 43720, 600, 198, 6738, 640, 1330, 640, 198, 6738, 19720, 1330, 4479, 198, 6738, 764, 26791, 1330, 2198, 62, 20274, 62, 1659, 62, 48101, 62, 48381, 11, 651, 62, 25067, 496, 62, 26069, 1945...
2.9
160
# Copyright (c) 2016, Kevin Rodgers # Released subject to the New BSD License # Please see http://en.wikipedia.org/wiki/BSD_licenses import redis from uuid import uuid4 UUID = 'uuid'
[ 2, 15069, 357, 66, 8, 1584, 11, 7939, 19947, 198, 2, 28728, 2426, 284, 262, 968, 347, 10305, 13789, 198, 2, 4222, 766, 2638, 1378, 268, 13, 31266, 13, 2398, 14, 15466, 14, 21800, 62, 677, 4541, 198, 198, 11748, 2266, 271, 198, 673...
3.1
60
from __future__ import print_function, division from os.path import join, normpath, exists, dirname # on baker street local_work = "D:/data/work" remote_work = "Z:/data/work" standard_dbs = ['GZ_ALL', 'HSDB_zebra_with_mothers'] for dbname in standard_dbs: chip_rpath = join(dbname, '_hsdb', 'chip_table.csv') ...
[ 6738, 11593, 37443, 834, 1330, 3601, 62, 8818, 11, 7297, 198, 6738, 28686, 13, 6978, 1330, 4654, 11, 2593, 6978, 11, 7160, 11, 26672, 3672, 198, 198, 2, 319, 46412, 4675, 198, 12001, 62, 1818, 796, 366, 35, 14079, 7890, 14, 1818, 1,...
2.502347
213
#! /usr/bin/python """ utilities.py file contains supporting functions for bot.py """ import re import requests import os from ciscosparkapi import CiscoSparkAPI from case import CaseDetail spark_token = os.environ.get("SPARK_BOT_TOKEN") spark = CiscoSparkAPI(access_token=spark_token) # # Supporting functions # #...
[ 2, 0, 1220, 14629, 14, 8800, 14, 29412, 198, 198, 37811, 198, 315, 2410, 13, 9078, 2393, 4909, 6493, 5499, 329, 10214, 13, 9078, 198, 37811, 198, 198, 11748, 302, 198, 11748, 7007, 198, 11748, 28686, 198, 6738, 269, 2304, 2117, 668, ...
3.505338
281
import json import os from datetime import datetime, date, timedelta import MySQLdb from flask import Flask from flask import render_template,request from settings.config import * app = Flask(__name__) db = MySQLdb.connect(host=os.getenv('MYSQL_HOST',DATABASE_HOST), user=os.getenv('MYSQL_USER',...
[ 11748, 33918, 198, 11748, 28686, 198, 6738, 4818, 8079, 1330, 4818, 8079, 11, 3128, 11, 28805, 12514, 198, 11748, 33476, 9945, 198, 6738, 42903, 1330, 46947, 198, 6738, 42903, 1330, 8543, 62, 28243, 11, 25927, 198, 6738, 6460, 13, 11250, ...
2.246377
276
from .convert_raw import to_df, to_mne_eeg from .export_bids_files import create_bids_path, export_bids from .import_bids_files import import_bids from .import_raw_files import read_raw_xdf, read_raw_xdf_dir from .view import search_streams, start_streaming
[ 6738, 764, 1102, 1851, 62, 1831, 1330, 284, 62, 7568, 11, 284, 62, 76, 710, 62, 1453, 70, 198, 6738, 764, 39344, 62, 65, 2340, 62, 16624, 1330, 2251, 62, 65, 2340, 62, 6978, 11, 10784, 62, 65, 2340, 198, 6738, 764, 11748, 62, 65...
2.804348
92
# Copyright 2013-2019 Lawrence Livermore National Security, LLC and other # Spack Project Developers. See the top-level COPYRIGHT file for details. # # SPDX-License-Identifier: (Apache-2.0 OR MIT) from spack import * class RAffycompatible(RPackage): """Affymetrix GeneChip software compatibility. This pac...
[ 2, 15069, 2211, 12, 23344, 13914, 45036, 3549, 2351, 4765, 11, 11419, 290, 584, 198, 2, 1338, 441, 4935, 34152, 13, 4091, 262, 1353, 12, 5715, 27975, 38162, 9947, 2393, 329, 3307, 13, 198, 2, 198, 2, 30628, 55, 12, 34156, 12, 33234,...
2.568345
556
from bs4 import BeautifulSoup html = """ <table class="tablelist" cellpadding="0" cellspacing="0"> <tbody> <tr class="h"> <td class="l" width="374">职位名称</td> <td>职位类别</td> <td>人数</td> <td>地点</td> <td>发布时间</td> </tr> <tr class="even...
[ 6738, 275, 82, 19, 1330, 23762, 50, 10486, 198, 198, 6494, 796, 37227, 198, 27, 11487, 1398, 2625, 11487, 4868, 1, 2685, 39231, 2625, 15, 1, 2685, 2777, 4092, 2625, 15, 5320, 198, 220, 220, 220, 1279, 83, 2618, 29, 198, 220, 220, ...
1.448766
2,674
#!/bin/python3 import math import os import random import re import sys # Complete the hourglassSum function below. # Read from input # if __name__ == '__main__': # fptr = open(os.environ['OUTPUT_PATH'], 'w') # # arr = [] # # for _ in range(6): # arr.append(list(map(int, input().rstrip().split())...
[ 2, 48443, 8800, 14, 29412, 18, 198, 198, 11748, 10688, 198, 11748, 28686, 198, 11748, 4738, 198, 11748, 302, 198, 11748, 25064, 198, 198, 2, 13248, 262, 1711, 20721, 13065, 2163, 2174, 13, 198, 198, 2, 4149, 422, 5128, 198, 2, 611, ...
1.753906
512
# -*- coding: utf-8 -*- """ Created on Tue July 17 10:20:55 2018 @authors: Raghav Pant, Tom Russell, elcok """ import os import subprocess import json import sys from vtra.utils import load_config import fiona import fiona.crs import rasterio import numpy as np import pandas as pd def convert_geotiff_to_vector...
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 37811, 198, 41972, 319, 30030, 2901, 1596, 838, 25, 1238, 25, 2816, 2864, 198, 198, 31, 41617, 25, 371, 10471, 615, 11427, 11, 4186, 11563, 11, 1288, 66, 482, 198, 378...
2.075052
1,439
from distutils.core import setup from setuptools import find_packages try: import mido except ImportError: print("Warning: `mido` must be installed in order to use `rnn_music`") setup(name='rnn_music', version='1.0', description='Generates music', author='Petar Griggs (@Anonymission)', ...
[ 6738, 1233, 26791, 13, 7295, 1330, 9058, 198, 6738, 900, 37623, 10141, 1330, 1064, 62, 43789, 198, 198, 28311, 25, 198, 220, 220, 220, 1330, 3095, 78, 198, 16341, 17267, 12331, 25, 198, 220, 220, 220, 3601, 7203, 20361, 25, 4600, 1360...
2.57764
161
import os from styx_msgs.msg import TrafficLight import numpy as np import rospy import torch import torchvision from torchvision.models.detection.faster_rcnn import FastRCNNPredictor import cv2
[ 11748, 28686, 198, 6738, 8944, 87, 62, 907, 14542, 13, 19662, 1330, 23624, 15047, 198, 11748, 299, 32152, 355, 45941, 198, 11748, 686, 2777, 88, 198, 11748, 28034, 198, 11748, 28034, 10178, 198, 6738, 28034, 10178, 13, 27530, 13, 15255, ...
3.266667
60
# -*- coding: utf-8 -*- import sys, os from collections import OrderedDict sys.path.append(os.pardir) import numpy as np import pickle from src import ( activations, differentiations, losses, layers ) class MultiLayerNet: u""" 任意の層を持つニューラルネットワーク """ def __init__( self, input_size, ...
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 11748, 25064, 11, 28686, 198, 6738, 17268, 1330, 14230, 1068, 35, 713, 198, 17597, 13, 6978, 13, 33295, 7, 418, 13, 26037, 343, 8, 198, 11748, 299, 32152, 355, 45941, ...
1.49691
4,369
"""Based on https://stackoverflow.com/q/59978887/3219667. Update: not working. May want to revisit """ import socket from loguru import logger HOST = '127.0.0.1' PORT = 65439 ACK_TEXT = 'text_received' if __name__ == '__main__': main()
[ 37811, 15001, 319, 3740, 1378, 25558, 2502, 11125, 13, 785, 14, 80, 14, 20, 39647, 3459, 5774, 14, 2624, 1129, 28933, 13, 198, 198, 10260, 25, 407, 1762, 13, 1737, 765, 284, 32302, 198, 198, 37811, 198, 198, 11748, 17802, 198, 198, ...
2.540816
98
import os import subprocess import argparse timeout = 60 * 60 * 8 bvh_dir = "data/bvh/hdm05_aligned_split/" args = parse_args() num_workers = args.num_workers num_thread = args.num_threads keyword = args.act_class base_cmd = ["python3", "mpi_run.py", "--arg_file", f"args/ik_fanshape_{keyword}.txt", ...
[ 11748, 28686, 198, 11748, 850, 14681, 198, 11748, 1822, 29572, 198, 198, 48678, 796, 3126, 1635, 3126, 1635, 807, 198, 65, 85, 71, 62, 15908, 796, 366, 7890, 14, 65, 85, 71, 14, 31298, 76, 2713, 62, 41634, 62, 35312, 30487, 198, 198...
2.227027
555
from sphinx_book_theme._compile_translations import convert_json
[ 6738, 599, 20079, 87, 62, 2070, 62, 43810, 13557, 5589, 576, 62, 7645, 49905, 1330, 10385, 62, 17752, 628 ]
3.473684
19
from setuptools import setup import equals with open('README.rst') as f: long_description = f.read() setup( description='Python Fuzzy Matchers', long_description=long_description, name='equals', version=equals.__version__, author='Todd Sifleet', author_email='todd.siflet@gmail.com', p...
[ 6738, 900, 37623, 10141, 1330, 9058, 198, 198, 11748, 21767, 198, 198, 4480, 1280, 10786, 15675, 11682, 13, 81, 301, 11537, 355, 277, 25, 198, 220, 220, 220, 890, 62, 11213, 796, 277, 13, 961, 3419, 198, 198, 40406, 7, 198, 220, 220...
2.567839
199
#Verificação da média de 4 notas, e informação sobre Aprovação do aluno. Com retorno ao início print('*'*28) print('CURSO SISTEMAS DE INFORMAÇÃO') print('*'*28) m=0 while True: name = (input('Nome do Aluno: ')) c = 1 while c <=4: n=float(input(f'{c}ª Nota: ')) m=m+n c+=1 ...
[ 2, 13414, 811, 64, 16175, 28749, 12379, 285, 2634, 67, 544, 390, 604, 407, 292, 11, 304, 4175, 64, 16175, 28749, 523, 4679, 317, 1676, 6862, 16175, 28749, 466, 435, 36909, 13, 955, 1005, 46447, 257, 78, 287, 8836, 66, 952, 198, 4798...
1.756627
415
import requests import xml.etree.ElementTree as ET import argparse import urllib3 import subprocess import sys from python_terraform import Terraform #def install(package): # subprocess.call([sys.executable, "-m", "pip", "install", package]) # #install('python_terraform') #try: # from python_terraform import T...
[ 11748, 7007, 198, 11748, 35555, 13, 316, 631, 13, 20180, 27660, 355, 12152, 198, 11748, 1822, 29572, 198, 11748, 2956, 297, 571, 18, 198, 11748, 850, 14681, 198, 11748, 25064, 198, 6738, 21015, 62, 353, 430, 687, 1330, 24118, 687, 628, ...
2.683932
946
from typing import Union, Optional, List, Dict, Any from relevanceai.utils.decorators.analytics import track from relevanceai.operations.cluster.utils import ClusterUtils
[ 6738, 19720, 1330, 4479, 11, 32233, 11, 7343, 11, 360, 713, 11, 4377, 198, 6738, 23082, 1872, 13, 26791, 13, 12501, 273, 2024, 13, 38200, 14094, 1330, 2610, 198, 6738, 23082, 1872, 13, 3575, 602, 13, 565, 5819, 13, 26791, 1330, 38279,...
3.822222
45
import threading import time from PySide6.QtCore import QThread, Signal, Slot from PySide6.QtGui import QTextCursor, QColor from PySide6.QtWidgets import QPlainTextEdit from Project.ChordDetector.ChordDetection.chroma_chord_detection import chord_detection_prefilepath from Project.UI.CommonWidgets.CommonButtons impor...
[ 11748, 4704, 278, 198, 11748, 640, 198, 198, 6738, 9485, 24819, 21, 13, 48, 83, 14055, 1330, 1195, 16818, 11, 26484, 11, 32026, 198, 6738, 9485, 24819, 21, 13, 48, 83, 8205, 72, 1330, 1195, 8206, 34, 21471, 11, 1195, 10258, 198, 673...
3.305556
144
import random import hmac import base64 from hashlib import sha256
[ 11748, 4738, 198, 11748, 289, 20285, 198, 11748, 2779, 2414, 198, 6738, 12234, 8019, 1330, 427, 64, 11645, 628, 628, 628, 198 ]
3.318182
22
""" Top K Frequent Elements Given a non-empty array of integers, return the k most frequent elements. Example 1: Input: nums = [1,1,1,2,2,3], k = 2 Output: [1,2] Example 2: Input: nums = [1], k = 1 Output: [1] Note: You may assume k is always valid, 1 ≤ k ≤ number of unique elements. Your algorithm's tim...
[ 37811, 198, 9126, 509, 22192, 298, 26632, 198, 198, 15056, 257, 1729, 12, 28920, 7177, 286, 37014, 11, 1441, 262, 479, 749, 10792, 4847, 13, 198, 198, 16281, 352, 25, 198, 198, 20560, 25, 997, 82, 796, 685, 16, 11, 16, 11, 16, 11,...
3.07907
215
""" Vision behaviors for TurtleBot3 """ import cv2 import cv_bridge import rospy import py_trees from sensor_msgs.msg import Image import matplotlib.pyplot as plt # Define HSV color space thresholds hsv_threshold_dict = { "red": ((0, 220, 0), (30, 255, 255)), "green": ((40, 220, 0), (80, 255, 255)), "blue...
[ 37811, 198, 44206, 14301, 329, 33137, 20630, 18, 198, 37811, 198, 198, 11748, 269, 85, 17, 198, 11748, 269, 85, 62, 9458, 198, 11748, 686, 2777, 88, 198, 11748, 12972, 62, 83, 6037, 198, 6738, 12694, 62, 907, 14542, 13, 19662, 1330, ...
2.160059
1,362
# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! import grpc from google.cloud.asset_v1p2beta1.proto import ( asset_service_pb2 as google_dot_cloud_dot_asset__v1p2beta1_dot_proto_dot_asset__service__pb2, ) from google.protobuf import empty_pb2 as google_dot_protobuf_dot_empty__pb2 class Asse...
[ 2, 2980, 515, 416, 262, 308, 49, 5662, 11361, 8435, 17050, 13877, 13, 8410, 5626, 48483, 0, 198, 11748, 1036, 14751, 198, 198, 6738, 23645, 13, 17721, 13, 562, 316, 62, 85, 16, 79, 17, 31361, 16, 13, 1676, 1462, 1330, 357, 198, 22...
2.41548
1,615
# live-build-ng - Live-Build NG # (C) Iain R. Learmonth 2015 <irl@debian.org> # See COPYING for terms of usage, modification and redistribution. # # lbng/xorriso.py - xorriso helpers """ The lbng.xorriso module provides helpers for calling xorriso as part of the image creation process. .. note:: This module requi...
[ 2, 2107, 12, 11249, 12, 782, 532, 7547, 12, 15580, 39058, 198, 2, 357, 34, 8, 314, 391, 371, 13, 8010, 8424, 1853, 1279, 1901, 31, 24689, 13, 2398, 29, 198, 2, 4091, 27975, 45761, 329, 2846, 286, 8748, 11, 17613, 290, 41425, 13, ...
2.517167
466
# -*- coding: utf-8 -*- # Generated by the protocol buffer compiler. DO NOT EDIT! # source: driver.proto """Generated protocol buffer code.""" from google.protobuf import descriptor as _descriptor from google.protobuf import message as _message from google.protobuf import reflection as _reflection from google.protobuf...
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 2, 2980, 515, 416, 262, 8435, 11876, 17050, 13, 220, 8410, 5626, 48483, 0, 198, 2, 2723, 25, 4639, 13, 1676, 1462, 198, 37811, 8645, 515, 8435, 11876, 2438, 526, 15931...
2.550016
3,149
''' Estimate Order of Model: PACF One useful tool to identify the order of an AR model is to look at the Partial Autocorrelation Function (PACF). In this exercise, you will simulate two time series, an AR(1) and an AR(2), and calculate the sample PACF for each. You will notice that for an AR(1), the PACF should have a...
[ 7061, 6, 198, 22362, 1920, 8284, 286, 9104, 25, 16741, 37, 198, 198, 3198, 4465, 2891, 284, 5911, 262, 1502, 286, 281, 5923, 2746, 318, 284, 804, 379, 262, 43689, 5231, 420, 273, 49501, 15553, 357, 44938, 37, 737, 554, 428, 5517, 11...
2.811352
599
import pygame import random import math import sys import numpy as np from utils.Brain import Brain from utils.settings import * import names # Classe de joueur
[ 11748, 12972, 6057, 198, 11748, 4738, 198, 11748, 10688, 198, 11748, 25064, 198, 11748, 299, 32152, 355, 45941, 198, 6738, 3384, 4487, 13, 44687, 1330, 14842, 198, 6738, 3384, 4487, 13, 33692, 1330, 1635, 198, 11748, 3891, 198, 2, 1012, ...
3.521739
46
from PySide6.QtCore import * from PySide6.QtGui import * from PySide6.QtWidgets import * import mido # global variables voiceMap = [] outPort = [] inPort = [] levelMap = [0, 31, 63, 95, 127]
[ 198, 6738, 9485, 24819, 21, 13, 48, 83, 14055, 1330, 1635, 198, 6738, 9485, 24819, 21, 13, 48, 83, 8205, 72, 1330, 1635, 198, 6738, 9485, 24819, 21, 13, 48, 83, 54, 312, 11407, 1330, 1635, 198, 198, 11748, 3095, 78, 198, 198, 2, ...
2.5
80
# Сегалович, Зеленков Сравнительный анализ методов определения нечетких дубликатов для Web-документов # http://rcdl2007.pereslavl.ru/papers/paper_65_v1.pdf from pprint import pprint from collections import Counter import binascii import math def compare_dice(a,b): '''мера Дайса 2nt/na + nb.''' a = set(a) ...
[ 171, 119, 123, 2, 12466, 94, 16843, 140, 111, 16142, 30143, 25443, 110, 18849, 141, 229, 11, 12466, 245, 16843, 30143, 16843, 22177, 31583, 25443, 110, 12466, 94, 21169, 16142, 38857, 22177, 18849, 20375, 16843, 30143, 45367, 22177, 45035, ...
1.405452
2,898
from unittest import mock, TestCase from gepify.providers import songs, playlists, youtube, soundcloud from werkzeug.contrib.cache import SimpleCache import json import time import os
[ 6738, 555, 715, 395, 1330, 15290, 11, 6208, 20448, 198, 6738, 308, 538, 1958, 13, 15234, 4157, 1330, 7259, 11, 711, 20713, 11, 35116, 11, 2128, 17721, 198, 6738, 266, 9587, 2736, 1018, 13, 3642, 822, 13, 23870, 1330, 17427, 30562, 198...
3.482143
56
# @param S, a list of integer # @return a list of lists of integer
[ 220, 220, 220, 1303, 2488, 17143, 311, 11, 257, 1351, 286, 18253, 198, 220, 220, 220, 1303, 2488, 7783, 257, 1351, 286, 8341, 286, 18253, 198 ]
2.884615
26
#!/usr/bin/env python import rospy import numpy as np import tf import tf2_ros import tf2_geometry_msgs from nav_msgs.msg import Odometry from vision_msgs.msg import ObjectHypothesisWithPose, Detection2DArray, Detection2D from visualization_msgs.msg import Marker, MarkerArray from std_msgs.msg import ColorRGBA from ge...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 198, 198, 11748, 686, 2777, 88, 198, 11748, 299, 32152, 355, 45941, 198, 11748, 48700, 198, 11748, 48700, 17, 62, 4951, 198, 11748, 48700, 17, 62, 469, 15748, 62, 907, 14542, 198, 6738, 681...
3.159204
201
# Generated by Django 3.0.6 on 2020-05-06 16:48 from django.db import migrations, models
[ 2, 2980, 515, 416, 37770, 513, 13, 15, 13, 21, 319, 12131, 12, 2713, 12, 3312, 1467, 25, 2780, 198, 198, 6738, 42625, 14208, 13, 9945, 1330, 15720, 602, 11, 4981, 628 ]
2.84375
32
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Created on Wed Dec 30 22:20:17 2020 @author: baptistelafoux """ import shuffling_algorithm as sa import matplotlib.pyplot as plt import numpy as np grid = {} target_order = 75 curr_order = 1 while curr_order < target_order: grid = sa.enlarge_grid(grid, cu...
[ 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, 3300, 4280, 1542, 2534, 25, 1238, 25, 1558, 12131, 198, 198, 31, 9800, 25, 20452, 396, 41...
2.191816
391
from .wordcloud import generate_wordcloud
[ 6738, 764, 4775, 17721, 1330, 7716, 62, 4775, 17721, 198 ]
4.2
10
# -*- coding: utf-8 -*- ''' Beacon to transmit exceeding diskstat threshold ''' # Import Python libs from __future__ import absolute_import import logging import os import re # Import Salt libs import salt.utils # Import Py3 compat from salt.ext.six.moves import zip log = logging.getLogger(__name__) __virtualname_...
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 7061, 6, 198, 3856, 7807, 284, 21937, 23353, 11898, 14269, 11387, 198, 7061, 6, 198, 198, 2, 17267, 11361, 9195, 82, 198, 6738, 11593, 37443, 834, 1330, 4112, 62, 11748,...
3
111
DEOXYRIBOSE_PURINE_PDB_CODES = ['DA', 'DG'] DEOXYRIBOSE_PURINE_ALL_PDB_CODES = DEOXYRIBOSE_PURINE_PDB_CODES DEOXYRIBOSE_PURINE_CHI_GAMMA_PDB_CODES = DEOXYRIBOSE_PURINE_PDB_CODES DEOXYRIBOSE_PURINE_CHI_PDB_CODES = DEOXYRIBOSE_PURINE_PDB_CODES DEOXYRIBOSE_PURINE_BASE_FUNC_OF_TORSION_CHI_PDB_CODES = DEOXYRIBOSE_PURINE_PDB...
[ 35, 4720, 34278, 7112, 33, 14058, 62, 47, 4261, 8881, 62, 5760, 33, 62, 34, 3727, 1546, 796, 37250, 5631, 3256, 705, 35, 38, 20520, 198, 35, 4720, 34278, 7112, 33, 14058, 62, 47, 4261, 8881, 62, 7036, 62, 5760, 33, 62, 34, 3727, ...
1.704585
10,338
#!/usr/bin/env python # -*- coding: utf-8 -*- import time import json from datetime import datetime import socket import platform import subprocess import cherrypy import htpc import logging import os import requests from htpc.auth2 import require, member_of logger = logging.getLogger('modules.stats') # Move to anot...
[ 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, 198, 11748, 33918, 198, 6738, 4818, 8079, 1330, 4818, 8079, 198, 11748, 17802, 198, 11748, 3859, 198, ...
2.844275
655
import numpy as np import pandas as pd import scipy as scp import matplotlib as mpl from skimage import morphology import cv2 import matplotlib.pyplot as pyplot %matplotlib inline def bckgrnd_correc_rect(image, row_len, col_len): """Background correction using a rectangular structuring element. This function uses ...
[ 11748, 299, 32152, 355, 45941, 198, 11748, 19798, 292, 355, 279, 67, 198, 11748, 629, 541, 88, 355, 629, 79, 198, 11748, 2603, 29487, 8019, 355, 285, 489, 198, 6738, 1341, 9060, 1330, 46320, 198, 11748, 269, 85, 17, 198, 11748, 2603, ...
3.184843
1,082
import os import random import time import json import datetime from random import randint from pyfiglet import figlet_format from flask import Flask, g, session, redirect, request, url_for, jsonify from requests_oauthlib import OAuth2Session OAUTH2_CLIENT_ID = '456608429843283998' #os.environ['OAUTH2_CLIENT_ID'] OAUT...
[ 11748, 28686, 198, 11748, 4738, 198, 11748, 640, 198, 11748, 33918, 198, 11748, 4818, 8079, 198, 6738, 4738, 1330, 43720, 600, 198, 6738, 12972, 5647, 1616, 1330, 2336, 1616, 62, 18982, 198, 6738, 42903, 1330, 46947, 11, 308, 11, 6246, ...
2.265213
1,101
from .abstract import UploadTarget from .ppa import PPAUploadTarget from .s3 import S3UploadTarget __all__ = [ "UploadTarget", "PPAUploadTarget", "S3UploadTarget", ]
[ 6738, 764, 397, 8709, 1330, 36803, 21745, 198, 6738, 764, 44989, 1330, 350, 4537, 41592, 21745, 198, 6738, 764, 82, 18, 1330, 311, 18, 41592, 21745, 198, 198, 834, 439, 834, 796, 685, 198, 220, 220, 220, 366, 41592, 21745, 1600, 198, ...
2.796875
64
class Chest(object): """Take in items and handle opening and closing of chests and loot. * Treasure Chest * Storage Chest """
[ 4871, 25544, 7, 15252, 2599, 198, 220, 220, 220, 37227, 12322, 287, 3709, 290, 5412, 4756, 290, 9605, 286, 34572, 290, 16702, 13, 198, 220, 220, 220, 1635, 20215, 25544, 198, 220, 220, 220, 1635, 20514, 25544, 198, 220, 220, 220, 3722...
3.302326
43
from onegov.core.utils import normalize_for_url from onegov.reservation.models import Resource from uuid import uuid4 any_type = object() class ResourceCollection(object): """ Manages a list of resources. """
[ 6738, 530, 9567, 13, 7295, 13, 26791, 1330, 3487, 1096, 62, 1640, 62, 6371, 198, 6738, 530, 9567, 13, 411, 13208, 13, 27530, 1330, 20857, 198, 6738, 334, 27112, 1330, 334, 27112, 19, 628, 198, 1092, 62, 4906, 796, 2134, 3419, 628, 1...
3.313433
67
from django.shortcuts import render from . import forms from .models import rx_claim import pandas as pd #from .models import rx_claim, CSVrxData # Home page # Background code page # Local pharmay search page # PBM search page # Pharmacy results page
[ 6738, 42625, 14208, 13, 19509, 23779, 1330, 8543, 198, 6738, 764, 1330, 5107, 198, 6738, 764, 27530, 1330, 374, 87, 62, 6604, 198, 11748, 19798, 292, 355, 279, 67, 198, 198, 2, 6738, 764, 27530, 1330, 374, 87, 62, 6604, 11, 44189, 4...
3.294872
78
from cadquery import * from math import sin,cos,pi cutAngle = 100 cutBase = 1 cutWidth = 8 cutRad = 0.2 x1,y1 = -cutBase/2 , 0 theta = pi*(cutAngle/2)/180 rtheta = (pi/2 - theta) log(rtheta*180/pi) x2,y2 = (-cutRad * sin(rtheta) + x1 , cutRad - cutRad * cos(rtheta)) x3,y3 = -cutWidth/2, (cutWidth/2- y2)*sin(rtheta...
[ 6738, 20603, 22766, 1330, 1635, 198, 6738, 10688, 1330, 7813, 11, 6966, 11, 14415, 198, 198, 8968, 13450, 293, 796, 1802, 198, 8968, 14881, 796, 352, 198, 8968, 30916, 796, 807, 198, 8968, 15546, 796, 657, 13, 17, 198, 198, 87, 16, ...
2.010345
290
import numpy as np import torch from PIL.Image import Image from PIL import Image import torchvision
[ 11748, 299, 32152, 355, 45941, 198, 11748, 28034, 198, 6738, 350, 4146, 13, 5159, 1330, 7412, 198, 6738, 350, 4146, 1330, 7412, 198, 11748, 28034, 10178, 628, 628 ]
3.714286
28