hexsha stringlengths 40 40 | size int64 5 2.06M | ext stringclasses 11
values | lang stringclasses 1
value | max_stars_repo_path stringlengths 3 251 | max_stars_repo_name stringlengths 4 130 | max_stars_repo_head_hexsha stringlengths 40 78 | max_stars_repo_licenses listlengths 1 10 | max_stars_count int64 1 191k ⌀ | max_stars_repo_stars_event_min_datetime stringlengths 24 24 ⌀ | max_stars_repo_stars_event_max_datetime stringlengths 24 24 ⌀ | max_issues_repo_path stringlengths 3 251 | max_issues_repo_name stringlengths 4 130 | max_issues_repo_head_hexsha stringlengths 40 78 | max_issues_repo_licenses listlengths 1 10 | max_issues_count int64 1 116k ⌀ | max_issues_repo_issues_event_min_datetime stringlengths 24 24 ⌀ | max_issues_repo_issues_event_max_datetime stringlengths 24 24 ⌀ | max_forks_repo_path stringlengths 3 251 | max_forks_repo_name stringlengths 4 130 | max_forks_repo_head_hexsha stringlengths 40 78 | max_forks_repo_licenses listlengths 1 10 | max_forks_count int64 1 105k ⌀ | max_forks_repo_forks_event_min_datetime stringlengths 24 24 ⌀ | max_forks_repo_forks_event_max_datetime stringlengths 24 24 ⌀ | content stringlengths 1 1.05M | avg_line_length float64 1 1.02M | max_line_length int64 3 1.04M | alphanum_fraction float64 0 1 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
86bcd2890d4f11513d628469a8efe8d1af2d7195 | 65 | py | Python | src/cicd_sim/artifact/__init__.py | Software-Natives-OSS/cicd_sim | 19452a5b06a6c6d99322c9b6777c501025e954f1 | [
"MIT"
] | null | null | null | src/cicd_sim/artifact/__init__.py | Software-Natives-OSS/cicd_sim | 19452a5b06a6c6d99322c9b6777c501025e954f1 | [
"MIT"
] | 8 | 2020-03-12T05:51:56.000Z | 2020-03-15T17:31:12.000Z | src/cicd_sim/artifact/__init__.py | Software-Natives-OSS/cicd_sim | 19452a5b06a6c6d99322c9b6777c501025e954f1 | [
"MIT"
] | null | null | null | from . artifactory import Artifactory
__all__ = ['Artifactory']
| 16.25 | 37 | 0.769231 |
86bd70e7874de4b570ed32325f28d65eaa058486 | 4,544 | py | Python | mandoline/line_segment3d.py | Spiritdude/mandoline-py | 702cd1f9264c7d5d814600ff919406387fd86185 | [
"BSD-2-Clause"
] | 5 | 2021-09-16T10:41:44.000Z | 2021-11-04T14:45:24.000Z | mandoline/line_segment3d.py | Spiritdude/mandoline-py | 702cd1f9264c7d5d814600ff919406387fd86185 | [
"BSD-2-Clause"
] | null | null | null | mandoline/line_segment3d.py | Spiritdude/mandoline-py | 702cd1f9264c7d5d814600ff919406387fd86185 | [
"BSD-2-Clause"
] | null | null | null |
# vim: expandtab tabstop=4 shiftwidth=4 softtabstop=4 nowrap
| 28.223602 | 79 | 0.53015 |
86bd7ed417f64120a297b91ba487086bf72ccb3f | 2,328 | py | Python | cacheable/adapter/PeeweeAdapter.py | d1hotpep/cacheable | 9ea97d6504965179f8fe495b67e466c068719445 | [
"MIT"
] | null | null | null | cacheable/adapter/PeeweeAdapter.py | d1hotpep/cacheable | 9ea97d6504965179f8fe495b67e466c068719445 | [
"MIT"
] | null | null | null | cacheable/adapter/PeeweeAdapter.py | d1hotpep/cacheable | 9ea97d6504965179f8fe495b67e466c068719445 | [
"MIT"
] | null | null | null | import peewee
import playhouse.kv
from time import time
from . import CacheableAdapter
| 24.25 | 72 | 0.537371 |
86bf8dc5885e11ca632362fcec2e79f7e5e74050 | 6,006 | py | Python | mmgen/models/architectures/arcface/helpers.py | plutoyuxie/mmgeneration | 0a7f5d16c970de1766ebf049d7a0264fe506504b | [
"Apache-2.0"
] | null | null | null | mmgen/models/architectures/arcface/helpers.py | plutoyuxie/mmgeneration | 0a7f5d16c970de1766ebf049d7a0264fe506504b | [
"Apache-2.0"
] | null | null | null | mmgen/models/architectures/arcface/helpers.py | plutoyuxie/mmgeneration | 0a7f5d16c970de1766ebf049d7a0264fe506504b | [
"Apache-2.0"
] | null | null | null | 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
"""
# ... | 30.180905 | 106 | 0.585914 |
86bfaf5a13f46371cddc52c365f2b99eb199e27e | 1,694 | py | Python | createplaylist.py | mahi0601/SpotifyPlaylist | 55e30bb4c13f291693b892d6eeccc70b4a769805 | [
"MIT"
] | 47 | 2020-09-21T11:35:10.000Z | 2022-01-17T21:25:39.000Z | createplaylist.py | mahi0601/SpotifyPlaylist | 55e30bb4c13f291693b892d6eeccc70b4a769805 | [
"MIT"
] | 2 | 2021-03-31T17:02:24.000Z | 2021-07-30T08:17:37.000Z | createplaylist.py | mahi0601/SpotifyPlaylist | 55e30bb4c13f291693b892d6eeccc70b4a769805 | [
"MIT"
] | 24 | 2020-09-21T16:45:38.000Z | 2022-03-02T10:50:47.000Z | import os
from spotifyclient import SpotifyClient
if __name__ == "__main__":
main() | 42.35 | 118 | 0.725502 |
86c0f5e44bffc70a506881987c3f56e4e3ef7cdd | 30,797 | py | Python | tests/contrib/flask/test_request.py | thieman/dd-trace-py | 1e87c9bdf7769032982349c4ccc0e1c2e6866a16 | [
"Apache-2.0",
"BSD-3-Clause"
] | null | null | null | tests/contrib/flask/test_request.py | thieman/dd-trace-py | 1e87c9bdf7769032982349c4ccc0e1c2e6866a16 | [
"Apache-2.0",
"BSD-3-Clause"
] | null | null | null | tests/contrib/flask/test_request.py | thieman/dd-trace-py | 1e87c9bdf7769032982349c4ccc0e1c2e6866a16 | [
"Apache-2.0",
"BSD-3-Clause"
] | 1 | 2021-02-11T10:20:14.000Z | 2021-02-11T10:20:14.000Z | # -*- 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... | 39.892487 | 117 | 0.618437 |
86c23c7616ed380cf3c80ae082afe689a1c8e0b9 | 7,318 | py | Python | ConvDR/data/preprocess_cast19.py | blazejdolicki/CHEDAR | e4819775e7f6ffa2d6f1ad798ee262f01370b236 | [
"MIT"
] | 1 | 2021-11-10T13:39:16.000Z | 2021-11-10T13:39:16.000Z | ConvDR/data/preprocess_cast19.py | blazejdolicki/CHEDAR | e4819775e7f6ffa2d6f1ad798ee262f01370b236 | [
"MIT"
] | null | null | null | ConvDR/data/preprocess_cast19.py | blazejdolicki/CHEDAR | e4819775e7f6ffa2d6f1ad798ee262f01370b236 | [
"MIT"
] | null | null | null | 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 = {}
... | 39.556757 | 104 | 0.562859 |
86c253258ad8f50c39a576db2e17ac13da5ea1c7 | 15,207 | py | Python | coord_convert/geojson_utils.py | brandonxiang/example-pyQGIS | a61d0321d223d0b82e44bb809521965858fde857 | [
"MIT"
] | 3 | 2017-02-23T08:35:30.000Z | 2018-12-11T05:50:54.000Z | coord_convert/geojson_utils.py | brandonxiang/example-pyQGIS | a61d0321d223d0b82e44bb809521965858fde857 | [
"MIT"
] | null | null | null | coord_convert/geojson_utils.py | brandonxiang/example-pyQGIS | a61d0321d223d0b82e44bb809521965858fde857 | [
"MIT"
] | 2 | 2019-10-22T02:16:50.000Z | 2020-09-28T11:37:48.000Z | __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:... | 31.290123 | 125 | 0.572105 |
86c29a98e5b655839d8db00b70a6a8da9b1ef8d8 | 388 | py | Python | config.py | Rinku92/Mini_Project3 | eab11ce3743fddda2ccc158367a37d4522ba1e39 | [
"MIT"
] | null | null | null | config.py | Rinku92/Mini_Project3 | eab11ce3743fddda2ccc158367a37d4522ba1e39 | [
"MIT"
] | null | null | null | config.py | Rinku92/Mini_Project3 | eab11ce3743fddda2ccc158367a37d4522ba1e39 | [
"MIT"
] | null | null | null | 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 =... | 24.25 | 93 | 0.716495 |
86c368ef733994c7aa8778c60fbe8e4bdf94dac9 | 347 | py | Python | 10_days_of_statistics_8_1.py | sercangul/HackerRank | e6d7056babe03baafee8d7f1cacdca7c28b72ded | [
"Apache-2.0"
] | null | null | null | 10_days_of_statistics_8_1.py | sercangul/HackerRank | e6d7056babe03baafee8d7f1cacdca7c28b72ded | [
"Apache-2.0"
] | null | null | null | 10_days_of_statistics_8_1.py | sercangul/HackerRank | e6d7056babe03baafee8d7f1cacdca7c28b72ded | [
"Apache-2.0"
] | null | null | null | #!/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('... | 24.785714 | 71 | 0.501441 |
86c4016c71680c25695f7a5d4e332b95ab4759b0 | 450 | py | Python | rlutils/gym/envs/reset_obs/hopper.py | vermouth1992/rl-util | 4c06ab8f5c96a44e58f88cf30146bcb837057112 | [
"Apache-2.0"
] | null | null | null | rlutils/gym/envs/reset_obs/hopper.py | vermouth1992/rl-util | 4c06ab8f5c96a44e58f88cf30146bcb837057112 | [
"Apache-2.0"
] | null | null | null | rlutils/gym/envs/reset_obs/hopper.py | vermouth1992/rl-util | 4c06ab8f5c96a44e58f88cf30146bcb837057112 | [
"Apache-2.0"
] | null | null | null | import gym.envs.mujoco.hopper as hopper
import numpy as np
| 25 | 40 | 0.591111 |
86c445a03cb1fedcfaa9af4175640a3d81afd9b9 | 8,505 | py | Python | reco_utils/recommender/deeprec/io/iterator.py | yutian-zhao/recommenders | 17b9c1280a79019dd91f50b3a7e66f25cb5004b1 | [
"MIT"
] | null | null | null | reco_utils/recommender/deeprec/io/iterator.py | yutian-zhao/recommenders | 17b9c1280a79019dd91f50b3a7e66f25cb5004b1 | [
"MIT"
] | null | null | null | reco_utils/recommender/deeprec/io/iterator.py | yutian-zhao/recommenders | 17b9c1280a79019dd91f50b3a7e66f25cb5004b1 | [
"MIT"
] | null | null | null | # 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... | 38.310811 | 112 | 0.55485 |
86c692ea321aa5d6632c79b6a92f458cad0e5a70 | 2,723 | py | Python | ncm/api.py | SDhuangao/netease-cloud-music-dl | 4a970504e1fec0a9848f3920b392aa507d6b3879 | [
"MIT"
] | null | null | null | ncm/api.py | SDhuangao/netease-cloud-music-dl | 4a970504e1fec0a9848f3920b392aa507d6b3879 | [
"MIT"
] | null | null | null | ncm/api.py | SDhuangao/netease-cloud-music-dl | 4a970504e1fec0a9848f3920b392aa507d6b3879 | [
"MIT"
] | null | null | null | # -*- 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... | 27.505051 | 84 | 0.589791 |
86c7301877ec46ff5d214d67d7d24373229e91aa | 15,337 | py | Python | book/trees/binary_search_tree.py | Web-Dev-Collaborative/algos | d280581d74ded382094283d931a202eb55fd8369 | [
"CC0-1.0"
] | 153 | 2015-12-24T00:32:23.000Z | 2022-02-24T06:00:29.000Z | book/trees/binary_search_tree.py | Web-Dev-Collaborative/algos | d280581d74ded382094283d931a202eb55fd8369 | [
"CC0-1.0"
] | 78 | 2015-11-17T11:46:15.000Z | 2021-06-28T18:37:58.000Z | book/trees/binary_search_tree.py | rhivent/algo-books-python | c4fa29616ca9a8a15ba40fa12d21fd8f35096d40 | [
"CC0-1.0"
] | 66 | 2015-11-02T03:38:02.000Z | 2022-03-05T17:36:26.000Z | # -*- 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... | 37.775862 | 78 | 0.684684 |
86c7d4acbb62e0447380b9c4c68ef07bbf5ead1b | 28,677 | py | Python | fire/core.py | adamruth/python-fire | 6912ccd56f50e0f4bb30a0725d95858ef29f3bde | [
"Apache-2.0"
] | 1 | 2020-02-05T04:43:03.000Z | 2020-02-05T04:43:03.000Z | fire/core.py | chesnjak/python-fire | 72604f40314008e562ba47936dcc183b51166b72 | [
"Apache-2.0"
] | null | null | null | fire/core.py | chesnjak/python-fire | 72604f40314008e562ba47936dcc183b51166b72 | [
"Apache-2.0"
] | 1 | 2020-07-15T22:58:25.000Z | 2020-07-15T22:58:25.000Z | # 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, ... | 36.577806 | 80 | 0.706873 |
86c845d512d008bf07b10c93c9a059cfaa7474a0 | 1,668 | py | Python | app.py | AmirValeev/auto-ml-classifier | e803fe92d1ec71e87509845ea61ecc46b363bae6 | [
"Apache-2.0"
] | null | null | null | app.py | AmirValeev/auto-ml-classifier | e803fe92d1ec71e87509845ea61ecc46b363bae6 | [
"Apache-2.0"
] | null | null | null | app.py | AmirValeev/auto-ml-classifier | e803fe92d1ec71e87509845ea61ecc46b363bae6 | [
"Apache-2.0"
] | null | null | null | 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()
| 33.36 | 126 | 0.668465 |
86c8b4810cb292d6be03cbb1ee7d68143bb6929f | 512 | py | Python | util/headers.py | giuseppe/quay | a1b7e4b51974edfe86f66788621011eef2667e6a | [
"Apache-2.0"
] | 2,027 | 2019-11-12T18:05:48.000Z | 2022-03-31T22:25:04.000Z | util/headers.py | giuseppe/quay | a1b7e4b51974edfe86f66788621011eef2667e6a | [
"Apache-2.0"
] | 496 | 2019-11-12T18:13:37.000Z | 2022-03-31T10:43:45.000Z | util/headers.py | giuseppe/quay | a1b7e4b51974edfe86f66788621011eef2667e6a | [
"Apache-2.0"
] | 249 | 2019-11-12T18:02:27.000Z | 2022-03-22T12:19:19.000Z | 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:
... | 21.333333 | 83 | 0.599609 |
86c9f566a6eb8b7449c2eceeae4f2a4b402b56f5 | 3,115 | py | Python | indico/core/signals/event/core.py | tobiashuste/indico | c1e6ec0c8c84745988e38c9b1768142a6feb9e0e | [
"MIT"
] | null | null | null | indico/core/signals/event/core.py | tobiashuste/indico | c1e6ec0c8c84745988e38c9b1768142a6feb9e0e | [
"MIT"
] | null | null | null | indico/core/signals/event/core.py | tobiashuste/indico | c1e6ec0c8c84745988e38c9b1768142a6feb9e0e | [
"MIT"
] | null | null | null | # 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... | 35.804598 | 81 | 0.741252 |
86ca3287dbcbbef744a382d06122c372e95e738d | 3,294 | py | Python | cinder/tests/unit/volume/drivers/emc/scaleio/test_delete_volume.py | aarunsai81/netapp | 8f0f7bf9be7f4d9fb9c3846bfc639c90a05f86ba | [
"Apache-2.0"
] | 11 | 2015-08-25T13:11:18.000Z | 2020-10-15T11:29:20.000Z | cinder/tests/unit/volume/drivers/emc/scaleio/test_delete_volume.py | aarunsai81/netapp | 8f0f7bf9be7f4d9fb9c3846bfc639c90a05f86ba | [
"Apache-2.0"
] | 5 | 2018-01-25T11:31:56.000Z | 2019-05-06T23:13:35.000Z | cinder/tests/unit/volume/drivers/emc/scaleio/test_delete_volume.py | aarunsai81/netapp | 8f0f7bf9be7f4d9fb9c3846bfc639c90a05f86ba | [
"Apache-2.0"
] | 11 | 2015-02-20T18:48:24.000Z | 2021-01-30T20:26:18.000Z | # 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... | 39.686747 | 78 | 0.610808 |
86ca3cb4e460e6fa964047e9d8e3d1c032b0dafb | 1,233 | py | Python | example-package/transportation_tutorials/__init__.py | chrisc20042001/python-for-transportation-modeling | 677129daa390fcaa6e5cde45960e27d9bd6ca4bf | [
"BSD-3-Clause"
] | null | null | null | example-package/transportation_tutorials/__init__.py | chrisc20042001/python-for-transportation-modeling | 677129daa390fcaa6e5cde45960e27d9bd6ca4bf | [
"BSD-3-Clause"
] | null | null | null | example-package/transportation_tutorials/__init__.py | chrisc20042001/python-for-transportation-modeling | 677129daa390fcaa6e5cde45960e27d9bd6ca4bf | [
"BSD-3-Clause"
] | null | null | null | # -*- 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 ... | 20.55 | 79 | 0.721006 |
86ca8c2e422d5ab12a80680e14af6535e5befd05 | 2,146 | py | Python | common/common.py | czajowaty/curry-bot | 91bfbd884342a02c6defd057d27d5b1fcd78cb21 | [
"MIT"
] | 3 | 2019-10-09T23:17:55.000Z | 2022-02-01T17:34:27.000Z | common/common.py | czajowaty/curry-bot | 91bfbd884342a02c6defd057d27d5b1fcd78cb21 | [
"MIT"
] | 19 | 2019-10-09T20:42:05.000Z | 2022-02-01T08:22:25.000Z | common/common.py | czajowaty/curry-bot | 91bfbd884342a02c6defd057d27d5b1fcd78cb21 | [
"MIT"
] | 6 | 2020-08-09T20:17:13.000Z | 2022-01-27T23:59:28.000Z | from requests.models import PreparedRequest
| 32.029851 | 152 | 0.56384 |
86cbceec04afe24550cbee582258380f822dc77d | 5,265 | py | Python | hendrix/test/test_ux.py | anthonyalmarza/hendrix | eebd2a2183cc18ec2267d96a53a70d41b1630ce6 | [
"MIT"
] | null | null | null | hendrix/test/test_ux.py | anthonyalmarza/hendrix | eebd2a2183cc18ec2267d96a53a70d41b1630ce6 | [
"MIT"
] | null | null | null | hendrix/test/test_ux.py | anthonyalmarza/hendrix | eebd2a2183cc18ec2267d96a53a70d41b1630ce6 | [
"MIT"
] | null | null | null | 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
| 35.816327 | 77 | 0.637607 |
86cc1ac4bd0be7cfc736232b574de4d27f85e0ca | 6,656 | py | Python | discord/types/interactions.py | Voxel-Fox-Ltd/Novus | 3e254115daf1c09455b26dc7819b73fbf5ee56e5 | [
"MIT"
] | 61 | 2021-08-30T05:30:31.000Z | 2022-03-24T11:24:38.000Z | discord/types/interactions.py | Voxel-Fox-Ltd/Novus | 3e254115daf1c09455b26dc7819b73fbf5ee56e5 | [
"MIT"
] | 30 | 2021-08-31T10:16:42.000Z | 2022-03-09T22:53:15.000Z | discord/types/interactions.py | Voxel-Fox-Ltd/Novus | 3e254115daf1c09455b26dc7819b73fbf5ee56e5 | [
"MIT"
] | 15 | 2021-09-02T09:40:58.000Z | 2022-02-25T12:19:02.000Z | """
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, ... | 27.618257 | 99 | 0.790415 |
86cc747c2e5f0caead634114a98e5f4a747d16ea | 15,163 | py | Python | local/local_sign.py | EVAyo/chaoxing_auto_sign | 7ae91a5e9aa4d15f57a5419ff3f5a455e151930a | [
"MIT"
] | null | null | null | local/local_sign.py | EVAyo/chaoxing_auto_sign | 7ae91a5e9aa4d15f57a5419ff3f5a455e151930a | [
"MIT"
] | null | null | null | local/local_sign.py | EVAyo/chaoxing_auto_sign | 7ae91a5e9aa4d15f57a5419ff3f5a455e151930a | [
"MIT"
] | null | null | null | # -*- 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... | 33.770601 | 149 | 0.485722 |
86ccfd65a1bb34c39113feed67502cda22587b34 | 4,240 | py | Python | build/scripts-3.6/fit_background_model.py | stahlberggroup/umierrorcorrect | 8ceabe30a87811dad467d04eb5a08d0213065946 | [
"MIT"
] | null | null | null | build/scripts-3.6/fit_background_model.py | stahlberggroup/umierrorcorrect | 8ceabe30a87811dad467d04eb5a08d0213065946 | [
"MIT"
] | null | null | null | build/scripts-3.6/fit_background_model.py | stahlberggroup/umierrorcorrect | 8ceabe30a87811dad467d04eb5a08d0213065946 | [
"MIT"
] | 1 | 2022-01-12T13:51:59.000Z | 2022-01-12T13:51:59.000Z | #!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... | 35.932203 | 154 | 0.566274 |
86cdf766574c9c743ff631f5d4070feb9f763d2a | 7,654 | py | Python | caffe2/python/operator_test/partition_ops_test.py | KevinKecc/caffe2 | a2b6c6e2f0686358a84277df65e9489fb7d9ddb2 | [
"Apache-2.0"
] | 585 | 2015-08-10T02:48:52.000Z | 2021-12-01T08:46:59.000Z | caffe2/python/operator_test/partition_ops_test.py | mingzhe09088/caffe2 | 8f41717c46d214aaf62b53e5b3b9b308b5b8db91 | [
"Apache-2.0"
] | 27 | 2018-04-14T06:44:22.000Z | 2018-08-01T18:02:39.000Z | caffe2/python/operator_test/partition_ops_test.py | mingzhe09088/caffe2 | 8f41717c46d214aaf62b53e5b3b9b308b5b8db91 | [
"Apache-2.0"
] | 183 | 2015-08-10T02:49:04.000Z | 2021-12-01T08:47:13.000Z | # 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... | 38.852792 | 80 | 0.468774 |
86ce2b47e96edc2e4a65e6684b182564c236c3d3 | 11,195 | py | Python | cisco-ios-xr/ydk/models/cisco_ios_xr/Cisco_IOS_XR_fib_common_cfg.py | Maikor/ydk-py | b86c4a7c570ae3b2c5557d098420446df5de4929 | [
"ECL-2.0",
"Apache-2.0"
] | null | null | null | cisco-ios-xr/ydk/models/cisco_ios_xr/Cisco_IOS_XR_fib_common_cfg.py | Maikor/ydk-py | b86c4a7c570ae3b2c5557d098420446df5de4929 | [
"ECL-2.0",
"Apache-2.0"
] | null | null | null | cisco-ios-xr/ydk/models/cisco_ios_xr/Cisco_IOS_XR_fib_common_cfg.py | Maikor/ydk-py | b86c4a7c570ae3b2c5557d098420446df5de4929 | [
"ECL-2.0",
"Apache-2.0"
] | null | null | null | """ 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 ... | 34.875389 | 184 | 0.609915 |
86ce2bcecdfa6edd6bc5db700d444829470b263a | 2,888 | py | Python | action/combo.py | dl-stuff/dl9 | 1cbe98afc53a1de9d413797fb130946acc4b6ba4 | [
"MIT"
] | null | null | null | action/combo.py | dl-stuff/dl9 | 1cbe98afc53a1de9d413797fb130946acc4b6ba4 | [
"MIT"
] | null | null | null | action/combo.py | dl-stuff/dl9 | 1cbe98afc53a1de9d413797fb130946acc4b6ba4 | [
"MIT"
] | null | null | null | """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... | 42.470588 | 138 | 0.649584 |
86ce3c0225876fe3453133a9a0965f8f30c17a84 | 5,447 | py | Python | flask_unchained/bundles/session/config.py | achiang/flask-unchained | 12788a6e618904a25ff2b571eb05ff1dc8f1840f | [
"MIT"
] | null | null | null | flask_unchained/bundles/session/config.py | achiang/flask-unchained | 12788a6e618904a25ff2b571eb05ff1dc8f1840f | [
"MIT"
] | null | null | null | flask_unchained/bundles/session/config.py | achiang/flask-unchained | 12788a6e618904a25ff2b571eb05ff1dc8f1840f | [
"MIT"
] | null | null | null | import os
from datetime import timedelta
from flask_unchained import BundleConfig
try:
from flask_unchained.bundles.sqlalchemy import db
except ImportError:
db = None
| 27.371859 | 111 | 0.668258 |
86ce9b178e942f833e8db993afdcf0aface18b4a | 3,845 | py | Python | sktime/forecasting/base/adapters/_statsmodels.py | tombh/sktime | 53df0b9ed9d1fd800539165c414cc5611bcc56b3 | [
"BSD-3-Clause"
] | 1 | 2020-06-02T22:24:44.000Z | 2020-06-02T22:24:44.000Z | sktime/forecasting/base/adapters/_statsmodels.py | abhishek-parashar/sktime | 1dfce6b41c2acdb576acfc04b09d11bf115c92d1 | [
"BSD-3-Clause"
] | 1 | 2020-11-20T13:51:20.000Z | 2020-11-20T13:51:20.000Z | sktime/forecasting/base/adapters/_statsmodels.py | abhishek-parashar/sktime | 1dfce6b41c2acdb576acfc04b09d11bf115c92d1 | [
"BSD-3-Clause"
] | 3 | 2020-10-18T04:54:30.000Z | 2021-02-15T18:04:18.000Z | #!/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... | 32.310924 | 79 | 0.628349 |
86cf3a0a9a0e45685f04435a33dcecfd088782c9 | 12,924 | py | Python | melodic/lib/python2.7/dist-packages/gazebo_msgs/srv/_GetLinkProperties.py | Dieptranivsr/Ros_Diep | d790e75e6f5da916701b11a2fdf3e03b6a47086b | [
"MIT"
] | null | null | null | melodic/lib/python2.7/dist-packages/gazebo_msgs/srv/_GetLinkProperties.py | Dieptranivsr/Ros_Diep | d790e75e6f5da916701b11a2fdf3e03b6a47086b | [
"MIT"
] | 1 | 2021-07-08T10:26:06.000Z | 2021-07-08T10:31:11.000Z | melodic/lib/python2.7/dist-packages/gazebo_msgs/srv/_GetLinkProperties.py | Dieptranivsr/Ros_Diep | d790e75e6f5da916701b11a2fdf3e03b6a47086b | [
"MIT"
] | null | null | null | # 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... | 37.031519 | 284 | 0.638502 |
86cfbb57e1ec13e6ae0711449af6c95612ae3139 | 2,268 | py | Python | jupytext/kernels.py | st--/jupytext | f8e8352859cc22e17b11154d0770fd946c4a430a | [
"MIT"
] | 5,378 | 2018-09-01T22:03:43.000Z | 2022-03-31T06:51:42.000Z | jupytext/kernels.py | st--/jupytext | f8e8352859cc22e17b11154d0770fd946c4a430a | [
"MIT"
] | 812 | 2018-08-31T08:26:13.000Z | 2022-03-30T18:12:11.000Z | jupytext/kernels.py | st--/jupytext | f8e8352859cc22e17b11154d0770fd946c4a430a | [
"MIT"
] | 380 | 2018-09-02T01:40:07.000Z | 2022-03-25T13:57:23.000Z | """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_... | 36 | 116 | 0.622575 |
86d025f02ce51457ef476e760c051f7660045f69 | 5,333 | py | Python | scipy/sparse/_matrix_io.py | dhruv9vats/scipy | 48e1dd7e604df3ae57d104b407c5b7a2a6a3247d | [
"BSD-3-Clause"
] | 1 | 2021-08-16T09:32:42.000Z | 2021-08-16T09:32:42.000Z | scipy/sparse/_matrix_io.py | dhruv9vats/scipy | 48e1dd7e604df3ae57d104b407c5b7a2a6a3247d | [
"BSD-3-Clause"
] | 44 | 2019-06-27T15:56:14.000Z | 2022-03-15T22:21:10.000Z | scipy/sparse/_matrix_io.py | dhruv9vats/scipy | 48e1dd7e604df3ae57d104b407c5b7a2a6a3247d | [
"BSD-3-Clause"
] | 4 | 2020-06-13T10:32:25.000Z | 2021-12-03T15:48:16.000Z | 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... | 35.553333 | 114 | 0.615976 |
86d07b07d670dc9caa0bd92708721764a364d527 | 1,423 | py | Python | src/simulator/services/resources/atlas.py | ed741/PathBench | 50fe138eb1f824f49fe1a862705e435a1c3ec3ae | [
"BSD-3-Clause"
] | 46 | 2020-12-25T04:09:15.000Z | 2022-03-25T12:32:42.000Z | src/simulator/services/resources/atlas.py | ed741/PathBench | 50fe138eb1f824f49fe1a862705e435a1c3ec3ae | [
"BSD-3-Clause"
] | 36 | 2020-12-21T16:10:02.000Z | 2022-01-03T01:42:01.000Z | src/simulator/services/resources/atlas.py | judicaelclair/PathBenchURO | 101e67674efdfa8e27e1cf7787dac9fdf99552fe | [
"BSD-3-Clause"
] | 11 | 2021-01-06T23:34:12.000Z | 2022-03-21T17:21:47.000Z | from typing import Dict, List
from simulator.services.resources.directory import Directory
from simulator.services.services import Services
| 29.040816 | 97 | 0.579761 |
86d18fa6bf233db205e6db3a19952144dd79aa36 | 1,427 | py | Python | ingestion/src/metadata/great_expectations/builders/table/row_count_to_equal.py | ulixius9/OpenMetadata | f121698d968717f0932f685ef2a512c2a4d92438 | [
"Apache-2.0"
] | null | null | null | ingestion/src/metadata/great_expectations/builders/table/row_count_to_equal.py | ulixius9/OpenMetadata | f121698d968717f0932f685ef2a512c2a4d92438 | [
"Apache-2.0"
] | null | null | null | ingestion/src/metadata/great_expectations/builders/table/row_count_to_equal.py | ulixius9/OpenMetadata | f121698d968717f0932f685ef2a512c2a4d92438 | [
"Apache-2.0"
] | null | null | null | # 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... | 41.970588 | 86 | 0.756833 |
86d22671738e4b0cf43566c5aeec7cd2a5f04193 | 6,899 | py | Python | tensorflow/bbox/jrieke-tf-parse-v2/jrieke_tf_dataset.py | gustavovaliati/obj-det-experiments | e81774a18b34c22d971ad15d7ac6eb8663ac6f22 | [
"Apache-2.0"
] | null | null | null | tensorflow/bbox/jrieke-tf-parse-v2/jrieke_tf_dataset.py | gustavovaliati/obj-det-experiments | e81774a18b34c22d971ad15d7ac6eb8663ac6f22 | [
"Apache-2.0"
] | null | null | null | tensorflow/bbox/jrieke-tf-parse-v2/jrieke_tf_dataset.py | gustavovaliati/obj-det-experiments | e81774a18b34c22d971ad15d7ac6eb8663ac6f22 | [
"Apache-2.0"
] | null | null | null | '''
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
| 40.582353 | 142 | 0.59052 |
86d39cbeb38ed832359d8101e1462aeccc15eee8 | 1,400 | py | Python | src/knownnodes.py | skeevey/PyBitmessage | 196d688b138393d1d540df3322844dfe7e7c02ba | [
"MIT"
] | 1 | 2018-04-25T08:08:47.000Z | 2018-04-25T08:08:47.000Z | src/knownnodes.py | skeevey/PyBitmessage | 196d688b138393d1d540df3322844dfe7e7c02ba | [
"MIT"
] | null | null | null | src/knownnodes.py | skeevey/PyBitmessage | 196d688b138393d1d540df3322844dfe7e7c02ba | [
"MIT"
] | 1 | 2018-04-25T08:08:48.000Z | 2018-04-25T08:08:48.000Z | import pickle
import threading
from bmconfigparser import BMConfigParser
import state
knownNodesLock = threading.Lock()
knownNodes = {}
knownNodesTrimAmount = 2000
| 30.434783 | 120 | 0.648571 |
86d3d194e9e0137871f97d1ad57cf24e9f4a90e3 | 1,672 | py | Python | chroma_agent/action_plugins/manage_node.py | whamcloud/iml-agent | fecb2468fd6edc822f3ab37ced444d98d8725730 | [
"MIT"
] | 1 | 2020-04-22T16:43:09.000Z | 2020-04-22T16:43:09.000Z | chroma_agent/action_plugins/manage_node.py | AlexTalker/iml-agent | 5ebcfe96be670912d9a9b7fbb23431af0d54f768 | [
"MIT"
] | 53 | 2018-07-07T18:17:50.000Z | 2021-03-19T23:15:28.000Z | chroma_agent/action_plugins/manage_node.py | AlexTalker/iml-agent | 5ebcfe96be670912d9a9b7fbb23431af0d54f768 | [
"MIT"
] | 6 | 2018-06-18T08:51:38.000Z | 2019-10-24T12:16:42.000Z | # 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... | 27.866667 | 75 | 0.703947 |
86d45952adaab5e1d25729182d1ca80f64803a29 | 8,103 | py | Python | census_data_downloader/core/tables.py | ian-r-rose/census-data-downloader | f8ac9d773e6d3f52be87bf916a2e32249391f966 | [
"MIT"
] | null | null | null | census_data_downloader/core/tables.py | ian-r-rose/census-data-downloader | f8ac9d773e6d3f52be87bf916a2e32249391f966 | [
"MIT"
] | null | null | null | census_data_downloader/core/tables.py | ian-r-rose/census-data-downloader | f8ac9d773e6d3f52be87bf916a2e32249391f966 | [
"MIT"
] | null | null | null | #! /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__)
| 28.038062 | 96 | 0.60817 |
86d61d512c3c9d47b1f63fe91873604a549e077d | 5,422 | py | Python | sgf2ebook.py | loujine/sgf2ebook | 13c87056646cc6c06485b129221ab2028e67ef95 | [
"MIT"
] | null | null | null | sgf2ebook.py | loujine/sgf2ebook | 13c87056646cc6c06485b129221ab2028e67ef95 | [
"MIT"
] | null | null | null | sgf2ebook.py | loujine/sgf2ebook | 13c87056646cc6c06485b129221ab2028e67ef95 | [
"MIT"
] | null | null | null | #!/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... | 34.75641 | 142 | 0.574511 |
86d75a7478a79891b6baf0f18c7802c22b104725 | 918 | py | Python | dandeliondiary/household/urls.py | amberdiehl/dandeliondiary_project | e9bace5bd7980def6ca763840ab5b38f1e05cd3d | [
"FSFAP"
] | null | null | null | dandeliondiary/household/urls.py | amberdiehl/dandeliondiary_project | e9bace5bd7980def6ca763840ab5b38f1e05cd3d | [
"FSFAP"
] | 6 | 2020-04-29T23:54:15.000Z | 2022-03-11T23:25:24.000Z | dandeliondiary/household/urls.py | amberdiehl/dandeliondiary_project | e9bace5bd7980def6ca763840ab5b38f1e05cd3d | [
"FSFAP"
] | null | null | null | 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... | 54 | 95 | 0.683007 |
86d75f7e9a302f49289d9be8498b550dc47650fa | 79,634 | py | Python | private/templates/NYC/config.py | devinbalkind/eden | d5a684eae537432eb2c7d954132484a4714ca8fb | [
"MIT"
] | null | null | null | private/templates/NYC/config.py | devinbalkind/eden | d5a684eae537432eb2c7d954132484a4714ca8fb | [
"MIT"
] | null | null | null | private/templates/NYC/config.py | devinbalkind/eden | d5a684eae537432eb2c7d954132484a4714ca8fb | [
"MIT"
] | null | null | null | # -*- 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... | 39.422772 | 187 | 0.470226 |
86d782fd2d0c71e606843e5d70887529cd2c5a40 | 106 | py | Python | experiments/issue561/v2.py | nitinkaveriappa/downward | 5c9a1b5111d667bb96f94da61ca2a45b1b70bb83 | [
"MIT"
] | 4 | 2019-04-23T10:41:35.000Z | 2019-10-27T05:14:42.000Z | experiments/issue561/v2.py | nitinkaveriappa/downward | 5c9a1b5111d667bb96f94da61ca2a45b1b70bb83 | [
"MIT"
] | null | null | null | experiments/issue561/v2.py | nitinkaveriappa/downward | 5c9a1b5111d667bb96f94da61ca2a45b1b70bb83 | [
"MIT"
] | 4 | 2018-01-16T00:00:22.000Z | 2019-11-01T23:35:01.000Z | #! /usr/bin/env python
# -*- coding: utf-8 -*-
from main import main
main("issue561-v1", "issue561-v2")
| 15.142857 | 34 | 0.632075 |
86d8ff6a04670083ea5d1c4de998cdc6916ada2c | 4,207 | py | Python | q2_qemistree/tests/test_fingerprint.py | tgroth97/q2-qemistree | 289c447a6c3a29478bb84212281ef0d7ffc1387a | [
"BSD-2-Clause"
] | null | null | null | q2_qemistree/tests/test_fingerprint.py | tgroth97/q2-qemistree | 289c447a6c3a29478bb84212281ef0d7ffc1387a | [
"BSD-2-Clause"
] | null | null | null | q2_qemistree/tests/test_fingerprint.py | tgroth97/q2-qemistree | 289c447a6c3a29478bb84212281ef0d7ffc1387a | [
"BSD-2-Clause"
] | null | null | null | # ----------------------------------------------------------------------------
# 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.
# ------------------------------------------------... | 45.728261 | 78 | 0.548134 |
86d90c0ca6a5dbc266bca705498a4a9e3c8d3aac | 721 | py | Python | chroma-manager/tests/utils/__init__.py | GarimaVishvakarma/intel-chroma | fdf68ed00b13643c62eb7480754d3216d9295e0b | [
"MIT"
] | null | null | null | chroma-manager/tests/utils/__init__.py | GarimaVishvakarma/intel-chroma | fdf68ed00b13643c62eb7480754d3216d9295e0b | [
"MIT"
] | null | null | null | chroma-manager/tests/utils/__init__.py | GarimaVishvakarma/intel-chroma | fdf68ed00b13643c62eb7480754d3216d9295e0b | [
"MIT"
] | null | null | null | import time
import datetime
import contextlib
| 24.033333 | 74 | 0.629681 |
86d90c692c5aa920f75d361edbf2de1c22109ec8 | 3,518 | py | Python | tempo/worker.py | rackerlabs/Tempo | 60c2adaf5b592ae171987b999e0b9cc46b80c54e | [
"Apache-2.0"
] | 4 | 2015-04-26T01:46:51.000Z | 2020-11-10T13:07:59.000Z | tempo/worker.py | rackerlabs/Tempo | 60c2adaf5b592ae171987b999e0b9cc46b80c54e | [
"Apache-2.0"
] | null | null | null | tempo/worker.py | rackerlabs/Tempo | 60c2adaf5b592ae171987b999e0b9cc46b80c54e | [
"Apache-2.0"
] | null | null | null | # 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... | 29.563025 | 77 | 0.673394 |
86d979010cd46ef001009b94be4cbd36b5242fa0 | 24,187 | py | Python | bin/basenji_motifs.py | AndyPJiang/basenji | 64e43570c8bece156b4ab926608014f489b7965e | [
"Apache-2.0"
] | 1 | 2020-05-22T20:53:37.000Z | 2020-05-22T20:53:37.000Z | bin/basenji_motifs.py | AndyPJiang/basenji | 64e43570c8bece156b4ab926608014f489b7965e | [
"Apache-2.0"
] | null | null | null | bin/basenji_motifs.py | AndyPJiang/basenji | 64e43570c8bece156b4ab926608014f489b7965e | [
"Apache-2.0"
] | null | null | null | #!/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... | 29.282082 | 99 | 0.585687 |
86db53b7a1cf34f8c926e78563b430e45842c3b8 | 1,337 | py | Python | apps/shop/urls.py | Joetib/jshop | 810ce5dcf2cf2d23b45536dd0c8806efd3b7fc91 | [
"MIT"
] | 1 | 2021-09-29T18:48:00.000Z | 2021-09-29T18:48:00.000Z | apps/shop/urls.py | Joetib/jshop | 810ce5dcf2cf2d23b45536dd0c8806efd3b7fc91 | [
"MIT"
] | null | null | null | apps/shop/urls.py | Joetib/jshop | 810ce5dcf2cf2d23b45536dd0c8806efd3b7fc91 | [
"MIT"
] | null | null | null | 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... | 58.130435 | 109 | 0.691847 |
86db5b39f7333cdce223e5a0be6e734eb216f5d2 | 11,028 | py | Python | surpyval/parametric/expo_weibull.py | dfm/SurPyval | 014fba8f1d4a0f43218a3713ce80a78191ad8be9 | [
"MIT"
] | null | null | null | surpyval/parametric/expo_weibull.py | dfm/SurPyval | 014fba8f1d4a0f43218a3713ce80a78191ad8be9 | [
"MIT"
] | null | null | null | surpyval/parametric/expo_weibull.py | dfm/SurPyval | 014fba8f1d4a0f43218a3713ce80a78191ad8be9 | [
"MIT"
] | null | null | null | 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... | 32.151603 | 228 | 0.537087 |
86db8d66e4f0f969e4dab6cb93ed65e00e44883f | 3,292 | py | Python | tests/test_base_table.py | stjordanis/datar | 4e2b5db026ad35918954576badef9951928c0cb1 | [
"MIT"
] | 110 | 2021-03-09T04:10:40.000Z | 2022-03-13T10:28:20.000Z | tests/test_base_table.py | sthagen/datar | 1218a549e2f0547c7b5a824ca6d9adf1bf96ba46 | [
"MIT"
] | 54 | 2021-06-20T18:53:44.000Z | 2022-03-29T22:13:07.000Z | tests/test_base_table.py | sthagen/datar | 1218a549e2f0547c7b5a824ca6d9adf1bf96ba46 | [
"MIT"
] | 11 | 2021-06-18T03:03:14.000Z | 2022-02-25T11:48:26.000Z | 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
| 31.056604 | 79 | 0.564702 |
86dbc8be4491e9aac31a1a68443d62ca3e952415 | 1,922 | py | Python | cqlengine/tests/statements/test_update_statement.py | dokai/cqlengine | a080aff3a73351d37126b14eef606061b445aa37 | [
"BSD-3-Clause"
] | null | null | null | cqlengine/tests/statements/test_update_statement.py | dokai/cqlengine | a080aff3a73351d37126b14eef606061b445aa37 | [
"BSD-3-Clause"
] | null | null | null | cqlengine/tests/statements/test_update_statement.py | dokai/cqlengine | a080aff3a73351d37126b14eef606061b445aa37 | [
"BSD-3-Clause"
] | null | null | null | from unittest import TestCase
from cqlengine.statements import UpdateStatement, WhereClause, AssignmentClause
from cqlengine.operators import *
| 44.697674 | 104 | 0.648283 |
86dbf2f275a336e7d12bde00e6cd729b126ef190 | 1,883 | py | Python | packages/facilities/diagnostics/py/custom_checkbox.py | Falcons-Robocup/code | 2281a8569e7f11cbd3238b7cc7341c09e2e16249 | [
"Apache-2.0"
] | 2 | 2021-01-15T13:27:19.000Z | 2021-08-04T08:40:52.000Z | packages/facilities/diagnostics/py/custom_checkbox.py | Falcons-Robocup/code | 2281a8569e7f11cbd3238b7cc7341c09e2e16249 | [
"Apache-2.0"
] | null | null | null | packages/facilities/diagnostics/py/custom_checkbox.py | Falcons-Robocup/code | 2281a8569e7f11cbd3238b7cc7341c09e2e16249 | [
"Apache-2.0"
] | 5 | 2018-05-01T10:39:31.000Z | 2022-03-25T03:02:35.000Z | # Copyright 2020 Jan Feitsma (Falcons)
# SPDX-License-Identifier: Apache-2.0
#!/usr/bin/python
import matplotlib.pyplot as plt
from matplotlib.patches import Rectangle
| 33.625 | 117 | 0.601699 |
86dc7d357b174d6a4843f8edef2436d8cf30c367 | 742 | py | Python | generator.py | Axonny/HexagonalHitori | 582cb50b751796c30ed273f66c8ac9fa6f3dd089 | [
"MIT"
] | null | null | null | generator.py | Axonny/HexagonalHitori | 582cb50b751796c30ed273f66c8ac9fa6f3dd089 | [
"MIT"
] | null | null | null | generator.py | Axonny/HexagonalHitori | 582cb50b751796c30ed273f66c8ac9fa6f3dd089 | [
"MIT"
] | null | null | null | from hitori_generator import Generator
from argparse import ArgumentParser
if __name__ == '__main__':
main()
| 27.481481 | 120 | 0.628032 |
86dd7f5030a8b0c0b8c5d1166bbac51638b7d539 | 25,946 | py | Python | opaflib/xmlast.py | feliam/opaf | f9908c26af1bf28cc29f3d647dcd9f55d631d732 | [
"MIT"
] | 2 | 2019-11-23T14:46:35.000Z | 2022-01-21T16:09:47.000Z | opaflib/xmlast.py | feliam/opaf | f9908c26af1bf28cc29f3d647dcd9f55d631d732 | [
"MIT"
] | null | null | null | opaflib/xmlast.py | feliam/opaf | f9908c26af1bf28cc29f3d647dcd9f55d631d732 | [
"MIT"
] | 1 | 2019-09-06T21:04:39.000Z | 2019-09-06T21:04:39.000Z | 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, ... | 37.332374 | 172 | 0.582248 |
86dd8cfba25399e11b5e6b0c69e97eec2cc7d779 | 1,590 | py | Python | course-code/imooc-tf-mnist-flask/mnist/module.py | le3t/ko-repo | 50eb0b4cadb9db9bf608a9e5d36376f38ff5cce5 | [
"Apache-2.0"
] | 30 | 2018-12-06T02:17:45.000Z | 2021-04-07T09:03:36.000Z | course-code/imooc-tf-mnist-flask/mnist/module.py | Artister/tutorials-java | 50eb0b4cadb9db9bf608a9e5d36376f38ff5cce5 | [
"Apache-2.0"
] | 3 | 2019-08-26T13:41:57.000Z | 2019-08-26T13:44:21.000Z | course-code/imooc-tf-mnist-flask/mnist/module.py | Artister/tutorials-java | 50eb0b4cadb9db9bf608a9e5d36376f38ff5cce5 | [
"Apache-2.0"
] | 20 | 2018-12-27T08:31:02.000Z | 2020-12-03T08:35:28.000Z | import tensorflow as tf
# y=ax+b linear model
#
| 30.576923 | 72 | 0.620755 |
86dfb9b0ac538e587eb0952c661e061a843edff2 | 1,544 | py | Python | src/sol/handle_metaplex.py | terra-dashboard/staketaxcsv | 5793105488bf799c61aee64a45f44e9ae8fef397 | [
"MIT"
] | 140 | 2021-12-11T23:37:46.000Z | 2022-03-29T23:04:36.000Z | src/sol/handle_metaplex.py | terra-dashboard/staketaxcsv | 5793105488bf799c61aee64a45f44e9ae8fef397 | [
"MIT"
] | 80 | 2021-12-17T15:13:47.000Z | 2022-03-31T13:33:53.000Z | src/sol/handle_metaplex.py | terra-dashboard/staketaxcsv | 5793105488bf799c61aee64a45f44e9ae8fef397 | [
"MIT"
] | 52 | 2021-12-12T00:37:17.000Z | 2022-03-29T23:25:09.000Z | from common.make_tx import make_swap_tx
from sol.handle_simple import handle_unknown_detect_transfers
| 34.311111 | 98 | 0.709845 |
86e079c3cae2dd930094e58b47942d7cc71d011d | 11,293 | py | Python | dcor/independence.py | lemiceterieux/dcor | 205682a71463a2c6ab8f5b8b215ec12d44f0b5a6 | [
"MIT"
] | null | null | null | dcor/independence.py | lemiceterieux/dcor | 205682a71463a2c6ab8f5b8b215ec12d44f0b5a6 | [
"MIT"
] | null | null | null | dcor/independence.py | lemiceterieux/dcor | 205682a71463a2c6ab8f5b8b215ec12d44f0b5a6 | [
"MIT"
] | null | null | null | """
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... | 33.411243 | 79 | 0.609493 |
86e150137bde5dca549d0321cdc857bd542bc500 | 3,878 | py | Python | cinemasci/cis/__init__.py | cinemascience/cinemasc | 5b00a0c2e3c886f65cfbf1f59e914fc458d7068b | [
"BSD-3-Clause"
] | null | null | null | cinemasci/cis/__init__.py | cinemascience/cinemasc | 5b00a0c2e3c886f65cfbf1f59e914fc458d7068b | [
"BSD-3-Clause"
] | 3 | 2020-04-22T16:26:44.000Z | 2020-04-22T16:30:12.000Z | cinemasci/cis/__init__.py | cinemascience/cinemasc | 5b00a0c2e3c886f65cfbf1f59e914fc458d7068b | [
"BSD-3-Clause"
] | 1 | 2020-03-06T21:21:19.000Z | 2020-03-06T21:21:19.000Z | from . import imageview
from . import cisview
from . import renderer
from . import convert
| 29.603053 | 84 | 0.555183 |
86e1817f75ca21dff7ecb06d87908e9887be1bfd | 2,172 | py | Python | applications/spaghetti.py | fos/fos-legacy | db6047668781a0615abcebc7d55a7164f3105047 | [
"BSD-3-Clause"
] | 2 | 2016-08-03T10:33:08.000Z | 2021-06-23T18:50:14.000Z | applications/spaghetti.py | fos/fos-legacy | db6047668781a0615abcebc7d55a7164f3105047 | [
"BSD-3-Clause"
] | null | null | null | applications/spaghetti.py | fos/fos-legacy | db6047668781a0615abcebc7d55a7164f3105047 | [
"BSD-3-Clause"
] | null | null | null | 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
... | 31.941176 | 122 | 0.675414 |
86e1dc1697df65dd8302b1c8457579ff83a8e10d | 1,074 | py | Python | faceai/gender.py | dlzdy/faceai | 4b1e41d4c394c00da51533562b76306d86493f72 | [
"MIT"
] | 1 | 2021-05-18T07:31:14.000Z | 2021-05-18T07:31:14.000Z | faceai/gender.py | dlzdy/faceai | 4b1e41d4c394c00da51533562b76306d86493f72 | [
"MIT"
] | null | null | null | faceai/gender.py | dlzdy/faceai | 4b1e41d4c394c00da51533562b76306d86493f72 | [
"MIT"
] | null | null | null | #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_... | 30.685714 | 103 | 0.691806 |
86e1dfa0c33f00a823a44b2f6b5cc3f12ae76c76 | 5,872 | py | Python | csm_web/scheduler/tests/utils.py | mudit2103/csm_web | 3b7fd9ca7269ad4cb57bf264cf62a620e02d3780 | [
"MIT"
] | null | null | null | csm_web/scheduler/tests/utils.py | mudit2103/csm_web | 3b7fd9ca7269ad4cb57bf264cf62a620e02d3780 | [
"MIT"
] | null | null | null | csm_web/scheduler/tests/utils.py | mudit2103/csm_web | 3b7fd9ca7269ad4cb57bf264cf62a620e02d3780 | [
"MIT"
] | null | null | null | 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... | 32.804469 | 88 | 0.647309 |
86e1fd3bf7ee00e117356675760b13ae01e5890a | 3,282 | py | Python | coldtype/beziers.py | tallpauley/coldtype | c1811e1d3713ff9c3c804511d6cd607b1d802065 | [
"Apache-2.0"
] | null | null | null | coldtype/beziers.py | tallpauley/coldtype | c1811e1d3713ff9c3c804511d6cd607b1d802065 | [
"Apache-2.0"
] | null | null | null | coldtype/beziers.py | tallpauley/coldtype | c1811e1d3713ff9c3c804511d6cd607b1d802065 | [
"Apache-2.0"
] | null | null | null | 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 = {} | 31.557692 | 85 | 0.482937 |
86e21cfc54ba4f492a89adb3a5ddc21c8d452d78 | 3,930 | py | Python | p1_navigation/train.py | nick0lay/deep-reinforcement-learning | 5af4daca9850b4e12aec5d8b0dad87f1e22a1f98 | [
"MIT"
] | null | null | null | p1_navigation/train.py | nick0lay/deep-reinforcement-learning | 5af4daca9850b4e12aec5d8b0dad87f1e22a1f98 | [
"MIT"
] | null | null | null | p1_navigation/train.py | nick0lay/deep-reinforcement-learning | 5af4daca9850b4e12aec5d8b0dad87f1e22a1f98 | [
"MIT"
] | null | null | null | """
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... | 42.717391 | 279 | 0.689567 |
86e5087a507beef54f4930afdd98c56727fc0500 | 2,869 | py | Python | models/model_factory.py | jac99/Egonn | 075e00368a1676df741a35f42f6f38497da9d58f | [
"MIT"
] | 9 | 2021-10-31T07:11:58.000Z | 2022-03-29T14:06:49.000Z | models/model_factory.py | jac99/Egonn | 075e00368a1676df741a35f42f6f38497da9d58f | [
"MIT"
] | null | null | null | models/model_factory.py | jac99/Egonn | 075e00368a1676df741a35f42f6f38497da9d58f | [
"MIT"
] | 3 | 2021-11-12T17:42:41.000Z | 2022-03-11T00:41:47.000Z | # 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
| 36.782051 | 100 | 0.694319 |
86e596ecc94466fc1c8a56bb395c9ae7c14904e6 | 19,380 | py | Python | mdns/Phidget22Python/Phidget22/Phidget.py | rabarar/phidget_docker | ceca56c86d27f291a4300a1257c02096862335ec | [
"MIT"
] | null | null | null | mdns/Phidget22Python/Phidget22/Phidget.py | rabarar/phidget_docker | ceca56c86d27f291a4300a1257c02096862335ec | [
"MIT"
] | null | null | null | mdns/Phidget22Python/Phidget22/Phidget.py | rabarar/phidget_docker | ceca56c86d27f291a4300a1257c02096862335ec | [
"MIT"
] | null | null | null | 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... | 26.083445 | 113 | 0.757482 |
86e649d303431093f68ab23ef3215809292e639b | 4,872 | py | Python | tests/integration/test_celery.py | crossscreenmedia/scout_apm_python | 5cd31bf21f5acd0be0df4f40ec0bd29ec050ec01 | [
"MIT"
] | null | null | null | tests/integration/test_celery.py | crossscreenmedia/scout_apm_python | 5cd31bf21f5acd0be0df4f40ec0bd29ec050ec01 | [
"MIT"
] | null | null | null | tests/integration/test_celery.py | crossscreenmedia/scout_apm_python | 5cd31bf21f5acd0be0df4f40ec0bd29ec050ec01 | [
"MIT"
] | null | null | null | # 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... | 34.553191 | 82 | 0.70936 |
86e65c540055ab2f761c3c998b140c5377b7f0c6 | 10,865 | py | Python | molly/apps/places/migrations/0001_initial.py | mollyproject/mollyproject | 3247c6bac3f39ce8d275d19aa410b30c6284b8a7 | [
"Apache-2.0"
] | 7 | 2015-05-16T13:27:21.000Z | 2019-08-06T11:09:24.000Z | molly/apps/places/migrations/0001_initial.py | mollyproject/mollyproject | 3247c6bac3f39ce8d275d19aa410b30c6284b8a7 | [
"Apache-2.0"
] | null | null | null | molly/apps/places/migrations/0001_initial.py | mollyproject/mollyproject | 3247c6bac3f39ce8d275d19aa410b30c6284b8a7 | [
"Apache-2.0"
] | 4 | 2015-11-27T13:36:36.000Z | 2021-03-09T17:55:53.000Z | # encoding: utf-8
import datetime
from south.db import db
from south.v2 import SchemaMigration
from django.db import models
| 60.698324 | 211 | 0.620985 |
86e6c529a13c62833d2d9d91e683f2c9cc85c2b8 | 16,246 | py | Python | sdk/python/pulumi_azure_native/servicebus/v20210601preview/get_subscription.py | polivbr/pulumi-azure-native | 09571f3bf6bdc4f3621aabefd1ba6c0d4ecfb0e7 | [
"Apache-2.0"
] | null | null | null | sdk/python/pulumi_azure_native/servicebus/v20210601preview/get_subscription.py | polivbr/pulumi-azure-native | 09571f3bf6bdc4f3621aabefd1ba6c0d4ecfb0e7 | [
"Apache-2.0"
] | null | null | null | sdk/python/pulumi_azure_native/servicebus/v20210601preview/get_subscription.py | polivbr/pulumi-azure-native | 09571f3bf6bdc4f3621aabefd1ba6c0d4ecfb0e7 | [
"Apache-2.0"
] | null | null | null | # 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... | 45.253482 | 595 | 0.70048 |
86e708b4a5fa05856a6c8d0dde3c26f2006621e1 | 4,340 | py | Python | py_cfeve/module/CFAF240400E0-030TN-A1.py | crystalfontz/CFA-EVE-Python-Library | c5aca10b9b6ee109d4df8a9a692dcef083dafc88 | [
"Unlicense"
] | 1 | 2021-12-08T00:12:02.000Z | 2021-12-08T00:12:02.000Z | py_cfeve/module/CFAF240400E0-030TN-A1.py | crystalfontz/CFA-EVE-Python-Library | c5aca10b9b6ee109d4df8a9a692dcef083dafc88 | [
"Unlicense"
] | null | null | null | py_cfeve/module/CFAF240400E0-030TN-A1.py | crystalfontz/CFA-EVE-Python-Library | c5aca10b9b6ee109d4df8a9a692dcef083dafc88 | [
"Unlicense"
] | null | null | null | #===========================================================================
#
# Crystalfontz Raspberry-Pi Python example library for FTDI / BridgeTek
# EVE graphic accelerators.
#
#---------------------------------------------------------------------------
#
# This file is part of the port/adaptation of existin... | 38.070175 | 78 | 0.645392 |
86e79f3939b52fb2b048dd2d47804d7ba195c64a | 12,893 | py | Python | quapy/model_selection.py | OneToolsCollection/HLT-ISTI-QuaPy | 6a5c528154c2d6d38d9f3258e667727bf692fc8b | [
"BSD-3-Clause"
] | null | null | null | quapy/model_selection.py | OneToolsCollection/HLT-ISTI-QuaPy | 6a5c528154c2d6d38d9f3258e667727bf692fc8b | [
"BSD-3-Clause"
] | null | null | null | quapy/model_selection.py | OneToolsCollection/HLT-ISTI-QuaPy | 6a5c528154c2d6d38d9f3258e667727bf692fc8b | [
"BSD-3-Clause"
] | null | null | null | 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... | 48.65283 | 119 | 0.649732 |
86e7d2f1d51490654abf153935c59b83db56caad | 597 | py | Python | flasky.py | ZxShane/slam_hospital | 302704b3a188cea07dddfb23595dd75f8d3cd636 | [
"Apache-2.0"
] | null | null | null | flasky.py | ZxShane/slam_hospital | 302704b3a188cea07dddfb23595dd75f8d3cd636 | [
"Apache-2.0"
] | 1 | 2020-11-17T16:47:19.000Z | 2021-01-26T10:16:33.000Z | flasky.py | ZxShane/slam_hospital | 302704b3a188cea07dddfb23595dd75f8d3cd636 | [
"Apache-2.0"
] | null | null | null | # -*- 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
#
| 22.111111 | 75 | 0.730318 |
86e7e28fd96ba38477835a4f1f9a0169efabb855 | 2,841 | py | Python | python/day09/smoke_basin.py | aesdeef/advent-of-code-2021 | 4561bcf12ac03d360f5b28c48ef80134f97613b9 | [
"MIT"
] | 2 | 2021-12-03T06:18:27.000Z | 2021-12-06T11:28:33.000Z | python/day09/smoke_basin.py | aesdeef/advent-of-code-2021 | 4561bcf12ac03d360f5b28c48ef80134f97613b9 | [
"MIT"
] | null | null | null | python/day09/smoke_basin.py | aesdeef/advent-of-code-2021 | 4561bcf12ac03d360f5b28c48ef80134f97613b9 | [
"MIT"
] | null | null | null | 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... | 27.852941 | 77 | 0.642027 |
86e856cc4992e6f53fef41d1cfe0de4271ac6642 | 1,667 | py | Python | playground.py | NHGmaniac/voctoconfig | 55a803a5f9bc81b48eaa72ced1fddd402aa7a2e9 | [
"MIT"
] | null | null | null | playground.py | NHGmaniac/voctoconfig | 55a803a5f9bc81b48eaa72ced1fddd402aa7a2e9 | [
"MIT"
] | null | null | null | playground.py | NHGmaniac/voctoconfig | 55a803a5f9bc81b48eaa72ced1fddd402aa7a2e9 | [
"MIT"
] | null | null | null | #!/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() | 24.514706 | 67 | 0.644271 |
86e873cdab8920252696e3d917e54b578dd9f428 | 3,220 | py | Python | tianshou/utils/logger/tensorboard.py | Aceticia/tianshou | 6377dc5006ba1111adac42472447b9de4a021c2d | [
"MIT"
] | 4,714 | 2018-04-16T22:52:05.000Z | 2022-03-31T14:14:51.000Z | tianshou/utils/logger/tensorboard.py | Aceticia/tianshou | 6377dc5006ba1111adac42472447b9de4a021c2d | [
"MIT"
] | 529 | 2020-03-26T00:58:03.000Z | 2022-03-31T01:59:14.000Z | tianshou/utils/logger/tensorboard.py | Aceticia/tianshou | 6377dc5006ba1111adac42472447b9de4a021c2d | [
"MIT"
] | 798 | 2018-05-26T23:34:07.000Z | 2022-03-30T11:26:19.000Z | 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
| 37.011494 | 87 | 0.647205 |
86e8affd139b8a4dffaf5cdc66c6797adccdf84b | 7,326 | py | Python | PythonAPI/pythonwrappers/jetfuel/gui/menu.py | InsightGit/JetfuelGameEngine | 3ea0bf2fb5e09aadf304b7b5a16882d72336c408 | [
"Apache-2.0"
] | 4 | 2018-02-05T03:40:10.000Z | 2021-06-18T16:22:13.000Z | PythonAPI/pythonwrappers/jetfuel/gui/menu.py | InsightGit/JetfuelGameEngine | 3ea0bf2fb5e09aadf304b7b5a16882d72336c408 | [
"Apache-2.0"
] | null | null | null | PythonAPI/pythonwrappers/jetfuel/gui/menu.py | InsightGit/JetfuelGameEngine | 3ea0bf2fb5e09aadf304b7b5a16882d72336c408 | [
"Apache-2.0"
] | null | null | null | # 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... | 46.367089 | 81 | 0.590227 |
86ea235dbd8e630be7e48c8aa27ae5d388c7bc1d | 30,649 | py | Python | latent_programmer/decomposition_transformer_attention/train.py | ParikhKadam/google-research | 00a282388e389e09ce29109eb050491c96cfab85 | [
"Apache-2.0"
] | 2 | 2022-01-21T18:15:34.000Z | 2022-01-25T15:21:34.000Z | latent_programmer/decomposition_transformer_attention/train.py | ParikhKadam/google-research | 00a282388e389e09ce29109eb050491c96cfab85 | [
"Apache-2.0"
] | 110 | 2021-10-01T18:22:38.000Z | 2021-12-27T22:08:31.000Z | latent_programmer/decomposition_transformer_attention/train.py | admariner/google-research | 7cee4b22b925581d912e8d993625c180da2a5a4f | [
"Apache-2.0"
] | 1 | 2022-02-10T10:43:10.000Z | 2022-02-10T10:43:10.000Z | # 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... | 38.263421 | 96 | 0.661131 |
86ebf47f1f35ac5baec5295be6bb6feebf67dc9a | 5,412 | py | Python | plot/profile_interpolation/plot_profile.py | ziyixi/SeisScripts | a484bc1747eae52b2441f0bfd47ac7e093150f1d | [
"MIT"
] | null | null | null | plot/profile_interpolation/plot_profile.py | ziyixi/SeisScripts | a484bc1747eae52b2441f0bfd47ac7e093150f1d | [
"MIT"
] | null | null | null | plot/profile_interpolation/plot_profile.py | ziyixi/SeisScripts | a484bc1747eae52b2441f0bfd47ac7e093150f1d | [
"MIT"
] | null | null | null | 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... | 34.037736 | 153 | 0.636179 |
86ebfc32e5da592e6e4c3fa48a02c7a3cbe0a2ce | 367 | py | Python | tests/test_heroku.py | edpaget/flask-appconfig | 5264719ac9229339070b219a4358a3203ffd05b0 | [
"MIT"
] | 61 | 2015-01-28T21:19:11.000Z | 2020-12-28T10:12:28.000Z | tests/test_heroku.py | edpaget/flask-appconfig | 5264719ac9229339070b219a4358a3203ffd05b0 | [
"MIT"
] | 3 | 2016-01-25T00:09:55.000Z | 2017-09-25T11:36:19.000Z | tests/test_heroku.py | edpaget/flask-appconfig | 5264719ac9229339070b219a4358a3203ffd05b0 | [
"MIT"
] | 14 | 2015-07-22T12:58:06.000Z | 2021-03-24T02:06:30.000Z | from flask import Flask
from flask_appconfig import HerokuConfig
| 22.9375 | 71 | 0.746594 |
86ec0f9bcbbfb50a7fe60cb1505775e1803a9dd4 | 396 | py | Python | flask/util/logger.py | Dev-Jahn/cms | 84ea115bdb865daff83d069502f6f0dd105fc4f0 | [
"RSA-MD"
] | null | null | null | flask/util/logger.py | Dev-Jahn/cms | 84ea115bdb865daff83d069502f6f0dd105fc4f0 | [
"RSA-MD"
] | 9 | 2021-01-05T07:48:28.000Z | 2021-05-14T06:38:27.000Z | flask/util/logger.py | Dev-Jahn/cms | 84ea115bdb865daff83d069502f6f0dd105fc4f0 | [
"RSA-MD"
] | 4 | 2021-01-05T06:46:09.000Z | 2021-05-06T01:44:28.000Z | 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... | 20.842105 | 114 | 0.699495 |
86ecab271dab8a62fddc0d43582d82c9d0efb150 | 1,592 | py | Python | utils/backups/backup_psql.py | Krovatkin/NewsBlur | 2a5b52984c9d29c864eb80e9c60c658b1f25f7c5 | [
"MIT"
] | null | null | null | utils/backups/backup_psql.py | Krovatkin/NewsBlur | 2a5b52984c9d29c864eb80e9c60c658b1f25f7c5 | [
"MIT"
] | null | null | null | utils/backups/backup_psql.py | Krovatkin/NewsBlur | 2a5b52984c9d29c864eb80e9c60c658b1f25f7c5 | [
"MIT"
] | null | null | null | #!/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... | 34.608696 | 108 | 0.682161 |
86ecdb5499de55821a90a7d456c0a5f3e2bbff3c | 22,780 | py | Python | onap_tests/scenario/solution.py | Orange-OpenSource/xtesting-onap-tests | ce4237f49089a91c81f5fad552f78fec384fd504 | [
"Apache-2.0"
] | null | null | null | onap_tests/scenario/solution.py | Orange-OpenSource/xtesting-onap-tests | ce4237f49089a91c81f5fad552f78fec384fd504 | [
"Apache-2.0"
] | null | null | null | onap_tests/scenario/solution.py | Orange-OpenSource/xtesting-onap-tests | ce4237f49089a91c81f5fad552f78fec384fd504 | [
"Apache-2.0"
] | 2 | 2018-06-08T15:49:51.000Z | 2021-06-22T10:06:30.000Z | #!/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... | 42.342007 | 80 | 0.554478 |
86ecf5f6a01c26c5389153d1137d146050eff0e3 | 3,262 | py | Python | tutorials/Controls4Docs/ControlEventsGraph.py | dominic-dev/pyformsd | 23e31ceff2943bc0f7286d25dd14450a14b986af | [
"MIT"
] | null | null | null | tutorials/Controls4Docs/ControlEventsGraph.py | dominic-dev/pyformsd | 23e31ceff2943bc0f7286d25dd14450a14b986af | [
"MIT"
] | null | null | null | tutorials/Controls4Docs/ControlEventsGraph.py | dominic-dev/pyformsd | 23e31ceff2943bc0f7286d25dd14450a14b986af | [
"MIT"
] | null | null | null | #!/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... | 27.183333 | 116 | 0.62477 |
86ecf632226839fdabd506f9f83e9358864f79de | 4,447 | py | Python | annotation_gui_gcp/orthophoto_view.py | lioncorpo/sfm.lion-judge-corporation | 95fb11bff263c3faab62269cc907eec18b527e22 | [
"BSD-2-Clause"
] | 1 | 2019-05-31T13:50:41.000Z | 2019-05-31T13:50:41.000Z | annotation_gui_gcp/orthophoto_view.py | Pandinosaurus/OpenSfM | b892ba9fd5e7fd6c7a9e3c81edddca80f71c1cd5 | [
"BSD-2-Clause"
] | null | null | null | annotation_gui_gcp/orthophoto_view.py | Pandinosaurus/OpenSfM | b892ba9fd5e7fd6c7a9e3c81edddca80f71c1cd5 | [
"BSD-2-Clause"
] | 2 | 2017-03-31T16:54:34.000Z | 2018-07-10T11:32:22.000Z | from typing import Tuple
import numpy as np
import rasterio.warp
from opensfm import features
from .orthophoto_manager import OrthoPhotoManager
from .view import View
| 35.293651 | 83 | 0.613672 |
86eee025668f1ba4e581d9197ce7264211e57bc7 | 3,704 | py | Python | tempest/tests/lib/services/compute/test_security_group_default_rules_client.py | mail2nsrajesh/tempest | 1a3b3dc50b418d3a15839830d7d1ff88c8c76cff | [
"Apache-2.0"
] | 254 | 2015-01-05T19:22:52.000Z | 2022-03-29T08:14:54.000Z | tempest/tests/lib/services/compute/test_security_group_default_rules_client.py | mail2nsrajesh/tempest | 1a3b3dc50b418d3a15839830d7d1ff88c8c76cff | [
"Apache-2.0"
] | 13 | 2015-03-02T15:53:04.000Z | 2022-02-16T02:28:14.000Z | tempest/tests/lib/services/compute/test_security_group_default_rules_client.py | mail2nsrajesh/tempest | 1a3b3dc50b418d3a15839830d7d1ff88c8c76cff | [
"Apache-2.0"
] | 367 | 2015-01-07T15:05:39.000Z | 2022-03-04T09:50:35.000Z | # 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 ... | 41.617978 | 78 | 0.704644 |
86ef419ce9a394c69c1d9d5b8bea2b3d98c02484 | 29,478 | py | Python | pirates/leveleditor/worldData/interior_spanish_npc_b.py | itsyaboyrocket/pirates | 6ca1e7d571c670b0d976f65e608235707b5737e3 | [
"BSD-3-Clause"
] | 3 | 2021-02-25T06:38:13.000Z | 2022-03-22T07:00:15.000Z | pirates/leveleditor/worldData/interior_spanish_npc_b.py | itsyaboyrocket/pirates | 6ca1e7d571c670b0d976f65e608235707b5737e3 | [
"BSD-3-Clause"
] | null | null | null | pirates/leveleditor/worldData/interior_spanish_npc_b.py | itsyaboyrocket/pirates | 6ca1e7d571c670b0d976f65e608235707b5737e3 | [
"BSD-3-Clause"
] | 1 | 2021-02-25T06:38:17.000Z | 2021-02-25T06:38:17.000Z | # 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... | 4,211.142857 | 29,056 | 0.664631 |
86ef4e909fe2cea39d77e8fe80f71f1e8cdcd676 | 1,844 | py | Python | main.py | Light-Lens/PassGen | 8f4f2ef08299d6243b939d0f08ac75bde3cabf5e | [
"MIT"
] | 3 | 2021-07-19T16:39:06.000Z | 2021-11-08T11:53:50.000Z | main.py | Light-Lens/PassGen | 8f4f2ef08299d6243b939d0f08ac75bde3cabf5e | [
"MIT"
] | null | null | null | main.py | Light-Lens/PassGen | 8f4f2ef08299d6243b939d0f08ac75bde3cabf5e | [
"MIT"
] | null | null | null | # 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... | 32.350877 | 80 | 0.691432 |
86ef847c1cba2674adc29aa5bed41c18d23f595a | 24,723 | py | Python | memos/memos/models/Memo.py | iotexpert/docmgr | 735c7bcbaeb73bc44efecffb175f268f2438ac3a | [
"MIT"
] | null | null | null | memos/memos/models/Memo.py | iotexpert/docmgr | 735c7bcbaeb73bc44efecffb175f268f2438ac3a | [
"MIT"
] | null | null | null | memos/memos/models/Memo.py | iotexpert/docmgr | 735c7bcbaeb73bc44efecffb175f268f2438ac3a | [
"MIT"
] | null | null | null | """
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... | 39.367834 | 190 | 0.582049 |
86f060997b8a24b2a713e28d30aebb3fc5274d62 | 1,385 | py | Python | course_catalog/etl/conftest.py | mitodl/open-discussions | ab6e9fac70b8a1222a84e78ba778a7a065c20541 | [
"BSD-3-Clause"
] | 12 | 2017-09-27T21:23:27.000Z | 2020-12-25T04:31:30.000Z | course_catalog/etl/conftest.py | mitodl/open-discussions | ab6e9fac70b8a1222a84e78ba778a7a065c20541 | [
"BSD-3-Clause"
] | 3,293 | 2017-06-30T18:16:01.000Z | 2022-03-31T18:01:34.000Z | course_catalog/etl/conftest.py | mitodl/open-discussions | ab6e9fac70b8a1222a84e78ba778a7a065c20541 | [
"BSD-3-Clause"
] | 1 | 2020-04-13T12:19:57.000Z | 2020-04-13T12:19:57.000Z | """Common ETL test fixtures"""
import json
import pytest
| 32.209302 | 80 | 0.716245 |
86f07721893f6c50f28bc8f37736be7b92dba3a5 | 8,850 | py | Python | juliaset/juliaset.py | PageotD/juliaset | 7c1f98020eeff291fcf040cfcdf25a89e72f46a9 | [
"BSD-3-Clause"
] | null | null | null | juliaset/juliaset.py | PageotD/juliaset | 7c1f98020eeff291fcf040cfcdf25a89e72f46a9 | [
"BSD-3-Clause"
] | null | null | null | juliaset/juliaset.py | PageotD/juliaset | 7c1f98020eeff291fcf040cfcdf25a89e72f46a9 | [
"BSD-3-Clause"
] | 1 | 2021-08-09T06:45:43.000Z | 2021-08-09T06:45:43.000Z | 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)
... | 32.417582 | 89 | 0.566328 |
86f0877f437e0d2341e2d9c4fb9323bda9c076fe | 1,212 | py | Python | eye_detection.py | ShivanS93/VAtest_withOKN | 8da76f4c3ff526c9e16268194accfdc6221b0a66 | [
"MIT"
] | null | null | null | eye_detection.py | ShivanS93/VAtest_withOKN | 8da76f4c3ff526c9e16268194accfdc6221b0a66 | [
"MIT"
] | null | null | null | eye_detection.py | ShivanS93/VAtest_withOKN | 8da76f4c3ff526c9e16268194accfdc6221b0a66 | [
"MIT"
] | null | null | null | #!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()
| 24.734694 | 86 | 0.575908 |
86f0c522be62919400b4d5f2f8a78d4b4a38dcb9 | 399 | py | Python | scripts/make_gene_table.py | lmdu/bioinfo | 4542b0718410d15f3956c6545d9824a16608e02b | [
"MIT"
] | null | null | null | scripts/make_gene_table.py | lmdu/bioinfo | 4542b0718410d15f3956c6545d9824a16608e02b | [
"MIT"
] | null | null | null | scripts/make_gene_table.py | lmdu/bioinfo | 4542b0718410d15f3956c6545d9824a16608e02b | [
"MIT"
] | null | null | null | #!/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.... | 19.95 | 53 | 0.611529 |
86f16e97aa13775a35aa0ced03caeac309db0c51 | 4,627 | py | Python | {{cookiecutter.repo_name}}/src/mix_with_scaper.py | nussl/cookiecutter | 5df8512592778ea7155b05e3e4b54676227968b0 | [
"MIT"
] | null | null | null | {{cookiecutter.repo_name}}/src/mix_with_scaper.py | nussl/cookiecutter | 5df8512592778ea7155b05e3e4b54676227968b0 | [
"MIT"
] | null | null | null | {{cookiecutter.repo_name}}/src/mix_with_scaper.py | nussl/cookiecutter | 5df8512592778ea7155b05e3e4b54676227968b0 | [
"MIT"
] | null | null | null | 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... | 31.691781 | 87 | 0.612708 |
86f1999802fa178d60effb8dd046d22fbb0dd814 | 4,643 | py | Python | adventure-cards/package/main.py | DaneRosa/adventure-cards | 0685feeec8b56627795e685ff4fffad187881e1c | [
"MIT"
] | null | null | null | adventure-cards/package/main.py | DaneRosa/adventure-cards | 0685feeec8b56627795e685ff4fffad187881e1c | [
"MIT"
] | null | null | null | adventure-cards/package/main.py | DaneRosa/adventure-cards | 0685feeec8b56627795e685ff4fffad187881e1c | [
"MIT"
] | null | null | null | import json | 48.873684 | 92 | 0.420633 |
86f19d8269d91051babd1a81669ee8409fe871bc | 1,328 | py | Python | demo/cnn_predict.py | huynhtnhut97/keras-video-classifier | 3ea6a8d671f3bd3cc8eddef64ad75abc2a2d593a | [
"MIT"
] | 108 | 2018-03-01T10:03:22.000Z | 2022-03-27T03:00:30.000Z | demo/cnn_predict.py | drsagitn/lstm-video-classifier | 3d1bce6773e493bdff5d623883d47ca68d45e890 | [
"MIT"
] | 18 | 2020-01-28T22:13:07.000Z | 2022-03-11T23:54:10.000Z | demo/cnn_predict.py | drsagitn/lstm-video-classifier | 3d1bce6773e493bdff5d623883d47ca68d45e890 | [
"MIT"
] | 56 | 2018-03-01T10:03:22.000Z | 2022-02-23T08:19:10.000Z | import numpy as np
from keras import backend as K
import os
import sys
K.set_image_dim_ordering('tf')
if __name__ == '__main__':
main() | 30.883721 | 110 | 0.758283 |
86f2a90daa96d1b00a32e75d50fd040ca01ed705 | 172 | py | Python | pyconde/context_processors.py | EuroPython/djep | afcccbdda483e5f6962ac97f0dc4c4c5ea67fd21 | [
"BSD-3-Clause"
] | 5 | 2015-01-02T14:33:14.000Z | 2021-08-03T10:19:07.000Z | pyconde/context_processors.py | EuroPython/djep | afcccbdda483e5f6962ac97f0dc4c4c5ea67fd21 | [
"BSD-3-Clause"
] | null | null | null | pyconde/context_processors.py | EuroPython/djep | afcccbdda483e5f6962ac97f0dc4c4c5ea67fd21 | [
"BSD-3-Clause"
] | 3 | 2015-08-30T09:45:03.000Z | 2017-04-08T12:15:22.000Z | from django.conf import settings
| 21.5 | 89 | 0.732558 |
86f3b70aa2f3c882bdd1f178d6aa80fab1793aab | 5,898 | py | Python | pmdarima/preprocessing/endog/boxcox.py | tuomijal/pmdarima | 5bf84a2a5c42b81b949bd252ad3d4c6c311343f8 | [
"MIT"
] | 736 | 2019-12-02T01:33:31.000Z | 2022-03-31T21:45:29.000Z | pmdarima/preprocessing/endog/boxcox.py | tuomijal/pmdarima | 5bf84a2a5c42b81b949bd252ad3d4c6c311343f8 | [
"MIT"
] | 186 | 2019-12-01T18:01:33.000Z | 2022-03-31T18:27:56.000Z | pmdarima/preprocessing/endog/boxcox.py | tuomijal/pmdarima | 5bf84a2a5c42b81b949bd252ad3d4c6c311343f8 | [
"MIT"
] | 126 | 2019-12-07T04:03:19.000Z | 2022-03-31T17:40:14.000Z | # -*- 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']
| 33.511364 | 78 | 0.598847 |
86f3e8f2399f57967d9da67546eaf7a9b7b31fb7 | 2,139 | py | Python | backend/src/baserow/api/user/registries.py | ashishdhngr/baserow | b098678d2165eb7c42930ee24dc6753a3cb520c3 | [
"MIT"
] | 1 | 2022-01-24T15:12:02.000Z | 2022-01-24T15:12:02.000Z | backend/src/baserow/api/user/registries.py | rasata/baserow | c6e1d7842c53f801e1c96b49f1377da2a06afaa9 | [
"MIT"
] | null | null | null | backend/src/baserow/api/user/registries.py | rasata/baserow | c6e1d7842c53f801e1c96b49f1377da2a06afaa9 | [
"MIT"
] | null | null | null | from baserow.core.registry import Instance, Registry
user_data_registry = UserDataRegistry()
| 28.905405 | 85 | 0.633006 |
86f4958fe557f64425c53fe4dff977306ba95b20 | 17,197 | py | Python | Week 2/code.py | aklsh/EE2703 | 546b70c9adac4a4de294d83affbb74e480c2f65d | [
"MIT"
] | null | null | null | Week 2/code.py | aklsh/EE2703 | 546b70c9adac4a4de294d83affbb74e480c2f65d | [
"MIT"
] | null | null | null | Week 2/code.py | aklsh/EE2703 | 546b70c9adac4a4de294d83affbb74e480c2f65d | [
"MIT"
] | 3 | 2020-07-15T08:02:05.000Z | 2021-03-07T06:50:07.000Z | '''
-------------------------------------
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... | 53.241486 | 209 | 0.51823 |
86f530cec67d3e933cfc6fd5269d65218a8b2c49 | 880 | py | Python | Lib/Co.py | M507/Guessing-passwords-using-machine-learning | da90cfa30ce2e7a5e08ee528f594fa047ecea75c | [
"Apache-2.0"
] | 6 | 2020-05-18T14:20:23.000Z | 2021-04-23T16:31:34.000Z | Lib/Co.py | M507/Guessing-passwords-using-machine-learning | da90cfa30ce2e7a5e08ee528f594fa047ecea75c | [
"Apache-2.0"
] | null | null | null | Lib/Co.py | M507/Guessing-passwords-using-machine-learning | da90cfa30ce2e7a5e08ee528f594fa047ecea75c | [
"Apache-2.0"
] | 1 | 2020-05-18T21:19:52.000Z | 2020-05-18T21:19:52.000Z | import subprocess
import os.path
"""
Stylish input()
"""
"""
Execute command locally
"""
"""
Get all subdirectories of a directory.
"""
"""
Rocket science
"""
| 20.952381 | 87 | 0.619318 |
86f661785147d1c962908ad8a5f0840e9e70661d | 446 | py | Python | project3_code/part_0/main.py | rachelbrown347/CS294-26_code | 72a20a9ab75345091d2a743b13857d7a88adf9be | [
"MIT"
] | 1 | 2022-03-12T00:55:52.000Z | 2022-03-12T00:55:52.000Z | project3_code/part_0/main.py | rachelbrown347/CS294-26_code | 72a20a9ab75345091d2a743b13857d7a88adf9be | [
"MIT"
] | null | null | null | project3_code/part_0/main.py | rachelbrown347/CS294-26_code | 72a20a9ab75345091d2a743b13857d7a88adf9be | [
"MIT"
] | null | null | null | 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... | 23.473684 | 70 | 0.726457 |