content
stringlengths
1
1.04M
input_ids
listlengths
1
774k
ratio_char_token
float64
0.38
22.9
token_count
int64
1
774k
# -*- coding: utf-8 -*- from openerp import models, fields, api, osv # We just create a new model # We want to inherits from the parent model and we add some fields # in the child object # We add a new field in the parent object. Because of a recent refactoring, # this feature was broken. # This test and these mode...
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 6738, 21996, 79, 1330, 4981, 11, 7032, 11, 40391, 11, 267, 21370, 198, 198, 2, 775, 655, 2251, 257, 649, 2746, 198, 198, 2, 775, 765, 284, 10639, 896, 422, 262, 2560...
3.18797
133
import os import random import discord from client.main_bot_client import MainBotClient from cogs.tech_news_cog import TechNewsCog from cogs.greetings import Greetings if __name__ == "__main__": start()
[ 11748, 28686, 198, 11748, 4738, 198, 11748, 36446, 198, 198, 6738, 5456, 13, 12417, 62, 13645, 62, 16366, 1330, 8774, 20630, 11792, 198, 6738, 269, 18463, 13, 13670, 62, 10827, 62, 66, 519, 1330, 9634, 9980, 34, 519, 198, 6738, 269, 1...
3.102941
68
"""OpenAPI spec renderer: render_request_body.""" import textwrap import pytest from sphinxcontrib.openapi import renderers @pytest.mark.parametrize("content_type", [ "application/x-www-form-urlencoded", "multipart/form-data", ]) @pytest.mark.parametrize( "content_type", ["application/json", "applic...
[ 37811, 11505, 17614, 1020, 9851, 11882, 25, 8543, 62, 25927, 62, 2618, 526, 15931, 198, 198, 11748, 2420, 37150, 198, 198, 11748, 12972, 9288, 198, 198, 6738, 599, 20079, 87, 3642, 822, 13, 9654, 15042, 1330, 9851, 19288, 628, 198, 198,...
1.764784
1,505
# Link urls to views from django.urls import path from . import views # App name app_name = 'dashboard' # Routes urlpatterns = [ path('', views.index, name='index'), path('detail', views.detail, name='detail'), path('history', views.history, name='history'), path('get_newest_readings/<str:racks>/<str...
[ 2, 7502, 2956, 7278, 284, 5009, 198, 6738, 42625, 14208, 13, 6371, 82, 1330, 3108, 198, 198, 6738, 764, 1330, 5009, 198, 198, 2, 2034, 1438, 198, 1324, 62, 3672, 796, 705, 42460, 3526, 6, 198, 198, 2, 39602, 274, 198, 6371, 33279, ...
2.347368
380
#!/usr/bin/python from Frontend.commonerror import CommonError from Frontend.splitprog import SplitProg from Frontend.mergererror import MergerError from Frontend.loaderror import LoadError from Frontend.passworderror import PasswordError from Frontend.forgetpassword import ForgetPassword from Frontend.savesplit impor...
[ 2, 48443, 14629, 14, 8800, 14, 29412, 198, 198, 6738, 8880, 437, 13, 11321, 18224, 1330, 8070, 12331, 198, 6738, 8880, 437, 13, 35312, 1676, 70, 1330, 27758, 2964, 70, 198, 6738, 8880, 437, 13, 647, 469, 11751, 1472, 1330, 4638, 1362,...
3.753521
142
"""The 'new' conda format, introduced in late 2018/early 2019. Spec at https://anaconda.atlassian.net/wiki/spaces/AD/pages/90210540/Conda+package+format+v2""" import json import os from tempfile import NamedTemporaryFile try: from zipfile import ZipFile, BadZipFile, ZIP_STORED except ImportError: # py27 compa...
[ 37811, 464, 705, 3605, 6, 1779, 64, 5794, 11, 5495, 287, 2739, 2864, 14, 11458, 13130, 13, 220, 18291, 379, 198, 5450, 1378, 272, 330, 13533, 13, 25864, 46091, 13, 3262, 14, 15466, 14, 2777, 2114, 14, 2885, 14, 31126, 14, 24, 2999, ...
3.081081
333
# vim: tabstop=4 shiftwidth=4 softtabstop=4 # Copyright 2011 Ken Pepple # 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 # # U...
[ 2, 43907, 25, 7400, 11338, 28, 19, 6482, 10394, 28, 19, 2705, 8658, 11338, 28, 19, 198, 198, 2, 15069, 2813, 7148, 2631, 381, 293, 198, 2, 220, 220, 220, 49962, 739, 262, 24843, 13789, 11, 10628, 362, 13, 15, 357, 1169, 366, 34156...
3.360656
244
from unittest import TestCase from messente.verigator import api
[ 6738, 555, 715, 395, 1330, 6208, 20448, 198, 198, 6738, 2085, 21872, 13, 332, 23823, 1330, 40391, 628 ]
3.722222
18
import sys import redis import uuid from reqresp.reqresp import Queue if __name__ == "__main__": main(sys.argv[1])
[ 11748, 25064, 198, 11748, 2266, 271, 198, 11748, 334, 27112, 198, 198, 6738, 43089, 4363, 13, 42180, 4363, 1330, 4670, 518, 198, 198, 361, 11593, 3672, 834, 6624, 366, 834, 12417, 834, 1298, 198, 220, 220, 220, 1388, 7, 17597, 13, 853...
2.574468
47
# api/urls.py from django.contrib import admin from django.urls import include, path from rest_framework.urlpatterns import format_suffix_patterns from api import view urlpatterns = [ path('model', view.graph), path('analyse', view.graph_analysis), path('export', view.graph_export), path('import', vie...
[ 2, 40391, 14, 6371, 82, 13, 9078, 198, 6738, 42625, 14208, 13, 3642, 822, 1330, 13169, 198, 6738, 42625, 14208, 13, 6371, 82, 1330, 2291, 11, 3108, 198, 6738, 1334, 62, 30604, 13, 6371, 33279, 82, 1330, 5794, 62, 37333, 844, 62, 332...
2.78869
336
# coding: utf-8 __version__ = '0.7.8'
[ 2, 19617, 25, 3384, 69, 12, 23, 198, 834, 9641, 834, 796, 705, 15, 13, 22, 13, 23, 6, 198 ]
1.9
20
# DO NOT USE WITH pip # # Stub for ROS / catkin _only_ from distutils.core import setup setup( version='0.0.1', scripts=['python/histogram_drawer'], packages=['sonar_image_proc'], package_dir={'': 'python/'} )
[ 2, 8410, 5626, 23210, 13315, 7347, 198, 2, 198, 2, 41135, 329, 48263, 1220, 3797, 5116, 4808, 8807, 62, 198, 198, 6738, 1233, 26791, 13, 7295, 1330, 9058, 198, 198, 40406, 7, 198, 220, 220, 220, 2196, 11639, 15, 13, 15, 13, 16, 32...
2.451613
93
# coding: utf-8 # Copyright 2010-2015 TxMongo Developers # # 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, 19617, 25, 3384, 69, 12, 23, 198, 2, 15069, 3050, 12, 4626, 309, 87, 44, 25162, 34152, 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.826446
242
for case in range(int(input())): r, t = [int(n) for n in input().split()] answer = find_it(r, t) print('Case #{}: {}'.format(case+1, answer))
[ 198, 1640, 1339, 287, 2837, 7, 600, 7, 15414, 28955, 2599, 198, 220, 220, 220, 374, 11, 256, 796, 685, 600, 7, 77, 8, 329, 299, 287, 5128, 22446, 35312, 3419, 60, 198, 220, 220, 220, 3280, 796, 1064, 62, 270, 7, 81, 11, 256, 8...
2.313433
67
# coding=utf-8 # Copyright 2019 Google LLC # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to ...
[ 2, 19617, 28, 40477, 12, 23, 198, 2, 15069, 13130, 3012, 11419, 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, ...
3.706897
232
""" Problem Statement You are given an integer ‘N’. Your task is to print a pattern with the following description The pattern will consist of ‘N’ lines. For 1 <= ‘i’ <= ‘N’ ‘i’th line consists of a string of ‘N’ + 1 - ‘i’ ‘*’ characters. For example: If ‘N’ is 5 then the pattern will be. ***** **** *** ** * Input ...
[ 37811, 198, 40781, 21983, 198, 1639, 389, 1813, 281, 18253, 564, 246, 45, 447, 247, 13, 3406, 4876, 318, 284, 3601, 257, 3912, 351, 262, 1708, 6764, 198, 464, 3912, 481, 3473, 286, 564, 246, 45, 447, 247, 3951, 13, 198, 198, 1890, ...
3.042274
686
from csv import DictReader filename = "vine_meta_data.csv" allData = [] rows = DictReader(open(filename, 'Ur')) for ii in rows: commentsList = [] postShareUrl = ii["postShareUrl"] postUsername = ii["postUserName"] for key in ii.keys(): if "column" in key and ii[key] != "empty" a...
[ 6738, 269, 21370, 1330, 360, 713, 33634, 201, 198, 201, 198, 34345, 796, 366, 26818, 62, 28961, 62, 7890, 13, 40664, 1, 201, 198, 201, 198, 201, 198, 201, 198, 439, 6601, 796, 17635, 201, 198, 8516, 796, 360, 713, 33634, 7, 9654, ...
2.585761
309
import pandas as pd import os import numpy as np import cv2 datapath1='D:/Minor Project/COVID-19 Detection/Files/Covid-19 prediction using X-Ray images/covid-chestxray-dataset-master/' dataset_path='D:/Minor Project/COVID-19 Detection/Files/Covid-19 prediction using X-Ray images/dataset' categories=os.listd...
[ 11748, 19798, 292, 355, 279, 67, 201, 198, 11748, 28686, 201, 198, 11748, 299, 32152, 355, 45941, 201, 198, 11748, 269, 85, 17, 201, 198, 201, 198, 201, 198, 19608, 499, 776, 16, 11639, 35, 14079, 39825, 4935, 14, 8220, 11008, 12, 1...
2.400922
651
from django.db import models # Create your models here.
[ 6738, 42625, 14208, 13, 9945, 1330, 4981, 198, 198, 2, 13610, 534, 4981, 994, 13, 628, 628 ]
3.529412
17
""" Tiezheng YU 2021-1-3 """
[ 37811, 198, 51, 494, 89, 31753, 575, 52, 198, 1238, 2481, 12, 16, 12, 18, 198, 37811, 198 ]
1.611111
18
import urllib.request; import json as JSON; import time; #Change these values to fit needs domain = "example.com"; subdomains = ["", "test""] headers = { "X-Auth-Email": "email@example.com", "X-Auth-Key": "123456798ABCDEF", "Content-Type": "application/json" } #Convert output from requests to ...
[ 11748, 2956, 297, 571, 13, 25927, 26, 198, 11748, 33918, 355, 19449, 26, 198, 11748, 640, 26, 198, 198, 2, 19400, 777, 3815, 284, 4197, 2476, 198, 27830, 796, 366, 20688, 13, 785, 8172, 198, 7266, 3438, 1299, 796, 14631, 1600, 366, ...
2.36721
1,043
from .loading import get_profile from .decorators import AutoScript, Script, Component, AutoComponent, Modifier, AutoModifier, Modification from .config import ConfigIter, EmptyElement, ConfigType Component('iter')(ConfigIter) del ConfigIter from .top import get_project, get_current_project, \ entry, mai...
[ 201, 198, 6738, 764, 25138, 1330, 651, 62, 13317, 201, 198, 201, 198, 6738, 764, 12501, 273, 2024, 1330, 11160, 7391, 11, 12327, 11, 35100, 11, 11160, 21950, 11, 3401, 7483, 11, 11160, 5841, 7483, 11, 3401, 2649, 201, 198, 201, 198, ...
2.933025
433
import wikipedia import sys query = sys.argv[1] wiki_res = wikipedia.page(query, auto_suggest=False) print(dir(wiki_res)) print(wiki_res.title) #first paragraph of summary summary_start = wiki_res.summary.split("\n")[0] print(summary_start) print(wiki_res.images[0])
[ 11748, 47145, 11151, 198, 11748, 25064, 198, 198, 22766, 796, 25064, 13, 853, 85, 58, 16, 60, 198, 198, 15466, 62, 411, 796, 47145, 11151, 13, 7700, 7, 22766, 11, 8295, 62, 47811, 28, 25101, 8, 198, 198, 4798, 7, 15908, 7, 15466, ...
2.727273
99
import os from keep_alive import keep_alive from discord.ext import commands bot = commands.Bot( command_prefix=get_prefix, case_insensitive=True ) bot.author_id = 486086967411474433 @bot.remove_command('help') @bot.event extensions = [ 'cogs.cog_dev', 'cogs.api_pat', 'cogs.api_kpop', 'cogs.api_win...
[ 11748, 28686, 198, 6738, 1394, 62, 282, 425, 1330, 1394, 62, 282, 425, 198, 6738, 36446, 13, 2302, 1330, 9729, 198, 198, 13645, 796, 9729, 13, 20630, 7, 198, 197, 21812, 62, 40290, 28, 1136, 62, 40290, 11, 198, 197, 7442, 62, 1040, ...
2.198142
323
ADMIN_THEME = "admin" DEFAULT_THEME = "core"
[ 2885, 23678, 62, 4221, 3620, 36, 796, 366, 28482, 1, 198, 7206, 38865, 62, 4221, 3620, 36, 796, 366, 7295, 1, 198 ]
2.045455
22
import unittest from scipy.stats import ttest_ind, pearsonr, ks_2samp from utils import prepare_data
[ 11748, 555, 715, 395, 198, 6738, 629, 541, 88, 13, 34242, 1330, 256, 9288, 62, 521, 11, 25286, 1559, 81, 11, 479, 82, 62, 17, 82, 696, 198, 198, 6738, 3384, 4487, 1330, 8335, 62, 7890, 628 ]
2.783784
37
from shapely.geometry import asShape, mapping
[ 6738, 5485, 306, 13, 469, 15748, 1330, 355, 33383, 11, 16855, 628 ]
3.916667
12
# Generated by Django 2.0.4 on 2018-11-05 13:44 from django.db import migrations, models
[ 2, 2980, 515, 416, 37770, 362, 13, 15, 13, 19, 319, 2864, 12, 1157, 12, 2713, 1511, 25, 2598, 198, 198, 6738, 42625, 14208, 13, 9945, 1330, 15720, 602, 11, 4981, 628 ]
2.84375
32
import uvicorn from fastapi import HTTPException from fastapi.responses import PlainTextResponse from starlette import status from src.core.config import Settings from src.core.client import Client from src.core.security import build_check_authentication_header settings = Settings() app = Client(settings.apache_lo...
[ 11748, 334, 25531, 1211, 198, 198, 6738, 3049, 15042, 1330, 14626, 16922, 198, 6738, 3049, 15042, 13, 16733, 274, 1330, 28847, 8206, 31077, 198, 198, 6738, 3491, 21348, 1330, 3722, 198, 198, 6738, 12351, 13, 7295, 13, 11250, 1330, 16163, ...
3.280822
146
from typing import List s = Solution() ip = ["gin", "zen", "gig", "msg"] ans = s.uniqueMorseRepresentations(ip) print(ans)
[ 6738, 19720, 1330, 7343, 198, 198, 82, 796, 28186, 3419, 198, 541, 796, 14631, 1655, 1600, 366, 4801, 1600, 366, 70, 328, 1600, 366, 19662, 8973, 198, 504, 796, 264, 13, 34642, 44, 7615, 40171, 602, 7, 541, 8, 198, 4798, 7, 504, 8...
2.795455
44
import pandas as pd from pandas import Period, offsets from pandas.util import testing as tm from pandas.tseries.frequencies import _period_code_map class TestFreqConversion(tm.TestCase): "Test frequency conversion of date objects"
[ 11748, 19798, 292, 355, 279, 67, 198, 6738, 19798, 292, 1330, 18581, 11, 49005, 198, 6738, 19798, 292, 13, 22602, 1330, 4856, 355, 256, 76, 198, 6738, 19798, 292, 13, 912, 10640, 13, 69, 8897, 3976, 1330, 4808, 41007, 62, 8189, 62, ...
3.4
70
'''This script loads pre-trained word embeddings (GloVe embeddings) into a frozen Keras Embedding layer, and uses it to train a text classification model on the 20 Newsgroup dataset (classification of newsgroup messages into 20 different categories). GloVe embedding data can be found at: http://nlp.stanford.edu/...
[ 7061, 6, 1212, 4226, 15989, 662, 12, 35311, 1573, 11525, 67, 654, 357, 38, 5439, 26979, 11525, 67, 654, 8, 201, 198, 20424, 257, 12912, 17337, 292, 13302, 6048, 278, 7679, 11, 290, 3544, 340, 284, 201, 198, 27432, 257, 2420, 17923, ...
2.312018
2,205
print Solution().sqrt(4) # Output 2 print Solution().sqrt(2) # Output 1 print Solution().sqrt(0) # Output 0
[ 198, 4798, 28186, 22446, 31166, 17034, 7, 19, 8, 1303, 25235, 362, 198, 4798, 28186, 22446, 31166, 17034, 7, 17, 8, 1303, 25235, 352, 220, 198, 4798, 28186, 22446, 31166, 17034, 7, 15, 8, 1303, 25235, 657, 220, 198 ]
2.846154
39
"""Utils Simple utils python file for handy functions that are needed everywhere in the code. """ import asyncio import calendar import datetime import pytz # import builtins from functools import wraps def day_suffix(d:int) -> str: """Returns day-suffix 'st', 'nd', 'rd', 'th' for a day of a month. For ex...
[ 37811, 18274, 4487, 198, 198, 26437, 3384, 4487, 21015, 2393, 329, 15728, 5499, 326, 389, 2622, 8347, 287, 262, 2438, 13, 198, 37811, 198, 198, 11748, 30351, 952, 198, 11748, 11845, 198, 11748, 4818, 8079, 198, 11748, 12972, 22877, 198, ...
2.471274
1,201
# coding: utf-8 # # Copyright 2022 :Barry-Thomas-Paul: Moss # # Licensed under the Apache License, Version 2.0 (the "License") # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http: // www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicab...
[ 2, 19617, 25, 3384, 69, 12, 23, 198, 2, 198, 2, 15069, 33160, 1058, 33, 6532, 12, 22405, 12, 12041, 25, 19935, 198, 2, 198, 2, 49962, 739, 262, 24843, 13789, 11, 10628, 362, 13, 15, 357, 1169, 366, 34156, 4943, 198, 2, 345, 743,...
2.517408
1,034
from hydroDL.post import axplot, figplot from hydroDL.new import fun from hydroDL.app import waterQuality import importlib import matplotlib.pyplot as plt import numpy as np import random import scipy from scipy.special import gamma # gamma fig, ax = plt.subplots(1, 1, figsize=(12, 6)) # kLst = [0.5, 1, 2] kLst = [50]...
[ 6738, 17173, 19260, 13, 7353, 1330, 7877, 29487, 11, 2336, 29487, 198, 6738, 17173, 19260, 13, 3605, 1330, 1257, 198, 6738, 17173, 19260, 13, 1324, 1330, 1660, 35013, 198, 11748, 1330, 8019, 198, 11748, 2603, 29487, 8019, 13, 9078, 29487,...
1.843066
548
import logging import yagmail from jinja2 import Template from app.settings import settings logger = logging.getLogger(__name__) TEMPLATES = { "verify_account": settings.EMAIL_TEMPLATES_DIR / "verify-account.html", } def send_email(to: str, subject: str, contents: str, **kwargs): """Sends an email with t...
[ 11748, 18931, 198, 198, 11748, 331, 363, 4529, 198, 6738, 474, 259, 6592, 17, 1330, 37350, 198, 198, 6738, 598, 13, 33692, 1330, 6460, 198, 198, 6404, 1362, 796, 18931, 13, 1136, 11187, 1362, 7, 834, 3672, 834, 8, 628, 198, 51, 3620...
2.55625
320
import cv2 import numpy as np __all__ = ['Rain']
[ 11748, 269, 85, 17, 198, 11748, 299, 32152, 355, 45941, 198, 198, 834, 439, 834, 796, 37250, 31443, 20520, 628 ]
2.55
20
import os from pyspark import SparkContext sc = SparkContext() root_dir = os.path.abspath(os.path.join(os.path.realpath(__file__), '..')) data_dir = os.path.join(root_dir, "data/datasets") train_model_dir = os.path.join(root_dir, "data/train_models")
[ 11748, 28686, 198, 198, 6738, 279, 893, 20928, 1330, 17732, 21947, 198, 198, 1416, 796, 17732, 21947, 3419, 198, 198, 15763, 62, 15908, 796, 28686, 13, 6978, 13, 397, 2777, 776, 7, 418, 13, 6978, 13, 22179, 7, 418, 13, 6978, 13, 530...
2.54
100
# -*- coding: utf-8 -*- import glob import logging import time import argparse import os.path as osp from pprint import pformat from desed.utils import create_folder, modify_jams, change_snr from desed.post_process import rm_high_polyphony, post_process_txt_labels from desed.generate_synthetic import SoundscapesGenera...
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 11748, 15095, 198, 11748, 18931, 198, 11748, 640, 198, 11748, 1822, 29572, 198, 11748, 28686, 13, 6978, 355, 267, 2777, 198, 6738, 279, 4798, 1330, 279, 18982, 198, 198, ...
2.228964
1,747
supported_api_versions = {'v1': 'http://hn.algolia.com/api/v1/'}
[ 15999, 62, 15042, 62, 47178, 796, 1391, 6, 85, 16, 10354, 705, 4023, 1378, 21116, 13, 14016, 22703, 13, 785, 14, 15042, 14, 85, 16, 14, 6, 92 ]
2.285714
28
# --------------------------------------------------------------------- # Cleanup SubInterface's is_* indexes # --------------------------------------------------------------------- # Copyright (C) 2007-2019 The NOC Project # See LICENSE for details # --------------------------------------------------------------------...
[ 2, 16529, 30934, 198, 2, 5985, 929, 3834, 39317, 338, 318, 62, 9, 39199, 198, 2, 16529, 30934, 198, 2, 15069, 357, 34, 8, 4343, 12, 23344, 383, 399, 4503, 4935, 198, 2, 4091, 38559, 24290, 329, 3307, 198, 2, 16529, 30934, 198, 198...
6.0625
64
# -*- coding: utf-8 -*- """ Created on Tue Apr 27 15:24:24 2021 """ import copy import numpy as np import sys sys.setrecursionlimit(100000)
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 201, 198, 37811, 201, 198, 41972, 319, 30030, 2758, 2681, 1315, 25, 1731, 25, 1731, 33448, 201, 198, 37811, 201, 198, 201, 198, 11748, 4866, 201, 198, 11748, 299, 32152, 355,...
2.191781
73
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Created on Fri Feb 26 09:28:49 2021 @author: nathanielgates """ import numpy as np import pandas as pd import matplotlib.pyplot as plt import utilities as util import feasibility as fs from gekko import GEKKO def model(t, plot=False, disp=False, ramp=1, imode=6, no...
[ 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, 19480, 3158, 2608, 7769, 25, 2078, 25, 2920, 33448, 198, 198, 31, 9800, 25, 299, 776, 632...
1.666126
8,626
from sistema import iniciar iniciar()
[ 6738, 264, 396, 19687, 1330, 287, 291, 12571, 198, 198, 47277, 12571, 3419, 198 ]
2.785714
14
from hsi_toolkit.dev.anomaly_detectors.beta_anomaly import * from hsi_toolkit.dev.anomaly_detectors.fcbad_anomaly import * from hsi_toolkit.dev.anomaly_detectors.gmrx_anomaly import * from hsi_toolkit.dev.anomaly_detectors.ssrx_anomaly import *
[ 6738, 289, 13396, 62, 25981, 15813, 13, 7959, 13, 272, 24335, 62, 15255, 478, 669, 13, 31361, 62, 272, 24335, 1330, 1635, 198, 6738, 289, 13396, 62, 25981, 15813, 13, 7959, 13, 272, 24335, 62, 15255, 478, 669, 13, 16072, 14774, 62, ...
2.578947
95
"""Simple command line utility called `lumi`. The cli is composed of subcommands that are able to handle different tasks needed for training and using deep learning models. It's base subcommands are: train: For training locally. cloud: For traning and monitoring in the cloud. dataset: For modifying and tr...
[ 37811, 26437, 3141, 1627, 10361, 1444, 4600, 75, 12994, 44646, 198, 198, 464, 537, 72, 318, 13160, 286, 850, 9503, 1746, 326, 389, 1498, 284, 5412, 1180, 8861, 198, 27938, 329, 3047, 290, 1262, 2769, 4673, 4981, 13, 198, 198, 1026, 33...
2.987113
388
from zergmacroplot import app if __name__ == "__main__": main()
[ 6738, 1976, 6422, 20285, 305, 29487, 1330, 598, 628, 198, 198, 361, 11593, 3672, 834, 6624, 366, 834, 12417, 834, 1298, 198, 220, 220, 220, 1388, 3419, 198 ]
2.535714
28
# Copyright 2019 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, ...
[ 2, 15069, 13130, 3012, 11419, 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, 921, 743, 733...
2.748681
2,654
import os import mmap from multiprocessing.pool import ThreadPool import numpy as np import torch import onir from onir import pipelines, util, spec from onir.interfaces import plaintext, trec logger = onir.log.easy() @pipelines.register('epic_predict')
[ 11748, 28686, 198, 11748, 8085, 499, 198, 6738, 18540, 305, 919, 278, 13, 7742, 1330, 14122, 27201, 198, 11748, 299, 32152, 355, 45941, 198, 11748, 28034, 198, 11748, 319, 343, 198, 6738, 319, 343, 1330, 31108, 11, 7736, 11, 1020, 198, ...
3.185185
81
# Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under the Li...
[ 2, 49962, 739, 262, 24843, 13789, 11, 10628, 362, 13, 15, 357, 1169, 366, 34156, 15341, 345, 743, 198, 2, 407, 779, 428, 2393, 2845, 287, 11846, 351, 262, 13789, 13, 921, 743, 7330, 198, 2, 257, 4866, 286, 262, 13789, 379, 198, 2,...
2.329073
1,252
import sys sys.path.append(r'C:\repos\compmech') import numpy as np from compmech.composite.laminate import read_stack from compmech.plates import Plate stack = [-45, +45, 0, 0, -30, +30, +30, -30, 0, 0, +45, -45] # prop format (E1, E2, nu12, G12, G13, G23) prop = (152.4e3, 8.8e3, 0.31, 4.9e3, 4.9e3, 4.9e3) lam = re...
[ 11748, 25064, 198, 17597, 13, 6978, 13, 33295, 7, 81, 6, 34, 7479, 260, 1930, 59, 5589, 1326, 354, 11537, 198, 198, 11748, 299, 32152, 355, 45941, 198, 198, 6738, 552, 1326, 354, 13, 785, 1930, 578, 13, 2543, 4559, 1330, 1100, 62, ...
2.077922
231
print func(4 * 1000 * 1000)
[ 198, 198, 4798, 25439, 7, 19, 1635, 8576, 1635, 8576, 8, 198 ]
2.5
12
# Generated by Django 2.2.1 on 2019-06-21 13:46 from django.db import migrations, models
[ 2, 2980, 515, 416, 37770, 362, 13, 17, 13, 16, 319, 13130, 12, 3312, 12, 2481, 1511, 25, 3510, 198, 198, 6738, 42625, 14208, 13, 9945, 1330, 15720, 602, 11, 4981, 628 ]
2.84375
32
#!/usr/bin/env python # -*- coding: utf-8 -*- import json from alipay.aop.api.response.AlipayResponse import AlipayResponse
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 198, 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 11748, 33918, 198, 198, 6738, 435, 541, 323, 13, 64, 404, 13, 15042, 13, 26209, 13, 2348, 541, 323, 31077, 1330, 978,...
2.571429
49
# help(psycopg2.connect) -- create a new database connection import psycopg2 dbname = '********' #same as user user = '********' #same as dbbase password = '********' #don't commit this to github! host = '********' #from SERVER type this in as string pg_conn = psycopg2.connect(database=dbna...
[ 198, 2, 1037, 7, 13764, 22163, 70, 17, 13, 8443, 8, 1377, 2251, 257, 649, 6831, 4637, 198, 11748, 17331, 22163, 70, 17, 198, 198, 9945, 3672, 796, 705, 4557, 6, 220, 220, 220, 220, 220, 220, 1303, 31642, 355, 2836, 198, 7220, 796,...
3.057616
1,267
#!/usr/bin/env python import sys import django from django.conf import settings from django.test.utils import get_runner if __name__ == '__main__': test_settings = { 'SECRET_KEY': 'test_key', 'DATABASES': { 'default': { 'ENGINE': 'django.db.backends.sqlite3', ...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 198, 11748, 25064, 198, 198, 11748, 42625, 14208, 198, 6738, 42625, 14208, 13, 10414, 1330, 6460, 198, 6738, 42625, 14208, 13, 9288, 13, 26791, 1330, 651, 62, 16737, 198, 198, 361, 11593, 367...
1.976581
427
#!/usr/bin/env python # -*- coding: utf-8 -*- # Copyright 1999-2018 Alibaba Group Holding 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, 48443, 14629, 14, 8800, 14, 24330, 21015, 198, 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 2, 15069, 7358, 12, 7908, 41992, 4912, 31703, 12052, 13, 198, 2, 198, 2, 49962, 739, 262, 24843, 13789, 11, 10628, 36...
2.891925
805
from rtree import index if __name__=="__main__": node_list=read_graph("out.graph") corner_list=[] with open("./points/chicago_gray.txt","r") as f: for line in f.readlines(): temp=line.strip().split(",") corner_list.append([int(temp[0]),int(temp[1])]) remove_corne...
[ 6738, 374, 21048, 1330, 6376, 628, 198, 198, 361, 11593, 3672, 834, 855, 1, 834, 12417, 834, 1298, 220, 220, 220, 220, 198, 220, 220, 220, 10139, 62, 4868, 28, 961, 62, 34960, 7203, 448, 13, 34960, 4943, 628, 220, 220, 220, 5228, ...
2.189873
158
import Mesh.System.SpaceFactor as SpaceFactor from MeshTest.AppTestCase import AppTestCase # Enum Total # generate()
[ 11748, 47529, 13, 11964, 13, 14106, 41384, 355, 4687, 41384, 198, 6738, 47529, 14402, 13, 4677, 14402, 20448, 1330, 2034, 14402, 20448, 628, 198, 220, 220, 220, 1303, 2039, 388, 7472, 628, 220, 220, 220, 1303, 7716, 3419, 198 ]
3.282051
39
''' Created on 3 janv. 2022 @author: slinux ''' import wx from libs.RVNpyRPC._asset import AssetType from wxRavenGUI.application.wxcustom.CustomUserIO import UserQuestion class RavencoreAssetRightclickPopupMenu(object): ''' classdocs ''' def __init__(self, parentBinding, parentFrame, assetData...
[ 7061, 6, 198, 41972, 319, 513, 42897, 85, 13, 33160, 198, 198, 31, 9800, 25, 1017, 259, 2821, 198, 7061, 6, 198, 11748, 266, 87, 220, 198, 198, 6738, 9195, 82, 13, 49, 53, 45, 9078, 49, 5662, 13557, 562, 316, 1330, 31433, 6030, ...
1.784182
746
from typing import Dict, List, Optional import numpy as np import torch import torch.nn as nn import torch.nn.functional as F from .matcher import HungarianMatcher from util import box_ops class CriterionDETR(nn.Module): """This class computes the loss for DETR. The process happens in two steps: 1) ...
[ 6738, 19720, 1330, 360, 713, 11, 7343, 11, 32233, 198, 11748, 299, 32152, 355, 45941, 198, 11748, 28034, 198, 11748, 28034, 13, 20471, 355, 299, 77, 198, 11748, 28034, 13, 20471, 13, 45124, 355, 376, 198, 198, 6738, 764, 6759, 2044, 1...
2.403383
2,660
import pickle import logging from os.path import exists
[ 11748, 2298, 293, 201, 198, 11748, 18931, 201, 198, 6738, 28686, 13, 6978, 1330, 7160, 201 ]
3.625
16
import collections # https://leetcode.com/problems/squares-of-a-sorted-array/discuss/222079/Python-O(N)-10-lines-two-solutions-explained-beats-100 # no algo knowledge needd. will pass bcos max length is 10**4 # and bcos array is almost sorted, so worst case of sorting won't be that slow # anyway time comple...
[ 11748, 17268, 198, 2, 3740, 1378, 293, 316, 8189, 13, 785, 14, 1676, 22143, 14, 16485, 3565, 12, 1659, 12, 64, 12, 82, 9741, 12, 18747, 14, 15410, 1046, 14, 1828, 1238, 3720, 14, 37906, 12, 46, 7, 45, 13219, 940, 12, 6615, 12, 1...
3.062992
127
import os import redis from dotenv import load_dotenv from telegram import InlineKeyboardButton, InlineKeyboardMarkup from telegram.ext import Filters, Updater from telegram.ext import CallbackQueryHandler, CommandHandler, MessageHandler from textwrap import dedent from validate_email import validate_email from molt...
[ 11748, 28686, 198, 198, 11748, 2266, 271, 198, 198, 6738, 16605, 24330, 1330, 3440, 62, 26518, 24330, 198, 6738, 573, 30536, 1330, 554, 1370, 9218, 3526, 21864, 11, 554, 1370, 9218, 3526, 9704, 929, 198, 6738, 573, 30536, 13, 2302, 1330...
2.909091
209
from .components import * __all__ = ('Collider', 'Sprite', 'Position', 'Physics', 'Path', 'Input')
[ 6738, 764, 5589, 3906, 1330, 1635, 201, 198, 201, 198, 834, 439, 834, 796, 19203, 22667, 1304, 3256, 705, 38454, 578, 3256, 705, 26545, 3256, 705, 2725, 23154, 3256, 705, 15235, 3256, 705, 20560, 11537, 201, 198 ]
2.783784
37
import json import sys import feedparser from twisted.python import log import plugin # The Feed class handles printing out new entries # Simple polling class, fetches the feed in a regular intervall and passes # the information on to the Feed object # Aggregator class for adding and handling feeds if __name__...
[ 11748, 33918, 198, 11748, 25064, 198, 11748, 3745, 48610, 198, 198, 6738, 19074, 13, 29412, 1330, 2604, 198, 198, 11748, 13877, 628, 198, 2, 383, 18272, 1398, 17105, 13570, 503, 649, 12784, 628, 198, 2, 17427, 13985, 1398, 11, 11351, 20...
3.7
100
# -*- coding: utf-8 -*- # (C) Copyright IBM Corp. 2020. # # 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 l...
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 2, 357, 34, 8, 15069, 19764, 11421, 13, 12131, 13, 198, 2, 198, 2, 49962, 739, 262, 24843, 13789, 11, 10628, 362, 13, 15, 357, 1169, 366, 34156, 15341, 198, 2, 345, ...
5.099609
512
#!/home/remmi/Documents/Django/Awwwards-Clone/env/bin/python3 from django.core import management if __name__ == "__main__": management.execute_from_command_line()
[ 2, 48443, 11195, 14, 2787, 11632, 14, 38354, 14, 35, 73, 14208, 14, 32, 1383, 2017, 12, 2601, 505, 14, 24330, 14, 8800, 14, 29412, 18, 198, 6738, 42625, 14208, 13, 7295, 1330, 4542, 198, 198, 361, 11593, 3672, 834, 6624, 366, 834, ...
2.754098
61
# emacs: -*- mode: python; py-indent-offset: 4; indent-tabs-mode: nil -*- # vi: set ft=python sts=4 ts=4 sw=4 et: ### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ## # # See COPYING file distributed along with the PyMVPA package for the # copyright and license terms. # ### ### ### ### ###...
[ 2, 795, 16436, 25, 532, 9, 12, 4235, 25, 21015, 26, 12972, 12, 521, 298, 12, 28968, 25, 604, 26, 33793, 12, 8658, 82, 12, 14171, 25, 18038, 532, 9, 12, 198, 2, 25357, 25, 900, 10117, 28, 29412, 39747, 28, 19, 40379, 28, 19, 15...
2.625557
673
from flask import Flask, render_template, redirect, request, jsonify, make_response from app.models import User, Client, Inventory, Transaction, TransactionDetail from app import db, app from app.routes.helper import prepareTransactions, prepareTransactionsTotals from app.app import getAndPrepareAllClients import pdfk...
[ 6738, 42903, 1330, 46947, 11, 8543, 62, 28243, 11, 18941, 11, 2581, 11, 33918, 1958, 11, 787, 62, 26209, 198, 6738, 598, 13, 27530, 1330, 11787, 11, 20985, 11, 35772, 11, 45389, 11, 45389, 11242, 603, 198, 6738, 598, 1330, 20613, 11, ...
3.53271
107
# Ω* #             ■          ■■■■■   #             ■         ■■   ■■  #             ■        ■■     ■  #             ■        ■■        #   ■■■■■     ■        ■■■       #  ■■   ■■    ■         ■■■      # ■■     ■■   ■          ■■■■    # ■■     ■■   ■            ■■■■  # ■■■■■■■■■   ■              ■■■ ...
[ 2, 7377, 102, 9, 198, 2, 220, 220, 564, 225, 447, 225, 447, 225, 447, 225, 447, 225, 447, 225, 447, 225, 447, 225, 447, 225, 447, 225, 447, 225, 447, 225, 29316, 447, 225, 447, 225, 447, 225, 447, 225, 447, 225, 447, 225, 447,...
1.700649
1,079
#!/usr/bin/env python # -*- coding: utf-8 -*- """Image Classification Deep Learning Tool. This script runs trainingsessions to classify image. Revision History: 2020-07-12 (Animesh): Baseline Software. Example: $ python train.py """ #___Import Modules: from _train_test import NNTools #___Globa...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 198, 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 198, 37811, 5159, 40984, 10766, 18252, 16984, 13, 198, 198, 1212, 4226, 4539, 4512, 654, 6202, 284, 36509, 2939, 13, 22...
2.446602
412
# Generated by Django 3.1.1 on 2020-09-13 21:03 from django.db import migrations, models import django.db.models.deletion
[ 2, 2980, 515, 416, 37770, 513, 13, 16, 13, 16, 319, 12131, 12, 2931, 12, 1485, 2310, 25, 3070, 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
# when you import package for the first time, this __init__.py file runs automatically. print('\nWelcome to my website ;) ', 'https://vixportfoliowithflask.herokuapp.com/skills') print('\nONLINE MORSE CODE ENCRYPTER AND DECRYPTER : ', 'https://imvickykumar999.github.io/git-bash/') print('\nUse help(module na...
[ 201, 198, 2, 618, 345, 1330, 5301, 329, 262, 717, 640, 11, 428, 11593, 15003, 834, 13, 9078, 2393, 4539, 6338, 13, 201, 198, 201, 198, 4798, 10786, 59, 77, 14618, 284, 616, 3052, 35540, 46083, 705, 5450, 1378, 85, 844, 634, 9062, ...
2.92126
127
""" Order Service Runner Starts the Order service and initializes logging """ import os from app import app, server # Pull options from environment DEBUG = (os.getenv('DEBUG', 'False') == 'True') PORT = os.getenv('PORT', '5000') ###################################################################### # ...
[ 37811, 201, 198, 18743, 4809, 21529, 201, 198, 1273, 5889, 262, 8284, 2139, 290, 4238, 4340, 18931, 201, 198, 37811, 201, 198, 201, 198, 11748, 28686, 201, 198, 6738, 598, 1330, 598, 11, 4382, 201, 198, 201, 198, 2, 21429, 3689, 422, ...
3.504902
204
from django.shortcuts import render,redirect from django.http import HttpResponseRedirect from .models import * from django.contrib.auth.forms import AuthenticationForm from django.contrib.auth import login, authenticate, logout from django.contrib import messages from .forms import * from django.contrib.auth.models im...
[ 6738, 42625, 14208, 13, 19509, 23779, 1330, 8543, 11, 445, 1060, 198, 6738, 42625, 14208, 13, 4023, 1330, 367, 29281, 31077, 7738, 1060, 198, 6738, 764, 27530, 1330, 1635, 198, 6738, 42625, 14208, 13, 3642, 822, 13, 18439, 13, 23914, 13...
3.26875
160
#!/usr/bin/env python NXT_TST_INTERVAL = 1 NEW_ROUND_INTERVAL = 2 TOGGLE_INTERVAL = 0.5 from rpiledmatrix import switch_on, switch_off, turn_all_off, cleanup, blink_on, blink_off, LED_INDICES import time as time try: while True: steady_on_serial() time.sleep(NXT_TST_INTERVAL) blink_on_ser...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 198, 45, 25010, 62, 51, 2257, 62, 41358, 23428, 796, 352, 198, 13965, 62, 49, 15919, 62, 41358, 23428, 796, 362, 198, 51, 7730, 38, 2538, 62, 41358, 23428, 796, 657, 13, 20, 220, 220, 2...
2.267016
191
#!/usr/bin/env python # -*- coding: utf-8 -*- from setuptools import setup from pip.req import parse_requirements from pip.download import PipSession import os def read_requirements(): '''parses requirements from requirements.txt''' __location__ = os.path.dirname(os.path.realpath(__file__)) reqs_path = o...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 198, 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 198, 6738, 900, 37623, 10141, 1330, 9058, 198, 6738, 7347, 13, 42180, 1330, 21136, 62, 8897, 18883, 198, 6738, 7347, 13...
2.622671
644
from rxbp.acknowledgement.acksubject import AckSubject from rxbp.acknowledgement.continueack import continue_ack from rxbp.acknowledgement.stopack import stop_ack from rxbp.observer import Observer from rxbp.typing import ElementType class TObserver(Observer): """ A test observer that immediately returns a Contin...
[ 6738, 374, 30894, 79, 13, 441, 2197, 992, 16025, 13, 4595, 549, 752, 1330, 36031, 19776, 198, 6738, 374, 30894, 79, 13, 441, 2197, 992, 16025, 13, 43043, 441, 1330, 2555, 62, 441, 198, 6738, 374, 30894, 79, 13, 441, 2197, 992, 16025...
3.65812
117
import os from subprocess import STDOUT from tempfile import TemporaryDirectory from unittest import mock from unittest.mock import call import kubernetes import pytest import yaml from k8s_app_abstraction.models.pod_controllers import ( Daemonset, Deployment, Statefulset, ) from k8s_app_abstraction.model...
[ 11748, 28686, 198, 6738, 850, 14681, 1330, 48571, 12425, 198, 6738, 20218, 7753, 1330, 46042, 43055, 198, 6738, 555, 715, 395, 1330, 15290, 198, 6738, 555, 715, 395, 13, 76, 735, 1330, 869, 198, 198, 11748, 479, 18478, 3262, 274, 198, ...
2.861345
238
from setuptools import setup setup( name='tweetgetter', version='0.2', py_modules=['main'], include_package_data=True, install_requires=[ 'Click', 'tweepy', ], entry_points=''' [console_scripts] tweets=main:run ''', )
[ 6738, 900, 37623, 10141, 1330, 9058, 198, 198, 40406, 7, 198, 220, 220, 220, 1438, 11639, 83, 7277, 1136, 353, 3256, 198, 220, 220, 220, 2196, 11639, 15, 13, 17, 3256, 198, 220, 220, 220, 12972, 62, 18170, 28, 17816, 12417, 6, 4357,...
2.058394
137
import matplotlib.pyplot as plt import numpy as np import scipy.stats as stats import math import Calculation import Terminal
[ 11748, 2603, 29487, 8019, 13, 9078, 29487, 355, 458, 83, 201, 198, 11748, 299, 32152, 355, 45941, 201, 198, 11748, 629, 541, 88, 13, 34242, 355, 9756, 201, 198, 11748, 10688, 201, 198, 11748, 2199, 14902, 201, 198, 11748, 24523, 201, ...
2.956522
46
import base64 import os import time import sys import json import model.player import model.func import model.hook import model.config # asr model from LingkongRobot model.hook.add_hook_fast("RRCore.Func.ASR",main)
[ 11748, 2779, 2414, 198, 11748, 28686, 198, 11748, 640, 198, 11748, 25064, 198, 11748, 33918, 198, 11748, 2746, 13, 7829, 198, 11748, 2746, 13, 20786, 198, 11748, 2746, 13, 25480, 198, 11748, 2746, 13, 11250, 628, 198, 2, 355, 81, 2746, ...
3.056338
71
#!/usr/bin/env python # -*- coding: utf-8 -*- """ Multiply by operation. """ def times_by_one(a): """Return a * 1. """ return a * 1 def times_by_two(a): """Return a * 2. """ return a * 2 def times_by_three(a): """Return a * 3. """ return a * 3 def times_by_four(a): """Re...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 198, 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 198, 37811, 198, 15205, 541, 306, 416, 4905, 13, 198, 37811, 628, 198, 4299, 1661, 62, 1525, 62, 505, 7, 64, 2599, ...
2.087719
171
# # For compatibility with Python 2.x and 3.x, we use a specific means of # setting up an abstract class. See the stackoverflow question at # # https://stackoverflow.com/questions/35673474/ # using-abc-abcmeta-in-a-way-it-is-compatible-both-with-python-2-7-and-python-3-5 # # DO NOT MODIFY THE CODE WITHOUT UNDERSTANDI...
[ 2, 198, 2, 1114, 17764, 351, 11361, 362, 13, 87, 290, 513, 13, 87, 11, 356, 779, 257, 2176, 1724, 286, 198, 2, 4634, 510, 281, 12531, 1398, 13, 4091, 262, 8931, 2502, 11125, 1808, 379, 198, 2, 198, 2, 3740, 1378, 25558, 2502, 11...
2.767857
168
''' Various utlity functions that are independant of any Django app or model. ''' from nturl2path import pathname2url as ntpathname2url from nturl2path import url2pathname as url2ntpathname import random import re import string from unicodedata import normalize from urllib.parse import urljoin, urlparse from urllib.re...
[ 7061, 6, 198, 40009, 3384, 75, 414, 5499, 326, 389, 3485, 415, 286, 597, 37770, 598, 393, 198, 19849, 13, 198, 7061, 6, 198, 198, 6738, 299, 83, 6371, 17, 6978, 1330, 3108, 3672, 17, 6371, 355, 299, 83, 6978, 3672, 17, 6371, 198, ...
2.368064
2,505
from .exogenous import get_exogenous_seasonal_array, \ get_exogenous_seasonal_dct_lst, get_exogenous_seasonal_array_from_dct_lst
[ 6738, 764, 1069, 27897, 1330, 651, 62, 1069, 27897, 62, 6230, 282, 62, 18747, 11, 3467, 198, 220, 220, 220, 651, 62, 1069, 27897, 62, 6230, 282, 62, 67, 310, 62, 75, 301, 11, 651, 62, 1069, 27897, 62, 6230, 282, 62, 18747, 62, 6...
2.557692
52
import logging from .coderack import coderack from .coderack_pressure import coderack_pressures from .slipnet import slipnet from .temperature import temperature from .workspace import workspace from .workspace_formulas import workspace_formulas def run_trial(answers): """Run a trial of the copycat algorithm""...
[ 11748, 18931, 198, 198, 6738, 764, 66, 12342, 441, 1330, 269, 12342, 441, 198, 6738, 764, 66, 12342, 441, 62, 36151, 1330, 269, 12342, 441, 62, 8439, 942, 198, 6738, 764, 6649, 541, 3262, 1330, 13819, 3262, 198, 6738, 764, 11498, 2106...
2.808451
355
import pandas as pd import pickle import os import numpy as np import sys import UKBB_Func_Final as UKBBFF from sklearn.metrics import roc_auc_score, make_scorer # class RunParams: # #For GBDT runs # def __init__(self,model_path_name=[],BASIC_PROB_BASED_JOB_NAME=[],num_of_bootstraps=1000): # print("F...
[ 11748, 19798, 292, 355, 279, 67, 198, 11748, 2298, 293, 198, 11748, 28686, 198, 11748, 299, 32152, 355, 45941, 198, 11748, 25064, 198, 11748, 3482, 15199, 62, 37, 19524, 62, 19006, 355, 3482, 15199, 5777, 198, 6738, 1341, 35720, 13, 416...
1.939158
2,827
with open('input.txt', 'r') as f: data = [list(line) for line in f.read().splitlines()] # part 1 new_data = simulate(data, get_adjacent, 4) print(sum(line.count('#') for line in new_data)) # part 2 new_data = simulate(data, get_adjacent_line, 5) print(sum(line.count('#') for line in new_data))
[ 628, 628, 198, 4480, 1280, 10786, 15414, 13, 14116, 3256, 705, 81, 11537, 355, 277, 25, 198, 220, 220, 220, 1366, 796, 685, 4868, 7, 1370, 8, 329, 1627, 287, 277, 13, 961, 22446, 35312, 6615, 3419, 60, 198, 198, 2, 636, 352, 198, ...
2.571429
119
from __future__ import print_function import io import json import os import sys import time import struct if sys.version_info < (3,): # Python 2 input = raw_input import config from .. import appstore from .. import firmware from .. import installer from ..marketserver.server import * from ..usb import * from ..us...
[ 6738, 11593, 37443, 834, 1330, 3601, 62, 8818, 198, 11748, 33245, 198, 11748, 33918, 198, 11748, 28686, 198, 11748, 25064, 198, 11748, 640, 198, 11748, 2878, 198, 198, 361, 25064, 13, 9641, 62, 10951, 1279, 357, 18, 11, 2599, 198, 1303,...
2.625581
4,730
import datetime import io import operator import os import re from zipfile import ZipFile # def make_entry(entry): # if isinstance(entry, Entry): # return entry # mtime = os.path.getmtime(entry) # return Entry(entry, mtime) # handlers = { # ".zip": (lambda x: None) # } # class DirectoryHand...
[ 11748, 4818, 8079, 198, 11748, 33245, 198, 11748, 10088, 198, 11748, 28686, 198, 11748, 302, 198, 198, 6738, 19974, 7753, 1330, 38636, 8979, 198, 198, 2, 825, 787, 62, 13000, 7, 13000, 2599, 198, 2, 220, 220, 220, 220, 611, 318, 39098...
1.992316
2,863
import numpy as np import os from skimage.feature import hog from sklearn.svm import LinearSVC from sklearn.svm import SVC from sklearn.ensemble import RandomForestClassifier from sklearn.neighbors import KNeighborsClassifier from sklearn import metrics from sklearn.model_selection import GridSearchCV from sklearn.met...
[ 11748, 299, 32152, 355, 45941, 198, 11748, 28686, 198, 198, 6738, 1341, 9060, 13, 30053, 1330, 40476, 198, 6738, 1341, 35720, 13, 82, 14761, 1330, 44800, 50, 15922, 198, 6738, 1341, 35720, 13, 82, 14761, 1330, 311, 15922, 198, 6738, 134...
2.7984
625
from .global_scores import global_score_pca, global_score_laplacian from .local_scores import knn_spearman_r, knn_spearman_r, geodesic_distance
[ 6738, 764, 20541, 62, 1416, 2850, 1330, 3298, 62, 26675, 62, 79, 6888, 11, 3298, 62, 26675, 62, 5031, 489, 330, 666, 198, 6738, 764, 12001, 62, 1416, 2850, 1330, 638, 77, 62, 4125, 283, 805, 62, 81, 11, 638, 77, 62, 4125, 283, 8...
2.666667
54
import setuptools install_reqs_path = 'environment/install_requirements.txt' read_me = """ Quantum Hardware Abstraction Layer package. """ about_info = {} with open("qhal/__about__.py") as f: exec(f.read(), about_info) setuptools.setup( name="qhal", packages=setuptools.find_packages(include=['qhal', '...
[ 11748, 900, 37623, 10141, 198, 198, 17350, 62, 42180, 82, 62, 6978, 796, 705, 38986, 14, 17350, 62, 8897, 18883, 13, 14116, 6, 198, 198, 961, 62, 1326, 796, 37227, 29082, 28715, 2275, 301, 7861, 34398, 5301, 13, 37227, 198, 198, 10755...
2.651111
450
lista = [10,20,5,40,10] soma = 0 for i in range(len(lista)): soma = soma + lista[i] print("A soma deu", soma)
[ 4868, 64, 796, 685, 940, 11, 1238, 11, 20, 11, 1821, 11, 940, 60, 201, 198, 201, 198, 82, 6086, 796, 657, 201, 198, 201, 198, 1640, 1312, 287, 2837, 7, 11925, 7, 4868, 64, 8, 2599, 201, 198, 220, 220, 220, 3870, 64, 796, 3870,...
1.785714
70
""" # Copyright 2021 Huawei Technologies Co., Ltd # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or a...
[ 37811, 198, 2, 15069, 33448, 43208, 21852, 1766, 1539, 12052, 198, 2, 198, 2, 49962, 739, 262, 24843, 13789, 11, 10628, 362, 13, 15, 357, 1169, 366, 34156, 15341, 198, 2, 345, 743, 407, 779, 428, 2393, 2845, 287, 11846, 351, 262, 13...
2.526949
2,245
# Licensed to the StackStorm, Inc ('StackStorm') under one or more # contributor license agreements. See the NOTICE file distributed with # this work for additional information regarding copyright ownership. # The ASF licenses this file to You under the Apache License, Version 2.0 # (the "License"); you may not use th...
[ 2, 49962, 284, 262, 23881, 32173, 11, 3457, 19203, 25896, 32173, 11537, 739, 530, 393, 517, 198, 2, 18920, 5964, 11704, 13, 220, 4091, 262, 28536, 2393, 9387, 351, 198, 2, 428, 670, 329, 3224, 1321, 5115, 6634, 9238, 13, 198, 2, 383...
3.662461
317
print("ALTEREI O PROJETO DO JONATHAN")
[ 4798, 7203, 1847, 5781, 36, 40, 440, 21965, 41, 2767, 46, 8410, 449, 1340, 12599, 1565, 4943, 198 ]
2.166667
18