content
stringlengths
1
1.04M
input_ids
listlengths
1
774k
ratio_char_token
float64
0.38
22.9
token_count
int64
1
774k
"""Datatypes""" from __future__ import annotations from itertools import compress from collections import defaultdict from operator import attrgetter from typing import List, Dict, Tuple from dataclasses import dataclass, field from copy import copy import attr import numpy as np from loguru import logger from pyrap...
[ 37811, 27354, 265, 9497, 37811, 198, 6738, 11593, 37443, 834, 1330, 37647, 198, 198, 6738, 340, 861, 10141, 1330, 27413, 198, 6738, 17268, 1330, 4277, 11600, 198, 6738, 10088, 1330, 708, 81, 1136, 353, 198, 6738, 19720, 1330, 7343, 11, ...
2.151992
8,711
from .fhirbase import fhirbase class NutritionOrder(fhirbase): """ A request to supply a diet, formula feeding (enteral) or oral nutritional supplement to a patient/resident. Attributes: resourceType: This is a NutritionOrder resource identifier: Identifiers assigned to this order by ...
[ 6738, 764, 69, 71, 343, 8692, 1330, 277, 71, 343, 8692, 628, 198, 4871, 23285, 18743, 7, 69, 71, 343, 8692, 2599, 198, 220, 220, 220, 37227, 198, 220, 220, 220, 317, 2581, 284, 5127, 257, 5496, 11, 10451, 13017, 357, 298, 1691, 8,...
3.095458
2,818
#!/usr/bin/env python #This needs to be fully commented and have a Usage message # Copyright (c) 2016 - mgroseman - Mike Roseman # MIT License import sqlite3 SQLDB='db/mqtt_repeater.db' conn = sqlite3.connect(SQLDB) db = conn.cursor() for row in db.execute('SELECT * FROM states ORDER BY last_timestamp'): pr...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 198, 2, 1212, 2476, 284, 307, 3938, 16476, 290, 423, 257, 29566, 3275, 198, 2, 15069, 357, 66, 8, 1584, 532, 10527, 13698, 805, 532, 4995, 8049, 805, 198, 2, 17168, 13789, 628, 198, 11748...
2.630435
138
import argparse import warnings from operator import itemgetter import gensim.models as models import mlflow
[ 11748, 1822, 29572, 198, 11748, 14601, 198, 6738, 10088, 1330, 2378, 1136, 353, 198, 198, 11748, 308, 641, 320, 13, 27530, 355, 4981, 198, 11748, 285, 1652, 9319, 628, 628, 628, 628, 628 ]
3.606061
33
# Available indicators here: https://python-tradingview-ta.readthedocs.io/en/latest/usage.html#retrieving-the-analysis from tradingview_ta import TA_Handler, Interval, Exchange # use for environment variables import os # use if needed to pass args to external modules import sys # used for directory handling import glo...
[ 2, 14898, 21337, 994, 25, 3740, 1378, 29412, 12, 2213, 4980, 1177, 12, 8326, 13, 961, 83, 704, 420, 82, 13, 952, 14, 268, 14, 42861, 14, 26060, 13, 6494, 2, 1186, 37418, 12, 1169, 12, 20930, 198, 198, 6738, 7313, 1177, 62, 8326, ...
3.119883
342
# coding=utf-8 # Copyright 2021 The Balloon Learning Environment Authors. # # 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 require...
[ 2, 19617, 28, 40477, 12, 23, 198, 2, 15069, 33448, 383, 47821, 18252, 9344, 46665, 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, 284...
2.809175
2,049
# =IF(D2=1,IF(RAND()>0.5,NORMINV(RAND(),75,2),NORMINV(RAND(),85,2)),IF(RAND()>0.5,NORMINV(RAND(),70,2),NORMINV(RAND(),80,2)))
[ 2, 796, 5064, 7, 35, 17, 28, 16, 11, 5064, 7, 49, 6981, 3419, 29, 15, 13, 20, 11, 35510, 23678, 53, 7, 49, 6981, 22784, 2425, 11, 17, 828, 35510, 23678, 53, 7, 49, 6981, 22784, 5332, 11, 17, 36911, 5064, 7, 49, 6981, 3419, 2...
1.712329
73
from fiasko_bro.validators import has_multiple_imports_on_same_line
[ 6738, 25912, 2093, 78, 62, 7957, 13, 12102, 2024, 1330, 468, 62, 48101, 62, 320, 3742, 62, 261, 62, 31642, 62, 1370, 628, 198 ]
2.916667
24
# -*- coding: utf-8 -*- # ----------------------------------------------------------------------------- # Copyright 2019 by ShabaniPy Authors, see AUTHORS for more details. # # Distributed under the terms of the MIT license. # # The full license is in the file LICENCE, distributed with this software. # ----------------...
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 2, 16529, 32501, 198, 2, 15069, 13130, 416, 911, 397, 3216, 20519, 46665, 11, 766, 37195, 20673, 329, 517, 3307, 13, 198, 2, 198, 2, 4307, 6169, 739, 262, 2846, 286, ...
5.035714
84
from outliers.estatistica.zscore import ZScore, ZScoreModificado from outliers.estatistica.iqr import InterquartileRange from outliers.densidade.lof import LOF from outliers.proximidade.isolation_forest import IsolationForest from outliers.detector import DetectorOutlier from sih.sih_facade import SIHFacade import sys ...
[ 6738, 41528, 3183, 13, 395, 265, 2569, 64, 13, 89, 26675, 1330, 1168, 26595, 11, 1168, 26595, 5841, 811, 4533, 198, 6738, 41528, 3183, 13, 395, 265, 2569, 64, 13, 25011, 81, 1330, 4225, 36008, 576, 17257, 198, 6738, 41528, 3183, 13, ...
2.543897
467
"""For everything but the kitchen sink.""" # Copyright 2021 The Funnel Rocket Maintainers # # 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...
[ 37811, 1890, 2279, 475, 262, 9592, 14595, 526, 15931, 198, 2, 220, 15069, 33448, 383, 11138, 4954, 16920, 337, 32725, 364, 198, 2, 198, 2, 220, 49962, 739, 262, 24843, 13789, 11, 10628, 362, 13, 15, 357, 1169, 366, 34156, 15341, 198, ...
2.848214
784
import h5py import os import numpy as np dim = 12288 base = '/home/yliu0/data/' pin= os.path.join(base, 'logos.hdf5') out = os.path.join(base, './latent/latent{}.h5'.format(dim)) num_chns = 3 img_size = 64 if __name__ == '__main__': # clean if os.path.exists(out): os.remove(out) fin = h5py.File...
[ 11748, 289, 20, 9078, 198, 11748, 28686, 198, 11748, 299, 32152, 355, 45941, 198, 198, 27740, 796, 1105, 25270, 198, 198, 8692, 796, 31051, 11195, 14, 2645, 16115, 15, 14, 7890, 14, 6, 198, 11635, 28, 28686, 13, 6978, 13, 22179, 7, ...
1.927083
384
"""change commands.env to text Revision ID: 8550c7394f4 Revises: 5844fbc9d9e4 Create Date: 2015-06-15 13:42:13.990095 """ # revision identifiers, used by Alembic. revision = '8550c7394f4' down_revision = '5844fbc9d9e4' from alembic import op import sqlalchemy as sa
[ 37811, 3803, 9729, 13, 24330, 284, 2420, 198, 198, 18009, 1166, 4522, 25, 7600, 1120, 66, 22, 34626, 69, 19, 198, 18009, 2696, 25, 7618, 2598, 69, 15630, 24, 67, 24, 68, 19, 198, 16447, 7536, 25, 1853, 12, 3312, 12, 1314, 1511, 25...
2.415929
113
from django.db import models from pydantic import * from typing import * from django.contrib.auth.models import User from CMSLogic.models import * from asgiref.sync import sync_to_async
[ 6738, 42625, 14208, 13, 9945, 1330, 4981, 201, 198, 6738, 279, 5173, 5109, 1330, 1635, 201, 198, 6738, 19720, 1330, 1635, 201, 198, 6738, 42625, 14208, 13, 3642, 822, 13, 18439, 13, 27530, 1330, 11787, 201, 198, 6738, 40773, 11187, 291,...
2.984615
65
#Crie um programa que tenha uma Tupla totalmente preenchida com uma contagem por extenso, de zero ate vinte. #Seu programa deverá ler um numero pelo teclado e mostra-lo por extenso. # só catar o numero gerado e botar dentro do indice extenso = ('Zero', 'Um', 'Dois', 'Tres', 'Quatro', 'Cinco', 'Seis', 'Sete', 'Oito', '...
[ 2, 34, 5034, 23781, 1430, 64, 8358, 3478, 3099, 334, 2611, 16749, 489, 64, 2472, 434, 68, 662, 24421, 3755, 401, 334, 2611, 34335, 368, 16964, 1070, 268, 568, 11, 390, 6632, 15063, 410, 600, 68, 13, 198, 2, 4653, 84, 1430, 64, 390...
2.227964
329
from .mc_rbdyn import *
[ 6738, 764, 23209, 62, 81, 17457, 2047, 1330, 1635, 198 ]
2.4
10
"""Common cgroups management routines. """ from __future__ import absolute_import from __future__ import division from __future__ import print_function from __future__ import unicode_literals import io import logging import os from treadmill import fs from treadmill.fs import linux as fs_linux #: Base directory wh...
[ 37811, 17227, 269, 24432, 4542, 31878, 13, 198, 37811, 198, 198, 6738, 11593, 37443, 834, 1330, 4112, 62, 11748, 198, 6738, 11593, 37443, 834, 1330, 7297, 198, 6738, 11593, 37443, 834, 1330, 3601, 62, 8818, 198, 6738, 11593, 37443, 834, ...
2.455255
2,436
from itertools import count, islice from scipy.optimize import bisect
[ 6738, 340, 861, 10141, 1330, 954, 11, 318, 75, 501, 198, 198, 6738, 629, 541, 88, 13, 40085, 1096, 1330, 47457, 478, 628, 628, 198 ]
3
25
import cv2 from pyzbar import pyzbar # Press the green button in the gutter to run the script. if __name__ == '__main__': readQR()
[ 198, 11748, 269, 85, 17, 198, 6738, 12972, 89, 5657, 1330, 12972, 89, 5657, 628, 628, 198, 2, 4332, 262, 4077, 4936, 287, 262, 308, 10381, 284, 1057, 262, 4226, 13, 198, 361, 11593, 3672, 834, 6624, 705, 834, 12417, 834, 10354, 198,...
2.764706
51
import os, json, sys, operator, urllib, urllib2 from pyquery import PyQuery as pq credo_dir = sys.argv[1] if __name__ == "__main__": json_files = [f for f in all_files(credo_dir) if f.endswith('.json') and '-' not in os.path.basename(f)] for filename in json_files: meta = json.load(open(filename)) ...
[ 11748, 28686, 11, 33918, 11, 25064, 11, 10088, 11, 2956, 297, 571, 11, 2956, 297, 571, 17, 198, 6738, 12972, 22766, 1330, 9485, 20746, 355, 279, 80, 198, 198, 66, 48454, 62, 15908, 796, 25064, 13, 853, 85, 58, 16, 60, 198, 198, 36...
2.393293
328
"""Node base class.""" import re import logging from abc import ABC, abstractmethod from timeflux.core.io import Port
[ 37811, 19667, 2779, 1398, 526, 15931, 198, 198, 11748, 302, 198, 11748, 18931, 198, 6738, 450, 66, 1330, 9738, 11, 12531, 24396, 198, 6738, 640, 69, 22564, 13, 7295, 13, 952, 1330, 4347, 628 ]
3.529412
34
from django.conf.urls import patterns, url from django.conf import settings from django.contrib import admin from .views import view_profile, edit_user, create_user, view_faculty, view_staff, edit_profile from django.contrib.auth import views as auth_views admin.autodiscover() urlpatterns = [ url(r'^people/facult...
[ 6738, 42625, 14208, 13, 10414, 13, 6371, 82, 1330, 7572, 11, 19016, 198, 6738, 42625, 14208, 13, 10414, 1330, 6460, 198, 6738, 42625, 14208, 13, 3642, 822, 1330, 13169, 198, 6738, 764, 33571, 1330, 1570, 62, 13317, 11, 4370, 62, 7220, ...
2.48806
670
import os import unittest import sys sys.path.append("..") import githelpers # noqa: E402 if __name__ == "__main__": unittest.main()
[ 11748, 28686, 198, 11748, 555, 715, 395, 198, 11748, 25064, 198, 17597, 13, 6978, 13, 33295, 7203, 492, 4943, 198, 11748, 17606, 16794, 364, 220, 1303, 645, 20402, 25, 412, 32531, 628, 198, 198, 361, 11593, 3672, 834, 6624, 366, 834, ...
2.563636
55
import cv2 import numpy as np import matplotlib.image as mpimg import matplotlib.pyplot as plt import glob import pickle line = None M = None Minv = None cameraMat = None distCoeffs = None dist_pickle = pickle.load( open( "camera_cal/wide_dist_pickle.p", "rb" ) ) objpoints = dist_pickle["objpoints"] imgpoints =...
[ 11748, 269, 85, 17, 198, 11748, 299, 32152, 355, 45941, 198, 11748, 2603, 29487, 8019, 13, 9060, 355, 29034, 9600, 198, 11748, 2603, 29487, 8019, 13, 9078, 29487, 355, 458, 83, 198, 11748, 15095, 198, 11748, 2298, 293, 198, 198, 1370, ...
2.326291
426
import os from tabulate import tabulate OUTPATH = "output/latex" a = [["Dataset Name", "# of Samples", "Total Length"], ["Balanced", "3,146", "8.74 hours"], ["Eval", "2,574", "7.15 hours"], ["Unbalanced", "224,155", "622.65 hours"], ["Unbalanced - Subset", "19,042", "52.89 hours"]] if not os.path.exists(OUTPATH): ...
[ 11748, 28686, 198, 6738, 7400, 5039, 1330, 7400, 5039, 198, 198, 2606, 7250, 12599, 796, 366, 22915, 14, 17660, 87, 1, 198, 198, 64, 796, 685, 14692, 27354, 292, 316, 6530, 1600, 25113, 286, 3409, 2374, 1600, 366, 14957, 22313, 33116, ...
2.314815
216
from __future__ import division, print_function from collections import defaultdict, OrderedDict, namedtuple import numpy as np import time import itertools from .. import core from .. import affinitymat from .. import util from .. import cluster from .. import aggregator from .. import seqlet_embedding from .. import ...
[ 6738, 11593, 37443, 834, 1330, 7297, 11, 3601, 62, 8818, 198, 6738, 17268, 1330, 4277, 11600, 11, 14230, 1068, 35, 713, 11, 3706, 83, 29291, 198, 11748, 299, 32152, 355, 45941, 198, 11748, 640, 198, 11748, 340, 861, 10141, 198, 6738, ...
2.766355
428
num = leiaInt('Digite um valor: ') print(f'Você digitou o número {num}')
[ 198, 198, 22510, 796, 443, 544, 5317, 10786, 19511, 578, 23781, 1188, 273, 25, 705, 8, 198, 4798, 7, 69, 6, 53, 420, 25792, 16839, 280, 267, 299, 21356, 647, 78, 1391, 22510, 92, 11537, 628, 628, 198 ]
2.078947
38
#!/usr/bin/env python3 # import rospy import socket import cv2 import numpy as np import time cap = cv2.VideoCapture("udp://10.5.5.9:10000", cv2.CAP_FFMPEG) sock = socket.socket(socket.AF_INET, socket.SOCK_DGRAM) last_message = time.time() while True: # Get an image ret, img = cap.read() # Do something ...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 18, 198, 2, 1330, 686, 2777, 88, 198, 11748, 17802, 198, 11748, 269, 85, 17, 198, 11748, 299, 32152, 355, 45941, 198, 11748, 640, 198, 198, 11128, 796, 269, 85, 17, 13, 10798, 49630, 7203...
2.372222
180
"""Code for Rotate Transform.""" import tensorflow as tf import tensorflow_addons as tfa from tf_autoaugment.transforms.base_transform import BaseTransform class Rotate(BaseTransform): """Transform for Rotate op.""" def __call__(self, images: tf.Tensor, level: tf.Tensor) -> tf.Tensor: """Run rotate ...
[ 37811, 10669, 329, 18481, 378, 26981, 526, 15931, 198, 11748, 11192, 273, 11125, 355, 48700, 198, 11748, 11192, 273, 11125, 62, 39996, 355, 256, 13331, 198, 198, 6738, 48700, 62, 23736, 559, 5154, 13, 7645, 23914, 13, 8692, 62, 35636, 1...
2.516517
333
""" Tests for scraping and processing """ import pytest import recipe_recommender as rr @pytest.fixture() def test_bodybuilding_scrape(testing_data): """ Test that pulling single recipe from bodybuilding database works. """ data = testing_data # Write more tests here to see this data is what we ...
[ 37811, 198, 51, 3558, 329, 46743, 290, 7587, 198, 37811, 198, 11748, 12972, 9288, 198, 198, 11748, 8364, 62, 47335, 2194, 355, 374, 81, 198, 198, 31, 9078, 9288, 13, 69, 9602, 3419, 198, 198, 4299, 1332, 62, 2618, 16894, 62, 1416, 1...
3.072848
151
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.conf.urls import patterns, url, include from rest_framework.routers import DefaultRouter from serializers import RecipeViewSet, IngredientViewSet, \ RecipeSearchIngTimeViewSet, RecipeRandomIngTimeViewSet router = DefaultRouter() router....
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 6738, 11593, 37443, 834, 1330, 28000, 1098, 62, 17201, 874, 198, 198, 6738, 42625, 14208, 13, 10414, 13, 6371, 82, 1330, 7572, 11, 19016, 11, 2291, 198, 198, 6738, 1334,...
2.701245
482
__author__ = "Christian Kongsgaard" __license__ = 'MIT' # -------------------------------------------------------------------------------------------------------------------- # # IMPORTS # Modules import pytest import datetime import os # RiBuild Modules from delphin_6_automation.backend import simulation_worker fro...
[ 834, 9800, 834, 796, 366, 20298, 9071, 82, 36232, 1, 198, 834, 43085, 834, 796, 705, 36393, 6, 198, 198, 2, 16529, 3880, 19351, 1303, 198, 2, 30023, 33002, 198, 198, 2, 3401, 5028, 198, 11748, 12972, 9288, 198, 11748, 4818, 8079, 19...
4.52459
122
import hashlib from django.core.serializers.json import DjangoJSONEncoder from django.forms import model_to_dict from rest_framework.decorators import api_view from rest_framework.response import Response from rest_framework.utils import json from .models import User, Match, TradeList, Suggestion, WishList, Book, Acco...
[ 11748, 12234, 8019, 198, 198, 6738, 42625, 14208, 13, 7295, 13, 46911, 11341, 13, 17752, 1330, 37770, 40386, 27195, 12342, 198, 6738, 42625, 14208, 13, 23914, 1330, 2746, 62, 1462, 62, 11600, 198, 6738, 1334, 62, 30604, 13, 12501, 273, ...
2.834061
229
# -*- coding: utf-8 -*- { 'name': 'Work schedule', 'version': '1.0', 'author': 'Daniel Demedziuk', 'sequence': 110, 'summary': 'Projects, Employees, Schedule', 'company': 'Daniel Demedziuk', 'description': """ Work schedule of employees ================================== This module provides...
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 90, 198, 220, 220, 220, 705, 3672, 10354, 705, 12468, 7269, 3256, 198, 220, 220, 220, 705, 9641, 10354, 705, 16, 13, 15, 3256, 198, 220, 220, 220, 705, 9800, 10354, ...
2.776442
416
from graphene_django.views import GraphQLView from sentry_sdk.api import start_transaction
[ 6738, 42463, 62, 28241, 14208, 13, 33571, 1330, 29681, 9711, 7680, 198, 6738, 1908, 563, 62, 21282, 74, 13, 15042, 1330, 923, 62, 7645, 2673, 628 ]
3.538462
26
#!/usr/bin/env python """ A tool to generate html and txt file for a markdown file. This is mainly used to generate test cases. """ import argparse import os from io import open import mdmail if __name__ == '__main__': main()
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 198, 37811, 198, 32, 2891, 284, 7716, 27711, 290, 256, 742, 2393, 329, 257, 1317, 2902, 2393, 13, 198, 198, 1212, 318, 8384, 973, 284, 7716, 1332, 2663, 13, 198, 37811, 198, 198, 11748, 1...
3.078947
76
import argparse import time import gc import os import numpy as np import torch from torch.utils.data import DataLoader from models.models import GroupIM from utils.user_utils import TrainUserDataset, EvalUserDataset from utils.group_utils import TrainGroupDataset, EvalGroupDataset from eval.evaluate import evaluate_u...
[ 11748, 1822, 29572, 198, 11748, 640, 198, 11748, 308, 66, 198, 11748, 28686, 198, 11748, 299, 32152, 355, 45941, 198, 11748, 28034, 198, 6738, 28034, 13, 26791, 13, 7890, 1330, 6060, 17401, 198, 198, 6738, 4981, 13, 27530, 1330, 4912, 3...
2.436353
4,957
import os import yaml import warnings from argparse import ArgumentParser from typing import Any, Union, Tuple from detectron2.config import get_cfg, CfgNode from detectron2.data import build_detection_test_loader from detectron2.data.datasets import register_coco_instances from detectron2.evaluation import COCOEvalu...
[ 11748, 28686, 198, 11748, 331, 43695, 198, 11748, 14601, 198, 198, 6738, 1822, 29572, 1330, 45751, 46677, 198, 6738, 19720, 1330, 4377, 11, 4479, 11, 309, 29291, 198, 198, 6738, 4886, 1313, 17, 13, 11250, 1330, 651, 62, 37581, 11, 327, ...
2.35693
1,342
while True: enemies = hero.findEnemies() for enemy in enemies: while enemy.health > 0: hero.attack(enemy) items = hero.findItems() for item in items: while hero.distanceTo(item) > 2: hero.moveXY(item.pos.x, item.pos.y)
[ 4514, 6407, 25, 201, 198, 220, 220, 220, 5775, 796, 4293, 13, 19796, 4834, 5090, 3419, 201, 198, 220, 220, 220, 329, 4472, 287, 5775, 25, 201, 198, 220, 220, 220, 220, 220, 220, 220, 981, 4472, 13, 13948, 1875, 657, 25, 201, 198, ...
2.056738
141
from typing import List day_num = "01" day_title = "Inverse Captcha" if __name__ == '__main__': main()
[ 6738, 19720, 1330, 7343, 198, 198, 820, 62, 22510, 796, 366, 486, 1, 198, 820, 62, 7839, 796, 366, 818, 4399, 6790, 11693, 1, 628, 628, 628, 198, 361, 11593, 3672, 834, 6624, 705, 834, 12417, 834, 10354, 198, 220, 220, 220, 1388, ...
2.533333
45
from dataclasses import dataclass import numpy as np from scipy.io import loadmat from ._channel import Channel, chan_types from ._data import Data from ._trial import Trial from .utils import check_lowered_string @dataclass
[ 6738, 4818, 330, 28958, 1330, 4818, 330, 31172, 198, 198, 11748, 299, 32152, 355, 45941, 198, 6738, 629, 541, 88, 13, 952, 1330, 3440, 6759, 198, 198, 6738, 47540, 17620, 1330, 11102, 11, 442, 272, 62, 19199, 198, 6738, 47540, 7890, 1...
3.382353
68
import numpy as np def trapezoid(t, t_start, t_flat_out, t_ramp_down): """ A symmetrical trapezoid of unit height Parameters ---------- t : array_like, 1D Vector of time values, specifying the entire domain of the sequence t_start : float Moment in time when the gradient is switc...
[ 11748, 299, 32152, 355, 45941, 628, 628, 198, 4299, 1291, 46057, 1868, 7, 83, 11, 256, 62, 9688, 11, 256, 62, 38568, 62, 448, 11, 256, 62, 81, 696, 62, 2902, 2599, 198, 220, 220, 220, 37227, 317, 23606, 34546, 1291, 46057, 1868, 2...
2.353061
490
def tempalte_PinkElegance(timecards, ignore_retweet=True): """ A builder for template body: PinkElegance Abandoned for incomplet js generation Source: https://codepen.io/mo7hamed/pen/dRoMwo """ # build body body_string = "" for i in range(0, len(timecards.content)): ...
[ 4299, 2169, 18596, 660, 62, 41912, 36, 1455, 590, 7, 2435, 27761, 11, 8856, 62, 1186, 7277, 28, 17821, 2599, 201, 198, 220, 220, 220, 37227, 317, 27098, 329, 11055, 1767, 25, 14657, 36, 1455, 590, 201, 198, 220, 220, 220, 220, 220, ...
1.604623
4,196
from distutils.core import setup setup( name="event-emitter-js", version="0.1.2", description="JavaScript-like EventEmitter class for Python 3", author="Thiago Costa", author_email="admin@rootbsd.info", url="https://github.com/thiagodk/python-event-emitter", package_dir={"": "src"}, pa...
[ 198, 6738, 1233, 26791, 13, 7295, 1330, 9058, 198, 198, 40406, 7, 198, 220, 220, 220, 1438, 2625, 15596, 12, 368, 1967, 12, 8457, 1600, 198, 220, 220, 220, 2196, 2625, 15, 13, 16, 13, 17, 1600, 198, 220, 220, 220, 6764, 2625, 2958...
2.589552
134
# -*- coding: utf-8 -*- """ TencentBlueKing is pleased to support the open source community by making 蓝鲸智云-节点管理(BlueKing-BK-NODEMAN) available. Copyright (C) 2017-2021 THL A29 Limited, a Tencent company. All rights reserved. Licensed under the MIT License (the "License"); you may not use this file except in compliance ...
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 37811, 198, 24893, 1087, 14573, 15708, 318, 10607, 284, 1104, 262, 1280, 2723, 2055, 416, 1642, 5525, 241, 251, 165, 110, 116, 162, 247, 118, 12859, 239, 12, 164, 232, ...
3.628483
323
#!/usr/bin/env python """ -------------------------------------------------------------------------------- Created: Jackson Lee 2012 This script reads in the ecoli reference alignment in a particular format and generates a mapping file which assigns a sequential count of each base pair to the current alignment posi...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 198, 37811, 198, 10097, 1783, 198, 41972, 25, 220, 220, 6612, 5741, 2321, 198, 1212, 4226, 9743, 287, 262, 304, 4033, 72, 4941, 19114, 287, 257, 1948, 5794, 290, 220, 198, 8612, 689, 257, ...
3.222642
795
from jaxns.prior_transforms.common import * from jaxns.prior_transforms.deterministic import * from jaxns.prior_transforms.identifiable import * from jaxns.prior_transforms.levy import * from jaxns.prior_transforms.mixture import * from jaxns.prior_transforms.prior_chain import PriorChain
[ 6738, 474, 897, 5907, 13, 3448, 273, 62, 7645, 23914, 13, 11321, 1330, 1635, 198, 6738, 474, 897, 5907, 13, 3448, 273, 62, 7645, 23914, 13, 67, 2357, 49228, 1330, 1635, 198, 6738, 474, 897, 5907, 13, 3448, 273, 62, 7645, 23914, 13, ...
2.929293
99
#!/usr/bin/env python # -*- coding: utf-8 -*- import requests import re import csv OEVK_URL = 'http://www.valasztas.hu/dyn/pv10vt/vertaj-static/pv10vt/v11.html' TELEPULES_URL = 'http://www.valasztas.hu/dyn/pv10vt/vertaj-static/pv10vt/maz/{}/oevk/{}/v12.html' SZAVAZOKOR_URL = 'http://www.valasztas.hu/dyn/pv10vt/vertaj-...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 198, 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 11748, 7007, 198, 11748, 302, 198, 11748, 269, 21370, 198, 198, 46, 20114, 42, 62, 21886, 796, 705, 4023, 1378, 2503, ...
1.848485
858
from pytest import mark, raises
[ 6738, 12972, 9288, 1330, 1317, 11, 12073, 628 ]
4.125
8
import abc from json import JSONDecodeError from typing import Any, Dict import aiohttp from pyjwt_key_fetcher.errors import JWTHTTPFetchError class HTTPClient(abc.ABC): """ Abstract base class for HTTP Clients used to fetch the openid-configuration and JWKs in JSON format. """ @abc.abstractmet...
[ 11748, 450, 66, 198, 6738, 33918, 1330, 19449, 10707, 1098, 12331, 198, 6738, 19720, 1330, 4377, 11, 360, 713, 198, 198, 11748, 257, 952, 4023, 198, 198, 6738, 12972, 73, 46569, 62, 2539, 62, 34045, 2044, 13, 48277, 1330, 449, 54, 422...
2.409295
667
from buttplug.client import ButtplugClient import discord from discord.ext import commands import lewd_manager as lm
[ 6738, 8530, 16875, 13, 16366, 1330, 36041, 16875, 11792, 198, 11748, 36446, 198, 6738, 36446, 13, 2302, 1330, 9729, 198, 198, 11748, 45179, 62, 37153, 355, 300, 76 ]
4.178571
28
#!/usr/bin/env python3 """Examples.""" from rouge import rouge_n_sentence_level from rouge import rouge_l_sentence_level from rouge import rouge_n_summary_level from rouge import rouge_l_summary_level from rouge import rouge_w_sentence_level from rouge import rouge_w_summary_level if __name__ == '__main__': # The ...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 18, 198, 37811, 27730, 526, 15931, 198, 6738, 13805, 469, 1330, 13805, 469, 62, 77, 62, 34086, 594, 62, 5715, 198, 6738, 13805, 469, 1330, 13805, 469, 62, 75, 62, 34086, 594, 62, 5715, 19...
2.590909
792
#!/usr/bin/env python if __name__ == "__main__": main()
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 628, 220, 220, 220, 220, 198, 220, 220, 220, 220, 198, 361, 11593, 3672, 834, 6624, 366, 834, 12417, 834, 1298, 198, 220, 220, 220, 1388, 3419, 198 ]
1.972222
36
# Man meets Woman --mpb99 # https://web.archive.org/web/20000529140001/http://www.geocities.com/Tokyo/Market/4878/animman.htm duration = 350 name = "Man meets Woman" a = "\n" frames = [ " "+a+ " "+a+ " (5)"+a+ " "+a+ " mpb99 "+a, " "+a+ " "+a+ " (4)"+a+ " "+a+ " ...
[ 2, 1869, 11185, 14381, 1377, 3149, 65, 2079, 198, 2, 3740, 1378, 12384, 13, 17474, 13, 2398, 14, 12384, 14, 2167, 22544, 1959, 1415, 18005, 14, 4023, 1378, 2503, 13, 469, 420, 871, 13, 785, 14, 19042, 8226, 14, 27470, 14, 2780, 3695...
1.313914
3,536
import asyncio import time import os import signal import nats if __name__ == '__main__': try: asyncio.run(main()) except: pass
[ 11748, 30351, 952, 198, 11748, 640, 198, 11748, 28686, 198, 11748, 6737, 198, 198, 11748, 299, 1381, 198, 198, 361, 11593, 3672, 834, 6624, 705, 834, 12417, 834, 10354, 198, 220, 220, 220, 1949, 25, 198, 220, 220, 220, 220, 220, 220, ...
2.333333
66
# -*- coding: utf-8 -*- """ Tencent is pleased to support the open source community by making 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) available. Copyright (C) 2017-2021 THL A29 Limited, a Tencent company. All rights reserved. Licensed under the MIT License (the "License"); you may not use this file except in co...
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 37811, 198, 24893, 1087, 318, 10607, 284, 1104, 262, 1280, 2723, 2055, 416, 1642, 5525, 241, 251, 165, 110, 116, 162, 247, 118, 12859, 239, 47, 7252, 50, 33176, 111, 2...
3.546816
267
#!/usr/bin/env python import csv,sys numbers = csv.reader(open(sys.argv[1])) drinkers = [] for row in numbers: if row[0] == "Name": continue # header row.. right? name = row[0] cups = sum(map(int, row[1:])) drinkers.append([cups, name]) drinkers.sort() drinkers.reverse() for (cups, name) in drinkers: ...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 198, 11748, 269, 21370, 11, 17597, 198, 77, 17024, 796, 269, 21370, 13, 46862, 7, 9654, 7, 17597, 13, 853, 85, 58, 16, 60, 4008, 198, 7109, 676, 364, 796, 17635, 198, 1640, 5752, 287, 3...
2.435714
140
# Copyright 2021 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # https://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, ...
[ 2, 15069, 33448, 3012, 11419, 198, 2, 198, 2, 49962, 739, 262, 24843, 13789, 11, 10628, 362, 13, 15, 357, 1169, 366, 34156, 15341, 198, 2, 345, 743, 407, 779, 428, 2393, 2845, 287, 11846, 351, 262, 13789, 13, 198, 2, 921, 743, 733...
3.285714
294
"""Mixin classes for Renderers that plot. """ from __future__ import unicode_literals import os import re import math import itertools import datetime import pandas from CGATReport.ResultBlock import ResultBlock, ResultBlocks from CGATReport.Plugins.Renderer import Renderer, NumpyMatrix, TableMatrix from CGATReport....
[ 37811, 35608, 259, 6097, 329, 28703, 19288, 326, 7110, 13, 198, 37811, 198, 198, 6738, 11593, 37443, 834, 1330, 28000, 1098, 62, 17201, 874, 198, 198, 11748, 28686, 198, 11748, 302, 198, 11748, 10688, 198, 11748, 340, 861, 10141, 198, 1...
2.096793
24,537
#! /usr/bin/env python # ______________________________________________________________________ '''cfg Defines the ControlFlowGraph class, which is used by the Numba translator to perform accurate phi node generation. When used as the main module, displays the control flow graph for arguments of the form <module.modu...
[ 2, 0, 1220, 14629, 14, 8800, 14, 24330, 21015, 198, 2, 220, 27193, 25947, 198, 7061, 6, 37581, 198, 198, 7469, 1127, 262, 6779, 37535, 37065, 1398, 11, 543, 318, 973, 416, 262, 399, 2178, 64, 198, 7645, 41880, 284, 1620, 7187, 872, ...
4.71134
194
from starkware.crypto.signature.signature import ( pedersen_hash, private_to_stark_key, private_key_to_ec_point_on_stark_curve, get_random_private_key, verify, inv_mod_curve_size, EC_GEN, ALPHA, FIELD_PRIME, EC_ORDER, get_y_coordinate) from starkware.crypto.signature.math_utils import ( ECPoint, div_mod, ec_ad...
[ 6738, 19278, 1574, 13, 29609, 78, 13, 12683, 1300, 13, 12683, 1300, 1330, 357, 198, 220, 220, 220, 7190, 46516, 62, 17831, 11, 2839, 62, 1462, 62, 301, 668, 62, 2539, 11, 2839, 62, 2539, 62, 1462, 62, 721, 62, 4122, 62, 261, 62, ...
2.489933
149
from nose.tools import assert_equal, assert_is_none from redict import ReDict, update_with_redict
[ 6738, 9686, 13, 31391, 1330, 6818, 62, 40496, 11, 6818, 62, 271, 62, 23108, 198, 6738, 2266, 713, 1330, 797, 35, 713, 11, 4296, 62, 4480, 62, 17407, 628 ]
3.413793
29
# -*- coding: utf-8 -*- # (c) Copyright 2020 Sensirion AG, Switzerland from __future__ import absolute_import, division, print_function from sensirion_shdlc_sfc5xxx import Sfc5xxxScaling import pytest @pytest.mark.needs_device @pytest.mark.parametrize("scaling", [ (Sfc5xxxScaling.NORMALIZED), (Sfc5xxxScaling...
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 2, 357, 66, 8, 15069, 12131, 14173, 343, 295, 13077, 11, 14679, 198, 198, 6738, 11593, 37443, 834, 1330, 4112, 62, 11748, 11, 7297, 11, 3601, 62, 8818, 198, 6738, 3054...
2.584906
212
from .actions import is_admin, get_messages, save_message, change_chat_status from telegram.ext import (Updater, CommandHandler, MessageHandler, Filters, CallbackContext, ConversationHandler) # TODO get questions in realtime while answering chat_id = None # used for storing to what c...
[ 6738, 764, 4658, 1330, 318, 62, 28482, 11, 651, 62, 37348, 1095, 11, 3613, 62, 20500, 11, 1487, 62, 17006, 62, 13376, 198, 6738, 573, 30536, 13, 2302, 1330, 357, 4933, 67, 729, 11, 9455, 25060, 11, 16000, 25060, 11, 7066, 1010, 11, ...
2.533156
377
try: import unittest2 as unittest except ImportError: import unittest # noqa from mock import Mock from cassandra import ProtocolVersion from cassandra.protocol import PrepareMessage, QueryMessage, ExecuteMessage
[ 198, 28311, 25, 198, 220, 220, 220, 1330, 555, 715, 395, 17, 355, 555, 715, 395, 198, 16341, 17267, 12331, 25, 198, 220, 220, 220, 1330, 555, 715, 395, 1303, 645, 20402, 198, 198, 6738, 15290, 1330, 44123, 198, 6738, 30606, 15918, 1...
3.539683
63
#coding:utf-8 # # id: functional.basic.db.26 # title: Empty DB - RDB$SECURITY_CLASSES # decription: Check for correct content of RDB$SECURITY_CLASSES in empty database. # tracker_id: # min_versions: ['2.5.7'] # versions: 3.0, 4.0 # qmid: functional.basic.db.db_26 import pytest from fi...
[ 2, 66, 7656, 25, 40477, 12, 23, 198, 2, 198, 2, 4686, 25, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 10345, 13, 35487, 13, 9945, 13, 2075, 198, 2, 3670, 25, 220, 220, 220, 220, 220, 220, 220, 33523, 20137, 532, 371, 110...
1.349268
332,306
import h5py import numpy as np from ..utils.datatypes import * REF_DT = h5py.special_dtype(ref=h5py.Reference) KEY_VALUE_DT = np.dtype([('key', h5py.special_dtype(vlen=str)), ('value', h5py.special_dtype(vlen=str))]) #special type for actor object types USER_TYPE_DT = h5py.special_dtype(enum=('i', ACTOR_TYPE_MAP)) IN...
[ 11748, 289, 20, 9078, 198, 11748, 299, 32152, 355, 45941, 198, 6738, 11485, 26791, 13, 19608, 265, 9497, 1330, 1635, 198, 198, 31688, 62, 24544, 796, 289, 20, 9078, 13, 20887, 62, 67, 4906, 7, 5420, 28, 71, 20, 9078, 13, 26687, 8, ...
2.447205
161
from fgt_transposer.exceptions import BackupException from os import path import logging log_msg = logging.getLogger(f"priLogger.{__name__}")
[ 6738, 277, 13655, 62, 7645, 1930, 263, 13, 1069, 11755, 1330, 35071, 16922, 198, 6738, 28686, 1330, 3108, 198, 11748, 18931, 198, 198, 6404, 62, 19662, 796, 18931, 13, 1136, 11187, 1362, 7, 69, 1, 3448, 11187, 1362, 13, 90, 834, 3672,...
3.130435
46
from __future__ import absolute_import, unicode_literals import pykka from mopidy import backend from . import playlists
[ 6738, 11593, 37443, 834, 1330, 4112, 62, 11748, 11, 28000, 1098, 62, 17201, 874, 198, 198, 11748, 12972, 74, 4914, 198, 198, 6738, 285, 404, 19325, 1330, 30203, 198, 198, 6738, 764, 1330, 711, 20713, 628 ]
3.472222
36
""" Crie um programa que leia nome, sexo e idade de várias pessoas, guardando os dados de cada pessoa em um dicionário e todos os dicionários em uma lista. No final, msotre: a - quantas pessoas foram cadastradas/ b - a média de idade do grupo/ c- uma lista com todas as mulheres. d - uma lista com todas as pessoas com i...
[ 37811, 327, 5034, 23781, 1430, 64, 8358, 443, 544, 299, 462, 11, 1714, 78, 304, 4686, 671, 390, 410, 6557, 380, 292, 279, 408, 78, 292, 11, 4860, 25440, 28686, 9955, 418, 390, 269, 4763, 279, 408, 12162, 795, 23781, 198, 67, 47430, ...
2.24553
839
import pandas as pd import os from toolbox.utils import check_file from collections import namedtuple,deque Task = namedtuple('Task',['column_name','value'])
[ 11748, 19798, 292, 355, 279, 67, 198, 11748, 28686, 198, 6738, 2891, 3524, 13, 26791, 1330, 2198, 62, 7753, 198, 6738, 17268, 1330, 3706, 83, 29291, 11, 2934, 4188, 628, 198, 198, 25714, 796, 3706, 83, 29291, 10786, 25714, 3256, 17816, ...
3.333333
48
"""comtypes.server.register - register and unregister a COM object. Exports the UseCommandLine function. UseCommandLine is called with the COM object classes that a module exposes. It parses the Windows command line and takes the appropriate actions. These command line options are supported: /regserver - register t...
[ 37811, 785, 19199, 13, 15388, 13, 30238, 532, 7881, 290, 555, 30238, 257, 9440, 2134, 13, 198, 198, 3109, 3742, 262, 5765, 21575, 13949, 2163, 13, 220, 5765, 21575, 13949, 318, 1444, 351, 198, 1169, 9440, 2134, 6097, 326, 257, 8265, 3...
2.221957
4,600
import copy import json import pkg_resources from django.conf import settings from django.test import override_settings backend_node_response = json.loads( pkg_resources.resource_stream(__name__, 'backend_node.json').read().decode() )
[ 11748, 4866, 198, 11748, 33918, 198, 198, 11748, 279, 10025, 62, 37540, 198, 6738, 42625, 14208, 13, 10414, 1330, 6460, 198, 6738, 42625, 14208, 13, 9288, 1330, 20957, 62, 33692, 198, 198, 1891, 437, 62, 17440, 62, 26209, 796, 33918, 13...
3.184211
76
import numpy as np import math Esubo = 8.854 * pow(10,-12) k = 8.988 * pow(10,9) chargeconstant = 1.602 * pow(10,-19) conductingRing()
[ 11748, 299, 32152, 355, 45941, 198, 11748, 10688, 198, 198, 36, 7266, 78, 796, 807, 13, 23, 4051, 1635, 7182, 7, 940, 12095, 1065, 8, 198, 74, 796, 807, 13, 24, 3459, 1635, 7182, 7, 940, 11, 24, 8, 198, 10136, 9979, 415, 796, 35...
2.1875
64
import pygame_gui import pygame from pygame.transform import scale from .game_engine import RESOLUTION, ga, manager HD = (1280, 720) FULL_HD = (1920, 1080) def vertical(size, startcolor, endcolor): """ Draws a vertical linear gradient filling the entire surface. Returns a surface filled with the gradie...
[ 11748, 12972, 6057, 62, 48317, 198, 11748, 12972, 6057, 198, 198, 6738, 12972, 6057, 13, 35636, 1330, 5046, 198, 198, 6738, 764, 6057, 62, 18392, 1330, 15731, 3535, 35354, 11, 31986, 11, 4706, 198, 198, 10227, 796, 357, 1065, 1795, 11, ...
2.051802
444
from flask import Blueprint, render_template, abort, session, redirect, url_for, request from functools import wraps from lib.Users import Users from lib.Groups import Groups from lib.Database import Database import json internal_routes = Blueprint('internal_routes', __name__, template_folder='templates') users = User...
[ 6738, 42903, 1330, 39932, 11, 8543, 62, 28243, 11, 15614, 11, 6246, 11, 18941, 11, 19016, 62, 1640, 11, 2581, 198, 6738, 1257, 310, 10141, 1330, 27521, 198, 6738, 9195, 13, 14490, 1330, 18987, 198, 6738, 9195, 13, 38, 14459, 1330, 274...
3.057816
467
# -*- encoding: utf-8 -*- import os from setuptools import setup setup( name="drf-fast-serializer", version="0.1-dev", description="A fast serializer mixin for Django request framework", long_description=read('readme.md'), url='https://github.com/akaariai/drf-fast-serializer', license='MIT', ...
[ 2, 532, 9, 12, 21004, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 11748, 28686, 198, 6738, 900, 37623, 10141, 1330, 9058, 198, 40406, 7, 198, 220, 220, 220, 1438, 2625, 7109, 69, 12, 7217, 12, 46911, 7509, 1600, 198, 220, 220, 220, 2...
2.564014
289
from __future__ import annotations from PIL import Image from typing import Optional from arbies import drawing from arbies.drawing import HorizontalAlignment, VerticalAlignment from arbies.manager import Manager, ConfigDict from arbies.workers import Worker
[ 6738, 11593, 37443, 834, 1330, 37647, 198, 6738, 350, 4146, 1330, 7412, 198, 6738, 19720, 1330, 32233, 198, 6738, 610, 29846, 1330, 8263, 198, 6738, 610, 29846, 13, 19334, 278, 1330, 6075, 38342, 2348, 16747, 11, 38937, 2348, 16747, 198, ...
4.333333
60
from my.core import warnings warnings.medium('my.reading.goodreads is deprecated! Use my.goodreads instead!') from ..goodreads import *
[ 6738, 616, 13, 7295, 1330, 14601, 198, 198, 40539, 654, 13, 24132, 10786, 1820, 13, 25782, 13, 11274, 40779, 318, 39224, 0, 5765, 616, 13, 11274, 40779, 2427, 0, 11537, 198, 198, 6738, 11485, 11274, 40779, 1330, 1635, 198 ]
3.538462
39
# -*- coding: utf-8 -*- """Converting brreg_activity_codes from fixture to alembic migration Revision ID: 56aa02f54e74 Revises: 357cc9fc466b Create Date: 2014-01-23 08:21:22.953015 """ # revision identifiers, used by Alembic. from sqlalchemy.sql import table, column from sqlalchemy import String revision = '56aa02f...
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 37811, 3103, 48820, 865, 2301, 62, 21797, 62, 40148, 422, 29220, 284, 31341, 2022, 291, 13472, 198, 198, 18009, 1166, 4522, 25, 7265, 7252, 2999, 69, 4051, 68, 4524, 198...
2.704225
142
key = int(input()) lines = int(input()) decrypted = "" for _ in range(lines): letter = input() decrypted += chr(ord(letter) + key) print(decrypted)
[ 2539, 796, 493, 7, 15414, 28955, 198, 6615, 796, 493, 7, 15414, 28955, 198, 198, 12501, 15109, 796, 13538, 198, 198, 1640, 4808, 287, 2837, 7, 6615, 2599, 628, 220, 220, 220, 3850, 796, 5128, 3419, 198, 220, 220, 220, 875, 15109, 15...
2.65
60
#!/usr/bin/python2.7 # -*- coding: utf-8 -*- # vim:ts=4:sw=4:softtabstop=4:smarttab:expandtab # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # http://www.apache.org/licenses/LICENSE-2.0 ...
[ 2, 48443, 14629, 14, 8800, 14, 29412, 17, 13, 22, 198, 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 2, 43907, 25, 912, 28, 19, 25, 2032, 28, 19, 25, 4215, 8658, 11338, 28, 19, 25, 27004, 8658, 25, 11201, 392,...
2.724605
443
import sys import numpy import re main()
[ 11748, 25064, 198, 11748, 299, 32152, 198, 11748, 302, 628, 628, 628, 628, 628, 198, 12417, 3419, 198 ]
2.833333
18
# 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, software # distributed under t...
[ 2, 49962, 739, 262, 24843, 13789, 11, 10628, 362, 13, 15, 357, 1169, 366, 34156, 15341, 345, 743, 198, 2, 407, 779, 428, 2393, 2845, 287, 11846, 351, 262, 13789, 13, 921, 743, 7330, 198, 2, 257, 4866, 286, 262, 13789, 379, 198, 2,...
2.949231
650
import itertools list_num = list() n = int(input()) k = int(input()) for _ in range(n) : number = input() list_num.append(number) cat_num = itertools.combinations(list_num, k) _answer = list() for nums in cat_num : num = itertools.permutations(nums, k) for n in num : str_sum = '' for...
[ 11748, 340, 861, 10141, 198, 4868, 62, 22510, 796, 1351, 3419, 198, 77, 796, 493, 7, 15414, 28955, 198, 74, 796, 493, 7, 15414, 28955, 198, 1640, 4808, 287, 2837, 7, 77, 8, 1058, 220, 198, 220, 220, 220, 1271, 796, 5128, 3419, 198...
2.15311
209
""" PASSENGERS """ numPassengers = 30558 passenger_arriving = ( (11, 2, 10, 9, 2, 7, 2, 5, 2, 1, 1, 0, 0, 9, 8, 6, 8, 2, 5, 1, 5, 4, 1, 1, 1, 0), # 0 (9, 12, 9, 9, 8, 2, 1, 4, 2, 0, 1, 2, 0, 8, 6, 8, 5, 2, 5, 7, 3, 3, 1, 0, 2, 0), # 1 (4, 3, 8, 10, 7, 5, 1, 6, 4, 4, 1, 0, 0, 15, 10, 4, 8, 4, 5, 3, 2, 5, 1, 2, 1...
[ 198, 37811, 198, 47924, 26808, 4877, 198, 37811, 198, 198, 22510, 14478, 9302, 796, 1542, 40486, 198, 198, 6603, 6540, 62, 283, 380, 1075, 796, 357, 198, 197, 7, 1157, 11, 362, 11, 838, 11, 860, 11, 362, 11, 767, 11, 362, 11, 642,...
1.940578
134,512
# import sys import os import sys import unittest from hdlConvertorAst.language import Language from tests.extern_test_utils import generate_external_testcase_class, \ ExternTestSpec, check_git_submodule from tests.file_utils import find_files from tests.time_logging_test_runner import TimeLoggingTestRunner if sy...
[ 2, 1330, 25064, 198, 11748, 28686, 198, 11748, 25064, 198, 11748, 555, 715, 395, 198, 198, 6738, 289, 25404, 3103, 1851, 273, 33751, 13, 16129, 1330, 15417, 198, 6738, 5254, 13, 1069, 759, 62, 9288, 62, 26791, 1330, 7716, 62, 22615, 6...
2.38326
681
""" Question 88 : With a given list [12, 24,35, 24, 88,120, 155, 88, 120, 155], write a program to print this list after removing all duplicate values with original order reserved. Hints : Use set() to store a number of values without duplicate. """ # Solution : li = [12, 24,35, 24, 88,120, 155, 88,...
[ 37811, 198, 24361, 9193, 1058, 198, 220, 220, 220, 2080, 257, 1813, 1351, 685, 1065, 11, 1987, 11, 2327, 11, 1987, 11, 9193, 11, 10232, 11, 20708, 11, 9193, 11, 7982, 11, 20708, 4357, 198, 220, 220, 220, 3551, 257, 1430, 284, 3601, ...
2.787671
146
import logging import os import tarfile from typing import List, Optional, Dict from ase.io import read import numpy as np import torch from schnetpack.data import * from schnetpack.data import AtomsDataModuleError, AtomsDataModule __all__ = ["OrganicMaterialsDatabase"] class OrganicMaterialsDatabase(AtomsDataMod...
[ 11748, 18931, 198, 11748, 28686, 198, 11748, 13422, 7753, 198, 6738, 19720, 1330, 7343, 11, 32233, 11, 360, 713, 198, 6738, 257, 325, 13, 952, 1330, 1100, 198, 198, 11748, 299, 32152, 355, 45941, 198, 198, 11748, 28034, 198, 6738, 264, ...
2.304014
2,217
# coding=utf-8 # Filename: cmd.py """ KM3Pipe command line utility. Usage: km3pipe test km3pipe update [GIT_BRANCH] km3pipe detx DET_ID [-m] [-t T0_SET] [-c CALIBR_ID] km3pipe runtable [-n RUNS] [-s REGEX] [--temporary] DET_ID km3pipe runinfo [--temporary] DET_ID RUN km3pipe retrieve DET_ID RUN...
[ 2, 19617, 28, 40477, 12, 23, 198, 2, 7066, 12453, 25, 23991, 13, 9078, 198, 37811, 198, 42, 44, 18, 47, 3757, 3141, 1627, 10361, 13, 198, 198, 28350, 25, 198, 220, 220, 220, 10571, 18, 34360, 1332, 198, 220, 220, 220, 10571, 18, ...
2.332278
948
import os import logging from pathlib import Path from functools import reduce, partial from operator import getitem from datetime import datetime # from logger import setup_logging from utils import read_yml, write_yml import collections import json # helper functions to update config dict with custom cli options ...
[ 11748, 28686, 198, 11748, 18931, 198, 6738, 3108, 8019, 1330, 10644, 198, 6738, 1257, 310, 10141, 1330, 4646, 11, 13027, 198, 6738, 10088, 1330, 651, 9186, 198, 6738, 4818, 8079, 1330, 4818, 8079, 198, 2, 422, 49706, 1330, 9058, 62, 640...
3.242424
198
# Copyright (c) 2019 Horizon Robotics. 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 applicab...
[ 2, 15069, 357, 66, 8, 13130, 22776, 47061, 13, 1439, 6923, 33876, 13, 198, 2, 198, 2, 49962, 739, 262, 24843, 13789, 11, 10628, 362, 13, 15, 357, 1169, 366, 34156, 15341, 198, 2, 345, 743, 407, 779, 428, 2393, 2845, 287, 11846, 35...
2.221001
8,552
import json import codecs import itertools import numpy as np # If length -1, no validation data
[ 11748, 33918, 198, 11748, 40481, 82, 198, 11748, 340, 861, 10141, 198, 11748, 299, 32152, 355, 45941, 198, 198, 2, 1002, 4129, 532, 16, 11, 645, 21201, 1366, 198 ]
3.37931
29
from __future__ import division from __future__ import print_function import argparse import logging import json import numpy as np import tensorflow as tf from tensorflow.python.lib.io import file_io # pylint: disable=E0611 from tqdm import tqdm from sciencebeam_gym.preprocess.color_map import ( parse_color_ma...
[ 6738, 11593, 37443, 834, 1330, 7297, 198, 6738, 11593, 37443, 834, 1330, 3601, 62, 8818, 198, 198, 11748, 1822, 29572, 198, 11748, 18931, 198, 11748, 33918, 198, 198, 11748, 299, 32152, 355, 45941, 198, 11748, 11192, 273, 11125, 355, 4870...
2.618467
574
#!/usr/bin/python import sys import os import re import fnmatch import string import my_print import matplotlib.pyplot as plt import get work_dir = "/Users/Anderson/GoogleDrive/NOCulator/hring/src/bin" #work_dir = "//Users/Anderson/Desktop/SweepAll_8x8/results/homo/8x8/design/17" input_file = "bs_homo_8x...
[ 2, 48443, 14629, 14, 8800, 14, 29412, 201, 198, 201, 198, 11748, 25064, 201, 198, 11748, 28686, 201, 198, 11748, 302, 201, 198, 11748, 24714, 15699, 201, 198, 11748, 4731, 201, 198, 11748, 616, 62, 4798, 201, 198, 11748, 2603, 29487, ...
1.78796
1,877
from __future__ import absolute_import import csv from six import string_types, StringIO, PY2 from scrapy.link import Link from .base import BaseLinkExtractor # see http://docs.python.org/2/library/csv.html#csv-fmt-params _FORMAT_PARAMETERS = ( ('delimiter', ','), ('quotechar', '"'), ('doublequote', True...
[ 6738, 11593, 37443, 834, 1330, 4112, 62, 11748, 198, 11748, 269, 21370, 198, 198, 6738, 2237, 1330, 4731, 62, 19199, 11, 10903, 9399, 11, 350, 56, 17, 198, 198, 6738, 15881, 88, 13, 8726, 1330, 7502, 198, 6738, 764, 8692, 1330, 7308, ...
2.682927
164
from array import array import struct import pytest import arcade def test_setitem(ctx): """Testing __setitem__""" num_sprites = 10 spritelist = make_named_sprites(num_sprites) # Assign the same item to the same slot for i in range(num_sprites): spritelist[i] = spritelist[i] ...
[ 6738, 7177, 1330, 7177, 198, 11748, 2878, 198, 11748, 12972, 9288, 198, 11748, 27210, 628, 628, 628, 198, 198, 4299, 1332, 62, 2617, 9186, 7, 49464, 2599, 198, 220, 220, 220, 37227, 44154, 11593, 2617, 9186, 834, 37811, 198, 220, 220, ...
2.495475
442
# -*- coding: utf-8 -*- """Console script for chibi_gob_mx_elasticsearch.""" import random import argparse import sys import argparse import sys from chibi.config import basic_config from chibi.file import Chibi_path from chibi.config import configuration from chibi_gob_mx.open_data import Open_data from chibi_gob_mx....
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 198, 37811, 47581, 4226, 329, 442, 27567, 62, 44270, 62, 36802, 62, 417, 3477, 12947, 526, 15931, 198, 11748, 4738, 198, 11748, 1822, 29572, 198, 11748, 25064, 198, 11748,...
2.710526
570
import pytest from brownie import Wei, Contract, reverts, interface from brownie.test import given, strategy import time
[ 11748, 12972, 9288, 198, 6738, 7586, 494, 1330, 220, 29341, 11, 17453, 11, 302, 24040, 11, 7071, 198, 6738, 7586, 494, 13, 9288, 1330, 1813, 11, 4811, 198, 11748, 640, 628 ]
3.967742
31
# Author: Jacek Komorowski # Warsaw University of Technology import numpy as np import torch from torch.utils.data import DataLoader import MinkowskiEngine as ME from datasets.tactileDataset import tactileDataset from datasets.augmentation import TrainCloudTransform, TrainCloudSetTransform from datasets.samplers impo...
[ 2, 6434, 25, 49674, 74, 32364, 273, 12079, 198, 2, 32955, 2059, 286, 8987, 198, 198, 11748, 299, 32152, 355, 45941, 198, 11748, 28034, 198, 6738, 28034, 13, 26791, 13, 7890, 1330, 6060, 17401, 198, 11748, 337, 676, 12079, 13798, 355, ...
2.605433
773