content
stringlengths
1
1.04M
input_ids
listlengths
1
774k
ratio_char_token
float64
0.38
22.9
token_count
int64
1
774k
from django.db import IntegrityError, transaction from curation.parsers.generic import GenericData from curation.parsers.trait import TraitData from catalog.models import Score
[ 6738, 42625, 14208, 13, 9945, 1330, 39348, 12331, 11, 8611, 198, 6738, 1090, 341, 13, 79, 945, 364, 13, 41357, 1330, 42044, 6601, 198, 6738, 1090, 341, 13, 79, 945, 364, 13, 9535, 270, 1330, 4759, 270, 6601, 198, 6738, 18388, 13, 27...
3.847826
46
import unittest import numpy as np from spyne import Tensor, Constant class TestTensor(unittest.TestCase): """ A set of tests to validate tensor definitions, attributes, functionality etc...""" def test_tensor_attributes(self): """ Test tensor attributes """ # value attr should return the wr...
[ 11748, 555, 715, 395, 198, 11748, 299, 32152, 355, 45941, 198, 6738, 13997, 710, 1330, 309, 22854, 11, 20217, 628, 198, 4871, 6208, 51, 22854, 7, 403, 715, 395, 13, 14402, 20448, 2599, 198, 220, 220, 220, 37227, 317, 900, 286, 5254, ...
2.730012
863
import gym import option_keyboard.envs import time import numpy as np UP = 0 RIGHT = 1 DOWN = 2 LEFT = 3 KEY_MAP = ['UP', 'RIGHT', 'DOWN', 'LEFT'] if __name__ == '__main__': main()
[ 11748, 11550, 198, 11748, 3038, 62, 2539, 3526, 13, 268, 14259, 198, 11748, 640, 198, 11748, 299, 32152, 355, 45941, 198, 198, 8577, 796, 657, 198, 49, 9947, 796, 352, 198, 41925, 796, 362, 198, 2538, 9792, 796, 513, 198, 198, 20373, ...
2.405063
79
# https://github.com/codeninja/CCXT-Historical-Data/blob/master/Binance%20Historical%20Data%20.ipynb import ccxt from datetime import datetime, timedelta, timezone import math import argparse import pandas as pd import csv from pathlib import Path import sys scrape_candles_to_csv('btc_usdt_1m.csv', 'binance', 3, ...
[ 2, 3740, 1378, 12567, 13, 785, 14, 19815, 268, 259, 6592, 14, 4093, 25010, 12, 13749, 12409, 12, 6601, 14, 2436, 672, 14, 9866, 14, 33, 14149, 4, 1238, 13749, 12409, 4, 1238, 6601, 4, 1238, 13, 541, 2047, 65, 198, 11748, 36624, 74...
2.401235
162
__author__ = 'jatwood' import sys import numpy as np from sklearn.metrics import f1_score, accuracy_score from graph_scnn import GraphSCNN import data import util if __name__ == '__main__': np.random.seed() args = sys.argv[1:] name_to_data = { 'nci1': lambda: data.parse_nci(graph_name='nci1.g...
[ 834, 9800, 834, 796, 705, 73, 265, 3822, 6, 198, 198, 11748, 25064, 198, 11748, 299, 32152, 355, 45941, 198, 6738, 1341, 35720, 13, 4164, 10466, 1330, 277, 16, 62, 26675, 11, 9922, 62, 26675, 198, 198, 6738, 4823, 62, 1416, 20471, 1...
2.306238
529
PC_RACE, NPC_RACE, SMALL_ANIMAL, LARGE_ANIMAL, MONSTER = range(5) RACE_TYPE_CHOICES = ( (PC_RACE, "Allowed Player Character Race"), (NPC_RACE, "NPC Only Race"), (SMALL_ANIMAL, "Small Animal"), (LARGE_ANIMAL, "Large Animal"), (MONSTER, "Monster"), ) CHEST_KEY, ROOM_KEY = range(2) KEY_CHOICES = ((C...
[ 5662, 62, 49, 11598, 11, 15888, 62, 49, 11598, 11, 9447, 7036, 62, 1565, 3955, 1847, 11, 47211, 8264, 62, 1565, 3955, 1847, 11, 25000, 41809, 796, 2837, 7, 20, 8, 198, 198, 49, 11598, 62, 25216, 62, 44899, 34444, 796, 357, 198, 22...
2.151292
271
#!/usr/bin/python # coding=utf-8 import time from collections import OrderedDict from Key import Key if __name__ == '__main__': n = 100 print_dict('Key generation', test_generation_perf(n), n) print_dict('Signing', test_signing_perf(n), n) print_dict('Verifying', test_verification_perf(n), n)
[ 2, 48443, 14629, 14, 8800, 14, 29412, 198, 2, 19617, 28, 40477, 12, 23, 198, 198, 11748, 640, 198, 198, 6738, 17268, 1330, 14230, 1068, 35, 713, 198, 198, 6738, 7383, 1330, 7383, 628, 628, 628, 198, 361, 11593, 3672, 834, 6624, 705,...
2.593496
123
from flask import Flask, render_template import requests import json ######################################################################################################################## app = Flask(__name__) ########################################################################################################...
[ 6738, 42903, 1330, 46947, 11, 8543, 62, 28243, 198, 11748, 7007, 198, 11748, 33918, 198, 198, 29113, 29113, 29113, 14468, 7804, 198, 198, 1324, 796, 46947, 7, 834, 3672, 834, 8, 628, 198, 29113, 29113, 29113, 14468, 7804, 198, 198, 2, ...
4.201117
179
""" views """ import logging import sys, traceback from django.shortcuts import render_to_response from django.template import RequestContext from core.common.utils import getPrefix, getContextVariables from django.core.urlresolvers import reverse #_logger = logging.getLogger(__name__) _logger = logging.getLogger('...
[ 37811, 220, 198, 33571, 198, 198, 37811, 198, 198, 11748, 18931, 198, 11748, 25064, 11, 12854, 1891, 198, 6738, 42625, 14208, 13, 19509, 23779, 1330, 8543, 62, 1462, 62, 26209, 198, 6738, 42625, 14208, 13, 28243, 1330, 19390, 21947, 198, ...
2.709163
502
################################ # Splunk Connector for OpenCTI # ################################ import os import yaml import json import requests from pycti import OpenCTIConnectorHelper, get_config_variable if __name__ == "__main__": SplunkInstance = SplunkConnector() SplunkInstance.start()
[ 29113, 198, 2, 13341, 2954, 8113, 273, 329, 4946, 4177, 40, 1303, 198, 29113, 198, 198, 11748, 28686, 198, 11748, 331, 43695, 198, 11748, 33918, 198, 11748, 7007, 198, 198, 6738, 12972, 310, 72, 1330, 4946, 4177, 2149, 261, 1606, 273, ...
3.678571
84
from configurations import config_grabber as cg from extendedminigrid import * from perception import Perception import gym class SafetyEnvelope(gym.core.Wrapper): """ Safety envelope for safe exploration. Uses monitors for avoiding unsafe actions and shaping rewards """
[ 198, 6738, 25412, 1330, 4566, 62, 32393, 527, 355, 269, 70, 198, 198, 6738, 7083, 1084, 3692, 312, 1330, 1635, 198, 6738, 11202, 1330, 35802, 198, 198, 11748, 11550, 628, 198, 198, 4871, 11233, 4834, 1091, 68, 7, 1360, 76, 13, 7295, ...
3.708861
79
# MIT License # # (C) Copyright [2022] Hewlett Packard Enterprise Development LP # # Permission is hereby granted, free of charge, to any person obtaining a # copy of this software and associated documentation files (the "Software"), # to deal in the Software without restriction, including without limitation # the righ...
[ 2, 17168, 13789, 198, 2, 198, 2, 357, 34, 8, 15069, 685, 1238, 1828, 60, 30446, 15503, 6400, 446, 14973, 7712, 18470, 198, 2, 198, 2, 2448, 3411, 318, 29376, 7520, 11, 1479, 286, 3877, 11, 284, 597, 1048, 16727, 257, 198, 2, 4866,...
2.013086
6,572
""" rest_entiries_by_entities 커맨드용 클래스 파일 """ import tqdm from django.core.management.base import BaseCommand from django.db import transaction from sunless_web.models import Entry, Entity, Translation, Discussion class Command(BaseCommand): """ V1 > V2 데이터 마이그레이션용 임시 커맨드 """ help = 'Delete all translation...
[ 37811, 198, 2118, 62, 298, 18561, 62, 1525, 62, 298, 871, 23821, 119, 97, 167, 100, 101, 167, 241, 250, 168, 248, 102, 220, 169, 223, 112, 167, 252, 246, 168, 232, 97, 220, 169, 234, 234, 35975, 120, 198, 37811, 198, 11748, 256, ...
2.166227
379
""" A link is based on an GMNS link (https://github.com/zephyr-data-specs/GMNS/blob/master/Specification/link.schema.json). However, our links are only one way: all two way links are broken into two one-way links. This means there is only one direction to consider. Links are made up of one, two, three, or four of the ...
[ 37811, 198, 32, 2792, 318, 1912, 319, 281, 6951, 8035, 2792, 357, 5450, 1378, 12567, 13, 785, 14, 89, 27446, 2417, 12, 7890, 12, 4125, 6359, 14, 15548, 8035, 14, 2436, 672, 14, 9866, 14, 22882, 2649, 14, 8726, 13, 15952, 2611, 13, ...
3.779703
404
#!/usr/bin/env python3 # # formatted with black # import json import requests import sys from os import getenv if __name__ == "__main__": # nest_access_token = get_nest_access_token( # getenv("NEST_CLIENT_ID"), # getenv("NEST_CLIENT_SECRET"), # getenv("NEST_AUTHORIZATION_CODE"), #...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 18, 198, 2, 198, 2, 39559, 351, 2042, 198, 2, 198, 198, 11748, 33918, 198, 11748, 7007, 198, 11748, 25064, 198, 6738, 28686, 1330, 651, 24330, 628, 628, 198, 198, 361, 11593, 3672, 834, 6...
2.380503
318
# imports import time from actors import Wizard, Creature import random if __name__ == '__main__': main()
[ 2, 17944, 198, 11748, 640, 198, 198, 6738, 10544, 1330, 16884, 11, 33248, 198, 11748, 4738, 628, 628, 198, 361, 11593, 3672, 834, 6624, 705, 834, 12417, 834, 10354, 198, 220, 220, 220, 1388, 3419, 198 ]
3.194444
36
""" Trains a simple language model based on the one found at https://github.com/facebookresearch/adaptive-softmax and generates comparative results for full softmax, differentiated softmax, and adaptive softmax. This benchmark uses the text8 (http://mattmahoney.net/dc/textdata.html) dataset. This dataset isn't the best...
[ 37811, 198, 2898, 1299, 257, 2829, 3303, 2746, 1912, 319, 262, 530, 1043, 379, 198, 5450, 1378, 12567, 13, 785, 14, 19024, 34033, 14, 42552, 425, 12, 4215, 9806, 290, 18616, 29270, 198, 43420, 329, 1336, 2705, 9806, 11, 47543, 2705, 9...
2.420609
2,135
from action import ActionType from action import Action from action import Dir import copy from merger import merge from state import StateMA from typing import List import sys
[ 6738, 2223, 1330, 7561, 6030, 198, 6738, 2223, 1330, 7561, 198, 6738, 2223, 1330, 36202, 198, 11748, 4866, 198, 6738, 24589, 1330, 20121, 198, 6738, 1181, 1330, 1812, 5673, 198, 6738, 19720, 1330, 7343, 198, 11748, 25064, 220, 220, 220, ...
4.181818
44
from collections import defaultdict obj = solution() s = ["eat","tea","tan","ate","nat","bat"] s2 = [""] s3 = ["a"] res = obj.groupAnagrams(s) print(res)
[ 6738, 17268, 1330, 4277, 11600, 198, 198, 26801, 796, 4610, 3419, 198, 82, 796, 14631, 4098, 2430, 660, 64, 2430, 38006, 2430, 378, 2430, 32353, 2430, 8664, 8973, 198, 82, 17, 796, 14631, 8973, 198, 82, 18, 796, 14631, 64, 8973, 198, ...
2.627119
59
# Copyright (c) 2016-2017 Anki, 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 in the file LICENSE.txt or at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by appli...
[ 2, 15069, 357, 66, 8, 1584, 12, 5539, 1052, 4106, 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, 2...
3.545293
563
import numpy as np def noj(rel_pos, c_t, D, k): """N.O. Jensen single wake deficit model This function checks if r is greater than the wake radius! Parameters ----------- rel_pos: ndarray [n,3] x,y,z relative position compared to the upstream turbine c_t: float | ndarray [n...
[ 11748, 299, 32152, 355, 45941, 628, 198, 4299, 645, 73, 7, 2411, 62, 1930, 11, 269, 62, 83, 11, 360, 11, 479, 2599, 198, 220, 220, 220, 37227, 45, 13, 46, 13, 32623, 2060, 7765, 11807, 2746, 198, 220, 220, 220, 770, 2163, 8794, ...
2.155508
463
class WebsiteNotFound(Exception): """ *WebsiteNotFound raise* When requests can't reach a website, this error should pop up. (This should make it more clear) """ pass class KillSwitch(Exception): """ *KillSwitch raise* Once a cli...
[ 4871, 15887, 3673, 21077, 7, 16922, 2599, 201, 198, 220, 220, 220, 37227, 201, 198, 220, 220, 220, 220, 220, 220, 220, 1635, 33420, 3673, 21077, 5298, 9, 201, 198, 220, 220, 220, 220, 220, 220, 220, 220, 201, 198, 220, 220, 220, 2...
2.426316
190
import os import time import math import torch import torch.nn as nn import torch.nn.parallel import torch.backends.cudnn as cudnn import torch.distributed as dist import torch.optim import torch.utils.data import torch.utils.data.distributed import torchvision.transforms as transforms import torchvision.datasets as da...
[ 11748, 28686, 198, 11748, 640, 198, 11748, 10688, 198, 11748, 28034, 198, 11748, 28034, 13, 20471, 355, 299, 77, 198, 11748, 28034, 13, 20471, 13, 1845, 29363, 198, 11748, 28034, 13, 1891, 2412, 13, 66, 463, 20471, 355, 269, 463, 20471,...
2.391275
1,490
# -*- coding: utf-8 -*- import os import re try: from setuptools import setup except ImportError: from distutils.core import setup setup ( name = 'optidash', version = '1.0.1', description = 'Official Python integration for Optidash API', long_description = 'Optidash: AI-powered image optimiz...
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 198, 11748, 28686, 198, 11748, 302, 198, 198, 28311, 25, 198, 220, 220, 220, 422, 900, 37623, 10141, 1330, 9058, 198, 16341, 17267, 12331, 25, 198, 220, 220, 220, 422, ...
2.885434
611
import scipy as sp import scipy.linalg as la import pdb from limix.core.covar import FreeFormCov from limix.core.mean import MeanKronSum from limix.core.gp import GP2KronSum from limix.core.gp import GP from limix.utils.preprocess import covar_rescale import time import copy if __name__=='__main__': # define phen...
[ 11748, 629, 541, 88, 355, 599, 198, 11748, 629, 541, 88, 13, 75, 1292, 70, 355, 8591, 198, 11748, 279, 9945, 198, 6738, 1761, 844, 13, 7295, 13, 66, 709, 283, 1330, 3232, 8479, 34, 709, 198, 6738, 1761, 844, 13, 7295, 13, 32604, ...
2.056075
428
from typing import Set, List, Tuple, NamedTuple, Iterator, Optional from collections import deque import heapq RAW = """####### #.G...# #...EG# #.#.#G# #..G#E# #.....# #######""" backpointers = {fighter.pos: None} reached = set() frontier = [(min(fighter.pos.manhattan(target), ...
[ 6738, 19720, 1330, 5345, 11, 7343, 11, 309, 29291, 11, 34441, 51, 29291, 11, 40806, 1352, 11, 32233, 198, 198, 6738, 17268, 1330, 390, 4188, 198, 11748, 24575, 80, 198, 198, 20530, 796, 37227, 4242, 21017, 198, 2, 13, 38, 986, 2, 19...
2.032735
1,894
#!/usr/bin/env python # Copyright (c) 2015 - present Facebook, Inc. # All rights reserved. # # This source code is licensed under the BSD style license found in the # LICENSE file in the root directory of this source tree. An additional grant # of patent rights can be found in the PATENTS file in the same directory. ...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 198, 198, 2, 15069, 357, 66, 8, 1853, 532, 1944, 3203, 11, 3457, 13, 198, 2, 1439, 2489, 10395, 13, 198, 2, 198, 2, 770, 2723, 2438, 318, 11971, 739, 262, 347, 10305, 3918, 5964, 1043, ...
2.977778
360
import corner import emcee import numpy as np class MixedModel(object): """Combine multiple FFDs and fit their parameters simultaneously with shared alpha. """ def __init__(self, BFA=[], loglikelihood=None, alpha_prior=None): '''Constructor for a Mixed Model Bayesian analysis suite. ...
[ 11748, 5228, 198, 11748, 795, 344, 68, 198, 11748, 299, 32152, 355, 45941, 198, 198, 4871, 35250, 17633, 7, 15252, 2599, 198, 220, 220, 220, 37227, 20575, 500, 3294, 18402, 30832, 290, 4197, 220, 198, 220, 220, 220, 511, 10007, 11640, ...
1.9503
1,831
#!/usr/bin/env python3 # -*- coding: utf-8 -*-
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 18, 198, 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 628 ]
2
24
import argparse # borrowed usage from @netspooky/inhale from cmd.bytecode_format_command import format_to_bytecode from cmd.instruction_command import get_instr from cmd.opcode_command import get_op parser = argparse.ArgumentParser(description="mdis.py") args = [ ('-b', "INT_TO_BC", "shift into bytecode format",...
[ 11748, 1822, 29572, 198, 198, 2, 22546, 8748, 422, 2488, 45938, 79, 29655, 14, 259, 71, 1000, 198, 6738, 23991, 13, 26327, 8189, 62, 18982, 62, 21812, 1330, 5794, 62, 1462, 62, 26327, 8189, 198, 6738, 23991, 13, 8625, 2762, 62, 21812,...
2.586466
399
import requests import json import time import sys import os
[ 11748, 7007, 201, 198, 11748, 33918, 201, 198, 11748, 640, 201, 198, 11748, 25064, 201, 198, 11748, 28686, 201, 198, 201, 198 ]
3.090909
22
import numpy as np import json from datetime import datetime from dateutil.parser import parse from balloon.settings import GRIB_PATH from core.models import Column, Cell from forecast.models import GribModel, grib_models from forecast.preprocess import SHORT_NAMES EPSILON = 1e-5 # EPSILON° < 1m
[ 11748, 299, 32152, 355, 45941, 198, 11748, 33918, 198, 6738, 4818, 8079, 1330, 4818, 8079, 198, 6738, 3128, 22602, 13, 48610, 1330, 21136, 198, 198, 6738, 21190, 13, 33692, 1330, 402, 7112, 33, 62, 34219, 198, 6738, 4755, 13, 27530, 133...
3.318681
91
import sys import os from DockerBuildManagement import ChangelogSelections, BuildSelections, PublishSelections, RunSelections, SwarmSelections, TestSelections, BuildTools, PromoteSelections from SwarmManagement import SwarmTools if __name__ == "__main__": arguments = sys.argv[1:] HandleManagement(argum...
[ 11748, 25064, 198, 11748, 28686, 198, 6738, 25716, 15580, 48032, 1330, 609, 8368, 519, 17563, 507, 11, 10934, 17563, 507, 11, 8525, 1836, 17563, 507, 11, 5660, 17563, 507, 11, 38293, 17563, 507, 11, 6208, 17563, 507, 11, 10934, 33637, 1...
3.468085
94
#!/usr/bin/env python # coding: utf-8 # In[1]: from multilayernn import * #Import from own library # # MNIST # ## 1. Data Processing and One Hot Encoding # In[2]: train = pd.read_csv("datasets/mnist_train.csv") #read data from file #separating labels and pixels train_labels=np.array(train.loc[:,'label']) tra...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 198, 2, 19617, 25, 3384, 69, 12, 23, 198, 198, 2, 554, 58, 16, 5974, 628, 198, 6738, 1963, 346, 323, 1142, 77, 1330, 1635, 1303, 20939, 422, 898, 5888, 628, 198, 2, 1303, 29060, 8808, ...
2.932675
1,114
############################################################################### # Copyright (c), Forschungszentrum Jülich GmbH, IAS-1/PGI-1, Germany. # # All rights reserved. # # This file is part of the AiiDA-FLEUR package. # ...
[ 29113, 29113, 7804, 4242, 21017, 198, 2, 15069, 357, 66, 828, 27325, 354, 2150, 82, 89, 298, 6582, 449, 9116, 33467, 402, 2022, 39, 11, 314, 1921, 12, 16, 14, 6968, 40, 12, 16, 11, 4486, 13, 220, 220, 220, 220, 220, 220, 220, 22...
2.304623
2,531
#!/usr/bin/env python """ Twisted-Friendly Orb Reap Threads --------------------------------- """ from twisted.internet.threads import deferToThread import antelope.brttpkt class OrbreapThr(antelope.brttpkt.OrbreapThr): """Twisted-compatible subclass of ``antelope.brttpkt.OrbreapThr``.""" def get(self): ...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 198, 37811, 198, 5080, 6347, 12, 23331, 306, 15839, 797, 499, 14122, 82, 198, 3880, 12, 198, 37811, 198, 198, 6738, 19074, 13, 37675, 13, 16663, 82, 1330, 29135, 2514, 16818, 198, 198, 1174...
2.410891
202
# 2b. Implement a client for the deployed server at 2a: a script that receives # from the command line an addr string, a port integer, and a string msg, # and sends a UDP packet to the addr address, the port port, and the msg content. import socket import sys if len(sys.argv) < 4: print('Please enter <address> <p...
[ 2, 362, 65, 13, 48282, 257, 5456, 329, 262, 12380, 4382, 379, 362, 64, 25, 257, 4226, 326, 11583, 198, 2, 422, 262, 3141, 1627, 281, 37817, 4731, 11, 257, 2493, 18253, 11, 290, 257, 4731, 31456, 11, 198, 2, 290, 12800, 257, 36428,...
2.708
250
# GHC_Codepath SE101 # Sandbox - 3 # 1. SE101:String to Integer (ATOI) # Implement atoi which converts a string to an integer. # The function first discards as many whitespace characters as necessary until the first non-whitespace character is found. Then, starting from this character, # takes an optional initial ...
[ 2, 46615, 62, 43806, 538, 776, 7946, 8784, 198, 2, 3837, 3524, 532, 513, 198, 2, 352, 13, 7946, 8784, 25, 10100, 284, 34142, 357, 1404, 46, 40, 8, 220, 198, 198, 2, 48282, 379, 23013, 543, 26161, 257, 4731, 284, 281, 18253, 13, ...
3.668874
453
from django.contrib import admin from django.contrib.auth.admin import UserAdmin # Register your models here. from django.utils.translation import gettext_lazy as _ from .models import Funuser @admin.register(Funuser)
[ 6738, 42625, 14208, 13, 3642, 822, 1330, 13169, 198, 6738, 42625, 14208, 13, 3642, 822, 13, 18439, 13, 28482, 1330, 11787, 46787, 198, 2, 17296, 534, 4981, 994, 13, 198, 6738, 42625, 14208, 13, 26791, 13, 41519, 1330, 651, 5239, 62, 7...
3.453125
64
''' Created on Oct 4, 2017 @author: jschmid3@stevens.edu Pledge: I pledge my honor that I have abided by the Stevens Honor System -Joshua Schmidt CS115 - hw4 ''' def pascal_row(n): """returns the pascal triangle row of the given integer n""" return triangle(n + 1, [])[n] def pascal_triangle(n): """ret...
[ 7061, 6, 198, 41972, 319, 2556, 604, 11, 2177, 198, 198, 31, 9800, 25, 474, 20601, 13602, 18, 31, 4169, 574, 82, 13, 15532, 198, 47, 2965, 25, 220, 220, 220, 314, 13995, 616, 7522, 326, 314, 423, 450, 1384, 416, 262, 20019, 21071,...
2.631579
171
from setuptools import find_packages, setup setup( name='osl_api', version='0.0.1', packages=find_packages(), author="Anthony Dugarte", author_email="toonny1998@gmai.com", description="Simple Python OSL Exchange API client which handles authorization for you and exposes a requests-like interfa...
[ 6738, 900, 37623, 10141, 1330, 1064, 62, 43789, 11, 9058, 628, 198, 40406, 7, 198, 220, 220, 220, 1438, 11639, 418, 75, 62, 15042, 3256, 198, 220, 220, 220, 2196, 11639, 15, 13, 15, 13, 16, 3256, 198, 220, 220, 220, 10392, 28, 197...
2.921429
140
from .cmath import add # noqa
[ 6738, 764, 66, 11018, 1330, 751, 220, 1303, 645, 20402, 198 ]
2.818182
11
import sqlalchemy as sa from airflow.operators.python_operator import PythonOperator from dataflow import config from dataflow.dags import _PipelineDAG from dataflow.operators.common import fetch_from_hawk_api from dataflow.utils import TableConfig
[ 11748, 44161, 282, 26599, 355, 473, 198, 6738, 45771, 13, 3575, 2024, 13, 29412, 62, 46616, 1330, 11361, 18843, 1352, 198, 198, 6738, 1366, 11125, 1330, 4566, 198, 6738, 1366, 11125, 13, 67, 3775, 1330, 4808, 47, 541, 4470, 35, 4760, ...
3.652174
69
from dataclasses import dataclass from typing import Any, Callable, Dict, List, NewType, Optional, Tuple, Union from enum import Enum import torch from torch.utils.data import DataLoader from transformers import AutoTokenizer, BertTokenizer # from transformers.configuration_bert import BertTokenizer, BertTokenizerFast...
[ 6738, 4818, 330, 28958, 1330, 4818, 330, 31172, 198, 6738, 19720, 1330, 4377, 11, 4889, 540, 11, 360, 713, 11, 7343, 11, 968, 6030, 11, 32233, 11, 309, 29291, 11, 4479, 198, 6738, 33829, 1330, 2039, 388, 198, 11748, 28034, 198, 198, ...
2.720854
1,218
import logging import sys import tetueSrc from irc.bot import SingleServerIRCBot # config HOST = 'irc.twitch.tv' PORT = 6667 read_successful, cfg = tetueSrc.get_configuration("bot") CLIENT_ID = cfg["client_id"] owner = cfg["owner"] USERNAME = cfg["name"].lower() TOKEN = cfg["token"] PASSWORD = f"oauth:{TOKEN}" CHANNE...
[ 11748, 18931, 198, 11748, 25064, 198, 11748, 28408, 518, 50, 6015, 198, 198, 6738, 220, 1980, 13, 13645, 1330, 14206, 10697, 49060, 20630, 198, 198, 2, 4566, 198, 39, 10892, 796, 705, 1980, 13, 31844, 13, 14981, 6, 198, 15490, 796, 71...
2.522013
159
from dvc.dependency.base import BaseDependency from dvc.output.ssh import SSHOutput
[ 6738, 288, 28435, 13, 45841, 1387, 13, 8692, 1330, 7308, 35, 2690, 1387, 198, 6738, 288, 28435, 13, 22915, 13, 45824, 1330, 33825, 26410, 628 ]
3.4
25
import math while True: try: (PM, PN) = (int(i) for i in raw_input().split()) find_num_of_prime = 0 i = 0 while True: if isPrime(i): find_num_of_prime += 1 if find_num_of_prime == PM: break i += 1 x = [] ...
[ 11748, 10688, 628, 198, 4514, 6407, 25, 198, 220, 220, 220, 1949, 25, 198, 220, 220, 220, 220, 220, 220, 220, 357, 5868, 11, 350, 45, 8, 796, 357, 600, 7, 72, 8, 329, 1312, 287, 8246, 62, 15414, 22446, 35312, 28955, 628, 220, 22...
1.59276
442
"""Tests relating to the Material class.""" import pytest import pygaps import pygaps.utilities.exceptions as pgEx @pytest.mark.core class TestMaterial(): """Test the material class.""" def test_material_basic(self): """Basic creation tests.""" mat = pygaps.Material('material1') asse...
[ 37811, 51, 3558, 11270, 284, 262, 14633, 1398, 526, 15931, 198, 198, 11748, 12972, 9288, 198, 198, 11748, 12972, 70, 1686, 198, 11748, 12972, 70, 1686, 13, 315, 2410, 13, 1069, 11755, 355, 23241, 3109, 628, 198, 31, 9078, 9288, 13, 41...
2.601218
657
from pyper import R for i in range(20): r("a <- rbind(a, seq(1000000) * 1.0 * %d)" % i) print r("sum(a)")
[ 6738, 12972, 525, 1330, 371, 198, 1640, 1312, 287, 2837, 7, 1238, 2599, 198, 220, 220, 220, 374, 7203, 64, 24293, 374, 21653, 7, 64, 11, 33756, 7, 16, 10535, 8, 1635, 352, 13, 15, 1635, 4064, 67, 16725, 4064, 1312, 8, 198, 4798, ...
2.137255
51
import time import traceback import telegram from telegram.ext.dispatcher import run_async from mayday import LogConfig from mayday.constants import conversations, stages from mayday.constants.replykeyboards import ReplyKeyboards from mayday.controllers.redis import RedisHelper from mayday.features import (platform_s...
[ 11748, 640, 198, 11748, 12854, 1891, 198, 198, 11748, 573, 30536, 198, 6738, 573, 30536, 13, 2302, 13, 6381, 8071, 2044, 1330, 1057, 62, 292, 13361, 198, 198, 6738, 743, 820, 1330, 5972, 16934, 198, 6738, 743, 820, 13, 9979, 1187, 133...
2.914798
223
'''hello world''' def hello(): '''Hello world''' print('hello world')
[ 7061, 6, 31373, 995, 7061, 6, 198, 198, 4299, 23748, 33529, 198, 220, 220, 220, 705, 7061, 15496, 995, 7061, 6, 198, 220, 220, 220, 3601, 10786, 31373, 995, 11537, 198 ]
2.548387
31
from datetime import datetime, timedelta
[ 6738, 4818, 8079, 1330, 4818, 8079, 11, 28805, 12514 ]
4.444444
9
import dgl import numpy as np import random import torch from dgllife.utils.featurizers import one_hot_encoding from dgllife.utils.mol_to_graph import smiles_to_bigraph from dgllife.utils.splitters import RandomSplitter def set_random_seed(seed=0): """Set random seed. Parameters ---------- seed : int ...
[ 11748, 288, 4743, 198, 11748, 299, 32152, 355, 45941, 198, 11748, 4738, 198, 11748, 28034, 198, 198, 6738, 288, 70, 297, 901, 13, 26791, 13, 5036, 2541, 11341, 1330, 530, 62, 8940, 62, 12685, 7656, 198, 6738, 288, 70, 297, 901, 13, ...
2.305605
1,695
import os import sys import argparse import csv import itertools import pew.pew as p if __name__ == "__main__": parser = argparse.ArgumentParser(description='PowerCouples Serial native version') parser.add_argument('-i','--input', dest="input_csv", help="input file in csv format", required=True, type=arg...
[ 11748, 28686, 198, 11748, 25064, 198, 11748, 1822, 29572, 198, 11748, 269, 21370, 198, 11748, 340, 861, 10141, 198, 11748, 279, 413, 13, 79, 413, 355, 279, 628, 198, 361, 11593, 3672, 834, 6624, 366, 834, 12417, 834, 1298, 220, 220, 2...
2.575342
292
# importing the module import tweepy import os # personal details consumer_key = "" consumer_secret = "" access_token = "" access_token_secret = "" # authentication of consumer key and secret auth = tweepy.OAuthHandler(consumer_key, consumer_secret) # authentication of access token and secret auth.set_access_token(a...
[ 2, 33332, 262, 8265, 198, 11748, 4184, 538, 88, 198, 11748, 28686, 198, 198, 2, 2614, 3307, 198, 198, 49827, 62, 2539, 796, 13538, 198, 49827, 62, 21078, 796, 13538, 198, 15526, 62, 30001, 796, 13538, 198, 15526, 62, 30001, 62, 21078,...
3.406015
133
# Author: Leland McInnes <leland.mcinnes@gmail.com> # # License: BSD 3 clause import time import numpy as np import numba import scipy.sparse @numba.njit(parallel=True) def fast_knn_indices(X, n_neighbors): """A fast computation of knn indices. Parameters ---------- X: array of shape (n_samples, n_...
[ 2, 6434, 25, 406, 8822, 1982, 818, 2516, 1279, 293, 1044, 13, 76, 17879, 2516, 31, 14816, 13, 785, 29, 198, 2, 198, 2, 13789, 25, 347, 10305, 513, 13444, 198, 198, 11748, 640, 198, 198, 11748, 299, 32152, 355, 45941, 198, 11748, 9...
2.352039
7,431
from malaya_speech.utils import check_file from malaya_speech.path import CTC_VOCABS import json
[ 6738, 6428, 11729, 62, 45862, 13, 26791, 1330, 2198, 62, 7753, 198, 6738, 6428, 11729, 62, 45862, 13, 6978, 1330, 327, 4825, 62, 53, 4503, 32, 4462, 198, 11748, 33918, 628, 198 ]
3.09375
32
from http.server import BaseHTTPRequestHandler import CryptoService import Database import Packager import XMLParser
[ 6738, 2638, 13, 15388, 1330, 7308, 40717, 18453, 25060, 198, 198, 11748, 36579, 16177, 198, 11748, 24047, 198, 11748, 6400, 3536, 198, 11748, 23735, 46677, 628, 198 ]
4.444444
27
from functools import wraps import os import json import requests from flask import redirect, url_for, jsonify, request from flask_jwt_extended import ( get_jwt_identity, verify_jwt_in_request, unset_jwt_cookies ) TOKEN_BLACKLIST = set() # Decorators
[ 6738, 1257, 310, 10141, 1330, 27521, 198, 11748, 28686, 198, 11748, 33918, 198, 11748, 7007, 198, 6738, 42903, 1330, 18941, 11, 19016, 62, 1640, 11, 33918, 1958, 11, 2581, 198, 6738, 42903, 62, 73, 46569, 62, 2302, 1631, 1330, 357, 198,...
2.806452
93
""" Code related to the concept of topic tree and its management: creating and removing topics, getting info about a particular topic, etc. :copyright: Copyright since 2006 by Oliver Schoenborn, all rights reserved. :license: BSD, see LICENSE_BSD_Simple.txt for details. """ __all__ = [ 'TopicManager', ...
[ 37811, 201, 198, 10669, 3519, 284, 262, 3721, 286, 7243, 5509, 290, 663, 4542, 25, 4441, 220, 201, 198, 392, 10829, 10233, 11, 1972, 7508, 546, 257, 1948, 7243, 11, 3503, 13, 220, 201, 198, 201, 198, 25, 22163, 4766, 25, 15069, 1201...
2.411391
7,866
import sqlite3 import pymongo import os from dotenv import load_dotenv from pprintpp import pprint if __name__ == "__main__": # Open a connection mongo_client = create_mongodb_connection() db = mongo_client.rgb_characters # How many total documents are there? doc_count = db.rgb_characters.count_...
[ 11748, 44161, 578, 18, 198, 11748, 279, 4948, 25162, 198, 11748, 28686, 198, 6738, 16605, 24330, 1330, 3440, 62, 26518, 24330, 198, 6738, 279, 4798, 381, 1330, 279, 4798, 628, 198, 361, 11593, 3672, 834, 6624, 366, 834, 12417, 834, 1298...
2.99774
885
# test list comprehension print([x.upper() for x in ["one", "two", "three", "four", "five", "six"]]) print([x.upper() for x in ["one", "two", "three", "four", "five", "six"] if len(x) <= 4]) print([x for x in range(10)])
[ 2, 1332, 1351, 35915, 198, 198, 4798, 26933, 87, 13, 45828, 3419, 329, 2124, 287, 14631, 505, 1600, 366, 11545, 1600, 366, 15542, 1600, 366, 14337, 1600, 366, 13261, 1600, 366, 19412, 8973, 12962, 198, 198, 4798, 26933, 87, 13, 45828, ...
2.635294
85
#!/usr/bin/python3 # -*- coding: utf-8 -*- # Copyright 2021-... Oleksandr Kolodkin <alexandr.kolodkin@gmail.com>. # This program is distributed under the MIT license. # Glory to Ukraine! from typing import Tuple, Optional import DipTrace
[ 2, 48443, 14629, 14, 8800, 14, 29412, 18, 198, 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 198, 2, 15069, 33448, 12, 986, 30093, 591, 46273, 25910, 375, 5116, 1279, 1000, 87, 46273, 13, 74, 349, 375, 5116, 31, ...
2.975309
81
#!/usr/bin/env python3 # # Copyright (c) 2021 Iliass Alami Qammouri # # This is free software, licensed under the MIT License. # See /LICENSE for more information. # import conf.conf as conf
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 18, 198, 2, 198, 2, 15069, 357, 66, 8, 33448, 314, 4528, 562, 978, 6277, 1195, 6475, 10300, 198, 2, 198, 2, 770, 318, 1479, 3788, 11, 11971, 739, 262, 17168, 13789, 13, 198, 2, 4091, ...
3.047619
63
import math import matplotlib import numpy as np from typing import Sequence from PIL import Image from io import BytesIO from contextlib import contextmanager from matplotlib.artist import Artist from matplotlib.axes import Axes from figpptx.slide_editor import SlideTransformer, Box def fig_to_image(fig, **kwargs):...
[ 11748, 10688, 198, 11748, 2603, 29487, 8019, 198, 11748, 299, 32152, 355, 45941, 198, 6738, 19720, 1330, 45835, 198, 6738, 350, 4146, 1330, 7412, 198, 6738, 33245, 1330, 2750, 4879, 9399, 198, 6738, 4732, 8019, 1330, 4732, 37153, 198, 673...
2.338125
1,461
import sys baseline = sys.argv[1] benchmark_decls = sys.argv[2] benchmark_map = sys.argv[3] baseline_types = {} with open(baseline) as f: for line in f: if line.strip() == "": continue if line.strip()[0] == '#': continue if line.startswith("type "): inf...
[ 11748, 25064, 198, 198, 12093, 4470, 796, 25064, 13, 853, 85, 58, 16, 60, 198, 26968, 4102, 62, 32446, 82, 796, 25064, 13, 853, 85, 58, 17, 60, 198, 26968, 4102, 62, 8899, 796, 25064, 13, 853, 85, 58, 18, 60, 628, 198, 12093, 44...
2.080047
4,285
#!/usr/bin/env python from setuptools import setup setup(name='gtsc', version='0.1', description='Goblin Trello Sync Client. ', author='eternnoir', author_email='eternnoir@gmail.com', url='https://github.com/ggoblin/trello-sync-client', packages=['gtsc'], install_requires=['re...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 198, 6738, 900, 37623, 10141, 1330, 9058, 198, 198, 40406, 7, 3672, 11639, 70, 912, 66, 3256, 198, 220, 220, 220, 220, 220, 2196, 11639, 15, 13, 16, 3256, 198, 220, 220, 220, 220, 220, ...
2.021552
232
hour_of_the_day = int(input()) day_of_the_week = str(input()) if 10 <= hour_of_the_day <= 18: if day_of_the_week == 'Monday' or day_of_the_week == 'Tuesday' or day_of_the_week == 'Wednesday' or \ day_of_the_week == 'Thursday' or day_of_the_week == 'Friday': print('...
[ 9769, 62, 1659, 62, 1169, 62, 820, 796, 493, 7, 15414, 28955, 198, 820, 62, 1659, 62, 1169, 62, 10464, 796, 965, 7, 15414, 28955, 198, 198, 361, 838, 19841, 1711, 62, 1659, 62, 1169, 62, 820, 19841, 1248, 25, 198, 220, 220, 220, ...
2.047619
189
""" protocolDefinitions.py The following module consists of a list of commands or definitions to be used in the communication between devices and the control system Michael Xynidis Fluvio L Lobo Fenoglietto 09/26/2016 """ # Definition Name Valu...
[ 37811, 198, 11235, 4668, 7469, 50101, 13, 9078, 198, 198, 464, 1708, 8265, 10874, 286, 257, 1351, 286, 9729, 393, 17336, 284, 307, 973, 287, 262, 6946, 1022, 4410, 290, 262, 1630, 1080, 198, 198, 13256, 1395, 2047, 29207, 198, 37, 229...
1.503502
2,427
from flask import Flask, render_template, jsonify, request, redirect, url_for, flash from app import people app = Flask(__name__) app.debug=True @app.route("/",methods=['GET','POST']) @app.route('/run',methods=['GET','POST']) app.run()
[ 6738, 42903, 1330, 46947, 11, 8543, 62, 28243, 11, 33918, 1958, 11, 2581, 11, 18941, 11, 19016, 62, 1640, 11, 7644, 198, 6738, 598, 1330, 661, 198, 198, 1324, 796, 46947, 7, 834, 3672, 834, 8, 198, 1324, 13, 24442, 28, 17821, 198, ...
2.811765
85
# todo add a ylabel bis ! # write down that, if label on bis axis, need to pass the label to the other dict. Be careful bc two axison same figure and so can be crowded. class Dict_ax_for_APlot(object): """ dict_ax_for_APlot is an object that stores the properties of each axs of a APlot. DEFAULT_DICT is then...
[ 2, 284, 4598, 751, 257, 331, 18242, 47457, 5145, 198, 2, 3551, 866, 326, 11, 611, 6167, 319, 47457, 16488, 11, 761, 284, 1208, 262, 6167, 284, 262, 584, 8633, 13, 1355, 8161, 47125, 734, 7877, 1653, 976, 3785, 290, 523, 460, 307, ...
2.314833
1,045
from dataclasses import dataclass @dataclass
[ 6738, 4818, 330, 28958, 1330, 4818, 330, 31172, 628, 198, 31, 19608, 330, 31172 ]
3.285714
14
n, q = map(int, input().split()) graph = [[] for _ in range(n)] for i in range(n - 1): a, b = map(int, input().split()) graph[a - 1].append(b - 1) graph[b - 1].append(a - 1) group = [[], []] town_color = [-1] * n tmp = [[0, -1, 0]] while tmp: v, past, color = tmp.pop() town_color[v] = color gr...
[ 77, 11, 10662, 796, 3975, 7, 600, 11, 5128, 22446, 35312, 28955, 198, 198, 34960, 796, 16410, 60, 329, 4808, 287, 2837, 7, 77, 15437, 198, 1640, 1312, 287, 2837, 7, 77, 532, 352, 2599, 198, 220, 220, 220, 257, 11, 275, 796, 3975, ...
2.144737
304
from __future__ import absolute_import, division, print_function del absolute_import, division, print_function
[ 6738, 11593, 37443, 834, 1330, 4112, 62, 11748, 11, 7297, 11, 3601, 62, 8818, 198, 198, 12381, 4112, 62, 11748, 11, 7297, 11, 3601, 62, 8818, 628 ]
4.185185
27
# This file is auto-generated from a Python script that parses a PhysiCell configuration (.xml) file. # # Edit at your own risk. # import os from ipywidgets import Label,Text,Checkbox,Button,HBox,VBox,FloatText,IntText,BoundedIntText,BoundedFloatText,Layout,Box,Dropdown, Text # Populate the GUI widgets with valu...
[ 220, 198, 2, 770, 2393, 318, 8295, 12, 27568, 422, 257, 11361, 4226, 326, 13544, 274, 257, 8687, 72, 28780, 8398, 20262, 19875, 8, 2393, 13, 198, 2, 198, 2, 5312, 379, 534, 898, 2526, 13, 198, 2, 198, 11748, 28686, 198, 6738, 2096...
3.372881
118
from Bio import AlignIO from Bio.Seq import Seq from Bio import SeqIO from Bio import pairwise2 from Bio.pairwise2 import format_alignment import numpy as np import pandas thing = True # Using the nomenclature of the GUI explanation, here are some example GUI start/end values # As a reminder, it goes S1s, S1e/H1s, H1...
[ 6738, 16024, 1330, 978, 570, 9399, 198, 6738, 16024, 13, 4653, 80, 1330, 1001, 80, 198, 6738, 16024, 1330, 1001, 80, 9399, 198, 6738, 16024, 1330, 5166, 3083, 17, 198, 6738, 16024, 13, 24874, 3083, 17, 1330, 5794, 62, 282, 16747, 198,...
3.043651
252
# encoding : UTF-8 from .action_object import ActionObject
[ 2, 21004, 1058, 41002, 12, 23, 198, 198, 6738, 764, 2673, 62, 15252, 1330, 7561, 10267, 198 ]
3.529412
17
# # Copyright (c) 2020 Seagate Technology LLC and/or its Affiliates # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by ap...
[ 2, 198, 2, 15069, 357, 66, 8, 12131, 1001, 37861, 8987, 11419, 290, 14, 273, 663, 6708, 2403, 689, 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, ...
3.800797
251
#Nessa aula, vamos começar nossos estudos com os laços # e vamos fazer primeiro o “for”, que é uma estrutura versátil e simples de entender. # Por exemplo: i = int(input('Início: ')) f = int(input('fim: ')) p = int(input('Passo: ')) for c in range(i, f+1, p): print(c) print('fim')
[ 2, 45, 21411, 257, 4712, 11, 410, 321, 418, 1282, 16175, 283, 299, 793, 418, 1556, 42418, 401, 28686, 8591, 16175, 418, 198, 2, 304, 410, 321, 418, 277, 19178, 6994, 7058, 267, 564, 250, 1640, 447, 251, 11, 8358, 38251, 334, 2611, ...
2.2
130
# Author: Frank Cwitkowitz <fcwitkow@ur.rochester.edu> # My imports from amt_tools.models import OnsetsFrames from amt_tools.features import MelSpec from amt_tools.datasets import MAPS from amt_tools.train import train, validate from amt_tools.transcribe import * from amt_tools.evaluate import * import amt_tools.too...
[ 2, 6434, 25, 5278, 327, 39289, 74, 20951, 1279, 16072, 39289, 74, 322, 31, 333, 13, 305, 35983, 13, 15532, 29, 198, 198, 2, 2011, 17944, 198, 6738, 716, 83, 62, 31391, 13, 27530, 1330, 1550, 28709, 35439, 198, 6738, 716, 83, 62, 3...
2.79845
258
#!/usr/bin/python # Python Imports import collections import datetime import numbers import swapper from hashlib import sha256 # Django Imports from django.conf import settings from django.db import models import utils # Local Imports from mwbase.models import PhoneCall, Practitioner, Visit, Connection from transport...
[ 2, 48443, 14629, 14, 8800, 14, 29412, 198, 2, 11361, 1846, 3742, 198, 11748, 17268, 198, 11748, 4818, 8079, 198, 11748, 3146, 198, 11748, 1509, 11463, 198, 6738, 12234, 8019, 1330, 427, 64, 11645, 198, 198, 2, 37770, 1846, 3742, 198, ...
3.705882
119
#!/usr/bin/env python # -*- coding: utf-8 -*- # # Copyright 2016-2017 China Telecommunication Co., Ltd. # # 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/lice...
[ 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, 15069, 1584, 12, 5539, 2807, 14318, 32560, 1766, 1539, 12052, 13, 198, 2, 198, 2, 220, 49962, 739, ...
3.390698
215
# coding: utf-8 # # Intro to Pandas (5) - Accessing and Changing Specific Observations # In the last lesson we saw how to rename and drop columns, and to set the index in a DataFrame. # # In this lesson we'll learn about positional and label-based selection and how to use this to make changes to specific observatio...
[ 198, 2, 19617, 25, 3384, 69, 12, 23, 198, 198, 2, 1303, 37219, 284, 16492, 292, 357, 20, 8, 532, 8798, 278, 290, 33680, 17377, 19243, 602, 198, 198, 2, 554, 262, 938, 11483, 356, 2497, 703, 284, 36265, 290, 4268, 15180, 11, 290, ...
3.085151
1,421
# ------------------------------------------------------------------------ # # # Made with python 3.8.8 # # # ------------------------------------------------------------------------ eratostenes(100)
[ 2, 16529, 982, 201, 198, 2, 201, 198, 2, 201, 198, 2, 14446, 351, 21015, 513, 13, 23, 13, 23, 201, 198, 2, 201, 198, 2, 201, 198, 2, 16529, 982, 201, 198, 201, 198, 263, 265, 455, 18719, 7, 3064, 8 ]
4.952381
42
"""Generate graph-based cross-validation spatial folds""" import os import time from typing import Dict, List from dataclasses import dataclass, field import pandas as pd import numpy as np from sklearn.decomposition import PCA from tqdm import tqdm from src.scv.scv import SpatialCV X_1DIM_COL = "X_1DIM" @dataclass...
[ 37811, 8645, 378, 4823, 12, 3106, 3272, 12, 12102, 341, 21739, 38744, 37811, 198, 11748, 28686, 198, 11748, 640, 198, 6738, 19720, 1330, 360, 713, 11, 7343, 198, 6738, 4818, 330, 28958, 1330, 4818, 330, 31172, 11, 2214, 198, 11748, 1979...
2.249903
5,170
# Copyright (c) 2015 SONATA-NFV, UBIWHERE # ALL RIGHTS RESERVED. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by app...
[ 2, 220, 15069, 357, 66, 8, 1853, 311, 1340, 13563, 12, 21870, 53, 11, 471, 3483, 47357, 198, 2, 11096, 371, 34874, 15731, 1137, 53, 1961, 13, 198, 2, 198, 2, 49962, 739, 262, 24843, 13789, 11, 10628, 362, 13, 15, 357, 1169, 366, ...
3.792899
338
# ##### BEGIN GPL LICENSE BLOCK ##### # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License # as published by the Free Software Foundation; either version 2 # of the License, or (at your option) any later version. # # This program is distrib...
[ 2, 46424, 347, 43312, 38644, 38559, 24290, 9878, 11290, 46424, 198, 2, 198, 2, 220, 770, 1430, 318, 1479, 3788, 26, 345, 460, 17678, 4163, 340, 290, 14, 273, 198, 2, 220, 13096, 340, 739, 262, 2846, 286, 262, 22961, 3611, 5094, 1378...
3.181982
1,665
# Copyright The OpenTelemetry Authors # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in ...
[ 2, 15069, 383, 4946, 31709, 41935, 46665, 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, 9...
3.181287
342
from socket import * import threading try: pairfamily = AF_UNIX except NameError: pairfamily = AF_INET def SocketPair(family=pairfamily, type_=SOCK_STREAM, proto=IPPROTO_IP): """Wraps socketpair() to support Windows using local ephemeral ports""" try: sock1, sock2 = socketpair(family, type_, p...
[ 6738, 17802, 1330, 1635, 198, 11748, 4704, 278, 198, 198, 28311, 25, 198, 220, 220, 220, 5166, 17989, 796, 12341, 62, 4944, 10426, 198, 16341, 6530, 12331, 25, 198, 220, 220, 220, 5166, 17989, 796, 12341, 62, 1268, 2767, 198, 198, 429...
2.349869
383
from rest_framework import serializers from rest_framework.validators import UniqueValidator from rest_framework_jwt.settings import api_settings from notes.models import PersonalNote from django.contrib.auth.models import User, Group # from taggit_serializer.serializers import (TagListSerializerField, TaggitSerializer...
[ 6738, 1334, 62, 30604, 1330, 11389, 11341, 198, 6738, 1334, 62, 30604, 13, 12102, 2024, 1330, 30015, 47139, 1352, 198, 6738, 1334, 62, 30604, 62, 73, 46569, 13, 33692, 1330, 40391, 62, 33692, 198, 6738, 4710, 13, 27530, 1330, 15644, 642...
3.962963
81
# Copyright 2019-2020 The Kale Authors # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agree...
[ 2, 220, 15069, 13130, 12, 42334, 383, 509, 1000, 46665, 198, 2, 198, 2, 220, 49962, 739, 262, 24843, 13789, 11, 10628, 362, 13, 15, 357, 1169, 366, 34156, 15341, 198, 2, 220, 345, 743, 407, 779, 428, 2393, 2845, 287, 11846, 351, 2...
2.019874
1,107
from io import TextIOWrapper from typing import Optional, Sequence, Union from services.external_api.client import RetryConfig from starkware.starknet.cli.starknet_cli import assert_tx_received, validate_arguments from starkware.starknet.definitions import constants, fields from starkware.starknet.public.abi_structs i...
[ 6738, 33245, 1330, 8255, 40, 3913, 430, 2848, 198, 6738, 19720, 1330, 32233, 11, 45835, 11, 4479, 198, 198, 6738, 2594, 13, 22615, 62, 15042, 13, 16366, 1330, 4990, 563, 16934, 198, 6738, 19278, 1574, 13, 301, 668, 3262, 13, 44506, 13...
2.642918
1,179
# -*- coding: utf-8 -*- # Generated by Django 1.11 on 2018-08-12 04:18 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, 319, 2864, 12, 2919, 12, 1065, 8702, 25, 1507, 198, 6738, 11593, 37443, 834, 1330, 28000, 1098, 62, 17201, 874, 198, 198, 6738...
2.791045
67
import avlpy # -------------------------------------------------------------------------------------------- # AVL SESSION # -------------------------------------------------------------------------------------------- # setup avl session avlSess = avlpy.avlRun('avl3.35','wingus.avl','wingus.mass') # set cruise conditio...
[ 11748, 1196, 75, 9078, 198, 2, 16529, 1783, 10541, 198, 2, 14661, 43, 311, 47621, 198, 2, 16529, 1783, 10541, 198, 2, 9058, 1196, 75, 6246, 198, 615, 75, 50, 408, 796, 1196, 75, 9078, 13, 615, 75, 10987, 10786, 615, 75, 18, 13, ...
3.186475
488
import logging import os import asyncio from html import escape from aiogram import Bot, Dispatcher, executor, types BOT_TOKEN: str = os.getenv("BOT_TOKEN") MSG_LENGTH_LIMIT = 2 ** 12 SANDBOX_USER = 'bot' # Configure logging logging.basicConfig(level=logging.INFO) # Initialize bot and dispatcher3 bot = Bot(token=BOT...
[ 11748, 18931, 198, 11748, 28686, 198, 11748, 30351, 952, 198, 6738, 27711, 1330, 6654, 198, 6738, 257, 72, 21857, 1330, 18579, 11, 3167, 8071, 2044, 11, 3121, 273, 11, 3858, 198, 198, 33, 2394, 62, 10468, 43959, 25, 965, 796, 28686, 1...
2.369032
775
"""Simple script to play sounds. Notes ----- Having trouble playing sounds correctly in debian so far. It seems that Psychopy sound recommentations has changed. I need to have a closer look: <https://www.psychopy.org/api/sound.html> """ import os import psychtoolbox as ptb from psychopy import prefs prefs.hardware['...
[ 37811, 26437, 4226, 284, 711, 5238, 13, 198, 198, 16130, 198, 30934, 198, 14698, 5876, 2712, 5238, 9380, 287, 50001, 523, 1290, 13, 632, 2331, 326, 198, 31923, 11081, 2128, 664, 296, 434, 602, 468, 3421, 13, 314, 761, 284, 423, 257, ...
2.806569
274
#!/usr/bin/env python #http://geoinformaticstutorial.blogspot.it/2012/09/reading-raster-data-with-python-and-gdal.html #http://www.gis.usu.edu/~chrisg/python/2009/lectures/ospy_slides4.pdf from osgeo import gdal,ogr from osgeo.gdalconst import * import struct import sys lon = 12.502742 lat = 42.243713 lat = float(s...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 198, 198, 2, 4023, 1378, 469, 36743, 687, 1512, 301, 44917, 13, 35217, 13, 270, 14, 6999, 14, 2931, 14, 25782, 12, 81, 1603, 12, 7890, 12, 4480, 12, 29412, 12, 392, 12, 21287, 282, 13, ...
2.4102
451
# -*- coding: utf-8 -*- """ INTRO @author: Yi Zhang. Created on Thu May 23 11:07:25 2019 Department of Aerodynamics Faculty of Aerospace Engineering TU Delft Delft, Netherlands """ import numpy as np from screws.freeze.main import FrozenOnly class CTEXTTBase(FrozenOnly): """ ...
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 37811, 198, 1268, 5446, 46, 198, 198, 31, 9800, 25, 26463, 19439, 13, 15622, 319, 26223, 1737, 2242, 1367, 25, 2998, 25, 1495, 13130, 198, 220, 220, 220, 220, 220, 220...
2.102564
2,301
""" Tests sklearn matrix decomposition converters """ import unittest import warnings import sys from distutils.version import LooseVersion import numpy as np import torch import sklearn from sklearn.decomposition import FastICA, KernelPCA, PCA, TruncatedSVD from sklearn.cross_decomposition import PLSRegression as PLS...
[ 37811, 198, 51, 3558, 1341, 35720, 17593, 26969, 9150, 6718, 1010, 198, 37811, 198, 11748, 555, 715, 395, 198, 11748, 14601, 198, 11748, 25064, 198, 6738, 1233, 26791, 13, 9641, 1330, 6706, 577, 14815, 198, 198, 11748, 299, 32152, 355, ...
3.19337
181
# -*- coding: utf-8 -*- """ Created on Fri Nov 2 13:11:39 2018 @author: 13383861 """ import sys import enum sys.path.append('.') sys.path.append('..') import requests import os import time from collections import namedtuple import copy import random import typing import functools import json import threading import ...
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 37811, 198, 41972, 319, 19480, 5267, 220, 362, 1511, 25, 1157, 25, 2670, 2864, 198, 198, 31, 9800, 25, 1511, 2548, 2548, 5333, 198, 37811, 198, 198, 11748, 25064, 198, ...
2.433273
11,547