content
stringlengths
1
1.04M
input_ids
listlengths
1
774k
ratio_char_token
float64
0.38
22.9
token_count
int64
1
774k
"""Locators for inventory details items""" from selenium.webdriver.common.by import By class InventoryDetailsLoc: """Inventory item locators. Locators are relative to parent container div. """ TITLE = (By.CLASS_NAME, 'inventory_details_name') DESCRIPTION = (By.CLASS_NAME, 'inventory_details_desc'...
[ 198, 37811, 33711, 2024, 329, 13184, 3307, 3709, 37811, 198, 6738, 384, 11925, 1505, 13, 12384, 26230, 13, 11321, 13, 1525, 1330, 2750, 628, 198, 4871, 35772, 24259, 33711, 25, 198, 220, 220, 220, 37227, 818, 17158, 2378, 1179, 2024, 13...
2.880682
176
from eats_worm import * import numpy as np import matplotlib.pyplot as plt from scipy.spatial.distance import pdist, squareform from fastcluster import linkage # load an extractor args_6 = { "root": "/Users/stevenban/Desktop/20191104_KP_FC083_worm6_gcamp6s_1/", "numz": 10, "frames": [0, 1, 2, 3, 4, 5], ...
[ 198, 6738, 25365, 62, 25323, 1330, 1635, 198, 11748, 299, 32152, 355, 45941, 198, 11748, 2603, 29487, 8019, 13, 9078, 29487, 355, 458, 83, 198, 6738, 629, 541, 88, 13, 2777, 34961, 13, 30246, 1330, 279, 17080, 11, 6616, 687, 198, 6738...
2.244318
1,760
# -*-coding: utf-8 -*- """ .. invisible: _ _ _____ _ _____ _____ | | | | ___| | | ___/ ___| | | | | |__ | | | |__ \ `--. | | | | __|| | | __| `--. \ \ \_/ / |___| |___| |___/\__/ / \___/\____/\_____|____/\____/ Created on May 6, 2014 Model created for geometric figure recogn...
[ 2, 532, 9, 12, 66, 7656, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 37811, 198, 492, 14836, 25, 198, 220, 220, 220, 220, 4808, 220, 220, 4808, 220, 29343, 4808, 220, 220, 220, 220, 220, 29343, 220, 29343, 198, 220, 220, 220, 930, ...
3.487713
529
# coding=utf-8 from threading import Thread, Semaphore from collections import deque from selenium.webdriver import Chrome, ChromeOptions from benchmarks.utils import log_time TEST_URL = 'https://www.baidu.com/' @log_time('reopen chrome') @log_time('manage chrome tabs') if __name__ == '__main__': pr...
[ 2, 19617, 28, 40477, 12, 23, 198, 198, 6738, 4704, 278, 1330, 14122, 11, 12449, 6570, 382, 198, 6738, 17268, 1330, 390, 4188, 198, 198, 6738, 384, 11925, 1505, 13, 12384, 26230, 1330, 13282, 11, 13282, 29046, 198, 198, 6738, 31747, 13...
3.065657
198
#!/usr/bin/env python from pypher import converter # TODO: Rework implementation (keep punctuation, whitespace...) # TODO: decrypt method
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 198, 198, 6738, 279, 4464, 372, 1330, 38394, 198, 198, 2, 16926, 46, 25, 371, 6433, 7822, 357, 14894, 21025, 2288, 11, 13216, 10223, 23029, 198, 198, 2, 16926, 46, 25, 42797, 2446 ]
3.414634
41
# coding:utf-8 s = 3 print(s*(1/s))
[ 2, 19617, 25, 40477, 12, 23, 198, 198, 82, 796, 513, 198, 4798, 7, 82, 9, 7, 16, 14, 82, 4008 ]
1.714286
21
# -*- coding: utf-8 -*- from ..models import Post,Category,Tag from django import template from django.db.models.aggregates import Count register=template.Library() @register.simple_tag @register.simple_tag @register.simple_tag @register.simple_tag
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 198, 6738, 11485, 27530, 1330, 2947, 11, 27313, 11, 24835, 198, 6738, 42625, 14208, 1330, 11055, 198, 198, 6738, 42625, 14208, 13, 9945, 13, 27530, 13, 9460, 2301, 689, ...
3.035294
85
# Copyright (c) 2010-2012 OpenStack Foundation # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agree...
[ 2, 15069, 357, 66, 8, 3050, 12, 6999, 4946, 25896, 5693, 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...
2.715898
1,063
# Copyright 2013 Openstack Foundation # 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 applicab...
[ 2, 15069, 2211, 4946, 25558, 5693, 198, 2, 1439, 6923, 33876, 13, 198, 2, 198, 2, 49962, 739, 262, 24843, 13789, 11, 10628, 362, 13, 15, 357, 1169, 366, 34156, 15341, 345, 743, 198, 2, 407, 779, 428, 2393, 2845, 287, 11846, 351, 2...
3.795699
186
import os from flasgger import Swagger from flask import Flask from flask.cli import AppGroup from flask_cors import CORS from flask_jwt_extended import JWTManager from flask_jwt_extended.exceptions import NoAuthorizationError from flask_marshmallow import Marshmallow from flask_migrate import Migrate from flask_sqlal...
[ 11748, 28686, 198, 198, 6738, 781, 292, 26679, 1330, 2451, 7928, 198, 6738, 42903, 1330, 46947, 198, 6738, 42903, 13, 44506, 1330, 2034, 13247, 198, 6738, 42903, 62, 66, 669, 1330, 327, 20673, 198, 6738, 42903, 62, 73, 46569, 62, 2302, ...
3.504762
210
import requests import unittest from urlvalidator import URLValidator from k2connect import pay, exceptions, validation, authorization, json_builder from k2connect.exceptions import InvalidArgumentError from tests import SAMPLE_BASE_URL, SAMPLE_CLIENT_ID, SAMPLE_CLIENT_SECRET, PAY, MSG
[ 11748, 7007, 201, 198, 11748, 555, 715, 395, 201, 198, 6738, 19016, 12102, 1352, 1330, 10289, 47139, 1352, 201, 198, 6738, 479, 17, 8443, 1330, 1414, 11, 13269, 11, 21201, 11, 19601, 11, 33918, 62, 38272, 201, 198, 6738, 479, 17, 8443...
3.390805
87
"""MIT License. Copyright (c) 2020-2021 Faholan Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, ...
[ 37811, 36393, 13789, 13, 198, 198, 15269, 357, 66, 8, 12131, 12, 1238, 2481, 27361, 16617, 198, 198, 5990, 3411, 318, 29376, 7520, 11, 1479, 286, 3877, 11, 284, 597, 1048, 16727, 257, 4866, 198, 1659, 428, 3788, 290, 3917, 10314, 3696...
1.91405
15,416
from invoke import Collection, task from _docs import docs @task ns = Collection(docs, init)
[ 6738, 26342, 1330, 12251, 11, 4876, 198, 6738, 4808, 31628, 1330, 34165, 628, 198, 31, 35943, 628, 198, 5907, 796, 12251, 7, 31628, 11, 2315, 8, 198 ]
3.592593
27
# -*- coding: utf-8 -*- from common.base_test import BaseTest import lemoncheesecake.api as lcc from lemoncheesecake.matching import check_that, equal_to, is_list SUITE = { "description": "Operation 'DID update'" } @lcc.disabled() @lcc.prop("main", "type") @lcc.tags("operations", "did_operations", "did_update"...
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 198, 6738, 2219, 13, 8692, 62, 9288, 1330, 7308, 14402, 198, 198, 11748, 18873, 2395, 274, 46557, 13, 15042, 355, 300, 535, 198, 6738, 18873, 2395, 274, 46557, 13, 15699...
2.643357
143
# -*- coding: utf-8 -*- """ Tests for :mod:`safe.clip`. :author: Joe Joyce <joe@decafjoe.com> :copyright: Copyright (c) Joe Joyce and contributors, 2016-2019. :license: BSD """ import mock import pytest from clik.argparse import ArgumentParser from safe.clip import clipboard_drivers, ClipboardError, Driver, Pasteboar...
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 37811, 198, 51, 3558, 329, 1058, 4666, 25, 63, 21230, 13, 15036, 44646, 198, 198, 25, 9800, 25, 5689, 25936, 1279, 73, 2577, 31, 12501, 1878, 73, 2577, 13, 785, 29, ...
2.576484
1,752
"""empty message Revision ID: 97004b509ede Revises: d2322b55af28 Create Date: 2021-09-21 01:39:14.743106 """ from alembic import op import sqlalchemy as sa # revision identifiers, used by Alembic. revision = '97004b509ede' down_revision = 'd2322b55af28' branch_labels = None depends_on = None
[ 37811, 28920, 3275, 198, 198, 18009, 1166, 4522, 25, 860, 9879, 19, 65, 29022, 18654, 198, 18009, 2696, 25, 288, 1954, 1828, 65, 2816, 1878, 2078, 198, 16447, 7536, 25, 33448, 12, 2931, 12, 2481, 5534, 25, 2670, 25, 1415, 13, 22, 35...
2.577586
116
# # This file is part of pyasn1-alt-modules software. # # Copyright (c) 2019-2022, Vigil Security, LLC # License: http://vigilsec.com/pyasn1-alt-modules-license.txt # import sys import unittest from pyasn1.type import univ from pyasn1.codec.der.decoder import decode as der_decoder from pyasn1.codec.der.encoder import...
[ 2, 198, 2, 770, 2393, 318, 636, 286, 12972, 292, 77, 16, 12, 2501, 12, 18170, 3788, 13, 198, 2, 198, 2, 15069, 357, 66, 8, 13130, 12, 1238, 1828, 11, 39840, 4765, 11, 11419, 198, 2, 13789, 25, 2638, 1378, 85, 27187, 2363, 13, ...
2.683206
262
# Generated by Django 2.2.1 on 2019-05-27 15:12 from django.db import migrations, models import django.db.models.deletion
[ 2, 2980, 515, 416, 37770, 362, 13, 17, 13, 16, 319, 13130, 12, 2713, 12, 1983, 1315, 25, 1065, 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
# # PySNMP MIB module IANA-ENERGY-RELATION-MIB (http://snmplabs.com/pysmi) # ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/IANA-ENERGY-RELATION-MIB # Produced by pysmi-0.3.4 at Wed May 1 13:02:49 2019 # On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4 # Using Python version 3.7....
[ 2, 198, 2, 9485, 15571, 7378, 337, 9865, 8265, 314, 31574, 12, 1677, 1137, 31212, 12, 16448, 6234, 12, 8895, 33, 357, 4023, 1378, 16184, 76, 489, 8937, 13, 785, 14, 79, 893, 11632, 8, 198, 2, 7054, 45, 13, 16, 2723, 2393, 1378, ...
3.035054
1,027
from django.contrib import admin from . models import CustomUser admin.site.register(CustomUser) # Register your models here.
[ 6738, 42625, 14208, 13, 3642, 822, 1330, 13169, 198, 6738, 764, 4981, 1330, 8562, 12982, 628, 198, 28482, 13, 15654, 13, 30238, 7, 15022, 12982, 8, 198, 2, 17296, 534, 4981, 994, 13, 198 ]
3.764706
34
import json import hashlib import functools from .mnemon import mnemon as mnc
[ 11748, 33918, 198, 11748, 12234, 8019, 198, 11748, 1257, 310, 10141, 198, 198, 6738, 764, 10295, 7966, 1330, 285, 77, 7966, 355, 285, 10782, 628 ]
3.2
25
import ray import ray.tune as tune from ray.rllib import train import os import sys from azureml.core import Run from utils import callbacks DEFAULT_RAY_ADDRESS = 'localhost:6379' if __name__ == "__main__": # Parse arguments train_parser = train.create_parser() args = train_parser.parse_args() pri...
[ 11748, 26842, 198, 11748, 26842, 13, 83, 1726, 355, 14009, 198, 6738, 26842, 13, 81, 297, 571, 1330, 4512, 198, 198, 11748, 28686, 198, 11748, 25064, 198, 198, 6738, 35560, 495, 4029, 13, 7295, 1330, 5660, 198, 6738, 3384, 4487, 1330, ...
2.025
520
""" (c) RIKEN 2015. All rights reserved. Author: Keitaro Yamashita This software is released under the new BSD License; see LICENSE. """ from yamtbx.dataproc.command_line.pilatus_for_crystfel import make_geom_decomposed_for_raw from yamtbx.dataproc.XIO import XIO from yamtbx.dataproc import crystfel from yamtbx.datap...
[ 37811, 198, 7, 66, 8, 371, 18694, 1677, 1853, 13, 1439, 2489, 10395, 13, 220, 198, 13838, 25, 3873, 7940, 78, 14063, 1077, 5350, 198, 198, 1212, 3788, 318, 2716, 739, 262, 649, 347, 10305, 13789, 26, 766, 38559, 24290, 13, 198, 3781...
2.411765
187
# Write your MySQL query statement below select * from cinema where id%2=1 and description != 'boring' order by rating desc
[ 2, 19430, 534, 33476, 12405, 2643, 2174, 201, 198, 19738, 1635, 422, 22041, 810, 4686, 4, 17, 28, 16, 290, 6764, 14512, 705, 2865, 278, 6, 1502, 416, 7955, 1715 ]
4.133333
30
import tempfile from unittest import mock import pytest from digitalocean import SSHKey from beauty_ocean.droplet import helpers from tests.conftest import DUMMY_PUBLIC_KEY @mock.patch("beauty_ocean.droplet.api.create_ssh_key") @mock.patch("beauty_ocean.droplet.questions.ask_for_public_key_name") @mock.patch("be...
[ 11748, 20218, 7753, 198, 6738, 555, 715, 395, 1330, 15290, 198, 198, 11748, 12972, 9288, 198, 6738, 4875, 78, 5829, 1330, 33825, 9218, 198, 198, 6738, 8737, 62, 78, 5829, 13, 22285, 37069, 1330, 49385, 198, 6738, 5254, 13, 1102, 701, ...
2.523041
434
import numpy as np import time from src.lsl_client import LSLClient from src.lsl_recorder import LSLRecorder if __name__ == '__main__': lsl_recorder = LSLRecorder(h5_name='data.h5') lsl_reader = LSLClient() countdown = time.time() while time.time() - countdown < 3: if time.time() - countdown >...
[ 11748, 299, 32152, 355, 45941, 198, 11748, 640, 198, 6738, 12351, 13, 75, 6649, 62, 16366, 1330, 406, 8634, 11792, 198, 6738, 12351, 13, 75, 6649, 62, 8344, 2875, 1330, 406, 8634, 6690, 2875, 198, 198, 361, 11593, 3672, 834, 6624, 705...
1.932584
356
import sys import unittest from io import StringIO try: import mock except ImportError: import unittest.mock as mock from gostop.core.humanagent import HumanAgent
[ 11748, 25064, 198, 11748, 555, 715, 395, 198, 6738, 33245, 1330, 10903, 9399, 198, 198, 28311, 25, 198, 220, 220, 220, 1330, 15290, 198, 16341, 17267, 12331, 25, 198, 220, 220, 220, 1330, 555, 715, 395, 13, 76, 735, 355, 15290, 198, ...
3.107143
56
from django.core.management.base import BaseCommand, CommandError from ... import factories
[ 6738, 42625, 14208, 13, 7295, 13, 27604, 13, 8692, 1330, 7308, 21575, 11, 9455, 12331, 198, 198, 6738, 2644, 1330, 17590, 628 ]
4.272727
22
# api.py # contains the api code import json import logging from pydoc import doc import requests from requests.structures import CaseInsensitiveDict logging.basicConfig( level=logging.DEBUG, format="%(asctime)s - %(levelname)s - %(message)s" ) class BaseAPI: """Contains credentials to use in other classes...
[ 2, 40391, 13, 9078, 198, 2, 4909, 262, 40391, 2438, 198, 198, 11748, 33918, 198, 11748, 18931, 198, 6738, 279, 5173, 420, 1330, 2205, 198, 198, 11748, 7007, 198, 6738, 7007, 13, 7249, 942, 1330, 8913, 20376, 18464, 35, 713, 198, 198, ...
2.264168
2,241
import multiprocessing from os import listdir import pickle from FormulaRetrieval import getFormulae # set paths inputPath = "F:\\arXiv\\NTCIR12" outputPath = "F:\\arXiv\\formulae\\" ################# # MULTIPROCESSING ################# if __name__ == '__main__': formula_catalog = {} tmp_catalogs = {} ...
[ 11748, 18540, 305, 919, 278, 198, 198, 6738, 28686, 1330, 1351, 15908, 198, 11748, 2298, 293, 198, 198, 6738, 19639, 9781, 380, 18206, 1330, 651, 8479, 377, 3609, 198, 198, 2, 900, 13532, 198, 15414, 15235, 796, 366, 37, 25, 6852, 283...
2.134021
485
import os import torch import torch.nn as nn
[ 11748, 28686, 198, 11748, 28034, 198, 11748, 28034, 13, 20471, 355, 299, 77, 198 ]
3.214286
14
# # Copyright (c) 2017-2019 Wind River Systems, Inc. # # SPDX-License-Identifier: Apache-2.0 # # vim: tabstop=4 shiftwidth=4 softtabstop=4 # All Rights Reserved. # from cgtsclient.common import utils from cgtsclient import exc def do_license_show(cc, args): """Show license file content""" response = cc.lice...
[ 2, 198, 2, 15069, 357, 66, 8, 2177, 12, 23344, 3086, 5866, 11998, 11, 3457, 13, 198, 2, 198, 2, 30628, 55, 12, 34156, 12, 33234, 7483, 25, 24843, 12, 17, 13, 15, 198, 2, 198, 198, 2, 43907, 25, 7400, 11338, 28, 19, 6482, 10394...
2.531868
455
from __future__ import annotations from collections import Counter from typing import * if TYPE_CHECKING: import pandas as pd import pyrosetta from .alt import ConAlt import warnings
[ 6738, 11593, 37443, 834, 1330, 37647, 198, 6738, 17268, 1330, 15034, 198, 6738, 19720, 1330, 1635, 198, 198, 361, 41876, 62, 50084, 2751, 25, 198, 220, 220, 220, 1330, 19798, 292, 355, 279, 67, 198, 220, 220, 220, 1330, 12972, 305, 26...
3.527273
55
import discord from discord.ext import commands from constants import Constants
[ 11748, 36446, 198, 6738, 36446, 13, 2302, 1330, 9729, 198, 198, 6738, 38491, 1330, 4757, 1187, 628, 198 ]
4.611111
18
# -*- coding: utf-8 -*- """ Created on July 6 2017 @author: fallahnejad@eeg.tuwien.ac.at """ import os import sys import time path = os.path.dirname(os.path.dirname(os.path.dirname(os.path. abspath(__file__)))) if path not in sys.path: sys.path.append(path) fr...
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 37811, 198, 41972, 319, 2901, 718, 2177, 198, 198, 31, 9800, 25, 2121, 993, 710, 38442, 31, 1453, 70, 13, 28047, 86, 2013, 13, 330, 13, 265, 198, 37811, 198, 11748, ...
2.261572
929
#!/usr/bin/env python from __future__ import print_function from os.path import basename #from pprint import pprint from siphon.util import load_parser, load_config from siphon.db import DBManager from siphon.manager import RemoteFileManager config = None if __name__ == '__main__': parser = load_parser() ar...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 198, 6738, 11593, 37443, 834, 1330, 3601, 62, 8818, 198, 6738, 28686, 13, 6978, 1330, 1615, 12453, 198, 2, 6738, 279, 4798, 1330, 279, 4798, 198, 6738, 44105, 261, 13, 22602, 1330, 3440, 62...
3.100775
129
# coding=utf-8 # *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** import warnings import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union, overload from . import ...
[ 2, 19617, 28, 40477, 12, 23, 198, 2, 17202, 39410, 25, 428, 2393, 373, 7560, 416, 262, 21624, 12994, 24118, 687, 10290, 357, 27110, 5235, 8, 16984, 13, 17202, 198, 2, 17202, 2141, 407, 4370, 416, 1021, 4556, 345, 821, 1728, 345, 760...
2.659893
935
"""Bitteli feature extractor. """ import numpy as np from motif.core import FeatureExtractor from motif.feature_extractors import utils class BitteliFeatures(FeatureExtractor): '''Bitteli feature extractor Attributes ---------- ref_hz : float Reference frequency (Hz) for converting to cents....
[ 37811, 33, 715, 43733, 3895, 7925, 273, 13, 198, 37811, 198, 11748, 299, 32152, 355, 45941, 198, 198, 6738, 32702, 13, 7295, 1330, 27018, 11627, 40450, 198, 6738, 32702, 13, 30053, 62, 2302, 974, 669, 1330, 3384, 4487, 628, 198, 4871, ...
2.058436
2,276
import setuptools with open("README.md", "r") as fh: long_description = fh.read() setuptools.setup( name="GURA", version="0.0.1", author="toyz's dog", author_email="b08902126@csie.ntu.edu.tw", description="HEAR 2021", long_description=long_description, url="https://github.com/tony10101...
[ 11748, 900, 37623, 10141, 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, 2617, 37623, 10141, 13, 40406, 7, 198, ...
2.352518
278
""" Your chance to explore Loops and Turtles! Authors: David Mutchler, Vibha Alangar, Matt Boutell, Dave Fisher, Aaron Wilkin, their colleagues, and Ezrie McCurry. """ ######################################################################## # DONE: 1. # On Line 5 above, replace PUT_YOUR_NAME_HERE with you...
[ 37811, 198, 7120, 2863, 284, 7301, 6706, 2840, 290, 44356, 0, 198, 198, 30515, 669, 25, 3271, 337, 7140, 1754, 11, 569, 571, 3099, 978, 648, 283, 11, 4705, 40808, 695, 11, 9935, 14388, 11, 198, 220, 220, 220, 220, 220, 220, 220, 2...
2.858887
737
from setuptools import setup, find_packages setup( name='speedo', version='1.0.6', description='analyse and illustrate data and equation', long_description=readme(), long_description_content_type='text/markdown', url='https://github.com/messizqin/speedo/', author='Messiz YiQi Qin', author_email='messizqin@gm...
[ 6738, 900, 37623, 10141, 1330, 9058, 11, 1064, 62, 43789, 628, 198, 198, 40406, 7, 198, 197, 3672, 11639, 12287, 78, 3256, 198, 197, 9641, 11639, 16, 13, 15, 13, 21, 3256, 198, 197, 11213, 11639, 38200, 325, 290, 19418, 1366, 290, 1...
2.933333
195
import json
[ 11748, 33918, 628, 198 ]
3.5
4
from typing import Type, Any, Optional from dataclasses import dataclass import dataclasses import typing from quickforex.providers.base import ProviderBase import quickforex.utils @dataclass @dataclass
[ 6738, 19720, 1330, 5994, 11, 4377, 11, 32233, 198, 6738, 4818, 330, 28958, 1330, 4818, 330, 31172, 198, 11748, 4818, 330, 28958, 198, 11748, 19720, 198, 198, 6738, 2068, 754, 87, 13, 15234, 4157, 13, 8692, 1330, 32549, 14881, 198, 11748...
3.542373
59
"""Provides Authentication and Authorization classes.""" from enum import Enum from requests import Request from requests.status_codes import codes import time from urllib.parse import quote from . import constants from .exceptions import InvalidInvocation, ResponseException class BaseAuthenticator: """Provide ...
[ 37811, 15946, 1460, 48191, 290, 35263, 6097, 526, 15931, 198, 6738, 33829, 1330, 2039, 388, 198, 6738, 7007, 1330, 19390, 198, 6738, 7007, 13, 13376, 62, 40148, 1330, 12416, 198, 11748, 640, 198, 6738, 2956, 297, 571, 13, 29572, 1330, 9...
2.565797
1,649
import csv import re import logging from uuid import uuid4 from io import StringIO from re import error as re_error from aiohttp.web import FileField from pymongo.errors import AutoReconnect from nyuki.workflow.tasks import FACTORY_SCHEMAS from nyuki.api import Response, resource, content_type log = logging.getLogge...
[ 11748, 269, 21370, 198, 11748, 302, 198, 11748, 18931, 198, 6738, 334, 27112, 1330, 334, 27112, 19, 198, 6738, 33245, 1330, 10903, 9399, 198, 6738, 302, 1330, 4049, 355, 302, 62, 18224, 198, 6738, 257, 952, 4023, 13, 12384, 1330, 9220, ...
2.395722
561
from django.test import TestCase from . models import * # test for instance # testing the save mothod # test for instance # test for save method
[ 6738, 42625, 14208, 13, 9288, 1330, 6208, 20448, 198, 6738, 764, 4981, 1330, 1635, 198, 220, 220, 220, 1303, 1332, 329, 4554, 198, 220, 220, 220, 1303, 4856, 262, 3613, 44400, 375, 628, 198, 220, 220, 220, 220, 220, 220, 220, 1303, ...
2.898305
59
"""Setting package. All settings can be either public or private. Public settings are committed and, should your game be open-source, everyone will see them. However, you can override these public settings with private settings: the private setting file (settings/private.py) will be ignored and not committed. Your c...
[ 37811, 34149, 5301, 13, 198, 198, 3237, 6460, 460, 307, 2035, 1171, 393, 2839, 13, 220, 5094, 6460, 389, 198, 785, 3291, 290, 11, 815, 534, 983, 307, 1280, 12, 10459, 11, 2506, 481, 766, 606, 13, 198, 4864, 11, 345, 460, 20957, 77...
3.822551
541
from atoll.service import create_app from atoll import Pipe, Pipeline, register_pipeline pipeline = Pipeline([FooPipe()], name='score post') register_pipeline('/score_post', pipeline) app = create_app() if __name__ == '__main__': app.run(debug=True, port=5001)
[ 6738, 379, 692, 13, 15271, 1330, 2251, 62, 1324, 198, 6738, 379, 692, 1330, 36039, 11, 37709, 11, 7881, 62, 79, 541, 4470, 628, 198, 79, 541, 4470, 796, 37709, 26933, 37, 2238, 47, 3757, 3419, 4357, 1438, 11639, 26675, 1281, 11537, ...
2.863158
95
# cryptolytics
[ 2, 8194, 3366, 14094, 628 ]
3.2
5
from torch import nn import torch import networks.networks as NN import base.basenetwork as BaseN import numpy as np import core.utils as U
[ 6738, 28034, 1330, 299, 77, 198, 11748, 28034, 198, 11748, 7686, 13, 3262, 5225, 355, 399, 45, 198, 11748, 2779, 13, 12093, 268, 316, 1818, 355, 7308, 45, 198, 11748, 299, 32152, 355, 45941, 198, 11748, 4755, 13, 26791, 355, 471, 198 ...
3.333333
42
# pylint: disable=C0413 from typing import Any from sqlalchemy import create_engine from sqlalchemy.ext.declarative import declarative_base from sqlalchemy.orm import sessionmaker from conf import DB_URI SQLALCHEMY_DATABASE_URL = DB_URI engine = create_engine(SQLALCHEMY_DATABASE_URL) Session = sessionmaker(autocomm...
[ 2, 279, 2645, 600, 25, 15560, 28, 34, 3023, 1485, 198, 198, 6738, 19720, 1330, 4377, 198, 198, 6738, 44161, 282, 26599, 1330, 2251, 62, 18392, 198, 6738, 44161, 282, 26599, 13, 2302, 13, 32446, 283, 876, 1330, 2377, 283, 876, 62, 86...
2.783333
180
# Generated by Django 2.1.3 on 2020-02-12 19:36 from django.db import migrations, models
[ 2, 2980, 515, 416, 37770, 362, 13, 16, 13, 18, 319, 12131, 12, 2999, 12, 1065, 678, 25, 2623, 198, 198, 6738, 42625, 14208, 13, 9945, 1330, 15720, 602, 11, 4981, 628 ]
2.84375
32
# -*- coding: utf-8 -*- # vim: set fileencoding=utf-8 # Copyright (c) 2003, 2008, 2010, 2011, 2012 Janne Blomqvist # This source code file is subject to the terms of the MIT (Expat) # License. See the file LICENSE for details. """This module defines a utility functions for dealing with vasp supercells. Instead of th...
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 2, 43907, 25, 900, 2393, 12685, 7656, 28, 40477, 12, 23, 198, 2, 15069, 357, 66, 8, 5816, 11, 3648, 11, 3050, 11, 2813, 11, 2321, 2365, 710, 1086, 296, 44179, 396, ...
2.34863
3,138
### --------------------------------------------------------------------------- from .core.startup import initialize from .sublime import commands, events __version_tuple = (1, 0, 0) __version__ = ".".join([str(num) for num in __version_tuple]) ### ------------------------------------------------------------------...
[ 21017, 16529, 32284, 628, 198, 6738, 764, 7295, 13, 9688, 929, 1330, 41216, 198, 6738, 764, 7266, 27299, 1330, 9729, 11, 2995, 198, 198, 834, 9641, 62, 83, 29291, 796, 357, 16, 11, 657, 11, 657, 8, 198, 834, 9641, 834, 796, 366, 5...
4.377049
183
from os import listdir from os.path import isfile, join import xml.etree.ElementTree as ET import xlrd from rb.docs_processing.article import Article, create_article_and_add_it_to_its_authors_and_graph from rb.docs_processing.graph import Graph from rb.core.lang import Lang # load_directory_xmls("C:\\Users\\Dr...
[ 6738, 28686, 1330, 1351, 15908, 198, 6738, 28686, 13, 6978, 1330, 318, 7753, 11, 4654, 198, 198, 11748, 35555, 13, 316, 631, 13, 20180, 27660, 355, 12152, 198, 11748, 2124, 75, 4372, 198, 198, 6738, 374, 65, 13, 31628, 62, 36948, 13, ...
2.939394
132
from vaderSentiment.vaderSentiment import SentimentIntensityAnalyzer import string from nltk.corpus import wordnet from nltk import pos_tag from nltk.corpus import stopwords from nltk.tokenize import WhitespaceTokenizer from nltk.stem import WordNetLemmatizer # Return VADER's compound score of sentence, where +1 is...
[ 6738, 410, 5067, 31837, 3681, 13, 85, 5067, 31837, 3681, 1330, 11352, 3681, 5317, 6377, 37702, 9107, 198, 11748, 4731, 198, 6738, 299, 2528, 74, 13, 10215, 79, 385, 1330, 1573, 3262, 198, 6738, 299, 2528, 74, 1330, 1426, 62, 12985, 19...
3.461538
117
import visitor class Formatter (visitor.Visitor): '''Enriches the Visitor class with basic output functions with format control.''' def i (self): '''Indent.''' self.ind += 1 def u (self): '''Unindent.''' self.ind -= 1 def p (self, str=''): '''Print with pos...
[ 198, 11748, 21493, 628, 198, 4871, 5178, 1436, 357, 4703, 2072, 13, 15854, 2072, 2599, 628, 220, 220, 220, 705, 7061, 4834, 1173, 956, 262, 6911, 2072, 1398, 351, 4096, 5072, 5499, 351, 5794, 1630, 2637, 7061, 628, 220, 220, 220, 825,...
1.95422
699
# Copyright (C) 2018 by eHealth Africa : http://www.eHealthAfrica.org # # See the NOTICE file distributed with this work for additional information # regarding copyright ownership. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with # the License. Y...
[ 2, 15069, 357, 34, 8, 2864, 416, 304, 18081, 5478, 1058, 2638, 1378, 2503, 13, 68, 18081, 17584, 30997, 13, 2398, 198, 2, 198, 2, 4091, 262, 28536, 2393, 9387, 351, 428, 670, 329, 3224, 1321, 198, 2, 5115, 6634, 9238, 13, 198, 2, ...
3.733108
296
import unittest import sys import os sys.path.append(os.environ.get("PROJECT_ROOT_DIRECTORY", ".")) from moduledependency.outputters.python import Outputter from tests.util import OutputterTestHarness
[ 11748, 555, 715, 395, 201, 198, 11748, 25064, 201, 198, 11748, 28686, 201, 198, 201, 198, 17597, 13, 6978, 13, 33295, 7, 418, 13, 268, 2268, 13, 1136, 7203, 31190, 23680, 62, 13252, 2394, 62, 17931, 23988, 15513, 1600, 366, 526, 4008,...
2.916667
72
#!/usr/bin/env python3 # -*- coding: utf-8 -*- __author__ = 'ipetrash' import requests from bs4 import BeautifulSoup headers = { 'User-Agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:88.0) Gecko/20100101 Firefox/88.0', } rs = requests.get('https://ru.investing.com/economic-calendar/zew-economic-sentime...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 18, 198, 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 198, 834, 9800, 834, 796, 705, 541, 21879, 1077, 6, 628, 198, 11748, 7007, 198, 6738, 275, 82, 19, 1330, 23762, ...
2.110294
408
from .markhov import MarkhovChain
[ 6738, 764, 4102, 28026, 1330, 2940, 28026, 35491 ]
4.125
8
threshold_frontpage = 0.19
[ 400, 10126, 62, 8534, 7700, 796, 657, 13, 1129, 198 ]
2.7
10
# Copyright 2018 Google Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, ...
[ 2, 15069, 2864, 3012, 3457, 13, 198, 2, 198, 2, 49962, 739, 262, 24843, 13789, 11, 10628, 362, 13, 15, 357, 1169, 366, 34156, 15341, 198, 2, 345, 743, 407, 779, 428, 2393, 2845, 287, 11846, 351, 262, 13789, 13, 198, 2, 921, 743, ...
2.904669
514
import itertools import math import numpy as np import tensorflow as tf from tensorflow.python.keras.preprocessing.image import ImageDataGenerator from src.data import image_augmentation from src.data import emnist
[ 11748, 340, 861, 10141, 198, 11748, 10688, 198, 198, 11748, 299, 32152, 355, 45941, 198, 11748, 11192, 273, 11125, 355, 48700, 198, 6738, 11192, 273, 11125, 13, 29412, 13, 6122, 292, 13, 3866, 36948, 13, 9060, 1330, 7412, 6601, 8645, 13...
3.415385
65
#B for row in range(7): for col in range(6): if (col==0)or(row==0 and col!=5)or(row==1 and col==5) or (row==2 and col==5) or (row==3 and col!=5) or (row==6 and col!=5)or (row==4 and col==5)or (row==5 and col==5): print("*",end=" ") else: print(" ",end=" ") pri...
[ 2, 33, 201, 198, 1640, 5752, 287, 2837, 7, 22, 2599, 201, 198, 220, 220, 220, 329, 951, 287, 2837, 7, 21, 2599, 201, 198, 220, 220, 220, 220, 220, 220, 220, 611, 357, 4033, 855, 15, 8, 273, 7, 808, 855, 15, 290, 951, 0, 28, ...
1.841808
177
from .base import Decider
[ 6738, 764, 8692, 1330, 4280, 1304, 198 ]
3.714286
7
# %% #Function 1 of ChemLibre Texts reading program, takes in a url, path, and browser type and returns the html #Path location should be in the format ex. C:/Users/bowri/Anaconda3/chromedriver #If using Firefox, or not Chrome, simply enter "" for path location, requires having downloaded chromedriver first #See format...
[ 2, 43313, 198, 2, 22203, 352, 286, 12870, 25835, 260, 8255, 82, 3555, 1430, 11, 2753, 287, 257, 19016, 11, 3108, 11, 290, 6444, 2099, 290, 5860, 262, 27711, 198, 2, 15235, 4067, 815, 307, 287, 262, 5794, 409, 13, 327, 14079, 14490, ...
2.934946
1,199
from django.shortcuts import get_object_or_404, render, redirect from django.core.urlresolvers import reverse from django.http import HttpResponse, HttpResponseRedirect from django.core.serializers import serialize from django.db.models import Count, Max from django.contrib.auth import logout from django.contrib.aut...
[ 6738, 42625, 14208, 13, 19509, 23779, 1330, 651, 62, 15252, 62, 273, 62, 26429, 11, 8543, 11, 18941, 198, 6738, 42625, 14208, 13, 7295, 13, 6371, 411, 349, 690, 1330, 9575, 198, 6738, 42625, 14208, 13, 4023, 1330, 367, 29281, 31077, 1...
2.413251
4,196
# Copyright (c) 2009-2012, Geoffrey Biggs # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are met: # # * Redistributions of source code must retain the above copyright # notice, this list of condit...
[ 2, 15069, 357, 66, 8, 3717, 12, 6999, 11, 42803, 4403, 14542, 198, 2, 1439, 2489, 10395, 13, 198, 2, 198, 2, 2297, 396, 3890, 290, 779, 287, 2723, 290, 13934, 5107, 11, 351, 393, 1231, 198, 2, 17613, 11, 389, 10431, 2810, 326, 2...
3.0489
818
""" Asked by: Amazon [Easy] Run-length encoding is a fast and simple method of encoding strings. The basic idea is to represent repeated successive characters as a single count and character. For example, the string "AAAABBBCCDAA" would be encoded as "4A3B2C1D2A". Implement run-length encoding and decoding. You can a...
[ 37811, 26220, 416, 25, 6186, 685, 28406, 60, 198, 198, 10987, 12, 13664, 21004, 318, 257, 3049, 290, 2829, 2446, 286, 21004, 13042, 13, 198, 464, 4096, 2126, 318, 284, 2380, 5100, 25175, 3435, 355, 257, 2060, 954, 290, 2095, 13, 198, ...
3.248996
249
""" Tests for mail utils """ from unittest.mock import Mock from django.core.exceptions import ValidationError from requests import Response from rest_framework import status from courses.factories import CourseRunFactory from dashboard.models import ProgramEnrollment from financialaid.api import get_formatted_course...
[ 37811, 198, 51, 3558, 329, 6920, 3384, 4487, 198, 37811, 198, 198, 6738, 555, 715, 395, 13, 76, 735, 1330, 44123, 198, 6738, 42625, 14208, 13, 7295, 13, 1069, 11755, 1330, 3254, 24765, 12331, 198, 6738, 7007, 1330, 18261, 198, 6738, 1...
2.384647
2,423
#!/usr/bin/env python # Copyright (c) Facebook, Inc. and its affiliates. # All rights reserved. # # This source code is licensed under the license found in the # LICENSE file in the root directory of this source tree. import argparse import json import os from tqdm import tqdm from multiprocessing import Pool import ...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 198, 2, 15069, 357, 66, 8, 3203, 11, 3457, 13, 290, 663, 29116, 13, 198, 2, 1439, 2489, 10395, 13, 198, 2, 198, 2, 770, 2723, 2438, 318, 11971, 739, 262, 5964, 1043, 287, 262, 198, 2,...
3.425197
127
#!/bin/python3 import math import os import random import re import sys from collections import Counter # # Complete the 'beautifulPairs' function below. # # The function is expected to return an INTEGER. # The function accepts following parameters: # 1. INTEGER_ARRAY A # 2. INTEGER_ARRAY B # if __name__ == '__main...
[ 2, 48443, 8800, 14, 29412, 18, 198, 198, 11748, 10688, 198, 11748, 28686, 198, 11748, 4738, 198, 11748, 302, 198, 11748, 25064, 198, 6738, 17268, 1330, 15034, 198, 2, 198, 2, 13248, 262, 705, 40544, 4135, 47, 3468, 6, 2163, 2174, 13, ...
2.678733
221
""" Mask R-CNN Training on UNIMIB2016 food dataset """ # foods_list=['torta_salata_3', 'torta_salata_rustica_(zucchine)', 'pasta_zafferano_e_piselli', 'lasagna_alla_bolognese', 'torta_crema', 'zucchine_umido', 'pasta_sugo_pesce', 'pasta_mare_e_monti', 'torta_crema_2', 'scaloppine', 'fagiolini', 'pane', 'pasta_ricotta_...
[ 37811, 198, 45195, 371, 12, 18474, 198, 44357, 319, 4725, 3955, 9865, 5304, 2057, 27039, 220, 198, 37811, 198, 2, 9013, 62, 4868, 28, 17816, 83, 419, 64, 62, 21680, 1045, 62, 18, 3256, 705, 83, 419, 64, 62, 21680, 1045, 62, 11469, ...
2.30809
2,324
"""Generate menu of available score category choices after completing dice roll turn. Menu Choices Key Description 1 Ones 2 Twos 3 Threes 4 Fours 5 Fives 6 Sixes A Three of a Kind B Four of a Kind C Full House D Small Straight E Large Straight F ...
[ 37811, 8645, 378, 6859, 286, 1695, 4776, 6536, 7747, 706, 14339, 198, 67, 501, 4836, 1210, 13, 198, 198, 23381, 10031, 1063, 198, 198, 9218, 220, 220, 220, 220, 12489, 198, 352, 220, 220, 220, 220, 220, 32606, 198, 362, 220, 220, 22...
2.193099
1,507
# Copyright 2019 Amazon.com, Inc. or its affiliates. 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. # A copy of the License is located at # # http://www.apache.org/licenses/LICENSE-2.0 # # or in the "license...
[ 2, 15069, 13130, 6186, 13, 785, 11, 3457, 13, 393, 663, 29116, 13, 1439, 6923, 33876, 13, 198, 2, 198, 2, 49962, 739, 262, 24843, 13789, 11, 10628, 362, 13, 15, 357, 1169, 366, 34156, 11074, 198, 2, 921, 743, 407, 779, 428, 2393, ...
3.230631
555
from vunit import VUnit from os.path import join, dirname from shutil import copy2 from itertools import zip_longest import re import os root = dirname(__file__) def copy_hex_files(vu): """ TODO: Find a better way to copy this files without accessing private properties. More info about this worka...
[ 6738, 410, 20850, 1330, 569, 26453, 198, 6738, 28686, 13, 6978, 1330, 4654, 11, 26672, 3672, 198, 6738, 4423, 346, 1330, 4866, 17, 198, 6738, 340, 861, 10141, 1330, 19974, 62, 6511, 395, 198, 11748, 302, 198, 11748, 28686, 198, 198, 1...
2.627322
915
#!/usr/bin/python # -*- coding: utf8 -*- """ .. moduleauthor:: Adrian Brasoveanu <adrian.brasoveanu@htwchur.ch> """ from __future__ import unicode_literals from builtins import object import logging import requests import json from eWRT.ws.rest import MultiRESTClient from weblyzard_api.client import (WEBLYZARD_API_UR...
[ 2, 48443, 14629, 14, 8800, 14, 29412, 198, 2, 532, 9, 12, 19617, 25, 3384, 69, 23, 532, 9, 12, 198, 37811, 198, 492, 8265, 9800, 3712, 21462, 39452, 659, 42357, 1279, 324, 4484, 13, 1671, 292, 659, 42357, 31, 71, 4246, 354, 333, ...
2.172493
2,174
#!/usr/bin/env python # -*- coding: utf-8 -*- # from __future__ import unicode_literals # This file is only used if you use `make publish` or # explicitly specify it as your config file. import os import sys sys.path.append(os.curdir) from pelicanconf import * SITEURL = '' RELATIVE_URLS = False FEED_...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 201, 198, 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 1303, 201, 198, 6738, 11593, 37443, 834, 1330, 28000, 1098, 62, 17201, 874, 201, 198, 201, 198, 2, 770, 2393, 318, 69...
2.396396
222
from django.conf.urls.defaults import * from ..views import * urlpatterns = patterns('', url(r'^$', ProfileDetialView.as_view(), name='profile_view_details' ), url(r'^profile/del/(?P<pk>\d+)/$', ProfileDeleteAccountView.as_view(), name='profile_delete_account' ), ...
[ 6738, 42625, 14208, 13, 10414, 13, 6371, 82, 13, 12286, 82, 1330, 1635, 198, 6738, 11485, 33571, 1330, 1635, 198, 198, 6371, 33279, 82, 796, 7572, 10786, 3256, 628, 220, 220, 220, 19016, 7, 81, 6, 61, 3, 3256, 198, 220, 220, 220, ...
2.091983
1,609
import os import pathlib import shutil import stat from distutils.dir_util import copy_tree # import getpass # USER = getpass.getuser()
[ 11748, 28686, 198, 11748, 3108, 8019, 198, 11748, 4423, 346, 198, 11748, 1185, 198, 6738, 1233, 26791, 13, 15908, 62, 22602, 1330, 4866, 62, 21048, 628, 198, 2, 1330, 651, 6603, 198, 2, 1294, 1137, 796, 651, 6603, 13, 1136, 7220, 3419...
3.155556
45
import json import uuid import jsonschema import anchore_engine.configuration.localconfig from anchore_engine.apis.context import ApiRequestContextProxy import anchore_engine.configuration.localconfig from anchore_engine.clients.services import http from anchore_engine.clients.services import internal_client_for from ...
[ 11748, 33918, 198, 11748, 334, 27112, 198, 11748, 44804, 684, 2395, 2611, 198, 198, 11748, 12619, 382, 62, 18392, 13, 11250, 3924, 13, 12001, 11250, 198, 6738, 12619, 382, 62, 18392, 13, 499, 271, 13, 22866, 1330, 5949, 72, 18453, 21947...
2.619366
1,797
from .test import CpTestEndpoint
[ 6738, 764, 9288, 1330, 327, 79, 14402, 12915, 4122, 198 ]
3.3
10
from pandas import DataFrame from arch.data.utility import load_file def load() -> DataFrame: """ Load the AAA and BAA rates used in the examples Returns ------- data : DataFrame Data set containing the rates on AAA and BAA rated bonds. """ return load_file(__file__, "default.cs...
[ 6738, 19798, 292, 1330, 6060, 19778, 198, 198, 6738, 3934, 13, 7890, 13, 315, 879, 1330, 3440, 62, 7753, 628, 198, 4299, 3440, 3419, 4613, 6060, 19778, 25, 628, 220, 220, 220, 37227, 198, 220, 220, 220, 8778, 262, 25734, 290, 347, 3...
2.893805
113
import pytest import random @pytest.fixture @pytest.fixture()
[ 11748, 12972, 9288, 198, 11748, 4738, 628, 198, 198, 31, 9078, 9288, 13, 69, 9602, 628, 198, 31, 9078, 9288, 13, 69, 9602, 3419, 198 ]
2.68
25
# Generated by Django 3.1.10 on 2021-06-28 18:16 from django.db import migrations, models
[ 2, 2980, 515, 416, 37770, 513, 13, 16, 13, 940, 319, 33448, 12, 3312, 12, 2078, 1248, 25, 1433, 198, 198, 6738, 42625, 14208, 13, 9945, 1330, 15720, 602, 11, 4981, 628 ]
2.875
32
import os import scipy.io.wavfile as wav from simple_diarizer.utils import check_wav_16khz_mono, convert_wavfile from simple_diarizer.diarizer import Diarizer from speechemotionrecognition.dnn import CNN from speechemotionrecognition.utilities import get_feature_vector_from_mfcc_from_ndarray class SentimentDiarizer...
[ 11748, 28686, 198, 11748, 629, 541, 88, 13, 952, 13, 45137, 7753, 355, 266, 615, 198, 198, 6738, 2829, 62, 10989, 283, 7509, 13, 26791, 1330, 2198, 62, 45137, 62, 1433, 14636, 89, 62, 2144, 78, 11, 10385, 62, 45137, 7753, 198, 6738,...
2.3126
1,254
""" ## classes and functions for working with Alma ## CREATED: jwammerman (jwacooks) 2018-09 ## EDITED: aidans (atla5) 2019-01 """ from services import Service, CONTENT_TYPE_XML, get_api_key from urllib.parse import quote_plus from lxml import etree from time import strftime # reused variables RIGHTS_DICTIONARY = { ...
[ 37811, 198, 2235, 6097, 290, 5499, 329, 1762, 351, 35152, 198, 2235, 29244, 11617, 25, 474, 86, 321, 647, 805, 357, 73, 86, 330, 31085, 8, 2864, 12, 2931, 198, 2235, 8392, 22061, 25, 6133, 504, 357, 265, 5031, 20, 8, 13130, 12, 48...
2.331252
6,246
""" A coroutine that returns a dict that spanning multiple lines. """ from tornado import gen @gen.coroutine
[ 37811, 198, 32, 1162, 28399, 326, 5860, 257, 8633, 326, 32557, 3294, 3951, 13, 198, 37811, 198, 6738, 33718, 1330, 2429, 198, 198, 31, 5235, 13, 10215, 28399, 198 ]
3.793103
29
""" Base for adapt """ import warnings import inspect from copy import deepcopy import numpy as np import tensorflow as tf from sklearn.base import BaseEstimator from sklearn.utils import check_array from sklearn.metrics.pairwise import KERNEL_PARAMS from sklearn.exceptions import NotFittedError from tensorflow.keras...
[ 37811, 198, 14881, 329, 6068, 198, 37811, 198, 198, 11748, 14601, 198, 11748, 10104, 198, 6738, 4866, 1330, 2769, 30073, 198, 198, 11748, 299, 32152, 355, 45941, 198, 11748, 11192, 273, 11125, 355, 48700, 198, 6738, 1341, 35720, 13, 8692,...
2.475629
1,272
from bridges.symbol import *
[ 6738, 19432, 13, 1837, 23650, 1330, 1635, 628, 628, 198 ]
3.3
10
import sys, json, codecs, gzip from datetime import datetime from argparse import ArgumentParser from app.prepare.read_json import JsonLineReader from .comp_hets import FamilyDataMiner, CompHetsBatch #===================================== #===================================== if __name__ == '__main__': sys.stdin...
[ 11748, 25064, 11, 33918, 11, 40481, 82, 11, 308, 13344, 198, 6738, 4818, 8079, 1330, 4818, 8079, 198, 6738, 1822, 29572, 1330, 45751, 46677, 198, 198, 6738, 598, 13, 46012, 533, 13, 961, 62, 17752, 1330, 449, 1559, 13949, 33634, 198, ...
2.33119
933
from django.core.management.base import BaseCommand from cases.models import Case
[ 6738, 42625, 14208, 13, 7295, 13, 27604, 13, 8692, 1330, 7308, 21575, 198, 198, 6738, 2663, 13, 27530, 1330, 8913, 628 ]
4
21
#!/usr/bin/env python # -*- encoding: utf-8 -*- # # Copyright 2014 TelefΓ³nica InvestigaciΓ³n y Desarrollo, S.A.U # # This file is part of FI-WARE project. # # 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 th...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 198, 2, 532, 9, 12, 21004, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 2, 198, 2, 15069, 1946, 14318, 69, 18840, 3970, 16203, 32009, 18840, 331, 2935, 283, 2487, 78, 11, 311, 13, 32, 13, ...
3.055
400
size(400, 400) background(255) image_names = ["image1.png","image2.png"] images = [] for path in image_names: images.append(loadImage(path)) print path npoints = 3 #number of circles an black dots fleckx = [] flecky = [] a = []#semiaxis ellipses horizontal b = []#semiaxis ellipses vertical punktex = [] punk...
[ 198, 198, 7857, 7, 7029, 11, 7337, 8, 198, 25249, 7, 13381, 8, 198, 198, 9060, 62, 14933, 796, 14631, 9060, 16, 13, 11134, 2430, 9060, 17, 13, 11134, 8973, 198, 17566, 796, 17635, 198, 1640, 3108, 287, 2939, 62, 14933, 25, 198, 22...
1.928276
725
# Generated by Django 3.0.7 on 2020-08-05 11:46 from django.db import migrations, models
[ 2, 2980, 515, 416, 37770, 513, 13, 15, 13, 22, 319, 12131, 12, 2919, 12, 2713, 1367, 25, 3510, 198, 198, 6738, 42625, 14208, 13, 9945, 1330, 15720, 602, 11, 4981, 628 ]
2.84375
32
import time from time import gmtime, strftime import datetime import io import json import twitter import matplotlib.pylab as plt import sys from urllib import unquote from urllib2 import URLError from httplib import BadStatusLine from dateutil import parser import mysql.connector start_time = time.time() mysqlUser=...
[ 11748, 640, 198, 6738, 640, 1330, 308, 76, 2435, 11, 965, 31387, 198, 11748, 4818, 8079, 198, 11748, 33245, 198, 11748, 33918, 220, 220, 198, 11748, 17044, 198, 198, 11748, 2603, 29487, 8019, 13, 79, 2645, 397, 355, 458, 83, 198, 1174...
2.57739
1,893
""" GUI Test Module """ # from tec.ic.ia.p2.g08_controller import Controller from tec.ic.ia.p2.g08_gui_testing import main # def main(): # """Creates and runs the gui""" # controller = Controller() # debug=True) # controller.run() # from tec.ic.ia.p2.g08_controller import Controller if __name__ == '__m...
[ 37811, 198, 40156, 6208, 19937, 198, 37811, 198, 198, 2, 422, 573, 66, 13, 291, 13, 544, 13, 79, 17, 13, 70, 2919, 62, 36500, 1330, 22741, 198, 6738, 573, 66, 13, 291, 13, 544, 13, 79, 17, 13, 70, 2919, 62, 48317, 62, 33407, 1...
2.587786
131
l = [64, 34, 25, 12, 22, 11, 90] print(linear_search(l, 12)) print(linear_search(l, 91))
[ 198, 75, 796, 685, 2414, 11, 4974, 11, 1679, 11, 1105, 11, 2534, 11, 1367, 11, 4101, 60, 198, 4798, 7, 29127, 62, 12947, 7, 75, 11, 1105, 4008, 198, 4798, 7, 29127, 62, 12947, 7, 75, 11, 10495, 4008, 198 ]
2.195122
41
"""Admin module for users app.""" from django.contrib import admin from django.contrib.auth.admin import UserAdmin from django.utils.translation import gettext_lazy as _ from .forms import CustomUserChangeForm, CustomUserCreationForm from .models import CustomUser @admin.register(CustomUser) class CustomUserAdmin(Us...
[ 37811, 46787, 8265, 329, 2985, 598, 526, 15931, 198, 6738, 42625, 14208, 13, 3642, 822, 1330, 13169, 198, 6738, 42625, 14208, 13, 3642, 822, 13, 18439, 13, 28482, 1330, 11787, 46787, 198, 6738, 42625, 14208, 13, 26791, 13, 41519, 1330, ...
1.839416
1,096