content
stringlengths
1
1.05M
input_ids
listlengths
1
883k
ratio_char_token
float64
1
22.9
token_count
int64
1
883k
from .jsonc import load, loads, dump, dumps
[ 6738, 764, 17752, 66, 1330, 3440, 11, 15989, 11, 10285, 11, 45514, 198 ]
3.384615
13
########################################################################## # # Copyright 2008-2009 VMware, Inc. # All Rights Reserved. # # 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 withou...
[ 29113, 29113, 7804, 2235, 198, 2, 198, 2, 15069, 3648, 12, 10531, 37754, 11, 3457, 13, 198, 2, 1439, 6923, 33876, 13, 198, 2, 198, 2, 2448, 3411, 318, 29376, 7520, 11, 1479, 286, 3877, 11, 284, 597, 1048, 16727, 257, 4866, 198, 2,...
1.937797
6,527
__version__ = '4.64.0'
[ 834, 9641, 834, 796, 705, 19, 13, 2414, 13, 15, 6, 198 ]
1.916667
12
import gym from gym import spaces, error, utils from gym.utils import seeding import numpy as np import configparser from os import path import matplotlib.pyplot as plt from matplotlib.pyplot import gca font = {'family': 'sans-serif', 'weight': 'bold', 'size': 14}
[ 11748, 11550, 198, 6738, 11550, 1330, 9029, 11, 4049, 11, 3384, 4487, 198, 6738, 11550, 13, 26791, 1330, 384, 8228, 198, 11748, 299, 32152, 355, 45941, 198, 11748, 4566, 48610, 198, 6738, 28686, 1330, 3108, 198, 11748, 2603, 29487, 8019, ...
2.83
100
# Copyright 2018 The TensorFlow 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 applica...
[ 2, 15069, 2864, 383, 309, 22854, 37535, 46665, 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, ...
3.826303
403
import multiprocessing as mp import subprocess import shutil import os from ..helper import make_path_safe, thirdparty_binary, filter_scp from ..exceptions import CorpusError def mfcc(mfcc_directory, num_jobs, feature_config, frequency_configs): """ Multiprocessing function that converts wav files into MFCC...
[ 11748, 18540, 305, 919, 278, 355, 29034, 198, 11748, 850, 14681, 198, 11748, 4423, 346, 198, 11748, 28686, 198, 198, 6738, 11485, 2978, 525, 1330, 787, 62, 6978, 62, 21230, 11, 2368, 10608, 62, 39491, 11, 8106, 62, 1416, 79, 198, 6738...
2.435774
833
""" A number of static methods for interpretting the state of the fantasy football pitch that aren't required directly by the client """ from ffai.core import Game, Action, ActionType from ffai.core.procedure import * from ffai.util.pathfinding import * from typing import Optional, List, Dict def blitz_used(game: G...
[ 37811, 198, 32, 1271, 286, 9037, 5050, 329, 6179, 889, 262, 1181, 286, 262, 8842, 4346, 7078, 326, 3588, 470, 2672, 3264, 416, 198, 1169, 5456, 198, 37811, 198, 6738, 31246, 1872, 13, 7295, 1330, 3776, 11, 7561, 11, 7561, 6030, 198, ...
2.462126
6,416
# -*- coding: utf-8 -*- """sb-fastapi CLI root.""" import logging import click from sb_backend.cli.commands.serve import serve cli.add_command(serve)
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 37811, 36299, 12, 7217, 15042, 43749, 6808, 526, 15931, 198, 11748, 18931, 198, 198, 11748, 3904, 198, 6738, 264, 65, 62, 1891, 437, 13, 44506, 13, 9503, 1746, 13, 2655,...
2.566667
60
import dash from dash import html app = dash.Dash(__name__) app.layout = html.Div(children=[html.H1('Data Science', style = {'textAlign': 'center', 'color': '#0FD08D', 'font-size': '...
[ 11748, 14470, 198, 6738, 14470, 1330, 27711, 198, 198, 1324, 796, 14470, 13, 43041, 7, 834, 3672, 834, 8, 198, 198, 1324, 13, 39786, 796, 27711, 13, 24095, 7, 17197, 41888, 6494, 13, 39, 16, 10786, 6601, 5800, 3256, 198, 220, 220, 2...
1.437956
959
# -*- coding: utf-8 -*- ################################################################################### from gluon import current from helper import get_constant, execute_remote_cmd, config, get_datetime, \ log_exception, is_pingable, get_context_path from libvirt import * # @UnusedWildImport from log_handler ...
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 29113, 29113, 14468, 21017, 198, 198, 6738, 1278, 84, 261, 1330, 1459, 198, 6738, 31904, 1330, 651, 62, 9979, 415, 11, 12260, 62, 47960, 62, 28758, 11, 4566, 11, 651, ...
2.30407
31,917
# Copyright 2015 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. """This module wraps the Android Asset Packaging Tool.""" import os from devil.utils import cmd_helper from pylib import constants _AAPT_PATH = os.path.jo...
[ 2, 15069, 1853, 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, 198, 198, 37811...
2.887218
399
setvar('nsamples', getvar('a') + getvar('b'))
[ 2617, 7785, 10786, 5907, 12629, 3256, 651, 7785, 10786, 64, 11537, 1343, 651, 7785, 10786, 65, 6, 4008, 198 ]
2.421053
19
"""Core recipes for Psi4""" from __future__ import annotations from dataclasses import dataclass from typing import Any, Dict from ase.atoms import Atoms from ase.calculators.psi4 import Psi4 from jobflow import Maker, job from monty.dev import requires try: import psi4 except: psi4 = None from quacc.schemas...
[ 37811, 14055, 14296, 329, 350, 13396, 19, 37811, 198, 6738, 11593, 37443, 834, 1330, 37647, 198, 198, 6738, 4818, 330, 28958, 1330, 4818, 330, 31172, 198, 6738, 19720, 1330, 4377, 11, 360, 713, 198, 198, 6738, 257, 325, 13, 265, 3150, ...
3.007042
142
#Main Program from Class import Barang import Menu histori = list() listBarang = [ Barang('Rinso', 5000, 20), Barang('Sabun', 3000, 20), Barang('Pulpen', 2500, 20), Barang('Tisu', 10000, 20), Barang('Penggaris', 1000, 20) ] while True: print(''' Menu 1. Tampilkan Barang 2. Tambahkan Barang 3. Ta...
[ 2, 13383, 6118, 201, 198, 6738, 5016, 1330, 2409, 648, 201, 198, 11748, 21860, 201, 198, 201, 198, 10034, 10145, 796, 1351, 3419, 201, 198, 4868, 10374, 648, 796, 685, 201, 198, 10374, 648, 10786, 49, 259, 568, 3256, 23336, 11, 1160, ...
2.206278
446
#coding:utf-8 import numpy as np import tensorflow as tf import os import time import datetime import ctypes import threading import json ll1 = ctypes.cdll.LoadLibrary lib_cnn = ll1("./init_cnn.so") ll2 = ctypes.cdll.LoadLibrary lib_kg = ll2("./init_know.so") bags_sum = 0.0 bags_hit_NA = 0.0 sum_NA = 0.0 su...
[ 2, 66, 7656, 25, 40477, 12, 23, 198, 11748, 299, 32152, 355, 45941, 198, 11748, 11192, 273, 11125, 355, 48700, 198, 11748, 28686, 198, 11748, 640, 198, 11748, 4818, 8079, 198, 11748, 269, 19199, 198, 11748, 4704, 278, 198, 11748, 33918,...
2.251645
1,824
#!/usr/bin/env python3 """get tag from http://demo.illustration2vec.net/.""" # note: # - error 'ERROR: Request Entity Too Large' for file 1.1 mb # <span style="color:red;">ERROR: Request Entity Too Large</span> from collections import OrderedDict from pathlib import Path from pprint import pformat import imghdr import ...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 18, 198, 37811, 1136, 7621, 422, 2638, 1378, 9536, 78, 13, 359, 44027, 17, 35138, 13, 3262, 14, 526, 15931, 198, 2, 3465, 25, 198, 2, 532, 4049, 705, 24908, 25, 19390, 20885, 14190, 13601...
2.323905
2,192
"""Functions for builtin CherryPy tools.""" import logging import re from hashlib import md5 import six from six.moves import urllib import cherrypy from cherrypy._cpcompat import text_or_bytes from cherrypy.lib import httputil as _httputil from cherrypy.lib import is_iterator # Conditional HTT...
[ 37811, 24629, 2733, 329, 3170, 259, 23165, 20519, 4899, 526, 15931, 198, 198, 11748, 18931, 198, 11748, 302, 198, 6738, 12234, 8019, 1330, 45243, 20, 198, 198, 11748, 2237, 198, 6738, 2237, 13, 76, 5241, 1330, 2956, 297, 571, 198, 198, ...
2.392388
7,225
'''Utility functions''' import multiprocessing from .globalVariables import * def readMathIOmicaData(fileName): '''Read text files exported by MathIOmica and convert to Python data Parameters: fileName: str Path of directories and name of the file containing data ...
[ 7061, 6, 18274, 879, 5499, 7061, 6, 201, 198, 201, 198, 201, 198, 11748, 18540, 305, 919, 278, 201, 198, 201, 198, 6738, 764, 20541, 23907, 2977, 1330, 1635, 201, 198, 201, 198, 201, 198, 4299, 1100, 37372, 9399, 76, 3970, 6601, 7, ...
2.303725
1,396
#! /usr/bin/env python #adam-does# runs SeeingClearly to get the seeing and rms of the image, then uses those to get sextractor thresholds for CR detection #adam-use# use with CRNitschke pipeline #adam-call_example# call it like ./get_sextract_thresholds.py /path/flname.fits output_file.txt #IO stuff: import sys ; sys...
[ 2, 0, 1220, 14629, 14, 8800, 14, 24330, 21015, 198, 2, 324, 321, 12, 22437, 2, 4539, 25913, 30638, 284, 651, 262, 4379, 290, 374, 907, 286, 262, 2939, 11, 788, 3544, 883, 284, 651, 384, 742, 40450, 40885, 329, 8740, 13326, 198, 2,...
2.429045
1,508
import time import multiprocessing
[ 11748, 640, 198, 11748, 18540, 305, 919, 278, 198 ]
3.888889
9
# -*- coding: utf-8 -*- from __future__ import unicode_literals from unittest import skipIf try: from django.core.urlresolvers import reverse except ModuleNotFoundError: from django.urls import reverse from django.db import transaction from aldryn_reversion.core import create_revision as aldryn_create_revisio...
[ 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, 555, 715, 395, 1330, 14267, 1532, 198, 198, 28311, 25, 198, 220, 220, 220, 422, 42625, 14208,...
3.094118
255
# Library for the dynamics of a lumen network # The lumen are 2 dimensional and symmetric and connected with 1 dimensional tubes # # Created by A. Mielke, 2018 # Modified by M. Le Verge--Serandour on 8/04/2019 """ network.py conf.init Defines the class network and associated functions Imports ...
[ 2, 10074, 329, 262, 17262, 286, 257, 300, 20080, 3127, 198, 2, 383, 300, 20080, 389, 362, 38517, 290, 23606, 19482, 290, 5884, 351, 352, 38517, 21103, 198, 2, 198, 2, 15622, 416, 317, 13, 337, 8207, 365, 11, 2864, 198, 2, 40499, 4...
2.875
184
# Illustrate upsampling in 2d # Code from Jason Brownlee # https://machinelearningmastery.com/generative_adversarial_networks/ import tensorflow as tf from tensorflow import keras from numpy import asarray #from keras.models import Sequential from tensorflow.keras.models import Sequential #from keras.layers import...
[ 2, 23279, 4873, 19649, 321, 11347, 287, 362, 67, 198, 2, 6127, 422, 8982, 4373, 7197, 198, 2, 3740, 1378, 30243, 40684, 9866, 88, 13, 785, 14, 8612, 876, 62, 324, 690, 36098, 62, 3262, 5225, 14, 628, 198, 11748, 11192, 273, 11125, ...
2.462141
383
__all__ = ['scaffold', 'command_set'] from gevent import monkey monkey.patch_all() import csv import os import sys import time import shutil from typing import List import gevent from src.BusinessCentralLayer.setting import logger, DEFAULT_POWER, CHROMEDRIVER_PATH, \ REDIS_MASTER, SERVER_DIR_DATABASE_CACHE, SE...
[ 834, 439, 834, 796, 37250, 1416, 2001, 727, 3256, 705, 21812, 62, 2617, 20520, 198, 198, 6738, 4903, 1151, 1330, 21657, 198, 198, 49572, 13, 17147, 62, 439, 3419, 198, 198, 11748, 269, 21370, 198, 11748, 28686, 198, 11748, 25064, 198, ...
2.905
600
#!/usr/bin/env python # -*- coding: utf-8 -*- # # Copyright 2016 Daniel Estevez <daniel@destevez.net>. # # This is free and unencumbered software released into the public domain. # # Anyone is free to copy, modify, publish, use, compile, sell, or # distribute this software, either in source code form or as a compiled ...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 198, 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 2, 198, 2, 15069, 1584, 7806, 412, 4169, 33425, 1279, 67, 6321, 31, 16520, 68, 33425, 13, 3262, 28401, 198, 2, 198, ...
3.602015
397
#!/usr/bin/python # # Start dfplayer. import argparse import os import shutil import subprocess import sys import time _PROJ_DIR = os.path.dirname(__file__) main()
[ 2, 48443, 14629, 14, 8800, 14, 29412, 198, 2, 198, 2, 7253, 47764, 7829, 13, 198, 198, 11748, 1822, 29572, 198, 11748, 28686, 198, 11748, 4423, 346, 198, 11748, 850, 14681, 198, 11748, 25064, 198, 11748, 640, 198, 198, 62, 31190, 41, ...
2.770492
61
#!/usr/bin/env python3 # Copyright 2017 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 or...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 18, 198, 2, 15069, 2177, 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, 2845...
2.993827
324
import argparse import models model_names = sorted(name for name in models.__dict__ if name.islower() and not name.startswith("__") and callable(models.__dict__[name]))
[ 11748, 1822, 29572, 198, 11748, 4981, 198, 198, 19849, 62, 14933, 796, 23243, 7, 3672, 329, 1438, 287, 4981, 13, 834, 11600, 834, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, ...
2.242105
95
from flask import Flask, Response from flask_basicauth import BasicAuth from flask_cors import CORS, cross_origin import os #from flask_admin import Admin,AdminIndexView #from flask_admin.contrib.sqla import ModelView from flask_sqlalchemy import SQLAlchemy as _BaseSQLAlchemy from flask_migrate import Migrate, Migr...
[ 198, 198, 6738, 42903, 1330, 46947, 11, 18261, 198, 6738, 42903, 62, 12093, 3970, 1071, 1330, 14392, 30515, 198, 6738, 42903, 62, 66, 669, 1330, 327, 20673, 11, 3272, 62, 47103, 198, 11748, 28686, 198, 198, 2, 6738, 42903, 62, 28482, ...
3.185185
486
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.core.management import BaseCommand from cobl.lexicon.models import LanguageList, \ MeaningList, \ Meaning, \ Lexeme, \ ...
[ 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, 7295, 13, 27604, 1330, 7308, 21575, 198, 198, 6738, 22843, 75, 13, 2588, 47...
1.564103
312
import pandas as pd from icu import Collator, Locale, RuleBasedCollator ddf = pd.read_csv("../word_frequency/unilex/din.txt", sep='\t', skiprows = range(2,5)) collator = Collator.createInstance(Locale('en_AU.UTF-8')) # https://stackoverflow.com/questions/13838405/custom-sorting-in-pandas-dataframe/27009771#27009771 ...
[ 11748, 19798, 292, 355, 279, 67, 198, 6738, 14158, 84, 1330, 7778, 1352, 11, 15181, 1000, 11, 14330, 15001, 22667, 1352, 198, 198, 1860, 69, 796, 279, 67, 13, 961, 62, 40664, 7203, 40720, 4775, 62, 35324, 14, 403, 576, 87, 14, 25194...
2.092257
607
# Python import unittest from copy import deepcopy from unittest.mock import Mock # ATS from pyats.topology import Device # Genie from genie.libs.ops.dot1x.ios.dot1x import Dot1X from genie.libs.ops.dot1x.ios.tests.dot1x_output import Dot1xOutput # Parser from genie.libs.parser.ios.show_dot1x import ShowDot1xAllDeta...
[ 2, 11361, 198, 11748, 555, 715, 395, 198, 6738, 4866, 1330, 2769, 30073, 198, 6738, 555, 715, 395, 13, 76, 735, 1330, 44123, 198, 198, 2, 317, 4694, 198, 6738, 12972, 1381, 13, 4852, 1435, 1330, 16232, 198, 198, 2, 49405, 198, 6738,...
1.87055
309
# ====================================================================== # copyright 2020. Triad National Security, LLC. All rights # reserved. This program was produced under U.S. Government contract # 89233218CNA000001 for Los Alamos National Laboratory (LANL), which # is operated by Triad National Security, LLC for ...
[ 2, 38093, 1421, 28, 198, 2, 6634, 12131, 13, 7563, 324, 2351, 4765, 11, 11419, 13, 1439, 2489, 198, 2, 10395, 13, 770, 1430, 373, 4635, 739, 471, 13, 50, 13, 5070, 2775, 198, 2, 9919, 1954, 2624, 1507, 34, 4535, 2388, 486, 329, ...
2.358951
2,212
from dataclasses import dataclass
[ 6738, 4818, 330, 28958, 1330, 4818, 330, 31172, 198 ]
3.777778
9
# -*- coding: utf-8 -*- ########################################################################## # NSAp - Copyright (C) CEA, 2020 # Distributed under the terms of the CeCILL-B license, as published by # the CEA-CNRS-INRIA. Refer to the LICENSE file or to # http://www.cecill.info/licences/Licence_CeCILL-B_V1-en.html #...
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 29113, 29113, 7804, 2235, 198, 2, 10551, 79, 532, 15069, 357, 34, 8, 327, 16412, 11, 12131, 198, 2, 4307, 6169, 739, 262, 2846, 286, 262, 20101, 34, 8267, 12, 33, 59...
3.096591
352
# Copyright 2018 The TensorFlow 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 applica...
[ 2, 15069, 2864, 383, 309, 22854, 37535, 46665, 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, ...
3.82906
234
# from PyQt5.QtWidgets import QMessageBox # def raise_error(message: str = "DEFAULT:Error Description:More Information"): # box = QMessageBox() # kind, msg, info = message.split(":") # box.setIcon(QMessageBox.Critical) # box.setWindowTitle(kind + " Error") # box.setText(msg) # box.setInformati...
[ 2, 422, 9485, 48, 83, 20, 13, 48, 83, 54, 312, 11407, 1330, 1195, 12837, 14253, 628, 198, 2, 825, 5298, 62, 18224, 7, 20500, 25, 965, 796, 366, 7206, 38865, 25, 12331, 12489, 25, 5167, 6188, 1, 2599, 198, 2, 220, 220, 220, 220, ...
2.4375
144
""" 759. Employee Free Time We are given a list schedule of employees, which represents the working time for each employee. Each employee has a list of non-overlapping Intervals, and these intervals are in sorted order. Return the list of finite intervals representing common, positive-length free time for all employe...
[ 37811, 198, 38314, 13, 36824, 3232, 3862, 198, 1135, 389, 1813, 257, 1351, 7269, 286, 4409, 11, 543, 6870, 262, 1762, 640, 329, 1123, 6538, 13, 198, 198, 10871, 6538, 468, 257, 1351, 286, 1729, 12, 2502, 75, 5912, 4225, 12786, 11, 2...
3.422833
473
import os, yaml config = { 'debug': False, 'port': 5000, 'store_path': '/var/storitch', 'pool_size': 5, 'logging': { 'level': 'warning', 'path': None, 'max_size': 100 * 1000 * 1000,# ~ 95 mb 'num_backups': 10, }, 'image_exts': [ '.jpg', '.jpeg', '.png...
[ 11748, 28686, 11, 331, 43695, 198, 198, 11250, 796, 1391, 198, 220, 220, 220, 705, 24442, 10354, 10352, 11, 198, 220, 220, 220, 705, 634, 10354, 23336, 11, 198, 220, 220, 220, 705, 8095, 62, 6978, 10354, 31051, 7785, 14, 301, 273, 2...
1.921659
217
import io import os import numpy as np import pandas import json import logging #<== Optional. Log to console, file, kafka from pipeline_monitor import prometheus_monitor as monitor #<== Optional. Monitor runtime metrics from pipeline_logger import log import tenso...
[ 11748, 33245, 198, 11748, 28686, 198, 11748, 299, 32152, 355, 45941, 198, 11748, 19798, 292, 198, 11748, 33918, 198, 11748, 18931, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220...
2.398607
1,149
import argparse import importlib import os import re import signal import subprocess import sys import time import logging from act.common import aCTLogger from act.common.aCTConfig import aCTConfigAPP from act.arc import aCTDBArc if __name__ == '__main__': main()
[ 11748, 1822, 29572, 198, 11748, 1330, 8019, 198, 11748, 28686, 198, 11748, 302, 198, 11748, 6737, 198, 11748, 850, 14681, 198, 11748, 25064, 198, 11748, 640, 198, 11748, 18931, 198, 6738, 719, 13, 11321, 1330, 257, 4177, 11187, 1362, 198,...
3.277108
83
from rest_framework.test import APITestCase, APIClient from django.urls import reverse from rest_framework.authtoken.models import Token
[ 6738, 1334, 62, 30604, 13, 9288, 1330, 3486, 2043, 395, 20448, 11, 3486, 2149, 75, 1153, 198, 6738, 42625, 14208, 13, 6371, 82, 1330, 9575, 198, 6738, 1334, 62, 30604, 13, 18439, 30001, 13, 27530, 1330, 29130, 628 ]
3.631579
38
from flask import Flask from src.models import db from . import config
[ 6738, 42903, 1330, 46947, 198, 198, 6738, 12351, 13, 27530, 1330, 20613, 198, 6738, 764, 1330, 4566, 628 ]
4.055556
18
from dependencies import Injector from dependencies import this from dependencies.contrib.celery import shared_task from examples.order.commands import ProcessOrder
[ 6738, 20086, 1330, 554, 752, 273, 198, 6738, 20086, 1330, 428, 198, 6738, 20086, 13, 3642, 822, 13, 7015, 88, 1330, 4888, 62, 35943, 198, 6738, 6096, 13, 2875, 13, 9503, 1746, 1330, 10854, 18743, 628 ]
4.611111
36
ano = int(input('Digite o ano: ')) if (ano%4) == 0: print ('Ele bissexto') else: print ('Ele no bissexto')
[ 5733, 796, 493, 7, 15414, 10786, 19511, 578, 267, 281, 78, 25, 705, 4008, 198, 361, 357, 5733, 4, 19, 8, 6624, 657, 25, 198, 220, 3601, 19203, 28827, 220, 275, 20782, 742, 78, 11537, 198, 17772, 25, 198, 220, 3601, 19203, 28827, 6...
2.24
50
__version__ = '0.0.1' __license__ = 'BSD'
[ 834, 9641, 834, 796, 705, 15, 13, 15, 13, 16, 6, 198, 834, 43085, 834, 796, 705, 21800, 6, 198 ]
2.1
20
from datetime import timedelta from typing import Union, List, Optional import click import pandas as pd from flask import current_app as app from flask.cli import with_appcontext from flexmeasures import Sensor from flexmeasures.data import db from flexmeasures.data.schemas.generic_assets import GenericAssetIdField ...
[ 6738, 4818, 8079, 1330, 28805, 12514, 198, 6738, 19720, 1330, 4479, 11, 7343, 11, 32233, 198, 198, 11748, 3904, 198, 11748, 19798, 292, 355, 279, 67, 198, 6738, 42903, 1330, 1459, 62, 1324, 355, 598, 198, 6738, 42903, 13, 44506, 1330, ...
2.687603
605
mail_settings = { "MAIL_SERVER": 'smtp.gmail.com', "MAIL_PORT": 465, "MAIL_USE_TLS": False, "MAIL_USE_SSL": True, "MAIL_USERNAME": 'c003.teste.jp@gmail.com', "MAIL_PASSWORD": 'C003.teste' }
[ 4529, 62, 33692, 796, 1391, 198, 220, 220, 220, 366, 5673, 4146, 62, 35009, 5959, 1298, 705, 5796, 34788, 13, 14816, 13, 785, 3256, 220, 198, 220, 220, 220, 366, 5673, 4146, 62, 15490, 1298, 49669, 11, 220, 198, 220, 220, 220, 366, ...
1.911504
113
#!/usr/bin/env python3.6 # -*- encoding=utf8 -*- import pyquery """ 1. URL 2. 3. 1. PARSER_PASSAGE_URL URL 2. PARSER_PASSAGE_TITLE 3. PARSER_PASSAGE_DATE 4. PARSER_PASSAGE_CATEGORY...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 18, 13, 21, 198, 2, 532, 9, 12, 21004, 28, 40477, 23, 532, 9, 12, 198, 11748, 12972, 22766, 198, 198, 37811, 198, 220, 220, 220, 220, 198, 220, 220, 220, 220, 220, 220, 220, 220, 198,...
1.364146
357
#!/usr/bin/env python3 # ---------------------------------------------------------------------------- # Copyright 2019 Drunella # # 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:/...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 18, 198, 198, 2, 16529, 10541, 198, 2, 15069, 13130, 1583, 403, 12627, 198, 2, 198, 2, 49962, 739, 262, 24843, 13789, 11, 10628, 362, 13, 15, 357, 1169, 366, 34156, 15341, 198, 2, 345, ...
3.445513
312
# SPDX-License-Identifier: BSD-3-Clause """ Text decode functions. These functions can be used to get Unicode strings from a series of bytes. """ from codecs import ( BOM_UTF8, BOM_UTF16_BE, BOM_UTF16_LE, BOM_UTF32_BE, BOM_UTF32_LE, CodecInfo, lookup as lookup_codec, ) from collections im...
[ 2, 30628, 55, 12, 34156, 12, 33234, 7483, 25, 347, 10305, 12, 18, 12, 2601, 682, 198, 198, 37811, 198, 8206, 36899, 5499, 13, 198, 198, 4711, 5499, 460, 307, 973, 284, 651, 34371, 13042, 422, 257, 2168, 286, 9881, 13, 198, 37811, ...
2.368937
2,144
import os import json import gzip from copy import deepcopy, copy import numpy as np import csv import torch import torch.nn as nn import torch.nn.functional as F from torch.utils.data import Dataset, DataLoader, RandomSampler from transformers.tokenization_utils import trim_batch # Special symbols SOS_token = "<SOS...
[ 11748, 28686, 198, 11748, 33918, 198, 11748, 308, 13344, 198, 6738, 4866, 1330, 2769, 30073, 11, 4866, 198, 11748, 299, 32152, 355, 45941, 198, 11748, 269, 21370, 198, 198, 11748, 28034, 198, 11748, 28034, 13, 20471, 355, 299, 77, 198, ...
2.259133
1,177
from typing import Dict from rest_framework import serializers from rest_framework.fields import empty from rest_framework.relations import ManyRelatedField from rest_framework.request import Request from .mixins import BridgerSerializerFieldMixin from .types import BridgerType, ReturnContentType
[ 6738, 19720, 1330, 360, 713, 198, 198, 6738, 1334, 62, 30604, 1330, 11389, 11341, 198, 6738, 1334, 62, 30604, 13, 25747, 1330, 6565, 198, 6738, 1334, 62, 30604, 13, 39468, 1330, 4650, 9819, 15878, 198, 6738, 1334, 62, 30604, 13, 25927, ...
4.267606
71
import networkx.algorithms.operators.tests.test_product import pytest from graphscope.experimental.nx.utils.compat import import_as_graphscope_nx import_as_graphscope_nx(networkx.algorithms.operators.tests.test_product, decorators=pytest.mark.usefixtures("graphscope_session"))
[ 11748, 3127, 87, 13, 282, 7727, 907, 13, 3575, 2024, 13, 41989, 13, 9288, 62, 11167, 198, 11748, 12972, 9288, 198, 198, 6738, 4823, 29982, 13, 23100, 9134, 13, 77, 87, 13, 26791, 13, 5589, 265, 1330, 1330, 62, 292, 62, 34960, 29982,...
2.618644
118
# {team} -> Name of team # {name} -> Name of person who supports team teamMatchStarted: list[str] = [ "{team} are shit", "{team} cunts", "Dirty {team}", "Dirty {team}, dirty {name}", ] drawing: list[str] = [ "{team} level, this is a shit match", "Boring old {team}", "Happy with how it's go...
[ 2, 1391, 15097, 92, 4613, 6530, 286, 1074, 198, 2, 1391, 3672, 92, 4613, 6530, 286, 1048, 508, 6971, 1074, 198, 198, 15097, 23850, 10434, 276, 25, 1351, 58, 2536, 60, 796, 685, 198, 220, 220, 220, 45144, 15097, 92, 389, 7510, 1600, ...
2.77825
1,646
from bench import bench print(bench(100, ''' def fib(n): return n if n < 2 else fib(n-1) + fib(n-2) ''', ''' fib(20) '''))
[ 6738, 7624, 1330, 7624, 198, 198, 4798, 7, 26968, 7, 3064, 11, 705, 7061, 198, 4299, 12900, 7, 77, 2599, 198, 220, 1441, 299, 611, 299, 1279, 362, 2073, 12900, 7, 77, 12, 16, 8, 1343, 12900, 7, 77, 12, 17, 8, 198, 7061, 3256, ...
2.206897
58
# coding=utf-8 from nlpir.native.nlpir_base import NLPIRBase from ctypes import c_bool, c_char_p, c_int, POINTER, Structure, c_float
[ 2, 19617, 28, 40477, 12, 23, 198, 6738, 299, 75, 4063, 13, 30191, 13, 21283, 4063, 62, 8692, 1330, 399, 19930, 4663, 14881, 198, 6738, 269, 19199, 1330, 269, 62, 30388, 11, 269, 62, 10641, 62, 79, 11, 269, 62, 600, 11, 19922, 4135...
2.596154
52
# -*- coding: utf-8 -*- import pytest from mock import Mock from bravado_core.exception import SwaggerMappingError from bravado_core.operation import Operation from bravado_core.param import get_param_type_spec from bravado_core.param import Param from bravado_core.spec import Spec
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 11748, 12972, 9288, 198, 6738, 15290, 1330, 44123, 198, 198, 6738, 49025, 4533, 62, 7295, 13, 1069, 4516, 1330, 2451, 7928, 44, 5912, 12331, 198, 6738, 49025, 4533, 62, ...
3.321839
87
# Copyright (c) 2019 Princeton University # # This source code is licensed under the MIT license found in the # LICENSE file in the root directory of this source tree. from markdown import markdown import base64 import json import base64
[ 2, 15069, 357, 66, 8, 13130, 23173, 2059, 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, 198, 6738, 1317, 2902, ...
4.12069
58
from pydub import AudioSegment import os import math from pathlib import Path ''' Splice wav files into multiple segments. ''' LENGTH = 3 # Set splice length in seconds
[ 6738, 279, 5173, 549, 1330, 13491, 41030, 434, 198, 11748, 28686, 198, 11748, 10688, 198, 6738, 3108, 8019, 1330, 10644, 198, 198, 7061, 6, 198, 26568, 501, 266, 615, 3696, 656, 3294, 17894, 13, 198, 7061, 6, 198, 198, 43, 49494, 796,...
3.326923
52
#!/usr/bin/env python # -*- coding: utf-8 -*- """ @author: Wu Liang @contact: @date: 2014/06/23 """ import os import sqlite3 import urllib2 import shutil import tarfile import hashlib import codecs from mako.template import Template from pyquery import PyQuery currentPath = os.path.join(os.path.dirname(os.path.real...
[ 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, 31, 9800, 25, 18027, 43322, 198, 31, 32057, 25, 220, 198, 31, 4475, 25, 1946, 14, 3312, 14, 1954, 198, ...
2.669601
1,477
import os import sys sys.path.insert(0, os.path.abspath("..")) # -------------------------------------------------------------------------------------- project = "nisystemlink" copyright = "2020, National Instruments" author = "National Instruments" # The short X.Y version version = "0.1" # The full version, includ...
[ 11748, 28686, 198, 11748, 25064, 198, 198, 17597, 13, 6978, 13, 28463, 7, 15, 11, 28686, 13, 6978, 13, 397, 2777, 776, 7203, 492, 48774, 198, 198, 2, 16529, 19351, 438, 198, 198, 16302, 796, 366, 21361, 6781, 8726, 1, 198, 22163, 47...
2.731664
559
from typing import Dict, List from arango.cursor import Cursor from django.http.response import Http404 from django.shortcuts import get_object_or_404 from rest_framework.pagination import LimitOffsetPagination from rest_framework.request import Request from rest_framework_extensions.mixins import NestedViewSetMixin ...
[ 6738, 19720, 1330, 360, 713, 11, 7343, 198, 198, 6738, 610, 14208, 13, 66, 21471, 1330, 327, 21471, 198, 6738, 42625, 14208, 13, 4023, 13, 26209, 1330, 367, 29281, 26429, 198, 6738, 42625, 14208, 13, 19509, 23779, 1330, 651, 62, 15252, ...
3.583333
120
# Copyright 2018 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 argparse import logging import os import sys if __name__ == '__main__': args = ParseArgs() ConfigureLogging(args) logging.info("Arguments:...
[ 2, 15069, 2864, 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, 198, 198, 11748...
2.989873
395
from django.conf import settings from django.db import models from django.utils.translation import ugettext_lazy as _ from django.utils.encoding import python_2_unicode_compatible from django.urls import reverse from django_extensions.db.models import TimeStampedModel from mptt.models import MPTTModel, TreeForeignKey ...
[ 6738, 42625, 14208, 13, 10414, 1330, 6460, 198, 6738, 42625, 14208, 13, 9945, 1330, 4981, 198, 6738, 42625, 14208, 13, 26791, 13, 41519, 1330, 334, 1136, 5239, 62, 75, 12582, 355, 4808, 198, 6738, 42625, 14208, 13, 26791, 13, 12685, 765...
3.557377
122
# -------------------------------------------------------------------------------------------- # 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.314286
105
import unittest from gamesopt.train import train, TrainConfig
[ 11748, 555, 715, 395, 198, 6738, 1830, 8738, 13, 27432, 1330, 4512, 11, 16835, 16934 ]
4.066667
15
import pandas as pd
[ 11748, 19798, 292, 355, 279, 67, 628 ]
3
7
# coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for # license information. # # Code generated by Microsoft (R) AutoRest Code Generator. # Changes ...
[ 2, 19617, 28, 40477, 12, 23, 198, 2, 16529, 35937, 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, 198, 2, 5964, 1321...
5.141414
99
from setuptools import setup, find_packages install_requires = [ "allennlp>=0.9.0", "wandb==0.8.15", ] setup( name='allennlp_wandb', version='0.0.1', description='Utilities to use allennlp with wandb', packages=find_packages( exclude=["*.tests", "*.tests.*", "tests.*", "tests"]), p...
[ 6738, 900, 37623, 10141, 1330, 9058, 11, 1064, 62, 43789, 198, 198, 17350, 62, 47911, 796, 685, 198, 220, 220, 220, 366, 439, 1697, 34431, 29, 28, 15, 13, 24, 13, 15, 1600, 198, 220, 220, 220, 366, 86, 392, 65, 855, 15, 13, 23, ...
2.348066
181
#!/usr/bin/env python from setuptools import setup, find_packages setup( name="django-axes", description="Keep track of failed login attempts in Django-powered sites.", long_description="\n".join( [ open("README.rst", encoding="utf-8").read(), open("CHANGES.rst", encoding="...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 198, 198, 6738, 900, 37623, 10141, 1330, 9058, 11, 1064, 62, 43789, 198, 198, 40406, 7, 198, 220, 220, 220, 1438, 2625, 28241, 14208, 12, 897, 274, 1600, 198, 220, 220, 220, 6764, 2625, 1...
2.348577
984
from django.contrib import admin from achievements import models admin.site.register(models.Achievement)
[ 6738, 42625, 14208, 13, 3642, 822, 1330, 13169, 198, 6738, 16970, 1330, 4981, 198, 198, 28482, 13, 15654, 13, 30238, 7, 27530, 13, 32, 24957, 434, 8, 198 ]
3.785714
28
from torch.nn import CrossEntropyLoss
[ 6738, 28034, 13, 20471, 1330, 6372, 14539, 28338, 43, 793, 628, 628 ]
3.416667
12
import numpy as np import pandas as pd import matplotlib.pyplot as plt if __name__ == '__main__': files_http1 = ['./results/benchmark_size/http1_txt1.csv', './results/benchmark_size/http1_txt2.csv', './results/benchmark_size/http1_txt3.csv', './results/benchmark_size/http1_txt4.csv', './results/benchmark_size/htt...
[ 11748, 299, 32152, 355, 45941, 198, 11748, 19798, 292, 355, 279, 67, 198, 11748, 2603, 29487, 8019, 13, 9078, 29487, 355, 458, 83, 628, 198, 361, 11593, 3672, 834, 6624, 705, 834, 12417, 834, 10354, 198, 220, 220, 220, 3696, 62, 4023,...
2.223633
2,835
import unittest import os from matplotlib import pyplot as plt from shapely import geometry, affinity X_COORDINATE = 0 Y_COORDINATE = 1 def extract_x_y(polygon: list) -> (list, list): """Extract the x and y coordinates as two separate lists""" x_list = [] y_list = [] for vertex in polygon: x...
[ 11748, 555, 715, 395, 198, 11748, 28686, 198, 6738, 2603, 29487, 8019, 1330, 12972, 29487, 355, 458, 83, 198, 6738, 5485, 306, 1330, 22939, 11, 28430, 198, 198, 55, 62, 8220, 12532, 1268, 6158, 796, 657, 198, 56, 62, 8220, 12532, 1268...
2.220956
2,281
import os from PIL import Image from array import * from random import shuffle import shutil # Load from and save to Names = [['./training-images','train'], ['./test-images','test']] for name in Names: FileList = [] for dirname in os.listdir(name[0]): path = os.path.join(name[0],dirname) p...
[ 11748, 28686, 198, 6738, 350, 4146, 1330, 7412, 198, 6738, 7177, 1330, 1635, 198, 6738, 4738, 1330, 36273, 198, 11748, 4423, 346, 628, 628, 198, 2, 8778, 422, 290, 3613, 284, 628, 198, 36690, 796, 16410, 4458, 14, 34409, 12, 17566, 41...
2.654412
136
import sys from pyspark import SparkContext import json print('spark got python path -> ' + str(sys.executable)) logfile = sys.argv[1] sc = SparkContext() logdata = sc.textFile(logfile).cache() a_count = logdata.filter(lambda s: 'a' in s).count() b_count = logdata.filter(lambda s: 'b' in s).count() print(json.dumps({'a...
[ 11748, 25064, 198, 6738, 279, 893, 20928, 1330, 17732, 21947, 198, 11748, 33918, 198, 4798, 10786, 2777, 668, 1392, 21015, 3108, 4613, 705, 1343, 965, 7, 17597, 13, 18558, 18187, 4008, 198, 6404, 7753, 796, 25064, 13, 853, 85, 58, 16, ...
2.71875
128
import bpy from bpy.props import * from ...nodes.BASE.node_base import RenderNodeBase
[ 11748, 275, 9078, 198, 6738, 275, 9078, 13, 1676, 862, 1330, 1635, 198, 6738, 2644, 77, 4147, 13, 33, 11159, 13, 17440, 62, 8692, 1330, 46722, 19667, 14881, 628, 628, 198 ]
2.903226
31
from keras.models import load_model import cv2 import pickle import keras.backend as K import numpy as np from src.model_path import MODEL_PATH '''def predict(self, cell): model = load_model('./model/Model.h5') f = K.function([model.layers[0].input, K.learning_phase()],[model.layers[-1].output]) rescaled_cell = ...
[ 6738, 41927, 292, 13, 27530, 1330, 3440, 62, 19849, 198, 11748, 269, 85, 17, 198, 11748, 2298, 293, 198, 11748, 41927, 292, 13, 1891, 437, 355, 509, 198, 11748, 299, 32152, 355, 45941, 198, 6738, 12351, 13, 19849, 62, 6978, 1330, 1916...
2.69084
262
# -*- coding: utf-8 -*- """A module for plotting penguins data for modelling with scikit-learn.""" # Imports --------------------------------------------------------------------- import matplotlib as mpl import matplotlib.pyplot as plt import numpy as np import pandas as pd # Constants -----------------------------...
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 198, 37811, 32, 8265, 329, 29353, 38373, 1040, 1366, 329, 38591, 351, 629, 1134, 270, 12, 35720, 526, 15931, 198, 198, 2, 1846, 3742, 16529, 30934, 198, 198, 11748, 2603...
2.30411
1,825
from django.db import migrations
[ 6738, 42625, 14208, 13, 9945, 1330, 15720, 602, 628, 198 ]
3.5
10
import unittest from forestgame.game.world import World
[ 11748, 555, 715, 395, 198, 198, 6738, 8222, 6057, 13, 6057, 13, 6894, 1330, 2159, 198 ]
3.5625
16
# Copyright 2021 Richard Johnston <techpowerawaits@outlook.com> # SPDX-license-identifier: 0BSD import string from loguru import logger try: import cell_pos from exceptions import InvconvMissingHeaders import ftype import msg_handler except ModuleNotFoundError: import invconv.cell_pos as cell_pos...
[ 2, 15069, 33448, 6219, 28972, 1279, 13670, 6477, 6909, 896, 31, 448, 5460, 13, 785, 29, 198, 2, 30628, 55, 12, 43085, 12, 738, 7483, 25, 657, 21800, 198, 198, 11748, 4731, 198, 198, 6738, 2604, 14717, 1330, 49706, 198, 198, 28311, 2...
2.868493
365
import os from tkinter import * import tkinter.filedialog as tkfd from PIL import Image import numpy as np import solvers.generation_solver.image_seperation as IS if __name__ == '__main__': print(show_interface())
[ 11748, 28686, 198, 6738, 256, 74, 3849, 1330, 1635, 198, 11748, 256, 74, 3849, 13, 69, 3902, 498, 519, 355, 256, 74, 16344, 198, 6738, 350, 4146, 1330, 7412, 198, 11748, 299, 32152, 355, 45941, 198, 11748, 1540, 690, 13, 20158, 62, ...
2.858974
78
from bs4 import BeautifulSoup as soup from urllib.request import urlopen as uReq import re, json # Getting the page URL = "https://www.astronomytrek.com/star-constellations-brightest-stars/" uClient = uReq(url=URL) page_html = uClient.read() page_soup = soup(page_html, "html.parser") # Opening a file to write in star...
[ 6738, 275, 82, 19, 1330, 23762, 50, 10486, 355, 17141, 198, 6738, 2956, 297, 571, 13, 25927, 1330, 19016, 9654, 355, 334, 3041, 80, 198, 11748, 302, 11, 33918, 198, 198, 2, 18067, 262, 2443, 198, 21886, 796, 366, 5450, 1378, 2503, 1...
2.288089
361
if __name__ == '__main__': sol=Solution() # height = [1, 1] height=[1,3,2,5,25,24,5] print(sol.maxArea(height))
[ 198, 361, 11593, 3672, 834, 6624, 705, 834, 12417, 834, 10354, 198, 220, 220, 220, 1540, 28, 46344, 3419, 198, 220, 220, 220, 1303, 6001, 796, 685, 16, 11, 352, 60, 198, 220, 220, 220, 6001, 41888, 16, 11, 18, 11, 17, 11, 20, 11...
1.984615
65
# coding=utf-8 # Copyright 2020 TF.Text Authors. # # 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, 19617, 28, 40477, 12, 23, 198, 2, 15069, 12131, 24958, 13, 8206, 46665, 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, ...
2.093428
1,552
"""Unit test for the index.py file.""" import unittest from datetime import datetime, timedelta, timezone import json from unittest.mock import patch, mock_open import requests_mock from src import index from src import github_services
[ 37811, 26453, 1332, 329, 262, 6376, 13, 9078, 2393, 526, 15931, 198, 198, 11748, 555, 715, 395, 198, 6738, 4818, 8079, 1330, 4818, 8079, 11, 28805, 12514, 11, 640, 11340, 198, 11748, 33918, 198, 6738, 555, 715, 395, 13, 76, 735, 1330,...
3.567164
67
# -*- coding: utf-8 -*- # # Copyright 2017 Ricequant, 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 ...
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 2, 198, 2, 15069, 2177, 13823, 40972, 11, 3457, 198, 2, 198, 2, 49962, 739, 262, 24843, 13789, 11, 10628, 362, 13, 15, 357, 1169, 366, 34156, 15341, 198, 2, 345, 743...
3.629412
170
import funcvote as vote votes = input(" >>>") # print(votes) # print(type(votes)) result = vote.str2int(votes) print(vote.countvotes(result)) result = vote.countvotes(result) vote.printvote(result) #
[ 11748, 25439, 27257, 355, 3015, 198, 198, 29307, 796, 5128, 7203, 13163, 4943, 198, 2, 3601, 7, 29307, 8, 198, 2, 3601, 7, 4906, 7, 29307, 4008, 198, 198, 20274, 796, 3015, 13, 2536, 17, 600, 7, 29307, 8, 198, 198, 4798, 7, 27257,...
2.797297
74
# Day 2: Operators # Start using arithmetic operators. # # https://www.hackerrank.com/challenges/30-operators/problem # #!/bin/python3 import sys if __name__ == "__main__": meal_cost = float(input().strip()) tip_percent = int(input().strip()) tax_percent = int(input().strip()) cost = meal_cost * (1 ...
[ 2, 3596, 362, 25, 6564, 2024, 198, 2, 7253, 1262, 34768, 12879, 13, 198, 2, 198, 2, 3740, 1378, 2503, 13, 31153, 8056, 962, 13, 785, 14, 36747, 34120, 14, 1270, 12, 3575, 2024, 14, 45573, 198, 2, 198, 198, 2, 48443, 8800, 14, 29...
2.79085
153
from django.http import HttpResponse from django.template import RequestContext, loader from django.shortcuts import render, get_object_or_404, redirect from django.core.urlresolvers import reverse from django.core.cache import cache from articles.models import CIFArticle from .forms import CIFArticleForm def index(r...
[ 6738, 42625, 14208, 13, 4023, 1330, 367, 29281, 31077, 198, 6738, 42625, 14208, 13, 28243, 1330, 19390, 21947, 11, 40213, 198, 6738, 42625, 14208, 13, 19509, 23779, 1330, 8543, 11, 651, 62, 15252, 62, 273, 62, 26429, 11, 18941, 198, 673...
2.374763
1,054
# Copyright (c) 2021, Omid Erfanmanesh, All rights reserved.
[ 2, 220, 15069, 357, 66, 8, 33448, 11, 440, 13602, 5256, 24408, 805, 5069, 11, 1439, 2489, 10395, 13, 198 ]
3.1
20
# noinspection PyPep8 """pydoc_fork A fork of pydoc that is optimized for generating html documentation in a CI context Usage: pydoc_fork <package>... [options] pydoc_fork (-h | --help) pydoc_fork --version Options: -h --help Show this screen. -v --version Show version. ...
[ 2, 645, 1040, 14978, 9485, 47, 538, 23, 198, 37811, 79, 5173, 420, 62, 32523, 198, 32, 15563, 286, 279, 5173, 420, 326, 318, 23392, 329, 15453, 27711, 10314, 287, 257, 14514, 4732, 198, 198, 28350, 25, 198, 220, 279, 5173, 420, 62, ...
2.415512
1,083
""" libs.strings By default, uses `en-gb.json` file inside the `strings` top-level folder. If language changes, set `libs.strings.default_locale` and run `libs.strings.refresh()`. """ import json default_locale = "en-us" cached_strings = {} refresh()
[ 37811, 198, 8019, 82, 13, 37336, 198, 198, 3886, 4277, 11, 3544, 4600, 268, 12, 22296, 13, 17752, 63, 2393, 2641, 262, 4600, 37336, 63, 1353, 12, 5715, 9483, 13, 198, 198, 1532, 3303, 2458, 11, 900, 4600, 8019, 82, 13, 37336, 13, ...
2.835165
91
# Copyright 2013-2021 The Salish Sea MEOPAR Contributors # and The University of British Columbia # 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...
[ 2, 15069, 2211, 12, 1238, 2481, 383, 4849, 680, 6896, 11948, 3185, 1503, 25767, 669, 198, 2, 290, 383, 2059, 286, 3517, 9309, 198, 198, 2, 49962, 739, 262, 24843, 13789, 11, 10628, 362, 13, 15, 357, 1169, 366, 34156, 15341, 198, 2, ...
3.132855
557
"""distributions module.""" from UQpy.distributions.collection.Beta import Beta from UQpy.distributions.collection.Binomial import Binomial from UQpy.distributions.collection.Cauchy import Cauchy from UQpy.distributions.collection.ChiSquare import ChiSquare from UQpy.distributions.collection.Exponential import Exponent...
[ 37811, 17080, 2455, 507, 8265, 526, 15931, 198, 6738, 471, 48, 9078, 13, 17080, 2455, 507, 13, 43681, 13, 43303, 1330, 17993, 198, 6738, 471, 48, 9078, 13, 17080, 2455, 507, 13, 43681, 13, 33, 259, 49070, 1330, 20828, 49070, 198, 6738...
3.522782
417
# # Example file for HelloWorld # if __name__ == "__main__": main()
[ 2, 198, 2, 17934, 2393, 329, 18435, 10603, 198, 2, 628, 198, 198, 361, 11593, 3672, 834, 6624, 366, 834, 12417, 834, 1298, 198, 220, 220, 220, 1388, 3419, 198 ]
2.5
30
import sys import csv import json import math import pygame import numpy as np from pygame.locals import * import pandas as pd from data import * from agent import agentsList, Agent global screenSize screenSize = [1920, 1080] def run_simulation(burn_time): params = load_parameters("RocketSimulationData/info...
[ 11748, 25064, 198, 11748, 269, 21370, 198, 11748, 33918, 198, 11748, 10688, 198, 11748, 12972, 6057, 198, 11748, 299, 32152, 355, 45941, 198, 6738, 12972, 6057, 13, 17946, 874, 1330, 1635, 198, 11748, 19798, 292, 355, 279, 67, 198, 198, ...
2.487762
572
""" Package has implementation for the FID score calculation """ from GAN.FID import fid_score from GAN.FID import inception
[ 37811, 15717, 468, 7822, 329, 262, 376, 2389, 4776, 17952, 198, 37811, 198, 198, 6738, 402, 1565, 13, 37, 2389, 1330, 49909, 62, 26675, 198, 6738, 402, 1565, 13, 37, 2389, 1330, 30839, 198 ]
3.705882
34