content
stringlengths
1
1.05M
input_ids
listlengths
1
883k
ratio_char_token
float64
1
22.9
token_count
int64
1
883k
from goopylib.objects.GraphicsObject import GraphicsObject from goopylib.styles import *
[ 6738, 467, 404, 2645, 571, 13, 48205, 13, 18172, 10267, 1330, 19840, 10267, 198, 198, 6738, 467, 404, 2645, 571, 13, 47720, 1330, 1635, 628 ]
3.64
25
# https://www.acmicpc.net/problem/1260 n, m, v = map(int, input().split()) graph = [[0] * (n+1) for _ in range(n+1)] visit = [False] * (n+1) for _ in range(m): R, C = map(int, input().split()) graph[R][C] = 1 graph[C][R] = 1 dfs(v) print() bfs(v)
[ 2, 3740, 1378, 2503, 13, 330, 9383, 14751, 13, 3262, 14, 45573, 14, 1065, 1899, 198, 198, 77, 11, 285, 11, 410, 796, 3975, 7, 600, 11, 5128, 22446, 35312, 28955, 198, 34960, 796, 16410, 15, 60, 1635, 357, 77, 10, 16, 8, 329, 480...
2.007692
130
""" Testing helper functions ======================= Collection of helper functions for the testing suite. """ from datetime import datetime import numpy as np import pytest import pysteps as stp from pysteps import io, rcparams def get_precipitation_fields(num_prev_files=0): """Get a precipitation field from ...
[ 37811, 198, 44154, 31904, 5499, 198, 4770, 1421, 18604, 198, 198, 36307, 286, 31904, 5499, 329, 262, 4856, 18389, 13, 198, 37811, 198, 6738, 4818, 8079, 1330, 4818, 8079, 198, 198, 11748, 299, 32152, 355, 45941, 198, 11748, 12972, 9288, ...
2.425832
991
# Copyright 2012 Google Inc. 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 ...
[ 2, 15069, 2321, 3012, 3457, 13, 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, ...
3.072879
837
# -*- coding: utf-8 -*- # # michael a.g. avzis <michael.aivazis@para-sim.com> # (c) 1998-2021 all rights reserved # support import merlin # the manager of intermediate and final build products # end of file
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 2, 198, 2, 285, 40302, 257, 13, 70, 13, 1196, 89, 271, 1279, 76, 40302, 13, 64, 452, 1031, 271, 31, 1845, 64, 12, 14323, 13, 785, 29, 198, 2, 357, 66, 8, 7795, ...
2.6625
80
########################################################################## # # Copyright (c) 2011, Image Engine Design Inc. All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are # met: # # * Redistribu...
[ 29113, 29113, 7804, 2235, 198, 2, 198, 2, 220, 15069, 357, 66, 8, 2813, 11, 7412, 7117, 8495, 3457, 13, 1439, 2489, 10395, 13, 198, 2, 198, 2, 220, 2297, 396, 3890, 290, 779, 287, 2723, 290, 13934, 5107, 11, 351, 393, 1231, 198, ...
3.46098
551
# Copyright (c) 2021, NVIDIA CORPORATION. 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, 15069, 357, 66, 8, 33448, 11, 15127, 23929, 44680, 6234, 13, 220, 1439, 2489, 10395, 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...
2.890859
733
"""" Copyright Krypton 2022 - https://github.com/kkrypt0nn (https://krypton.ninja) Description: This is a template to create your own discord bot in python. Version: 4.1 """ import json def add_user_to_blacklist(user_id: int) -> None: """ This function will add a user based on its ID in the blacklist.json ...
[ 15931, 15931, 198, 15269, 220, 44679, 261, 33160, 532, 3740, 1378, 12567, 13, 785, 14, 28747, 6012, 15, 20471, 357, 5450, 1378, 74, 6012, 261, 13, 35073, 6592, 8, 198, 11828, 25, 198, 1212, 318, 257, 11055, 284, 2251, 534, 898, 36446,...
2.601367
439
#!/usr/bin/env python # -*- coding: utf-8 -*- '''Make sure that generic functions work exactly as we expect.''' # IMPORT STANDARD LIBRARIES import unittest # IMPORT WAYS LIBRARIES from ways import common
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 198, 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 198, 7061, 6, 12050, 1654, 326, 14276, 5499, 670, 3446, 355, 356, 1607, 2637, 7061, 198, 198, 2, 30023, 9863, 49053, ...
2.929577
71
from setuptools import setup, find_packages setup( name='natasha', version='0.2.0', description='Named-entity recognition for russian language', url='https://github.com/bureaucratic-labs/natasha', author='Dmitry Veselov', author_email='d.a.veselov@yandex.ru', license='MIT', classifiers=...
[ 6738, 900, 37623, 10141, 1330, 9058, 11, 1064, 62, 43789, 198, 198, 40406, 7, 198, 220, 220, 220, 1438, 11639, 32353, 14715, 3256, 198, 220, 220, 220, 2196, 11639, 15, 13, 17, 13, 15, 3256, 198, 220, 220, 220, 6764, 11639, 45, 2434,...
2.427835
388
import os, sys import random import string try: # Make Python2 work like Python3 input = raw_input except NameError: # On Python3; already using input pass letters = string.ascii_letters numbers = string.digits punctuation = string.punctuation def generate(password_length, at_least_one_letter, at_lea...
[ 11748, 28686, 11, 25064, 198, 11748, 4738, 198, 11748, 4731, 198, 198, 28311, 25, 198, 220, 220, 220, 1303, 6889, 11361, 17, 670, 588, 11361, 18, 198, 220, 220, 220, 5128, 796, 8246, 62, 15414, 198, 16341, 6530, 12331, 25, 198, 220, ...
2.579285
1,091
from constants.messages import get_node_health_warning_message, get_node_healthy_again_message from handlers.chat_helpers import try_message_with_home_menu, try_message_to_all_users from packaging import version from service.utils import * def check_thorchain_catch_up_status(context, node_address): """ ...
[ 6738, 38491, 13, 37348, 1095, 1330, 651, 62, 17440, 62, 13948, 62, 43917, 62, 20500, 11, 651, 62, 17440, 62, 22796, 62, 17776, 62, 20500, 198, 6738, 32847, 13, 17006, 62, 16794, 364, 1330, 1949, 62, 20500, 62, 4480, 62, 11195, 62, 2...
2.215827
1,529
from pylab import * from numpy import * from numpy.linalg import solve from scipy.integrate import odeint from scipy.stats import norm, uniform, beta from scipy.special import jacobi a = 0.0 b = 3.0 theta=1.0 sigma=sqrt(theta/(2*(a+b+2))) tscale = 0.05 invariant_distribution = poly1d( [-1 for x in range(int(a))], ...
[ 6738, 279, 2645, 397, 1330, 1635, 198, 6738, 299, 32152, 1330, 1635, 198, 6738, 299, 32152, 13, 75, 1292, 70, 1330, 8494, 198, 6738, 629, 541, 88, 13, 18908, 4873, 1330, 267, 2934, 600, 198, 6738, 629, 541, 88, 13, 34242, 1330, 2593...
2.088845
1,013
# forms are not just about display, instead they are more of validation # wtf forms protect our site against csrf attacks from flask_wtf import FlaskForm from wtforms import StringField, PasswordField, TextAreaField from wtforms.validators import (DataRequired, Regexp, ValidationError, Email, Length, EqualTo...
[ 2, 5107, 389, 407, 655, 546, 3359, 11, 2427, 484, 389, 517, 286, 21201, 198, 2, 266, 27110, 5107, 1805, 674, 2524, 1028, 269, 27891, 69, 3434, 198, 6738, 42903, 62, 86, 27110, 1330, 46947, 8479, 198, 6738, 266, 83, 23914, 1330, 1090...
3.597938
97
from sys import stderr, stdout from enum import Enum from colored import fg, attr PANTAM: str = fg("yellow") + attr("bold") + "PANTAM" + attr("reset") colour_msg = lambda msg, colour: fg(colour) + attr("bold") + msg + attr("reset") info_msg = lambda msg: colour_msg(msg, "blue") success_msg = lambda msg: colour_msg(ms...
[ 6738, 25064, 1330, 336, 1082, 81, 11, 14367, 448, 198, 6738, 33829, 1330, 2039, 388, 198, 6738, 16396, 1330, 277, 70, 11, 708, 81, 198, 198, 47, 8643, 2390, 25, 965, 796, 277, 70, 7203, 36022, 4943, 1343, 708, 81, 7203, 36575, 4943,...
2.825832
511
""" A Testcase to remove mon from when I/O's are happening. Polarion-ID- OCS-355 """ import logging import pytest from ocs_ci.ocs import ocp, constants from ocs_ci.framework.testlib import tier4, ManageTest from ocs_ci.framework import config from ocs_ci.ocs.resources import pod from tests.helpers import run_io_with...
[ 37811, 198, 32, 6208, 7442, 284, 4781, 937, 422, 198, 12518, 314, 14, 46, 338, 389, 5836, 13, 198, 198, 47, 6192, 295, 12, 2389, 12, 440, 7902, 12, 28567, 198, 198, 37811, 198, 198, 11748, 18931, 198, 11748, 12972, 9288, 198, 6738, ...
2.435135
370
from smartystreets_python_sdk import Request from smartystreets_python_sdk.exceptions import SmartyException from smartystreets_python_sdk.us_autocomplete_pro import Suggestion, geolocation_type
[ 6738, 4451, 88, 22853, 1039, 62, 29412, 62, 21282, 74, 1330, 19390, 198, 6738, 4451, 88, 22853, 1039, 62, 29412, 62, 21282, 74, 13, 1069, 11755, 1330, 10880, 88, 16922, 198, 6738, 4451, 88, 22853, 1039, 62, 29412, 62, 21282, 74, 13, ...
3.322034
59
# -*- coding: utf-8 -*- """ mssqlvc ~~~~~~~ Database version control utility for Microsoft SQL Server. See README.md for more information. Licensed under the BSD license. See LICENSE file in the project root for full license information. """ import argparse import datetime import io import logging im...
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 37811, 198, 220, 220, 220, 285, 824, 80, 6780, 66, 198, 220, 220, 220, 220, 8728, 4907, 93, 628, 220, 220, 220, 24047, 2196, 1630, 10361, 329, 5413, 16363, 9652, 13, ...
2.539436
1,737
''' Unit tests table.py. :see: http://docs.python.org/lib/minimal-example.html for an intro to unittest :see: http://agiletesting.blogspot.com/2005/01/python-unit-testing-part-1-unittest.html :see: http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/305292 ''' from __future__ import absolute_import from statsmodel...
[ 7061, 6, 198, 26453, 5254, 3084, 13, 9078, 13, 198, 198, 25, 3826, 25, 2638, 1378, 31628, 13, 29412, 13, 2398, 14, 8019, 14, 1084, 4402, 12, 20688, 13, 6494, 329, 281, 18951, 284, 555, 715, 395, 198, 25, 3826, 25, 2638, 1378, 363,...
2.371476
603
"""Types for the Todoist component.""" from __future__ import annotations from typing import TypedDict
[ 37811, 31431, 329, 262, 309, 24313, 396, 7515, 526, 15931, 198, 6738, 11593, 37443, 834, 1330, 37647, 198, 198, 6738, 19720, 1330, 17134, 276, 35, 713, 628 ]
3.888889
27
from collections import namedtuple from enum import IntEnum from ._zstd import * from . import _zstd __all__ = (# From this file 'compressionLevel_values', 'get_frame_info', 'CParameter', 'DParameter', 'Strategy', # From _zstd 'ZstdCompressor', 'RichMemZstdCompressor', ...
[ 6738, 17268, 1330, 3706, 83, 29291, 198, 6738, 33829, 1330, 2558, 4834, 388, 198, 198, 6738, 47540, 89, 19282, 1330, 1635, 198, 6738, 764, 1330, 4808, 89, 19282, 198, 198, 834, 439, 834, 796, 17426, 3574, 428, 2393, 198, 220, 220, 220...
2.464156
823
from abc import ABC, abstractmethod from contextlib import contextmanager from uuid import uuid4 import pytest from sqlalchemy import ( delete, select, UniqueConstraint, ) def persist(session, obj, return_id=True): """ Use the session to store obj in database, then remove obj from session, ...
[ 6738, 450, 66, 1330, 9738, 11, 12531, 24396, 198, 6738, 4732, 8019, 1330, 4732, 37153, 198, 6738, 334, 27112, 1330, 334, 27112, 19, 198, 198, 11748, 12972, 9288, 198, 6738, 44161, 282, 26599, 1330, 357, 198, 220, 220, 220, 12233, 11, ...
2.928675
687
from django.core.management.base import BaseCommand from django.contrib.auth import get_user_model
[ 6738, 42625, 14208, 13, 7295, 13, 27604, 13, 8692, 1330, 7308, 21575, 201, 198, 6738, 42625, 14208, 13, 3642, 822, 13, 18439, 1330, 651, 62, 7220, 62, 19849, 201, 198, 201, 198 ]
3.21875
32
# Copyright (c) Facebook, Inc. and its affiliates. # # This source code is licensed under the MIT license found in the # LICENSE file in the root directory of this source tree. """ An `image.layer` is a set of `feature` with some additional parameters. Its purpose to materialize those `feature`s as a btrfs subvolume ...
[ 2, 15069, 357, 66, 8, 3203, 11, 3457, 13, 290, 663, 29116, 13, 198, 2, 198, 2, 770, 2723, 2438, 318, 11971, 739, 262, 17168, 5964, 1043, 287, 262, 198, 2, 38559, 24290, 2393, 287, 262, 6808, 8619, 286, 428, 2723, 5509, 13, 198, ...
3.390616
1,833
from calendar import setfirstweekday stopped_in_user_file = True setfirstweekday(15)
[ 6738, 11845, 1330, 900, 11085, 10464, 820, 198, 301, 38333, 62, 259, 62, 7220, 62, 7753, 796, 6407, 198, 2617, 11085, 10464, 820, 7, 1314, 8 ]
3.230769
26
''' __main__, to run: python -m promt_tr ''' import sys from random import randint from promt_tr import promt_tr, LANG_CODES # pragma: no cover def main(): '''main''' from_lang = 'auto' to_lang = 'zh' text = 'test ' + str(randint(0, 10000)) if not sys.argv[1:]: print('Provide some Engli...
[ 7061, 6, 11593, 12417, 834, 11, 284, 1057, 25, 198, 29412, 532, 76, 1552, 83, 62, 2213, 198, 7061, 6, 198, 11748, 25064, 198, 6738, 4738, 1330, 43720, 600, 198, 198, 6738, 1552, 83, 62, 2213, 1330, 1552, 83, 62, 2213, 11, 406, 155...
1.925651
538
import os import sys import pandas as pd from datetime import datetime from settings import RAW_DATA_DIR, DataV3, DATA_V3_SUBVERSION from src.features.helpers.processing import add_missing_timestamp_values from src.features.helpers.processing_v3 import get_closest_players, get_players_and_ball_indices, calculate_distan...
[ 11748, 28686, 198, 11748, 25064, 198, 11748, 19798, 292, 355, 279, 67, 198, 6738, 4818, 8079, 1330, 4818, 8079, 198, 6738, 6460, 1330, 33782, 62, 26947, 62, 34720, 11, 6060, 53, 18, 11, 42865, 62, 53, 18, 62, 50, 10526, 43717, 198, ...
2.212218
2,832
#!/usr/bin/python """Annotates -E preprocessed source input with line numbers. Read std input, then annotate each line with line number based on previous expanded line directives from -E output. Useful in the context of compiler debugging. """ import getopt import os import re import sys import script_utils as u ...
[ 2, 48443, 14629, 14, 8800, 14, 29412, 198, 37811, 2025, 1662, 689, 532, 36, 662, 14681, 276, 2723, 5128, 351, 1627, 3146, 13, 198, 198, 5569, 14367, 5128, 11, 788, 24708, 378, 1123, 1627, 351, 1627, 1271, 1912, 319, 2180, 198, 11201, ...
2.537718
517
import streamlit as st import tensorflow as tf import numpy from utils.get_owm_data import get_open_weather_map_data from utils.get_date import get_date_list_for_gmt import plotly.graph_objects as go from plotly import tools import plotly.offline as py import plotly.express as px
[ 11748, 4269, 18250, 355, 336, 198, 11748, 11192, 273, 11125, 355, 48700, 198, 11748, 299, 32152, 198, 6738, 3384, 4487, 13, 1136, 62, 322, 76, 62, 7890, 1330, 651, 62, 9654, 62, 23563, 62, 8899, 62, 7890, 198, 6738, 3384, 4487, 13, ...
3.076087
92
# -*- coding: utf-8 -*- import os ROOT = os.path.abspath(os.path.dirname(__file__)) path = lambda *args: os.path.join(ROOT, *args) """ Template for local settings of the FST webservice (fst_web) Please edit this file and replace all generic values with values suitable to your particular installation. """ # NOTE! Al...
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 11748, 28686, 198, 198, 13252, 2394, 796, 28686, 13, 6978, 13, 397, 2777, 776, 7, 418, 13, 6978, 13, 15908, 3672, 7, 834, 7753, 834, 4008, 198, 6978, 796, 37456, 1635,...
2.819847
655
#! /usr/bin/env python3.6 import argparse import argcomplete from argcomplete.completers import ChoicesCompleter from argcomplete.completers import EnvironCompleter import requests from bthread import BookingThread from bs4 import BeautifulSoup from file_writer import FileWriter hotels = [] def prep_data(rooms=1,...
[ 2, 0, 1220, 14629, 14, 8800, 14, 24330, 21015, 18, 13, 21, 198, 11748, 1822, 29572, 198, 11748, 1822, 20751, 198, 6738, 1822, 20751, 13, 785, 1154, 1010, 1330, 10031, 1063, 5377, 1154, 353, 198, 6738, 1822, 20751, 13, 785, 1154, 1010,...
2.083168
2,020
#!/usr/bin/env python # # Copyright 2007 Google Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law o...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 198, 2, 198, 2, 15069, 4343, 3012, 3457, 13, 198, 2, 198, 2, 49962, 739, 262, 24843, 13789, 11, 10628, 362, 13, 15, 357, 1169, 366, 34156, 15341, 198, 2, 345, 743, 407, 779, 428, 2393, ...
3.268293
328
# Comet VOEvent Broker. from twisted.application.internet import ClientService from comet.protocol.subscriber import VOEventSubscriberFactory __all__ = ["makeSubscriberService"] def makeSubscriberService(endpoint, local_ivo, validators, handlers, filters): """Create a reconnecting VOEvent subscriber service. ...
[ 2, 36238, 30578, 9237, 2806, 6122, 13, 198, 198, 6738, 19074, 13, 31438, 13, 37675, 1330, 20985, 16177, 198, 198, 6738, 31733, 13, 11235, 4668, 13, 7266, 1416, 24735, 1330, 30578, 9237, 7004, 1416, 24735, 22810, 198, 198, 834, 439, 834,...
3.244344
442
# Copyright (c) 2012 The Chromium Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. import base64 import json import os import re import shutil import zlib from StringIO import StringIO try: # Create a block to work around evil sys.m...
[ 2, 15069, 357, 66, 8, 2321, 383, 18255, 1505, 46665, 13, 1439, 2489, 10395, 13, 198, 2, 5765, 286, 428, 2723, 2438, 318, 21825, 416, 257, 347, 10305, 12, 7635, 5964, 326, 460, 307, 198, 2, 1043, 287, 262, 38559, 24290, 2393, 13, 1...
3.094142
478
# ------------------------------ # 515. Find Largest Value in Each Tree Row # # Description: # You need to find the largest value in each row of a binary tree. # Example: # Input: # 1 # / \ # 3 2 # / \ \ # 5 3 9 # Output: [1, 3, 9] # # Version: 1.0 # 12/22/18 by Jia...
[ 2, 34400, 26171, 198, 2, 642, 1314, 13, 9938, 406, 853, 395, 11052, 287, 5501, 12200, 11314, 198, 2, 220, 198, 2, 12489, 25, 198, 2, 921, 761, 284, 1064, 262, 4387, 1988, 287, 1123, 5752, 286, 257, 13934, 5509, 13, 198, 2, 17934, ...
2.377289
273
# Copyright 2018 Michael DeHaan LLC, <michael@michaeldehaan.net> # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by app...
[ 2, 15069, 2864, 3899, 1024, 23303, 272, 11419, 11, 1279, 76, 40302, 31, 76, 488, 3609, 35209, 3099, 272, 13, 3262, 29, 198, 2, 220, 198, 2, 49962, 739, 262, 24843, 13789, 11, 10628, 362, 13, 15, 357, 1169, 366, 34156, 15341, 198, ...
3.664706
170
from enum import Enum
[ 6738, 33829, 1330, 2039, 388, 198 ]
3.666667
6
import cocos from MultiLanguage import MultiLanguage from package.helper import ProjectHelper
[ 198, 11748, 8954, 418, 198, 6738, 15237, 32065, 1330, 15237, 32065, 198, 198, 6738, 5301, 13, 2978, 525, 1330, 4935, 47429, 628 ]
4.409091
22
from matplotlib import colors import numpy as np
[ 6738, 2603, 29487, 8019, 1330, 7577, 198, 11748, 299, 32152, 355, 45941, 198 ]
3.769231
13
""" Manage the connection to the MongoDB server. """ import tornado.gen import tornado.ioloop import motor
[ 37811, 198, 5124, 496, 262, 4637, 284, 262, 42591, 11012, 4382, 13, 198, 37811, 198, 198, 11748, 33718, 13, 5235, 198, 11748, 33718, 13, 1669, 11224, 198, 198, 11748, 5584, 628, 198 ]
3.46875
32
################################################# ####### Author: Hugo Pibernat ####### ####### Contact: hugopibernat@gmail.com ####### ####### Date: April 2014 ####### ################################################# from bayesianABTest import sampleSuccessRateForBinomial, sampleMeanF...
[ 29113, 14468, 2, 198, 4242, 21017, 6434, 25, 25930, 350, 1856, 32353, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 46424, 2235, 198, 4242, 21017, 14039, 25, 16225, 404, 1856, 32353, 31, 14816, 13, 785, 220, 220, 46424, ...
2.585657
502
# This file is part of the airslate. # # Copyright (c) 2021 airSlate, Inc. # # For the full copyright and license information, please view # the LICENSE file that was distributed with this source code. from airslate.models.documents import UpdateFields from airslate.entities.fields import Field
[ 2, 770, 2393, 318, 636, 286, 262, 1633, 6649, 378, 13, 198, 2, 198, 2, 15069, 357, 66, 8, 33448, 1633, 11122, 378, 11, 3457, 13, 198, 2, 198, 2, 1114, 262, 1336, 6634, 290, 5964, 1321, 11, 3387, 1570, 198, 2, 262, 38559, 24290, ...
3.60241
83
from fastapi import FastAPI from fastapi.middleware.cors import CORSMiddleware from app import api from app.core.config import config app = FastAPI(title="Sheypoor") # Set all CORS enabled origins app.add_middleware( CORSMiddleware, allow_origins=["*"], allow_credentials=True, allow_methods=["*"], ...
[ 6738, 3049, 15042, 1330, 12549, 17614, 198, 6738, 3049, 15042, 13, 27171, 1574, 13, 66, 669, 1330, 23929, 12310, 2509, 1574, 198, 198, 6738, 598, 1330, 40391, 198, 6738, 598, 13, 7295, 13, 11250, 1330, 4566, 198, 198, 1324, 796, 12549, ...
2.721088
147
from typing import List, NamedTuple CCDS_FILE = 'CCDS.current.txt' CHROMOSOMES = ('1', '2', '3', '4', '5', '6', '7', '8', '9', '10', '11', '12', '13', '14', '15', '16', '17', '18', '19', '20', '21', '22', 'X', 'Y') def load_ccds() -> List[CdsPos]: """Load file with CDS locations wi...
[ 6738, 19720, 1330, 7343, 11, 34441, 51, 29291, 198, 198, 4093, 5258, 62, 25664, 796, 705, 4093, 5258, 13, 14421, 13, 14116, 6, 198, 3398, 33676, 2640, 2662, 1546, 796, 19203, 16, 3256, 705, 17, 3256, 705, 18, 3256, 705, 19, 3256, 70...
1.879684
1,014
import pytest from copy import deepcopy from gefest.core.structure.point import Point from gefest.core.structure.polygon import Polygon from gefest.core.structure.structure import Structure from gefest.core.algs.postproc.resolve_errors import * from gefest.core.algs.geom.validation import * # marking length and width...
[ 11748, 12972, 9288, 198, 6738, 4866, 1330, 2769, 30073, 198, 6738, 308, 891, 395, 13, 7295, 13, 301, 5620, 13, 4122, 1330, 6252, 198, 6738, 308, 891, 395, 13, 7295, 13, 301, 5620, 13, 35428, 14520, 1330, 12280, 14520, 198, 6738, 308, ...
3.045045
333
from unittest.mock import MagicMock, Mock from i3ipc.aio import Con import i3_live_tree.tree_serializer # noqa: F401
[ 6738, 555, 715, 395, 13, 76, 735, 1330, 6139, 44, 735, 11, 44123, 198, 198, 6738, 1312, 18, 541, 66, 13, 64, 952, 1330, 1482, 198, 198, 11748, 1312, 18, 62, 12583, 62, 21048, 13, 21048, 62, 46911, 7509, 220, 1303, 645, 20402, 25, ...
2.5625
48
#!/usr/bin/env python # -*- coding: utf-8 -*- """Gcp methods module.""" from hvac import exceptions from hvac.api.vault_api_base import VaultApiBase from hvac.constants.gcp import DEFAULT_MOUNT_POINT, ALLOWED_CREDS_ENDPOINTS
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 198, 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 37811, 38, 13155, 5050, 8265, 526, 15931, 198, 6738, 289, 85, 330, 1330, 13269, 198, 6738, 289, 85, 330, 13, 15042, 1...
2.483516
91
import token from tokenize import tokenize from brownie import Contract, chain from brownie.exceptions import ContractNotFound from cachetools.func import ttl_cache from .utils.cache import memory from .utils.multicall2 import fetch_multicall from .interfaces.ERC20 import ERC20ABI import ypricemagic.magic import yprice...
[ 11748, 11241, 198, 6738, 11241, 1096, 1330, 11241, 1096, 198, 6738, 7586, 494, 1330, 17453, 11, 6333, 198, 6738, 7586, 494, 13, 1069, 11755, 1330, 17453, 3673, 21077, 198, 6738, 40428, 3202, 10141, 13, 20786, 1330, 256, 28781, 62, 23870, ...
1.716083
2,226
""" TextRNN model configuration """
[ 37811, 8255, 49, 6144, 2746, 8398, 37227, 198 ]
4.5
8
DEBUG_MEMBER_LIST = [ 503131177, ]
[ 30531, 62, 44, 28952, 62, 45849, 796, 685, 198, 220, 220, 220, 2026, 25838, 1157, 3324, 11, 198, 60 ]
2
19
from typing import Tuple import torch from torch.autograd import Function import torch.nn as nn from metrics.pointops import pointops_cuda import numpy as np furthestsampling = FurthestSampling.apply gathering = Gathering.apply nearestneighbor = NearestNeighbor.apply interpolation = Interpolation.apply gro...
[ 6738, 19720, 1330, 309, 29291, 198, 198, 11748, 28034, 198, 6738, 28034, 13, 2306, 519, 6335, 1330, 15553, 198, 11748, 28034, 13, 20471, 355, 299, 77, 198, 198, 6738, 20731, 13, 4122, 2840, 1330, 966, 2840, 62, 66, 15339, 198, 198, 11...
2.414508
579
from collections import defaultdict from logging import getLogger from operator import itemgetter from os import environ from time import time from zope.cachedescriptors.property import Lazy as cachedproperty from zeit.cms.content.sources import FEATURE_TOGGLES from zope.component import getUtility from zeit.connector....
[ 6738, 17268, 1330, 4277, 11600, 198, 6738, 18931, 1330, 651, 11187, 1362, 198, 6738, 10088, 1330, 2378, 1136, 353, 198, 6738, 28686, 1330, 551, 2268, 198, 6738, 640, 1330, 640, 198, 6738, 1976, 3008, 13, 66, 2317, 3798, 1968, 669, 13, ...
3.532374
139
"""Project""" from __future__ import absolute_import, division, print_function, unicode_literals
[ 37811, 16775, 37811, 198, 6738, 11593, 37443, 834, 1330, 4112, 62, 11748, 11, 7297, 11, 3601, 62, 8818, 11, 28000, 1098, 62, 17201, 874, 628 ]
3.92
25
# Create your views here. from django.db.models import QuerySet from django.utils.decorators import method_decorator from drf_yasg.utils import swagger_auto_schema from rest_framework import viewsets, status from rest_framework.permissions import IsAuthenticated, AllowAny from rest_framework.response import Response fr...
[ 2, 13610, 534, 5009, 994, 13, 198, 6738, 42625, 14208, 13, 9945, 13, 27530, 1330, 43301, 7248, 198, 6738, 42625, 14208, 13, 26791, 13, 12501, 273, 2024, 1330, 2446, 62, 12501, 273, 1352, 198, 6738, 1553, 69, 62, 88, 292, 70, 13, 267...
3.992593
135
# -------------------------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # --------------------------------------------------------------------...
[ 2, 16529, 1783, 10541, 198, 2, 15069, 357, 66, 8, 5413, 10501, 13, 1439, 2489, 10395, 13, 198, 2, 49962, 739, 262, 17168, 13789, 13, 4091, 13789, 13, 14116, 287, 262, 1628, 6808, 329, 5964, 1321, 13, 198, 2, 16529, 1783, 10541, 198,...
6.359375
64
"""Provides all the data related to the development.""" LICENSES = [ "Apache License, 2.0 (Apache-2.0)", "The BSD 3-Clause License", "The BSD 2-Clause License", "GNU General Public License (GPL)", "General Public License (LGPL)", "MIT License (MIT)", "Mozilla Public License 2.0 (MPL-2.0)", ...
[ 37811, 15946, 1460, 477, 262, 1366, 3519, 284, 262, 2478, 526, 15931, 198, 198, 43, 2149, 16938, 1546, 796, 685, 198, 220, 220, 220, 366, 25189, 4891, 13789, 11, 362, 13, 15, 357, 25189, 4891, 12, 17, 13, 15, 42501, 198, 220, 220, ...
1.931095
4,020
""" A preliminary attempt at parsing an RST file's math syntax in order to make math render as inline rather than display mode. This doesn't work as of yet but might be useful. It could, however, be not useful if there's a pandoc option for converting .md to .rst that makes math inline and not display. Keeping it arou...
[ 37811, 198, 32, 15223, 2230, 379, 32096, 281, 371, 2257, 2393, 338, 10688, 15582, 198, 259, 1502, 284, 787, 10688, 8543, 355, 26098, 2138, 621, 3359, 198, 14171, 13, 770, 1595, 470, 670, 355, 286, 1865, 475, 1244, 307, 4465, 13, 198, ...
3.02439
205
from layout import Shape, Widget from flash.text.engine import TextBlock, TextElement
[ 6738, 12461, 1330, 25959, 11, 370, 17484, 198, 6738, 7644, 13, 5239, 13, 18392, 1330, 8255, 12235, 11, 8255, 20180, 198 ]
4.095238
21
import traceback import uuid import socket import logging import os import base64 import zlib import gzip import time import datetime from http import cookies from http.server import BaseHTTPRequestHandler from http.server import HTTPServer from threading import Thread import WebRequest if __name__ == '__main__'...
[ 198, 11748, 12854, 1891, 198, 11748, 334, 27112, 198, 11748, 17802, 198, 11748, 18931, 198, 11748, 28686, 198, 11748, 2779, 2414, 198, 11748, 1976, 8019, 198, 11748, 308, 13344, 198, 11748, 640, 198, 11748, 4818, 8079, 198, 6738, 2638, 13...
2.933333
180
import csv import math import numpy as np import pandas import scipy.optimize import sys import argparse if __name__ == '__main__': main()
[ 11748, 269, 21370, 198, 11748, 10688, 198, 11748, 299, 32152, 355, 45941, 198, 11748, 19798, 292, 198, 11748, 629, 541, 88, 13, 40085, 1096, 198, 11748, 25064, 198, 11748, 1822, 29572, 628, 628, 628, 628, 198, 361, 11593, 3672, 834, 662...
2.849057
53
# coding=utf-8 # *** WARNING: this file was generated by the Pulumi SDK Generator. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** import warnings import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union, overload from ... import _utilities fro...
[ 2, 19617, 28, 40477, 12, 23, 198, 2, 17202, 39410, 25, 428, 2393, 373, 7560, 416, 262, 21624, 12994, 26144, 35986, 13, 17202, 198, 2, 17202, 2141, 407, 4370, 416, 1021, 4556, 345, 821, 1728, 345, 760, 644, 345, 389, 1804, 0, 17202, ...
2.286908
1,436
import tkinter as tk import tkinter.messagebox from Control import Control
[ 11748, 256, 74, 3849, 355, 256, 74, 198, 11748, 256, 74, 3849, 13, 20500, 3524, 198, 6738, 6779, 1330, 6779, 198 ]
3.571429
21
#coding:utf-8 # # id: bugs.core_3355 # title: Wrong comparsion of DATE and TIMESTAMP if index is used # decription: # tracker_id: CORE-3355 # min_versions: ['2.1.5'] # versions: 3.0 # qmid: None import pytest from firebird.qa import db_factory, isql_act, Action # version: 3.0 # resou...
[ 2, 66, 7656, 25, 40477, 12, 23, 198, 2, 198, 2, 4686, 25, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 11316, 13, 7295, 62, 2091, 2816, 198, 2, 3670, 25, 220, 220, 220, 220, 220, 220, 220, 28843, 552, 945, 295, 286, 360, ...
2.354167
528
""" @author: anilkdegala """ import os from airflow import DAG from airflow.operators.bash_operator import BashOperator from airflow.operators.python_operator import PythonOperator, BranchPythonOperator from datetime import date, timedelta, datetime from collections import OrderedDict from scripts.dag_pebbles import ...
[ 37811, 198, 31, 9800, 25, 281, 43545, 13500, 6081, 198, 37811, 198, 11748, 28686, 198, 6738, 45771, 1330, 360, 4760, 198, 6738, 45771, 13, 3575, 2024, 13, 41757, 62, 46616, 1330, 15743, 18843, 1352, 198, 6738, 45771, 13, 3575, 2024, 13,...
2.157925
1,716
# Copyright 2014 IBM Corp. # # 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, s...
[ 2, 15069, 1946, 19764, 11421, 13, 198, 2, 198, 2, 49962, 739, 262, 24843, 13789, 11, 10628, 362, 13, 15, 357, 1169, 366, 34156, 15341, 345, 743, 198, 2, 407, 779, 428, 2393, 2845, 287, 11846, 351, 262, 13789, 13, 921, 743, 7330, 1...
3.982659
173
#!/usr/bin/env python # -*- coding: utf-8 -*- """ Module that contains the command line app. Why does this file exist, and why not put this in __main__? You might be tempted to import things from __main__ later, but that will cause problems: the code will get executed twice: - When you run `python -m nibetaser...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 198, 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 37811, 198, 26796, 326, 4909, 262, 3141, 1627, 598, 13, 198, 198, 5195, 857, 428, 2393, 2152, 11, 290, 1521, 407, 123...
2.224153
3,337
"""Config flow for SENZ WiFi.""" from __future__ import annotations import logging from typing import Any import voluptuous as vol from homeassistant.components import persistent_notification from homeassistant.data_entry_flow import FlowResult from homeassistant.helpers import config_entry_oauth2_flow from .const ...
[ 37811, 16934, 5202, 329, 44738, 57, 24904, 526, 15931, 198, 198, 6738, 11593, 37443, 834, 1330, 37647, 198, 198, 11748, 18931, 198, 6738, 19720, 1330, 4377, 198, 198, 11748, 2322, 37623, 5623, 355, 2322, 198, 6738, 1363, 562, 10167, 13, ...
3.731959
97
# Licensed under a 3-clause BSD style license - see LICENSE.rst """ Utilities for retrieving revision information from a project's git repository. """ # Do not remove the following comment; it is used by # astropy_helpers.version_helpers to determine the beginning of the code in # this module # BEGIN import locale ...
[ 2, 49962, 739, 257, 513, 12, 565, 682, 347, 10305, 3918, 5964, 532, 766, 38559, 24290, 13, 81, 301, 198, 198, 37811, 198, 18274, 2410, 329, 50122, 18440, 1321, 422, 257, 1628, 338, 17606, 16099, 13, 198, 37811, 198, 198, 2, 2141, 40...
2.724138
1,769
'''Test feet admittance control''' from sot_talos_balance.utils.run_test_utils import run_ft_calibration, run_test, runCommandClient try: # Python 2 input = raw_input # noqa except NameError: pass run_test('appli_feet_admittance.py') run_ft_calibration('robot.ftc') input("Wait before running the test") ...
[ 7061, 6, 14402, 3625, 6178, 47912, 1630, 7061, 6, 198, 6738, 264, 313, 62, 39240, 418, 62, 20427, 13, 26791, 13, 5143, 62, 9288, 62, 26791, 1330, 1057, 62, 701, 62, 9948, 571, 1358, 11, 1057, 62, 9288, 11, 1057, 21575, 11792, 198, ...
2.616915
201
import os from tendermint.db import VanillaDB from tendermint.utils import home_dir
[ 11748, 28686, 198, 198, 6738, 15403, 34289, 13, 9945, 1330, 33897, 11012, 198, 6738, 15403, 34289, 13, 26791, 1330, 1363, 62, 15908, 198 ]
3.695652
23
from django.test import TestCase from django.test import Client
[ 6738, 42625, 14208, 13, 9288, 1330, 6208, 20448, 198, 6738, 42625, 14208, 13, 9288, 1330, 20985, 628 ]
3.823529
17
# # Modified by Peize Sun # Contact: sunpeize@foxmail.com # # Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved """ OneNet Transformer class. Copy-paste from torch.nn.Transformer with modifications: * positional encodings are passed in MHattention * extra LN at the end of encoder is removed ...
[ 2, 198, 2, 40499, 416, 2631, 1096, 3825, 198, 2, 14039, 25, 4252, 431, 1096, 31, 12792, 4529, 13, 785, 198, 2, 198, 2, 15069, 357, 66, 8, 3203, 11, 3457, 13, 290, 663, 29116, 13, 1439, 6923, 33876, 198, 37811, 198, 3198, 7934, 3...
3.13099
313
"""Various utility functions. .. todo:: Reorganize this package in a more meaningful way. """ from __future__ import print_function from __future__ import absolute_import # from builtins import str # from builtins import range import torch from torch.nn.parameter import Parameter from torch.autograd import Variab...
[ 37811, 40009, 10361, 5499, 13, 198, 198, 492, 284, 4598, 3712, 198, 220, 220, 220, 797, 9971, 1096, 428, 5301, 287, 257, 517, 11570, 835, 13, 198, 37811, 198, 6738, 11593, 37443, 834, 1330, 3601, 62, 8818, 198, 6738, 11593, 37443, 834...
2.17805
14,788
""" ================================== Reading and writing an evoked file ================================== This script shows how to read and write evoked datasets. """ # Author: Alexandre Gramfort <alexandre.gramfort@inria.fr> # # License: BSD (3-clause) from mne import read_evokeds from mne.datasets import sample ...
[ 37811, 198, 10052, 855, 198, 36120, 290, 3597, 281, 819, 6545, 2393, 198, 10052, 855, 198, 198, 1212, 4226, 2523, 703, 284, 1100, 290, 3551, 819, 6545, 40522, 13, 198, 37811, 198, 2, 6434, 25, 21000, 260, 20159, 3319, 1279, 1000, 87, ...
3.292169
332
# A part of NonVisual Desktop Access (NVDA) # Copyright (C) 2021 NV Access Limited # This file is covered by the GNU General Public License. # See the file COPYING for more details. from . import wxMonkeyPatches applyWxMonkeyPatches = wxMonkeyPatches.apply
[ 2, 317, 636, 286, 8504, 36259, 27850, 8798, 357, 27159, 5631, 8, 201, 198, 2, 15069, 357, 34, 8, 33448, 23973, 8798, 15302, 201, 198, 2, 770, 2393, 318, 5017, 416, 262, 22961, 3611, 5094, 13789, 13, 201, 198, 2, 4091, 262, 2393, 2...
3.079545
88
from .common import InfoExtractor from ..compat import compat_str from ..utils import ( ExtractorError, int_or_none, float_or_none, smuggle_url, str_or_none, try_get, unified_strdate, unified_timestamp, )
[ 6738, 764, 11321, 1330, 14151, 11627, 40450, 198, 6738, 11485, 5589, 265, 1330, 8330, 62, 2536, 198, 6738, 11485, 26791, 1330, 357, 198, 220, 220, 220, 29677, 273, 12331, 11, 198, 220, 220, 220, 493, 62, 273, 62, 23108, 11, 198, 220, ...
2.428571
98
import torch from torch.autograd import Variable from torch.autograd.function import Function, once_differentiable import apex_C
[ 11748, 28034, 198, 6738, 28034, 13, 2306, 519, 6335, 1330, 35748, 198, 6738, 28034, 13, 2306, 519, 6335, 13, 8818, 1330, 15553, 11, 1752, 62, 39799, 3379, 198, 11748, 40167, 62, 34, 198 ]
3.909091
33
""" Module holds all stuff regarding Grinder tool usage Copyright 2015 BlazeMeter Inc. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless require...
[ 37811, 198, 26796, 6622, 477, 3404, 5115, 1902, 5540, 2891, 8748, 198, 198, 15269, 1853, 33965, 44, 2357, 3457, 13, 198, 198, 26656, 15385, 739, 262, 24843, 13789, 11, 10628, 362, 13, 15, 357, 1169, 366, 34156, 15341, 198, 5832, 743, ...
3.609195
348
import getopt import sys comment = ('#' + sys.argv[1]).encode() opts, args = getopt.getopt(sys.argv[2:], 'cf:o:xy') optstring = '' length = len(comment) for opt, arg in opts: if opt == '-o': out = arg elif opt not in ('-f', '-K'): optstring = optstring + ' ' + opt infile = open(args[0], 'rb') outfile = open(out...
[ 11748, 651, 8738, 198, 11748, 25064, 198, 23893, 796, 19203, 2, 6, 1343, 25064, 13, 853, 85, 58, 16, 35944, 268, 8189, 3419, 198, 404, 912, 11, 26498, 796, 651, 8738, 13, 1136, 8738, 7, 17597, 13, 853, 85, 58, 17, 25, 4357, 705, ...
2.358586
198
import io import os import base64 from pathlib import Path from nbconvert import filters from pygments.formatters.latex import LatexFormatter from zen_knit import formattor from zen_knit.data_types import ChunkOption, ExecutedData, OrganizedChunk, OrganizedData from zen_knit.formattor.html_formatter import HTMLFormat...
[ 11748, 33245, 198, 11748, 28686, 198, 11748, 2779, 2414, 198, 6738, 3108, 8019, 1330, 10644, 198, 198, 6738, 299, 65, 1102, 1851, 1330, 16628, 198, 6738, 12972, 11726, 13, 18982, 1010, 13, 17660, 87, 1330, 18319, 87, 8479, 1436, 198, 67...
2.677215
158
#!/usr/bin/env python # coding: utf-8 import sys import pybullet from qibullet.camera import * from qibullet.link import Link from qibullet.joint import Joint IS_VERSION_PYTHON_3 = sys.version_info[0] >= 3
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 198, 2, 19617, 25, 3384, 69, 12, 23, 198, 198, 11748, 25064, 198, 11748, 12972, 15065, 1616, 198, 6738, 10662, 571, 377, 1616, 13, 25695, 1330, 1635, 198, 6738, 10662, 571, 377, 1616, 13, ...
2.6125
80
#!/usr/bin/env python # -*- coding: utf-8 -*- import os import pytest import json from kafkacli.formatter import Formatter sampleJson = json.loads('{"a":"s", "b":1}')
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 198, 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 198, 11748, 28686, 198, 11748, 12972, 9288, 198, 11748, 33918, 198, 6738, 479, 1878, 74, 330, 4528, 13, 687, 1436, 1330...
2.492754
69
from django import forms from .models import Application
[ 6738, 42625, 14208, 1330, 5107, 198, 198, 6738, 764, 27530, 1330, 15678 ]
4.75
12
# ---------------------------------------------------------------------------- # CLASSES: nightly # # Test Case: protocolo.py # # Tests: vistprotocol unit test # # Mark C. Miller, Tue Jan 11 10:19:23 PST 2011 # ---------------------------------------------------------------------------- tapp = visit_bin_path(...
[ 2, 16529, 10541, 198, 2, 220, 42715, 1546, 25, 37862, 198, 2, 198, 2, 220, 6208, 8913, 25, 220, 8435, 78, 13, 9078, 198, 2, 198, 2, 220, 30307, 25, 220, 220, 220, 220, 220, 410, 396, 11235, 4668, 4326, 1332, 198, 2, 198, 2, 22...
3.416667
132
import libtcodpy as libtcod from random import randint nSquares = 30 nTiles = nSquares * 2 + 1 SCREEN_WIDTH = nTiles SCREEN_HEIGHT = nTiles libtcod.console_set_custom_font("cp437_12x12.png", libtcod.FONT_LAYOUT_ASCII_INROW) libtcod.console_init_root(SCREEN_WIDTH, SCREEN_HEIGHT, 'pyMazeBacktrack', False, li...
[ 11748, 9195, 83, 19815, 9078, 355, 9195, 83, 19815, 201, 198, 6738, 4738, 1330, 43720, 600, 201, 198, 201, 198, 77, 22266, 3565, 796, 1542, 201, 198, 77, 51, 2915, 796, 299, 22266, 3565, 1635, 362, 1343, 352, 201, 198, 201, 198, 617...
1.752562
1,366
# ###################################################################################################################### # Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. # # ...
[ 2, 1303, 29113, 29113, 29113, 14468, 4242, 2, 198, 2, 220, 15069, 6186, 13, 785, 11, 3457, 13, 393, 663, 29116, 13, 1439, 6923, 33876, 13, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, ...
1.956826
857
"""Auto-generated file, do not edit by hand. AG metadata""" from ..phonemetadata import NumberFormat, PhoneNumberDesc, PhoneMetadata PHONE_METADATA_AG = PhoneMetadata(id='AG', country_code=1, international_prefix='011', general_desc=PhoneNumberDesc(national_number_pattern='(?:268|[58]\\d\\d|900)\\d{7}', possible_l...
[ 37811, 27722, 12, 27568, 2393, 11, 466, 407, 4370, 416, 1021, 13, 13077, 20150, 37811, 198, 6738, 11485, 746, 261, 19261, 14706, 1330, 7913, 26227, 11, 14484, 15057, 24564, 11, 14484, 9171, 14706, 198, 198, 11909, 11651, 62, 47123, 2885, ...
2.361111
792
##################################################################### ## ## gradefiles-send.py ## ## Script to send grade files by email to enrolled students; the ## input grade file names should correspond to the user names of ## the students. ## ## from email.mime.text import MIMEText # For creating a message...
[ 29113, 29113, 4242, 2, 198, 2235, 220, 198, 2235, 9559, 16624, 12, 21280, 13, 9078, 198, 2235, 198, 2235, 220, 220, 12327, 284, 3758, 9559, 3696, 416, 3053, 284, 18724, 2444, 26, 262, 198, 2235, 220, 220, 5128, 9559, 2393, 3891, 815, ...
3.087931
580
import os import pickle import tensorflow as tf import wolframclient.serializers as wxf name = 'karras2018iclr-celebahq-1024x1024' file = open(name + '.pkl', 'rb') sess = tf.InteractiveSession() G, D, Gs = pickle.load(file) saver = tf.train.Saver() save_path = "./target/" + name + "/" model_name = 'model' if not os.pa...
[ 11748, 28686, 198, 11748, 2298, 293, 198, 11748, 11192, 273, 11125, 355, 48700, 198, 11748, 17481, 859, 16366, 13, 46911, 11341, 355, 266, 26152, 198, 198, 3672, 796, 705, 74, 3258, 292, 7908, 291, 14050, 12, 49840, 47041, 80, 12, 35500...
2.392927
509
#!/usr/bin/env python import os import os.path import yaml import time import random import multiprocessing import RPi.GPIO as GPIO from talk import say GPIO.setwarnings(False) GPIO.setmode(GPIO.BCM) from adafruit_servokit import ServoKit Motor1 = {'EN': 27, 'input1': 19, 'input2': 16} Motor2 = {'EN': 22, 'input1': 2...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 198, 198, 11748, 28686, 198, 11748, 28686, 13, 6978, 198, 11748, 331, 43695, 198, 11748, 640, 198, 11748, 4738, 198, 11748, 18540, 305, 919, 278, 198, 11748, 25812, 72, 13, 16960, 9399, 355, ...
2.16242
628
from uuid import uuid4 from sqlalchemy import Index, Column, Text, Table, ForeignKey from sqlalchemy.orm import object_session from onegov.core.orm import Base from onegov.core.orm.types import UUID spoken_association_table = Table( 'spoken_lang_association', Base.metadata, Column( 'translator_i...
[ 6738, 334, 27112, 1330, 334, 27112, 19, 198, 198, 6738, 44161, 282, 26599, 1330, 12901, 11, 29201, 11, 8255, 11, 8655, 11, 8708, 9218, 198, 6738, 44161, 282, 26599, 13, 579, 1330, 2134, 62, 29891, 198, 198, 6738, 530, 9567, 13, 7295, ...
2.424883
426
# Copyright 2019 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, s...
[ 2, 15069, 13130, 3012, 11419, 198, 2, 198, 2, 49962, 739, 262, 24843, 13789, 11, 10628, 362, 13, 15, 357, 1169, 366, 34156, 15341, 198, 2, 345, 743, 407, 779, 428, 2393, 2845, 287, 11846, 351, 262, 13789, 13, 198, 2, 921, 743, 733...
3.0035
1,143
# # For licensing see accompanying LICENSE file. # Copyright (C) 2022 Apple Inc. All Rights Reserved. # from torch.nn import functional as F from torch import Tensor import argparse from . import register_classification_loss_fn from .. import BaseCriteria
[ 2, 198, 2, 1114, 15665, 766, 19249, 38559, 24290, 2393, 13, 198, 2, 15069, 357, 34, 8, 33160, 4196, 3457, 13, 1439, 6923, 33876, 13, 198, 2, 198, 198, 6738, 28034, 13, 20471, 1330, 10345, 355, 376, 198, 6738, 28034, 1330, 309, 22854...
3.808824
68
""" Insertion Sort Algorithm:""" """Implementation""" # Using the special variable # __name__ if __name__ == "__main__": main()
[ 37811, 35835, 295, 33947, 978, 42289, 11097, 15931, 628, 198, 37811, 3546, 32851, 37811, 628, 628, 198, 2, 8554, 262, 2041, 7885, 198, 2, 11593, 3672, 834, 198, 361, 11593, 3672, 834, 6624, 366, 834, 12417, 834, 1298, 198, 220, 220, 2...
3.066667
45
# -*- coding: utf-8 -*- # emacs: -*- mode: python; py-indent-offset: 4; indent-tabs-mode: nil -*- # vi: set ft=python sts=4 ts=4 sw=4 et: """Top-level namespace for spm.""" from .base import (Info, SPMCommand, logger, no_spm, scans_for_fname, scans_for_fnames) from .preprocess import (FieldMap, Slic...
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 2, 795, 16436, 25, 532, 9, 12, 4235, 25, 21015, 26, 12972, 12, 521, 298, 12, 28968, 25, 604, 26, 33793, 12, 8658, 82, 12, 14171, 25, 18038, 532, 9, 12, 198, 2, 2...
2.155131
419
import numpy as np from mathUtils import *
[ 11748, 299, 32152, 355, 45941, 198, 6738, 10688, 18274, 4487, 1330, 1635 ]
3.5
12
from datetime import datetime from marquez_airflow import DAG from airflow.operators.postgres_operator import PostgresOperator from airflow.utils.dates import days_ago default_args = { 'owner': 'datascience', 'depends_on_past': False, 'start_date': days_ago(1), 'email_on_failure': False, 'email_on_...
[ 6738, 4818, 8079, 1330, 4818, 8079, 198, 6738, 1667, 22281, 62, 958, 11125, 1330, 360, 4760, 198, 6738, 45771, 13, 3575, 2024, 13, 7353, 34239, 62, 46616, 1330, 2947, 34239, 18843, 1352, 198, 6738, 45771, 13, 26791, 13, 19581, 1330, 152...
2.268496
838
# store information about a pizza being ordered pizza = { 'crust': 'thick', 'toppings': ['mushrooms', 'extra vegan cheese'] } # summarize the order print("You ordered a " + pizza['crust'] + "-crust pizza" + "with the following toppings:") for topping in pizza['toppings']: print("\t" + topping)
[ 2, 3650, 1321, 546, 257, 14256, 852, 6149, 198, 79, 9990, 796, 1391, 198, 220, 220, 220, 705, 6098, 436, 10354, 705, 400, 624, 3256, 198, 220, 220, 220, 705, 1462, 37840, 10354, 37250, 76, 1530, 9649, 3256, 705, 26086, 15169, 9891, ...
2.925234
107
a = float(input('Qual o preo do produto? R$')) d = a - (a * 23 / 100) print('O produto que custava R${:.2f}, na promoo de 23% de desconto vai custar: R${:.2f}' .format(a, d))
[ 64, 796, 220, 12178, 7, 15414, 10786, 46181, 220, 267, 662, 78, 466, 40426, 9390, 30, 371, 3, 6, 4008, 198, 67, 796, 257, 532, 357, 64, 1635, 2242, 1220, 1802, 8, 198, 4798, 10786, 46, 40426, 9390, 8358, 9378, 4170, 371, 38892, 25...
2.269231
78
# Submit a function to be run either locally or in a computing cluster. # Compared to original StyleGAN implementation, we extend the support for automatic training resumption, # and network recompilation. import copy import inspect import os import pathlib import pickle import platform import pprint import re import s...
[ 2, 39900, 257, 2163, 284, 307, 1057, 2035, 15726, 393, 287, 257, 14492, 13946, 13, 198, 2, 27492, 284, 2656, 17738, 45028, 7822, 11, 356, 9117, 262, 1104, 329, 11353, 3047, 581, 24098, 11, 198, 2, 290, 3127, 48765, 10520, 13, 198, 1...
4.049587
121