content
stringlengths
1
1.05M
input_ids
listlengths
1
883k
ratio_char_token
float64
1
22.9
token_count
int64
1
883k
# -*- coding: utf-8 -*-
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 628, 198 ]
1.733333
15
{ 'targets': [ { # have to specify 'liblib' here since gyp will remove the first one :\ 'target_name': 'mysql_bindings', 'sources': [ 'src/mysql_bindings.cc', 'src/mysql_bindings_connection.cc', 'src/mysql_bindings_result.cc', 'src/mysql_bindings_statement.cc', ...
[ 90, 198, 220, 705, 83, 853, 1039, 10354, 685, 198, 220, 220, 220, 1391, 198, 220, 220, 220, 220, 220, 1303, 423, 284, 11986, 705, 8019, 8019, 6, 994, 1201, 308, 4464, 481, 4781, 262, 717, 530, 1058, 59, 198, 220, 220, 220, 220, ...
1.749491
491
# copyright Chad Dombrova chadd@luma-pictures.com # created at luma pictures www.luma-pictures.com """ ******************************* PyMEL ******************************* PyMEL makes python scripting in Maya work the way it should. Maya's command module is a direct translation of MEL commands into p...
[ 198, 2, 6634, 19800, 360, 2381, 305, 6862, 220, 220, 220, 442, 2860, 31, 75, 7487, 12, 18847, 942, 13, 785, 198, 2, 2727, 379, 300, 7487, 5986, 220, 220, 7324, 13, 75, 7487, 12, 18847, 942, 13, 785, 198, 198, 37811, 198, 8412, 4...
3.573034
356
from setuptools import find_packages, setup setup(name='ActT', version='0.6', description='Active Testing', url='', author='', author_email='none', license='BSD', packages=find_packages(), install_requires=[ 'numpy', 'pandas', 'matplotlib','scipy','scikit-learn',...
[ 6738, 900, 37623, 10141, 1330, 1064, 62, 43789, 11, 9058, 198, 198, 40406, 7, 3672, 11639, 6398, 51, 3256, 198, 220, 220, 220, 220, 220, 2196, 11639, 15, 13, 21, 3256, 198, 220, 220, 220, 220, 220, 6764, 11639, 13739, 23983, 3256, 1...
2.254237
177
# deltat.py time difference calculation for sensor fusion # Released under the MIT License (MIT) # Copyright (c) 2018 Peter Hinch # Provides TimeDiff function and DeltaT class. # The following notes cover special cases. Where the device performing fusion # is linked to the IMU and is running MicroPython no special tre...
[ 2, 1619, 83, 265, 13, 9078, 640, 3580, 17952, 329, 12694, 21748, 198, 2, 28728, 739, 262, 17168, 13789, 357, 36393, 8, 198, 2, 15069, 357, 66, 8, 2864, 5613, 367, 8589, 198, 198, 2, 47081, 3862, 28813, 2163, 290, 16978, 51, 1398, ...
4.00998
501
# -*- coding: utf-8 -*- """ Sony Colourspaces ================= Defines the *Sony* colourspaces: - :attr:`colour.models.RGB_COLOURSPACE_S_GAMUT`. - :attr:`colour.models.RGB_COLOURSPACE_S_GAMUT3`. - :attr:`colour.models.RGB_COLOURSPACE_S_GAMUT3_CINE`. - :attr:`colour.models.RGB_COLOURSPACE_VENICE_S_GAMUT3`. - ...
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 37811, 198, 32895, 38773, 2777, 2114, 198, 4770, 28, 198, 198, 7469, 1127, 262, 1635, 32895, 9, 9568, 2777, 2114, 25, 198, 198, 12, 220, 220, 1058, 35226, 25, 63, 4990...
1.95482
5,799
# -*- coding: UTF-8 -*- '''================================================= @Project -> File EWC -> network @IDE PyCharm @Author Qiao Zhongzheng @Date 2021/6/23 20:28 @Desc ==================================================''' from tensorflow.keras import Model from tensorflow.keras.layers import Dense, Conv...
[ 2, 532, 9, 12, 19617, 25, 41002, 12, 23, 532, 9, 12, 198, 7061, 6, 10052, 4770, 28, 198, 31, 16775, 4613, 9220, 220, 220, 412, 27353, 4613, 3127, 198, 31, 14114, 220, 220, 220, 9485, 1925, 1670, 198, 31, 13838, 45724, 10511, 506, ...
3.122807
114
# TODO turn prints into actual error raise, they are print for testing
[ 2, 16926, 46, 1210, 20842, 656, 4036, 4049, 5298, 11, 484, 389, 3601, 329, 4856, 628, 198 ]
4.294118
17
#!/usr/bin/env python3 # Copyright (c) Facebook, Inc. and its affiliates. All rights reserved. import logging import os import pprint import unittest import numpy as np # pyre-fixme[21]: Could not find module `pytest`. import pytest import torch from parameterized import parameterized from reagent.core.types import R...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 18, 198, 2, 15069, 357, 66, 8, 3203, 11, 3457, 13, 290, 663, 29116, 13, 1439, 2489, 10395, 13, 198, 11748, 18931, 198, 11748, 28686, 198, 11748, 279, 4798, 198, 11748, 555, 715, 395, 198,...
2.8
970
""" Created on June 7, 2016 a rule-based user simulator @author: xiul, t-zalipt """ import random
[ 201, 198, 37811, 201, 198, 41972, 319, 2795, 767, 11, 1584, 201, 198, 201, 198, 64, 3896, 12, 3106, 2836, 35375, 201, 198, 201, 198, 31, 9800, 25, 2124, 72, 377, 11, 256, 12, 89, 7344, 457, 201, 198, 37811, 201, 198, 201, 198, 1...
2.306122
49
from .kendall_w import compute_w __version__ = (1, 0, 0)
[ 6738, 764, 74, 437, 439, 62, 86, 1330, 24061, 62, 86, 198, 198, 834, 9641, 834, 796, 357, 16, 11, 657, 11, 657, 8 ]
2.375
24
from django.contrib import admin from .models import * # Register your models here. admin.site.register(ErrorGroup) admin.site.register(Error)
[ 6738, 42625, 14208, 13, 3642, 822, 1330, 13169, 198, 6738, 764, 27530, 1330, 1635, 198, 2, 17296, 534, 4981, 994, 13, 198, 28482, 13, 15654, 13, 30238, 7, 12331, 13247, 8, 198, 28482, 13, 15654, 13, 30238, 7, 12331, 8 ]
3.55
40
""" mcpython - a minecraft clone written in python licenced under the MIT-licence (https://github.com/mcpython4-coding/core) Contributors: uuk, xkcdjerry (inactive) Based on the game of fogleman (https://github.com/fogleman/Minecraft), licenced under the MIT-licence Original game "minecraft" by Mojang Studios (www.m...
[ 37811, 198, 76, 13155, 7535, 532, 257, 6164, 3323, 17271, 3194, 287, 21015, 3476, 5864, 739, 262, 17168, 12, 677, 594, 220, 198, 7, 5450, 1378, 12567, 13, 785, 14, 76, 13155, 7535, 19, 12, 66, 7656, 14, 7295, 8, 198, 198, 37146, 6...
2.715328
411
from rest_framework import serializers from .models import *
[ 6738, 1334, 62, 30604, 1330, 11389, 11341, 198, 198, 6738, 764, 27530, 1330, 1635, 628, 628, 628, 628, 628, 628, 628, 198 ]
3.454545
22
""" some math tools """
[ 37811, 617, 10688, 4899, 37227, 201, 198 ]
3.571429
7
m = int(input().strip()) ar = [int(i) for i in input().strip().split()] insertion_sort(ar) print(" ".join(map(str, ar)))
[ 198, 198, 76, 796, 493, 7, 15414, 22446, 36311, 28955, 198, 283, 796, 685, 600, 7, 72, 8, 329, 1312, 287, 5128, 22446, 36311, 22446, 35312, 3419, 60, 198, 28463, 295, 62, 30619, 7, 283, 8, 198, 4798, 7203, 27071, 22179, 7, 8899, 7...
2.510204
49
#!/usrb/bin/env python # Copyright (c) 2019, Arista Networks, Inc. # 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 copyright notice, # t...
[ 2, 48443, 14629, 65, 14, 8800, 14, 24330, 21015, 198, 2, 15069, 357, 66, 8, 13130, 11, 943, 12523, 27862, 11, 3457, 13, 198, 2, 1439, 2489, 10395, 13, 198, 2, 198, 2, 2297, 396, 3890, 290, 779, 287, 2723, 290, 13934, 5107, 11, 3...
3.209913
686
# Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. # See https://llvm.org/LICENSE.txt for license information. # SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception import copy from typing import Any import torch from torch_mlir_torchscript.e2e_test.framework import TestConfig, Tr...
[ 2, 220, 2142, 286, 262, 27140, 15996, 4935, 11, 739, 262, 24843, 13789, 410, 17, 13, 15, 351, 27140, 15996, 1475, 11755, 13, 198, 2, 220, 4091, 3740, 1378, 297, 14761, 13, 2398, 14, 43, 2149, 24290, 13, 14116, 329, 5964, 1321, 13, ...
3.169811
106
from .enums import PNHeartbeatNotificationOptions, PNReconnectionPolicy from . import utils
[ 6738, 764, 268, 5700, 1330, 350, 45, 28541, 12945, 3673, 2649, 29046, 11, 350, 45, 6690, 261, 1606, 295, 36727, 198, 6738, 764, 1330, 3384, 4487, 628 ]
3.444444
27
#!/usr/bin/env python3 # # Copyright (c) 2019, The OpenThread Authors. # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are met: # 1. Redistributions of source code must retain the above copyright # ...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 18, 198, 2, 198, 2, 220, 15069, 357, 66, 8, 13130, 11, 383, 4946, 16818, 46665, 13, 198, 2, 220, 1439, 2489, 10395, 13, 198, 2, 198, 2, 220, 2297, 396, 3890, 290, 779, 287, 2723, 290,...
3.126214
824
import cv2 import numpy as np from keras.models import model_from_json from keras.preprocessing.image import img_to_array #load model model = model_from_json(open("fer.json", "r").read()) #change the path accoring to files #load weights model.load_weights('fer.h5') #change the path accor...
[ 198, 11748, 269, 85, 17, 198, 11748, 299, 32152, 355, 45941, 198, 6738, 41927, 292, 13, 27530, 1330, 2746, 62, 6738, 62, 17752, 198, 6738, 41927, 292, 13, 3866, 36948, 13, 9060, 1330, 33705, 62, 1462, 62, 18747, 198, 198, 2, 2220, 2...
2.084806
849
age = 24 print("My age is " + str(age) + " years ") # the above procedure is tedious since we dont really want to include str for every number we encounter #Method1 Replacement Fields print("My age is {0} years ".format(age)) # {0} is the actual replacement field, number important for multiple replacement fields ...
[ 496, 796, 1987, 198, 198, 4798, 7203, 3666, 2479, 318, 366, 1343, 965, 7, 496, 8, 1343, 366, 812, 366, 8, 628, 198, 2, 262, 2029, 8771, 318, 32460, 1201, 356, 17666, 1107, 765, 284, 2291, 965, 329, 790, 1271, 356, 8791, 198, 198, ...
2.739385
683
#!/usr/bin/env python import logging from datetime import datetime logging.basicConfig(level=logging.WARNING) import os import urllib2, base64, json import dateutil.parser
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 198, 198, 11748, 18931, 198, 6738, 4818, 8079, 1330, 4818, 8079, 198, 6404, 2667, 13, 35487, 16934, 7, 5715, 28, 6404, 2667, 13, 31502, 8, 198, 198, 11748, 28686, 198, 11748, 2956, 297, 571...
2.904762
63
from typing import Optional import torch from gs_divergence import gs_div
[ 6738, 19720, 1330, 32233, 198, 11748, 28034, 198, 198, 6738, 308, 82, 62, 67, 1428, 12745, 1330, 308, 82, 62, 7146, 628 ]
3.454545
22
import argparse import helper as hp import torch import os import json parser = argparse.ArgumentParser(description = 'train.py') parser.add_argument('--data-dir', nargs = '*', action = "store", default = "./flowers/", help = "folder path for data") parser.add_argument('--save-dir', action = "store", required=True, h...
[ 11748, 1822, 29572, 198, 11748, 31904, 355, 27673, 198, 11748, 28034, 198, 11748, 28686, 198, 11748, 33918, 198, 198, 48610, 796, 1822, 29572, 13, 28100, 1713, 46677, 7, 11213, 796, 705, 27432, 13, 9078, 11537, 198, 198, 48610, 13, 2860, ...
2.989247
651
Euler0001()
[ 198, 36, 18173, 18005, 3419 ]
2.4
5
''' * Copyright (c) 2022, salesforce.com, inc. * All rights reserved. * SPDX-License-Identifier: BSD-3-Clause * For full license text, see LICENSE.txt file in the repo root or https://opensource.org/licenses/BSD-3-Clause * By Junnan Li ''' import warnings warnings.filterwarnings("ignore") from models.vit import V...
[ 7061, 6, 198, 1635, 15069, 357, 66, 8, 33160, 11, 4200, 3174, 13, 785, 11, 753, 13, 198, 1635, 1439, 2489, 10395, 13, 198, 1635, 30628, 55, 12, 34156, 12, 33234, 7483, 25, 347, 10305, 12, 18, 12, 2601, 682, 198, 1635, 1114, 1336, ...
2.21025
1,717
import numpy as np from numpy.random import randn import pytest import pandas as pd from pandas import DataFrame, Index, MultiIndex, Series import pandas._testing as tm from pandas.core.reshape.concat import concat from pandas.core.reshape.merge import merge class TestMergeMulti: def setu...
[ 11748, 299, 32152, 355, 45941, 201, 198, 6738, 299, 32152, 13, 25120, 1330, 43720, 77, 201, 198, 11748, 12972, 9288, 201, 198, 201, 198, 11748, 19798, 292, 355, 279, 67, 201, 198, 6738, 19798, 292, 1330, 6060, 19778, 11, 12901, 11, 15...
1.670956
6,373
# -*- coding: utf-8 -*- from requests import ( get, post, put ) from base import api # noqa: I100 from base.populators import ( # noqa: I100 DatasetCollectionPopulator, DatasetPopulator, wait_on )
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 6738, 7007, 1330, 357, 198, 220, 220, 220, 651, 11, 198, 220, 220, 220, 1281, 11, 198, 220, 220, 220, 1234, 198, 8, 198, 198, 6738, 2779, 1330, 40391, 220, 1303, 645...
2.34375
96
""" 0461. Hamming Distance The Hamming distance between two integers is the number of positions at which the corresponding bits are different. Given two integers x and y, calculate the Hamming distance. Note: 0 x, y < 231. Example: Input: x = 1, y = 4 Output: 2 Explanation: 1 (0 0 0 1) 4 (0 1 0 0) ...
[ 37811, 198, 3023, 5333, 13, 4345, 2229, 34600, 198, 464, 4345, 2229, 5253, 1022, 734, 37014, 318, 262, 1271, 286, 6116, 379, 543, 262, 11188, 10340, 389, 1180, 13, 198, 198, 15056, 734, 37014, 2124, 290, 331, 11, 15284, 262, 4345, 222...
3.075758
132
#! /usr/local/bin/python3 # -*- coding: UTF-8 -*- # import urllib.request import os import random # id # url # # if __name__ == '__main__': download_img()
[ 2, 0, 1220, 14629, 14, 12001, 14, 8800, 14, 29412, 18, 198, 2, 532, 9, 12, 19617, 25, 41002, 12, 23, 532, 9, 12, 198, 2, 220, 220, 220, 198, 198, 11748, 2956, 297, 571, 13, 25927, 198, 11748, 28686, 198, 11748, 4738, 198, 198, ...
2.111111
81
print('load extractor_batch') # Utility to run multiple feature extraction # diagrams over many files with multiple threats import pandas as pd import os import sys import glob from tqdm.auto import tqdm from queue import Queue from threading import Thread from datetime import datetime import time im...
[ 4798, 10786, 2220, 7925, 273, 62, 43501, 11537, 201, 198, 201, 198, 2, 34030, 284, 1057, 3294, 3895, 22236, 220, 201, 198, 2, 37067, 625, 867, 3696, 351, 3294, 7432, 201, 198, 201, 198, 11748, 19798, 292, 355, 279, 67, 201, 198, 117...
3.252174
115
from .models import Tenant def tenant(request): """ Return context variables required by apps that use django-site-multitenancy. If there is no 'tenant' attribute in the request, extract one from the request. """ if hasattr(request, 'tenant'): tenant = request.tenant else: ten...
[ 6738, 764, 27530, 1330, 9368, 415, 628, 198, 4299, 18285, 7, 25927, 2599, 198, 220, 220, 220, 37227, 198, 220, 220, 220, 8229, 4732, 9633, 2672, 416, 6725, 326, 779, 42625, 14208, 12, 15654, 12, 16680, 270, 268, 3883, 13, 628, 220, ...
2.868613
137
from django import forms from .models import Project
[ 6738, 42625, 14208, 1330, 5107, 198, 198, 6738, 764, 27530, 1330, 4935, 628 ]
4.230769
13
""" Person class """ # Create a Person class with the following properties # 1. name # 2. age # 3. social security number p1 = Person("John", 36, "111-11-1111") print(p1.name) print(p1.age) print(p1.social)
[ 37811, 198, 15439, 1398, 198, 37811, 198, 198, 2, 13610, 257, 7755, 1398, 351, 262, 1708, 6608, 198, 2, 352, 13, 1438, 198, 2, 362, 13, 2479, 198, 2, 513, 13, 1919, 2324, 1271, 628, 198, 198, 79, 16, 796, 7755, 7203, 7554, 1600, ...
2.683544
79
# copyright (c) 2018 paddlepaddle authors. all rights reserved. # # licensed under the apache license, version 2.0 (the "license"); # you may not use this file except in compliance with the license. # you may obtain a copy of the license at # # http://www.apache.org/licenses/license-2.0 # # unless required by app...
[ 2, 220, 220, 6634, 357, 66, 8, 2864, 39517, 79, 37382, 7035, 13, 477, 2489, 10395, 13, 198, 2, 198, 2, 11971, 739, 262, 2471, 4891, 5964, 11, 2196, 362, 13, 15, 357, 1169, 366, 43085, 15341, 198, 2, 345, 743, 407, 779, 428, 2393...
3.219298
570
#!/usr/bin/env python """Classes to store and manage hunt results. """ from grr.lib import rdfvalue from grr.lib import registry from grr.lib.rdfvalues import structs as rdf_structs from grr_response_proto import jobs_pb2 from grr.server import access_control from grr.server import aff4 from grr.server import data_sto...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 198, 37811, 9487, 274, 284, 3650, 290, 6687, 12601, 2482, 13, 198, 37811, 198, 198, 6738, 1036, 81, 13, 8019, 1330, 374, 7568, 8367, 198, 6738, 1036, 81, 13, 8019, 1330, 20478, 198, 6738, ...
3.062112
161
""" Module for higher level SharePoint REST api actions - utilize methods in the api.py module """ # TODO Add large file upload with chunking # https://github.com/JonathanHolvey/sharepy/issues/23
[ 37811, 198, 26796, 329, 2440, 1241, 8734, 12727, 30617, 40391, 4028, 532, 17624, 5050, 287, 262, 40391, 13, 9078, 8265, 198, 37811, 628, 198, 220, 220, 220, 1303, 16926, 46, 3060, 1588, 2393, 9516, 351, 16058, 278, 198, 220, 220, 220, ...
3.491525
59
import os import glob import shutil import yaml from IPython import embed import pytest import numpy as np from pypeit.par.util import parse_pypeit_file from pypeit.pypeitsetup import PypeItSetup from pypeit.tests.tstutils import dev_suite_required, data_path from pypeit.metadata import PypeItMetaData from pypeit.s...
[ 11748, 28686, 198, 11748, 15095, 198, 11748, 4423, 346, 198, 11748, 331, 43695, 198, 198, 6738, 6101, 7535, 1330, 11525, 198, 198, 11748, 12972, 9288, 198, 198, 11748, 299, 32152, 355, 45941, 198, 198, 6738, 279, 2981, 270, 13, 1845, 13...
3.06015
133
from copy import copy from typing import TYPE_CHECKING, Any, Dict, List, Optional, Tuple, Type, cast from pypika import Table from pypika.terms import Criterion from tortoise.exceptions import FieldError, OperationalError from tortoise.fields.relational import BackwardFKRelation, ManyToManyFieldInstance, RelationalFi...
[ 6738, 4866, 1330, 4866, 198, 6738, 19720, 1330, 41876, 62, 50084, 2751, 11, 4377, 11, 360, 713, 11, 7343, 11, 32233, 11, 309, 29291, 11, 5994, 11, 3350, 198, 198, 6738, 279, 4464, 9232, 1330, 8655, 198, 6738, 279, 4464, 9232, 13, 38...
3.439394
132
import numpy as np # Change False to True for this block of code to see what it does # NumPy axis argument if True: a = np.array([ [1, 2, 3], [4, 5, 6], [7, 8, 9] ]) print(a.sum()) print(a.sum(axis=0)) print(a.sum(axis=1)) # Subway ridership for 5 stations on 10 different...
[ 11748, 299, 32152, 355, 45941, 198, 198, 2, 9794, 10352, 284, 6407, 329, 428, 2512, 286, 2438, 284, 766, 644, 340, 857, 198, 198, 2, 31835, 20519, 16488, 4578, 198, 361, 6407, 25, 198, 220, 220, 220, 257, 796, 45941, 13, 18747, 2693...
2.333333
588
import numpy as np import pickle import os
[ 11748, 299, 32152, 355, 45941, 198, 11748, 2298, 293, 198, 11748, 28686, 198 ]
3.307692
13
import re import sys from email.message import EmailMessage
[ 11748, 302, 198, 11748, 25064, 198, 6738, 3053, 13, 20500, 1330, 9570, 12837, 198 ]
4.285714
14
from haven import haven_chk as hc from haven import haven_results as hr from haven import haven_utils as hu import torch import torchvision import tqdm import pandas as pd import pprint import itertools import os import pylab as plt import exp_configs import time import numpy as np from src import models from src impo...
[ 6738, 4398, 1330, 4398, 62, 354, 74, 355, 289, 66, 198, 6738, 4398, 1330, 4398, 62, 43420, 355, 39436, 198, 6738, 4398, 1330, 4398, 62, 26791, 355, 289, 84, 198, 11748, 28034, 198, 11748, 28034, 10178, 198, 11748, 256, 80, 36020, 198,...
2.52381
924
# coding: utf8 { '"update" is an optional expression like "field1=\'newvalue\'". You cannot update or delete the results of a JOIN': '"update" uma expresso opcional como "field1=\'newvalue\'". No possvel atualizar ou excluir os resultados de uma juno', '# of International Staff': '# De equipe internacional', '# o...
[ 2, 19617, 25, 3384, 69, 23, 201, 198, 90, 201, 198, 29653, 19119, 1, 318, 281, 11902, 5408, 588, 366, 3245, 16, 28, 43054, 3605, 8367, 43054, 1911, 921, 2314, 4296, 393, 12233, 262, 2482, 286, 257, 32357, 1268, 10354, 705, 1, 19119,...
3.007768
97,454
from .. import ba, cb, actor from ..service import account
[ 6738, 11485, 1330, 26605, 11, 269, 65, 11, 8674, 198, 6738, 11485, 15271, 1330, 1848, 628 ]
3.75
16
#%% #Calculate_capacity
[ 2, 16626, 198, 2, 9771, 3129, 378, 62, 42404, 628 ]
2.5
10
import builtins builtins.foo = 'bar' foo # foo
[ 11748, 3170, 1040, 198, 198, 18780, 1040, 13, 21943, 796, 705, 5657, 6, 198, 198, 21943, 220, 1303, 22944 ]
2.578947
19
""" Schema Validation Tests a dictionary against a schema to test for conformity. Schema definition is similar to - but not the same as - avro schemas Supported Types: - string - a character sequence - format - numeric - a number - min: - max - date - a datetime.date or...
[ 37811, 201, 198, 27054, 2611, 3254, 24765, 201, 198, 201, 198, 51, 3558, 257, 22155, 1028, 257, 32815, 284, 1332, 329, 39974, 13, 201, 198, 27054, 2611, 6770, 318, 2092, 284, 532, 475, 407, 262, 976, 355, 532, 1196, 305, 3897, 5356, ...
2.383959
1,172
from fuzzconfig import FuzzConfig import interconnect import nets import pytrellis import re jobs = [ { "pos": [(47, 0), (48, 0), (49, 0)], "cfg": FuzzConfig(job="PIOROUTEL", family="ECP5", device="LFE5U-45F", ncl="pioroute.ncl", tiles=["MIB_R47C0:PICL0", "MIB_R48C0:PICL1"...
[ 6738, 26080, 11250, 1330, 376, 4715, 16934, 198, 11748, 987, 8443, 198, 11748, 31720, 198, 11748, 12972, 83, 11252, 271, 198, 11748, 302, 198, 198, 43863, 796, 685, 198, 220, 220, 220, 1391, 198, 220, 220, 220, 220, 220, 220, 220, 366...
1.695545
808
import tensorflow as tf def _is_tensor(x): """Returns `True` if `x` is a symbolic tensor-like object. From http://github.com/tensorflow/tensorflow/blob/master/tensorflow/python/ops/image_ops_impl.py Args: x: A python object to check. Returns: `True` if `x` is a `tf.Tensor` or `tf.Va...
[ 11748, 11192, 273, 11125, 355, 48700, 628, 198, 4299, 4808, 271, 62, 83, 22854, 7, 87, 2599, 198, 220, 220, 220, 37227, 35561, 4600, 17821, 63, 611, 4600, 87, 63, 318, 257, 18975, 11192, 273, 12, 2339, 2134, 13, 628, 220, 220, 220, ...
2.356553
2,541
# BS mark.1-55 # /* coding: utf-8 */ # BlackSmith plugin # everywhere_plugin.py # Coded by: WitcherGeralt (WitcherGeralt@jabber.ru) # http://witcher-team.ucoz.ru/ command_handler(handler_everywhere, 100, "everywhere")
[ 2, 24218, 1317, 13, 16, 12, 2816, 198, 2, 11900, 19617, 25, 3384, 69, 12, 23, 9466, 198, 198, 2, 220, 2619, 17919, 13877, 198, 2, 220, 8347, 62, 33803, 13, 9078, 198, 198, 2, 327, 9043, 416, 25, 36018, 38, 1691, 83, 357, 54, 2...
2.534091
88
from utils import TreeNode
[ 6738, 3384, 4487, 1330, 12200, 19667, 628 ]
4
7
# Copyright 2020 Curtin University # # 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 writi...
[ 2, 15069, 12131, 19569, 259, 2059, 198, 2, 198, 2, 49962, 739, 262, 24843, 13789, 11, 10628, 362, 13, 15, 357, 1169, 366, 34156, 15341, 198, 2, 345, 743, 407, 779, 428, 2393, 2845, 287, 11846, 351, 262, 13789, 13, 198, 2, 921, 743...
3.669492
236
# Copyright 2016 The TensorFlow Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by...
[ 2, 15069, 1584, 383, 309, 22854, 37535, 46665, 13, 1439, 6923, 33876, 13, 201, 198, 2, 201, 198, 2, 49962, 739, 262, 24843, 13789, 11, 10628, 362, 13, 15, 357, 1169, 366, 34156, 15341, 201, 198, 2, 345, 743, 407, 779, 428, 2393, 2...
3.554054
444
# @Author: Manuel Rodriguez <valle> # @Date: 10-May-2017 # @Email: valle.mrv@gmail.com # @Last modified by: valle # @Last modified time: 23-Feb-2018 # @License: Apache license vesion 2.0 from kivy.uix.modalview import ModalView from kivy.uix.button import Button from kivy.properties import ObjectProperty, String...
[ 2, 2488, 13838, 25, 25995, 19391, 1279, 2100, 293, 29, 198, 2, 2488, 10430, 25, 220, 220, 838, 12, 6747, 12, 5539, 198, 2, 2488, 15333, 25, 220, 1188, 293, 13, 43395, 85, 31, 14816, 13, 785, 198, 2, 2488, 5956, 9518, 416, 25, 22...
2.823129
147
""" The foo integration instruments the bar and baz features of the foo library. Enabling ~~~~~~~~ The foo integration is enabled automatically when using :ref:`ddtrace-run <ddtracerun>` or :ref:`patch_all() <patch_all>`. Or use :ref:`patch() <patch>` to manually enable the integration:: from ddtrace import pa...
[ 37811, 198, 464, 22944, 11812, 12834, 262, 2318, 290, 275, 1031, 3033, 286, 262, 198, 21943, 5888, 13, 628, 198, 4834, 11716, 198, 15116, 198, 198, 464, 22944, 11812, 318, 9343, 6338, 618, 1262, 198, 25, 5420, 25, 63, 1860, 40546, 12,...
3.242775
346
from subprocess import check_output, CalledProcessError from ast import literal_eval from time import sleep from helpers import setup_logger logger = setup_logger(__name__, "warning") current_interface = None #wpa_cli related functions and objects #wpa_cli command wrappers and their helpers def connect_new_networ...
[ 6738, 850, 14681, 1330, 2198, 62, 22915, 11, 34099, 18709, 12331, 198, 6738, 6468, 1330, 18875, 62, 18206, 198, 6738, 640, 1330, 3993, 198, 198, 6738, 49385, 1330, 9058, 62, 6404, 1362, 198, 198, 6404, 1362, 796, 9058, 62, 6404, 1362, ...
2.616906
556
#!/usr/bin/env python from __future__ import with_statement import sys, traceback, os, os.path import xml.dom.minidom import logging if __name__ == "__main__": with Browser() as browser: if browser.parseCmdLine(): browser.runShell()
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 201, 198, 6738, 11593, 37443, 834, 1330, 351, 62, 26090, 201, 198, 201, 198, 11748, 25064, 11, 12854, 1891, 11, 28686, 11, 28686, 13, 6978, 201, 198, 11748, 35555, 13, 3438, 13, 1084, 312, ...
2.472727
110
from __future__ import division import fitsio """ A FITS file is comprised of segments called Header/Data Units (HDUs), where the first HDU is called the 'Primary HDU', or 'Primary Array'. The primary data array can contain a 1-999 dimensional array of 1, 2 or 4 byte integers or 4 or 8 byte floating point numbers usi...
[ 6738, 11593, 37443, 834, 1330, 7297, 198, 198, 11748, 11414, 952, 198, 198, 37811, 198, 32, 376, 29722, 2393, 318, 19869, 286, 17894, 1444, 48900, 14, 6601, 27719, 357, 10227, 5842, 828, 810, 262, 717, 198, 10227, 52, 318, 1444, 262, ...
3.223893
1,197
#!/usr/bin/env python3 # Copyright 2021 The Emscripten Authors. All rights reserved. # Emscripten is available under two separate licenses, the MIT license and the # University of Illinois/NCSA Open Source License. Both these licenses can be # found in the LICENSE file. """Simple script for updating musl from extern...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 18, 198, 2, 15069, 33448, 383, 412, 907, 6519, 268, 46665, 13, 220, 1439, 2489, 10395, 13, 198, 2, 412, 907, 6519, 268, 318, 1695, 739, 734, 4553, 16625, 11, 262, 17168, 5964, 290, 262, ...
3.01087
460
from __future__ import absolute_import, division, print_function, unicode_literals import logging # Used in the exec() call below. from scout_apm.core.monkey import monkeypatch_method, unpatch_method # noqa: F401 from scout_apm.core.tracked_request import TrackedRequest # noqa: F401 logger = logging.getLogger(__na...
[ 6738, 11593, 37443, 834, 1330, 4112, 62, 11748, 11, 7297, 11, 3601, 62, 8818, 11, 28000, 1098, 62, 17201, 874, 198, 198, 11748, 18931, 198, 198, 2, 16718, 287, 262, 2452, 3419, 869, 2174, 13, 198, 6738, 24490, 62, 499, 76, 13, 7295,...
3.205882
102
import random from typing import Optional import factory from common.tests import factories from measures.sheet_importers import MeasureSheetRow
[ 11748, 4738, 198, 6738, 19720, 1330, 32233, 198, 198, 11748, 8860, 198, 198, 6738, 2219, 13, 41989, 1330, 17590, 198, 6738, 5260, 13, 21760, 62, 320, 1819, 1010, 1330, 24291, 3347, 316, 25166, 628 ]
4.352941
34
from abc import ABC, abstractmethod import collections import pandas as pd from autoscalingsim.utils.error_check import ErrorChecker from .correlators import *
[ 6738, 450, 66, 1330, 9738, 11, 12531, 24396, 198, 11748, 17268, 198, 11748, 19798, 292, 355, 279, 67, 198, 198, 6738, 44619, 9948, 654, 320, 13, 26791, 13, 18224, 62, 9122, 1330, 13047, 9787, 263, 198, 198, 6738, 764, 10215, 2411, 202...
3.6
45
import sys import logging from seglossbias.utils import mkdir, setup_logging from seglossbias.engine import default_argument_parser, load_config, DefaultTester logger = logging.getLogger(__name__) if __name__ == "__main__": main()
[ 11748, 25064, 198, 11748, 18931, 198, 198, 6738, 384, 4743, 793, 65, 4448, 13, 26791, 1330, 33480, 15908, 11, 9058, 62, 6404, 2667, 198, 6738, 384, 4743, 793, 65, 4448, 13, 18392, 1330, 4277, 62, 49140, 62, 48610, 11, 3440, 62, 11250,...
2.975309
81
# -*- coding: utf-8 -*- from ..tre_elements import TREExtension, TREElement __classification__ = "UNCLASSIFIED" __author__ = "Thomas McCullough"
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 198, 6738, 11485, 33945, 62, 68, 3639, 1330, 309, 11587, 742, 3004, 11, 309, 11587, 1732, 198, 198, 834, 4871, 2649, 834, 796, 366, 4944, 45449, 1, 198, 834, 9800, 834...
2.796296
54
from jp_doodle import doodle_files qf_js = doodle_files.vendor_path("js/quantity_forest.js") from jp_doodle import dual_canvas import jp_proxy_widget import os from subprocess import check_output import pprint if bytes != str: unicode = str RIGHT = {"x": 1, "y":0} UP = {"x": 0, "y":1}
[ 6738, 474, 79, 62, 67, 27106, 1330, 466, 375, 293, 62, 16624, 198, 80, 69, 62, 8457, 796, 466, 375, 293, 62, 16624, 13, 85, 18738, 62, 6978, 7203, 8457, 14, 40972, 414, 62, 29623, 13, 8457, 4943, 198, 6738, 474, 79, 62, 67, 2710...
2.495726
117
#!/usr/bin/env python # -*- coding:utf-8 -*- """================================================================= @Project : Algorithm_YuweiYin/LeetCode-All-Solution/Python3 @File : LC-0035-Search-Insert-Position.py @Author : [YuweiYin](https://github.com/YuweiYin) @Date : 2022-01-01 ============================...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 198, 2, 532, 9, 12, 19617, 25, 40477, 12, 23, 532, 9, 12, 198, 37811, 23926, 28, 198, 31, 16775, 1058, 978, 42289, 62, 40728, 42990, 56, 259, 14, 3123, 316, 10669, 12, 3237, 12, 46344, ...
2.918072
415
import requests url = 'https://64.103.26.61/api/contextaware/v1/maps/info/DevNetCampus/DevNetBuilding/DevNetZone' headers = {'Authorization': 'Basic bGVhcm5pbmc6bGVhcm5pbmc=='} response = requests.get(url, headers=headers, verify=False) responseString = response.text print(responseString)
[ 11748, 7007, 198, 6371, 796, 705, 5450, 1378, 2414, 13, 15197, 13, 2075, 13, 5333, 14, 15042, 14, 22866, 9685, 14, 85, 16, 14, 31803, 14, 10951, 14, 13603, 7934, 21111, 385, 14, 13603, 7934, 25954, 14, 13603, 7934, 26961, 6, 198, 50...
2.843137
102
import lldb from lldbsuite.test.decorators import * import lldbsuite.test.lldbtest as lldbtest import lldbsuite.test.lldbutil as lldbutil import os import unittest2
[ 11748, 32660, 9945, 198, 6738, 32660, 67, 1443, 84, 578, 13, 9288, 13, 12501, 273, 2024, 1330, 1635, 198, 11748, 32660, 67, 1443, 84, 578, 13, 9288, 13, 297, 9945, 9288, 355, 32660, 9945, 9288, 198, 11748, 32660, 67, 1443, 84, 578, ...
2.59375
64
#Copyright 2017 Tim Wentlau. #Distributed under the MIT License. See LICENSE in root of project.
[ 2, 15269, 2177, 5045, 29866, 75, 559, 13, 198, 2, 20344, 6169, 739, 262, 17168, 13789, 13, 4091, 38559, 24290, 287, 6808, 286, 1628, 13 ]
3.84
25
""" Code for wrapping the motion primitive action in an object. """ from __future__ import division from __future__ import absolute_import import attr import numpy as np from bc_gym_planning_env.utilities.serialize import Serializable
[ 37811, 6127, 329, 27074, 262, 6268, 20049, 2223, 287, 281, 2134, 13, 37227, 198, 6738, 11593, 37443, 834, 1330, 7297, 198, 6738, 11593, 37443, 834, 1330, 4112, 62, 11748, 198, 198, 11748, 708, 81, 198, 11748, 299, 32152, 355, 45941, 198...
3.83871
62
import matplotlib.pyplot as plt import pandas as pd import math import numpy as np from scipy import stats import seaborn as sns data = pd.read_csv("data/500-4.txt", sep="\t") # example1 = data[data["SIM_TIME"] == 500] simulations = 500 simtimes = [5, 50, 150, 500, 1000] # for i in [1, 2, 4]: # data = pd.read_c...
[ 11748, 2603, 29487, 8019, 13, 9078, 29487, 355, 458, 83, 198, 11748, 19798, 292, 355, 279, 67, 198, 11748, 10688, 198, 11748, 299, 32152, 355, 45941, 198, 6738, 629, 541, 88, 1330, 9756, 198, 11748, 384, 397, 1211, 355, 3013, 82, 198,...
2.247286
829
n = int(input()) conf_set = [] for _ in range(n): conf_set.append(tuple(map(int, input().split()))) conf_set.sort(key=lambda x : (x[1], x[0])) # # , solution_list = [conf_set[0]] # Greedy Algorithm for conf in conf_set[1:]: last_conf = solution_list[-1] _, last_end_time = last_conf n...
[ 77, 796, 493, 7, 15414, 28955, 198, 198, 10414, 62, 2617, 796, 17635, 198, 198, 1640, 4808, 287, 2837, 7, 77, 2599, 198, 220, 220, 220, 1013, 62, 2617, 13, 33295, 7, 83, 29291, 7, 8899, 7, 600, 11, 5128, 22446, 35312, 3419, 22305,...
2.087336
229
import web from social_core.actions import do_auth, do_complete, do_disconnect from .utils import psa, load_strategy, load_strategy urls = ( r'/login/(?P<backend>[^/]+)/?', 'auth', r'/complete/(?P<backend>[^/]+)/?', 'complete', r'/disconnect/(?P<backend>[^/]+)/?', 'disconnect', r'/disconnect/(?P<bac...
[ 11748, 3992, 198, 198, 6738, 1919, 62, 7295, 13, 4658, 1330, 466, 62, 18439, 11, 466, 62, 20751, 11, 466, 62, 6381, 8443, 198, 198, 6738, 764, 26791, 1330, 279, 11400, 11, 3440, 62, 2536, 4338, 11, 3440, 62, 2536, 4338, 628, 198, ...
2.426136
176
import os import logging import yaml from schema import Use, Schema, SchemaError, Optional default_config = { 'logging': 30, 'migrate_from_0_3_2': True } schema = Schema({ 'stellar_url': Use(str), 'url': Use(str), 'project_name': Use(str), 'tracked_databases': [Use(str)], Optional('loggi...
[ 11748, 28686, 198, 11748, 18931, 198, 11748, 331, 43695, 198, 6738, 32815, 1330, 5765, 11, 10011, 2611, 11, 10011, 2611, 12331, 11, 32233, 628, 628, 198, 12286, 62, 11250, 796, 1391, 198, 220, 220, 220, 705, 6404, 2667, 10354, 1542, 11,...
2.423077
156
#!/usr/bin/env python3 # Copyright 2021 Carnegie Mellon University (Peter Wu) # Apache 2.0 (http://www.apache.org/licenses/LICENSE-2.0) import argparse import os import random if __name__ == "__main__": parser = argparse.ArgumentParser() parser.add_argument("-d", help="downloads directory", type=str, def...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 18, 198, 198, 2, 15069, 33448, 33976, 49808, 2059, 357, 19727, 18027, 8, 198, 2, 220, 24843, 362, 13, 15, 220, 357, 4023, 1378, 2503, 13, 43073, 13, 2398, 14, 677, 4541, 14, 43, 2149, 2...
1.784573
1,815
# -*- coding: utf-8 -*- """ This module will hold a class that will be referenced when processing features. I'd like to move things from "config" into here ... - @JimHokanson """ from __future__ import division from .. import utils #Can't do this, would be circular #from .worm_features import WormFeatures ...
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 37811, 198, 1212, 8265, 481, 1745, 257, 1398, 326, 481, 307, 20717, 618, 7587, 3033, 13, 198, 198, 40, 1549, 588, 284, 1445, 1243, 422, 366, 11250, 1, 656, 994, 2644, ...
2.432258
155
#from .sync_external_routes import SyncExternalRoutes #from .sync_network_slivers import SyncNetworkSlivers #from .sync_networks import SyncNetworks #from .sync_network_deployments import SyncNetworkDeployments #from .sync_site_privileges import SyncSitePrivilege #from .sync_slice_memberships import SyncSliceMembership...
[ 2, 6738, 764, 27261, 62, 22615, 62, 81, 448, 274, 1330, 35908, 41506, 49, 448, 274, 198, 2, 6738, 764, 27261, 62, 27349, 62, 6649, 1191, 1330, 35908, 26245, 11122, 1191, 198, 2, 6738, 764, 27261, 62, 3262, 5225, 1330, 35908, 7934, 5...
3.302083
192
import geojson import pytest from napari_geojson import write_shapes ellipse = [[[0, 0], [0, 5], [5, 5], [5, 0]], "ellipse", "Polygon"] line = [[[0, 0], [5, 5]], "line", "LineString"] polygon = [[[0, 0], [5, 5], [0, 10]], "polygon", "Polygon"] polyline = [[[0, 0], [5, 5], [0, 10]], "path", "LineString"] rectangle = [...
[ 11748, 4903, 13210, 1559, 198, 11748, 12972, 9288, 198, 198, 6738, 25422, 2743, 62, 469, 13210, 1559, 1330, 3551, 62, 1477, 7916, 198, 198, 695, 541, 325, 796, 16410, 58, 15, 11, 657, 4357, 685, 15, 11, 642, 4357, 685, 20, 11, 642, ...
2.32287
223
#!/usr/bin/env python3 from collections import defaultdict import numpy as np from pgmpy.base import UndirectedGraph from pgmpy.factors import factor_product
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 18, 198, 198, 6738, 17268, 1330, 4277, 11600, 198, 198, 11748, 299, 32152, 355, 45941, 198, 198, 6738, 23241, 3149, 88, 13, 8692, 1330, 13794, 1060, 276, 37065, 198, 6738, 23241, 3149, 88, ...
3.306122
49
from PySide6.QtWidgets import QListWidgetItem from yapsy.IPlugin import IPlugin
[ 6738, 9485, 24819, 21, 13, 48, 83, 54, 312, 11407, 1330, 1195, 8053, 38300, 7449, 201, 198, 201, 198, 6738, 331, 1686, 88, 13, 40, 37233, 1330, 314, 37233, 201, 198, 201, 198 ]
2.606061
33
"""Helpers for the Broadlink remote.""" from base64 import b64decode from homeassistant.helpers import config_validation as cv def decode_packet(value): """Decode a data packet given for a Broadlink remote.""" value = cv.string(value) extra = len(value) % 4 if extra > 0: value = value + ("=" ...
[ 37811, 12621, 19276, 329, 262, 9765, 8726, 6569, 526, 15931, 198, 198, 6738, 2779, 2414, 1330, 275, 2414, 12501, 1098, 198, 198, 6738, 1363, 562, 10167, 13, 16794, 364, 1330, 4566, 62, 12102, 341, 355, 269, 85, 198, 198, 4299, 36899, ...
2.700565
177
#!/usr/bin/python # -*- coding: utf-8 -*- # Author: illuz <iilluzen[at]gmail.com> # File: AC_dp_n2.py # Create Date: 2015-04-21 10:21:18 # Usage: AC_dp_n2.py # Descripton: # debug s = Solution() print s.wordBreak('a', ['a'])
[ 2, 48443, 14629, 14, 8800, 14, 29412, 198, 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 2, 6434, 25, 220, 220, 220, 220, 220, 2801, 10277, 1279, 72, 359, 84, 4801, 58, 265, 60, 14816, 13, 785, 29, 198, 2, 922...
1.9375
128
import os, inspect currentdir = os.path.dirname(os.path.abspath(inspect.getfile(inspect.currentframe()))) parentdir = os.path.dirname(os.path.dirname(currentdir)) os.sys.path.insert(0,parentdir) import math import gym from gym import spaces from gym.utils import seeding import numpy as np import time import pybullet...
[ 11748, 28686, 11, 220, 10104, 198, 14421, 15908, 796, 28686, 13, 6978, 13, 15908, 3672, 7, 418, 13, 6978, 13, 397, 2777, 776, 7, 1040, 806, 13, 1136, 7753, 7, 1040, 806, 13, 14421, 14535, 3419, 22305, 198, 8000, 15908, 796, 28686, 1...
2.944444
162
# ------------------------------------------------------------------------------------------ # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License (MIT). See LICENSE in the repo root for license information. # -------------------------------------------------------------------...
[ 2, 220, 16529, 22369, 438, 198, 2, 220, 15069, 357, 66, 8, 5413, 10501, 13, 1439, 2489, 10395, 13, 198, 2, 220, 49962, 739, 262, 17168, 13789, 357, 36393, 737, 4091, 38559, 24290, 287, 262, 29924, 6808, 329, 5964, 1321, 13, 198, 2, ...
2.635876
2,425
from math import pi from numpy import array, ndarray, divide, sqrt, argsort, sort, diag, trace from numpy.linalg import eig, norm if __name__ == "__main__": hf = HartreeFock(4) hf.run(2000)
[ 6738, 10688, 1330, 31028, 201, 198, 6738, 299, 32152, 1330, 7177, 11, 299, 67, 18747, 11, 14083, 11, 19862, 17034, 11, 26498, 419, 11, 3297, 11, 2566, 363, 11, 12854, 201, 198, 6738, 299, 32152, 13, 75, 1292, 70, 1330, 304, 328, 11,...
2.367816
87
# -*- coding:utf-8 -*- from uiObject import uiObject # main if __name__ == '__main__': ui = uiObject() ui.ui_process()
[ 2, 532, 9, 12, 19617, 25, 40477, 12, 23, 532, 9, 12, 628, 198, 6738, 334, 72, 10267, 1330, 334, 72, 10267, 198, 198, 2, 1388, 198, 361, 11593, 3672, 834, 6624, 705, 834, 12417, 834, 10354, 628, 220, 220, 220, 334, 72, 796, 334, ...
2.20339
59
from django.db import models from cloudinary.models import CloudinaryField # Create your models here.
[ 6738, 42625, 14208, 13, 9945, 1330, 4981, 198, 6738, 6279, 3219, 13, 27530, 1330, 10130, 3219, 15878, 198, 198, 2, 13610, 534, 4981, 994, 13 ]
4.08
25
import requests import json # import related models here from .models import CarDealer, DealerReview from requests.auth import HTTPBasicAuth import logging logger = logging.getLogger(__name__) # Create a `get_request` to make HTTP GET requests # e.g., response = requests.get(url, params=params, headers={'Content-Type...
[ 11748, 7007, 198, 11748, 33918, 198, 2, 1330, 3519, 4981, 994, 198, 6738, 764, 27530, 1330, 1879, 45776, 263, 11, 44480, 14832, 198, 6738, 7007, 13, 18439, 1330, 14626, 26416, 30515, 198, 11748, 18931, 198, 198, 6404, 1362, 796, 18931, ...
3.191882
271
import logging from configparser import ConfigParser from sdk.data_uploader import DataUploader logging.basicConfig(level=logging.INFO) log = logging.getLogger() config = ConfigParser() config.read("config.ini") ##### # Datasets to be added to metadata API datasetData = { "title": "Test", "description": "Tes...
[ 11748, 18931, 198, 6738, 4566, 48610, 1330, 17056, 46677, 198, 6738, 264, 34388, 13, 7890, 62, 25850, 263, 1330, 6060, 41592, 263, 198, 198, 6404, 2667, 13, 35487, 16934, 7, 5715, 28, 6404, 2667, 13, 10778, 8, 198, 6404, 796, 18931, 1...
2.601023
782
from mahjong.hand_calculating.hand import HandCalculator from mahjong.meld import Meld from mahjong.hand_calculating.hand_config import HandConfig, OptionalRules from mahjong.shanten import Shanten from mahjong.tile import TilesConverter calculator = HandCalculator() # useful helper ###############################...
[ 6738, 42768, 32428, 13, 4993, 62, 9948, 3129, 803, 13, 4993, 1330, 7157, 9771, 3129, 1352, 198, 6738, 42768, 32428, 13, 1326, 335, 1330, 2185, 335, 198, 6738, 42768, 32428, 13, 4993, 62, 9948, 3129, 803, 13, 4993, 62, 11250, 1330, 715...
2.821489
1,182
from ..base.mounter import MounterMixin, execute_mount
[ 6738, 11485, 8692, 13, 76, 6828, 1330, 337, 6828, 35608, 259, 11, 12260, 62, 14948, 198 ]
3.4375
16
# coding=utf-8 # *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** import warnings import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union, overload from .. import...
[ 2, 19617, 28, 40477, 12, 23, 198, 2, 17202, 39410, 25, 428, 2393, 373, 7560, 416, 262, 21624, 12994, 24118, 687, 10290, 357, 27110, 5235, 8, 16984, 13, 17202, 198, 2, 17202, 2141, 407, 4370, 416, 1021, 4556, 345, 821, 1728, 345, 760...
2.805582
1,039
from setuptools import setup from setuptools.command.install import install setup( name='xmediusmailrelayserver', version='1.0.0', description='The Python module to be used to relay mail to different servers depending on patterns', long_description='See https://github.com/xmedius/xmedius-mailrelayserve...
[ 6738, 900, 37623, 10141, 1330, 9058, 198, 6738, 900, 37623, 10141, 13, 21812, 13, 17350, 1330, 2721, 198, 198, 40406, 7, 198, 220, 220, 220, 1438, 11639, 87, 2379, 385, 4529, 2411, 592, 18497, 3256, 198, 220, 220, 220, 2196, 11639, 16...
2.755627
311
# 143. # LL0L1Ln-1Ln # L0LnL1Ln-1L2Ln-2 # # 1: # 1->2->3->4, 1->4->2->3. # 2: # 1->2->3->4->5, 1->5->2->4->3. # Definition for singly-linked list. # class ListNode: # def __init__(self, x): # self.val = x # self.next = None # Definition for singly-linked list. ...
[ 2, 24356, 13, 220, 201, 198, 2, 220, 27140, 15, 43, 16, 43, 77, 12, 16, 43, 77, 220, 201, 198, 2, 220, 406, 15, 43, 77, 43, 16, 43, 77, 12, 16, 43, 17, 43, 77, 12, 17, 201, 198, 201, 198, 2, 220, 201, 198, 201, 198, 2,...
1.738372
344
#!/usr/bin/env python from CraftProtocol.NBT.NBTBase import NBTBase from CraftProtocol.NBT.NBTProvider import NBTProvider from CraftProtocol.StreamIO import StreamIO
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 198, 198, 6738, 15745, 19703, 4668, 13, 45, 19313, 13, 45, 19313, 14881, 1330, 399, 19313, 14881, 198, 6738, 15745, 19703, 4668, 13, 45, 19313, 13, 45, 19313, 29495, 1330, 399, 19313, 29495, ...
3.169811
53
# This program was generated by "Generative Art Synthesizer" # Generation date: 2021-11-28 09:21:40 UTC # GAS change date: 2021-11-28 09:20:21 UTC # GAS md5 hash: ad55481e87ca5a7e9a8e92cd336d1cad # Python version: 3.7.9 (tags/v3.7.9:13c94747c7, Aug 17 2020, 18:58:18) [MSC v.1900 64 bit (AMD64)] # For more informat...
[ 2, 770, 1430, 373, 7560, 416, 366, 8645, 876, 3683, 26375, 956, 7509, 1, 220, 198, 2, 16588, 3128, 25, 33448, 12, 1157, 12, 2078, 7769, 25, 2481, 25, 1821, 18119, 220, 198, 2, 402, 1921, 1487, 3128, 25, 33448, 12, 1157, 12, 2078, ...
2.092424
11,285
#!/usr/bin/env python """Get vocabulary coutings from transformed corpora samples.""" from onmt.utils.logging import init_logger from onmt.utils.misc import set_random_seed, check_path from onmt.utils.parse import ArgumentParser from onmt.opts import dynamic_prepare_opts from onmt.inputters.corpus import build_vocab fr...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 198, 37811, 3855, 25818, 42304, 654, 422, 14434, 3990, 64, 8405, 526, 15931, 198, 6738, 319, 16762, 13, 26791, 13, 6404, 2667, 1330, 2315, 62, 6404, 1362, 198, 6738, 319, 16762, 13, 26791, ...
2.486352
806
import numpy as np import pandas as pd from schools3.ml.experiments.models_experiment import ModelsExperiment from schools3.data.base.cohort import Cohort from schools3.config import main_config from schools3.config import global_config from schools3.data.datasets.dataset import Dataset from schools3.ml.experiments.fea...
[ 11748, 299, 32152, 355, 45941, 198, 11748, 19798, 292, 355, 279, 67, 198, 6738, 4266, 18, 13, 4029, 13, 23100, 6800, 13, 27530, 62, 23100, 3681, 1330, 32329, 20468, 3681, 198, 6738, 4266, 18, 13, 7890, 13, 8692, 13, 1073, 71, 419, 1...
3.64898
245