content
stringlengths
1
1.05M
input_ids
listlengths
1
883k
ratio_char_token
float64
1
22.9
token_count
int64
1
883k
import logging from common.licenses import get_license_info from common.loader import provider_details as prov from common.requester import DelayedRequester from common.storage.image import ImageStore logging.basicConfig( format="%(asctime)s - %(name)s - %(levelname)s: %(message)s", level=logging.INFO ) logger ...
[ 11748, 18931, 198, 198, 6738, 2219, 13, 677, 4541, 1330, 651, 62, 43085, 62, 10951, 198, 6738, 2219, 13, 29356, 1330, 10131, 62, 36604, 355, 899, 198, 6738, 2219, 13, 8897, 7834, 1330, 4216, 16548, 16844, 7834, 198, 6738, 2219, 13, 35...
2.445652
460
# tape variables TS_MAX=1000 # the digital tape model
[ 2, 9154, 9633, 198, 4694, 62, 22921, 28, 12825, 198, 198, 2, 262, 4875, 9154, 2746, 628, 198 ]
3.166667
18
import json # Output must be returned in the format mentioned below: # https://docs.aws.amazon.com/apigateway/latest/developerguide/set-up-lambda-proxy-integrations.html#api-gateway-simple-proxy-for-lambda-output-format lambda_response = { "isBase64Encoded": False, "statusCode": 200, "headers": { ...
[ 11748, 33918, 628, 198, 2, 25235, 1276, 307, 4504, 287, 262, 5794, 4750, 2174, 25, 198, 2, 220, 220, 3740, 1378, 31628, 13, 8356, 13, 33103, 13, 785, 14, 499, 10055, 1014, 14, 42861, 14, 16244, 263, 41311, 14, 2617, 12, 929, 12, 5...
2.604938
162
import pygame import time import numpy as np import sys gray = (150, 150, 150) white = (255, 255, 255) black = (0, 0, 0, ) red_block = (255, 0, 0) red_border = (76, 0, 19) block_color = (255, 128, 0) border_color = (165,42,42) screen = None SIDE = 50 BORDER = 5 MARGIN = 5 LINE = 1 h_switch = True ## Render fun...
[ 11748, 12972, 6057, 198, 11748, 640, 198, 11748, 299, 32152, 355, 45941, 198, 11748, 25064, 198, 198, 44605, 796, 220, 357, 8628, 11, 6640, 11, 6640, 8, 198, 11186, 796, 357, 13381, 11, 14280, 11, 14280, 8, 198, 13424, 796, 357, 15, ...
2.425837
209
# API from pyramid.scaffolds import PyramidTemplate import os import re import logging
[ 2, 7824, 198, 6738, 27944, 13, 1416, 2001, 10119, 1330, 41450, 30800, 198, 11748, 28686, 198, 11748, 302, 198, 11748, 18931, 628, 628, 628, 628, 628 ]
3.692308
26
# -*- coding: utf-8 -*- """Test GUI component.""" #------------------------------------------------------------------------------ # Imports #------------------------------------------------------------------------------ #from contextlib import contextmanager from pytest import yield_fixture, fixture, raises import ...
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 198, 37811, 14402, 25757, 7515, 526, 15931, 198, 198, 2, 10097, 26171, 198, 2, 1846, 3742, 198, 2, 10097, 26171, 198, 198, 2, 6738, 4732, 8019, 1330, 4732, 37153, 198, ...
2.900637
1,570
# # CommandManager.py # Botpy # # Created by Ashish Ahuja on 4th September 2017. # # import threading import chatexchange as ce
[ 2, 198, 2, 9455, 13511, 13, 9078, 198, 2, 18579, 9078, 198, 2, 198, 2, 15622, 416, 7844, 680, 7900, 84, 6592, 319, 604, 400, 2693, 2177, 13, 198, 2, 198, 2, 198, 198, 11748, 4704, 278, 198, 11748, 442, 378, 87, 3803, 355, 2906, ...
2.804348
46
import os import glob subdirs = glob.glob("tests/periodicities/*"); subdirs = ['tests/periodicities/Month', 'tests/periodicities/Minute', 'tests/periodicities/Week', 'tests/periodicities/Business_Hour', 'tests/periodicities/Business_Day', 'tests/periodicities/Seco...
[ 11748, 28686, 198, 11748, 15095, 198, 198, 7266, 15908, 82, 796, 15095, 13, 4743, 672, 7203, 41989, 14, 41007, 291, 871, 15211, 15341, 198, 7266, 15908, 82, 796, 37250, 41989, 14, 41007, 291, 871, 14, 31948, 3256, 198, 220, 220, 220, ...
2.216846
558
# # Copyright (C) 2018 Neal Digre. # # This software may be modified and distributed under the terms # of the MIT license. See the LICENSE file for details. # # # Portions of this module are copied or lightly modified from the # Tensor2Tensor registry_test module, so here is their license: # # Copyright 2018 The Tensor...
[ 2, 198, 2, 15069, 357, 34, 8, 2864, 29189, 7367, 260, 13, 198, 2, 198, 2, 770, 3788, 743, 307, 9518, 290, 9387, 739, 262, 2846, 198, 2, 286, 262, 17168, 5964, 13, 4091, 262, 38559, 24290, 2393, 329, 3307, 13, 198, 2, 198, 2, 1...
3.404639
388
"""empty message Revision ID: 8f7565cf50c1 Revises: 872760122cc9, 8652bf9c03ff Create Date: 2020-10-02 11:11:49.823678 """ from alembic import op import sqlalchemy as sa # revision identifiers, used by Alembic. revision = '8f7565cf50c1' down_revision = ('872760122cc9', '8652bf9c03ff') branch_labels = None depends_o...
[ 37811, 28920, 3275, 198, 198, 18009, 1166, 4522, 25, 807, 69, 2425, 2996, 12993, 1120, 66, 16, 198, 18009, 2696, 25, 10083, 27988, 486, 1828, 535, 24, 11, 807, 43193, 19881, 24, 66, 3070, 487, 198, 16447, 7536, 25, 12131, 12, 940, 1...
2.433824
136
# Copyright 2017 MDSLAB - University of Messina # 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 # # U...
[ 2, 15069, 2177, 337, 5258, 48780, 532, 2059, 286, 10626, 1437, 198, 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, 22...
2.31207
1,599
#!/usr/bin/env python3 import argparse import logging import sys import numpy as np import util if __name__ == '__main__': main()
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 18, 198, 198, 11748, 1822, 29572, 198, 11748, 18931, 198, 11748, 25064, 198, 198, 11748, 299, 32152, 355, 45941, 198, 198, 11748, 7736, 628, 628, 198, 361, 11593, 3672, 834, 6624, 705, 834, ...
2.764706
51
# The MIT License (MIT) # Copyright (c) 2021 by the xcube development team and contributors # # 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...
[ 2, 383, 17168, 13789, 357, 36393, 8, 198, 2, 15069, 357, 66, 8, 33448, 416, 262, 2124, 40296, 2478, 1074, 290, 20420, 198, 2, 198, 2, 2448, 3411, 318, 29376, 7520, 11, 1479, 286, 3877, 11, 284, 597, 1048, 16727, 257, 4866, 286, 19...
3.841935
310
"""Simulation logs""" from __future__ import annotations # default once 3.10 import sys from enum import Enum from typing import Type, TYPE_CHECKING if TYPE_CHECKING: from core.timeline import Timeline
[ 37811, 8890, 1741, 17259, 37811, 198, 6738, 11593, 37443, 834, 1330, 37647, 220, 1303, 4277, 1752, 513, 13, 940, 198, 11748, 25064, 198, 6738, 33829, 1330, 2039, 388, 198, 6738, 19720, 1330, 5994, 11, 41876, 62, 50084, 2751, 198, 198, 3...
3.533333
60
# # # # Copyright 2015 Quantopian, Inc. # # # # 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 la...
[ 2, 1303, 198, 2, 1303, 15069, 1853, 16972, 37548, 11, 3457, 13, 198, 2, 1303, 198, 2, 1303, 49962, 739, 262, 24843, 13789, 11, 10628, 362, 13, 15, 357, 1169, 366, 34156, 15341, 198, 2, 1303, 345, 743, 407, 779, 428, 2393, 2845, 28...
2.554348
1,472
# Copyright (C) 2020. Huawei Technologies Co., Ltd. All rights reserved. # # 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 us...
[ 2, 15069, 357, 34, 8, 12131, 13, 43208, 21852, 1766, 1539, 12052, 13, 1439, 2489, 10395, 13, 198, 2, 198, 2, 2448, 3411, 318, 29376, 7520, 11, 1479, 286, 3877, 11, 284, 597, 1048, 16727, 257, 4866, 198, 2, 286, 428, 3788, 290, 391...
3.225443
621
import sqlite3 connect = sqlite3.connect("production.db") cursor = connect.cursor() cursor.execute("UPDATE PERSON SET edad = 19 WHERE nombre = 'Conker'") connect.commit() connect.close()
[ 11748, 44161, 578, 18, 201, 198, 201, 198, 8443, 796, 44161, 578, 18, 13, 8443, 7203, 25493, 13, 9945, 4943, 201, 198, 66, 21471, 796, 2018, 13, 66, 21471, 3419, 201, 198, 66, 21471, 13, 41049, 7203, 16977, 46740, 25823, 1225, 324, ...
2.867647
68
import pygame from StringIO import StringIO import cv2 import os import numpy
[ 11748, 12972, 6057, 198, 6738, 10903, 9399, 1330, 10903, 9399, 198, 11748, 269, 85, 17, 198, 11748, 28686, 198, 11748, 299, 32152, 628 ]
3.434783
23
import binascii from os import urandom import humanize from django.conf import settings from django.db import models from django.utils import timezone from django.utils.translation import ugettext_lazy as _ from durin.settings import durin_settings from durin.signals import token_renewed User = settings.AUTH_USER_MO...
[ 11748, 9874, 292, 979, 72, 198, 6738, 28686, 1330, 2956, 3749, 198, 198, 11748, 1692, 1096, 198, 6738, 42625, 14208, 13, 10414, 1330, 6460, 198, 6738, 42625, 14208, 13, 9945, 1330, 4981, 198, 6738, 42625, 14208, 13, 26791, 1330, 640, 11...
3.08
125
# Copyright (c) 2013 Aparajita Fishman # Change for CudaLint: Alexey T. # License: MIT import os from cuda_lint import Linter, util if os.name=='nt': _exe = os.path.join(os.path.dirname(__file__), 'tidy_win32', 'tidy') else: _exe = 'tidy'
[ 2, 15069, 357, 66, 8, 2211, 317, 1845, 1228, 5350, 13388, 805, 198, 2, 9794, 329, 327, 15339, 43, 600, 25, 4422, 2959, 309, 13, 198, 2, 13789, 25, 17168, 198, 198, 11748, 28686, 198, 6738, 269, 15339, 62, 75, 600, 1330, 406, 3849,...
2.349057
106
"set operations for multiple sequences"
[ 1, 2617, 4560, 329, 3294, 16311, 1, 198 ]
5
8
msg_dict = { 'resource_not_found': 'The resource you specified was not found', 'invalid_gender': "The gender you specified is invalid!!", 'many_invalid_fields': 'Some errors occured while validating some fields. Please check and try again', 'unique': 'The {} you inputted already exists',...
[ 19662, 62, 11600, 796, 1391, 198, 220, 220, 220, 705, 31092, 62, 1662, 62, 9275, 10354, 198, 220, 220, 220, 705, 464, 8271, 345, 7368, 373, 407, 1043, 3256, 198, 220, 220, 220, 705, 259, 12102, 62, 8388, 10354, 198, 220, 220, 220, ...
2.991045
1,005
from .marshmallow import ma from .schemas import ArticleSchema __all__ = [ 'ma', 'ArticleSchema' ]
[ 6738, 764, 76, 5406, 42725, 1330, 17266, 198, 198, 6738, 764, 1416, 4411, 292, 1330, 10172, 27054, 2611, 198, 198, 834, 439, 834, 796, 685, 198, 220, 220, 220, 705, 2611, 3256, 198, 220, 220, 220, 705, 14906, 27054, 2611, 6, 198, 60...
2.477273
44
import argparse from time import sleep, time from collections import defaultdict from sqlalchemy import orm, text, insert, delete from sqlalchemy.orm import selectinload import models from app import db from app import logger from scripts.queue import JsonWorks, JsonAuthors, JsonConcepts, JsonInstitutions, JsonVenues...
[ 11748, 1822, 29572, 198, 6738, 640, 1330, 3993, 11, 640, 198, 6738, 17268, 1330, 4277, 11600, 198, 198, 6738, 44161, 282, 26599, 1330, 393, 76, 11, 2420, 11, 7550, 11, 12233, 198, 6738, 44161, 282, 26599, 13, 579, 1330, 2922, 259, 222...
3.103933
356
import json import discord from discord.ext import commands from assets import internet_funcs from assets.list_funcs import chunks
[ 11748, 33918, 198, 198, 11748, 36446, 198, 6738, 36446, 13, 2302, 1330, 9729, 198, 198, 6738, 6798, 1330, 5230, 62, 12543, 6359, 198, 6738, 6798, 13, 4868, 62, 12543, 6359, 1330, 22716, 628, 198 ]
3.970588
34
from forest_fire.server import server server.launch()
[ 6738, 8222, 62, 6495, 13, 15388, 1330, 4382, 198, 198, 15388, 13, 35681, 3419, 198 ]
3.666667
15
# Prep import json, configparser, pickle, csv, logging, os import pandas as pd from tweepy import AppAuthHandler, API, Cursor # Reading in configuation params = configparser.ConfigParser() params.read('config.ini') # Functions # Takes config file and returns authenticated api object # Get relevant user ids # takes ...
[ 2, 19141, 198, 11748, 33918, 11, 4566, 48610, 11, 2298, 293, 11, 269, 21370, 11, 18931, 11, 28686, 198, 11748, 19798, 292, 355, 279, 67, 198, 6738, 4184, 538, 88, 1330, 2034, 30515, 25060, 11, 7824, 11, 327, 21471, 198, 198, 2, 1172...
3.231034
290
# # Copyright 2021 Ocean Protocol Foundation # SPDX-License-Identifier: Apache-2.0 # from eth_utils import is_address from web3 import Web3 def compare_eth_addresses(address, checker, logger): """ Compare two addresses and return TRUE if there is a match :param str address: Address :param str checker...
[ 2, 198, 2, 15069, 33448, 10692, 20497, 5693, 198, 2, 30628, 55, 12, 34156, 12, 33234, 7483, 25, 24843, 12, 17, 13, 15, 198, 2, 198, 6738, 4555, 62, 26791, 1330, 318, 62, 21975, 198, 6738, 3992, 18, 1330, 5313, 18, 628, 198, 198, ...
2.858131
289
"""Auto-generated file, do not edit by hand. DJ metadata""" from ..phonemetadata import NumberFormat, PhoneNumberDesc, PhoneMetadata PHONE_METADATA_DJ = PhoneMetadata(id='DJ', country_code=253, international_prefix='00', general_desc=PhoneNumberDesc(national_number_pattern='[27]\\d{7}', possible_length=(8,)), ...
[ 37811, 27722, 12, 27568, 2393, 11, 466, 407, 4370, 416, 1021, 13, 13004, 20150, 37811, 201, 198, 6738, 11485, 746, 261, 19261, 14706, 1330, 7913, 26227, 11, 14484, 15057, 24564, 11, 14484, 9171, 14706, 201, 198, 201, 198, 11909, 11651, ...
2.702811
249
#!/usr/bin/env python """ Unicode case folding database conversion utility Parses the database and generates a C++ function which implements the case folding algorithm. The database entries are of the form: <code>; <status>; <mapping>; # <name> <status> can be one of four characters: C - Common mappings S - ma...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 198, 37811, 198, 3118, 291, 1098, 1339, 29909, 6831, 11315, 10361, 198, 198, 47, 945, 274, 262, 6831, 290, 18616, 257, 327, 4880, 2163, 543, 23986, 262, 1339, 198, 11379, 278, 11862, 13, 38...
3.021505
837
import itertools import json import logging import re from django.views.generic import TemplateView from django.http import HttpResponse from django.views import View from django.contrib.auth.mixins import LoginRequiredMixin, PermissionRequiredMixin from django.views.decorators.csrf import csrf_exempt from django.short...
[ 11748, 340, 861, 10141, 198, 11748, 33918, 198, 11748, 18931, 198, 11748, 302, 198, 6738, 42625, 14208, 13, 33571, 13, 41357, 1330, 37350, 7680, 198, 6738, 42625, 14208, 13, 4023, 1330, 367, 29281, 31077, 198, 6738, 42625, 14208, 13, 3357...
2.417978
890
#!/usr/bin/env python3 import numpy as np from sklearn.neighbors import KernelDensity # Relative tolerance (in percent) for some comparisons on measured data. TOLERANCE = 25 # Lower tolerance for comparison of measured data LTOL = 100 - TOLERANCE # Upper tolerance for comparison of measured data UTOL = 100 + TOLERANCE...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 18, 198, 11748, 299, 32152, 355, 45941, 198, 6738, 1341, 35720, 13, 710, 394, 32289, 1330, 32169, 35, 6377, 198, 198, 2, 45344, 15621, 357, 259, 1411, 8, 329, 617, 17909, 319, 8630, 1366, ...
2
3,319
import torch from torch import nn from mmcv.cnn.utils import constant_init, kaiming_init
[ 11748, 28034, 198, 6738, 28034, 1330, 299, 77, 198, 6738, 8085, 33967, 13, 66, 20471, 13, 26791, 1330, 6937, 62, 15003, 11, 479, 1385, 278, 62, 15003, 198 ]
3.178571
28
import json import requests from datetime import datetime from playsound import playsound tday=datetime.today().strftime('%Y-%m-%d') right_now=datetime.today().strftime('%I-%M-%p') response = requests.get("https://www.londonprayertimes.com/api/times/?format=json&key=0239f686-4423-408e-9a0c-7968a403d197&year=&mont...
[ 11748, 33918, 198, 198, 11748, 7007, 198, 198, 6738, 4818, 8079, 1330, 4818, 8079, 198, 198, 6738, 5341, 633, 1330, 5341, 633, 198, 198, 83, 820, 28, 19608, 8079, 13, 40838, 22446, 2536, 31387, 10786, 4, 56, 12, 4, 76, 12, 4, 67, ...
2.380734
218
import pytest from django.test import TestCase from rest_framework import serializers as drf_serializers from pokemon import models, serializers
[ 11748, 12972, 9288, 198, 6738, 42625, 14208, 13, 9288, 1330, 6208, 20448, 198, 6738, 1334, 62, 30604, 1330, 11389, 11341, 355, 1553, 69, 62, 46911, 11341, 198, 198, 6738, 43962, 1330, 4981, 11, 11389, 11341, 628 ]
4.083333
36
from sqlpuzzle.exceptions import InvalidArgumentException __all__ = ('parse_args',) # pylint: disable=dangerous-default-value,keyword-arg-before-vararg def parse_args(options={}, *args, **kwds): """ Parser of arguments. dict options { int min_items: Min of required items to fold one tuple. (defa...
[ 6738, 44161, 79, 9625, 13, 1069, 11755, 1330, 17665, 28100, 1713, 16922, 198, 198, 834, 439, 834, 796, 19203, 29572, 62, 22046, 3256, 8, 628, 198, 2, 279, 2645, 600, 25, 15560, 28, 38537, 516, 12, 12286, 12, 8367, 11, 2539, 4775, 12...
2.206024
830
from __future__ import unicode_literals from django.contrib.auth.models import User from djblets.webapi.errors import PERMISSION_DENIED from reviewboard.reviews.models import ScreenshotComment from reviewboard.webapi.resources import resources from reviewboard.webapi.tests.base import BaseWebAPITestCase from reviewbo...
[ 6738, 11593, 37443, 834, 1330, 28000, 1098, 62, 17201, 874, 198, 198, 6738, 42625, 14208, 13, 3642, 822, 13, 18439, 13, 27530, 1330, 11787, 198, 6738, 42625, 903, 912, 13, 12384, 15042, 13, 48277, 1330, 19878, 44, 40373, 62, 41819, 1976...
3.072797
261
""" Command line tool """ import asyncio from qbapi.request import create_request from qbapi.services.clients import Producer, Consumer
[ 37811, 198, 21575, 1627, 2891, 198, 37811, 198, 11748, 30351, 952, 198, 198, 6738, 10662, 65, 15042, 13, 25927, 1330, 2251, 62, 25927, 198, 6738, 10662, 65, 15042, 13, 30416, 13, 565, 2334, 1330, 30436, 11, 18110, 628 ]
3.631579
38
import unittest import datetime import rdflib # needed for eval(repr(...)) below from rdflib.term import Literal, URIRef, _XSD_DOUBLE, bind, _XSD_BOOLEAN from rdflib.namespace import XSD if __name__ == "__main__": unittest.main()
[ 11748, 555, 715, 395, 198, 11748, 4818, 8079, 198, 198, 11748, 374, 67, 2704, 571, 220, 1303, 2622, 329, 5418, 7, 260, 1050, 7, 986, 4008, 2174, 198, 6738, 374, 67, 2704, 571, 13, 4354, 1330, 25659, 1691, 11, 37902, 4663, 891, 11, ...
2.46
100
import telegram from emoji import emojize from .base import TextMessageBase
[ 11748, 573, 30536, 198, 6738, 44805, 1330, 795, 13210, 1096, 198, 198, 6738, 764, 8692, 1330, 8255, 12837, 14881, 628 ]
3.9
20
import os os.environ['CUDA_VISIBLE_DEVICES']='0' from common import * from dataset import * from model import * #------------------------------------ # main ################################################################# if __name__ == '__main__': print( '%s: calling main function ... ' % os.path.bas...
[ 11748, 28686, 198, 418, 13, 268, 2268, 17816, 43633, 5631, 62, 29817, 34563, 62, 39345, 34444, 20520, 11639, 15, 6, 198, 198, 6738, 2219, 220, 1330, 1635, 198, 6738, 27039, 1330, 1635, 198, 6738, 2746, 220, 220, 1330, 1635, 628, 628, ...
3.50495
101
import requests import os get_json('/Users/yuchenli/Downloads/city_geojson-master', 100000)
[ 11748, 7007, 198, 11748, 28686, 198, 1136, 62, 17752, 10786, 14, 14490, 14, 88, 1229, 831, 4528, 14, 10002, 82, 14, 19205, 62, 469, 13210, 1559, 12, 9866, 3256, 1802, 830, 8 ]
2.84375
32
# from sklearn.cluster import DBSCAN,KMeans # # # def run(data,radius=300): # res={} # # epsilon=0.001, min_samples=200 # epsilon = radius / 100000 # # epsilon = 0.003 # min_samples = 100 # db = DBSCAN(eps=epsilon, min_samples=min_samples) # # eps # # min_samples,, # y_pred = db.fit...
[ 2, 422, 1341, 35720, 13, 565, 5819, 1330, 360, 4462, 44565, 11, 42, 5308, 504, 198, 2, 198, 2, 198, 2, 825, 1057, 7, 7890, 11, 42172, 28, 6200, 2599, 198, 2, 220, 220, 220, 220, 581, 34758, 92, 198, 2, 220, 220, 220, 220, 1303...
1.915916
333
# (c) Copyright [2018-2021] Micro Focus or one of its affiliates. # 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 applicabl...
[ 2, 357, 66, 8, 15069, 685, 7908, 12, 1238, 2481, 60, 4527, 17061, 393, 530, 286, 663, 29116, 13, 198, 2, 49962, 739, 262, 24843, 13789, 11, 10628, 362, 13, 15, 357, 1169, 366, 34156, 15341, 198, 2, 921, 743, 407, 779, 428, 2393, ...
3.743719
199
import re from collections import Counter
[ 11748, 302, 198, 6738, 17268, 1330, 15034, 198 ]
5.25
8
''' - Leetcode problem: 23 - Difficulty: Hard - Brief problem description: Merge k sorted linked lists and return it as one sorted list. Analyze and describe its complexity. Example: Input: [ 1->4->5, 1->3->4, 2->6 ] Output: 1->1->2->3->4->4->5->6 - Solution Summary: - Used Resources: --- Bo Zhou ''' # ...
[ 7061, 6, 198, 12, 1004, 316, 8189, 1917, 25, 2242, 198, 198, 12, 27419, 25, 6912, 198, 198, 12, 22821, 1917, 6764, 25, 198, 198, 13102, 469, 479, 23243, 6692, 8341, 290, 1441, 340, 355, 530, 23243, 1351, 13, 16213, 2736, 290, 6901, ...
2.521505
186
from django.views import generic
[ 6738, 42625, 14208, 13, 33571, 1330, 14276 ]
4.571429
7
# Written by Ivan Sapozhkov and Denis Chagin <denis.chagin@emlid.com> # # Copyright (c) 2016, Emlid Limited # 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 ...
[ 2, 22503, 416, 21798, 35980, 8590, 71, 21862, 290, 33089, 609, 23183, 1279, 6559, 271, 13, 354, 23183, 31, 368, 75, 312, 13, 785, 29, 198, 2, 198, 2, 15069, 357, 66, 8, 1584, 11, 2295, 75, 312, 15302, 198, 2, 1439, 2489, 10395, ...
3.355357
560
# -*- coding: utf-8 -*- """ This module is distributed as part of the Laminaria Core (Python Version). Get the Source Code in GitHub: https://github.com/MrKelpy/LaminariaCore The LaminariaCore is Open Source and distributed under the MIT License """ # Built-in Imports import datetime import random import asyncio impo...
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 37811, 198, 1212, 8265, 318, 9387, 355, 636, 286, 262, 406, 5669, 10312, 7231, 357, 37906, 10628, 737, 198, 3855, 262, 8090, 6127, 287, 21722, 25, 198, 5450, 1378, 12567...
2.68195
1,723
# -------------------------------------------------------------------------------------- # Copyright (c) 2013-2021, Nucleic Development Team. # # Distributed under the terms of the Modified BSD License. # # The full license is in the file LICENSE, distributed with this software. # --------------------------------------...
[ 2, 16529, 19351, 438, 198, 2, 15069, 357, 66, 8, 2211, 12, 1238, 2481, 11, 399, 14913, 291, 7712, 4816, 13, 198, 2, 198, 2, 4307, 6169, 739, 262, 2846, 286, 262, 40499, 347, 10305, 13789, 13, 198, 2, 198, 2, 383, 1336, 5964, 318...
3.912863
241
#!/usr/bin/env python # # Copyright (C) 2007 British Broadcasting Corporation and Kamaelia Contributors(1) # All Rights Reserved. # # You may only modify and redistribute this under the terms of any of the # following licenses(2): Mozilla Public License, V1.1, GNU General # Public License, V2.0, GNU Lesser General ...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 198, 2, 198, 2, 15069, 357, 34, 8, 4343, 3517, 32250, 10501, 290, 509, 1689, 25418, 25767, 669, 7, 16, 8, 198, 2, 220, 220, 220, 220, 1439, 6923, 33876, 13, 198, 2, 198, 2, 921, 743, ...
2.458706
4,589
import click from flask.cli import AppGroup from project import app, db from project.dateutils import berlin_tz from project.services.event import ( get_recurring_events, update_event_dates_with_recurrence_rule, ) event_cli = AppGroup("event") app.cli.add_command(event_cli)
[ 11748, 3904, 198, 6738, 42903, 13, 44506, 1330, 2034, 13247, 198, 198, 6738, 1628, 1330, 598, 11, 20613, 198, 6738, 1628, 13, 4475, 26791, 1330, 18157, 2815, 62, 22877, 198, 6738, 1628, 13, 30416, 13, 15596, 1330, 357, 198, 220, 220, ...
3.031579
95
import os import re import sys import subprocess import pytest from testplan.common.utils.path import change_directory import platform ON_WINDOWS = platform.system() == 'Windows' KNOWN_EXCEPTIONS = [ "TclError: Can't find a usable init\.tcl in the following directories:", # Matplotlib module improperly installe...
[ 11748, 28686, 198, 11748, 302, 198, 11748, 25064, 198, 11748, 850, 14681, 198, 11748, 12972, 9288, 198, 198, 6738, 1332, 11578, 13, 11321, 13, 26791, 13, 6978, 1330, 1487, 62, 34945, 198, 198, 11748, 3859, 198, 198, 1340, 62, 33207, 796...
3.298578
422
from io import StringIO
[ 198, 6738, 33245, 1330, 10903, 9399, 628 ]
3.714286
7
from core import getattr_path from rest_framework import status from credit.tests.test_views.test_credit_list.test_security_credit_list import SecurityCreditListTestCase
[ 6738, 4755, 1330, 651, 35226, 62, 6978, 198, 6738, 1334, 62, 30604, 1330, 3722, 198, 198, 6738, 3884, 13, 41989, 13, 9288, 62, 33571, 13, 9288, 62, 43082, 62, 4868, 13, 9288, 62, 12961, 62, 43082, 62, 4868, 1330, 4765, 23690, 8053, ...
3.822222
45
""" Check for Office file types ViperMonkey is a specialized engine to parse, analyze and interpret Microsoft VBA macros (Visual Basic for Applications), mainly for malware analysis. Author: Philippe Lagadec - http://www.decalage.info License: BSD, see source code or documentation Project Repository: https://github....
[ 37811, 198, 9787, 329, 4452, 2393, 3858, 198, 198, 53, 9346, 9069, 2539, 318, 257, 16976, 3113, 284, 21136, 11, 16602, 290, 6179, 5413, 198, 53, 4339, 34749, 357, 36259, 14392, 329, 26622, 828, 8384, 329, 18953, 3781, 13, 198, 198, 13...
3.029979
934
from st2tests.base import BaseSensorTestCase from third_party_resource import ThirdPartyResource
[ 6738, 336, 17, 41989, 13, 8692, 1330, 7308, 47864, 14402, 20448, 198, 198, 6738, 2368, 62, 10608, 62, 31092, 1330, 10467, 33553, 26198, 628 ]
4.125
24
import datetime import getpass import logging import os import pathlib import platform import re import smtplib import sys from contextlib import contextmanager from email.message import EmailMessage from functools import wraps import azure.functions as func import click import gspread import pandas as pd from apsched...
[ 11748, 4818, 8079, 198, 11748, 651, 6603, 198, 11748, 18931, 198, 11748, 28686, 198, 11748, 3108, 8019, 198, 11748, 3859, 198, 11748, 302, 198, 11748, 895, 83, 489, 571, 198, 11748, 25064, 198, 6738, 4732, 8019, 1330, 4732, 37153, 198, ...
2.947368
589
from PyQt6.QtWidgets import QApplication, QWidget, QFileDialog import PyQt6.QtCore as QtCore import PyQt6.QtGui as QtGui import sys, time, json, requests, traceback, configparser, os import MrWorldwideUI, ConfigurationUI, UpdateManagerUI version = "v1.0.0" def readConfigurationFile(config): try: configFile = open...
[ 6738, 9485, 48, 83, 21, 13, 48, 83, 54, 312, 11407, 1330, 1195, 23416, 11, 1195, 38300, 11, 1195, 8979, 44204, 198, 11748, 9485, 48, 83, 21, 13, 48, 83, 14055, 355, 33734, 14055, 198, 11748, 9485, 48, 83, 21, 13, 48, 83, 8205, 7...
2.720548
365
# -*- coding: utf-8 -*- # Copyright 2020 Google Inc. # # 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 ...
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 2, 15069, 12131, 3012, 3457, 13, 198, 2, 198, 2, 49962, 739, 262, 24843, 13789, 11, 10628, 362, 13, 15, 357, 1169, 366, 34156, 15341, 198, 2, 345, 743, 407, 779, 428...
2.542437
2,922
""" PyBBIO - bbio.py Copyright (c) 2012-2015 - Alexander Hiam <alex@graycat.io> Released under the MIT license https://github.com/graycatlabs/PyBBIO """ import sys, atexit from .platform import platform_init, platform_cleanup from .common import ADDITIONAL_CLEANUP, util_init def bbio_init(): """ Pre-run initia...
[ 37811, 198, 9485, 33, 3483, 46, 532, 275, 65, 952, 13, 9078, 198, 15069, 357, 66, 8, 2321, 12, 4626, 532, 10009, 367, 1789, 1279, 1000, 87, 31, 44605, 9246, 13, 952, 29, 198, 28728, 739, 262, 17168, 5964, 198, 3740, 1378, 12567, 1...
2.920613
718
""" The Endeavors asset collection has a number of irregular assets. Be careful writing any custom code here. """ from app.assets import endeavors from app import models
[ 37811, 198, 220, 220, 220, 383, 5268, 68, 615, 669, 11171, 4947, 468, 257, 1271, 286, 21388, 6798, 13, 1355, 8161, 198, 220, 220, 220, 3597, 597, 2183, 2438, 994, 13, 198, 198, 37811, 628, 198, 6738, 598, 13, 19668, 1330, 40273, 198...
3.734694
49
import sys from PyQt5 import QtCore, QtWidgets from PyQt5.QtWidgets import QMainWindow, QLabel, QGridLayout, QWidget from PyQt5.QtCore import QSize if __name__ == "__main__": app = QtWidgets.QApplication(sys.argv) mainWin = HelloWindow() mainWin.show() sys.exit( app.exec_() )
[ 11748, 25064, 198, 6738, 9485, 48, 83, 20, 1330, 33734, 14055, 11, 33734, 54, 312, 11407, 198, 6738, 9485, 48, 83, 20, 13, 48, 83, 54, 312, 11407, 1330, 1195, 13383, 27703, 11, 1195, 33986, 11, 1195, 41339, 32517, 11, 1195, 38300, 1...
2.446281
121
#!/usr/bin/env python import os import sys import numpy from setuptools import setup, Extension #include markdown description in pip page this_directory = os.path.abspath(os.path.dirname(__file__)) with open(os.path.join(this_directory, 'README.md'), encoding='utf-8') as f: long_description = f.read() # https://g...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 198, 11748, 28686, 198, 11748, 25064, 198, 11748, 299, 32152, 198, 6738, 900, 37623, 10141, 1330, 9058, 11, 27995, 198, 198, 2, 17256, 1317, 2902, 6764, 287, 7347, 2443, 198, 5661, 62, 34945,...
2.270833
624
# This code is part of Qiskit. # # (C) Copyright IBM 2021. # # This code is licensed under the Apache License, Version 2.0. You may # obtain a copy of this license in the LICENSE.txt file in the root directory # of this source tree or at http://www.apache.org/licenses/LICENSE-2.0. # # Any modifications or derivative wo...
[ 2, 770, 2438, 318, 636, 286, 1195, 1984, 270, 13, 198, 2, 198, 2, 357, 34, 8, 15069, 19764, 33448, 13, 198, 2, 198, 2, 770, 2438, 318, 11971, 739, 262, 24843, 13789, 11, 10628, 362, 13, 15, 13, 921, 743, 198, 2, 7330, 257, 486...
3.597527
728
import torch.nn as nn import torch.nn.functional as F from haptic.Pointnet_Pointnet2_pytorch.models.pointnet2_utils import PointNetSetAbstractionMsg,PointNetFeaturePropagation if __name__ == '__main__': import torch model = get_model(13) xyz = torch.rand(6, 9, 2048) (model(xyz))
[ 11748, 28034, 13, 20471, 355, 299, 77, 198, 11748, 28034, 13, 20471, 13, 45124, 355, 376, 198, 6738, 387, 17459, 13, 12727, 3262, 62, 12727, 3262, 17, 62, 9078, 13165, 354, 13, 27530, 13, 4122, 3262, 17, 62, 26791, 1330, 6252, 7934, ...
2.646018
113
from django.contrib import admin from .models import Notification admin.site.register(Notification)
[ 6738, 42625, 14208, 13, 3642, 822, 1330, 13169, 198, 6738, 764, 27530, 1330, 42808, 198, 198, 28482, 13, 15654, 13, 30238, 7, 3673, 2649, 8 ]
4
25
import krpc import time import math from simple_pid import PID conn = krpc.connect(name="UI Test") vessel = conn.space_center.active_vessel kerbin_frame = vessel.orbit.body.reference_frame orb_frame = vessel.orbital_reference_frame srf_frame = vessel.surface_reference_frame surface_gravity = vessel.orbit.body.surface_...
[ 11748, 479, 81, 14751, 198, 11748, 640, 198, 11748, 10688, 198, 6738, 2829, 62, 35317, 1330, 37022, 198, 198, 37043, 796, 479, 81, 14751, 13, 8443, 7, 3672, 2625, 10080, 6208, 4943, 198, 1158, 741, 796, 48260, 13, 13200, 62, 16159, 13...
2.502904
861
from cx_core import integration as integration_module from cx_core.controller import Controller
[ 6738, 43213, 62, 7295, 1330, 11812, 355, 11812, 62, 21412, 198, 6738, 43213, 62, 7295, 13, 36500, 1330, 22741, 628 ]
4.85
20
############################################################################### # # Python script utilities as included from the cloudera-framework-assembly, # do not edit directly # ############################################################################### import os import re
[ 29113, 29113, 7804, 4242, 21017, 198, 2, 198, 2, 11361, 4226, 20081, 355, 3017, 422, 262, 537, 280, 1082, 64, 12, 30604, 12, 41873, 11, 198, 2, 466, 407, 4370, 3264, 198, 2, 198, 29113, 29113, 7804, 4242, 21017, 198, 198, 11748, 286...
6.06383
47
import datetime import os from io import BytesIO import logging from functools import wraps from copy import deepcopy from collections import Counter import slugify import yaml import mistune import requests from flask import \ Blueprint, Flask, render_template, abort, send_file, make_response from flask_cors imp...
[ 11748, 4818, 8079, 198, 11748, 28686, 198, 6738, 33245, 1330, 2750, 4879, 9399, 198, 11748, 18931, 198, 6738, 1257, 310, 10141, 1330, 27521, 198, 6738, 4866, 1330, 2769, 30073, 198, 6738, 17268, 1330, 15034, 198, 198, 11748, 31065, 1958, ...
2.620429
793
# coding: utf-8 import numpy as np import torch.nn as nn
[ 2, 19617, 25, 3384, 69, 12, 23, 198, 198, 11748, 299, 32152, 355, 45941, 198, 11748, 28034, 13, 20471, 355, 299, 77, 628 ]
2.565217
23
import pygame as pg from pygame.locals import * import sys import board.chess_board as board w = 60 * 8 h = 60 * 8 if __name__ == "__main__": # Launch main-function if running this script game = Game() game.run()
[ 11748, 12972, 6057, 355, 23241, 198, 6738, 12972, 6057, 13, 17946, 874, 1330, 1635, 198, 11748, 25064, 198, 11748, 3096, 13, 2395, 824, 62, 3526, 355, 3096, 628, 198, 86, 796, 3126, 1635, 807, 198, 71, 796, 3126, 1635, 807, 628, 198, ...
2.771084
83
#importing libraries import torch import torch.utils.data as data import os import random from PIL import Image
[ 2, 11748, 278, 12782, 201, 198, 201, 198, 11748, 28034, 201, 198, 11748, 28034, 13, 26791, 13, 7890, 355, 1366, 201, 198, 11748, 28686, 201, 198, 11748, 4738, 201, 198, 6738, 350, 4146, 1330, 7412, 201, 198, 201, 198, 220, 220, 220, ...
2.509091
55
# @Time : 2022/1/1 # @Author : Yuanhang Zhou # @email : sdzyh002@gmail.com import os from math import floor import torch from loguru import logger from typing import List, Dict from copy import copy, deepcopy import pickle import os import numpy import ipdb from crslab.config import PRETRAIN_PATH, SAVE_P...
[ 2, 2488, 7575, 220, 220, 220, 1058, 220, 220, 33160, 14, 16, 14, 16, 198, 2, 2488, 13838, 220, 1058, 220, 220, 34071, 33255, 32222, 198, 2, 2488, 12888, 220, 220, 1058, 220, 220, 45647, 7357, 71, 21601, 31, 14816, 13, 785, 198, 19...
2.930233
215
# flake8: noqa """This is the main public API of Morepath. Additional public APIs can be imported from the :mod:`morepath.error` and :mod:`morepath.pdbsupport` modules. For custom directive implementations that interact with core directives for grouping or subclassing purposes, or that need to use one of the Morepath ...
[ 2, 781, 539, 23, 25, 645, 20402, 198, 37811, 1212, 318, 262, 1388, 1171, 7824, 286, 3125, 6978, 13, 198, 198, 17699, 1171, 23113, 460, 307, 17392, 422, 262, 1058, 4666, 25, 63, 3549, 6978, 13, 18224, 63, 198, 392, 1058, 4666, 25, ...
3.513196
341
EMAIL_AND_FAX_FORM_CONSTANTS = { }
[ 27630, 4146, 62, 6981, 62, 7708, 55, 62, 21389, 62, 10943, 2257, 1565, 4694, 796, 1391, 198, 220, 220, 198, 92 ]
1.761905
21
#Prediction model using an instance of the Monte Carlo simulation and Brownian Motion equation #import of libraries import numpy as np import pandas as pd from pandas_datareader import data as wb import matplotlib.pyplot as plt from scipy.stats import norm #ticker selection
[ 2, 39156, 2867, 2746, 1262, 281, 4554, 286, 262, 22489, 40089, 18640, 290, 4373, 666, 20843, 16022, 628, 198, 2, 11748, 286, 12782, 198, 11748, 299, 32152, 355, 45941, 198, 11748, 19798, 292, 355, 279, 67, 198, 6738, 19798, 292, 62, 1...
3.657895
76
""" Modified version of train_bert.py that adds DeepSpeed """ import os import datetime import json import pathlib import re import string from functools import partial from typing import Any, Callable, Dict, Iterable, List, Optional, Tuple, TypeVar, Union import random import datasets import fire import logging impo...
[ 37811, 198, 5841, 1431, 2196, 286, 4512, 62, 4835, 13, 9078, 326, 6673, 10766, 22785, 198, 37811, 198, 198, 11748, 28686, 198, 11748, 4818, 8079, 198, 11748, 33918, 198, 11748, 3108, 8019, 198, 11748, 302, 198, 11748, 4731, 198, 6738, 1...
2.248513
11,766
# Given a singly linked list, determine if it is a palindrome. # Definition for singly-linked list.
[ 2, 11259, 257, 1702, 306, 6692, 1351, 11, 5004, 611, 340, 318, 257, 6340, 521, 5998, 13, 198, 198, 2, 30396, 329, 1702, 306, 12, 25614, 1351, 13, 628, 628, 628, 198 ]
3.34375
32
""" Rocky is a CLI based provisioning and management tool for CloudCIX Cloud software. Rocky is designed to operate in an out of band (OOB) network, serarated from other CloudCIX networks. Rocky's purpose is to facilitate monitoring, testing, debug and recovery """ __version__ = '0.3.5'
[ 37811, 198, 19665, 88, 318, 257, 43749, 1912, 8287, 278, 290, 4542, 2891, 329, 10130, 34, 10426, 10130, 3788, 13, 198, 198, 19665, 88, 318, 3562, 284, 8076, 287, 281, 503, 286, 4097, 357, 6684, 33, 8, 3127, 11, 1055, 283, 515, 422, ...
3.625
80
from tkinter import * import time root=Tk() root.title('Calculator') root.config(bg='wheat') s='' text=StringVar() f=Frame(root,bg='#dcdde1') e=Entry(f,textvariable=text,bg='#f5f6fa',fg='#353b48',font='roboto 34 bold',justify='right',relief=RAISED) e.pack(side=LEFT,padx=10,pady=10,expand=YES,fill=BOTH) f.pack(side=TOP...
[ 6738, 256, 74, 3849, 1330, 1635, 198, 11748, 640, 198, 15763, 28, 51, 74, 3419, 198, 15763, 13, 7839, 10786, 9771, 3129, 1352, 11537, 198, 15763, 13, 11250, 7, 35904, 11639, 12491, 265, 11537, 198, 198, 82, 28, 7061, 198, 5239, 28, ...
2.034321
641
import glob import os import keras import tensorflow as tf from keras.models import load_model from keras.callbacks import ModelCheckpoint import matplotlib matplotlib.use('Agg') import matplotlib.pyplot as plt import src.util.Files as Files from src.util.ImageLoader import load_images_generator, resize_image, load...
[ 11748, 15095, 198, 11748, 28686, 198, 198, 11748, 41927, 292, 198, 11748, 11192, 273, 11125, 355, 48700, 198, 198, 6738, 41927, 292, 13, 27530, 1330, 3440, 62, 19849, 198, 6738, 41927, 292, 13, 13345, 10146, 1330, 9104, 9787, 4122, 198, ...
2.085511
3,520
from .utils import _get_return_type def windowed(data, size, step=1, ret_type=None): ''' dp.windowed applies a window function to a collection of data items. Parameters ----------- :param data: an iterable collection of data :param size: the window size :param step: the window step :p...
[ 6738, 764, 26791, 1330, 4808, 1136, 62, 7783, 62, 4906, 628, 198, 4299, 4324, 276, 7, 7890, 11, 2546, 11, 2239, 28, 16, 11, 1005, 62, 4906, 28, 14202, 2599, 198, 220, 220, 220, 705, 7061, 198, 220, 220, 220, 288, 79, 13, 7972, 6...
2.572243
526
#!/usr/bin/env python ''' Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file to you under the Apache License, Version 2.0 (the "License")...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 198, 198, 7061, 6, 198, 26656, 15385, 284, 262, 24843, 10442, 5693, 357, 1921, 37, 8, 739, 530, 198, 273, 517, 18920, 5964, 11704, 13, 220, 4091, 262, 28536, 2393, 198, 17080, 6169, 351, ...
3.844
250
import os import csv import numpy as np from sklearn.utils import shuffle ## Read in frame data samples = [] with open('/../opt/carnd_p3/data/driving_log.csv') as csvfile: #open the log file reader = csv.reader(csvfile) #as a readable csv for line in reader: samples.append(line) #add each line of th...
[ 11748, 28686, 198, 11748, 269, 21370, 198, 11748, 299, 32152, 355, 45941, 198, 6738, 1341, 35720, 13, 26791, 1330, 36273, 198, 198, 2235, 4149, 287, 5739, 1366, 198, 82, 12629, 796, 17635, 198, 4480, 1280, 10786, 14, 40720, 8738, 14, 77...
3.092453
1,060
#!/usr/bin/env python3 """ A script containing the basic principles of the extraction primitive inner workings""" from __future__ import division, print_function from ghostdr import polyfit import numpy as pn # Firstly, let's find all the needed files fitsdir='/Users/mireland/data/ghost/cal_frames/' #Define the f...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 18, 198, 198, 37811, 317, 4226, 7268, 262, 4096, 7811, 286, 262, 22236, 20049, 8434, 220, 198, 1818, 654, 37811, 198, 198, 6738, 11593, 37443, 834, 1330, 7297, 11, 3601, 62, 8818, 198, 6738...
2.917079
808
import unittest import datetime import kronos string_format_time = "%Y-%m-%d %H:%M:%S" date_time_str = "2020-07-19 18:14:21"
[ 11748, 555, 715, 395, 198, 11748, 4818, 8079, 198, 11748, 479, 1313, 418, 198, 198, 8841, 62, 18982, 62, 2435, 796, 36521, 56, 12, 4, 76, 12, 4, 67, 4064, 39, 25, 4, 44, 25, 4, 50, 1, 198, 4475, 62, 2435, 62, 2536, 796, 366, ...
2.189655
58
##!/usr/bin/env python3 # Mass Flow Controller Arduino driver # Copyright (C) 2015 Simon Howroyd, Jason James # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, either version 3 o...
[ 2235, 48443, 14629, 14, 8800, 14, 24330, 21015, 18, 198, 198, 2, 5674, 27782, 22741, 27634, 4639, 198, 198, 2, 15069, 357, 34, 8, 1853, 220, 11288, 1374, 3287, 67, 11, 8982, 3700, 198, 2, 220, 198, 2, 220, 220, 220, 220, 770, 1430...
3.164384
365
from asyncio import Future from greenlet import getcurrent import psycopg2 from psycopg2 import * # noqa from psycopg2 import extensions, OperationalError __version__ = psycopg2.__version__ def psycopg2_wait_callback(conn): """A wait callback to allow greenlet to work with Psycopg. The caller must be from...
[ 6738, 30351, 952, 1330, 10898, 198, 198, 6738, 4077, 1616, 1330, 651, 14421, 198, 11748, 17331, 22163, 70, 17, 198, 6738, 17331, 22163, 70, 17, 1330, 1635, 220, 1303, 645, 20402, 198, 6738, 17331, 22163, 70, 17, 1330, 18366, 11, 6564, ...
2.725
840
# Copyright 2011-2012 10gen, Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing,...
[ 2, 15069, 2813, 12, 6999, 838, 5235, 11, 3457, 13, 198, 2, 198, 2, 49962, 739, 262, 24843, 13789, 11, 10628, 362, 13, 15, 357, 1169, 366, 34156, 15341, 198, 2, 345, 743, 407, 779, 428, 2393, 2845, 287, 11846, 351, 262, 13789, 13, ...
2.963834
553
import argparse_helper as argparse import config_dir import sys from .editor import Editor if __name__ == '__main__': main("-f", "foo", "/tmp/x")
[ 11748, 1822, 29572, 62, 2978, 525, 355, 1822, 29572, 198, 11748, 4566, 62, 15908, 198, 11748, 25064, 198, 198, 6738, 764, 35352, 1330, 12058, 628, 628, 198, 361, 11593, 3672, 834, 6624, 705, 834, 12417, 834, 10354, 198, 220, 220, 220, ...
2.818182
55
import ez_setup ez_setup.use_setuptools() from setuptools import setup, find_packages import import_utils setup( name = "import-utils", version = import_utils.__version__, description = 'A module that supports simple programmatic module imports', packages = find_packages(), author = 'Evgeny.Fadeev...
[ 11748, 304, 89, 62, 40406, 198, 8471, 62, 40406, 13, 1904, 62, 2617, 37623, 10141, 3419, 198, 6738, 900, 37623, 10141, 1330, 9058, 11, 1064, 62, 43789, 198, 198, 11748, 1330, 62, 26791, 198, 198, 40406, 7, 198, 220, 220, 220, 1438, ...
2.715596
327
import numpy as np from visual_dynamics.policies import CameraTargetPolicy
[ 11748, 299, 32152, 355, 45941, 198, 198, 6738, 5874, 62, 67, 4989, 873, 13, 79, 4160, 444, 1330, 20432, 21745, 36727, 628 ]
3.5
22
with open("inputday3.txt") as f: data = [x for x in f.read().split()] gamma = "" epsilon = "" for b in range(0, len(data[0])): one = 0 zero = 0 for c in range(0, len(data)): if data[c][b] == '0': zero += 1 else: one += 1 if zero > one: ...
[ 4480, 1280, 7203, 15414, 820, 18, 13, 14116, 4943, 355, 277, 25, 201, 198, 220, 220, 220, 1366, 796, 685, 87, 329, 2124, 287, 277, 13, 961, 22446, 35312, 3419, 60, 201, 198, 201, 198, 28483, 2611, 796, 13538, 201, 198, 538, 18217, ...
1.749064
801
from __future__ import print_function from PIL import Image import os import os.path import numpy as np import sys from misc import AverageMeter from eval_accuracy import simple_accuracy if sys.version_info[0] == 2: import cPickle as pickle else: import pickle import torch.utils.data as data import torch from ...
[ 6738, 11593, 37443, 834, 1330, 3601, 62, 8818, 198, 6738, 350, 4146, 1330, 7412, 198, 11748, 28686, 198, 11748, 28686, 13, 6978, 198, 11748, 299, 32152, 355, 45941, 198, 11748, 25064, 198, 6738, 12747, 1330, 13475, 44, 2357, 198, 6738, ...
2.402576
621
import json import logging import os from typing import Optional from mir import scm from mir.tools import mir_storage
[ 11748, 33918, 198, 11748, 18931, 198, 11748, 28686, 198, 6738, 19720, 1330, 32233, 198, 198, 6738, 5720, 1330, 629, 76, 198, 6738, 5720, 13, 31391, 1330, 5720, 62, 35350, 628, 628, 628 ]
3.90625
32
import argparse import math import os import pickle from typing import List import cv2 import numpy as np import torch from PIL import Image, ImageDraw, ImageFont import configs.paths_config from configs import paths_config from training.networks import SynthesisBlock
[ 11748, 1822, 29572, 198, 11748, 10688, 198, 11748, 28686, 198, 11748, 2298, 293, 198, 6738, 19720, 1330, 7343, 198, 198, 11748, 269, 85, 17, 198, 11748, 299, 32152, 355, 45941, 198, 11748, 28034, 198, 6738, 350, 4146, 1330, 7412, 11, 74...
3.61039
77
import pandas as pd # UD 1.0 CONLL_COLUMNS = ['i', 'w', 'l', 'p', 'n', 'm', 'g', 'f', 'd', 'c'] # UD 2.0 CONLL_COLUMNS_V2 = ['i', 'w', 'l', 'x', 'p', 'm', 'g', 'f', 'e', 'o'] # possible morphological attributes MORPH_ATTS = ['type', 'animacy', #'gender', 'number' ...
[ 11748, 19798, 292, 355, 279, 67, 198, 198, 2, 43700, 352, 13, 15, 198, 10943, 3069, 62, 25154, 5883, 8035, 796, 37250, 72, 3256, 705, 86, 3256, 705, 75, 3256, 705, 79, 3256, 705, 77, 3256, 705, 76, 3256, 705, 70, 3256, 705, 69, ...
1.947368
3,515
#!/bin/python3 import argparse import datetime import functools import logging import os import psycopg2 from dateutil.relativedelta import relativedelta from atpy.data.cache.lmdb_cache import * from atpy.data.cache.postgres_cache import BarsInPeriodProvider from atpy.data.cache.postgres_cache import request_adjustm...
[ 2, 48443, 8800, 14, 29412, 18, 198, 198, 11748, 1822, 29572, 198, 11748, 4818, 8079, 198, 11748, 1257, 310, 10141, 198, 11748, 18931, 198, 11748, 28686, 198, 198, 11748, 17331, 22163, 70, 17, 198, 6738, 3128, 22602, 13, 2411, 265, 1572,...
2.562757
972