content
stringlengths
1
1.04M
input_ids
listlengths
1
774k
ratio_char_token
float64
0.38
22.9
token_count
int64
1
774k
print('\nDIGITE UM VALOR PARA CADA RETA (A,B,C) PARA SABER SE É POSSÍVEL FORMAR UM TRIANGULO.\n') a = int(input('Digite o valor de A: ')) b = int(input('Digite o valor de B: ')) c = int(input('Digite o valor de C: ')) if a < b + c and b < a + c and c < a + b: print('\n\33[1;33mAs retas {}, {} e {} formam um triangu...
[ 4798, 10786, 59, 77, 35, 3528, 12709, 44352, 26173, 1581, 350, 24401, 327, 26853, 371, 20892, 357, 32, 11, 33, 11, 34, 8, 350, 24401, 311, 6242, 1137, 7946, 43052, 350, 18420, 38638, 18697, 7473, 40569, 44352, 37679, 15567, 6239, 46, ...
1.944737
380
import pytest from rjgtoys.thing import Thing
[ 11748, 12972, 9288, 198, 198, 6738, 374, 73, 13655, 19417, 13, 1197, 1330, 21561, 628, 628, 628 ]
3.058824
17
# -*- coding:utf-8 -*- from __future__ import unicode_literals from django.utils.six import PY3 from yepes.contrib.datamigrations.serializers.csv import CsvSerializer
[ 2, 532, 9, 12, 19617, 25, 40477, 12, 23, 532, 9, 12, 198, 198, 6738, 11593, 37443, 834, 1330, 28000, 1098, 62, 17201, 874, 198, 198, 6738, 42625, 14208, 13, 26791, 13, 19412, 1330, 350, 56, 18, 198, 198, 6738, 331, 538, 274, 13, ...
2.730159
63
from mapsite import MapSite
[ 6738, 8739, 578, 1330, 9347, 29123, 628, 198 ]
3.75
8
import numpy as np from PIL import Image, ImageDraw, ImageFont, ImageMath from pyray.rotation import * from pyray.imageutils import * from pyray.shapes.twod.paraboloid import * from pyray.shapes.solid.polyhedron import * from pyray.axes import * from pyray.rotation import * from pyray.axes import Path, ZigZagPath, draw...
[ 11748, 299, 32152, 355, 45941, 198, 6738, 350, 4146, 1330, 7412, 11, 7412, 25302, 11, 7412, 23252, 11, 7412, 37372, 198, 6738, 279, 2417, 323, 13, 10599, 341, 1330, 1635, 198, 6738, 279, 2417, 323, 13, 9060, 26791, 1330, 1635, 198, 67...
2.874126
143
import numpy as np import matplotlib.pyplot as plt from SoftModuleInfo import SoftModuleInfo import copy from Utilities import LOG import math
[ 11748, 299, 32152, 355, 45941, 198, 11748, 2603, 29487, 8019, 13, 9078, 29487, 355, 458, 83, 198, 6738, 8297, 26796, 12360, 1330, 8297, 26796, 12360, 198, 11748, 4866, 198, 6738, 41086, 1330, 41605, 198, 11748, 10688, 628, 628 ]
3.842105
38
from __future__ import absolute_import import logging from string import Formatter from .exceptions import InternalError from .fields import AmazonSlots, AmazonField, AmazonCustom log = logging.getLogger(__name__) DEFAULT_INTENTS = [ "LaunchRequest", "CancelIntent", "StopIntent", "HelpIntent", "Se...
[ 6738, 11593, 37443, 834, 1330, 4112, 62, 11748, 198, 11748, 18931, 198, 6738, 4731, 1330, 5178, 1436, 198, 6738, 764, 1069, 11755, 1330, 18628, 12331, 198, 6738, 764, 25747, 1330, 6186, 11122, 1747, 11, 6186, 15878, 11, 6186, 15022, 198, ...
3.192593
270
# Peter Dorsaneo # # Summer 2019 FIS(h) Tank Project, Team 3 # ======================================== # This is where we will house all the constants for the main python script. JOB_SEARCH_URL = 'https://careers.peopleclick.com/careerscp/client_FISGlobal/external/results/searchResult.html' # constants for the dic...
[ 2, 5613, 360, 669, 1531, 78, 198, 2, 220, 198, 2, 10216, 13130, 376, 1797, 7, 71, 8, 15447, 4935, 11, 4816, 513, 198, 2, 46111, 1421, 18604, 198, 2, 770, 318, 810, 356, 481, 2156, 477, 262, 38491, 329, 262, 1388, 21015, 4226, 13...
3.508065
124
# Python libs import json import logging # Django libs from django.shortcuts import render from django.http import HttpResponse from django.contrib.auth.decorators import login_required # Our methods from core.utils import OdooApi #, logger_debug # Load Logging definition, this is defined in settings.py in the LOGGIN...
[ 198, 2, 11361, 9195, 82, 198, 11748, 33918, 198, 11748, 18931, 198, 2, 37770, 9195, 82, 198, 6738, 42625, 14208, 13, 19509, 23779, 1330, 8543, 198, 6738, 42625, 14208, 13, 4023, 1330, 367, 29281, 31077, 198, 6738, 42625, 14208, 13, 3642...
3.477273
132
import math from collections import OrderedDict from functools import partial import numpy as np import torch import torch.nn as nn import torch.nn.functional as F #--------------------------------------# # Gelu激活函数的实现 # 利用近似的数学公式 #--------------------------------------# #--------------------------...
[ 11748, 10688, 201, 198, 6738, 17268, 1330, 14230, 1068, 35, 713, 201, 198, 6738, 1257, 310, 10141, 1330, 13027, 201, 198, 201, 198, 11748, 299, 32152, 355, 45941, 201, 198, 11748, 28034, 201, 198, 11748, 28034, 13, 20471, 355, 299, 77, ...
1.770791
493
import pandas as pd import numpy as np from numpy import concatenate import yfinance as yf
[ 11748, 19798, 292, 355, 279, 67, 198, 11748, 299, 32152, 355, 45941, 198, 6738, 299, 32152, 1330, 1673, 36686, 378, 198, 11748, 331, 69, 14149, 355, 331, 69 ]
3.214286
28
# coding: utf-8 """ MBTA MBTA service API. https://www.mbta.com Source code: https://github.com/mbta/api # noqa: E501 The version of the OpenAPI document: 3.0 Contact: developer@mbta.com Generated by: https://openapi-generator.tech """ from __future__ import absolute_import import re # noqa:...
[ 2, 19617, 25, 3384, 69, 12, 23, 198, 198, 37811, 198, 220, 220, 220, 10771, 5603, 628, 220, 220, 220, 10771, 5603, 2139, 7824, 13, 3740, 1378, 2503, 13, 2022, 8326, 13, 785, 8090, 2438, 25, 3740, 1378, 12567, 13, 785, 14, 2022, 83...
2.759344
8,776
import gdsfactory as gf from gdsfactory import CrossSection from gdsfactory import path as pa if __name__ == "__main__": # c = test_no_ports() c = test_path() c.show()
[ 11748, 308, 9310, 69, 9548, 355, 308, 69, 198, 6738, 308, 9310, 69, 9548, 1330, 6372, 16375, 198, 6738, 308, 9310, 69, 9548, 1330, 3108, 355, 14187, 628, 628, 198, 361, 11593, 3672, 834, 6624, 366, 834, 12417, 834, 1298, 198, 220, 2...
2.555556
72
import pandas as pd import os from typing import List, Tuple, Dict from collections import defaultdict from datetime import datetime import json if __name__ == "__main__": game_data_path = get_game_data_path() game_data_list = get_game_data_list(game_data_path) df_game_r...
[ 11748, 19798, 292, 355, 279, 67, 201, 198, 11748, 28686, 201, 198, 6738, 19720, 1330, 7343, 11, 309, 29291, 11, 360, 713, 201, 198, 6738, 17268, 1330, 4277, 11600, 201, 198, 6738, 4818, 8079, 1330, 4818, 8079, 201, 198, 11748, 33918, ...
2.121005
438
###################################################################################################################### # Copyright 2016 Amazon.com, Inc. or its affiliates. All Rights Reserved. # # ...
[ 29113, 29113, 29113, 14468, 4242, 2235, 198, 2, 220, 15069, 1584, 6186, 13, 785, 11, 3457, 13, 393, 663, 29116, 13, 1439, 6923, 33876, 13, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2...
2.333968
1,575
""" """ import numpy as np from ...utils import unsorting_indices from ...utils.conditional_percentile import _check_xyn_bounds, rank_order_function from .engines import cython_bin_free_cam_kernel, get_value_at_rank from .tests.naive_python_cam import sample2_window_indices def conditional_abunmatch(x, y, x2, y2, nwi...
[ 37811, 198, 37811, 198, 11748, 299, 32152, 355, 45941, 198, 6738, 2644, 26791, 1330, 5576, 24707, 62, 521, 1063, 198, 6738, 2644, 26791, 13, 17561, 1859, 62, 25067, 576, 1330, 4808, 9122, 62, 87, 2047, 62, 65, 3733, 11, 4279, 62, 2875...
2.401481
2,700
from django import template from django.template.loader import get_template from django import VERSION as DJANGO_VERSION if DJANGO_VERSION >= (1, 10, 0): context_class = dict else: # Django<1.10 compatibility from django.template import Context context_class = Context register = template.Library() ...
[ 6738, 42625, 14208, 1330, 11055, 198, 6738, 42625, 14208, 13, 28243, 13, 29356, 1330, 651, 62, 28243, 198, 6738, 42625, 14208, 1330, 44156, 2849, 355, 13004, 1565, 11230, 62, 43717, 198, 198, 361, 13004, 1565, 11230, 62, 43717, 18189, 357...
3.205357
112
# -*- coding: utf-8 -*- """Regularization in PyKEEN.""" import functools import math from abc import ABC, abstractmethod from typing import Any, ClassVar, Collection, Iterable, Mapping, Optional, Type, Union import torch from torch import nn from torch.nn import functional from .utils import get_cls, normalize_strin...
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 198, 37811, 40164, 1634, 287, 9485, 7336, 1677, 526, 15931, 198, 11748, 1257, 310, 10141, 198, 11748, 10688, 198, 6738, 450, 66, 1330, 9738, 11, 12531, 24396, 198, 6738, ...
2.618016
2,309
"""Support for MAX! binary sensors via MAX! Cube.""" import logging from homeassistant.components.binary_sensor import ( DEVICE_CLASS_WINDOW, BinarySensorEntity, ) from . import DATA_KEY _LOGGER = logging.getLogger(__name__) def setup_platform(hass, config, add_entities, discovery_info=None): """Iterat...
[ 37811, 15514, 329, 25882, 0, 13934, 15736, 2884, 25882, 0, 23315, 526, 15931, 198, 11748, 18931, 198, 198, 6738, 1363, 562, 10167, 13, 5589, 3906, 13, 39491, 62, 82, 22854, 1330, 357, 198, 220, 220, 220, 5550, 27389, 62, 31631, 62, 28...
2.534682
692
import asyncio from typing import Callable, NamedTuple commands = []
[ 11748, 30351, 952, 201, 198, 6738, 19720, 1330, 4889, 540, 11, 34441, 51, 29291, 201, 198, 201, 198, 201, 198, 9503, 1746, 796, 17635, 201, 198, 201, 198, 201 ]
2.724138
29
count = 0 sum = 0 average = 0 # \n is used to print the data on new line. print '\nBEFORE PROCESSING' print 'Count = ', count print 'Sum = ', sum print 'Average = ', average print '\nCount Sum Number' for numbers in [1,5,6,39,91,14,2,73]: count = count + 1 sum = sum + numbers print count, sum, numbers av...
[ 9127, 796, 657, 198, 16345, 796, 657, 198, 23913, 796, 657, 198, 198, 2, 3467, 77, 318, 973, 284, 3601, 262, 1366, 319, 649, 1627, 13, 198, 4798, 705, 59, 77, 12473, 30818, 41755, 7597, 2751, 6, 198, 4798, 705, 12332, 796, 46083, ...
2.78481
158
from tortoise import Model, fields from datetime import datetime from enum import Enum, IntEnum import asyncio
[ 6738, 7619, 25678, 1330, 9104, 11, 7032, 198, 6738, 4818, 8079, 1330, 4818, 8079, 198, 6738, 33829, 1330, 2039, 388, 11, 2558, 4834, 388, 198, 11748, 30351, 952 ]
3.928571
28
from leapp.models import Model, fields from leapp.topics import SystemInfoTopic
[ 6738, 443, 1324, 13, 27530, 1330, 9104, 11, 7032, 198, 6738, 443, 1324, 13, 4852, 873, 1330, 4482, 12360, 33221, 628 ]
3.857143
21
#import sys #sys.path.insert(0,'/global/project/projectdirs/metatlas/anaconda/lib/python2.7/site-packages' ) #sys.path.append('/project/projectdirs/metatlas/projects/ms_monitor_tools') from metatlas.helpers import metatlas_get_data_helper_fun as ma_data from metatlas import metatlas_objects as metob from metatlas impo...
[ 2, 11748, 25064, 198, 2, 17597, 13, 6978, 13, 28463, 7, 15, 4032, 14, 20541, 14, 16302, 14, 16302, 15908, 82, 14, 4164, 265, 21921, 14, 272, 330, 13533, 14, 8019, 14, 29412, 17, 13, 22, 14, 15654, 12, 43789, 6, 1267, 198, 2, 175...
2.793395
1,181
import veml6070 if __name__ == '__main__': veml = veml6070.Veml6070() for i in [veml6070.INTEGRATIONTIME_1_2T, veml6070.INTEGRATIONTIME_1T, veml6070.INTEGRATIONTIME_2T, veml6070.INTEGRATIONTIME_4T]: veml.set_integration_time(i) uv_raw = veml.get_uva_li...
[ 198, 11748, 1569, 4029, 1899, 2154, 198, 198, 361, 11593, 3672, 834, 6624, 705, 834, 12417, 834, 10354, 198, 220, 220, 220, 1569, 4029, 796, 1569, 4029, 1899, 2154, 13, 53, 368, 75, 1899, 2154, 3419, 198, 220, 220, 220, 329, 1312, 2...
1.844961
258
import logging logging.getLogger("urllib3").setLevel(logging.ERROR) logging.getLogger("requests").setLevel(logging.WARNING) logging.getLogger("requests_cache").setLevel(logging.ERROR) logging.getLogger("alembic").setLevel(logging.WARNING) logging.getLogger("httpstream").setLevel(logging.WARNING) logging.getLogger("pre...
[ 11748, 18931, 198, 198, 6404, 2667, 13, 1136, 11187, 1362, 7203, 333, 297, 571, 18, 11074, 2617, 4971, 7, 6404, 2667, 13, 24908, 8, 198, 6404, 2667, 13, 1136, 11187, 1362, 7203, 8897, 3558, 11074, 2617, 4971, 7, 6404, 2667, 13, 31502,...
2.878049
123
""" Quality and fast triangular mesh generation using Jonathan Shewchuk's triangle algorithm (jrs@cs.berkeley.edu) modified to allow input of boundary shapefile and input lines which will be respected by the triangulation Author: Antony Orton 26 August 2018 """ import triangle as tri import triangle.plot ...
[ 198, 37811, 14156, 290, 3049, 46963, 19609, 5270, 1262, 11232, 1375, 86, 46019, 338, 22950, 11862, 357, 73, 3808, 31, 6359, 13, 527, 13490, 13, 15532, 8, 198, 220, 220, 220, 9518, 284, 1249, 5128, 286, 18645, 5485, 7753, 290, 5128, 39...
2.329145
4,536
#!/usr/bin/env python import argparse, sys import os # import archival.core as archiver ## or sys.path.append("..") import archival.core as archiver if __name__ == '__main__': __main__()
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 201, 198, 11748, 1822, 29572, 11, 25064, 201, 198, 11748, 28686, 201, 198, 2, 1330, 3934, 2473, 13, 7295, 355, 3934, 1428, 201, 198, 2235, 393, 201, 198, 17597, 13, 6978, 13, 33295, 7203, ...
2.556962
79
''' Convenience functions for array operations and ADC conversion ''' @kernel @kernel def array_sum(array, ch): ''' Compute the sum along one channel ''' slice = [arr[ch] for arr in array] result = 0 for val in slice: result += val return result @kernel def array_mean(array, ch): ''' C...
[ 7061, 6, 1482, 574, 1240, 5499, 329, 7177, 4560, 290, 49169, 11315, 705, 7061, 198, 31, 33885, 198, 198, 31, 33885, 198, 4299, 7177, 62, 16345, 7, 18747, 11, 442, 2599, 198, 220, 220, 220, 705, 7061, 3082, 1133, 262, 2160, 1863, 530...
2.699083
545
#!/usr/bin/env python # -*- coding: utf-8 -*- from access.views import view as access_view from access.views2 import view as access_view2 from admin.views import view as admin_view from admin.registro import view as registro_view from admin.objeto import view as objeto_view from admin.usuario import view as usuario_vi...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 198, 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 198, 6738, 1895, 13, 33571, 1330, 1570, 355, 1895, 62, 1177, 198, 6738, 1895, 13, 33571, 17, 1330, 1570, 355, 1895, 6...
3.19802
101
from django.utils.translation import ugettext_lazy as _ import horizon from openstack_dashboard.dashboards.project import dashboard dashboard.Project.register(Dbaas)
[ 6738, 42625, 14208, 13, 26791, 13, 41519, 1330, 334, 1136, 5239, 62, 75, 12582, 355, 4808, 198, 11748, 17810, 198, 6738, 1280, 25558, 62, 42460, 3526, 13, 42460, 12821, 13, 16302, 1330, 30415, 198, 198, 42460, 3526, 13, 16775, 13, 30238...
3.553191
47
from django.conf import settings from django.conf.urls.defaults import patterns, include, url from django.views.generic.base import TemplateView, RedirectView urlpatterns = patterns('', url(r'^$', TemplateView.as_view(template_name='index.html'), name='home'), url(r'^impressum.html$', TemplateView.as_view(temp...
[ 6738, 42625, 14208, 13, 10414, 1330, 6460, 198, 6738, 42625, 14208, 13, 10414, 13, 6371, 82, 13, 12286, 82, 1330, 7572, 11, 2291, 11, 19016, 198, 6738, 42625, 14208, 13, 33571, 13, 41357, 13, 8692, 1330, 37350, 7680, 11, 2297, 1060, 7...
2.869198
474
import numpy as np import scipy.linalg.blas as blas
[ 11748, 299, 32152, 355, 45941, 198, 11748, 629, 541, 88, 13, 75, 1292, 70, 13, 2436, 292, 355, 698, 292, 628, 198 ]
2.454545
22
from setuptools import setup setup(name='bracketool', version='0.1', description='Create pairings and brackets for competitions', url='https://bitbucket.org/dhontecillas/bracketool', author='David Hontecillas', author_email='dhontecillas@gmail.com', license='MIT', packages=['b...
[ 6738, 900, 37623, 10141, 1330, 9058, 198, 198, 40406, 7, 3672, 11639, 1671, 8317, 970, 3256, 198, 220, 220, 220, 220, 220, 2196, 11639, 15, 13, 16, 3256, 198, 220, 220, 220, 220, 220, 6764, 11639, 16447, 5166, 654, 290, 28103, 329, ...
2.460227
176
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.db import models, migrations
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 6738, 11593, 37443, 834, 1330, 28000, 1098, 62, 17201, 874, 198, 198, 6738, 42625, 14208, 13, 9945, 1330, 4981, 11, 15720, 602, 628 ]
2.891892
37
from simiir.config_readers.base_config_reader import BaseConfigReader from simiir.config_readers import empty_string_check, check_attributes from simiir.config_readers.component_generators.user_generator import UserComponentGenerator class UserConfigReader(BaseConfigReader): """ The User Configuration reader ...
[ 6738, 985, 72, 343, 13, 11250, 62, 961, 364, 13, 8692, 62, 11250, 62, 46862, 1330, 7308, 16934, 33634, 198, 6738, 985, 72, 343, 13, 11250, 62, 961, 364, 1330, 6565, 62, 8841, 62, 9122, 11, 2198, 62, 1078, 7657, 198, 6738, 985, 72,...
2.701226
897
from webfront.exceptions import EmptyQuerysetError from webfront.models import Protein from webfront.serializers.content_serializers import ModelContentSerializer import webfront.serializers.interpro import webfront.serializers.pdb from webfront.views.custom import SerializerDetail from webfront.views.queryset_manager...
[ 6738, 3992, 8534, 13, 1069, 11755, 1330, 33523, 4507, 263, 893, 316, 12331, 198, 6738, 3992, 8534, 13, 27530, 1330, 31702, 198, 198, 6738, 3992, 8534, 13, 46911, 11341, 13, 11299, 62, 46911, 11341, 1330, 9104, 19746, 32634, 7509, 198, 1...
3.60177
113
import logging from datetime import datetime, timedelta import webapp2 from google.appengine.ext import ndb, deferred, blobstore from google.appengine.api import memcache, mail, images, taskqueue, search import json from constants import * import tools from oauth2client import client import httplib2 class User(ndb.Mod...
[ 11748, 18931, 198, 6738, 4818, 8079, 1330, 4818, 8079, 11, 28805, 12514, 198, 11748, 3992, 1324, 17, 198, 6738, 23645, 13, 1324, 18392, 13, 2302, 1330, 299, 9945, 11, 28651, 11, 44812, 8095, 198, 6738, 23645, 13, 1324, 18392, 13, 15042,...
2.667394
917
import pytest from libetrv.data_struct import ScheduleMode from tests.utils.device_mock import DeviceMock @pytest.fixture() @pytest.fixture()
[ 11748, 12972, 9288, 198, 198, 6738, 9195, 21879, 85, 13, 7890, 62, 7249, 1330, 19281, 19076, 198, 198, 6738, 5254, 13, 26791, 13, 25202, 62, 76, 735, 1330, 16232, 44, 735, 628, 198, 31, 9078, 9288, 13, 69, 9602, 3419, 198, 198, 31, ...
2.94
50
import sys import os import argparse from pathlib import Path import time import json import tensorflow as tf from processing import utils from processing import postprocessing from processing.preprocessing import Preprocessor from processing.preprocessing import get_preprocessing_function from processing.postprocessin...
[ 11748, 25064, 198, 11748, 28686, 198, 11748, 1822, 29572, 198, 6738, 3108, 8019, 1330, 10644, 198, 11748, 640, 198, 11748, 33918, 198, 11748, 11192, 273, 11125, 355, 48700, 198, 6738, 7587, 1330, 3384, 4487, 198, 6738, 7587, 1330, 1281, 3...
2.984816
461
'''Challenges Set 1 Challenge 4 Detect single-character XOR''' import Challenge3 file_name = '4.txt' with open(file_name) as f: data = f.readline().replace('\r','').replace('\n','') data.decode('hex') text_list = [] while data: det = Challenge3.get_plain_text(data) text_list.appe...
[ 7061, 6, 41812, 34120, 220, 220, 5345, 352, 220, 220, 13879, 604, 220, 220, 220, 35874, 2060, 12, 22769, 1395, 1581, 7061, 6, 198, 11748, 13879, 18, 198, 198, 7753, 62, 3672, 796, 705, 19, 13, 14116, 6, 198, 4480, 1280, 7, 7753, 6...
2.306122
196
import pytest from unittest.mock import Mock from irrd.utils.test_utils import flatten_mock_calls from irrd.utils.rpsl_samples import SAMPLE_KEY_CERT from ..load_pgp_keys import load_pgp_keys @pytest.mark.usefixtures('tmp_gpg_dir')
[ 11748, 12972, 9288, 198, 6738, 555, 715, 395, 13, 76, 735, 1330, 44123, 198, 198, 6738, 4173, 4372, 13, 26791, 13, 9288, 62, 26791, 1330, 27172, 268, 62, 76, 735, 62, 66, 5691, 198, 6738, 4173, 4372, 13, 26791, 13, 81, 862, 75, 62...
2.611111
90
# Part 1 - Building the CNN # Importing the Keras libraries and packages from keras.models import Sequential from keras.layers import Conv2D from keras.layers import MaxPooling2D from keras.layers import Flatten from keras.layers import Dense #these 2 lines are for timer from timeit import default_timer as timer st...
[ 2, 2142, 352, 532, 11819, 262, 8100, 198, 2, 17267, 278, 262, 17337, 292, 12782, 290, 10392, 628, 198, 6738, 41927, 292, 13, 27530, 1330, 24604, 1843, 198, 6738, 41927, 292, 13, 75, 6962, 1330, 34872, 17, 35, 198, 6738, 41927, 292, ...
2.117166
1,101
# Copyright (c) 2021 uranum print("文字列リテラル :", "Hello") # 文字列リテラルです print("整数リテラル :", 12) # 整数リテラルです print("小数リテラル :", 3.14) # 小数リテラルです
[ 2, 15069, 357, 66, 8, 33448, 2956, 272, 388, 198, 198, 4798, 7203, 23877, 229, 27764, 245, 26344, 245, 12675, 24336, 9263, 9202, 1058, 1600, 366, 15496, 4943, 220, 1303, 10545, 244, 229, 27764, 245, 26344, 245, 12675, 24336, 9263, 9202,...
1.372549
102
#!/usr/bin/env python3 """Re-build Geofabrik spatial index.""" import geopandas as gpd import requests from rasterio.crs import CRS from geohealthaccess.geofabrik import Region BASE_URL = "http://download.geofabrik.de" CONTINENTS = [ "africa", "asia", "australia-oceania", "central-america", "euro...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 18, 198, 37811, 3041, 12, 11249, 2269, 1659, 397, 12602, 21739, 6376, 526, 15931, 198, 198, 11748, 30324, 392, 292, 355, 27809, 67, 198, 11748, 7007, 198, 6738, 374, 1603, 952, 13, 66, 3808...
2.383721
172
# Generate damage_bin_dict csv files for testing validatedamagebin import numpy as np import pandas as pd import csv if __name__ == '__main__': # Original, good file that other, bad ones are derived from df = pd.read_csv('../static/damage_bin_dict.csv') kwargs = {'index': False, 'float_format': '%.6f', '...
[ 2, 2980, 378, 2465, 62, 8800, 62, 11600, 269, 21370, 3696, 329, 4856, 31031, 321, 496, 8800, 198, 198, 11748, 299, 32152, 355, 45941, 198, 11748, 19798, 292, 355, 279, 67, 198, 11748, 269, 21370, 198, 198, 361, 11593, 3672, 834, 6624,...
2.467318
1,331
""" stanCode Breakout Project Adapted from Eric Roberts's Breakout by Sonja Johnson-Yu, Kylie Jue, Nick Bowman, and Jerry Liao YOUR DESCRIPTION HERE """ from campy.graphics.gwindow import GWindow from campy.graphics.gobjects import GOval, GRect, GLabel from campy.gui.events.mouse import onmouseclicked, onmousemoved i...
[ 37811, 198, 14192, 10669, 12243, 448, 4935, 198, 48003, 276, 422, 7651, 10918, 338, 12243, 448, 416, 198, 31056, 6592, 5030, 12, 40728, 11, 39859, 494, 449, 518, 11, 8047, 38774, 11, 220, 198, 392, 13075, 406, 13481, 198, 198, 56, 116...
2.892523
428
print(eval('(5+3)-2'))
[ 4798, 7, 18206, 10786, 7, 20, 10, 18, 13219, 17, 6, 4008, 198 ]
1.769231
13
import matplotlib.pyplot as plt import numpy as np import pandas as pd import matplotlib matplotlib.rcParams.update({'font.size': 20}) #hist_bins = np.linspace(0.0, 100.0, 101) hist_bins = np.linspace(0.0, 100.0, 27) gids_exc = np.array(range(0, 8500)) gids_inh = np.array(range(8500, 10000)) #for grating_id in [8]: ...
[ 11748, 2603, 29487, 8019, 13, 9078, 29487, 355, 458, 83, 198, 11748, 299, 32152, 355, 45941, 198, 11748, 19798, 292, 355, 279, 67, 198, 11748, 2603, 29487, 8019, 198, 6759, 29487, 8019, 13, 6015, 10044, 4105, 13, 19119, 15090, 6, 10331,...
2.069372
764
from Retropy_framework import * from framework.cefs import * mcagr_future('ACP')
[ 6738, 4990, 28338, 62, 30604, 1330, 1635, 198, 6738, 9355, 13, 344, 9501, 1330, 1635, 628, 198, 23209, 363, 81, 62, 37443, 10786, 33056, 11537 ]
3.28
25
from ocrmypdf import hookimpl from ocrmypdf.builtin_plugins.tesseract_ocr import TesseractOcrEngine from ocrmypdf._exec import tesseract from .generate_preview import generate_preview from .generate_svg import generate_svg from .utils import ( copy_hocr, copy_txt ) @hookimpl @hookimpl
[ 6738, 267, 6098, 1820, 12315, 1330, 8011, 23928, 198, 6738, 267, 6098, 1820, 12315, 13, 18780, 259, 62, 37390, 13, 83, 408, 263, 529, 62, 1696, 1330, 39412, 263, 529, 46, 6098, 13798, 198, 6738, 267, 6098, 1820, 12315, 13557, 18558, 1...
2.752294
109
import unittest from exabel_data_sdk.client.api.data_classes.signal import Signal
[ 11748, 555, 715, 395, 198, 198, 6738, 409, 9608, 62, 7890, 62, 21282, 74, 13, 16366, 13, 15042, 13, 7890, 62, 37724, 13, 12683, 282, 1330, 26484, 628 ]
3
28
#!/usr/bin/env python ''' Copyright (c) 2019, Robot Control and Pattern Recognition Group, Warsaw University of Technology 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...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 198, 7061, 6, 198, 220, 15069, 357, 66, 8, 13130, 11, 16071, 6779, 290, 23939, 31517, 653, 4912, 11, 32955, 2059, 286, 8987, 198, 220, 1439, 2489, 10395, 13, 198, 220, 2297, 396, 3890, 29...
3.31903
536
# coding=utf-8 """Utility functions for Pulp tests. This module may make use of :mod:`pulp_smash.api` and :mod:`pulp_smash.cli`, but the reverse should not be done. """ from __future__ import unicode_literals import uuid import unittest2 from pulp_smash import api, cli, config, exceptions from pulp_smash.constants ...
[ 2, 19617, 28, 40477, 12, 23, 198, 37811, 18274, 879, 5499, 329, 21624, 79, 5254, 13, 198, 198, 1212, 8265, 743, 787, 779, 286, 1058, 4666, 25, 63, 79, 29528, 62, 5796, 1077, 13, 15042, 63, 290, 1058, 4666, 25, 63, 79, 29528, 62, ...
2.801379
1,450
import pytest @pytest.mark.parametrize("search_type", ["V3000", "V2000", "SMILES"]) @pytest.mark.django_db
[ 11748, 12972, 9288, 628, 198, 31, 9078, 9288, 13, 4102, 13, 17143, 316, 380, 2736, 7203, 12947, 62, 4906, 1600, 14631, 53, 23924, 1600, 366, 53, 11024, 1600, 366, 12310, 4146, 1546, 8973, 8, 198, 31, 9078, 9288, 13, 4102, 13, 28241, ...
2.369565
46
from django import forms from django.utils.translation import ugettext_lazy as _ from vms.models import Node, DcNode, Storage from api.dc.node.views import dc_node from gui.forms import SerializerForm from gui.widgets import NumberInput add_storage_choices = Storage.ACCESS + ((DcNode.NS_ATTACH_ALL, _('(all)')), (DcNo...
[ 6738, 42625, 14208, 1330, 5107, 198, 6738, 42625, 14208, 13, 26791, 13, 41519, 1330, 334, 1136, 5239, 62, 75, 12582, 355, 4808, 198, 198, 6738, 410, 907, 13, 27530, 1330, 19081, 11, 360, 66, 19667, 11, 20514, 198, 6738, 40391, 13, 178...
1.97721
1,448
# -*- coding: utf-8 -*- import pandas as pd from fbprophet import Prophet import matplotlib.pyplot as plt plt.style.use('fivethirtyeight') df = pd.read_csv('oil_prices.csv') format = '%d/%m/%Y' df['ts'] = pd.to_datetime(df['ts'], format=format) df = df.set_index(pd.DatetimeIndex(df['ts'])) df = df.rena...
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 201, 198, 11748, 19798, 292, 355, 279, 67, 201, 198, 6738, 277, 65, 22930, 3202, 1330, 13583, 201, 198, 201, 198, 11748, 2603, 29487, 8019, 13, 9078, 29487, 355, 458, 83, 2...
2.761589
755
# -*- coding: utf-8 -*- # Generated by the protocol buffer compiler. DO NOT EDIT! # source: types.proto """ Epic-Kitchens dataset utilities from https://github.com/epic-kitchens/epic-kitchens-100-object-masks """ from google.protobuf import descriptor as _descriptor from google.protobuf import message as _message fro...
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 2, 2980, 515, 416, 262, 8435, 11876, 17050, 13, 220, 8410, 5626, 48483, 0, 198, 2, 2723, 25, 3858, 13, 1676, 1462, 198, 37811, 198, 13807, 291, 12, 20827, 29937, 27039...
1.882172
10,422
""" A set of functions for automatically applying simple preprocessing steps for removing a certain class and/or ensure that a pair of PSG and HYP files match each other in length OBS: It is always assumed that the PSG and HYP files start at the same real time. That is, they are aligned with respect to their first ent...
[ 37811, 198, 32, 900, 286, 5499, 329, 6338, 11524, 2829, 662, 36948, 4831, 329, 198, 2787, 5165, 257, 1728, 1398, 290, 14, 273, 4155, 326, 257, 5166, 286, 6599, 38, 290, 43624, 47, 3696, 2872, 198, 27379, 584, 287, 4129, 198, 198, 46...
2.400307
6,505
import os import utils import models import data import json from collaborative import Collab import torch import torch.distributed as dist import torch.nn.functional as F import argparse import numpy as np if __name__ == '__main__': # initialize MPI environment # dist.init_process_group(backend="mpi") d...
[ 11748, 28686, 198, 11748, 3384, 4487, 198, 11748, 4981, 198, 11748, 1366, 198, 11748, 33918, 198, 6738, 25408, 1330, 7778, 397, 198, 11748, 28034, 198, 11748, 28034, 13, 17080, 6169, 355, 1233, 198, 11748, 28034, 13, 20471, 13, 45124, 355...
2.645639
2,362
## Basic Model for Traffic Light Detection and Classification ## And training ## Model structure influenced by: ## Wolf Pack ## https://github.com/ericlavigne/CarND-Capstone-Wolf-Pack ## and ## https://github.com/MarkBroerkens/CarND-Capstone/blob/master/README.md import csv from glob import glob import cv2 import ...
[ 2235, 14392, 9104, 329, 23624, 4401, 46254, 290, 40984, 198, 2235, 843, 3047, 198, 198, 2235, 9104, 4645, 12824, 416, 25, 198, 198, 2235, 8662, 6400, 220, 198, 2235, 3740, 1378, 12567, 13, 785, 14, 35626, 18809, 48946, 14, 9914, 8575, ...
2.798077
936
# -*- coding: utf-8 -*- # Generated by the protocol buffer compiler. DO NOT EDIT! # source: assert_location.proto """Generated protocol buffer code.""" from google.protobuf import descriptor as _descriptor from google.protobuf import message as _message from google.protobuf import reflection as _reflection from google...
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 2, 2980, 515, 416, 262, 8435, 11876, 17050, 13, 220, 8410, 5626, 48483, 0, 198, 2, 2723, 25, 6818, 62, 24886, 13, 1676, 1462, 198, 37811, 8645, 515, 8435, 11876, 2438,...
2.380144
1,944
# Source Server Stats # File: sourcestats/app.py # Desc: the app from flask import Flask from flask.ext.script import Manager from redis import StrictRedis from . import settings # Setup Flask app app = Flask('sourcestats') app.debug = settings.DEBUG # Setup manager manager = Manager(app) # Redis redis_client = S...
[ 2, 8090, 9652, 20595, 198, 2, 9220, 25, 11348, 9165, 1381, 14, 1324, 13, 9078, 198, 2, 39373, 25, 262, 598, 198, 198, 6738, 42903, 1330, 46947, 198, 6738, 42903, 13, 2302, 13, 12048, 1330, 9142, 198, 6738, 2266, 271, 1330, 520, 2012...
3.134454
119
# Generated by Django 3.0.5 on 2020-04-21 17:35 from django.conf import settings import django.contrib.postgres.fields.jsonb from django.db import migrations, models import django.db.models.deletion
[ 2, 2980, 515, 416, 37770, 513, 13, 15, 13, 20, 319, 12131, 12, 3023, 12, 2481, 1596, 25, 2327, 198, 198, 6738, 42625, 14208, 13, 10414, 1330, 6460, 198, 11748, 42625, 14208, 13, 3642, 822, 13, 7353, 34239, 13, 25747, 13, 17752, 65, ...
3
67
import torch import torch.nn as nn from torch.autograd import Function import random import math
[ 11748, 28034, 198, 11748, 28034, 13, 20471, 355, 299, 77, 198, 6738, 28034, 13, 2306, 519, 6335, 1330, 15553, 198, 11748, 4738, 198, 11748, 10688, 628, 198 ]
3.666667
27
# No shebang line, this module is meant to be imported # # Copyright 2015 Ambient Entertainment GmbH & Co. KG # # 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/lice...
[ 2, 1400, 673, 36668, 1627, 11, 428, 8265, 318, 4001, 284, 307, 17392, 198, 2, 198, 2, 15069, 1853, 12457, 1153, 11058, 402, 2022, 39, 1222, 1766, 13, 509, 38, 198, 2, 198, 2, 49962, 739, 262, 24843, 13789, 11, 10628, 362, 13, 15, ...
3.816
250
"""Definitions for replication of the registry.""" from mahiru.definitions.registry import RegisteredObject from mahiru.replication import CanonicalStore, ReplicaUpdate class RegistryUpdate(ReplicaUpdate[RegisteredObject]): """An update for registry replicas.""" ReplicatedType = RegisteredObject class Regis...
[ 37811, 7469, 50101, 329, 30330, 286, 262, 20478, 526, 15931, 198, 6738, 42768, 35406, 13, 4299, 50101, 13, 2301, 4592, 1330, 27049, 10267, 198, 6738, 42768, 35406, 13, 35666, 3299, 1330, 19507, 605, 22658, 11, 18407, 3970, 10260, 628, 198...
3.911504
113
from tests.utils import W3CTestCase
[ 6738, 5254, 13, 26791, 1330, 370, 18, 4177, 395, 20448, 628 ]
3.363636
11
#Faça um programa que leia a largura e a altura de uma parede em metros , calcule a sua área e a # quantidade de tinta necessária para pinta-la, sabendo que cada litro de tinta pinta uma area de 2m² larg = float(input('Largura da parede : ')) alt = float(input( 'Altura da parede : ')) area = larg * alt print('Sua pa...
[ 2, 50110, 50041, 23781, 1430, 64, 8358, 443, 544, 257, 2552, 5330, 304, 257, 5988, 5330, 390, 334, 2611, 279, 1144, 68, 795, 1138, 4951, 837, 2386, 23172, 257, 424, 64, 6184, 94, 21468, 304, 257, 198, 2, 5554, 312, 671, 390, 34791, ...
2.518135
193
import numpy as np from sklearn.cluster import KMeans from sklearn.base import ClusterMixin, BaseEstimator from sklearn.metrics.pairwise import pairwise_kernels from sklearn.utils.validation import check_random_state from scipy.sparse import spdiags, issparse class PIC(ClusterMixin, BaseEstimator): """Apply clust...
[ 11748, 299, 32152, 355, 45941, 198, 6738, 1341, 35720, 13, 565, 5819, 1330, 509, 5308, 504, 198, 6738, 1341, 35720, 13, 8692, 1330, 38279, 35608, 259, 11, 7308, 22362, 320, 1352, 198, 6738, 1341, 35720, 13, 4164, 10466, 13, 24874, 3083,...
2.555324
2,395
#coding=utf-8 import logging from .mixin import RingMixin
[ 2, 66, 7656, 28, 40477, 12, 23, 198, 198, 11748, 18931, 198, 6738, 764, 19816, 259, 1330, 12569, 35608, 259, 628 ]
2.857143
21
#Unit tests for translate.py from translate import * text = '纽约时报中文网国际纵览' lang = gtDetectLang(text) print ('The detected language is ' + lang) result = gtAutoTranslate(text) print(text + ' using autodetection of language is ' + result) result = gtTranslate(text, lang) print(text + ' using explicit language def is '...
[ 2, 26453, 5254, 329, 15772, 13, 9078, 198, 198, 6738, 15772, 1330, 1635, 198, 198, 5239, 796, 705, 163, 118, 121, 163, 118, 99, 33768, 35050, 232, 98, 40792, 23877, 229, 163, 121, 239, 32368, 121, 165, 247, 227, 163, 118, 113, 164, ...
2.606299
127
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Created on Mon Aug 20 11:30:08 2018 @author: dawnstear """ import numpy as np import tensorflow as tf from tensorflow.contrib.slim import fully_connected as fc import matplotlib.pyplot as plt import pandas as pd import utils #import scedar as sce #import vae #------...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 18, 198, 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 37811, 198, 41972, 319, 2892, 2447, 1160, 1367, 25, 1270, 25, 2919, 2864, 198, 198, 31, 9800, 25, 17577, 301, 451...
2.56875
480
""" ReadParameterFile.py Author: Jordan Mirocha Affiliation: University of Colorado at Boulder Created on 2010-10-14. Description: Read rt1d parameter file, convert to python dictionary. Note on problem types: Integer problem types are reserved for continuous spectra, while non-integer problem types will refer to t...
[ 37811, 198, 5569, 36301, 8979, 13, 9078, 198, 198, 13838, 25, 8078, 337, 7058, 11693, 198, 35191, 15547, 25, 2059, 286, 7492, 379, 27437, 198, 41972, 319, 3050, 12, 940, 12, 1415, 13, 198, 198, 11828, 25, 4149, 374, 83, 16, 67, 1150...
2.071576
1,453
import re from collections import defaultdict import copy from typing import DefaultDict, Dict, List, NamedTuple, Set, Tuple, Optional, Literal, TypedDict from yajwiz.grammar_rules import proofread_tokens from yajwiz.boqwiz import BoqwizEntry, load_dictionary from .tables import LOCATIVE_NOUNS, SUFFIX_TYPES, UNIVERSA...
[ 11748, 302, 198, 6738, 17268, 1330, 4277, 11600, 198, 11748, 4866, 198, 198, 6738, 19720, 1330, 15161, 35, 713, 11, 360, 713, 11, 7343, 11, 34441, 51, 29291, 11, 5345, 11, 309, 29291, 11, 32233, 11, 25659, 1691, 11, 17134, 276, 35, ...
1.883525
8,079
from assemblyline.odm.base import *
[ 6738, 10474, 1370, 13, 375, 76, 13, 8692, 1330, 1635, 198 ]
3.272727
11
import numpy as np from matplotlib.figure import Figure if __name__ == "__main__": x = np.linspace(0, 10, 1000) y = np.sin(x) fig = Figure() ax = fig.subplots() ax.plot(x, y) ax.set_xlabel(r"$x$") ax.set_ylabel(r"$\sin x$") fig.savefig("mpl_example.png")
[ 11748, 299, 32152, 355, 45941, 198, 6738, 2603, 29487, 8019, 13, 26875, 1330, 11291, 198, 198, 361, 11593, 3672, 834, 6624, 366, 834, 12417, 834, 1298, 198, 220, 220, 220, 2124, 796, 45941, 13, 21602, 10223, 7, 15, 11, 838, 11, 8576, ...
2.078571
140
# This code is working import cv2, sys import numpy as np import imutils cap = cv2.VideoCapture(0) #hand_cascade = cv2.CascadeClassifier(r'C:\Users\HP\cascade-models\handcascades\.xml') hand_cascade = cv2.CascadeClassifier(r'Hand_haar_cascade.xml') while True: ret, img = cap.read() frame = imutil...
[ 2, 770, 2438, 318, 1762, 201, 198, 201, 198, 11748, 269, 85, 17, 11, 25064, 201, 198, 11748, 299, 32152, 355, 45941, 201, 198, 11748, 545, 26791, 201, 198, 201, 198, 11128, 796, 269, 85, 17, 13, 10798, 49630, 7, 15, 8, 201, 198, ...
1.968811
513
import sys sys.path.append("./ABAGAIL.jar") import base from java.lang import Math from shared import Instance import random as rand import time import os import csv from func.nn.activation import RELU import opt.ga.StandardGeneticAlgorithm as StandardGeneticAlgorithm from func.nn.backprop import RPROPUpdateRule from...
[ 11748, 25064, 198, 198, 17597, 13, 6978, 13, 33295, 7, 1911, 14, 32, 4339, 9273, 4146, 13, 9491, 4943, 198, 198, 11748, 2779, 198, 6738, 20129, 13, 17204, 1330, 16320, 198, 6738, 4888, 1330, 2262, 590, 198, 11748, 4738, 355, 43720, 19...
2.309396
1,309
''' Application : Envision File name : settings.py Authors : Jacob Summerville and Safwan Elmadani Description : The settings class is a dictionary that will contain the user specified settings from the input file ''' # Copyright (c) April 26, 2021 Jacob Summerville and Safwan Elmadani # All right...
[ 7061, 6, 198, 23416, 1058, 2039, 10178, 198, 8979, 1438, 220, 220, 1058, 6460, 13, 9078, 198, 30515, 669, 220, 220, 220, 220, 1058, 12806, 10216, 4244, 290, 6895, 8149, 2574, 9937, 3216, 198, 11828, 1058, 383, 6460, 1398, 318, 257, 22...
3.84104
692
#!/usr/bin/python # -*- coding: utf-8 -*- # Copyright 2021 Informatique CDC. 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/LICEN...
[ 2, 48443, 14629, 14, 8800, 14, 29412, 198, 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 198, 2, 15069, 33448, 554, 18982, 2350, 20434, 13, 1439, 2489, 10395, 13, 198, 2, 198, 2, 49962, 739, 262, 24843, 13789, 11,...
2.659206
4,155
import numpy as np import math import matplotlib.pyplot as plt # From: http://stats.stackexchange.com/questions/72774/numerical-example-to-understand-expectation-maximization ## E-M Coin Toss Example as given in the EM tutorial paper by Do and Batzoglou* ## def get_binomial_log_likelihood(obs,probs): """ Return t...
[ 11748, 299, 32152, 355, 45941, 198, 11748, 10688, 198, 11748, 2603, 29487, 8019, 13, 9078, 29487, 355, 458, 83, 198, 198, 2, 3574, 25, 2638, 1378, 34242, 13, 301, 330, 365, 87, 3803, 13, 785, 14, 6138, 507, 14, 47760, 4524, 14, 77, ...
2.117237
1,433
"""filter_ambiguous_reads Usage: filter_ambiguous_reads param filter_ambiguous_reads example filter_ambiguous_reads <fastq_file> <out_file> filter_ambiguous_reads -h | --help Options: -h --help Show this screen """ ########################################################################################...
[ 37811, 24455, 62, 4131, 29709, 62, 40779, 628, 197, 28350, 25, 198, 197, 197, 24455, 62, 4131, 29709, 62, 40779, 5772, 198, 197, 197, 24455, 62, 4131, 29709, 62, 40779, 1672, 198, 197, 197, 24455, 62, 4131, 29709, 62, 40779, 1279, 721...
2.954399
1,557
#!python3 """functions for exploring the data""" import h5py import pathlib import numpy as np if __name__ == '__main__': data_dir = '../../../data_set/' flist = get_filenames(data_dir) fpath = np.random.choice(flist) print(fpath.name) print_keys(fpath) for fpath in flist[:-1]: ...
[ 2, 0, 29412, 18, 198, 198, 37811, 12543, 2733, 329, 13504, 262, 1366, 37811, 198, 198, 11748, 289, 20, 9078, 198, 11748, 3108, 8019, 198, 11748, 299, 32152, 355, 45941, 628, 628, 628, 198, 198, 361, 11593, 3672, 834, 6624, 705, 834, ...
2.246914
162
"""Linear system identification""" import numpy as np import matplotlib.pyplot as plt from adafilt import FastBlockLMSFilter from adafilt.io import FakeInterface length = 512 # number of adaptive FIR filter taps blocklength = 128 # length of I/O buffer and blocksize of filter n_buffers = 150 # size of simulation ...
[ 37811, 14993, 451, 1080, 11795, 37811, 198, 198, 11748, 299, 32152, 355, 45941, 198, 11748, 2603, 29487, 8019, 13, 9078, 29487, 355, 458, 83, 198, 198, 6738, 512, 1878, 2326, 1330, 12549, 12235, 43, 5653, 22417, 198, 6738, 512, 1878, 23...
2.388736
728
import os import pathlib from datetime import date import pytest import requests from .Server import ProdServer default_config_path = pathlib.Path("../configs/main.yml") expired_token = "eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJleHAiOjE2MTc4ODMwODMsImlhdCI6MTYxNzg4Mjc4MywibmJmIjoxNjE3ODgyNzgzLCJpZGVudGl0eSi6MX0.-6m9...
[ 11748, 28686, 198, 11748, 3108, 8019, 198, 6738, 4818, 8079, 1330, 3128, 198, 198, 11748, 12972, 9288, 198, 11748, 7007, 198, 198, 6738, 764, 10697, 1330, 1041, 67, 10697, 628, 198, 12286, 62, 11250, 62, 6978, 796, 3108, 8019, 13, 15235...
2.627729
916
import pandas as pd; import numpy as np; data = {'subject' : ['math', 'comp', 'phys', 'chem'], 'score': [100, 90, 85, 95], 'students': [94, 32, 83, 17]}; df = pd.DataFrame(data); df['score2'] = [90,89,98,97]; print(df); print(df.iloc[0:2,1:3]); print('---------------------------'); print(df[['score','score2']]); pri...
[ 11748, 19798, 292, 355, 279, 67, 26, 198, 11748, 299, 32152, 355, 45941, 26, 198, 198, 7890, 796, 1391, 6, 32796, 6, 1058, 37250, 11018, 3256, 705, 5589, 3256, 705, 34411, 3256, 705, 15245, 6, 4357, 705, 26675, 10354, 685, 3064, 11, ...
2.365269
167
""" source_file.py Author: Matthew Yu, Array Lead (2020). Contact: matthewjkyu@gmail.com Created: 8/15/20 Last Modified: 8/16/20 Description: This file is a standalone file that can be inserted into a program to read and write an encoded model from a .csv. This speeds up model calculations. Generates a high ...
[ 37811, 198, 10459, 62, 7753, 13, 9078, 198, 198, 13838, 25, 9308, 10605, 11, 15690, 20116, 357, 42334, 737, 198, 17829, 25, 23963, 6391, 73, 2584, 84, 31, 14816, 13, 785, 198, 41972, 25, 807, 14, 1314, 14, 1238, 198, 5956, 40499, 25...
2.631868
546
from collections import Counter import numpy as np from sklearn.model_selection import train_test_split import nltk from keras_question_and_answering_system.library.utility.text_utils import in_white_list
[ 6738, 17268, 1330, 15034, 198, 11748, 299, 32152, 355, 45941, 198, 6738, 1341, 35720, 13, 19849, 62, 49283, 1330, 4512, 62, 9288, 62, 35312, 198, 11748, 299, 2528, 74, 198, 198, 6738, 41927, 292, 62, 25652, 62, 392, 62, 504, 86, 1586,...
3.403226
62
from .pipeline import Step, Transform, Extract, Load, Pipeline
[ 6738, 764, 79, 541, 4470, 1330, 5012, 11, 26981, 11, 29677, 11, 8778, 11, 37709, 198 ]
3.9375
16
#!/usr/bin/python3 import sys sys.path.append('../') import numpy as np import pandas as pd import matplotlib.pyplot as plt from datetime import timedelta, date import warnings warnings.filterwarnings("ignore") from collections import defaultdict import os today = date(2020, 6, 21) df_county = pd.read_pickle("all...
[ 2, 48443, 14629, 14, 8800, 14, 29412, 18, 198, 198, 11748, 25064, 198, 198, 17597, 13, 6978, 13, 33295, 10786, 40720, 11537, 198, 11748, 299, 32152, 355, 45941, 198, 198, 11748, 19798, 292, 355, 279, 67, 198, 11748, 2603, 29487, 8019, ...
2.001864
6,973
#!/usr/bin/env python2 """ tea_eval.py Extracted from oil_lang/cmd_eval.py. THIS DOES DOESN'T RUN YET. TODO: Test it. """ from __future__ import print_function import sys
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 17, 198, 37811, 198, 660, 64, 62, 18206, 13, 9078, 198, 198, 11627, 20216, 422, 3056, 62, 17204, 14, 28758, 62, 18206, 13, 9078, 13, 220, 12680, 38359, 38359, 45, 6, 51, 32494, 575, 2767,...
2.507042
71
from lunespy.client.wallet import Account from lunespy.client.wallet.errors import InvalidChainAddress from pytest import raises def test_seed(): """ this seed "scrub guard swim catch range upon dawn ensure segment alpha sentence spend effort bar benefit": - should returns this mainnet_address...
[ 6738, 300, 4015, 9078, 13, 16366, 13, 44623, 1330, 10781, 198, 6738, 300, 4015, 9078, 13, 16366, 13, 44623, 13, 48277, 1330, 17665, 35491, 20231, 198, 6738, 12972, 9288, 1330, 12073, 628, 198, 4299, 1332, 62, 28826, 33529, 198, 220, 220...
2.037964
3,635
##Page for adding csv to MySQL and statistical exploration import pandas as pd import sqlalchemy ##Bring back connection to Mysql and connect CSVs to mysql con=sqlalchemy.create_engine('mysql+pymysql://root:4242@localhost/Puppy') #I commented out the connection to mysql to prevent additional information from being ad...
[ 2235, 9876, 329, 4375, 269, 21370, 284, 33476, 290, 13905, 13936, 198, 11748, 19798, 292, 355, 279, 67, 198, 11748, 44161, 282, 26599, 198, 198, 2235, 31416, 736, 4637, 284, 337, 893, 13976, 290, 2018, 9429, 23266, 284, 48761, 198, 1102...
3.261792
424
# Definition for singly-linked list. # class ListNode: # def __init__(self, val=0, next=None): # self.val = val # self.next = next
[ 2, 30396, 329, 1702, 306, 12, 25614, 1351, 13, 198, 2, 1398, 7343, 19667, 25, 198, 2, 220, 220, 220, 220, 825, 11593, 15003, 834, 7, 944, 11, 1188, 28, 15, 11, 1306, 28, 14202, 2599, 198, 2, 220, 220, 220, 220, 220, 220, 220, ...
2.272727
66
import apiclient.discovery from flask import Blueprint, redirect, render_template, request import httplib2 from oauth2client.client import flow_from_clientsecrets import config from core import db from models import User login = Blueprint('login', __name__) @login.route('/login') @login.route('/login/google') @log...
[ 11748, 2471, 291, 75, 1153, 13, 67, 40821, 198, 6738, 42903, 1330, 39932, 11, 18941, 11, 8543, 62, 28243, 11, 2581, 198, 11748, 1841, 489, 571, 17, 198, 6738, 267, 18439, 17, 16366, 13, 16366, 1330, 5202, 62, 6738, 62, 16366, 2363, ...
3.175
120
import json from fastapi import status
[ 11748, 33918, 198, 6738, 3049, 15042, 1330, 3722, 628, 628, 198 ]
3.909091
11
from embedding_reader import EmbeddingReader import random import numpy as np import pytest import pandas as pd from tests.fixtures import build_test_collection_numpy, build_test_collection_parquet @pytest.mark.parametrize("file_format", ["npy", "parquet"]) @pytest.mark.parametrize("collection_kind", ["random", "sim...
[ 6738, 11525, 12083, 62, 46862, 1330, 13302, 6048, 278, 33634, 198, 11748, 4738, 198, 11748, 299, 32152, 355, 45941, 198, 11748, 12972, 9288, 198, 11748, 19798, 292, 355, 279, 67, 198, 198, 6738, 5254, 13, 69, 25506, 1330, 1382, 62, 9288...
3.114286
105
# This file tests the helper functions of the # yaz0 module. The goal is to quickly make sure that the module # is working correctly, and if not, find ways to reliably # break it so that a solution can be found. import random import string import traceback from cStringIO import StringIO from yaz0 import (compress,...
[ 198, 2, 770, 2393, 5254, 262, 31904, 5499, 286, 262, 198, 2, 331, 1031, 15, 8265, 13, 383, 3061, 318, 284, 2952, 787, 1654, 326, 262, 8265, 198, 2, 318, 1762, 9380, 11, 290, 611, 407, 11, 1064, 2842, 284, 26995, 220, 198, 2, 227...
2.765998
1,047
# -*- coding: utf-8 -*- # Form implementation generated from reading ui file './widgets/build_history/build_history_scroll_area_ui.ui', # licensing of './widgets/build_history/build_history_scroll_area_ui.ui' applies. # # Created: Sat Jun 19 22:02:31 2021 # by: pyside2-uic running on PySide2 5.13.2 # # WARNING! ...
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 198, 2, 5178, 7822, 7560, 422, 3555, 334, 72, 2393, 705, 19571, 28029, 11407, 14, 11249, 62, 23569, 14, 11249, 62, 23569, 62, 48728, 62, 20337, 62, 9019, 13, 9019, 325...
2.758389
149