content
stringlengths
1
1.04M
input_ids
listlengths
1
774k
ratio_char_token
float64
0.38
22.9
token_count
int64
1
774k
from pathlib import Path import shutil from jinja2 import Environment, PackageLoader, StrictUndefined import pymongo from pymongo.mongo_client import MongoClient import pymysql from .execute import Execution, single_line from . import PACKAGE_NAMESPACE root = Execution() template_env = Environment( loader=PackageL...
[ 6738, 3108, 8019, 1330, 10644, 198, 11748, 4423, 346, 198, 6738, 474, 259, 6592, 17, 1330, 9344, 11, 15717, 17401, 11, 520, 2012, 31319, 18156, 198, 11748, 279, 4948, 25162, 198, 6738, 279, 4948, 25162, 13, 76, 25162, 62, 16366, 1330, ...
3.291667
120
import HandRankings as Hand from deuces.deuces import Card, Evaluator
[ 11748, 7157, 27520, 654, 355, 7157, 198, 6738, 390, 26873, 13, 2934, 26873, 1330, 5172, 11, 26439, 84, 1352, 628 ]
3.55
20
# coding: utf-8 import os import sys from unittest import TestCase from forecast.environment import Environment from forecast.exceptions import ForecastError
[ 2, 19617, 25, 3384, 69, 12, 23, 628, 198, 11748, 28686, 198, 11748, 25064, 198, 6738, 555, 715, 395, 1330, 6208, 20448, 198, 198, 6738, 11092, 13, 38986, 1330, 9344, 198, 6738, 11092, 13, 1069, 11755, 1330, 4558, 2701, 12331, 628 ]
3.95122
41
#!/usr/bin/python # -*- coding: utf-8 -*- ''' Phase Correlation based image matching and registration libraries ''' __author__ = "Yoshi Ri" __copyright__ = "Copyright 2017, The University of Tokyo" __credits__ = ["Yoshi Ri"] __license__ = "BSD" __version__ = "1.0.1" __maintainer__ = "Yoshi Ri" __email__ = "yoshiyoshide...
[ 2, 48443, 14629, 14, 8800, 14, 29412, 198, 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 7061, 6, 18983, 2744, 49501, 1912, 2939, 12336, 290, 9352, 12782, 198, 7061, 6, 198, 834, 9800, 834, 796, 366, 56, 13704, 30...
2.782828
198
# Generated by Django 3.1.5 on 2021-07-26 10:11 from django.db import migrations, models
[ 2, 2980, 515, 416, 37770, 513, 13, 16, 13, 20, 319, 33448, 12, 2998, 12, 2075, 838, 25, 1157, 198, 198, 6738, 42625, 14208, 13, 9945, 1330, 15720, 602, 11, 4981, 628 ]
2.84375
32
#์˜ˆ์ œ ํ™•์žฅ... str28 = "900123-1234567" print(str28[7:8]) print("ํ™๊ธธ๋™์€ "+str28[0:2]+"๋…„ "+str28[2:4]+"์›” "+str28[4:6]+"์ผ ์ƒ์ด๋‹ค") myCitizenCode = input("์ฃผ๋ฏผ๋ฒˆํ˜ธ๋ฅผ ์ž…๋ ฅํ•˜์„ธ์š”: ") print("\n๋‹น์‹ ์€ "+myCitizenCode[0:2]+"๋…„ "+myCitizenCode[2:4]+"์›” "+myCitizenCode[4:6]+"์ผ ์ƒ์ด๋‹ค")
[ 2, 168, 246, 230, 168, 254, 250, 220, 169, 247, 243, 168, 252, 98, 986, 201, 198, 201, 198, 2536, 2078, 796, 366, 12865, 10163, 12, 10163, 2231, 3134, 1, 201, 198, 4798, 7, 2536, 2078, 58, 22, 25, 23, 12962, 201, 198, 201, 198, ...
1.252381
210
"""Wrapped numpy functions. This library contains all functions and methods in numpy. Unless specified in 'nograd_functions', the function is assumed to have a registered vector-Jacobian product. Uses Python namespace-is-a-dict magic. """ from __future__ import absolute_import import types from autograd.tracer import...
[ 37811, 36918, 1496, 299, 32152, 5499, 13, 198, 198, 1212, 5888, 4909, 477, 5499, 290, 5050, 287, 299, 32152, 13, 17486, 7368, 287, 198, 6, 77, 519, 6335, 62, 12543, 2733, 3256, 262, 2163, 318, 9672, 284, 423, 257, 6823, 15879, 12, 4...
2.192761
1,188
from typing import Dict import requests from .exceptions import NetworkError, UnknownCityError RAINY_STATES = ["hr", "lr", "s"] def parse_forecasts(forecasts: Dict) -> bool: """Return True if more than half of the forecasts announce rain, False otherwise.""" rainy_forecasts = sum( ...
[ 6738, 19720, 1330, 360, 713, 201, 198, 201, 198, 11748, 7007, 201, 198, 201, 198, 6738, 764, 1069, 11755, 1330, 7311, 12331, 11, 16185, 14941, 12331, 201, 198, 201, 198, 3861, 1268, 56, 62, 2257, 29462, 796, 14631, 11840, 1600, 366, 1...
2.596939
196
#!/usr/bin/python3 """ Will walk through a directory and all of its subdierctories and rename all image files it finds to number.format If any image files cannot be opened by PIL then it will remove those images from the directories as well. Will also remove any duplicated files from the directory and its subs """ i...
[ 2, 48443, 14629, 14, 8800, 14, 29412, 18, 198, 198, 37811, 198, 8743, 2513, 832, 257, 8619, 290, 477, 286, 663, 850, 67, 959, 310, 1749, 290, 36265, 477, 2939, 3696, 340, 7228, 284, 1271, 13, 18982, 198, 1532, 597, 2939, 3696, 2314,...
2.173653
668
#!/usr/bin/env python # coding: utf-8 import pytest from testing_config import BaseTestConfig from xumm.resource.types import ( CuratedAssetsResponse )
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 198, 2, 19617, 25, 3384, 69, 12, 23, 198, 198, 11748, 12972, 9288, 198, 6738, 4856, 62, 11250, 1330, 7308, 14402, 16934, 198, 198, 6738, 2124, 13929, 13, 31092, 13, 19199, 1330, 357, 198, ...
3.019231
52
import pathlib
[ 11748, 3108, 8019, 628, 628, 628 ]
3.333333
6
# -*- coding: utf-8 -*- # ---------------------------------------------------------------------- # SelectorCache # Updated by sa.refresh_selector_cache job # ---------------------------------------------------------------------- # Copyright (C) 2007-2019 The NOC Project # See LICENSE for details # ---------------------...
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 2, 16529, 23031, 198, 2, 9683, 273, 30562, 198, 2, 19433, 416, 473, 13, 5420, 3447, 62, 19738, 273, 62, 23870, 1693, 198, 2, 16529, 23031, 198, 2, 15069, 357, 34, 8,...
2.47695
1,128
# (C) Copyright IBM Corp. 2018. All Rights Reserved. # Copyright 2015 The TensorFlow 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.or...
[ 2, 357, 34, 8, 15069, 19764, 11421, 13, 2864, 13, 1439, 6923, 33876, 13, 198, 2, 15069, 1853, 383, 309, 22854, 37535, 46665, 13, 1439, 6923, 33876, 13, 198, 2, 198, 2, 49962, 739, 262, 24843, 13789, 11, 10628, 362, 13, 15, 357, 11...
3.897727
264
from datetime import datetime from crypto.configuration.network import get_network, set_custom_network, set_network from crypto.networks.devnet import Devnet from crypto.networks.mainnet import Mainnet from crypto.networks.testnet import Testnet
[ 6738, 4818, 8079, 1330, 4818, 8079, 198, 198, 6738, 21473, 13, 11250, 3924, 13, 27349, 1330, 651, 62, 27349, 11, 900, 62, 23144, 62, 27349, 11, 900, 62, 27349, 198, 6738, 21473, 13, 3262, 5225, 13, 7959, 3262, 1330, 6245, 3262, 198, ...
3.731343
67
from django.db import models from rest_framework import serializers
[ 6738, 42625, 14208, 13, 9945, 1330, 4981, 198, 6738, 1334, 62, 30604, 1330, 11389, 11341, 628, 198 ]
4.117647
17
# Copyright 2020 mrbean-bremen. See LICENSE file for details. import argparse import configparser import csv import os from collections import namedtuple from datetime import datetime, timedelta from pathlib import Path from typing import List import matplotlib.pyplot as pyplot from github import Github, UnknownObject...
[ 2, 15069, 12131, 285, 81, 14289, 12, 65, 2787, 268, 13, 4091, 38559, 24290, 2393, 329, 3307, 13, 198, 11748, 1822, 29572, 198, 11748, 4566, 48610, 198, 11748, 269, 21370, 198, 11748, 28686, 198, 6738, 17268, 1330, 3706, 83, 29291, 198, ...
3.59434
106
from django.contrib import admin from core import models admin.site.register(models.ProjectCategory) admin.site.register(models.Project) admin.site.register(models.Tech) admin.site.register(models.Skill) admin.site.register(models.Resume) admin.site.register(models.ServiceCategory) admin.site.register(models.Service)...
[ 6738, 42625, 14208, 13, 3642, 822, 1330, 13169, 198, 6738, 4755, 1330, 4981, 628, 198, 28482, 13, 15654, 13, 30238, 7, 27530, 13, 16775, 27313, 8, 198, 28482, 13, 15654, 13, 30238, 7, 27530, 13, 16775, 8, 198, 28482, 13, 15654, 13, ...
3.361538
130
from dataclasses import dataclass from itertools import compress from typing import Generator, List, Tuple with open("2021/day_4.txt") as f: data = f.read().split("\n\n") @dataclass if __name__ == "__main__": data = parse_raw(data) print(f"Puzzle 1: {puzzle_1(data)}") print(f"Puzzle 2: {puzzle...
[ 6738, 4818, 330, 28958, 1330, 4818, 330, 31172, 198, 6738, 340, 861, 10141, 1330, 27413, 198, 6738, 19720, 1330, 35986, 11, 7343, 11, 309, 29291, 628, 198, 4480, 1280, 7203, 1238, 2481, 14, 820, 62, 19, 13, 14116, 4943, 355, 277, 25, ...
2.477612
134
# A part of NonVisual Desktop Access (NVDA) # This file is covered by the GNU General Public License. # See the file COPYING for more details. # Copyright (C) 2007-2021 NV Access Limited, Babbage B.V. from typing import Dict from utils.displayString import DisplayStringIntEnum STATES_SORTED = frozenset(...
[ 2, 317, 636, 286, 8504, 36259, 27850, 8798, 357, 27159, 5631, 8, 201, 198, 2, 770, 2393, 318, 5017, 416, 262, 22961, 3611, 5094, 13789, 13, 201, 198, 2, 4091, 262, 2393, 27975, 45761, 329, 517, 3307, 13, 201, 198, 2, 15069, 357, 3...
3.186682
1,757
import tkinter as tk import random # Connection MongoDb to manage todo list import pymongo from pymongo import MongoClient # Setting up mongodb client = MongoClient("mongodb+srv://abhinav:abhi123@smsclustor-zndnc.mongodb.net/") db = client.get_database("MyToDo") collection= db.get_collection("MyToDoCollection") # cre...
[ 11748, 256, 74, 3849, 355, 256, 74, 198, 11748, 4738, 198, 2, 26923, 42591, 43832, 284, 6687, 284, 4598, 1351, 198, 11748, 279, 4948, 25162, 198, 6738, 279, 4948, 25162, 1330, 42591, 11792, 198, 198, 2, 25700, 510, 285, 506, 375, 65, ...
2.614706
680
from os import environ # ignore local configs during test run environ['TRACKER_CONFIG_LOCAL'] = 'false'
[ 6738, 28686, 1330, 551, 2268, 198, 198, 2, 8856, 1957, 4566, 82, 1141, 1332, 1057, 198, 268, 2268, 17816, 5446, 8120, 1137, 62, 10943, 16254, 62, 29701, 1847, 20520, 796, 705, 9562, 6, 198 ]
3.088235
34
import json import argparse import subprocess from types import SimpleNamespace import itertools # Using Subprocess instead of single thread to isolate bluetooth errors if __name__ == "__main__": args = get_argparser().parse_args() with open(args.json, "r") as f: config = json.load(f, object_hook=lam...
[ 11748, 33918, 198, 11748, 1822, 29572, 198, 11748, 850, 14681, 198, 6738, 3858, 1330, 17427, 36690, 10223, 198, 11748, 340, 861, 10141, 628, 198, 2, 8554, 3834, 14681, 2427, 286, 2060, 4704, 284, 28091, 48208, 16271, 8563, 198, 198, 361, ...
2.344111
433
#!/usr/bin/env python # -*- coding: utf-8 -*- # @Time : 5/12/2019 7:41 PM # @Author : chinshin # @FileName: PoolingFineCoattention.py import chainer from chainer import functions as F from chainer import functions from chainer import links from chainer_chemistry.links import GraphLinear class PoolingF...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 201, 198, 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 201, 198, 2, 2488, 7575, 220, 220, 220, 1058, 642, 14, 1065, 14, 23344, 767, 25, 3901, 3122, 201, 198, 2, 2488, 138...
2.086906
1,726
from random import randint from sqlalchemy.exc import IntegrityError from . import db from .factories import UserFactory, PostFactory, CategoryFactory, TagFactory from .models import User, Category, Role, Tag, PostCategory, PostAuthor, PostTag
[ 6738, 4738, 1330, 43720, 600, 198, 198, 6738, 44161, 282, 26599, 13, 41194, 1330, 39348, 12331, 198, 198, 6738, 764, 1330, 20613, 198, 6738, 764, 22584, 1749, 1330, 11787, 22810, 11, 2947, 22810, 11, 21743, 22810, 11, 17467, 22810, 198, ...
3.984127
63
from datetime import datetime from PIL import Image import sys import numpy as np import tensorflow as tf if(len(sys.argv) != 3): raise Exception('invalid command line arguments') print(str(datetime.now()) + ': initializing input data...') rectSize = 5; inputImagePath = 'image-input' inputImageFile = sys.argv[1] i...
[ 6738, 4818, 8079, 1330, 4818, 8079, 198, 6738, 350, 4146, 1330, 7412, 198, 11748, 25064, 198, 11748, 299, 32152, 355, 45941, 198, 11748, 11192, 273, 11125, 355, 48700, 198, 198, 361, 7, 11925, 7, 17597, 13, 853, 85, 8, 14512, 513, 259...
2.863894
529
from pyperf import Runner from aiodynamo.utils import deserialize from utils import generate_data data = generate_data() Runner().bench_func("deserialize", deserialize_aiodynamo)
[ 6738, 12972, 525, 69, 1330, 21529, 198, 198, 6738, 257, 72, 24319, 78, 13, 26791, 1330, 748, 48499, 1096, 198, 6738, 3384, 4487, 1330, 7716, 62, 7890, 628, 198, 7890, 796, 7716, 62, 7890, 3419, 628, 198, 198, 49493, 22446, 26968, 62, ...
3.245614
57
""" Module: 'uctypes' on esp8266 v1.9.3 """ # MCU: (sysname='esp8266', nodename='esp8266', release='2.0.0(5a875ba)', version='v1.9.3-8-g63826ac5c on 2017-11-01', machine='ESP module with ESP8266') # Stubber: 1.1.2 ARRAY = -1073741824 BFINT16 = -671088640 BFINT32 = -402653184 BFINT8 = -939524096 BFUINT16 = -805306368 BF...
[ 37811, 198, 26796, 25, 705, 4782, 9497, 6, 319, 15024, 23, 25540, 410, 16, 13, 24, 13, 18, 198, 37811, 198, 2, 13122, 52, 25, 357, 17597, 3672, 11639, 9774, 23, 25540, 3256, 18666, 12453, 11639, 9774, 23, 25540, 3256, 2650, 11639, 1...
2.069182
318
from django.shortcuts import render import textwrap from django.http import HttpResponse from django.views.generic.base import View
[ 6738, 42625, 14208, 13, 19509, 23779, 1330, 8543, 198, 198, 11748, 2420, 37150, 198, 198, 6738, 42625, 14208, 13, 4023, 1330, 367, 29281, 31077, 198, 6738, 42625, 14208, 13, 33571, 13, 41357, 13, 8692, 1330, 3582, 628 ]
3.648649
37
from bs4 import BeautifulSoup
[ 6738, 275, 82, 19, 1330, 23762, 50, 10486, 628 ]
3.444444
9
#!/usr/bin/env python3 import time import signal import json from argparse import ArgumentParser from threading import Event import paho.mqtt.client as mqtt # from pyc_logger import logger # Dependencies # pip3 install paho-mqtt client = None if __name__ == "__main__": parser = ArgumentParser(description...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 18, 220, 198, 11748, 640, 198, 11748, 6737, 198, 11748, 33918, 198, 198, 6738, 1822, 29572, 1330, 45751, 46677, 198, 6738, 4704, 278, 1330, 8558, 198, 11748, 279, 17108, 13, 76, 80, 926, 13...
2.701863
644
# -------------------------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # --------------------------------------------------------------------...
[ 2, 16529, 1783, 10541, 198, 2, 15069, 357, 66, 8, 5413, 10501, 13, 1439, 2489, 10395, 13, 198, 2, 49962, 739, 262, 17168, 13789, 13, 4091, 13789, 13, 14116, 287, 262, 1628, 6808, 329, 5964, 1321, 13, 198, 2, 16529, 1783, 10541, 198,...
2.456005
5,171
from shutil import rmtree import json import numpy as np import traceback import pydub from pydub.playback import play from os import listdir import pygame from pythonosc import udp_client PORT_NUMBER = 3333 IP_NUM = '192.168.43.144' client = udp_client.SimpleUDPClient(IP_NUM, PORT_NUMBER) folder = 'guitar-electric'...
[ 6738, 4423, 346, 1330, 374, 16762, 631, 198, 11748, 33918, 198, 11748, 299, 32152, 355, 45941, 198, 11748, 12854, 1891, 198, 11748, 279, 5173, 549, 198, 6738, 279, 5173, 549, 13, 1759, 1891, 1330, 711, 198, 6738, 28686, 1330, 1351, 1590...
1.977853
2,077
from setuptools import setup, find_packages with open("README.md", "r") as fh: long_description = fh.read() setup( name="spyglass", version="0.0.1", author="Tiago Cesar Katcipis", author_email="tiagokatcipis@gmail.com", long_description=long_description, long_description_content_type="text...
[ 6738, 900, 37623, 10141, 1330, 9058, 11, 1064, 62, 43789, 198, 198, 4480, 1280, 7203, 15675, 11682, 13, 9132, 1600, 366, 81, 4943, 355, 277, 71, 25, 198, 220, 220, 220, 890, 62, 11213, 796, 277, 71, 13, 961, 3419, 198, 198, 40406, ...
2.419811
212
๏ปฟ __version__ = "0.2021.1.5" from .MWAPIException import MWAPIException from .MWCreatePageResult import MWCreatePageResult from .MWNamespaceInfo import MWNamespaceInfo from .MWUserGroupInfo import MWUserGroupInfo from .MWExtensionInfo import MWExtensionInfo from .MWPageContent import MWPageContent from .MWTimesta...
[ 171, 119, 123, 628, 198, 834, 9641, 834, 796, 366, 15, 13, 1238, 2481, 13, 16, 13, 20, 1, 628, 198, 198, 6738, 764, 14326, 17614, 16922, 1330, 29961, 17614, 16922, 198, 198, 6738, 764, 14326, 16447, 9876, 23004, 1330, 29961, 16447, ...
3.513089
191
from flask import Flask from flask_bootstrap import Bootstrap from config import config_options from flask_sqlalchemy import SQLAlchemy from flask_login import LoginManager from flask_uploads import UploadSet, configure_uploads,IMAGES from flask_mail import Mail from flask_simplemde import SimpleMDE bootstrap = Bootst...
[ 6738, 42903, 1330, 46947, 198, 6738, 42903, 62, 18769, 26418, 1330, 18892, 26418, 198, 6738, 4566, 1330, 4566, 62, 25811, 198, 6738, 42903, 62, 25410, 282, 26599, 1330, 16363, 2348, 26599, 198, 6738, 42903, 62, 38235, 1330, 23093, 13511, ...
3.662069
145
#!/usr/bin/python import numpy as np import os import sys import math import matplotlib matplotlib.use('Pdf') import matplotlib.pyplot as plt from mpl_toolkits.axes_grid1 import make_axes_locatable from matplotlib.backends.backend_pdf import PdfPages import matplotlib.font_manager as fm ## 6-1-15 ## Simple code to e...
[ 2, 48443, 14629, 14, 8800, 14, 29412, 198, 198, 11748, 299, 32152, 355, 45941, 198, 11748, 28686, 198, 11748, 25064, 198, 11748, 10688, 198, 11748, 2603, 29487, 8019, 198, 6759, 29487, 8019, 13, 1904, 10786, 47, 7568, 11537, 198, 11748, ...
2.145857
3,476
import random import string import sys import time import traceback import urlparse from SshClient import SshClient from codes import * def random_gen(uuid=None, size=6, chars=string.ascii_uppercase + string.digits): """Generate Random Strings of variable length""" random_string = ''.join(random.choice(char...
[ 11748, 4738, 198, 11748, 4731, 198, 11748, 25064, 198, 11748, 640, 198, 11748, 12854, 1891, 198, 11748, 19016, 29572, 198, 198, 6738, 311, 1477, 11792, 1330, 311, 1477, 11792, 198, 6738, 12416, 1330, 1635, 628, 198, 198, 4299, 4738, 62, ...
2.194733
2,506
# Copyright 2008 (C) Nicira, Inc. # # This file is part of NOX. # # NOX is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, either version 3 of the License, or # (at your option) any later version. # # NOX is d...
[ 2, 15069, 3648, 357, 34, 8, 8377, 8704, 11, 3457, 13, 198, 2, 220, 198, 2, 770, 2393, 318, 636, 286, 8005, 55, 13, 198, 2, 220, 198, 2, 8005, 55, 318, 1479, 3788, 25, 345, 460, 17678, 4163, 340, 290, 14, 273, 13096, 198, 2, ...
2.495327
856
from .loan import * from .mortgage import * __version__ = "0.0.1"
[ 6738, 764, 5439, 272, 1330, 1635, 198, 6738, 764, 30171, 10502, 1330, 1635, 198, 198, 834, 9641, 834, 796, 366, 15, 13, 15, 13, 16, 1, 198 ]
2.481481
27
# -*- coding: utf-8 -*- # @Author : Haonan Wang # @File : CTrans.py # @Software: PyCharm # coding=utf-8 from __future__ import absolute_import from __future__ import division from __future__ import print_function import copy import logging import math import torch import torch.nn as nn import numpy as np from torch...
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 2, 2488, 13838, 220, 1058, 9398, 261, 272, 15233, 198, 2, 2488, 8979, 220, 220, 220, 1058, 327, 8291, 13, 9078, 198, 2, 2488, 25423, 25, 9485, 1925, 1670, 198, 2, 19...
3.032086
187
import numpy as np from htm_rl.envs.biogwlab.environment import Environment from htm_rl.envs.biogwlab.module import EntityType from htm_rl.envs.env import Wrapper
[ 11748, 299, 32152, 355, 45941, 198, 198, 6738, 289, 17209, 62, 45895, 13, 268, 14259, 13, 8482, 519, 86, 23912, 13, 38986, 1330, 9344, 198, 6738, 289, 17209, 62, 45895, 13, 268, 14259, 13, 8482, 519, 86, 23912, 13, 21412, 1330, 20885,...
2.827586
58
#!/usr/bin/env python3 # Copyright 2019 - a2tf import yaml import sys import os import glob import subprocess from subprocess import DEVNULL import argparse from classes.Configuration import Configuration # Copied from Sigma2SplunkAlert - Patrick Bareiss # Copied from Sigma2SplunkAlert - Patrick Bareiss ...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 18, 198, 2, 15069, 13130, 532, 257, 17, 27110, 198, 11748, 331, 43695, 198, 11748, 25064, 198, 11748, 28686, 198, 11748, 15095, 198, 11748, 850, 14681, 198, 6738, 850, 14681, 1330, 5550, 53, ...
2.944444
126
# sim-k496-phi-rho-z.py # Date Who Comment # ---------- --- ----------------------------------------------- # 2020-06-27 JRM Simulate the phi-rho-z curve for K496 for # e0 in 5, 10, 15, 20, 25, and 30kV # import sys sys.packageManager.makeJavaPackage("gov.nist.microanalysis.NISTMonte.Gen3"...
[ 2, 985, 12, 74, 37747, 12, 34846, 12, 81, 8873, 12, 89, 13, 9078, 198, 2, 220, 220, 7536, 220, 220, 220, 220, 220, 5338, 220, 18957, 198, 2, 24200, 438, 220, 11420, 220, 20368, 24305, 198, 2, 12131, 12, 3312, 12, 1983, 220, 449,...
2.225659
873
""" An example library and CLI app using Stock Tuna. Create datasets, classification models, and predictions in historical stock market trends Functions: random_investment(int, int, int, boolean) -> string, 2dlist[string], list[string], float create_data_set(int, int, int, int) -> 2dlist[string], list[float] graph...
[ 37811, 198, 2025, 1672, 5888, 290, 43749, 598, 1262, 10500, 309, 9613, 13, 13610, 40522, 11, 17923, 4981, 11, 290, 16277, 287, 6754, 4283, 1910, 11257, 198, 198, 24629, 2733, 25, 628, 197, 25120, 62, 24859, 434, 7, 600, 11, 493, 11, ...
2.632585
5,389
import glob import logging import os from typing import List, Dict, Union, Tuple import xml.etree.ElementTree as ET from .cache import Cache from .runner.command import Command from .runner.zfs import ZFS from .job import JobBase, JobType, get_constructor from .events import EventRunner
[ 11748, 15095, 198, 11748, 18931, 198, 11748, 28686, 198, 6738, 19720, 1330, 7343, 11, 360, 713, 11, 4479, 11, 309, 29291, 198, 11748, 35555, 13, 316, 631, 13, 20180, 27660, 355, 12152, 198, 198, 6738, 764, 23870, 1330, 34088, 198, 6738,...
3.625
80
๏ปฟkilometros = 12.25 millas = 7.38 millas_a_kilometros = millas * 1.61 kilometros_a_millas = kilometros / 1.61 print(millas, "millas son", round(millas_a_kilometros, 2), "kilรณmetros ") print(kilometros, "kilรณmetros son", round(kilometros_a_millas, 2), "millas")
[ 171, 119, 123, 34553, 908, 4951, 796, 1105, 13, 1495, 198, 17805, 292, 796, 767, 13, 2548, 198, 198, 17805, 292, 62, 64, 62, 34553, 908, 4951, 796, 3939, 292, 1635, 352, 13, 5333, 198, 34553, 908, 4951, 62, 64, 62, 17805, 292, 796...
2.318584
113
from console import Console from rom import ROM from functools import partial, reduce
[ 198, 6738, 8624, 1330, 24371, 198, 6738, 9267, 1330, 21224, 198, 6738, 1257, 310, 10141, 1330, 13027, 11, 4646, 628 ]
4.4
20
# -*- coding: utf-8 -*- """ @author: Jacky Gao @date: Thu Dec 17 03:33:59 2020 """ import numpy as np import matplotlib.pyplot as plt import matplotlib.patches as patches from frcnn import visualize from frcnn.core import utils from frcnn.dataset.voc import VocConfig #%% Configurations config = VocConfig() c...
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 37811, 198, 198, 31, 9800, 25, 3619, 88, 402, 5488, 198, 31, 4475, 25, 26223, 4280, 1596, 7643, 25, 2091, 25, 3270, 12131, 198, 37811, 198, 198, 11748, 299, 32152, 355...
2.118298
1,175
import json import os import boto3 as boto3 import uuid import parascoring.scoring.Utils from parascoring.scoring import scorer as s import logging from botocore.exceptions import ClientError from parascoring.scoring.WaypointOptimizer import WaypointOptimizer logger = logging.getLogger() logger.setLevel(logging.INFO...
[ 11748, 33918, 198, 11748, 28686, 198, 11748, 275, 2069, 18, 355, 275, 2069, 18, 198, 11748, 334, 27112, 198, 198, 11748, 1582, 3372, 3255, 13, 46536, 13, 18274, 4487, 198, 6738, 1582, 3372, 3255, 13, 46536, 1330, 30664, 355, 264, 198, ...
3.059172
169
from pylab import * from scipy.integrate import odeint import warnings import pandas as pd from util.plotting import plot_intime_comparison import itertools class ModelBase: ''' Implements a baseline class for epidemiological models, including - variable check and remapping - ODE IVP solver - metr...
[ 6738, 279, 2645, 397, 1330, 1635, 198, 6738, 629, 541, 88, 13, 18908, 4873, 1330, 267, 2934, 600, 198, 11748, 14601, 198, 11748, 19798, 292, 355, 279, 67, 198, 6738, 7736, 13, 29487, 889, 1330, 7110, 62, 600, 524, 62, 785, 1845, 165...
2.363647
8,379
from treelib import Node, Tree import sys import io import argparse import gzip # Convert tree back to Newick string # Sankoff algorithm using a simple scoring to make most parsimonious # assignments to tree nodes and return transitions if __name__ == "__main__": parser = argparse.ArgumentParser(description='Co...
[ 6738, 2054, 417, 571, 1330, 19081, 11, 12200, 198, 11748, 25064, 198, 11748, 33245, 198, 11748, 1822, 29572, 198, 11748, 308, 13344, 198, 198, 2, 38240, 5509, 736, 284, 968, 624, 4731, 198, 198, 2, 311, 962, 2364, 11862, 1262, 257, 28...
1.926096
1,962
from rest_framework import serializers from wagtail.core.rich_text import expand_db_html from .base_serializer import BasePageSerializer from . import ArticlePage
[ 6738, 1334, 62, 30604, 1330, 11389, 11341, 198, 6738, 266, 363, 13199, 13, 7295, 13, 7527, 62, 5239, 1330, 4292, 62, 9945, 62, 6494, 198, 198, 6738, 764, 8692, 62, 46911, 7509, 1330, 7308, 9876, 32634, 7509, 198, 6738, 764, 1330, 1017...
3.75
44
import pytest from synctogit.main import logger from synctogit.print_on_exception_only import PrintOnExceptionOnly # TODO test logging as well # The problem is that pytest mocks logging, so the logged data # won't reach the handler installed in PrintOnExceptionOnly.
[ 11748, 12972, 9288, 198, 198, 6738, 6171, 310, 519, 270, 13, 12417, 1330, 49706, 198, 6738, 6171, 310, 519, 270, 13, 4798, 62, 261, 62, 1069, 4516, 62, 8807, 1330, 12578, 2202, 16922, 10049, 198, 198, 2, 16926, 46, 1332, 18931, 355, ...
3.626667
75
ES_HOST = 'localhost:9200' ES_INDEX = 'pending-cord_cc' ES_DOC_TYPE = 'geneset' API_PREFIX = 'cord_cc' API_VERSION = ''
[ 198, 1546, 62, 39, 10892, 796, 705, 36750, 25, 24, 2167, 6, 198, 1546, 62, 12115, 6369, 796, 705, 79, 1571, 12, 66, 585, 62, 535, 6, 198, 1546, 62, 38715, 62, 25216, 796, 705, 5235, 274, 316, 6, 198, 198, 17614, 62, 47, 31688, ...
2.033333
60
import sys sys.path.append(".") import os # Change working directory so relative paths (and template lookup) work again os.chdir(os.path.dirname(__file__)) import bottle import slice #bottle.debug(True) application = bottle.default_app()
[ 11748, 25064, 201, 198, 17597, 13, 6978, 13, 33295, 7203, 19570, 201, 198, 201, 198, 11748, 28686, 201, 198, 2, 9794, 1762, 8619, 523, 3585, 13532, 357, 392, 11055, 35847, 8, 670, 757, 201, 198, 418, 13, 354, 15908, 7, 418, 13, 6978...
3
84
import sys, os sys.path = [os.path.abspath(os.path.dirname(os.path.dirname(__file__)))] + sys.path from pmpmanager.db_job_runner import job_runner, InputError import unittest import nose from sqlalchemy import create_engine from sqlalchemy import Table, Column, Integer, String, MetaData, ForeignKey, Boolean, DateTime f...
[ 11748, 25064, 11, 28686, 198, 17597, 13, 6978, 796, 685, 418, 13, 6978, 13, 397, 2777, 776, 7, 418, 13, 6978, 13, 15908, 3672, 7, 418, 13, 6978, 13, 15908, 3672, 7, 834, 7753, 834, 4008, 15437, 1343, 25064, 13, 6978, 198, 6738, 27...
3.210031
319
from ayesaac.services.common import run_service_wrapper from .automatic_speech_recognition import AutomaticSpeechRecognition if __name__ == "__main__": run_service_wrapper(AutomaticSpeechRecognition)
[ 6738, 257, 8505, 64, 330, 13, 30416, 13, 11321, 1330, 1057, 62, 15271, 62, 48553, 198, 198, 6738, 764, 37800, 62, 45862, 62, 26243, 653, 1330, 30199, 5248, 3055, 6690, 2360, 653, 628, 198, 361, 11593, 3672, 834, 6624, 366, 834, 12417,...
3.285714
63
import os import csv import time import subprocess import vcf import pybedtools import xlsxwriter import pandas as pd from decimal import Decimal from .targets import TargetDatabase def get_header(samplesheet): "Read samplesheet and find line with Sample_ID. Return integer." with open(samplesheet, 'r') as f...
[ 11748, 28686, 198, 11748, 269, 21370, 198, 11748, 640, 198, 11748, 850, 14681, 198, 198, 11748, 410, 12993, 198, 11748, 12972, 3077, 31391, 198, 11748, 2124, 7278, 87, 16002, 198, 11748, 19798, 292, 355, 279, 67, 198, 198, 6738, 32465, ...
2.104808
6,469
from soundfactory.utils.signal import (get_envelope, load_audio) from soundfactory.utils.helpers import spectrum from soundfactory.settings.logging_settings import signal_log
[ 6738, 2128, 69, 9548, 13, 26791, 13, 12683, 282, 1330, 357, 1136, 62, 268, 1091, 68, 11, 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,...
2.41573
89
import logging import sys from common.io.net import NetReader from common.util.nodes import extract_nodes from core.io.config import ConfigReader from core.io.od import ODWriter from core.util.config import Config from read_demand.util.node_demand import read_demand if __name__ == '__main__': logger = logging.get...
[ 11748, 18931, 198, 11748, 25064, 198, 198, 6738, 2219, 13, 952, 13, 3262, 1330, 3433, 33634, 198, 6738, 2219, 13, 22602, 13, 77, 4147, 1330, 7925, 62, 77, 4147, 198, 6738, 4755, 13, 952, 13, 11250, 1330, 17056, 33634, 198, 6738, 4755,...
2.992941
425
#!/usr/bin/env python import time from mindwave_driver.wireless_headset import WirelessHeadset from mindwave_driver.common import * headset = WirelessHeadset('/dev/ttyUSB0','7B04', 115200) #headset = WirelessHeadset(r'\\.\COM17','7B04') # windows r'\\.\COMx' #headset.echo_raw() while True: if headset.status == ...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 198, 198, 11748, 640, 198, 198, 6738, 2000, 19204, 62, 26230, 13, 21809, 1203, 62, 2256, 2617, 1330, 24365, 13847, 2617, 198, 6738, 2000, 19204, 62, 26230, 13, 11321, 1330, 1635, 198, 198, ...
2.65
240
from django.conf.urls import url from . import views from django.conf import settings from django.conf.urls.static import static urlpatterns=[ url(r'^$',views.choose_hood,name='choose_hood'), url(r'^setup/hood$',views.setup_hood, name='setup_hood'), url(r'^hood/profile/(\d+)$',views.setup_profile,name='setup_profile'...
[ 6738, 42625, 14208, 13, 10414, 13, 6371, 82, 1330, 19016, 198, 6738, 764, 1330, 5009, 198, 6738, 42625, 14208, 13, 10414, 1330, 6460, 198, 6738, 42625, 14208, 13, 10414, 13, 6371, 82, 13, 12708, 1330, 9037, 628, 198, 6371, 33279, 82, ...
2.701695
295
import tensorflow as tf from tensorflow.python.framework.graph_util import convert_variables_to_constants from tensorflow.python.tools.optimize_for_inference_lib import optimize_for_inference ### UPD old version to tf2/working with tf 1.x def freeze_keras_model(model, export_path=None, clear_devices=True): ...
[ 11748, 11192, 273, 11125, 355, 48700, 198, 198, 6738, 11192, 273, 11125, 13, 29412, 13, 30604, 13, 34960, 62, 22602, 1330, 10385, 62, 25641, 2977, 62, 1462, 62, 9979, 1187, 198, 6738, 11192, 273, 11125, 13, 29412, 13, 31391, 13, 40085, ...
2.350757
727
from OpenGL.GL import * from OpenGL.GLU import * from PyQt5.QtCore import * from PyQt5.QtGui import * from PyQt5.QtWidgets import * from PyQt5.QtOpenGL import * import sys if __name__ == '__main__': app = QApplication(sys.argv) window = MainWindow() window.setWindowTitle("Color Picker Demo") window.sho...
[ 6738, 30672, 13, 8763, 1330, 1635, 198, 6738, 30672, 13, 8763, 52, 1330, 1635, 198, 6738, 9485, 48, 83, 20, 13, 48, 83, 14055, 1330, 1635, 198, 6738, 9485, 48, 83, 20, 13, 48, 83, 8205, 72, 1330, 1635, 198, 6738, 9485, 48, 83, 2...
2.492647
136
# Copyright 2020 Huawei Technologies Co., Ltd # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to...
[ 2, 15069, 12131, 43208, 21852, 1766, 1539, 12052, 198, 2, 198, 2, 49962, 739, 262, 24843, 13789, 11, 10628, 362, 13, 15, 357, 1169, 366, 34156, 15341, 198, 2, 345, 743, 407, 779, 428, 2393, 2845, 287, 11846, 351, 262, 13789, 13, 198...
2.656948
1,029
# # @lc app=leetcode id=733 lang=python3 # # [733] Flood Fill # # @lc code=start from collections import deque # @lc code=end
[ 2, 198, 2, 2488, 44601, 598, 28, 293, 316, 8189, 4686, 28, 49995, 42392, 28, 29412, 18, 198, 2, 198, 2, 685, 49995, 60, 25588, 27845, 198, 2, 198, 198, 2, 2488, 44601, 2438, 28, 9688, 198, 6738, 17268, 1330, 390, 4188, 628, 198, ...
2.5
52
# -*- coding: utf-8 -*- from kbcr.models.reasoning.simple import SimpleHoppy from kbcr.models.reasoning.multi import MultiHoppy from kbcr.models.reasoning.recursive import RecursiveHoppy from kbcr.models.reasoning.hoppy import Hoppy __all__ = [ 'SimpleHoppy', 'MultiHoppy', 'RecursiveHoppy', 'Hoppy' ]
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 198, 6738, 47823, 6098, 13, 27530, 13, 41181, 278, 13, 36439, 1330, 17427, 39, 26696, 198, 6738, 47823, 6098, 13, 27530, 13, 41181, 278, 13, 41684, 1330, 15237, 39, 2669...
2.622951
122
import sys; sys.path.append("../") import unittest import copy import pymongo import bson from collections import OrderedDict from baemo.connection import Connections from baemo.sort import Sort from baemo.model import Model from baemo.collection import Collection from baemo.entity import Entity from baemo.excepti...
[ 198, 11748, 25064, 26, 25064, 13, 6978, 13, 33295, 7203, 40720, 4943, 198, 198, 11748, 555, 715, 395, 198, 11748, 4866, 198, 11748, 279, 4948, 25162, 198, 11748, 275, 1559, 198, 198, 6738, 17268, 1330, 14230, 1068, 35, 713, 198, 198, ...
2.670561
428
# GENERATED BY KOMAND SDK - DO NOT EDIT from .process_bytes.action import ProcessBytes from .process_string.action import ProcessString
[ 2, 24700, 1137, 11617, 11050, 509, 2662, 6981, 26144, 532, 8410, 5626, 48483, 198, 6738, 764, 14681, 62, 33661, 13, 2673, 1330, 10854, 45992, 198, 6738, 764, 14681, 62, 8841, 13, 2673, 1330, 10854, 10100, 198 ]
3.777778
36
"""Classical Binary Search https://www.lintcode.com/problem/classical-binary-search/description """ class Solution: """ @param nums: An integer array sorted in ascending order @param target: An integer @return: An integer """
[ 37811, 9487, 605, 45755, 11140, 198, 5450, 1378, 2503, 13, 75, 600, 8189, 13, 785, 14, 45573, 14, 4871, 605, 12, 39491, 12, 12947, 14, 11213, 198, 37811, 198, 198, 4871, 28186, 25, 198, 220, 220, 220, 37227, 198, 220, 220, 220, 2488...
3.139241
79
import os from resource_management import *
[ 11748, 28686, 198, 6738, 8271, 62, 27604, 1330, 1635, 628, 220, 220, 220, 220, 220, 220, 220, 220, 198, 220, 220, 220, 220, 220, 220, 220, 220 ]
2.296296
27
import numpy as np if __name__ == '__main__': mat_1 = np.array([ [0, 0, 0, 0, 0, 0, 0], [0, 1, 1, 1, 0, 0, 0], [0, 1, 1, 1, 0, 0, 0], [0, 1, 1, 1, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0], ]) mat_2 = np.array([ ...
[ 11748, 299, 32152, 355, 45941, 628, 198, 361, 11593, 3672, 834, 6624, 705, 834, 12417, 834, 10354, 198, 220, 220, 220, 2603, 62, 16, 796, 45941, 13, 18747, 26933, 198, 220, 220, 220, 220, 220, 220, 220, 685, 15, 11, 657, 11, 657, ...
1.470738
393
import requests import time import tldextract from functools import partial from parsel.selector import Selector from selenium import webdriver from selenium.common.exceptions import TimeoutException, WebDriverException from selenium.webdriver.common.by import By from selenium.webdriver.support import expected_conditi...
[ 11748, 7007, 198, 11748, 640, 198, 11748, 256, 335, 2302, 974, 198, 198, 6738, 1257, 310, 10141, 1330, 13027, 198, 6738, 1582, 741, 13, 19738, 273, 1330, 9683, 273, 198, 6738, 384, 11925, 1505, 1330, 3992, 26230, 198, 6738, 384, 11925, ...
2.753293
4,175
# importing Python Maya commands import maya.cmds as cmds #importing random for casual sphere positioning import random def makeClones(name, num): """ Creates a list of duplicate objects - **parameters**, **types**, **return** and **return types**:: :param name: is the name of the Maya object to d...
[ 2, 33332, 11361, 26041, 9729, 198, 11748, 743, 64, 13, 28758, 82, 355, 23991, 82, 198, 198, 2, 11748, 278, 4738, 329, 9341, 16558, 22097, 198, 11748, 4738, 628, 198, 4299, 787, 2601, 1952, 7, 3672, 11, 997, 2599, 198, 220, 220, 220,...
2.401538
1,300
# address_spec.py # This file is auto-generated from the same code that generates # https://docs.patreon.com. Community pull requests against this # file may not be accepted. import pytest from patreon.schemas import address @pytest.fixture @pytest.fixture
[ 2, 2209, 62, 16684, 13, 9078, 198, 2, 770, 2393, 318, 8295, 12, 27568, 422, 262, 976, 2438, 326, 18616, 198, 2, 3740, 1378, 31628, 13, 8071, 21833, 13, 785, 13, 8108, 2834, 7007, 1028, 428, 198, 2, 2393, 743, 407, 307, 6292, 13, ...
3.460526
76
__author__ = '562474' import unittest import json import testRunnerHelper # Test to test DateTime and Geographic Region Validators to ensure they # work as excepted based on the current ODE specification if __name__ == '__main__': unittest.main()
[ 834, 9800, 834, 796, 705, 3980, 1731, 4524, 6, 198, 198, 11748, 555, 715, 395, 198, 11748, 33918, 198, 11748, 1332, 49493, 47429, 198, 198, 2, 6208, 284, 1332, 7536, 7575, 290, 33636, 17718, 48951, 2024, 284, 4155, 484, 198, 2, 670, ...
3.418919
74
"""QTableAgent Class""" import numpy as np from rltools.agents.agent import Agent class QTableAgent(Agent): """ Base class for q learning algorithms """ @property @property @q_table.setter @property @property @boltzmann_temperature.setter
[ 37811, 48, 10962, 36772, 5016, 37811, 198, 198, 11748, 299, 32152, 355, 45941, 198, 6738, 374, 2528, 10141, 13, 49638, 13, 25781, 1330, 15906, 198, 198, 4871, 1195, 10962, 36772, 7, 36772, 2599, 198, 220, 220, 220, 37227, 198, 220, 220,...
2.757282
103
# Copyright 2016 Google Inc. 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 applicable law or ag...
[ 2, 15069, 1584, 3012, 3457, 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, 13789, ...
3.109099
2,154
# # Constant model with multiple outputs. # # This file is part of PINTS. # Copyright (c) 2017-2019, University of Oxford. # For licensing information, see the LICENSE file distributed with the PINTS # software package. # from __future__ import absolute_import, division from __future__ import print_function, unicode...
[ 2, 198, 2, 20217, 2746, 351, 3294, 23862, 13, 198, 2, 198, 2, 770, 2393, 318, 636, 286, 34279, 4694, 13, 198, 2, 220, 15069, 357, 66, 8, 2177, 12, 23344, 11, 2059, 286, 13643, 13, 198, 2, 220, 1114, 15665, 1321, 11, 766, 262, ...
2.247832
1,384
import pandas as pd import numpy as np import matplotlib.pyplot as plt from tqdm import tqdm from sklearn.model_selection import train_test_split from svd.core.mining import get_tokenizer # from gensim.models.word2vec import Word2Vec # from sctokenizer import CTokenizer # from sctokenizer import TokenType # Loads ...
[ 11748, 19798, 292, 355, 279, 67, 198, 11748, 299, 32152, 355, 45941, 198, 11748, 2603, 29487, 8019, 13, 9078, 29487, 355, 458, 83, 198, 198, 6738, 256, 80, 36020, 1330, 256, 80, 36020, 198, 6738, 1341, 35720, 13, 19849, 62, 49283, 133...
2.402072
1,062
#!/usr/bin/env python #---- standard library imports ----# import sys # version check if(not (sys.hexversion >= 0x2050000)): sys.exit("\n\nplease use python version >= 2.5\n\n") import string import re import math import os import time import getopt import zlib import gzip import codecs import optparse import co...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 198, 198, 2, 650, 3210, 5888, 17944, 13498, 2, 198, 11748, 25064, 198, 198, 2, 2196, 2198, 198, 361, 7, 1662, 357, 17597, 13, 33095, 9641, 18189, 657, 87, 21261, 2388, 8, 2599, 198, 220, ...
2.681624
3,276
import argparse import json import logging from enum import Enum from sys import stdin, stdout import z3 from . import solving, compiling def serialize_keys(dd: dict): '''Visit each key in a dict of dicts, and serialize the keys.''' out = {} for k,v in dd.items(): k2 = k if isinstance(k, str) ...
[ 11748, 1822, 29572, 198, 11748, 33918, 198, 11748, 18931, 198, 6738, 33829, 1330, 2039, 388, 198, 6738, 25064, 1330, 14367, 259, 11, 14367, 448, 198, 198, 11748, 1976, 18, 198, 198, 6738, 764, 1330, 18120, 11, 33393, 628, 198, 198, 4299...
2.312195
205
from blueman.Functions import dprint from blueman.plugins.ConfigPlugin import ConfigPlugin from blueman.main.SignalTracker import SignalTracker import cPickle as pickle import os import atexit import dbus.service import dbus.glib import weakref import signal from gi.repository import GObject import copy signal.signa...
[ 6738, 48208, 8463, 13, 24629, 2733, 1330, 288, 4798, 198, 6738, 48208, 8463, 13, 37390, 13, 16934, 37233, 1330, 17056, 37233, 198, 6738, 48208, 8463, 13, 12417, 13, 11712, 282, 35694, 1330, 26484, 35694, 198, 11748, 269, 31686, 293, 355, ...
2.898876
178
from output.models.ibm_data.valid.d3_4_26.d3_4_26v06_xsd.d3_4_26v06 import Root __all__ = [ "Root", ]
[ 6738, 5072, 13, 27530, 13, 571, 76, 62, 7890, 13, 12102, 13, 67, 18, 62, 19, 62, 2075, 13, 67, 18, 62, 19, 62, 2075, 85, 3312, 62, 87, 21282, 13, 67, 18, 62, 19, 62, 2075, 85, 3312, 1330, 20410, 198, 198, 834, 439, 834, 796,...
1.844828
58
import os import cv2 import numpy as np import time import open3d as o3d from data.kitti_Dataset import Kitti_Dataset from pathlib import Path import argparse parser = argparse.ArgumentParser() parser.add_argument('--path_dataset', type=str, default=None, help='dir for the label data', required=True) ar...
[ 11748, 28686, 201, 198, 201, 198, 11748, 269, 85, 17, 201, 198, 11748, 299, 32152, 355, 45941, 201, 198, 11748, 640, 201, 198, 11748, 1280, 18, 67, 355, 267, 18, 67, 201, 198, 6738, 1366, 13, 74, 715, 72, 62, 27354, 292, 316, 1330...
1.72502
2,502
# ---------------------------------------------------------------------------- # robotling_board.py # Global definitions for robotling board. # # The MIT License (MIT) # Copyright (c) 2018 Thomas Euler # 2018-09-13, v1 # 2018-12-22, v1.1 - pins for M4 feather express added # 2020-01-01, v1.2 - pins for hexapod robotlin...
[ 2, 16529, 10541, 198, 2, 9379, 1359, 62, 3526, 13, 9078, 198, 2, 8060, 17336, 329, 9379, 1359, 3096, 13, 198, 2, 198, 2, 383, 17168, 13789, 357, 36393, 8, 198, 2, 15069, 357, 66, 8, 2864, 5658, 412, 18173, 198, 2, 2864, 12, 2931...
2.326573
2,416
from sqlalchemy import exc from flask import current_app, jsonify, request from src import db from src.lib import urlsafe_base64 from src.lib.auth import authenticate from src.blueprints.errors import server_error, not_found from src.blueprints.users.models import User from src.blueprints.posts.models import Post from...
[ 6738, 44161, 282, 26599, 1330, 2859, 198, 6738, 42903, 1330, 1459, 62, 1324, 11, 33918, 1958, 11, 2581, 198, 198, 6738, 12351, 1330, 20613, 198, 6738, 12351, 13, 8019, 1330, 2956, 7278, 8635, 62, 8692, 2414, 198, 6738, 12351, 13, 8019, ...
2.344615
3,575
#-*-coding: utf-8 -*- """ /dms/eduexerciseitem/views_manage.py .. enthaelt den View fuer die Management-Ansicht der Aufgabe Django content Management System Hans Rauch hans.rauch@gmx.net Die Programme des dms-Systems koennen frei genutzt und den spezifischen Beduerfnissen entsprechend angepasst werden. 0.0...
[ 2, 12, 9, 12, 66, 7656, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 37811, 198, 14, 67, 907, 14, 276, 518, 87, 23697, 9186, 14, 33571, 62, 805, 496, 13, 9078, 198, 198, 492, 920, 3099, 2120, 2853, 3582, 14035, 263, 4656, 8549, 12, ...
2.195096
938
#!/bin/python3 import sys import math q = int(input().strip()) for a0 in range(q): a, b = map(int, input().strip().split(' ')) lower_limit = math.ceil(math.sqrt(a)) upper_limit = math.floor(math.sqrt(b)) print(upper_limit - lower_limit + 1)
[ 2, 48443, 8800, 14, 29412, 18, 198, 11748, 25064, 198, 11748, 10688, 628, 198, 80, 796, 493, 7, 15414, 22446, 36311, 28955, 198, 1640, 257, 15, 287, 2837, 7, 80, 2599, 198, 220, 220, 220, 257, 11, 275, 796, 3975, 7, 600, 11, 5128,...
2.433962
106
import torch import cv2 import os import numpy as np from vision.ssd.mobilenet_v2_ssd_lite import create_mobilenetv2_ssd_lite, create_mobilenetv2_ssd_lite_predictor from vision.utils.box_utils import get_iou_numpy CLASS_NAMES_FILE = "models/voc-model-labels.txt" MODEL_FILE = "models/mb2-ssd-lite-mp-0_686.pth" VOC_PA...
[ 11748, 28034, 198, 11748, 269, 85, 17, 198, 11748, 28686, 198, 11748, 299, 32152, 355, 45941, 198, 198, 6738, 5761, 13, 824, 67, 13, 76, 25898, 268, 316, 62, 85, 17, 62, 824, 67, 62, 36890, 1330, 2251, 62, 76, 25898, 268, 316, 85,...
1.968672
2,394
import os try: import spyder except ImportError: spyder = None try: from IPython import get_ipython except ImportError: get_ipython = None ##__________________________________________________________________|| def is_spyder_ide(): """Tests if on Spyder IDE Returns ------- bool ...
[ 11748, 28686, 198, 198, 28311, 25, 198, 220, 220, 220, 1330, 13997, 1082, 198, 16341, 17267, 12331, 25, 198, 220, 220, 220, 13997, 1082, 796, 6045, 198, 198, 28311, 25, 198, 220, 220, 220, 422, 6101, 7535, 1330, 651, 62, 541, 7535, ...
2.564865
370
import os from flask import Flask # setup as application factory (recommended in flask tutorial) def create_app(config=None): """ creates instance of HON Args: config: dictionary to configure app Returns: flask app object """ app = Flask(__name__,instance_...
[ 11748, 28686, 198, 6738, 42903, 1330, 46947, 198, 198, 2, 9058, 355, 3586, 8860, 357, 47335, 1631, 287, 42903, 11808, 8, 198, 4299, 2251, 62, 1324, 7, 11250, 28, 14202, 2599, 198, 220, 220, 220, 37227, 198, 220, 220, 220, 220, 220, ...
2.446377
690
from typing import Any, AsyncGenerator, AsyncIterator, Callable, Optional, Union import asyncio import json import logging from contextlib import asynccontextmanager, suppress from logging import Logger from urllib.parse import urlparse from .backends.base import BaseBackend from .event import Event class Rhubar...
[ 6738, 19720, 1330, 4377, 11, 1081, 13361, 8645, 1352, 11, 1081, 13361, 37787, 11, 4889, 540, 11, 32233, 11, 4479, 198, 198, 11748, 30351, 952, 198, 11748, 33918, 198, 11748, 18931, 198, 6738, 4732, 8019, 1330, 355, 2047, 535, 261, 5239,...
2.423234
5,621
# coding=utf-8 from __future__ import absolute_import, unicode_literals from django.db import models from tests.testapp.constants import ModelState from tximmutability.models import MutableModel from tximmutability.rule import MutabilityRule
[ 2, 19617, 28, 40477, 12, 23, 198, 6738, 11593, 37443, 834, 1330, 4112, 62, 11748, 11, 28000, 1098, 62, 17201, 874, 198, 198, 6738, 42625, 14208, 13, 9945, 1330, 4981, 198, 198, 6738, 5254, 13, 9288, 1324, 13, 9979, 1187, 1330, 9104, ...
3.479452
73
C()
[ 198, 34, 3419 ]
1.333333
3
import gym from typing import Optional, Callable, Tuple from .wrappers import TransitionMonitor def get_gym_spaces(make_env_fn: Callable[..., gym.Env]) -> Tuple[gym.Space, gym.Space]: # pylint: disable=line-too-long """ A utility function to get observation and actions spaces of a Gym environment """ env...
[ 11748, 11550, 198, 6738, 19720, 1330, 32233, 11, 4889, 540, 11, 309, 29291, 198, 198, 6738, 764, 29988, 11799, 1330, 40658, 35479, 628, 198, 198, 4299, 651, 62, 1360, 76, 62, 2777, 2114, 7, 15883, 62, 24330, 62, 22184, 25, 4889, 540, ...
3.14
150
import pytest import numpy as np import pandas as pd from orbit.estimators.stan_estimator import StanEstimatorMAP from orbit.models.ktrlite import BaseKTRLite, KTRLiteMAP from orbit.diagnostics.metrics import smape @pytest.mark.parametrize("estimator_type", [StanEstimatorMAP]) @pytest.mark.parametrize("estimator_t...
[ 11748, 12972, 9288, 198, 11748, 299, 32152, 355, 45941, 198, 11748, 19798, 292, 355, 279, 67, 198, 198, 6738, 13066, 13, 395, 320, 2024, 13, 14192, 62, 395, 320, 1352, 1330, 7299, 22362, 320, 1352, 33767, 198, 6738, 13066, 13, 27530, ...
2.332215
298
import microbit import machine import time
[ 11748, 4580, 2545, 198, 11748, 4572, 198, 11748, 640, 628 ]
4.4
10
from django.contrib import admin from .models import Emails, CouponCode admin.site.register(Emails) admin.site.register(CouponCode)
[ 6738, 42625, 14208, 13, 3642, 822, 1330, 13169, 198, 6738, 764, 27530, 1330, 39617, 11, 43156, 261, 10669, 198, 198, 28482, 13, 15654, 13, 30238, 7, 10161, 1768, 8, 198, 28482, 13, 15654, 13, 30238, 7, 34, 10486, 261, 10669, 8, 198 ]
3.166667
42
''' Created on Mar 7, 2011 @author: johnsalvatier ''' from __future__ import division import numpy as np import scipy.linalg import theano.tensor as tt import theano from .special import gammaln from ..math import logdet as _logdet from pymc3.theanof import floatX c = - 0.5 * np.log(2 * np.pi) def bound(logp, *co...
[ 7061, 6, 198, 41972, 319, 1526, 767, 11, 2813, 198, 198, 31, 9800, 25, 45610, 21680, 85, 265, 959, 198, 7061, 6, 198, 6738, 11593, 37443, 834, 1330, 7297, 198, 198, 11748, 299, 32152, 355, 45941, 198, 11748, 629, 541, 88, 13, 75, ...
2.189758
4,179