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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
edad2a21f58b87b3261ce84038ec82c4c7e7c0c6 | 57,471 | py | Python | ion/agents/mission_executive.py | ooici/coi-services | 43246f46a82e597345507afd7dfc7373cb346afa | [
"BSD-2-Clause"
] | 3 | 2016-09-20T09:50:06.000Z | 2018-08-10T01:41:38.000Z | ion/agents/mission_executive.py | ooici/coi-services | 43246f46a82e597345507afd7dfc7373cb346afa | [
"BSD-2-Clause"
] | null | null | null | ion/agents/mission_executive.py | ooici/coi-services | 43246f46a82e597345507afd7dfc7373cb346afa | [
"BSD-2-Clause"
] | 2 | 2016-03-16T22:25:49.000Z | 2016-11-26T14:54:21.000Z | """
@package ion.agents.mission_executive
@file ion/agents/mission_executive.py
@author Bob Fratantonio
@brief A class for the platform mission executive
"""
import calendar
import gevent
import yaml
import time
from time import gmtime
import pytz
from datetime import datetime
from pyon.agent.agent import Reso... | 44.242494 | 127 | 0.599346 |
edb17a170456cf326b34616afe859ef4c14423c1 | 2,544 | py | Python | fewshot/experiments/utils.py | renmengye/oc-fewshot-public | eb12bd5b426518fd8353304f0760f5c24f1b3c12 | [
"MIT"
] | 18 | 2020-07-12T11:07:27.000Z | 2022-02-06T04:17:23.000Z | fewshot/experiments/utils.py | renmengye/oc-fewshot | eb12bd5b426518fd8353304f0760f5c24f1b3c12 | [
"MIT"
] | 2 | 2021-10-14T17:38:50.000Z | 2021-11-10T14:07:04.000Z | fewshot/experiments/utils.py | renmengye/oc-fewshot | eb12bd5b426518fd8353304f0760f5c24f1b3c12 | [
"MIT"
] | 6 | 2020-11-11T19:18:28.000Z | 2021-06-04T14:20:03.000Z | """
Training utilities.
Author: Mengye Ren (mren@cs.toronto.edu)
"""
from __future__ import (absolute_import, division, print_function,
unicode_literals)
import glob
import os
import sys
import tensorflow as tf
import time
from google.protobuf.text_format import Merge, MessageToString
from f... | 27.956044 | 77 | 0.678066 |
edb277d9687dd7e5a7e3b94c2dc31308186994a9 | 15,335 | py | Python | tests/test_submit.py | o-andrieiev/Universum | 71c9494f59dbac58a378d29eb31f8724964c8067 | [
"BSD-2-Clause"
] | 21 | 2019-01-07T03:59:54.000Z | 2021-12-13T10:51:54.000Z | tests/test_submit.py | o-andrieiev/Universum | 71c9494f59dbac58a378d29eb31f8724964c8067 | [
"BSD-2-Clause"
] | 407 | 2019-01-29T11:50:29.000Z | 2022-03-24T15:09:20.000Z | tests/test_submit.py | o-andrieiev/Universum | 71c9494f59dbac58a378d29eb31f8724964c8067 | [
"BSD-2-Clause"
] | 14 | 2019-01-08T07:37:13.000Z | 2022-02-03T17:00:19.000Z | # pylint: disable = redefined-outer-name
import copy
import os
import shutil
import pytest
from universum import __main__
from . import git_utils, perforce_utils, utils
def test_p4_success_files_in_default(p4_submit_environment):
# This file should not be submitted, it should remain unchanged in default CL
... | 39.119898 | 119 | 0.713857 |
edb3cc49d41e091837f0f7bacf06852173273f96 | 106 | py | Python | python/hello-python/ko_message/__init__.py | le3t/ko-repo | 50eb0b4cadb9db9bf608a9e5d36376f38ff5cce5 | [
"Apache-2.0"
] | 4 | 2019-10-26T01:25:30.000Z | 2020-01-12T08:10:25.000Z | python/hello-python/ko_message/__init__.py | Artister/tutorials-java | 50eb0b4cadb9db9bf608a9e5d36376f38ff5cce5 | [
"Apache-2.0"
] | 3 | 2019-08-26T13:41:57.000Z | 2019-08-26T13:44:21.000Z | python/hello-python/ko_message/__init__.py | Artister/tutorials-java | 50eb0b4cadb9db9bf608a9e5d36376f38ff5cce5 | [
"Apache-2.0"
] | 1 | 2019-12-30T12:27:38.000Z | 2019-12-30T12:27:38.000Z | """
__init__.py
"""
from . import receive_message
from . import send_message
| 15.142857 | 29 | 0.801887 |
edb43d40789e6373d5f99ed2947e668d34a00f63 | 1,499 | py | Python | setup.py | andrewwstephens/GNIRS-Pype | eb38f75e98d4f12aee51bab3c2058f28ab2a318f | [
"BSD-3-Clause"
] | 2 | 2020-01-05T03:28:02.000Z | 2020-03-22T04:35:40.000Z | setup.py | andrewwstephens/GNIRS-Pype | eb38f75e98d4f12aee51bab3c2058f28ab2a318f | [
"BSD-3-Clause"
] | 3 | 2019-08-25T20:53:40.000Z | 2019-08-25T20:56:28.000Z | setup.py | andrewwstephens/GNIRS-Pype | eb38f75e98d4f12aee51bab3c2058f28ab2a318f | [
"BSD-3-Clause"
] | 1 | 2019-08-21T08:35:09.000Z | 2019-08-21T08:35:09.000Z | # Based on STScI's JWST calibration pipeline.
from __future__ import print_function
from setuptools import setup, find_packages, Extension, Command
from glob import glob
# Open the README as the package long description
readme = open('README.rst', 'r')
README_TEXT = readme.read()
readme.close()
NAME = 'gnirs-pype'
S... | 33.311111 | 134 | 0.67445 |
edb477759b0dfd4b7fbc371947c377538e5c4b7b | 6,327 | py | Python | eudex/core.py | remiadon/eudex | 728c165045f510dde3db5c39ee7e8ff5a91fcac0 | [
"BSD-2-Clause"
] | 1 | 2020-10-21T12:19:03.000Z | 2020-10-21T12:19:03.000Z | eudex/core.py | remiadon/eudex | 728c165045f510dde3db5c39ee7e8ff5a91fcac0 | [
"BSD-2-Clause"
] | null | null | null | eudex/core.py | remiadon/eudex | 728c165045f510dde3db5c39ee7e8ff5a91fcac0 | [
"BSD-2-Clause"
] | null | null | null | # Author: Rmi Adon <remi.adon@gmail.com>
# License: BSD 3 clause
PHONES = [
# +--------- Confident
# |+-------- Labial
# ||+------- Liquid
# |||+------ Dental
# ||||+----- Plosive
# |||||+---- Fricative
# ||||||+--- Nasal
# |||||||+-- Discriminant
# ||||||||
"0", # ... | 25.719512 | 98 | 0.473526 |
edb49950580704884888f4473dc8ceb446dbc48d | 6,012 | py | Python | berlin52sample/GA.py | sridhar9800/SymTSP | 0cb96b168b384e868ae7d37dc5e0b43f68dd9b79 | [
"MIT"
] | 1 | 2019-03-03T05:26:41.000Z | 2019-03-03T05:26:41.000Z | berlin52sample/GA.py | sridhar9800/SymTSP | 0cb96b168b384e868ae7d37dc5e0b43f68dd9b79 | [
"MIT"
] | null | null | null | berlin52sample/GA.py | sridhar9800/SymTSP | 0cb96b168b384e868ae7d37dc5e0b43f68dd9b79 | [
"MIT"
] | null | null | null | # The original GA algorithm is here:
import numpy as np, random, operator, pandas as pd, matplotlib.pyplot as plt
import math
def createRoute(cityList):
route = random.sample(cityList, len(cityList))
return route
def initialPopulation(popSize, cityList):
population = []
for i in range(0, popSiz... | 26.839286 | 115 | 0.619927 |
edb57933d6da6c82d084bb9cc110fbefc034a51c | 2,113 | py | Python | test_query.py | kosugi/alfred.y-transit | 62d6eacef9dbe1dbfeeda56aa0ebadbd4d261460 | [
"BSD-2-Clause"
] | 2 | 2015-10-13T22:19:28.000Z | 2016-08-16T05:33:00.000Z | test_query.py | kosugi/alfred.y-transit | 62d6eacef9dbe1dbfeeda56aa0ebadbd4d261460 | [
"BSD-2-Clause"
] | null | null | null | test_query.py | kosugi/alfred.y-transit | 62d6eacef9dbe1dbfeeda56aa0ebadbd4d261460 | [
"BSD-2-Clause"
] | null | null | null | # -*- coding: utf-8 -*-
import unittest
import re
from query import *
if __name__ == '__main__':
unittest.main()
| 43.122449 | 210 | 0.58637 |
edb6c1f00c980556f22f0a058c0cb8106e081555 | 2,735 | py | Python | pgAdmin/pgadmin4/pkg/pip/setup_pip.py | WeilerWebServices/PostgreSQL | ae594ed077bebbad1be3c1d95c38b7c2c2683e8c | [
"PostgreSQL"
] | null | null | null | pgAdmin/pgadmin4/pkg/pip/setup_pip.py | WeilerWebServices/PostgreSQL | ae594ed077bebbad1be3c1d95c38b7c2c2683e8c | [
"PostgreSQL"
] | null | null | null | pgAdmin/pgadmin4/pkg/pip/setup_pip.py | WeilerWebServices/PostgreSQL | ae594ed077bebbad1be3c1d95c38b7c2c2683e8c | [
"PostgreSQL"
] | null | null | null | #########################################################################
#
# pgAdmin 4 - PostgreSQL Tools
#
# Copyright (C) 2013 - 2020, The pgAdmin Development Team
# This software is released under the PostgreSQL Licence
#
##########################################################################
import builtins
im... | 26.813725 | 74 | 0.634735 |
edb88c87eacb260200fcfeff5b16ef69ed4f2641 | 1,476 | py | Python | setup.py | jeroyang/mcgocr | 6cc6967b32161ee17cd52b482c4e9d1c08200285 | [
"MIT"
] | 1 | 2021-12-14T18:31:00.000Z | 2021-12-14T18:31:00.000Z | setup.py | jeroyang/mcgocr | 6cc6967b32161ee17cd52b482c4e9d1c08200285 | [
"MIT"
] | 1 | 2021-03-31T18:52:56.000Z | 2021-03-31T18:52:56.000Z | setup.py | jeroyang/mcgocr | 6cc6967b32161ee17cd52b482c4e9d1c08200285 | [
"MIT"
] | 1 | 2019-05-15T17:43:47.000Z | 2019-05-15T17:43:47.000Z | #!/usr/bin/env python
# -*- coding: utf-8 -*-
from setuptools import setup
import sys
import os
if sys.argv[-1] == 'publish':
os.system("python setup.py sdist bdist_wheel upload")
sys.exit()
with open('README.md') as readme_file:
readme = readme_file.read()
version = '1.0.2'
with open('requirements.txt'... | 27.333333 | 126 | 0.645664 |
edba2b17bbd63147e2694efe8a56a21fbc7e8bb6 | 2,031 | py | Python | utils.py | jbrudvik/yahoo-fantasy-basketball | 283ea74ce7c1aac708d876dd306f5952e11dce46 | [
"MIT"
] | 12 | 2015-03-01T06:48:19.000Z | 2020-04-22T01:44:26.000Z | utils.py | jbrudvik/yahoo-fantasy-basketball | 283ea74ce7c1aac708d876dd306f5952e11dce46 | [
"MIT"
] | null | null | null | utils.py | jbrudvik/yahoo-fantasy-basketball | 283ea74ce7c1aac708d876dd306f5952e11dce46 | [
"MIT"
] | 6 | 2015-10-06T00:11:51.000Z | 2020-12-10T03:50:36.000Z | import sys
import yahooscraper as ys
from datetime import datetime, date
from urllib.parse import urljoin
# Environment variables
USERNAME_ENV = 'YAHOO_USERNAME'
PASSWORD_ENV = 'YAHOO_PASSWORD'
# Command-line args
REQUIRED_ARGS = [
'<league_id>',
'<team_id>'
]
OPTIONAL_ARGS = []
# Error messages
LOGIN_ERRO... | 24.46988 | 76 | 0.628262 |
edbacaf6540809618e854205b6b85c953d6111ae | 1,104 | py | Python | huskar_sdk_v2/consts.py | mozillazg/huskar-python | f62a2d3636b2804a552bf59f76903cf2841d75c9 | [
"MIT"
] | 5 | 2019-09-29T03:09:31.000Z | 2019-11-01T15:38:26.000Z | huskar_sdk_v2/consts.py | mozillazg/huskar-python | f62a2d3636b2804a552bf59f76903cf2841d75c9 | [
"MIT"
] | 4 | 2019-09-27T03:58:55.000Z | 2019-09-27T06:34:10.000Z | huskar_sdk_v2/consts.py | mozillazg/huskar-python | f62a2d3636b2804a552bf59f76903cf2841d75c9 | [
"MIT"
] | 4 | 2019-09-27T06:03:30.000Z | 2019-10-23T09:54:08.000Z | from __future__ import absolute_import
import pkg_resources
# Huskar ZooKeeper Schema
OVERALL = 'overall'
BASE_PATH = '/huskar'
COMPONENT_PATH = '{subdomain}/{service}/{cluster}'
# Huskar API Schema
SOA_MODE_HEADER = 'X-SOA-Mode'
SOA_MODE_CHOICES = frozenset(['orig', 'prefix', 'route'])
SOA_CLUSTER_HEADER = 'X-Cl... | 20.072727 | 66 | 0.76087 |
edbf28a83203d2542b58ae1770560736ace98314 | 3,710 | py | Python | esp_debug_adapter/debug_adapter/debug_backend/debug_backend/hw_spec_tools.py | jrroches/vscode-esp-idf-extension | ce552e4e6296f5a5b450d0fd6396f05c513f27b7 | [
"Apache-2.0"
] | 2 | 2020-04-14T04:10:47.000Z | 2020-04-14T04:10:52.000Z | esp_debug_adapter/debug_adapter/debug_backend/debug_backend/hw_spec_tools.py | jrroches/vscode-esp-idf-extension | ce552e4e6296f5a5b450d0fd6396f05c513f27b7 | [
"Apache-2.0"
] | null | null | null | esp_debug_adapter/debug_adapter/debug_backend/debug_backend/hw_spec_tools.py | jrroches/vscode-esp-idf-extension | ce552e4e6296f5a5b450d0fd6396f05c513f27b7 | [
"Apache-2.0"
] | null | null | null | import sys
import os
from .gdb import Gdb
from .oocd import Oocd
from .hw_specific import *
# useful if there is some variety of naming
hw_names = {
"esp32s2beta": "Esp32_S2",
"esp32s2_beta": "Esp32_S2",
"esp32_s2beta": "Esp32_S2",
"esp32_s2_beta": "Esp32_S2",
"esp32s2": "Esp32_S2",
"esp32-s2"... | 27.279412 | 107 | 0.592722 |
edbfa488991f4602ce27b1e46bc82e5a65a52d1e | 4,306 | py | Python | tests/mlmax/test_local_deployments.py | yinsong1986/mlmax | 52c358702c06a616dc131a9e5005da214a1f7b16 | [
"Apache-2.0"
] | 56 | 2020-11-18T11:48:00.000Z | 2022-03-04T21:47:15.000Z | tests/mlmax/test_local_deployments.py | yinsong1986/mlmax | 52c358702c06a616dc131a9e5005da214a1f7b16 | [
"Apache-2.0"
] | 71 | 2020-11-26T00:49:59.000Z | 2022-02-28T03:45:37.000Z | tests/mlmax/test_local_deployments.py | yinsong1986/mlmax | 52c358702c06a616dc131a9e5005da214a1f7b16 | [
"Apache-2.0"
] | 19 | 2020-11-19T12:44:31.000Z | 2022-02-04T03:45:02.000Z | import datatest as dt
import pytest
from sagemaker.processing import ProcessingInput, ProcessingOutput
from sagemaker.sklearn.estimator import SKLearn
from sagemaker.sklearn.processing import SKLearnProcessor
# These tests are skipped unless pytest is run with the `--smlocal` flag.
# These tests will be run in Python ... | 30.111888 | 98 | 0.602415 |
edc0a20424baac9a7fd7d4d0c066e2ddcae39351 | 371 | py | Python | RecoJets/JetProducers/python/ak4PFClusterJets_cfi.py | ckamtsikis/cmssw | ea19fe642bb7537cbf58451dcf73aa5fd1b66250 | [
"Apache-2.0"
] | 852 | 2015-01-11T21:03:51.000Z | 2022-03-25T21:14:00.000Z | RecoJets/JetProducers/python/ak4PFClusterJets_cfi.py | ckamtsikis/cmssw | ea19fe642bb7537cbf58451dcf73aa5fd1b66250 | [
"Apache-2.0"
] | 30,371 | 2015-01-02T00:14:40.000Z | 2022-03-31T23:26:05.000Z | RecoJets/JetProducers/python/ak4PFClusterJets_cfi.py | ckamtsikis/cmssw | ea19fe642bb7537cbf58451dcf73aa5fd1b66250 | [
"Apache-2.0"
] | 3,240 | 2015-01-02T05:53:18.000Z | 2022-03-31T17:24:21.000Z | import FWCore.ParameterSet.Config as cms
from RecoJets.JetProducers.PFClusterJetParameters_cfi import *
from RecoJets.JetProducers.AnomalousCellParameters_cfi import *
ak4PFClusterJets = cms.EDProducer(
"FastjetJetProducer",
PFClusterJetParameters,
AnomalousCellParameters,
jetAlgorithm = cms.string("A... | 26.5 | 63 | 0.765499 |
edc129a8cacd43a8eb75eac16b6fa359f8e35f39 | 3,241 | py | Python | python/Generate_Employee_Codes_Data.py | jdglaser/census-dw | 8d6eabf7e5c9fc5c16eb93a1ce6077fa49c8482b | [
"MIT"
] | null | null | null | python/Generate_Employee_Codes_Data.py | jdglaser/census-dw | 8d6eabf7e5c9fc5c16eb93a1ce6077fa49c8482b | [
"MIT"
] | null | null | null | python/Generate_Employee_Codes_Data.py | jdglaser/census-dw | 8d6eabf7e5c9fc5c16eb93a1ce6077fa49c8482b | [
"MIT"
] | null | null | null | '''
The functions in this script are used to fill data in the census data warehouse.
These functions are used to fill dbo.DIM_CBP_Employee_Sizes
'''
__author__ = "Jarred Glaser"
__last_updated__ = "2019-11-08"
import pandas as pd
from sqlalchemy import create_engine
values = {
"001": "All establishments",
... | 47.661765 | 129 | 0.676952 |
edc1a87e4f10eaf7cffcc4f3d179b740642df13d | 585 | py | Python | accountsplus/tests/test_admin.py | GhalebKhaled/django-users-plus | 467f6cb528672a1eafc336640d2c7d0f06c378c6 | [
"MIT"
] | 3 | 2016-05-26T13:25:19.000Z | 2020-12-30T07:40:02.000Z | accountsplus/tests/test_admin.py | GhalebKhaled/django-users-plus | 467f6cb528672a1eafc336640d2c7d0f06c378c6 | [
"MIT"
] | 31 | 2016-05-26T13:20:48.000Z | 2021-06-10T19:57:19.000Z | accountsplus/tests/test_admin.py | GhalebKhaled/django-users-plus | 467f6cb528672a1eafc336640d2c7d0f06c378c6 | [
"MIT"
] | 1 | 2018-05-24T13:01:40.000Z | 2018-05-24T13:01:40.000Z | from __future__ import unicode_literals
import django.test
import django.contrib.admin
import logging
from .. import admin
from test_models import (UnitTestCompany, UnitTestUser, UnitTestAuditLogEvent, )
logging.disable(logging.CRITICAL)
| 20.892857 | 80 | 0.82735 |
edc2156240913ee79c59e19a1de39484351cfa7f | 3,701 | py | Python | frontends/pycc.py | Henny022p/cexplore | 2bd33c87d4373d4073dda8a0fe0abaef63709df2 | [
"MIT"
] | null | null | null | frontends/pycc.py | Henny022p/cexplore | 2bd33c87d4373d4073dda8a0fe0abaef63709df2 | [
"MIT"
] | 3 | 2021-08-28T21:42:23.000Z | 2021-11-10T22:30:49.000Z | frontends/pycc.py | Henny022p/cexplore | 2bd33c87d4373d4073dda8a0fe0abaef63709df2 | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
import argparse
import os
import subprocess
import sys
from shutil import copyfile
from parser import parse, generate_ast, apply_transformations, ASTDump
from parse_debug import process_debug_info
if __name__ == '__main__':
main(sys.argv[1:])
| 37.765306 | 117 | 0.64388 |
edc2c3d1d08a03106229f701c423aadb58f2f336 | 171 | py | Python | template/python/base-class.py | hiroebe/sonictemplate-vim | 55288245b005076c424da33f15b3f2301af24f3a | [
"MIT"
] | 130 | 2020-01-29T11:49:38.000Z | 2022-03-18T11:31:47.000Z | template/python/base-class.py | hiroebe/sonictemplate-vim | 55288245b005076c424da33f15b3f2301af24f3a | [
"MIT"
] | 17 | 2020-03-16T07:16:43.000Z | 2022-02-05T02:13:39.000Z | template/python/base-class.py | hiroebe/sonictemplate-vim | 55288245b005076c424da33f15b3f2301af24f3a | [
"MIT"
] | 14 | 2018-11-24T01:47:14.000Z | 2020-09-11T04:29:35.000Z | """
{{_name_}}
"""
class {{_expr_:substitute('{{_input_:name}}', '\w\+', '\u\0', '')}}(object):
def __init__(self{{_cursor_}}):
| 15.545455 | 76 | 0.532164 |
edc41cd9ac050974b750582741dcf3766b738d8e | 2,702 | py | Python | server/ahj_app/migrations/0006_ahjusermaintains_engineeringreviewrequirement.py | btansy/ahj-registry | b5340c7474f610964e828588572846ce4fb088aa | [
"MIT"
] | 4 | 2020-11-06T04:42:07.000Z | 2021-07-28T18:09:26.000Z | server/ahj_app/migrations/0006_ahjusermaintains_engineeringreviewrequirement.py | btansy/ahj-registry | b5340c7474f610964e828588572846ce4fb088aa | [
"MIT"
] | 38 | 2020-08-19T20:20:08.000Z | 2022-01-23T03:22:51.000Z | server/ahj_app/migrations/0006_ahjusermaintains_engineeringreviewrequirement.py | btansy/ahj-registry | b5340c7474f610964e828588572846ce4fb088aa | [
"MIT"
] | 8 | 2020-05-22T17:04:16.000Z | 2021-01-15T19:14:36.000Z | # Generated by Django 3.1.3 on 2021-03-16 21:18
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
| 58.73913 | 386 | 0.634345 |
edc42cc6001c9d48c8cf8dde04fe521204cfcae5 | 797 | py | Python | test-suite/generated-src/python/constant_record.py | trafi/trafi-djinni | 47cd2c849782e2ab4b38e5dc6a5a3104cc87f673 | [
"Apache-2.0"
] | 3 | 2019-11-07T03:38:03.000Z | 2020-03-28T10:24:40.000Z | test-suite/generated-src/python/constant_record.py | trafi/trafi-djinni | 47cd2c849782e2ab4b38e5dc6a5a3104cc87f673 | [
"Apache-2.0"
] | null | null | null | test-suite/generated-src/python/constant_record.py | trafi/trafi-djinni | 47cd2c849782e2ab4b38e5dc6a5a3104cc87f673 | [
"Apache-2.0"
] | 2 | 2020-12-01T18:39:26.000Z | 2021-02-04T03:55:31.000Z | # AUTOGENERATED FILE - DO NOT MODIFY!
# This file generated by Djinni from constants.djinni
from djinni.support import MultiSet # default imported in all files
from djinni.exception import CPyException # default imported in all files
from djinni.pycffi_marshal import CPyPrimitive, CPyRecord, CPyString
from PyCFFIlib_c... | 31.88 | 125 | 0.759097 |
edc48cf5740bf064744042cdf10cd4eb422aed4d | 5,295 | py | Python | back/organization/views.py | kingzbauer/ChiefOnboarding | 202092a367aade9e032286466e06399ea07f1908 | [
"MIT"
] | null | null | null | back/organization/views.py | kingzbauer/ChiefOnboarding | 202092a367aade9e032286466e06399ea07f1908 | [
"MIT"
] | null | null | null | back/organization/views.py | kingzbauer/ChiefOnboarding | 202092a367aade9e032286466e06399ea07f1908 | [
"MIT"
] | null | null | null | import boto3
from botocore.config import Config
from django.conf import settings
from django.http import HttpResponse
from django.shortcuts import get_object_or_404, render
from django.utils.decorators import method_decorator
from django.views.decorators.csrf import ensure_csrf_cookie
from rest_framework import status
... | 34.835526 | 136 | 0.675921 |
edc4da3a9def942587eaf58ffa68fe272fd80196 | 938 | py | Python | tx_elevators/management/commands/loadgeo.py | texastribune/tx_elevators | 677e4afff2c1ad0aa095ed69ee0babbe2c0b086f | [
"Apache-2.0"
] | null | null | null | tx_elevators/management/commands/loadgeo.py | texastribune/tx_elevators | 677e4afff2c1ad0aa095ed69ee0babbe2c0b086f | [
"Apache-2.0"
] | null | null | null | tx_elevators/management/commands/loadgeo.py | texastribune/tx_elevators | 677e4afff2c1ad0aa095ed69ee0babbe2c0b086f | [
"Apache-2.0"
] | null | null | null | from __future__ import division
from __future__ import unicode_literals
import csv
import logging
from django.core.management.base import BaseCommand
from tqdm import tqdm
| 29.3125 | 78 | 0.602345 |
edc5ff82c1575b616eb676e7b11cd10b1c2eeb97 | 242 | py | Python | {{cookiecutter.project_slug}}/tests/PyInstaller_/frozen-pytest.py | bwoodsend/cookiecutter-pypackage | 1b5d93af52095716f8618cdd230a48a7c7d8a4b5 | [
"BSD-3-Clause"
] | null | null | null | {{cookiecutter.project_slug}}/tests/PyInstaller_/frozen-pytest.py | bwoodsend/cookiecutter-pypackage | 1b5d93af52095716f8618cdd230a48a7c7d8a4b5 | [
"BSD-3-Clause"
] | null | null | null | {{cookiecutter.project_slug}}/tests/PyInstaller_/frozen-pytest.py | bwoodsend/cookiecutter-pypackage | 1b5d93af52095716f8618cdd230a48a7c7d8a4b5 | [
"BSD-3-Clause"
] | null | null | null | # -*- coding: utf-8 -*-
"""
Freeze pytest.main() with {{ cookiecutter.project_slug }} included.
"""
import sys
import {{ cookiecutter.project_slug }}
import pytest
sys.exit(pytest.main(sys.argv[1:] + ["--no-cov", "--tb=native"]))
| 22 | 68 | 0.623967 |
edc6943ed0081e7a4a007484e91e84a75851b55e | 861 | py | Python | src/models/losses.py | rs1004/object_detection | d0956fb76b329c40c3177fc717ea9f2fe07491a2 | [
"MIT"
] | null | null | null | src/models/losses.py | rs1004/object_detection | d0956fb76b329c40c3177fc717ea9f2fe07491a2 | [
"MIT"
] | null | null | null | src/models/losses.py | rs1004/object_detection | d0956fb76b329c40c3177fc717ea9f2fe07491a2 | [
"MIT"
] | null | null | null | import torch
import torch.nn.functional as F
| 28.7 | 122 | 0.616725 |
edc713e6ea136dc5638a1ccfbdea7741a2100dd6 | 187 | py | Python | gwcs/tests/setup_package.py | cshanahan1/gwcs | de203e5953d648baf359c50d3e6a479bcb97b83b | [
"BSD-3-Clause"
] | null | null | null | gwcs/tests/setup_package.py | cshanahan1/gwcs | de203e5953d648baf359c50d3e6a479bcb97b83b | [
"BSD-3-Clause"
] | null | null | null | gwcs/tests/setup_package.py | cshanahan1/gwcs | de203e5953d648baf359c50d3e6a479bcb97b83b | [
"BSD-3-Clause"
] | null | null | null | # Licensed under a 3-clause BSD style license - see LICENSE.rst
| 26.714286 | 78 | 0.652406 |
edc74a8ab706a873725e1d63110c9a493bca7eb4 | 3,379 | py | Python | scripts/sv/combine-sv-genotypes/merge_exact_hets.py | vgteam/giraffe-sv-paper | 0e81331b6d4ae27461c7d8b907ef33dad6fddc46 | [
"MIT"
] | 23 | 2020-12-06T14:58:13.000Z | 2022-03-08T18:10:48.000Z | scripts/sv/combine-sv-genotypes/merge_exact_hets.py | vgteam/giraffe-sv-paper | 0e81331b6d4ae27461c7d8b907ef33dad6fddc46 | [
"MIT"
] | 10 | 2020-09-15T17:58:32.000Z | 2022-03-23T13:53:15.000Z | scripts/sv/combine-sv-genotypes/merge_exact_hets.py | vgteam/giraffe-sv-paper | 0e81331b6d4ae27461c7d8b907ef33dad6fddc46 | [
"MIT"
] | 6 | 2021-02-07T15:41:24.000Z | 2021-12-31T15:46:17.000Z | import fileinput
import sys
# merge "symetric" hets (0/1+1/0 and vice versa) that match
# exactly (chr, pos, ref, alt). They must be consecutive so
# the VCF should be sorted.
# The variants are merged and the genotype is transformed to 1/1.
# If present, the merged GQ is the minimum of the two variants merged.
# l... | 35.946809 | 73 | 0.517905 |
edc7aee6d0b122d86c42cccd0bf4c885fa2fd7db | 4,790 | py | Python | src/infrastructure/services/scraper_services.py | rafaelcorazzi/game-scraper | 6543e6ee55f4776dd8f2c3cc49993d84401202c9 | [
"MIT"
] | null | null | null | src/infrastructure/services/scraper_services.py | rafaelcorazzi/game-scraper | 6543e6ee55f4776dd8f2c3cc49993d84401202c9 | [
"MIT"
] | null | null | null | src/infrastructure/services/scraper_services.py | rafaelcorazzi/game-scraper | 6543e6ee55f4776dd8f2c3cc49993d84401202c9 | [
"MIT"
] | null | null | null | import bs4
import requests
from bs4 import BeautifulSoup
import base64
import hashlib
from typing import List
import re
from src.helpers.utils import Utils
from src.domain.console_domain import ConsolePlataform
from src.domain.console_games_domain import ConsoleGames
from src.domain.game_domain import Game
import maya
... | 47.9 | 152 | 0.596868 |
edc9550648c671816c3a908aa883c11e67ae1921 | 1,373 | py | Python | badwolf/deploy/providers/pypi.py | messense/badwolf | c693785af101f68505769cd712bbf13e37423587 | [
"MIT"
] | 94 | 2016-09-19T08:40:47.000Z | 2021-07-03T12:55:11.000Z | badwolf/deploy/providers/pypi.py | messense/badwolf | c693785af101f68505769cd712bbf13e37423587 | [
"MIT"
] | 32 | 2016-09-25T07:22:53.000Z | 2018-12-20T08:13:19.000Z | badwolf/deploy/providers/pypi.py | messense/badwolf | c693785af101f68505769cd712bbf13e37423587 | [
"MIT"
] | 15 | 2016-09-20T08:14:40.000Z | 2021-03-23T07:59:09.000Z | # -*- coding: utf-8 -*-
import logging
from badwolf.utils import run_command
from badwolf.deploy.providers import Provider
logger = logging.getLogger(__name__)
| 25.425926 | 71 | 0.504734 |
edc95e42eea0407cdb0977716b363f03dc484545 | 15,706 | py | Python | lib/filewatcher/filewatchconfig.py | yinyin/FileWatcher | c415b201eaaeb2ab84d0a6ee4f6a290aeaa4eacf | [
"MIT"
] | null | null | null | lib/filewatcher/filewatchconfig.py | yinyin/FileWatcher | c415b201eaaeb2ab84d0a6ee4f6a290aeaa4eacf | [
"MIT"
] | null | null | null | lib/filewatcher/filewatchconfig.py | yinyin/FileWatcher | c415b201eaaeb2ab84d0a6ee4f6a290aeaa4eacf | [
"MIT"
] | null | null | null |
# -*- coding: utf-8 -*-
""" """
import os
import re
import time
import datetime
import yaml
from filewatcher import metadatum
# ### class WatcherConfiguration
# ### class OperationEntry
# ### class MonitorEntry
# ### class TimeInterval
_ignorance_checker_list = {}
def register_ignorance_checker(name, check... | 31.60161 | 202 | 0.768687 |
edcbd1b459fd418223a16b044ad6e4114c07aee2 | 3,296 | py | Python | antioch/test/test_permissions.py | philchristensen/antioch | 7fe27c961ae81b7655c6428038c85eefad27e980 | [
"MIT"
] | 15 | 2015-10-07T06:30:22.000Z | 2022-03-07T19:44:55.000Z | antioch/test/test_permissions.py | philchristensen/antioch | 7fe27c961ae81b7655c6428038c85eefad27e980 | [
"MIT"
] | 2 | 2016-10-17T05:04:58.000Z | 2018-09-10T02:36:15.000Z | antioch/test/test_permissions.py | philchristensen/antioch | 7fe27c961ae81b7655c6428038c85eefad27e980 | [
"MIT"
] | 2 | 2018-07-30T12:58:33.000Z | 2018-11-26T03:17:34.000Z | # antioch
# Copyright (c) 1999-2019 Phil Christensen
#
# See LICENSE for details
import sys, os, os.path, time
from django.test import TestCase
from django.db import connection
from antioch import test
from antioch.core import errors, exchange
# sys.setrecursionlimit(100)
| 41.721519 | 79 | 0.67233 |
edcc99ba35cb469b4352ad6be312b3c17204649e | 26 | py | Python | src/pip/__init__.py | ehashman/pip | d67d98dd914e2ce80ece43594554f0a226558db0 | [
"MIT"
] | 1 | 2021-01-23T16:43:24.000Z | 2021-01-23T16:43:24.000Z | src/pip/__init__.py | ehashman/pip | d67d98dd914e2ce80ece43594554f0a226558db0 | [
"MIT"
] | null | null | null | src/pip/__init__.py | ehashman/pip | d67d98dd914e2ce80ece43594554f0a226558db0 | [
"MIT"
] | 1 | 2019-06-28T05:23:31.000Z | 2019-06-28T05:23:31.000Z | __version__ = "18.0.dev0"
| 13 | 25 | 0.692308 |
edcca62c26abb9e264f67f2c111df571e166b600 | 30,076 | py | Python | autoconj/rewrites.py | google-research/autoconj | 8a167210a202a1bfdeab87d34e6e66391cad08a3 | [
"ECL-2.0",
"Apache-2.0"
] | 34 | 2018-12-01T00:29:31.000Z | 2021-11-06T02:38:54.000Z | autoconj/rewrites.py | google-research/autoconj | 8a167210a202a1bfdeab87d34e6e66391cad08a3 | [
"ECL-2.0",
"Apache-2.0"
] | 2 | 2018-12-02T06:31:32.000Z | 2019-01-24T15:21:40.000Z | autoconj/rewrites.py | google-research/autoconj | 8a167210a202a1bfdeab87d34e6e66391cad08a3 | [
"ECL-2.0",
"Apache-2.0"
] | 5 | 2019-05-22T08:58:40.000Z | 2022-01-16T11:31:30.000Z | # Copyright 2018 Google 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 agreed to in writing, ... | 37.08508 | 89 | 0.666212 |
edcfd1c7816737308f5a42fb79a0ac6ef025fc3f | 457 | py | Python | smng.py | caostorm/smng | f1cff4010a0645ae8e1182cd3c961d97cecf4a6e | [
"MIT"
] | null | null | null | smng.py | caostorm/smng | f1cff4010a0645ae8e1182cd3c961d97cecf4a6e | [
"MIT"
] | null | null | null | smng.py | caostorm/smng | f1cff4010a0645ae8e1182cd3c961d97cecf4a6e | [
"MIT"
] | 1 | 2019-06-26T13:05:45.000Z | 2019-06-26T13:05:45.000Z | #coding=utf-8
from core.interface.action import server_action
from core.helper.creator import create_action
from core.helper.globalvar import global_const
import os
| 25.388889 | 70 | 0.669584 |
edd15c37e43dc01593a312943e481b1e92f7c6cb | 3,696 | py | Python | src/spark/io/stubs.py | jbalint/spark | caccf1cd9122dd4a7dc0f26a57ee4a649056aa6f | [
"CNRI-Jython"
] | 1 | 2015-05-21T20:00:12.000Z | 2015-05-21T20:00:12.000Z | src/spark/io/stubs.py | jbalint/spark | caccf1cd9122dd4a7dc0f26a57ee4a649056aa6f | [
"CNRI-Jython"
] | null | null | null | src/spark/io/stubs.py | jbalint/spark | caccf1cd9122dd4a7dc0f26a57ee4a649056aa6f | [
"CNRI-Jython"
] | null | null | null | #*****************************************************************************#
#* Copyright (c) 2004-2008, SRI International. *#
#* All rights reserved. *#
#* ... | 52.056338 | 80 | 0.559524 |
edd19813e57cf8a9a87d7d5b00f5185c75082c8e | 2,806 | py | Python | isitfit/tests/test_click.py | autofitcloud/isitf | 6ffc0c67c00140120f5d5ad8dfe11c8f0f7dacc1 | [
"Apache-2.0"
] | 82 | 2019-09-04T17:39:10.000Z | 2021-08-10T14:59:18.000Z | isitfit/tests/test_click.py | autofitcloud/isitf | 6ffc0c67c00140120f5d5ad8dfe11c8f0f7dacc1 | [
"Apache-2.0"
] | 11 | 2019-09-10T03:54:19.000Z | 2020-02-21T22:58:44.000Z | isitfit/tests/test_click.py | autofitcloud/isitf | 6ffc0c67c00140120f5d5ad8dfe11c8f0f7dacc1 | [
"Apache-2.0"
] | 9 | 2019-09-13T15:57:42.000Z | 2021-02-13T15:56:40.000Z | """
General tests for click usage. Check each test's docstrings for more details
"""
import click
| 35.518987 | 142 | 0.702067 |
edd295ef1c3dfcb502f8ddda52936db7370d0e3f | 448 | py | Python | tws_game/base_classes.py | tomreitsma/the-weird-science | 1aaa4f42852fa82c99d69df9a6b0448f054583d9 | [
"MIT"
] | 1 | 2016-02-20T23:44:53.000Z | 2016-02-20T23:44:53.000Z | tws_game/base_classes.py | tomreitsma/the-weird-science | 1aaa4f42852fa82c99d69df9a6b0448f054583d9 | [
"MIT"
] | null | null | null | tws_game/base_classes.py | tomreitsma/the-weird-science | 1aaa4f42852fa82c99d69df9a6b0448f054583d9 | [
"MIT"
] | null | null | null | from uuid import uuid4
| 16.592593 | 52 | 0.595982 |
edd3884ebad4f816fc880ec2083447f9befb84ec | 480 | py | Python | src/sleuthdeck/plugins/sound/actions.py | sleuth-io/sleuth-deck | 289b9967e7d395de8aa05268eb5e686b67285c1e | [
"Apache-2.0"
] | null | null | null | src/sleuthdeck/plugins/sound/actions.py | sleuth-io/sleuth-deck | 289b9967e7d395de8aa05268eb5e686b67285c1e | [
"Apache-2.0"
] | null | null | null | src/sleuthdeck/plugins/sound/actions.py | sleuth-io/sleuth-deck | 289b9967e7d395de8aa05268eb5e686b67285c1e | [
"Apache-2.0"
] | null | null | null | from pydub import AudioSegment
from pydub.playback import play
from sleuthdeck.deck import Action
from sleuthdeck.deck import ClickType
from sleuthdeck.deck import Key
from sleuthdeck.deck import KeyScene
| 28.235294 | 68 | 0.727083 |
edd3adc383a5336977f9cd8a5a463386702c9be3 | 203 | py | Python | content/usage/lst/feedback/reset-feedback.py | Kumortas/osdoc_eyelogic | 5688c1b85135aaa0fcfb37c4889b9c3dd82d7821 | [
"CC-BY-3.0"
] | null | null | null | content/usage/lst/feedback/reset-feedback.py | Kumortas/osdoc_eyelogic | 5688c1b85135aaa0fcfb37c4889b9c3dd82d7821 | [
"CC-BY-3.0"
] | null | null | null | content/usage/lst/feedback/reset-feedback.py | Kumortas/osdoc_eyelogic | 5688c1b85135aaa0fcfb37c4889b9c3dd82d7821 | [
"CC-BY-3.0"
] | null | null | null | exp.set('total_responses', 0)
exp.set('total_correct', 0)
exp.set('total_response_time', 0)
exp.set('average_response_time', 'NA')
exp.set('avg_rt', 'NA')
exp.set('accuracy', 'NA')
exp.set('acc', 'NA')
| 22.555556 | 38 | 0.679803 |
edd5d196bcf7dc43acd4440a4a14048214ab8a01 | 3,557 | py | Python | bash_source/bacsort/pairwise_identities_to_distance_matrix.py | jwang45/biosuite | e380951d01dff39a5c5d98c2c9e345f52e12b429 | [
"MIT"
] | null | null | null | bash_source/bacsort/pairwise_identities_to_distance_matrix.py | jwang45/biosuite | e380951d01dff39a5c5d98c2c9e345f52e12b429 | [
"MIT"
] | null | null | null | bash_source/bacsort/pairwise_identities_to_distance_matrix.py | jwang45/biosuite | e380951d01dff39a5c5d98c2c9e345f52e12b429 | [
"MIT"
] | 2 | 2021-03-28T01:33:56.000Z | 2022-01-03T22:35:42.000Z | #!/usr/bin/env python3
"""
Copyright 2018 Ryan Wick (rrwick@gmail.com)
https://github.com/rrwick/Bacsort
This script uses FastANI output to generate a PHYLIP distance matrix suitable for quicktree.
This file is part of Bacsort. Bacsort is free software: you can redistribute it and/or modify it
under the terms of the ... | 37.442105 | 97 | 0.634523 |
edd69b1a90da038c91ea71a633b13eca4b101cd7 | 142 | py | Python | edera/storages/__init__.py | thoughteer/edera | c4ddb5d8a25906c3bd773c91afb3260fc0b704f2 | [
"MIT"
] | 3 | 2018-11-27T15:45:19.000Z | 2018-12-21T20:32:10.000Z | edera/storages/__init__.py | thoughteer/edera | c4ddb5d8a25906c3bd773c91afb3260fc0b704f2 | [
"MIT"
] | 18 | 2018-12-02T18:38:59.000Z | 2020-02-05T22:09:37.000Z | edera/storages/__init__.py | thoughteer/edera | c4ddb5d8a25906c3bd773c91afb3260fc0b704f2 | [
"MIT"
] | null | null | null | from .embedded import EmbeddedStorage
from .inmemory import InMemoryStorage
from .mongo import MongoStorage
from .sqlite import SQLiteStorage
| 28.4 | 37 | 0.859155 |
edd9258717623e689869f502ad04719680d78c8a | 5,884 | py | Python | buttshock/et232/base.py | nannook206/buttshock-py | c5feeb8a7c42dc9d81500faa8966d5271baf7db9 | [
"BSD-3-Clause"
] | 1 | 2021-02-10T05:12:10.000Z | 2021-02-10T05:12:10.000Z | buttshock/et232/base.py | nannook206/buttshock-py | c5feeb8a7c42dc9d81500faa8966d5271baf7db9 | [
"BSD-3-Clause"
] | null | null | null | buttshock/et232/base.py | nannook206/buttshock-py | c5feeb8a7c42dc9d81500faa8966d5271baf7db9 | [
"BSD-3-Clause"
] | null | null | null | # Buttshock - Base Module
#
# Contains base classes for communicating with the to the ErosTek ET-232B
# Electrostim Unit.
from ..errors import ButtshockChecksumError, ButtshockError, ButtshockIOError
import binascii
import struct
| 35.878049 | 126 | 0.612508 |
edda94634a39ff6afa273e96315420641fb859a8 | 1,476 | py | Python | Python/Robot.py | zdynamics/zRobotics | aed0beac327710f319b996a34b42df37440d33cd | [
"MIT"
] | 2 | 2021-01-19T10:21:48.000Z | 2021-02-15T14:55:12.000Z | Python/Robot.py | zdynamics/zRobotics | aed0beac327710f319b996a34b42df37440d33cd | [
"MIT"
] | null | null | null | Python/Robot.py | zdynamics/zRobotics | aed0beac327710f319b996a34b42df37440d33cd | [
"MIT"
] | null | null | null | import DenavitHartenberg as dh
import Kinematics as k
import numpy as np
import matplotlib.pyplot as plt
import Movements as mv
from mpl_toolkits.mplot3d import Axes3D
from matplotlib.animation import FuncAnimation
from sympy import *
| 35.142857 | 195 | 0.705285 |
eddb15d254e593a0765f22a5054c77cc0880c341 | 4,183 | py | Python | rbacProject/apps/rbac/views_role.py | xeroCBW/testmodel | 6000d79f91d11bcf6ba76befb3a94a007231ecdc | [
"MIT"
] | null | null | null | rbacProject/apps/rbac/views_role.py | xeroCBW/testmodel | 6000d79f91d11bcf6ba76befb3a94a007231ecdc | [
"MIT"
] | 54 | 2020-06-24T07:12:19.000Z | 2022-03-12T00:43:57.000Z | rbacProject/apps/rbac/views_role.py | xeroCBW/testmodel | 6000d79f91d11bcf6ba76befb3a94a007231ecdc | [
"MIT"
] | null | null | null | from django.http import HttpResponse
from django.shortcuts import render, redirect, get_object_or_404
import json
from django.core.serializers.json import DjangoJSONEncoder
from rbac.models import Menu, Role
from system.models import SystemSetup
from users.models import Structure
from system.forms import *
from django... | 37.017699 | 96 | 0.646426 |
eddb225ea3692d8dc487ca424020c28ae181faae | 1,044 | py | Python | tests/emulator/kernel/test_printf.py | FKD13/RCPU | 1f27246494f60eaa2432470b2d218bb3f63578c7 | [
"MIT"
] | 17 | 2017-07-26T13:08:34.000Z | 2022-02-19T20:44:02.000Z | tests/emulator/kernel/test_printf.py | FKD13/RCPU | 1f27246494f60eaa2432470b2d218bb3f63578c7 | [
"MIT"
] | 4 | 2017-10-12T20:56:39.000Z | 2020-05-04T09:19:44.000Z | tests/emulator/kernel/test_printf.py | FKD13/RCPU | 1f27246494f60eaa2432470b2d218bb3f63578c7 | [
"MIT"
] | 4 | 2017-10-16T16:24:16.000Z | 2022-03-21T19:07:06.000Z | from .utils import init_kernel
import pytest
| 26.1 | 71 | 0.645594 |
eddb2b8cf0ca4625b7ca1cfc397fac955e5bf784 | 901 | py | Python | src/spaceone/inventory/libs/manager.py | jihyungSong/plugin-azure-power-state | d66bd5dfafa01659c877da11c0d18de6e55cb5ab | [
"Apache-2.0"
] | null | null | null | src/spaceone/inventory/libs/manager.py | jihyungSong/plugin-azure-power-state | d66bd5dfafa01659c877da11c0d18de6e55cb5ab | [
"Apache-2.0"
] | null | null | null | src/spaceone/inventory/libs/manager.py | jihyungSong/plugin-azure-power-state | d66bd5dfafa01659c877da11c0d18de6e55cb5ab | [
"Apache-2.0"
] | null | null | null | from spaceone.core.manager import BaseManager
from spaceone.inventory.libs.connector import AzureConnector
| 31.068966 | 105 | 0.720311 |
eddbe83e48db8fef41ac38d6e5ca40fd5e8b0743 | 1,024 | py | Python | sxml/utils.py | vmstarchenko/sxml | 3b6fc3a89f404acfe298491555d15df269125e8f | [
"MIT"
] | null | null | null | sxml/utils.py | vmstarchenko/sxml | 3b6fc3a89f404acfe298491555d15df269125e8f | [
"MIT"
] | null | null | null | sxml/utils.py | vmstarchenko/sxml | 3b6fc3a89f404acfe298491555d15df269125e8f | [
"MIT"
] | null | null | null | import re
import importlib.util
import sys
from .options import Option
# https://docs.python.org/3/library/importlib.html#implementing-lazy-imports
| 25.6 | 76 | 0.657227 |
eddccfe344220f40b8d37221eaf5337a8e696f89 | 1,745 | py | Python | project_name/common/serializers.py | brevetech/breve_drf_template | 125e476810641f919296cb878980f91f4c091cf2 | [
"MIT"
] | null | null | null | project_name/common/serializers.py | brevetech/breve_drf_template | 125e476810641f919296cb878980f91f4c091cf2 | [
"MIT"
] | 17 | 2021-04-05T00:22:13.000Z | 2022-01-11T04:53:47.000Z | project_name/common/serializers.py | brevetech/breve_drf_template | 125e476810641f919296cb878980f91f4c091cf2 | [
"MIT"
] | 1 | 2022-01-07T05:48:19.000Z | 2022-01-07T05:48:19.000Z | from rest_framework import serializers
| 26.846154 | 79 | 0.665903 |
eddcf1057146e76507367dfd8670018657886c10 | 2,027 | py | Python | packages/models-library/src/models_library/function_service/iter_range.py | elisabettai/osparc-simcore | ad7b6e05111b50fe95e49306a992170490a7247f | [
"MIT"
] | null | null | null | packages/models-library/src/models_library/function_service/iter_range.py | elisabettai/osparc-simcore | ad7b6e05111b50fe95e49306a992170490a7247f | [
"MIT"
] | 1 | 2021-11-29T13:38:09.000Z | 2021-11-29T13:38:09.000Z | packages/models-library/src/models_library/function_service/iter_range.py | mrnicegyu11/osparc-simcore | b6fa6c245dbfbc18cc74a387111a52de9b05d1f4 | [
"MIT"
] | null | null | null | from typing import Optional
from ..services import LATEST_INTEGRATION_VERSION, ServiceDockerData, ServiceType
from ._utils import OM, create_fake_thumbnail_url, register
from .constants import FUNCTION_SERVICE_KEY_PREFIX
META_INT = create_metadata("integer", prefix="int")
REGISTRY = register(META_INT)
| 34.948276 | 117 | 0.497287 |
edded256d3524fed00da7c53e5bce4b3ed1e5815 | 13,212 | py | Python | v2/audio/audio_reader.py | safgen/deep-speaker | 37ffa36ec38539cd6511a2f8028d32409a506c8d | [
"Apache-2.0"
] | null | null | null | v2/audio/audio_reader.py | safgen/deep-speaker | 37ffa36ec38539cd6511a2f8028d32409a506c8d | [
"Apache-2.0"
] | null | null | null | v2/audio/audio_reader.py | safgen/deep-speaker | 37ffa36ec38539cd6511a2f8028d32409a506c8d | [
"Apache-2.0"
] | null | null | null | from time import time
import dill
import librosa
import numpy as np
import os
import re
from glob import glob
from random import shuffle, randint, choice
from tqdm import tqdm
from helpers.logger import Logger
logger = Logger.instance()
TMP_DIR = '/tmp/speaker-change-detection/'
if not os.path.exists(TMP_DIR):
... | 43.60396 | 115 | 0.589237 |
ede2685d8269a2230f5b98917844cbdcbe83a2f8 | 4,030 | py | Python | Learning/DublicateFileHandler/handler.py | achaika80/Python | 4e927677027ebc55006528febeb03ace43ee7b9a | [
"MIT"
] | null | null | null | Learning/DublicateFileHandler/handler.py | achaika80/Python | 4e927677027ebc55006528febeb03ace43ee7b9a | [
"MIT"
] | null | null | null | Learning/DublicateFileHandler/handler.py | achaika80/Python | 4e927677027ebc55006528febeb03ace43ee7b9a | [
"MIT"
] | null | null | null | # write your code here
import sys
import os
import hashlib
args = sys.argv
print(sys.argv)
if len(args) < 2:
print("Directory is not specified")
sys.exit()
else:
file_ext = ''
file_ext = input('Enter file format:')
sort = input('\nSize sorting options:\n1. Descending\n2. Ascending\n\nEnter a sorti... | 32.24 | 99 | 0.523573 |
ede26e4b3315b6449745d3f1642592836366342e | 12,015 | py | Python | refactored_modular/nest_tvb_pivot.py | sontheimer/EBRAINS_InterscaleHUB | 2ee323960fb9b0d0c8920fcaee996b56f8a23b56 | [
"BSD-3-Clause"
] | null | null | null | refactored_modular/nest_tvb_pivot.py | sontheimer/EBRAINS_InterscaleHUB | 2ee323960fb9b0d0c8920fcaee996b56f8a23b56 | [
"BSD-3-Clause"
] | null | null | null | refactored_modular/nest_tvb_pivot.py | sontheimer/EBRAINS_InterscaleHUB | 2ee323960fb9b0d0c8920fcaee996b56f8a23b56 | [
"BSD-3-Clause"
] | null | null | null | # ------------------------------------------------------------------------------
# Copyright 2020 Forschungszentrum Jlich GmbH
# "Licensed to the Apache Software Foundation (ASF) under one or more contributor
# license agreements; and to You under the Apache License, Version 2.0. "
#
# Forschungszentrum Jlich
# Inst... | 47.868526 | 125 | 0.590179 |
ede4930e4c062ccc51da3f4ff268a0b082862787 | 4,598 | py | Python | benchmarking/simulations/scripts/cluster_build.py | justinshaffer/DEICODE | b7cd4da09c993bdd9ab536b1a5919dbc28d2b9ca | [
"BSD-3-Clause"
] | null | null | null | benchmarking/simulations/scripts/cluster_build.py | justinshaffer/DEICODE | b7cd4da09c993bdd9ab536b1a5919dbc28d2b9ca | [
"BSD-3-Clause"
] | null | null | null | benchmarking/simulations/scripts/cluster_build.py | justinshaffer/DEICODE | b7cd4da09c993bdd9ab536b1a5919dbc28d2b9ca | [
"BSD-3-Clause"
] | null | null | null | #Import
import warnings; warnings.simplefilter('ignore') #for PCoA warnings
import pandas as pd
import numpy as np
#import data
from biom import load_table
from skbio.stats import subsample_counts
#MOCK data generation
from gneiss.util import match
from gneiss.sort import niche_sort
from simulations import block_diag... | 41.423423 | 112 | 0.64789 |
ede60152664399f915e6a4e1c0d2aab4aa9ad6f4 | 3,889 | py | Python | quantsbin/derivativepricing/namesnmapper.py | quantsbin/Quantsbin | 362522653b4b8ebcf14461e3f44fe22dea465adc | [
"MIT"
] | 132 | 2018-06-20T08:40:48.000Z | 2022-03-24T11:34:22.000Z | quantsbin/derivativepricing/namesnmapper.py | williamjiamin/Quantsbin | 14a135174d9f08a70e36ed55279fbd7458e1ad48 | [
"MIT"
] | 5 | 2018-07-08T06:23:53.000Z | 2021-08-08T06:30:43.000Z | quantsbin/derivativepricing/namesnmapper.py | williamjiamin/Quantsbin | 14a135174d9f08a70e36ed55279fbd7458e1ad48 | [
"MIT"
] | 35 | 2018-07-12T10:07:30.000Z | 2022-03-01T04:00:17.000Z | """
developed by Quantsbin - Jun'18
"""
from enum import Enum
OBJECT_MODEL = {
UdlType.STOCK.value: {ExpiryType.EUROPEAN.value: [PricingModel.BLACKSCHOLESMERTON.value, PricingModel.MC_GBM.value
, PricingModel.BINOMIAL.value],
ExpiryType.AMERICAN.v... | 32.408333 | 118 | 0.643096 |
ede60204de9557cf451ada2495226772a7549397 | 6,012 | py | Python | code/Net.py | fpklipic/DRHNet | b895569d09269a2d07f3db17c3d590588ce5cdd0 | [
"MIT"
] | 4 | 2020-10-23T06:16:11.000Z | 2021-04-02T08:22:33.000Z | code/Net.py | fpklipic/DRHN | b895569d09269a2d07f3db17c3d590588ce5cdd0 | [
"MIT"
] | 2 | 2020-12-08T07:20:34.000Z | 2020-12-10T06:31:38.000Z | code/Net.py | fpklipic/DRHN | b895569d09269a2d07f3db17c3d590588ce5cdd0 | [
"MIT"
] | 1 | 2021-05-12T01:22:09.000Z | 2021-05-12T01:22:09.000Z | import tensorflow as tf
import numpy as np
import resnet_block
#normalization
#group normalization
if __name__ == "__main__":
net = Net()
input_X = tf.placeholder(tf.float32, [None, 128,128,3])
model = net.model(input_X,training=True)
init = tf.global_variables_initializer()
sess = tf.Se... | 47.714286 | 140 | 0.63024 |
ede81f243af3398e8f56425a8d4199584d3a742d | 242 | py | Python | test/appengine_api_tests.py | al3x/downforeveryoneorjustme | e1c47f78330b05753027b5d0f46b3d4f49261347 | [
"Apache-2.0"
] | 26 | 2015-01-13T23:41:29.000Z | 2020-04-09T01:24:44.000Z | test/appengine_api_tests.py | ananthrk/downforeveryoneorjustme | e1c47f78330b05753027b5d0f46b3d4f49261347 | [
"Apache-2.0"
] | 2 | 2015-04-15T16:51:52.000Z | 2017-09-04T10:00:49.000Z | test/appengine_api_tests.py | ananthrk/downforeveryoneorjustme | e1c47f78330b05753027b5d0f46b3d4f49261347 | [
"Apache-2.0"
] | 5 | 2015-05-25T11:34:01.000Z | 2021-07-13T19:19:29.000Z | import unittest
from google.appengine.api import urlfetch
| 30.25 | 57 | 0.760331 |
ede82b70bf99f314d1e8aa51cd3aaaad1cfab85c | 1,875 | py | Python | blog_project/routes/art_route.py | acatamathesia/flask_blog_react | ecf8f332e6c793df5d14bea821850995f58aea20 | [
"Apache-2.0"
] | null | null | null | blog_project/routes/art_route.py | acatamathesia/flask_blog_react | ecf8f332e6c793df5d14bea821850995f58aea20 | [
"Apache-2.0"
] | null | null | null | blog_project/routes/art_route.py | acatamathesia/flask_blog_react | ecf8f332e6c793df5d14bea821850995f58aea20 | [
"Apache-2.0"
] | null | null | null | from flask import request, session
from models.models import Article, ArticleContent
from models.result import ResultResp
from services import art_services
| 37.5 | 136 | 0.608533 |
ede90b07bb914c61617203da0d78fdef9c56ce61 | 1,515 | py | Python | qcloudsdkvpc/CreateFlowLogRequest.py | f3n9/qcloudcli | b965a4f0e6cdd79c1245c1d0cd2ca9c460a56f19 | [
"Apache-2.0"
] | null | null | null | qcloudsdkvpc/CreateFlowLogRequest.py | f3n9/qcloudcli | b965a4f0e6cdd79c1245c1d0cd2ca9c460a56f19 | [
"Apache-2.0"
] | null | null | null | qcloudsdkvpc/CreateFlowLogRequest.py | f3n9/qcloudcli | b965a4f0e6cdd79c1245c1d0cd2ca9c460a56f19 | [
"Apache-2.0"
] | null | null | null | # -*- coding: utf-8 -*-
from qcloudsdkcore.request import Request
| 29.134615 | 72 | 0.687129 |
edea0d0f1f7b2c0628ccd521c65acf172d4e0817 | 79,147 | py | Python | tcga_encoder/models/layers.py | tedmeeds/tcga_encoder | 805f9a5bcc422a43faea45baa0996c88d346e3b4 | [
"MIT"
] | 2 | 2017-12-19T15:32:46.000Z | 2018-01-12T11:24:24.000Z | tcga_encoder/models/layers.py | tedmeeds/tcga_encoder | 805f9a5bcc422a43faea45baa0996c88d346e3b4 | [
"MIT"
] | null | null | null | tcga_encoder/models/layers.py | tedmeeds/tcga_encoder | 805f9a5bcc422a43faea45baa0996c88d346e3b4 | [
"MIT"
] | null | null | null |
from tcga_encoder.utils.helpers import *
from tcga_encoder.utils.math_funcs import *
import tensorflow as tf
from tcga_encoder.models.layers import *
from tcga_encoder.models.regularizers import *
from tcga_encoder.definitions.nn import *
from tcga_encoder.definitions.locations import *
from tcga_encoder.definitions.... | 36.863996 | 179 | 0.612872 |
edeb41eb0494eadca2e1ce976f18c5052a3a974b | 27,145 | py | Python | src/cirrus/package.py | Maxsparrow/cirrus | ae9639daba4f2d8d9285e98d5b11a89eac573f96 | [
"Apache-2.0"
] | 12 | 2016-04-30T16:13:55.000Z | 2021-01-20T23:42:31.000Z | src/cirrus/package.py | Maxsparrow/cirrus | ae9639daba4f2d8d9285e98d5b11a89eac573f96 | [
"Apache-2.0"
] | 153 | 2015-02-12T15:25:42.000Z | 2020-03-09T07:16:15.000Z | src/cirrus/package.py | Maxsparrow/cirrus | ae9639daba4f2d8d9285e98d5b11a89eac573f96 | [
"Apache-2.0"
] | 7 | 2015-06-15T21:30:38.000Z | 2020-02-17T02:13:00.000Z | #!/usr/bin/env python
"""
package
Implementation for the package command that handles helping set up and
manipulate packages for use with cirrus.
Commands:
package init - Initialise a new repo with a basic cirrus.conf file
add the appropriate setup, manifest and requirements files
package sublime-project - Assist... | 28.513655 | 126 | 0.61422 |
edebda6cc858b9f96203506817b64f8c7df83a73 | 123 | py | Python | user_messages/__init__.py | matthiask/django-user-messages | dd76bb0c423a011f3a6473c128830b227e97f771 | [
"MIT"
] | 21 | 2018-04-18T17:58:12.000Z | 2022-01-19T12:41:01.000Z | user_messages/__init__.py | matthiask/django-user-messages | dd76bb0c423a011f3a6473c128830b227e97f771 | [
"MIT"
] | 4 | 2018-04-24T11:04:15.000Z | 2022-02-03T18:35:21.000Z | user_messages/__init__.py | matthiask/django-user-messages | dd76bb0c423a011f3a6473c128830b227e97f771 | [
"MIT"
] | 7 | 2018-03-04T16:03:44.000Z | 2022-02-03T15:50:39.000Z | VERSION = (0, 7, 0)
__version__ = ".".join(map(str, VERSION))
default_app_config = "user_messages.apps.UserMessagesConfig"
| 30.75 | 60 | 0.739837 |
edf01de9776603359ad97ab421c5a8408e19e47b | 164 | py | Python | setup.py | cdominik/optool | da0ba3a8d4913c60f35020293ab656f3f5c52000 | [
"MIT"
] | 11 | 2020-10-13T13:24:44.000Z | 2021-12-17T09:46:00.000Z | setup.py | cdominik/optool | da0ba3a8d4913c60f35020293ab656f3f5c52000 | [
"MIT"
] | 2 | 2021-08-28T15:11:09.000Z | 2022-01-26T10:14:58.000Z | setup.py | cdominik/optool | da0ba3a8d4913c60f35020293ab656f3f5c52000 | [
"MIT"
] | 1 | 2022-03-17T20:33:36.000Z | 2022-03-17T20:33:36.000Z | from setuptools import setup
setup(
name='optool',
version='1.9.4',
py_modules=['optool'],
install_requires=[
'numpy','matplotlib'
]
)
| 14.909091 | 28 | 0.591463 |
edf156799f53ffdee8114e976ffa3ce775568e50 | 6,709 | py | Python | wepppy/nodb/mods/rhem/rhempost.py | hwbeeson/wepppy | 6358552df99853c75be8911e7ef943108ae6923e | [
"BSD-3-Clause"
] | null | null | null | wepppy/nodb/mods/rhem/rhempost.py | hwbeeson/wepppy | 6358552df99853c75be8911e7ef943108ae6923e | [
"BSD-3-Clause"
] | null | null | null | wepppy/nodb/mods/rhem/rhempost.py | hwbeeson/wepppy | 6358552df99853c75be8911e7ef943108ae6923e | [
"BSD-3-Clause"
] | null | null | null | # Copyright (c) 2016-2018, University of Idaho
# All rights reserved.
#
# Roger Lew (rogerlew@gmail.com)
#
# The project described was supported by NSF award number IIA-1301792
# from the NSF Idaho EPSCoR Program and by the National Science Foundation.
import os
from os.path import exists as _exists
from os.path impor... | 34.229592 | 106 | 0.54166 |
edf1f57544dd3f0aeda1ba4dfc8126fd9030fb26 | 2,931 | py | Python | gamelib/icons.py | muppetjones/remgame | 2d1ca3bd41251f44321045c5f5031ec93cd09aa1 | [
"BSD-2-Clause-FreeBSD"
] | null | null | null | gamelib/icons.py | muppetjones/remgame | 2d1ca3bd41251f44321045c5f5031ec93cd09aa1 | [
"BSD-2-Clause-FreeBSD"
] | null | null | null | gamelib/icons.py | muppetjones/remgame | 2d1ca3bd41251f44321045c5f5031ec93cd09aa1 | [
"BSD-2-Clause-FreeBSD"
] | null | null | null | #!/usr/bin/env python3
"""Draw various icons within a box using pygame."""
import logging
import sys
import pygame
from gamelib import colors
SHAPE_DICT = None
log = logging.getLogger(__name__)
def draw(display, shape, coord, size,
color=colors.black, bg_color=colors.white):
"""Draw a shape.
Ar... | 27.138889 | 78 | 0.603889 |
edf254f29e53bc8f9cd9417828c9783420853336 | 3,977 | py | Python | dialpad/client.py | dialpad/dialpad-python-sdk | 7a448ff9402c9bffd3809b311444619ed9bab2c1 | [
"MIT"
] | 5 | 2020-12-08T16:48:31.000Z | 2022-02-03T01:07:38.000Z | dialpad/client.py | dialpad/dialpad-python-sdk | 7a448ff9402c9bffd3809b311444619ed9bab2c1 | [
"MIT"
] | 7 | 2021-08-18T19:52:07.000Z | 2022-03-11T04:16:21.000Z | dialpad/client.py | dialpad/dialpad-python-sdk | 7a448ff9402c9bffd3809b311444619ed9bab2c1 | [
"MIT"
] | 5 | 2020-12-06T04:04:31.000Z | 2021-12-20T18:59:29.000Z |
import requests
from cached_property import cached_property
from .resources import (
SMSResource,
RoomResource,
UserResource,
CallResource,
NumberResource,
OfficeResource,
WebhookResource,
CompanyResource,
ContactResource,
CallbackResource,
CallCenterResource,
CallRouterResource,
Department... | 24.398773 | 95 | 0.702288 |
edf36a07d1b1f908a147c0df5e05785149976da1 | 3,253 | py | Python | pydart/apps/turtle/optimizer.py | Jungdam/AlphaCon | 2c70e848ab176537560484d28869cdc3c2fc8cd7 | [
"MIT"
] | 2 | 2020-03-16T05:43:56.000Z | 2021-11-22T05:52:29.000Z | pydart/apps/turtle/optimizer.py | Jungdam/AlphaCon | 2c70e848ab176537560484d28869cdc3c2fc8cd7 | [
"MIT"
] | null | null | null | pydart/apps/turtle/optimizer.py | Jungdam/AlphaCon | 2c70e848ab176537560484d28869cdc3c2fc8cd7 | [
"MIT"
] | null | null | null | import math
import numpy as np
import pydart
import action as ac
import myworld
import cma
import multiprocessing
from multiprocessing import Process, Queue
import mmMath
from numpy.linalg import inv
dt = 1.0/600.0
skel_file = '/home/jungdam/Research/AlphaCon/pydart/apps/turtle/data/skel/turtle.skel' | 25.414063 | 86 | 0.652936 |
edf4696b3026f5378c8b15320e96bf38bb014022 | 4,360 | py | Python | logger/writers/influxdb_writer.py | mchoi39/openrvdas | 395a7a1dab53025c9975ea75323aca418d0510e5 | [
"BSD-2-Clause"
] | 1 | 2020-06-29T17:25:44.000Z | 2020-06-29T17:25:44.000Z | logger/writers/influxdb_writer.py | mchoi39/openrvdas | 395a7a1dab53025c9975ea75323aca418d0510e5 | [
"BSD-2-Clause"
] | null | null | null | logger/writers/influxdb_writer.py | mchoi39/openrvdas | 395a7a1dab53025c9975ea75323aca418d0510e5 | [
"BSD-2-Clause"
] | null | null | null | #!/usr/bin/env python3
import logging
import sys
import json
from os.path import dirname, realpath; sys.path.append(dirname(dirname(dirname(realpath(__file__)))))
from logger.utils import timestamp
from logger.utils.formats import Text
from logger.writers.writer import Writer
INFLUXDB_AUTH_TOKEN = INFLUXDB_ORG = IN... | 37.913043 | 237 | 0.66078 |
edf6c59db89420bbc0b9b1ef8fedd30d7a3b24cf | 2,206 | py | Python | src/abstractions/tests/test_initialization.py | iamsoroush/abstractions | 92623ee7829bd0946033e224b5446acfec0370ce | [
"MIT"
] | 7 | 2021-11-28T21:27:42.000Z | 2022-01-27T19:46:35.000Z | src/abstractions/tests/test_initialization.py | iamsoroush/abstractions | 92623ee7829bd0946033e224b5446acfec0370ce | [
"MIT"
] | null | null | null | src/abstractions/tests/test_initialization.py | iamsoroush/abstractions | 92623ee7829bd0946033e224b5446acfec0370ce | [
"MIT"
] | 1 | 2021-12-20T08:45:03.000Z | 2021-12-20T08:45:03.000Z | import pytest
from pathlib import Path
from abstractions.utils import load_config_file, Struct
# @pytest.fixture()
# def run_config(pytestconfig):
# run_name = pytestconfig.getoption("run_name")
# run_dir = Path('runs').joinpath(run_name)
# config = load_config_file(list(run_dir.glob('*.yaml'))[0])
# ... | 28.649351 | 69 | 0.674071 |
edf750d72b79f5e3c826e2032c0c58c48d9ee5cb | 432 | py | Python | Semana07Atividade01/Sem07Atv01Q02.py | Marvingms7/IFPI | 0f6d50e4a7e1016e58cd227b477b3ce08e19c61a | [
"MIT"
] | null | null | null | Semana07Atividade01/Sem07Atv01Q02.py | Marvingms7/IFPI | 0f6d50e4a7e1016e58cd227b477b3ce08e19c61a | [
"MIT"
] | null | null | null | Semana07Atividade01/Sem07Atv01Q02.py | Marvingms7/IFPI | 0f6d50e4a7e1016e58cd227b477b3ce08e19c61a | [
"MIT"
] | null | null | null | v_carro = float(input("Informe o valor: "))
total_mes_carro = (0.004 * v_carro) +v_carro
p_inicial = 10000
renda_total = (0.007 * p_inicial) + p_inicial
mes = -1
while True:
mes += 1
total_mes_carro = (0.004 * total_mes_carro) + total_mes_carro
if renda_total < total_mes_carro:
renda_total = (0.007 ... | 30.857143 | 65 | 0.678241 |
edf793d5df032dfb8d812b270d75f4ad21c199e1 | 1,871 | py | Python | fui_kk/participation_summary.py | martava/fui-kk | 8d60834743b70bce2449753f09085944fdffa962 | [
"MIT"
] | 9 | 2016-06-03T15:58:02.000Z | 2022-03-17T21:02:44.000Z | fui_kk/participation_summary.py | martava/fui-kk | 8d60834743b70bce2449753f09085944fdffa962 | [
"MIT"
] | 79 | 2016-06-03T15:52:26.000Z | 2021-04-27T13:38:17.000Z | fui_kk/participation_summary.py | martava/fui-kk | 8d60834743b70bce2449753f09085944fdffa962 | [
"MIT"
] | 8 | 2016-12-09T12:03:53.000Z | 2021-05-19T09:29:31.000Z | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""Documentation string"""
__authors__ = ["Person1", "Person2"]
__email__ = "person@mail"
__copyright__ = "Ole Herman Schumacher Elgesem"
__credits__ = ["Person1", "Person2", "Person3"]
__version__ = "0.1"
__license__ = "MIT"
# This file is subject to th... | 34.018182 | 112 | 0.581507 |
edf811299a8e232a26d84d960053cb2830a4f385 | 5,855 | py | Python | monitor/views.py | sweetchipsw/Sweetmon_legacy | 27b0d9ab00d66b634852d7ad93e54b3a5cc457a4 | [
"MIT"
] | 2 | 2019-11-06T02:18:16.000Z | 2020-04-26T04:13:23.000Z | monitor/views.py | sweetchipsw/Sweetmon_legacy | 27b0d9ab00d66b634852d7ad93e54b3a5cc457a4 | [
"MIT"
] | 2 | 2020-02-11T23:38:55.000Z | 2020-06-05T17:36:42.000Z | monitor/views.py | sweetchipsw/Sweetmon_legacy | 27b0d9ab00d66b634852d7ad93e54b3a5cc457a4 | [
"MIT"
] | null | null | null | from django.shortcuts import render,get_object_or_404, redirect
from django.http import HttpResponseRedirect, HttpResponse, JsonResponse
from monitor.models import Machine, Crash, Testcase, Profile, DupCrash
from track.models import Issue
from django.http import Http404
from django.conf import settings
from django.core... | 37.774194 | 317 | 0.760717 |
edf8aa2a40e35a5d03eb5bf21e9a258dd9f5013a | 4,093 | py | Python | former/resource.py | flomotlik/former | 81883bae18e0830a2d7410c2219c7f50217a8cb7 | [
"MIT"
] | 11 | 2017-06-26T09:22:06.000Z | 2018-11-29T01:16:11.000Z | former/resource.py | flomotlik/former | 81883bae18e0830a2d7410c2219c7f50217a8cb7 | [
"MIT"
] | 5 | 2017-11-20T14:09:07.000Z | 2019-01-31T09:40:56.000Z | former/resource.py | flomotlik/former | 81883bae18e0830a2d7410c2219c7f50217a8cb7 | [
"MIT"
] | 5 | 2017-10-13T13:13:56.000Z | 2018-04-03T21:11:39.000Z | from former import specification
import logging
logger = logging.getLogger(__name__)
PRIMITIVE_TYPE = 'PrimitiveType'
PRIMITIVE_ITEM_TYPE = 'PrimitiveItemType'
TYPE = 'Type'
ITEM_TYPE = 'ItemType'
REQUIRED = 'Required'
SPEC = specification.specification()
TYPES = {}
TYPES.update(SPEC['ResourceTypes'])
TYPES.update(S... | 33.54918 | 102 | 0.64256 |
edfa054fadd9aa4f170f0713199b592a1707ad72 | 5,051 | py | Python | ver1_0/openassembly/pirate_profile/templatetags/profiletags.py | fragro/Open-Assembly | e9679ff5e7ae9881fa5781d763288ed2f40b014d | [
"BSD-3-Clause"
] | 1 | 2015-11-05T08:22:19.000Z | 2015-11-05T08:22:19.000Z | ver1_0/openassembly/pirate_profile/templatetags/profiletags.py | fragro/Open-Assembly | e9679ff5e7ae9881fa5781d763288ed2f40b014d | [
"BSD-3-Clause"
] | null | null | null | ver1_0/openassembly/pirate_profile/templatetags/profiletags.py | fragro/Open-Assembly | e9679ff5e7ae9881fa5781d763288ed2f40b014d | [
"BSD-3-Clause"
] | 1 | 2018-02-03T18:25:41.000Z | 2018-02-03T18:25:41.000Z | from django import template
from django import forms
from django.http import HttpResponseRedirect
import datetime
from django.contrib.auth.models import User
from django.contrib.contenttypes.models import ContentType
from tagging.models import Tag, TaggedItem
from pirate_profile.models import Profile
from pirate_core.h... | 29.028736 | 101 | 0.658285 |
edfa1a09cec59b3b816a7f8cc3646e48d06ba36a | 1,984 | py | Python | text/symbols.py | Kapust/tacotron2 | 40fe88294a07701e076f92edd7049d822a53724a | [
"BSD-3-Clause"
] | null | null | null | text/symbols.py | Kapust/tacotron2 | 40fe88294a07701e076f92edd7049d822a53724a | [
"BSD-3-Clause"
] | null | null | null | text/symbols.py | Kapust/tacotron2 | 40fe88294a07701e076f92edd7049d822a53724a | [
"BSD-3-Clause"
] | null | null | null | _kirciuotos_raides = {
"a" : ["a`","a~","a^"],
"" : ["~","^"],
"e" : ["e`","e~","e^"],
"" : ["~","^"],
"" : ["~","^"],
"i" : ["i`","i~","i^"],
"" : ["~","^"],
"y" : ["y~","y^"],
"o" : ["o`","o~","o^"],
"u" : ["u`","u~","u^"],
"" : ["~","^"],
"" : ["~","^"],
"l" : ["l~"],
"m" : ["m~"],
"n" : ["n~"],
"r" : ["r~"]
}
_fo... | 28.753623 | 100 | 0.618448 |
edfb80cf8ed104501c31146fad7007f0df5f648f | 13,879 | py | Python | chained/functions/lambded.py | andrewsonin/chained | 77788acae642d9553d9d454d4fc6086856b52425 | [
"MIT"
] | null | null | null | chained/functions/lambded.py | andrewsonin/chained | 77788acae642d9553d9d454d4fc6086856b52425 | [
"MIT"
] | null | null | null | chained/functions/lambded.py | andrewsonin/chained | 77788acae642d9553d9d454d4fc6086856b52425 | [
"MIT"
] | null | null | null | from functools import partial
from keyword import iskeyword
from typing import Tuple, Final, Callable, Any, List, Generator, NoReturn, Dict
from chained.type_utils.meta import ChainedMeta
def _call_monkey_patcher(self, *args, **kwargs):
"""LambdaExpr.__call__ monkey patcher"""
return self.eval()(*args, **kwa... | 29.529787 | 107 | 0.541393 |
edfc8fc68aa84260fed30a20114a40d2b7fb4bd2 | 5,620 | py | Python | fmriprep_denoise/data/timeseries.py | SIMEXP/fmriprep-denoise-benchmark | afb7b7a82a18f7c867488c208ef7dcb7d651ad08 | [
"MIT"
] | 5 | 2021-12-12T20:22:31.000Z | 2021-12-15T19:40:16.000Z | fmriprep_denoise/data/timeseries.py | SIMEXP/fmriprep-denoise-benchmark | afb7b7a82a18f7c867488c208ef7dcb7d651ad08 | [
"MIT"
] | 20 | 2021-10-01T18:13:36.000Z | 2022-03-24T14:52:05.000Z | fmriprep_denoise/data/timeseries.py | SIMEXP/fmriprep-denoise-benchmark | afb7b7a82a18f7c867488c208ef7dcb7d651ad08 | [
"MIT"
] | null | null | null | import pandas as pd
from nilearn.signal import clean
from nilearn.interfaces.fmriprep import load_confounds_strategy, load_confounds
from fmriprep_denoise.data.atlas import create_atlas_masker, get_atlas_dimensions
| 44.603175 | 139 | 0.619217 |
edfe065eb3de09fc44af52b386a14934e51092ab | 494 | py | Python | speckle/schemas/Line.py | pjkottke/PySpeckle | e332c5e4c76960ab5b698f120c07d0eb15ac2262 | [
"MIT"
] | 24 | 2018-11-16T03:17:58.000Z | 2021-11-19T11:32:01.000Z | speckle/schemas/Line.py | pjkottke/PySpeckle | e332c5e4c76960ab5b698f120c07d0eb15ac2262 | [
"MIT"
] | 43 | 2019-01-15T17:48:24.000Z | 2020-12-02T19:09:55.000Z | speckle/schemas/Line.py | pjkottke/PySpeckle | e332c5e4c76960ab5b698f120c07d0eb15ac2262 | [
"MIT"
] | 12 | 2019-02-06T20:54:17.000Z | 2020-12-01T21:49:06.000Z | import json
import json
import hashlib
from pydantic import BaseModel, validator
from typing import List, Optional
from speckle.base.resource import ResourceBaseSchema
from speckle.resources.objects import SpeckleObject
from speckle.schemas import Interval
NAME = 'line'
| 24.7 | 52 | 0.755061 |
edfe616553fde07c10a0a382b04bd2c053cb8e8f | 12,323 | py | Python | allennlp_beaker/__main__.py | allenai/allennlp-beaker | 6890ed300e08024c4738f937faebf31cd850003e | [
"Apache-2.0"
] | 1 | 2021-07-08T03:09:18.000Z | 2021-07-08T03:09:18.000Z | allennlp_beaker/__main__.py | allenai/allennlp-beaker | 6890ed300e08024c4738f937faebf31cd850003e | [
"Apache-2.0"
] | null | null | null | allennlp_beaker/__main__.py | allenai/allennlp-beaker | 6890ed300e08024c4738f937faebf31cd850003e | [
"Apache-2.0"
] | null | null | null | from collections import deque
from datetime import date
import os
import shutil
import subprocess
from tempfile import TemporaryDirectory
from typing import Any, Dict, List, Iterable, Optional, Tuple
import uuid
from allennlp.common.file_utils import cached_path
from allennlp.common.params import Params
import click
i... | 30.962312 | 87 | 0.587519 |
610083f566e58e14234fccad8e84b915cc343c22 | 7,460 | py | Python | python/ray/util/actor_group.py | jamesliu/ray | 11ab412db1fa3603a3006e8ed414e80dd1f11c0c | [
"Apache-2.0"
] | 33 | 2020-05-27T14:25:24.000Z | 2022-03-22T06:11:30.000Z | python/ray/util/actor_group.py | jamesliu/ray | 11ab412db1fa3603a3006e8ed414e80dd1f11c0c | [
"Apache-2.0"
] | 227 | 2021-10-01T08:00:01.000Z | 2021-12-28T16:47:26.000Z | python/ray/util/actor_group.py | gramhagen/ray | c18caa4db36d466718bdbcb2229aa0b2dc03da1f | [
"Apache-2.0"
] | 5 | 2020-08-06T15:53:07.000Z | 2022-02-09T03:31:31.000Z | import weakref
from dataclasses import dataclass
import logging
from typing import List, TypeVar, Optional, Dict, Type, Tuple
import ray
from ray.actor import ActorHandle
T = TypeVar("T")
ActorMetadata = TypeVar("ActorMetadata")
logger = logging.getLogger(__name__)
class ActorGroupMethod:
def __init__(self, ... | 36.038647 | 79 | 0.595442 |
6100b87ee31e9b10285e9a2afa1196ba246c7647 | 22,234 | py | Python | lib/galaxy/webapps/openapi/utils.py | thepineapplepirate/galaxy | a9f0fd6ade1c0693dd5ba6a059d779613604bc7e | [
"CC-BY-3.0"
] | null | null | null | lib/galaxy/webapps/openapi/utils.py | thepineapplepirate/galaxy | a9f0fd6ade1c0693dd5ba6a059d779613604bc7e | [
"CC-BY-3.0"
] | 6 | 2021-11-11T20:57:49.000Z | 2021-12-10T15:30:33.000Z | lib/galaxy/webapps/openapi/utils.py | thepineapplepirate/galaxy | a9f0fd6ade1c0693dd5ba6a059d779613604bc7e | [
"CC-BY-3.0"
] | null | null | null | """
Allows merging overlapping openapi definitions.
Taken from https://github.com/tiangolo/fastapi/pull/4727
"""
import http.client
import inspect
import itertools
import warnings
from enum import Enum
from typing import (
Any,
Callable,
cast,
Dict,
List,
Optional,
Sequence,
Set,
Tup... | 42.431298 | 123 | 0.64109 |
6100e7631cd6135029ef52797a51cdfc31ea2cfa | 2,254 | py | Python | sfa/managers/component_manager_pl.py | planetlab/sfa | d0f743e245e0bb24d7ed1016bcc6e61d1e558a95 | [
"MIT"
] | 1 | 2015-11-19T13:34:45.000Z | 2015-11-19T13:34:45.000Z | sfa/managers/component_manager_pl.py | planetlab/sfa | d0f743e245e0bb24d7ed1016bcc6e61d1e558a95 | [
"MIT"
] | null | null | null | sfa/managers/component_manager_pl.py | planetlab/sfa | d0f743e245e0bb24d7ed1016bcc6e61d1e558a95 | [
"MIT"
] | null | null | null | import os
import xmlrpclib
from sfa.util.faults import *
from sfa.util.plxrn import PlXrn
from sfa.util.sfaticket import SfaTicket
from sfa.util.version import version_core
# xxx outdated - this should accept a credential & call_id
| 31.305556 | 74 | 0.697427 |
610120b8415bc8eade3b1a6f284659a28d6bb18f | 2,272 | py | Python | tests/pikamon/database/test_pokemon_schema.py | dlrocker/pikamon-py | 60bc07dc4a385eb0e38ed228d4191d6dc8594957 | [
"MIT"
] | null | null | null | tests/pikamon/database/test_pokemon_schema.py | dlrocker/pikamon-py | 60bc07dc4a385eb0e38ed228d4191d6dc8594957 | [
"MIT"
] | 15 | 2021-08-15T22:15:43.000Z | 2021-10-13T20:35:05.000Z | tests/pikamon/database/test_pokemon_schema.py | dlrocker/pikamon-py | 60bc07dc4a385eb0e38ed228d4191d6dc8594957 | [
"MIT"
] | null | null | null | import pytest
import sqlite3
from database_helpers import create_sample_user_records # noqa
def test_pokemon_insert_valid_record_no_users(sqlite_conn):
"""Validate that we fail to insert a valid record into the 'pokemons' table when there is no corresponding
user in the 'users' table"""
cursor = sqlite_... | 33.411765 | 115 | 0.659771 |
610587491fba5e26c742676a4a530432e1dabf98 | 7,154 | py | Python | gym_stag_hunt/envs/pettingzoo_hunt.py | DavidRother/Gym-Stag-Hunt | 2ffc378d58c833b811dabe34c09b8dd864c83e71 | [
"MIT"
] | null | null | null | gym_stag_hunt/envs/pettingzoo_hunt.py | DavidRother/Gym-Stag-Hunt | 2ffc378d58c833b811dabe34c09b8dd864c83e71 | [
"MIT"
] | null | null | null | gym_stag_hunt/envs/pettingzoo_hunt.py | DavidRother/Gym-Stag-Hunt | 2ffc378d58c833b811dabe34c09b8dd864c83e71 | [
"MIT"
] | null | null | null | from pettingzoo import AECEnv
from pettingzoo.utils import agent_selector
from pettingzoo.utils import wrappers
from pettingzoo.utils.conversions import parallel_wrapper_fn
from gym_stag_hunt.envs.hunt import HuntEnv
from gym.spaces import Box
import cv2
import numpy as np
def env(grid_size=(5, 5), screen_size=(600,... | 48.337838 | 120 | 0.682695 |
61077b955f71be1c35656e2b03e6c7df22bd07f0 | 7,922 | py | Python | logstash_conf_api.py | garyelephant/dolphin | 68bf3b3612c78b3094e332c34787751c948a0246 | [
"MIT"
] | null | null | null | logstash_conf_api.py | garyelephant/dolphin | 68bf3b3612c78b3094e332c34787751c948a0246 | [
"MIT"
] | null | null | null | logstash_conf_api.py | garyelephant/dolphin | 68bf3b3612c78b3094e332c34787751c948a0246 | [
"MIT"
] | null | null | null | # coding: utf-8
from string import Template
PRETTY_INDENT = 4
BASE_INDENT_SPACE = ' '
# If, ElseIf, Elseclass
# __init__(self, if_expr_blocks, elseif_expr_blocks, else_expr_blocks )
"""
# Let me show you a example, Run the following command:
$ python logstash_conf_api.py
# Then you get this output:
input {
... | 27.796491 | 153 | 0.525499 |
6107990a85204fd28b051978ee8270908e30a034 | 501 | py | Python | pykivdroid/screen.py | Sahil-pixel/Pykivdroid | 91da72ffe36c6aadb86c197e4391bab073a3c6bf | [
"MIT"
] | 8 | 2021-06-12T17:22:00.000Z | 2022-03-14T14:49:40.000Z | pykivdroid/screen.py | Sahil-pixel/Pykivdroid | 91da72ffe36c6aadb86c197e4391bab073a3c6bf | [
"MIT"
] | null | null | null | pykivdroid/screen.py | Sahil-pixel/Pykivdroid | 91da72ffe36c6aadb86c197e4391bab073a3c6bf | [
"MIT"
] | 2 | 2021-05-31T19:16:30.000Z | 2022-01-08T23:33:57.000Z | from pykivdroid import mActivity,WindowManagerNLayoutParams,Window,run_on_ui_thread,View
| 38.538462 | 88 | 0.692615 |
610849c1c0699c9f6564985ca0291128fc30b9e7 | 1,522 | py | Python | tests/test_jwt.py | kschu91/pyoidc | ae5702a8b2f13d5e7af173a58355cd738ec79a31 | [
"Apache-2.0"
] | 373 | 2017-03-08T21:37:03.000Z | 2022-03-24T13:37:23.000Z | tests/test_jwt.py | peppelinux/pyoidc | 2e751ed84039259a2b138148eae204c877518950 | [
"Apache-2.0"
] | 523 | 2017-03-02T17:03:12.000Z | 2022-03-24T18:34:51.000Z | tests/test_jwt.py | peppelinux/pyoidc | 2e751ed84039259a2b138148eae204c877518950 | [
"Apache-2.0"
] | 165 | 2017-03-02T16:54:42.000Z | 2022-02-26T18:34:00.000Z | import os
from oic.utils.jwt import JWT
from oic.utils.keyio import build_keyjar
from oic.utils.keyio import keybundle_from_local_file
__author__ = "roland"
BASE_PATH = os.path.abspath(os.path.join(os.path.dirname(__file__), "data/keys"))
keys = [
{"type": "RSA", "key": os.path.join(BASE_PATH, "cert.key"), "us... | 26.241379 | 87 | 0.595926 |
610a0f408408afc5baba63c2c1ff1314d07264b8 | 57,850 | py | Python | dwind_os/python/financial_functions.py | NREL/dwind | 1651d1d24ed9ba124f183b89b00dce7a88628e66 | [
"BSD-3-Clause"
] | 2 | 2021-06-30T19:48:38.000Z | 2022-01-23T20:31:28.000Z | dwind_os/python/financial_functions.py | NREL/dwind | 1651d1d24ed9ba124f183b89b00dce7a88628e66 | [
"BSD-3-Clause"
] | null | null | null | dwind_os/python/financial_functions.py | NREL/dwind | 1651d1d24ed9ba124f183b89b00dce7a88628e66 | [
"BSD-3-Clause"
] | null | null | null | import numpy as np
import pandas as pd
import decorators
from scipy import optimize
import settings
import utility_functions as utilfunc
import agent_mutation
import PySAM.Battwatts as battery
import PySAM.BatteryTools as batt_tools
import PySAM.Utilityrate5 as utility
import PySAM.Cashloan as cashloan
#===========... | 45.019455 | 199 | 0.629213 |
610ab8fe6f42fcdab905dd5f6b911dc859c705dc | 1,064 | py | Python | Python/Code/Python3-Base/11_Advance/Generator.py | hiloWang/notes | 64a637a86f734e4e80975f4aa93ab47e8d7e8b64 | [
"Apache-2.0"
] | 2 | 2020-10-08T13:22:08.000Z | 2021-07-28T14:45:41.000Z | Python/Python3-Base/11_Advance/Generator.py | flyfire/Programming-Notes-Code | 4b1bdd74c1ba0c007c504834e4508ec39f01cd94 | [
"Apache-2.0"
] | null | null | null | Python/Python3-Base/11_Advance/Generator.py | flyfire/Programming-Notes-Code | 4b1bdd74c1ba0c007c504834e4508ec39f01cd94 | [
"Apache-2.0"
] | 6 | 2020-08-20T07:19:17.000Z | 2022-03-02T08:16:21.000Z | #########################
#
#########################
#
L = (x * 2 for x in range(5))
print(type(L))
print(L)
for value in L:
print(value, end=' ')
print()
#
for value in fib(10):
print(value, end=' ')
print()
# StopIterationStopIterationvalue
try:
fibSqu = fib(10)
while True:
print(n... | 17.442623 | 72 | 0.531955 |
610b6d8df160ab533207fc0890a0b98f4f8d3bb7 | 2,958 | py | Python | DataHandler.py | siej88/OCTLayers | 010730db2f0e918736ccfae524c383e3886e5409 | [
"MIT"
] | 1 | 2021-03-24T12:45:50.000Z | 2021-03-24T12:45:50.000Z | DataHandler.py | siej88/OCTLayers | 010730db2f0e918736ccfae524c383e3886e5409 | [
"MIT"
] | null | null | null | DataHandler.py | siej88/OCTLayers | 010730db2f0e918736ccfae524c383e3886e5409 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
import numpy as N
| 37.923077 | 78 | 0.476335 |
610c84993beb613ca5c83dcf688086e419e85c4c | 1,219 | py | Python | test/ofx_test_utils.py | myfreecomm/fixofx | 6eb5c286a97c6af8e9c2fd502ee93ca097eaa91f | [
"Apache-2.0"
] | 4 | 2015-09-25T03:45:42.000Z | 2017-12-20T05:16:15.000Z | test/ofx_test_utils.py | myfreecomm/fixofx | 6eb5c286a97c6af8e9c2fd502ee93ca097eaa91f | [
"Apache-2.0"
] | 1 | 2015-09-17T21:52:21.000Z | 2015-09-18T16:03:52.000Z | test/ofx_test_utils.py | myfreecomm/fixofx | 6eb5c286a97c6af8e9c2fd502ee93ca097eaa91f | [
"Apache-2.0"
] | null | null | null | # Copyright 2005-2010 Wesabe, 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 wri... | 29.731707 | 74 | 0.757998 |
610c9b309cbb55284572f3a8a21338c32aedb32e | 3,900 | py | Python | src/python/doufo/convert.py | Hong-Xiang/doufo | 3d375fef30670597768a6eef809b75b4b1b5a3fd | [
"Apache-2.0"
] | 3 | 2018-08-05T07:16:34.000Z | 2018-08-10T05:28:24.000Z | src/python/doufo/convert.py | tech-pi/doufo | 3d375fef30670597768a6eef809b75b4b1b5a3fd | [
"Apache-2.0"
] | 10 | 2018-09-16T15:44:19.000Z | 2018-10-06T10:39:59.000Z | src/python/doufo/convert.py | tech-pi/doufo | 3d375fef30670597768a6eef809b75b4b1b5a3fd | [
"Apache-2.0"
] | 1 | 2018-08-04T08:13:50.000Z | 2018-08-04T08:13:50.000Z | """doufo.convert
abstract class of `dataType` converters.
Example:
Todo:
Author:
"""
from .function import func
from functools import wraps, cmp_to_key
from multipledispatch import Dispatcher
from typing import Callable, TypeVar
__all__ = ['converters', 'convert_to', 'convert']
T = TypeVar('T')
B = TypeVa... | 30.708661 | 102 | 0.572564 |
610d30bd999af70426a9d58e9bb96518bdecd895 | 5,577 | py | Python | 02_run_model.py | swenkel/traffic_counter | 157f84bdcaa48139a7ca0341af218902f92c3550 | [
"BSD-3-Clause"
] | null | null | null | 02_run_model.py | swenkel/traffic_counter | 157f84bdcaa48139a7ca0341af218902f92c3550 | [
"BSD-3-Clause"
] | null | null | null | 02_run_model.py | swenkel/traffic_counter | 157f84bdcaa48139a7ca0341af218902f92c3550 | [
"BSD-3-Clause"
] | null | null | null | ################################################################################
# #
# #
# (c) Simon Wenkel ... | 35.297468 | 129 | 0.47158 |
610d85315dedf6856dc9691f17d031485a9039bd | 12,001 | py | Python | models/config/_utils.py | ZAurele/alpha-py | b6330f1e714d07a2010ebe500d5ccdf4cc637998 | [
"MIT"
] | null | null | null | models/config/_utils.py | ZAurele/alpha-py | b6330f1e714d07a2010ebe500d5ccdf4cc637998 | [
"MIT"
] | null | null | null | models/config/_utils.py | ZAurele/alpha-py | b6330f1e714d07a2010ebe500d5ccdf4cc637998 | [
"MIT"
] | null | null | null | import re, os, copy
PAREMETER_PATTERN = '{{%s}}'
def get_values_for_parameters(config, parameter_name,path=None):
"""Get the values associated to the parameter in the configuration
Arguments:
config {json dict} -- configuration as a json dict
parameter_name {str} -- parameter_name to s... | 34.288571 | 119 | 0.565703 |
610dc8a9637e79aabed6fadcd71bc9060b40adf7 | 760 | py | Python | setup.py | coverosu/cmyui_pkg | 4904a9e726869c973b61cdff1e4ef5cfb3370060 | [
"MIT"
] | null | null | null | setup.py | coverosu/cmyui_pkg | 4904a9e726869c973b61cdff1e4ef5cfb3370060 | [
"MIT"
] | null | null | null | setup.py | coverosu/cmyui_pkg | 4904a9e726869c973b61cdff1e4ef5cfb3370060 | [
"MIT"
] | null | null | null | import setuptools
with open('README.md', 'r') as f:
long_description = f.read()
setuptools.setup(
name = 'cmyui',
version = '1.5.7',
author = 'cmyui',
author_email = 'cmyuiosu@gmail.com',
description = 'Some generic tools I find myself using often (web, mysql/pg, logging, utils, etc).',
lo... | 29.230769 | 103 | 0.621053 |
610e0dfaa08a3636cb12b71635afebdae650904d | 4,142 | py | Python | AmygNet3D_indep.py | YilinLiu97/AmygNet-Pytorch | d5bb244fd930791345d38f09870a7ded633f4622 | [
"MIT"
] | 3 | 2019-06-11T01:38:34.000Z | 2020-04-16T00:36:10.000Z | AmygNet3D_indep.py | YilinLiu97/Amygdala-Net | d5bb244fd930791345d38f09870a7ded633f4622 | [
"MIT"
] | null | null | null | AmygNet3D_indep.py | YilinLiu97/Amygdala-Net | d5bb244fd930791345d38f09870a7ded633f4622 | [
"MIT"
] | null | null | null | import torch
import torch.nn as nn
import torch.nn.functional as F
import numpy as np
import nibabel as nib
from Dataset import Crop
import torch.optim as optim
import math
| 34.231405 | 238 | 0.658378 |
610e9f670df2445e6dc5d68bccf2f3f9a1de42bd | 3,933 | py | Python | pytorch/5.1-introduction-to-convnets.py | Lornatang/Deep-learning-with-python3 | 11794d871e68f8f80486a07bf5137325b4ee1526 | [
"Apache-2.0"
] | 4 | 2019-10-26T04:06:15.000Z | 2020-04-10T00:32:15.000Z | pytorch/5.1-introduction-to-convnets.py | Lornatang/Deep-learning-with-python3 | 11794d871e68f8f80486a07bf5137325b4ee1526 | [
"Apache-2.0"
] | null | null | null | pytorch/5.1-introduction-to-convnets.py | Lornatang/Deep-learning-with-python3 | 11794d871e68f8f80486a07bf5137325b4ee1526 | [
"Apache-2.0"
] | 1 | 2019-12-09T05:56:57.000Z | 2019-12-09T05:56:57.000Z | # Copyright 2019 Lorna Authors. 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 l... | 33.330508 | 110 | 0.652682 |
611027b3f5bec1b5b5b4ca7f0c05937ad80fd82f | 7,929 | py | Python | fn_cisco_amp4ep/fn_cisco_amp4ep/components/fn_amp_get_events.py | nickpartner-goahead/resilient-community-apps | 097c0dbefddbd221b31149d82af9809420498134 | [
"MIT"
] | 65 | 2017-12-04T13:58:32.000Z | 2022-03-24T18:33:17.000Z | fn_cisco_amp4ep/fn_cisco_amp4ep/components/fn_amp_get_events.py | nickpartner-goahead/resilient-community-apps | 097c0dbefddbd221b31149d82af9809420498134 | [
"MIT"
] | 48 | 2018-03-02T19:17:14.000Z | 2022-03-09T22:00:38.000Z | fn_cisco_amp4ep/fn_cisco_amp4ep/components/fn_amp_get_events.py | nickpartner-goahead/resilient-community-apps | 097c0dbefddbd221b31149d82af9809420498134 | [
"MIT"
] | 95 | 2018-01-11T16:23:39.000Z | 2022-03-21T11:34:29.000Z | # -*- coding: utf-8 -*-
# pragma pylint: disable=unused-argument, no-self-use
# (c) Copyright IBM Corp. 2010, 2018. All Rights Reserved.
""" Resilient functions component to run a Cisco AMP for endpoints query - get events """
# Set up:
# Destination: a Queue named "amp_get_events".
# Manual Action: Execute a REST q... | 43.565934 | 119 | 0.589356 |
6112fd906ab8bdf14a1350997500d66b125a7688 | 987 | py | Python | commitsan/repos.py | abusalimov/commitsan | 5ff6ff970ed643bee52a132a8c4b84c1a0c80b7e | [
"MIT"
] | null | null | null | commitsan/repos.py | abusalimov/commitsan | 5ff6ff970ed643bee52a132a8c4b84c1a0c80b7e | [
"MIT"
] | null | null | null | commitsan/repos.py | abusalimov/commitsan | 5ff6ff970ed643bee52a132a8c4b84c1a0c80b7e | [
"MIT"
] | null | null | null | from __future__ import (absolute_import, division,
print_function, unicode_literals)
from builtins import *
import os
import shutil
import sys
from commitsan.git import (REPOS_PATH, CalledProcessError,
git_cmd, git_revlist, mkdir_p)
from commitsan.worker import job
f... | 25.307692 | 66 | 0.651469 |
6113ea07a805e10d1e1d7f7c37ca1fcbc483ca36 | 8,608 | py | Python | src/indriya_msgs/python/physics_pb2.py | praveenv4k/Indriya | a74a4b8bb9f04b5e858305769e892edfcab32df5 | [
"MIT"
] | 1 | 2017-07-12T15:30:58.000Z | 2017-07-12T15:30:58.000Z | src/indriya_msgs/python/physics_pb2.py | praveenv4k/Indriya | a74a4b8bb9f04b5e858305769e892edfcab32df5 | [
"MIT"
] | null | null | null | src/indriya_msgs/python/physics_pb2.py | praveenv4k/Indriya | a74a4b8bb9f04b5e858305769e892edfcab32df5 | [
"MIT"
] | 1 | 2016-03-09T12:34:19.000Z | 2016-03-09T12:34:19.000Z | # Generated by the protocol buffer compiler. DO NOT EDIT!
# source: physics.proto
import sys
_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1'))
from google.protobuf import descriptor as _descriptor
from google.protobuf import message as _message
from google.protobuf import reflection as _refle... | 42.196078 | 970 | 0.730832 |
6117b96166ab57f819d2b9282069afca892efec7 | 644 | py | Python | src/tests/profile.py | royalstream/pythonnet | 85db4279e6e95e731402436907d225bcb3d43b11 | [
"ZPL-2.0"
] | 1 | 2021-06-17T01:11:57.000Z | 2021-06-17T01:11:57.000Z | src/tests/profile.py | royalstream/pythonnet | 85db4279e6e95e731402436907d225bcb3d43b11 | [
"ZPL-2.0"
] | null | null | null | src/tests/profile.py | royalstream/pythonnet | 85db4279e6e95e731402436907d225bcb3d43b11 | [
"ZPL-2.0"
] | null | null | null | """Run all of the unit tests for this package over and over,
in order to provide for better profiling."""
from __future__ import print_function
if __name__ == '__main__':
main()
sys.exit(0)
| 20.125 | 60 | 0.624224 |