content
stringlengths
1
1.04M
input_ids
listlengths
1
774k
ratio_char_token
float64
0.38
22.9
token_count
int64
1
774k
import functools num_plus = 0 @functools.lru_cache(maxsize = None)
[ 11748, 1257, 310, 10141, 198, 198, 22510, 62, 9541, 796, 657, 198, 31, 12543, 310, 10141, 13, 75, 622, 62, 23870, 7, 9806, 7857, 796, 6045, 8, 198 ]
2.428571
28
from matplotlib.offsetbox import OffsetImage, AnnotationBbox from matplotlib.patches import RegularPolygon from PIL import Image import matplotlib.pyplot as plt import numpy as np import os IM_SCALE = 0.25 ################################################################ # no margins from skimage.transform import r...
[ 6738, 2603, 29487, 8019, 13, 28968, 3524, 1330, 3242, 2617, 5159, 11, 1052, 38983, 33, 3524, 198, 6738, 2603, 29487, 8019, 13, 8071, 2052, 1330, 23603, 34220, 14520, 198, 6738, 350, 4146, 1330, 7412, 198, 198, 11748, 2603, 29487, 8019, ...
3.927711
83
import subprocess import requests import time import importlib importlib.import_module("scanner") import scanner template = """ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev update_config=1 country=CZ network={{ bssid={1} ssid="{0}" key_mgmt=WPA-EAP pairwise=CCMP TKIP group=CCMP TKIP eap=PEAP ...
[ 11748, 850, 14681, 198, 11748, 7007, 198, 11748, 640, 198, 11748, 1330, 8019, 198, 198, 11748, 8019, 13, 11748, 62, 21412, 7203, 35836, 1008, 4943, 198, 11748, 27474, 198, 198, 28243, 796, 37227, 44755, 62, 39994, 28, 34720, 33223, 7785, ...
2.114914
409
from django.db import models from django.urls import reverse from django.utils.functional import cached_property from entities.models import Person, Institution from .controlled_vocabs import * class RepoObject(models.Model): """ An abstract class providing properties for subclasses. """ has_title = m...
[ 6738, 42625, 14208, 13, 9945, 1330, 4981, 198, 6738, 42625, 14208, 13, 6371, 82, 1330, 9575, 198, 6738, 42625, 14208, 13, 26791, 13, 45124, 1330, 39986, 62, 26745, 198, 6738, 12066, 13, 27530, 1330, 7755, 11, 29426, 198, 6738, 764, 1440...
2.596605
3,240
number0 = int(input("Primeiro número: ")) number1 = int(input("Segundo número: ")) x = 1 result = 0 while x <= number1: r = result + number0 x = x + 1 print("%d x %d = %d" % (number0, number1, result))
[ 17618, 15, 796, 493, 7, 15414, 7203, 26405, 7058, 299, 21356, 647, 78, 25, 366, 4008, 198, 17618, 16, 796, 493, 7, 15414, 7203, 41030, 41204, 299, 21356, 647, 78, 25, 366, 4008, 198, 87, 796, 352, 198, 20274, 796, 657, 198, 4514, ...
2.333333
90
def validate_time_settings(implicitly_wait, timeout, poll_frequency): """Verifies that implicitly_wait isn't larger than timeout or poll_frequency.""" if poll_frequency < implicitly_wait: raise TypeError( "Driver implicitly_wait {} is longer than poll_frequency {}".format( im...
[ 4299, 26571, 62, 2435, 62, 33692, 7, 23928, 3628, 306, 62, 17077, 11, 26827, 11, 3278, 62, 35324, 2599, 198, 220, 220, 220, 37227, 13414, 6945, 326, 31821, 62, 17077, 2125, 470, 4025, 621, 26827, 393, 3278, 62, 35324, 526, 15931, 198,...
2.495763
236
from django.core.management.base import BaseCommand from usaspending_api.common.helpers.endpoint_documentation import ( CURRENT_ENDPOINT_PREFIXES, get_endpoint_urls_doc_paths_and_docstrings, get_endpoints_from_endpoints_markdown, validate_docs, )
[ 6738, 42625, 14208, 13, 7295, 13, 27604, 13, 8692, 1330, 7308, 21575, 198, 6738, 514, 5126, 1571, 62, 15042, 13, 11321, 13, 16794, 364, 13, 437, 4122, 62, 22897, 341, 1330, 357, 198, 220, 220, 220, 327, 39237, 62, 1677, 6322, 46, 12...
2.666667
99
# Generated by Django 3.2.7 on 2021-11-29 17:38 from django.db import migrations
[ 2, 2980, 515, 416, 37770, 513, 13, 17, 13, 22, 319, 33448, 12, 1157, 12, 1959, 1596, 25, 2548, 198, 198, 6738, 42625, 14208, 13, 9945, 1330, 15720, 602, 628 ]
2.766667
30
from .helpers_test import TestConfigHelper from .base_test import TestBaseCLI
[ 6738, 764, 16794, 364, 62, 9288, 1330, 6208, 16934, 47429, 198, 6738, 764, 8692, 62, 9288, 1330, 6208, 14881, 5097, 40, 198 ]
3.545455
22
# The MIT License (MIT) # Copyright (c) 2014 Microsoft Corporation # 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, cop...
[ 171, 119, 123, 2, 383, 17168, 13789, 357, 36393, 8, 198, 2, 15069, 357, 66, 8, 1946, 5413, 10501, 198, 198, 2, 2448, 3411, 318, 29376, 7520, 11, 1479, 286, 3877, 11, 284, 597, 1048, 16727, 257, 4866, 198, 2, 286, 428, 3788, 290, ...
2.408347
32,443
#!/usr/bin/env python3 # Copyright (c) 2020 The Zcash developers # Distributed under the MIT software license, see the accompanying # file COPYING or https://www.opensource.org/licenses/mit-license.php . from test_framework.test_framework import BitcoinTestFramework from test_framework.mininode import ( nuparams, ...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 18, 198, 2, 15069, 357, 66, 8, 12131, 383, 1168, 30350, 6505, 198, 2, 4307, 6169, 739, 262, 17168, 3788, 5964, 11, 766, 262, 19249, 198, 2, 2393, 27975, 45761, 393, 3740, 1378, 2503, 13, ...
2.747788
226
import re import datetime as dt
[ 11748, 302, 198, 11748, 4818, 8079, 355, 288, 83, 628, 628, 628 ]
3.083333
12
#! /usr/bin/env python3 # Copyright (c) 2021 Grumpy Cat Software S.L. # # This Source Code is licensed under the MIT 2.0 license. # the terms can be found in LICENSE.md at the root of # this project, or at http://mozilla.org/MPL/2.0/. # %% # 7f316466-ba56-4680-b178-d9138aec6d16 import matplotlib.pyplot as plt import...
[ 2, 0, 1220, 14629, 14, 8800, 14, 24330, 21015, 18, 198, 2, 15069, 357, 66, 8, 33448, 1902, 32152, 5181, 10442, 311, 13, 43, 13, 198, 2, 198, 2, 770, 8090, 6127, 318, 11971, 739, 262, 17168, 362, 13, 15, 5964, 13, 198, 2, 262, ...
2.187757
1,944
import numpy as np import matplotlib.pyplot as plt import lmdb from PIL import Image import caffe import cv2 import pickle from tqdm import tqdm #Change paths to each files" deployfile = 'yours/caffe/examples/sketch_stroke/deploy_next_stroke.prototxt' weightfile = 'yours/next_stroke_snapshot7_1024_iter_4140000.caffem...
[ 11748, 299, 32152, 355, 45941, 220, 198, 11748, 2603, 29487, 8019, 13, 9078, 29487, 355, 458, 83, 198, 11748, 300, 9132, 65, 198, 6738, 350, 4146, 1330, 7412, 198, 11748, 21121, 198, 11748, 269, 85, 17, 198, 11748, 2298, 293, 198, 673...
2.058748
1,566
# File to check that the two different action-value functions (MC estimate and the action-value function in the # estimated MDP) are actually different functions, see Section 3.2.2 in "Evaluation of Safe Policy Improvement with # Soft Baseline Bootstrapping" by Philipp Scholl. import os import sys import numpy as np im...
[ 2, 9220, 284, 2198, 326, 262, 734, 1180, 2223, 12, 8367, 5499, 357, 9655, 8636, 290, 262, 2223, 12, 8367, 2163, 287, 262, 198, 2, 6108, 337, 6322, 8, 389, 1682, 1180, 5499, 11, 766, 7275, 513, 13, 17, 13, 17, 287, 366, 36, 2100,...
2.35014
1,428
# -*- coding: utf-8 -*- """ Created on Fri May 17 20:19:13 2019 @author: Parikshith.H """ str = "Python" print(str) print(str[0]) ch = str[1] print(ch) # ============================================================================= # #output: # Python # P # y # ======================================================...
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 37811, 198, 41972, 319, 19480, 1737, 1596, 1160, 25, 1129, 25, 1485, 13130, 198, 198, 31, 9800, 25, 2547, 72, 50133, 342, 13, 39, 198, 37811, 628, 220, 198, 2536, 796,...
3.933661
407
""" Copyright 2020 The OneFlow Authors. 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 applicable law or agr...
[ 37811, 198, 15269, 12131, 383, 1881, 37535, 46665, 13, 1439, 2489, 10395, 13, 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, ...
3.503817
393
import asyncio import sys import time import socketio loop = asyncio.get_event_loop() sio = socketio.AsyncClient() start_timer = None guild_id = 607637793107345431 @sio.event # await sio.emit('pool_all_request', {'type': 'member', 'guildId': guild_id, '_id': 2}) #await sio.emit('pool_all_request', {'type': 'r...
[ 11748, 30351, 952, 198, 11748, 25064, 198, 11748, 640, 198, 11748, 17802, 952, 198, 198, 26268, 796, 30351, 952, 13, 1136, 62, 15596, 62, 26268, 3419, 198, 82, 952, 796, 17802, 952, 13, 42367, 11792, 3419, 198, 9688, 62, 45016, 796, 6...
2.273859
482
import numpy as np ''' A periodic domain with the left-most cell and the left-most face having index 0. '''
[ 11748, 299, 32152, 355, 45941, 198, 198, 7061, 6, 198, 32, 27458, 7386, 351, 262, 1364, 12, 1712, 2685, 290, 262, 1364, 12, 1712, 1986, 1719, 6376, 657, 13, 198, 7061, 6, 628 ]
3.333333
33
# Global import mxnet as mx from typing import Optional # Local from ivy.functional.backends.mxnet import _handle_flat_arrays_in_out @_handle_flat_arrays_in_out
[ 2, 8060, 198, 11748, 285, 87, 3262, 355, 285, 87, 198, 6738, 19720, 1330, 32233, 198, 198, 2, 10714, 198, 6738, 21628, 88, 13, 45124, 13, 1891, 2412, 13, 36802, 3262, 1330, 4808, 28144, 62, 38568, 62, 3258, 592, 62, 259, 62, 448, ...
2.813559
59
"""Makes 1 epoch fit to 1k steps in TensorBoard:: from teebee import Teebee # Initialize a Teebee object with the per-epoch length (same with the # length of the loader) and the path where TensorBoard logs will be stored. tb = Teebee(len(loader), '/tmp/tb/run-20190219') for epoch in range(1000): ...
[ 37811, 44, 1124, 352, 36835, 4197, 284, 352, 74, 4831, 287, 309, 22854, 29828, 3712, 628, 220, 220, 220, 422, 30479, 20963, 1330, 49350, 20963, 628, 220, 220, 220, 1303, 20768, 1096, 257, 49350, 20963, 2134, 351, 262, 583, 12, 538, 53...
2.175583
2,187
from spaceone.monitoring.connector.google_cloud_connector import GoogleCloudConnector
[ 6738, 2272, 505, 13, 41143, 278, 13, 8443, 273, 13, 13297, 62, 17721, 62, 8443, 273, 1330, 3012, 18839, 34525 ]
4.25
20
#!/usr/bin/env python3 import seaborn as sns import numpy as np import pandas as pd import matplotlib.pyplot as plt sns.set(color_codes=True) # Simple plot of linear, quadratic, and cubic curves x = np.linspace(0, 2, 100) plt.plot(x, x, label='linear') plt.plot(x, x**2, label='quadratic') plt.plot(x, x**3, label='cu...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 18, 198, 11748, 384, 397, 1211, 355, 3013, 82, 198, 11748, 299, 32152, 355, 45941, 198, 11748, 19798, 292, 355, 279, 67, 198, 11748, 2603, 29487, 8019, 13, 9078, 29487, 355, 458, 83, 198, ...
2.30265
1,434
default_app_config = ( 'oscar.apps.dashboard.reports.config.ReportsDashboardConfig')
[ 12286, 62, 1324, 62, 11250, 796, 357, 201, 198, 220, 220, 220, 705, 418, 7718, 13, 18211, 13, 42460, 3526, 13, 48922, 13, 11250, 13, 37844, 43041, 3526, 16934, 11537, 201, 198 ]
2.84375
32
import numpy as np from ..nbcompat import numba from ..order import Solver from ..util import classproperty from .core import AdaptiveRungeKutta, RungeKutta @numba.njit class LIRK(RungeKutta, abstract=True): """Linearly Implicit Runge-Kutta (LIRK) methods. K = h f(t + h C, y + A @ K) + dC h^2 df/dt + h df...
[ 11748, 299, 32152, 355, 45941, 198, 198, 6738, 11485, 46803, 5589, 265, 1330, 997, 7012, 198, 6738, 11485, 2875, 1330, 4294, 332, 198, 6738, 11485, 22602, 1330, 1398, 26745, 198, 6738, 764, 7295, 1330, 30019, 425, 10987, 469, 42, 315, 8...
2.166419
673
from flask import Flask, render_template, url_for, request, redirect import pickle import math app = Flask(__name__) predicted_score = None @app.route('/') @app.route('/predict', methods=['GET', 'POST']) if __name__ == '__main__': app.run(debug=True, port=8000)
[ 6738, 42903, 1330, 46947, 11, 8543, 62, 28243, 11, 19016, 62, 1640, 11, 2581, 11, 18941, 198, 11748, 2298, 293, 198, 11748, 10688, 198, 1324, 796, 46947, 7, 834, 3672, 834, 8, 628, 198, 28764, 5722, 62, 26675, 796, 6045, 198, 198, 3...
2.791667
96
from django.conf.urls.defaults import * from socialize.client.resources import ApplicationResource, \ ApiUserResource, CommentResource, EntityResource, LikeResource,\ ShareResource, ViewResource from tastypie.api import Api v1_api = Api(api_name='v1') v1_api.register(ApplicationResource()) v1_api.register(ApiU...
[ 6738, 42625, 14208, 13, 10414, 13, 6371, 82, 13, 12286, 82, 1330, 1635, 198, 6738, 1919, 1096, 13, 16366, 13, 37540, 1330, 15678, 26198, 11, 3467, 198, 220, 220, 220, 5949, 72, 12982, 26198, 11, 18957, 26198, 11, 20885, 26198, 11, 452...
2.969072
194
from _scoping_utils import * A = Var("A") make( Patch( {A: 1}, Thread( A.should_be(1), A.assign(2), ), A.should_be(2), ), ) make( PatchLocal( {A: 1}, Thread( A.should_empty(), A.assign(2), ), A...
[ 6738, 4808, 1416, 15816, 62, 26791, 1330, 1635, 198, 198, 32, 796, 12372, 7203, 32, 4943, 198, 198, 15883, 7, 198, 220, 220, 220, 17106, 7, 198, 220, 220, 220, 220, 220, 220, 220, 1391, 32, 25, 352, 5512, 198, 220, 220, 220, 220, ...
1.525424
708
#!/usr/bin/env # -*- coding: utf-8 -*- # Copyright (C) Victor M. Mendiola Lau - All Rights Reserved # Unauthorized copying of this file, via any medium is strictly prohibited # Proprietary and confidential # Written by Victor M. Mendiola Lau <ryuzakyl@gmail.com>, July 2017 import os import re import pandas as pd # i...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 198, 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 2, 15069, 357, 34, 8, 12622, 337, 13, 20442, 30292, 40014, 532, 1439, 6923, 33876, 198, 2, 791, 19721, 23345, 286, 428, 2393...
2.867608
1,488
import unittest from enumerate_markdown import headers_finder, header
[ 11748, 555, 715, 395, 198, 6738, 27056, 378, 62, 4102, 2902, 1330, 24697, 62, 22805, 11, 13639, 628, 198 ]
3.789474
19
# Copyright IBM Corp. 2016 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 applicable law or ag...
[ 2, 15069, 19764, 11421, 13, 1584, 1439, 6923, 33876, 13, 198, 2, 198, 2, 49962, 739, 262, 24843, 13789, 11, 10628, 362, 13, 15, 357, 1169, 366, 34156, 15341, 198, 2, 345, 743, 407, 779, 428, 2393, 2845, 287, 11846, 351, 262, 13789, ...
2.50213
5,634
character = "Scorpion" letter = input("Enter a character: ") if letter in character: print("{} is in {}".format(letter, character)) else: # letter not in character print("{} is not in {}".format(letter, character)) activity = input("What would you like to do today?") if "Dominos" not in activity.casefold():...
[ 22769, 796, 366, 3351, 16300, 295, 1, 198, 198, 9291, 796, 5128, 7203, 17469, 257, 2095, 25, 366, 8, 198, 198, 361, 3850, 287, 2095, 25, 198, 220, 220, 220, 3601, 7203, 90, 92, 318, 287, 23884, 1911, 18982, 7, 9291, 11, 2095, 4008...
3.166667
120
from httplib2 import Http import random import time import urllib import hmac import hashlib import binascii import base64 import requests import os
[ 6738, 1841, 489, 571, 17, 1330, 367, 29281, 198, 11748, 4738, 198, 11748, 640, 198, 11748, 2956, 297, 571, 198, 11748, 289, 20285, 198, 11748, 12234, 8019, 198, 11748, 9874, 292, 979, 72, 198, 11748, 2779, 2414, 198, 11748, 7007, 198, ...
3.409091
44
#!/usr/bin/env python3 # Copyright (c) 2018 Anton Semjonov # Licensed under the MIT License import argparse, sys from signal import signal, SIGINT from random_art import metadata, crypto from random_art.randomart import draw, drunkenwalk, TRANSLATION # exit on ctrl-c signal(SIGINT, lambda *a: sys.exit(1)) # initia...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 18, 198, 198, 2, 15069, 357, 66, 8, 2864, 9261, 12449, 46286, 709, 198, 2, 49962, 739, 262, 17168, 13789, 198, 198, 11748, 1822, 29572, 11, 25064, 198, 6738, 6737, 1330, 6737, 11, 33993, ...
2.840671
477
from controllers.error_controller import ErrorController from controllers.type_checker import TypeChecker from controllers.symbol_table import SymbolTable from controllers import data_mode from views.data_window import DataWindow
[ 6738, 20624, 13, 18224, 62, 36500, 1330, 13047, 22130, 198, 6738, 20624, 13, 4906, 62, 9122, 263, 1330, 5994, 9787, 263, 198, 6738, 20624, 13, 1837, 23650, 62, 11487, 1330, 38357, 10962, 198, 6738, 20624, 1330, 1366, 62, 14171, 198, 673...
4.62
50
# Find the sum of all the multiples of 3 or 5 below 1000. if __name__ == "__main__": print(f"The sum of all the multiples of 3 or 5 below 1000 is {count_mult2()}")
[ 2, 9938, 262, 2160, 286, 477, 262, 5021, 2374, 286, 513, 393, 642, 2174, 8576, 13, 628, 198, 198, 361, 11593, 3672, 834, 6624, 366, 834, 12417, 834, 1298, 198, 220, 220, 220, 3601, 7, 69, 1, 464, 2160, 286, 477, 262, 5021, 2374, ...
2.85
60
import xlrd from optparse import make_option # from pprint import pprint as print from django.core.management.base import BaseCommand from django.utils.text import slugify from web.models import Person, Country, GeneralExpertise, OERExpertise, OpenAccessExpertise, MOOCExpertise, Region
[ 11748, 2124, 75, 4372, 198, 6738, 2172, 29572, 1330, 787, 62, 18076, 198, 2, 422, 279, 4798, 1330, 279, 4798, 355, 3601, 198, 198, 6738, 42625, 14208, 13, 7295, 13, 27604, 13, 8692, 1330, 7308, 21575, 198, 6738, 42625, 14208, 13, 2679...
3.493976
83
from __future__ import print_function import tensorflow as tf from tensorflow.contrib.rnn import LSTMCell from tensorflow.contrib.rnn import GRUCell import time
[ 6738, 11593, 37443, 834, 1330, 3601, 62, 8818, 198, 11748, 11192, 273, 11125, 355, 48700, 198, 6738, 11192, 273, 11125, 13, 3642, 822, 13, 81, 20471, 1330, 406, 2257, 9655, 695, 198, 6738, 11192, 273, 11125, 13, 3642, 822, 13, 81, 204...
3.24
50
# Generated by Django 2.0.5 on 2018-05-22 18:44 from django.db import migrations, models import django.db.models.deletion
[ 2, 2980, 515, 416, 37770, 362, 13, 15, 13, 20, 319, 2864, 12, 2713, 12, 1828, 1248, 25, 2598, 198, 198, 6738, 42625, 14208, 13, 9945, 1330, 15720, 602, 11, 4981, 198, 11748, 42625, 14208, 13, 9945, 13, 27530, 13, 2934, 1616, 295, ...
2.818182
44
# -*- coding: utf-8 -*- 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, 6738, 11593, 37443, 834, 1330, 28000, 1098, 62, 17201, 874, 198, 198, 6738, 42625, 14208, 13, 9945, 1330, 15720, 602, 11, 4981, 628 ]
2.891892
37
import sys import tarfile import tempfile import shutil import click import requests import stups_cli.config import zign.api from clickclick import AliasedGroup, OutputFormat, UrlType, error, fatal_error, print_table, ok from requests import RequestException import pierone from .api import PierOne, DockerMeta, docker...
[ 11748, 25064, 198, 11748, 13422, 7753, 198, 11748, 20218, 7753, 198, 11748, 4423, 346, 198, 198, 11748, 3904, 198, 11748, 7007, 198, 11748, 336, 4739, 62, 44506, 13, 11250, 198, 11748, 1976, 570, 13, 15042, 198, 6738, 3904, 12976, 1330, ...
2.343486
7,092
from preprocessorCreate import polyX, rescaleX import numpy as np from sklearn import linear_model import matplotlib.pyplot as plt from CvEstimate import cv_estimate from sklearn.model_selection import cross_validate from sklearn import preprocessing # 产生训练集和测试集 n_samples = 21 xtrain = np.linspace(0,20,n_samples)[:,np....
[ 6738, 662, 41341, 16447, 1330, 7514, 55, 11, 6811, 1000, 55, 198, 11748, 299, 32152, 355, 45941, 198, 6738, 1341, 35720, 1330, 14174, 62, 19849, 198, 11748, 2603, 29487, 8019, 13, 9078, 29487, 355, 458, 83, 198, 6738, 327, 85, 22362, ...
1.911961
1,647
#!/usr/bin/env python """ Update collection in Nuxeo """ import sys, os, requests from lxml import etree import pprint from pynux import utils from urlparse import urlparse metadata_dir = "/apps/content/metadata/UCSF/JapaneseWoodblocks/ucb/" pp = pprint.PrettyPrinter() nx = utils.Nuxeo() nuxeo_limit = 24 nuxeo_basepat...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 198, 37811, 10133, 4947, 287, 399, 18095, 78, 37227, 198, 11748, 25064, 11, 28686, 11, 7007, 198, 6738, 300, 19875, 1330, 2123, 631, 198, 11748, 279, 4798, 198, 6738, 279, 2047, 2821, 1330, ...
2.469588
4,998
out = [ 0, # 1 = Arousal max [ -1, {"i":1}, {"i":100,"d":250,"r":1,"e":"Sinusoidal.In"}, {"i":0}, {"i":0,"d":500} ], # 2 = Rocket [ -1, {}, {"i":255,"d":1000,"e":"Exponential.In"}, {"i":1,"d":1000,"e":"Exponential.In"}, {"i":150,"d":100,"r":8}, {"i":50,"d":100}, {"i":50,"d":600}, {"i":20...
[ 448, 796, 685, 198, 197, 15, 11, 198, 197, 2, 352, 796, 317, 7596, 282, 3509, 198, 197, 58, 198, 197, 197, 12, 16, 11, 198, 197, 197, 4895, 72, 1298, 16, 5512, 198, 197, 197, 4895, 72, 1298, 3064, 553, 67, 1298, 9031, 553, 81,...
1.766575
1,825
import os from pyctogram.instagram_client import client from pyctogram.tests import account if __name__ == '__main__': insta_client = client.InstagramClient(account.username, account.password) insta_client.login() video_path = os.path.join(os.path.dirname(__file__), 'data', 'example.mp4') insta_client....
[ 11748, 28686, 198, 6738, 12972, 310, 21857, 13, 8625, 6713, 62, 16366, 1330, 5456, 198, 6738, 12972, 310, 21857, 13, 41989, 1330, 1848, 198, 198, 361, 11593, 3672, 834, 6624, 705, 834, 12417, 834, 10354, 198, 220, 220, 220, 916, 64, 6...
2.85124
121
from django.urls import path from .views import snippet_detail_view from .views import snippet_create_view from .views import snippet_update_view from .views import snippet_delete_view from .views import snippet_list_view from .search import snippet_search app_name = "snippets" urlpatterns = [ path( "",...
[ 6738, 42625, 14208, 13, 6371, 82, 1330, 3108, 198, 198, 6738, 764, 33571, 1330, 39442, 62, 49170, 62, 1177, 198, 6738, 764, 33571, 1330, 39442, 62, 17953, 62, 1177, 198, 6738, 764, 33571, 1330, 39442, 62, 19119, 62, 1177, 198, 6738, 7...
2.004684
427
from asyncore import loop numero = int(input('Digite um número: ')) print('''Escolha uma das bases para conversão: [ 1 ] Converter para BINÁRIO [ 2 ] Converter para OCTAL [ 3 ] Converter para HEXADECIMAL''') opcao = int(input('Sua opção: ')) if opcao == 1: print('O número {} convertido para binário é igual a {}'....
[ 6738, 355, 2047, 7295, 1330, 9052, 628, 198, 22510, 3529, 796, 493, 7, 15414, 10786, 19511, 578, 23781, 299, 21356, 647, 78, 25, 705, 4008, 198, 4798, 7, 7061, 6, 47051, 349, 3099, 334, 2611, 288, 292, 12536, 31215, 3453, 28749, 25, ...
2.405512
254
# https://leetcode.com/problems/closest-binary-search-tree-value/ # Definition for a binary tree node. # class TreeNode: # def __init__(self, val=0, left=None, right=None): # self.val = val # self.left = left # self.right = right
[ 2, 3740, 1378, 293, 316, 8189, 13, 785, 14, 1676, 22143, 14, 565, 418, 395, 12, 39491, 12, 12947, 12, 21048, 12, 8367, 14, 198, 2, 30396, 329, 257, 13934, 5509, 10139, 13, 198, 2, 1398, 12200, 19667, 25, 198, 2, 220, 220, 220, 2...
2.345455
110
from threading import Lock, BoundedSemaphore from polog.handlers.abstract.base import BaseHandler from polog.core.utils.read_only_singleton import ReadOnlySingleton class memory_saver(ReadOnlySingleton, BaseHandler): """ Класс-заглушка обработчика для тестов. Подключается как обычный обработчик, но никуд...
[ 6738, 4704, 278, 1330, 13656, 11, 347, 6302, 13900, 6570, 382, 198, 198, 6738, 755, 519, 13, 4993, 8116, 13, 397, 8709, 13, 8692, 1330, 7308, 25060, 198, 6738, 755, 519, 13, 7295, 13, 26791, 13, 961, 62, 8807, 62, 12215, 10565, 1330...
1.313789
921
#!/usr/bin/env python # -*- coding: utf-8 -*- from __future__ import absolute_import from __future__ import division from __future__ import print_function import os import logging import traceback import random import string import re from ansible.errors import AnsibleError from ansible.plugins.lookup import LookupB...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 198, 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 6738, 11593, 37443, 834, 1330, 4112, 62, 11748, 198, 6738, 11593, 37443, 834, 1330, 7297, 198, 6738, 11593, 37443, 834, ...
2.470668
733
from CLIF_Framework.framework import event from CLIF_Framework.framework import tools from CLIF_Framework.framework import console from CLIF_Framework.framework import module from os import system try: import readline # noqa: F401 except Exception: pass event = event() tools = tools()
[ 6738, 7852, 5064, 62, 21055, 6433, 13, 30604, 1330, 1785, 198, 6738, 7852, 5064, 62, 21055, 6433, 13, 30604, 1330, 4899, 198, 6738, 7852, 5064, 62, 21055, 6433, 13, 30604, 1330, 8624, 198, 6738, 7852, 5064, 62, 21055, 6433, 13, 30604, ...
3.54878
82
from django.db import models from django.core.validators import RegexValidator from django import forms from django.contrib import admin #Model for user ie. participant #Model for question ANSWER_CHOICES = [ ('A','A'), ('B','B'), ('C','C'), ('D','D'), ] #Model for Answer which contains options and foreign ket...
[ 6738, 42625, 14208, 13, 9945, 1330, 4981, 198, 6738, 42625, 14208, 13, 7295, 13, 12102, 2024, 1330, 797, 25636, 47139, 1352, 198, 6738, 42625, 14208, 1330, 5107, 198, 6738, 42625, 14208, 13, 3642, 822, 1330, 13169, 198, 198, 2, 17633, 3...
3.310078
129
"""Module containing all the player classes and the bot strategies.""" from random import choice class Player: """A class that holds the information about the player.""" score = 0 current_turn_score = 0 def __init__(self, name): """Configure the instance with it's name.""" self.name ...
[ 37811, 26796, 7268, 477, 262, 2137, 6097, 290, 262, 10214, 10064, 526, 15931, 198, 6738, 4738, 1330, 3572, 628, 198, 4871, 7853, 25, 198, 220, 220, 220, 37227, 32, 1398, 326, 6622, 262, 1321, 546, 262, 2137, 526, 15931, 628, 220, 220,...
2.761429
700
import sys, requests, time from json import load, dumps # Input your cloudflare zone id. It can be change the value. # It need to input the zone id you want to. ZONE_ID = 'a0bb2d04c8e6e66a2aecc9bbd1741f51' # Input the cloudflare api key. (It will be Private key) # It needs to input your key. API_KEY = '0000000000000...
[ 11748, 25064, 11, 7007, 11, 640, 198, 198, 6738, 33918, 1330, 3440, 11, 45514, 198, 198, 2, 23412, 534, 6279, 2704, 533, 6516, 4686, 13, 632, 460, 307, 1487, 262, 1988, 13, 198, 2, 632, 761, 284, 5128, 262, 6516, 4686, 345, 765, 2...
2.717021
470
#! /usr/bin/env python from __future__ import print_function import sys import json from collections import Counter if __name__ == '__main__': main()
[ 2, 0, 1220, 14629, 14, 8800, 14, 24330, 21015, 198, 6738, 11593, 37443, 834, 1330, 3601, 62, 8818, 198, 198, 11748, 25064, 198, 11748, 33918, 198, 6738, 17268, 1330, 15034, 628, 628, 198, 198, 361, 11593, 3672, 834, 6624, 705, 834, 12...
3.137255
51
from multiprocessing.sharedctypes import Value import networkx as nx import numpy as np from awpy.data import NAV, NAV_GRAPHS from scipy.spatial import distance def point_in_area(map_name, area_id, point): """Returns if the point is within a nav area for a map. Args: map_name (string): Map to search...
[ 6738, 18540, 305, 919, 278, 13, 28710, 310, 9497, 1330, 11052, 198, 11748, 3127, 87, 355, 299, 87, 198, 11748, 299, 32152, 355, 45941, 198, 198, 6738, 3253, 9078, 13, 7890, 1330, 47140, 11, 47140, 62, 10761, 2969, 7998, 198, 6738, 629...
2.238943
3,595
"""CFNgin lookup registry.""" import logging import warnings from six import string_types from runway.lookups.handlers import ssm from runway.util import load_object_from_string from ..exceptions import FailedVariableLookup, UnknownLookupType from .handlers import ami, default, dynamodb, envvar from .handlers import...
[ 37811, 22495, 45, 1655, 35847, 20478, 526, 15931, 198, 11748, 18931, 198, 11748, 14601, 198, 198, 6738, 2237, 1330, 4731, 62, 19199, 198, 198, 6738, 23443, 13, 5460, 4739, 13, 4993, 8116, 1330, 264, 5796, 198, 6738, 23443, 13, 22602, 13...
2.490291
1,442
from types import SimpleNamespace from main import main, get_parser for lg in ["en", "id", "sv"]: for model in ["poincare", "euclidean"]: try: args = get_parser() args.data_dir = f"data/dbpedia/{lg}/" # args.model_reload_path = "dumps/dbpedia/en/euclidean_model.pt" ...
[ 6738, 3858, 1330, 17427, 36690, 10223, 198, 6738, 1388, 1330, 1388, 11, 651, 62, 48610, 198, 198, 1640, 300, 70, 287, 14631, 268, 1600, 366, 312, 1600, 366, 21370, 1, 5974, 198, 220, 220, 220, 329, 2746, 287, 14631, 7501, 1939, 533, ...
1.896875
320
# -*- coding: utf-8 -*- from django.test.client import Client from django.test.utils import override_settings from openslides.utils.test import TestCase @override_settings(INSTALLED_PLUGINS=('tests.plugin_api.test_plugin_one',)) @override_settings(INSTALLED_PLUGINS=('tests.plugin_api.test_plugin_two',))
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 198, 6738, 42625, 14208, 13, 9288, 13, 16366, 1330, 20985, 198, 6738, 42625, 14208, 13, 9288, 13, 26791, 1330, 20957, 62, 33692, 198, 198, 6738, 9808, 75, 1460, 13, 2679...
2.827273
110
""" Tankity-tank-tank-tank Example program for Qt Animation using QGraphicsScene """ import sys from PyQt5 import QtWidgets as qtw from PyQt5 import QtGui as qtg from PyQt5 import QtCore as qtc SCREEN_WIDTH = 800 SCREEN_HEIGHT = 600 BORDER_HEIGHT = 100 if __name__ == '__main__': app = qtw.QApplication(sys....
[ 37811, 198, 32978, 414, 12, 28451, 12, 28451, 12, 28451, 198, 198, 16281, 1430, 329, 33734, 23535, 1262, 1195, 18172, 36542, 198, 37811, 198, 198, 11748, 25064, 198, 6738, 9485, 48, 83, 20, 1330, 33734, 54, 312, 11407, 355, 10662, 4246,...
2.642857
182
from tkinter import * from gamemodes.locales.localeManager import * import platform
[ 6738, 256, 74, 3849, 1330, 1635, 201, 198, 6738, 9106, 368, 4147, 13, 17946, 2040, 13, 17946, 1000, 13511, 1330, 1635, 201, 198, 11748, 3859, 201 ]
3.307692
26
from flask_restful import Resource from lyrebird.mock import context, plugin_manager from flask import request, jsonify, abort from lyrebird import application class Conf(Resource): """ Lyrebird 及 插件 配置文件获取和修改 """ class ResetConf(Resource): """ Lyrebird 及 插件 配置文件重置 """
[ 6738, 42903, 62, 2118, 913, 1330, 20857, 198, 6738, 22404, 260, 16944, 13, 76, 735, 1330, 4732, 11, 13877, 62, 37153, 198, 6738, 42903, 1330, 2581, 11, 33918, 1958, 11, 15614, 198, 6738, 22404, 260, 16944, 1330, 3586, 628, 198, 4871, ...
2.098592
142
#!/usr/bin/env python from __future__ import print_function import sys from pynauty import autgrp # List of graphs for testing # # Structure: # [[name, Graph, numorbit, grpsize, generators]] # # numorbit, grpsize, generators was calculated by dreadnut # from data_graphs import graphs if __name__ == '__main__': ...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 198, 6738, 11593, 37443, 834, 1330, 3601, 62, 8818, 198, 198, 11748, 25064, 198, 6738, 279, 2047, 2306, 88, 1330, 1960, 2164, 79, 198, 198, 2, 7343, 286, 28770, 329, 4856, 198, 2, 198, 2,...
2.369565
414
OCTICON_ISSUE_OPENED = """ <svg class="octicon octicon-opened" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M8 1.5a6.5 6.5 0 100 13 6.5 6.5 0 000-13zM0 8a8 8 0 1116 0A8 8 0 010 8zm9 3a1 1 0 11-2 0 1 1 0 012 0zm-.25-6.25a.75.75 0 00-1.5 0v3.5a.75.75 0 001.5 ...
[ 198, 46, 4177, 2149, 1340, 62, 16744, 8924, 62, 3185, 1677, 1961, 796, 37227, 198, 27, 21370, 70, 1398, 2625, 38441, 4749, 19318, 4749, 12, 26350, 1, 35555, 5907, 2625, 4023, 1378, 2503, 13, 86, 18, 13, 2398, 14, 11024, 14, 21370, 7...
1.917127
181
#!/usr/bin/python3
[ 2, 48443, 14629, 14, 8800, 14, 29412, 18, 201 ]
2.111111
9
""" Abstract training class """ from abc import ABC as AbstractBaseClass from abc import abstractmethod
[ 37811, 198, 23839, 3047, 1398, 198, 37811, 198, 6738, 450, 66, 1330, 9738, 355, 27741, 14881, 9487, 198, 6738, 450, 66, 1330, 12531, 24396, 628 ]
4.2
25
import torchvision.transforms as transforms
[ 11748, 28034, 10178, 13, 7645, 23914, 355, 31408, 628, 198 ]
4.6
10
from __future__ import annotations from typing import TYPE_CHECKING from easybill_rest.helper import Helper from easybill_rest.resources.resource_abstract import ResourceAbstract if TYPE_CHECKING: from easybill_rest import Client
[ 6738, 11593, 37443, 834, 1330, 37647, 198, 198, 6738, 19720, 1330, 41876, 62, 50084, 2751, 198, 198, 6738, 2562, 35546, 62, 2118, 13, 2978, 525, 1330, 5053, 525, 198, 6738, 2562, 35546, 62, 2118, 13, 37540, 13, 31092, 62, 397, 8709, 1...
3.71875
64
import torch from torch import nn, optim import torch.nn.functional as F from torch.autograd import Variable from torch.utils.data import DataLoader from torchvision import transforms from torchvision import datasets from logger import Logger batch_size = 128 learning_rate = 1e-2 num_epoches = 20 train_dataset = ...
[ 198, 11748, 28034, 198, 6738, 28034, 1330, 299, 77, 11, 6436, 198, 11748, 28034, 13, 20471, 13, 45124, 355, 376, 198, 6738, 28034, 13, 2306, 519, 6335, 1330, 35748, 198, 6738, 28034, 13, 26791, 13, 7890, 1330, 6060, 17401, 198, 6738, ...
2.275129
1,552
# coding:utf-8 #!/usr/bin/python # # Copyright (c) Contributors to the Open 3D Engine Project. # For complete copyright and license terms please see the LICENSE at the root of this distribution. # # SPDX-License-Identifier: Apache-2.0 OR MIT # # # ------------------------------------------------------------------------...
[ 2, 19617, 25, 40477, 12, 23, 198, 2, 48443, 14629, 14, 8800, 14, 29412, 198, 2, 198, 2, 15069, 357, 66, 8, 25767, 669, 284, 262, 4946, 513, 35, 7117, 4935, 13, 198, 2, 1114, 1844, 6634, 290, 5964, 2846, 3387, 766, 262, 38559, 24...
3.057108
1,646
import numpy as np import pandas as pd
[ 11748, 299, 32152, 355, 45941, 198, 11748, 19798, 292, 355, 279, 67 ]
3.166667
12
import pytest from models.base import Database @pytest.fixture()
[ 11748, 12972, 9288, 198, 198, 6738, 4981, 13, 8692, 1330, 24047, 628, 198, 31, 9078, 9288, 13, 69, 9602, 3419, 198 ]
3.238095
21
import numpy as np import pandas as pd from sklearn import preprocessing as prep from sklearn.preprocessing import MinMaxScaler from collections import deque from quik import prices import random if __name__ == "__main__": X,y = get_training_data(lag = 500) print(X,y) ...
[ 11748, 299, 32152, 355, 45941, 201, 198, 11748, 19798, 292, 355, 279, 67, 201, 198, 6738, 1341, 35720, 1330, 662, 36948, 355, 3143, 201, 198, 6738, 1341, 35720, 13, 3866, 36948, 1330, 1855, 11518, 3351, 36213, 201, 198, 6738, 17268, 133...
2.11976
167
import networkx as nx import numpy as np import scphylo as scp
[ 11748, 3127, 87, 355, 299, 87, 198, 11748, 299, 32152, 355, 45941, 198, 198, 11748, 629, 746, 2645, 78, 355, 629, 79, 628, 198 ]
2.75
24
from lib.data_helper import DataHelper as dh # single trail sc test_text_1 = "this is my text)" test_result_1 = dh.strip_if_not_none(test_text_1, ")., ") test_result_1s = test_text_1.strip(")., ") test_result_1r = dh.remove_multiple_outbound_chars(test_text_1) # multi trail sc test_text_2 = "this is my text)..." tes...
[ 6738, 9195, 13, 7890, 62, 2978, 525, 1330, 6060, 47429, 355, 34590, 628, 198, 2, 2060, 8025, 629, 198, 9288, 62, 5239, 62, 16, 796, 366, 5661, 318, 616, 2420, 16725, 198, 9288, 62, 20274, 62, 16, 796, 34590, 13, 36311, 62, 361, 62...
2.392801
639
import requests client_id = "..." client_secret = "..." try: auth = requests.auth.HTTPBasicAuth(client_id, client_secret); resp = requests.post('https://stepik.org/oauth2/token/', data={'grant_type': 'client_credentials'},auth=auth) token = resp.json()['access_token'] except: print('problems getting to...
[ 11748, 7007, 198, 198, 16366, 62, 312, 796, 366, 9313, 198, 16366, 62, 21078, 796, 366, 9313, 198, 28311, 25, 198, 220, 220, 220, 6284, 796, 7007, 13, 18439, 13, 40717, 26416, 30515, 7, 16366, 62, 312, 11, 5456, 62, 21078, 1776, 198...
2.565724
601
''' Function: 天眼查 Author: Charles 微信公众号: Charles的皮卡丘 ''' import os import requests from PyQt5.QtGui import * from PyQt5.QtWidgets import * from PyQt5 import QtWidgets, QtGui '''天眼查'''
[ 7061, 6, 198, 22203, 25, 198, 220, 220, 220, 36469, 102, 40367, 120, 162, 253, 98, 198, 13838, 25, 198, 220, 220, 220, 7516, 198, 36181, 106, 46479, 94, 17739, 105, 27670, 245, 20998, 115, 25, 198, 220, 220, 220, 7516, 21410, 19021,...
1.774775
111
max_num = 90 num = 1 while True: if num > 1: result1 = num * 10 + num - 1 if result1 > max_num: break print(result1) result2 = num * 10 + num + 1 if result2 > max_num: break print(result2) num += 1
[ 9806, 62, 22510, 796, 4101, 201, 198, 22510, 796, 352, 201, 198, 201, 198, 4514, 6407, 25, 201, 198, 220, 220, 220, 611, 997, 1875, 352, 25, 201, 198, 220, 220, 220, 220, 220, 220, 220, 1255, 16, 796, 997, 1635, 838, 1343, 997, ...
1.847682
151
""" Various utilities around voxel grids. """ import logging import numpy as np logger = logging.getLogger(__name__) def convert_atom_to_voxel(coordinates, atom_index, box_width, voxel_width): """Converts atom coordinates to an i,j,k grid index. This function offsets molecular atom coordinates by (box_width/2,...
[ 37811, 198, 40009, 20081, 1088, 410, 1140, 417, 50000, 13, 198, 37811, 198, 11748, 18931, 198, 11748, 299, 32152, 355, 45941, 198, 6404, 1362, 796, 18931, 13, 1136, 11187, 1362, 7, 834, 3672, 834, 8, 628, 198, 4299, 10385, 62, 37696, ...
2.512891
2,172
import numpy as np from ..initialization import DefaultInitializer from ..operators import Operators from ..evaluation import SimpleFitness from ..utility.history import History
[ 11748, 299, 32152, 355, 45941, 198, 198, 6738, 11485, 36733, 1634, 1330, 15161, 24243, 7509, 198, 6738, 11485, 3575, 2024, 1330, 6564, 2024, 198, 6738, 11485, 18206, 2288, 1330, 17427, 37, 3659, 198, 6738, 11485, 315, 879, 13, 23569, 1330...
4.285714
42
import os import time import random import datetime import re from nonebot import on_command, on_regex from nonebot.typing import T_State from nonebot.params import State from nonebot.adapters.onebot.v11.bot import Bot from nonebot.adapters.onebot.v11.event import Event # 今天是几号星期 WEEK = ['一', '二', '三', '四', '五', '六',...
[ 11748, 28686, 198, 11748, 640, 198, 11748, 4738, 198, 11748, 4818, 8079, 198, 11748, 302, 198, 6738, 4844, 13645, 1330, 319, 62, 21812, 11, 319, 62, 260, 25636, 198, 198, 6738, 4844, 13645, 13, 774, 13886, 1330, 309, 62, 9012, 198, 67...
2.281407
199
from django.urls import path from case_admin.views import common, case, comment, tag, user, question app_name = "case_admin" urlpatterns = [ path("users/", user.view_admin_user, name='users'), path("users/review", user.view_admin_user_review, name='users_review'), path("users/<int:user_id>", user.api_adm...
[ 6738, 42625, 14208, 13, 6371, 82, 1330, 3108, 198, 198, 6738, 1339, 62, 28482, 13, 33571, 1330, 2219, 11, 1339, 11, 2912, 11, 7621, 11, 2836, 11, 1808, 198, 198, 1324, 62, 3672, 796, 366, 7442, 62, 28482, 1, 198, 198, 6371, 33279, ...
2.820961
458
n = int(input()) print(dest(n, n))
[ 198, 77, 796, 493, 7, 15414, 28955, 198, 4798, 7, 16520, 7, 77, 11, 299, 4008 ]
2.1875
16
import SimpleNN as nn import ConvNN as cnn import os parameters = [[512],[256],[128], [96], [64], [48], [32], [24], [16], [12], [8], [4]] parameters = parameters[::-1] nn.feedFashionDataset() cnn.feedFashionDataset() root_directory = 'Saved Models/Fashion/' for epoch in [1,2,3,4,5,10,15,20,25,30]: for test in [1,2...
[ 11748, 17427, 6144, 355, 299, 77, 198, 11748, 34872, 6144, 355, 269, 20471, 198, 11748, 28686, 198, 198, 17143, 7307, 796, 16410, 25836, 38430, 11645, 38430, 12762, 4357, 685, 4846, 4357, 685, 2414, 4357, 685, 2780, 4357, 685, 2624, 4357,...
2.355114
352
"""Networking Module.""" IPPROTO_IPV4 = 0x0800
[ 37811, 7934, 16090, 19937, 526, 15931, 198, 198, 4061, 4805, 26631, 62, 4061, 53, 19, 796, 657, 87, 2919, 405, 198 ]
2.285714
21
try: from tempfile import TemporaryDirectory except ImportError: from shutil import rmtree from contextlib import contextmanager from tempfile import mkdtemp @contextmanager import functools from sys import platform import pytest skip_windows = functools.partial(pytest.mark.skipif, platform == '...
[ 28311, 25, 198, 220, 220, 220, 422, 20218, 7753, 1330, 46042, 43055, 198, 16341, 17267, 12331, 25, 198, 220, 220, 220, 422, 4423, 346, 1330, 374, 16762, 631, 198, 220, 220, 220, 422, 4732, 8019, 1330, 4732, 37153, 198, 220, 220, 220, ...
3.313131
99
from django.db import models from django.utils import timezone from django.urls import reverse from django.contrib.auth.models import User # Create your models here.
[ 6738, 42625, 14208, 13, 9945, 1330, 4981, 198, 6738, 42625, 14208, 13, 26791, 1330, 640, 11340, 198, 6738, 42625, 14208, 13, 6371, 82, 1330, 9575, 198, 6738, 42625, 14208, 13, 3642, 822, 13, 18439, 13, 27530, 1330, 11787, 198, 198, 2, ...
3.541667
48
"""Analizar los siguientes ejercicios de condiciones, representarlos mediante algoritmos en Python. """ #3.-Se tiene que evaluar cuatro notas de un alumno, como resultado se visualiza el # promedio del alumno junto con su condición de APROBADO o DESAPROBADO, # sieste aprobado y con 18 o más, saldrá el siguiente mensa...
[ 37811, 2025, 282, 528, 283, 22346, 43237, 84, 1153, 274, 304, 73, 2798, 291, 4267, 390, 1779, 47430, 274, 11, 2380, 7063, 418, 1117, 3014, 68, 435, 7053, 270, 16785, 551, 11361, 13, 37227, 198, 2, 18, 7874, 4653, 46668, 1734, 8358, ...
2.328814
295
# [Shaolin Temple] For Shaolin Temple ZHEUNG_GUAN = 9310046 WISE_CHIEF_PRIEST = 9310053 ELDER_JUNG = 9310049 HAIFENG_FASHI = 9310051 sm.removeEscapeButton() sm.setSpeakerID(ELDER_JUNG) sm.setBoxChat() sm.sendNext("The mountain weeps this day. My old friend has become a demon... What pain must he have been hiding to h...
[ 2, 685, 2484, 64, 24910, 10857, 60, 1114, 19413, 24910, 10857, 198, 198, 57, 13909, 4944, 38, 62, 38022, 1565, 796, 10261, 3064, 3510, 198, 54, 24352, 62, 3398, 10008, 37, 62, 4805, 40, 6465, 796, 10261, 3064, 4310, 198, 3698, 14418, ...
2.837321
418
import pymongo client = pymongo.MongoClient('localhost', 27017) db = client.stranger_tele_bot
[ 11748, 279, 4948, 25162, 628, 198, 16366, 796, 279, 4948, 25162, 13, 44, 25162, 11792, 10786, 36750, 3256, 2681, 29326, 8, 198, 9945, 796, 5456, 13, 2536, 2564, 62, 46813, 62, 13645, 198 ]
2.909091
33
# Generated by Django 2.2.15 on 2020-09-24 20:57 import django.db.models.deletion from django.conf import settings from django.db import migrations, models
[ 2, 2980, 515, 416, 37770, 362, 13, 17, 13, 1314, 319, 12131, 12, 2931, 12, 1731, 1160, 25, 3553, 198, 198, 11748, 42625, 14208, 13, 9945, 13, 27530, 13, 2934, 1616, 295, 198, 6738, 42625, 14208, 13, 10414, 1330, 6460, 198, 6738, 426...
3.038462
52
# -*- coding: utf-8 -*- import apple import canon import casio import fujifilm import nikon import olympus
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 11748, 17180, 198, 11748, 18061, 198, 11748, 6124, 952, 198, 11748, 14035, 73, 361, 346, 76, 198, 11748, 299, 1134, 261, 198, 11748, 267, 6760, 385, 198 ]
2.609756
41
import warnings from collections import OrderedDict import pandas as pd from . import dtypes, utils from .alignment import align from .variable import IndexVariable, Variable, as_variable from .variable import concat as concat_vars def concat( objs, dim=None, data_vars="all", coords="different", ...
[ 11748, 14601, 198, 6738, 17268, 1330, 14230, 1068, 35, 713, 198, 198, 11748, 19798, 292, 355, 279, 67, 198, 198, 6738, 764, 1330, 288, 19199, 11, 3384, 4487, 198, 6738, 764, 282, 16747, 1330, 10548, 198, 6738, 764, 45286, 1330, 12901, ...
2.54051
4,394
import argparse import hashlib import sys import os import Cryptodome.Cipher.AES as AES from getpass import getpass from itertools import chain from contextlib import ExitStack from functools import wraps from .src.cipher import EncryptionCipher, DecryptionCipher, configure_cipher from .. import __version__ as version ...
[ 11748, 1822, 29572, 198, 11748, 12234, 8019, 198, 11748, 25064, 198, 11748, 28686, 198, 11748, 15126, 375, 462, 13, 34, 10803, 13, 32, 1546, 355, 34329, 198, 6738, 651, 6603, 1330, 651, 6603, 198, 6738, 340, 861, 10141, 1330, 6333, 198,...
2.02611
383
import pygame import json from settings import * from Button_Classes import Button import image_choosing import maingame_loop import cv2 import numpy import calibration pygame.font.init() MENU_OPTIONS = pygame.image.load(OPTIONS_BACKGROUND) MENU_OPTIONS=pygame.transform.scale(MENU_OPTIONS,(WINDOWS_WIDTH,WINDOWS_HEIG...
[ 11748, 12972, 6057, 198, 11748, 33918, 198, 198, 6738, 6460, 1330, 1635, 198, 6738, 20969, 62, 9487, 274, 1330, 20969, 198, 11748, 2939, 62, 6679, 2752, 198, 11748, 17266, 278, 480, 62, 26268, 198, 11748, 269, 85, 17, 198, 11748, 299, ...
2.214854
377
n1 = int(input("Primeiro número: ")) n2 = int(input("Segundo número: ")) print("Soma: {}".format(n1+n2))
[ 77, 16, 796, 493, 7, 15414, 7203, 26405, 7058, 299, 21356, 647, 78, 25, 366, 4008, 198, 77, 17, 796, 493, 7, 15414, 7203, 41030, 41204, 299, 21356, 647, 78, 25, 366, 4008, 198, 198, 4798, 7203, 50, 6086, 25, 23884, 1911, 18982, 7,...
2.078431
51
# # Copyright 2019 The FATE Authors. 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 appli...
[ 2, 198, 2, 220, 15069, 13130, 383, 376, 6158, 46665, 13, 1439, 6923, 33876, 13, 198, 2, 198, 2, 220, 49962, 739, 262, 24843, 13789, 11, 10628, 362, 13, 15, 357, 1169, 366, 34156, 15341, 198, 2, 220, 345, 743, 407, 779, 428, 2393, ...
3.675532
188
if __name__ == "__main__": print("not so rad")
[ 361, 11593, 3672, 834, 6624, 366, 834, 12417, 834, 1298, 198, 220, 220, 220, 3601, 7203, 1662, 523, 2511, 4943, 198 ]
2.428571
21
""" Provide implementation of the FastRandomChoice interfaces. """ from abc import ( ABC, abstractmethod, ) class FastRandomChoiceInterface(ABC): """ Provide implementation of the FastRandomChoice interfaces. """ @abstractmethod def choice(self, seq, p): """ Choose a rando...
[ 37811, 198, 15946, 485, 7822, 286, 262, 12549, 29531, 46770, 20314, 13, 198, 37811, 198, 6738, 450, 66, 1330, 357, 198, 220, 220, 220, 9738, 11, 198, 220, 220, 220, 12531, 24396, 11, 198, 8, 628, 198, 4871, 12549, 29531, 46770, 39317,...
2.988827
179
""" Code Linting """ from invoke import task @task def lint(context): """ Runs quality checks through linter """ context.run('prospector')
[ 37811, 198, 10669, 406, 600, 278, 198, 37811, 198, 6738, 26342, 1330, 4876, 628, 198, 31, 35943, 198, 4299, 300, 600, 7, 22866, 2599, 198, 220, 220, 220, 37227, 198, 220, 220, 220, 44743, 3081, 8794, 832, 300, 3849, 198, 220, 220, 2...
2.754386
57