content
stringlengths
1
1.05M
input_ids
listlengths
1
883k
ratio_char_token
float64
1
22.9
token_count
int64
1
883k
#!/usr/bin/env python3 """UrsaLeo LEDdebug board LED demo Turn the LED's on one at a time, then all off""" import time ON = 1 OFF = 0 DELAY = 0.5 # seconds try: from LEDdebug import LEDdebug except ImportError: try: import sys import os sys.path.append("..") sys.path.appen...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 18, 198, 37811, 52, 3808, 64, 3123, 78, 12365, 24442, 3096, 12365, 13605, 198, 220, 220, 6756, 262, 12365, 338, 319, 530, 379, 257, 640, 11, 788, 477, 572, 37811, 198, 198, 11748, 640, 19...
2.211765
255
#!/usr/bin/env python ################################################################################### ## ## Project: COVID -19 xDNN Classifier 2020 ## Version: 1.0.0 ## Module: Server ## Desription: The COVID -19 xDNN Classifier 2020 server. ## License: MIT ## Copyright: 2021, Asociacion De Investigac...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 198, 29113, 29113, 14468, 21017, 198, 2235, 198, 2235, 4935, 25, 220, 220, 220, 7375, 11008, 532, 1129, 2124, 35, 6144, 5016, 7483, 12131, 198, 2235, 10628, 25, 220, 220, 220, 352, 13, 15, ...
3.867647
544
#!/usr/bin/env python # -*- coding: utf-8 -*- # # Generated from FHIR 3.0.0.11832 on 2017-03-22. # 2017, SMART Health IT. import io import json import os import unittest from . import allergyintolerance from .fhirdate import FHIRDate
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 198, 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 2, 198, 2, 220, 2980, 515, 422, 376, 39, 4663, 513, 13, 15, 13, 15, 13, 16817, 2624, 319, 2177, 12, 3070, 12, 182...
2.536842
95
import time import random import requests from lxml import etree import pymongo from .url_file import mjx_weibo, mjx_dy, mjx_ks, mjx_xhs if __name__ == '__main__': mjx = MJX() mjx.run()
[ 11748, 640, 198, 11748, 4738, 198, 11748, 7007, 198, 6738, 300, 19875, 1330, 2123, 631, 198, 11748, 279, 4948, 25162, 198, 6738, 764, 6371, 62, 7753, 1330, 285, 73, 87, 62, 732, 26762, 11, 285, 73, 87, 62, 9892, 11, 285, 73, 87, 6...
2.275862
87
import numpy as np from keras.utils import np_utils import pandas as pd import sys from sklearn.preprocessing import LabelEncoder from sklearn.discriminant_analysis import QuadraticDiscriminantAnalysis as QDA from sklearn.decomposition import PCA import os from sklearn.externals import joblib from sklearn.metrics impor...
[ 11748, 299, 32152, 355, 45941, 198, 6738, 41927, 292, 13, 26791, 1330, 45941, 62, 26791, 198, 11748, 19798, 292, 355, 279, 67, 198, 11748, 25064, 198, 6738, 1341, 35720, 13, 3866, 36948, 1330, 36052, 27195, 12342, 198, 6738, 1341, 35720, ...
2.302423
1,197
import struct import json from collections import OrderedDict file_path = "data0002.bin" show_offset = True show_hash = False loaded_data = 0 file = open(file_path, mode='rb') data = file.read() data_set = OrderedDict() if len(data) > 0x40 and data[0:4] == b'ggdL': file.seek(0x0c, 0) numOfDa...
[ 11748, 2878, 201, 198, 11748, 33918, 201, 198, 6738, 17268, 1330, 14230, 1068, 35, 713, 201, 198, 201, 198, 7753, 62, 6978, 796, 366, 7890, 34215, 13, 8800, 1, 201, 198, 12860, 62, 28968, 796, 6407, 201, 198, 12860, 62, 17831, 796, ...
2.292308
325
## to change recursion limit import sys print(sys.getrecursionlimit()) #Return the current value of the recursion limit #1000 ## change the limit sys.setrecursionlimit(2000) # change value of the recursion limit #2000 i=0 greet() # hellow 1996 then error
[ 2235, 284, 1487, 220, 664, 24197, 4179, 220, 198, 11748, 25064, 198, 198, 4798, 7, 17597, 13, 1136, 8344, 24197, 32374, 28955, 220, 1303, 13615, 262, 1459, 1988, 286, 262, 664, 24197, 4179, 198, 2, 12825, 198, 198, 2235, 1487, 262, 41...
3
91
from django.test import TestCase, override_settings from django.urls import reverse from pages.models import Article, HomePage
[ 6738, 42625, 14208, 13, 9288, 1330, 6208, 20448, 11, 20957, 62, 33692, 198, 6738, 42625, 14208, 13, 6371, 82, 1330, 9575, 198, 198, 6738, 5468, 13, 27530, 1330, 10172, 11, 5995, 9876, 628 ]
3.909091
33
#!/usr/bin/env python import logging import sys sys.path.append("../../") sys.path.append("pylib") import time import datetime import pymongo import uuid import os import subprocess import os.path import settings from common.utils import getSiteDBCollection sys.path.insert(0, "../../") logging_manager = LoggingMan...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 198, 11748, 18931, 198, 11748, 25064, 198, 17597, 13, 6978, 13, 33295, 7203, 40720, 40720, 4943, 198, 17597, 13, 6978, 13, 33295, 7203, 79, 2645, 571, 4943, 198, 11748, 640, 198, 11748, 4818,...
2.762684
611
from decimal import Decimal as D from django.test import TestCase from oscar.apps.basket.models import Basket from oscar.apps.partner import strategy from oscar.test import factories from oscar.apps.catalogue.models import Option
[ 6738, 32465, 1330, 4280, 4402, 355, 360, 198, 198, 6738, 42625, 14208, 13, 9288, 1330, 6208, 20448, 198, 198, 6738, 267, 13034, 13, 18211, 13, 65, 11715, 13, 27530, 1330, 347, 11715, 198, 6738, 267, 13034, 13, 18211, 13, 3911, 1008, 1...
3.522388
67
import pytest import os import sqlalchemy import contextlib
[ 11748, 12972, 9288, 198, 11748, 28686, 198, 11748, 44161, 282, 26599, 198, 11748, 4732, 8019, 628 ]
3.8125
16
#!/usr/bin/env python3 import json import os from pathlib import Path import numpy as np from natsort import natsorted try: from docopt import docopt from marko.ext.gfm import gfm import pygal from pygal.style import Style, DefaultStyle except ImportError as e: raise Exception('Some external depe...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 18, 198, 198, 11748, 33918, 198, 11748, 28686, 198, 6738, 3108, 8019, 1330, 10644, 198, 198, 11748, 299, 32152, 355, 45941, 198, 6738, 299, 1381, 419, 1330, 299, 1381, 9741, 198, 198, 28311, ...
2.444301
772
# # This file is part of LiteX. # # Copyright (c) 2014-2019 Florent Kermarrec <florent@enjoy-digital.fr> # Copyright (c) 2019 msloniewski <marcin.sloniewski@gmail.com> # Copyright (c) 2019 vytautasb <v.buitvydas@limemicro.com> # SPDX-License-Identifier: BSD-2-Clause import os import subprocess import sys import math f...
[ 2, 198, 2, 770, 2393, 318, 636, 286, 27395, 55, 13, 198, 2, 198, 2, 15069, 357, 66, 8, 1946, 12, 23344, 23347, 429, 17337, 3876, 8344, 1279, 2704, 382, 429, 31, 268, 2633, 12, 34725, 13, 8310, 29, 198, 2, 15069, 357, 66, 8, 13...
4.24359
234
"""Various helpers and utilities that don't belong anywhere else.""" from typing import Dict, Generic, TypeVar KeyType = TypeVar('KeyType') ValueType = TypeVar('ValueType')
[ 37811, 40009, 49385, 290, 20081, 326, 836, 470, 5594, 6609, 2073, 526, 15931, 198, 198, 6738, 19720, 1330, 360, 713, 11, 42044, 11, 5994, 19852, 198, 198, 9218, 6030, 796, 5994, 19852, 10786, 9218, 6030, 11537, 198, 11395, 6030, 796, 59...
3.723404
47
from rest_framework.routers import DefaultRouter from records.views import RecordViewSet router = DefaultRouter() router.register('', RecordViewSet, basename='records') urlpatterns = router.urls
[ 6738, 1334, 62, 30604, 13, 472, 1010, 1330, 15161, 49, 39605, 198, 198, 6738, 4406, 13, 33571, 1330, 13266, 7680, 7248, 198, 198, 472, 353, 796, 15161, 49, 39605, 3419, 198, 472, 353, 13, 30238, 10786, 3256, 13266, 7680, 7248, 11, 161...
3.413793
58
# -*- coding: utf-8 -*- from __future__ import absolute_import, division, print_function import os from rhea import RheaError from rhea import parser as rhea_parser from azure.common import AzureHttpError from azure.storage.blob.models import BlobPrefix from polystores.clients.azure_client import get_blob_service_c...
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 6738, 11593, 37443, 834, 1330, 4112, 62, 11748, 11, 7297, 11, 3601, 62, 8818, 198, 198, 11748, 28686, 198, 198, 6738, 374, 21632, 1330, 371, 21632, 12331, 198, 6738, 374...
3.337209
172
""" Copyright (c) 2016 Jet Propulsion Laboratory, California Institute of Technology. All rights reserved """ import sys import numpy as np import logging import time import types from datetime import datetime from netCDF4 import Dataset from nexustiles.nexustiles import NexusTileService from webservice.webmodel impor...
[ 37811, 198, 15269, 357, 66, 8, 1584, 19013, 8772, 15204, 18643, 11, 198, 25284, 5136, 286, 8987, 13, 220, 1439, 2489, 10395, 198, 37811, 198, 11748, 25064, 198, 11748, 299, 32152, 355, 45941, 198, 11748, 18931, 198, 11748, 640, 198, 117...
2.159801
2,015
import numpy as np from collections import defaultdict, Counter from .rbbox_np import rbbox_iou
[ 11748, 299, 32152, 355, 45941, 198, 198, 6738, 17268, 1330, 4277, 11600, 11, 15034, 198, 198, 6738, 764, 26145, 3524, 62, 37659, 1330, 374, 65, 3524, 62, 72, 280, 628, 628 ]
3.258065
31
import logging import pygame from app import * from pygame.locals import * from werkzeug.serving import run_simple from web import webapp as w import data_access as da logging.basicConfig(filename='setlistmanager.log', level=logging.DEBUG) SCREEN_WIDTH = 160 SCREEN_HEIGHT = 128
[ 198, 11748, 18931, 198, 11748, 12972, 6057, 198, 6738, 598, 1330, 1635, 198, 6738, 12972, 6057, 13, 17946, 874, 1330, 1635, 198, 6738, 266, 9587, 2736, 1018, 13, 31293, 1330, 1057, 62, 36439, 198, 198, 6738, 3992, 1330, 3992, 1324, 355,...
3.053763
93
import json import pandas as pd import numpy as np from matplotlib import pyplot as plt import simulation from eval_functions import oks_score_multi import utils
[ 11748, 33918, 198, 11748, 19798, 292, 355, 279, 67, 198, 11748, 299, 32152, 355, 45941, 198, 6738, 2603, 29487, 8019, 1330, 12972, 29487, 355, 458, 83, 198, 11748, 18640, 198, 6738, 5418, 62, 12543, 2733, 1330, 267, 591, 62, 26675, 62, ...
3.5
46
import requests import time import os import sys import json import threading from getpass import getpass import schedule import event as e import configuration as c import RPi.GPIO as GPIO #SERVER_URL = "https://home-automation-289621.uc.r.appspot.com" #SERVER_URL = "http://127.0.0.1:4747" SERVER_URL = "http://192.16...
[ 11748, 7007, 198, 11748, 640, 198, 11748, 28686, 198, 11748, 25064, 198, 11748, 33918, 198, 11748, 4704, 278, 198, 6738, 651, 6603, 1330, 651, 6603, 198, 11748, 7269, 198, 11748, 1785, 355, 304, 198, 11748, 8398, 355, 269, 198, 11748, 2...
2.513812
181
from typing import Dict, Union from graphql import ( GraphQLBoolean, GraphQLFloat, GraphQLInputField, GraphQLInt, GraphQLList, GraphQLNonNull, GraphQLScalarType, GraphQLString, ) from sqlalchemy import ARRAY, Boolean, Float, Integer from sqlalchemy.dialects.postgresql import ARRAY as PG...
[ 6738, 19720, 1330, 360, 713, 11, 4479, 198, 198, 6738, 4823, 13976, 1330, 357, 198, 220, 220, 220, 29681, 9711, 46120, 13087, 11, 198, 220, 220, 220, 29681, 9711, 43879, 11, 198, 220, 220, 220, 29681, 9711, 20560, 15878, 11, 198, 220,...
2.774436
133
import Crypto.Random.random as rand import itertools import math #for log import sys if len(sys.argv) > 2: kk = 2 parts = 7 kk = rand.randint(1, int(parts / 4)) #how many sends to demand fuzz = 1 decideAmounts(float(sys.argv[1]), float(sys.argv[2]), parts, kk, fuzz)
[ 11748, 36579, 13, 29531, 13, 25120, 355, 43720, 198, 11748, 340, 861, 10141, 198, 11748, 10688, 1303, 1640, 2604, 198, 11748, 25064, 628, 628, 198, 361, 18896, 7, 17597, 13, 853, 85, 8, 1875, 362, 25, 198, 220, 220, 220, 479, 74, 79...
2.466102
118
import numpy as np import torch import torch.nn as nn import torch.nn.functional as F from einops import rearrange from .shared import Conv_Block from ..utils.utils import zeros, mean_cube, last_frame, ENS
[ 11748, 299, 32152, 355, 45941, 198, 11748, 28034, 198, 11748, 28034, 13, 20471, 355, 299, 77, 198, 11748, 28034, 13, 20471, 13, 45124, 355, 376, 198, 6738, 304, 259, 2840, 1330, 37825, 858, 198, 6738, 764, 28710, 1330, 34872, 62, 12235,...
3.322581
62
# Copyright (C) 2017 O.S. Systems Software LTDA. # This software is released under the MIT License import unittest from hydra import Hydra, Client
[ 2, 15069, 357, 34, 8, 2177, 440, 13, 50, 13, 11998, 10442, 34146, 5631, 13, 198, 2, 770, 3788, 318, 2716, 739, 262, 17168, 13789, 198, 198, 11748, 555, 715, 395, 198, 198, 6738, 25039, 1330, 31613, 11, 20985, 628 ]
3.75
40
# Copyright 2020 The FastEstimator Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by appl...
[ 2, 15069, 12131, 383, 12549, 22362, 320, 1352, 46665, 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, ...
4.135417
192
#!/usr/bin/env python from scTools import interval, primeForm from scTools.rowData import ats from scTools.scData import * count = 1 for w in ats: prime = primeForm(w[0:6]) print '%3d\t' % count, for x in w: print '%X' % x, print ' ', intervals = interval(w) for y in intervals: ...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 198, 6738, 629, 33637, 1330, 16654, 11, 6994, 8479, 198, 6738, 629, 33637, 13, 808, 6601, 1330, 379, 82, 198, 6738, 629, 33637, 13, 1416, 6601, 1330, 1635, 198, 198, 9127, 796, 352, 198, ...
2.134483
290
import asyncio import click from precon.devices_handlers.distance_sensor import show_distance as show_distance_func from precon.remote_control import steer_vehicle, Screen try: import RPi.GPIO as GPIO except (RuntimeError, ModuleNotFoundError): import fake_rpi GPIO = fake_rpi.RPi.GPIO
[ 11748, 30351, 952, 198, 198, 11748, 3904, 198, 198, 6738, 49394, 13, 42034, 62, 4993, 8116, 13, 30246, 62, 82, 22854, 1330, 905, 62, 30246, 355, 905, 62, 30246, 62, 20786, 198, 6738, 49394, 13, 47960, 62, 13716, 1330, 27401, 62, 33892...
3.070707
99
import csv import string import ftplib import math import time from selenium import webdriver from selenium.webdriver.common.keys import Keys from selenium.webdriver.common.by import By from selenium.webdriver.support.ui import WebDriverWait from selenium.webdriver.support import expected_conditions as EC import sqlite...
[ 11748, 269, 21370, 198, 11748, 4731, 198, 11748, 10117, 489, 571, 198, 11748, 10688, 198, 11748, 640, 198, 6738, 384, 11925, 1505, 1330, 3992, 26230, 198, 6738, 384, 11925, 1505, 13, 12384, 26230, 13, 11321, 13, 13083, 1330, 26363, 198, ...
3.263158
228
# -*- coding: utf-8 -*- # # Copyright (c) 2015, Alcatel-Lucent Inc # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are met: # * Redistributions of source code must retain the above copyright # no...
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 2, 198, 2, 15069, 357, 66, 8, 1853, 11, 43757, 25791, 12, 25596, 1087, 3457, 198, 2, 1439, 2489, 10395, 13, 198, 2, 198, 2, 2297, 396, 3890, 290, 779, 287, 2723, 2...
3.424682
551
import atexit import sys if sys.version_info[0] == 2: from Queue import Empty else: from queue import Empty from multiprocessing import Process, Queue from rllab.sampler.utils import rollout import numpy as np __all__ = [ 'init_worker', 'init_plot', 'update_plot' ] process = None queue = None ...
[ 11748, 379, 37023, 198, 11748, 25064, 198, 361, 25064, 13, 9641, 62, 10951, 58, 15, 60, 6624, 362, 25, 198, 220, 220, 220, 422, 4670, 518, 1330, 33523, 198, 17772, 25, 198, 220, 220, 220, 422, 16834, 1330, 33523, 198, 6738, 18540, 3...
2.767241
116
''' Livro-Introduo-a-Viso-Computacional-com-Python-e-OpenCV-3 Repositrio de imagens https://github.com/opencv/opencv/tree/master/samples/data ''' import cv2 import numpy as np from matplotlib import pyplot as plt #import mahotas VERMELHO = (0, 0, 255) VERDE = (0, 255, 0) AZUL = (255, 0, 0) AMARELO = (0, 255, 255)...
[ 7061, 6, 628, 220, 32020, 305, 12, 15005, 78, 12, 64, 12, 15854, 78, 12, 5377, 1996, 330, 1538, 12, 785, 12, 37906, 12, 68, 12, 11505, 33538, 12, 18, 198, 198, 6207, 7434, 27250, 390, 3590, 641, 198, 5450, 1378, 12567, 13, 785, ...
2.08269
907
import base64 import json import jwt import requests from django.conf import settings from django.contrib.auth import get_user_model from django.contrib.auth.backends import ModelBackend USER_MODEL = get_user_model()
[ 11748, 2779, 2414, 198, 11748, 33918, 198, 198, 11748, 474, 46569, 198, 11748, 7007, 198, 198, 6738, 42625, 14208, 13, 10414, 1330, 6460, 198, 6738, 42625, 14208, 13, 3642, 822, 13, 18439, 1330, 651, 62, 7220, 62, 19849, 198, 6738, 4262...
3.264706
68
import json import os import sys import re import copy import numpy as np from data_profiler.labelers.base_model import BaseModel from data_profiler.labelers.base_model import AutoSubRegistrationMeta _file_dir = os.path.dirname(os.path.abspath(__file__)) sys.path.append(_file_dir)
[ 11748, 33918, 198, 11748, 28686, 198, 11748, 25064, 198, 11748, 302, 198, 11748, 4866, 198, 198, 11748, 299, 32152, 355, 45941, 198, 198, 6738, 1366, 62, 5577, 5329, 13, 18242, 364, 13, 8692, 62, 19849, 1330, 7308, 17633, 198, 6738, 136...
3.042553
94
# Desarrolle un un programa que reciba la fecha de nacimiento # de una persona, y como salida, indique el nombre del signo del # zodiaco correspondiente, ademas de su edad fecha_str = input("Ingrese la fecha de nacimiento (DD/MM/AAAA): ") fecha = fecha_str.split("/") fecha_int = [] for elemento in fecha: fecha_int...
[ 2, 2935, 283, 3225, 293, 555, 555, 1430, 64, 8358, 664, 23718, 8591, 730, 11693, 390, 299, 330, 320, 1153, 78, 198, 2, 390, 555, 64, 27822, 11, 331, 401, 78, 3664, 3755, 11, 773, 2350, 1288, 299, 2381, 260, 1619, 1051, 78, 1619, ...
2.386266
233
import re, scrapy from crawler.items import *
[ 11748, 302, 11, 15881, 88, 198, 6738, 27784, 1754, 13, 23814, 1330, 1635 ]
3.461538
13
# Copyright 2017 GoDaddy # # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in ...
[ 2, 220, 220, 15069, 2177, 1514, 48280, 198, 2, 198, 2, 220, 220, 49962, 739, 262, 24843, 13789, 11, 10628, 362, 13, 15, 357, 1169, 366, 34156, 15341, 345, 743, 198, 2, 220, 220, 407, 779, 428, 2393, 2845, 287, 11846, 351, 262, 137...
3.383621
232
import re import logging import httplib import view_base from models import rt_proxy LOG = logging.getLogger('ryu.gui')
[ 11748, 302, 198, 11748, 18931, 198, 11748, 1841, 489, 571, 198, 198, 11748, 1570, 62, 8692, 198, 6738, 4981, 1330, 374, 83, 62, 36436, 198, 198, 25294, 796, 18931, 13, 1136, 11187, 1362, 10786, 49056, 13, 48317, 11537 ]
3.184211
38
"""This module contains tests for the helper module. """ from pywrangler.util.helper import get_param_names
[ 37811, 1212, 8265, 4909, 5254, 329, 262, 31904, 8265, 13, 198, 198, 37811, 198, 198, 6738, 12972, 18351, 49910, 13, 22602, 13, 2978, 525, 1330, 651, 62, 17143, 62, 14933, 628 ]
3.580645
31
# ============================================================================= # Created By : Giannis Kostas Georgiou # Project : Machine Learning for Fish Recognition (Individual Project) # ============================================================================= # Description : File in order to convert save...
[ 2, 38093, 25609, 198, 2, 15622, 2750, 220, 1058, 30851, 21361, 509, 455, 292, 6850, 72, 280, 198, 2, 4935, 220, 220, 220, 220, 1058, 10850, 18252, 329, 13388, 31517, 653, 357, 35392, 4935, 8, 198, 2, 38093, 25609, 198, 2, 12489, 105...
3.825397
252
from .test_utils import PySparkTestCase from sparkts.datetimeindex import * import pandas as pd
[ 6738, 764, 9288, 62, 26791, 1330, 9485, 4561, 668, 14402, 20448, 198, 6738, 9009, 912, 13, 19608, 8079, 9630, 1330, 1635, 198, 11748, 19798, 292, 355, 279, 67, 628 ]
3.344828
29
# Definition for singly-linked list.
[ 2, 30396, 329, 1702, 306, 12, 25614, 1351, 13, 628 ]
3.8
10
import numpy as np import photon_stream as ps import photon_stream_production as psp import pkg_resources import os runinfo_path = pkg_resources.resource_filename( 'photon_stream_production', os.path.join('tests', 'resources', 'runinfo_20161115_to_20170103.csv') ) drs_fRunID_for_obs_run = psp.drs_run._drs_fRu...
[ 11748, 299, 32152, 355, 45941, 198, 11748, 48190, 62, 5532, 355, 26692, 198, 11748, 48190, 62, 5532, 62, 25493, 355, 279, 2777, 198, 11748, 279, 10025, 62, 37540, 198, 11748, 28686, 198, 198, 5143, 10951, 62, 6978, 796, 279, 10025, 62, ...
2.632813
128
# -*- coding: utf-8 -*- # Generated by Django 1.11.20 on 2019-04-18 05:56 from __future__ import unicode_literals from django.db import migrations, models import django.db.models.deletion
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 2, 2980, 515, 416, 37770, 352, 13, 1157, 13, 1238, 319, 13130, 12, 3023, 12, 1507, 8870, 25, 3980, 198, 6738, 11593, 37443, 834, 1330, 28000, 1098, 62, 17201, 874, 198...
2.753623
69
import http import logging from typing import List, Tuple, MutableMapping from datetime import datetime import re from requests.packages.urllib3 import Retry import autoscaler.utils as utils from autoscaler.autoscaling_groups import AutoScalingGroup from autoscaler.azure_api import AzureApi, AzureScaleSet, AzureScale...
[ 11748, 2638, 198, 11748, 18931, 198, 6738, 19720, 1330, 7343, 11, 309, 29291, 11, 13859, 540, 44, 5912, 198, 6738, 4818, 8079, 1330, 4818, 8079, 198, 198, 11748, 302, 198, 6738, 7007, 13, 43789, 13, 333, 297, 571, 18, 1330, 4990, 563,...
3.147619
210
""" Insertion Sort Approach: Loop Complexity: O(n2) """ if __name__ == '__main__': arr = [21, 4, 1, 3, 9, 20, 25, 6, 21, 14] sort_insertion(arr)
[ 37811, 198, 44402, 295, 33947, 198, 198, 4677, 28562, 25, 26304, 198, 5377, 11141, 414, 25, 440, 7, 77, 17, 8, 198, 37811, 628, 198, 198, 361, 11593, 3672, 834, 6624, 705, 834, 12417, 834, 10354, 198, 220, 220, 220, 5240, 796, 685, ...
2.093333
75
""" NAME tarea_7.py VERSION [1.0] AUTHOR Ignacio Emmanuel Ramirez Bernabe CONTACT iramirez@lcg.unam.mx GITHUB https://github.com/eveiramirez/python_class/blob/master/Python2/tareas/tarea_7.py DESCRIPTION Este programa contiene arrays estructurados para los arrays ...
[ 37811, 198, 198, 20608, 198, 220, 220, 220, 220, 220, 220, 220, 256, 20337, 62, 22, 13, 9078, 198, 198, 43717, 198, 220, 220, 220, 220, 220, 220, 220, 685, 16, 13, 15, 60, 198, 198, 32, 24318, 1581, 198, 220, 220, 220, 220, 220,...
1.958196
909
""" Base pipeline class. Main rule generator classes inherit from this one. """ from copy import deepcopy from typing import List, Tuple, Union, Dict from iguanas.pipeline.class_accessor import ClassAccessor from iguanas.utils.typing import PandasDataFrameType, PandasSeriesType import iguanas.utils.utils as utils from ...
[ 37811, 198, 14881, 11523, 1398, 13, 8774, 3896, 17301, 6097, 16955, 422, 428, 530, 13, 198, 37811, 198, 6738, 4866, 1330, 2769, 30073, 198, 6738, 19720, 1330, 7343, 11, 309, 29291, 11, 4479, 11, 360, 713, 198, 6738, 45329, 7258, 292, ...
3.623762
101
import unittest import datetime from parameterized import parameterized from activity_merger import Interval from aw_core.models import Event from typing import List, Tuple def build_intervals_linked_list(data: List[Tuple[int, bool, int]]) -> Interval: """ Builds intervals linked list from the list of tuple...
[ 11748, 555, 715, 395, 198, 11748, 4818, 8079, 198, 6738, 11507, 1143, 1330, 11507, 1143, 198, 6738, 3842, 62, 647, 1362, 1330, 4225, 2100, 198, 6738, 3253, 62, 7295, 13, 27530, 1330, 8558, 198, 6738, 19720, 1330, 7343, 11, 309, 29291, ...
2.758883
394
""" NOTE: There are a few minor complications to fluid human control which make this code a little more involved than trivial. 1. Key press-release cycles can be, and often are, faster than one tick of the game/simulation, but the player still wants that cycle to count, i.e. to lay a bomb! 2. When holding down ...
[ 37811, 198, 16580, 25, 198, 198, 1858, 389, 257, 1178, 4159, 19481, 284, 11711, 1692, 1630, 543, 787, 428, 198, 8189, 257, 1310, 517, 2950, 621, 20861, 13, 198, 198, 16, 13, 7383, 1803, 12, 20979, 16006, 460, 307, 11, 290, 1690, 389...
3.628916
415
# Copyright 2015 Cisco Systems, 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 ...
[ 2, 15069, 1853, 28289, 11998, 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, 198, 2,...
3.008681
576
""" fixtures that return an sql statement with a list of values to be inserted.""" def load_language(): """ return the sql and values of the insert queuery.""" sql = """ INSERT INTO Spanglish_Test.Language ( `name`, `iso-639-1` ) VALUES (%s, %s) ...
[ 37811, 34609, 326, 1441, 281, 44161, 2643, 351, 257, 1351, 286, 3815, 284, 307, 18846, 526, 15931, 198, 198, 4299, 3440, 62, 16129, 33529, 198, 220, 220, 220, 37227, 1441, 262, 44161, 290, 3815, 286, 262, 7550, 8358, 84, 1924, 526, 15...
1.831683
303
import datetime as dt from os.path import dirname, join import numpy as np import pandas as pd import pyarrow as pa import pyarrow.parquet as pq from bokeh.io import curdoc from bokeh.layouts import column, gridplot, row from bokeh.models import ColumnDataSource, DataRange1d, Select, HoverTool, Panel, Tabs, LinearC...
[ 11748, 4818, 8079, 355, 288, 83, 198, 6738, 28686, 13, 6978, 1330, 26672, 3672, 11, 4654, 198, 198, 11748, 299, 32152, 355, 45941, 198, 198, 11748, 19798, 292, 355, 279, 67, 198, 198, 11748, 12972, 6018, 355, 14187, 198, 11748, 12972, ...
3.387226
1,002
""" ================ HTTPS Middleware ================ Change scheme for current request when aiohttp application deployed behind reverse proxy with HTTPS enabled. Usage ===== .. code-block:: python from aiohttp import web from aiohttp_middlewares import https_middleware # Basic usage app = web.App...
[ 37811, 198, 4770, 198, 6535, 28820, 6046, 1574, 198, 4770, 198, 198, 19400, 7791, 329, 1459, 2581, 618, 257, 952, 4023, 3586, 12380, 2157, 198, 50188, 15741, 351, 38288, 9343, 13, 198, 198, 28350, 198, 1421, 28, 198, 198, 492, 2438, 1...
3.027311
476
import cv2 import numpy as np
[ 11748, 269, 85, 17, 201, 198, 11748, 299, 32152, 355, 45941, 201 ]
2.583333
12
import pandas_datareader.data as pdr import yfinance as fix import numpy as np fix.pdr_override() def back_test(strategy, seq_len, ticker, start_date, end_date, dim): """ A simple back test for a given date period :param strategy: the chosen strategy. Note to have already formed the model, and fitted with...
[ 11748, 19798, 292, 62, 19608, 533, 5067, 13, 7890, 355, 279, 7109, 198, 11748, 331, 69, 14149, 355, 4259, 198, 11748, 299, 32152, 355, 45941, 198, 13049, 13, 79, 7109, 62, 2502, 13154, 3419, 628, 198, 4299, 736, 62, 9288, 7, 2536, 4...
2.64
550
# -*- coding: utf-8 """Module for custom component groups. It is possible to create subsystems of component groups in tespy. The subsystem class is the base class for custom subsystems. This file is part of project TESPy (github.com/oemof/tespy). It's copyrighted by the contributors recorded in the version control ...
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 198, 198, 37811, 26796, 329, 2183, 7515, 2628, 13, 198, 198, 1026, 318, 1744, 284, 2251, 39335, 82, 286, 7515, 2628, 287, 256, 274, 9078, 13, 383, 39335, 198, 4871, 318, 262, 2779, 1398,...
3.612403
129
# Copyright (c) Facebook, Inc. and its affiliates. All rights reserved. # # This source code is licensed under the BSD license found in the # LICENSE file in the root directory of this source tree. import copy import logging from typing import TYPE_CHECKING, Any, Callable, List, Optional, Type import torch import tor...
[ 2, 15069, 357, 66, 8, 3203, 11, 3457, 13, 290, 663, 29116, 13, 1439, 2489, 10395, 13, 198, 2, 198, 2, 770, 2723, 2438, 318, 11971, 739, 262, 347, 10305, 5964, 1043, 287, 262, 198, 2, 38559, 24290, 2393, 287, 262, 6808, 8619, 286, ...
3.546053
152
from setuptools import setup, find_packages setup( name="raytracing-one-weekend", version="0.0.0", author="Andy Palmer", author_email="contactninezerozeronine@gmail.com", description="A raytracer achievable in a weekend.", url="https://github.com/ninezerozeronine/raytracing-one-weekend", in...
[ 6738, 900, 37623, 10141, 1330, 9058, 11, 1064, 62, 43789, 198, 198, 40406, 7, 198, 220, 220, 220, 1438, 2625, 2433, 2213, 4092, 12, 505, 12, 10464, 437, 1600, 198, 220, 220, 220, 2196, 2625, 15, 13, 15, 13, 15, 1600, 198, 220, 220...
2.472222
180
""" URLconf of the homepage """ from django.urls import path, include from . import views urlpatterns = [ path('', views.home, name='home'), path('auth', views.auth, name='auth'), path('auth/public', views.auth_public, name='auth-public'), path('auth/full', views.auth_full, name='auth-full'), p...
[ 37811, 198, 21886, 10414, 286, 262, 34940, 198, 37811, 628, 198, 6738, 42625, 14208, 13, 6371, 82, 1330, 3108, 11, 2291, 198, 198, 6738, 764, 1330, 5009, 628, 198, 6371, 33279, 82, 796, 685, 198, 220, 220, 220, 3108, 10786, 3256, 5009...
2.716216
222
""" Notification email machinery, for tasks to send credentials and instructions to users. Email templates placed inside the `templates` directory of this module should: - extend from `layout` - provide `subject` and `body` blocks """ from enum import Enum import os.path from jinja2 import Environment, FileSystemLo...
[ 37811, 198, 3673, 2649, 3053, 20230, 11, 329, 8861, 284, 3758, 18031, 290, 7729, 284, 2985, 13, 198, 198, 15333, 24019, 4624, 2641, 262, 4600, 11498, 17041, 63, 8619, 286, 428, 8265, 815, 25, 198, 198, 12, 9117, 422, 4600, 39786, 63, ...
2.8117
547
from .operations import Multiply, Add, Substract
[ 6738, 764, 3575, 602, 1330, 7854, 541, 306, 11, 3060, 11, 3834, 8709, 628 ]
3.571429
14
import os from typing import Union import tensorflow as tf import pandas as pd import numpy as np import matplotlib.pyplot as plt from sklearn.model_selection import train_test_split, KFold import utility as ut from variables import * # Read the data. train_data = pd.read_csv(os.path.join(DATA_PATH, ".".join([DATA...
[ 11748, 28686, 198, 6738, 19720, 1330, 4479, 198, 198, 11748, 11192, 273, 11125, 355, 48700, 198, 11748, 19798, 292, 355, 279, 67, 198, 11748, 299, 32152, 355, 45941, 198, 11748, 2603, 29487, 8019, 13, 9078, 29487, 355, 458, 83, 198, 198...
2.391361
2,292
import base64 import random import string import netbyte import numpy as np try: import simplejson as json except ImportError: import json kinds = {}
[ 11748, 2779, 2414, 198, 11748, 4738, 198, 11748, 4731, 198, 11748, 2010, 26327, 198, 11748, 299, 32152, 355, 45941, 198, 198, 28311, 25, 198, 220, 220, 220, 1330, 2829, 17752, 355, 33918, 198, 220, 220, 220, 220, 198, 16341, 17267, 1233...
2.864407
59
import unittest from players import Player, Quarterback from possible_values import * from game import Game from random import randint, uniform, sample from season import * # TODO - some things you can add... if __name__ == '__main__': unittest.main()
[ 11748, 555, 715, 395, 198, 6738, 1938, 1330, 7853, 11, 17264, 1891, 198, 6738, 1744, 62, 27160, 1330, 1635, 198, 6738, 983, 1330, 3776, 198, 6738, 4738, 1330, 43720, 600, 11, 8187, 11, 6291, 198, 6738, 1622, 1330, 1635, 198, 198, 2, ...
3.48
75
import os import logging import numpy as np from tqdm import tqdm from functools import partial from multiprocessing.pool import ThreadPool import pyworld as pw from util.dsp import Dsp logger = logging.getLogger(__name__)
[ 11748, 28686, 198, 11748, 18931, 198, 11748, 299, 32152, 355, 45941, 198, 6738, 256, 80, 36020, 1330, 256, 80, 36020, 198, 6738, 1257, 310, 10141, 1330, 13027, 198, 6738, 18540, 305, 919, 278, 13, 7742, 1330, 14122, 27201, 198, 11748, 1...
3.228571
70
#!/usr/bin/python import sys from subprocess import call print "divsum_count.py ListOfDivsumFiles\n" try: files = sys.argv[1] except: files = raw_input("Introduce RepeatMasker's list of Divsum files with library size (tab separated): ") files = open(files).readlines() to_join = [] header = "Coverage for ea...
[ 2, 48443, 14629, 14, 8800, 14, 29412, 198, 198, 11748, 25064, 198, 6738, 850, 14681, 1330, 869, 198, 198, 4798, 366, 7146, 16345, 62, 9127, 13, 9078, 7343, 5189, 24095, 16345, 25876, 59, 77, 1, 198, 198, 28311, 25, 198, 220, 220, 22...
1.994067
1,517
#!/usr/bin/env python from agatecharts.charts.bars import Bars from agatecharts.charts.columns import Columns from agatecharts.charts.lines import Lines from agatecharts.charts.scatter import Scatter
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 198, 198, 6738, 556, 40340, 5889, 13, 354, 5889, 13, 34046, 1330, 39924, 198, 6738, 556, 40340, 5889, 13, 354, 5889, 13, 28665, 82, 1330, 29201, 82, 198, 6738, 556, 40340, 5889, 13, 354, ...
3.241935
62
from django.contrib.auth import update_session_auth_hash from django.contrib.auth.mixins import LoginRequiredMixin from django.contrib.auth.models import User from django.contrib.auth.views import (LoginView, PasswordResetConfirmView, PasswordResetView) from django.http import Htt...
[ 6738, 42625, 14208, 13, 3642, 822, 13, 18439, 1330, 4296, 62, 29891, 62, 18439, 62, 17831, 198, 6738, 42625, 14208, 13, 3642, 822, 13, 18439, 13, 19816, 1040, 1330, 23093, 37374, 35608, 259, 198, 6738, 42625, 14208, 13, 3642, 822, 13, ...
2.785933
327
import os from test.core.emr_system_unit_test_base import EMRSystemUnitTestBase from test.core.tconx_helper import TconxHelper
[ 11748, 28686, 198, 198, 6738, 1332, 13, 7295, 13, 368, 81, 62, 10057, 62, 20850, 62, 9288, 62, 8692, 1330, 17228, 6998, 6781, 26453, 14402, 14881, 198, 6738, 1332, 13, 7295, 13, 83, 1102, 87, 62, 2978, 525, 1330, 309, 1102, 87, 4742...
2.931818
44
from rest_framework import serializers from metrics.models import Metrics_Cpu, Metrics_PingServer, Metrics_MountPoint, \ Metrics_CpuLoad, Metrics_PingDb
[ 6738, 1334, 62, 30604, 1330, 11389, 11341, 198, 6738, 20731, 13, 27530, 1330, 3395, 10466, 62, 34, 19944, 11, 3395, 10466, 62, 49806, 10697, 11, 3395, 10466, 62, 35452, 12727, 11, 3467, 198, 220, 220, 220, 3395, 10466, 62, 34, 19944, ...
3.204082
49
# Copyright 2020 Plezentek, Inc. All rights reserved # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or...
[ 2, 15069, 12131, 18063, 89, 298, 988, 11, 3457, 13, 1439, 2489, 10395, 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, 3...
2.56381
525
root = { "general" : { "display_viewer" : False, #The visible GPUS will be restricted to the numbers listed here. The pytorch (cuda:0) numeration will start at 0 #This is a trick to get everything onto the wanted gpus because just setting cuda:4 in the function calls will #not work...
[ 15763, 796, 1391, 628, 220, 220, 220, 366, 24622, 1, 1058, 1391, 628, 220, 220, 220, 220, 220, 220, 220, 366, 13812, 62, 1177, 263, 1, 1058, 10352, 11, 198, 220, 220, 220, 220, 220, 220, 220, 1303, 464, 7424, 14714, 2937, 481, 307...
2.001486
2,019
from ..utils import TranspileTestCase
[ 6738, 11485, 26791, 1330, 3602, 79, 576, 14402, 20448, 628 ]
3.9
10
''' ------------------------------------------------------------------------ Functions for taxes in the steady state and along the transition path. ------------------------------------------------------------------------ ''' # Packages import numpy as np from ogusa import utils ''' -----------------------------------...
[ 7061, 6, 198, 10097, 982, 198, 24629, 2733, 329, 5704, 287, 262, 11831, 1181, 290, 1863, 262, 6801, 3108, 13, 198, 10097, 982, 198, 7061, 6, 198, 198, 2, 6400, 1095, 198, 11748, 299, 32152, 355, 45941, 198, 6738, 267, 70, 22064, 133...
1.972898
11,180
"""Module containing the taxonomy items API endpoints of the v1 API.""" from datetime import datetime from sqlalchemy.sql.schema import Sequence from muse_for_anything.db.models.taxonomies import ( Taxonomy, TaxonomyItem, TaxonomyItemRelation, TaxonomyItemVersion, ) from marshmallow.utils import INCL...
[ 37811, 26796, 7268, 262, 1687, 30565, 3709, 7824, 886, 13033, 286, 262, 410, 16, 7824, 526, 15931, 198, 198, 6738, 4818, 8079, 1330, 4818, 8079, 198, 198, 6738, 44161, 282, 26599, 13, 25410, 13, 15952, 2611, 1330, 45835, 198, 6738, 2681...
2.816412
719
import matplotlib.pyplot as plt import numpy as np import pandas as pd df = pd.read_csv('transcount.csv') df = df.groupby('year').aggregate(np.mean) gpu = pd.read_csv('gpu_transcount.csv') gpu = gpu.groupby('year').aggregate(np.mean) df = pd.merge(df, gpu, how='outer', left_index=True, right_index=True) df = df.rep...
[ 11748, 2603, 29487, 8019, 13, 9078, 29487, 355, 458, 83, 198, 11748, 299, 32152, 355, 45941, 198, 11748, 19798, 292, 355, 279, 67, 628, 198, 7568, 796, 279, 67, 13, 961, 62, 40664, 10786, 7645, 9127, 13, 40664, 11537, 198, 7568, 796, ...
2.414141
198
# Generated by Django 2.0.5 on 2018-07-02 19:46 from django.db import migrations, models import django.db.models.deletion
[ 2, 2980, 515, 416, 37770, 362, 13, 15, 13, 20, 319, 2864, 12, 2998, 12, 2999, 678, 25, 3510, 201, 198, 201, 198, 6738, 42625, 14208, 13, 9945, 1330, 15720, 602, 11, 4981, 201, 198, 11748, 42625, 14208, 13, 9945, 13, 27530, 13, 293...
2.58
50
import sys read = sys.stdin.buffer.read readline = sys.stdin.buffer.readline readlines = sys.stdin.buffer.readlines sys.setrecursionlimit(10 ** 7) n = int(readline()) h = int(readline()) w = int(readline()) print((n - h + 1) * (n - w + 1))
[ 11748, 25064, 198, 961, 796, 25064, 13, 19282, 259, 13, 22252, 13, 961, 198, 961, 1370, 796, 25064, 13, 19282, 259, 13, 22252, 13, 961, 1370, 198, 961, 6615, 796, 25064, 13, 19282, 259, 13, 22252, 13, 961, 6615, 198, 17597, 13, 2617...
2.56383
94
import pygame from NetworkBroadcast import Broadcast, AnimatedSprite, DeleteSpriteCommand from Textures import HALO_SPRITE12, HALO_SPRITE14, HALO_SPRITE13 __author__ = "Yoann Berenguer" __credits__ = ["Yoann Berenguer"] __version__ = "1.0.0" __maintainer__ = "Yoann Berenguer" __email__ = "yoyoberenguer@hotma...
[ 201, 198, 11748, 12972, 6057, 201, 198, 6738, 7311, 30507, 2701, 1330, 44244, 11, 36492, 38454, 578, 11, 23520, 38454, 578, 21575, 201, 198, 6738, 8255, 942, 1330, 42968, 46, 62, 4303, 49, 12709, 1065, 11, 42968, 46, 62, 4303, 49, 127...
2.459854
137
# -*- coding: utf-8 -*- from __future__ import unicode_literals, print_function import logging import os.path import subprocess from collections import OrderedDict from itertools import izip import numpy as np import pandas as pd from django.conf import settings from django.core.cache import cache from django.db impo...
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 6738, 11593, 37443, 834, 1330, 28000, 1098, 62, 17201, 874, 11, 3601, 62, 8818, 198, 198, 11748, 18931, 198, 11748, 28686, 13, 6978, 198, 11748, 850, 14681, 198, 6738, 1...
2.550324
11,257
from typing import Any, Dict, KeysView import attr from config.auth import OAuth2 from config.cfenv import CFenv from config.spring import ConfigClient
[ 6738, 19720, 1330, 4377, 11, 360, 713, 11, 26363, 7680, 198, 198, 11748, 708, 81, 198, 198, 6738, 4566, 13, 18439, 1330, 440, 30515, 17, 198, 6738, 4566, 13, 12993, 24330, 1330, 18551, 24330, 198, 6738, 4566, 13, 16469, 1330, 17056, 1...
3.604651
43
# Copyright 2015 Confluent 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, s...
[ 2, 15069, 1853, 7326, 28216, 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, 198, 2, 921,...
3.91623
191
i=input("Enter a string: ") list = i.split() list.sort() for i in list: print(i,end=' ')
[ 72, 28, 15414, 7203, 17469, 257, 4731, 25, 366, 8, 198, 4868, 796, 1312, 13, 35312, 3419, 198, 4868, 13, 30619, 3419, 198, 1640, 1312, 287, 1351, 25, 198, 220, 220, 220, 3601, 7, 72, 11, 437, 11639, 705, 8, 198 ]
2.268293
41
"""Config repositories use case.""" from __future__ import annotations import git_portfolio.config_manager as cm import git_portfolio.domain.gh_connection_settings as cs import git_portfolio.responses as res
[ 37811, 16934, 38072, 779, 1339, 526, 15931, 198, 6738, 11593, 37443, 834, 1330, 37647, 198, 198, 11748, 17606, 62, 634, 13652, 13, 11250, 62, 37153, 355, 12067, 198, 11748, 17606, 62, 634, 13652, 13, 27830, 13, 456, 62, 38659, 62, 33692...
3.818182
55
import pytest from ..logic import Board, empty_board, example_board, solved_board
[ 11748, 12972, 9288, 198, 6738, 11485, 6404, 291, 1330, 5926, 11, 6565, 62, 3526, 11, 1672, 62, 3526, 11, 16019, 62, 3526, 628 ]
3.608696
23
from __future__ import print_function from __future__ import absolute_import from __future__ import division import ast import rhinoscriptsyntax as rs __all__ = [ 'mesh_select_vertex', 'mesh_select_vertices', 'mesh_select_face', 'mesh_select_faces', 'mesh_select_edge', 'mesh_select_edges', ...
[ 6738, 11593, 37443, 834, 1330, 3601, 62, 8818, 198, 6738, 11593, 37443, 834, 1330, 4112, 62, 11748, 198, 6738, 11593, 37443, 834, 1330, 7297, 198, 198, 11748, 6468, 198, 11748, 9529, 11996, 6519, 1837, 41641, 355, 44608, 628, 198, 834, ...
2.164088
3,748
from telegram import Update from telegram.ext import Updater, CallbackContext, ConversationHandler, CommandHandler, MessageHandler, Filters from db import DBConnector import re str_matcher = r"\"(?P<name>.+)\"\s*(?P<fat>\d+)\s*/\s*(?P<protein>\d+)\s*/\s*(?P<carbohydrates>\d+)\s*(?P<kcal>\d+)" ADD_1 = 0 def add_...
[ 6738, 573, 30536, 1330, 10133, 198, 6738, 573, 30536, 13, 2302, 1330, 3205, 67, 729, 11, 4889, 1891, 21947, 11, 42427, 25060, 11, 9455, 25060, 11, 16000, 25060, 11, 7066, 1010, 198, 198, 6738, 20613, 1330, 360, 2749, 261, 1606, 273, 1...
2.368231
277
from mock import patch import numpy as np
[ 6738, 15290, 1330, 8529, 198, 11748, 299, 32152, 355, 45941, 628, 628, 198 ]
3.538462
13
import Cipher.tk from Cipher.tk import EncryptDecryptCoord, GetChiSquared, Mode ''' # testing do write it here a = " abcdefghijklmnopqrstuvwxyz" p=[] for c in a: p.append (c) print ("starting...") print (MultiDecrypt ("dtyktckcxlbd", p)) # original 231 '''
[ 11748, 44334, 13, 30488, 220, 220, 201, 198, 6738, 44334, 13, 30488, 1330, 14711, 6012, 10707, 6012, 7222, 585, 11, 3497, 1925, 72, 22266, 1144, 11, 10363, 201, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2...
2.148148
135
#!/usr/bin/env python import sys import argparse import pkg_resources import vcf from vcf.parser import _Filter parser = argparse.ArgumentParser(description='Filter a VCF file', formatter_class=argparse.RawDescriptionHelpFormatter, ) parser.add_argument('input', metavar='input', type=str, nargs=1, ...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 198, 11748, 25064, 198, 11748, 1822, 29572, 198, 11748, 279, 10025, 62, 37540, 198, 198, 11748, 410, 12993, 198, 6738, 410, 12993, 13, 48610, 1330, 4808, 22417, 198, 198, 48610, 796, 1822, 29...
2.515766
888
import os from flask import Blueprint, render_template
[ 11748, 28686, 198, 6738, 42903, 1330, 39932, 11, 8543, 62, 28243 ]
4.909091
11
# from aiohttp.client_exceptions import ClientError from lxml import html from pathlib import Path from asyncio import create_task from functools import wraps def download_search(client, keyword, page): safe_keyword = keyword.replace(" ", "+") # url = f"https://mobile.alphacoders.com/by-resolution/5?searc...
[ 2, 198, 198, 6738, 257, 952, 4023, 13, 16366, 62, 1069, 11755, 1330, 20985, 12331, 198, 6738, 300, 19875, 1330, 27711, 198, 6738, 3108, 8019, 1330, 10644, 198, 6738, 30351, 952, 1330, 2251, 62, 35943, 198, 6738, 1257, 310, 10141, 1330, ...
2.752066
242
# SQL output is imported as a pandas dataframe variable called "df" # Source: https://stackoverflow.com/questions/19441730/trimmed-mean-with-percentage-limit-in-python import pandas as pd import matplotlib.pyplot as plt from scipy.stats import tmean, scoreatpercentile import numpy as np my_result = trimmean(df["amt_...
[ 2, 16363, 5072, 318, 17392, 355, 257, 19798, 292, 1366, 14535, 7885, 1444, 366, 7568, 1, 198, 198, 2, 8090, 25, 220, 3740, 1378, 25558, 2502, 11125, 13, 785, 14, 6138, 507, 14, 1129, 2598, 1558, 1270, 14, 2213, 320, 1150, 12, 32604,...
2.95614
114
import os import cv2 import random import numpy as np from tensorflow.keras.utils import to_categorical from scripts.consts import class_dict
[ 11748, 28686, 198, 11748, 269, 85, 17, 198, 11748, 4738, 198, 11748, 299, 32152, 355, 45941, 198, 6738, 11192, 273, 11125, 13, 6122, 292, 13, 26791, 1330, 284, 62, 66, 2397, 12409, 198, 6738, 14750, 13, 1102, 6448, 1330, 1398, 62, 116...
3.325581
43
# Copyright 2014 Cisco Systems, Inc. # All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless requi...
[ 2, 15069, 1946, 28289, 11998, 11, 3457, 13, 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, 220, 220, 220, 407, ...
2.183062
3,873
import pytest from opentimesheet.core.tests import TenantTestCase
[ 11748, 12972, 9288, 198, 198, 6738, 1034, 43598, 25473, 13, 7295, 13, 41989, 1330, 9368, 415, 14402, 20448, 628 ]
3.578947
19
from ami.flowchart.library.DisplayWidgets import ScalarWidget, ScatterWidget, WaveformWidget, \ ImageWidget, ObjectWidget, LineWidget, TimeWidget, HistogramWidget, \ Histogram2DWidget from ami.flowchart.library.common import CtrlNode from amitypes import Array1d, Array2d from typing import Any import ami.graph_...
[ 6738, 716, 72, 13, 11125, 40926, 13, 32016, 13, 23114, 54, 312, 11407, 1330, 34529, 283, 38300, 11, 1446, 1436, 38300, 11, 17084, 687, 38300, 11, 3467, 198, 220, 220, 220, 7412, 38300, 11, 9515, 38300, 11, 6910, 38300, 11, 3862, 38300...
3.226415
106
'''OpenGL extension ARB.transform_feedback_instanced This module customises the behaviour of the OpenGL.raw.GL.ARB.transform_feedback_instanced to provide a more Python-friendly API Overview (from the spec) Multiple instances of geometry may be specified to the GL by calling functions such as DrawArraysInstance...
[ 7061, 6, 11505, 8763, 7552, 5923, 33, 13, 35636, 62, 12363, 1891, 62, 8625, 2903, 198, 198, 1212, 8265, 2183, 2696, 262, 9172, 286, 262, 220, 198, 11505, 8763, 13, 1831, 13, 8763, 13, 37304, 13, 35636, 62, 12363, 1891, 62, 8625, 290...
3.857527
372
from regression_tests import *
[ 6738, 20683, 62, 41989, 1330, 1635, 198 ]
4.428571
7