content
stringlengths
1
1.04M
input_ids
listlengths
1
774k
ratio_char_token
float64
0.38
22.9
token_count
int64
1
774k
import numpy as np import logging OptimizerList = {'SGD': SGD, 'ADAGRAD': ADAGRAD, 'ADADELTA': ADADELTA}
[ 11748, 299, 32152, 355, 45941, 198, 11748, 18931, 198, 198, 27871, 320, 7509, 8053, 796, 1391, 6, 38475, 35, 10354, 26147, 35, 11, 705, 2885, 4760, 49, 2885, 10354, 5984, 4760, 49, 2885, 11, 705, 2885, 2885, 3698, 5603, 10354, 5984, 2...
2.304348
46
from collections import MutableMapping
[ 6738, 17268, 1330, 13859, 540, 44, 5912, 198 ]
4.875
8
import ConfigParser import datetime import threading import time from slackclient import SlackClient from responses import bot Config = ConfigParser.ConfigParser() Config.read("credentials.ini") token = Config.get('Slack_Creds', 'token') print "token: " + token sc = SlackClient(token) robot = bot(sc, token) print "...
[ 11748, 17056, 46677, 198, 11748, 4818, 8079, 198, 11748, 4704, 278, 198, 11748, 640, 198, 198, 6738, 30740, 16366, 1330, 36256, 11792, 198, 6738, 9109, 1330, 10214, 198, 198, 16934, 796, 17056, 46677, 13, 16934, 46677, 3419, 198, 16934, 1...
2.40668
509
""" (c) 2017 DigitalOcean 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 distribut...
[ 37811, 198, 7, 66, 8, 2177, 10231, 46607, 198, 198, 26656, 15385, 739, 262, 24843, 13789, 11, 10628, 362, 13, 15, 357, 1169, 366, 34156, 15341, 198, 5832, 743, 407, 779, 428, 2393, 2845, 287, 11846, 351, 262, 13789, 13, 198, 1639, 7...
2.081573
5,774
class User: """ Class that generates new instances of Users. """ user_list = [] # Empty user list def save_user(self): ''' This method saves User objects into user_list ''' User.user_list.append(self) @classmethod def user_exist(cls,username,p...
[ 4871, 11787, 25, 198, 220, 220, 220, 37227, 198, 220, 220, 220, 220, 220, 220, 220, 5016, 326, 18616, 649, 10245, 286, 18987, 13, 198, 220, 220, 220, 37227, 198, 220, 220, 220, 220, 220, 220, 220, 198, 220, 220, 220, 2836, 62, 486...
2.234597
422
#!/usr/bin/env python import argparse import document_pb2 import struct import gzip import sys if __name__ == '__main__': reader = DocumentStreamReader(parse_command_line().files) for doc in reader: print "%s\t%d bytes" % (doc.url, len(doc.text))
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 198, 11748, 1822, 29572, 198, 11748, 3188, 62, 40842, 17, 198, 11748, 2878, 198, 11748, 308, 13344, 198, 11748, 25064, 628, 628, 198, 361, 11593, 3672, 834, 6624, 705, 834, 12417, 834, 10354,...
2.72449
98
import pytest from shakedown import * import sdk_cmd as cmd import sdk_install as install import sdk_plan as plan import sdk_tasks as tasks import sdk_marathon as marathon import time import json from tests.config import ( PACKAGE_NAME ) NUM_HELLO = 2 NUM_WORLD = 3 secret_content_default = "hello-world-secret-d...
[ 11748, 12972, 9288, 198, 6738, 427, 25817, 1330, 1635, 198, 198, 11748, 264, 34388, 62, 28758, 355, 23991, 198, 11748, 264, 34388, 62, 17350, 355, 2721, 198, 11748, 264, 34388, 62, 11578, 355, 1410, 198, 11748, 264, 34388, 62, 83, 6791,...
2.148615
794
"""Helper functions for converting beginning whitesspace characters""" import argparse from collections import deque from typing import Callable, List def add_tab_size_option(parser: argparse.ArgumentParser) -> argparse.ArgumentParser: """Add the `--tab-size` option""" parser.add_argument( "--tab-siz...
[ 37811, 47429, 5499, 329, 23202, 3726, 20542, 408, 10223, 3435, 37811, 198, 198, 11748, 1822, 29572, 198, 6738, 17268, 1330, 390, 4188, 198, 6738, 19720, 1330, 4889, 540, 11, 7343, 628, 198, 4299, 751, 62, 8658, 62, 7857, 62, 18076, 7, ...
2.722426
544
# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! """Client and server classes corresponding to protobuf-defined services.""" import grpc from buildstream._protos.build.bazel.remote.asset.v1 import remote_asset_pb2 as build_dot_bazel_dot_remote_dot_asset_dot_v1_dot_remote__asset__pb2 class FetchS...
[ 2, 2980, 515, 416, 262, 308, 49, 5662, 11361, 8435, 17050, 13877, 13, 8410, 5626, 48483, 0, 198, 37811, 11792, 290, 4382, 6097, 11188, 284, 1237, 672, 3046, 12, 23211, 2594, 526, 15931, 198, 11748, 1036, 14751, 198, 198, 6738, 1382, 5...
2.944543
3,931
import logging import time import typing class ShutdownMessage(Message): """This message tells the observers that they should save their data."""
[ 11748, 18931, 198, 11748, 640, 198, 11748, 19720, 628, 628, 628, 198, 198, 4871, 40411, 12837, 7, 12837, 2599, 198, 220, 220, 220, 37227, 1212, 3275, 4952, 262, 17984, 326, 484, 815, 3613, 511, 1366, 526, 15931, 198 ]
4.131579
38
# ======================================== # [] File Name : model.py # # [] Creation Date : January 2018 # # [] Created By : Ali Gholami (aligholami7596@gmail.com) # ======================================== """ Training and Validation on notMNIST Dataset Fully connected network implementation with tensorflow "...
[ 2, 46111, 1421, 18604, 198, 2, 17635, 9220, 6530, 1058, 2746, 13, 9078, 198, 2, 198, 2, 17635, 21582, 7536, 1058, 3269, 2864, 198, 2, 198, 2, 17635, 15622, 2750, 1058, 12104, 402, 3937, 6277, 357, 282, 394, 349, 6277, 2425, 4846, 31...
2.471404
1,731
import re
[ 11748, 302, 628, 628 ]
3.25
4
""" Tests on the swap test in the circuit_primitives module """ import numpy as np import pytest from unittest.mock import patch from pyquil import Program from pyquil.gates import CSWAP, H from grove.circuit_primitives.swap import (swap_circuit_generator, run_swap_test, ...
[ 37811, 198, 51, 3558, 319, 262, 16075, 1332, 287, 262, 10349, 62, 19795, 20288, 8265, 198, 37811, 198, 11748, 299, 32152, 355, 45941, 198, 11748, 12972, 9288, 198, 6738, 555, 715, 395, 13, 76, 735, 1330, 8529, 198, 6738, 12972, 421, 3...
2.030612
1,176
import os import cv2 import numpy as np import tensorflow as tf from tensorflow.keras import backend as K from tensorflow.keras.applications import VGG19 from tensorflow.keras.layers import MaxPooling2D #~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~# # Settings #~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~...
[ 11748, 28686, 198, 11748, 269, 85, 17, 198, 11748, 299, 32152, 355, 45941, 198, 11748, 11192, 273, 11125, 355, 48700, 198, 6738, 11192, 273, 11125, 13, 6122, 292, 1330, 30203, 355, 509, 198, 6738, 11192, 273, 11125, 13, 6122, 292, 13, ...
2.45158
2,974
#!/usr/bin/env python3 import argparse import functools from pathlib import Path from datetime import datetime from collections import namedtuple import numpy as np import yaml from box import Box import jax from jax import jit, vmap, pmap, grad, value_and_grad import jax.numpy as jnp from jax.tree_util import regist...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 18, 198, 198, 11748, 1822, 29572, 198, 11748, 1257, 310, 10141, 198, 6738, 3108, 8019, 1330, 10644, 198, 6738, 4818, 8079, 1330, 4818, 8079, 198, 6738, 17268, 1330, 3706, 83, 29291, 198, 198,...
2.941176
323
from pyexpat import model from django import forms from .models import Profile, Images, Comments
[ 6738, 12972, 1069, 8071, 1330, 2746, 198, 6738, 42625, 14208, 1330, 5107, 198, 6738, 764, 27530, 1330, 13118, 11, 5382, 11, 19502 ]
4.363636
22
# Convertendo polegadas em centimetros polegadas = float(input('Entre com o tamanho em polegadas: ')) centimetros = polegadas * 2.54 print(centimetros)
[ 2, 38240, 31110, 745, 1455, 38768, 795, 1247, 38813, 4951, 198, 198, 7501, 1455, 38768, 796, 12178, 7, 15414, 10786, 14539, 260, 401, 267, 256, 10546, 8873, 795, 745, 1455, 38768, 25, 705, 4008, 198, 1087, 38813, 4951, 796, 745, 1455, ...
2.867925
53
# coding: utf-8 import sys
[ 2, 19617, 25, 3384, 69, 12, 23, 198, 198, 11748, 25064, 198 ]
2.333333
12
# Copyright (c) Facebook, Inc. and its affiliates. # All rights reserved. # # This source code is licensed under the license found in the # LICENSE file in the root directory of this source tree. # # This file has been modified from the original repository's version in the following ways: # 1. The model loading logic u...
[ 2, 15069, 357, 66, 8, 3203, 11, 3457, 13, 290, 663, 29116, 13, 198, 2, 1439, 2489, 10395, 13, 198, 2, 198, 2, 770, 2723, 2438, 318, 11971, 739, 262, 5964, 1043, 287, 262, 198, 2, 38559, 24290, 2393, 287, 262, 6808, 8619, 286, 42...
2.837048
2,737
#!/usr/bin/env python # coding: utf-8 # In[7]: import pandas as pd import numpy as np from os.path import dirname, join from bokeh.io import show, output_notebook,output_file, show, save, curdoc, output_notebook, export_png from bokeh.plotting import figure, output_file, show,save from bokeh.models.widgets import P...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 198, 2, 19617, 25, 3384, 69, 12, 23, 198, 198, 2, 554, 58, 22, 5974, 628, 198, 11748, 19798, 292, 355, 279, 67, 198, 11748, 299, 32152, 355, 45941, 198, 198, 6738, 28686, 13, 6978, 1330...
2.426357
1,032
import torch import torch.nn from detectron2.export.tensorrt import TensorRTModel from detectron2.utils.logger import setup_logger from ops import export_onnx, get_inputs, SimpleTracer if __name__ == '__main__': logger = setup_logger() logger.info("example: BBoxTransform") m = BBoxTransform() data...
[ 11748, 28034, 198, 11748, 28034, 13, 20471, 198, 6738, 4886, 1313, 17, 13, 39344, 13, 83, 22854, 17034, 1330, 309, 22854, 14181, 17633, 198, 6738, 4886, 1313, 17, 13, 26791, 13, 6404, 1362, 1330, 9058, 62, 6404, 1362, 198, 198, 6738, ...
2.43361
482
from setuptools import setup, find_packages setup( name="subsevenzip", version="0.1", description="7-Zip decompressor", author="Daniel Svensson", author_email="dsvensson@gmail.com", license="ISC", packages=find_packages(), test_suite="nose.collector", setup_requires=[ "cover...
[ 6738, 900, 37623, 10141, 1330, 9058, 11, 1064, 62, 43789, 198, 198, 40406, 7, 198, 220, 220, 220, 1438, 2625, 7266, 26548, 13344, 1600, 198, 220, 220, 220, 2196, 2625, 15, 13, 16, 1600, 198, 220, 220, 220, 6764, 2625, 22, 12, 41729,...
2.37234
188
#!/usr/bin/env python """Base module for end to end tests that run flows on clients.""" import re import time import traceback import unittest from grr.lib import aff4 from grr.lib import client_index from grr.lib import config_lib from grr.lib import data_store from grr.lib import flow_utils from grr.lib import r...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 198, 37811, 14881, 8265, 329, 886, 284, 886, 5254, 326, 1057, 15623, 319, 7534, 526, 15931, 628, 198, 198, 11748, 302, 198, 11748, 640, 198, 11748, 12854, 1891, 198, 11748, 555, 715, 395, 6...
2.687611
2,244
# Copyright 2018 Amazon.com, Inc. or its affiliates. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"). # You may not use this file except in compliance with the License. # A copy of the License is located at # # http://www.apache.org/licenses/LICENSE-2.0 # # or in the "license...
[ 2, 15069, 2864, 6186, 13, 785, 11, 3457, 13, 393, 663, 29116, 13, 1439, 6923, 33876, 13, 198, 2, 198, 2, 49962, 739, 262, 24843, 13789, 11, 10628, 362, 13, 15, 357, 1169, 366, 34156, 11074, 198, 2, 921, 743, 407, 779, 428, 2393, ...
2.705548
2,109
# Copyright 2018 Capital One Services, 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 agreed to in...
[ 2, 15069, 2864, 9747, 1881, 6168, 11, 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, 2393, 2845, 287, 11846, 351, 262, 13789, 13, 198, 2...
2.788823
2,022
ANNOTATION = "annotation" GRIDLINE = "gridline" SHAPE = "shape" SHAPE_TEXT = "shapetext" EDGE = "edge" LINK_LABEL = "linklabel" WIRELESS_EDGE = "wireless" ANTENNA = "antenna" NODE_LABEL = "nodename" NODE = "node" WALLPAPER = "wallpaper" SELECTION = "selectednodes" MARKER = "marker" ORGANIZE_TAGS = [ WALLPAPER, ...
[ 1565, 11929, 6234, 796, 366, 1236, 14221, 1, 198, 10761, 2389, 24027, 796, 366, 25928, 1370, 1, 198, 9693, 45721, 796, 366, 43358, 1, 198, 9693, 45721, 62, 32541, 796, 366, 1477, 499, 316, 2302, 1, 198, 1961, 8264, 796, 366, 14907, ...
1.887906
339
"""Sun2 Sensor.""" from datetime import datetime, time, timedelta import logging import voluptuous as vol from homeassistant.components.sensor import PLATFORM_SCHEMA from homeassistant.const import ( CONF_ELEVATION, CONF_LATITUDE, CONF_LONGITUDE, CONF_MONITORED_CONDITIONS, CONF_TIME_ZONE, DEVI...
[ 37811, 16012, 17, 35367, 526, 15931, 198, 6738, 4818, 8079, 1330, 4818, 8079, 11, 640, 11, 28805, 12514, 198, 11748, 18931, 198, 198, 11748, 2322, 37623, 5623, 355, 2322, 198, 198, 6738, 1363, 562, 10167, 13, 5589, 3906, 13, 82, 22854, ...
2.322757
3,656
#!/usr/bin/env python3 """ Allable """ from applications.database.table import Table from .base import Base from .buildable import Buildable from .jsonable import Jsonable if __name__ == '__main__': from argparse import ArgumentParser parser = ArgumentParser() parser.add_argument('-a', '--arg1', ...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 18, 198, 37811, 198, 3237, 540, 198, 37811, 198, 6738, 5479, 13, 48806, 13, 11487, 1330, 8655, 198, 198, 6738, 764, 8692, 1330, 7308, 198, 6738, 764, 11249, 540, 1330, 10934, 540, 198, 6738...
2.360976
205
import sys from distutils.version import LooseVersion from unittest import skipIf, skipUnless from django import VERSION as DJANGO_VERSION from django.urls import clear_url_caches import cms from cms.api import add_plugin, create_page from cms.appresolver import clear_app_resolvers from cms.test_utils.testcases impor...
[ 11748, 25064, 198, 6738, 1233, 26791, 13, 9641, 1330, 6706, 577, 14815, 198, 6738, 555, 715, 395, 1330, 14267, 1532, 11, 14267, 28042, 198, 198, 6738, 42625, 14208, 1330, 44156, 2849, 355, 13004, 1565, 11230, 62, 43717, 198, 6738, 42625, ...
2.92638
163
#!/usr/bin/env python3 import sys from . import deepl if __name__ == '__main__': try: main() except KeyboardInterrupt: pass
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 18, 198, 11748, 25064, 198, 198, 6738, 764, 1330, 390, 68, 489, 628, 198, 198, 361, 11593, 3672, 834, 6624, 705, 834, 12417, 834, 10354, 198, 220, 220, 220, 1949, 25, 198, 220, 220, 220, ...
2.235294
68
#!/usr/bin/env python import csv import os import rospy import uuid from babyrobot.lib import utils as br_utils from babyrobot.speech_features import config as sf_config from babyrobot_msgs.msg import SpeechFeatures, Feature from babyrobot_msgs.srv import SpeechFeatureExtraction from babyrobot_msgs.srv import SpeechFe...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 198, 11748, 269, 21370, 198, 11748, 28686, 198, 11748, 686, 2777, 88, 198, 11748, 334, 27112, 198, 198, 6738, 5156, 305, 13645, 13, 8019, 1330, 3384, 4487, 355, 865, 62, 26791, 198, 6738, 5...
2.250363
1,378
total = 0 with open("input.txt") as f: total = sum(calculate_paper(gift) for gift in f.readlines()) print(total)
[ 201, 198, 201, 198, 201, 198, 201, 198, 23350, 796, 657, 201, 198, 4480, 1280, 7203, 15414, 13, 14116, 4943, 355, 277, 25, 201, 198, 220, 220, 220, 2472, 796, 2160, 7, 9948, 3129, 378, 62, 20189, 7, 70, 2135, 8, 329, 6979, 287, ...
2.220339
59
# -*- coding: utf-8 -*- # (c) [2014] LinkedIn Corp. All rights reserved. # Licensed under the Apache License, Version 2.0 (the "License");
 # you may not use this file except in compliance with the License.
 # You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 # Unless required by app...
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 198, 2, 357, 66, 8, 685, 4967, 60, 27133, 11421, 13, 1439, 2489, 10395, 13, 198, 2, 49962, 739, 262, 24843, 13789, 11, 10628, 362, 13, 15, 357, 1169, 366, 34156, 153...
3.111538
260
from vve_cli.main import run __version__ = "0.0.1" __all__ = ["run"]
[ 6738, 410, 303, 62, 44506, 13, 12417, 1330, 1057, 201, 198, 201, 198, 834, 9641, 834, 796, 366, 15, 13, 15, 13, 16, 1, 201, 198, 834, 439, 834, 796, 14631, 5143, 8973, 201, 198 ]
2.114286
35
from . import driver from ... import exceptions def Factory(settings): """@todo docstring""" return driver.DBDriver(settings)
[ 6738, 764, 1330, 4639, 198, 6738, 2644, 1330, 13269, 198, 198, 4299, 19239, 7, 33692, 2599, 198, 220, 220, 220, 37227, 31, 83, 24313, 2205, 8841, 37811, 198, 220, 220, 220, 1441, 4639, 13, 11012, 32103, 7, 33692, 8 ]
3.435897
39
#!/usr/bin/env python # # Copyright 2006, Google Inc. # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are # met: # # * Redistributions of source code must retain the above copyright # notice, this list...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 198, 2, 198, 2, 15069, 4793, 11, 3012, 3457, 13, 198, 2, 1439, 2489, 10395, 13, 198, 2, 198, 2, 2297, 396, 3890, 290, 779, 287, 2723, 290, 13934, 5107, 11, 351, 393, 1231, 198, 2, 176...
2.578745
7,283
import os import inspect import shutil import math import tensorflow as tf import numpy as np from tensorflow.examples.tutorials.mnist import input_data as mnist_data tf.set_random_seed(0) # Calculate LOG_DIR according to current file CUR_FILE = inspect.getfile(inspect.currentframe()) LOG_DIR = os.path.jo...
[ 11748, 28686, 201, 198, 11748, 10104, 201, 198, 11748, 4423, 346, 201, 198, 11748, 10688, 201, 198, 11748, 11192, 273, 11125, 355, 48700, 201, 198, 11748, 299, 32152, 355, 45941, 201, 198, 6738, 11192, 273, 11125, 13, 1069, 12629, 13, 8...
2.029114
3,263
#!/usr/bin/env python3 from aws_cdk import cdk from %name%.%name%_stack import PyStack app = cdk.App() PyStack(app, "%name%-cdk-1") app.run()
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 18, 198, 198, 6738, 3253, 82, 62, 10210, 74, 1330, 22927, 74, 198, 198, 6738, 4064, 3672, 7225, 4, 3672, 4, 62, 25558, 1330, 9485, 25896, 628, 198, 1324, 796, 22927, 74, 13, 4677, 3419, ...
2.296875
64
from oembed.tests.tests.consumer import * from oembed.tests.tests.models import * from oembed.tests.tests.parsers import * from oembed.tests.tests.providers import * from oembed.tests.tests.resources import * from oembed.tests.tests.sites import * from oembed.tests.tests.templatetags import * from oembed.tests.tests.ut...
[ 6738, 267, 20521, 13, 41989, 13, 41989, 13, 49827, 1330, 1635, 198, 6738, 267, 20521, 13, 41989, 13, 41989, 13, 27530, 1330, 1635, 198, 6738, 267, 20521, 13, 41989, 13, 41989, 13, 79, 945, 364, 1330, 1635, 198, 6738, 267, 20521, 13, ...
3.234783
115
# -*- coding: utf-8 -*- """ A collection of functions that can extract additional data fields from the work and passage fields of a Cts object. Which additional fields are possible depends on the namespace. The "parse_cts" function recognizes the namespace and decides which function to use for the extraction. ...
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 201, 198, 37811, 201, 198, 32, 4947, 286, 5499, 326, 460, 7925, 3224, 1366, 7032, 422, 220, 201, 198, 1169, 670, 290, 10066, 7032, 286, 257, 327, 912, 2134, 13, 9022, 3224,...
2.125
872
# 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 agreed to in writing, ...
[ 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, 2393, 2845, 287, 11846, 351, 262, 13789, 13, 198, 2, 921, 743, 733...
2.919936
1,249
import random # Efetua 1000 testes: for _ in range(1000): # Gera um conjunto de 10 números inteiros entre 0 e 9: a = set(random.randint(0, 9) for __ in range(10)) # Verifica se o conjunto é igual à sua respectiva lista sortida: if list(a) != sorted(a): # Se for diferente, exibe o conjunto: ...
[ 11748, 4738, 198, 198, 2, 412, 34045, 6413, 8576, 1332, 274, 25, 198, 1640, 4808, 287, 2837, 7, 12825, 2599, 628, 220, 220, 220, 1303, 402, 8607, 23781, 11644, 403, 1462, 390, 838, 299, 21356, 647, 418, 493, 20295, 4951, 920, 260, 6...
2.310345
145
#!/usr/bin/env python # -*- coding: utf-8 -*- import json from alipay.aop.api.constant.ParamConstants import *
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 198, 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 11748, 33918, 198, 198, 6738, 435, 541, 323, 13, 64, 404, 13, 15042, 13, 9979, 415, 13, 22973, 34184, 1187, 1330, 163...
2.446809
47
"""empty message Revision ID: 4b01613bfbed Revises: 406cccb640c3 Create Date: 2014-02-07 00:29:22.150808 """ # revision identifiers, used by Alembic. revision = '4b01613bfbed' down_revision = '406cccb640c3' from alembic import op import sqlalchemy as sa
[ 37811, 28920, 3275, 198, 198, 18009, 1166, 4522, 25, 604, 65, 27037, 1485, 19881, 3077, 198, 18009, 2696, 25, 45439, 535, 21101, 31102, 66, 18, 198, 16447, 7536, 25, 1946, 12, 2999, 12, 2998, 3571, 25, 1959, 25, 1828, 13, 8628, 28362,...
2.6
100
from __future__ import absolute_import # for python 2.7 from django.conf import settings from django.core.mail import send_mail as django_send_mail try: from celery.task import task except ImportError: task = func_add_delay @task
[ 6738, 11593, 37443, 834, 1330, 4112, 62, 11748, 220, 1303, 329, 21015, 362, 13, 22, 198, 198, 6738, 42625, 14208, 13, 10414, 1330, 6460, 198, 6738, 42625, 14208, 13, 7295, 13, 4529, 1330, 3758, 62, 4529, 355, 42625, 14208, 62, 21280, ...
3.05
80
import torch import argparse import os import os.path as osp import torch.backends.cudnn as cudnn from torchsummary import summary from torch.nn.parallel.data_parallel import DataParallel from config import cfg from model import get_pose_net from thop import profile from thop import clever_format from ptflops import ge...
[ 11748, 28034, 198, 11748, 1822, 29572, 198, 11748, 28686, 198, 11748, 28686, 13, 6978, 355, 267, 2777, 198, 11748, 28034, 13, 1891, 2412, 13, 66, 463, 20471, 355, 269, 463, 20471, 198, 6738, 28034, 49736, 1330, 10638, 198, 6738, 28034, ...
2.407029
882
# -*- coding: utf-8 -*- from dataclasses import dataclass, field from pathlib import Path from typing import List, Union from fastflix.models.base import BaseDataClass @dataclass @dataclass @dataclass @dataclass @dataclass @dataclass @dataclass @dataclass @dataclass @dataclass @dataclass @datac...
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 6738, 4818, 330, 28958, 1330, 4818, 330, 31172, 11, 2214, 198, 6738, 3108, 8019, 1330, 10644, 198, 6738, 19720, 1330, 7343, 11, 4479, 198, 198, 6738, 3049, 10046, 13, 27...
2.620155
129
import numpy as np import pandas as pd import argparse import glob import os import time import re from multiprocessing import Pool ''' **************************************************************** GLOBAL VARIABLES **************************************************************** ''' MAX_ENTITY_LENGTH = 20 MAX_ENTI...
[ 11748, 299, 32152, 355, 45941, 198, 11748, 19798, 292, 355, 279, 67, 198, 11748, 1822, 29572, 198, 11748, 15095, 198, 11748, 28686, 198, 11748, 640, 198, 11748, 302, 198, 6738, 18540, 305, 919, 278, 1330, 19850, 628, 198, 7061, 6, 198, ...
3.115443
1,308
import collections import logging from math import sqrt from wordnik import swagger, WordApi from .utils import weighted_choice """corpus.py: Generates horoscopes based provided corpuses""" __author__ = "Project Zodiacy" __copyright__ = "Copyright 2015, Project Zodiacy" logger = logging.getLogger('root') class Cor...
[ 11748, 17268, 198, 11748, 18931, 198, 6738, 10688, 1330, 19862, 17034, 198, 6738, 1573, 17187, 1330, 1509, 7928, 11, 9678, 32, 14415, 198, 6738, 764, 26791, 1330, 26356, 62, 25541, 198, 198, 37811, 10215, 79, 385, 13, 9078, 25, 2980, 68...
2.264085
3,692
import boto3 import json import logging import os logger = logging.getLogger() logger.setLevel(logging.INFO)
[ 11748, 275, 2069, 18, 198, 11748, 33918, 198, 11748, 18931, 198, 11748, 28686, 198, 198, 6404, 1362, 796, 18931, 13, 1136, 11187, 1362, 3419, 198, 6404, 1362, 13, 2617, 4971, 7, 6404, 2667, 13, 10778, 8, 198 ]
2.972973
37
import numpy import numpy as np from mindspore import Tensor, dtype from mindspore.train.serialization import export, save_checkpoint import mindspore.dataset as ds import mindspore.context as context import mindspore.ops as ops import mindspore.nn as N import mindspore.numpy as mnp
[ 11748, 299, 32152, 198, 11748, 299, 32152, 355, 45941, 198, 6738, 2000, 2777, 382, 1330, 309, 22854, 11, 288, 4906, 198, 6738, 2000, 2777, 382, 13, 27432, 13, 46911, 1634, 1330, 10784, 11, 3613, 62, 9122, 4122, 198, 11748, 2000, 2777, ...
3.238636
88
"""Test cases for _gates module.""" from unittest.mock import Mock import pytest import sympy from zquantum.core.wip.circuits import _builtin_gates from zquantum.core.wip.circuits._gates import GateOperation, MatrixFactoryGate GATES_REPRESENTATIVES = [ _builtin_gates.X, _builtin_gates.Y, _builtin_gates.Z,...
[ 37811, 14402, 2663, 329, 4808, 70, 689, 8265, 526, 15931, 198, 6738, 555, 715, 395, 13, 76, 735, 1330, 44123, 198, 198, 11748, 12972, 9288, 198, 11748, 10558, 88, 198, 6738, 1976, 40972, 388, 13, 7295, 13, 86, 541, 13, 21170, 15379, ...
2.059867
451
from game.game import Game from heapq import heappush, heappop import time import itertools import time if __name__ == '__main__': algorithm = Manhanttan() algorithm.run()
[ 6738, 983, 13, 6057, 1330, 3776, 198, 6738, 24575, 80, 1330, 339, 1324, 1530, 11, 339, 1324, 404, 198, 11748, 640, 198, 11748, 340, 861, 10141, 198, 11748, 640, 628, 198, 361, 11593, 3672, 834, 6624, 705, 834, 12417, 834, 10354, 198, ...
2.861538
65
from optimizers import * import gc import time def experiment_runner(args, x_0_dict): """ Runner routine which performs the whole experiment set. Parameters ---------- args : populated namespace object from ArgumentParser The system of equations evaluated at point x. x_0_dict : dict ...
[ 6738, 6436, 11341, 1330, 1635, 198, 11748, 308, 66, 198, 11748, 640, 628, 198, 4299, 6306, 62, 16737, 7, 22046, 11, 2124, 62, 15, 62, 11600, 2599, 198, 220, 220, 220, 37227, 198, 220, 220, 220, 21529, 8027, 543, 17706, 262, 2187, 63...
1.646419
5,976
import time
[ 11748, 640, 198, 220, 220, 220, 220, 198, 220, 220, 220, 220, 198, 220, 220, 220, 220, 198, 220, 220, 220, 220, 198, 220, 220, 220, 220, 198 ]
1.321429
28
import dash_bootstrap_components as dbc from dash import Input, Output, html button = html.Div( [ dbc.Button( "Click me", id="example-button", className="me-2", n_clicks=0 ), html.Span(id="example-output", style={"verticalAlign": "middle"}), ] ) @app.callback( Output("...
[ 11748, 14470, 62, 18769, 26418, 62, 5589, 3906, 355, 288, 15630, 198, 6738, 14470, 1330, 23412, 11, 25235, 11, 27711, 198, 198, 16539, 796, 27711, 13, 24095, 7, 198, 220, 220, 220, 685, 198, 220, 220, 220, 220, 220, 220, 220, 288, 1...
2.363636
165
from django import forms from .models import Bark
[ 6738, 42625, 14208, 1330, 5107, 198, 198, 6738, 764, 27530, 1330, 20511, 628, 220, 220, 220, 220 ]
3.294118
17
# 等额本金和等额本息贷款计算 import math area = float(input('请输入房屋面积(m^2): ')) unit_price = float(input('请输入单价(元): ')) year_interest = float(input('请输入贷款利率(%): ')) # ''' # 等额本金的每月还款情况文件,格式如下: # 1月,5700.79(元) # 2月,5691.69(元) # 3月,5682.59(元) # 4月,5673.5(元) # ...... # # ''' # # # # 读取文件内容,即每个月的还款数据 # def get_average_capital(): # ...
[ 2, 13328, 255, 231, 165, 95, 251, 17312, 105, 34932, 239, 161, 240, 234, 163, 255, 231, 165, 95, 251, 17312, 105, 162, 223, 107, 164, 112, 115, 162, 105, 122, 164, 106, 94, 163, 106, 245, 628, 198, 11748, 10688, 198, 198, 20337, ...
1.134198
2,854
# flake8: noqa # -*- coding: utf-8 -*- import datetime from south.db import db from south.v2 import SchemaMigration from django.db import models
[ 2, 781, 539, 23, 25, 645, 20402, 198, 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 11748, 4818, 8079, 198, 6738, 5366, 13, 9945, 1330, 20613, 198, 6738, 5366, 13, 85, 17, 1330, 10011, 2611, 44, 4254, 198, 6738, ...
2.807692
52
# # DeepRacer Guru # # Version 3.0 onwards # # Copyright (c) 2021 dmh23 # import threading import time import src.utils.geometry as geometry import tkinter as tk from src.analyze.track.track_analyzer import TrackAnalyzer from src.episode.episode import Episode from src.graphics.track_graphics import TrackGraphics f...
[ 2, 198, 2, 10766, 49, 11736, 38749, 198, 2, 198, 2, 10628, 513, 13, 15, 31719, 198, 2, 198, 2, 15069, 357, 66, 8, 33448, 288, 76, 71, 1954, 198, 2, 198, 198, 11748, 4704, 278, 198, 11748, 640, 198, 11748, 12351, 13, 26791, 13, ...
3.266187
139
import sys cover = [[[0, 0], [1, 0], [0, 1]], [[0, 0], [0, 1], [1, 1]], [[0, 0], [1, 0], [1, 1]], [[0, 0], [1, 0], [1, -1]]] #rl = lambda: sys.stdin.readline() rl = input C = int(rl()) for _ in range(C): H, W = map(int, rl().split()) block_list = [] whit...
[ 11748, 25064, 198, 198, 9631, 796, 16410, 58, 15, 11, 657, 4357, 685, 16, 11, 657, 4357, 685, 15, 11, 352, 60, 4357, 198, 220, 220, 220, 220, 220, 220, 220, 220, 16410, 15, 11, 657, 4357, 685, 15, 11, 352, 4357, 685, 16, 11, 3...
1.661885
488
from cms.plugin_base import CMSPluginBase from cms.plugin_pool import plugin_pool from .models import SoundCloud, COLORS from django.conf import settings from django.utils.translation import ugettext as _ from django.utils.safestring import mark_safe # use CMSPLUGIN_SOUNDCLOUD_PARAMS to override PARAMS PARAMS = geta...
[ 6738, 269, 907, 13, 33803, 62, 8692, 1330, 40773, 37233, 14881, 198, 6738, 269, 907, 13, 33803, 62, 7742, 1330, 13877, 62, 7742, 198, 198, 6738, 764, 27530, 1330, 9506, 18839, 11, 20444, 20673, 198, 198, 6738, 42625, 14208, 13, 10414, ...
2.9
170
s = Solution() print s.findMin([4, 5, 5, 6, 7, 0, 1, 2, 2, 2])
[ 198, 198, 82, 796, 28186, 3419, 198, 4798, 264, 13, 19796, 9452, 26933, 19, 11, 642, 11, 642, 11, 718, 11, 767, 11, 657, 11, 352, 11, 362, 11, 362, 11, 362, 12962, 198 ]
1.911765
34
#!/usr/bin/env python3 # # Cross Platform and Multi Architecture Advanced Binary Emulation Framework # from qiling.const import * from qiling.os.linux.thread import * from qiling.const import * from qiling.os.posix.filestruct import * from qiling.os.filestruct import * from qiling.os.posix.const_mapping import * from...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 18, 198, 2, 198, 2, 6372, 19193, 290, 15237, 29778, 13435, 45755, 2295, 1741, 25161, 198, 2, 628, 198, 6738, 10662, 4386, 13, 9979, 1330, 1635, 198, 6738, 10662, 4386, 13, 418, 13, 23289, ...
3.220183
109
#!/usr/bin/python # Classification (U) """Program: add_miss_slaves.py Description: Unit testing of add_miss_slaves in mysql_rep_admin.py. Usage: test/unit/mysql_rep_admin/add_miss_slaves.py Arguments: """ # Libraries and Global Variables # Standard import sys import os if sys.version_info ...
[ 2, 48443, 14629, 14, 8800, 14, 29412, 198, 2, 40984, 357, 52, 8, 198, 198, 37811, 15167, 25, 220, 751, 62, 3927, 62, 6649, 3080, 13, 9078, 628, 220, 220, 220, 12489, 25, 220, 11801, 4856, 286, 751, 62, 3927, 62, 6649, 3080, 287, ...
2.005525
1,448
# -*- coding: utf-8 -*- """ Created on Fri Dec 4 17:53:50 2020 @author: behnood """ from __future__ import print_function import matplotlib.pyplot as plt #%matplotlib inline import os #os.environ['CUDA_VISIBLE_DEVICES'] = '3' import numpy as np from models import * import torch import torch.opti...
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 201, 198, 37811, 201, 198, 41972, 319, 19480, 4280, 220, 604, 1596, 25, 4310, 25, 1120, 12131, 201, 198, 201, 198, 31, 9800, 25, 1372, 77, 702, 201, 198, 37811, 201, 198, ...
1.796438
2,751
if __name__ == '__main__': run()
[ 628, 198, 361, 11593, 3672, 834, 6624, 705, 834, 12417, 834, 10354, 198, 220, 220, 220, 1057, 3419 ]
2.166667
18
''' Created : Jan 16, 2017 Last major update : June 29, 2017 @author: Alexandre Day Purpose: Fast density clustering ''' import numpy as np import time from numpy.random import random import sys, os from .density_estimation import KDE import pickle from collections import OrderedDict as OD from sklearn....
[ 7061, 6, 198, 41972, 1058, 2365, 1467, 11, 2177, 198, 5956, 1688, 4296, 1058, 2795, 2808, 11, 2177, 198, 198, 31, 9800, 25, 21000, 260, 3596, 628, 220, 220, 220, 32039, 25, 198, 220, 220, 220, 220, 220, 220, 220, 12549, 12109, 32966...
2.285354
7,934
import argparse import typing import aztk.spark from aztk_cli import config, utils
[ 11748, 1822, 29572, 198, 11748, 19720, 198, 198, 11748, 35560, 30488, 13, 2777, 668, 198, 6738, 35560, 30488, 62, 44506, 1330, 4566, 11, 3384, 4487, 628, 198 ]
3.185185
27
import obspython as obs from random import choices FLAG = True INTERVAL = 100 eg = Example() # class created ,obs part starts
[ 11748, 909, 2777, 7535, 355, 10201, 201, 198, 6738, 4738, 1330, 7747, 201, 198, 201, 198, 38948, 796, 6407, 201, 198, 41358, 23428, 796, 1802, 201, 198, 201, 198, 201, 198, 1533, 796, 17934, 3419, 220, 1303, 1398, 2727, 837, 8158, 636...
2.754717
53
from datetime import datetime
[ 6738, 4818, 8079, 1330, 4818, 8079, 628, 198 ]
4
8
import numpy as np import matplotlib.pyplot as plt import casadi as cas # define functions # Check if Sensor is a NTC and find out the Resistance R_measured = [103e3, 120e3, 70e3, 15.2e3] T_measured_C = [25, 20, 33, 74] R_N = 103e3 T_N = 298.15 U_ges = 3.3 T_range_C = [0, 200] # Kelvin from Temp T_range = [i + 2...
[ 11748, 299, 32152, 355, 45941, 198, 11748, 2603, 29487, 8019, 13, 9078, 29487, 355, 458, 83, 198, 11748, 6124, 9189, 355, 6124, 198, 198, 2, 8160, 5499, 198, 198, 2, 6822, 611, 35367, 318, 257, 399, 4825, 290, 1064, 503, 262, 17363, ...
1.994956
1,586
import os import re if __name__ == "__main__": filters = [SingleChineseFilter()] diff_file = "C:\\Users\\allen.luo\\Desktop\\diff_filter\\test.diff.txt" differ = DiffFilter(diff_file) differ.filter(filters)
[ 11748, 28686, 198, 11748, 302, 628, 628, 198, 198, 361, 11593, 3672, 834, 6624, 366, 834, 12417, 834, 1298, 198, 220, 220, 220, 16628, 796, 685, 28008, 23604, 22417, 3419, 60, 198, 220, 220, 220, 814, 62, 7753, 796, 366, 34, 25, 685...
2.590909
88
from onegov.agency.app import AgencyApp from onegov.agency.initial_content import create_new_organisation from onegov.user import User from os import path from pytest import fixture from sqlalchemy.orm.session import close_all_sessions from tests.shared import Client from tests.shared.utils import create_app from trans...
[ 6738, 530, 9567, 13, 40955, 13, 1324, 1330, 7732, 4677, 198, 6738, 530, 9567, 13, 40955, 13, 36733, 62, 11299, 1330, 2251, 62, 3605, 62, 9971, 5612, 198, 6738, 530, 9567, 13, 7220, 1330, 11787, 198, 6738, 28686, 1330, 3108, 198, 6738,...
3.559441
143
from django.apps import AppConfig from django.db.models.signals import post_migrate def migrate_can_clone_instances(sender, **kwargs): ''' Migrate can clone instances user attribute to permission ''' from django.conf import settings from django.contrib.auth.models import User, Permission from ...
[ 6738, 42625, 14208, 13, 18211, 1330, 2034, 16934, 198, 6738, 42625, 14208, 13, 9945, 13, 27530, 13, 12683, 874, 1330, 1281, 62, 76, 42175, 628, 198, 4299, 32492, 62, 5171, 62, 21018, 62, 8625, 1817, 7, 82, 2194, 11, 12429, 46265, 2204...
2.513089
382
# encoding: utf-8 """ Unit test suite for the docx.opc.rel module """ from __future__ import ( absolute_import, division, print_function, unicode_literals ) import pytest from docx.opc.oxml import CT_Relationships from docx.opc.packuri import PackURI from docx.opc.part import Part from docx.opc.rel import _Rela...
[ 2, 21004, 25, 3384, 69, 12, 23, 198, 198, 37811, 198, 26453, 1332, 18389, 329, 262, 2205, 87, 13, 404, 66, 13, 2411, 8265, 198, 37811, 198, 198, 6738, 11593, 37443, 834, 1330, 357, 198, 220, 220, 220, 4112, 62, 11748, 11, 7297, 11...
2.87013
154
#!/usr/local/bin/python3.6 # vim: expandtab shiftwidth=4 # Copyright (C) 2020 National Institute of Informatics # # Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright own...
[ 2, 48443, 14629, 14, 12001, 14, 8800, 14, 29412, 18, 13, 21, 198, 2, 43907, 25, 4292, 8658, 6482, 10394, 28, 19, 198, 198, 2, 15069, 357, 34, 8, 12131, 2351, 5136, 286, 554, 18982, 873, 198, 2, 198, 2, 49962, 284, 262, 24843, 10...
2.587842
1,497
# from distutils.core import setup # setup(name='helper', # version='0.1.1', # py_modules=['upload_github'], # data_files=[('config', ['mysql.cfg'])], # ) # from setuptools import setup # # setup( # name='mypackage', # version='0.0.1', # packages=['mypackage'], # install_requir...
[ 2, 422, 1233, 26791, 13, 7295, 1330, 9058, 198, 2, 9058, 7, 3672, 11639, 2978, 525, 3256, 198, 2, 220, 220, 220, 220, 220, 220, 2196, 11639, 15, 13, 16, 13, 16, 3256, 198, 2, 220, 220, 220, 220, 220, 220, 12972, 62, 18170, 28, ...
2.087179
195
__copyright__ = 'Copyright 2021, The RADICAL-Cybertools Team' __license__ = 'MIT' import glob import radical.utils as ru from radical.dreamer.units import Core, Task, CORE_STATE from unittest import TestCase TEST_CASES_PATH = 'tests/unit_tests/test_units/test_cases/core.*.json'
[ 198, 834, 22163, 4766, 834, 796, 705, 15269, 33448, 11, 383, 33540, 20151, 12, 20418, 4835, 10141, 4816, 6, 198, 834, 43085, 834, 220, 220, 796, 705, 36393, 6, 198, 198, 11748, 15095, 198, 198, 11748, 7702, 13, 26791, 355, 7422, 198, ...
2.88
100
import entity, allocate import numpy as nump import datetime from copy import deepcopy ndsa = 58 #######################################################################Event Processes#################################################################################### def Arrival(arrivalinfo, Sim, Stat, OPTN): """ ...
[ 11748, 9312, 11, 31935, 198, 11748, 299, 32152, 355, 299, 931, 198, 11748, 4818, 8079, 198, 6738, 4866, 1330, 2769, 30073, 198, 358, 11400, 796, 7618, 198, 198, 29113, 29113, 4242, 21017, 9237, 10854, 274, 29113, 29113, 14468, 4242, 198, ...
2.203729
11,049
def countSort(array): """ Counting Sort algorithm implementation on Python. :param array: array that need to be sorted :return: resulting sorted array """ output = [0 for i in range(256)] count = [0 for i in range(256)] result = ["" for element in array] for i in array: resul...
[ 4299, 954, 42758, 7, 18747, 2599, 198, 220, 220, 220, 37227, 198, 220, 220, 220, 2764, 278, 33947, 11862, 7822, 319, 11361, 13, 198, 220, 220, 220, 1058, 17143, 7177, 25, 7177, 326, 761, 284, 307, 23243, 198, 220, 220, 220, 1058, 77...
2.395161
248
# flake8: noqa from samtranslator.model.function_policies import FunctionPolicies, PolicyTypes
[ 2, 781, 539, 23, 25, 645, 20402, 198, 198, 6738, 6072, 7645, 41880, 13, 19849, 13, 8818, 62, 79, 4160, 444, 1330, 15553, 47, 4160, 444, 11, 7820, 31431, 198 ]
3.2
30
""" Capstone Project. Code to run on a LAPTOP (NOT the robot). Constructs and returns Frame objects for the basics: -- teleoperation -- arm movement -- stopping the robot program This code is SHARED by all team members. It contains both: -- High-level, general-purpose methods for a Snatch3r EV3 robot...
[ 37811, 198, 220, 4476, 6440, 4935, 13, 220, 6127, 284, 1057, 319, 257, 406, 2969, 35222, 357, 11929, 262, 9379, 737, 198, 220, 28407, 82, 290, 5860, 25184, 5563, 329, 262, 19165, 25, 198, 220, 1377, 5735, 27184, 198, 220, 1377, 3211, ...
2.576913
11,175
import functools import torch.utils.model_zoo as model_zoo from ._preprocessing import preprocess_input from .densenet import densenet_encoders from .dpn import dpn_encoders from .efficientnet import efficientnet_encoders from .inceptionresnetv2 import inception_encoders from .resnet import resnet_encoders from .sene...
[ 11748, 1257, 310, 10141, 198, 198, 11748, 28034, 13, 26791, 13, 19849, 62, 89, 2238, 355, 2746, 62, 89, 2238, 198, 198, 6738, 47540, 3866, 36948, 1330, 662, 14681, 62, 15414, 198, 6738, 764, 67, 18756, 316, 1330, 288, 18756, 316, 62, ...
2.76378
254
N = int(input()) gabarito_prova = input().split() gabarito_aluno = input().split() list_aluno = [] list_prova = [] count = 0 for i in range(gabarito_aluno): for j in range(gabarito_prova): if gabarito_aluno[i] == gabarito_prova[j]: count += 1 print(count)
[ 45, 796, 493, 7, 15414, 28955, 198, 70, 397, 283, 10094, 62, 1676, 6862, 796, 5128, 22446, 35312, 3419, 198, 70, 397, 283, 10094, 62, 282, 36909, 796, 5128, 22446, 35312, 3419, 198, 198, 4868, 62, 282, 36909, 796, 17635, 198, 4868, ...
2.088235
136
from django.conf.urls import url from apps.contact import views urlpatterns = [ url(r"^$", views.index, name="contact_index"), url(r"^submit/", views.contact_submit, name="submit"), ]
[ 6738, 42625, 14208, 13, 10414, 13, 6371, 82, 1330, 19016, 198, 198, 6738, 6725, 13, 32057, 1330, 5009, 198, 198, 6371, 33279, 82, 796, 685, 198, 220, 220, 220, 19016, 7, 81, 1, 61, 3, 1600, 5009, 13, 9630, 11, 1438, 2625, 32057, 6...
2.732394
71
# -*- coding: utf-8 -*- import asyncio from typing import List, Tuple import io from urllib.parse import urljoin from lxml.html import fromstring import aiohttp from nonebot.adapters.cqhttp import MessageSegment from .formdata import FormData headers = { 'Accept': 'text/html,application/xhtml+xml,application/xml...
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 11748, 30351, 952, 198, 6738, 19720, 1330, 7343, 11, 309, 29291, 198, 11748, 33245, 198, 198, 6738, 2956, 297, 571, 13, 29572, 1330, 19016, 22179, 198, 6738, 300, 19875, ...
2.136406
1,085
import datetime from flask import request from explorer.services.message import MessageService from explorer.services.miner import MinerService from explorer.services.wallets import WalletsService from explorer.services.blocks import BlocksService from base.utils.fil import datetime_to_height from base.response import ...
[ 11748, 4818, 8079, 198, 6738, 42903, 1330, 2581, 198, 6738, 39349, 13, 30416, 13, 20500, 1330, 16000, 16177, 198, 6738, 39349, 13, 30416, 13, 1084, 263, 1330, 29295, 16177, 198, 6738, 39349, 13, 30416, 13, 16783, 5289, 1330, 6445, 5289, ...
2.258145
1,197
import pandas as pd import numpy as np import os import tensorflow as tf from functools import partial ####### STUDENTS FILL THIS OUT ###### #Question 3 def reduce_dimension_ndc(df, ndc_code_df): ''' df: pandas dataframe, input dataset ndc_df: pandas dataframe, drug code dataset used for mapping in generic...
[ 11748, 19798, 292, 355, 279, 67, 198, 11748, 299, 32152, 355, 45941, 198, 11748, 28686, 198, 11748, 11192, 273, 11125, 355, 48700, 198, 6738, 1257, 310, 10141, 1330, 13027, 198, 198, 4242, 21017, 49348, 15365, 376, 8267, 12680, 16289, 464...
2.478644
1,475
from turtle import Screen import time from food import Food from snake_shape import Snake from snake_scoreboard import Scoreboard screen = Screen() screen.setup(width=600, height=600) screen.bgcolor('black') screen.title('My snake game for desktop.') screen.tracer(0) snake = Snake() food = Food() scoreb...
[ 6738, 28699, 1330, 15216, 201, 198, 11748, 640, 201, 198, 6738, 2057, 1330, 7318, 201, 198, 6738, 17522, 62, 43358, 1330, 16705, 201, 198, 6738, 17522, 62, 26675, 3526, 1330, 15178, 3526, 201, 198, 201, 198, 9612, 796, 15216, 3419, 201,...
2.318087
481
from .sample.aplugin import APlugin from .sample.apluginimpl import * from .sample.bplugin import BPlugin from .sample.bpluginimpl import *
[ 6738, 764, 39873, 13, 64, 33803, 1330, 3486, 75, 1018, 259, 198, 6738, 764, 39873, 13, 64, 33803, 23928, 1330, 1635, 198, 6738, 764, 39873, 13, 65, 33803, 1330, 347, 37233, 198, 6738, 764, 39873, 13, 65, 33803, 23928, 1330, 1635, 198 ...
3.333333
42
# -*- coding: utf-8 -*- import unittest import os import json from dataclasses import asdict import numpy as np import click from click.testing import CliRunner from nelson_siegel_svensson import cli, NelsonSiegelCurve, \ NelsonSiegelSvenssonCurve class TestNelson_siegel_svensson(unittest.TestCase): '''Tes...
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 198, 11748, 555, 715, 395, 198, 11748, 28686, 198, 11748, 33918, 198, 6738, 4818, 330, 28958, 1330, 355, 11600, 198, 198, 11748, 299, 32152, 355, 45941, 198, 11748, 3904, ...
1.913473
2,427
#!/usr/bin/env python ''' Project: Geothon (https://github.com/MBoustani/Geothon) File: Vector/reproject_shp.py Description: This code reprojects Shapefile. Author: Maziyar Boustani (github.com/MBoustani) ''' import os try: import ogr except ImportError: from osgeo import ogr try: ...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 198, 198, 7061, 6, 198, 16775, 25, 220, 220, 220, 220, 220, 220, 2269, 849, 261, 357, 5450, 1378, 12567, 13, 785, 14, 10744, 23968, 3216, 14, 10082, 849, 261, 8, 198, 8979, 25, 220, 220...
2.731266
774
import numpy as np import librosa from scipy import interpolate import pywt from matplotlib.image import imsave from scipy.signal import butter, lfilter, freqz from matplotlib import pyplot as plt from imageProcessingUtil import ImageProcessing import SimpleITK as sitk
[ 11748, 299, 32152, 355, 45941, 201, 198, 11748, 9195, 4951, 64, 201, 198, 6738, 629, 541, 88, 1330, 39555, 378, 201, 198, 11748, 12972, 46569, 201, 198, 6738, 2603, 29487, 8019, 13, 9060, 1330, 545, 21928, 201, 198, 6738, 629, 541, 88...
3.043011
93
# Name: # Date: result = 0 loop_control = True while loop_control == True: b = int(raw_input('Enter a number to add, or 0 to indicate you are finished:')) if b == 0: loop_control = False result = result + b print 'your result is:' print result
[ 2, 6530, 25, 198, 2, 7536, 25, 628, 220, 220, 220, 1255, 796, 657, 198, 220, 220, 220, 9052, 62, 13716, 796, 6407, 198, 4514, 9052, 62, 13716, 6624, 6407, 25, 198, 220, 220, 220, 275, 796, 493, 7, 1831, 62, 15414, 10786, 17469, ...
2.722772
101
import os import json import unittest from troposphere import ec2, Template from generate_qumulo_cloudformation_template import * if __name__ == '__main__': unittest.main()
[ 11748, 28686, 198, 11748, 33918, 198, 11748, 555, 715, 395, 198, 198, 6738, 14673, 22829, 1330, 9940, 17, 11, 37350, 198, 198, 6738, 7716, 62, 80, 388, 43348, 62, 17721, 1161, 62, 28243, 1330, 1635, 628, 198, 220, 220, 220, 220, 198, ...
2.921875
64
# coding=utf-8 # *** WARNING: this file was generated by the Pulumi SDK Generator. *** # *** 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 _utilities fro...
[ 2, 19617, 28, 40477, 12, 23, 198, 2, 17202, 39410, 25, 428, 2393, 373, 7560, 416, 262, 21624, 12994, 26144, 35986, 13, 17202, 198, 2, 17202, 2141, 407, 4370, 416, 1021, 4556, 345, 821, 1728, 345, 760, 644, 345, 389, 1804, 0, 17202, ...
3.59375
128
import os import re import sys from datetime import datetime from typing import Optional, Mapping from urllib.parse import urlparse, urlunparse import boto3 # type: ignore[import] import click # type: ignore[import] import requests from requests_ntlm import HttpNtlmAuth # type: ignore[import] from bs4 import Beauti...
[ 11748, 28686, 198, 11748, 302, 198, 11748, 25064, 198, 6738, 4818, 8079, 1330, 4818, 8079, 198, 6738, 19720, 1330, 32233, 11, 337, 5912, 198, 6738, 2956, 297, 571, 13, 29572, 1330, 19016, 29572, 11, 19016, 403, 29572, 198, 198, 11748, 2...
2.591117
1,531
from __future__ import print_function, absolute_import, division import unittest2 as unittest from mock import patch from rds_log_dog.rds_utils import get_size
[ 6738, 11593, 37443, 834, 1330, 3601, 62, 8818, 11, 4112, 62, 11748, 11, 7297, 198, 198, 11748, 555, 715, 395, 17, 355, 555, 715, 395, 198, 6738, 15290, 1330, 8529, 198, 198, 6738, 374, 9310, 62, 6404, 62, 9703, 13, 4372, 82, 62, 2...
3.326531
49
from cytopy.data.project import Project from cytopy.data.errors import * from cytopy.tests import assets import pytest import os @pytest.fixture()
[ 6738, 3075, 4852, 88, 13, 7890, 13, 16302, 1330, 4935, 198, 6738, 3075, 4852, 88, 13, 7890, 13, 48277, 1330, 1635, 198, 6738, 3075, 4852, 88, 13, 41989, 1330, 6798, 198, 11748, 12972, 9288, 198, 11748, 28686, 628, 198, 31, 9078, 9288,...
3.078431
51