content
stringlengths
1
1.04M
input_ids
listlengths
1
774k
ratio_char_token
float64
0.38
22.9
token_count
int64
1
774k
from fastapi import HTTPException from kubernetes.client import ( ApiClient, ApiException, CoreV1Api, V1Pod, V1PodList, V1PodStatus, V1Status ) from app.models.pod import ( PodInCreate, PodInUpdate )
[ 6738, 3049, 15042, 1330, 14626, 16922, 198, 198, 6738, 479, 18478, 3262, 274, 13, 16366, 1330, 357, 198, 220, 220, 220, 5949, 72, 11792, 11, 198, 220, 220, 220, 5949, 72, 16922, 11, 198, 220, 220, 220, 7231, 53, 16, 32, 14415, 11, ...
2.245283
106
""" Custom exceptions used throughout the project. """ class AddressException(Exception): """ There was a problem with an address. Maybe it was out of range or invalid. """ class TextScriptException(Exception): """ TextScript encountered an inconsistency or problem. """ class PreprocessorExce...
[ 37811, 198, 15022, 13269, 973, 3690, 262, 1628, 13, 198, 37811, 198, 198, 4871, 17917, 16922, 7, 16922, 2599, 198, 220, 220, 220, 37227, 198, 220, 220, 220, 1318, 373, 257, 1917, 351, 281, 2209, 13, 6674, 340, 373, 503, 286, 2837, 3...
3.417808
146
# Generated by Django 2.1.1 on 2018-10-10 06:04 import ap.apps.photos.models from django.db import migrations, models
[ 2, 2980, 515, 416, 37770, 362, 13, 16, 13, 16, 319, 2864, 12, 940, 12, 940, 9130, 25, 3023, 198, 198, 11748, 2471, 13, 18211, 13, 24729, 13, 27530, 198, 6738, 42625, 14208, 13, 9945, 1330, 15720, 602, 11, 4981, 628 ]
2.926829
41
#!/usr/bin/env python from nephoria.testcase_utils.cli_test_runner import CliTestRunner, SkipTestException from nephoria.testcases.euca2ools.euca2ools_image_utils import Euca2oolsImageUtils from nephoria.usercontext import UserContext from nephoria.testcontroller import TestController import copy import time from urlli...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 198, 6738, 497, 746, 7661, 13, 9288, 7442, 62, 26791, 13, 44506, 62, 9288, 62, 16737, 1330, 1012, 72, 14402, 49493, 11, 32214, 14402, 16922, 198, 6738, 497, 746, 7661, 13, 9288, 33964, 13, ...
2.84375
224
# Copyright (C) 2021 Open Source Robotics Foundation # # Licensed under the Apache License, Version 2.0 (the "License") # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http:#www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law o...
[ 2, 15069, 357, 34, 8, 33448, 4946, 8090, 47061, 5693, 198, 2, 198, 2, 49962, 739, 262, 24843, 13789, 11, 10628, 362, 13, 15, 357, 1169, 366, 34156, 4943, 198, 2, 345, 743, 407, 779, 428, 2393, 2845, 287, 11846, 351, 262, 13789, 13...
3.459459
259
#!/usr/bin/env python3 """ The MIT License (MIT) Copyright (c) 2017 Erik Perillo <erik.perillo@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, including without l...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 18, 198, 198, 37811, 198, 464, 17168, 13789, 357, 36393, 8, 198, 198, 15269, 357, 66, 8, 2177, 22722, 2448, 16111, 1279, 263, 1134, 13, 525, 16111, 31, 14816, 13, 785, 29, 198, 198, 5990,...
3.648718
390
from kanagata import RestrictionBuilder # group: name, users # user: name, age, Option[skills], Option[school] # skill: name # school: name, groups with RestrictionBuilder() as b: with b.define_dict("Group") as group: group.add_member("name", required=True) group.add_list("users", "User", required=...
[ 6738, 43998, 363, 1045, 1330, 37163, 295, 32875, 198, 198, 2, 1448, 25, 1438, 11, 2985, 198, 2, 2836, 25, 1438, 11, 2479, 11, 16018, 58, 8135, 2171, 4357, 16018, 58, 14347, 60, 198, 2, 5032, 25, 1438, 198, 2, 1524, 25, 1438, 11, ...
2.607143
308
import os import click import trisicell as tsc from trisicell.pl._trees import _newick_info2_mutation_list @click.command(short_help="Convert conflict-free to newick file.") @click.argument( "cf_file", required=True, type=click.Path( exists=True, file_okay=True, dir_okay=False, readable=True, re...
[ 11748, 28686, 198, 198, 11748, 3904, 198, 198, 11748, 491, 271, 501, 297, 355, 256, 1416, 198, 6738, 491, 271, 501, 297, 13, 489, 13557, 83, 6037, 1330, 4808, 3605, 624, 62, 10951, 17, 62, 76, 7094, 62, 4868, 628, 198, 31, 12976, ...
2.253438
509
""" Collect and compute strategy portfolio data """ # Copyright (c) 2018-present, Taatu Ltd. # # This source code is licensed under the MIT license found in the # LICENSE file in the root directory of this source tree. import sys import os PDIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__))) sys.path.appe...
[ 37811, 9745, 290, 24061, 4811, 15320, 1366, 37227, 198, 2, 15069, 357, 66, 8, 2864, 12, 25579, 11, 11940, 33419, 12052, 13, 198, 2, 198, 2, 770, 2723, 2438, 318, 11971, 739, 262, 17168, 5964, 1043, 287, 262, 198, 2, 38559, 24290, 23...
2.71118
322
#!/usr/bin/env python3 # -*- coding: utf-8 -*- # Joseph Schroedl # joe.schroedl@outlook.com # https://github.com/corndog2000 import random import os import argparse import csv import json import matplotlib.pyplot as plt import time import numba from numba import jit from colorama import init, Fore from TreeModel im...
[ 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, 2, 7212, 47349, 276, 75, 198, 2, 2525, 68, 13, 20601, 305, 276, 75, 31, 448, 5460, 13, 785, 198, 2, 3740...
2.520374
1,497
from MCVisitor import MCVisitor from MCParser import MCParser from functools import reduce from AST import *
[ 6738, 13122, 15854, 2072, 1330, 13122, 15854, 2072, 198, 6738, 337, 8697, 28198, 1330, 337, 8697, 28198, 198, 6738, 1257, 310, 10141, 1330, 4646, 198, 6738, 29273, 1330, 1635, 198, 220, 220, 220, 220, 220, 220, 220, 220 ]
3.078947
38
# -------------------------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # --------------------------------------------------------------------...
[ 2, 16529, 1783, 10541, 198, 2, 15069, 357, 66, 8, 5413, 10501, 13, 1439, 2489, 10395, 13, 198, 2, 49962, 739, 262, 17168, 13789, 13, 4091, 13789, 13, 14116, 287, 262, 1628, 6808, 329, 5964, 1321, 13, 198, 2, 16529, 1783, 10541, 198,...
4.663717
113
import datetime import functools import hashlib import inspect import sys import time import uuid import calendar import unittest import platform import warnings import types import numbers from dateutil import parser from dateutil.tz import tzlocal real_time = time.time real_localtime = time.localtime real_gmtime = ...
[ 11748, 4818, 8079, 198, 11748, 1257, 310, 10141, 198, 11748, 12234, 8019, 198, 11748, 10104, 198, 11748, 25064, 198, 11748, 640, 198, 11748, 334, 27112, 198, 11748, 11845, 198, 11748, 555, 715, 395, 198, 11748, 3859, 198, 11748, 14601, 19...
2.676026
1,389
# Copyright (c) 2009-2019 The Regents of the University of Michigan # This file is part of the HOOMD-blue project, released under the BSD 3-Clause License. """ JIT The JIT module provides *experimental* support to to JIT (just in time) compile C++ code and call it during the simulation. Compiled C++ code will execute...
[ 2, 15069, 357, 66, 8, 3717, 12, 23344, 383, 3310, 658, 286, 262, 2059, 286, 7055, 198, 2, 770, 2393, 318, 636, 286, 262, 40115, 2662, 35, 12, 17585, 1628, 11, 2716, 739, 262, 347, 10305, 513, 12, 2601, 682, 13789, 13, 198, 198, ...
3.469072
194
#!/usr/bin/env python ''' size ==== Get the binary sizes from executables using lexical. By default, this uses binutils `size` command to probe binary sizes: if `size` is not on the path, like on Windows, you can set the `SIZE` environment variable to manually specify the `size` executable. Lik...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 198, 7061, 6, 198, 220, 220, 220, 2546, 198, 220, 220, 220, 796, 18604, 628, 220, 220, 220, 3497, 262, 13934, 10620, 422, 3121, 2977, 1262, 31191, 605, 13, 2750, 4277, 11, 198, 220, 220, ...
2.190951
5,415
counts = gdf['land_use_class'].value_counts()
[ 9127, 82, 796, 308, 7568, 17816, 1044, 62, 1904, 62, 4871, 6, 4083, 8367, 62, 9127, 82, 3419 ]
2.5
18
# Copyright (c) 2021 Microsoft Corporation. Licensed under the MIT license. import base64 from PIL import Image import io
[ 2, 15069, 357, 66, 8, 33448, 5413, 10501, 13, 49962, 739, 262, 17168, 5964, 13, 220, 198, 11748, 2779, 2414, 198, 6738, 350, 4146, 1330, 7412, 198, 11748, 33245, 628, 628, 198 ]
3.96875
32
"""Definitions for the primitive `scalar_lt`.""" from ..lib import ( UniformPrimitiveInferrer, assert_scalar, bprop_to_grad_transform, ) from ..operations import zeros_like from ..xtype import Bool, Number from . import primitives as P def pyimpl_scalar_lt(x: Number, y: Number) -> Bool: """Implement ...
[ 37811, 7469, 50101, 329, 262, 20049, 4600, 1416, 282, 283, 62, 2528, 63, 526, 15931, 198, 198, 6738, 11485, 8019, 1330, 357, 198, 220, 220, 220, 35712, 23828, 1800, 818, 2232, 11751, 11, 198, 220, 220, 220, 6818, 62, 1416, 282, 283, ...
2.286325
468
import os import glob import tqdm import time import json import arcgis import requests import exceptions
[ 11748, 28686, 198, 11748, 15095, 198, 11748, 256, 80, 36020, 198, 11748, 640, 198, 11748, 33918, 198, 11748, 10389, 70, 271, 198, 11748, 7007, 198, 11748, 13269, 628 ]
3.821429
28
# base test types import numpy as np from .test import Test from basisopt.molecule import Molecule, build_diatomic from basisopt import api, data from basisopt.util import fit_poly from basisopt.exceptions import InvalidDiatomic from mendeleev import element as md_element _VALUE_NAMES = ["Ee", "Re", "BRot", "ARot", "W...
[ 2, 2779, 1332, 3858, 198, 11748, 299, 32152, 355, 45941, 198, 6738, 764, 9288, 1330, 6208, 198, 6738, 4308, 8738, 13, 76, 2305, 23172, 1330, 25726, 23172, 11, 1382, 62, 67, 5375, 10179, 198, 6738, 4308, 8738, 1330, 40391, 11, 1366, 19...
2.19434
1,590
from django.http import JsonResponse from rest_framework.views import APIView from rest_framework.response import Response from rest_framework.decorators import api_view from django_jwt_extended import jwt_required from django_jwt_extended import create_access_token from django_jwt_extended import create_refresh_token ...
[ 6738, 42625, 14208, 13, 4023, 1330, 449, 1559, 31077, 198, 6738, 1334, 62, 30604, 13, 33571, 1330, 3486, 3824, 769, 198, 6738, 1334, 62, 30604, 13, 26209, 1330, 18261, 198, 6738, 1334, 62, 30604, 13, 12501, 273, 2024, 1330, 40391, 62, ...
1.984848
330
# -*- coding: utf-8 -*- ''' Created on 02.11.2017 @author: fstallmann ''' from __future__ import absolute_import, division import time import json # required for tags from collections import namedtuple # required for color class from contextlib import contextmanager # for locale helper import System.Array # to crea...
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 7061, 6, 198, 41972, 319, 7816, 13, 1157, 13, 5539, 198, 198, 31, 9800, 25, 277, 32989, 9038, 198, 7061, 6, 198, 198, 6738, 11593, 37443, 834, 1330, 4112, 62, 11748, ...
2.290847
21,348
config = { # general "TYPE_OF_RUN": "train", # train, test, test_episodes, render "PROJECT_PATH": "/Users/mhwu/Desktop/rochester/RL_projects/wmg_agent", # worker.py "ENV": "BattleshipEnv", "ENV_RANDOM_SEED": 3, "AGENT_RANDOM_SEED": 1, "REPORTING_INTERVAL": 5_000, "TOTAL_STEPS": 200_...
[ 11250, 796, 1391, 198, 220, 220, 220, 1303, 2276, 198, 220, 220, 220, 366, 25216, 62, 19238, 62, 49, 4944, 1298, 366, 27432, 1600, 220, 1303, 4512, 11, 1332, 11, 1332, 62, 538, 8052, 11, 8543, 198, 220, 220, 220, 366, 31190, 23680, ...
1.875994
629
from django import template from django.utils.safestring import mark_safe from django.utils.translation import gettext as _ register = template.Library() @register.filter @register.filter @register.filter @register.filter def state_str(flag): """ Construct a string that describes the current state of the ...
[ 6738, 42625, 14208, 1330, 11055, 198, 6738, 42625, 14208, 13, 26791, 13, 49585, 395, 1806, 1330, 1317, 62, 21230, 198, 6738, 42625, 14208, 13, 26791, 13, 41519, 1330, 651, 5239, 355, 4808, 628, 198, 30238, 796, 11055, 13, 23377, 3419, 6...
2.384323
1,314
import numpy as np import matplotlib.pyplot as plt fileName = 'MeteoMilano.csv' # [0] CET # Temperatura maxC # Temperatura mediaC # Temperatura minC # Punto di rugiadaC # MeanDew PointC # Min DewpointC # Max Umidità # Mean Umidità # [9] Min Umidità # Max Pressione a livel...
[ 11748, 299, 32152, 355, 45941, 198, 11748, 2603, 29487, 8019, 13, 9078, 29487, 355, 458, 83, 198, 198, 7753, 5376, 796, 705, 9171, 68, 78, 24857, 5733, 13, 40664, 6, 198, 2, 685, 15, 60, 220, 46632, 198, 2, 220, 220, 220, 220, 220...
2.121348
445
s = input() cnt = 0 for i in range(len(s)): if s[i] == 'C': cnt = 1 if cnt == 1 and s[i] == 'F': print('Yes') exit() print('No')
[ 82, 796, 5128, 3419, 198, 66, 429, 796, 657, 198, 1640, 1312, 287, 2837, 7, 11925, 7, 82, 8, 2599, 198, 220, 220, 220, 611, 264, 58, 72, 60, 6624, 705, 34, 10354, 198, 220, 220, 220, 220, 220, 220, 220, 269, 429, 796, 352, 198...
1.769231
91
#!/usr/local/Cellar/python/2.7.6/bin/python # -*- coding: utf-8 -*- '''Standard python modules''' import sys '''For scientific computing''' from numpy import * import scipy.misc, scipy.io, scipy.optimize, scipy.cluster.vq '''For plotting''' from matplotlib import pyplot, cm, colors from mpl_toolkits.mplot3d import A...
[ 2, 48443, 14629, 14, 12001, 14, 34, 14203, 14, 29412, 14, 17, 13, 22, 13, 21, 14, 8800, 14, 29412, 198, 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 198, 7061, 6, 23615, 21015, 13103, 7061, 6, 198, 11748, 25064...
2.463087
149
from bot import Telegram_Chatbot from chat_controller import Chat_Controller # Instantiate bot with token specified in the config my_bot = Telegram_Chatbot("config.cfg") chat_controller = Chat_Controller() update_id = None while True: updates = my_bot.get_updates(offset=update_id) updates = updates['result'] ...
[ 6738, 10214, 1330, 50203, 62, 30820, 13645, 198, 6738, 8537, 62, 36500, 1330, 24101, 62, 22130, 198, 198, 2, 24470, 9386, 10214, 351, 11241, 7368, 287, 262, 4566, 198, 1820, 62, 13645, 796, 50203, 62, 30820, 13645, 7203, 11250, 13, 3758...
2.742222
225
from .projections import * from .transformations import * from .ssim import * from .smoothness import * from .masking import * from .normals import * from .splatting import * import os
[ 6738, 764, 16302, 507, 1330, 1635, 198, 6738, 764, 35636, 602, 1330, 1635, 198, 6738, 764, 824, 320, 1330, 1635, 198, 6738, 764, 5796, 5226, 1108, 1330, 1635, 198, 6738, 764, 27932, 278, 1330, 1635, 198, 6738, 764, 27237, 874, 1330, 1...
3.381818
55
import networkx as nx from gen.MiniJavaListener import MiniJavaListener from gen.MiniJavaParser import MiniJavaParser import queue # state_terms
[ 198, 11748, 3127, 87, 355, 299, 87, 198, 6738, 2429, 13, 39234, 29584, 33252, 1330, 12558, 29584, 33252, 198, 6738, 2429, 13, 39234, 29584, 46677, 1330, 12558, 29584, 46677, 198, 198, 11748, 16834, 628, 628, 198, 220, 220, 220, 1303, 11...
3.545455
44
# Generated by Django 2.2.5 on 2019-09-26 08:47 from django.db import migrations, models import markupfield.fields
[ 2, 2980, 515, 416, 37770, 362, 13, 17, 13, 20, 319, 13130, 12, 2931, 12, 2075, 8487, 25, 2857, 198, 198, 6738, 42625, 14208, 13, 9945, 1330, 15720, 602, 11, 4981, 198, 11748, 41485, 3245, 13, 25747, 628 ]
3.078947
38
from __future__ import unicode_literals from utils import CanadianScraper, CanadianPerson as Person import re from collections import defaultdict COUNCIL_PAGE = 'http://www.moncton.ca/Government/City_Council.htm'
[ 6738, 11593, 37443, 834, 1330, 28000, 1098, 62, 17201, 874, 198, 6738, 3384, 4487, 1330, 5398, 3351, 38545, 11, 5398, 15439, 355, 7755, 198, 198, 11748, 302, 198, 6738, 17268, 1330, 4277, 11600, 198, 198, 34, 2606, 7792, 4146, 62, 4537,...
3.428571
63
#!/usr/bin/env python3 # # Copyright (c) 2017 Intel Corporation # Copyright (c) 2018 Foundries.io # # SPDX-License-Identifier: Apache-2.0 # import argparse import struct import sys import os from elftools.elf.elffile import ELFFile from elftools.elf.sections import SymbolTableSection ISR_FLAG_DIRECT = (1 << 0) # The...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 18, 198, 2, 198, 2, 15069, 357, 66, 8, 2177, 8180, 10501, 198, 2, 15069, 357, 66, 8, 2864, 4062, 1678, 13, 952, 198, 2, 198, 2, 30628, 55, 12, 34156, 12, 33234, 7483, 25, 24843, 12, ...
2.438403
1,177
from time import sleep import threading import datetime import paho.mqtt.client as mqtt MQTTServer="home.bodhiconnolly.com" MQTTPort=1882 waitTime=datetime.timedelta(milliseconds=50) lastTime=datetime.datetime.now() fadeSeconds=5 onTopic = "system/room/PIR" onMessage = "PIR Receiver On" funcTopic = "room/function/" i...
[ 6738, 640, 1330, 3993, 198, 11748, 4704, 278, 198, 11748, 4818, 8079, 198, 11748, 279, 17108, 13, 76, 80, 926, 13, 16366, 355, 285, 80, 926, 198, 198, 49215, 51, 4694, 18497, 2625, 11195, 13, 65, 375, 71, 4749, 77, 5098, 13, 785, ...
2.311355
273
# Generated by Django 3.0.2 on 2020-02-16 22:03 from django.db import migrations
[ 2, 2980, 515, 416, 37770, 513, 13, 15, 13, 17, 319, 12131, 12, 2999, 12, 1433, 2534, 25, 3070, 198, 198, 6738, 42625, 14208, 13, 9945, 1330, 15720, 602, 628 ]
2.766667
30
""" Merge two sorted linked lists and return it as a new list. The new list should be made by splicing together the nodes of the first two lists. Example: Input: 1->2->4, 1->3->4 Output: 1->1->2->3->4->4 Your runtime beats 55.16 % of python submissions. """ # Definition for singly-linked list. # class ListNode(obj...
[ 37811, 198, 13102, 469, 734, 23243, 6692, 8341, 290, 1441, 340, 355, 257, 649, 1351, 13, 383, 649, 1351, 815, 307, 925, 416, 4328, 6345, 1978, 262, 13760, 286, 262, 717, 734, 8341, 13, 198, 198, 16281, 25, 198, 198, 20560, 25, 352, ...
2.755102
147
""" 给定一个二叉树 struct TreeLinkNode { TreeLinkNode *left; TreeLinkNode *right; TreeLinkNode *next; } 填充它的每个 next 指针,让这个指针指向其下一个右侧节点。如果找不到下一个右侧节点,则将 next 指针设置为 NULL。 初始状态下,所有 next 指针都被设置为 NULL。 要求: 1.额外空间复杂度为(1),递归的栈空间不算 2.给定的二叉树为满二叉树 """ # Definition for binary tree with next pointer. # class TreeLinkNode: # d...
[ 37811, 198, 163, 119, 247, 22522, 248, 31660, 10310, 103, 12859, 234, 20998, 231, 43718, 239, 198, 7249, 12200, 11280, 19667, 1391, 198, 220, 12200, 11280, 19667, 1635, 9464, 26, 198, 220, 12200, 11280, 19667, 1635, 3506, 26, 198, 220, ...
1.205405
370
from pydantic.dataclasses import dataclass from typing_extensions import Literal from ..vae import VAEConfig @dataclass class INFOVAE_MMD_Config(VAEConfig): """Info-VAE model config class. Parameters: input_dim (tuple): The input_data dimension. latent_dim (int): The latent space dimension. ...
[ 6738, 279, 5173, 5109, 13, 19608, 330, 28958, 1330, 4818, 330, 31172, 198, 6738, 19720, 62, 2302, 5736, 1330, 25659, 1691, 198, 198, 6738, 11485, 33353, 1330, 13753, 2943, 261, 5647, 628, 198, 31, 19608, 330, 31172, 198, 4871, 24890, 11...
2.68661
351
import temp try: if not ("substitution" in dir(temp) and callable(getattr(temp,'substitution'))): print("Incorrect : fonction substitution(mot, cle) non déclarée") answer = False else: answer = test() except Exception as e: print(type(e).__name__, ":", e) answer = False if an...
[ 11748, 20218, 628, 198, 198, 28311, 25, 198, 220, 220, 220, 611, 407, 5855, 7266, 301, 2738, 1, 287, 26672, 7, 29510, 8, 290, 869, 540, 7, 1136, 35226, 7, 29510, 4032, 7266, 301, 2738, 6, 4008, 2599, 198, 220, 220, 220, 220, 220, ...
2.390244
164
import json from azul.deployment import ( emit_tf, ) emit_tf({ 'data': { 'aws_cloudfront_distribution': { 'cloudfront': { 'id': 'E3QDNPF7XH7O7G' } } }, 'resource': { 'aws_iam_role': { 'cloudfront': { 'name': 'c...
[ 11748, 33918, 198, 198, 6738, 35560, 377, 13, 2934, 1420, 434, 1330, 357, 198, 220, 220, 220, 27588, 62, 27110, 11, 198, 8, 198, 198, 368, 270, 62, 27110, 15090, 198, 220, 220, 220, 705, 7890, 10354, 1391, 198, 220, 220, 220, 220, ...
1.46422
1,635
""" #https://github.com/AlanPrado/FDSI2_subway_data/blob/master/analyzing-subway-data-ndfdsi.ipynb Subway Data Analysis Introduction O sistema de ônibus e trens de Nova Iorque - o Metro Transit Authority - fornece seus dados para download através de arquivos csv. Uma das informações disponíveis são os dados das catra...
[ 37811, 198, 2, 5450, 1378, 12567, 13, 785, 14, 36235, 6836, 4533, 14, 37, 5258, 40, 17, 62, 7266, 1014, 62, 7890, 14, 2436, 672, 14, 9866, 14, 38200, 9510, 12, 7266, 1014, 12, 7890, 12, 358, 69, 9310, 72, 13, 541, 2047, 65, 628,...
2.573119
1,183
from abc import ABCMeta, abstractmethod class OutputInterceptionDataHandler(object): """ A class that act as a pluggable hook that can be used during output interception when recording and playing the data """ __metaclass__ = ABCMeta @abstractmethod def prepare_output_for_recording(self, inte...
[ 6738, 450, 66, 1330, 9738, 48526, 11, 12531, 24396, 628, 198, 4871, 25235, 9492, 4516, 6601, 25060, 7, 15252, 2599, 198, 220, 220, 220, 37227, 198, 220, 220, 220, 317, 1398, 326, 719, 355, 257, 6107, 70, 540, 8011, 326, 460, 307, 97...
2.793839
422
''' Take a list and make extra rows from it tweaks: list_to_rows: column: "Other Addresses" target: "address" # optional ''' import copy import re import six
[ 198, 7061, 6, 198, 198, 12322, 257, 1351, 290, 787, 3131, 15274, 422, 340, 198, 198, 83, 732, 4730, 25, 198, 220, 1351, 62, 1462, 62, 8516, 25, 198, 220, 220, 220, 5721, 25, 366, 6395, 3060, 16746, 1, 198, 220, 220, 220, 2496, 2...
2.375
80
# Ant-FS # # Copyright (c) 2012, Gustav Tiger <gustav@tiger.name> # # 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...
[ 2, 3738, 12, 10652, 198, 2, 198, 2, 15069, 357, 66, 8, 2321, 11, 43715, 17030, 1279, 70, 436, 615, 31, 83, 8254, 13, 3672, 29, 198, 2, 198, 2, 2448, 3411, 318, 29376, 7520, 11, 1479, 286, 3877, 11, 284, 597, 1048, 16727, 257, ...
3.725904
332
# -*- coding: utf-8 -*- import re from ..base.decrypter import BaseDecrypter
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 11748, 302, 198, 198, 6738, 11485, 8692, 13, 12501, 563, 42104, 1330, 7308, 10707, 563, 42104, 628 ]
2.548387
31
import numpy as np
[ 11748, 299, 32152, 355, 45941, 628 ]
3.333333
6
from tkinter import * from dnd_character_sheet.sheets.Abilities import Abilities finestra = Tk() finestra.geometry('500x300+400+200') finestra.title('D&D CHARACTER SHEET') abilities = Abilities() abilities.strength = 13 abilities.dexterity = 16 abilities.constitution = 14 abilities.intelligence = 11 abilities.wisd...
[ 6738, 256, 74, 3849, 1330, 1635, 198, 198, 6738, 288, 358, 62, 22769, 62, 21760, 13, 42011, 13, 4826, 2410, 1330, 31447, 198, 198, 15643, 395, 430, 796, 309, 74, 3419, 198, 198, 15643, 395, 430, 13, 469, 15748, 10786, 4059, 87, 6200...
2.843284
268
#!/usr/bin/python3 #MIT License #Copyright (c) 2021 Ripe
[ 2, 48443, 14629, 14, 8800, 14, 29412, 18, 198, 198, 2, 36393, 13789, 198, 2, 15269, 357, 66, 8, 33448, 371, 3757, 198 ]
2.521739
23
from random import * import subprocess import sys import warnings warnings.filterwarnings("ignore") nb_prob = 50 open_prob = 100 prob_end = 5 num_range = [0, 100] expr = "" operators = ["+","-","*","/", "%"] opened_p = 0 min_expr_len = 5 max_expr_len = 30 no_overflow = False error = False while not error: while ...
[ 6738, 4738, 1330, 1635, 198, 11748, 850, 14681, 198, 11748, 25064, 198, 11748, 14601, 198, 198, 40539, 654, 13, 24455, 40539, 654, 7203, 46430, 4943, 198, 198, 46803, 62, 1676, 65, 796, 2026, 198, 9654, 62, 1676, 65, 796, 1802, 198, 1...
1.791094
1,527
import argparse import cv2 as cv import numpy as np import pandas as pd parser = argparse.ArgumentParser(description='Segment the cells from an image.') parser.add_argument(dest="segment", type=str, help = "Segmentation to pixelize") parser.add_argument(dest="centroids", type=str, ...
[ 11748, 1822, 29572, 198, 11748, 269, 85, 17, 355, 269, 85, 198, 11748, 299, 32152, 355, 45941, 198, 11748, 19798, 292, 355, 279, 67, 198, 198, 48610, 796, 1822, 29572, 13, 28100, 1713, 46677, 7, 11213, 11639, 41030, 434, 262, 4778, 42...
2.112319
828
# Copyright 2018 Open Source Robotics Foundation, Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law...
[ 2, 15069, 2864, 4946, 8090, 47061, 5693, 11, 3457, 13, 198, 2, 198, 2, 49962, 739, 262, 24843, 13789, 11, 10628, 362, 13, 15, 357, 1169, 366, 34156, 15341, 198, 2, 345, 743, 407, 779, 428, 2393, 2845, 287, 11846, 351, 262, 13789, ...
2.841082
1,183
from calistra_lib.plan.plan_storage_interface import IPlanStorage from ..models import Plan
[ 6738, 2386, 396, 430, 62, 8019, 13, 11578, 13, 11578, 62, 35350, 62, 39994, 1330, 314, 20854, 31425, 198, 6738, 11485, 27530, 1330, 5224, 628, 198 ]
3.615385
26
from setuptools import setup, find_packages import codecs import os from commands import (docker_build, docker_start, docker_stop, setup_riak, create_bucket_types, Test) HERE = os.path.abspath(os.path.dirname(__file__)) def read(*parts): """ Build an absolute path from *parts* and and ...
[ 6738, 900, 37623, 10141, 1330, 9058, 11, 1064, 62, 43789, 198, 11748, 40481, 82, 198, 11748, 28686, 198, 6738, 9729, 1330, 357, 45986, 62, 11249, 11, 36253, 62, 9688, 11, 36253, 62, 11338, 11, 9058, 62, 380, 461, 11, 198, 220, 220, ...
2.504213
712
import torch from torchvision import transforms from torchvision.datasets import CIFAR10 from typing import Any, Callable, Optional, Tuple import os import numpy as np class WeightedCIFAR(CIFAR10): '''initialized the weighted CIFAR dataset with its instance weights initially, all instance weights are set to 1'...
[ 11748, 28034, 198, 6738, 28034, 10178, 1330, 31408, 198, 6738, 28034, 10178, 13, 19608, 292, 1039, 1330, 327, 5064, 1503, 940, 198, 6738, 19720, 1330, 4377, 11, 4889, 540, 11, 32233, 11, 309, 29291, 198, 11748, 28686, 198, 11748, 299, 3...
2.907583
844
# Copyright (c) Pymatgen Development Team. # Distributed under the terms of the MIT License. import unittest import warnings from pathlib import Path import numpy as np from plotly.graph_objects import Figure from pymatgen.analysis.chempot_diagram import ( ChemicalPotentialDiagram, simple_pca, get_centro...
[ 2, 15069, 357, 66, 8, 350, 4948, 265, 5235, 7712, 4816, 13, 198, 2, 4307, 6169, 739, 262, 2846, 286, 262, 17168, 13789, 13, 198, 198, 11748, 555, 715, 395, 198, 11748, 14601, 198, 6738, 3108, 8019, 1330, 10644, 198, 198, 11748, 299,...
2.912621
206
import django_tables2 as tables from e_secretary.models import *
[ 11748, 42625, 14208, 62, 83, 2977, 17, 355, 8893, 198, 6738, 304, 62, 21078, 560, 13, 27530, 1330, 1635 ]
3.368421
19
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Created on Fri Apr 10 11:23:13 2020 @author: thomas """ import matplotlib.pyplot as plt from skimage import data, color from skimage.transform import rescale, resize, downscale_local_mean image = color.rgb2gray(data.astronaut()) image_rescaled = rescale(image, 0.25...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 18, 198, 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 37811, 198, 41972, 319, 19480, 2758, 838, 1367, 25, 1954, 25, 1485, 12131, 198, 198, 31, 9800, 25, 294, 16911, 19...
2.411565
294
import json import mcazurerm # Azure subscription class # update the authentication token for this subscription # list VM Scale Sets in this subscription - names only
[ 11748, 33918, 198, 198, 11748, 36650, 1031, 15051, 76, 628, 198, 2, 22134, 14569, 1398, 628, 220, 220, 220, 1303, 4296, 262, 18239, 11241, 329, 428, 14569, 628, 220, 220, 220, 1303, 1351, 16990, 21589, 21394, 287, 428, 14569, 532, 3891,...
4.186047
43
from backend.models.style import StyleModel
[ 6738, 30203, 13, 27530, 13, 7635, 1330, 17738, 17633, 628 ]
4.5
10
from sklearn import model_selection from typing import Iterable
[ 6738, 1341, 35720, 1330, 2746, 62, 49283, 198, 6738, 19720, 1330, 40806, 540, 628 ]
4.642857
14
from typing import Union from . import database collection = database.chats
[ 6738, 19720, 1330, 4479, 198, 198, 6738, 764, 1330, 6831, 198, 198, 43681, 796, 6831, 13, 354, 1381, 628, 628 ]
4.05
20
# ====================================================================================== # Copyright and other protections apply. Please see the accompanying LICENSE file for # rights and restrictions governing use of this software. All rights not expressly # waived or licensed are reserved. If that file is missing or ...
[ 2, 38093, 4770, 1421, 28, 198, 2, 15069, 290, 584, 15018, 4174, 13, 4222, 766, 262, 19249, 38559, 24290, 2393, 329, 198, 2, 2489, 290, 8733, 15030, 779, 286, 428, 3788, 13, 1439, 2489, 407, 27462, 198, 2, 28170, 393, 11971, 389, 103...
3.444444
450
import math
[ 11748, 10688, 628, 628, 628, 628, 198 ]
2.857143
7
############################################################################ # This Python file is part of PyFEM, the code that accompanies the book: # # # # 'Non-Linear Finite Element Analysis of Solids and Structures' # # R. ...
[ 29113, 29113, 7804, 4242, 201, 198, 2, 220, 770, 11361, 2393, 318, 636, 286, 9485, 37, 3620, 11, 262, 2438, 326, 48159, 262, 1492, 25, 220, 1303, 201, 198, 2, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, ...
1.885821
1,340
# Desafio 4 - Aula 6 : Ler o tipo primitivo daquilo que foi digitado e dizer todas as infos pertinentes. a = input('Digite algo: ') print('\033[31mO tipo primitivo de {} é: '.format(a), type(a)) print('\033[32m{} é um numero?'.format(a), a.isnumeric()) print('\033[33m{} é alfabético?'.format(a), a.isalpha()) print('\...
[ 2, 2935, 1878, 952, 604, 532, 317, 4712, 718, 1058, 31831, 267, 8171, 78, 2684, 270, 23593, 12379, 421, 18526, 8358, 11511, 72, 16839, 4533, 304, 288, 7509, 284, 67, 292, 355, 1167, 418, 35268, 274, 13, 198, 198, 64, 796, 5128, 1078...
2.357664
274
from enum import Enum bohr2ang = 0.5291772105638411 HARTREE_TO_EV = 27.211386024367243 # equal to ase.units.Hartree EV_TO_JOULE = 1.6021766208e-19 # equal to ase.units._e (electron charge) JOULE_TO_KCAL = 1 / 4184. ...
[ 6738, 33829, 1330, 2039, 388, 198, 198, 65, 1219, 81, 17, 648, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 796, 657, 13, 49721, 1558, 4761, 940, 3980, 22842, 1157, 198, 39, 7227, 11587, 62, 10468, 62, 20114, 220, 220, 220, 2...
1.598394
498
import os import packer
[ 11748, 28686, 198, 11748, 2353, 263, 198 ]
3.428571
7
"""copy database structure from sandbox Revision ID: b28851e1a2ea Revises: Create Date: 2021-11-04 12:51:53.151314 """ import sqlalchemy as sa from alembic import op # revision identifiers, used by Alembic. revision = "b28851e1a2ea" down_revision = None branch_labels = None depends_on = None
[ 37811, 30073, 6831, 4645, 422, 35204, 198, 198, 18009, 1166, 4522, 25, 275, 25270, 4349, 68, 16, 64, 17, 18213, 198, 18009, 2696, 25, 198, 16447, 7536, 25, 33448, 12, 1157, 12, 3023, 1105, 25, 4349, 25, 4310, 13, 1314, 1485, 1415, 1...
2.733945
109
# -*- coding: utf-8 -*- # Generated by Django 1.10.1 on 2016-09-17 14:34 from __future__ import unicode_literals import colorfield.fields from django.conf import settings from django.db import migrations, models import django.db.models.deletion import mptt.fields
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 2, 2980, 515, 416, 37770, 352, 13, 940, 13, 16, 319, 1584, 12, 2931, 12, 1558, 1478, 25, 2682, 198, 6738, 11593, 37443, 834, 1330, 28000, 1098, 62, 17201, 874, 198, ...
2.955556
90
import unittest from tunepy2 import Genome from tunepy2.interfaces.stubs import PassThroughConvergenceCriterion, PassThroughGenomeFactory from tunepy2.optimizers import BasicOptimizer if __name__ == '__main__': unittest.main()
[ 11748, 555, 715, 395, 198, 198, 6738, 6278, 538, 88, 17, 1330, 5215, 462, 198, 6738, 6278, 538, 88, 17, 13, 3849, 32186, 13, 301, 23161, 1330, 6251, 15046, 3103, 332, 12745, 18559, 28019, 11, 6251, 15046, 13746, 462, 22810, 198, 6738,...
3.012821
78
__author__ = 'Alex Berriman <aberriman@formcorp.com.au>' import sys import formcorp.api # FormCorp configurations public_key = '' private_key = '' form_id = 0 # Initialise the module formcorp.api.init(private_key, public_key) # Set the form id formcorp.api.set_form_id(form_id) print "==============================...
[ 834, 9800, 834, 796, 705, 15309, 4312, 3036, 272, 1279, 27359, 3036, 272, 31, 687, 10215, 79, 13, 785, 13, 559, 29, 6, 198, 198, 11748, 25064, 198, 11748, 1296, 10215, 79, 13, 15042, 198, 198, 2, 5178, 45680, 25412, 198, 11377, 62, ...
3.059341
455
from pieces import Piece
[ 6738, 5207, 1330, 27053, 198 ]
5
5
#!/usr/bin/env python import mcpi.minecraft as minecraft from lib import server mc = minecraft.Minecraft.create(server.address) mc.player.setPos(0,3,4) print("hello") mc.setBlock(0,0,0,3,0) print(mc.getBlock(0,0,0)) pos = mc.player.getPos() pos.x = pos.x - 10 print(mc.player.getPitch()) print(mc.player.getRotation())...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 198, 198, 11748, 285, 13155, 72, 13, 17761, 355, 6164, 3323, 198, 6738, 9195, 1330, 4382, 198, 198, 23209, 796, 6164, 3323, 13, 39194, 13, 17953, 7, 15388, 13, 21975, 8, 198, 23209, 13, 7...
2.485915
142
''' Módulo Collection - Deque Podemos dizer que o deque é uma lista de alta performance. ''' from collections import deque # Criando deques deq = deque('geek') # adicionando elementos no deque deq.append('y') print(deq) deq.appendleft('k') print(deq) print(deq.pop()) # remove o ultimo elemento print(deq.pople...
[ 7061, 6, 198, 44, 10205, 67, 43348, 12251, 532, 1024, 4188, 198, 198, 41565, 368, 418, 288, 7509, 8358, 267, 390, 4188, 38251, 334, 2611, 1351, 64, 390, 5988, 64, 2854, 13, 198, 198, 7061, 6, 198, 198, 6738, 17268, 1330, 390, 4188, ...
2.552448
143
''' A script that downloads all the pictures from twitter links given in a file. Author: Bunyamin Senturk Inspired by: Krishanu Konar ''' import API_Tokens as t from tweepy import OAuthHandler, API import os import wget import time import progressbar if __name__ == '__main__': main()
[ 7061, 6, 198, 32, 4226, 326, 21333, 477, 262, 5986, 422, 17044, 6117, 1813, 287, 257, 2393, 13, 198, 198, 13838, 25, 28515, 88, 5669, 11352, 333, 74, 198, 41502, 1202, 416, 25, 31372, 42357, 17431, 283, 198, 198, 7061, 6, 198, 198, ...
3.148936
94
import discord import datetime import random import asyncio import colorsys ### Embed generater for when a member joins ### to be posted in archive #==================== Massive perms embeds #==================== Owner commands @asyncio.coroutine #==================== Functions ...
[ 11748, 36446, 201, 198, 11748, 4818, 8079, 201, 198, 11748, 4738, 201, 198, 11748, 30351, 952, 201, 198, 11748, 7577, 893, 201, 198, 201, 198, 21017, 13302, 276, 1152, 729, 329, 618, 257, 2888, 15449, 201, 198, 21017, 284, 307, 4481, ...
2.506073
247
# Given two integers dividend and divisor, divide two integers without using multiplication, division and mod operator. # Return the quotient after dividing dividend by divisor. # The integer division should truncate toward zero. # Example 1: # Input: dividend = 10, divisor = 3 # Output: 3 # Example 2: # Input: d...
[ 198, 2, 11259, 734, 37014, 30494, 290, 2659, 271, 273, 11, 14083, 734, 37014, 1231, 1262, 48473, 11, 7297, 290, 953, 10088, 13, 198, 198, 2, 8229, 262, 23611, 1153, 706, 27241, 30494, 416, 2659, 271, 273, 13, 198, 198, 2, 383, 18253...
3.37037
135
#!/usr/bin/env python3 ################################################################ # Example of using AlphaVantage API # Sign up to get an API key and import it # This script currently just gets the 5 latest values for bitcoin but can do others as well # will eventually replace my powershell script at https://aut...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 18, 198, 198, 29113, 29113, 198, 2, 17934, 286, 1262, 12995, 53, 36403, 7824, 198, 2, 5865, 510, 284, 651, 281, 7824, 1994, 290, 1330, 340, 198, 2, 770, 4226, 3058, 655, 3011, 262, 642, ...
3.004464
672
# # This file is part of pysnmp software. # # Copyright (c) 2005-2018, Ilya Etingof <etingof@gmail.com> # License: http://snmplabs.com/pysnmp/license.html # # PySNMP MIB module RFC1158-MIB (http://snmplabs.com/pysnmp) # ASN.1 source http://mibs.snmplabs.com:80/asn1/RFC1158-MIB # Produced by pysmi-0.1.3 at Mon Apr 17 12...
[ 2, 198, 2, 770, 2393, 318, 636, 286, 279, 893, 77, 3149, 3788, 13, 198, 2, 198, 2, 15069, 357, 66, 8, 5075, 12, 7908, 11, 49804, 64, 412, 889, 1659, 1279, 13629, 1659, 31, 14816, 13, 785, 29, 198, 2, 13789, 25, 2638, 1378, 161...
2.479245
530
#!/usr/bin/env python3 # Copyright (c) 2016 The Bitcoin Core developers # Distributed under the MIT/X11 software license, see the accompanying # file COPYING or http://www.opensource.org/licenses/mit-license.php. from test_framework.test_framework import BitcoinTestFramework from test_framework.util import * import cop...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 18, 198, 2, 15069, 357, 66, 8, 1584, 383, 6185, 7231, 6505, 198, 2, 4307, 6169, 739, 262, 17168, 14, 55, 1157, 3788, 5964, 11, 766, 262, 19249, 198, 2, 2393, 27975, 45761, 393, 2638, 13...
2.341997
731
import itertools import json from typing import Dict, List from overrides import overrides import numpy as np import copy from allennlp.data.dataset_readers.dataset_reader import DatasetReader from allennlp.common.file_utils import cached_path from allennlp.data import TokenIndexer, Tokenizer from allennlp.data.insta...
[ 11748, 340, 861, 10141, 198, 11748, 33918, 198, 6738, 19720, 1330, 360, 713, 11, 7343, 198, 6738, 23170, 1460, 1330, 23170, 1460, 198, 198, 11748, 299, 32152, 355, 45941, 198, 11748, 4866, 198, 198, 6738, 477, 1697, 34431, 13, 7890, 13,...
2.693078
1,098
# pylint: disable=redefined-outer-name, missing-function-docstring, unused-import import pytest from pyspark.sql import functions as sf from lightautoml.automl.presets.tabular_presets import TabularAutoML from replay.models import ALSWrap, KNN, PopRec, LightFMWrap from replay.scenarios.two_stages.feature_processor i...
[ 2, 279, 2645, 600, 25, 15560, 28, 445, 18156, 12, 39605, 12, 3672, 11, 4814, 12, 8818, 12, 15390, 8841, 11, 21958, 12, 11748, 198, 198, 11748, 12972, 9288, 198, 6738, 279, 893, 20928, 13, 25410, 1330, 5499, 355, 264, 69, 198, 198, ...
2.942731
227
""" Showcase ======== .. codeauthor:: cmdvmd <vcmd43@gmail.com> A program to show all widgets in Kivy Cupertino """ __author__ = 'Eduardo Mendes' # dunossauro on GitHub <https://github.com/dunossauro> __maintainer__ = 'cmdvmd' from kivycupertino.app import CupertinoApp from kivycupertino.uix.bar import CupertinoNa...
[ 37811, 198, 15307, 7442, 198, 2559, 198, 198, 492, 2438, 9800, 3712, 23991, 85, 9132, 1279, 28435, 9132, 3559, 31, 14816, 13, 785, 29, 198, 198, 32, 1430, 284, 905, 477, 40803, 287, 509, 452, 88, 14496, 11766, 2879, 198, 37811, 198, ...
2.816279
430
from .Oiio import Oiio class Exr(Oiio): """ Exr crawler. """ @classmethod def test(cls, pathHolder, parentCrawler): """ Test if the path holder contains an exr file. """ if not super(Exr, cls).test(pathHolder, parentCrawler): return False return...
[ 6738, 764, 46, 72, 952, 1330, 440, 72, 952, 198, 198, 4871, 1475, 81, 7, 46, 72, 952, 2599, 198, 220, 220, 220, 37227, 198, 220, 220, 220, 1475, 81, 27784, 1754, 13, 198, 220, 220, 220, 37227, 628, 220, 220, 220, 2488, 4871, 243...
2.111111
189
from owlready2 import * from UInterface import userMenu, clear from Person import AGPerson, extractPerson from Location import extractLocation from Transportation import extractTransportation texts = {True:{ "present":{ "companionsbegin":"Alright! Tell me about who's accompanying you (if an...
[ 6738, 39610, 1493, 17, 1330, 1635, 198, 6738, 471, 39317, 1330, 2836, 23381, 11, 1598, 198, 6738, 7755, 1330, 13077, 15439, 11, 7925, 15439, 198, 6738, 13397, 1330, 7925, 14749, 198, 6738, 15198, 1330, 7925, 8291, 10189, 198, 198, 5239, ...
2.576087
460
#!/usr/bin/env python # -*- coding: utf-8 -*- # @Time: 2019/9/27 10:12 # @Author: Mecthew import tensorflow as tf from tensorflow.python.keras import optimizers from tensorflow.python.keras.layers import (SpatialDropout1D, Input, GlobalMaxPool1D,Bidirectional,GlobalAvgPool1D,concatenate,CuDNNGRU, ...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 198, 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 2, 2488, 7575, 25, 220, 220, 220, 13130, 14, 24, 14, 1983, 838, 25, 1065, 198, 2, 2488, 13838, 25, 220, 337, 478, ...
2.392765
387
""".""" from .landing import landing_handler
[ 37811, 526, 15931, 198, 6738, 764, 1044, 278, 1330, 9581, 62, 30281, 198 ]
3.461538
13
import re if __name__ == '__main__': main()
[ 11748, 302, 628, 628, 198, 198, 361, 11593, 3672, 834, 6624, 705, 834, 12417, 834, 10354, 198, 220, 220, 220, 1388, 3419, 198 ]
2.304348
23
from sensor.people_counter import PeopleCounter from sensor.vl53l1x_sensor import VL53L1XSensor import logging counter = PeopleCounter(VL53L1XSensor()) peopleCount = 0 logging.getLogger().setLevel(logging.INFO) counter.hookCounting(countChange) counter.run()
[ 6738, 12694, 13, 15332, 62, 24588, 1330, 4380, 31694, 198, 6738, 12694, 13, 19279, 4310, 75, 16, 87, 62, 82, 22854, 1330, 569, 43, 4310, 43, 16, 55, 47864, 198, 11748, 18931, 198, 198, 24588, 796, 4380, 31694, 7, 47468, 4310, 43, 16...
3.069767
86
import logging import sys import unittest import appium import mock from AppiumLibrary.keywords import _ApplicationManagementKeywords from webdriverremotemock import WebdriverRemoteMock logger = logging.getLogger() stream_handler = logging.StreamHandler(sys.stdout) logger.addHandler(stream_handler) stream_handler = l...
[ 11748, 18931, 198, 11748, 25064, 198, 11748, 555, 715, 395, 198, 11748, 598, 1505, 198, 11748, 15290, 198, 198, 6738, 2034, 1505, 23377, 13, 2539, 10879, 1330, 4808, 23416, 48032, 9218, 10879, 198, 6738, 3992, 26230, 2787, 313, 368, 735, ...
3.495495
111
# coding=utf8 # Declaração vetor1 = [] vetor2 = [] soma = [] #Entrada for i in range (0, 10): num1 = int (input("Digite um número para o primeiro vetor: ")) vetor1.append(num1) num2 = int (input("Digite um número para o segundo vetor: ")) vetor2.append(num2) soma.append(num1 + num2) #Saída for...
[ 2, 19617, 28, 40477, 23, 198, 2, 16691, 3301, 16175, 28749, 198, 303, 13165, 16, 796, 17635, 198, 303, 13165, 17, 796, 17635, 198, 82, 6086, 796, 17635, 198, 198, 2, 14539, 81, 4763, 198, 1640, 1312, 287, 2837, 357, 15, 11, 838, 2...
2.084848
165
# coding: utf-8 import os import datetime from snaql.factory import Snaql try: import unittest2 as unittest except ImportError: import unittest
[ 2, 19617, 25, 3384, 69, 12, 23, 198, 11748, 28686, 198, 11748, 4818, 8079, 198, 6738, 264, 2616, 13976, 13, 69, 9548, 1330, 311, 2616, 13976, 198, 28311, 25, 198, 220, 220, 220, 1330, 555, 715, 395, 17, 355, 555, 715, 395, 198, 16...
2.732143
56
import argparse import os from extract_feature import process_extract_feature from reader import read_constant from tools import folders_set def ParseArgs(TYPE_list,apk_path,apis_path): # 运行时添加的参数 ''' 这里未来可能会改,现在先设定为二分类 ''' Args = argparse.ArgumentParser("ThorDroid") Args.add_argument("--Mal...
[ 11748, 1822, 29572, 198, 11748, 28686, 198, 6738, 7925, 62, 30053, 1330, 1429, 62, 2302, 974, 62, 30053, 198, 6738, 9173, 1330, 1100, 62, 9979, 415, 198, 6738, 4899, 1330, 24512, 62, 2617, 628, 198, 198, 4299, 2547, 325, 42035, 7, 252...
1.968137
408
from ..connection import Connection, HttpRequestsImpl from ..app import App import key_constants as constant
[ 6738, 11485, 38659, 1330, 26923, 11, 367, 29281, 16844, 3558, 29710, 198, 6738, 11485, 1324, 1330, 2034, 198, 11748, 1994, 62, 9979, 1187, 355, 6937, 628 ]
4.230769
26
"""Store any additional test parameters to PARAMETERS dictionary. When pool of test cases is used, PARAMETERS can be used to store DUT type specific parameters""" PARAMETERS = {"param1": "this is param1", "param2": "and this is param2"}
[ 37811, 22658, 597, 3224, 1332, 10007, 284, 29463, 2390, 2767, 4877, 22155, 13, 198, 2215, 5933, 286, 1332, 2663, 318, 973, 11, 29463, 2390, 2767, 4877, 460, 307, 973, 284, 3650, 198, 35, 3843, 2099, 2176, 10007, 37811, 198, 198, 27082, ...
3.552239
67
#blockchain_6 and upwards import hashlib as hl import json # __all__ = ['hash_string_256', 'hash_block'] def hash_block(block): ''' hashlib.sha256(value) where value is a string, so we cannot pass the block value directly, because it's a dictionary json.dumps converts the dictionary type to string bec...
[ 2, 9967, 7983, 62, 21, 290, 21032, 198, 198, 11748, 12234, 8019, 355, 289, 75, 198, 11748, 33918, 198, 198, 2, 11593, 439, 834, 796, 37250, 17831, 62, 8841, 62, 11645, 3256, 705, 17831, 62, 9967, 20520, 628, 198, 4299, 12234, 62, 99...
3.203279
305
#!/usr/bin/env python import sys from setuptools import setup, find_packages from BioFtParse import __version__ requirements = ["Bio", "pandas", "argparse"] setup( name='BioFtParse', author='xu shuangbin', author_email='xshuangbin@163.com', version=__version__, url='http://github.com/xiangpin/', ...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 198, 11748, 25064, 198, 6738, 900, 37623, 10141, 1330, 9058, 11, 1064, 62, 43789, 198, 6738, 16024, 37, 83, 10044, 325, 1330, 11593, 9641, 834, 198, 198, 8897, 18883, 796, 14631, 42787, 1600,...
2.520833
336
from django.urls import path from book.views import index urlpatterns = [ path('home/', index) ]
[ 6738, 42625, 14208, 13, 6371, 82, 1330, 3108, 198, 6738, 1492, 13, 33571, 1330, 6376, 628, 198, 6371, 33279, 82, 796, 685, 198, 220, 220, 220, 3108, 10786, 11195, 14, 3256, 6376, 8, 198, 60, 198 ]
2.861111
36
#!/usr/bin/python # -*- coding: utf-8 -*- import argparse import os import sys from imagerobot import ImageRobot from searchrobot import SearchRobot from videorobot import VideoRobot from uploadrobot import UploadRobot from urllib.error import HTTPError if __name__ == "__main__": search_term = input("Wikipedia se...
[ 2, 48443, 14629, 14, 8800, 14, 29412, 198, 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 198, 11748, 1822, 29572, 198, 11748, 28686, 198, 11748, 25064, 198, 6738, 545, 3536, 672, 313, 1330, 7412, 14350, 313, 198, 67...
2.52364
1,121
# -*- coding: utf-8 -*- # python-holidays # --------------- # A fast, efficient Python library for generating country, province and state # specific sets of holidays on the fly. It aims to make determining whether a # specific date is a holiday as fast and flexible as possible. # # Author: ryanss <ryanssdev@icl...
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 198, 2, 220, 21015, 12, 3937, 13842, 198, 2, 220, 220, 24305, 198, 2, 220, 317, 3049, 11, 6942, 11361, 5888, 329, 15453, 1499, 11, 8473, 290, 1181, 198, 2, 220, 2176...
3.019231
260