content
stringlengths
1
1.05M
input_ids
listlengths
1
883k
ratio_char_token
float64
1
22.9
token_count
int64
1
883k
# Created by Andrew Silva on 8/28/19 import gym import numpy as np import torch from interpretable_ddts.agents.ddt_agent import DDTAgent from interpretable_ddts.agents.mlp_agent import MLPAgent from interpretable_ddts.opt_helpers.replay_buffer import discount_reward import torch.multiprocessing as mp import argparse im...
[ 2, 15622, 416, 6858, 23720, 319, 807, 14, 2078, 14, 1129, 198, 11748, 11550, 198, 11748, 299, 32152, 355, 45941, 198, 11748, 28034, 198, 6738, 6179, 540, 62, 1860, 912, 13, 49638, 13, 1860, 83, 62, 25781, 1330, 20084, 5603, 6783, 198,...
2.155483
1,222
""" TW10: Words by Prefix Team: Tam Tamura, Andrew Nalundasan For: OMSBA 2061, Seattle University Date: 11/3/2020 """ question_2 = ['able', 'ability', 'apple', 'tryst', 'trial', 'tremendous', 'tree'] my_list = [] for elem in question_2: prefix = elem[:2] my_list.append(prefix) print(my_list) ...
[ 37811, 17306, 940, 25, 23087, 416, 3771, 13049, 201, 198, 15592, 25, 11552, 11552, 5330, 11, 6858, 399, 282, 917, 292, 272, 201, 198, 1890, 25, 440, 5653, 4339, 1160, 5333, 11, 7312, 2059, 201, 198, 10430, 25, 1367, 14, 18, 14, 4233...
2.246575
146
import hashlib from typing import TypeVar, Union import redis from openff.toolkit.topology import Molecule from openff.bespokefit.executor.services.qcgenerator import worker from openff.bespokefit.schema.tasks import HessianTask, OptimizationTask, Torsion1DTask from openff.bespokefit.utilities.molecule import canonic...
[ 11748, 12234, 8019, 198, 6738, 19720, 1330, 5994, 19852, 11, 4479, 198, 198, 11748, 2266, 271, 198, 6738, 1280, 487, 13, 25981, 15813, 13, 4852, 1435, 1330, 25726, 23172, 198, 198, 6738, 1280, 487, 13, 65, 9774, 2088, 11147, 13, 18558, ...
2.777969
581
'''Copyright Gigaspaces, 2017, All Rights Reserved''' from cloudify.plugins import lifecycle OP_START = 'hacker.interfaces.lifecycle.start' OP_STOP = 'hacker.interfaces.lifecycle.stop' OP_SS_C = 'hacker.interfaces.lifecycle.create_snapshots' OP_SS_D = 'hacker.interfaces.lifecycle.delete_snapshots' REQUIRED_OPS = set([...
[ 7061, 6, 15269, 19525, 5126, 2114, 11, 2177, 11, 1439, 6923, 33876, 7061, 6, 198, 6738, 6279, 1958, 13, 37390, 1330, 3868, 47510, 198, 198, 3185, 62, 2257, 7227, 796, 705, 71, 10735, 13, 3849, 32186, 13, 36195, 47510, 13, 9688, 6, 1...
2.567251
1,539
""" Flyter Tool for transferring files on the same network using raw sockets. Doesn't use encryption. """ __version__ = (0, 0, 0) __author__ = "CryptoNyxz" __license__ = """ MIT License Copyright (c) 2021 Jaymund Cyrus F. Floranza Permission is hereby granted, free of charge, to any person obtaining a copy of this...
[ 37811, 198, 33771, 353, 198, 198, 25391, 329, 26140, 3696, 319, 262, 976, 3127, 1262, 8246, 37037, 13, 198, 13921, 77, 470, 779, 15835, 13, 198, 37811, 628, 198, 834, 9641, 834, 796, 357, 15, 11, 657, 11, 657, 8, 198, 834, 9800, 8...
2.401758
2,616
# coding=utf-8 # Copyright Iz Beltagy, Matthew E. Peters, Arman Cohan and The HuggingFace Inc. team. All rights reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.ap...
[ 2, 19617, 28, 40477, 12, 23, 198, 2, 15069, 28493, 16734, 46671, 11, 9308, 412, 13, 15722, 11, 943, 805, 327, 22436, 290, 383, 12905, 2667, 32388, 3457, 13, 1074, 13, 1439, 2489, 10395, 13, 198, 2, 198, 2, 49962, 739, 262, 24843, ...
2.938104
517
import numpy as np import sklearn import logging from wann_genetic.individual.network_base import BaseFFNN def softmax(x, axis=-1): """Compute softmax values for each sets of scores in x. Returns: softmax - softmax normalized in dim axis """ e_x = np.exp(x - np.expand_dims(np.max(x,axis=axis)...
[ 11748, 299, 32152, 355, 45941, 198, 11748, 1341, 35720, 198, 198, 11748, 18931, 198, 198, 6738, 266, 1236, 62, 5235, 5139, 13, 43129, 13, 27349, 62, 8692, 1330, 7308, 5777, 6144, 628, 198, 4299, 2705, 9806, 7, 87, 11, 16488, 10779, 16...
2.471698
424
import contextlib from datetime import date from datetime import datetime from datetime import timezone from functools import wraps from io import BytesIO from itertools import count from typing import Any from typing import Dict from typing import Sequence import pytest from dateutil.parser import parse as parse_date...
[ 11748, 4732, 8019, 198, 6738, 4818, 8079, 1330, 3128, 198, 6738, 4818, 8079, 1330, 4818, 8079, 198, 6738, 4818, 8079, 1330, 640, 11340, 198, 6738, 1257, 310, 10141, 1330, 27521, 198, 6738, 33245, 1330, 2750, 4879, 9399, 198, 6738, 340, ...
2.787607
2,792
''' Created on 2016810 @author: Administrator ''' from email import encoders from email.header import Header from email.mime.text import MIMEText from email.mime.multipart import MIMEMultipart from email.mime.multipart import MIMEBase from email.utils import parseaddr, formataddr import smtplib from_addr = 'leeo1124@...
[ 7061, 6, 198, 41972, 319, 1584, 40215, 198, 198, 31, 9800, 25, 22998, 198, 7061, 6, 198, 6738, 3053, 1330, 2207, 375, 364, 198, 6738, 3053, 13, 25677, 1330, 48900, 198, 6738, 3053, 13, 76, 524, 13, 5239, 1330, 337, 3955, 2767, 2302,...
2.365359
739
# Generated by Django 3.0.5 on 2020-04-24 12:52 from django.db import migrations, models import django.db.models.deletion import modelcluster.contrib.taggit import modelcluster.fields import wagtail.core.blocks import wagtail.core.fields import wagtail.images.blocks
[ 2, 2980, 515, 416, 37770, 513, 13, 15, 13, 20, 319, 12131, 12, 3023, 12, 1731, 1105, 25, 4309, 198, 198, 6738, 42625, 14208, 13, 9945, 1330, 15720, 602, 11, 4981, 198, 11748, 42625, 14208, 13, 9945, 13, 27530, 13, 2934, 1616, 295, ...
2.988889
90
from evaluator import unit from evaluator.backends import QueueWorkerResources from evaluator.backends.dask import DaskLSFBackend from evaluator.client import ConnectionOptions, EvaluatorClient from evaluator.datasets import PhysicalPropertyDataSet from evaluator.forcefield import SmirnoffForceFieldSource from evaluato...
[ 6738, 5418, 84, 1352, 1330, 4326, 198, 6738, 5418, 84, 1352, 13, 1891, 2412, 1330, 4670, 518, 12468, 263, 33236, 198, 6738, 5418, 84, 1352, 13, 1891, 2412, 13, 67, 2093, 1330, 360, 2093, 6561, 37, 7282, 437, 198, 6738, 5418, 84, 135...
3.423077
130
import logging import unittest from pyinstrument import Profiler from nuplan.planning.scenario_builder.nuplan_db.test.nuplan_scenario_test_utils import get_test_nuplan_scenario from nuplan.planning.simulation.history.simulation_history_buffer import SimulationHistoryBuffer from nuplan.planning.simulation.observation....
[ 11748, 18931, 198, 11748, 555, 715, 395, 198, 198, 6738, 12972, 259, 43872, 1330, 4415, 5329, 198, 198, 6738, 14364, 11578, 13, 11578, 768, 13, 1416, 39055, 62, 38272, 13, 28803, 11578, 62, 9945, 13, 9288, 13, 28803, 11578, 62, 1416, ...
3.185792
183
import os import os.path as osp import time from collections import deque import pickle from baselines.ddpg.ddpg_learner import DDPG from baselines.ddpg.models import Actor, Critic from baselines.ddpg.memory import Memory from baselines.ddpg.noise import AdaptiveParamNoiseSpec, NormalActionNoise, OrnsteinUhlenbeckActi...
[ 11748, 28686, 198, 11748, 28686, 13, 6978, 355, 267, 2777, 198, 11748, 640, 198, 6738, 17268, 1330, 390, 4188, 198, 11748, 2298, 293, 198, 198, 6738, 1615, 20655, 13, 1860, 6024, 13, 1860, 6024, 62, 3238, 1008, 1330, 360, 6322, 38, 19...
3.21875
160
import os from datetime import datetime from PySide2.QtGui import * from PySide2.QtCore import * from PySide2.QtWidgets import * from PySide2.QtPrintSupport import QPrinter, QPrintDialog from jinja2 import TemplateNotFound from .ui.ui_transaction_details import Ui_TransactionDetails from .ui import images_rc from . i...
[ 11748, 28686, 198, 6738, 4818, 8079, 1330, 4818, 8079, 198, 198, 6738, 9485, 24819, 17, 13, 48, 83, 8205, 72, 1330, 1635, 198, 6738, 9485, 24819, 17, 13, 48, 83, 14055, 1330, 1635, 198, 6738, 9485, 24819, 17, 13, 48, 83, 54, 312, ...
3.142857
119
""" YTArray class. """ from __future__ import print_function #----------------------------------------------------------------------------- # Copyright (c) 2013, yt Development Team. # # Distributed under the terms of the Modified BSD License. # # The full license is in the file COPYING.txt, distributed with this so...
[ 37811, 198, 56, 51, 19182, 1398, 13, 628, 198, 198, 37811, 198, 6738, 11593, 37443, 834, 1330, 3601, 62, 8818, 198, 2, 10097, 32501, 198, 2, 15069, 357, 66, 8, 2211, 11, 331, 83, 7712, 4816, 13, 198, 2, 198, 2, 4307, 6169, 739, ...
2.363842
9,735
from rest_framework import serializers from posts.models import Post post_detail_url = serializers.HyperlinkedIdentityField( view_name='posts-api:detail', lookup_field='slug', )
[ 6738, 1334, 62, 30604, 1330, 11389, 11341, 198, 198, 6738, 6851, 13, 27530, 1330, 2947, 198, 198, 7353, 62, 49170, 62, 6371, 796, 11389, 11341, 13, 38197, 25614, 7390, 26858, 15878, 7, 198, 220, 220, 220, 1570, 62, 3672, 11639, 24875, ...
3.063492
63
from tir import Webapp import unittest if __name__ == '__main__': unittest.main()
[ 6738, 48965, 1330, 5313, 1324, 198, 11748, 555, 715, 395, 198, 198, 361, 11593, 3672, 834, 6624, 705, 834, 12417, 834, 10354, 198, 197, 403, 715, 395, 13, 12417, 3419, 198 ]
2.709677
31
# @Time : {time} # @Author : code_generator from rest_framework.viewsets import ModelViewSet from rest_framework.generics import ListAPIView from rest_framework.filters import SearchFilter, OrderingFilter from rest_framework.response import Response from rest_framework.decorators import api_view,authentication_cla...
[ 2, 2488, 7575, 220, 220, 220, 1058, 1391, 2435, 92, 198, 2, 2488, 13838, 220, 1058, 2438, 62, 8612, 1352, 198, 198, 6738, 1334, 62, 30604, 13, 1177, 28709, 1330, 9104, 7680, 7248, 198, 6738, 1334, 62, 30604, 13, 8612, 873, 1330, 734...
3.35514
428
# coding=utf-8 """ Send a value of 1 as a heartbeat every time this collector is invoked. #### Dependencies None #### Usage Add the collector config as : enabled = True path = netuitive Metrics are collected as : - metrics.heartbeat Netuitive Change History ======================== DVG 2016/11/14 In...
[ 2, 19617, 28, 40477, 12, 23, 198, 198, 37811, 198, 25206, 257, 1988, 286, 352, 355, 257, 36051, 790, 640, 428, 22967, 318, 24399, 13, 198, 198, 4242, 37947, 3976, 198, 14202, 198, 198, 4242, 29566, 198, 4550, 262, 22967, 4566, 355, ...
3.287582
153
import numpy as np import pandas as pd import sys markets = ["hangseng", "dax", "ftse", "sp", "nikkei"] market = markets[int(sys.argv[1])-1] # read GD data file dat = pd.read_csv("./num_res/{}.GD.csv".format(market)) # split into two experiments exp1_GD = dat[dat.columns[:5]] exp2_GD = dat[dat.columns[5:...
[ 11748, 299, 32152, 355, 45941, 201, 198, 11748, 19798, 292, 355, 279, 67, 201, 198, 11748, 25064, 201, 198, 201, 198, 34162, 796, 14631, 71, 27725, 1516, 1600, 366, 67, 897, 1600, 366, 701, 325, 1600, 366, 2777, 1600, 366, 17187, 365,...
2.388346
2,763
""" Functions are useful untilities for SITperturb experiments Notes ----- Author : Zachary Labe Date : 13 August 2017 Usage ----- [1] calcDecJan(varx,vary,lat,lon,level,levsq) [2] calcDecJanFeb(varx,vary,lat,lon,level,levsq) [3] calc_indttest(varx,vary) [4] calc_weightedAve(var,lats) ...
[ 37811, 198, 24629, 2733, 389, 4465, 1566, 871, 329, 311, 2043, 11766, 5945, 10256, 198, 220, 198, 16130, 198, 30934, 198, 220, 220, 220, 6434, 1058, 18825, 560, 3498, 68, 198, 220, 220, 220, 7536, 220, 220, 1058, 1511, 2932, 2177, 198...
1.961821
11,577
# 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 u...
[ 2, 49962, 284, 262, 24843, 10442, 5693, 357, 1921, 37, 8, 739, 530, 198, 2, 393, 517, 18920, 5964, 11704, 13, 220, 4091, 262, 28536, 2393, 198, 2, 9387, 351, 428, 670, 329, 3224, 1321, 198, 2, 5115, 6634, 9238, 13, 220, 383, 7054,...
2.578299
2,516
from flask import Flask, Response, request, redirect import subprocess import tempfile import json import yaml import signal import threading import time import copy app = Flask(__name__) jobs_lock = threading.Lock() jobs = [] def logspooler(job): with open(job.logname, "r") as f: while True: ...
[ 6738, 42903, 1330, 46947, 11, 18261, 11, 2581, 11, 18941, 198, 11748, 850, 14681, 198, 11748, 20218, 7753, 198, 11748, 33918, 198, 11748, 331, 43695, 198, 11748, 6737, 198, 11748, 4704, 278, 198, 11748, 640, 198, 11748, 4866, 198, 198, ...
2.045902
305
__source__ = 'https://leetcode.com/problems/reverse-bits/description/' # https://github.com/kamyu104/LeetCode/blob/master/Python/reverse-bits.py # Time : O(n) # Space: O(1) # Bit Manipulation # # Description: Leetcode # 190. Reverse Bits # # Reverse bits of a given 32 bits unsigned integer. # # For example, given input...
[ 834, 10459, 834, 796, 705, 5450, 1378, 293, 316, 8189, 13, 785, 14, 1676, 22143, 14, 50188, 12, 9895, 14, 11213, 14, 6, 198, 2, 3740, 1378, 12567, 13, 785, 14, 74, 14814, 84, 13464, 14, 3123, 316, 10669, 14, 2436, 672, 14, 9866, ...
2.489394
1,980
"""Version information.""" # The following line *must* be the last in the module, exactly as formatted: __version__ = "0.16.1"
[ 37811, 14815, 1321, 526, 15931, 198, 198, 2, 383, 1708, 1627, 1635, 27238, 9, 307, 262, 938, 287, 262, 8265, 11, 3446, 355, 39559, 25, 198, 834, 9641, 834, 796, 366, 15, 13, 1433, 13, 16, 1, 198 ]
3.368421
38
from sys import argv from PyPDF2 import PdfFileReader, PdfFileWriter import re range_pattern = re.compile(r'(\d+)(\.\.|-)(\d+)') comma_pattern = re.compile('\d+(,\d+)*') if __name__ == '__main__': assert(len(argv) > 1), "usage examle:\npython3 selective_merge_pdf.py file1.pdf 1-3 file2.pdf 3,4,10 file1.pdf 50" as...
[ 6738, 25064, 1330, 1822, 85, 198, 6738, 9485, 20456, 17, 1330, 350, 7568, 8979, 33634, 11, 350, 7568, 8979, 34379, 198, 11748, 302, 628, 198, 9521, 62, 33279, 796, 302, 13, 5589, 576, 7, 81, 6, 38016, 67, 10, 5769, 17405, 17405, 91,...
2.507003
357
import math from vp import geom_tools def horizon_error(ground_truth_horizon, detected_horizon, image_dims): """Calculates error in a detected horizon. This measures the max distance between the detected horizon line and the ground truth horizon line, within the image's x-axis, and normalized by ima...
[ 11748, 10688, 198, 198, 6738, 410, 79, 1330, 4903, 296, 62, 31391, 628, 198, 4299, 17810, 62, 18224, 7, 2833, 62, 35310, 62, 17899, 8637, 11, 12326, 62, 17899, 8637, 11, 2939, 62, 67, 12078, 2599, 198, 220, 220, 220, 37227, 9771, 31...
2.375077
1,629
import numpy as np import argparse import composition import os import json import torch from spinup.algos.pytorch.ppo.core import MLPActorCritic from spinup.algos.pytorch.ppo.ppo import ppo from spinup.utils.run_utils import setup_logger_kwargs from spinup.utils.mpi_tools import proc_id, num_procs if __name__ ==...
[ 11748, 299, 32152, 355, 45941, 198, 11748, 1822, 29572, 198, 11748, 11742, 198, 11748, 28686, 198, 11748, 33918, 198, 198, 11748, 28034, 198, 198, 6738, 7906, 929, 13, 14016, 418, 13, 9078, 13165, 354, 13, 16634, 13, 7295, 1330, 10373, ...
2.866667
120
"""igvm - The command line interface Copyright (c) 2017 InnoGames GmbH """ from __future__ import print_function from argparse import ArgumentParser, _SubParsersAction from logging import StreamHandler, root as root_logger import time from fabric.network import disconnect_all from igvm.commands import ( change_...
[ 37811, 328, 14761, 532, 383, 3141, 1627, 7071, 198, 198, 15269, 357, 66, 8, 2177, 554, 3919, 24474, 402, 2022, 39, 198, 37811, 198, 198, 6738, 11593, 37443, 834, 1330, 3601, 62, 8818, 198, 6738, 1822, 29572, 1330, 45751, 46677, 11, 48...
2.286207
5,793
import os, sys from os.path import dirname as d from os.path import abspath, join root_dir = d(d(d(abspath(__file__)))) sys.path.append(root_dir) from openprompt.data_utils.conditional_generation_dataset import PROCESSORS base_path = os.path.join(root_dir, "datasets/CondGen")
[ 11748, 28686, 11, 25064, 198, 6738, 28686, 13, 6978, 1330, 26672, 3672, 355, 288, 198, 6738, 28686, 13, 6978, 1330, 2352, 6978, 11, 4654, 198, 15763, 62, 15908, 796, 288, 7, 67, 7, 67, 7, 397, 2777, 776, 7, 834, 7753, 834, 35514, ...
2.752475
101
## @file # Standardized Error Hanlding infrastructures. # # Copyright (c) 2007 - 2015, Intel Corporation. All rights reserved.<BR> # This program and the accompanying materials # are licensed and made available under the terms and conditions of the BSD License # which accompanies this distribution. The full text...
[ 2235, 2488, 7753, 201, 198, 2, 8997, 1143, 13047, 9530, 335, 278, 1167, 5685, 1356, 942, 13, 201, 198, 2, 201, 198, 2, 15069, 357, 66, 8, 4343, 532, 1853, 11, 8180, 10501, 13, 1439, 2489, 10395, 29847, 11473, 29, 201, 198, 2, 770,...
2.198593
2,417
import torch import torchvision.transforms as transforms from torch.utils.data import Dataset import glob from PIL import Image import random
[ 11748, 28034, 198, 11748, 28034, 10178, 13, 7645, 23914, 355, 31408, 198, 6738, 28034, 13, 26791, 13, 7890, 1330, 16092, 292, 316, 198, 11748, 15095, 198, 6738, 350, 4146, 1330, 7412, 198, 11748, 4738, 628 ]
4.085714
35
# Copyright (c) 2017, The MITRE Corporation. All rights reserved. # See LICENSE.txt for complete terms. from mixbox import entities, fields import cybox import cybox.bindings.cybox_common as common_binding
[ 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, 6738, 5022, 3524, 1330, 12066, 11, 7032, 198, 198, 11748, 3075, 3524, 198, 117...
3.559322
59
#!/usr/bin/env python import sys import numpy as np import pandas as pd import pysam import matplotlib matplotlib.use("agg") import matplotlib.pyplot as plt import seaborn as sns from functools import partial tumor = pysam.AlignmentFile(snakemake.input[0], "rb") normal = pysam.AlignmentFile(snakemake.input[1], "rb") ...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 198, 198, 11748, 25064, 198, 11748, 299, 32152, 355, 45941, 198, 11748, 19798, 292, 355, 279, 67, 198, 11748, 279, 893, 321, 198, 11748, 2603, 29487, 8019, 198, 6759, 29487, 8019, 13, 1904, ...
2.420561
428
# Generated by Django 3.1 on 2020-08-13 16:23 from django.db import migrations, models import django.utils.timezone
[ 2, 2980, 515, 416, 37770, 513, 13, 16, 319, 12131, 12, 2919, 12, 1485, 1467, 25, 1954, 198, 198, 6738, 42625, 14208, 13, 9945, 1330, 15720, 602, 11, 4981, 198, 11748, 42625, 14208, 13, 26791, 13, 2435, 11340, 628 ]
3.025641
39
import tensorflow from tensorflow import keras Model = keras.models.Model Dense = keras.layers.Dense Activation = keras.layers.Activation Flatten = keras.layers.Flatten BatchNormalization= keras.layers.BatchNormalization Conv2D = tensorflow.keras.layers.Conv2D AveragePooling2D = keras.layers.AveragePooling2D I...
[ 11748, 11192, 273, 11125, 201, 198, 6738, 11192, 273, 11125, 1330, 41927, 292, 201, 198, 17633, 796, 41927, 292, 13, 27530, 13, 17633, 201, 198, 35, 1072, 796, 41927, 292, 13, 75, 6962, 13, 35, 1072, 201, 198, 25526, 341, 796, 41927, ...
2.184544
867
#!/usr/bin/env python3 import sys import json import rdflib import rdflib.plugins.sparql as sparql RELS_TO_DRAW = ['isWifeOf', 'isMotherOf', 'isFatherOf', 'isHusbandOf', 'isSpouseOf'] RELS_TO_INFER = ['hasGrandParent', 'isGrandParentOf', 'hasGreatGrandParent', 'isGreatGrandParentOf', 'isUncleOf', 'ha...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 18, 198, 198, 11748, 25064, 198, 11748, 33918, 198, 11748, 374, 67, 2704, 571, 198, 11748, 374, 67, 2704, 571, 13, 37390, 13, 82, 1845, 13976, 355, 37331, 13976, 198, 198, 2200, 6561, 62, ...
1.834827
2,343
# Copyright 2019-2021 The Matrix.org Foundation C.I.C. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law...
[ 2, 15069, 13130, 12, 1238, 2481, 383, 24936, 13, 2398, 5693, 327, 13, 40, 13, 34, 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, 28...
2.738882
1,574
import argparse import sys from time import sleep import uuid import rclpy from rmf_task_msgs.msg import Delivery if __name__ == '__main__': main(sys.argv)
[ 198, 11748, 1822, 29572, 198, 11748, 25064, 198, 6738, 640, 1330, 3993, 198, 11748, 334, 27112, 198, 198, 11748, 374, 565, 9078, 198, 198, 6738, 42721, 69, 62, 35943, 62, 907, 14542, 13, 19662, 1330, 28682, 198, 198, 361, 11593, 3672, ...
2.733333
60
"""This file handles the interaction with discords http endpoints.""" import asyncio import logging from typing import Any, Dict, Optional, Union from urllib.parse import quote as _uriquote from weakref import WeakValueDictionary import aiohttp from aiohttp import BaseConnector, ClientSession, ClientWebSocketResponse,...
[ 37811, 1212, 2393, 17105, 262, 10375, 351, 1221, 3669, 2638, 886, 13033, 526, 15931, 198, 11748, 30351, 952, 198, 11748, 18931, 198, 6738, 19720, 1330, 4377, 11, 360, 713, 11, 32233, 11, 4479, 198, 6738, 2956, 297, 571, 13, 29572, 1330,...
3.117021
376
from os import environ import psycopg2 from datetime import timedelta from dotenv import load_dotenv load_dotenv()
[ 6738, 28686, 1330, 551, 2268, 198, 11748, 17331, 22163, 70, 17, 198, 6738, 4818, 8079, 1330, 28805, 12514, 198, 6738, 16605, 24330, 1330, 3440, 62, 26518, 24330, 198, 2220, 62, 26518, 24330, 3419, 198 ]
3.382353
34
ELECTRUM_VERSION = '4.1.5-radc' # version of the client package APK_VERSION = '4.1.5.0' # read by buildozer.spec PROTOCOL_VERSION = '1.4' # protocol version requested # The hash of the mnemonic seed must begin with this SEED_PREFIX = '01' # Standard wallet SEED_PREFIX_SW = '100' # S...
[ 36, 16779, 49, 5883, 62, 43717, 796, 705, 19, 13, 16, 13, 20, 12, 6335, 66, 6, 220, 220, 220, 220, 1303, 2196, 286, 262, 5456, 5301, 198, 2969, 42, 62, 43717, 796, 705, 19, 13, 16, 13, 20, 13, 15, 6, 220, 220, 220, 220, 220,...
2.257426
202
from __future__ import division from math import sqrt as sqrt from itertools import product as product import torch import numpy as np import cv2 from lib.utils.visualize_utils import TBWriter def vis(func): """tensorboard visualization if has writer as input""" return wrapper class PriorBoxSSD(PriorBoxB...
[ 6738, 11593, 37443, 834, 1330, 7297, 198, 6738, 10688, 1330, 19862, 17034, 355, 19862, 17034, 198, 6738, 340, 861, 10141, 1330, 1720, 355, 1720, 198, 11748, 28034, 198, 11748, 299, 32152, 355, 45941, 198, 11748, 269, 85, 17, 198, 198, 6...
2.688406
276
########################################################################## # # Copyright (c) 2012-2013, Image Engine Design Inc. All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are # met: # # * Redi...
[ 29113, 29113, 7804, 2235, 198, 2, 198, 2, 220, 15069, 357, 66, 8, 2321, 12, 6390, 11, 7412, 7117, 8495, 3457, 13, 1439, 2489, 10395, 13, 198, 2, 198, 2, 220, 2297, 396, 3890, 290, 779, 287, 2723, 290, 13934, 5107, 11, 351, 393, ...
3.395564
541
# Generated by Django 3.1.13 on 2021-10-01 18:41 from django.db import migrations
[ 2, 2980, 515, 416, 37770, 513, 13, 16, 13, 1485, 319, 33448, 12, 940, 12, 486, 1248, 25, 3901, 198, 198, 6738, 42625, 14208, 13, 9945, 1330, 15720, 602, 628 ]
2.8
30
from PhysicsTools.Heppy.analyzers.core.Analyzer import Analyzer from PhysicsTools.Heppy.analyzers.core.AutoHandle import AutoHandle from PhysicsTools.Heppy.physicsobjects.Tau import Tau from PhysicsTools.HeppyCore.utils.deltar import deltaR, matchObjectCollection3 import PhysicsTools.HeppyCore.framework.config as cfg...
[ 6738, 23123, 33637, 13, 1544, 14097, 13, 38200, 47031, 13, 7295, 13, 37702, 9107, 1330, 16213, 9107, 198, 6738, 23123, 33637, 13, 1544, 14097, 13, 38200, 47031, 13, 7295, 13, 27722, 37508, 1330, 11160, 37508, 198, 6738, 23123, 33637, 13, ...
2.680672
595
# smail ALTAY 170401038 import math import random r = 3271 n = int(input("Oluturulmak istenen anahtar iftlerinin bit uzunluunu girin: ")) Keygen(n) encrypt("plaintext.txt","publickey.txt") decrypt("ciphertext.txt", "privatekey.txt")
[ 2, 895, 603, 8355, 51, 4792, 1596, 3023, 20943, 2548, 201, 198, 201, 198, 11748, 10688, 201, 198, 11748, 4738, 201, 198, 201, 198, 81, 796, 513, 28977, 201, 198, 201, 198, 77, 796, 493, 7, 15414, 7203, 30098, 315, 333, 377, 76, 46...
2.287037
108
# Built-in modules # # Internal modules # from seqenv import module_dir from seqenv.common.cache import property_cached # Third party modules # import sh, networkx import matplotlib.colors # A list of envos to help test this module # test_envos = [ "ENVO:00000033", "ENVO:00000043", "ENVO:00000067", "...
[ 2, 28477, 12, 259, 13103, 1303, 198, 198, 2, 18628, 13103, 1303, 198, 6738, 33756, 24330, 1330, 8265, 62, 15908, 198, 6738, 33756, 24330, 13, 11321, 13, 23870, 1330, 3119, 62, 66, 2317, 198, 198, 2, 10467, 2151, 13103, 1303, 198, 1174...
2.144828
2,320
# coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may ...
[ 2, 19617, 28, 40477, 12, 23, 198, 2, 16529, 35937, 198, 2, 15069, 357, 66, 8, 5413, 10501, 13, 1439, 2489, 10395, 13, 198, 2, 49962, 739, 262, 17168, 13789, 13, 4091, 13789, 13, 14116, 287, 262, 1628, 6808, 329, 5964, 1321, 13, 19...
4.555556
135
# Licensed to the StackStorm, Inc ('StackStorm') 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 use th...
[ 2, 49962, 284, 262, 23881, 32173, 11, 3457, 19203, 25896, 32173, 11537, 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...
2.519495
1,821
import pytest import time import subprocess from subprocess import run,Popen from seldon_utils import * from k8s_utils import *
[ 11748, 12972, 9288, 198, 11748, 640, 198, 11748, 850, 14681, 198, 6738, 850, 14681, 1330, 1057, 11, 47, 9654, 198, 6738, 384, 25900, 62, 26791, 1330, 1635, 198, 6738, 479, 23, 82, 62, 26791, 1330, 1635, 198, 220, 220, 220, 220, 220, ...
2.978261
46
# proxy module from __future__ import absolute_import from envisage.safeweakref import *
[ 2, 15741, 8265, 198, 6738, 11593, 37443, 834, 1330, 4112, 62, 11748, 198, 6738, 45633, 496, 13, 49585, 413, 68, 461, 5420, 1330, 1635, 198 ]
3.56
25
from django.db import models from .query import BookQuerySet
[ 6738, 42625, 14208, 13, 9945, 1330, 4981, 198, 6738, 764, 22766, 1330, 4897, 20746, 7248, 628, 628, 198 ]
3.611111
18
# -*- coding: utf-8 -*- # File: dropblock.py from __future__ import absolute_import from __future__ import division from __future__ import print_function import re import six # from tensorpack.tfutils.compat import tfv1 as tf # this should be avoided first in model code from tensorpack.tfutils.tower import get_curren...
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 2, 9220, 25, 4268, 9967, 13, 9078, 198, 6738, 11593, 37443, 834, 1330, 4112, 62, 11748, 198, 6738, 11593, 37443, 834, 1330, 7297, 198, 6738, 11593, 37443, 834, 1330, 360...
2.376488
6,218
# # Copyright (c) Facebook, Inc. and its affiliates. # # This source code is licensed under the MIT license found in the # LICENSE file in the root directory of this source tree. # from rlstructures import logging from rlstructures.env_wrappers import GymEnv, GymEnvInf from rlstructures.tools import weight_init impor...
[ 2, 198, 2, 15069, 357, 66, 8, 3203, 11, 3457, 13, 290, 663, 29116, 13, 198, 2, 198, 2, 770, 2723, 2438, 318, 11971, 739, 262, 17168, 5964, 1043, 287, 262, 198, 2, 38559, 24290, 2393, 287, 262, 6808, 8619, 286, 428, 2723, 5509, 1...
2.579585
578
from matplotlib.pyplot import title import streamlit as st import pandas as pd import altair as alt import pydeck as pdk import os import glob from wordcloud import WordCloud import streamlit_analytics path = os.path.dirname(__file__) streamlit_analytics.start_tracking() #main st.title('GND-Dashboard') #infoebereic...
[ 6738, 2603, 29487, 8019, 13, 9078, 29487, 1330, 3670, 198, 11748, 4269, 18250, 355, 336, 198, 11748, 19798, 292, 355, 279, 67, 198, 11748, 5988, 958, 355, 5988, 198, 11748, 12972, 35875, 355, 279, 34388, 198, 11748, 28686, 198, 11748, 1...
2.511995
1,459
""" Class for all excpetions used in following scripts - geocoder.py - geocoder_input.py """
[ 37811, 198, 9487, 329, 477, 2859, 6449, 507, 973, 287, 1708, 14750, 198, 12, 4903, 420, 12342, 13, 9078, 198, 12, 4903, 420, 12342, 62, 15414, 13, 9078, 198, 37811, 628, 628 ]
3
32
#Erdin Alhas 150401052 import os import sys import time from socket import * from os import system, name ip = '127.0.0.1' port = 42 s_soket = socket(AF_INET, SOCK_DGRAM) s_soket.bind((ip, port)) print("\nSunucu Hazir\n") kontrol, istemciAdres = s_soket...
[ 2, 36, 4372, 259, 978, 10134, 6640, 21844, 37841, 201, 198, 201, 198, 11748, 28686, 201, 198, 11748, 25064, 201, 198, 11748, 640, 201, 198, 6738, 17802, 1330, 1635, 201, 198, 6738, 28686, 1330, 1080, 11, 1438, 201, 198, 541, 796, 705,...
1.511617
2,109
""" This module handles compatibility issues between testcase format v2 and v3. httprunner2 3 """ import os import sys from typing import List, Dict, Text, Union, Any from loguru import logger from httprunner import exceptions from httprunner.loader import load_project_meta, convert_relative_project_root_dir from h...
[ 37811, 198, 1212, 8265, 17105, 17764, 2428, 1022, 1332, 7442, 5794, 410, 17, 290, 410, 18, 13, 198, 2804, 1050, 403, 1008, 17, 220, 513, 220, 198, 37811, 198, 11748, 28686, 198, 11748, 25064, 198, 6738, 19720, 1330, 7343, 11, 360, 713...
2.389255
1,061
""" Scatter plot with panning and zooming Shows a scatter plot of a set of random points, with basic Chaco panning and zooming. Interacting with the plot: - Left-mouse-drag pans the plot. - Mouse wheel up and down zooms the plot in and out. - Pressing "z" brings up the Zoom Box, and you can click-drag a recta...
[ 37811, 198, 3351, 1436, 7110, 351, 3425, 768, 290, 1976, 30602, 198, 198, 2484, 1666, 257, 41058, 7110, 286, 257, 900, 286, 4738, 2173, 11, 220, 198, 4480, 4096, 609, 10602, 3425, 768, 290, 1976, 30602, 13, 198, 198, 9492, 27362, 351,...
4.18306
366
""" Central configuration module of webstr selenium tests. This module provides configuration options along with default values and function to redefine values. """ # Copyright 2016 Red Hat # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the Li...
[ 37811, 198, 30645, 8398, 8265, 286, 3992, 2536, 384, 11925, 1505, 5254, 13, 198, 198, 1212, 8265, 3769, 8398, 3689, 1863, 351, 4277, 3815, 290, 198, 8818, 284, 34087, 500, 3815, 13, 198, 37811, 198, 198, 2, 15069, 1584, 2297, 10983, 1...
3.191943
422
import random
[ 11748, 4738, 628 ]
5
3
import RandomCharacter # Defined in Listing 6.9 def main(): """Main.""" # Create a list of characters chars = createList() # Display the list print("The lowercase letters are:") displayList(chars) # Count the occurrences of each letter counts = countLetters(chars) # Display cou...
[ 11748, 14534, 27275, 220, 1303, 2896, 1389, 287, 7343, 278, 718, 13, 24, 628, 198, 4299, 1388, 33529, 198, 220, 220, 220, 37227, 13383, 526, 15931, 198, 220, 220, 220, 1303, 13610, 257, 1351, 286, 3435, 198, 220, 220, 220, 34534, 796,...
2.572139
603
""" The Vertica integration will trace queries made using the vertica-python library. Vertica will be automatically instrumented with ``patch_all``, or when using the ``ls-trace-run`` command. Vertica is instrumented on import. To instrument Vertica manually use the ``patch`` function. Note the ordering of the follow...
[ 37811, 198, 464, 24417, 3970, 11812, 481, 12854, 20743, 925, 1262, 262, 9421, 3970, 12, 29412, 198, 32016, 13, 198, 198, 42369, 3970, 481, 307, 6338, 8875, 276, 351, 7559, 17147, 62, 439, 15506, 11, 393, 618, 1262, 198, 1169, 7559, 72...
3.262376
404
from openid.consumer.discover import OpenIDServiceEndpoint import datadriven
[ 6738, 1280, 312, 13, 49827, 13, 67, 29392, 1330, 4946, 2389, 16177, 12915, 4122, 198, 11748, 4818, 324, 380, 574, 198 ]
3.666667
21
from .base import * SECRET_KEY = get_env_var('SECRET_KEY') CSRF_COOKIE_SECURE = True SESSION_COOKIE_SECURE = True TEMPLATE_LOADERS = ( ('django.template.loaders.cached.Loader', ( 'django.template.loaders.filesystem.Loader', 'django.template.loaders.app_directories.Loader', )), ) EMAIL_BACK...
[ 6738, 764, 8692, 1330, 1635, 628, 198, 23683, 26087, 62, 20373, 796, 651, 62, 24330, 62, 7785, 10786, 23683, 26087, 62, 20373, 11537, 198, 198, 7902, 32754, 62, 34, 15308, 10008, 62, 23683, 11335, 796, 6407, 198, 198, 50, 47621, 62, 3...
2.221402
271
import pandas as pd import argparse import json try: from graphviz import Digraph except: print("Note: Optional graphviz not installed") if __name__ == '__main__': parser = argparse.ArgumentParser(description='Generate Graph Viz') parser.add_argument('-f', '--output_file', type=str, ...
[ 11748, 19798, 292, 355, 279, 67, 198, 11748, 1822, 29572, 198, 11748, 33918, 198, 28311, 25, 198, 220, 220, 220, 422, 4823, 85, 528, 1330, 7367, 1470, 198, 16341, 25, 198, 220, 220, 220, 3601, 7203, 6425, 25, 32233, 4823, 85, 528, 4...
2.582857
175
import discord import os import json import datetime import pandas as pd from dateutil.relativedelta import relativedelta from pprint import pprint import base.ColorPrint as CPrint import command.voice_log.Config_Main as CSetting
[ 11748, 36446, 198, 11748, 28686, 198, 11748, 33918, 198, 198, 11748, 4818, 8079, 198, 11748, 19798, 292, 355, 279, 67, 198, 6738, 3128, 22602, 13, 2411, 265, 1572, 12514, 1330, 48993, 1572, 12514, 198, 6738, 279, 4798, 1330, 279, 4798, ...
3.507463
67
from abc import ABCMeta, abstractmethod import os from vmaf.tools.misc import make_absolute_path, run_process from vmaf.tools.stats import ListStats __copyright__ = "Copyright 2016-2018, Netflix, Inc." __license__ = "Apache, Version 2.0" import re import numpy as np import ast from vmaf import ExternalProgramCaller,...
[ 6738, 450, 66, 1330, 9738, 48526, 11, 12531, 24396, 198, 11748, 28686, 198, 6738, 45887, 1878, 13, 31391, 13, 44374, 1330, 787, 62, 48546, 62, 6978, 11, 1057, 62, 14681, 198, 6738, 45887, 1878, 13, 31391, 13, 34242, 1330, 7343, 29668, ...
2.086957
1,081
df['Age'].hist() #bins=30, log=True
[ 7568, 17816, 23396, 6, 4083, 10034, 3419, 1303, 65, 1040, 28, 1270, 11, 2604, 28, 17821 ]
2.1875
16
# -*- coding: utf-8 -*- """ Created by susy at 2019/11/8 """ from dao.dao import DataDao import pytz from dao.models import PanAccounts from cfg import PAN_SERVICE, MASTER_ACCOUNT_ID
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 37811, 198, 41972, 416, 2341, 88, 379, 13130, 14, 1157, 14, 23, 198, 37811, 198, 6738, 288, 5488, 13, 67, 5488, 1330, 6060, 35, 5488, 198, 11748, 12972, 22877, 198, 67...
2.591549
71
#!/usr/bin/env python3 # -*- coding: utf-8 -*- import torch.nn as nn from .single import attention
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 18, 198, 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 198, 11748, 28034, 13, 20471, 355, 299, 77, 198, 6738, 764, 29762, 1330, 3241, 198 ]
2.564103
39
import os, time, argparse from datetime import datetime from pm4py.objects.log.importer.csv import factory as csv_importer from pm4py.objects.log.exporter.xes import factory as xes_exporter from pm4py.objects.log.importer.xes import factory as xes_importer from pm4py.objects.petri.importer import pnml as pnml_importer...
[ 11748, 28686, 11, 640, 11, 1822, 29572, 198, 6738, 4818, 8079, 1330, 4818, 8079, 198, 198, 6738, 9114, 19, 9078, 13, 48205, 13, 6404, 13, 320, 26634, 13, 40664, 1330, 8860, 355, 269, 21370, 62, 320, 26634, 198, 6738, 9114, 19, 9078, ...
2.561246
1,445
# $ python embed.py from ctypes import cdll lib = cdll.LoadLibrary("../target/release/libembed.dylib") #=> for Mac #lib = cdll.LoadLibrary("../target/release/libembed.so") #=> for Linux lib.process() print("done!")
[ 2, 720, 21015, 11525, 13, 9078, 198, 198, 6738, 269, 19199, 1330, 269, 12736, 198, 198, 8019, 796, 269, 12736, 13, 8912, 23377, 7203, 40720, 16793, 14, 20979, 14, 8019, 20521, 13, 31739, 4943, 1303, 14804, 329, 4100, 198, 2, 8019, 796...
2.881579
76
# coding: utf-8 from __future__ import absolute_import import datetime import re import importlib import six from huaweicloudsdkcore.client import Client, ClientBuilder from huaweicloudsdkcore.exceptions import exceptions from huaweicloudsdkcore.utils import http_utils from huaweicloudsdkcore.sdk_stream_request imp...
[ 2, 19617, 25, 3384, 69, 12, 23, 198, 198, 6738, 11593, 37443, 834, 1330, 4112, 62, 11748, 198, 198, 11748, 4818, 8079, 198, 11748, 302, 198, 11748, 1330, 8019, 198, 198, 11748, 2237, 198, 198, 6738, 289, 84, 707, 68, 291, 75, 2778, ...
3.026549
113
import numpy as np from typing import Optional, Any from pandas import DataFrame from copy import deepcopy from abc import abstractmethod from utils import TimedGenericIterativeAlgorithm import pycsou.core as pcore import pycsou.linop as pl from pycsou.func.penalty import L1Norm from pycsou.func.loss import SquaredL2...
[ 11748, 299, 32152, 355, 45941, 198, 6738, 19720, 1330, 32233, 11, 4377, 198, 6738, 19798, 292, 1330, 6060, 19778, 198, 6738, 4866, 1330, 2769, 30073, 198, 6738, 450, 66, 1330, 12531, 24396, 198, 198, 6738, 3384, 4487, 1330, 5045, 276, 4...
3.210526
114
#!/usr/bin/env python import unittest from rdflib.graph import ConjunctiveGraph from rdflib.term import URIRef, Literal from rdflib.graph import Graph if __name__=='__main__': unittest.main()
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 198, 198, 11748, 555, 715, 395, 198, 198, 6738, 374, 67, 2704, 571, 13, 34960, 1330, 1482, 29741, 14070, 37065, 198, 6738, 374, 67, 2704, 571, 13, 4354, 1330, 37902, 4663, 891, 11, 25659, ...
2.631579
76
#!/usr/bin/env python from sinedon import dbupgrade, dbconfig import updatelib project_dbupgrade = dbupgrade.DBUpgradeTools('projectdata', drop=True) if __name__ == "__main__": updatelib_inst = updatelib.UpdateLib(project_dbupgrade) checkout_version = raw_input('Revert to checkout version, for example, 2.1 -->') i...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 198, 6738, 264, 1389, 261, 1330, 20613, 929, 9526, 11, 20613, 11250, 198, 11748, 4296, 8019, 198, 198, 16302, 62, 9945, 929, 9526, 796, 20613, 929, 9526, 13, 11012, 44948, 33637, 10786, 16302...
2.873333
300
from sklearn.linear_model import LogisticRegression from fightchurn.listings.chap8.listing_8_2_logistic_regression import prepare_data, save_regression_model from fightchurn.listings.chap8.listing_8_2_logistic_regression import save_regression_summary, save_dataset_predictions
[ 6738, 1341, 35720, 13, 29127, 62, 19849, 1330, 5972, 2569, 8081, 2234, 198, 6738, 1907, 354, 700, 13, 4868, 654, 13, 354, 499, 23, 13, 4868, 278, 62, 23, 62, 17, 62, 6404, 2569, 62, 2301, 2234, 1330, 8335, 62, 7890, 11, 3613, 62, ...
3.1
90
#%% [markdown] # # Clustering classique #%% [markdown] # ## import classique import os #%% %load_ext autoreload %autoreload 2 os.chdir('/home/jovyan/work') #%% [markdown] # ## Import iss #%% from iss.tools import Config from iss.tools import Tools from iss.models import SimpleConvAutoEncoder from iss.clustering imp...
[ 2, 16626, 685, 4102, 2902, 60, 198, 2, 1303, 1012, 436, 1586, 1398, 2350, 198, 198, 2, 16626, 685, 4102, 2902, 60, 198, 2, 22492, 1330, 1398, 2350, 198, 11748, 28686, 198, 198, 2, 16626, 198, 4, 2220, 62, 2302, 1960, 382, 2220, 19...
2.524941
1,263
#!/usr/bin/python3 # -*- coding: utf-8 -*- # ----------------------------------------------------------- # created 02.02.2021, tkaulke # Thomas Kaulke, kaulkth@gmail.com # https://github.com/kaulketh # ----------------------------------------------------------- __author__ = "Thomas Kaulke" __email__ = "kaulketh@gmail...
[ 2, 48443, 14629, 14, 8800, 14, 29412, 18, 198, 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 198, 2, 20368, 22369, 6329, 198, 2, 2727, 7816, 13, 2999, 13, 1238, 2481, 11, 256, 74, 2518, 365, 198, 2, 5658, 509, ...
2.488636
792
import numpy as np import pytest from mr_uplift.dataset.data_simulation import get_no_noise_data, get_simple_uplift_data, get_observational_uplift_data_1 from mr_uplift.mr_uplift import MRUplift, get_t_data from mr_uplift.keras_model_functionality import prepare_data_optimized_loss import sys import pandas as pd
[ 11748, 299, 32152, 355, 45941, 198, 11748, 12972, 9288, 198, 198, 6738, 285, 81, 62, 84, 489, 2135, 13, 19608, 292, 316, 13, 7890, 62, 14323, 1741, 1330, 651, 62, 3919, 62, 3919, 786, 62, 7890, 11, 651, 62, 36439, 62, 84, 489, 213...
2.603306
121
""" """ import unittest from example_module import COLORS, increment
[ 37811, 198, 198, 37811, 198, 198, 11748, 555, 715, 395, 198, 198, 6738, 1672, 62, 21412, 1330, 20444, 20673, 11, 18703, 628 ]
3.318182
22
#!/usr/bin/env python # Licensed to Cloudera, Inc. under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. Cloudera, Inc. licenses this file # to you under the Apache License, Version 2.0 (the # "License"); you ma...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 198, 2, 49962, 284, 1012, 280, 1082, 64, 11, 3457, 13, 739, 530, 198, 2, 393, 517, 18920, 5964, 11704, 13, 220, 4091, 262, 28536, 2393, 198, 2, 9387, 351, 428, 670, 329, 3224, 1321, 198...
3.164032
1,012
from __future__ import absolute_import from __future__ import division from __future__ import print_function from __future__ import unicode_literals from collections import OrderedDict from moz_sql_parser import parse as parse_sql import pyparsing import re from six.moves.urllib import parse FROM_REGEX = re.compile...
[ 6738, 11593, 37443, 834, 1330, 4112, 62, 11748, 198, 6738, 11593, 37443, 834, 1330, 7297, 198, 6738, 11593, 37443, 834, 1330, 3601, 62, 8818, 198, 6738, 11593, 37443, 834, 1330, 28000, 1098, 62, 17201, 874, 198, 198, 6738, 17268, 1330, ...
3.293578
109
# Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved import json from pathlib import Path import numpy as np import torch from PIL import Image from panopticapi.utils import rgb2id # from util.box_ops import masks_to_boxes from .construction import make_construction_transforms import logging
[ 2, 15069, 357, 66, 8, 3203, 11, 3457, 13, 290, 663, 29116, 13, 1439, 6923, 33876, 198, 11748, 33918, 198, 6738, 3108, 8019, 1330, 10644, 198, 198, 11748, 299, 32152, 355, 45941, 198, 11748, 28034, 198, 6738, 350, 4146, 1330, 7412, 198...
3.613636
88
#!python """ ANNOTATE FUNCTIONS WITH TIME AND SPACE COMPLEXITY!!!!! """ def linear_search(array, item): """return the first index of item in array or None if item is not found""" return linear_search_iterative(array, item) # return linear_search_recursive(array, item) def linear_search_iterative(ar...
[ 2, 0, 29412, 198, 198, 37811, 198, 1565, 11929, 6158, 29397, 4177, 11053, 13315, 20460, 5357, 37253, 49269, 55, 9050, 50184, 198, 198, 37811, 628, 628, 198, 4299, 14174, 62, 12947, 7, 18747, 11, 2378, 2599, 198, 220, 220, 220, 37227, ...
2.631579
931
#!/usr/bin/python ''' memory class stored in sqlite data base holds raw input and memories in parse taged columns ''' import sys import re import sqlite3 import os from datetime import date, datetime from pattern.en import parse from pattern.en import pprint from pattern.en import parsetree from pattern.en import ...
[ 2, 48443, 14629, 14, 8800, 14, 29412, 198, 198, 7061, 6, 198, 31673, 1398, 220, 198, 301, 1850, 287, 44161, 578, 1366, 2779, 198, 2946, 82, 8246, 5128, 290, 9846, 287, 21136, 256, 1886, 15180, 198, 198, 7061, 6, 198, 198, 11748, 250...
3
248
#!/usr/bin/env python '''imshow with masked array input and out-of-range colors. The second subplot illustrates the use of BoundaryNorm to get a filled contour effect. ''' from pylab import * from numpy import ma import matplotlib.colors as colors delta = 0.025 x = y = arange(-3.0, 3.0, delta) X, Y = meshgri...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 198, 7061, 6, 320, 12860, 351, 29229, 7177, 5128, 290, 503, 12, 1659, 12, 9521, 7577, 13, 628, 220, 220, 220, 383, 1218, 850, 29487, 21290, 262, 779, 286, 30149, 560, 35393, 284, 198, 220...
2.529328
699
from pydantic import BaseModel, validator, Field from typing import List, Dict from datetime import datetime
[ 198, 6738, 279, 5173, 5109, 1330, 7308, 17633, 11, 4938, 1352, 11, 7663, 198, 6738, 19720, 1330, 7343, 11, 360, 713, 198, 6738, 4818, 8079, 1330, 4818, 8079, 198 ]
3.793103
29
import discord from discord.ext import commands import requests import random from box import Box
[ 11748, 36446, 198, 6738, 36446, 13, 2302, 1330, 9729, 198, 11748, 7007, 198, 11748, 4738, 198, 6738, 3091, 1330, 8315, 198 ]
4.666667
21
#!/usr/bin/python ################################################################################ # 20bdcef0-5cc5-11e4-af55-00155d01fe08 # # Justin Dierking # justindierking@hardbitsolutions.com # phnomcobra@gmail.com # # 10/24/2014 Original Construction ################################################################...
[ 2, 48443, 14629, 14, 8800, 14, 29412, 198, 29113, 29113, 14468, 198, 2, 1160, 17457, 344, 69, 15, 12, 20, 535, 20, 12, 1157, 68, 19, 12, 1878, 2816, 12, 405, 18742, 67, 486, 5036, 2919, 198, 2, 198, 2, 10799, 360, 959, 3364, 198...
4.060241
83
from django.urls import path from django.contrib.auth import views as auth_views from . import views urlpatterns = [ path('register/', views.register, name='register'), path('login/', views.userlogin, name='login'), path('logout/', views.userlogout, name='logout'), path('password_change/', auth_views.P...
[ 6738, 42625, 14208, 13, 6371, 82, 1330, 3108, 198, 6738, 42625, 14208, 13, 3642, 822, 13, 18439, 1330, 5009, 355, 6284, 62, 33571, 198, 6738, 764, 1330, 5009, 198, 198, 6371, 33279, 82, 796, 685, 198, 220, 220, 220, 3108, 10786, 30238...
2.660784
510
from datetime import datetime from difflib import unified_diff from logging import basicConfig, getLogger, INFO import os from pathlib import Path import shutil import subprocess import sys import yaml from urllib.parse import urlparse from notebook import notebookapp from IPython.core.display import HTML WORKDIR = ...
[ 6738, 4818, 8079, 1330, 4818, 8079, 198, 6738, 814, 8019, 1330, 22706, 62, 26069, 198, 6738, 18931, 1330, 4096, 16934, 11, 651, 11187, 1362, 11, 24890, 198, 11748, 28686, 198, 6738, 3108, 8019, 1330, 10644, 198, 11748, 4423, 346, 198, 1...
2.818182
209
""" Minimum edit distance computes the cost it takes to get from one string to another string. This implementation uses the Levenshtein distance with a cost of 1 for insertions or deletions and a cost of 2 for substitutions. Resource: https://en.wikipedia.org/wiki/Edit_distance For example, getting from "intention" ...
[ 37811, 198, 44046, 4370, 5253, 552, 1769, 262, 1575, 340, 2753, 284, 651, 422, 530, 4731, 284, 1194, 4731, 13, 220, 198, 1212, 7822, 3544, 262, 1004, 574, 1477, 22006, 5253, 351, 257, 1575, 286, 352, 329, 7550, 507, 393, 28128, 507, ...
3.743119
109
from operator import attrgetter import logging import os import shutil import subprocess import pyfastaq import pymummer from cluster_vcf_records import vcf_record from varifier import utils # We only want the .snps file from the dnadiff script from MUMmer. From reading # the docs inspecting that script, we need to ...
[ 6738, 10088, 1330, 708, 81, 1136, 353, 198, 11748, 18931, 198, 11748, 28686, 198, 11748, 4423, 346, 198, 11748, 850, 14681, 198, 198, 11748, 12972, 7217, 30188, 198, 11748, 279, 4948, 31647, 198, 6738, 13946, 62, 85, 12993, 62, 8344, 36...
1.803236
2,719
from dataclasses import asdict, dataclass from typing import Any, Dict, List, Type
[ 6738, 4818, 330, 28958, 1330, 355, 11600, 11, 4818, 330, 31172, 198, 6738, 19720, 1330, 4377, 11, 360, 713, 11, 7343, 11, 5994, 628, 628, 628 ]
3.384615
26
from __future__ import absolute_import import datetime from dateutil import parser import pytz from .base import FieldFilter, DictFilterMixin, DjangoQueryFilterMixin from .queryfilter import QueryFilter WHOLE_DAY = datetime.timedelta(days=1) ONE_SECOND = datetime.timedelta(seconds=1) min_datetime = datetime.dat...
[ 6738, 11593, 37443, 834, 1330, 4112, 62, 11748, 198, 198, 11748, 4818, 8079, 198, 198, 6738, 3128, 22602, 1330, 30751, 198, 11748, 12972, 22877, 198, 198, 6738, 764, 8692, 1330, 7663, 22417, 11, 360, 713, 22417, 35608, 259, 11, 37770, 2...
2.971831
142
# -*- coding: utf-8 -*- # Copyright (C) 2020. Huawei Technologies Co., Ltd. All rights reserved. # This program is free software; you can redistribute it and/or modify # it under the terms of the MIT License. # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the...
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 198, 2, 15069, 357, 34, 8, 12131, 13, 43208, 21852, 1766, 1539, 12052, 13, 1439, 2489, 10395, 13, 198, 2, 770, 1430, 318, 1479, 3788, 26, 345, 460, 17678, 4163, 340, ...
2.790332
1,717
""" This module implements the Request class which is used to represent HTTP requests in Scrapy. See documentation in docs/topics/request-response.rst """ from w3lib.url import safe_url_string from scrapy.http.headers import Headers from scrapy.utils.python import to_bytes from scrapy.utils.trackref import object_ref...
[ 37811, 198, 1212, 8265, 23986, 262, 19390, 1398, 543, 318, 973, 284, 2380, 14626, 198, 8897, 3558, 287, 1446, 2416, 88, 13, 198, 198, 6214, 10314, 287, 34165, 14, 4852, 873, 14, 25927, 12, 26209, 13, 81, 301, 198, 37811, 198, 6738, ...
2.659142
443