content
stringlengths
1
1.05M
input_ids
listlengths
1
883k
ratio_char_token
float64
1
22.9
token_count
int64
1
883k
#!/usr/bin/env python """ Usage examples: python /home/agartlan/gitrepo/utils/ics/mergeGatingSets.py --function functions --ncpus 4 --out functions_extract.csv sbatch -n 1 -t 3-0 -c 4 -o functions_slurm.txt --wrap="python /home/agartlan/gitrepo/utils/ics/mergeGatingSets.py --function functions --ncpus 4 --out functio...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 198, 198, 37811, 198, 28350, 6096, 25, 198, 29412, 1220, 11195, 14, 363, 433, 9620, 14, 18300, 260, 7501, 14, 26791, 14, 873, 14, 647, 469, 38, 803, 50, 1039, 13, 9078, 1377, 8818, 5499, ...
1.990596
3,722
from dataclasses import dataclass
[ 6738, 4818, 330, 28958, 1330, 4818, 330, 31172, 628 ]
3.888889
9
import os import shutil import setuptools # from skbuild import setup from distutils.core import setup from distutils.sysconfig import get_python_lib import glob # if os.path.exists('pysrc/tinygo'): # shutil.rmtree('pysrc/tinygo') # shutil.copytree('tinygo/build/release/tinygo', 'pysrc/tinygo') release_files = ...
[ 198, 11748, 28686, 198, 11748, 4423, 346, 198, 11748, 900, 37623, 10141, 198, 2, 422, 1341, 11249, 1330, 9058, 198, 6738, 1233, 26791, 13, 7295, 1330, 9058, 198, 198, 6738, 1233, 26791, 13, 17597, 11250, 1330, 651, 62, 29412, 62, 8019, ...
2.364066
423
from typing import Callable
[ 6738, 19720, 1330, 4889, 540, 628 ]
4.833333
6
import numpy as np if __name__ == '__main__': h, w = map( int, input().split() ) row_list = [] for i in range(h): single_row = list( map(int, input().split() ) ) np_row = np.array( single_row ) row_list.append( np_row ) min_of_each_row = np.min( row_list, axis = 1) ...
[ 11748, 299, 32152, 355, 45941, 198, 198, 361, 11593, 3672, 834, 6624, 705, 834, 12417, 834, 10354, 628, 220, 220, 220, 289, 11, 266, 796, 3975, 7, 493, 11, 5128, 22446, 35312, 3419, 1267, 628, 220, 220, 220, 5752, 62, 4868, 796, 176...
2.174157
178
import uuid import pickle import pytest import argparse from collections import namedtuple from six import text_type from allure.common import AllureImpl, StepContext from allure.constants import Status, AttachmentType, Severity, \ FAILED_STATUSES, Label, SKIPPED_STATUSES from allure.utils import parent_module, p...
[ 11748, 334, 27112, 198, 11748, 2298, 293, 198, 11748, 12972, 9288, 198, 11748, 1822, 29572, 198, 198, 6738, 17268, 1330, 3706, 83, 29291, 198, 6738, 2237, 1330, 2420, 62, 4906, 198, 198, 6738, 477, 495, 13, 11321, 1330, 1439, 495, 29710...
3.231579
190
# -*- coding: utf-8 -*- from django.conf import settings from django.db import connection import logging import timeit logger = logging.getLogger(__name__)
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 198, 6738, 42625, 14208, 13, 10414, 1330, 6460, 198, 6738, 42625, 14208, 13, 9945, 1330, 4637, 198, 198, 11748, 18931, 198, 11748, 640, 270, 628, 198, 6404, 1362, 796, 1...
2.981481
54
bl_info = { "name": "STRING", "blender": (2, 80, 0), "category": "Object", 'Author' : 'Vibhor Gupta' } import bpy import bmesh def register(): bpy.utils.register_class(STRING) def unregister(): bpy.utils.unregister_class(STRING) # This allows you to ...
[ 2436, 62, 10951, 796, 1391, 201, 198, 220, 220, 220, 366, 3672, 1298, 366, 18601, 2751, 1600, 201, 198, 220, 220, 220, 366, 2436, 2194, 1298, 357, 17, 11, 4019, 11, 657, 828, 201, 198, 220, 220, 220, 366, 22872, 1298, 366, 10267, ...
2.149123
228
""" The DataHandlers subpackage is designed to manipulate data, by allowing different data types to be opened, created, saved and updated. The subpackage is further divided into modules grouped by a common theme. Classes for data that are already on disk normally follows the following pattern: `instance=ClassName(file_...
[ 37811, 198, 464, 6060, 12885, 8116, 850, 26495, 318, 3562, 284, 18510, 1366, 11, 416, 5086, 1180, 1366, 3858, 284, 307, 4721, 11, 198, 25598, 11, 7448, 290, 6153, 13, 383, 850, 26495, 318, 2252, 9086, 656, 13103, 32824, 416, 257, 2219...
3.228571
350
""" Dummy email backend that does nothing. """ from djangomail.backends.base import BaseEmailBackend
[ 37811, 198, 35, 13513, 3053, 30203, 326, 857, 2147, 13, 198, 37811, 198, 198, 6738, 42625, 648, 296, 603, 13, 1891, 2412, 13, 8692, 1330, 7308, 15333, 7282, 437, 628 ]
3.433333
30
#!/usr/bin/env python import re from ansible.module_utils.basic import * # noqa DOCUMENTATION = ''' --- module: scan_services short_description: Return service state information as fact data description: - Return service state information as fact data for various service management utilities version_added: "1.9"...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 198, 198, 11748, 302, 198, 6738, 9093, 856, 13, 21412, 62, 26791, 13, 35487, 1330, 1635, 1303, 645, 20402, 198, 198, 38715, 5883, 3525, 6234, 796, 705, 7061, 198, 6329, 198, 21412, 25, 9367...
2.351279
743
import requests import sys import time import os if __name__ == '__main__': main()
[ 11748, 7007, 198, 11748, 25064, 198, 11748, 640, 198, 11748, 28686, 628, 628, 198, 361, 11593, 3672, 834, 6624, 705, 834, 12417, 834, 10354, 198, 220, 220, 220, 1388, 3419 ]
3
30
import requests from typing import List, Optional from .models import AS, Domain, IP, CVE, Account, Certificate, Email, DNSHistoricalRecord, WHOISHistoricalRecord from .response import Response from .search_query import SearchQuery from limiter import get_limiter, limit
[ 11748, 7007, 198, 6738, 19720, 1330, 7343, 11, 32233, 198, 198, 6738, 764, 27530, 1330, 7054, 11, 20021, 11, 6101, 11, 24640, 11, 10781, 11, 27895, 11, 9570, 11, 18538, 13749, 12409, 23739, 11, 19494, 1797, 13749, 12409, 23739, 198, 673...
4.014286
70
from matplotlib.colors import ListedColormap cm3 = ListedColormap(['#0000aa', '#ff2020', '#50ff50']) cm2 = ListedColormap(['#0000aa', '#ff2020'])
[ 6738, 2603, 29487, 8019, 13, 4033, 669, 1330, 406, 6347, 5216, 579, 499, 198, 198, 11215, 18, 796, 406, 6347, 5216, 579, 499, 7, 17816, 2, 2388, 7252, 3256, 705, 2, 487, 42334, 3256, 705, 2, 1120, 487, 1120, 6, 12962, 198, 11215, ...
2.333333
63
from flask import render_template # Error Pages ----------------------------------------------------------------
[ 6738, 42903, 1330, 8543, 62, 28243, 198, 198, 2, 13047, 28221, 16529, 628, 628 ]
8.357143
14
from .._BlackJack import BlackJackCPP import gym import ctypes import numpy as np from gym import spaces
[ 6738, 11485, 62, 9915, 14295, 1330, 2619, 14295, 8697, 47, 198, 198, 11748, 11550, 198, 11748, 269, 19199, 198, 11748, 299, 32152, 355, 45941, 198, 6738, 11550, 1330, 9029, 628 ]
3.566667
30
# # 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 "License"); you may not us...
[ 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, 670, 329, 3224, 1321, 5115, 6634, 9238, 13, 198, 2, 383, ...
3.647312
465
#!/bin/env python # -*- coding: utf-8 -*- """ | This file is part of the web2py Web Framework | Copyrighted by Massimo Di Pierro <mdipierro@cs.depaul.edu> | License: LGPLv3 (http://www.gnu.org/licenses/lgpl.html) The gluon wsgi application --------------------------- """ from __future__ import print_function if Fals...
[ 2, 48443, 8800, 14, 24330, 21015, 198, 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 198, 37811, 198, 91, 770, 2393, 318, 636, 286, 262, 3992, 17, 9078, 5313, 25161, 198, 91, 15069, 276, 416, 5674, 25147, 6031, 13...
2.190688
11,018
import logging log = logging.getLogger('marketagents') from enforce_typing import enforce_types # type: ignore[import] import random from agents.PublisherAgent import PublisherAgent from agents.PoolAgent import PoolAgent from util import constants from util.constants import POOL_WEIGHT_DT, POOL_WEIGHT_OCEAN from web3...
[ 11748, 18931, 198, 6404, 796, 18931, 13, 1136, 11187, 1362, 10786, 10728, 49638, 11537, 198, 198, 6738, 4605, 62, 774, 13886, 1330, 4605, 62, 19199, 1303, 2099, 25, 8856, 58, 11748, 60, 198, 11748, 4738, 198, 198, 6738, 6554, 13, 46471,...
3.491803
122
import numpy as np from . import _version __version__ = _version.get_versions()['version'] HXR_COLORS = ("#000000", "#02004a", "#030069", "#04008f", "#0500b3", "#0700ff") SXR_COLORS = ("#000000", "#330000", "#520000", "#850000", "#ad0000", "#ff0000") HXR_AREAS = { "GUN" : [2017.911, 2018.712], "L0" : [2018....
[ 11748, 299, 32152, 355, 45941, 198, 6738, 764, 1330, 4808, 9641, 198, 834, 9641, 834, 796, 4808, 9641, 13, 1136, 62, 47178, 3419, 17816, 9641, 20520, 628, 198, 198, 39, 55, 49, 62, 25154, 20673, 796, 5855, 2, 10535, 1600, 25113, 15, ...
1.825843
890
import os import tempfile import numpy as np import tensorflow as tf from time import time from termcolor import cprint from unittest import TestCase from .. import K from .. import Input, Dense, GRU, Bidirectional, Embedding from .. import Model, load_model from .. import l2 from .. import maxnorm from .. import Ada...
[ 11748, 28686, 198, 11748, 20218, 7753, 198, 11748, 299, 32152, 355, 45941, 198, 11748, 11192, 273, 11125, 355, 48700, 198, 198, 6738, 640, 1330, 640, 198, 6738, 3381, 8043, 1330, 269, 4798, 198, 6738, 555, 715, 395, 1330, 6208, 20448, 1...
2.908696
230
# Generated by Django 2.2.10 on 2020-02-18 12:51 import django.contrib.postgres.indexes from django.db import migrations from django.db import models
[ 2, 2980, 515, 416, 37770, 362, 13, 17, 13, 940, 319, 12131, 12, 2999, 12, 1507, 1105, 25, 4349, 198, 11748, 42625, 14208, 13, 3642, 822, 13, 7353, 34239, 13, 9630, 274, 198, 6738, 42625, 14208, 13, 9945, 1330, 15720, 602, 198, 6738,...
3.02
50
from sympy.tensor.functions import TensorProduct from sympy import MatrixSymbol, Matrix, Array from sympy.abc import x, y, z from sympy.abc import i, j, k, l A = MatrixSymbol("A", 3, 3) B = MatrixSymbol("B", 3, 3) C = MatrixSymbol("C", 3, 3)
[ 6738, 10558, 88, 13, 83, 22854, 13, 12543, 2733, 1330, 309, 22854, 15667, 198, 6738, 10558, 88, 1330, 24936, 13940, 23650, 11, 24936, 11, 15690, 198, 6738, 10558, 88, 13, 39305, 1330, 2124, 11, 331, 11, 1976, 198, 6738, 10558, 88, 13,...
2.655914
93
from django.shortcuts import render # Create your views here.
[ 6738, 42625, 14208, 13, 19509, 23779, 1330, 8543, 198, 198, 2, 13610, 534, 5009, 994, 13, 198, 220, 220, 220, 220, 198 ]
3.090909
22
# This module is about my webcrawler with the use of scrapy. # Its a generell web crawler, but the import and use of GhAdapter makes it usefull for geizhals.de sites. from abc import ABC, abstractmethod import scrapy
[ 2, 770, 8265, 318, 546, 616, 3992, 66, 39464, 351, 262, 779, 286, 15881, 88, 13, 198, 2, 6363, 257, 2429, 567, 297, 3992, 27784, 1754, 11, 475, 262, 1330, 290, 779, 286, 11972, 47307, 1838, 340, 779, 12853, 329, 4903, 528, 71, 874...
3.460317
63
import os import sys import time import random import string import argparse import torch import torch.backends.cudnn as cudnn import torch.nn.init as init import torch.optim as optim import torch.utils.data import numpy as np from utils import CTCLabelConverter, CTCLabelConverterForBaiduWarpctc, AttnLabelConverter, ...
[ 11748, 28686, 198, 11748, 25064, 198, 11748, 640, 198, 11748, 4738, 198, 11748, 4731, 198, 11748, 1822, 29572, 198, 198, 11748, 28034, 198, 11748, 28034, 13, 1891, 2412, 13, 66, 463, 20471, 355, 269, 463, 20471, 198, 11748, 28034, 13, 2...
2.276504
6,716
#!/usr/bin/env python # -*- coding: utf-8 -*- # -*- mode: python -*- import aiopg import psycopg2 import tornado.locks from tornado.options import define, options from tornado.web import Application from app.application import Application define('port', default=8080, help="listening port") define('bind_address', def...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 198, 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 2, 532, 9, 12, 4235, 25, 21015, 532, 9, 12, 198, 198, 11748, 257, 14922, 70, 198, 11748, 17331, 22163, 70, 17, 198,...
3.313131
198
#!/usr/bin/env python # pipescaler/core/stage.py # # Copyright (C) 2020-2021 Karl T Debiec # All rights reserved. # # This software may be modified and distributed under the terms of the # BSD license. from __future__ import annotations from abc import ABC, abstractmethod from importlib.util import module_fr...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 198, 2, 220, 220, 7347, 3798, 36213, 14, 7295, 14, 14247, 13, 9078, 198, 2, 198, 2, 220, 220, 15069, 357, 34, 8, 12131, 12, 1238, 2481, 15415, 309, 8965, 494, 66, 198, 2, 220, 220, 14...
3.272059
136
from django.conf.urls import url, include from project.api.rankings.api import AddRanking, AddScore, GetScoresUser, GetScoresGame urlpatterns = [ url(r'add_ranking$', AddRanking.as_view()), url(r'add_score$', AddScore.as_view()), url(r'get_scores_game$', GetScoresGame.as_view()), url(r'get_scores_user$...
[ 6738, 42625, 14208, 13, 10414, 13, 6371, 82, 1330, 19016, 11, 2291, 198, 6738, 1628, 13, 15042, 13, 43027, 654, 13, 15042, 1330, 3060, 49, 15230, 11, 3060, 26595, 11, 3497, 3351, 2850, 12982, 11, 3497, 3351, 2850, 8777, 198, 198, 6371...
2.457746
142
# -*- coding: utf-8 -*- # This code is part of Qiskit. # # (C) Copyright IBM 2017, 2021. # # This code is licensed under the Apache License, Version 2.0. You may # obtain a copy of this license in the LICENSE.txt file in the root directory # of this source tree or at http://www.apache.org/licenses/LICENSE-2.0. # # Any...
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 198, 2, 770, 2438, 318, 636, 286, 1195, 1984, 270, 13, 198, 2, 198, 2, 357, 34, 8, 15069, 19764, 2177, 11, 33448, 13, 198, 2, 198, 2, 770, 2438, 318, 11971, 739, ...
3.435754
179
# Generated by the protocol buffer compiler. DO NOT EDIT! # source: protobufs/services/feature/actions/get_flags.proto from google.protobuf import descriptor as _descriptor from google.protobuf import message as _message from google.protobuf import reflection as _reflection from google.protobuf import symbol_database...
[ 2, 2980, 515, 416, 262, 8435, 11876, 17050, 13, 220, 8410, 5626, 48483, 0, 198, 2, 2723, 25, 1237, 672, 3046, 82, 14, 30416, 14, 30053, 14, 4658, 14, 1136, 62, 33152, 13, 1676, 1462, 198, 198, 6738, 23645, 13, 11235, 672, 3046, 13...
2.542857
1,925
# ------------------------------ # Binary Tree Level Order Traversal # # Description: # Given a binary tree, return the level order traversal of its nodes' values. (ie, from # left to right, level by level). # # For example: # Given binary tree [3,9,20,null,null,15,7], # 3 # / \ # 9 20 # / \ # 15 ...
[ 2, 34400, 26171, 198, 2, 45755, 12200, 5684, 8284, 4759, 690, 282, 198, 2, 220, 198, 2, 12489, 25, 198, 2, 11259, 257, 13934, 5509, 11, 1441, 262, 1241, 1502, 33038, 282, 286, 663, 13760, 6, 3815, 13, 357, 494, 11, 422, 220, 198, ...
2.651099
364
import sys sys.path.append('../../') import constants as cnst import os os.environ['PYTHONHASHSEED'] = '2' import tqdm from model.stg2_generator import StyledGenerator import numpy as np from my_utils.visualize_flame_overlay import OverLayViz from my_utils.flm_dynamic_fit_overlay import camera_ringnetpp from my_utils.g...
[ 11748, 25064, 198, 17597, 13, 6978, 13, 33295, 10786, 40720, 40720, 11537, 198, 11748, 38491, 355, 269, 77, 301, 198, 11748, 28686, 198, 418, 13, 268, 2268, 17816, 47, 56, 4221, 1340, 39, 11211, 5188, 1961, 20520, 796, 705, 17, 6, 198...
2.093348
3,653
from distutils.core import setup """ django-activity-stream instalation script """ setup( name = 'activity_stream', description = 'generic activity feed system for users', author = 'Philipp Wassibauer', author_email = 'phil@maptales.com', url='http://github.com/philippWassibauer/django-activity-st...
[ 198, 6738, 1233, 26791, 13, 7295, 1330, 9058, 198, 198, 37811, 42625, 14208, 12, 21797, 12, 5532, 916, 282, 341, 4226, 37227, 198, 40406, 7, 198, 220, 220, 220, 1438, 796, 705, 21797, 62, 5532, 3256, 198, 220, 220, 220, 6764, 796, 7...
2.887097
310
from selenium import webdriver username = "henlix" password = "my_password" browser = webdriver.PhantomJS() browser.implicitly_wait(5) url_login = "https://nid.naver.com/nidlogin.login" browser.get(url_login) el = browser.find_element_by_id("id") el.clear() el.send_keys(username) el = browser.find_element_by_id("p...
[ 6738, 384, 11925, 1505, 1330, 3992, 26230, 198, 198, 29460, 796, 366, 831, 75, 844, 1, 198, 28712, 796, 366, 1820, 62, 28712, 1, 198, 198, 40259, 796, 3992, 26230, 13, 2725, 11456, 20120, 3419, 198, 40259, 13, 23928, 3628, 306, 62, ...
2.576389
288
from matplotlib import pyplot as plt drinks = ["cappuccino", "latte", "chai", "americano", "mocha", "espresso"] ounces_of_milk = [6, 9, 4, 0, 9, 0] error = [0.6, 0.9, 0.4, 0, 0.9, 0] #Yerr -> element at i position represents +/- error[i] variance on bar[i] value plt.bar( range(len(drinks)),ounces_of_milk, yerr=error,...
[ 6738, 2603, 29487, 8019, 1330, 12972, 29487, 355, 458, 83, 198, 198, 7109, 2973, 796, 14631, 66, 1324, 18863, 2879, 1600, 366, 15460, 660, 1600, 366, 354, 1872, 1600, 366, 2382, 291, 5733, 1600, 366, 76, 5374, 64, 1600, 366, 9774, 338...
2.333333
147
import demistomock as demisto from CommonServerPython import * """ IMPORTS """ import json import urllib3 import dateparser import traceback from typing import Any, Dict, List, Union import logging from argus_api import session as argus_session from argus_api.api.currentuser.v1.user import get_current_user from ...
[ 11748, 1357, 396, 296, 735, 355, 1357, 396, 78, 198, 6738, 8070, 10697, 37906, 1330, 1635, 198, 198, 37811, 30023, 33002, 37227, 198, 198, 11748, 33918, 198, 11748, 2956, 297, 571, 18, 198, 198, 11748, 3128, 48610, 198, 11748, 12854, 18...
2.414702
721
#!/usr/bin/env python3 import sys, os import unittest from lib.common import * filename = "inputs/2020_12_03_input.txt"
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 18, 198, 198, 11748, 25064, 11, 28686, 198, 11748, 555, 715, 395, 198, 6738, 9195, 13, 11321, 1330, 1635, 198, 198, 34345, 796, 366, 15414, 82, 14, 42334, 62, 1065, 62, 3070, 62, 15414, 1...
2.645833
48
# Tool Imports from bph.tools.windows.capturebat import BphCaptureBat as CaptureBat # Core Imports from bph.core.server.template import BphTemplateServer as TemplateServer from bph.core.sample import BphSample as Sample from bph.core.sample import BphLabFile as LabFile from bph.core.session import BphSession as...
[ 2, 16984, 1846, 3742, 201, 198, 6738, 275, 746, 13, 31391, 13, 28457, 13, 27144, 495, 8664, 1330, 347, 746, 49630, 24541, 355, 31793, 24541, 201, 198, 201, 198, 2, 7231, 1846, 3742, 201, 198, 6738, 275, 746, 13, 7295, 13, 15388, 13,...
2.924686
239
import unittest import numpy as np from numpy.testing import assert_almost_equal from dymos.utils.hermite import hermite_matrices if __name__ == '__main__': # pragma: no cover unittest.main()
[ 11748, 555, 715, 395, 198, 198, 11748, 299, 32152, 355, 45941, 198, 6738, 299, 32152, 13, 33407, 1330, 6818, 62, 28177, 62, 40496, 198, 198, 6738, 288, 4948, 418, 13, 26791, 13, 372, 32937, 1330, 607, 32937, 62, 6759, 45977, 628, 198,...
2.84507
71
# -*- coding: utf-8 -*- """Application configuration.""" from __future__ import absolute_import, division, print_function, unicode_literals import os from . import __author__, __name__, __version__
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 37811, 23416, 8398, 526, 15931, 198, 198, 6738, 11593, 37443, 834, 1330, 4112, 62, 11748, 11, 7297, 11, 3601, 62, 8818, 11, 28000, 1098, 62, 17201, 874, 198, 198, 11748,...
3.203125
64
"""Functional authentication tests with fake MRP Apple TV.""" import inspect from aiohttp.test_utils import AioHTTPTestCase, unittest_run_loop import pyatv from pyatv import exceptions from pyatv.const import Protocol from pyatv.conf import MrpService, AppleTV from pyatv.mrp.server_auth import PIN_CODE, CLIENT_IDENT...
[ 37811, 22203, 282, 18239, 5254, 351, 8390, 17242, 47, 4196, 3195, 526, 15931, 198, 198, 11748, 10104, 198, 198, 6738, 257, 952, 4023, 13, 9288, 62, 26791, 1330, 317, 952, 40717, 14402, 20448, 11, 555, 715, 395, 62, 5143, 62, 26268, 19...
3.241667
120
# -*- coding: utf-8 -*- from django.db import models
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 6738, 42625, 14208, 13, 9945, 1330, 4981, 628 ]
2.454545
22
# ****************************************************************************** # Copyright 2018 Intel Corporation # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.o...
[ 2, 41906, 17174, 46068, 1174, 198, 2, 15069, 2864, 8180, 10501, 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, ...
4.509434
212
import numpy as np # The first two functions are modified from MNE surface project. LIcense follows # This software is OSI Certified Open Source Software. OSI Certified is a certification mark of the Open Source Initiative. # # Copyright (c) 2011-2019, authors of MNE-Python. All rights reserved. # # Redistribu...
[ 11748, 299, 32152, 355, 45941, 198, 198, 2, 220, 383, 717, 734, 5499, 389, 9518, 422, 337, 12161, 4417, 1628, 13, 24653, 66, 1072, 5679, 198, 2, 220, 770, 3788, 318, 7294, 40, 36054, 4946, 8090, 10442, 13, 7294, 40, 36054, 318, 257,...
2.490584
2,071
# Copyright 2020 Konstruktor, 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 la...
[ 2, 15069, 12131, 17431, 19554, 74, 13165, 11, 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, ...
3.074275
552
## Copyright 2005-2007 Virtutech AB ## ## The contents herein are Source Code which are a subset of Licensed ## Software pursuant to the terms of the Virtutech Simics Software ## License Agreement (the "Agreement"), and are being distributed under ## the Agreement. You should have received a copy of the Agreeme...
[ 2235, 220, 15069, 5075, 12, 12726, 11285, 1133, 354, 9564, 198, 2235, 220, 220, 198, 2235, 220, 383, 10154, 24028, 389, 8090, 6127, 543, 389, 257, 24637, 286, 49962, 198, 2235, 220, 10442, 12997, 284, 262, 2846, 286, 262, 11285, 1133, ...
3.461538
442
# Generated by Django 3.0.1 on 2020-02-15 06:02 from django.db import migrations, models
[ 2, 2980, 515, 416, 37770, 513, 13, 15, 13, 16, 319, 12131, 12, 2999, 12, 1314, 9130, 25, 2999, 198, 198, 6738, 42625, 14208, 13, 9945, 1330, 15720, 602, 11, 4981, 628 ]
2.84375
32
""" Unit test for the DAG endpoints """ # Import from libraries import json # Import from internal modules from cornflow.shared.const import EXEC_STATE_CORRECT, EXEC_STATE_MANUAL from cornflow.tests.const import ( DAG_URL, EXECUTION_URL_NORUN, CASE_PATH, INSTANCE_URL, ) from cornflow.tests.unit.test_e...
[ 37811, 198, 26453, 1332, 329, 262, 360, 4760, 886, 13033, 198, 37811, 198, 198, 2, 17267, 422, 12782, 198, 11748, 33918, 198, 198, 2, 17267, 422, 5387, 13103, 198, 6738, 11676, 11125, 13, 28710, 13, 9979, 1330, 7788, 2943, 62, 44724, ...
2.90625
128
#-------------------------------------------------------------# # ResNet50 #-------------------------------------------------------------# import keras.backend as K from keras import backend as K from keras import initializers, layers, regularizers from keras.engine import InputSpec, Layer from keras.initializ...
[ 2, 47232, 32501, 2, 201, 198, 2, 220, 220, 1874, 7934, 1120, 201, 198, 2, 47232, 32501, 2, 201, 198, 11748, 41927, 292, 13, 1891, 437, 355, 509, 201, 198, 6738, 41927, 292, 1330, 30203, 355, 509, 201, 198, 6738, 41927, 292, 1330, ...
3.3
150
from typing import Generator from fastapi import Depends, HTTPException from fastapi.security import APIKeyHeader from sqlalchemy.orm import Session from starlette import status from app import crud, models from app.core import security from app.db.session import SessionLocal JWT_TOKEN_PREFIX = "Token" # noqa: S105...
[ 6738, 19720, 1330, 35986, 198, 198, 6738, 3049, 15042, 1330, 2129, 2412, 11, 14626, 16922, 198, 6738, 3049, 15042, 13, 12961, 1330, 7824, 9218, 39681, 198, 6738, 44161, 282, 26599, 13, 579, 1330, 23575, 198, 6738, 3491, 21348, 1330, 3722,...
3.6
90
import sys from typing import Dict, List, Tuple import structlog from eth_utils import to_canonical_address from raiden.utils.typing import Address, BlockNumber, ChainID, Optional from raiden_contracts.contract_manager import ( ContractDevEnvironment, ContractManager, contracts_precompiled_path, get_c...
[ 11748, 25064, 198, 6738, 19720, 1330, 360, 713, 11, 7343, 11, 309, 29291, 198, 198, 11748, 2878, 6404, 198, 6738, 4555, 62, 26791, 1330, 284, 62, 49883, 605, 62, 21975, 198, 198, 6738, 9513, 268, 13, 26791, 13, 774, 13886, 1330, 17917...
2.850365
822
# coding=utf-8 # Copyright 2022 The Meta-Dataset Authors. # # 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, 19617, 28, 40477, 12, 23, 198, 2, 15069, 33160, 383, 30277, 12, 27354, 292, 316, 46665, 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, ...
2.967342
888
import os import threading import shutil from datetime import timedelta, datetime from flask import Flask, render_template, request, session, jsonify, url_for, redirect from haystack.document_store.elasticsearch import * from haystack.preprocessor.utils import convert_files_to_dicts from haystack.preprocessor.cleaning ...
[ 11748, 28686, 198, 11748, 4704, 278, 198, 11748, 4423, 346, 198, 6738, 4818, 8079, 1330, 28805, 12514, 11, 4818, 8079, 198, 6738, 42903, 1330, 46947, 11, 8543, 62, 28243, 11, 2581, 11, 6246, 11, 33918, 1958, 11, 19016, 62, 1640, 11, 1...
3.821248
593
#!/usr/bin/python3 # -*- coding: utf8 -*- # -*- Mode: Python; py-indent-offset: 4 -*- """File storage adapter for timevortex project""" import os from os import listdir, makedirs from os.path import isfile, join, exists from time import tzname from datetime import datetime import pytz import dateutil.parser from djan...
[ 2, 48443, 14629, 14, 8800, 14, 29412, 18, 198, 2, 532, 9, 12, 19617, 25, 3384, 69, 23, 532, 9, 12, 198, 2, 532, 9, 12, 10363, 25, 11361, 26, 12972, 12, 521, 298, 12, 28968, 25, 604, 532, 9, 12, 198, 198, 37811, 8979, 6143, 2...
2.41018
1,002
import os import logging import logging.config from functools import partial from dotenv import load_dotenv from telegram import Bot, ReplyKeyboardMarkup, ReplyKeyboardRemove from telegram.ext import (Updater, CommandHandler, MessageHandler, RegexHandler, ConversationHandler, Filters) from red...
[ 11748, 28686, 198, 11748, 18931, 198, 11748, 18931, 13, 11250, 198, 6738, 1257, 310, 10141, 1330, 13027, 198, 6738, 16605, 24330, 1330, 3440, 62, 26518, 24330, 198, 6738, 573, 30536, 1330, 18579, 11, 14883, 9218, 3526, 9704, 929, 11, 1488...
3.051724
174
import tensorflow as tf from typing import Optional from tf_fourier_features import fourier_features
[ 11748, 11192, 273, 11125, 355, 48700, 198, 6738, 19720, 1330, 32233, 198, 6738, 48700, 62, 69, 280, 5277, 62, 40890, 1330, 46287, 5277, 62, 40890, 628, 198 ]
3.814815
27
import urlparse import csv import sys import re import collections import time import requests from eek import robotparser # this project's version from bs4 import BeautifulSoup try: import lxml except ImportError: HTML_PARSER = None else: HTML_PARSER = 'lxml' encoding_re = re.compile("charset\s*=\s*(\...
[ 11748, 19016, 29572, 198, 11748, 269, 21370, 198, 11748, 25064, 198, 11748, 302, 198, 11748, 17268, 198, 11748, 640, 198, 11748, 7007, 198, 198, 6738, 304, 988, 1330, 9379, 48610, 220, 1303, 428, 1628, 338, 2196, 198, 6738, 275, 82, 19,...
2.422172
893
# -*- coding: utf-8 -*- from __future__ import absolute_import from __future__ import division from __future__ import print_function import csv import numpy as np import os import sys from observations.util import maybe_download_and_extract def zea_mays(path): """Darwin's Heights of Cross- and Self-fertilized Zea...
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 6738, 11593, 37443, 834, 1330, 4112, 62, 11748, 198, 6738, 11593, 37443, 834, 1330, 7297, 198, 6738, 11593, 37443, 834, 1330, 3601, 62, 8818, 198, 198, 11748, 269, 21370, ...
2.93459
902
from typing import List from dataclasses import dataclass from .Line import Line
[ 6738, 19720, 1330, 7343, 198, 6738, 4818, 330, 28958, 1330, 4818, 330, 31172, 198, 6738, 764, 13949, 1330, 6910, 628 ]
4.1
20
__author__ = 'Jose Gabriel' import os import pprint if __name__ == '__main__': s = "adi" + os.sep + "ADI.ALL" out_folder = "test_index" try: # averiguar como preguntar si una carpeta o fichero existe en python os.mkdir(out_folder) except FileExistsError: pass ...
[ 834, 9800, 834, 796, 705, 23409, 17371, 6, 201, 198, 201, 198, 11748, 28686, 201, 198, 11748, 279, 4798, 201, 198, 201, 198, 201, 198, 201, 198, 201, 198, 201, 198, 201, 198, 361, 11593, 3672, 834, 6624, 705, 834, 12417, 834, 10354,...
2.052632
171
#!/usr/bin/env python # vim: ai ts=4 sts=4 et sw=4 encoding=utf-8 from django.contrib import admin from groups.models import Group admin.site.register(Group)
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 198, 2, 43907, 25, 257, 72, 40379, 28, 19, 39747, 28, 19, 2123, 1509, 28, 19, 21004, 28, 40477, 12, 23, 198, 6738, 42625, 14208, 13, 3642, 822, 1330, 13169, 198, 198, 6738, 2628, 13, 27...
2.824561
57
# Copyright 2017 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.org/licenses/LICENSE-2.0 # # Unless required by applica...
[ 2, 15069, 2177, 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, 1169, 366, 34156, 15341, 198, 2, 345, 743, 407, 779, 428, 2393, 2845, 287, 11846, ...
3.899441
358
from flask_sqlalchemy import SQLAlchemy, Model # class BaseModel(Model): # def save(self): # db.session.add(self) # db.session.commit(self) # def delete(self): # db.session. db = SQLAlchemy()
[ 6738, 42903, 62, 25410, 282, 26599, 1330, 16363, 2348, 26599, 11, 9104, 198, 198, 2, 1398, 7308, 17633, 7, 17633, 2599, 198, 198, 2, 825, 3613, 7, 944, 2599, 198, 2, 220, 220, 220, 220, 20613, 13, 29891, 13, 2860, 7, 944, 8, 198, ...
2.47619
84
import os.path import threading import typing from prometheus_client import start_http_server from prometheus_client.core import GaugeMetricFamily, REGISTRY from kvmagent import kvmagent from zstacklib.utils import http from zstacklib.utils import jsonobject from zstacklib.utils import lock from zstacklib.utils impor...
[ 11748, 28686, 13, 6978, 198, 11748, 4704, 278, 198, 198, 11748, 19720, 198, 6738, 1552, 36916, 62, 16366, 1330, 923, 62, 4023, 62, 15388, 198, 6738, 1552, 36916, 62, 16366, 13, 7295, 1330, 35094, 469, 9171, 1173, 24094, 11, 23337, 1797,...
2.70219
685
from conans import ConanFile, AutoToolsBuildEnvironment, MSBuild, tools from conans.errors import ConanInvalidConfiguration import os import shutil required_conan_version = ">=1.33.0"
[ 6738, 369, 504, 1330, 31634, 8979, 11, 11160, 33637, 15580, 31441, 11, 6579, 15580, 11, 4899, 198, 6738, 369, 504, 13, 48277, 1330, 31634, 44651, 38149, 198, 11748, 28686, 198, 11748, 4423, 346, 198, 198, 35827, 62, 1102, 272, 62, 9641,...
3.576923
52
# Copyright 2020 Wen Ji & Kelei He (hkl@nju.edu.cn) # 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 requ...
[ 201, 198, 2, 220, 220, 220, 15069, 12131, 31164, 29380, 1222, 3873, 293, 72, 679, 357, 71, 41582, 31, 77, 14396, 13, 15532, 13, 31522, 8, 201, 198, 2, 220, 220, 220, 49962, 739, 262, 24843, 13789, 11, 10628, 362, 13, 15, 357, 1169...
2.986486
222
import datetime import json import time from typing import Optional from web3.datastructures import AttributeDict from .event_scanner_state import EventScannerState
[ 11748, 4818, 8079, 198, 11748, 33918, 198, 11748, 640, 198, 6738, 19720, 1330, 32233, 198, 198, 6738, 3992, 18, 13, 19608, 459, 1356, 942, 1330, 3460, 4163, 35, 713, 198, 198, 6738, 764, 15596, 62, 35836, 1008, 62, 5219, 1330, 8558, 3...
3.733333
45
# Adapted from https://github.com/pmocz/nbody-python/blob/master/nbody.py # TODO: Add GPL-3.0 License import numpy as np import dace as dc """ Create Your Own N-body Simulation (With Python) Philip Mocz (2020) Princeton Univeristy, @PMocz Simulate orbits of stars interacting due to gravity Code calculates pairwise for...
[ 2, 30019, 276, 422, 3740, 1378, 12567, 13, 785, 14, 4426, 420, 89, 14, 77, 2618, 12, 29412, 14, 2436, 672, 14, 9866, 14, 77, 2618, 13, 9078, 198, 2, 16926, 46, 25, 3060, 38644, 12, 18, 13, 15, 13789, 198, 198, 11748, 299, 32152,...
2.422311
251
# Third-party imports from flask import Flask from flask_sqlalchemy import SQLAlchemy configurations = { 'development': 'configurations.DevelopmentConfiguration', 'testing': 'configurations.TestingConfiguration', 'staging': 'configurations.StagingConfiguration', 'production': 'configurations.ProductionConfiguratio...
[ 2, 10467, 12, 10608, 17944, 198, 6738, 42903, 1330, 46947, 198, 6738, 42903, 62, 25410, 282, 26599, 1330, 16363, 2348, 26599, 198, 198, 11250, 20074, 796, 1391, 198, 197, 1549, 68, 1091, 434, 10354, 705, 11250, 20074, 13, 41206, 38149, ...
3.888889
90
if __name__ == "__main__": fridge = { "beer": 2, "milk": 1, "meat": 3, } print("I wanna drink 1 bottle of beer...") take_beer(fridge) print("Oooh, great!") print("I wanna drink 2 bottle of beer...") try: take_beer(fridge, 2) except Exception as e: ...
[ 198, 198, 361, 11593, 3672, 834, 6624, 366, 834, 12417, 834, 1298, 198, 220, 220, 220, 25772, 796, 1391, 198, 220, 220, 220, 220, 220, 220, 220, 366, 42428, 1298, 362, 11, 198, 220, 220, 220, 220, 220, 220, 220, 366, 25433, 74, 12...
2.192661
218
# -*- coding: utf-8 -*- # Copyright 2014-2016 OpenMarket 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 applicab...
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 2, 15069, 1946, 12, 5304, 4946, 27470, 12052, 198, 2, 198, 2, 49962, 739, 262, 24843, 13789, 11, 10628, 362, 13, 15, 357, 1169, 366, 34156, 15341, 198, 2, 345, 743, ...
2.340171
2,925
# Generated by Django 2.2.6 on 2020-02-09 12:24 from django.db import migrations, models import django.db.models.deletion
[ 2, 2980, 515, 416, 37770, 362, 13, 17, 13, 21, 319, 12131, 12, 2999, 12, 2931, 1105, 25, 1731, 198, 198, 6738, 42625, 14208, 13, 9945, 1330, 15720, 602, 11, 4981, 198, 11748, 42625, 14208, 13, 9945, 13, 27530, 13, 2934, 1616, 295, ...
2.818182
44
import os from mnist import model import tensorflow as tf from tensorflow.examples.tutorials.mnist import input_data data = input_data.read_data_sets("data/dataset/", one_hot=True) # model with tf.variable_scope("convolutional"): x = tf.placeholder(tf.float32, [None, 784]) keep_prob = tf.placeholder(tf.float...
[ 11748, 28686, 198, 6738, 285, 77, 396, 1330, 2746, 198, 11748, 11192, 273, 11125, 355, 48700, 198, 198, 6738, 11192, 273, 11125, 13, 1069, 12629, 13, 83, 44917, 82, 13, 10295, 396, 1330, 5128, 62, 7890, 198, 198, 7890, 796, 5128, 62, ...
2.319739
613
import requests import codecs query1 = """<union> <query type="way"> <has-kv k="addr:housenumber"/> <has-kv k="addr:street:name"/> <has-kv k="addr:street:type"/> <has-kv k="addr:state"/> <bbox-query e="%s" n="%s" s="%s" w="%s"/> </query> <query type="way"> <has-kv k="addr:housenumber"/> <ha...
[ 11748, 7007, 198, 11748, 40481, 82, 198, 198, 22766, 16, 796, 37227, 27, 24592, 29, 198, 27, 22766, 2099, 2625, 1014, 5320, 198, 220, 220, 220, 1279, 10134, 12, 74, 85, 479, 2625, 29851, 25, 71, 516, 268, 4494, 26700, 198, 220, 220,...
2.009003
1,444
#!/usr/bin/env python # -------------------------------------------------------- # Fast R-CNN # Copyright (c) 2015 Microsoft # Licensed under The MIT License [see LICENSE for details] # Written by Ross Girshick # -------------------------------------------------------- """Test a Fast R-CNN network on an image databas...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 198, 198, 2, 20368, 22369, 198, 2, 12549, 371, 12, 18474, 198, 2, 15069, 357, 66, 8, 1853, 5413, 198, 2, 49962, 739, 383, 17168, 13789, 685, 3826, 38559, 24290, 329, 3307, 60, 198, 2, 2...
2.353414
996
from django.conf import settings from django.conf.urls.static import static from django.conf.urls import url from . import views urlpatterns = [ url('^$', views.gallary,name = 'gallary'), url(r'^search/', views.search_image, name='search_image'), url(r'^details/(\d+)',views.search_location,name ='images'...
[ 6738, 42625, 14208, 13, 10414, 1330, 6460, 198, 6738, 42625, 14208, 13, 10414, 13, 6371, 82, 13, 12708, 1330, 9037, 198, 6738, 42625, 14208, 13, 10414, 13, 6371, 82, 1330, 19016, 198, 6738, 764, 1330, 5009, 628, 198, 198, 6371, 33279, ...
2.392857
196
import cv2 import numpy as np from pycocotools.coco import COCO import os from ..dataloading import get_yolox_datadir from .datasets_wrapper import Dataset
[ 11748, 269, 85, 17, 198, 11748, 299, 32152, 355, 45941, 198, 6738, 12972, 66, 420, 313, 10141, 13, 66, 25634, 1330, 327, 4503, 46, 198, 198, 11748, 28686, 198, 198, 6738, 11485, 67, 10254, 1170, 278, 1330, 651, 62, 88, 349, 1140, 62...
2.694915
59
from __future__ import annotations from typing import Any from cleo.helpers import argument from cleo.helpers import option from tomlkit.toml_document import TOMLDocument try: from poetry.core.packages.dependency_group import MAIN_GROUP except ImportError: MAIN_GROUP = "default" from poetry.console.command...
[ 6738, 11593, 37443, 834, 1330, 37647, 198, 198, 6738, 19720, 1330, 4377, 198, 198, 6738, 1190, 78, 13, 16794, 364, 1330, 4578, 198, 6738, 1190, 78, 13, 16794, 364, 1330, 3038, 198, 6738, 284, 4029, 15813, 13, 39532, 75, 62, 22897, 133...
3.47619
105
from orrinjelo.utils.decorators import timeit import numpy as np visited = [] # = Test ================================================ inputlist = [ '5483143223', '2745854711', '5264556173', '6141336146', '6357385478', '4167524645', '2176841721', '6882881134', '4846848554', ...
[ 6738, 393, 12769, 73, 22126, 13, 26791, 13, 12501, 273, 2024, 1330, 640, 270, 198, 11748, 299, 32152, 355, 45941, 198, 198, 4703, 863, 796, 17635, 628, 198, 2, 796, 6208, 46111, 25609, 18604, 198, 198, 15414, 4868, 796, 685, 198, 220,...
2.388158
152
camera_width = 640 camera_height = 480 film_back_width = 1.417 film_back_height = 0.945 x_center = 320 y_center = 240 P_1 = (-0.023, -0.261, 2.376) p_11 = P_1[0] p_12 = P_1[1] p_13 = P_1[2] P_2 = (0.659, -0.071, 2.082) p_21 = P_2[0] p_22 = P_2[1] p_23 = P_2[2] p_1_prime = (52, 163) x_1 = p_1_prime[0] y_1 = p_1_pr...
[ 198, 25695, 62, 10394, 796, 33759, 198, 25695, 62, 17015, 796, 23487, 198, 198, 26240, 62, 1891, 62, 10394, 796, 352, 13, 38547, 198, 26240, 62, 1891, 62, 17015, 796, 657, 13, 24, 2231, 198, 198, 87, 62, 16159, 796, 20959, 198, 88, ...
1.715054
1,116
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Created on Wed Aug 26 19:15:34 2020 @author: deviantpadam """ import pandas as pd import numpy as np import concurrent.futures import os import tqdm from collections import Counter from torch2vec.data import DataPreparation from torch2vec.torch2vec import DM # train ...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 18, 198, 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 37811, 198, 41972, 319, 3300, 2447, 2608, 678, 25, 1314, 25, 2682, 12131, 198, 198, 31, 9800, 25, 1614, 3014, 156...
2.513746
582
# -*- coding: utf-8 -*- import datetime import pytest import requests_mock from geolink_formatter.entity import Document, File from requests.auth import HTTPBasicAuth from pyramid_oereb.contrib.sources.document import OEREBlexSource from pyramid_oereb.lib.records.documents import DocumentRecord, LegalProvisionRecord...
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 198, 11748, 4818, 8079, 198, 198, 11748, 12972, 9288, 198, 11748, 7007, 62, 76, 735, 198, 6738, 4903, 349, 676, 62, 687, 1436, 13, 26858, 1330, 16854, 11, 9220, 198, 6...
2.318354
1,847
# A rarely-updated module to assist in writing reload-safe talon modules using # things like threads, which are not normally safe for reloading with talon. # If this file is ever updated, you'll need to restart talon. import logging _singletons = {}
[ 2, 317, 8365, 12, 43162, 8265, 284, 3342, 287, 3597, 18126, 12, 21230, 3305, 261, 13103, 1262, 198, 2, 1243, 588, 14390, 11, 543, 389, 407, 7685, 3338, 329, 18126, 278, 351, 3305, 261, 13, 198, 198, 2, 1002, 428, 2393, 318, 1683, ...
3.848485
66
import argparse import yaml from subprocess import call from train import train_bichrom if __name__ == '__main__': # parsing parser = argparse.ArgumentParser(description='Train and Evaluate Bichrom') parser.add_argument('-training_schema_yaml', required=True, help='YAML file with pa...
[ 11748, 1822, 29572, 198, 11748, 331, 43695, 198, 6738, 850, 14681, 1330, 869, 198, 6738, 4512, 1330, 4512, 62, 65, 488, 398, 198, 198, 361, 11593, 3672, 834, 6624, 705, 834, 12417, 834, 10354, 198, 220, 220, 220, 1303, 32096, 198, 220...
2.40708
452
#!/usr/bin/env python3 # -*- coding: utf-8 -*- # SPDX-License-Identifier: MIT import os import shutil import sys from pathlib import Path from distutils import log from setuptools import setup from setuptools.command.sdist import sdist as SdistCommand from cmake_build_extension import BuildExtension, CMakeExtension ...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 18, 198, 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 2, 30628, 55, 12, 34156, 12, 33234, 7483, 25, 17168, 198, 198, 11748, 28686, 198, 11748, 4423, 346, 198, 11748, 2...
2.541103
961
#!/usr/bin/env python3 # # This file is part of LiteX-Boards. # # Copyright (c) 2021 Gwenhael Goavec-Merou <gwenhael.goavec-merou@trabucayre.com> # SPDX-License-Identifier: BSD-2-Clause import argparse import subprocess from migen import * from litex_boards.platforms import digilent_arty_z7 from litex.build import ...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 18, 198, 198, 2, 198, 2, 770, 2393, 318, 636, 286, 27395, 55, 12, 16635, 1371, 13, 198, 2, 198, 2, 15069, 357, 66, 8, 33448, 39661, 16550, 3010, 1514, 1015, 66, 12, 13102, 280, 1279, ...
2.782609
851
# -*- coding: utf-8 -*- """\ This is a python port of "Goose" orignialy licensed to Gravity.com under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. Python port was written by Xavier Grangier for Recrutae Gravity.co...
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 37811, 59, 198, 1212, 318, 257, 21015, 2493, 286, 366, 5247, 577, 1, 393, 570, 498, 88, 11971, 284, 24084, 13, 785, 198, 4625, 530, 393, 517, 18920, 5964, 11704, 13, ...
3.8
275
from logging import getLogger import os from typing import List, Union import psycopg2 from interface.database.sqlhandler import Cursor as AbsCursor from interface.database.sqlhandler import Result as AbsResult from interface.database.sqlhandler import SqlHandler as AbsSqlHandler from exceptions.waf import SqlTransa...
[ 6738, 18931, 1330, 651, 11187, 1362, 198, 11748, 28686, 198, 6738, 19720, 1330, 7343, 11, 4479, 198, 198, 11748, 17331, 22163, 70, 17, 198, 198, 6738, 7071, 13, 48806, 13, 25410, 30281, 1330, 327, 21471, 355, 13051, 34, 21471, 198, 6738...
3.794393
107
from virtualisation.clock.abstractclock import AbstractClock __author__ = 'Marten Fischer (m.fischer@hs-osnabrueck.de)' from virtualisation.wrapper.parser.abstractparser import AbstractParser from virtualisation.misc.jsonobject import JSONObject as JOb import datetime as dt
[ 6738, 7166, 5612, 13, 15750, 13, 397, 8709, 15750, 1330, 27741, 44758, 198, 198, 834, 9800, 834, 796, 705, 13143, 268, 30901, 357, 76, 13, 69, 24645, 31, 11994, 12, 418, 77, 397, 24508, 694, 13, 2934, 33047, 198, 198, 6738, 7166, 56...
3.589744
78
# -*- coding: utf-8 -*- """This file contains the event formatters interface classes. The l2t_csv and other formats are dependent on a message field, referred to as description_long and description_short in l2t_csv. Plaso no longer stores these field explicitly. A formatter, with a format string definition, is used ...
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 37811, 1212, 2393, 4909, 262, 1785, 5794, 1010, 7071, 6097, 13, 198, 198, 464, 300, 17, 83, 62, 40664, 290, 584, 17519, 389, 10795, 319, 257, 3275, 2214, 11, 198, 260,...
3.408654
208
main()
[ 198, 12417, 3419, 198 ]
2
4
# -*- coding: utf-8 -*- """ Created on Fri Sep 4 22:27:11 2020 @author: Miyazaki """ imdir = "C:/Users/Miyazaki/Desktop/hayashi_lab/20200527_lethargus_analysis/renamed_pillar_chamber-N2/chamber3" resultdir= "C:/Users/Miyazaki/Desktop/hayashi_lab/20200527_lethargus_analysis/renamed_pillar_chamber-N2/result0918.csv" i...
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 37811, 198, 41972, 319, 19480, 8621, 220, 604, 2534, 25, 1983, 25, 1157, 12131, 198, 198, 31, 9800, 25, 29464, 32276, 198, 37811, 198, 198, 320, 15908, 796, 366, 34, 1...
2.118577
759
from typing import List import requests from telegram import Message, Update, Bot, MessageEntity from telegram.ext import CommandHandler, run_async from emilia import dispatcher from emilia.modules.disable import DisableAbleCommandHandler from emilia.modules.helper_funcs.alternate import send_message import pynewtonmat...
[ 6738, 19720, 1330, 7343, 198, 11748, 7007, 198, 6738, 573, 30536, 1330, 16000, 11, 10133, 11, 18579, 11, 16000, 32398, 198, 6738, 573, 30536, 13, 2302, 1330, 9455, 25060, 11, 1057, 62, 292, 13361, 198, 6738, 795, 17517, 1330, 49952, 198...
2.791701
1,229
# # Created on Thu Apr 22 2021 # Matteo Bjornsson # import boto3 from botocore.exceptions import ClientError import logging logging.basicConfig(filename="rps.log", level=logging.INFO) iam_resource = boto3.resource("iam") sts_client = boto3.client("sts") def create_role( iam_role_name: str, assume_role_policy_js...
[ 2, 198, 2, 15622, 319, 26223, 2758, 2534, 33448, 198, 2, 38789, 78, 34254, 1211, 16528, 198, 2, 198, 11748, 275, 2069, 18, 198, 6738, 10214, 420, 382, 13, 1069, 11755, 1330, 20985, 12331, 198, 11748, 18931, 198, 198, 6404, 2667, 13, ...
2.537329
1,969
from enum import auto, Enum
[ 6738, 33829, 1330, 8295, 11, 2039, 388, 628 ]
3.625
8
__all__ = ['cross_validation', 'metrics', 'datasets', 'recommender']
[ 201, 198, 201, 198, 834, 439, 834, 796, 37250, 19692, 62, 12102, 341, 3256, 201, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 705, 4164, 10466, 3256, 201, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 705, 19608...
1.671642
67
import collections import copy import intervaltree from .label import Label def addl(self, value, start=0.0, end=float('inf')): """ Shortcut for ``add(Label(value, start, end))``. """ self.add(Label(value, start=start, end=end)) def update(self, labels): """ Add a list of la...
[ 11748, 17268, 198, 11748, 4866, 198, 198, 11748, 16654, 21048, 198, 198, 6738, 764, 18242, 1330, 36052, 628, 198, 220, 220, 220, 825, 751, 75, 7, 944, 11, 1988, 11, 923, 28, 15, 13, 15, 11, 886, 28, 22468, 10786, 10745, 11537, 2599,...
1.955188
7,855
import matplotlib from PyQt5.QtCore import Qt from PyQt5.QtWidgets import QHBoxLayout, QDialog, QPushButton, QWidget, QVBoxLayout, QLabel matplotlib.use('QT5Agg') import matplotlib.pyplot as plt from models.data_key import DataKey from utils import ui_utils
[ 11748, 2603, 29487, 8019, 198, 6738, 9485, 48, 83, 20, 13, 48, 83, 14055, 1330, 33734, 198, 6738, 9485, 48, 83, 20, 13, 48, 83, 54, 312, 11407, 1330, 1195, 39, 14253, 32517, 11, 1195, 44204, 11, 1195, 49222, 21864, 11, 1195, 38300, ...
2.71875
96
import pandas as pd from OCAES import ocaes # ---------------------- # create and run model # ---------------------- data = pd.read_csv('timeseries_inputs_2019.csv') inputs = ocaes.get_default_inputs() # inputs['C_well'] = 5000.0 # inputs['X_well'] = 50.0 # inputs['L_well'] = 50.0 # inputs['X_cmp'] = 0 # inputs['X_exp...
[ 11748, 19798, 292, 355, 279, 67, 198, 6738, 440, 8141, 1546, 1330, 267, 6888, 274, 198, 198, 2, 41436, 438, 198, 2, 2251, 290, 1057, 2746, 198, 2, 41436, 438, 198, 7890, 796, 279, 67, 13, 961, 62, 40664, 10786, 22355, 10640, 62, 1...
2.737024
289