content
stringlengths
1
1.05M
input_ids
listlengths
1
883k
ratio_char_token
float64
1
22.9
token_count
int64
1
883k
"Test history entries for migrated, obsolete fields" from datetime import ( time, timedelta, ) from decimal import Decimal from typing import ( Any, Dict, ) from django.contrib.auth.models import User from django.db import models from wicked_historian.usersmuggler import usersmuggler from wicked_histo...
[ 1, 14402, 2106, 12784, 329, 40227, 11, 26533, 7032, 1, 198, 6738, 4818, 8079, 1330, 357, 198, 220, 220, 220, 640, 11, 198, 220, 220, 220, 28805, 12514, 11, 198, 8, 198, 6738, 32465, 1330, 4280, 4402, 198, 6738, 19720, 1330, 357, 198...
3.077348
181
from UdonPie import UnityEngine from UdonPie.Undefined import *
[ 6738, 471, 9099, 48223, 1330, 18714, 13798, 198, 6738, 471, 9099, 48223, 13, 31319, 18156, 1330, 1635, 628 ]
3.611111
18
# Generated by Django 2.2.5 on 2019-11-01 06:22 from django.db import migrations, models
[ 2, 2980, 515, 416, 37770, 362, 13, 17, 13, 20, 319, 13130, 12, 1157, 12, 486, 9130, 25, 1828, 198, 198, 6738, 42625, 14208, 13, 9945, 1330, 15720, 602, 11, 4981, 628 ]
2.84375
32
""" #################################################################################################### # Copyright Info : Copyright (c) Davar Lab @ Hikvision Research Institute. All rights reserved. # Filename : tp_head.py # Abstract : Text Perceptron head structure, mainly including losses for s...
[ 37811, 198, 29113, 29113, 29113, 4242, 198, 2, 15069, 14151, 1058, 220, 220, 220, 15069, 357, 66, 8, 2544, 283, 3498, 2488, 39790, 10178, 4992, 5136, 13, 1439, 2489, 10395, 13, 198, 2, 7066, 12453, 220, 220, 220, 220, 220, 220, 1058, ...
2.909584
553
import wx, wx.lib.newevent import wx.lib.ogl as ogl from myhdl import Signal, always, intbv from MyHDLSim.sequential import ClkDriver # OGL object to draw a signal
[ 11748, 266, 87, 11, 266, 87, 13, 8019, 13, 3605, 15596, 198, 11748, 266, 87, 13, 8019, 13, 28678, 355, 267, 4743, 198, 6738, 616, 71, 25404, 1330, 26484, 11, 1464, 11, 493, 65, 85, 198, 6738, 2011, 10227, 6561, 320, 13, 3107, 1843...
2.671875
64
import json import sys from frankenbot.bot import Bot from frankenbot.console_chat_interface import ConsoleChatInterface from frankenbot.persistence.json.json_unserializer import JSONUnserializer bot_def = "bot_def/restaurantsearch.json" unserializer = JSONUnserializer() #simpleResponseGenerator object bot = unseriali...
[ 11748, 33918, 198, 11748, 25064, 198, 6738, 14346, 268, 13645, 13, 13645, 1330, 18579, 198, 6738, 14346, 268, 13645, 13, 41947, 62, 17006, 62, 39994, 1330, 24371, 30820, 39317, 198, 6738, 14346, 268, 13645, 13, 19276, 13274, 13, 17752, 13...
3.05
460
#!/usr/bin/env python # # # 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, soft...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 198, 2, 198, 2, 198, 2, 220, 49962, 739, 262, 24843, 13789, 11, 10628, 362, 13, 15, 357, 1169, 366, 34156, 15341, 198, 2, 220, 345, 743, 407, 779, 428, 2393, 2845, 287, 11846, 351, 262,...
2.872045
719
from typing import TYPE_CHECKING, Optional from ModularChess.movements.Movement import Movement, MovementData if TYPE_CHECKING: from ModularChess.pieces.Piece import Piece from ModularChess.utils.Position import Position
[ 6738, 19720, 1330, 41876, 62, 50084, 2751, 11, 32233, 198, 198, 6738, 3401, 934, 7376, 824, 13, 21084, 902, 13, 21774, 434, 1330, 15477, 11, 15477, 6601, 198, 198, 361, 41876, 62, 50084, 2751, 25, 198, 220, 220, 220, 422, 3401, 934, ...
3.462687
67
# -*- coding: utf-8 -*- """ julabo.py Contains Julabo temperature control see documentation http://www.julabo.com/sites/default/files/downloads/manuals/french/19524837-V2.pdf at section 10.2. :copyright: (c) 2015 by Maxime DAUPHIN :license: MIT, see LICENSE for details """ import serial import time from .pytempera...
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 37811, 198, 73, 377, 34748, 13, 9078, 198, 198, 4264, 1299, 5979, 34748, 5951, 1630, 198, 766, 10314, 2638, 1378, 2503, 13, 73, 377, 34748, 13, 785, 14, 49315, 14, 122...
2.991597
119
""" Some basic matrix-related functionality. """ def cumulative2d(grid): """ >>> cumulative2d([[2, 5, 4], [3, 8, 1]]) [[0, 0, 0, 0], [0, 2, 7, 11], [0, 5, 18, 23]] """ rows = [] for row in grid: rrr = [0] last = 0 for col in row: last += col rrr.a...
[ 37811, 198, 4366, 4096, 17593, 12, 5363, 11244, 13, 198, 37811, 198, 198, 4299, 23818, 17, 67, 7, 25928, 2599, 198, 220, 220, 220, 37227, 198, 220, 220, 220, 13163, 23818, 17, 67, 26933, 58, 17, 11, 642, 11, 604, 4357, 685, 18, 11...
1.953846
585
from selenium import webdriver from selenium.webdriver.common.by import By from selenium.webdriver.support.ui import WebDriverWait from selenium.webdriver.support import expected_conditions as EC from lxml import etree import json if __name__ == '__main__': dou_spider = DouyuSpider() dou_spider.run()
[ 6738, 384, 11925, 1505, 1330, 3992, 26230, 198, 6738, 384, 11925, 1505, 13, 12384, 26230, 13, 11321, 13, 1525, 1330, 2750, 198, 6738, 384, 11925, 1505, 13, 12384, 26230, 13, 11284, 13, 9019, 1330, 5313, 32103, 21321, 198, 6738, 384, 119...
3.068627
102
#!/usr/bin/env python from setuptools import setup, find_packages from codecs import open from os import path here = path.abspath(path.dirname(__file__)) # Get the long description from the README file with open(path.join(here, 'README.rst'), encoding='utf-8') as f: long_description = f.read() # Read version in...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 198, 198, 6738, 900, 37623, 10141, 1330, 9058, 11, 1064, 62, 43789, 198, 6738, 40481, 82, 1330, 1280, 198, 6738, 28686, 1330, 3108, 198, 198, 1456, 796, 3108, 13, 397, 2777, 776, 7, 6978, ...
2.917933
329
# ___ ___ ___ ___ ___ ___ # /\ \ /\ \ /\ \ /\ \ /\ \ /\ \ # /::\ \ /::\ \ \:\ \ /::\ \ /::\ \ /::\ \ # /:/\:\ \ /:/\:\ \ \:\ \ /:/\:\ \ /:/\:\ \ /:/\:\ \ # /:/ \:\ \ /:/ \...
[ 2, 220, 220, 220, 220, 220, 46444, 220, 220, 220, 220, 220, 220, 220, 220, 220, 46444, 220, 220, 220, 220, 220, 220, 46444, 220, 220, 220, 220, 220, 220, 220, 220, 220, 46444, 220, 220, 220, 220, 220, 220, 220, 220, 220, 46444, ...
1.833461
6,503
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Copyright (c) 2019, Linear Labs Technology 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 ...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 18, 198, 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 37811, 198, 15269, 357, 66, 8, 13130, 11, 44800, 23500, 8987, 198, 198, 26656, 15385, 739, 262, 24843, 13789, 11, ...
2.460411
1,364
import os from project import app, db
[ 11748, 28686, 198, 6738, 1628, 1330, 598, 11, 20613, 198 ]
3.8
10
from sqlalchemy import Column,Integer,String, Float from sqlalchemy.ext.declarative import declarative_base from sqlalchemy import create_engine from config.envvar import * Base = declarative_base() engine = create_engine('mysql+pymysql://'+db_config["DB_USER"]+':'+db_config["DB_PASSWORD"]+'@'+db_config["DB_HOST"]+'/...
[ 6738, 44161, 282, 26599, 1330, 29201, 11, 46541, 11, 10100, 11, 48436, 198, 6738, 44161, 282, 26599, 13, 2302, 13, 32446, 283, 876, 1330, 2377, 283, 876, 62, 8692, 198, 6738, 44161, 282, 26599, 1330, 2251, 62, 18392, 198, 6738, 4566, ...
2.540881
159
# -*- coding: utf-8 -*- """ Created on Thu Jun 11 11:17:21 2020 @author: eilxaix """ import pandas as pd import re # ============================================================================= # data = read_csv_data(pd.read_csv('../../dataset/ieee_xai/ieee_xai.csv')) # =============================================...
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 37811, 198, 41972, 319, 26223, 7653, 1367, 1367, 25, 1558, 25, 2481, 12131, 198, 198, 31, 9800, 25, 304, 346, 27865, 844, 198, 37811, 198, 198, 11748, 19798, 292, 355, ...
3.677083
96
# Generated from Scicopia.g4 by ANTLR 4.9.2 # encoding: utf-8 from antlr4 import * from io import StringIO import sys if sys.version_info[1] > 5: from typing import TextIO else: from typing.io import TextIO
[ 2, 2980, 515, 422, 1446, 291, 24464, 13, 70, 19, 416, 3537, 14990, 49, 604, 13, 24, 13, 17, 198, 2, 21004, 25, 3384, 69, 12, 23, 198, 6738, 1885, 14050, 19, 1330, 1635, 198, 6738, 33245, 1330, 10903, 9399, 198, 11748, 25064, 198, ...
2.734177
79
from pathlib import Path import sys sys.path.append(str(Path(__file__).resolve().parents[1])) from werewolf import create_app from werewolf.database import db app = create_app('db') with app.app_context(): db.drop_all() db.create_all()
[ 6738, 3108, 8019, 1330, 10644, 201, 198, 11748, 25064, 201, 198, 201, 198, 17597, 13, 6978, 13, 33295, 7, 2536, 7, 15235, 7, 834, 7753, 834, 737, 411, 6442, 22446, 23743, 58, 16, 60, 4008, 201, 198, 6738, 547, 18829, 1330, 2251, 62,...
2.59
100
import numpy as np import pytest from sklego.common import flatten from sklego.linear_model import ProbWeightRegression from tests.conftest import nonmeta_checks, regressor_checks, general_checks
[ 11748, 299, 32152, 355, 45941, 198, 11748, 12972, 9288, 198, 198, 6738, 1341, 1455, 78, 13, 11321, 1330, 27172, 268, 198, 6738, 1341, 1455, 78, 13, 29127, 62, 19849, 1330, 30873, 25844, 8081, 2234, 198, 6738, 5254, 13, 1102, 701, 395, ...
3.491228
57
# -*- coding: utf-8 -*- """ Created on Sat Jun 29 19:44:28 2019 @author: Administrator """ solu = Solution() s = "++++" s = "+++++" s = "++++++" print(solu.canWin(s))
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 37811, 198, 41972, 319, 7031, 7653, 2808, 678, 25, 2598, 25, 2078, 13130, 198, 198, 31, 9800, 25, 22998, 198, 37811, 198, 220, 220, 220, 220, 220, 220, 220, 220, 198, ...
2.055556
90
"""The CSDMS Web Modeling Tool (WMT) execution server.""" __version__ = '0.3'
[ 37811, 464, 9429, 35, 5653, 5313, 9104, 278, 16984, 357, 54, 13752, 8, 9706, 4382, 526, 15931, 198, 198, 834, 9641, 834, 796, 705, 15, 13, 18, 6, 198 ]
2.724138
29
import matplotlib import matplotlib.pyplot as plt import numpy as np import pandas as pd save_results = False plot_stored_GEM_reults()
[ 11748, 2603, 29487, 8019, 198, 11748, 2603, 29487, 8019, 13, 9078, 29487, 355, 458, 83, 198, 11748, 299, 32152, 355, 45941, 198, 11748, 19798, 292, 355, 279, 67, 198, 198, 21928, 62, 43420, 796, 10352, 628, 198, 198, 29487, 62, 301, 1...
2.816327
49
# # Copyright 2020 Antoine Sanner # 2020 Lars Pastewka # # ### MIT license # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the ri...
[ 2, 198, 2, 15069, 12131, 3738, 42722, 2986, 1008, 198, 2, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 12131, 31239, 11303, 413, 4914, 198, 2, 198, 2, 44386, 17168, 5964, 198, 2, 198, 2, 2448, 3411, 318, 29376, 7520, 11, 1479...
3.704478
335
import os import glob from ast import literal_eval import numpy as np import sympy from sympy import pi, sin, cos, var from sympy.printing import ccode from compmech.conecyl.sympytools import mprint_as_sparse, pow2mult var('x1t, x1r, x2t, x2r') var('y1t, y1r, y2t, y2r') var('xi1, xi2') var('c0, c1') subs = { ...
[ 11748, 28686, 198, 11748, 15095, 198, 6738, 6468, 1330, 18875, 62, 18206, 198, 198, 11748, 299, 32152, 355, 45941, 198, 11748, 10558, 88, 198, 6738, 10558, 88, 1330, 31028, 11, 7813, 11, 8615, 11, 1401, 198, 6738, 10558, 88, 13, 4798, ...
1.850099
2,515
import time import numpy as np from sparsecoding import sparse_encode_omp from sparsecoding import sparse_encode_nnmp from distributedpowermethod import distri_powermethod
[ 11748, 640, 201, 198, 11748, 299, 32152, 355, 45941, 201, 198, 6738, 37331, 2363, 7656, 1330, 29877, 62, 268, 8189, 62, 3361, 201, 198, 6738, 37331, 2363, 7656, 1330, 29877, 62, 268, 8189, 62, 20471, 3149, 201, 198, 6738, 9387, 6477, ...
3.22807
57
# Simple Game # Demonstrates importing modules import games, random print("Welcome to the world's simplest game!\n") again = None while again != "n": players = [] num = games.ask_number(question = "How many players? (2 - 5): ", low = 2, high = 5) for i in range(num): na...
[ 2, 17427, 3776, 198, 2, 7814, 2536, 689, 33332, 13103, 198, 198, 11748, 1830, 11, 4738, 198, 198, 4798, 7203, 14618, 284, 262, 995, 338, 24043, 983, 0, 59, 77, 4943, 198, 198, 17776, 796, 6045, 198, 4514, 757, 14512, 366, 77, 1298, ...
2.417857
280
import engine
[ 11748, 3113, 628 ]
5
3
import argparse import yomikatawa as yomi if __name__ == "__main__": main()
[ 11748, 1822, 29572, 198, 11748, 331, 296, 1134, 265, 6909, 355, 331, 12753, 198, 198, 361, 11593, 3672, 834, 6624, 366, 834, 12417, 834, 1298, 198, 220, 220, 220, 1388, 3419, 198 ]
2.53125
32
""" A module hosting all algorithms devised by Izzo """ import time import numpy as np from numpy import cross, pi from numpy.linalg import norm from scipy.special import hyp2f1 def izzo2015( mu, r1, r2, tof, M=0, prograde=True, low_path=True, maxiter=35, a...
[ 37811, 317, 8265, 13662, 477, 16113, 28964, 416, 314, 47802, 37227, 201, 198, 201, 198, 11748, 640, 201, 198, 201, 198, 11748, 299, 32152, 355, 45941, 201, 198, 6738, 299, 32152, 1330, 3272, 11, 31028, 201, 198, 6738, 299, 32152, 13, ...
2.038717
5,114
''' Test deleting SG with 2 attached NICs. @author: Youyk ''' import zstackwoodpecker.test_util as test_util import zstackwoodpecker.test_lib as test_lib import zstackwoodpecker.test_state as test_state import zstackwoodpecker.zstack_test.zstack_test_security_group as test_sg_header import zstackwoodpecker....
[ 7061, 6, 201, 198, 201, 198, 14402, 34817, 26147, 351, 362, 7223, 45593, 82, 13, 201, 198, 201, 198, 31, 9800, 25, 921, 48361, 201, 198, 7061, 6, 201, 198, 11748, 1976, 25558, 3822, 431, 15280, 13, 9288, 62, 22602, 355, 1332, 62, ...
2.065457
1,268
# Figure 5 in https://arxiv.org/pdf/1909.13404.pdf (towards modular and programmable architecture search) import sane_tikz.core as stz import sane_tikz.formatting as fmt frame_height = 9.5 frame_width = 10.0 frame_spacing = 0.2 frame_roundness = 0.6 frame_line_width = 4.5 * fmt.standard_line_width module_height = 1.6...
[ 2, 11291, 642, 287, 3740, 1378, 283, 87, 452, 13, 2398, 14, 12315, 14, 1129, 2931, 13, 1485, 26429, 13, 12315, 357, 83, 322, 1371, 26507, 290, 1430, 44102, 10959, 2989, 8, 198, 198, 11748, 33241, 62, 83, 1134, 89, 13, 7295, 355, 3...
2.272021
772
import time import json from basetestcase import BaseTestCase from couchbase_helper.documentgenerator import doc_generator from couchbase_helper.durability_helper import DurabilityHelper, \ DurableExceptions from couchbase_helper.tuq_generators import JsonGenerator from ...
[ 11748, 640, 198, 11748, 33918, 198, 198, 6738, 1615, 316, 395, 7442, 1330, 7308, 14402, 20448, 198, 6738, 18507, 8692, 62, 2978, 525, 13, 22897, 8612, 1352, 1330, 2205, 62, 8612, 1352, 198, 6738, 18507, 8692, 62, 2978, 525, 13, 67, 33...
3.198502
267
import matplotlib.pyplot as plt import yaml import os workspace = "/workspace/mnt/storage/guangcongzheng/zju_zgc/guided-diffusion" num_samples = 192 log = os.path.join(workspace, 'log/imagenet1000_classifier256x256_channel128_upperbound/predict/model500000_imagenet1000_stepsddim25_sample{}_selectedClass'.format(num_...
[ 11748, 2603, 29487, 8019, 13, 9078, 29487, 355, 458, 83, 198, 11748, 331, 43695, 198, 11748, 28686, 628, 198, 198, 5225, 10223, 796, 12813, 5225, 10223, 14, 76, 429, 14, 35350, 14, 5162, 648, 36801, 89, 31753, 14, 89, 14396, 62, 89, ...
2.213823
463
from bs4 import BeautifulSoup import requests import urllib.request from datetime import datetime import time from PIL import Image, ImageDraw, ImageFont import ctypes import os import shutil import socket import sys if __name__ == "__main__": # check internet connection while True: # if not ...
[ 6738, 275, 82, 19, 1330, 23762, 50, 10486, 198, 11748, 7007, 198, 11748, 2956, 297, 571, 13, 25927, 198, 6738, 4818, 8079, 1330, 4818, 8079, 198, 11748, 640, 198, 6738, 350, 4146, 1330, 7412, 11, 7412, 25302, 11, 7412, 23252, 198, 117...
2.461614
1,016
# coding=utf-8 # @Author : zhzhx2008 # @Time : 18-10-9 import os import warnings import jieba import numpy as np from keras import Input from keras import Model from keras import backend as K from keras import initializers, regularizers, constraints from keras.callbacks import EarlyStopping, ModelCheckpoint from...
[ 2, 19617, 28, 40477, 12, 23, 198, 198, 2, 2488, 13838, 220, 1058, 1976, 71, 23548, 87, 11528, 198, 2, 2488, 7575, 220, 220, 220, 1058, 1248, 12, 940, 12, 24, 198, 198, 11748, 28686, 198, 11748, 14601, 198, 198, 11748, 474, 494, 70...
2.585737
1,907
# coding: utf8 vpc_cidr = "192.168.0.0/16" http_cidr = "192.168.1.0/24"
[ 2, 19617, 25, 3384, 69, 23, 198, 198, 85, 14751, 62, 66, 312, 81, 796, 366, 17477, 13, 14656, 13, 15, 13, 15, 14, 1433, 1, 198, 4023, 62, 66, 312, 81, 796, 366, 17477, 13, 14656, 13, 16, 13, 15, 14, 1731, 1, 198 ]
1.622222
45
import torch import torch.nn as nn import torch.nn.functional as F from einops import rearrange from fastfold.model.fastnn.kernel import scale_mask_softmax, scale_mask_bias_softmax from fastfold.model.fastnn.kernel import LayerNorm from .initializer import glorot_uniform_af from fastfold.model.fastnn.kernel ...
[ 11748, 28034, 201, 198, 11748, 28034, 13, 20471, 355, 299, 77, 201, 198, 11748, 28034, 13, 20471, 13, 45124, 355, 376, 201, 198, 6738, 304, 259, 2840, 1330, 37825, 858, 201, 198, 6738, 3049, 11379, 13, 19849, 13, 7217, 20471, 13, 3388...
2.981366
161
# -*- coding:utf-8 -*- """ __init__.py ~~~~~~~~ input :author: Fufu, 2021/6/7 """ from abc import abstractmethod from asyncio import create_task, sleep from typing import Any from loguru import logger from ..libs.plugin import BasePlugin
[ 2, 532, 9, 12, 19617, 25, 40477, 12, 23, 532, 9, 12, 198, 37811, 198, 220, 220, 220, 11593, 15003, 834, 13, 9078, 198, 220, 220, 220, 220, 15116, 198, 220, 220, 220, 220, 5128, 628, 220, 220, 220, 1058, 9800, 25, 376, 3046, 84, ...
2.755319
94
import yaml import re from .SummonableBot import SummonableBot
[ 11748, 331, 43695, 198, 11748, 302, 198, 6738, 764, 13065, 2144, 540, 20630, 1330, 19515, 540, 20630, 198 ]
3.5
18
import pprint import statistics from contextlib import suppress from dataclasses import dataclass from enum import Enum from typing import Optional class WordGameHelper: _eliminated_characters: set[str] _included_characters: dict[str, ValidCharacter] _original_possible_common_words: set[str] possi...
[ 11748, 279, 4798, 198, 11748, 7869, 198, 6738, 4732, 8019, 1330, 18175, 198, 6738, 4818, 330, 28958, 1330, 4818, 330, 31172, 198, 6738, 33829, 1330, 2039, 388, 198, 6738, 19720, 1330, 32233, 628, 628, 628, 198, 4871, 9678, 8777, 47429, ...
3.133333
120
# coding=utf-8 # # @lc app=leetcode id=876 lang=python # # [876] Middle of the Linked List # # https://leetcode.com/problems/middle-of-the-linked-list/description/ # # algorithms # Easy (64.97%) # Likes: 593 # Dislikes: 42 # Total Accepted: 76.4K # Total Submissions: 117.5K # Testcase Example: '[1,2,3,4,5]' # # ...
[ 2, 19617, 28, 40477, 12, 23, 198, 2, 198, 2, 2488, 44601, 598, 28, 293, 316, 8189, 4686, 28, 23, 4304, 42392, 28, 29412, 198, 2, 198, 2, 685, 23, 4304, 60, 6046, 286, 262, 7502, 276, 7343, 198, 2, 198, 2, 3740, 1378, 293, 316,...
2.393939
660
# New BSD License # # Copyright (c) 2007-2019 The scikit-learn developers. # All rights reserved. # # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are met: # # a. Redistributions of source code must retain the above copyright...
[ 2, 968, 347, 10305, 13789, 198, 2, 198, 2, 15069, 357, 66, 8, 4343, 12, 23344, 383, 629, 1134, 270, 12, 35720, 6505, 13, 198, 2, 1439, 2489, 10395, 13, 198, 2, 198, 2, 198, 2, 2297, 396, 3890, 290, 779, 287, 2723, 290, 13934, ...
2.723101
1,264
import pytest import sys sys.path.append('.') from turingmachine import Transition, Direction, State
[ 11748, 12972, 9288, 198, 11748, 25064, 198, 17597, 13, 6978, 13, 33295, 10786, 2637, 8, 198, 198, 6738, 256, 870, 30243, 1330, 40658, 11, 41837, 11, 1812, 628 ]
3.678571
28
import os
[ 11748, 28686, 198 ]
3.333333
3
from unittest import mock from django.contrib.auth import get_user_model from django.core import mail from django.template import TemplateDoesNotExist from django.test import TestCase from django.urls import reverse from ..accounts.adapter import EmailAdapter from .utils import TestOrganizationMixin User = get_user_...
[ 6738, 555, 715, 395, 1330, 15290, 198, 198, 6738, 42625, 14208, 13, 3642, 822, 13, 18439, 1330, 651, 62, 7220, 62, 19849, 198, 6738, 42625, 14208, 13, 7295, 1330, 6920, 198, 6738, 42625, 14208, 13, 28243, 1330, 37350, 13921, 3673, 3109,...
3.537634
93
from setuptools import setup setup( name='vuln_toolkit', version='0.1', description='Transfer Learning Toolkit', url='https://para.cs.umd.edu/purtilo/vulnerability-detection-tool-set/tree/master', author='Ashton Webster', author_email='ashton.webster@gmail.com', license='MIT', packages=...
[ 6738, 900, 37623, 10141, 1330, 9058, 198, 198, 40406, 7, 198, 220, 220, 220, 1438, 11639, 85, 377, 77, 62, 25981, 15813, 3256, 198, 220, 220, 220, 2196, 11639, 15, 13, 16, 3256, 198, 220, 220, 220, 6764, 11639, 43260, 18252, 16984, ...
2.496732
153
# # Copyright (c) European Synchrotron Radiation Facility (ESRF) # # Permission is hereby granted, free of charge, to any person obtaining a copy of # this software and associated documentation files (the "Software"), to deal in # the Software without restriction, including without limitation the rights to # use, copy,...
[ 2, 198, 2, 15069, 357, 66, 8, 3427, 16065, 354, 10599, 1313, 47532, 29118, 357, 1546, 32754, 8, 198, 2, 198, 2, 2448, 3411, 318, 29376, 7520, 11, 1479, 286, 3877, 11, 284, 597, 1048, 16727, 257, 4866, 286, 198, 2, 428, 3788, 290, ...
3.635389
373
import numpy as np from tqdm import * from utils import DataLoaderX from dataset import collate from math import * if __name__ == '__main__': a = np.zeros((4, 3, 3)) print(a[:, 0:-1, 0:-1].shape)
[ 11748, 299, 32152, 355, 45941, 198, 6738, 256, 80, 36020, 1330, 1635, 198, 6738, 3384, 4487, 1330, 6060, 17401, 55, 198, 6738, 27039, 1330, 2927, 378, 198, 6738, 10688, 1330, 1635, 628, 628, 198, 361, 11593, 3672, 834, 6624, 705, 834, ...
2.567901
81
import torch from torch import nn from tqdm import tqdm from entmax import entmax_bisect import torch.nn.functional as F # helper function # top k filtering # topk # top_a ENTMAX_ALPHA = 1.3 entmax = entmax_bisect
[ 11748, 28034, 198, 6738, 28034, 1330, 299, 77, 198, 6738, 256, 80, 36020, 1330, 256, 80, 36020, 198, 6738, 920, 9806, 1330, 920, 9806, 62, 41907, 478, 198, 11748, 28034, 13, 20471, 13, 45124, 355, 376, 198, 198, 2, 31904, 2163, 198, ...
2.7375
80
# 1478. Allocate Mailboxes # User Accepted:342 # User Tried:594 # Total Accepted:364 # Total Submissions:1061 # Difficulty:Hard # Given the array houses and an integer k. where houses[i] is the location of the ith house along a street, your task is to allocate k mailboxes in the street. # Return the minimum total dista...
[ 2, 1478, 3695, 13, 1439, 13369, 11099, 29305, 198, 2, 11787, 21699, 276, 25, 31575, 198, 2, 11787, 309, 2228, 25, 46438, 198, 2, 7472, 21699, 276, 25, 26780, 198, 2, 7472, 3834, 8481, 25, 940, 5333, 198, 2, 27419, 25, 17309, 198, ...
2.859259
405
""" Operadores lgicos Para agrupar operaes com lgica booleana, utilizaremos operadores lgicos. Python suporta trs operadores bsicos: not (no), and (e), or (ou). Esses operadores podem ser traduzidos como no ( negao), e ( conjuno) e ou (V disjuno). """ # Operador not """ >>> not True False >>> not False True """ # O...
[ 37811, 198, 18843, 324, 2850, 300, 70, 291, 418, 198, 47, 3301, 556, 622, 1845, 27296, 274, 401, 300, 70, 3970, 1489, 2305, 2271, 11, 7736, 528, 533, 16785, 1515, 324, 2850, 300, 70, 291, 418, 13, 198, 37906, 424, 634, 64, 491, 82...
2.705882
357
# # Copyright (c) 2015-2016 Wind River Systems, Inc. # # SPDX-License-Identifier: Apache-2.0 # from nfv_common.alarm import * # noqa: F401,F403 from nfv_vim.alarm._general import clear_general_alarm # noqa: F401 from nfv_vim.alarm._general import raise_general_alarm # noqa: F401 from nfv_vim.alarm._host import host...
[ 2, 198, 2, 15069, 357, 66, 8, 1853, 12, 5304, 3086, 5866, 11998, 11, 3457, 13, 198, 2, 198, 2, 30628, 55, 12, 34156, 12, 33234, 7483, 25, 24843, 12, 17, 13, 15, 198, 2, 198, 6738, 299, 69, 85, 62, 11321, 13, 282, 1670, 1330, ...
2.593407
364
"""~#SHORTDESCRIPTION#~""" __version__ = "1.0.0" __release__ = "1" __program_name__ = "~#PROJECT#~"
[ 37811, 93, 2, 9693, 9863, 30910, 40165, 2, 93, 37811, 198, 198, 834, 9641, 834, 796, 366, 16, 13, 15, 13, 15, 1, 198, 834, 20979, 834, 796, 366, 16, 1, 198, 834, 23065, 62, 3672, 834, 796, 366, 93, 2, 31190, 23680, 2, 93, 1, ...
2.148936
47
from typing import Optional from torch import nn from rl_multi_agent.experiments.furnmove_grid_marginal_nocl_base_config import ( FurnMoveExperimentConfig, ) from rl_multi_agent.models import A3CLSTMNStepComCoordinatedActionsEgoGridsEmbedCNN
[ 6738, 19720, 1330, 32233, 198, 198, 6738, 28034, 1330, 299, 77, 198, 198, 6738, 374, 75, 62, 41684, 62, 25781, 13, 23100, 6800, 13, 69, 700, 21084, 62, 25928, 62, 30887, 1292, 62, 77, 38679, 62, 8692, 62, 11250, 1330, 357, 198, 220,...
2.941176
85
""" Request controllers for the external links service. These may be used handle requests originating from the :mod:`.routes.api` and/or the :mod:`.routes.ui`. If the behavior of these controllers diverges along the UI/API lines, then we can split this into ``controllers/api.py`` and ``controllers/ui.py``. """ from ...
[ 37811, 198, 18453, 20624, 329, 262, 7097, 6117, 2139, 13, 198, 198, 4711, 743, 307, 973, 5412, 7007, 37962, 422, 262, 1058, 4666, 25, 44646, 81, 448, 274, 13, 15042, 63, 198, 392, 14, 273, 262, 1058, 4666, 25, 44646, 81, 448, 274, ...
3.235556
225
from __future__ import division from __future__ import unicode_literals import re from django.http import HttpResponse from django.shortcuts import redirect from django.template import RequestContext from django.template import loader from models import * from apps.core.views import get_bg_color
[ 6738, 11593, 37443, 834, 1330, 7297, 198, 6738, 11593, 37443, 834, 1330, 28000, 1098, 62, 17201, 874, 198, 198, 11748, 302, 198, 198, 6738, 42625, 14208, 13, 4023, 1330, 367, 29281, 31077, 198, 6738, 42625, 14208, 13, 19509, 23779, 1330, ...
3.8125
80
from __future__ import unicode_literals from subprocess import call from re import search from random import sample, choice from csv import reader from os import popen from prompt_toolkit import prompt from prompt_toolkit.completion import WordCompleter ''' The strings, input and output of this program is in lowercase...
[ 6738, 11593, 37443, 834, 1330, 28000, 1098, 62, 17201, 874, 198, 6738, 850, 14681, 1330, 869, 198, 6738, 302, 1330, 2989, 198, 6738, 4738, 1330, 6291, 11, 3572, 198, 6738, 269, 21370, 1330, 9173, 198, 6738, 28686, 1330, 1461, 268, 198, ...
2.547317
2,441
#!/usr/bin/env python3 # -*- coding: utf-8 -*- # pylint: disable=wrong-import-position # pylint: disable=protected-access import concurrent.futures import io import os import sys import tempfile import threading sys.path.insert(0, os.path.abspath(os.path.join(os.path.dirname(__file__), '..'))) from ratarmountcore i...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 18, 198, 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 198, 2, 279, 2645, 600, 25, 15560, 28, 36460, 12, 11748, 12, 9150, 198, 2, 279, 2645, 600, 25, 15560, 28, 24326...
2.731707
205
import datetime import json import os import requests import smtplib import ssl if __name__ == "__main__": with open(os.path.join("scripts", "check_status_config.json"), "r") as f: data = f.read() config = json.loads(data) check_status(config)
[ 11748, 4818, 8079, 198, 11748, 33918, 198, 11748, 28686, 198, 11748, 7007, 198, 11748, 895, 83, 489, 571, 198, 11748, 264, 6649, 628, 628, 628, 628, 628, 198, 198, 361, 11593, 3672, 834, 6624, 366, 834, 12417, 834, 1298, 198, 220, 220...
2.59434
106
# Settings Manager # guidanoli DEFAULT_STGS = { "commas": "true", "comments": "true", "tknlistpath": "tknlist.tk", "tokenpath": "token.tk" } SETTINGS_PATH = "fibonacci.cfg" TYPE_STR = type("") TYPE_LIST = type([])
[ 2, 16163, 9142, 198, 2, 10103, 272, 11106, 198, 198, 7206, 38865, 62, 2257, 14313, 796, 1391, 198, 220, 220, 220, 366, 785, 5356, 1298, 366, 7942, 1600, 198, 220, 220, 220, 366, 15944, 1298, 366, 7942, 1600, 198, 220, 220, 220, 366,...
2.262136
103
#!/usr/bin/env python # -*- coding: utf-8 -*- # Copyright SquirrelNetwork from core import decorators from telegram.utils.helpers import mention_markdown
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 198, 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 198, 2, 15069, 44259, 26245, 198, 198, 6738, 4755, 1330, 11705, 2024, 198, 6738, 573, 30536, 13, 26791, 13, 16794, 364,...
3.163265
49
from ..utils import Object
[ 198, 198, 6738, 11485, 26791, 1330, 9515, 628 ]
3.75
8
# -*- coding: utf-8 -*- ####################################################### ''' input MOD 1. 2.()xlsx 3.-xlsx 4.mod 5. output xlsx(xlsx) ''' ####################################################### from skimage import io from openpyx...
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 29113, 14468, 4242, 21017, 198, 7061, 6, 198, 15414, 198, 220, 220, 220, 220, 198, 220, 220, 220, 220, 198, 220, 220, 220, 19164, 198, 220, 220, 220, 220, 628, 220, ...
1.946667
675
from collections import OrderedDict my_dict = OrderedDict() if __name__ == "__main__": print(populate({}))
[ 6738, 17268, 1330, 14230, 1068, 35, 713, 628, 198, 1820, 62, 11600, 796, 14230, 1068, 35, 713, 3419, 628, 198, 198, 361, 11593, 3672, 834, 6624, 366, 834, 12417, 834, 1298, 198, 220, 220, 220, 3601, 7, 12924, 5039, 15090, 92, 4008 ]
2.738095
42
# -*- coding: utf-8 -*- # Copyright (c) 2021 Brian Scholer (@briantist) # GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) from __future__ import (absolute_import, division, print_function) __metaclass__ = type import os import pytest from ansible_collections.community.hashi...
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 2, 15069, 357, 66, 8, 33448, 8403, 3059, 13625, 4275, 65, 380, 415, 396, 8, 198, 2, 22961, 3611, 5094, 13789, 410, 18, 13, 15, 10, 357, 3826, 27975, 45761, 393, 3740...
2.28066
424
crescente_e_decrescente()
[ 628, 198, 66, 26505, 68, 62, 68, 62, 12501, 26505, 68, 3419, 198 ]
2.230769
13
from kivy.lang import Builder import array import scipy import os import syft as sy import tensorflow as tf import numpy import time import scipy import sys from dataset import get_dataset from cluster import get_cluster from PIL import Image import leargist from skimage import transform from imageio import imsave f...
[ 6738, 479, 452, 88, 13, 17204, 1330, 35869, 198, 11748, 7177, 198, 11748, 629, 541, 88, 198, 11748, 28686, 198, 11748, 827, 701, 355, 827, 198, 11748, 11192, 273, 11125, 355, 48700, 198, 11748, 299, 32152, 198, 11748, 640, 198, 11748, ...
3.109005
211
from network.network import Network import tensorflow as tf import numpy as np
[ 6738, 3127, 13, 27349, 1330, 7311, 198, 11748, 11192, 273, 11125, 355, 48700, 198, 11748, 299, 32152, 355, 45941, 628, 628, 198 ]
3.772727
22
from google.protobuf import descriptor from google.protobuf import message from google.protobuf import reflection from google.protobuf import descriptor_pb2 DESCRIPTOR = descriptor.FileDescriptor(name='ResourceKey.proto', package='EA.Sims4.Network', serialized_pb='\n\x11ResourceKey.proto\x12\x10EA.Sims4.Network"<\n\x0b...
[ 6738, 23645, 13, 11235, 672, 3046, 1330, 43087, 198, 6738, 23645, 13, 11235, 672, 3046, 1330, 3275, 198, 6738, 23645, 13, 11235, 672, 3046, 1330, 14580, 198, 6738, 23645, 13, 11235, 672, 3046, 1330, 43087, 62, 40842, 17, 198, 30910, 365...
2.843373
913
import math import numpy as np import matplotlib.pyplot as plt from matplotlib.patches import Polygon # from matplotlib.ticker import MaxNLocator # Rafael Redondo (c) Eurecat 2020 colors = np.array([ [[247, 197, 188],[242, 151, 136],[242, 120, 99],[237, 85, 59]], [[255, 242, 196], [247, 232, 176], [250, 225, 135], [...
[ 11748, 10688, 198, 11748, 299, 32152, 355, 45941, 198, 11748, 2603, 29487, 8019, 13, 9078, 29487, 355, 458, 83, 198, 6738, 2603, 29487, 8019, 13, 8071, 2052, 1330, 12280, 14520, 198, 2, 422, 2603, 29487, 8019, 13, 83, 15799, 1330, 5436,...
1.879845
2,322
import yaml import os import sys import yaml import numpy as np from tqdm import tqdm import matplotlib.pyplot as plt from utils import load_poses, load_calib, load_files, load_vertex from preprocessing.utils import * from example.laserscan import * from PC_cluster.ScanLineRun_cluster.build import ScanLineRun_Cluster ...
[ 11748, 331, 43695, 198, 11748, 28686, 198, 11748, 25064, 198, 11748, 331, 43695, 198, 11748, 299, 32152, 355, 45941, 198, 6738, 256, 80, 36020, 1330, 256, 80, 36020, 198, 11748, 2603, 29487, 8019, 13, 9078, 29487, 355, 458, 83, 198, 673...
2.080833
2,066
if __name__ == '__main__': solution = Solution() print(solution.nextGreatestLetter(["c", "f", "j"], "a")) print(solution.nextGreatestLetter(["c", "f", "j"], "c")) print(solution.nextGreatestLetter(["c", "f", "j"], "k")) else: pass
[ 198, 198, 361, 11593, 3672, 834, 6624, 705, 834, 12417, 834, 10354, 198, 220, 220, 220, 4610, 796, 28186, 3419, 198, 220, 220, 220, 3601, 7, 82, 2122, 13, 19545, 13681, 395, 45708, 7, 14692, 66, 1600, 366, 69, 1600, 366, 73, 33116, ...
2.373832
107
from math import sqrt def factorial(n): """Computes factorial of n.""" if n == 0: return 1 else: recurse = factorial(n-1) result = n * recurse return result pi = estimate_pi() print pi
[ 6738, 10688, 1330, 19862, 17034, 201, 198, 4299, 1109, 5132, 7, 77, 2599, 201, 198, 220, 220, 220, 37227, 7293, 1769, 1109, 5132, 286, 299, 526, 15931, 201, 198, 220, 220, 220, 611, 299, 6624, 657, 25, 201, 198, 220, 220, 220, 220, ...
2.067797
118
# WARNING: Please don't edit this file. It was generated by Python/WinRT v1.0.0-beta.4 import enum import winsdk _ns_module = winsdk._import_ns_module("Windows.Graphics.Printing.PrintTicket") try: import winsdk.windows.data.xml.dom except Exception: pass try: import winsdk.windows.foundation except Exc...
[ 2, 39410, 25, 4222, 836, 470, 4370, 428, 2393, 13, 632, 373, 7560, 416, 11361, 14, 16643, 14181, 410, 16, 13, 15, 13, 15, 12, 31361, 13, 19, 198, 198, 11748, 33829, 198, 198, 11748, 7864, 34388, 198, 198, 62, 5907, 62, 21412, 796,...
3.243816
283
import threading import sys
[ 11748, 4704, 278, 198, 11748, 25064, 198 ]
4
7
import asyncio loop = asyncio.get_event_loop() coro = loop.create_connection(lambda: EchoClient("", loop), "127.0.0.1", 8192) loop.run_until_complete(coro) loop.run_forever() loop.close()
[ 11748, 30351, 952, 628, 198, 198, 26268, 796, 30351, 952, 13, 1136, 62, 15596, 62, 26268, 3419, 198, 10215, 78, 796, 9052, 13, 17953, 62, 38659, 7, 50033, 25, 21455, 11792, 7203, 1600, 9052, 828, 366, 16799, 13, 15, 13, 15, 13, 16, ...
2.616438
73
# -*- coding: utf-8 -*- from __future__ import absolute_import, division, print_function, unicode_literals
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 6738, 11593, 37443, 834, 1330, 4112, 62, 11748, 11, 7297, 11, 3601, 62, 8818, 11, 28000, 1098, 62, 17201, 874, 198 ]
3.057143
35
# -*- coding: UTF-8 -*- from spider import * app = OSCPspider() while True: main_view() op = raw_input(":") if not op: continue elif op[0] == 'l': flag = app.list_p(op) elif op[0] == 's': flag = app.search_p(op) elif op == 'c': flag = app.catch_p() elif op ...
[ 2, 532, 9, 12, 19617, 25, 41002, 12, 23, 532, 9, 12, 198, 198, 6738, 19230, 1330, 1635, 198, 198, 1324, 796, 440, 48956, 2777, 1304, 3419, 198, 198, 4514, 6407, 25, 198, 220, 220, 220, 1388, 62, 1177, 3419, 198, 220, 220, 220, 1...
1.857778
225
import pandas as pd from matplotlib import pyplot as plt import numpy as np import math from matplotlib import pyplot as plt from sklearn.preprocessing import LabelEncoder feature_dict = {i:label for i,label in zip( range(4), ('sepal length in cm', 'sepal width in c...
[ 11748, 19798, 292, 355, 279, 67, 198, 6738, 2603, 29487, 8019, 1330, 12972, 29487, 355, 458, 83, 198, 11748, 299, 32152, 355, 45941, 198, 11748, 10688, 198, 6738, 2603, 29487, 8019, 1330, 12972, 29487, 355, 458, 83, 198, 198, 6738, 1341...
2.119178
2,190
# -*- coding: utf-8 -*- # Generated by Django 1.11.22 on 2019-07-09 23:15 from __future__ import unicode_literals from django.db import migrations, models import js_color_picker.fields
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 2, 2980, 515, 416, 37770, 352, 13, 1157, 13, 1828, 319, 13130, 12, 2998, 12, 2931, 2242, 25, 1314, 198, 6738, 11593, 37443, 834, 1330, 28000, 1098, 62, 17201, 874, 198...
2.791045
67
""" gentex.texmeas package """ import numpy as np
[ 37811, 220, 25049, 1069, 13, 16886, 1326, 292, 5301, 198, 198, 37811, 198, 198, 11748, 299, 32152, 355, 45941, 628 ]
2.7
20
#!/usr/bin/env python # encoding: utf-8 """ @author: zk @contact: kun.zhang@nuance.com @file: dataio.py @time: 8/27/2019 4:31 PM @desc: """ import os def load_txt_data(path, mode='utf-8-sig', origin=False): """ This func is used to reading txt file :param origin: :param path: path where file stored ...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 198, 2, 21004, 25, 3384, 69, 12, 23, 198, 37811, 198, 31, 9800, 25, 1976, 74, 198, 31, 32057, 25, 479, 403, 13, 23548, 648, 31, 28803, 590, 13, 785, 198, 31, 7753, 25, 1366, 952, 13, ...
2.278576
1,461
from constants import * import pygame as pg from time import sleep from metronome import * import math import numpy as np from copy import deepcopy from audio import * from instructions_panel import * from loop import *
[ 6738, 38491, 1330, 1635, 198, 11748, 12972, 6057, 355, 23241, 198, 6738, 640, 1330, 3993, 198, 6738, 1138, 1313, 462, 1330, 1635, 198, 11748, 10688, 198, 11748, 299, 32152, 355, 45941, 198, 6738, 4866, 1330, 2769, 30073, 198, 6738, 6597, ...
4
55
import aiohttp import struct import json import re
[ 11748, 257, 952, 4023, 198, 11748, 2878, 198, 11748, 33918, 198, 11748, 302, 628, 198 ]
3.533333
15
from django.views.generic import DetailView, TemplateView from star_ratings.models import Rating from .models import Beer, Snack
[ 6738, 42625, 14208, 13, 33571, 13, 41357, 1330, 42585, 7680, 11, 37350, 7680, 198, 6738, 3491, 62, 10366, 654, 13, 27530, 1330, 12028, 198, 198, 6738, 764, 27530, 1330, 16971, 11, 5489, 441, 628, 198 ]
3.771429
35
# Generated by Django 3.2.5 on 2021-07-20 15:33 from django.db import migrations
[ 2, 2980, 515, 416, 37770, 513, 13, 17, 13, 20, 319, 33448, 12, 2998, 12, 1238, 1315, 25, 2091, 198, 198, 6738, 42625, 14208, 13, 9945, 1330, 15720, 602, 628 ]
2.766667
30
# Imports from flask import Flask, render_template, session, redirect, request, flash, url_for, abort from flask_session import Session from werkzeug.exceptions import default_exceptions, HTTPException, InternalServerError from werkzeug.security import check_password_hash, generate_password_hash from cs50 import S...
[ 2, 1846, 3742, 201, 198, 6738, 42903, 1330, 46947, 11, 8543, 62, 28243, 11, 6246, 11, 18941, 11, 2581, 11, 7644, 11, 19016, 62, 1640, 11, 15614, 201, 198, 6738, 42903, 62, 29891, 1330, 23575, 201, 198, 6738, 266, 9587, 2736, 1018, 1...
2.581538
325
from pycipher import Rot13 import unittest
[ 6738, 12972, 66, 10803, 1330, 18481, 1485, 198, 11748, 555, 715, 395, 198, 220 ]
3.142857
14
from typing import Any from hypothesis import given from lz.functional import identity from tests import strategies
[ 6738, 19720, 1330, 4377, 198, 198, 6738, 14078, 1330, 1813, 198, 198, 6738, 300, 89, 13, 45124, 1330, 5369, 198, 6738, 5254, 1330, 10064, 628 ]
4.76
25
from datetime import datetime, timedelta from discord import Embed from discord.ext.commands import Cog from discord.ext.commands import command import logging
[ 6738, 4818, 8079, 1330, 4818, 8079, 11, 28805, 12514, 198, 6738, 36446, 1330, 13302, 276, 198, 6738, 36446, 13, 2302, 13, 9503, 1746, 1330, 327, 519, 198, 6738, 36446, 13, 2302, 13, 9503, 1746, 1330, 3141, 198, 11748, 18931, 198 ]
4
40
""" Copyright (C) 2020 ETH Zurich. All rights reserved. Author: Sergei Vostrikov, ETH Zurich 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/LI...
[ 37811, 198, 220, 220, 15069, 357, 34, 8, 12131, 35920, 43412, 13, 1439, 2489, 10395, 13, 628, 220, 220, 6434, 25, 34724, 569, 455, 12602, 709, 11, 35920, 43412, 628, 220, 220, 49962, 739, 262, 24843, 13789, 11, 10628, 362, 13, 15, 3...
2.397028
942
# Copyright 2019 Huawei Technologies Co., Ltd # # 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...
[ 2, 15069, 13130, 43208, 21852, 1766, 1539, 12052, 198, 2, 198, 2, 49962, 739, 262, 24843, 13789, 11, 10628, 362, 13, 15, 357, 1169, 366, 34156, 15341, 198, 2, 345, 743, 407, 779, 428, 2393, 2845, 287, 11846, 351, 262, 13789, 13, 198...
2.744939
494
# Copyright (c) 2021 Red Hat, Inc. # # All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless requi...
[ 2, 15069, 357, 66, 8, 33448, 2297, 10983, 11, 3457, 13, 198, 2, 198, 2, 1439, 6923, 33876, 13, 198, 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,...
3.2827
237
import tensorflow as tf import pathlib import matplotlib.pyplot as plt import pandas as pd import numpy as np #print(np.version.version) #np.set_printoptions(precision=4) dataset=tf.data.Dataset.from_tensor_slices([8,3,0,8,2,1]) num=np.arange(5) numT=tf.convert_to_tensor(num) numF=tf.cast(numT,dtype=tf.float32) print(...
[ 11748, 11192, 273, 11125, 355, 48700, 198, 11748, 3108, 8019, 198, 11748, 2603, 29487, 8019, 13, 9078, 29487, 355, 458, 83, 198, 11748, 19798, 292, 355, 279, 67, 198, 11748, 299, 32152, 355, 45941, 198, 2, 4798, 7, 37659, 13, 9641, 13...
2.169492
236
#LeetCode problem 378: Kth Smallest Element in a Sorted Matrix
[ 2, 3123, 316, 10669, 1917, 45473, 25, 509, 400, 10452, 395, 11703, 287, 257, 311, 9741, 24936 ]
3.647059
17
from server import crud
[ 6738, 4382, 1330, 1067, 463, 628, 198 ]
3.714286
7
import numpy as np import trimesh try: from Satellite_Panel_Solar import Panel_Solar from SatelitteActitud import SatelitteActitud except: from src.data.Satellite_Panel_Solar import Panel_Solar from src.data.SatelitteActitud import SatelitteActitud # noinspection SpellCheckingInspection """Sa...
[ 11748, 299, 32152, 355, 45941, 201, 198, 11748, 491, 999, 71, 201, 198, 28311, 25, 201, 198, 220, 220, 220, 422, 33530, 62, 26639, 62, 38825, 1330, 18810, 62, 38825, 201, 198, 220, 220, 220, 422, 311, 25791, 2654, 6398, 26331, 1330, ...
2.51952
666
# -*- coding: utf-8 -*- # Part of Odoo. See LICENSE file for full copyright and licensing details. from odoo import api, fields, models, _ from odoo.exceptions import ValidationError
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 2, 2142, 286, 10529, 2238, 13, 4091, 38559, 24290, 2393, 329, 1336, 6634, 290, 15665, 3307, 13, 198, 198, 6738, 16298, 2238, 1330, 40391, 11, 7032, 11, 4981, 11, 4808, ...
3.303571
56
import numpy as np from scipy.interpolate import BSpline from colossus.cosmology import cosmology """ Helper routines for basis functions for the continuous-function estimator. """ ################ # Spline basis # ################ def spline_bases(rmin, rmax, projfn, ncomponents, ncont=2000, order=3): ''' Co...
[ 11748, 299, 32152, 355, 45941, 198, 6738, 629, 541, 88, 13, 3849, 16104, 378, 1330, 24218, 489, 500, 198, 6738, 951, 36533, 13, 6966, 29126, 1330, 8615, 29126, 198, 198, 37811, 198, 47429, 31878, 329, 4308, 5499, 329, 262, 12948, 12, ...
2.590639
1,517