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 2016-2018 Scality # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law ...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 18, 198, 198, 2, 15069, 1584, 12, 7908, 1446, 1483, 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.735433
635
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Created on Thu Dec 16 12:47:50 2021 @author: Sebastian Schäfer @institution: Martin-Luther-Universität Halle-Wittenberg @email: sebastian.schaefer@student.uni-halle.de """ import os import sys import tkinter as tk import tkinter.ttk as ttk from .src.classes.install_...
[ 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, 26223, 4280, 1467, 1105, 25, 2857, 25, 1120, 33448, 198, 198, 31, 9800, 25, 26190, 3059, ...
2.78866
194
from aetherling.space_time.type_helpers import * from aetherling.space_time.nested_counters import * import fault from aetherling.helpers.fault_helpers import compile_and_run
[ 6738, 257, 6750, 1359, 13, 13200, 62, 2435, 13, 4906, 62, 16794, 364, 1330, 1635, 198, 6738, 257, 6750, 1359, 13, 13200, 62, 2435, 13, 77, 7287, 62, 66, 15044, 1330, 1635, 198, 11748, 8046, 198, 6738, 257, 6750, 1359, 13, 16794, 364...
3.125
56
# Generated by Django 3.1.3 on 2020-11-08 06:01 from django.db import migrations, models
[ 2, 2980, 515, 416, 37770, 513, 13, 16, 13, 18, 319, 12131, 12, 1157, 12, 2919, 9130, 25, 486, 198, 198, 6738, 42625, 14208, 13, 9945, 1330, 15720, 602, 11, 4981, 628 ]
2.84375
32
from django import forms from .models import Subscribe from django.db import transaction from video.models import Video
[ 6738, 42625, 14208, 1330, 5107, 198, 6738, 764, 27530, 1330, 19808, 198, 6738, 42625, 14208, 13, 9945, 1330, 8611, 198, 6738, 2008, 13, 27530, 1330, 7623 ]
4.576923
26
""" MIT License Copyright (c) 2018 Rafael Felix Alves 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, merge, pub...
[ 37811, 198, 36393, 13789, 198, 198, 15269, 357, 66, 8, 2864, 31918, 29721, 978, 1158, 198, 198, 5990, 3411, 318, 29376, 7520, 11, 1479, 286, 3877, 11, 284, 597, 1048, 16727, 257, 4866, 198, 1659, 428, 3788, 290, 3917, 10314, 3696, 357...
3.259336
482
from decimal import Decimal import pytest from freezegun import freeze_time from beanbot.errors import UserError from beanbot.models import Action, Event from beanbot.parser import parse_keyboard_data, parse_message invalid_messages = [ 'No money', 'No currency 12.0 USD', '3.0', '+ no money' '+12 st...
[ 6738, 32465, 1330, 4280, 4402, 198, 198, 11748, 12972, 9288, 198, 6738, 1479, 89, 1533, 403, 1330, 16611, 62, 2435, 198, 198, 6738, 26394, 13645, 13, 48277, 1330, 11787, 12331, 198, 6738, 26394, 13645, 13, 27530, 1330, 7561, 11, 8558, 1...
2.689655
145
from qtstrap import * from qtpy.QtSql import * from .log_table_view import LogTableView from .log_filter_controls import FilterControls from .log_database_handler import DatabaseHandler, db_conn_name try: from command_palette import CommandPalette, Command command_palette_available = True except: command_...
[ 6738, 10662, 83, 26418, 1330, 1635, 198, 6738, 10662, 83, 9078, 13, 48, 83, 50, 13976, 1330, 1635, 198, 6738, 764, 6404, 62, 11487, 62, 1177, 1330, 5972, 10962, 7680, 198, 6738, 764, 6404, 62, 24455, 62, 13716, 82, 1330, 25853, 15988,...
3.222222
108
# -*- coding: utf-8 -*- ''' @author: Milan Cermak <milan.cermak@gmail.com> @author: Moloch This module implements sessions for Tornado using Memcached. ''' import re import os import time import base64 import logging import datetime import collections import cPickle as pickle from os import _exit SID_SIZE = 16 #...
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 7061, 6, 198, 31, 9800, 25, 21574, 327, 7780, 461, 1279, 25433, 272, 13, 2189, 76, 461, 31, 14816, 13, 785, 29, 198, 31, 9800, 25, 17958, 5374, 198, 198, 1212, 8265,...
2.367271
3,477
from multiprocessing import Process from bilibili import Bilibili from config import (enable_youtube, enable_twitcasting, enable_openrec, enable_mirrativ, enable_bilibili, enable_youtube_temp, channel_id, userid, oprec_id, twitcasting_ld, bilibili_id) from daemon import VideoUpload from mirrativ im...
[ 6738, 18540, 305, 919, 278, 1330, 10854, 198, 198, 6738, 275, 22282, 2403, 1330, 347, 22282, 2403, 198, 6738, 4566, 1330, 357, 21633, 62, 11604, 11, 7139, 62, 4246, 270, 19913, 11, 7139, 62, 9654, 8344, 11, 7139, 62, 10793, 10366, 452...
2.905759
191
__title__ = "dti" __author__ = "diceroll123" __license__ = "MIT" __copyright__ = "Copyright 2020-present diceroll123" __version__ = "0.0.1a" import logging from . import utils from .client import Client from .constants import * from .enums import * from .errors import * from .models import * logging.getLogger(__name...
[ 834, 7839, 834, 796, 366, 67, 20259, 1, 198, 834, 9800, 834, 796, 366, 67, 16647, 692, 10163, 1, 198, 834, 43085, 834, 796, 366, 36393, 1, 198, 834, 22163, 4766, 834, 796, 366, 15269, 12131, 12, 25579, 288, 16647, 692, 10163, 1, 1...
2.934426
122
import requests, base64 import config id = config.GAPI_CONFIG['client_id'] secret = config.GAPI_CONFIG['client_secret'] type = config.GAPI_CONFIG['grant_type'] # api1 = GapiClass() # a = api1.getMember('planning_d') # if __name__ == "__main__": # print(a)
[ 11748, 7007, 11, 2779, 2414, 198, 11748, 4566, 198, 198, 312, 796, 4566, 13, 38, 17614, 62, 10943, 16254, 17816, 16366, 62, 312, 20520, 198, 21078, 796, 4566, 13, 38, 17614, 62, 10943, 16254, 17816, 16366, 62, 21078, 20520, 198, 4906, ...
2.558824
102
from django.conf import settings from django.contrib import messages from django.contrib.auth.decorators import login_required from django.contrib.auth.mixins import LoginRequiredMixin, UserPassesTestMixin from django.core.mail import EmailMessage from django.shortcuts import redirect, render from .models import Newsle...
[ 6738, 42625, 14208, 13, 10414, 1330, 6460, 198, 6738, 42625, 14208, 13, 3642, 822, 1330, 6218, 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, ...
2.838462
260
# # PySNMP MIB module A3COM-HUAWEI-EPON-DEVICE-MIB (http://snmplabs.com/pysmi) # ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/A3COM-HUAWEI-EPON-DEVICE-MIB # Produced by pysmi-0.3.4 at Wed May 1 11:04:50 2019 # On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4 # Using Python vers...
[ 2, 198, 2, 9485, 15571, 7378, 337, 9865, 8265, 317, 18, 9858, 12, 39, 34970, 8845, 40, 12, 8905, 1340, 12, 7206, 27389, 12, 8895, 33, 357, 4023, 1378, 16184, 76, 489, 8937, 13, 785, 14, 79, 893, 11632, 8, 198, 2, 7054, 45, 13, ...
2.944515
23,484
''' Author Alumet 2015 https://github.com/Alumet/Codingame ''' l, c, n = [int(i) for i in input().split()] groupes=[] loop_g=[] loop_m=[] looping=True for i in range(n): groupes.append([i,int(input())]) result=0 j=0 while j < c: load=0 sub_group=[] for i in range (n): if l-l...
[ 7061, 6, 198, 220, 6434, 978, 388, 316, 1853, 198, 220, 3740, 1378, 12567, 13, 785, 14, 2348, 388, 316, 14, 34, 7656, 480, 198, 7061, 6, 198, 198, 75, 11, 269, 11, 299, 796, 685, 600, 7, 72, 8, 329, 1312, 287, 5128, 22446, 353...
1.730835
587
import logging import random import secrets import string import uuid import hashlib from django.conf import settings from django.core.files.storage import FileSystemStorage from django.http import Http404 from django.shortcuts import redirect from django.core.mail import send_mail, EmailMultiAlternatives from DRC.set...
[ 11748, 18931, 198, 11748, 4738, 198, 11748, 13141, 198, 11748, 4731, 198, 11748, 334, 27112, 198, 11748, 12234, 8019, 198, 198, 6738, 42625, 14208, 13, 10414, 1330, 6460, 198, 6738, 42625, 14208, 13, 7295, 13, 16624, 13, 35350, 1330, 9220...
2.193204
1,030
# Generated by Django 3.0.5 on 2020-11-02 16:58 from django.db import migrations import django_mysql.models
[ 2, 2980, 515, 416, 37770, 513, 13, 15, 13, 20, 319, 12131, 12, 1157, 12, 2999, 1467, 25, 3365, 198, 198, 6738, 42625, 14208, 13, 9945, 1330, 15720, 602, 198, 11748, 42625, 14208, 62, 28744, 13976, 13, 27530, 628 ]
2.820513
39
import sys from java.awt import * from java.io import * from java.lang import * from javax.swing import * from edu.mines.jtk.awt import * from edu.mines.jtk.dsp import * from edu.mines.jtk.io import * from edu.mines.jtk.mosaic import * from edu.mines.jtk.util import * from edu.mines.jtk.util.ArrayMath import * from ...
[ 11748, 25064, 198, 198, 6738, 20129, 13, 707, 83, 1330, 1635, 198, 6738, 20129, 13, 952, 1330, 1635, 198, 6738, 20129, 13, 17204, 1330, 1635, 198, 6738, 474, 615, 897, 13, 46737, 1330, 1635, 198, 198, 6738, 1225, 84, 13, 1084, 274, ...
2.83642
324
#!/usr/bin/env python # -*- coding: utf-8 -*- ''' A temperature/pressure/humidity server application ''' # Imports import os #from __future__ import division import sys import cherrypy from socket import getfqdn as gethostname from datetime import datetime # Jinja2 templating from jinja2 import Environment, FileSys...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 198, 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 7061, 6, 198, 220, 317, 5951, 14, 36151, 14, 17047, 17995, 4382, 3586, 198, 7061, 6, 198, 198, 2, 1846, 3742, 198, ...
2.389014
1,329
import datetime import json import pandas as pd from dateutil import relativedelta from rest_framework.generics import ListCreateAPIView, get_object_or_404 from rest_framework.response import Response from rest_framework.views import APIView from analytics.events.utils.dataframe_builders import ProductivityLogEventsD...
[ 11748, 4818, 8079, 198, 11748, 33918, 198, 198, 11748, 19798, 292, 355, 279, 67, 198, 6738, 3128, 22602, 1330, 48993, 1572, 12514, 198, 6738, 1334, 62, 30604, 13, 8612, 873, 1330, 7343, 16447, 2969, 3824, 769, 11, 651, 62, 15252, 62, ...
3.646447
577
import pytest from distro.distro import load
[ 11748, 12972, 9288, 198, 198, 6738, 1233, 305, 13, 17080, 305, 1330, 3440, 628 ]
3.357143
14
""" Logging interface for the fritzconnection library. On module level an instance of `FritzLogger` gets created as `fritzlogger` that can get imported by: >>> from fritzconnection.core.logger import fritzlogger The fritzlogger instance is preset to report on DEBUG level, the default handler is the NullHandler. To d...
[ 37811, 198, 11187, 2667, 7071, 329, 262, 277, 29574, 38659, 5888, 13, 198, 198, 2202, 8265, 1241, 281, 4554, 286, 4600, 37, 29574, 11187, 1362, 63, 3011, 2727, 355, 4600, 69, 29574, 6404, 1362, 63, 198, 5562, 460, 651, 17392, 416, 25,...
2.660305
1,572
import numpy as np class EnvMap(object): """EnvMap object used to load and render map from file"""
[ 11748, 299, 32152, 355, 45941, 198, 198, 4871, 2039, 85, 13912, 7, 15252, 2599, 198, 220, 220, 220, 37227, 4834, 85, 13912, 2134, 973, 284, 3440, 290, 8543, 3975, 422, 2393, 37811, 628, 628, 628, 628, 198 ]
3.027027
37
""" Write a program that calculates and prints the value according to the given formula: Q = Square root of [(2 * C * D)/H] Following are the fixed values of C and H: C is 50. H is 30. D is the variable whose values should be input to your program in a comma-separated sequence....
[ 37811, 19430, 257, 1430, 326, 43707, 290, 20842, 262, 1988, 1864, 198, 220, 220, 220, 284, 262, 1813, 10451, 25, 198, 220, 220, 220, 220, 220, 220, 220, 1195, 796, 9276, 6808, 286, 47527, 17, 1635, 327, 1635, 360, 20679, 39, 60, 628...
2.625455
275
# this routine creates a standalone tikz image from the code of a single tikz image
[ 2, 428, 8027, 8075, 257, 27669, 256, 1134, 89, 2939, 422, 262, 2438, 286, 257, 2060, 256, 1134, 89, 2939 ]
4.15
20
from django.conf import settings
[ 6738, 42625, 14208, 13, 10414, 1330, 6460, 628 ]
4.25
8
# emacs: -*- mode: python-mode; py-indent-offset: 4; indent-tabs-mode: nil -*- # vi: set ft=python sts=4 ts=4 sw=4 et: ### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ## # # See COPYING file distributed along with the NiBabel package for the # copyright and license terms. # ### ### ### #...
[ 2, 795, 16436, 25, 532, 9, 12, 4235, 25, 21015, 12, 14171, 26, 12972, 12, 521, 298, 12, 28968, 25, 604, 26, 33793, 12, 8658, 82, 12, 14171, 25, 18038, 532, 9, 12, 198, 2, 25357, 25, 900, 10117, 28, 29412, 39747, 28, 19, 40379, ...
2.651633
643
import numpy as np from networktables import NetworkTables from utils import lazytalonsrx
[ 11748, 299, 32152, 355, 45941, 198, 6738, 3127, 83, 2977, 1330, 7311, 51, 2977, 198, 198, 6738, 3384, 4487, 1330, 16931, 39240, 684, 40914, 628, 198 ]
3.576923
26
# Copyright 2022 Huawei Technologies Co., Ltd # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to...
[ 2, 15069, 33160, 43208, 21852, 1766, 1539, 12052, 198, 2, 198, 2, 49962, 739, 262, 24843, 13789, 11, 10628, 362, 13, 15, 357, 1169, 366, 34156, 15341, 198, 2, 345, 743, 407, 779, 428, 2393, 2845, 287, 11846, 351, 262, 13789, 13, 198...
4.251497
167
# Copyright (c) 2021-2022, NVIDIA CORPORATION. import numpy as np import pandas as pd import pytest import cudf from cudf.testing._utils import assert_eq @pytest.mark.parametrize("ts_resolution", ["ns", "s", "ms"]) @pytest.mark.parametrize("rule", ["2S", "10S"]) @pytest.mark.parametrize("rule", ["2S", "10S"])...
[ 2, 15069, 357, 66, 8, 33448, 12, 1238, 1828, 11, 15127, 23929, 44680, 6234, 13, 198, 198, 11748, 299, 32152, 355, 45941, 198, 11748, 19798, 292, 355, 279, 67, 198, 11748, 12972, 9288, 198, 198, 11748, 269, 463, 69, 198, 6738, 269, 4...
1.962857
350
import argparse import sys sys.path.insert(0, '../../') import cv2 import numpy as np from flexinfer.misc import Config, set_device from flexinfer.preprocess import build_preprocess from flexinfer.model import build_model from flexinfer.postprocess import build_postprocess PALETTE = [[0, 0, 0], [128, 0, 0], [0, 128,...
[ 11748, 1822, 29572, 198, 11748, 25064, 198, 17597, 13, 6978, 13, 28463, 7, 15, 11, 705, 40720, 40720, 11537, 198, 198, 11748, 269, 85, 17, 198, 11748, 299, 32152, 355, 45941, 198, 6738, 7059, 259, 2232, 13, 44374, 1330, 17056, 11, 900...
2.432796
372
import unittest from server import app from model import (db, connect_to_db, example_data, User, Review, CriticReview, Game, CurrentGame, Cover, Franchise, Genre, Developer, Platform, Screenshot) from correlation import pearson import pull_data import datetime import gen_fake_dat...
[ 11748, 555, 715, 395, 198, 198, 6738, 4382, 1330, 598, 198, 6738, 2746, 1330, 357, 9945, 11, 2018, 62, 1462, 62, 9945, 11, 1672, 62, 7890, 11, 11787, 11, 6602, 11, 10056, 291, 14832, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220...
2.373634
2,837
# coding=utf-8 from __future__ import absolute_import, division, print_function, \ unicode_literals def with_context(exc, context): # type: (Exception, dict) -> Exception """ Attaches a ``context`` value to an Exception. Before:: exc = Exception('Frog blast the vent core!') exc.context = { ... }...
[ 2, 19617, 28, 40477, 12, 23, 198, 6738, 11593, 37443, 834, 1330, 4112, 62, 11748, 11, 7297, 11, 3601, 62, 8818, 11, 3467, 198, 220, 28000, 1098, 62, 17201, 874, 628, 198, 4299, 351, 62, 22866, 7, 41194, 11, 4732, 2599, 198, 220, 1...
2.988636
176
__author__ = 'Jovan Brakus <jovan@brakus.rs>' __contact__ = 'jovan@brakus.rs' __date__ = '31 May 2012' from jinja2 import Environment, PackageLoader jinja_env = Environment(loader=PackageLoader('configserver', 'static/templates'))
[ 834, 9800, 834, 220, 220, 220, 796, 705, 41, 22590, 9718, 45614, 1279, 73, 22590, 31, 16057, 45614, 13, 3808, 29, 6, 198, 834, 32057, 834, 220, 220, 796, 705, 73, 22590, 31, 16057, 45614, 13, 3808, 6, 198, 834, 4475, 834, 220, 220...
2.738636
88
from enum import Enum
[ 6738, 33829, 1330, 2039, 388, 198 ]
3.666667
6
import sys from PySide2.QtWidgets import QApplication, QMainWindow from PySide2.QtCore import QFile from PySide2 import QtCore from PySide2.QtGui import QPixmap from ui_files.main_gui import Ui_MainWindow from ui_files.image_window_gui import Ui_MainWindow as Ui_ImageWindow from pathlib import Path #class ImageWind...
[ 11748, 25064, 198, 6738, 9485, 24819, 17, 13, 48, 83, 54, 312, 11407, 1330, 1195, 23416, 11, 1195, 13383, 27703, 198, 6738, 9485, 24819, 17, 13, 48, 83, 14055, 1330, 1195, 8979, 198, 6738, 9485, 24819, 17, 1330, 33734, 14055, 198, 673...
2.796875
192
import numpy as np import pandas as pd import glob import sys import os def find_label(file, path): """Find audit label relating to spectrogram file. # Arguments file: spectrogram file. path: spectrogram directory. # Returns audit label file path relating to spectrogram file. If the ...
[ 11748, 299, 32152, 355, 45941, 198, 11748, 19798, 292, 355, 279, 67, 198, 11748, 15095, 198, 11748, 25064, 198, 11748, 28686, 628, 198, 4299, 1064, 62, 18242, 7, 7753, 11, 3108, 2599, 198, 220, 220, 220, 37227, 16742, 14984, 6167, 11270...
2.052079
2,381
import sys import tkinter as tk l=sys.argv[1:] js=dict() for j in range(len(l)): i=l[j] if i.startswith('-'): try: js[i[1:]]=l[j+1] except: js['h']=1 if 'help' in js or 'h' in js: print('sight -x 1920 -y 1080 -color #ff0000 -name sight -r 20 -wd 6 -len 40') exit() u('waits',0.2,flo...
[ 11748, 25064, 201, 198, 11748, 256, 74, 3849, 355, 256, 74, 201, 198, 201, 198, 75, 28, 17597, 13, 853, 85, 58, 16, 47715, 201, 198, 201, 198, 8457, 28, 11600, 3419, 201, 198, 1640, 474, 287, 2837, 7, 11925, 7, 75, 8, 2599, 201,...
1.763231
718
# Name : Gradescope Export Renamer # Author : Ryan Carr # Modified : 05/17/2019 # Purppose : Opens .yml file in exports folder and renames .pdfs according # to student name. # Ask user for full path to .yml file # Open yml file and skip first line # Process file one submission at a time storing filen...
[ 2, 6530, 220, 220, 220, 220, 1058, 1902, 2367, 66, 3008, 36472, 7152, 2382, 201, 198, 2, 6434, 220, 220, 1058, 6047, 20765, 201, 198, 2, 40499, 1058, 8870, 14, 1558, 14, 23344, 201, 198, 2, 9330, 381, 577, 1058, 8670, 641, 764, 88...
3.34058
138
# Test methods with long descriptive names can omit docstrings # pylint: disable=missing-docstring import io from os import path, remove import unittest import tempfile import shutil import time from collections import OrderedDict import numpy as np from Orange.data import Table, DiscreteVariable from Orange.data.io...
[ 2, 6208, 5050, 351, 890, 35644, 3891, 460, 42848, 2205, 37336, 198, 2, 279, 2645, 600, 25, 15560, 28, 45688, 12, 15390, 8841, 198, 198, 11748, 33245, 198, 6738, 28686, 1330, 3108, 11, 4781, 198, 11748, 555, 715, 395, 198, 11748, 20218...
3.820225
89
import logging import os import platform import re import time import traceback import prettytable from airtest.core.android.constant import DEFAULT_ADB_PATH from airrun.common.command_helper import command_execute from airrun.common.exception import LocalPackageNotFoundException from airrun.common.helper import deal...
[ 11748, 18931, 198, 11748, 28686, 198, 11748, 3859, 198, 11748, 302, 198, 11748, 640, 198, 11748, 12854, 1891, 198, 198, 11748, 2495, 11487, 198, 6738, 1633, 9288, 13, 7295, 13, 19411, 13, 9979, 415, 1330, 5550, 38865, 62, 2885, 33, 62, ...
3.584906
106
""" # Part of localization phase """ import sys import os import pickle import keras import keras.backend as K from scripts.tools.utils import ModelUtils def simplify_layer_name(layer_name:str): """ simplify layer name 'conv2d_copy_LA' -> conv2d """ if 'copy' in layer_name: layer_name = layer_...
[ 37811, 198, 2, 2142, 220, 286, 42842, 7108, 198, 37811, 198, 11748, 25064, 198, 11748, 28686, 198, 11748, 2298, 293, 198, 11748, 41927, 292, 198, 11748, 41927, 292, 13, 1891, 437, 355, 509, 198, 6738, 14750, 13, 31391, 13, 26791, 1330, ...
2.283644
483
# -*- coding: utf-8 -*- # Form implementation generated from reading ui file 'RecToolUI.ui' # # Created by: PyQt5 UI code generator 5.9.2 # # WARNING! All changes made in this file will be lost! from PyQt5 import QtCore, QtGui, QtWidgets
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 198, 2, 5178, 7822, 7560, 422, 3555, 334, 72, 2393, 705, 6690, 25391, 10080, 13, 9019, 6, 198, 2, 198, 2, 15622, 416, 25, 9485, 48, 83, 20, 12454, 2438, 17301, 642, ...
2.802326
86
from abc import abstractmethod from typing import Any, Sequence from common.serializers.serialization import client_req_rep_store_serializer from plenum.common.request import Request
[ 6738, 450, 66, 1330, 12531, 24396, 198, 6738, 19720, 1330, 4377, 11, 45835, 198, 198, 6738, 2219, 13, 46911, 11341, 13, 46911, 1634, 1330, 5456, 62, 42180, 62, 7856, 62, 8095, 62, 46911, 7509, 198, 6738, 458, 44709, 13, 11321, 13, 259...
4.111111
45
from contextlib import contextmanager import os import tornado.httpserver import tornado.ioloop import tornado.web import requests import tempfile import shutil import subprocess from git import GitCommandError, Repo, Actor import github from fnmatch import fnmatch @contextmanager if __name__ == "__main__": ma...
[ 198, 6738, 4732, 8019, 1330, 4732, 37153, 198, 11748, 28686, 198, 11748, 33718, 13, 5450, 18497, 198, 11748, 33718, 13, 1669, 11224, 198, 11748, 33718, 13, 12384, 198, 11748, 7007, 198, 11748, 20218, 7753, 198, 11748, 4423, 346, 198, 1174...
3.651685
89
""" Integration test for API Warning: this test runs against a real database See README.adoc Lint using: black -t py37 -l 100 --fast ooniapi/tests/integ/test_integration.py Test using: pytest-3 -k test_aggregation """ from datetime import datetime, timedelta from hashlib import shake_128 from urllib.parse i...
[ 37811, 198, 34500, 1358, 1332, 329, 7824, 198, 198, 20361, 25, 428, 1332, 4539, 1028, 257, 1103, 6831, 198, 6214, 20832, 11682, 13, 324, 420, 198, 198, 43, 600, 1262, 25, 198, 220, 220, 220, 2042, 532, 83, 12972, 2718, 532, 75, 1802...
2.486174
3,110
# creates a polygonoal buffer in geojson format given ... # xin,yin = centre point # radius = buffer radius # npoints = number of points (e.g. 3 for triangle, 6 for hex, Inf. for circle, etc.) import math import matplotlib.pyplot as plt print buffer(50,50,1,24)
[ 2, 8075, 257, 7514, 14520, 78, 282, 11876, 287, 4903, 13210, 1559, 5794, 1813, 2644, 198, 2, 2124, 259, 11, 88, 259, 796, 7372, 966, 198, 2, 16874, 796, 11876, 16874, 198, 2, 299, 13033, 796, 1271, 286, 2173, 357, 68, 13, 70, 13, ...
3
88
# pylint: disable=no-self-use,invalid-name import gzip import numpy import pytest from deep_qa.data.embeddings import PretrainedEmbeddings from deep_qa.data.data_indexer import DataIndexer from ..common.test_case import DeepQaTestCase # pylint: disable=protected-access
[ 2, 279, 2645, 600, 25, 15560, 28, 3919, 12, 944, 12, 1904, 11, 259, 12102, 12, 3672, 198, 11748, 308, 13344, 198, 11748, 299, 32152, 198, 11748, 12972, 9288, 198, 198, 6738, 2769, 62, 20402, 13, 7890, 13, 20521, 67, 654, 1330, 37123...
2.98913
92
import rot13 if __name__ == '__main__': """ Perform rotational encryption on an input. """ source_file = 'cc.txt' state = 'r' alphabet = 'abcdefghijklmnopqrstuvwxyz' rotation = 13 output_file = 'ccenc.txt' output_mode = 'w' rotation_dict = rot13.assign_and_return_posit...
[ 198, 11748, 5724, 1485, 628, 198, 361, 11593, 3672, 834, 6624, 705, 834, 12417, 834, 10354, 198, 220, 220, 220, 37227, 35006, 5724, 864, 15835, 319, 281, 5128, 13, 198, 220, 220, 220, 220, 198, 220, 220, 220, 37227, 628, 220, 220, 2...
2.432432
259
#!/usr/bin/python3 ''' /****************************************************************** * * Copyright 2018 Samsung Electronics 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...
[ 2, 48443, 14629, 14, 8800, 14, 29412, 18, 198, 7061, 6, 198, 14, 17174, 17174, 1174, 198, 9, 198, 9, 15069, 2864, 10397, 27828, 1439, 6923, 33876, 13, 198, 9, 198, 9, 198, 9, 198, 9, 49962, 739, 262, 24843, 13789, 11, 10628, 362, ...
3.100575
348
#!/usr/bin/env python # # Encrypt sys.stdin # import fileinput import os.path import logging from Crypto.Cipher import PKCS1_v1_5 from Crypto.PublicKey import RSA ROOT = os.path.dirname(__file__) PRIV_KEY = os.path.join(ROOT, 'rsa_1024_priv.pem') PUB_KEY = os.path.join(ROOT, 'rsa_1024_pub.pem') if __name__ ...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 198, 2, 198, 2, 14711, 6012, 25064, 13, 19282, 259, 198, 2, 220, 198, 198, 11748, 2393, 15414, 198, 11748, 28686, 13, 6978, 198, 11748, 18931, 198, 198, 6738, 36579, 13, 34, 10803, 1330, ...
2.4125
160
import copy import hashlib import importlib import inspect import json import os import sys from database import get_database
[ 11748, 4866, 198, 11748, 12234, 8019, 198, 11748, 1330, 8019, 198, 11748, 10104, 198, 11748, 33918, 198, 11748, 28686, 628, 198, 198, 11748, 25064, 198, 198, 6738, 6831, 1330, 651, 62, 48806, 628, 628, 628, 628 ]
3.805556
36
""" Operational Sutras """ from sanskrit_parser.base.sanskrit_base import SanskritImmutableString, SLP1 from decimal import Decimal from copy import deepcopy from sanskrit_parser.generator.paninian_object import PaninianObject import logging logger = logging.getLogger(__name__) # Global Domains # Base class
[ 37811, 198, 18843, 864, 45220, 8847, 198, 198, 37811, 198, 6738, 264, 34738, 799, 62, 48610, 13, 8692, 13, 82, 34738, 799, 62, 8692, 1330, 46178, 24675, 18187, 10100, 11, 12419, 47, 16, 198, 6738, 32465, 1330, 4280, 4402, 198, 6738, 4...
3.336842
95
import pytest from satellite.vault.transformer import ( FormDataTransformer, TransformerError, XMLTransformer, ) XML_PAYLOAD = b"""<CC> <Foo>PREFIX<Bar>TEXT1</Bar>TEXT2<Bar>TEXT3</Bar>TAIL</Foo> <Number>4111111111111111</Number> <Number>4444333322221111</Number> <CVC>123</CVC> </CC>""" ...
[ 11748, 12972, 9288, 198, 198, 6738, 11210, 13, 85, 1721, 13, 7645, 16354, 1330, 357, 198, 220, 220, 220, 5178, 6601, 8291, 16354, 11, 198, 220, 220, 220, 3602, 16354, 12331, 11, 198, 220, 220, 220, 23735, 8291, 16354, 11, 198, 8, 62...
1.908847
373
############################################################################ # Copyright ESIEE Paris (2018) # # # # Contributor(s) : Benjamin Perret # # ...
[ 29113, 29113, 7804, 4242, 198, 2, 15069, 412, 11584, 6500, 6342, 357, 7908, 8, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, ...
2.001908
524
# **************************************************************************** # # # # |\ # # MovieTitleScraper.py ------| \---- ...
[ 2, 41906, 17174, 46068, 1303, 198, 2, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, ...
1.747573
1,030
############################################################ # File: utils.py # # Created: 2019-11-18 20:50:50 # # Author : wvinzh # # Email : wvinzh@qq.com # # -----------...
[ 29113, 14468, 7804, 4242, 198, 2, 220, 220, 9220, 25, 3384, 4487, 13, 9078, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 22...
2.012111
578
import bcrypt as b from flask import render_template, request, redirect, url_for, session, abort from sqlalchemy import or_ from app import app from app.models.users import User from app.models.speakers import Speaker from app.models.students import Student SALT = b'$2b$12$QSEeNz4SOAKE/RUZT4zNHO' @app.route('/login...
[ 11748, 275, 29609, 355, 275, 198, 198, 6738, 42903, 1330, 8543, 62, 28243, 11, 2581, 11, 18941, 11, 19016, 62, 1640, 11, 6246, 11, 15614, 198, 6738, 44161, 282, 26599, 1330, 393, 62, 198, 6738, 598, 1330, 598, 198, 6738, 598, 13, 27...
2.703125
192
from pytest import approx
[ 6738, 12972, 9288, 1330, 5561, 198 ]
4.333333
6
class Settings: """ organize our game settings """ def __init__(self): """ initialize our game settings """ self.screen_width = 800 self.screen_height = 600 self.screen_mid_x = (self.screen_width/2) self.screen_mid_y = (self.screen_height/2) self.direction_lis...
[ 198, 4871, 16163, 25, 198, 220, 220, 220, 37227, 16481, 674, 983, 6460, 37227, 628, 220, 220, 220, 825, 11593, 15003, 834, 7, 944, 2599, 198, 220, 220, 220, 220, 220, 220, 220, 37227, 41216, 674, 983, 6460, 37227, 198, 220, 220, 220...
2.289963
269
""" edx_course_team_api Django application initialization. """ from django.apps import AppConfig class EdxCourseTeamApiConfig(AppConfig): """ Configuration for the edx_course_team_api Django application. """ name = 'edx_course_team_api' plugin_app = { 'url_config': { 'cms.dja...
[ 37811, 198, 276, 87, 62, 17319, 62, 15097, 62, 15042, 37770, 3586, 37588, 13, 198, 37811, 198, 198, 6738, 42625, 14208, 13, 18211, 1330, 2034, 16934, 628, 198, 4871, 1717, 87, 49046, 15592, 32, 14415, 16934, 7, 4677, 16934, 2599, 198, ...
2.023026
304
import hashlib import json import requests from requests.packages.urllib3.exceptions import InsecureRequestWarning requests.packages.urllib3.disable_warnings(InsecureRequestWarning) from datetime import datetime import sys import click import glob import os @click.group() @cli.command(help="Create Ova for VM to back...
[ 11748, 12234, 8019, 198, 11748, 33918, 198, 11748, 7007, 198, 6738, 7007, 13, 43789, 13, 333, 297, 571, 18, 13, 1069, 11755, 1330, 554, 22390, 18453, 20361, 198, 8897, 3558, 13, 43789, 13, 333, 297, 571, 18, 13, 40223, 62, 40539, 654,...
2.813765
247
from flask import Flask, render_template, redirect, abort import os from flask_pymongo import PyMongo application = Flask(__name__) application.config['MONGO_DBNAME'] = 'server2' with application.app_context(): mongo = PyMongo(application) d = mongo.db.classes @application.route("/") @application.route("/c...
[ 6738, 42903, 1330, 46947, 11, 8543, 62, 28243, 11, 18941, 11, 15614, 198, 11748, 28686, 198, 198, 6738, 42903, 62, 79, 4948, 25162, 1330, 9485, 44, 25162, 198, 198, 31438, 796, 46947, 7, 834, 3672, 834, 8, 198, 31438, 13, 11250, 17816...
3.136612
183
################################################################################ # Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. The ASF licenses this...
[ 29113, 29113, 14468, 198, 2, 220, 49962, 284, 262, 24843, 10442, 5693, 357, 1921, 37, 8, 739, 530, 198, 2, 220, 393, 517, 18920, 5964, 11704, 13, 220, 4091, 262, 28536, 2393, 198, 2, 220, 9387, 351, 428, 670, 329, 3224, 1321, 198, ...
2.784242
1,358
""" SleekXMPP: The Sleek XMPP Library Copyright (C) 2011 Nathanael C. Fritz This file is part of SleekXMPP. See the file LICENSE for copying permission. """ import logging from sleekxmpp.stanza import StreamFeatures from sleekxmpp.xmlstream import RestartStream, register_stanza_plugin from sleekxmpp...
[ 37811, 198, 220, 220, 220, 19498, 988, 55, 7378, 47, 25, 383, 19498, 988, 1395, 7378, 47, 10074, 198, 220, 220, 220, 15069, 357, 34, 8, 2813, 220, 32607, 2271, 417, 327, 13, 45954, 198, 220, 220, 220, 770, 2393, 318, 636, 286, 194...
3.04023
174
from django.core.exceptions import ValidationError from django.utils.translation import gettext_lazy as _ from phonenumber_field.phonenumber import to_python
[ 6738, 42625, 14208, 13, 7295, 13, 1069, 11755, 1330, 3254, 24765, 12331, 198, 6738, 42625, 14208, 13, 26791, 13, 41519, 1330, 651, 5239, 62, 75, 12582, 355, 4808, 198, 198, 6738, 32896, 268, 4494, 62, 3245, 13, 746, 34481, 4494, 1330, ...
3.555556
45
# MIT License # # Copyright (c) 2021 [FacuFalcone] # # 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, mer...
[ 2, 17168, 13789, 198, 2, 220, 198, 2, 15069, 357, 66, 8, 33448, 685, 47522, 84, 41129, 49180, 60, 198, 2, 220, 198, 2, 2448, 3411, 318, 29376, 7520, 11, 1479, 286, 3877, 11, 284, 597, 1048, 16727, 257, 4866, 198, 2, 286, 428, 37...
3.304274
585
import o3seespy as o3 # for testing only import pytest @pytest.mark.skip() @pytest.mark.skip()
[ 11748, 267, 18, 325, 274, 9078, 355, 267, 18, 220, 1303, 329, 4856, 691, 198, 11748, 12972, 9288, 628, 628, 628, 198, 31, 9078, 9288, 13, 4102, 13, 48267, 3419, 628, 198, 31, 9078, 9288, 13, 4102, 13, 48267, 3419, 628 ]
2.560976
41
import math import time t1 = time.time() N = 28124 prime = [2,3] b = 3 while True: while True: b = b+2 i = 0 t = True while (prime[i]*prime[i] < b): i=i+1 if (b%prime[i] == 0): t = False break ...
[ 11748, 10688, 198, 11748, 640, 198, 198, 83, 16, 796, 640, 13, 2435, 3419, 198, 198, 45, 796, 2579, 17464, 198, 198, 35505, 796, 685, 17, 11, 18, 60, 198, 65, 796, 513, 198, 198, 4514, 6407, 25, 628, 220, 220, 220, 220, 198, 220...
1.685
600
#!/usr/bin/env python # Copyright (c) 2019 Diamond Key Security, NFP # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are # met: # - Redistributions of source code must retain the above copyright notice, #...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 198, 2, 15069, 357, 66, 8, 13130, 220, 13566, 7383, 4765, 11, 399, 5837, 198, 2, 1439, 2489, 10395, 13, 198, 2, 198, 2, 2297, 396, 3890, 290, 779, 287, 2723, 290, 13934, 5107, 11, 351, ...
3.561028
467
from pathlib import Path import json import typing as t import argparse import tokenizers.decoders from tokenizers import Tokenizer from tokenizers.pre_tokenizers import Whitespace from tokenizers.trainers import BpeTrainer from tokenizers.models import BPE from tokenizers.decoders import BPEDecoder from seq2seq.data...
[ 6738, 3108, 8019, 1330, 10644, 198, 11748, 33918, 198, 11748, 19720, 355, 256, 198, 11748, 1822, 29572, 198, 198, 11748, 11241, 11341, 13, 12501, 375, 364, 198, 6738, 11241, 11341, 1330, 29130, 7509, 198, 6738, 11241, 11341, 13, 3866, 62,...
1.937474
2,399
#!/usr/bin/python """ (C) Copyright 2018-2021 Intel Corporation. SPDX-License-Identifier: BSD-2-Clause-Patent """ import os from command_utils_base import CommandFailure from test_utils_container import TestContainer from pydaos.raw import str_to_c_uuid, DaosContainer, DaosObj, IORequest from ior_test_base import Ior...
[ 2, 48443, 14629, 14, 8800, 14, 29412, 198, 37811, 198, 7, 34, 8, 15069, 2864, 12, 1238, 2481, 8180, 10501, 13, 198, 198, 4303, 36227, 12, 34156, 12, 33234, 7483, 25, 347, 10305, 12, 17, 12, 2601, 682, 12, 12130, 298, 198, 37811, 1...
1.981724
26,045
#!/usr/bin/env python3 """ Name: jranderson Date: 03.17.19 Purpose: SwissProt to FASTA """ import argparse import os import re import sys from Bio import SeqIO # -------------------------------------------------------- def get_args(): """get command-line arguments""" parser = argparse.ArgumentParser( ...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 18, 198, 37811, 198, 5376, 25, 474, 25192, 882, 198, 10430, 25, 7643, 13, 1558, 13, 1129, 198, 30026, 3455, 25, 14780, 19703, 284, 376, 1921, 5603, 220, 198, 37811, 198, 198, 11748, 1822, ...
2.442029
1,104
import os INPUT_FILE = os.path.join(os.path.dirname(os.path.realpath(__file__)), "input.txt") if __name__ == '__main__': for row in get_input(INPUT_FILE): print(row)
[ 11748, 28686, 198, 198, 1268, 30076, 62, 25664, 796, 28686, 13, 6978, 13, 22179, 7, 418, 13, 6978, 13, 15908, 3672, 7, 418, 13, 6978, 13, 5305, 6978, 7, 834, 7753, 834, 36911, 366, 15414, 13, 14116, 4943, 198, 198, 361, 11593, 3672,...
2.278481
79
from django.db import models from django.contrib.auth.models import User
[ 6738, 42625, 14208, 13, 9945, 1330, 4981, 198, 6738, 42625, 14208, 13, 3642, 822, 13, 18439, 13, 27530, 1330, 11787, 628 ]
3.52381
21
"""Generate test data for users.""" import factory from tdpservice.stts.test.factories import STTFactory class BaseUserFactory(factory.django.DjangoModelFactory): """Generate test data for users.""" class Meta: """Hardcoded metata data for users.""" model = "users.User" django_get_...
[ 37811, 8645, 378, 1332, 1366, 329, 2985, 526, 15931, 198, 198, 11748, 8860, 198, 198, 6738, 41560, 862, 712, 501, 13, 301, 912, 13, 9288, 13, 22584, 1749, 1330, 3563, 10234, 9548, 628, 198, 4871, 7308, 12982, 22810, 7, 69, 9548, 13, ...
2.835669
785
# Copyright (c) 2012 - 2015 Lars Hupfeldt Nielsen, Hupfeldt IT # All rights reserved. This work is under a BSD license, see LICENSE.TXT. import sys import time import subprocess from jenkinsflow.test.cfg import ApiType from jenkinsflow.test.framework import api_select from jenkinsflow.test.framework.logger import log...
[ 2, 15069, 357, 66, 8, 2321, 532, 1853, 31239, 367, 929, 16265, 83, 31154, 11, 367, 929, 16265, 83, 7283, 198, 2, 1439, 2489, 10395, 13, 770, 670, 318, 739, 257, 347, 10305, 5964, 11, 766, 38559, 24290, 13, 51, 25010, 13, 198, 198,...
2.498701
385
"""Parquet file format functions""" import os import pandas from typing import Dict, List from tempfile import mkstemp import target_snowflake.flattening as flattening def create_copy_sql(table_name: str, stage_name: str, s3_key: str, file_format_name: str...
[ 37811, 10044, 21108, 2393, 5794, 5499, 37811, 198, 11748, 28686, 198, 11748, 19798, 292, 198, 198, 6738, 19720, 1330, 360, 713, 11, 7343, 198, 6738, 20218, 7753, 1330, 33480, 927, 79, 198, 198, 11748, 2496, 62, 82, 2197, 47597, 13, 2704...
2.098345
2,054
# if x > 0 : # r = int(str(x)[::-1]) # # if r ==x: # return True # else: # return False # # else: # return False
[ 198, 220, 220, 220, 220, 220, 220, 220, 1303, 611, 2124, 1875, 657, 1058, 198, 220, 220, 220, 220, 220, 220, 220, 1303, 220, 220, 220, 220, 374, 796, 493, 7, 2536, 7, 87, 38381, 3712, 12, 16, 12962, 198, 220, 220, 220, 220, 220,...
1.435583
163
# gdraw.py """ Copyright 2021 Cesar O. Aguilar 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, merge, publish...
[ 2, 308, 19334, 13, 9078, 198, 37811, 198, 15269, 33448, 327, 18964, 440, 13, 33118, 1794, 198, 198, 5990, 3411, 318, 29376, 7520, 11, 1479, 286, 3877, 11, 284, 597, 1048, 220, 198, 672, 7339, 257, 4866, 286, 428, 3788, 290, 3917, 22...
1.987249
7,607
''' Exercise 6: Rewrite the program that prompts the user for a list of numbers\ and prints out the maximum and minimum of the numbers at the end when the user enters “done”. Write the program to store the numbers the user enters in a list and use the max() and min() functions to com...
[ 7061, 6, 198, 3109, 23697, 718, 25, 198, 220, 220, 220, 16140, 6525, 262, 1430, 326, 36454, 262, 2836, 329, 257, 1351, 286, 3146, 59, 198, 220, 220, 220, 220, 220, 220, 220, 290, 20842, 503, 262, 5415, 290, 5288, 286, 262, 3146, 3...
2.333333
438
# PLY based Lexer class, based on pycparser by Eli Bendersky. # # Copyright (c) 2012, Eli Bendersky # All rights reserved. # # Redistribution and use in source and binary forms, with or without modification, # are permitted provided that the following conditions are met: # # * Redistributions of source code must retain...
[ 2, 9297, 56, 1912, 17210, 263, 1398, 11, 1912, 319, 12972, 13155, 28198, 416, 25204, 347, 7338, 2584, 13, 198, 2, 198, 2, 15069, 357, 66, 8, 2321, 11, 25204, 347, 7338, 2584, 198, 2, 1439, 2489, 10395, 13, 198, 2, 198, 2, 2297, ...
3.361022
626
from dagster import ModeDefinition, PresetDefinition, pipeline from dagster.seven.temp_dir import get_system_temp_directory from hacker_news.ops.download_items import build_comments, build_stories, download_items from hacker_news.ops.id_range_for_time import id_range_for_time from hacker_news.resources import RESOURCES...
[ 6738, 48924, 1706, 1330, 10363, 36621, 11, 1763, 316, 36621, 11, 11523, 198, 6738, 48924, 1706, 13, 26548, 13, 29510, 62, 15908, 1330, 651, 62, 10057, 62, 29510, 62, 34945, 198, 6738, 23385, 62, 10827, 13, 2840, 13, 15002, 62, 23814, ...
2.354684
1,249
# 371. Sum of Two Integers # ttungl@gmail.com # Calculate the sum of two integers a and b, but you are not allowed to use the operator + and -.
[ 2, 47343, 13, 5060, 286, 4930, 15995, 364, 198, 2, 256, 83, 2150, 75, 31, 14816, 13, 785, 198, 2, 27131, 378, 262, 2160, 286, 734, 37014, 257, 290, 275, 11, 475, 345, 389, 407, 3142, 284, 779, 262, 10088, 1343, 290, 532, 13, 198...
2.736842
57
general = Channel("general-helpdesk", ["Owner", "Tutor", "Student"]) announcements = Channel("announcements", ["Owner", "Tutor"]) secret = Channel("foobar", ["Owner"]) print(general.get_name()) # #general-helpdesk print(secret.get_name()) # #foobar russell = Owner("Russell") cli...
[ 201, 198, 24622, 796, 11102, 7203, 24622, 12, 16794, 8906, 74, 1600, 14631, 42419, 1600, 366, 51, 38409, 1600, 366, 38778, 8973, 8, 201, 198, 1236, 8652, 902, 796, 11102, 7203, 1236, 8652, 902, 1600, 14631, 42419, 1600, 366, 51, 38409, ...
2.112828
3,430
# Copyright 2022 Huawei Technologies Co., Ltd # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # less required by applicable law or agreed to i...
[ 2, 15069, 33160, 43208, 21852, 1766, 1539, 12052, 198, 2, 198, 2, 49962, 739, 262, 24843, 13789, 11, 10628, 362, 13, 15, 357, 1169, 366, 34156, 15341, 198, 2, 345, 743, 407, 779, 428, 2393, 2845, 287, 11846, 351, 262, 13789, 13, 198...
2.852227
1,482
import komand from .schema import DetectEncodingInput, DetectEncodingOutput, Input, Output, Component # Custom imports below import chardet import base64
[ 11748, 479, 296, 392, 198, 6738, 764, 15952, 2611, 1330, 35874, 27195, 7656, 20560, 11, 35874, 27195, 7656, 26410, 11, 23412, 11, 25235, 11, 35100, 198, 2, 8562, 17944, 2174, 198, 11748, 442, 446, 316, 198, 11748, 2779, 2414, 628 ]
3.875
40
import os path_files = 'Primos' csv_file = os.path.join(path_files, 'Informacion.csv') incremento = 1000 * 1000 inicio = ultimo_calculo() final = inicio * 100
[ 11748, 28686, 198, 6978, 62, 16624, 796, 705, 23828, 418, 6, 198, 40664, 62, 7753, 796, 28686, 13, 6978, 13, 22179, 7, 6978, 62, 16624, 11, 705, 818, 687, 49443, 13, 40664, 11537, 628, 198, 198, 24988, 434, 78, 796, 8576, 1635, 8576...
2.612903
62
import http.client, urllib.parse conn = http.client.HTTPConnection('api.positionstack.com') params = urllib.parse.urlencode({ 'access_key': '0d2a35d484a0c57e8d1da1d92620249c', 'query': 'Copacabana', 'region': 'Rio de Janeiro', 'limit': 1, }) conn.request('GET', '/v1/forward?{}'.format(params)) r...
[ 11748, 2638, 13, 16366, 11, 2956, 297, 571, 13, 29572, 198, 198, 37043, 796, 2638, 13, 16366, 13, 40717, 32048, 10786, 15042, 13, 9150, 25558, 13, 785, 11537, 198, 198, 37266, 796, 2956, 297, 571, 13, 29572, 13, 6371, 268, 8189, 15090...
2.335329
167
import re import gzip import logging from dipper.sources.OMIMSource import OMIMSource from dipper.models.Model import Model from dipper.models.assoc.OrthologyAssoc import OrthologyAssoc from dipper.models.Genotype import Genotype from dipper.models.GenomicFeature import Feature, makeChromID, makeChromLabel from dipper...
[ 11748, 302, 198, 11748, 308, 13344, 198, 11748, 18931, 198, 198, 6738, 2566, 2848, 13, 82, 2203, 13, 2662, 3955, 7416, 1330, 32468, 3955, 7416, 198, 6738, 2566, 2848, 13, 27530, 13, 17633, 1330, 9104, 198, 6738, 2566, 2848, 13, 27530, ...
1.828639
15,622
#!/user/bin/env python import numpy as np world = World()
[ 2, 48443, 7220, 14, 8800, 14, 24330, 21015, 198, 11748, 299, 32152, 355, 45941, 628, 628, 198, 6894, 796, 2159, 3419, 198 ]
2.818182
22
#!/usr/bin/env python """ _XMLParser_ Read the raw XML output from the cmsRun executable. """ from __future__ import division, print_function import logging import re from WMCore.Algorithms.ParseXMLFile import coroutine, xmlFileToNode from WMCore.DataStructs.Run import Run from WMCore.FwkJobReport import Report de...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 198, 37811, 198, 62, 55, 5805, 46677, 62, 198, 198, 5569, 262, 8246, 23735, 5072, 422, 262, 269, 907, 10987, 28883, 13, 198, 37811, 198, 6738, 11593, 37443, 834, 1330, 7297, 11, 3601, 62, ...
2.134033
8,192
"""iRODS backend API for SODAR Django apps""" import logging import math import pytz import random import re import string from irods.api_number import api_number from irods.collection import iRODSCollection from irods.column import Criterion from irods.exception import CollectionDoesNotExist, CAT_NO_ROWS_FOUND from ...
[ 37811, 72, 49, 3727, 50, 30203, 7824, 329, 311, 3727, 1503, 37770, 6725, 37811, 198, 198, 11748, 18931, 198, 11748, 10688, 198, 11748, 12972, 22877, 198, 11748, 4738, 198, 11748, 302, 198, 11748, 4731, 198, 198, 6738, 1312, 305, 9310, 1...
2.120844
9,053
""" Happy numbers solution, code eval. https://www.codeeval.com/open_challenges/39/ A happy number is defined by the following process. Starting with any positive integer, replace the number by the sum of the squares of its digits, and repeat the process until the number equals 1 (where it will stay), or it loops endle...
[ 37811, 198, 25082, 3146, 4610, 11, 2438, 5418, 13, 198, 5450, 1378, 2503, 13, 8189, 18206, 13, 785, 14, 9654, 62, 36747, 34120, 14, 2670, 14, 198, 32, 3772, 1271, 318, 5447, 416, 262, 1708, 1429, 13, 17962, 351, 597, 3967, 18253, 11...
3.298361
305
# -*- coding: utf-8 -*- """ Tencent is pleased to support the open source community by making BK-BASE 蓝鲸基础平台 available. Copyright (C) 2021 THL A29 Limited, a Tencent company. All rights reserved. BK-BASE 蓝鲸基础平台 is licensed under the MIT License. License for BK-BASE 蓝鲸基础平台: ------------------------------------------...
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 37811, 198, 24893, 1087, 318, 10607, 284, 1104, 262, 1280, 2723, 2055, 416, 1642, 347, 42, 12, 33, 11159, 5525, 241, 251, 165, 110, 116, 161, 253, 118, 163, 94, 222, ...
3.434783
460
""" 42. Trapping Rain Water Example: Input: [0,1,0,2,1,0,1,3,2,1,2,1] Output: 6 """ #Descending Stack # Greedy # @param {integer[]} height # @return {integer}
[ 37811, 201, 198, 3682, 13, 4759, 2105, 10301, 5638, 201, 198, 16281, 25, 201, 198, 201, 198, 20560, 25, 685, 15, 11, 16, 11, 15, 11, 17, 11, 16, 11, 15, 11, 16, 11, 18, 11, 17, 11, 16, 11, 17, 11, 16, 60, 201, 198, 26410, ...
1.865385
104
#!/usr/bin/env python from load import ROOT as R from gna.env import env from gna.parameters.printer import print_parameters from gna.converters import convert ns = env.globalns names = [ 'one', 'two', 'three', 'four', 'five' ] for i, name in enumerate( names ): ns.defparameter( name, central=(100-i*20), relsigma...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 198, 198, 6738, 3440, 1330, 15107, 2394, 355, 371, 198, 6738, 308, 2616, 13, 24330, 1330, 17365, 198, 6738, 308, 2616, 13, 17143, 7307, 13, 1050, 3849, 1330, 3601, 62, 17143, 7307, 198, 673...
2.487578
322
from app.pipelines.base import Pipeline, PipelineException # isort:skip from app.pipelines.image_classification import ImageClassificationPipeline
[ 6738, 598, 13, 79, 541, 20655, 13, 8692, 1330, 37709, 11, 37709, 16922, 220, 1303, 318, 419, 25, 48267, 198, 198, 6738, 598, 13, 79, 541, 20655, 13, 9060, 62, 4871, 2649, 1330, 7412, 9487, 2649, 47, 541, 4470, 198 ]
3.725
40
import json import uuid from dataclasses import dataclass, field from typing import Any, Dict, List, Optional import jinja2 HTML_TEMPLATE = jinja2.Template( """ <!DOCTYPE html> <html> <head> <link rel="stylesheet" href="{{ base_url }}/higlass@{{ higlass_version }}/dist/hglib.css"> </head> <body> <div id="{{ o...
[ 11748, 33918, 198, 11748, 334, 27112, 198, 6738, 4818, 330, 28958, 1330, 4818, 330, 31172, 11, 2214, 198, 6738, 19720, 1330, 4377, 11, 360, 713, 11, 7343, 11, 32233, 198, 198, 11748, 474, 259, 6592, 17, 198, 198, 28656, 62, 51, 3620, ...
2.341603
1,048
# -*- coding: utf-8 -*- """Module to evaluate corrupting gains for BDA simulations.""" from __future__ import (print_function, absolute_import) import numpy import time import os def allan_deviation(data, dt, tau): """ Evaluate the Allan deviation of a time series. References: https://en.wikiped...
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 37811, 26796, 284, 13446, 10622, 278, 8810, 329, 347, 5631, 27785, 526, 15931, 198, 198, 6738, 11593, 37443, 834, 1330, 357, 4798, 62, 8818, 11, 4112, 62, 11748, 8, 198,...
2.224359
936