content
stringlengths
1
1.05M
input_ids
listlengths
1
883k
ratio_char_token
float64
1
22.9
token_count
int64
1
883k
from decimal import ROUND_HALF_DOWN, ROUND_HALF_EVEN, ROUND_HALF_UP, Decimal from math import ceil, floor, log2 from typing import Union import torch from ppq.core import RoundingPolicy def ppq_numerical_round(value: float, policy: RoundingPolicy=RoundingPolicy.ROUND_HALF_EVEN) -> int: """ reference...
[ 6738, 32465, 1330, 371, 15919, 62, 39, 1847, 37, 62, 41925, 11, 371, 15919, 62, 39, 1847, 37, 62, 20114, 1677, 11, 371, 15919, 62, 39, 1847, 37, 62, 8577, 11, 4280, 4402, 198, 6738, 10688, 1330, 2906, 346, 11, 4314, 11, 2604, 17, ...
2.431384
1,676
#!/usr/bin/env python3 # # Licensed to the Apache Software Foundation (ASF) under one or more # contributor license agreements. See the NOTICE file distributed with # this work for additional information regarding copyright ownership. # The ASF licenses this file to You under the Apache License, Version 2.0 # (the "L...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 18, 198, 198, 2, 198, 2, 49962, 284, 262, 24843, 10442, 5693, 357, 1921, 37, 8, 739, 530, 393, 517, 198, 2, 18920, 5964, 11704, 13, 220, 4091, 262, 28536, 2393, 9387, 351, 198, 2, 428, ...
2.552526
1,247
from django.conf.urls import patterns, url from roomsensor import views urlpatterns = patterns('', url(r'^$', views.index, name='roomsensor'), # ex: /roomsensor/name/ url(r'^(?P<roomsensor_name>\w+)/$', views.display, name='roomsensor_display'), url(r'^(?P<roomsensor_name>\w+)/read/$', views.read, na...
[ 6738, 42625, 14208, 13, 10414, 13, 6371, 82, 1330, 7572, 11, 19016, 198, 198, 6738, 9519, 22854, 1330, 5009, 198, 198, 6371, 33279, 82, 796, 7572, 10786, 3256, 198, 220, 220, 220, 19016, 7, 81, 6, 61, 3, 3256, 5009, 13, 9630, 11, ...
2.483254
209
# main.py # # currently just an example script I use to test my optimization_results module # # WARNING: design point numbers 0-indexed in pandas database, but # eval_id column is the original 1-indexed value given by DAKOTA import optimization_results as optr if __name__=='__main__': main()
[ 2, 1388, 13, 9078, 198, 2, 198, 2, 3058, 655, 281, 1672, 4226, 314, 779, 284, 1332, 616, 23989, 62, 43420, 8265, 198, 2, 198, 2, 39410, 25, 1486, 966, 3146, 657, 12, 9630, 276, 287, 19798, 292, 6831, 11, 475, 220, 198, 2, 5418, ...
3.382022
89
# # Copyright (c) 2017 Joy Diamond. All rights reserved. #
[ 2, 198, 2, 220, 220, 15069, 357, 66, 8, 2177, 14087, 13566, 13, 220, 1439, 2489, 10395, 13, 198, 2, 198 ]
2.952381
21
import flask from flask import Flask from flask import jsonify from flask import request from flask_cors import CORS, cross_origin from flask import render_template import mwoauth import requests_oauthlib import os import yaml import mwapi from tasks.main import Tasks from save import Save from db import DB from typ...
[ 11748, 42903, 198, 6738, 42903, 1330, 46947, 198, 6738, 42903, 1330, 33918, 1958, 198, 6738, 42903, 1330, 2581, 198, 6738, 42903, 62, 66, 669, 1330, 327, 20673, 11, 3272, 62, 47103, 198, 6738, 42903, 1330, 8543, 62, 28243, 198, 198, 117...
2.828897
263
import numpy as np from collections import defaultdict, Counter import random import json from tqdm import tqdm if __name__ == '__main__': transX('Wiki')
[ 11748, 299, 32152, 355, 45941, 220, 198, 6738, 17268, 1330, 4277, 11600, 11, 15034, 198, 11748, 4738, 198, 11748, 33918, 198, 198, 6738, 256, 80, 36020, 1330, 256, 80, 36020, 628, 198, 198, 361, 11593, 3672, 834, 6624, 705, 834, 12417, ...
3.115385
52
"""Contains the Fortune Teller Character class""" import json import random import discord import datetime from botc import Action, ActionTypes, Townsfolk, Character, Storyteller, RedHerring, \ RecurringAction, Category, StatusList from botc.BOTCUtils import GameLogic from ._utils import TroubleBrewing, TBRole im...
[ 37811, 4264, 1299, 262, 20425, 309, 12368, 15684, 1398, 37811, 198, 198, 11748, 33918, 198, 11748, 4738, 198, 11748, 36446, 220, 198, 11748, 4818, 8079, 198, 6738, 10214, 66, 1330, 7561, 11, 7561, 31431, 11, 40752, 19956, 11, 15684, 11, ...
2.862069
348
from unittest.mock import call, MagicMock, patch from schmetterling.build.maven import build_multi_modules from schmetterling.build.maven import create_build_result from schmetterling.build.maven import create_command from schmetterling.build.maven import create_multi_modules from schmetterling.build.maven import crea...
[ 6738, 555, 715, 395, 13, 76, 735, 1330, 869, 11, 6139, 44, 735, 11, 8529, 198, 198, 6738, 5513, 4164, 353, 1359, 13, 11249, 13, 2611, 574, 1330, 1382, 62, 41684, 62, 18170, 198, 6738, 5513, 4164, 353, 1359, 13, 11249, 13, 2611, 57...
3.243243
185
#Sacar las lineas con DEBUG para que el juego funcione import random DIGITOS = 4 def mastermind(): """Funcion principal del juego Mastermind""" print("Bienvenido al Mastermind!") print("Instrucciones: Tenes que adivinar un codigo de {} digitos distintos. Tu cantidad de aciertos son los numeros que estan corr...
[ 2, 38318, 283, 39990, 1627, 292, 369, 16959, 31215, 8358, 1288, 474, 518, 2188, 25439, 7935, 201, 198, 201, 198, 11748, 4738, 201, 198, 35, 3528, 2043, 2640, 796, 604, 201, 198, 4299, 41353, 33529, 201, 198, 197, 37811, 37, 19524, 295...
2.472496
709
#!/usr/bin/env python # -*- coding: utf-8 -*- """The setup script.""" from setuptools import setup, find_packages with open("README.rst") as readme_file: readme = readme_file.read() with open("HISTORY.rst") as history_file: history = history_file.read() requirements = ["Click>=6.0", "suds2==0.7.1"] setup_...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 198, 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 198, 37811, 464, 9058, 4226, 526, 15931, 198, 198, 6738, 900, 37623, 10141, 1330, 9058, 11, 1064, 62, 43789, 198, 198, ...
2.618881
572
import time import board import displayio import busio from analogio import AnalogIn import neopixel import adafruit_adt7410 from adafruit_bitmap_font import bitmap_font from adafruit_display_text.label import Label from adafruit_button import Button import adafruit_touchscreen from adafruit_pyportal import PyPortal #...
[ 11748, 640, 198, 11748, 3096, 198, 11748, 3359, 952, 198, 11748, 1323, 952, 198, 6738, 15075, 952, 1330, 50088, 818, 198, 11748, 497, 404, 7168, 198, 11748, 512, 1878, 4872, 62, 324, 83, 4524, 940, 198, 6738, 512, 1878, 4872, 62, 2545...
2.023999
6,667
import json from btse_futures.constants import OrderType, Side, TimeInForce
[ 11748, 33918, 198, 198, 6738, 275, 83, 325, 62, 69, 315, 942, 13, 9979, 1187, 1330, 8284, 6030, 11, 12075, 11, 3862, 818, 10292, 628, 628 ]
3.076923
26
"""Simple mock responses definitions.""" from blinkpy.helpers.util import BlinkURLHandler import blinkpy.helpers.constants as const LOGIN_RESPONSE = { 'region': {'mock': 'Test'}, 'networks': { '1234': {'name': 'test', 'onboarded': True} }, 'authtoken': {'authtoken': 'foobar123', 'message': 'au...
[ 37811, 26437, 15290, 9109, 17336, 526, 15931, 198, 198, 6738, 21019, 9078, 13, 16794, 364, 13, 22602, 1330, 41732, 21886, 25060, 198, 11748, 21019, 9078, 13, 16794, 364, 13, 9979, 1187, 355, 1500, 198, 198, 25294, 1268, 62, 19535, 47, 1...
2.180451
665
from astropy import coordinates as coord from astropy import wcs from astropy.io import fits from astropy import units as u from misc import bcolors import numpy as np import os def convert_hms_dd(RA, DEC): ''' Convert HMS to DD system ''' if (':' in RA) and (':' in DEC): Coord_dd = coord.SkyCoord(RA, DEC...
[ 6738, 220, 197, 459, 28338, 1330, 22715, 355, 6349, 198, 6738, 220, 197, 459, 28338, 1330, 266, 6359, 198, 6738, 220, 197, 459, 28338, 13, 952, 1330, 11414, 198, 6738, 220, 197, 459, 28338, 1330, 4991, 355, 334, 198, 6738, 220, 197, ...
2.213749
931
import argparse import torch import torch.nn as nn import torchvision import torchvision.transforms as transforms from n3ml.model import DynamicModel_STBP_SNN if __name__ == '__main__': parser = argparse.ArgumentParser() parser.add_argument('--data', default='data') parser.add_argument('--batch_size'...
[ 11748, 1822, 29572, 198, 198, 11748, 28034, 198, 11748, 28034, 13, 20471, 355, 299, 77, 198, 11748, 28034, 10178, 198, 11748, 28034, 10178, 13, 7645, 23914, 355, 31408, 198, 198, 6738, 299, 18, 4029, 13, 19849, 1330, 26977, 17633, 62, 2...
2.921788
179
# If you're new to file handling, be sure to check out with_open.py first! # You'll also want to check out read_text.py before this example. This one is a bit more advanced. with open('read_csv.csv', 'r') as states_file: # Instead of leaving the file contents as a string, we're splitting the file into a list...
[ 2, 1002, 345, 821, 649, 284, 2393, 9041, 11, 307, 1654, 284, 2198, 503, 351, 62, 9654, 13, 9078, 717, 0, 198, 2, 921, 1183, 635, 765, 284, 2198, 503, 1100, 62, 5239, 13, 9078, 878, 428, 1672, 13, 220, 770, 530, 318, 257, 1643, ...
3.251179
848
import math from torch.optim.lr_scheduler import _LRScheduler from torch.optim.optimizer import Optimizer func_zoo = { "cosine_decay": lambda epoch, step, len_epoch, total_epoch: 0.5 * (math.cos(step * math.pi / (total_epoch * len_epoch)) + 1) }
[ 11748, 10688, 198, 198, 6738, 28034, 13, 40085, 13, 14050, 62, 1416, 704, 18173, 1330, 4808, 43, 6998, 1740, 18173, 198, 6738, 28034, 13, 40085, 13, 40085, 7509, 1330, 30011, 7509, 628, 198, 198, 20786, 62, 89, 2238, 796, 1391, 198, 2...
2.539216
102
from .dataset import load_data
[ 6738, 764, 19608, 292, 316, 1330, 3440, 62, 7890 ]
3.333333
9
import json import logging logger = logging.getLogger(__name__) with open('configuration.json') as f: config = json.load(f) TELEGRAM_TOKEN = config["telegram-bot-token"] NOTION_TOKEN = config["notion-token"] NOTION_TABLE_URL = config["inbox_table"]["table_url"] def check_allowed_user(user_id): """ chec...
[ 11748, 33918, 198, 11748, 18931, 198, 198, 6404, 1362, 796, 18931, 13, 1136, 11187, 1362, 7, 834, 3672, 834, 8, 198, 198, 4480, 1280, 10786, 11250, 3924, 13, 17752, 11537, 355, 277, 25, 198, 220, 220, 220, 4566, 796, 33918, 13, 2220, ...
2.772549
255
#------------------------------------------------------------------------------ # Copyright (c) 2013-2018, Nucleic Development Team. # # Distributed under the terms of the Modified BSD License. # # The full license is in the file COPYING.txt, distributed with this software. #--------------------------------------------...
[ 2, 10097, 26171, 198, 2, 15069, 357, 66, 8, 2211, 12, 7908, 11, 399, 14913, 291, 7712, 4816, 13, 198, 2, 198, 2, 4307, 6169, 739, 262, 2846, 286, 262, 40499, 347, 10305, 13789, 13, 198, 2, 198, 2, 383, 1336, 5964, 318, 287, 262,...
4.45283
106
from time import time from typing import Type, TypeVar, MutableMapping, Any, Iterable, Generator, Union import arrow import datetime import math from datapipelines import DataSource, PipelineContext, Query, NotFoundError, validate_query from .common import RiotAPIService, APINotFoundError from ...data import Platform...
[ 6738, 640, 1330, 640, 198, 6738, 19720, 1330, 5994, 11, 5994, 19852, 11, 13859, 540, 44, 5912, 11, 4377, 11, 40806, 540, 11, 35986, 11, 4479, 198, 11748, 15452, 198, 11748, 4818, 8079, 198, 11748, 10688, 198, 198, 6738, 4818, 499, 541...
3.464789
142
""" This caching is very important for speed and memory optimizations. There's nothing really spectacular, just some decorators. The following cache types are available: - module caching (`load_parser` and `save_parser`), which uses pickle and is really important to assure low load times of modules like ``numpy``. -...
[ 37811, 198, 1212, 40918, 318, 845, 1593, 329, 2866, 290, 4088, 41446, 13, 1318, 338, 198, 22366, 1107, 15013, 11, 655, 617, 11705, 2024, 13, 383, 1708, 12940, 3858, 389, 198, 15182, 25, 198, 198, 12, 8265, 40918, 357, 63, 2220, 62, ...
2.681206
1,559
#!/usr/bin/env python # # Software License Agreement (Apache License) # # Copyright 2013 Open Source Robotics Foundation # Author: Morgan Quigley # # 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 ...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 198, 2, 198, 2, 10442, 13789, 12729, 357, 25189, 4891, 13789, 8, 198, 2, 198, 2, 15069, 2211, 4946, 8090, 47061, 5693, 198, 2, 6434, 25, 10805, 2264, 328, 1636, 198, 2, 198, 2, 49962, 7...
2.613534
665
# -*- coding: utf-8 -*- # Form implementation generated from reading ui file 'PrestamoDeLibros.ui' # # Created by: PyQt4 UI code generator 4.11.4 # # WARNING! All changes made in this file will be lost! from PyQt4 import QtCore, QtGui try: _fromUtf8 = QtCore.QString.fromUtf8 except AttributeError: try: _enc...
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 198, 2, 5178, 7822, 7560, 422, 3555, 334, 72, 2393, 705, 47, 2118, 18811, 5005, 25835, 4951, 13, 9019, 6, 198, 2, 198, 2, 15622, 416, 25, 9485, 48, 83, 19, 12454, ...
2.405858
239
############################################################################## # # Copyright (c) 2002 Zope Foundation and Contributors. # All Rights Reserved. # # This software is subject to the provisions of the Zope Public License, # Version 2.1 (ZPL). A copy of the ZPL should accompany this distribution. # THIS SOF...
[ 29113, 29113, 7804, 4242, 2235, 198, 2, 198, 2, 15069, 357, 66, 8, 6244, 1168, 3008, 5693, 290, 25767, 669, 13, 198, 2, 1439, 6923, 33876, 13, 198, 2, 198, 2, 770, 3788, 318, 2426, 284, 262, 8617, 286, 262, 1168, 3008, 5094, 13789...
2.724626
1,271
#!/usr/bin/env python3 # encoding: utf-8 # # Copyright (c) 2019 SAP SE or an SAP affiliate company. All rights reserved. # # This file is part of ewm-cloud-robotics # (see https://github.com/SAP/ewm-cloud-robotics). # # This file is licensed under the Apache Software License, v. 2 except as noted # otherwise in the LIC...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 18, 198, 2, 21004, 25, 3384, 69, 12, 23, 198, 2, 198, 2, 15069, 357, 66, 8, 13130, 48323, 7946, 393, 281, 48323, 17375, 1664, 13, 1439, 2489, 10395, 13, 198, 2, 198, 2, 770, 2393, 318...
2.401535
1,564
from . import config, widget # noqa
[ 6738, 764, 1330, 4566, 11, 26295, 220, 1303, 645, 20402, 198 ]
3.363636
11
from hwtest.shell_utils import run_command def test_linux_usb3hub(): """ Test for Linux Foundation 3.0 root hub in `lsusb` output """ resp = run_command(["lsusb"]) assert "1d6b:0003" in resp
[ 6738, 289, 86, 9288, 13, 29149, 62, 26791, 1330, 1057, 62, 21812, 628, 198, 4299, 1332, 62, 23289, 62, 43319, 18, 40140, 33529, 198, 220, 220, 220, 37227, 198, 220, 220, 220, 6208, 329, 7020, 5693, 513, 13, 15, 6808, 12575, 287, 460...
2.559524
84
# Copyright 2012-2014 The Meson development team # 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 agree...
[ 2, 15069, 2321, 12, 4967, 383, 14937, 261, 2478, 1074, 198, 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, ...
3.617329
277
"""Tests of cputime.py """ import unittest from reversi.strategies.common import CPU_TIME
[ 37811, 51, 3558, 286, 269, 1996, 524, 13, 9078, 198, 37811, 198, 198, 11748, 555, 715, 395, 198, 198, 6738, 10372, 72, 13, 2536, 2397, 444, 13, 11321, 1330, 9135, 62, 34694, 628 ]
2.818182
33
# -*- coding: utf-8 -*- """ReNS experiments - CIFAR10 Automatically generated by Colaboratory. Original file is located at https://colab.research.google.com/drive/1byZ4xTfCK2x1Rhkxpl-Vv4sqA-bo4bis # SETUP """ #@title Insatlling Pyorch # !pip install torch # !pip install torchvision #@title Import Dependencies...
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 37811, 3041, 8035, 10256, 532, 327, 5064, 1503, 940, 198, 198, 38062, 4142, 7560, 416, 1623, 4820, 2870, 13, 198, 198, 20556, 2393, 318, 5140, 379, 198, 220, 220, 220, ...
2.320772
2,229
# vim: tabstop=4 shiftwidth=4 softtabstop=4 # Copyright 2012 Nebula, 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 # # ...
[ 2, 43907, 25, 7400, 11338, 28, 19, 6482, 10394, 28, 19, 2705, 8658, 11338, 28, 19, 198, 198, 2, 15069, 2321, 46915, 11, 3457, 13, 198, 2, 198, 2, 220, 220, 220, 49962, 739, 262, 24843, 13789, 11, 10628, 362, 13, 15, 357, 1169, 3...
3.482587
402
# Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under the...
[ 2, 49962, 739, 262, 24843, 13789, 11, 10628, 362, 13, 15, 357, 1169, 366, 34156, 15341, 198, 2, 345, 743, 407, 779, 428, 2393, 2845, 287, 11846, 351, 262, 13789, 13, 198, 2, 921, 743, 7330, 257, 4866, 286, 262, 13789, 379, 198, 2,...
3.747368
190
from amadeus.client.decorator import Decorator
[ 6738, 716, 671, 385, 13, 16366, 13, 12501, 273, 1352, 1330, 4280, 273, 1352, 628 ]
3.2
15
import py import pytest from iniconfig import IniConfig, ParseError, __all__ as ALL from iniconfig import iscommentline from textwrap import dedent check_tokens = { 'section': ( '[section]', [(0, 'section', None, None)] ), 'value': ( 'value = 1', [(0, None, 'value', '1')] ...
[ 11748, 12972, 198, 11748, 12972, 9288, 198, 6738, 287, 4749, 5647, 1330, 554, 72, 16934, 11, 2547, 325, 12331, 11, 11593, 439, 834, 355, 11096, 198, 6738, 287, 4749, 5647, 1330, 318, 23893, 1370, 198, 6738, 2420, 37150, 1330, 4648, 298,...
2.205272
1,252
import os from subprocess import call from . import glob2 pwd = os.path.dirname(__file__) """ handling javajskparser AST """
[ 11748, 28686, 198, 6738, 850, 14681, 1330, 869, 198, 198, 6738, 764, 1330, 15095, 17, 198, 198, 79, 16993, 796, 28686, 13, 6978, 13, 15908, 3672, 7, 834, 7753, 834, 8, 198, 198, 37811, 198, 4993, 1359, 474, 615, 1228, 8135, 48610, 2...
2.782609
46
""" Patches views. | Copyright 2017-2021, Voxel51, Inc. | `voxel51.com <https://voxel51.com/>`_ | """ from copy import deepcopy import eta.core.utils as etau import fiftyone.core.aggregations as foa import fiftyone.core.dataset as fod import fiftyone.core.fields as fof import fiftyone.core.labels as fol import fifty...
[ 37811, 198, 12130, 2052, 5009, 13, 198, 198, 91, 15069, 2177, 12, 1238, 2481, 11, 28035, 417, 4349, 11, 3457, 13, 198, 91, 4600, 85, 1140, 417, 4349, 13, 785, 1279, 5450, 1378, 85, 1140, 417, 4349, 13, 785, 15913, 63, 62, 198, 91,...
2.18028
6,917
#!/usr/bin/env python # -*- coding: utf-8 -*- """The setup script.""" from setuptools import setup, find_packages with open('README.rst') as readme_file: readme = readme_file.read() {%- set license_classifiers = { 'MIT license': 'License :: OSI Approved :: MIT License', 'BSD license': 'License :: OSI A...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 198, 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 198, 37811, 464, 9058, 4226, 526, 15931, 198, 198, 6738, 900, 37623, 10141, 1330, 9058, 11, 1064, 62, 43789, 628, 198, ...
2.755587
716
############################################################################## # # Copyright (c) 2002 Zope Foundation and Contributors. # All Rights Reserved. # # This software is subject to the provisions of the Zope Public License, # Version 2.1 (ZPL). A copy of the ZPL should accompany this distribution. # THIS SOF...
[ 29113, 29113, 7804, 4242, 2235, 198, 2, 198, 2, 15069, 357, 66, 8, 6244, 1168, 3008, 5693, 290, 25767, 669, 13, 198, 2, 1439, 6923, 33876, 13, 198, 2, 198, 2, 770, 3788, 318, 2426, 284, 262, 8617, 286, 262, 1168, 3008, 5094, 13789...
3.437055
421
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Created on Mon May 18 22:42:54 2020 @author: mike """ import numpy as np import tensorflow as tf from tensorflow import keras from sklearn.model_selection import train_test_split from tensorflow.keras.applications import VGG16 from tensorflow.keras import layers fro...
[ 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, 2892, 1737, 1248, 2534, 25, 3682, 25, 4051, 12131, 198, 198, 31, 9800, 25, 285, 522, 198,...
2.372123
782
#!/usr/bin/python # # Copyright 2018-2020 Polyaxon, 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 ...
[ 2, 48443, 14629, 14, 8800, 14, 29412, 198, 2, 198, 2, 15069, 2864, 12, 42334, 12280, 897, 261, 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, ...
3.589958
239
studendt1 = Student('James Kaka', '021074', 'M','Amethyst','16', '49') print(studendt1.getName()) studendt1.setName('James Gaga') print(studendt1.getName()) Student.PAUNanthem()
[ 198, 19149, 437, 83, 16, 796, 13613, 10786, 14731, 509, 8130, 3256, 705, 2999, 940, 4524, 3256, 705, 44, 41707, 5840, 44166, 41707, 1433, 3256, 705, 2920, 11537, 198, 4798, 7, 19149, 437, 83, 16, 13, 1136, 5376, 28955, 198, 19149, 437...
2.521127
71
from sqlalchemy.engine import reflection from clickhouse_sqlalchemy import Table, engines
[ 6738, 44161, 282, 26599, 13, 18392, 1330, 14580, 198, 198, 6738, 3904, 4803, 62, 25410, 282, 26599, 1330, 8655, 11, 11874, 628 ]
4.181818
22
""" Unit Tests for the pydisque module. Currently, most of these tests require a fresh instance of Disque to be valid and pass. """ import unittest import json import time import random import six from pydisque.client import Client from redis.exceptions import ResponseError if __name__ == '__main__': unittest.m...
[ 37811, 198, 26453, 30307, 329, 262, 279, 5173, 271, 4188, 8265, 13, 198, 198, 21327, 11, 749, 286, 777, 5254, 2421, 257, 4713, 4554, 286, 198, 7279, 4188, 284, 307, 4938, 290, 1208, 13, 198, 37811, 198, 198, 11748, 555, 715, 395, 19...
3.360825
97
# -*- coding: utf-8 -*- # """*********************************************************************************************""" # FileName [ runner.py ] # Synopsis [ main program that runs the 'Naive Bayes' and 'Decision Tree' training / testing ] # Author [ Ting-Wei Liu (Andi611) ] # Copyright [...
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 1303, 198, 37811, 17174, 17174, 8412, 4557, 35625, 37811, 198, 2, 220, 220, 9220, 5376, 220, 220, 220, 220, 685, 17490, 13, 9078, 2361, 198, 2, 220, 220, 16065, 24608, 220, ...
3.552239
268
import copy import numpy as np import pybullet as p from igibson.metrics.metric_base import MetricBase
[ 11748, 4866, 198, 198, 11748, 299, 32152, 355, 45941, 198, 11748, 12972, 15065, 1616, 355, 279, 198, 198, 6738, 45329, 571, 1559, 13, 4164, 10466, 13, 4164, 1173, 62, 8692, 1330, 3395, 1173, 14881, 628, 198 ]
2.972222
36
import sys from .main import ( _chunk_list, _get_unicode_range_hash, convert_unicode_range, get_120_unicode_ranges, get_unicode_ranges_from_text, generate_css, main, ) __all__ = [ "_chunk_list", "_get_unicode_range_hash", "convert_unicode_range", "get_120_unicode_ranges", ...
[ 11748, 25064, 198, 6738, 764, 12417, 1330, 357, 198, 220, 220, 220, 4808, 354, 2954, 62, 4868, 11, 198, 220, 220, 220, 4808, 1136, 62, 46903, 1098, 62, 9521, 62, 17831, 11, 198, 220, 220, 220, 10385, 62, 46903, 1098, 62, 9521, 11, ...
2.115942
207
""" This module contains various base dialog base classes that can be used to create custom dialogs for the end user. These classes serve as the basis for the pre-defined static helper methods in the `Messagebox`, and `Querybox` container classes. """ import calendar import textwrap from datetime im...
[ 37811, 198, 220, 220, 220, 770, 8265, 4909, 2972, 2779, 17310, 2779, 6097, 326, 460, 307, 220, 198, 220, 220, 220, 973, 284, 2251, 2183, 17310, 82, 329, 262, 886, 2836, 13, 220, 628, 220, 220, 220, 2312, 6097, 4691, 355, 262, 4308, ...
3.76129
155
# -------------- #Importing header files import pandas as pd import matplotlib.pyplot as plt import seaborn as sns #Code starts here data = pd.read_csv(path) data.hist(['Rating']) data = data[data['Rating']<=5] data.hist(['Rating']) #Code ends here # -------------- # code starts here total_null = data.isnull().s...
[ 2, 220, 26171, 198, 2, 20939, 278, 13639, 3696, 198, 11748, 19798, 292, 355, 279, 67, 198, 11748, 2603, 29487, 8019, 13, 9078, 29487, 355, 458, 83, 198, 11748, 384, 397, 1211, 355, 3013, 82, 628, 628, 198, 198, 2, 10669, 4940, 994, ...
2.757709
908
import argparse import operator import os import re import shutil import spacy import tempfile from nerds.utils import spans_to_tokens, get_logger def segment_text_to_sentences(text_file, sentence_splitter): """ Segment text into sentences. Text is provided by BRAT in .txt file. Args: ...
[ 11748, 1822, 29572, 198, 11748, 10088, 198, 11748, 28686, 198, 11748, 302, 198, 11748, 4423, 346, 198, 11748, 599, 1590, 198, 11748, 20218, 7753, 198, 198, 6738, 47088, 13, 26791, 1330, 32727, 62, 1462, 62, 83, 482, 641, 11, 651, 62, ...
2.398037
2,751
""" Ocropus's magic PIL-numpy array conversion routines. They express slightly different behavior from PIL.Image.toarray(). """ import unicodedata import numpy as np from PIL import Image __all__ = ['pil2array', 'array2pil'] def is_bitonal(im: Image.Image) -> bool: """ Tests a PIL.Image for bitonality. ...
[ 37811, 198, 46, 31476, 385, 338, 5536, 350, 4146, 12, 77, 32152, 7177, 11315, 31878, 13, 1119, 4911, 4622, 198, 39799, 4069, 422, 350, 4146, 13, 5159, 13, 1462, 18747, 22446, 198, 37811, 198, 11748, 28000, 9043, 1045, 198, 11748, 299, ...
2.528875
658
import sys sys.path.insert(0,'..') from data.whale_data import exchnage_accounts from data.html_helper import check_if_address_name_exists from data.whale_eth_tx_data import * from data.whale_token_tx_data import identify_investor_type_token holding_account = "holding_account" deposit_account = 'deposit_account' withd...
[ 11748, 25064, 198, 17597, 13, 6978, 13, 28463, 7, 15, 4032, 492, 11537, 198, 6738, 1366, 13, 1929, 1000, 62, 7890, 1330, 409, 1349, 496, 62, 23317, 82, 198, 6738, 1366, 13, 6494, 62, 2978, 525, 1330, 2198, 62, 361, 62, 21975, 62, ...
2.790698
172
# @Time : 2020/11/14 # @Author : Junyi Li, Gaole He # @Email : lijunyi@ruc.edu.cn # UPDATE: # @Time : 2020/12/2, 2020/11/27, 2020/12/3, 2020/12/26 # @Author : Jinhao Jiang, Xiaoxuan Hu, Tianyi Tang, Jinhao Jiang # @Email : jiangjinhao@std.uestc.edu.cn, huxiaoxuan@ruc.edu.cn, steventang@ruc.edu.cn, jiangjinhao@st...
[ 2, 2488, 7575, 220, 220, 1058, 12131, 14, 1157, 14, 1415, 198, 2, 2488, 13838, 1058, 7653, 48111, 7455, 11, 12822, 2305, 679, 198, 2, 2488, 15333, 220, 1058, 300, 2926, 403, 48111, 31, 622, 66, 13, 15532, 13, 31522, 198, 198, 2, 3...
2.791946
298
from ...models import Persona, Plugin from . import example, example_cache, example_ratelimit, example_with_args plugin = Plugin( name="rsserpent-plugin-builtin", author=Persona( name="queensferryme", link="https://github.com/queensferryme", email="queensferry.me@gmail.com", ), ...
[ 6738, 2644, 27530, 1330, 41581, 11, 42636, 198, 6738, 764, 1330, 1672, 11, 1672, 62, 23870, 11, 1672, 62, 4873, 32374, 11, 1672, 62, 4480, 62, 22046, 628, 198, 33803, 796, 42636, 7, 198, 220, 220, 220, 1438, 2625, 42216, 263, 16923, ...
2.48659
261
import pandas as pd # Define our header col_names = [ "year", "num_males_with_income", "male_median_income_curr_dollars", "male_median_income_2019_dollars", "num_females_with_income", "female_median_income_curr_dollars", "female_median_income_2019_dollars", ] # Load Asian census data XLS, ...
[ 11748, 19798, 292, 355, 279, 67, 198, 198, 2, 2896, 500, 674, 13639, 198, 4033, 62, 14933, 796, 685, 198, 220, 220, 220, 366, 1941, 1600, 198, 220, 220, 220, 366, 22510, 62, 76, 2040, 62, 4480, 62, 12519, 1600, 198, 220, 220, 220,...
2.109963
1,355
""" Dany jest cig okrelony wzorem: A[n+1] = (A[n] % 2) (3 A[n] + 1) + (1 A[n] % 2) A[n] / 2. Startujc z dowolnej liczby naturalnej > 1 cig ten osiga warto 1. Napisa program, ktry znajdzie wyraz pocztkowy z przedziau 2-10000 dla ktrego warto 1 jest osigalna po najwikszej liczbie krokw. """ a0 = 2 m = 1 for a0 in ra...
[ 37811, 198, 35, 1092, 474, 395, 8594, 12876, 2411, 1647, 266, 89, 29625, 25, 317, 58, 77, 10, 16, 60, 796, 357, 32, 58, 77, 60, 4064, 362, 8, 220, 357, 18, 220, 317, 58, 77, 60, 1343, 352, 8, 1343, 357, 16, 220, 317, 58, 77,...
1.841328
271
""" ***************************************************************************** * H E A D E R I N F O R M A T I O N * * ****...
[ 37811, 198, 17174, 17174, 4557, 35625, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, ...
1.515137
40,861
say_hi("Mike", "35") result = cube(4) # variable print(result)
[ 198, 198, 16706, 62, 5303, 7203, 16073, 1600, 366, 2327, 4943, 198, 198, 20274, 796, 23441, 7, 19, 8, 1303, 7885, 198, 4798, 7, 20274, 8, 628, 628, 198 ]
2.413793
29
import glob import json path_in = './airspaces/' path_out = './airspaces_processed/' filenames = [path.split('/')[-1] for path in glob.glob(path_in + '*')] remove = { 'france_fr.geojson': [ 314327, 314187, 314360, 314359, 314362, 314361, 314364, 314...
[ 11748, 15095, 198, 11748, 33918, 198, 198, 6978, 62, 259, 796, 705, 19571, 958, 2777, 2114, 14, 6, 198, 6978, 62, 448, 796, 705, 19571, 958, 2777, 2114, 62, 14681, 276, 14, 6, 198, 198, 10379, 268, 1047, 796, 685, 6978, 13, 35312, ...
1.920444
2,250
from AndroidSpider import url_manager, html_downloader, html_parser, html_output ''' Android HTML tab Extra module: BeautifulSoup ''' if __name__ == "__main__": rootUrl = "http://baike.baidu.com/item/Android" objSpider = SpiderMain() objSpider.craw(rootUrl)
[ 6738, 5565, 41294, 1330, 19016, 62, 37153, 11, 27711, 62, 15002, 263, 11, 27711, 62, 48610, 11, 27711, 62, 22915, 198, 198, 7061, 6, 198, 5565, 11532, 7400, 198, 198, 27726, 8265, 25, 198, 38413, 4135, 50, 10486, 198, 7061, 6, 198, ...
2.74
100
MUTATION = '''mutation {{ {mutation} }}''' def _verify_additional_type(additionaltype): """Check that the input to additionaltype is a list of strings. If it is empty, raise ValueError If it is a string, convert it to a list of strings.""" if additionaltype is None: return None if isins...
[ 44, 3843, 6234, 796, 705, 7061, 76, 7094, 22935, 198, 220, 1391, 76, 7094, 92, 198, 11709, 7061, 6, 628, 198, 4299, 4808, 332, 1958, 62, 2860, 1859, 62, 4906, 7, 2860, 1859, 4906, 2599, 198, 220, 220, 220, 37227, 9787, 326, 262, 5...
2.888268
179
import boto import boto3 from config import Config dynamodb = boto3.resource('dynamodb', aws_access_key_id=Config.AWS_KEY, aws_secret_access_key=Config.AWS_SECRET_KEY, region_name=Config.REGION) table = dynamodb.Table('user_details') tables...
[ 11748, 275, 2069, 198, 11748, 275, 2069, 18, 198, 6738, 4566, 1330, 17056, 198, 198, 67, 4989, 375, 65, 796, 275, 2069, 18, 13, 31092, 10786, 67, 4989, 375, 65, 3256, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220...
2
290
# TODO: implement algorithms in c++ or something to make them fast
[ 2, 16926, 46, 25, 3494, 16113, 287, 269, 4880, 393, 1223, 284, 787, 606, 3049, 201, 198, 201, 198 ]
3.684211
19
import os import unittest from Logger import Logger from gpsNavigation import gpsModule,gpsPoint if __name__ == '__main__': unittest.main()
[ 11748, 28686, 198, 11748, 555, 715, 395, 198, 6738, 5972, 1362, 1330, 5972, 1362, 198, 198, 6738, 308, 862, 30575, 7065, 1330, 308, 862, 26796, 11, 70, 862, 12727, 628, 198, 361, 11593, 3672, 834, 6624, 705, 834, 12417, 834, 10354, 19...
2.826923
52
from logging import warning from requests import get from .info import Info from .provider import Provider from .providers import get_provider
[ 6738, 18931, 1330, 6509, 198, 198, 6738, 7007, 1330, 651, 198, 198, 6738, 764, 10951, 1330, 14151, 198, 6738, 764, 15234, 1304, 1330, 32549, 198, 6738, 764, 15234, 4157, 1330, 651, 62, 15234, 1304, 628, 198 ]
4.083333
36
# -*- coding: utf-8 -*- # Generated by Django 1.10.4 on 2016-12-28 22:09 from django.db import migrations, models import django.db.models.deletion
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 2, 2980, 515, 416, 37770, 352, 13, 940, 13, 19, 319, 1584, 12, 1065, 12, 2078, 2534, 25, 2931, 628, 198, 6738, 42625, 14208, 13, 9945, 1330, 15720, 602, 11, 4981, 19...
2.586207
58
from django.shortcuts import get_object_or_404, render from django.http import HttpResponseRedirect from django.urls import reverse from django.views import generic from django.utils import timezone from .models import Customer def add_customer(request): customer = Customer() customer.customer_firstname = req...
[ 6738, 42625, 14208, 13, 19509, 23779, 1330, 651, 62, 15252, 62, 273, 62, 26429, 11, 8543, 198, 6738, 42625, 14208, 13, 4023, 1330, 367, 29281, 31077, 7738, 1060, 198, 6738, 42625, 14208, 13, 6371, 82, 1330, 9575, 198, 6738, 42625, 14208...
3.061151
278
# flake8: noqa # pylint: skip-file from __future__ import absolute_import, division, print_function from salt.ext.tornado.test.util import unittest
[ 2, 781, 539, 23, 25, 645, 20402, 198, 2, 279, 2645, 600, 25, 14267, 12, 7753, 198, 6738, 11593, 37443, 834, 1330, 4112, 62, 11748, 11, 7297, 11, 3601, 62, 8818, 198, 6738, 8268, 13, 2302, 13, 45910, 4533, 13, 9288, 13, 22602, 1330...
3.104167
48
"""Holds configurations to read and write with Spark to AWS S3.""" import os from typing import Any, Dict, List, Optional from pyspark.sql import DataFrame from butterfree.configs import environment from butterfree.configs.db import AbstractWriteConfig from butterfree.dataframe_service import extract_partition_value...
[ 37811, 39, 10119, 25412, 284, 1100, 290, 3551, 351, 17732, 284, 30865, 311, 18, 526, 15931, 198, 198, 11748, 28686, 198, 6738, 19720, 1330, 4377, 11, 360, 713, 11, 7343, 11, 32233, 198, 198, 6738, 279, 893, 20928, 13, 25410, 1330, 606...
2.554529
541
#!/usr/bin/env python3 import sys sys.path.append('..') import specrel.geom as geom import specrel.spacetime.physical as phy import specrel.visualize as vis # Shared parameters include_grid = True include_legend = True tlim = (0, 2) xlim = (-2, 2) # A stationary point object stationary = phy.MovingObject(0, draw_opt...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 18, 198, 11748, 25064, 198, 17597, 13, 6978, 13, 33295, 10786, 492, 11537, 198, 198, 11748, 1020, 2411, 13, 469, 296, 355, 4903, 296, 198, 11748, 1020, 2411, 13, 2777, 330, 8079, 13, 42854,...
2.65011
906
from baremetal import * from math import pi, sin, cos import sys from scale import scale from settings import * from ssb import ssb_polar import numpy as np from matplotlib import pyplot as plt if __name__ == "__main__" and "sim" in sys.argv: #mode am stim am stimulus=( np.sin(np.arange(1000)*2....
[ 6738, 6247, 28469, 1330, 1635, 198, 6738, 10688, 1330, 31028, 11, 7813, 11, 8615, 198, 11748, 25064, 198, 6738, 5046, 1330, 5046, 198, 6738, 6460, 1330, 1635, 198, 6738, 264, 36299, 1330, 264, 36299, 62, 79, 6192, 628, 198, 198, 11748, ...
2.376682
223
from __future__ import absolute_import from six.moves.urllib.parse import urlencode from django.test import RequestFactory from django.contrib.auth.models import AnonymousUser from sentry.auth.helper import handle_new_user from sentry.models import AuthProvider, InviteStatus, OrganizationMember from sentry.testutils ...
[ 6738, 11593, 37443, 834, 1330, 4112, 62, 11748, 198, 198, 6738, 2237, 13, 76, 5241, 13, 333, 297, 571, 13, 29572, 1330, 2956, 11925, 8189, 198, 6738, 42625, 14208, 13, 9288, 1330, 19390, 22810, 198, 6738, 42625, 14208, 13, 3642, 822, ...
3.666667
102
from broadcast_ping import BroadcastPing EVENT_TYPES = { "PING": BroadcastPing, }
[ 6738, 7025, 62, 13886, 1330, 44244, 49806, 198, 198, 20114, 3525, 62, 9936, 47, 1546, 796, 1391, 198, 220, 220, 220, 220, 220, 220, 220, 366, 47, 2751, 1298, 44244, 49806, 11, 198, 92, 198 ]
2.6
35
import datetime import requests from mbta_python.models import Stop, Direction, Schedule, Mode, \ TripSchedule, Alert, StopWithMode, Prediction HOST = "http://realtime.mbta.com/developer/api/v2"
[ 11748, 4818, 8079, 198, 11748, 7007, 198, 6738, 285, 65, 8326, 62, 29412, 13, 27530, 1330, 13707, 11, 41837, 11, 19281, 11, 10363, 11, 3467, 198, 220, 220, 220, 18383, 27054, 5950, 11, 23276, 11, 13707, 3152, 19076, 11, 46690, 628, 19...
3.075758
66
import argparse import glob import os import numpy as np import torch from sklearn.metrics import accuracy_score import models_torch as models import utils EXPERIMENT_DATA_DIR = "/tmp/mgr" if __name__ == "__main__": parser = argparse.ArgumentParser(description='Run Inference') parser.add_argument('model...
[ 11748, 1822, 29572, 198, 11748, 15095, 198, 11748, 28686, 198, 198, 11748, 299, 32152, 355, 45941, 198, 11748, 28034, 198, 6738, 1341, 35720, 13, 4164, 10466, 1330, 9922, 62, 26675, 198, 198, 11748, 4981, 62, 13165, 354, 355, 4981, 198, ...
2.547109
934
"""Computation of ensemble anomalies based on a desired value.""" import os import numpy as np from scipy import stats # User-defined packages from read_netcdf import read_iris, save_n_2d_fields from sel_season_area import sel_area, sel_season def ens_anom(filenames, dir_output, name_outputs, varname, numens, seaso...
[ 37811, 5377, 1996, 341, 286, 34549, 35907, 1912, 319, 257, 10348, 1988, 526, 15931, 198, 198, 11748, 28686, 198, 11748, 299, 32152, 355, 45941, 198, 6738, 629, 541, 88, 1330, 9756, 198, 198, 2, 11787, 12, 23211, 10392, 198, 6738, 1100, ...
2.230453
2,187
from django.db import models from django.utils.html import mark_safe, strip_tags from django.utils.text import slugify from django.utils.translation import ugettext as _ from django.utils.translation import ugettext_lazy from django.core.exceptions import ValidationError from django.db.models.signals import post_save, ...
[ 6738, 42625, 14208, 13, 9945, 1330, 4981, 198, 6738, 42625, 14208, 13, 26791, 13, 6494, 1330, 1317, 62, 21230, 11, 10283, 62, 31499, 198, 6738, 42625, 14208, 13, 26791, 13, 5239, 1330, 31065, 1958, 198, 6738, 42625, 14208, 13, 26791, 13...
2.716822
1,183
import csv from testdata import SOCIALHISTORY_FILE from testdata import rndDate from patient import Patient SMOKINGCODES = { '428041000124106': 'Current some day smoker', '266919005' : 'Never smoker', '449868002' : 'Current every day smoker', '266927001' : 'Unknown if ever smoked', '...
[ 11748, 269, 21370, 198, 6738, 1332, 7890, 1330, 31430, 12576, 39, 42480, 62, 25664, 198, 6738, 1332, 7890, 1330, 374, 358, 10430, 198, 6738, 5827, 1330, 35550, 198, 198, 12310, 11380, 2751, 34, 3727, 1546, 796, 1391, 198, 220, 220, 220,...
2.48951
143
{ "cells": [ { "cell_type": "code", "execution_count": 1, "metadata": {}, "outputs": [], "source": [ "# dictionaries, look-up tables & key-value pairs\n", "# d = {} OR d = dict()\n", "#e.g. d = {\"George\": 24, \"Tom\": 32}\n", "\n", "d = {}\n", "\n" ] }, { "cell_type...
[ 90, 198, 366, 46342, 1298, 685, 198, 220, 1391, 198, 220, 220, 366, 3846, 62, 4906, 1298, 366, 8189, 1600, 198, 220, 220, 366, 18558, 1009, 62, 9127, 1298, 352, 11, 198, 220, 220, 366, 38993, 1298, 1391, 5512, 198, 220, 220, 366, ...
1.867634
2,274
# Copyright 2013-2021 Lawrence Livermore National Security, LLC and other # Spack Project Developers. See the top-level COPYRIGHT file for details. # # SPDX-License-Identifier: (Apache-2.0 OR MIT) import os import pytest from llnl.util.filesystem import mkdirp, touch import spack.config from spack.fetch_strategy im...
[ 2, 15069, 2211, 12, 1238, 2481, 13914, 45036, 3549, 2351, 4765, 11, 11419, 290, 584, 198, 2, 1338, 441, 4935, 34152, 13, 4091, 262, 1353, 12, 5715, 27975, 38162, 9947, 2393, 329, 3307, 13, 198, 2, 198, 2, 30628, 55, 12, 34156, 12, ...
3.302521
119
__author__ = 'hanhanw' import sys from pyspark import SparkConf, SparkContext from pyspark.sql.context import SQLContext from pyspark.sql.types import StructType, StructField, StringType, DoubleType conf = SparkConf().setAppName("temp range sql") sc = SparkContext(conf=conf) sqlContext = SQLContext(sc) assert sc.ver...
[ 834, 9800, 834, 796, 705, 7637, 7637, 86, 6, 198, 198, 11748, 25064, 198, 6738, 279, 893, 20928, 1330, 17732, 18546, 11, 17732, 21947, 198, 6738, 279, 893, 20928, 13, 25410, 13, 22866, 1330, 16363, 21947, 198, 6738, 279, 893, 20928, 1...
2.863946
147
from typing_extensions import Required #from sqlalchemy.sql.sqltypes import Boolean from graphene import ObjectType, String, Field, ID, List, DateTime, Mutation, Boolean, Int from models.EventsRelated.EventModel import EventModel from graphqltypes.Utils import extractSession
[ 6738, 19720, 62, 2302, 5736, 1330, 20906, 198, 198, 2, 6738, 44161, 282, 26599, 13, 25410, 13, 25410, 19199, 1330, 41146, 198, 6738, 42463, 1330, 9515, 6030, 11, 10903, 11, 7663, 11, 4522, 11, 7343, 11, 7536, 7575, 11, 337, 7094, 11, ...
3.971429
70
from __future__ import absolute_import # Copyright (c) 2010-2015 openpyxl from openpyxl.styles.colors import Color, BLACK, WHITE from openpyxl.utils.units import ( pixels_to_EMU, EMU_to_pixels, short_color, ) from openpyxl.compat import deprecated from openpyxl.xml.functions import Element, SubElement, t...
[ 6738, 11593, 37443, 834, 1330, 4112, 62, 11748, 198, 2, 15069, 357, 66, 8, 3050, 12, 4626, 1280, 9078, 87, 75, 198, 198, 6738, 1280, 9078, 87, 75, 13, 47720, 13, 4033, 669, 1330, 5315, 11, 31963, 11, 44925, 198, 198, 6738, 1280, 9...
2.492611
203
from VcfQC import VcfQC from ReseqTrackDB import File from ReseqTrackDB import ReseqTrackDB import argparse import os import logging import datetime #get command line arguments parser = argparse.ArgumentParser(description='Script to subset a VCF by excluding the variants within the regions defined by a BED file') ...
[ 198, 6738, 569, 12993, 48, 34, 1330, 569, 12993, 48, 34, 198, 6738, 1874, 27363, 24802, 11012, 1330, 9220, 198, 6738, 1874, 27363, 24802, 11012, 1330, 1874, 27363, 24802, 11012, 198, 198, 11748, 1822, 29572, 198, 11748, 28686, 198, 11748,...
2.771556
1,125
import os from base import BaseHandler
[ 11748, 28686, 198, 198, 6738, 2779, 1330, 7308, 25060, 198 ]
4
10
# 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, ...
3.360825
291
import os
[ 11748, 28686, 198 ]
3.333333
3
from django.shortcuts import render from .models import Disk import os #def index(request): # module_dir = os.path.dirname(__file__) # file_path = os.path.join(module_dir, 'data.txt') # disk_list = open(file_path , 'r') # data = data_file.read() # context = {'disk_list': data} # return render(reque...
[ 6738, 42625, 14208, 13, 19509, 23779, 1330, 8543, 198, 6738, 764, 27530, 1330, 31664, 198, 11748, 28686, 628, 198, 198, 2, 4299, 6376, 7, 25927, 2599, 198, 2, 220, 220, 220, 8265, 62, 15908, 796, 28686, 13, 6978, 13, 15908, 3672, 7, ...
2.589552
134
# Copyright Materialize, Inc. and contributors. All rights reserved. # # Use of this software is governed by the Business Source License # included in the LICENSE file at the root of this repository. # # As of the Change Date specified in that file, in accordance with # the Business Source License, use of this software...
[ 2, 15069, 14633, 1096, 11, 3457, 13, 290, 20420, 13, 1439, 2489, 10395, 13, 198, 2, 198, 2, 5765, 286, 428, 3788, 318, 21825, 416, 262, 7320, 8090, 13789, 198, 2, 3017, 287, 262, 38559, 24290, 2393, 379, 262, 6808, 286, 428, 16099, ...
4.286885
122
import numpy as np import mujoco_py as mj from mujoco_py_renderer import SimulationError, XMLError, MujocoPyRenderer from mujoco_py import (MjSim, load_model_from_xml,functions, load_model_from_path, MjSimState, ignore_mujoco_warnings, load_model_from...
[ 11748, 299, 32152, 355, 45941, 198, 11748, 285, 23577, 25634, 62, 9078, 355, 285, 73, 198, 6738, 285, 23577, 25634, 62, 9078, 62, 10920, 11882, 1330, 41798, 12331, 11, 1395, 44, 2538, 81, 1472, 11, 8252, 73, 25634, 20519, 49, 437, 118...
1.901426
2,455
import sys # package need to be installed, pip install docker import docker import time import yaml import os import xlwt auto = False private_registry = "202.114.10.146:9999/" # result result = [["tag", "finishTime", "size", "data"], ] def get_net_data(): netCard = "/proc/net/dev" fd = open(netCard, "r") ...
[ 11748, 25064, 198, 2, 5301, 761, 284, 307, 6589, 11, 7347, 2721, 36253, 198, 11748, 36253, 220, 198, 11748, 640, 198, 11748, 331, 43695, 198, 11748, 28686, 198, 11748, 2124, 75, 46569, 198, 198, 23736, 796, 10352, 198, 198, 19734, 62, ...
2.393013
458
from jiminy.envs import vnc_env from jiminy.spaces import VNCActionSpace
[ 6738, 474, 320, 3541, 13, 268, 14259, 1330, 410, 10782, 62, 24330, 198, 6738, 474, 320, 3541, 13, 2777, 2114, 1330, 569, 7792, 12502, 14106, 628 ]
2.846154
26
import copy import logging import random from typing import List, Tuple import numpy as np import torch import wandb from torch.utils.data import ConcatDataset from fedml_api.standalone.fedavg.my_model_trainer import MyModelTrainer from fedml_api.standalone.federated_sgan.ac_gan_model_trainer import ACGANModelTrainer...
[ 11748, 4866, 198, 11748, 18931, 198, 11748, 4738, 198, 6738, 19720, 1330, 7343, 11, 309, 29291, 198, 198, 11748, 299, 32152, 355, 45941, 198, 11748, 28034, 198, 11748, 11569, 65, 198, 6738, 28034, 13, 26791, 13, 7890, 1330, 1482, 9246, ...
3.20442
181
#!/usr/bin/env python3 import argparse from collections import Counter import pdb import pickle import re import sys import time import numpy as np import torch import torch.nn as nn from torch.autograd import Variable from torch import optim import torch.nn.functional as F import torch.multiprocessing as mp import ...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 18, 198, 198, 11748, 1822, 29572, 198, 6738, 17268, 1330, 15034, 198, 11748, 279, 9945, 198, 11748, 2298, 293, 198, 11748, 302, 198, 11748, 25064, 198, 11748, 640, 198, 198, 11748, 299, 32152...
2.375
2,808
sayi1 = int(input("1. Say: ")) sayi2 = int(input("2. Say: ")) sayi3 = int(input("3. Say: ")) sayi4 = int(input("4. Say: ")) sayi5 = int(input("5. Say: ")) sayilar=[]; sayilar.append(sayi1) sayilar.append(sayi2) sayilar.append(sayi3) sayilar.append(sayi4) sayilar.append(sayi5) sayilar.sort() print("En byk sayimiz..",say...
[ 16706, 72, 16, 796, 493, 7, 15414, 7203, 16, 13, 13816, 25, 366, 4008, 198, 16706, 72, 17, 796, 493, 7, 15414, 7203, 17, 13, 13816, 25, 366, 4008, 198, 16706, 72, 18, 796, 493, 7, 15414, 7203, 18, 13, 13816, 25, 366, 4008, 198, ...
2.155844
154
"""Deep Q learning graph The functions in this file can are used to create the following functions: ======= act ======== Function to chose an action given an observation Parameters ---------- observation: object Observation that can be feed into the output of make_obs_ph stochastic: bool...
[ 37811, 29744, 1195, 4673, 4823, 198, 198, 464, 5499, 287, 428, 2393, 460, 389, 973, 284, 2251, 262, 1708, 5499, 25, 198, 198, 1421, 18604, 719, 29335, 18604, 628, 220, 220, 220, 15553, 284, 7690, 281, 2223, 1813, 281, 13432, 628, 220,...
2.292669
3,574
import sys sys.path.append('../') import LMR_config as cfg import LMR_prior import numpy as np import pytest
[ 11748, 25064, 198, 198, 17597, 13, 6978, 13, 33295, 10786, 40720, 11537, 198, 198, 11748, 406, 13599, 62, 11250, 355, 30218, 70, 198, 11748, 406, 13599, 62, 3448, 273, 198, 11748, 299, 32152, 355, 45941, 198, 11748, 12972, 9288, 628, 62...
2.72093
43
import os from dataloader.datasetDHF1K import DHF1K from torch.utils.data import DataLoader from utils.salgan_utils import save_model, get_lr_optimizer from utils.sendTelegram import send from utils.printer import param_print from utils.salgan_generator import create_model, add_bn from evaluation.fast_evaluation impor...
[ 11748, 28686, 198, 198, 6738, 4818, 282, 1170, 263, 13, 19608, 292, 316, 35, 29567, 16, 42, 1330, 23809, 37, 16, 42, 198, 6738, 28034, 13, 26791, 13, 7890, 1330, 6060, 17401, 198, 6738, 3384, 4487, 13, 21680, 1030, 62, 26791, 1330, ...
2.534835
2,842
# encoding: utf-8 from django.db import models from wagtail.wagtailcore.models import Page from wagtail.wagtailcore.fields import StreamField from wagtail.wagtailcore import blocks from wagtail.wagtailadmin.edit_handlers import FieldPanel, StreamFieldPanel from wagtail.wagtailimages.blocks import ImageChooserBlock
[ 220, 1303, 21004, 25, 3384, 69, 12, 23, 198, 198, 6738, 42625, 14208, 13, 9945, 1330, 4981, 198, 198, 6738, 266, 363, 13199, 13, 86, 363, 13199, 7295, 13, 27530, 1330, 7873, 198, 6738, 266, 363, 13199, 13, 86, 363, 13199, 7295, 13, ...
3.232323
99