content
stringlengths
1
1.04M
input_ids
listlengths
1
774k
ratio_char_token
float64
0.38
22.9
token_count
int64
1
774k
from service import api from service import db
[ 6738, 2139, 1330, 40391, 198, 6738, 2139, 1330, 20613, 198 ]
4.7
10
from __future__ import division from __future__ import print_function import sys sys.path.append('../../') import argparse import pickle import numpy as np import time import torch import torch.nn.functional as F import torch_geometric.utils as g_utils from src.gcn import GCNSynthetic from src.utils.utils import norma...
[ 6738, 11593, 37443, 834, 1330, 7297, 198, 6738, 11593, 37443, 834, 1330, 3601, 62, 8818, 198, 11748, 25064, 198, 17597, 13, 6978, 13, 33295, 10786, 40720, 40720, 11537, 198, 11748, 1822, 29572, 198, 11748, 2298, 293, 198, 11748, 299, 3215...
2.519013
1,946
# coding: utf-8 # # Copyright 2017 The Oppia 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 requi...
[ 2, 19617, 25, 3384, 69, 12, 23, 198, 2, 198, 2, 15069, 2177, 383, 9385, 544, 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...
2.549842
2,217
from django.shortcuts import render from .models import Users, Test, Product # Create your views here. from django.http import HttpResponse import json import copy import sys sys.path.append("..")#為了呼叫上級py檔案函式 # 解决前端post请求 csrf问题 from django.views.decorators.csrf import csrf_exempt from django.views.decorators.gzip imp...
[ 6738, 42625, 14208, 13, 19509, 23779, 1330, 8543, 198, 6738, 764, 27530, 1330, 18987, 11, 6208, 11, 8721, 198, 2, 13610, 534, 5009, 994, 13, 198, 6738, 42625, 14208, 13, 4023, 1330, 367, 29281, 31077, 198, 11748, 33918, 198, 11748, 4866...
2.355263
532
r""" 03. Solvers =========== This tutorial will guide you through the :py:mod:`pylops.optimization` module and show how to use various solvers that are included in the PyLops library. The main idea here is to provide the user of PyLops with very high-level functionalities to quickly and easily set up and solve complex...
[ 81, 37811, 198, 3070, 13, 4294, 690, 198, 2559, 18604, 198, 1212, 11808, 481, 5698, 345, 832, 262, 1058, 9078, 25, 4666, 25, 63, 79, 2645, 2840, 13, 40085, 1634, 63, 198, 21412, 290, 905, 703, 284, 779, 2972, 1540, 690, 326, 389, ...
2.33309
6,860
import logging import re from datetime import datetime, timedelta import numpy as np import pandas as pd from dateutil import parser import oandapyV20.endpoints.instruments as v20instruments from oandapyV20 import V20Error from src.env import RUNNING_ENV from src.utils.timeout_cache import cache OANDA_DATETIME_FORM...
[ 11748, 18931, 198, 11748, 302, 198, 6738, 4818, 8079, 1330, 4818, 8079, 11, 28805, 12514, 198, 198, 11748, 299, 32152, 355, 45941, 198, 11748, 19798, 292, 355, 279, 67, 198, 6738, 3128, 22602, 1330, 30751, 198, 198, 11748, 267, 392, 128...
2.379589
2,969
# -*- coding: utf-8 -*- # # Copyright (c) 2020, the cclib development team # # This file is part of cclib (http://cclib.github.io) and is distributed under # the terms of the BSD 3-Clause License. """Utilities often used by cclib parsers and scripts""" import importlib import re from itertools import accumulate impo...
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 2, 198, 2, 15069, 357, 66, 8, 12131, 11, 262, 269, 565, 571, 2478, 1074, 198, 2, 198, 2, 770, 2393, 318, 636, 286, 269, 565, 571, 357, 4023, 1378, 535, 8019, 13, ...
2.154465
3,852
from datawinners.location.LocationTree import get_location_tree, get_location_hierarchy
[ 6738, 4818, 707, 259, 2741, 13, 24886, 13, 14749, 27660, 1330, 651, 62, 24886, 62, 21048, 11, 651, 62, 24886, 62, 71, 959, 9282, 628 ]
3.56
25
# SPDX-FileCopyrightText: BioPAL <biopal@esa.int> # SPDX-License-Identifier: MIT import logging import numpy as np from scipy.sparse import csr_matrix from scipy.signal import firwin, oaconvolve from biopal.utility.constants import LIGHTSPEED def main_covariance_estimation_SR( data_stack, cov_est_window_size...
[ 2, 30628, 55, 12, 8979, 15269, 8206, 25, 16024, 47, 1847, 1279, 8482, 33067, 31, 49183, 13, 600, 29, 198, 2, 30628, 55, 12, 34156, 12, 33234, 7483, 25, 17168, 198, 198, 11748, 18931, 198, 11748, 299, 32152, 355, 45941, 198, 6738, 62...
1.892772
18,428
import pytest from schrutepy import schrutepy import pandas as pd def test_load_schrute(): """ Check that the record count is correct. """ df = schrutepy.load_schrute() last_index = df.last_valid_index() assert 55129 == last_index
[ 11748, 12972, 9288, 198, 6738, 5513, 81, 315, 538, 88, 1330, 5513, 81, 315, 538, 88, 198, 11748, 19798, 292, 355, 279, 67, 628, 198, 4299, 1332, 62, 2220, 62, 20601, 81, 1133, 33529, 628, 220, 220, 220, 37227, 198, 220, 220, 220, ...
2.54902
102
import serial import threading import time import binascii ser = serial.Serial('/dev/ttyUSB0') print(ser.name) threading.Thread(target=recv,args=(u'',)).start() send('')
[ 11748, 11389, 198, 11748, 4704, 278, 198, 11748, 640, 198, 11748, 9874, 292, 979, 72, 198, 198, 2655, 796, 11389, 13, 32634, 10786, 14, 7959, 14, 42852, 27155, 15, 11537, 198, 4798, 7, 2655, 13, 3672, 8, 220, 628, 198, 16663, 278, 1...
2.692308
65
Time = None Timezone = None
[ 7575, 796, 6045, 198, 7575, 11340, 796, 6045, 198 ]
3.111111
9
from paste.auth import grantip from paste.fixture import *
[ 6738, 17008, 13, 18439, 1330, 7264, 541, 198, 6738, 17008, 13, 69, 9602, 1330, 1635, 198 ]
3.6875
16
# Copyright 2015 The Crashpad 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 applicabl...
[ 2, 15069, 1853, 383, 23653, 15636, 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, 428, 2393, 2845, 287, 11846, 351, ...
2.581616
631
""" +-----------------------------------------------------------------------+ | ONCOGENE | | Author: f0lg0 | | Version: 0.5.0 | | Last update: 1...
[ 37811, 198, 198, 10, 10097, 26866, 10, 198, 91, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 6177, 34, 7730, 39267, 220, 22...
2.319899
794
# Copyright (C) 2017-2019 New York University, # University at Buffalo, # Illinois Institute of Technology. # # 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 th...
[ 2, 15069, 357, 34, 8, 2177, 12, 23344, 968, 1971, 2059, 11, 198, 2, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2059, 379, 14905, 11, 198, 2, 220, 220...
2.306513
7,308
from .checkpoints_evaluation import CheckpointsEvaluationControlFlow from .controlflow import ( record_train_batch_stats, record_validation_stats, validation_round, ) from .helpers import prepare_batch __all__ = [ "CheckpointsEvaluationControlFlow", "record_validation_stats", "record_train_batc...
[ 6738, 764, 9122, 13033, 62, 18206, 2288, 1330, 6822, 13033, 36, 2100, 2288, 15988, 37535, 198, 6738, 764, 3642, 305, 1652, 9319, 1330, 357, 198, 220, 220, 220, 1700, 62, 27432, 62, 43501, 62, 34242, 11, 198, 220, 220, 220, 1700, 62, ...
2.813433
134
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.db import models, migrations import django.utils.timezone
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 6738, 11593, 37443, 834, 1330, 28000, 1098, 62, 17201, 874, 198, 198, 6738, 42625, 14208, 13, 9945, 1330, 4981, 11, 15720, 602, 198, 11748, 42625, 14208, 13, 26791, 13, ...
2.934783
46
"""Предварительная версия интеграции с Go.""" import aiohttp from bson import json_util from poptimizer.shared import connections if __name__ == "__main__": import asyncio loop = asyncio.get_event_loop() print(loop.run_until_complete(rest_reader()))
[ 37811, 140, 253, 21169, 16843, 43666, 38857, 16142, 21169, 18849, 20375, 16843, 30143, 45367, 22177, 16142, 40623, 12466, 110, 16843, 21169, 21727, 18849, 40623, 12466, 116, 22177, 20375, 16843, 140, 111, 21169, 16142, 141, 228, 18849, 18849, ...
2.225
120
# Python implementation of the MySQL client-server protocol # http://forge.mysql.com/wiki/MySQL_Internals_ClientServer_Protocol try: import hashlib sha_new = lambda *args, **kwargs: hashlib.new("sha1", *args, **kwargs) except ImportError: import sha sha_new = sha.new import socket try: import ss...
[ 2, 11361, 7822, 286, 262, 33476, 5456, 12, 15388, 8435, 198, 2, 220, 220, 2638, 1378, 30293, 13, 28744, 13976, 13, 785, 14, 15466, 14, 3666, 17861, 62, 15865, 874, 62, 11792, 10697, 62, 19703, 4668, 198, 198, 28311, 25, 198, 220, 22...
2.455751
6,486
arr = list(map(int, input().split())) target = int(input()) dict = {} length = len(arr) for i in range(0, length): dict[arr[i]]=i lst = [] for i in range(0,length): curr_value = arr[i] if curr_value in dict: to_find = target - curr_value if to_find in dict: temp = [] ...
[ 3258, 796, 1351, 7, 8899, 7, 600, 11, 5128, 22446, 35312, 3419, 4008, 198, 16793, 796, 493, 7, 15414, 28955, 198, 11600, 796, 23884, 198, 13664, 796, 18896, 7, 3258, 8, 198, 1640, 1312, 287, 2837, 7, 15, 11, 4129, 2599, 198, 220, ...
1.956349
252
from hrflow_connectors.connectors.boards.careerbuilder import CareerBuilderFeed
[ 6738, 39436, 11125, 62, 8443, 669, 13, 8443, 669, 13, 12821, 13, 6651, 263, 38272, 1330, 32619, 32875, 18332, 198 ]
4
20
# -*- coding: utf-8 -*- import logging from _mysql_exceptions import OperationalError from django.core.exceptions import ObjectDoesNotExist from django.db import models from networkapi.api_vrf.exceptions import VrfAssociatedToVlanEquipment from networkapi.api_vrf.exceptions import VrfAssociatedToVirtualInterface from...
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 11748, 18931, 198, 198, 6738, 4808, 28744, 13976, 62, 1069, 11755, 1330, 6564, 864, 12331, 198, 6738, 42625, 14208, 13, 7295, 13, 1069, 11755, 1330, 9515, 13921, 3673, 310...
3.5
172
""" SleekXMPP: The Sleek XMPP Library Copyright (C) 2011 Nathanael C. Fritz This file is part of SleekXMPP. See the file LICENSE for copying permission. """ import logging from sleekxmpp.thirdparty import suelta from sleekxmpp.stanza import StreamFeatures from sleekxmpp.xmlstream import RestartStre...
[ 37811, 198, 220, 220, 220, 19498, 988, 55, 7378, 47, 25, 383, 19498, 988, 1395, 7378, 47, 10074, 198, 220, 220, 220, 15069, 357, 34, 8, 2813, 220, 32607, 2271, 417, 327, 13, 45954, 198, 220, 220, 220, 770, 2393, 318, 636, 286, 194...
3.058824
187
import numpy as np from naturalnets.brains.i_layer_based_brain import ILayerBasedBrain from naturalnets.brains.i_brain import registered_brain_classes # TODO: Do this registration via class decorator registered_brain_classes['ELMANNN'] = ElmanNN
[ 11748, 299, 32152, 355, 45941, 198, 6738, 3288, 45938, 13, 1671, 1299, 13, 72, 62, 29289, 62, 3106, 62, 27825, 1330, 14639, 2794, 15001, 44687, 198, 6738, 3288, 45938, 13, 1671, 1299, 13, 72, 62, 27825, 1330, 6823, 62, 27825, 62, 3772...
3.492958
71
#3: Summing a Series import matplotlib.pyplot as plt from sympy import sympify from sympy import Poly,Symbol,summation,pprint,solve,Integral,Derivative from sympy import solve_poly_inequality,solve_rational_inequalities,solve_univariate_inequality,sin #Solving the inequality def inequality_solver(expr): ''' Fo...
[ 2, 18, 25, 5060, 2229, 257, 7171, 198, 11748, 2603, 29487, 8019, 13, 9078, 29487, 355, 458, 83, 198, 6738, 10558, 88, 1330, 10558, 1958, 198, 6738, 10558, 88, 1330, 12280, 11, 13940, 23650, 11, 82, 13929, 341, 11, 381, 22272, 11, 82...
2.095977
2,063
from __future__ import absolute_import, division, print_function import os def find_new_python3_incompatible_code(module_under_test): ''' Check source code to see if any files violate Python 3 syntax that previously did not. Example call: def test_find_python3_violations(): import xia2 impo...
[ 6738, 11593, 37443, 834, 1330, 4112, 62, 11748, 11, 7297, 11, 3601, 62, 8818, 198, 198, 11748, 28686, 198, 198, 4299, 1064, 62, 3605, 62, 29412, 18, 62, 259, 38532, 62, 8189, 7, 21412, 62, 4625, 62, 9288, 2599, 198, 220, 705, 7061, ...
2.87122
1,025
# -*- coding: utf-8 -*- # Copyright (c) 2021, Finbyz Tech. Pvt. Ltd. and contributors # For license information, please see license.txt from __future__ import unicode_literals import frappe from frappe import _ from frappe.utils import flt,cint,get_url_to_form from erpnext.controllers.status_updater import StatusUpdat...
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 2, 15069, 357, 66, 8, 33448, 11, 4463, 1525, 89, 9634, 13, 18367, 83, 13, 12052, 13, 290, 20420, 198, 2, 1114, 5964, 1321, 11, 3387, 766, 5964, 13, 14116, 198, 198, ...
3
129
import torch from torch.tensor import Tensor A = torch.zeros(3, 4, 6) B = torch.rand(3, 4, 6) indA = torch.LongTensor([[0, 0], [0, 1], [1, 1]]) indB = torch.LongTensor([[1, 1], [2, 1], [2, 2]]) print("Inputs") print(A) print(B) print(indA) print(indB) indices_copy(A, B, indA, indB) print("Output inplace") print(...
[ 11748, 28034, 198, 6738, 28034, 13, 83, 22854, 1330, 309, 22854, 198, 198, 32, 796, 28034, 13, 9107, 418, 7, 18, 11, 604, 11, 718, 8, 198, 33, 796, 28034, 13, 25192, 7, 18, 11, 604, 11, 718, 8, 198, 198, 521, 32, 796, 28034, 1...
2.172727
220
from .module import * # noqa: F401,F403 from .operators import * # noqa: F401,F403
[ 6738, 764, 21412, 1330, 1635, 220, 1303, 645, 20402, 25, 376, 21844, 11, 37, 31552, 198, 6738, 764, 3575, 2024, 1330, 1635, 220, 1303, 645, 20402, 25, 376, 21844, 11, 37, 31552, 198 ]
2.575758
33
from rest_framework import serializers from movies.models import Person, Movie, Category
[ 6738, 1334, 62, 30604, 1330, 11389, 11341, 198, 6738, 6918, 13, 27530, 1330, 7755, 11, 15875, 11, 21743 ]
4.888889
18
import os import cv2 import sys import json import time import codecs import argparse import logging import numpy as np import warnings try: with warnings.catch_warnings(): warnings.filterwarnings("ignore",category=FutureWarning) from keras.models import load_model from keras.preprocessing ...
[ 11748, 28686, 198, 11748, 269, 85, 17, 198, 11748, 25064, 198, 11748, 33918, 198, 11748, 640, 198, 11748, 40481, 82, 198, 11748, 1822, 29572, 198, 11748, 18931, 198, 11748, 299, 32152, 355, 45941, 198, 11748, 14601, 198, 198, 28311, 25, ...
2.766764
686
import unittest from nltk import StanfordNERTagger from utils.stanford.ner_tagger import StfNERTagger
[ 11748, 555, 715, 395, 198, 198, 6738, 299, 2528, 74, 1330, 13863, 45, 17395, 7928, 198, 198, 6738, 3384, 4487, 13, 14192, 3841, 13, 1008, 62, 83, 7928, 1330, 520, 69, 45, 17395, 7928, 628 ]
3
35
from typing import Set, Sequence, Dict import multiprocessing from datasketches import kll_ints_sketch, kll_floats_sketch from datasketches import hll_sketch, hll_union, tgt_hll_type from pandas import DataFrame from pandas.core.dtypes.common import is_numeric_dtype, is_string_dtype import numpy as np from duckdq.cor...
[ 6738, 19720, 1330, 5345, 11, 45835, 11, 360, 713, 198, 11748, 18540, 305, 919, 278, 198, 198, 6738, 4818, 11715, 2052, 1330, 479, 297, 62, 29503, 62, 82, 7126, 354, 11, 479, 297, 62, 48679, 1381, 62, 82, 7126, 354, 198, 6738, 4818, ...
3.237952
332
from django.conf import settings from .models import Visitor from django.core.management import call_command # Time after which a user is concidered a new user in (( seconds )) try: VisitorAliveTime = settings.EASY_COUNTER_VISITOR_ALIVE_TIME except: VisitorAliveTime = 300 # Paths to be ignored from counter concider...
[ 6738, 42625, 14208, 13, 10414, 1330, 6460, 198, 6738, 764, 27530, 1330, 6911, 2072, 198, 6738, 42625, 14208, 13, 7295, 13, 27604, 1330, 869, 62, 21812, 198, 198, 2, 3862, 706, 543, 257, 2836, 318, 1673, 3089, 257, 649, 2836, 287, 1480...
3.109948
191
#------------------------------------------------------------------------------- # Author: Lukasz Janyst <lukasz@jany.st> # Date: 24.01.2018 # # Licensed under the 3-Clause BSD License, see the LICENSE file for details. #------------------------------------------------------------------------------- import sys impor...
[ 2, 10097, 24305, 198, 2, 6434, 25, 28102, 292, 89, 449, 1092, 301, 1279, 2290, 42749, 89, 31, 73, 1092, 13, 301, 29, 198, 2, 7536, 25, 220, 220, 1987, 13, 486, 13, 7908, 198, 2, 198, 2, 49962, 739, 262, 513, 12, 2601, 682, 347...
4.359676
987
import numpy as np import pandas as pd import swap import matplotlib.pyplot as plt ############################################################################### # load up data ############################################################################### base_collection_path = '/nfs/slac/g/ki/ki18/cpd/swap/pickles/...
[ 11748, 299, 32152, 355, 45941, 198, 11748, 19798, 292, 355, 279, 67, 198, 11748, 16075, 198, 11748, 2603, 29487, 8019, 13, 9078, 29487, 355, 458, 83, 198, 198, 29113, 29113, 7804, 4242, 21017, 198, 2, 3440, 510, 1366, 198, 29113, 29113,...
2.403904
4,355
from dataclasses import dataclass from typing import Iterable, List from blogbuilder.blog_data_reader import BlogDataReader from blogbuilder.rendering.about_page_renderer import AboutPageRenderer from blogbuilder.rendering.archive_page_renderer import ArchivePageRenderer from blogbuilder.rendering.index_page_renderer ...
[ 6738, 4818, 330, 28958, 1330, 4818, 330, 31172, 198, 6738, 19720, 1330, 40806, 540, 11, 7343, 198, 198, 6738, 4130, 38272, 13, 14036, 62, 7890, 62, 46862, 1330, 14001, 6601, 33634, 198, 6738, 4130, 38272, 13, 13287, 278, 13, 10755, 62, ...
3.598592
142
from logging import error import subprocess
[ 6738, 18931, 1330, 4049, 198, 11748, 850, 14681, 628 ]
5
9
import time from flask_testing import TestCase post_req_keys = ("key", "status", "result_url") get_req_keys = ( "end_time", "process_time", "error", "key", "report", "returncode", "start_time", )
[ 11748, 640, 198, 198, 6738, 42903, 62, 33407, 1330, 6208, 20448, 198, 198, 7353, 62, 42180, 62, 13083, 796, 5855, 2539, 1600, 366, 13376, 1600, 366, 20274, 62, 6371, 4943, 198, 198, 1136, 62, 42180, 62, 13083, 796, 357, 198, 220, 220,...
2.326531
98
import csv import os import re from wo.core.fileutils import WOFileUtils from wo.core.logging import Log from wo.core.shellexec import WOShellExec from wo.core.variables import WOVar
[ 11748, 269, 21370, 198, 11748, 28686, 198, 11748, 302, 198, 198, 6738, 24486, 13, 7295, 13, 7753, 26791, 1330, 370, 46, 8979, 18274, 4487, 198, 6738, 24486, 13, 7295, 13, 6404, 2667, 1330, 5972, 198, 6738, 24486, 13, 7295, 13, 82, 297...
2.983871
62
from django.shortcuts import render from .models import PatientRegister,DoctorRegister,Appointment from .forms import PatientRegisterForm,DoctorRegisterForm,EmergencyForm import json from .keys import encrypt_key from django.http import HttpResponse import cryptocode from jsonview.decorators import json_view from restl...
[ 6738, 42625, 14208, 13, 19509, 23779, 1330, 8543, 198, 6738, 764, 27530, 1330, 35550, 38804, 11, 37564, 38804, 11, 4677, 49805, 198, 6738, 764, 23914, 1330, 35550, 38804, 8479, 11, 37564, 38804, 8479, 11, 48979, 8479, 198, 11748, 33918, 1...
4.068966
116
import cv2 import numpy as np import dnnlib from visualizer import AsyncRenderer if __name__ == '__main__': main()
[ 11748, 269, 85, 17, 198, 11748, 299, 32152, 355, 45941, 198, 198, 11748, 288, 20471, 8019, 198, 6738, 5874, 7509, 1330, 1081, 13361, 49, 437, 11882, 628, 628, 198, 361, 11593, 3672, 834, 6624, 705, 834, 12417, 834, 10354, 198, 220, 22...
2.695652
46
""" Huffman Encoding https://www.youtube.com/watch?v=co4_ahEDCho&t=928s&ab_channel=AbdulBari """ from heapq import heapify,heappop,heappush for _ in range(int(input())): string=input() freq = list(map(int,input().split())) n = len(string) heap=[] for i in range(n): heappush(hea...
[ 37811, 198, 39, 1648, 805, 14711, 7656, 198, 198, 5450, 1378, 2503, 13, 11604, 13, 785, 14, 8340, 30, 85, 28, 1073, 19, 62, 993, 1961, 22164, 5, 83, 28, 24, 2078, 82, 5, 397, 62, 17620, 28, 4826, 67, 377, 33, 2743, 198, 198, 3...
1.862816
277
# generate an nxn matrix with cells above the diagonal blocked out ​ return matrix ​ # receives a matrix and row and col parameters indicating the # starting point in the matrix # recursively traverses the given matrix, skipping over blocked cells # counts the number of paths on the way to the opposite corner ​ ...
[ 2, 7716, 281, 299, 87, 77, 17593, 351, 4778, 2029, 262, 40039, 10226, 503, 220, 198, 9525, 198, 220, 1441, 17593, 198, 9525, 198, 2, 11583, 257, 17593, 290, 5752, 290, 951, 10007, 12739, 262, 220, 198, 2, 3599, 966, 287, 262, 17593,...
3.035938
640
# ----------------------------------------------------------------------------- # Copyright (c) 2019-, PKSHA Technology Inc. # All rights reserved. # # This source code is licensed under the BSD-style license found in the # LICENSE file in the root directory of this source tree. # --------------------------------------...
[ 2, 16529, 32501, 198, 2, 15069, 357, 66, 8, 13130, 20995, 350, 27015, 7801, 8987, 3457, 13, 198, 2, 1439, 2489, 10395, 13, 198, 2, 198, 2, 770, 2723, 2438, 318, 11971, 739, 262, 347, 10305, 12, 7635, 5964, 1043, 287, 262, 198, 2, ...
2.374101
417
import types from abc import ABC, abstractmethod from rxbp.mixins.observermixin import ObserverMixin from rxbp.mixins.postinitmixin import PostInitMixin
[ 11748, 3858, 198, 6738, 450, 66, 1330, 9738, 11, 12531, 24396, 198, 198, 6738, 374, 30894, 79, 13, 19816, 1040, 13, 672, 15388, 19816, 259, 1330, 27058, 35608, 259, 198, 6738, 374, 30894, 79, 13, 19816, 1040, 13, 7353, 15003, 19816, 2...
3.229167
48
# -*- coding: utf-8 -*- """ Tencent is pleased to support the open source community by making 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) available. Copyright (C) 2017-2018 THL A29 Limited, a Tencent company. All rights reserved. Licensed under the MIT License (the "License"); you may not use this file except in co...
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 37811, 198, 24893, 1087, 318, 10607, 284, 1104, 262, 1280, 2723, 2055, 416, 1642, 5525, 241, 251, 165, 110, 116, 162, 247, 118, 12859, 239, 47, 7252, 50, 33176, 111, 2...
3.186992
369
## Spoofing mac via ifconfig from libraries import utility import json
[ 2235, 1338, 37711, 278, 8352, 2884, 611, 11250, 198, 6738, 12782, 1330, 10361, 198, 11748, 33918, 198 ]
4.176471
17
# -*- coding: utf-8 -*- """ 提供主要用于数据交换的序列化处理机制。 """ __all__ = ['Serializer'] import datetime import decimal import json import logging try: import cPickle as pickle except ImportError: import pickle logging.warning("can't import cpickle, use pickle instead") from sqlalchemy.engine import ResultProxy, R...
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 198, 37811, 198, 162, 237, 238, 160, 122, 249, 10310, 119, 17358, 223, 18796, 101, 12859, 236, 46763, 108, 162, 235, 106, 12859, 97, 162, 235, 95, 21410, 41753, 237, 2...
2.051889
2,197
import os import pytest from PIL import Image from smartcrop import SmartCrop @pytest.mark.parametrize('image, crop', [ ('business-work-1.jpg', (41, 0, 1193, 1152)), ('nature-1.jpg', (705, 235, 3639, 3169)), ('travel-1.jpg', (52, 52, 1370, 1370)), ])
[ 11748, 28686, 201, 198, 11748, 12972, 9288, 201, 198, 6738, 350, 4146, 1330, 7412, 201, 198, 6738, 4451, 31476, 1330, 10880, 34, 1773, 201, 198, 201, 198, 31, 9078, 9288, 13, 4102, 13, 17143, 316, 380, 2736, 10786, 9060, 11, 13833, 32...
2.302521
119
# Generated by Django 3.2.3 on 2021-05-30 10:39 from django.db import migrations, models
[ 2, 2980, 515, 416, 37770, 513, 13, 17, 13, 18, 319, 33448, 12, 2713, 12, 1270, 838, 25, 2670, 198, 198, 6738, 42625, 14208, 13, 9945, 1330, 15720, 602, 11, 4981, 628 ]
2.84375
32
from django.db import models # Create your models here.
[ 6738, 42625, 14208, 13, 9945, 1330, 4981, 198, 198, 2, 13610, 534, 4981, 994, 13, 628 ]
3.625
16
import os import json import bpy import mathutils from . import livebuild_helper as helper from .export import exporter_field, elfin_ui_exporter # Operators -------------------------------------- # Operators -------------------------------------- # Helpers ---------------------------------------- ...
[ 11748, 28686, 201, 198, 11748, 33918, 201, 198, 201, 198, 11748, 275, 9078, 201, 198, 11748, 10688, 26791, 201, 198, 201, 198, 6738, 764, 1330, 2107, 11249, 62, 2978, 525, 355, 31904, 201, 198, 6738, 764, 39344, 1330, 1033, 4337, 62, ...
3.735632
87
# -*- coding: utf-8 -*- """---------------------------------------------------------------------------- Author: Huang Quanyong (wo1fSea) quanyongh@foxmail.com Date: 2019/8/4 Description: example.py ----------------------------------------------------------------------------""" from pyeasyrpc.rpc import...
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 37811, 10097, 10541, 198, 13838, 25, 198, 220, 220, 220, 31663, 2264, 1092, 506, 357, 21638, 16, 69, 37567, 8, 198, 220, 220, 220, 627, 1092, 19757, 31, 12792, 4529, 1...
3.45
120
"""Provide the Operator class""" from contextlib import suppress import operator from enum import Enum from collections import namedtuple from functools import wraps from typing import Any, Callable, Mapping, Tuple, ClassVar, Type from .context import ContextAnnoType, ContextBase from .function import Function Opera...
[ 37811, 15946, 485, 262, 35946, 1398, 37811, 198, 6738, 4732, 8019, 1330, 18175, 198, 11748, 10088, 198, 6738, 33829, 1330, 2039, 388, 198, 6738, 17268, 1330, 3706, 83, 29291, 198, 6738, 1257, 310, 10141, 1330, 27521, 198, 6738, 19720, 133...
2.594966
1,748
# Generated by Django 3.2.12 on 2022-03-31 07:59 from django.db import migrations, models
[ 2, 2980, 515, 416, 37770, 513, 13, 17, 13, 1065, 319, 33160, 12, 3070, 12, 3132, 8753, 25, 3270, 198, 198, 6738, 42625, 14208, 13, 9945, 1330, 15720, 602, 11, 4981, 628 ]
2.875
32
''' convert_bmp_to_arduino_multiarray: Converts BMP into an arduino multiarray. Note that "python setup.py test" invokes pytest on the package. With appropriately configured setup.cfg, this will check both xxx_test modules and docstrings. Copyright 2016, Phillip Green II. Licensed under MIT. ''' from codecs import op...
[ 7061, 6, 198, 1102, 1851, 62, 65, 3149, 62, 1462, 62, 446, 84, 2879, 62, 16680, 12571, 2433, 25, 1482, 24040, 347, 7378, 656, 281, 610, 24493, 5021, 18747, 13, 198, 198, 6425, 326, 366, 29412, 9058, 13, 9078, 1332, 1, 800, 3369, 1...
2.817708
576
import sys import os
[ 11748, 25064, 198, 11748, 28686, 628 ]
3.666667
6
# -*- coding: utf-8 -*- """ This is a tool which, when run, will determine and visualise the area that can be covered by an amount of concentrated waste, accounting for roads and creeks (which need no fertilising). This will demonstrate to clients the area that can be covered if they are smart about their waste an...
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 198, 37811, 198, 1212, 318, 257, 2891, 543, 11, 618, 1057, 11, 481, 5004, 290, 5874, 786, 262, 1989, 326, 460, 201, 198, 1350, 5017, 416, 281, 2033, 286, 17298, 7030, ...
2.258111
5,548
# -*- coding: utf-8 -*- from __future__ import absolute_import import colorama import sys def extract_styles(obj): '''Extract styles from a colorama ansi code obj''' attrs = {k.lower(): v for k, v in obj.__dict__.items() if k.isupper()} return type(obj.__class__.__name__, (), attrs) def styled(string...
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 6738, 11593, 37443, 834, 1330, 4112, 62, 11748, 198, 11748, 3124, 1689, 198, 11748, 25064, 628, 628, 198, 4299, 7925, 62, 47720, 7, 26801, 2599, 198, 220, 220, 220, 705,...
2.665563
302
from .base import API from .routing import Router from .. import urls
[ 6738, 764, 8692, 1330, 7824, 198, 6738, 764, 81, 13660, 1330, 48538, 198, 6738, 11485, 1330, 2956, 7278, 628, 198 ]
3.6
20
import FWCore.ParameterSet.Config as cms HGCRecHitCollectionsBlock = cms.PSet( HGCRecHitCollections = cms.PSet( HGCEEInput = cms.InputTag('HGCalRecHit:HGCEERecHits'), HGCFHInput = cms.InputTag('HGCalRecHit:HGCHEFRecHits'), HGCBHInput = cms.InputTag('HGCalRecHit:HGCHEBRecHits'), ) ...
[ 11748, 48849, 14055, 13, 36301, 7248, 13, 16934, 355, 269, 907, 198, 198, 39, 15916, 6690, 17889, 5216, 26448, 12235, 796, 269, 907, 13, 3705, 316, 7, 198, 220, 220, 220, 367, 15916, 6690, 17889, 5216, 26448, 796, 269, 907, 13, 3705, ...
2.037736
159
import csv import importlib.resources as res import joblib import json import pandas as pd from ..feat import utils from .. import LOG_FORMAT from flask import Flask, render_template, request, jsonify ### Globals app = Flask(__name__) MODEL = None PEAK_GEOSJON = None HIMAL_GEOJSON = None PEAK_DF = Non...
[ 11748, 269, 21370, 198, 11748, 1330, 8019, 13, 37540, 355, 581, 198, 11748, 1693, 8019, 198, 11748, 33918, 198, 11748, 19798, 292, 355, 279, 67, 198, 6738, 11485, 27594, 1330, 3384, 4487, 198, 6738, 11485, 1330, 41605, 62, 21389, 1404, ...
2.105769
416
import json import os import time import click import googleapiclient import googleapiclient.discovery import sys sys.path.append('/Users/josang-yeon/2020/tobigs/tobigs_reco_conf/recsys2019/src') from recsys.automation.utils import get_timestamp, str_to_hash @click.command() @click.option("--config_file", type=...
[ 11748, 33918, 198, 11748, 28686, 198, 11748, 640, 198, 198, 11748, 3904, 198, 11748, 23645, 499, 291, 75, 1153, 198, 11748, 23645, 499, 291, 75, 1153, 13, 67, 40821, 198, 11748, 25064, 198, 17597, 13, 6978, 13, 33295, 10786, 14, 14490, ...
2.706667
150
# pylint: disable=logging-fstring-interpolation,logging-not-lazy, dangerous-default-value # # Manipulate systemd services from python # import logging from shutil import which from posix import geteuid from subprocess import CalledProcessError # to enable monkeypatching, don't import "from tmv.util", but instead: impo...
[ 2, 279, 2645, 600, 25, 15560, 28, 6404, 2667, 12, 69, 8841, 12, 3849, 16104, 341, 11, 6404, 2667, 12, 1662, 12, 75, 12582, 11, 4923, 12, 12286, 12, 8367, 198, 2, 198, 2, 35045, 5039, 31490, 2594, 422, 21015, 198, 2, 198, 198, 11...
2.70765
366
import asyncio import sqlite3 import discord from discord import PermissionOverwrite from discord.errors import NotFound import globvars from config import (ALIVE_ROLE_ID, DEAD_ROLE_ID, HOST_ROLE_ID, MAIN_CATEGORY_ID, MOD_ROLE_ID, SERVER_ID, SPECTATOR_ROLE_ID) from .data impor...
[ 11748, 30351, 952, 198, 11748, 44161, 578, 18, 198, 198, 11748, 36446, 198, 6738, 36446, 1330, 2448, 3411, 5886, 13564, 198, 6738, 36446, 13, 48277, 1330, 1892, 21077, 198, 198, 11748, 15095, 85, 945, 198, 6738, 4566, 1330, 357, 1847, 9...
2.168682
1,571
from typing import Dict, Any OP_SET = { 'in': match_in, 'eq': match_eq }
[ 6738, 19720, 1330, 360, 713, 11, 4377, 628, 628, 628, 198, 3185, 62, 28480, 796, 1391, 198, 220, 220, 220, 705, 259, 10354, 2872, 62, 259, 11, 198, 220, 220, 220, 705, 27363, 10354, 2872, 62, 27363, 198, 92, 628 ]
2.2
40
# -*- coding: utf-8 -*- # Copyright© 1986-2018 Altair Engineering Inc. """Component extensions allows to use a generic env and pass its name when creating a Kard""" from __future__ import absolute_import from builtins import str import os from git import Repo from pkr.cli.log import write from . import ExtMixin ...
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 2, 15069, 16224, 12113, 12, 7908, 12344, 958, 14044, 3457, 13, 198, 198, 37811, 21950, 18366, 3578, 284, 779, 257, 14276, 17365, 290, 1208, 663, 1438, 618, 4441, 257, 37...
2.520101
398
import numpy as np from scipy.special import logsumexp from .utils import log_diagonalize from hmmlearn.base import _BaseHMM from hmmlearn._utils import check_is_fitted from hmmlearn.utils import iter_from_X_lengths, log_mask_zero, log_normalize from sklearn.utils import check_array from .estimation import compute_log...
[ 11748, 299, 32152, 355, 45941, 198, 6738, 629, 541, 88, 13, 20887, 1330, 2604, 16345, 11201, 198, 6738, 764, 26791, 1330, 2604, 62, 10989, 27923, 1096, 198, 6738, 289, 3020, 35720, 13, 8692, 1330, 4808, 14881, 39, 12038, 198, 6738, 289,...
3
130
from django.apps import AppConfig
[ 6738, 42625, 14208, 13, 18211, 1330, 2034, 16934, 628 ]
3.888889
9
# -*- coding: utf-8 -*- # Learn more: https://github.com/kennethreitz/setup.py from setuptools import setup, find_packages with open('README.md') as f: readme = f.read() with open('LICENSE') as f: license = f.read() setup( name='pyheatmy', version='0.1.0', description='PyHeat', long_descri...
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 198, 2, 14365, 517, 25, 3740, 1378, 12567, 13, 785, 14, 74, 1697, 2788, 260, 4224, 14, 40406, 13, 9078, 198, 198, 6738, 900, 37623, 10141, 1330, 9058, 11, 1064, 62, ...
2.418033
244
# Copyright (c) 2014, 2016 Oracle and/or its affiliates. All rights reserved. # This program and the accompanying materials are made available under the # terms of the Eclipse Public License v1.0 and Eclipse Distribution License v. 1.0 # which accompanies this distribution. # The Eclipse Public License is available at ...
[ 2, 15069, 357, 66, 8, 1946, 11, 1584, 18650, 290, 14, 273, 663, 29116, 13, 1439, 2489, 10395, 13, 198, 2, 770, 1430, 290, 262, 19249, 5696, 389, 925, 1695, 739, 262, 198, 2, 2846, 286, 262, 30991, 5094, 13789, 410, 16, 13, 15, 2...
3.061404
4,560
import pandas as pd from libreco.data import random_split, DatasetPure from libreco.algorithms import SVDpp # pure data, algorithm SVD++ from libreco.evaluation import evaluate # remove unnecessary tensorflow logging import os import tensorflow as tf os.environ['TF_CPP_MIN_LOG_LEVEL'] = '3' os.environ["KMP_WARNINGS"]...
[ 11748, 19798, 292, 355, 279, 67, 198, 6738, 9195, 260, 1073, 13, 7890, 1330, 4738, 62, 35312, 11, 16092, 292, 316, 49548, 198, 6738, 9195, 260, 1073, 13, 282, 7727, 907, 1330, 311, 8898, 381, 220, 1303, 5899, 1366, 11, 11862, 311, 8...
2.195812
955
# api: streamtuner2 # title: Streema # description: Directory and app for over 70.000 stations # type: channel # category: radio # version: 0.3 # url: http://www.streema.com/ # png: # iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAABF0lEQVR42oWTMWsCURCE/Y/Bxh+QLrUIloKdELCxTOOBRSSgpZVYhCAWCtcEETGQJmCTkG7k47HcereeA4vnu3...
[ 2, 40391, 25, 4269, 28286, 263, 17, 198, 2, 3670, 25, 9737, 19687, 198, 2, 6764, 25, 27387, 290, 598, 329, 625, 4317, 13, 830, 8985, 198, 2, 2099, 25, 6518, 198, 2, 6536, 25, 5243, 198, 2, 2196, 25, 657, 13, 18, 198, 2, 19016,...
2.268022
541
import pathlib PACKAGE_NAME = 'apify_client' REPO_ROOT = pathlib.Path(__file__).parent.resolve() / '../..' VERSION_FILE_PATH = REPO_ROOT / f'src/{PACKAGE_NAME}/_version.py' # Load the current version number from src/package_name/_version.py # It is on a line in the format __version__ = 1.2.3 # Write the given vers...
[ 11748, 3108, 8019, 198, 198, 47, 8120, 11879, 62, 20608, 796, 705, 499, 1958, 62, 16366, 6, 198, 2200, 16402, 62, 13252, 2394, 796, 3108, 8019, 13, 15235, 7, 834, 7753, 834, 737, 8000, 13, 411, 6442, 3419, 1220, 705, 40720, 492, 6, ...
2.973333
150
import os from distutils.core import setup VERSION = '1.0.0' try: revision = os.environ['REVISION'] except Exception: pass else: VERSION = revision try: VERSION = os.environ['INTERNAL_VERSION'] except: pass setup( name='scheme', version=VERSION, description='A declarative schema frame...
[ 11748, 28686, 198, 6738, 1233, 26791, 13, 7295, 1330, 9058, 198, 198, 43717, 796, 705, 16, 13, 15, 13, 15, 6, 198, 28311, 25, 198, 220, 220, 220, 18440, 796, 28686, 13, 268, 2268, 17816, 2200, 29817, 2849, 20520, 198, 16341, 35528, ...
2.653495
329
from roomballot.methods import generate_times, BallotInProgressException from django.core.management.base import BaseCommand, CommandError
[ 6738, 2119, 1894, 313, 13, 24396, 82, 1330, 7716, 62, 22355, 11, 6932, 313, 818, 32577, 16922, 198, 6738, 42625, 14208, 13, 7295, 13, 27604, 13, 8692, 1330, 7308, 21575, 11, 9455, 12331 ]
4.181818
33
from distutils.core import setup, Extension from glob import glob import time, sys setup( name = 'foreground_app_info', version = time.strftime("1.%Y%m%d.%H%M%S", time.gmtime()), packages = ['foreground_app_info'], package_dir = {'foreground_app_info': ''}, description = 'Get details about the application and...
[ 198, 198, 6738, 1233, 26791, 13, 7295, 1330, 9058, 11, 27995, 198, 6738, 15095, 1330, 15095, 198, 11748, 640, 11, 25064, 628, 198, 40406, 7, 198, 197, 3672, 796, 705, 754, 2833, 62, 1324, 62, 10951, 3256, 198, 197, 9641, 796, 640, 1...
3.019391
361
"""Credo AI's AI Assessment Framework""" from absl import logging from copy import deepcopy from credoai.artifacts import CredoGovernance, CredoModel, CredoData from credoai.assessment.credo_assessment import CredoAssessment from credoai.assessment import AssessmentBunch from credoai.utils.common import ( raise_or...
[ 37811, 34, 48454, 9552, 338, 9552, 25809, 25161, 37811, 198, 198, 6738, 2352, 75, 1330, 18931, 198, 6738, 4866, 1330, 2769, 30073, 198, 6738, 2600, 78, 1872, 13, 50179, 1330, 327, 48454, 29168, 590, 11, 327, 48454, 17633, 11, 327, 48454...
3.355634
284
# Copyright 2013-2018 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 * class SimpleInheritance(BaseWithDirectives): """Simple package which acts as a build dependency...
[ 2, 15069, 2211, 12, 7908, 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, 33234, ...
2.921875
192
from time import sleep from emoji import emojize print('\033[33m-=-\033[m' * 20) print('\033[33m************* Contagem regressiva! *************\033[m') print('\033[33m-=-\033[m' * 20) for c in range(10, -1, -1): print('{}!' .format(c)) sleep(1) print(emojize(':fireworks: :fire: ' *5))
[ 6738, 640, 1330, 3993, 198, 6738, 44805, 1330, 795, 13210, 1096, 198, 198, 4798, 10786, 59, 44427, 58, 2091, 76, 12, 10779, 59, 44427, 58, 76, 6, 1635, 1160, 8, 198, 4798, 10786, 59, 44427, 58, 2091, 76, 4557, 35625, 2345, 363, 368,...
2.330709
127
# Copyright 2019 Nathan Jay and Noga Rotman # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed ...
[ 2, 15069, 13130, 18106, 9180, 290, 399, 10949, 18481, 805, 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...
3.820988
162
# Copyright 2020 The Board of Trustees of the Leland Stanford Junior University # # Author: Silei Xu <silei@cs.stanford.edu> # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are met: # # * Redistributions of source code must reta...
[ 2, 15069, 12131, 383, 5926, 286, 9870, 2841, 286, 262, 406, 8822, 13863, 20000, 2059, 198, 2, 198, 2, 6434, 25, 311, 576, 72, 33591, 1279, 82, 576, 72, 31, 6359, 13, 14192, 3841, 13, 15532, 29, 198, 2, 198, 2, 2297, 396, 3890, 2...
3.007767
1,545
""" URLs and other constants """ URL_CONFIRMED = "https://raw.githubusercontent.com/CSSEGISandData/COVID-19/master/csse_covid_19_data/csse_covid_19_time_series/time_series_covid19_confirmed_global.csv" URL_DEATH = "https://raw.githubusercontent.com/CSSEGISandData/COVID-19/master/csse_covid_19_data/csse_covid_19_time_s...
[ 37811, 32336, 290, 584, 38491, 37227, 198, 198, 21886, 62, 10943, 39776, 30733, 796, 366, 5450, 1378, 1831, 13, 12567, 43667, 13, 785, 14, 7902, 5188, 38, 1797, 392, 6601, 14, 8220, 11008, 12, 1129, 14, 9866, 14, 6359, 325, 62, 66, ...
2.444867
263
# -*- coding: utf-8 -*- # Copyright (C) 2012-2016 Mag. Christian Tanzer All rights reserved # Glasauergasse 32, A--1130 Wien, Austria. tanzer@swing.co.at # #*** <License> ************************************************************# # This module is part of the package CHJ.CSS. # # This module is licensed under the ter...
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 2, 15069, 357, 34, 8, 2321, 12, 5304, 2944, 13, 4302, 11818, 9107, 1439, 2489, 10395, 198, 2, 21931, 559, 6422, 21612, 3933, 11, 317, 438, 1157, 1270, 370, 2013, 11, ...
2.423756
623
#! /usr/bin/env python from iwi.core import classify from iwi.core import Thread from iwi.core import WebEntity from iwi.threading import Pool from iwi.web import all_boards from common import logger from common import parameters def prune_cache (*links): """ Prunes 404ed entries from th...
[ 2, 0, 1220, 14629, 14, 8800, 14, 24330, 21015, 198, 198, 6738, 1312, 37686, 13, 7295, 220, 220, 220, 220, 220, 1330, 36509, 198, 6738, 1312, 37686, 13, 7295, 220, 220, 220, 220, 220, 1330, 14122, 198, 6738, 1312, 37686, 13, 7295, 22...
2.548105
686
#!/usr/bin/env python2.7 from __future__ import print_function, division import numpy as np import matplotlib.pyplot as plt import matplotlib.colors as clr from matplotlib import cm import dtk import h5py import sys import os import time
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 17, 13, 22, 198, 198, 6738, 11593, 37443, 834, 1330, 3601, 62, 8818, 11, 7297, 198, 198, 11748, 299, 32152, 355, 45941, 198, 11748, 2603, 29487, 8019, 13, 9078, 29487, 355, 458, 83, 198, ...
3.063291
79
from ymmsl import Identifier, Reference, Settings from ymmsl import SettingValue # noqa: F401 # pytest: disable=W0611 from collections import OrderedDict from typing import cast, List import yatiml import pytest @pytest.fixture
[ 6738, 331, 76, 907, 75, 1330, 11440, 7483, 11, 20984, 11, 16163, 198, 6738, 331, 76, 907, 75, 1330, 25700, 11395, 220, 1303, 645, 20402, 25, 376, 21844, 1303, 12972, 9288, 25, 15560, 28, 54, 3312, 1157, 198, 198, 6738, 17268, 1330, ...
3.0875
80
# Aprendizaje Automático: Proyecto Final # Clasificación de símbolos Devanagari # Patricia Córdoba Hidalgo # David Cabezas Berrido # preprocessing.py # Preprocesado de imágenes: centrado y eliminación de dimensionalidad # promediando por bloques import numpy as np from skimage.filters import threshold_otsu from skim...
[ 2, 317, 3866, 358, 528, 1228, 68, 17406, 6557, 83, 3713, 25, 1041, 88, 478, 78, 8125, 198, 2, 1012, 292, 811, 32009, 18840, 390, 264, 8836, 23650, 418, 6245, 272, 363, 2743, 198, 2, 30223, 327, 10205, 4372, 19981, 367, 11624, 2188, ...
3.234043
235
#!/usr/bin/env python2.3 ''' tests the progression of mod(s) from addition (binding a branch, codestream and one or more change requests), submission and approval. script cleans up by removing the token file it creates from /magma/scm-release/submissions/sf-scm ''' #version = 0.90 # 02/25/2004 First compl...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 17, 13, 18, 201, 198, 201, 198, 7061, 6, 201, 198, 41989, 262, 17085, 286, 220, 953, 7, 82, 8, 422, 3090, 201, 198, 7, 30786, 257, 8478, 11, 14873, 395, 1476, 290, 530, 393, 517, 1487...
2.316959
10,260
from flask import Blueprint, session from constants import frontend_address from methods.token import token_validate, token_issue from . import is_api, cors_allow cookie_blueprint = Blueprint('Cookie-Based', __name__) @cookie_blueprint.route('/setting', methods=['GET', 'OPTIONS']) @cors_allow(frontend_address) @is_a...
[ 6738, 42903, 1330, 39932, 11, 6246, 198, 6738, 38491, 1330, 2166, 437, 62, 21975, 198, 6738, 5050, 13, 30001, 1330, 11241, 62, 12102, 378, 11, 11241, 62, 21949, 198, 6738, 764, 1330, 318, 62, 15042, 11, 269, 669, 62, 12154, 198, 198, ...
3
144
import os import json import redis import logging from walrus import Database redis_host = os.environ.get('REDISHOST', 'localhost') redis_port = int(os.environ.get('REDISPORT', 6379)) #redis_client = redis.StrictRedis(host=redis_host, port=redis_port) walrus_db = Database(host=redis_host, port=redis_port) ac = walrus_...
[ 11748, 28686, 198, 11748, 33918, 198, 11748, 2266, 271, 198, 11748, 18931, 198, 6738, 6514, 14932, 1330, 24047, 198, 198, 445, 271, 62, 4774, 796, 28686, 13, 268, 2268, 13, 1136, 10786, 22083, 18422, 10892, 3256, 705, 36750, 11537, 198, ...
2.640719
167
import inspect print inspect.getargspec(f1) print inspect.getargspec(f2)
[ 11748, 10104, 198, 198, 4798, 10104, 13, 1136, 853, 16684, 7, 69, 16, 8, 198, 4798, 10104, 13, 1136, 853, 16684, 7, 69, 17, 8, 628 ]
2.884615
26
from typing import TYPE_CHECKING, Any, Dict, List, Union if TYPE_CHECKING: from ansiblelint.constants import odict from ansiblelint.errors import MatchError from ansiblelint.file_utils import Lintable class BaseRule: """Root class used by Rules.""" id: str = "" tags: List[str] = [] short...
[ 6738, 19720, 1330, 41876, 62, 50084, 2751, 11, 4377, 11, 360, 713, 11, 7343, 11, 4479, 198, 198, 361, 41876, 62, 50084, 2751, 25, 198, 220, 220, 220, 422, 9093, 856, 75, 600, 13, 9979, 1187, 1330, 267, 11600, 198, 220, 220, 220, 4...
2.719316
994
from ortools.linear_solver import pywraplp solver = pywraplp.Solver.CreateSolver('GLOP') x = solver.NumVar(0,10,'x') y = solver.NumVar(0,10,'y') solver.Add(-x+2*y<=8) solver.Add(2*x+y<=14) solver.Add(2*x-y<=10) solver.Maximize(x+y) results = solver.Solve() if results==pywraplp.Solver.OPTIMAL: print...
[ 6738, 393, 31391, 13, 29127, 62, 82, 14375, 1330, 12972, 29988, 489, 79, 201, 198, 201, 198, 82, 14375, 796, 12972, 29988, 489, 79, 13, 50, 14375, 13, 16447, 50, 14375, 10786, 8763, 3185, 11537, 201, 198, 201, 198, 87, 796, 1540, 33...
2.004926
203
# 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. import httplib import json import logging import pprint import re import socket import sys import urllib2 from telemetry.core import exceptions from telemet...
[ 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, 11748...
3.126071
817
from django.urls import path, include from django.contrib.auth import views as auth_views from .admin import admin_pannel urlpatterns = [ path("", admin_pannel.urls), ]
[ 6738, 42625, 14208, 13, 6371, 82, 1330, 3108, 11, 2291, 198, 6738, 42625, 14208, 13, 3642, 822, 13, 18439, 1330, 5009, 355, 6284, 62, 33571, 198, 6738, 764, 28482, 1330, 13169, 62, 79, 4276, 198, 198, 6371, 33279, 82, 796, 685, 198, ...
2.949153
59
import sys import os sys.path.append("vkbot/") from vk_bot import bot_response from create_db import init_db, add_log sys.path.append("cel_base/") from add import inserter from time import time
[ 11748, 25064, 198, 11748, 28686, 198, 17597, 13, 6978, 13, 33295, 7203, 85, 74, 13645, 14, 4943, 198, 6738, 410, 74, 62, 13645, 1330, 10214, 62, 26209, 198, 6738, 2251, 62, 9945, 1330, 2315, 62, 9945, 11, 751, 62, 6404, 198, 17597, ...
2.941176
68
import os import shutil from uttl.buildout.base_recipe import BaseRecipe from zc.buildout import UserError
[ 11748, 28686, 198, 11748, 4423, 346, 198, 198, 6738, 3384, 28781, 13, 11249, 448, 13, 8692, 62, 29102, 431, 1330, 7308, 37523, 198, 6738, 1976, 66, 13, 11249, 448, 1330, 11787, 12331 ]
3.34375
32