content
stringlengths
1
1.05M
input_ids
listlengths
1
883k
ratio_char_token
float64
1
22.9
token_count
int64
1
883k
# Author:Sunny Liu from django.shortcuts import HttpResponse from django.shortcuts import render from django.shortcuts import redirect from urmovie import models from django.views.decorators.csrf import csrf_exempt import hashlib,os """ 1. """
[ 2, 6434, 25, 16012, 3281, 18258, 198, 6738, 42625, 14208, 13, 19509, 23779, 1330, 367, 29281, 31077, 198, 6738, 42625, 14208, 13, 19509, 23779, 1330, 8543, 198, 6738, 42625, 14208, 13, 19509, 23779, 1330, 18941, 198, 6738, 2956, 41364, 13...
2.965517
87
import torch import torch.nn as nn from torch.cuda.amp import custom_fwd if __name__ == '__main__': m = BatchReNorm2D(100) input = torch.randn(20, 100, 35, 45) output = m(input)
[ 11748, 28034, 198, 11748, 28034, 13, 20471, 355, 299, 77, 198, 6738, 28034, 13, 66, 15339, 13, 696, 1330, 2183, 62, 69, 16993, 628, 198, 198, 361, 11593, 3672, 834, 6624, 705, 834, 12417, 834, 10354, 198, 220, 220, 220, 285, 796, 34...
2.382716
81
import enum __all__ = ["TokenType", "Token", "lookup_ident"] KEYWORDS = { "fn": TokenType.FUNCTION, "let": TokenType.LET, "true": TokenType.TRUE, "false": TokenType.FALSE, "if": TokenType.IF, "else": TokenType.ELSE, "return": TokenType.RETURN, "const": TokenType.CONST, "while": ...
[ 11748, 33829, 198, 198, 834, 439, 834, 796, 14631, 30642, 6030, 1600, 366, 30642, 1600, 366, 5460, 929, 62, 738, 8973, 628, 628, 198, 20373, 45359, 5258, 796, 1391, 198, 220, 220, 220, 366, 22184, 1298, 29130, 6030, 13, 42296, 4177, 2...
2.479592
196
from collections import deque as LL if __name__ == "__main__": manager_no_dp = VM_Manager() manager_dp = VM_Manager() init_dp = open('init-dp.txt','r') input_dp = open('input-dp.txt', 'r') init_no_dp = open('init-no-dp.txt','r') input_no_dp = open('input-no-dp.txt', 'r') STs_dp = li...
[ 6738, 17268, 1330, 390, 4188, 355, 27140, 628, 198, 198, 361, 11593, 3672, 834, 6624, 366, 834, 12417, 834, 1298, 198, 220, 220, 220, 4706, 62, 3919, 62, 26059, 796, 16990, 62, 13511, 3419, 198, 220, 220, 220, 4706, 62, 26059, 796, ...
2.011429
700
import os from flask import session from src.utils.common.common_helper import load_project_encdoing, load_project_model, load_project_pca, \ load_project_scaler, read_config from loguru import logger from from_root import from_root from src.utils.databases.mysql_helper import MySqlHelper from src.preprocessing.pre...
[ 11748, 28686, 198, 6738, 42903, 1330, 6246, 198, 6738, 12351, 13, 26791, 13, 11321, 13, 11321, 62, 2978, 525, 1330, 3440, 62, 16302, 62, 12685, 19631, 11, 3440, 62, 16302, 62, 19849, 11, 3440, 62, 16302, 62, 79, 6888, 11, 3467, 198, ...
3.01087
276
"""Views for admin app.""" import random import os import requests from django.shortcuts import render from django.contrib.auth.models import User from django.contrib.auth.decorators import user_passes_test from django.http import HttpResponseRedirect, JsonResponse from django.urls import reverse from djan...
[ 37811, 7680, 82, 329, 13169, 598, 526, 15931, 201, 198, 201, 198, 11748, 4738, 201, 198, 11748, 28686, 201, 198, 11748, 7007, 201, 198, 201, 198, 6738, 42625, 14208, 13, 19509, 23779, 1330, 8543, 201, 198, 6738, 42625, 14208, 13, 3642, ...
2.071482
1,343
from spaceone.api.repository.v1 import schema_pb2, schema_pb2_grpc from spaceone.core.pygrpc import BaseAPI
[ 6738, 2272, 505, 13, 15042, 13, 260, 1930, 37765, 13, 85, 16, 1330, 32815, 62, 40842, 17, 11, 32815, 62, 40842, 17, 62, 2164, 14751, 198, 6738, 2272, 505, 13, 7295, 13, 9078, 2164, 14751, 1330, 7308, 17614, 198 ]
2.769231
39
from computer_communication_framework.base_connection import Connection import subprocess import re import datetime
[ 6738, 3644, 62, 32560, 62, 30604, 13, 8692, 62, 38659, 1330, 26923, 198, 11748, 850, 14681, 198, 11748, 302, 198, 11748, 4818, 8079, 628 ]
4.875
24
import random import re import json from combat import * from travel import * from pdb import set_trace town_generator = MarkovGenerator(load_words('../data/towns.txt'), 2) name_generator = MarkovGenerator(load_words('../data/names_male.txt'), 3) occupation_list = list(load_words('../data/occupations.txt')) color_lis...
[ 11748, 4738, 198, 11748, 302, 198, 11748, 33918, 198, 198, 6738, 5249, 1330, 1635, 198, 6738, 3067, 1330, 1635, 198, 6738, 279, 9945, 1330, 900, 62, 40546, 198, 198, 12735, 62, 8612, 1352, 796, 2940, 709, 8645, 1352, 7, 2220, 62, 1087...
2.918367
196
import csv import argparse import os if __name__ == '__main__': parser = argparse.ArgumentParser() parser.add_argument("-v", "--value_list", help="List of values based on which should the report be splitted. " + "Accepts list of comma separated values") ...
[ 11748, 269, 21370, 198, 11748, 1822, 29572, 198, 11748, 28686, 628, 198, 198, 361, 11593, 3672, 834, 6624, 705, 834, 12417, 834, 10354, 198, 220, 220, 220, 30751, 796, 1822, 29572, 13, 28100, 1713, 46677, 3419, 198, 220, 220, 220, 30751...
2.449726
547
from . import decorators from . import exec from . import log import os.path as path import sublime import time import json def call(mode, filename, region): """ Call calls guru(1) with the given `<mode>` filename and point. """ file = "{}:#{},#{}".format(filename, region.begin(), region.end()) args = ["-...
[ 198, 6738, 764, 1330, 11705, 2024, 198, 6738, 764, 1330, 2452, 198, 6738, 764, 1330, 2604, 198, 11748, 28686, 13, 6978, 355, 3108, 198, 11748, 41674, 198, 11748, 640, 198, 11748, 33918, 198, 198, 4299, 869, 7, 14171, 11, 29472, 11, 38...
2.642424
495
from unittest import TestCase from random import Random from cipher21.key import Cipher21Key from cipher21.constants import KEY_LENGTH
[ 6738, 555, 715, 395, 1330, 6208, 20448, 198, 6738, 4738, 1330, 14534, 198, 198, 6738, 38012, 2481, 13, 2539, 1330, 44334, 2481, 9218, 198, 6738, 38012, 2481, 13, 9979, 1187, 1330, 35374, 62, 43, 49494, 628 ]
3.805556
36
# https://leetcode.com/problems/remove-all-adjacent-duplicates-in-string-ii/ s = Solution() print(s.removeDuplicates('deeedbbcccbdaa', 3))
[ 2, 3740, 1378, 293, 316, 8189, 13, 785, 14, 1676, 22143, 14, 28956, 12, 439, 12, 41255, 12643, 12, 646, 489, 16856, 12, 259, 12, 8841, 12, 4178, 14, 628, 198, 82, 796, 28186, 3419, 198, 4798, 7, 82, 13, 28956, 35660, 489, 16856, ...
2.473684
57
import os import json from maya import cmds import re def write(self, data): data = self.compress_data(data) with open(self.get_path(), 'w') as f: json.dump(data, f, indent=2, sort_keys=True) def get_path(self): return self.name def read(self): with open(s...
[ 11748, 28686, 198, 11748, 33918, 198, 6738, 743, 64, 1330, 23991, 82, 198, 11748, 302, 628, 628, 628, 198, 220, 220, 220, 825, 3551, 7, 944, 11, 1366, 2599, 198, 220, 220, 220, 220, 220, 220, 220, 1366, 796, 2116, 13, 5589, 601, 6...
2.15727
337
from .resnet_backbone import resnet18 from torch import nn import torch import torch.nn.functional as F from detro.networks.components import BiFPN, Center_layer, Offset_layer, Reg_layer, Heatmap_layer from detro.networks.losslib import center_loss, distance_loss def CircleDetCriterion(preds, labels): loss_ce...
[ 6738, 764, 411, 3262, 62, 1891, 15992, 1330, 581, 3262, 1507, 198, 6738, 28034, 1330, 299, 77, 198, 11748, 28034, 198, 11748, 28034, 13, 20471, 13, 45124, 355, 376, 198, 6738, 1062, 305, 13, 3262, 5225, 13, 5589, 3906, 1330, 8436, 583...
2.648551
276
from django import forms from .models import MakerProfile,BuyerProfile,MstLang,MstSkill,Contact,Order,OrderMessage from register.models import User
[ 6738, 42625, 14208, 1330, 5107, 198, 6738, 764, 27530, 1330, 21521, 37046, 11, 14518, 263, 37046, 11, 44, 301, 43, 648, 11, 44, 301, 35040, 11, 17829, 11, 18743, 11, 18743, 12837, 198, 6738, 7881, 13, 27530, 1330, 11787, 628, 628, 628...
3.511111
45
# 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, software # distributed under the Li...
[ 2, 49962, 739, 262, 24843, 13789, 11, 10628, 362, 13, 15, 357, 1169, 366, 34156, 15341, 345, 743, 407, 198, 2, 779, 428, 2393, 2845, 287, 11846, 351, 262, 13789, 13, 921, 743, 7330, 257, 4866, 198, 2, 286, 262, 13789, 379, 198, 2,...
3.364469
546
"""CSC110 final project, main module Descriptions =============================== This module contains all the functions we used to implement the simple linear regression model. Copyright and Usage Information =============================== All forms of distribution of this code, whether as given or with any chang...
[ 37811, 34, 6173, 11442, 2457, 1628, 11, 1388, 8265, 198, 198, 24564, 1968, 507, 198, 4770, 25609, 18604, 198, 198, 1212, 8265, 4909, 477, 262, 5499, 356, 973, 284, 3494, 262, 198, 36439, 14174, 20683, 2746, 13, 198, 198, 15269, 290, 2...
2.458505
2,181
from django.contrib import admin from django.urls import path, include from . import views from django.conf import settings app_name='recognition' urlpatterns = [ path('', views.Home.as_view(), name='home'), path('settings/', views.Home.as_view(), name='settings'), path('login/', views.UserLoginView.as_view()...
[ 6738, 42625, 14208, 13, 3642, 822, 1330, 13169, 198, 6738, 42625, 14208, 13, 6371, 82, 1330, 3108, 11, 2291, 198, 6738, 764, 1330, 5009, 198, 198, 6738, 42625, 14208, 13, 10414, 1330, 6460, 198, 198, 1324, 62, 3672, 11639, 26243, 653, ...
2.966942
242
"""Validate consistency of versions and dependencies. Validates consistency of setup.json and * environment.yml * version in aiida_lammps/__init__.py """ import json import os import sys import click FILENAME_SETUP_JSON = "setup.json" SCRIPT_PATH = os.path.split(os.path.realpath(__file__))[0] ROOT_DIR = os.path.j...
[ 37811, 7762, 20540, 15794, 286, 6300, 290, 20086, 13, 198, 198, 7762, 37051, 15794, 286, 9058, 13, 17752, 290, 628, 1635, 2858, 13, 88, 4029, 198, 1635, 2196, 287, 257, 72, 3755, 62, 11199, 862, 14, 834, 15003, 834, 13, 9078, 198, 3...
2.647273
275
import json import os import time from configparser import ConfigParser import discord from discord.ext import tasks, commands from dotenv import load_dotenv from datetime import datetime load_dotenv() TOKEN = os.getenv('TOKEN') CONFIG_FILE = 'config.ini' # Config config_parser = ConfigParser() config_parser.read(CO...
[ 11748, 33918, 198, 11748, 28686, 198, 11748, 640, 198, 6738, 4566, 48610, 1330, 17056, 46677, 198, 198, 11748, 36446, 198, 6738, 36446, 13, 2302, 1330, 8861, 11, 9729, 198, 6738, 16605, 24330, 1330, 3440, 62, 26518, 24330, 198, 6738, 4818...
2.971354
384
import numpy as np import itdbase from itdbase import Cell import itin from copy import deepcopy as cp import cPickle as pick # from tsase.optimize import MDMin from ase.optimize.fire import FIRE # from ase.optimize import BFGS from ase import * from ase.io import read, write import os import sys import numpy as np fr...
[ 11748, 299, 32152, 355, 45941, 198, 11748, 340, 67, 8692, 198, 6738, 340, 67, 8692, 1330, 12440, 198, 11748, 340, 259, 198, 6738, 4866, 1330, 2769, 30073, 355, 31396, 198, 11748, 269, 31686, 293, 355, 2298, 198, 198, 2, 422, 40379, 58...
2.9375
208
from ckan.lib.cli import CkanCommand import logging import sys
[ 6738, 269, 27541, 13, 8019, 13, 44506, 1330, 327, 27541, 21575, 198, 198, 11748, 18931, 198, 11748, 25064, 628 ]
3.421053
19
from django.http import HttpResponseServerError from django.shortcuts import render from django.template import RequestContext from django.template.loader import get_template
[ 6738, 42625, 14208, 13, 4023, 1330, 367, 29281, 31077, 10697, 12331, 198, 6738, 42625, 14208, 13, 19509, 23779, 1330, 8543, 198, 6738, 42625, 14208, 13, 28243, 1330, 19390, 21947, 198, 6738, 42625, 14208, 13, 28243, 13, 29356, 1330, 651, ...
4.139535
43
#!/usr/bin/env python # Copyright (c) 2017 Warren Kumari """ This small program uses a Raspberry Pi Zero W to drive the display portion of a Symmetricom ND-4 display. This replaces the processor board of the ND-4, and powers the Pi from the internal ND-4 power supply. The original processor board simply drives a MAX7...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 198, 2, 15069, 357, 66, 8, 2177, 11328, 19162, 2743, 198, 198, 37811, 198, 1212, 1402, 1430, 3544, 257, 24244, 13993, 12169, 370, 284, 3708, 262, 3359, 6903, 198, 1659, 257, 1632, 3020, 194...
2.822191
703
#!/usr/bin/python # # James Sandford, copyright BBC 2020 # # 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 l...
[ 2, 48443, 14629, 14, 8800, 14, 29412, 198, 2, 198, 2, 3700, 3837, 3841, 11, 6634, 7823, 12131, 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.311741
247
import importlib client_hints_ua_list = importlib.import_module("client-hints.resources.clienthintslist").client_hints_ua_list def main(request, response): """ Simple handler that sets a response header based on which client hint request headers were received. """ response.headers.append(b"Access-Contro...
[ 11748, 1330, 8019, 198, 16366, 62, 71, 29503, 62, 6413, 62, 4868, 796, 1330, 8019, 13, 11748, 62, 21412, 7203, 16366, 12, 71, 29503, 13, 37540, 13, 16366, 71, 29503, 4868, 11074, 16366, 62, 71, 29503, 62, 6413, 62, 4868, 198, 198, 4...
2.866667
300
import os import json import numpy as np
[ 11748, 28686, 201, 198, 11748, 33918, 201, 198, 11748, 299, 32152, 355, 45941, 201, 198, 201, 198, 201, 198 ]
2.526316
19
# ==BEGIN LICENSE== # # MIT License # # Copyright (c) 2018 SRI Lab, ETH Zurich # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the right...
[ 2, 6624, 33, 43312, 38559, 24290, 855, 198, 2, 220, 198, 2, 17168, 13789, 198, 2, 220, 198, 2, 15069, 357, 66, 8, 2864, 311, 7112, 3498, 11, 35920, 43412, 198, 2, 220, 198, 2, 2448, 3411, 318, 29376, 7520, 11, 1479, 286, 3877, 1...
3.251418
529
####!/usr/bin/env python #---------------------------- """ :py:class:`DCConfigParameters` - class supporting configuration parameters for application ========================================================================================== See: * :py:class:`DCStore` * :py:class:`DCType` * :py:class:`DCRan...
[ 4242, 48443, 14629, 14, 8800, 14, 24330, 21015, 198, 2, 1783, 10541, 198, 37811, 198, 25, 9078, 25, 4871, 25, 63, 9697, 16934, 48944, 63, 532, 1398, 6493, 8398, 10007, 329, 3586, 198, 23926, 4770, 2559, 855, 198, 198, 6214, 25, 198, ...
3.093995
383
import datetime import json from flask_sqlalchemy import SQLAlchemy from sqlalchemy import Column, Integer, String, Boolean, ForeignKey, Float, \ Enum, DateTime, Numeric, Text, Unicode, UnicodeText from sqlalchemy import event from sqlalchemy.dialects.mysql import LONGTEXT from sqlalchemy.sql import func from sqlal...
[ 11748, 4818, 8079, 198, 11748, 33918, 198, 6738, 42903, 62, 25410, 282, 26599, 1330, 16363, 2348, 26599, 198, 6738, 44161, 282, 26599, 1330, 29201, 11, 34142, 11, 10903, 11, 41146, 11, 8708, 9218, 11, 48436, 11, 3467, 198, 220, 220, 220...
2.932432
370
""" Przemienia liczb na warto binarn i zwraca sum jedynek wystpujc w wartoci binarnej Example: The binary representation of 1234 is 10011010010, so the function should return 5 in this case """ print(countBits(1234))
[ 37811, 198, 6836, 89, 368, 2013, 544, 3476, 14969, 12385, 32943, 78, 9874, 1501, 1312, 1976, 86, 11510, 64, 2160, 474, 4716, 710, 74, 266, 88, 301, 19944, 48055, 266, 32943, 1733, 9874, 283, 710, 73, 198, 16281, 25, 383, 13934, 10552,...
2.986301
73
from dataclasses import dataclass, field from enum import Enum from typing import List, Optional, Union class TransformationConfigError(Exception): """Exception raised for config parser Attributes: message -- explanation of the error """
[ 6738, 4818, 330, 28958, 1330, 4818, 330, 31172, 11, 2214, 198, 6738, 33829, 1330, 2039, 388, 198, 6738, 19720, 1330, 7343, 11, 32233, 11, 4479, 628, 628, 628, 628, 628, 198, 4871, 49127, 16934, 12331, 7, 16922, 2599, 198, 220, 220, 22...
3.635135
74
""" Sphinx AutoAPI """ from .extension import setup from ._version import __version__, __version_info__
[ 37811, 198, 50, 746, 28413, 11160, 17614, 198, 37811, 198, 198, 6738, 764, 2302, 3004, 1330, 9058, 198, 6738, 47540, 9641, 1330, 11593, 9641, 834, 11, 11593, 9641, 62, 10951, 834, 198 ]
3.28125
32
import logging from org.openbaton.v2.cmd import BaseObCmd from org.openbaton.v2.utils import get_result_to_list, get_result_to_show, parse_path_or_json, result_to_str
[ 11748, 18931, 198, 198, 6738, 8745, 13, 9654, 8664, 261, 13, 85, 17, 13, 28758, 1330, 7308, 5944, 40109, 198, 6738, 8745, 13, 9654, 8664, 261, 13, 85, 17, 13, 26791, 1330, 651, 62, 20274, 62, 1462, 62, 4868, 11, 651, 62, 20274, 62...
2.725806
62
#coding:utf-8 # # id: bugs.gh_5995 # title: Connection to server may hang when working with encrypted databases over non-TCP protocol [CORE5730] # decription: # https://github.com/FirebirdSQL/firebird/issues/5995 # # Test implemented only to be run ...
[ 2, 66, 7656, 25, 40477, 12, 23, 198, 2, 198, 2, 4686, 25, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 11316, 13, 456, 62, 20, 33438, 198, 2, 3670, 25, 220, 220, 220, 220, 220, 220, 220, 26923, 284, 4382, 743, 8181, 618, ...
2.203462
2,831
from mednickdb_pyapi.mednickdb_pyapi import MednickAPI import pytest import time import pandas as pd import pprint pp = pprint.PrettyPrinter(indent=4) server_address = 'http://saclab.ss.uci.edu:8000' file_update_time = 2 data_update_time = 10 data_upload_working = False def test_clear_test_study(): """ ...
[ 6738, 1117, 17172, 9945, 62, 9078, 15042, 13, 1150, 17172, 9945, 62, 9078, 15042, 1330, 2019, 17172, 17614, 198, 11748, 12972, 9288, 198, 11748, 640, 198, 11748, 19798, 292, 355, 279, 67, 198, 11748, 279, 4798, 198, 381, 796, 279, 4798,...
2.452206
816
import requests from .enums import TransactionStatus from .exceptions import InvalidPaymentException, SslcommerzAPIException from .services import PayloadSchema, is_verify_sign_valid DEFAULT_CONFIG = { "base_url": "https://sandbox.sslcommerz.com", "session_url": "/gwprocess/v4/api.php", "validation_url":...
[ 11748, 7007, 198, 198, 6738, 764, 268, 5700, 1330, 45389, 19580, 198, 6738, 764, 1069, 11755, 1330, 17665, 19197, 434, 16922, 11, 311, 6649, 785, 647, 89, 17614, 16922, 198, 6738, 764, 30416, 1330, 7119, 2220, 27054, 2611, 11, 318, 62, ...
2.913907
151
import abc import re from .exceptions import FileSuffixError from .stack import LineCounter, IndentStack
[ 11748, 450, 66, 198, 11748, 302, 198, 198, 6738, 764, 1069, 11755, 1330, 9220, 50, 1648, 844, 12331, 198, 6738, 764, 25558, 1330, 6910, 31694, 11, 1423, 298, 25896, 628 ]
3.566667
30
# import the necessary packages import numpy as np import argparse import cv2 im = cv2.imread('/var/www/test/test.jpg') cv2.imshow("im", im) imgray = cv2.cvtColor(im,cv2.COLOR_BGR2GRAY) ret,thresh = cv2.threshold(imgray,127,255,0) cv2.imshow("Thresh", thresh) (cnts, _) = cv2.findContours(thresh,cv2.RETR_TREE,cv2.CHAIN...
[ 2, 1330, 262, 3306, 10392, 198, 11748, 299, 32152, 355, 45941, 198, 11748, 1822, 29572, 198, 11748, 269, 85, 17, 198, 198, 320, 796, 269, 85, 17, 13, 320, 961, 10786, 14, 7785, 14, 2503, 14, 9288, 14, 9288, 13, 9479, 11537, 198, 3...
1.981685
273
"""empty message Revision ID: 783682226c9b Revises: b882b9ab026c Create Date: 2019-10-19 10:07:14.923441 """ import sqlalchemy as sa from alembic import op # revision identifiers, used by Alembic. revision = "783682226c9b" down_revision = "b882b9ab026c" branch_labels = None depends_on = None
[ 37811, 28920, 3275, 198, 198, 18009, 1166, 4522, 25, 8699, 27412, 1828, 2075, 66, 24, 65, 198, 18009, 2696, 25, 275, 42980, 65, 24, 397, 45987, 66, 198, 16447, 7536, 25, 13130, 12, 940, 12, 1129, 838, 25, 2998, 25, 1415, 13, 24, 1...
2.504202
119
# Generated by Django 3.1.4 on 2021-02-04 05:25 from django.db import migrations import wagtail.core.blocks import wagtail.core.fields
[ 2, 2980, 515, 416, 37770, 513, 13, 16, 13, 19, 319, 33448, 12, 2999, 12, 3023, 8870, 25, 1495, 198, 198, 6738, 42625, 14208, 13, 9945, 1330, 15720, 602, 198, 11748, 266, 363, 13199, 13, 7295, 13, 27372, 198, 11748, 266, 363, 13199, ...
2.854167
48
# # PySNMP MIB module HPN-ICF-FCOE-MODE-MIB (http://snmplabs.com/pysmi) # ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/HPN-ICF-FCOE-MODE-MIB # Produced by pysmi-0.3.4 at Mon Apr 29 19:26:43 2019 # On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4 # Using Python version 3.7.3 (def...
[ 2, 198, 2, 9485, 15571, 7378, 337, 9865, 8265, 6574, 45, 12, 2149, 37, 12, 4851, 27799, 12, 49058, 12, 8895, 33, 357, 4023, 1378, 16184, 76, 489, 8937, 13, 785, 14, 79, 893, 11632, 8, 198, 2, 7054, 45, 13, 16, 2723, 2393, 1378, ...
2.580645
1,085
import argparse import pandas as pd from config_builder import build_config from utils.helpers import load_ymal if __name__ == '__main__': parser = argparse.ArgumentParser(description='Run Kuberentes simulation') parser.add_argument( '--config_file_name', type=str, default="yamls/conf...
[ 11748, 1822, 29572, 198, 198, 11748, 19798, 292, 355, 279, 67, 198, 198, 6738, 4566, 62, 38272, 1330, 1382, 62, 11250, 198, 6738, 3384, 4487, 13, 16794, 364, 1330, 3440, 62, 4948, 282, 198, 198, 361, 11593, 3672, 834, 6624, 705, 834, ...
2.445141
319
from django.test import TestCase, Client from django.contrib.auth import get_user_model # generate url for our django admin page from django.urls import reverse # allow us to make test requests to our app
[ 6738, 42625, 14208, 13, 9288, 1330, 6208, 20448, 11, 20985, 198, 6738, 42625, 14208, 13, 3642, 822, 13, 18439, 1330, 651, 62, 7220, 62, 19849, 198, 2, 7716, 19016, 329, 674, 42625, 14208, 13169, 2443, 198, 6738, 42625, 14208, 13, 6371, ...
3.678571
56
import turtle n = 10 while n > 0: n = n - 1 poly(10, 30) turtle.forward(40) turtle.done()
[ 11748, 28699, 198, 198, 77, 796, 838, 198, 4514, 299, 1875, 657, 25, 198, 220, 220, 220, 299, 796, 299, 532, 352, 198, 220, 220, 220, 7514, 7, 940, 11, 1542, 8, 198, 220, 220, 220, 28699, 13, 11813, 7, 1821, 8, 198, 198, 83, 1...
2.1
50
from ckan.plugins import toolkit from ckan.lib.i18n import get_lang import ckan.lib.i18n as i18n from ckan.common import config, c import ckan.logic as logic import ckan.lib.base as base import ckan.model as model from ckan.model.package import Package from ckan.lib.dictization.model_dictize import group_list_dictize ...
[ 6738, 269, 27541, 13, 37390, 1330, 2891, 15813, 198, 6738, 269, 27541, 13, 8019, 13, 72, 1507, 77, 1330, 651, 62, 17204, 198, 11748, 269, 27541, 13, 8019, 13, 72, 1507, 77, 355, 1312, 1507, 77, 198, 6738, 269, 27541, 13, 11321, 1330...
2.820809
173
# function that heals the player import variables as var from helpers.message import message
[ 2, 2163, 326, 38673, 262, 2137, 198, 11748, 9633, 355, 1401, 198, 6738, 49385, 13, 20500, 1330, 3275, 628, 198 ]
4.75
20
import numpy as np import matplotlib.pyplot as plt import seaborn as sns all from viabel import all_bounds from viabel.vb import black_box_klvi, black_box_chivi, adagrad_optimize from utils import Timer from psis import psislw ## Display bounds information ## ## Check approximation accuracy ## ## Convenience fu...
[ 11748, 299, 32152, 355, 45941, 198, 198, 11748, 2603, 29487, 8019, 13, 9078, 29487, 355, 458, 83, 198, 11748, 384, 397, 1211, 355, 3013, 82, 198, 439, 198, 6738, 25357, 9608, 1330, 477, 62, 65, 3733, 198, 6738, 25357, 9608, 13, 85, ...
3.153846
130
from abc import ABCMeta, abstractmethod from collections import namedtuple from nova.objects.request_spec import RequestSpec from nova.scheduler.host_manager import HostState from oslo_log import log as logging import nova.conf from nova.scheduler.filters import BaseHostFilter from latency_meter.server import start_...
[ 6738, 450, 66, 1330, 9738, 48526, 11, 12531, 24396, 198, 6738, 17268, 1330, 3706, 83, 29291, 198, 198, 6738, 645, 6862, 13, 48205, 13, 25927, 62, 16684, 1330, 19390, 22882, 198, 6738, 645, 6862, 13, 1416, 704, 18173, 13, 4774, 62, 371...
3.21466
191
import logging import traceback from django.core.exceptions import ValidationError from django.core.files.base import ContentFile from django.db import transaction from django_rq import job from . import email from .r10_spreadsheet_converter import Region10SpreadsheetConverter from contracts.loaders.region_10 import R...
[ 11748, 18931, 198, 11748, 12854, 1891, 198, 6738, 42625, 14208, 13, 7295, 13, 1069, 11755, 1330, 3254, 24765, 12331, 198, 6738, 42625, 14208, 13, 7295, 13, 16624, 13, 8692, 1330, 14041, 8979, 198, 6738, 42625, 14208, 13, 9945, 1330, 8611,...
3.766667
120
import itertools from django.conf import settings from django.dispatch import receiver from django.core.signals import setting_changed from api import models _USER_UNREAD_GRACE_INTERVAL = None _USER_UNREAD_GRACE_MIN_COUNT = None _load_global_settings()
[ 11748, 340, 861, 10141, 198, 198, 6738, 42625, 14208, 13, 10414, 1330, 6460, 198, 6738, 42625, 14208, 13, 6381, 17147, 1330, 9733, 198, 6738, 42625, 14208, 13, 7295, 13, 12683, 874, 1330, 4634, 62, 40985, 198, 198, 6738, 40391, 1330, 49...
3.119048
84
from collections import defaultdict from typing import Dict from nonebot.log import logger from peewee import JOIN from .db import DB from .tables import BilibiliUser, BilibiliUserStatus, FollowLink, Group
[ 6738, 17268, 1330, 4277, 11600, 198, 6738, 19720, 1330, 360, 713, 198, 198, 6738, 4844, 13645, 13, 6404, 1330, 49706, 198, 6738, 613, 413, 1453, 1330, 32357, 1268, 198, 198, 6738, 764, 9945, 1330, 20137, 198, 6738, 764, 83, 2977, 1330, ...
3.484375
64
db = 'log.db' import sqlite3 import time dbc = sqlite3.connect(db, check_same_thread=False) dbc.text_factory = str c = dbc.cursor() while True: c.execute('SELECT userid, name, COUNT(`date`) FROM log WHERE `date` > \'' + time.strftime('%Y-%m-%d 00:00:00') + '\' AND result=1 GROUP BY userid;') result = c.fetchall() ...
[ 9945, 796, 705, 6404, 13, 9945, 6, 198, 198, 11748, 44161, 578, 18, 198, 11748, 640, 198, 198, 9945, 66, 796, 44161, 578, 18, 13, 8443, 7, 9945, 11, 2198, 62, 31642, 62, 16663, 28, 25101, 8, 198, 9945, 66, 13, 5239, 62, 69, 9548...
2.288754
658
#!/usr/bin/python3 #Copyright 2018 Jim Van Fleet #Licensed under the Apache License, Version 2.0 (the "License"); #you may not use this file except in compliance with the License. #You may obtain a copy of the License at # http://www.apache.org/licenses/LICENSE-2.0 #Unless required by applicable law or agreed to ...
[ 2, 48443, 14629, 14, 8800, 14, 29412, 18, 198, 2, 15269, 2864, 5395, 6656, 20001, 198, 198, 2, 26656, 15385, 739, 262, 24843, 13789, 11, 10628, 362, 13, 15, 357, 1169, 366, 34156, 15341, 198, 2, 5832, 743, 407, 779, 428, 2393, 2845,...
3.672956
159
import numpy as np import torch import torch.nn.functional as F from TorchSUL import Model as M from torch.nn.parameter import Parameter import torch.nn.init as init
[ 11748, 299, 32152, 355, 45941, 220, 198, 11748, 28034, 220, 198, 11748, 28034, 13, 20471, 13, 45124, 355, 376, 220, 198, 6738, 34868, 50, 6239, 1330, 9104, 355, 337, 220, 198, 6738, 28034, 13, 20471, 13, 17143, 2357, 1330, 25139, 2357, ...
3.288462
52
import pytest import fast_carpenter.backends as backends
[ 11748, 12972, 9288, 198, 11748, 3049, 62, 66, 5117, 9255, 13, 1891, 2412, 355, 736, 2412, 628 ]
3.411765
17
from typing import Dict import logging logger = logging.getLogger(__name__) def customized_redirect_builder(alias: str, url: str, redirect_path: str, customized_redirect_map: Dict[str, Dict[str, str]] = None) -> str: """ customized_redirect_map { ALIAS_0: { REDIRECT_PATH_0:...
[ 6738, 19720, 1330, 360, 713, 198, 11748, 18931, 198, 198, 6404, 1362, 796, 18931, 13, 1136, 11187, 1362, 7, 834, 3672, 834, 8, 628, 628, 198, 198, 4299, 27658, 62, 445, 1060, 62, 38272, 7, 26011, 25, 965, 11, 19016, 25, 965, 11, 1...
2.194373
391
import typing def extended_gcd(a: int, b: int) -> typing.Tuple[int, int, int]: """Returns a tuple (r, i, j) such that r = gcd(a, b) = ia + jb """ # r = gcd(a,b) i = multiplicitive inverse of a mod b # or j = multiplicitive inverse of b mod a # Neg return values for i or j are made po...
[ 11748, 19720, 628, 628, 628, 198, 4299, 7083, 62, 70, 10210, 7, 64, 25, 493, 11, 275, 25, 493, 8, 4613, 19720, 13, 51, 29291, 58, 600, 11, 493, 11, 493, 5974, 198, 220, 220, 220, 37227, 35561, 257, 46545, 357, 81, 11, 1312, 11, ...
2.22963
540
import datetime import json import os from uuid import uuid4 import pytest import numpy as np from pandas import util from whylogs.core.datasetprofile import DatasetProfile, array_profile, dataframe_profile from whylogs.core.model_profile import ModelProfile from whylogs.util import time from whylogs.util.protobuf im...
[ 11748, 4818, 8079, 198, 11748, 33918, 198, 11748, 28686, 198, 6738, 334, 27112, 1330, 334, 27112, 19, 198, 198, 11748, 12972, 9288, 198, 11748, 299, 32152, 355, 45941, 198, 6738, 19798, 292, 1330, 7736, 198, 198, 6738, 1521, 6404, 82, 1...
3.102941
136
# coding: utf-8 ''' The CLI API definition, available to both the core and plugins. ''' import sys from ..exceptions import NotInstalled from .. import __installed__ # Define the global name to launcher function map. _launchers = dict() # Define a single character to launcher function map. _shortforms = dict() def ...
[ 2, 19617, 25, 3384, 69, 12, 23, 198, 7061, 6, 198, 464, 43749, 7824, 6770, 11, 1695, 284, 1111, 262, 4755, 290, 20652, 13, 198, 7061, 6, 198, 198, 11748, 25064, 198, 198, 6738, 11485, 1069, 11755, 1330, 1892, 6310, 4262, 198, 6738, ...
3.139959
493
# Generated by Django 2.0 on 2017-12-10 16:10 import django.db.models.deletion from django.conf import settings from django.db import migrations, models
[ 2, 2980, 515, 416, 37770, 362, 13, 15, 319, 2177, 12, 1065, 12, 940, 1467, 25, 940, 198, 198, 11748, 42625, 14208, 13, 9945, 13, 27530, 13, 2934, 1616, 295, 198, 6738, 42625, 14208, 13, 10414, 1330, 6460, 198, 6738, 42625, 14208, 13...
3.1
50
from os import unlink from random import randint import util import tempfile
[ 6738, 28686, 1330, 555, 8726, 198, 6738, 4738, 1330, 43720, 600, 198, 11748, 7736, 198, 11748, 20218, 7753, 628, 628, 628 ]
3.904762
21
from django.db import models # Create your models here.
[ 6738, 42625, 14208, 13, 9945, 1330, 4981, 198, 198, 2, 13610, 534, 4981, 994, 13, 198 ]
3.5625
16
a=input("a= ") b=input("b= ") aa=a a=b b=aa print("a=",a) print("b=",b)
[ 64, 28, 15414, 7203, 64, 28, 366, 8, 198, 65, 28, 15414, 7203, 65, 28, 366, 8, 198, 7252, 28, 64, 198, 64, 28, 65, 198, 65, 28, 7252, 198, 4798, 7203, 64, 28, 1600, 64, 8, 198, 4798, 7203, 65, 28, 1600, 65, 8 ]
1.577778
45
import os import datetime import csv import time import random from time import sleep from selenium.webdriver.support.ui import WebDriverWait from selenium.webdriver.support import expected_conditions as EC from selenium.webdriver.common.by import By from selenium.common.exceptions import NoSuchElementExceptio...
[ 11748, 28686, 201, 198, 11748, 4818, 8079, 201, 198, 11748, 269, 21370, 201, 198, 11748, 640, 201, 198, 11748, 4738, 201, 198, 6738, 640, 1330, 3993, 201, 198, 6738, 384, 11925, 1505, 13, 12384, 26230, 13, 11284, 13, 9019, 1330, 5313, ...
3.435115
131
# Copyright (c) 2012-2016 Seafile Ltd. """ The MIT License (MIT) Copyright (c) 2013 Omar Bohsali Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation ...
[ 2, 15069, 357, 66, 8, 2321, 12, 5304, 49967, 576, 12052, 13, 198, 37811, 198, 464, 17168, 13789, 357, 36393, 8, 198, 198, 15269, 357, 66, 8, 2211, 24980, 44366, 82, 7344, 198, 198, 5990, 3411, 318, 29376, 7520, 11, 1479, 286, 3877, ...
3.778761
339
import data.make_stterror_data.utils as utils import os import sys import subprocess # TTS imports from gtts import gTTS import pyttsx3 # sys.path.append("~/PycharmProjects/pyfestival") # https://github.com/techiaith/pyfestival/pull/4 # import festival __author__ = 'Gwena Cunha' """ Text-To-Speech Module """
[ 11748, 1366, 13, 15883, 62, 301, 14007, 62, 7890, 13, 26791, 355, 3384, 4487, 198, 11748, 28686, 198, 11748, 25064, 198, 11748, 850, 14681, 198, 198, 2, 309, 4694, 17944, 198, 6738, 308, 83, 912, 1330, 308, 51, 4694, 198, 11748, 12972...
2.644628
121
from year2019.intcode_v2 import Intcode from common import input_integer_sep
[ 6738, 614, 23344, 13, 600, 8189, 62, 85, 17, 1330, 2558, 8189, 198, 6738, 2219, 1330, 5128, 62, 41433, 62, 325, 79, 628 ]
3.391304
23
import logging from django.core.management.base import BaseCommand from django.template.defaultfilters import slugify from july.models import User from july.people.models import Location from july.utils import check_location from optparse import make_option
[ 198, 11748, 18931, 198, 198, 6738, 42625, 14208, 13, 7295, 13, 27604, 13, 8692, 1330, 7308, 21575, 198, 6738, 42625, 14208, 13, 28243, 13, 12286, 10379, 1010, 1330, 31065, 1958, 198, 198, 6738, 474, 2062, 13, 27530, 1330, 11787, 198, 67...
3.852941
68
"""Tests for package name identifiers."""
[ 37811, 51, 3558, 329, 5301, 1438, 42814, 526, 15931, 198 ]
4.2
10
# Copyright (c) 2018, MD2K Center of Excellence # - Alina Zaman <azaman@memphis.edu> # All rights reserved. # # 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 retain the above copy...
[ 2, 15069, 357, 66, 8, 2864, 11, 10670, 17, 42, 3337, 286, 42525, 198, 2, 532, 978, 1437, 1168, 10546, 1279, 1031, 10546, 31, 11883, 18691, 13, 15532, 29, 198, 2, 1439, 2489, 10395, 13, 198, 2, 198, 2, 2297, 396, 3890, 290, 779, ...
3.409091
594
rows, columns = [int(x) for x in input().split(", ")] matrix = [[int(i) for i in input().split()] for _ in range(rows)] for column in range(columns): sum_column = 0 for row in range(rows): sum_column += matrix[row][column] print(sum_column)
[ 8516, 11, 15180, 796, 685, 600, 7, 87, 8, 329, 2124, 287, 5128, 22446, 35312, 7, 1600, 366, 15437, 198, 198, 6759, 8609, 796, 16410, 600, 7, 72, 8, 329, 1312, 287, 5128, 22446, 35312, 3419, 60, 329, 4808, 287, 2837, 7, 8516, 15437...
2.553398
103
import sys import uuid import psutil import time from datetime import datetime # remove for production from pprint import pprint from functools import reduce import function_lib as lib
[ 11748, 25064, 198, 11748, 334, 27112, 198, 11748, 26692, 22602, 198, 11748, 640, 198, 6738, 4818, 8079, 1330, 4818, 8079, 198, 2, 4781, 329, 3227, 198, 6738, 279, 4798, 1330, 279, 4798, 198, 6738, 1257, 310, 10141, 1330, 4646, 198, 1174...
3.895833
48
from django import forms from .models import News
[ 6738, 42625, 14208, 1330, 5107, 198, 6738, 764, 27530, 1330, 3000, 198 ]
4.166667
12
# This file is part of the pyMOR project (https://www.pymor.org). # Copyright pyMOR developers and contributors. All rights reserved. # License: BSD 2-Clause License (https://opensource.org/licenses/BSD-2-Clause) from pymor.core.config import config config.require('VTKIO') from pathlib import Path import meshio fro...
[ 2, 770, 2393, 318, 636, 286, 262, 12972, 44, 1581, 1628, 357, 5450, 1378, 2503, 13, 9078, 4491, 13, 2398, 737, 198, 2, 15069, 12972, 44, 1581, 6505, 290, 20420, 13, 1439, 2489, 10395, 13, 198, 2, 13789, 25, 347, 10305, 362, 12, 26...
2.675367
1,226
from django.contrib import admin from .models import Cart,CartItems # Register your models here. admin.site.register(CartItems) admin.site.register(Cart)
[ 6738, 42625, 14208, 13, 3642, 822, 1330, 13169, 201, 198, 6738, 764, 27530, 1330, 13690, 11, 43476, 23022, 201, 198, 2, 17296, 534, 4981, 994, 13, 201, 198, 28482, 13, 15654, 13, 30238, 7, 43476, 23022, 8, 201, 198, 28482, 13, 15654, ...
3.244898
49
import torch.nn as nn from models.blocks import GlobalAvgPool2d
[ 11748, 28034, 13, 20471, 355, 299, 77, 198, 198, 6738, 4981, 13, 27372, 1330, 8060, 48997, 27201, 17, 67, 628, 198 ]
3.190476
21
"""Well known exceptions.""" from routemaster_sdk.types import LabelRef, StateMachine
[ 37811, 5779, 1900, 13269, 526, 15931, 198, 198, 6738, 3441, 368, 1603, 62, 21282, 74, 13, 19199, 1330, 36052, 8134, 11, 1812, 37573, 628, 628, 198 ]
3.5
26
from platforms.models import PlatformGroup, Platform from rest_framework import viewsets from platforms.api.serializers import PlatformGroupSerializer, PlatformSerializer
[ 6738, 9554, 13, 27530, 1330, 19193, 13247, 11, 19193, 198, 6738, 1334, 62, 30604, 1330, 5009, 1039, 198, 6738, 9554, 13, 15042, 13, 46911, 11341, 1330, 19193, 13247, 32634, 7509, 11, 19193, 32634, 7509, 628, 198 ]
4.805556
36
import cv2 import numpy as np from scipy.ndimage.filters import gaussian_filter from scipy.ndimage.interpolation import map_coordinates # Function to distort image def elastic_transform(image, alpha, sigma, alpha_affine, random_state=None): """Elastic deformation of images as described in [Simard2003]_ (with...
[ 11748, 269, 85, 17, 198, 11748, 299, 32152, 355, 45941, 198, 6738, 629, 541, 88, 13, 358, 9060, 13, 10379, 1010, 1330, 31986, 31562, 62, 24455, 198, 6738, 629, 541, 88, 13, 358, 9060, 13, 3849, 16104, 341, 1330, 3975, 62, 37652, 175...
2.569767
688
from taskobra.orm import * import platform import cpuinfo import subprocess
[ 6738, 4876, 672, 430, 13, 579, 1330, 1635, 198, 11748, 3859, 198, 11748, 42804, 10951, 198, 11748, 850, 14681, 628 ]
3.85
20
import unittest from expression_builder.exceptions import ExpressionError from expression_builder.expression_builder import ExpressionBuilder
[ 11748, 555, 715, 395, 198, 198, 6738, 5408, 62, 38272, 13, 1069, 11755, 1330, 41986, 12331, 198, 6738, 5408, 62, 38272, 13, 38011, 62, 38272, 1330, 41986, 32875, 628 ]
4.965517
29
from flask import Flask, render_template from flask_dummyimage import DummyImage app = Flask(__name__) dummyimage = DummyImage(app, url_prefix="/dm", endpoint="images", route="img") if __name__ == "__main__": app.run(debug=True)
[ 6738, 42903, 1330, 46947, 11, 8543, 62, 28243, 198, 198, 6738, 42903, 62, 67, 13513, 9060, 1330, 360, 13513, 5159, 198, 198, 1324, 796, 46947, 7, 834, 3672, 834, 8, 198, 67, 13513, 9060, 796, 360, 13513, 5159, 7, 1324, 11, 19016, 62...
2.938272
81
from typing import Type, Any
[ 6738, 19720, 1330, 5994, 11, 4377, 628 ]
4.285714
7
import json import time import cherrypy if __name__ == '__main__': conf = { '/': { 'request.dispatch': cherrypy.dispatch.MethodDispatcher(), 'tools.sessions.on': True } } cherrypy.tree.mount(Discography(), '/', conf) cherrypy.config.update({'server.socket_host'...
[ 11748, 33918, 198, 11748, 640, 198, 11748, 23612, 9078, 628, 198, 361, 11593, 3672, 834, 6624, 705, 834, 12417, 834, 10354, 198, 220, 220, 220, 1013, 796, 1391, 198, 220, 220, 220, 220, 220, 220, 220, 31051, 10354, 1391, 198, 220, 220...
2.316062
193
from django.conf.urls import url from django.http import HttpResponse urlpatterns = [ url(r'^$', lambda req: HttpResponse('OK')), ]
[ 6738, 42625, 14208, 13, 10414, 13, 6371, 82, 1330, 19016, 201, 198, 6738, 42625, 14208, 13, 4023, 1330, 367, 29281, 31077, 201, 198, 201, 198, 6371, 33279, 82, 796, 685, 201, 198, 220, 220, 220, 19016, 7, 81, 6, 61, 3, 3256, 37456, ...
2.508772
57
import random from itertools import product CS = 10 # cell size W = 600 # width H = 600 # height COLS = W // CS ROWS = H // CS DENSITY = 0.35 dirs = list(product((-1, 0, 1), repeat=2)) dirs.remove((0, 0)) points = [] new_points = [] run = False
[ 11748, 4738, 198, 6738, 340, 861, 10141, 1330, 1720, 628, 198, 7902, 796, 838, 220, 1303, 2685, 2546, 198, 54, 796, 10053, 220, 1303, 9647, 198, 39, 796, 10053, 220, 1303, 6001, 198, 25154, 50, 796, 370, 3373, 9429, 198, 49, 22845, ...
2.544554
101
#!/usr/bin/env python # -*- coding: utf-8 -*- import os import shutil from conans import ConanFile, CMake, tools
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 198, 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 198, 11748, 28686, 198, 11748, 4423, 346, 198, 6738, 369, 504, 1330, 31634, 8979, 11, 327, 12050, 11, 4899, 628 ]
2.674419
43
# coding: utf-8 """ Exposes several methods for transmitting cyclic messages. The main entry point to these classes should be through :meth:`can.BusABC.send_periodic`. """ import abc import logging import threading import time import warnings log = logging.getLogger('can.bcm') def send_periodic(bus, messag...
[ 2, 19617, 25, 3384, 69, 12, 23, 198, 198, 37811, 198, 3109, 4832, 1811, 5050, 329, 39573, 11700, 291, 6218, 13, 198, 198, 464, 1388, 5726, 966, 284, 777, 6097, 815, 307, 832, 198, 25, 76, 2788, 25, 63, 5171, 13, 16286, 24694, 13, ...
3.110368
299
from pywintypes import com_error import win32com.client from main import OutputError, BrailleOutput
[ 6738, 12972, 86, 600, 9497, 1330, 401, 62, 18224, 198, 11748, 1592, 2624, 785, 13, 16366, 198, 198, 6738, 1388, 1330, 25235, 12331, 11, 9718, 8270, 26410 ]
3.703704
27
import pandas as pd import numpy as np from os import path from path_service import LOG_DIR, DATA_DIR from sklearn.metrics import log_loss import re prob_columns = list(map(lambda x: f"prob{x}", range(8))) prob_columns_without_end = list(map(lambda x: f"prob{x}", range(7))) if __name__ == "__main__": check...
[ 11748, 19798, 292, 355, 279, 67, 198, 11748, 299, 32152, 355, 45941, 198, 6738, 28686, 1330, 3108, 198, 6738, 3108, 62, 15271, 1330, 41605, 62, 34720, 11, 42865, 62, 34720, 198, 6738, 1341, 35720, 13, 4164, 10466, 1330, 2604, 62, 22462,...
2.298701
308
import base64 # USER post_user_data_200 = { "username": "sbandera1", "firstname": "Stepan", "lastname": "Bandera", "email": "stepanko@liamg.com", "phone": "123", "password": "supersecret" } post_user_alt_data_200 = { "username": "ivanbahryanyi", "firstname": "Ivan", "lastname": "Bahryanyi",...
[ 11748, 2779, 2414, 198, 198, 2, 1294, 1137, 198, 7353, 62, 7220, 62, 7890, 62, 2167, 796, 1391, 198, 220, 220, 366, 29460, 1298, 366, 82, 3903, 8607, 16, 1600, 198, 220, 220, 366, 11085, 3672, 1298, 366, 8600, 272, 1600, 198, 220, ...
2.237077
561
from django.apps import AppConfig from django.utils.translation import gettext_lazy as _
[ 6738, 42625, 14208, 13, 18211, 1330, 2034, 16934, 198, 6738, 42625, 14208, 13, 26791, 13, 41519, 1330, 651, 5239, 62, 75, 12582, 355, 4808, 628 ]
3.6
25
# Copyright 2019 https://github.com/kodi-addons # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights # to use, copy, modify, merge, p...
[ 2, 15069, 13130, 3740, 1378, 12567, 13, 785, 14, 74, 23130, 12, 39996, 198, 2, 198, 2, 2448, 3411, 318, 29376, 7520, 11, 1479, 286, 3877, 11, 284, 597, 1048, 16727, 257, 4866, 198, 2, 286, 428, 3788, 290, 3917, 10314, 3696, 357, 1...
3.664303
423
import pickle from flask import Flask, request, jsonify, session from flask_cors import CORS, cross_origin import sklearn from sklearn.decomposition import TruncatedSVD import pandas as pd import numpy as np ranks = [] app = Flask(__name__) cors = CORS(app) app.config['CORS_HEADERS'] = 'Content-Type' if __name__ == ...
[ 11748, 2298, 293, 198, 6738, 42903, 1330, 46947, 11, 2581, 11, 33918, 1958, 11, 6246, 198, 6738, 42903, 62, 66, 669, 1330, 327, 20673, 11, 3272, 62, 47103, 198, 11748, 1341, 35720, 198, 6738, 1341, 35720, 13, 12501, 296, 9150, 1330, 8...
2.806061
165
from django.conf.urls import patterns,url from ccr import views urlpatterns=patterns( '', url(r'^$',views.main), url(r'^save/',views.save), url(r'^template/',views.template), url(r'^compile/',views.compile), url(r'^run/',views.run), )
[ 6738, 42625, 14208, 13, 10414, 13, 6371, 82, 1330, 7572, 11, 6371, 198, 6738, 269, 6098, 1330, 5009, 198, 198, 6371, 33279, 82, 28, 33279, 82, 7, 198, 6, 3256, 198, 6371, 7, 81, 6, 61, 3, 3256, 33571, 13, 12417, 828, 198, 6371, ...
2.397959
98
# -*- coding: utf-8 -*- # Form implementation generated from reading ui file 'UI/ModuleMgrDlg.ui' # # Created by: PyQt5 UI code generator 5.15.2 # # WARNING: Any manual changes made to this file will be lost when pyuic5 is # run again. Do not edit this file unless you know what you are doing. from PyQt5 import QtCo...
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 198, 2, 5178, 7822, 7560, 422, 3555, 334, 72, 2393, 705, 10080, 14, 26796, 44, 2164, 35, 75, 70, 13, 9019, 6, 198, 2, 198, 2, 15622, 416, 25, 9485, 48, 83, 20, 1...
2.909836
122
"""Transmissivity classes """ import numpy as np import scipy.integrate as integrate_mod import spowtd.spline as spline_mod def create_transmissivity_function(parameters): """Create a transmissivity function Returns a callable object that returns transmissivity at a given water level. The class of t...
[ 37811, 8291, 3927, 3458, 6097, 198, 198, 37811, 198, 198, 11748, 299, 32152, 355, 45941, 198, 198, 11748, 629, 541, 88, 13, 18908, 4873, 355, 19386, 62, 4666, 198, 198, 11748, 599, 322, 8671, 13, 22018, 500, 355, 4328, 500, 62, 4666, ...
2.756272
279
""" category: Generate kinetics name: Hill equations description: automatically generate the equilibrium rate equation for transcription icon: hillequation.png menu: yes specific for: Coding tool: yes """ from tinkercell import * from tc2py import * items = tc_selectedItems(); genes = []; for i in range(0,items.lengt...
[ 37811, 198, 22872, 25, 2980, 378, 18967, 14596, 198, 3672, 25, 3327, 27490, 198, 11213, 25, 6338, 7716, 262, 29163, 2494, 16022, 329, 26955, 198, 4749, 25, 289, 8270, 421, 341, 13, 11134, 198, 26272, 25, 3763, 198, 11423, 329, 25, 327...
2.385989
728