content
stringlengths
1
1.04M
input_ids
listlengths
1
774k
ratio_char_token
float64
0.38
22.9
token_count
int64
1
774k
#! /usr/bin/env python3 # Copyright 2017 John Hanley. # # Permission is hereby granted, free of charge, to any person obtaining a # copy of this software and associated documentation files (the "Software"), # to deal in the Software without restriction, including without limitation # the rights to use, copy, modify, m...
[ 2, 0, 1220, 14629, 14, 8800, 14, 24330, 21015, 18, 198, 198, 2, 15069, 2177, 1757, 9530, 1636, 13, 198, 2, 198, 2, 2448, 3411, 318, 29376, 7520, 11, 1479, 286, 3877, 11, 284, 597, 1048, 16727, 257, 198, 2, 4866, 286, 428, 3788, ...
3.588367
447
# -*- coding: utf-8 -*- # Generated by Django 1.9.7 on 2016-06-14 17:40 from __future__ import unicode_literals from django.db import migrations, models
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 2, 2980, 515, 416, 37770, 352, 13, 24, 13, 22, 319, 1584, 12, 3312, 12, 1415, 1596, 25, 1821, 198, 6738, 11593, 37443, 834, 1330, 28000, 1098, 62, 17201, 874, 198, 1...
2.719298
57
from django.shortcuts import render, reverse from django.contrib.auth.decorators import login_required from django.contrib.auth.views import PasswordChangeForm from django.contrib import messages from django.http import HttpResponseRedirect from django.contrib.auth import update_session_auth_hash from .forms import Per...
[ 6738, 42625, 14208, 13, 19509, 23779, 1330, 8543, 11, 9575, 198, 6738, 42625, 14208, 13, 3642, 822, 13, 18439, 13, 12501, 273, 2024, 1330, 17594, 62, 35827, 198, 6738, 42625, 14208, 13, 3642, 822, 13, 18439, 13, 33571, 1330, 30275, 1940...
3.71875
128
import pygame OFFSET = 80 WIDTH, HEIGHT = 640, 640 ROWS, COLS = 8, 8 #size of each square on the board SQUARE_SIZE = WIDTH//COLS # rgb RED = (255, 0, 0) WHITE = (255, 255, 255) BLACK = (0, 0, 0) BLUE = (0, 0, 255) GREY = (128, 128, 128) BROWN = (139, 69, 19) PIECE_SIZE = 60 WHITE_PIECE = pygame.transform.scale( ...
[ 11748, 12972, 6057, 198, 198, 27977, 28480, 796, 4019, 198, 54, 2389, 4221, 11, 11179, 9947, 796, 33759, 11, 33759, 198, 49, 22845, 11, 20444, 50, 796, 807, 11, 807, 198, 198, 2, 7857, 286, 1123, 6616, 319, 262, 3096, 198, 50, 10917...
2.254839
310
import uwsgi print(uwsgi.opt) print(uwsgi.magic_table) from werkzeug.testapp import test_app as application
[ 11748, 334, 18504, 12397, 198, 198, 4798, 7, 84, 18504, 12397, 13, 8738, 8, 198, 4798, 7, 84, 18504, 12397, 13, 32707, 62, 11487, 8, 198, 6738, 266, 9587, 2736, 1018, 13, 9288, 1324, 1330, 1332, 62, 1324, 355, 3586, 198 ]
2.658537
41
GET_ALL_GENRES = """ SELECT name FROM genres """ INSERT_GENRE = """ INSERT INTO genres (name) VALUES (:name) """
[ 18851, 62, 7036, 62, 35353, 19535, 796, 37227, 198, 46506, 1438, 198, 10913, 2662, 27962, 198, 37811, 198, 198, 20913, 17395, 62, 35353, 2200, 796, 37227, 198, 20913, 17395, 39319, 27962, 357, 3672, 8, 26173, 35409, 357, 25, 3672, 8, 19...
2.651163
43
#------------------------------------------------------------------------------ # Image Face Triming Tool # Copyright (c) 2019, scpepper All rights reserved. #------------------------------------------------------------------------------ import numpy as np import os import sys import cv2 import tensorflow as tf import...
[ 2, 10097, 26171, 198, 2, 7412, 15399, 833, 320, 278, 16984, 198, 2, 15069, 357, 66, 8, 13130, 11, 629, 431, 2848, 1439, 2489, 10395, 13, 198, 2, 10097, 26171, 198, 198, 11748, 299, 32152, 355, 45941, 198, 11748, 28686, 198, 11748, 2...
3.166038
265
from setuptools import setup classifiers = [ 'Intended Audience :: Developers', 'License :: OSI Approved :: MIT License', 'Operating System :: POSIX' ] + [ ('Programming Language :: Python :: %s' % x) for x in '2.7'.split() ] test_requirements = [ 'pytest', 'pytest-cov', 'coveralls', ...
[ 6738, 900, 37623, 10141, 1330, 9058, 198, 198, 4871, 13350, 796, 685, 198, 220, 220, 220, 705, 5317, 1631, 7591, 1240, 7904, 34152, 3256, 198, 220, 220, 220, 705, 34156, 7904, 7294, 40, 20010, 1079, 7904, 17168, 13789, 3256, 198, 220, ...
2.346154
624
#Configuration file fragment used for ModelpMSSMFilter module (GeneratorInterface/GenFilters/plugins/ModelpMSSMFilter.cc) initalisation #ModelpMSSMFilter_cfi GeneratorInterface/GenFilters/python/ModelpMSSMFilter_cfi.py import FWCore.ParameterSet.Config as cms ModelpMSSMFilter = cms.EDFilter("ModelpMSSMFilter", gpss...
[ 2, 38149, 2393, 24225, 973, 329, 9104, 79, 44, 5432, 44, 22417, 8265, 357, 8645, 1352, 39317, 14, 13746, 11928, 1010, 14, 37390, 14, 17633, 79, 44, 5432, 44, 22417, 13, 535, 8, 287, 1287, 5612, 198, 2, 17633, 79, 44, 5432, 44, 224...
2.21883
786
# coding: utf-8 from tornado.web import UIModule
[ 2, 19617, 25, 3384, 69, 12, 23, 198, 6738, 33718, 13, 12384, 1330, 471, 3955, 375, 2261, 628 ]
2.777778
18
# coding=utf-8 # Copyright 2018 Pants project contributors (see CONTRIBUTORS.md). # Licensed under the Apache License, Version 2.0 (see LICENSE). from __future__ import absolute_import, division, print_function, unicode_literals from hashlib import sha1 from future.utils import PY3 from pants.base.payload_field imp...
[ 2, 19617, 28, 40477, 12, 23, 198, 2, 15069, 2864, 41689, 1628, 20420, 357, 3826, 27342, 9865, 3843, 20673, 13, 9132, 737, 198, 2, 49962, 739, 262, 24843, 13789, 11, 10628, 362, 13, 15, 357, 3826, 38559, 24290, 737, 198, 198, 6738, 1...
3.522222
180
from datetime import date, timedelta, datetime, time from django.contrib.contenttypes.models import ContentType from django.conf import settings from django.db import models from django.db import connections from django.utils import timezone from .models import Period, StatisticByDate, StatisticByDateAndObject
[ 6738, 4818, 8079, 1330, 3128, 11, 28805, 12514, 11, 4818, 8079, 11, 640, 198, 198, 6738, 42625, 14208, 13, 3642, 822, 13, 11299, 19199, 13, 27530, 1330, 14041, 6030, 198, 6738, 42625, 14208, 13, 10414, 1330, 6460, 198, 6738, 42625, 1420...
3.785714
84
""" Copyright VIP Group Licensed under the Apache License, Version 2.0. Modify from https://github.com/rwightman/pytorch-image-models Original copyright of Ross Wightman below, modifications by VIP Group Hacked together by / copyright Ross Wightman """ from typing import Optional from collections import Order...
[ 37811, 201, 198, 15269, 24791, 4912, 201, 198, 26656, 15385, 739, 262, 24843, 13789, 11, 10628, 362, 13, 15, 13, 201, 198, 5841, 1958, 422, 3740, 1378, 12567, 13, 785, 14, 31653, 432, 805, 14, 9078, 13165, 354, 12, 9060, 12, 27530, ...
2.86087
230
# # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # ...
[ 2, 198, 2, 220, 220, 220, 49962, 739, 262, 24843, 13789, 11, 10628, 362, 13, 15, 357, 1169, 366, 34156, 15341, 345, 743, 198, 2, 220, 220, 220, 407, 779, 428, 2393, 2845, 287, 11846, 351, 262, 13789, 13, 921, 743, 7330, 198, 2, ...
3.47619
252
from time import sleep from os.path import join import pytest from cosmo_tester.framework.examples import get_example_deployment from cosmo_tester.framework.test_hosts import Hosts, VM from cosmo_tester.test_suites.snapshots import ( create_snapshot, download_snapshot, restore_snapshot, upload_snapsho...
[ 6738, 640, 1330, 3993, 198, 6738, 28686, 13, 6978, 1330, 4654, 198, 198, 11748, 12972, 9288, 198, 198, 6738, 8615, 5908, 62, 4879, 353, 13, 30604, 13, 1069, 12629, 1330, 651, 62, 20688, 62, 2934, 1420, 434, 198, 6738, 8615, 5908, 62, ...
2.884058
138
import os, sys, multiprocessing, gym, ray, shutil, argparse, importlib, glob import numpy as np # from ray.rllib.agents.ppo import PPOTrainer, DEFAULT_CONFIG from ray.rllib.agents import ppo, sac from ray.tune.logger import pretty_print from numpngw import write_apng if __name__ == '__main__': parser = argparse....
[ 11748, 28686, 11, 25064, 11, 18540, 305, 919, 278, 11, 11550, 11, 26842, 11, 4423, 346, 11, 1822, 29572, 11, 1330, 8019, 11, 15095, 198, 11748, 299, 32152, 355, 45941, 198, 2, 422, 26842, 13, 81, 297, 571, 13, 49638, 13, 16634, 1330...
2.568275
1,223
from src.models.fcmlp_model import FCMLPModel import pickle from src.datamodules.to_delete.datasets.dnam_dataset import DNAmDataset from torch.utils.data import DataLoader from tqdm import tqdm import pandas as pd if __name__ == "__main__": inference()
[ 6738, 12351, 13, 27530, 13, 16072, 4029, 79, 62, 19849, 1330, 10029, 5805, 47, 17633, 198, 11748, 2298, 293, 198, 6738, 12351, 13, 19608, 321, 375, 5028, 13, 1462, 62, 33678, 13, 19608, 292, 1039, 13, 67, 7402, 62, 19608, 292, 316, ...
2.765957
94
try: import json except ImportError: import simplejson as json import codecs import time import datetime import os import random import time import sys # Just used to highlight matches in tweets. This file does not query anything from Twitter! queries = ["term1", "term2"] outputDir = "output/" # Output direc...
[ 28311, 25, 198, 220, 220, 220, 1330, 33918, 198, 16341, 17267, 12331, 25, 198, 220, 220, 220, 1330, 2829, 17752, 355, 33918, 198, 11748, 40481, 82, 198, 11748, 640, 198, 11748, 4818, 8079, 198, 11748, 28686, 198, 11748, 4738, 198, 11748...
2.487903
496
# -*- coding: utf-8 -*- """Fast-CDC on Unicode Code Points""" import logging from io import StringIO from os.path import basename from statistics import mean from typing import TextIO from iscc_bench.algos.metrics import jaccard from iscc_bench.algos.slide import sliding_window from iscc_bench.readers.mltext import mlt...
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 37811, 22968, 12, 47667, 319, 34371, 6127, 11045, 37811, 198, 11748, 18931, 198, 6738, 33245, 1330, 10903, 9399, 198, 6738, 28686, 13, 6978, 1330, 1615, 12453, 198, 6738, ...
1.956935
3,785
# Copyright (c) 2017, Apple Inc. All rights reserved. # # Use of this source code is governed by a BSD-3-clause license that can be # found in the LICENSE.txt file or at https://opensource.org/licenses/BSD-3-Clause import os, shutil import numpy as _np import coremltools.models.datatypes as datatypes import unittest im...
[ 2, 15069, 357, 66, 8, 2177, 11, 4196, 3457, 13, 1439, 2489, 10395, 13, 198, 2, 198, 2, 5765, 286, 428, 2723, 2438, 318, 21825, 416, 257, 347, 10305, 12, 18, 12, 565, 682, 5964, 326, 460, 307, 198, 2, 1043, 287, 262, 38559, 24290...
3.163265
196
# Generated by Django 2.1.9 on 2019-06-12 08:20 import django.contrib.postgres.fields.jsonb from django.db import migrations
[ 2, 2980, 515, 416, 37770, 362, 13, 16, 13, 24, 319, 13130, 12, 3312, 12, 1065, 8487, 25, 1238, 198, 198, 11748, 42625, 14208, 13, 3642, 822, 13, 7353, 34239, 13, 25747, 13, 17752, 65, 198, 6738, 42625, 14208, 13, 9945, 1330, 15720, ...
2.822222
45
import os import math import collections import json import functools import typing import text_processing import Levenshtein placeholder = '|' space = ' ' silence = placeholder + space replace_placeholder = lambda s, rep = '': s.replace(placeholder, rep) def levenshtein(a, b): """Calculates the Levenshtei...
[ 11748, 28686, 198, 11748, 10688, 198, 11748, 17268, 198, 11748, 33918, 198, 11748, 1257, 310, 10141, 198, 11748, 19720, 198, 11748, 2420, 62, 36948, 198, 11748, 1004, 574, 1477, 22006, 198, 198, 5372, 13829, 796, 705, 91, 6, 198, 13200, ...
2.701064
940
# -*- coding: UTF-8 -*- """ :Script: string_defs.py :Author: Dan.Patterson@carleton.ca :Modified: 2017-06-17 :Purpose: tools for working strings :Useage: : These are mini-onliners or so :---------------------------------------------------------------------: """ # ---- imports, formats, constants ---- ...
[ 2, 532, 9, 12, 19617, 25, 41002, 12, 23, 532, 9, 12, 201, 198, 37811, 201, 198, 25, 7391, 25, 220, 220, 4731, 62, 4299, 82, 13, 9078, 201, 198, 25, 13838, 25, 220, 220, 6035, 13, 12130, 23192, 31, 7718, 10565, 13, 6888, 201, 1...
2.647929
338
# Volatility # Copyright (C) 2007-2013 Volatility Foundation # # This file is part of Volatility. # # Volatility is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License Version 2 as # published by the Free Software Foundation. You may not use, modify or # distribu...
[ 2, 4709, 18486, 198, 2, 15069, 357, 34, 8, 4343, 12, 6390, 4709, 18486, 5693, 198, 2, 198, 2, 770, 2393, 318, 636, 286, 4709, 18486, 13, 198, 2, 198, 2, 4709, 18486, 318, 1479, 3788, 26, 345, 460, 17678, 4163, 340, 290, 14, 273,...
3.63522
318
import numpy as np from PIL import Image import xml.etree.ElementTree as ET import scipy.misc as scm
[ 11748, 299, 32152, 355, 45941, 198, 6738, 350, 4146, 1330, 7412, 198, 11748, 35555, 13, 316, 631, 13, 20180, 27660, 355, 12152, 198, 11748, 629, 541, 88, 13, 44374, 355, 629, 76, 198 ]
3.060606
33
import os import pytest from click.testing import CliRunner from cookiecutter.cli import main from cookiecutter import utils runner = CliRunner() @pytest.fixture def remove_fake_project_dir(request): """ Remove the fake project directory created during the tests. """ request.addfinalizer(fin_remove...
[ 11748, 28686, 198, 11748, 12972, 9288, 198, 198, 6738, 3904, 13, 33407, 1330, 1012, 72, 49493, 198, 198, 6738, 19751, 8968, 353, 13, 44506, 1330, 1388, 198, 6738, 19751, 8968, 353, 1330, 3384, 4487, 198, 198, 16737, 796, 1012, 72, 49493...
2.875486
257
# Code for generating mini-batches. The outout can be any # combination of: # features/0-stats/1-stats/i-vectors/labels/scp-indices # # scp-indices means which position in the data had. This # can for example be used for looking up a trial weight # from a list or for accessing data that is already # loaded to the...
[ 198, 198, 2, 6127, 329, 15453, 9927, 12, 8664, 2052, 13, 383, 503, 448, 460, 307, 597, 198, 2, 6087, 286, 25, 220, 198, 2, 3033, 14, 15, 12, 34242, 14, 16, 12, 34242, 14, 72, 12, 303, 5217, 14, 23912, 1424, 14, 1416, 79, 12, ...
2.630297
2,832
# Copyright 2016-2020 Blue Marble Analytics LLC. # # 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, 15069, 1584, 12, 42334, 4518, 36891, 30437, 11419, 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,...
2.483753
2,185
# -*- coding: utf-8 -*- """ Azure Resource Manager (ARM) Web App Service Plan Operations Execution Module .. versionadded:: 3.0.0 :maintainer: <devops@eitr.tech> :configuration: This module requires Azure Resource Manager credentials to be passed as keyword arguments to every function or via acct in order to work...
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 37811, 198, 26903, 495, 20857, 9142, 357, 33456, 8, 5313, 2034, 4809, 5224, 16205, 37497, 19937, 198, 198, 492, 2196, 29373, 3712, 513, 13, 15, 13, 15, 198, 198, 25, 7...
2.509549
3,613
""" For passing messages one can use Pipe() (for a connection between two processes) or a queue (which allows multiple producers and consumers). Returns a pair (conn1, conn2) of Connection objects representing the ends of a pipe. If duplex is True (the default) then the pipe is bidirectional. If duplex is False th...
[ 37811, 198, 1890, 6427, 6218, 530, 460, 779, 36039, 3419, 357, 1640, 257, 4637, 1022, 734, 7767, 8, 220, 198, 273, 257, 16834, 357, 4758, 3578, 3294, 11408, 290, 7008, 737, 198, 198, 35561, 257, 5166, 357, 37043, 16, 11, 48260, 17, ...
3.394737
190
# coding=utf-8 # Copyright 2018 The Tensor2Tensor 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...
[ 2, 19617, 28, 40477, 12, 23, 198, 2, 15069, 2864, 383, 309, 22854, 17, 51, 22854, 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, 2...
2.632599
5,264
from __future__ import print_function from __future__ import division import os import mmap import struct import re import pasm #Pass in the range of addresses we want to cover, and size the mmap accordingly #TODO: Also check to see if the PRU is asleep #NOTE: This function returns a dictionary oject w...
[ 6738, 11593, 37443, 834, 1330, 3601, 62, 8818, 198, 6738, 11593, 37443, 834, 1330, 7297, 198, 198, 11748, 28686, 198, 11748, 8085, 499, 198, 11748, 2878, 198, 11748, 302, 198, 198, 11748, 279, 8597, 628, 220, 220, 220, 1303, 14478, 287,...
3.805825
103
# ArcGIS Skript # # Zweck: # Anpassen von Haltungs- und Hausanschlussdaten mithilfe von Schachtsohlen # # Anmerkungen: # Kommentare sind in Englisch verfasst, nur die ausgegebenen Nachrichten sind auf Deutsch. # Damit wird möglichst viel Arbeit vermieden, falls das Skript mal bei Bedarf auf Englisch ausgeführt werden s...
[ 2, 10173, 38, 1797, 3661, 1968, 198, 2, 198, 2, 1168, 732, 694, 25, 198, 2, 1052, 6603, 268, 18042, 367, 2501, 2150, 82, 12, 3318, 367, 8717, 504, 354, 75, 1046, 19608, 268, 285, 342, 346, 5036, 18042, 3059, 19725, 568, 71, 11925,...
2.336097
9,890
import pytest from selenium import webdriver from selenium.webdriver.support.wait import WebDriverWait @pytest.fixture
[ 11748, 12972, 9288, 198, 6738, 384, 11925, 1505, 1330, 3992, 26230, 198, 6738, 384, 11925, 1505, 13, 12384, 26230, 13, 11284, 13, 17077, 1330, 5313, 32103, 21321, 198, 198, 31, 9078, 9288, 13, 69, 9602, 628, 628, 628 ]
3.289474
38
from parlai.scripts.eval_model import EvalModel EvalModel.main( task='customer_Care', model_file='/home/xcs224u/project/Task-Oriented-Chatbot-With-Empathy/data/test_models/pretrained_transformer__ed_cc/model', metrics = ['ppl','f1','accuracy','hits@1'], # model_file='zoo:bert/model', # fp16 = False,...
[ 6738, 1582, 75, 1872, 13, 46521, 13, 18206, 62, 19849, 1330, 26439, 17633, 220, 198, 36, 2100, 17633, 13, 12417, 7, 198, 220, 220, 220, 4876, 11639, 23144, 263, 62, 17784, 3256, 198, 220, 220, 220, 2746, 62, 7753, 11639, 14, 11195, ...
2.339623
159
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Created on Tue Jul 17 13:34:41 2018 """ import requests import json
[ 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, 41972, 319, 30030, 5979, 1596, 1511, 25, 2682, 25, 3901, 2864, 198, 198, 37811, 198, 198, 11748, 7007, ...
2.489796
49
import gdb from undodb.debugger_extensions import udb def count_calls(func_name): """ Counts how many times func_name is hit during the replay of the currently loaded recording and returns the hit count. """ # Set a breakpoint for the specified function. bp = gdb.Breakpoint(func_name) # ...
[ 11748, 308, 9945, 198, 198, 6738, 3318, 375, 65, 13, 24442, 1362, 62, 2302, 5736, 1330, 334, 9945, 628, 198, 4299, 954, 62, 66, 5691, 7, 20786, 62, 3672, 2599, 198, 220, 220, 220, 37227, 198, 220, 220, 220, 2764, 82, 703, 867, 166...
3.067729
251
# pylint: skip-file # test: subdirs = frm2 # test: setups = pgaa # test: setupcode = SetDetectors(det) # typical PGAA application from nicos import session loaded_setups = session.loaded_setups if 'pgaa' in loaded_setups: printwarning('Execute PGAA specific tests') sample_motor.status(0) samplepos.stat...
[ 2, 279, 2645, 600, 25, 14267, 12, 7753, 198, 198, 2, 1332, 25, 850, 15908, 82, 796, 1216, 76, 17, 198, 2, 1332, 25, 44266, 796, 279, 4908, 64, 198, 2, 1332, 25, 9058, 8189, 796, 5345, 47504, 669, 7, 15255, 8, 198, 198, 2, 7226...
2.378505
214
#!/usr/bin/env python # -*- coding: utf-8 from distutils.version import StrictVersion from .common import has_utility, MacDriver
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 198, 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 198, 6738, 1233, 26791, 13, 9641, 1330, 520, 2012, 14815, 198, 198, 6738, 764, 11321, 1330, 468, 62, 315, 879, 11, 4100, 32103, 628 ]
3.046512
43
""" Distributed under the terms of the BSD 3-Clause License. The full license is in the file LICENSE, distributed with this software. Author: Jun Zhu <jun.zhu@xfel.eu> Copyright (C) European X-Ray Free-Electron Laser Facility GmbH. All rights reserved. """ import multiprocessing as mp from threading import Event from...
[ 37811, 198, 20344, 6169, 739, 262, 2846, 286, 262, 347, 10305, 513, 12, 2601, 682, 13789, 13, 198, 198, 464, 1336, 5964, 318, 287, 262, 2393, 38559, 24290, 11, 9387, 351, 428, 3788, 13, 198, 198, 13838, 25, 7653, 33144, 1279, 29741, ...
1.90774
3,902
""" Test PCA_with_scaling """ from gfeat.utils import PCA_with_standard_sample_deviation_scaling import numpy as np import pandas as pd import numpy.testing as npt
[ 37811, 198, 14402, 4217, 32, 62, 4480, 62, 1416, 4272, 198, 37811, 198, 198, 6738, 308, 27594, 13, 26791, 1330, 4217, 32, 62, 4480, 62, 20307, 62, 39873, 62, 7959, 3920, 62, 1416, 4272, 198, 11748, 299, 32152, 355, 45941, 198, 11748, ...
2.912281
57
import unittest from hazelcast.hash import murmur_hash3_x86_32, hash_to_index
[ 11748, 555, 715, 395, 198, 198, 6738, 11595, 417, 2701, 13, 17831, 1330, 4636, 28582, 62, 17831, 18, 62, 87, 4521, 62, 2624, 11, 12234, 62, 1462, 62, 9630, 628 ]
2.666667
30
""" settings.index """ import zoom
[ 37811, 198, 220, 220, 220, 6460, 13, 9630, 198, 37811, 198, 198, 11748, 19792, 198 ]
2.666667
15
# Copyright (c) 2019 PaddlePaddle 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 applic...
[ 2, 15069, 357, 66, 8, 13130, 220, 350, 37382, 47, 37382, 46665, 13, 1439, 6923, 33876, 13, 198, 2, 198, 2, 49962, 739, 262, 24843, 13789, 11, 10628, 362, 13, 15, 357, 1169, 366, 34156, 1, 198, 2, 345, 743, 407, 779, 428, 2393, 2...
3.639286
280
from tkinter import * import time root = Tk() root.title("Tkinter 15min timer") root.geometry("250x200") count = 0 compliment = Label(root, text="") compliment.grid(row=0, column=0) totalLabel = Label(root, text=f'Total: {count} times') totalLabel.grid(row=1, column=0) Label(root, text="What good will I do from now...
[ 6738, 256, 74, 3849, 1330, 1635, 198, 11748, 640, 198, 198, 15763, 796, 309, 74, 3419, 198, 15763, 13, 7839, 7203, 51, 74, 3849, 1315, 1084, 19781, 4943, 198, 15763, 13, 469, 15748, 7203, 9031, 87, 2167, 4943, 198, 198, 9127, 796, 6...
2.66875
160
import math import numpy as np from random import randint from random import sample import matplotlib.pyplot as plt import matplotlib.path as mpath import igraph as ig from matplotlib import pylab import pandas as pd from scipy.stats import ks_2samp as kolmogorov_smirnov_similarity # Retorna um indice ger...
[ 11748, 10688, 198, 198, 11748, 299, 32152, 355, 45941, 198, 6738, 4738, 1330, 43720, 600, 198, 6738, 4738, 1330, 6291, 198, 11748, 2603, 29487, 8019, 13, 9078, 29487, 355, 458, 83, 198, 11748, 2603, 29487, 8019, 13, 6978, 355, 285, 6978...
2.753623
552
import altair as alt from altair.utils.schemapi import Undefined, UndefinedType def _check_catplot_transform(transform, mark): """Check to make sure transform is valid for catplot. Parameters ---------- transform : str or list of strings Which transform to use. Valid entries are: ...
[ 11748, 5988, 958, 355, 5988, 198, 6738, 5988, 958, 13, 26791, 13, 1416, 4411, 15042, 1330, 13794, 18156, 11, 13794, 18156, 6030, 628, 198, 4299, 4808, 9122, 62, 9246, 29487, 62, 35636, 7, 35636, 11, 1317, 2599, 198, 220, 220, 220, 372...
2.038856
1,853
import sys read = sys.stdin.buffer.read readline = sys.stdin.buffer.readline readlines = sys.stdin.buffer.readlines sys.setrecursionlimit(10 ** 7) h, w = map(int, readline().split()) a = [list(map(int, readline().split())) for _ in range(h)] ans = float('inf') for i in range(h): for j in range(w): v = c...
[ 11748, 25064, 198, 961, 796, 25064, 13, 19282, 259, 13, 22252, 13, 961, 198, 961, 1370, 796, 25064, 13, 19282, 259, 13, 22252, 13, 961, 1370, 198, 961, 6615, 796, 25064, 13, 19282, 259, 13, 22252, 13, 961, 6615, 198, 17597, 13, 2617...
2.287425
167
import numpy import time
[ 11748, 299, 32152, 198, 11748, 640, 628 ]
3.714286
7
import time from pathlib import Path from tqdm import tqdm import hydra from omegaconf import DictConfig # 言語処理 # import fasttext # import fasttext.util from transformers import BertTokenizer, BertModel # データ処理 import numpy as np import torch @hydra.main(config_path="conf/preprocess", config_name="config") if _...
[ 11748, 640, 198, 6738, 3108, 8019, 1330, 10644, 198, 6738, 256, 80, 36020, 1330, 256, 80, 36020, 198, 11748, 25039, 198, 6738, 267, 28917, 7807, 69, 1330, 360, 713, 16934, 198, 198, 2, 5525, 101, 222, 45739, 252, 49035, 99, 49426, 228...
2.7
130
from packetframer import PacketFramer TEST_PATH = "/tmp/amazing_fifo" framer = PacketFramer( fh_read=open(TEST_PATH, "rb") ) while True: packet = framer.read_packet() if not packet: print("All done!") break print("Read", packet)
[ 6738, 19638, 19298, 263, 1330, 6400, 316, 21055, 263, 198, 198, 51, 6465, 62, 34219, 796, 12813, 22065, 14, 321, 4070, 62, 32041, 78, 1, 198, 198, 19298, 263, 796, 6400, 316, 21055, 263, 7, 198, 220, 220, 220, 277, 71, 62, 961, 28...
2.273504
117
''' log: IndexError: list index out of range #WRONG agent number is 99**n #for i = 0 j = 0 at the start of the run, #the line sum += data[i-1][j] is trying to read into negative list space that doesn't exist ''' # blur --------------------------------------- import matplotlib.pyplot import random data = [] processe...
[ 7061, 6, 198, 6404, 25, 220, 198, 15732, 12331, 25, 1351, 6376, 503, 286, 2837, 198, 2, 18564, 18494, 5797, 1271, 318, 7388, 1174, 77, 198, 2, 1640, 1312, 796, 657, 474, 796, 657, 379, 262, 923, 286, 262, 1057, 11, 220, 198, 2, ...
2.37911
517
import os import subprocess ROOT = os.path.dirname(os.path.dirname(__file__)) class NoApplication(tk.Frame): """An application to tell the client 'no'""" def show_alert(title: str, content: str) -> None: """Show an alert message using the desktop notifier.""" subprocess.call(["notify-send", title, content]) ...
[ 11748, 28686, 198, 11748, 850, 14681, 198, 198, 13252, 2394, 796, 28686, 13, 6978, 13, 15908, 3672, 7, 418, 13, 6978, 13, 15908, 3672, 7, 834, 7753, 834, 4008, 198, 198, 4871, 1400, 23416, 7, 30488, 13, 19778, 2599, 198, 197, 37811, ...
2.908163
196
import numpy as np import unittest from collections import OrderedDict import bnpy from AbstractEndToEndTest import AbstractEndToEndTest
[ 11748, 299, 32152, 355, 45941, 198, 11748, 555, 715, 395, 198, 6738, 17268, 1330, 14230, 1068, 35, 713, 198, 198, 11748, 275, 77, 9078, 198, 6738, 27741, 12915, 2514, 12915, 14402, 1330, 27741, 12915, 2514, 12915, 14402, 628 ]
3.657895
38
#Text Encryption Project #Created by MyKoh #2017-09-24 words = raw_input("Please enter words in small letter you wish to encrypt") #To encrypt to numbers in sequence ie: 'a' = 1 #To encrypt to ASCII codes textToNumberConversion()
[ 2, 8206, 14711, 13168, 4935, 198, 2, 41972, 416, 2011, 42, 1219, 198, 2, 5539, 12, 2931, 12, 1731, 198, 198, 10879, 796, 8246, 62, 15414, 7203, 5492, 3802, 2456, 287, 1402, 3850, 345, 4601, 284, 34117, 4943, 198, 198, 2, 2514, 34117...
3.295775
71
from datetime import datetime from . import update_one, find_one, delete_one, make_id
[ 6738, 4818, 8079, 1330, 4818, 8079, 198, 6738, 764, 1330, 4296, 62, 505, 11, 1064, 62, 505, 11, 12233, 62, 505, 11, 787, 62, 312, 628, 628 ]
3.296296
27
import ipcalc import sys # Pull address from input # addrString = raw_input("Address (x.x.x.x/x): ") addrString = sys.argv[1] #Pull netmask subnet = ipcalc.Network(addrString) # Generate empty list AddrList = [] # Append items to the list for x in ipcalc.Network(addrString): AddrList.append(str(x)) # Print it out ...
[ 11748, 20966, 9948, 66, 198, 11748, 25064, 198, 198, 2, 21429, 2209, 422, 5128, 198, 2, 37817, 10100, 796, 8246, 62, 15414, 7203, 20231, 357, 87, 13, 87, 13, 87, 13, 87, 14, 87, 2599, 366, 8, 198, 29851, 10100, 796, 25064, 13, 853...
2.706186
194
# Copyright 2021 The TensorFlow Quantum 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, 29082, 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,...
2.216163
5,061
import asyncio from typing import Any, Dict, Optional, Set from urllib.parse import urlencode from aiohttp import ClientSession from stonky.enums import CurrencyType from stonky.exceptions import StonkyException from stonky.stock import Stock
[ 11748, 30351, 952, 198, 6738, 19720, 1330, 4377, 11, 360, 713, 11, 32233, 11, 5345, 198, 6738, 2956, 297, 571, 13, 29572, 1330, 2956, 11925, 8189, 198, 198, 6738, 257, 952, 4023, 1330, 20985, 36044, 198, 198, 6738, 336, 261, 2584, 13,...
3.514286
70
# coding=utf-8 # -------------------------------------------------------------------------- # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may cause incorrect behavior and will be lost if the code is # regenerated. # -------------------------------------------------------------------------- from ...
[ 2, 19617, 28, 40477, 12, 23, 198, 2, 16529, 35937, 198, 2, 6127, 7560, 416, 5413, 357, 49, 8, 11160, 19452, 6127, 35986, 13, 198, 2, 19179, 743, 2728, 11491, 4069, 290, 481, 307, 2626, 611, 262, 2438, 318, 198, 2, 16935, 515, 13, ...
2.685542
1,819
n1 = int(input('me diga um numero: ')) n2 = int(input('me diga outro numero: ')) s = n1 + n2 print('a soma entre {} {} é {}'.format(n1, n2, s))
[ 77, 16, 796, 493, 7, 15414, 10786, 1326, 3100, 64, 23781, 997, 3529, 25, 705, 4008, 198, 77, 17, 796, 493, 7, 15414, 10786, 1326, 3100, 64, 503, 305, 997, 3529, 25, 705, 4008, 198, 82, 796, 299, 16, 1343, 299, 17, 198, 4798, 107...
2.164179
67
from django.shortcuts import render, redirect, reverse from django.views.generic.edit import FormView from django.http import HttpResponse, Http404, HttpResponseRedirect from app_noticias.forms import ContatoForm, TagForm, AddNoticiaForm from django.contrib.auth.models import User from app_noticias.models import Tag fr...
[ 6738, 42625, 14208, 13, 19509, 23779, 1330, 8543, 11, 18941, 11, 9575, 198, 6738, 42625, 14208, 13, 33571, 13, 41357, 13, 19312, 1330, 5178, 7680, 198, 6738, 42625, 14208, 13, 4023, 1330, 367, 29281, 31077, 11, 367, 29281, 26429, 11, 36...
3.436975
119
import time import azure import azure.batch.models as batch_models import azure.batch.models.batch_error as batch_error from aztk import error, models from aztk.utils import constants, helpers output_file = constants.TASK_WORKING_DIR + "/" + constants.SPARK_SUBMIT_LOGS_FILE def __wait_for_app_to_be_running(batch_...
[ 11748, 640, 198, 198, 11748, 35560, 495, 198, 11748, 35560, 495, 13, 43501, 13, 27530, 355, 15458, 62, 27530, 198, 11748, 35560, 495, 13, 43501, 13, 27530, 13, 43501, 62, 18224, 355, 15458, 62, 18224, 198, 198, 6738, 35560, 30488, 1330,...
2.67893
299
''' I heard that summing numbers in [0,1] until the total is >1 will require an average of e numbers. This code puts that to the test. Hopefully pretty graphs, other visualisations, and optimisations to be added later. ''' import random import math # import matplotlib.pyplot as plt # Generate a number in the range ...
[ 7061, 6, 198, 40, 2982, 326, 2160, 2229, 3146, 287, 685, 15, 11, 16, 60, 1566, 262, 2472, 318, 1875, 16, 481, 198, 46115, 281, 2811, 286, 304, 3146, 13, 198, 198, 1212, 2438, 7584, 326, 284, 262, 1332, 13, 198, 198, 32365, 2495, ...
3.117117
222
from ..database.database_handler import DatabaseHandler as dataBaseHandler from ..funcs.log import create_logger from ..verific.verify_insertion import Verification logger = create_logger('DatabaseConnector') """The database connector allows the network layer to access database functionality. It is meant to be used m...
[ 6738, 11485, 48806, 13, 48806, 62, 30281, 1330, 24047, 25060, 355, 1366, 14881, 25060, 198, 6738, 11485, 12543, 6359, 13, 6404, 1330, 2251, 62, 6404, 1362, 198, 6738, 11485, 332, 811, 13, 332, 1958, 62, 28463, 295, 1330, 4643, 2649, 198...
2.982456
855
# -*- coding: utf-8 -*- """Top-level package for Holographer.""" __author__ = """Gus Dunn""" __email__ = 'w.gus.dunn@gmail.com' __version__ = '0.0.2'
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 198, 37811, 9126, 12, 5715, 5301, 329, 367, 928, 2416, 372, 526, 15931, 198, 198, 834, 9800, 834, 796, 37227, 38, 385, 30833, 37811, 198, 834, 12888, 834, 796, 705, 86...
2.202899
69
#============LICENSE_START============================================================================================================= # Copyright (C) 2020 AT&T Intellectual Property. All rights reserved. #=================================================================== # Licensed under the Apache License, Version ...
[ 2, 25609, 43, 2149, 24290, 62, 2257, 7227, 23926, 10052, 25609, 28, 198, 2, 15069, 357, 34, 8, 12131, 5161, 5, 51, 42443, 14161, 13, 1439, 2489, 10395, 13, 198, 2, 23926, 18604, 198, 2, 49962, 739, 262, 24843, 13789, 11, 10628, 362,...
3.611465
471
from dlutils.models.gans.gan.gan import GenerativeAdversarialNetworks, \ update_fn
[ 6738, 288, 75, 26791, 13, 27530, 13, 39352, 13, 1030, 13, 1030, 1330, 2980, 876, 2782, 690, 36098, 7934, 5225, 11, 3467, 198, 220, 220, 220, 4296, 62, 22184, 198 ]
2.9
30
# -*- coding: utf-8 -*- from datetime import datetime import requests from werkzeug.contrib.atom import AtomFeed ENDPOINT = "https://api.github.com/users/{username}/received_events" TITLE = "{username}'s github timeline" SUBTITLE = "Timeline as of {date}" AUTHOR = "{}'s github" FEED_TITLE = "{} {} {}" URL = "https://...
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 6738, 4818, 8079, 1330, 4818, 8079, 198, 11748, 7007, 198, 6738, 266, 9587, 2736, 1018, 13, 3642, 822, 13, 37696, 1330, 33102, 18332, 628, 198, 1677, 6322, 46, 12394, 79...
2.688
125
""" Copyright (C) 2004-2015 Pivotal Software, Inc. All rights reserved. This program and the accompanying materials are made available under the terms of the 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 ...
[ 37811, 198, 15269, 357, 34, 8, 5472, 12, 4626, 350, 452, 4997, 10442, 11, 3457, 13, 1439, 2489, 10395, 13, 198, 198, 1212, 1430, 290, 262, 19249, 5696, 389, 925, 1695, 739, 198, 1169, 2846, 286, 262, 739, 262, 24843, 13789, 11, 1062...
2.335104
3,954
# -*- coding:utf-8 -*- import glob # 获取指定目录下的内容 # yijian = glob.glob(r"F:\*\*\*.docx") # print(yijian) """ 在python中,glob模块是用来查找匹配的文件的 在查找的条件中,需要用到Unix shell中的匹配规则: * : 匹配所有 ? : 匹配一个字符 *.* : 匹配如:[hello.txt,cat.xls,xxx234s.doc] ?.* : 匹配如:[1.txt,h.py] ?.gif: ...
[ 2, 532, 9, 12, 19617, 25, 40477, 12, 23, 532, 9, 12, 198, 198, 11748, 15095, 198, 198, 2, 5525, 236, 115, 20998, 244, 162, 234, 229, 22522, 248, 33566, 106, 37605, 243, 10310, 233, 21410, 37863, 227, 22522, 117, 198, 2, 331, 2926,...
1.243292
559
import numpy as np ''' Problem 1.2 ''' ''' Problem 1.2 ''' ''' Problem 1.8 '''
[ 11748, 299, 32152, 355, 45941, 628, 198, 7061, 6, 198, 40781, 352, 13, 17, 198, 7061, 6, 198, 198, 7061, 6, 198, 40781, 352, 13, 17, 198, 7061, 6, 198, 198, 7061, 6, 198, 40781, 352, 13, 23, 198, 7061, 6, 628 ]
2
42
from instruction.event import _Instruction from instruction.entity import * CAMERA, PARTY0, PARTY1, PARTY2, PARTY3 = range(0x30, 0x35)
[ 6738, 12064, 13, 15596, 1330, 4808, 6310, 2762, 198, 6738, 12064, 13, 26858, 1330, 1635, 198, 198, 34, 2390, 46461, 11, 16652, 56, 15, 11, 16652, 56, 16, 11, 16652, 56, 17, 11, 16652, 56, 18, 796, 2837, 7, 15, 87, 1270, 11, 657, ...
2.833333
48
import os from .storage import Storage
[ 11748, 28686, 198, 198, 6738, 764, 35350, 1330, 20514, 198 ]
4
10
from sdk.color_print import c_print from cloud_accounts import cld_migrate, cld_get, cld_compare, cld_update, cld_delete def sync(tenant_sessions: list, addMode: bool, upMode: bool, delMode: bool, logger:object): '''Update, add, or delete cloud accounts to normalize all tenants to be the same as the source tenant'...
[ 6738, 264, 34388, 13, 8043, 62, 4798, 1330, 269, 62, 4798, 198, 6738, 6279, 62, 23317, 82, 1330, 269, 335, 62, 76, 42175, 11, 269, 335, 62, 1136, 11, 269, 335, 62, 5589, 533, 11, 269, 335, 62, 19119, 11, 269, 335, 62, 33678, 198...
2.32526
1,156
from darwinian_shift.utils.gene_sequence_functions import * from tests.conftest import EXON_FILE, REFERENCE_FASTA_FILE import pickle import os import numpy as np from pandas.testing import assert_frame_equal import pytest FILE_DIR = os.path.dirname(os.path.realpath(__file__)) @pytest.mark.parametrize("gene,transcript...
[ 6738, 288, 283, 5404, 666, 62, 30846, 13, 26791, 13, 70, 1734, 62, 43167, 62, 12543, 2733, 1330, 1635, 198, 6738, 5254, 13, 1102, 701, 395, 1330, 7788, 1340, 62, 25664, 11, 4526, 24302, 18310, 62, 37, 1921, 5603, 62, 25664, 198, 117...
2.761194
134
for _ in range(int(input())): n = int(input()) s = input() alpha = set(s) ans = n countImpossible = 0 for i in alpha: curr = 0 lb, ub = 0, n - 1 while lb < ub: if s[lb] == s[ub]: lb += 1 ub -= 1 continue ...
[ 1640, 4808, 287, 2837, 7, 600, 7, 15414, 28955, 2599, 198, 220, 220, 220, 299, 796, 493, 7, 15414, 28955, 198, 220, 220, 220, 264, 796, 5128, 3419, 198, 220, 220, 220, 17130, 796, 900, 7, 82, 8, 198, 220, 220, 220, 9093, 796, 29...
1.515702
605
''' Uses [[https://github.com/karlicoss/HPI][HPI]] dogsheep module to import Hacker News items. ''' import textwrap from promnesia.common import Visit, Loc, Results
[ 7061, 6, 198, 5842, 274, 16410, 5450, 1378, 12567, 13, 785, 14, 21070, 677, 793, 14, 39, 11901, 7131, 39, 11901, 11907, 6844, 258, 538, 8265, 284, 1330, 198, 39, 10735, 3000, 3709, 13, 198, 7061, 6, 198, 198, 11748, 2420, 37150, 198...
3
56
from dataclasses import dataclass, field from typing import List, Dict, Any, Tuple from yamldataclassconfig.config import YamlDataClassConfig @dataclass @dataclass @dataclass @dataclass @dataclass @dataclass @dataclass
[ 6738, 4818, 330, 28958, 1330, 4818, 330, 31172, 11, 2214, 198, 6738, 19720, 1330, 7343, 11, 360, 713, 11, 4377, 11, 309, 29291, 198, 198, 6738, 331, 321, 335, 265, 330, 31172, 11250, 13, 11250, 1330, 14063, 75, 6601, 9487, 16934, 628,...
2.785714
84
import logging import numpy from PIL import Image from dirs import dest log = logging.getLogger()
[ 11748, 18931, 198, 198, 11748, 299, 32152, 198, 6738, 350, 4146, 1330, 7412, 198, 6738, 288, 17062, 1330, 2244, 198, 6404, 796, 18931, 13, 1136, 11187, 1362, 3419, 628, 198 ]
3.366667
30
from flask import request, jsonify from app import app, db from app.models import Subject, SubjectSchema, SubjectsSchema @app.route('/subjects', methods=['get']) @app.route('/subjects', methods=['post'])
[ 6738, 42903, 1330, 2581, 11, 33918, 1958, 198, 6738, 598, 1330, 598, 11, 20613, 198, 6738, 598, 13, 27530, 1330, 15540, 11, 15540, 27054, 2611, 11, 43815, 27054, 2611, 198, 198, 31, 1324, 13, 38629, 10786, 14, 32796, 82, 3256, 5050, 2...
3.21875
64
#---------------------------------------------- # Teste de cálculo e tomada de decisão # # Conceito A = nota >= 9 and < 10 # Conceito B = nota >= 8 and 8,99999 # Conceito C = nota >= 7 and 7,99999 # Conceito D = nota >= 6 and 6,99999 # Conceito R = nota < 5 # #---------------------------------------------- import os f...
[ 198, 2, 3880, 26171, 198, 2, 6208, 68, 390, 269, 6557, 75, 3129, 78, 304, 16667, 4763, 390, 875, 271, 28749, 198, 2, 198, 2, 44530, 10094, 317, 796, 407, 64, 18189, 860, 290, 1279, 838, 198, 2, 44530, 10094, 347, 796, 407, 64, 1...
3.256881
109
import pytest from briefcase.commands import NewCommand from briefcase.commands.base import full_kwargs class DummyNewCommand(NewCommand): """ A dummy new command that doesn't actually do anything. It only serves to track which actions would be performend. """ description = 'Dummy new command' ...
[ 11748, 12972, 9288, 198, 198, 6738, 4506, 7442, 13, 9503, 1746, 1330, 968, 21575, 198, 6738, 4506, 7442, 13, 9503, 1746, 13, 8692, 1330, 1336, 62, 46265, 22046, 628, 198, 4871, 360, 13513, 3791, 21575, 7, 3791, 21575, 2599, 198, 220, ...
3.326733
101
from ma import ma from models.category import CategoryModel from schemas.market import MarketSchema
[ 6738, 17266, 1330, 17266, 198, 6738, 4981, 13, 22872, 1330, 21743, 17633, 198, 6738, 3897, 5356, 13, 10728, 1330, 5991, 27054, 2611, 198 ]
4.347826
23
# BSD 3-Clause License # # Copyright (c) 2020, Hyuk Ko # 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 notice, this # list ...
[ 2, 347, 10305, 513, 12, 2601, 682, 13789, 198, 2, 198, 2, 15069, 357, 66, 8, 12131, 11, 6707, 2724, 17634, 198, 2, 1439, 2489, 10395, 13, 198, 2, 198, 2, 2297, 396, 3890, 290, 779, 287, 2723, 290, 13934, 5107, 11, 351, 393, 1231...
3.079498
717
""" Stuff to generate and modify images """ # pylint: disable=line-too-long, logging-fstring-interpolation, dangerous-default-value, logging-not-lazy from datetime import timedelta, datetime as dt import sys import glob import logging import argparse from pathlib import Path import os from dateutil.rrule import rrule, ...
[ 37811, 27864, 284, 7716, 290, 13096, 4263, 37227, 198, 2, 279, 2645, 600, 25, 15560, 28, 1370, 12, 18820, 12, 6511, 11, 18931, 12, 69, 8841, 12, 3849, 16104, 341, 11, 4923, 12, 12286, 12, 8367, 11, 18931, 12, 1662, 12, 75, 12582, ...
2.338873
2,166
user = None
[ 7220, 796, 6045 ]
3.666667
3
from .interval import Interval from datetime import date, datetime from .interval import Interval, SpikeStatus, ChannelType
[ 6738, 764, 3849, 2100, 1330, 4225, 2100, 198, 6738, 4818, 8079, 1330, 3128, 11, 4818, 8079, 198, 6738, 764, 3849, 2100, 1330, 4225, 2100, 11, 26309, 19580, 11, 11102, 6030, 628 ]
4.032258
31
import sys from glyphview import ( GlyphView, GlyphScene, GlyphItem ) from PyQt4.QtGui import ( QApplication, QDialog, QPen, QBrush, QHBoxLayout, QPushButton, QVBoxLayout, QGraphicsRectItem, QGraphicsSimpleTextItem, QPixmap, QFileDialog, QPainter, QComboBox, QSpin...
[ 11748, 25064, 198, 198, 6738, 25874, 1177, 1330, 357, 27949, 746, 7680, 11, 27949, 746, 36542, 11, 27949, 746, 7449, 1267, 198, 198, 6738, 9485, 48, 83, 19, 13, 48, 83, 8205, 72, 1330, 357, 1195, 23416, 11, 1195, 44204, 11, 1195, 25...
2.454545
253
from polyphony import testbench @testbench test()
[ 6738, 7514, 23021, 1330, 1332, 26968, 198, 198, 31, 9288, 26968, 198, 198, 9288, 3419, 198 ]
3.25
16
tabuada = int(input('Qual tabuada queres saber?: ')) for cont in range(0, 11): print('{} x {} = {}'.format(tabuada,cont,tabuada*cont))
[ 8658, 84, 4763, 796, 493, 7, 15414, 10786, 46181, 7400, 84, 4763, 8358, 411, 17463, 263, 27514, 705, 4008, 201, 198, 1640, 542, 287, 2837, 7, 15, 11, 1367, 2599, 201, 198, 220, 220, 220, 3601, 10786, 90, 92, 2124, 23884, 796, 23884,...
2.366667
60
from collections import Counter import webcolors CSS3_COLORS = webcolors.CSS3_NAMES_TO_HEX.keys()
[ 6738, 17268, 1330, 15034, 198, 198, 11748, 3992, 4033, 669, 628, 198, 49155, 18, 62, 25154, 20673, 796, 3992, 4033, 669, 13, 49155, 18, 62, 45, 29559, 62, 10468, 62, 39, 6369, 13, 13083, 3419, 628, 628 ]
2.810811
37
from . import base as baseline from . import conf_proposal from . import conf_proposal_patch configurations = {} configurations['baseline'] = baseline configurations['conf_proposal'] = conf_proposal configurations['conf_proposal_patch'] = conf_proposal_patch
[ 6738, 764, 1330, 2779, 355, 14805, 198, 6738, 764, 1330, 1013, 62, 1676, 40007, 198, 6738, 764, 1330, 1013, 62, 1676, 40007, 62, 17147, 628, 198, 11250, 20074, 796, 23884, 198, 198, 11250, 20074, 17816, 12093, 4470, 20520, 796, 14805, 1...
3.589041
73
#!/usr/bin/env python # coding: utf-8 # # Analyzer # # Statistically, visually, and through machine learning compare mRNA and lncRNA sequences from GENCODE v38. # # Assume the user downloaded files from GENCODE v38 [FTP](http://ftp.ebi.ac.uk/pub/databases/gencode/Gencode_human/release_38/) # to a subdirectory called...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 198, 2, 19617, 25, 3384, 69, 12, 23, 198, 198, 2, 1303, 16213, 9107, 198, 2, 220, 198, 2, 5133, 16772, 11, 22632, 11, 290, 832, 4572, 4673, 8996, 47227, 290, 300, 10782, 27204, 16311, 4...
2.449851
4,377
#!/usr/bin/env python3 # Author: Aaron Esau (Arinerron) <security@aaronesau.com> # Writeup: https://aaronesau.com/blog/posts/6 # Product: uftpd 2.6-2.10 # CVE ID: CVE-2020-5221 # This exploit uses a directory traversal vulnerability and escapes uftpd's # crappy implementation of a chroot jail. It does not require au...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 18, 628, 198, 2, 6434, 25, 12139, 8678, 559, 357, 3163, 7274, 1313, 8, 1279, 12961, 31, 64, 283, 1952, 559, 13, 785, 29, 198, 2, 19430, 929, 25, 3740, 1378, 64, 283, 1952, 559, 13, 78...
2.372689
3,354
""" Name: ExSTraCS_Online_Environement.py Authors: Ryan Urbanowicz - Written at Dartmouth College, Hanover, NH, USA Contact: ryan.j.urbanowicz@darmouth.edu Created: April 25, 2014 Modified: August 25,2014 Description: ExSTraCS is best suited to offline iterative learning, however this module has b...
[ 37811, 198, 5376, 25, 220, 220, 220, 220, 220, 220, 220, 1475, 2257, 430, 7902, 62, 14439, 62, 4834, 2268, 972, 13, 9078, 198, 30515, 669, 25, 220, 220, 220, 220, 6047, 14665, 47982, 532, 22503, 379, 47888, 5535, 11, 9530, 2502, 11,...
4.255385
650
""" cP_EOS.py SPDX-License-Identifier: BSD-2-Clause Copyright (c) 2021 Stuart Nolan. All rights reserved. """ import pdb import CoolProp.CoolProp as cP from CoolProp import AbstractState as cPAS from tabulate import tabulate from scipy.optimize import minimize """ from CoolProp/include/DataStructures.h 0 iphase_liqu...
[ 37811, 198, 66, 47, 62, 36, 2640, 13, 9078, 198, 198, 4303, 36227, 12, 34156, 12, 33234, 7483, 25, 347, 10305, 12, 17, 12, 2601, 682, 198, 15269, 357, 66, 8, 33448, 22559, 27788, 13, 1439, 2489, 10395, 13, 198, 37811, 198, 11748, ...
2.00581
1,549
# Copyright 2020 Open Climate Tech Contributors # # 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 agr...
[ 2, 15069, 12131, 4946, 13963, 9634, 25767, 669, 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, ...
3.899225
258
import os import subprocess #################################################################################################### # Additional PYTHONPATH to allow notebooks to import custom modules at a few pre-defined places. _cwd = os.getcwd() _line = 'sys.path.append("{}")' _pythonpath = [ "import sys, os", ...
[ 11748, 28686, 198, 11748, 850, 14681, 198, 198, 29113, 29113, 29113, 4242, 198, 2, 15891, 350, 56, 4221, 1340, 34219, 284, 1249, 43935, 284, 1330, 2183, 13103, 379, 257, 1178, 662, 12, 23211, 4113, 13, 198, 198, 62, 66, 16993, 796, 28...
2.701266
395
import asyncio import logging import sys logging.basicConfig(format="{message}", style='{', datefmt="%H:%M:%S", level=logging.DEBUG) if __name__ == "__main__": asyncio.run(main(*sys.argv[1:]))
[ 11748, 30351, 952, 198, 11748, 18931, 198, 11748, 25064, 628, 198, 6404, 2667, 13, 35487, 16934, 7, 18982, 2625, 90, 20500, 92, 1600, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220...
1.871429
140