content
stringlengths
1
1.05M
input_ids
listlengths
1
883k
ratio_char_token
float64
1
22.9
token_count
int64
1
883k
""" This is an extract config intended for S3 object manifests produced by TBD. To use it, you must import it in another extract config and override at least the `source_data_url`. You may also append additional operations to the `operations` list as well. For example you could have the following in your extract conf...
[ 37811, 198, 1212, 318, 281, 7925, 4566, 5292, 329, 311, 18, 2134, 42190, 4635, 416, 34343, 13, 198, 198, 2514, 779, 340, 11, 345, 1276, 1330, 340, 287, 1194, 7925, 4566, 290, 20957, 379, 1551, 198, 1169, 4600, 10459, 62, 7890, 62, 6...
2.137636
2,107
import bpy from bpy.app.handlers import persistent bl_info = { "name": "Playback Once", "author": "Adhi Hargo", "version": (1, 0, 0), "blender": (2, 67, 3), "location": "", "description": "Playback once.", "warning": "", "wiki_url": "", "tracker_url": "", "category": "Animation"...
[ 11748, 275, 9078, 198, 6738, 275, 9078, 13, 1324, 13, 4993, 8116, 1330, 16218, 198, 198, 2436, 62, 10951, 796, 1391, 198, 220, 220, 220, 366, 3672, 1298, 366, 11002, 1891, 4874, 1600, 198, 220, 220, 220, 366, 9800, 1298, 366, 2782, ...
2.291925
161
""" To master this you should consider using the builtin-``min``-function. """ from ...challenge import Challenge from random import randint x = [] for _ in range(randint(2, 10)): x.append(randint(1, 100)) intro = f"You have to print the lowest value of {', '.join(str(_) for _ in x[:-1])} and {x[-1]}. (values: x...
[ 37811, 198, 2514, 4958, 428, 345, 815, 2074, 1262, 262, 3170, 259, 12, 15506, 1084, 15506, 12, 8818, 13, 198, 37811, 198, 6738, 2644, 36747, 3540, 1330, 13879, 198, 6738, 4738, 1330, 43720, 600, 628, 198, 87, 796, 17635, 198, 1640, 48...
2.657303
178
# pylint:disable=unused-variable # pylint:disable=unused-argument # pylint:disable=redefined-outer-name from typing import AsyncIterator import pytest from aioresponses import aioresponses from faker import Faker from hypothesis import HealthCheck, given, settings from hypothesis import strategies as st from models_...
[ 2, 279, 2645, 600, 25, 40223, 28, 403, 1484, 12, 45286, 198, 2, 279, 2645, 600, 25, 40223, 28, 403, 1484, 12, 49140, 198, 2, 279, 2645, 600, 25, 40223, 28, 445, 18156, 12, 39605, 12, 3672, 628, 198, 6738, 19720, 1330, 1081, 13361,...
3.490566
212
''' converts video to frames and saves images by different interval, or overlap, etc ''' import folium from folium import plugins from folium.plugins import HeatMap import csv # class plitterMap(): # def __int__(self, file_path): # self.data = file_path # df = [] # with open(self.data) as f...
[ 7061, 6, 198, 1102, 24040, 2008, 284, 13431, 290, 16031, 4263, 416, 1180, 16654, 11, 393, 21721, 11, 3503, 198, 7061, 6, 198, 11748, 5955, 1505, 198, 6738, 5955, 1505, 1330, 20652, 198, 6738, 5955, 1505, 13, 37390, 1330, 12308, 13912, ...
1.929461
482
import numpy as np
[ 11748, 299, 32152, 355, 45941, 198, 220, 220, 220, 220, 220, 220, 220, 220, 198 ]
1.866667
15
# Copyright (c) 2016 Ansible, Inc. # All Rights Reserved. from collections import OrderedDict # Django from django.core.exceptions import PermissionDenied from django.db.models.fields import PositiveIntegerField, BooleanField from django.db.models.fields.related import ForeignKey from django.http import Http404 from ...
[ 2, 15069, 357, 66, 8, 1584, 28038, 856, 11, 3457, 13, 198, 2, 1439, 6923, 33876, 13, 198, 198, 6738, 17268, 1330, 14230, 1068, 35, 713, 198, 198, 2, 37770, 198, 6738, 42625, 14208, 13, 7295, 13, 1069, 11755, 1330, 2448, 3411, 21306,...
3.823045
243
import json from washer.worker.actions import AppendStdout, AppendStderr from washer.worker.actions import CreateNamedLog, AppendToLog from washer.worker.actions import SetProperty from washer.worker.commands import washertask
[ 11748, 33918, 198, 198, 6738, 373, 372, 13, 28816, 13, 4658, 1330, 2034, 437, 1273, 67, 448, 11, 2034, 437, 1273, 1082, 81, 198, 6738, 373, 372, 13, 28816, 13, 4658, 1330, 13610, 45, 2434, 11187, 11, 2034, 437, 2514, 11187, 198, 673...
3.447761
67
import json import os # get site profile # get all site profile #sites_folder = "sites" #print getAllSiteProfiles(sites_folder)
[ 11748, 33918, 198, 11748, 28686, 198, 198, 2, 651, 2524, 7034, 198, 198, 2, 651, 477, 2524, 7034, 198, 220, 220, 220, 220, 220, 220, 220, 220, 198, 2, 49315, 62, 43551, 796, 366, 49315, 1, 198, 2, 4798, 651, 3237, 29123, 15404, 29...
2.78
50
import os, sys from env.LaneChangeEnv import LaneChangeEnv import random import numpy as np if 'SUMO_HOME' in os.environ: tools = os.path.join(os.environ['SUMO_HOME'], 'tools') sys.path.append(tools) print('success') else: sys.exit("please declare environment variable 'SUMO_HOME'") import traci NUM...
[ 11748, 28686, 11, 25064, 198, 6738, 17365, 13, 43, 1531, 19400, 4834, 85, 1330, 15016, 19400, 4834, 85, 198, 11748, 4738, 198, 11748, 299, 32152, 355, 45941, 198, 361, 705, 50, 5883, 46, 62, 39069, 6, 287, 28686, 13, 268, 2268, 25, ...
2.213012
953
import numpy as np import pickle from collections import defaultdict from parsing import parser from analysis import training if __name__ == '__main__': main()
[ 11748, 299, 32152, 355, 45941, 198, 11748, 2298, 293, 198, 6738, 17268, 1330, 4277, 11600, 198, 198, 6738, 32096, 1330, 30751, 198, 6738, 3781, 1330, 3047, 628, 198, 361, 11593, 3672, 834, 6624, 705, 834, 12417, 834, 10354, 198, 220, 22...
3.711111
45
# # Copyright (c) Contributors to the Open 3D Engine Project. # For complete copyright and license terms please see the LICENSE at the root of this distribution. # # SPDX-License-Identifier: Apache-2.0 OR MIT # # import abc import importlib import os import pkgutil import re import time from typing import Dict, List, ...
[ 2, 198, 2, 15069, 357, 66, 8, 25767, 669, 284, 262, 4946, 513, 35, 7117, 4935, 13, 198, 2, 1114, 1844, 6634, 290, 5964, 2846, 3387, 766, 262, 38559, 24290, 379, 262, 6808, 286, 428, 6082, 13, 198, 2, 198, 2, 30628, 55, 12, 34156...
2.360197
1,824
#!/usr/bin/env python # -*- coding: utf-8 -*- from __future__ import absolute_import from __future__ import division from __future__ import print_function from __future__ import unicode_literals range = getattr(__builtins__, 'xrange', range) # end of py2 compatability boilerplate import numpy as np from matrixprofil...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 198, 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 6738, 11593, 37443, 834, 1330, 4112, 62, 11748, 198, 6738, 11593, 37443, 834, 1330, 7297, 198, 6738, 11593, 37443, 834, ...
2.516854
1,335
import json import re from copy import copy from logging import Formatter from .profile import used_memory from ..helper import colored
[ 11748, 33918, 198, 11748, 302, 198, 6738, 4866, 1330, 4866, 198, 6738, 18931, 1330, 5178, 1436, 198, 198, 6738, 764, 13317, 1330, 973, 62, 31673, 198, 6738, 11485, 2978, 525, 1330, 16396, 628, 628, 198 ]
4.028571
35
import sys sys.setrecursionlimit(10000000) input=lambda : sys.stdin.readline().rstrip() n,x=map(int,input().split()) a=list(map(int,input().split())) aa=list(filter(lambda b:b!=x,a)) print(*aa)
[ 11748, 25064, 198, 17597, 13, 2617, 8344, 24197, 32374, 7, 16, 24598, 8, 198, 15414, 28, 50033, 1058, 25064, 13, 19282, 259, 13, 961, 1370, 22446, 81, 36311, 3419, 198, 198, 77, 11, 87, 28, 8899, 7, 600, 11, 15414, 22446, 35312, 289...
2.455696
79
"""Streaming integration tests.""" # pylint:disable=no-self-use,invalid-name,too-many-arguments,too-few-public-methods,line-too-long # pylint:disable=too-many-statements,too-many-locals,too-many-lines import threading import time import json from queue import Queue from splitio.client.factory import get_factory from te...
[ 37811, 12124, 278, 11812, 5254, 526, 15931, 198, 2, 279, 2645, 600, 25, 40223, 28, 3919, 12, 944, 12, 1904, 11, 259, 12102, 12, 3672, 11, 18820, 12, 21834, 12, 853, 2886, 11, 18820, 12, 32146, 12, 11377, 12, 24396, 82, 11, 1370, 1...
1.800431
3,247
import re from abc import ABC, abstractmethod from typing import Any, Dict, Generator # class AbstractVenue(metaclass=ABC):
[ 11748, 302, 198, 6738, 450, 66, 1330, 9738, 11, 12531, 24396, 198, 6738, 19720, 1330, 4377, 11, 360, 713, 11, 35986, 628, 198, 198, 2, 1398, 27741, 37522, 518, 7, 4164, 330, 31172, 28, 24694, 2599, 198 ]
3.432432
37
# Copyright 2018 Johns Hopkins University. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by appli...
[ 2, 15069, 2864, 25824, 21183, 2059, 13, 1439, 6923, 33876, 13, 198, 2, 198, 2, 49962, 739, 262, 24843, 13789, 11, 10628, 362, 13, 15, 357, 1169, 366, 34156, 15341, 198, 2, 345, 743, 407, 779, 428, 2393, 2845, 287, 11846, 351, 262, ...
3.631455
426
from py65.devices import mpu6502 from py65.utils.devices import make_instruction_decorator
[ 6738, 12972, 2996, 13, 42034, 1330, 285, 19944, 17544, 17, 220, 198, 6738, 12972, 2996, 13, 26791, 13, 42034, 1330, 787, 62, 8625, 2762, 62, 12501, 273, 1352, 628 ]
3.206897
29
import pandas as pd import shutil import os import io from ms_mint.Mint import Mint from pathlib import Path as P from ms_mint.io import ( ms_file_to_df, mzml_to_pandas_df_pyteomics, convert_ms_file_to_feather, convert_ms_file_to_parquet, MZMLB_AVAILABLE, ) from paths import ( TEST_MZML, ...
[ 11748, 19798, 292, 355, 279, 67, 198, 11748, 4423, 346, 198, 11748, 28686, 198, 11748, 33245, 198, 198, 6738, 13845, 62, 34289, 13, 44, 600, 1330, 20873, 198, 198, 6738, 3108, 8019, 1330, 10644, 355, 350, 198, 198, 6738, 13845, 62, 34...
2.043478
207
from django.core.files.storage import FileSystemStorage from django.shortcuts import render, redirect from core.forms import DocumentForm from core.models import Document from media import image_cv2
[ 6738, 42625, 14208, 13, 7295, 13, 16624, 13, 35350, 1330, 9220, 11964, 31425, 198, 6738, 42625, 14208, 13, 19509, 23779, 1330, 8543, 11, 18941, 198, 6738, 4755, 13, 23914, 1330, 16854, 8479, 198, 198, 6738, 4755, 13, 27530, 1330, 16854, ...
4.06
50
from .helper import *
[ 6738, 764, 2978, 525, 1330, 1635, 628 ]
3.285714
7
import dask import datetime import logging import time import torch import numpy as np import pandas as pd from collections import OrderedDict from ml4chem.metrics import compute_rmse from ml4chem.atomistic.models.base import DeepLearningModel, DeepLearningTrainer from ml4chem.atomistic.models.loss import AtomicMSELos...
[ 11748, 288, 2093, 198, 11748, 4818, 8079, 198, 11748, 18931, 198, 11748, 640, 198, 11748, 28034, 198, 198, 11748, 299, 32152, 355, 45941, 198, 11748, 19798, 292, 355, 279, 67, 198, 6738, 17268, 1330, 14230, 1068, 35, 713, 198, 6738, 259...
3.378378
185
#!/usr/bin/env python3 # # MIT License # # Copyright (c) 2020-2022 EntySec # # 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...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 18, 198, 198, 2, 198, 2, 17168, 13789, 198, 2, 198, 2, 15069, 357, 66, 8, 12131, 12, 1238, 1828, 7232, 88, 6558, 198, 2, 198, 2, 2448, 3411, 318, 29376, 7520, 11, 1479, 286, 3877, 11,...
3.670455
352
from bluesky.plans import scan from bluesky.simulators import (print_summary, print_summary_wrapper, summarize_plan, check_limits, plot_raster_path) import pytest from bluesky.plans import grid_scan
[ 6738, 25570, 2584, 13, 489, 504, 1330, 9367, 198, 6738, 25570, 2584, 13, 14323, 24325, 1330, 357, 4798, 62, 49736, 11, 3601, 62, 49736, 62, 48553, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, ...
1.923077
156
import random numbers_list = [1,2,3,4,5,6,7,8,9,10] game_won = False game_completed = False #Stats games_played = 0 games_won = 0 games_lost = 0 average_score = 0 total_score = 0 keep_playing = True while keep_playing: numbers_list = [1,2,3,4,5,6,7,8,9,10] welcome() roll_total = 0 while roll_total < 55...
[ 11748, 4738, 198, 77, 17024, 62, 4868, 796, 685, 16, 11, 17, 11, 18, 11, 19, 11, 20, 11, 21, 11, 22, 11, 23, 11, 24, 11, 940, 60, 198, 6057, 62, 26502, 796, 10352, 198, 6057, 62, 785, 16838, 796, 10352, 198, 2, 29668, 198, 1...
2.243243
629
import warnings import pytest from leapp.libraries.actor.systemfacts import get_selinux_status from leapp.models import SELinuxFacts no_selinux = False try: import selinux except ImportError: no_selinux = True warnings.warn( 'Tests which uses `selinux` will be skipped' ' due to library un...
[ 11748, 14601, 198, 198, 11748, 12972, 9288, 198, 198, 6738, 443, 1324, 13, 75, 11127, 13, 11218, 13, 10057, 37473, 1330, 651, 62, 741, 259, 2821, 62, 13376, 198, 6738, 443, 1324, 13, 27530, 1330, 311, 3698, 259, 2821, 37, 8656, 198, ...
2.845238
168
""" 1. Write a Python program to reverse only the vowels of a given string. Sample Output: w3resuorce Python Perl ASU 2. Write a Python program to check whether a given integer is a palindrome or not. Note: An integer is a palindrome when it reads the same backward as forward. Negative numbers are not palindromic. Sa...
[ 37811, 198, 198, 16, 13, 19430, 257, 11361, 1430, 284, 9575, 691, 262, 23268, 1424, 286, 257, 1813, 4731, 13, 198, 36674, 25235, 25, 198, 86, 18, 411, 84, 8387, 198, 37906, 198, 5990, 75, 198, 1921, 52, 198, 198, 17, 13, 19430, 25...
3.297092
791
# -*- coding: utf-8 -*- """ Microsoft-Windows-IPxlatCfg GUID : 3e5ac668-af52-4c15-b99b-a3e7a6616ebd """ from construct import Int8sl, Int8ul, Int16ul, Int16sl, Int32sl, Int32ul, Int64sl, Int64ul, Bytes, Double, Float32l, Struct from etl.utils import WString, CString, SystemTime, Guid from etl.dtyp import Sid from etl.p...
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 37811, 198, 15905, 12, 11209, 12, 4061, 87, 15460, 34, 40616, 198, 38, 27586, 1058, 513, 68, 20, 330, 35809, 12, 1878, 4309, 12, 19, 66, 1314, 12, 65, 2079, 65, 12, ...
2.394904
157
# -*- coding: utf-8 -*- import os from distutils.util import strtobool
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 198, 11748, 28686, 198, 6738, 1233, 26791, 13, 22602, 1330, 965, 83, 672, 970, 628 ]
2.517241
29
# CHECK-TREE: { const <- \x -> \y -> x; y <- const #true #true; z <- const #false #false; #record { const: const, y : y, z: z, }} const = lambda x, y: x y = const(True, True) z = const(False, False)
[ 2, 5870, 25171, 12, 51, 11587, 25, 1391, 1500, 24293, 3467, 87, 4613, 3467, 88, 4613, 2124, 26, 331, 24293, 1500, 1303, 7942, 1303, 7942, 26, 1976, 24293, 1500, 1303, 9562, 1303, 9562, 26, 1303, 22105, 1391, 1500, 25, 1500, 11, 331, ...
2.551282
78
import tensorflow as tf import os.path import warnings from distutils.version import LooseVersion import glob import helper import project_tests as tests #-------------------------- # USER-SPECIFIED DATA #-------------------------- # Tune these parameters NUMBER_OF_CLASSES = 2 IMAGE_SHAPE = (160, 576) EPOCHS = 20 ...
[ 11748, 11192, 273, 11125, 355, 48700, 198, 11748, 28686, 13, 6978, 198, 11748, 14601, 198, 6738, 1233, 26791, 13, 9641, 1330, 6706, 577, 14815, 198, 11748, 15095, 198, 198, 11748, 31904, 198, 11748, 1628, 62, 41989, 355, 5254, 198, 198, ...
2.741205
3,354
# Copyright 2018 The Forseti Security Authors. All rights reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by ap...
[ 2, 15069, 2864, 383, 27325, 316, 72, 4765, 46665, 13, 1439, 2489, 10395, 13, 198, 2, 198, 2, 49962, 739, 262, 24843, 13789, 11, 10628, 362, 13, 15, 357, 1169, 366, 34156, 15341, 198, 2, 345, 743, 407, 779, 428, 2393, 2845, 287, 11...
3.385787
394
import uuid from config import USR_ORG_MONGO_COLLECTION, USR_MONGO_COLLECTION import db from models.response import post_error import logging log = logging.getLogger('file')
[ 11748, 334, 27112, 198, 6738, 4566, 1330, 1294, 49, 62, 1581, 38, 62, 27857, 11230, 62, 25154, 16779, 2849, 11, 1294, 49, 62, 27857, 11230, 62, 25154, 16779, 2849, 198, 11748, 20613, 220, 198, 6738, 4981, 13, 26209, 1330, 1281, 62, 18...
3.034483
58
# Adapted from https://github.com/pybind/cmake_example/blob/master/setup.py import os import re import sys import platform import subprocess import importlib from sysconfig import get_paths import importlib from setuptools import setup, Extension from setuptools.command.build_ext import build_ext from setuptools.comma...
[ 2, 30019, 276, 422, 3740, 1378, 12567, 13, 785, 14, 9078, 21653, 14, 11215, 539, 62, 20688, 14, 2436, 672, 14, 9866, 14, 40406, 13, 9078, 198, 11748, 28686, 198, 11748, 302, 198, 11748, 25064, 198, 11748, 3859, 198, 11748, 850, 14681,...
2.769231
572
# validated: 2017-02-19 DS c5e3a8a9b642 roborio/java/navx_frc/src/com/kauailabs/navx/frc/RegisterIO.java #---------------------------------------------------------------------------- # Copyright (c) Kauai Labs 2015. All Rights Reserved. # # Created in support of Team 2465 (Kauaibots). Go Purple Wave! # # Open Source S...
[ 2, 31031, 25, 2177, 12, 2999, 12, 1129, 17400, 269, 20, 68, 18, 64, 23, 64, 24, 65, 41290, 686, 2865, 952, 14, 12355, 14, 28341, 87, 62, 69, 6015, 14, 10677, 14, 785, 14, 74, 559, 603, 8937, 14, 28341, 87, 14, 69, 6015, 14, ...
3.47807
228
#pylint: disable=invalid-name #pylint: disable=too-many-instance-attributes #pylint: disable=too-many-return-statements #pylint: disable=too-many-statements """ Class structure and methods for an oscilloscope channel. The idea is to collect all the relevant information from all the Rigol scope waveforms into a single ...
[ 2, 79, 2645, 600, 25, 15560, 28, 259, 12102, 12, 3672, 198, 2, 79, 2645, 600, 25, 15560, 28, 18820, 12, 21834, 12, 39098, 12, 1078, 7657, 198, 2, 79, 2645, 600, 25, 15560, 28, 18820, 12, 21834, 12, 7783, 12, 14269, 3196, 198, 2,...
2.572553
889
_base_ = '../faster_rcnn/faster_rcnn_x101_64x4d_fpn_1x_coco.py' model = dict( backbone=dict( num_stages=4, #frozen_stages=4 ), roi_head=dict( bbox_head=dict( num_classes=3 ) ) ) dataset_type = 'COCODataset' classes = ('luchs', 'rotfuchs', 'wolf') data = dict...
[ 62, 8692, 62, 796, 705, 40720, 69, 1603, 62, 6015, 20471, 14, 69, 1603, 62, 6015, 20471, 62, 87, 8784, 62, 2414, 87, 19, 67, 62, 69, 21999, 62, 16, 87, 62, 66, 25634, 13, 9078, 6, 628, 198, 19849, 796, 8633, 7, 198, 198, 1891,...
1.93578
763
from distutils.core import setup, Extension setup(name = 'qconf_py', version = '1.2.2', ext_modules = [Extension('qconf_py', ['lib/python_qconf.cc'], include_dirs=['/usr/local/include/qconf'], extra_objects=['/usr/local/qconf/lib/libqconf.a'] )])
[ 6738, 1233, 26791, 13, 7295, 1330, 9058, 11, 27995, 198, 40406, 7, 3672, 796, 705, 80, 10414, 62, 9078, 3256, 2196, 796, 705, 16, 13, 17, 13, 17, 3256, 1070, 62, 18170, 796, 685, 11627, 3004, 10786, 80, 10414, 62, 9078, 3256, 37250,...
2.40367
109
h = int(input()) i = 1 a = 1 b = 1 c = 1 while h >= a: a = 2 ** i i += 1 s = 0 t = True for j in range(1, i-1): c += 2 ** j print(c)
[ 71, 796, 493, 7, 15414, 28955, 198, 72, 796, 352, 198, 64, 796, 352, 198, 65, 796, 352, 198, 66, 796, 352, 198, 198, 4514, 289, 18189, 257, 25, 198, 220, 220, 220, 257, 796, 362, 12429, 1312, 198, 220, 220, 220, 1312, 15853, 352...
1.804878
82
# log_battery.py/Open GoPro, Version 2.0 (C) Copyright 2021 GoPro, Inc. (http://gopro.com/OpenGoPro). # This copyright was auto-generated on Wed, Sep 1, 2021 5:05:45 PM """Example to continuously read the battery (with no Wifi connection)""" import csv import time import logging import argparse import threading fro...
[ 2, 2604, 62, 65, 16296, 13, 9078, 14, 11505, 49789, 11, 10628, 362, 13, 15, 357, 34, 8, 15069, 33448, 49789, 11, 3457, 13, 357, 4023, 1378, 70, 404, 305, 13, 785, 14, 11505, 5247, 2964, 737, 198, 2, 770, 6634, 373, 8295, 12, 275...
2.362324
2,702
# These are not the droids you are looking for.
[ 2, 2312, 389, 407, 262, 3102, 2340, 345, 389, 2045, 329, 13 ]
3.916667
12
import os import sys import base64 from django.db.models import F, Q from xos.config import Config from observer.syncstep import SyncStep from core.models import Service from hpc.models import ServiceProvider, ContentProvider, CDNPrefix, OriginServer from util.logger import Logger, logging # hpclibrary will be in ste...
[ 11748, 28686, 198, 11748, 25064, 198, 11748, 2779, 2414, 198, 198, 6738, 42625, 14208, 13, 9945, 13, 27530, 1330, 376, 11, 1195, 198, 6738, 2124, 418, 13, 11250, 1330, 17056, 198, 6738, 22890, 13, 27261, 9662, 1330, 35908, 8600, 198, 67...
3.2
150
#!/usr/bin/env python3 from PIL import Image if __name__ == '__main__': main()
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 18, 198, 6738, 350, 4146, 1330, 7412, 628, 628, 198, 361, 11593, 3672, 834, 6624, 705, 834, 12417, 834, 10354, 198, 220, 220, 220, 1388, 3419, 198 ]
2.485714
35
"""Simple example to show how to use weave.inline on SWIG2 wrapped objects. SWIG2 refers to SWIG versions >= 1.3. To run this example you must build the trivial SWIG2 extension called swig2_ext. To do this you need to do something like this:: $ swig -c++ -python -I. -o swig2_ext_wrap.cxx swig2_ext.i $ g++ -Wall ...
[ 37811, 26437, 1672, 284, 905, 703, 284, 779, 37982, 13, 45145, 319, 12672, 3528, 17, 12908, 198, 48205, 13, 220, 12672, 3528, 17, 10229, 284, 12672, 3528, 6300, 18189, 352, 13, 18, 13, 198, 198, 2514, 1057, 428, 1672, 345, 1276, 1382,...
2.53125
608
from wolframclient.language.expression import WLSymbol from nnDiff import * if __name__ == "__main__": exp = sys.argv[1:] if exp == []: exp = ["Sin", "x"] res = map(str,simplify(exp)) print(' '.join(res), file=sys.stderr)
[ 6738, 17481, 859, 16366, 13, 16129, 13, 38011, 1330, 370, 6561, 88, 23650, 198, 6738, 299, 77, 28813, 1330, 1635, 628, 198, 198, 361, 11593, 3672, 834, 6624, 366, 834, 12417, 834, 1298, 198, 220, 220, 220, 220, 198, 220, 220, 220, 1...
2.213675
117
from setuptools import setup setup( name='firetv', version='1.0.7', description='Communicate with an Amazon Fire TV device via ADB over a network.', url='https://github.com/happyleavesaoc/python-firetv/', license='MIT', author='happyleaves', author_email='happyleaves.tfr@gmail.com', pac...
[ 6738, 900, 37623, 10141, 1330, 9058, 198, 198, 40406, 7, 198, 220, 220, 220, 1438, 11639, 6495, 14981, 3256, 198, 220, 220, 220, 2196, 11639, 16, 13, 15, 13, 22, 3256, 198, 220, 220, 220, 6764, 11639, 30813, 5344, 351, 281, 6186, 37...
2.358127
363
""" neo.io have been split in 2 level API: * neo.io: this API give neo object * neo.rawio: this API give raw data as they are in files. Developper are encourage to use neo.rawio. When this is done the neo.io is done automagically with this king of following code. Author: sgarcia """ from neo.io.basefromrawio i...
[ 37811, 198, 710, 78, 13, 952, 423, 587, 6626, 287, 362, 1241, 7824, 25, 198, 220, 1635, 19102, 13, 952, 25, 428, 7824, 1577, 19102, 2134, 198, 220, 1635, 19102, 13, 1831, 952, 25, 428, 7824, 1577, 8246, 1366, 355, 484, 389, 287, 3...
3.120968
124
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.db import migrations, models
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 6738, 11593, 37443, 834, 1330, 28000, 1098, 62, 17201, 874, 198, 198, 6738, 42625, 14208, 13, 9945, 1330, 15720, 602, 11, 4981, 628 ]
2.891892
37
from django import forms from django.utils.translation import gettext_lazy as _ COURSE_QUANTITY_CHOICES = [(i, str(i)) for i in range(1, 21)]
[ 6738, 42625, 14208, 1330, 5107, 198, 6738, 42625, 14208, 13, 26791, 13, 41519, 1330, 651, 5239, 62, 75, 12582, 355, 4808, 628, 198, 34, 11698, 5188, 62, 10917, 8643, 9050, 62, 44899, 34444, 796, 47527, 72, 11, 965, 7, 72, 4008, 329, ...
2.843137
51
"""Datasets of latent predictability tasks. """ from .pilgrimm import *
[ 37811, 27354, 292, 1039, 286, 41270, 4331, 1799, 8861, 13, 198, 37811, 198, 198, 6738, 764, 79, 346, 2164, 8608, 1330, 1635, 198 ]
3.173913
23
#!/usr/bin/env python # Copyright 2014 The Swarming Authors. All rights reserved. # Use of this source code is governed by the Apache v2.0 license that can be # found in the LICENSE file. import sys import unittest import test_env test_env.setup_test_env() from google.appengine.ext import ndb from components.datast...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 198, 2, 15069, 1946, 383, 2451, 18052, 46665, 13, 1439, 2489, 10395, 13, 198, 2, 5765, 286, 428, 2723, 2438, 318, 21825, 416, 262, 24843, 410, 17, 13, 15, 5964, 326, 460, 307, 198, 2, 1...
3.088608
158
# 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 # d...
[ 2, 220, 220, 220, 49962, 739, 262, 24843, 13789, 11, 10628, 362, 13, 15, 357, 1169, 366, 34156, 15341, 345, 743, 198, 2, 220, 220, 220, 407, 779, 428, 2393, 2845, 287, 11846, 351, 262, 13789, 13, 921, 743, 7330, 198, 2, 220, 220, ...
2.504492
1,447
import re import discord from redbot.core import commands
[ 11748, 302, 198, 198, 11748, 36446, 198, 6738, 2266, 13645, 13, 7295, 1330, 9729, 628 ]
4
15
# -*- coding: utf-8 -*- """ TencentBlueKing is pleased to support the open source community by making -(Bk-User) available. Copyright (C) 2017-2021 THL A29 Limited, a Tencent company. All rights reserved. Licensed under the MIT License (the "License"); you may not use this file except in compliance with the License. Yo...
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 37811, 198, 24893, 1087, 14573, 15708, 318, 10607, 284, 1104, 262, 1280, 2723, 2055, 416, 1642, 532, 7, 33, 74, 12, 12982, 8, 1695, 13, 198, 15269, 357, 34, 8, 2177, ...
3.982063
223
import os import numpy as np import tensorflow as tf from models_gqa.model import Model from models_gqa.config import build_cfg_from_argparse from util.gqa_train.data_reader import DataReader import json # Load config cfg = build_cfg_from_argparse() # Start session os.environ["CUDA_VISIBLE_DEVICES"] = str(cfg.GPU_ID...
[ 11748, 28686, 198, 11748, 299, 32152, 355, 45941, 198, 11748, 11192, 273, 11125, 355, 48700, 198, 198, 6738, 4981, 62, 70, 20402, 13, 19849, 1330, 9104, 198, 6738, 4981, 62, 70, 20402, 13, 11250, 1330, 1382, 62, 37581, 62, 6738, 62, 8...
2.219954
2,155
from gamla import url_utils
[ 6738, 9106, 5031, 1330, 19016, 62, 26791, 628, 198 ]
3.333333
9
import numpy as np from netCDF4 import Dataset # Import development version of roppy import sys sys.path = ['..'] + sys.path import roppy # --- EDIT ----------------- # ROMS file romsfile = 'data/ocean_avg_example.nc' # Section definition lon0, lat0 = -0.67, 60.75 # Shetland lon1, lat1 = 4.72, 60.75 # Feie # --...
[ 11748, 299, 32152, 355, 45941, 198, 6738, 2010, 34, 8068, 19, 1330, 16092, 292, 316, 198, 198, 2, 17267, 2478, 2196, 286, 686, 14097, 198, 11748, 25064, 198, 17597, 13, 6978, 796, 37250, 492, 20520, 1343, 25064, 13, 6978, 198, 11748, ...
2.55
420
#!/usr/bin/env python3 """ example of 3D scalar field If you get this error, ParaView doesn't know your data file format: TypeError: TestFileReadability argument %Id: %V """ from pathlib import Path import argparse import paraview.simple as pvs p = argparse.ArgumentParser() p.add_argument("fn", help="data file to l...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 18, 198, 37811, 198, 20688, 286, 513, 35, 16578, 283, 2214, 198, 198, 1532, 345, 651, 428, 4049, 11, 2547, 64, 7680, 1595, 470, 760, 534, 1366, 2393, 5794, 25, 198, 6030, 12331, 25, 6208,...
2.852941
170
from django import forms from ...models import Language
[ 6738, 42625, 14208, 1330, 5107, 198, 198, 6738, 2644, 27530, 1330, 15417, 628 ]
4.461538
13
from django import forms from .models import * from server.models import *
[ 6738, 42625, 14208, 1330, 5107, 198, 198, 6738, 764, 27530, 1330, 1635, 198, 6738, 4382, 13, 27530, 1330, 1635, 198 ]
3.8
20
# # PySNMP MIB module InternetThruway-MIB (http://snmplabs.com/pysmi) # ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/InternetThruway-MIB # Produced by pysmi-0.3.4 at Wed May 1 13:58:27 2019 # On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4 # Using Python version 3.7.3 (default...
[ 2, 198, 2, 9485, 15571, 7378, 337, 9865, 8265, 4455, 817, 622, 1014, 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,...
2.946724
52,913
from bs4 import BeautifulSoup as bs import requests parsed = BBC("https://www.bbc.co.uk/news/world-europe-49345912") #print(parsed.title) #print(parsed.link) #print(parsed.author) #print(parsed.date) #print(parsed.title) #print(parsed.body) #print(parsed.images) #print(parsed.body)
[ 6738, 275, 82, 19, 1330, 23762, 50, 10486, 355, 275, 82, 198, 11748, 7007, 220, 198, 197, 197, 198, 79, 945, 276, 796, 7823, 7203, 5450, 1378, 2503, 13, 11848, 66, 13, 1073, 13, 2724, 14, 10827, 14, 6894, 12, 44252, 431, 12, 2920,...
2.186567
134
# In[42]: from scipy.integrate import odeint import numpy as np import matplotlib.pyplot as plt # In[43]: # describe the model # In[44]: # describe the parameters N = 2283 #Totala befolkningen N=s(t)+I(t)+R(t) D = 4.0 #infections last four days gamma = 1.0 / D #Reoval rate (Hur mnga som tillfrisknar) delta =...
[ 2, 554, 58, 3682, 5974, 628, 198, 6738, 629, 541, 88, 13, 18908, 4873, 1330, 267, 2934, 600, 198, 11748, 299, 32152, 355, 45941, 198, 11748, 2603, 29487, 8019, 13, 9078, 29487, 355, 458, 83, 628, 198, 2, 554, 58, 3559, 5974, 628, ...
2.351598
438
pregunta = input('trabajas desde casa? ') if pregunta == True: print 'Eres afortunado' if pregunta == False: print 'Trabajas fuera de casa' tiempo = input('Cuantos minutos haces al trabajo: ') if tiempo == 0: print 'trabajas desde casa' elif tiempo <=20: print 'Es po...
[ 79, 2301, 44424, 796, 5128, 10786, 2213, 397, 1228, 292, 748, 2934, 6124, 64, 30, 705, 8, 201, 198, 201, 198, 361, 662, 70, 44424, 6624, 6407, 25, 201, 198, 220, 220, 220, 3601, 705, 36, 411, 6580, 1922, 4533, 6, 201, 198, 201, ...
1.957983
238
import logging import re from urllib.parse import urlparse from django.conf import settings from django.utils.cache import add_never_cache_headers from django.utils.cache import patch_cache_control from django.utils.cache import patch_response_headers logger = logging.getLogger(__name__) STAC_BASE = settings.STAC_BA...
[ 11748, 18931, 198, 11748, 302, 198, 6738, 2956, 297, 571, 13, 29572, 1330, 19016, 29572, 198, 198, 6738, 42625, 14208, 13, 10414, 1330, 6460, 198, 6738, 42625, 14208, 13, 26791, 13, 23870, 1330, 751, 62, 12081, 62, 23870, 62, 50145, 198...
3.068376
117
# author huangchuanhong import torch from mmcv.runner import load_checkpoint from ..base import BaseDetector from ..single_stage import SingleStageDetector from ...registry import DETECTORS from ...builder import build_detector
[ 2, 1772, 289, 84, 648, 354, 7258, 71, 506, 198, 11748, 28034, 198, 6738, 8085, 33967, 13, 16737, 1330, 3440, 62, 9122, 4122, 198, 6738, 11485, 8692, 1330, 7308, 11242, 9250, 198, 6738, 11485, 29762, 62, 14247, 1330, 14206, 29391, 11242,...
3.754098
61
import numpy as np from gym.spaces import Box from metaworld.envs import reward_utils from metaworld.envs.asset_path_utils import full_v2_path_for from metaworld.envs.mujoco.sawyer_xyz.sawyer_xyz_env import SawyerXYZEnv, _assert_task_is_set
[ 11748, 299, 32152, 355, 45941, 198, 6738, 11550, 13, 2777, 2114, 1330, 8315, 198, 198, 6738, 1138, 707, 1764, 13, 268, 14259, 1330, 6721, 62, 26791, 198, 6738, 1138, 707, 1764, 13, 268, 14259, 13, 562, 316, 62, 6978, 62, 26791, 1330, ...
2.641304
92
#!/usr/bin/env python import sys import logging import os logging.basicConfig(stream=sys.stderr) file_dir = os.path.dirname(os.path.realpath(__file__)) sys.path.insert(0, file_dir) from main import app as application from main import db
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 198, 11748, 25064, 198, 11748, 18931, 198, 11748, 28686, 198, 6404, 2667, 13, 35487, 16934, 7, 5532, 28, 17597, 13, 301, 1082, 81, 8, 198, 7753, 62, 15908, 796, 28686, 13, 6978, 13, 15908, ...
2.925926
81
from yezdi.lexer.token import TokenType from yezdi.parser.ast import Program, Statement, Participant, Title, LineStatement
[ 6738, 331, 8471, 10989, 13, 2588, 263, 13, 30001, 1330, 29130, 6030, 198, 6738, 331, 8471, 10989, 13, 48610, 13, 459, 1330, 6118, 11, 21983, 11, 29880, 11, 11851, 11, 6910, 48682, 628, 198 ]
3.676471
34
# list categories in category folder from os import walk from os.path import abspath,join, pardir categories_folder = abspath(join(__file__,pardir,pardir,"category")) post_folder = abspath(join(__file__,pardir,pardir,"_posts")) site_categories = [] for root,directories,files in walk(categories_folder): for f in ...
[ 2, 1351, 9376, 287, 6536, 9483, 198, 198, 6738, 28686, 1330, 2513, 198, 6738, 28686, 13, 6978, 1330, 2352, 6978, 11, 22179, 11, 41746, 343, 198, 198, 66, 26129, 62, 43551, 796, 2352, 6978, 7, 22179, 7, 834, 7753, 834, 11, 26037, 343...
2.083333
504
#!/usr/bin/env python3 """ builds documentation files from multimarkdown (mmd) source to various formats, including the web site and pdf. """ import subprocess import glob import os import sys import time import shutil src = [ "intro.mmd", "downloads.mmd", "quickstart.mmd", "faq.mmd", "dirstr...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 18, 198, 37811, 12188, 10314, 3696, 422, 43104, 668, 2902, 357, 3020, 67, 8, 2723, 198, 220, 220, 220, 284, 2972, 17519, 11, 1390, 262, 3992, 2524, 290, 37124, 13, 198, 37811, 198, 198, 1...
2.187397
2,428
VTABLE(_Main) { <empty> Main _Main.COPY; } VTABLE(_Base) { <empty> Base _Base.COPY; } VTABLE(_Sub1) { _Base Sub1 _Sub1.COPY; } VTABLE(_Sub2) { _Base Sub2 _Sub2.COPY; } VTABLE(_Sub3) { _Sub1 Sub3 _Sub3.COPY; } VTABLE(_Sub4) { _Sub3 Sub4 _Sub4.C...
[ 53, 38148, 28264, 13383, 8, 1391, 198, 220, 220, 220, 1279, 28920, 29, 198, 220, 220, 220, 8774, 198, 220, 220, 220, 4808, 13383, 13, 34, 3185, 56, 26, 198, 92, 198, 198, 53, 38148, 28264, 14881, 8, 1391, 198, 220, 220, 220, 1279,...
1.700524
2,865
# # Copyright 2019 The FATE Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by appli...
[ 2, 198, 2, 220, 15069, 13130, 383, 376, 6158, 46665, 13, 1439, 6923, 33876, 13, 198, 2, 198, 2, 220, 49962, 739, 262, 24843, 13789, 11, 10628, 362, 13, 15, 357, 1169, 366, 34156, 15341, 198, 2, 220, 345, 743, 407, 779, 428, 2393, ...
3.650888
169
""" sentry.options.defaults ~~~~~~~~~~~~~~~~~~~~~~~ :copyright: (c) 2010-2014 by the Sentry Team, see AUTHORS for more details. :license: BSD, see LICENSE for more details. """ from __future__ import absolute_import, print_function from sentry.logging import LoggingFormat from sentry.options import ( FLAG_IMMUTAB...
[ 37811, 198, 82, 13000, 13, 25811, 13, 12286, 82, 198, 27156, 8728, 4907, 93, 198, 198, 25, 22163, 4766, 25, 357, 66, 8, 3050, 12, 4967, 416, 262, 11352, 563, 4816, 11, 766, 37195, 20673, 329, 517, 3307, 13, 198, 25, 43085, 25, 347...
2.549258
1,482
"""Download `Unicodedata` files.""" from __future__ import unicode_literals import os import zipfile import codecs from urllib.request import urlopen __version__ = '2.2.0' HOME = os.path.dirname(os.path.abspath(__file__)) def zip_unicode(output, version): """Zip the Unicode files.""" zipper = zipfile.ZipFi...
[ 37811, 10002, 4600, 3118, 291, 9043, 1045, 63, 3696, 526, 15931, 198, 6738, 11593, 37443, 834, 1330, 28000, 1098, 62, 17201, 874, 198, 11748, 28686, 198, 11748, 19974, 7753, 198, 11748, 40481, 82, 198, 6738, 2956, 297, 571, 13, 25927, 1...
2.299722
2,162
# See LICENSE for licensing information. # # Copyright (c) 2021 Regents of the University of California and The Board # of Regents for the Oklahoma Agricultural and Mechanical College # (acting for and on behalf of Oklahoma State University) # All rights reserved. # import debug import datetime from policy import assoc...
[ 2, 4091, 38559, 24290, 329, 15665, 1321, 13, 198, 2, 198, 2, 15069, 357, 66, 8, 33448, 3310, 658, 286, 262, 2059, 286, 3442, 290, 383, 5926, 198, 2, 286, 3310, 658, 329, 262, 10433, 36694, 290, 19663, 5535, 198, 2, 357, 27362, 329...
4.305882
85
#!/usr/bin/env python # -*- coding: utf-8 -*- __author__ = 'Shilin He' import pandas as pd import os import numpy as np def hdfs_data_loader(para): """ load the log sequence matrix and labels from the file path. Args: -------- para: the parameters dictionary Returns: -------- raw_data: log sequences matrix...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 198, 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 834, 9800, 834, 796, 705, 2484, 346, 259, 679, 6, 198, 198, 11748, 19798, 292, 355, 279, 67, 198, 11748, 28686, 198, ...
2.70113
4,246
from __future__ import print_function import re, sys, glob, getopt, os if __name__ == '__main__': main()
[ 6738, 11593, 37443, 834, 1330, 3601, 62, 8818, 198, 11748, 302, 11, 25064, 11, 15095, 11, 651, 8738, 11, 28686, 198, 220, 220, 220, 220, 220, 220, 220, 220, 198, 361, 11593, 3672, 834, 6624, 705, 834, 12417, 834, 10354, 198, 220, 22...
2.510638
47
"""Tests of selected stdlib functions.""" from pytype.tests import test_base test_base.main(globals(), __name__ == "__main__")
[ 37811, 51, 3558, 286, 6163, 14367, 8019, 5499, 526, 15931, 198, 198, 6738, 12972, 4906, 13, 41989, 1330, 1332, 62, 8692, 628, 198, 198, 9288, 62, 8692, 13, 12417, 7, 4743, 672, 874, 22784, 11593, 3672, 834, 6624, 366, 834, 12417, 834,...
2.977273
44
# -*- coding: utf-8 -*- """ Created on Tue Oct 20 16:04:52 2020 @author: rjovelin """
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 37811, 198, 41972, 319, 30030, 2556, 1160, 1467, 25, 3023, 25, 4309, 12131, 198, 198, 31, 9800, 25, 374, 7639, 626, 259, 198, 37811, 628 ]
2.25641
39
import random from datetime import datetime from passlib.handlers.sha2_crypt import sha256_crypt from pymongo import MongoClient from pymongo.errors import ConnectionFailure from tarentsocialwall.SocialPost import SocialPost from tarentsocialwall.User import User from tarentsocialwall.Util import Util
[ 11748, 4738, 198, 6738, 4818, 8079, 1330, 4818, 8079, 198, 198, 6738, 1208, 8019, 13, 4993, 8116, 13, 26270, 17, 62, 29609, 1330, 427, 64, 11645, 62, 29609, 198, 6738, 279, 4948, 25162, 1330, 42591, 11792, 198, 6738, 279, 4948, 25162, ...
3.731707
82
#!/usr/bin/env python # # Copyright 2017-2018 Amazon.com, Inc. and its affiliates. All Rights Reserved. # # Licensed under the MIT License. See the LICENSE accompanying this file # for the specific language governing permissions and limitations under # the License. # # # Copy this script to /sbin/mount.efs and make sur...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 198, 2, 198, 2, 15069, 2177, 12, 7908, 6186, 13, 785, 11, 3457, 13, 290, 663, 29116, 13, 1439, 6923, 33876, 13, 198, 2, 198, 2, 49962, 739, 262, 17168, 13789, 13, 4091, 262, 38559, 2429...
2.442356
8,778
import discord from discord.ext import commands from discord.utils import get
[ 11748, 36446, 198, 6738, 36446, 13, 2302, 1330, 9729, 198, 6738, 36446, 13, 26791, 1330, 651 ]
4.8125
16
""" This script is where the preprocessed data is used to train the SVM model to perform the classification. I am using Stratified K-Fold Cross Validation to prevent bias and/or any imbalance that could affect the model's accuracy. REFERENCE: https://medium.com/@bedigunjit/simple-guide-to-text-classification-nlp-usin...
[ 37811, 198, 1212, 4226, 318, 810, 262, 662, 14681, 276, 1366, 318, 973, 284, 4512, 262, 311, 15996, 2746, 284, 198, 525, 687, 262, 17923, 13, 314, 716, 1262, 29186, 1431, 509, 12, 37, 727, 6372, 3254, 24765, 284, 220, 198, 3866, 115...
2.730769
962
from rsterm import EntryPoint from red_dwarf.project import provide_project_context, ProjectContext
[ 6738, 374, 1706, 76, 1330, 21617, 12727, 198, 6738, 2266, 62, 67, 5767, 69, 13, 16302, 1330, 2148, 62, 16302, 62, 22866, 11, 4935, 21947, 628, 198 ]
3.777778
27
#! /usr/bin/env python # Copyright Ivan Sovic, 2015. www.sovic.org # # Creates a pileup from a given SAM/BAM file, and calls consensus bases (or variants). import os import sys import operator import subprocess if __name__ == "__main__": # if (len(sys.argv) < 5): # sys.stderr.write('Usage:\n'); # ...
[ 2, 0, 1220, 14629, 14, 8800, 14, 24330, 21015, 198, 198, 2, 15069, 21798, 6917, 291, 11, 1853, 13, 7324, 13, 568, 25531, 13, 2398, 198, 2, 198, 2, 7921, 274, 257, 14540, 929, 422, 257, 1813, 28844, 14, 33, 2390, 2393, 11, 290, 3...
2.215584
770
# -*- coding: utf-8 -*- ############################################################################## # # OpenERP, Open Source Management Solution # Copyright (C) 2004-2010 Tiny SPRL (<http://tiny.be>). # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU...
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 29113, 29113, 7804, 4242, 2235, 198, 2, 198, 2, 220, 220, 220, 4946, 1137, 47, 11, 4946, 8090, 8549, 28186, 198, 2, 220, 220, 220, 15069, 357, 34, 8, 5472, 12, 10333...
3.518868
318
# -*- coding: utf-8 -*- # Copyright (c) 2015 David R. Andersen # # 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, m...
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 2, 15069, 357, 66, 8, 1853, 3271, 371, 13, 42356, 198, 2, 198, 2, 2448, 3411, 318, 29376, 7520, 11, 1479, 286, 3877, 11, 284, 597, 1048, 16727, 257, 4866, 198, 2, ...
3.708709
333
from rest_framework.response import Response from rest_framework.test import APIClient from game.models import GameDefinition, AppUser
[ 6738, 1334, 62, 30604, 13, 26209, 1330, 18261, 198, 6738, 1334, 62, 30604, 13, 9288, 1330, 3486, 2149, 75, 1153, 198, 198, 6738, 983, 13, 27530, 1330, 3776, 36621, 11, 2034, 12982, 628, 628, 628, 198 ]
3.944444
36
# 2. Repeat Strings # Write a Program That Reads a list of strings. Each string is repeated N times, where N is the length of the string. Print the concatenated string. strings = input().split() output_string = "" for string in strings: N = len(string) output_string += string * N print(output_string)
[ 2, 362, 13, 197, 40322, 4285, 654, 198, 2, 19430, 257, 6118, 1320, 4149, 82, 257, 1351, 286, 13042, 13, 5501, 4731, 318, 5100, 399, 1661, 11, 810, 399, 318, 262, 4129, 286, 262, 4731, 13, 12578, 262, 1673, 36686, 515, 4731, 13, 19...
3.315789
95
from cklib.args import get_arg_parser, ArgumentParser from cloudkeeper_plugin_cleanup_aws_loadbalancers import CleanupAWSLoadbalancersPlugin
[ 6738, 269, 74, 8019, 13, 22046, 1330, 651, 62, 853, 62, 48610, 11, 45751, 46677, 198, 6738, 6279, 13884, 62, 33803, 62, 27773, 929, 62, 8356, 62, 2220, 6893, 20811, 1330, 5985, 929, 12298, 8634, 1170, 6893, 20811, 37233, 628 ]
3.55
40
# -*- coding: utf-8 -*- # Generated by Django 1.11.11 on 2018-09-17 06:45 from __future__ import unicode_literals from django.db import migrations, models
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 2, 2980, 515, 416, 37770, 352, 13, 1157, 13, 1157, 319, 2864, 12, 2931, 12, 1558, 9130, 25, 2231, 198, 6738, 11593, 37443, 834, 1330, 28000, 1098, 62, 17201, 874, 198,...
2.754386
57
N, M, V = map(int, input().strip().split()) visited = [False] * (N + 1) graph = [[] for _ in range(N + 1)] for i in range(M): a, b = map(int, input().strip().split()) graph[a].append(b) graph[b].append(a) for i in range(1, N + 1): graph[i].sort() dfs(V) visited = [False] * (N + 1) print() bfs(V)
[ 628, 198, 198, 45, 11, 337, 11, 569, 796, 3975, 7, 600, 11, 5128, 22446, 36311, 22446, 35312, 28955, 198, 4703, 863, 796, 685, 25101, 60, 1635, 357, 45, 1343, 352, 8, 198, 198, 34960, 796, 16410, 60, 329, 4808, 287, 2837, 7, 45, ...
2.133333
150
from google.appengine.ext import webapp from google.appengine.ext.webapp.util import run_wsgi_app __author__ = "Artem Vovk, Roland Kluge, and Christian Kirschner" __copyright__ = "Copyright 2013-2015 UKP TU Darmstadt" __credits__ = ["Artem Vovk", "Roland Kluge", "Christian Kirschner"] __license__ = "ASL" application...
[ 6738, 23645, 13, 1324, 18392, 13, 2302, 1330, 3992, 1324, 198, 6738, 23645, 13, 1324, 18392, 13, 2302, 13, 12384, 1324, 13, 22602, 1330, 1057, 62, 18504, 12397, 62, 1324, 198, 198, 834, 9800, 834, 796, 366, 8001, 368, 569, 709, 74, ...
2.677019
161
""" Augmenters that apply mirroring/flipping operations to images. Do not import directly from this file, as the categorization is not final. Use instead :: from imgaug import augmenters as iaa and then e.g. :: seq = iaa.Sequential([ iaa.Fliplr((0.0, 1.0)), iaa.Flipud((0.0, 1.0)) ]) Lis...
[ 37811, 198, 12512, 434, 364, 326, 4174, 10162, 278, 14, 2704, 4501, 4560, 284, 4263, 13, 198, 198, 5211, 407, 1330, 3264, 422, 428, 2393, 11, 355, 262, 17851, 1634, 318, 407, 2457, 13, 198, 11041, 2427, 7904, 628, 220, 220, 220, 422...
2.695
200
# Time Complexity - O(n) ; Space Complexity - O(n)
[ 2, 3862, 19157, 414, 532, 440, 7, 77, 8, 2162, 4687, 19157, 414, 532, 440, 7, 77, 8 ]
2.777778
18
import numpy as np import tensorflow as tf import matplotlib.pyplot as plt from gpflow.kernels import White, RBF from gpflow.likelihoods import Gaussian from deep_gp import DeepGP np.random.seed(0) tf.random.set_seed(0) if __name__ == '__main__': Xs, X_train, Y_train, Z = get_data() dgp = make_deep_GP(3, ...
[ 11748, 299, 32152, 355, 45941, 198, 11748, 11192, 273, 11125, 355, 48700, 198, 11748, 2603, 29487, 8019, 13, 9078, 29487, 355, 458, 83, 198, 6738, 27809, 11125, 13, 74, 44930, 1330, 2635, 11, 17986, 37, 198, 6738, 27809, 11125, 13, 2339...
2.25054
463
from __future__ import annotations import json import logging from contextlib import contextmanager, ExitStack from typing import List, Dict import pandas as pd from lithops.storage import Storage from lithops.storage.utils import CloudObject, StorageNoSuchKeyError from sm.engine.annotation_lithops.build_moldb impor...
[ 6738, 11593, 37443, 834, 1330, 37647, 198, 198, 11748, 33918, 198, 11748, 18931, 198, 6738, 4732, 8019, 1330, 4732, 37153, 11, 29739, 25896, 198, 6738, 19720, 1330, 7343, 11, 360, 713, 198, 198, 11748, 19798, 292, 355, 279, 67, 198, 673...
2.894081
321
from PyQt5.QtWidgets import QMenu from gui.main_window.node_editor.items.connector_item import ConnectorItem
[ 6738, 9485, 48, 83, 20, 13, 48, 83, 54, 312, 11407, 1330, 1195, 23381, 198, 198, 6738, 11774, 13, 12417, 62, 17497, 13, 17440, 62, 35352, 13, 23814, 13, 8443, 273, 62, 9186, 1330, 8113, 273, 7449, 628 ]
2.921053
38