content
stringlengths
1
1.05M
input_ids
listlengths
1
883k
ratio_char_token
float64
1
22.9
token_count
int64
1
883k
import os import numpy as np from skimage.io import imread # Function to load image # Function to load mask
[ 11748, 28686, 198, 198, 11748, 299, 32152, 355, 45941, 198, 6738, 1341, 9060, 13, 952, 1330, 545, 961, 628, 198, 198, 2, 15553, 284, 3440, 2939, 628, 198, 2, 15553, 284, 3440, 9335, 628 ]
3.382353
34
from typing import Optional, Callable try: # Assume we're a sub-module in a package. from series import series_classes as sc from utils import numeric as nm except ImportError: # Apparently no higher-level package has been imported, fall back to a local import. from .. import series_classes as sc fro...
[ 6738, 19720, 1330, 32233, 11, 4889, 540, 198, 198, 28311, 25, 220, 1303, 2195, 2454, 356, 821, 257, 850, 12, 21412, 287, 257, 5301, 13, 198, 220, 220, 220, 422, 2168, 1330, 2168, 62, 37724, 355, 629, 198, 220, 220, 220, 422, 3384, ...
2.987879
165
import glob import pathlib from .filemanager import filemanager_class database = database_class()
[ 11748, 15095, 198, 11748, 3108, 8019, 198, 6738, 764, 7753, 37153, 1330, 2393, 37153, 62, 4871, 628, 198, 198, 48806, 796, 6831, 62, 4871, 3419, 198 ]
3.884615
26
from openlocationcode import openlocationcode as olc from enum import Enum import math, re # Copy from OpenLocationCode.java # A separator used to break the code into two parts to aid memorability. SEPARATOR = '+' # Copy from OpenLocationCode.java # The character used to pad codes. PADDING_CHARACTER = '0' PADDING_2 ...
[ 6738, 1280, 24886, 8189, 1330, 1280, 24886, 8189, 355, 25776, 66, 198, 6738, 33829, 1330, 2039, 388, 198, 11748, 10688, 11, 302, 198, 198, 2, 17393, 422, 4946, 14749, 10669, 13, 12355, 198, 2, 317, 2880, 1352, 973, 284, 2270, 262, 243...
2.195349
430
"""Array data-type implementations (abstraction points for GL array types""" import ctypes import OpenGL from OpenGL.raw.GL import _types from OpenGL import plugins from OpenGL.arrays import formathandler, _arrayconstants as GL_1_1 from OpenGL import logs _log = logs.getLog( 'OpenGL.arrays.arraydatatype' ) from OpenG...
[ 37811, 19182, 1366, 12, 4906, 25504, 357, 397, 301, 7861, 2173, 329, 10188, 7177, 3858, 37811, 198, 11748, 269, 19199, 198, 11748, 30672, 198, 6738, 30672, 13, 1831, 13, 8763, 1330, 4808, 19199, 198, 6738, 30672, 1330, 20652, 198, 6738, ...
2.22242
1,124
# Copyright 2019 The TensorFlow Probability Authors. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law o...
[ 2, 15069, 13130, 383, 309, 22854, 37535, 30873, 1799, 46665, 13, 198, 2, 198, 2, 49962, 739, 262, 24843, 13789, 11, 10628, 362, 13, 15, 357, 1169, 366, 34156, 15341, 198, 2, 345, 743, 407, 779, 428, 2393, 2845, 287, 11846, 351, 262,...
2.182635
6,346
# # Copyright 2021 Lukas Schmelzeisen # # 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, 198, 2, 15069, 33448, 28102, 292, 3059, 17694, 2736, 13254, 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, ...
3.39801
402
from __future__ import division, print_function __author__ = 'saeedamen' # Saeed Amen / saeed@cuemacro.com # # Copyright 2017 Cuemacro Ltd. - http//www.cuemacro.com / @cuemacro # # See the License for the specific language governing permissions and limitations under the License. # ## Web server components import da...
[ 6738, 11593, 37443, 834, 1330, 7297, 11, 3601, 62, 8818, 198, 198, 834, 9800, 834, 796, 705, 11400, 2308, 41763, 6, 220, 1303, 10318, 2308, 34717, 1220, 473, 2308, 31, 27399, 368, 330, 305, 13, 785, 198, 198, 2, 198, 2, 15069, 2177,...
3.864583
192
import pytest import stk from ...case_data import CaseData
[ 11748, 12972, 9288, 198, 11748, 336, 74, 198, 198, 6738, 2644, 7442, 62, 7890, 1330, 8913, 6601, 628 ]
3.388889
18
# coding=utf-8 # Copyright 2021 The OneFlow Authors. All rights reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless require...
[ 2, 19617, 28, 40477, 12, 23, 198, 2, 15069, 33448, 383, 1881, 37535, 46665, 13, 1439, 2489, 10395, 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...
2.403149
1,461
"""Module for events application."""
[ 37811, 26796, 329, 2995, 3586, 526, 15931, 198 ]
4.625
8
import numpy as np import logging from decimal import Decimal, ROUND_HALF_UP from abc import ABC, abstractmethod, abstractproperty from spot.utility import bilin_2d from spot.config import PROJ_TYPE # ============================= # Level-1 template class # ============================= def get_product_data_lis...
[ 11748, 299, 32152, 355, 45941, 198, 11748, 18931, 198, 6738, 32465, 1330, 4280, 4402, 11, 371, 15919, 62, 39, 1847, 37, 62, 8577, 198, 6738, 450, 66, 1330, 9738, 11, 12531, 24396, 11, 12531, 26745, 198, 6738, 4136, 13, 315, 879, 1330,...
2.741935
341
# Copyright (c) 2012 The Chromium Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. """A wrapper for subprocess to make calling shell commands easier.""" import codecs import logging import os import pipes import select import signal imp...
[ 2, 15069, 357, 66, 8, 2321, 383, 18255, 1505, 46665, 13, 1439, 2489, 10395, 13, 198, 2, 5765, 286, 428, 2723, 2438, 318, 21825, 416, 257, 347, 10305, 12, 7635, 5964, 326, 460, 307, 198, 2, 1043, 287, 262, 38559, 24290, 2393, 13, 1...
2.727007
4,110
# Generated by Django 4.0.2 on 2022-02-26 15:52 from django.db import migrations, models
[ 2, 2980, 515, 416, 37770, 604, 13, 15, 13, 17, 319, 33160, 12, 2999, 12, 2075, 1315, 25, 4309, 198, 198, 6738, 42625, 14208, 13, 9945, 1330, 15720, 602, 11, 4981, 628 ]
2.84375
32
import itertools from astm import codec from collections import defaultdict from django.utils import timezone import directions.models as directions import directory.models as directory import api.models as api import simplejson as json
[ 11748, 340, 861, 10141, 198, 6738, 6468, 76, 1330, 40481, 198, 6738, 17268, 1330, 4277, 11600, 198, 6738, 42625, 14208, 13, 26791, 1330, 640, 11340, 198, 11748, 11678, 13, 27530, 355, 11678, 198, 11748, 8619, 13, 27530, 355, 8619, 198, ...
4.357143
56
#!/usr/bin/python import unittest import json import sys import os import string sys.path.append(os.path.join(os.path.dirname(__file__), os.pardir, os.pardir)) from nysa.cbuilder import sdb_component as sdbc from nysa.cbuilder import sdb_object_model as som ...
[ 2, 48443, 14629, 14, 8800, 14, 29412, 198, 198, 11748, 555, 715, 395, 198, 11748, 33918, 198, 11748, 25064, 198, 11748, 28686, 198, 11748, 4731, 198, 198, 17597, 13, 6978, 13, 33295, 7, 418, 13, 6978, 13, 22179, 7, 418, 13, 6978, 13...
1.52341
6,429
#!python3 import os import pandas as pd import tensorflow as tf from tensorflow.keras import layers os.environ["CUDA_VISIBLE_DEVICES"] = "0" # gpu_devices = tf.config.experimental.list_physical_devices("GPU") # for device in gpu_devices: # tf.config.experimental.set_memory_growth(device, True)
[ 2, 0, 29412, 18, 198, 198, 11748, 28686, 198, 198, 11748, 19798, 292, 355, 279, 67, 198, 11748, 11192, 273, 11125, 355, 48700, 198, 6738, 11192, 273, 11125, 13, 6122, 292, 1330, 11685, 198, 198, 418, 13, 268, 2268, 14692, 43633, 5631,...
2.772727
110
#!/usr/bin/python DOCUMENTATION = ''' --- module: kong short_description: Configure a Kong API Gateway ''' EXAMPLES = ''' - name: Register a site kong: kong_admin_uri: http://127.0.0.1:8001/apis/ name: "Mockbin" taget_url: "http://mockbin.com" request_host: "mockbin.com" state: present - ...
[ 2, 48443, 14629, 14, 8800, 14, 29412, 198, 198, 38715, 5883, 3525, 6234, 796, 705, 7061, 198, 6329, 198, 21412, 25, 479, 506, 198, 19509, 62, 11213, 25, 17056, 495, 257, 9071, 7824, 29916, 198, 198, 7061, 6, 198, 198, 6369, 2390, 64...
2.397974
691
from compas_plotters.artists import Artist from matplotlib.lines import Line2D from compas.geometry import intersection_line_box_xy __all__ = ['LineArtist']
[ 6738, 552, 292, 62, 29487, 1010, 13, 433, 1023, 1330, 18902, 198, 6738, 2603, 29487, 8019, 13, 6615, 1330, 6910, 17, 35, 198, 198, 6738, 552, 292, 13, 469, 15748, 1330, 16246, 62, 1370, 62, 3524, 62, 5431, 198, 198, 834, 439, 834, ...
3.265306
49
# -*- encoding: utf8 -*- import numpy as np from sklearn.metrics import accuracy_score from sklearn.model_selection import train_test_split from lvq import SilvqModel from lvq.utils import plot2d if __name__ == '__main__': main()
[ 2, 532, 9, 12, 21004, 25, 3384, 69, 23, 532, 9, 12, 198, 198, 11748, 299, 32152, 355, 45941, 198, 198, 6738, 1341, 35720, 13, 4164, 10466, 1330, 9922, 62, 26675, 198, 6738, 1341, 35720, 13, 19849, 62, 49283, 1330, 4512, 62, 9288, ...
2.767442
86
#!/usr/bin/env python # coding: utf-8 # In[ ]: #Importing all required libraries # In[ ]: from __future__ import absolute_import, division, print_function, unicode_literals # In[ ]: #Checking for correct cuda and tf versions from tensorflow.python.platform import build_info as tf_build_info print(tf_build_in...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 198, 2, 19617, 25, 3384, 69, 12, 23, 198, 198, 2, 554, 58, 2361, 25, 628, 198, 2, 20939, 278, 477, 2672, 12782, 628, 198, 2, 554, 58, 2361, 25, 628, 198, 6738, 11593, 37443, 834, 1330...
2.269976
3,404
# Copyright (c) 2012 The Chromium Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. { 'targets': [ # Intermediate target grouping the android tools needed to run native # unittests and instrumentation test apks. { 'ta...
[ 2, 15069, 357, 66, 8, 2321, 383, 18255, 1505, 46665, 13, 1439, 2489, 10395, 13, 198, 2, 5765, 286, 428, 2723, 2438, 318, 21825, 416, 257, 347, 10305, 12, 7635, 5964, 326, 460, 307, 198, 2, 1043, 287, 262, 38559, 24290, 2393, 13, 1...
2.214815
405
#!/usr/bin/env python3 # Copyright (c) 2015-2016 The Bitcoin Core developers # Distributed under the MIT software license, see the accompanying # file COPYING or http://www.opensource.org/licenses/mit-license.php. from test_framework.test_framework import BitcoinTestFramework from test_framework.util import * from tes...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 18, 198, 2, 15069, 357, 66, 8, 1853, 12, 5304, 383, 6185, 7231, 6505, 198, 2, 4307, 6169, 739, 262, 17168, 3788, 5964, 11, 766, 262, 19249, 198, 2, 2393, 27975, 45761, 393, 2638, 1378, ...
3.539474
152
from intake.source.base import DataSource, Schema import joblib import fsspec import sklearn import re from . import __version__
[ 6738, 10337, 13, 10459, 13, 8692, 1330, 6060, 7416, 11, 10011, 2611, 198, 11748, 1693, 8019, 198, 11748, 277, 824, 43106, 198, 11748, 1341, 35720, 198, 11748, 302, 198, 198, 6738, 764, 1330, 11593, 9641, 834, 628 ]
3.540541
37
""" One of the really important features of |jedi| is to have an option to understand code like this:: def foo(bar): bar. # completion here foo(1) There's no doubt wheter bar is an ``int`` or not, but if there's also a call like ``foo('str')``, what would happen? Well, we'll just show both. Because th...
[ 37811, 198, 3198, 286, 262, 1107, 1593, 3033, 286, 930, 73, 13740, 91, 318, 284, 423, 281, 3038, 284, 198, 4625, 1481, 2438, 588, 428, 3712, 628, 220, 220, 220, 825, 22944, 7, 5657, 2599, 198, 220, 220, 220, 220, 220, 220, 220, 23...
3.423423
222
from steamcheck import app from flask import jsonify, render_template import os import steamapi import json
[ 6738, 13324, 9122, 1330, 598, 198, 6738, 42903, 1330, 33918, 1958, 11, 8543, 62, 28243, 198, 11748, 28686, 198, 11748, 13324, 15042, 198, 11748, 33918, 628 ]
4.192308
26
# -*- coding: utf-8 -*- """Functions to call when running the tool. This module should contain a function called `run_module`, that is executed when the module is run with `python -m delphi_validator`. """ from delphi_utils import read_params from .validate import Validator def run_module(): """Run the validator...
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 37811, 24629, 2733, 284, 869, 618, 2491, 262, 2891, 13, 198, 198, 1212, 8265, 815, 3994, 257, 2163, 1444, 4600, 5143, 62, 21412, 47671, 326, 318, 10945, 198, 12518, 262,...
3.185185
162
import torch.utils.data as data import numpy as np from imageio import imread from path import Path import pdb
[ 11748, 28034, 13, 26791, 13, 7890, 355, 1366, 198, 11748, 299, 32152, 355, 45941, 198, 6738, 2939, 952, 1330, 545, 961, 198, 6738, 3108, 1330, 10644, 198, 11748, 279, 9945, 628, 198 ]
3.53125
32
#!/usr/bin/python from .rot13 import Rot13 import secretpy.alphabets as al
[ 2, 48443, 14629, 14, 8800, 14, 29412, 198, 198, 6738, 764, 10599, 1485, 1330, 18481, 1485, 198, 11748, 3200, 9078, 13, 17307, 397, 1039, 355, 435, 628 ]
2.851852
27
from abc import abstractmethod from pysaurus.database.properties import PropType from pysaurus.database.video import Video
[ 6738, 450, 66, 1330, 12531, 24396, 198, 198, 6738, 279, 893, 22302, 13, 48806, 13, 48310, 1330, 8772, 6030, 198, 6738, 279, 893, 22302, 13, 48806, 13, 15588, 1330, 7623, 628, 628 ]
3.96875
32
# Copyright 2017 AT&T Corporation. # 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, 15069, 2177, 5161, 5, 51, 10501, 13, 198, 2, 1439, 6923, 33876, 13, 198, 2, 198, 2, 220, 220, 220, 49962, 739, 262, 24843, 13789, 11, 10628, 362, 13, 15, 357, 1169, 366, 34156, 15341, 345, 743, 198, 2, 220, 220, 220, 407, 779...
2.804009
898
from initialize import * from core.db.db_func import query_linedrug_list import os import wx def onTextChange(self, e): if os.name == "nt": if e.String == "": self.Clear() elif len(e.String) >= 1: if not self.IsPopupShown(): self...
[ 6738, 41216, 1330, 1635, 198, 6738, 4755, 13, 9945, 13, 9945, 62, 20786, 1330, 12405, 62, 10837, 2143, 62, 4868, 198, 11748, 28686, 198, 11748, 266, 87, 628, 628, 220, 220, 220, 825, 319, 8206, 19400, 7, 944, 11, 304, 2599, 198, 220...
1.848606
251
from Roteiro4.Roteiro4__funcoes import Grafo
[ 6738, 371, 1258, 7058, 19, 13, 49, 1258, 7058, 19, 834, 12543, 1073, 274, 1330, 7037, 6513, 628 ]
2.555556
18
# -*- coding: utf-8 -*- from django.shortcuts import get_object_or_404, render_to_response, render from django.http import HttpResponseRedirect, HttpResponse from django.core.urlresolvers import reverse from django.shortcuts import redirect from joboard.models import Factory from joboard.forms import FactoryForm from d...
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 6738, 42625, 14208, 13, 19509, 23779, 1330, 651, 62, 15252, 62, 273, 62, 26429, 11, 8543, 62, 1462, 62, 26209, 11, 8543, 198, 6738, 42625, 14208, 13, 4023, 1330, 367, ...
2.398335
841
from flask import Flask from flask_cors import CORS from flask_graphql import GraphQLView from schema import Schema if __name__ == '__main__': app = create_app(graphiql=True) CORS(app, resources={r'/graphql': {'origins': '*'}}) app.run()
[ 6738, 42903, 1330, 46947, 198, 6738, 42903, 62, 66, 669, 1330, 327, 20673, 198, 6738, 42903, 62, 34960, 13976, 1330, 29681, 9711, 7680, 198, 6738, 32815, 1330, 10011, 2611, 628, 198, 198, 361, 11593, 3672, 834, 6624, 705, 834, 12417, 83...
2.72043
93
# Factory-like class for mortgage options
[ 2, 19239, 12, 2339, 1398, 329, 13682, 3689, 198 ]
4.666667
9
from DD.utils import PoolByteArray2NumpyArray, NumpyArray2PoolByteArray from DD.Entity import Entity import numpy as np
[ 6738, 20084, 13, 26791, 1330, 19850, 40778, 19182, 17, 45, 32152, 19182, 11, 399, 32152, 19182, 17, 27201, 40778, 19182, 198, 6738, 20084, 13, 32398, 1330, 20885, 198, 11748, 299, 32152, 355, 45941, 198 ]
3.529412
34
from collections import defaultdict import contextlib import tempfile import sys import threading import asyncio def _fabricate_asycio_event(loop): th_ev = threading.Event() aio_event = None h = loop.call_soon_threadsafe(really_make_the_event) if not th_ev.wait(0.1): h.cancel() ra...
[ 6738, 17268, 1330, 4277, 11600, 198, 11748, 4732, 8019, 198, 11748, 20218, 7753, 198, 11748, 25064, 198, 11748, 4704, 278, 198, 11748, 30351, 952, 628, 628, 198, 198, 4299, 4808, 36434, 1173, 378, 62, 4107, 66, 952, 62, 15596, 7, 26268,...
2.668966
145
import json import sys from openslides_backend.models.checker import Checker, CheckException if __name__ == "__main__": sys.exit(main())
[ 11748, 33918, 198, 11748, 25064, 198, 198, 6738, 9808, 75, 1460, 62, 1891, 437, 13, 27530, 13, 9122, 263, 1330, 6822, 263, 11, 6822, 16922, 628, 198, 198, 361, 11593, 3672, 834, 6624, 366, 834, 12417, 834, 1298, 198, 220, 220, 220, ...
2.959184
49
from utils.data import load_memfile_configs from utils.server import plain_response from sanic import response
[ 6738, 3384, 4487, 13, 7890, 1330, 3440, 62, 11883, 7753, 62, 11250, 82, 198, 6738, 3384, 4487, 13, 15388, 1330, 8631, 62, 26209, 198, 6738, 5336, 291, 1330, 2882, 628, 198 ]
3.645161
31
# -*- coding=utf-8 -*- import SimpleITK as itk import pydicom import numpy as np from PIL import Image, ImageDraw import gc from skimage.morphology import disk, dilation import nipy import os from glob import glob import scipy import cv2 from xml.dom.minidom import Document typenames = ['CYST', 'FNH', 'HCC', 'HEM', 'M...
[ 2, 532, 9, 12, 19617, 28, 40477, 12, 23, 532, 9, 12, 198, 11748, 17427, 2043, 42, 355, 340, 74, 198, 11748, 279, 5173, 291, 296, 198, 11748, 299, 32152, 355, 45941, 198, 6738, 350, 4146, 1330, 7412, 11, 7412, 25302, 198, 11748, 30...
2.019888
3,922
from setuptools import setup setup(name='zohoreader', version='0.1', description='A simple reader for zoho projects API to get all projects, users and timereports', long_description=readme(), classifiers=[ 'Development Status :: 3 - Alpha', 'License :: OSI Approved :: MIT Lice...
[ 6738, 900, 37623, 10141, 1330, 9058, 628, 198, 198, 40406, 7, 3672, 11639, 89, 1219, 382, 5067, 3256, 198, 220, 220, 220, 220, 220, 2196, 11639, 15, 13, 16, 3256, 198, 220, 220, 220, 220, 220, 6764, 11639, 32, 2829, 9173, 329, 1976,...
2.284182
373
# 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 agreed to in writing,...
[ 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, 2845, 287, 11846, 351, 262, 13789, 13, 198, 2, 921, 743, ...
2.752045
2,323
from __future__ import absolute_import, division, print_function import argparse import importlib import itertools import time from multiprocessing import Pool import numpy as np import os import pdb import pickle import subprocess import sys import tensorflow as tf import tensorflow.contrib.slim as slim import thr...
[ 6738, 11593, 37443, 834, 1330, 4112, 62, 11748, 11, 7297, 11, 3601, 62, 8818, 198, 198, 11748, 1822, 29572, 198, 11748, 1330, 8019, 198, 11748, 340, 861, 10141, 198, 198, 11748, 640, 198, 6738, 220, 220, 18540, 305, 919, 278, 1330, 19...
2.590343
642
# Copyright 2018 Google LLC # Copyright 2018-present Open Networking Foundation # SPDX-License-Identifier: Apache-2.0 """A portable build system for Stratum P4 switch stack. To use this, load() this file in a BUILD file, specifying the symbols needed. The public symbols are the macros: decorate(path) sc_cc_lib ...
[ 2, 15069, 2864, 3012, 11419, 198, 2, 15069, 2864, 12, 25579, 4946, 7311, 278, 5693, 198, 2, 30628, 55, 12, 34156, 12, 33234, 7483, 25, 24843, 12, 17, 13, 15, 198, 198, 37811, 32, 17726, 1382, 1080, 329, 4285, 21307, 350, 19, 5078, ...
2.183002
15,896
#!/bin/env python import unittest from unittest.mock import Mock from pyats.topology import Device from genie.metaparser.util.exceptions import SchemaEmptyParserError,\ SchemaMissingKeyError from genie.libs.parser.ios.show_platform import ShowVersion,\ Dir,\ ShowRedundan...
[ 2, 48443, 8800, 14, 24330, 21015, 198, 11748, 555, 715, 395, 198, 6738, 555, 715, 395, 13, 76, 735, 1330, 44123, 198, 6738, 12972, 1381, 13, 4852, 1435, 1330, 16232, 198, 198, 6738, 2429, 494, 13, 4164, 499, 28198, 13, 22602, 13, 10...
2.791908
1,038
import numpy as np from autumn.calibration.proposal_tuning import perform_all_params_proposal_tuning from autumn.core.project import Project, ParameterSet, load_timeseries, build_rel_path, get_all_available_scenario_paths, \ use_tuned_proposal_sds from autumn.calibration import Calibration from autumn.calibration.p...
[ 11748, 299, 32152, 355, 45941, 198, 6738, 23608, 13, 9948, 571, 1358, 13, 1676, 40007, 62, 28286, 278, 1330, 1620, 62, 439, 62, 37266, 62, 1676, 40007, 62, 28286, 278, 198, 6738, 23608, 13, 7295, 13, 16302, 1330, 4935, 11, 25139, 2357...
2.737892
1,053
import unittest from http import HTTPStatus from unittest import TestCase import bcrypt from flask.ctx import AppContext from flask.testing import FlaskClient from app import create_app from models.theme import Theme, SubTheme from models.users import Users if __name__ == '__main__': unittest.main()
[ 11748, 555, 715, 395, 198, 6738, 2638, 1330, 14626, 19580, 198, 6738, 555, 715, 395, 1330, 6208, 20448, 198, 198, 11748, 275, 29609, 198, 6738, 42903, 13, 49464, 1330, 2034, 21947, 198, 6738, 42903, 13, 33407, 1330, 46947, 11792, 198, 1...
3.522727
88
from struct import unpack_from, calcsize LOG_GNSS_POSITION_REPORT = 0x1476 LOG_GNSS_GPS_MEASUREMENT_REPORT = 0x1477 LOG_GNSS_CLOCK_REPORT = 0x1478 LOG_GNSS_GLONASS_MEASUREMENT_REPORT = 0x1480 LOG_GNSS_BDS_MEASUREMENT_REPORT = 0x1756 LOG_GNSS_GAL_MEASUREMENT_REPORT = 0x1886 LOG_GNSS_OEMDRE_MEASUREMENT_REPORT = 0x14DE ...
[ 6738, 2878, 1330, 555, 8002, 62, 6738, 11, 2386, 6359, 1096, 198, 198, 25294, 62, 16630, 5432, 62, 37997, 17941, 62, 2200, 15490, 796, 657, 87, 1415, 4304, 198, 25294, 62, 16630, 5432, 62, 38, 3705, 62, 11682, 1921, 11335, 10979, 62, ...
2.584872
3,900
from __future__ import print_function try: from PyQt5.QtWidgets import * from PyQt5.QtGui import * from PyQt5.QtCore import * except ImportError: from PySide2.QtWidgets import * from PySide2.QtGui import * from PySide2.QtCore import * import hou from hammer_tools.utils import createAction ...
[ 6738, 11593, 37443, 834, 1330, 3601, 62, 8818, 198, 198, 28311, 25, 198, 220, 220, 220, 422, 9485, 48, 83, 20, 13, 48, 83, 54, 312, 11407, 1330, 1635, 198, 220, 220, 220, 422, 9485, 48, 83, 20, 13, 48, 83, 8205, 72, 1330, 1635, ...
2.454545
209
#!/usr/bin/python3 """ UDP sender """ import socket import time import sys smsg = b'\xaa\x08\xfe\x00\xc9\xe6\x5f\xee' if __name__ == '__main__': main()
[ 2, 48443, 14629, 14, 8800, 14, 29412, 18, 198, 198, 37811, 198, 36428, 29788, 198, 37811, 198, 198, 11748, 17802, 198, 11748, 640, 198, 11748, 25064, 198, 198, 82, 19662, 796, 275, 6, 59, 87, 7252, 59, 87, 2919, 59, 87, 5036, 59, ...
2.089744
78
__all__ = ( "Role", )
[ 834, 439, 834, 796, 357, 198, 220, 220, 220, 366, 47445, 1600, 198, 8, 198 ]
1.733333
15
"""project URL Configuration The `urlpatterns` list routes URLs to views. For more information please see: https://docs.djangoproject.com/en/2.0/topics/http/urls/ Examples: Function views 1. Add an import: from my_app import views 2. Add a URL to urlpatterns: path('', views.home, name='home') Class-based...
[ 37811, 16302, 10289, 28373, 198, 198, 464, 4600, 6371, 33279, 82, 63, 1351, 11926, 32336, 284, 5009, 13, 1114, 517, 1321, 3387, 766, 25, 198, 220, 220, 220, 3740, 1378, 31628, 13, 28241, 648, 404, 305, 752, 13, 785, 14, 268, 14, 17,...
2.96
575
print('init')
[ 4798, 10786, 15003, 11537 ]
3.25
4
import tensorflow as tf
[ 11748, 11192, 273, 11125, 355, 48700, 628 ]
3.571429
7
#! /usr/bin/env python import os import sys import math import csv import collections import docopt import peakzilla_qnorm_mapq_patched as pz __doc__ = ''' Usage: join_peaks.py [options] PEAKS CHIP INPUT [ (PEAKS CHIP INPUT) ... ] This script finds peaks in common between multiple ChIP experiments determined by pe...
[ 2, 0, 1220, 14629, 14, 8800, 14, 24330, 21015, 198, 198, 11748, 28686, 198, 11748, 25064, 198, 11748, 10688, 198, 11748, 269, 21370, 198, 11748, 17268, 198, 11748, 2205, 8738, 198, 198, 11748, 9103, 16496, 62, 80, 27237, 62, 8899, 80, ...
2.232772
2,612
from django_town.rest import RestApiView, rest_api_manager from django_town.http import http_json_response from django_town.cache.utlis import SimpleCache from django_town.oauth2.swagger import swagger_authorizations_data from django_town.social.oauth2.permissions import OAuth2Authenticated, OAuth2AuthenticatedOrReadOn...
[ 6738, 42625, 14208, 62, 12735, 13, 2118, 1330, 8324, 32, 14415, 7680, 11, 1334, 62, 15042, 62, 37153, 198, 6738, 42625, 14208, 62, 12735, 13, 4023, 1330, 2638, 62, 17752, 62, 26209, 198, 6738, 42625, 14208, 62, 12735, 13, 23870, 13, 3...
3.440678
118
from dash import Dash, Input, Output, dcc, html from dash.exceptions import PreventUpdate
[ 6738, 14470, 1330, 16189, 11, 23412, 11, 25235, 11, 288, 535, 11, 27711, 198, 6738, 14470, 13, 1069, 11755, 1330, 31572, 10260, 628, 628 ]
3.875
24
import cv2 import io import socket import struct import time import pickle import zlib client_socket = socket.socket(socket.AF_INET, socket.SOCK_STREAM) client_socket.connect(('127.0.0.1', 8485)) connection = client_socket.makefile('wb') cam = cv2.VideoCapture("E:/songs/Attention Charlie Puth(GabbarWorld.com) 1080p.mp4...
[ 11748, 269, 85, 17, 198, 11748, 33245, 198, 11748, 17802, 198, 11748, 2878, 198, 11748, 640, 198, 11748, 2298, 293, 198, 11748, 1976, 8019, 198, 16366, 62, 44971, 796, 17802, 13, 44971, 7, 44971, 13, 8579, 62, 1268, 2767, 11, 17802, 1...
2.509804
306
# coding=utf-8 # Copyright 2022 The Google Research Authors. # # 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 applicab...
[ 2, 19617, 28, 40477, 12, 23, 198, 2, 15069, 33160, 383, 3012, 4992, 46665, 13, 198, 2, 198, 2, 49962, 739, 262, 24843, 13789, 11, 10628, 362, 13, 15, 357, 1169, 366, 34156, 15341, 198, 2, 345, 743, 407, 779, 428, 2393, 2845, 287, ...
2.676976
1,746
"""LoggerFactory Module.""" # Copyright 2020 WolkAbout Technology s.r.o. # # 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 # # Unl...
[ 37811, 11187, 1362, 22810, 19937, 526, 15931, 198, 2, 220, 220, 15069, 12131, 370, 13597, 8585, 8987, 264, 13, 81, 13, 78, 13, 198, 2, 198, 2, 220, 220, 49962, 739, 262, 24843, 13789, 11, 10628, 362, 13, 15, 357, 1169, 366, 34156, ...
2.873964
603
import json import gzip import requests from datetime import datetime import pendulum import boto3 from botocore.exceptions import ClientError from util.log import Log from settings.aws_settings import AWSSettings from settings.telegram_settings import TelegramSettings
[ 11748, 33918, 198, 11748, 308, 13344, 198, 11748, 7007, 198, 6738, 4818, 8079, 1330, 4818, 8079, 198, 198, 11748, 44017, 14452, 198, 11748, 275, 2069, 18, 198, 6738, 10214, 420, 382, 13, 1069, 11755, 1330, 20985, 12331, 198, 198, 6738, ...
4.014706
68
"""Collecting statistics of site visits.""" import collections from datetime import datetime from functools import reduce from django.utils.translation import gettext_lazy as _ from hier.models import IPInfo, AccessLog, SiteStat from v2_hier.utils import APPS def get_site_stat(user): """Processing a new portion of...
[ 37811, 31337, 278, 7869, 286, 2524, 11864, 526, 15931, 198, 11748, 17268, 198, 6738, 4818, 8079, 1330, 4818, 8079, 198, 6738, 1257, 310, 10141, 1330, 4646, 198, 6738, 42625, 14208, 13, 26791, 13, 41519, 1330, 651, 5239, 62, 75, 12582, 3...
2.361612
943
# Copyright 2018 Amazon.com, Inc. or its affiliates. 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. A copy of the License is located at # # http://aws.amazon.com/apache2.0/ # # or in the "LICENSE.txt" file accom...
[ 2, 15069, 2864, 6186, 13, 785, 11, 3457, 13, 393, 663, 29116, 13, 1439, 6923, 33876, 13, 198, 2, 198, 2, 49962, 739, 262, 24843, 13789, 11, 10628, 362, 13, 15, 357, 1169, 366, 34156, 11074, 921, 743, 407, 779, 428, 2393, 2845, 287...
2.61656
5,302
__author__ = 'Xsank' import time from thinkutils_plus.eventbus.eventbus import EventBus from myevent import GreetEvent from myevent import ByeEvent from mylistener import MyListener if __name__=="__main__": eventbus=EventBus() eventbus.register(MyListener()) ge=GreetEvent('world') be=ByeEvent('world'...
[ 834, 9800, 834, 796, 705, 55, 82, 962, 6, 198, 11748, 640, 198, 6738, 892, 26791, 62, 9541, 13, 15596, 10885, 13, 15596, 10885, 1330, 8558, 16286, 198, 198, 6738, 616, 15596, 1330, 402, 2871, 9237, 198, 6738, 616, 15596, 1330, 47843, ...
2.690476
168
# Copyright 2014 The Chromium Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. import unittest from telemetry import benchmark from telemetry.core import browser_options from telemetry.core.platform import android_device from telemetry...
[ 2, 15069, 1946, 383, 18255, 1505, 46665, 13, 1439, 2489, 10395, 13, 198, 2, 5765, 286, 428, 2723, 2438, 318, 21825, 416, 257, 347, 10305, 12, 7635, 5964, 326, 460, 307, 198, 2, 1043, 287, 262, 38559, 24290, 2393, 13, 198, 198, 11748...
3.897196
107
#! /usr/bin/env python import logging #---------------------------------------
[ 2, 0, 1220, 14629, 14, 8800, 14, 24330, 21015, 198, 11748, 18931, 198, 198, 2, 3880, 26866, 198 ]
4.444444
18
import json import multiprocessing as mp import re from argparse import ArgumentParser from enum import Enum, auto import javalang from functools import partial PRED_TOKEN = 'PRED' modifiers = ['public', 'private', 'protected', 'static'] target_type = TargetType.seq RE_WORDS = re.compile(r''' # Find words in a ...
[ 11748, 33918, 198, 11748, 18540, 305, 919, 278, 355, 29034, 198, 11748, 302, 198, 6738, 1822, 29572, 1330, 45751, 46677, 198, 6738, 33829, 1330, 2039, 388, 11, 8295, 198, 11748, 474, 9226, 648, 198, 6738, 1257, 310, 10141, 1330, 13027, ...
2.458239
886
# Copyright 2013-2022 Lawrence Livermore National Security, LLC and other # Spack Project Developers. See the top-level COPYRIGHT file for details. # # SPDX-License-Identifier: (Apache-2.0 OR MIT) from spack import *
[ 2, 15069, 2211, 12, 1238, 1828, 13914, 45036, 3549, 2351, 4765, 11, 11419, 290, 584, 198, 2, 1338, 441, 4935, 34152, 13, 4091, 262, 1353, 12, 5715, 27975, 38162, 9947, 2393, 329, 3307, 13, 198, 2, 198, 2, 30628, 55, 12, 34156, 12, ...
3.421875
64
#!/usr/bin/env python3 # updatetranslations.py # # tl;dr this script updates our translation file with the newest, coolest strings we've added! # it manually searches the source code, extracts strings and then updates the language files. # Written in 2018 by Daniel Oaks <daniel@danieloaks.net> # # To the extent possib...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 18, 198, 2, 2325, 265, 21879, 504, 49905, 13, 9078, 198, 2, 198, 2, 256, 75, 26, 7109, 428, 4226, 5992, 674, 11059, 2393, 351, 262, 15530, 11, 38889, 13042, 356, 1053, 2087, 0, 198, 2, ...
2.019032
3,678
import sys from collections import defaultdict if __name__ == "__main__": Process(sys.argv[1:])
[ 11748, 25064, 198, 6738, 17268, 1330, 4277, 11600, 198, 198, 361, 11593, 3672, 834, 6624, 366, 834, 12417, 834, 1298, 198, 220, 220, 220, 10854, 7, 17597, 13, 853, 85, 58, 16, 25, 12962, 198 ]
2.885714
35
from __future__ import print_function import numpy as np import os,sys,time """ Copied from orphics.mpi """ try: disable_mpi_env = os.environ['DISABLE_MPI'] disable_mpi = True if disable_mpi_env.lower().strip() == "true" else False except: disable_mpi = False """ Use the below cleanup stuff only for inte...
[ 6738, 11593, 37443, 834, 1330, 3601, 62, 8818, 198, 11748, 299, 32152, 355, 45941, 198, 11748, 28686, 11, 17597, 11, 2435, 198, 198, 37811, 198, 13379, 798, 422, 393, 746, 873, 13, 3149, 72, 198, 37811, 198, 198, 28311, 25, 198, 220, ...
2.9375
384
import requests import urllib.request import urllib.parse import PIL import re import configparser import json from PIL import Image from ebaysdk.trading import Connection as Trading from ebaysdk.exception import ConnectionError from yaml import load from PyQt5.QtWidgets import QMessageBox
[ 11748, 7007, 198, 11748, 2956, 297, 571, 13, 25927, 198, 11748, 2956, 297, 571, 13, 29572, 198, 11748, 350, 4146, 198, 11748, 302, 198, 11748, 4566, 48610, 198, 11748, 33918, 198, 6738, 350, 4146, 1330, 7412, 198, 6738, 36649, 592, 3438...
3.560976
82
import typing from bot.constants import BOT_REPO_URL from discord import Embed from discord.ext import commands from discord.ext.commands.cooldowns import BucketType from . import _issues, _profile, _source def setup(bot: commands.Bot) -> None: """Load the Github cog.""" bot.add_cog(Github(bot))
[ 11748, 19720, 198, 198, 6738, 10214, 13, 9979, 1187, 1330, 347, 2394, 62, 2200, 16402, 62, 21886, 198, 6738, 36446, 1330, 13302, 276, 198, 6738, 36446, 13, 2302, 1330, 9729, 198, 6738, 36446, 13, 2302, 13, 9503, 1746, 13, 1073, 15041, ...
3.069307
101
from slackclient import SlackClient from external import SLACK_API_KEY if __name__ == '__main__': SlackBot().send_msg_to('hello world!!')
[ 6738, 30740, 16366, 1330, 36256, 11792, 198, 198, 6738, 7097, 1330, 12419, 8120, 62, 17614, 62, 20373, 628, 198, 198, 361, 11593, 3672, 834, 6624, 705, 834, 12417, 834, 10354, 198, 220, 220, 220, 36256, 20630, 22446, 21280, 62, 19662, 6...
3.041667
48
from typing import Any, Dict, List, Tuple from pytezos.michelson.forge import forge_array, forge_base58, optimize_timestamp
[ 6738, 19720, 1330, 4377, 11, 360, 713, 11, 7343, 11, 309, 29291, 198, 198, 6738, 12972, 660, 37925, 13, 9383, 2978, 1559, 13, 30293, 1330, 28325, 62, 18747, 11, 28325, 62, 8692, 3365, 11, 27183, 62, 16514, 27823, 628, 628, 628, 628, ...
3.093023
43
# Copyright (c) 2018 PaddlePaddle Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by app...
[ 2, 220, 220, 15069, 357, 66, 8, 2864, 350, 37382, 47, 37382, 46665, 13, 1439, 6923, 33876, 13, 198, 2, 198, 2, 49962, 739, 262, 24843, 13789, 11, 10628, 362, 13, 15, 357, 1169, 366, 34156, 15341, 198, 2, 345, 743, 407, 779, 428, ...
3.558952
229
from test_proxy import * from test_serializers import * from test_deserializers import * from test_exceptions import * from test_authentication import * from test_whole_flow import * from test_handlers_metaclass_magic import * from test_handlers_serialize_to_python import * from test_handlers_is_method_allowed im...
[ 6738, 1332, 62, 36436, 1330, 1635, 198, 198, 6738, 1332, 62, 46911, 11341, 1330, 1635, 198, 198, 6738, 1332, 62, 8906, 48499, 11341, 1330, 1635, 198, 198, 6738, 1332, 62, 1069, 11755, 1330, 1635, 198, 198, 6738, 1332, 62, 41299, 3299, ...
3.301136
352
import numpy as np raw = open("inputs/20.txt","r").readlines() input_array= [(i.replace('\n', '').replace('.','0').replace('#', '1')) for i in raw] test_raw = open("inputs/20_test.txt","r").readlines() test_array= [(i.replace('\n', '').replace('.','0').replace('#', '1')) for i in test_raw] #pictureEnhancer(test_arr...
[ 11748, 299, 32152, 355, 45941, 198, 198, 1831, 796, 1280, 7203, 15414, 82, 14, 1238, 13, 14116, 2430, 81, 11074, 961, 6615, 3419, 198, 15414, 62, 18747, 28, 47527, 72, 13, 33491, 10786, 59, 77, 3256, 10148, 737, 33491, 10786, 2637, 40...
2.576687
163
import sys from PyQt5 import QtCore, QtGui, QtWidgets if __name__ == '__main__': app = QtWidgets.QApplication(sys.argv) demo = Demo() demo.show() sys.exit(app.exec_())
[ 11748, 25064, 198, 6738, 9485, 48, 83, 20, 1330, 33734, 14055, 11, 33734, 8205, 72, 11, 33734, 54, 312, 11407, 628, 198, 198, 361, 11593, 3672, 834, 6624, 705, 834, 12417, 834, 10354, 198, 220, 220, 220, 598, 796, 33734, 54, 312, 11...
2.296296
81
import pytest from apistrap.flask import FlaskApistrap from apistrap.schemas import ErrorResponse def test_error_descriptions_from_raises(app_with_raises, client): response = client.get("/spec.json") assert response.json["paths"]["/"]["get"]["responses"] == { "500": { "description": "K...
[ 11748, 12972, 9288, 198, 198, 6738, 2471, 396, 2416, 13, 2704, 2093, 1330, 46947, 25189, 396, 2416, 198, 6738, 2471, 396, 2416, 13, 1416, 4411, 292, 1330, 13047, 31077, 628, 628, 198, 4299, 1332, 62, 18224, 62, 20147, 1968, 507, 62, 6...
1.877224
562
#$Id$ from projects.util.ZohoHttpClient import ZohoHttpClient from projects.api.Api import Api from projects.parser.UsersParser import UsersParser base_url = Api().base_url zoho_http_client = ZohoHttpClient() parser = UsersParser()
[ 29953, 7390, 3, 198, 198, 6738, 4493, 13, 22602, 13, 57, 40950, 43481, 11792, 1330, 1168, 40950, 43481, 11792, 198, 6738, 4493, 13, 15042, 13, 32, 14415, 1330, 5949, 72, 198, 6738, 4493, 13, 48610, 13, 14490, 46677, 1330, 18987, 46677, ...
3.219178
73
#!/usr/bin/env python # Copyright (c) 2013-2015, Rethink Robotics # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are met: # # 1. Redistributions of source code must retain the above copyright notice, # ...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 198, 198, 2, 15069, 357, 66, 8, 2211, 12, 4626, 11, 371, 2788, 676, 47061, 198, 2, 1439, 2489, 10395, 13, 198, 2, 198, 2, 2297, 396, 3890, 290, 779, 287, 2723, 290, 13934, 5107, 11, 3...
3.366492
573
from rest_framework import serializers from .models import Measurement
[ 6738, 1334, 62, 30604, 1330, 11389, 11341, 198, 198, 6738, 764, 27530, 1330, 24291, 434, 628 ]
4.5625
16
_Msun_kpc3_to_GeV_cm3_factor = 0.3/8.0e6
[ 198, 62, 10128, 403, 62, 74, 14751, 18, 62, 1462, 62, 10082, 53, 62, 11215, 18, 62, 31412, 796, 657, 13, 18, 14, 23, 13, 15, 68, 21, 628 ]
1.482759
29
from django.db import models from django.contrib.auth import get_user_model from poll.models.poll_models import Poll
[ 6738, 42625, 14208, 13, 9945, 1330, 4981, 198, 6738, 42625, 14208, 13, 3642, 822, 13, 18439, 1330, 651, 62, 7220, 62, 19849, 198, 6738, 3278, 13, 27530, 13, 30393, 62, 27530, 1330, 12868, 628, 628 ]
3.428571
35
from .base_bev_backbone import BaseBEVBackbone from .decouple_bev_backbone import DecoupledBEVBackbone __all__ = { 'BaseBEVBackbone': BaseBEVBackbone, 'DecoupledBEVBackbone': DecoupledBEVBackbone, }
[ 6738, 764, 8692, 62, 1350, 85, 62, 1891, 15992, 1330, 7308, 12473, 53, 7282, 15992, 198, 6738, 764, 12501, 43846, 62, 1350, 85, 62, 1891, 15992, 1330, 4280, 280, 10137, 12473, 53, 7282, 15992, 198, 198, 834, 439, 834, 796, 1391, 198, ...
2.536585
82
from unittest.mock import Mock import pytest from galaxy import model from galaxy.tools.parameters import basic from .util import BaseParameterTestCase
[ 6738, 555, 715, 395, 13, 76, 735, 1330, 44123, 198, 198, 11748, 12972, 9288, 198, 198, 6738, 16161, 1330, 2746, 198, 6738, 16161, 13, 31391, 13, 17143, 7307, 1330, 4096, 198, 6738, 764, 22602, 1330, 7308, 36301, 14402, 20448, 628, 198 ]
3.804878
41
#!/usr/bin/env python # -*- coding: utf-8 -*- """recumpiler Recompile text to be semi-readable memey garbage. """ __version__ = (0, 0, 0)
[ 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, 8344, 931, 5329, 198, 198, 6690, 3361, 576, 2420, 284, 307, 10663, 12, 46155, 1066, 2959, 15413, 13, 198, ...
2.389831
59
# Copyright 2013 The Chromium Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. { 'variables': { 'chromium_code': 1, 'linux_link_kerberos%': 0, 'conditions': [ ['chromeos==1 or OS=="android" or OS=="ios"', { ...
[ 2, 15069, 2211, 383, 18255, 1505, 46665, 13, 1439, 2489, 10395, 13, 198, 2, 5765, 286, 428, 2723, 2438, 318, 21825, 416, 257, 347, 10305, 12, 7635, 5964, 326, 460, 307, 198, 2, 1043, 287, 262, 38559, 24290, 2393, 13, 198, 198, 90, ...
1.835721
59,344
import logging import torch import torch.nn as nn from abc import ABC, abstractmethod log = logging.getLogger(__name__) def save_model(self, file_path): """ This function saves model to given location. :param file_path: File path to save model. :type file_path: string """ ...
[ 11748, 18931, 198, 11748, 28034, 198, 11748, 28034, 13, 20471, 355, 299, 77, 198, 6738, 450, 66, 1330, 9738, 11, 12531, 24396, 198, 198, 6404, 796, 18931, 13, 1136, 11187, 1362, 7, 834, 3672, 834, 8, 628, 198, 220, 220, 220, 825, 36...
2.551181
254
import math import random from django.db import models def init_questions(self): """ Load a set of questions at random. """ all_questions = ( Criterion.objects.all() .annotate(num_ratings=models.Count('ratings')) ) self.__questions ...
[ 11748, 10688, 198, 11748, 4738, 198, 6738, 42625, 14208, 13, 9945, 1330, 4981, 628, 628, 628, 628, 198, 220, 220, 220, 825, 2315, 62, 6138, 507, 7, 944, 2599, 198, 220, 220, 220, 220, 220, 220, 220, 37227, 198, 220, 220, 220, 220, ...
2.152047
171
# SPDX-License-Identifier: BSD-3-Clause # # Copyright (c) 2021 Vt Labuda. All rights reserved. # # Redistribution and use in source and binary forms, with or without modification, are permitted provided that the # following conditions are met: # 1. Redistributions of source code must retain the above copyright notice,...
[ 2, 30628, 55, 12, 34156, 12, 33234, 7483, 25, 347, 10305, 12, 18, 12, 2601, 682, 198, 2, 198, 2, 15069, 357, 66, 8, 33448, 569, 83, 3498, 15339, 13, 1439, 2489, 10395, 13, 198, 2, 198, 2, 2297, 396, 3890, 290, 779, 287, 2723, ...
3.551261
595
# TODO: https://libvirt.org/formatnwfilter.html
[ 2, 16926, 46, 25, 3740, 1378, 8019, 48940, 13, 2398, 14, 18982, 47516, 24455, 13, 6494 ]
2.9375
16
from estafeta.core.client import EstafetaClient user = None password = None id = None account_number = None production = None from estafeta.core.error import EstafetaWrongData, EstafetaEmptyField __url_label__ = [ 'https://labelqa.estafeta.com/EstafetaLabel20/services/EstafetaLabelWS?wsdl', 'https://label.e...
[ 198, 6738, 1556, 1878, 17167, 13, 7295, 13, 16366, 1330, 10062, 1878, 17167, 11792, 198, 198, 7220, 796, 6045, 198, 28712, 796, 6045, 198, 312, 796, 6045, 198, 23317, 62, 17618, 796, 6045, 198, 25493, 796, 6045, 198, 198, 6738, 1556, ...
2.496269
268
from yunionclient.common import base
[ 6738, 331, 24592, 16366, 13, 11321, 1330, 2779, 628 ]
4.222222
9
""" Defines two dictionaries for converting between text and integer sequences. """ char_map_str = """ ' 0 <SPACE> 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 ...
[ 37811, 198, 7469, 1127, 734, 48589, 3166, 329, 23202, 220, 198, 23395, 2420, 290, 18253, 16311, 13, 198, 37811, 628, 198, 10641, 62, 8899, 62, 2536, 796, 37227, 198, 6, 657, 198, 27, 4303, 11598, 29, 352, 198, 362, 198, 513, 198, 60...
2.133159
383
from flask import Blueprint from flask_restful import Api # from restful import Api from resources.Hello import CategoryResource api_bp = Blueprint('api', __name__) api = Api(api_bp) # Route api.add_resource(CategoryResource, '/Hello')
[ 6738, 42903, 1330, 39932, 198, 6738, 42903, 62, 2118, 913, 1330, 5949, 72, 198, 2, 422, 1334, 913, 1330, 5949, 72, 198, 198, 6738, 4133, 13, 15496, 1330, 21743, 26198, 198, 198, 15042, 62, 46583, 796, 39932, 10786, 15042, 3256, 11593, ...
3.352113
71
#from gevent import monkey #monkey.patch_all() from flask import Flask, render_template, json from flask_socketio import SocketIO, emit from pydbus import SystemBus from gi.repository import GLib import threading import json app = Flask(__name__) app.config['SECRET_KEY'] = 'secret!' socketio = SocketIO(app, async_m...
[ 2, 6738, 4903, 1151, 1330, 21657, 198, 2, 49572, 13, 17147, 62, 439, 3419, 198, 198, 6738, 42903, 1330, 46947, 11, 8543, 62, 28243, 11, 33918, 198, 6738, 42903, 62, 44971, 952, 1330, 47068, 9399, 11, 27588, 198, 198, 6738, 279, 5173, ...
2.665354
254
# -*- coding: utf-8 -*- from includes import * from common import *
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 198, 6738, 3407, 1330, 1635, 198, 6738, 2219, 1330, 1635, 198 ]
2.76
25