content
stringlengths
1
1.04M
input_ids
listlengths
1
774k
ratio_char_token
float64
0.38
22.9
token_count
int64
1
774k
BASE_GRAPH_URL = 'https://graph.facebook.com' BASE_AUTHORIZATION_URL = 'https://www.facebook.com' GRAPH_VERSION_V2_5 = 'v2.5' GRAPH_VERSION_V2_6 = 'v2.6' GRAPH_VERSION_V2_7 = 'v2.7' GRAPH_VERSION_V2_8 = 'v2.8' GRAPH_VERSION_V2_9 = 'v2.9' GRAPH_VERSION_V2_10 = 'v2.10' GRAPH_VERSION_V2_11 = 'v2.11' GRAPH_VERSION_V2_12 =...
[ 33, 11159, 62, 10761, 31300, 62, 21886, 796, 705, 5450, 1378, 34960, 13, 19024, 13, 785, 6, 198, 33, 11159, 62, 32, 24318, 1581, 14887, 6234, 62, 21886, 796, 705, 5450, 1378, 2503, 13, 19024, 13, 785, 6, 198, 198, 10761, 31300, 62, ...
1.927798
277
import warnings warnings.filterwarnings("ignore") import os import json import easydict import time import torch from misc.dataloader import DataLoader import torch.optim as optim import misc.datasets as datasets import ctrlfnet_model_dtp as ctrlf from misc.h5_dataset import H5Dataset from train_opts import parse_args...
[ 11748, 14601, 198, 40539, 654, 13, 24455, 40539, 654, 7203, 46430, 4943, 198, 11748, 28686, 198, 11748, 33918, 198, 11748, 2562, 11600, 198, 11748, 640, 198, 11748, 28034, 198, 6738, 12747, 13, 67, 10254, 1170, 263, 1330, 6060, 17401, 198...
2.198325
2,269
from __future__ import division from time import time import matplotlib from matplotlib import pyplot as plt import numpy as np from ctypes import * # Linux users: change the filename below to './mandelbrot.so' mandel_dll = CDLL('./mandelbrot.dll') mandel_c = mandel_dll.launch_mandelbrot mandel_c.argtypes = [POINTER(c...
[ 6738, 11593, 37443, 834, 1330, 7297, 198, 6738, 640, 1330, 640, 198, 11748, 2603, 29487, 8019, 198, 6738, 2603, 29487, 8019, 1330, 12972, 29487, 355, 458, 83, 198, 11748, 299, 32152, 355, 45941, 198, 6738, 269, 19199, 1330, 1635, 198, 1...
2.437956
274
import json import igorCA import os import sys import tempfile import urllib DEBUG=False
[ 11748, 33918, 198, 11748, 220, 36274, 8141, 198, 11748, 28686, 198, 11748, 25064, 198, 11748, 20218, 7753, 198, 11748, 2956, 297, 571, 198, 198, 30531, 28, 25101, 628, 220, 220, 220, 220, 198 ]
2.909091
33
#!/usr/bin/env python3 """ Annotate BLAST output """ import argparse import pandas as pd import os from typing import NamedTuple, TextIO class Args(NamedTuple): """ Command-line arguments """ hits: TextIO annotations: TextIO outfile: TextIO delimiter: str pctid: float # --------------------...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 18, 198, 37811, 1052, 1662, 378, 9878, 11262, 5072, 37227, 198, 198, 11748, 1822, 29572, 198, 11748, 19798, 292, 355, 279, 67, 198, 11748, 28686, 198, 6738, 19720, 1330, 34441, 51, 29291, 11,...
1.885051
1,853
""" This file provides a wrapper for the convert objects and functions. Users will not need to know the names of the specific objects they need to create. """ import os from echopype.convert.azfp import ConvertAZFP from echopype.convert.ek60 import ConvertEK60
[ 37811, 198, 1212, 2393, 3769, 257, 29908, 329, 262, 10385, 5563, 290, 5499, 13, 198, 14490, 481, 407, 761, 284, 760, 262, 3891, 286, 262, 2176, 5563, 484, 761, 284, 2251, 13, 198, 37811, 198, 11748, 28686, 198, 6738, 304, 354, 404, ...
3.690141
71
import pathlib def does_file_exist(path_to_file: str) -> bool: """ Performs a simple exists check on a given file path """ path = pathlib.Path(path_to_file) return path.exists()
[ 11748, 3108, 8019, 628, 198, 4299, 857, 62, 7753, 62, 38476, 7, 6978, 62, 1462, 62, 7753, 25, 965, 8, 4613, 20512, 25, 198, 220, 220, 220, 37227, 198, 220, 220, 220, 2448, 23914, 257, 2829, 7160, 2198, 319, 257, 1813, 2393, 3108, ...
2.631579
76
import os from slack_sdk import WebClient from slack_sdk.errors import SlackApiError token=os.environ['token'] channel=os.environ['channel'] header=os.environ['header'] pre_message=os.environ['pre_message'] message=os.environ['message'] post_message=os.environ['post_message'] actor=os.environ['actor'] release=os.envir...
[ 11748, 28686, 198, 6738, 30740, 62, 21282, 74, 1330, 5313, 11792, 198, 6738, 30740, 62, 21282, 74, 13, 48277, 1330, 36256, 32, 14415, 12331, 198, 198, 30001, 28, 418, 13, 268, 2268, 17816, 30001, 20520, 198, 17620, 28, 418, 13, 268, 2...
1.712086
1,299
from odoo.tests.common import TransactionCase
[ 6738, 16298, 2238, 13, 41989, 13, 11321, 1330, 45389, 20448, 628 ]
4.272727
11
# -*- coding: utf-8 -*- """## Task-specific heads Different heads that expect their inputs to be flattened. """ from collections import OrderedDict from typing import List, Optional import torch.nn as nn import torch.nn.functional as F from ophthalmology.layers import activations
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 201, 198, 37811, 2235, 15941, 12, 11423, 6665, 201, 198, 201, 198, 40341, 6665, 326, 1607, 511, 17311, 284, 307, 45096, 13, 201, 198, 37811, 201, 198, 201, 198, 6738, 17268, ...
3.081633
98
import argparse import numpy as np import os from Bio.PDB import PDBParser, Selection parser = PDBParser() # RADII for atoms in explicit case. RADII = {} RADII["N"] = "1.540000" RADII["O"] = "1.400000" RADII["C"] = "1.740000" RADII["H"] = "1.200000" RADII["S"] = "1.800000" RADII["P"] = "1.800000" RADII["Z"] = "1.39" ...
[ 11748, 1822, 29572, 198, 11748, 299, 32152, 355, 45941, 198, 11748, 28686, 198, 6738, 16024, 13, 5760, 33, 1330, 350, 11012, 46677, 11, 29538, 198, 198, 48610, 796, 350, 11012, 46677, 3419, 198, 198, 2, 33540, 3978, 329, 23235, 287, 795...
2.053527
1,999
# Generated by Django 2.0.9 on 2020-07-24 07:52 from django.db import migrations, models
[ 2, 2980, 515, 416, 37770, 362, 13, 15, 13, 24, 319, 12131, 12, 2998, 12, 1731, 8753, 25, 4309, 198, 198, 6738, 42625, 14208, 13, 9945, 1330, 15720, 602, 11, 4981, 628 ]
2.84375
32
import enum
[ 11748, 33829, 628, 198 ]
3.5
4
from PyQt5.QtWidgets import QApplication, QMainWindow, QAction, QFileDialog import sys from PyQt5.QtGui import QImage, QPainter, QPen from PyQt5.QtCore import Qt, QPoint if __name__ == "__main__": app = QApplication(sys.argv) window = Window() window.show() app.exec()
[ 6738, 9485, 48, 83, 20, 13, 48, 83, 54, 312, 11407, 1330, 1195, 23416, 11, 1195, 13383, 27703, 11, 1195, 12502, 11, 1195, 8979, 44204, 198, 11748, 25064, 198, 198, 6738, 9485, 48, 83, 20, 13, 48, 83, 8205, 72, 1330, 1195, 5159, 11...
2.483051
118
# Licensed under a 3-clause BSD style license - see LICENSE.rst import itertools import pytest import numpy as np from numpy.testing import assert_almost_equal, assert_allclose from astropy.convolution.convolve import convolve, convolve_fft from astropy.convolution.kernels import ( Gaussian1DKernel, Gaussian2DKe...
[ 2, 49962, 739, 257, 513, 12, 565, 682, 347, 10305, 3918, 5964, 532, 766, 38559, 24290, 13, 81, 301, 198, 198, 11748, 340, 861, 10141, 198, 198, 11748, 12972, 9288, 198, 11748, 299, 32152, 355, 45941, 198, 6738, 299, 32152, 13, 33407, ...
2.141821
9,103
import contextlib import itertools import json import os import pathlib import shutil import sys import typing import datasets import numpy import ray.tune import transformers from . import metric from . import tok from . import train class TailScheduler(ray.tune.schedulers.trial_scheduler.FIFOScheduler): ''' T...
[ 198, 11748, 4732, 8019, 198, 11748, 340, 861, 10141, 198, 11748, 33918, 198, 11748, 28686, 198, 11748, 3108, 8019, 198, 11748, 4423, 346, 198, 11748, 25064, 198, 11748, 19720, 198, 198, 11748, 40522, 198, 11748, 299, 32152, 198, 11748, 26...
1.989401
1,887
import unittest import numpy as np from lib import Kernel
[ 11748, 555, 715, 395, 198, 11748, 299, 32152, 355, 45941, 198, 198, 6738, 9195, 1330, 32169, 628 ]
3.529412
17
from math import sqrt # X, and Y variable names against [pylint]: C0104, but is the same as the stub, advise not to change this.
[ 6738, 10688, 1330, 19862, 17034, 198, 198, 2, 1395, 11, 290, 575, 7885, 3891, 1028, 685, 79, 2645, 600, 5974, 327, 486, 3023, 11, 475, 318, 262, 976, 355, 262, 17071, 11, 18595, 407, 284, 1487, 428, 13, 198 ]
3.333333
39
import torch from torch import nn from kme.models.base import FeatureNetBase class RiskFeatNet1(FeatureNetBase): """ Simple network for risk score datasets """ class SmallTabFeatNet1(FeatureNetBase): """ Simple network for risk score datasets """ class SmallTabFeatNet2(FeatureNetBase): ...
[ 11748, 28034, 198, 6738, 28034, 1330, 299, 77, 198, 6738, 479, 1326, 13, 27530, 13, 8692, 1330, 27018, 7934, 14881, 628, 198, 4871, 19602, 37, 4098, 7934, 16, 7, 38816, 7934, 14881, 2599, 198, 220, 220, 220, 37227, 198, 220, 220, 220,...
3.091463
164
# Imports from 3rd party libraries import dash import dash_bootstrap_components as dbc import dash_core_components as dcc import dash_html_components as html from dash.dependencies import Input, Output # Imports from this application from app import app # 2 column layout. 1st column width = 4/12 # https://dash-bootst...
[ 2, 1846, 3742, 422, 513, 4372, 2151, 12782, 198, 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, 39...
1.975089
843
import logging import os import time import torch import torch.nn as nn from utils.meter import AverageMeter from utils.metrics import R1_mAP_eval from torch.cuda import amp import torchvision import torch.nn.functional as F import numpy as np import math import random
[ 11748, 18931, 198, 11748, 28686, 198, 11748, 640, 198, 11748, 28034, 198, 11748, 28034, 13, 20471, 355, 299, 77, 198, 6738, 3384, 4487, 13, 27231, 1330, 13475, 44, 2357, 198, 6738, 3384, 4487, 13, 4164, 10466, 1330, 371, 16, 62, 76, 2...
3.4125
80
import threading from bable_interface.models import Packet from bable_interface.flatbuffers_functions import build_packet from bable_interface.BaBLE.Payload import Payload
[ 11748, 4704, 278, 198, 6738, 275, 540, 62, 39994, 13, 27530, 1330, 6400, 316, 198, 6738, 275, 540, 62, 39994, 13, 38568, 36873, 364, 62, 12543, 2733, 1330, 1382, 62, 8002, 316, 198, 6738, 275, 540, 62, 39994, 13, 34458, 19146, 13, 1...
3.55102
49
""" Module containing data augmentation techniques. - 3D Affine/DDF Transforms for moving and fixed images. """ from abc import abstractmethod from typing import Dict import tensorflow as tf from deepreg.model.layer_util import ( gen_rand_affine_transform, gen_rand_ddf, get_reference_grid, resample...
[ 37811, 198, 26796, 7268, 1366, 16339, 14374, 7605, 13, 198, 220, 532, 513, 35, 6708, 500, 14, 35, 8068, 3602, 23914, 329, 3867, 290, 5969, 4263, 13, 198, 37811, 198, 198, 6738, 450, 66, 1330, 12531, 24396, 198, 6738, 19720, 1330, 360,...
2.266875
5,126
#!/usr/bin/env python import os import sys import rospy import cv, cv2, cv_bridge import numpy from baxter_demos.msg import BlobInfo, BlobInfoArray from sensor_msgs.msg import Image import argparse """Script to test functionality of object_finder color segmentation User needs to manually run object_finder and subscri...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 198, 198, 11748, 28686, 198, 11748, 25064, 198, 11748, 686, 2777, 88, 198, 11748, 269, 85, 11, 269, 85, 17, 11, 269, 85, 62, 9458, 198, 11748, 299, 32152, 198, 6738, 275, 40864, 62, 9536,...
3.141935
155
from .sites import site from django.utils.module_loading import autodiscover_modules from .options import ModelAdmin from django.contrib.admin import register __all__ = ["site", 'register', 'autodiscover', 'ModelAdmin']
[ 6738, 764, 49315, 1330, 2524, 198, 6738, 42625, 14208, 13, 26791, 13, 21412, 62, 25138, 1330, 1960, 375, 29392, 62, 18170, 198, 6738, 764, 25811, 1330, 9104, 46787, 198, 6738, 42625, 14208, 13, 3642, 822, 13, 28482, 1330, 7881, 628, 198...
3.639344
61
import unittest import orca from setup.settings import * from pandas.util.testing import * if __name__ == '__main__': unittest.main()
[ 11748, 555, 715, 395, 198, 11748, 393, 6888, 198, 6738, 9058, 13, 33692, 1330, 1635, 198, 6738, 19798, 292, 13, 22602, 13, 33407, 1330, 1635, 628, 198, 198, 361, 11593, 3672, 834, 6624, 705, 834, 12417, 834, 10354, 198, 220, 220, 220,...
2.877551
49
# -*- coding: utf-8 -*- """ Created on Tue Mar 7 13:26:06 2017 @author: nblago """ from __future__ import print_function import datetime from astropy.io import votable import numpy as np import os import logging import warnings from astropy import units as u from astropy.coordinates import SkyCoord from astropy.tab...
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 37811, 198, 41972, 319, 30030, 1526, 220, 767, 1511, 25, 2075, 25, 3312, 2177, 198, 198, 31, 9800, 25, 299, 2436, 3839, 198, 37811, 198, 6738, 11593, 37443, 834, 1330, ...
3
257
import cv2 cap = cv2.VideoCapture(0) w = round(cap.get(cv2.CAP_PROP_FRAME_WIDTH)) h = round(cap.get(cv2.CAP_PROP_FRAME_HEIGHT)) fourcc = cv2.VideoWriter_fourcc(*'DIVX') # *'DIVX' == 'D','I','V','X' out = cv2.VideoWriter('output.avi', fourcc, 30, (w, h)) while True: # 카메라 프레임 처리 ret, frame = cap.read() out.wr...
[ 11748, 269, 85, 17, 198, 198, 11128, 796, 269, 85, 17, 13, 10798, 49630, 7, 15, 8, 198, 198, 86, 796, 2835, 7, 11128, 13, 1136, 7, 33967, 17, 13, 33177, 62, 4805, 3185, 62, 10913, 10067, 62, 54, 2389, 4221, 4008, 198, 71, 796, ...
1.828947
228
""" test_rosetta_flash.py Copyright 2015 Andres Riancho This file is part of w3af, http://w3af.org/ . w3af 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 version 2 of the License. w3af is distributed in the ho...
[ 37811, 198, 9288, 62, 305, 2617, 8326, 62, 34167, 13, 9078, 198, 198, 15269, 1853, 843, 411, 371, 666, 6679, 198, 198, 1212, 2393, 318, 636, 286, 266, 18, 1878, 11, 2638, 1378, 86, 18, 1878, 13, 2398, 14, 764, 198, 198, 86, 18, ...
3.381481
270
from check_personal_identity_number_and_credit_card.check_Pesel import ( valid_pesel, check_control_sum_pesel, check_age, pesel, ) correct_pesel = ["53052486359", "94120679457", "01240316649"] too_long_pesel = "5305248635923" too_short_pesel = "530524863" with_letters_pesel = "530524d6a59" bad_pesel = ...
[ 6738, 2198, 62, 22682, 62, 738, 414, 62, 17618, 62, 392, 62, 43082, 62, 9517, 13, 9122, 62, 47, 274, 417, 1330, 357, 198, 220, 220, 220, 4938, 62, 12272, 417, 11, 198, 220, 220, 220, 2198, 62, 13716, 62, 16345, 62, 12272, 417, 1...
2.218543
151
# Copyright (c) 2012 Stuart Walsh # # 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, modify, merge, publish...
[ 2, 220, 15069, 357, 66, 8, 2321, 22559, 24104, 198, 2, 198, 2, 220, 2448, 3411, 318, 29376, 7520, 11, 1479, 286, 3877, 11, 284, 597, 1048, 198, 2, 220, 16727, 257, 4866, 286, 428, 3788, 290, 3917, 10314, 198, 2, 220, 3696, 357, ...
3.656347
323
import os, sys import torch import torch.nn as nn from models import * from config import * args = parse_arguments() if not os.path.isfile(args.checkpoint): sys.exit("model does not exist") print(f"converting {args.checkpoint}...") model = GeneratorDCGAN(z_dim=args.z_dim, model_dim=args.model_dim, num_cl...
[ 11748, 28686, 11, 25064, 201, 198, 11748, 28034, 201, 198, 11748, 28034, 13, 20471, 355, 299, 77, 201, 198, 6738, 4981, 1330, 1635, 201, 198, 6738, 4566, 1330, 1635, 201, 198, 201, 198, 22046, 796, 21136, 62, 853, 2886, 3419, 201, 198...
2.720238
168
import numpy as np from nose.plugins.skip import SkipTest import theano from theano import tensor as T from theano.sandbox import mkl if not mkl.mkl_available: raise SkipTest('Optional package MKL disabled') if __name__ == '__main__': x = T.ftensor4('x_4D') run_test('forward', x) run_test('backward...
[ 11748, 299, 32152, 355, 45941, 198, 6738, 9686, 13, 37390, 13, 48267, 1330, 32214, 14402, 198, 198, 11748, 262, 5733, 198, 6738, 262, 5733, 1330, 11192, 273, 355, 309, 198, 6738, 262, 5733, 13, 38142, 3524, 1330, 33480, 75, 198, 198, ...
2.503067
163
# GENERATED BY KOMAND SDK - DO NOT EDIT import insightconnect_plugin_runtime import json
[ 2, 24700, 1137, 11617, 11050, 509, 2662, 6981, 26144, 532, 8410, 5626, 48483, 198, 11748, 11281, 8443, 62, 33803, 62, 43282, 198, 11748, 33918, 628, 198, 220, 220, 220, 220, 198, 220, 220, 220, 220, 628 ]
2.833333
36
from uberUtils import * '''curl -F 'client_id=M5TNy7T9h9n8xUOQ_uWSHVLdGvfw7u6H' \ -F 'client_secret=w5P7E4Ld54d_ai3lJRhAgkU_9oWbKd9kkTJHfPgf' \ -F 'grant_type=authorization_code' \ -F 'redirect_uri=https://9bbc25ce.ngrok.io' \ -F 'code=fMiym9aqxIPA6aEIDgZcHRk0BBwVM4' \ https://login.uber.com/o...
[ 6738, 48110, 18274, 4487, 1330, 1635, 198, 198, 7061, 6, 66, 6371, 532, 37, 705, 16366, 62, 312, 28, 44, 20, 46559, 88, 22, 51, 24, 71, 24, 77, 23, 87, 52, 46, 48, 62, 84, 54, 9693, 47468, 67, 38, 85, 44482, 22, 84, 21, 39, ...
1.678218
202
# Copyright 2012 United States Government as represented by the # Administrator of the National Aeronautics and Space Administration. # All Rights Reserved. # # Copyright 2012 Nebula, Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the...
[ 2, 15069, 2321, 1578, 1829, 5070, 355, 7997, 416, 262, 198, 2, 22998, 286, 262, 2351, 15781, 261, 2306, 873, 290, 4687, 8694, 13, 198, 2, 1439, 6923, 33876, 13, 198, 2, 198, 2, 15069, 2321, 46915, 11, 3457, 13, 198, 2, 198, 2, 2...
2.826923
520
"Reloading Callback Handlers Dynamically" # reload callback handlers dynamically from tkinter import * import radactions # get initial callback handlers from importlib import reload Hello().mainloop() ''' You can change this file any number of times while the rad script’s ...
[ 1, 6892, 1170, 278, 4889, 1891, 7157, 8116, 14970, 1146, 1, 198, 2, 18126, 23838, 32847, 32366, 198, 198, 6738, 256, 74, 3849, 1330, 1635, 198, 11748, 2511, 4658, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220,...
3.614286
280
""" Generates partition function and fraction folded expressions for an NRC capped homopolymer series, and generates a list of experiment filenames (melts) and a constructs list. """ from __future__ import division import sympy as sp import numpy as np import json import os import time start = time.time() print("\nG...
[ 37811, 198, 8645, 689, 18398, 2163, 290, 13390, 24650, 14700, 329, 281, 399, 7397, 198, 66, 6320, 3488, 35894, 647, 2168, 11, 290, 18616, 257, 1351, 286, 6306, 1226, 268, 1047, 357, 17694, 912, 8, 290, 257, 34175, 1351, 13, 198, 37811...
2.464706
2,210
from numpy import genfromtxt, zeros from math import pi import matplotlib.pyplot as plt from mpl_toolkits.basemap import Basemap map = genfromtxt('out.dat') N = 512 projection = 'cyl' # 'cyl', 'moll', 'ortho' save_as_png = False save_as_svg = False inside_map = zeros((int(N + 1), int(N / 2 + 1))) x = zeros((int(N ...
[ 6738, 299, 32152, 1330, 2429, 6738, 14116, 11, 1976, 27498, 198, 198, 6738, 10688, 1330, 31028, 198, 11748, 2603, 29487, 8019, 13, 9078, 29487, 355, 458, 83, 198, 6738, 285, 489, 62, 25981, 74, 896, 13, 12093, 368, 499, 1330, 6455, 36...
1.991197
568
from mtrack.cores import CoreSolver, CoreBuilder, DB from mtrack.preprocessing import g1_to_nml, Chunker, extract_maxima_candidates from mtrack.mt_utils import read_config, check_overlap from mtrack.graphs.g1_graph import G1 from solve import solve import numpy as np import h5py import os import multiprocessing, loggi...
[ 6738, 285, 11659, 13, 66, 2850, 1330, 7231, 50, 14375, 11, 7231, 32875, 11, 20137, 198, 6738, 285, 11659, 13, 3866, 36948, 1330, 308, 16, 62, 1462, 62, 77, 4029, 11, 609, 21705, 11, 7925, 62, 9806, 8083, 62, 46188, 37051, 198, 6738,...
1.863139
548
# -------------------------------------------------------- # Tensorflow Faster R-CNN # Licensed under The MIT License [see LICENSE for details] # Written by Xinlei Chen # -------------------------------------------------------- from __future__ import absolute_import from __future__ import division from __future__ impor...
[ 2, 20368, 22369, 198, 2, 309, 22854, 11125, 38996, 371, 12, 18474, 198, 2, 49962, 739, 383, 17168, 13789, 685, 3826, 38559, 24290, 329, 3307, 60, 198, 2, 22503, 416, 25426, 293, 72, 12555, 198, 2, 20368, 22369, 198, 6738, 11593, 37443...
2.287523
2,132
import glob from collections import Counter from typing import List import sys import os import json from preprocessing.scraping import JSONS_DIR sys.path.append(os.path.abspath(os.path.join(os.path.dirname(__file__), os.path.pardir)))
[ 11748, 15095, 198, 6738, 17268, 1330, 15034, 198, 6738, 19720, 1330, 7343, 198, 198, 11748, 25064, 198, 11748, 28686, 198, 11748, 33918, 198, 198, 6738, 662, 36948, 13, 1416, 2416, 278, 1330, 19449, 50, 62, 34720, 198, 198, 17597, 13, 6...
3.089744
78
from django.core.exceptions import ValidationError from django.utils.deconstruct import deconstructible # def validator_file_max_size_in_mb(max_size): # def validate_image(fieldfile_obj): # filesize = fieldfile_obj.file.size # megabyte_limit = 5.0 # if filesize > megabyte_limit * 1024 * 1...
[ 6738, 42625, 14208, 13, 7295, 13, 1069, 11755, 1330, 3254, 24765, 12331, 198, 6738, 42625, 14208, 13, 26791, 13, 12501, 261, 7249, 1330, 37431, 7249, 856, 628, 198, 198, 2, 825, 4938, 1352, 62, 7753, 62, 9806, 62, 7857, 62, 259, 62, ...
2.511111
180
from django.apps import AppConfig
[ 6738, 42625, 14208, 13, 18211, 1330, 2034, 16934, 628 ]
3.888889
9
# -*- coding: utf-8 -*- import pytest from rest_framework.status import HTTP_302_FOUND import allure from directory_tests_shared import URLs from tests.smoke.cms_api_helpers import get_and_assert pytestmark = [allure.suite("FAS redirects"), allure.feature("FAS redirects")] @allure.issue("CMS-1834", "Links to legacy...
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 11748, 12972, 9288, 198, 6738, 1334, 62, 30604, 13, 13376, 1330, 14626, 62, 22709, 62, 37, 15919, 198, 198, 11748, 477, 495, 198, 6738, 8619, 62, 41989, 62, 28710, 1330,...
2.095969
521
#!/usr/bin/env python # -*- coding: utf-8 -*- from __future__ import absolute_import from __future__ import division from __future__ import print_function import os import math import matplotlib matplotlib.use('agg') import matplotlib.pyplot as plt import numpy as np import sys TRANSFER_MB = 2 # Data transfered in me...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 198, 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 6738, 11593, 37443, 834, 1330, 4112, 62, 11748, 198, 6738, 11593, 37443, 834, 1330, 7297, 198, 6738, 11593, 37443, 834, ...
2.85
140
from __future__ import (absolute_import, division, print_function) """A setuptools based setup module. See: https://packaging.python.org/en/latest/distributing.html https://github.com/pypa/sampleproject """ import os from codecs import open from setuptools import find_packages, setup import versioneer here = os.p...
[ 6738, 11593, 37443, 834, 1330, 357, 48546, 62, 11748, 11, 7297, 11, 3601, 62, 8818, 8, 198, 198, 37811, 32, 900, 37623, 10141, 1912, 9058, 8265, 13, 198, 198, 6214, 25, 198, 5450, 1378, 8002, 3039, 13, 29412, 13, 2398, 14, 268, 14, ...
2.693816
663
# ---------------------------------------------------------------------- # Copyright (c) 2022 # # See the LICENSE file for details # see the AUTHORS file for authors # ---------------------------------------------------------------------- ################################# ## APPLICATION SPECIFIC WIDGETS # ############...
[ 2, 16529, 23031, 198, 2, 15069, 357, 66, 8, 33160, 198, 2, 198, 2, 4091, 262, 38559, 24290, 2393, 329, 3307, 198, 2, 766, 262, 37195, 20673, 2393, 329, 7035, 198, 2, 16529, 23031, 198, 198, 29113, 2, 198, 2235, 39421, 6234, 28196, ...
4.222222
306
"""ttLib.Chaining: Converting Chaining rules to TrueType.""" def lookup_type(self): """Mixin to determine the GSUB/GPOS lookup type of a fontFeatures.Chaining object Returns: integer GSUB/GPOS lookup type.""" if self.stage == "pos": return 8 else: return 6
[ 37811, 926, 25835, 13, 1925, 1397, 25, 35602, 889, 609, 1397, 3173, 284, 6407, 6030, 526, 15931, 198, 198, 4299, 35847, 62, 4906, 7, 944, 2599, 198, 220, 220, 220, 37227, 35608, 259, 284, 5004, 262, 26681, 10526, 14, 16960, 2640, 3584...
2.745283
106
import logging from django import forms from django.forms import ModelForm from django.contrib.auth import get_user_model from django.core.exceptions import ValidationError from .choices import ActionChoice from .choices import StatusApproval from .models import GreencheckIp from .models import GreencheckIpApprove fr...
[ 11748, 18931, 198, 198, 6738, 42625, 14208, 1330, 5107, 198, 6738, 42625, 14208, 13, 23914, 1330, 9104, 8479, 198, 6738, 42625, 14208, 13, 3642, 822, 13, 18439, 1330, 651, 62, 7220, 62, 19849, 198, 6738, 42625, 14208, 13, 7295, 13, 1069...
2.454731
1,469
>>> for n in (254, 255, 256, 257, -2+(1<<16), -1+(1<<16), 1<<16, 1+(1<<16), 0x200000, 0x1fffff ): print('int: %7i bin: %26s vlq: %35s vlq->int: %7i' % (n, tobits(n,_pad=True), tovlq(n), toint(tovlq(n)))) int: 254 bin: 11111110 vlq: 00000001_11111110 vlq->int: 254 int: ...
[ 33409, 329, 299, 287, 357, 24970, 11, 14280, 11, 17759, 11, 36100, 11, 532, 17, 33747, 16, 16791, 1433, 828, 532, 16, 33747, 16, 16791, 1433, 828, 352, 16791, 1433, 11, 352, 33747, 16, 16791, 1433, 828, 657, 87, 33470, 11, 657, 87, ...
1.883268
771
import myexman import torch import utils import datautils import os from logger import Logger import time import numpy as np from models import flows, distributions import matplotlib.pyplot as plt from algo.em import init_kmeans2plus_mu import warnings from sklearn.mixture import GaussianMixture import torch.nn.functio...
[ 11748, 616, 1069, 805, 198, 11748, 28034, 198, 11748, 3384, 4487, 198, 11748, 1366, 26791, 198, 11748, 28686, 198, 6738, 49706, 1330, 5972, 1362, 198, 11748, 640, 198, 11748, 299, 32152, 355, 45941, 198, 6738, 4981, 1330, 15623, 11, 24570...
2.436458
2,699
#!/usr/bin/env python3 from selenium import webdriver from selenium.webdriver.common.by import By from selenium.webdriver.support.ui import WebDriverWait from selenium.webdriver.support import expected_conditions as EC from datetime import datetime, timedelta from src.misc import check_n_mkdir, Logger from collections...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 18, 198, 198, 6738, 384, 11925, 1505, 1330, 3992, 26230, 198, 6738, 384, 11925, 1505, 13, 12384, 26230, 13, 11321, 13, 1525, 1330, 2750, 198, 6738, 384, 11925, 1505, 13, 12384, 26230, 13, 1...
3.495327
107
from blockkit.attributes import TextAttr from blockkit.generics import *
[ 6738, 2512, 15813, 13, 1078, 7657, 1330, 8255, 8086, 81, 198, 6738, 2512, 15813, 13, 8612, 873, 1330, 1635, 628, 198 ]
3.571429
21
from mock import patch from nose.tools import assert_true, assert_false, assert_raises from zabby.core.exceptions import WrongArgumentError from zabby.core.six import b from zabby.items.net import tcp
[ 6738, 15290, 1330, 8529, 198, 6738, 9686, 13, 31391, 1330, 6818, 62, 7942, 11, 6818, 62, 9562, 11, 6818, 62, 430, 2696, 198, 6738, 1976, 42457, 13, 7295, 13, 1069, 11755, 1330, 28843, 28100, 1713, 12331, 198, 198, 6738, 1976, 42457, 1...
3.5
58
import pytest from client.api import API PROJECT_NAME = "test_acl" USER_NAME = "test_artist" PASSWORD = "123.456.AbCd" ROLE_NAME = "test_artist_role" @pytest.fixture @pytest.mark.order(-1)
[ 11748, 12972, 9288, 198, 198, 6738, 5456, 13, 15042, 1330, 7824, 198, 198, 31190, 23680, 62, 20608, 796, 366, 9288, 62, 37779, 1, 198, 29904, 62, 20608, 796, 366, 9288, 62, 49016, 1, 198, 47924, 54, 12532, 796, 366, 10163, 13, 29228, ...
2.385542
83
# -*- coding: utf-8 -*- ''' process pdb file to calculate contact score and write to csv. main function is prosess_save2csv() usage: python3 RRCS_change.py file.pdb input .pdb output .csv ''' import sys # 当所有atom距离都大于 4.63 是不被记录的,应该计为0 # a function to eliminate 0 score from calc_contact() ...
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 201, 198, 201, 198, 7061, 6, 201, 198, 14681, 279, 9945, 2393, 284, 15284, 2800, 4776, 290, 3551, 284, 269, 21370, 13, 201, 198, 220, 220, 220, 1388, 2163, 318, 10360, 408,...
2.004173
4,313
# Begin # node 1 text A. # node 2 text B. # End
[ 198, 2, 16623, 198, 198, 2, 10139, 352, 2420, 317, 13, 198, 2, 10139, 362, 2420, 347, 13, 198, 198, 2, 5268, 198 ]
2.217391
23
from BasicDS.ArrayQueue import ArrayQueue if __name__ == "__main__": queue = ArrayQueue() for i in range(10): queue.enqueue(i) print(queue) if i % 3 == 2: queue.dequeue() print(queue)
[ 6738, 14392, 5258, 13, 19182, 34991, 1330, 15690, 34991, 198, 198, 361, 11593, 3672, 834, 6624, 366, 834, 12417, 834, 1298, 198, 220, 220, 220, 16834, 796, 15690, 34991, 3419, 628, 220, 220, 220, 329, 1312, 287, 2837, 7, 940, 2599, 19...
2.068376
117
import os, sys, numpy, torch, argparse, skimage, json, shutil from matplotlib.backends.backend_agg import FigureCanvasAgg as FigureCanvas from matplotlib.figure import Figure from matplotlib.ticker import MaxNLocator import matplotlib if __name__ == '__main__': main()
[ 11748, 28686, 11, 25064, 11, 299, 32152, 11, 28034, 11, 1822, 29572, 11, 1341, 9060, 11, 33918, 11, 4423, 346, 198, 6738, 2603, 29487, 8019, 13, 1891, 2412, 13, 1891, 437, 62, 9460, 1330, 11291, 6090, 11017, 46384, 355, 11291, 6090, 1...
3.113636
88
""" Root system data for type I """ from __future__ import absolute_import #***************************************************************************** # Copyright (C) 2008-2009 Nicolas M. Thiery <nthiery at users.sf.net>, # # Distributed under the terms of the GNU General Public License (GPL) # ...
[ 37811, 198, 30016, 1080, 1366, 329, 2099, 314, 198, 37811, 198, 6738, 11593, 37443, 834, 1330, 4112, 62, 11748, 198, 2, 17174, 17174, 4557, 35625, 198, 2, 220, 220, 220, 220, 220, 220, 15069, 357, 34, 8, 3648, 12, 10531, 29737, 337, ...
3.705882
136
# coding=utf-8 ########################### # file: util.py # date: 2021-7-16 # author: Sturmfy # desc: utility # version: # 2021-7-16 init design ###########################
[ 2, 19617, 28, 40477, 12, 23, 198, 198, 14468, 7804, 21017, 198, 2, 2393, 25, 7736, 13, 9078, 198, 2, 3128, 25, 33448, 12, 22, 12, 1433, 198, 2, 1772, 25, 26783, 76, 24928, 198, 2, 1715, 25, 10361, 198, 2, 2196, 25, 198, 2, 220...
3.034483
58
#!/usr/bin/env python # coding: utf-8 # # 5m - Df unification (10 calib. fn-s) import matplotlib.pyplot as plt import numpy as np import pandas as pd import os from os.path import join import pickle from copy import copy # In[7]: # MAIN IDENT_TAG = "28_05_pre" PATH_res = "data_1m_final_2805" COLUMNS = ["mod...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 198, 2, 19617, 25, 3384, 69, 12, 23, 198, 198, 2, 1303, 642, 76, 532, 360, 69, 49080, 357, 940, 27417, 13, 24714, 12, 82, 8, 198, 198, 11748, 2603, 29487, 8019, 13, 9078, 29487, 355, ...
2.085106
1,645
from django.conf.urls.static import static from django.contrib import admin from django.urls import path from . import views urlpatterns = [ path('add_user', views.UserCreateView.as_view(), name="add_user"), path('edit_user/<str:user_id>', views.UserEditView.as_view(), name="edit_user"), path('manag...
[ 6738, 42625, 14208, 13, 10414, 13, 6371, 82, 13, 12708, 1330, 9037, 198, 6738, 42625, 14208, 13, 3642, 822, 1330, 13169, 198, 6738, 42625, 14208, 13, 6371, 82, 1330, 3108, 198, 6738, 764, 1330, 5009, 628, 198, 6371, 33279, 82, 796, 68...
2.769231
286
import _thread import time import socket import copy from mctypes import ParseVarInt, PackVarInt from enums import Play, Login from handlers import Handler from senders import Sender from helpers import calculate_yaw_and_pitch
[ 11748, 4808, 16663, 198, 11748, 640, 198, 11748, 17802, 198, 11748, 4866, 198, 6738, 285, 310, 9497, 1330, 2547, 325, 19852, 5317, 11, 6400, 19852, 5317, 198, 6738, 551, 5700, 1330, 3811, 11, 23093, 198, 6738, 32847, 1330, 32412, 198, 6...
3.8
60
from flask import Flask, render_template, request, flash, redirect import pickle import numpy as np app = Flask(__name__) model = pickle.load(open("final_model.pkl", "rb")) @app.route("/", methods = ['GET','POST']) if __name__ == '__main__': app.run(debug = True)
[ 6738, 42903, 1330, 46947, 11, 8543, 62, 28243, 11, 2581, 11, 7644, 11, 18941, 201, 198, 11748, 2298, 293, 201, 198, 11748, 299, 32152, 355, 45941, 201, 198, 201, 198, 1324, 796, 46947, 7, 834, 3672, 834, 8, 201, 198, 201, 198, 19849...
2.635514
107
import aiohttp import asyncio import time start_time = time.time() asyncio.run(main()) print("--- %s seconds ---" % (time.time() - start_time))
[ 11748, 257, 952, 4023, 198, 11748, 30351, 952, 198, 11748, 640, 628, 198, 9688, 62, 2435, 796, 640, 13, 2435, 3419, 628, 198, 292, 13361, 952, 13, 5143, 7, 12417, 28955, 198, 4798, 7203, 6329, 4064, 82, 4201, 11420, 1, 4064, 357, 24...
2.846154
52
""" Parla supports simple task parallelism. .. testsetup:: T0 = None code = None from .cpu import cpu """ import logging import threading import inspect from abc import abstractmethod, ABCMeta from contextlib import asynccontextmanager, contextmanager, ExitStack from typing import Awaitable, Collection, ...
[ 37811, 198, 10044, 5031, 6971, 2829, 4876, 10730, 1042, 13, 198, 198, 492, 1332, 40406, 3712, 628, 220, 220, 220, 309, 15, 796, 6045, 198, 220, 220, 220, 2438, 796, 6045, 198, 220, 220, 220, 422, 764, 36166, 1330, 42804, 198, 198, 3...
2.462987
6,052
import os import logging
[ 11748, 28686, 198, 11748, 18931, 628, 198 ]
3.857143
7
#!/usr/bin/env python # -*- coding: utf-8 -*- """ Package: mesxr.calibration Module: plots Author: Patrick VanMeter Affiliation: Department of Physics, University of Wisconsin-Madison Last Updated: November 2018 Description: This module is used to generate common plots to analyse the ressults of the ME-SXR calibra...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 198, 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 37811, 198, 27813, 25, 18842, 87, 81, 13, 9948, 571, 1358, 198, 26796, 25, 21528, 198, 13838, 25, 9925, 6656, 44, 235...
2.093828
11,617
#!/usr/bin/env python3 """ BASICS Admin functionalities """ from flask import Flask, request import glob import os import time import base_functions as bf import remove_files as rmf app = Flask(__name__) GREYFISH_FOLDER = os.environ['greyfish_path']+"/sandbox/" # Gets a list of all available users, comma-se...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 18, 198, 198, 37811, 198, 33, 1921, 19505, 198, 198, 46787, 10345, 871, 198, 37811, 628, 198, 6738, 42903, 1330, 46947, 11, 2581, 198, 11748, 15095, 198, 11748, 28686, 198, 11748, 640, 198, ...
2.824074
216
""" Setup file"""
[ 37811, 31122, 2393, 37811, 201, 198 ]
3.166667
6
from translationstring import TranslationStringFactory from pyramid.config import Configurator from c2cwsgiutils.health_check import HealthCheck from pyramid.events import BeforeRender, NewRequest import c2cgeoform from pkg_resources import resource_filename from c2c.template.config import config as configuration fro...
[ 6738, 11059, 8841, 1330, 33322, 10100, 22810, 198, 6738, 27944, 13, 11250, 1330, 17056, 333, 1352, 198, 6738, 269, 17, 66, 18504, 12397, 26791, 13, 13948, 62, 9122, 1330, 3893, 9787, 198, 6738, 27944, 13, 31534, 1330, 7413, 45819, 11, 9...
2.795652
690
#!/usr/bin/env python """BaseballSerialParserCOM.py: Collects data from a Daktronics All Sport 5000 connected via port J2 to a Daktronics All Sport CG connected to a computer on COM port (defined on line 56), then parses data to a .csv readable by broadcasting programs. This file has only been tested using game code...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 198, 198, 37811, 14881, 1894, 32634, 46677, 9858, 13, 9078, 25, 9745, 82, 1366, 422, 257, 11775, 83, 20844, 1439, 12771, 23336, 5884, 2884, 2493, 449, 17, 284, 257, 220, 198, 35, 461, 83, ...
2.71202
1,639
#!/usr/bin/python # -*- coding: utf-8 -*- from imp import load_source from setuptools import setup version = load_source("version", "pylemon/__init__.py") setup( name="pylemon", version=version.__version__, license="MIT", description="python daemon to monitor specific directories and react on changes...
[ 2, 48443, 14629, 14, 8800, 14, 29412, 198, 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 198, 6738, 848, 1330, 3440, 62, 10459, 198, 6738, 900, 37623, 10141, 1330, 9058, 198, 198, 9641, 796, 3440, 62, 10459, 7203, ...
2.64486
535
#MenuTitle: Round All Kerns # -*- coding: utf-8 -*- __doc__=""" If there are any floating-point kern values in the font, this will round them to the nearest integer. """ font = Glyphs.font # print(font.kerning) # for each value in kerning dictionary for key, value in font.kerning.items(): for key, value in font....
[ 2, 23381, 19160, 25, 10485, 1439, 49132, 82, 198, 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 834, 15390, 834, 2625, 15931, 198, 1532, 612, 389, 597, 12462, 12, 4122, 479, 1142, 3815, 287, 262, 10369, 11, 428, 4...
2.660256
156
# coding=utf-8 # *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** import warnings import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union, overload from .. import...
[ 2, 19617, 28, 40477, 12, 23, 198, 2, 17202, 39410, 25, 428, 2393, 373, 7560, 416, 262, 21624, 12994, 24118, 687, 10290, 357, 27110, 5235, 8, 16984, 13, 17202, 198, 2, 17202, 2141, 407, 4370, 416, 1021, 4556, 345, 821, 1728, 345, 760...
2.855769
624
import tornado.gen import tornado.web from core.requesthandler import RequestHandler import core.util
[ 11748, 33718, 13, 5235, 198, 11748, 33718, 13, 12384, 198, 198, 6738, 4755, 13, 25927, 30281, 1330, 19390, 25060, 198, 11748, 4755, 13, 22602, 198 ]
4.12
25
#monotonous increase stack
[ 2, 2144, 18970, 516, 2620, 8931, 198 ]
3.857143
7
"""Problem 24: Lexographic permutations. Iteratively generate permutations""" import unittest def is_permutation(n, d): """Checks to see if n is a permutation of the digits 0-d.""" n = [int(i) for i in str(n)] if len(n) < d or len(n) > d+1: return False elif len(n) < d+1: n.insert(0, 0...
[ 37811, 40781, 1987, 25, 17210, 6826, 9943, 32855, 13, 198, 198, 29993, 9404, 7716, 9943, 32855, 37811, 198, 11748, 555, 715, 395, 198, 198, 4299, 318, 62, 16321, 7094, 7, 77, 11, 288, 2599, 198, 220, 220, 220, 37227, 7376, 4657, 284, ...
2.072614
482
import os.path from unittest import TestCase import numpy as np import pandas as pd from ipycli.notebookmanager import NotebookManager from IPython.utils.tempdir import TemporaryDirectory if __name__ == '__main__': import n...
[ 11748, 28686, 13, 6978, 198, 6738, 555, 715, 395, 1330, 6208, 20448, 198, 198, 11748, 299, 32152, 355, 45941, 198, 11748, 19798, 292, 355, 279, 67, 198, 198, 6738, 20966, 88, 44506, 13, 11295, 2070, 37153, 1330, 5740, 2070, 13511, 198, ...
1.712329
292
import ftplib import sys import os from lib.FTPUpload import FTPUpload if __name__ == '__main__': try: ftp_upload = FTPUpload(os.path.abspath('config/config.json')) ftp_upload.upload() except FileNotFoundError as error: sys.exit(f'File `{error.filename}` does not exist.') except ftp...
[ 11748, 10117, 489, 571, 198, 11748, 25064, 198, 11748, 28686, 198, 6738, 9195, 13, 9792, 5105, 7304, 1330, 19446, 5105, 7304, 198, 198, 361, 11593, 3672, 834, 6624, 705, 834, 12417, 834, 10354, 198, 220, 220, 220, 1949, 25, 198, 220, ...
2.337662
154
import unittest, time, sys, random, math, json sys.path.extend(['.','..','../..','py']) import h2o, h2o_cmd, h2o_kmeans, h2o_import as h2i, h2o_common import socket print "Assumes you ran ../build_for_clone.py in this directory" print "Using h2o-nodes.json. Also the sandbox dir" DELETE_KEYS_EACH_ITER = True DO_KMEANS...
[ 11748, 555, 715, 395, 11, 640, 11, 25064, 11, 4738, 11, 10688, 11, 33918, 198, 17597, 13, 6978, 13, 2302, 437, 7, 17816, 2637, 4032, 492, 41707, 40720, 492, 41707, 9078, 6, 12962, 198, 11748, 289, 17, 78, 11, 289, 17, 78, 62, 2875...
2.485149
202
from scipy.optimize import fsolve # apt-get install python-scipy #::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: # REFLEX TIMING #::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: # # | R0u R0d R1u ...
[ 6738, 629, 541, 88, 13, 40085, 1096, 1330, 43458, 6442, 201, 198, 2, 15409, 12, 1136, 2721, 21015, 12, 1416, 541, 88, 201, 198, 201, 198, 2, 43661, 43661, 43661, 43661, 43661, 43661, 43661, 43661, 43661, 43661, 24022, 25, 201, 198, 2,...
1.879068
2,274
from django.db import models from django.contrib.auth.models import User # Create your models here.
[ 6738, 42625, 14208, 13, 9945, 1330, 4981, 198, 6738, 42625, 14208, 13, 3642, 822, 13, 18439, 13, 27530, 1330, 11787, 628, 198, 2, 13610, 534, 4981, 994, 13, 628 ]
3.551724
29
from funlib.show.neuroglancer import add_layer, ScalePyramid import argparse import daisy import glob import neuroglancer import numpy as np import os import webbrowser from swc_parser import _parse_swc from pathlib import Path import itertools import random import logging ngid = itertools.count(start=1) parser = arg...
[ 6738, 1257, 8019, 13, 12860, 13, 710, 1434, 4743, 8250, 1330, 751, 62, 29289, 11, 21589, 20519, 20255, 198, 11748, 1822, 29572, 198, 11748, 12379, 13560, 198, 11748, 15095, 198, 11748, 7669, 4743, 8250, 198, 11748, 299, 32152, 355, 45941,...
2.38092
1,457
from .mpi import MPINonRootEventLoop, MPIRootEventLoop __all__ = [ "MPINonRootEventLoop", "MPIRootEventLoop", ]
[ 6738, 764, 3149, 72, 1330, 4904, 1268, 261, 30016, 9237, 39516, 11, 4904, 4663, 1025, 9237, 39516, 198, 198, 834, 439, 834, 796, 685, 198, 220, 220, 220, 366, 7378, 1268, 261, 30016, 9237, 39516, 1600, 198, 220, 220, 220, 366, 7378, ...
2.42
50
__author__ = "James Clark" __copyright__ = "Copyright 2020, F.R.A.M.E Project" __credits__ = ["James Clark"] __version__ = "1.0" # Import in necessary libraries import threading import time import sqlForGui import gui from datetime import datetime, date current_time_and_date = '' # Function that runs the system tim...
[ 834, 9800, 834, 796, 366, 14731, 11264, 1, 198, 834, 22163, 4766, 834, 796, 366, 15269, 12131, 11, 376, 13, 49, 13, 32, 13, 44, 13, 36, 4935, 1, 198, 834, 66, 20696, 834, 796, 14631, 14731, 11264, 8973, 198, 834, 9641, 834, 796, ...
3.878689
305
################################################################################ # _ ____ ___ _____ _ _ _ _ # # / \ / ___|_ _| |_ _|__ ___ | | | _(_) |_ # # / _ \| | | | | |/ _ \ / _ \| | |/ / | __| ...
[ 29113, 29113, 14468, 198, 2, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 4808, 220, 220, 220, 220, 1427, 46444, 220, 220, 220, 29343, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 4808, 4808...
1.897843
2,457
import logging from pure_aionsq.settings import loggerName _logger = logging.getLogger(loggerName) _logger.setLevel(logging.DEBUG) logger = _logger
[ 11748, 18931, 198, 198, 6738, 5899, 62, 64, 507, 80, 13, 33692, 1330, 49706, 5376, 628, 198, 62, 6404, 1362, 796, 18931, 13, 1136, 11187, 1362, 7, 6404, 1362, 5376, 8, 198, 62, 6404, 1362, 13, 2617, 4971, 7, 6404, 2667, 13, 30531, ...
2.903846
52
import json import os from time import sleep import paho.mqtt.client as mqtt from nhc2_coco.const import MQTT_TOPIC_PUBLIC_AUTH_RSP, MQTT_PROTOCOL, MQTT_TRANSPORT, MQTT_TOPIC_PUBLIC_AUTH_CMD class CoCoProfiles: """CoCoDiscover will collect a list of profiles on a NHC2 """
[ 11748, 33918, 198, 11748, 28686, 198, 6738, 640, 1330, 3993, 198, 198, 11748, 279, 17108, 13, 76, 80, 926, 13, 16366, 355, 285, 80, 926, 198, 198, 6738, 299, 71, 66, 17, 62, 66, 25634, 13, 9979, 1330, 337, 48, 15751, 62, 35222, 21...
2.375
120
# Copyright 2021 Hakan Kjellerstrand hakank@gmail.com # # 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, 33448, 24734, 272, 509, 73, 12368, 2536, 392, 387, 74, 962, 31, 14816, 13, 785, 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, ...
3.269799
745
# Copyright 2020 Google LLC # # 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, 12131, 3012, 11419, 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, 743, 733...
2.910105
1,613
''' Created on 14/9/2015 @author: victor ''' import sys import numpy from nma_algo_char.data_retrieval import calculate_rmsds if __name__ == '__main__': current_coords = numpy.delete(numpy.loadtxt(sys.argv[1]),0,1) proposal_coords = numpy.delete(numpy.loadtxt(sys.argv[2]),0,1) anm_final_coords = numpy.del...
[ 7061, 6, 198, 41972, 319, 1478, 14, 24, 14, 4626, 198, 198, 31, 9800, 25, 2210, 273, 198, 7061, 6, 198, 11748, 25064, 198, 11748, 299, 32152, 198, 6738, 299, 2611, 62, 282, 2188, 62, 10641, 13, 7890, 62, 1186, 380, 18206, 1330, 15...
2.017331
577
# # @lc app=leetcode id=355 lang=python3 # # [355] Design Twitter # import collections import heapq # @lc code=start # Your Twitter object will be instantiated and called as such: # obj = Twitter() # obj.postTweet(1,5) # param_2 = obj.getNewsFeed(1) # obj.follow(1,2) # obj.postTweet(2,6) # param_2 = obj.getNewsFeed(1...
[ 2, 198, 2, 2488, 44601, 598, 28, 293, 316, 8189, 4686, 28, 28567, 42392, 28, 29412, 18, 198, 2, 198, 2, 685, 28567, 60, 8495, 3009, 198, 2, 198, 11748, 17268, 198, 11748, 24575, 80, 198, 2, 2488, 44601, 2438, 28, 9688, 628, 198, ...
2.551948
154
from __future__ import absolute_import import json import logging
[ 6738, 11593, 37443, 834, 1330, 4112, 62, 11748, 198, 198, 11748, 33918, 198, 11748, 18931, 628 ]
4.25
16
from django.apps import AppConfig
[ 6738, 42625, 14208, 13, 18211, 1330, 2034, 16934, 628 ]
3.888889
9
#!/usr/bin/env python3 import json import gzip MAX = 1000 if __name__ == "__main__": with gzip.open("./tests/testdata.ldj.gz", "wt") as outp: for n in range(0, MAX): print(json.dumps({"foo": n, "bar": MAX-n, "baz": "test{}".format(n) ...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 18, 198, 11748, 33918, 198, 11748, 308, 13344, 198, 198, 22921, 796, 8576, 198, 198, 361, 11593, 3672, 834, 6624, 366, 834, 12417, 834, 1298, 198, 220, 220, 220, 351, 308, 13344, 13, 9654, ...
1.67757
214
from discord import Embed, DMChannel, File import os
[ 6738, 36446, 1330, 13302, 276, 11, 14848, 29239, 11, 9220, 198, 11748, 28686, 628 ]
3.857143
14
import os import urllib.request import csv csv_file_path = 'mathscinet.csv' urllib.request.urlretrieve('https://mathscinet.ams.org/msnhtml/annser.csv', csv_file_path) with open(csv_file_path, mode='r') as csv_file, open('journal_abbreviations_mathematics.txt', mode='w') as abbreviations_file: abbreviations_file =...
[ 11748, 28686, 198, 11748, 2956, 297, 571, 13, 25927, 198, 11748, 269, 21370, 198, 198, 40664, 62, 7753, 62, 6978, 796, 705, 11018, 1416, 42504, 13, 40664, 6, 198, 333, 297, 571, 13, 25927, 13, 6371, 1186, 30227, 10786, 5450, 1378, 110...
2.37464
347