content
stringlengths
1
1.04M
input_ids
listlengths
1
774k
ratio_char_token
float64
0.38
22.9
token_count
int64
1
774k
# Copyright (c) 2016 Red Hat, Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writ...
[ 2, 15069, 357, 66, 8, 1584, 2297, 10983, 11, 3457, 13, 198, 2, 198, 2, 49962, 739, 262, 24843, 13789, 11, 10628, 362, 13, 15, 357, 1169, 366, 34156, 15341, 198, 2, 345, 743, 407, 779, 428, 2393, 2845, 287, 11846, 351, 262, 13789, ...
3.48
275
import torch import torchvision import testing.config as config import torch.utils.data as data_utils transform = torchvision.transforms.Compose( [torchvision.transforms.ToTensor(), torchvision.transforms.RandomHorizontalFlip(), torchvision.transforms.Normalize((0.5, 0.5, 0.5), (0.5, 0.5, 0.5))]) transf...
[ 11748, 28034, 198, 11748, 28034, 10178, 198, 11748, 4856, 13, 11250, 355, 4566, 198, 11748, 28034, 13, 26791, 13, 7890, 355, 1366, 62, 26791, 198, 198, 35636, 796, 28034, 10178, 13, 7645, 23914, 13, 7293, 577, 7, 198, 220, 220, 220, 6...
2.009569
627
import asyncio import logging import re from asyncio import Queue, Event from dataclasses import dataclass from typing import Tuple from urllib.parse import urljoin, urlparse import html2text from aiohttp import ClientSession from asyncio_throttle import Throttler @dataclass
[ 11748, 30351, 952, 198, 11748, 18931, 198, 11748, 302, 198, 6738, 30351, 952, 1330, 4670, 518, 11, 8558, 198, 6738, 4818, 330, 28958, 1330, 4818, 330, 31172, 198, 6738, 19720, 1330, 309, 29291, 198, 6738, 2956, 297, 571, 13, 29572, 1330...
3.556962
79
#from .jtest import get_2014_nuggets #from .submissions import Updates from .judgements import ( get_2013_nuggets, get_2014_nuggets, get_2013_matches, get_2014_matches ) from .data import Resource, get_resource_manager from .misc import stringify_corenlp_doc, stringify_streamcorpus_sentence import os import signal ...
[ 2, 6738, 764, 73, 9288, 1330, 651, 62, 4967, 62, 77, 26550, 198, 2, 6738, 764, 7266, 8481, 1330, 28090, 198, 6738, 764, 10456, 43547, 1330, 357, 198, 220, 220, 220, 651, 62, 6390, 62, 77, 26550, 11, 651, 62, 4967, 62, 77, 26550, ...
1.769416
1,249
import pytest from acheron.workflows import over_11mer_matrix
[ 11748, 12972, 9288, 198, 6738, 936, 372, 261, 13, 1818, 44041, 1330, 625, 62, 1157, 647, 62, 6759, 8609, 628 ]
3.15
20
import datetime import json from unittest import mock import requests_mock from django.core import management from django.http import Http404 from django.test import RequestFactory, TestCase from django_hosts.resolvers import reverse from .models import ( METRIC_PERIOD_DAILY, METRIC_PERIOD_WEEKLY, GithubItemCount...
[ 11748, 4818, 8079, 198, 11748, 33918, 198, 6738, 555, 715, 395, 1330, 15290, 198, 198, 11748, 7007, 62, 76, 735, 198, 6738, 42625, 14208, 13, 7295, 1330, 4542, 198, 6738, 42625, 14208, 13, 4023, 1330, 367, 29281, 26429, 198, 6738, 42625...
3.148936
141
import unittest from SQLite import SQLite if __name__ == "__main__": unittest.main()
[ 11748, 555, 715, 395, 198, 6738, 16363, 578, 1330, 16363, 578, 628, 198, 220, 220, 220, 220, 198, 361, 11593, 3672, 834, 6624, 366, 834, 12417, 834, 1298, 198, 220, 220, 220, 555, 715, 395, 13, 12417, 3419 ]
2.5
38
from django.contrib import messages from django.contrib.auth.decorators import login_required from django.core.urlresolvers import reverse from django.http import HttpResponseRedirect, HttpResponseForbidden from django.shortcuts import get_object_or_404, render from package.models import Project from timeline.models im...
[ 6738, 42625, 14208, 13, 3642, 822, 1330, 6218, 198, 6738, 42625, 14208, 13, 3642, 822, 13, 18439, 13, 12501, 273, 2024, 1330, 17594, 62, 35827, 198, 6738, 42625, 14208, 13, 7295, 13, 6371, 411, 349, 690, 1330, 9575, 198, 6738, 42625, ...
3.497238
181
# Copyright 2021 DeepMind Technologies Limited. # # 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 ag...
[ 2, 15069, 33448, 10766, 28478, 21852, 15302, 13, 198, 2, 198, 2, 49962, 739, 262, 24843, 13789, 11, 10628, 362, 13, 15, 357, 1169, 366, 34156, 15341, 198, 2, 345, 743, 407, 779, 428, 2393, 2845, 287, 11846, 351, 262, 13789, 13, 198,...
3.237687
2,680
from bs4 import BeautifulSoup import requests import re import json URL = 'https://www.espn.com/nhl/scoreboard/_/date/DATE'
[ 6738, 275, 82, 19, 1330, 23762, 50, 10486, 198, 11748, 7007, 198, 11748, 302, 198, 11748, 33918, 198, 198, 21886, 796, 705, 5450, 1378, 2503, 13, 9774, 77, 13, 785, 14, 77, 18519, 14, 26675, 3526, 47835, 14, 4475, 14, 35, 6158, 6 ]
2.883721
43
import os import sys MRPARSE_DIR = os.path.join(os.path.abspath(os.path.dirname(__file__)),'..') sys.path.insert(0, MRPARSE_DIR)
[ 11748, 28686, 198, 11748, 25064, 198, 198, 13599, 27082, 5188, 62, 34720, 796, 28686, 13, 6978, 13, 22179, 7, 418, 13, 6978, 13, 397, 2777, 776, 7, 418, 13, 6978, 13, 15908, 3672, 7, 834, 7753, 834, 36911, 6, 492, 11537, 198, 17597,...
2.280702
57
""" Custom integration to integrate victorsmartkill with Home Assistant. For more details about this integration, please refer to https://github.com/toreamun/victorsmartkill-homeassistant """ import asyncio from dataclasses import dataclass, field from datetime import timedelta import logging from typing imp...
[ 37811, 201, 198, 15022, 11812, 284, 19386, 2210, 669, 13822, 12728, 351, 5995, 15286, 13, 201, 198, 201, 198, 1890, 517, 3307, 546, 428, 11812, 11, 3387, 3522, 284, 201, 198, 5450, 1378, 12567, 13, 785, 14, 83, 382, 321, 403, 14, 32...
2.248208
3,348
# Copyright (c) 2015 Stephen Warren # Copyright (c) 2015-2016, NVIDIA CORPORATION. All rights reserved. # # SPDX-License-Identifier: GPL-2.0 # Logic to interact with U-Boot running on real hardware, typically via a # physical serial port. import sys from u_boot_spawn import Spawn from u_boot_console_base import Conso...
[ 2, 15069, 357, 66, 8, 1853, 7970, 11328, 198, 2, 15069, 357, 66, 8, 1853, 12, 5304, 11, 15127, 23929, 44680, 6234, 13, 1439, 2489, 10395, 13, 198, 2, 198, 2, 30628, 55, 12, 34156, 12, 33234, 7483, 25, 38644, 12, 17, 13, 15, 198,...
2.555071
917
from django.shortcuts import render from django.http import HttpResponse import helloWorld import HTMLmaker import graph_maker
[ 6738, 42625, 14208, 13, 19509, 23779, 1330, 8543, 198, 6738, 42625, 14208, 13, 4023, 1330, 367, 29281, 31077, 198, 11748, 23748, 10603, 198, 11748, 11532, 10297, 198, 11748, 4823, 62, 10297, 628, 628 ]
3.939394
33
import os import sys from pprint import pprint from operator import add import pyspark from pyspark.context import SparkContext sc = SparkContext() file = "SampleData3.txt" wordcounts = sc.textFile(file) \ .map(lambda l: ((l.split(" ")[0], len([x for x in l.split(" ")[1:] if ("gene_" in x or "disease_" in x)]...
[ 11748, 28686, 198, 11748, 25064, 198, 6738, 279, 4798, 1330, 279, 4798, 198, 6738, 10088, 1330, 751, 198, 11748, 279, 893, 20928, 198, 6738, 279, 893, 20928, 13, 22866, 1330, 17732, 21947, 198, 198, 1416, 796, 17732, 21947, 3419, 198, 7...
2.207692
260
from alipay import AliPay from django.shortcuts import render # Create your views here. from rest_framework import status from mall import settings from rest_framework.permissions import IsAuthenticated from rest_framework.response import Response from rest_framework.views import APIView from orders.models import Ord...
[ 6738, 435, 541, 323, 1330, 12104, 19197, 198, 6738, 42625, 14208, 13, 19509, 23779, 1330, 8543, 198, 198, 2, 13610, 534, 5009, 994, 13, 198, 6738, 1334, 62, 30604, 1330, 3722, 198, 6738, 17374, 1330, 6460, 198, 6738, 1334, 62, 30604, ...
1.155396
695
#! -*- coding: utf-8 -*- """ Global Configuration """ # Author: DengBoCong <bocongdeng@gmail.com> # # License: Apache-2.0 License from __future__ import absolute_import from __future__ import division from __future__ import print_function import os import uuid from configs.configs import config from configs.constant ...
[ 2, 0, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 37811, 8060, 28373, 198, 37811, 198, 2, 6434, 25, 41985, 16635, 18649, 1279, 65, 420, 506, 67, 1516, 31, 14816, 13, 785, 29, 198, 2, 198, 2, 13789, 25, 24843, 12,...
2.844221
597
#!/usr/bin/env python3 from setuptools import setup fuse_reqs = [ 'fuse-python >= 0.3.1; python_version < "3"', 'fuse-python >= 1.0.0; python_version > "3"', ] readme = open('README.md', 'r').read() readme = readme.replace( '(FUSE.md)', '(https://github.com/drougge/wellpapp-pyclient/blob/master/FUSE.md)' ) setu...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 18, 198, 198, 6738, 900, 37623, 10141, 1330, 9058, 198, 198, 69, 1904, 62, 42180, 82, 796, 685, 198, 197, 6, 69, 1904, 12, 29412, 18189, 657, 13, 18, 13, 16, 26, 21015, 62, 9641, 1279, ...
2.31377
443
#!/usr/bin/env python """Unit tests for opscore.utility.html """ # Created 28-Jun-2008 by David Kirkby (dkirkby@uci.edu) import unittest from html.parser import HTMLParser import opscore.utility.html as utilHtml if __name__ == "__main__": unittest.main()
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 198, 37811, 26453, 5254, 329, 39628, 7295, 13, 315, 879, 13, 6494, 198, 37811, 198, 198, 2, 15622, 2579, 12, 22396, 12, 11528, 416, 3271, 13855, 1525, 357, 34388, 14232, 1525, 31, 42008, 13...
2.778947
95
import pathlib import numpy as np import pytest from numpy.testing import assert_allclose import pygeems FPATH_DATA = pathlib.Path(__file__).parent / "data" @pytest.mark.parametrize( "yield_coef,pga,mag,pgv,expected", [ # Examples from Rathje et. al (2014) (0.1, 0.54, 6.75, None, 43), ...
[ 11748, 3108, 8019, 198, 198, 11748, 299, 32152, 355, 45941, 198, 11748, 12972, 9288, 198, 6738, 299, 32152, 13, 33407, 1330, 6818, 62, 439, 19836, 198, 198, 11748, 12972, 469, 5232, 628, 198, 5837, 12599, 62, 26947, 796, 3108, 8019, 13,...
1.894574
1,290
#<Tommil> There is one particular detail in session forming which may not be obvious. The answering party needs to send ack to the connection request message as the very first message #<Tommil> the calling party is using this ack to bind together upstream and downstream session session ids import datetime from collecti...
[ 2, 27, 51, 2002, 346, 29, 1318, 318, 530, 1948, 3703, 287, 6246, 14583, 543, 743, 407, 307, 3489, 13, 383, 18877, 2151, 2476, 284, 3758, 257, 694, 284, 262, 4637, 2581, 3275, 355, 262, 845, 717, 3275, 198, 2, 27, 51, 2002, 346, ...
3.791209
182
"""Entry point to start service.""" from pro_tes.api.register_openapi import register_openapi from pro_tes.config.app_config import parse_app_config from pro_tes.config.config_parser import (get_conf, get_conf_type) from pro_tes.config.log_config import configure_logging from pro_tes.database.register_mongodb import r...
[ 37811, 30150, 966, 284, 923, 2139, 526, 15931, 198, 198, 6738, 386, 62, 4879, 13, 15042, 13, 30238, 62, 9654, 15042, 1330, 7881, 62, 9654, 15042, 198, 6738, 386, 62, 4879, 13, 11250, 13, 1324, 62, 11250, 1330, 21136, 62, 1324, 62, 1...
2.929412
255
# Copyright 2020-present the HuggingFace Inc. team. # Copyright (c) 2022 PaddlePaddle Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.o...
[ 2, 15069, 12131, 12, 25579, 262, 12905, 2667, 32388, 3457, 13, 1074, 13, 198, 2, 15069, 357, 66, 8, 33160, 350, 37382, 47, 37382, 46665, 13, 1439, 6923, 33876, 13, 198, 2, 198, 2, 49962, 739, 262, 24843, 13789, 11, 10628, 362, 13, ...
2.57318
1,387
# COMMAND 14 BACK AND FRONT CAMERA - NO FLIGHT from pyparrot.Minidrone import Mambo from ground_inspector.ftp_download import ftp_download from ground_inspector.ground_vision import ground_vision from shelf_detector.simple_qr_scan import qr_scan_image from pyparrot.DroneVision import DroneVision import threading import...
[ 2, 22240, 6981, 1478, 28767, 5357, 8782, 35830, 32421, 46461, 532, 8005, 9977, 9947, 198, 6738, 12972, 1845, 10599, 13, 9452, 312, 33171, 1330, 337, 22651, 198, 6738, 2323, 62, 1040, 806, 273, 13, 701, 79, 62, 15002, 1330, 10117, 79, ...
2.473597
606
# -*- coding: utf-8 -*- # Copyright (c) 2020. Distributed under the terms of the MIT License. from argparse import Namespace from copy import deepcopy from pathlib import Path import yaml from pymatgen.core import Structure from pymatgen.ext.matproj import MPRester from pymatgen.io.vasp import Vasprun, Outcar from v...
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 2, 220, 15069, 357, 66, 8, 12131, 13, 4307, 6169, 739, 262, 2846, 286, 262, 17168, 13789, 13, 198, 198, 6738, 1822, 29572, 1330, 28531, 10223, 198, 6738, 4866, 1330, 2...
2.941176
527
from sutree.display.valueutil import ValueUtil from sutree.display.bintreeparser import BinTreeParser
[ 6738, 264, 315, 631, 13, 13812, 13, 8367, 22602, 1330, 11052, 18274, 346, 198, 6738, 264, 315, 631, 13, 13812, 13, 65, 600, 260, 538, 28198, 1330, 20828, 27660, 46677, 628, 628 ]
3.28125
32
# AppLogger : The application logger for python # Useful in auditing actions/variables and storing everything to a log file. # Git repo: https://github.com/codarrenvelvindron/AppLogger-python # By Codarren Velvindron # Contact: devildron@gmail.com # 25/02/2021 # Licence: MIT import os from datetime import datetime
[ 2, 2034, 11187, 1362, 1058, 383, 3586, 49706, 329, 21015, 198, 2, 49511, 287, 2709, 1780, 4028, 14, 25641, 2977, 290, 23069, 2279, 284, 257, 2604, 2393, 13, 198, 2, 15151, 29924, 25, 3740, 1378, 12567, 13, 785, 14, 19815, 283, 918, ...
3.268041
97
import os import json import facebook from graphipy.graph.graph_base import BaseNode as Node, BaseEdge as Edge
[ 11748, 28686, 198, 11748, 33918, 198, 11748, 23960, 198, 6738, 4823, 541, 88, 13, 34960, 13, 34960, 62, 8692, 1330, 7308, 19667, 355, 19081, 11, 7308, 37021, 355, 13113, 628, 628, 628, 628 ]
3.575758
33
# encoding: utf-8 # module Autodesk.Civil calls itself Civil # from Civil3DNodes, Version=13.2.2161.0, Culture=neutral, PublicKeyToken=null # by generator 1.145 # no doc # no imports # no functions # no classes # variables with complex values
[ 2, 21004, 25, 3384, 69, 12, 23, 198, 2, 8265, 5231, 4147, 74, 13, 32610, 3848, 2346, 7511, 198, 2, 422, 7511, 18, 35504, 4147, 11, 10628, 28, 1485, 13, 17, 13, 20666, 16, 13, 15, 11, 17346, 28, 29797, 11, 5094, 9218, 30642, 28, ...
3.181818
77
#!/usr/bin/env python #-*- coding:utf-8 -*- # author:jingtongyu # datetime:2020/6/7 10:14 下午 # software: PyCharm import string import flask_restful from flask import Flask, abort, jsonify, request from hashids import Hashids from models import db from common import code, pretty_result # 添加请求钩子 from common.middlewares ...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 198, 2, 12, 9, 12, 19617, 25, 40477, 12, 23, 532, 9, 12, 198, 2, 1772, 25, 49940, 83, 506, 24767, 198, 2, 4818, 8079, 25, 42334, 14, 21, 14, 22, 838, 25, 1415, 220, 10310, 233, 3935...
2.125553
1,131
from .async_vec_env import AsyncVectorEnv
[ 6738, 764, 292, 13361, 62, 35138, 62, 24330, 1330, 1081, 13361, 38469, 4834, 85, 198 ]
2.8
15
#!/usr/bin/python # -*- coding: utf-8 -*- # https://github.com/mikolak-net/ansible-raspi-config/blob/master/library/expand_fs.py from ansible.module_utils.basic import * MAIN_PARTITION_NAME = "/dev/mmcblk0p2" main()
[ 2, 48443, 14629, 14, 8800, 14, 29412, 198, 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 2, 3740, 1378, 12567, 13, 785, 14, 76, 1134, 349, 461, 12, 3262, 14, 504, 856, 12, 81, 5126, 72, 12, 11250, 14, 2436, 67...
2.268041
97
#!/usr/bin/env python # Copyright 2015 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. from __future__ import with_statement import os import string import sys FILE_TEMPLATE = \ """<?xml version="1.0" encoding="utf-8"?> ...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 198, 2, 15069, 1853, 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,...
2.343137
714
from dataclasses import dataclass, field from datetime import datetime from rubicon.domain.utils import uuid DIRECTIONALITY_VALUES = ["score", "loss"] @dataclass(frozen=True)
[ 6738, 4818, 330, 28958, 1330, 4818, 330, 31172, 11, 2214, 198, 6738, 4818, 8079, 1330, 4818, 8079, 198, 198, 6738, 6437, 4749, 13, 27830, 13, 26791, 1330, 334, 27112, 198, 198, 17931, 23988, 2849, 1847, 9050, 62, 23428, 35409, 796, 1463...
3.033898
59
# # PySNMP MIB module RAID-Adapter-MIB (http://snmplabs.com/pysmi) # ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/RAID-Adapter-MIB # Produced by pysmi-0.3.4 at Wed May 1 14:51:41 2019 # On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4 # Using Python version 3.7.3 (default, Mar ...
[ 2, 198, 2, 9485, 15571, 7378, 337, 9865, 8265, 37450, 12, 47307, 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, 14, 14490, 14, 67, 615, 47562, 19,...
2.91268
26,111
from livereload.django.template.observers import DjangoTemplateDirectoriesObserver from livereload.server.notifiers import LivereloadServerNotifier from livereload.event.handlers import LivereloadFileEventHandler from django.conf import settings if 'django.contrib.staticfiles' in settings.INSTALLED_APPS: from dja...
[ 6738, 2107, 260, 2220, 13, 28241, 14208, 13, 28243, 13, 672, 2655, 690, 1330, 37770, 30800, 13470, 1749, 31310, 18497, 198, 6738, 2107, 260, 2220, 13, 15388, 13, 1662, 13350, 1330, 7547, 260, 2220, 10697, 3673, 7483, 198, 6738, 2107, 26...
3.578571
140
import sys sys.path.append(r"C:\Users\ahadrauf\Desktop\Research\dxf_stl_renderer") from pattern import * from settings import * import numpy as np from datetime import datetime if __name__ == '__main__': now = datetime.now() name_clarifier = "_test_cut_silhouette_curio_v2" timestamp = now.strftime("%Y%m...
[ 11748, 25064, 198, 17597, 13, 6978, 13, 33295, 7, 81, 1, 34, 7479, 14490, 59, 993, 49456, 3046, 59, 36881, 59, 25104, 59, 67, 26152, 62, 301, 75, 62, 10920, 11882, 4943, 198, 198, 6738, 3912, 1330, 1635, 198, 6738, 6460, 1330, 1635,...
2.473684
228
"""This script will run all unit test for the project. It was taken from https://github.com/ralf-meyer/NeuralNetworks/tests/run_all_tests.py. Author: - Ralf Meyer, QCIEP, TU Graz """ import os import sys import unittest from SCFInitialGuess.utilities.usermessages import Messenger as msg if __name__ == '__main_...
[ 37811, 1212, 4226, 481, 1057, 477, 4326, 1332, 329, 262, 1628, 13, 198, 1026, 373, 2077, 422, 220, 198, 5450, 1378, 12567, 13, 785, 14, 1373, 69, 12, 48794, 14, 8199, 1523, 7934, 5225, 14, 41989, 14, 5143, 62, 439, 62, 41989, 13, ...
2.634361
227
import numpy as np import matplotlib.pyplot as plt import seaborn as sns import scipy.stats import bootcamp_utils as booU x = np.random.random(size=100000) x_ecdf, y_ecdf = booU.ecdf(x) plt.plot(x_ecdf[::1000], y_ecdf[::1000], marker='.', linestyle='none', markersize=10) x = np.random.random(size=20) heads = x <=0.5
[ 11748, 299, 32152, 355, 45941, 198, 11748, 2603, 29487, 8019, 13, 9078, 29487, 355, 458, 83, 198, 11748, 384, 397, 1211, 355, 3013, 82, 198, 11748, 629, 541, 88, 13, 34242, 198, 11748, 6297, 16544, 62, 26791, 355, 22513, 52, 198, 198,...
2.406015
133
# # Darknet Darknet19 model # Copyright EAVISE # import functools from collections import OrderedDict import torch.nn as nn import lightnet.network as lnn __all__ = ['Darknet19'] class Darknet19(lnn.module.Darknet): """ Darknet19 implementation :cite:`yolo_v2`. Args: num_classes (Number, option...
[ 2, 198, 2, 220, 220, 3801, 3262, 3801, 3262, 1129, 2746, 198, 2, 220, 220, 15069, 412, 10116, 24352, 198, 2, 198, 198, 11748, 1257, 310, 10141, 198, 6738, 17268, 1330, 14230, 1068, 35, 713, 198, 11748, 28034, 13, 20471, 355, 299, 77...
2.90566
212
#!/usr/bin/env python __author__ = 'Sergei F. Kliver' import argparse from RouToolPa.Routines import EnsemblRoutines parser = argparse.ArgumentParser() parser.add_argument("-i", "--input", action="store", dest="input", required=True, help="Input file with protein annotations generated from Biomar...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 198, 834, 9800, 834, 796, 705, 7089, 469, 72, 376, 13, 14770, 1428, 6, 198, 198, 11748, 1822, 29572, 198, 6738, 13876, 25391, 28875, 13, 49, 448, 1127, 1330, 2039, 4428, 75, 49, 448, 1127...
2.441038
424
from transformers import BertTokenizer, BertModel, BertConfig import torch device = torch.device('cuda' if torch.cuda.is_available() else 'cpu') # print(device)
[ 6738, 6121, 364, 1330, 22108, 30642, 7509, 11, 22108, 17633, 11, 22108, 16934, 198, 11748, 28034, 198, 198, 25202, 796, 28034, 13, 25202, 10786, 66, 15339, 6, 611, 28034, 13, 66, 15339, 13, 271, 62, 15182, 3419, 2073, 705, 36166, 11537,...
3.211538
52
def get_{{customize_name}}_dataloader(dataset_path, input_size, batch_size, num_workers, train_portion=1): """ Prepare dataset for training and evaluating pipeline Args: dataset_path (str) input_size (int) batch_size (int) num_workers (int) train_portion (float) Ret...
[ 4299, 651, 23330, 90, 23144, 1096, 62, 3672, 11709, 62, 67, 10254, 1170, 263, 7, 19608, 292, 316, 62, 6978, 11, 5128, 62, 7857, 11, 15458, 62, 7857, 11, 997, 62, 22896, 11, 4512, 62, 16864, 28, 16, 2599, 198, 220, 220, 220, 37227,...
2.419913
231
from django.conf.urls import url from .views import * urlpatterns = [ url(r"^home$",home,name="home"), url(r"^market$",market,name="market"), url(r"^cart$",cart,name="cart"), url(r"mine$",mine,name="mine"), url(r"market_with_params/(\d+)/(\d+)/(\d+)",market_with_params,name="market_params")...
[ 6738, 42625, 14208, 13, 10414, 13, 6371, 82, 1330, 19016, 201, 198, 6738, 764, 33571, 1330, 1635, 201, 198, 201, 198, 6371, 33279, 82, 796, 685, 201, 198, 220, 220, 220, 19016, 7, 81, 1, 61, 11195, 3, 1600, 11195, 11, 3672, 2625, ...
2.175393
382
''' Copyright (c) 2020, NVIDIA CORPORATION. All rights reserved. NVIDIA CORPORATION and its licensors retain all intellectual property and proprietary rights in and to this software, related documentation and any modifications thereto. Any use, reproduction, disclosure or distribution of this software and related docu...
[ 7061, 6, 198, 15269, 357, 66, 8, 12131, 11, 15127, 23929, 44680, 6234, 13, 1439, 2489, 10395, 13, 198, 198, 38021, 23929, 44680, 6234, 290, 663, 8240, 669, 12377, 477, 9028, 3119, 198, 392, 20622, 2489, 287, 290, 284, 428, 3788, 11, ...
2.3666
8,036
celsius = [0.7, 2.1, 4.2, 8.2, 12.5, 15.6, 16.9, 16.3, 13.6, 9.5, 4.6, 2.3] # Alle Temperaturen größer gleich 15 gefiltert = [] for month in celsius: if month >= 15: gefiltert.append(month) print(gefiltert)
[ 5276, 82, 3754, 796, 685, 15, 13, 22, 11, 362, 13, 16, 11, 604, 13, 17, 11, 807, 13, 17, 11, 1105, 13, 20, 11, 1315, 13, 21, 11, 1467, 13, 24, 11, 1467, 13, 18, 11, 1511, 13, 21, 11, 860, 13, 20, 11, 604, 13, 21, 11, 3...
1.826772
127
# coding=utf-8 # # BSD 3-Clause License # # Copyright (c) 2016-21, University of Liverpool # 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 abov...
[ 2, 19617, 28, 40477, 12, 23, 198, 2, 198, 2, 347, 10305, 513, 12, 2601, 682, 13789, 198, 2, 198, 2, 15069, 357, 66, 8, 1584, 12, 2481, 11, 2059, 286, 11761, 198, 2, 1439, 2489, 10395, 13, 198, 2, 198, 2, 2297, 396, 3890, 290, ...
3.510081
496
# Copyright 2016-2019 The Van Valen Lab at the California Institute of # Technology (Caltech), with support from the Paul Allen Family Foundation, # Google, & National Institutes of Health (NIH) under Grant U24CA224309-01. # All rights reserved. # # Licensed under a modified Apache License, Version 2.0 (the "License");...
[ 2, 15069, 1584, 12, 23344, 383, 6656, 3254, 268, 3498, 379, 262, 3442, 5136, 286, 198, 2, 8987, 357, 9771, 13670, 828, 351, 1104, 422, 262, 3362, 9659, 7884, 5693, 11, 198, 2, 3012, 11, 1222, 2351, 33656, 286, 3893, 357, 22125, 39, ...
2.363348
7,874
import logging from inspect import getmembers, isfunction import configargparse import ipv4_providers from prometheus_client import start_http_server from dyndns_updater import UpdateDetector from notifier import UpdateNotifier from persistence import FilePersistence def read_config(): """ Parse CLI args. """ ...
[ 11748, 18931, 198, 6738, 10104, 1330, 651, 30814, 11, 318, 8818, 198, 198, 11748, 4566, 853, 29572, 198, 11748, 20966, 85, 19, 62, 15234, 4157, 198, 198, 6738, 1552, 36916, 62, 16366, 1330, 923, 62, 4023, 62, 15388, 198, 6738, 20268, ...
2.864751
1,183
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Created on Wed Oct 18 17:29:22 2017 @author: dimitris """ import numpy as np import h5py np.random.seed(1) #################################### ##############################3 train_x_orig, train_y, test_x_orig, test_y, classes = load_data() # Reshape the trai...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 18, 198, 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 37811, 198, 41972, 319, 3300, 2556, 1248, 1596, 25, 1959, 25, 1828, 2177, 198, 198, 31, 9800, 25, 5391, 270, 2442...
2.793651
378
# token.py """ Holds different grammar and syntax token classes """ # regexes from library to recognize numbers from tokenize import Floatnumber, Intnumber, Name, group, _compile from dataclasses import dataclass as struct from dataclasses import field op_token_types = { '.': 'DOT', '..': 'RANGE_INCL', ...
[ 2, 11241, 13, 9078, 198, 198, 37811, 198, 39, 10119, 1180, 23491, 290, 15582, 11241, 6097, 198, 37811, 198, 198, 2, 40364, 274, 422, 5888, 284, 7564, 3146, 198, 6738, 11241, 1096, 1330, 48436, 17618, 11, 2558, 17618, 11, 6530, 11, 144...
2.60733
191
"""Test suite for the bioidtracker package."""
[ 37811, 14402, 18389, 329, 262, 13401, 312, 2213, 10735, 5301, 526, 15931, 198 ]
3.615385
13
''' Copyright 2017 Linyi Cheng Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublic...
[ 7061, 6, 198, 15269, 2177, 406, 3541, 72, 27692, 198, 198, 5990, 3411, 318, 29376, 7520, 11, 1479, 286, 3877, 11, 284, 597, 1048, 16727, 257, 4866, 286, 428, 3788, 290, 3917, 10314, 3696, 357, 1169, 366, 25423, 12340, 284, 1730, 287, ...
3.759894
379
# -*- coding: utf-8 -*- from .fritzconnection import ( FritzConnection, FritzInspection, print_servicenames, print_api, ) from .fritzhosts import ( FritzHosts, print_hosts, ) from .fritzstatus import ( FritzStatus, print_status, )
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 198, 6738, 764, 69, 29574, 38659, 1330, 357, 198, 220, 220, 220, 45954, 32048, 11, 198, 220, 220, 220, 45954, 818, 31308, 11, 198, 220, 220, 220, 3601, 62, 3168, 291, ...
2.357143
112
from __future__ import print_function import argparse import sys import torch import torch.utils.data from torch import nn, optim from torch.nn import functional as F import scipy.io as sio import numpy as np from torch.utils.data.dataset import Dataset import matplotlib.pyplot as plt import matplotlib import scipy.lin...
[ 6738, 11593, 37443, 834, 1330, 3601, 62, 8818, 198, 11748, 1822, 29572, 198, 11748, 25064, 198, 11748, 28034, 198, 11748, 28034, 13, 26791, 13, 7890, 198, 6738, 28034, 1330, 299, 77, 11, 6436, 198, 6738, 28034, 13, 20471, 1330, 10345, 3...
3.153257
261
import sys,os # import the nielsenreader import nielsenreader as nielsen from nielsenreader import read_all_data_new # where to read and write from read_dir = os.path.abspath(os.path.expanduser('~') + '/Cereal/') outfile=read_dir+'/raw-cereal-all' # Specify which dmas /modules /columns to keep dmas=[506,517,556, 602...
[ 11748, 25064, 11, 418, 198, 198, 2, 1330, 262, 37628, 25328, 46862, 198, 11748, 37628, 25328, 46862, 355, 37628, 25328, 198, 6738, 37628, 25328, 46862, 1330, 1100, 62, 439, 62, 7890, 62, 3605, 198, 198, 2, 810, 284, 1100, 290, 3551, 4...
2.722798
386
import os import sys import random import string import bosk from bosk.management.commands.base import BaseCommand class Command(BaseCommand): """ """
[ 11748, 28686, 198, 11748, 25064, 198, 11748, 4738, 198, 11748, 4731, 198, 198, 11748, 37284, 74, 198, 6738, 37284, 74, 13, 27604, 13, 9503, 1746, 13, 8692, 1330, 7308, 21575, 628, 198, 4871, 9455, 7, 14881, 21575, 2599, 198, 220, 220, ...
2.932203
59
# -*- coding: utf-8 -*- """ Created on Sat Apr 20 23:39:43 2019 @author: Syed Waleed Hyder """ timeA = int(input("Enter hours for Person A completes the task: ")) timeB = int(input("Enter hours for Person B completes the task: ")) print("Person A completes the task in {} hours".format(timeA)) print("Person B complet...
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 37811, 198, 41972, 319, 7031, 2758, 1160, 2242, 25, 2670, 25, 3559, 13130, 198, 198, 31, 9800, 25, 1632, 276, 370, 1000, 276, 47660, 198, 37811, 198, 198, 2435, 32, 79...
3.141935
155
try: import uasyncio as asyncio except ImportError: import asyncio # Condition class # from primitives.condition import Condition
[ 28311, 25, 198, 220, 220, 220, 1330, 334, 292, 13361, 952, 355, 30351, 952, 198, 16341, 17267, 12331, 25, 198, 220, 220, 220, 1330, 30351, 952, 198, 198, 2, 24295, 1398, 198, 2, 422, 2684, 20288, 13, 31448, 1330, 24295, 198 ]
3.390244
41
from profiles.models import QuotaBinding from Squest.utils.squest_filter import SquestFilter
[ 6738, 16545, 13, 27530, 1330, 2264, 4265, 33, 6020, 198, 6738, 5056, 395, 13, 26791, 13, 82, 6138, 62, 24455, 1330, 5056, 395, 22417, 628 ]
3.76
25
import argparse import bot3 import datetime import praw3 as praw import random import sqlite3 import string import subprocess import sys import time import tkinter import traceback import types from voussoirkit import betterhelp from voussoirkit import mutables from voussoirkit import operatornotify from voussoirkit i...
[ 11748, 1822, 29572, 198, 11748, 10214, 18, 198, 11748, 4818, 8079, 198, 11748, 279, 1831, 18, 355, 279, 1831, 198, 11748, 4738, 198, 11748, 44161, 578, 18, 198, 11748, 4731, 198, 11748, 850, 14681, 198, 11748, 25064, 198, 11748, 640, 19...
2.264918
8,463
from django.conf import settings
[ 6738, 42625, 14208, 13, 10414, 1330, 6460, 628 ]
4.25
8
# Generated by Django 3.2.3 on 2021-05-16 17:47 from django.db import migrations
[ 2, 2980, 515, 416, 37770, 513, 13, 17, 13, 18, 319, 33448, 12, 2713, 12, 1433, 1596, 25, 2857, 198, 198, 6738, 42625, 14208, 13, 9945, 1330, 15720, 602, 628 ]
2.766667
30
#!/usr/bin/env python # # Copyright 2020 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 argparse import os import shutil import subprocess import sys import zipfile from util import build_utils if __name__ ==...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 198, 2, 198, 2, 15069, 12131, 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,...
3.247706
109
import tensorflow as tf import numpy as np from data_generator import DataGenerator import argparse as ap from AttentionLayer import Attention parser = ap.ArgumentParser() parser.add_argument('--train_data', type=str, default="data/interim/SQuAD-v1.1-train_sBERT_embeddings-T.json") parser.add_argument('--val_data', t...
[ 11748, 11192, 273, 11125, 355, 48700, 198, 11748, 299, 32152, 355, 45941, 198, 6738, 1366, 62, 8612, 1352, 1330, 6060, 8645, 1352, 198, 11748, 1822, 29572, 355, 2471, 198, 6738, 47406, 49925, 1330, 47406, 628, 198, 48610, 796, 2471, 13, ...
2.552795
1,771
from a10sdk.common.A10BaseClass import A10BaseClass class Interface(A10BaseClass): """ :param tunnel_list: {"minItems": 1, "items": {"type": "tunnel"}, "uniqueItems": true, "array": [{"required": ["ifnum"], "properties": {"ip": {"type": "object", "properties": {"generate-membership-query": {"default": 0, ...
[ 6738, 257, 940, 21282, 74, 13, 11321, 13, 32, 940, 14881, 9487, 1330, 317, 940, 14881, 9487, 628, 198, 4871, 26491, 7, 32, 940, 14881, 9487, 2599, 198, 220, 220, 220, 220, 198, 220, 220, 220, 37227, 220, 220, 220, 1058, 17143, 13275...
3.233933
55,952
import badge, gc, uos badge.mount_root() uos.mount(uos.VfsNative(None), '/') try: uos.mkdir('/lib') except: pass gc.collect()
[ 11748, 23009, 11, 308, 66, 11, 334, 418, 198, 198, 14774, 469, 13, 14948, 62, 15763, 3419, 198, 84, 418, 13, 14948, 7, 84, 418, 13, 53, 9501, 31272, 7, 14202, 828, 31051, 11537, 198, 198, 28311, 25, 198, 197, 84, 418, 13, 28015, ...
2.112903
62
import collections import logging import urllib.parse from structlog import wrap_logger from secure_message.constants import MESSAGE_BY_ID_ENDPOINT, MESSAGE_LIST_ENDPOINT, MESSAGE_QUERY_LIMIT from secure_message.services.service_toggles import party, internal_user_service logger = wrap_logger(logging.getLogger(__nam...
[ 11748, 17268, 198, 11748, 18931, 198, 11748, 2956, 297, 571, 13, 29572, 198, 198, 6738, 2878, 6404, 1330, 14441, 62, 6404, 1362, 198, 198, 6738, 5713, 62, 20500, 13, 9979, 1187, 1330, 337, 1546, 4090, 8264, 62, 17513, 62, 2389, 62, 16...
2.615677
3,942
import pytest from lhotse.cut import CutSet from lhotse.dataset import SpeechRecognitionDataset @pytest.fixture
[ 11748, 12972, 9288, 198, 198, 6738, 300, 8940, 325, 13, 8968, 1330, 9712, 7248, 198, 6738, 300, 8940, 325, 13, 19608, 292, 316, 1330, 24709, 6690, 2360, 653, 27354, 292, 316, 628, 198, 31, 9078, 9288, 13, 69, 9602, 628 ]
2.9
40
# Count letters using a dictionary text='The quick brown fox jumped over the lazy dog' text=text.upper() counter=dict() for i in text: counter[i]=text.count(i) print(counter)
[ 2, 2764, 7475, 1262, 257, 22155, 198, 5239, 11639, 464, 2068, 7586, 21831, 11687, 625, 262, 16931, 3290, 6, 198, 5239, 28, 5239, 13, 45828, 3419, 198, 24588, 28, 11600, 3419, 198, 1640, 1312, 287, 2420, 25, 198, 220, 220, 220, 3753, ...
3.178571
56
import os import sys import pickle import numpy as np from astrodash.download_data_files import download_all_files from astrodash.restore_model import LoadInputSpectra, BestTypesListSingleRedshift, get_training_parameters, \ classification_split from astrodash.false_positive_rejection import RlapCalc, combined_prob...
[ 11748, 28686, 198, 11748, 25064, 198, 11748, 2298, 293, 198, 11748, 299, 32152, 355, 45941, 198, 6738, 6468, 14892, 1077, 13, 15002, 62, 7890, 62, 16624, 1330, 4321, 62, 439, 62, 16624, 198, 6738, 6468, 14892, 1077, 13, 2118, 382, 62, ...
2.608696
437
''' Created by auto_sdk on 2020.07.28 ''' from dingtalk.api.base import RestApi
[ 7061, 6, 198, 41972, 416, 8295, 62, 21282, 74, 319, 12131, 13, 2998, 13, 2078, 198, 7061, 6, 198, 6738, 44852, 16620, 13, 15042, 13, 8692, 1330, 8324, 32, 14415, 198 ]
2.580645
31
from __future__ import annotations import typing as t if t.TYPE_CHECKING: from swagger_marshmallow_codegen.driver import Driver if __name__ == "__main__": from swagger_marshmallow_codegen.cmd import main main(setup)
[ 6738, 11593, 37443, 834, 1330, 37647, 198, 11748, 19720, 355, 256, 198, 198, 361, 256, 13, 25216, 62, 50084, 2751, 25, 198, 220, 220, 220, 422, 1509, 7928, 62, 76, 5406, 42725, 62, 8189, 5235, 13, 26230, 1330, 12434, 628, 198, 198, ...
2.949367
79
# coding: utf-8 # In[4]: import getopt import itertools import json import sys # In[2]: # In[5]: if __name__ == "__main__": try: opts,args = getopt.getopt(sys.argv[1:],'i:o:m:',['input','output','model']) except getopt.GetoptError as err: # print help information and exit: print(...
[ 198, 2, 19617, 25, 3384, 69, 12, 23, 198, 198, 2, 554, 58, 19, 5974, 198, 198, 11748, 651, 8738, 198, 11748, 340, 861, 10141, 198, 11748, 33918, 198, 11748, 25064, 628, 198, 2, 554, 58, 17, 5974, 628, 198, 2, 554, 58, 20, 5974, ...
2.061275
408
from setuptools import setup from setuptools import find_packages long_description = ''' Python module to Convert a PDF file to a JSON format The goal is to be able to quickly extract all the available information in the document to a python dictionay. The dictionay can then be stored in a database or a csv file (fo...
[ 6738, 900, 37623, 10141, 1330, 9058, 198, 6738, 900, 37623, 10141, 1330, 1064, 62, 43789, 198, 198, 6511, 62, 11213, 796, 705, 7061, 198, 37906, 8265, 284, 38240, 257, 220, 12960, 2393, 284, 257, 19449, 5794, 198, 198, 464, 3061, 318, ...
3.034783
460
from core.services import postgres from werkzeug.security import generate_password_hash from werkzeug.security import check_password_hash
[ 6738, 4755, 13, 30416, 1330, 1281, 34239, 198, 6738, 266, 9587, 2736, 1018, 13, 12961, 1330, 7716, 62, 28712, 62, 17831, 198, 6738, 266, 9587, 2736, 1018, 13, 12961, 1330, 2198, 62, 28712, 62, 17831, 628 ]
3.861111
36
from spyd.registry_manager import register @register('client_message_handler')
[ 6738, 599, 5173, 13, 2301, 4592, 62, 37153, 1330, 7881, 628, 198, 31, 30238, 10786, 16366, 62, 20500, 62, 30281, 11537, 198 ]
3.681818
22
""" Click commands for ``bob.bio.base`` """ import click from . import figure as bio_figure from bob.bio.base.score import iscsv import bob.measure.script.figure as measure_figure from ..score import load from bob.measure.script import common_options from bob.extension.scripts.click_helper import verbosity_option SC...
[ 37811, 6914, 9729, 329, 7559, 65, 672, 13, 65, 952, 13, 8692, 15506, 37227, 198, 198, 11748, 3904, 198, 6738, 764, 1330, 3785, 355, 13401, 62, 26875, 198, 6738, 29202, 13, 65, 952, 13, 8692, 13, 26675, 1330, 318, 40664, 198, 11748, ...
2.69195
2,149
#Import modules from tkinter import * from tkinter.ttk import * import tkinter as tk #Variables #window = tk.Tk() # Window tabs #tab_control = Notebook(window) #apps_tab = Frame(tab_control) #tree = Treeview(apps_tab) #Functions
[ 2, 20939, 13103, 198, 6738, 256, 74, 3849, 1330, 1635, 198, 6738, 256, 74, 3849, 13, 926, 74, 1330, 1635, 198, 11748, 256, 74, 3849, 355, 256, 74, 198, 198, 2, 23907, 2977, 198, 2, 17497, 796, 256, 74, 13, 51, 74, 3419, 198, 2, ...
2.655172
87
import argparse import subprocess def run_original(args: argparse.Namespace) -> None: """Runs quality measurements using the original algorithms. Parameters ---------- args : argparse.Namespace Metrics configuration arguments. """ metrics = [] if args.crossings: metrics.ap...
[ 11748, 1822, 29572, 198, 11748, 850, 14681, 628, 198, 4299, 1057, 62, 14986, 7, 22046, 25, 1822, 29572, 13, 36690, 10223, 8, 4613, 6045, 25, 198, 220, 220, 220, 37227, 10987, 82, 3081, 13871, 1262, 262, 2656, 16113, 13, 628, 220, 220,...
2.448341
1,055
# Some comment
[ 198, 2, 2773, 2912, 198 ]
3.2
5
import pandas
[ 11748, 19798, 292, 628 ]
3.75
4
import pandas as pd import trackintel as ti @pd.api.extensions.register_dataframe_accessor("as_positionfixes") class PositionfixesAccessor(object): """A pandas accessor to treat (Geo)DataFrames as collections of positionfixes. This will define certain methods and accessors, as well as make sure that the Data...
[ 11748, 19798, 292, 355, 279, 67, 198, 198, 11748, 2610, 48779, 355, 46668, 628, 198, 31, 30094, 13, 15042, 13, 2302, 5736, 13, 30238, 62, 7890, 14535, 62, 15526, 273, 7203, 292, 62, 9150, 42624, 4943, 198, 4871, 23158, 42624, 15457, 2...
2.718991
1,427
from __future__ import absolute_import, unicode_literals from django import forms from .models import EventCategory from .utils import today class GridFilterForm(forms.Form): """ Collection of fields to filter EventDateTimes in the grid view. """ categories = forms.ModelMultipleChoiceField( ...
[ 6738, 11593, 37443, 834, 1330, 4112, 62, 11748, 11, 28000, 1098, 62, 17201, 874, 198, 198, 6738, 42625, 14208, 1330, 5107, 198, 198, 6738, 764, 27530, 1330, 8558, 27313, 198, 6738, 764, 26791, 1330, 1909, 628, 198, 4871, 24846, 22417, 8...
2.642415
646
# DataviewQueryQuery.py # # Copyright (C) 2018 OSIsoft, LLC. All rights reserved. # # THIS SOFTWARE CONTAINS CONFIDENTIAL INFORMATION AND TRADE SECRETS OF # OSIsoft, LLC. USE, DISCLOSURE, OR REPRODUCTION IS PROHIBITED WITHOUT # THE PRIOR EXPRESS WRITTEN PERMISSION OF OSIsoft, LLC. # # RESTRICTED RIGHTS LEGEND # Use, d...
[ 2, 16092, 615, 769, 20746, 20746, 13, 9078, 198, 2, 198, 2, 15069, 357, 34, 8, 2864, 7294, 40, 4215, 11, 11419, 13, 1439, 2489, 10395, 13, 198, 2, 198, 2, 12680, 47466, 7102, 5603, 20913, 7102, 37, 25256, 12576, 38044, 5357, 7579, ...
2.863158
285
#!/usr/bin/env python3 help_text=""" This program takes a Rekorxdbox XML and adds beatmarkers every 8 beats. This is useful to convert later to traktor, that lacks dynamic beatgrids """ help_text2="" import sys, os, glob, string, marshal import string, re # base libraries import argparse ...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 18, 628, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 198, 16794, 62, 5239, 2625, 15931, 198, 198, 1212, 1430, 2753, 257, 797, 74, 273, 24954, 3524, 23735, ...
2.289758
1,943
import numpy as np
[ 11748, 299, 32152, 355, 45941, 628 ]
3.333333
6
# -*- coding: utf-8 -*- """ FileUploads database models -------------------- """ import logging import uuid import os import shutil from flask import current_app from PIL import Image from app.extensions import db, HoustonModel log = logging.getLogger(__name__) class FileUpload(db.Model, HoustonModel): """ ...
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 37811, 198, 8979, 41592, 82, 6831, 4981, 198, 19351, 198, 37811, 198, 11748, 18931, 198, 11748, 334, 27112, 198, 11748, 28686, 198, 11748, 4423, 346, 198, 198, 6738, 42903...
2.825974
385
import re from string import punctuation from common import common_util """ 去除中英文标点符号 """ text = "he is good, Hello, world! 这里,苹果:我;第!一个程序\?()()<>《》【】 "+"\sA-Za-z~()()【】%*#+-\.\\\/:=:__,,。、;;“”""''’‘??!!<《》>^&{}|=……" punc2=r"""~`!#$%^&*()_+-=|\'\\;":/.,?><~·!@#¥%……&*()——+-=“:’;、。,?》《{}!"#$%&'()*+,-./:;<=>?@[\]^_`{|}~“”...
[ 11748, 302, 198, 6738, 4731, 1330, 21025, 2288, 198, 6738, 2219, 1330, 2219, 62, 22602, 198, 37811, 198, 43889, 119, 165, 247, 97, 40792, 164, 233, 109, 23877, 229, 43718, 229, 163, 224, 117, 163, 105, 99, 20998, 115, 198, 37811, 198,...
1.483115
1,451
# -*- coding: utf-8 -*- from django.shortcuts import render from django.http import HttpResponse, JsonResponse from django.contrib.auth.decorators import login_required from django.views.decorators.http import require_GET from hostlist.models import DzhUser, DataCenter, HostList import logging log = logging.getLogger...
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 6738, 42625, 14208, 13, 19509, 23779, 1330, 8543, 198, 6738, 42625, 14208, 13, 4023, 1330, 367, 29281, 31077, 11, 449, 1559, 31077, 198, 6738, 42625, 14208, 13, 3642, 822,...
2.075413
968
from django.conf import settings from django.contrib import auth, messages from django.contrib.auth import views as django_views from django.contrib.auth.decorators import login_required from django.contrib.auth.tokens import default_token_generator from django.http import Http404, HttpResponseRedirect from django.shor...
[ 6738, 42625, 14208, 13, 10414, 1330, 6460, 198, 6738, 42625, 14208, 13, 3642, 822, 1330, 6284, 11, 6218, 198, 6738, 42625, 14208, 13, 3642, 822, 13, 18439, 1330, 5009, 355, 42625, 14208, 62, 33571, 198, 6738, 42625, 14208, 13, 3642, 822...
3.219144
397
# Obtain the size of the array sD = np.shape(data) # Obtain the dimensions Dim = sD[0:-1] # Obtain the number of dimensions D = len(Dim) # Obtain the number of subjects nsubj = sD[-1] # Get the mean and stanard deviation along the number of subjects xbar = data.mean(D) # Rem...
[ 220, 1303, 1835, 3153, 262, 2546, 286, 262, 7177, 201, 198, 220, 264, 35, 796, 45941, 13, 43358, 7, 7890, 8, 201, 198, 220, 220, 201, 198, 220, 1303, 1835, 3153, 262, 15225, 201, 198, 220, 14048, 796, 264, 35, 58, 15, 21912, 16, ...
2.476923
260
# This file is part of the Reference Data Repository (refdata). # # Copyright (C) 2021 New York University. # # refdata is free software; you can redistribute it and/or modify it under the # terms of the MIT License; see LICENSE file for more details. """Custom error classes raised by different components of the packa...
[ 2, 770, 2393, 318, 636, 286, 262, 20984, 6060, 1432, 13264, 357, 5420, 7890, 737, 198, 2, 198, 2, 15069, 357, 34, 8, 33448, 968, 1971, 2059, 13, 198, 2, 198, 2, 1006, 7890, 318, 1479, 3788, 26, 345, 460, 17678, 4163, 340, 290, 1...
2.858476
643
# -*- coding: utf-8 -*- # # Copyright (C) 2016 Hewlett Packard Enterprise Development LP # # 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 # # U...
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 2, 198, 2, 15069, 357, 34, 8, 1584, 30446, 15503, 6400, 446, 14973, 7712, 18470, 198, 2, 198, 2, 49962, 739, 262, 24843, 13789, 11, 10628, 362, 13, 15, 357, 1169, 36...
3.552901
293
import os from jrdb.models import Race from jrdb.templates import BAC from jrdb.tests.base import JRDBTestCase, SAMPLES_DIR
[ 11748, 28686, 198, 198, 6738, 474, 4372, 65, 13, 27530, 1330, 12588, 198, 6738, 474, 4372, 65, 13, 11498, 17041, 1330, 347, 2246, 198, 6738, 474, 4372, 65, 13, 41989, 13, 8692, 1330, 32598, 11012, 14402, 20448, 11, 28844, 6489, 1546, ...
2.863636
44
import sys print('Python version') print(sys.version)
[ 11748, 25064, 198, 4798, 10786, 37906, 2196, 11537, 198, 4798, 7, 17597, 13, 9641, 8 ]
3.533333
15
#!/usr/bin/env python # -*- coding: utf-8 -*- # # Copyright (c) 2021 Intel Corporation # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unl...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 198, 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 2, 198, 2, 15069, 357, 66, 8, 33448, 8180, 10501, 198, 2, 198, 2, 49962, 739, 262, 24843, 13789, 11, 10628, 362, 13...
3.58371
221
# Copyright 2017 CodiLime # # 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, softwar...
[ 2, 15069, 2177, 18720, 72, 43, 524, 198, 2, 198, 2, 49962, 739, 262, 24843, 13789, 11, 10628, 362, 13, 15, 357, 1169, 366, 34156, 15341, 198, 2, 345, 743, 407, 779, 428, 2393, 2845, 287, 11846, 351, 262, 13789, 13, 198, 2, 921, ...
3.497549
408
import os import csv csvpath = os.path.join(".", "Resources", "election_data.csv") output = os.path.join('.', 'analysis', 'election_results.txt') candidate =[] candidate_list = [] votecount = {} winning_candidate = "" winning_count = 0 # def print_poll_results(candidate_name): # The total number of votes cast # A c...
[ 11748, 28686, 198, 11748, 269, 21370, 198, 40664, 6978, 796, 28686, 13, 6978, 13, 22179, 7203, 33283, 366, 33236, 1600, 366, 14300, 62, 7890, 13, 40664, 4943, 198, 22915, 796, 28686, 13, 6978, 13, 22179, 10786, 2637, 11, 705, 20930, 325...
2.301829
984
from datetime import datetime, timedelta class CalWeek: """ Class providing arithmetic operations for year-week date format """ if __name__ == '__main__': yw = CalWeek('2019-01') print(yw) print(str(yw)) print(yw + 200) print(200 + yw) print(yw + (-100)) print(yw - 100) p...
[ 6738, 4818, 8079, 1330, 4818, 8079, 11, 28805, 12514, 628, 198, 4871, 2199, 20916, 25, 198, 220, 220, 220, 37227, 198, 220, 220, 220, 5016, 4955, 34768, 4560, 329, 614, 12, 10464, 3128, 5794, 198, 220, 220, 220, 37227, 628, 198, 361, ...
2.364865
148