content
stringlengths
1
1.05M
input_ids
listlengths
1
883k
ratio_char_token
float64
1
22.9
token_count
int64
1
883k
import nltk import json import plotly import pandas as pd import plotly.graph_objects as go from nltk.stem import WordNetLemmatizer from nltk.tokenize import word_tokenize nltk.download(['punkt','wordnet']) from flask import Flask from flask import render_template, request, jsonify from plotly.graph_objs import Bar, H...
[ 11748, 299, 2528, 74, 198, 11748, 33918, 198, 11748, 7110, 306, 198, 11748, 19798, 292, 355, 279, 67, 198, 11748, 7110, 306, 13, 34960, 62, 48205, 355, 467, 198, 6738, 299, 2528, 74, 13, 927, 1330, 9678, 7934, 43, 368, 6759, 7509, 1...
3.062044
274
# Copyright (C) 2018-2021 Intel Corporation # SPDX-License-Identifier: Apache-2.0 import numpy as np from openvino.tools.mo.front.mxnet.mx_reshape_to_reshape import MXReshapeToReshape from openvino.tools.mo.ops.Reverse import Reverse from openvino.tools.mo.ops.mxreshape import MXReshape from openvino.tools.mo.front.c...
[ 2, 15069, 357, 34, 8, 2864, 12, 1238, 2481, 8180, 10501, 198, 2, 30628, 55, 12, 34156, 12, 33234, 7483, 25, 24843, 12, 17, 13, 15, 198, 198, 11748, 299, 32152, 355, 45941, 198, 198, 6738, 1280, 85, 2879, 13, 31391, 13, 5908, 13, ...
2.880597
268
import unittest; import numpy as np; import scipy as sp; from cubic_spline_solve import cubic_spline_solve; from cubic_spline_fun import cubic_spline_fun; #
[ 11748, 555, 715, 395, 26, 198, 11748, 299, 32152, 355, 45941, 26, 198, 11748, 629, 541, 88, 355, 599, 26, 198, 6738, 27216, 62, 22018, 500, 62, 82, 6442, 1330, 27216, 62, 22018, 500, 62, 82, 6442, 26, 198, 6738, 27216, 62, 22018, ...
2.785714
56
# PassWord - The Safe Password Generator App! # importing the tkinter module for GUI from tkinter import * # importing the message box widget from tkinter from tkinter import messagebox # importing sqlite3 for database import sqlite3 # importing random for password generation import random # creatin...
[ 2, 6251, 26449, 532, 383, 19978, 30275, 35986, 2034, 0, 201, 198, 201, 198, 2, 220, 33332, 262, 256, 74, 3849, 8265, 329, 25757, 201, 198, 6738, 256, 74, 3849, 1330, 1635, 201, 198, 201, 198, 2, 33332, 262, 3275, 3091, 26295, 422, ...
2.994725
1,327
from string import ascii_lowercase ts = 'a123bc34d8ef34' cur = [] res = set() for c in ts: if c in ascii_lowercase: if cur: s = ''.join(cur) res.add(int(s)) cur = [] else: cur.append(c) else: if cur: s = ''.join(cur) res.add(int(s)) pri...
[ 6738, 4731, 1330, 355, 979, 72, 62, 21037, 7442, 198, 198, 912, 796, 705, 64, 10163, 15630, 2682, 67, 23, 891, 2682, 6, 198, 198, 22019, 796, 17635, 198, 411, 796, 900, 3419, 198, 198, 1640, 269, 287, 40379, 25, 198, 220, 220, 220...
1.742105
190
from flask import Flask, render_template, jsonify from reddit_handler import * app = Flask(__name__) meme_subreddits = ['izlam']
[ 6738, 42903, 1330, 46947, 11, 8543, 62, 28243, 11, 33918, 1958, 201, 198, 6738, 18374, 62, 30281, 1330, 1635, 201, 198, 201, 198, 1324, 796, 46947, 7, 834, 3672, 834, 8, 201, 198, 201, 198, 11883, 68, 62, 7266, 36581, 796, 37250, 52...
2.578947
57
import pytest from selenium import webdriver import re # check that product names are identical on the main page and on product page def test_product_names(driver): # get a product name on the main page main_name = driver.find_element_by_css_selector("#box-campaigns div li.product.column.shadow.hover-light ....
[ 11748, 12972, 9288, 198, 6738, 384, 11925, 1505, 1330, 3992, 26230, 198, 11748, 302, 628, 198, 2, 2198, 326, 1720, 3891, 389, 10411, 319, 262, 1388, 2443, 290, 319, 1720, 2443, 198, 4299, 1332, 62, 11167, 62, 14933, 7, 26230, 2599, 62...
3.719424
278
import shutil from pyrite import fs from pyrite.command_line import run_command from pyrite.errors import UserError from pyrite.globals import Globals from os.path import join
[ 11748, 4423, 346, 198, 6738, 279, 2417, 578, 1330, 43458, 198, 6738, 279, 2417, 578, 13, 21812, 62, 1370, 1330, 1057, 62, 21812, 198, 6738, 279, 2417, 578, 13, 48277, 1330, 11787, 12331, 198, 6738, 279, 2417, 578, 13, 4743, 672, 874, ...
3.320755
53
maxWeight = 30 value = [15, 7, 10, 5, 8, 17] weight = [15, 3, 2, 5, 9, 20] bestAnswer = bag(0, []) print(bestAnswer)
[ 9806, 25844, 796, 1542, 198, 8367, 220, 796, 685, 1314, 11, 767, 11, 838, 11, 642, 11, 807, 11, 1596, 60, 198, 6551, 796, 685, 1314, 11, 513, 11, 362, 11, 642, 11, 860, 11, 1160, 60, 198, 197, 197, 198, 13466, 33706, 796, 6131, ...
2.142857
56
import argparse from itertools import count import signal import sys import os import time import numpy as np import gym import torch import torch.autograd as autograd from torch.autograd import Variable import scipy.optimize import matplotlib.pyplot as plt from value import Value from policy import Policy from ut...
[ 11748, 1822, 29572, 198, 6738, 340, 861, 10141, 1330, 954, 198, 11748, 6737, 198, 11748, 25064, 198, 11748, 28686, 198, 11748, 640, 198, 198, 11748, 299, 32152, 355, 45941, 198, 198, 11748, 11550, 198, 198, 11748, 28034, 198, 11748, 28034...
2.369167
6,000
from sklearn.metrics import accuracy_score from sklearn.model_selection import train_test_split from sklearn.preprocessing import StandardScaler from sklearn.feature_selection import f_classif, SelectKBest import numpy as np import pandas as pd import os mingw_path = 'C:\\Program Files\\mingw-w64\\x86_64-7.2.0-posix...
[ 198, 6738, 1341, 35720, 13, 4164, 10466, 1330, 9922, 62, 26675, 198, 6738, 1341, 35720, 13, 19849, 62, 49283, 1330, 4512, 62, 9288, 62, 35312, 198, 6738, 1341, 35720, 13, 3866, 36948, 1330, 8997, 3351, 36213, 198, 6738, 1341, 35720, 13,...
2.583123
1,979
import logging import time from sqlalchemy import func, desc from src.models import Play from src.utils import db_session logger = logging.getLogger(__name__) def get_plays_metrics(args): """ Returns metrics for play counts Args: args: dict The parsed args from the request args.start_tim...
[ 11748, 18931, 198, 11748, 640, 198, 6738, 44161, 282, 26599, 1330, 25439, 11, 1715, 198, 6738, 12351, 13, 27530, 1330, 3811, 198, 6738, 12351, 13, 26791, 1330, 20613, 62, 29891, 198, 198, 6404, 1362, 796, 18931, 13, 1136, 11187, 1362, 7...
2.899194
248
""" Django settings for CAutomation project. Generated by 'django-admin startproject' using Django 3.2.4. For more information on this file, see https://docs.djangoproject.com/en/3.2/topics/settings/ For the full list of settings and their values, see https://docs.djangoproject.com/en/3.2/ref/settings/ """ from pat...
[ 37811, 198, 35, 73, 14208, 6460, 329, 7257, 315, 296, 341, 1628, 13, 198, 198, 8645, 515, 416, 705, 28241, 14208, 12, 28482, 923, 16302, 6, 1262, 37770, 513, 13, 17, 13, 19, 13, 198, 198, 1890, 517, 1321, 319, 428, 2393, 11, 766, ...
2.366532
2,229
from .calculator import Calculator # noinspection PyTypeChecker
[ 6738, 764, 9948, 3129, 1352, 1330, 43597, 201, 198, 201, 198, 201, 198, 2, 645, 1040, 14978, 9485, 6030, 9787, 263, 201, 198 ]
3.043478
23
"""myst-parser package setup.""" from importlib import import_module from setuptools import find_packages, setup setup( name="myst-parser", version=import_module("myst_parser").__version__, description=( "An extended commonmark compliant parser, " "with bridges to docutils & sphinx." ), lo...
[ 37811, 1820, 301, 12, 48610, 5301, 9058, 526, 15931, 198, 6738, 1330, 8019, 1330, 1330, 62, 21412, 198, 198, 6738, 900, 37623, 10141, 1330, 1064, 62, 43789, 11, 9058, 198, 198, 40406, 7, 198, 220, 220, 220, 1438, 2625, 1820, 301, 12, ...
2.426901
855
#!/usr/bin/env python import collections, sys lines = [] f = collections.defaultdict(int) fe = collections.defaultdict(lambda: collections.defaultdict(int)) for line in sys.stdin: tok = [x.strip() for x in line.split('|||')] count = int(tok[4]) f[tok[1]] += count fe[tok[1]][tok[2]] += count lines...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 198, 198, 11748, 17268, 11, 25064, 198, 198, 6615, 796, 17635, 198, 69, 796, 17268, 13, 12286, 11600, 7, 600, 8, 198, 5036, 796, 17268, 13, 12286, 11600, 7, 50033, 25, 17268, 13, 12286, 1...
2.181102
254
from django.db import models import uuid from datetime import datetime from cassandra.cqlengine import columns from django_cassandra_engine.models import DjangoCassandraModel # Create your models here.
[ 6738, 42625, 14208, 13, 9945, 1330, 4981, 198, 11748, 334, 27112, 198, 6738, 4818, 8079, 1330, 4818, 8079, 198, 6738, 30606, 15918, 13, 66, 13976, 18392, 1330, 15180, 198, 6738, 42625, 14208, 62, 66, 562, 15918, 62, 18392, 13, 27530, 13...
3.811321
53
""" Service Availability and Commitment Module This package contains the shipping methods defined by Fedex's ValidationAvailabilityAndCommitmentService WSDL file. Each is encapsulated in a class for easy access. For more details on each, refer to the respective class's documentation. """ import datetime from ..base...
[ 37811, 198, 16177, 43138, 290, 35910, 434, 19937, 198, 198, 1212, 5301, 4909, 262, 8440, 5050, 5447, 416, 10169, 1069, 338, 220, 198, 7762, 24765, 29841, 1870, 6935, 270, 434, 16177, 370, 10305, 43, 2393, 13, 5501, 318, 32652, 4817, 287...
4.214286
84
import pandas as pd import numpy as np from sklearn.base import BaseEstimator, TransformerMixin import scipy.stats.stats as stats import pandas.core.algorithms as algos #from sklearn.utils.validation import check_is_fitted from sklearn.utils import check_array from ..transformer import MonotonicBinning pd.options.mode...
[ 11748, 19798, 292, 355, 279, 67, 198, 11748, 299, 32152, 355, 45941, 198, 6738, 1341, 35720, 13, 8692, 1330, 7308, 22362, 320, 1352, 11, 3602, 16354, 35608, 259, 198, 11748, 629, 541, 88, 13, 34242, 13, 34242, 355, 9756, 198, 11748, 1...
3.252336
107
import numpy import six import cupy from cupy import core from cupy import internal from cupy.linalg.solve import inv from cupy.util import collections_abc matmul = core.matmul def dot(a, b, out=None): """Returns a dot product of two arrays. For arrays with more than one axis, it computes the dot product...
[ 11748, 299, 32152, 198, 11748, 2237, 198, 198, 11748, 6508, 88, 198, 6738, 6508, 88, 1330, 4755, 198, 6738, 6508, 88, 1330, 5387, 198, 198, 6738, 6508, 88, 13, 75, 1292, 70, 13, 82, 6442, 1330, 800, 198, 6738, 6508, 88, 13, 22602, ...
2.233255
3,404
fibo_main() # profiling result for 47 numbers # profile: python -m profile fibo.py """ -1273940835 function calls (275 primitive calls) in 18966.707 seconds Ordered by: standard name ncalls tottime percall cumtime percall filename:lineno(function) 90 0.000 0.000 0.001 0.000 c...
[ 198, 69, 26762, 62, 12417, 3419, 198, 198, 2, 31582, 1255, 329, 6298, 3146, 198, 198, 2, 7034, 25, 21015, 532, 76, 7034, 12900, 78, 13, 9078, 198, 198, 37811, 198, 220, 220, 220, 220, 220, 220, 220, 220, 532, 16799, 2670, 26200, 2...
2.055024
418
# # 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 appl...
[ 2, 198, 2, 15069, 357, 66, 8, 33448, 11, 15127, 23929, 44680, 6234, 13, 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, ...
2.338954
1,779
#!/usr/bin/env python3 # -*- coding:utf-8-*- import tkinter.messagebox from tkinter import Button, Label, Tk from utils.functions import set_window_center from utils.sqlite_helper import DBHelper from inpanel import App if __name__ == "__main__": APP_INIT = InitWindow() APP_INIT.mainloop()
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 18, 198, 2, 532, 9, 12, 19617, 25, 40477, 12, 23, 12, 9, 12, 198, 198, 11748, 256, 74, 3849, 13, 20500, 3524, 198, 6738, 256, 74, 3849, 1330, 20969, 11, 36052, 11, 309, 74, 198, 198, ...
2.666667
114
#!/usr/bin/env python3 # Copyright (c) 2014, Ruslan Baratov # All rights reserved. """ * Wiki table for `leathers` C++ project Expected format: ### Main table Name | Clang | GCC | MSVC | -----------------------------|----------|----------|------| static-ctor-not-thread-safe | *no* ...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 18, 198, 198, 2, 15069, 357, 66, 8, 1946, 11, 9223, 9620, 2409, 265, 709, 198, 2, 1439, 2489, 10395, 13, 198, 198, 37811, 198, 9, 13078, 3084, 329, 4600, 293, 1032, 82, 63, 327, 4880, ...
2.186761
423
# Copyright (C) 2014 VA Linux Systems Japan K.K. # Copyright (C) 2014 YAMAMOTO Takashi <yamamoto at valinux co jp> # 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...
[ 2, 15069, 357, 34, 8, 1946, 13753, 7020, 11998, 2869, 509, 13, 42, 13, 198, 2, 15069, 357, 34, 8, 1946, 575, 2390, 2390, 26631, 15804, 12144, 1279, 88, 321, 25384, 379, 1188, 259, 2821, 763, 474, 79, 29, 198, 2, 1439, 6923, 33876,...
2.786765
816
# -*- coding=utf-8 -*- from zwechathihu.mypdf import GenPdf from db.mysqlite import simpleToolSql data=[{"url": "http://mp.weixin.qq.com/s?__biz=MzAxODQxMDM0Mw==&mid=2247484852&idx=1&sn=85b50b8b0470bb4897e517955f4e5002&chksm=9bd7fbbcaca072aa75e2a241064a403fde1e579d57ab846cd8537a54253ceb2c8b93cc3bf38e&scene=21#wechat_...
[ 2, 532, 9, 12, 19617, 28, 40477, 12, 23, 532, 9, 12, 198, 6738, 1976, 732, 354, 776, 48406, 13, 1820, 12315, 1330, 5215, 47, 7568, 198, 6738, 20613, 13, 28744, 13976, 578, 1330, 2829, 25391, 50, 13976, 628, 198, 7890, 41888, 4895, ...
2.089485
447
# -*- coding: utf-8 -*- """ Tencent is pleased to support the open source community by making PaaS (BlueKing PaaS Community Edition) available. Copyright (C) 2017-2019 THL A29 Limited, a Tencent company. All rights reserved. Licensed under the MIT License (the "License"); you may not use this file except in compliance ...
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 37811, 198, 24893, 1087, 318, 10607, 284, 1104, 262, 1280, 2723, 2055, 416, 1642, 350, 7252, 50, 357, 14573, 15708, 350, 7252, 50, 8108, 198, 7407, 653, 8, 1695, 13, 1...
3.973913
230
import unittest import numpy as np from task import arr, permuted_2d, fully_random
[ 11748, 555, 715, 395, 198, 11748, 299, 32152, 355, 45941, 198, 198, 6738, 4876, 1330, 5240, 11, 9943, 7241, 62, 17, 67, 11, 3938, 62, 25120, 628 ]
3.148148
27
# -*- coding: utf-8 -*- """ The channel model UI module Copyright 2017-2018, Leo Moll and Dominik Schlsser SPDX-License-Identifier: MIT """ # pylint: disable=import-error import os import xbmcgui import xbmcplugin import resources.lib.mvutils as mvutils from resources.lib.channel import Channel
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 37811, 198, 464, 6518, 2746, 12454, 8265, 198, 198, 15269, 2177, 12, 7908, 11, 19632, 337, 692, 290, 11817, 1134, 48467, 824, 263, 198, 4303, 36227, 12, 34156, 12, 33234...
2.980198
101
#!/usr/bin/env python3 #Credit to @Alright for the RPCs import re import os import requests import json import platform # define function that fetchs rpc creds from .conf # define function that posts json data # Return current -pubkey= # return latest batontxid from all publishers #VANILLA RPC return(getlastsegi...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 18, 198, 198, 2, 23690, 284, 2488, 31442, 329, 262, 39400, 82, 198, 198, 11748, 302, 198, 11748, 28686, 198, 11748, 7007, 198, 11748, 33918, 198, 11748, 3859, 198, 198, 2, 8160, 2163, 326, ...
3.295238
105
# -*- coding: utf-8 -*- from cwr.acknowledgement import AcknowledgementRecord, MessageRecord from cwr.agreement import AgreementRecord, AgreementTerritoryRecord, \ InterestedPartyForAgreementRecord from cwr.group import Group, GroupHeader, GroupTrailer from cwr.info import AdditionalRelatedInfoRecord from cwr.pars...
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 198, 6738, 269, 18351, 13, 441, 2197, 992, 16025, 1330, 317, 33165, 16025, 23739, 11, 16000, 23739, 198, 6738, 269, 18351, 13, 363, 10237, 1330, 12729, 23739, 11, 12729, ...
3.724858
527
#!/usr/bin/env python # -*- coding: utf8 -*- import codecs,os,gzip,ctypes,ctypes.util,sys from struct import * from PIL import Image, ImageDraw, ImageFont # ====== Python script to convert TrueTypeFonts to TWRP's .dat format ====== # This script was originally made by https://github.com/suky for his chinese version of...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 198, 2, 532, 9, 12, 19617, 25, 3384, 69, 23, 532, 9, 12, 198, 11748, 40481, 82, 11, 418, 11, 70, 13344, 11, 310, 9497, 11, 310, 9497, 13, 22602, 11, 17597, 198, 6738, 2878, 1330, 1635...
2.079625
2,989
import pytz from rest_auth.serializers import TokenSerializer from rest_framework.authtoken.models import Token from rest_framework.exceptions import ValidationError from rest_framework.fields import ( CharField, CurrentUserDefault, HiddenField, UUIDField, ChoiceField, ) from rest_framework.serializ...
[ 11748, 12972, 22877, 198, 6738, 1334, 62, 18439, 13, 46911, 11341, 1330, 29130, 32634, 7509, 198, 6738, 1334, 62, 30604, 13, 18439, 30001, 13, 27530, 1330, 29130, 198, 6738, 1334, 62, 30604, 13, 1069, 11755, 1330, 3254, 24765, 12331, 198,...
3.606061
165
"""Automated speech recognition tests.""" import os import sys import unittest from pathlib import Path import requests from rhasspyhermes.asr import AsrTextCaptured from rhasspyhermes.nlu import NluIntent
[ 37811, 38062, 515, 4046, 9465, 5254, 526, 15931, 198, 11748, 28686, 198, 11748, 25064, 198, 11748, 555, 715, 395, 198, 6738, 3108, 8019, 1330, 10644, 198, 198, 11748, 7007, 198, 198, 6738, 9529, 562, 9078, 372, 6880, 13, 292, 81, 1330, ...
3.370968
62
import torch import torch.nn as nn import torch.nn.functional as F from .discriminator import Discriminator from .identity import Identity
[ 11748, 28034, 198, 11748, 28034, 13, 20471, 355, 299, 77, 198, 11748, 28034, 13, 20471, 13, 45124, 355, 376, 198, 198, 6738, 764, 15410, 3036, 20900, 1330, 8444, 3036, 20900, 198, 6738, 764, 738, 414, 1330, 27207, 628 ]
3.710526
38
from game import about_button, start_button, play_sound, center_pos import pygame WHITE = (255,255,255) BLACK = (0,0,0) GREEN = (0, 255, 0) pygame.init() pygame.font.init() pygame.mixer.init() FONT = pygame.font.Font("assets/font.ttf", 70) FONT_MIN = pygame.font.Font("assets/font.ttf", 30) window = pygame.display.s...
[ 6738, 983, 1330, 546, 62, 16539, 11, 923, 62, 16539, 11, 711, 62, 23661, 11, 3641, 62, 1930, 198, 11748, 12972, 6057, 198, 198, 12418, 12709, 796, 357, 13381, 11, 13381, 11, 13381, 8, 198, 9148, 8120, 796, 357, 15, 11, 15, 11, 15,...
2.055556
1,224
from django.shortcuts import render, redirect from .models import Post from .forms import ScheduleForm from django.core.paginator import Paginator # Create your views here.
[ 6738, 42625, 14208, 13, 19509, 23779, 1330, 8543, 11, 18941, 198, 6738, 764, 27530, 1330, 2947, 198, 6738, 764, 23914, 1330, 19281, 8479, 198, 6738, 42625, 14208, 13, 7295, 13, 79, 363, 20900, 1330, 31525, 20900, 198, 198, 2, 13610, 534...
3.931818
44
from .base import * # noqa CACHE_REDIS_DATABASE = '1' CACHES['default']['LOCATION'] = '127.0.0.1:6379:' + CACHE_REDIS_DATABASE INTERNAL_IPS = INTERNAL_IPS + ('', ) ALLOWED_HOSTS = [''] DATABASES = { 'default': { 'ENGINE': 'django.db.backends.postgresql_psycopg2', 'NAME': 'app_archetype_stg', ...
[ 6738, 764, 8692, 1330, 1635, 220, 1303, 645, 20402, 198, 198, 34, 2246, 13909, 62, 22083, 1797, 62, 35, 1404, 6242, 11159, 796, 705, 16, 6, 198, 34, 16219, 1546, 17816, 12286, 6, 7131, 6, 29701, 6234, 20520, 796, 705, 16799, 13, 15,...
1.878505
214
from django.contrib import admin # Register your models here.] from website.sites.models import Post
[ 6738, 42625, 14208, 13, 3642, 822, 1330, 13169, 198, 198, 2, 17296, 534, 4981, 994, 8183, 198, 6738, 3052, 13, 49315, 13, 27530, 1330, 220, 2947, 628, 198 ]
3.75
28
# Monte Carlo tree search for TicTacToe import numpy as np from tictactoe import Tictactoe import copy from random import choice from tree import Node import time
[ 2, 22489, 40089, 5509, 2989, 329, 309, 291, 51, 330, 2514, 68, 198, 198, 11748, 299, 32152, 355, 45941, 198, 6738, 256, 713, 529, 2577, 1330, 309, 713, 529, 2577, 198, 11748, 4866, 198, 6738, 4738, 1330, 3572, 198, 6738, 5509, 1330, ...
3.489362
47
import pandas as pd from pandas.api.types import is_numeric_dtype from grimer.utils import print_log
[ 11748, 19798, 292, 355, 279, 67, 198, 6738, 19798, 292, 13, 15042, 13, 19199, 1330, 318, 62, 77, 39223, 62, 67, 4906, 198, 6738, 18288, 263, 13, 26791, 1330, 3601, 62, 6404, 628 ]
3.090909
33
from typing import Optional, Dict, Any, List, Union from allennlp.common.checks import ConfigurationError
[ 6738, 19720, 1330, 32233, 11, 360, 713, 11, 4377, 11, 7343, 11, 4479, 198, 198, 6738, 477, 1697, 34431, 13, 11321, 13, 42116, 1330, 28373, 12331, 628 ]
4
27
from authors.apps.utils.renderers import AppJSONRenderer import json from rest_framework.renderers import JSONRenderer
[ 6738, 7035, 13, 18211, 13, 26791, 13, 10920, 19288, 1330, 2034, 40386, 49, 437, 11882, 198, 198, 11748, 33918, 198, 198, 6738, 1334, 62, 30604, 13, 10920, 19288, 1330, 19449, 49, 437, 11882, 198 ]
3.558824
34
import json from deepdiff import DeepDiff import pprint if __name__ == "__main__": # If this Python file runs by itself, run below command. If imported, this section is not run main()
[ 11748, 33918, 198, 6738, 2769, 26069, 1330, 10766, 28813, 198, 11748, 279, 4798, 198, 198, 361, 11593, 3672, 834, 6624, 366, 834, 12417, 834, 1298, 198, 197, 2, 1002, 428, 11361, 2393, 4539, 416, 2346, 11, 1057, 2174, 3141, 13, 1002, ...
3.528302
53
#!/usr/bin/env python # -- encoding: utf-8 -- # # Copyright 2015-2016 Telefnica Investigacin y Desarrollo, S.A.U # # This file is part of FI-WARE project. # # 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 t...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 198, 2, 1377, 21004, 25, 3384, 69, 12, 23, 1377, 198, 2, 198, 2, 15069, 1853, 12, 5304, 14318, 22184, 3970, 16203, 330, 259, 331, 2935, 283, 2487, 78, 11, 311, 13, 32, 13, 52, 198, 2,...
2.624204
1,099
### This file is originally from: [mlcommons repo](https://github.com/mlcommons/training/tree/9947bdf21ee3f2488fa4b362eec2ce7deb2ec4dd/single_stage_detector/ssd/mlperf_logger.py) # Copyright (c) 2018, NVIDIA CORPORATION. All rights reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may ...
[ 21017, 770, 2393, 318, 6198, 422, 25, 685, 4029, 9503, 684, 29924, 16151, 5450, 1378, 12567, 13, 785, 14, 4029, 9503, 684, 14, 34409, 14, 21048, 14, 2079, 2857, 65, 7568, 2481, 1453, 18, 69, 1731, 3459, 13331, 19, 65, 35667, 68, 721...
2.946128
594
import math import pymel.core as pymel from omtk.core.classNode import Node from omtk.libs import libAttr from omtk.libs import libRigging from . import model_avar_surface
[ 11748, 10688, 198, 11748, 279, 4948, 417, 13, 7295, 355, 279, 4948, 417, 198, 6738, 267, 16762, 74, 13, 7295, 13, 4871, 19667, 1330, 19081, 198, 6738, 267, 16762, 74, 13, 8019, 82, 1330, 9195, 8086, 81, 198, 6738, 267, 16762, 74, 13...
2.806452
62
import datetime import os import pymongo import requests from urllib import parse from urllib.parse import quote_plus import json from retry import retry from bs4 import BeautifulSoup import math from project.server.main.logger import get_logger from project.server.main.utils_swift import upload_object from project.s...
[ 11748, 4818, 8079, 198, 11748, 28686, 198, 11748, 279, 4948, 25162, 198, 11748, 7007, 198, 6738, 2956, 297, 571, 1330, 21136, 198, 6738, 2956, 297, 571, 13, 29572, 1330, 9577, 62, 9541, 198, 11748, 33918, 198, 6738, 1005, 563, 1330, 100...
3.260274
146
import FWCore.ParameterSet.Config as cms from DQMServices.Core.DQMEDAnalyzer import DQMEDAnalyzer l1tGct = DQMEDAnalyzer('L1TGCT', gctCentralJetsSource = cms.InputTag("gctDigis","cenJets"), gctForwardJetsSource = cms.InputTag("gctDigis","forJets"), gctTauJetsSource = cms.InputTag("gctDigis","tauJets"), ...
[ 11748, 48849, 14055, 13, 36301, 7248, 13, 16934, 355, 269, 907, 198, 198, 6738, 360, 48, 5653, 712, 1063, 13, 14055, 13, 35, 48, 30733, 37702, 9107, 1330, 360, 48, 30733, 37702, 9107, 198, 75, 16, 83, 38, 310, 796, 360, 48, 30733, ...
2.276056
355
""" General all-purpose utilities """ import sys import torch import torch.nn.functional as F import numpy as np import gurobipy as gb import matplotlib.pyplot as plt import io import contextlib import tempfile import time import re import pickle import inspect import glob import os COMPLETED_JOB_DIR = os.path.join(...
[ 37811, 3611, 477, 12, 29983, 20081, 37227, 198, 11748, 25064, 198, 11748, 28034, 198, 11748, 28034, 13, 20471, 13, 45124, 355, 376, 198, 11748, 299, 32152, 355, 45941, 198, 11748, 915, 22609, 541, 88, 355, 308, 65, 198, 11748, 2603, 294...
2.712455
3,902
ADDED_KARMA_TO_MEMBER = "Gave {} karma to {}, their karma is now at {}." REMOVED_KARMA_FROM_MEMBER = "Removed {} karma from {}, their karma is now at {}." LIST_KARMA_OWN = "You currently have {} karma." LIST_KARMA_OBJECT = "\"{}\" currently has {} karma." LIST_KARMA_MEMBER = "{} currently has {} karma." KARMA_TOP_STA...
[ 29266, 1961, 62, 42, 1503, 5673, 62, 10468, 62, 44, 28952, 796, 366, 38, 1015, 23884, 31789, 284, 1391, 5512, 511, 31789, 318, 783, 379, 23884, 526, 198, 40726, 8874, 1961, 62, 42, 1503, 5673, 62, 10913, 2662, 62, 44, 28952, 796, 36...
2.597315
149
# -*- coding: utf-8 -*- """ Created on Mon Dec 6 14:51:24 2021 @author: laukkara This script is run first to fetch results data from university's network drive """ import os import pickle input_folder_for_Delphin_data = r'S:\91202_Rakfys_Mallinnus\RAMI\simulations' output_folder = os.path.join(r'C:\Local\laukkar...
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 37811, 198, 41972, 319, 2892, 4280, 220, 718, 1478, 25, 4349, 25, 1731, 33448, 198, 198, 31, 9800, 25, 300, 559, 28747, 3301, 198, 198, 1212, 4226, 318, 1057, 717, 284...
2.123613
631
"""Config for initializing the namex-api.""" import os from dotenv import find_dotenv, load_dotenv # this will load all the envars from a .env file located in the project root (api) load_dotenv(find_dotenv()) CONFIGURATION = { 'development': 'config.DevConfig', 'testing': 'config.TestConfig', 'production...
[ 37811, 16934, 329, 4238, 2890, 262, 1438, 87, 12, 15042, 526, 15931, 198, 11748, 28686, 198, 198, 6738, 16605, 24330, 1330, 1064, 62, 26518, 24330, 11, 3440, 62, 26518, 24330, 198, 198, 2, 428, 481, 3440, 477, 262, 17365, 945, 422, 25...
2.984127
126
import matplotlib.patches as mpatch import matplotlib.pyplot as plt styles = mpatch.BoxStyle.get_styles() figheight = (len(styles)+.5) fig1 = plt.figure(1, (4/1.5, figheight/1.5)) fontsize = 0.3 * 72 for i, (stylename, styleclass) in enumerate(styles.items()): fig1.text(0.5, (float(len(styles)) - 0.5 - i)/fighei...
[ 11748, 2603, 29487, 8019, 13, 8071, 2052, 355, 285, 17147, 198, 11748, 2603, 29487, 8019, 13, 9078, 29487, 355, 458, 83, 198, 198, 47720, 796, 285, 17147, 13, 14253, 21466, 13, 1136, 62, 47720, 3419, 198, 198, 5647, 17015, 796, 357, 1...
2.122951
244
from setuptools import setup setup( name='modestpy', version='0.1', description='FMI-compliant model identification package', url='https://github.com/sdu-cfei/modest-py', keywords='fmi fmu optimization model identification estimation', author='Krzysztof Arendt, Center for Energy Informatics SDU...
[ 6738, 900, 37623, 10141, 1330, 9058, 198, 198, 40406, 7, 198, 220, 220, 220, 1438, 11639, 4666, 395, 9078, 3256, 198, 220, 220, 220, 2196, 11639, 15, 13, 16, 3256, 198, 220, 220, 220, 6764, 11639, 37, 8895, 12, 23855, 3014, 2746, 11...
2.065263
475
import re import subprocess as sp from typing import Union, List from gfworkflow.exceptions import RunCommandException
[ 11748, 302, 198, 11748, 850, 14681, 355, 599, 198, 6738, 19720, 1330, 4479, 11, 7343, 198, 198, 6738, 308, 69, 1818, 11125, 13, 1069, 11755, 1330, 5660, 21575, 16922, 628, 628, 628, 628 ]
3.848485
33
# simple test function that uses python 3 features (e.g., f-strings) # see https://github.com/localstack/localstack/issues/264
[ 2, 2829, 1332, 2163, 326, 3544, 21015, 513, 3033, 357, 68, 13, 70, 1539, 277, 12, 37336, 8, 198, 2, 766, 3740, 1378, 12567, 13, 785, 14, 12001, 25558, 14, 12001, 25558, 14, 37165, 14, 18897, 628 ]
3.459459
37
#! usr/bin/python3 # code: utf-8 """Download data from Open Food Facts API.""" import json import requests from src.purchoice.constants import CATEGORY_SELECTED from src.purchoice.purchoice_database import PurchoiceDatabase if __name__ == "__main__": db = PurchoiceDatabase() db.truncate_tables() impo...
[ 2, 0, 514, 81, 14, 8800, 14, 29412, 18, 198, 2, 2438, 25, 3384, 69, 12, 23, 198, 198, 37811, 10002, 1366, 422, 4946, 7318, 26972, 7824, 526, 15931, 198, 198, 11748, 33918, 198, 198, 11748, 7007, 198, 198, 6738, 12351, 13, 79, 2575...
2.708108
185
''' Created on April 26, 2015 @author: norris ''' import ast, sys, os, traceback from orio.main.util.globals import * from orio.tool.graphlib import graph from orio.module.loop import astvisitors
[ 7061, 6, 198, 41972, 319, 3035, 2608, 11, 1853, 198, 198, 31, 9800, 25, 4249, 2442, 198, 7061, 6, 198, 11748, 6468, 11, 25064, 11, 28686, 11, 12854, 1891, 198, 6738, 22812, 78, 13, 12417, 13, 22602, 13, 4743, 672, 874, 1330, 1635, ...
2.955224
67
import discord from discord import Embed
[ 11748, 36446, 201, 198, 6738, 36446, 1330, 13302, 276, 201 ]
4.2
10
import copy import inspect import json import logging import pytest import re import os import shutil import subprocess import time from datetime import datetime, timedelta from configparser import ConfigParser, ExtendedInterpolation from typing import Dict, List, Optional from pyhttpd.certs import CertificateSpec f...
[ 11748, 4866, 198, 11748, 10104, 198, 11748, 33918, 198, 11748, 18931, 198, 198, 11748, 12972, 9288, 198, 11748, 302, 198, 11748, 28686, 198, 11748, 4423, 346, 198, 11748, 850, 14681, 198, 11748, 640, 198, 198, 6738, 4818, 8079, 1330, 4818...
2.394879
742
import datetime import json import random import string from typing import Dict from sms_counter import SMSCounter
[ 11748, 4818, 8079, 198, 11748, 33918, 198, 11748, 4738, 198, 11748, 4731, 198, 198, 6738, 19720, 1330, 360, 713, 198, 6738, 895, 82, 62, 24588, 1330, 29287, 31694, 628 ]
4.034483
29
# -*- coding: utf-8 -*- # PLEASE DO NOT EDIT THIS FILE, IT IS GENERATED AND WILL BE OVERWRITTEN: # https://github.com/ccxt/ccxt/blob/master/CONTRIBUTING.md#how-to-contribute-code from ccxt.async_support.base.exchange import Exchange # ----------------------------------------------------------------------------- try...
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 198, 2, 37795, 8410, 5626, 48483, 12680, 45811, 11, 7283, 3180, 24700, 1137, 11617, 5357, 17682, 9348, 28729, 18564, 22470, 1677, 25, 198, 2, 3740, 1378, 12567, 13, 785, ...
1.729736
8,266
def decimal_to_binary_fraction(x=0.5): """ Input: x, a float between 0 and 1 Returns binary representation of x """ p = 0 while ((2 ** p) * x) % 1 != 0: # print('Remainder = ' + str((2**p)*x - int((2**p)*x))) p += 1 num = int(x * (2 ** p)) result = '' if num == 0: ...
[ 4299, 32465, 62, 1462, 62, 39491, 62, 69, 7861, 7, 87, 28, 15, 13, 20, 2599, 198, 220, 220, 220, 37227, 198, 220, 220, 220, 23412, 25, 2124, 11, 257, 12178, 1022, 657, 290, 352, 198, 220, 220, 220, 16409, 13934, 10552, 286, 2124, ...
2.530726
358
# Copyright 2021 MosaicML. All Rights Reserved. import datetime import logging import os import pathlib import time from composer.utils import dist log = logging.getLogger(__name__) _RUN_DIRECTORY_KEY = "COMPOSER_RUN_DIRECTORY" _start_time_str = datetime.datetime.now().isoformat() def get_node_run_directory() ->...
[ 2, 15069, 33448, 5826, 18452, 5805, 13, 1439, 6923, 33876, 13, 198, 198, 11748, 4818, 8079, 198, 11748, 18931, 198, 11748, 28686, 198, 11748, 3108, 8019, 198, 11748, 640, 198, 198, 6738, 26777, 13, 26791, 1330, 1233, 198, 198, 6404, 796...
2.685491
1,151
# Generated by Django 3.0.8 on 2020-07-11 08:10 from django.db import migrations, models
[ 2, 2980, 515, 416, 37770, 513, 13, 15, 13, 23, 319, 12131, 12, 2998, 12, 1157, 8487, 25, 940, 198, 198, 6738, 42625, 14208, 13, 9945, 1330, 15720, 602, 11, 4981, 628 ]
2.84375
32
# -*- coding: utf-8 -*- from enum import Enum from typing import TypeVar, Type, List, Iterable, cast from faker.providers import BaseProvider TEnum = TypeVar("TEnum", bound=Enum)
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 6738, 33829, 1330, 2039, 388, 198, 6738, 19720, 1330, 5994, 19852, 11, 5994, 11, 7343, 11, 40806, 540, 11, 3350, 198, 198, 6738, 277, 3110, 13, 15234, 4157, 1330, 7308, ...
2.84375
64
# Run with: gunicorn --workers=1 --worker-class=meinheld.gmeinheld.MeinheldWorker -b :8000 simple_server:app import bottle import ujson from bottle import route, run app = bottle.default_app()
[ 2, 5660, 351, 25, 2485, 291, 1211, 1377, 22896, 28, 16, 1377, 28816, 12, 4871, 28, 1326, 259, 10217, 13, 70, 1326, 259, 10217, 13, 5308, 259, 10217, 12468, 263, 532, 65, 1058, 33942, 2829, 62, 15388, 25, 1324, 198, 11748, 9294, 198,...
2.984848
66
from django.shortcuts import redirect from django.shortcuts import render from django.contrib.auth.models import User from django.views.generic.base import View from perfis.models import Perfil from usuarios.forms import RegistrarUsuarioForm
[ 6738, 42625, 14208, 13, 19509, 23779, 1330, 18941, 198, 6738, 42625, 14208, 13, 19509, 23779, 1330, 8543, 198, 6738, 42625, 14208, 13, 3642, 822, 13, 18439, 13, 27530, 1330, 11787, 198, 6738, 42625, 14208, 13, 33571, 13, 41357, 13, 8692, ...
3.69697
66
ANTO_VER = '0.1.2'
[ 8643, 46, 62, 5959, 796, 705, 15, 13, 16, 13, 17, 6, 198 ]
1.461538
13
from typing import (Any, Union, Type) # noqa: F401 from ..keys.datatypes import ( LazyBackend, PublicKey, PrivateKey, Signature, ) from eth_keys.exceptions import ( ValidationError, ) from eth_keys.validation import ( validate_message_hash, ) # These must be aliased due to a scoping issue in...
[ 6738, 19720, 1330, 357, 7149, 11, 4479, 11, 5994, 8, 220, 1303, 645, 20402, 25, 376, 21844, 198, 198, 6738, 11485, 13083, 13, 19608, 265, 9497, 1330, 357, 198, 220, 220, 220, 406, 12582, 7282, 437, 11, 198, 220, 220, 220, 5094, 9218...
3.101449
207
# This code is part of Qiskit. # # (C) Copyright IBM 2021. # # This code is licensed under the Apache License, Version 2.0. You may # obtain a copy of this license in the LICENSE.txt file in the root directory # of this source tree or at http://www.apache.org/licenses/LICENSE-2.0. # # Any modifications or derivative wo...
[ 2, 770, 2438, 318, 636, 286, 1195, 1984, 270, 13, 198, 2, 198, 2, 357, 34, 8, 15069, 19764, 33448, 13, 198, 2, 198, 2, 770, 2438, 318, 11971, 739, 262, 24843, 13789, 11, 10628, 362, 13, 15, 13, 921, 743, 198, 2, 7330, 257, 486...
2.422997
6,714
from oacensus.scraper import Scraper from oacensus.commands import defaults
[ 6738, 267, 330, 7314, 13, 1416, 38545, 1330, 1446, 38545, 198, 6738, 267, 330, 7314, 13, 9503, 1746, 1330, 26235, 198 ]
3.619048
21
deco1(myfunc)
[ 198, 12501, 78, 16, 7, 1820, 20786, 8, 198 ]
1.666667
9
import re import time from lxml import etree import select import socket import logging import sys from lxml.builder import E from lxml.etree import XMLSyntaxError from datetime import datetime, timedelta from ncclient.operations.rpc import RPCReply, RPCError from ncclient.xml_ import to_ele import six from ncclient.t...
[ 11748, 302, 198, 11748, 640, 198, 6738, 300, 19875, 1330, 2123, 631, 198, 11748, 2922, 198, 11748, 17802, 198, 11748, 18931, 198, 11748, 25064, 198, 198, 6738, 300, 19875, 13, 38272, 1330, 412, 198, 6738, 300, 19875, 13, 316, 631, 1330,...
3.113139
274
from pymodbus.client.sync import ModbusTcpClient as ModbusClient import logging FORMAT = ('%(asctime)-15s %(threadName)-15s ' '%(levelname)-8s %(module)-15s:%(lineno)-8s %(message)s') logging.basicConfig(format=FORMAT) log = logging.getLogger() log.setLevel(logging.DEBUG) client = ModbusClient('192.168.178.61...
[ 6738, 12972, 4666, 10885, 13, 16366, 13, 27261, 1330, 3401, 10885, 51, 13155, 11792, 355, 3401, 10885, 11792, 198, 11748, 18931, 198, 21389, 1404, 796, 19203, 4, 7, 292, 310, 524, 13219, 1314, 82, 4064, 7, 16663, 5376, 13219, 1314, 82, ...
2.55625
160
import unittest from selenium import webdriver import page ######## FOOTER STUFF ######## if __name__ == "__main__": unittest.main()
[ 11748, 555, 715, 395, 198, 6738, 384, 11925, 1505, 1330, 3992, 26230, 198, 11748, 2443, 628, 220, 220, 220, 46424, 21017, 11895, 2394, 1137, 3563, 47588, 46424, 21017, 198, 198, 361, 11593, 3672, 834, 6624, 366, 834, 12417, 834, 1298, 1...
2.84
50
# Copyright 2016-2018, Pulumi Corporation. # # 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 t...
[ 2, 15069, 1584, 12, 7908, 11, 21624, 12994, 10501, 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.66129
248
# -*- coding: utf-8 -*- from dewloosh.geom.polyhedron import HexaHedron from dewloosh.math.numint import GaussPoints as Gauss from dewloosh.geom.utils import cells_coords from numba import njit, prange import numpy as np from numpy import ndarray __cache = True class H8(HexaHedron): """ 8-node isoparame...
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 6738, 390, 86, 5439, 3768, 13, 469, 296, 13, 35428, 704, 1313, 1330, 22212, 64, 39, 276, 1313, 198, 6738, 390, 86, 5439, 3768, 13, 11018, 13, 22510, 600, 1330, 12822, ...
2.113402
485
import copy import json from ghcl.models.pull_request import PullRequest
[ 11748, 4866, 198, 11748, 33918, 198, 198, 6738, 24997, 565, 13, 27530, 13, 31216, 62, 25927, 1330, 21429, 18453, 628 ]
3.75
20
import FWCore.ParameterSet.Config as cms from DQMServices.Core.DQMEDAnalyzer import DQMEDAnalyzer basicGenParticleValidation = DQMEDAnalyzer('BasicGenParticleValidation', hepmcCollection = cms.InputTag("generatorSmeared"), genparticleCollection = cms.InputTag("genParticles",""), genjetsCollection = cms.Inp...
[ 11748, 48849, 14055, 13, 36301, 7248, 13, 16934, 355, 269, 907, 198, 198, 6738, 360, 48, 5653, 712, 1063, 13, 14055, 13, 35, 48, 30733, 37702, 9107, 1330, 360, 48, 30733, 37702, 9107, 198, 35487, 13746, 7841, 1548, 7762, 24765, 796, 3...
2.793578
218
from a_top_k import * from b_top_k import * import time if __name__ == "__main__": main()
[ 6738, 257, 62, 4852, 62, 74, 1330, 1635, 198, 6738, 275, 62, 4852, 62, 74, 1330, 1635, 198, 11748, 640, 628, 198, 198, 361, 11593, 3672, 834, 6624, 366, 834, 12417, 834, 1298, 198, 220, 220, 220, 1388, 3419, 628 ]
2.45
40
"""Fix bound method attributes (method.im_? -> method.__?__). """ # Author: Christian Heimes # Local imports from .. import fixer_base from ..fixer_util import Name MAP = { "im_func" : "__func__", "im_self" : "__self__", "im_class" : "__self__.__class__" }
[ 37811, 22743, 5421, 2446, 12608, 357, 24396, 13, 320, 62, 30, 4613, 2446, 13, 834, 30, 834, 737, 201, 198, 37811, 201, 198, 2, 6434, 25, 4302, 679, 999, 201, 198, 201, 198, 2, 10714, 17944, 201, 198, 6738, 11485, 1330, 4259, 263, ...
2.360656
122
import torch import torch.nn as nn import torch.nn.functional as F from typing import List
[ 11748, 28034, 198, 11748, 28034, 13, 20471, 355, 299, 77, 198, 11748, 28034, 13, 20471, 13, 45124, 355, 376, 198, 6738, 19720, 1330, 7343, 198 ]
3.64
25
# print(solution(2, 10, [7, 4, 5, 6])) print(solution(100, 100, [10]))
[ 198, 198, 2, 3601, 7, 82, 2122, 7, 17, 11, 838, 11, 685, 22, 11, 604, 11, 642, 11, 718, 60, 4008, 198, 4798, 7, 82, 2122, 7, 3064, 11, 1802, 11, 685, 940, 60, 4008, 198 ]
1.972973
37
# # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # ...
[ 2, 198, 2, 220, 220, 220, 49962, 739, 262, 24843, 13789, 11, 10628, 362, 13, 15, 357, 1169, 366, 34156, 15341, 345, 743, 198, 2, 220, 220, 220, 407, 779, 428, 2393, 2845, 287, 11846, 351, 262, 13789, 13, 921, 743, 7330, 198, 2, ...
3.4
230
"""Holds the device gemoetry parameters (Table 5), taken from Wu et al., >> A Predictive 3-D Source/Drain Resistance Compact Model and the Impact on 7 nm and Scaled FinFets<<, 2020, with interpolation for 4nm. 16nm is taken from PTM HP. """ node_names = [16, 7, 5, 4, 3] GP = [64, 56, 48, 44, 41] FP = [40, 30, 28, 24, ...
[ 37811, 39, 10119, 262, 3335, 16840, 78, 11973, 10007, 357, 10962, 642, 828, 2077, 422, 18027, 2123, 435, 1539, 198, 4211, 317, 14322, 45279, 513, 12, 35, 8090, 14, 35, 3201, 17363, 37904, 9104, 290, 262, 17677, 319, 767, 28642, 290, 1...
2.352941
187
# Copyright (c) AT&T 2012-2013 Yun Mao <yunmao@gmail.com> # Copyright 2012 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/LICENS...
[ 2, 15069, 357, 66, 8, 5161, 5, 51, 2321, 12, 6390, 20757, 22828, 1279, 88, 403, 2611, 78, 31, 14816, 13, 785, 29, 198, 2, 15069, 2321, 19764, 11421, 13, 198, 2, 198, 2, 220, 220, 220, 49962, 739, 262, 24843, 13789, 11, 10628, 36...
3.353982
339
"""Tests for miscellaneous properties, such as debuggability.""" import time from chopsticks.tunnel import Docker from chopsticks.group import Group def test_tunnel_repr(): """Tunnels have a usable repr.""" tun = Docker('py36', image='python:3.6') assert repr(tun) == "Docker('py36')" def test_group_repr...
[ 37811, 51, 3558, 329, 2984, 25673, 6608, 11, 884, 355, 1915, 6837, 1799, 526, 15931, 198, 11748, 640, 198, 6738, 30506, 34810, 13, 28286, 4954, 1330, 25716, 198, 6738, 30506, 34810, 13, 8094, 1330, 4912, 628, 198, 4299, 1332, 62, 28286,...
2.392638
326
import pandas as pd import re import glob
[ 11748, 19798, 292, 355, 279, 67, 198, 11748, 302, 198, 11748, 15095, 628, 628, 628, 220, 220, 220, 220, 220, 198 ]
2.52381
21
from sentry_sdk import capture_exception from dateutil.parser import parse from project_configuration.celery import app from orders.models import Charge from request_shoutout.domain.models import Charge as DomainCharge from .models import WirecardTransactionData CROSS_SYSTEMS_STATUS_MAPPING = { 'WAITING': Domai...
[ 6738, 1908, 563, 62, 21282, 74, 1330, 8006, 62, 1069, 4516, 198, 6738, 3128, 22602, 13, 48610, 1330, 21136, 198, 198, 6738, 1628, 62, 11250, 3924, 13, 7015, 88, 1330, 598, 198, 6738, 6266, 13, 27530, 1330, 20260, 198, 6738, 2581, 62, ...
2.728448
232
from typing import * from multiple_dispatch import multiple_dispatch print(add(2, "hello"))
[ 6738, 19720, 1330, 1635, 198, 6738, 3294, 62, 6381, 17147, 1330, 3294, 62, 6381, 17147, 198, 198, 4798, 7, 2860, 7, 17, 11, 366, 31373, 48774, 198 ]
3.444444
27
""" AlexNet """ import paddle.fluid as fluid import numpy as np if __name__ == '__main__': with fluid.dygraph.guard(): alexnet = AlexNet('alex-net', 3) img = np.zeros([2, 3, 224, 224]).astype('float32') img = fluid.dygraph.to_variable(img) outs = alexnet(img).numpy() ...
[ 37811, 201, 198, 4422, 7934, 201, 198, 37811, 201, 198, 11748, 39517, 13, 35522, 312, 355, 11711, 201, 198, 11748, 299, 32152, 355, 45941, 201, 198, 201, 198, 361, 11593, 3672, 834, 6624, 705, 834, 12417, 834, 10354, 201, 198, 220, 22...
2.065868
167
import turtle import random p1=turtle.Turtle() p1.color("green") p1.shape("turtle") p1.penup() p1.goto(-200,100) p2=p1.clone() p2.color("blue") p2.penup() p2.goto(-200,-100) p1.goto(300,60) p1.pendown() p1.circle(40) p1.penup() p1.goto(-200,100) p2.goto(300,-140) p2.pendown() p2.circle(40) p2.penup() p2.goto(-200,-...
[ 11748, 28699, 198, 11748, 4738, 198, 198, 79, 16, 28, 83, 17964, 13, 51, 17964, 3419, 198, 79, 16, 13, 8043, 7203, 14809, 4943, 198, 79, 16, 13, 43358, 7203, 83, 17964, 4943, 198, 79, 16, 13, 3617, 929, 3419, 198, 79, 16, 13, 70...
1.8357
493
#!/usr/bin/env python # vim: fdm=marker ''' author: Fabio Zanini date: 15/06/14 content: Check the status of the pipeline for one or more sequencing samples. ''' # Modules import os import sys from itertools import izip import argparse from Bio import SeqIO from hivwholeseq.utils.generic import getchar fr...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 198, 2, 43907, 25, 277, 36020, 28, 4102, 263, 198, 7061, 6, 198, 9800, 25, 220, 220, 220, 220, 14236, 952, 47022, 5362, 198, 4475, 25, 220, 220, 220, 220, 220, 220, 1315, 14, 3312, 14, ...
2.00323
4,335
import streamlit as st import pandas as pd import numpy as np import seaborn as sns import matplotlib.pyplot as plt # -------------------------------------------------------------- # Import and clean data game_details = pd.read_csv('games_details.csv') # print(game_details.head(5)) game_details.drop(['GAME_ID', 'TEAM_...
[ 11748, 4269, 18250, 355, 336, 198, 11748, 19798, 292, 355, 279, 67, 198, 11748, 299, 32152, 355, 45941, 198, 11748, 384, 397, 1211, 355, 3013, 82, 198, 11748, 2603, 29487, 8019, 13, 9078, 29487, 355, 458, 83, 198, 198, 2, 20368, 1783,...
2.659609
614
""" Copyright (c) Facebook, Inc. and its affiliates. """ import numpy as np import random from datetime import datetime import sys import argparse import torch import os from inspect import currentframe, getframeinfo GEOSCORER_DIR = os.path.dirname(os.path.realpath(__file__)) CRAFTASSIST_DIR = os.path.join(GEOSCORER_...
[ 37811, 198, 15269, 357, 66, 8, 3203, 11, 3457, 13, 290, 663, 29116, 13, 198, 37811, 198, 198, 11748, 299, 32152, 355, 45941, 198, 11748, 4738, 198, 6738, 4818, 8079, 1330, 4818, 8079, 198, 11748, 25064, 198, 11748, 1822, 29572, 198, 1...
2.540364
1,375
#!/usr/bin/python from __future__ import absolute_import, division, print_function import subprocess from builtins import bytes, range from os.path import abspath, dirname from os.path import join as join_path from random import randint from CryptoAttacks.Block.gcm import * from CryptoAttacks.Utils import log d...
[ 2, 48443, 14629, 14, 8800, 14, 29412, 198, 198, 6738, 11593, 37443, 834, 1330, 4112, 62, 11748, 11, 7297, 11, 3601, 62, 8818, 198, 198, 11748, 850, 14681, 198, 6738, 3170, 1040, 1330, 9881, 11, 2837, 198, 6738, 28686, 13, 6978, 1330, ...
3.045918
196
from python_clean_architecture.shared import use_case as uc from python_clean_architecture.shared import response_object as res
[ 6738, 21015, 62, 27773, 62, 998, 5712, 495, 13, 28710, 1330, 779, 62, 7442, 355, 334, 66, 198, 6738, 21015, 62, 27773, 62, 998, 5712, 495, 13, 28710, 1330, 2882, 62, 15252, 355, 581, 198, 220 ]
3.583333
36
from __future__ import (absolute_import, division, print_function) from owscapable.util import nspath_eval from owscapable.namespaces import Namespaces from owscapable.util import testXMLAttribute, testXMLValue, InfiniteDateTime, NegativeInfiniteDateTime from dateutil import parser from datetime import timedelta fro...
[ 6738, 11593, 37443, 834, 1330, 357, 48546, 62, 11748, 11, 7297, 11, 3601, 62, 8818, 8, 198, 198, 6738, 12334, 1416, 499, 540, 13, 22602, 1330, 299, 2777, 776, 62, 18206, 198, 6738, 12334, 1416, 499, 540, 13, 14933, 43076, 1330, 28531,...
2.497758
669