content
stringlengths
1
1.05M
input_ids
listlengths
1
883k
ratio_char_token
float64
1
22.9
token_count
int64
1
883k
import numpy as np import random letter_C = np.array([ [1, 1, 1, 1, 1], [1, 0, 0, 0, 0], [1, 0, 0, 0, 0], [1, 0, 0, 0, 0], [1, 1, 1, 1, 1], ]) noisy_C = np.array([ [1, 1, 1, 1, 1], [0, 1, 0, 0, 1], [1, 0, 0, 0, 0], [1, 0, 0, 1, 0], [1, 0, 1, 1, 1], ]) letter_I = np.array([ ...
[ 11748, 299, 32152, 355, 45941, 198, 11748, 4738, 198, 198, 9291, 62, 34, 796, 45941, 13, 18747, 26933, 198, 220, 220, 220, 685, 16, 11, 352, 11, 352, 11, 352, 11, 352, 4357, 198, 220, 220, 220, 685, 16, 11, 657, 11, 657, 11, 657...
1.56239
569
from infoclientLib import InfoClient ic = InfoClient('localhost', 15002, 'localhost', 15003) ic.add('roi-weightedave', 'active') ic.start()
[ 198, 6738, 1167, 38679, 1153, 25835, 1330, 14151, 11792, 198, 291, 796, 14151, 11792, 10786, 36750, 3256, 20007, 17, 11, 705, 36750, 3256, 1315, 11245, 8, 198, 291, 13, 2860, 10786, 305, 72, 12, 6551, 276, 1015, 3256, 705, 5275, 11537, ...
3.021277
47
# (c) Copyright IBM Corporation 2020. # LICENSE: Apache License 2.0 (Apache-2.0) # http://www.apache.org/licenses/LICENSE-2.0 import abc import logging import time from collections import defaultdict from typing import List import numpy as np from dataclasses import dataclass logging.basicConfig(level=logging.INFO,...
[ 2, 357, 66, 8, 15069, 19764, 10501, 12131, 13, 198, 198, 2, 38559, 24290, 25, 24843, 13789, 362, 13, 15, 357, 25189, 4891, 12, 17, 13, 15, 8, 198, 2, 2638, 1378, 2503, 13, 43073, 13, 2398, 14, 677, 4541, 14, 43, 2149, 24290, 12,...
2.955357
448
try: from tango import DeviceProxy, DevError except ModuleNotFoundError: pass
[ 28311, 25, 198, 220, 220, 220, 422, 13875, 78, 1330, 16232, 44148, 11, 6245, 12331, 198, 16341, 19937, 3673, 21077, 12331, 25, 198, 220, 220, 220, 1208, 628, 198 ]
3.034483
29
import json from django.contrib.auth.models import User from django.http import JsonResponse from django.shortcuts import redirect, render from .models import Game2048 # Create your views here. # test_user # 8!S#5RP!WVMACg
[ 11748, 33918, 198, 198, 6738, 42625, 14208, 13, 3642, 822, 13, 18439, 13, 27530, 1330, 11787, 198, 6738, 42625, 14208, 13, 4023, 1330, 449, 1559, 31077, 198, 6738, 42625, 14208, 13, 19509, 23779, 1330, 18941, 11, 8543, 198, 198, 6738, 7...
3.066667
75
from distdeepq import models # noqa from distdeepq.build_graph import build_act, build_train # noqa from distdeepq.simple import learn, load, make_session # noqa from distdeepq.replay_buffer import ReplayBuffer, PrioritizedReplayBuffer # noqa from distdeepq.static import * from distdeepq.plots import PlotMachine
[ 6738, 1233, 22089, 80, 1330, 4981, 220, 1303, 645, 20402, 198, 6738, 1233, 22089, 80, 13, 11249, 62, 34960, 1330, 1382, 62, 529, 11, 1382, 62, 27432, 220, 1303, 645, 20402, 198, 198, 6738, 1233, 22089, 80, 13, 36439, 1330, 2193, 11, ...
3.357895
95
# Authentication & API Keys # Many APIs require an API key. Just as a real-world key allows you to access something, an API key grants you access to a particular API. Moreover, an API key identifies you to the API, which helps the API provider keep track of how their service is used and prevent unauthorized or maliciou...
[ 2, 48191, 1222, 7824, 26363, 198, 2, 4650, 23113, 2421, 281, 7824, 1994, 13, 2329, 355, 257, 1103, 12, 6894, 1994, 3578, 345, 284, 1895, 1223, 11, 281, 7824, 1994, 11455, 345, 1895, 284, 257, 1948, 7824, 13, 10968, 11, 281, 7824, 19...
4.389189
185
from .plucker import pluck, Path from .exceptions import PluckError __all__ = ["pluck", "Path", "PluckError"]
[ 6738, 764, 489, 12603, 1330, 458, 1347, 11, 10644, 198, 6738, 764, 1069, 11755, 1330, 1345, 1347, 12331, 198, 198, 834, 439, 834, 796, 14631, 489, 1347, 1600, 366, 15235, 1600, 366, 3646, 1347, 12331, 8973, 198 ]
3
37
"""Plot a scatter or hexbin of sampled parameters.""" import warnings import numpy as np from ..data import convert_to_dataset, convert_to_inference_data from .plot_utils import xarray_to_ndarray, get_coords, get_plotting_function from ..utils import _var_names def plot_pair( data, group="posterior", var...
[ 37811, 43328, 257, 41058, 393, 17910, 8800, 286, 35846, 10007, 526, 15931, 198, 11748, 14601, 198, 11748, 299, 32152, 355, 45941, 198, 198, 6738, 11485, 7890, 1330, 10385, 62, 1462, 62, 19608, 292, 316, 11, 10385, 62, 1462, 62, 259, 428...
2.336799
3,174
from django.forms import ModelForm from .models import Cuestionario, Categoria from preguntas.models import Pregunta, Respuesta
[ 6738, 42625, 14208, 13, 23914, 1330, 9104, 8479, 198, 6738, 764, 27530, 1330, 14496, 395, 295, 4982, 11, 327, 2397, 7661, 198, 6738, 662, 70, 2797, 292, 13, 27530, 1330, 350, 2301, 44424, 11, 10328, 84, 18059, 628, 198 ]
3.333333
39
from django.views.generic import View from django.http import HttpResponse import os, json, datetime from django.shortcuts import redirect from django.shortcuts import render_to_response from vitcloud.models import File from django.views.decorators.csrf import csrf_exempt from listingapikeys import findResult import sy...
[ 6738, 42625, 14208, 13, 33571, 13, 41357, 1330, 3582, 198, 6738, 42625, 14208, 13, 4023, 1330, 367, 29281, 31077, 198, 11748, 28686, 11, 33918, 11, 4818, 8079, 198, 6738, 42625, 14208, 13, 19509, 23779, 1330, 18941, 198, 6738, 42625, 1420...
2.876289
194
from abc import ABC import discord
[ 6738, 450, 66, 1330, 9738, 198, 11748, 36446, 628 ]
4
9
"""change admin to boolean Revision ID: e86dd3bc539c Revises: 6f63ef516cdc Create Date: 2020-11-11 22:32:00.707936 """ from alembic import op import sqlalchemy as sa # revision identifiers, used by Alembic. revision = 'e86dd3bc539c' down_revision = '6f63ef516cdc' branch_labels = None depends_on = None
[ 37811, 3803, 13169, 284, 25131, 198, 198, 18009, 1166, 4522, 25, 304, 4521, 1860, 18, 15630, 20, 2670, 66, 198, 18009, 2696, 25, 718, 69, 5066, 891, 47493, 10210, 66, 198, 16447, 7536, 25, 12131, 12, 1157, 12, 1157, 2534, 25, 2624, ...
2.512195
123
# Generated by Django 4.0.3 on 2022-03-16 03:09 from django.db import migrations
[ 2, 2980, 515, 416, 37770, 604, 13, 15, 13, 18, 319, 33160, 12, 3070, 12, 1433, 7643, 25, 2931, 198, 198, 6738, 42625, 14208, 13, 9945, 1330, 15720, 602, 628 ]
2.766667
30
""" Abstract training class """ from abc import ABC as AbstractBaseClass from abc import abstractmethod
[ 37811, 198, 23839, 3047, 1398, 198, 37811, 198, 6738, 450, 66, 1330, 9738, 355, 27741, 14881, 9487, 198, 6738, 450, 66, 1330, 12531, 24396, 628 ]
4.2
25
# -*- coding: utf-8 -*- # from mpmath import mp from .helpers import untangle2
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 2, 198, 6738, 285, 4426, 776, 1330, 29034, 198, 198, 6738, 764, 16794, 364, 1330, 1418, 9248, 17, 628 ]
2.454545
33
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.contrib import admin from django.contrib.auth.admin import UserAdmin from django.contrib.auth.models import User from rest_framework.authtoken.models import Token from account.models import Profile admin.site.site_header = 'invoce' admin.s...
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 6738, 11593, 37443, 834, 1330, 28000, 1098, 62, 17201, 874, 198, 198, 6738, 42625, 14208, 13, 3642, 822, 1330, 13169, 198, 6738, 42625, 14208, 13, 3642, 822, 13, 18439, ...
3.137931
145
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Created on Thu Jun 18 08:40:11 2020 @author: krishan """ for val in (0, "hello", 50.0, 13): print(f"Testing {val}:", funny_division3(val))
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 18, 198, 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 37811, 198, 41972, 319, 26223, 7653, 1248, 8487, 25, 1821, 25, 1157, 12131, 198, 198, 31, 9800, 25, 479, 37518, 2...
2.142857
98
import os from datetime import datetime import torch from dataclasses import dataclass
[ 11748, 28686, 198, 6738, 4818, 8079, 1330, 4818, 8079, 198, 11748, 28034, 198, 198, 6738, 4818, 330, 28958, 1330, 4818, 330, 31172, 628 ]
3.869565
23
# Copyright (c) 2014 OpenStack Foundation # # 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 ...
[ 2, 15069, 357, 66, 8, 1946, 4946, 25896, 5693, 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.300784
1,659
""" Eddsa Ed25519 key handling From https://github.com/n-y-z-o/nyzoVerifier/blob/b73bc25ba3094abe3470ec070ce306885ad9a18f/src/main/java/co/nyzo/verifier/KeyUtil.java plus https://github.com/n-y-z-o/nyzoVerifier/blob/17509f03a7f530c0431ce85377db9b35688c078e/src/main/java/co/nyzo/verifier/util/SignatureUtil.java """ # ...
[ 37811, 198, 36, 1860, 11400, 1717, 13381, 1129, 1994, 9041, 198, 4863, 198, 5450, 1378, 12567, 13, 785, 14, 77, 12, 88, 12, 89, 12, 78, 14, 3281, 10872, 13414, 7483, 14, 2436, 672, 14, 65, 4790, 15630, 1495, 7012, 1270, 5824, 11231,...
2.313492
252
from argparse import ArgumentParser import os import numpy as np from joblib import dump from mldftdat.workflow_utils import SAVE_ROOT from mldftdat.models.gp import * from mldftdat.data import load_descriptors, filter_descriptors import yaml if __name__ == '__main__': main()
[ 6738, 1822, 29572, 1330, 45751, 46677, 198, 11748, 28686, 198, 11748, 299, 32152, 355, 45941, 198, 6738, 1693, 8019, 1330, 10285, 198, 6738, 285, 335, 701, 19608, 13, 1818, 11125, 62, 26791, 1330, 14719, 6089, 62, 13252, 2394, 198, 6738, ...
3.032258
93
import api import bson from api.annotations import ( api_wrapper, log_action, require_admin, require_login, require_teacher ) from api.common import WebError, WebSuccess from flask import ( Blueprint, Flask, render_template, request, send_from_directory, session ) blueprint ...
[ 11748, 40391, 198, 11748, 275, 1559, 198, 6738, 40391, 13, 34574, 602, 1330, 357, 198, 220, 220, 220, 40391, 62, 48553, 11, 198, 220, 220, 220, 2604, 62, 2673, 11, 198, 220, 220, 220, 2421, 62, 28482, 11, 198, 220, 220, 220, 2421, ...
2.717557
131
#!/usr/bin/python import json import argparse from influxdb import InfluxDBClient parser = argparse.ArgumentParser(description = 'pull data for softlayer queue' ) parser.add_argument( 'measurement' , help = 'measurement001' ) args = parser.parse_args() client_influxdb = InfluxDBClient('50.23.117.76', '8086', 'crick...
[ 2, 48443, 14629, 14, 8800, 14, 29412, 198, 198, 11748, 33918, 198, 11748, 1822, 29572, 198, 6738, 25065, 9945, 1330, 4806, 22564, 11012, 11792, 198, 198, 48610, 796, 1822, 29572, 13, 28100, 1713, 46677, 7, 11213, 796, 705, 31216, 1366, ...
2.594982
279
# Copyright 2021 Pants project contributors (see CONTRIBUTORS.md). # Licensed under the Apache License, Version 2.0 (see LICENSE). from __future__ import annotations from typing import cast from pants.core.util_rules.config_files import ConfigFilesRequest from pants.core.util_rules.external_tool import TemplatedExte...
[ 2, 15069, 33448, 41689, 1628, 20420, 357, 3826, 27342, 9865, 3843, 20673, 13, 9132, 737, 198, 2, 49962, 739, 262, 24843, 13789, 11, 10628, 362, 13, 15, 357, 3826, 38559, 24290, 737, 198, 198, 6738, 11593, 37443, 834, 1330, 37647, 198, ...
3.91
100
""" Handles functionality related to data storege. """ import sys, os, glob, re, gzip, json from biorun import const, utils, objects, ncbi from biorun.models import jsonrec import biorun.libs.placlib as plac # Module level logger. logger = utils.logger # A nicer error message on incorrect installation. try: from ...
[ 37811, 198, 12885, 829, 11244, 3519, 284, 1366, 3650, 469, 13, 198, 37811, 198, 11748, 25064, 11, 28686, 11, 15095, 11, 302, 11, 308, 13344, 11, 33918, 198, 6738, 275, 1504, 403, 1330, 1500, 11, 3384, 4487, 11, 5563, 11, 299, 66, 84...
2.242297
2,856
import numpy as np from random import randint from PyQt5.QtGui import QImage from PyQt5.QtCore import QPointF
[ 11748, 299, 32152, 355, 45941, 198, 6738, 4738, 1330, 43720, 600, 198, 198, 6738, 9485, 48, 83, 20, 13, 48, 83, 8205, 72, 1330, 1195, 5159, 198, 6738, 9485, 48, 83, 20, 13, 48, 83, 14055, 1330, 1195, 12727, 37, 198 ]
2.707317
41
# coding: utf-8 """ Trend Micro Deep Security API Copyright 2018 - 2020 Trend Micro Incorporated.<br/>Get protected, stay secured, and keep informed with Trend Micro Deep Security's new RESTful API. Access system data and manage security configurations to automate your security workflows and integrate De...
[ 2, 19617, 25, 3384, 69, 12, 23, 201, 198, 201, 198, 37811, 201, 198, 220, 220, 220, 22836, 4527, 10766, 4765, 7824, 201, 198, 201, 198, 220, 220, 220, 15069, 2864, 532, 12131, 22836, 4527, 3457, 40132, 29847, 1671, 15913, 3855, 6861, ...
2.662736
424
from __future__ import print_function # Python 2/3 compatibility from gremlin_python import statics from gremlin_python.structure.graph import Graph from gremlin_python.process.graph_traversal import __ from gremlin_python.process.strategies import * from gremlin_python.driver.driver_remote_connection import DriverR...
[ 6738, 11593, 37443, 834, 220, 1330, 3601, 62, 8818, 220, 1303, 11361, 362, 14, 18, 17764, 198, 198, 6738, 308, 17244, 62, 29412, 1330, 1185, 873, 198, 6738, 308, 17244, 62, 29412, 13, 301, 5620, 13, 34960, 1330, 29681, 198, 6738, 308,...
3.002309
1,299
import os from os.path import join, isdir from pathlib import Path from collections import defaultdict from tqdm import tqdm import nibabel as nib import numpy as np import json from .resample import resample_patient from .custom_augmentations import resize_data_and_seg, crop_to_bbox def standardize_per_image(image):...
[ 11748, 28686, 198, 6738, 28686, 13, 6978, 1330, 4654, 11, 318, 15908, 198, 6738, 3108, 8019, 1330, 10644, 198, 6738, 17268, 1330, 4277, 11600, 198, 6738, 256, 80, 36020, 1330, 256, 80, 36020, 198, 11748, 33272, 9608, 355, 33272, 198, 11...
2.877551
294
import sys import setuptools from setuptools.command.test import test as TestCommand setuptools.setup( name="calm.dsl", version="0.9.0-alpha", author="Nutanix", author_email="nucalm@nutanix.com", description="Calm DSL for blueprints", long_description=read_file("README.md"), long_descrip...
[ 11748, 25064, 198, 11748, 900, 37623, 10141, 198, 6738, 900, 37623, 10141, 13, 21812, 13, 9288, 1330, 1332, 355, 6208, 21575, 628, 628, 198, 2617, 37623, 10141, 13, 40406, 7, 198, 220, 220, 220, 1438, 2625, 9948, 76, 13, 67, 6649, 160...
2.631579
418
# -*- coding:utf-8 -*- # Author: hankcs # Date: 2019-12-28 21:12 from hanlp_common.constant import HANLP_URL SIGHAN2005_PKU_CONVSEG = HANLP_URL + 'tok/sighan2005-pku-convseg_20200110_153722.zip' 'Conv model (:cite:`wang-xu-2017-convolutional`) trained on sighan2005 pku dataset.' SIGHAN2005_MSR_CONVSEG = HANLP_URL + 't...
[ 2, 532, 9, 12, 19617, 25, 40477, 12, 23, 532, 9, 12, 198, 2, 6434, 25, 289, 962, 6359, 198, 2, 7536, 25, 13130, 12, 1065, 12, 2078, 2310, 25, 1065, 198, 6738, 289, 272, 34431, 62, 11321, 13, 9979, 415, 1330, 367, 1565, 19930, ...
2.299544
878
#!/usr/bin/env python # Copyright 2015 The Swarming Authors. All rights reserved. # Use of this source code is governed under the Apache License, Version 2.0 that # can be found in the LICENSE file. import logging import os import subprocess import sys import tempfile import shutil import unittest import re THIS_FILE...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 198, 2, 15069, 1853, 383, 2451, 18052, 46665, 13, 1439, 2489, 10395, 13, 198, 2, 5765, 286, 428, 2723, 2438, 318, 21825, 739, 262, 24843, 13789, 11, 10628, 362, 13, 15, 326, 198, 2, 460, ...
2.357143
378
from featur_selection import df,race,occupation,workclass,country import pandas as pd from sklearn.preprocessing import StandardScaler from sklearn.model_selection import cross_val_score,KFold from sklearn.linear_model import LogisticRegression from imblearn.pipeline import Pipeline from sklearn.compose import ColumnT...
[ 6738, 220, 2218, 333, 62, 49283, 1330, 47764, 11, 16740, 11, 19596, 341, 11, 1818, 4871, 11, 19315, 198, 11748, 19798, 292, 355, 279, 67, 198, 6738, 1341, 35720, 13, 3866, 36948, 1330, 8997, 3351, 36213, 198, 6738, 1341, 35720, 13, 19...
2.621212
792
from __future__ import print_function
[ 6738, 11593, 37443, 834, 1330, 3601, 62, 8818, 628 ]
4.333333
9
#!/usr/bin/env python3 import pytest import fileinput from os.path import splitext, abspath F_NAME = 'd8' #implement day8 using bits def find_ones(d): '''count number of ones in binary number''' ones = 0 while d > 0: ones += d & 1 d >>= 1 return ones # Assign each segment a 'wire'. lut...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 18, 198, 11748, 12972, 9288, 198, 11748, 2393, 15414, 198, 6738, 28686, 13, 6978, 1330, 4328, 578, 742, 11, 2352, 6978, 198, 37, 62, 20608, 796, 705, 67, 23, 6, 198, 2, 320, 26908, 1110, ...
2.25
328
""" ******************************** * Created by mohammed-alaa * ******************************** Spatial Dataloader implementing sequence api from keras (defines how to load a single item) this loads batches of images for each iteration it returns [batch_size, height, width ,3] ndarrays """ import copy import ran...
[ 37811, 198, 17174, 198, 9, 220, 220, 15622, 416, 285, 1219, 10573, 12, 6081, 64, 220, 220, 1635, 198, 17174, 198, 4561, 34961, 360, 10254, 1170, 263, 15427, 8379, 40391, 422, 41927, 292, 357, 4299, 1127, 703, 284, 3440, 257, 2060, 237...
2.552055
730
# -*- coding:utf-8 -*- """ @version: v1.0 @author: xuelong.liu @license: Apache Licence @contact: xuelong.liu@yulore.com @software: PyCharm @file: base_request_param.py @time: 12/21/16 6:48 PM """
[ 2, 532, 9, 12, 19617, 25, 40477, 12, 23, 532, 9, 12, 198, 198, 37811, 198, 31, 9641, 25, 410, 16, 13, 15, 198, 31, 9800, 25, 2124, 2731, 506, 13, 4528, 84, 198, 31, 43085, 25, 24843, 10483, 594, 220, 198, 31, 32057, 25, 2124, ...
2.197802
91
# stdlib imports import copy # vendor imports import click # Execute cli function on main if __name__ == "__main__": main()
[ 2, 14367, 8019, 17944, 198, 11748, 4866, 198, 198, 2, 18371, 17944, 198, 11748, 3904, 628, 198, 198, 2, 8393, 1133, 537, 72, 2163, 319, 1388, 198, 361, 11593, 3672, 834, 6624, 366, 834, 12417, 834, 1298, 198, 220, 220, 220, 1388, 34...
3
44
import os dirs = [ './PANDORA_files', './PANDORA_files/data', './PANDORA_files/data/csv_pkl_files', './PANDORA_files/data/csv_pkl_files/mhcseqs', './PANDORA_files/data/PDBs', './PANDORA_files/data/PDBs/pMHCI', './PANDORA_files/data/PDBs/pMHCII', './PANDORA_files/data/PDBs/Bad', './PANDO...
[ 11748, 28686, 198, 198, 15908, 82, 796, 685, 198, 220, 220, 220, 220, 220, 220, 220, 705, 19571, 47, 6981, 1581, 32, 62, 16624, 3256, 705, 19571, 47, 6981, 1581, 32, 62, 16624, 14, 7890, 3256, 705, 19571, 47, 6981, 1581, 32, 62, 1...
1.975904
498
# app/auth/views.py import os from flask import flash, redirect, render_template, url_for, request from flask_login import login_required, login_user, logout_user, current_user from . import auth from .forms import (LoginForm, RegistrationForm, RequestResetForm, ResetPasswordForm) from .. import db,...
[ 2, 598, 14, 18439, 14, 33571, 13, 9078, 198, 11748, 28686, 198, 6738, 42903, 1330, 7644, 11, 18941, 11, 8543, 62, 28243, 11, 19016, 62, 1640, 11, 2581, 198, 6738, 42903, 62, 38235, 1330, 17594, 62, 35827, 11, 17594, 62, 7220, 11, 26...
2.581769
373
# Copyright 2015 Mirantis, Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or ...
[ 2, 220, 220, 220, 15069, 1853, 7381, 20836, 11, 3457, 13, 198, 2, 198, 2, 220, 220, 220, 49962, 739, 262, 24843, 13789, 11, 10628, 362, 13, 15, 357, 1169, 366, 34156, 15341, 345, 743, 198, 2, 220, 220, 220, 407, 779, 428, 2393, ...
2.959119
318
import pickle import warnings import collections.abc from math import isnan from statistics import mean, median, stdev, mode from abc import abstractmethod, ABC from numbers import Number from collections import defaultdict from itertools import islice, chain from typing import Hashable, Optional, Sequence, Union, Ite...
[ 11748, 2298, 293, 198, 11748, 14601, 198, 11748, 17268, 13, 39305, 198, 198, 6738, 10688, 1330, 2125, 272, 198, 6738, 7869, 1330, 1612, 11, 14288, 11, 336, 7959, 11, 4235, 198, 6738, 450, 66, 1330, 12531, 24396, 11, 9738, 198, 6738, 3...
3.529412
221
# # Copyright (c) 2019, NVIDIA CORPORATION. # # 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 ...
[ 2, 198, 2, 15069, 357, 66, 8, 13130, 11, 15127, 23929, 44680, 6234, 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.185185
270
import re import difflib import pandas as pd import numpy as np from nameparser import HumanName from nameparser.config import CONSTANTS CONSTANTS.titles.remove("gen") CONSTANTS.titles.remove("prin") if __name__ == "__main__": import graph papers = pd.read_csv("cogsci_proceedings_raw.csv") papers['ty...
[ 11748, 302, 198, 11748, 814, 8019, 198, 11748, 19798, 292, 355, 279, 67, 198, 11748, 299, 32152, 355, 45941, 198, 198, 6738, 1438, 48610, 1330, 5524, 5376, 198, 6738, 1438, 48610, 13, 11250, 1330, 7102, 2257, 1565, 4694, 198, 10943, 225...
2.700483
207
# Generated by Django 3.1 on 2020-08-11 19:45 from django.db import migrations
[ 2, 2980, 515, 416, 37770, 513, 13, 16, 319, 12131, 12, 2919, 12, 1157, 678, 25, 2231, 198, 198, 6738, 42625, 14208, 13, 9945, 1330, 15720, 602, 628 ]
2.892857
28
from pythonfuzz.main import PythonFuzz from tinytag import TinyTag import io if __name__ == '__main__': fuzz()
[ 6738, 21015, 69, 4715, 13, 12417, 1330, 11361, 37, 4715, 198, 6738, 7009, 12985, 1330, 20443, 24835, 198, 11748, 33245, 198, 198, 361, 11593, 3672, 834, 6624, 705, 834, 12417, 834, 10354, 198, 197, 69, 4715, 3419, 628, 198 ]
2.948718
39
/home/runner/.cache/pip/pool/d1/fc/c7/6cbbdf9c58b6591d28ed792bbd7944946d3f56042698e822a2869787f6
[ 14, 11195, 14, 16737, 11757, 23870, 14, 79, 541, 14, 7742, 14, 67, 16, 14, 16072, 14, 66, 22, 14, 21, 66, 11848, 7568, 24, 66, 3365, 65, 2996, 6420, 67, 2078, 276, 48156, 11848, 67, 3720, 31911, 3510, 67, 18, 69, 20, 31916, 2075...
1.745455
55
# coding: utf-8 # pylint: disable = invalid-name, C0111 import gpboost as gpb import numpy as np from sklearn.metrics import mean_squared_error import matplotlib.pyplot as plt plt.style.use('ggplot') #--------------------Cross validation for tree-boosting without GP or random effects---------------- print('Simulating ...
[ 2, 19617, 25, 3384, 69, 12, 23, 198, 2, 279, 2645, 600, 25, 15560, 796, 12515, 12, 3672, 11, 327, 486, 1157, 198, 11748, 27809, 39521, 355, 27809, 65, 198, 11748, 299, 32152, 355, 45941, 198, 6738, 1341, 35720, 13, 4164, 10466, 1330...
2.481784
1,592
# Copyright 2022 The Matrix.org Foundation C.I.C. # # 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 a...
[ 2, 15069, 33160, 383, 24936, 13, 2398, 5693, 327, 13, 40, 13, 34, 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.686992
246
import set_path import sys import torch set_path.append_sys_path() import rela import hanalearn import utils assert rela.__file__.endswith(".so") assert hanalearn.__file__.endswith(".so")
[ 11748, 900, 62, 6978, 198, 11748, 25064, 198, 11748, 28034, 198, 198, 2617, 62, 6978, 13, 33295, 62, 17597, 62, 6978, 3419, 198, 198, 11748, 823, 64, 198, 11748, 289, 272, 282, 451, 77, 198, 11748, 3384, 4487, 198, 198, 30493, 823, ...
2.56
75
# ****************************************************** ## Copyright 2019, PBL Netherlands Environmental Assessment Agency and Utrecht University. ## Reuse permitted under Gnu Public License, GPL v3. # ****************************************************** from netCDF4 import Dataset import numpy as np import genera...
[ 2, 41906, 8412, 2466, 1174, 198, 2235, 15069, 13130, 11, 350, 9148, 12671, 13272, 25809, 7732, 290, 7273, 260, 21474, 2059, 13, 198, 2235, 797, 1904, 10431, 739, 18509, 84, 5094, 13789, 11, 38644, 410, 18, 13, 198, 2, 41906, 8412, 246...
4.408602
93
from io import TextIOWrapper import math from typing import TypeVar import random import os from Settings import Settings #pist = Pistachio(Dataset.LINUX_NL) # #for row in pist.Load()[0:10]: # print(row)
[ 6738, 33245, 1330, 8255, 40, 3913, 430, 2848, 201, 198, 11748, 10688, 201, 198, 6738, 19720, 1330, 5994, 19852, 201, 198, 11748, 4738, 201, 198, 11748, 28686, 201, 198, 6738, 16163, 1330, 16163, 201, 198, 201, 198, 201, 198, 201, 198, ...
2.395833
96
import datetime import decimal import json import traceback from django.conf import settings from django.core.mail import EmailMessage from django.db import models from django.utils import timezone from django.template.loader import render_to_string from django.contrib.sites.models import Site import stripe from js...
[ 11748, 4818, 8079, 198, 11748, 32465, 198, 11748, 33918, 198, 11748, 12854, 1891, 198, 198, 6738, 42625, 14208, 13, 10414, 1330, 6460, 198, 6738, 42625, 14208, 13, 7295, 13, 4529, 1330, 9570, 12837, 198, 6738, 42625, 14208, 13, 9945, 1330...
2.819572
327
#!/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.415193
961
# Copyright (c) OpenMMLab. All rights reserved. import pytest import torch _USING_PARROTS = True try: from parrots.autograd import gradcheck except ImportError: from torch.autograd import gradcheck, gradgradcheck _USING_PARROTS = False
[ 2, 15069, 357, 66, 8, 4946, 44, 5805, 397, 13, 1439, 2489, 10395, 13, 198, 11748, 12972, 9288, 198, 11748, 28034, 198, 198, 62, 2937, 2751, 62, 47, 26465, 33472, 796, 6407, 198, 28311, 25, 198, 220, 220, 220, 422, 1582, 24744, 13, ...
2.941176
85
import pandas as pd from tqdm import tqdm data_list = [] debug = False num_choices = 4 tqdm.pandas(desc="Progress") df = pd.read_pickle("data/augmented_datasets/pickle/label_description.pkl") if debug: df = df.iloc[:10] df = df.progress_apply(get_questions, axis=1) new_df = pd.DataFrame(data_list) if not deb...
[ 11748, 19798, 292, 355, 279, 67, 198, 6738, 256, 80, 36020, 1330, 256, 80, 36020, 198, 198, 7890, 62, 4868, 796, 17635, 628, 198, 198, 24442, 796, 10352, 198, 22510, 62, 6679, 1063, 796, 604, 198, 198, 83, 80, 36020, 13, 79, 392, ...
2.326425
193
# vim: tabstop=4 expandtab shiftwidth=4 softtabstop=4 """ 'attach' command implementation''' """ from base64 import b64encode import argparse import magic from ..bugzilla import BugzillaError from ..context import bugzilla_instance from .. import ui from .base import Base
[ 2, 43907, 25, 7400, 11338, 28, 19, 4292, 8658, 6482, 10394, 28, 19, 2705, 8658, 11338, 28, 19, 198, 198, 37811, 198, 6, 47348, 6, 3141, 7822, 7061, 6, 198, 37811, 198, 198, 6738, 2779, 2414, 1330, 275, 2414, 268, 8189, 198, 11748, ...
3.419753
81
#!/usr/bin/env python # -*- coding: utf-8 -*- # import numpy import pygmsh from helpers import compute_volume if __name__ == '__main__': import meshio meshio.write('airfoil.vtu', *test())
[ 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, 11748, 299, 32152, 198, 11748, 12972, 70, 907, 71, 198, 198, 6738, 49385, 1330, 24061, 62, 29048, 628, 198, 1...
2.439024
82
import pytest
[ 11748, 12972, 9288, 198 ]
3.5
4
import json from threading import Semaphore import ee from flask import request from google.auth import crypt from google.oauth2 import service_account from google.oauth2.credentials import Credentials service_account_credentials = None import logging export_semaphore = Semaphore(5) get_info_semaphore = Semaphore(2)...
[ 11748, 33918, 198, 6738, 4704, 278, 1330, 12449, 6570, 382, 198, 198, 11748, 304, 68, 198, 6738, 42903, 1330, 2581, 198, 6738, 23645, 13, 18439, 1330, 8194, 198, 6738, 23645, 13, 12162, 1071, 17, 1330, 2139, 62, 23317, 198, 6738, 23645,...
3.28
100
#https://microbit-micropython.readthedocs.io/en/latest/tutorials/images.html#animation from microbit import * boat1 = Image("05050:05050:05050:99999:09990") boat2 = Image("00000:05050:05050:05050:99999") boat3 = Image("00000:00000:05050:05050:05050") boat4 = Image("00000:00000:00000:05050:05050") boat5 = Image("00000:0...
[ 2, 5450, 1378, 24055, 2545, 12, 9383, 1773, 7535, 13, 961, 83, 704, 420, 82, 13, 952, 14, 268, 14, 42861, 14, 83, 44917, 82, 14, 17566, 13, 6494, 2, 11227, 341, 198, 6738, 4580, 2545, 1330, 1635, 198, 24482, 16, 796, 7412, 7203, ...
2.572193
187
import os import json import shutil import time from pyramid.renderers import render_to_response from pyramid.response import Response from groupdocs.ApiClient import ApiClient from groupdocs.AsyncApi import AsyncApi from groupdocs.StorageApi import StorageApi from groupdocs.GroupDocsRequestSigner import GroupDocsReq...
[ 11748, 28686, 198, 11748, 33918, 198, 11748, 4423, 346, 198, 11748, 640, 198, 198, 6738, 27944, 13, 10920, 19288, 1330, 8543, 62, 1462, 62, 26209, 198, 6738, 27944, 13, 26209, 1330, 18261, 198, 198, 6738, 1448, 31628, 13, 32, 14415, 117...
3.71875
96
from __future__ import print_function import numpy as np import struct import solvers import pid from util import * MOTORSPEED = 0.9 MOTORMARGIN = 1 MOTORSLOPE = 30 ERRORLIM = 5.0 def getServoElevator(self): return 178.21 - degrees(self.shoulder_angle) def getServoActuator(self): return d...
[ 6738, 11593, 37443, 834, 1330, 3601, 62, 8818, 198, 198, 11748, 299, 32152, 355, 45941, 198, 11748, 2878, 198, 198, 11748, 1540, 690, 198, 11748, 46514, 198, 6738, 7736, 1330, 1635, 198, 198, 44, 2394, 1581, 4303, 41841, 796, 657, 13, ...
2.095374
3,502
from pedalboard import Reverb, Compressor, Gain, LowpassFilter, Pedalboard import soundfile as sf if __name__ == '__main__': # replace by path of unprocessed piano file if necessar fn_wav_source = 'live_grand_piano.wav' # augmentation settings using Pedalboard library settings = {'rev-': [Reverb(roo...
[ 6738, 26667, 3526, 1330, 797, 19011, 11, 3082, 44292, 11, 21686, 11, 7754, 6603, 22417, 11, 13457, 282, 3526, 198, 11748, 2128, 7753, 355, 264, 69, 628, 198, 361, 11593, 3672, 834, 6624, 705, 834, 12417, 834, 10354, 628, 220, 220, 220...
2.211111
540
"""add_request_system Revision: 9ba67b798fa Revises: 31b92bf6506d Created: 2013-07-23 02:49:09.342814 """ revision = '9ba67b798fa' down_revision = '31b92bf6506d' from alembic import op from spire.schema.fields import * from spire.mesh import SurrogateType from sqlalchemy import (Column, ForeignKey, ForeignKeyConstra...
[ 37811, 2860, 62, 25927, 62, 10057, 198, 198, 18009, 1166, 25, 860, 7012, 3134, 65, 43240, 13331, 198, 18009, 2696, 25, 3261, 65, 5892, 19881, 17544, 21, 67, 198, 41972, 25, 2211, 12, 2998, 12, 1954, 7816, 25, 2920, 25, 2931, 13, 268...
2.71519
158
# Copyright (C) 2021 Open Source Robotics Foundation # # 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...
[ 2, 15069, 357, 34, 8, 33448, 4946, 8090, 47061, 5693, 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, 1...
3.671569
204
import os import fsspec from fsspec.implementations.memory import MemoryFileSystem import pickle import pytest
[ 11748, 28686, 198, 11748, 277, 824, 43106, 198, 6738, 277, 824, 43106, 13, 320, 26908, 602, 13, 31673, 1330, 14059, 8979, 11964, 198, 11748, 2298, 293, 198, 11748, 12972, 9288, 628, 628, 198 ]
3.484848
33
""" A / | B C 'B, C' """ if __name__ == "__main__": c = CategoryTree() c.add_category('A', None) c.add_category('B', 'A') c.add_category('C', 'A') print(','.join(c.get_children('A') or [])) print(','.join(c.get_children('E') or []))
[ 37811, 198, 220, 220, 317, 198, 1220, 930, 198, 33, 220, 327, 198, 198, 6, 33, 11, 327, 6, 198, 37811, 628, 198, 198, 361, 11593, 3672, 834, 6624, 366, 834, 12417, 834, 1298, 198, 220, 220, 220, 269, 796, 21743, 27660, 3419, 198, ...
2.046154
130
# -*- coding: UTF-8 -*- """ .. --------------------------------------------------------------------- ___ __ __ __ ___ / | \ | \ | \ / the automatic \__ |__/ |__/ |___| \__ annotation and \ | | | | \ ...
[ 2, 532, 9, 12, 19617, 25, 41002, 12, 23, 532, 9, 12, 198, 37811, 198, 220, 220, 220, 11485, 198, 220, 220, 220, 220, 220, 220, 220, 16529, 30934, 198, 220, 220, 220, 220, 220, 220, 220, 220, 46444, 220, 220, 11593, 220, 220, 220...
2.354628
1,988
from .resnet import * from .hynet import * from .classifier import Classifier, HFClassifier, HNSWClassifier from .ext_layers import ParameterClient samplerClassifier = { 'hf': HFClassifier, 'hnsw': HNSWClassifier, }
[ 6738, 764, 411, 3262, 1330, 1635, 198, 6738, 764, 71, 2047, 316, 1330, 1635, 198, 6738, 764, 4871, 7483, 1330, 5016, 7483, 11, 42253, 9487, 7483, 11, 367, 8035, 54, 9487, 7483, 198, 6738, 764, 2302, 62, 75, 6962, 1330, 25139, 2357, ...
2.825
80
import pickle import socket import _thread from scripts.multiplayer import game, board, tetriminos server = "192.168.29.144" port = 5555 s = socket.socket(socket.AF_INET, socket.SOCK_STREAM) try: s.bind((server, port)) except socket.error as e: print(e) s.listen() print("Waiting for connection") connected ...
[ 11748, 2298, 293, 198, 11748, 17802, 198, 11748, 4808, 16663, 198, 6738, 14750, 13, 41684, 7829, 1330, 983, 11, 3096, 11, 28408, 3036, 11996, 198, 198, 15388, 796, 366, 17477, 13, 14656, 13, 1959, 13, 18444, 1, 198, 634, 796, 642, 310...
2.400685
292
import os import re from collections import defaultdict CURRENT_DIR, _ = os.path.split(__file__) DATA_FLIE = os.path.join(CURRENT_DIR, 'data.txt') def part1(claims): """ This is basically a single-threaded collision detection method, implemented in pure python. Computation complexity is obviously not...
[ 11748, 28686, 198, 11748, 302, 198, 6738, 17268, 1330, 4277, 11600, 198, 198, 34, 39237, 62, 34720, 11, 4808, 796, 28686, 13, 6978, 13, 35312, 7, 834, 7753, 834, 8, 198, 26947, 62, 3697, 10008, 796, 28686, 13, 6978, 13, 22179, 7, 34...
2.682258
620
#!/usr/bin/env python # -*- coding: utf-8 -*- # Copyright (c) Philipp Wagner. All rights reserved. # Licensed under the BSD license. See LICENSE file in the project root for full license information. import numpy as np
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 198, 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 198, 2, 15069, 357, 66, 8, 9844, 26451, 13, 1439, 2489, 10395, 13, 198, 2, 49962, 739, 262, 347, 10305, 5964, 13, 4...
3.348485
66
#!/usr/bin/python #coding=utf-8 import os import requests import time import re from datetime import datetime import urllib2 import json import mimetypes import smtplib from email.MIMEText import MIMEText from email.MIMEMultipart import MIMEMultipart # configuration for pgyer USER_KEY = "f605b7c782669...
[ 2, 48443, 14629, 14, 8800, 14, 29412, 201, 198, 2, 66, 7656, 28, 40477, 12, 23, 201, 198, 201, 198, 11748, 28686, 201, 198, 11748, 7007, 201, 198, 11748, 640, 201, 198, 11748, 302, 201, 198, 6738, 4818, 8079, 1330, 4818, 8079, 201, ...
2.297546
326
#!_PYTHONLOC # # (C) COPYRIGHT 2004-2021 Al von Ruff and Ahasuerus # ALL RIGHTS RESERVED # # The copyright notice above does not evidence any actual or # intended publication of such source code. # # Version: $Revision$ # Date: $Date$ from isfdblib import * from isfdblib_help import * fr...
[ 2, 0, 62, 47, 56, 4221, 1340, 29701, 198, 2, 198, 2, 220, 220, 220, 220, 357, 34, 8, 27975, 38162, 9947, 5472, 12, 1238, 2481, 220, 220, 978, 18042, 42409, 290, 7900, 292, 15573, 385, 198, 2, 220, 220, 220, 220, 220, 220, 220, ...
2.547837
763
from fastapi import APIRouter, Depends, HTTPException from sqlalchemy.orm import Session from dispatch.database.core import get_db from dispatch.database.service import common_parameters, search_filter_sort_paginate from dispatch.auth.permissions import SensitiveProjectActionPermission, PermissionsDependency from .mo...
[ 6738, 3049, 15042, 1330, 3486, 4663, 39605, 11, 2129, 2412, 11, 14626, 16922, 198, 6738, 44161, 282, 26599, 13, 579, 1330, 23575, 198, 198, 6738, 27965, 13, 48806, 13, 7295, 1330, 651, 62, 9945, 198, 6738, 27965, 13, 48806, 13, 15271, ...
3.548611
144
import os from urllib.parse import urlparse, parse_qs from builtins import str from tests import PMGLiveServerTestCase from pmg.models import db, Committee, CommitteeQuestion from tests.fixtures import dbfixture, UserData, CommitteeData, MembershipData from flask import escape from io import BytesIO
[ 11748, 28686, 198, 6738, 2956, 297, 571, 13, 29572, 1330, 19016, 29572, 11, 21136, 62, 48382, 198, 6738, 3170, 1040, 1330, 965, 198, 6738, 5254, 1330, 3122, 8763, 425, 10697, 14402, 20448, 198, 6738, 9114, 70, 13, 27530, 1330, 20613, 11...
3.922078
77
import sys, wave import AudioAnalysis FILE_NAME = "snippet.wav" if __name__ == "__main__": main() #testAudioAnalysis() #testWavWrite()
[ 198, 198, 11748, 25064, 11, 6769, 198, 11748, 13491, 32750, 198, 198, 25664, 62, 20608, 796, 366, 16184, 3974, 316, 13, 45137, 1, 198, 220, 220, 220, 220, 628, 628, 198, 361, 11593, 3672, 834, 6624, 366, 834, 12417, 834, 1298, 198, ...
2.295775
71
from syloga.core.map_expression_args import map_expression_args from syloga.utils.identity import identity from syloga.ast.BooleanNot import BooleanNot from syloga.ast.BooleanValue import BooleanValue from syloga.ast.BooleanOr import BooleanOr from syloga.ast.BooleanAnd import BooleanAnd from syloga.ast.BooleanNand i...
[ 198, 6738, 827, 6404, 64, 13, 7295, 13, 8899, 62, 38011, 62, 22046, 1330, 3975, 62, 38011, 62, 22046, 198, 6738, 827, 6404, 64, 13, 26791, 13, 738, 414, 1330, 5369, 198, 198, 6738, 827, 6404, 64, 13, 459, 13, 46120, 13087, 3673, 1...
3.16185
173
from django.conf import settings from django.contrib.auth import authenticate, login as auth_login from django.contrib.sites.models import get_current_site from django.db.models import get_model from oscar.apps.customer.signals import user_registered from oscar.core.loading import get_class from oscar.core.compat impor...
[ 6738, 42625, 14208, 13, 10414, 1330, 6460, 198, 6738, 42625, 14208, 13, 3642, 822, 13, 18439, 1330, 8323, 5344, 11, 17594, 355, 6284, 62, 38235, 198, 6738, 42625, 14208, 13, 3642, 822, 13, 49315, 13, 27530, 1330, 651, 62, 14421, 62, 1...
3.346939
147
from parameters import * from library_time import * from paths import * import numpy as np import pylab as plt import matplotlib.pyplot as mplt mplt.rc('text', usetex=True) mplt.rcParams.update({'font.size': 16}) import logging, getopt, sys import time import os #####################################################...
[ 6738, 10007, 1330, 1635, 198, 6738, 5888, 62, 2435, 1330, 1635, 198, 6738, 13532, 1330, 1635, 198, 198, 11748, 299, 32152, 355, 45941, 198, 11748, 279, 2645, 397, 355, 458, 83, 198, 11748, 2603, 29487, 8019, 13, 9078, 29487, 355, 285, ...
2.442987
991
from helper import *
[ 6738, 31904, 1330, 1635, 198 ]
4.2
5
import sys, os sys.path.append("C:/Users/Delgado/Documents/Research/rheology-data-toolkit/rheodata/extractors") import h5py import pandas as pd from antonpaar import AntonPaarExtractor as APE from ARES_G2 import ARES_G2Extractor # %% sys.path.append("C:/Users/Delgado/Documents/Research/rheology-data-toolkit/rheodata"...
[ 11748, 25064, 11, 28686, 198, 17597, 13, 6978, 13, 33295, 7203, 34, 14079, 14490, 14, 13856, 50054, 14, 38354, 14, 25104, 14, 81, 258, 1435, 12, 7890, 12, 25981, 15813, 14, 81, 258, 375, 1045, 14, 2302, 974, 669, 4943, 198, 198, 117...
2.606383
188
from ...models.models import Topic from ..default_schema import DefaultSchema from ..generics import DeleteAction from ..register import register_action
[ 6738, 2644, 27530, 13, 27530, 1330, 47373, 198, 6738, 11485, 12286, 62, 15952, 2611, 1330, 15161, 27054, 2611, 198, 6738, 11485, 8612, 873, 1330, 23520, 12502, 198, 6738, 11485, 30238, 1330, 7881, 62, 2673, 628 ]
4.4
35
from core import file_handling as file_h, driver_handling as driver_h from website_handling import website_check as wc from cookie_handling import cookie_compare websites = file_h.website_reader() driver = driver_h.webdriver_setup() try: wc.load_with_addon(driver, websites) except: print('ERROR: IN FIREFO...
[ 6738, 4755, 1330, 2393, 62, 4993, 1359, 355, 2393, 62, 71, 11, 4639, 62, 4993, 1359, 355, 4639, 62, 71, 198, 6738, 3052, 62, 4993, 1359, 1330, 3052, 62, 9122, 355, 266, 66, 198, 6738, 19751, 62, 4993, 1359, 1330, 19751, 62, 5589, ...
2.858333
240
import numpy as np from scipy import constants as sc from scipy.interpolate import interp1d from pathlib import Path from scipy.special import erf as Erf import pandas as pd import sys import os import csv
[ 11748, 299, 32152, 355, 45941, 198, 6738, 629, 541, 88, 1330, 38491, 355, 629, 198, 6738, 629, 541, 88, 13, 3849, 16104, 378, 1330, 987, 79, 16, 67, 198, 6738, 3108, 8019, 1330, 10644, 198, 6738, 629, 541, 88, 13, 20887, 1330, 1931,...
3.151515
66
from django.conf.urls.defaults import url, include, patterns from corehq.apps.appstore.dispatcher import AppstoreDispatcher store_urls = patterns('corehq.apps.appstore.views', url(r'^$', 'appstore_default', name="appstore_interfaces_default"), AppstoreDispatcher.url_pattern(), ) urlpatterns = patterns('corehq...
[ 6738, 42625, 14208, 13, 10414, 13, 6371, 82, 13, 12286, 82, 1330, 19016, 11, 2291, 11, 7572, 198, 6738, 4755, 71, 80, 13, 18211, 13, 1324, 8095, 13, 6381, 8071, 2044, 1330, 2034, 8095, 7279, 8071, 2044, 198, 198, 8095, 62, 6371, 82,...
2.433852
514
from __future__ import absolute_import import torch from torch.nn import functional def normal_init(m, mean, stddev, truncated=False): """ weight initalizer: truncated normal and random normal. """ # x is a parameter if truncated: m.weight.data.normal_().fmod_(2).mul_(stddev).add_(mean) # ...
[ 6738, 11593, 37443, 834, 1330, 4112, 62, 11748, 198, 11748, 28034, 198, 6738, 28034, 13, 20471, 1330, 10345, 198, 198, 4299, 3487, 62, 15003, 7, 76, 11, 1612, 11, 336, 1860, 1990, 11, 40122, 515, 28, 25101, 2599, 198, 220, 220, 220, ...
2.584337
166
import unittest from biicode.common.settings.version import Version from mock import patch from biicode.client.setups.finders.finders import gnu_version from biicode.client.setups.rpi_cross_compiler import find_gnu_arm from biicode.client.workspace.bii_paths import get_biicode_env_folder_path GCC_VERSION_MAC = '''Con...
[ 11748, 555, 715, 395, 198, 6738, 3182, 291, 1098, 13, 11321, 13, 33692, 13, 9641, 1330, 10628, 198, 6738, 15290, 1330, 8529, 198, 6738, 3182, 291, 1098, 13, 16366, 13, 2617, 4739, 13, 19796, 364, 13, 19796, 364, 1330, 19967, 84, 62, ...
2.886792
371
from distutils.core import setup setup( name="arweave-python-client", packages = ['arweave'], # this must be the same as the name above version="1.0.15.dev0", description="Client interface for sending transactions on the Arweave permaweb", author="Mike Hibbert", author_email="mike@hibbertitsolutions.co.uk"...
[ 6738, 1233, 26791, 13, 7295, 1330, 9058, 198, 198, 40406, 7, 198, 220, 1438, 2625, 283, 732, 1015, 12, 29412, 12, 16366, 1600, 198, 220, 10392, 796, 37250, 283, 732, 1015, 6, 4357, 1303, 428, 1276, 307, 262, 976, 355, 262, 1438, 202...
2.780142
282
""" Last update: 2018-10-26 """ from exchange_calendars.extensions.calendar_extension import ExtendedExchangeCalendar from pandas import ( Timestamp, ) from pandas.tseries.holiday import ( Holiday, previous_friday, ) from exchange_calendars.exchange_calendar import HolidayCalendar from datetime import tim...
[ 37811, 198, 5956, 4296, 25, 2864, 12, 940, 12, 2075, 198, 37811, 198, 198, 6738, 5163, 62, 9948, 44942, 13, 2302, 5736, 13, 9948, 9239, 62, 2302, 3004, 1330, 24204, 3109, 3803, 9771, 9239, 198, 6738, 19798, 292, 1330, 357, 198, 220, ...
2.198798
7,319
import random import numpy #import tensorflow as tf #import torch from abc import abstractmethod from sklearn.decomposition import PCA from aggregators import FedAvg, MultiKrum, AlignedAvg, TrimmedMean, Median, StratifiedAggr # class StratifiedRandomSelection(SelectionStrategy): # #We first stratify: Each stratum ...
[ 11748, 4738, 198, 11748, 299, 32152, 198, 2, 11748, 11192, 273, 11125, 355, 48700, 198, 2, 11748, 28034, 198, 6738, 450, 66, 1330, 12531, 24396, 198, 6738, 1341, 35720, 13, 12501, 296, 9150, 1330, 4217, 32, 198, 6738, 13262, 2024, 1330,...
2.665924
1,347
from sprites import PlayerSprite import time
[ 6738, 42866, 1330, 7853, 38454, 578, 198, 11748, 640 ]
4.888889
9
from typing import Sequence import torch from torch import nn
[ 6738, 19720, 1330, 45835, 198, 198, 11748, 28034, 198, 6738, 28034, 1330, 299, 77, 628 ]
4.266667
15
from gi.repository import Gtk from masterdata_abstract_window import MasterdataAbstractWindow from person_add_mask import PersonAddMask from person_list_mask import PersonListMask
[ 6738, 308, 72, 13, 260, 1930, 37765, 1330, 402, 30488, 198, 198, 6738, 4958, 7890, 62, 397, 8709, 62, 17497, 1330, 5599, 7890, 23839, 27703, 198, 198, 6738, 1048, 62, 2860, 62, 27932, 1330, 7755, 4550, 45195, 198, 6738, 1048, 62, 4868...
2.477778
90
import torch.nn as nn from .efficientnet import EfficientNet_B4, EfficientNet_B0 from .mobilenetv3 import MobileNetV3_Large, MobileNetV3_Small def get_trunk(trunk_name): """Retrieve the pretrained network trunk and channel counts""" if trunk_name == 'efficientnet_b4': backbone = EfficientNet_B4(pretra...
[ 11748, 28034, 13, 20471, 355, 299, 77, 198, 198, 6738, 764, 16814, 3262, 1330, 412, 5632, 7934, 62, 33, 19, 11, 412, 5632, 7934, 62, 33, 15, 198, 6738, 764, 76, 25898, 268, 316, 85, 18, 1330, 12173, 7934, 53, 18, 62, 21968, 11, ...
2.17382
466
import module from types import ModuleType foo(module) bar(module)
[ 11748, 8265, 198, 6738, 3858, 1330, 19937, 6030, 198, 198, 21943, 7, 21412, 8, 198, 5657, 7, 21412, 8 ]
3.526316
19
from unittest.mock import patch, MagicMock from pdchaosazure.webapp.actions import stop, restart, delete from tests.data import config_provider, secrets_provider, webapp_provider
[ 6738, 555, 715, 395, 13, 76, 735, 1330, 8529, 11, 6139, 44, 735, 198, 198, 6738, 279, 67, 354, 7495, 1031, 495, 13, 12384, 1324, 13, 4658, 1330, 2245, 11, 15765, 11, 12233, 198, 6738, 5254, 13, 7890, 1330, 4566, 62, 15234, 1304, 1...
3.267857
56
""" echopype data model that keeps tracks of echo data and its connection to data files. """ import os import warnings import datetime as dt from echopype.utils import uwa import numpy as np import xarray as xr def calc_seawater_absorption(self, src='file'): """Base method to be overridden for calculati...
[ 37811, 198, 3055, 404, 2981, 1366, 2746, 326, 7622, 8339, 286, 9809, 1366, 290, 198, 896, 4637, 284, 1366, 3696, 13, 198, 37811, 198, 198, 11748, 28686, 198, 11748, 14601, 198, 11748, 4818, 8079, 355, 288, 83, 198, 6738, 304, 354, 404...
2.165408
10,459