content
stringlengths
1
1.05M
input_ids
listlengths
1
883k
ratio_char_token
float64
1
22.9
token_count
int64
1
883k
#!/usr/bin/env python import unittest import sys import os import string import time import socket import fileinput import platform import re try: import subprocess32 as subprocess except: import subprocess import pg """ Global Values """ MYD = os.path.abspath(os.path.dirname(__file__)) mkpath = lambda *x: os...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 198, 198, 11748, 555, 715, 395, 198, 11748, 25064, 198, 11748, 28686, 198, 11748, 4731, 198, 11748, 640, 198, 11748, 17802, 198, 11748, 2393, 15414, 198, 11748, 3859, 198, 11748, 302, 198, 28...
2.304509
1,619
''' "+100""5e2""-123""3.1416""-1E-16""0123""12e""1a3.14""1.2.3""+-5""12e+5.4" LeetCode https://leetcode-cn.com/problems/biao-shi-shu-zhi-de-zi-fu-chuan-lcof '''
[ 7061, 6, 198, 1, 10, 3064, 15931, 20, 68, 17, 15931, 12, 10163, 15931, 18, 13, 1415, 1433, 15931, 12, 16, 36, 12, 1433, 15931, 486, 1954, 15931, 1065, 68, 15931, 16, 64, 18, 13, 1415, 15931, 16, 13, 17, 13, 18, 15931, 10, 12, ...
1.613861
101
""" Copyright 2013 Rackspace, 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 agreed to in writing, software...
[ 37811, 198, 15269, 2211, 37927, 13200, 11, 3457, 13, 198, 198, 26656, 15385, 739, 262, 24843, 13789, 11, 10628, 362, 13, 15, 357, 1169, 366, 34156, 15341, 198, 5832, 743, 407, 779, 428, 2393, 2845, 287, 11846, 351, 262, 13789, 13, 198...
1.989324
2,529
from datetime import date from django.core.cache import cache from django.db.models import Q, F from django.shortcuts import render from django.shortcuts import get_object_or_404 from django.views.generic import ListView, DetailView #from silk.profiling.profiler import silk_profile from config.models import SideBar f...
[ 6738, 4818, 8079, 1330, 3128, 198, 198, 6738, 42625, 14208, 13, 7295, 13, 23870, 1330, 12940, 198, 6738, 42625, 14208, 13, 9945, 13, 27530, 1330, 1195, 11, 376, 198, 6738, 42625, 14208, 13, 19509, 23779, 1330, 8543, 198, 6738, 42625, 14...
2.784404
436
# -*- coding: utf-8 -*- """ Created on Sat May 7 11:38:18 2016 @author: thomasbarillot VMI control """ from ctypes import cdll #slib="VMIcrtl_ext.dll" #hlib=cdll('VMIcrtl.dll') import VMIcrtl_ext test=VMIcrtl_ext.VMIcrtl() #%% print test.GetFilename() #%% test.setFilename('20161115_1841.dat') print test.GetFilen...
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 37811, 198, 41972, 319, 7031, 1737, 220, 767, 1367, 25, 2548, 25, 1507, 1584, 198, 198, 31, 9800, 25, 294, 16911, 5657, 359, 313, 198, 198, 53, 8895, 1630, 198, 37811,...
2.255474
274
# Copyright 2013-2020 Lawrence Livermore National Security, LLC and other # Spack Project Developers. See the top-level COPYRIGHT file for details. # # SPDX-License-Identifier: (Apache-2.0 OR MIT) import llnl.util.tty as tty from spack import * import spack.architecture import os
[ 2, 15069, 2211, 12, 42334, 13914, 45036, 3549, 2351, 4765, 11, 11419, 290, 584, 198, 2, 1338, 441, 4935, 34152, 13, 4091, 262, 1353, 12, 5715, 27975, 38162, 9947, 2393, 329, 3307, 13, 198, 2, 198, 2, 30628, 55, 12, 34156, 12, 33234,...
3.275862
87
# -*- coding: utf-8 -*- # Copyright (c) 2014, Vispy Development Team. # Distributed under the (new) BSD License. See LICENSE.txt for more info. # Adapted from PyQtGraph import sys from . import ptime from .. import config
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 2, 15069, 357, 66, 8, 1946, 11, 6911, 9078, 7712, 4816, 13, 198, 2, 4307, 6169, 739, 262, 357, 3605, 8, 347, 10305, 13789, 13, 4091, 38559, 24290, 13, 14116, 329, 51...
3.097222
72
from django.contrib.auth import get_user_model from djangosaml2idp.processors import BaseProcessor User = get_user_model()
[ 6738, 42625, 14208, 13, 3642, 822, 13, 18439, 1330, 651, 62, 7220, 62, 19849, 198, 6738, 42625, 648, 418, 43695, 17, 312, 79, 13, 14681, 669, 1330, 7308, 18709, 273, 198, 198, 12982, 796, 651, 62, 7220, 62, 19849, 3419, 628 ]
3.04878
41
if __name__ == '__main__': list = SingleLinkedList(); list.add(5) list.add(4) list.add(12) list.add(13) list.add(19) list.print_list(); print("List contains element 4", list.contains(4)) print("List contains element 6", list.contains(6)) print("Removing element 13", list.remov...
[ 628, 198, 361, 11593, 3672, 834, 6624, 705, 834, 12417, 834, 10354, 198, 220, 220, 220, 1351, 796, 14206, 11280, 276, 8053, 9783, 198, 220, 220, 220, 1351, 13, 2860, 7, 20, 8, 198, 220, 220, 220, 1351, 13, 2860, 7, 19, 8, 198, 2...
2.466667
165
__all__ = ["data_setup", "chart_params", "base_params"]
[ 834, 439, 834, 796, 14631, 7890, 62, 40406, 1600, 366, 40926, 62, 37266, 1600, 366, 8692, 62, 37266, 8973 ]
2.894737
19
from datetime import datetime from typing import Any, List, Optional, Union from pydantic import BaseModel, Field, HttpUrl, validator from pydantic.dataclasses import dataclass class Result(BaseModel): url_key: str = Field(alias="urlkey") timestamp: datetime url: str mime: str mime_detected: s...
[ 6738, 4818, 8079, 1330, 4818, 8079, 198, 6738, 19720, 1330, 4377, 11, 7343, 11, 32233, 11, 4479, 198, 198, 6738, 279, 5173, 5109, 1330, 7308, 17633, 11, 7663, 11, 367, 29281, 28165, 11, 4938, 1352, 198, 6738, 279, 5173, 5109, 13, 1960...
2.777251
211
"""Tools for managing OS errors. """ from __future__ import print_function from __future__ import unicode_literals import errno from contextlib import contextmanager import sys import platform from . import errors from six import reraise _WINDOWS_PLATFORM = platform.system() == 'Windows' # Stops linter complain...
[ 37811, 33637, 329, 11149, 7294, 8563, 13, 198, 37811, 198, 198, 6738, 11593, 37443, 834, 1330, 3601, 62, 8818, 198, 6738, 11593, 37443, 834, 1330, 28000, 1098, 62, 17201, 874, 198, 198, 11748, 11454, 3919, 198, 6738, 4732, 8019, 1330, 4...
3.685714
105
#!/usr/bin/python # Copyright (c) 2015, BROCADE COMMUNICATIONS SYSTEMS, INC # All rights reserved. # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are met: # 1. Redistributions of source code must retain the above copyright n...
[ 2, 48443, 14629, 14, 8800, 14, 29412, 198, 198, 2, 15069, 357, 66, 8, 1853, 11, 220, 11177, 4503, 19266, 48811, 2149, 18421, 36230, 50, 11, 19387, 198, 198, 2, 1439, 2489, 10395, 13, 198, 198, 2, 2297, 396, 3890, 290, 779, 287, 27...
3.442652
558
# @Author: Stijn Van Hulle <stijnvanhulle> # @Date: 2016-11-28T13:51:38+01:00 # @Email: me@stijnvanhulle.be # @Last modified by: stijnvanhulle # @Last modified time: 2016-12-20T12:51:07+01:00 # @License: stijnvanhulle.be #!/usr/bin/env python import time import datetime import math import sys import json impor...
[ 2, 2488, 13838, 25, 520, 48848, 6656, 367, 377, 293, 1279, 301, 48848, 10438, 71, 377, 293, 29, 198, 2, 2488, 10430, 25, 220, 220, 1584, 12, 1157, 12, 2078, 51, 1485, 25, 4349, 25, 2548, 10, 486, 25, 405, 198, 2, 2488, 15333, 25...
2.319829
469
import re import os from bs4 import BeautifulSoup from django.conf import settings from django.core.exceptions import ImproperlyConfigured from django.core.files import File from pages.models import Page, Image PEP_TEMPLATE = 'pages/pep-page.html' pep_url = lambda num: 'dev/peps/pep-{}/'.format(num) def check_pat...
[ 11748, 302, 198, 11748, 28686, 198, 198, 6738, 275, 82, 19, 1330, 23762, 50, 10486, 198, 198, 6738, 42625, 14208, 13, 10414, 1330, 6460, 198, 6738, 42625, 14208, 13, 7295, 13, 1069, 11755, 1330, 12205, 525, 306, 16934, 1522, 198, 6738, ...
2.201369
2,776
from .core import EqualityHashKey, unzip from .parallel import fold
[ 6738, 764, 7295, 1330, 31428, 26257, 9218, 11, 555, 13344, 198, 6738, 764, 1845, 29363, 1330, 5591, 198 ]
3.777778
18
from flask import Flask app = Flask(__name__, static_folder='static') from app import routes
[ 6738, 42903, 1330, 46947, 198, 198, 1324, 796, 46947, 7, 834, 3672, 834, 11, 9037, 62, 43551, 11639, 12708, 11537, 198, 198, 6738, 598, 1330, 11926, 198 ]
3.518519
27
import os import pysatl from pysatl import CAPDU if __name__ == "__main__": #check __repr__ expected = "pysatl.CAPDU.from_hexstr('00112233015502')" capdu=None exec("capdu="+expected) assert(expected==repr(capdu)) #check well formed inputs check("00112233", CAPDU(CLA=0x00, INS=0x11, P1=...
[ 11748, 28686, 198, 198, 11748, 279, 893, 25864, 198, 6738, 279, 893, 25864, 1330, 20176, 35, 52, 628, 198, 361, 11593, 3672, 834, 6624, 366, 834, 12417, 834, 1298, 628, 198, 220, 220, 220, 1303, 9122, 11593, 260, 1050, 834, 198, 220, ...
1.865125
519
#!/usr/bin/python from math import sin, cos, tan, atan, pi, acos, sqrt, exp, log10 import sys, os import copy import random import numpy as np import multiprocessing as mp import ConfigParser sys.path.append('./bin') import mGLS, mMGLS sys.path.append('./src') from EnvGlobals import Globals import mgls_io import mgls_m...
[ 2, 48443, 14629, 14, 8800, 14, 29412, 198, 6738, 10688, 1330, 7813, 11, 8615, 11, 25706, 11, 379, 272, 11, 31028, 11, 936, 418, 11, 19862, 17034, 11, 1033, 11, 2604, 940, 198, 11748, 25064, 11, 28686, 198, 11748, 4866, 198, 11748, 4...
2.285633
1,747
#! /usr/bin/env python3 """ constants.py - Contains all constants used by the device manager Author: - Pablo Caruana (pablo dot caruana at gmail dot com) Date: 12/3/2016 """ number_of_rows = 3 # total number rows of Index Servers number_of_links = 5 # number of links to be ...
[ 2, 0, 1220, 14629, 14, 8800, 14, 24330, 21015, 18, 198, 37811, 198, 220, 220, 220, 38491, 13, 9078, 532, 49850, 477, 38491, 973, 416, 262, 3335, 4706, 198, 220, 220, 220, 6434, 25, 198, 220, 220, 220, 220, 220, 220, 220, 532, 3318...
2.605263
190
import cv2 import numpy as np # This config is found by the author # modify if not the desired output XDoG_config = dict( size=0, sigma=0.6, eps=-15, phi=10e8, k=2.5, gamma=0.97 ) if __name__ == "__main__": gen_xdog_image('sample.jpg', 'dog.jpg')
[ 198, 11748, 269, 85, 17, 198, 11748, 299, 32152, 355, 45941, 198, 198, 2, 770, 4566, 318, 1043, 416, 262, 1772, 198, 2, 13096, 611, 407, 262, 10348, 5072, 198, 55, 5211, 38, 62, 11250, 796, 8633, 7, 198, 220, 220, 220, 2546, 28, ...
2.130769
130
# Original work Copyright 2018 The Google AI Language Team Authors. # Modified work Copyright 2019 Rowan Zellers # # 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/...
[ 2, 13745, 670, 15069, 2864, 383, 3012, 9552, 15417, 4816, 46665, 13, 198, 2, 40499, 670, 15069, 13130, 11314, 272, 1168, 695, 364, 198, 2, 198, 2, 49962, 739, 262, 24843, 13789, 11, 10628, 362, 13, 15, 357, 1169, 366, 34156, 15341, ...
3.020701
1,256
import logging import george import numpy as np from robo.priors.default_priors import DefaultPrior from robo.models.gaussian_process import GaussianProcess from robo.models.gaussian_process_mcmc import GaussianProcessMCMC from robo.maximizers.random_sampling import RandomSampling from robo.maximizers.scipy_optimizer ...
[ 11748, 18931, 198, 11748, 4903, 3643, 198, 11748, 299, 32152, 355, 45941, 198, 198, 6738, 686, 2127, 13, 3448, 669, 13, 12286, 62, 3448, 669, 1330, 15161, 22442, 198, 6738, 686, 2127, 13, 27530, 13, 4908, 31562, 62, 14681, 1330, 12822, ...
2.407143
2,100
# Generated by Django 3.1.13 on 2021-10-29 11:07 from django.db import migrations, models
[ 2, 2980, 515, 416, 37770, 513, 13, 16, 13, 1485, 319, 33448, 12, 940, 12, 1959, 1367, 25, 2998, 198, 198, 6738, 42625, 14208, 13, 9945, 1330, 15720, 602, 11, 4981, 628 ]
2.875
32
from app.api.utils.models_mixins import Base from app.extensions import db
[ 6738, 598, 13, 15042, 13, 26791, 13, 27530, 62, 19816, 1040, 1330, 7308, 198, 6738, 598, 13, 2302, 5736, 1330, 20613, 628 ]
3.454545
22
from enum import Enum
[ 6738, 33829, 1330, 2039, 388, 628, 628 ]
3.571429
7
import sys from com.bridgelabz.utility.Utility import Utility PowerOf2().start()
[ 11748, 25064, 198, 6738, 401, 13, 10236, 25280, 397, 89, 13, 315, 879, 13, 18274, 879, 1330, 34030, 198, 198, 13434, 5189, 17, 22446, 9688, 3419 ]
3.115385
26
# This program scraps data from job postings on the website workinstartups.com and appends it to an excel worksheet. import os from datetime import datetime, timedelta from selenium import webdriver from app import web_scraper from app import excel job_list, last_date = [], None file_path = os.path.abspath("main.py")...
[ 2, 770, 1430, 44496, 1366, 422, 1693, 44656, 319, 262, 3052, 670, 8625, 433, 4739, 13, 785, 290, 598, 2412, 340, 284, 281, 27336, 2499, 25473, 13, 198, 198, 11748, 28686, 198, 6738, 4818, 8079, 1330, 4818, 8079, 11, 28805, 12514, 198,...
2.848485
792
#!/usr/bin/python2 # # Copyright (c) 2012 The Native Client Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. # """ Some common boilerplates and helper functions for source code generation in files dgen_test_output.py and dgen_decode_out...
[ 2, 48443, 14629, 14, 8800, 14, 29412, 17, 198, 2, 198, 2, 15069, 357, 66, 8, 2321, 383, 12547, 20985, 46665, 13, 1439, 2489, 10395, 13, 198, 2, 5765, 286, 428, 2723, 2438, 318, 21825, 416, 257, 347, 10305, 12, 7635, 5964, 326, 460...
2.830035
859
""" Functions for loading input data. Author: Patrick Henriksen <patrick@henriksen.as> """ import os import numpy as np def load_img(path: str, img_nums: list, shape: tuple) -> np.array: """ Loads a image in the human-readable format. Args: path: The path to the to the folder with...
[ 198, 37811, 198, 24629, 2733, 329, 11046, 5128, 1366, 13, 198, 198, 13838, 25, 9925, 6752, 39370, 268, 1279, 29615, 31, 831, 39370, 268, 13, 292, 29, 198, 37811, 198, 198, 11748, 28686, 198, 198, 11748, 299, 32152, 355, 45941, 628, 19...
2.24843
1,115
# -*- coding: utf-8 -*- ################################################################################ ## Form generated from reading UI file 'splash_screen.ui' ## ## Created by: Qt User Interface Compiler version 5.15.1 ## ## WARNING! All changes made in this file will be lost when recompiling UI file! ############...
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 198, 29113, 29113, 14468, 198, 2235, 5178, 7560, 422, 3555, 12454, 2393, 705, 22018, 1077, 62, 9612, 13, 9019, 6, 198, 2235, 198, 2235, 15622, 416, 25, 33734, 11787, 264...
4.146552
116
# Definition for a binary tree node. # class TreeNode: # def __init__(self, x): # self.val = x # self.left = None # self.right = None class Solution: # @param {TreeNode} root # @param {integer} sum # @return {boolean} def hasPathSum(self, root, sum): if not root: ret...
[ 2, 30396, 329, 257, 13934, 5509, 10139, 13, 201, 2, 1398, 12200, 19667, 25, 201, 2, 220, 220, 220, 220, 825, 11593, 15003, 834, 7, 944, 11, 2124, 2599, 201, 2, 220, 220, 220, 220, 220, 220, 220, 220, 2116, 13, 2100, 796, 2124, 2...
2.058442
308
""" Collection of query wrappers / abstractions to both facilitate data retrieval and to reduce dependency on DB-specific API. """ from __future__ import print_function, division from datetime import datetime, date, timedelta import warnings import traceback import itertools import re import numpy as np import pandas...
[ 37811, 198, 36307, 286, 12405, 7917, 11799, 1220, 12531, 507, 284, 1111, 15570, 1366, 198, 1186, 380, 18206, 290, 284, 4646, 20203, 319, 20137, 12, 11423, 7824, 13, 198, 37811, 198, 6738, 11593, 37443, 834, 1330, 3601, 62, 8818, 11, 729...
2.621936
7,996
"""Meta is a module contains objects that will customize the behavior of python.""" from abc import ABC from abc import ABCMeta from abc import abstractmethod from typing import Any from typing import Callable import Systerm # Metaclass # Object class # List class # Dictionary class # Recreating ABC ABC = Metacla...
[ 37811, 48526, 318, 257, 8265, 4909, 5563, 326, 481, 24184, 262, 4069, 286, 21015, 526, 15931, 198, 6738, 450, 66, 1330, 9738, 198, 6738, 450, 66, 1330, 9738, 48526, 198, 6738, 450, 66, 1330, 12531, 24396, 198, 6738, 19720, 1330, 4377, ...
3.201439
417
# Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the Apache 2.0 License. import infra.e2e_args import infra.ccf import infra.jsonrpc import logging from time import gmtime, strftime import csv import random from loguru import logger as LOG if __name__ == "__main__": args = infra.e...
[ 2, 15069, 357, 66, 8, 5413, 10501, 13, 1439, 2489, 10395, 13, 198, 2, 49962, 739, 262, 24843, 362, 13, 15, 13789, 13, 198, 11748, 1167, 430, 13, 68, 17, 68, 62, 22046, 198, 11748, 1167, 430, 13, 535, 69, 198, 11748, 1167, 430, 1...
2.885135
148
import os import re import glob import logging import textwrap import fileinput import numpy as np from finmag.energies import Zeeman from finmag.util.helpers import norm log = logging.getLogger(name="finmag") def hysteresis(sim, H_ext_list, fun=None, **kwargs): """ Set the applied field to the first value i...
[ 11748, 28686, 198, 11748, 302, 198, 11748, 15095, 198, 11748, 18931, 198, 11748, 2420, 37150, 198, 11748, 2393, 15414, 198, 11748, 299, 32152, 355, 45941, 198, 6738, 957, 19726, 13, 877, 70, 444, 1330, 9033, 8463, 198, 6738, 957, 19726, ...
2.600317
1,894
from PyQt5 import QtCore, QtGui, QtWidgets from PyQt5 import QtGui, QtCore if __name__ == "__main__": import sys app = QtWidgets.QApplication(sys.argv) MainWindow = QtWidgets.QMainWindow() ui = Ui_MainWindow() ui.setupUi(MainWindow) MainWindow.show() sys.exit(app.exec_())
[ 201, 198, 201, 198, 6738, 9485, 48, 83, 20, 1330, 33734, 14055, 11, 33734, 8205, 72, 11, 33734, 54, 312, 11407, 201, 198, 6738, 9485, 48, 83, 20, 1330, 33734, 8205, 72, 11, 33734, 14055, 201, 198, 201, 198, 201, 198, 361, 11593, 3...
2.126667
150
# Generated by Django 3.0.2 on 2020-03-17 08:44 from django.db import migrations, models
[ 2, 2980, 515, 416, 37770, 513, 13, 15, 13, 17, 319, 12131, 12, 3070, 12, 1558, 8487, 25, 2598, 198, 198, 6738, 42625, 14208, 13, 9945, 1330, 15720, 602, 11, 4981, 628 ]
2.84375
32
# Copyright 2012 Google Inc. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or ...
[ 2, 15069, 2321, 3012, 3457, 13, 1439, 6923, 33876, 13, 198, 2, 198, 2, 49962, 739, 262, 24843, 13789, 11, 10628, 362, 13, 15, 357, 1169, 366, 34156, 15341, 198, 2, 345, 743, 407, 779, 428, 2393, 2845, 287, 11846, 351, 262, 13789, ...
3.77551
196
# Copyright (c) Microsoft Corporation # # All rights reserved. # # 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 rights...
[ 2, 15069, 357, 66, 8, 5413, 10501, 198, 2, 198, 2, 1439, 2489, 10395, 13, 198, 2, 198, 2, 17168, 13789, 198, 2, 198, 2, 2448, 3411, 318, 29376, 7520, 11, 1479, 286, 3877, 11, 284, 597, 1048, 16727, 257, 198, 2, 4866, 286, 428, ...
2.397504
6,732
# -*- coding: utf-8 -*- from __future__ import division, print_function, absolute_import import os import tensorflow as tf ''' gluoncv backbone + multi_gpu ''' # ------------------------------------------------ VERSION = 'Cascade_FPN_Res50_COCO_1x_20190421_v3' NET_NAME = 'resnet50_v1d' ADD_BOX_IN_TENSORBOARD = True ...
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 6738, 11593, 37443, 834, 1330, 7297, 11, 3601, 62, 8818, 11, 4112, 62, 11748, 198, 11748, 28686, 198, 11748, 11192, 273, 11125, 355, 48700, 198, 7061, 6, 198, 70, 2290, ...
2.281879
1,788
# # Copyright (2020) The Delta Lake Project 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, 198, 2, 15069, 357, 42334, 8, 383, 16978, 6233, 4935, 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, 11846, 351,...
3.366197
284
print("Enter the 1st matrix") first_matrix = matrix_form() print(first_matrix) print("Enter the 2nd matrix") sec_matrix = matrix_form() print(sec_matrix) check_matrix(first_matrix,sec_matrix)
[ 198, 198, 4798, 7203, 17469, 262, 352, 301, 17593, 4943, 198, 11085, 62, 6759, 8609, 796, 17593, 62, 687, 3419, 198, 4798, 7, 11085, 62, 6759, 8609, 8, 198, 4798, 7203, 17469, 262, 362, 358, 17593, 4943, 198, 2363, 62, 6759, 8609, 7...
2.71831
71
#!/home/ubuntu/miniconda2/bin/python from __future__ import division import sys import glob, os, gc import uuid import os.path import csv import numpy as np from time import time from subprocess import (call, Popen, PIPE) from itertools import product import shutil import re import pickle from boto3.session import Ses...
[ 2, 48443, 11195, 14, 32230, 14, 1084, 291, 13533, 17, 14, 8800, 14, 29412, 198, 198, 6738, 11593, 37443, 834, 1330, 7297, 198, 11748, 25064, 198, 11748, 15095, 11, 28686, 11, 308, 66, 198, 11748, 334, 27112, 198, 11748, 28686, 13, 697...
2.204893
1,308
import numpy as np from stumpff import C, S from CelestialBody import BODIES from numerical import newton, laguerre from lagrange import calc_f, calc_fd, calc_g, calc_gd def kepler_chi(chi, alpha, r0, vr0, mu, dt): ''' Kepler's Equation of the universal anomaly, modified for use in numerical solvers. ''' ...
[ 11748, 299, 32152, 355, 45941, 198, 6738, 42497, 487, 1330, 327, 11, 311, 198, 6738, 37231, 25842, 1330, 347, 3727, 11015, 198, 6738, 29052, 1330, 649, 1122, 11, 300, 11433, 263, 260, 198, 6738, 19470, 9521, 1330, 42302, 62, 69, 11, 4...
2.358087
2,195
description = 'PGAA setup with XYZOmega sample table' group = 'basic' sysconfig = dict( datasinks = ['mcasink', 'chnsink', 'csvsink', 'livesink'] ) includes = [ 'system', 'reactor', 'nl4b', 'pressure', 'sampletable', 'pilz', 'detector', 'collimation', ] devices = dict( mcasin...
[ 11213, 796, 705, 6968, 3838, 9058, 351, 41420, 57, 46, 13731, 6291, 3084, 6, 198, 198, 8094, 796, 705, 35487, 6, 198, 198, 17597, 11250, 796, 8633, 7, 198, 220, 220, 220, 19395, 2973, 796, 37250, 23209, 292, 676, 3256, 705, 1349, 82...
2.492147
382
# Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. The ASF licenses this file # to you under the Apache License, Version 2.0 (the # "License"); you may not u...
[ 2, 49962, 284, 262, 24843, 10442, 5693, 357, 1921, 37, 8, 739, 530, 198, 2, 393, 517, 18920, 5964, 11704, 13, 220, 4091, 262, 28536, 2393, 198, 2, 9387, 351, 428, 670, 329, 3224, 1321, 198, 2, 5115, 6634, 9238, 13, 220, 383, 7054,...
2.683844
718
# Copyright 2021 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...
[ 2, 15069, 33448, 383, 309, 22854, 37535, 46665, 13, 1439, 6923, 33876, 13, 201, 198, 2, 201, 198, 2, 49962, 739, 262, 24843, 13789, 11, 10628, 362, 13, 15, 357, 1169, 366, 34156, 15341, 201, 198, 2, 345, 743, 407, 779, 428, 2393, ...
3.390438
251
from .form7_search import Form7Search from .parse_form7 import Form7Parsing
[ 6738, 764, 687, 22, 62, 12947, 1330, 5178, 22, 18243, 198, 6738, 764, 29572, 62, 687, 22, 1330, 5178, 22, 47, 945, 278, 198 ]
3.166667
24
# Copyright 2020 Soil, Inc. from soil.openstack.base import DataBase from soil.openstack.base import SourceBase
[ 2, 15069, 12131, 1406, 346, 11, 3457, 13, 198, 198, 6738, 9260, 13, 9654, 25558, 13, 8692, 1330, 6060, 14881, 198, 6738, 9260, 13, 9654, 25558, 13, 8692, 1330, 8090, 14881, 628, 220, 220, 220, 220, 198 ]
3.216216
37
# -*- coding: utf-8 -*- # Thanks to @skelsec for his awesome tool Pypykatz # Checks his project here: https://github.com/skelsec/pypykatz import codecs import traceback from lazagne.config.module_info import ModuleInfo from lazagne.config.constant import constant from pypykatz.pypykatz import pypykatz
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 201, 198, 201, 198, 2, 6930, 284, 2488, 82, 7750, 2363, 329, 465, 7427, 2891, 350, 4464, 48361, 27906, 201, 198, 2, 47719, 465, 1628, 994, 25, 3740, 1378, 12567, 13, 785, ...
2.773913
115
# -*- coding: utf-8 -*- # This file is part of beets. # Copyright 2016, Adrian Sampson. # # 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 t...
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 2, 770, 2393, 318, 636, 286, 307, 1039, 13, 198, 2, 15069, 1584, 11, 21462, 42168, 1559, 13, 198, 2, 198, 2, 2448, 3411, 318, 29376, 7520, 11, 1479, 286, 3877, 11, ...
3.807692
260
"""Queue represented by a pseudo stack (represented by a list with pop and append)"""
[ 37811, 34991, 7997, 416, 257, 24543, 8931, 357, 33469, 416, 257, 1351, 351, 1461, 290, 24443, 8, 37811, 628 ]
4.578947
19
#! /usr/bin/env python # coding: utf-8 import configparser import numpy as np import re,sys,os from graph import MyGraph from collections import OrderedDict def unique_config_sections(config_file): """Convert all config sections to have unique names. Adds unique suffixes to config sections for compability wi...
[ 2, 0, 1220, 14629, 14, 8800, 14, 24330, 21015, 198, 2, 19617, 25, 3384, 69, 12, 23, 198, 198, 11748, 4566, 48610, 198, 11748, 299, 32152, 355, 45941, 198, 11748, 302, 11, 17597, 11, 418, 198, 6738, 4823, 1330, 2011, 37065, 198, 6738...
2.472727
550
from django.contrib.auth.models import Permission, User from django.db import models
[ 6738, 42625, 14208, 13, 3642, 822, 13, 18439, 13, 27530, 1330, 2448, 3411, 11, 11787, 198, 6738, 42625, 14208, 13, 9945, 1330, 4981, 198 ]
3.541667
24
import datetime import calendar import requests import pandas as pd import json import os.path import time import MySQLdb as M from gdax_history import timestamp_to_utcstr if __name__ == "__main__": main()
[ 11748, 4818, 8079, 198, 11748, 11845, 198, 11748, 7007, 198, 11748, 19798, 292, 355, 279, 67, 198, 11748, 33918, 198, 11748, 28686, 13, 6978, 198, 11748, 640, 198, 11748, 33476, 9945, 355, 337, 198, 198, 6738, 308, 67, 897, 62, 23569, ...
2.972973
74
"""Configures a Kafka Connector for Postgres Station data""" import json import logging import requests from settings import Settings logger = logging.getLogger(__name__) KAFKA_CONNECT_URL = f"{Settings.URLs.KAFKA_CONNECT_URL}/connectors" CONNECTOR_NAME = "stations" def configure_connector(): """Starts and co...
[ 37811, 16934, 942, 257, 46906, 8113, 273, 329, 2947, 34239, 9327, 1366, 37811, 198, 11748, 33918, 198, 11748, 18931, 198, 198, 11748, 7007, 198, 6738, 6460, 1330, 16163, 198, 198, 6404, 1362, 796, 18931, 13, 1136, 11187, 1362, 7, 834, 3...
2.69587
799
import io import logging import json import numpy import torch import numpy as np from tqdm import tqdm from clie.inputters import constant from clie.objects import Sentence from torch.utils.data import Dataset from torch.utils.data.sampler import Sampler logger = logging.getLogger(__name__) # ---------------------...
[ 11748, 33245, 198, 11748, 18931, 198, 11748, 33918, 198, 11748, 299, 32152, 198, 11748, 28034, 198, 11748, 299, 32152, 355, 45941, 198, 6738, 256, 80, 36020, 1330, 256, 80, 36020, 198, 6738, 537, 494, 13, 15414, 1010, 1330, 6937, 198, 6...
2.257171
2,022
from distutils.extension import Extension cmdclass = {} try: # with Cython from Cython.Build import build_ext cmdclass["build_ext"] = build_ext module_src = "cgranges/python/cgranges.pyx" except ImportError: # without Cython module_src = "cgranges/python/cgranges.c" def build(setup_kwargs): ...
[ 6738, 1233, 26791, 13, 2302, 3004, 1330, 27995, 628, 198, 28758, 4871, 796, 23884, 198, 198, 28311, 25, 198, 220, 220, 220, 1303, 351, 327, 7535, 198, 220, 220, 220, 422, 327, 7535, 13, 15580, 1330, 1382, 62, 2302, 198, 220, 220, 22...
1.817097
503
# -*- coding: utf-8 -*- from .compSpot import *
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 6738, 764, 5589, 32565, 1330, 1635, 198 ]
2.285714
21
# pylint: disable=line-too-long,too-many-lines,missing-docstring """Kinetics400 action classification dataset.""" import os import random import numpy as np from mxnet import nd from mxnet.gluon.data import dataset __all__ = ['Kinetics400']
[ 2, 279, 2645, 600, 25, 15560, 28, 1370, 12, 18820, 12, 6511, 11, 18820, 12, 21834, 12, 6615, 11, 45688, 12, 15390, 8841, 198, 37811, 49681, 14596, 7029, 2223, 17923, 27039, 526, 15931, 198, 11748, 28686, 198, 11748, 4738, 198, 11748, ...
3.102564
78
# Copyright 2016-present CERN European Organization for Nuclear Research # # 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, 220, 220, 220, 220, 15069, 1584, 12, 25579, 327, 28778, 220, 3427, 12275, 329, 19229, 4992, 198, 2, 198, 2, 220, 220, 220, 220, 49962, 739, 262, 24843, 13789, 11, 10628, 362, 13, 15, 357, 1169, 366, 34156, 15341, 198, 2, 220, 2...
3.349794
243
# -*- encoding: utf-8 -*- # Copyright 2013 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 re...
[ 2, 532, 9, 12, 21004, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 2, 15069, 2211, 2297, 10983, 11, 3457, 13, 198, 2, 1439, 6923, 33876, 13, 198, 2, 198, 2, 49962, 739, 262, 24843, 13789, 11, 10628, 362, 13, 15, 357, 1169, 366, 3415...
3.465649
1,048
from flask import * albums = Blueprint('albums', __name__, template_folder='templates')
[ 6738, 42903, 1330, 1635, 198, 198, 40916, 82, 796, 39932, 10786, 40916, 82, 3256, 11593, 3672, 834, 11, 11055, 62, 43551, 11639, 11498, 17041, 11537, 198 ]
3.423077
26
from django.contrib import messages from django.contrib.auth.mixins import LoginRequiredMixin from django.shortcuts import redirect, render from django.urls import reverse from django.views.generic import DetailView, ListView from django.views.generic.edit import CreateView, UpdateView from dfirtrack_main.forms import ...
[ 6738, 42625, 14208, 13, 3642, 822, 1330, 6218, 198, 6738, 42625, 14208, 13, 3642, 822, 13, 18439, 13, 19816, 1040, 1330, 23093, 37374, 35608, 259, 198, 6738, 42625, 14208, 13, 19509, 23779, 1330, 18941, 11, 8543, 198, 6738, 42625, 14208, ...
3.680672
119
# coding: UTF-8 import time import torch import numpy as np from train_eval import train, init_network from importlib import import_module import argparse parser = argparse.ArgumentParser(description='Chinese Text Classification') parser.add_argument('--model', type=str, required=True, help='choose a model: TextCNN') ...
[ 2, 19617, 25, 41002, 12, 23, 198, 11748, 640, 198, 11748, 28034, 198, 11748, 299, 32152, 355, 45941, 198, 6738, 4512, 62, 18206, 1330, 4512, 11, 2315, 62, 27349, 198, 6738, 1330, 8019, 1330, 1330, 62, 21412, 198, 11748, 1822, 29572, 1...
2.733677
582
import pytest from django.conf import settings from django.core import mail as djmail from django.core.files.uploadedfile import SimpleUploadedFile from django.urls import reverse from django_scopes import scope from rest_framework.authtoken.models import Token from pretalx.submission.models import SubmissionStates ...
[ 11748, 12972, 9288, 198, 6738, 42625, 14208, 13, 10414, 1330, 6460, 198, 6738, 42625, 14208, 13, 7295, 1330, 6920, 355, 42625, 4529, 198, 6738, 42625, 14208, 13, 7295, 13, 16624, 13, 25850, 276, 7753, 1330, 17427, 41592, 276, 8979, 198, ...
3.49505
101
# MIT License # Copyright (c) 2021 Vasily Denisenko, Sergey Kuznetsov # 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 # t...
[ 2, 17168, 13789, 201, 198, 201, 198, 2, 15069, 357, 66, 8, 33448, 23663, 813, 5601, 13254, 7204, 11, 36106, 509, 10277, 3262, 47272, 201, 198, 201, 198, 2, 2448, 3411, 318, 29376, 7520, 11, 1479, 286, 3877, 11, 284, 597, 1048, 16727...
2.704274
585
import fix_path import json import datetime from google.appengine.ext import ndb # Taken from http://stackoverflow.com/questions/455580/json-datetime-between-python-and-javascript dthandler = lambda obj: ( obj.isoformat() if isinstance(obj, datetime.datetime) or isinstance(obj, datetime.date) else Non...
[ 11748, 4259, 62, 6978, 198, 11748, 33918, 198, 11748, 4818, 8079, 198, 198, 6738, 23645, 13, 1324, 18392, 13, 2302, 1330, 299, 9945, 198, 198, 2, 30222, 422, 2638, 1378, 25558, 2502, 11125, 13, 785, 14, 6138, 507, 14, 2231, 2816, 1795...
2.858407
113
#!/usr/bin/python3 # -*- coding: UTF-8 -*- import time busyTime = 10 idleTime = busyTime while True: start = time.clock() while time.clock() - start < busyTime: pass time.sleep(busyTime / 1000)
[ 2, 48443, 14629, 14, 8800, 14, 29412, 18, 198, 2, 532, 9, 12, 19617, 25, 41002, 12, 23, 532, 9, 12, 198, 198, 11748, 640, 198, 198, 10885, 88, 7575, 796, 838, 198, 312, 293, 7575, 796, 8179, 7575, 198, 198, 4514, 6407, 25, 628, ...
2.344086
93
""" Module for working with named and anonymous maps .. module:: carto.maps :platform: Unix, Windows :synopsis: Module for working with named and anonymous maps .. moduleauthor:: Daniel Carrion <daniel@carto.com> .. moduleauthor:: Alberto Romeu <alrocar@carto.com> """ try: from urllib.parse import urljoi...
[ 37811, 198, 26796, 329, 1762, 351, 3706, 290, 11614, 8739, 198, 198, 492, 8265, 3712, 6383, 78, 13, 31803, 198, 220, 220, 1058, 24254, 25, 33501, 11, 3964, 198, 220, 220, 1058, 28869, 24608, 25, 19937, 329, 1762, 351, 3706, 290, 11614...
3.02451
204
from kv_client.kv_client import KVClient if __name__ == "__main__": main()
[ 6738, 479, 85, 62, 16366, 13, 74, 85, 62, 16366, 1330, 509, 53, 11792, 198, 198, 361, 11593, 3672, 834, 6624, 366, 834, 12417, 834, 1298, 198, 220, 220, 220, 1388, 3419 ]
2.46875
32
import operator_benchmark as op_bench import torch import numpy from . import configs """EmbeddingBag Operator Benchmark""" op_bench.generate_pt_test(configs.embeddingbag_short_configs, EmbeddingBagBenchmark) op_bench.generate_pt_gradient_test(configs.embeddingbag_short_configs, EmbeddingBagBenchmark) if __name__ =...
[ 11748, 10088, 62, 26968, 4102, 355, 1034, 62, 26968, 198, 11748, 28034, 198, 11748, 299, 32152, 198, 6738, 764, 1330, 4566, 82, 198, 198, 37811, 31567, 6048, 278, 33, 363, 35946, 25187, 4102, 37811, 198, 198, 404, 62, 26968, 13, 8612, ...
2.875969
129
"""Python interfaces to DGL farthest point sampler.""" from dgl._ffi.base import DGLError import numpy as np from .._ffi.function import _init_api from .. import backend as F from .. import ndarray as nd def _farthest_point_sampler(data, batch_size, sample_points, dist, start_idx, result): r"""Farthest Point Samp...
[ 37811, 37906, 20314, 284, 360, 8763, 15189, 3634, 966, 6072, 20053, 526, 15931, 198, 6738, 288, 4743, 13557, 487, 72, 13, 8692, 1330, 46133, 2538, 81, 1472, 198, 11748, 299, 32152, 355, 45941, 198, 6738, 11485, 62, 487, 72, 13, 8818, ...
2.505994
1,585
import shutil import hashlib from pathlib import Path from typing import TextIO, BinaryIO, IO, Union from datetime import datetime from os.path import getmtime from .low import ObservableDict def rename(self, new_name: str): shutil.move(str(self.path), str(self.__parent__.path / new_name)) self.__...
[ 11748, 4423, 346, 198, 11748, 12234, 8019, 198, 6738, 3108, 8019, 1330, 10644, 198, 6738, 19720, 1330, 8255, 9399, 11, 45755, 9399, 11, 24418, 11, 4479, 198, 6738, 4818, 8079, 1330, 4818, 8079, 198, 6738, 28686, 13, 6978, 1330, 651, 76,...
2.137685
2,099
# 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.110682
1,554
import requests headers = { 'content-type': 'application/json', 'Authorization': 'Token 80ca9f249b80e7226cdc7fcaada8d7297352f0f9' } url_base_cursos = 'http://127.0.0.1:8000/api/v2/cursos' url_base_avaliacoes = 'http://127.0.0.1:8000/api/v2/avaliacoes' resultado = requests.get(url=url_base_cursos, headers=hea...
[ 11748, 7007, 198, 198, 50145, 796, 1391, 198, 220, 220, 220, 705, 11299, 12, 4906, 10354, 705, 31438, 14, 17752, 3256, 198, 220, 220, 220, 705, 13838, 1634, 10354, 705, 30642, 4019, 6888, 24, 69, 21626, 65, 1795, 68, 22, 24909, 10210,...
2.291139
158
# Copyright 2021 VMware, Inc. import argparse import json import re import logging import os import sys from avi.sdk.avi_api import ApiSession API_VERSION = "18.2.13" SYSTEM_WAF_POLICY_VDI='System-WAF-Policy-VDI' logger = logging.getLogger(__name__) if __name__ == '__main__': parser = argparse.ArgumentParser(...
[ 2, 15069, 33448, 37754, 11, 3457, 13, 198, 198, 11748, 1822, 29572, 198, 11748, 33918, 198, 11748, 302, 198, 11748, 18931, 198, 11748, 28686, 198, 11748, 25064, 198, 198, 6738, 1196, 72, 13, 21282, 74, 13, 15820, 62, 15042, 1330, 5949, ...
2.312046
689
# -*- coding: utf-8 -*- """ TencentBlueKing is pleased to support the open source community by making -(Bk-User) available. Copyright (C) 2017-2021 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 with the License. Yo...
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 37811, 198, 24893, 1087, 14573, 15708, 318, 10607, 284, 1104, 262, 1280, 2723, 2055, 416, 1642, 532, 7, 33, 74, 12, 12982, 8, 1695, 13, 198, 15269, 357, 34, 8, 2177, ...
3.454277
339
# from votesim.benchmarks.benchrunner import ( # run_benchmark, # get_benchmarks, # post_benchmark, # plot_benchmark, # ) from votesim.benchmarks import runtools, simple
[ 2, 422, 5690, 320, 13, 26968, 14306, 13, 26968, 16737, 1330, 357, 198, 2, 220, 220, 220, 220, 1057, 62, 26968, 4102, 11, 198, 2, 220, 220, 220, 220, 651, 62, 26968, 14306, 11, 198, 2, 220, 220, 220, 220, 1281, 62, 26968, 4102, 1...
2.5
76
import boto3 import src.app as app import csv import psycopg2 as ps import os from dotenv import load_dotenv load_dotenv() dbname = os.environ["db"] host = os.environ["host"] port = os.environ["port"] user = os.environ["user"] password = os.environ["pass"] connection = ps.connect(dbname=dbname, ...
[ 11748, 275, 2069, 18, 198, 11748, 12351, 13, 1324, 355, 598, 198, 11748, 269, 21370, 198, 11748, 17331, 22163, 70, 17, 355, 26692, 198, 11748, 28686, 198, 6738, 16605, 24330, 1330, 3440, 62, 26518, 24330, 628, 198, 2220, 62, 26518, 2433...
1.953782
238
# -*- coding: utf-8 -*- # ----------------------------------------------------------------------------- # (C) British Crown Copyright 2017-2021 Met Office. # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions a...
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 2, 16529, 32501, 198, 2, 357, 34, 8, 3517, 12223, 15069, 2177, 12, 1238, 2481, 3395, 4452, 13, 198, 2, 1439, 2489, 10395, 13, 198, 2, 198, 2, 2297, 396, 3890, 290, ...
3.188615
1,177
from .db_conn import ModelSetup
[ 6738, 764, 9945, 62, 37043, 1330, 9104, 40786, 628 ]
3.666667
9
from docutils.parsers.rst.roles import register_canonical_role, set_classes from docutils.parsers.rst import directives from docutils import nodes from sphinx.writers.html import HTMLTranslator from sphinx.errors import ExtensionError import os import re
[ 6738, 2205, 26791, 13, 79, 945, 364, 13, 81, 301, 13, 305, 829, 1330, 7881, 62, 49883, 605, 62, 18090, 11, 900, 62, 37724, 198, 6738, 2205, 26791, 13, 79, 945, 364, 13, 81, 301, 1330, 34819, 198, 6738, 2205, 26791, 1330, 13760, 19...
3.434211
76
# Copyright 2014 varnishapi 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 time from feaas import storage
[ 2, 15069, 1946, 1401, 77, 680, 15042, 7035, 13, 1439, 2489, 10395, 13, 198, 2, 5765, 286, 428, 2723, 2438, 318, 21825, 416, 257, 347, 10305, 12, 7635, 198, 2, 5964, 326, 460, 307, 1043, 287, 262, 38559, 24290, 2393, 13, 198, 198, ...
3.722222
54
# Copyright 2014 Open Source Robotics Foundation, 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...
[ 2, 15069, 1946, 4946, 8090, 47061, 5693, 11, 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, 287, 11846, 351, 262, 13789, ...
3.870968
186
# PLAYER
[ 2, 28180, 1137, 198, 220, 220, 220, 220, 220, 220, 220, 220, 198 ]
1.384615
13
# Copyright 2022 ConvolutedDog (https://github.com/ConvolutedDog/) # # 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, 220, 15069, 33160, 1482, 10396, 7241, 32942, 357, 5450, 1378, 12567, 13, 785, 14, 3103, 10396, 7241, 32942, 34729, 201, 198, 2, 201, 198, 2, 220, 49962, 739, 262, 24843, 13789, 11, 10628, 362, 13, 15, 357, 1169, 366, 34156, 15341, ...
2.241307
3,796
import torch
[ 11748, 28034, 628, 198 ]
3.75
4
import cv2 import torch import yaml import imageio import throttle import numpy as np import matplotlib.pyplot as plt from argparse import ArgumentParser from skimage.transform import resize from scipy.spatial import ConvexHull from modules.generator import OcclusionAwareGenerator from modules.keypoint_detector import...
[ 11748, 269, 85, 17, 198, 11748, 28034, 198, 11748, 331, 43695, 198, 11748, 2939, 952, 198, 11748, 29976, 198, 11748, 299, 32152, 355, 45941, 198, 11748, 2603, 29487, 8019, 13, 9078, 29487, 355, 458, 83, 198, 198, 6738, 1822, 29572, 1330...
2.451886
1,299
from __future__ import absolute_import, division, print_function from .controlPDEProblem import ControlPDEProblem from .controlPDEProblemMultiPDE import ControlPDEProblemMultiPDE from .costFunctionalConstant import CostFunctionalConstant from .costFunctionalConstantMultiPDE import CostFunctionalConstantMultiPDE from ....
[ 6738, 11593, 37443, 834, 1330, 4112, 62, 11748, 11, 7297, 11, 3601, 62, 8818, 198, 198, 6738, 764, 13716, 5760, 36, 40781, 1330, 6779, 5760, 36, 40781, 198, 6738, 764, 13716, 5760, 36, 40781, 29800, 5760, 36, 1330, 6779, 5760, 36, 407...
3.739224
464
import numpy as np from albumentations import (Compose, HorizontalFlip, VerticalFlip, Rotate, RandomRotate90, ShiftScaleRotate, ElasticTransform, GridDistortion, RandomSizedCrop, RandomCrop, CenterCrop, RandomBrightnessContrast, HueSatu...
[ 11748, 299, 32152, 355, 45941, 198, 6738, 435, 65, 1713, 602, 1330, 357, 7293, 577, 11, 6075, 38342, 7414, 541, 11, 38937, 7414, 541, 11, 18481, 378, 11, 14534, 24864, 378, 3829, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220,...
2.051852
405
# -*- coding: utf-8 -*- from math import sqrt def __eq__(self, other): """Equal cuboids have same properties.""" if not isinstance(other, self.__class__): return False return (self.width == other.width and self.height == other.height and s...
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 198, 6738, 10688, 1330, 19862, 17034, 628, 628, 628, 628, 220, 220, 220, 825, 11593, 27363, 834, 7, 944, 11, 584, 2599, 198, 220, 220, 220, 220, 220, 220, 220, 37227, ...
2.080693
3,346
from django.contrib.auth import get_user_model from django.test import TestCase from django.urls import reverse from rest_framework import status from rest_framework.test import APIClient # use that for making our API requests from core.models import Recipe, Tag, Ingredient from ..serializers import RecipeSerializer...
[ 6738, 42625, 14208, 13, 3642, 822, 13, 18439, 1330, 651, 62, 7220, 62, 19849, 198, 6738, 42625, 14208, 13, 9288, 1330, 6208, 20448, 198, 6738, 42625, 14208, 13, 6371, 82, 1330, 9575, 198, 198, 6738, 1334, 62, 30604, 1330, 3722, 198, 6...
3.423989
717
# Assignment 1 Day 8 # write a decorator function for taking input for you # any kind of function you want to build addition() subtraction() multiplication() division() # Assignment 2 day 8 # you need to develop a python program to open a file in read only mode and # try writing something to it an...
[ 2, 50144, 352, 3596, 807, 201, 198, 201, 198, 2, 3551, 257, 11705, 1352, 2163, 329, 2263, 5128, 329, 345, 220, 201, 198, 2, 597, 1611, 286, 2163, 345, 765, 284, 1382, 201, 198, 201, 198, 2860, 653, 3419, 201, 198, 7266, 83, 7861, ...
2.948571
175
# Licensed under a 3-clause BSD style license - see LICENSE.rst """ Defines coordinate frames and ties them to data axes. """ from __future__ import absolute_import, division, unicode_literals, print_function import numpy as np from astropy import units as u from astropy import utils as astutil from astropy import coo...
[ 2, 49962, 739, 257, 513, 12, 565, 682, 347, 10305, 3918, 5964, 532, 766, 38559, 24290, 13, 81, 301, 198, 37811, 198, 7469, 1127, 20435, 13431, 290, 8470, 606, 284, 1366, 34197, 13, 198, 37811, 198, 6738, 11593, 37443, 834, 1330, 4112,...
2.628128
1,159
import lx import modo import select import item from run import run
[ 198, 198, 11748, 300, 87, 198, 11748, 953, 78, 198, 198, 11748, 2922, 198, 11748, 2378, 198, 6738, 1057, 1330, 1057, 628, 198 ]
3.173913
23
from brownie import FundMe from scripts.helpful_scripts import get_account if __name__ == "__main__": main()
[ 6738, 7586, 494, 1330, 7557, 5308, 198, 6738, 14750, 13, 16794, 913, 62, 46521, 1330, 651, 62, 23317, 628, 628, 198, 198, 361, 11593, 3672, 834, 6624, 366, 834, 12417, 834, 1298, 198, 220, 220, 220, 1388, 3419, 198 ]
3.025641
39
# Um professor quer sortear um dos seus quatro alunos para apagar o quadro. Faa um programa que ajude ele, lendo o nome dos alunos e escrevendo na tela o nome do escolhido. from random import choice nome1 = input('Digite um nome: ') nome2 = input('Digite outro nome: ') nome3 = input('Digite mais um nome: ') nome4 = i...
[ 2, 21039, 6240, 42517, 3297, 451, 23781, 23430, 384, 385, 627, 47756, 435, 403, 418, 31215, 2471, 32452, 267, 15094, 305, 13, 376, 7252, 23781, 1430, 64, 8358, 257, 73, 2507, 9766, 11, 22096, 78, 267, 299, 462, 23430, 435, 403, 418, ...
2.512346
162
from django.contrib import admin from .models import Categoria, Contact admin.site.register(Categoria) admin.site.register(Contact, ContactAdmin)
[ 6738, 42625, 14208, 13, 3642, 822, 1330, 13169, 198, 6738, 764, 27530, 1330, 327, 2397, 7661, 11, 14039, 628, 198, 198, 28482, 13, 15654, 13, 30238, 7, 34, 2397, 7661, 8, 198, 28482, 13, 15654, 13, 30238, 7, 17829, 11, 14039, 46787, ...
3.386364
44