content
stringlengths
1
1.05M
input_ids
listlengths
1
883k
ratio_char_token
float64
1
22.9
token_count
int64
1
883k
import re from enum import Enum from typing import List import libkol from .request import Request furniture_pattern = re.compile(r"rump([0-9])_([0-9])\.gif")
[ 11748, 302, 198, 6738, 33829, 1330, 2039, 388, 198, 6738, 19720, 1330, 7343, 198, 198, 11748, 9195, 74, 349, 198, 198, 6738, 764, 25927, 1330, 19390, 628, 198, 198, 69, 700, 8089, 62, 33279, 796, 302, 13, 5589, 576, 7, 81, 1, 81, ...
2.79661
59
# -*- coding: utf-8 -*- # __author__:Song Zhenqi # 2021-01-20 import os import sys import yaml import logging import functools logger_initialized = set() def get_config(file): """ yaml :param file: yaml/yml :return: dict """ _, ext = os.path.splitext(file) assert ext in ['.yaml', '.yml...
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 2, 11593, 9800, 834, 25, 44241, 1168, 831, 40603, 198, 2, 33448, 12, 486, 12, 1238, 198, 198, 11748, 28686, 198, 11748, 25064, 198, 11748, 331, 43695, 198, 11748, 18931,...
2.292818
181
from monitoring.uss_qualifier.test_data import test_report from monitoring.uss_qualifier.utils import USSQualifierTestConfiguration from monitoring.uss_qualifier.main import uss_test_executor from monitoring.uss_qualifier.rid.simulator import flight_state_from_kml from monitoring.uss_qualifier.rid.utils import FullFlig...
[ 6738, 9904, 13, 1046, 62, 13255, 7483, 13, 9288, 62, 7890, 1330, 1332, 62, 13116, 198, 6738, 9904, 13, 1046, 62, 13255, 7483, 13, 26791, 1330, 23116, 46181, 7483, 14402, 38149, 198, 6738, 9904, 13, 1046, 62, 13255, 7483, 13, 12417, 13...
3.151394
251
""" BasketManagementRelated modules """ # import basket models from basket.models import Basket from basket.models import BasketProductLine # import configuration models from grenades_services.all_configuration_data import get_currency_instance from grenades_services.all_configuration_data import get_customer_instance...
[ 37811, 198, 33, 11715, 48032, 9819, 13103, 198, 37811, 198, 2, 1330, 7988, 4981, 198, 6738, 7988, 13, 27530, 1330, 347, 11715, 198, 6738, 7988, 13, 27530, 1330, 347, 11715, 15667, 13949, 198, 198, 2, 1330, 8398, 4981, 198, 6738, 28850, ...
2.300906
3,752
import numpy as np import matplotlib.pyplot as plt acc = np.array([7.95549917, 7.46641684, 8.16141701, 8.80025005, 7.29208231, 7.73391724, 8.16333294, 9.02033329, 7.60566664, 7.88175011, 7.77574968, 8.79116631, 8.24524975, 8.98549938, 7.3717494 , 7.32324982, 8.14583302, 8.53608322, 9.301250...
[ 11748, 299, 32152, 355, 45941, 198, 11748, 2603, 29487, 8019, 13, 9078, 29487, 355, 458, 83, 628, 198, 4134, 796, 45941, 13, 18747, 26933, 22, 13, 24, 2816, 28324, 1558, 11, 220, 767, 13, 3510, 2414, 1433, 5705, 11, 220, 807, 13, 14...
1.725456
1,701
""" BPF-related stuff. """
[ 37811, 198, 20866, 37, 12, 5363, 3404, 13, 198, 37811, 198 ]
2.454545
11
import os import json import geojson import mappyfile_geojson import mappyfile import pytest def test_pointZ(): """ Z-values are simply removed as they are not supported by inline MapServer Features """ gj = get_geojson("PointZ.json") layer = mappyfile_geojson.convert(gj) ...
[ 11748, 28686, 201, 198, 11748, 33918, 201, 198, 11748, 4903, 13210, 1559, 201, 198, 11748, 285, 7774, 7753, 62, 469, 13210, 1559, 201, 198, 11748, 285, 7774, 7753, 201, 198, 11748, 12972, 9288, 201, 198, 201, 198, 201, 198, 201, 198, ...
2.035714
336
''' @Author: Hata @Date: 2020-05-24 15:30:19 @LastEditors: Hata @LastEditTime: 2020-05-24 15:32:04 @FilePath: \LeetCode\230.py @Description: https://leetcode-cn.com/problems/kth-smallest-element-in-a-bst/ '''
[ 7061, 6, 198, 31, 13838, 25, 367, 1045, 198, 31, 10430, 25, 12131, 12, 2713, 12, 1731, 1315, 25, 1270, 25, 1129, 198, 31, 5956, 18378, 669, 25, 367, 1045, 198, 31, 5956, 18378, 7575, 25, 12131, 12, 2713, 12, 1731, 1315, 25, 2624, ...
2.210526
95
# ---------------------------------------------------------------------- # | # | PythonUnittestTestParser.py # | # | David Brownell <db@DavidBrownell.com> # | 2018-05-22 07:59:46 # | # ---------------------------------------------------------------------- # | # | Copyright David Brownell 2018-22. # | ...
[ 2, 16529, 23031, 201, 198, 2, 930, 201, 198, 2, 930, 220, 11361, 3118, 715, 395, 14402, 46677, 13, 9078, 201, 198, 2, 930, 201, 198, 2, 930, 220, 3271, 4373, 695, 1279, 9945, 31, 11006, 20644, 695, 13, 785, 29, 201, 198, 2, 930,...
4.236842
266
# Copyright (c) Facebook, Inc. and its affiliates. # # This source code is licensed under the MIT license found in the # LICENSE file in the root directory of this source tree. import os from typing import Any, Dict from fairseq import checkpoint_utils from fairseq.data.legacy.masked_lm_dictionary import MaskedLMDict...
[ 2, 15069, 357, 66, 8, 3203, 11, 3457, 13, 290, 663, 29116, 13, 198, 2, 198, 2, 770, 2723, 2438, 318, 11971, 739, 262, 17168, 5964, 1043, 287, 262, 198, 2, 38559, 24290, 2393, 287, 262, 6808, 8619, 286, 428, 2723, 5509, 13, 198, ...
2.201936
1,446
#!/usr/bin/python # Classification (U) """Program: process_request.py Description: Unit testing of process_request in mysql_db_admin.py. Usage: test/unit/mysql_db_admin/process_request.py Arguments: """ # Libraries and Global Variables # Standard import sys import os if sys.version_info < ...
[ 2, 48443, 14629, 14, 8800, 14, 29412, 198, 2, 40984, 357, 52, 8, 198, 198, 37811, 15167, 25, 220, 1429, 62, 25927, 13, 9078, 628, 220, 220, 220, 12489, 25, 220, 11801, 4856, 286, 1429, 62, 25927, 287, 48761, 62, 9945, 62, 28482, 1...
2.595376
346
#!/usr/bin/env python3 # -*- coding: UTF-8 -*- """ FST test -- test your Foma finite-state transducers! """ from .__version__ import VERSION as __version__ from ._fst import FST from ._results import FailedTestResult, PassedTestResult, TestResults from ._run import execute_test_case, run_tests from ._test_case import...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 18, 198, 2, 532, 9, 12, 19617, 25, 41002, 12, 23, 532, 9, 12, 198, 198, 37811, 198, 37, 2257, 1332, 1377, 1332, 534, 376, 6086, 27454, 12, 5219, 1007, 41213, 0, 198, 37811, 198, 198, ...
2.815166
211
import copy import numpy as np import torch from scipy import optimize import logging def sharpness(model, criterion_fn, A, epsilon=1e-3, p=0, bounds=None): """Computes sharpness metric according to https://arxiv.org/abs/1609.04836. Args: model: Model on which to compute sharpness criterion_...
[ 11748, 4866, 198, 198, 11748, 299, 32152, 355, 45941, 198, 11748, 28034, 198, 6738, 629, 541, 88, 1330, 27183, 198, 11748, 18931, 628, 198, 4299, 7786, 1108, 7, 19849, 11, 34054, 62, 22184, 11, 317, 11, 304, 862, 33576, 28, 16, 68, ...
2.49166
1,259
#!/usr/bin/env python # -*- coding: utf-8 -*- """ Standalone benchmark runner """ import cProfile import pstats import profile import numpy as np print("Running Rust + Cython benchmarks") # calibrate pr = profile.Profile() calibration = np.mean([pr.calibrate(100000) for x in xrange(5)]) # add the bias profile.Profil...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 198, 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 37811, 198, 1273, 7642, 505, 18335, 17490, 198, 37811, 198, 198, 11748, 269, 37046, 198, 11748, 279, 34242, 198, 11748, ...
2.758294
422
import time from random import randint random_list = random_int(100000) #list2 = [0,0,99,34,56,54,-1,-1,32,2.5,-1.1,1000,1000,-2,30,21,24,15,10,6] t1 = time.time() Quick_sort(random_list) t2 = time.time() print(t2-t1) # def Quick_Sort(list1): # if (list1[0]<list1[-1]): # partition_index =partition(list1...
[ 11748, 640, 198, 6738, 4738, 1330, 43720, 600, 628, 198, 25120, 62, 4868, 796, 4738, 62, 600, 7, 3064, 830, 8, 198, 2, 4868, 17, 796, 685, 15, 11, 15, 11, 2079, 11, 2682, 11, 3980, 11, 4051, 12095, 16, 12095, 16, 11, 2624, 11, ...
1.968254
189
#REST from rest_framework import viewsets,mixins from rest_framework.permissions import IsAuthenticated #Filters from rest_framework.filters import SearchFilter,OrderingFilter from django_filters.rest_framework import DjangoFilterBackend #Models, serializers from cride.circles.models import Circle,Membership from cri...
[ 2, 49, 6465, 198, 6738, 1334, 62, 30604, 1330, 5009, 1039, 11, 19816, 1040, 198, 6738, 1334, 62, 30604, 13, 525, 8481, 1330, 1148, 47649, 3474, 198, 198, 2, 11928, 1010, 198, 6738, 1334, 62, 30604, 13, 10379, 1010, 1330, 11140, 22417,...
3.57377
122
from adminweb.services import cep_service from adminweb.models import Profissional from rest_framework import serializers import json
[ 6738, 13169, 12384, 13, 30416, 1330, 269, 538, 62, 15271, 198, 6738, 13169, 12384, 13, 27530, 1330, 4415, 1480, 282, 198, 6738, 1334, 62, 30604, 1330, 11389, 11341, 198, 11748, 33918, 628, 198 ]
4.121212
33
from selenium import webdriver from selenium.webdriver.common.keys import Keys from selenium.webdriver.common.by import By from selenium.webdriver.support import expected_conditions as EC from selenium.webdriver.support.ui import WebDriverWait import shutil import os domain_competitors = GoogleKeywordScreenshooter("bu...
[ 6738, 384, 11925, 1505, 1330, 3992, 26230, 198, 6738, 384, 11925, 1505, 13, 12384, 26230, 13, 11321, 13, 13083, 1330, 26363, 198, 6738, 384, 11925, 1505, 13, 12384, 26230, 13, 11321, 13, 1525, 1330, 2750, 198, 6738, 384, 11925, 1505, 13...
3.300578
173
"""Extension function related to numpy """ from __future__ import annotations from typing import List, Tuple import numpy as np import pandas from numpy.typing import ArrayLike def dict_to_numpy_array(d: dict, dtype: List[Tuple]) -> np.array: """convert dictionary to numpy array Examples: >>> d = {"aa...
[ 37811, 11627, 3004, 2163, 3519, 284, 299, 32152, 198, 37811, 198, 6738, 11593, 37443, 834, 1330, 37647, 198, 198, 6738, 19720, 1330, 7343, 11, 309, 29291, 198, 198, 11748, 299, 32152, 355, 45941, 198, 11748, 19798, 292, 198, 6738, 299, ...
2.04286
4,363
from datetime import date from typing import List from attr import attrs, attrib
[ 6738, 4818, 8079, 1330, 3128, 198, 6738, 19720, 1330, 7343, 198, 198, 6738, 708, 81, 1330, 708, 3808, 11, 708, 822, 628, 628 ]
3.695652
23
""" This script computes word masks based on sentiment lexicons """ import os import torch import argparse from tqdm import tqdm from transformers import AutoTokenizer from transformers import GlueDataTrainingArguments as DataTrainingArguments from transformers import GlueDataset as Dataset parser = argparse.Argumen...
[ 37811, 198, 1212, 4226, 552, 1769, 1573, 20680, 1912, 319, 15598, 31191, 34280, 198, 37811, 198, 11748, 28686, 198, 11748, 28034, 198, 11748, 1822, 29572, 198, 6738, 256, 80, 36020, 1330, 256, 80, 36020, 198, 198, 6738, 6121, 364, 1330, ...
2.450806
1,240
from logger import Logger from numpy import average log = Logger(None)
[ 6738, 49706, 1330, 5972, 1362, 198, 6738, 299, 32152, 1330, 2811, 198, 198, 6404, 796, 5972, 1362, 7, 14202, 8, 628, 628, 628, 628 ]
3.291667
24
import repo import export.csv as csv # CONSTANTS milk_q = "SELECT * FROM \"%s\" WHERE price != 0 AND discount = false AND (name ILIKE '%%1l%%' OR name ILIKE '%%1 l%%') AND (name ILIKE '%%piim %%' OR name ILIKE '%%piim,%%') AND name NOT ILIKE '%%juust%%' AND name NOT ILIKE '%%kohupiim%%' AND name NOT ILIKE '%%laktoos%%...
[ 11748, 29924, 198, 11748, 10784, 13, 40664, 355, 269, 21370, 198, 198, 2, 7102, 2257, 1565, 4694, 198, 25433, 74, 62, 80, 796, 366, 46506, 1635, 16034, 19990, 4, 82, 7879, 33411, 2756, 14512, 657, 5357, 9780, 796, 3991, 5357, 357, 367...
2.467823
1,787
# EX1 # if x < y: # y = 0 # x = x + 1 # else: # x = y max(30, 28, 18) # def triangleType(a, b, c): # isATriangle = False # if (a < b + c) and\ # (b < a + c) and\ # (c < a + b): # isATriangle = True # if isATriangle: # if (a == b) and (b == c): # ...
[ 2, 7788, 16, 198, 2, 611, 2124, 1279, 331, 25, 198, 2, 220, 220, 220, 220, 331, 796, 657, 198, 2, 220, 220, 220, 220, 2124, 796, 2124, 1343, 352, 198, 2, 2073, 25, 198, 2, 220, 220, 220, 220, 2124, 796, 331, 198, 198, 9806, ...
1.698795
913
import random import time while (1): wmsg = "Good morning!" events = { 1 : "calm", 2 : "calm", 3 : "rainy", 4 : "rainy", 5 : "rainy", 6 : "thunder", } array = [1,2,3,4,5,6] ## Array used to get events or smth output = random....
[ 11748, 4738, 201, 198, 11748, 640, 201, 198, 201, 198, 4514, 357, 16, 2599, 201, 198, 220, 220, 220, 220, 201, 198, 220, 220, 220, 266, 19662, 796, 366, 10248, 3329, 2474, 201, 198, 220, 220, 220, 220, 201, 198, 220, 220, 220, 299...
2.133612
479
import numpy as np import OpenEXR as exr import cv2 import Imath import matplotlib.pyplot as plt
[ 11748, 299, 32152, 355, 45941, 198, 11748, 4946, 6369, 49, 355, 409, 81, 198, 11748, 269, 85, 17, 198, 11748, 1846, 776, 198, 11748, 2603, 29487, 8019, 13, 9078, 29487, 355, 458, 83, 628, 198 ]
2.828571
35
from yggdrasil.serialize.SerializeBase import SerializeBase
[ 6738, 331, 1130, 7109, 292, 346, 13, 46911, 1096, 13, 32634, 1096, 14881, 1330, 23283, 1096, 14881, 628 ]
3.388889
18
''' This file is the glue between the Discord bot and the game logic. ''' from wordle_logic import evaluate_guess, generate_new_word from wordy_types import ActiveGame, EndResult, LetterState def begin_game() -> ActiveGame: """ Begin a game for a user. """ # Select a word answer = ge...
[ 7061, 6, 201, 198, 1212, 2393, 318, 262, 22749, 1022, 262, 39462, 10214, 290, 262, 983, 9156, 13, 201, 198, 7061, 6, 201, 198, 201, 198, 6738, 1573, 293, 62, 6404, 291, 1330, 13446, 62, 5162, 408, 11, 7716, 62, 3605, 62, 4775, 201...
2.459295
823
import numpy as np def readNNet(nnetFile, withNorm=False): ''' Read a .nnet file and return list of weight matrices and bias vectors Inputs: nnetFile: (string) .nnet file to read withNorm: (bool) If true, return normalization parameters Returns: weights: List of ...
[ 11748, 299, 32152, 355, 45941, 220, 198, 198, 4299, 1100, 6144, 316, 7, 77, 3262, 8979, 11, 351, 35393, 28, 25101, 2599, 198, 220, 220, 220, 705, 7061, 198, 220, 220, 220, 4149, 257, 764, 77, 3262, 2393, 290, 1441, 1351, 286, 3463, ...
2.211872
1,095
from typing import Dict import neptune.new as neptune import numpy as np import pytorch_lightning as pl import torch import torch.nn as nn from config import NEPTUNE_API_TOKEN, NEPTUNE_PROJECT_NAME from sklearn.metrics import classification_report, f1_score from utils.summary_loss import SummaryLoss from math import c...
[ 6738, 19720, 1330, 360, 713, 198, 198, 11748, 497, 457, 1726, 13, 3605, 355, 497, 457, 1726, 198, 11748, 299, 32152, 355, 45941, 198, 11748, 12972, 13165, 354, 62, 2971, 768, 355, 458, 198, 11748, 28034, 198, 11748, 28034, 13, 20471, ...
3.509346
214
from functools import lru_cache from collections import defaultdict import pandas as pd import numpy as np with open('input.txt') as fh: depthmap = pd.DataFrame([{ 'row': row, 'col': col, 'height': int(d) } for row, line in enumerate(fh) for col, d in enumerate(line.str...
[ 6738, 1257, 310, 10141, 1330, 300, 622, 62, 23870, 198, 6738, 17268, 1330, 4277, 11600, 198, 11748, 19798, 292, 355, 279, 67, 198, 11748, 299, 32152, 355, 45941, 628, 198, 4480, 1280, 10786, 15414, 13, 14116, 11537, 355, 277, 71, 25, ...
2.078363
855
# Configuration file for the Sphinx documentation builder. # # This file only contains a selection of the most common options. For a full # list see the documentation: # https://www.sphinx-doc.org/en/master/usage/configuration.html import re import subprocess import sys from pathlib import Path # -- Path setup ------...
[ 2, 28373, 2393, 329, 262, 45368, 28413, 10314, 27098, 13, 198, 2, 198, 2, 770, 2393, 691, 4909, 257, 6356, 286, 262, 749, 2219, 3689, 13, 1114, 257, 1336, 198, 2, 1351, 766, 262, 10314, 25, 198, 2, 3740, 1378, 2503, 13, 82, 746, ...
3.154686
1,099
from .token_types import TT from .token_types import BadTT from .position import Position from .keywords import is_keyword from .keywords import keyword_declared_type from ..lexer import errors
[ 6738, 764, 30001, 62, 19199, 1330, 26653, 198, 6738, 764, 30001, 62, 19199, 1330, 7772, 15751, 198, 6738, 764, 9150, 1330, 23158, 198, 6738, 764, 2539, 10879, 1330, 318, 62, 2539, 4775, 198, 6738, 764, 2539, 10879, 1330, 21179, 62, 3244...
3.730769
52
#!/usr/bin/env python3 """Squares and Cubes for a range of numbers. Given a start and end, calucate the Square x**2 and the Cube x**3 for all numbers. Example of generator and functools.partial. """ from functools import partial def power(base, exponent): """Raise a base to the exponent.""" return base *...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 18, 198, 198, 37811, 22266, 3565, 290, 7070, 274, 329, 257, 2837, 286, 3146, 13, 198, 198, 15056, 257, 923, 290, 886, 11, 2386, 1229, 378, 262, 9276, 2124, 1174, 17, 290, 198, 1169, 23315...
2.78534
191
#program to find the index of an item in a specified list. num =[10, 30, 4, -6] print(num.index(30))
[ 2, 23065, 284, 1064, 262, 6376, 286, 281, 2378, 287, 257, 7368, 1351, 13, 198, 22510, 796, 58, 940, 11, 1542, 11, 604, 11, 532, 21, 60, 198, 4798, 7, 22510, 13, 9630, 7, 1270, 4008, 198 ]
2.72973
37
from django.test import TestCase from django.core.exceptions import ValidationError from mozdns.txt.models import TXT from mozdns.domain.models import Domain
[ 6738, 42625, 14208, 13, 9288, 1330, 6208, 20448, 198, 6738, 42625, 14208, 13, 7295, 13, 1069, 11755, 1330, 3254, 24765, 12331, 198, 198, 6738, 6941, 89, 67, 5907, 13, 14116, 13, 27530, 1330, 15326, 51, 198, 6738, 6941, 89, 67, 5907, 1...
3.333333
48
#!/usr/bin/env python # Copyright (c) 2019 Orange and others. # # All rights reserved. This program and the accompanying materials # are made available under the terms of the Apache License, Version 2.0 # which accompanies this distribution, and is available at # http://www.apache.org/licenses/LICENSE-2.0 """Define t...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 198, 198, 2, 15069, 357, 66, 8, 13130, 11942, 290, 1854, 13, 198, 2, 198, 2, 1439, 2489, 10395, 13, 770, 1430, 290, 262, 19249, 5696, 198, 2, 389, 925, 1695, 739, 262, 2846, 286, 262, ...
3.161572
229
# coding=utf-8 from fabric.api import env, run COMMAND_COLLECTSTATIC = 'collectstatic' COMMAND_SYNCDB = 'syncdb' COMMAND_MIGRATE = 'migrate' _default_command = '{python} {manage} {command}' _commands_list = { COMMAND_COLLECTSTATIC: 'yes yes | {python} {manage} {command}', COMMAND_MIGRATE: '{python} {manage} ...
[ 2, 19617, 28, 40477, 12, 23, 198, 6738, 9664, 13, 15042, 1330, 17365, 11, 1057, 628, 198, 9858, 44, 6981, 62, 25154, 16779, 35744, 2149, 796, 705, 33327, 12708, 6, 198, 9858, 44, 6981, 62, 23060, 7792, 11012, 796, 705, 27261, 9945, ...
2.443662
142
from django.http import HttpResponseRedirect from django.core.urlresolvers import reverse from django.conf import settings from django.core.exceptions import ValidationError from datetime import datetime, timedelta from commercialoperator.components.main.models import Park from commercialoperator.components.proposals....
[ 6738, 42625, 14208, 13, 4023, 1330, 367, 29281, 31077, 7738, 1060, 198, 6738, 42625, 14208, 13, 7295, 13, 6371, 411, 349, 690, 1330, 9575, 198, 6738, 42625, 14208, 13, 10414, 1330, 6460, 198, 6738, 42625, 14208, 13, 7295, 13, 1069, 1175...
2.542448
1,814
""" models.py App Engine datastore models Documentation: https://developers.google.com/appengine/docs/python/ndb/entities """ from google.appengine.ext import ndb from google.appengine.ext import blobstore from google.appengine.api import users import functools import flask from flaskext import login from flaskex...
[ 37811, 198, 27530, 13, 9078, 198, 198, 4677, 7117, 4818, 459, 382, 4981, 198, 24941, 341, 25, 3740, 1378, 16244, 364, 13, 13297, 13, 785, 14, 1324, 18392, 14, 31628, 14, 29412, 14, 358, 65, 14, 298, 871, 198, 198, 37811, 628, 198, ...
3.977169
219
import pygame import math import path_planning as pp
[ 11748, 12972, 6057, 198, 11748, 10688, 198, 11748, 3108, 62, 11578, 768, 355, 9788, 628 ]
3.6
15
#coding:utf-8 ''' Demo for calling API of deepnlp.org web service Anonymous user of this package have limited access on the number of API calling 100/day Please Register and Login Your Account to deepnlp.org to get unlimited access to fully support api_service API module, now supports both windows and linux platforms. ...
[ 2, 66, 7656, 25, 40477, 12, 23, 198, 7061, 6, 198, 11522, 78, 329, 4585, 7824, 286, 2769, 21283, 79, 13, 2398, 3992, 2139, 198, 20660, 2836, 286, 428, 5301, 423, 3614, 1895, 319, 262, 1271, 286, 7824, 4585, 1802, 14, 820, 198, 549...
2.717949
936
# -*- coding: utf-8 -*- """ The built-in Round-Robin algorithm. """ # standard library from typing import Union # scip plugin from spring_cloud.commons.client.service_instance import ServiceInstance from spring_cloud.utils.atomic import AtomicInteger from .loadbalancer import LoadBalancer from .supplier import Servi...
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 37811, 198, 464, 3170, 12, 259, 10485, 12, 40656, 11862, 13, 198, 37811, 198, 198, 2, 3210, 5888, 198, 6738, 19720, 1330, 4479, 198, 198, 2, 629, 541, 13877, 198, 6738...
3.349206
126
import os import sys import numpy as np import torch from torchvision import datasets, transforms ROOT_DIR = os.path.dirname(os.getcwd()) if ROOT_DIR not in sys.path: sys.path.append(ROOT_DIR) import DeepSparseCoding.utils.data_processing as dp import DeepSparseCoding.datasets.synthetic as synthetic
[ 11748, 28686, 198, 11748, 25064, 198, 198, 11748, 299, 32152, 355, 45941, 198, 11748, 28034, 198, 6738, 28034, 10178, 1330, 40522, 11, 31408, 198, 198, 13252, 2394, 62, 34720, 796, 28686, 13, 6978, 13, 15908, 3672, 7, 418, 13, 1136, 66,...
3
102
#!/usr/bin/env python3 from ctypes import * import m2m2_core
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 18, 198, 198, 6738, 269, 19199, 1330, 1635, 198, 198, 11748, 285, 17, 76, 17, 62, 7295, 198 ]
2.423077
26
import networkx as nx import numpy as np import argparse if __name__ == '__main__': np.random.seed(555) NUM = 10000 parser = argparse.ArgumentParser() parser.add_argument('-d', type=str, default='music') args = parser.parse_args() DATASET = args.d kg_np = np.load('../data/' + DATASET + '...
[ 11748, 3127, 87, 355, 299, 87, 198, 11748, 299, 32152, 355, 45941, 198, 11748, 1822, 29572, 628, 198, 361, 11593, 3672, 834, 6624, 705, 834, 12417, 834, 10354, 198, 220, 220, 220, 45941, 13, 25120, 13, 28826, 7, 31046, 8, 198, 220, ...
2.014719
1,155
import pygame from pygame.locals import* from pygame import mixer pygame.init() # loading in background image backgroundClassic_image=pygame.image.load('image/WallPaper.png') backgroundAncient_image=pygame.image.load('image/WallPaper2.png') # loading in player image player_imageClassic=pygame.image....
[ 11748, 12972, 6057, 201, 198, 6738, 12972, 6057, 13, 17946, 874, 1330, 9, 201, 198, 6738, 12972, 6057, 1330, 33938, 201, 198, 201, 198, 201, 198, 9078, 6057, 13, 15003, 3419, 201, 198, 201, 198, 201, 198, 201, 198, 2, 11046, 287, 44...
1.493381
4,230
import filters as f from filters.test import BaseFilterTestCase # noinspection PyProtectedMember from iso3166 import Country, countries_by_alpha3 from language_tags import tags from language_tags.Tag import Tag from moneyed import Currency, get_currency
[ 11748, 16628, 355, 277, 198, 6738, 16628, 13, 9288, 1330, 7308, 22417, 14402, 20448, 198, 2, 645, 1040, 14978, 9485, 19703, 11197, 27608, 198, 6738, 47279, 18, 23055, 1330, 12946, 11, 2678, 62, 1525, 62, 26591, 18, 198, 6738, 3303, 62, ...
3.953846
65
''' Equivalence of AR(1) and MA(infinity) To better understand the relationship between MA models and AR models, you will demonstrate that an AR(1) model is equivalent to an MA( ) model with the appropriate parameters. You will simulate an MA model with parameters 0.8,0.82,0.83, 0.8 , 0.8 2 , 0.8 3 , for a large n...
[ 7061, 6, 198, 23588, 2473, 594, 286, 5923, 7, 16, 8, 290, 8779, 7, 10745, 6269, 8, 198, 198, 2514, 1365, 1833, 262, 2776, 1022, 8779, 4981, 290, 5923, 4981, 11, 345, 481, 10176, 326, 281, 5923, 7, 16, 8, 2746, 318, 7548, 284, 28...
2.912935
402
import PIL.Image import random import numpy as np import cv2 def HWC_to_CHW(img): return np.transpose(img, (2, 0, 1))
[ 11748, 350, 4146, 13, 5159, 198, 11748, 4738, 198, 11748, 299, 32152, 355, 45941, 198, 11748, 269, 85, 17, 628, 198, 198, 4299, 367, 27353, 62, 1462, 62, 3398, 54, 7, 9600, 2599, 198, 220, 220, 220, 1441, 45941, 13, 7645, 3455, 7, ...
2.358491
53
#!/usr/bin/env python3 import os import subprocess if __name__ == '__main__': out_dir = 'out' if not os.path.exists(out_dir): os.mkdir(out_dir) subprocess.run(['cargo', 'build', '--release']) exe = 'target/release/svg' subprocess.run([exe, '-i', 'test/simple-text.svg', '-o', 'out/simple-t...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 18, 198, 11748, 28686, 198, 11748, 850, 14681, 198, 198, 361, 11593, 3672, 834, 6624, 705, 834, 12417, 834, 10354, 198, 220, 220, 220, 503, 62, 15908, 796, 705, 448, 6, 198, 220, 220, 220...
2.08377
191
""" String format type value enumeration. """ TRUE = '1' FALSE = '0' NONE = ''
[ 37811, 198, 10100, 5794, 2099, 1988, 27056, 341, 13, 198, 37811, 198, 5446, 8924, 796, 705, 16, 6, 198, 37, 23719, 796, 705, 15, 6, 198, 45, 11651, 796, 10148, 198 ]
2.548387
31
from django.contrib import admin from .models import Museums admin.site.register(Museums)
[ 6738, 42625, 14208, 13, 3642, 822, 1330, 13169, 198, 6738, 764, 27530, 1330, 32887, 5700, 198, 198, 28482, 13, 15654, 13, 30238, 7, 44, 1904, 5700, 8 ]
3.333333
27
#!/usr/bin/env python # -*- coding: UTF-8 -*- """ setup ~~~~~ Setup Script Run the build process by running the command 'python setup.py build' :copyright: (c) 2018 by Oleksii Lytvyn. :license: MIT, see LICENSE for more details. """ import osc.osc as osc try: from setuptools import setup...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 198, 2, 532, 9, 12, 19617, 25, 41002, 12, 23, 532, 9, 12, 198, 37811, 198, 220, 220, 220, 9058, 198, 220, 220, 220, 220, 8728, 93, 628, 220, 220, 220, 31122, 12327, 198, 220, 220, 220...
2.653266
597
import asyncio import ssl import aiohttp from . import constants as c def _get_rate_limit_wait(log, resp, opts): """ Returns the number of seconds we should wait given a 429 HTTP response and HTTP options. """ max_wait = 3600 wait = opts['wait'] header_name = opts['rate_limit_reset_he...
[ 11748, 30351, 952, 198, 11748, 264, 6649, 198, 198, 11748, 257, 952, 4023, 628, 198, 6738, 764, 1330, 38491, 355, 269, 628, 198, 4299, 4808, 1136, 62, 4873, 62, 32374, 62, 17077, 7, 6404, 11, 1217, 11, 2172, 82, 2599, 198, 220, 220,...
2.147002
517
#!/usr/bin/env python3 from kubernetes.shell_utils import simple_run as run run(( "python3 gcloud_dataproc/v02/run_script.py " "--cluster create-ht-clinvar " "download_and_create_reference_datasets/v02/hail_scripts/write_clinvar_ht.py"))
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 18, 198, 198, 6738, 479, 18478, 3262, 274, 13, 29149, 62, 26791, 1330, 2829, 62, 5143, 355, 1057, 198, 198, 5143, 19510, 198, 220, 220, 220, 366, 29412, 18, 308, 17721, 62, 19608, 499, 12...
2.4
105
from discord.ext import commands from flegelapi.pg import default, server from distutils.util import strtobool import discord member_table= """ member_( id serial PRIMARY KEY, server_id interger NOT NULL, role_ld interger, channel_id interger, custom_mes character varying DEFAULT , on_off boole...
[ 6738, 36446, 13, 2302, 1330, 9729, 198, 6738, 277, 1455, 417, 15042, 13, 6024, 1330, 4277, 11, 4382, 198, 6738, 1233, 26791, 13, 22602, 1330, 965, 83, 672, 970, 198, 11748, 36446, 198, 198, 19522, 62, 11487, 28, 37227, 2888, 41052, 19...
2.75
132
import gym import numpy as np import sys import theano import theano.tensor as T import layers from layers import FullyConnectedLayer, SoftmaxLayer env = gym.make('CartPole-v0') #Number of actions action_n = env.action_space.n #Number of features observed feature_n = env.observation_space.shape[0] epochs = 100 min...
[ 11748, 11550, 198, 11748, 299, 32152, 355, 45941, 198, 11748, 25064, 198, 11748, 262, 5733, 198, 11748, 262, 5733, 13, 83, 22854, 355, 309, 198, 11748, 11685, 198, 198, 6738, 11685, 1330, 40234, 13313, 276, 49925, 11, 8297, 9806, 49925, ...
2.125705
1,774
#!/usr/bin/python ''' Andrei Dorin 06/10/2018 User interface for WISP chat implementation ''' import argparse import logging import signal import sys import time import queue import select import getpass from wisp_client import WispClient from wisp_common import State, WispRequest, WispResponse, WispMessage, WISP_DEF...
[ 2, 48443, 14629, 14, 8800, 14, 29412, 198, 7061, 6, 198, 31258, 72, 12528, 259, 198, 3312, 14, 940, 14, 7908, 198, 12982, 7071, 329, 370, 1797, 47, 8537, 7822, 198, 7061, 6, 198, 198, 11748, 1822, 29572, 198, 11748, 18931, 198, 1174...
2.619048
588
from newpy.loggers.colored_formatter import ColoredFormatter
[ 6738, 649, 9078, 13, 6404, 5355, 13, 25717, 62, 687, 1436, 1330, 1623, 1850, 8479, 1436, 198 ]
3.588235
17
# coding: utf8 """Sources provide an abstraction between a source of music notes and putao projects.""" from . import mml # noqa from .reg import formats, loads, register # noqa
[ 2, 19617, 25, 3384, 69, 23, 198, 37811, 21188, 2148, 281, 34651, 1022, 257, 2723, 286, 2647, 4710, 290, 1234, 5488, 4493, 526, 15931, 198, 198, 6738, 764, 1330, 285, 4029, 220, 1303, 645, 20402, 198, 6738, 764, 2301, 1330, 17519, 11, ...
3.62
50
# -*- coding: utf-8 -*- """ Created by libsedmlscript v0.0.1 """ from sed_roadrunner import model, task, plot from mpmath import csc #---------------------------------------------- csc(0.5)
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 201, 198, 37811, 201, 198, 201, 198, 41972, 416, 9195, 36622, 4029, 12048, 410, 15, 13, 15, 13, 16, 201, 198, 37811, 201, 198, 201, 198, 6738, 10081, 62, 6344, 16737, 1330,...
2.607595
79
import redis
[ 11748, 2266, 271 ]
4
3
from pyftdi.spi import SpiController from pyftdi.gpio import GpioSyncController import serial import time import sys import JSONFile dbg = False def ui_hex(str): return int(str,16) def uiLoopHelp(): print() print("Command set:") print() print("write <REG_NAME> XXXX1010 1XXXXXX0 | W...
[ 6738, 12972, 701, 10989, 13, 2777, 72, 1330, 1338, 72, 22130, 198, 6738, 12972, 701, 10989, 13, 31197, 952, 1330, 402, 79, 952, 28985, 22130, 198, 11748, 11389, 198, 11748, 640, 198, 11748, 25064, 198, 11748, 19449, 8979, 198, 198, 9945...
1.860465
1,591
from morepath import redirect from onegov.core.security import Private from onegov.gazette import _ from onegov.gazette import GazetteApp from onegov.gazette.forms import EmptyForm from onegov.gazette.layout import Layout from onegov.user import UserGroup from onegov.user import UserGroupCollection from onegov.user.for...
[ 6738, 517, 6978, 1330, 18941, 198, 6738, 530, 9567, 13, 7295, 13, 12961, 1330, 15348, 198, 6738, 530, 9567, 13, 70, 1031, 5857, 1330, 4808, 198, 6738, 530, 9567, 13, 70, 1031, 5857, 1330, 38772, 4677, 198, 6738, 530, 9567, 13, 70, 1...
3.663158
95
from . import utils from . import pth from . import proc from . import log from . import json from . import time from . import importer
[ 6738, 764, 1330, 3384, 4487, 198, 6738, 764, 1330, 279, 400, 198, 6738, 764, 1330, 13834, 198, 6738, 764, 1330, 2604, 198, 6738, 764, 1330, 33918, 198, 6738, 764, 1330, 640, 198, 6738, 764, 1330, 848, 4337, 198 ]
3.578947
38
import numpy as np
[ 11748, 299, 32152, 355, 45941, 628, 628 ]
3.142857
7
# ---------------------------------------------------------------------------- # Copyright (c) 2020 Legorooj <legorooj@protonmail.com> # Copyright (c) 2020 FluffyKoalas <github.com/fluffykoalas> # This file and all others in this project are licensed under the MIT license. # Please see the LICENSE file in the root of t...
[ 2, 16529, 10541, 198, 2, 15069, 357, 66, 8, 12131, 3564, 273, 2238, 73, 1279, 1455, 273, 2238, 73, 31, 1676, 1122, 4529, 13, 785, 29, 198, 2, 15069, 357, 66, 8, 12131, 1610, 15352, 48735, 282, 292, 1279, 12567, 13, 785, 14, 2704, ...
4.014085
142
import netifaces import argparse import os import zmq import threading if __name__ == '__main__': main()
[ 11748, 2010, 361, 2114, 198, 11748, 1822, 29572, 198, 11748, 28686, 198, 11748, 1976, 76, 80, 198, 11748, 4704, 278, 220, 628, 198, 198, 361, 11593, 3672, 834, 6624, 705, 834, 12417, 834, 10354, 198, 220, 220, 220, 1388, 3419, 198 ]
2.756098
41
a = [1, 2, 3] b = a a[0] = 'gouliguojiashengsiyi' print('a =', a) print('b =', b)
[ 64, 796, 685, 16, 11, 362, 11, 513, 60, 198, 65, 796, 257, 198, 198, 64, 58, 15, 60, 796, 705, 70, 2852, 328, 84, 13210, 4448, 31753, 82, 7745, 72, 6, 198, 4798, 10786, 64, 796, 3256, 257, 8, 198, 4798, 10786, 65, 796, 3256, ...
1.693878
49
#!/usr/bin/env python # -*- encoding: utf-8 -*- # @Time : 2021/12/1 13:27 import numpy as np from numpy import random import matplotlib.pyplot as plt from trajectory import Trajectory from rnd import stable_rnd, skewed_stable_rnd if __name__ == "__main__": m1 = CTRW(100, 1, 2) t1, x1 = m1.get() fig1 = pl...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 198, 2, 532, 9, 12, 21004, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 2, 2488, 7575, 1058, 33448, 14, 1065, 14, 16, 1511, 25, 1983, 198, 11748, 299, 32152, 355, 45941, 198, 6738, 299, 321...
1.91215
535
import aiofiles import asyncstdlib from pydantic.types import PositiveFloat from conversion_parameters import ConversionParameters from conversion_spec import ConversionSpec, Currency from conversion_spec_provider import ConversionSpecProvider
[ 11748, 257, 952, 16624, 198, 11748, 30351, 19282, 8019, 198, 6738, 279, 5173, 5109, 13, 19199, 1330, 33733, 43879, 198, 198, 6738, 11315, 62, 17143, 7307, 1330, 44101, 48944, 198, 6738, 11315, 62, 16684, 1330, 44101, 22882, 11, 20113, 198...
4.730769
52
from sqlite3 import Date from twilio.rest import Client from datetime import datetime from playsound import playsound from selenium import webdriver from webdriver_manager.chrome import ChromeDriverManager import csv import time ################################ "PREFCTURE DE PARIS" ###########################...
[ 6738, 44161, 578, 18, 1330, 7536, 201, 198, 6738, 665, 346, 952, 13, 2118, 1330, 20985, 201, 198, 6738, 4818, 8079, 1330, 4818, 8079, 201, 198, 6738, 5341, 633, 1330, 5341, 633, 201, 198, 6738, 384, 11925, 1505, 1330, 3992, 26230, 201...
2.08661
1,882
#!/usr/bin/env python import rospy import math import tf import geometry_msgs.msg from geometry_msgs.msg import PoseStamped from si_utils.lx_transformerROS import my_transformer if __name__ == '__main__': rospy.init_node('my_tf_listener') listener = tf.TransformListener() # my_trans = my_transformer() ...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 220, 220, 198, 11748, 686, 2777, 88, 198, 11748, 10688, 198, 11748, 48700, 198, 11748, 22939, 62, 907, 14542, 13, 19662, 198, 6738, 22939, 62, 907, 14542, 13, 19662, 1330, 37557, 1273, 13322,...
2.225331
1,358
#!/usr/bin/env python import argparse, subprocess, json, os, os.path, urllib2, sys, base64, binascii, time, \ hashlib, re, copy, textwrap #CA = "https://acme-staging.api.letsencrypt.org" CA = "https://acme-v01.api.letsencrypt.org" if __name__ == "__main__": parser = argparse.ArgumentParser( formatter_...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 198, 11748, 1822, 29572, 11, 850, 14681, 11, 33918, 11, 28686, 11, 28686, 13, 6978, 11, 2956, 297, 571, 17, 11, 25064, 11, 2779, 2414, 11, 9874, 292, 979, 72, 11, 640, 11, 3467, 198, 22...
2.563504
685
''' imput1: exome capture, biallelic indel matrix input2: exome capture, biallelic SNP matrix input3: GBS, biallelic indel matrix input4: GBS, biallelic SNP matrix input5: allele count file for exome homozygous or heterozygous genotype input6: allele count file for GBS homozygous or heterozygous genotype input7: tetrap...
[ 7061, 6, 198, 320, 1996, 16, 25, 409, 462, 8006, 11, 275, 498, 293, 677, 773, 417, 17593, 198, 15414, 17, 25, 409, 462, 8006, 11, 275, 498, 293, 677, 25632, 17593, 198, 15414, 18, 25, 402, 4462, 11, 275, 498, 293, 677, 773, 417,...
1.898553
7,738
from pyradioconfig.parts.bobcat.calculators.calc_frame import Calc_Frame_Bobcat
[ 6738, 279, 2417, 9189, 36221, 5647, 13, 42632, 13, 65, 672, 9246, 13, 9948, 3129, 2024, 13, 9948, 66, 62, 14535, 1330, 2199, 66, 62, 19778, 62, 18861, 9246 ]
2.724138
29
import glob import subprocess import os import argparse import shutil input_parser = argparse.ArgumentParser( description="Run RegTools stats script", ) input_parser.add_argument( 'tag', help="Variant tag parameter used to run RegTools.", ) args = input_parser.parse_args() tag = args.tag cwd = os.getcwd(...
[ 11748, 15095, 198, 11748, 850, 14681, 198, 11748, 28686, 198, 11748, 1822, 29572, 198, 11748, 4423, 346, 198, 198, 15414, 62, 48610, 796, 1822, 29572, 13, 28100, 1713, 46677, 7, 198, 220, 220, 220, 6764, 2625, 10987, 3310, 33637, 9756, ...
2.483995
781
import numpy as np import matplotlib.pyplot as plt import os
[ 11748, 299, 32152, 355, 45941, 198, 11748, 2603, 29487, 8019, 13, 9078, 29487, 355, 458, 83, 198, 11748, 28686 ]
3.157895
19
# Copyright (C) 2018-2019 Tormod Landet # SPDX-License-Identifier: Apache-2.0 """ A timeout context manager based on SIGALRM, Permits multiple SIGALRM events to be queued. Uses a `heapq` to store the objects to be called when an alarm signal is raised, so that the next alarm is always at the top of the heap. Note: SI...
[ 2, 15069, 357, 34, 8, 2864, 12, 23344, 309, 579, 375, 6379, 316, 198, 2, 30628, 55, 12, 34156, 12, 33234, 7483, 25, 24843, 12, 17, 13, 15, 198, 37811, 198, 32, 26827, 4732, 4706, 1912, 319, 33993, 1847, 29138, 11, 2448, 24883, 329...
2.58022
910
import folium import altair as alt import leafmap.foliumap as leafmap import pandas as pd import streamlit as st
[ 11748, 5955, 1505, 198, 11748, 5988, 958, 355, 5988, 198, 11748, 12835, 8899, 13, 9062, 1505, 499, 355, 12835, 8899, 198, 11748, 19798, 292, 355, 279, 67, 198, 11748, 4269, 18250, 355, 336, 628 ]
3.352941
34
from utils import LOG_INFO import numpy as np
[ 6738, 3384, 4487, 1330, 41605, 62, 10778, 198, 11748, 299, 32152, 355, 45941, 628, 198 ]
3.2
15
# ----------- # User Instructions # # Modify the valid_month() function to verify # whether the data a user enters is a valid # month. If the passed in parameter 'month' # is not a valid month, return None. # If 'month' is a valid month, then return # the name of the month with the first letter # capitalized. # ...
[ 2, 24200, 6329, 198, 2, 11787, 27759, 198, 2, 220, 198, 2, 3401, 1958, 262, 4938, 62, 8424, 3419, 2163, 284, 11767, 220, 198, 2, 1771, 262, 1366, 257, 2836, 14170, 318, 257, 4938, 220, 198, 2, 1227, 13, 1002, 262, 3804, 287, 11507...
2.339921
253
import sys import weakref import json import logging from .utils import opt_json, Response2JSONLinesIterator from six import StringIO log = logging.getLogger(__name__)
[ 11748, 25064, 198, 11748, 4939, 5420, 198, 11748, 33918, 198, 11748, 18931, 198, 6738, 764, 26791, 1330, 2172, 62, 17752, 11, 18261, 17, 40386, 43, 1127, 37787, 198, 6738, 2237, 1330, 10903, 9399, 198, 198, 6404, 796, 18931, 13, 1136, 1...
3.489796
49
#-*- coding:utf-8 -*- #''' # Created on 19-7-16 2:14 # # @Author: Greg Gao(laygin) #''' from .synth_text import SynthTextConfig, SynthTextDataset from .icdar13 import IcdarConfig, IcdarDataset from .img_aug import resize_image
[ 2, 12, 9, 12, 19617, 25, 40477, 12, 23, 532, 9, 12, 198, 2, 7061, 6, 198, 2, 15622, 319, 678, 12, 22, 12, 1433, 362, 25, 1415, 198, 2, 198, 2, 2488, 13838, 25, 8547, 402, 5488, 7, 10724, 1655, 8, 198, 2, 7061, 6, 198, 6738...
2.430108
93
from alberto.annotation import annotation_set from pandas import np from deepposekit.io import TrainingGenerator, DataGenerator from deepposekit.augment import FlipAxis import imgaug.augmenters as iaa import imgaug as ia from deepposekit.models import StackedHourglass from deepposekit.models import load_model import ...
[ 6738, 435, 32371, 13, 1236, 14221, 1330, 23025, 62, 2617, 198, 6738, 19798, 292, 1330, 45941, 198, 198, 6738, 390, 68, 381, 577, 15813, 13, 952, 1330, 13614, 8645, 1352, 11, 6060, 8645, 1352, 198, 6738, 390, 68, 381, 577, 15813, 13, ...
2.020919
3,155
from .base import * from dotenv import load_dotenv load_dotenv(dotenv_path='northpole/.staging.env', verbose=True) ALLOWED_HOSTS = ['*'] EMAIL_BACKEND = 'django.core.mail.backends.console.EmailBackend' DATABASES = { 'default': { 'ENGINE': 'django.db.backends.postgresql_psycopg2', 'NAME': os.get...
[ 6738, 764, 8692, 1330, 1635, 198, 198, 6738, 16605, 24330, 1330, 3440, 62, 26518, 24330, 198, 2220, 62, 26518, 24330, 7, 26518, 24330, 62, 6978, 11639, 43588, 36869, 11757, 301, 3039, 13, 24330, 3256, 15942, 577, 28, 17821, 8, 628, 198,...
2.149296
355
#!/usr/bin/env python # # Copyright 2014 Corgan Labs # See LICENSE.txt for distribution terms # from bc4py.bip32.base58 import check_decode, check_encode from bc4py_extension import PyAddress from ecdsa.curves import SECP256k1 from ecdsa.keys import SigningKey, VerifyingKey, square_root_mod_prime as mod_sqrt from ecds...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 198, 2, 198, 2, 15069, 1946, 2744, 1030, 23500, 198, 2, 4091, 38559, 24290, 13, 14116, 329, 6082, 2846, 198, 2, 198, 198, 6738, 47125, 19, 9078, 13, 65, 541, 2624, 13, 8692, 3365, 1330, ...
2.236016
3,504
import random from loguru import logger from lib.vars.vars import conf, th, paths from lib.vars.ua import UA_LIST
[ 11748, 4738, 198, 6738, 2604, 14717, 1330, 49706, 198, 6738, 9195, 13, 85, 945, 13, 85, 945, 1330, 1013, 11, 294, 11, 13532, 198, 6738, 9195, 13, 85, 945, 13, 6413, 1330, 46164, 62, 45849, 628, 628, 628, 628, 628 ]
3.075
40
import numpy as np from sympy import * from math import * from timeit import default_timer as timer start = None end = None A = np.matrix(eval(input("Digite uma matriz : "))) A = A.astype(float) X = np.matrix(eval(input("Digite X : "))) e = float(input("Digite a preciso: ")) B = np.copy(A[:,A.shape[1]-1]) A = np.d...
[ 11748, 299, 32152, 355, 45941, 198, 6738, 10558, 88, 1330, 1635, 198, 6738, 10688, 1330, 1635, 198, 198, 6738, 640, 270, 1330, 4277, 62, 45016, 355, 19781, 198, 198, 9688, 796, 6045, 198, 437, 796, 6045, 628, 198, 32, 796, 45941, 13, ...
1.969052
517
import matplotlib.pyplot as plt from matplotlib.colors import ListedColormap import numpy as np
[ 11748, 2603, 29487, 8019, 13, 9078, 29487, 355, 458, 83, 198, 6738, 2603, 29487, 8019, 13, 4033, 669, 1330, 406, 6347, 5216, 579, 499, 198, 11748, 299, 32152, 355, 45941, 198 ]
3.096774
31
import sys if __name__ == "__main__": if len(sys.argv) == 1: nums = [int(e) for e in input('>>> Enter the numbers with comma-separeted: ').split(',')] print(square_sum(numbers=nums)) else: sys.exit(1)
[ 11748, 25064, 628, 198, 198, 361, 11593, 3672, 834, 6624, 366, 834, 12417, 834, 1298, 198, 220, 220, 220, 611, 18896, 7, 17597, 13, 853, 85, 8, 6624, 352, 25, 198, 220, 220, 220, 220, 220, 220, 220, 997, 82, 796, 685, 600, 7, 68...
2.136364
110
import os import pickle from abc import ABC, abstractmethod import h5py import numpy as np from .folders import get_pickle_lazy_loader_data_path, hdf5_lazy_loader_data_path from .unpickler import CustomUnpickler def load_data(self, store_precomputation_on_disk=True): if self.associated_instance is None...
[ 11748, 28686, 198, 11748, 2298, 293, 198, 6738, 450, 66, 1330, 9738, 11, 12531, 24396, 198, 198, 11748, 289, 20, 9078, 198, 11748, 299, 32152, 355, 45941, 198, 198, 6738, 764, 11379, 364, 1330, 651, 62, 27729, 293, 62, 75, 12582, 62, ...
2.353147
572
# @date 2020-01-31 # @author Frederic Scherma, All rights reserved without prejudices. # @license Copyright (c) 2020 Dream Overflow # Binance Websocket connector. import json import threading import traceback from autobahn.twisted.websocket import WebSocketClientFactory, WebSocketClientProtocol, connectWS from twiste...
[ 2, 2488, 4475, 12131, 12, 486, 12, 3132, 198, 2, 2488, 9800, 18669, 291, 47956, 2611, 11, 1439, 2489, 10395, 1231, 39800, 13, 198, 2, 2488, 43085, 15069, 357, 66, 8, 12131, 7610, 3827, 11125, 198, 2, 347, 14149, 47736, 5459, 21716, ...
3.521531
209
list_0 = [1, 2, 3, 6] print(list_slicing(list_0, 1, 4)) print(list_slicing(list_0, 2, 4)) list_1 = [1, 2, 4, 5, 6, 9, 4, 6, 5, 8, 1, 4] print(list_slicing(list_1, 3, 4)) print(list_slicing(list_1, 4, 3)) print(list_slicing(list_1, 2, 6)) print(list_slicing(list_1, 6, 2)) print(list_slicing(list_1, 5, 3)) print(list_s...
[ 198, 4868, 62, 15, 796, 685, 16, 11, 362, 11, 513, 11, 718, 60, 198, 4798, 7, 4868, 62, 82, 677, 278, 7, 4868, 62, 15, 11, 352, 11, 604, 4008, 198, 4798, 7, 4868, 62, 82, 677, 278, 7, 4868, 62, 15, 11, 362, 11, 604, 4008, ...
1.879121
182
from OnePy.sys_module.metabase_env import OnePyEnvBase
[ 6738, 1881, 20519, 13, 17597, 62, 21412, 13, 4164, 5754, 62, 24330, 1330, 1881, 20519, 4834, 85, 14881, 628, 628 ]
2.9
20
""" Test cases for the regi0.geographic.duplicates.find_grid_duplicates function. """ import numpy as np import pandas as pd from regi0.geographic.duplicates import find_grid_duplicates
[ 37811, 198, 14402, 2663, 329, 262, 842, 72, 15, 13, 469, 6826, 13, 646, 489, 16856, 13, 19796, 62, 25928, 62, 646, 489, 16856, 2163, 13, 198, 37811, 198, 11748, 299, 32152, 355, 45941, 198, 11748, 19798, 292, 355, 279, 67, 198, 198,...
2.938462
65
import platform from django.core.exceptions import ObjectDoesNotExist from morango.models import InstanceIDModel import kolibri def get_device_info(): """Returns metadata information about the device""" instance_model = InstanceIDModel.get_or_create_current_instance()[0] try: device_name = koli...
[ 11748, 3859, 198, 198, 6738, 42625, 14208, 13, 7295, 13, 1069, 11755, 1330, 9515, 13921, 3673, 3109, 396, 198, 6738, 2146, 14208, 13, 27530, 1330, 2262, 590, 2389, 17633, 198, 198, 11748, 479, 349, 571, 380, 628, 198, 4299, 651, 62, 2...
2.71831
284
import os import json import logging # cellcraft node CELLCRAFT_NODE_URL="http://192.168.178.29:4534" # path to cache where pickle files will be stored PATH_RESOURCES='cellcraft/resources' PATH_CACHE='cellcraft/resources/cache/' PATH_TEST_CACHE='test/fixtures/cache/' # path to fixtures PATH_TO_FIXTURES="test/fixtu...
[ 11748, 28686, 198, 11748, 33918, 198, 11748, 18931, 628, 198, 2, 2685, 3323, 10139, 198, 5222, 3069, 34, 44700, 62, 45, 16820, 62, 21886, 2625, 4023, 1378, 17477, 13, 14656, 13, 23188, 13, 1959, 25, 2231, 2682, 1, 628, 198, 2, 3108, ...
2.84466
412
# -*- coding: utf-8 -*- """ Simple folder synchronization using FTP. (c) 2012-2021 Martin Wendt; see https://github.com/mar10/pyftpsync Licensed under the MIT license: https://www.opensource.org/licenses/mit-license.php Usage examples: > pyftpsync.py --help > pyftpsync.py upload . ftps://example.com/myfo...
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 201, 198, 37811, 201, 198, 26437, 9483, 42133, 1262, 45854, 13, 201, 198, 201, 198, 7, 66, 8, 2321, 12, 1238, 2481, 5780, 21042, 83, 26, 766, 3740, 1378, 12567, 13, 785, ...
2.368995
3,851