content
stringlengths
1
1.05M
input_ids
listlengths
1
883k
ratio_char_token
float64
1
22.9
token_count
int64
1
883k
# -*- coding: utf-8 -*- from __future__ import print_function, division from qsrlib_qsrs.qsr_triadic_abstractclass import QSR_Triadic_1t_Abstractclass import math
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 6738, 11593, 37443, 834, 1330, 3601, 62, 8818, 11, 7297, 198, 6738, 10662, 27891, 8019, 62, 48382, 3808, 13, 80, 27891, 62, 83, 21244, 291, 62, 397, 8709, 4871, 1330, ...
2.762712
59
import numpy as np from addict import Dict cfg = Dict() cfg.name = 'tdlmc' cfg.seed = 1113 # random seed cfg.bnn_prior_class = 'DiagonalBNNPrior' cfg.n_data = 200 # number of images to generate cfg.train_vs_val = 'train' cfg.components = ['lens_mass', 'external_shear', 'src_light', 'lens_light', 'agn_light'] cfg.chec...
[ 11748, 299, 32152, 355, 45941, 198, 6738, 19678, 1330, 360, 713, 198, 198, 37581, 796, 360, 713, 3419, 198, 198, 37581, 13, 3672, 796, 705, 8671, 75, 23209, 6, 198, 37581, 13, 28826, 796, 13374, 18, 1303, 4738, 9403, 198, 37581, 13, ...
1.287391
7,328
""" :matrix,0,. ,matrix -90 48 78 64 -40 64 -81 -7 66 ,: 48 78 -40 64 -7 66 209. ,matrix: -1 -1 -1 -1 2 2 -1 -1 -1 ,: 2 2 4. """ import sys from arrandmatrix.q16 import MaxSum if __name__ == '__main__': my_matrix = [ [-90, 48, 78], [64, -40, 64], [-81, -7, 66] ] ...
[ 37811, 198, 25, 6759, 8609, 11, 15, 38508, 198, 198, 11, 6759, 8609, 198, 12, 3829, 220, 4764, 220, 8699, 198, 2414, 220, 220, 532, 1821, 5598, 198, 12, 6659, 220, 532, 22, 220, 7930, 198, 11, 25, 198, 2780, 220, 8699, 198, 12, ...
1.733333
210
# Generated by Django 2.2.6 on 2019-10-22 00:26 from django.db import migrations, models
[ 2, 2980, 515, 416, 37770, 362, 13, 17, 13, 21, 319, 13130, 12, 940, 12, 1828, 3571, 25, 2075, 198, 198, 6738, 42625, 14208, 13, 9945, 1330, 15720, 602, 11, 4981, 628 ]
2.84375
32
t=int(input()) for _ in range(t): n=int(input()) a=list(map(int, input().split())) max_sum=0 for j in range(n): for k in range(j+1, n): num=a[j]*a[k] add=0 while(num!=0): add+=num%10 num=num//10 if max_sum<add: ...
[ 83, 28, 600, 7, 15414, 28955, 198, 1640, 4808, 287, 2837, 7, 83, 2599, 198, 220, 220, 220, 299, 28, 600, 7, 15414, 28955, 198, 220, 220, 220, 257, 28, 4868, 7, 8899, 7, 600, 11, 5128, 22446, 35312, 3419, 4008, 198, 220, 220, 220...
1.573913
230
# coding: utf-8 """ JDX reference application API This is a collection of schemas and endpoints for the various JDX, Concentric Sky facing REST endpoints, the schemas define an API contract of sorts between the request and response expectations of the JDX reference application. This API is to be mutually deve...
[ 2, 19617, 25, 3384, 69, 12, 23, 198, 198, 37811, 198, 220, 220, 220, 28591, 55, 4941, 3586, 7824, 628, 220, 220, 220, 770, 318, 257, 4947, 286, 3897, 5356, 290, 886, 13033, 329, 262, 2972, 28591, 55, 11, 1482, 28577, 5274, 6476, 3...
2.911458
384
# Some say that every one year of a humans life is equivalent to seven years of a dogs life. # Write a function named dog_years() that has two parameters named name and age. # The function should compute the age in dog years and return the following string: # "{name}, you are {age} years old in dog years"
[ 2, 2773, 910, 326, 790, 530, 614, 286, 257, 5384, 1204, 318, 7548, 284, 3598, 812, 286, 257, 6844, 1204, 13, 220, 198, 2, 19430, 257, 2163, 3706, 3290, 62, 19002, 3419, 326, 468, 734, 10007, 3706, 1438, 290, 2479, 13, 198, 2, 383,...
4.12
75
"""Constants for the Matt's Gadgets Ceiling Fan integration.""" DOMAIN = "matts_gadgets_ceiling_fan"
[ 37811, 34184, 1187, 329, 262, 4705, 338, 20925, 11407, 20101, 4386, 13836, 11812, 526, 15931, 198, 198, 39170, 29833, 796, 366, 6759, 912, 62, 70, 324, 11407, 62, 344, 4386, 62, 24408, 1, 198 ]
3
34
from spaceone.repository.manager.repository_manager import RepositoryManager
[ 6738, 2272, 505, 13, 260, 1930, 37765, 13, 37153, 13, 260, 1930, 37765, 62, 37153, 1330, 1432, 13264, 13511, 628 ]
3.9
20
#!/usr/bin/env python """ _AddToFileset_ MySQL implementation of Files.AddToFileset """ import time from WMCore.Database.DBFormatter import DBFormatter
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 198, 37811, 198, 62, 4550, 2514, 25876, 316, 62, 198, 198, 3666, 17861, 7822, 286, 13283, 13, 4550, 2514, 25876, 316, 198, 37811, 198, 198, 11748, 640, 198, 198, 6738, 370, 9655, 382, 13, ...
2.980769
52
import module_support_main import pandas as pd import mrr import numpy as np import settings_main as settings import get_ranks
[ 11748, 8265, 62, 11284, 62, 12417, 198, 11748, 19798, 292, 355, 279, 67, 198, 11748, 285, 21062, 198, 11748, 299, 32152, 355, 45941, 198, 11748, 6460, 62, 12417, 355, 6460, 198, 11748, 651, 62, 81, 2283, 198 ]
3.432432
37
from flask import Flask, Blueprint, g, request from src.model import Post, File from src.db import db from src.Middlewares.AuthMiddleware import * from werkzeug.utils import secure_filename import os import dateutil.parser as dt post_bp = Blueprint('post', __name__, url_prefix='/posts')
[ 6738, 42903, 1330, 46947, 11, 39932, 11, 308, 11, 2581, 198, 6738, 12351, 13, 19849, 1330, 2947, 11, 9220, 198, 6738, 12351, 13, 9945, 1330, 20613, 198, 6738, 12351, 13, 34621, 86, 3565, 13, 30515, 34621, 1574, 1330, 1635, 198, 6738, ...
3.293478
92
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Created on Mon Jun 15 14:24:28 2020 @author: twguest """ import os import numpy as np from time import time from wpg import srwlib from felpy.model.tools import radial_profile #from wpg.wpg_uti_wf import get_axis from tqdm import tqdm from felpy.utils.job_utils imp...
[ 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, 2892, 7653, 1315, 1478, 25, 1731, 25, 2078, 12131, 198, 198, 31, 9800, 25, 665, 5162, 395...
1.99011
4,348
import threading import time products = [] condition = threading.Condition()
[ 11748, 4704, 278, 198, 11748, 640, 198, 198, 29498, 796, 17635, 198, 31448, 796, 4704, 278, 13, 48362, 3419 ]
4.052632
19
import pytest # noqa: F401 from meltano.core.utils import flatten, nest, pop_at_path, set_at_path
[ 11748, 12972, 9288, 220, 1303, 645, 20402, 25, 376, 21844, 198, 198, 6738, 16867, 5733, 13, 7295, 13, 26791, 1330, 27172, 268, 11, 16343, 11, 1461, 62, 265, 62, 6978, 11, 900, 62, 265, 62, 6978, 628, 628, 198 ]
2.666667
39
import pandas as pd from phc.easy.frame import Frame from phc.easy.abstract.fhir_service_patient_item import FhirServicePatientItem
[ 11748, 19798, 292, 355, 279, 67, 198, 198, 6738, 872, 66, 13, 38171, 13, 14535, 1330, 25184, 198, 6738, 872, 66, 13, 38171, 13, 397, 8709, 13, 69, 71, 343, 62, 15271, 62, 26029, 62, 9186, 1330, 376, 71, 343, 16177, 12130, 1153, 74...
2.977778
45
import torch from feathermap.utils import timed from math import sqrt dim_in = 2 ** 14 dim_out = 2 ** 4 A = torch.randn(dim_in, dim_out) B = torch.randn(dim_out, dim_in) C = torch.rand(dim_in, dim_in) D = torch.rand(dim_in, dim_in) E = torch.rand(1, dim_out) F = torch.rand(dim_out, dim_in) G = torch.rand(int(sqrt(dim...
[ 11748, 28034, 198, 6738, 17972, 8899, 13, 26791, 1330, 28805, 198, 6738, 10688, 1330, 19862, 17034, 628, 198, 27740, 62, 259, 796, 362, 12429, 1478, 198, 27740, 62, 448, 796, 362, 12429, 604, 198, 32, 796, 28034, 13, 25192, 77, 7, 277...
2.102389
293
from django.contrib import admin from django.urls import path from App import views app_name = 'App' urlpatterns = [ path('', views.home, name='home'), # path('cud/', views.handle_data, name='handle_data'), # path('search/', views.find_data, name='search'), # sql path('rawsql/', views.ra...
[ 6738, 42625, 14208, 13, 3642, 822, 1330, 13169, 198, 6738, 42625, 14208, 13, 6371, 82, 1330, 3108, 198, 198, 6738, 2034, 1330, 5009, 198, 198, 1324, 62, 3672, 796, 705, 4677, 6, 198, 6371, 33279, 82, 796, 685, 198, 220, 220, 220, 31...
2.488215
297
#!/usr/bin/env python # # Copyright (c) 2020 Intel Corporation # # This work is licensed under the terms of the MIT license. # For a copy, see <https://opensource.org/licenses/MIT>. # """ Agent for Walker """ import math from nav_msgs.msg import Path, Odometry from std_msgs.msg import Float64 from geometry_msgs.msg imp...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 198, 2, 198, 2, 15069, 357, 66, 8, 12131, 8180, 10501, 198, 2, 198, 2, 770, 670, 318, 11971, 739, 262, 2846, 286, 262, 17168, 5964, 13, 198, 2, 1114, 257, 4866, 11, 766, 1279, 5450, 1...
2.597531
405
from typing import Any, Dict, List def nested_in(config: Dict[str, Any], nested_keys: List[str]) -> bool: """ Checks if the given nested keys are within the given dict. Returns false if any of the intermediate keys or the final key are not nested in the dict. >>> config = {} >>> nested_in(con...
[ 6738, 19720, 1330, 4377, 11, 360, 713, 11, 7343, 628, 628, 628, 198, 4299, 28376, 62, 259, 7, 11250, 25, 360, 713, 58, 2536, 11, 4377, 4357, 28376, 62, 13083, 25, 7343, 58, 2536, 12962, 4613, 20512, 25, 198, 220, 220, 220, 37227, ...
2.529506
627
from . import adapters, utils from .polytropon import VARIANT2CLASS, SkilledMixin
[ 6738, 764, 1330, 46363, 11, 3384, 4487, 198, 6738, 764, 35428, 48385, 261, 1330, 569, 33604, 8643, 17, 31631, 11, 3661, 2967, 35608, 259 ]
3.375
24
import pytest from wagtail.core.models import Page from cdhweb.pages.context_processors import page_intro from cdhweb.pages.models import LinkPage, PageIntro
[ 11748, 12972, 9288, 198, 6738, 266, 363, 13199, 13, 7295, 13, 27530, 1330, 7873, 198, 198, 6738, 22927, 71, 12384, 13, 31126, 13, 22866, 62, 14681, 669, 1330, 2443, 62, 600, 305, 198, 6738, 22927, 71, 12384, 13, 31126, 13, 27530, 1330...
3.265306
49
def tri_selection(tableau): '''tri_selection (list(object) -> list(object)): trie un tableau''' # Initialisation '''taille (int) : taille du tableau''' taille = len(tableau) # Dbut du traitement # Pour chaque lment tableau[i] du tableau for i in range(taille): # Pour chaque j al...
[ 4299, 1333, 62, 49283, 7, 11487, 559, 2599, 198, 220, 220, 220, 705, 7061, 28461, 62, 49283, 357, 4868, 7, 15252, 8, 4613, 1351, 7, 15252, 8, 2599, 1333, 68, 555, 3084, 559, 7061, 6, 198, 220, 220, 220, 1303, 20768, 5612, 198, 220...
2.127517
298
from argparse import ArgumentParser import torch import torch.utils.data import yaml from torchvision import transforms import src.config.config as config from src.model.nn.dcnet import DCNet from src.test.predictor import Predictor from src.test.tester import Tester from src.train.trainer import Trainer ...
[ 6738, 1822, 29572, 1330, 45751, 46677, 201, 198, 201, 198, 11748, 28034, 201, 198, 11748, 28034, 13, 26791, 13, 7890, 201, 198, 11748, 331, 43695, 201, 198, 6738, 28034, 10178, 1330, 31408, 201, 198, 201, 198, 11748, 12351, 13, 11250, 1...
2.498471
327
"""CLI to run commands on MGS server.""" from sys import stderr import click from .utils import add_authorization
[ 37811, 5097, 40, 284, 1057, 9729, 319, 337, 14313, 4382, 526, 15931, 198, 198, 6738, 25064, 1330, 336, 1082, 81, 198, 11748, 3904, 198, 198, 6738, 764, 26791, 1330, 751, 62, 9800, 1634, 628, 628, 198 ]
3.333333
36
from datetime import timedelta
[ 6738, 4818, 8079, 1330, 28805, 12514, 628 ]
4.571429
7
import sys sys.stdin = open("input.txt", "r") sys.stdout = open("output.txt", "w") n, m = map(int, input().split()) n_mas = [0 for i in range(n)] for i in range(m): for j in list(map(int, input().split())): n_mas[j-1] += 1 print(*n_mas)
[ 11748, 25064, 198, 17597, 13, 19282, 259, 796, 1280, 7203, 15414, 13, 14116, 1600, 366, 81, 4943, 198, 17597, 13, 19282, 448, 796, 1280, 7203, 22915, 13, 14116, 1600, 366, 86, 4943, 198, 77, 11, 285, 796, 3975, 7, 600, 11, 5128, 224...
2.254545
110
# Copyright 2021 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # https://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, ...
[ 2, 15069, 33448, 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...
3.322332
909
from .read_handle import ReadHandle from .command_handle_base import CommandHandle from .write_command_handle import WriteCommandHandle from .delete_command_handle import DeleteCommandHandle from .tcp_bulk_insert_handle import TcpBulkInsertHandle
[ 6738, 764, 961, 62, 28144, 1330, 4149, 37508, 198, 6738, 764, 21812, 62, 28144, 62, 8692, 1330, 9455, 37508, 198, 6738, 764, 13564, 62, 21812, 62, 28144, 1330, 19430, 21575, 37508, 198, 6738, 764, 33678, 62, 21812, 62, 28144, 1330, 2352...
3.967742
62
from django.shortcuts import render,redirect from django.contrib.auth.models import Group from .forms import AcademySignUpForm, AcademyProfile, ProfilePicture, PostAnAdForm, AboutAcademyForm from django.contrib.auth.models import User from django.views.generic import RedirectView from .decorators import unauthentic...
[ 6738, 42625, 14208, 13, 19509, 23779, 1330, 8543, 11, 445, 1060, 628, 198, 6738, 42625, 14208, 13, 3642, 822, 13, 18439, 13, 27530, 1330, 4912, 198, 6738, 764, 23914, 1330, 8581, 11712, 4933, 8479, 11, 8581, 37046, 11, 13118, 28070, 11,...
3.343832
381
cores = {'limpar':'\033[m', 'vermelho':'\033[1;31m','ciano':'\033[1;36m','azul':'\033[1;34m','amarelo':'\033[1;33m','verde':'\033[1;32m'} print('===== Tipo de Tringulo -> Aprimoramento do Desafio 35 =====') print() s1 = float(input('Primeiro segmento: ')) s2 = float(input('Segundo segmento: ')) s3 = float(input('Terce...
[ 66, 2850, 796, 1391, 6, 2475, 1845, 10354, 6, 59, 44427, 58, 76, 3256, 705, 332, 17694, 8873, 10354, 6, 59, 44427, 58, 16, 26, 3132, 76, 41707, 66, 10115, 10354, 6, 59, 44427, 58, 16, 26, 2623, 76, 41707, 1031, 377, 10354, 6, 59...
2.086598
485
import sys import tkinter import unittest from test.support import requires def simulate_mouse_click(widget, x, y): """Generate proper events to click at the x, y position (tries to act like an X server).""" widget.event_generate('<Enter>', x=0, y=0) widget.event_generate('<Motion>', x=x, y=y) wid...
[ 11748, 25064, 198, 11748, 256, 74, 3849, 198, 11748, 555, 715, 395, 198, 6738, 1332, 13, 11284, 1330, 4433, 628, 198, 4299, 29308, 62, 35888, 62, 12976, 7, 42655, 11, 2124, 11, 331, 2599, 198, 220, 220, 220, 37227, 8645, 378, 1774, ...
2.310811
296
from io import open from setuptools import setup, find_packages setup( name='pyseus', version='0.1', description='PySeus is a minimal viewer for medical imaging data.', long_description=open('README.md', encoding='utf-8').read(), long_description_content_type='text/markdown', url='http://github...
[ 6738, 33245, 1330, 1280, 198, 6738, 900, 37623, 10141, 1330, 9058, 11, 1064, 62, 43789, 198, 198, 40406, 7, 198, 220, 220, 220, 1438, 11639, 9078, 325, 385, 3256, 198, 220, 220, 220, 2196, 11639, 15, 13, 16, 3256, 198, 220, 220, 220...
2.114416
437
from pyspark.ml.pipeline import Transformer import pyspark.sql.functions as f import pyspark.sql.types as t from pyspark.sql import DataFrame
[ 6738, 279, 893, 20928, 13, 4029, 13, 79, 541, 4470, 1330, 3602, 16354, 198, 11748, 279, 893, 20928, 13, 25410, 13, 12543, 2733, 355, 277, 198, 11748, 279, 893, 20928, 13, 25410, 13, 19199, 355, 256, 198, 6738, 279, 893, 20928, 13, 2...
3.065217
46
print f([3, 12, 16, 8, 17, 6, 13, 0, 4, 15, 1, 14, 11, 18, 10, 5, 9, 7, 2, 19]) print f([2, 6, 11, 4, 7, 18, 19, 10, 15, 13, 3, 0, 17, 5, 8, 1, 14, 9, 16, 12]) print f([6, 12, 10, 7, 19, 15, 14, 5, 16, 1, 4, 11, 13, 2, 18, 9, 0, 3, 17, 8]) print f([1, 17, 13, 8, 9, 19, 18, 6, 5, 10, 12, 14, 2, 15, 0, 4, 11, 16, 7, 3]) ...
[ 4798, 277, 26933, 18, 11, 1105, 11, 1467, 11, 807, 11, 1596, 11, 718, 11, 1511, 11, 657, 11, 604, 11, 1315, 11, 352, 11, 1478, 11, 1367, 11, 1248, 11, 838, 11, 642, 11, 860, 11, 767, 11, 362, 11, 678, 12962, 198, 4798, 277, ...
1.818182
440
from django.apps import AppConfig
[ 6738, 42625, 14208, 13, 18211, 1330, 2034, 16934, 628 ]
3.888889
9
""" 7) Leia uma temperatura em graus Fahrenheit e apresente-a convertida em graus Celsius. A frmula de converso : C = (F-32.0)*5.0/9.0, sendo C a temperatura em Celsius e F a temperatura em Fahrenheit. """ fahrenheit = float(input('Digite a temperatura em graus Fahrenheit F: \n')) print(f'A temperatura em graus Celsi...
[ 37811, 198, 22, 8, 41212, 334, 2611, 4124, 2541, 64, 795, 7933, 385, 35935, 304, 2471, 2028, 68, 12, 64, 10385, 3755, 795, 7933, 385, 34186, 13, 317, 1216, 76, 4712, 390, 6718, 568, 1058, 327, 796, 357, 37, 12, 2624, 13, 15, 27493...
2.669014
142
# Copyright (c) 2010-2013, Regents of the University of California. # All rights reserved. # # Released under the BSD 3-Clause license as published at the link below. # https://openwsn.atlassian.net/wiki/display/OW/License import logging log = logging.getLogger('typeRssi') log.setLevel(logging.ERROR) log.addHandler...
[ 2, 15069, 357, 66, 8, 3050, 12, 6390, 11, 3310, 658, 286, 262, 2059, 286, 3442, 13, 220, 198, 2, 1439, 2489, 10395, 13, 220, 198, 2, 220, 220, 198, 2, 28728, 739, 262, 347, 10305, 513, 12, 2601, 682, 5964, 355, 3199, 379, 262, ...
3.09322
118
#!/usr/bin/python2.7 # -*- coding: utf-8 -*- # vim:ts=4:sw=4:softtabstop=4:smarttab:expandtab # 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 ...
[ 2, 48443, 14629, 14, 8800, 14, 29412, 17, 13, 22, 198, 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 2, 43907, 25, 912, 28, 19, 25, 2032, 28, 19, 25, 4215, 8658, 11338, 28, 19, 25, 27004, 8658, 25, 11201, 392,...
3.030999
871
"""Create count_weekdays function Revision ID: 564d660d4ddb Revises: Create Date: 2021-10-29 12:02:59.409012 """ import textwrap from alembic import op from sqlalchemy.sql.ddl import CreateSchema, DropSchema # revision identifiers, used by Alembic. revision = '564d660d4ddb' down_revision = None branch_labels = Non...
[ 37811, 16447, 954, 62, 10464, 12545, 2163, 198, 198, 18009, 1166, 4522, 25, 642, 2414, 67, 39885, 67, 19, 1860, 65, 198, 18009, 2696, 25, 198, 16447, 7536, 25, 33448, 12, 940, 12, 1959, 1105, 25, 2999, 25, 3270, 13, 29416, 30206, 19...
2.415225
289
# WARNING: Please don't edit this file. It was generated by Python/WinRT v1.0.0-beta.4 import winsdk _ns_module = winsdk._import_ns_module("Windows.Graphics.Capture.Interop") try: import winsdk.windows.graphics.capture except Exception: pass create_for_monitor = _ns_module.create_for_monitor create_for_wind...
[ 2, 39410, 25, 4222, 836, 470, 4370, 428, 2393, 13, 632, 373, 7560, 416, 11361, 14, 16643, 14181, 410, 16, 13, 15, 13, 15, 12, 31361, 13, 19, 198, 198, 11748, 7864, 34388, 198, 198, 62, 5907, 62, 21412, 796, 7864, 34388, 13557, 117...
2.901639
122
from __future__ import division import math import torch import torch.nn as nn
[ 6738, 11593, 37443, 834, 1330, 7297, 198, 11748, 10688, 198, 198, 11748, 28034, 198, 11748, 28034, 13, 20471, 355, 299, 77, 628, 628, 628, 198 ]
3.44
25
# Generated by Django 3.1.2 on 2020-10-29 21:51 from django.db import migrations
[ 2, 2980, 515, 416, 37770, 513, 13, 16, 13, 17, 319, 12131, 12, 940, 12, 1959, 2310, 25, 4349, 198, 198, 6738, 42625, 14208, 13, 9945, 1330, 15720, 602, 628 ]
2.766667
30
from prices import MoneyRange from ...shipping import models from ...shipping.interface import ShippingMethodData from ..channel import ChannelQsContext from ..translations.resolvers import resolve_translation
[ 6738, 4536, 1330, 12911, 17257, 198, 198, 6738, 2644, 1477, 4501, 1330, 4981, 198, 6738, 2644, 1477, 4501, 13, 39994, 1330, 24147, 17410, 6601, 198, 6738, 11485, 17620, 1330, 11102, 48, 82, 21947, 198, 6738, 11485, 7645, 49905, 13, 411, ...
4.458333
48
# Confidential, Copyright 2020, Sony Corporation of America, All rights reserved. from matplotlib import pyplot as plt import pandemic_simulator as ps if __name__ == '__main__': swedish_strategy = [ps.data.StageSchedule(stage=0, end_day=3), ps.data.StageSchedule(stage=1, end_day=None)] ...
[ 2, 7326, 35599, 11, 15069, 12131, 11, 10184, 10501, 286, 2253, 11, 1439, 2489, 10395, 13, 198, 198, 6738, 2603, 29487, 8019, 1330, 12972, 29487, 355, 458, 83, 198, 198, 11748, 19798, 5314, 62, 14323, 8927, 355, 26692, 628, 198, 198, 3...
1.860277
866
from twisted.internet.defer import inlineCallbacks from EGGS_labrad.clients import GUIClient from EGGS_labrad.config.device_db import device_db from EGGS_labrad.clients.ARTIQ_client.DAC_gui import DAC_gui from copy import deepcopy DACID = 659312 if __name__ == "__main__": from EGGS_labrad.clients import runCl...
[ 6738, 19074, 13, 37675, 13, 4299, 263, 1330, 26098, 14134, 10146, 198, 198, 6738, 412, 11190, 50, 62, 23912, 6335, 13, 565, 2334, 1330, 19348, 2149, 75, 1153, 198, 6738, 412, 11190, 50, 62, 23912, 6335, 13, 11250, 13, 25202, 62, 9945,...
2.7
130
from django.http import HttpResponseRedirect, HttpResponse from django.shortcuts import render_to_response from datetime import datetime, timedelta from django.contrib.auth.models import User from django.contrib import messages from django.shortcuts import render_to_response, get_object_or_404 from django.template impo...
[ 6738, 42625, 14208, 13, 4023, 1330, 367, 29281, 31077, 7738, 1060, 11, 367, 29281, 31077, 198, 6738, 42625, 14208, 13, 19509, 23779, 1330, 8543, 62, 1462, 62, 26209, 198, 6738, 4818, 8079, 1330, 4818, 8079, 11, 28805, 12514, 198, 6738, ...
3.108939
358
import subprocess from subprocess import PIPE
[ 11748, 850, 14681, 198, 6738, 850, 14681, 1330, 350, 4061, 36, 628 ]
3.916667
12
# (c) Copyright 2015, 2016 Hewlett Packard Enterprise Development LP # (c) Copyright 2017 SUSE 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...
[ 2, 357, 66, 8, 15069, 1853, 11, 1584, 30446, 15503, 6400, 446, 14973, 7712, 18470, 198, 2, 357, 66, 8, 15069, 2177, 311, 19108, 11419, 198, 2, 198, 2, 49962, 739, 262, 24843, 13789, 11, 10628, 362, 13, 15, 357, 1169, 366, 34156, 1...
1.907709
2,763
from pyamaze import maze,COLOR,agent from environments import Maze from agents import MazeAgentDFS, MazeAgentBranchAndBound, MazeAgentAStar env = Maze(8,8) ag = MazeAgentAStar(env) #ag = MazeAgentBranchAndBound(env,40) #ag = MazeAgentDFS(env) ag.act()
[ 6738, 12972, 321, 6201, 1330, 31237, 11, 46786, 11, 25781, 198, 6738, 12493, 1330, 33412, 198, 6738, 6554, 1330, 33412, 36772, 8068, 50, 11, 33412, 36772, 33, 25642, 1870, 49646, 11, 33412, 36772, 32, 8248, 628, 198, 24330, 796, 33412, ...
2.91954
87
#!/usr/bin/env python3 # -*- coding: utf-8 -*- import pandas as pd import numpy as np import matplotlib.pyplot as plt import os import ujson from datetime import datetime
[ 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, 19798, 292, 355, 279, 67, 198, 11748, 299, 32152, 355, 45941, 198, 11748, 2603, 29487, 8019, 13, 9078, ...
2.730159
63
from .image_loader import ImageGenerator
[ 6738, 764, 9060, 62, 29356, 1330, 7412, 8645, 1352, 198 ]
4.1
10
#!/usr/bin/env python3 # vim:fenc=utf-8 ff=unix ft=python ts=4 sw=4 sts=4 noet : import os import sys import datetime from pynmea2 import NMEASentence, ParseError if len(sys.argv) != 2: print("Usage: %s nmeafile.nmea" % sys.argv[0] ) sys.exit(1) file_path = os.path.abspath(sys.argv[1]) tmp_path = os.p...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 18, 201, 198, 2, 43907, 25, 69, 12685, 28, 40477, 12, 23, 31246, 28, 403, 844, 10117, 28, 29412, 40379, 28, 19, 1509, 28, 19, 39747, 28, 19, 645, 316, 1058, 201, 198, 201, 198, 11748, ...
1.986166
506
# -*- coding: utf-8 -*- """ Coinkit ~~~~~ :copyright: (c) 2013 by Halfmoon Labs :license: MIT, see LICENSE for more details. """ import re def int_to_string(integer, keyspace_chars): """ Turn a positive integer into a string. """ if not integer > 0: raise ValueError('integer must be >...
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 37811, 198, 220, 220, 220, 1766, 676, 270, 198, 220, 220, 220, 220, 8728, 93, 628, 220, 220, 220, 1058, 22163, 4766, 25, 357, 66, 8, 2211, 416, 13139, 22977, 23500, ...
2.734908
381
# (c) Copyright 2019 Brocade, a Broadcom Company # All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 #...
[ 2, 220, 220, 220, 357, 66, 8, 15069, 13130, 2806, 46395, 11, 257, 9765, 785, 5834, 198, 2, 220, 220, 220, 1439, 6923, 33876, 13, 198, 2, 198, 2, 220, 220, 220, 49962, 739, 262, 24843, 13789, 11, 10628, 362, 13, 15, 357, 1169, 36...
3.366366
333
from django.db import models # TODO: Add list of params to the type
[ 6738, 42625, 14208, 13, 9945, 1330, 4981, 628, 628, 198, 198, 2, 16926, 46, 25, 3060, 1351, 286, 42287, 284, 262, 2099, 628, 628, 628, 628, 628 ]
3.037037
27
""" eas/lookup init file """ import os import json import logging import requests import azure.functions as func from shared_code.common import func_json_response def main(req: func.HttpRequest) -> func.HttpResponse: """ main function for eas/lookup """ logging.info('EAS Lookup processed a request.') try...
[ 37811, 1396, 14, 5460, 929, 2315, 2393, 37227, 198, 11748, 28686, 198, 11748, 33918, 198, 11748, 18931, 198, 11748, 7007, 198, 11748, 35560, 495, 13, 12543, 2733, 355, 25439, 198, 6738, 4888, 62, 8189, 13, 11321, 1330, 25439, 62, 17752, ...
2.294227
537
#!/usr/bin/python3 # Copyright (c) 2017, PolyVection UG. # # Based on configure-edison, Intel Corporation. # # This program is free software; you can redistribute it and/or modify it # under the terms and conditions of the GNU Lesser General Public License, # version 2.1, as published by the Free Software Foundation. ...
[ 2, 48443, 14629, 14, 8800, 14, 29412, 18, 198, 198, 2, 15069, 357, 66, 8, 2177, 11, 12280, 53, 3213, 471, 38, 13, 198, 2, 198, 2, 13403, 319, 17425, 12, 276, 1653, 11, 8180, 10501, 13, 198, 2, 198, 2, 770, 1430, 318, 1479, 378...
3.375
224
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Created on Wed Nov 21 09:19:33 2018 @author: anonymous """ import os import torch import numpy as np from arguments import parse_a2c_args from multi_env import MultiEnv from models import CNNPolicy from a2c_agent import * from utils import initialize_logging from doom...
[ 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, 5267, 2310, 7769, 25, 1129, 25, 2091, 2864, 198, 198, 31, 9800, 25, 11614, 198, 378...
2.537572
346
from nose.tools import raises import numpy as np from napi import neval from napi.transformers import NapiTransformer, LazyTransformer from napi.transformers import short_circuit_and TRANSFORMERS = [NapiTransformer]#, LazyTransformer] randbools = lambda *n: np.random.randn(*n) < 0 ''' def test_o...
[ 6738, 9686, 13, 31391, 1330, 12073, 198, 11748, 299, 32152, 355, 45941, 198, 198, 6738, 299, 15042, 1330, 497, 2100, 198, 6738, 299, 15042, 13, 35636, 364, 1330, 14332, 72, 8291, 16354, 11, 406, 12582, 8291, 16354, 198, 6738, 299, 15042...
2.456
250
# -*- mode: python; encoding: utf-8 -*- # # Copyright 2014 the Critic contributors, Opera Software ASA # # 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/LI...
[ 2, 532, 9, 12, 4235, 25, 21015, 26, 21004, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 2, 198, 2, 15069, 1946, 262, 10056, 291, 20420, 11, 26049, 10442, 49599, 198, 2, 198, 2, 49962, 739, 262, 24843, 13789, 11, 10628, 362, 13, 15, ...
2.216638
1,154
from dearpygui.core import * from dearpygui.simple import * # callback add_slider_float2("uv_min", default_value=[0, 0], callback=update, min_value=-2, max_value=2) add_slider_float2("uv_max", default_value=[1, 1], callback=update, min_value=-2, max_value=2) add_data("TextureCoordinates", [0, 0, 1, 1]) add_image("...
[ 6738, 390, 5117, 88, 48317, 13, 7295, 1330, 1635, 198, 6738, 390, 5117, 88, 48317, 13, 36439, 1330, 1635, 628, 198, 2, 23838, 628, 198, 2860, 62, 6649, 1304, 62, 22468, 17, 7203, 14795, 62, 1084, 1600, 4277, 62, 8367, 41888, 15, 11,...
2.452174
230
from common import database from common import TaskQueues, get_object_store from common.utils import setup_logging, shell_escape from hashlib import sha256 import logging import os import shutil from sqlalchemy.orm import joinedload from sqlalchemy.sql import functions import subprocess import tempfile SQLSession = N...
[ 6738, 2219, 1330, 6831, 198, 6738, 2219, 1330, 15941, 15681, 947, 11, 651, 62, 15252, 62, 8095, 198, 6738, 2219, 13, 26791, 1330, 9058, 62, 6404, 2667, 11, 7582, 62, 41915, 198, 6738, 12234, 8019, 1330, 427, 64, 11645, 198, 11748, 189...
2.036062
3,799
# -*- coding: utf-8 -*- db.define_table('ip2nation', Field('code',type='integer', requires=IS_NOT_EMPTY()), Field('country', requires= IS_NOT_EMPTY()))
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 9945, 13, 13086, 62, 11487, 10786, 541, 17, 25729, 3256, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 7663, 10786, 8189, 3256, 4906,...
2.067416
89
from yalul.parser import Parser from yalul.parsers.ast.nodes.statements.expressions.binary import Binary from yalul.lex.token import Token from yalul.lex.token_type import TokenType from yalul.parsers.ast.nodes.statements.expressions.values.integer import Integer
[ 6738, 331, 282, 377, 13, 48610, 1330, 23042, 263, 198, 6738, 331, 282, 377, 13, 79, 945, 364, 13, 459, 13, 77, 4147, 13, 14269, 3196, 13, 42712, 507, 13, 39491, 1330, 45755, 198, 6738, 331, 282, 377, 13, 2588, 13, 30001, 1330, 291...
3.08046
87
import dataclasses import pytest from blspy import PrivateKey from src.server.outbound_message import NodeType from src.types.peer_info import PeerInfo from src.util.block_tools import BlockTools from src.util.hash import std_hash from src.util.ints import uint16 from src.util.validate_alert import create_alert_file,...
[ 11748, 4818, 330, 28958, 198, 198, 11748, 12972, 9288, 198, 6738, 698, 2777, 88, 1330, 15348, 9218, 198, 198, 6738, 12351, 13, 15388, 13, 448, 7784, 62, 20500, 1330, 19081, 6030, 198, 6738, 12351, 13, 19199, 13, 33350, 62, 10951, 1330, ...
2.766881
622
import keras import keras.backend as K from keras.datasets import imdb from keras.layers import LSTM, Embedding, TimeDistributed, Input, Dense from keras.models import Model from tensorflow.python.client import device_lib from tqdm import tqdm import os, random from argparse import ArgumentParser import numpy as n...
[ 11748, 41927, 292, 198, 198, 11748, 41927, 292, 13, 1891, 437, 355, 509, 198, 6738, 41927, 292, 13, 19608, 292, 1039, 1330, 545, 9945, 198, 6738, 41927, 292, 13, 75, 6962, 1330, 220, 406, 2257, 44, 11, 13302, 6048, 278, 11, 3862, 20...
2.122925
2,229
import re # Splits a line by spaces or tabs, returns a list object # Returns dictionary containing information of pedigree file # Convert spaces to tabs
[ 11748, 302, 198, 2, 13341, 896, 257, 1627, 416, 9029, 393, 22524, 11, 5860, 257, 1351, 2134, 198, 198, 2, 16409, 22155, 7268, 1321, 286, 46895, 2393, 198, 198, 2, 38240, 9029, 284, 22524, 198 ]
4.428571
35
from ws.RLAgents.B_ValueBased.Bootstrapping.qtable_mgt import qtable_mgt
[ 6738, 266, 82, 13, 7836, 10262, 658, 13, 33, 62, 11395, 15001, 13, 36476, 12044, 2105, 13, 80, 11487, 62, 11296, 83, 1330, 10662, 11487, 62, 11296, 83, 198 ]
2.517241
29
import subprocess import time import os import glob import requests import json import test_utils MODEL_SFILE_NAME = 'resnet18-f37072fd.pth'
[ 11748, 850, 14681, 198, 11748, 640, 198, 11748, 28686, 198, 11748, 15095, 198, 11748, 7007, 198, 11748, 33918, 198, 11748, 1332, 62, 26791, 198, 198, 33365, 3698, 62, 50, 25664, 62, 20608, 796, 705, 411, 3262, 1507, 12, 69, 20167, 4761,...
2.888889
54
"""Sometimes we need to completely zero out precip for a day Likely due to water being dumped into the tipping bucket to clean it :/ """ from __future__ import print_function import sys import datetime import pytz from pyiem.util import get_dbconn def zero_hourly(station, sts, ets): """Zero out the hourly data"...
[ 37811, 15468, 356, 761, 284, 3190, 6632, 503, 18812, 329, 257, 1110, 198, 198, 7594, 306, 2233, 284, 1660, 852, 24105, 656, 262, 31639, 19236, 284, 3424, 340, 1058, 14, 198, 37811, 198, 6738, 11593, 37443, 834, 1330, 3601, 62, 8818, 1...
2.40708
904
from unittest import TestCase from gdc_client.upload.client import create_resume_path
[ 6738, 555, 715, 395, 1330, 6208, 20448, 198, 198, 6738, 308, 17896, 62, 16366, 13, 25850, 13, 16366, 1330, 2251, 62, 411, 2454, 62, 6978, 628 ]
3.384615
26
# Copyright 2020 Khang Nguyen and Tim Merrill # Improved by Luzgog # Made with the same translate function as the original. import tkinter as tkinter from tkinter import messagebox from tkinter import scrolledtext from Fibonacci_Encoder import encode, decode, encodeReversed, decodeReversed, randomGen, encodeR...
[ 2, 15069, 12131, 5311, 648, 42379, 290, 5045, 40418, 201, 198, 2, 24125, 416, 6026, 89, 70, 519, 201, 198, 201, 198, 2, 14446, 351, 262, 976, 15772, 2163, 355, 262, 2656, 13, 201, 198, 201, 198, 11748, 256, 74, 3849, 355, 256, 74,...
2.800599
4,343
num = int(input("Enter a number: ")) temp = num reverse = 0 while(temp): reverse = (reverse * 10) + (temp % 10) temp = int(temp / 10) print("Reversed: " + str(reverse))
[ 22510, 796, 493, 7, 15414, 7203, 17469, 257, 1271, 25, 366, 4008, 198, 29510, 796, 997, 198, 50188, 796, 657, 198, 4514, 7, 29510, 2599, 198, 220, 220, 220, 9575, 796, 357, 50188, 1635, 838, 8, 1343, 357, 29510, 4064, 838, 8, 198, ...
2.602941
68
import requests, base64
[ 11748, 7007, 11, 2779, 2414, 201, 198, 220, 220, 220, 220, 220, 220, 220, 220, 201, 198, 220, 201, 198, 220, 220, 220, 220, 220, 220, 220, 220 ]
1.642857
28
""" 81. Search in Rotated Sorted Array II """
[ 37811, 201, 198, 6659, 13, 11140, 287, 18481, 515, 311, 9741, 15690, 2873, 201, 198, 37811, 201, 198 ]
2.722222
18
from .dict_operations import merge_dict, prune_dict, multiply_dicts __all__ = ['dict_operations', 'merge_dict', 'prune_dict', 'multiply_dicts', ]
[ 6738, 764, 11600, 62, 3575, 602, 1330, 20121, 62, 11600, 11, 778, 1726, 62, 11600, 11, 29162, 62, 11600, 82, 198, 198, 834, 439, 834, 796, 37250, 11600, 62, 3575, 602, 3256, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 7...
1.94898
98
import numpy as np import torch from torch.autograd import Variable import torch.nn.functional as F
[ 11748, 299, 32152, 355, 45941, 198, 11748, 28034, 198, 6738, 28034, 13, 2306, 519, 6335, 1330, 35748, 198, 11748, 28034, 13, 20471, 13, 45124, 355, 376, 198 ]
3.703704
27
import discord from wicket.commands.list import botListServices from wicket.commands.docker_commands import * COMMANDS = { "help": {"func": botHelp, "auth": False, "description": "Get help with the bot"}, "list": { "func": botListServices, "auth": False, "description": "Get a list of...
[ 11748, 36446, 198, 198, 6738, 266, 9715, 13, 9503, 1746, 13, 4868, 1330, 10214, 8053, 31007, 198, 6738, 266, 9715, 13, 9503, 1746, 13, 45986, 62, 9503, 1746, 1330, 1635, 628, 198, 198, 9858, 10725, 5258, 796, 1391, 198, 220, 220, 220,...
2.309192
359
from rl_helper.envhelper import envhelper,VDisplay from rl_helper.fps import fps from rl_helper.exps import ExperimentManager
[ 6738, 374, 75, 62, 2978, 525, 13, 24330, 2978, 525, 1330, 17365, 2978, 525, 11, 53, 23114, 198, 6738, 374, 75, 62, 2978, 525, 13, 29647, 1330, 32977, 198, 6738, 374, 75, 62, 2978, 525, 13, 1069, 862, 1330, 29544, 13511 ]
3.04878
41
from abc import ABC, abstractmethod
[ 6738, 450, 66, 1330, 9738, 11, 12531, 24396 ]
4.375
8
# Largest prime factor # https://projecteuler.net/problem=3 # Sieve of erasthotenes apporach # But still slow due to iteration to sqrt(n) from math import sqrt question = 600851475143 print(solve(question))
[ 2, 406, 853, 395, 6994, 5766, 198, 2, 3740, 1378, 16302, 68, 18173, 13, 3262, 14, 45573, 28, 18, 198, 198, 2, 311, 12311, 286, 49089, 400, 313, 18719, 598, 273, 620, 198, 2, 887, 991, 3105, 2233, 284, 24415, 284, 19862, 17034, 7, ...
3.044118
68
from pythonds.trees.binheap import BinHeap # pythonds so we need to use python2.7 to run bh = BinHeap() bh.insert(5) bh.insert(7) bh.insert(3) bh.insert(11) print(bh.delMin()) print(bh.delMin()) print(bh.delMin()) print(bh.delMin())
[ 6738, 279, 5272, 24764, 13, 83, 6037, 13, 8800, 258, 499, 1330, 20828, 1544, 499, 198, 198, 2, 279, 5272, 24764, 523, 356, 761, 284, 779, 21015, 17, 13, 22, 284, 1057, 198, 198, 34369, 796, 20828, 1544, 499, 3419, 198, 34369, 13, ...
2.27619
105
import pytest from abridger.extraction_model import Relation from abridger.schema import SqliteSchema from test.unit.extractor.base import TestExtractorBase
[ 11748, 12972, 9288, 198, 198, 6738, 450, 6058, 1362, 13, 2302, 7861, 62, 19849, 1330, 4718, 341, 198, 6738, 450, 6058, 1362, 13, 15952, 2611, 1330, 311, 13976, 578, 27054, 2611, 198, 6738, 1332, 13, 20850, 13, 2302, 40450, 13, 8692, 1...
3.382979
47
""" Tools for parsing GTDB headers into a taxonomy model """ import os import re import sys import logging from edl.taxon import TaxNode, Taxonomy from edl.silva import writeDumpFiles from edl.util import treeGenerator logger = logging.getLogger(__name__) GTDB = 'gtdb' GTDBTAB = 'gtdb_table' PHYLODB = 'phylodb' de...
[ 37811, 198, 33637, 329, 32096, 7963, 11012, 24697, 656, 257, 1687, 30565, 2746, 198, 37811, 198, 198, 11748, 28686, 198, 11748, 302, 198, 11748, 25064, 198, 11748, 18931, 198, 6738, 1225, 75, 13, 19290, 261, 1330, 9241, 19667, 11, 9241, ...
2.198902
2,368
numero_inteiro = int(input("Digite um nmero inteiro: ")) temp = numero_inteiro // 10 digito_dezena = temp % 10 print("O dgito das dezenas ", digito_dezena)
[ 22510, 3529, 62, 600, 68, 7058, 796, 493, 7, 15414, 7203, 19511, 578, 23781, 299, 647, 78, 493, 68, 7058, 25, 366, 4008, 198, 198, 29510, 796, 997, 3529, 62, 600, 68, 7058, 3373, 838, 198, 12894, 10094, 62, 2934, 4801, 64, 796, 20...
2.323529
68
x = 2 foo() print x
[ 87, 796, 362, 198, 198, 21943, 3419, 198, 4798, 2124, 198 ]
1.909091
11
# -*- coding: utf-8 -*- # Define here the models for your scraped items # # See documentation in: # http://doc.scrapy.org/en/latest/topics/items.html import scrapy
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 198, 2, 2896, 500, 994, 262, 4981, 329, 534, 15881, 276, 3709, 198, 2, 198, 2, 4091, 10314, 287, 25, 198, 2, 2638, 1378, 15390, 13, 1416, 2416, 88, 13, 2398, 14, 2...
2.677419
62
from .pyqt_helper import process_file
[ 6738, 764, 9078, 39568, 62, 2978, 525, 1330, 1429, 62, 7753, 198 ]
3.166667
12
from django.urls import path from django.conf.urls import url, include from . import views from django.conf import settings from django.conf.urls.static import static from .views import * urlpatterns=[ path('', views.home, name="home-page"), path("home/", views.datePage, name="date-page"), #User...
[ 6738, 42625, 14208, 13, 6371, 82, 1330, 3108, 198, 6738, 42625, 14208, 13, 10414, 13, 6371, 82, 1330, 19016, 11, 2291, 198, 6738, 764, 1330, 5009, 198, 6738, 42625, 14208, 13, 10414, 1330, 6460, 198, 6738, 42625, 14208, 13, 10414, 13, ...
2.586449
428
from collections import defaultdict from typing import Dict, List, DefaultDict, Tuple from kivy.clock import Clock from kivy.uix.boxlayout import BoxLayout from kivy.uix.gridlayout import GridLayout from kivy.uix.label import Label from kivy.uix.popup import Popup from core.common import OUTPUT_DEBUG, OUTPUT_ERROR fr...
[ 6738, 17268, 1330, 4277, 11600, 198, 6738, 19720, 1330, 360, 713, 11, 7343, 11, 15161, 35, 713, 11, 309, 29291, 198, 198, 6738, 479, 452, 88, 13, 15750, 1330, 21328, 198, 6738, 479, 452, 88, 13, 84, 844, 13, 3524, 39786, 1330, 8315,...
2.887931
232
import numpy as np from enum import Enum
[ 11748, 299, 32152, 355, 45941, 198, 6738, 33829, 1330, 2039, 388 ]
3.636364
11
import os import json import requests from django.http.response import HttpResponse, JsonResponse from django.conf import settings from django.shortcuts import render, redirect from django.contrib.auth.decorators import login_required from django.contrib.auth import login as auth_login, logout as auth_logout from api_t...
[ 11748, 28686, 198, 11748, 33918, 198, 11748, 7007, 198, 6738, 42625, 14208, 13, 4023, 13, 26209, 1330, 367, 29281, 31077, 11, 449, 1559, 31077, 198, 6738, 42625, 14208, 13, 10414, 1330, 6460, 198, 6738, 42625, 14208, 13, 19509, 23779, 133...
3.471831
142
from dataclasses import dataclass, field from enum import Enum from typing import List, Optional class SourceTypes(int, Enum): ini_file = 1 sqlite_file = 2
[ 6738, 4818, 330, 28958, 1330, 4818, 330, 31172, 11, 2214, 198, 6738, 33829, 1330, 2039, 388, 198, 6738, 19720, 1330, 7343, 11, 32233, 628, 628, 628, 628, 198, 4871, 8090, 31431, 7, 600, 11, 2039, 388, 2599, 198, 220, 220, 220, 287, ...
2.965517
58
from __future__ import unicode_literals from django.test.client import Client from django.test import TestCase from django.urls import reverse import six from model_mommy import mommy from devicegroups.models import Devicegroup from users.models import Lageruser
[ 6738, 11593, 37443, 834, 1330, 28000, 1098, 62, 17201, 874, 198, 198, 6738, 42625, 14208, 13, 9288, 13, 16366, 1330, 20985, 198, 6738, 42625, 14208, 13, 9288, 1330, 6208, 20448, 198, 6738, 42625, 14208, 13, 6371, 82, 1330, 9575, 198, 19...
3.708333
72
# Copyright 2017 The UAI-SDK Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable...
[ 2, 15069, 2177, 383, 471, 20185, 12, 10305, 42, 46665, 13, 1439, 6923, 33876, 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, 28...
3.700758
264
from django.conf import settings from django.db import migrations, models
[ 6738, 42625, 14208, 13, 10414, 1330, 6460, 198, 6738, 42625, 14208, 13, 9945, 1330, 15720, 602, 11, 4981, 628 ]
3.947368
19
import sys import os import subprocess import shutil import urllib.request, urllib.error, urllib.parse import zipfile import datetime import platform import tarfile from arches import settings here = os.path.dirname(os.path.abspath(__file__)) root_dir = os.path.dirname(here) def get_version(versio...
[ 11748, 25064, 201, 198, 11748, 28686, 201, 198, 11748, 850, 14681, 201, 198, 11748, 4423, 346, 201, 198, 11748, 2956, 297, 571, 13, 25927, 11, 2956, 297, 571, 13, 18224, 11, 2956, 297, 571, 13, 29572, 201, 198, 11748, 19974, 7753, 201...
2.531879
596
# -*- coding: utf-8 -*- import sys reload(sys) sys.setdefaultencoding("utf-8") import logging import os from modules.mlbendermodule import MLBenderModule """ Class MLDataProvider as described at: https://wiki.ml.de/pages/viewpage.action?pageId=7144585 Copyright (c) 2019 Imdat Solak All Rights Res...
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 11748, 25064, 220, 198, 260, 2220, 7, 17597, 8, 198, 17597, 13, 2617, 12286, 12685, 7656, 7203, 40477, 12, 23, 4943, 198, 11748, 18931, 198, 11748, 28686, 198, 198, 6738...
2.713115
122
from pytest import fixture from tests.integration.utilities.utilities import get_io_dir_paths, create_dir, remove_dir, run_krkgw_searcher, assert_report_file_content_equals test_suite = 'krkgw_page' test_cases = ['no_result', 'no_result_twice', 'single_result', 'single_resul...
[ 6738, 12972, 9288, 1330, 29220, 198, 198, 6738, 5254, 13, 18908, 1358, 13, 315, 2410, 13, 315, 2410, 1330, 651, 62, 952, 62, 15908, 62, 6978, 82, 11, 2251, 62, 15908, 11, 4781, 62, 15908, 11, 1057, 62, 38584, 10025, 86, 62, 325, 2...
2.067632
11,607