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 -*- import sys import time from io import BytesIO from lin.http.excepts import InvalidChunk, InvalidHeader from lin.http.header import Header
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 198, 11748, 25064, 198, 11748, 640, 198, 198, 6738, 33245, 1330, 2750, 4879, 9399, 198, 198, 6738, 9493, 13, 4023, 13, 16341, 82, 1330, 17665, 1925, 2954, 11, 17665, 396...
3.036364
55
from .date import Date from .dedication import Dedication from .general_type import GeneralType from .schedule import Schedule from .schedule_type import TypeSchedule from .small_note import SmallNote from .habit import Habit from .habit_type import TypeHabit
[ 6738, 764, 4475, 1330, 7536, 198, 6738, 764, 9395, 3299, 1330, 35023, 3299, 198, 6738, 764, 24622, 62, 4906, 1330, 3611, 6030, 198, 6738, 764, 15952, 5950, 1330, 19281, 198, 6738, 764, 15952, 5950, 62, 4906, 1330, 5994, 27054, 5950, 198...
3.823529
68
''' Produce minimum, maximum and the difference of number list Status: Accepted ''' ############################################################################### def read_line_of_integers(): """Read one line of numbers or detect EOF""" try: text = input() return [int(i) for i in text.split...
[ 7061, 6, 198, 11547, 344, 5288, 11, 5415, 290, 262, 3580, 286, 1271, 1351, 198, 198, 19580, 25, 21699, 276, 198, 7061, 6, 198, 198, 29113, 29113, 7804, 4242, 21017, 198, 198, 4299, 1100, 62, 1370, 62, 1659, 62, 18908, 364, 33529, 19...
2.803468
346
from collections import namedtuple
[ 6738, 17268, 1330, 3706, 83, 29291, 201, 198, 201, 198 ]
3.8
10
#! /usr/bin/env python3 import os import math import time import matplotlib.pyplot as plt # required import, but unused :( stupid matplotlib from mpl_toolkits.mplot3d import Axes3D from penselreport import Pensel import pensel_utils as pu Axes3D.__name__ # dummy call so avoid unused import error... plots_supporte...
[ 2, 0, 1220, 14629, 14, 8800, 14, 24330, 21015, 18, 198, 11748, 28686, 198, 11748, 10688, 198, 11748, 640, 198, 11748, 2603, 29487, 8019, 13, 9078, 29487, 355, 458, 83, 198, 198, 2, 2672, 1330, 11, 475, 21958, 36147, 8531, 2603, 29487,...
2.323496
881
import os import sys import pytest TEST_ROOT = os.path.dirname(os.path.abspath(__file__)) PROJECT_ROOT = os.path.dirname(TEST_ROOT) TEST_INPUT_DIR = os.path.join(TEST_ROOT, 'testing_inputs') sys.path.insert(0, PROJECT_ROOT) from wltrace import wltrace, dot11
[ 11748, 28686, 198, 11748, 25064, 198, 11748, 12972, 9288, 198, 198, 51, 6465, 62, 13252, 2394, 796, 28686, 13, 6978, 13, 15908, 3672, 7, 418, 13, 6978, 13, 397, 2777, 776, 7, 834, 7753, 834, 4008, 198, 31190, 23680, 62, 13252, 2394, ...
2.324561
114
from django.apps import AppConfig
[ 6738, 42625, 14208, 13, 18211, 1330, 2034, 16934, 628 ]
3.888889
9
from __future__ import ( absolute_import, division, print_function, unicode_literals) import logging import os import time from mopidy import commands, compat, exceptions from mopidy.audio import scan, tags from mopidy.internal import path from mopidy.local import translator logger = logging.getLogger(__name__)...
[ 6738, 11593, 37443, 834, 1330, 357, 198, 220, 220, 220, 4112, 62, 11748, 11, 7297, 11, 3601, 62, 8818, 11, 28000, 1098, 62, 17201, 874, 8, 198, 198, 11748, 18931, 198, 11748, 28686, 198, 11748, 640, 198, 198, 6738, 285, 404, 19325, ...
3.353448
116
# [AUTHOR], [YEAR]. import sys, csv, re codes = [[LIST]]; REQUIRED_CODES = [REQUIRED_CODES]; with open(sys.argv[1], 'r') as file_in, open('[PHENOTYPE]-potential-cases.csv', 'w', newline='') as file_out: csv_reader = csv.DictReader(file_in) csv_writer = csv.DictWriter(file_out, csv_reader.fieldnames + ["[CATEG...
[ 2, 685, 32, 24318, 1581, 4357, 685, 56, 17133, 4083, 198, 198, 11748, 25064, 11, 269, 21370, 11, 302, 198, 198, 40148, 796, 16410, 45849, 60, 11208, 198, 2200, 10917, 37819, 62, 34, 3727, 1546, 796, 685, 2200, 10917, 37819, 62, 34, ...
1.990079
504
import math class Solution: ''' https://leetcode.com/problems/minimum-cost-tree-from-leaf-values/ '''
[ 11748, 10688, 628, 198, 4871, 28186, 25, 198, 220, 220, 220, 705, 7061, 198, 220, 220, 220, 3740, 1378, 293, 316, 8189, 13, 785, 14, 1676, 22143, 14, 39504, 12, 15805, 12, 21048, 12, 6738, 12, 33201, 12, 27160, 14, 198, 220, 220, ...
2.468085
47
from mock import patch, Mock import unittest2 from qubell.api.private.exceptions import ApiUnauthorizedError from qubell.api.provider.router import Router
[ 6738, 15290, 1330, 8529, 11, 44123, 198, 11748, 555, 715, 395, 17, 198, 198, 6738, 627, 7923, 13, 15042, 13, 19734, 13, 1069, 11755, 1330, 5949, 72, 52, 2616, 1457, 1143, 12331, 198, 6738, 627, 7923, 13, 15042, 13, 15234, 1304, 13, ...
3.3125
48
import mcpi.minecraft as minecraft import mcpi.block as block import random import time mc = minecraft.Minecraft.create() #mc.postToChat("Heat Vision!") pos = mc.player.getTilePos() #mc.postToChat(pos) #rot = mc.player.getRotation() #pitch = mc.player.getPitch() #direct = mc.player.getDirection() #mc.postToChat(ro...
[ 11748, 285, 13155, 72, 13, 17761, 355, 6164, 3323, 198, 11748, 285, 13155, 72, 13, 9967, 355, 2512, 198, 11748, 4738, 198, 11748, 640, 198, 198, 23209, 796, 6164, 3323, 13, 39194, 13, 17953, 3419, 198, 2, 23209, 13, 7353, 2514, 30820,...
2.033632
446
# Copyright 2020 Dakewe Biotech Corporation. All Rights Reserved. # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by...
[ 2, 15069, 12131, 360, 539, 732, 8436, 32469, 10501, 13, 1439, 6923, 33876, 13, 198, 2, 49962, 739, 262, 24843, 13789, 11, 10628, 362, 13, 15, 357, 1169, 366, 34156, 15341, 198, 2, 220, 220, 345, 743, 407, 779, 428, 2393, 2845, 287, ...
2.267841
2,158
import logging
[ 11748, 18931, 628 ]
5.333333
3
# -*- coding: utf-8 -*- import scrapy import numpy as np from faker import Factory from douban_movie.dns_cache import _setDNSCache from douban_movie.items import DoubanMovieItem, DoubanMovieCommentItem, DoubanMovieUser # import urlparse # python2.x from urllib import parse as urlparse # python3.x f = Factory.create(...
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 198, 11748, 15881, 88, 198, 11748, 299, 32152, 355, 45941, 198, 6738, 277, 3110, 1330, 19239, 198, 6738, 3385, 272, 62, 41364, 13, 67, 5907, 62, 23870, 1330, 4808, 2617,...
3.028037
107
from django.conf.urls import url from . import views app_name = 'api' urlpatterns = [ # ex: /dash/ url(r'^$', views.index, name='index'), url(r'^hadoop_status/$',views.hadoop_status,name='hadoop_status'), url(r'^node_status/$', views.hadoop_node_status, name='node_status'), url(r'^db_status/$'...
[ 6738, 42625, 14208, 13, 10414, 13, 6371, 82, 1330, 19016, 198, 198, 6738, 764, 1330, 5009, 628, 198, 1324, 62, 3672, 796, 705, 15042, 6, 198, 198, 6371, 33279, 82, 796, 685, 198, 220, 220, 220, 1303, 409, 25, 1220, 42460, 14, 198, ...
2.314607
178
import numpy as np from torch.utils.data.sampler import SubsetRandomSampler # random_seed = 0 ## one line data_loader = torch.utils.data.DataLoader(dataset, batch_size=55, shuffle=True)
[ 198, 11748, 299, 32152, 355, 45941, 198, 6738, 28034, 13, 26791, 13, 7890, 13, 37687, 20053, 1330, 3834, 2617, 29531, 16305, 20053, 198, 198, 2, 4738, 62, 28826, 796, 657, 628, 198, 2235, 530, 1627, 1366, 62, 29356, 796, 28034, 13, 26...
3.048387
62
# controller.py import uuid import json import hashlib import random from datetime import datetime import requests import os, sys from jinja2 import Template # Local imports sys.path.insert(1, os.path.join(sys.path[0], '..')) sys.path.insert(0,'..') try: import settings as SETTINGS import controller, transla...
[ 2, 10444, 13, 9078, 198, 198, 11748, 334, 27112, 198, 11748, 33918, 198, 11748, 12234, 8019, 198, 11748, 4738, 198, 6738, 4818, 8079, 1330, 4818, 8079, 198, 11748, 7007, 198, 11748, 28686, 11, 25064, 198, 6738, 474, 259, 6592, 17, 1330,...
3.214815
135
"""bareASGI graphene support""" from .controller import GrapheneController from .helpers import add_graphene __all__ = [ 'GrapheneController', 'add_graphene' ]
[ 37811, 49382, 1921, 18878, 42463, 1104, 37811, 198, 198, 6738, 764, 36500, 1330, 402, 2416, 29473, 22130, 198, 6738, 764, 16794, 364, 1330, 751, 62, 70, 2416, 29473, 198, 198, 834, 439, 834, 796, 685, 198, 220, 220, 220, 705, 38, 2416...
2.881356
59
import csv if __name__ == '__main__': main()
[ 11748, 269, 21370, 220, 198, 198, 361, 11593, 3672, 834, 6624, 705, 834, 12417, 834, 10354, 198, 197, 12417, 3419 ]
2.35
20
from django import forms from operation.models import UserNote
[ 6738, 42625, 14208, 1330, 5107, 198, 6738, 4905, 13, 27530, 1330, 11787, 6425, 198 ]
4.5
14
# MIT License # Copyright (c) 2022 Zenitsu Prjkt™ # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights # to use, copy, modify, merge,...
[ 2, 17168, 13789, 198, 198, 2, 15069, 357, 66, 8, 33160, 14760, 19831, 1736, 73, 21841, 8151, 198, 198, 2, 2448, 3411, 318, 29376, 7520, 11, 1479, 286, 3877, 11, 284, 597, 1048, 16727, 257, 4866, 198, 2, 286, 428, 3788, 290, 3917, ...
3.358891
613
import argparse from ndn.app import NDNApp from ndn.encoding import Component, Name from ndn.security.keychain import KeychainDigest from ndn.transport.stream_socket import Face from ndn.types import InterestNack, InterestTimeout from ndn.utils import timestamp from BleClientFace import BleClientFace parser = argpar...
[ 11748, 1822, 29572, 198, 198, 6738, 299, 32656, 13, 1324, 1330, 25524, 4535, 381, 198, 6738, 299, 32656, 13, 12685, 7656, 1330, 35100, 11, 6530, 198, 6738, 299, 32656, 13, 12961, 13, 2539, 7983, 1330, 7383, 7983, 19511, 395, 198, 6738, ...
2.944118
340
import qsharp from Qrng import SampleQuantumRandomNumberGenerator print(SampleQuantumRandomNumberGenerator.simulate())
[ 11748, 10662, 48554, 198, 198, 6738, 1195, 81, 782, 1330, 27565, 24915, 388, 29531, 15057, 8645, 1352, 198, 198, 4798, 7, 36674, 24915, 388, 29531, 15057, 8645, 1352, 13, 14323, 5039, 28955 ]
3.75
32
""" Tools for general compatibility. """ #*************************************************************************************************** # Copyright 2015, 2019 National Technology & Engineering Solutions of Sandia, LLC (NTESS). # Under the terms of Contract DE-NA0003525 with NTESS, the U.S. Government retains cert...
[ 37811, 20003, 329, 2276, 17764, 13, 37227, 198, 2, 17174, 17174, 17174, 8162, 198, 2, 15069, 1853, 11, 13130, 2351, 8987, 1222, 14044, 23555, 286, 3837, 544, 11, 11419, 357, 11251, 7597, 737, 198, 2, 4698, 262, 2846, 286, 17453, 5550, ...
3.177778
585
import numpy as np import time import multiprocessing as mp from multiprocessing.managers import SyncManager from queue import PriorityQueue from .XpcsAna.Xpcs import Xpcs from .XsvsAna.Xsvs import Xsvs from .SaxsAna.Saxs import Saxs from .ProcData.Xdata import Xdata from .Decorators import Decorators from .misc.xsave ...
[ 11748, 299, 32152, 355, 45941, 198, 11748, 640, 198, 11748, 18540, 305, 919, 278, 355, 29034, 198, 6738, 18540, 305, 919, 278, 13, 805, 10321, 1330, 35908, 13511, 198, 6738, 16834, 1330, 34416, 34991, 198, 6738, 764, 55, 79, 6359, 2025,...
3
114
from django.shortcuts import render from django.http import HttpResponse from .models import Post from django.views.generic import ListView, DetailView, CreateView # posts = [ # { # 'author': 'A. P. J. Abdul Kalam', # 'title': 'Past', # 'content': 'Accept your past without regret ! \n Hand...
[ 6738, 42625, 14208, 13, 19509, 23779, 1330, 8543, 198, 6738, 42625, 14208, 13, 4023, 1330, 367, 29281, 31077, 198, 6738, 764, 27530, 1330, 2947, 198, 6738, 42625, 14208, 13, 33571, 13, 41357, 1330, 7343, 7680, 11, 42585, 7680, 11, 13610, ...
2.561151
278
from typing import Optional, Dict, Any from loguru import logger import ciphey from ciphey.iface import registry import binascii @registry.register
[ 6738, 19720, 1330, 32233, 11, 360, 713, 11, 4377, 198, 198, 6738, 2604, 14717, 1330, 49706, 198, 198, 11748, 269, 541, 20342, 198, 6738, 269, 541, 20342, 13, 361, 558, 1330, 20478, 198, 198, 11748, 9874, 292, 979, 72, 628, 198, 31, ...
3.255319
47
#!/usr/bin/env python # autotracker-batch - way more <ADJECTIVE> music than you had hoped for! # lightly tweaked by James Paige / Bob the Hamster, 2015, Public domain # # Forked from: # autotracker-bottomup - the quite a few times more ultimate audio experience # by Ben "GreaseMonkey" Russell, 2011. Public domain. # ht...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 198, 2, 1960, 313, 81, 10735, 12, 43501, 532, 835, 517, 1279, 2885, 23680, 9306, 29, 2647, 621, 345, 550, 10719, 329, 0, 198, 2, 15376, 38304, 416, 3700, 42847, 1220, 5811, 262, 4345, 170...
2.393955
1,952
#!/usr/bin/env python3 r""" A set of high-level algorithm implementations, with easy-to-use API. """ from .maml import MAML, maml_update from .meta_sgd import MetaSGD, meta_sgd_update from .gbml import GBML
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 18, 198, 198, 81, 37811, 198, 32, 900, 286, 1029, 12, 5715, 11862, 25504, 11, 351, 2562, 12, 1462, 12, 1904, 7824, 13, 198, 37811, 198, 198, 6738, 764, 76, 43695, 1330, 337, 2390, 43, 1...
2.786667
75
from flask import Blueprint, request from sqlalchemy import desc, or_ from meier.commons.response_data import HttpStatusCode, ResponseData from meier.extensions import db from meier.models.post import Post, PostStatus from meier.models.post_tag import PostTag from meier.models.tag import Tag from meier.views.admin imp...
[ 6738, 42903, 1330, 39932, 11, 2581, 198, 6738, 44161, 282, 26599, 1330, 1715, 11, 393, 62, 198, 198, 6738, 502, 959, 13, 9503, 684, 13, 26209, 62, 7890, 1330, 367, 29281, 19580, 10669, 11, 18261, 6601, 198, 6738, 502, 959, 13, 2302, ...
2.90228
307
# -*- coding: utf-8 -*- import re from datetime import datetime import requests import scrapy from scrapy.http import Request import json from JobSpiders.items import Job51Item, Job51ItemLoader from JobSpiders.utils.common import get_md5 import time
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 11748, 302, 198, 6738, 4818, 8079, 1330, 4818, 8079, 198, 11748, 7007, 198, 11748, 15881, 88, 198, 6738, 15881, 88, 13, 4023, 1330, 19390, 198, 11748, 33918, 198, 6738, ...
3.346667
75
import pandas as pd import numpy as np population = pd.read_csv("population.csv", index_col = "State") print(population) print(population.sort_index().head()) alco2009 = pd.read_csv("niaaa-report2009.csv", index_col="State") print(alco2009.max()) print(alco2009.min(axis=1)) print(alco2009.sum()) alco = pd.read_...
[ 11748, 19798, 292, 355, 279, 67, 198, 11748, 299, 32152, 355, 45941, 628, 198, 39748, 796, 279, 67, 13, 961, 62, 40664, 7203, 39748, 13, 40664, 1600, 6376, 62, 4033, 796, 366, 9012, 4943, 198, 4798, 7, 39748, 8, 628, 198, 4798, 7, ...
2.359801
403
# # Copyright (c) 2020 The Board of Trustees of the Leland Stanford Junior University # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are met: # # * Redistributions of source code must retain the above cop...
[ 2, 198, 2, 15069, 357, 66, 8, 12131, 383, 5926, 286, 9870, 2841, 286, 262, 406, 8822, 13863, 20000, 2059, 198, 2, 1439, 2489, 10395, 13, 198, 2, 198, 2, 2297, 396, 3890, 290, 779, 287, 2723, 290, 13934, 5107, 11, 351, 393, 1231, ...
3.637778
450
######################################## # QUESTION ######################################## # wolf in sheep's clothing # Wolves have been reintroduced to Great Britain. You are a sheep farmer, and are now plagued by wolves which pretend to be sheep. Fortunately, you are good at spotting them. # Warn the sheep in fro...
[ 29113, 7804, 198, 2, 43658, 2849, 198, 29113, 7804, 198, 198, 2, 17481, 287, 15900, 338, 9528, 198, 2, 25953, 423, 587, 38368, 771, 284, 3878, 5491, 13, 921, 389, 257, 15900, 18739, 11, 290, 389, 783, 27909, 416, 23214, 543, 16614, ...
3.665414
266
# angles defined in the same way as in the coursework, # but all angles are clockwise in the positive direction # phi1, phi2, phi3 are q1, q2 and q3 import numpy as np from config import lengths from config import servo_angle_limits as lims from robot.base import State def check_jacobian(): """ Verify the jacobian...
[ 2, 18333, 5447, 287, 262, 976, 835, 355, 287, 262, 1781, 1818, 11, 198, 2, 475, 477, 18333, 389, 8801, 3083, 287, 262, 3967, 4571, 198, 198, 2, 872, 72, 16, 11, 872, 72, 17, 11, 872, 72, 18, 389, 10662, 16, 11, 10662, 17, 290,...
2.688057
561
#!/usr/bin/env python # # Public Domain 2014-2017 MongoDB, Inc. # Public Domain 2008-2014 WiredTiger, Inc. # # This is free and unencumbered software released into the public domain. # # Anyone is free to copy, modify, publish, use, compile, sell, or # distribute this software, either in source code form or as a compil...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 198, 2, 198, 2, 5094, 20021, 1946, 12, 5539, 42591, 11012, 11, 3457, 13, 198, 2, 5094, 20021, 3648, 12, 4967, 39721, 51, 8254, 11, 3457, 13, 198, 2, 198, 2, 770, 318, 1479, 290, 555, ...
2.709215
3,972
# -*- encoding: utf-8 -*- from pytest import raises from chomsky import *
[ 2, 532, 9, 12, 21004, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 6738, 12972, 9288, 1330, 12073, 198, 6738, 442, 37093, 1330, 1635, 628, 628, 628, 628, 628, 628, 628, 628, 628, 628, 628, 628, 628, 628 ]
2.589744
39
''' Author: Tobi and Gundram ''' from __future__ import print_function import tensorflow as tf from tensorflow.python.ops import ctc_ops as ctc from tensorflow.python.ops import rnn_cell from tensorflow.python.ops.rnn import bidirectional_rnn from util.LoaderUtil import read_image_list, get_list_vals from random impo...
[ 7061, 6, 198, 198, 13838, 25, 309, 13411, 290, 23323, 859, 198, 7061, 6, 198, 198, 6738, 11593, 37443, 834, 1330, 3601, 62, 8818, 198, 11748, 11192, 273, 11125, 355, 48700, 198, 6738, 11192, 273, 11125, 13, 29412, 13, 2840, 1330, 269,...
2.086259
5,669
# -*- coding: utf-8 -*- from openerp import SUPERUSER_ID from openerp.addons.web import http from openerp.addons.web.http import request from openerp.addons.website.models.website import unslug from openerp.tools.translate import _ import werkzeug.urls
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 6738, 21996, 79, 1330, 33088, 29904, 62, 2389, 198, 6738, 21996, 79, 13, 39996, 13, 12384, 1330, 2638, 198, 6738, 21996, 79, 13, 39996, 13, 12384, 13, 4023, 1330, 2581, ...
3.035714
84
# Copyright 2015-2018 Capital One Services, LLC # Copyright The Cloud Custodian Authors. # SPDX-License-Identifier: Apache-2.0 from azure.mgmt.web import WebSiteManagementClient from ..azure_common import BaseTest, arm_template, cassette_name from c7n_azure.session import Session from mock import patch from c7n.except...
[ 2, 15069, 1853, 12, 7908, 9747, 1881, 6168, 11, 11419, 198, 2, 15069, 383, 10130, 40619, 375, 666, 46665, 13, 198, 2, 30628, 55, 12, 34156, 12, 33234, 7483, 25, 24843, 12, 17, 13, 15, 198, 6738, 35560, 495, 13, 11296, 16762, 13, 1...
3.554545
110
# Authors: Chongzhi Zang, Weiqun Peng # Modified by: Jin Yong Yoo import multiprocessing as mp import os from functools import partial from math import * import numpy as np import scipy import scipy.stats from sicer.lib import associate_tags_with_regions
[ 2, 46665, 25, 46892, 89, 5303, 1168, 648, 11, 775, 25011, 403, 42341, 198, 198, 2, 40499, 416, 25, 17297, 40633, 575, 2238, 198, 198, 11748, 18540, 305, 919, 278, 355, 29034, 198, 11748, 28686, 198, 6738, 1257, 310, 10141, 1330, 13027...
3.107143
84
# -*- coding: utf-8 -*- """Testing framework module for running tests in Python unittest fashion Copyright (C) 2014 by the GRASS Development Team This program is free software under the GNU General Public License (>=v2). Read the file COPYING that comes with GRASS GIS for details. :authors: Vaclav Petras File conten...
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 37811, 44154, 9355, 8265, 329, 2491, 5254, 287, 11361, 555, 715, 395, 6977, 198, 198, 15269, 357, 34, 8, 1946, 416, 262, 10863, 10705, 7712, 4816, 198, 1212, 1430, 318, ...
3.416667
444
from unittest.mock import AsyncMock, Mock, patch import pytest from {{cookiecutter.project_slug}}.server.registries import graphql_engine, register_graphql_engine @pytest.mark.asyncio
[ 6738, 555, 715, 395, 13, 76, 735, 1330, 1081, 13361, 44, 735, 11, 44123, 11, 8529, 198, 198, 11748, 12972, 9288, 198, 198, 6738, 22935, 44453, 8968, 353, 13, 16302, 62, 6649, 1018, 11709, 13, 15388, 13, 2301, 32995, 1330, 4823, 13976,...
2.984127
63
from time import sleep import logging from selenium.common.exceptions import NoSuchElementException, StaleElementReferenceException, ElementClickInterceptedException, MoveTargetOutOfBoundsException, ElementClickInterceptedException from .delete_on_article import delete_on_article from .unretweet import unretweet fro...
[ 6738, 640, 1330, 3993, 198, 11748, 18931, 198, 198, 6738, 384, 11925, 1505, 13, 11321, 13, 1069, 11755, 1330, 1400, 16678, 20180, 16922, 11, 520, 1000, 20180, 26687, 16922, 11, 11703, 8164, 9492, 984, 276, 16922, 11, 10028, 21745, 7975, ...
3.857143
98
import json from pocket import Pocket CONFIG_FILE_NAME = 'config.json' AUTH_DATA_KEY = 'authentication' with open(CONFIG_FILE_NAME, 'r') as conf_file: conf_data = json.load(conf_file) auth_data = conf_data[AUTH_DATA_KEY] pocket_consumer_key = auth_data['pocket_consumer_key'] pocket_redirect_uri = 'https://getpo...
[ 11748, 33918, 198, 6738, 10000, 1330, 27290, 628, 198, 10943, 16254, 62, 25664, 62, 20608, 796, 705, 11250, 13, 17752, 6, 198, 32, 24318, 62, 26947, 62, 20373, 796, 705, 41299, 3299, 6, 198, 198, 4480, 1280, 7, 10943, 16254, 62, 25664...
2.965517
319
import requests import json import codecs, time import sys url = "https://www.instagram.com/query/" headers = { "accept":"*/*", "accept-encoding":"gzip, deflate, br", "accept-language":"en-US,en;q=0.8,es;q=0.6", "content-length":1, "content-type":"application/x-www-form-urlencoded", "cookie":"csrftoken=OnaRti9X2BMY7U...
[ 11748, 7007, 198, 11748, 33918, 198, 11748, 40481, 82, 11, 640, 198, 11748, 25064, 198, 198, 6371, 796, 366, 5450, 1378, 2503, 13, 8625, 6713, 13, 785, 14, 22766, 30487, 198, 198, 50145, 796, 1391, 198, 1, 13635, 2404, 9, 15211, 1600,...
1.760425
1,319
# -*- coding: utf-8 -*- from model.group import Group import pytest # annotation removed and changed to method pytest_generate_tests in confest.py @pytest.mark.parametrize("group", # group_testdata, ids=[repr(x) for x in group_testdata]) # json_groups- fixture get data from json file and test use it # like testdata p...
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 6738, 2746, 13, 8094, 1330, 4912, 198, 11748, 12972, 9288, 628, 198, 2, 23025, 4615, 290, 3421, 284, 2446, 12972, 9288, 62, 8612, 378, 62, 41989, 287, 1013, 395, 13, 9...
2.916185
346
""" tests for the utils module """ import unittest from binx.utils import bfs_shortest_path, ObjUtils, RecordUtils, DataFrameDtypeConversion import pandas as pd from pandas.testing import assert_frame_equal import numpy as np from marshmallow import fields from datetime import datetime, date
[ 37811, 5254, 329, 262, 3384, 4487, 8265, 198, 37811, 198, 198, 11748, 555, 715, 395, 198, 6738, 9874, 87, 13, 26791, 1330, 275, 9501, 62, 19509, 395, 62, 6978, 11, 38764, 18274, 4487, 11, 13266, 18274, 4487, 11, 6060, 19778, 35, 4906,...
3.229167
96
from nimbella import redis import json
[ 6738, 299, 320, 7923, 64, 1330, 2266, 271, 198, 11748, 33918, 628 ]
3.333333
12
from typing import Dict, Generator import pytest from fastapi.testclient import TestClient from sqlalchemy.orm import Session import logging import alembic.config import alembic.command from app.core.config import settings from app.tests.db.session import engine from app.tests.db.session import SessionLocal from app...
[ 6738, 19720, 1330, 360, 713, 11, 35986, 198, 198, 11748, 12972, 9288, 198, 6738, 3049, 15042, 13, 9288, 16366, 1330, 6208, 11792, 198, 6738, 44161, 282, 26599, 13, 579, 1330, 23575, 198, 198, 11748, 18931, 198, 11748, 31341, 2022, 291, ...
3.202586
232
import numpy as np # logpdf of independent normal distribution. # x is of size (n_sample, n_param). # loc and scale are int or numpy.ndarray of size n_param. # output is of size n_sample. # pdf of independent normal distribution. # logpdf of uniform distribution. # pdf of uniform distribution.
[ 11748, 299, 32152, 355, 45941, 198, 198, 2, 2604, 12315, 286, 4795, 3487, 6082, 13, 198, 2, 2124, 318, 286, 2546, 357, 77, 62, 39873, 11, 299, 62, 17143, 737, 198, 2, 1179, 290, 5046, 389, 493, 393, 299, 32152, 13, 358, 18747, 286...
3.393258
89
# © 2020 지성. all rights reserved. # <llllllllll@kakao.com> # Apache License 2.0 from .base import * from .naive import * from .pg import * from .predict import *
[ 2, 10673, 12131, 23821, 100, 222, 168, 226, 109, 13, 477, 2489, 10395, 13, 198, 2, 1279, 297, 297, 297, 297, 297, 31, 74, 461, 5488, 13, 785, 29, 198, 2, 24843, 13789, 362, 13, 15, 198, 198, 6738, 764, 8692, 1330, 1635, 198, 673...
2.571429
63
import numpy as np import pytest import pandas as pd from lstchain.io.io import dl2_params_lstcam_key from lstchain.mc.sensitivity import ( process_mc, process_real, read_sim_par, calculate_sensitivity, calculate_sensitivity_lima, calculate_sensitivity_lima_ebin, bin_definition, ring_co...
[ 11748, 299, 32152, 355, 45941, 198, 11748, 12972, 9288, 198, 11748, 19798, 292, 355, 279, 67, 198, 6738, 300, 301, 7983, 13, 952, 13, 952, 1330, 288, 75, 17, 62, 37266, 62, 75, 301, 20991, 62, 2539, 198, 198, 6738, 300, 301, 7983, ...
2.367713
223
import csv import numpy as np # import data from csv file with open('airlines.csv', newline='') as csvfile: reader = csv.reader(csvfile) data = list(reader) data = np.asarray(data) # remove columns containing non numerical data data = np.delete(data, np.s_[7,11,19,20], axis=1) data = np.delete(data, np.s_[0]...
[ 11748, 269, 21370, 198, 11748, 299, 32152, 355, 45941, 198, 198, 2, 1330, 1366, 422, 269, 21370, 2393, 198, 4480, 1280, 10786, 958, 6615, 13, 40664, 3256, 649, 1370, 28, 7061, 8, 355, 269, 21370, 7753, 25, 198, 220, 220, 220, 9173, ...
2.375
320
from flask import Flask, render_template, request from wtforms import Form, validators from wtforms.fields import ( StringField, PasswordField, SubmitField, RadioField, SelectField ) from wtforms.fields.html5 import EmailField from flask_wtf.csrf import CSRFProtect from flask_wtf import FlaskForm im...
[ 6738, 42903, 1330, 46947, 11, 8543, 62, 28243, 11, 2581, 198, 6738, 266, 83, 23914, 1330, 5178, 11, 4938, 2024, 198, 6738, 266, 83, 23914, 13, 25747, 1330, 357, 198, 220, 220, 220, 10903, 15878, 11, 198, 220, 220, 220, 30275, 15878, ...
2.793651
189
#!/usr/bin/env python # -*- coding: utf-8 -*- """ Compare Born and Rytov approximation This script creates a colorfull plot. """ from __future__ import division from __future__ import print_function from matplotlib import pylab as plt import numpy as np import os import sys DIR = os.path.dirname(os.path.realpath(__f...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 198, 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 37811, 27814, 18889, 290, 11089, 83, 709, 40874, 198, 198, 1212, 4226, 8075, 257, 3124, 12853, 7110, 13, 198, 37811, 19...
2.166852
899
from collections import defaultdict from jsonschema import ValidationError from swg2rst.converter_exceptions import ConverterError from swg2rst.utils.exampilators import Exampilator from .security_mixin import SecurityMixin from .schema_objects import SchemaObjects from .constants import SchemaTypes, examples_json_sch...
[ 6738, 17268, 1330, 4277, 11600, 198, 6738, 44804, 684, 2395, 2611, 1330, 3254, 24765, 12331, 198, 6738, 1509, 70, 17, 81, 301, 13, 1102, 332, 353, 62, 1069, 11755, 1330, 35602, 353, 12331, 198, 6738, 1509, 70, 17, 81, 301, 13, 26791, ...
2.652968
876
from generator.actions import Actions import math import random import string import struct import re
[ 6738, 17301, 13, 4658, 1330, 24439, 198, 11748, 10688, 198, 11748, 4738, 198, 11748, 4731, 198, 11748, 2878, 198, 11748, 302, 628, 198 ]
4.521739
23
# Program to show various ways to read and # write data in a file. import numpy as np import struct import random # opcodes # Bit shift values must go to B Input on the execute # 000001 or = shift left # 000100 = shift right # 001000 = equivalence check # 000000 = branching ie < or > # 000111 or 000101 = subtractio...
[ 2, 6118, 284, 905, 2972, 2842, 284, 1100, 290, 198, 2, 3551, 1366, 287, 257, 2393, 13, 198, 11748, 299, 32152, 355, 45941, 198, 11748, 2878, 198, 11748, 4738, 628, 198, 198, 2, 1034, 40148, 198, 2, 4722, 6482, 3815, 1276, 467, 284, ...
2.830116
518
import cv2 import sys import json import util import pytesseract bw_threshold = 160 image_density_threshold = 0.001 if __name__ == '__main__': main()
[ 11748, 269, 85, 17, 198, 11748, 25064, 198, 11748, 33918, 198, 11748, 7736, 198, 11748, 12972, 83, 408, 263, 529, 198, 198, 65, 86, 62, 400, 10126, 796, 13454, 198, 9060, 62, 43337, 62, 400, 10126, 796, 657, 13, 8298, 628, 198, 361,...
2.689655
58
from django.apps import AppConfig
[ 6738, 42625, 14208, 13, 18211, 1330, 2034, 16934, 628 ]
3.888889
9
import random
[ 11748, 4738, 628, 628, 198 ]
3.6
5
if __name__ =='__main__': a = Rectangle(list(eval(input()))) a.show() a.changePos(50,70) a.enlarge(2)
[ 361, 11593, 3672, 834, 6624, 6, 834, 12417, 834, 10354, 198, 220, 220, 220, 257, 796, 48599, 9248, 7, 4868, 7, 18206, 7, 15414, 3419, 22305, 198, 220, 220, 220, 257, 13, 12860, 3419, 198, 220, 220, 220, 257, 13, 3803, 21604, 7, 11...
1.921875
64
""" Decorator training """ @deco registry = [] @register @register if __name__ == '__main__': main()
[ 37811, 198, 10707, 273, 1352, 3047, 198, 37811, 628, 198, 31, 12501, 78, 628, 198, 2301, 4592, 796, 17635, 628, 198, 31, 30238, 198, 198, 31, 30238, 628, 198, 198, 361, 11593, 3672, 834, 6624, 705, 834, 12417, 834, 10354, 198, 220, ...
2.446809
47
# 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 law or agreed to in...
[ 2, 1439, 6923, 33876, 13, 198, 2, 198, 2, 220, 220, 220, 49962, 739, 262, 24843, 13789, 11, 10628, 362, 13, 15, 357, 1169, 366, 34156, 15341, 345, 743, 198, 2, 220, 220, 220, 407, 779, 428, 2393, 2845, 287, 11846, 351, 262, 13789,...
3.305921
304
'''Escreva um programa que leia um numero n inteiro e mostre na tela os n primeiros elementos de uma sequencia de fibonacci: ex 0 -> 1 -> 1 -> 2 -> 3 -> 5 -> 8''' n = int(input('Quantos termos da seqüencia de Fibonacci você quer ver?')) f = 0 f2 = 1 print('{} -> {}'.format(f, f2), end='') c = 3 while c <= n: ...
[ 7061, 6, 47051, 260, 6862, 23781, 1430, 64, 8358, 443, 544, 23781, 997, 3529, 299, 493, 68, 7058, 304, 749, 260, 12385, 256, 10304, 28686, 299, 6994, 72, 4951, 201, 198, 30854, 418, 390, 334, 2611, 4726, 29634, 390, 12900, 261, 44456,...
2.164835
273
# Copyright (c) 2014 Intel Corporation # Copyright (c) 2014 OpenStack Foundation # # 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, 15069, 357, 66, 8, 1946, 8180, 10501, 198, 2, 15069, 357, 66, 8, 1946, 4946, 25896, 5693, 198, 2, 198, 2, 220, 220, 220, 49962, 739, 262, 24843, 13789, 11, 10628, 362, 13, 15, 357, 1169, 366, 34156, 15341, 345, 743, 198, 2, 2...
3.258856
367
# -*- coding: utf-8 -*- from torch.nn.modules.pooling import AdaptiveAvgPool2d from isecret.utils.registry import Registry import torch.nn as nn from isecret.model.utils import make_norm, make_paddding, check_architecture from isecret.model.blocks import ResnetBlock import torch import functools import torch.nn.functio...
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 6738, 28034, 13, 20471, 13, 18170, 13, 7742, 278, 1330, 30019, 425, 48997, 27201, 17, 67, 198, 6738, 318, 721, 1186, 13, 26791, 13, 2301, 4592, 1330, 33432, 198, 11748, ...
2.968791
769
#!/usr/bin/env python # encoding: utf-8 """ untitled.py Created by Olivier Huin on 2010-05-03. Copyright (c) 2010 Flarebyte.com Limited. All rights reserved. """ import sys import os import flickr from export import Exporter exporter = ImagesExporter() print exporter.upload() #quicker to just 'hack' the url...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 198, 2, 21004, 25, 3384, 69, 12, 23, 198, 37811, 198, 2797, 7803, 13, 9078, 198, 198, 41972, 416, 45674, 11256, 259, 319, 3050, 12, 2713, 12, 3070, 13, 198, 15269, 357, 66, 8, 3050, 398...
3.081301
123
import random import unittest import graphi.types.adjacency_graph import graphi.abc import graphi.edge from graphi import operators from graphi.types.decorator import undirectable from . import _graph_interface_mixins as mixins @undirectable
[ 11748, 4738, 198, 11748, 555, 715, 395, 198, 198, 11748, 4823, 72, 13, 19199, 13, 324, 30482, 1387, 62, 34960, 198, 11748, 4823, 72, 13, 39305, 198, 11748, 4823, 72, 13, 14907, 198, 6738, 4823, 72, 1330, 12879, 198, 6738, 4823, 72, ...
3.306667
75
#!/usr/bin/env python import unittest import xml.dom.minidom from planet import shell, config, logger try: import libxslt except: try: try: # Python 2.5 bug 1704790 workaround (alas, Unix only) import commands if commands.getstatusoutput('xsltproc --version')[0] !=...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 198, 198, 11748, 555, 715, 395, 198, 11748, 35555, 13, 3438, 13, 1084, 312, 296, 198, 6738, 5440, 1330, 7582, 11, 4566, 11, 49706, 628, 198, 28311, 25, 198, 220, 220, 220, 1330, 9195, 342...
1.965753
438
import json import sys from tqdm import tqdm from ._camelcase import _decode_camel_case from ._sqlx import _server_cursor from ._sqlx import _encode_sql_str from ._sqlx import _sqlid from ._sqlx import _stage_table from ._sqlx import _varchar_type
[ 11748, 33918, 198, 11748, 25064, 198, 198, 6738, 256, 80, 36020, 1330, 256, 80, 36020, 198, 198, 6738, 47540, 66, 17983, 7442, 1330, 4808, 12501, 1098, 62, 66, 17983, 62, 7442, 198, 6738, 47540, 25410, 87, 1330, 4808, 15388, 62, 66, 2...
2.885057
87
from .graphs import get_indicator_card, get_donut_chart, get_line_chart, get_bar_chart, \ get_histogram_chart, get_map_chart from .custom_figure import get_custom_indicator, get_custom_histogram_chart, get_custom_pie_chart, \ get_custom_line_graph,get_custom_bar_chart from .custom_layout import get_card_custom_...
[ 6738, 764, 34960, 82, 1330, 651, 62, 521, 26407, 62, 9517, 11, 651, 62, 9099, 315, 62, 40926, 11, 651, 62, 1370, 62, 40926, 11, 651, 62, 5657, 62, 40926, 11, 3467, 198, 220, 220, 220, 651, 62, 10034, 21857, 62, 40926, 11, 651, 6...
2.884956
113
import numpy as np from scipy.stats import mstats from sklearn.datasets import load_boston import RidgeRegression as RR from utils import split_data if __name__ == "__main__": main()
[ 11748, 299, 32152, 355, 45941, 198, 6738, 629, 541, 88, 13, 34242, 1330, 285, 34242, 198, 6738, 1341, 35720, 13, 19608, 292, 1039, 1330, 3440, 62, 65, 5744, 198, 11748, 20614, 8081, 2234, 355, 26067, 198, 6738, 3384, 4487, 1330, 6626, ...
2.909091
66
from keras.layers import Activation, Convolution2D, Dropout, Conv2D,Dense from keras.layers import AveragePooling2D, BatchNormalization from keras.layers import GlobalAveragePooling2D from keras.models import Sequential from keras.layers import Flatten from keras.models import Model from keras.layers import Input from ...
[ 6738, 41927, 292, 13, 75, 6962, 1330, 13144, 341, 11, 34872, 2122, 17, 35, 11, 14258, 448, 11, 34872, 17, 35, 11, 35, 1072, 198, 6738, 41927, 292, 13, 75, 6962, 1330, 13475, 27201, 278, 17, 35, 11, 347, 963, 26447, 1634, 198, 6738...
3.294964
139
"""Data models for Assertions and supporting concepts.""" from dataclasses import dataclass from .biomarkers import Biomarker from .diseases import Disease from .therapies import Therapy from enum import Enum class AssertionType(Enum): """ The clinical significance assertion types, drawn from the `AMP/ASC...
[ 37811, 6601, 4981, 329, 2195, 861, 507, 290, 6493, 10838, 526, 15931, 198, 6738, 4818, 330, 28958, 1330, 4818, 330, 31172, 198, 6738, 764, 8482, 296, 668, 364, 1330, 8436, 296, 668, 263, 198, 6738, 764, 67, 786, 1386, 1330, 17344, 198...
2.81
300
# Generated by Django 3.2.3 on 2021-05-23 16:46 from django.conf import settings from django.db import migrations, models
[ 2, 2980, 515, 416, 37770, 513, 13, 17, 13, 18, 319, 33448, 12, 2713, 12, 1954, 1467, 25, 3510, 198, 198, 6738, 42625, 14208, 13, 10414, 1330, 6460, 198, 6738, 42625, 14208, 13, 9945, 1330, 15720, 602, 11, 4981, 628 ]
3.1
40
from django.db import models
[ 6738, 42625, 14208, 13, 9945, 1330, 4981, 198 ]
3.625
8
""" 普 格 飞 毒 地 岩 虫 鬼 火 水 草 电 超 冰 龙 普 1.0 1.0 1.0 1.0 1.0 0.5 1.0 0.0 1.0 1.0 1.0 1.0 1.0 1.0 1.0 格 2.0 1.0 0.5 0.5 1.0 2.0 0.5 0.0 1.0 1.0 1.0 1.0 0.5 2.0 1.0 飞 1.0 2.0 1.0 1.0 1.0 0.5 2.0 1.0 1.0 1.0 2.0 0.5 1.0 1.0 1.0 毒 1.0 1.0 1.0 0.5 0.5 0.5 2.0 0.5 1.0 1.0 2.0 1.0 1.0 1.0 1.0 地 1.0 1.0 0.0 ...
[ 37811, 198, 220, 220, 220, 220, 10545, 247, 106, 220, 10545, 254, 120, 220, 16268, 96, 252, 220, 10545, 107, 240, 220, 10263, 250, 108, 220, 10263, 110, 102, 220, 5525, 247, 104, 220, 16268, 45539, 220, 13328, 43769, 220, 10545, 108, ...
1.239909
2,651
import os import xml.etree.ElementTree as ET import sys import shutil currentDir = os.getcwd() userAppDir = sys.argv[1] # 1. Copying needed files in the right directories localMacroDir = os.path.join(currentDir,'Macros') localIconDir = os.path.join(currentDir,'icons') localFontsDir = os.path.join(curr...
[ 11748, 28686, 201, 198, 11748, 35555, 13, 316, 631, 13, 20180, 27660, 355, 12152, 201, 198, 11748, 25064, 201, 198, 11748, 4423, 346, 201, 198, 201, 198, 14421, 35277, 796, 28686, 13, 1136, 66, 16993, 3419, 201, 198, 7220, 4677, 35277, ...
2.288385
1,498
from flask import Flask, jsonify, request, stream_with_context app = Flask(__name__) # 1. send json to flask server # 2. get json response back # 3. update the master json on server @app.route('/', methods=['GET', 'POST']) @app.route('/initialize/json') @app.route('/send/<message>') @app.route('/update/<int...
[ 6738, 42903, 1330, 46947, 11, 33918, 1958, 11, 2581, 11, 4269, 62, 4480, 62, 22866, 198, 198, 1324, 796, 46947, 7, 834, 3672, 834, 8, 198, 198, 2, 352, 13, 3758, 33918, 284, 42903, 4382, 198, 2, 362, 13, 651, 33918, 2882, 736, 198...
2.618557
194
import ctypes from enum import Enum import numpy as np from PuzzleLib.Cuda.ThirdParty import libnpp if __name__ == "__main__": unittest()
[ 11748, 269, 19199, 198, 6738, 33829, 1330, 2039, 388, 198, 198, 11748, 299, 32152, 355, 45941, 198, 6738, 23966, 25835, 13, 34, 15339, 13, 22747, 33553, 1330, 9195, 77, 381, 628, 628, 628, 628, 628, 628, 628, 628, 628, 628, 628, 198, ...
2.716667
60
import numpy as np from dask.distributed import Client from functools import partial, reduce from itertools import product from math import ceil, floor, log10 import operator import sys import time # smallest location of the grid of w^2 points in the # uniform grid being influenced by the non-uniform # ...
[ 11748, 299, 32152, 355, 45941, 198, 198, 6738, 288, 2093, 13, 17080, 6169, 1330, 20985, 198, 198, 6738, 1257, 310, 10141, 1330, 13027, 11, 4646, 198, 6738, 340, 861, 10141, 1330, 1720, 198, 6738, 10688, 1330, 2906, 346, 11, 4314, 11, ...
2.167939
655
from ..proto import * from ..graph_io import * import copy import paddle.fluid as fluid import numpy as np from paddle.fluid.core import VarDesc, AttrType
[ 6738, 11485, 1676, 1462, 1330, 1635, 198, 6738, 11485, 34960, 62, 952, 1330, 1635, 198, 11748, 4866, 198, 11748, 39517, 13, 35522, 312, 355, 11711, 198, 11748, 299, 32152, 355, 45941, 198, 6738, 39517, 13, 35522, 312, 13, 7295, 1330, 12...
3.319149
47
from typing import TYPE_CHECKING from sqlalchemy import Column, Integer, String from sqlalchemy.orm import relationship from app.db.base_class import Base # to properly initialise relationships if TYPE_CHECKING: from .reservation import Reservation # noqa: F401 from .rental import Rental # noqa: F401
[ 6738, 19720, 1330, 41876, 62, 50084, 2751, 198, 198, 6738, 44161, 282, 26599, 1330, 29201, 11, 34142, 11, 10903, 198, 6738, 44161, 282, 26599, 13, 579, 1330, 2776, 198, 198, 6738, 598, 13, 9945, 13, 8692, 62, 4871, 1330, 7308, 198, 19...
3.408602
93
a,b,c = map(int,input("3桁の数字を半角スペースを開けて入力").split()) f(a,b,c)
[ 220, 220, 220, 220, 198, 64, 11, 65, 11, 66, 796, 3975, 7, 600, 11, 15414, 7203, 18, 162, 94, 223, 27032, 243, 108, 27764, 245, 31758, 39355, 232, 164, 100, 240, 8943, 1209, 248, 6312, 8943, 31758, 38461, 233, 2515, 239, 28134, 17...
1.116667
60
from math import exp #pythran export capsule g(float)
[ 6738, 10688, 1330, 1033, 198, 2, 79, 5272, 2596, 10784, 27855, 308, 7, 22468, 8, 198 ]
3.375
16
# Copyright 2017 Luc Saffre # # License: BSD (see file COPYING for details) from django.core.validators import validate_email, URLValidator from etgen.html import E from lino.api import dd, _ from lino.modlib.office.roles import OfficeStaff validate_url = URLValidator() STD = ContactDetailType add = ContactD...
[ 2, 15069, 2177, 7598, 311, 2001, 260, 198, 2, 198, 2, 13789, 25, 347, 10305, 357, 3826, 2393, 27975, 45761, 329, 3307, 8, 628, 198, 6738, 42625, 14208, 13, 7295, 13, 12102, 2024, 1330, 26571, 62, 12888, 11, 10289, 47139, 1352, 198, ...
2.878788
231
import numpy as np import xgboost as xgb from sklearn.datasets import make_classification import sklearn.gaussian_process as gp from sklearn.model_selection import train_test_split from optml.random_search import RandomSearchOptimizer from optml.bayesian_optimizer import BayesianOptimizer from optml.hyperopt_optimiz...
[ 11748, 299, 32152, 355, 45941, 198, 198, 11748, 2124, 70, 39521, 355, 2124, 22296, 198, 198, 6738, 1341, 35720, 13, 19608, 292, 1039, 1330, 787, 62, 4871, 2649, 198, 11748, 1341, 35720, 13, 4908, 31562, 62, 14681, 355, 27809, 198, 6738,...
2.124847
1,634
import pytest import torch import numpy as np import os import schnetpack.train.metrics from schnetpack.utils import ( get_loaders, get_statistics, setup_run, get_trainer, simple_loss_fn, tradeoff_loss_fn, get_representation, get_model, evaluate, ) import schnetpack as spk from nump...
[ 11748, 12972, 9288, 198, 11748, 28034, 198, 11748, 299, 32152, 355, 45941, 198, 11748, 28686, 198, 198, 11748, 264, 1349, 316, 8002, 13, 27432, 13, 4164, 10466, 198, 6738, 264, 1349, 316, 8002, 13, 26791, 1330, 357, 198, 220, 220, 220, ...
2.722222
180
import re import json import urllib import requests import threading from threading import Thread from synonyms_finder_utils import fetch_url
[ 11748, 302, 198, 11748, 33918, 198, 11748, 2956, 297, 571, 198, 11748, 7007, 198, 11748, 4704, 278, 198, 6738, 4704, 278, 1330, 14122, 198, 6738, 6171, 43612, 62, 22805, 62, 26791, 1330, 21207, 62, 6371, 198 ]
3.944444
36
n = 100 for i in range(1, n + 1): if i % 3 == 0 and i % 5 == 0: print('FizzBuzz') elif i % 3 == 0: print('Fizz') elif i % 5 == 0: print('Buzz') else: print(i) # sometimes range is much more memory efficient print(list(range(10))) print(list(range(1, 20, 2))) print(type(ra...
[ 77, 796, 1802, 198, 1640, 1312, 287, 2837, 7, 16, 11, 299, 1343, 352, 2599, 198, 220, 220, 220, 611, 1312, 4064, 513, 6624, 657, 290, 1312, 4064, 642, 6624, 657, 25, 198, 220, 220, 220, 220, 220, 220, 220, 3601, 10786, 37, 6457, ...
2.142857
154
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.db import models, migrations
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 6738, 11593, 37443, 834, 1330, 28000, 1098, 62, 17201, 874, 198, 198, 6738, 42625, 14208, 13, 9945, 1330, 4981, 11, 15720, 602, 628 ]
2.891892
37
from django.contrib import admin from .models import Food admin.site.register(Food, FoodAdmin)
[ 6738, 42625, 14208, 13, 3642, 822, 1330, 13169, 198, 198, 6738, 764, 27530, 1330, 7318, 628, 198, 28482, 13, 15654, 13, 30238, 7, 24602, 11, 7318, 46787, 8, 198 ]
3.37931
29
#coding:utf8 #frame from werkzeug.exceptions import HTTPException ERROR_MESSAGE_TEMPLATE_NOT_AUTH = 1301 ERROR_MESSAGE_TEMPLATE_SAVE_FORMID_MISSING_FORMID = 1302 ERROR_MESSAGE_TEMPLATE_GET_ACCESSTOKEN_ERROR = 1303 ERROR_MESSAGE_TEMPLATE_NO_FORMID = 1304 ERROR_MESSAGE_TEMPLATE_TEMPLATE_ID_IS_NONE = 1305 ...
[ 2, 66, 7656, 25, 40477, 23, 198, 198, 2, 14535, 198, 6738, 266, 9587, 2736, 1018, 13, 1069, 11755, 1330, 14626, 16922, 198, 198, 24908, 62, 44, 1546, 4090, 8264, 62, 51, 3620, 6489, 6158, 62, 11929, 62, 32, 24318, 197, 197, 197, 1...
2.198874
533
from .transducer import * from .qtree import * from .forest import * from .python import * from .haskell import *
[ 6738, 764, 7645, 646, 2189, 1330, 1635, 198, 198, 6738, 764, 80, 21048, 220, 220, 220, 220, 220, 1330, 1635, 198, 6738, 764, 29623, 220, 220, 220, 220, 1330, 1635, 198, 6738, 764, 29412, 220, 220, 220, 220, 1330, 1635, 198, 6738, 76...
2.6
50
""" plenum package metadata """ __version_info__ = (1, 2) __version__ = '.'.join(map(str, __version_info__)) __author__ = "Hyperledger" __license__ = "Apache 2.0" __all__ = ['__version_info__', '__version__', '__author__', '__license__']
[ 37811, 198, 489, 44709, 5301, 20150, 198, 37811, 198, 834, 9641, 62, 10951, 834, 796, 357, 16, 11, 362, 8, 198, 834, 9641, 834, 796, 705, 2637, 13, 22179, 7, 8899, 7, 2536, 11, 11593, 9641, 62, 10951, 834, 4008, 198, 834, 9800, 83...
2.626374
91
# SPDX-FileCopyrightText: 2021 Melissa LeBlanc-Williams for Adafruit Industries # # SPDX-License-Identifier: MIT import usb_cdc import rotaryio import board import digitalio serial = usb_cdc.data encoder = rotaryio.IncrementalEncoder(board.ROTA, board.ROTB) button = digitalio.DigitalInOut(board.SWITCH) button.switch_...
[ 2, 30628, 55, 12, 8979, 15269, 8206, 25, 33448, 24164, 1004, 3629, 1192, 12, 27869, 329, 1215, 1878, 4872, 20171, 198, 2, 198, 2, 30628, 55, 12, 34156, 12, 33234, 7483, 25, 17168, 198, 198, 11748, 38551, 62, 10210, 66, 198, 11748, 5...
2.783972
287
# -*- coding: utf-8 -*- from PyQt5 import QtCore, QtGui, QtWidgets from PyQt5.QtWidgets import QMessageBox from PyQt5.QtGui import * import img if __name__=="__main__": import sys app = QtWidgets.QApplication(sys.argv) MainWindow = QtWidgets.QMainWindow() ui = Ui_Homepage() ui.setupUi(MainWindow)...
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 198, 6738, 9485, 48, 83, 20, 1330, 33734, 14055, 11, 33734, 8205, 72, 11, 33734, 54, 312, 11407, 198, 6738, 9485, 48, 83, 20, 13, 48, 83, 54, 312, 11407, 1330, 1195,...
2.209581
167