content
stringlengths
1
1.04M
input_ids
listlengths
1
774k
ratio_char_token
float64
0.38
22.9
token_count
int64
1
774k
from django.conf import settings from django.db import models import pyotp class UserPSK(models.Model): """Strores custom secret key per user""" user = models.OneToOneField(settings.AUTH_USER_MODEL, related_name='psk', on_delete=models.CASCADE) secret_key = models.CharField(max_length=16, default=pyotp.r...
[ 6738, 42625, 14208, 13, 10414, 1330, 6460, 198, 6738, 42625, 14208, 13, 9945, 1330, 4981, 198, 11748, 12972, 313, 79, 628, 198, 4871, 11787, 3705, 42, 7, 27530, 13, 17633, 2599, 198, 220, 220, 220, 37227, 1273, 305, 411, 2183, 3200, 1...
2.87931
116
import sunspec2.modbus.client as client import pytest import socket import sunspec2.tests.mock_socket as MockSocket import serial import sunspec2.tests.mock_port as MockPort if __name__ == "__main__": pass
[ 11748, 4252, 16684, 17, 13, 4666, 10885, 13, 16366, 355, 5456, 198, 11748, 12972, 9288, 198, 11748, 17802, 198, 11748, 4252, 16684, 17, 13, 41989, 13, 76, 735, 62, 44971, 355, 44123, 39105, 198, 11748, 11389, 198, 11748, 4252, 16684, 17...
3.041667
72
import os import glob import numpy as np import networkx as nx import peleffy from frag_pele.constants import SCHRODINGER from peleffy.topology import Topology from peleffy.forcefield import OpenForceField, OPLS2005ForceField from peleffy.topology import Molecule from peleffy.utils import Logger from peleffy.topology i...
[ 11748, 28686, 198, 11748, 15095, 198, 11748, 299, 32152, 355, 45941, 198, 11748, 3127, 87, 355, 299, 87, 198, 11748, 613, 293, 487, 88, 198, 6738, 7956, 62, 431, 293, 13, 9979, 1187, 1330, 22374, 49, 3727, 2751, 1137, 198, 6738, 613, ...
2.516547
1,390
import re from unittest.case import TestCase from unittest.mock import MagicMock, patch, ANY from samcli.lib.utils.path_observer import HandlerObserver, PathHandler, StaticFolderWrapper
[ 11748, 302, 198, 6738, 555, 715, 395, 13, 7442, 1330, 6208, 20448, 198, 6738, 555, 715, 395, 13, 76, 735, 1330, 6139, 44, 735, 11, 8529, 11, 15529, 198, 6738, 6072, 44506, 13, 8019, 13, 26791, 13, 6978, 62, 672, 15388, 1330, 32412, ...
3.436364
55
#!/usr/bin/env python3 # # Copyright IBM Corp. 2016 All Rights Reserved # # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless require...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 18, 198, 198, 2, 198, 2, 15069, 19764, 11421, 13, 1584, 1439, 6923, 33876, 198, 2, 198, 2, 49962, 739, 262, 24843, 13789, 11, 10628, 362, 13, 15, 357, 1169, 366, 34156, 15341, 345, 743, ...
2.421168
3,647
"""Tools to plot basemaps""" import warnings import numpy as np from . import providers from xyzservices import TileProvider from .tile import bounds2img, _sm2ll, warp_tiles, _warper from rasterio.enums import Resampling from rasterio.warp import transform_bounds from matplotlib import patheffects from matplotlib.pypl...
[ 37811, 33637, 284, 7110, 1615, 368, 1686, 37811, 198, 198, 11748, 14601, 198, 11748, 299, 32152, 355, 45941, 198, 6738, 764, 1330, 9549, 198, 6738, 2124, 45579, 30416, 1330, 47870, 29495, 198, 6738, 764, 40927, 1330, 22303, 17, 9600, 11, ...
2.224881
4,429
# -*- coding: utf-8 -*-# ''' # Name: math_graph # Description: # Author: neu # Date: 2020/7/28 ''' import numpy as np import pandas as pd from scipy.sparse.linalg import eigs import scipy.sparse as sp from scipy.sparse.linalg.eigen.arpack import eigsh, ArpackNoConvergence def weight_matrix(f...
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 2, 198, 7061, 6, 198, 2, 6530, 25, 220, 220, 220, 220, 220, 220, 220, 220, 10688, 62, 34960, 198, 2, 12489, 25, 220, 220, 198, 2, 6434, 25, 220, 220, 220, 220, 220, 2...
1.736568
2,494
# This script illustrates the stability of learning vITL # for emotion transfer in the presence of missing data # Runtime ~1h on laptop # ---------------------------------- # Imports # ---------------------------------- import os import torch import matplotlib.pyplot as plt import sys import importlib if importlib.uti...
[ 2, 770, 4226, 21290, 262, 10159, 286, 4673, 410, 2043, 43, 198, 2, 329, 9942, 4351, 287, 262, 4931, 286, 4814, 1366, 198, 2, 43160, 5299, 16, 71, 319, 13224, 198, 2, 20368, 438, 198, 2, 1846, 3742, 198, 2, 20368, 438, 198, 11748, ...
2.57011
1,733
# -*- coding: utf-8 -*- # Copyright (c) 2015, Frappe Technologies and Contributors # See license.txt from __future__ import unicode_literals import frappe import unittest # test_records = frappe.get_test_records('Integration Service')
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 2, 15069, 357, 66, 8, 1853, 11, 39313, 27768, 21852, 290, 25767, 669, 198, 2, 4091, 5964, 13, 14116, 198, 6738, 11593, 37443, 834, 1330, 28000, 1098, 62, 17201, 874, 1...
3.077922
77
# -*- coding: utf-8 -*- # Generated by the protocol buffer compiler. DO NOT EDIT! # source: containerd/events/content.proto """Generated protocol buffer code.""" from google.protobuf import descriptor as _descriptor from google.protobuf import message as _message from google.protobuf import reflection as _reflection f...
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 2, 2980, 515, 416, 262, 8435, 11876, 17050, 13, 220, 8410, 5626, 48483, 0, 198, 2, 2723, 25, 9290, 67, 14, 31534, 14, 11299, 13, 1676, 1462, 198, 37811, 8645, 515, 8...
2.592561
1,156
#Embedded_ImageProcessing, Just for StyleGAN_v1 FFHQ import numpy as np import math import torch import torchvision import model.E.E_Blur as BE from model.stylegan1.net import Generator, Mapping #StyleGANv1 #Params use_gpu = False device = torch.device("cuda" if use_gpu else "cpu") img_size = 1024 GAN_path = './checkp...
[ 2, 31567, 47238, 62, 5159, 18709, 278, 11, 2329, 329, 17738, 45028, 62, 85, 16, 18402, 41275, 198, 11748, 299, 32152, 355, 45941, 198, 11748, 10688, 198, 11748, 28034, 198, 11748, 28034, 10178, 198, 11748, 2746, 13, 36, 13, 36, 62, 36...
2.348925
791
from django.conf.urls import url from . import views from board.views import PostDelete urlpatterns = [ url(r'^$', views.index, name='index'), url(r'^login/$', views.login, name='login'), url(r'^logout/$', views.logout, name='logout'), url(r'^register/$', views.register, name='register'), url(r'^delete/(...
[ 6738, 42625, 14208, 13, 10414, 13, 6371, 82, 1330, 19016, 198, 6738, 764, 1330, 5009, 198, 6738, 3096, 13, 33571, 1330, 2947, 38727, 198, 198, 6371, 33279, 82, 796, 685, 198, 220, 220, 220, 19016, 7, 81, 6, 61, 3, 3256, 5009, 13, ...
2.590278
144
# -*- coding: utf-8 -*- from app.common.target_urls import SHOP_GX_ID from app.planes.jet_plane import JetPlane
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 6738, 598, 13, 11321, 13, 16793, 62, 6371, 82, 1330, 6006, 3185, 62, 38, 55, 62, 2389, 198, 6738, 598, 13, 22587, 13, 31173, 62, 14382, 1330, 19013, 3646, 1531, 628 ]
2.511111
45
from uuid import uuid4 from ckeditor_uploader.fields import RichTextUploadingField from django.conf import settings from django.db import models from question.models import * User = settings.AUTH_USER_MODEL
[ 6738, 334, 27112, 1330, 334, 27112, 19, 198, 198, 6738, 269, 9091, 2072, 62, 25850, 263, 13, 25747, 1330, 3998, 8206, 41592, 278, 15878, 198, 6738, 42625, 14208, 13, 10414, 1330, 6460, 198, 6738, 42625, 14208, 13, 9945, 1330, 4981, 198,...
3.403226
62
>>> ' '.join(''.join(''.join(['' if i%3 else 'F', '' if i%5 else 'B']) or str('00')) for i in range(1,16)) '00 00 F 00 B F 00 00 F B 00 F 00 00 FB' >>> _ '00 00 F 00 B F 00 00 F B 00 F 00 00 FB' >>> _.replace('FB','11').replace('F',...
[ 33409, 705, 45302, 22179, 10786, 4458, 22179, 10786, 4458, 22179, 26933, 7061, 611, 1312, 4, 18, 2073, 705, 37, 3256, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220,...
1.866667
285
# -*- coding: utf-8 -*- from flask import Flask, request, render_template, g, session, redirect, current_app from flask_locale import Locale, _ app = Flask(__name__) # DEFAULT_LOCALE is the language used for keys ins translation files: app.config['DEFAULT_LOCALE'] = 'tr_TR' app.config['LOCALE_PATH'] = 'translations' ...
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 198, 6738, 42903, 1330, 46947, 11, 2581, 11, 8543, 62, 28243, 11, 308, 11, 6246, 11, 18941, 11, 1459, 62, 1324, 198, 6738, 42903, 62, 17946, 1000, 1330, 15181, 1000, 1...
2.731183
186
import os import torch import numpy as np import nn.vnn as vnn import collections from torch import nn from torch.nn import functional as F from torch.nn.utils.rnn import pad_sequence, pack_padded_sequence, pad_packed_sequence from model.seq2seq import Module as Base from models.utils.metric import compute_f1, compute_...
[ 11748, 28686, 198, 11748, 28034, 198, 11748, 299, 32152, 355, 45941, 198, 11748, 299, 77, 13, 85, 20471, 355, 410, 20471, 198, 11748, 17268, 198, 6738, 28034, 1330, 299, 77, 198, 6738, 28034, 13, 20471, 1330, 10345, 355, 376, 198, 6738,...
3.417323
127
import logging import requests from stellar_base.builder import Builder from stellar_base.keypair import Keypair logger = logging.getLogger(__name__)
[ 11748, 18931, 198, 198, 11748, 7007, 198, 6738, 25041, 62, 8692, 13, 38272, 1330, 35869, 198, 6738, 25041, 62, 8692, 13, 2539, 24874, 1330, 7383, 24874, 628, 198, 6404, 1362, 796, 18931, 13, 1136, 11187, 1362, 7, 834, 3672, 834, 8, 62...
3.627907
43
import torch parameters = [torch.autograd.Variable(torch.FloatTensor([0, 0, 0]), requires_grad=True)] optimizer = torch.optim.SGD(parameters, lr=0.1, momentum=0.9) scheduler = torch.optim.lr_scheduler.ReduceLROnPlateau(optimizer, verbose=True) for _ in range(100): scheduler.step(.1) lrs = get_lrs() lr...
[ 198, 198, 11748, 28034, 198, 198, 17143, 7307, 796, 685, 13165, 354, 13, 2306, 519, 6335, 13, 43015, 7, 13165, 354, 13, 43879, 51, 22854, 26933, 15, 11, 657, 11, 657, 46570, 4433, 62, 9744, 28, 17821, 15437, 198, 40085, 7509, 796, 2...
2.245714
175
# Copyright (c) Facebook, Inc. and its affiliates. # # This source code is licensed under the MIT license found in the # LICENSE file in the root directory of this source tree. from typing import Dict, Sequence, Tuple, List import collections import json import re from fairdiplomacy.models.consts import POWERS, N_SCS...
[ 2, 15069, 357, 66, 8, 3203, 11, 3457, 13, 290, 663, 29116, 13, 198, 2, 198, 2, 770, 2723, 2438, 318, 11971, 739, 262, 17168, 5964, 1043, 287, 262, 198, 2, 38559, 24290, 2393, 287, 262, 6808, 8619, 286, 428, 2723, 5509, 13, 198, ...
2.473583
1,041
# -------------- # Import packages import numpy as np import pandas as pd from scipy.stats import mode bank=pd.read_csv(path) #print(bank) # code starts here categorical_var=bank.select_dtypes(include = 'object') print(categorical_var) numerical_var=bank.select_dtypes(include = 'number') print(numerical_var) ...
[ 2, 220, 26171, 198, 2, 17267, 10392, 198, 11748, 299, 32152, 355, 45941, 198, 11748, 19798, 292, 355, 279, 67, 198, 6738, 629, 541, 88, 13, 34242, 1330, 4235, 220, 198, 220, 628, 198, 17796, 28, 30094, 13, 961, 62, 40664, 7, 6978, ...
2.623509
587
import torch import torch.nn.functional as F from torch.utils.data import Sampler import math def top_filtering(logits, top_k=0, top_p=0.0, threshold=-float('Inf'), filter_value=-float('Inf')): """ Filter a distribution of logits using top-k, top-p (nucleus) and/or threshold filtering Args: logits: l...
[ 11748, 28034, 198, 11748, 28034, 13, 20471, 13, 45124, 355, 376, 198, 6738, 28034, 13, 26791, 13, 7890, 1330, 3409, 20053, 198, 11748, 10688, 198, 198, 4299, 1353, 62, 10379, 20212, 7, 6404, 896, 11, 1353, 62, 74, 28, 15, 11, 1353, ...
3.058612
836
if __name__ == '__main__': # first we have to create the vertices (nodes) node1 = Node("A") node2 = Node("B") node3 = Node("C") node4 = Node("D") node5 = Node("E") # handle and set the neighbors accordingly node1.adjacency_list.append(node2) node1.adjacency_list.append(node3) ...
[ 628, 198, 361, 11593, 3672, 834, 6624, 705, 834, 12417, 834, 10354, 628, 220, 220, 220, 1303, 717, 356, 423, 284, 2251, 262, 9421, 1063, 357, 77, 4147, 8, 198, 220, 220, 220, 10139, 16, 796, 19081, 7203, 32, 4943, 198, 220, 220, 2...
2.342105
190
#!/usr/bin/env python2.7 import sys import json data = load_seeds(sys.stdin) n = len(data) intervals = [] for (a, b, count) in make_bins(data): intervals.append({'start': a, 'stop': b, 'prob': (100.0*count)/n}) print(json.dumps(intervals))
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 17, 13, 22, 198, 198, 11748, 25064, 198, 11748, 33918, 198, 198, 7890, 796, 3440, 62, 325, 5379, 7, 17597, 13, 19282, 259, 8, 198, 77, 796, 18896, 7, 7890, 8, 198, 3849, 12786, 796, 176...
2.378641
103
from flask import Flask from flask_restly import FlaskRestly from flask_restly.decorator import resource, get app = Flask(__name__) # json is default serializer # from flask_restly.serializer import json # app.config['RESTLY_SERIALIZER'] = json rest = FlaskRestly(app) rest.init_app(app) @resource(name='employees'...
[ 6738, 42903, 1330, 46947, 198, 6738, 42903, 62, 2118, 306, 1330, 46947, 19452, 306, 198, 6738, 42903, 62, 2118, 306, 13, 12501, 273, 1352, 1330, 8271, 11, 651, 628, 198, 1324, 796, 46947, 7, 834, 3672, 834, 8, 198, 198, 2, 33918, 31...
2.83125
160
# -*- coding: utf-8 -*- # # Copyright (c) 2018~2999 - Cologler <skyoflw@gmail.com> # ---------- # # ---------- from abc import abstractmethod, ABC from enum import Enum from inspect import signature, Parameter from typing import Any from threading import RLock import inspect import contextlib from .symbols import Sym...
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 2, 198, 2, 15069, 357, 66, 8, 2864, 93, 1959, 2079, 532, 327, 928, 1754, 1279, 15688, 1659, 75, 86, 31, 14816, 13, 785, 29, 198, 2, 24200, 438, 198, 2, 198, 2, 2...
2.558743
732
from ctzzy._version import __version__
[ 6738, 269, 83, 31570, 13557, 9641, 1330, 11593, 9641, 834 ]
3.8
10
#!/usr/bin/env python import getopt import sys import dpkt import pcap if __name__.rpartition(".")[-1] == "__main__": main()
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 198, 198, 11748, 651, 8738, 198, 11748, 25064, 198, 198, 11748, 288, 79, 21841, 198, 11748, 279, 11128, 628, 628, 628, 198, 198, 361, 11593, 3672, 834, 13, 81, 3911, 653, 7203, 19570, 58, ...
2.37931
58
""" Consumer factories. """ from microcosm.api import defaults from microcosm.object_graph import ObjectGraph from microcosm_sagemaker.artifact import RootInputArtifact @defaults( perform_load=True, ) def load_active_bundle_and_dependencies(graph: ObjectGraph): """ Loads the active bundle and its depe...
[ 37811, 198, 49106, 17590, 13, 198, 198, 37811, 198, 6738, 4580, 6966, 76, 13, 15042, 1330, 26235, 198, 6738, 4580, 6966, 76, 13, 15252, 62, 34960, 1330, 9515, 37065, 198, 198, 6738, 4580, 6966, 76, 62, 82, 363, 32174, 13, 433, 29660, ...
2.605598
393
#!/usr/bin/python3 # Copyright (C) 2021 Sam Steele # 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, 48443, 14629, 14, 8800, 14, 29412, 18, 198, 198, 2, 220, 15069, 357, 34, 8, 33448, 3409, 28549, 198, 2, 220, 49962, 739, 262, 24843, 13789, 11, 10628, 362, 13, 15, 357, 1169, 366, 34156, 15341, 198, 2, 220, 345, 743, 407, 779, ...
3.553488
215
# -*- coding: utf-8 -*- import unittest import numpy as np import pandas as pd import random from collections import OrderedDict from testfixtures import TempDirectory import os from .. import excel def test_suite(): """Test suite including all test suites""" testSuite = unittest.TestSuite() testSuite....
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 198, 11748, 555, 715, 395, 198, 11748, 299, 32152, 355, 45941, 198, 11748, 19798, 292, 355, 279, 67, 198, 11748, 4738, 198, 6738, 17268, 1330, 14230, 1068, 35, 713, 198,...
2.700893
224
import paho.mqtt.client as mqtt import ssl import json import utils #======================================================================= # program that replaces te physical potentiometer # it sends a value between 0 and 255 that emulates the signal from potentiometer # to the topic sub_topic defined in the general ...
[ 11748, 279, 17108, 13, 76, 80, 926, 13, 16366, 355, 285, 80, 926, 198, 11748, 264, 6649, 198, 11748, 33918, 198, 11748, 3384, 4487, 198, 2, 23926, 1421, 18604, 198, 2, 1430, 326, 24020, 573, 3518, 16739, 72, 15635, 198, 2, 340, 1280...
4.581769
373
"""Feature temporal aggregation functions""" from abc import ABC import numpy as np class Aggregator(): """Aggregates temporal values""" def update_statistics(self, instances): """Identify statistics to standardize each feature""" for fidx, _ in enumerate(self._aggregation_fns): ...
[ 37811, 38816, 21964, 46500, 5499, 37811, 198, 198, 6738, 450, 66, 1330, 9738, 198, 198, 11748, 299, 32152, 355, 45941, 628, 198, 4871, 19015, 2301, 1352, 33529, 198, 220, 220, 220, 37227, 46384, 2301, 689, 21964, 3815, 37811, 628, 220, ...
2.829897
970
#!/usr/bin/python3 import getpass import subprocess import glob import time import os import re import socket from datetime import datetime from pprint import pprint """ Pull Charlesreid1.com - Rojo This script pulls the latest version of charlesreid1.com source. """ if __name__=="__main__": host = socket.g...
[ 2, 48443, 14629, 14, 8800, 14, 29412, 18, 198, 11748, 651, 6603, 198, 11748, 850, 14681, 198, 11748, 15095, 198, 11748, 640, 198, 11748, 28686, 198, 11748, 302, 198, 11748, 17802, 198, 6738, 4818, 8079, 1330, 4818, 8079, 198, 6738, 279,...
2.794393
214
a1=1 a2=1+a<caret>
[ 64, 16, 28, 16, 198, 64, 17, 28, 16, 10, 64, 27, 6651, 83, 29 ]
1.2
15
#!/usr/bin/python # -*- coding: utf-8 -*- # # Copyright 2010 British Broadcasting Corporation and Kamaelia Contributors(1) # # (1) Kamaelia Contributors are listed in the AUTHORS file and at # http://www.kamaelia.org/AUTHORS - please extend this file, # not this notice. # # Licensed under the Apache License, Ve...
[ 2, 48443, 14629, 14, 8800, 14, 29412, 198, 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 2, 198, 2, 15069, 3050, 3517, 32250, 10501, 290, 509, 1689, 25418, 25767, 669, 7, 16, 8, 198, 2, 198, 2, 357, 16, 8, 509...
3.684028
288
from typing import List PRICES = { 1: 800, 2: 1520, 3: 2160, 4: 2560, 5: 3000, }
[ 6738, 19720, 1330, 7343, 198, 198, 4805, 34444, 796, 1391, 198, 220, 220, 220, 352, 25, 10460, 11, 198, 220, 220, 220, 362, 25, 1315, 1238, 11, 198, 220, 220, 220, 513, 25, 362, 14198, 11, 198, 220, 220, 220, 604, 25, 1679, 1899, ...
1.810345
58
from FrEIA import framework as fr from FrEIA import modules as la import torch import torchvision.models as models import torch.nn as nn import numpy as np def get_vgg16(): """ Get features from pretrained VGG16 model. :return: partial VGG16 model, which takes ImageNet images and return feature0 """ ...
[ 6738, 1305, 36, 3539, 1330, 9355, 355, 1216, 198, 6738, 1305, 36, 3539, 1330, 13103, 355, 8591, 198, 11748, 28034, 198, 11748, 28034, 10178, 13, 27530, 355, 4981, 198, 11748, 28034, 13, 20471, 355, 299, 77, 198, 11748, 299, 32152, 355, ...
2.447876
518
""" Sets up reverse proxy in the application - app's reverse proxy dynamically reroutes communication between web-server's client and dynamic-backend services (or dyb's) - couples director with reverse_proxy subsystems Use case - All requests to `/x/{serviceId}/{proxyPath}` are re-routed to a dyb se...
[ 37811, 21394, 510, 9575, 15741, 287, 262, 3586, 628, 220, 220, 220, 532, 598, 338, 9575, 15741, 32366, 302, 81, 448, 274, 6946, 1022, 3992, 12, 15388, 338, 5456, 198, 220, 220, 220, 290, 8925, 12, 1891, 437, 2594, 220, 357, 273, 202...
3.219178
292
import re from therandy.utils import for_app regex = re.compile(r'Run "(.*)" instead') @for_app('yarn', at_least=1)
[ 11748, 302, 198, 6738, 10811, 10757, 13, 26791, 1330, 329, 62, 1324, 198, 198, 260, 25636, 796, 302, 13, 5589, 576, 7, 81, 6, 10987, 30629, 15885, 16725, 2427, 11537, 628, 198, 31, 1640, 62, 1324, 10786, 88, 1501, 3256, 379, 62, 293...
2.5
48
import torch import functools __all__ = [ "VisibilityFOV", "VisibilityHeatmap" ]
[ 11748, 28034, 198, 198, 11748, 1257, 310, 10141, 198, 198, 834, 439, 834, 796, 685, 198, 220, 220, 220, 366, 15854, 2247, 6080, 53, 1600, 198, 220, 220, 220, 366, 15854, 2247, 39596, 8899, 1, 198, 60, 628, 198 ]
2.384615
39
from __future__ import absolute_import from __future__ import print_function from __future__ import division from mwptoolkit.module.Embedder import basic_embedder,bert_embedder,position_embedder,roberta_embedder
[ 6738, 11593, 37443, 834, 1330, 4112, 62, 11748, 198, 6738, 11593, 37443, 834, 1330, 3601, 62, 8818, 198, 6738, 11593, 37443, 834, 1330, 7297, 198, 6738, 285, 86, 457, 970, 15813, 13, 21412, 13, 31567, 276, 1082, 1330, 4096, 62, 20521, ...
3.576271
59
#!/usr/bin/env python # -*- coding: utf-8 -*- """ CIE UCS Colourspace =================== Defines the *CIE UCS* colourspace transformations: - :func:`XYZ_to_UCS` - :func:`UCS_to_XYZ` - :func:`UCS_to_uv` - :func:`UCS_uv_to_xy` See Also -------- `CIE UCS Colourspace IPython Notebook <http://nbviewer.ipython.o...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 198, 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 198, 37811, 198, 34, 10008, 49553, 38773, 13200, 198, 4770, 18604, 198, 198, 7469, 1127, 262, 1635, 34, 10008, 49553, 9...
2.226277
2,055
import numpy as np import torch import torch.nn as nn import torch.nn.functional as F from torch.nn.utils.rnn import pad_sequence, pack_padded_sequence, pad_packed_sequence # from config import burn_in_length
[ 11748, 299, 32152, 355, 45941, 198, 198, 11748, 28034, 198, 11748, 28034, 13, 20471, 355, 299, 77, 198, 11748, 28034, 13, 20471, 13, 45124, 355, 376, 198, 198, 6738, 28034, 13, 20471, 13, 26791, 13, 81, 20471, 1330, 14841, 62, 43167, ...
3.212121
66
import psutil import time import GPUtil import csv import pandas as pd # process_name = 'LiDAR360.exe' name = psutil.Process(15500) name_1 = psutil.Process(9996) name_2 = psutil.Process(1476) name_3 = psutil.Process(14976) print(name.pid) # print("Hello") sleep_time = 2 mins = 60 # start = time.time() ...
[ 11748, 26692, 22602, 201, 198, 11748, 640, 201, 198, 11748, 11362, 47163, 201, 198, 11748, 269, 21370, 201, 198, 11748, 19798, 292, 355, 279, 67, 201, 198, 2, 1429, 62, 3672, 796, 705, 32304, 35, 1503, 15277, 13, 13499, 6, 201, 198, ...
2.039185
1,276
#!/usr/bin/env python # Copyright 2016 Google Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 198, 198, 2, 15069, 1584, 3012, 3457, 13, 198, 2, 198, 2, 49962, 739, 262, 24843, 13789, 11, 10628, 362, 13, 15, 357, 1169, 366, 34156, 15341, 198, 2, 345, 743, 407, 779, 428, 2393, 284...
2.966321
772
# ____ _ _ # | _ \ _ __ ___ (_) ___ ___| |_ # | |_) | '__/ _ \| |/ _ \/ __| __| # | __/| | | (_) | | __/ (__| |_ # |_| _|_| \___// |\___|\___|\__| # | | | | __ _ _|__/ ___| |_ __ _ ___| | __ # | |_| |/ _` | | | / __| __/ _` |/ __| |/ / # | _ | (_| | |_| \__ \ || (_| |...
[ 2, 220, 220, 220, 220, 1427, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 4808, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 4808, 220, 220, 220, 198, 2, 220, 220, 930, 220, 4808, 3467, 4808, 11593, 46444, 44104, ...
2.107078
551
# (C) Copyright 2017 IBM Corp. # (C) Copyright 2017 Inova Development Inc. # All Rights Reserved # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-...
[ 2, 357, 34, 8, 15069, 2177, 19764, 11421, 13, 198, 2, 357, 34, 8, 15069, 2177, 554, 10071, 7712, 3457, 13, 198, 2, 1439, 6923, 33876, 198, 2, 198, 2, 49962, 739, 262, 24843, 13789, 11, 10628, 362, 13, 15, 357, 1169, 366, 34156, ...
2.206144
14,257
from setuptools import setup packages = ["atop_raw", "atop_raw.headers"] install_requires = ["numpy"] extras_require = {"pycstruct": ["pycstruct >= 0.9"]} package_data = {"atop_raw.headers": ["*.h"]} setup( name="atop_raw", version="2", packages=packages, extras_require=extras_require, package...
[ 6738, 900, 37623, 10141, 1330, 9058, 628, 198, 43789, 796, 14631, 265, 404, 62, 1831, 1600, 366, 265, 404, 62, 1831, 13, 50145, 8973, 198, 198, 17350, 62, 47911, 796, 14631, 77, 32152, 8973, 198, 198, 2302, 8847, 62, 46115, 796, 19779...
2.688623
167
import time import numpy as np from equipment.custom import mmwave_source from equipment.srs import lockin from equipment.hittite import signal_generator from kid_readout.interactive import * from kid_readout.equipment import hardware from kid_readout.measurement import acquire from kid_readout.roach import analog #...
[ 11748, 640, 198, 198, 11748, 299, 32152, 355, 45941, 198, 6738, 5112, 13, 23144, 1330, 8085, 19204, 62, 10459, 198, 6738, 5112, 13, 82, 3808, 1330, 5793, 259, 198, 6738, 5112, 13, 71, 715, 578, 1330, 6737, 62, 8612, 1352, 198, 198, ...
2.107795
1,642
from logging import getLogger from re import match from time import time from django.conf import settings from django.contrib.auth import get_user_model from django.core.exceptions import ValidationError from django.core.validators import MinValueValidator, MaxValueValidator from django.db import models, transaction f...
[ 6738, 18931, 1330, 651, 11187, 1362, 198, 6738, 302, 1330, 2872, 198, 6738, 640, 1330, 640, 198, 198, 6738, 42625, 14208, 13, 10414, 1330, 6460, 198, 6738, 42625, 14208, 13, 3642, 822, 13, 18439, 1330, 651, 62, 7220, 62, 19849, 198, 6...
3.728972
214
# 1. Ask for user input # 2. Create a dynamic URL based on step 1 # 3. Fetch data from using url # 4. Convert json to dictionary # 5. Print Pokemon data import requests while True: # getting Pokemon name from the user user_pokemon_input = input( 'Please type name of pokemon you want to learn about? ') ...
[ 2, 352, 13, 16981, 329, 2836, 5128, 198, 2, 362, 13, 13610, 257, 8925, 10289, 1912, 319, 2239, 352, 198, 2, 513, 13, 376, 7569, 1366, 422, 1262, 19016, 198, 2, 604, 13, 38240, 33918, 284, 22155, 198, 2, 642, 13, 12578, 14878, 1366...
2.697715
569
if __name__ == '__main__': say()
[ 198, 198, 361, 11593, 3672, 834, 6624, 705, 834, 12417, 834, 10354, 198, 220, 220, 220, 910, 3419 ]
2.111111
18
bind = "0.0.0.0:8085" workers = 2 threads = 2 timeout = 120
[ 21653, 796, 366, 15, 13, 15, 13, 15, 13, 15, 25, 1795, 5332, 1, 198, 22896, 796, 362, 198, 16663, 82, 796, 362, 198, 48678, 796, 7982 ]
2.185185
27
import re import nbformat from nbconvert import PythonExporter import warnings warnings.filterwarnings('ignore') def nbconverter(notebookPath,directionPath=None): """method name is the same as jupyter default converter name : Nbconvert(notebookPath,directionPath) :param notebookPath: source path of...
[ 11748, 302, 220, 201, 198, 11748, 299, 65, 18982, 201, 198, 6738, 299, 65, 1102, 1851, 1330, 11361, 3109, 26634, 201, 198, 11748, 14601, 220, 201, 198, 201, 198, 40539, 654, 13, 24455, 40539, 654, 10786, 46430, 11537, 201, 198, 201, 1...
2.337821
817
# encoding: utf-8 import bisect import collections import json import math import queue import heapq from typing import (Any, Callable, Counter, DefaultDict, Dict, Iterable, List, Set, Tuple) data: Dict[str, List[Any]] = json.loads(''' {"inputs":[[7],[10],[19]],"outputs":[2,2,3]} ''') fib = [1,...
[ 2, 21004, 25, 3384, 69, 12, 23, 198, 11748, 47457, 478, 198, 11748, 17268, 198, 11748, 33918, 198, 11748, 10688, 198, 11748, 16834, 198, 11748, 24575, 80, 198, 6738, 19720, 1330, 357, 7149, 11, 4889, 540, 11, 15034, 11, 15161, 35, 713...
2.320513
234
import sys n = int(sys.stdin.readline().rstrip("\n")) distance = list(map(int,sys.stdin.readline().rstrip("\n").split(" "))) price = list(map(int,sys.stdin.readline().rstrip("\n").split(" "))) money = 0 curr_price = price[0] for i in range(len(price)-1): if curr_price > price[i]: curr_price = price[i] ...
[ 11748, 25064, 198, 198, 77, 796, 493, 7, 17597, 13, 19282, 259, 13, 961, 1370, 22446, 81, 36311, 7203, 59, 77, 48774, 198, 30246, 796, 1351, 7, 8899, 7, 600, 11, 17597, 13, 19282, 259, 13, 961, 1370, 22446, 81, 36311, 7203, 59, 77...
2.26257
179
# Generated by Django 3.2.12 on 2022-02-14 16:39 import cvat.apps.dataset_repo.models from django.db import migrations, models import django.db.models.deletion
[ 2, 2980, 515, 416, 37770, 513, 13, 17, 13, 1065, 319, 33160, 12, 2999, 12, 1415, 1467, 25, 2670, 198, 198, 11748, 269, 85, 265, 13, 18211, 13, 19608, 292, 316, 62, 260, 7501, 13, 27530, 198, 6738, 42625, 14208, 13, 9945, 1330, 157...
2.7
60
# Copyright 2018 Microsoft 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 to in...
[ 2, 15069, 2864, 5413, 10501, 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, 7330...
3.604167
336
#!/usr/bin/env python import sys import math import numpy as np from optparse import OptionParser def choose(n, k): """ A fast way to calculate binomial coefficients by Andrew Dalke (contrib). """ if 0 <= k <= n: ntok = 1 ktok = 1 for t in xrange(1, min(k, n - k) + 1): ...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 198, 11748, 25064, 198, 11748, 10688, 198, 11748, 299, 32152, 355, 45941, 198, 198, 6738, 2172, 29572, 1330, 16018, 46677, 198, 198, 4299, 3853, 7, 77, 11, 479, 2599, 198, 220, 220, 220, 37...
2.004098
244
#!/usr/bin/env python # coding: utf-8 # ### 1 - SET UP THE API # In[1]: import requests import sys import os sys.path.insert(0, "/home/admin/ansible/fwd_python_api") sys.path.append("..") import fwd_json from fwd_json import fwdApi username = os.environ['fwd_saas_user'] token = os.environ['fwd_saas_token'] network ...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 198, 2, 19617, 25, 3384, 69, 12, 23, 198, 198, 2, 44386, 352, 532, 25823, 15958, 3336, 7824, 198, 198, 2, 554, 58, 16, 5974, 628, 198, 11748, 7007, 198, 11748, 25064, 198, 11748, 28686, ...
2.526087
1,380
hiddenimports = ['sip', 'PyQt4._qt']
[ 30342, 320, 3742, 796, 37250, 82, 541, 3256, 705, 20519, 48, 83, 19, 13557, 39568, 20520, 198 ]
2.176471
17
from configparser import ConfigParser, ExtendedInterpolation from pathlib import Path default_snet_folder = Path("~").expanduser().joinpath(".snet")
[ 6738, 4566, 48610, 1330, 17056, 46677, 11, 24204, 9492, 16104, 341, 198, 6738, 3108, 8019, 1330, 10644, 198, 198, 12286, 62, 82, 3262, 62, 43551, 796, 10644, 7203, 93, 11074, 11201, 392, 7220, 22446, 22179, 6978, 7, 1911, 82, 3262, 4943...
3.466667
45
############################################################################### ## ## Copyright (C) 2014-2016, New York University. ## Copyright (C) 2013-2014, NYU-Poly. ## All rights reserved. ## Contact: contact@vistrails.org ## ## This file is part of VisTrails. ## ## "Redistribution and use in source and binary for...
[ 29113, 29113, 7804, 4242, 21017, 198, 2235, 198, 2235, 15069, 357, 34, 8, 1946, 12, 5304, 11, 968, 1971, 2059, 13, 198, 2235, 15069, 357, 34, 8, 2211, 12, 4967, 11, 48166, 12, 34220, 13, 198, 2235, 1439, 2489, 10395, 13, 198, 2235, ...
2.824144
2,104
import sys import plotly.graph_objects as go import numpy as np from plotly.subplots import make_subplots from scipy import interpolate sys.path += ['src/01_data_processing', 'src/02_modelling', 'src/03_modell_evaluation', 'src/00_utils'] import spectrogram as spec import train_test_split as splt import train_model_a...
[ 11748, 25064, 198, 11748, 7110, 306, 13, 34960, 62, 48205, 355, 467, 198, 11748, 299, 32152, 355, 45941, 198, 6738, 7110, 306, 13, 7266, 489, 1747, 1330, 787, 62, 7266, 489, 1747, 198, 6738, 629, 541, 88, 1330, 39555, 378, 198, 198, ...
1.821193
7,729
from typing import Dict, Set from .RF2File import RF2File from .Transitive import Transitive from SNOMEDCTToOWL.TransformationContext import TransformationContext from SNOMEDCTToOWL.SNOMEDToOWLConstants import * class Relationship: """ A RF2 stated relationship or relationship entry Properties: * so...
[ 6738, 19720, 1330, 360, 713, 11, 5345, 198, 198, 6738, 764, 32754, 17, 8979, 1330, 20445, 17, 8979, 198, 6738, 764, 8291, 1800, 1330, 3602, 1800, 198, 6738, 11346, 2662, 1961, 4177, 2514, 3913, 43, 13, 8291, 1161, 21947, 1330, 49127, ...
3.267692
325
import base64 import csv import io from utility import Utility class Report(object): """ We use this class to generate text reports. Class based on awilson@cloudpassage.com's Report.py class and modified for this purpose """ @classmethod def create_csv_report(cls, vulnerable_image_check_da...
[ 11748, 2779, 2414, 198, 11748, 269, 21370, 198, 11748, 33245, 198, 6738, 10361, 1330, 34030, 628, 198, 4871, 6358, 7, 15252, 2599, 198, 220, 220, 220, 37227, 198, 220, 220, 220, 775, 779, 428, 1398, 284, 7716, 2420, 3136, 13, 198, 220...
2.171861
3,369
#!/usr/bin/env python3 from build import ninja_common build = ninja_common.Build('webserver') build.webpack('static/bundle.js', 'webpack.config.js', 'src', 'webserver/package.json') build.install('auv-webserver', f='webserver/auv-webserver.py')
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 18, 198, 198, 6738, 1382, 1330, 37049, 62, 11321, 198, 11249, 796, 37049, 62, 11321, 13, 15580, 10786, 732, 1443, 18497, 11537, 198, 198, 11249, 13, 12384, 8002, 10786, 12708, 14, 65, 31249, ...
2.666667
93
import sys if __name__ == '__main__': print(''.join(main(sys.stdin)), end='')
[ 11748, 25064, 628, 628, 198, 198, 361, 11593, 3672, 834, 6624, 705, 834, 12417, 834, 10354, 198, 220, 220, 220, 3601, 10786, 4458, 22179, 7, 12417, 7, 17597, 13, 19282, 259, 36911, 886, 28, 7061, 8, 198 ]
2.351351
37
#! /usr/bin/env python """ Modul zawiera testy klasy AvgSizeOfHoleFeature """ import unittest from bitmap.bitmap_grayscale import BitmapGrayscale from feature.simple_features.avg_size_of_hole_feature import AvgSizeOfHoleFeature from tests.bitmap_generator import BitmapGenerator class TestAvgSizeOfHoleFeature(unitt...
[ 2, 0, 1220, 14629, 14, 8800, 14, 24330, 21015, 198, 198, 37811, 198, 5841, 377, 1976, 707, 41976, 1332, 88, 479, 75, 4107, 33455, 10699, 5189, 39, 2305, 38816, 198, 37811, 198, 198, 11748, 555, 715, 395, 198, 198, 6738, 1643, 8899, ...
2.002999
1,667
def read_input_file(input_file_address) -> dict: """ Takes a string as input file address and returns the base strings along indices for each base string """ res = dict() res['first_base_string'] = '' res['first_base_string_indices'] = [] res['second_base_string'] = '' res['second_base_s...
[ 4299, 1100, 62, 15414, 62, 7753, 7, 15414, 62, 7753, 62, 21975, 8, 4613, 8633, 25, 198, 220, 220, 220, 37227, 198, 220, 220, 220, 33687, 257, 4731, 355, 5128, 2393, 2209, 290, 5860, 262, 2779, 13042, 1863, 36525, 329, 1123, 2779, 47...
2.293279
491
# -*- coding: UTF-8 -*- # 基于 sqlite4dummy 的基本架构重新写了一个超简易版本的 sqlite 数据库管理库 # 本程序提供必要的sqlite操作方法,并对一个sqlite数据库进行初始化 # 本程序从自己启动,外部只能调用其方法 # 本程序的主入口程序为 main() # 请填写下面几个参数: # 第一个参数为数据库名称 DB_NAME='' import os import sqlite3 import sqlite4dummy import psycopg2 class Column(): """Represent a Column in a :class:`Table`...
[ 2, 532, 9, 12, 19617, 25, 41002, 12, 23, 532, 9, 12, 198, 198, 2, 10263, 253, 118, 12859, 236, 44161, 578, 19, 67, 13513, 13328, 248, 226, 161, 253, 118, 17312, 105, 162, 252, 35050, 252, 226, 34932, 235, 23877, 108, 37863, 247, ...
1.941914
1,515
from .base_creator import BaseCreator
[ 6738, 764, 8692, 62, 45382, 1330, 7308, 16719, 273 ]
4.111111
9
################################################################################ # Project : AuShadha # Description : URLS for Immunisation History # Author : Dr. Easwar T.R # Date : 21-09-2013 # License : GNU-GPL Version 3, see AuShadha/LICENSE.txt #############################################...
[ 29113, 29113, 14468, 198, 2, 4935, 220, 220, 220, 220, 220, 1058, 40666, 2484, 324, 3099, 198, 2, 12489, 220, 1058, 37902, 6561, 329, 25445, 5612, 7443, 198, 2, 6434, 220, 220, 220, 220, 220, 220, 1058, 1583, 13, 38647, 5767, 309, 1...
1.712786
1,619
from dataclasses import dataclass from typing import List, Tuple, Dict from jsondataclass import from_json, to_json @dataclass movie = Movie(["comedy", "crime"], (5.6, 100), {"en": "WALL-E", "de": "WALL-E"}) json_str = to_json(movie) print(json_str) # {"genres": ["comedy", "crime"], "rating": [5.6, 100], "name": {"...
[ 6738, 4818, 330, 28958, 1330, 4818, 330, 31172, 198, 6738, 19720, 1330, 7343, 11, 309, 29291, 11, 360, 713, 198, 6738, 44804, 623, 265, 330, 31172, 1330, 422, 62, 17752, 11, 284, 62, 17752, 628, 198, 31, 19608, 330, 31172, 628, 198, ...
2.359375
256
# -*- coding: utf-8 -*- """ @Project : @FileName: @Author :penghr @Time :202x/xx/xx xx:xx @Desc : """ import math import cv2 import numpy as np import scipy.spatial import torch import torch.nn as nn import torch.nn.functional as F def generate_point_map(kpoint, f_loc, rate=1): '''obtain the location c...
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 37811, 198, 31, 16775, 1058, 220, 198, 31, 8979, 5376, 25, 220, 198, 31, 13838, 220, 1058, 3617, 456, 81, 220, 198, 31, 7575, 220, 220, 220, 1058, 19004, 87, 14, 532...
1.996419
1,117
#!/usr/bin/env python """ ================================================================ rsfMRI: AFNI, ANTS, DicomStack, FreeSurfer, FSL, Nipy, aCompCorr ================================================================ A preprocessing workflow for Siemens resting state data. This workflow makes use of: - AFNI - A...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 198, 37811, 198, 23926, 198, 3808, 69, 40952, 25, 12341, 22125, 11, 3537, 4694, 11, 360, 291, 296, 25896, 11, 3232, 14214, 2232, 11, 376, 8634, 11, 399, 541, 88, 11, 257, 7293, 10606, 81,...
2.328583
5,122
import pytest from vdirsyncer.storage.dav import _BAD_XML_CHARS from vdirsyncer.storage.dav import _merge_xml from vdirsyncer.storage.dav import _parse_xml @pytest.mark.parametrize('char', range(32))
[ 11748, 12972, 9288, 198, 198, 6738, 410, 15908, 28869, 2189, 13, 35350, 13, 67, 615, 1330, 4808, 33, 2885, 62, 55, 5805, 62, 3398, 27415, 198, 6738, 410, 15908, 28869, 2189, 13, 35350, 13, 67, 615, 1330, 4808, 647, 469, 62, 19875, 1...
2.582278
79
#!/usr/bin/env python # -*- coding: utf-8 -*- import os import sys import math sys.path.extend(["..","../channels/"]) from NaChannel import * from KFastChannel import * from KSlowChannel import * from CaLChannel import * from KAChannel import * ## use KCaChannel instead of KCaMPIChannel, in a non-MPI i.e. non-parall...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 198, 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 198, 11748, 28686, 198, 11748, 25064, 198, 11748, 10688, 198, 198, 17597, 13, 6978, 13, 2302, 437, 7, 14692, 492, 2430,...
2.792717
357
# -*- coding: utf-8 -*- # @Time : 2021/9/10 14:23 # @Author : WuBingTai from ztest import db from ztest.models import Phone from ztest.utils.common import login_required from ztest.utils.response_code import RET from . import api from flask import jsonify, request, current_app # 测试机列表 @api.route("/phone/list") @...
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 2, 2488, 7575, 220, 220, 220, 1058, 33448, 14, 24, 14, 940, 1478, 25, 1954, 198, 2, 2488, 13838, 220, 1058, 18027, 33, 278, 47976, 198, 198, 6738, 1976, 9288, 1330, ...
2.5125
160
# Example Keplerian fit configuration file # Required packages for setup import os import pandas as pd import numpy as np import radvel # Define global planetary system and dataset parameters starname = 'epic203771098' nplanets = 2 # number of planets in the system instnames = ['j'] # list of instrument names. ...
[ 2, 17934, 40294, 666, 4197, 8398, 2393, 198, 198, 2, 20906, 10392, 329, 9058, 198, 11748, 28686, 198, 11748, 19798, 292, 355, 279, 67, 198, 11748, 299, 32152, 355, 45941, 198, 11748, 2511, 626, 198, 198, 2, 2896, 500, 3298, 27047, 108...
2.726974
1,520
from vistautils.iter_utils import only from adam.language import TokenSequenceLinguisticDescription from adam.learner import LearningExample, MemorizingLanguageLearner from adam.perception import ( BagOfFeaturesPerceptualRepresentationFrame, PerceptualRepresentation, )
[ 6738, 410, 396, 2306, 4487, 13, 2676, 62, 26791, 1330, 691, 198, 198, 6738, 23197, 13, 16129, 1330, 29130, 44015, 594, 43, 6680, 2569, 11828, 198, 6738, 23197, 13, 3238, 1008, 1330, 18252, 16281, 11, 41157, 2890, 32065, 14961, 1008, 198...
3.733333
75
print('hello') main)
[ 4798, 10786, 31373, 11537, 198, 198, 12417, 8, 628 ]
2.555556
9
# Copyright 2016, 2017 California Institute of Technology # Users must agree to abide by the restrictions listed in the # file "LegalStuff.txt" in the PROPER library directory. # # PROPER developed at Jet Propulsion Laboratory/California Inst. Technology # Original IDL version by John Krist # Python transla...
[ 2, 220, 220, 15069, 1584, 11, 2177, 3442, 5136, 286, 8987, 198, 2, 220, 220, 18987, 1276, 4236, 284, 27851, 416, 262, 8733, 5610, 287, 262, 198, 2, 220, 220, 2393, 366, 38263, 1273, 1648, 13, 14116, 1, 287, 262, 4810, 31054, 5888, ...
2.90201
398
from django.conf import settings from django.core import checks from django_google_recaptcha.constants import TEST_PRIVATE_KEY, TEST_PUBLIC_KEY
[ 6738, 42625, 14208, 13, 10414, 1330, 6460, 198, 6738, 42625, 14208, 13, 7295, 1330, 8794, 198, 198, 6738, 42625, 14208, 62, 13297, 62, 8344, 2373, 11693, 13, 9979, 1187, 1330, 43001, 62, 4805, 3824, 6158, 62, 20373, 11, 43001, 62, 5105,...
3.244444
45
# Generated by Django 3.2.7 on 2021-12-02 04:39 from django.db import migrations, models import django.db.models.deletion
[ 2, 2980, 515, 416, 37770, 513, 13, 17, 13, 22, 319, 33448, 12, 1065, 12, 2999, 8702, 25, 2670, 198, 198, 6738, 42625, 14208, 13, 9945, 1330, 15720, 602, 11, 4981, 198, 11748, 42625, 14208, 13, 9945, 13, 27530, 13, 2934, 1616, 295, ...
2.818182
44
# -*- coding: utf-8 -*- from functools import wraps try: from dask.utils import SerializableLock as Lock except ImportError: from threading import Lock def format_code(code): """ Formats some code with line numbers Parameters ---------- code : str Code Returns -------...
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 628, 198, 6738, 1257, 310, 10141, 1330, 27521, 198, 198, 28311, 25, 198, 220, 220, 220, 422, 288, 2093, 13, 26791, 1330, 23283, 13821, 25392, 355, 13656, 198, 16341, 17267, 1...
2.089721
1,148
from .Climate import Climate
[ 6738, 764, 37649, 1330, 13963 ]
5.6
5
from unittest import TestCase from glob import glob
[ 6738, 555, 715, 395, 1330, 6208, 20448, 198, 6738, 15095, 1330, 15095, 628 ]
4.076923
13
#!/usr/local/bin/python3 input = 1133 power_levels = [] for x in range(1, 301): row = [] for y in range(1, 301): row.append(power_level(x, y)) power_levels.append(row) best_square = None best_power = None for x in range(1, 298): for y in range(1, 298): sum = 0 for i in range(0, 3): for j in range(0, ...
[ 2, 48443, 14629, 14, 12001, 14, 8800, 14, 29412, 18, 198, 198, 15414, 796, 1367, 2091, 198, 198, 6477, 62, 46170, 796, 17635, 198, 1640, 2124, 287, 2837, 7, 16, 11, 25643, 2599, 198, 197, 808, 796, 17635, 198, 197, 1640, 331, 287, ...
2.301255
239
### Base class for Collage plugins ### import math import logging import pygame from plugin import Plugin class Collage(Plugin): """ Base class for collage plugins See simple_resize.py or recursive_split.py for example implementation of a plugin """ @staticmethod def generate(s...
[ 21017, 7308, 1398, 329, 7778, 496, 20652, 44386, 198, 11748, 10688, 198, 11748, 18931, 198, 198, 11748, 12972, 6057, 198, 198, 6738, 13877, 1330, 42636, 198, 198, 4871, 7778, 496, 7, 37233, 2599, 198, 220, 220, 220, 37227, 198, 220, 220...
2.304569
788
# -*- coding: utf-8 -*- """ templatetricks.override_autoescaped ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Override which templates are autoescaped http://flask.pocoo.org/snippets/41/ """ import os import sys sys.path.insert(0, os.path.dirname(os.path.abspath(os.path.dirname(__file__)))) from flask import F...
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 37811, 198, 220, 220, 220, 2169, 489, 265, 19482, 591, 13, 2502, 13154, 62, 2306, 3028, 66, 5813, 198, 220, 220, 220, 220, 27156, 27156, 4907, 93, 628, 220, 220, 220, ...
2.542254
142
# -*- coding: utf-8 -*- import logging import os import pandas as pd import shutil import subprocess import tempfile from multiprocessing.pool import ThreadPool import bg_convert from thirdparty_xentax import phyre if __name__ == '__main__': # get available models chr_pat...
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 201, 198, 201, 198, 11748, 18931, 201, 198, 11748, 28686, 201, 198, 11748, 19798, 292, 355, 279, 67, 201, 198, 11748, 4423, 346, 201, 198, 11748, 850, 14681, 201, 198, 11748,...
2.07279
1,154
from django.urls import path from cart.views import CartItem, Carts, Checkout, ToggleCartItem app_name = 'cart' urlpatterns = [ path('carts/', Carts.as_view(),name='cart-list'), path('carts/items/<slug:slug>/<size>/', CartItem.as_view(), name='add-remove-cart-item'), path('carts/toggle/items/<slug:slug>/<s...
[ 6738, 42625, 14208, 13, 6371, 82, 1330, 3108, 198, 6738, 6383, 13, 33571, 1330, 13690, 7449, 11, 327, 5889, 11, 6822, 448, 11, 34098, 43476, 7449, 198, 1324, 62, 3672, 796, 705, 26674, 6, 198, 198, 6371, 33279, 82, 796, 685, 198, 22...
2.568966
174
# ------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for # license information. # -------------------------------------------------------------------------- """ All c...
[ 2, 16529, 45537, 198, 2, 15069, 357, 66, 8, 5413, 10501, 13, 1439, 2489, 10395, 13, 198, 2, 49962, 739, 262, 17168, 13789, 13, 4091, 13789, 13, 14116, 287, 262, 1628, 6808, 329, 198, 2, 5964, 1321, 13, 198, 2, 16529, 35937, 198, 1...
2.724543
5,362
from .options import PaymentMethod
[ 6738, 764, 25811, 1330, 28784, 17410, 198 ]
5
7
from django.contrib.auth.models import User from rest_framework import authentication from rest_framework import exceptions from django.conf import settings import jwt import requests as r import modules.keycloak_lib as keylib
[ 6738, 42625, 14208, 13, 3642, 822, 13, 18439, 13, 27530, 1330, 11787, 198, 6738, 1334, 62, 30604, 1330, 18239, 198, 6738, 1334, 62, 30604, 1330, 13269, 198, 6738, 42625, 14208, 13, 10414, 1330, 6460, 198, 11748, 474, 46569, 198, 11748, ...
4.053571
56
# Call easyblogger # Client secret and authentication is already stored in ~/.easyblogger.credentials # blogid is stored in ~/.easyblogger import subprocess import blogger_modifications
[ 2, 4889, 2562, 14036, 1362, 198, 2, 20985, 3200, 290, 18239, 318, 1541, 8574, 287, 39763, 38171, 14036, 1362, 13, 66, 445, 14817, 198, 2, 4130, 312, 318, 8574, 287, 39763, 38171, 14036, 1362, 198, 198, 11748, 850, 14681, 198, 11748, 2...
4.086957
46
# -*- coding: utf-8 -*- from __future__ import absolute_import import blinker import time from gevent import socket try: import simplejson as json except ImportError: import json # pyflakes.ignore from . import protocol as nsq from . import errors from .message import Message from .httpclient import HTTPCl...
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 6738, 11593, 37443, 834, 1330, 4112, 62, 11748, 198, 198, 11748, 21019, 263, 198, 11748, 640, 198, 6738, 4903, 1151, 1330, 17802, 198, 198, 28311, 25, 198, 220, 220, 220...
2.43127
6,140
# Generated by Django 3.2.7 on 2021-10-18 12:21 from django.conf import settings from django.db import migrations, models import django.db.models.deletion
[ 2, 2980, 515, 416, 37770, 513, 13, 17, 13, 22, 319, 33448, 12, 940, 12, 1507, 1105, 25, 2481, 198, 198, 6738, 42625, 14208, 13, 10414, 1330, 6460, 198, 6738, 42625, 14208, 13, 9945, 1330, 15720, 602, 11, 4981, 198, 11748, 42625, 142...
3.019231
52