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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
5423f2c125c3cb768b4a0cd17051477a73148c1a | 16,691 | py | Python | gbot/libs/helper.py | dgw/goshu | 3cba300d92f9bde58cf7348ddc3183d52b4c4bcf | [
"ISC"
] | 5 | 2015-01-03T00:08:58.000Z | 2017-05-05T11:57:03.000Z | gbot/libs/helper.py | dgw/goshu | 3cba300d92f9bde58cf7348ddc3183d52b4c4bcf | [
"ISC"
] | 3 | 2016-02-07T07:35:13.000Z | 2016-11-26T19:29:02.000Z | gbot/libs/helper.py | dgw/goshu | 3cba300d92f9bde58cf7348ddc3183d52b4c4bcf | [
"ISC"
] | 1 | 2020-11-12T09:09:06.000Z | 2020-11-12T09:09:06.000Z | #!/usr/bin/env python3
# Goshu IRC Bot
# written by Daniel Oaks <daniel@danieloaks.net>
# licensed under the ISC license
"""extends several builtin functions and provides helper functions
The default Python library is extensive and well-stocked. There are some
times however, you wish a small task was taken care of for... | 30.795203 | 94 | 0.549038 |
542466b53c52821ceb40707c73e0ab32ca5a0262 | 8,707 | py | Python | ptf/lib/runner.py | opennetworkinglab/tassen | 6e42ba79f83caa1bd6ecb40fd9bd1e9f8768ec09 | [
"Apache-2.0"
] | 4 | 2020-07-08T22:04:35.000Z | 2020-07-14T15:09:37.000Z | ptf/lib/runner.py | opennetworkinglab/tassen | 6e42ba79f83caa1bd6ecb40fd9bd1e9f8768ec09 | [
"Apache-2.0"
] | 1 | 2020-07-07T08:12:40.000Z | 2020-07-07T08:12:41.000Z | ptf/lib/runner.py | opennetworkinglab/tassen | 6e42ba79f83caa1bd6ecb40fd9bd1e9f8768ec09 | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python2
# Copyright 2013-present Barefoot Networks, Inc.
# SPDX-FileCopyrightText: 2018-present Open Networking Foundation
#
# SPDX-License-Identifier: Apache-2.0
import Queue
import argparse
import json
import logging
import os
import re
import subprocess
import sys
import threading
import time
from c... | 31.547101 | 91 | 0.605949 |
5427881b2cdb695dc79fdf0dbaacbc4dd2f6b718 | 178 | py | Python | rsebs/__init__.py | gabrielperezs/recycling-snapshots | b0707e883bb6037505af815877e4ef8ce544e35e | [
"Apache-2.0"
] | 1 | 2017-05-23T05:58:47.000Z | 2017-05-23T05:58:47.000Z | rsebs/__init__.py | gabrielperezs/recycling-snapshots | b0707e883bb6037505af815877e4ef8ce544e35e | [
"Apache-2.0"
] | null | null | null | rsebs/__init__.py | gabrielperezs/recycling-snapshots | b0707e883bb6037505af815877e4ef8ce544e35e | [
"Apache-2.0"
] | null | null | null | from .snapshots import set_client
from .snapshots import get_snapshots
from .snapshots import tag_snapshot
from .snapshots import set_drymode
from .snapshots import unset_drymode | 35.6 | 36 | 0.865169 |
54286060601c97e4e84de6381203dae2af8365e8 | 1,184 | py | Python | predict_form.py | HuginnM/UsedCarsUA | aa871c1bc6cdc1a84810db265c732b04cb4935f0 | [
"Apache-2.0"
] | null | null | null | predict_form.py | HuginnM/UsedCarsUA | aa871c1bc6cdc1a84810db265c732b04cb4935f0 | [
"Apache-2.0"
] | null | null | null | predict_form.py | HuginnM/UsedCarsUA | aa871c1bc6cdc1a84810db265c732b04cb4935f0 | [
"Apache-2.0"
] | null | null | null | from flask_wtf import FlaskForm
from wtforms import SubmitField, SelectField, IntegerField, FloatField, StringField
from wtforms.validators import DataRequired
import pandas as pd
uniq_vals = pd.read_csv("data/unique_cat_vals.csv", index_col=0)
| 56.380952 | 121 | 0.754223 |
5429177713786c59d64d5d6d11764c591147502b | 2,764 | py | Python | color.py | laplacetw/color-codes-bot | e7afb5b09e7c4a5dde6608917781cc6a0ea05287 | [
"MIT"
] | 1 | 2020-10-21T01:26:09.000Z | 2020-10-21T01:26:09.000Z | color.py | laplacetw/color-codes-bot | e7afb5b09e7c4a5dde6608917781cc6a0ea05287 | [
"MIT"
] | null | null | null | color.py | laplacetw/color-codes-bot | e7afb5b09e7c4a5dde6608917781cc6a0ea05287 | [
"MIT"
] | null | null | null | #!usr/bin/env python3
color_chart = {
'1C1':[13.24, 88.89, 228.98, 0.], '1N1':[14.2, 95.37, 233.82, 0.], '1N2':[12.95, 91.79, 219.5, 0.],
'1W1':[14.67, 103.64, 229.41, 0.], '1W2':[14.69, 106.34, 227.28, 0.], '2C0':[15.73, 134.68, 222.32, 0.],
'2C1':[14.57, 125.89, 220.69, 0.], '2C3':[13.7, 103.72, 199.4... | 86.375 | 109 | 0.48589 |
5429df166b3efe8e9b12e537d9c5a2b68d7af8f7 | 235 | py | Python | leetCode/algorithms/easy/occurrences_after_bigram.py | ferhatelmas/algo | a7149c7a605708bc01a5cd30bf5455644cefd04d | [
"WTFPL"
] | 25 | 2015-01-21T16:39:18.000Z | 2021-05-24T07:01:24.000Z | leetCode/algorithms/easy/occurrences_after_bigram.py | gauravsingh58/algo | 397859a53429e7a585e5f6964ad24146c6261326 | [
"WTFPL"
] | 2 | 2020-09-30T19:39:36.000Z | 2020-10-01T17:15:16.000Z | leetCode/algorithms/easy/occurrences_after_bigram.py | ferhatelmas/algo | a7149c7a605708bc01a5cd30bf5455644cefd04d | [
"WTFPL"
] | 15 | 2015-01-21T16:39:27.000Z | 2020-10-01T17:00:22.000Z | from typing import List
| 29.375 | 87 | 0.595745 |
542a62b48d45febc53b82e238fe6ed286841ea91 | 454 | py | Python | src/pyuwds3/utils/egocentric_spatial_relations.py | LAAS-HRI/uwds3 | 42390f62ed5701a32710341b01faa10efc448078 | [
"MIT"
] | 2 | 2020-08-19T06:15:14.000Z | 2021-05-23T09:55:18.000Z | src/pyuwds3/utils/egocentric_spatial_relations.py | LAAS-HRI/uwds3 | 42390f62ed5701a32710341b01faa10efc448078 | [
"MIT"
] | 5 | 2021-01-06T09:00:35.000Z | 2021-01-20T13:22:19.000Z | src/pyuwds3/utils/egocentric_spatial_relations.py | LAAS-HRI/uwds3 | 42390f62ed5701a32710341b01faa10efc448078 | [
"MIT"
] | 2 | 2020-11-18T17:34:43.000Z | 2021-05-23T16:14:17.000Z |
import math
from scipy.spatial.distance import euclidean
from ..types.bbox import BoundingBox
| 19.73913 | 44 | 0.634361 |
542b4553e4da40bd25e9c35ead38f8985d1d5c31 | 2,883 | py | Python | machine_replacement_action_probs.py | dsbrown1331/broil | 3c06e15c560db3242c0e331a2b16cc578a843606 | [
"MIT"
] | 1 | 2021-03-29T09:53:53.000Z | 2021-03-29T09:53:53.000Z | machine_replacement_action_probs.py | dsbrown1331/broil | 3c06e15c560db3242c0e331a2b16cc578a843606 | [
"MIT"
] | 1 | 2020-11-22T15:05:48.000Z | 2020-11-25T00:10:17.000Z | machine_replacement_action_probs.py | dsbrown1331/broil | 3c06e15c560db3242c0e331a2b16cc578a843606 | [
"MIT"
] | null | null | null | import bayesian_irl
import mdp_worlds
import utils
import mdp
import numpy as np
import scipy
import random
import generate_efficient_frontier
from machine_replacement import generate_posterior_samples
if __name__=="__main__":
seed = 1234
np.random.seed(seed)
scipy.random.seed(seed)
random.seed(seed)
... | 27.990291 | 131 | 0.687825 |
542b464eeb35182c67fc88683f7b87c523d2bec7 | 5,982 | py | Python | sequential/seq_smnist/train_args_seq_smnist.py | mariacer/cl_in_rnns | 333b8e03391600a8e3df7d684a3f171b135d273a | [
"Apache-2.0"
] | 26 | 2020-06-17T08:44:15.000Z | 2022-03-20T04:21:13.000Z | sequential/seq_smnist/train_args_seq_smnist.py | mariacer/cl_in_rnns | 333b8e03391600a8e3df7d684a3f171b135d273a | [
"Apache-2.0"
] | null | null | null | sequential/seq_smnist/train_args_seq_smnist.py | mariacer/cl_in_rnns | 333b8e03391600a8e3df7d684a3f171b135d273a | [
"Apache-2.0"
] | 4 | 2020-10-26T02:19:38.000Z | 2021-12-26T02:26:05.000Z | #!/usr/bin/env python3
# Copyright 2019 Benjamin Ehret, Maria Cervera
#
# 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 ... | 41.541667 | 80 | 0.674858 |
542b4d4125780654fe2bbd178dc02f72ba260ddd | 2,490 | py | Python | examples/compare.py | guo-yong-zhi/wordcloud2 | 43d34766323e8eec45d46eeaa98537849f48cd37 | [
"MIT"
] | null | null | null | examples/compare.py | guo-yong-zhi/wordcloud2 | 43d34766323e8eec45d46eeaa98537849f48cd37 | [
"MIT"
] | null | null | null | examples/compare.py | guo-yong-zhi/wordcloud2 | 43d34766323e8eec45d46eeaa98537849f48cd37 | [
"MIT"
] | null | null | null | from wordcloud2 import wordcloud as W
import os
from PIL import Image
stwords = {"us", "will"}
print("==Obama's==")
cs = W.randomscheme() #:Set1_8
as_ = W.randomangles() #(0,90,45,-45)
dens = 0.5 #not too high
wca = W.wordcloud(
W.processtext(open(W.pkgdir(W.WordCloud)+"/res/Barack Obama's First Inaugural Address... | 35.571429 | 104 | 0.685542 |
542b9661a1d12114a162b51bacab5cac808471e8 | 3,520 | py | Python | modules/insight/nbCurvesLevelSet.py | chrisidefix/devide | 99bfe156e710fa47ba7ae88b0ce1eef592a3a439 | [
"BSD-3-Clause"
] | 25 | 2015-08-24T16:05:14.000Z | 2020-12-09T20:07:14.000Z | modules/insight/nbCurvesLevelSet.py | chrisidefix/devide | 99bfe156e710fa47ba7ae88b0ce1eef592a3a439 | [
"BSD-3-Clause"
] | 1 | 2016-02-16T21:18:10.000Z | 2016-02-16T21:18:10.000Z | modules/insight/nbCurvesLevelSet.py | chrisidefix/devide | 99bfe156e710fa47ba7ae88b0ce1eef592a3a439 | [
"BSD-3-Clause"
] | 5 | 2016-02-16T20:05:37.000Z | 2020-01-31T11:27:39.000Z | # Copyright (c) Charl P. Botha, TU Delft
# All rights reserved.
# See COPYRIGHT for details.
import itk
import module_kits.itk_kit as itk_kit
from module_base import ModuleBase
from module_mixins import ScriptedConfigModuleMixin
| 32 | 76 | 0.600284 |
58087fdf8d89ae3ca538e157ca99613c2f7a205f | 2,835 | py | Python | setup.py | ThomasChiroux/ejabberd_external_auth_jwt | fce68cca70ca578b3c1c002a4dea2aa65e3150c1 | [
"MIT"
] | null | null | null | setup.py | ThomasChiroux/ejabberd_external_auth_jwt | fce68cca70ca578b3c1c002a4dea2aa65e3150c1 | [
"MIT"
] | null | null | null | setup.py | ThomasChiroux/ejabberd_external_auth_jwt | fce68cca70ca578b3c1c002a4dea2aa65e3150c1 | [
"MIT"
] | null | null | null | #
# Copyright 2018-2019 Happineo
#
"""setuptools installer for zamita."""
import os
import uuid
from setuptools import find_packages
from setuptools import setup
from setuptools.command.build_py import build_py
# local imports
from build_scripts.version import VersionInfo
HERE = os.path.abspath(os.path.dirname(__fi... | 27.794118 | 82 | 0.618342 |
5808c926d701d604229b7c9061a8576e5eb62676 | 4,724 | py | Python | Analysis/Feb2021/common_plotting.py | TimChild/dat_analysis | 2902e5cb2f2823a1c7a26faf6b3b6dfeb7633c73 | [
"MIT"
] | 2 | 2021-03-07T03:17:13.000Z | 2021-03-07T03:17:16.000Z | Analysis/Feb2021/common_plotting.py | TimChild/dat_analysis | 2902e5cb2f2823a1c7a26faf6b3b6dfeb7633c73 | [
"MIT"
] | 1 | 2021-03-09T00:00:52.000Z | 2021-03-09T00:00:52.000Z | Analysis/Feb2021/common_plotting.py | TimChild/dat_analysis | 2902e5cb2f2823a1c7a26faf6b3b6dfeb7633c73 | [
"MIT"
] | null | null | null | """
Sep 21 -- A few of the plots used in analysis, very far from a complete list, and probably most are too specific to be
useful again.
Moved useful functions from here.
"""
from __future__ import annotations
from typing import List, Callable, Optional, Union, TYPE_CHECKING
import numpy as np
from dat_analysis.anal... | 44.990476 | 120 | 0.556308 |
580a05b1f8e364040a8ccda54856a6eead097400 | 9,980 | py | Python | Code/sphero_learn.py | rvarga601/IER | 1cf05e641dea2fb3b4ad5329e3e556713cc199fe | [
"MIT"
] | null | null | null | Code/sphero_learn.py | rvarga601/IER | 1cf05e641dea2fb3b4ad5329e3e556713cc199fe | [
"MIT"
] | null | null | null | Code/sphero_learn.py | rvarga601/IER | 1cf05e641dea2fb3b4ad5329e3e556713cc199fe | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Created on Mon May 10 23:54:16 2021
@author: rolandvarga
"""
import gym
import numpy as np
import matplotlib.pyplot as plt
import time
from scipy.signal import savgol_filter
import pickle
#%matplotlib qt
#%matplotlib inline
# Set to 1 to repeat SARSA learning (With... | 30.993789 | 118 | 0.577154 |
580b61225012c491f65cb5e42655216093dbdb35 | 8,952 | py | Python | HW7/kernel_eigenface.py | joycenerd/Machine_Learning_2021 | ecb634a9f2f1112a393a9707ce69c3bc751c4542 | [
"MIT"
] | 1 | 2021-11-18T09:22:21.000Z | 2021-11-18T09:22:21.000Z | HW7/kernel_eigenface.py | joycenerd/Machine_Learning_2021 | ecb634a9f2f1112a393a9707ce69c3bc751c4542 | [
"MIT"
] | null | null | null | HW7/kernel_eigenface.py | joycenerd/Machine_Learning_2021 | ecb634a9f2f1112a393a9707ce69c3bc751c4542 | [
"MIT"
] | null | null | null | from scipy.spatial.distance import cdist
from numpy.linalg import eig, norm, pinv
import matplotlib.pyplot as plt
from PIL import Image
import numpy as np
import argparse
import ntpath
import glob
import os
parser = argparse.ArgumentParser()
parser.add_argument("--option", type=str, default="PCA",
... | 31.632509 | 106 | 0.601095 |
580c8290606fc382a91ddcb30034d1076a50dc58 | 18,427 | py | Python | duqo/optimization/predict.py | canbooo/pyRDO | f7143438aa30cc79587c9f35fc9ff6aa262fc4d3 | [
"BSD-3-Clause"
] | 11 | 2021-08-17T05:55:01.000Z | 2022-02-03T13:16:42.000Z | duqo/optimization/predict.py | canbooo/pyRDO | f7143438aa30cc79587c9f35fc9ff6aa262fc4d3 | [
"BSD-3-Clause"
] | null | null | null | duqo/optimization/predict.py | canbooo/pyRDO | f7143438aa30cc79587c9f35fc9ff6aa262fc4d3 | [
"BSD-3-Clause"
] | null | null | null | # -*- coding: utf-8 -*-
"""
Created on Fri Aug 9 15:33:47 2019
@author: Bogoclu
"""
import typing
import multiprocessing as mp
import warnings
import numpy as np
from scipy import stats
from .space import FullSpace
from duqo.proba import DS, MC, SUSE, ISPUD, FORM
from duqo.doe.lhs import make_doe
def _check_obj_w... | 35.920078 | 115 | 0.61475 |
580d37ef443f31d16e61142142999c038e7fd18f | 5,352 | py | Python | mymodule/twitter_json_parsing.py | sobkovych/TwitterFriendsMap | 7fb1a844264334fba443feba3830cca2c86b55c9 | [
"MIT"
] | null | null | null | mymodule/twitter_json_parsing.py | sobkovych/TwitterFriendsMap | 7fb1a844264334fba443feba3830cca2c86b55c9 | [
"MIT"
] | null | null | null | mymodule/twitter_json_parsing.py | sobkovych/TwitterFriendsMap | 7fb1a844264334fba443feba3830cca2c86b55c9 | [
"MIT"
] | 1 | 2020-02-26T09:20:17.000Z | 2020-02-26T09:20:17.000Z | """Parse json files."""
import json
import re
def search_for_key(final_key: str, tree: dict, space: list = []):
"""Search all data for a key.
:param final_key: the key
:param tree: the data
:param space: found values
:return: all found values
"""
if isinstance(tree, dict) and final_key in... | 32.047904 | 77 | 0.496076 |
580d445ca9f82fbb66ddc5c165290139ca728a53 | 2,795 | py | Python | meet/migrations/0001_initial.py | bjones-tech/speedy-meety | a7d557788a544b69fd6ad454d921d9cf02cfa636 | [
"MIT"
] | null | null | null | meet/migrations/0001_initial.py | bjones-tech/speedy-meety | a7d557788a544b69fd6ad454d921d9cf02cfa636 | [
"MIT"
] | null | null | null | meet/migrations/0001_initial.py | bjones-tech/speedy-meety | a7d557788a544b69fd6ad454d921d9cf02cfa636 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
# Generated by Django 1.9.2 on 2016-03-17 02:58
from __future__ import unicode_literals
from django.db import migrations, models
import django.db.models.deletion
import meet.models
| 43.671875 | 131 | 0.586047 |
580de9ae168cc442b87908dac6e8235e1d9361f3 | 284 | py | Python | setup.py | jrspruitt/pyfa_gpio | d0f189724b34a2a888dd01b33d237b79ace5becf | [
"MIT"
] | null | null | null | setup.py | jrspruitt/pyfa_gpio | d0f189724b34a2a888dd01b33d237b79ace5becf | [
"MIT"
] | null | null | null | setup.py | jrspruitt/pyfa_gpio | d0f189724b34a2a888dd01b33d237b79ace5becf | [
"MIT"
] | null | null | null | #!/usr/bin/env python
from setuptools import setup,find_packages
version = '0.1'
setup(
name='pyfa_gpio',
version=version,
description='',
author='Jason Pruitt',
url='https://github.com/jrspruitt/pyfa_gpio',
license='MIT',
packages = find_packages(),
)
| 17.75 | 49 | 0.661972 |
580ec4cbc90960d845dfc3bbcd5951593510c1c2 | 4,093 | py | Python | dps/env/basic/path_discovery.py | alcinos/dps | 5467db1216e9f9089376d2c71f524ced2382e4f6 | [
"Apache-2.0"
] | null | null | null | dps/env/basic/path_discovery.py | alcinos/dps | 5467db1216e9f9089376d2c71f524ced2382e4f6 | [
"Apache-2.0"
] | null | null | null | dps/env/basic/path_discovery.py | alcinos/dps | 5467db1216e9f9089376d2c71f524ced2382e4f6 | [
"Apache-2.0"
] | null | null | null | import tensorflow as tf
import numpy as np
from dps.register import RegisterBank
from dps.env import TensorFlowEnv
from dps.utils import Param, Config
config = Config(
build_env=build_env,
curriculum=[
dict(shape=(2, 2), threshold=6),
dict(shape=(3, 3), threshold=4),
dict(shape=(4, 4... | 36.221239 | 109 | 0.590765 |
5810e3bb40adfc4d345436082de3af836eeff704 | 14,812 | py | Python | utils/github/query.py | malkfilipp/ClickHouse | 79a206b092cd465731020f331bc41f6951dbe751 | [
"Apache-2.0"
] | 1 | 2019-09-16T11:07:32.000Z | 2019-09-16T11:07:32.000Z | utils/github/query.py | malkfilipp/ClickHouse | 79a206b092cd465731020f331bc41f6951dbe751 | [
"Apache-2.0"
] | null | null | null | utils/github/query.py | malkfilipp/ClickHouse | 79a206b092cd465731020f331bc41f6951dbe751 | [
"Apache-2.0"
] | null | null | null | # -*- coding: utf-8 -*-
import requests
| 41.96034 | 128 | 0.369498 |
5811d6d7e749badbaa3acffda48486b057d48a0e | 4,404 | py | Python | mortgage/mortgage.py | roelbertens/mortgages | b5fe415024933c772e6c7c57f041bf065ac86176 | [
"MIT"
] | 1 | 2019-08-19T07:09:58.000Z | 2019-08-19T07:09:58.000Z | mortgage/mortgage.py | roelbertens/mortgages | b5fe415024933c772e6c7c57f041bf065ac86176 | [
"MIT"
] | null | null | null | mortgage/mortgage.py | roelbertens/mortgages | b5fe415024933c772e6c7c57f041bf065ac86176 | [
"MIT"
] | null | null | null | from typing import List
import matplotlib.pyplot as plt
def _align_mortgages(periods_a: List[int],
periods_b: List[int],
fees_a: List[int],
fees_b: List[int]) -> (List[int], List[int]):
""" Align periods and fees of two mortgages and compute the exa... | 38.631579 | 98 | 0.584923 |
58127a028ca7d4bb09bc84dec02f9d31b1e190c3 | 32,827 | py | Python | training/wml_train.py | corvy/MAX-Object-Detector | 2a21183e6bb9d0c35bac297ee3cf1fc67f4c048f | [
"Apache-2.0"
] | 1 | 2019-10-25T11:36:46.000Z | 2019-10-25T11:36:46.000Z | training/wml_train.py | karankrish/MAX-Image-Segmenter | 2d5d080f4a3d7db1aa4cf320ab35b3e157a6f485 | [
"Apache-2.0"
] | 1 | 2019-07-08T17:58:45.000Z | 2019-09-05T18:07:45.000Z | training/wml_train.py | karankrish/MAX-Image-Segmenter | 2d5d080f4a3d7db1aa4cf320ab35b3e157a6f485 | [
"Apache-2.0"
] | 1 | 2019-10-30T20:42:46.000Z | 2019-10-30T20:42:46.000Z | #!/usr/bin/env python
#
# Copyright 2018-2019 IBM Corp. 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 requ... | 41.03375 | 79 | 0.559113 |
58146fc12bca47d19303bba6584622a1dcef7fcd | 57 | py | Python | tests/unit/sim_client/__init__.py | rkm/bluebird | 2325ebb151724d4444c092c095a040d7365dda79 | [
"MIT"
] | 8 | 2019-01-29T15:19:39.000Z | 2020-07-16T03:55:36.000Z | tests/unit/sim_client/__init__.py | rkm/bluebird | 2325ebb151724d4444c092c095a040d7365dda79 | [
"MIT"
] | 46 | 2019-02-08T14:23:11.000Z | 2021-04-06T13:45:10.000Z | tests/unit/sim_client/__init__.py | rkm/bluebird | 2325ebb151724d4444c092c095a040d7365dda79 | [
"MIT"
] | 3 | 2019-05-06T14:18:07.000Z | 2021-06-17T10:39:59.000Z | """
Module contains tests for the sim_client package
"""
| 14.25 | 48 | 0.736842 |
581495876b03363b5fef74a09d461c434b90c0d7 | 8,344 | py | Python | glog.py | leoll2/python-glog | c809d16352bf061d0ee38e590c6f28d553d740e7 | [
"BSD-2-Clause"
] | null | null | null | glog.py | leoll2/python-glog | c809d16352bf061d0ee38e590c6f28d553d740e7 | [
"BSD-2-Clause"
] | null | null | null | glog.py | leoll2/python-glog | c809d16352bf061d0ee38e590c6f28d553d740e7 | [
"BSD-2-Clause"
] | null | null | null | """A simple Google-style logging wrapper."""
import logging
import time
import traceback
import os
import sys
import gflags as flags
FLAGS = flags.FLAGS
debug = logging.debug
info = logging.info
warning = logging.warning
warn = logging.warning
error = logging.error
exception = logging.exception
fatal = logging.... | 27.447368 | 90 | 0.615532 |
581495ab37cf4df801b88c86040220d6464bbc32 | 4,141 | py | Python | ref_rna.py | entn-at/warp-rna | f6bf19634564068f23f9906373754e04f9b653a3 | [
"MIT"
] | 39 | 2019-08-11T09:06:55.000Z | 2022-03-30T03:24:34.000Z | ref_rna.py | entn-at/warp-rna | f6bf19634564068f23f9906373754e04f9b653a3 | [
"MIT"
] | null | null | null | ref_rna.py | entn-at/warp-rna | f6bf19634564068f23f9906373754e04f9b653a3 | [
"MIT"
] | 6 | 2019-12-11T03:02:48.000Z | 2021-11-29T09:01:51.000Z | """
Python reference implementation of the Recurrent Neural Aligner.
Author: Ivan Sorokin
Based on the papers:
- "Recurrent Neural Aligner: An Encoder-Decoder Neural Network Model for Sequence to Sequence Mapping"
Hasim Sak, et al., 2017
- "Extending Recurrent Neural Aligner for Streaming End-to-End Speech Rec... | 26.544872 | 103 | 0.59744 |
581517f5427032699dff194265e55b485b52ab39 | 2,994 | py | Python | tests/coretests.py | thomasms/coiny | 1f51eac2542e46b03abd9f66fd3b58fbd80cb177 | [
"MIT"
] | null | null | null | tests/coretests.py | thomasms/coiny | 1f51eac2542e46b03abd9f66fd3b58fbd80cb177 | [
"MIT"
] | null | null | null | tests/coretests.py | thomasms/coiny | 1f51eac2542e46b03abd9f66fd3b58fbd80cb177 | [
"MIT"
] | null | null | null | import unittest
from typing import Any
from coiny.core import CoinPrice, CoinyQueue, CoinySession, price_now_url, price_task
from coiny.utils import NullCoinPrice
__all__ = ["PriceTaskTests"]
| 34.022727 | 85 | 0.62024 |
5816e949ba4a9d3600362e45768d66548fbd4d4b | 969 | py | Python | legacy/dx/simulator/simulator_diagnoser/test/graph/traversal/forward_test.py | GaloisInc/adapt | 2ccff778d3e77505899266572f8f7caacb5b630f | [
"BSD-3-Clause"
] | 2 | 2020-04-09T13:04:25.000Z | 2021-09-24T14:17:26.000Z | legacy/dx/simulator/simulator_diagnoser/test/graph/traversal/forward_test.py | GaloisInc/adapt | 2ccff778d3e77505899266572f8f7caacb5b630f | [
"BSD-3-Clause"
] | null | null | null | legacy/dx/simulator/simulator_diagnoser/test/graph/traversal/forward_test.py | GaloisInc/adapt | 2ccff778d3e77505899266572f8f7caacb5b630f | [
"BSD-3-Clause"
] | 3 | 2019-09-20T20:49:54.000Z | 2021-09-02T17:33:47.000Z | import unittest
from simulator_diagnoser.graph import InmemoryGraph
from simulator_diagnoser.graph.traversal import ForwardAnalysis
if __name__ == '__main__':
unittest.main()
| 24.846154 | 69 | 0.49742 |
581774fbaaecfebcc97c105cd9ba5717bc57c3de | 5,396 | py | Python | SONOS/sonos-fadein-alarm.py | tksunw/IoT | 2148c49e9a90822400f195be7b1de3f8e8b8ba2a | [
"MIT"
] | 1 | 2018-01-30T23:30:27.000Z | 2018-01-30T23:30:27.000Z | SONOS/sonos-fadein-alarm.py | tksunw/IoT | 2148c49e9a90822400f195be7b1de3f8e8b8ba2a | [
"MIT"
] | 1 | 2018-02-14T19:58:56.000Z | 2018-02-14T19:58:56.000Z | SONOS/sonos-fadein-alarm.py | tksunw/IoT | 2148c49e9a90822400f195be7b1de3f8e8b8ba2a | [
"MIT"
] | 2 | 2018-02-13T18:52:09.000Z | 2021-09-29T14:27:49.000Z | #!/usr/bin/python
# -*- coding: utf-8 -*-
'''
sonos-fadein-alarm.py - a gentle alarm using Sonos Favorites.
This module allows a user to choose a SONOS favorite channel to
play for a gentle alarm. Select the maximum desired volume, the
number of minutes over which to ramp volume from 0 to the chosen
maxium, and choose... | 38.542857 | 137 | 0.623981 |
58183b1abecb86537c0a52b35966e7d8ef3e9a5f | 5,775 | py | Python | Agent5_a_0_5_knots_512_d_0_02/step_node_Agent6_rewards.py | schigeru/Bachelorarbeit_Code | 261b2552221f768e7022abc60a4e5a7d2fedbbae | [
"MIT"
] | null | null | null | Agent5_a_0_5_knots_512_d_0_02/step_node_Agent6_rewards.py | schigeru/Bachelorarbeit_Code | 261b2552221f768e7022abc60a4e5a7d2fedbbae | [
"MIT"
] | null | null | null | Agent5_a_0_5_knots_512_d_0_02/step_node_Agent6_rewards.py | schigeru/Bachelorarbeit_Code | 261b2552221f768e7022abc60a4e5a7d2fedbbae | [
"MIT"
] | null | null | null | #!/usr/bin/env python
import math
import os
import numpy as np
import time
import sys
import copy
import rospy
import moveit_msgs.msg
import geometry_msgs.msg
import random
import csv
from sensor_msgs.msg import JointState
from gazebo_msgs.msg import LinkStates
from gazebo_msgs.msg import LinkState
from std_msgs.msg i... | 35.429448 | 151 | 0.675152 |
5818909f1789bffb946f4dcc647ac54b08e00f22 | 10,043 | py | Python | pwnlib/elf/corefile.py | jdsecurity/binjitsu | 999ad632004bfc3e623eead20eb11de98fc1f4dd | [
"MIT"
] | 5 | 2018-05-15T13:00:56.000Z | 2020-02-09T14:29:00.000Z | pwnlib/elf/corefile.py | FDlucifer/binjitsu | 999ad632004bfc3e623eead20eb11de98fc1f4dd | [
"MIT"
] | null | null | null | pwnlib/elf/corefile.py | FDlucifer/binjitsu | 999ad632004bfc3e623eead20eb11de98fc1f4dd | [
"MIT"
] | 6 | 2017-09-07T02:31:11.000Z | 2021-07-05T16:59:18.000Z | import collections
import ctypes
import elftools
from elftools.common.utils import roundup, struct_parse
from elftools.common.py3compat import bytes2str
from elftools.construct import CString
from ..context import context
from ..log import getLogger
from .datatypes import *
from .elf import ELF
from ..tubes.tube impo... | 34.631034 | 103 | 0.54416 |
5819716bac9c4b729336569c993ab6648380ee01 | 2,875 | py | Python | kNN.py | skywind3000/ml | d3ac3d6070b66d84e25537915ee634723ddb8c51 | [
"MIT"
] | 9 | 2019-03-25T02:14:23.000Z | 2020-05-19T20:46:10.000Z | kNN.py | skywind3000/ml | d3ac3d6070b66d84e25537915ee634723ddb8c51 | [
"MIT"
] | null | null | null | kNN.py | skywind3000/ml | d3ac3d6070b66d84e25537915ee634723ddb8c51 | [
"MIT"
] | 2 | 2020-07-06T04:44:02.000Z | 2022-02-17T01:27:55.000Z | from __future__ import print_function
import numpy as np
import operator
import os
import sys
if sys.version_info[0] >= 3:
xrange = range
# kNN classifier
# load image
# hand writing classifier
# testing case
if __name__ == '__main__':
test3()
| 33.823529 | 85 | 0.619478 |
5819a9286725e2bb1d31cefd9b8edf4e2e05b208 | 642 | py | Python | simfin/revenue/personal_taxes.py | CREEi-models/simfin | a7c632ac8bc8f795cd46028c1a49e65a1c1b44eb | [
"MIT"
] | 1 | 2021-06-11T15:16:13.000Z | 2021-06-11T15:16:13.000Z | simfin/revenue/personal_taxes.py | CREEi-models/simfin | a7c632ac8bc8f795cd46028c1a49e65a1c1b44eb | [
"MIT"
] | 1 | 2021-06-07T14:39:27.000Z | 2021-06-07T14:39:27.000Z | simfin/revenue/personal_taxes.py | CREEi-models/simfin | a7c632ac8bc8f795cd46028c1a49e65a1c1b44eb | [
"MIT"
] | 1 | 2021-03-17T03:52:21.000Z | 2021-03-17T03:52:21.000Z | from simfin.tools import account
| 33.789474 | 95 | 0.65109 |
5819cc4c01f213155dbdad2c086e2c95b1ccd432 | 16,094 | py | Python | pandaserver/brokerage/PandaSiteIDs.py | rybkine/panda-server | 30fdeaa658a38fe2049849446c300c1e1f5b5231 | [
"Apache-2.0"
] | 1 | 2019-08-30T13:47:51.000Z | 2019-08-30T13:47:51.000Z | pandaserver/brokerage/PandaSiteIDs.py | mkycanopus/panda-server | 0f7c36800c033fada8bbde53dceaab98770b6df2 | [
"Apache-2.0"
] | null | null | null | pandaserver/brokerage/PandaSiteIDs.py | mkycanopus/panda-server | 0f7c36800c033fada8bbde53dceaab98770b6df2 | [
"Apache-2.0"
] | null | null | null | # !!!!!!! This file is OBSOLETE. Its content has been absorbed into pilotController.py in the autopilot repository.
# !!!!!!! Questions to Torre Wenaus.
PandaSiteIDs = {
'AGLT2' : {'nickname':'AGLT2-condor','status':'OK'},
'ALBERTA-LCG2' : {'nickname':'ALBERTA-LCG2-lcgce01-atlas-lcgpb... | 80.874372 | 115 | 0.541258 |
581d47d6e3101d07297475a1a84d27b2898647b8 | 1,002 | py | Python | explain.py | jcsalterego/gh-contest | 033f87c5338e3066ee4c80df2ee8e1ae4d6f1c7b | [
"BSD-3-Clause"
] | 1 | 2015-11-05T02:50:57.000Z | 2015-11-05T02:50:57.000Z | explain.py | jcsalterego/gh-contest | 033f87c5338e3066ee4c80df2ee8e1ae4d6f1c7b | [
"BSD-3-Clause"
] | null | null | null | explain.py | jcsalterego/gh-contest | 033f87c5338e3066ee4c80df2ee8e1ae4d6f1c7b | [
"BSD-3-Clause"
] | null | null | null | #!/usr/bin/env python
from pprint import pprint
from matchmaker.database import *
import sys
if __name__ == '__main__':
sys.exit(main(sys.argv))
| 22.266667 | 58 | 0.505988 |
581e242497be1d7d21237861371ea688ae66e1e5 | 3,862 | py | Python | qiskit/pulse/commands/command.py | EnriqueL8/qiskit-terra | 08b801f1f8598c4e44680b4a75c232ed92db0262 | [
"Apache-2.0"
] | 2 | 2019-06-28T19:58:42.000Z | 2019-07-26T05:04:02.000Z | qiskit/pulse/commands/command.py | EnriqueL8/qiskit-terra | 08b801f1f8598c4e44680b4a75c232ed92db0262 | [
"Apache-2.0"
] | 3 | 2018-11-13T17:33:37.000Z | 2018-12-03T09:35:00.000Z | qiskit/pulse/commands/command.py | EnriqueL8/qiskit-terra | 08b801f1f8598c4e44680b4a75c232ed92db0262 | [
"Apache-2.0"
] | 2 | 2017-12-03T15:48:14.000Z | 2018-03-11T13:08:03.000Z | # -*- coding: utf-8 -*-
# This code is part of Qiskit.
#
# (C) Copyright IBM 2017, 2019.
#
# This code is licensed under the Apache License, Version 2.0. You may
# obtain a copy of this license in the LICENSE.txt file in the root directory
# of this source tree or at http://www.apache.org/licenses/LICENSE-2.0.
#
# Any... | 31.398374 | 98 | 0.599689 |
581f418d3f23d0acfebe881f3102cd64dfbdffef | 6,654 | py | Python | data_loader/data_loaders.py | brendanwallison/birds | b70c01b8c953dfa172c65a51f7bdf100e47853d3 | [
"MIT"
] | null | null | null | data_loader/data_loaders.py | brendanwallison/birds | b70c01b8c953dfa172c65a51f7bdf100e47853d3 | [
"MIT"
] | null | null | null | data_loader/data_loaders.py | brendanwallison/birds | b70c01b8c953dfa172c65a51f7bdf100e47853d3 | [
"MIT"
] | null | null | null | from torchvision import datasets, transforms
from torchvision.transforms import functional as TF
from base import BaseDataLoader
from six.moves import urllib
from parse_config import ConfigParser
# downloads
import requests
import json
from collections import Counter
import os
import errno
import csv
import numpy as ... | 37.382022 | 172 | 0.622483 |
5820628189dcbe4c683064fd6478349ee7f02524 | 5,855 | py | Python | stockscanner/model/portfolio/portfolio.py | adityazagade/StockScanner | 4aecf886a8858757e4720b68d0af5ed94f4d371a | [
"Apache-2.0"
] | null | null | null | stockscanner/model/portfolio/portfolio.py | adityazagade/StockScanner | 4aecf886a8858757e4720b68d0af5ed94f4d371a | [
"Apache-2.0"
] | null | null | null | stockscanner/model/portfolio/portfolio.py | adityazagade/StockScanner | 4aecf886a8858757e4720b68d0af5ed94f4d371a | [
"Apache-2.0"
] | null | null | null | from datetime import date
from typing import List
from stockscanner.model.asset.asset_type import AssetType
from stockscanner.model.exceptions.exceptions import AssetNotFoundException
from stockscanner.model.asset.asset import Asset
from stockscanner.model.asset.cash import Cash
from stockscanner.model.asset.debt impo... | 37.056962 | 113 | 0.640649 |
5820f326461279dab8c970a64d716534511d2f87 | 2,478 | py | Python | python/zdl/error_logger/error_logger/url_rules/report.py | wjiec/packages | 4ccaf8f717265a1f8a9af533f9a998b935efb32a | [
"MIT"
] | null | null | null | python/zdl/error_logger/error_logger/url_rules/report.py | wjiec/packages | 4ccaf8f717265a1f8a9af533f9a998b935efb32a | [
"MIT"
] | 1 | 2016-09-15T07:06:15.000Z | 2016-09-15T07:06:15.000Z | python/zdl/error_logger/error_logger/url_rules/report.py | wjiec/packages | 4ccaf8f717265a1f8a9af533f9a998b935efb32a | [
"MIT"
] | null | null | null | #!/usr/bin/env python
#
# Copyright (C) 2017
import json
import time
from error_logger.url_rules import _base_url_rule
# from error_logger.net import sms_notification, email_notification
from error_logger.utils import generic
| 36.441176 | 84 | 0.506053 |
58230301eafe03e15cb587a17b91ac8b8de815f2 | 246 | py | Python | cli/commands/update.py | gamesbrainiac/cli | bba7285607a8644911f720d1ceb1404ab502bf00 | [
"Apache-2.0"
] | null | null | null | cli/commands/update.py | gamesbrainiac/cli | bba7285607a8644911f720d1ceb1404ab502bf00 | [
"Apache-2.0"
] | null | null | null | cli/commands/update.py | gamesbrainiac/cli | bba7285607a8644911f720d1ceb1404ab502bf00 | [
"Apache-2.0"
] | null | null | null | # -*- coding: utf-8 -*-
import click
from .. import cli
| 16.4 | 52 | 0.630081 |
5823914afc52a344ae37dba70fad832cd069531a | 2,397 | py | Python | test/test_sl/test_model/test_data.py | jlaumonier/mlsurvey | 373598d067c7f0930ba13fe8da9756ce26eecbaf | [
"MIT"
] | null | null | null | test/test_sl/test_model/test_data.py | jlaumonier/mlsurvey | 373598d067c7f0930ba13fe8da9756ce26eecbaf | [
"MIT"
] | null | null | null | test/test_sl/test_model/test_data.py | jlaumonier/mlsurvey | 373598d067c7f0930ba13fe8da9756ce26eecbaf | [
"MIT"
] | null | null | null | import unittest
import numpy as np
import pandas as pd
import mlsurvey as mls
| 35.776119 | 93 | 0.570296 |
582469a40acf21b2f0921b0060688c700c098a03 | 1,126 | py | Python | baidu_verify_response.py | CodingDogzxg/Verifycode_ocr | 6f1bdac2137993695cb4591afd1b47931680b204 | [
"MIT"
] | null | null | null | baidu_verify_response.py | CodingDogzxg/Verifycode_ocr | 6f1bdac2137993695cb4591afd1b47931680b204 | [
"MIT"
] | null | null | null | baidu_verify_response.py | CodingDogzxg/Verifycode_ocr | 6f1bdac2137993695cb4591afd1b47931680b204 | [
"MIT"
] | null | null | null | # encoding:utf-8
import requests
import base64
import time
'''
'''
request_url = "https://aip.baidubce.com/rest/2.0/ocr/v1/general_basic"
access_token = '' # AItoken access
request_url = request_url + "?access_token=" + access_token
headers = {'content-type': 'application/x-www-form-urlencoded'}
for file_index in... | 35.1875 | 98 | 0.619005 |
5824ba4bea2f64074dbcd56d9e462c95a3407e0f | 11,478 | py | Python | nets/efficientdet_training.py | BikesSaver/efficientdet-pytorch | c1e02484733cf2080ecb2ee57c184038a77a09e8 | [
"MIT"
] | 1 | 2020-09-17T00:51:38.000Z | 2020-09-17T00:51:38.000Z | nets/efficientdet_training.py | BikesSaver/efficientdet-pytorch | c1e02484733cf2080ecb2ee57c184038a77a09e8 | [
"MIT"
] | null | null | null | nets/efficientdet_training.py | BikesSaver/efficientdet-pytorch | c1e02484733cf2080ecb2ee57c184038a77a09e8 | [
"MIT"
] | null | null | null |
from random import shuffle
import numpy as np
import torch
import torch.nn as nn
import math
import torch.nn.functional as F
import cv2
from matplotlib.colors import rgb_to_hsv, hsv_to_rgb
from PIL import Image
from .RepulsionLoss.my_repulsion_loss import repulsion
| 37.756579 | 141 | 0.560202 |
58252e686b16a8b93824251a6782b7d24afd2761 | 267 | py | Python | project/wsgi.py | devluci/django-rest-base-boilerplate | 0cf512e00aca66ebf9908351527d701cd421ccd4 | [
"MIT"
] | null | null | null | project/wsgi.py | devluci/django-rest-base-boilerplate | 0cf512e00aca66ebf9908351527d701cd421ccd4 | [
"MIT"
] | null | null | null | project/wsgi.py | devluci/django-rest-base-boilerplate | 0cf512e00aca66ebf9908351527d701cd421ccd4 | [
"MIT"
] | null | null | null | import os
from django.core.wsgi import get_wsgi_application
from rest_base.utils import dotenv
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'project.settings')
dotenv.load(os.path.join(os.path.dirname(__file__), '../.env'))
application = get_wsgi_application()
| 26.7 | 67 | 0.797753 |
5825efbd85281c5ef1426be58d4c0871b10dcdf9 | 3,445 | py | Python | tests/test_coco_dataset.py | petersiemen/CVND---Image-Captioning-Project | 53d15c5f2b9d5e04b007f4f8b1e4f9dd17425c06 | [
"MIT"
] | null | null | null | tests/test_coco_dataset.py | petersiemen/CVND---Image-Captioning-Project | 53d15c5f2b9d5e04b007f4f8b1e4f9dd17425c06 | [
"MIT"
] | null | null | null | tests/test_coco_dataset.py | petersiemen/CVND---Image-Captioning-Project | 53d15c5f2b9d5e04b007f4f8b1e4f9dd17425c06 | [
"MIT"
] | null | null | null | from .context import CoCoDataset
import os
from torchvision import transforms
import torch.utils.data as data
from src.data_loader import get_loader
from context import COCO_SMALL
from context import clean_sentence
| 39.147727 | 93 | 0.608128 |
5828ffc478a57b5d3a54d1d5409d86dcb72100d1 | 5,019 | py | Python | test/retro-fuse-test.py | jaylogue/retro-fuse | b300865c1aa4c38930adea66de364f182c73b3b5 | [
"Apache-2.0"
] | 28 | 2021-02-23T06:00:16.000Z | 2022-02-28T13:38:48.000Z | test/retro-fuse-test.py | jaylogue/retro-fuse | b300865c1aa4c38930adea66de364f182c73b3b5 | [
"Apache-2.0"
] | 3 | 2021-09-22T12:37:59.000Z | 2022-02-01T00:33:25.000Z | test/retro-fuse-test.py | jaylogue/retro-fuse | b300865c1aa4c38930adea66de364f182c73b3b5 | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python3
#
# Copyright 2021 Jay Logue
#
# 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 la... | 38.312977 | 139 | 0.695557 |
582a2d15de4e22e6a4241b45670672383e57c857 | 387 | py | Python | docker/app.py | dramasamy/kubernetes_training | a5f48d540b7b6e9a79b5ab60f62a13a792f1b0e5 | [
"Apache-2.0"
] | 1 | 2022-03-22T22:31:32.000Z | 2022-03-22T22:31:32.000Z | docker/app.py | dramasamy/training | af7b9352b56c10aaa957062f24f1302a7a4c5797 | [
"Apache-2.0"
] | null | null | null | docker/app.py | dramasamy/training | af7b9352b56c10aaa957062f24f1302a7a4c5797 | [
"Apache-2.0"
] | null | null | null | #! /bin/python
from flask import Flask
app = Flask(__name__)
if __name__ == '__main__':
app.run(host='0.0.0.0')
| 13.821429 | 40 | 0.596899 |
582b2e616da4b6c095b0fcc22d4f757b4b8fddc7 | 4,374 | py | Python | creme/cluster/k_means.py | tweakyllama/creme | 6bb8e34789947a943e7e6a8a1af1341e4c1de144 | [
"BSD-3-Clause"
] | null | null | null | creme/cluster/k_means.py | tweakyllama/creme | 6bb8e34789947a943e7e6a8a1af1341e4c1de144 | [
"BSD-3-Clause"
] | null | null | null | creme/cluster/k_means.py | tweakyllama/creme | 6bb8e34789947a943e7e6a8a1af1341e4c1de144 | [
"BSD-3-Clause"
] | 2 | 2021-06-20T09:29:38.000Z | 2021-06-23T07:47:21.000Z | import collections
import numpy as np
from sklearn import utils
from .. import base
__all__ = ['KMeans']
| 37.384615 | 123 | 0.633973 |
582ee3ae3eed760c8ee30d3cb820c5796139122b | 42,165 | py | Python | fasttrips/TAZ.py | pedrocamargo/fast-trips | a2549936b2707b00d6c21b4e6ae4be8fefd0aa46 | [
"Apache-2.0"
] | 3 | 2017-11-03T00:18:23.000Z | 2020-11-30T18:54:46.000Z | fasttrips/TAZ.py | pedrocamargo/fast-trips | a2549936b2707b00d6c21b4e6ae4be8fefd0aa46 | [
"Apache-2.0"
] | null | null | null | fasttrips/TAZ.py | pedrocamargo/fast-trips | a2549936b2707b00d6c21b4e6ae4be8fefd0aa46 | [
"Apache-2.0"
] | null | null | null | from __future__ import print_function
from __future__ import division
from builtins import str
from builtins import object
__copyright__ = "Copyright 2015 Contributing Entities"
__license__ = """
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with... | 57.681259 | 157 | 0.628958 |
58309191f39ca5397068401c1360251a2a11c48a | 2,686 | py | Python | tests/test_stardist2D.py | ianbgroves/stardist | 6524c27d01c625dabfd75b1443dd46ccb1cb3dcd | [
"BSD-3-Clause"
] | 1 | 2021-02-05T11:59:39.000Z | 2021-02-05T11:59:39.000Z | tests/test_stardist2D.py | ianbgroves/stardist | 6524c27d01c625dabfd75b1443dd46ccb1cb3dcd | [
"BSD-3-Clause"
] | 1 | 2020-06-17T09:06:29.000Z | 2020-06-17T09:06:29.000Z | tests/test_stardist2D.py | ianbgroves/stardist | 6524c27d01c625dabfd75b1443dd46ccb1cb3dcd | [
"BSD-3-Clause"
] | null | null | null | import numpy as np
from stardist import star_dist, relabel_image_stardist
import pytest
from utils import random_image, real_image2d, check_similar, circle_image
if __name__ == '__main__':
lbl1, lbl2 = test_relabel_consistency(32,eps = (.7,1), plot = True)
| 36.794521 | 95 | 0.655249 |
583228f93313973cc02c96e9d032138aeb10b053 | 26,395 | py | Python | all_call/infer_new.py | jbudis/dante | 90177c33825d5f9ce3fba5463092fbcf20b72fe2 | [
"Apache-2.0"
] | 4 | 2018-09-28T14:50:47.000Z | 2021-08-09T12:46:12.000Z | all_call/infer_new.py | jbudis/dante | 90177c33825d5f9ce3fba5463092fbcf20b72fe2 | [
"Apache-2.0"
] | 6 | 2019-01-02T13:08:31.000Z | 2021-03-25T21:45:40.000Z | all_call/infer_new.py | jbudis/dante | 90177c33825d5f9ce3fba5463092fbcf20b72fe2 | [
"Apache-2.0"
] | 1 | 2017-12-12T10:38:26.000Z | 2017-12-12T10:38:26.000Z | import math
import functools
from scipy.stats import binom
import numpy as np
import itertools
import sys
import matplotlib.pyplot as plt
import matplotlib.patheffects as PathEffects
from copy import copy
def combine_distribs(deletes, inserts):
"""
Combine insert and delete models/distributions
:param de... | 44.21273 | 183 | 0.633567 |
583374a576c3edb6be71e460848c9177cb1eee6a | 18,398 | py | Python | createbag.py | axfelix/moveit | a0d4207fdd90af8f05a5c55b4b247757cd6d7bb2 | [
"Unlicense"
] | null | null | null | createbag.py | axfelix/moveit | a0d4207fdd90af8f05a5c55b4b247757cd6d7bb2 | [
"Unlicense"
] | null | null | null | createbag.py | axfelix/moveit | a0d4207fdd90af8f05a5c55b4b247757cd6d7bb2 | [
"Unlicense"
] | null | null | null | """
GUI tool to create a Bag from a filesystem folder.
"""
import sys
import os
import shutil
import bagit
import platform
import random
import string
import re
from time import strftime
import subprocess
from paramiko import SSHClient
from paramiko import AutoAddPolicy
from paramiko import AuthenticationException
fro... | 35.655039 | 236 | 0.72709 |
583491d9c92a8b53e562e95c5e8cebcf67dc3f00 | 10,937 | py | Python | code/python-neo/neo/core/basesignal.py | qniksefat/macaque_brain_causality_test | 24cd5caee3ae79066ca37844cab931d04dcad977 | [
"CC-BY-4.0",
"BSD-3-Clause"
] | null | null | null | code/python-neo/neo/core/basesignal.py | qniksefat/macaque_brain_causality_test | 24cd5caee3ae79066ca37844cab931d04dcad977 | [
"CC-BY-4.0",
"BSD-3-Clause"
] | null | null | null | code/python-neo/neo/core/basesignal.py | qniksefat/macaque_brain_causality_test | 24cd5caee3ae79066ca37844cab931d04dcad977 | [
"CC-BY-4.0",
"BSD-3-Clause"
] | null | null | null | # -*- coding: utf-8 -*-
'''
This module implements :class:`BaseSignal`, an array of signals.
This is a parent class from which all signal objects inherit:
:class:`AnalogSignal` and :class:`IrregularlySampledSignal`
:class:`BaseSignal` inherits from :class:`quantities.Quantity`, which
inherits from :class:`numpy.ar... | 37.713793 | 98 | 0.633172 |
5835a4f4779f435b367bd40c05663242713c67ad | 3,038 | py | Python | Morocco model/scripts/cropland_processing.py | KTH-dESA/FAO | 74459217a9e8ad8107b1d3a96fd52eebd93daebd | [
"MIT"
] | 3 | 2020-09-17T11:12:52.000Z | 2021-03-31T09:24:02.000Z | Morocco model/scripts/cropland_processing.py | KTH-dESA/FAO | 74459217a9e8ad8107b1d3a96fd52eebd93daebd | [
"MIT"
] | 101 | 2019-10-02T10:16:28.000Z | 2021-06-05T06:42:55.000Z | Morocco model/scripts/cropland_processing.py | KTH-dESA/FAO | 74459217a9e8ad8107b1d3a96fd52eebd93daebd | [
"MIT"
] | 2 | 2020-02-23T13:28:00.000Z | 2021-03-31T10:02:46.000Z | import sys
sys.path.append("..") #this is to add the avobe folder to the package directory
import geopandas as gpd
import pandas as pd
import numpy as np
import os
from nexustool.gis_tools import download_data, create_time_data, get_area_share, get_zonal_stats
from nexustool.weap_tools import reproject_raster, sample_r... | 40.506667 | 195 | 0.711982 |
58394701554d3a507c68ce7bd347905779a7cb27 | 891 | py | Python | dl_data_validation_toolset/framework/report_gen/group.py | kwierman/dl_data_validation_toolset | fb0486abd000ba28c6474f8979762c92fb4ee038 | [
"MIT"
] | 1 | 2017-08-24T00:46:47.000Z | 2017-08-24T00:46:47.000Z | dl_data_validation_toolset/framework/report_gen/group.py | kwierman/dl_data_validation_toolset | fb0486abd000ba28c6474f8979762c92fb4ee038 | [
"MIT"
] | 177 | 2017-04-10T23:03:27.000Z | 2022-03-28T22:07:54.000Z | dl_data_validation_toolset/framework/report_gen/group.py | HEP-DL/dl_data_validation_toolset | fb0486abd000ba28c6474f8979762c92fb4ee038 | [
"MIT"
] | null | null | null | from .file import FileGenerator
from ..report.group import GroupReport
import logging
import asyncio
import os
| 31.821429 | 75 | 0.725028 |
583a1302a3f7562a97c1476d70bc500c24d60c4f | 174 | py | Python | glanceclient/common/exceptions.py | citrix-openstack-build/python-glanceclient | 32d9c42816b608220ae5692e573142dab6534604 | [
"Apache-2.0"
] | 1 | 2019-09-11T11:56:19.000Z | 2019-09-11T11:56:19.000Z | tools/dockerize/webportal/usr/lib/python2.7/site-packages/glanceclient/common/exceptions.py | foruy/openflow-multiopenstack | 74140b041ac25ed83898ff3998e8dcbed35572bb | [
"Apache-2.0"
] | null | null | null | tools/dockerize/webportal/usr/lib/python2.7/site-packages/glanceclient/common/exceptions.py | foruy/openflow-multiopenstack | 74140b041ac25ed83898ff3998e8dcbed35572bb | [
"Apache-2.0"
] | null | null | null | # This is here for compatability purposes. Once all known OpenStack clients
# are updated to use glanceclient.exc, this file should be removed
from glanceclient.exc import *
| 43.5 | 75 | 0.804598 |
583a2eef001a72cf9b9737ee6ef5ed10dc5f494d | 1,458 | py | Python | api/scpca_portal/views/filter_options.py | AlexsLemonade/scpca-portal | d60d6db5abe892ed58764128269df936778c6fd7 | [
"BSD-3-Clause"
] | null | null | null | api/scpca_portal/views/filter_options.py | AlexsLemonade/scpca-portal | d60d6db5abe892ed58764128269df936778c6fd7 | [
"BSD-3-Clause"
] | 85 | 2021-07-27T14:33:55.000Z | 2022-03-28T20:18:41.000Z | api/scpca_portal/views/filter_options.py | AlexsLemonade/scpca-portal | d60d6db5abe892ed58764128269df936778c6fd7 | [
"BSD-3-Clause"
] | null | null | null | from django.http import JsonResponse
from rest_framework import status, viewsets
from scpca_portal.models import Project
| 33.136364 | 75 | 0.577503 |
583a4439342b3be3a1f5a61fbbd79630bf4f80cd | 409 | py | Python | cords/selectionstrategies/SL/__init__.py | krishnatejakk/AUTOMATA | fd0cf58058e39660f88d9d6b4101e30a497f6ce2 | [
"MIT"
] | null | null | null | cords/selectionstrategies/SL/__init__.py | krishnatejakk/AUTOMATA | fd0cf58058e39660f88d9d6b4101e30a497f6ce2 | [
"MIT"
] | null | null | null | cords/selectionstrategies/SL/__init__.py | krishnatejakk/AUTOMATA | fd0cf58058e39660f88d9d6b4101e30a497f6ce2 | [
"MIT"
] | 1 | 2022-03-16T05:55:12.000Z | 2022-03-16T05:55:12.000Z | from .craigstrategy import CRAIGStrategy
from .dataselectionstrategy import DataSelectionStrategy
from .glisterstrategy import GLISTERStrategy
from .randomstrategy import RandomStrategy
from .submodularselectionstrategy import SubmodularSelectionStrategy
from .gradmatchstrategy import GradMatchStrategy
from .fixedweigh... | 51.125 | 68 | 0.904645 |
583a53eef1dad89d42938f5028c87aba4efb30bb | 10,917 | py | Python | pycost/rocch.py | tfawcett/pycost | 69f96866295dba937a23f36c8f24f2f6acdaccbd | [
"BSD-3-Clause"
] | 1 | 2019-10-05T10:37:47.000Z | 2019-10-05T10:37:47.000Z | pycost/rocch.py | tfawcett/pycost | 69f96866295dba937a23f36c8f24f2f6acdaccbd | [
"BSD-3-Clause"
] | null | null | null | pycost/rocch.py | tfawcett/pycost | 69f96866295dba937a23f36c8f24f2f6acdaccbd | [
"BSD-3-Clause"
] | 1 | 2020-06-12T17:13:14.000Z | 2020-06-12T17:13:14.000Z | """
Metrics to calculate and manipulate the ROC Convex Hull on a classification task given scores.
"""
# Author: Tom Fawcett <tom.fawcett@gmail.com>
from collections import namedtuple
from math import sqrt
from typing import List, Dict, Tuple, Union
# DESCRIPTION:
#
# This program computes the convex hull of a set... | 33.798762 | 100 | 0.612989 |
583a8bbe4d63a96ce53555ed1fbf8f8d31b49bdb | 846 | py | Python | all_raspi_code_backup/DriveTesting.py | lord-pradhan/SnowBot | 82a0b3439dc203bf27725e293d6e56bcad720c09 | [
"MIT"
] | 2 | 2020-05-31T07:37:59.000Z | 2021-03-24T13:43:39.000Z | all_raspi_code_backup/DriveTesting.py | lord-pradhan/SnowBot | 82a0b3439dc203bf27725e293d6e56bcad720c09 | [
"MIT"
] | null | null | null | all_raspi_code_backup/DriveTesting.py | lord-pradhan/SnowBot | 82a0b3439dc203bf27725e293d6e56bcad720c09 | [
"MIT"
] | 1 | 2019-12-13T19:21:12.000Z | 2019-12-13T19:21:12.000Z | """
Program: DriveTesting.py
Revised On: 12/01/2019
"""
### Library Imports
from DriveArduino import DriveArduino
import numpy as np
from time import sleep
from sys import exit
from signal import signal, SIGINT
###
### CTRL + C Signal Handler & Resource Cleanup
def signal_handler(sig, frame):
"""Handler for... | 16.92 | 46 | 0.652482 |
583ba4ab4b346b94532e02cbbc5e159874800f72 | 363 | py | Python | src/sentry/utils/strings.py | rogerhu/sentry | ee2b190e92003abe0f538b2df5b686e425df1200 | [
"BSD-3-Clause"
] | 1 | 2015-12-13T18:27:54.000Z | 2015-12-13T18:27:54.000Z | src/sentry/utils/strings.py | simmetria/sentry | 9731f26adb44847d1c883cca108afc0755cf21cc | [
"BSD-3-Clause"
] | null | null | null | src/sentry/utils/strings.py | simmetria/sentry | 9731f26adb44847d1c883cca108afc0755cf21cc | [
"BSD-3-Clause"
] | null | null | null | def truncatechars(value, arg):
"""
Truncates a string after a certain number of chars.
Argument: Number of chars to truncate after.
"""
try:
length = int(arg)
except ValueError: # Invalid literal for int().
return value # Fail silently.
if len(value) > length:
retu... | 25.928571 | 55 | 0.606061 |
583d59db015ae71e12d80d6cb5e3e2aba7e8e79c | 817 | py | Python | setup.py | Ozencb/cli-pto | 445e5133340adb25dcf5d14c4203643b7a8741c2 | [
"MIT"
] | 6 | 2020-04-30T18:32:38.000Z | 2020-07-28T15:37:04.000Z | setup.py | Ozencb/cli-pto | 445e5133340adb25dcf5d14c4203643b7a8741c2 | [
"MIT"
] | 1 | 2020-04-30T18:34:08.000Z | 2020-05-01T10:16:49.000Z | setup.py | Ozencb/cli-pto | 445e5133340adb25dcf5d14c4203643b7a8741c2 | [
"MIT"
] | null | null | null | import os
import re
from setuptools import find_packages, setup
setup(
name='cli-pto',
author='zen Bilgili',
description='A CLI text editor with encryption.',
version=get_version('cli_pto'),
url='https://github.com/ozencb/cli-pto',
packages=find_packages(),
install_requires=['prompt-... | 31.423077 | 85 | 0.641371 |
583f4f6dd761e12a8aa4ad8d387f0bdd2b82f1de | 9,545 | py | Python | users/models.py | scoremaza/church_alive_backend | 2ee7260aea51ec39972588dc4a346aa152356aa3 | [
"MIT"
] | null | null | null | users/models.py | scoremaza/church_alive_backend | 2ee7260aea51ec39972588dc4a346aa152356aa3 | [
"MIT"
] | null | null | null | users/models.py | scoremaza/church_alive_backend | 2ee7260aea51ec39972588dc4a346aa152356aa3 | [
"MIT"
] | null | null | null | import os
import uuid
from django.db import models
from django.contrib.auth.models import User
from django.db.models.base import Model
from django.db.models.enums import Choices, ChoicesMeta
from django.db.models.fields.related import ForeignKey
from django.utils.deconstruct import deconstructible
user_profile_ima... | 32.355932 | 103 | 0.683394 |
5840120e03a13bb96c98c4c82966a3349be1a938 | 1,012 | py | Python | format_errors.py | drupchen/correct-ewts | 0a23db216b2fb78a8c73476ca55cebf23a7d2706 | [
"Apache-2.0"
] | null | null | null | format_errors.py | drupchen/correct-ewts | 0a23db216b2fb78a8c73476ca55cebf23a7d2706 | [
"Apache-2.0"
] | null | null | null | format_errors.py | drupchen/correct-ewts | 0a23db216b2fb78a8c73476ca55cebf23a7d2706 | [
"Apache-2.0"
] | null | null | null | import re
from collections import defaultdict
with open('input/errors-ewts.csv') as f:
raw = f.read()
#raw = raw.replace('`not expected', '` not expected')
lines = raw.split('\n')
data = []
for line in lines:
columns = re.split(r'(?:^"|","|",,"|"$)', line)
msgs = [a for a in columns[3].split(',') i... | 27.351351 | 60 | 0.614625 |
5840ef989a734ba50cfa0c0f408fab21378c995e | 344 | py | Python | exercise-django/user/views.py | theseana/goodfellas | 9ad9d9759d193cd64ec71876b1dab155bb9ba2c7 | [
"MIT"
] | null | null | null | exercise-django/user/views.py | theseana/goodfellas | 9ad9d9759d193cd64ec71876b1dab155bb9ba2c7 | [
"MIT"
] | null | null | null | exercise-django/user/views.py | theseana/goodfellas | 9ad9d9759d193cd64ec71876b1dab155bb9ba2c7 | [
"MIT"
] | null | null | null | from django.shortcuts import render
# Create your views here.
from user.forms import UserForm
| 24.571429 | 78 | 0.659884 |
5841ecc637b36ee324105b2737f2b6315d8d0459 | 3,609 | py | Python | shark/example/env/catch_ball_env.py | 7starsea/shark | 5030f576da6f5998728d80170480e68a3debfe79 | [
"MIT"
] | null | null | null | shark/example/env/catch_ball_env.py | 7starsea/shark | 5030f576da6f5998728d80170480e68a3debfe79 | [
"MIT"
] | null | null | null | shark/example/env/catch_ball_env.py | 7starsea/shark | 5030f576da6f5998728d80170480e68a3debfe79 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
import numpy as np
import PIL
import torch
import torchvision.transforms as TF
from types import SimpleNamespace
from gym import spaces, Env
from .SharkExampleEnv import CatchBallSimulate
# internal_screen_h, internal_screen_w = 80, 140
| 31.112069 | 107 | 0.600443 |
5842b3ae714ec5029aefbd5f4f522395e8920892 | 4,652 | py | Python | examples/launch_tor_with_simplehttpd.py | kneufeld/txtorcon | fbe2fc70cae00aa6228a2920ef048b282872dbab | [
"MIT"
] | null | null | null | examples/launch_tor_with_simplehttpd.py | kneufeld/txtorcon | fbe2fc70cae00aa6228a2920ef048b282872dbab | [
"MIT"
] | null | null | null | examples/launch_tor_with_simplehttpd.py | kneufeld/txtorcon | fbe2fc70cae00aa6228a2920ef048b282872dbab | [
"MIT"
] | null | null | null | #!/usr/bin/env python
# -*- coding: utf-8 -*-
'''Create a new tor node and add a simple http server to it, serving a given
directory over http. The server is single-threaded and very limited.
There are two arguments that can be passed via the commandline:
-p\tThe internet-facing port the hidden service should list... | 33.710145 | 96 | 0.635211 |
5842cd8ea1a4359a03a5653c005a52f4e2eeeb68 | 5,123 | py | Python | homeroom/wsgi.py | openshift-labs/workshop-homeroom | a0f0c144eef679e35a93201d11973329be9924fb | [
"Apache-2.0"
] | 14 | 2019-09-28T20:42:29.000Z | 2021-11-23T13:12:42.000Z | homeroom/wsgi.py | openshift-homeroom/workshop-homeroom | a0f0c144eef679e35a93201d11973329be9924fb | [
"Apache-2.0"
] | 1 | 2019-10-15T02:55:57.000Z | 2019-10-15T02:55:57.000Z | homeroom/wsgi.py | openshift-homeroom/workshop-homeroom | a0f0c144eef679e35a93201d11973329be9924fb | [
"Apache-2.0"
] | 3 | 2020-02-11T16:55:59.000Z | 2021-08-13T13:16:27.000Z | import os
import json
import threading
import time
import yaml
from flask import Flask
from flask import render_template
from kubernetes.client.rest import ApiException
from kubernetes.client.configuration import Configuration
from kubernetes.config.incluster_config import load_incluster_config
from kubernetes.clien... | 31.819876 | 87 | 0.622877 |
584381c8993e76aeeaae4fc35eb8cf9d4869915b | 3,417 | py | Python | rever/__init__.py | limecrayon/rever | 0446ad9707fb1e81b3101625959fd16bdaac1853 | [
"MIT"
] | 2 | 2018-02-16T08:31:48.000Z | 2018-11-19T02:31:07.000Z | rever/__init__.py | limecrayon/rever | 0446ad9707fb1e81b3101625959fd16bdaac1853 | [
"MIT"
] | null | null | null | rever/__init__.py | limecrayon/rever | 0446ad9707fb1e81b3101625959fd16bdaac1853 | [
"MIT"
] | null | null | null | import functools
import time
__all__ = ('ReachedMaxRetries', 'rever')
def rever(**rever_kwargs):
"""
rever_kwargs default values defined:
If backoff is True, then times and pause will not be initialized, but they will be calculated.
backoff: True
total_pause: 30
steps: 10
exception: Ba... | 30.238938 | 116 | 0.550776 |
5844f2ad1f289327e37c42bac510107e36f8f9d5 | 25,811 | py | Python | gui(12102018).py | hanhydro/T2H | f4922ce721eb450c7d91370f180e6c860e9ec6be | [
"MIT"
] | null | null | null | gui(12102018).py | hanhydro/T2H | f4922ce721eb450c7d91370f180e6c860e9ec6be | [
"MIT"
] | null | null | null | gui(12102018).py | hanhydro/T2H | f4922ce721eb450c7d91370f180e6c860e9ec6be | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
# Form implementation generated from reading ui file 'gui.ui'
#
# Created by: PyQt5 UI code generator 5.6
#
# WARNING! All changes made in this file will be lost!
import os
from PyQt5 import QtCore, QtGui, QtWidgets
from PyQt5.QtCore import *
from PyQt5.QtGui import *
from PyQt5.QtWidgets imp... | 47.975836 | 109 | 0.618728 |
584603df6f6456851f5001f52a65f8c0ba217511 | 226 | py | Python | py/loadpage.py | katiehuang1221/onl_ds5_project_2 | dc9243d6bdc0c1952a761b2ed3e91a8548202b42 | [
"MIT"
] | null | null | null | py/loadpage.py | katiehuang1221/onl_ds5_project_2 | dc9243d6bdc0c1952a761b2ed3e91a8548202b42 | [
"MIT"
] | 1 | 2021-01-20T02:34:07.000Z | 2021-01-20T02:34:07.000Z | py/loadpage.py | katiehuang1221/onl_ds5_project_2 | dc9243d6bdc0c1952a761b2ed3e91a8548202b42 | [
"MIT"
] | null | null | null | from bs4 import BeautifulSoup
import requests
from IPython.core.display import display, HTML
| 22.6 | 46 | 0.734513 |
58483a9eb35db037bda84433b79608b84ed9f2c4 | 1,912 | py | Python | hard-gists/5409581/snippet.py | jjhenkel/dockerizeme | eaa4fe5366f6b9adf74399eab01c712cacaeb279 | [
"Apache-2.0"
] | 21 | 2019-07-08T08:26:45.000Z | 2022-01-24T23:53:25.000Z | hard-gists/5409581/snippet.py | jjhenkel/dockerizeme | eaa4fe5366f6b9adf74399eab01c712cacaeb279 | [
"Apache-2.0"
] | 5 | 2019-06-15T14:47:47.000Z | 2022-02-26T05:02:56.000Z | hard-gists/5409581/snippet.py | jjhenkel/dockerizeme | eaa4fe5366f6b9adf74399eab01c712cacaeb279 | [
"Apache-2.0"
] | 17 | 2019-05-16T03:50:34.000Z | 2021-01-14T14:35:12.000Z | '''
rename_selected_relation_box.py
Written by Alex Forsythe (awforsythe.com)
When executed, attempts to locate any selected box within any relation
constraint in the scene. If a selected relation box is found, prompts the user
to enter a new name for that box. Allows relation boxes to be given more
descriptive names.... | 30.83871 | 103 | 0.670502 |
584861b23601a5bd9f5d5e6bce09eb691a44f1c2 | 4,010 | py | Python | osu_scene_switcher.py | FunOrange/osu-scene-switcher | 471fc654fe4a222abaf4fbcf062e8302dd52bb18 | [
"MIT"
] | 4 | 2021-05-22T20:56:36.000Z | 2022-03-02T00:19:45.000Z | osu_scene_switcher.py | FunOrange/obs-osu-noise-suppression-switcher | 471fc654fe4a222abaf4fbcf062e8302dd52bb18 | [
"MIT"
] | null | null | null | osu_scene_switcher.py | FunOrange/obs-osu-noise-suppression-switcher | 471fc654fe4a222abaf4fbcf062e8302dd52bb18 | [
"MIT"
] | 1 | 2021-01-29T18:28:04.000Z | 2021-01-29T18:28:04.000Z | import os
import time
import obspython as obs
initial_load = False
status_file = ''
idle_scene = ''
playing_scene = ''
"""
Checks if status file exists and both scenes exist, then starts the main script timer
"""
"""
Checks the osu! status file for 'Playing',
then toggles Noise Suppression accordingly
"""
previous_s... | 33.416667 | 122 | 0.721696 |
5849254d7b154fa7533602568ea01800f7eb9d68 | 3,386 | py | Python | donkey_gym/envs/donkey_env.py | mint26/donkey_gym | 4d0302da5818d56f92247b9dbf389994961f487e | [
"MIT"
] | 5 | 2018-11-01T18:48:03.000Z | 2021-03-11T14:36:22.000Z | donkey_gym/envs/donkey_env.py | mint26/donkey_gym | 4d0302da5818d56f92247b9dbf389994961f487e | [
"MIT"
] | null | null | null | donkey_gym/envs/donkey_env.py | mint26/donkey_gym | 4d0302da5818d56f92247b9dbf389994961f487e | [
"MIT"
] | 7 | 2018-10-13T19:48:14.000Z | 2021-10-31T15:10:52.000Z | '''
file: donkey_env.py
author: Tawn Kramer
date: 2018-08-31
'''
import os
from threading import Thread
import numpy as np
import gym
from gym import error, spaces, utils
from gym.utils import seeding
from donkey_gym.envs.donkey_sim import DonkeyUnitySimContoller
from donkey_gym.envs.donkey_proc import Do... | 27.528455 | 99 | 0.60189 |
5849a619f304aa85187564eba6cb5913a8f7354f | 2,403 | py | Python | tests/unit/backend/corpora/common/entities/datasets/test_revision.py | chanzuckerberg/dcp-prototype | 24d2323ba5ae1482395da35ea11c42708e3a52ce | [
"MIT"
] | 2 | 2020-02-07T18:12:12.000Z | 2020-02-11T14:59:03.000Z | tests/unit/backend/corpora/common/entities/datasets/test_revision.py | HumanCellAtlas/dcp-prototype | 44ca66a266004124f39d7d3e3dd75e9076012ff0 | [
"MIT"
] | 173 | 2020-01-29T17:48:02.000Z | 2020-03-20T02:52:58.000Z | tests/unit/backend/corpora/common/entities/datasets/test_revision.py | HumanCellAtlas/dcp-prototype | 44ca66a266004124f39d7d3e3dd75e9076012ff0 | [
"MIT"
] | 1 | 2020-03-20T17:06:54.000Z | 2020-03-20T17:06:54.000Z | from tests.unit.backend.corpora.common.entities.datasets import TestDataset
| 52.23913 | 117 | 0.665418 |
584a11d14b64edf45f4d6711e52adb48c3e934c3 | 3,966 | py | Python | main.py | parzibyte/login-flask | 165e10980f6a34c7587a53578ed361506eb37475 | [
"MIT"
] | 2 | 2021-09-21T16:37:41.000Z | 2021-12-09T17:38:18.000Z | main.py | parzibyte/login-flask | 165e10980f6a34c7587a53578ed361506eb37475 | [
"MIT"
] | null | null | null | main.py | parzibyte/login-flask | 165e10980f6a34c7587a53578ed361506eb37475 | [
"MIT"
] | 1 | 2021-08-16T01:36:58.000Z | 2021-08-16T01:36:58.000Z | """
____ _____ _ _ _
| _ \ | __ \ (_) | | |
| |_) |_ _ | |__) |_ _ _ __ _____| |__ _ _| |_ ___
| _ <| | | | | ___/ _` | '__|_ / | '_ \| | | | __/ _ \
| |_) | |_| | | | | (_| | | / /| | |_) | |_| | || __/
|____/ \__, | |_| ... | 36.054545 | 137 | 0.594049 |
584b5746e6a8959beb85942376ecc9e56d8276af | 707 | py | Python | events/kawacon2016/migrations/0003_auto_20160127_1924.py | jlaunonen/turska | fc6ec4e0ae50a823e931152ce8835098b96f5966 | [
"CC-BY-3.0"
] | null | null | null | events/kawacon2016/migrations/0003_auto_20160127_1924.py | jlaunonen/turska | fc6ec4e0ae50a823e931152ce8835098b96f5966 | [
"CC-BY-3.0"
] | null | null | null | events/kawacon2016/migrations/0003_auto_20160127_1924.py | jlaunonen/turska | fc6ec4e0ae50a823e931152ce8835098b96f5966 | [
"CC-BY-3.0"
] | null | null | null | # -*- coding: utf-8 -*-
# Generated by Django 1.9.1 on 2016-01-27 17:24
from __future__ import unicode_literals
from django.db import migrations, models
| 33.666667 | 291 | 0.700141 |
584b6938b21baa80544be5899accf3e8f5524589 | 218 | py | Python | Modulo 3/HelloWorld.py | antonio343/clase | fda04a606246695aa5d93c8b2b5e2890a16d5973 | [
"MIT"
] | null | null | null | Modulo 3/HelloWorld.py | antonio343/clase | fda04a606246695aa5d93c8b2b5e2890a16d5973 | [
"MIT"
] | null | null | null | Modulo 3/HelloWorld.py | antonio343/clase | fda04a606246695aa5d93c8b2b5e2890a16d5973 | [
"MIT"
] | null | null | null | import sys
print("Hello world, I am",sys.executable, sys.version)
x=input("Dame un numero mayor que cero: ")
x = int(x)
if x < 0:
print('Negative changed to zero')
x = 0
print(f"El valor final de x es: {x}") | 19.818182 | 54 | 0.646789 |
584b955b3560453b5439bd686f05b35e554caf34 | 436 | py | Python | rasiberryPiGPIOBaseController/driver/test.py | onwebbe/rasiberryPiBaseController | bdb81cb5a0e62414fa091635a83db799017249e7 | [
"MIT"
] | null | null | null | rasiberryPiGPIOBaseController/driver/test.py | onwebbe/rasiberryPiBaseController | bdb81cb5a0e62414fa091635a83db799017249e7 | [
"MIT"
] | null | null | null | rasiberryPiGPIOBaseController/driver/test.py | onwebbe/rasiberryPiBaseController | bdb81cb5a0e62414fa091635a83db799017249e7 | [
"MIT"
] | null | null | null |
main() | 22.947368 | 63 | 0.713303 |
584bc0b37c22b1a874521a0f4acbe34fb62b2cde | 17,670 | py | Python | Acquire/Client/_user.py | michellab/BioSimSpaceCloud | 456b146a2131565e354352872d3e75a08c3652d1 | [
"Apache-2.0"
] | 2 | 2019-02-15T16:04:19.000Z | 2019-02-19T15:42:27.000Z | Acquire/Client/_user.py | michellab/BioSimSpaceCloud | 456b146a2131565e354352872d3e75a08c3652d1 | [
"Apache-2.0"
] | null | null | null | Acquire/Client/_user.py | michellab/BioSimSpaceCloud | 456b146a2131565e354352872d3e75a08c3652d1 | [
"Apache-2.0"
] | null | null | null |
import os as _os
from enum import Enum as _Enum
from datetime import datetime as _datetime
import time as _time
from Acquire.Service import call_function as _call_function
from Acquire.Service import Service as _Service
from Acquire.ObjectStore import bytes_to_string as _bytes_to_string
from Acquire.ObjectStore im... | 32.244526 | 79 | 0.590323 |
584c241bf384f1ee86da8eb49a7b42c532f3a92a | 8,007 | py | Python | botasky/utils/MyMAIL.py | 5atouristspot/sql_audit | 54c6d5ac9f8178ab1a17b7ff2d04ff738f14e0b7 | [
"MIT"
] | null | null | null | botasky/utils/MyMAIL.py | 5atouristspot/sql_audit | 54c6d5ac9f8178ab1a17b7ff2d04ff738f14e0b7 | [
"MIT"
] | null | null | null | botasky/utils/MyMAIL.py | 5atouristspot/sql_audit | 54c6d5ac9f8178ab1a17b7ff2d04ff738f14e0b7 | [
"MIT"
] | null | null | null | #! /usr/bin/python2.7
# -*- coding: utf-8 -*-
"""
Created on 2017-4-06
@module: MyMAIL
@used: send mail
"""
import smtplib
import mimetypes
from email.mime.text import MIMEText
from email.mime.multipart import MIMEMultipart
from email.mime.image import MIMEImage
from MyLOG import MyLog
from bot... | 36.729358 | 114 | 0.429374 |
584dcc24968eeec28c6969e280feb5d4d108b6e6 | 7,694 | py | Python | db_adapter/curw_fcst/source/source_utils.py | CUrW-SL/curw_db_adapter | 9d9ef24f42080910e0bd251bc7f001b0a4b0ab31 | [
"MIT"
] | 2 | 2019-04-26T07:50:33.000Z | 2019-09-28T20:15:33.000Z | db_adapter/curw_fcst/source/source_utils.py | CUrW-SL/curw_db_adapter | 9d9ef24f42080910e0bd251bc7f001b0a4b0ab31 | [
"MIT"
] | 1 | 2019-04-03T09:30:38.000Z | 2019-04-20T18:11:59.000Z | db_adapter/curw_fcst/source/source_utils.py | shadhini/curw_db_adapter | 4db8e1ea8794ffbd0dce29ac954a13315e83d843 | [
"MIT"
] | null | null | null | import json
import traceback
from db_adapter.exceptions import DatabaseAdapterError
from db_adapter.logger import logger
"""
Source JSON Object would looks like this
e.g.:
{
'model' : 'wrfSE',
'version' : 'v3',
'parameters': { }
}
{
'model' : 'OBS_WATER_LEVEL',
... | 32.601695 | 127 | 0.583442 |
584f6d166970adb6f3793037f401b85f026ce2ab | 511 | py | Python | tests/kyu_7_tests/test_binary_addition.py | the-zebulan/CodeWars | 1eafd1247d60955a5dfb63e4882e8ce86019f43a | [
"MIT"
] | 40 | 2016-03-09T12:26:20.000Z | 2022-03-23T08:44:51.000Z | tests/kyu_7_tests/test_binary_addition.py | akalynych/CodeWars | 1eafd1247d60955a5dfb63e4882e8ce86019f43a | [
"MIT"
] | null | null | null | tests/kyu_7_tests/test_binary_addition.py | akalynych/CodeWars | 1eafd1247d60955a5dfb63e4882e8ce86019f43a | [
"MIT"
] | 36 | 2016-11-07T19:59:58.000Z | 2022-03-31T11:18:27.000Z | import unittest
from katas.kyu_7.binary_addition import add_binary
| 24.333333 | 54 | 0.675147 |
584ff888d14bb4a1085d283e99cd26c1976fee31 | 739 | py | Python | var/spack/repos/builtin/packages/netdata/package.py | MiddelkoopT/spack | 4d94c4c4600f42a7a3bb3d06ec879140bc259304 | [
"ECL-2.0",
"Apache-2.0",
"MIT-0",
"MIT"
] | null | null | null | var/spack/repos/builtin/packages/netdata/package.py | MiddelkoopT/spack | 4d94c4c4600f42a7a3bb3d06ec879140bc259304 | [
"ECL-2.0",
"Apache-2.0",
"MIT-0",
"MIT"
] | null | null | null | var/spack/repos/builtin/packages/netdata/package.py | MiddelkoopT/spack | 4d94c4c4600f42a7a3bb3d06ec879140bc259304 | [
"ECL-2.0",
"Apache-2.0",
"MIT-0",
"MIT"
] | null | null | null | # Copyright 2013-2020 Lawrence Livermore National Security, LLC and other
# Spack Project Developers. See the top-level COPYRIGHT file for details.
#
# SPDX-License-Identifier: (Apache-2.0 OR MIT)
from spack import *
| 32.130435 | 96 | 0.70636 |
5850feed17b8dae7b2795290112a605c61fbeef1 | 1,727 | py | Python | examples/my_quickstart.py | 87boy/sisu | 823d12c9a8126ab41bb14b6d91cad9acbb95bc47 | [
"Apache-2.0"
] | null | null | null | examples/my_quickstart.py | 87boy/sisu | 823d12c9a8126ab41bb14b6d91cad9acbb95bc47 | [
"Apache-2.0"
] | null | null | null | examples/my_quickstart.py | 87boy/sisu | 823d12c9a8126ab41bb14b6d91cad9acbb95bc47 | [
"Apache-2.0"
] | null | null | null | import flask
import flask.ext.sqlalchemy
import flask.ext.restless
# Create the Flask application and the Flask-SQLAlchemy object.
app = flask.Flask(__name__)
app.config['DEBUG'] = True
app.config['SQLALCHEMY_DATABASE_URI'] = 'sqlite:////tmp/test.db'
db = flask.ext.sqlalchemy.SQLAlchemy(app)
# Create your Flask-SQLAL... | 35.244898 | 76 | 0.711639 |
5853ac3ad2b07e0bcfbda162b15356c29c25cefe | 4,687 | py | Python | src/crypto_wallet/crypto_wallet.py | Sedosa/Blockchain-Analytics | a09de9cfd308c70e38a05d4127fb372af5b919b7 | [
"MIT"
] | null | null | null | src/crypto_wallet/crypto_wallet.py | Sedosa/Blockchain-Analytics | a09de9cfd308c70e38a05d4127fb372af5b919b7 | [
"MIT"
] | null | null | null | src/crypto_wallet/crypto_wallet.py | Sedosa/Blockchain-Analytics | a09de9cfd308c70e38a05d4127fb372af5b919b7 | [
"MIT"
] | null | null | null | """
This is a script that takes a calculates the value of a cryptocurrency portfolio
It uses JSON in the with quantities of different cryptocurrencies in the form
{
"ticker" : volume,
"ticker" : volume
}
gets the live price from an API endpoint and returns the price of each item in the portfolio and the total... | 26.480226 | 123 | 0.631961 |
5853d100285433e6202ec4adff867b94b7270769 | 1,685 | py | Python | np43s.py | Muraru-taketa/100_knocks | d34c0157d15a0fda45ac60e41e93bd6b73cebb58 | [
"MIT"
] | null | null | null | np43s.py | Muraru-taketa/100_knocks | d34c0157d15a0fda45ac60e41e93bd6b73cebb58 | [
"MIT"
] | null | null | null | np43s.py | Muraru-taketa/100_knocks | d34c0157d15a0fda45ac60e41e93bd6b73cebb58 | [
"MIT"
] | null | null | null | #np43.py
#43.
"""
"""
import re
#
separator = re.compile('\t|,')
#
kakari = re.compile(r'''(?:\*\s\d+\s) #
(-?\d+) # ()
''', re.VERBOSE)
# ,Chunk
def append_sentence(chunks, sentences):
#
for i, chunk in enumerate(chunks):
if chunk.dst... | 30.636364 | 113 | 0.619585 |
585453c1a7dceaddf108fc0199e9890c1f5860d6 | 4,026 | py | Python | backend/presentation/Viewsets/comment_view.py | Weida-W/CMPUT404-project-socialdistribution | 41d8a7f7f013723d2a3878156953fbc11c2e6156 | [
"W3C-20150513"
] | null | null | null | backend/presentation/Viewsets/comment_view.py | Weida-W/CMPUT404-project-socialdistribution | 41d8a7f7f013723d2a3878156953fbc11c2e6156 | [
"W3C-20150513"
] | 75 | 2021-01-13T23:48:48.000Z | 2021-04-16T19:39:38.000Z | backend/presentation/Viewsets/comment_view.py | Weida-W/CMPUT404-project-socialdistribution | 41d8a7f7f013723d2a3878156953fbc11c2e6156 | [
"W3C-20150513"
] | 12 | 2021-01-13T23:22:35.000Z | 2021-04-28T08:13:38.000Z | from presentation.models import Author, Follower, Post, Comment
from django.shortcuts import get_object_or_404
from presentation.Serializers.comment_serializer import CommentSerializer
from rest_framework import viewsets, status
from django.http import JsonResponse
from rest_framework.response import Response
import uu... | 37.981132 | 115 | 0.655986 |
5854bedf049dafa402041ca2798dee49d6f30c6d | 11,520 | py | Python | bundle/vim-pandoc-master/python3/vim_pandoc/command.py | ian-mitchell-001/my-vim-configs | 198747234df311179185ce9fb8424bb1c1c64771 | [
"Unlicense"
] | null | null | null | bundle/vim-pandoc-master/python3/vim_pandoc/command.py | ian-mitchell-001/my-vim-configs | 198747234df311179185ce9fb8424bb1c1c64771 | [
"Unlicense"
] | null | null | null | bundle/vim-pandoc-master/python3/vim_pandoc/command.py | ian-mitchell-001/my-vim-configs | 198747234df311179185ce9fb8424bb1c1c64771 | [
"Unlicense"
] | null | null | null | # encoding=utf-8
import vim
import re
import sys
import os.path
import argparse
import shlex
from subprocess import Popen, PIPE
from itertools import chain
from vim_pandoc.utils import plugin_enabled_modules, ensure_string
from vim_pandoc.bib.vim_completer import find_bibfiles
from vim_pandoc.helpparser import PandocI... | 44.307692 | 118 | 0.521354 |
58560f5398484c07794db5199083195112cafef3 | 10,955 | py | Python | databricks/koalas/strings.py | mercileesb/koalas | 685176c512f31166f0e472aa0f461d0f1449fb0c | [
"Apache-2.0"
] | 1 | 2021-01-17T18:26:33.000Z | 2021-01-17T18:26:33.000Z | databricks/koalas/strings.py | mercileesb/koalas | 685176c512f31166f0e472aa0f461d0f1449fb0c | [
"Apache-2.0"
] | null | null | null | databricks/koalas/strings.py | mercileesb/koalas | 685176c512f31166f0e472aa0f461d0f1449fb0c | [
"Apache-2.0"
] | null | null | null | #
# Copyright (C) 2019 Databricks, 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 i... | 31.033994 | 76 | 0.583204 |
585693264a6958d193fa10022658456c7350638b | 807 | py | Python | python/turbodbc_test/test_cursor_async_io.py | fjetter/turbodbc | b11f0a1bc7d67bc3cbc60f564594f0e735f524f4 | [
"MIT"
] | null | null | null | python/turbodbc_test/test_cursor_async_io.py | fjetter/turbodbc | b11f0a1bc7d67bc3cbc60f564594f0e735f524f4 | [
"MIT"
] | null | null | null | python/turbodbc_test/test_cursor_async_io.py | fjetter/turbodbc | b11f0a1bc7d67bc3cbc60f564594f0e735f524f4 | [
"MIT"
] | null | null | null | import pytest
import six
from turbodbc import connect
from query_fixture import query_fixture
from helpers import for_one_database, open_cursor
| 36.681818 | 84 | 0.629492 |
5856c891983edcd6b2efc2d720455bfccf0cdf79 | 1,491 | py | Python | llist_gameboard/urls.py | Plongesam/data-structures-game | a47c849ea97763eff1005273a58aa3d8ab663ff2 | [
"Apache-2.0"
] | 2 | 2021-03-02T20:06:34.000Z | 2021-03-31T02:51:35.000Z | llist_gameboard/urls.py | Plongesam/data-structures-game | a47c849ea97763eff1005273a58aa3d8ab663ff2 | [
"Apache-2.0"
] | 68 | 2021-03-02T20:20:21.000Z | 2021-05-13T02:21:57.000Z | llist_gameboard/urls.py | Plongesam/data-structures-game | a47c849ea97763eff1005273a58aa3d8ab663ff2 | [
"Apache-2.0"
] | null | null | null | """
URL's for the LList Game Board app.
"""
from django.urls import path
from llist_gameboard.api import llist_api
from . import views
urlpatterns = [
# Views
path('', views.llist_game_board, name='llist-game-board'),
#Game Play API Calls For Linked List
path('llist_api', llist_api.api_overview,... | 59.64 | 147 | 0.733736 |
5857c8cf49629013e2ff3dd558ee69aaefccf283 | 208 | py | Python | tests/test_most_invoices.py | swimmio/sqlalchemy_swimm | d24accb7792743cf586bd7062531d108e7063eba | [
"MIT"
] | null | null | null | tests/test_most_invoices.py | swimmio/sqlalchemy_swimm | d24accb7792743cf586bd7062531d108e7063eba | [
"MIT"
] | null | null | null | tests/test_most_invoices.py | swimmio/sqlalchemy_swimm | d24accb7792743cf586bd7062531d108e7063eba | [
"MIT"
] | null | null | null | from src import most_invoices
EXPECTED_RESULT = (14, 'Berlin')
| 23.111111 | 63 | 0.774038 |
58593da1cc559e0383548c77af9516f78e6dbe07 | 8,223 | py | Python | VIP_modules/widgets/ResultCanvas_QTAgg.py | Nikolaj-K/lab-control-GUI | 3c7811de57f110870cf4740743fd84b76d918ad3 | [
"MIT"
] | 17 | 2017-05-24T13:31:31.000Z | 2021-12-04T22:47:33.000Z | VIP_modules/widgets/ResultCanvas_QTAgg.py | Nikolaj-K/lab-control-GUI | 3c7811de57f110870cf4740743fd84b76d918ad3 | [
"MIT"
] | null | null | null | VIP_modules/widgets/ResultCanvas_QTAgg.py | Nikolaj-K/lab-control-GUI | 3c7811de57f110870cf4740743fd84b76d918ad3 | [
"MIT"
] | 6 | 2017-11-21T01:32:33.000Z | 2020-12-15T05:28:17.000Z | import random
import numpy as np
import operator
from scipy import optimize
from matplotlib.backends.backend_qt4agg import FigureCanvasQTAgg
from matplotlib.figure import Figure as MatplotlibFigure
from mpl_toolkits.mplot3d import Axes3D
from matplotlib import cm as color_map
from matplotlib.ticker import Lin... | 46.721591 | 147 | 0.531558 |
585a68e41b2ee9276af7dd0a8f001bc6f258c0ac | 4,538 | py | Python | data/external/repositories_2to3/42139/KDDCup13Track2-master/cluster_kruskal.py | Keesiu/meta-kaggle | 87de739aba2399fd31072ee81b391f9b7a63f540 | [
"MIT"
] | null | null | null | data/external/repositories_2to3/42139/KDDCup13Track2-master/cluster_kruskal.py | Keesiu/meta-kaggle | 87de739aba2399fd31072ee81b391f9b7a63f540 | [
"MIT"
] | null | null | null | data/external/repositories_2to3/42139/KDDCup13Track2-master/cluster_kruskal.py | Keesiu/meta-kaggle | 87de739aba2399fd31072ee81b391f9b7a63f540 | [
"MIT"
] | 1 | 2019-12-04T08:23:33.000Z | 2019-12-04T08:23:33.000Z | #!/usr/bin/env python
# Given weighted graph, perform kruskal-based clustering
from common import *
from cluster_common import *
import argparse
import csv
import pickle as pickle
from collections import defaultdict
if __name__ == "__main__":
main()
| 29.855263 | 133 | 0.642794 |
585b50403351ad785a902fa91bf54e0474f5e68a | 4,019 | py | Python | third_party/gsutil/oauth2_plugin/oauth2_helper.py | bdero/depot_tools | 685577439cbf9cb8c660e3da39bdcbb64c197c95 | [
"BSD-3-Clause"
] | 20 | 2015-12-07T06:08:27.000Z | 2021-11-08T11:06:18.000Z | third_party/gsutil/oauth2_plugin/oauth2_helper.py | bdero/depot_tools | 685577439cbf9cb8c660e3da39bdcbb64c197c95 | [
"BSD-3-Clause"
] | 1 | 2019-01-14T00:36:35.000Z | 2019-01-14T00:36:35.000Z | third_party/gsutil/oauth2_plugin/oauth2_helper.py | bdero/depot_tools | 685577439cbf9cb8c660e3da39bdcbb64c197c95 | [
"BSD-3-Clause"
] | 23 | 2015-05-05T08:22:59.000Z | 2021-11-10T06:24:46.000Z | # Copyright 2011 Google Inc. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or a... | 38.644231 | 91 | 0.736502 |
585b570f1181a34255df0bd7a81ffc1c67034916 | 5,311 | py | Python | csl-tracking-dependents.py | Marcool04/utilities | d9bf0aae7decdad111fc0c8cefacf10c230ce9ee | [
"MIT"
] | 10 | 2015-04-14T16:49:43.000Z | 2020-06-01T14:31:04.000Z | csl-tracking-dependents.py | Marcool04/utilities | d9bf0aae7decdad111fc0c8cefacf10c230ce9ee | [
"MIT"
] | 23 | 2015-01-20T04:13:35.000Z | 2021-09-07T18:36:00.000Z | csl-tracking-dependents.py | Marcool04/utilities | d9bf0aae7decdad111fc0c8cefacf10c230ce9ee | [
"MIT"
] | 6 | 2015-01-10T13:00:37.000Z | 2021-09-19T09:25:22.000Z | # -*- coding: utf-8 -*-
# Python script to manage automatically generated dependents
# Author: Rintze M. Zelle
# Version: 2014-04-17
# * Requires lxml library (http://lxml.de/)
import os, glob, re, inspect, shutil
from lxml import etree
# http://stackoverflow.com/questions/50499
folderPath = os.path.dirname(os.path.... | 44.630252 | 148 | 0.656562 |
585f06a860286b312d33973ef25ef2866dfc0808 | 642 | py | Python | selenium_browser/__resources/constants.py | kkristof200/selenium_browser | b8144fe935073367911e90b50f078bfa985d6c0f | [
"MIT"
] | 1 | 2021-06-25T06:55:43.000Z | 2021-06-25T06:55:43.000Z | selenium_browser/__resources/constants.py | kkristof200/selenium_browser | b8144fe935073367911e90b50f078bfa985d6c0f | [
"MIT"
] | null | null | null | selenium_browser/__resources/constants.py | kkristof200/selenium_browser | b8144fe935073367911e90b50f078bfa985d6c0f | [
"MIT"
] | null | null | null | # ------------------------------------------------------- class: Constants ------------------------------------------------------- #
# -------------------------------------------------------------------------------------------------------------------------------- # | 45.857143 | 132 | 0.311526 |
585fbd132230f1c1b7c7d02416766ecbbe4a68a2 | 2,893 | py | Python | api/models/__init__.py | victorabarros/challenge-alloy-card | a3188fea298541130c24ebf4639d2af4700ba362 | [
"MIT"
] | null | null | null | api/models/__init__.py | victorabarros/challenge-alloy-card | a3188fea298541130c24ebf4639d2af4700ba362 | [
"MIT"
] | null | null | null | api/models/__init__.py | victorabarros/challenge-alloy-card | a3188fea298541130c24ebf4639d2af4700ba362 | [
"MIT"
] | null | null | null | },
6: {
{ii: Piece(self.player_1, "pawn", ii, (6, ii))
}
}
pieces = {
self.player_0: {
'rook': {0: self.board[0][0], 1: self.board[0][7]},
'knight': {0: self.board[0][1], 1: self.board[0][6]},
... | 36.620253 | 69 | 0.444867 |
58610c3f91576fd189f2c5eb7bc06289b39922a3 | 50,976 | py | Python | spinta/manifests/tabular/helpers.py | atviriduomenys/spinta | 77a10e201f8cdc63143fce7996fd0898acb1ff58 | [
"MIT"
] | 2 | 2019-03-14T06:41:14.000Z | 2019-03-26T11:48:14.000Z | spinta/manifests/tabular/helpers.py | sirex/spinta | 77a10e201f8cdc63143fce7996fd0898acb1ff58 | [
"MIT"
] | 44 | 2019-04-05T15:52:45.000Z | 2022-03-30T07:41:33.000Z | spinta/manifests/tabular/helpers.py | sirex/spinta | 77a10e201f8cdc63143fce7996fd0898acb1ff58 | [
"MIT"
] | 1 | 2019-04-01T09:54:27.000Z | 2019-04-01T09:54:27.000Z | from __future__ import annotations
import csv
import pathlib
import textwrap
from operator import itemgetter
from typing import Any
from typing import Callable
from typing import Dict
from typing import IO
from typing import Iterable
from typing import Iterator
from typing import List
from typing import NamedTuple
fro... | 27.779837 | 80 | 0.568464 |