content
stringlengths
1
1.04M
input_ids
listlengths
1
774k
ratio_char_token
float64
0.38
22.9
token_count
int64
1
774k
import database_model as db from database_model import Politician, Tweet, Hashtag import sqlalchemy import twint import arrow if __name__ == "__main__": fill_database()
[ 11748, 6831, 62, 19849, 355, 20613, 198, 6738, 6831, 62, 19849, 1330, 7793, 6749, 11, 18752, 11, 21059, 12985, 198, 11748, 44161, 282, 26599, 198, 198, 11748, 665, 600, 198, 11748, 15452, 628, 198, 198, 361, 11593, 3672, 834, 6624, 366,...
3.277778
54
# -*- coding: utf-8 -*- """Main IPython class.""" #----------------------------------------------------------------------------- # Copyright (C) 2001 Janko Hauser <jhauser@zscout.de> # Copyright (C) 2001-2007 Fernando Perez. <fperez@colorado.edu> # Copyright (C) 2008-2011 The IPython Development Team # # Distribu...
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 37811, 13383, 6101, 7535, 1398, 526, 15931, 198, 198, 2, 10097, 32501, 198, 2, 220, 15069, 357, 34, 8, 5878, 449, 962, 78, 9398, 7220, 1279, 73, 3099, 7220, 31, 89, ...
2.382067
54,192
import sys,os father_path = os.path.join(os.getcwd()) print(father_path, "==father path==") bert_path = find_bert(father_path) # t2t_bert_path = os.path.join(bert_path, "t2t_bert") # sys.path.extend([bert_path, t2t_bert_path]) sys.path.extend([bert_path]) print(sys.path) from predict import AppPredictor from predi...
[ 198, 11748, 25064, 11, 418, 198, 198, 11358, 62, 6978, 796, 28686, 13, 6978, 13, 22179, 7, 418, 13, 1136, 66, 16993, 28955, 198, 4798, 7, 11358, 62, 6978, 11, 366, 855, 11358, 3108, 855, 4943, 198, 198, 4835, 62, 6978, 796, 1064, ...
2.208703
1,241
# constrained version of a line # has direction from Line import * """ ray1 = Ray((0, 0), (0, 1)) print ray1.getBase() print ray1.getDirectionVector() ray2 = Ray((1, 1), (-1, 0)) print ray1.doesIntersectWithRay(ray2) print ray1.intersectWithRay(ray2) """
[ 2, 31070, 2196, 286, 257, 1627, 201, 198, 201, 198, 2, 468, 4571, 201, 198, 201, 198, 6738, 6910, 1330, 1635, 201, 198, 201, 198, 37811, 201, 198, 201, 198, 2433, 16, 796, 7760, 19510, 15, 11, 657, 828, 357, 15, 11, 352, 4008, 2...
2.230769
130
import torch from torch import nn import numpy as np import pickle import os from model.VAE import VAE from data.normalization import ChallengeNormalizer from util.utils import iterate_minibatches from util.cache import load_model, save_model from config.general import cache_dir
[ 11748, 28034, 198, 6738, 28034, 1330, 299, 77, 198, 11748, 299, 32152, 355, 45941, 198, 11748, 2298, 293, 198, 11748, 28686, 198, 198, 6738, 2746, 13, 11731, 36, 1330, 13753, 36, 198, 6738, 1366, 13, 11265, 1634, 1330, 13879, 26447, 750...
3.697368
76
#!/usr/bin/env python # -*- coding: utf-8 -*- """ Author: Li Yuanming Email: yli056@e.ntu.edu.sg Date: 1/27/2021 ML model structure definitions. """ import abc import inspect from enum import Enum from typing import Optional, Union, Tuple, Dict, OrderedDict from pydantic import BaseModel, PositiveInt, conint, Positiv...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 198, 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 37811, 198, 13838, 25, 7455, 34071, 2229, 198, 15333, 25, 331, 4528, 2713, 21, 31, 68, 13, 429, 84, 13, 15532, 13, ...
2.520668
2,516
# coding=utf8 import socket from selectors2 import DefaultSelector, EVENT_READ, EVENT_WRITE import time url = 'xkcd.com' selector = DefaultSelector() stopped = False res = [] @log_time loop()
[ 2, 19617, 28, 40477, 23, 198, 11748, 17802, 198, 6738, 2922, 669, 17, 1330, 15161, 17563, 273, 11, 49261, 62, 15675, 11, 49261, 62, 18564, 12709, 198, 11748, 640, 198, 198, 6371, 796, 705, 87, 74, 10210, 13, 785, 6, 198, 198, 19738,...
2.855072
69
from .tidy_verbs import * # noqa from .. import _get_all_imports __all__ = _get_all_imports(globals())
[ 6738, 764, 83, 19325, 62, 46211, 1330, 1635, 220, 220, 220, 220, 220, 220, 1303, 645, 20402, 198, 6738, 11485, 1330, 4808, 1136, 62, 439, 62, 320, 3742, 628, 198, 834, 439, 834, 796, 4808, 1136, 62, 439, 62, 320, 3742, 7, 4743, 67...
2.361702
47
import math time_first = int(input()) time_second = int(input()) time_third = int(input()) time_total = time_first + time_second + time_third minutes = time_total / 60 seconds = time_total % 60 minutes = math.floor(minutes) if seconds < 10: print(f"{minutes}:0{seconds}") else: print(f"{minutes}:{seconds}"...
[ 11748, 10688, 198, 198, 2435, 62, 11085, 796, 493, 7, 15414, 28955, 198, 2435, 62, 12227, 796, 493, 7, 15414, 28955, 198, 2435, 62, 17089, 796, 493, 7, 15414, 28955, 198, 198, 2435, 62, 23350, 796, 640, 62, 11085, 1343, 640, 62, 122...
2.652893
121
""" Problem below is i did not know what is the return, return list of items or return maximum def knapsack(items, cur_items_index, capacity, weights, profits, cur_items, cur_profit, cur_weight, max_items, max_profit): if (cur_items_index > len(items)-1) or \ cur_weight < ca...
[ 198, 37811, 198, 40781, 2174, 318, 1312, 750, 407, 760, 644, 318, 262, 1441, 11, 220, 198, 197, 7783, 1351, 286, 3709, 220, 393, 1441, 5415, 220, 198, 4299, 638, 1686, 441, 7, 23814, 11, 198, 197, 197, 197, 1090, 62, 23814, 62, 96...
2.148855
262
print("rl init")
[ 4798, 7203, 45895, 2315, 4943, 201, 198 ]
2.571429
7
import logging from lxml import etree from zeep import Plugin from aeat import utils, xml_signing logger = logging.getLogger(__name__) class RawXMLPlugin(object): ''' Stores last request and response as str '''
[ 11748, 18931, 198, 198, 6738, 300, 19875, 1330, 2123, 631, 198, 6738, 41271, 538, 1330, 42636, 198, 198, 6738, 257, 4098, 1330, 3384, 4487, 11, 35555, 62, 12683, 278, 198, 198, 6404, 1362, 796, 18931, 13, 1136, 11187, 1362, 7, 834, 36...
2.898734
79
from aiogram import types from data import config from loader import dp from utils.misc import rate_limit @rate_limit(5, 'help') @dp.message_handler(commands=['help'])
[ 6738, 257, 72, 21857, 1330, 3858, 198, 6738, 1366, 1330, 4566, 198, 6738, 40213, 1330, 288, 79, 198, 6738, 3384, 4487, 13, 44374, 1330, 2494, 62, 32374, 628, 198, 31, 4873, 62, 32374, 7, 20, 11, 705, 16794, 11537, 198, 31, 26059, 13...
3.109091
55
# projecteuler.net/problem=5 if __name__ == '__main__': main()
[ 2, 1628, 68, 18173, 13, 3262, 14, 45573, 28, 20, 201, 198, 201, 198, 361, 11593, 3672, 834, 6624, 705, 834, 12417, 834, 10354, 201, 198, 220, 220, 220, 1388, 3419, 201, 198 ]
2.181818
33
#!/usr/bin/env python ############################################################################## ## # This file is part of Sardana ## # http://www.sardana-controls.org/ ## # Copyright 2011 CELLS / ALBA Synchrotron, Bellaterra, Spain ## # Sardana is free software: you can redistribute it and/or modify # it under th...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 198, 198, 29113, 29113, 7804, 4242, 2235, 198, 2235, 198, 2, 770, 2393, 318, 636, 286, 46997, 2271, 198, 2235, 198, 2, 2638, 1378, 2503, 13, 82, 446, 2271, 12, 13716, 82, 13, 2398, 14, ...
2.852492
983
import config import telebot bot = telebot.TeleBot(config.BOT_TOKEN) @bot.message_handler(commands=['start']) @bot.message_handler(content_types=["text"]) if __name__ == '__main__': bot.polling(none_stop=True)
[ 11748, 4566, 198, 11748, 5735, 13645, 628, 198, 13645, 796, 5735, 13645, 13, 31709, 20630, 7, 11250, 13, 33, 2394, 62, 10468, 43959, 8, 628, 198, 31, 13645, 13, 20500, 62, 30281, 7, 9503, 1746, 28, 17816, 9688, 6, 12962, 628, 198, 3...
2.619048
84
#!/usr/bin/python2 # -*- coding: utf-8 -*- ##################################################################### # This program is free software. It comes without any warranty, to # # the extent permitted by applicable law. You can redistribute it # # and/or modify it under the terms of the Do What The Fuck You Wan...
[ 2, 48443, 14629, 14, 8800, 14, 29412, 17, 198, 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 198, 29113, 29113, 4242, 2, 198, 2, 770, 1430, 318, 1479, 3788, 13, 632, 2058, 1231, 597, 18215, 11, 284, 220, 1303, 1...
2.284226
672
n = int(input('---- Sequência Fibonacci ----\nInsira a quantidade de termos: ')) t1 = 0 t2 = 1 print('{} -> {}'.format(t1, t2), end='') contador = 3 while contador <= n+1: t3 = t1 + t2 print(' -> {}'.format(t3) if contador != n+1 else ' -> Fim', end='') t1 = t2 t2 = t3 contador += 1
[ 77, 796, 493, 7, 15414, 10786, 650, 24604, 25792, 10782, 544, 41566, 261, 44456, 13498, 59, 77, 20376, 8704, 257, 5554, 312, 671, 390, 3381, 418, 25, 705, 4008, 198, 198, 83, 16, 796, 657, 198, 83, 17, 796, 352, 198, 4798, 10786, ...
2.192593
135
import json from flask import Blueprint, flash, Markup, redirect, render_template, request,\ session from libs import admin_authentication from libs.admin_authentication import authenticate_admin_login,\ authenticate_admin_study_access, get_admins_allowed_studies, get_admins_allowed_studies_as_query_set,\ ...
[ 11748, 33918, 198, 198, 6738, 42903, 1330, 39932, 11, 7644, 11, 2940, 929, 11, 18941, 11, 8543, 62, 28243, 11, 2581, 11, 59, 198, 220, 220, 220, 6246, 198, 198, 6738, 9195, 82, 1330, 13169, 62, 41299, 3299, 198, 6738, 9195, 82, 13, ...
3.006612
605
import cv2
[ 11748, 269, 85, 17 ]
2.5
4
""" This file is part of the TheLMA (THe Laboratory Management Application) project. See LICENSE.txt for licensing, CONTRIBUTORS.txt for contributor information. Stock sample creation ISO mapper. """ from sqlalchemy.orm import relationship from everest.repositories.rdb.utils import mapper from thelma.entities.iso im...
[ 37811, 198, 1212, 2393, 318, 636, 286, 262, 383, 43, 5673, 357, 51, 1544, 18643, 8549, 15678, 8, 1628, 13, 198, 6214, 38559, 24290, 13, 14116, 329, 15665, 11, 27342, 9865, 3843, 20673, 13, 14116, 329, 18920, 1321, 13, 198, 198, 26207,...
2.401376
436
from plynx.db.service_state import get_master_state from plynx.utils.common import JSONEncoder from plynx.web.common import app, requires_auth, make_fail_response, handle_errors @app.route('/plynx/api/v0/master_state', methods=['GET']) @handle_errors @requires_auth
[ 6738, 279, 6213, 87, 13, 9945, 13, 15271, 62, 5219, 1330, 651, 62, 9866, 62, 5219, 198, 6738, 279, 6213, 87, 13, 26791, 13, 11321, 1330, 19449, 27195, 12342, 198, 6738, 279, 6213, 87, 13, 12384, 13, 11321, 1330, 598, 11, 4433, 62, ...
2.913043
92
from binaryninja import Symbol, Type, log from binaryninja.enums import SymbolType from .utils import BinjaStruct, read_pe_header, check_address IMAGE_TLS_DIRECTORY32_t = BinjaStruct('<IIIIII', names = ('StartAddressOfRawData', 'EndAddressOfRawData', 'AddressOfIndex', 'AddressOfCallBacks', 'SizeOfZeroFill', 'Charact...
[ 6738, 13934, 35073, 6592, 1330, 38357, 11, 5994, 11, 2604, 198, 6738, 13934, 35073, 6592, 13, 268, 5700, 1330, 38357, 6030, 198, 198, 6738, 764, 26791, 1330, 20828, 6592, 44909, 11, 1100, 62, 431, 62, 25677, 11, 2198, 62, 21975, 628, ...
3.077381
168
""" Author: Frederik Muller, xmulle20@stud.fit.vutbr.cz Author: Matej Vido, xvidom00@stud.fit.vutbr.cz Date: 04/2017 """ import bcrypt from flask import request from bson import json_util, ObjectId import pymongo from slugify import slugify from api import auth, db from api.module import Module from api.models.mode...
[ 37811, 198, 13838, 25, 18669, 1134, 47508, 11, 2124, 76, 377, 293, 1238, 31, 19149, 13, 11147, 13, 85, 315, 1671, 13, 26691, 198, 13838, 25, 24787, 73, 569, 17305, 11, 2124, 16921, 296, 405, 31, 19149, 13, 11147, 13, 85, 315, 1671, ...
2.893709
461
#!/usr/bin/python3 """ Amenity module """ from models.base_model import BaseModel class Amenity(BaseModel): """ Amenity class implementation """ name = "" def __init__(self, *args, **kwargs): """ Initialize in parent class """ super().__init__(self, *args, **kwargs)
[ 2, 48443, 14629, 14, 8800, 14, 29412, 18, 201, 198, 37811, 34717, 414, 8265, 37227, 201, 198, 201, 198, 6738, 4981, 13, 8692, 62, 19849, 1330, 7308, 17633, 201, 198, 201, 198, 201, 198, 4871, 34717, 414, 7, 14881, 17633, 2599, 201, ...
2.512
125
from copper_sdk.notes import NoteTarget import names_generator import json import shared_procs def create_task_note(copper_client, task_id, user_id): """Create a note for a Task Attributes: copper_client (copper_sdk.copper): The CopperSDK client. task_id (str): The ...
[ 6738, 15317, 62, 21282, 74, 13, 17815, 1330, 5740, 21745, 198, 11748, 3891, 62, 8612, 1352, 198, 11748, 33918, 198, 11748, 4888, 62, 1676, 6359, 198, 198, 4299, 2251, 62, 35943, 62, 11295, 7, 1073, 2848, 62, 16366, 11, 4876, 62, 312, ...
2.401423
984
import os.path from .. import generate TEST_PATH = os.path.dirname(__file__)
[ 11748, 28686, 13, 6978, 198, 198, 6738, 11485, 1330, 7716, 628, 198, 51, 6465, 62, 34219, 796, 28686, 13, 6978, 13, 15908, 3672, 7, 834, 7753, 834, 8, 628 ]
2.793103
29
import contextlib import functools import io import pathlib import sys import typing import unittest from nprintml import cli from test.base import mktestdir TEST_ROOT = pathlib.Path(__file__).parent.parent TEST_DATA = TEST_ROOT / 'data' def testdir(func): """Decorator to wrap given function such that a temp...
[ 11748, 4732, 8019, 198, 11748, 1257, 310, 10141, 198, 11748, 33245, 198, 11748, 3108, 8019, 198, 11748, 25064, 198, 11748, 19720, 198, 11748, 555, 715, 395, 198, 198, 6738, 299, 4798, 4029, 1330, 537, 72, 198, 198, 6738, 1332, 13, 8692,...
3.083333
144
from py4j.java_gateway import java_import from .utils import datetime_to_nanos import numpy as np import pandas as pd class DateTimeIndex(object): """ A DateTimeIndex maintains a bi-directional mapping between integers and an ordered collection of date-times. Multiple date-times may correspond to the same ...
[ 6738, 12972, 19, 73, 13, 12355, 62, 10494, 1014, 1330, 20129, 62, 11748, 198, 6738, 764, 26791, 1330, 4818, 8079, 62, 1462, 62, 12647, 418, 198, 11748, 299, 32152, 355, 45941, 198, 11748, 19798, 292, 355, 279, 67, 198, 198, 4871, 7536...
2.646562
1,658
#-*- codingg:utf8 -*- from PyQt5.QtWidgets import QMainWindow,QFontDialog, QApplication,QMenu,QAction,QFileDialog,QDockWidget,QMessageBox,QDesktopWidget,QTableWidget from PyQt5.QtGui import QIcon,QFont,QKeySequence from PyQt5.QtCore import Qt,QSettings,QThread,pyqtSignal from ViewWidget import ViewWidget from DiffWidge...
[ 2, 12, 9, 12, 19617, 70, 25, 40477, 23, 532, 9, 12, 198, 6738, 9485, 48, 83, 20, 13, 48, 83, 54, 312, 11407, 1330, 1195, 13383, 27703, 11, 48, 23252, 44204, 11, 1195, 23416, 11, 48, 23381, 11, 48, 12502, 11, 48, 8979, 44204, 1...
2.566787
277
import numpy as np import theano from ..utils.activation import * from ..utils import weights from .base import Layer __all__ = [ "Convolutional2DLayer" ] class Convolutional2DLayer(Layer): ''' Standard Convolutional 2D Layer ''' # -------------------- #
[ 11748, 299, 32152, 355, 45941, 198, 198, 11748, 262, 5733, 198, 198, 6738, 11485, 26791, 13, 48545, 1330, 1635, 198, 6738, 11485, 26791, 1330, 19590, 198, 6738, 764, 8692, 1330, 34398, 628, 198, 198, 834, 439, 834, 796, 685, 198, 197, ...
2.978495
93
import random
[ 11748, 4738, 198 ]
4.666667
3
# coding=utf-8 # *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** import warnings import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union, overload from .. import...
[ 2, 19617, 28, 40477, 12, 23, 198, 2, 17202, 39410, 25, 428, 2393, 373, 7560, 416, 262, 21624, 12994, 24118, 687, 10290, 357, 27110, 5235, 8, 16984, 13, 17202, 198, 2, 17202, 2141, 407, 4370, 416, 1021, 4556, 345, 821, 1728, 345, 760...
2.272422
2,676
# ----------------- Debuggable Decorators ----------------- # # [1] metadata attached to original function is hidden def greet(): """return a friendly greeting. """ return 'Hi, there!' print(greet.__name__) print(greet.__doc__) decorated_greet = uppercase(greet) print(decorated_greet.__name__) print(deco...
[ 198, 198, 2, 34400, 12, 8965, 6837, 540, 4280, 273, 2024, 34400, 12, 1303, 628, 198, 2, 685, 16, 60, 20150, 7223, 284, 2656, 2163, 318, 7104, 198, 4299, 12589, 33529, 198, 220, 220, 220, 37227, 7783, 257, 8030, 31933, 13, 37227, 198...
2.889831
118
# -*- coding: utf-8 -*- # This code is part of Qiskit. # # (C) Copyright IBM 2020. # # 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 modi...
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 220, 198, 2, 770, 2438, 318, 636, 286, 1195, 1984, 270, 13, 198, 2, 198, 2, 357, 34, 8, 15069, 19764, 12131, 13, 198, 2, 198, 2, 770, 2438, 318, 11971, 739, 262, ...
2.747698
543
import logging from leapp.libraries.actor.rpmtransactionconfigtaskscollector import load_tasks, load_tasks_file from leapp.libraries.stdlib import api from leapp.models import RPM, InstalledRedHatSignedRPM RH_PACKAGER = 'Red Hat, Inc. <http://bugzilla.redhat.com/bugzilla>'
[ 11748, 18931, 198, 198, 6738, 443, 1324, 13, 75, 11127, 13, 11218, 13, 48235, 7645, 2673, 11250, 83, 6791, 33327, 273, 1330, 3440, 62, 83, 6791, 11, 3440, 62, 83, 6791, 62, 7753, 198, 6738, 443, 1324, 13, 75, 11127, 13, 19282, 8019,...
2.957447
94
from .._ingenialink import ffi, lib from enum import IntEnum def err_ipb_last(): """Get IPB last last occurred error.""" return int(ffi.cast("int", lib.ilerr_ipb_last())) class CONFIGURATION_ERRORS(IntEnum): """Configuration errors.""" INCORRECT_ACCESS_TYPE = 0x06010000 OBJECT_NOT_EXIST = 0x0602...
[ 6738, 11485, 62, 36795, 498, 676, 1330, 277, 12463, 11, 9195, 198, 6738, 33829, 1330, 2558, 4834, 388, 628, 198, 4299, 11454, 62, 541, 65, 62, 12957, 33529, 198, 220, 220, 220, 37227, 3855, 6101, 33, 938, 938, 5091, 4049, 526, 15931, ...
2.225543
368
#!/usr/bin/env python # coding: utf-8 # In[1]: import re #******************************************************* # user input: # MOSNAME eg: lvnemos4_1p2_lvpw # MOSTYPE eg: _ne_1p2 # LIB_FILENAME = '501per_35_VcA.lib' # MDL_FILENAME = '501per_35_VcA.mdl' #*******************************************************...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 198, 2, 19617, 25, 3384, 69, 12, 23, 198, 198, 2, 554, 58, 16, 5974, 628, 198, 11748, 302, 198, 2, 17174, 8412, 2466, 8162, 198, 2, 2836, 5128, 25, 220, 198, 2, 337, 2640, 20608, 2920...
1.979203
5,722
#!/usr/bin/env python3 # -*- coding: utf-8 -*- from __future__ import print_function import os import sys import matplotlib.pyplot as plt from matplotlib.patches import Rectangle import warnings warnings.filterwarnings("ignore") try: dataset = sys.argv[1] data_dir = os.path.join('data', dataset) except Except...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 18, 198, 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 198, 6738, 11593, 37443, 834, 1330, 3601, 62, 8818, 198, 11748, 28686, 198, 11748, 25064, 198, 11748, 2603, 29487, ...
2.149211
697
import torch import torch.nn.functional as F from torch.nn import init import numpy as np from scipy.stats import truncnorm def init_weights(net, init_type='normal', init_gain=0.02): """Initialize network weights. Modified from: https://github.com/baudm/MONet-pytorch/blob/master/models/networks.py Param...
[ 11748, 28034, 198, 11748, 28034, 13, 20471, 13, 45124, 355, 376, 198, 6738, 28034, 13, 20471, 1330, 2315, 198, 11748, 299, 32152, 355, 45941, 198, 6738, 629, 541, 88, 13, 34242, 1330, 40122, 27237, 628, 198, 4299, 2315, 62, 43775, 7, ...
2.13883
1,419
import numpy as np # linear algebra import pandas as pd # data processing, CSV file I/O (e.g. pd.read_csv) from stockstats import StockDataFrame import warnings import traceback warnings.filterwarnings('ignore') import argparse import re import sys, os sys.path.append(os.getcwd()) import os import requests from req...
[ 11748, 299, 32152, 355, 45941, 1303, 14174, 37139, 198, 11748, 19798, 292, 355, 279, 67, 1303, 1366, 7587, 11, 44189, 2393, 314, 14, 46, 357, 68, 13, 70, 13, 279, 67, 13, 961, 62, 40664, 8, 198, 6738, 4283, 34242, 1330, 10500, 6601,...
3.459336
873
import json , requests , asyncio , logging logging.basicConfig(format='%(asctime)s - %(message)s', datefmt='%d-%b-%y %H:%M:%S')
[ 11748, 33918, 837, 7007, 837, 30351, 952, 837, 18931, 628, 198, 6404, 2667, 13, 35487, 16934, 7, 18982, 11639, 4, 7, 292, 310, 524, 8, 82, 532, 4064, 7, 20500, 8, 82, 3256, 3128, 69, 16762, 11639, 4, 67, 12, 4, 65, 12, 4, 88, ...
1.986842
76
""" NAWS - Negotiate About Window Size This implements the NAWS telnet option as per https://www.ietf.org/rfc/rfc1073.txt NAWS allows telnet clients to report their current window size to the client and update it when the size changes """ from django.conf import settings from src.utils import utils NAWS = chr(31) ...
[ 37811, 198, 198, 4535, 19416, 532, 13496, 5092, 378, 7994, 26580, 12849, 198, 198, 1212, 23986, 262, 11746, 19416, 13632, 3262, 3038, 355, 583, 198, 5450, 1378, 2503, 13, 1155, 69, 13, 2398, 14, 81, 16072, 14, 81, 16072, 940, 4790, 13...
2.498333
600
# _*_ encoding:utf-8 _*_ from __future__ import unicode_literals from datetime import datetime # from DjangoUeditor.models import UEditorField from django.db import models from organization.models import DramaOrg, Author
[ 2, 4808, 9, 62, 21004, 25, 40477, 12, 23, 4808, 9, 62, 198, 6738, 11593, 37443, 834, 1330, 28000, 1098, 62, 17201, 874, 198, 6738, 4818, 8079, 1330, 4818, 8079, 198, 198, 2, 422, 37770, 52, 35352, 13, 27530, 1330, 471, 17171, 15878,...
3.507692
65
""" This file handles the checkout of books, with log entry added """ import database as db # member_id is a 4-digit numebr and checkout_list is a list containing the full detail of the book being checked out def go(checkout_list = [], member_id = "0"): """ This function takes in a list of books and a member ...
[ 37811, 198, 1212, 2393, 17105, 262, 28006, 286, 3835, 11, 351, 2604, 5726, 2087, 198, 37811, 198, 198, 11748, 6831, 355, 20613, 198, 198, 2, 2888, 62, 312, 318, 257, 604, 12, 27003, 997, 68, 1671, 290, 28006, 62, 4868, 318, 257, 135...
2.561966
468
import os from targets.base_target import Target from targets.data_target import DataTarget from targets.dir_target import DirTarget from targets.errors import ( FileAlreadyExists, FileSystemException, MissingParentDirectory, NotADirectory, ) from targets.file_target import FileSystemTarget, FileTarget...
[ 11748, 28686, 198, 198, 6738, 6670, 13, 8692, 62, 16793, 1330, 12744, 198, 6738, 6670, 13, 7890, 62, 16793, 1330, 6060, 21745, 198, 6738, 6670, 13, 15908, 62, 16793, 1330, 36202, 21745, 198, 6738, 6670, 13, 48277, 1330, 357, 198, 220, ...
3.794521
146
# Licensed under a 3-clause BSD style license - see LICENSE.rst import abc import numpy as np from scipy.stats import chi2 from gammapy.utils.roots import find_roots from .fit_statistics import cash, wstat __all__ = ["WStatCountsStatistic", "CashCountsStatistic"] class CashCountsStatistic(CountsStatistic): """C...
[ 2, 49962, 739, 257, 513, 12, 565, 682, 347, 10305, 3918, 5964, 532, 766, 38559, 24290, 13, 81, 301, 198, 11748, 450, 66, 198, 11748, 299, 32152, 355, 45941, 198, 6738, 629, 541, 88, 13, 34242, 1330, 33166, 17, 198, 6738, 308, 6475, ...
2.520521
999
# NAME # # C_mail # # DESCRIPTION # # 'C_mail' is a simple class for handling/abstracting common # email related activities. # # Once setup with address lists, and/or subject text # it sends body text and inline attachments. # # HISTORY # # 11 January 2007 # o Initial development implementation. # # System imports imp...
[ 2, 36751, 198, 2, 198, 2, 197, 34, 62, 4529, 198, 2, 198, 2, 22196, 40165, 198, 2, 198, 2, 197, 6, 34, 62, 4529, 6, 318, 257, 2829, 1398, 329, 9041, 14, 397, 8709, 278, 2219, 198, 2, 197, 12888, 3519, 4568, 13, 198, 2, 198, ...
2.561594
276
# -*- coding: utf-8 -*- import glob from importlib import import_module import os from os import path as op from mne.utils import _replace_md5, ArgvSetter # Header markings go: # 1. =/= : Page title # 2. = : Command name # 3. -/- : Command description # 4. - : Command sections (Examples, Notes) header = """\...
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 198, 11748, 15095, 198, 6738, 1330, 8019, 1330, 1330, 62, 21412, 198, 11748, 28686, 198, 6738, 28686, 1330, 3108, 355, 1034, 198, 198, 6738, 285, 710, 13, 26791, 1330, 4...
2.862903
248
# -*- coding: utf-8 -*- """ Created on Sat Jan 22 15:31:32 2022 @author: Akshatha """ if __name__ == '__main__': my_stack = Stack() my_stack.push(5) my_stack.disp() my_stack.push(10) my_stack.disp() my_stack.push('game') my_stack.disp() print('stack length: ',my_stac...
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 201, 198, 37811, 201, 198, 41972, 319, 7031, 2365, 2534, 1315, 25, 3132, 25, 2624, 33160, 201, 198, 201, 198, 31, 9800, 25, 317, 50133, 30921, 201, 198, 37811, 201, 198, 22...
2.119048
210
# coding=utf-8 # Copyright 2014 Pants project contributors (see CONTRIBUTORS.md). # Licensed under the Apache License, Version 2.0 (see LICENSE). from __future__ import (absolute_import, division, generators, nested_scopes, print_function, unicode_literals, with_statement) import subprocess fr...
[ 2, 19617, 28, 40477, 12, 23, 198, 2, 15069, 1946, 41689, 1628, 20420, 357, 3826, 27342, 9865, 3843, 20673, 13, 9132, 737, 198, 2, 49962, 739, 262, 24843, 13789, 11, 10628, 362, 13, 15, 357, 3826, 38559, 24290, 737, 198, 198, 6738, 1...
3.201794
223
from subprocess import Popen, PIPE, STDOUT if __name__=="__main__": import sys path = sys.argv[1] duration = GetMovieDuration(path) FPS = GetMovieFPS(path) print "duration:", duration print "FPS:", FPS
[ 6738, 850, 14681, 1330, 8099, 268, 11, 350, 4061, 36, 11, 48571, 12425, 198, 198, 361, 11593, 3672, 834, 855, 1, 834, 12417, 834, 1298, 198, 220, 220, 220, 1330, 25064, 198, 220, 220, 220, 3108, 796, 25064, 13, 853, 85, 58, 16, 60...
2.462366
93
import shelve import os from . import tools MAIN_DIR = os.path.split(os.path.abspath(__file__))[0] SHELVE_PATH = os.path.join(MAIN_DIR, 'high_score.txt')
[ 11748, 7497, 303, 198, 11748, 28686, 198, 6738, 764, 1330, 4899, 198, 198, 5673, 1268, 62, 34720, 796, 28686, 13, 6978, 13, 35312, 7, 418, 13, 6978, 13, 397, 2777, 776, 7, 834, 7753, 834, 4008, 58, 15, 60, 198, 9693, 3698, 6089, 6...
2.4
65
#Script made for learn diferences on list modification t = [2,1,3,4,5] p = [2,1,3,4,5] chop(p) print(p) print(chop(p)) middle(t) print(t) print(middle(t))
[ 2, 7391, 925, 329, 2193, 288, 361, 4972, 319, 1351, 17613, 201, 198, 201, 198, 83, 796, 685, 17, 11, 16, 11, 18, 11, 19, 11, 20, 60, 201, 198, 79, 796, 685, 17, 11, 16, 11, 18, 11, 19, 11, 20, 60, 201, 198, 201, 198, 354, ...
1.831579
95
""" Signal processing, creation and plotting. Analysis of data and generation of simulated experiments. """ __license__ = "Joseph C. Slater" __docformat__ = 'reStructuredText' # import warnings import numpy as np import scipy as sp import scipy.fftpack as fftpack import scipy.linalg as la import matplotlib.pyplot a...
[ 37811, 198, 11712, 282, 7587, 11, 6282, 290, 29353, 13, 198, 198, 32750, 286, 1366, 290, 5270, 286, 28590, 10256, 13, 198, 37811, 198, 834, 43085, 834, 796, 366, 29458, 327, 13, 44289, 1, 198, 198, 834, 15390, 18982, 834, 796, 705, ...
2.058975
20,246
import serial import time import tkinter import tkinter.font as font from datetime import datetime from PIL import ImageTk, Image import sys import pypylon.pylon as py import matplotlib.pyplot as plt import numpy as np import cv2 # SOME PART OF CAMERA CODE CREATES AN INSTANCE OF TK THAT USES PACK. SO WE ...
[ 11748, 11389, 201, 198, 11748, 640, 201, 198, 11748, 256, 74, 3849, 201, 198, 11748, 256, 74, 3849, 13, 10331, 355, 10369, 201, 198, 6738, 4818, 8079, 1330, 4818, 8079, 201, 198, 6738, 350, 4146, 1330, 7412, 51, 74, 11, 7412, 201, 1...
2.54474
1,654
from collections import defaultdict from app import error_messages from app.validators.answers import get_answer_validator from app.validators.blocks import get_block_validator from app.validators.questionnaire_schema import get_object_containing_key from app.validators.questions import get_question_validator from app...
[ 6738, 17268, 1330, 4277, 11600, 198, 198, 6738, 598, 1330, 4049, 62, 37348, 1095, 198, 6738, 598, 13, 12102, 2024, 13, 504, 86, 364, 1330, 651, 62, 41484, 62, 12102, 1352, 198, 6738, 598, 13, 12102, 2024, 13, 27372, 1330, 651, 62, 9...
3.636816
201
""" Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed ...
[ 37811, 198, 220, 220, 49962, 739, 262, 24843, 13789, 11, 10628, 362, 13, 15, 357, 1169, 366, 34156, 15341, 198, 220, 220, 345, 743, 407, 779, 428, 2393, 2845, 287, 11846, 351, 262, 13789, 13, 198, 220, 220, 921, 743, 7330, 257, 4866...
3.385965
228
"""Swap bands in a raster satellite image""" # http://git.io/vqs41 from gdal import gdal_array # name of our source image src = "FalseColor.tif" # load the source image into an array arr = gdal_array.LoadFile(src) # swap bands 1 and 2 for a natural color image. # We will use numpy "advanced slicing" to reorder the...
[ 37811, 10462, 499, 11760, 287, 257, 374, 1603, 11210, 2939, 37811, 198, 198, 2, 2638, 1378, 18300, 13, 952, 14, 85, 48382, 3901, 198, 198, 6738, 308, 31748, 1330, 308, 31748, 62, 18747, 198, 198, 2, 1438, 286, 674, 2723, 2939, 198, ...
2.919355
186
import os import matplotlib.pyplot as plt import scipy.io.wavfile as wav from runner import Runner
[ 11748, 28686, 198, 11748, 2603, 29487, 8019, 13, 9078, 29487, 355, 458, 83, 198, 11748, 629, 541, 88, 13, 952, 13, 45137, 7753, 355, 266, 615, 198, 198, 6738, 17490, 1330, 21529, 198 ]
3.030303
33
from django.apps import AppConfig from photo.config import app_config
[ 6738, 42625, 14208, 13, 18211, 1330, 2034, 16934, 198, 6738, 4590, 13, 11250, 1330, 598, 62, 11250, 198 ]
3.888889
18
#!/usr/bin/env python # # Server that will accept connections from a Vim channel. # Used by test_channel.vim. # # This requires Python 2.6 or later. from __future__ import print_function import json import socket import sys import time import threading try: # Python 3 import socketserver except ImportError: ...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 198, 2, 198, 2, 9652, 326, 481, 2453, 8787, 422, 257, 36645, 6518, 13, 198, 2, 16718, 416, 1332, 62, 17620, 13, 31124, 13, 198, 2, 198, 2, 770, 4433, 11361, 362, 13, 21, 393, 1568, 13...
3.186567
134
## # This software was developed and / or modified by Raytheon Company, # pursuant to Contract DG133W-05-CQ-1067 with the US Government. # # U.S. EXPORT CONTROLLED TECHNICAL DATA # This software product contains export-restricted data whose # export/transfer/disclosure is restricted by U.S. law. Dissemination # to ...
[ 2235, 198, 2, 770, 3788, 373, 4166, 290, 1220, 393, 9518, 416, 7760, 1169, 261, 5834, 11, 198, 2, 12997, 284, 17453, 46133, 16945, 54, 12, 2713, 12, 34, 48, 12, 940, 3134, 351, 262, 1294, 5070, 13, 201, 198, 2, 220, 201, 198, 2,...
2.765791
1,789
from django.db import models from django.utils.translation import ugettext_lazy as _ from ...commons.models import BaseModel
[ 6738, 42625, 14208, 13, 9945, 1330, 4981, 198, 6738, 42625, 14208, 13, 26791, 13, 41519, 1330, 334, 1136, 5239, 62, 75, 12582, 355, 4808, 198, 198, 6738, 2644, 9503, 684, 13, 27530, 1330, 7308, 17633, 628 ]
3.527778
36
NOT_AVAILABLE = 'N/A'
[ 11929, 62, 10116, 32, 4146, 17534, 796, 705, 45, 14, 32, 6, 198 ]
1.692308
13
import numpy as np import pandas as pd import time, gc from GV_Catalogue_Gen import angularDistance def genSigmaCatalogue(CATALOGUE, mag_limit = 6, FOV_limit = 20): ''' Generates the mean of the sigma for each star in the catalogue. Sigma between star A and star B is defined as (1/6) of the a...
[ 11748, 299, 32152, 355, 45941, 201, 198, 11748, 19798, 292, 355, 279, 67, 201, 198, 11748, 640, 11, 308, 66, 201, 198, 6738, 402, 53, 62, 39075, 5119, 62, 13746, 1330, 32558, 45767, 201, 198, 201, 198, 4299, 2429, 50, 13495, 39075, ...
2.34305
2,367
import bpy from mathutils import Color if __name__ == "__main__": create(bpy.context.active_object)
[ 11748, 275, 9078, 628, 198, 6738, 10688, 26791, 1330, 5315, 628, 198, 361, 11593, 3672, 834, 6624, 366, 834, 12417, 834, 1298, 198, 220, 220, 220, 2251, 7, 65, 9078, 13, 22866, 13, 5275, 62, 15252, 8 ]
2.891892
37
# -*- coding: utf-8 -*- from checks import AgentCheck from boto3.session import Session import datetime
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 6738, 8794, 1330, 15906, 9787, 198, 6738, 275, 2069, 18, 13, 29891, 1330, 23575, 198, 11748, 4818, 8079, 628 ]
3.181818
33
import datetime as DT import numpy as NP import matplotlib.pyplot as PLT import matplotlib.colors as PLTC import scipy.constants as FCNST from astropy.io import fits from astropy.io import ascii from astropy.table import Table import progressbar as PGB import antenna_array as AA import geometry as GEOM import my_DSP_mo...
[ 11748, 4818, 8079, 355, 24311, 198, 11748, 299, 32152, 355, 28498, 198, 11748, 2603, 29487, 8019, 13, 9078, 29487, 355, 9297, 51, 198, 11748, 2603, 29487, 8019, 13, 4033, 669, 355, 9297, 4825, 198, 11748, 629, 541, 88, 13, 9979, 1187, ...
2.085936
4,259
import json import os from opts import parse_opts opt = parse_opts() # prepare train.txt with open(os.path.join(opt.dataset_path, 'json_dataset','annotations_train.json'), 'r') as f: annotations = json.load(f) sg_train_images = os.listdir(os.path.join(opt.dataset_path,'sg_dataset','sg_train_images')) sg_test_ima...
[ 11748, 33918, 198, 11748, 28686, 198, 6738, 2172, 82, 1330, 21136, 62, 404, 912, 628, 198, 8738, 796, 21136, 62, 404, 912, 3419, 198, 198, 2, 8335, 4512, 13, 14116, 198, 4480, 1280, 7, 418, 13, 6978, 13, 22179, 7, 8738, 13, 19608, ...
2.378168
513
# -*- coding: utf-8 -*- import pytest import unittest import numpy as np import astropy.wcs from ndcube import utils from ndcube.tests import helpers ht = {'CTYPE3': 'HPLT-TAN', 'CUNIT3': 'deg', 'CDELT3': 0.5, 'CRPIX3': 0, 'CRVAL3': 0, 'NAXIS3': 2, 'CTYPE2': 'WAVE ', 'CUNIT2': 'Angstrom', 'CDELT2': 0.2, 'C...
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 11748, 12972, 9288, 198, 11748, 555, 715, 395, 198, 198, 11748, 299, 32152, 355, 45941, 198, 11748, 6468, 28338, 13, 12712, 198, 198, 6738, 299, 17896, 3266, 1330, 3384, ...
1.907887
1,737
import foo.bar.baz __all__ = ["foo", "baz"] reveal_type(foo) reveal_type(foo.bar) reveal_type(foo.bar.baz) reveal_type(foo.bar.baz.x) reveal_type(baz) reveal_type(bar.baz)
[ 11748, 22944, 13, 5657, 13, 65, 1031, 198, 198, 834, 439, 834, 796, 14631, 21943, 1600, 366, 65, 1031, 8973, 198, 198, 36955, 282, 62, 4906, 7, 21943, 8, 198, 36955, 282, 62, 4906, 7, 21943, 13, 5657, 8, 198, 36955, 282, 62, 4906,...
1.977273
88
import re import esphome.codegen as cg import esphome.config_validation as cv from esphome import automation from esphome.automation import Condition from esphome.components import logger from esphome.const import ( CONF_AVAILABILITY, CONF_BIRTH_MESSAGE, CONF_BROKER, CONF_CERTIFICATE_AUTHORITY, CON...
[ 11748, 302, 198, 198, 11748, 1658, 746, 462, 13, 8189, 5235, 355, 269, 70, 198, 11748, 1658, 746, 462, 13, 11250, 62, 12102, 341, 355, 269, 85, 198, 6738, 1658, 746, 462, 1330, 22771, 198, 6738, 1658, 746, 462, 13, 2306, 296, 341, ...
1.912754
4,814
n = int(input()) a = list(map(int, input().split())) count = 0 j = n - 1 #j là giới hạn bắt đầu của một lần vả: j giúp chống lặp người đã bị giết. #j phải luôn bé hơn i, vì người ở i chỉ vả được những người ở bên trái nó. #last_kill_pos: là giới hạn kết thúc của một lần vả. for i in range(n - 1, -1 , -1): j = min(i...
[ 77, 796, 493, 7, 15414, 28955, 198, 64, 796, 1351, 7, 8899, 7, 600, 11, 5128, 22446, 35312, 3419, 4008, 198, 198, 9127, 796, 657, 198, 73, 796, 299, 532, 352, 198, 2, 73, 300, 24247, 308, 72, 157, 119, 249, 72, 289, 157, 118, ...
1.377644
331
""" """ from __future__ import print_function, division import os from demo import * import subprocess import sys sys.path.append(os.path.abspath('../problems/')) # Get the git root directory root=repo_dir = subprocess.Popen(['git' ,'rev-parse' ...
[ 37811, 198, 37811, 198, 6738, 11593, 37443, 834, 1330, 3601, 62, 8818, 11, 7297, 198, 198, 11748, 28686, 198, 6738, 13605, 1330, 1635, 198, 11748, 850, 14681, 198, 11748, 25064, 198, 17597, 13, 6978, 13, 33295, 7, 418, 13, 6978, 13, 3...
2.223013
843
import os from unittest.mock import patch from pytest import fixture, mark from ..bitbucket import BitbucketOAuthenticator from .mocks import setup_oauth_mock def user_model(username): """Return a user model""" return { 'username': username, } @fixture
[ 11748, 28686, 198, 6738, 555, 715, 395, 13, 76, 735, 1330, 8529, 198, 198, 6738, 12972, 9288, 1330, 29220, 11, 1317, 198, 198, 6738, 11485, 2545, 27041, 316, 1330, 4722, 27041, 316, 46, 47649, 26407, 198, 198, 6738, 764, 76, 3320, 133...
2.838384
99
import pytest from stockmarket.agent import Trader from stockmarket.switchingstrategies import * from stockmarket.valuationfunctions import * from numpy.testing import assert_equal from numpy.testing import assert_raises @pytest.fixture()
[ 11748, 12972, 9288, 198, 6738, 4283, 10728, 13, 25781, 1330, 41956, 198, 6738, 4283, 10728, 13, 2032, 19811, 2536, 2397, 444, 1330, 1635, 198, 6738, 4283, 10728, 13, 2100, 2288, 12543, 2733, 1330, 1635, 198, 6738, 299, 32152, 13, 33407, ...
3.723077
65
"""pmi_odds.py: computes the PMI (Pointwise mutual information) with odds """ import json import os from probabilities import pmi_odds __author__ = "Edimar Manica"
[ 37811, 4426, 72, 62, 5088, 82, 13, 9078, 25, 552, 1769, 262, 3122, 40, 357, 12727, 3083, 13584, 1321, 8, 351, 10402, 198, 198, 37811, 198, 11748, 33918, 198, 11748, 28686, 198, 198, 6738, 39522, 1330, 9114, 72, 62, 5088, 82, 198, 19...
2.915254
59
# NOTE(kaste): Take from https://github.com/randy3k/AlignTab # Copyright (c) 2015 Randy Lai <randy.cs.lai@gmail.com> # # 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, in...
[ 2, 24550, 7, 74, 4594, 2599, 7214, 422, 3740, 1378, 12567, 13, 785, 14, 81, 10757, 18, 74, 14, 2348, 570, 33349, 198, 198, 2, 15069, 357, 66, 8, 1853, 21248, 406, 1872, 1279, 81, 10757, 13, 6359, 13, 75, 1872, 31, 14816, 13, 785...
3.665706
347
baud_rate = 115200 port = "/dev/ttyACM1" input_file=None output_file='log.txt' wait_for_flash = 10 bits_to_cache = 1600 mxchip_file = "/media/newt/AZ31665" setup_string = "Setup complete" skip_setup = False mxchip_buf_pause = .06 serial_comm_timeout = 2 device_type = 'mxchip' test_timeout = None reset_device = False te...
[ 65, 3885, 62, 4873, 796, 12279, 2167, 198, 634, 796, 12813, 7959, 14, 42852, 2246, 44, 16, 1, 198, 15414, 62, 7753, 28, 14202, 198, 22915, 62, 7753, 11639, 6404, 13, 14116, 6, 198, 17077, 62, 1640, 62, 34167, 796, 838, 198, 9895, ...
2.666667
126
if __name__ == '__main__': import sys import pickle from multiprocessing import current_process from multiprocessing.spawn import import_main_path data = pickle.load(sys.stdin.buffer) current_process().authkey = data['authkey'] sys.path = data['path'] import_main_path(data['main']) ...
[ 198, 361, 11593, 3672, 834, 6624, 705, 834, 12417, 834, 10354, 198, 220, 220, 220, 1330, 25064, 198, 220, 220, 220, 1330, 2298, 293, 198, 220, 220, 220, 422, 18540, 305, 919, 278, 1330, 1459, 62, 14681, 198, 220, 220, 220, 422, 1854...
2.691824
159
from io import StringIO import pytest from testlib import mktmp _nav_content_v2 = '''\ 2 NAVIGATION DATA RINEX VERSION / TYPE CCRINEXN V1.6.0 UX CDDIS 12-APR-16 17:31 PGM / RUN BY / DATE IGS BROADCAST EPHEMERIS FILE COMMENT ...
[ 6738, 33245, 1330, 10903, 9399, 198, 198, 11748, 12972, 9288, 198, 6738, 1332, 8019, 1330, 285, 21841, 3149, 198, 198, 62, 28341, 62, 11299, 62, 85, 17, 796, 705, 7061, 59, 198, 220, 220, 220, 220, 362, 220, 220, 220, 220, 220, 220,...
1.844309
2,961
# Copyright 2017 Intel Corporation. # The source code, information and material ("Material") contained herein is # owned by Intel Corporation or its suppliers or licensors, and title to such # Material remains with Intel Corporation or its suppliers or licensors. # The Material contains proprietary information of Intel...
[ 2, 15069, 2177, 8180, 10501, 13, 198, 2, 383, 2723, 2438, 11, 1321, 290, 2587, 5855, 17518, 4943, 7763, 24028, 318, 198, 2, 6898, 416, 8180, 10501, 393, 663, 20499, 393, 8240, 669, 11, 290, 3670, 284, 884, 198, 2, 14633, 3793, 351, ...
3.0875
880
''' Getline - A library to get text from the console Author: Tim Henderson Contact: tim.tadh@hackthology.com Copyright (c) 2010 All Rights Reserved. Licensed under a BSD style license see the LICENSE file. File: __linux_impl Purpose: The linux implementation of getline '''
[ 7061, 6, 198, 3855, 1370, 532, 317, 5888, 284, 651, 2420, 422, 262, 8624, 198, 13838, 25, 5045, 22016, 198, 17829, 25, 4628, 13, 83, 24411, 31, 31153, 400, 1435, 13, 785, 198, 15269, 357, 66, 8, 3050, 1439, 6923, 33876, 13, 198, 2...
3.481013
79
#!/usr/bin/env python3 # -*- coding: utf-8 -*- import unittest def first_negative_index(): """ Returns the index of the first negative element in a given list of numbers. """ return if __name__ == "__main__": unittest.main()
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 18, 198, 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 198, 11748, 555, 715, 395, 628, 198, 4299, 717, 62, 31591, 62, 9630, 33529, 198, 220, 220, 220, 37227, 198, 220, ...
2.614583
96
# coding: utf-8 from __future__ import division import numpy as np import pandas as pd from sklearn import metrics import lightgbm as lgb import time from multiprocessing import cpu_count import warnings warnings.filterwarnings('ignore') # Constants define ROOT_PATH = '../' ONLINE = 1 target = 'label' train_len = 4...
[ 2, 19617, 25, 3384, 69, 12, 23, 198, 198, 6738, 11593, 37443, 834, 1330, 7297, 198, 11748, 299, 32152, 355, 45941, 198, 11748, 19798, 292, 355, 279, 67, 198, 6738, 1341, 35720, 1330, 20731, 198, 11748, 1657, 70, 20475, 355, 300, 22296...
2.55308
2,289
import sys from datetime import datetime from config import ANSI, REPO_DIR, OUTPUT_DIR # globals are bad, mmkay _LAST_RUN_STATS = { 'skipped': 0, 'succeeded': 0, 'failed': 0, 'parsing_start_ts': 0, 'parsing_end_ts': 0, 'indexing_start_ts': 0, 'indexing_end_ts': 0, 'archiving_start_t...
[ 11748, 25064, 198, 6738, 4818, 8079, 1330, 4818, 8079, 198, 6738, 4566, 1330, 3537, 11584, 11, 4526, 16402, 62, 34720, 11, 16289, 30076, 62, 34720, 628, 198, 2, 15095, 874, 389, 2089, 11, 8085, 5568, 198, 62, 43, 11262, 62, 49, 4944, ...
2.198682
1,062
from typing import Hashable, List, Tuple, Mapping import contextlib import pytest import numpy as np import joblib import xarray import io @contextlib.contextmanager def no_warning(*args): """Raise error if any errors occur. Takes the same arguments as ``pytest.warns``. Example: >>> import warn...
[ 6738, 19720, 1330, 21059, 540, 11, 7343, 11, 309, 29291, 11, 337, 5912, 198, 11748, 4732, 8019, 198, 11748, 12972, 9288, 198, 11748, 299, 32152, 355, 45941, 198, 11748, 1693, 8019, 198, 11748, 2124, 18747, 198, 198, 11748, 33245, 628, 1...
2.492174
575
nome=input("Digite seu nome:") idade=int(input("Digite sua idade:")) sexo=input("Digite seu sexo [m/f]:") tupla=(nome,idade,sexo) print(tupla)
[ 77, 462, 28, 15414, 7203, 19511, 578, 384, 84, 299, 462, 25, 4943, 198, 312, 671, 28, 600, 7, 15414, 7203, 19511, 578, 424, 64, 4686, 671, 11097, 4008, 198, 8044, 78, 28, 15414, 7203, 19511, 578, 384, 84, 1714, 78, 685, 76, 14, ...
2.088235
68
"""Structure for model trainer loosely taken from https://realpython.com/sentiment-analysis-python mainly for guide on spacy. dataset used is from https://ai.stanford.edu/~amaas/data/sentiment/ using version 2.3.5 of spacy as version 3 includes api issues when trying to use en cor web sm """ import os from random impor...
[ 37811, 1273, 5620, 329, 2746, 21997, 28845, 2077, 422, 3740, 1378, 5305, 29412, 13, 785, 14, 34086, 3681, 12, 20930, 12, 29412, 8384, 329, 5698, 319, 599, 1590, 13, 198, 19608, 292, 316, 973, 318, 422, 3740, 1378, 1872, 13, 14192, 384...
2.522996
2,457
#!/usr/bin/env python2 import struct padding = 'A'*28 #Address used with gdb #shellcode_addr = struct.pack("I", 0xffffd040) #Address used for exploit shellcode_addr = struct.pack("I", 0xffffd0b0) #Source: https://www.exploit-db.com/shellcodes/46809 #execve("/bin/sh", NULL, NULL) shellcode = "\x31\xc9\x6a\x0b\x58\x5...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 17, 198, 11748, 2878, 198, 198, 39231, 796, 705, 32, 6, 9, 2078, 198, 198, 2, 20231, 973, 351, 308, 9945, 198, 2, 29149, 8189, 62, 29851, 796, 2878, 13, 8002, 7203, 40, 1600, 657, 87, ...
2.215
200
""" 给定一个二维数组map,含义是一张地图,例如,如下矩阵: -2 -3 3 -5 -10 1 0 30 -5 游戏规则如下: (1)骑士从左上角出发,每次只能向右或者向下走,最后到达右下角见到公主。 (2)地图中每个位置的值代表骑士要遭遇的事情。如果是负数,说明此处有怪兽, 要让骑士掉血。如果是非负数,则代表此处有血瓶,能让骑士回血。 (3)骑士从左上角到右下角的过程中,走到任何一个位置,血量都不能少于1. 为了保证骑士能见到公主,初始血量至少是多少?根据map,返回初始血量。 """ if __name__ == '__main__': my_map = [[-2, -3, 3], [-5, -10, 1]...
[ 37811, 198, 163, 119, 247, 22522, 248, 31660, 10310, 103, 12859, 234, 163, 119, 112, 46763, 108, 163, 119, 226, 8899, 171, 120, 234, 28938, 104, 20046, 231, 42468, 31660, 28156, 254, 28839, 108, 32368, 122, 171, 120, 234, 160, 122, 23...
0.715909
528
# -*- coding: utf-8 -*- # Copyright (c) 2016-2018 by University of Kassel and Fraunhofer Institute for Energy Economics # and Energy System Technology (IEE), Kassel. All rights reserved. import pandas as pd from pandapower.plotting.generic_geodata import create_generic_coordinates from pandapower.plotting.plotly.tr...
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 198, 2, 15069, 357, 66, 8, 1584, 12, 7908, 416, 2059, 286, 15035, 741, 290, 39313, 403, 71, 30288, 5136, 329, 6682, 18963, 198, 2, 290, 6682, 4482, 8987, 357, 40, 65...
2.421095
2,503
__all__ = ['_py2', '_str', '_buffer', '_raise'] _py2 = False _str = str _buffer = memoryview
[ 834, 439, 834, 796, 37250, 62, 9078, 17, 3256, 705, 62, 2536, 3256, 705, 62, 22252, 3256, 705, 62, 40225, 20520, 198, 198, 62, 9078, 17, 796, 10352, 198, 62, 2536, 796, 965, 198, 62, 22252, 796, 4088, 1177, 628 ]
2.375
40
from __future__ import absolute_import from __future__ import print_function # This will make all the math functions of torch available from torch import *
[ 6738, 11593, 37443, 834, 1330, 4112, 62, 11748, 198, 6738, 11593, 37443, 834, 1330, 3601, 62, 8818, 198, 198, 2, 770, 481, 787, 477, 262, 10688, 5499, 286, 28034, 1695, 198, 6738, 28034, 1330, 1635, 198 ]
4.361111
36
# -*- coding: utf-8 -*- # Copyright 2020 Google LLC # # 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...
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 2, 15069, 12131, 3012, 11419, 198, 2, 198, 2, 49962, 739, 262, 24843, 13789, 11, 10628, 362, 13, 15, 357, 1169, 366, 34156, 15341, 198, 2, 345, 743, 407, 779, 428, 2...
2.696989
3,089
__author__ = 'wenbin'
[ 834, 9800, 834, 796, 705, 21006, 8800, 6, 198 ]
2.444444
9
"""empty message Revision ID: e96fe0cc3a92 Revises: f1ffa6279209 Create Date: 2017-07-19 09:03:31.402092 """ from alembic import op import sqlalchemy as sa # revision identifiers, used by Alembic. revision = 'e96fe0cc3a92' down_revision = 'f1ffa6279209' branch_labels = None depends_on = None
[ 37811, 28920, 3275, 198, 198, 18009, 1166, 4522, 25, 304, 4846, 5036, 15, 535, 18, 64, 5892, 198, 18009, 2696, 25, 277, 16, 487, 64, 21, 26050, 22567, 198, 16447, 7536, 25, 2177, 12, 2998, 12, 1129, 7769, 25, 3070, 25, 3132, 13, 1...
2.471074
121
# ---------------------------------------------------------------------- # event lifecycle # ---------------------------------------------------------------------- # Copyright (C) 2007-2019 The NOC Project # See LICENSE for details # ---------------------------------------------------------------------- # Third-party ...
[ 2, 16529, 23031, 198, 2, 1785, 3868, 47510, 198, 2, 16529, 23031, 198, 2, 15069, 357, 34, 8, 4343, 12, 23344, 383, 399, 4503, 4935, 198, 2, 4091, 38559, 24290, 329, 3307, 198, 2, 16529, 23031, 198, 198, 2, 10467, 12, 10608, 13103, ...
5.794521
73
"""Generic wrapper function read_raw for specific read_raw_xxx readers.""" # Authors: Clemens Brunner <clemens.brunner@gmail.com> # # License: BSD (3-clause) from pathlib import Path from functools import partial from . import (read_raw_edf, read_raw_bdf, read_raw_gdf, read_raw_brainvision, read_raw_...
[ 37811, 46189, 29908, 2163, 1100, 62, 1831, 329, 2176, 1100, 62, 1831, 62, 31811, 7183, 526, 15931, 198, 198, 2, 46665, 25, 3779, 45535, 15700, 1008, 1279, 2375, 45535, 13, 1671, 403, 1008, 31, 14816, 13, 785, 29, 198, 2, 198, 2, 137...
2.144144
1,332