content
stringlengths
1
1.05M
input_ids
listlengths
1
883k
ratio_char_token
float64
1
22.9
token_count
int64
1
883k
""" Processes a folder of .txt files to Spacy docs then saves the docs """ # first import standard modules import glob import os from pathlib import Path # then import third-party modules import spacy # finally import my own code (PEP-8 convention) from askdir import whichdir nlp = spacy.load("en_core_web_lg") sour...
[ 37811, 198, 18709, 274, 257, 9483, 286, 764, 14116, 3696, 284, 1338, 1590, 34165, 788, 16031, 262, 34165, 198, 37811, 198, 2, 717, 1330, 3210, 13103, 198, 11748, 15095, 198, 11748, 28686, 198, 6738, 3108, 8019, 1330, 10644, 198, 198, 2,...
2.99322
295
from output.models.nist_data.list_pkg.nmtoken.schema_instance.nistschema_sv_iv_list_nmtoken_max_length_2_xsd.nistschema_sv_iv_list_nmtoken_max_length_2 import NistschemaSvIvListNmtokenMaxLength2 __all__ = [ "NistschemaSvIvListNmtokenMaxLength2", ]
[ 6738, 5072, 13, 27530, 13, 77, 396, 62, 7890, 13, 4868, 62, 35339, 13, 77, 16762, 4233, 13, 15952, 2611, 62, 39098, 13, 77, 1023, 2395, 2611, 62, 21370, 62, 452, 62, 4868, 62, 77, 16762, 4233, 62, 9806, 62, 13664, 62, 17, 62, 87...
2.258929
112
# -*- coding:utf-8 -*- """ file: src/sample.py Sample Source file ================== Description ----------- Sample description ... Content ------- - say_hello_sikuli Status ------ Test with: tests/sample.py last verification date: xx/xx/xxxx last verifica...
[ 2, 532, 9, 12, 19617, 25, 40477, 12, 23, 532, 9, 12, 198, 198, 37811, 198, 220, 220, 220, 2393, 25, 12351, 14, 39873, 13, 9078, 628, 220, 220, 220, 27565, 8090, 2393, 198, 220, 220, 220, 36658, 28, 628, 220, 220, 220, 12489, 198...
2.581006
179
from allauth.socialaccount import providers from allauth.socialaccount.providers.base import ProviderAccount from allauth.socialaccount.providers.oauth2.provider import OAuth2Provider providers.registry.register(ChaHubProvider)
[ 6738, 477, 18439, 13, 14557, 23317, 1330, 9549, 198, 6738, 477, 18439, 13, 14557, 23317, 13, 15234, 4157, 13, 8692, 1330, 32549, 30116, 198, 6738, 477, 18439, 13, 14557, 23317, 13, 15234, 4157, 13, 12162, 1071, 17, 13, 15234, 1304, 1330...
3.741935
62
# Copyright 2017 The Chromium Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. import os import shutil import tempfile from telemetry import decorators from telemetry.testing import options_for_unittests from telemetry.testing import p...
[ 2, 15069, 2177, 383, 18255, 1505, 46665, 13, 1439, 2489, 10395, 13, 198, 2, 5765, 286, 428, 2723, 2438, 318, 21825, 416, 257, 347, 10305, 12, 7635, 5964, 326, 460, 307, 198, 2, 1043, 287, 262, 38559, 24290, 2393, 13, 198, 198, 11748...
3.837838
111
from pcradmin import views from django.conf.urls import url, include urlpatterns = [ url(r'^(?P<pagename>\w+)/', views.index), #url(r'^sendmail$', views.sendmail), #url(r'^sentmail$', views.sentmail), url(r'^changelimit$', views.change_team_limits), url(r'^change_team_limit$', views.change_team_limit_list), ...
[ 6738, 279, 6098, 28482, 1330, 5009, 198, 6738, 42625, 14208, 13, 10414, 13, 6371, 82, 1330, 19016, 11, 2291, 198, 6371, 33279, 82, 796, 685, 198, 220, 220, 220, 19016, 7, 81, 6, 61, 7, 30, 47, 27, 79, 11286, 480, 29, 59, 86, 10,...
2.432836
268
a = input('digite algo :') print('O tipo primitivo desswe valor ', type(a)) print("S tem espaos? ", a.isspace()) print(' um nmero? ', a.isnumeric()) print('E alfabetico?', a.isalpha()) print(' alphanumerico?', a.isalnum()) print('Esta em maisculas?', a.isupper()) print('Esta em minsculas?', a.islower()) print('Est ca...
[ 64, 796, 5128, 10786, 12894, 578, 435, 2188, 1058, 11537, 198, 198, 4798, 10786, 46, 8171, 78, 2684, 270, 23593, 288, 408, 732, 1188, 273, 220, 46083, 2099, 7, 64, 4008, 198, 4798, 7203, 50, 2169, 15024, 7495, 30, 33172, 257, 13, 74...
2.574627
134
""" Examples of authenticating to the API. Usage: login <username> <password> <server> login -h Arguments: username ID to provide for authentication password Password corresponding to specified userid. server API endpoint. Options: -h --help Show this screen. --version Show version. Descrip...
[ 37811, 198, 27730, 286, 8323, 12364, 284, 262, 7824, 13, 198, 198, 28350, 25, 198, 220, 17594, 1279, 29460, 29, 1279, 28712, 29, 1279, 15388, 29, 198, 220, 17594, 532, 71, 198, 28100, 2886, 25, 198, 220, 20579, 220, 4522, 284, 2148, ...
3.24
425
# -*- coding: utf-8 -*- ''' ''' from PyQt5.QtWidgets import QApplication, QLabel ,QWidget, QVBoxLayout , QPushButton, QMainWindow from PyQt5.QtGui import QPalette , QBrush , QPixmap from PyQt5.QtCore import Qt import sys app = QApplication(sys.argv) win = QMainWindow() win.setWindowTitle("") win.resi...
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 198, 7061, 6, 198, 220, 220, 220, 220, 198, 197, 198, 220, 220, 220, 220, 198, 7061, 6, 198, 198, 6738, 9485, 48, 83, 20, 13, 48, 83, 54, 312, 11407, 1330, 1195, ...
2.26699
206
import csv
[ 11748, 269, 21370, 628, 628 ]
2.8
5
import numpy as np from tensorflow.keras.preprocessing.image import Iterator import time import os import xml.etree.ElementTree as ET import cv2 import pydicom as dicom from os.path import join as opjoin import json from tqdm import tqdm def parseXML(scan_path): ''' parse xml file args: xml file p...
[ 11748, 299, 32152, 355, 45941, 198, 6738, 11192, 273, 11125, 13, 6122, 292, 13, 3866, 36948, 13, 9060, 1330, 40806, 1352, 198, 11748, 640, 198, 11748, 28686, 198, 11748, 35555, 13, 316, 631, 13, 20180, 27660, 355, 12152, 198, 11748, 269...
1.945662
1,141
from hexagon.support.hooks import HexagonHooks from hexagon.support.execute.tool import select_and_execute_tool from hexagon.support.update.cli import check_for_cli_updates import sys from hexagon.support.args import fill_args from hexagon.domain import cli, tools, envs from hexagon.support.help import print_help from...
[ 6738, 17910, 1840, 13, 11284, 13, 25480, 82, 1330, 22212, 1840, 39, 31085, 198, 6738, 17910, 1840, 13, 11284, 13, 41049, 13, 25981, 1330, 2922, 62, 392, 62, 41049, 62, 25981, 198, 6738, 17910, 1840, 13, 11284, 13, 19119, 13, 44506, 13...
3.233503
197
""" Misc utility functions required by several modules in the ligpy program. """ import os import numpy as np from constants import GAS_CONST, MW def set_paths(): """ Set the absolute path to required files on the current machine. Returns ------- reactionlist_path : str ...
[ 37811, 198, 44, 2304, 10361, 5499, 2672, 416, 1811, 13103, 287, 262, 26106, 9078, 1430, 13, 198, 37811, 198, 11748, 28686, 198, 198, 11748, 299, 32152, 355, 45941, 198, 198, 6738, 38491, 1330, 402, 1921, 62, 10943, 2257, 11, 29961, 198,...
2.298871
7,970
#!/usr/bin/python # -*- coding: utf-8 -*- import os import sys import random import tempfile import shutil mayan_debug = 1 BASE_DIR = os.path.dirname(os.path.abspath(__file__)) sys.path.append(BASE_DIR) sys.path.append(os.path.dirname(BASE_DIR)) from global_variables import * from caffe_utils import * ''' @brief: ...
[ 2, 48443, 14629, 14, 8800, 14, 29412, 198, 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 198, 11748, 28686, 198, 11748, 25064, 198, 11748, 4738, 198, 11748, 20218, 7753, 198, 11748, 4423, 346, 198, 198, 11261, 272, ...
2.405622
996
# -*- coding: utf-8 -*- """ PyVisio visDocuments - Visio Document manipulation library See docstring for class VisDocument for usage """ #TODO docstring __author__ = 'Ivo Velcovsky' __email__ = 'velcovsky@email.cz' __copyright__ = "Copyright (c) 2015" __license__ = "MIT" __status__ = "Development" from...
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 201, 198, 37811, 201, 198, 20519, 15854, 952, 1490, 38354, 532, 6911, 952, 16854, 17512, 5888, 201, 198, 201, 198, 6214, 2205, 8841, 329, 1398, 6911, 24941, 329, 8748, 201, 1...
2.627027
185
#!/usr/bin/env python3 # Pi-Ware main UI from tkinter import * from tkinter.ttk import * import tkinter as tk import os import webbrowser from functools import partial import getpass #Set global var username global username username = getpass.getuser() #Set global install/uninstall scripts global install_script globa...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 18, 198, 2, 13993, 12, 38824, 1388, 12454, 198, 6738, 256, 74, 3849, 1330, 1635, 198, 6738, 256, 74, 3849, 13, 926, 74, 1330, 1635, 198, 11748, 256, 74, 3849, 355, 256, 74, 198, 11748, ...
2.713189
1,433
from __future__ import division # This file implements a RenderVolumeVisual class. It is derived from the # VolumeVisual class in vispy.visuals.volume, which is released under a BSD # license included here: # # =========================================================================== # Vispy is licensed under the te...
[ 6738, 11593, 37443, 834, 1330, 7297, 198, 198, 2, 770, 2393, 23986, 257, 46722, 31715, 36259, 1398, 13, 632, 318, 10944, 422, 262, 198, 2, 14701, 36259, 1398, 287, 1490, 9078, 13, 41464, 82, 13, 29048, 11, 543, 318, 2716, 739, 257, ...
2.041195
15,366
# Copyright (c) 2019-present, Facebook, Inc. # All rights reserved. # # This source code is licensed under the license found in the # LICENSE file in the root directory of this source tree. # #TOFILL if __name__ == '__main__': param = [ (29,), (13,), (25,), (65,), (27,), (42,), (19,),...
[ 2, 15069, 357, 66, 8, 13130, 12, 25579, 11, 3203, 11, 3457, 13, 198, 2, 1439, 2489, 10395, 13, 198, 2, 198, 2, 770, 2723, 2438, 318, 11971, 739, 262, 5964, 1043, 287, 262, 198, 2, 38559, 24290, 2393, 287, 262, 6808, 8619, 286, 4...
2.22093
258
import os import shutil from textwrap import dedent import argparse import subprocess parser = argparse.ArgumentParser(description='This is a script to create 3D model folder structure') parser.add_argument('-p', '--project', help='3D project name', required=True) parser.add_argument('-wd', '--wd', help='Working direc...
[ 11748, 28686, 198, 11748, 4423, 346, 198, 6738, 2420, 37150, 1330, 4648, 298, 198, 11748, 1822, 29572, 198, 11748, 850, 14681, 198, 198, 48610, 796, 1822, 29572, 13, 28100, 1713, 46677, 7, 11213, 11639, 1212, 318, 257, 4226, 284, 2251, ...
2.813131
396
# # Copyright (c) 2015 - 2022, Intel Corporation # SPDX-License-Identifier: BSD-3-Clause # ''' Common command line arguments for experiments. ''' def setup_run_args(parser): """Add common arguments for all run scripts: --output-dir --node-count --trial-count --cool-off-time """ add_output_dir(pa...
[ 2, 198, 2, 220, 15069, 357, 66, 8, 1853, 532, 33160, 11, 8180, 10501, 198, 2, 220, 30628, 55, 12, 34156, 12, 33234, 7483, 25, 347, 10305, 12, 18, 12, 2601, 682, 198, 2, 198, 198, 7061, 6, 198, 17227, 3141, 1627, 7159, 329, 10256...
2.604167
192
import requests import json import chess import chess.pgn import io from collections import Counter from openpyxl import load_workbook import numpy #API link: https://api.chess.com/pub/player/{user}/games/{year}/{month}/pgn baseUrl='https://api.chess.com/pub/player/' users=['Mazrouai'] ...
[ 11748, 7007, 198, 11748, 33918, 198, 11748, 19780, 198, 11748, 19780, 13, 79, 4593, 198, 11748, 33245, 198, 6738, 17268, 1330, 15034, 198, 6738, 1280, 9078, 87, 75, 1330, 3440, 62, 1818, 2070, 198, 11748, 299, 32152, 198, 198, 2, 17614,...
1.595427
6,560
import csv import numpy as np
[ 11748, 269, 21370, 198, 11748, 299, 32152, 355, 45941, 198 ]
3
10
# coding=utf-8 # Copyright, 2021 Ontocord, LLC, 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, 19617, 28, 40477, 12, 23, 198, 2, 15069, 11, 33448, 9463, 420, 585, 11, 11419, 11, 1439, 2489, 10395, 13, 198, 2, 198, 2, 49962, 739, 262, 24843, 13789, 11, 10628, 362, 13, 15, 357, 1169, 366, 34156, 15341, 198, 2, 345, 743, ...
3.194444
576
## Send data to a Graphite/Carbon Server import traceback import sys, time, socket, datetime from datetime import datetime
[ 2235, 16290, 1366, 284, 257, 29681, 578, 14, 9914, 4189, 9652, 198, 198, 11748, 12854, 1891, 198, 11748, 25064, 11, 640, 11, 17802, 11, 4818, 8079, 198, 6738, 4818, 8079, 1330, 4818, 8079, 198, 220, 220, 220, 220, 220, 220, 220, 220, ...
2.914894
47
from b_bot import BBot from rand_str import *
[ 198, 6738, 275, 62, 13645, 1330, 12597, 313, 198, 6738, 43720, 62, 2536, 1330, 1635 ]
3.066667
15
"""Samples negative pairs from run.""" import argparse from utils import load_qrels, load_run import numpy as np if __name__ == "__main__": main()
[ 37811, 50, 12629, 4633, 14729, 422, 1057, 526, 15931, 198, 198, 11748, 1822, 29572, 198, 6738, 3384, 4487, 1330, 3440, 62, 80, 2411, 82, 11, 3440, 62, 5143, 198, 11748, 299, 32152, 355, 45941, 198, 198, 361, 11593, 3672, 834, 6624, 36...
2.886792
53
import torch import torch.nn as nn import torch.nn.functional as F #Unicamente como esta ahorita funciona para un grafo de 5x5.
[ 11748, 28034, 198, 11748, 28034, 13, 20471, 355, 299, 77, 220, 198, 11748, 28034, 13, 20471, 13, 45124, 355, 376, 198, 198, 2, 3118, 291, 3263, 68, 401, 78, 1556, 64, 257, 17899, 5350, 25439, 32792, 31215, 555, 7933, 6513, 390, 642, ...
2.808511
47
''' Module containing the in-game mayhem instances such as the ship, planets, asteroid objects etc etc... Written by Naphat Amundsen ''' import numpy as np import pygame as pg import configparser import sys import os sys.path.insert(0,'..') from classes import spaceship from classes import planet fro...
[ 7061, 6, 201, 198, 26796, 7268, 262, 287, 12, 6057, 43744, 10245, 201, 198, 10508, 355, 262, 4074, 11, 14705, 11, 27460, 5563, 3503, 3503, 986, 201, 198, 201, 198, 25354, 416, 14332, 5183, 1703, 917, 6248, 201, 198, 7061, 6, 201, 19...
1.88895
1,819
import sys import os simp_path = 'TCGAIntegrator' abs_path = os.path.abspath(simp_path) sys.path.append(abs_path) from TCGAIntegrator import TCGAData as TCGAData if __name__ == '__main__': main()
[ 11748, 25064, 198, 11748, 28686, 198, 82, 11011, 62, 6978, 796, 705, 4825, 9273, 34500, 12392, 6, 198, 8937, 62, 6978, 796, 28686, 13, 6978, 13, 397, 2777, 776, 7, 82, 11011, 62, 6978, 8, 198, 17597, 13, 6978, 13, 33295, 7, 8937, ...
2.46988
83
from synergy.db.model.queue_context_entry import queue_context_entry from synergy.scheduler.scheduler_constants import PROCESS_GC, TOKEN_GC, PROCESS_MX, TOKEN_WERKZEUG, EXCHANGE_UTILS, \ PROCESS_SCHEDULER, TOKEN_SCHEDULER, QUEUE_UOW_STATUS, QUEUE_JOB_STATUS, PROCESS_LAUNCH_PY, TOKEN_LAUNCH_PY, \ ROUTING_IRRELEV...
[ 6738, 42193, 13, 9945, 13, 19849, 13, 36560, 62, 22866, 62, 13000, 1330, 16834, 62, 22866, 62, 13000, 198, 6738, 42193, 13, 1416, 704, 18173, 13, 1416, 704, 18173, 62, 9979, 1187, 1330, 41755, 7597, 62, 15916, 11, 5390, 43959, 62, 159...
2.195739
751
""" Fyle V3 APIs Base Class """ from .expenses import Expenses from .reports import Reports from .employees import Employees from .orgs import Orgs from .reimbursements import Reimbursements from .cost_centes import CostCenters from .categories import Categories from .projects import Projects from .refunds import Refun...
[ 37811, 198, 37, 2349, 569, 18, 23113, 7308, 5016, 198, 37811, 198, 6738, 764, 11201, 4541, 1330, 5518, 4541, 198, 6738, 764, 48922, 1330, 17905, 198, 6738, 764, 7033, 2841, 1330, 30260, 198, 6738, 764, 2398, 82, 1330, 1471, 14542, 198, ...
4.018868
212
from datetime import date as d #---------------------------HOTEL---------------------------# main()
[ 6738, 4818, 8079, 1330, 3128, 355, 288, 201, 198, 201, 198, 2, 22369, 6329, 39, 2394, 3698, 22369, 6329, 2, 201, 198, 201, 198, 201, 198, 201, 198, 201, 198, 201, 198, 201, 198, 201, 198, 201, 198, 201, 198, 201, 198, 201, 198, ...
2.645833
48
import sys import maya.standalone maya.standalone.initialize(name='python') from maya import cmds # try: run() maya.standalone.uninitialize() # except Exception as e: # sys.stdout.write(1)
[ 11748, 25064, 198, 11748, 743, 64, 13, 1481, 17749, 198, 11261, 64, 13, 1481, 17749, 13, 36733, 1096, 7, 3672, 11639, 29412, 11537, 198, 6738, 743, 64, 1330, 23991, 82, 198, 198, 2, 1949, 25, 198, 198, 5143, 3419, 198, 11261, 64, 13...
2.728571
70
from GreedyGRASP.Solver import Solver from GreedyGRASP.Solution import Solution from GreedyGRASP.LocalSearch import LocalSearch # Inherits from a parent abstract solver.
[ 198, 6738, 11955, 4716, 10761, 1921, 47, 13, 50, 14375, 1330, 4294, 332, 198, 6738, 11955, 4716, 10761, 1921, 47, 13, 46344, 1330, 28186, 198, 6738, 11955, 4716, 10761, 1921, 47, 13, 14565, 18243, 1330, 10714, 18243, 198, 198, 2, 47025,...
3.44
50
import inspect import math as _math from copy import deepcopy import matplotlib.pyplot as _plt import numpy as np import pandas as pd import statsmodels.api as _sm from statslib._lib.gcalib import CalibType
[ 11748, 10104, 198, 11748, 10688, 355, 4808, 11018, 198, 6738, 4866, 1330, 2769, 30073, 198, 198, 11748, 2603, 29487, 8019, 13, 9078, 29487, 355, 4808, 489, 83, 198, 11748, 299, 32152, 355, 45941, 198, 11748, 19798, 292, 355, 279, 67, 19...
3.149254
67
List1 = [1, 2, 3, 4] List2 = ['I', 'tripped', 'over', 'and', 'hit', 'the', 'floor'] print(List1 + List2) List3 = List1 + List2 print(List3) fibs = (0, 1, 2, 3) print(fibs[3])
[ 8053, 16, 796, 685, 16, 11, 362, 11, 513, 11, 604, 60, 198, 8053, 17, 796, 37250, 40, 3256, 705, 28461, 1496, 3256, 705, 2502, 3256, 705, 392, 3256, 705, 17945, 3256, 705, 1169, 3256, 705, 28300, 20520, 198, 4798, 7, 8053, 16, 134...
2.047059
85
import os from flask import Flask, render_template, request, jsonify from display.predict import predict_file app = Flask(__name__, static_folder="./display/static", template_folder="./display/templates") if __name__ == '__main__': if not os.path.exists('./display/files'): os.mkdir('./display/files') ...
[ 11748, 28686, 198, 6738, 42903, 1330, 46947, 11, 8543, 62, 28243, 11, 2581, 11, 33918, 1958, 198, 6738, 3359, 13, 79, 17407, 1330, 4331, 62, 7753, 198, 198, 1324, 796, 46947, 7, 834, 3672, 834, 11, 9037, 62, 43551, 28, 1911, 14, 138...
2.796748
123
import unittest from ortools.linear_solver import pywraplp
[ 11748, 555, 715, 395, 198, 198, 6738, 393, 31391, 13, 29127, 62, 82, 14375, 1330, 12972, 29988, 489, 79, 198 ]
3
20
# Uno PWM bipolar curve tracer app by simple-circuit 12-22-19 # rev 3 1-13-20 from tkinter import * from tkinter import ttk from tkinter import filedialog from tkinter import font import numpy as np import serial root = Tk() default_font = font.nametofont("TkDefaultFont") default_font.configure(size=9) canvas = Canva...
[ 2, 791, 78, 350, 22117, 31170, 12133, 491, 11736, 598, 416, 2829, 12, 21170, 5013, 1105, 12, 1828, 12, 1129, 198, 2, 2710, 513, 352, 12, 1485, 12, 1238, 198, 198, 6738, 256, 74, 3849, 1330, 1635, 198, 6738, 256, 74, 3849, 1330, 25...
2.39747
3,004
import time import smbus from Adafruit_I2C import Adafruit_I2C # =========================================================================== # TMP102 Class # ===========================================================================
[ 11748, 640, 198, 11748, 895, 10885, 198, 6738, 1215, 1878, 4872, 62, 40, 17, 34, 1330, 1215, 1878, 4872, 62, 40, 17, 34, 198, 198, 2, 38093, 2559, 855, 198, 2, 309, 7378, 15377, 5016, 198, 2, 38093, 2559, 855, 628 ]
5.756098
41
from flask import Flask app = Flask(__name__) if __name__ == '__main__': app.run(port=5000, debug=True)
[ 6738, 42903, 1330, 46947, 628, 198, 1324, 796, 46947, 7, 834, 3672, 834, 8, 628, 198, 361, 11593, 3672, 834, 6624, 705, 834, 12417, 834, 10354, 198, 220, 220, 220, 598, 13, 5143, 7, 634, 28, 27641, 11, 14257, 28, 17821, 8 ]
2.642857
42
# -*- coding: utf-8 -*- # Copyright (c) 2015, Indictrans and contributors # For license information, please see license.txt from __future__ import unicode_literals import frappe import json import string from frappe.model.document import Document from frappe.utils import cstr, flt, getdate, comma_and, cint from frappe...
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 2, 15069, 357, 66, 8, 1853, 11, 1423, 713, 26084, 290, 20420, 198, 2, 1114, 5964, 1321, 11, 3387, 766, 5964, 13, 14116, 198, 198, 6738, 11593, 37443, 834, 1330, 28000,...
3.318182
132
import logging from typing import Text, List from src.utils.io import read_json from src.utils.fuzzy import is_relevant_string from src.utils.common import is_float from src.utils.constants import ( MEDICAL_TEST_PATH, QUANTITATIVE_PATH, POSITIVE_TEXT, TestResult ) logger = logging.getLogger(__name__)...
[ 11748, 18931, 198, 6738, 19720, 1330, 8255, 11, 7343, 198, 6738, 12351, 13, 26791, 13, 952, 1330, 1100, 62, 17752, 198, 6738, 12351, 13, 26791, 13, 69, 4715, 88, 1330, 318, 62, 49659, 62, 8841, 198, 6738, 12351, 13, 26791, 13, 11321, ...
2.682927
123
import requests import sys from time import sleep from tabulate import tabulate if __name__=='__main__': try: with open('.secret', 'r') as f: secret = f.read().strip() except IOException: secret = sys.argv[1] get_scams(secret)
[ 11748, 7007, 198, 11748, 25064, 198, 6738, 640, 1330, 3993, 198, 6738, 7400, 5039, 1330, 7400, 5039, 628, 198, 198, 361, 11593, 3672, 834, 855, 6, 834, 12417, 834, 10354, 198, 220, 220, 220, 1949, 25, 220, 198, 220, 220, 220, 220, 2...
2.377193
114
# Real-time Hair Segmentation and Recoloring on Mobile GPUs (https://arxiv.org/abs/1907.06740) # TODO
[ 2, 6416, 12, 2435, 23102, 1001, 5154, 341, 290, 3311, 349, 3255, 319, 12173, 32516, 357, 5450, 1378, 283, 87, 452, 13, 2398, 14, 8937, 14, 1129, 2998, 13, 15, 3134, 1821, 8, 198, 2, 16926, 46 ]
2.72973
37
import logging from .forms import PostSearchForm from .models import Blog
[ 11748, 18931, 198, 198, 6738, 764, 23914, 1330, 2947, 18243, 8479, 198, 6738, 764, 27530, 1330, 14001, 628, 198 ]
4.052632
19
from opencmiss.utils.maths.algorithms import calculate_line_plane_intersection
[ 6738, 1280, 66, 3927, 13, 26791, 13, 11018, 82, 13, 282, 7727, 907, 1330, 15284, 62, 1370, 62, 14382, 62, 3849, 5458, 628 ]
3.478261
23
# -*- coding: utf-8 -*- """ SHARED - DATA VALIDATION """ # %% FILE IMPORT
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 37811, 198, 9693, 1503, 1961, 532, 42865, 26173, 2389, 6234, 198, 37811, 198, 198, 2, 43313, 45811, 30023, 9863, 628 ]
2.235294
34
# Copyright (c) 2018, Arm Limited and affiliates. # SPDX-License-Identifier: Apache-2.0 # # 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 # # ...
[ 2, 15069, 357, 66, 8, 2864, 11, 7057, 15302, 290, 29116, 13, 198, 2, 30628, 55, 12, 34156, 12, 33234, 7483, 25, 24843, 12, 17, 13, 15, 198, 2, 198, 2, 49962, 739, 262, 24843, 13789, 11, 10628, 362, 13, 15, 357, 1169, 366, 34156,...
3.497778
225
# Copyright 2016 Google Inc. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or ag...
[ 2, 15069, 1584, 3012, 3457, 13, 1439, 6923, 33876, 13, 198, 2, 198, 2, 49962, 739, 262, 24843, 13789, 11, 10628, 362, 13, 15, 357, 1169, 366, 34156, 15341, 198, 2, 345, 743, 407, 779, 428, 2393, 2845, 287, 11846, 351, 262, 13789, ...
3.869159
214
# directed graph problem or breadth first search variant from collections import defaultdict import re input_file = open("input.txt", "r") input_lines = input_file.readlines() letter_value = { 'A': 1, 'B': 2, 'C': 3, 'D': 4, 'E': 5, 'F': 6, 'G': 7, 'H': 8, 'I': 9, 'J': 10, ...
[ 2, 7924, 4823, 1917, 393, 32483, 717, 2989, 15304, 198, 6738, 17268, 1330, 4277, 11600, 198, 11748, 302, 198, 198, 15414, 62, 7753, 796, 1280, 7203, 15414, 13, 14116, 1600, 366, 81, 4943, 198, 15414, 62, 6615, 796, 5128, 62, 7753, 13,...
2.250597
419
from __future__ import print_function from .. import PyPI, DjangoPyPI, PackageNotFound from prettytable import PrettyTable from pkg_resources import parse_version, resource_filename import requests import re try: from urlparse import unquote except ImportError: # Python 3 from urllib.parse import unquote
[ 6738, 11593, 37443, 834, 1330, 3601, 62, 8818, 198, 198, 6738, 11485, 1330, 9485, 11901, 11, 37770, 20519, 11901, 11, 15717, 3673, 21077, 198, 6738, 2495, 11487, 1330, 20090, 10962, 198, 6738, 279, 10025, 62, 37540, 1330, 21136, 62, 9641,...
3.595506
89
import numpy as np from scipy.interpolate import InterpolatedUnivariateSpline from scipy.fftpack import fft from combined_functions import check_ft_grid from scipy.constants import pi, c, hbar from numpy.fft import fftshift from scipy.io import loadmat from time import time import sys import matplotlib.pyplot as plt fr...
[ 11748, 299, 32152, 355, 45941, 198, 6738, 629, 541, 88, 13, 3849, 16104, 378, 1330, 4225, 16104, 515, 3118, 42524, 26568, 500, 198, 6738, 629, 541, 88, 13, 487, 83, 8002, 1330, 277, 701, 198, 6738, 5929, 62, 12543, 2733, 1330, 2198, ...
2.101159
949
# The test suite runs in <20 seconds so is worth running here to # make sure there are no issues with the C/Cython extensions import astropy_healpix astropy_healpix.test()
[ 2, 383, 1332, 18389, 4539, 287, 1279, 1238, 4201, 523, 318, 2861, 2491, 994, 284, 198, 2, 787, 1654, 612, 389, 645, 2428, 351, 262, 327, 14, 34, 7535, 18366, 198, 11748, 6468, 28338, 62, 258, 282, 79, 844, 198, 459, 28338, 62, 258...
3.372549
51
""" Way2sms """ from way2sms.app import Sms
[ 37811, 198, 25309, 17, 82, 907, 198, 37811, 198, 198, 6738, 835, 17, 82, 907, 13, 1324, 1330, 311, 907, 198 ]
2.142857
21
import time from graphql_client import GraphQLClient # some sample GraphQL server which supports websocket transport and subscription client = GraphQLClient('ws://localhost:9001') # Simple Query Example # query example with GraphQL variables query = """ query getUser($userId: Int!) { users (id: $userId) { id ...
[ 11748, 640, 198, 6738, 4823, 13976, 62, 16366, 1330, 29681, 9711, 11792, 198, 198, 2, 617, 6291, 29681, 9711, 4382, 543, 6971, 2639, 5459, 4839, 290, 14569, 198, 16366, 796, 29681, 9711, 11792, 10786, 18504, 1378, 36750, 25, 24, 8298, 1...
3.488599
307
# coding:utf-8 import os import sys if __name__ == '__main__': Scopus2HistCite()
[ 2, 19617, 25, 40477, 12, 23, 201, 198, 11748, 28686, 201, 198, 11748, 25064, 201, 198, 201, 198, 201, 198, 201, 198, 361, 11593, 3672, 834, 6624, 705, 834, 12417, 834, 10354, 201, 198, 220, 220, 220, 1446, 25790, 17, 13749, 34, 578,...
2.136364
44
""" Mel-scale definition. """ import torch from torch import Tensor from typing import Union import numpy as np from math import log import librosa from librosa.filters import mel as mel_fn def hz_to_mel( frequencies: Union[float, int, Tensor, np.ndarray], htk=False) -> Union[float, int, Tensor, np.ndarra...
[ 37811, 198, 21102, 12, 9888, 6770, 13, 198, 37811, 198, 11748, 28034, 198, 6738, 28034, 1330, 309, 22854, 198, 6738, 19720, 1330, 4479, 198, 11748, 299, 32152, 355, 45941, 198, 6738, 10688, 1330, 2604, 198, 11748, 9195, 4951, 64, 198, 6...
2.240622
1,093
from django.urls import path from order import views urlpatterns = [ # path('ticket/submit/', views.TicketOrderSubmitView.as_view(), name='ticket_submit'), # path('order/detail/<int:sn>/', views.OrderDetail.as_view(), name='order_detail'), # path('order/list/', views.OrderListView...
[ 6738, 42625, 14208, 13, 6371, 82, 1330, 3108, 201, 198, 201, 198, 6738, 1502, 1330, 5009, 201, 198, 201, 198, 6371, 33279, 82, 796, 685, 201, 198, 220, 220, 220, 1303, 220, 201, 198, 220, 220, 220, 3108, 10786, 43350, 14, 46002, 14,...
2.482517
143
from django.db import models
[ 6738, 42625, 14208, 13, 9945, 1330, 4981, 628 ]
3.75
8
""" unminify ======== """ def unminify(soup, encoding='utf-8'): """ """ return soup.prettify().encode(encoding)
[ 37811, 198, 403, 1084, 1958, 198, 2559, 198, 198, 37811, 628, 198, 4299, 555, 1084, 1958, 7, 82, 10486, 11, 21004, 11639, 40477, 12, 23, 6, 2599, 198, 220, 220, 220, 37227, 198, 220, 220, 220, 37227, 198, 220, 220, 220, 1441, 17141,...
2.309091
55
import hashlib
[ 11748, 12234, 8019 ]
4.666667
3
from typing import Tuple from rdkit import Chem from rdkit.Chem import Draw import re import itertools import numpy as np import networkx as nx import logging import collections def FindBreakingBonds(cnids: list, bids: list, bts: list, atomic_nums: list) -> list: """Returns bond ids to be broken. Check for double...
[ 6738, 19720, 1330, 309, 29291, 198, 6738, 374, 67, 15813, 1330, 12870, 198, 6738, 374, 67, 15813, 13, 41829, 1330, 15315, 198, 11748, 302, 198, 11748, 340, 861, 10141, 198, 11748, 299, 32152, 355, 45941, 198, 11748, 3127, 87, 355, 299, ...
2.266897
7,812
# ============================================================================= # # -*- coding: utf-8 -*- # """ # Created on Sun Aug 5 08:07:19 2018 # # @author: lenovo # """ # 25. Reverse Nodes in k-Group # Given a linked list, reverse the nodes of a linked list k at a time and return its modified list. # # k is a ...
[ 2, 38093, 25609, 198, 2, 1303, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 2, 37227, 198, 2, 15622, 319, 3825, 2447, 220, 642, 8487, 25, 2998, 25, 1129, 2864, 198, 2, 220, 198, 2, 2488, 9800, 25, 18896, 18768, 19...
3.759076
606
from django.conf import settings from django.core import mail from django.core.urlresolvers import reverse from perma.urls import urlpatterns from .utils import PermaTestCase
[ 6738, 42625, 14208, 13, 10414, 1330, 6460, 198, 6738, 42625, 14208, 13, 7295, 1330, 6920, 198, 6738, 42625, 14208, 13, 7295, 13, 6371, 411, 349, 690, 1330, 9575, 198, 198, 6738, 583, 2611, 13, 6371, 82, 1330, 19016, 33279, 82, 198, 19...
3.52
50
import FWCore.ParameterSet.Config as cms #Note: distances in mm instead of in cm usually used in CMS generator = cms.EDFilter("Pythia8PtAndLxyGun", maxEventsToPrint = cms.untracked.int32(1), pythiaPylistVerbosity = cms.untracked.int32(1), pythiaHepMCVerbosity = cms.untracked.bool(True), PGunParameter...
[ 11748, 48849, 14055, 13, 36301, 7248, 13, 16934, 355, 269, 907, 198, 198, 2, 6425, 25, 18868, 287, 8085, 2427, 286, 287, 12067, 3221, 973, 287, 40773, 198, 8612, 1352, 796, 269, 907, 13, 1961, 22417, 7203, 47, 5272, 544, 23, 47, 83,...
2.333333
732
import logging from typing import List, Optional from django.conf import settings from django.contrib.auth import get_user_model from django.core.exceptions import ObjectDoesNotExist from django.db import models VOTE_UP = 1 VOTE_DOWN = -1 VOTE_CHOICES = ((VOTE_UP, "Vote Up"), (VOTE_DOWN, "Vote Down")) User = get_...
[ 11748, 18931, 198, 198, 6738, 19720, 1330, 7343, 11, 32233, 198, 198, 6738, 42625, 14208, 13, 10414, 1330, 6460, 198, 6738, 42625, 14208, 13, 3642, 822, 13, 18439, 1330, 651, 62, 7220, 62, 19849, 198, 6738, 42625, 14208, 13, 7295, 13, ...
2.9375
128
from datetime import datetime from fastapi import APIRouter, Request from ..classes.jwt_authenticator import JWTAuthenticator from ..repositories import bookmark_repository from ..schemas.bookmark_schema import RequestSchema, ResponseSchema router = APIRouter( prefix='/bookmarks', tags=['bookmarks'], ) # Inde...
[ 6738, 4818, 8079, 1330, 4818, 8079, 198, 6738, 3049, 15042, 1330, 3486, 4663, 39605, 11, 19390, 198, 6738, 11485, 37724, 13, 73, 46569, 62, 41299, 26407, 1330, 449, 54, 5603, 315, 6925, 26407, 198, 6738, 11485, 260, 1930, 270, 1749, 133...
3.181034
116
import os, urllib, datetime, time, sys import getpass from franz.openrdf.sail.allegrographserver import AllegroGraphServer from franz.openrdf.repository.repository import Repository from franz.miniclient import repository from franz.openrdf.query.query import QueryLanguage from franz.openrdf.model import URI from fran...
[ 11748, 28686, 11, 2956, 297, 571, 11, 4818, 8079, 11, 640, 11, 25064, 198, 11748, 651, 6603, 198, 198, 6738, 1216, 35410, 13, 9654, 4372, 69, 13, 82, 603, 13, 282, 1455, 3828, 1470, 15388, 1330, 26326, 305, 37065, 10697, 198, 6738, ...
2.902439
246
import pandas as pd
[ 11748, 19798, 292, 355, 279, 67 ]
3.166667
6
import pprint import time import chess.pgn import IPython.display as display import ipywidgets as widgets
[ 11748, 279, 4798, 198, 11748, 640, 198, 198, 11748, 19780, 13, 79, 4593, 198, 11748, 6101, 7535, 13, 13812, 355, 3359, 198, 11748, 20966, 88, 28029, 11407, 355, 40803, 628, 628, 198 ]
3.46875
32
# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! import grpc import version_pb2 as version__pb2 def add_serviceServicer_to_server(servicer, server): rpc_method_handlers = { 'version': grpc.unary_unary_rpc_method_handler( servicer.version, request_deserializer=versio...
[ 2, 2980, 515, 416, 262, 308, 49, 5662, 11361, 8435, 17050, 13877, 13, 8410, 5626, 48483, 0, 198, 11748, 1036, 14751, 198, 198, 11748, 2196, 62, 40842, 17, 355, 2196, 834, 40842, 17, 628, 628, 198, 4299, 751, 62, 15271, 11838, 16647, ...
2.632743
226
import sys import json import requests import subprocess from datetime import datetime #dict storing data collection={} def update_collection(): ''' Download bioarxiv and medarxiv collections ''' link='https://connect.biorxiv.org/relate/collection_json.php?grp=181' outfile='collection.json' p...
[ 11748, 25064, 198, 11748, 33918, 198, 11748, 7007, 198, 11748, 850, 14681, 198, 6738, 4818, 8079, 1330, 4818, 8079, 198, 198, 2, 11600, 23069, 1366, 198, 43681, 34758, 92, 628, 198, 4299, 4296, 62, 43681, 33529, 198, 220, 220, 220, 705,...
2.467949
624
import tornado.web from core.logger_helper import logger from core.server.wxauthorize import WxConfig from core.server.wxauthorize import WxAuthorServer from core.cache.tokencache import TokenCache
[ 11748, 33718, 13, 12384, 198, 6738, 4755, 13, 6404, 1362, 62, 2978, 525, 1330, 49706, 198, 6738, 4755, 13, 15388, 13, 49345, 9800, 1096, 1330, 370, 87, 16934, 198, 6738, 4755, 13, 15388, 13, 49345, 9800, 1096, 1330, 370, 87, 13838, 10...
3.685185
54
#!/usr/bin/python # # Write in Python3.6 # Filename: # # Mapping_JsonToCsvExtractor.py # # # Basic Usage: # # python Mapping_JsonToCsvExtractor.py /directory/containing/datastream/mapping/json/files # # Utilities import sys import os import json import argparse # write a line to the target file if __name...
[ 2, 48443, 14629, 14, 8800, 14, 29412, 198, 2, 198, 2, 19430, 287, 11361, 18, 13, 21, 198, 2, 7066, 12453, 25, 198, 2, 198, 2, 220, 220, 220, 220, 337, 5912, 62, 41, 1559, 2514, 34, 21370, 11627, 40450, 13, 9078, 198, 2, 198, 2...
2.564286
140
import sys from flask import Flask, redirect, request, session, url_for from flask.ext.sqlalchemy import SQLAlchemy from flask.ext.login import LoginManager, current_user from flask_script import Manager from flask_migrate import Migrate, MigrateCommand from flask_wtf.csrf import CsrfProtect from .sessions import Shut...
[ 11748, 25064, 198, 6738, 42903, 1330, 46947, 11, 18941, 11, 2581, 11, 6246, 11, 19016, 62, 1640, 198, 6738, 42903, 13, 2302, 13, 25410, 282, 26599, 1330, 16363, 2348, 26599, 198, 6738, 42903, 13, 2302, 13, 38235, 1330, 23093, 13511, 11,...
3.241313
518
from utils import initialize from pandas import DataFrame from genetic import GA import numpy as np import argparse import random import time import sys sys.setrecursionlimit(2000) random.seed(time.time()) parser = argparse.ArgumentParser() parser.add_argument('--mr', help='Mutation Rate') parser.add_argu...
[ 6738, 3384, 4487, 1330, 41216, 201, 198, 6738, 19798, 292, 1330, 6060, 19778, 201, 198, 6738, 8513, 1330, 14545, 201, 198, 11748, 299, 32152, 355, 45941, 201, 198, 11748, 1822, 29572, 201, 198, 11748, 4738, 201, 198, 11748, 640, 201, 19...
2.216187
1,841
#Creado por Jhon Edison Castro Snchez #Diccionario tomado de https://github.com/danielmiessler/SecLists/blob/bb915befb208fd900592bb5a25d0c5e4f869f8ea/Passwords/Leaked-Databases/rockyou.txt.tar.gz #Se usa para generar el mismo comportamiento de openssl de linux #https://docs.python.org/2/library/crypt.html import crypt...
[ 2, 34, 961, 78, 16964, 449, 24130, 37448, 21193, 5489, 2395, 89, 198, 2, 35, 44240, 295, 4982, 16667, 4533, 390, 3740, 1378, 12567, 13, 785, 14, 67, 6321, 11632, 33730, 14, 6558, 43, 1023, 14, 2436, 672, 14, 11848, 40248, 65, 891, ...
2.580189
424
from nltk.book import * print letterFrequ(text1) print letterFrequ(text5)
[ 6738, 299, 2528, 74, 13, 2070, 1330, 1635, 628, 220, 220, 220, 220, 198, 4798, 3850, 37, 8897, 7, 5239, 16, 8, 198, 4798, 3850, 37, 8897, 7, 5239, 20, 8, 198 ]
2.5
32
import connectBD as connectDB from pprint import pprint
[ 11748, 2018, 14529, 355, 2018, 11012, 198, 6738, 279, 4798, 1330, 279, 4798 ]
4.230769
13
from utils import hrsize from time import time_ns
[ 6738, 3384, 4487, 1330, 36201, 1096, 198, 6738, 640, 1330, 640, 62, 5907, 198 ]
3.571429
14
''' PDF to Image Converter Author: Fraser Love, me@fraser.love Created: 2020-06-13 Latest Release: v1.0.1, 2020-06-21 Python: v3.6.9 Dependancies: pdf2image Converts multiple pdf's to images (JPEG format) and stores them in a logical folder structure under the desired image directory. Usage: Update the pdf_dir and img...
[ 7061, 6, 198, 20456, 284, 7412, 35602, 353, 198, 13838, 25, 28059, 5896, 11, 502, 31, 8310, 6005, 13, 23205, 198, 41972, 25, 12131, 12, 3312, 12, 1485, 198, 39478, 13868, 25, 410, 16, 13, 15, 13, 16, 11, 12131, 12, 3312, 12, 2481,...
2.669584
457
from fvttmv.exceptions import FvttmvException from fvttmv.reference_tools import ReferenceTools from fvttmv.search.__references_searcher_string import ReferencesSearcherString from test.common import TestCase
[ 6738, 277, 85, 926, 76, 85, 13, 1069, 11755, 1330, 376, 85, 926, 76, 85, 16922, 198, 6738, 277, 85, 926, 76, 85, 13, 35790, 62, 31391, 1330, 20984, 33637, 198, 6738, 277, 85, 926, 76, 85, 13, 12947, 13, 834, 5420, 4972, 62, 325,...
3.333333
63
# -*- coding: utf-8 -*- """ Created on Wed Aug 19 19:50:43 2020 @author: beck """ import cv2 import datetime import dateparser import os import sys import pandas as pd import pytz from hachoir.parser import createParser from hachoir.metadata import extractMetadata from PIL import Image import numpy as...
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 201, 198, 37811, 201, 198, 41972, 319, 3300, 2447, 678, 678, 25, 1120, 25, 3559, 12131, 201, 198, 201, 198, 31, 9800, 25, 47673, 201, 198, 37811, 201, 198, 11748, 269, 85, ...
2.850649
154
#! /home/seanchen/anaconda3/bin/python from __future__ import absolute_import from __future__ import division from __future__ import print_function #import sys import rospy from std_msgs.msg import String import torch import torch.nn.parallel import torch.nn.functional as F import numpy as np import cv2 from LPN impor...
[ 2, 0, 1220, 11195, 14, 325, 1192, 831, 14, 272, 330, 13533, 18, 14, 8800, 14, 29412, 198, 6738, 11593, 37443, 834, 1330, 4112, 62, 11748, 198, 6738, 11593, 37443, 834, 1330, 7297, 198, 6738, 11593, 37443, 834, 1330, 3601, 62, 8818, ...
2.150715
1,818
import tensorflow as tf from sound_lstm_test import data batch_size = 10 x = tf.placeholder(tf.float32, [batch_size, 512, 80]) y_ = tf.placeholder(tf.float32, [batch_size, 59]) w_conv1 = tf.Variable(tf.truncated_normal([16, 2, 1, 64], stddev=0.1), name='conv1_w') b_conv1 = tf.Variable(tf.constant(0.1, shape=[64]), n...
[ 11748, 11192, 273, 11125, 355, 48700, 198, 6738, 2128, 62, 75, 301, 76, 62, 9288, 1330, 1366, 198, 198, 43501, 62, 7857, 796, 838, 198, 198, 87, 796, 48700, 13, 5372, 13829, 7, 27110, 13, 22468, 2624, 11, 685, 43501, 62, 7857, 11, ...
2.223629
1,659
'''' You're given 2 huge integers represented by linked lists. Each linked list element is a number from 0 to 9999 that represents a number with exactly 4 digits. The represented number might have leading zeros. Your task is to add up these huge integers and return the result in the same format. Example For a = [9876...
[ 39115, 198, 1639, 821, 1813, 362, 3236, 37014, 7997, 416, 6692, 8341, 13, 5501, 6692, 1351, 5002, 318, 257, 1271, 422, 657, 284, 860, 17032, 326, 6870, 257, 1271, 351, 3446, 604, 19561, 13, 383, 7997, 1271, 1244, 423, 3756, 1976, 2749...
2.444568
902
""" @file @brief Functions to handle data coming from :epkg:`Cancer Imaging Archive`. """ import os import pydicom import pandas import cv2 from pyquickhelper.filehelper.synchelper import explore_folder_iterfile # pylint: disable=C0411 def convert_dcm2png(folder, dest, fLOG=None): """ Converts all medical i...
[ 37811, 198, 31, 7753, 198, 31, 65, 3796, 40480, 284, 5412, 1366, 2406, 422, 198, 25, 538, 10025, 25, 63, 34, 8250, 48656, 20816, 44646, 198, 37811, 198, 11748, 28686, 198, 11748, 279, 5173, 291, 296, 198, 11748, 19798, 292, 198, 11748...
2.051581
1,202
import re import collections import shutil from tensorflow.python.platform import gfile num_movie_scripts = 10 vocabulary_size = 10000 fraction_dev = 50 path_for_x_train = 'X_train.txt' path_for_y_train = 'y_train.txt' path_for_x_dev = 'X_dev.txt' path_for_y_dev = 'y_dev.txt' _PAD = b"_PAD" _GO = b"_GO" _EOS = b"_EO...
[ 11748, 302, 198, 11748, 17268, 198, 11748, 4423, 346, 198, 6738, 11192, 273, 11125, 13, 29412, 13, 24254, 1330, 308, 7753, 198, 198, 22510, 62, 41364, 62, 46521, 796, 838, 198, 18893, 22528, 62, 7857, 796, 33028, 198, 69, 7861, 62, 79...
2.410039
1,773
from rest_framework import serializers from dfirtrack_main.models import System, Systemtype
[ 6738, 1334, 62, 30604, 1330, 11389, 11341, 198, 6738, 47764, 343, 11659, 62, 12417, 13, 27530, 1330, 4482, 11, 4482, 4906, 198 ]
4.181818
22
from exasol_advanced_analytics_framework.interface.create_event_handler_udf \ import CreateEventHandlerUDF udf = CreateEventHandlerUDF(exa)
[ 6738, 409, 292, 349, 62, 32225, 2903, 62, 38200, 14094, 62, 30604, 13, 39994, 13, 17953, 62, 15596, 62, 30281, 62, 463, 69, 3467, 198, 220, 220, 220, 1330, 13610, 9237, 25060, 52, 8068, 198, 198, 463, 69, 796, 13610, 9237, 25060, 52...
2.979592
49
# -*- coding: utf-8 -*- """ Created on Tue Mar 24 15:25:14 2020 @author: Nicola VIGAN, Computational Imaging group, CWI, The Netherlands, and ESRF - The European Synchrotron, Grenoble, France """ import numpy as np from . import operators from . import solvers def get_circular_mask(vol_shape, radius_offset=0, coor...
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 37811, 198, 41972, 319, 30030, 1526, 1987, 1315, 25, 1495, 25, 1415, 12131, 198, 198, 31, 9800, 25, 40396, 569, 3528, 1565, 11, 22476, 864, 48656, 1448, 11, 24006, 40, ...
2.48302
2,768
from .b_cap_client import BCapClient from .b_cap_exception import BCapException
[ 6738, 764, 65, 62, 11128, 62, 16366, 1330, 11843, 499, 11792, 198, 6738, 764, 65, 62, 11128, 62, 1069, 4516, 1330, 11843, 499, 16922, 198 ]
3.2
25
''' @author: l4zyc0d3r People who are happy makes other happy. I am gonna finish it slowly but definitely.cdt '''
[ 7061, 6, 198, 31, 9800, 25, 300, 19, 7357, 66, 15, 67, 18, 81, 220, 198, 8061, 508, 389, 3772, 1838, 584, 3772, 13, 314, 716, 8066, 5461, 340, 6364, 475, 4753, 13, 10210, 83, 198, 7061, 6, 198 ]
2.948718
39
from cal_setup import get_calendar_service if __name__ == '__main__': main()
[ 6738, 2386, 62, 40406, 1330, 651, 62, 9948, 9239, 62, 15271, 198, 198, 361, 11593, 3672, 834, 6624, 705, 834, 12417, 834, 10354, 198, 220, 220, 1388, 3419 ]
2.857143
28
# coding=utf-8 """Client blueprint"""
[ 2, 19617, 28, 40477, 12, 23, 198, 37811, 11792, 30881, 37811 ]
3.363636
11
from __future__ import annotations import json import asyncio import itertools import typing as t from collections import defaultdict from contextlib import asynccontextmanager from aiohttp import ClientSession from aiohttp.client import ClientWebSocketResponse from aiohttp.http_websocket import WSMsgType, WSCloseCode ...
[ 6738, 11593, 37443, 834, 1330, 37647, 198, 11748, 33918, 198, 11748, 30351, 952, 198, 11748, 340, 861, 10141, 198, 11748, 19720, 355, 256, 198, 6738, 17268, 1330, 4277, 11600, 198, 6738, 4732, 8019, 1330, 355, 2047, 535, 261, 5239, 37153,...
3.497175
177
# -*- coding:utf-8 -*- # Copyright (c) 2020 Huawei Technologies Co.,Ltd. # # openGauss is licensed under Mulan PSL v2. # You can use this software according to the terms # and conditions of the Mulan PSL v2. # You may obtain a copy of Mulan PSL v2 at: # # http://license.coscl.org.cn/MulanPSL2 # # THIS SOFTWARE...
[ 2, 532, 9, 12, 19617, 25, 40477, 12, 23, 532, 9, 12, 198, 2, 15069, 357, 66, 8, 12131, 43208, 21852, 1766, 1539, 43, 8671, 13, 198, 2, 198, 2, 1280, 35389, 1046, 318, 11971, 739, 17996, 272, 6599, 43, 410, 17, 13, 198, 2, 921,...
3.22028
286
from . import toolFuncs def DefineTrend(data, K): ''' Filter all the trend whose range less than K% ''' pairs = list(zip(data['Date'], data['Close'])) is_extreme = toolFuncs.extreme_point(data['Close'], K, recognition_method='height') output = [pairs[i] for i...
[ 6738, 764, 1330, 2891, 24629, 6359, 198, 220, 220, 220, 220, 198, 220, 220, 220, 220, 198, 220, 220, 220, 220, 198, 220, 220, 220, 220, 198, 220, 220, 220, 220, 198, 4299, 2896, 500, 45461, 7, 7890, 11, 509, 2599, 198, 220, 220, ...
2.104317
278
# Author: # Charles # Function: # Triplet loss function. import torch from torch.autograd import Function import sys sys.path.append('../') from utils.utils import *
[ 2, 6434, 25, 198, 2, 220, 197, 28711, 198, 2, 15553, 25, 198, 2, 220, 197, 14824, 37069, 2994, 2163, 13, 198, 11748, 28034, 198, 6738, 28034, 13, 2306, 519, 6335, 1330, 15553, 198, 11748, 25064, 198, 17597, 13, 6978, 13, 33295, 1078...
3.111111
54