content
stringlengths
1
1.04M
input_ids
listlengths
1
774k
ratio_char_token
float64
0.38
22.9
token_count
int64
1
774k
# pylint: disable=missing-docstring,import-error,unused-import,assignment-from-no-return # pylint: disable=invalid-name, too-few-public-methods, useless-object-inheritance from __future__ import print_function from UNINFERABLE import uninferable_func try: from functools import singledispatch except ImportError: ...
[ 2, 279, 2645, 600, 25, 15560, 28, 45688, 12, 15390, 8841, 11, 11748, 12, 18224, 11, 403, 1484, 12, 11748, 11, 562, 16747, 12, 6738, 12, 3919, 12, 7783, 198, 2, 279, 2645, 600, 25, 15560, 28, 259, 12102, 12, 3672, 11, 1165, 12, 3...
2.890152
264
print('='*30) print('{:^30}'.format('BANCO ANDERSON')) print('='*30) saque=int(input('Qual valor você quer sacar?R$')) total=saque céd=100 totalcéd=0 cont=0 while True: if total>=céd: total-=céd totalcéd+=1 else: if totalcéd>0: print(f'Total de {totalcéd} cédulas de R${céd}')...
[ 4798, 10786, 11639, 9, 1270, 8, 198, 4798, 10786, 90, 25, 61, 1270, 92, 4458, 18982, 10786, 33, 1565, 8220, 5357, 29086, 6, 4008, 198, 4798, 10786, 11639, 9, 1270, 8, 198, 11400, 4188, 28, 600, 7, 15414, 10786, 46181, 1188, 273, 127...
1.721408
341
# encoding: utf-8 ################################################## # This script shows an example of a header, library and code section. ################################################## # ################################################## # Author: Diego Pajarito # Copyright: Copyright 2020, IAAC # Credits: [Insti...
[ 2, 21004, 25, 3384, 69, 12, 23, 198, 198, 29113, 14468, 2235, 198, 2, 770, 4226, 2523, 281, 1672, 286, 257, 13639, 11, 5888, 290, 2438, 2665, 13, 198, 29113, 14468, 2235, 198, 2, 198, 29113, 14468, 2235, 198, 2, 6434, 25, 9500, 35...
4.081967
244
# -*- coding: utf-8 -*- # Copyright (c) 2018-2020 Christiaan Frans Rademan <chris@fwiw.co.za>. # 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 ...
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 2, 15069, 357, 66, 8, 2864, 12, 42334, 1951, 544, 272, 1305, 504, 5325, 8463, 1279, 354, 2442, 31, 44482, 14246, 13, 1073, 13, 4496, 28401, 198, 2, 1439, 2489, 10395, ...
2.650794
1,071
from dataclasses import dataclass from datetime import timedelta from hashlib import blake2b from numbers import Number from typing import Optional @dataclass
[ 6738, 4818, 330, 28958, 1330, 4818, 330, 31172, 198, 6738, 4818, 8079, 1330, 28805, 12514, 198, 6738, 12234, 8019, 1330, 698, 539, 17, 65, 198, 6738, 3146, 1330, 7913, 198, 6738, 19720, 1330, 32233, 628, 198, 198, 31, 19608, 330, 31172,...
3.880952
42
import sys,os from tests.Base_test import BaseTest import json
[ 11748, 25064, 11, 418, 198, 6738, 5254, 13, 14881, 62, 9288, 1330, 7308, 14402, 198, 11748, 33918, 628 ]
3.555556
18
# Copyright 2017-present Open Networking 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.0 # # Unless required by applicable law or agr...
[ 2, 15069, 2177, 12, 25579, 4946, 7311, 278, 5693, 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, 1...
3.75188
266
#!/usr/bin/env python # Copyright (c) 2020 VMware, Inc. All Rights Reserved. # SPDX-License-Identifier: BSD-2 License # The full license information can be found in LICENSE.txt # in the root directory of this project. ''' Unit test for Iperf app. ''' import logging import time import unittest import warnings from axo...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 198, 2, 15069, 357, 66, 8, 12131, 37754, 11, 3457, 13, 1439, 6923, 33876, 13, 198, 2, 30628, 55, 12, 34156, 12, 33234, 7483, 25, 347, 10305, 12, 17, 13789, 198, 2, 383, 1336, 5964, 1321...
3.191667
120
""" 1. duplicated values 2. irrelevant data 3. structural error ('female', 'fem') 4. missing values 5. outliers """
[ 37811, 198, 197, 16, 13, 14184, 3474, 3815, 628, 197, 17, 13, 18046, 1366, 628, 197, 18, 13, 13204, 4049, 19203, 24724, 3256, 705, 69, 368, 11537, 628, 197, 19, 13, 4814, 3815, 628, 197, 20, 13, 41528, 3183, 198, 198, 37811, 198 ]
2.930233
43
# coding: utf-8 # # Loading Graphs in NetworkX # In[1]: import networkx as nx import numpy as np import pandas as pd get_ipython().magic('matplotlib notebook') # Instantiate the graph G1 = nx.Graph() # add node/edge pairs G1.add_edges_from([(0, 1), (0, 2), (0, 3), ...
[ 198, 2, 19617, 25, 3384, 69, 12, 23, 198, 198, 2, 1303, 12320, 29681, 82, 287, 7311, 55, 198, 198, 2, 554, 58, 16, 5974, 198, 198, 11748, 3127, 87, 355, 299, 87, 198, 11748, 299, 32152, 355, 45941, 198, 11748, 19798, 292, 355, 2...
2.504208
2,495
from datetime import datetime if __name__ == "__main__": age = ask_age() dob = ask_dob() age_in_days = calc_age_in_days(dob) declared_age_in_days = age * 365 # not super precise, but we don't care for now treshold = 180 # let's set a lying treshold at 6 months if abs(declared_age_in_days ...
[ 6738, 4818, 8079, 1330, 4818, 8079, 628, 628, 198, 198, 361, 11593, 3672, 834, 6624, 366, 834, 12417, 834, 1298, 198, 220, 220, 220, 2479, 796, 1265, 62, 496, 3419, 198, 220, 220, 220, 466, 65, 796, 1265, 62, 67, 672, 3419, 198, 2...
2.412791
172
#!/usr/bin/python # copied from https://github.com/topic-embedded-products/meta-topic/blob/master/recipes-bsp/fpga/fpga-bit-to-bin/fpga-bit-to-bin.py import sys import os import struct import argparse parser = argparse.ArgumentParser(description='Convert FPGA bit files to raw bin format suitable for flashing') parse...
[ 2, 48443, 14629, 14, 8800, 14, 29412, 198, 198, 2, 18984, 422, 3740, 1378, 12567, 13, 785, 14, 26652, 12, 20521, 9395, 12, 29498, 14, 28961, 12, 26652, 14, 2436, 672, 14, 9866, 14, 8344, 18636, 12, 24145, 14, 46428, 4908, 14, 46428,...
2.451817
633
# pylint fail to discover some mongoengin members # pylint: disable=E1101 import pykscores.database as db from pykscores.database import User, Play, UserScore import datetime db.connect()
[ 2, 279, 2645, 600, 2038, 284, 7073, 617, 285, 25162, 1516, 259, 1866, 198, 2, 279, 2645, 600, 25, 15560, 28, 36, 1157, 486, 198, 11748, 12972, 591, 66, 2850, 13, 48806, 355, 20613, 198, 6738, 12972, 591, 66, 2850, 13, 48806, 1330, ...
3.166667
60
from git.repo.base import Repo from .settings import settings
[ 6738, 17606, 13, 260, 7501, 13, 8692, 1330, 1432, 78, 198, 6738, 764, 33692, 1330, 6460, 198 ]
3.647059
17
import os import re import base64 import zlib import json import time from slpp import slpp as lua # https://github.com/SirAnthony/slpp if __name__ == "__main__": factorioPath = r"C:\Program Files (x86)\Steam\SteamApps\common\Factorio" path = os.path.dirname(__file__) # recipeRelPath = r"data\base\prot...
[ 198, 11748, 28686, 198, 11748, 302, 198, 11748, 2779, 2414, 198, 11748, 1976, 8019, 198, 11748, 33918, 198, 11748, 640, 198, 6738, 1017, 381, 1330, 1017, 381, 355, 300, 6413, 1303, 3740, 1378, 12567, 13, 785, 14, 22788, 32697, 14, 6649,...
2.368024
663
"a{ \t, \t3 \t}?"
[ 1, 64, 90, 3467, 83, 11, 3467, 83, 18, 3467, 83, 92, 1701, 198 ]
1.285714
14
texto=str(2**1000000) >>> print(len(texto)) 301030
[ 198, 5239, 78, 28, 2536, 7, 17, 1174, 16, 10535, 8, 198, 33409, 3601, 7, 11925, 7, 5239, 78, 4008, 198, 18938, 39101, 198 ]
2.166667
24
# Small alphabet u using function def for_u(): """ *'s printed in the shape of small u """ for row in range(5): for col in range(5): if col %4 ==0 and row !=4 or row ==4 and col%4 !=0: print('*',end=' ') else: print(' ',end=' ') pr...
[ 2, 10452, 24830, 334, 1262, 2163, 201, 198, 4299, 329, 62, 84, 33529, 201, 198, 220, 220, 220, 37227, 1635, 6, 82, 10398, 287, 262, 5485, 286, 1402, 334, 37227, 201, 198, 220, 220, 220, 329, 5752, 287, 2837, 7, 20, 2599, 201, 198,...
1.78836
378
# Copyright 2015 Cloudbase Solutions Srl # # 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, 15069, 1853, 10130, 8692, 23555, 21714, 75, 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, 11...
3.40678
236
from sqlalchemy.ext.declarative import declarative_base from sqlalchemy.ext.hybrid import hybrid_property from sqlalchemy.orm import validates from sqlalchemy.sql import schema, sqltypes from gdc_ng_models.models import audit Base = declarative_base() RELEASED_DATA_DATA_TYPE_VALUES = frozenset({"ssm", "cnv", "case"}...
[ 6738, 44161, 282, 26599, 13, 2302, 13, 32446, 283, 876, 1330, 2377, 283, 876, 62, 8692, 198, 6738, 44161, 282, 26599, 13, 2302, 13, 12114, 10236, 1330, 14554, 62, 26745, 198, 6738, 44161, 282, 26599, 13, 579, 1330, 4938, 689, 198, 673...
2.947761
134
from numbers import Real, Integral import numpy as np from . import _batoid from .constants import globalCoordSys, vacuum from .coordSys import CoordSys from .coordTransform import CoordTransform from .trace import applyForwardTransform, applyForwardTransformArrays from .utils import lazy_property, fieldToDirCos from...
[ 6738, 3146, 1330, 6416, 11, 15995, 1373, 198, 198, 11748, 299, 32152, 355, 45941, 198, 198, 6738, 764, 1330, 4808, 8664, 1868, 198, 6738, 764, 9979, 1187, 1330, 3298, 7222, 585, 44387, 11, 17076, 198, 6738, 764, 37652, 44387, 1330, 2281...
2.333503
19,613
from infinitd_server.db import Db from infinitd_server.sse import SseQueues from infinitd_server.handler.sse import SseStreamHandler
[ 6738, 1167, 15003, 67, 62, 15388, 13, 9945, 1330, 360, 65, 198, 6738, 1167, 15003, 67, 62, 15388, 13, 82, 325, 1330, 311, 325, 15681, 947, 198, 6738, 1167, 15003, 67, 62, 15388, 13, 30281, 13, 82, 325, 1330, 311, 325, 12124, 25060, ...
3.022727
44
#!/usr/bin/env python # -*- coding: utf-8 -*- """modules """ import __builtin__ del __builtin__.range __builtin__.range = xrange del __builtin__.input __builtin__.input = raw_input
[ 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, 18170, 198, 37811, 628, 198, 11748, 11593, 18780, 259, 834, 198, 198, 12381, 11593, 18780, 259, 834, 13, 95...
2.48
75
from libsaas.services import base from .resource import BasecampResource
[ 6738, 9195, 11400, 292, 13, 30416, 1330, 2779, 198, 198, 6738, 764, 31092, 1330, 7308, 16544, 26198, 628, 628 ]
4.052632
19
from django.urls import path from . import views app_name = 'applications' urlpatterns = [ path('', views.ApplicationListView.as_view(), name='application.list'), path('add', views.ApplicationCreateView.as_view(), name='application.add'), path('<int:pk>/', v...
[ 6738, 42625, 14208, 13, 6371, 82, 1330, 3108, 198, 198, 6738, 764, 1330, 5009, 198, 198, 1324, 62, 3672, 796, 705, 1324, 677, 602, 6, 198, 198, 6371, 33279, 82, 796, 685, 198, 220, 220, 220, 3108, 10786, 3256, 198, 220, 220, 220, ...
2.310658
441
#!/usr/bin/env python import rospy from naoqi_sensors.naoqi_camera import NaoqiCam if __name__ == "__main__": naocam = NaoqiCam() naocam.start() rospy.spin()
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 198, 11748, 686, 2777, 88, 198, 6738, 299, 5488, 40603, 62, 82, 641, 669, 13, 2616, 78, 40603, 62, 25695, 1330, 399, 5488, 40603, 21701, 198, 198, 361, 11593, 3672, 834, 6624, 366, 834, 1...
2.260274
73
# Copyright (c) 2014 Baidu.com, Inc. 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, 357, 66, 8, 1946, 347, 1698, 84, 13, 785, 11, 3457, 13, 1439, 6923, 33876, 201, 198, 2, 201, 198, 2, 49962, 739, 262, 24843, 13789, 11, 10628, 362, 13, 15, 357, 1169, 366, 34156, 15341, 345, 743, 407, 779, 428, 2393, 2...
2.133951
4,748
from django import forms
[ 6738, 42625, 14208, 1330, 5107, 628, 628 ]
4
7
import copy from pygments.lexer import RegexLexer, bygroups from pygments.token import * import .base SectionID = Token.Section.ID NodeType = Token.Node.Type NodeID = Token.Node.ID NodeAndOrComma = Token.Node.AndOrComma DiffSpec = Token.DiffSpec AmendedAsFollows = DiffSpec.AmendedAsFollows AmendedByAdding = DiffSpe...
[ 11748, 4866, 198, 198, 6738, 12972, 11726, 13, 2588, 263, 1330, 797, 25636, 45117, 263, 11, 416, 24432, 198, 6738, 12972, 11726, 13, 30001, 1330, 1635, 198, 198, 11748, 764, 8692, 628, 198, 16375, 2389, 796, 29130, 13, 16375, 13, 2389, ...
2.959677
248
import pandas as pd import numpy as np from IPython.display import display, HTML, display_html from tqdm.notebook import tqdm def auto_adjust(): ''' Set column width = 100 Max displayed rows = 100 Max displayed columns = 100 ''' set_colwidth(100) pd.options.display.max_rows = 100 ...
[ 11748, 19798, 292, 355, 279, 67, 201, 198, 11748, 299, 32152, 355, 45941, 201, 198, 6738, 6101, 7535, 13, 13812, 1330, 3359, 11, 11532, 11, 3359, 62, 6494, 201, 198, 6738, 256, 80, 36020, 13, 11295, 2070, 1330, 256, 80, 36020, 201, ...
1.905438
2,887
# -*- coding: utf-8 -*- from .log import log from .empty import empty from .base import BaseTest from .engine import Engine from .context import Context from .resolver import OperatorResolver class Test(BaseTest): """ Test represents the test definition in `grappa` with extensible and dynamic, runtime inf...
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 6738, 764, 6404, 1330, 2604, 198, 6738, 764, 28920, 1330, 6565, 198, 6738, 764, 8692, 1330, 7308, 14402, 198, 6738, 764, 18392, 1330, 7117, 198, 6738, 764, 22866, 1330, ...
2.468688
2,507
import environ env = environ.Env() REST_FRAMEWORK = { "DEFAULT_PAGINATION_CLASS": "rest_framework.pagination.LimitOffsetPagination", "PAGE_SIZE": 10, "MAX_PAGE_SIZE": 100, "DEFAULT_AUTHENTICATION_CLASSES": ( "rest_framework_simplejwt.authentication.JWTAuthentication", "rest_framework.a...
[ 11748, 551, 2268, 198, 198, 24330, 796, 551, 2268, 13, 4834, 85, 3419, 198, 198, 49, 6465, 62, 10913, 2390, 6217, 14670, 796, 1391, 198, 220, 220, 220, 366, 7206, 38865, 62, 4537, 38, 1268, 6234, 62, 31631, 1298, 366, 2118, 62, 3060...
2.405042
595
def max_sub_array(nums): """ Returns the max subarray of the given list of numbers. Returns 0 if nums is None or an empty list. Time Complexity: O(n) Space Complexity: O(1) """ max_sub_array = 0 sum = 0 for num in nums: sum = max(0, sum + num) max_sub_array...
[ 198, 4299, 3509, 62, 7266, 62, 18747, 7, 77, 5700, 2599, 198, 220, 220, 220, 37227, 16409, 262, 3509, 850, 18747, 286, 262, 1813, 1351, 286, 3146, 13, 198, 220, 220, 220, 220, 220, 220, 220, 16409, 657, 611, 220, 997, 82, 318, 604...
2.121951
205
# This file was automatically generated by SWIG (http://www.swig.org). # Version 4.0.2 # # Do not make changes to this file unless you know what you are doing--modify # the SWIG interface file instead. from sys import version_info as _swig_python_version_info if _swig_python_version_info < (2, 7, 0): raise Runtime...
[ 2, 770, 2393, 373, 6338, 7560, 416, 12672, 3528, 357, 4023, 1378, 2503, 13, 2032, 328, 13, 2398, 737, 198, 2, 10628, 604, 13, 15, 13, 17, 198, 2, 198, 2, 2141, 407, 787, 2458, 284, 428, 2393, 4556, 345, 760, 644, 345, 389, 1804,...
2.613938
1,808
import torch import torch.nn.functional as F from torchvision.models import inception_v3 import numpy as np import random from tools.others import sample_ZCs from scipy.stats import entropy from scipy import linalg def get_activations_stat_orig(datasets, n_samples,ipt_net,ipt_dims, n_gpu,dali): """Calculates t...
[ 11748, 28034, 198, 11748, 28034, 13, 20471, 13, 45124, 355, 376, 198, 6738, 28034, 10178, 13, 27530, 1330, 30839, 62, 85, 18, 198, 11748, 299, 32152, 355, 45941, 198, 11748, 4738, 198, 6738, 4899, 13, 847, 82, 1330, 6291, 62, 57, 3227...
2.26099
3,253
#!/usr/bin/env python # -*- coding: iso-8859-15 -*- import codecs import os from setuptools import setup grlc_base = 'src' grlc_base_dir = os.path.join(grlc_base, '') grlc_data = [] for root,dirs,files in os.walk(grlc_base): if root != grlc_base: root_dir = root.replace(grlc_base_dir, '') data_fil...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 198, 2, 532, 9, 12, 19617, 25, 47279, 12, 3459, 3270, 12, 1314, 532, 9, 12, 198, 198, 11748, 40481, 82, 198, 11748, 28686, 198, 6738, 900, 37623, 10141, 1330, 9058, 198, 198, 2164, 44601,...
2.415335
626
import json import os from ucttp import _main INPUT_DIR = "./../inputs" PARAMETERS = "/parameters.json" POPULATION_DEPENDENCE = "./../outputs/population_dependence.txt" GENERATION_DEPENDENCE = "./../outputs/generation_dependence.txt" if __name__ == '__main__': population_size_dependence() generations_num...
[ 11748, 33918, 198, 11748, 28686, 198, 198, 6738, 334, 310, 34788, 1330, 4808, 12417, 198, 198, 1268, 30076, 62, 34720, 796, 366, 19571, 40720, 15414, 82, 1, 198, 27082, 2390, 2767, 4877, 796, 12813, 17143, 7307, 13, 17752, 1, 198, 47, ...
2.785124
121
import logging from src.backup.task_creator import TaskCreator
[ 11748, 18931, 198, 198, 6738, 12351, 13, 1891, 929, 13, 35943, 62, 45382, 1330, 15941, 16719, 273, 628 ]
3.611111
18
from django.core.exceptions import ValidationError from django.shortcuts import render, HttpResponse, redirect # Create your views here. from app01.models import UserInfo ''' forms组件 1、校验数据 2、页面显示提示信息 ''' from django import forms # class BookFrom(forms.Form): # title = forms.CharField(max_length=32) # ...
[ 6738, 42625, 14208, 13, 7295, 13, 1069, 11755, 1330, 3254, 24765, 12331, 198, 6738, 42625, 14208, 13, 19509, 23779, 1330, 8543, 11, 367, 29281, 31077, 11, 18941, 198, 198, 2, 13610, 534, 5009, 994, 13, 198, 6738, 598, 486, 13, 27530, ...
2.397727
176
import collections answer = solution(5, [[4, 3], [4, 2], [3, 2], [1, 2], [2, 5]]) print(answer)
[ 11748, 17268, 198, 198, 41484, 796, 4610, 7, 20, 11, 16410, 19, 11, 513, 4357, 685, 19, 11, 362, 4357, 685, 18, 11, 362, 4357, 685, 16, 11, 362, 4357, 685, 17, 11, 642, 11907, 8, 198, 4798, 7, 41484, 8, 198 ]
2.309524
42
phrase = str(input('Type a phrase: ')).strip() write(phrase)
[ 198, 198, 34675, 796, 965, 7, 15414, 10786, 6030, 257, 9546, 25, 705, 29720, 36311, 3419, 198, 13564, 7, 34675, 8, 198 ]
2.863636
22
import pymongo import gridfs from .datastore import DataStore
[ 11748, 279, 4948, 25162, 198, 11748, 10706, 9501, 198, 198, 6738, 764, 19608, 459, 382, 1330, 6060, 22658, 628 ]
3.368421
19
# This sample tests the type checker's handling of the overload decorator. from typing import Literal, overload, Optional from datetime import datetime, timezone, timedelta @overload @overload result1: datetime = from_json_timestamp(2418049) # This should generate an error result2: datetime = from_json_timesta...
[ 2, 770, 6291, 5254, 262, 2099, 2198, 263, 338, 9041, 286, 262, 31754, 11705, 1352, 13, 198, 198, 6738, 19720, 1330, 25659, 1691, 11, 31754, 11, 32233, 198, 6738, 4818, 8079, 1330, 4818, 8079, 11, 640, 11340, 11, 28805, 12514, 628, 198...
3.069767
172
''' Author : MiKueen Level : Easy Problem Statement : Three Consecutive Odds Given an integer array arr, return true if there are three consecutive odd numbers in the array. Otherwise, return false. Example 1: Input: arr = [2,6,4,1] Output: false Explanation: There are no three consecutive odds. Example 2: Input: ar...
[ 7061, 6, 198, 13838, 1058, 13756, 42, 518, 268, 198, 4971, 1058, 16789, 198, 40781, 21983, 1058, 7683, 1482, 4552, 425, 20664, 82, 198, 198, 15056, 281, 18253, 7177, 5240, 11, 1441, 2081, 611, 612, 389, 1115, 12785, 5629, 3146, 287, 2...
2.840237
169
import torch as t import torch.distributions as dist import torch.nn as nn import torch.nn.functional as f import torch.optim as opt import torch.utils.data as dutils from research_seed.bytorch.binary_neural_network import ( MomentumWithThresholdBinaryOptimizer, BinaryLinear, ) from matplotlib import pyplot a...
[ 11748, 28034, 355, 256, 198, 11748, 28034, 13, 17080, 2455, 507, 355, 1233, 198, 11748, 28034, 13, 20471, 355, 299, 77, 198, 11748, 28034, 13, 20471, 13, 45124, 355, 277, 198, 11748, 28034, 13, 40085, 355, 2172, 198, 11748, 28034, 13, ...
2.685279
197
import json class StringConstant: """Some values in GraphQL are constants, not strings, and so they shouldn't be encoded or have quotes put around them. Use this to represent a constant and it won't be quoted in the query""" class ListConstant: """Some values in GraphQL are constants, not strings, a...
[ 11748, 33918, 628, 198, 4871, 10903, 3103, 18797, 25, 198, 220, 220, 220, 37227, 4366, 3815, 287, 29681, 9711, 389, 38491, 11, 407, 13042, 11, 290, 523, 484, 6584, 470, 198, 220, 220, 220, 307, 30240, 393, 423, 13386, 1234, 1088, 606,...
2.760274
438
# coding: utf-8 # OpenCV ライン検出クラス import cv2 import numpy as np import time import os import sys import math from .functions import * import platform
[ 2, 19617, 25, 3384, 69, 12, 23, 198, 2, 4946, 33538, 220, 9263, 11482, 6527, 162, 97, 250, 49035, 118, 14099, 9263, 8943, 198, 11748, 269, 85, 17, 198, 11748, 299, 32152, 355, 45941, 198, 11748, 640, 198, 11748, 28686, 198, 11748, 2...
2.631579
57
from __future__ import unicode_literals import frappe from frappe.model.document import Document from frappeclient import FrappeClient import json import os import requests import subprocess from frappe.utils.background_jobs import enqueue from frappe.utils import get_site_name from frappe.utils import flt,...
[ 201, 198, 6738, 11593, 37443, 834, 1330, 28000, 1098, 62, 17201, 874, 201, 198, 11748, 5306, 27768, 201, 198, 6738, 5306, 27768, 13, 19849, 13, 22897, 1330, 16854, 201, 198, 6738, 5306, 27768, 16366, 1330, 39313, 27768, 11792, 201, 198, ...
2.689441
161
# Generated by Django 3.0.5 on 2020-09-22 20:36 from django.db import migrations
[ 2, 2980, 515, 416, 37770, 513, 13, 15, 13, 20, 319, 12131, 12, 2931, 12, 1828, 1160, 25, 2623, 198, 198, 6738, 42625, 14208, 13, 9945, 1330, 15720, 602, 628 ]
2.766667
30
import math import cv2 import numpy as np import imutils
[ 11748, 10688, 198, 11748, 269, 85, 17, 198, 11748, 299, 32152, 355, 45941, 198, 11748, 545, 26791, 628, 628, 628 ]
3.1
20
import json from os.path import dirname, abspath, join from mhdata.io.csv import read_csv class MonsterMetadata: """ Attempt to load the various types of mappings that monsters have Monsters have an internal numerical id used in some schemas, and varying string ids used in other schemas. Note th...
[ 11748, 33918, 198, 198, 6738, 28686, 13, 6978, 1330, 26672, 3672, 11, 2352, 6978, 11, 4654, 198, 198, 6738, 285, 71, 7890, 13, 952, 13, 40664, 1330, 1100, 62, 40664, 628, 198, 4871, 12635, 9171, 14706, 25, 198, 220, 220, 220, 37227, ...
3.418079
177
""" Module for gocdapi Pipeline class """ import xml.etree.ElementTree as ET from gocdapi.gobase import GoBase from gocdapi.stage import Stage from gocdapi.utils.config_xml import ConfigXML class Pipeline(GoBase): """ Class to hold Go Server Pipeline information """ def __init__(self, go_server, da...
[ 37811, 198, 26796, 329, 308, 420, 67, 15042, 37709, 1398, 198, 37811, 198, 198, 11748, 35555, 13, 316, 631, 13, 20180, 27660, 355, 12152, 198, 198, 6738, 308, 420, 67, 15042, 13, 44270, 589, 1330, 1514, 14881, 198, 6738, 308, 420, 67,...
2.417681
1,889
print ("Pythagorean Triplets with smaller side upto 10 -->") # form : (m^2 - n^2, 2*m*n, m^2 + n^2) # generate all (m, n) pairs such that m^2 - n^2 <= 10 # if we take (m > n), for m >= 6, m^2 - n^2 will always be greater than 10 # so m ranges from 1 to 5 and n ranges from 1 to m-1 pythTriplets = [(m*m - n*n, 2*m*n, m*m...
[ 4798, 5855, 47, 5272, 363, 29456, 19817, 912, 351, 4833, 1735, 18529, 78, 838, 14610, 4943, 198, 2, 1296, 1058, 357, 76, 61, 17, 532, 299, 61, 17, 11, 362, 9, 76, 9, 77, 11, 285, 61, 17, 1343, 299, 61, 17, 8, 198, 2, 7716, 4...
2.308511
188
#!/usr/bin/env python3 #github.com/intrackeable/dotfiles #Set a random wallpaper and change gaps level import random import os import subprocess
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 18, 198, 2, 12567, 13, 785, 14, 600, 11510, 365, 540, 14, 26518, 16624, 198, 2, 7248, 257, 4738, 39328, 290, 1487, 17332, 1241, 198, 198, 11748, 4738, 198, 11748, 28686, 198, 11748, 850, ...
3.372093
43
from ._step import Timestep
[ 6738, 47540, 9662, 1330, 5045, 395, 538, 198 ]
3.5
8
import numpy as np import random, time import tensorflow as tf from automata_learning_utils import al_utils from worlds.game import * from automata_learning_with_policybank.policy_bank_dqn import PolicyBankDQN from common.schedules import LinearSchedule from common.replay_buffer import create_experience_replay_buffer f...
[ 11748, 299, 32152, 355, 45941, 198, 11748, 4738, 11, 640, 198, 11748, 11192, 273, 11125, 355, 48700, 198, 6738, 3557, 1045, 62, 40684, 62, 26791, 1330, 435, 62, 26791, 198, 6738, 11621, 13, 6057, 1330, 1635, 198, 6738, 3557, 1045, 62, ...
2.241829
4,375
import numpy as np data_index = { "z" : 0, "vz" : 1 }
[ 11748, 299, 32152, 355, 45941, 198, 198, 7890, 62, 9630, 796, 1391, 198, 220, 220, 220, 366, 89, 1, 1058, 657, 11, 198, 220, 220, 220, 366, 85, 89, 1, 1058, 352, 198, 92, 198 ]
1.8
35
from enum import Enum class DataType(Enum): """ All variants of possible data types in a chart. """ Integer = 0 IntegerSum = 1 Float = 2 FloatSum = 3 String = 4 DateTime = 5 Date = 6 Time = 7 Daytime = 8 Count = 9 Weekday = 10 Day = 11 Month = 12 @s...
[ 6738, 33829, 1330, 2039, 388, 628, 198, 4871, 6060, 6030, 7, 4834, 388, 2599, 198, 220, 220, 220, 37227, 198, 220, 220, 220, 1439, 17670, 286, 1744, 1366, 3858, 287, 257, 8262, 13, 198, 220, 220, 220, 37227, 198, 220, 220, 220, 3414...
2.225901
1,359
# -*- coding: utf-8 -*- # Generated by Django 1.11 on 2018-05-15 15:46 from __future__ import unicode_literals from django.conf import settings from django.db import migrations, models import django.db.models.deletion
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 2, 2980, 515, 416, 37770, 352, 13, 1157, 319, 2864, 12, 2713, 12, 1314, 1315, 25, 3510, 198, 6738, 11593, 37443, 834, 1330, 28000, 1098, 62, 17201, 874, 198, 198, 6738...
2.933333
75
#!/usr/bin/env python3 """ Command line interface for the testing Splunk data ingestion. """ import json import os import sys from datetime import datetime from time import sleep import click from search import poll_splunk @click.group() @cli.command() @click.option("-S", "--sleeptime", type=int, default=1) @cli...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 18, 198, 37811, 198, 21575, 1627, 7071, 329, 262, 4856, 13341, 2954, 1366, 38382, 13, 198, 37811, 198, 198, 11748, 33918, 198, 11748, 28686, 198, 11748, 25064, 198, 6738, 4818, 8079, 1330, 48...
2.80198
303
"""Get commands from Redis, treat them, and send them to the device.""" import json import time from typing import Any from redis import Redis from redis.client import PubSub from bltouch import sensor class CommandGetter: """Gets commands over Redis.""" redis_instance: Redis pubsub: PubSub channe...
[ 37811, 3855, 9729, 422, 2297, 271, 11, 2190, 606, 11, 290, 3758, 606, 284, 262, 3335, 526, 15931, 198, 198, 11748, 33918, 198, 11748, 640, 198, 6738, 19720, 1330, 4377, 198, 198, 6738, 2266, 271, 1330, 2297, 271, 198, 6738, 2266, 271,...
2.451613
465
import math import os import socket import sys import time from humanfriendly.terminal import ansi_wrap from requests import get from MHDDoS.methods.tools import Tools from utils.network import NetworkUtils, IPGeolocationData
[ 11748, 10688, 198, 11748, 28686, 198, 11748, 17802, 198, 11748, 25064, 198, 11748, 640, 198, 198, 6738, 1692, 13120, 13, 23705, 282, 1330, 9093, 72, 62, 37150, 198, 6738, 7007, 1330, 651, 198, 198, 6738, 337, 10227, 46498, 13, 24396, 82...
3.625
64
# -*- coding: utf-8 -*- # -*- encoding:utf-8 -*- """ credit from @arthor: zhongxinwang @date: 2016-11-11 """ import binascii import struct import sys import os import pdb if __name__ == '__main__': # 将要转换的词库添加在这里就可以了 path = [] full_list = ['167', '1', '76', '96', '127', '436', '154', '389', '367', '31'...
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 2, 532, 9, 12, 21004, 25, 40477, 12, 23, 532, 9, 12, 198, 37811, 198, 43082, 422, 198, 31, 11999, 273, 25, 1976, 71, 506, 87, 259, 47562, 198, 31, 4475, 25, 1584, ...
1.880911
571
from functools import wraps from django.conf import settings from django.shortcuts import redirect
[ 6738, 1257, 310, 10141, 1330, 27521, 198, 6738, 42625, 14208, 13, 10414, 1330, 6460, 198, 6738, 42625, 14208, 13, 19509, 23779, 1330, 18941, 628 ]
4.166667
24
import smbus I2C_ADDRESS = 0x68 bus = smbus.SMBus(0) # Set all ports in input mode bus.write_byte(I2C_ADDRESS, 0xFF) # Read all the input lines high = bus.read_byte(0x1b) low = bus.read_byte(0x1c) value = (high << 8) + low print value
[ 11748, 895, 10885, 198, 198, 40, 17, 34, 62, 2885, 7707, 7597, 796, 657, 87, 3104, 198, 198, 10885, 796, 895, 10885, 13, 50, 10744, 385, 7, 15, 8, 198, 198, 2, 5345, 477, 14090, 287, 5128, 4235, 198, 10885, 13, 13564, 62, 26327, ...
2.209091
110
import time from SunFounder_TB6612 import TB6612 import RPi.GPIO as GPIO import time from SunFounder_PCA9685 import Servo print "********************************************" print "* *" print "* SunFounder TB6612 *" print "* ...
[ 11748, 640, 198, 6738, 3825, 21077, 263, 62, 22737, 2791, 1065, 1330, 23799, 2791, 1065, 198, 11748, 25812, 72, 13, 16960, 9399, 355, 50143, 198, 11748, 640, 198, 6738, 3825, 21077, 263, 62, 5662, 32, 24, 35978, 1330, 3116, 78, 198, 4...
1.875217
577
from typing import Dict, List from cloudrail.knowledge.context.aws.iam.iam_group import IamGroup from cloudrail.knowledge.context.aws.iam.iam_identity import IamIdentity from cloudrail.knowledge.context.aws.iam.iam_user import IamUser from cloudrail.knowledge.context.aws.iam.iam_users_login_profile import IamUsersLogi...
[ 6738, 19720, 1330, 360, 713, 11, 7343, 198, 198, 6738, 6279, 30224, 13, 45066, 13, 22866, 13, 8356, 13, 1789, 13, 1789, 62, 8094, 1330, 314, 321, 13247, 198, 6738, 6279, 30224, 13, 45066, 13, 22866, 13, 8356, 13, 1789, 13, 1789, 62,...
3.585714
210
#!/usr/bin/python # -*- coding: utf-8 -*- import dpkt import socket import binascii def macaddr_aton(mac_addr): """translate mac addr into network bits""" return binascii.unhexlify(mac_addr.replace(':', '')) def build_arp_packet(src_macaddr, dst_macaddr, src_ip, dst_ip): """ forge arp packets used to p...
[ 2, 48443, 14629, 14, 8800, 14, 29412, 198, 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 198, 11748, 288, 79, 21841, 198, 11748, 17802, 198, 11748, 9874, 292, 979, 72, 628, 198, 4299, 8352, 29851, 62, 13951, 7, 20...
2.220627
766
import os, sys import torch import torchvision seed=23333 torch.manual_seed(seed) torch.cuda.manual_seed(seed) import random random.seed(seed) import numpy as np import matplotlib.pyplot as plt from collections import defaultdict from PIL import Image import inversefed import torchvision.transforms as transforms impor...
[ 11748, 28686, 11, 25064, 198, 11748, 28034, 198, 11748, 28034, 10178, 198, 28826, 28, 1954, 20370, 198, 13165, 354, 13, 805, 723, 62, 28826, 7, 28826, 8, 198, 13165, 354, 13, 66, 15339, 13, 805, 723, 62, 28826, 7, 28826, 8, 198, 117...
3.392982
285
from numpy import* from astropy.io import ascii from astropy.table import Table , Column import pystan import pickle import config import sys , os , string import generate_STAN import get_data # go in /data/Cepheids/runs # creates a pickle file and a table cfg = config.config(sys.argv[1]) if len(sys.argv) > 2: co...
[ 6738, 299, 32152, 1330, 9, 198, 6738, 6468, 28338, 13, 952, 1330, 355, 979, 72, 198, 6738, 6468, 28338, 13, 11487, 1330, 8655, 837, 29201, 198, 11748, 12972, 14192, 198, 11748, 2298, 293, 198, 11748, 4566, 198, 11748, 25064, 837, 28686,...
2.488127
758
#!/usr/bin/env python import treetime import numpy as np import os,sys import datetime import subprocess import re import utility_functions_flu as flu_utils import utility_functions_general as gen_utils from utility_functions_beast import run_beast, read_beast_log aln_name = "./resources/flu_H3N2/H3N2_HA_2011_2013.fa...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 198, 11748, 2054, 8079, 198, 11748, 299, 32152, 355, 45941, 198, 11748, 28686, 11, 17597, 198, 11748, 4818, 8079, 198, 11748, 850, 14681, 198, 11748, 302, 198, 198, 11748, 10361, 62, 12543, 2...
1.917144
1,919
from six.moves import urllib from java.io import Serializable from java.util.concurrent import Callable from clamp import clamp_base BarBase = clamp_base("bar")
[ 6738, 2237, 13, 76, 5241, 1330, 2956, 297, 571, 198, 6738, 20129, 13, 952, 1330, 23283, 13821, 198, 6738, 20129, 13, 22602, 13, 1102, 14421, 1330, 4889, 540, 198, 198, 6738, 29405, 1330, 29405, 62, 8692, 628, 198, 10374, 14881, 796, 2...
3.408163
49
'''The unit test for module `coqide.session.Session`.''' from unittest import TestCase from unittest.mock import patch, Mock from coqide.session import Session from coqide.types import Mark, Sentence # pylint: disable=W0212,C0103,R0201 class TestSession(TestCase): '''Test for class `coqide.session.Session`.''' ...
[ 7061, 6, 464, 4326, 1332, 329, 8265, 4600, 1073, 80, 485, 13, 29891, 13, 36044, 63, 2637, 7061, 198, 198, 6738, 555, 715, 395, 1330, 6208, 20448, 198, 6738, 555, 715, 395, 13, 76, 735, 1330, 8529, 11, 44123, 198, 198, 6738, 763, 8...
2.171286
1,804
from .core_configs import * panmodel_configs = { 'general.pandemic.name' : 'Pandemic', #SIR 'params.sir.tpop.val' : 7_75_66_886, 'params.sir.tr.cr.es': {}, 'params.sir.tr.pr.es': {}, 'params.sir.tr...
[ 6738, 764, 7295, 62, 11250, 82, 1330, 1635, 198, 198, 6839, 19849, 62, 11250, 82, 796, 1391, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 705, 24622, 13, 79, 392, 5314, 13, ...
1.771502
779
import logging import queue from bluepy.btle import Peripheral from pybluepedal.common.base import BaseDelegate, BaseService from pybluepedal.common.byte_ops import check_bit_l2r logger = logging.getLogger("HeartRateService")
[ 11748, 18931, 198, 11748, 16834, 198, 198, 6738, 4171, 9078, 13, 65, 7100, 1330, 2448, 10803, 282, 198, 6738, 12972, 17585, 9124, 282, 13, 11321, 13, 8692, 1330, 7308, 5005, 34637, 11, 7308, 16177, 198, 6738, 12972, 17585, 9124, 282, 13...
3.239437
71
########################################################################## # # pgAdmin 4 - PostgreSQL Tools # # Copyright (C) 2013 - 2020, The pgAdmin Development Team # This software is released under the PostgreSQL Licence # ########################################################################## import json impo...
[ 29113, 29113, 7804, 2235, 198, 2, 198, 2, 23241, 46787, 604, 532, 2947, 47701, 20003, 198, 2, 198, 2, 15069, 357, 34, 8, 2211, 532, 12131, 11, 383, 23241, 46787, 7712, 4816, 198, 2, 770, 3788, 318, 2716, 739, 262, 2947, 47701, 10483...
4.342282
149
from __future__ import absolute_import, division, print_function, unicode_literals import os, sys, datetime, errno, threading USING_PYTHON2 = True if sys.version_info < (3, 0) else False if USING_PYTHON2: from multiprocessing import cpu_count from thread import get_ident from StringIO import StringIO ...
[ 6738, 11593, 37443, 834, 1330, 4112, 62, 11748, 11, 7297, 11, 3601, 62, 8818, 11, 28000, 1098, 62, 17201, 874, 198, 198, 11748, 28686, 11, 25064, 11, 4818, 8079, 11, 11454, 3919, 11, 4704, 278, 198, 198, 2937, 2751, 62, 47, 56, 4221...
3.032573
307
#!/usr/bin/python ################################################################################ # 20fb7dcc-5cc5-11e4-af55-00155d01fe08 # # Justin Dierking # justindierking@hardbitsolutions.com # phnomcobra@gmail.com # # 10/24/2014 Original Construction ################################################################...
[ 2, 48443, 14629, 14, 8800, 14, 29412, 198, 29113, 29113, 14468, 198, 2, 1160, 21855, 22, 67, 535, 12, 20, 535, 20, 12, 1157, 68, 19, 12, 1878, 2816, 12, 405, 18742, 67, 486, 5036, 2919, 198, 2, 198, 2, 10799, 360, 959, 3364, 198...
4.060241
83
# -*- coding: utf-8 -*- """Tests for the `PwCalculationTools` class.""" import numpy as np import pytest from aiida import orm from aiida.common.links import LinkType def test_pw_get_scf_accuracy(fixture_localhost, generate_calc_job_node): """Test the `PwCalculationTools.get_scf_accuracy` method.""" entry_po...
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 37811, 51, 3558, 329, 262, 4600, 47, 86, 9771, 14902, 33637, 63, 1398, 526, 15931, 198, 11748, 299, 32152, 355, 45941, 198, 11748, 12972, 9288, 198, 198, 6738, 257, 72, ...
2.487613
888
#!/usr/bin/env python __author__ = "Andre Merzky, Ole Weidner" __copyright__ = "Copyright 2012-2013, The SAGA Project" __license__ = "MIT" import radical.utils as ru from radical.utils.contrib.urlparse25 import urljoin # ------------------------------------------------------------------------------ # # --...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 198, 198, 834, 9800, 834, 220, 220, 220, 796, 366, 31258, 4638, 89, 2584, 11, 30093, 775, 312, 1008, 1, 198, 834, 22163, 4766, 834, 796, 366, 15269, 2321, 12, 6390, 11, 383, 311, 4760, ...
5.075314
239
from django.apps import AppConfig
[ 6738, 42625, 14208, 13, 18211, 1330, 2034, 16934, 628 ]
3.888889
9
from statue.cli import statue_cli from statue.constants import ENCODING
[ 6738, 15207, 13, 44506, 1330, 15207, 62, 44506, 198, 6738, 15207, 13, 9979, 1187, 1330, 412, 7792, 3727, 2751, 628, 198 ]
3.52381
21
from django.conf.urls import include, url from xcsr_db.views import * # Define our custom URLs # Additionally, we include login URLs for the browseable API. urlpatterns = [ url(r'^componentsprequirement/$', ComponentSPRequirement_List.as_view(), name='componentsprequirement-list'), url(r'^componentsprequiremen...
[ 6738, 42625, 14208, 13, 10414, 13, 6371, 82, 1330, 2291, 11, 19016, 198, 6738, 2124, 6359, 81, 62, 9945, 13, 33571, 1330, 1635, 198, 198, 2, 2896, 500, 674, 2183, 32336, 198, 2, 12032, 11, 356, 2291, 17594, 32336, 329, 262, 25675, 5...
2.939914
233
""" Copyright (c) 2014-2015-2015, The University of Texas at Austin. All rights reserved. This file is part of BLASpy and is available under the 3-Clause BSD License, which can be found in the LICENSE file at the top-level directory or at http://opensource.org/licenses/BSD-3-Clause """ from .acc...
[ 37811, 628, 220, 220, 220, 15069, 357, 66, 8, 1946, 12, 4626, 12, 4626, 11, 383, 2059, 286, 3936, 379, 9533, 13, 198, 220, 220, 220, 1439, 2489, 10395, 13, 628, 220, 220, 220, 770, 2393, 318, 636, 286, 9878, 1921, 9078, 290, 318, ...
3.190476
252
from django.urls import path from fartor.apps.accounting.users.actions.login import LoginRestAPI from fartor.apps.accounting.users.actions.self import SelfRestAPI urlpatterns = [ # user login path('auth/login/', LoginRestAPI.as_view()), path('auth/self/', SelfRestAPI.as_view()), ]
[ 6738, 42625, 14208, 13, 6371, 82, 1330, 3108, 198, 198, 6738, 15189, 273, 13, 18211, 13, 23317, 278, 13, 18417, 13, 4658, 13, 38235, 1330, 23093, 19452, 17614, 198, 6738, 15189, 273, 13, 18211, 13, 23317, 278, 13, 18417, 13, 4658, 13,...
2.846154
104
# Copyright 2019-2020 by Wenfeng Gao, MGLAND animation studio. All rights reserved. # This file is part of IUTest, and is released under the "MIT License Agreement". # Please see the LICENSE file that should have been included as part of this package. class TestsDuplicationRemovalHooks(object): """ Remove potenti...
[ 2, 15069, 13130, 12, 42334, 416, 31164, 69, 1516, 402, 5488, 11, 337, 8763, 6981, 11034, 8034, 13, 1439, 2489, 10395, 13, 198, 2, 770, 2393, 318, 636, 286, 314, 3843, 395, 11, 290, 318, 2716, 739, 262, 366, 36393, 13789, 12729, 1911...
3.298883
358
# -*- coding: utf-8 -*- """Top-level package for kerasltisubmission.""" __author__ = """into-ai""" __email__ = "introintoai@gmail.com" __version__ = "0.4.9" from kerasltisubmission.kerasltisubmission import Submission as _Submission from kerasltisubmission.provider import AnyIDType as _AnyIDType from kerasltisubmiss...
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 198, 37811, 9126, 12, 5715, 5301, 329, 41927, 292, 2528, 271, 549, 3411, 526, 15931, 198, 198, 834, 9800, 834, 796, 37227, 20424, 12, 1872, 37811, 198, 834, 12888, 834, ...
3
185
import pytest from django.urls import reverse from model_mommy import mommy from pypro.django_assertions import assert_contains from pypro.videos.models import Video @pytest.fixture @pytest.fixture @pytest.fixture
[ 11748, 12972, 9288, 198, 6738, 42625, 14208, 13, 6371, 82, 1330, 9575, 198, 6738, 2746, 62, 32542, 1820, 1330, 1995, 1820, 198, 198, 6738, 12972, 1676, 13, 28241, 14208, 62, 30493, 507, 1330, 6818, 62, 3642, 1299, 198, 6738, 12972, 1676...
3.040541
74
# global import jax import jax.numpy as jnp from typing import Optional # local import ivy from ivy.functional.backends.jax import JaxArray # Extra # # ------#
[ 2, 3298, 198, 11748, 474, 897, 198, 11748, 474, 897, 13, 77, 32152, 355, 474, 37659, 198, 6738, 19720, 1330, 32233, 198, 198, 2, 1957, 198, 11748, 21628, 88, 198, 6738, 21628, 88, 13, 45124, 13, 1891, 2412, 13, 73, 897, 1330, 449, ...
2.642857
84
# -*- coding: utf-8 -*- """ Created on Tue Mar 26 14:02:03 2019 @author: Kim LeBlanc """ import pandas as pd from pandas import ExcelWriter from fuzzywuzzy import fuzz from fuzzywuzzy import process def match2Lists(list1,list2): """ Loops over a list and returns fuzzy matches found in a second ...
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 201, 198, 37811, 201, 198, 41972, 319, 30030, 1526, 2608, 1478, 25, 2999, 25, 3070, 13130, 201, 198, 201, 198, 31, 9800, 25, 6502, 1004, 3629, 1192, 201, 198, 37811, 201, 1...
2.306709
1,878
import copy import torch import torch.nn.functional as F from torch import nn from models.util import inverse_sigmoid from models.ops.modules import MSDeformAttn def _get_activation_fn(activation): """Return an activation function given a string""" if activation == "relu": return F.relu if ac...
[ 11748, 4866, 198, 11748, 28034, 198, 11748, 28034, 13, 20471, 13, 45124, 355, 376, 198, 6738, 28034, 1330, 299, 77, 198, 6738, 4981, 13, 22602, 1330, 34062, 62, 82, 17225, 1868, 198, 6738, 4981, 13, 2840, 13, 18170, 1330, 6579, 5005, ...
2.893491
169
import _initpath import os import pyradox import load.country import load.province # Load countries and provinces. countries = load.country.get_countries() leader_keys = ('fire', 'shock', 'manuever', 'siege') s = '{|class = "wikitable sortable"\n' s += "! Leader !! Country !! Date !! {{icon|adm}} !! {{icon|dip}} ...
[ 11748, 4808, 15003, 6978, 198, 11748, 28686, 198, 198, 11748, 279, 2417, 324, 1140, 198, 11748, 3440, 13, 19315, 198, 11748, 3440, 13, 15234, 924, 628, 198, 198, 2, 8778, 2678, 290, 17812, 13, 198, 9127, 1678, 796, 3440, 13, 19315, 13...
2.325383
587
default_app_config = 'about.apps.AboutConfig'
[ 12286, 62, 1324, 62, 11250, 796, 705, 10755, 13, 18211, 13, 8585, 16934, 6 ]
3.214286
14
from forms.forms import Form vecLst = [[1, 0, 2, 0], # (x0, y0, z0) [0, 1, 2, 0], # (x1, y1, z1) [2, 0, 1, 0],] # (x2, y2, z2) # validation test def test1(): """ Simple test """ dim = 2 form = Form(vecLst, dim) print(form) # X, Y, Z format print() form.dim = 3 ...
[ 6738, 5107, 13, 23914, 1330, 5178, 198, 198, 35138, 43, 301, 796, 16410, 16, 11, 657, 11, 362, 11, 657, 4357, 220, 1303, 357, 87, 15, 11, 331, 15, 11, 1976, 15, 8, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 685, 15, 11,...
2.008602
465
from datetime import date from datetime import timedelta my_day = date(2017,8,1) print (my_day) print (my_day.weekday()) party_day = my_day + timedelta(days=10000) print(party_day)
[ 6738, 4818, 8079, 1330, 3128, 198, 6738, 4818, 8079, 1330, 28805, 12514, 198, 1820, 62, 820, 796, 3128, 7, 5539, 11, 23, 11, 16, 8, 198, 4798, 357, 1820, 62, 820, 8, 198, 4798, 357, 1820, 62, 820, 13, 10464, 820, 28955, 198, 198, ...
2.716418
67
############################################################################### # Language Modeling on Wikitext-2 # # This file generates new sentences sampled from the language model # ############################################################################### ''' cuda:0 ppl: 16.847383872958442 for sentence My S...
[ 29113, 29113, 7804, 4242, 21017, 198, 2, 15417, 9104, 278, 319, 11145, 578, 742, 12, 17, 198, 2, 198, 2, 770, 2393, 18616, 649, 13439, 35846, 422, 262, 3303, 2746, 198, 2, 198, 29113, 29113, 7804, 4242, 21017, 198, 7061, 6, 198, 66,...
2.653791
1,398
# from board import Board import os
[ 2, 422, 3096, 1330, 5926, 198, 11748, 28686, 628, 198 ]
3.8
10
from .apply_list_updates import ListUpdatesDict, apply_fields # noqa from .connection_handler import ConnectionHandler, DatabaseError # noqa from .pg_connection_handler import retry_on_db_failure # noqa from .sql_event_types import EVENT_TYPES # noqa from .sql_query_helper import SqlQueryHelper ALL_TABLES = ( ...
[ 6738, 764, 39014, 62, 4868, 62, 929, 19581, 1330, 7343, 4933, 19581, 35, 713, 11, 4174, 62, 25747, 220, 1303, 645, 20402, 198, 6738, 764, 38659, 62, 30281, 1330, 26923, 25060, 11, 24047, 12331, 220, 1303, 645, 20402, 198, 6738, 764, 6...
2.756219
201
from django.urls import include, path from rest_framework.routers import DefaultRouter from .views import ChargesViewSet router = DefaultRouter() router.register(r'charges', ChargesViewSet) urlpatterns = [ path('', include(router.urls)), ]
[ 6738, 42625, 14208, 13, 6371, 82, 1330, 2291, 11, 3108, 198, 6738, 1334, 62, 30604, 13, 472, 1010, 1330, 15161, 49, 39605, 198, 198, 6738, 764, 33571, 1330, 44620, 7680, 7248, 198, 198, 472, 353, 796, 15161, 49, 39605, 3419, 198, 472,...
3.126582
79
# -*- coding: utf-8 -*- from odoo import models, fields, api, _
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 201, 198, 201, 198, 6738, 16298, 2238, 1330, 4981, 11, 7032, 11, 40391, 11, 4808, 201, 198, 201, 198, 201, 198 ]
2.117647
34