content
stringlengths
1
1.05M
input_ids
listlengths
1
883k
ratio_char_token
float64
1
22.9
token_count
int64
1
883k
from . artifactory import Artifactory __all__ = ['Artifactory']
[ 6738, 764, 14077, 9548, 1330, 3683, 361, 9548, 198, 198, 834, 439, 834, 796, 37250, 8001, 361, 9548, 20520, 198 ]
3.25
20
# vim: expandtab tabstop=4 shiftwidth=4 softtabstop=4 nowrap
[ 628, 198, 2, 43907, 25, 4292, 8658, 7400, 11338, 28, 19, 6482, 10394, 28, 19, 2705, 8658, 11338, 28, 19, 783, 2416, 198 ]
2.782609
23
import peewee import playhouse.kv from time import time from . import CacheableAdapter
[ 11748, 613, 413, 1453, 198, 11748, 711, 4803, 13, 74, 85, 198, 6738, 640, 1330, 640, 198, 198, 6738, 764, 1330, 34088, 540, 47307, 628 ]
3.56
25
from collections import namedtuple import torch from torch.nn import (AdaptiveAvgPool2d, BatchNorm2d, Conv2d, MaxPool2d, Module, PReLU, ReLU, Sequential, Sigmoid) # yapf: disable """ ArcFace implementation from [TreB1eN](https://github.com/TreB1eN/InsightFace_Pytorch) # isort:skip # noqa """ # ...
[ 6738, 17268, 1330, 3706, 83, 29291, 198, 198, 11748, 28034, 198, 6738, 28034, 13, 20471, 1330, 357, 48003, 425, 48997, 27201, 17, 67, 11, 347, 963, 35393, 17, 67, 11, 34872, 17, 67, 11, 5436, 27201, 17, 67, 11, 198, 220, 220, 220, ...
2.207483
1,176
import os from spotifyclient import SpotifyClient if __name__ == "__main__": main()
[ 11748, 28686, 198, 198, 6738, 4136, 1958, 16366, 1330, 26778, 11792, 628, 198, 198, 361, 11593, 3672, 834, 6624, 366, 834, 12417, 834, 1298, 198, 220, 220, 220, 1388, 3419 ]
3.033333
30
# -*- coding: utf-8 -*- from ddtrace.compat import PY2 from ddtrace.constants import ANALYTICS_SAMPLE_RATE_KEY from ddtrace.contrib.flask.patch import flask_version from ddtrace.ext import http from ddtrace.propagation.http import HTTP_HEADER_TRACE_ID, HTTP_HEADER_PARENT_ID from flask import abort from . import BaseFl...
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 6738, 49427, 40546, 13, 5589, 265, 1330, 350, 56, 17, 198, 6738, 49427, 40546, 13, 9979, 1187, 1330, 3537, 1847, 56, 51, 19505, 62, 49302, 16437, 62, 49, 6158, 62, 203...
2.904192
167
import argparse from trec_car import read_data from tqdm import tqdm import pickle import os import json import copy from utils.util import NUM_FOLD def parse_sim_file(filename): """ Reads the deduplicated documents file and stores the duplicate passage ids into a dictionary """ sim_dict = {} ...
[ 11748, 1822, 29572, 198, 6738, 2054, 66, 62, 7718, 1330, 1100, 62, 7890, 198, 6738, 256, 80, 36020, 1330, 256, 80, 36020, 198, 11748, 2298, 293, 198, 11748, 28686, 198, 11748, 33918, 198, 11748, 4866, 198, 6738, 3384, 4487, 13, 22602, ...
1.900779
3,850
__doc__ = 'github: https://github.com/brandonxiang/geojson-python-utils' import math from coordTransform_utils import wgs84togcj02 from coordTransform_utils import gcj02tobd09 def linestrings_intersect(line1, line2): """ To valid whether linestrings from geojson are intersected with each other. reference:...
[ 834, 15390, 834, 796, 705, 12567, 25, 3740, 1378, 12567, 13, 785, 14, 1671, 5063, 87, 15483, 14, 469, 13210, 1559, 12, 29412, 12, 26791, 6, 198, 11748, 10688, 198, 6738, 6349, 41762, 62, 26791, 1330, 266, 14542, 5705, 83, 519, 66, 7...
2.163481
6,802
import os ''' user = os.environ['POSTGRES_USER'] password = os.environ['POSTGRES_PASSWORD'] host = os.environ['POSTGRES_HOST'] database = os.environ['POSTGRES_DB'] port = os.environ['POSTGRES_PORT'] ''' user = 'test' password = 'password' host = 'localhost' database = 'example' port = '5432' DATABASE_CONNECTION_URI =...
[ 11748, 28686, 198, 7061, 6, 198, 7220, 796, 28686, 13, 268, 2268, 17816, 32782, 10761, 1546, 62, 29904, 20520, 198, 28712, 796, 28686, 13, 268, 2268, 17816, 32782, 10761, 1546, 62, 47924, 54, 12532, 20520, 198, 4774, 796, 28686, 13, 268...
2.503226
155
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Created on Mon Jun 3 19:26:47 2019 @author: sercangul """ n = 5 xy = [map(int, input().split()) for _ in range(n)] sx, sy, sx2, sxy = map(sum, zip(*[(x, y, x**2, x * y) for x, y in xy])) b = (n * sxy - sx * sy) / (n * sx2 - sx**2) a = (sy / n) - b * (sx / n) print('...
[ 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, 2892, 7653, 220, 513, 678, 25, 2075, 25, 2857, 13130, 198, 198, 31, 9800, 25, 1055, 66, ...
1.960452
177
import gym.envs.mujoco.hopper as hopper import numpy as np
[ 11748, 11550, 13, 268, 14259, 13, 76, 23577, 25634, 13, 8873, 2848, 355, 8169, 2848, 198, 11748, 299, 32152, 355, 45941, 628 ]
2.727273
22
# Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. import numpy as np # import tensorflow as tf import abc # class FFMTextIterator(BaseIterator): # """Data loader for FFM format based models, such as xDeepFM. # Iterator will not load the whole data into memory. Ins...
[ 2, 15069, 357, 66, 8, 5413, 10501, 13, 1439, 2489, 10395, 13, 198, 2, 49962, 739, 262, 17168, 13789, 13, 198, 198, 11748, 299, 32152, 355, 45941, 198, 2, 1330, 11192, 273, 11125, 355, 48700, 198, 11748, 450, 66, 628, 198, 198, 2, ...
1.915923
4,258
# -*- coding: utf-8 -*- import requests from ncm.encrypt import encrypted_request from ncm.constants import headers from ncm.constants import song_download_url from ncm.constants import get_song_url from ncm.constants import get_album_url from ncm.constants import get_artist_url from ncm.constants import get_playlist...
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 198, 11748, 7007, 198, 198, 6738, 299, 11215, 13, 12685, 6012, 1330, 19365, 62, 25927, 198, 6738, 299, 11215, 13, 9979, 1187, 1330, 24697, 198, 6738, 299, 11215, 13, 997...
3.074766
107
# -*- coding: utf-8 -*- """ The `TreeNode` class provides many helper functions that make the work done in the `BinarySearchTree` class methods much easier. The constructor for a `TreeNode`, along with these helper functions, is shown below. As you can see, many of these helper functions help to classify a node acco...
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 628, 198, 37811, 198, 198, 464, 4600, 27660, 19667, 63, 1398, 3769, 867, 31904, 5499, 326, 787, 262, 670, 198, 28060, 287, 262, 4600, 33, 3219, 18243, 27660, 63, 1398, 5050, ...
3.920981
367
# Copyright (C) 2017 Google Inc. # # 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, ...
[ 2, 15069, 357, 34, 8, 2177, 3012, 3457, 13, 198, 2, 198, 2, 49962, 739, 262, 24843, 13789, 11, 10628, 362, 13, 15, 357, 1169, 366, 34156, 15341, 198, 2, 345, 743, 407, 779, 428, 2393, 2845, 287, 11846, 351, 262, 13789, 13, 198, ...
3.012148
9,220
import os, ast import pandas as pd from sklearn.svm import SVC from sklearn.model_selection import train_test_split from sklearn.preprocessing import OneHotEncoder from sklearn.compose import make_column_transformer from sklearn.pipeline import make_pipeline import pickle if __name__ == "__main__": main()
[ 11748, 28686, 11, 6468, 198, 11748, 19798, 292, 355, 279, 67, 198, 6738, 1341, 35720, 13, 82, 14761, 1330, 311, 15922, 198, 6738, 1341, 35720, 13, 19849, 62, 49283, 1330, 4512, 62, 9288, 62, 35312, 198, 6738, 1341, 35720, 13, 3866, 36...
3.076923
104
import base64 def parse_basic_auth(header_value): """ Attempts to parse the given header value as a Base64-encoded Basic auth header. """ if not header_value: return None parts = header_value.split(" ") if len(parts) != 2 or parts[0].lower() != "basic": return None try: ...
[ 11748, 2779, 2414, 628, 198, 4299, 21136, 62, 35487, 62, 18439, 7, 25677, 62, 8367, 2599, 198, 220, 220, 220, 37227, 198, 220, 220, 220, 25770, 82, 284, 21136, 262, 1813, 13639, 1988, 355, 257, 7308, 2414, 12, 12685, 9043, 14392, 6284...
2.392523
214
# This file is part of Indico. # Copyright (C) 2002 - 2020 CERN # # Indico is free software; you can redistribute it and/or # modify it under the terms of the MIT License; see the # LICENSE file for more details. from indico.core.signals.event import _signals sidemenu = _signals.signal('sidemenu', """ Expected to re...
[ 2, 770, 2393, 318, 636, 286, 1423, 3713, 13, 198, 2, 15069, 357, 34, 8, 6244, 532, 12131, 327, 28778, 198, 2, 198, 2, 1423, 3713, 318, 1479, 3788, 26, 345, 460, 17678, 4163, 340, 290, 14, 273, 198, 2, 13096, 340, 739, 262, 2846,...
3.335118
934
# Copyright (c) 2013 - 2015 EMC Corporation. # All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unle...
[ 2, 15069, 357, 66, 8, 2211, 532, 1853, 412, 9655, 10501, 13, 198, 2, 1439, 6923, 33876, 13, 198, 2, 198, 2, 220, 220, 220, 49962, 739, 262, 24843, 13789, 11, 10628, 362, 13, 15, 357, 1169, 366, 34156, 15341, 345, 743, 198, 2, 22...
3.395683
278
# -*- coding: utf-8 -*- __version__ = '1.0.2' import os import appdirs import osmnx as ox import joblib import requests from .files import load_vars, save_vars, cached, inflate_tar, download_zipfile from .data import data, list_data, problematic from .tools.view_code import show_file from . import mapping cache_dir ...
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 198, 834, 9641, 834, 796, 705, 16, 13, 15, 13, 17, 6, 198, 198, 11748, 28686, 198, 11748, 598, 15908, 82, 198, 11748, 267, 5796, 77, 87, 355, 12018, 198, 11748, 1693...
2.770787
445
from requests.models import PreparedRequest
[ 6738, 7007, 13, 27530, 1330, 19141, 1144, 18453, 628, 198 ]
4.6
10
import os import sys from . import HendrixTestCase, TEST_SETTINGS from hendrix.contrib import SettingsError from hendrix.options import options as hx_options from hendrix import ux from mock import patch
[ 11748, 28686, 198, 11748, 25064, 198, 6738, 764, 1330, 14666, 8609, 14402, 20448, 11, 43001, 62, 28480, 51, 20754, 198, 6738, 339, 358, 8609, 13, 3642, 822, 1330, 16163, 12331, 198, 6738, 339, 358, 8609, 13, 25811, 1330, 3689, 355, 289,...
3.534483
58
""" The MIT License (MIT) Copyright (c) 2015-2021 Rapptz Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, ...
[ 37811, 198, 464, 17168, 13789, 357, 36393, 8, 198, 198, 15269, 357, 66, 8, 1853, 12, 1238, 2481, 36962, 22877, 198, 198, 5990, 3411, 318, 29376, 7520, 11, 1479, 286, 3877, 11, 284, 597, 1048, 16727, 257, 198, 30073, 286, 428, 3788, ...
3.622896
594
# -*- coding: utf8 -*- import os import re import time import json import random import asyncio from typing import Optional, List, Dict from aiohttp import ClientSession from aiohttp.cookiejar import SimpleCookie from lxml import etree from bs4 import BeautifulSoup from config import * from message import server_chan...
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 23, 532, 9, 12, 198, 11748, 28686, 198, 11748, 302, 198, 11748, 640, 198, 11748, 33918, 198, 11748, 4738, 198, 11748, 30351, 952, 198, 6738, 19720, 1330, 32233, 11, 7343, 11, 360, 713, 198, 198, ...
1.97037
810
#!python import numpy as np from numpy import inf from numpy import nan from scipy.optimize import fmin from scipy.stats import beta from scipy.special import beta as B from scipy.special import comb import argparse import sys def parseArgs(): '''Function for parsing arguments''' parser = argparse.ArgumentPars...
[ 2, 0, 29412, 198, 11748, 299, 32152, 355, 45941, 198, 6738, 299, 32152, 1330, 1167, 198, 6738, 299, 32152, 1330, 15709, 198, 6738, 629, 541, 88, 13, 40085, 1096, 1330, 277, 1084, 198, 6738, 629, 541, 88, 13, 34242, 1330, 12159, 198, ...
2.565923
493
# Copyright (c) 2016-present, Facebook, Inc. # # 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...
[ 2, 15069, 357, 66, 8, 1584, 12, 25579, 11, 3203, 11, 3457, 13, 198, 2, 198, 2, 49962, 739, 262, 24843, 13789, 11, 10628, 362, 13, 15, 357, 1169, 366, 34156, 15341, 198, 2, 345, 743, 407, 779, 428, 2393, 2845, 287, 11846, 351, 26...
3.843511
262
""" Cisco_IOS_XR_fib_common_cfg This module contains a collection of YANG definitions for Cisco IOS\-XR fib\-common package configuration. This module contains definitions for the following management objects\: fib\: CEF configuration Copyright (c) 2013\-2018 by Cisco Systems, Inc. All rights reserved. """ from ...
[ 37811, 28289, 62, 40, 2640, 62, 55, 49, 62, 69, 571, 62, 11321, 62, 37581, 220, 198, 198, 1212, 8265, 4909, 257, 4947, 286, 575, 15567, 17336, 198, 1640, 28289, 314, 2640, 41441, 55, 49, 12900, 41441, 11321, 5301, 8398, 13, 198, 198...
3.388298
188
"""Series of actions that form a combo chain""" from __future__ import annotations from typing import Optional, Sequence, TYPE_CHECKING from action import Action from core.utility import Array from core.constants import PlayerForm, SimActKind, MomentType from core.database import FromDB if TYPE_CHECKING: from ent...
[ 37811, 27996, 286, 4028, 326, 1296, 257, 14831, 6333, 37811, 198, 6738, 11593, 37443, 834, 1330, 37647, 198, 6738, 19720, 1330, 32233, 11, 45835, 11, 41876, 62, 50084, 2751, 198, 198, 6738, 2223, 1330, 7561, 198, 6738, 4755, 13, 315, 87...
3.965909
88
import os from datetime import timedelta from flask_unchained import BundleConfig try: from flask_unchained.bundles.sqlalchemy import db except ImportError: db = None
[ 11748, 28686, 198, 198, 6738, 4818, 8079, 1330, 28805, 12514, 198, 6738, 42903, 62, 3316, 1328, 1330, 25282, 16934, 198, 198, 28311, 25, 198, 220, 220, 220, 422, 42903, 62, 3316, 1328, 13, 65, 917, 829, 13, 25410, 282, 26599, 1330, 20...
3.196429
56
#!/usr/bin/env python3 -u # -*- coding: utf-8 -*- __author__ = ["Markus Lning"] __all__ = ["_StatsModelsAdapter"] import numpy as np import pandas as pd from sktime.forecasting.base._base import DEFAULT_ALPHA from sktime.forecasting.base._sktime import _OptionalForecastingHorizonMixin from sktime.forecasting.base._s...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 18, 532, 84, 198, 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 198, 834, 9800, 834, 796, 14631, 9704, 385, 406, 768, 8973, 198, 834, 439, 834, 796, 14631, 62, 29668, ...
2.869919
123
# This Python file uses the following encoding: utf-8 """autogenerated by genpy from gazebo_msgs/GetLinkPropertiesRequest.msg. Do not edit.""" import codecs import sys python3 = True if sys.hexversion > 0x03000000 else False import genpy import struct _struct_I = genpy.struct_I # This Python file uses the following e...
[ 2, 770, 11361, 2393, 3544, 262, 1708, 21004, 25, 3384, 69, 12, 23, 198, 37811, 2306, 519, 877, 515, 416, 2429, 9078, 422, 308, 1031, 1765, 78, 62, 907, 14542, 14, 3855, 11280, 2964, 18200, 18453, 13, 19662, 13, 2141, 407, 4370, 526,...
3.096447
197
"""Find kernel specifications for a given language""" import os import sys from .languages import same_language from .reraise import reraise try: # I prefer not to take a dependency on jupyter_client from jupyter_client.kernelspec import find_kernel_specs, get_kernel_spec except ImportError as err: find_...
[ 37811, 16742, 9720, 20640, 329, 257, 1813, 3303, 37811, 198, 198, 11748, 28686, 198, 11748, 25064, 198, 198, 6738, 764, 75, 33213, 1330, 976, 62, 16129, 198, 6738, 764, 24420, 786, 1330, 302, 40225, 198, 198, 28311, 25, 198, 220, 220, ...
2.360042
961
import numpy as np import scipy.sparse __all__ = ['save_npz', 'load_npz'] # Make loading safe vs. malicious input PICKLE_KWARGS = dict(allow_pickle=False) def save_npz(file, matrix, compressed=True): """ Save a sparse matrix to a file using ``.npz`` format. Parameters ---------- file : str or file...
[ 11748, 299, 32152, 355, 45941, 198, 11748, 629, 541, 88, 13, 82, 29572, 198, 198, 834, 439, 834, 796, 37250, 21928, 62, 37659, 89, 3256, 705, 2220, 62, 37659, 89, 20520, 628, 198, 2, 6889, 11046, 3338, 3691, 13, 17412, 5128, 198, 47...
2.390408
2,231
from typing import Dict, List from simulator.services.resources.directory import Directory from simulator.services.services import Services
[ 6738, 19720, 1330, 360, 713, 11, 7343, 198, 198, 6738, 35375, 13, 30416, 13, 37540, 13, 34945, 1330, 27387, 198, 6738, 35375, 13, 30416, 13, 30416, 1330, 6168, 628 ]
4.896552
29
# Copyright 2022 Collate # 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, 220, 15069, 33160, 7778, 378, 198, 2, 220, 49962, 739, 262, 24843, 13789, 11, 10628, 362, 13, 15, 357, 1169, 366, 34156, 15341, 198, 2, 220, 345, 743, 407, 779, 428, 2393, 2845, 287, 11846, 351, 262, 13789, 13, 198, 2, 220, 921...
3.766129
248
''' This code is based on https://github.com/jrieke/shape-detection/ ''' import matplotlib.pyplot as plt import matplotlib import numpy as np import tensorflow as tf import datetime
[ 7061, 6, 198, 1212, 2438, 318, 1912, 319, 3740, 1378, 12567, 13, 785, 14, 73, 5034, 365, 14, 43358, 12, 15255, 3213, 14, 198, 7061, 6, 198, 198, 11748, 2603, 29487, 8019, 13, 9078, 29487, 355, 458, 83, 198, 11748, 2603, 29487, 8019,...
3
61
import pickle import threading from bmconfigparser import BMConfigParser import state knownNodesLock = threading.Lock() knownNodes = {} knownNodesTrimAmount = 2000
[ 11748, 2298, 293, 198, 11748, 4704, 278, 198, 198, 6738, 275, 76, 11250, 48610, 1330, 29944, 16934, 46677, 198, 11748, 1181, 198, 198, 4002, 45, 4147, 25392, 796, 4704, 278, 13, 25392, 3419, 198, 4002, 45, 4147, 796, 23884, 198, 198, ...
3.34
50
# Copyright (c) 2018 DDN. All rights reserved. # Use of this source code is governed by a MIT-style # license that can be found in the LICENSE file. import os from chroma_agent.lib.shell import AgentShell from chroma_agent.log import console_log from chroma_agent.device_plugins.action_runner import CallbackAfterResp...
[ 2, 15069, 357, 66, 8, 2864, 20084, 45, 13, 1439, 2489, 10395, 13, 198, 2, 5765, 286, 428, 2723, 2438, 318, 21825, 416, 257, 17168, 12, 7635, 198, 2, 5964, 326, 460, 307, 1043, 287, 262, 38559, 24290, 2393, 13, 628, 198, 11748, 286...
3.435115
131
#! /usr/bin/env python # -*- coding: utf-8 -* """ A base class that governs how to download and process tables from a Census API table. """ import os import logging import pathlib from . import geotypes from . import decorators logger = logging.getLogger(__name__)
[ 2, 0, 1220, 14629, 14, 8800, 14, 24330, 21015, 198, 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 198, 37811, 198, 32, 2779, 1398, 326, 47049, 703, 284, 4321, 290, 1429, 8893, 422, 257, 20962, 7824, 3084, 13, 198, 37811, 1...
3.283951
81
#!/usr/bin/env python3 import argparse import os from pathlib import Path import shutil import subprocess import sys from tempfile import TemporaryDirectory from uuid import uuid4 from zipfile import ZipFile import jinja2 import sente # type: ignore __version__ = (1, 0, 0) SGF_RENDER_EXECUTABLE = './sgf-render' TE...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 18, 198, 11748, 1822, 29572, 198, 11748, 28686, 198, 6738, 3108, 8019, 1330, 10644, 198, 11748, 4423, 346, 198, 11748, 850, 14681, 198, 11748, 25064, 198, 6738, 20218, 7753, 1330, 46042, 43055,...
2.547264
402
from django.conf.urls import include, url from . import views urlpatterns = [ url(r'^settings$', views.household_dashboard, name='household_dashboard'), url(r'^myinfo$', views.my_info, name='my_info'), url(r'^profile$', views.household_profile, name='maintain_household'), url(r'^members$', views.househ...
[ 6738, 42625, 14208, 13, 10414, 13, 6371, 82, 1330, 2291, 11, 19016, 198, 6738, 764, 1330, 5009, 198, 198, 6371, 33279, 82, 796, 685, 198, 220, 220, 220, 19016, 7, 81, 6, 61, 33692, 3, 3256, 5009, 13, 4803, 2946, 62, 42460, 3526, 1...
2.233577
411
# -*- coding: utf-8 -*- try: # Python 2.7 from collections import OrderedDict except: # Python 2.6 from gluon.contrib.simplejson.ordered_dict import OrderedDict from gluon import current from gluon.html import A, URL from gluon.storage import Storage from s3 import s3_fullname T = current.T settings...
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 198, 28311, 25, 198, 220, 220, 220, 1303, 11361, 362, 13, 22, 198, 220, 220, 220, 422, 17268, 1330, 14230, 1068, 35, 713, 198, 16341, 25, 198, 220, 220, 220, 1303, 1...
2.255594
16,491
#! /usr/bin/env python # -*- coding: utf-8 -*- from main import main main("issue561-v1", "issue561-v2")
[ 2, 0, 1220, 14629, 14, 8800, 14, 24330, 21015, 198, 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 198, 6738, 1388, 1330, 1388, 198, 198, 12417, 7203, 21949, 47915, 12, 85, 16, 1600, 366, 21949, 47915, 12, 85, 17, ...
2.255319
47
# ---------------------------------------------------------------------------- # Copyright (c) 2016-2018, QIIME 2 development team. # # Distributed under the terms of the Modified BSD License. # # The full license is in the file LICENSE, distributed with this software. # ------------------------------------------------...
[ 2, 16529, 10541, 198, 2, 15069, 357, 66, 8, 1584, 12, 7908, 11, 1195, 40, 12789, 362, 2478, 1074, 13, 198, 2, 198, 2, 4307, 6169, 739, 262, 2846, 286, 262, 40499, 347, 10305, 13789, 13, 198, 2, 198, 2, 383, 1336, 5964, 318, 287,...
3.155172
232
import time import datetime import contextlib
[ 11748, 640, 198, 11748, 4818, 8079, 198, 11748, 4732, 8019, 628, 198 ]
4
12
# vim: tabstop=4 shiftwidth=4 softtabstop=4 # # Copyright 2012 Rackspace # All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licen...
[ 2, 43907, 25, 7400, 11338, 28, 19, 6482, 10394, 28, 19, 2705, 8658, 11338, 28, 19, 198, 2, 198, 2, 15069, 2321, 37927, 13200, 198, 2, 1439, 6923, 33876, 13, 198, 2, 198, 2, 220, 220, 220, 49962, 739, 262, 24843, 13789, 11, 10628, ...
2.966245
474
#!/usr/bin/env python # Copyright 2017 Calico LLC # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # https://www.apache.org/licenses/LICENSE-2.0 # Unless required by applicable law or agr...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 198, 2, 15069, 2177, 2199, 3713, 11419, 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,...
2.882733
3,249
from django.urls import path from . import views app_name = "shop" urlpatterns = [ path('', views.HomePage.as_view(), name="home-page"), path('shop/', views.ProductListView.as_view(), name="product-list"), path('shop/<int:category_pk>/', views.ProductListView.as_view(), name="product-list"), path('sho...
[ 6738, 42625, 14208, 13, 6371, 82, 1330, 3108, 198, 198, 6738, 764, 1330, 5009, 198, 1324, 62, 3672, 796, 366, 24643, 1, 198, 198, 6371, 33279, 82, 796, 685, 198, 220, 220, 220, 3108, 10786, 3256, 5009, 13, 16060, 9876, 13, 292, 62, ...
2.586074
517
import autograd.numpy as np from scipy.stats import uniform from autograd import jacobian from numpy import euler_gamma from scipy.special import gamma as gamma_func from scipy.special import ndtri as z from scipy import integrate from scipy.optimize import minimize from surpyval import parametric as para from surpyva...
[ 11748, 1960, 519, 6335, 13, 77, 32152, 355, 45941, 198, 6738, 629, 541, 88, 13, 34242, 1330, 8187, 198, 6738, 1960, 519, 6335, 1330, 474, 330, 672, 666, 198, 6738, 299, 32152, 1330, 304, 18173, 62, 28483, 2611, 198, 6738, 629, 541, ...
3.055215
163
import pytest from datar import stats from datar.base import * from datar import f from datar.datasets import warpbreaks, state_division, state_region, airquality from .conftest import assert_iterable_equal
[ 11748, 12972, 9288, 198, 198, 6738, 4818, 283, 1330, 9756, 198, 6738, 4818, 283, 13, 8692, 1330, 1635, 198, 6738, 4818, 283, 1330, 277, 198, 6738, 4818, 283, 13, 19608, 292, 1039, 1330, 25825, 30058, 11, 1181, 62, 21426, 11, 1181, 62,...
3.42623
61
from unittest import TestCase from cqlengine.statements import UpdateStatement, WhereClause, AssignmentClause from cqlengine.operators import *
[ 6738, 555, 715, 395, 1330, 6208, 20448, 198, 6738, 269, 13976, 18392, 13, 14269, 3196, 1330, 10133, 48682, 11, 6350, 2601, 682, 11, 50144, 2601, 682, 198, 6738, 269, 13976, 18392, 13, 3575, 2024, 1330, 1635, 628, 198 ]
3.842105
38
# Copyright 2020 Jan Feitsma (Falcons) # SPDX-License-Identifier: Apache-2.0 #!/usr/bin/python import matplotlib.pyplot as plt from matplotlib.patches import Rectangle
[ 2, 15069, 12131, 2365, 5452, 896, 2611, 357, 41129, 5936, 8, 198, 2, 30628, 55, 12, 34156, 12, 33234, 7483, 25, 24843, 12, 17, 13, 15, 198, 2, 48443, 14629, 14, 8800, 14, 29412, 198, 198, 11748, 2603, 29487, 8019, 13, 9078, 29487, ...
2.915254
59
from hitori_generator import Generator from argparse import ArgumentParser if __name__ == '__main__': main()
[ 6738, 289, 2072, 72, 62, 8612, 1352, 1330, 35986, 198, 6738, 1822, 29572, 1330, 45751, 46677, 628, 628, 198, 361, 11593, 3672, 834, 6624, 705, 834, 12417, 834, 10354, 198, 220, 220, 220, 1388, 3419, 198 ]
3.25
36
from lxml import etree from opaflib.filters import defilterData #Logging facility import logging,code logger = logging.getLogger("OPAFXML") #leaf #tree #Factory PDF = PDFXMLFactory() def create_leaf(tag, value, **kwargs): return PDF.create_leaf(tag, value,**kwargs) def create_tree(tag, ...
[ 6738, 300, 19875, 1330, 2123, 631, 198, 6738, 1034, 1878, 8019, 13, 10379, 1010, 1330, 825, 346, 353, 6601, 198, 2, 11187, 2667, 6841, 198, 11748, 18931, 11, 8189, 220, 198, 6404, 1362, 796, 18931, 13, 1136, 11187, 1362, 7203, 3185, 8...
2.578667
375
import tensorflow as tf # y=ax+b linear model #
[ 11748, 11192, 273, 11125, 355, 48700, 628, 198, 2, 331, 28, 897, 10, 65, 14174, 2746, 628, 198, 2, 220, 198 ]
2.52381
21
from common.make_tx import make_swap_tx from sol.handle_simple import handle_unknown_detect_transfers
[ 6738, 2219, 13, 15883, 62, 17602, 1330, 787, 62, 2032, 499, 62, 17602, 198, 6738, 1540, 13, 28144, 62, 36439, 1330, 5412, 62, 34680, 62, 15255, 478, 62, 7645, 69, 364, 628, 628 ]
3.181818
33
""" Functions for testing independence of several distributions. The functions in this module provide methods for testing if the samples generated from two random vectors are independent. """ import numpy as np import scipy.stats from . import _dcor_internals, _hypothesis from ._dcor import u_distance_correlation_sqr...
[ 37811, 198, 24629, 2733, 329, 4856, 10404, 286, 1811, 24570, 13, 198, 198, 464, 5499, 287, 428, 8265, 2148, 5050, 329, 4856, 611, 198, 1169, 8405, 7560, 422, 734, 4738, 30104, 389, 4795, 13, 198, 37811, 198, 11748, 299, 32152, 355, 45...
2.301922
4,786
from . import imageview from . import cisview from . import renderer from . import convert
[ 6738, 764, 1330, 2939, 1177, 198, 6738, 764, 1330, 33325, 1177, 198, 6738, 764, 1330, 9851, 11882, 198, 6738, 764, 1330, 10385, 628 ]
4
23
import numpy as np import nibabel as nib import os.path as op import pyglet #pyglet.options['debug_gl'] = True #pyglet.options['debug_x11'] = True #pyglet.options['debug_gl_trace'] = True #pyglet.options['debug_texture'] = True #fos modules from fos.actor.axes import Axes from fos import World, Window, WindowManager ...
[ 11748, 299, 32152, 355, 45941, 198, 11748, 33272, 9608, 355, 33272, 198, 11748, 28686, 13, 6978, 355, 1034, 198, 198, 11748, 12972, 70, 1616, 198, 2, 9078, 70, 1616, 13, 25811, 17816, 24442, 62, 4743, 20520, 796, 6407, 198, 2, 9078, 7...
2.281513
952
#coding=utf-8 # import cv2 from keras.models import load_model import numpy as np import chineseText img = cv2.imread("img/gather.png") face_classifier = cv2.CascadeClassifier( "d:\Python36\Lib\site-packages\opencv-master\data\haarcascades\haarcascade_frontalface_default.xml" ) gray = cv2.cvtColor(img, cv2.COLOR_...
[ 2, 66, 7656, 28, 40477, 12, 23, 198, 2, 198, 198, 11748, 269, 85, 17, 198, 6738, 41927, 292, 13, 27530, 1330, 3440, 62, 19849, 198, 11748, 299, 32152, 355, 45941, 198, 11748, 442, 3762, 8206, 198, 198, 9600, 796, 269, 85, 17, 13, ...
2.286938
467
from django.test import TestCase from os import path from rest_framework import status from rest_framework.test import APIClient import random from scheduler.models import Profile from scheduler.factories import ( CourseFactory, SpacetimeFactory, UserFactory, ProfileFactory, SectionFactory, Att...
[ 6738, 42625, 14208, 13, 9288, 1330, 6208, 20448, 198, 6738, 28686, 1330, 3108, 198, 6738, 1334, 62, 30604, 1330, 3722, 198, 6738, 1334, 62, 30604, 13, 9288, 1330, 3486, 2149, 75, 1153, 198, 11748, 4738, 198, 198, 6738, 6038, 18173, 13, ...
2.402307
1,474
import math from fontTools.pens.recordingPen import RecordingPen, replayRecording from fontTools.misc.bezierTools import calcCubicArcLength, splitCubicAtT from coldtype.geometry import Rect, Point __length_cache = {} __split_cache = {}
[ 11748, 10688, 198, 6738, 10369, 33637, 13, 79, 641, 13, 8344, 1284, 25553, 1330, 43905, 25553, 11, 24788, 6690, 1284, 198, 6738, 10369, 33637, 13, 44374, 13, 1350, 89, 959, 33637, 1330, 42302, 43632, 291, 24021, 24539, 11, 6626, 43632, ...
3.434783
69
""" Project for Udacity Danaodgree in Deep Reinforcement Learning This script train an agent to navigate (and collect bananas!) in a large, square world. A reward of +1 is provided for collecting a yellow banana, and a reward of -1 is provided for collecting a blue banana. Thus, the goal of your agent is to collect a...
[ 37811, 198, 16775, 329, 35774, 4355, 22937, 375, 70, 631, 287, 10766, 22299, 13442, 18252, 198, 198, 1212, 4226, 4512, 281, 5797, 284, 16500, 357, 392, 2824, 35484, 8133, 287, 257, 1588, 11, 6616, 995, 13, 198, 198, 32, 6721, 286, 134...
2.587228
1,519
# Warsaw University of Technology from layers.eca_block import ECABasicBlock from models.minkgl import MinkHead, MinkTrunk, MinkGL from models.minkloc import MinkLoc from third_party.minkloc3d.minkloc import MinkLoc3D from misc.utils import ModelParams
[ 2, 32955, 2059, 286, 8987, 198, 198, 6738, 11685, 13, 31047, 62, 9967, 1330, 13182, 6242, 292, 291, 12235, 198, 6738, 4981, 13, 76, 676, 4743, 1330, 337, 676, 13847, 11, 337, 676, 2898, 2954, 11, 337, 676, 8763, 628, 198, 6738, 4981...
3.134146
82
import sys import ctypes from Phidget22.PhidgetSupport import PhidgetSupport from Phidget22.Async import * from Phidget22.ChannelClass import ChannelClass from Phidget22.ChannelSubclass import ChannelSubclass from Phidget22.DeviceClass import DeviceClass from Phidget22.DeviceID import DeviceID from Phidget22.ErrorEvent...
[ 11748, 25064, 198, 11748, 269, 19199, 198, 6738, 1380, 17484, 1828, 13, 2725, 17484, 15514, 1330, 1380, 17484, 15514, 198, 6738, 1380, 17484, 1828, 13, 42367, 1330, 1635, 198, 6738, 1380, 17484, 1828, 13, 29239, 9487, 1330, 11102, 9487, 1...
3.255952
168
# coding=utf-8 from __future__ import absolute_import, division, print_function, unicode_literals from contextlib import contextmanager import celery import pytest from celery.signals import setup_logging import scout_apm.celery from scout_apm.api import Config # http://docs.celeryproject.org/en/latest/userguide/te...
[ 2, 19617, 28, 40477, 12, 23, 198, 6738, 11593, 37443, 834, 1330, 4112, 62, 11748, 11, 7297, 11, 3601, 62, 8818, 11, 28000, 1098, 62, 17201, 874, 198, 198, 6738, 4732, 8019, 1330, 4732, 37153, 198, 198, 11748, 18725, 1924, 198, 11748, ...
2.873106
528
# encoding: utf-8 import datetime from south.db import db from south.v2 import SchemaMigration from django.db import models
[ 2, 21004, 25, 3384, 69, 12, 23, 198, 11748, 4818, 8079, 198, 6738, 5366, 13, 9945, 1330, 20613, 198, 6738, 5366, 13, 85, 17, 1330, 10011, 2611, 44, 4254, 198, 6738, 42625, 14208, 13, 9945, 1330, 4981, 198 ]
3.263158
38
# coding=utf-8 # *** WARNING: this file was generated by the Pulumi SDK Generator. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** import warnings import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union, overload from ... import _utilities fro...
[ 2, 19617, 28, 40477, 12, 23, 198, 2, 17202, 39410, 25, 428, 2393, 373, 7560, 416, 262, 21624, 12994, 26144, 35986, 13, 17202, 198, 2, 17202, 2141, 407, 4370, 416, 1021, 4556, 345, 821, 1728, 345, 760, 644, 345, 389, 1804, 0, 17202, ...
2.527098
1,144
#=========================================================================== # # Crystalfontz Raspberry-Pi Python example library for FTDI / BridgeTek # EVE graphic accelerators. # #--------------------------------------------------------------------------- # # This file is part of the port/adaptation of existin...
[ 2, 23926, 2559, 18604, 201, 198, 2, 201, 198, 2, 8152, 301, 1604, 756, 89, 24244, 12, 38729, 11361, 1672, 5888, 329, 19446, 17931, 1220, 10290, 51, 988, 201, 198, 2, 32356, 13028, 8320, 2024, 13, 201, 198, 2, 201, 198, 2, 10097, 3...
3.295368
1,317
import itertools import signal from copy import deepcopy from typing import Union, Callable import numpy as np import quapy as qp from quapy.data.base import LabelledCollection from quapy.evaluation import artificial_prevalence_prediction, natural_prevalence_prediction, gen_prevalence_prediction from quapy.method.agg...
[ 11748, 340, 861, 10141, 198, 11748, 6737, 198, 6738, 4866, 1330, 2769, 30073, 198, 6738, 19720, 1330, 4479, 11, 4889, 540, 198, 198, 11748, 299, 32152, 355, 45941, 198, 198, 11748, 627, 12826, 355, 10662, 79, 198, 6738, 627, 12826, 13, ...
3.63964
111
# -*- coding: utf-8 -*- import os from flask_migrate import Migrate from app import create_app, db from app.models import User, Role, PoseToLocation app = create_app(os.getenv('FLASK_CONFIG') or 'default') migrate = Migrate(app, db) # migrate #
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 198, 11748, 28686, 198, 6738, 42903, 62, 76, 42175, 1330, 337, 42175, 198, 6738, 598, 1330, 2251, 62, 1324, 11, 20613, 198, 6738, 598, 13, 27530, 1330, 11787, 11, 20934,...
2.694737
95
INPUT_FILE = "../../input/09.txt" Point = tuple[int, int] Heightmap = dict[Point, int] Basin = set[Point] def parse_input() -> Heightmap: """ Parses the input and returns a Heightmap """ with open(INPUT_FILE) as f: heights = [[int(x) for x in line.strip()] for line in f] heightmap: Heigh...
[ 1268, 30076, 62, 25664, 796, 366, 40720, 40720, 15414, 14, 2931, 13, 14116, 1, 198, 198, 12727, 796, 46545, 58, 600, 11, 493, 60, 198, 23106, 8899, 796, 8633, 58, 12727, 11, 493, 60, 198, 15522, 259, 796, 900, 58, 12727, 60, 628, ...
2.472585
1,149
#!/usr/bin/env python3 import signal import logging import sys from gi.repository import GObject GObject.threads_init() import time from lib.args import Args from lib.loghandler import LogHandler import lib.connection as Connection if __name__ == '__main__': main()
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 18, 198, 198, 11748, 6737, 198, 11748, 18931, 198, 11748, 25064, 628, 198, 198, 6738, 308, 72, 13, 260, 1930, 37765, 1330, 402, 10267, 198, 198, 38, 10267, 13, 16663, 82, 62, 15003, 3419, ...
3.054945
91
import warnings from typing import Any, Callable, Optional, Tuple from tensorboard.backend.event_processing import event_accumulator from torch.utils.tensorboard import SummaryWriter from tianshou.utils.logger.base import LOG_DATA_TYPE, BaseLogger
[ 11748, 14601, 198, 6738, 19720, 1330, 4377, 11, 4889, 540, 11, 32233, 11, 309, 29291, 198, 198, 6738, 11192, 273, 3526, 13, 1891, 437, 13, 15596, 62, 36948, 1330, 1785, 62, 4134, 388, 8927, 198, 6738, 28034, 13, 26791, 13, 83, 22854, ...
3.549296
71
# Jetfuel Game Engine- A SDL-based 2D game-engine # Copyright (C) 2018 InfernoStudios # # 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...
[ 2, 220, 220, 220, 220, 19013, 25802, 3776, 7117, 12, 317, 45417, 12, 3106, 362, 35, 983, 12, 18392, 198, 2, 220, 220, 220, 220, 15069, 357, 34, 8, 2864, 32458, 13007, 4267, 198, 2, 198, 2, 49962, 739, 262, 24843, 13789, 11, 10628,...
3.52
250
# coding=utf-8 # Copyright 2021 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, 33448, 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, ...
2.607034
5,914
import matplotlib.pyplot as plt import numpy as np import pandas as pd import click import numba # def get_value_func(x_mesh, y_mesh, z_mesh, value_mesh): # value_func = RegularGridInterpolator( # (x_mesh, y_mesh, z_mesh), value_mesh, method="nearest") # return value_func def generate_vertical...
[ 11748, 2603, 29487, 8019, 13, 9078, 29487, 355, 458, 83, 198, 11748, 299, 32152, 355, 45941, 198, 11748, 19798, 292, 355, 279, 67, 198, 11748, 3904, 198, 11748, 997, 7012, 628, 628, 628, 198, 198, 2, 825, 651, 62, 8367, 62, 20786, 7...
2.187943
282
from flask import Flask from flask_appconfig import HerokuConfig
[ 6738, 42903, 1330, 46947, 198, 6738, 42903, 62, 1324, 11250, 1330, 2332, 11601, 16934, 628, 198 ]
4.1875
16
import logging """ Formatter """ formatter = logging.Formatter('%(asctime)s - %(name)s - %(levelname)s - %(message)s', datefmt='%Y-%m-%d:%H:%M:%S') """ Set Flask logger """ logger = logging.getLogger('FLASK_LOG') logger.setLevel(logging.DEBUG) stream_log = logging.StreamHandler() stream_log.setFormatter(form...
[ 11748, 18931, 198, 198, 37811, 198, 220, 220, 220, 5178, 1436, 198, 37811, 198, 687, 1436, 796, 18931, 13, 8479, 1436, 10786, 4, 7, 292, 310, 524, 8, 82, 532, 4064, 7, 3672, 8, 82, 532, 4064, 7, 5715, 3672, 8, 82, 532, 4064, 7, ...
2.522293
157
#!/usr/bin/python3 import os import sys import socket CURRENT_DIR = os.path.dirname(__file__) NEWSBLUR_DIR = ''.join([CURRENT_DIR, '/../../']) sys.path.insert(0, NEWSBLUR_DIR) os.environ['DJANGO_SETTINGS_MODULE'] = 'newsblur_web.settings' import threading import time import boto3 from django.conf import settings BA...
[ 2, 48443, 14629, 14, 8800, 14, 29412, 18, 198, 11748, 28686, 198, 11748, 25064, 198, 11748, 17802, 198, 34, 39237, 62, 34720, 220, 796, 28686, 13, 6978, 13, 15908, 3672, 7, 834, 7753, 834, 8, 198, 49597, 9148, 4261, 62, 34720, 796, ...
2.404199
381
#!/usr/bin/python # # This program and the accompanying materials # are made available under the terms of the Apache License, Version 2.0 # which accompanies this distribution, and is available at # # http://www.apache.org/licenses/LICENSE-2.0 # # pylint: disable=missing-docstring # pylint: disable=duplicate-c...
[ 2, 48443, 14629, 14, 8800, 14, 29412, 201, 198, 2, 201, 198, 2, 770, 1430, 290, 262, 19249, 5696, 201, 198, 2, 389, 925, 1695, 739, 262, 2846, 286, 262, 24843, 13789, 11, 10628, 362, 13, 15, 201, 198, 2, 543, 48159, 428, 6082, 1...
2.865801
231
#!/usr/bin/python # -*- coding: utf-8 -*- __author__ = "Ricardo Ribeiro" __credits__ = ["Ricardo Ribeiro"] __license__ = "MIT" __version__ = "0.0" __maintainer__ = "Ricardo Ribeiro" __email__ = "ricardojvr@gmail.com" __status__ = "Development" from __init__ import * import random, time f...
[ 2, 48443, 14629, 14, 8800, 14, 29412, 198, 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 198, 834, 9800, 834, 220, 220, 220, 220, 220, 796, 366, 49, 291, 13109, 23133, 68, 7058, 1, 198, 834, 66, 20696, 834, 220,...
3.720379
211
from typing import Tuple import numpy as np import rasterio.warp from opensfm import features from .orthophoto_manager import OrthoPhotoManager from .view import View
[ 6738, 19720, 1330, 309, 29291, 198, 198, 11748, 299, 32152, 355, 45941, 198, 11748, 374, 1603, 952, 13, 86, 5117, 198, 6738, 9808, 38353, 1330, 3033, 198, 198, 6738, 764, 1506, 2522, 2069, 62, 37153, 1330, 47664, 78, 6191, 13511, 198, ...
3.617021
47
# Copyright 2015 NEC Corporation. All rights reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required ...
[ 2, 15069, 1853, 41804, 10501, 13, 220, 1439, 2489, 10395, 13, 198, 2, 198, 2, 220, 220, 220, 49962, 739, 262, 24843, 13789, 11, 10628, 362, 13, 15, 357, 1169, 366, 34156, 15341, 345, 743, 198, 2, 220, 220, 220, 407, 779, 428, 2393...
3.471861
231
# uncompyle6 version 3.2.0 # Python bytecode 2.4 (62061) # Decompiled from: Python 2.7.14 (v2.7.14:84471935ed, Sep 16 2017, 20:19:30) [MSC v.1500 32 bit (Intel)] # Embedded file name: pirates.leveleditor.worldData.interior_spanish_npc_b from pandac.PandaModules import Point3, VBase3, Vec4, Vec3 objectStruct = {'Objects...
[ 2, 34318, 2349, 21, 2196, 513, 13, 17, 13, 15, 198, 2, 11361, 18022, 8189, 362, 13, 19, 357, 38850, 5333, 8, 198, 2, 4280, 3361, 3902, 422, 25, 11361, 362, 13, 22, 13, 1415, 357, 85, 17, 13, 22, 13, 1415, 25, 23, 34825, 1129, ...
2.119957
13,905
# PassGen # These imports will be used for this project. from colorama import Fore, Style from colorama import init import datetime import string import random import sys import os # Initilaze File organizer. os.system('title PassGen') init(autoreset = True) # Create Log Functions. # This will Genera...
[ 2, 6251, 13746, 201, 198, 2, 2312, 17944, 481, 307, 973, 329, 428, 1628, 13, 201, 198, 6738, 3124, 1689, 1330, 4558, 11, 17738, 201, 198, 6738, 3124, 1689, 1330, 2315, 201, 198, 11748, 4818, 8079, 201, 198, 11748, 4731, 201, 198, 11...
2.805621
427
""" The model file for a Memo """ import re import os import shutil import json from datetime import datetime from flask import current_app from memos import db from memos.models.User import User from memos.models.MemoState import MemoState from memos.models.MemoFile import MemoFile from memos.models.MemoSignature i...
[ 37811, 198, 464, 2746, 2393, 329, 257, 4942, 78, 198, 198, 37811, 198, 11748, 302, 198, 11748, 28686, 198, 11748, 4423, 346, 198, 11748, 33918, 198, 6738, 4818, 8079, 1330, 4818, 8079, 198, 198, 6738, 42903, 1330, 1459, 62, 1324, 198, ...
3.503226
155
"""Common ETL test fixtures""" import json import pytest
[ 37811, 17227, 12152, 43, 1332, 34609, 37811, 198, 11748, 33918, 198, 198, 11748, 12972, 9288, 628, 628, 198 ]
3.444444
18
import numpy as np import matplotlib.pyplot as plt import matplotlib.cm as cm import random def julia(**kwargs): """ temp """ # Initialize Julia Set instance juliaInstance = JuliaSet() # If kwargs not empty update the attributes if kwargs is not None: juliaInstance.param(**kwargs) ...
[ 11748, 299, 32152, 355, 45941, 198, 11748, 2603, 29487, 8019, 13, 9078, 29487, 355, 458, 83, 198, 11748, 2603, 29487, 8019, 13, 11215, 355, 12067, 198, 11748, 4738, 198, 198, 4299, 474, 43640, 7, 1174, 46265, 22046, 2599, 198, 220, 220,...
2.632432
185
#!python3 # eye_detection.py - detect eyes using webcam # tutorial: https://www.roytuts.com/real-time-eye-detection-in-webcam-using-python-3/ import cv2 import math import numpy as np if __name__ == "__main__": main()
[ 2, 0, 29412, 18, 198, 2, 4151, 62, 15255, 3213, 13, 9078, 532, 4886, 2951, 1262, 49823, 198, 2, 11808, 25, 3740, 1378, 2503, 13, 3287, 83, 5500, 13, 785, 14, 5305, 12, 2435, 12, 25379, 12, 15255, 3213, 12, 259, 12, 12384, 20991, ...
2.627907
86
#!/usr/bin/env python descripts = {} with open('macaca_genes.txt') as fh: fh.readline() for line in fh: cols = line.strip('\n').split('\t') if cols[1]: descripts[cols[0]] = cols[1].split('[')[0].strip() else: descripts[cols[0]] = cols[1] with open('gene_info.txt') as fh: for line in fh: cols = line....
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 198, 198, 20147, 1968, 82, 796, 23884, 198, 4480, 1280, 10786, 20285, 22260, 62, 5235, 274, 13, 14116, 11537, 355, 277, 71, 25, 198, 197, 69, 71, 13, 961, 1370, 3419, 198, 197, 1640, 1627...
2.035714
196
import gin from scaper import Scaper, generate_from_jams import copy import logging import p_tqdm import nussl import os import numpy as np def make_one_mixture(sc, path_to_file, num_sources, event_parameters, allow_repeated_label): """ Creates a single mixture, incoherent. Instantiates a...
[ 11748, 39733, 198, 6738, 629, 2136, 1330, 1446, 2136, 11, 7716, 62, 6738, 62, 73, 4105, 198, 11748, 4866, 198, 11748, 18931, 198, 11748, 279, 62, 83, 80, 36020, 198, 11748, 299, 1046, 75, 198, 11748, 28686, 198, 11748, 299, 32152, 355...
2.164021
378
import json
[ 11748, 33918 ]
5.5
2
import numpy as np from keras import backend as K import os import sys K.set_image_dim_ordering('tf') if __name__ == '__main__': main()
[ 11748, 299, 32152, 355, 45941, 198, 6738, 41927, 292, 1330, 30203, 355, 509, 198, 11748, 28686, 198, 11748, 25064, 198, 198, 42, 13, 2617, 62, 9060, 62, 27740, 62, 34555, 10786, 27110, 11537, 628, 628, 198, 361, 11593, 3672, 834, 6624, ...
2.769231
52
from django.conf import settings
[ 6738, 42625, 14208, 13, 10414, 1330, 6460, 628 ]
4.25
8
# -*- coding: utf-8 -*- from scipy import stats import numpy as np import warnings from ...compat import check_is_fitted, pmdarima as pm_compat from .base import BaseEndogTransformer __all__ = ['BoxCoxEndogTransformer']
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 198, 6738, 629, 541, 88, 1330, 9756, 198, 198, 11748, 299, 32152, 355, 45941, 198, 11748, 14601, 198, 198, 6738, 2644, 5589, 265, 1330, 2198, 62, 271, 62, 38631, 11, 9...
2.884615
78
from baserow.core.registry import Instance, Registry user_data_registry = UserDataRegistry()
[ 6738, 1615, 263, 322, 13, 7295, 13, 2301, 4592, 1330, 2262, 590, 11, 33432, 628, 628, 198, 7220, 62, 7890, 62, 2301, 4592, 796, 11787, 6601, 8081, 4592, 3419, 198 ]
3.233333
30
''' ------------------------------------- Assignment 2 - EE2703 (Jan-May 2020) Done by Akilesh Kannan (EE18B122) Created on 18/01/20 Last Modified on 04/02/20 ------------------------------------- ''' # importing necessary libraries import sys import cmath import numpy as np import pandas as pd # To improve reada...
[ 7061, 6, 198, 3880, 30934, 198, 50144, 362, 532, 27254, 1983, 3070, 357, 12128, 12, 6747, 12131, 8, 198, 24429, 416, 9084, 2915, 71, 509, 1236, 272, 357, 6500, 1507, 33, 18376, 8, 198, 15622, 319, 1248, 14, 486, 14, 1238, 198, 4586,...
1.811783
8,368
import subprocess import os.path """ Stylish input() """ """ Execute command locally """ """ Get all subdirectories of a directory. """ """ Rocket science """
[ 11748, 850, 14681, 198, 11748, 28686, 13, 6978, 628, 198, 37811, 198, 18716, 1836, 5128, 3419, 198, 37811, 628, 198, 37811, 198, 23002, 1133, 3141, 15726, 198, 37811, 198, 198, 37811, 198, 3855, 477, 850, 12942, 1749, 286, 257, 8619, 13...
3.192308
52
import numpy as np import matplotlib.pyplot as plt from skimage.exposure import rescale_intensity from unsharp import * # Load file and normalize to 0-1 fname = 'iguana.jpg' im = plt.imread(fname) if im.mean() >= 1: im = im/255. sigma = 5 amplitude = 1.5 imsharp = unsharp_mask(im, sigma, amplitude) imsharp = re...
[ 11748, 299, 32152, 355, 45941, 220, 198, 11748, 2603, 29487, 8019, 13, 9078, 29487, 355, 458, 83, 198, 6738, 1341, 9060, 13, 1069, 26205, 1330, 6811, 1000, 62, 47799, 198, 198, 6738, 555, 48554, 1330, 1635, 198, 198, 2, 8778, 2393, 29...
2.464088
181