content
stringlengths
1
1.05M
input_ids
listlengths
1
883k
ratio_char_token
float64
1
22.9
token_count
int64
1
883k
"""In a small town the population is p0 = 1000 at the beginning of a year. The population regularly increases by 2 percent per year and moreover 50 new inhabitants per year come to live in the town. How many years does the town need to see its population greater or equal to p = 1200 inhabitants? 1) At the end of the f...
[ 37811, 818, 257, 1402, 3240, 262, 3265, 318, 279, 15, 796, 8576, 379, 262, 3726, 286, 257, 614, 13, 198, 464, 3265, 7987, 5732, 416, 362, 1411, 583, 614, 290, 33695, 2026, 649, 198, 259, 5976, 270, 1187, 583, 614, 1282, 284, 2107, ...
3.661342
313
#!/usr/bin/python3 import threading import time import PySimpleGUI as sg """ DESIGN PATTERN - Multithreaded Long Tasks GUI using shared global variables Presents one method for running long-running operations in a PySimpleGUI environment. The PySimpleGUI code, and thus the underlying GUI framework, ru...
[ 2, 48443, 14629, 14, 8800, 14, 29412, 18, 198, 11748, 4704, 278, 198, 11748, 640, 198, 11748, 9485, 26437, 40156, 355, 264, 70, 198, 198, 37811, 198, 220, 220, 220, 22196, 16284, 28748, 31800, 532, 7854, 342, 961, 276, 5882, 309, 6791...
2.663239
1,556
from io import StringIO from django.core.management import call_command import os from . import utils
[ 6738, 33245, 1330, 10903, 9399, 198, 6738, 42625, 14208, 13, 7295, 13, 27604, 1330, 869, 62, 21812, 198, 198, 11748, 28686, 198, 198, 6738, 764, 1330, 3384, 4487, 628 ]
3.62069
29
greet('UselessAI', '2020') remind_name() guess_age() count() test() end()
[ 628, 628, 628, 198, 70, 2871, 10786, 52, 10950, 20185, 3256, 705, 42334, 11537, 198, 2787, 521, 62, 3672, 3419, 198, 5162, 408, 62, 496, 3419, 198, 9127, 3419, 198, 9288, 3419, 198, 437, 3419, 198 ]
2.25
36
# -*- coding: utf-8 -*- """ AQSmtpClient Module. This class provides utilities to use a Smtp client. """ from pineboolib.fllegacy.flsmtpclient import FLSmtpClient
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 37811, 198, 32, 48, 7556, 34788, 11792, 19937, 13, 198, 198, 1212, 1398, 3769, 20081, 284, 779, 257, 2439, 34788, 5456, 13, 198, 37811, 198, 198, 6738, 20161, 30388, 571...
2.766667
60
from typing import List from django.contrib.auth.mixins import LoginRequiredMixin from django.views.generic import TemplateView from assistant.orders.models import Order from assistant.products.models import Product
[ 6738, 19720, 1330, 7343, 198, 198, 6738, 42625, 14208, 13, 3642, 822, 13, 18439, 13, 19816, 1040, 1330, 23093, 37374, 35608, 259, 198, 6738, 42625, 14208, 13, 33571, 13, 41357, 1330, 37350, 7680, 198, 198, 6738, 8796, 13, 6361, 13, 2753...
4.074074
54
import os import datetime import pandas as pd from chmap.settings.app import App from chmap.database.db_classes import * from chmap.database.deprecated.db_funs import init_db_conn from sqlalchemy.orm import joinedload # Assume that we are using images from the 'reference_data' setup supplied with repo # manually s...
[ 198, 198, 11748, 28686, 198, 11748, 4818, 8079, 198, 11748, 19798, 292, 355, 279, 67, 198, 198, 6738, 442, 8899, 13, 33692, 13, 1324, 1330, 2034, 198, 6738, 442, 8899, 13, 48806, 13, 9945, 62, 37724, 1330, 1635, 198, 6738, 442, 8899, ...
2.489545
813
from ..sensor import ArgDict, Sensor
[ 6738, 11485, 82, 22854, 1330, 20559, 35, 713, 11, 35367, 628 ]
3.454545
11
# Running! if __name__ == '__main__': selection_11()
[ 198, 2, 18162, 0, 198, 361, 11593, 3672, 834, 6624, 705, 834, 12417, 834, 10354, 198, 220, 220, 220, 6356, 62, 1157, 3419, 198 ]
2.416667
24
from fastapi import FastAPI, status, HTTPException, Response, APIRouter, Depends from sqlalchemy.orm import Session from typing import List from .. import schemas, models, utils #You can move up 2 steps using .. from ..database import get_db router = APIRouter( prefix="/users", tags=['users'] )
[ 6738, 3049, 15042, 1330, 12549, 17614, 11, 3722, 11, 14626, 16922, 11, 18261, 11, 3486, 4663, 39605, 11, 2129, 2412, 198, 6738, 44161, 282, 26599, 13, 579, 1330, 23575, 198, 6738, 19720, 1330, 7343, 198, 198, 6738, 11485, 1330, 3897, 53...
3.347826
92
import os import requests import json import pathlib from abc import ABCMeta, abstractmethod from .news import News, print_format_markdown, print_format_telebot KEY_PATH = pathlib.Path(os.path.dirname(__file__), "../..")
[ 11748, 28686, 198, 11748, 7007, 198, 11748, 33918, 198, 11748, 3108, 8019, 198, 198, 6738, 450, 66, 1330, 9738, 48526, 11, 12531, 24396, 198, 6738, 764, 10827, 1330, 3000, 11, 3601, 62, 18982, 62, 4102, 2902, 11, 3601, 62, 18982, 62, ...
3.166667
72
Normalize mean=[0.1307] std=[0.3081] ReLU [[-0.02289694733917713, -0.0015768347075209022, -0.007779418025165796, -0.018946761265397072, 0.009356001392006874, -0.01212845928966999, -0.019499225541949272, 0.014134012162685394, -0.022251857444643974, 0.03429203853011131, 0.007956764660775661, 0.01797821931540966, 0.0398...
[ 26447, 1096, 1612, 41888, 15, 13, 12952, 22, 60, 14367, 41888, 15, 13, 1270, 6659, 60, 201, 198, 3041, 41596, 201, 198, 30109, 12, 15, 13, 44087, 4531, 3388, 2857, 29626, 22413, 1485, 11, 532, 15, 13, 405, 18458, 3104, 2682, 2154, 2...
1.982794
495,298
# Renewable generation at Findhorn from windpowerlib import WindFarm from windpowerlib import WindTurbine from windpowerlib import WindTurbineCluster from windpowerlib.turbine_cluster_modelchain import TurbineClusterModelChain import pvlib from pvlib.pvsystem import PVSystem from pvlib.location import Location from pvl...
[ 2, 29479, 540, 5270, 379, 9938, 25311, 198, 6738, 2344, 6477, 8019, 1330, 3086, 48412, 198, 6738, 2344, 6477, 8019, 1330, 3086, 51, 5945, 500, 198, 6738, 2344, 6477, 8019, 1330, 3086, 51, 5945, 500, 2601, 5819, 198, 6738, 2344, 6477, ...
3.412088
182
"""Tests for the minio component."""
[ 37811, 51, 3558, 329, 262, 949, 952, 7515, 526, 15931, 198 ]
3.363636
11
from setuptools import find_packages, setup setup( name='src', packages=find_packages(), version='0.1.0', description='Hive-ml project of OneApp', author='Ravikant Bade', license='MIT', )
[ 6738, 900, 37623, 10141, 1330, 1064, 62, 43789, 11, 9058, 198, 198, 40406, 7, 198, 220, 220, 220, 1438, 11639, 10677, 3256, 198, 220, 220, 220, 10392, 28, 19796, 62, 43789, 22784, 198, 220, 220, 220, 2196, 11639, 15, 13, 16, 13, 15,...
2.566265
83
import dash import dash_bootstrap_components as dbc import dash_core_components as dcc import dash_html_components as html import plotly.express as px import pandas as pd import os import requests app = dash.Dash(external_stylesheets=[dbc.themes.JOURNAL]) server = app.server search_url = "https://api.twitter.com/2/t...
[ 11748, 14470, 198, 11748, 14470, 62, 18769, 26418, 62, 5589, 3906, 355, 288, 15630, 198, 11748, 14470, 62, 7295, 62, 5589, 3906, 355, 288, 535, 198, 11748, 14470, 62, 6494, 62, 5589, 3906, 355, 27711, 198, 11748, 7110, 306, 13, 42712, ...
2.54087
575
import math # return the delay of the specified path (= list of nodes) # floyd-warshall algorithm
[ 11748, 10688, 201, 198, 201, 198, 201, 198, 2, 1441, 262, 5711, 286, 262, 7368, 3108, 46121, 1351, 286, 13760, 8, 201, 198, 201, 198, 201, 198, 2, 781, 12192, 12, 86, 5406, 439, 11862, 201, 198 ]
2.945946
37
import os import csv import numpy as np import scipy.stats import matplotlib.pyplot as plt plt.style.use('seaborn-whitegrid') startingDir = 'data/output' plotTestNumber = 12 totalRequests = 447 singleTestData = [] allLatencies = [] allErrors = 0 errorsData = [] tipsData = [] tipsDataSTD = [] powsData = [] powsDataS...
[ 11748, 28686, 198, 11748, 269, 21370, 198, 11748, 299, 32152, 355, 45941, 198, 11748, 629, 541, 88, 13, 34242, 198, 11748, 2603, 29487, 8019, 13, 9078, 29487, 355, 458, 83, 198, 489, 83, 13, 7635, 13, 1904, 10786, 325, 397, 1211, 12, ...
2.063567
1,054
from __future__ import print_function import pandas as pd import numpy as np from sklearn.datasets import load_iris from skutil.preprocessing import * from skutil.preprocessing.balance import _BaseBalancer from numpy.testing import assert_array_equal from skutil.testing import assert_fails import warnings # Def data f...
[ 6738, 11593, 37443, 834, 1330, 3601, 62, 8818, 198, 11748, 19798, 292, 355, 279, 67, 198, 11748, 299, 32152, 355, 45941, 198, 6738, 1341, 35720, 13, 19608, 292, 1039, 1330, 3440, 62, 29616, 198, 6738, 1341, 22602, 13, 3866, 36948, 1330,...
3.320896
134
#!/usr/bin/env python from Crypto.Cipher import AES from Crypto.Util.strxor import strxor from binascii import hexlify K = '0123456789abcdef' cipher = AES.new(K, AES.MODE_ECB) # Original Message M1 = K M2 = K Cm0 = cipher.encrypt('\0' * AES.block_size) Cm1 = cipher.encrypt(strxor(Cm0,M1)) Tm = Cm2 = cipher.encrypt(s...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 198, 198, 6738, 36579, 13, 34, 10803, 1330, 34329, 198, 6738, 36579, 13, 18274, 346, 13, 2536, 87, 273, 1330, 965, 87, 273, 198, 6738, 9874, 292, 979, 72, 1330, 17910, 75, 1958, 198, 198,...
2.117978
356
import argparse
[ 11748, 1822, 29572, 628, 198 ]
3.6
5
import json from companies_plugin import extractor from companies_plugin.utils import add_logger from scanr_doiresolver import LIB_PATH from scanr_doiresolver.resolver import resolve_publications if __name__ == "__main__": m = extractor.Main(batch_name="PUBLICATION_RESOLVER", queue_name="...
[ 11748, 33918, 198, 198, 6738, 2706, 62, 33803, 1330, 7925, 273, 198, 6738, 2706, 62, 33803, 13, 26791, 1330, 751, 62, 6404, 1362, 198, 6738, 9367, 81, 62, 4598, 2387, 14375, 1330, 45651, 62, 34219, 198, 6738, 9367, 81, 62, 4598, 2387,...
2.331606
193
# -*- coding:utf-8 -*- # this is auto-generated by swagger-marshmallow-codegen from swagger_marshmallow_codegen.schema.legacy import ( AdditionalPropertiesSchema, LegacySchema ) from marshmallow import fields
[ 2, 532, 9, 12, 19617, 25, 40477, 12, 23, 532, 9, 12, 198, 2, 428, 318, 8295, 12, 27568, 416, 1509, 7928, 12, 76, 5406, 42725, 12, 8189, 5235, 198, 6738, 1509, 7928, 62, 76, 5406, 42725, 62, 8189, 5235, 13, 15952, 2611, 13, 1455,...
2.945946
74
import pytest import pandas as pd import numpy as np from os import stat from io import StringIO from epic.bigwig.create_bigwigs import _create_bigwig from epic.config.genomes import create_genome_size_dict
[ 11748, 12972, 9288, 198, 198, 11748, 19798, 292, 355, 279, 67, 198, 11748, 299, 32152, 355, 45941, 198, 198, 6738, 28686, 1330, 1185, 198, 6738, 33245, 1330, 10903, 9399, 198, 198, 6738, 12191, 13, 14261, 28033, 13, 17953, 62, 14261, 86...
3.164179
67
# MIPLearn: Extensible Framework for Learning-Enhanced Mixed-Integer Optimization # Copyright (C) 2020-2021, UChicago Argonne, LLC. All rights reserved. # Released under the modified BSD license. See COPYING.md for more details. from io import StringIO from miplearn.solvers import _RedirectOutput
[ 2, 220, 337, 4061, 20238, 25, 5683, 27339, 25161, 329, 18252, 12, 49026, 35250, 12, 46541, 30011, 1634, 198, 2, 220, 15069, 357, 34, 8, 12131, 12, 1238, 2481, 11, 471, 25705, 49974, 710, 11, 11419, 13, 1439, 2489, 10395, 13, 198, 2,...
3.695122
82
import math # return '{}\{}{}'.format(value1, value2, value3) class_scores = ['73\t72\t76', '48\t67\t76', '95\t92\t95', '95\t95\t96', '33\t59\t79', '47\t58\t74', '98\t95\t97', '91\t94\t97', '95\t84\t90', '93\t83\t90', '70\t70\t78', '85\t79\t91', '33\t67\t76', '47\t73\t90', '95\t87\t95', '84\t86\t95', '43\t...
[ 11748, 10688, 628, 198, 198, 2, 1441, 705, 90, 32239, 90, 18477, 92, 4458, 18982, 7, 8367, 16, 11, 1988, 17, 11, 1988, 18, 8, 628, 198, 4871, 62, 1416, 2850, 796, 37250, 4790, 59, 83, 4761, 59, 83, 4304, 3256, 705, 2780, 59, 83,...
1.733333
240
import sys import unittest import configparser sys.path.append("./svc") # [EOF]
[ 11748, 25064, 198, 11748, 555, 715, 395, 198, 11748, 4566, 48610, 198, 198, 17597, 13, 6978, 13, 33295, 7, 1911, 14, 21370, 66, 4943, 628, 198, 198, 2, 685, 4720, 37, 60, 198 ]
2.545455
33
# Class to store champion names in one location
[ 2, 5016, 284, 3650, 8783, 3891, 287, 530, 4067, 198 ]
4.8
10
import logging from typing import Optional, List, Any import gpuz.utility as utility from pathlib import Path import os import pandas as pd from pandas.core.frame import DataFrame import numpy as np import matplotlib as mp logger: logging.Logger = logging.getLogger(__name__) logger.setLevel(logging.DEBUG) if __na...
[ 11748, 18931, 198, 198, 6738, 19720, 1330, 32233, 11, 7343, 11, 4377, 198, 198, 11748, 27809, 10277, 13, 315, 879, 355, 10361, 198, 6738, 3108, 8019, 1330, 10644, 198, 11748, 28686, 198, 198, 11748, 19798, 292, 355, 279, 67, 198, 6738, ...
2.71123
187
from posix import listdir import requests from bs4 import BeautifulSoup as bs import math import sys, getopt import re import os # For Oxford ============================================================================== # base_url = "https://www.ox.ac.uk/" # base_dir = "pages/oxford" # if not os.path.exists(base_...
[ 6738, 1426, 844, 1330, 1351, 15908, 198, 11748, 7007, 198, 6738, 275, 82, 19, 1330, 23762, 50, 10486, 355, 275, 82, 198, 11748, 10688, 198, 11748, 25064, 11, 651, 8738, 198, 11748, 302, 198, 11748, 28686, 628, 198, 198, 2, 1114, 13643...
2.431175
1,591
import os from rllab.baselines.linear_feature_baseline import LinearFeatureBaseline # from rllab.envs.mujoco.gather.swimmer_gather_env import SwimmerGatherEnv os.environ["THEANO_FLAGS"] = "device=cpu" from rllab.envs.gym_env import GymEnv from rllab.envs.normalized_env import normalize from rllab.policies.gaussian_mlp...
[ 11748, 28686, 198, 6738, 374, 297, 397, 13, 12093, 20655, 13, 29127, 62, 30053, 62, 12093, 4470, 1330, 44800, 38816, 15522, 4470, 198, 2, 422, 374, 297, 397, 13, 268, 14259, 13, 76, 23577, 25634, 13, 70, 1032, 13, 2032, 10957, 62, 7...
1.770237
3,212
""" This is to generate interaction energies and corresponding translational vectors, given a fixed receptor and an ensemble of ligand coordinates (including rotations and/or configurations) """ from __future__ import print_function import numpy as np import netCDF4 try: from bpmfwfft.grids import RecGrid fr...
[ 37811, 198, 1212, 318, 284, 7716, 10375, 27598, 290, 11188, 4779, 864, 30104, 11, 220, 198, 35569, 257, 5969, 17408, 290, 281, 34549, 286, 26106, 392, 22715, 357, 8201, 5724, 602, 290, 14, 273, 25412, 8, 198, 37811, 198, 6738, 11593, ...
2.363234
903
import json import re from abc import ABC, abstractmethod from dataclasses import dataclass, field from os.path import splitext from pathlib import Path from typing import Any, Dict, List, Optional, Tuple, Type, Union from PIL import Image from ruamel.yaml import YAML from kotori.error import ConfigError __all__ = [...
[ 11748, 33918, 198, 11748, 302, 198, 6738, 450, 66, 1330, 9738, 11, 12531, 24396, 198, 6738, 4818, 330, 28958, 1330, 4818, 330, 31172, 11, 2214, 198, 6738, 28686, 13, 6978, 1330, 4328, 578, 742, 198, 6738, 3108, 8019, 1330, 10644, 198, ...
3.150838
179
import os import re from pprint import pprint from pandas.io.json import json_normalize import datetime import argparse import sys DATE = 'date' LEVEL = 'level' TYPE = 'type' CLASS = 'class' MESSAGE = 'message' def structure_snakemake_logs(logs): """ Takes as input a parced log dictionary. Returns a str...
[ 11748, 28686, 198, 11748, 302, 198, 6738, 279, 4798, 1330, 279, 4798, 198, 6738, 19798, 292, 13, 952, 13, 17752, 1330, 33918, 62, 11265, 1096, 198, 11748, 4818, 8079, 198, 11748, 1822, 29572, 198, 11748, 25064, 198, 198, 35, 6158, 796, ...
1.821411
2,055
from nimanifold.data.csv import * from nimanifold.data.sample import *
[ 6738, 299, 24086, 361, 727, 13, 7890, 13, 40664, 1330, 1635, 198, 6738, 299, 24086, 361, 727, 13, 7890, 13, 39873, 1330, 1635, 198 ]
2.958333
24
import sys import os import numpy as np import ast import pandas as pd from LEBondUpdater import bondUpdater import polychrom from polychrom.starting_conformations import grow_cubic from polychrom.hdf5_format import HDF5Reporter, list_URIs, load_URI, load_hdf5_file from polychrom.simulation import Simulation from pol...
[ 11748, 25064, 198, 11748, 28686, 198, 11748, 299, 32152, 355, 45941, 198, 11748, 6468, 198, 11748, 19798, 292, 355, 279, 67, 198, 198, 6738, 12509, 33, 623, 4933, 67, 729, 1330, 6314, 4933, 67, 729, 198, 198, 11748, 7514, 28663, 198, ...
3.323529
136
from PySide2.QtCore import Signal from PySide2.QtWidgets import QWidget from deca.db_view import VfsView
[ 6738, 9485, 24819, 17, 13, 48, 83, 14055, 1330, 26484, 198, 6738, 9485, 24819, 17, 13, 48, 83, 54, 312, 11407, 1330, 1195, 38300, 198, 6738, 875, 64, 13, 9945, 62, 1177, 1330, 569, 9501, 7680, 628 ]
2.864865
37
""" Computes the probability field of beached particles from Ocean Parcels simulations. Computes the posterior probability in the latitude of the beached particles. """ import numpy as np import xarray as xr import pandas as pd import os def time_averaging_coast(array, window=30): """It averages the counts_americ...
[ 37811, 198, 7293, 1769, 262, 12867, 2214, 286, 307, 2317, 13166, 422, 10692, 2547, 5276, 82, 198, 14323, 5768, 13, 3082, 1769, 262, 34319, 12867, 287, 262, 32477, 286, 262, 307, 2317, 198, 3911, 2983, 13, 198, 37811, 198, 11748, 299, ...
2.625763
2,950
import math import torch import torch.nn as nn import torch.nn.functional as F from models.sync_batchnorm.batchnorm import SynchronizedBatchNorm2d from models.aspp import build_aspp from models.decoder import build_decoder import pdb
[ 11748, 10688, 198, 11748, 28034, 198, 11748, 28034, 13, 20471, 355, 299, 77, 198, 11748, 28034, 13, 20471, 13, 45124, 355, 376, 198, 6738, 4981, 13, 27261, 62, 43501, 27237, 13, 43501, 27237, 1330, 16065, 11413, 1143, 33, 963, 35393, 17...
3.391304
69
import scipy as sp from pyssp.util import ( get_frame, add_signal, compute_avgpowerspectrum )
[ 11748, 629, 541, 88, 355, 599, 198, 6738, 12972, 824, 79, 13, 22602, 1330, 357, 198, 220, 220, 220, 651, 62, 14535, 11, 751, 62, 12683, 282, 11, 24061, 62, 615, 70, 30132, 806, 6582, 198, 8, 628, 628, 198 ]
2.55
40
''' harmalysis - a language for harmonic analysis and roman numerals Copyright (C) 2020 Nestor Napoles Lopez 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 3 of t...
[ 7061, 6, 198, 220, 220, 220, 4419, 8767, 532, 257, 3303, 329, 49239, 3781, 290, 374, 5185, 5470, 874, 198, 220, 220, 220, 15069, 357, 34, 8, 12131, 220, 21420, 273, 14332, 4316, 22593, 628, 220, 220, 220, 770, 1430, 318, 1479, 3788,...
3.65368
231
import hashlib from Crypto.Cipher import AES
[ 11748, 12234, 8019, 198, 6738, 36579, 13, 34, 10803, 1330, 34329, 628 ]
3.833333
12
############################################################################## # Institute for the Design of Advanced Energy Systems Process Systems # Engineering Framework (IDAES PSE Framework) Copyright (c) 2018-2019, by the # software owners: The Regents of the University of California, through # Lawrence Berkeley N...
[ 29113, 29113, 7804, 4242, 2235, 198, 2, 5136, 329, 262, 8495, 286, 13435, 6682, 11998, 10854, 11998, 198, 2, 14044, 25161, 357, 41957, 1546, 350, 5188, 25161, 8, 15069, 357, 66, 8, 2864, 12, 23344, 11, 416, 262, 198, 2, 3788, 4393, ...
3.197655
597
# Generated by Django 3.1.3 on 2020-11-23 15:06 from django.db import migrations, models import django.db.models.deletion
[ 2, 2980, 515, 416, 37770, 513, 13, 16, 13, 18, 319, 12131, 12, 1157, 12, 1954, 1315, 25, 3312, 198, 198, 6738, 42625, 14208, 13, 9945, 1330, 15720, 602, 11, 4981, 198, 11748, 42625, 14208, 13, 9945, 13, 27530, 13, 2934, 1616, 295, ...
2.818182
44
import unittest import gym import numpy as np from connect_four.hashing import TicTacToeHasher from connect_four.transposition.sqlite_transposition_table import SQLiteTranspositionTable if __name__ == '__main__': unittest.main()
[ 11748, 555, 715, 395, 198, 198, 11748, 11550, 198, 11748, 299, 32152, 355, 45941, 198, 198, 6738, 2018, 62, 14337, 13, 71, 2140, 1330, 309, 291, 51, 330, 2514, 68, 19242, 372, 198, 6738, 2018, 62, 14337, 13, 7645, 9150, 13, 25410, 5...
3.051282
78
from nipype import config config.enable_debug_mode() from banana.testing import BaseTestCase as TestCase # @IgnorePep8 @Reimport # from banana.study.multimodal.test_motion_detection import ( # @IgnorePep8 @Reimport # MotionDetection, inputs) from banana.study.multimodal.mrpet import create_motion_correction_class...
[ 6738, 299, 541, 2981, 1330, 4566, 198, 11250, 13, 21633, 62, 24442, 62, 14171, 3419, 198, 6738, 25996, 13, 33407, 1330, 7308, 14402, 20448, 355, 6208, 20448, 220, 1303, 2488, 32916, 382, 47, 538, 23, 2488, 3041, 11748, 198, 2, 422, 25...
2.554348
184
# # (C) dGB Beheer B.V.; (LICENSE) http://opendtect.org/OpendTect_license.txt # AUTHOR : Bert # DATE : August 2018 # # Module init # __version__ = '1.0.0'
[ 2, 198, 2, 357, 34, 8, 288, 4579, 1355, 258, 263, 347, 13, 53, 15089, 357, 43, 2149, 24290, 8, 2638, 1378, 404, 437, 83, 478, 13, 2398, 14, 18257, 437, 51, 478, 62, 43085, 13, 14116, 198, 2, 44746, 220, 220, 1058, 22108, 198, ...
2.103896
77
""" Test module for the Fedex CountryService WSDL. """ import unittest import logging import sys sys.path.insert(0, '..') from fedex.services.country_service import FedexValidatePostalRequest # Common global config object for testing. from tests.common import get_fedex_config CONFIG_OBJ = get_fedex_config() loggin...
[ 37811, 198, 14402, 8265, 329, 262, 10169, 1069, 12946, 16177, 370, 10305, 43, 13, 198, 37811, 198, 198, 11748, 555, 715, 395, 198, 11748, 18931, 198, 11748, 25064, 198, 198, 17597, 13, 6978, 13, 28463, 7, 15, 11, 705, 492, 11537, 198,...
2.895604
182
#!/usr/bin/env python # -*- coding: utf-8 -*- # vim:ts=4:sw=4:softtabstop=4:smarttab:expandtab from __future__ import unicode_literals, division, absolute_import, print_function import os import sys import shutil import inspect import glob import zipfile import pythonpatch if sys.version_info >= (3,): import url...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 198, 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 2, 43907, 25, 912, 28, 19, 25, 2032, 28, 19, 25, 4215, 8658, 11338, 28, 19, 25, 27004, 8658, 25, 11201, 392, 8658, ...
2.306288
986
import struct from pymoku import _frame_instrument _OSC_SCREEN_WIDTH = 1024
[ 11748, 2878, 198, 198, 6738, 279, 4948, 11601, 1330, 4808, 14535, 62, 259, 43872, 198, 198, 62, 2640, 34, 62, 6173, 2200, 1677, 62, 54, 2389, 4221, 796, 28119, 628 ]
2.633333
30
import os from PIL import ImageGrab import time import win32api, win32con from PIL import ImageOps from numpy import * import pyautogui import random from ctypes import windll user32 = windll.user32 user32.SetProcessDPIAware() #some sort of DPS problem unrelated to project #this stops the images from be...
[ 11748, 28686, 220, 201, 198, 6738, 350, 4146, 1330, 7412, 48400, 201, 198, 11748, 640, 220, 201, 198, 11748, 1592, 2624, 15042, 11, 1592, 2624, 1102, 201, 198, 6738, 350, 4146, 1330, 7412, 41472, 201, 198, 6738, 299, 32152, 1330, 1635, ...
2.960526
228
import torch import torch.nn as nn import torch.nn.functional as F from torch.autograd import Variable def additive_up_sampling(input, input_skip): upsampled = F.interpolate(input,size=input_skip.size()[2:4], mode='bilinear', align_corners=True) upsampled_split = torch.chunk(upsampled, 2, dim=1) upsampled_...
[ 11748, 28034, 198, 11748, 28034, 13, 20471, 355, 299, 77, 198, 11748, 28034, 13, 20471, 13, 45124, 355, 376, 198, 6738, 28034, 13, 2306, 519, 6335, 1330, 35748, 198, 198, 4299, 38298, 62, 929, 62, 37687, 11347, 7, 15414, 11, 5128, 62,...
2.635294
170
import logging from logging.config import fileConfig import os, os.path import imageRecognition #Test Folder TestFolder = 'WorkingFolder/TestImages/' # Create the Working folders working_folders = ['logs','.metadata','WorkingFolder','./Workingfolder/OutputImages'] [os.makedirs(folder) for folder in working_folders...
[ 11748, 18931, 198, 6738, 18931, 13, 11250, 1330, 2393, 16934, 198, 198, 11748, 28686, 11, 28686, 13, 6978, 198, 198, 11748, 2939, 6690, 2360, 653, 628, 198, 2, 14402, 48107, 198, 14402, 41092, 796, 705, 28516, 41092, 14, 14402, 29398, 1...
2.562147
354
total = 0 media = 0 hmais = 0 no = '' contm = 0 from datetime import date atual = date.today().year for p in range(1,5): print('{} Pessoa'.format(p)) nome = str(input('Nome: ')).strip().capitalize() ns = int(input('O ano em que nasceu: ')) sexo = str(input('Sexo: ')).strip().upper() idade = atual -...
[ 23350, 796, 657, 198, 11431, 796, 657, 198, 21720, 271, 796, 657, 198, 3919, 796, 10148, 198, 3642, 76, 796, 657, 198, 6738, 4818, 8079, 1330, 3128, 198, 265, 723, 796, 3128, 13, 40838, 22446, 1941, 198, 198, 1640, 279, 287, 2837, 7...
2.241071
336
''' The CDP module contains all the tools required to simulate a collateralized debt position, such as increasing or decreasing its leverage (boost and repay), closing the vault to calculate its lifetime profit, adding collateral or drawing more debt. The position is represented as an object whose methods provide a...
[ 7061, 6, 198, 198, 464, 327, 6322, 8265, 4909, 477, 262, 4899, 2672, 284, 29308, 257, 27907, 1143, 5057, 2292, 11, 884, 355, 3649, 393, 24030, 220, 198, 896, 16094, 357, 39521, 290, 20152, 828, 9605, 262, 22563, 284, 15284, 663, 10869...
4.512605
119
# -*- coding: utf-8 -*- from functools import partial from nose.tools import assert_equal, assert_in, assert_less, assert_raises, \ with_setup, assert_true from nose.tools import assert_false from clustertools import ParameterSet, Result, Experiment from clustertools.state import RunningState, CompletedState, Abo...
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 6738, 1257, 310, 10141, 1330, 13027, 198, 198, 6738, 9686, 13, 31391, 1330, 6818, 62, 40496, 11, 6818, 62, 259, 11, 6818, 62, 1203, 11, 6818, 62, 430, 2696, 11, 3467, ...
3.659498
279
#!/usr/bin/env python # -*- coding: utf-8 -*- import os import codecs if __name__ == '__main__': words = read_file('F:\\cs') ''' test = codecs.open('F:\\760.xml', 'r',encoding='utf-8') words = test.read() test.close() ''' print ("splitting......") split=find_words(words) ci = code...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 220, 198, 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 198, 11748, 28686, 198, 11748, 40481, 82, 198, 198, 361, 11593, 3672, 834, 6624, 705, 834, 12417, 834, 10354, 198,...
2.096639
238
#Embedded file name: ACEStream\Plugin\EngineWx.pyo import os import sys from traceback import print_exc try: import wxversion wxversion.select('2.8') except: pass try: import wx except: print 'wx is not installed' os._exit(1) import ACEStream from ACEStream.GlobalConfig import globalConfig fro...
[ 2, 31567, 47238, 2393, 1438, 25, 40488, 12124, 59, 37233, 59, 13798, 54, 87, 13, 79, 8226, 198, 11748, 28686, 198, 11748, 25064, 198, 6738, 12854, 1891, 1330, 3601, 62, 41194, 198, 28311, 25, 198, 220, 220, 220, 1330, 266, 87, 9641, ...
2.994536
183
from tcp_statemachine import TCPStateMachine, Data import socket if __name__ == '__main__': main()
[ 6738, 48265, 62, 14269, 368, 20480, 1330, 23633, 9012, 37573, 11, 6060, 198, 11748, 17802, 628, 628, 198, 361, 11593, 3672, 834, 6624, 705, 834, 12417, 834, 10354, 198, 220, 220, 220, 1388, 3419, 198 ]
3.057143
35
# https://www.hackerrank.com/challenges/minimum-swaps-2 # Complete the minimumSwaps function below.
[ 2, 3740, 1378, 2503, 13, 31153, 8056, 962, 13, 785, 14, 36747, 34120, 14, 39504, 12, 2032, 1686, 12, 17, 198, 198, 2, 13248, 262, 5288, 10462, 1686, 2163, 2174, 13, 198 ]
3.15625
32
# Configuration file for the Sphinx documentation builder. # # This file only contains a selection of the most common options. For a full # list see the documentation: # https://www.sphinx-doc.org/en/master/usage/configuration.html # -- Path setup -------------------------------------------------------------- # If ex...
[ 2, 28373, 2393, 329, 262, 45368, 28413, 10314, 27098, 13, 198, 2, 198, 2, 770, 2393, 691, 4909, 257, 6356, 286, 262, 749, 2219, 3689, 13, 1114, 257, 1336, 198, 2, 1351, 766, 262, 10314, 25, 198, 2, 3740, 1378, 2503, 13, 82, 746, ...
3.320043
928
msg = "Hello World, i'm coming for you" print(msg)
[ 19662, 796, 366, 15496, 2159, 11, 1312, 1101, 2406, 329, 345, 1, 198, 4798, 7, 19662, 8, 198 ]
2.833333
18
from onegov.user.auth.clients.kerberos import KerberosClient from onegov.user.auth.clients.ldap import LDAPClient __all__ = ('KerberosClient', 'LDAPClient')
[ 6738, 530, 9567, 13, 7220, 13, 18439, 13, 565, 2334, 13, 6122, 527, 418, 1330, 17337, 527, 418, 11792, 198, 6738, 530, 9567, 13, 7220, 13, 18439, 13, 565, 2334, 13, 335, 499, 1330, 27178, 2969, 11792, 198, 198, 834, 439, 834, 796, ...
2.821429
56
import glob import os def images_in_dir(images_dir, file_types=('*.png', '*.jpg', '*.jpeg', '*.gif')): """ :param images_dir: directory that contains target images :param file_types: image files extend :return: full image file path list """ file_names = [] for ext in file_types: fi...
[ 11748, 15095, 198, 11748, 28686, 628, 198, 4299, 4263, 62, 259, 62, 15908, 7, 17566, 62, 15908, 11, 2393, 62, 19199, 28, 10786, 24620, 11134, 3256, 705, 24620, 9479, 3256, 705, 24620, 73, 22071, 3256, 705, 24620, 27908, 11537, 2599, 198...
2.52027
296
''' Created on Oct 8, 2013 @author: akittredge ''' import dateutil.parser import xmltodict from financial_fundamentals.exceptions import ValueNotInFilingDocument
[ 7061, 6, 198, 41972, 319, 2556, 807, 11, 2211, 198, 198, 31, 9800, 25, 47594, 715, 445, 469, 198, 7061, 6, 198, 198, 11748, 3128, 22602, 13, 48610, 198, 11748, 2124, 76, 2528, 375, 713, 198, 6738, 3176, 62, 10990, 3263, 874, 13, 1...
3.09434
53
# Licensed under the BSD 3-Clause License # Copyright (C) 2021 GeospaceLab (geospacelab) # Author: Lei Cai, Space Physics and Astronomy, University of Oulu __author__ = "Lei Cai" __copyright__ = "Copyright 2021, GeospaceLab" __license__ = "BSD-3-Clause License" __email__ = "lei.cai@oulu.fi" __docformat__ = "reStructur...
[ 2, 49962, 739, 262, 347, 10305, 513, 12, 2601, 682, 13789, 198, 2, 15069, 357, 34, 8, 33448, 2269, 24912, 17822, 357, 469, 2117, 330, 417, 397, 8, 198, 2, 6434, 25, 48579, 327, 1872, 11, 4687, 23123, 290, 25398, 9145, 11, 2059, 28...
2.524775
444
from infra.usuario_dao import \ listar as dao_listar, \ consultar as dao_consultar, \ cadastrar as dao_cadastrar, \ alterar as dao_alterar, \ remover as dao_remover,\ loadUserEmail as dao_loadUserEmail,\ validarLogin as dao_validarLogin,\ validaMatriculaUsuario as dao_validaMatriculaUsua...
[ 6738, 1167, 430, 13, 385, 84, 4982, 62, 67, 5488, 1330, 3467, 198, 220, 220, 220, 1351, 283, 355, 288, 5488, 62, 4868, 283, 11, 3467, 198, 220, 220, 220, 5725, 283, 355, 288, 5488, 62, 5936, 586, 283, 11, 3467, 198, 220, 220, 22...
2.202899
207
from rest_framework import permissions
[ 6738, 1334, 62, 30604, 1330, 21627, 198 ]
5.571429
7
import random import torch import numpy as np # # F1
[ 11748, 4738, 201, 198, 11748, 28034, 201, 198, 11748, 299, 32152, 355, 45941, 201, 198, 201, 198, 2, 220, 201, 198, 201, 198, 201, 198, 2, 376, 16, 201, 198 ]
2.166667
30
# Generated by Django 3.1.2 on 2021-05-21 06:47 from django.db import migrations, models
[ 2, 2980, 515, 416, 37770, 513, 13, 16, 13, 17, 319, 33448, 12, 2713, 12, 2481, 9130, 25, 2857, 198, 198, 6738, 42625, 14208, 13, 9945, 1330, 15720, 602, 11, 4981, 628 ]
2.84375
32
from ._load_hetrec import load_hetrec_to_df from ._df2ffm import DF2FFMConverter from ._utils import load_ffm, save_ffm, load_pickle, save_pickle
[ 6738, 47540, 2220, 62, 3202, 8344, 1330, 3440, 62, 3202, 8344, 62, 1462, 62, 7568, 198, 6738, 47540, 7568, 17, 487, 76, 1330, 36323, 17, 5777, 44, 3103, 332, 353, 198, 6738, 47540, 26791, 1330, 3440, 62, 487, 76, 11, 3613, 62, 487, ...
2.654545
55
# -*- coding: utf-8 -*- """ Created on Tue Dec 13 23:10:40 2016 @author: zhouyu """ #%% import pandas as pd import numpy as np import os import re import nltk from nltk.corpus import stopwords from bs4 import BeautifulSoup os.chdir('/Users/zhouyu/Documents/Zhou_Yu/DS/kaggle_challenge/text processing') #%% step1: impor...
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 37811, 198, 41972, 319, 30030, 4280, 1511, 2242, 25, 940, 25, 1821, 1584, 198, 198, 31, 9800, 25, 1976, 15710, 24767, 198, 37811, 198, 2, 16626, 198, 11748, 19798, 292, ...
2.391775
2,772
import unittest from stl.types import *
[ 11748, 555, 715, 395, 198, 6738, 336, 75, 13, 19199, 1330, 1635, 628 ]
3.153846
13
from ..common.exceptions import DoesNotExist
[ 6738, 11485, 11321, 13, 1069, 11755, 1330, 8314, 3673, 3109, 396, 628 ]
3.833333
12
import PySimpleGUI as sg """ PySimpleGUI The Complete Course Lesson 7 Multiple Independent Windows """ # Design pattern 2 - First window remains active layout = [[ sg.Text('Window 1'),], [sg.Input()], [sg.Text('', size=(20,1), key='-OUTPUT-')], [sg.Button('Launch 2'), sg.Butt...
[ 11748, 9485, 26437, 40156, 355, 264, 70, 198, 198, 37811, 198, 220, 220, 220, 9485, 26437, 40156, 383, 13248, 20537, 198, 220, 220, 220, 12892, 261, 767, 198, 220, 220, 220, 20401, 13362, 3964, 198, 37811, 198, 2, 8495, 3912, 362, 532...
2.28066
424
#!/usr/bin/python import os import sys import StringIO import argparse import json import zipfile from PIL import Image, ImageColor import xml.etree.cElementTree as ET # TODO: compose multiple layers if __name__ == '__main__': sys.exit(main(sys.argv[0], sys.argv[1:]))
[ 2, 48443, 14629, 14, 8800, 14, 29412, 198, 198, 11748, 28686, 198, 11748, 25064, 198, 11748, 10903, 9399, 198, 11748, 1822, 29572, 198, 11748, 33918, 198, 11748, 19974, 7753, 198, 6738, 350, 4146, 1330, 7412, 11, 7412, 10258, 198, 11748, ...
2.846939
98
from django.contrib import admin from calls.onsets.models import Recording admin.site.register(Recording, RecordingAdmin)
[ 6738, 42625, 14208, 13, 3642, 822, 1330, 13169, 198, 6738, 3848, 13, 684, 1039, 13, 27530, 1330, 43905, 198, 198, 28482, 13, 15654, 13, 30238, 7, 6690, 1284, 11, 43905, 46787, 8, 198 ]
3.727273
33
""" Your secrets and configurations items you must rename this file secrets.py and customize as needed """ # Wifi settings SSID = "mywifi" PASSWD = "thesecretpassword" # Network - comment to use DHCP (but slighly slower) IPADDR = "192.168.0.100" MASK = "255.255.255.0" GW = "192.168.0.1" DNS = "1.1.1.1" # MQTT s...
[ 37811, 198, 220, 220, 220, 3406, 13141, 290, 25412, 3709, 198, 220, 220, 220, 345, 1276, 36265, 428, 2393, 13141, 13, 9078, 290, 24184, 355, 2622, 198, 37811, 198, 2, 370, 22238, 6460, 198, 5432, 2389, 796, 366, 1820, 86, 22238, 1, ...
2.348837
215
# 1 from random import randint import os import time # marquee() # 2 # print(genrentae_code()) # print(genrentae_code(6)) # 3 # print(get_suffix("a.doc")) # print(get_suffix("a.tmp.txt")) # print(get_suffix("abac")) # 4 # print(max2([1,3,5,7])) # 5 # print(which_day(2019, 5, 25)) # 6 pascal_tria...
[ 2, 352, 198, 198, 6738, 4738, 1330, 43720, 600, 198, 11748, 28686, 198, 11748, 640, 628, 198, 198, 2, 50089, 3419, 628, 198, 2, 362, 628, 198, 2, 3601, 7, 5235, 1156, 3609, 62, 8189, 28955, 198, 2, 3601, 7, 5235, 1156, 3609, 62, ...
2.208054
149
# -*- coding: utf-8 -*- def get_client_ip_address(request): """ Get the client IP Address. """ return request.META['REMOTE_ADDR']
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 198, 4299, 651, 62, 16366, 62, 541, 62, 21975, 7, 25927, 2599, 198, 220, 220, 220, 37227, 198, 220, 220, 220, 3497, 262, 5456, 6101, 17917, 13, 198, 220, 220, 220, 3...
2.333333
63
# DExTer : Debugging Experience Tester # ~~~~~~ ~ ~~ ~ ~~ # # Copyright (c) 2019 by SN Systems Ltd., Sony Interactive Entertainment Inc. # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), to deal # ...
[ 2, 360, 3109, 15156, 1058, 31687, 2667, 16386, 309, 7834, 198, 2, 220, 8728, 4907, 220, 220, 5299, 220, 220, 220, 220, 220, 220, 220, 220, 220, 4907, 220, 220, 220, 220, 220, 220, 220, 220, 5299, 220, 220, 220, 4907, 198, 2, 198, ...
3.643258
356
import inspect import pytest from bottery.platform import BaseEngine def test_baseengine_platform_name_not_implemented(): """Check if attributes from the public API raise NotImplementedError""" engine = BaseEngine() with pytest.raises(NotImplementedError): getattr(engine, 'platform') def t...
[ 11748, 10104, 198, 198, 11748, 12972, 9288, 198, 198, 6738, 10214, 11471, 13, 24254, 1330, 7308, 13798, 628, 198, 4299, 1332, 62, 8692, 18392, 62, 24254, 62, 3672, 62, 1662, 62, 320, 1154, 12061, 33529, 198, 220, 220, 220, 37227, 9787, ...
3.080808
297
""" Module handling the potential class. """ from copy import deepcopy from fmm3dpy import hfmm3d, lfmm3d from numpy import array, ndarray, pi, sqrt, tanh from warnings import warn from ..utilities.exceptions import AlgorithmWarning from ..utilities.fdints import fdm1h, invfd1h from .force_pm import force_optimized_gr...
[ 37811, 198, 26796, 9041, 262, 2785, 1398, 13, 198, 37811, 198, 6738, 4866, 1330, 2769, 30073, 198, 6738, 277, 3020, 18, 67, 9078, 1330, 289, 69, 3020, 18, 67, 11, 300, 69, 3020, 18, 67, 198, 6738, 299, 32152, 1330, 7177, 11, 299, ...
3.131579
152
from fastapi import APIRouter router = APIRouter()
[ 6738, 3049, 15042, 1330, 3486, 4663, 39605, 628, 198, 472, 353, 796, 3486, 4663, 39605, 3419, 628 ]
3.176471
17
import re import pytest from lupin.errors import InvalidMatch from lupin.validators import Match
[ 11748, 302, 198, 198, 11748, 12972, 9288, 198, 198, 6738, 300, 929, 259, 13, 48277, 1330, 17665, 23850, 198, 6738, 300, 929, 259, 13, 12102, 2024, 1330, 13225, 628, 198 ]
3.366667
30
#!/usr/bin/env python spacing = 0.1 # m lines = [] for c in range(0, 8): rs = [range(11), reversed(range(11))][c % 2] for r in rs: lines.append(' {"point": [%.2f, %.2f, %.2f]}' % (c*spacing, 0, (r)*spacing)) print '[\n' + ',\n'.join(lines) + '\n]'
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 198, 198, 2777, 4092, 796, 657, 13, 16, 220, 1303, 285, 198, 6615, 796, 17635, 198, 1640, 269, 287, 2837, 7, 15, 11, 807, 2599, 198, 220, 220, 220, 44608, 796, 685, 9521, 7, 1157, 828, ...
1.876623
154
'''There is an objective test result such as OOXXOXXOOO. An O means a correct answer of a problem and an X means a wrong answer. The score of each problem of this test is calculated by itself and its just previous consecutive Os only when the answer is correct. For example, the score of the 10th problem is 3 that is o...
[ 7061, 6, 1858, 318, 281, 9432, 1332, 1255, 884, 355, 440, 46, 8051, 46, 8051, 6684, 46, 13, 198, 2025, 440, 1724, 257, 3376, 3280, 286, 257, 1917, 290, 281, 1395, 1724, 257, 2642, 3280, 13, 198, 464, 4776, 286, 1123, 1917, 286, 42...
3.328767
365
# -*- coding: utf-8 -*- from app import celery, app # from common.extensions import celery # from flask import current_app # # # @celery.task() # def add_together(a, b): # current_app.logger.info('hello world') # return a + b
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 6738, 598, 1330, 18725, 1924, 11, 598, 628, 198, 2, 422, 2219, 13, 2302, 5736, 1330, 18725, 1924, 198, 2, 422, 42903, 1330, 1459, 62, 1324, 198, 2, 198, 2, 198, 2, ...
2.565217
92
# -*- coding: utf-8 -*- """3_Linear_regression_on_pixels.ipynb Automatically generated by Colaboratory. Original file is located at https://colab.research.google.com/drive/1nhECM9OxwIw8BjEqsQcSUwojX2KYrh1I """ from google.colab import drive #to retrieve data from drive drive.mount('/content/drive/') cd 'driv...
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 37811, 18, 62, 14993, 451, 62, 2301, 2234, 62, 261, 62, 79, 14810, 13, 541, 2047, 65, 198, 198, 38062, 4142, 7560, 416, 1623, 4820, 2870, 13, 198, 198, 20556, 2393, ...
2.706098
4,100
import functools import ci.util ctx = ci.util.ctx()
[ 11748, 1257, 310, 10141, 198, 198, 11748, 269, 72, 13, 22602, 198, 198, 49464, 796, 269, 72, 13, 22602, 13, 49464, 3419, 628 ]
2.391304
23
""" Create 10km x 10km grid using the country shapefile. Written by Ed Oughton. Winter 2020 """ import argparse import os import configparser import geopandas as gpd from shapely.geometry import Polygon, mapping import pandas as pd import numpy as np import rasterio from rasterstats import zonal_stats BASE_DIR = '....
[ 37811, 198, 16447, 838, 13276, 2124, 838, 13276, 10706, 1262, 262, 1499, 5485, 7753, 13, 198, 198, 25354, 416, 1717, 440, 6724, 1122, 13, 198, 198, 35376, 12131, 198, 37811, 198, 198, 11748, 1822, 29572, 198, 11748, 28686, 198, 11748, 4...
2.511747
979
#!/usr/bin/env python import unittest test_modules = [ 'test.test_config', 'test.test_secrets', 'test.test_spotify', 'test.test_youtube' ] if __name__ == "__main__": suite = unittest.TestSuite() for tm in test_modules: suite.addTest(unittest.defaultTestLoader.loadTestsFromName(tm)) ...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 198, 198, 11748, 555, 715, 395, 198, 198, 9288, 62, 18170, 796, 685, 198, 220, 220, 220, 705, 9288, 13, 9288, 62, 11250, 3256, 198, 220, 220, 220, 705, 9288, 13, 9288, 62, 2363, 8004, 3...
2.346154
156
import os import tempfile from time import time import numpy as np import sounddevice as sd from PySide2.QtWidgets import QApplication, QFileDialog from scipy.io.wavfile import write # Config t = 3 # s fs = 44100 if __name__ == '__main__': main()
[ 11748, 28686, 198, 11748, 20218, 7753, 198, 6738, 640, 1330, 640, 198, 198, 11748, 299, 32152, 355, 45941, 198, 11748, 2128, 25202, 355, 45647, 198, 6738, 9485, 24819, 17, 13, 48, 83, 54, 312, 11407, 1330, 1195, 23416, 11, 1195, 8979, ...
2.866667
90
#!/usr/bin/python import sys sys.path.append('./') import unittest import copy import numpy as np from hybmc.mathutils.Helpers import BlackImpliedVol, BlackVega from hybmc.termstructures.YieldCurve import YieldCurve from hybmc.models.AssetModel import AssetModel from hybmc.models.HybridModel import HybridModel from...
[ 2, 48443, 14629, 14, 8800, 14, 29412, 198, 198, 11748, 25064, 198, 17597, 13, 6978, 13, 33295, 7, 4458, 14, 11537, 198, 198, 11748, 555, 715, 395, 198, 11748, 4866, 198, 198, 11748, 299, 32152, 355, 45941, 198, 198, 6738, 2537, 20475,...
2.969565
230
from .distributed import * from .model import * from .sentiment_classifier import * from .transformer import * from .transformer_utils import *
[ 6738, 764, 17080, 6169, 1330, 1635, 198, 6738, 764, 19849, 1330, 1635, 198, 6738, 764, 34086, 3681, 62, 4871, 7483, 1330, 1635, 198, 6738, 764, 7645, 16354, 1330, 1635, 198, 6738, 764, 7645, 16354, 62, 26791, 1330, 1635 ]
3.763158
38
import socket
[ 11748, 17802, 628 ]
5
3
#!/usr/bin/env python ''' Copyright (c) 2019-2020, Juan Miguel Jimeno All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: * Redistributions of source code must retain the above copyright notice, thi...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 198, 7061, 6, 198, 15269, 357, 66, 8, 13130, 12, 42334, 11, 16852, 29825, 5395, 23397, 198, 3237, 2489, 10395, 13, 198, 7738, 396, 3890, 290, 779, 287, 2723, 290, 13934, 5107, 11, 351, 39...
3.38061
557
# Copyright 2014 Isotoma Limited # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing...
[ 2, 15069, 1946, 1148, 313, 6086, 15302, 198, 2, 198, 2, 49962, 739, 262, 24843, 13789, 11, 10628, 362, 13, 15, 357, 1169, 366, 34156, 15341, 198, 2, 345, 743, 407, 779, 428, 2393, 2845, 287, 11846, 351, 262, 13789, 13, 198, 2, 921...
4.014634
205
# from type.models import User, Requirement, Involvement, Competition, Text
[ 198, 198, 2, 422, 2099, 13, 27530, 1330, 11787, 11, 9394, 24615, 11, 10001, 6442, 434, 11, 27348, 11, 8255 ]
3.85
20
""" entradas cantidadchelinesaustriacos-->c-->float cantidaddragmasgriegos-->dg-->float cantidadpesetas-->p-->float salidas chelines_a_pesetas-->c_p-->float dragmas_a_francosfrancese-->dg_ff-->float pesetas_a_dolares-->p_d-->float pesetas_a_lirasitalianas-->p_li-->float """ #entradas c=float(input("Ingrese la cantida...
[ 37811, 198, 298, 6335, 292, 198, 66, 415, 32482, 2395, 6615, 64, 436, 380, 330, 418, 46904, 66, 46904, 22468, 198, 66, 415, 312, 2860, 22562, 5356, 70, 48429, 418, 46904, 67, 70, 46904, 22468, 198, 66, 415, 32482, 12272, 316, 292, 4...
2.215084
358