content
stringlengths
1
1.04M
input_ids
listlengths
1
774k
ratio_char_token
float64
0.38
22.9
token_count
int64
1
774k
# Copyright The PyTorch Lightning team. # # 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 i...
[ 2, 15069, 383, 9485, 15884, 354, 12469, 1074, 13, 198, 2, 198, 2, 49962, 739, 262, 24843, 13789, 11, 10628, 362, 13, 15, 357, 1169, 366, 34156, 15341, 198, 2, 345, 743, 407, 779, 428, 2393, 2845, 287, 11846, 351, 262, 13789, 13, 1...
3.299484
581
# Copyright 2017,2021 Niall McCarroll # # 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 w...
[ 2, 15069, 2177, 11, 1238, 2481, 11556, 439, 5108, 283, 2487, 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, 1...
3.357143
210
from .util import imgResample from cloudvolume import CloudVolume from argparse import ArgumentParser import numpy as np import SimpleITK as sitk import tifffile as tf def get_mip_at_res(vol, resolution): """Find the mip that is at least a given resolution Args: vol (cloudvolume.CloudVoluem): CloudVo...
[ 6738, 764, 22602, 1330, 33705, 4965, 1403, 198, 6738, 6279, 29048, 1330, 10130, 31715, 198, 6738, 1822, 29572, 1330, 45751, 46677, 198, 11748, 299, 32152, 355, 45941, 198, 11748, 17427, 2043, 42, 355, 1650, 74, 198, 11748, 256, 361, 487, ...
2.622291
1,292
from random import sample import networkx as nx from ns.flow.flow import Flow
[ 6738, 4738, 1330, 6291, 198, 11748, 3127, 87, 355, 299, 87, 198, 198, 6738, 36545, 13, 11125, 13, 11125, 1330, 27782, 628, 628 ]
3.565217
23
from __future__ import annotations import voluptuous as vol from datetime import datetime, timezone, timedelta from homeassistant.core import HomeAssistant, callback from homeassistant.helpers.entity import Entity, ToggleEntity from homeassistant.helpers.entity_platform import AddEntitiesCallback from homeassistant.h...
[ 6738, 11593, 37443, 834, 1330, 37647, 198, 198, 11748, 2322, 37623, 5623, 355, 2322, 198, 6738, 4818, 8079, 1330, 4818, 8079, 11, 640, 11340, 11, 28805, 12514, 198, 198, 6738, 1363, 562, 10167, 13, 7295, 1330, 5995, 48902, 11, 23838, 19...
2.213994
1,715
# uncompyle6 version 3.7.4 # Python bytecode 3.7 (3394) # Decompiled from: Python 3.7.9 (tags/v3.7.9:13c94747c7, Aug 17 2020, 18:58:18) [MSC v.1900 64 bit (AMD64)] # Embedded file name: T:\InGame\Gameplay\Scripts\Server\interactions\base\basic.py # Compiled at: 2020-10-17 21:48:10 # Size of source mod 2**32: 42277 byte...
[ 2, 34318, 2349, 21, 2196, 513, 13, 22, 13, 19, 198, 2, 11361, 18022, 8189, 513, 13, 22, 357, 2091, 5824, 8, 198, 2, 4280, 3361, 3902, 422, 25, 11361, 513, 13, 22, 13, 24, 357, 31499, 14, 85, 18, 13, 22, 13, 24, 25, 1485, 66,...
3.80878
2,369
import folium import geopandas as gpd import matplotlib.cm as cm import matplotlib.colors as colors from branca.colormap import StepColormap import contextily import numpy as np import pandas as pd import pytest from geopandas_view import view nybb = gpd.read_file(gpd.datasets.get_path("nybb")) world = gpd.read_file(...
[ 11748, 5955, 1505, 198, 11748, 30324, 392, 292, 355, 27809, 67, 198, 11748, 2603, 29487, 8019, 13, 11215, 355, 12067, 198, 11748, 2603, 29487, 8019, 13, 4033, 669, 355, 7577, 198, 6738, 865, 42124, 13, 4033, 579, 499, 1330, 5012, 5216, ...
2.277788
5,569
##################################################################### # # # /plugins/theme/__init__.py # # # # Copyright 2013, Monash University ...
[ 29113, 29113, 4242, 2, 201, 198, 2, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, ...
1.9568
1,875
############################################## ### Author: Layane (andrashe@gmail.com) ############################################## print "Hi world!"
[ 29113, 7804, 4242, 2235, 198, 21017, 6434, 25, 18881, 1531, 357, 392, 8847, 258, 31, 14816, 13, 785, 8, 198, 29113, 7804, 4242, 2235, 198, 198, 4798, 366, 17250, 995, 2474, 198 ]
4.78125
32
# Databricks notebook source # MAGIC %md ### Drift Monitor # MAGIC # MAGIC This notebook is called by Orchestrate to determine if drift has occured over time. # MAGIC # MAGIC It takes in two time periods of data and determines if significant change has occurred in addition to a target directory to write the drift. #...
[ 2, 16092, 397, 23706, 20922, 2723, 198, 2, 28263, 2149, 4064, 9132, 44386, 39819, 18289, 198, 2, 28263, 2149, 220, 198, 2, 28263, 2149, 770, 20922, 318, 1444, 416, 30369, 23104, 284, 5004, 611, 24260, 468, 1609, 1522, 625, 640, 13, 22...
2.984742
852
import os import os.path as osp import logging import argparse from pathlib import Path from utils.log import get_logger from yolov3_deepsort import VideoTracker from utils.parser import get_config import motmetrics as mm mm.lap.default_solver = 'lap' from utils.evaluation import Evaluator if __name_...
[ 11748, 28686, 201, 198, 11748, 28686, 13, 6978, 355, 267, 2777, 201, 198, 11748, 18931, 201, 198, 11748, 1822, 29572, 201, 198, 6738, 3108, 8019, 1330, 10644, 201, 198, 201, 198, 6738, 3384, 4487, 13, 6404, 1330, 651, 62, 6404, 1362, ...
1.732906
936
#!/usr/bin/env python # -*- coding: utf-8 -*- import sys import matplotlib as plt import numpy as np sys.path.append('../') from loglizer import dataloader from loglizer.models import DeepLog from loglizer.preprocessing import Vectorizer, Iterator from loglizer import x_ai batch_size = 32 hidden_size = 32 num_dire...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 198, 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 198, 11748, 25064, 198, 11748, 2603, 29487, 8019, 355, 458, 83, 198, 11748, 299, 32152, 355, 45941, 198, 17597, 13, 697...
2.395944
1,134
# Copyright (c) 2020. JetBrains s.r.o. # Use of this source code is governed by the MIT license that can be found in the LICENSE file. from typing import TypeVar, Generic, Optional, List, Union from lets_plot.geo_data.gis.geometry import GeoRect, GeoPoint from lets_plot.geo_data.geocodes import _ensure_is_list from...
[ 2, 220, 15069, 357, 66, 8, 12131, 13, 19013, 9414, 1299, 264, 13, 81, 13, 78, 13, 198, 2, 220, 5765, 286, 428, 2723, 2438, 318, 21825, 416, 262, 17168, 5964, 326, 460, 307, 1043, 287, 262, 38559, 24290, 2393, 13, 198, 6738, 19720,...
2.948148
270
# -*- coding: utf-8 -*- """ Test formatters. Unit tests for column formatters. """ import uuid from unittest.mock import patch import pytest from pheweb.load.field_formatter import ( str_formatter, chromosome_formatter, position_formatter, parameterized_sequence_formatter, p_value_formatter, ...
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 37811, 198, 14402, 5794, 1010, 13, 198, 198, 26453, 5254, 329, 5721, 5794, 1010, 13, 198, 198, 37811, 198, 11748, 334, 27112, 198, 6738, 555, 715, 395, 13, 76, 735, 13...
2.333472
2,396
# -*- coding: utf-8 -*- import subprocess import json import os import io from multiprocessing import Pool import multiprocessing import multiprocessing.pool from operator import itemgetter import random import string import pickle import copy import numpy as np import matplotlib.pyplot as plt from matplotlib import co...
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 11748, 850, 14681, 198, 11748, 33918, 198, 11748, 28686, 198, 11748, 33245, 198, 6738, 18540, 305, 919, 278, 1330, 19850, 198, 11748, 18540, 305, 919, 278, 198, 11748, 185...
2.024292
183,188
"""WebSocket API for HACS.""" # pylint: disable=unused-argument import sys import os import voluptuous as vol from aiogithubapi import AIOGitHubException from homeassistant.components import websocket_api import homeassistant.helpers.config_validation as cv from .hacsbase.exceptions import HacsException from .store imp...
[ 37811, 13908, 39105, 7824, 329, 367, 2246, 50, 526, 15931, 198, 2, 279, 2645, 600, 25, 15560, 28, 403, 1484, 12, 49140, 198, 11748, 25064, 198, 11748, 28686, 198, 11748, 2322, 37623, 5623, 355, 2322, 198, 6738, 257, 72, 519, 10060, 15...
2.244688
6,118
""" Classes derived from Portfolio Optimisation module """ from mlfinlab.portfolio_optimization.cla import CLA from mlfinlab.portfolio_optimization.hrp import HierarchicalRiskParity from mlfinlab.portfolio_optimization.mean_variance import MeanVarianceOptimisation from mlfinlab.portfolio_optimization.hcaa import Hiera...
[ 37811, 198, 9487, 274, 10944, 422, 4347, 13652, 30011, 5612, 8265, 198, 37811, 198, 198, 6738, 285, 1652, 259, 23912, 13, 634, 13652, 62, 40085, 1634, 13, 565, 64, 1330, 47666, 198, 6738, 285, 1652, 259, 23912, 13, 634, 13652, 62, 400...
3.375839
149
import re import logging import pandas as pd import numpy as np from .merging_functions import merge_with_msmsscanstxt, merge_with_msmstxt, merge_with_summarytxt logger = logging.getLogger(__name__) PHOSPHO_REGEX = re.compile(r'([STY])\(Phospho \(STY\)\)') def transfer(summary_df, mask=False): """ Main f...
[ 11748, 302, 198, 11748, 18931, 198, 198, 11748, 19798, 292, 355, 279, 67, 198, 11748, 299, 32152, 355, 45941, 198, 198, 6738, 764, 647, 2667, 62, 12543, 2733, 1330, 20121, 62, 4480, 62, 907, 76, 824, 5171, 301, 742, 11, 20121, 62, 4...
2.738624
1,890
from typing import Callable, Optional import numpy as np from ._typing import NDArray def phi1D( x: NDArray, B: NDArray, fun: Callable[[NDArray], NDArray], ) -> NDArray: """ The function phi1D is called by phi2D. It aims at applying a function ``fun`` after multiplying each row of B by x...
[ 6738, 19720, 1330, 4889, 540, 11, 32233, 198, 198, 11748, 299, 32152, 355, 45941, 198, 198, 6738, 47540, 774, 13886, 1330, 25524, 19182, 628, 198, 4299, 872, 72, 16, 35, 7, 198, 220, 220, 220, 2124, 25, 25524, 19182, 11, 198, 220, 2...
2.317496
1,326
from lambdas.nop import _nop, _cma_output
[ 6738, 19343, 67, 292, 13, 77, 404, 1330, 4808, 77, 404, 11, 4808, 66, 2611, 62, 22915, 628, 198 ]
2.315789
19
#!/usr/bin/env python # -*- coding: utf-8 -*- # # Generated from FHIR 4.0.1-9346c8cc45 (http://hl7.org/fhir/StructureDefinition/ContactDetail) on 2020-02-03. # 2020, SMART Health IT. import sys from dataclasses import dataclass, field from typing import ClassVar, Optional, List from .contactpoint import ContactPoint...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 198, 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 2, 198, 2, 220, 2980, 515, 422, 376, 39, 4663, 604, 13, 15, 13, 16, 12, 24, 30557, 66, 23, 535, 2231, 357, 4023, ...
3.009615
208
from behavioral.interpreter.logic import Lexer, Parser
[ 6738, 17211, 13, 3849, 3866, 353, 13, 6404, 291, 1330, 17210, 263, 11, 23042, 263, 628 ]
3.5
16
#!/usr/bin/env python # -*- coding: utf-8 -*- # Copyright 1999-2020 Alibaba Group Holding 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/licenses/LICENSE-...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 198, 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 2, 15069, 7358, 12, 42334, 41992, 4912, 31703, 12052, 13, 198, 2, 198, 2, 49962, 739, 262, 24843, 13789, 11, 10628, 3...
2.718974
975
nome_vendendor = input() sal_fixo = float(input()) vendas_total = float(input()) salario(nome_vendendor, sal_fixo, vendas_total)
[ 198, 198, 77, 462, 62, 85, 437, 18738, 796, 5128, 3419, 198, 21680, 62, 13049, 78, 796, 12178, 7, 15414, 28955, 198, 85, 35624, 62, 23350, 796, 12178, 7, 15414, 28955, 198, 198, 21680, 4982, 7, 77, 462, 62, 85, 437, 18738, 11, 366...
2.444444
54
''' ''' from ProjectFactory import ProjectFactory import wexpect wexpect.TIMEOUT # Start cmd as child process child = wexpect.spawn('cmd.exe') project_factory = ProjectFactory( child ) project_factory.build_project()
[ 7061, 6, 198, 7061, 6, 198, 6738, 4935, 22810, 1330, 4935, 22810, 198, 11748, 356, 87, 806, 198, 732, 87, 806, 13, 34694, 12425, 198, 198, 2, 7253, 23991, 355, 1200, 1429, 198, 9410, 796, 356, 87, 806, 13, 48183, 10786, 28758, 13, ...
3.253731
67
# -*- coding: utf-8 -*- # Автор: Гусев Илья # Описание: Тесты считывателя разметок. import unittest from rupo.files.reader import Reader, FileType from rupo.stress.predictor import CombinedStressPredictor from rupo.main.markup import Markup, Line, Word from rupo.settings import MARKUP_XML_EXAMPLE, TEXT_XML_EXAMPLE, M...
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 2, 12466, 238, 38857, 20375, 15166, 21169, 25, 12466, 241, 35072, 21727, 16843, 38857, 12466, 246, 30143, 45367, 40623, 198, 2, 12466, 252, 140, 123, 18849, 21727, 16142, ...
2.02381
168
from tesserwrap import Tesseract from PIL import Image import re
[ 6738, 256, 408, 263, 37150, 1330, 39412, 263, 529, 198, 6738, 350, 4146, 1330, 7412, 198, 11748, 302, 198 ]
3.421053
19
import numpy as np import struct import math # split something into chunks
[ 11748, 299, 32152, 355, 45941, 198, 11748, 2878, 198, 11748, 10688, 198, 198, 2, 6626, 1223, 656, 22716, 198 ]
4
19
""" Utilities related to project directory. """ import os import subprocess def git_restore(project_dir): """ This function executes "git restore ." on the given project directory. :param project_dir: A string and Absolute path of the project's directory. :return: None """ assert os.path.isdi...
[ 37811, 198, 18274, 2410, 3519, 284, 1628, 8619, 13, 198, 37811, 198, 198, 11748, 28686, 198, 11748, 850, 14681, 628, 198, 4299, 17606, 62, 2118, 382, 7, 16302, 62, 15908, 2599, 198, 220, 220, 220, 37227, 198, 220, 220, 220, 770, 2163,...
2.775457
766
__pysd_version__ = "1.5.0" _namespace = {} _dependencies = {} __data = {'scope': None, 'time': lambda: 0} _control_vars = { "initial_time": lambda: 0, "final_time": lambda: 20, "time_step": lambda: 1, "saveper": lambda: time_step() }
[ 834, 79, 893, 67, 62, 9641, 834, 796, 366, 16, 13, 20, 13, 15, 1, 198, 198, 62, 14933, 10223, 796, 23884, 198, 62, 45841, 3976, 796, 23884, 198, 198, 834, 7890, 796, 1391, 6, 29982, 10354, 6045, 11, 705, 2435, 10354, 37456, 25, ...
2.27193
114
""" This file contains global options for rioxarray Credits: This file was adopted from: https://github.com/pydata/xarray # noqa Source file: https://github.com/pydata/xarray/blob/2ab0666c1fcc493b1e0ebc7db14500c427f8804e/xarray/core/options.py # noqa """ from typing import Any EXPORT_GRID_MAPPING = "export_grid_map...
[ 37811, 198, 1212, 2393, 4909, 3298, 3689, 329, 374, 12190, 18747, 198, 198, 42855, 25, 198, 198, 1212, 2393, 373, 8197, 422, 25, 3740, 1378, 12567, 13, 785, 14, 79, 5173, 1045, 14, 87, 18747, 1303, 645, 20402, 198, 7416, 2393, 25, 3...
2.529134
635
#!/usr/bin/env python # coding: utf-8 import csv import random from pathlib import Path Path("data").mkdir(parents=True, exist_ok=True) def gen_sets(N_sets, N_elems, max_cost=10, sep=' ', filename='set_cover'): """Function that generates a file of integer tuples for using as input for set cover problems. ...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 198, 2, 19617, 25, 3384, 69, 12, 23, 198, 11748, 269, 21370, 198, 11748, 4738, 198, 6738, 3108, 8019, 1330, 10644, 198, 15235, 7203, 7890, 11074, 28015, 15908, 7, 23743, 28, 17821, 11, 2152...
2.343596
812
from datetime import datetime import requests def check_availability(url_str, datetime_fetched=None): """ Use the web api to see if a page is available. https://archive.org/help/wayback_api.php """ wayback_url = "http://archive.org/wayback/available" params = { 'url': url_str.split('?...
[ 6738, 4818, 8079, 1330, 4818, 8079, 198, 11748, 7007, 628, 198, 4299, 2198, 62, 47274, 7, 6371, 62, 2536, 11, 4818, 8079, 62, 50012, 28, 14202, 2599, 198, 220, 220, 220, 37227, 198, 220, 220, 220, 5765, 262, 3992, 40391, 284, 766, 6...
2.448357
426
# Copyright 2020 The MiNLP Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable l...
[ 2, 15069, 12131, 383, 13756, 45, 19930, 46665, 13, 1439, 6923, 33876, 13, 198, 2, 198, 2, 49962, 739, 262, 24843, 13789, 11, 10628, 362, 13, 15, 357, 1169, 366, 34156, 15341, 198, 2, 345, 743, 407, 779, 428, 2393, 2845, 287, 11846, ...
3.754098
183
""" Given a non negative integer number num. For every numbers i in the range 0 ≤ i ≤ num calculate the number of 1's in their binary representation and return them as an array. Example 1: Input: 2 Output: [0,1,1] Example 2: Input: 5 Output: [0,1,1,2,1,2] Follow up: It is very easy to come up with a solution with r...
[ 37811, 198, 15056, 257, 1729, 4633, 18253, 1271, 997, 13, 1114, 790, 3146, 1312, 287, 262, 2837, 657, 41305, 1312, 41305, 997, 15284, 262, 1271, 286, 352, 338, 287, 511, 13934, 10552, 290, 1441, 606, 355, 281, 7177, 13, 198, 198, 1628...
3.057522
226
#!/usr/bin/env python # -*- coding: utf-8 -*- import sqlite3 # Adapter und Konverter registrieren sqlite3.register_adapter(Kreis, kreisadapter) sqlite3.register_converter("KREIS", kreiskonverter) # Hier wird eine Beispieldatenbank im Arbeitsspeicher mit # einer einspaltigen Tabelle für Kreise definiert connection = ...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 198, 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 198, 11748, 44161, 578, 18, 198, 198, 2, 43721, 3318, 17431, 332, 353, 4214, 380, 14226, 198, 25410, 578, 18, 13, 302...
2.303621
359
import numpy as np from scipy import interpolate, optimize import torch def interpolate_over_nans(input_mat, t=None): """ Function to interpolate over NaN values along the first dimension of a matrix Args: input_mat: numpy array, [time, neurons] t: optional time vector, only useful if input_m...
[ 11748, 299, 32152, 355, 45941, 198, 6738, 629, 541, 88, 1330, 39555, 378, 11, 27183, 198, 11748, 28034, 628, 198, 4299, 39555, 378, 62, 2502, 62, 77, 504, 7, 15414, 62, 6759, 11, 256, 28, 14202, 2599, 198, 220, 220, 220, 37227, 1555...
2.472684
1,263
# Copyright 2019 HTCondor Team, Computer Sciences Department, # University of Wisconsin-Madison, WI. # # 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/LICE...
[ 2, 15069, 13130, 22063, 623, 273, 4816, 11, 13851, 13473, 2732, 11, 198, 2, 2059, 286, 9279, 12, 46845, 11, 29360, 13, 198, 2, 198, 2, 49962, 739, 262, 24843, 13789, 11, 10628, 362, 13, 15, 357, 1169, 366, 34156, 15341, 198, 2, 34...
2.519562
6,671
__author__ = 'mogui <mogui83@gmail.com>' # # Driver Constants # NAME = "OrientDB Python binary client (pyorient)" VERSION = "1.5.6" SUPPORTED_PROTOCOL = 36 # # Binary Types # # Types Constants BOOLEAN = 1 # Single byte: 1 = true, 0 = false BYTE = 2 SHORT = 3 INT = 4 LONG = 5 BYTES = 6 # Used for binary data. STRING...
[ 834, 9800, 834, 796, 705, 76, 519, 9019, 1279, 76, 519, 9019, 5999, 31, 14816, 13, 785, 29, 6, 198, 198, 2, 198, 2, 12434, 4757, 1187, 198, 2, 198, 20608, 796, 366, 46, 8289, 11012, 11361, 13934, 5456, 357, 9078, 13989, 16725, 198...
2.322249
1,654
import tornado.ioloop import tornado.web import modules.Index application = tornado.web.Application([ (r"/", modules.Index.Index), (r"/hotdogs", modules.Index.Index), ]) if __name__ == "__main__": application.listen(8888) tornado.ioloop.IOLoop.instance().start()
[ 11748, 33718, 13, 1669, 11224, 198, 11748, 33718, 13, 12384, 198, 198, 11748, 13103, 13, 15732, 198, 198, 31438, 796, 33718, 13, 12384, 13, 23416, 26933, 198, 220, 220, 220, 357, 81, 1, 14, 1600, 13103, 13, 15732, 13, 15732, 828, 198,...
2.782178
101
import pickle from pathlib import Path from collections import Counter import pandas as pd from .properties import DecayMode, calc_max_rel class Injection: """Injection information and properties (for convenience and readability)"""
[ 11748, 2298, 293, 198, 6738, 3108, 8019, 1330, 10644, 198, 6738, 17268, 1330, 15034, 198, 11748, 19798, 292, 355, 279, 67, 198, 6738, 764, 48310, 1330, 39087, 19076, 11, 42302, 62, 9806, 62, 2411, 628, 198, 4871, 554, 29192, 25, 198, ...
4.067797
59
import pandas as pd import numpy as np def select_restack(name, save=False): ''' This functon retrieves the data sheets, then it reorients them such that the features are the columns and the data frame is doube indexed by country_name and year ('level_1') Parameters ---------- name: string...
[ 11748, 19798, 292, 355, 279, 67, 198, 11748, 299, 32152, 355, 45941, 198, 198, 4299, 2922, 62, 2118, 441, 7, 3672, 11, 3613, 28, 25101, 2599, 198, 220, 220, 220, 705, 7061, 198, 220, 220, 220, 770, 1257, 310, 261, 13236, 1158, 262, ...
2.362944
1,182
from collections import deque n, Q = map(int, input().split()) graph = [[] for i 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) dist = [-1] * n dist[0] = 0 q = deque() q.append(0) while q: v = q.popleft() for i in set(gr...
[ 6738, 17268, 1330, 390, 4188, 198, 198, 77, 11, 1195, 796, 3975, 7, 600, 11, 5128, 22446, 35312, 28955, 198, 34960, 796, 16410, 60, 329, 1312, 287, 2837, 7, 77, 15437, 198, 1640, 1312, 287, 2837, 7, 77, 532, 352, 2599, 198, 220, 2...
1.970395
304
"""nornir_scrapli.functions.print_structured_result""" import logging import threading from scrapli.response import Response from nornir.core.task import AggregatedResult, MultiResult, Result from nornir_scrapli.result import ScrapliResult from rich.console import Console from rich.table import Table LOCK = threadin...
[ 37811, 77, 1211, 343, 62, 1416, 430, 489, 72, 13, 12543, 2733, 13, 4798, 62, 7249, 1522, 62, 20274, 37811, 198, 11748, 18931, 198, 11748, 4704, 278, 198, 198, 6738, 19320, 489, 72, 13, 26209, 1330, 18261, 198, 198, 6738, 299, 1211, ...
2.127114
1,951
# -*- coding: utf-8 -*- import datetime from django.utils import translation from django.conf import settings from cms.utils.compat.dj import MiddlewareMixin
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 11748, 4818, 8079, 198, 198, 6738, 42625, 14208, 13, 26791, 1330, 11059, 198, 6738, 42625, 14208, 13, 10414, 1330, 6460, 198, 198, 6738, 269, 907, 13, 26791, 13, 5589, 2...
3.096154
52
from tamproxy import SyncedSketch, Timer from tamproxy.devices import Motor # Cycles a motor back and forth between -255 and 255 PWM every ~5 seconds if __name__ == "__main__": sketch = MotorWrite(1, -0.00001, 100) sketch.run()
[ 6738, 47039, 42059, 1330, 16065, 771, 50, 7126, 354, 11, 5045, 263, 198, 6738, 47039, 42059, 13, 42034, 1330, 12533, 198, 198, 2, 5934, 5427, 257, 5584, 736, 290, 6071, 1022, 532, 13381, 290, 14280, 350, 22117, 790, 5299, 20, 4201, 62...
2.975
80
# -*- coding: utf-8 -*- """ @Time : 2020/9/13 @Author : Shen Fang """ import os import datetime import os.path as osp import numpy as np import matplotlib.pyplot as plt import argparse if __name__ == '__main__': # map_image = read_image("level_14.png") # patch = map_image[900:2000, 900:] # plt.i...
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 37811, 198, 31, 7575, 220, 220, 1058, 12131, 14, 24, 14, 1485, 198, 198, 31, 13838, 1058, 22323, 24468, 198, 37811, 198, 11748, 28686, 198, 11748, 4818, 8079, 198, 11748...
2.481973
527
import json import scipy as sp import numpy as np import matplotlib.pyplot as plt from scipy.interpolate import interp2d, interp1d from sklearn.preprocessing import scale import pandas as pd class Sample(object): """ Contains the data recorded from the sensors. Provides methods to analyze, manage and pers...
[ 11748, 33918, 198, 11748, 629, 541, 88, 355, 599, 198, 11748, 299, 32152, 355, 45941, 198, 11748, 2603, 29487, 8019, 13, 9078, 29487, 355, 458, 83, 198, 6738, 629, 541, 88, 13, 3849, 16104, 378, 1330, 987, 79, 17, 67, 11, 987, 79, ...
2.380264
3,942
import configparser, time, os
[ 11748, 4566, 48610, 11, 640, 11, 28686, 628, 198 ]
3.555556
9
# to load signals receiver called in App.ready() default_app_config = 'user.apps.UserConfig'
[ 2, 284, 3440, 10425, 9733, 1444, 287, 2034, 13, 1493, 3419, 198, 12286, 62, 1324, 62, 11250, 796, 705, 7220, 13, 18211, 13, 12982, 16934, 6, 198 ]
3.444444
27
from django.conf.urls import url, include from .views import ( serv_wallet, accept_remote_registration, register_new_wallet_user, login, update_settings ) urlpatterns = [ url(r'registration/remote', accept_remote_registration), url(r'registration', register_new_wallet_user, name='register_new_wallet_use...
[ 6738, 42625, 14208, 13, 10414, 13, 6371, 82, 1330, 19016, 11, 2291, 198, 6738, 764, 33571, 1330, 357, 198, 220, 220, 220, 1113, 62, 44623, 11, 2453, 62, 47960, 62, 2301, 33397, 11, 7881, 62, 3605, 62, 44623, 62, 7220, 11, 17594, 11,...
2.876471
170
my_list = [i**2 for i in range(1,11)] my_file = open("output.txt", "r+") # Add your code below! for item in my_list: my_file.write(str(item) + "\n") my_file.close()
[ 198, 1820, 62, 4868, 796, 685, 72, 1174, 17, 329, 1312, 287, 2837, 7, 16, 11, 1157, 15437, 198, 198, 1820, 62, 7753, 796, 1280, 7203, 22915, 13, 14116, 1600, 366, 81, 10, 4943, 198, 198, 2, 3060, 534, 2438, 2174, 0, 198, 1640, 2...
2.263158
76
#!/usr/bin/python import sys from workflow.workflow import Settings from workflow import Workflow from const import Const LOG = None if __name__=="__main__": config = Config(' '.join(sys.argv[1:])) config.execute() #setter = ConfigSetter(' '.join(sys.argv[1:])) #setter.execute()
[ 2, 48443, 14629, 14, 8800, 14, 29412, 198, 198, 11748, 25064, 198, 6738, 30798, 13, 1818, 11125, 1330, 16163, 198, 6738, 30798, 1330, 5521, 11125, 198, 198, 6738, 1500, 1330, 4757, 198, 198, 25294, 796, 6045, 628, 198, 361, 11593, 3672,...
2.761468
109
from django.contrib import admin # Register your models here. from django.contrib import admin from .models import Story_File_Status,Wonder_Archive_People,Wonder_Archive_GT,Chat_Log,Store_Card,Shopping_Cart,Shopping_Product,Daily_Story_File_Status,Basic_Setting,Current_Archive,Store_Card_Own """ class Wonder_Ar...
[ 6738, 42625, 14208, 13, 3642, 822, 1330, 13169, 201, 198, 201, 198, 2, 17296, 534, 4981, 994, 13, 201, 198, 6738, 42625, 14208, 13, 3642, 822, 1330, 13169, 201, 198, 201, 198, 6738, 764, 27530, 1330, 8362, 62, 8979, 62, 19580, 11, 4...
2.849432
352
"""Handles conversion of `markdown` Here, `toml` is used to communicate `attributes` as for `markdown`. Main purpose is to describe `style` of the documentation. * `toml`'s data is returned as Python primitive types. Speficiation ------------- If the firstline of the document starts with ```, and it is a v...
[ 37811, 12885, 829, 11315, 286, 4600, 4102, 2902, 63, 220, 198, 198, 4342, 11, 4600, 39532, 75, 63, 318, 973, 284, 10996, 4600, 1078, 7657, 63, 355, 329, 4600, 4102, 2902, 44646, 220, 220, 198, 13383, 4007, 318, 284, 6901, 4600, 7635, ...
2.529091
550
import torchvision from pathlib import Path import tqdm if __name__ == "__main__": main()
[ 11748, 28034, 10178, 198, 6738, 3108, 8019, 1330, 10644, 198, 11748, 256, 80, 36020, 628, 198, 198, 361, 11593, 3672, 834, 6624, 366, 834, 12417, 834, 1298, 198, 220, 220, 220, 1388, 3419, 198 ]
2.852941
34
from django.db import models # Create your models here.
[ 6738, 42625, 14208, 13, 9945, 1330, 4981, 628, 198, 2, 13610, 534, 4981, 994, 13 ]
3.8
15
# Copyright 2017 The TensorFlow Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applica...
[ 2, 15069, 2177, 383, 309, 22854, 37535, 46665, 13, 1439, 6923, 33876, 13, 198, 2, 198, 2, 49962, 739, 262, 24843, 13789, 11, 10628, 362, 13, 15, 357, 1169, 366, 34156, 15341, 198, 2, 345, 743, 407, 779, 428, 2393, 2845, 287, 11846, ...
2.836149
2,368
import hashlib from tornado.web import RequestHandler from tornado import gen
[ 11748, 12234, 8019, 198, 198, 6738, 33718, 13, 12384, 1330, 19390, 25060, 198, 6738, 33718, 1330, 2429, 198 ]
4.388889
18
""" Code by Tony Duan was forked from https://github.com/tonyduan/normalizing-flows MIT License Copyright (c) 2019 Tony Duan, 2019 Peter Zagubisalo 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 Softwar...
[ 37811, 198, 10669, 416, 8832, 360, 7258, 373, 329, 9091, 422, 3740, 1378, 12567, 13, 785, 14, 1122, 88, 646, 272, 14, 11265, 2890, 12, 44041, 198, 198, 36393, 13789, 198, 198, 15269, 357, 66, 8, 13130, 8832, 360, 7258, 11, 13130, 56...
2.430006
1,693
from utlis import * import cv2 w,h = 360,240 pid = [0.4,0.4,0] pError = 0 startCounter = 0 # for no Flight 1 - for flight 0 myDrone = initializeTello() while True: ## Flight if startCounter == 0: myDrone.takeoff() startCounter = 1 ## Step 1 img = telloGe...
[ 6738, 3384, 27999, 1330, 1635, 201, 198, 11748, 269, 85, 17, 201, 198, 220, 201, 198, 86, 11, 71, 796, 11470, 11, 16102, 201, 198, 35317, 796, 685, 15, 13, 19, 11, 15, 13, 19, 11, 15, 60, 201, 198, 79, 12331, 796, 657, 201, 19...
2.031447
318
__version__ = '0.14.0a1'
[ 198, 834, 9641, 834, 796, 705, 15, 13, 1415, 13, 15, 64, 16, 6, 198 ]
1.733333
15
#!/usr/bin/env python # -*- coding: utf-8 -*- """ This script can generate automate scripts for open source python project. Scroll to ``if __name__ == "__main__":`` for more info. """ from __future__ import print_function import sys import datetime from os import walk, mkdir from os.path import join, abspath, dirnam...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 198, 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 198, 37811, 198, 1212, 4226, 460, 7716, 43511, 14750, 329, 1280, 2723, 21015, 1628, 13, 198, 198, 29261, 284, 7559, 361...
2.226415
1,484
#!/usr/bin/env python # # Copyright 2007 Google Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law o...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 198, 2, 198, 2, 15069, 4343, 3012, 3457, 13, 198, 2, 198, 2, 49962, 739, 262, 24843, 13789, 11, 10628, 362, 13, 15, 357, 1169, 366, 34156, 15341, 198, 2, 345, 743, 407, 779, 428, 2393, ...
2.85477
5,598
# -*- coding: utf-8 -*- from typing import TYPE_CHECKING from bkpaas_auth.core.constants import ProviderType from bkpaas_auth.core.encoder import user_id_encoder if TYPE_CHECKING: from bkpaas_auth.models import User # noqa class UserInfo: """Base class for Userinfo""" provider_type: ProviderType cla...
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 6738, 19720, 1330, 41876, 62, 50084, 2751, 198, 198, 6738, 275, 74, 8957, 292, 62, 18439, 13, 7295, 13, 9979, 1187, 1330, 32549, 6030, 198, 6738, 275, 74, 8957, 292, 6...
2.763819
199
from functools import reduce import random flip = lambda f : lambda x, y : f(y, x) foldr = lambda f, z, xs : reduce(flip(f), reversed(xs), z) foldl = lambda f, z, xs : reduce(f, xs, z) removeDuplicates = lambda xs : list(set([tuple(x) for x in xs])) # kier - heart # karo - diamond # trefl - club # pik - spade # as = Ac...
[ 6738, 1257, 310, 10141, 1330, 4646, 198, 11748, 4738, 198, 2704, 541, 796, 37456, 277, 1058, 37456, 2124, 11, 331, 1058, 277, 7, 88, 11, 2124, 8, 198, 11379, 81, 796, 37456, 277, 11, 1976, 11, 2124, 82, 1058, 4646, 7, 2704, 541, 7...
1.935543
543
# -*- coding: utf-8 -*- import sys; _stdout = sys.stdout; _stderr = sys.stderr; import re import time import bottle import os.path import hashlib import threading import subprocess bottle.debug(True) srcroot = os.path.join(os.path.dirname(__file__), "..") sphinxbuild = os.environ.get("SPHINXBUILD", "sphinx-build...
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 198, 11748, 25064, 26, 4808, 19282, 448, 796, 25064, 13, 19282, 448, 26, 4808, 301, 1082, 81, 796, 25064, 13, 301, 1082, 81, 26, 198, 11748, 302, 198, 11748, 640, 198,...
2.389344
244
LUMPS = 3002001 SALLY = 3002002 SNIFFS = 3002003 TWITCH = 3002004 SILVER = 3002005 COMPASS = 3002006 TIMBER = 3002007 BROOK = 3002008 PATIENCE = 3002009 TUMBLEWEED = 3002105 sm.lockInGameUI(True) sm.forcedInput(0) sm.spawnNpc(LUMPS, 300, 89) sm.showNpcSpecialActionByTemplateId(LUMPS, "summon") sm.spawnNpc(SALLY, -17...
[ 43, 5883, 3705, 796, 5867, 14585, 198, 50, 19807, 796, 5867, 16942, 198, 15571, 5064, 10652, 796, 5867, 16088, 198, 34551, 31949, 796, 5867, 15724, 198, 50, 4146, 5959, 796, 5867, 14315, 198, 9858, 47924, 796, 5867, 13330, 198, 51, 3955...
2.696755
986
import datetime from django.test import TestCase from babik_card_primitives.two_field_date import TwoFieldDate
[ 11748, 4818, 8079, 198, 6738, 42625, 14208, 13, 9288, 1330, 6208, 20448, 198, 6738, 9289, 1134, 62, 9517, 62, 19795, 20288, 13, 11545, 62, 3245, 62, 4475, 1330, 4930, 15878, 10430, 628 ]
3.5
32
"""python variable scharer the class implementation of a variable scharer for python """ import socket, threading, time from jpe_types.paralel import LockableThread, threadInharitanceFilter from jpe_types.conversions.intager import baseN from torent.client import client import logging NoneType = type(None...
[ 37811, 29412, 7885, 5513, 11258, 201, 198, 201, 198, 1169, 1398, 7822, 286, 257, 7885, 5513, 11258, 329, 21015, 201, 198, 37811, 201, 198, 11748, 17802, 11, 4704, 278, 11, 640, 201, 198, 6738, 474, 431, 62, 19199, 13, 1845, 282, 417, ...
2.375061
8,188
## ------------------------------------------------------------------------------------------------- ## -- Project : MLPro - A Synoptic Framework for Standardized Machine Learning Tasks ## -- Package : mlpro ## -- Module : Howto 14 - Train UR5 with SB3 wrapper ## -------------------------------------------------------...
[ 2235, 16529, 3880, 12, 198, 2235, 1377, 4935, 1058, 10373, 2964, 532, 317, 16065, 8738, 291, 25161, 329, 8997, 1143, 10850, 18252, 309, 6791, 198, 2235, 1377, 15717, 1058, 25962, 1676, 198, 2235, 1377, 19937, 220, 1058, 1374, 1462, 1478, ...
2.876047
597
""" This python file inserts 100K rows into table prefetching in database end2end """ import pymysql import string import random db = pymysql.connect(host='localhost', port=3306, user='root', passwd='greeN7^Tr33', db='end2end', charset='utf8') cursor = db.cursor() sql = "INSERT INTO prefetching...
[ 37811, 198, 1212, 21015, 2393, 42220, 1802, 42, 15274, 656, 3084, 7694, 7569, 278, 287, 6831, 886, 17, 437, 198, 37811, 198, 198, 11748, 279, 4948, 893, 13976, 198, 11748, 4731, 198, 11748, 4738, 198, 198, 9945, 796, 279, 4948, 893, 1...
2.327731
595
import requests, urllib, base64, time, re, pdb from Crypto.PublicKey import RSA from Crypto.Cipher import PKCS1_v1_5 from SteamMobileAuth import getDeviceID from bs4 import BeautifulSoup USER_AGENT = "Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/47.0.2526.106 Safari/537.36"
[ 11748, 7007, 11, 2956, 297, 571, 11, 2779, 2414, 11, 640, 11, 302, 11, 279, 9945, 198, 6738, 36579, 13, 15202, 9218, 1330, 42319, 198, 6738, 36579, 13, 34, 10803, 1330, 29673, 7902, 16, 62, 85, 16, 62, 20, 198, 6738, 9094, 17066, ...
2.730435
115
from django.db import models from django.db.transaction import atomic from simhash import hamming_distance from .calculate_simhash import hash_length from .calculate_simhash import highest_value # Although this mixin is extremely interconnected with the SimHash model, # it was just too much code to dump in the mod...
[ 6738, 42625, 14208, 13, 9945, 1330, 4981, 198, 6738, 42625, 14208, 13, 9945, 13, 7645, 2673, 1330, 17226, 198, 198, 6738, 985, 17831, 1330, 8891, 2229, 62, 30246, 198, 198, 6738, 764, 9948, 3129, 378, 62, 14323, 17831, 1330, 12234, 62, ...
3.781609
87
# -*- coding: utf-8 -*- """.. moduleauthor:: Artur Lissin""" import re from typing import Pattern, Final, final from dataclasses import dataclass _NOT_SPACE: Final[Pattern[str]] = re.compile(r'[^\s]') _TIME_FORMAT: Final[Pattern[str]] = re.compile(r'(.*\d+:\d+:\d+)\..*$') _NEW_LINE: Final[Pattern[str]] = re.comp...
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 37811, 492, 8265, 9800, 3712, 3683, 333, 406, 747, 259, 37811, 198, 11748, 302, 198, 6738, 19720, 1330, 23939, 11, 8125, 11, 2457, 198, 6738, 4818, 330, 28958, 1330, 481...
2.362416
149
from django.contrib.auth.models import AbstractUser from django.db import models from django.utils.html import escape, mark_safe
[ 6738, 42625, 14208, 13, 3642, 822, 13, 18439, 13, 27530, 1330, 27741, 12982, 198, 6738, 42625, 14208, 13, 9945, 1330, 4981, 198, 6738, 42625, 14208, 13, 26791, 13, 6494, 1330, 6654, 11, 1317, 62, 21230, 628, 628, 220, 220, 220, 628, 6...
3.309524
42
import numpy as np import matplotlib.pyplot as plt import pandas as pd from sklearn.preprocessing import StandardScaler import pymc3 as pm # 12H1 data = pd.read_csv('Hurricanes.csv', delimiter=';') deaths = np.array(data['deaths']) fem = np.array(data['femininity']) ss = StandardScaler() fem = ss.fit_transform(fem.r...
[ 11748, 299, 32152, 355, 45941, 198, 11748, 2603, 29487, 8019, 13, 9078, 29487, 355, 458, 83, 198, 11748, 19798, 292, 355, 279, 67, 198, 6738, 1341, 35720, 13, 3866, 36948, 1330, 8997, 3351, 36213, 198, 11748, 279, 4948, 66, 18, 355, 9...
2.270911
801
from lib.commonkafka import * from lib.commonsplunk import check_events_from_splunk from lib.helper import get_test_folder import pytest import re logging.config.fileConfig(os.path.join(get_test_folder(), "logging.conf")) logger = logging.getLogger("test_case")
[ 6738, 9195, 13, 11321, 74, 1878, 4914, 1330, 1635, 198, 6738, 9195, 13, 9503, 684, 489, 2954, 1330, 2198, 62, 31534, 62, 6738, 62, 22018, 2954, 198, 6738, 9195, 13, 2978, 525, 1330, 651, 62, 9288, 62, 43551, 198, 11748, 12972, 9288, ...
3
88
import update_judicial_data update_judicial_data.refresh() update_judicial_data.copy_fincial_judgement()
[ 11748, 4296, 62, 46769, 62, 7890, 198, 198, 19119, 62, 46769, 62, 7890, 13, 5420, 3447, 3419, 198, 19119, 62, 46769, 62, 7890, 13, 30073, 62, 69, 13744, 62, 10456, 16025, 3419 ]
3.28125
32
#!/usr/bin/env python """ Halite engine warpped in SWIG """ from distutils.core import setup, Extension halite_module = Extension( '_halite', sources=[ 'halite_wrap.cxx', 'wrapped/core/Halite.cpp', 'wrapped/halite-core.cpp', 'wrapped/networking/Networking.cpp', ], extra_compile_args=[...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 198, 198, 37811, 198, 40202, 578, 3113, 1175, 1496, 287, 12672, 3528, 198, 37811, 198, 198, 6738, 1233, 26791, 13, 7295, 1330, 9058, 11, 27995, 198, 198, 14201, 578, 62, 21412, 796, 27995, ...
2.429245
212
#! python 3 # ch.py - scrapes denvercourt/themis for criminal # history for a given defendant w/DOB # TODO: show open cases (nxt court date set in noCos tab); sentence; FTAs import requests, sys, time, datetime, bs4, subprocess from tqdm import tqdm bool_Emergency = False ###### ENTRY POINT TO FUNCTIO...
[ 2, 0, 21015, 513, 201, 198, 2, 442, 13, 9078, 532, 15881, 274, 2853, 332, 22230, 14, 18855, 271, 329, 4301, 220, 201, 198, 2, 2106, 329, 257, 1813, 11304, 266, 14, 35, 9864, 201, 198, 201, 198, 2, 16926, 46, 25, 905, 1280, 2663,...
2.209691
5,799
# This file is part of GridCal. # # GridCal is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, either version 3 of the License, or # (at your option) any later version. # # GridCal is distributed in the hope that...
[ 2, 770, 2393, 318, 636, 286, 24846, 9771, 13, 198, 2, 198, 2, 24846, 9771, 318, 1479, 3788, 25, 345, 460, 17678, 4163, 340, 290, 14, 273, 13096, 198, 2, 340, 739, 262, 2846, 286, 262, 22961, 3611, 5094, 13789, 355, 3199, 416, 198,...
4.064439
419
from __future__ import absolute_import, division, print_function import os.path import torch import torch.utils.data as data import glob import numpy as np from torchvision import transforms as vision_transforms from .common import read_image_as_byte, read_calib_into_dict, get_date_from_width
[ 6738, 11593, 37443, 834, 1330, 4112, 62, 11748, 11, 7297, 11, 3601, 62, 8818, 198, 198, 11748, 28686, 13, 6978, 198, 11748, 28034, 198, 11748, 28034, 13, 26791, 13, 7890, 355, 1366, 198, 11748, 15095, 198, 11748, 299, 32152, 355, 45941,...
3.547619
84
import os import tensorflow as tf import sonnet as snt from root_gnn.utils import load_yaml from root_gnn import model as GNN
[ 11748, 28686, 198, 198, 11748, 11192, 273, 11125, 355, 48700, 198, 11748, 3367, 3262, 355, 264, 429, 198, 6738, 6808, 62, 4593, 77, 13, 26791, 1330, 3440, 62, 88, 43695, 198, 6738, 6808, 62, 4593, 77, 1330, 2746, 355, 402, 6144, 628 ]
3.047619
42
# TODO: Add an appropriate license to your skill before publishing. See # the LICENSE file for more information. # Below is the list of outside modules you'll be using in your skill. # They might be built-in to Python, from mycroft-core or from external # libraries. If you use an external library, be sure to include...
[ 2, 16926, 46, 25, 3060, 281, 5035, 5964, 284, 534, 5032, 878, 12407, 13, 220, 4091, 198, 2, 262, 38559, 24290, 2393, 329, 517, 1321, 13, 198, 198, 2, 10383, 318, 262, 1351, 286, 2354, 13103, 345, 1183, 307, 1262, 287, 534, 5032, 1...
3.830435
230
import unittest from masonite.exceptions import RouteNotFoundException from masonite.app import App from masonite.exceptions import InvalidRouteCompileException, RouteException from masonite.helpers.routes import create_matchurl, flatten_routes, group from masonite.request import Request from masonite.routes import (C...
[ 11748, 555, 715, 395, 198, 6738, 285, 888, 578, 13, 1069, 11755, 1330, 18956, 3673, 21077, 16922, 198, 198, 6738, 285, 888, 578, 13, 1324, 1330, 2034, 198, 6738, 285, 888, 578, 13, 1069, 11755, 1330, 17665, 43401, 7293, 576, 16922, 11...
3.158974
195
# Copyright (c) 2011 The Chromium Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. { 'variables': { 'dest_dir': '<(PRODUCT_DIR)/syzygy', }, 'conditions': [ ['syzyasan==1', { 'variables': { 'syzygy_exe_dir': '<...
[ 2, 15069, 357, 66, 8, 2813, 383, 18255, 1505, 46665, 13, 1439, 2489, 10395, 13, 198, 2, 5765, 286, 428, 2723, 2438, 318, 21825, 416, 257, 347, 10305, 12, 7635, 5964, 326, 460, 307, 198, 2, 1043, 287, 262, 38559, 24290, 2393, 13, 1...
1.616248
2,585
# coding: utf-8 """ Registry of Open Community Challenge API The OpenAPI specification implemented by the Challenge Registries. # Introduction TBA # noqa: E501 The version of the OpenAPI document: 0.1.4 Contact: thomas.schaffter@sagebionetworks.org Generated by: https://openapi-generator.tech "...
[ 2, 19617, 25, 3384, 69, 12, 23, 198, 198, 37811, 198, 220, 220, 220, 33432, 286, 4946, 8108, 13879, 7824, 628, 220, 220, 220, 383, 4946, 17614, 20855, 9177, 416, 262, 13879, 13811, 1678, 13, 1303, 22395, 48591, 220, 220, 1303, 645, ...
2.379288
1,574
import re import constants if __name__ == '__main__': CHAR_CLUSTERS = ''' เc็c เcctาะ เccีtยะ เccีtย(?=[เ-ไก-ฮ]|$) เccอะ เcc็c เcิc์c เcิtc เcีtยะ? เcืtอะ? เc[ิีุู]tย(?=[เ-ไก-ฮ]|$) เctา?ะ? cัtวะ c[ัื...
[ 11748, 302, 198, 198, 11748, 38491, 628, 628, 198, 361, 11593, 3672, 834, 6624, 705, 834, 12417, 834, 10354, 198, 220, 220, 220, 28521, 62, 5097, 7759, 4877, 796, 705, 7061, 198, 220, 220, 220, 220, 220, 220, 220, 220, 31479, 222, 6...
1.103125
640
from scipy.spatial import voronoi_plot_2d, Voronoi import matplotlib.cm as cm import matplotlib.pyplot as plt from scipy.spatial import ConvexHull, convex_hull_plot_2d from numpy import genfromtxt import pandas as pd import numpy as np from osgeo import gdal import argparse import os import xarray as xr #cLHS import c...
[ 6738, 629, 541, 88, 13, 2777, 34961, 1330, 410, 273, 261, 23013, 62, 29487, 62, 17, 67, 11, 44143, 261, 23013, 198, 11748, 2603, 29487, 8019, 13, 11215, 355, 12067, 198, 11748, 2603, 29487, 8019, 13, 9078, 29487, 355, 458, 83, 198, ...
1.973339
4,426
# Tool to prepare foggy lidar test set from Oxford RobotCar dataset. # Adapted from https://github.com/princeton-computational-imaging/SeeingThroughFog/blob/master/tools/DatasetFoggification/lidar_foggification.py # Licensed under the Apache License import argparse, tqdm, os, errno import numpy as np from transform im...
[ 2, 16984, 284, 8335, 19558, 1360, 19789, 283, 1332, 900, 422, 13643, 16071, 9914, 27039, 13, 198, 2, 30019, 276, 422, 3740, 1378, 12567, 13, 785, 14, 1050, 1939, 18483, 12, 785, 1996, 864, 12, 320, 3039, 14, 36314, 15046, 37, 519, 1...
2.55614
570
__author__ = 'sibirrer' from lenstronomy.LensModel.single_plane import SinglePlane from lenstronomy.LensModel.MultiPlane.multi_plane import MultiPlane from lenstronomy.Cosmo.lens_cosmo import LensCosmo from lenstronomy.Util import constants as const __all__ = ['LensModel'] class LensModel(object): """ class ...
[ 834, 9800, 834, 796, 705, 82, 571, 343, 11751, 6, 198, 6738, 18896, 301, 1313, 9145, 13, 49479, 17633, 13, 29762, 62, 14382, 1330, 14206, 3646, 1531, 198, 6738, 18896, 301, 1313, 9145, 13, 49479, 17633, 13, 29800, 3646, 1531, 13, 4168...
2.399478
8,814
# -*- coding: utf-8 -*- import os try: import Queue except ImportError: import queue as Queue import re import socket import struct import subprocess import threading import time import traceback import logging import cv2 import numpy as np from .MinicapInstall import * SCREEN_ORI_LANDSCAPE = 0 SCREEN_ORI_PORTRA...
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 198, 11748, 28686, 198, 28311, 25, 198, 220, 1330, 4670, 518, 198, 16341, 17267, 12331, 25, 198, 220, 1330, 16834, 355, 4670, 518, 198, 198, 11748, 302, 198, 11748, 1780...
2.507614
197
''' module that retreives and pack adms input info ''' import rdflib import requests import math import sys import os import json import rdflib.plugins.sparql.results.jsonresults as jsresult from collections import namedtuple from pyproj import Proj, transform if __name__ == "__...
[ 7061, 6, 198, 21412, 326, 1005, 260, 1083, 290, 2353, 512, 907, 5128, 7508, 198, 7061, 6, 198, 11748, 374, 67, 2704, 571, 198, 11748, 7007, 198, 198, 11748, 10688, 198, 11748, 25064, 198, 11748, 28686, 198, 11748, 33918, 198, 11748, 3...
2.382609
230
# The MIT License (MIT) # # Copyright (c) 2015 Lucas Koegel # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights # to use, copy, mod...
[ 171, 119, 123, 2, 383, 17168, 13789, 357, 36393, 8, 198, 2, 198, 2, 15069, 357, 66, 8, 1853, 15257, 17634, 1533, 417, 198, 2, 198, 2, 2448, 3411, 318, 29376, 7520, 11, 1479, 286, 3877, 11, 284, 597, 1048, 16727, 257, 4866, 198, ...
2.497085
1,372
# Copyright (c) 2009 The Chromium Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. { 'includes': [ '../build/common.gypi', ], 'conditions': [ [ 'OS=="mac"', { 'target_defaults': { 'include_dirs': [ ...
[ 2, 15069, 357, 66, 8, 3717, 383, 18255, 1505, 46665, 13, 1439, 2489, 10395, 13, 198, 2, 5765, 286, 428, 2723, 2438, 318, 21825, 416, 257, 347, 10305, 12, 7635, 5964, 326, 460, 307, 198, 2, 1043, 287, 262, 38559, 24290, 2393, 13, 1...
1.706916
6,203
#!/usr/bin/env/python import os import sys import psycopg2 from sqlalchemy import Column, ForeignKey, Integer, String, create_engine from sqlalchemy.ext.declarative import declarative_base from sqlalchemy.orm import relationship, validates from sqlalchemy_utils import database_exists, create_database Ba...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 14, 29412, 201, 198, 201, 198, 11748, 28686, 201, 198, 11748, 25064, 201, 198, 11748, 17331, 22163, 70, 17, 201, 198, 201, 198, 6738, 44161, 282, 26599, 1330, 29201, 11, 8708, 9218, 11, 34142, 11,...
2.889474
190
# coding: utf-8 # Nuevo proyecto import webapp2 import time from webapp2_extras import jinja2 from google.appengine.ext import ndb from model.proyecto import Proyecto app = webapp2.WSGIApplication([ ('/proyectos/nuevo', NuevoProyectoHandler) ], debug=True)
[ 2, 19617, 25, 3384, 69, 12, 23, 198, 2, 399, 518, 13038, 386, 88, 478, 78, 628, 198, 11748, 3992, 1324, 17, 198, 11748, 640, 198, 198, 6738, 3992, 1324, 17, 62, 2302, 8847, 1330, 474, 259, 6592, 17, 198, 6738, 23645, 13, 1324, 1...
2.436364
110
# Django Imports from django.urls import path, include # Standard Package Imports # Project Imports from . import views # Third Party Imports app_name = 'stock' urlpatterns = [ # path('', views.home, name='home'), path('', views.risk_return, name='risk-return'), path('portfolio/contact-form/', views....
[ 2, 37770, 1846, 3742, 198, 6738, 42625, 14208, 13, 6371, 82, 1330, 3108, 11, 2291, 198, 198, 2, 8997, 15717, 1846, 3742, 198, 198, 2, 4935, 1846, 3742, 198, 6738, 764, 1330, 5009, 628, 198, 2, 10467, 3615, 1846, 3742, 628, 198, 1324...
2.721925
187
#! /usr/bin/env python import sys import socket import time import subprocess import subprocess32 import os includeos_src = os.environ.get('INCLUDEOS_SRC', os.path.realpath(os.path.join(os.getcwd(), os.path.dirname(__file__))).split('/test')[0]) sys.path.insert(0,includeos_src) from vmr...
[ 2, 0, 1220, 14629, 14, 8800, 14, 24330, 21015, 198, 11748, 25064, 198, 11748, 17802, 198, 11748, 640, 198, 11748, 850, 14681, 198, 11748, 850, 14681, 2624, 198, 11748, 28686, 198, 198, 17256, 418, 62, 10677, 796, 28686, 13, 268, 2268, ...
2.890346
839