content
stringlengths
1
1.04M
input_ids
listlengths
1
774k
ratio_char_token
float64
0.38
22.9
token_count
int64
1
774k
# 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 # # https://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under t...
[ 2, 49962, 739, 262, 24843, 13789, 11, 10628, 362, 13, 15, 357, 1169, 366, 34156, 15341, 198, 2, 345, 743, 407, 779, 428, 2393, 2845, 287, 11846, 351, 262, 13789, 13, 198, 2, 921, 743, 7330, 257, 4866, 286, 262, 13789, 379, 198, 2,...
3.497585
207
# -*- coding: utf-8 -*- from __future__ import absolute_import, unicode_literals, print_function from historygraph import DocumentCollection from historygraph import Document from historygraph import DocumentObject from historygraph import fields
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 6738, 11593, 37443, 834, 1330, 4112, 62, 11748, 11, 28000, 1098, 62, 17201, 874, 11, 3601, 62, 8818, 198, 198, 6738, 2106, 34960, 1330, 16854, 36307, 198, 6738, 2106, 34...
4.15
60
import os import shutil import numpy as np import yaml
[ 11748, 28686, 198, 11748, 4423, 346, 198, 198, 11748, 299, 32152, 355, 45941, 198, 11748, 331, 43695, 628, 628, 628, 628, 628, 628, 628, 628, 198 ]
2.769231
26
import os from fastapi import File import pickle from . import crud, models, schemas from sqlalchemy.orm import Session from .database import SessionLocal, engine
[ 11748, 28686, 198, 6738, 3049, 15042, 1330, 9220, 198, 11748, 2298, 293, 198, 6738, 764, 1330, 1067, 463, 11, 4981, 11, 3897, 5356, 198, 6738, 44161, 282, 26599, 13, 579, 1330, 23575, 198, 6738, 764, 48806, 1330, 23575, 14565, 11, 3113 ...
3.95122
41
import datasets import lm_eval.metrics from ..base import Task
[ 11748, 40522, 198, 11748, 300, 76, 62, 18206, 13, 4164, 10466, 198, 6738, 11485, 8692, 1330, 15941, 628, 628 ]
3.473684
19
import datetime import unittest from dateutil import parser, tz from main import check_schedule from update_reminders import parse_schedule if __name__ == '__main__': unittest.main()
[ 11748, 4818, 8079, 198, 11748, 555, 715, 395, 198, 6738, 3128, 22602, 1330, 30751, 11, 256, 89, 198, 198, 6738, 1388, 1330, 2198, 62, 15952, 5950, 198, 6738, 4296, 62, 2787, 29700, 1330, 21136, 62, 15952, 5950, 628, 198, 198, 361, 115...
3.131148
61
# -*- coding: utf-8 -*- import datetime import numpy as np from stonesoup.types.detection import TrueDetection from ..passive import PassiveElevationBearing from ...functions import cart2angles, rotx, roty, rotz from ...types.array import StateVector, CovarianceMatrix from ...types.groundtruth import GroundTruthState...
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 11748, 4818, 8079, 198, 198, 11748, 299, 32152, 355, 45941, 198, 198, 6738, 14966, 10486, 13, 19199, 13, 15255, 3213, 1330, 6407, 11242, 3213, 198, 6738, 11485, 6603, 425,...
3.459184
98
''' https://github.com/clcarwin/sphereface_pytorch/blob/master/net_sphere.py ''' import torch import torch.nn as nn from torch.autograd import Variable import torch.nn.functional as F from torch.nn import Parameter import dill import math import math import torch from torch import nn # from scipy.special import bin...
[ 7061, 6, 198, 5450, 1378, 12567, 13, 785, 14, 565, 7718, 5404, 14, 2777, 1456, 2550, 62, 9078, 13165, 354, 14, 2436, 672, 14, 9866, 14, 3262, 62, 2777, 1456, 13, 9078, 198, 7061, 6, 198, 198, 11748, 28034, 198, 11748, 28034, 13, 2...
1.884824
738
import xml.dom.minidom
[ 11748, 35555, 13, 3438, 13, 1084, 312, 296, 628 ]
2.666667
9
"""Provides classes for call handling.""" from __future__ import annotations import abc import asyncio import logging from typing import Any, AsyncIterator, Awaitable, Callable, Optional, Type, Union import aiowamp from aiowamp import UnexpectedMessageError, is_message_type, message_as_type from aiowamp.maybe_awaita...
[ 37811, 15946, 1460, 6097, 329, 869, 9041, 526, 15931, 198, 198, 6738, 11593, 37443, 834, 1330, 37647, 198, 198, 11748, 450, 66, 198, 11748, 30351, 952, 198, 11748, 18931, 198, 6738, 19720, 1330, 4377, 11, 1081, 13361, 37787, 11, 5851, 4...
2.612193
1,181
from django.dispatch import Signal # Fires during the clean process of the StudentInfoView form, allowing hooked in apps to validate # the form data and raise ValidationErrors or send warnings (messages) to the user by adding them to the # request. check_student_info = Signal(providing_args=['instance','formData'...
[ 6738, 42625, 14208, 13, 6381, 17147, 1330, 26484, 201, 198, 201, 198, 2, 47702, 1141, 262, 3424, 1429, 286, 262, 13613, 12360, 7680, 1296, 11, 5086, 23373, 287, 6725, 284, 26571, 201, 198, 2, 262, 1296, 1366, 290, 5298, 3254, 24765, 9...
3.985955
712
from __future__ import division, print_function # coding=utf-8 import os import numpy as np import tensorflow from tensorflow.keras.models import load_model from tensorflow.keras.preprocessing import image # Flask utils from flask import Flask, redirect, url_for, request, render_template, flash, send_from_d...
[ 6738, 11593, 37443, 834, 1330, 7297, 11, 3601, 62, 8818, 201, 198, 2, 19617, 28, 40477, 12, 23, 201, 198, 201, 198, 11748, 28686, 201, 198, 11748, 299, 32152, 355, 45941, 201, 198, 11748, 11192, 273, 11125, 201, 198, 6738, 11192, 273,...
2.427184
309
from distutils.core import setup setup(name='urwid_combobox', version='0.1a', description='ComboBox widget for urwid', author='rbistolfi', author_email='rbistolfi@gmail.com', url='http://github.com/rbistolfi/urwid_combobox', packages=['urwid_combobox'],)
[ 6738, 1233, 26791, 13, 7295, 1330, 9058, 198, 198, 40406, 7, 3672, 11639, 333, 28029, 62, 24011, 672, 1140, 3256, 198, 220, 220, 220, 220, 220, 220, 220, 2196, 11639, 15, 13, 16, 64, 3256, 198, 220, 220, 220, 220, 220, 220, 220, 6...
2.202899
138
#! -*- coding: utf-8 -*- from os import environ, path from pprint import pprint from weixin import WxAppCloudAPI appid = environ.get("WXAPP_APPID", "appid") secret = environ.get("WXAPP_SECRET", "secret") env = environ.get("WXAPP_ENV", "test-id") app_cloud = WxAppCloudAPI( appid=appid, app_secret=secret, grant_ty...
[ 2, 0, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 6738, 28686, 1330, 551, 2268, 11, 3108, 198, 6738, 279, 4798, 1330, 279, 4798, 198, 198, 6738, 356, 844, 259, 1330, 370, 87, 4677, 18839, 17614, 198, 198, 1324, 312...
2.560897
312
from enum import Enum # Based on vector normal to bot front
[ 6738, 33829, 1330, 2039, 388, 628, 198, 2, 13403, 319, 15879, 3487, 284, 10214, 2166, 198 ]
3.875
16
#!/usr/bin/env python # Licensed to Cloudera, Inc. under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. Cloudera, Inc. licenses this file # to you under the Apache License, Version 2.0 (the # "License"); you ma...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 198, 2, 49962, 284, 1012, 280, 1082, 64, 11, 3457, 13, 739, 530, 198, 2, 393, 517, 18920, 5964, 11704, 13, 220, 4091, 262, 28536, 2393, 198, 2, 9387, 351, 428, 670, 329, 3224, 1321, 198...
2.900248
3,228
import time from typing import List from typing import Tuple from starks.merkle_tree import blake from starks.merkle_tree import verify_branch from starks.merkle_tree import mk_branch from starks.merkle_tree import merkelize from starks.merkle_tree import merkelize_polynomial_evaluations from starks.merkle_tree import ...
[ 11748, 640, 198, 6738, 19720, 1330, 7343, 198, 6738, 19720, 1330, 309, 29291, 198, 6738, 3491, 591, 13, 647, 74, 293, 62, 21048, 1330, 698, 539, 198, 6738, 3491, 591, 13, 647, 74, 293, 62, 21048, 1330, 11767, 62, 1671, 3702, 198, 67...
2.651333
6,413
from dataclasses import dataclass @dataclass
[ 6738, 4818, 330, 28958, 1330, 4818, 330, 31172, 628, 198, 31, 19608, 330, 31172, 198 ]
3.133333
15
from django.utils.decorators import method_decorator from django.views.decorators.cache import cache_page from django.contrib.auth.decorators import login_required from django.contrib.admin.views.decorators import staff_member_required from django.views.decorators.csrf import csrf_protect from .decorators import cache...
[ 6738, 42625, 14208, 13, 26791, 13, 12501, 273, 2024, 1330, 2446, 62, 12501, 273, 1352, 198, 6738, 42625, 14208, 13, 33571, 13, 12501, 273, 2024, 13, 23870, 1330, 12940, 62, 7700, 198, 6738, 42625, 14208, 13, 3642, 822, 13, 18439, 13, ...
3.13913
115
# -*- coding: utf-8 -*- from .downloader import BaseDownloader
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 628, 198, 6738, 764, 15002, 263, 1330, 7308, 10002, 263, 628 ]
2.75
24
''' Combinations of Validations ''' def validate_all(*validators): ''' Logical "AND" - Must Match All Validators listed ''' return validator def validate_any(*validators): ''' Logical "OR" - Must Match at least one of the Validators listed ''' return validator
[ 7061, 6, 14336, 7352, 286, 48951, 602, 705, 7061, 628, 198, 4299, 26571, 62, 439, 46491, 12102, 2024, 2599, 198, 220, 220, 220, 705, 7061, 220, 198, 220, 220, 220, 5972, 605, 366, 6981, 1, 532, 12039, 13225, 1439, 48951, 2024, 5610, ...
2.841121
107
#!/usr/bin/env python3 import json import os from datetime import datetime, timezone from pathlib import Path from typing import Optional, Tuple, List from exif import Image, DATETIME_STR_FORMAT def esc(code: int) -> str: """ Converts the integer code to an ANSI escape sequence :param code: code :r...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 18, 198, 198, 11748, 33918, 198, 11748, 28686, 198, 6738, 4818, 8079, 1330, 4818, 8079, 11, 640, 11340, 198, 6738, 3108, 8019, 1330, 10644, 198, 6738, 19720, 1330, 32233, 11, 309, 29291, 11, ...
2.5
630
try: from urllib.parse import quote_plus except ImportError: from urllib import quote_plus import processout from processout.networking.request import Request from processout.networking.response import Response # The content of this file was automatically generated
[ 28311, 25, 198, 220, 220, 220, 422, 2956, 297, 571, 13, 29572, 1330, 9577, 62, 9541, 198, 16341, 17267, 12331, 25, 198, 220, 220, 220, 422, 2956, 297, 571, 1330, 9577, 62, 9541, 198, 198, 11748, 1429, 448, 198, 198, 6738, 1429, 448,...
3.594937
79
# -*- coding: utf-8 -*- import logging from nlp_tasks.utils import my_corenlp from nlp_tasks.common import common_path MODEL_DIR = common_path.original_data_dir_big + 'stanford-corenlp-full-2018-02-27/' if __name__ == '__main__': create_corenlp_server(start_new_server=True, lang='en')
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 628, 198, 11748, 18931, 198, 198, 6738, 299, 34431, 62, 83, 6791, 13, 26791, 1330, 616, 62, 7295, 21283, 79, 198, 6738, 299, 34431, 62, 83, 6791, 13, 11321, 1330, 2219, 62,...
2.475
120
# # import seaborn as sns import pandas as pd import matplotlib.pyplot as plt # plt.interactive(False) plt.interactive(True) # # Reading from text file # # df = pd.read_csv('Results.csv') # print(df.head(10)) # sns.set_style("whitegrid") # fig1 = sns.barplot(x = 'list_k', y = 'list_T_r1_to_r2_updated', data = df) # fig...
[ 2, 198, 2, 198, 11748, 384, 397, 1211, 355, 3013, 82, 198, 11748, 19798, 292, 355, 279, 67, 198, 11748, 2603, 29487, 8019, 13, 9078, 29487, 355, 458, 83, 198, 2, 458, 83, 13, 3849, 5275, 7, 25101, 8, 198, 489, 83, 13, 3849, 5275...
1.984152
1,262
## FileSystem - Linux ## This file contains some default directories of your system import os ## Current Directory CurrentPath = os.getcwd() ## User directory User = f'/home/{os.environ["USER"]}/' ## Special Directories Desktop = f'{User}Desktop/' Documents = f'{User}Documents/' Downloads = f'{User}Downloads/' Musi...
[ 2235, 9220, 11964, 532, 7020, 198, 2235, 770, 2393, 4909, 617, 4277, 29196, 286, 534, 1080, 198, 198, 11748, 28686, 198, 198, 2235, 9236, 27387, 198, 11297, 15235, 796, 28686, 13, 1136, 66, 16993, 3419, 198, 198, 2235, 11787, 8619, 198,...
3.063063
111
from django.shortcuts import render from django.contrib.auth.decorators import login_required from .models import Profile,Projects,Comments,Ratings from django.contrib.auth.models import User from .forms import NewProjectForm,CommentForm,EditProfileForm from django.shortcuts import render,redirect,get_object_or_404 fro...
[ 6738, 42625, 14208, 13, 19509, 23779, 1330, 8543, 198, 6738, 42625, 14208, 13, 3642, 822, 13, 18439, 13, 12501, 273, 2024, 1330, 17594, 62, 35827, 198, 6738, 764, 27530, 1330, 13118, 11, 16775, 82, 11, 23903, 11, 29665, 654, 198, 6738, ...
3.237822
349
"""Program to pull the comments out of an ida-dissasembled program""" __author__ = "Aaron Gonzales, Andres Ruiz" __license__ = "Apache" __email__ = "agonzales@cs.unm.edu" import os, re import glob import argparse import multiprocessing from joblib import delayed, Parallel from asm_utils import open_asm, to_utf, get...
[ 37811, 15167, 284, 2834, 262, 3651, 503, 286, 281, 220, 3755, 12, 67, 747, 292, 368, 9342, 1430, 37811, 198, 198, 834, 9800, 834, 796, 366, 34451, 17109, 2040, 11, 843, 411, 11667, 528, 1, 198, 834, 43085, 834, 796, 366, 25189, 4891...
2.658571
1,400
#!/usr/bin/python # coding=utf-8 from pithy import JSONProcessor import json import unittest
[ 2, 48443, 14629, 14, 8800, 14, 29412, 198, 2, 19617, 28, 40477, 12, 23, 198, 6738, 279, 342, 88, 1330, 19449, 18709, 273, 198, 11748, 33918, 198, 11748, 555, 715, 395, 628 ]
2.9375
32
#!/usr/bin/env python """Example of how to use ipm""" import ipm if __name__ == '__main__': main()
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 198, 198, 37811, 16281, 286, 703, 284, 779, 20966, 76, 37811, 198, 198, 11748, 20966, 76, 628, 628, 198, 361, 11593, 3672, 834, 6624, 705, 834, 12417, 834, 10354, 198, 220, 220, 220, 1388, ...
2.477273
44
# -*- coding: utf-8 -*- # la diaria 2020. Aníbal Pacheco. from apps import signupwall_visitor_mdb from signupwall.models import Visitor if signupwall_visitor_mdb: inserted = 0 for v in Visitor.objects.iterator(): vdoc = {} for field in ('session_key', 'ip_address', 'user_agent', 'last_update...
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 2, 8591, 2566, 10312, 12131, 13, 1052, 8836, 6893, 350, 4891, 1073, 13, 198, 198, 6738, 6725, 1330, 1051, 929, 11930, 62, 4703, 2072, 62, 9132, 65, 198, 198, 6738, 105...
2.103858
337
from .transforms import LinearWarp from .results import DAAMFitterResult from menpofit import checks from menpofit.aam import LucasKanadeAAMFitter from menpofit.aam.algorithm.lk import ( LucasKanadeStandardInterface, WibergInverseCompositional) class LucasKanadeDAAMFitter(LucasKanadeAAMFitter): r""" """
[ 6738, 764, 7645, 23914, 1330, 44800, 54, 5117, 198, 6738, 764, 43420, 1330, 17051, 2390, 37, 1967, 23004, 198, 198, 6738, 1450, 79, 1659, 270, 1330, 8794, 198, 6738, 1450, 79, 1659, 270, 13, 64, 321, 1330, 15257, 42, 272, 671, 32, 2...
2.773913
115
import logging import json from enum import Enum from sqlalchemy.orm import Session from fastapi import BackgroundTasks from dispatch.decorators import background_task from dispatch.incident.enums import IncidentStatus, IncidentSlackViewBlockId, NewIncidentSubmission from dispatch.plugins.dispatch_slack import servi...
[ 11748, 18931, 198, 11748, 33918, 198, 6738, 33829, 1330, 2039, 388, 198, 198, 6738, 44161, 282, 26599, 13, 579, 1330, 23575, 198, 198, 6738, 3049, 15042, 1330, 25353, 51, 6791, 198, 198, 6738, 27965, 13, 12501, 273, 2024, 1330, 4469, 62...
2.505081
3,641
#!/usr/bin/env python import os import sys import math from decimal import Decimal,getcontext,ROUND_FLOOR from data_tools.lib.files import findNumber,ParameterParser from data_tools.lib.group import Group,run_grouping zero = Decimal(0) if __name__ == "__main__": pp = ParameterParser('Compute pdf', columns = '*',...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 198, 198, 11748, 28686, 198, 11748, 25064, 198, 11748, 10688, 198, 6738, 32465, 1330, 4280, 4402, 11, 1136, 22866, 11, 49, 15919, 62, 3697, 46, 1581, 198, 6738, 1366, 62, 31391, 13, 8019, 1...
2.650113
443
from enum import Enum
[ 6738, 33829, 1330, 2039, 388 ]
4.2
5
def add(x, y): """ This function adds the given integer arguments :param x: integer :param y: integer :return: integer """ return x + y class Employee: """ Employee class, mapped to "employee" table in Database """ id = 0 name = '' def __init__(self, i, n): ...
[ 4299, 751, 7, 87, 11, 331, 2599, 198, 220, 220, 220, 37227, 198, 220, 220, 220, 770, 2163, 6673, 262, 1813, 18253, 7159, 198, 220, 220, 220, 1058, 17143, 2124, 25, 18253, 198, 220, 220, 220, 1058, 17143, 331, 25, 18253, 198, 220, ...
2.331731
208
import unittest from gawseed.threatfeed.datasources import DataSource, BINARY_YES, BINARY_NO, BINARY_MAYBE
[ 11748, 555, 715, 395, 198, 6738, 308, 707, 28826, 13, 19971, 12363, 13, 19608, 292, 2203, 1330, 6060, 7416, 11, 347, 1268, 13153, 62, 43335, 11, 347, 1268, 13153, 62, 15285, 11, 347, 1268, 13153, 62, 44, 4792, 12473, 628, 220, 220, ...
2.387755
49
from django.shortcuts import render from django.http import JsonResponse from django.core.exceptions import ObjectDoesNotExist from django.contrib.auth.decorators import login_required from myapp.models.schema_file import *
[ 6738, 42625, 14208, 13, 19509, 23779, 1330, 8543, 198, 6738, 42625, 14208, 13, 4023, 1330, 449, 1559, 31077, 198, 6738, 42625, 14208, 13, 7295, 13, 1069, 11755, 1330, 9515, 13921, 3673, 3109, 396, 198, 6738, 42625, 14208, 13, 3642, 822, ...
3.476923
65
import os from pathlib import Path import pytest from pytest_mock import MockerFixture from inboard import logging_conf class TestConfigureLogging: """Test logging configuration method. --- """ def test_configure_logging_file( self, logging_conf_file_path: Path, mocker: MockerFixture ) ...
[ 11748, 28686, 198, 6738, 3108, 8019, 1330, 10644, 198, 198, 11748, 12972, 9288, 198, 6738, 12972, 9288, 62, 76, 735, 1330, 337, 12721, 37, 9602, 198, 198, 6738, 287, 3526, 1330, 18931, 62, 10414, 628, 198, 4871, 6208, 16934, 495, 11187,...
2.403266
3,246
#!python3 # -*- coding: utf-8 -*- SCREENSAVER_FOLDER = r'C:\screensaver' # Place where to put chosen photos NUMBER_OF_PHOTOS = 50 # Number of photos to pick initially MAX_TOTAL_SIZE = 5 * 1024 ** 3 # Maximum size of folder with chosen photos
[ 2, 0, 29412, 18, 198, 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 198, 6173, 2200, 1677, 4090, 5959, 62, 37, 3535, 14418, 796, 374, 6, 34, 7479, 1416, 5681, 8770, 6, 220, 1303, 8474, 810, 284, 1234, 7147, 5205...
2.860465
86
from typing import Dict, List, Union from ngslite.fasta import FastaParser from ngslite.legacy.gtf import read_gtf from ngslite.dataclass import Chromosome, FeatureArray, gtf_to_generic_feature def read_fasta_gtf( fasta: str, gtf: str, as_dict: bool = False, circular: bool = ...
[ 6738, 19720, 1330, 360, 713, 11, 7343, 11, 4479, 201, 198, 6738, 23370, 6649, 578, 13, 7217, 64, 1330, 12549, 64, 46677, 201, 198, 6738, 23370, 6649, 578, 13, 1455, 1590, 13, 13655, 69, 1330, 1100, 62, 13655, 69, 201, 198, 6738, 233...
1.985761
913
from functools import wraps import inspect from logging import NOTSET, DEBUG, INFO, WARN, ERROR, CRITICAL from typing import Callable, List, Dict from reprlib import Repr from uuid import uuid4 __all__ = ['trace'] __r = Repr() __r.maxarray = __r.maxarray * 10 __r.maxdict = __r.maxdict * 10 __r.maxstring = __r.maxstri...
[ 6738, 1257, 310, 10141, 1330, 27521, 198, 11748, 10104, 198, 6738, 18931, 1330, 5626, 28480, 11, 16959, 11, 24890, 11, 42660, 11, 33854, 11, 8740, 2043, 20151, 198, 6738, 19720, 1330, 4889, 540, 11, 7343, 11, 360, 713, 198, 6738, 41575,...
2.894737
114
from pathlib import Path from mealie.core import security from mealie.routes.deps import validate_file_token from mealie.core.config import settings from mealie.db.db_setup import create_session
[ 6738, 3108, 8019, 1330, 10644, 198, 198, 6738, 9799, 494, 13, 7295, 1330, 2324, 198, 6738, 9799, 494, 13, 81, 448, 274, 13, 10378, 82, 1330, 26571, 62, 7753, 62, 30001, 198, 6738, 9799, 494, 13, 7295, 13, 11250, 1330, 6460, 198, 673...
3.473684
57
# https://aws.amazon.com/sdk-for-python/ # https://github.com/boto/boto3 # https://boto3.readthedocs.io/en/latest/ from datetime import datetime, timedelta from instance_calc import get_valid_instance_types from spot_pricing import update_spot_history, get_spot_history import matplotlib.pyplot as plt import matplotlib....
[ 2, 3740, 1378, 8356, 13, 33103, 13, 785, 14, 21282, 74, 12, 1640, 12, 29412, 14, 198, 2, 3740, 1378, 12567, 13, 785, 14, 65, 2069, 14, 65, 2069, 18, 198, 2, 3740, 1378, 65, 2069, 18, 13, 961, 83, 704, 420, 82, 13, 952, 14, 2...
2.373181
962
from random import shuffle # insertion sort a[lo..hi], starting at dth character
[ 6738, 4738, 1330, 36273, 628, 628, 220, 220, 220, 1303, 36075, 3297, 257, 58, 5439, 492, 5303, 4357, 3599, 379, 288, 400, 2095, 628 ]
3.708333
24
""" Fake Company class object Copyright (c) 2019 Julien Kervizic 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,...
[ 37811, 198, 49233, 5834, 1398, 2134, 198, 198, 15269, 357, 66, 8, 13130, 5979, 2013, 509, 712, 528, 291, 198, 198, 5990, 3411, 318, 29376, 7520, 11, 1479, 286, 3877, 11, 284, 597, 1048, 16727, 257, 4866, 198, 1659, 428, 3788, 290, 3...
2.673958
1,463
from django.db import migrations, models import django.contrib.postgres.fields.jsonb
[ 6738, 42625, 14208, 13, 9945, 1330, 15720, 602, 11, 4981, 198, 11748, 42625, 14208, 13, 3642, 822, 13, 7353, 34239, 13, 25747, 13, 17752, 65, 198 ]
3.269231
26
# coding: utf8 """ This file contains a set of functional tests designed to check the correct execution of the pipeline and the different functions available in Clinica """ __author__ = "Mauricio Diaz" __copyright__ = "Copyright 2016-2019 The Aramis Lab Team" __credits__ = ["Mauricio Diaz"] __license__ = "See...
[ 2, 19617, 25, 3384, 69, 23, 198, 198, 37811, 198, 220, 220, 220, 770, 2393, 4909, 257, 900, 286, 10345, 5254, 3562, 284, 2198, 262, 3376, 9706, 286, 262, 11523, 290, 262, 198, 220, 220, 220, 1180, 5499, 1695, 287, 11834, 3970, 198, ...
3.006098
164
# # Copyright 2020 Huawei Technologies Co., Ltd. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or ag...
[ 2, 198, 2, 15069, 12131, 43208, 21852, 1766, 1539, 12052, 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, ...
2.684665
463
import unittest # Erro # Correto # Erro # Correto
[ 11748, 555, 715, 395, 201, 198, 201, 198, 220, 220, 220, 1303, 5256, 305, 201, 198, 201, 198, 220, 220, 220, 1303, 2744, 1186, 78, 201, 198, 201, 198, 220, 220, 220, 1303, 5256, 305, 201, 198, 201, 198, 220, 220, 220, 1303, 2744, ...
1.645833
48
from django.apps import AppConfig
[ 6738, 42625, 14208, 13, 18211, 1330, 2034, 16934, 628 ]
3.888889
9
from flask import jsonify, request, jsonify from flask_restful import Resource from sqlalchemy import and_ from api.models.committee_post import CommitteePostTerm from api.resources.authentication import requires_auth from datetime import datetime
[ 6738, 42903, 1330, 33918, 1958, 11, 2581, 11, 33918, 1958, 198, 6738, 42903, 62, 2118, 913, 1330, 20857, 198, 6738, 44161, 282, 26599, 1330, 290, 62, 198, 198, 6738, 40391, 13, 27530, 13, 26799, 62, 7353, 1330, 4606, 6307, 40596, 198, ...
4.15
60
from bclearer_source.b_code.common_knowledge.content_operation_types import ContentOperationTypes from bclearer_source.b_code.common_knowledge.digitialisation_level_stereotype_matched_ea_objects import \ DigitalisationLevelStereotypeMatchedEaObjects from bclearer_source.b_code.configurations.content_operation_confi...
[ 6738, 275, 2375, 11258, 62, 10459, 13, 65, 62, 8189, 13, 11321, 62, 45066, 13, 11299, 62, 27184, 62, 19199, 1330, 14041, 32180, 31431, 198, 6738, 275, 2375, 11258, 62, 10459, 13, 65, 62, 8189, 13, 11321, 62, 45066, 13, 12894, 6847, ...
3.110266
263
import sqlite3 from sqlite3 import OperationalError import argparse parser = argparse.ArgumentParser() parser.add_argument("db_name") parser.add_argument("--ingredients", default=argparse.SUPPRESS) parser.add_argument("--meals", default=argparse.SUPPRESS) args = parser.parse_args() conn = sqlite3.connect(args.db_nam...
[ 11748, 44161, 578, 18, 198, 6738, 44161, 578, 18, 1330, 6564, 864, 12331, 198, 11748, 1822, 29572, 198, 198, 48610, 796, 1822, 29572, 13, 28100, 1713, 46677, 3419, 198, 48610, 13, 2860, 62, 49140, 7203, 9945, 62, 3672, 4943, 198, 48610,...
2.368389
1,664
#!/usr/bin/python # Copyright: (c) 2018, Itential <opensource@itential.com> # GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) """ This module provides the ability to start a workflow from Itential Automation Platform """ from __future__ import absolute_import, division, print...
[ 2, 48443, 14629, 14, 8800, 14, 29412, 198, 198, 2, 15069, 25, 357, 66, 8, 2864, 11, 632, 1843, 1279, 44813, 1668, 31, 270, 1843, 13, 785, 29, 198, 2, 22961, 3611, 5094, 13789, 410, 18, 13, 15, 10, 357, 3826, 27975, 45761, 393, 3...
2.81847
1,895
import math, random, copy, time import numpy as np import os import torch import torch.nn as nn import torch.optim as optim from buffer import PPOMemory from models import ActorCritic from config import * from surviving import Surviving os.environ['CUDA_VISIBLE_DEVICES'] = cuda_device USE_CUDA = torch.cuda.is_availa...
[ 11748, 10688, 11, 4738, 11, 4866, 11, 640, 198, 11748, 299, 32152, 355, 45941, 198, 11748, 28686, 220, 198, 11748, 28034, 198, 11748, 28034, 13, 20471, 355, 299, 77, 198, 198, 11748, 28034, 13, 40085, 355, 6436, 198, 6738, 11876, 1330, ...
2.737968
187
from aws_cdk import core as cdk from aws_cdk import core import aws_cdk.aws_ec2 as ec2 import aws_cdk.aws_eks as eks import aws_cdk.aws_iam as iam import aws_cdk.aws_rds as rds import aws_cdk.aws_secretsmanager as sm import aws_cdk.aws_route53 as route53 import yaml, requests, os, sys
[ 6738, 3253, 82, 62, 10210, 74, 1330, 4755, 355, 22927, 74, 198, 6738, 3253, 82, 62, 10210, 74, 1330, 4755, 198, 11748, 3253, 82, 62, 10210, 74, 13, 8356, 62, 721, 17, 355, 9940, 17, 220, 198, 11748, 3253, 82, 62, 10210, 74, 13, ...
2.284615
130
from __future__ import division, unicode_literals import operator import sys import os import logging import contextlib import json from jsonschema.compat import urljoin, urldefrag from jsonschema.exceptions import RefResolutionError PY3 = sys.version_info[0] >= 3 if PY3: basestring = unicode = str iterit...
[ 6738, 11593, 37443, 834, 1330, 7297, 11, 28000, 1098, 62, 17201, 874, 198, 198, 11748, 10088, 198, 11748, 25064, 198, 11748, 28686, 198, 11748, 18931, 198, 11748, 4732, 8019, 198, 11748, 33918, 198, 198, 6738, 44804, 684, 2395, 2611, 13, ...
3.157895
171
#Naive Bayes Classifier using Numpy import numpy as np class NaiveBayes: """Function to establish relation between dependent and independent variable Args: X: Independent variable y: Dependent variable Returns: None """ n_samples, n_features = X.shape ...
[ 2, 26705, 425, 4696, 274, 5016, 7483, 1262, 399, 32152, 220, 201, 198, 11748, 299, 32152, 355, 45941, 201, 198, 201, 198, 4871, 11013, 425, 15262, 274, 25, 201, 198, 220, 220, 220, 37227, 22203, 284, 4474, 8695, 1022, 10795, 290, 4795...
2.021792
413
# AUTOGENERATED BY NBDEV! DO NOT EDIT! __all__ = ["index", "modules", "custom_doc_links", "git_url"] index = {"request_headers": "00_core.ipynb", "get_as_raw_json": "00_core.ipynb", "get_next_as_raw_json": "00_core.ipynb", "timestamp_now": "00_core.ipynb", "new_bundle": "00_core.ip...
[ 2, 47044, 7730, 1677, 1137, 11617, 11050, 41354, 39345, 0, 8410, 5626, 48483, 0, 198, 198, 834, 439, 834, 796, 14631, 9630, 1600, 366, 18170, 1600, 366, 23144, 62, 15390, 62, 28751, 1600, 366, 18300, 62, 6371, 8973, 198, 198, 9630, 79...
1.927485
855
# -*- coding:utf-8 -*- # Copyright (c) 2020 Huawei Technologies Co.,Ltd. # # openGauss is licensed under Mulan PSL v2. # You can use this software according to the terms # and conditions of the Mulan PSL v2. # You may obtain a copy of Mulan PSL v2 at: # # http://license.coscl.org.cn/MulanPSL2 # # THIS SOFTWARE...
[ 2, 532, 9, 12, 19617, 25, 40477, 12, 23, 532, 9, 12, 198, 2, 15069, 357, 66, 8, 12131, 43208, 21852, 1766, 1539, 43, 8671, 13, 198, 2, 198, 2, 1280, 35389, 1046, 318, 11971, 739, 17996, 272, 6599, 43, 410, 17, 13, 198, 2, 921,...
3.231047
277
from django.db.models.base import Model from detention.models import ActiveBan import core import signals from django.contrib.auth import get_user_model from django.utils.timezone import now as tznow from django.utils.translation import ugettext_lazy as _ User = get_user_model() __author__ = 'Luis' class DetentionSe...
[ 6738, 42625, 14208, 13, 9945, 13, 27530, 13, 8692, 1330, 9104, 198, 6738, 13280, 13, 27530, 1330, 14199, 30457, 198, 11748, 4755, 198, 11748, 10425, 198, 6738, 42625, 14208, 13, 3642, 822, 13, 18439, 1330, 651, 62, 7220, 62, 19849, 198,...
2.364458
1,992
import os from config import cfg import argparse from datasets import make_dataloader from model import make_model from processor import do_inference from utils.logger import setup_logger if __name__ == "__main__": parser = argparse.ArgumentParser(description="ReID Baseline Training") parser.add_argument( ...
[ 11748, 28686, 198, 6738, 4566, 1330, 30218, 70, 198, 11748, 1822, 29572, 198, 6738, 40522, 1330, 787, 62, 67, 10254, 1170, 263, 198, 6738, 2746, 1330, 787, 62, 19849, 198, 6738, 12649, 1330, 466, 62, 259, 4288, 198, 6738, 3384, 4487, ...
2.327778
720
"""Searches for an organization by name on the Cloud Controller API """ from __future__ import print_function import sys import json import cf_api from getpass import getpass print('----------') # cloud_controller_url = 'https://api.changeme.com' cloud_controller_url = raw_input('cloud controller url: ').strip() user...
[ 37811, 50, 451, 2052, 329, 281, 4009, 416, 1438, 319, 262, 10130, 22741, 7824, 198, 37811, 198, 6738, 11593, 37443, 834, 1330, 3601, 62, 8818, 198, 11748, 25064, 198, 11748, 33918, 198, 11748, 30218, 62, 15042, 198, 6738, 651, 6603, 133...
3.252708
277
import os from setuptools import find_packages, setup # allow setup.py to be run from any path os.chdir(os.path.normpath(os.path.join(os.path.abspath(__file__), os.pardir))) requirements = [ "celery==4.1.0", "Django==2.0.3", "django-solo==1.1.3", "eth-abi==1.0.0", "eth-utils==1.0.1", "ethere...
[ 11748, 28686, 198, 198, 6738, 900, 37623, 10141, 1330, 1064, 62, 43789, 11, 9058, 198, 198, 2, 1249, 9058, 13, 9078, 284, 307, 1057, 422, 597, 3108, 198, 418, 13, 354, 15908, 7, 418, 13, 6978, 13, 27237, 6978, 7, 418, 13, 6978, 13...
2.358095
525
from torch.utils.tensorboard import SummaryWriter from tez.callbacks import Callback
[ 6738, 28034, 13, 26791, 13, 83, 22854, 3526, 1330, 21293, 34379, 198, 198, 6738, 573, 89, 13, 13345, 10146, 1330, 4889, 1891, 628 ]
3.782609
23
import cv2 import imageio face_cascade = cv2.CascadeClassifier('haarcascade-frontalface-default.xml') eye_cascade = cv2.CascadeClassifier('haarcascade-eye.xml') if __name__ == "__main__": print('***'*10) print(''' Created by Mert Demirezen Copyright © 2019 Mert Demirezen...
[ 11748, 269, 85, 17, 220, 198, 11748, 2939, 952, 628, 198, 2550, 62, 66, 28966, 796, 269, 85, 17, 13, 34, 28966, 9487, 7483, 10786, 3099, 5605, 28966, 12, 8534, 1604, 558, 12, 12286, 13, 19875, 11537, 198, 25379, 62, 66, 28966, 796, ...
2.37069
348
# coding=utf-8 # Licensed Materials - Property of IBM # Copyright IBM Corp. 2017 from __future__ import print_function import sys import sysconfig import inspect import imp import glob import os import shutil import argparse import subprocess import importlib import streamsx.topology.context as ctx from streamsx.topol...
[ 2, 19617, 28, 40477, 12, 23, 198, 2, 49962, 24310, 532, 14161, 286, 19764, 198, 2, 15069, 19764, 11421, 13, 2177, 198, 198, 6738, 11593, 37443, 834, 1330, 3601, 62, 8818, 198, 11748, 25064, 198, 11748, 25064, 11250, 198, 11748, 10104, ...
3.152672
393
# Generated by Django 3.2.5 on 2021-07-27 15:15 from django.db import migrations, models
[ 2, 2980, 515, 416, 37770, 513, 13, 17, 13, 20, 319, 33448, 12, 2998, 12, 1983, 1315, 25, 1314, 198, 198, 6738, 42625, 14208, 13, 9945, 1330, 15720, 602, 11, 4981, 628 ]
2.84375
32
import tensorflow as tf
[ 11748, 11192, 273, 11125, 355, 48700, 198 ]
3.428571
7
""" SCL <scott@rerobots.net> 2018 """ import time import numpy as np
[ 37811, 198, 198, 50, 5097, 1279, 1416, 1252, 31, 260, 22609, 1747, 13, 3262, 29, 198, 7908, 198, 37811, 198, 11748, 640, 198, 198, 11748, 299, 32152, 355, 45941, 628 ]
2.4
30
#!/usr/bin/python """ This sub-module contains scoring functions for multi-label indicator arrays and a class for housing statistics which wraps around a pandas dataframe. """ __all__ = [ "specificity", "fdr_score", "positive_label_hammming_loss" ] import numpy as np from sklearn.metrics import con...
[ 2, 48443, 14629, 14, 8800, 14, 29412, 201, 198, 201, 198, 37811, 201, 198, 1212, 850, 12, 21412, 4909, 9689, 5499, 329, 5021, 12, 18242, 16916, 26515, 201, 198, 392, 257, 1398, 329, 5627, 7869, 543, 27521, 1088, 257, 19798, 292, 1366,...
2.545332
739
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ particles_list.py: Read and write the HDF5 pradformat "Particles List" file structure Created by Scott Feister on Feb 15 2021 """ import h5py import numpy as np from datetime import datetime from ._h5sanitize import _h5sanitize from .__version__ import __version__ P...
[ 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, 3911, 2983, 62, 4868, 13, 9078, 25, 4149, 290, 3551, 262, 5572, 37, 20, 778, 324, 18982, 366, 7841, ...
1.967651
2,133
# 2- Criar um programa que recebe um número e indica se é par ou impar valor=int(input("Digite o valor: ")) resto=valor%2 if resto==0: print("Número é par") else: print("Impar")
[ 2, 362, 12, 327, 380, 283, 23781, 1430, 64, 8358, 1407, 1350, 23781, 299, 21356, 647, 78, 304, 2699, 64, 384, 38251, 1582, 267, 84, 848, 283, 201, 198, 201, 198, 2100, 273, 28, 600, 7, 15414, 7203, 19511, 578, 267, 1188, 273, 25, ...
2.051546
97
""" This script converts detections provided by the MOT Benchmark to COCO compatible object proposals. """ import argparse import os import sys import pickle import numpy as np from itertools import groupby def mot_detections_to_proposals(det_path): """Converts MOT detections to proposals format""" n_images...
[ 37811, 198, 1212, 4226, 26161, 4886, 507, 2810, 416, 262, 42982, 25187, 4102, 284, 327, 4503, 46, 11670, 198, 15252, 11628, 13, 198, 37811, 198, 198, 11748, 1822, 29572, 198, 11748, 28686, 198, 11748, 25064, 198, 11748, 2298, 293, 198, ...
2.443071
1,133
""" RLE image gray level Run Length matrix for 45 and 135 This file is to handle the zigzag scanned sequence for 45 or 135 degree direction. Note for 135, just swap the left and the right colum """ # Author: # --------------------------------------------- # (C)Xunkai Wei <xunkai.wei@gmai...
[ 37811, 198, 220, 220, 220, 220, 371, 2538, 220, 220, 2939, 12768, 1241, 5660, 22313, 17593, 329, 4153, 290, 17501, 198, 220, 220, 220, 220, 770, 2393, 318, 284, 5412, 262, 1976, 328, 50183, 28660, 8379, 329, 4153, 393, 17501, 4922, 19...
2.54386
456
import sys import os import requests import json import boto3 code_pipeline = boto3.client('codepipeline') # def ascii_encode_dict(data): # ascii_encode = lambda x: x.encode('ascii') # return dict(map(ascii_encode, pair) for pair in data.items()) def send_post(event, context): """Notify Slack of CodePipe...
[ 11748, 25064, 198, 11748, 28686, 198, 11748, 7007, 198, 11748, 33918, 198, 11748, 275, 2069, 18, 198, 198, 8189, 62, 79, 541, 4470, 796, 275, 2069, 18, 13, 16366, 10786, 19815, 538, 541, 4470, 11537, 628, 198, 2, 825, 355, 979, 72, ...
2.82679
433
import logging import datetime import timeit import math now = datetime.datetime.now().strftime('%Y-%m-%d %H:%M:%S') logging.basicConfig( filename='execution.log', format='{0} %(levelname)s:\t%(message)s'.format(now), level=logging.DEBUG ) LOGGER = logging.getLogger('log') separator = '********************...
[ 11748, 18931, 198, 11748, 4818, 8079, 198, 11748, 640, 270, 198, 11748, 10688, 198, 198, 2197, 796, 4818, 8079, 13, 19608, 8079, 13, 2197, 22446, 2536, 31387, 10786, 4, 56, 12, 4, 76, 12, 4, 67, 4064, 39, 25, 4, 44, 25, 4, 50, 1...
3.014493
138
from fastapi import Security, Depends from fastapi import APIRouter from motor.motor_asyncio import AsyncIOMotorClient from core.security.users import get_current_user from crud.biometric_info import get_total_biometric_infos, get_total_biometric_infos_by_type from crud.metrics.biometrics import get_action_history, ge...
[ 6738, 3049, 15042, 1330, 4765, 11, 2129, 2412, 198, 6738, 3049, 15042, 1330, 3486, 4663, 39605, 198, 6738, 5584, 13, 76, 20965, 62, 292, 13361, 952, 1330, 1081, 13361, 40, 2662, 20965, 11792, 198, 198, 6738, 4755, 13, 12961, 13, 18417, ...
3.067797
236
#!/usr/bin/python """ A set of examples that demonstrate how to mount an SROP attack using pwntools/binjitsu. Example tested on : #Distributor ID:Ubuntu #Description:Ubuntu 13.10 #Release:13.10 #Codename:saucy #Linux z-VirtualBox 3.11.0-26-generic #45-Ubuntu SMP Tue Jul 15 04:04:15 UTC 2014 i686 i686 i6...
[ 2, 48443, 14629, 14, 8800, 14, 29412, 198, 198, 37811, 198, 32, 900, 286, 6096, 326, 10176, 703, 284, 3817, 281, 16808, 3185, 1368, 198, 3500, 279, 86, 429, 10141, 14, 8800, 73, 19831, 13, 198, 16281, 6789, 319, 1058, 198, 220, 220,...
2.830435
230
import os import sys import logging from django.core.management import execute_from_command_line if __name__ == '__main__': # Set up structured logging logging.basicConfig( format = '%(message)s\n', stream = sys.stdout, level = logging.DEBUG, ) os.environ.setdefault('DJANGO_S...
[ 11748, 28686, 198, 11748, 25064, 198, 11748, 18931, 198, 198, 6738, 42625, 14208, 13, 7295, 13, 27604, 1330, 12260, 62, 6738, 62, 21812, 62, 1370, 628, 198, 361, 11593, 3672, 834, 6624, 705, 834, 12417, 834, 10354, 198, 220, 220, 220, ...
2.559211
152
import datetime from django.conf import settings from django.core.management.base import BaseCommand from django.utils import timezone from pyconcz.programme.models import Slot
[ 11748, 4818, 8079, 198, 198, 6738, 42625, 14208, 13, 10414, 1330, 6460, 198, 6738, 42625, 14208, 13, 7295, 13, 27604, 13, 8692, 1330, 7308, 21575, 198, 6738, 42625, 14208, 13, 26791, 1330, 640, 11340, 198, 198, 6738, 12972, 1102, 26691, ...
3.75
48
import base64 import binascii from typing import Optional, Union from .. import xdr as stellar_xdr from ..muxed_account import MuxedAccount from .operation import Operation __all__ = ["ClaimClaimableBalance"] class ClaimClaimableBalance(Operation): """The :class:`ClaimClaimableBalance` object, which represents ...
[ 11748, 2779, 2414, 198, 11748, 9874, 292, 979, 72, 198, 6738, 19720, 1330, 32233, 11, 4479, 198, 198, 6738, 11485, 1330, 2124, 7109, 355, 25041, 62, 87, 7109, 198, 6738, 11485, 76, 2821, 276, 62, 23317, 1330, 337, 2821, 276, 30116, 19...
2.748654
557
# Copyright (c) Meta Platforms, Inc. and affiliates. # # This source code is licensed under the MIT license found in the # LICENSE file in the root directory of this source tree. """ Usage: pce_validator --region=<region> --pce-id=<pce_id> [--key-id=<key_id>] [--key-data=<key_data>] Options: --region=<regio...
[ 2, 15069, 357, 66, 8, 30277, 19193, 82, 11, 3457, 13, 290, 29116, 13, 198, 2, 198, 2, 770, 2723, 2438, 318, 11971, 739, 262, 17168, 5964, 1043, 287, 262, 198, 2, 38559, 24290, 2393, 287, 262, 6808, 8619, 286, 428, 2723, 5509, 13, ...
2.512367
283
from setuptools import setup setup( name='mian', version='0.1.0', description="", long_description=(open('README.md').read()), url='https://github.com/tbj128/mian', install_requires=['Flask', 'Werkzeug', 'flask_login', 'Flask-Mail', 'scipy', 'pandas', 'h5py', 'rpy2', 'biom-format', 'scikit-bio'...
[ 6738, 900, 37623, 10141, 1330, 9058, 198, 198, 40406, 7, 198, 220, 220, 220, 1438, 11639, 76, 666, 3256, 198, 220, 220, 220, 2196, 11639, 15, 13, 16, 13, 15, 3256, 198, 220, 220, 220, 6764, 2625, 1600, 198, 220, 220, 220, 890, 62,...
2.454713
541
import logging import os import pandas as pd import sys from . import settings # Logging logging.basicConfig(stream=sys.stdout) logger = logging.getLogger('avocado') # Exceptions class AvocadoException(Exception): """The base class for all exceptions raised in avocado.""" pass def _verify_hdf_chunks(sto...
[ 11748, 18931, 198, 11748, 28686, 198, 11748, 19798, 292, 355, 279, 67, 198, 11748, 25064, 198, 198, 6738, 764, 1330, 6460, 628, 198, 2, 5972, 2667, 198, 6404, 2667, 13, 35487, 16934, 7, 5532, 28, 17597, 13, 19282, 448, 8, 198, 6404, ...
2.48317
5,526
from .utils import Atom, Residue, ActiveSite import numpy as np from scipy import linalg import matplotlib as mpl import matplotlib.pyplot as plt import math from scipy.signal import argrelextrema def get_tail_coords(site): """ For a given active site, go through the residues and return a list of coordina...
[ 6738, 764, 26791, 1330, 33102, 11, 1874, 312, 518, 11, 14199, 29123, 198, 11748, 299, 32152, 355, 45941, 198, 6738, 629, 541, 88, 1330, 300, 1292, 70, 198, 11748, 2603, 29487, 8019, 355, 285, 489, 198, 11748, 2603, 29487, 8019, 13, 90...
2.608179
11,028
######################################################################## # # File Name: ParsedNodeTest.py # # """ A Parsed Token that represents a node test. WWW: http://4suite.org/XPATH e-mail: support@4suite.org Copyright (c) 2000-2001 Fourthought Inc, USA. All Rights Reserved. See http://4suite.org/COPY...
[ 29113, 29113, 7804, 198, 2, 198, 2, 9220, 6530, 25, 220, 220, 23042, 276, 19667, 14402, 13, 9078, 198, 2, 198, 2, 198, 37811, 198, 32, 23042, 276, 29130, 326, 6870, 257, 10139, 1332, 13, 198, 17947, 54, 25, 2638, 1378, 19, 2385, 5...
3.084942
259
# -*- coding: utf-8 -*- from __future__ import unicode_literals import sys import pytest import mock from webtest import TestApp from webargs import Arg from webargs.djangoparser import DjangoParser PY26 = sys.version_info[0] == 2 and int(sys.version_info[1]) < 7 if not PY26: from tests.testapp.testapp.wsgi impor...
[ 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, 11748, 25064, 198, 198, 11748, 12972, 9288, 198, 11748, 15290, 198, 6738, 3992, 9288, 1330, 6208, 4677, 19...
2.502573
583
# -*- coding: utf-8 -*- # This code is part of Qiskit. # # (C) Copyright IBM 2017, 2018. # # This code is licensed under the Apache License, Version 2.0. You may # obtain a copy of this license in the LICENSE.txt file in the root directory # of this source tree or at http://www.apache.org/licenses/LICENSE-2.0. # # Any...
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 198, 2, 770, 2438, 318, 636, 286, 1195, 1984, 270, 13, 198, 2, 198, 2, 357, 34, 8, 15069, 19764, 2177, 11, 2864, 13, 198, 2, 198, 2, 770, 2438, 318, 11971, 739, ...
2.423708
1,645
#More efficient code and exports all permutations to ".csv" & "txt" via numpy array. import numpy as np from itertools import combinations #x = bool([1 >= 28]) # Driver Function if __name__ == "__main__": arr = [4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18 , 19, 20, 21, 22, 23, 24, 25, 26, 27, 28] r...
[ 2, 5167, 6942, 2438, 290, 15319, 477, 9943, 32855, 284, 27071, 40664, 1, 1222, 366, 14116, 1, 2884, 299, 32152, 7177, 13, 198, 198, 11748, 299, 32152, 355, 45941, 198, 6738, 340, 861, 10141, 1330, 17790, 628, 198, 198, 2, 87, 796, 2...
2.438776
196
#Definindo a função olho
[ 220, 220, 220, 220, 198, 2, 7469, 259, 521, 78, 257, 1257, 16175, 28749, 25776, 8873, 198 ]
1.764706
17
from abc import ABC, abstractmethod from itertools import chain from typing import cast, List, Any from forest.spec import Type, Production, EnumProduction, ParamProduction, \ FunctionProduction class Node(ABC): '''Generic and abstract AST Node''' @abstractmethod @property @property @abst...
[ 6738, 450, 66, 1330, 9738, 11, 12531, 24396, 198, 6738, 340, 861, 10141, 1330, 6333, 198, 6738, 19720, 1330, 3350, 11, 7343, 11, 4377, 198, 198, 6738, 8222, 13, 16684, 1330, 5994, 11, 19174, 11, 2039, 388, 35027, 11, 25139, 35027, 11,...
2.523427
1,494
from .civic_clerk.site import CivicClerkSite from .civic_plus.site import Site as CivicPlusSite from .granicus.site import GranicusSite from .legistar.site import LegistarSite
[ 6738, 764, 66, 16482, 62, 565, 9587, 13, 15654, 1330, 31593, 34, 1754, 74, 29123, 198, 6738, 764, 66, 16482, 62, 9541, 13, 15654, 1330, 14413, 355, 31593, 17860, 29123, 198, 6738, 764, 46324, 24552, 13, 15654, 1330, 17113, 24552, 29123,...
3.320755
53
"""Bokeh dotplot.""" import math import warnings import numpy as np from ...plot_utils import _scale_fig_size, vectorized_to_hex from .. import show_layout from . import create_axes_grid from ...plot_utils import plot_point_interval from ...dotplot import wilkinson_algorithm, layout_stacks def plot_dot( values, ...
[ 37811, 33, 2088, 71, 16605, 29487, 526, 15931, 198, 11748, 10688, 198, 11748, 14601, 198, 11748, 299, 32152, 355, 45941, 198, 198, 6738, 2644, 29487, 62, 26791, 1330, 4808, 9888, 62, 5647, 62, 7857, 11, 15879, 1143, 62, 1462, 62, 33095,...
2.156369
1,311
""" FIT1008 Prac 7 Task 2 Loh Hao Bin 25461257, Tan Wen Jie 25839063 @purpose: String interpreter @created 20140913 @modified 20140914 """ from Task1 import Stack def isnum(arg): """ @purpose: To check if the item is a number @complexity: Best & Worst Case: O(1) @parameter arg: The...
[ 37811, 198, 37, 2043, 3064, 23, 1736, 330, 767, 15941, 362, 198, 43, 1219, 367, 5488, 20828, 1679, 3510, 1065, 3553, 11, 11818, 31164, 449, 494, 37528, 2670, 3312, 18, 198, 31, 29983, 25, 10903, 28846, 198, 31, 25598, 580, 29416, 1485...
2.341709
1,592
import argparse import json from xml.etree import ElementTree from cvat.api import CVATAPI from cvat.argument import cvat_args from cvat.cvat_xml import cvat_xml_to_coco if __name__ == '__main__': parser = argparse.ArgumentParser() parser.add_argument("--ignore_attributes", action="store_true") parser.add...
[ 11748, 1822, 29572, 198, 11748, 33918, 198, 6738, 35555, 13, 316, 631, 1330, 11703, 27660, 198, 198, 6738, 269, 85, 265, 13, 15042, 1330, 26196, 1404, 17614, 198, 6738, 269, 85, 265, 13, 49140, 1330, 269, 85, 265, 62, 22046, 198, 6738...
2.2096
625
import math from typing import Any from . import * # Feature is not exported from .feature import Feature from .location import Location from .typing import * Document.register_builder(SBOL_SEQUENCE_FEATURE, build_sequence_feature)
[ 11748, 10688, 198, 6738, 19720, 1330, 4377, 198, 198, 6738, 764, 1330, 1635, 198, 2, 27018, 318, 407, 29050, 198, 6738, 764, 30053, 1330, 27018, 198, 6738, 764, 24886, 1330, 13397, 198, 6738, 764, 774, 13886, 1330, 1635, 628, 628, 198, ...
3.703125
64
''' Parameter ref_enc_dims: dims of encoded reference audio style_dims: dims of reference audio style fo synthesis ''' import torch import torch.nn as nn import torch.nn.init as init import torch.nn.functional as F from espnet.nets.pytorch_backend.emodetector.referenceEncoder import ReferenceEncoder class GST(nn...
[ 7061, 6, 198, 36301, 198, 198, 5420, 62, 12685, 62, 67, 12078, 25, 5391, 82, 286, 30240, 4941, 6597, 198, 7635, 62, 67, 12078, 25, 220, 220, 5391, 82, 286, 4941, 6597, 3918, 11511, 21263, 198, 198, 7061, 6, 198, 198, 11748, 28034, ...
2.33218
578
# # PySNMP MIB module ENTERASYS-DNS-RESOLVER-MIB (http://snmplabs.com/pysmi) # ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/ENTERASYS-DNS-RESOLVER-MIB # Produced by pysmi-0.3.4 at Wed May 1 13:03:16 2019 # On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4 # Using Python version ...
[ 2, 198, 2, 9485, 15571, 7378, 337, 9865, 8265, 46962, 1921, 16309, 12, 35, 8035, 12, 19535, 3535, 5959, 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, 1...
2.755139
5,546