content
stringlengths
1
1.04M
input_ids
listlengths
1
774k
ratio_char_token
float64
0.38
22.9
token_count
int64
1
774k
import matplotlib.pyplot as plt from cv2 import (ml, imread, threshold, findContours, moments, contourArea, arcLength, boundingRect, drawContours, cvtColor, IMREAD_GRAYSCALE, TERM_CRITERIA_MAX_ITER, COLOR_GRAY2RGB) from numpy import (array, matrix, ones, empty, delete, sqrt, pi, ...
[ 11748, 2603, 29487, 8019, 13, 9078, 29487, 355, 458, 83, 198, 198, 6738, 269, 85, 17, 1330, 357, 4029, 11, 545, 961, 11, 11387, 11, 1064, 4264, 4662, 11, 7188, 11, 542, 454, 30547, 11, 10389, 24539, 11, 198, 220, 220, 220, 220, 22...
2.27907
3,397
from collections import deque
[ 6738, 17268, 1330, 390, 4188, 198, 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.8
30
import argparse import asyncio import json import math import random import signal import time from datetime import datetime, timedelta #from netifaces import interfaces, ifaddresses, AF_INET import socket import traceback import configChecker import filecmp import shutil import sys import simpleDali # #For Testing #...
[ 11748, 1822, 29572, 198, 11748, 30351, 952, 198, 11748, 33918, 198, 11748, 10688, 198, 11748, 4738, 198, 11748, 6737, 198, 11748, 640, 198, 6738, 4818, 8079, 1330, 4818, 8079, 11, 28805, 12514, 198, 2, 6738, 2010, 361, 2114, 1330, 20314, ...
2.600726
551
#!/usr/bin/env python # encoding: utf-8 """ util.py Created by Ronak Shah on April 12, 2018. Copyright (c) 2018 Northwell Health. All rights reserved. """ import json import logging import os import sys RESOURCE_FILE = os.getenv('PIE_RESOURCE_CONFIG', "pie_resources.json") JSON_CONFIG = json.load(open(RESOURCE_FILE))...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 198, 2, 21004, 25, 3384, 69, 12, 23, 198, 37811, 198, 22602, 13, 9078, 198, 198, 41972, 416, 6575, 461, 18381, 319, 3035, 1105, 11, 2864, 13, 198, 15269, 357, 66, 8, 2864, 2258, 4053, 3...
2.658147
313
import json import cherrypy import logging from saml2 import BINDING_HTTP_POST from saml2 import BINDING_HTTP_REDIRECT from ventcat import conv_response, as_unicode from ventcat import UnSupported from ventcat.acs import ACS from ventcat.response import Response, make_cookie from ventcat.sso import SSO logger = log...
[ 11748, 33918, 198, 198, 11748, 23612, 9078, 198, 11748, 18931, 198, 198, 6738, 6072, 75, 17, 1330, 347, 12115, 2751, 62, 40717, 62, 32782, 198, 6738, 6072, 75, 17, 1330, 347, 12115, 2751, 62, 40717, 62, 22083, 40, 23988, 198, 198, 673...
3.028571
140
# Version 3.0 - 2021 September 10 # work for both Mac, Windows, Linux # use clear() for clearing terminal # Method 1 # from clearterminal import * -----> clear() # Method 2 # import clearterminal -----> clearterminal.clear() import os import platform platform = platform.system() if platform == 'Darwin': # for Unix (Ma...
[ 2, 10628, 513, 13, 15, 532, 33448, 2693, 838, 198, 198, 2, 670, 329, 1111, 4100, 11, 3964, 11, 7020, 198, 2, 779, 1598, 3419, 329, 17304, 12094, 198, 2, 11789, 352, 198, 2, 422, 1598, 23705, 282, 1330, 1635, 13498, 3784, 1598, 341...
3.455399
213
# -*- coding: utf-8 -*- # Import the reverse lookup function from django.core.urlresolvers import reverse # view imports from django.views.generic import DetailView from django.views.generic import RedirectView from django.views.generic import UpdateView from django.views.generic import ListView # Will be used for lo...
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 2, 17267, 262, 9575, 35847, 2163, 198, 6738, 42625, 14208, 13, 7295, 13, 6371, 411, 349, 690, 1330, 9575, 198, 198, 2, 1570, 17944, 198, 6738, 42625, 14208, 13, 33571, ...
3.49115
226
from should_be import core as sc import unittest
[ 6738, 815, 62, 1350, 1330, 4755, 355, 629, 198, 11748, 555, 715, 395, 628, 198 ]
3.4
15
#!/usr/bin/env python ### IMPORTS # # `moveit_commander` namespace allows Python MoveIt interfaces. # Includes a `MoveGroupCommander`_, `PlanningSceneInterface`_, and `RobotCommander`_ class # # Additional imports allow used for support, ROS messages, and etc. import sys import copy import rospy import moveit_comman...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 198, 198, 21017, 30023, 33002, 198, 2, 198, 2, 4600, 21084, 270, 62, 9503, 4066, 63, 25745, 3578, 11361, 10028, 1026, 20314, 13, 198, 2, 29581, 257, 4600, 21774, 13247, 6935, 4066, 63, 62, ...
3.146586
498
from random import random from hk_common import * from hk_sp import * from test_code_common import * from test_code_eps import * from test_code_aocs import * from test_code_obc import * from test_code_st import * from test_code_sp import * from test_code_pcom import * from test_code_scom import * from client.kaitai....
[ 6738, 4738, 1330, 4738, 198, 198, 6738, 289, 74, 62, 11321, 1330, 1635, 198, 6738, 289, 74, 62, 2777, 1330, 1635, 198, 198, 6738, 1332, 62, 8189, 62, 11321, 1330, 1635, 198, 6738, 1332, 62, 8189, 62, 25386, 1330, 1635, 198, 6738, 13...
2.638298
235
##@package daysselector # @author Sebastien MATHIEU from abc import ABCMeta, abstractmethod ## Abstract class of a day selector.
[ 2235, 31, 26495, 1528, 19738, 273, 198, 2, 2488, 9800, 22787, 2013, 337, 12599, 10008, 52, 198, 198, 6738, 450, 66, 1330, 9738, 48526, 11, 12531, 24396, 628, 198, 2235, 27741, 1398, 286, 257, 1110, 31870, 13, 198 ]
3.473684
38
from trex.stl.api import *
[ 6738, 2054, 87, 13, 301, 75, 13, 15042, 1330, 1635, 628 ]
2.545455
11
import logging from models import Event, Ranking, Award, Match, MatchScore from bs4 import BeautifulSoup from db.orm import orm class ResultsPageHelper: """Helper methods to parse the output from FTC Live Scoring Software pages""" res_map = {"R": "red", "B": "blue", "T": "tie"} @classmethod @classmet...
[ 11748, 18931, 198, 6738, 4981, 1330, 8558, 11, 45407, 11, 11289, 11, 13225, 11, 13225, 26595, 198, 6738, 275, 82, 19, 1330, 23762, 50, 10486, 198, 6738, 20613, 13, 579, 1330, 393, 76, 198, 198, 4871, 15691, 9876, 47429, 25, 198, 220, ...
1.934407
869
# Class to generate data for training import numpy as np import json import h5py import os import tensorflow.keras as keras from deepinterpolation.generic import JsonLoader import tifffile import nibabel as nib from scipy.io import wavfile import s3fs class DeepGenerator(keras.utils.Sequence): """ This class ...
[ 2, 5016, 284, 7716, 1366, 329, 3047, 198, 11748, 299, 32152, 355, 45941, 198, 11748, 33918, 198, 11748, 289, 20, 9078, 198, 11748, 28686, 198, 11748, 11192, 273, 11125, 13, 6122, 292, 355, 41927, 292, 198, 6738, 2769, 3849, 16104, 341, ...
2.125052
9,540
"""empty message Revision ID: b652b688d0ed Revises: c6170594b21e Create Date: 2017-06-22 12:43:46.146126 """ # revision identifiers, used by Alembic. revision = 'b652b688d0ed' down_revision = 'c6170594b21e' from alembic import op import sqlalchemy as sa
[ 37811, 28920, 3275, 198, 198, 18009, 1166, 4522, 25, 275, 43193, 65, 34427, 67, 15, 276, 198, 18009, 2696, 25, 269, 47941, 2713, 5824, 65, 2481, 68, 198, 16447, 7536, 25, 2177, 12, 3312, 12, 1828, 1105, 25, 3559, 25, 3510, 13, 20964...
2.5
104
#!/usr/bin/env python # Purpose: Exercise for Coursera Class Using Python to Access Web Data. # Reads through a file, extracts numbers using regex and sums them. import re fh = open("regex_sum_320787.txt", 'r') numlist = list() for line in fh: line = line.rstrip() x = re.findall('[0-9]+', line) ...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 198, 2, 32039, 25, 32900, 329, 2734, 2655, 64, 5016, 8554, 11361, 284, 8798, 5313, 6060, 13, 198, 2, 220, 220, 220, 220, 220, 220, 220, 220, 220, 4149, 82, 832, 257, 2393, 11, 32139, 31...
2.384615
169
import random from Items import * pygame.init()
[ 11748, 4738, 198, 6738, 17230, 1330, 1635, 198, 198, 9078, 6057, 13, 15003, 3419, 628, 628 ]
3.25
16
from collections import Counter from utils import flatten_lists
[ 6738, 17268, 1330, 15034, 201, 198, 6738, 3384, 4487, 1330, 27172, 268, 62, 20713, 201 ]
4.333333
15
import astropy.io.fits as pyfits
[ 11748, 6468, 28338, 13, 952, 13, 21013, 355, 12972, 21013, 628 ]
3.090909
11
from model.command import AbsCommand from model.game_model import AbsGameModel from model.game_object import GameObject
[ 6738, 2746, 13, 21812, 1330, 13051, 21575, 198, 6738, 2746, 13, 6057, 62, 19849, 1330, 13051, 8777, 17633, 198, 6738, 2746, 13, 6057, 62, 15252, 1330, 3776, 10267, 628, 198 ]
4.066667
30
import numpy as np import VoigtFit ### Fit DLA towards quasar Q1313+1441 ### Observed in X-shooter P089.A-0068 z_DLA = 1.7941 logNHI = 21.3, 0.1 # value, uncertainty # If log(NHI) is not known use: #logNHI = None #### Load UVB and VIS data: UVB_fname = 'data/test_UVB_1d.spec' res_UVB = 8000 VIS_fname = 'data/test_...
[ 11748, 299, 32152, 355, 45941, 198, 11748, 20687, 328, 83, 31805, 198, 198, 21017, 25048, 360, 13534, 3371, 627, 42391, 1195, 1485, 1485, 10, 1415, 3901, 198, 21017, 11086, 8520, 287, 1395, 12, 1477, 25141, 350, 49352, 13, 32, 12, 405, ...
2.583433
1,666
import os import cv2 import face_detector import config if __name__ == '__main__': camera = cv2.VideoCapture(0) cv2.namedWindow("preview") person_name = input('Person name: ').lower() person_folder = os.path.join(config.original_images_path, person_name) if not os.path.exists(person_folder): ...
[ 11748, 28686, 198, 11748, 269, 85, 17, 198, 11748, 1986, 62, 15255, 9250, 198, 11748, 4566, 628, 198, 361, 11593, 3672, 834, 6624, 705, 834, 12417, 834, 10354, 198, 220, 220, 220, 4676, 796, 269, 85, 17, 13, 10798, 49630, 7, 15, 8, ...
2.052336
535
# -*- coding: utf-8 -*- # <nbformat>3.0</nbformat> # <codecell> import re from itertools import chain, combinations def clause_tokenize(sentence): """Split on comma or parenthesis, if there are more then three words for each clause""" clause_re = re.compile(r'((?:\S+\s){2,}\S+,|(?:\S+\s){3,}(?=\((?:\S+\s){2,...
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 2, 1279, 46803, 18982, 29, 18, 13, 15, 3556, 46803, 18982, 29, 198, 198, 2, 1279, 8189, 3846, 29, 198, 198, 11748, 302, 198, 6738, 340, 861, 10141, 1330, 6333, 11, 1...
2.389126
938
from poc.classes.AuxST import AuxST from poc.classes.AuxSymbolTable import AuxSymbolTable
[ 6738, 279, 420, 13, 37724, 13, 32, 2821, 2257, 1330, 47105, 2257, 198, 6738, 279, 420, 13, 37724, 13, 32, 2821, 13940, 23650, 10962, 1330, 47105, 13940, 23650, 10962, 628, 198 ]
2.967742
31
from collections import deque # Definition for a binary tree node. # class TreeNode: # def __init__(self, val=0, left=None, right=None): # self.val = val # self.left = left # self.right = right # BFS (Accepted), O(n) time, O(n) space # # BFS (Top Voted), O(n) time, O(n) space ...
[ 6738, 17268, 1330, 390, 4188, 198, 198, 2, 30396, 329, 257, 13934, 5509, 10139, 13, 198, 2, 1398, 12200, 19667, 25, 198, 2, 220, 220, 220, 220, 825, 11593, 15003, 834, 7, 944, 11, 1188, 28, 15, 11, 1364, 28, 14202, 11, 826, 28, ...
2.011928
503
import uuid from django.db.models import ( Model, UUIDField, DateTimeField, ManyToManyField, CASCADE, ForeignKey, OneToOneField, CharField, ) from automated_logging.decorators import exclude_model, include_model class TestBase(Model): """ Base for all the test models """ id =...
[ 11748, 334, 27112, 198, 6738, 42625, 14208, 13, 9945, 13, 27530, 1330, 357, 198, 220, 220, 220, 9104, 11, 198, 220, 220, 220, 471, 27586, 15878, 11, 198, 220, 220, 220, 7536, 7575, 15878, 11, 198, 220, 220, 220, 4650, 2514, 7085, 15...
3.046043
695
version = "__VERSION__"
[ 9641, 796, 366, 834, 43717, 834, 1, 198 ]
3
8
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Created on Thu Aug 27 10:55:08 2020 @author: andreypoletaev Assumptions made: time is in picoseconds, timestep is 1 fs """ # ============================================================================= # %% Imports & constants # ==========================...
[ 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, 2447, 2681, 838, 25, 2816, 25, 2919, 12131, 198, 198, 31, 9800, 25, 290, 4364, 750...
3.015759
698
from django.contrib import admin from . import models admin.site.register(models.Agency) admin.site.register(models.Therapist) admin.site.register(models.Client) admin.site.register(models.ClientSymptom) admin.site.register(models.Session) admin.site.register(models.SymptomScore) # from guardian.admin import Guard...
[ 6738, 42625, 14208, 13, 3642, 822, 1330, 13169, 198, 198, 6738, 764, 1330, 4981, 198, 198, 28482, 13, 15654, 13, 30238, 7, 27530, 13, 32, 4949, 8, 198, 28482, 13, 15654, 13, 30238, 7, 27530, 13, 35048, 41690, 8, 198, 28482, 13, 1565...
3.060403
149
"""LibFM implementation of fastFM """ import datatable as dt import numpy as np from sklearn.preprocessing import LabelEncoder from h2oaicore.models import CustomModel from sklearn.model_selection import StratifiedKFold from sklearn.calibration import CalibratedClassifierCV from sklearn.base import BaseEstimator, Class...
[ 37811, 25835, 23264, 7822, 286, 3049, 23264, 37227, 198, 11748, 4818, 21156, 355, 288, 83, 198, 11748, 299, 32152, 355, 45941, 198, 6738, 1341, 35720, 13, 3866, 36948, 1330, 36052, 27195, 12342, 198, 6738, 289, 17, 12162, 291, 382, 13, ...
3.414815
135
import errno import json import logging import os import shutil import uuid import zipfile import re import subprocess import pandas as pd from kb_Amplicon.Utils.DataUtil import DataUtil from installed_clients.DataFileUtilClient import DataFileUtil from installed_clients.KBaseReportClient import KBaseReport
[ 198, 11748, 11454, 3919, 198, 11748, 33918, 198, 11748, 18931, 198, 11748, 28686, 198, 11748, 4423, 346, 198, 11748, 334, 27112, 198, 11748, 19974, 7753, 198, 11748, 302, 198, 11748, 850, 14681, 198, 198, 11748, 19798, 292, 355, 279, 67, ...
3.402174
92
import pygame from pygame.sprite import Sprite import sys class Estrela(Sprite): """Uma classe que representa uma unica estrela""" def __init__(self, tela, janela): """Inicializa a estrela e define sua posicao inicial.""" super(Estrela, self).__init__() self.janela = janela sel...
[ 11748, 12972, 6057, 198, 6738, 12972, 6057, 13, 34975, 578, 1330, 33132, 198, 11748, 25064, 198, 198, 4871, 10062, 2411, 64, 7, 38454, 578, 2599, 198, 220, 220, 220, 37227, 52, 2611, 537, 21612, 8358, 2380, 64, 334, 2611, 555, 3970, 1...
2.075581
516
# # Helper functions for test runs in mantaflow # from manta import * import os import shutil import re from helperGeneric import * # ------------------------------------------------------------------------------------------ # test result checking # global var to print manta version once per test printVersion =...
[ 2, 198, 2, 5053, 525, 5499, 329, 1332, 4539, 287, 24818, 1878, 9319, 198, 2, 220, 198, 198, 6738, 285, 4910, 1330, 1635, 198, 11748, 28686, 198, 11748, 4423, 346, 198, 11748, 302, 198, 6738, 31904, 46189, 1330, 1635, 628, 198, 2, 16...
4.137821
312
from gym.envs.registration import register register( id='recon-arena-v0', entry_point='gym_marl_reconnaissance.envs.recon_arena:ReconArena', )
[ 6738, 11550, 13, 268, 14259, 13, 2301, 33397, 1330, 7881, 198, 198, 30238, 7, 198, 220, 220, 220, 4686, 11639, 260, 1102, 12, 533, 2616, 12, 85, 15, 3256, 198, 220, 220, 220, 5726, 62, 4122, 11639, 1360, 76, 62, 3876, 75, 62, 260,...
2.375
64
""" Aliyun ECS ========== The following DNS API actions are nearly fully supported: * AddDomainRecord * DeleteDomainRecord * DescribeDomainRecords """
[ 37811, 198, 2348, 7745, 403, 412, 7902, 198, 2559, 855, 198, 198, 464, 1708, 18538, 7824, 4028, 389, 3016, 3938, 4855, 25, 628, 220, 220, 220, 1635, 3060, 43961, 23739, 198, 220, 220, 220, 1635, 23520, 43961, 23739, 198, 220, 220, 220...
3.235294
51
import sys import logging from sentry_sdk import utils from sentry_sdk.hub import Hub from sentry_sdk.utils import logger from sentry_sdk.client import _client_init_debug from logging import LogRecord
[ 11748, 25064, 198, 11748, 18931, 198, 198, 6738, 1908, 563, 62, 21282, 74, 1330, 3384, 4487, 198, 6738, 1908, 563, 62, 21282, 74, 13, 40140, 1330, 14699, 198, 6738, 1908, 563, 62, 21282, 74, 13, 26791, 1330, 49706, 198, 6738, 1908, 56...
3.269841
63
#----------------------------------------------------------------------------- # Copyright (c) 2012 - 2018, Anaconda, Inc. and Intake contributors # All rights reserved. # # The full license is in the LICENSE file, distributed with this software. #------------------------------------------------------------------------...
[ 2, 10097, 32501, 198, 2, 15069, 357, 66, 8, 2321, 532, 2864, 11, 1052, 330, 13533, 11, 3457, 13, 290, 48885, 20420, 198, 2, 1439, 2489, 10395, 13, 198, 2, 198, 2, 383, 1336, 5964, 318, 287, 262, 38559, 24290, 2393, 11, 9387, 351, ...
3.287267
644
# Given two strings s and t , write a function to determine if t is an anagram of s. # # Example 1: # # # Input: s = "anagram", t = "nagaram" # Output: true # # # Example 2: # # # Input: s = "rat", t = "car" # Output: false # # # Note: # You may assume the string contains only lowercase alphabets. # # Follow u...
[ 2, 11259, 734, 13042, 264, 290, 256, 1849, 11, 3551, 257, 2163, 284, 5004, 611, 256, 318, 281, 281, 6713, 286, 264, 13, 201, 198, 2, 198, 2, 17934, 352, 25, 201, 198, 2, 198, 2, 198, 2, 23412, 25, 264, 796, 366, 272, 6713, 160...
2.668235
425
""" *`prin` Prints the results of all the following function, and the numeric value of any namespace. *`let` converts an integer into its Unicode character. *`if` returns the highest number of two different namespaces/function *`set` override the numeric value of a namespace, and replaces the original in duplicate cas...
[ 37811, 198, 198, 9, 63, 1050, 259, 63, 12578, 82, 262, 2482, 286, 477, 262, 1708, 2163, 11, 290, 262, 35575, 1988, 198, 1659, 597, 25745, 13, 198, 9, 63, 1616, 63, 26161, 281, 18253, 656, 663, 34371, 2095, 13, 198, 9, 63, 361, 6...
4.015504
129
#!/usr/bin/env python3 """detectors.py: contains face detectors modules.""" __author__ = "Ahmed Hermas" __copyright__ = "Copyright 2022, © UOL " __license__ = "MIT" __version__ = "0.0.1" __email__ = "a7medhermas@gmail.com" import os import torch from cv2 import cv2 import utils import numpy as np from Siamese_resnet1...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 18, 198, 198, 37811, 15255, 478, 669, 13, 9078, 25, 4909, 1986, 40471, 13103, 526, 15931, 198, 198, 834, 9800, 834, 796, 366, 10910, 1150, 2332, 5356, 1, 198, 834, 22163, 4766, 834, 796, ...
2.712
125
#!/usr/bin/env python # Copyright (c) 2017, The MITRE Corporation. All rights reserved. # See LICENSE.txt for complete terms. """ Description: An example of how to add CIQ Identity information to a STIX Indicator. """ # stdlib from pprint import pprint # python-cybox from cybox.objects.file_object import File # pyth...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 198, 2, 15069, 357, 66, 8, 2177, 11, 383, 17168, 2200, 10501, 13, 1439, 2489, 10395, 13, 198, 2, 4091, 38559, 24290, 13, 14116, 329, 1844, 2846, 13, 198, 198, 37811, 198, 11828, 25, 1052,...
3.045198
177
import pygame
[ 11748, 12972, 6057, 198, 220, 220, 220, 220, 220, 220, 220, 220, 628 ]
1.846154
13
import boto3 import configparser import logging from datetime import datetime from botocore.exceptions import NoCredentialsError import os import sys from pathlib import Path sys.path.append(os.path.join(os.path.dirname(__file__), '..')) from src.constants import FILE_NAME """ Setting up s3 destination structure. ...
[ 11748, 275, 2069, 18, 198, 11748, 4566, 48610, 198, 11748, 18931, 198, 6738, 4818, 8079, 1330, 4818, 8079, 198, 6738, 10214, 420, 382, 13, 1069, 11755, 1330, 1400, 34, 445, 14817, 12331, 198, 11748, 28686, 198, 11748, 25064, 198, 6738, ...
2.616071
560
from typing import Any from pandas_profiling.report.presentation.core.item_renderer import ItemRenderer
[ 6738, 19720, 1330, 4377, 198, 198, 6738, 19798, 292, 62, 5577, 4386, 13, 13116, 13, 25579, 341, 13, 7295, 13, 9186, 62, 10920, 11882, 1330, 9097, 49, 437, 11882, 628 ]
3.533333
30
import graphviz as gv import os from pyflowgraph.models import ExtControlFlowGraph, DataNode, OperationNode, ControlNode, ControlEdge, DataEdge, EntryNode
[ 11748, 4823, 85, 528, 355, 308, 85, 198, 11748, 28686, 198, 198, 6738, 12972, 11125, 34960, 13, 27530, 1330, 5683, 15988, 37535, 37065, 11, 6060, 19667, 11, 14680, 19667, 11, 6779, 19667, 11, 6779, 37021, 11, 6060, 37021, 11, 21617, 196...
3.697674
43
# not good # Dynamic programing
[ 198, 198, 2, 407, 922, 628, 198, 198, 2, 26977, 1430, 278, 198 ]
2.846154
13
from datetime import datetime from ethtx_ce.config import EthConfig from ethtx_ce.backend.models.objects_model import Block, Event, Transaction from mocks.mocks import MockWeb3Provider
[ 6738, 4818, 8079, 1330, 4818, 8079, 198, 198, 6738, 4555, 17602, 62, 344, 13, 11250, 1330, 9956, 16934, 198, 6738, 4555, 17602, 62, 344, 13, 1891, 437, 13, 27530, 13, 48205, 62, 19849, 1330, 9726, 11, 8558, 11, 45389, 198, 6738, 285, ...
3.596154
52
"""Run a model simulation.""" # Default climate data is ERA-Interim; specify CMIP5 by specifying a filename to the argument: # (Command line) python run_simulation_list_multiprocess.py -gcm_list_fn=C:\...\gcm_rcpXX_filenames.txt # - Default is running ERA-Interim in parallel with five processors. # (Spyd...
[ 37811, 10987, 257, 2746, 18640, 526, 15931, 201, 198, 2, 15161, 4258, 1366, 318, 18802, 12, 9492, 320, 26, 11986, 16477, 4061, 20, 416, 31577, 257, 29472, 284, 262, 4578, 25, 201, 198, 2, 220, 220, 220, 357, 21575, 1627, 8, 21015, 1...
1.921429
34,020
# coding=utf8 from __future__ import unicode_literals, absolute_import, division, print_function from sopel_modules.spicemanip import spicemanip import re from num2words import num2words translate = Translate()
[ 2, 19617, 28, 40477, 23, 198, 6738, 11593, 37443, 834, 1330, 28000, 1098, 62, 17201, 874, 11, 4112, 62, 11748, 11, 7297, 11, 3601, 62, 8818, 198, 198, 6738, 264, 404, 417, 62, 18170, 13, 2777, 291, 8463, 541, 1330, 599, 291, 8463, ...
3.223881
67
from .basemodel import BaseModel from .types.field_definition import FieldDefinition from typing import List, Dict
[ 6738, 764, 12093, 368, 375, 417, 1330, 7308, 17633, 198, 6738, 764, 19199, 13, 3245, 62, 46758, 1330, 7663, 36621, 198, 6738, 19720, 1330, 7343, 11, 360, 713, 628 ]
4
29
# # Strelka - Small Variant Caller # Copyright (c) 2009-2018 Illumina, Inc. # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, either version 3 of the License, or # at your option) any later vers...
[ 2, 198, 2, 520, 2411, 4914, 532, 10452, 38215, 10244, 198, 2, 15069, 357, 66, 8, 3717, 12, 7908, 39256, 1437, 11, 3457, 13, 198, 2, 198, 2, 770, 1430, 318, 1479, 3788, 25, 345, 460, 17678, 4163, 340, 290, 14, 273, 13096, 198, 2,...
3.213075
413
import math import unittest from simulation.utils.geometry.frame import Frame, validate_and_maintain_frames from simulation.utils.geometry.transform import Transform from simulation.utils.geometry.vector import Vector if __name__ == "__main__": unittest.main()
[ 11748, 10688, 198, 11748, 555, 715, 395, 198, 198, 6738, 18640, 13, 26791, 13, 469, 15748, 13, 14535, 1330, 25184, 11, 26571, 62, 392, 62, 76, 32725, 62, 37805, 198, 6738, 18640, 13, 26791, 13, 469, 15748, 13, 35636, 1330, 26981, 198,...
3.493506
77
#!/usr/bin/env python '''Test that window icon can be set. Expected behaviour: One window will be opened. It will have an icon depicting a yellow "A". Close the window or press ESC to end the test. ''' __docformat__ = 'restructuredtext' __version__ = '$Id: WINDOW_SET_MOUSE_CURSOR.py 717 2007-03-03 07:...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 198, 198, 7061, 6, 14402, 326, 4324, 7196, 460, 307, 900, 13, 198, 198, 3109, 7254, 9172, 25, 198, 220, 220, 220, 1881, 4324, 481, 307, 4721, 13, 220, 632, 481, 423, 281, 7196, 27561, 2...
2.693694
222
from arm.logicnode.arm_nodes import * class RaycastObjectNode(ArmLogicTreeNode): """it takes an object and returns true or false if the object is touched at screen (x, y) and the (x,y, z) position of that touch if returned""" bl_idname = 'LNRaycastObjectNode' bl_label = 'Raycast Object' arm_section = '...
[ 6738, 3211, 13, 6404, 291, 17440, 13, 1670, 62, 77, 4147, 1330, 1635, 198, 198, 4871, 7760, 2701, 10267, 19667, 7, 26560, 11187, 291, 27660, 19667, 2599, 198, 220, 220, 220, 37227, 270, 2753, 281, 2134, 290, 5860, 2081, 393, 3991, 611...
2.876033
121
import miniupnpc import random import itertools import ipaddress if __name__ == "__main__": pm = port_manager() print(pm.discover()) (result, port) = pm.mapport() print(result, port) print(pm.used_ports()) print(pm.unmapport(int(port))) print(pm.used_ports()) print(pm.unmap_ports(close...
[ 11748, 9927, 929, 77, 14751, 198, 11748, 4738, 198, 11748, 340, 861, 10141, 198, 11748, 20966, 21975, 628, 198, 361, 11593, 3672, 834, 6624, 366, 834, 12417, 834, 1298, 198, 220, 220, 220, 9114, 796, 2493, 62, 37153, 3419, 198, 220, 2...
2.433824
136
from django.shortcuts import render from rest_framework import viewsets from .models import Item from .serializers import ItemSerializer
[ 6738, 42625, 14208, 13, 19509, 23779, 1330, 8543, 198, 6738, 1334, 62, 30604, 1330, 5009, 1039, 198, 198, 6738, 764, 27530, 1330, 9097, 198, 6738, 764, 46911, 11341, 1330, 9097, 32634, 7509, 628 ]
4.212121
33
from tensorflow.keras import models from tensorflow.keras.callbacks import History from targets.values.builtins_values import DataValueType
[ 6738, 11192, 273, 11125, 13, 6122, 292, 1330, 4981, 198, 6738, 11192, 273, 11125, 13, 6122, 292, 13, 13345, 10146, 1330, 7443, 198, 198, 6738, 6670, 13, 27160, 13, 18780, 1040, 62, 27160, 1330, 6060, 11395, 6030, 628, 198 ]
3.666667
39
#coding = utf-8 ''' Here is a demo of showing how to slove powerflow with stepspy. Changgang Li, 2019/08/25 ''' from stepspy import STEPS # import the class 'STEPS' simulator = STEPS(is_default=True) # create a STEPS simulator instance simulator.info() powerflow_data_file = 'IEEE9.raw' # file name of powerflow data...
[ 2, 66, 7656, 796, 3384, 69, 12, 23, 198, 7061, 6, 198, 4342, 318, 257, 13605, 286, 4478, 703, 284, 1017, 659, 1176, 11125, 351, 2239, 2777, 88, 13, 198, 1925, 648, 28284, 7455, 11, 13130, 14, 2919, 14, 1495, 198, 7061, 6, 198, 1...
2.987371
3,009
# This module initiates the checkpoint # processing of FTI files. import os import glob import os.path import time from fnmatch import fnmatch import configparser import posix_read_ckpts import subprocess import sys # variables used for input validation fti_levels = (1, 2, 3, 4) output_formats = ('CSV', 'HDF5', 'dat...
[ 2, 770, 8265, 5383, 689, 262, 26954, 198, 2, 7587, 286, 19446, 40, 3696, 13, 220, 198, 198, 11748, 28686, 198, 11748, 15095, 198, 11748, 28686, 13, 6978, 198, 11748, 640, 198, 6738, 24714, 15699, 1330, 24714, 15699, 198, 11748, 4566, ...
3.285383
431
# -*- coding: utf-8 -*- # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software #...
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 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.943089
246
while True: try: n = int(input()) m,l = map(int, input().split(' ')) m_dic = {} l_dic = {} for i in range(1, m+1): m_dic[i] = list(map(int, input().split(' '))) for i in range(1, l+1): l_dic[i] = list(map(int, input().split(' '))) cm...
[ 4514, 6407, 25, 198, 220, 220, 220, 1949, 25, 198, 220, 220, 220, 220, 220, 220, 220, 299, 796, 493, 7, 15414, 28955, 198, 220, 220, 220, 220, 220, 220, 220, 285, 11, 75, 796, 3975, 7, 600, 11, 5128, 22446, 35312, 10786, 705, 40...
1.688889
360
import pytest from linked_list import LinkedList as LL @pytest.fixture def empty_ll(): """fixture for empty array""" return LL() @pytest.fixture def small_ll(): """fixture for short array""" return LL([1, 2, 3, 4]) @pytest.fixture def short_ll(): """fixture for short array""" return LL([5,...
[ 11748, 12972, 9288, 198, 6738, 6692, 62, 4868, 1330, 7502, 276, 8053, 355, 27140, 628, 198, 31, 9078, 9288, 13, 69, 9602, 198, 4299, 6565, 62, 297, 33529, 198, 220, 220, 220, 37227, 69, 9602, 329, 6565, 7177, 37811, 198, 220, 220, 2...
2.555556
171
# coding=utf-8 # Copyright 2022 The Google Research Authors. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicab...
[ 2, 19617, 28, 40477, 12, 23, 198, 2, 15069, 33160, 383, 3012, 4992, 46665, 13, 198, 2, 198, 2, 49962, 739, 262, 24843, 13789, 11, 10628, 362, 13, 15, 357, 1169, 366, 34156, 15341, 198, 2, 345, 743, 407, 779, 428, 2393, 2845, 287, ...
3.230964
394
# -*- coding: utf-8 -*- # # This file is part of REANA. # Copyright (C) 2017, 2018 CERN. # # REANA is free software; you can redistribute it and/or modify it # under the terms of the MIT License; see LICENSE file for more details. """REANA client workflow related commands.""" import json import logging import os impor...
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 2, 198, 2, 770, 2393, 318, 636, 286, 4526, 31574, 13, 198, 2, 15069, 357, 34, 8, 2177, 11, 2864, 327, 28778, 13, 198, 2, 198, 2, 4526, 31574, 318, 1479, 3788, 26, ...
2.204176
20,213
import json import logging import re from buildtest.defaults import ( DEFAULT_SETTINGS_FILE, DEFAULT_SETTINGS_SCHEMA, USER_SETTINGS_FILE, ) from buildtest.exceptions import ConfigurationError from buildtest.schemas.defaults import custom_validator from buildtest.schemas.utils import load_recipe, load_schem...
[ 11748, 33918, 198, 11748, 18931, 198, 11748, 302, 198, 198, 6738, 1382, 9288, 13, 12286, 82, 1330, 357, 198, 220, 220, 220, 5550, 38865, 62, 28480, 51, 20754, 62, 25664, 11, 198, 220, 220, 220, 5550, 38865, 62, 28480, 51, 20754, 62, ...
2.065371
5,813
# Copyright 2012, SIL International # All rights reserved. # # This library is free software; you can redistribute it and/or modify # it under the terms of the GNU Lesser General Public License as published # by the Free Software Foundation; either version 2.1 of License, or # (at your option) any lat...
[ 2, 220, 220, 220, 15069, 2321, 11, 47551, 4037, 198, 2, 220, 220, 220, 1439, 2489, 10395, 13, 198, 2, 198, 2, 220, 220, 220, 770, 5888, 318, 1479, 3788, 26, 345, 460, 17678, 4163, 340, 290, 14, 273, 13096, 198, 2, 220, 220, 220,...
2.181034
2,204
from pydantic import BaseModel, Field import numpy as np from ..units import Pressure, Temperature, CriticalProperties
[ 6738, 279, 5173, 5109, 1330, 7308, 17633, 11, 7663, 198, 11748, 299, 32152, 355, 45941, 198, 6738, 11485, 41667, 1330, 30980, 11, 34467, 11, 17684, 2964, 18200, 198 ]
4.25
28
try: import unittest except ImportError: import unittest2 as unittest from sys import version_info from mpegdash.parser import MPEGDASHParser
[ 28311, 25, 198, 220, 220, 220, 1330, 555, 715, 395, 198, 16341, 17267, 12331, 25, 198, 220, 220, 220, 1330, 555, 715, 395, 17, 355, 555, 715, 395, 198, 198, 6738, 25064, 1330, 2196, 62, 10951, 198, 6738, 285, 431, 21287, 1077, 13, ...
3.04
50
# Copyright 2018 Gehtsoft USA LLC # Licensed under the license derived from 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://fxcodebase.com/licenses/open-source/license.html # Unless required by ap...
[ 2, 15069, 2864, 2269, 4352, 4215, 4916, 11419, 198, 198, 2, 49962, 739, 262, 5964, 10944, 422, 262, 24843, 13789, 11, 10628, 362, 13, 15, 357, 1169, 366, 34156, 15341, 220, 198, 2, 345, 743, 407, 779, 428, 2393, 2845, 287, 11846, 35...
3.287425
334
import logging from django.core.management.base import BaseCommand, CommandError from ngw.extensions.matrix import matrix
[ 11748, 18931, 198, 198, 6738, 42625, 14208, 13, 7295, 13, 27604, 13, 8692, 1330, 7308, 21575, 11, 9455, 12331, 198, 198, 6738, 23370, 86, 13, 2302, 5736, 13, 6759, 8609, 1330, 17593, 628 ]
3.787879
33
from django.conf.urls import include from django.contrib import admin from django.urls import path urlpatterns = [ path('admin/', admin.site.urls), # path('searchableselect/', include('searchableselect.urls')), path('', include('page.urls')), path('game/', include('game.urls')), path('client/', i...
[ 6738, 42625, 14208, 13, 10414, 13, 6371, 82, 1330, 2291, 198, 6738, 42625, 14208, 13, 3642, 822, 1330, 13169, 198, 6738, 42625, 14208, 13, 6371, 82, 1330, 3108, 198, 198, 6371, 33279, 82, 796, 685, 198, 220, 220, 220, 3108, 10786, 284...
2.791946
149
import json import re import torch import random import syft as sy from ... import utils from . import utils as torch_utils import logging import numpy as np class _SyftTensor(object): """ Super class for all Syft tensors, that contains all the specific syft functions """ def set_id(self, new_id): ...
[ 11748, 33918, 198, 11748, 302, 198, 11748, 28034, 198, 11748, 4738, 198, 11748, 827, 701, 355, 827, 198, 6738, 2644, 1330, 3384, 4487, 198, 6738, 764, 1330, 3384, 4487, 355, 28034, 62, 26791, 198, 11748, 18931, 198, 11748, 299, 32152, 3...
2.137064
5,647
from dataCheck import customerDataCheck import json from auth.flaskAuthVerify import tokenVerify from flask import Blueprint, Response, g from postgres.databaseConnection import PostgresControll manager = Blueprint('getSpecJobHistory', __name__, url_prefix='/jobs') # 특정 고객의 모든 시술 기록을 불러옴 @manager.route('/customer/<...
[ 171, 119, 123, 6738, 1366, 9787, 1330, 6491, 6601, 9787, 198, 11748, 33918, 198, 198, 6738, 6284, 13, 2704, 2093, 30515, 13414, 1958, 1330, 11241, 13414, 1958, 198, 6738, 42903, 1330, 39932, 11, 18261, 11, 308, 198, 6738, 1281, 34239, 1...
2.47619
147
import numpy as np class LongTensor: """ LongTensor is a type of Tensor to keep integers """ def __init__(self, value, name='LongTensor', trainable=False): """ :param value: long value :param name: :param trainable: """ self.value = np.array(value, dty...
[ 11748, 299, 32152, 355, 45941, 198, 198, 4871, 5882, 51, 22854, 25, 198, 220, 220, 220, 37227, 198, 220, 220, 220, 5882, 51, 22854, 318, 257, 2099, 286, 309, 22854, 284, 1394, 37014, 628, 220, 220, 220, 37227, 628, 220, 220, 220, 82...
2.406534
551
# -*- coding: utf-8 -*- """ Created on Mon Jan 4 18:45:05 2021. @author: mahdi """ import numpy as np import matplotlib.pyplot as plt from sklearn import svm, datasets from sklearn.datasets import make_blobs from sklearn.preprocessing import StandardScaler from sklearn.neighbors import NearestCentroid i...
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 201, 198, 37811, 201, 198, 41972, 319, 2892, 2365, 220, 604, 1248, 25, 2231, 25, 2713, 33448, 13, 201, 198, 201, 198, 31, 9800, 25, 42768, 10989, 201, 198, 37811, 201, 198,...
2.177979
5,967
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Created on Tue Oct 29 19:02:02 2019 @author: amandaash """ import numpy as np import matplotlib.pyplot as plt """ dt = 0.0001 mass = 1 p_value = 2 k_constant = 100 v_initial = 0 x_initial = 1 t_initial = 0 t_final = 10 static_coeff = 0.45 kinetic_coeff = 0.35 viscous...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 18, 198, 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 37811, 198, 41972, 319, 30030, 2556, 2808, 678, 25, 2999, 25, 2999, 13130, 198, 198, 31, 9800, 25, 716, 5282, 107...
2.309244
2,380
#!/usr/bin/env python from pwn import * SERVER = "mustard.stt.rnl.tecnico.ulisboa.pt" PORT = 10091 POS = 7 s = remote(SERVER, PORT) s.sendline("%{}$s".format(POS)) print(s.recvuntil("}")) s.close()
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 198, 6738, 279, 675, 1330, 1635, 198, 198, 35009, 5959, 796, 366, 27238, 446, 13, 301, 83, 13, 81, 21283, 13, 660, 31522, 3713, 13, 377, 271, 48614, 13, 457, 1, 198, 15490, 796, 1802, 6...
2.138298
94
# -*- coding: utf-8 -*- import base64 import ConfigParser import fileinput import json import os import re import requests from enigma import eTimer, getDesktop, iServiceInformation from Components.ActionMap import ActionMap from Components.Label import Label from Components.Sources.List import List from Screens.Messa...
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 11748, 2779, 2414, 198, 11748, 17056, 46677, 198, 11748, 2393, 15414, 198, 11748, 33918, 198, 11748, 28686, 198, 11748, 302, 198, 11748, 7007, 198, 198, 6738, 551, 13495, ...
2.741573
1,513
# -*- encoding: utf-8 -*- """ License: MIT Copyright (c) 2019 - present AppSeed.us """ from flask import Flask, url_for from flask_login import LoginManager from flask_sqlalchemy import SQLAlchemy from importlib import import_module from logging import basicConfig, DEBUG, getLogger, StreamHandler from os import path ...
[ 2, 532, 9, 12, 21004, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 37811, 198, 34156, 25, 17168, 198, 15269, 357, 66, 8, 13130, 532, 1944, 2034, 50, 2308, 13, 385, 198, 37811, 198, 198, 6738, 42903, 1330, 46947, 11, 19016, 62, 1640, 1...
3.089965
289
# -*- coding: utf-8 -*- """ Tencent is pleased to support the open source community by making 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) available. Copyright (C) 2017-2021 THL A29 Limited, a Tencent company. All rights reserved. Licensed under the MIT License (the "License"); you may not use this file except in co...
[ 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, 5525, 241, 251, 165, 110, 116, 162, 247, 118, 12859, 239, 47, 7252, 50, 33176, 111, 2...
3.576305
498
# coding=utf-8 import matplotlib.pyplot as plt import numpy as np if __name__ == '__main__': # 由master生成的测试参数 row = 10000 col = 10000 iteration = 10 param = {'id': '3', 'strategy': 'lt', 'p': 10, 'c': 0.03, 'delta': 0.5, 'alpha': 2.0} params = [{'key': 'client-a'}, {'key': 'client-...
[ 2, 19617, 28, 40477, 12, 23, 198, 11748, 2603, 29487, 8019, 13, 9078, 29487, 355, 458, 83, 198, 11748, 299, 32152, 355, 45941, 198, 198, 361, 11593, 3672, 834, 6624, 705, 834, 12417, 834, 10354, 198, 220, 220, 220, 1303, 13328, 242, ...
1.977778
1,305
import shutil import tempfile from pathlib import Path import librosa import numpy as np import parselmouth as pm import scipy.io.wavfile as wav import scipy.signal as sig import soundfile from misc.shared import DATA_DIR, DATASET_DIR from pydub import AudioSegment from python_speech_features import mfcc from scipy.si...
[ 11748, 4423, 346, 198, 11748, 20218, 7753, 198, 6738, 3108, 8019, 1330, 10644, 198, 198, 11748, 9195, 4951, 64, 198, 11748, 299, 32152, 355, 45941, 198, 11748, 1582, 741, 14775, 355, 9114, 198, 11748, 629, 541, 88, 13, 952, 13, 45137, ...
2.368852
1,342
''' Functions with output def my_function(something): #Do this with something #Then do this #finally do this def my_function(): return 3 * 2 # result ''' # def format_name(f_name, l_name): # print(f_name.title()) # print(l_name.title()) # format_name("rich", "MATSON") # Rich ...
[ 7061, 6, 40480, 351, 5072, 198, 4299, 616, 62, 8818, 7, 18927, 2599, 198, 220, 220, 220, 1303, 5211, 428, 351, 1223, 198, 220, 220, 220, 1303, 6423, 466, 428, 198, 220, 220, 220, 1303, 69, 3289, 466, 428, 198, 198, 4299, 616, 62, ...
2.322086
326
import csv import os from score_comparer import ScoreComparer
[ 11748, 269, 21370, 198, 11748, 28686, 198, 6738, 4776, 62, 5589, 11258, 1330, 15178, 7293, 11258, 198 ]
3.647059
17
import vamp import librosa import numpy as np import pretty_midi import jams import os import argparse if __name__ == '__main__': parser = argparse.ArgumentParser( description='analyze whole stems.') parser.add_argument( 'inpath', type=str, help='path to the stem of interest') parser.add_a...
[ 11748, 410, 696, 198, 11748, 9195, 4951, 64, 198, 11748, 299, 32152, 355, 45941, 198, 11748, 2495, 62, 13602, 72, 198, 11748, 44147, 198, 11748, 28686, 198, 11748, 1822, 29572, 628, 198, 361, 11593, 3672, 834, 6624, 705, 834, 12417, 834...
2.650602
166
import os from django.conf.urls import patterns, include, url from django.contrib import admin from django.contrib.staticfiles.urls import staticfiles_urlpatterns admin.site.site_header = os.environ.get('UOPBMOH_HUB_TITLE', 'UoPBMoH Admin') urlpatterns = patterns( '', url(r'^admin/', include(admin.site.urls...
[ 11748, 28686, 198, 6738, 42625, 14208, 13, 10414, 13, 6371, 82, 1330, 7572, 11, 2291, 11, 19016, 198, 6738, 42625, 14208, 13, 3642, 822, 1330, 13169, 198, 6738, 42625, 14208, 13, 3642, 822, 13, 12708, 16624, 13, 6371, 82, 1330, 9037, ...
2.633987
153
from os.path import expanduser import cv2 from keras.models import load_model from matplotlib import pyplot as plt import numpy as np # Create kernel for cv2 dilation method KERNEL = np.ones((5,5),np.uint8) # Import the model model = load_model('big_model') # Read input image img = cv2.imread(expanduser('~/Desk...
[ 198, 6738, 28686, 13, 6978, 1330, 4292, 7220, 198, 198, 11748, 269, 85, 17, 198, 6738, 41927, 292, 13, 27530, 1330, 3440, 62, 19849, 198, 6738, 2603, 29487, 8019, 1330, 12972, 29487, 355, 458, 83, 198, 11748, 299, 32152, 355, 45941, 6...
2.416955
578
"""Support file to handle configuration files.""" import json import os class Config(): """Class for serializing configuration items.""" def get(self, key=None, default=None): """Get a config item.""" if key is None: # return all public config items (filter out the hidden items) ...
[ 37811, 15514, 2393, 284, 5412, 8398, 3696, 526, 15931, 198, 11748, 33918, 198, 11748, 28686, 628, 198, 4871, 17056, 33529, 198, 220, 220, 220, 37227, 9487, 329, 11389, 2890, 8398, 3709, 526, 15931, 628, 220, 220, 220, 825, 651, 7, 944, ...
2.456647
346
from flask_jwt_extended import create_access_token,JWTManager from flask import jsonify from application import app from application.models.UserMaster import UserMaster from application.config.config import Config conf = Config() app.config['JWT_SECRET_KEY'] = conf.JWT_SECRET_KEY app.config['PROPAGATE_EXCEPTIONS'] = T...
[ 6738, 42903, 62, 73, 46569, 62, 2302, 1631, 1330, 2251, 62, 15526, 62, 30001, 11, 41, 39386, 13511, 198, 6738, 42903, 1330, 33918, 1958, 198, 6738, 3586, 1330, 598, 198, 6738, 3586, 13, 27530, 13, 12982, 18254, 1330, 11787, 18254, 198, ...
3
146
# -*- coding: utf-8 -*- import pytest from girder.exceptions import AccessException from girder.models.setting import Setting from girder.models.user import User from girder.settings import SettingKey from pytest_girder.assertions import assertStatus, assertStatusOk
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 11748, 12972, 9288, 198, 198, 6738, 37370, 1082, 13, 1069, 11755, 1330, 8798, 16922, 198, 6738, 37370, 1082, 13, 27530, 13, 33990, 1330, 25700, 198, 6738, 37370, 1082, 13,...
3.481013
79
""" PyTorch implementation of the Primal Dual Optimization (PDO) algorithm. Author: Sven Gronauer (sven.gronauer@tum.de) Created: 28.10.2020 Updated: -- inspired by: Joshua Achiam, David Held, Aviv Tamar, Peter Abbeel Constrained Policy Optimization ICML 2017 also see: Yinlam Chow, Mohammad...
[ 37811, 9485, 15884, 354, 7822, 286, 262, 37712, 20446, 30011, 1634, 357, 5760, 46, 8, 11862, 13, 198, 198, 13838, 25, 220, 220, 220, 220, 44611, 40214, 16261, 357, 82, 574, 13, 70, 1313, 16261, 31, 83, 388, 13, 2934, 8, 198, 41972, ...
2.923547
327
import scrapy from scrapy import Request import scraper_helper as sh from scrapy.selector import Selector review_url = 'https://www.amazon.com/product-reviews/{}' asin_list = ['B08CVSL4K5'] #Roborock
[ 11748, 15881, 88, 198, 6738, 15881, 88, 1330, 19390, 198, 11748, 19320, 525, 62, 2978, 525, 355, 427, 198, 6738, 15881, 88, 13, 19738, 273, 1330, 9683, 273, 628, 198, 19023, 62, 6371, 796, 705, 5450, 1378, 2503, 13, 33103, 13, 785, ...
2.9
70
from django.utils.translation import ugettext_lazy as _ from mayan.apps.documents.permissions import permission_document_type_edit from mayan.apps.navigation.classes import Link from .icons import ( icon_document_metadata_add, icon_document_metadata_edit, icon_document_metadata_remove, icon_document_me...
[ 6738, 42625, 14208, 13, 26791, 13, 41519, 1330, 334, 1136, 5239, 62, 75, 12582, 355, 4808, 201, 198, 201, 198, 6738, 743, 272, 13, 18211, 13, 15390, 2886, 13, 525, 8481, 1330, 7170, 62, 22897, 62, 4906, 62, 19312, 201, 198, 6738, 74...
2.873042
1,213
from __future__ import absolute_import, division, print_function import ctypes from numba import njit import numpy as np from os.path import dirname, join import pandas as pd from scipy.stats import rankdata as rank from sklearn.feature_selection import mutual_info_classif # from externals.six.moves import range ###...
[ 6738, 11593, 37443, 834, 1330, 4112, 62, 11748, 11, 7297, 11, 3601, 62, 8818, 198, 198, 11748, 269, 19199, 198, 6738, 997, 7012, 1330, 299, 45051, 198, 11748, 299, 32152, 355, 45941, 198, 6738, 28686, 13, 6978, 1330, 26672, 3672, 11, ...
1.988381
7,918
import json import psutil __all__ = ['SystemdUnitStatus', 'Use']
[ 11748, 33918, 198, 11748, 26692, 22602, 198, 198, 834, 439, 834, 796, 37250, 11964, 67, 26453, 19580, 3256, 705, 11041, 20520, 628, 198 ]
2.956522
23
# # Licensed to the Apache Software Foundation (ASF) under one or more # contributor license agreements. See the NOTICE file distributed with # this work for additional information regarding copyright ownership. # The ASF licenses this file to You under the Apache License, Version 2.0 # (the "License"); you may not us...
[ 2, 198, 2, 49962, 284, 262, 24843, 10442, 5693, 357, 1921, 37, 8, 739, 530, 393, 517, 198, 2, 18920, 5964, 11704, 13, 220, 4091, 262, 28536, 2393, 9387, 351, 198, 2, 428, 670, 329, 3224, 1321, 5115, 6634, 9238, 13, 198, 2, 383, ...
3.84
400
import pygame # It seems that up to USEREVENT + 3 are already taken. # Anyway, an event for server announces. # It's about time for the server to advertise its presence. E_ANNOUNCE = pygame.USEREVENT + 4 # A state change has occurred. E_STATE = pygame.USEREVENT + 5 # Player in the lobby. S_LOBBY = 0 # Player creatin...
[ 11748, 12972, 6057, 198, 198, 2, 632, 2331, 326, 510, 284, 1294, 9338, 53, 3525, 1343, 513, 389, 1541, 2077, 13, 198, 2, 21836, 11, 281, 1785, 329, 4382, 26459, 13, 198, 198, 2, 632, 338, 546, 640, 329, 262, 4382, 284, 32740, 663,...
2.877828
221
from __future__ import print_function from keras.models import Sequential from keras.layers.core import Dense, Activation, Dropout from keras.layers.recurrent import LSTM from keras.utils.data_utils import get_file import numpy as np import random import sys import os if __name__ == "__main__": all_folders = "....
[ 6738, 11593, 37443, 834, 1330, 3601, 62, 8818, 198, 198, 6738, 41927, 292, 13, 27530, 1330, 24604, 1843, 198, 6738, 41927, 292, 13, 75, 6962, 13, 7295, 1330, 360, 1072, 11, 13144, 341, 11, 14258, 448, 198, 6738, 41927, 292, 13, 75, ...
2.213536
1,714
# CLI # # Commands: # - transactions import <json> # - transaction show (?) # - account show [name] [date-from] [date-to] [aggregation:week|fortnight|*month*|quarter|year] # Shows balance, average in aggregation method, between two dates # - account graph [name] [date-from] [date-to] [aggregation:...] # ...
[ 2, 43749, 198, 2, 198, 2, 49505, 25, 198, 2, 220, 220, 532, 8945, 1330, 1279, 17752, 29, 198, 2, 220, 220, 532, 8611, 905, 357, 10091, 198, 2, 220, 220, 532, 1848, 905, 685, 3672, 60, 685, 4475, 12, 6738, 60, 685, 4475, 12, 14...
2.927966
236
from tkinter import * from tkinter import ttk from functools import partial # Generate main window root = Tk() gui = Application(root) # Necessary for winfo_width and winfo_heigh to work properly root.update() """ Centering the window on the screen """ # https://yagisanatode.com/2018/02/24/how-to-center-the-main-...
[ 6738, 256, 74, 3849, 1330, 1635, 198, 6738, 256, 74, 3849, 1330, 256, 30488, 198, 6738, 1257, 310, 10141, 1330, 13027, 628, 628, 198, 2, 2980, 378, 1388, 4324, 198, 15763, 796, 309, 74, 3419, 198, 48317, 796, 15678, 7, 15763, 8, 198...
3.072414
290