content
stringlengths
1
1.05M
input_ids
listlengths
1
883k
ratio_char_token
float64
1
22.9
token_count
int64
1
883k
import ntpath # https://stackoverflow.com/questions/8384737/extract-file-name-from-path-no-matter-what-the-os-path-format # cuz windows sucks :( .. hard
[ 11748, 299, 83, 6978, 198, 198, 2, 3740, 1378, 25558, 2502, 11125, 13, 785, 14, 6138, 507, 14, 23, 2548, 2857, 2718, 14, 2302, 974, 12, 7753, 12, 3672, 12, 6738, 12, 6978, 12, 3919, 12, 47635, 12, 10919, 12, 1169, 12, 418, 12, 6...
2.701754
57
# AUTHOR: Louis Tsiattalou # DESCRIPTION: Init for tfidf_matcher package. from .ngrams import ngrams from .matcher import matcher
[ 2, 44746, 25, 5593, 13146, 72, 1078, 282, 280, 198, 2, 22196, 40165, 25, 44707, 329, 48700, 312, 69, 62, 6759, 2044, 5301, 13, 198, 198, 6738, 764, 782, 9474, 1330, 299, 4546, 82, 198, 6738, 764, 6759, 2044, 1330, 2603, 2044, 198 ]
3.046512
43
from typing import final import numpy as np import torch import os import time from datetime import datetime import random import numbers from torch.utils.data import Dataset from .ERA5Reader.readNetCDF import LatTokmPerLon from .EraExtractors import DefaultEraExtractor # Dataset Class
[ 6738, 19720, 1330, 2457, 198, 11748, 299, 32152, 355, 45941, 198, 11748, 28034, 198, 11748, 28686, 198, 11748, 640, 198, 6738, 4818, 8079, 1330, 4818, 8079, 198, 198, 11748, 4738, 198, 11748, 3146, 198, 198, 6738, 28034, 13, 26791, 13, ...
3.122449
98
#!/usr/bin/env python # # Jiao Lin <jiao.lin@gmail.com """ This test check the "orientation" parameter of kernels. * Sub-kernels in a "KernelContainer" have the parameter "orientation" to specify its orientation relative to its parent kernel. * The root level KernelContainer always has the same coordinate system ...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 198, 2, 198, 2, 449, 13481, 5164, 1279, 73, 13481, 13, 2815, 31, 14816, 13, 785, 198, 198, 37811, 198, 1212, 1332, 2198, 262, 366, 13989, 341, 1, 11507, 286, 50207, 13, 198, 198, 9, 383...
2.731061
528
#!/usr/bin/env python3 # encoding: utf-8 # # Copyright (c) 2019 SAP SE or an SAP affiliate company. All rights reserved. # # This file is part of ewm-cloud-robotics # (see https://github.com/SAP/ewm-cloud-robotics). # # This file is licensed under the Apache Software License, v. 2 except as noted # otherwise in the LIC...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 18, 198, 2, 21004, 25, 3384, 69, 12, 23, 198, 2, 198, 2, 15069, 357, 66, 8, 13130, 48323, 7946, 393, 281, 48323, 17375, 1664, 13, 1439, 2489, 10395, 13, 198, 2, 198, 2, 770, 2393, 318...
3.140957
376
from enum import Enum
[ 6738, 33829, 1330, 2039, 388, 198 ]
3.666667
6
from .abstract_query import AbstractQuery
[ 6738, 764, 397, 8709, 62, 22766, 1330, 27741, 20746, 628 ]
4.3
10
#gmtime() returns the current time in UTC #localtime() returns the current time with the current time zone #struct_time converts to f.p representation import time print('gmtime:') show_struct(time.gmtime()) print('\nlocaltime') show_struct(time.localtime()) print('\nmktime:', time.mktime(time.localtime()))
[ 2, 39870, 2435, 3419, 5860, 262, 1459, 640, 287, 18119, 198, 2, 12001, 2435, 3419, 5860, 262, 1459, 640, 351, 262, 1459, 640, 6516, 198, 2, 7249, 62, 2435, 26161, 284, 277, 13, 79, 10552, 198, 11748, 640, 198, 198, 4798, 10786, 3987...
3.276596
94
import os, sys import numpy as np from osgeo import ogr from pyflowline.classes.tin import pytin from pyflowline.formats.convert_coordinates import convert_pcs_coordinates_to_cell
[ 11748, 28686, 11, 25064, 198, 198, 11748, 299, 32152, 355, 45941, 628, 198, 6738, 28686, 469, 78, 1330, 267, 2164, 198, 6738, 12972, 11125, 1370, 13, 37724, 13, 43701, 1330, 12972, 43701, 198, 198, 6738, 12972, 11125, 1370, 13, 687, 138...
3.066667
60
c1 = Coordinate(3, 4) c2 = Coordinate(4, 3) print c1,c2 print c1==c2
[ 198, 198, 66, 16, 796, 22819, 4559, 7, 18, 11, 604, 8, 198, 66, 17, 796, 22819, 4559, 7, 19, 11, 513, 8, 198, 4798, 269, 16, 11, 66, 17, 198, 4798, 269, 16, 855, 66, 17, 198 ]
1.868421
38
# https://leetcode.com/problems/delete-node-in-a-bst/ # # algorithms # Medium (38.78%) # Total Accepted: 52,907 # Total Submissions: 136,417 # beats 93.27% of python submissions # Definition for a binary tree node. # class TreeNode(object): # def __init__(self, x): # self.val = x # self.left = ...
[ 2, 3740, 1378, 293, 316, 8189, 13, 785, 14, 1676, 22143, 14, 33678, 12, 17440, 12, 259, 12, 64, 12, 65, 301, 14, 198, 2, 198, 2, 16113, 198, 2, 13398, 357, 2548, 13, 3695, 4407, 198, 2, 7472, 21699, 276, 25, 220, 220, 220, 674...
2.401361
147
"""Testing of class Tasks.""" # pylint: disable=no-self-use, invalid-name import unittest from hamcrest import assert_that, equal_to from spline.components.tasks import Tasks, worker from spline.components.hooks import Hooks from spline.components.config import ApplicationOptions from spline.pipeline import PipelineDa...
[ 37811, 44154, 286, 1398, 309, 6791, 526, 15931, 198, 2, 279, 2645, 600, 25, 15560, 28, 3919, 12, 944, 12, 1904, 11, 12515, 12, 3672, 198, 11748, 555, 715, 395, 198, 6738, 8891, 66, 2118, 1330, 6818, 62, 5562, 11, 4961, 62, 1462, 1...
3.350515
97
""" Graphing code for Stalk Market Predictions Part of Stalk Market Bot. """ import logging from io import BytesIO from typing import TYPE_CHECKING, Optional, Dict, List, Union, Tuple, NamedTuple, Any import matplotlib.pyplot as plt from scipy.interpolate import Akima1DInterpolator, pchip_interpolate import numpy as...
[ 37811, 198, 38, 2416, 722, 2438, 329, 520, 971, 5991, 14322, 9278, 198, 7841, 286, 520, 971, 5991, 18579, 13, 198, 37811, 198, 198, 11748, 18931, 198, 198, 6738, 33245, 1330, 2750, 4879, 9399, 198, 6738, 19720, 1330, 41876, 62, 50084, ...
2.084081
4,234
#!/usr/bin/env python import sys import xml.parsers.expat ## Parser ## # main def main(argv): import re import os.path import zipfile import csv pat = re.compile(r'P\d\d-\d\d_\d\d.xml') args = argv[1:] out = csv.writer(sys.stdout) for path in args: zf = zipfile.ZipFile(path)...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 198, 11748, 25064, 198, 11748, 35555, 13, 79, 945, 364, 13, 1069, 8071, 628, 198, 2235, 220, 23042, 263, 198, 2235, 628, 198, 2, 1388, 198, 4299, 1388, 7, 853, 85, 2599, 198, 220, 220, ...
1.872549
408
from ..types import ErrorType # noqa Import ErrorType for backwards compatability
[ 6738, 11485, 19199, 1330, 13047, 6030, 220, 1303, 645, 20402, 17267, 13047, 6030, 329, 16196, 8330, 1799, 198 ]
4.611111
18
from django.db import models from django.utils import timezone from django.contrib.auth.models import User # Create your models here. #inspired by https://docs.djangoproject.com/en/3.2/topics/db/models/
[ 6738, 42625, 14208, 13, 9945, 1330, 4981, 198, 6738, 42625, 14208, 13, 26791, 1330, 640, 11340, 198, 6738, 42625, 14208, 13, 3642, 822, 13, 18439, 13, 27530, 1330, 11787, 198, 198, 2, 13610, 534, 4981, 994, 13, 198, 2, 24194, 416, 374...
3.044776
67
import numpy as np import pytest from quanguru.QuantumToolbox import linearAlgebra as la #pylint: disable=import-error from quanguru.QuantumToolbox import operators as ops #pylint: disable=import-error from quanguru.QuantumToolbox import functions as fns #pylint: disable=import-error #testCase = collections.namedtuple(...
[ 11748, 299, 32152, 355, 45941, 198, 11748, 12972, 9288, 198, 6738, 627, 648, 14717, 13, 24915, 388, 25391, 3524, 1330, 14174, 2348, 29230, 355, 8591, 1303, 79, 2645, 600, 25, 15560, 28, 11748, 12, 18224, 198, 6738, 627, 648, 14717, 13, ...
2.810458
306
import multiprocessing as mp POOL = None
[ 11748, 18540, 305, 919, 278, 355, 29034, 198, 198, 16402, 3535, 796, 6045, 628, 628 ]
3
15
TARGET = 776203571 data = [] with open("input.txt") as file_handler: for n, line in enumerate(file_handler): data.append(int(line.strip())) for start_index in range(len(data)): match, end_index = contiguous_sum(start_index) if match: print("match %d - %d" % (start_index, end_index)) ...
[ 51, 46095, 796, 767, 4304, 1238, 2327, 4869, 198, 198, 7890, 796, 17635, 198, 198, 4480, 1280, 7203, 15414, 13, 14116, 4943, 355, 2393, 62, 30281, 25, 198, 220, 220, 220, 329, 299, 11, 1627, 287, 27056, 378, 7, 7753, 62, 30281, 2599...
2.349462
186
import package_test from package_test import hw5p2 #import package_test.hw5p2 #package_test.hw5p2.main() hw5p2.main() """ ''' TAO YICHEN ytao15@binghamton.edu Lab section: B56 CA name: Paul Maino Assignment #5 Part 1 Phone: 6079532749 ''' ''' RESTATEMENT: Display tax for single and married filers given set of incomes...
[ 11748, 5301, 62, 9288, 198, 6738, 5301, 62, 9288, 1330, 289, 86, 20, 79, 17, 198, 2, 11748, 5301, 62, 9288, 13, 36599, 20, 79, 17, 198, 2, 26495, 62, 9288, 13, 36599, 20, 79, 17, 13, 12417, 3419, 198, 36599, 20, 79, 17, 13, 12...
2.190184
2,119
# A List is a collection which is ordered and changeable. Allows duplicate members. # Create a list numbers = [1,2,3,4,5] fruits = ['Apples', 'Oranges', 'Grapes', 'Peas'] # use a constructor #numbers2 = list((5,6,7,8,9,10)) print(numbers) # Get a value print(fruits[2]) # Change a value fruits[0] = 'Blueberries' pri...
[ 2, 317, 7343, 318, 257, 4947, 543, 318, 6149, 290, 1487, 540, 13, 40402, 23418, 1866, 13, 198, 198, 2, 13610, 257, 1351, 198, 77, 17024, 796, 685, 16, 11, 17, 11, 18, 11, 19, 11, 20, 60, 198, 69, 50187, 796, 37250, 4677, 829, ...
2.582456
285
__author__ = 'rwechsler' import datetime import time import cPickle as pickle from annoy import AnnoyIndex import gensim import argparse import numpy as np import sys import random from scipy import spatial import multiprocessing as mp from collections import defaultdict import codecs if __name__ == "__main__": ...
[ 834, 9800, 834, 796, 705, 81, 732, 354, 82, 1754, 6, 198, 11748, 4818, 8079, 198, 11748, 640, 198, 11748, 269, 31686, 293, 355, 2298, 293, 198, 6738, 10072, 1330, 5506, 726, 15732, 198, 11748, 308, 641, 320, 198, 11748, 1822, 29572, ...
2.698546
1,788
from netapp.netapp_object import NetAppObject
[ 6738, 2010, 1324, 13, 3262, 1324, 62, 15252, 1330, 3433, 4677, 10267, 198 ]
3.538462
13
from django.contrib.auth.models import User from django.db import models from django.db.models.signals import post_save from django.dispatch import receiver
[ 6738, 42625, 14208, 13, 3642, 822, 13, 18439, 13, 27530, 1330, 11787, 198, 6738, 42625, 14208, 13, 9945, 1330, 4981, 198, 6738, 42625, 14208, 13, 9945, 13, 27530, 13, 12683, 874, 1330, 1281, 62, 21928, 198, 6738, 42625, 14208, 13, 6381,...
3.446809
47
# Modulos import PySimpleGUI as Sg import wmi from smb.SMBConnection import SMBConnection from configparser import ConfigParser from time import sleep import sys from multiprocessing import Process, freeze_support # Variavel de controle do While (sair = 1 finaliza o programa) sair = 0 # Carrega o arquivo ...
[ 2, 3401, 377, 418, 201, 198, 11748, 9485, 26437, 40156, 355, 311, 70, 201, 198, 11748, 266, 11632, 201, 198, 6738, 895, 65, 13, 12310, 2749, 261, 1606, 295, 1330, 9447, 2749, 261, 1606, 295, 201, 198, 6738, 4566, 48610, 1330, 17056, ...
2.40625
480
# Licensed to Elasticsearch B.V. under one or more contributor # license agreements. See the NOTICE file distributed with # this work for additional information regarding copyright # ownership. Elasticsearch B.V. licenses this file to you under # the Apache License, Version 2.0 (the "License"); you may # not use this f...
[ 2, 49962, 284, 48567, 12947, 347, 13, 53, 13, 739, 530, 393, 517, 18920, 198, 2, 5964, 11704, 13, 4091, 262, 28536, 2393, 9387, 351, 198, 2, 428, 670, 329, 3224, 1321, 5115, 6634, 198, 2, 9238, 13, 48567, 12947, 347, 13, 53, 13, ...
2.965347
606
"""Auto generated, do not edit.""" import zivid import _zivid
[ 37811, 27722, 7560, 11, 466, 407, 4370, 526, 15931, 198, 11748, 1976, 1699, 198, 11748, 4808, 89, 1699, 628, 628, 628, 628, 628, 628, 628, 628, 628, 628, 628, 628, 628, 628, 628, 628, 628, 628, 198 ]
2.648649
37
import sys import torchvision import os import torch from tracking_utils import light_track from natsort import natsorted, ns import numpy as np from argparse import ArgumentParser if __name__ == '__main__': parser = ArgumentParser() parser.add_argument('--data_name', type=str, default='issia') parser.add...
[ 11748, 25064, 198, 11748, 28034, 10178, 198, 11748, 28686, 198, 11748, 28034, 198, 6738, 9646, 62, 26791, 1330, 1657, 62, 11659, 198, 6738, 299, 1381, 419, 1330, 299, 1381, 9741, 11, 36545, 198, 11748, 299, 32152, 355, 45941, 198, 6738, ...
2.231878
5,201
from dataclasses import dataclass import ternary import numpy as np import pandas as pd import xarray as xr import matplotlib import matplotlib.pyplot as plt from matplotlib import gridspec import seaborn as sns TICK_FONT_SIZE = 9 RED = "#A01914" BLUE = "#4F6DB8" SEQUENTIAL_PALETTE = sns.light_palette(RED, as_cmap=T...
[ 6738, 4818, 330, 28958, 1330, 4818, 330, 31172, 198, 198, 11748, 1059, 77, 560, 198, 11748, 299, 32152, 355, 45941, 198, 11748, 19798, 292, 355, 279, 67, 198, 11748, 2124, 18747, 355, 2124, 81, 198, 11748, 2603, 29487, 8019, 198, 11748,...
2.225071
351
from discord import Embed from random import randint from cogs.errors import get_error_message from cogs.game.minigames.base_game.game import Game from cogs.game.minigames.black_box.variables import NUMBERS, SYMBOLS, LEFT, RIGHT, UP, DOWN, GUESS, DIRECT, FINALIZE, HIT, MISS from cogs.game.minigames.functions import wa...
[ 6738, 36446, 1330, 13302, 276, 198, 6738, 4738, 1330, 43720, 600, 198, 198, 6738, 269, 18463, 13, 48277, 1330, 651, 62, 18224, 62, 20500, 198, 6738, 269, 18463, 13, 6057, 13, 1084, 328, 1047, 13, 8692, 62, 6057, 13, 6057, 1330, 3776, ...
2.622951
244
# Steps for offline training: # 1. load benign pcap file # 2. extract features # 3. train feature mapper model and save model import numpy as np from kitsune.FeatureExtractor import FE from kitsune.KitNET import corClust as CC from kitsune.KitNET import dA as AE from scipy.stats import norm from matplotlib import pyplo...
[ 2, 32144, 329, 18043, 3047, 25, 198, 2, 352, 13, 3440, 32293, 279, 11128, 2393, 198, 2, 362, 13, 7925, 3033, 198, 2, 513, 13, 4512, 3895, 285, 11463, 2746, 290, 3613, 2746, 198, 11748, 299, 32152, 355, 45941, 198, 6738, 19183, 1726,...
2.141433
1,605
import views from django.conf.urls import url urlpatterns = [ url( r'(?P<latitude>[\d.@+-]+)/(?P<longitude>[\d.@+-]+)', views.mapit, name='mapit'), url( r'(?P<name>[\alphanum]+)', views.trackers, name='named_liveposition'), url( r'(?P<imei>\d{15})', ...
[ 11748, 5009, 198, 6738, 42625, 14208, 13, 10414, 13, 6371, 82, 1330, 19016, 198, 198, 6371, 33279, 82, 796, 685, 198, 220, 220, 220, 19016, 7, 198, 220, 220, 220, 220, 220, 220, 220, 374, 6, 7, 30, 47, 27, 15460, 3984, 36937, 59, ...
1.751938
258
''' # funtional programming undviker for-loopar men mste inte inehlla rekursiva anrop def fib(n, a=0, b=1): return a if n < 1 else \ b if n < 2 else \ fib(n - 1, b, a + b) print(fib(100)) # Output: 354224848179261915075 '''
[ 7061, 6, 198, 2, 1257, 83, 1538, 8300, 3318, 85, 18320, 329, 12, 26268, 283, 1450, 285, 4169, 493, 68, 287, 17231, 8466, 302, 74, 1834, 12151, 281, 1773, 198, 198, 4299, 12900, 7, 77, 11, 257, 28, 15, 11, 275, 28, 16, 2599, 198,...
2.111111
117
# Attempt # Solution
[ 2, 25770, 198, 198, 2, 28186, 628, 628, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220 ]
1.607143
28
""" Create any custom assertion in here """ from hamcrest import assert_that, is_ def assert_no_failures(failure_description): """ Assert that the string passed is empty representing no failures - to be used in test steps :param failure_description: a string describing failures in a test step, or empty if...
[ 37811, 198, 16447, 597, 2183, 19190, 287, 994, 198, 37811, 198, 6738, 8891, 66, 2118, 1330, 6818, 62, 5562, 11, 318, 62, 628, 198, 4299, 6818, 62, 3919, 62, 32165, 942, 7, 32165, 495, 62, 11213, 2599, 198, 220, 220, 220, 37227, 198,...
3.547826
115
from flask import Flask from flask_admin import Admin from flask_login import LoginManager app = Flask(__name__) app.config.from_object('config') admin = Admin(app, name='microblog', template_mode='bootstrap3') lm = LoginManager() lm.init_app(app) lm.login_view = 'login' from app import views
[ 6738, 42903, 1330, 46947, 198, 6738, 42903, 62, 28482, 1330, 32053, 198, 6738, 42903, 62, 38235, 1330, 23093, 13511, 628, 198, 1324, 796, 46947, 7, 834, 3672, 834, 8, 198, 1324, 13, 11250, 13, 6738, 62, 15252, 10786, 11250, 11537, 198, ...
3.126316
95
import os import re import fire import json import logging logging.basicConfig(level=logging.INFO) logger = logging.getLogger(__name__) if __name__ == "__main__": fire.Fire(run_all)
[ 11748, 28686, 198, 11748, 302, 198, 11748, 2046, 198, 11748, 33918, 198, 11748, 18931, 198, 198, 6404, 2667, 13, 35487, 16934, 7, 5715, 28, 6404, 2667, 13, 10778, 8, 198, 198, 6404, 1362, 796, 18931, 13, 1136, 11187, 1362, 7, 834, 367...
2.768116
69
#Approach #1: Build String(Stack) #Time Complexity: O(M + N), where M, N are the lengths of S and T respectively. #Space Complexity: O(M + N). #Approach #2: Two Pointer #Time Complexity: O(M + N), where M, N are the lengths of S and T respectively. #Space Complexity: O(1).
[ 2, 4677, 28562, 1303, 16, 25, 10934, 10903, 7, 25896, 8, 198, 198, 2, 7575, 19157, 414, 25, 440, 7, 44, 1343, 399, 828, 810, 337, 11, 399, 389, 262, 20428, 286, 311, 290, 309, 8148, 13, 198, 2, 14106, 19157, 414, 25, 440, 7, 4...
2.875
96
""" Copyright 2018 Johns Hopkins University (Author: Jesus Villalba) Apache 2.0 (http://www.apache.org/licenses/LICENSE-2.0) """ import numpy as np from scipy import linalg as sla from ...hyp_defs import float_cpu from ...utils.math import ( invert_pdmat, invert_trimat, logdet_pdmat, vec2symmat, ...
[ 37811, 198, 15069, 2864, 25824, 21183, 2059, 220, 357, 13838, 25, 5803, 9757, 282, 7012, 8, 198, 24843, 362, 13, 15, 220, 357, 4023, 1378, 2503, 13, 43073, 13, 2398, 14, 677, 4541, 14, 43, 2149, 24290, 12, 17, 13, 15, 8, 198, 3781...
2.534722
144
import os import shutil import subprocess import sys import random import threading import json import time import traceback import signal BASE_IMAGE = 'archlinux' USER_HOME_DIR = '~' HOME_DIR = '~/Docker' APP_DIR = '~/.local/share/applications' PULSE_COOKIE_PATH = '~/.config/pulse/cookie' LOCALTIME_PATH = '/etc/local...
[ 11748, 28686, 198, 11748, 4423, 346, 198, 11748, 850, 14681, 198, 11748, 25064, 198, 11748, 4738, 198, 11748, 4704, 278, 198, 11748, 33918, 198, 11748, 640, 198, 11748, 12854, 1891, 198, 11748, 6737, 198, 198, 33, 11159, 62, 3955, 11879, ...
2.190175
1,425
say_hi_func = say_hello("Hello") # Print Hello and returns say_hi function which gets stored in say_hi_func variable say_hi_func("Hi") # Call say_hi function and print "Hello Hi"
[ 198, 198, 16706, 62, 5303, 62, 20786, 796, 910, 62, 31373, 7203, 15496, 4943, 220, 1303, 12578, 18435, 290, 5860, 910, 62, 5303, 2163, 543, 3011, 8574, 287, 910, 62, 5303, 62, 20786, 7885, 198, 198, 16706, 62, 5303, 62, 20786, 7203, ...
3.210526
57
import json import re import requests from bs4 import BeautifulSoup from django.core.management.base import BaseCommand from ski_conditions.apps.app_scraping.models import SkiResort
[ 11748, 33918, 198, 11748, 302, 198, 198, 11748, 7007, 198, 6738, 275, 82, 19, 1330, 23762, 50, 10486, 198, 6738, 42625, 14208, 13, 7295, 13, 27604, 13, 8692, 1330, 7308, 21575, 198, 198, 6738, 19984, 62, 17561, 1756, 13, 18211, 13, 13...
3.362069
58
facts = [1] fact = 1 for i in range(1,100001): fact *= i fact %= 1000000007 facts.append(fact) T = int(input()) letters = [] for i in range(0,26): letters.append(0) while T > 0: T -= 1 s = input() cnt = 0 ans = 1 for i in s: letters[ord(i)-97] += 1 for ...
[ 37473, 796, 685, 16, 60, 201, 198, 22584, 796, 352, 201, 198, 1640, 1312, 287, 2837, 7, 16, 11, 49388, 16, 2599, 201, 198, 220, 220, 220, 1109, 1635, 28, 1312, 201, 198, 220, 220, 220, 1109, 4064, 28, 1802, 10535, 22, 201, 198, ...
1.83274
281
from importlib import resources import pathlib ROOT_PATH = pathlib.Path(resources.files("prettyqt")) # type: ignore LOCALIZATION_PATH = ROOT_PATH / "localization" THEMES_PATH = ROOT_PATH / "themes" RE_LEXER_PATH = ( ROOT_PATH / "syntaxhighlighters" / "pygments" / "regularexpressionlexer.py" ) ICON_FONT_PATH = R...
[ 6738, 1330, 8019, 1330, 4133, 198, 11748, 3108, 8019, 628, 198, 13252, 2394, 62, 34219, 796, 3108, 8019, 13, 15235, 7, 37540, 13, 16624, 7203, 37784, 39568, 48774, 220, 1303, 2099, 25, 8856, 198, 198, 29701, 1847, 14887, 6234, 62, 34219...
2.59854
137
"""Unit of Work and EventBus.""" import asyncio import contextlib from types import TracebackType from typing import Callable, Generic, Optional, TypeVar from poptimizer import config from poptimizer.shared import adapters, domain EntityType = TypeVar("EntityType", bound=domain.BaseEntity) FutureEvent = asyncio.Fu...
[ 37811, 26453, 286, 5521, 290, 8558, 16286, 526, 15931, 198, 11748, 30351, 952, 198, 11748, 4732, 8019, 198, 6738, 3858, 1330, 34912, 1891, 6030, 198, 6738, 19720, 1330, 4889, 540, 11, 42044, 11, 32233, 11, 5994, 19852, 198, 198, 6738, 1...
2.326047
549
#!/usr/bin/env python2 """ builtin_misc_test.py: Tests for builtin_misc.py """ from __future__ import print_function import unittest from core import pyutil from frontend import flag_def # side effect: flags are defined! _ = flag_def from osh import split from osh import builtin_misc # module under test if __name...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 17, 198, 37811, 198, 18780, 259, 62, 44374, 62, 9288, 13, 9078, 25, 30307, 329, 3170, 259, 62, 44374, 13, 9078, 198, 37811, 198, 6738, 11593, 37443, 834, 1330, 3601, 62, 8818, 198, 198, 1...
3.042735
117
import os import boto3 from boto.regioninfo import RegionInfo from sqlalchemy import text from dart.model.orm import MessageDao from dart.context.database import db from dart.service.patcher import patch_difference
[ 11748, 28686, 198, 11748, 275, 2069, 18, 198, 6738, 275, 2069, 13, 36996, 10951, 1330, 17718, 12360, 198, 6738, 44161, 282, 26599, 1330, 2420, 198, 6738, 35970, 13, 19849, 13, 579, 1330, 16000, 35, 5488, 198, 6738, 35970, 13, 22866, 13,...
3.724138
58
import sys from PyQt5.QtWidgets import QApplication, QWidget, QHBoxLayout, QLabel from PyQt5.QtGui import QPixmap if __name__ == '__main__': app = QApplication(sys.argv) ex = Example() sys.exit(app.exec_())
[ 11748, 25064, 198, 6738, 9485, 48, 83, 20, 13, 48, 83, 54, 312, 11407, 1330, 1195, 23416, 11, 1195, 38300, 11, 1195, 39, 14253, 32517, 11, 1195, 33986, 198, 6738, 9485, 48, 83, 20, 13, 48, 83, 8205, 72, 1330, 1195, 47, 844, 8899, ...
2.417582
91
import os import os.path import subprocess import sys import time import pytest import requests def test_starting(launch_worker): w = launch_worker() assert w.poll() is None r = requests.get("http://localhost:9000/") assert "celery_task_execution_time" in r.text def test_run_task_add(launch_worke...
[ 11748, 28686, 198, 11748, 28686, 13, 6978, 198, 11748, 850, 14681, 198, 11748, 25064, 198, 11748, 640, 198, 198, 11748, 12972, 9288, 198, 11748, 7007, 628, 628, 198, 4299, 1332, 62, 38690, 7, 35681, 62, 28816, 2599, 198, 220, 220, 220, ...
2.141689
734
# This Python file uses the following encoding: utf-8 """autogenerated by genpy from novatel_msgs/Ack.msg. Do not edit.""" import sys python3 = True if sys.hexversion > 0x03000000 else False import genpy import struct _struct_I = genpy.struct_I _struct_32B = struct.Struct("<32B") _struct_32s = struct.Struct("<32s") _...
[ 2, 770, 11361, 2393, 3544, 262, 1708, 21004, 25, 3384, 69, 12, 23, 198, 37811, 2306, 519, 877, 515, 416, 2429, 9078, 422, 645, 85, 25791, 62, 907, 14542, 14, 32, 694, 13, 19662, 13, 2141, 407, 4370, 526, 15931, 198, 11748, 25064, ...
2.81746
126
import json
[ 11748, 33918, 628 ]
4.333333
3
# Copyright 2016 Netherlands eScience Center # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed t...
[ 2, 15069, 1584, 12671, 304, 26959, 3337, 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, 92...
1.71225
10,033
import geoflow1D from geoflow1D.GridModule import * from geoflow1D.FieldsModule import * from geoflow1D.LinearSystemModule import * from geoflow1D.GeoModule import * from geoflow1D.SolverModule import * import numpy as np from matplotlib import pyplot as plt # -------------- PROBLEM ILLUSTRATION ----------------- # ...
[ 11748, 4903, 1659, 9319, 16, 35, 198, 6738, 4903, 1659, 9319, 16, 35, 13, 41339, 26796, 1330, 1635, 198, 6738, 4903, 1659, 9319, 16, 35, 13, 15878, 82, 26796, 1330, 1635, 198, 6738, 4903, 1659, 9319, 16, 35, 13, 14993, 451, 11964, 2...
2.807991
901
from torch2trt.torch2trt import * from torch2trt.module_test import add_module_test import tensorrt as trt
[ 6738, 28034, 17, 2213, 83, 13, 13165, 354, 17, 2213, 83, 1330, 1635, 198, 6738, 28034, 17, 2213, 83, 13, 21412, 62, 9288, 1330, 751, 62, 21412, 62, 9288, 198, 11748, 11192, 273, 17034, 355, 491, 83, 628, 628 ]
2.820513
39
import math
[ 11748, 10688, 198 ]
4
3
#!/usr/bin/env python import math """ 2D math vector Since 2011.8.19 AUTHOUR: Yi-Xin Liu <liuyxpp@gmail.com> Fudan University REVISION: 2011.8.22 """ from persistent import Persistent if __name__=='__main__': test()
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 198, 198, 11748, 10688, 198, 198, 37811, 198, 17, 35, 10688, 15879, 198, 6385, 2813, 13, 23, 13, 1129, 198, 198, 32, 24318, 11698, 25, 198, 220, 220, 220, 26463, 12, 55, 259, 18258, 1279,...
2.333333
102
__version__ = "0.0.111"
[ 834, 9641, 834, 796, 366, 15, 13, 15, 13, 16243, 1, 198 ]
2
12
#################################################################################### ############# The purpose of the module is to handle IOTA interactions ############# #################################################################################### #IOTA library from iota import TryteString, Address, ProposedBun...
[ 29113, 29113, 14468, 4242, 198, 7804, 4242, 2, 383, 4007, 286, 262, 8265, 318, 284, 5412, 314, 29009, 12213, 1303, 7804, 4242, 198, 29113, 29113, 14468, 4242, 198, 198, 2, 40, 29009, 5888, 198, 6738, 1312, 4265, 1330, 9993, 660, 10100, ...
4.992754
138
# Imports import streamlit as st import pandas as pd import difflib # Load results .CSV code_simil_results = pd.read_csv('results/resultados.csv') prog_lang_results = pd.read_csv('results/resultados_language.csv') # Create a select box to choose the demo add_selectbox = st.sidebar.selectbox( "W...
[ 2, 1846, 3742, 201, 198, 11748, 4269, 18250, 355, 336, 201, 198, 11748, 19798, 292, 355, 279, 67, 201, 198, 11748, 814, 8019, 201, 198, 201, 198, 201, 198, 201, 198, 2, 8778, 2482, 764, 7902, 53, 201, 198, 8189, 62, 14323, 346, 62...
2.229205
1,082
import django_filters from .common_filters import NumberInFilter, ValueInFilter, GeomFilter, GeoFilterSet
[ 11748, 42625, 14208, 62, 10379, 1010, 198, 198, 6738, 764, 11321, 62, 10379, 1010, 1330, 7913, 818, 22417, 11, 11052, 818, 22417, 11, 2269, 296, 22417, 11, 32960, 22417, 7248, 628 ]
3.483871
31
# most of the code here comes from https://github.com/dbader/schedule from .job import Job, ALIASES import logging import time logger = logging.getLogger('pcrond') def std_launch_func(cmd_splitted, stdin=None): """ Default way of executing commands is to invoke subprocess.run() """ if stdin is None:...
[ 2, 749, 286, 262, 2438, 994, 2058, 422, 3740, 1378, 12567, 13, 785, 14, 9945, 5067, 14, 15952, 5950, 198, 198, 6738, 764, 21858, 1330, 15768, 11, 8355, 43429, 1546, 198, 11748, 18931, 198, 11748, 640, 198, 198, 6404, 1362, 796, 18931,...
2.875
120
import urllib import re ptrn = re.compile("<textarea name='uas' id='uas_textfeld' rows='4' cols='30'>(.+?)</textarea>") with open("user_agent.txt", "w") as fp: for i in range(12381, 15480): try: url = "http://www.useragentstring.com/index.php?id=" + str(i) html = urllib.urlopen(ur...
[ 11748, 2956, 297, 571, 198, 11748, 302, 628, 198, 20692, 77, 796, 302, 13, 5589, 576, 7203, 27, 5239, 20337, 1438, 11639, 84, 292, 6, 4686, 11639, 84, 292, 62, 5239, 16265, 6, 15274, 11639, 19, 6, 951, 82, 11639, 1270, 6, 33994, 1...
2.012876
233
import discord from discord.ext import commands from secrets import Token as Token bot = commands.Bot(command_prefix="!") role_add_channel_id = 750036407757832242 # command to test if the bot is running # command to test if the bot is running # print a message if the bot is online bot.run(Token)
[ 11748, 36446, 198, 6738, 36446, 13, 2302, 1330, 9729, 198, 6738, 13141, 1330, 29130, 355, 29130, 198, 198, 13645, 796, 9729, 13, 20630, 7, 21812, 62, 40290, 2625, 2474, 8, 198, 18090, 62, 2860, 62, 17620, 62, 312, 796, 767, 4059, 2623...
3.406593
91
"""Page blocks""" from wagtail.core import blocks from wagtail.images.blocks import ImageChooserBlock
[ 37811, 9876, 7021, 37811, 198, 198, 6738, 266, 363, 13199, 13, 7295, 1330, 7021, 198, 6738, 266, 363, 13199, 13, 17566, 13, 27372, 1330, 7412, 22164, 13416, 12235, 628, 198 ]
3.5
30
from win32._mapi import *
[ 6738, 1592, 2624, 13557, 8899, 72, 1330, 1635 ]
3.125
8
"""Grader: Menus and popups for grading and pair programming""" import curses import getpass from zygrader import data, ui, utils from zygrader.config import preferences from zygrader.config.shared import SharedData from zygrader.data import model from zygrader.zybooks import Zybooks from zygrader.ui import colors d...
[ 37811, 8642, 5067, 25, 6065, 385, 290, 1461, 4739, 329, 43165, 290, 5166, 8300, 37811, 198, 11748, 43878, 198, 11748, 651, 6603, 198, 198, 6738, 1976, 88, 2164, 5067, 1330, 1366, 11, 334, 72, 11, 3384, 4487, 198, 6738, 1976, 88, 2164,...
2.464368
5,192
# -*- coding: utf-8 -*- ''' Created on 201371 @author: gaott ''' from email.MIMEMultipart import MIMEMultipart from email.MIMEText import MIMEText from email.utils import COMMASPACE import smtplib if __name__ == '__main__': sendEmail("hello")
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 220, 220, 198, 7061, 6, 198, 41972, 319, 2211, 4869, 198, 198, 31, 9800, 25, 31986, 1252, 198, 7061, 6, 198, 6738, 3053, 13, 44, 3955, 3620, 586, 541, 433, 1330, 337, 395...
2.485149
101
# libs import pygame import math import sys from random import randrange, seed from numbers import Real # simulation settings G = 1 sum_mass = 50.0 softening = 100 # also function as speed component seed(1) # additional settings COLLIS_MERGE = True ACTIVE_BORDERS = False # world objects NBODIES = 150 BODIES = [] # p...
[ 2, 9195, 82, 198, 11748, 12972, 6057, 198, 11748, 10688, 198, 11748, 25064, 198, 6738, 4738, 1330, 43720, 9521, 11, 9403, 198, 6738, 3146, 1330, 6416, 198, 198, 2, 18640, 6460, 198, 38, 796, 352, 198, 16345, 62, 22208, 796, 2026, 13, ...
2.138824
850
# (c) @M4SK3R1N from configs import Config from core.database import Database db = Database(Config.DATABASE_URL, Config.BOT_USERNAME)
[ 2, 357, 66, 8, 2488, 44, 19, 18831, 18, 49, 16, 45, 198, 198, 6738, 4566, 82, 1330, 17056, 198, 6738, 4755, 13, 48806, 1330, 24047, 198, 198, 9945, 796, 24047, 7, 16934, 13, 35, 1404, 6242, 11159, 62, 21886, 11, 17056, 13, 33, 2...
2.72
50
from config import Config from dataclasses import dataclass from logger import Logger from d2r_image.data_models import HoveredItem consumable_needs = Consumables() ITEM_CONSUMABLES_MAP = { "rejuvenation potion": "rejuv", "full rejuvenation potion": "rejuv", "rejuvpotion": "rejuv", "super healing potio...
[ 6738, 4566, 1330, 17056, 198, 6738, 4818, 330, 28958, 1330, 4818, 330, 31172, 198, 6738, 49706, 1330, 5972, 1362, 198, 6738, 288, 17, 81, 62, 9060, 13, 7890, 62, 27530, 1330, 367, 2557, 7449, 198, 5936, 388, 540, 62, 50032, 796, 3515,...
2.717054
516
# -*- coding: utf-8 -*- from scrapy.spiders import Spider from scrapy.selector import Selector import re from scrapy import Request from gorden_crawler.spiders.shopbop_eastdane_common import ShopbopEastdaneCommon
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 6738, 15881, 88, 13, 2777, 4157, 1330, 12648, 198, 6738, 15881, 88, 13, 19738, 273, 1330, 9683, 273, 198, 11748, 302, 198, 6738, 15881, 88, 1330, 19390, 198, 198, 6738, ...
3
71
from .transaction import * from .tick import * from .order import *
[ 6738, 764, 7645, 2673, 1330, 1635, 198, 6738, 764, 42298, 1330, 1635, 198, 6738, 764, 2875, 1330, 1635 ]
3.722222
18
from behave import given, when, then
[ 6738, 17438, 1330, 1813, 11, 618, 11, 788 ]
4.5
8
from . import main from flask import render_template, url_for,redirect from app.models import Posts, User, Comment from flask_login import current_user, login_required from .forms import PostForm, CommentForm, UpdateBlogForm from .. import db from sqlalchemy import desc from ..requests import get_quotes from ..email i...
[ 6738, 764, 1330, 220, 1388, 198, 6738, 42903, 1330, 8543, 62, 28243, 11, 19016, 62, 1640, 11, 445, 1060, 198, 6738, 598, 13, 27530, 1330, 12043, 11, 11787, 11, 18957, 198, 6738, 42903, 62, 38235, 1330, 1459, 62, 7220, 11, 17594, 62, ...
2.96124
129
#!/usr/bin/env python # -*- coding: utf-8 -*- ################################################################### # Author: Mu yanru # Date : 2019.2 # Email : muyanru345@163.com ################################################################### import examples._mock_data as mock from dayu_widgets import dayu_theme f...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 198, 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 29113, 29113, 21017, 198, 2, 6434, 25, 8252, 331, 272, 622, 198, 2, 7536, 220, 1058, 13130, 13, 17, 198, 2, 9570, 1...
3.095238
252
# coding=utf-8 from pili import * from flask import current_app
[ 2, 19617, 28, 40477, 12, 23, 198, 6738, 279, 2403, 1330, 1635, 198, 6738, 42903, 1330, 1459, 62, 1324, 628, 628 ]
3.190476
21
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ This code sets the directories for running the test codes Created on Sat Dec 19 12:51:22 2020 @author: Swarnav Banik sbanik1@umd.edu """ # %% Import all ############################################################### import sys import matplotlib.pyplot as plt # %% Add...
[ 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, 1212, 2438, 5621, 262, 29196, 329, 2491, 262, 1332, 12416, 198, 41972, 319, 7031, 4280, 678, 1105, 25, ...
2.930052
386
#!/usr/bin/python import urllib2, unittest, json, hashlib from functools import wraps try: import bson except: bson = None try: import msgpack except: msgpack = None host = '127.0.0.1' port = 7379 def need_bson(fn): return wrapper if __name__ == '__main__': unittest.main()
[ 2, 48443, 14629, 14, 8800, 14, 29412, 198, 11748, 2956, 297, 571, 17, 11, 555, 715, 395, 11, 33918, 11, 12234, 8019, 198, 6738, 1257, 310, 10141, 1330, 27521, 198, 28311, 25, 198, 197, 11748, 275, 1559, 198, 16341, 25, 198, 197, 144...
2.456897
116
import pytest from pystac_client import CollectionClient from pystac_client.client import Client from .helpers import STAC_URLS
[ 11748, 12972, 9288, 198, 198, 6738, 12972, 301, 330, 62, 16366, 1330, 12251, 11792, 198, 6738, 12972, 301, 330, 62, 16366, 13, 16366, 1330, 20985, 198, 198, 6738, 764, 16794, 364, 1330, 3563, 2246, 62, 4261, 6561, 628 ]
3.447368
38
from __future__ import absolute_import from frasco import copy_extra_feature_options, current_app from frasco.utils import JSONEncoder, ContextStack, DelayedCallsContext from frasco_models import Backend, ModelSchemaError, and_, split_field_operator, QueryError from frasco_models.utils import clean_proxy from flask_sql...
[ 6738, 11593, 37443, 834, 1330, 4112, 62, 11748, 198, 6738, 1216, 292, 1073, 1330, 4866, 62, 26086, 62, 30053, 62, 25811, 11, 1459, 62, 1324, 198, 6738, 1216, 292, 1073, 13, 26791, 1330, 19449, 27195, 12342, 11, 30532, 25896, 11, 4216, ...
3.256
250
from pessoa import Pessoa p1 = Pessoa('Luiz', 29) p2 = Pessoa('Joana', 59) # Teste para j est comendo # p1.comer('ma') # p1.comer('ma') # Teste para no est comendo # p1.para_comer() # Teste para j est falando # p1.falar('Poltica') # p1.falar('Poltica') # Teste para no falar comendo # p1.comer('ma') # p1.falar('Polt...
[ 6738, 279, 408, 12162, 1330, 350, 408, 12162, 198, 198, 79, 16, 796, 350, 408, 12162, 10786, 25596, 528, 3256, 2808, 8, 198, 79, 17, 796, 350, 408, 12162, 10786, 9908, 2271, 3256, 7863, 8, 198, 2, 6208, 68, 31215, 474, 1556, 401, ...
2.084677
248
#<!---------------------------------------------------------------------------> #<!-- ITU - IT University of Copenhagen --> #<!-- SSS - Software and Systems Section --> #<!---------------------------------------------------------------------------> ...
[ 2, 27, 0, 10097, 35937, 3784, 198, 2, 27, 28112, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 7283, 52, 532, 7283, 2059, 286, 31104, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, ...
2.050913
1,041
import json import nlpaug.augmenter.char as nac import pandas as pd from transformers import AutoModelForSequenceClassification, AutoTokenizer, pipeline from transformers.tokenization_utils import PreTrainedTokenizer from config import Config transformer_model = "distilbert-base-uncased-finetuned-sst-2-english" # l...
[ 11748, 33918, 198, 198, 11748, 299, 34431, 7493, 13, 559, 5154, 263, 13, 10641, 355, 299, 330, 198, 11748, 19798, 292, 355, 279, 67, 198, 6738, 6121, 364, 1330, 11160, 17633, 1890, 44015, 594, 9487, 2649, 11, 11160, 30642, 7509, 11, 1...
2.888689
557
from functools import reduce import numpy as np import matplotlib.pyplot as plt from dateutil import parser import glob import os import csv import json
[ 198, 6738, 1257, 310, 10141, 1330, 4646, 198, 11748, 299, 32152, 355, 45941, 198, 11748, 2603, 29487, 8019, 13, 9078, 29487, 355, 458, 83, 198, 6738, 3128, 22602, 1330, 30751, 198, 11748, 15095, 198, 11748, 28686, 198, 11748, 269, 21370, ...
3.09434
53
# -*- coding: utf-8 -*- # @Date : 2017-07-18 20:12:08 # @Author :
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 2, 2488, 10430, 220, 220, 220, 1058, 2177, 12, 2998, 12, 1507, 1160, 25, 1065, 25, 2919, 198, 2, 2488, 13838, 220, 1058, 628 ]
1.868421
38
# -------------------------------- # Name: GeoDBSCAN.py # Purpose: This script is intended to allow ArcGIS users that have Scikit Learn installed in their python installation # utilize DBSCAN to create clusters of geographic features based on their centroids. # Current Owner: David Wasserman # Last Modified: 4/5/2020 #...
[ 2, 20368, 198, 2, 6530, 25, 32960, 35, 4462, 44565, 13, 9078, 198, 2, 32039, 25, 770, 4226, 318, 5292, 284, 1249, 10173, 38, 1797, 2985, 326, 423, 10286, 15813, 14365, 6589, 287, 511, 21015, 9988, 198, 2, 17624, 360, 4462, 44565, 28...
2.750233
2,150
#this implementation mainly work on grey scale image import argparse import shutil from pathlib import Path import natsort from qatm_pytorch_v3 import CreateModel, ImageDataset,ImageDataset_2, plot_result_mayank, nms, run_one_sample_mayank from torchvision import models import torch from utils import * from imageload...
[ 2, 5661, 220, 7822, 8384, 670, 319, 13791, 5046, 2939, 198, 11748, 1822, 29572, 198, 11748, 4423, 346, 198, 6738, 3108, 8019, 1330, 10644, 198, 198, 11748, 299, 1381, 419, 198, 6738, 10662, 265, 76, 62, 9078, 13165, 354, 62, 85, 18, ...
2.732993
588
from pydmfet import proj_ao, tools from pydmfet.qcwrap.pyscf_rks_ao import rks_ao from pyscf import gto,scf import numpy as np from pyscf.tools import molden t0 = tools.time0() bas ='6-31G*' temp = 0.005 mol = gto.Mole() mol.atom = open('O2-C24.xyz').read() mol.basis = bas mol.charge = 0 mol.build(max_memory = 2400...
[ 6738, 279, 5173, 76, 34045, 1330, 386, 73, 62, 5488, 11, 4899, 198, 6738, 279, 5173, 76, 34045, 13, 80, 66, 37150, 13, 79, 893, 12993, 62, 81, 591, 62, 5488, 1330, 374, 591, 62, 5488, 198, 6738, 279, 893, 12993, 1330, 308, 1462, ...
2.046278
497
""" Interface to the account_users table. Data format is dicts, not objects. """ from passlib import pwd from passlib.context import CryptContext from anchore_engine.db import AccountUser, AccessCredential, UserAccessCredentialTypes from anchore_engine.db.entities.common import anchore_now from anchore_engine.configur...
[ 37811, 198, 39317, 284, 262, 1848, 62, 18417, 3084, 13, 6060, 5794, 318, 8633, 82, 11, 407, 5563, 13, 198, 37811, 198, 198, 6738, 1208, 8019, 1330, 279, 16993, 198, 6738, 1208, 8019, 13, 22866, 1330, 15126, 21947, 198, 6738, 12619, 38...
2.80226
531
# # Copyright (c) 2019, Manfred Constapel # This file is licensed under the terms of the MIT license. # import sys, time from lib.utility import * # ------------------------------------------------ VID, PID = 0x0451, 0xbef3 # XDS110 # ------------------------------------------------ try: import usb except Ex...
[ 2, 198, 2, 15069, 357, 66, 8, 13130, 11, 1869, 39193, 4757, 499, 417, 198, 2, 770, 2393, 318, 11971, 739, 262, 2846, 286, 262, 17168, 5964, 13, 198, 2, 198, 198, 11748, 25064, 11, 640, 198, 198, 6738, 9195, 13, 315, 879, 1330, 1...
3.899225
129
from pandajedi.jedicore import Interaction # base class for job brokerage Interaction.installSC(JobBrokerBase)
[ 6738, 19798, 1228, 13740, 13, 73, 276, 291, 382, 1330, 4225, 2673, 198, 198, 2, 2779, 1398, 329, 1693, 48716, 628, 198, 9492, 2673, 13, 17350, 6173, 7, 33308, 15783, 6122, 14881, 8, 198 ]
3.352941
34
from .base import AbstractNegativeSampler from tqdm import trange from tqdm import tqdm from collections import Counter import numpy as np
[ 6738, 764, 8692, 1330, 27741, 32863, 876, 16305, 20053, 198, 198, 6738, 256, 80, 36020, 1330, 491, 858, 198, 6738, 256, 80, 36020, 1330, 256, 80, 36020, 198, 198, 6738, 17268, 1330, 15034, 198, 198, 11748, 299, 32152, 355, 45941, 628 ]
3.487805
41
# Generated by Django 2.0.6 on 2018-07-30 00:06 from django.db import migrations, models
[ 2, 2980, 515, 416, 37770, 362, 13, 15, 13, 21, 319, 2864, 12, 2998, 12, 1270, 3571, 25, 3312, 198, 198, 6738, 42625, 14208, 13, 9945, 1330, 15720, 602, 11, 4981, 628 ]
2.84375
32
from .plot import PlotPhotometryHandler, PlotSpectroscopyHandler from .token import TokenHandler from .dbinfo import DBInfoHandler from .profile import ProfileHandler from .source_views import SourceViewsHandler from .instrument_observation_params import InstrumentObservationParamsHandler
[ 6738, 764, 29487, 1330, 28114, 27248, 15748, 25060, 11, 28114, 49738, 45943, 11081, 25060, 198, 6738, 764, 30001, 1330, 29130, 25060, 198, 6738, 764, 67, 8800, 6513, 1330, 20137, 12360, 25060, 198, 6738, 764, 13317, 1330, 13118, 25060, 198,...
4.264706
68
from __future__ import print_function import tensorflow as tf import keras from keras.datasets import mnist from keras.models import Sequential,model_from_json from keras.layers import Dense, Dropout from keras.optimizers import RMSprop import numpy as np #### EXERCICE 3 (x_train,y_train), (x_test, y_test) = mnist...
[ 6738, 11593, 37443, 834, 1330, 3601, 62, 8818, 198, 198, 11748, 11192, 273, 11125, 355, 48700, 198, 11748, 41927, 292, 198, 6738, 41927, 292, 13, 19608, 292, 1039, 1330, 285, 77, 396, 198, 6738, 41927, 292, 13, 27530, 1330, 24604, 1843,...
2.330203
639
import sys import torch from torch import nn from torch.nn import functional as F # sys.path.append('../') # # from image.vqvae import Quantize # Copyright 2018 The Sonnet Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance...
[ 11748, 25064, 198, 11748, 28034, 198, 6738, 28034, 1330, 299, 77, 198, 6738, 28034, 13, 20471, 1330, 10345, 355, 376, 198, 198, 2, 25064, 13, 6978, 13, 33295, 10786, 40720, 11537, 198, 2, 198, 2, 422, 2939, 13, 85, 80, 33353, 1330, ...
3.914163
233
# Generated by Django 3.1.3 on 2020-12-09 13:40 from django.db import migrations, models import django.db.models.deletion
[ 2, 2980, 515, 416, 37770, 513, 13, 16, 13, 18, 319, 12131, 12, 1065, 12, 2931, 1511, 25, 1821, 198, 198, 6738, 42625, 14208, 13, 9945, 1330, 15720, 602, 11, 4981, 198, 11748, 42625, 14208, 13, 9945, 13, 27530, 13, 2934, 1616, 295, ...
2.818182
44
# Copyright 2021 The HuggingFace Team. 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 applicabl...
[ 2, 15069, 33448, 383, 12905, 2667, 32388, 4816, 13, 1439, 2489, 10395, 13, 198, 2, 198, 2, 49962, 739, 262, 24843, 13789, 11, 10628, 362, 13, 15, 357, 1169, 366, 34156, 15341, 198, 2, 345, 743, 407, 779, 428, 2393, 2845, 287, 11846,...
3.725962
208
from .product import ProductForm from .receipt import ReceiptForm from .user import LoginForm, RegisterForm, EditUserForm
[ 6738, 764, 11167, 1330, 8721, 8479, 198, 6738, 764, 260, 344, 10257, 1330, 19520, 10257, 8479, 198, 6738, 764, 7220, 1330, 23093, 8479, 11, 17296, 8479, 11, 5312, 12982, 8479 ]
4.033333
30
# -*- coding: utf-8 -*- """ /*************************************************************************** MOPA An independet project Mtodo de Obteno da Posio de Atirador ------------------- begin : 2019-01-15 git sha ...
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 37811, 198, 14, 17174, 17174, 4557, 8162, 198, 337, 43345, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2...
2.308231
571