content
stringlengths
1
1.05M
input_ids
listlengths
1
883k
ratio_char_token
float64
1
22.9
token_count
int64
1
883k
# snippet-comment:[These are tags for the AWS doc team's sample catalog. Do not remove.] # snippet-sourcedescription:[kda-python-datagenerator-stockticker.py demonstrates how to generate sample data for Amazon Kinesis Data Analytics SQL applications.] # snippet-service:[kinesisanalytics] # snippet-keyword:[Python] # sn...
[ 2, 39442, 12, 23893, 33250, 4711, 389, 15940, 329, 262, 30865, 2205, 1074, 338, 6291, 18388, 13, 2141, 407, 4781, 8183, 198, 2, 39442, 12, 82, 30555, 7260, 33250, 74, 6814, 12, 29412, 12, 19608, 363, 877, 1352, 12, 13578, 83, 15799, ...
3.051081
509
import face_recognition from flask import Flask, request, redirect, Response import camera import firestore as db # You can change this to any folder on your system ALLOWED_EXTENSIONS = {'png', 'jpg', 'jpeg'} app = Flask(__name__) if __name__ == "__main__": app.run(host='0.0.0.0', port=5001, debug=...
[ 11748, 1986, 62, 26243, 653, 198, 6738, 42903, 1330, 46947, 11, 2581, 11, 18941, 11, 18261, 198, 11748, 4676, 198, 11748, 2046, 8095, 355, 20613, 198, 198, 2, 921, 460, 1487, 220, 220, 220, 220, 428, 284, 597, 9483, 319, 534, 1080, ...
2.762712
118
import numpy as np import logging import numbers import torch import math import json import sys from torch.optim.lr_scheduler import LambdaLR from torchvision.transforms.functional import pad def get_padding(image): w, h = image.size max_wh = np.max([w, h]) h_padding = (max_wh - w) / 2 ...
[ 11748, 299, 32152, 355, 45941, 198, 11748, 18931, 198, 11748, 3146, 198, 11748, 28034, 198, 11748, 10688, 198, 11748, 33918, 198, 11748, 25064, 198, 198, 6738, 28034, 13, 40085, 13, 14050, 62, 1416, 704, 18173, 1330, 21114, 6814, 35972, 1...
2.52139
374
import pytest from tests.pylint_plugins.utils import create_message, extract_node, skip_if_pylint_unavailable pytestmark = skip_if_pylint_unavailable()
[ 11748, 12972, 9288, 198, 198, 6738, 5254, 13, 79, 2645, 600, 62, 37390, 13, 26791, 1330, 2251, 62, 20500, 11, 7925, 62, 17440, 11, 14267, 62, 361, 62, 79, 2645, 600, 62, 403, 15182, 198, 198, 9078, 9288, 4102, 796, 14267, 62, 361, ...
2.943396
53
import pandas as pd import numpy as np import matplotlib matplotlib.use('Agg') import matplotlib.pyplot as plt import matplotlib.colors import csv from scipy.stats import mode import math as m import os import collections #set working directory #os.chdir("/mnt/ix1/Projects/M002_131217_gastric/P00526/P00526_WG10_15072...
[ 11748, 19798, 292, 355, 279, 67, 198, 11748, 299, 32152, 355, 45941, 198, 11748, 2603, 29487, 8019, 198, 6759, 29487, 8019, 13, 1904, 10786, 46384, 11537, 198, 11748, 2603, 29487, 8019, 13, 9078, 29487, 355, 458, 83, 198, 11748, 2603, 2...
2.160714
280
# tests
[ 198, 198, 2, 5254 ]
2.25
4
import logging from flask import Blueprint from flask import Flask, render_template, request, flash from flask_wtf import FlaskForm from wtforms import StringField, validators, SelectField, BooleanField from wtforms.fields.html5 import IntegerRangeField from wtforms.widgets import TextArea import langid from utils.u...
[ 11748, 18931, 198, 198, 6738, 42903, 1330, 39932, 198, 198, 6738, 42903, 1330, 46947, 11, 8543, 62, 28243, 11, 2581, 11, 7644, 198, 6738, 42903, 62, 86, 27110, 1330, 46947, 8479, 198, 6738, 266, 83, 23914, 1330, 10903, 15878, 11, 4938, ...
3.666667
108
# Copyright 2013-2021 Lawrence Livermore National Security, LLC and other # Spack Project Developers. See the top-level COPYRIGHT file for details. # # SPDX-License-Identifier: (Apache-2.0 OR MIT) from spack import *
[ 2, 15069, 2211, 12, 1238, 2481, 13914, 45036, 3549, 2351, 4765, 11, 11419, 290, 584, 198, 2, 1338, 441, 4935, 34152, 13, 4091, 262, 1353, 12, 5715, 27975, 38162, 9947, 2393, 329, 3307, 13, 198, 2, 198, 2, 30628, 55, 12, 34156, 12, ...
3.421875
64
# Copyright (C) July 2018: TF TECH NV in Belgium see https://www.threefold.tech/ # In case TF TECH NV ceases to exist (e.g. because of bankruptcy) # then Incubaid NV also in Belgium will get the Copyright & Authorship for all changes made since July 2018 # and the license will automatically become Apache v2 for al...
[ 2, 15069, 357, 34, 8, 2901, 2864, 25, 220, 24958, 44999, 23973, 287, 15664, 766, 3740, 1378, 2503, 13, 15542, 11379, 13, 13670, 14, 198, 2, 554, 1339, 24958, 44999, 23973, 42217, 284, 2152, 357, 68, 13, 70, 13, 780, 286, 17235, 8, ...
3.790323
310
import utils as utl import error_measures as err # Regression Tree Node # Regression Tree
[ 11748, 3384, 4487, 355, 3384, 75, 198, 11748, 4049, 62, 47336, 355, 11454, 198, 198, 2, 3310, 2234, 12200, 19081, 628, 198, 2, 3310, 2234, 12200, 198 ]
3.444444
27
from starlette.applications import Starlette from starlette.middleware.gzip import GZipMiddleware from starlette.middleware.cors import CORSMiddleware from starlette.staticfiles import StaticFiles app = Starlette(debug=False, template_directory='src/site/templates') app.add_middleware(GZipMiddleware, minimum_size=500)...
[ 6738, 3491, 21348, 13, 1324, 677, 602, 1330, 2907, 21348, 198, 6738, 3491, 21348, 13, 27171, 1574, 13, 70, 13344, 1330, 402, 41729, 34621, 1574, 198, 6738, 3491, 21348, 13, 27171, 1574, 13, 66, 669, 1330, 23929, 12310, 2509, 1574, 198, ...
3.313869
137
#! /usr/bin/env python3 # -*- coding: utf-8 -*- """ Contains core logic for Rainman2 """ __author__ = 'Ari Saha (arisaha@icloud.com), Mingyang Liu(liux3941@umn.edu)' __date__ = 'Wednesday, February 14th 2018, 11:42:09 am'
[ 2, 0, 1220, 14629, 14, 8800, 14, 24330, 21015, 18, 198, 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 198, 37811, 198, 4264, 1299, 4755, 9156, 329, 10301, 805, 17, 198, 37811, 628, 198, 834, 9800, 834, 796, 705, ...
2.445652
92
""" BespokeFit Creating bespoke parameters for individual molecules. """ import logging import sys from ._version import get_versions versions = get_versions() __version__ = versions["version"] __git_revision__ = versions["full-revisionid"] del get_versions, versions # Silence verbose messages when running the CLI ...
[ 37811, 198, 33, 9774, 2088, 31805, 198, 32071, 7284, 35924, 10007, 329, 1981, 17745, 13, 198, 37811, 198, 11748, 18931, 198, 11748, 25064, 198, 198, 6738, 47540, 9641, 1330, 651, 62, 47178, 198, 198, 47178, 796, 651, 62, 47178, 3419, 19...
3.334884
215
# -*- coding: utf-8 -*- """ Created on Tue Apr 03 11:06:37 2018 @author: vmg """ import sdf import numpy as np # Load 2006 LUT for interpolation # 2006 Groeneveld Look-Up Table as presented in # "2006 CHF Look-Up Table", Nuclear Engineering and Design 237, pp. 190-1922. # This file requires the file 2006LUTdata.tx...
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 37811, 198, 41972, 319, 30030, 2758, 7643, 1367, 25, 3312, 25, 2718, 2864, 198, 198, 31, 9800, 25, 410, 11296, 198, 37811, 198, 198, 11748, 264, 7568, 198, 11748, 299, ...
2.149644
842
import unittest from pathlib import Path from pprint import pprint from vint.compat.itertools import zip_longest from vint.linting.linter import Linter from vint.linting.config.config_default_source import ConfigDefaultSource
[ 11748, 555, 715, 395, 198, 6738, 3108, 8019, 1330, 10644, 198, 6738, 279, 4798, 1330, 279, 4798, 198, 6738, 410, 600, 13, 5589, 265, 13, 270, 861, 10141, 1330, 19974, 62, 6511, 395, 198, 6738, 410, 600, 13, 75, 600, 278, 13, 2815, ...
3.304348
69
import copy import json import logging import os import sys import time from collections import defaultdict import numpy as np import tensorflow as tf from sklearn import decomposition from .. import dp_logging from . import labeler_utils from .base_model import AutoSubRegistrationMeta, BaseModel, BaseTrainableModel ...
[ 11748, 4866, 198, 11748, 33918, 198, 11748, 18931, 198, 11748, 28686, 198, 11748, 25064, 198, 11748, 640, 198, 6738, 17268, 1330, 4277, 11600, 198, 198, 11748, 299, 32152, 355, 45941, 198, 11748, 11192, 273, 11125, 355, 48700, 198, 6738, ...
2.129375
11,857
# -*- coding: utf-8 -*- # # 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 ownership. The ASF licenses this file # to you under the Apache License, Version 2.0 (the #...
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 2, 198, 2, 49962, 284, 262, 24843, 10442, 5693, 357, 1921, 37, 8, 739, 530, 198, 2, 393, 517, 18920, 5964, 11704, 13, 220, 4091, 262, 28536, 2393, 198, 2, 9387, 351,...
3.298157
597
#!/usr/bin/env python3 # SPDX-FileCopyrightText: 2021 Aaron Dewes <aaron.dewes@protonmail.com> # # SPDX-License-Identifier: MIT import stat import tempfile import threading from typing import List from sys import argv import os import requests import shutil import json import yaml import subprocess from lib.composeg...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 18, 198, 198, 2, 30628, 55, 12, 8979, 15269, 8206, 25, 33448, 12139, 25075, 274, 1279, 64, 8045, 13, 67, 413, 274, 31, 1676, 1122, 4529, 13, 785, 29, 198, 2, 198, 2, 30628, 55, 12, 34...
3.270417
551
from query.base import BaseQuery
[ 6738, 12405, 13, 8692, 1330, 7308, 20746, 628, 628, 628, 628, 198 ]
3.416667
12
from kim import Mapper, field from example.models import Planet, Character
[ 6738, 479, 320, 1330, 337, 11463, 11, 2214, 198, 198, 6738, 1672, 13, 27530, 1330, 11397, 11, 15684, 628, 198 ]
3.9
20
# Based on local.py (c) 2012, Michael DeHaan <michael.dehaan@gmail.com> # Based on chroot.py (c) 2013, Maykel Moya <mmoya@speedyrails.com> # Based on func.py # (c) 2014, Michael Scherer <misc@zarb.org> # (c) 2017 Ansible Project # GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt...
[ 2, 13403, 319, 1957, 13, 9078, 357, 66, 8, 2321, 11, 3899, 1024, 23303, 272, 1279, 76, 40302, 13, 2934, 3099, 272, 31, 14816, 13, 785, 29, 198, 2, 13403, 319, 442, 15763, 13, 9078, 357, 66, 8, 2211, 11, 1737, 7750, 337, 23790, 1...
2.894569
313
from django.shortcuts import render_to_response from django.http import HttpResponseRedirect from django.template import RequestContext from django.utils.translation import ugettext_lazy as _ from servers.models import Compute from create.models import Flavor from instance.models import Instance from libvirt import l...
[ 6738, 42625, 14208, 13, 19509, 23779, 1330, 8543, 62, 1462, 62, 26209, 198, 6738, 42625, 14208, 13, 4023, 1330, 367, 29281, 31077, 7738, 1060, 198, 6738, 42625, 14208, 13, 28243, 1330, 19390, 21947, 198, 6738, 42625, 14208, 13, 26791, 13,...
1.867501
2,717
import torch __author__ = 'Andres'
[ 11748, 28034, 198, 198, 834, 9800, 834, 796, 705, 1870, 411, 6 ]
2.916667
12
import a_file
[ 11748, 257, 62, 7753, 198 ]
2.8
5
import streamlit as st from ui.session_state import SessionState, get_state from infer import ModelStage
[ 11748, 4269, 18250, 355, 336, 198, 6738, 334, 72, 13, 29891, 62, 5219, 1330, 23575, 9012, 11, 651, 62, 5219, 198, 6738, 13249, 1330, 9104, 29391, 628 ]
3.925926
27
''' MIT License Copyright (c) 2020 Rashid Lafraie Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish...
[ 7061, 6, 198, 36393, 13789, 198, 198, 15269, 357, 66, 8, 12131, 27620, 312, 31528, 430, 494, 198, 198, 5990, 3411, 318, 29376, 7520, 11, 1479, 286, 3877, 11, 284, 597, 1048, 16727, 257, 4866, 198, 1659, 428, 3788, 290, 3917, 10314, ...
3.820261
306
import os import sys import unittest import torch import torch._C from pathlib import Path from test_nnapi import TestNNAPI from torch.testing._internal.common_utils import TEST_WITH_ASAN # Make the helper files in test/ importable pytorch_test_dir = os.path.dirname(os.path.dirname(os.path.realpath(__file__))) sys.pa...
[ 11748, 28686, 198, 11748, 25064, 198, 11748, 555, 715, 395, 198, 198, 11748, 28034, 198, 11748, 28034, 13557, 34, 198, 6738, 3108, 8019, 1330, 10644, 198, 6738, 1332, 62, 20471, 15042, 1330, 6208, 6144, 17614, 198, 6738, 28034, 13, 33407,...
2.932153
339
train_data_path = "../data/no_cycle/train.data" dev_data_path = "../data/no_cycle/dev.data" test_data_path = "../data/no_cycle/test.data" word_idx_file_path = "../data/word.idx" word_embedding_dim = 100 train_batch_size = 32 dev_batch_size = 500 test_batch_size = 500 l2_lambda = 0.000001 learning_rate = 0.001 epoch...
[ 27432, 62, 7890, 62, 6978, 796, 366, 40720, 7890, 14, 3919, 62, 13696, 14, 27432, 13, 7890, 1, 198, 7959, 62, 7890, 62, 6978, 796, 366, 40720, 7890, 14, 3919, 62, 13696, 14, 7959, 13, 7890, 1, 198, 9288, 62, 7890, 62, 6978, 796, ...
2.40625
448
from PyQt5.QtWidgets import QLabel, QWidget, QGridLayout, QCheckBox, QGroupBox from InftyDoubleSpinBox import InftyDoubleSpinBox from PyQt5.QtCore import pyqtSignal, Qt import helplib as hl import numpy as np
[ 6738, 9485, 48, 83, 20, 13, 48, 83, 54, 312, 11407, 1330, 1195, 33986, 11, 1195, 38300, 11, 1195, 41339, 32517, 11, 1195, 9787, 14253, 11, 1195, 13247, 14253, 198, 6738, 554, 19628, 25628, 4561, 259, 14253, 1330, 554, 19628, 25628, 45...
2.75
76
import roslib roslib.load_manifest('sensor_msgs') roslib.load_manifest('dynamic_reconfigure') import rospy import sensor_msgs.msg import dynamic_reconfigure.srv import dynamic_reconfigure.encoding import numpy as np import time import os.path import queue def clear_queue(self): q = self.im_queue ...
[ 11748, 686, 6649, 571, 198, 4951, 8019, 13, 2220, 62, 805, 8409, 10786, 82, 22854, 62, 907, 14542, 11537, 198, 4951, 8019, 13, 2220, 62, 805, 8409, 10786, 67, 28995, 62, 260, 11250, 495, 11537, 198, 198, 11748, 686, 2777, 88, 198, 1...
2.368664
217
import argparse import logging import numpy as np import os import pandas as pd import random import subprocess from pathlib import Path from hyperopt import hp from hyperopt.pyll.stochastic import sample from hfta.hfht import (tune_hyperparameters, attach_common_args, rearrange_algorithm_kwarg...
[ 11748, 1822, 29572, 198, 11748, 18931, 198, 11748, 299, 32152, 355, 45941, 198, 11748, 28686, 198, 11748, 19798, 292, 355, 279, 67, 198, 11748, 4738, 198, 11748, 850, 14681, 198, 6738, 3108, 8019, 1330, 10644, 198, 198, 6738, 8718, 8738, ...
2.599359
312
# -*- coding: utf-8 -*- # Generated by Django 1.11.4 on 2018-03-06 04:00 from __future__ import unicode_literals from django.db import migrations, models
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 2, 2980, 515, 416, 37770, 352, 13, 1157, 13, 19, 319, 2864, 12, 3070, 12, 3312, 8702, 25, 405, 198, 6738, 11593, 37443, 834, 1330, 28000, 1098, 62, 17201, 874, 198, ...
2.736842
57
# # Copyright(c) 2020 Intel Corporation # SPDX-License-Identifier: BSD-3-Clause-Clear # from core.test_run_utils import TestRun from utils.installer import install_iotrace, check_if_installed from utils.iotrace import IotracePlugin from utils.misc import kill_all_io from test_tools.fio.fio import Fio
[ 2, 198, 2, 15069, 7, 66, 8, 12131, 8180, 10501, 198, 2, 30628, 55, 12, 34156, 12, 33234, 7483, 25, 347, 10305, 12, 18, 12, 2601, 682, 12, 19856, 198, 2, 198, 198, 6738, 4755, 13, 9288, 62, 5143, 62, 26791, 1330, 6208, 10987, 198...
2.990196
102
from models import Song from random import choice
[ 6738, 4981, 1330, 10940, 198, 6738, 4738, 1330, 3572, 198 ]
5
10
#!/usr/bin/python # custom_dialect.py import csv csv.register_dialect("hashes", delimiter="#") f = open('items3.csv', 'w') with f: writer = csv.writer(f, dialect="hashes") writer.writerow(("pencils", 2)) writer.writerow(("plates", 1)) writer.writerow(("books", 4))
[ 2, 48443, 14629, 14, 8800, 14, 29412, 198, 198, 2, 2183, 62, 38969, 478, 13, 9078, 198, 198, 11748, 269, 21370, 198, 198, 40664, 13, 30238, 62, 38969, 478, 7203, 71, 7465, 1600, 46728, 2676, 25698, 4943, 198, 198, 69, 796, 1280, 107...
2.4
120
from typing import Optional from flask_wtf import FlaskForm from wtforms import StringField, SelectField, SubmitField from wtforms.validators import DataRequired, Length, Email from servicex.models import UserModel
[ 6738, 19720, 1330, 32233, 198, 198, 6738, 42903, 62, 86, 27110, 1330, 46947, 8479, 198, 6738, 266, 83, 23914, 1330, 10903, 15878, 11, 9683, 15878, 11, 39900, 15878, 198, 6738, 266, 83, 23914, 13, 12102, 2024, 1330, 6060, 37374, 11, 2231...
4.037037
54
# -*- coding: utf-8 -*- from __future__ import absolute_import, print_function, division import os, sys import tensorflow as tf import tf_slim as slim from tensorflow.python.tools import freeze_graph sys.path.append('../../') from data.io.image_preprocess import short_side_resize_for_inference_data from libs.configs...
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 198, 6738, 11593, 37443, 834, 1330, 4112, 62, 11748, 11, 3601, 62, 8818, 11, 7297, 198, 198, 11748, 28686, 11, 25064, 198, 11748, 11192, 273, 11125, 355, 48700, 198, 117...
2.666667
252
""" Adapter Removal templates """ # AdapterRemoval # # {0}: executable # {1}: fastq1 abs # {2}: fastq2 abs # {3}: fastq1 # {4}: fastq2 # {5}: minimum length # {6}: mismatch_rate # {7}: min base uality # {8}: min merge_length __ADAPTER_REMOVAL__=""" {0} --collapse --file1 {1} --file2 {2} --outputstats {3}....
[ 37811, 198, 220, 220, 220, 43721, 46209, 24019, 198, 37811, 198, 198, 2, 43721, 8413, 8325, 220, 198, 2, 198, 2, 1391, 15, 38362, 28883, 198, 2, 1391, 16, 38362, 3049, 80, 16, 2352, 198, 2, 1391, 17, 38362, 3049, 80, 17, 2352, 198...
2.527273
220
# # 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 # ...
[ 2, 198, 2, 220, 220, 220, 49962, 739, 262, 24843, 13789, 11, 10628, 362, 13, 15, 357, 1169, 366, 34156, 15341, 345, 743, 198, 2, 220, 220, 220, 407, 779, 428, 2393, 2845, 287, 11846, 351, 262, 13789, 13, 921, 743, 7330, 198, 2, ...
3.045161
310
from os.path import join, abspath, dirname, exists from slybot import __version__ from setuptools import setup, find_packages from setuptools.command.bdist_egg import bdist_egg from setuptools.command.sdist import sdist install_requires = ['Scrapy', 'scrapely', 'loginform', 'lxml', 'jsonschema', ...
[ 6738, 28686, 13, 6978, 1330, 4654, 11, 2352, 6978, 11, 26672, 3672, 11, 7160, 198, 6738, 49822, 13645, 1330, 11593, 9641, 834, 198, 6738, 900, 37623, 10141, 1330, 9058, 11, 1064, 62, 43789, 198, 6738, 900, 37623, 10141, 13, 21812, 13, ...
2.382003
589
import torch import torch.nn as nn from .yolo_layer import * from .yolov3_base import * ################################################################### ## Backbone and helper modules
[ 11748, 28034, 198, 11748, 28034, 13, 20471, 355, 299, 77, 198, 198, 6738, 764, 88, 14057, 62, 29289, 1330, 1635, 198, 6738, 764, 88, 349, 709, 18, 62, 8692, 1330, 1635, 628, 198, 29113, 29113, 21017, 198, 2235, 5157, 15992, 290, 31904...
4.288889
45
import os import pytest from modelkit.assets import errors from tests.conftest import skip_unless
[ 11748, 28686, 198, 198, 11748, 12972, 9288, 198, 198, 6738, 2746, 15813, 13, 19668, 1330, 8563, 198, 6738, 5254, 13, 1102, 701, 395, 1330, 14267, 62, 25252, 628, 628, 198 ]
3.466667
30
from django.test import TestCase from django.contrib.auth.models import User from wiki.models import Page # Create your tests here. def test_detail_page(self): """ Test to see if slug generated when saving a Page.""" # Create a user and save to the database user = User.objects.create() user.save() ...
[ 6738, 42625, 14208, 13, 9288, 1330, 6208, 20448, 198, 6738, 42625, 14208, 13, 3642, 822, 13, 18439, 13, 27530, 1330, 11787, 198, 6738, 22719, 13, 27530, 1330, 7873, 628, 198, 2, 13610, 534, 5254, 994, 13, 198, 4299, 1332, 62, 49170, 6...
2.835443
553
from .multiarmedbandit import MultiArmedBandit from .eps_greedy_constant_stepsize import EpsilonGreedyConstantStepsize from .greedy_constant_stepsize import GreedyConstantStepsize from .epsilon_greedy_average_step import EpsilonGreedyAverageStep from .greedy_average_step import GreedyAverageStep from .greedy_bayes_upd...
[ 6738, 764, 41684, 12026, 3903, 270, 1330, 15237, 3163, 1150, 31407, 270, 198, 198, 6738, 764, 25386, 62, 16694, 4716, 62, 9979, 415, 62, 9662, 7857, 1330, 43427, 33576, 43887, 4716, 3103, 18797, 8600, 7857, 198, 6738, 764, 16694, 4716, ...
3.352
125
from datetime import datetime from django.core.exceptions import FieldError from django.db.models import CharField, F, Q from django.db.models.expressions import SimpleCol from django.db.models.fields.related_lookups import RelatedIsNull from django.db.models.functions import Lower from django.db.models.lookups import...
[ 6738, 4818, 8079, 1330, 4818, 8079, 198, 198, 6738, 42625, 14208, 13, 7295, 13, 1069, 11755, 1330, 7663, 12331, 198, 6738, 42625, 14208, 13, 9945, 13, 27530, 1330, 3178, 15878, 11, 376, 11, 1195, 198, 6738, 42625, 14208, 13, 9945, 13, ...
3.394118
170
# This notebook implements a proof-of-principle for # Multi-Agent Common Knowledge Reinforcement Learning (MACKRL) # The entire notebook can be executed online, no need to download anything # http://pytorch.org/ from itertools import chain import torch import torch.nn.functional as F from torch.multiprocessing import...
[ 2, 770, 20922, 23986, 257, 6617, 12, 1659, 12, 1050, 1939, 2480, 329, 198, 2, 15237, 12, 36772, 8070, 20414, 22299, 13442, 18252, 357, 44, 8120, 7836, 8, 198, 2, 383, 2104, 20922, 460, 307, 10945, 2691, 11, 645, 761, 284, 4321, 1997...
2.473502
868
import sys import os import glob import json from robot import rebot from robot.api import TestSuite sys.path.append(os.path.join(os.path.dirname(__file__), '..')) if __name__ == "__main__": main_suite = TestSuite('School Bus Scenario') main_suite.resource.imports.library('lib/simulation.py') testcas...
[ 11748, 25064, 198, 11748, 28686, 198, 11748, 15095, 198, 11748, 33918, 198, 6738, 9379, 1330, 3405, 313, 198, 6738, 9379, 13, 15042, 1330, 6208, 5606, 578, 198, 17597, 13, 6978, 13, 33295, 7, 418, 13, 6978, 13, 22179, 7, 418, 13, 6978...
2.560193
1,246
# The purpose of this script is to check all the maintenance branches of the # given repository, and find which pull requests are included in which # branches. The output is a JSON file that contains for each pull request the # list of all branches in which it is included. We look specifically for the # message "Merge ...
[ 2, 383, 4007, 286, 428, 4226, 318, 284, 2198, 477, 262, 9262, 13737, 286, 262, 198, 2, 1813, 16099, 11, 290, 1064, 543, 2834, 7007, 389, 3017, 287, 543, 198, 2, 13737, 13, 383, 5072, 318, 257, 19449, 2393, 326, 4909, 329, 1123, 28...
2.649374
1,118
from datetime import datetime as dt import os import numpy as np import settings
[ 6738, 4818, 8079, 1330, 4818, 8079, 355, 288, 83, 198, 11748, 28686, 198, 198, 11748, 299, 32152, 355, 45941, 198, 198, 11748, 6460, 628, 198 ]
3.4
25
#----------------------------------------------------------------------------- # Copyright (c) 2013-2020, PyInstaller Development Team. # # Distributed under the terms of the GNU General Public License (version 2 # or later) with exception for distributing the bootloader. # # The full license is in the file COPYING.txt...
[ 2, 10097, 32501, 198, 2, 15069, 357, 66, 8, 2211, 12, 42334, 11, 9485, 15798, 263, 7712, 4816, 13, 198, 2, 198, 2, 4307, 6169, 739, 262, 2846, 286, 262, 22961, 3611, 5094, 13789, 357, 9641, 362, 198, 2, 393, 1568, 8, 351, 6631, ...
3.445026
382
import inspect def get_default_args(func): """Get default arguments of a function. """ signature = inspect.signature(func) return { k: v.default for k, v in signature.parameters.items() if v.default is not inspect.Parameter.empty }
[ 11748, 10104, 628, 198, 4299, 651, 62, 12286, 62, 22046, 7, 20786, 2599, 198, 220, 220, 220, 37227, 3855, 4277, 7159, 286, 257, 2163, 13, 198, 220, 220, 220, 37227, 198, 220, 220, 220, 9877, 796, 10104, 13, 12683, 1300, 7, 20786, 8,...
2.598131
107
""" Utilizando Lambdas Conhecidas por Expresses Lambdas, ou simplesmente Lambdas, so funes sem nome, ou seja, funes annimas. # Funo em Python def funcao(x): return 3 * x + 1 print(funcao(4)) print(funcao(7)) # Expresso Lambda lambda x: 3 * x + 1 # Como utlizar a expresso lambda? calc = lambda x: 3 * x + 1...
[ 37811, 198, 18274, 346, 528, 25440, 21114, 67, 292, 198, 198, 3103, 258, 66, 24496, 16964, 10604, 274, 21114, 67, 292, 11, 267, 84, 985, 2374, 434, 68, 21114, 67, 292, 11, 523, 1257, 274, 5026, 299, 462, 11, 267, 84, 384, 6592, 11...
2.307868
877
# Lista dentro de dicionrio campeonato = dict() gol = [] aux = 0 campeonato['Jogador'] = str(input('Digite o nome do jogador: ')) print() partidas = int(input('Quantas partidas ele jogou? ')) print() for i in range(0, partidas): aux = int(input(f'Quantos gols na partida {i + 1}? ')) gol.append(aux) p...
[ 2, 7343, 64, 18794, 305, 390, 288, 47430, 27250, 201, 198, 20991, 431, 261, 5549, 796, 8633, 3419, 201, 198, 70, 349, 796, 17635, 201, 198, 14644, 796, 657, 201, 198, 20991, 431, 261, 5549, 17816, 41, 519, 7079, 20520, 796, 965, 7, ...
2.233062
369
import numpy
[ 11748, 299, 32152, 628 ]
3.5
4
import helpers import json import re datfilepath = "../github-data/labRepos_CreationHistory.json" allData = {} # Check for and read existing data file allData = helpers.read_existing(datfilepath) # Read repo info data file (to use as repo list) dataObj = helpers.read_json("../github-data/labReposInfo.json") # Popul...
[ 11748, 49385, 198, 11748, 33918, 198, 11748, 302, 198, 198, 19608, 7753, 6978, 796, 366, 40720, 12567, 12, 7890, 14, 23912, 6207, 418, 62, 12443, 341, 18122, 13, 17752, 1, 198, 439, 6601, 796, 23884, 198, 198, 2, 6822, 329, 290, 1100,...
2.765256
1,819
#! /usr/bin/env python2.7 from __future__ import print_function import sys sys.path.append("../../include") import PyBool_public_interface as Bool if __name__ == "__main__": expr = Bool.parse_std("input.txt") expr = expr["main_expr"] expr = Bool.simplify(expr) expr = Bool.nne(expr) print(Bo...
[ 2, 0, 1220, 14629, 14, 8800, 14, 24330, 21015, 17, 13, 22, 628, 198, 6738, 11593, 37443, 834, 1330, 3601, 62, 8818, 198, 198, 11748, 25064, 198, 17597, 13, 6978, 13, 33295, 7203, 40720, 40720, 17256, 4943, 198, 198, 11748, 9485, 33, ...
2.507353
136
from tkinter import * import random import time from PIL import Image from datetime import datetime from tinydb import * import os import pickle #from database1 import * from random import randint root = Tk() root.geometry("1600x800+0+0") root.title("Suman_dai_ko_DHOKAN") root.configure(bg="goldenrod4") text_Input =...
[ 6738, 256, 74, 3849, 1330, 1635, 198, 11748, 4738, 198, 11748, 640, 198, 6738, 350, 4146, 1330, 7412, 198, 6738, 4818, 8079, 1330, 4818, 8079, 198, 6738, 7009, 9945, 1330, 1635, 198, 11748, 28686, 198, 11748, 2298, 293, 198, 2, 6738, ...
2.419107
7,683
import torch import torch.nn as nn from mmcv.cnn import normal_init from mmdet.core import distance2bbox, force_fp32, multi_apply, multiclass_nms, bbox_overlaps from ..builder import build_loss from ..registry import HEADS from ..utils import ConvModule, Scale, bias_init_with_prob from IPython import embed INF = 1e8
[ 11748, 28034, 198, 11748, 28034, 13, 20471, 355, 299, 77, 198, 6738, 8085, 33967, 13, 66, 20471, 1330, 3487, 62, 15003, 198, 198, 6738, 8085, 15255, 13, 7295, 1330, 5253, 17, 65, 3524, 11, 2700, 62, 46428, 2624, 11, 5021, 62, 39014, ...
3.106796
103
from . import db from sqlalchemy.dialects.mysql import LONGTEXT
[ 6738, 764, 1330, 20613, 198, 6738, 44161, 282, 26599, 13, 38969, 478, 82, 13, 28744, 13976, 1330, 44533, 32541, 628, 628 ]
3.190476
21
import pandas as pd import numpy as np import plotly.offline as pyo import plotly.graph_objs as go df= pd.read_csv("Data/nst-est2017-alldata.csv") df2=df[df["DIVISION"] == '1'] df2.set_index("NAME",inplace=True) list_of_pop_col=[col for col in df2.columns if col.startswith('POP')] df2=df2[list_of_pop_col] data=[go....
[ 11748, 19798, 292, 355, 279, 67, 198, 11748, 299, 32152, 355, 45941, 198, 11748, 7110, 306, 13, 2364, 1370, 355, 279, 8226, 198, 11748, 7110, 306, 13, 34960, 62, 672, 8457, 355, 467, 628, 198, 7568, 28, 279, 67, 13, 961, 62, 40664, ...
2.030172
232
""" test_markup ~~~~~~~~~~~ Test various Sphinx-specific markup extensions. :copyright: Copyright 2007-2021 by the Sphinx team, see AUTHORS. :license: BSD, see LICENSE for details. """ import re import pytest from docutils import frontend, nodes, utils from docutils.parsers.rst import Parser as ...
[ 37811, 198, 220, 220, 220, 1332, 62, 4102, 929, 198, 220, 220, 220, 220, 15116, 4907, 93, 628, 220, 220, 220, 6208, 2972, 45368, 28413, 12, 11423, 41485, 18366, 13, 628, 220, 220, 220, 1058, 22163, 4766, 25, 15069, 4343, 12, 1238, 2...
2.246112
2,186
from pandac.PandaModules import PStatCollector from direct.directnotify.DirectNotifyGlobal import directNotify from direct.showbase.PythonUtil import Queue, invertDictLossless, makeFlywheelGen from direct.showbase.PythonUtil import itype, serialNum, safeRepr, fastRepr from direct.showbase.Job import Job import types, w...
[ 6738, 19798, 330, 13, 47, 5282, 5841, 5028, 1330, 350, 17126, 31337, 273, 198, 6738, 1277, 13, 12942, 1662, 1958, 13, 13470, 3673, 1958, 22289, 1330, 1277, 3673, 1958, 198, 6738, 1277, 13, 12860, 8692, 13, 37906, 18274, 346, 1330, 4670,...
2.517745
479
# sql/default_comparator.py # Copyright (C) 2005-2018 the SQLAlchemy authors and contributors # <see AUTHORS file> # # This module is part of SQLAlchemy and is released under # the MIT License: http://www.opensource.org/licenses/mit-license.php """Default implementation of SQL comparison operations. """ from .. impor...
[ 2, 44161, 14, 12286, 62, 785, 1845, 1352, 13, 9078, 198, 2, 15069, 357, 34, 8, 5075, 12, 7908, 262, 16363, 2348, 26599, 7035, 290, 20420, 198, 2, 1279, 3826, 37195, 20673, 2393, 29, 198, 2, 198, 2, 770, 8265, 318, 636, 286, 16363,...
2.438232
1,878
from django.contrib.auth.validators import UnicodeUsernameValidator from rest_framework import serializers from django.contrib.auth.models import User from recipes.models import Recipe, Ingredient, Step
[ 6738, 42625, 14208, 13, 3642, 822, 13, 18439, 13, 12102, 2024, 1330, 34371, 5842, 13292, 47139, 1352, 198, 6738, 1334, 62, 30604, 1330, 11389, 11341, 198, 6738, 42625, 14208, 13, 3642, 822, 13, 18439, 13, 27530, 1330, 11787, 198, 198, 6...
3.781818
55
import numpy as np import pytest import torch from mmpose.models import TemporalRegressionHead def test_temporal_regression_head(): """Test temporal head.""" head = TemporalRegressionHead( in_channels=1024, num_joints=17, loss_keypoint=dict(type='MPJPELoss', use_target_wei...
[ 11748, 299, 32152, 355, 45941, 201, 198, 11748, 12972, 9288, 201, 198, 11748, 28034, 201, 198, 201, 198, 6738, 285, 3149, 577, 13, 27530, 1330, 5825, 35738, 8081, 2234, 13847, 201, 198, 201, 198, 201, 198, 4299, 1332, 62, 11498, 35738, ...
2.196809
752
# -*- coding: utf-8 -*- # Generated by Django 1.10.2 on 2016-10-31 23:20 from __future__ import unicode_literals from django.db import migrations
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 2, 2980, 515, 416, 37770, 352, 13, 940, 13, 17, 319, 1584, 12, 940, 12, 3132, 2242, 25, 1238, 198, 6738, 11593, 37443, 834, 1330, 28000, 1098, 62, 17201, 874, 198, 1...
2.690909
55
# Your SnakeGame object will be instantiated and called as such: # obj = SnakeGame(width, height, food) # param_1 = obj.move(direction)
[ 198, 198, 2, 3406, 16705, 8777, 2134, 481, 307, 9113, 12931, 290, 1444, 355, 884, 25, 198, 2, 26181, 796, 16705, 8777, 7, 10394, 11, 6001, 11, 2057, 8, 198, 2, 5772, 62, 16, 796, 26181, 13, 21084, 7, 37295, 8 ]
3.341463
41
from itertools import ( chain, ) import logging from azul import ( config, require, ) from azul.logging import ( configure_script_logging, ) from azul.terra import ( TDRClient, TDRSourceName, ) log = logging.getLogger(__name__) if __name__ == '__main__': main()
[ 6738, 340, 861, 10141, 1330, 357, 198, 220, 220, 220, 6333, 11, 198, 8, 198, 11748, 18931, 198, 198, 6738, 35560, 377, 1330, 357, 198, 220, 220, 220, 4566, 11, 198, 220, 220, 220, 2421, 11, 198, 8, 198, 6738, 35560, 377, 13, 6404,...
2.418033
122
""" Tools to "play notes for the editor clef", which may be thought of as "executing editor commands". NOTE: in the below, we often connect notes together "manually", i.e. using NoteSlur(..., previous_hash). As an alternative, we could consider `nouts_for_notes`. """ from s_address import node_for_s_address, s_dfs f...
[ 37811, 198, 33637, 284, 366, 1759, 4710, 329, 262, 5464, 1190, 69, 1600, 543, 743, 307, 1807, 286, 355, 366, 18558, 15129, 5464, 9729, 1911, 198, 198, 16580, 25, 287, 262, 2174, 11, 356, 1690, 2018, 4710, 1978, 366, 805, 935, 1600, ...
2.625344
363
"""Base for all Classes. Base mainly includes the description fields """ import logging from typing import Optional from .log import Log # type: ignore
[ 37811, 14881, 329, 477, 38884, 13, 198, 198, 14881, 8384, 3407, 262, 6764, 7032, 198, 37811, 198, 11748, 18931, 198, 6738, 19720, 1330, 32233, 198, 198, 6738, 764, 6404, 1330, 5972, 220, 1303, 2099, 25, 8856, 628 ]
4.216216
37
import subprocess import re programs = input('Separe the programs with a space: ').split() secure_pattern = '[\w\d]' for program in programs: if not re.match(secure_pattern, program): print("Sorry we can't check that program") continue process = subprocess. run( ['which', program],...
[ 11748, 850, 14681, 198, 11748, 302, 198, 198, 23065, 82, 796, 5128, 10786, 19117, 533, 262, 4056, 351, 257, 2272, 25, 705, 737, 35312, 3419, 198, 198, 22390, 62, 33279, 796, 44438, 59, 86, 59, 67, 49946, 198, 198, 1640, 1430, 287, 4...
2.683983
231
from __future__ import absolute_import from django import forms from authentication.account.forms import BaseSignupForm from . import app_settings, signals from .adapter import get_adapter from .models import SocialAccount
[ 6738, 11593, 37443, 834, 1330, 4112, 62, 11748, 198, 198, 6738, 42625, 14208, 1330, 5107, 198, 198, 6738, 18239, 13, 23317, 13, 23914, 1330, 7308, 11712, 929, 8479, 198, 198, 6738, 764, 1330, 598, 62, 33692, 11, 10425, 198, 6738, 764, ...
4
57
#!/usr/bin/env python """ Provides the primary interface into the library """ from __future__ import annotations import asyncio import logging from typing import Callable, Optional, Union from . import utils from . import controllers from .networking.connection import Connection from .networking.types import SSDPRes...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 198, 37811, 47081, 262, 4165, 7071, 656, 262, 5888, 37227, 198, 198, 6738, 11593, 37443, 834, 1330, 37647, 198, 198, 11748, 30351, 952, 198, 11748, 18931, 198, 6738, 19720, 1330, 4889, 540, 1...
2.614343
1,255
# Lista celulares # O departamento de marketing da sua empresa est interessado em obter apenas os nmeros de telefone celular, separando-os dos telefones fixos. Para simplificar esta operao sero considerados nmeros de celular apenas aqueles que, aps o cdigo de rea, iniciarem com o dgito adicional 9. # Voc recebeu a tare...
[ 2, 7343, 64, 18725, 377, 3565, 198, 2, 440, 6313, 3263, 78, 390, 7124, 12379, 424, 64, 795, 79, 14625, 1556, 493, 68, 601, 4533, 795, 909, 353, 2471, 268, 292, 28686, 299, 647, 418, 390, 5735, 69, 505, 18725, 934, 11, 2880, 25440,...
2.553459
636
import csv _iso_639_1_codes_file = open("files/ISO-639-1_Codes.csv", mode='r') _iso_639_1_codes_dictreader = csv.DictReader(_iso_639_1_codes_file) _iso_639_1_codes_dict: dict = {} for _row in _iso_639_1_codes_dictreader: _iso_639_1_codes_dict[_row['ISO-639-1 Code']] = _row['Language'] print(str(_iso_639_1_codes_...
[ 11748, 269, 21370, 198, 198, 62, 26786, 62, 21, 2670, 62, 16, 62, 40148, 62, 7753, 796, 1280, 7203, 16624, 14, 40734, 12, 21, 2670, 12, 16, 62, 34, 4147, 13, 40664, 1600, 4235, 11639, 81, 11537, 198, 62, 26786, 62, 21, 2670, 62, ...
2.116883
154
import time import torch import warnings import numpy as np from tianshou.env import BaseVectorEnv from tianshou.data import Batch, ReplayBuffer,\ ListReplayBuffer from tianshou.utils import MovAvg
[ 11748, 640, 198, 11748, 28034, 198, 11748, 14601, 198, 11748, 299, 32152, 355, 45941, 198, 6738, 256, 1547, 15710, 13, 24330, 1330, 7308, 38469, 4834, 85, 198, 6738, 256, 1547, 15710, 13, 7890, 1330, 347, 963, 11, 23635, 28632, 11, 59, ...
3.383333
60
from drink_partners.contrib.samples import partner_bar_legal
[ 6738, 4144, 62, 3911, 2741, 13, 3642, 822, 13, 82, 12629, 1330, 5212, 62, 5657, 62, 18011, 628 ]
3.444444
18
# -*- coding: utf-8 -*- # !/usr/bin/python ################################### PART0 DESCRIPTION ################################# # Filename: class_create_model_of_logistic_regression.py # Description: # # Author: Shuai Yuan # E-mail: ysh329@sina.com # Create: 2016-01-23 23:32:49 # Last: __author__ = 'yuens' ######...
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 2, 5145, 14, 14629, 14, 8800, 14, 29412, 198, 29113, 21017, 16652, 15, 22196, 40165, 1303, 29113, 198, 2, 7066, 12453, 25, 1398, 62, 17953, 62, 19849, 62, 1659, 62, 64...
3.763158
228
import multiprocessing from typing import List, Optional import numpy as np from ..util import dill_for_apply
[ 11748, 18540, 305, 919, 278, 198, 6738, 19720, 1330, 7343, 11, 32233, 198, 198, 11748, 299, 32152, 355, 45941, 198, 198, 6738, 11485, 22602, 1330, 288, 359, 62, 1640, 62, 39014, 628, 198 ]
3.454545
33
# 377 Combination Sum IV # Given an integer array with all positive numbers and no duplicates, # find the number of possible combinations that add up to a positive integer target. # # Example: # # nums = [1, 2, 3] # target = 4 # # The possible combination ways are: # (1, 1, 1, 1) # (1, 1, 2) # (1, 2, 1) # (1, 3) # (2,...
[ 2, 42163, 14336, 1883, 5060, 8363, 198, 198, 2, 11259, 281, 18253, 7177, 351, 477, 3967, 3146, 290, 645, 14184, 16856, 11, 198, 2, 1064, 262, 1271, 286, 1744, 17790, 326, 751, 510, 284, 257, 3967, 18253, 2496, 13, 198, 2, 198, 2, ...
3.076577
222
from conans import ConanFile, CMake, tools import os STATIC_LIBS = ["nvtt", "squish", "rg_etc1", "nvimage", "bc6h", "posh", "bc7", "nvmath", "nvthread", "nvcore"] SHARED_LIBS = ["nvtt", "nvimage", "nvthread", "nvmath", "nvcore"]
[ 6738, 369, 504, 1330, 31634, 8979, 11, 327, 12050, 11, 4899, 198, 11748, 28686, 198, 198, 35744, 2149, 62, 31271, 4462, 796, 14631, 48005, 926, 1600, 366, 16485, 680, 1600, 366, 41345, 62, 14784, 16, 1600, 366, 48005, 9060, 1600, 366, ...
2.247706
109
#!/usr/bin/env python3 """ train_args.py train_args.py command-line args. """ import argparse def get_args(): """ """ parser = argparse.ArgumentParser( description="This script lets you train and save your model.", usage="python3 train.py flowers/train --gpu --learning_rate 0.001 --epochs...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 18, 198, 37811, 4512, 62, 22046, 13, 9078, 198, 27432, 62, 22046, 13, 9078, 3141, 12, 1370, 26498, 13, 198, 37811, 198, 198, 11748, 1822, 29572, 198, 198, 4299, 651, 62, 22046, 33529, 198, ...
1.780653
1,623
from django.http import HttpResponseRedirect from django.conf import settings from django.views.generic import TemplateView from apps.payment.models import PaymentLog from apps.payment.stripe import get_token, get_payment_charge from apps.subscription.views import start_subscription
[ 6738, 42625, 14208, 13, 4023, 1330, 367, 29281, 31077, 7738, 1060, 198, 6738, 42625, 14208, 13, 10414, 1330, 6460, 198, 6738, 42625, 14208, 13, 33571, 13, 41357, 1330, 37350, 7680, 198, 198, 6738, 6725, 13, 37301, 13, 27530, 1330, 28784, ...
3.878378
74
from django.apps import AppConfig
[ 6738, 42625, 14208, 13, 18211, 1330, 2034, 16934, 198 ]
3.777778
9
# -*- coding: utf-8 -*- """Console script for secure_data_store.""" import click from . import secure_data_store as sds CONFIG='~/.sdsrc' main()
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 37811, 47581, 4226, 329, 5713, 62, 7890, 62, 8095, 526, 15931, 198, 11748, 3904, 198, 6738, 764, 1330, 5713, 62, 7890, 62, 8095, 355, 264, 9310, 198, 198, 10943, 16254, ...
2.625
56
#!/usr/bin/env python # # ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ # # Michael A.G. Aivazis # California Institute of Technology # (C) 1998-2003 All Rights Reserved # # <LicenseText> # # ~~~~~~~~~~~~~~~~~...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 198, 2, 198, 2, 220, 27156, 27156, 27156, 27156, 27156, 198, 2, 198, 2, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2...
2.81068
206
# 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 ownership. The ASF licenses this file # to you under the Apache License, Version 2.0 (the # "License"); you may...
[ 2, 220, 49962, 284, 262, 24843, 10442, 5693, 357, 1921, 37, 8, 739, 530, 198, 2, 220, 393, 517, 18920, 5964, 11704, 13, 220, 4091, 262, 28536, 2393, 198, 2, 220, 9387, 351, 428, 670, 329, 3224, 1321, 198, 2, 220, 5115, 6634, 9238,...
3.602564
312
# coding=utf-8 # *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** import warnings import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union, overload from .. import...
[ 2, 19617, 28, 40477, 12, 23, 198, 2, 17202, 39410, 25, 428, 2393, 373, 7560, 416, 262, 21624, 12994, 24118, 687, 10290, 357, 27110, 5235, 8, 16984, 13, 17202, 198, 2, 17202, 2141, 407, 4370, 416, 1021, 4556, 345, 821, 1728, 345, 760...
2.625
760
#!/usr/bin/env python # Copyright 2008 Orbitz WorldWide # # 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, 48443, 14629, 14, 8800, 14, 24330, 21015, 198, 2, 15069, 3648, 38161, 89, 2159, 42559, 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, ...
3.1081
3,506
from PIL import Image import csv from ast import literal_eval as make_tuple from math import sqrt import argparse import os.path if __name__ == '__main__': args = handle_arguments() path = args.image emoji_list = [] with open('proc.csv') as raw_list: emoji_list = [] reader = csv.re...
[ 6738, 350, 4146, 1330, 7412, 198, 11748, 269, 21370, 198, 6738, 6468, 1330, 18875, 62, 18206, 355, 787, 62, 83, 29291, 198, 6738, 10688, 1330, 19862, 17034, 198, 11748, 1822, 29572, 198, 11748, 28686, 13, 6978, 628, 628, 628, 198, 361, ...
2.415323
248
# Xlib.ext.xinput -- XInput extension module # # Copyright (C) 2012 Outpost Embedded, LLC # Forest Bond <forest.bond@rapidrollout.com> # # This library is free software; you can redistribute it and/or # modify it under the terms of the GNU Lesser General Public License # as published by the Free Software...
[ 2, 1395, 8019, 13, 2302, 13, 87, 15414, 1377, 1395, 20560, 7552, 8265, 201, 198, 2, 201, 198, 2, 220, 220, 220, 15069, 357, 34, 8, 2321, 3806, 7353, 13302, 47238, 11, 11419, 201, 198, 2, 220, 220, 220, 220, 220, 9115, 12812, 1279,...
2.331232
3,173
from .loader import load
[ 6738, 764, 29356, 1330, 3440 ]
4.8
5
# Generated by Django 3.0.4 on 2020-04-16 23:10 from django.db import migrations
[ 2, 2980, 515, 416, 37770, 513, 13, 15, 13, 19, 319, 12131, 12, 3023, 12, 1433, 2242, 25, 940, 198, 198, 6738, 42625, 14208, 13, 9945, 1330, 15720, 602, 628 ]
2.766667
30
# @Time : 2022/1/26 23:07 # @Author : zhaoyu # @Site : # @File : __init__.py.py # @Software: PyCharm # @Note : xx
[ 2, 2488, 7575, 220, 220, 220, 1058, 33160, 14, 16, 14, 2075, 2242, 25, 2998, 220, 198, 2, 2488, 13838, 220, 1058, 1976, 3099, 726, 84, 198, 2, 2488, 29123, 220, 220, 220, 1058, 220, 198, 2, 2488, 8979, 220, 220, 220, 1058, 11593, ...
1.897059
68
from typing import Union from unittest import mock import graphene import pytest from django.core.exceptions import ValidationError from django.db.models import Q from django.template.defaultfilters import slugify from graphene.utils.str_converters import to_camel_case from saleor.core.taxes import zero_money from sa...
[ 6738, 19720, 1330, 4479, 198, 6738, 555, 715, 395, 1330, 15290, 198, 198, 11748, 42463, 198, 11748, 12972, 9288, 198, 6738, 42625, 14208, 13, 7295, 13, 1069, 11755, 1330, 3254, 24765, 12331, 198, 6738, 42625, 14208, 13, 9945, 13, 27530, ...
2.242192
9,509
import os import json import cv2 import logging import boto3 import botocore s3 = boto3.client('s3') logger = logging.getLogger() logger.setLevel(logging.INFO) def upload_file(file_name, bucket, object_name=None): """Upload a file to an S3 bucket :param file_name: File to upload :param bucket: Bucket to ...
[ 11748, 28686, 198, 11748, 33918, 198, 11748, 269, 85, 17, 198, 11748, 18931, 198, 11748, 275, 2069, 18, 198, 11748, 10214, 420, 382, 198, 198, 82, 18, 796, 275, 2069, 18, 13, 16366, 10786, 82, 18, 11537, 198, 6404, 1362, 796, 18931, ...
2.677524
307
from pyinstrument import Profiler p = Profiler(use_signal=False) p.start() func(900) p.stop() print(p.output_text()) with open('overflow_out.html', 'w') as f: f.write(p.output_html())
[ 6738, 12972, 259, 43872, 1330, 4415, 5329, 198, 198, 79, 796, 4415, 5329, 7, 1904, 62, 12683, 282, 28, 25101, 8, 198, 198, 79, 13, 9688, 3419, 198, 198, 20786, 7, 12865, 8, 198, 198, 79, 13, 11338, 3419, 198, 198, 4798, 7, 79, 1...
2.365854
82
#!/usr/bin/env python3 # SPDX-License-Identifier: BSD-2-Clause # # Copyright (c) 2019, Linaro Limited # from __future__ import print_function from __future__ import division import argparse import sys import struct import re import hashlib try: from elftools.elf.elffile import ELFFile from elftools.elf.consta...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 18, 198, 2, 30628, 55, 12, 34156, 12, 33234, 7483, 25, 347, 10305, 12, 17, 12, 2601, 682, 198, 2, 198, 2, 15069, 357, 66, 8, 13130, 11, 5164, 12022, 15302, 198, 2, 198, 198, 6738, 115...
2.888298
376
# The MIT License (MIT) # # Copyright (c) 2020 Jeff Epler for Adafruit Industries LLC # # 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 r...
[ 2, 383, 17168, 13789, 357, 36393, 8, 198, 2, 198, 2, 15069, 357, 66, 8, 12131, 5502, 412, 20053, 329, 1215, 1878, 4872, 20171, 11419, 198, 2, 198, 2, 2448, 3411, 318, 29376, 7520, 11, 1479, 286, 3877, 11, 284, 597, 1048, 16727, 25...
3.804416
317
# --- Klassendeklaration mit Konstruktor --- # # --- Instanziierung einer Klasse ---# # --- Ich bevorzuge die Initialisierung mit den Keywords --- # pc_instanz = PC(cpu='Ryzen 7', gpu='RTX2070Super', ram='GSkill') # --- Zugriff auf normale _public_ Attribute --- # print(pc_instanz.cpu) print(pc_instanz.gpu) # --- Z...
[ 2, 11420, 14770, 562, 437, 988, 75, 10186, 10255, 17431, 19554, 74, 13165, 11420, 1303, 628, 198, 2, 11420, 2262, 272, 17027, 959, 2150, 304, 7274, 14770, 21612, 11420, 2, 198, 2, 11420, 26364, 307, 20867, 89, 2217, 4656, 20768, 271, ...
2.573705
251