hexsha stringlengths 40 40 | size int64 5 2.06M | ext stringclasses 10
values | lang stringclasses 1
value | max_stars_repo_path stringlengths 3 248 | max_stars_repo_name stringlengths 5 125 | 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 248 | max_issues_repo_name stringlengths 5 125 | max_issues_repo_head_hexsha stringlengths 40 78 | max_issues_repo_licenses listlengths 1 10 | max_issues_count int64 1 67k ⌀ | 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 248 | max_forks_repo_name stringlengths 5 125 | 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 5 2.06M | avg_line_length float64 1 1.02M | max_line_length int64 3 1.03M | alphanum_fraction float64 0 1 | count_classes int64 0 1.6M | score_classes float64 0 1 | count_generators int64 0 651k | score_generators float64 0 1 | count_decorators int64 0 990k | score_decorators float64 0 1 | count_async_functions int64 0 235k | score_async_functions float64 0 1 | count_documentation int64 0 1.04M | score_documentation float64 0 1 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
d720d5649b3f6f61d2b618a481884218c21dc51a | 4,894 | py | Python | ocean_drifters_data/buoy_data.py | nglaze00/trajectory-analysis | 35cf6bfa75eaf3cae5635729ccdf15d17a6177c7 | [
"MIT"
] | 4 | 2021-02-23T14:52:53.000Z | 2022-03-31T14:14:37.000Z | ocean_drifters_data/buoy_data.py | nglaze00/trajectory-analysis | 35cf6bfa75eaf3cae5635729ccdf15d17a6177c7 | [
"MIT"
] | 2 | 2022-01-11T18:44:50.000Z | 2022-01-15T05:42:48.000Z | ocean_drifters_data/buoy_data.py | nglaze00/trajectory-analysis | 35cf6bfa75eaf3cae5635729ccdf15d17a6177c7 | [
"MIT"
] | 1 | 2022-03-08T02:20:37.000Z | 2022-03-08T02:20:37.000Z | """
Author: Nicholas Glaze, Rice ECE (nkg2 at rice.edu)
Code for converting ocean drifter data from Schaub's format to ours.
"""
import h5py
from trajectory_analysis.synthetic_data_gen import *
dataset_folder = 'buoy'
f = h5py.File('dataBuoys.jld2', 'r')
print(f.keys())
### Load arrays from file
## Graph
# elist... | 35.722628 | 133 | 0.643645 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1,083 | 0.221291 |
d720f208a3df6385750ad1742504776a36069d68 | 6,151 | py | Python | Latest/venv/Lib/site-packages/apptools/permissions/default/user_manager.py | adamcvj/SatelliteTracker | 49a8f26804422fdad6f330a5548e9f283d84a55d | [
"Apache-2.0"
] | 1 | 2022-01-09T20:04:31.000Z | 2022-01-09T20:04:31.000Z | Latest/venv/Lib/site-packages/apptools/permissions/default/user_manager.py | adamcvj/SatelliteTracker | 49a8f26804422fdad6f330a5548e9f283d84a55d | [
"Apache-2.0"
] | 1 | 2022-02-15T12:01:57.000Z | 2022-03-24T19:48:47.000Z | Latest/venv/Lib/site-packages/apptools/permissions/default/user_manager.py | adamcvj/SatelliteTracker | 49a8f26804422fdad6f330a5548e9f283d84a55d | [
"Apache-2.0"
] | null | null | null | #------------------------------------------------------------------------------
# Copyright (c) 2008, Riverbank Computing Limited
# All rights reserved.
#
# This software is provided without warranty under the terms of the BSD
# license included in enthought/LICENSE.txt and may be redistributed only
# under the conditi... | 33.612022 | 106 | 0.558121 | 4,986 | 0.8106 | 0 | 0 | 3,514 | 0.571289 | 0 | 0 | 2,714 | 0.441229 |
d72176db25b837eec39504c5b4f9c46b726440a8 | 97 | py | Python | libraries/exhibitions/apps.py | chris-lawton/libraries_wagtail | 60c2484b137bb33763da2e49b191b1a380f3d56f | [
"ECL-2.0"
] | 9 | 2017-12-19T21:15:23.000Z | 2022-03-23T08:11:52.000Z | libraries/exhibitions/apps.py | chris-lawton/libraries_wagtail | 60c2484b137bb33763da2e49b191b1a380f3d56f | [
"ECL-2.0"
] | 140 | 2017-07-12T00:09:53.000Z | 2021-11-02T17:30:43.000Z | libraries/exhibitions/apps.py | chris-lawton/libraries_wagtail | 60c2484b137bb33763da2e49b191b1a380f3d56f | [
"ECL-2.0"
] | 3 | 2017-08-21T10:47:34.000Z | 2020-08-20T14:04:18.000Z | from django.apps import AppConfig
class ExhibitionsConfig(AppConfig):
name = 'exhibitions'
| 16.166667 | 35 | 0.773196 | 60 | 0.618557 | 0 | 0 | 0 | 0 | 0 | 0 | 13 | 0.134021 |
d722d3dbdd851da32d3a6d5f6fb12b40e48dbb16 | 227 | py | Python | 2-1_factorial_Q1_recursive.py | Soooyeon-Kim/Algorithm | 28a191d7382d9c3bb6d9afb19f4cff642c3aec03 | [
"MIT"
] | null | null | null | 2-1_factorial_Q1_recursive.py | Soooyeon-Kim/Algorithm | 28a191d7382d9c3bb6d9afb19f4cff642c3aec03 | [
"MIT"
] | null | null | null | 2-1_factorial_Q1_recursive.py | Soooyeon-Kim/Algorithm | 28a191d7382d9c3bb6d9afb19f4cff642c3aec03 | [
"MIT"
] | null | null | null | def factorial(num):
# 재귀함수를 세울 때는 탈출 조건부터 찾는다.
if num <= 1:
return 1
return factorial(num - 1) * num
def main():
print(factorial(5))
# return 120
if __name__ == "__main__":
main() | 17.461538 | 36 | 0.53304 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 86 | 0.326996 |
d724654c41c2d3df788e13f69c9b62305d208d29 | 1,210 | py | Python | PyPoll/main.py | adekted/python-challenge | a38442e0e0996a17397d15395e1b53ff4cc52ce4 | [
"MIT"
] | null | null | null | PyPoll/main.py | adekted/python-challenge | a38442e0e0996a17397d15395e1b53ff4cc52ce4 | [
"MIT"
] | null | null | null | PyPoll/main.py | adekted/python-challenge | a38442e0e0996a17397d15395e1b53ff4cc52ce4 | [
"MIT"
] | null | null | null | import os
import csv
pollresults = os.path.join(".","raw_data","election_data_1.csv")
output = os.path.join(".","results.txt")
with open(pollresults, newline = '') as polldata:
pollreader = csv.reader(polldata, delimiter = ",")
firstline = polldata.readline()
votes = 0
poll_results = {}
for row... | 28.809524 | 98 | 0.575207 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 147 | 0.121488 |
d72479d0e051c4a22354d598e1cbb9a5f7561db5 | 1,907 | py | Python | ReinforcementLearning/ExperienceReplay.py | Suryavf/SelfDrivingCar | 362ac830516366b1c31ef01ea0456eb99f0d9722 | [
"MIT"
] | 11 | 2019-08-14T18:55:13.000Z | 2021-09-10T05:54:49.000Z | ReinforcementLearning/ExperienceReplay.py | Suryavf/SelfDrivingCar | 362ac830516366b1c31ef01ea0456eb99f0d9722 | [
"MIT"
] | 3 | 2020-05-05T15:20:20.000Z | 2021-06-22T07:47:26.000Z | ReinforcementLearning/ExperienceReplay.py | Suryavf/SelfDrivingCar | 362ac830516366b1c31ef01ea0456eb99f0d9722 | [
"MIT"
] | 1 | 2020-12-18T15:46:09.000Z | 2020-12-18T15:46:09.000Z | import numpy as np
from common.prioritized import PrioritizedExperienceReplay
class ReplayMemory(object):
def __init__(self, n_buffer,len_state,len_action):
# Parameters
self.n_buffer = n_buffer
self.len_state = len_state
self.len_action = len_action
self.n_expe... | 35.314815 | 78 | 0.58259 | 1,816 | 0.952281 | 0 | 0 | 0 | 0 | 0 | 0 | 30 | 0.015732 |
d724fe813f619adf66dd7a68f8f674a9c901f1fa | 9,707 | py | Python | domdf_python_tools/dates.py | domdfcoding/domdf_python_tools | eb15c744eac3005e13fae8d8a5582e955137cf22 | [
"MIT"
] | null | null | null | domdf_python_tools/dates.py | domdfcoding/domdf_python_tools | eb15c744eac3005e13fae8d8a5582e955137cf22 | [
"MIT"
] | 57 | 2020-06-16T15:48:20.000Z | 2022-03-31T08:35:09.000Z | domdf_python_tools/dates.py | domdfcoding/domdf_python_tools | eb15c744eac3005e13fae8d8a5582e955137cf22 | [
"MIT"
] | null | null | null | # !/usr/bin/env python
#
# dates.py
"""
Utilities for working with dates and times.
.. extras-require:: dates
:pyproject:
**Data:**
.. autosummary::
~domdf_python_tools.dates.months
~domdf_python_tools.dates.month_full_names
~domdf_python_tools.dates.month_short_names
"""
#
# Copyright © 2020 Dominic Davis... | 26.814917 | 109 | 0.708561 | 277 | 0.028501 | 0 | 0 | 0 | 0 | 0 | 0 | 6,297 | 0.647906 |
d72583632536ec0cced7fa350c14b691453b491f | 5,812 | py | Python | admix/tasks/check_transfers.py | XENONnT/admix | 3abcd40d08dc6a403bc535a5b0f13f624a5d766e | [
"BSD-3-Clause"
] | 2 | 2021-01-23T21:43:48.000Z | 2021-01-23T21:43:57.000Z | admix/tasks/check_transfers.py | XENONnT/admix | 3abcd40d08dc6a403bc535a5b0f13f624a5d766e | [
"BSD-3-Clause"
] | 17 | 2019-09-30T12:54:26.000Z | 2021-12-09T21:17:37.000Z | admix/tasks/check_transfers.py | XENONnT/admix | 3abcd40d08dc6a403bc535a5b0f13f624a5d766e | [
"BSD-3-Clause"
] | 2 | 2020-03-28T14:06:05.000Z | 2021-03-18T21:50:48.000Z | # -*- coding: utf-8 -*-
import json
import os
from admix.helper import helper
import time
import shutil
from admix.interfaces.database import ConnectMongoDB
from admix.helper.decorator import Collector
#get Rucio imports done:
from admix.interfaces.rucio_dataformat import ConfigRucioDataFormat
from admix.interfaces.r... | 41.514286 | 185 | 0.562285 | 5,411 | 0.931005 | 0 | 0 | 5,422 | 0.932897 | 0 | 0 | 2,326 | 0.400206 |
d726c821bd4d42ffbe3ad183aeab04cc58a7918f | 4,113 | py | Python | fantastico/mvc/models/tests/test_module_filter_compound_or.py | bopopescu/fantastico | 7c95f244f0cf0239ac5408146612dd72f88d35ea | [
"MIT"
] | 2 | 2016-12-18T02:42:25.000Z | 2018-01-30T16:32:29.000Z | fantastico/mvc/models/tests/test_module_filter_compound_or.py | bopopescu/fantastico | 7c95f244f0cf0239ac5408146612dd72f88d35ea | [
"MIT"
] | 1 | 2020-07-28T07:16:35.000Z | 2020-07-28T07:16:35.000Z | fantastico/mvc/models/tests/test_module_filter_compound_or.py | bopopescu/fantastico | 7c95f244f0cf0239ac5408146612dd72f88d35ea | [
"MIT"
] | 1 | 2020-07-24T05:55:28.000Z | 2020-07-24T05:55:28.000Z | '''
Copyright 2013 Cosnita Radu Viorel
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated
documentation files (the "Software"), to deal in the Software without restriction, including without limitation
the rights to use, copy, modify, merge, publish, distribu... | 46.213483 | 128 | 0.701191 | 2,520 | 0.612691 | 0 | 0 | 0 | 0 | 0 | 0 | 1,800 | 0.437637 |
d726fb4760e4aa5a235cc0ba701a2901f20f2e31 | 7,182 | py | Python | main.py | AlexanderBrandborg/TextGameEngine | a00997b6300ba91a8981539b1cb2f36416c384ef | [
"MIT"
] | null | null | null | main.py | AlexanderBrandborg/TextGameEngine | a00997b6300ba91a8981539b1cb2f36416c384ef | [
"MIT"
] | null | null | null | main.py | AlexanderBrandborg/TextGameEngine | a00997b6300ba91a8981539b1cb2f36416c384ef | [
"MIT"
] | null | null | null | import json
import os
class Notifyer():
def __init__(self):
self.subscribers = []
def add_subscriber(self, subscriber):
self.subscribers.append(subscriber)
def notify(self, triggerId):
for sub in self.subscribers:
sub.notify(triggerId)
global_characters = []
global_it... | 30.561702 | 123 | 0.564188 | 4,196 | 0.584238 | 0 | 0 | 0 | 0 | 0 | 0 | 533 | 0.074213 |
d728c55b4f2bb7d8f35b667f6a550393bb16970f | 16,046 | py | Python | sdks/python/appcenter_sdk/models/InternalHockeyAppCompatibilityResponse.py | Brantone/appcenter-sdks | eeb063ecf79908b6e341fb00196d2cd9dc8f3262 | [
"MIT"
] | null | null | null | sdks/python/appcenter_sdk/models/InternalHockeyAppCompatibilityResponse.py | Brantone/appcenter-sdks | eeb063ecf79908b6e341fb00196d2cd9dc8f3262 | [
"MIT"
] | 6 | 2019-10-23T06:38:53.000Z | 2022-01-22T07:57:58.000Z | sdks/python/appcenter_sdk/models/InternalHockeyAppCompatibilityResponse.py | Brantone/appcenter-sdks | eeb063ecf79908b6e341fb00196d2cd9dc8f3262 | [
"MIT"
] | 2 | 2019-10-23T06:31:05.000Z | 2021-08-21T17:32:47.000Z | # coding: utf-8
"""
App Center Client
Microsoft Visual Studio App Center API # noqa: E501
OpenAPI spec version: preview
Contact: benedetto.abbenanti@gmail.com
Project Repository: https://github.com/b3nab/appcenter-sdks
"""
import pprint
import re # noqa: F401
import six
class InternalHockey... | 37.316279 | 325 | 0.680294 | 15,745 | 0.981241 | 0 | 0 | 10,430 | 0.650006 | 0 | 0 | 9,258 | 0.576966 |
d72946ce37dfd233bdc1990a40d96dc9871865f7 | 3,356 | py | Python | contrib/experiments/interpretation/penobscot/local/default.py | elmajdma/seismic-deeplearning | bc084abe153509c40b45f8bf0f80dfda1049d7dc | [
"MIT"
] | 270 | 2019-12-17T13:40:51.000Z | 2022-03-20T10:02:11.000Z | contrib/experiments/interpretation/penobscot/local/default.py | elmajdma/seismic-deeplearning | bc084abe153509c40b45f8bf0f80dfda1049d7dc | [
"MIT"
] | 233 | 2019-12-18T17:59:36.000Z | 2021-08-03T13:43:49.000Z | contrib/experiments/interpretation/penobscot/local/default.py | elmajdma/seismic-deeplearning | bc084abe153509c40b45f8bf0f80dfda1049d7dc | [
"MIT"
] | 118 | 2019-12-17T13:41:43.000Z | 2022-03-29T02:06:36.000Z | # ------------------------------------------------------------------------------
# Copyright (c) Microsoft
# Licensed under the MIT License.
# ------------------------------------------------------------------------------
from __future__ import absolute_import
from __future__ import division
from __future__ import pri... | 27.284553 | 105 | 0.700834 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 986 | 0.293802 |
d72956bd1ede9e6b4c33e5348df8b0b68299b20e | 743 | py | Python | evaluation/dwf_power.py | TrustedThings/litepuf | 8b0f93af626775e7971d25643081af1c2829bf3d | [
"BSD-2-Clause"
] | null | null | null | evaluation/dwf_power.py | TrustedThings/litepuf | 8b0f93af626775e7971d25643081af1c2829bf3d | [
"BSD-2-Clause"
] | null | null | null | evaluation/dwf_power.py | TrustedThings/litepuf | 8b0f93af626775e7971d25643081af1c2829bf3d | [
"BSD-2-Clause"
] | null | null | null | from ctypes import *
from dwfconstants import *
dwf = cdll.LoadLibrary("libdwf.so")
hdwf = c_int()
dwf.FDwfParamSet(DwfParamOnClose, c_int(0)) # 0 = run, 1 = stop, 2 = shutdown
print("Opening first device")
dwf.FDwfDeviceOpen(c_int(-1), byref(hdwf))
if hdwf.value == hdwfNone.value:
print("failed to open device")... | 28.576923 | 77 | 0.74428 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 192 | 0.258412 |
d729c41c45e0ad91c39b5482430d352eba2c6c9e | 699 | py | Python | src/backend/common/sitevars/flask_secrets.py | ofekashery/the-blue-alliance | df0e47d054161fe742ac6198a6684247d0713279 | [
"MIT"
] | 266 | 2015-01-04T00:10:48.000Z | 2022-03-28T18:42:05.000Z | src/backend/common/sitevars/flask_secrets.py | ofekashery/the-blue-alliance | df0e47d054161fe742ac6198a6684247d0713279 | [
"MIT"
] | 2,673 | 2015-01-01T20:14:33.000Z | 2022-03-31T18:17:16.000Z | src/backend/common/sitevars/flask_secrets.py | ofekashery/the-blue-alliance | df0e47d054161fe742ac6198a6684247d0713279 | [
"MIT"
] | 230 | 2015-01-04T00:10:48.000Z | 2022-03-26T18:12:04.000Z | from typing import TypedDict
from backend.common.sitevars.sitevar import Sitevar
class ContentType(TypedDict):
secret_key: str
class FlaskSecrets(Sitevar[ContentType]):
DEFAULT_SECRET_KEY: str = "thebluealliance"
@staticmethod
def key() -> str:
return "flask.secrets"
@staticmethod
... | 24.103448 | 76 | 0.706724 | 611 | 0.874106 | 0 | 0 | 449 | 0.642346 | 0 | 0 | 74 | 0.105866 |
d729d478b0bd147f173fcca0692b2e9d89ab472f | 1,782 | py | Python | cornflow-server/migrations/versions/f3bee20314a2_.py | ggsdc/corn | 4c17c46a70f95b8882bcb6a55ef7daa1f69e0456 | [
"MIT"
] | 2 | 2020-07-09T20:58:47.000Z | 2020-07-20T20:40:46.000Z | cornflow-server/migrations/versions/f3bee20314a2_.py | baobabsoluciones/cornflow | bd7cae22107e5fe148704d5f41d4f58f9c410b40 | [
"Apache-2.0"
] | 2 | 2022-03-31T08:42:10.000Z | 2022-03-31T12:05:23.000Z | cornflow-server/migrations/versions/f3bee20314a2_.py | ggsdc/corn | 4c17c46a70f95b8882bcb6a55ef7daa1f69e0456 | [
"MIT"
] | null | null | null | """
Added DAG master table and DAG permissions table
Revision ID: f3bee20314a2
Revises: ca449af8034c
Create Date: 2021-12-14 14:41:16.096297
"""
from alembic import op
import sqlalchemy as sa
# revision identifiers, used by Alembic.
revision = "f3bee20314a2"
down_revision = "ca449af8034c"
branch_labels = None
depen... | 30.20339 | 74 | 0.626263 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 638 | 0.358025 |
d72a11a2c8bf6250447fd4fa6eb0f797bb01fbab | 6,184 | py | Python | autoPyTorch/core/autonet_classes/autonet_feature_data.py | thomascherickal/Auto-PyTorch | 9e25a3bdef8e836e63979229eef77830cd64bb53 | [
"BSD-3-Clause"
] | 1 | 2019-09-02T00:37:52.000Z | 2019-09-02T00:37:52.000Z | autoPyTorch/core/autonet_classes/autonet_feature_data.py | thomascherickal/Auto-PyTorch | 9e25a3bdef8e836e63979229eef77830cd64bb53 | [
"BSD-3-Clause"
] | null | null | null | autoPyTorch/core/autonet_classes/autonet_feature_data.py | thomascherickal/Auto-PyTorch | 9e25a3bdef8e836e63979229eef77830cd64bb53 | [
"BSD-3-Clause"
] | 1 | 2019-09-02T00:40:30.000Z | 2019-09-02T00:40:30.000Z |
__author__ = "Max Dippel, Michael Burkart and Matthias Urban"
__version__ = "0.0.1"
__license__ = "BSD"
from autoPyTorch.core.api import AutoNet
class AutoNetFeatureData(AutoNet):
@classmethod
def get_default_pipeline(cls):
from autoPyTorch.pipeline.base.pipeline import Pipeline
from autoPyT... | 52.854701 | 126 | 0.733991 | 6,035 | 0.975906 | 0 | 0 | 5,984 | 0.967658 | 0 | 0 | 318 | 0.051423 |
d72b1da8920d5a9113865f0b4d64b0fa86860726 | 2,421 | py | Python | src/dispatch/incident_priority/service.py | mclueppers/dispatch | b9e524ca10e5b2e95490b388db61c58e79e975e2 | [
"Apache-2.0"
] | 1 | 2022-02-23T02:42:10.000Z | 2022-02-23T02:42:10.000Z | src/dispatch/incident_priority/service.py | mclueppers/dispatch | b9e524ca10e5b2e95490b388db61c58e79e975e2 | [
"Apache-2.0"
] | 1 | 2021-04-30T21:36:14.000Z | 2021-04-30T21:36:14.000Z | src/dispatch/incident_priority/service.py | AlexaKelley/dispatch | b46d8416a0e4ec9badb76f6f3d1765c6093203f8 | [
"Apache-2.0"
] | 1 | 2021-04-08T10:02:57.000Z | 2021-04-08T10:02:57.000Z | from typing import List, Optional
from fastapi.encoders import jsonable_encoder
from sqlalchemy.sql.expression import true
from .models import IncidentPriority, IncidentPriorityCreate, IncidentPriorityUpdate
def get(*, db_session, incident_priority_id: int) -> Optional[IncidentPriority]:
"""Returns an incident ... | 35.602941 | 100 | 0.748451 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 393 | 0.16233 |
d72c0a38e98d75d19247ea6d9280edc5b014f693 | 1,143 | py | Python | Ex036.py | andrade-lcs/ex_curso_em_video_python | f2d029efe7a20cdf0fcb5b602f9992e27d37c263 | [
"MIT"
] | null | null | null | Ex036.py | andrade-lcs/ex_curso_em_video_python | f2d029efe7a20cdf0fcb5b602f9992e27d37c263 | [
"MIT"
] | null | null | null | Ex036.py | andrade-lcs/ex_curso_em_video_python | f2d029efe7a20cdf0fcb5b602f9992e27d37c263 | [
"MIT"
] | null | null | null | from time import sleep
aa = 0
print('\033[2;31;40m-=\033[m'*40)
while aa == 0:
print('Este software ira calcular seu financiamento')
sleep(1)
a = float(input('Qual é a sua renda mensal? R$'))
sleep(1)
b = float(input('Qual é o valor do imóvel? R$'))
sleep(1)
c = float(input('Em quantos anos ... | 39.413793 | 178 | 0.591426 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 671 | 0.58196 |
d72d5a4417022f67b70e7c3aa53322cdcc3be526 | 1,295 | py | Python | neuralnetworksanddeeplearning_michael_nielsen/chapter_1/0020_single_perceptron_as_NAND.py | researcherben/learn_machine_learning | db117703786b46d7b3eb5c20b7240d006c01b90d | [
"Apache-2.0"
] | null | null | null | neuralnetworksanddeeplearning_michael_nielsen/chapter_1/0020_single_perceptron_as_NAND.py | researcherben/learn_machine_learning | db117703786b46d7b3eb5c20b7240d006c01b90d | [
"Apache-2.0"
] | null | null | null | neuralnetworksanddeeplearning_michael_nielsen/chapter_1/0020_single_perceptron_as_NAND.py | researcherben/learn_machine_learning | db117703786b46d7b3eb5c20b7240d006c01b90d | [
"Apache-2.0"
] | 1 | 2019-03-03T16:26:16.000Z | 2019-03-03T16:26:16.000Z | '''
Single perceptron can replicate a NAND gate
https://en.wikipedia.org/wiki/NAND_logic
inputs | output
0 0 1
0 1 1
1 0 1
1 1 0
'''
def dot_product(vec1,vec2):
if (len(vec1) != len(vec2)):
print("input vector lengths are not equal")
print(len(vec1))
print(len(vec2))
reslt=0
for... | 23.981481 | 69 | 0.626255 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 445 | 0.343629 |
d72d81ba3f6fdaef1e59e65c0b11f8060df26e53 | 5,158 | py | Python | job-search/Indeed_Scraper.py | oscarevolves/JobSearch_WebScraper | 776d137e7cdd636774e6c731894dc6c2a9a0a03b | [
"Apache-2.0"
] | 2 | 2019-11-25T20:16:11.000Z | 2019-12-13T19:39:33.000Z | job-search/Indeed_Scraper.py | oscarevolves/JobSearch_WebScraper | 776d137e7cdd636774e6c731894dc6c2a9a0a03b | [
"Apache-2.0"
] | 3 | 2019-11-27T20:40:10.000Z | 2019-12-13T09:36:15.000Z | job-search/Indeed_Scraper.py | oscarevolves/JobSearch_WebScraper | 776d137e7cdd636774e6c731894dc6c2a9a0a03b | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/python
# Author: Oscar Villagrana
from bs4 import BeautifulSoup
import re
import pandas as pd
import requests
#-------------------------------------------------
# Making the Soup
#-------------------------------------------------
def format_page():
print("First we will format the job search with rea... | 28.977528 | 186 | 0.597325 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2,336 | 0.452889 |
d72da0462a860ef207ae387369b10c547914c8ab | 24 | py | Python | tests/acknowledge/acknowledge.py | orenyodfat/CWR-DataApi | f3b6ba8308c901b6ab87073c155c08e30692333c | [
"MIT"
] | 37 | 2015-04-21T15:33:53.000Z | 2022-02-07T00:02:29.000Z | tests/acknowledge/acknowledge.py | orenyodfat/CWR-DataApi | f3b6ba8308c901b6ab87073c155c08e30692333c | [
"MIT"
] | 86 | 2015-02-01T22:26:02.000Z | 2021-07-09T08:49:36.000Z | tests/acknowledge/acknowledge.py | orenyodfat/CWR-DataApi | f3b6ba8308c901b6ab87073c155c08e30692333c | [
"MIT"
] | 27 | 2015-01-26T16:01:09.000Z | 2021-11-08T23:53:55.000Z | __author__ = 'yaroslav'
| 12 | 23 | 0.75 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 10 | 0.416667 |
d72ddd086f69dbbd5f9fa1618ec9586c8a562c0f | 591 | py | Python | mangopi/tests/site/test_mangaFox.py | BFTeck/mangopi | 8598c8b35c38f9bf2a0880c93af5c1d3ae5728be | [
"MIT"
] | 24 | 2015-01-03T00:47:06.000Z | 2020-11-27T14:58:32.000Z | mangopi/tests/site/test_mangaFox.py | BFTeck/mangopi | 8598c8b35c38f9bf2a0880c93af5c1d3ae5728be | [
"MIT"
] | 4 | 2015-03-14T14:00:21.000Z | 2020-12-30T07:15:20.000Z | mangopi/tests/site/test_mangaFox.py | BFTeck/mangopi | 8598c8b35c38f9bf2a0880c93af5c1d3ae5728be | [
"MIT"
] | 5 | 2015-02-04T00:44:08.000Z | 2018-08-13T21:59:47.000Z | from unittest import TestCase
from mangopi.site.mangafox import MangaFox
class TestMangaFox(TestCase):
SERIES = MangaFox.series('gantz')
CHAPTERS = SERIES.chapters
def test_chapter_count(self):
self.assertEqual(len(TestMangaFox.CHAPTERS), 386)
def test_chapter_title(self):
self.asse... | 28.142857 | 84 | 0.732657 | 514 | 0.869712 | 0 | 0 | 0 | 0 | 0 | 0 | 32 | 0.054146 |
d72e69e7855a795df76657ade7f8ca50ed7c1338 | 3,562 | py | Python | src/core/service/extractor.py | Mahe1980/btb | 29f65acb0dc5fe0f6ae03140cff87126a78e4aae | [
"Apache-2.0"
] | null | null | null | src/core/service/extractor.py | Mahe1980/btb | 29f65acb0dc5fe0f6ae03140cff87126a78e4aae | [
"Apache-2.0"
] | null | null | null | src/core/service/extractor.py | Mahe1980/btb | 29f65acb0dc5fe0f6ae03140cff87126a78e4aae | [
"Apache-2.0"
] | null | null | null | import json
import pandas as pd
import re
from pathlib import Path
from src.core.connectors.connectors import get_nz_conn
from src.settings.envs import NZ_TO_DATASET_DTYPE_MAPPING
from src.settings import envs
from src.settings import log_config
import logging
logger = logging.getLogger(__name__)
class Extractor(obj... | 39.142857 | 111 | 0.607805 | 3,260 | 0.915216 | 0 | 0 | 0 | 0 | 0 | 0 | 827 | 0.232173 |
d72eba65f9d051669771438ac61513bf982abaad | 3,925 | py | Python | mmdet/ops/nms_rotated/nms_rotated_wrapper.py | vpeopleonatank/OBBDetection | 86fb098d8d2ff3fc3cc447714d89a44c0939614a | [
"Apache-2.0"
] | 274 | 2021-04-06T15:46:06.000Z | 2022-03-31T02:00:10.000Z | mmdet/ops/nms_rotated/nms_rotated_wrapper.py | vpeopleonatank/OBBDetection | 86fb098d8d2ff3fc3cc447714d89a44c0939614a | [
"Apache-2.0"
] | 136 | 2021-07-11T11:26:54.000Z | 2022-03-31T02:45:34.000Z | mmdet/ops/nms_rotated/nms_rotated_wrapper.py | vpeopleonatank/OBBDetection | 86fb098d8d2ff3fc3cc447714d89a44c0939614a | [
"Apache-2.0"
] | 84 | 2021-05-29T06:58:14.000Z | 2022-03-31T07:44:10.000Z | import BboxToolkit as bt
import numpy as np
import torch
from . import nms_rotated_ext
def obb2hbb(obboxes):
center, w, h, theta = torch.split(obboxes, [2, 1, 1, 1], dim=1)
Cos, Sin = torch.cos(theta), torch.sin(theta)
x_bias = torch.abs(w/2 * Cos) + torch.abs(h/2 * Sin)
y_bias = torch.abs(w/2 * Sin)... | 32.983193 | 76 | 0.601783 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 337 | 0.08586 |
d7315024b9feb9895ac394720425de68d6266009 | 12,033 | py | Python | StreamPy/StreamPy-UI/src/root/nested/temp/MakeNetwork(1).py | AnomalyInc/StreamPy | 94abca276b2857de48259f4f42ef95efbdf5f6d1 | [
"Apache-2.0"
] | 2 | 2017-04-27T11:04:27.000Z | 2019-02-07T21:03:32.000Z | StreamPy/StreamPy-UI/src/root/nested/temp/MakeNetwork(1).py | StreamPy/StreamPy | 94abca276b2857de48259f4f42ef95efbdf5f6d1 | [
"Apache-2.0"
] | null | null | null | StreamPy/StreamPy-UI/src/root/nested/temp/MakeNetwork(1).py | StreamPy/StreamPy | 94abca276b2857de48259f4f42ef95efbdf5f6d1 | [
"Apache-2.0"
] | null | null | null | from Stream import Stream
from Stream import _no_value, _multivalue
from Agent import Agent
from root.nested.OperatorsTestNew import stream_agent
def make_network(stream_names_tuple, agent_descriptor_dict):
""" This function makes a network of agents given the names
of the streams in the network and a descript... | 37.25387 | 95 | 0.634588 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 6,031 | 0.501205 |
d7343b09e03a726772cf411ddcf471ddbd4605d5 | 10,627 | py | Python | pyfuntofem/base.py | anilyil/funtofem | 332c9fcc90f2b2763b54b9b35f40527de3534a08 | [
"Apache-2.0"
] | null | null | null | pyfuntofem/base.py | anilyil/funtofem | 332c9fcc90f2b2763b54b9b35f40527de3534a08 | [
"Apache-2.0"
] | null | null | null | pyfuntofem/base.py | anilyil/funtofem | 332c9fcc90f2b2763b54b9b35f40527de3534a08 | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python
# This file is part of the package FUNtoFEM for coupled aeroelastic simulation
# and design optimization.
# Copyright (C) 2015 Georgia Tech Research Corporation.
# Additional copyright (C) 2015 Kevin Jacobson, Jan Kiviaho and Graeme Kennedy.
# All rights reserved.
# FUNtoFEM is licensed under t... | 32.59816 | 138 | 0.57655 | 9,739 | 0.916439 | 0 | 0 | 0 | 0 | 0 | 0 | 5,637 | 0.530441 |
d735642e9d558eb3bf9fdd07fb6538d0fa899e7b | 987 | py | Python | shell/core/backdoors.py | theralfbrown/shellsploit-framework | 93b66ab9361872697eafda2125b37005f49116be | [
"MIT"
] | 3 | 2020-03-21T04:37:50.000Z | 2021-08-14T07:31:13.000Z | shell/core/backdoors.py | security-geeks/shellsploit-framework | 93b66ab9361872697eafda2125b37005f49116be | [
"MIT"
] | null | null | null | shell/core/backdoors.py | security-geeks/shellsploit-framework | 93b66ab9361872697eafda2125b37005f49116be | [
"MIT"
] | 3 | 2020-02-04T13:28:47.000Z | 2020-06-10T01:34:19.000Z | from color import *
#Will be add command line params ..
def backdoorlist( require=False):
if require != False:
data = [
"linux/x86/reverse_tcp",
"linux/x64/reverse_tcp",
"osx/x86/reverse_tcp",
"osx/x64/reverse_tcp",
"windows/x86/reverse_tcp",
"php/reverse_tcp",
"asp/reverse_tcp",
"jsp/reverse_tcp"... | 17.625 | 37 | 0.672746 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 777 | 0.787234 |
d736949b59153dcc0e4c4d3472e58423cffa5c71 | 754 | py | Python | circuit_mapper/gate_1_qubit.py | quantumgenetics/quantumgenetics | 630ae5a47c887ecf7a3b4ad62de0d58dc944a42d | [
"Apache-2.0"
] | 6 | 2019-11-09T16:59:29.000Z | 2021-03-27T03:20:24.000Z | circuit_mapper/gate_1_qubit.py | quantumgenetics/quantumgenetics | 630ae5a47c887ecf7a3b4ad62de0d58dc944a42d | [
"Apache-2.0"
] | null | null | null | circuit_mapper/gate_1_qubit.py | quantumgenetics/quantumgenetics | 630ae5a47c887ecf7a3b4ad62de0d58dc944a42d | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python3
from functools import partial
def combine(qubit_count, gates):
return [partial(g, i) for g in gates for i in range(qubit_count)]
def repeat_none(index, count):
return [partial(apply_none, index)] * count
def apply_none(index, circuit):
pass
def apply_not(index, circuit):
qr... | 18.85 | 69 | 0.68435 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 22 | 0.029178 |
d736eacec6de3c37305776ffe4de524fa9c56eb4 | 739 | py | Python | stronghold/tests/testmixins.py | davitovmasyan/django-stronghold | 73021742e9aad5c57509623c1152fcf7aa6ed232 | [
"MIT"
] | 252 | 2015-01-07T20:03:27.000Z | 2022-03-22T18:17:28.000Z | stronghold/tests/testmixins.py | davitovmasyan/django-stronghold | 73021742e9aad5c57509623c1152fcf7aa6ed232 | [
"MIT"
] | 35 | 2015-02-16T02:29:22.000Z | 2021-10-04T09:14:11.000Z | stronghold/tests/testmixins.py | davitovmasyan/django-stronghold | 73021742e9aad5c57509623c1152fcf7aa6ed232 | [
"MIT"
] | 48 | 2015-02-15T17:56:52.000Z | 2021-10-04T12:33:27.000Z | from stronghold.views import StrongholdPublicMixin
import django
from django.views.generic import View
from django.views.generic.base import TemplateResponseMixin
if django.VERSION[:2] < (1, 9):
from django.utils import unittest
else:
import unittest
class StrongholdMixinsTests(unittest.TestCase):
def ... | 26.392857 | 75 | 0.760487 | 475 | 0.64276 | 0 | 0 | 0 | 0 | 0 | 0 | 12 | 0.016238 |
d73791489c7b8c6e1b619f76a8345efe1855108d | 3,664 | py | Python | app/utils/mapping.py | bbc/connected-data-pseudocone | 452479cd44fa7d32ecb3d54b801da9024d6984ce | [
"MIT"
] | null | null | null | app/utils/mapping.py | bbc/connected-data-pseudocone | 452479cd44fa7d32ecb3d54b801da9024d6984ce | [
"MIT"
] | 5 | 2018-07-30T09:01:03.000Z | 2019-01-16T11:16:39.000Z | app/utils/mapping.py | bbc/connected-data-pseudocone | 452479cd44fa7d32ecb3d54b801da9024d6984ce | [
"MIT"
] | null | null | null | import datetime
import logging
import isodate
from app import pseudocone_pb2
from app.settings import SERVICE_NAME
logger = logging.getLogger(SERVICE_NAME)
def action_context_to_iso8601_duration(action_context):
"""Process the actionContext string to ISO 8601 duration format.
Example:
"urn:bbc:tv:... | 35.230769 | 116 | 0.684771 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 456 | 0.124454 |
d738962bacfe335ff849bf213922ab2ef2a2a20b | 445 | py | Python | paper_iv/centrality_example.py | wiheto/phd_code | 432cae1aa26f1758e5970fd11361af0e4a130b9d | [
"MIT"
] | 2 | 2017-09-20T18:02:38.000Z | 2017-09-22T09:52:17.000Z | paper_iv/centrality_example.py | wiheto/phd_code | 432cae1aa26f1758e5970fd11361af0e4a130b9d | [
"MIT"
] | null | null | null | paper_iv/centrality_example.py | wiheto/phd_code | 432cae1aa26f1758e5970fd11361af0e4a130b9d | [
"MIT"
] | null | null | null |
import numpy as np
import teneto
import matplotlib.pyplot as plt
plt.rcParams['image.cmap'] = 'gist_gray'
A=np.zeros((3,3,20))
A[0,2,0:4]=1
A[0,1,0]=1
A[0,1,5]=1
A[0,1,10]=1
A[0,1,15]=1
fig,ax = plt.subplots(1)
ax = teneto.plot.slice_plot(A,ax,vlabs=range(1,4),dlabs=range(1,21))
ax.set_ylabel('nodes')
ax.set_xlab... | 16.481481 | 68 | 0.692135 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 80 | 0.179775 |
d738bec2f9d2cad3aaccf4ee4535837028c7758a | 401 | py | Python | examples/hsd_struct/src/hsd_struct_beh.py | hnikolov/pihdf | 9a0d2add059db1ee90805e2124beff1fb5185fae | [
"MIT"
] | 2 | 2016-09-25T00:08:47.000Z | 2016-10-09T10:09:55.000Z | examples/hsd_struct/src/hsd_struct_beh.py | hnikolov/pihdf | 9a0d2add059db1ee90805e2124beff1fb5185fae | [
"MIT"
] | null | null | null | examples/hsd_struct/src/hsd_struct_beh.py | hnikolov/pihdf | 9a0d2add059db1ee90805e2124beff1fb5185fae | [
"MIT"
] | null | null | null | def hsd_struct_beh(mode_1, mode_2, LEDs, LED_rdy_en, LED_rdy_buff, LED_rdy_out, DELAY_BITS, BUFFER_SIZE):
'''|
| Specify the behavior, describe data processing; there is no notion
| of clock. Access the in/out interfaces via get() and append()
| methods. The "hsd_struct_beh" function does not return val... | 40.1 | 105 | 0.720698 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 277 | 0.690773 |
d73ac6fd3661cf82f0a73ee994c217dc326ae563 | 1,187 | py | Python | tests/unit/test_non-lib_utils.py | DiwakerJha/acconeer-python-exploration | 90cc2931c3f7336c1b75882f63e2de081fc72dbf | [
"BSD-3-Clause-Clear"
] | null | null | null | tests/unit/test_non-lib_utils.py | DiwakerJha/acconeer-python-exploration | 90cc2931c3f7336c1b75882f63e2de081fc72dbf | [
"BSD-3-Clause-Clear"
] | null | null | null | tests/unit/test_non-lib_utils.py | DiwakerJha/acconeer-python-exploration | 90cc2931c3f7336c1b75882f63e2de081fc72dbf | [
"BSD-3-Clause-Clear"
] | null | null | null | import sys
from itertools import chain
from pathlib import Path
import pytest
import acconeer.exptool as et
HERE = Path(__file__).parent
path = (HERE / ".." / ".." / "utils").resolve()
sys.path.append(path.as_posix())
from convert_to_csv import record_to_csv # noqa: E402
@pytest.mark.parametrize("test_file", ch... | 31.236842 | 89 | 0.690817 | 0 | 0 | 0 | 0 | 906 | 0.763269 | 0 | 0 | 250 | 0.210615 |
d73b450d21d773f70afe8701a469d62e69a7223b | 720 | py | Python | pydis_site/apps/api/migrations/0055_reminder_mentions.py | Numerlor/site | e4cec0aeb2a791e622be8edd94fb4e82d150deab | [
"MIT"
] | 700 | 2018-11-17T15:56:51.000Z | 2022-03-30T22:53:17.000Z | pydis_site/apps/api/migrations/0055_reminder_mentions.py | Numerlor/site | e4cec0aeb2a791e622be8edd94fb4e82d150deab | [
"MIT"
] | 542 | 2018-11-17T13:39:42.000Z | 2022-03-31T11:24:00.000Z | pydis_site/apps/api/migrations/0055_reminder_mentions.py | Numerlor/site | e4cec0aeb2a791e622be8edd94fb4e82d150deab | [
"MIT"
] | 178 | 2018-11-21T09:06:56.000Z | 2022-03-31T07:43:28.000Z | # Generated by Django 2.2.14 on 2020-07-15 07:37
import django.contrib.postgres.fields
import django.core.validators
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('api', '0054_user_invalidate_unknown_role'),
]
operations = [
migrations... | 34.285714 | 307 | 0.704167 | 558 | 0.775 | 0 | 0 | 0 | 0 | 0 | 0 | 191 | 0.265278 |
d73cd16bb625739a1d37a63ac0f909083ac38bb7 | 1,951 | py | Python | kantanoidc/views.py | mmiyajima2/django-kantanoidc | eb0540e61c27b301f4cb53bb29e6a853e90ee879 | [
"MIT"
] | null | null | null | kantanoidc/views.py | mmiyajima2/django-kantanoidc | eb0540e61c27b301f4cb53bb29e6a853e90ee879 | [
"MIT"
] | 17 | 2019-02-18T02:55:42.000Z | 2022-02-10T08:01:23.000Z | kantanoidc/views.py | mmiyajima2/django-kantanoidc | eb0540e61c27b301f4cb53bb29e6a853e90ee879 | [
"MIT"
] | null | null | null | from logging import getLogger
from django.http import HttpResponseRedirect
from django.views.generic.base import View
from django.contrib.auth import login
from django.contrib.auth import get_user_model
from django.urls import reverse
from .client import client
from .errors import IllegalStateError
import string
import... | 34.22807 | 75 | 0.679651 | 1,557 | 0.798052 | 0 | 0 | 0 | 0 | 0 | 0 | 212 | 0.108662 |
d7400f4c43c756b05040a9e3afa28d7e32be9f5a | 970 | py | Python | hata/ext/extension_loader/client_extension.py | Multiface24111/hata | cd28f9ef158e347363669cc8d1d49db0ff41aba0 | [
"0BSD"
] | 173 | 2019-06-14T20:25:00.000Z | 2022-03-21T19:36:10.000Z | hata/ext/extension_loader/client_extension.py | Tari-dev/hata | a5c3199c845858f997af3b0b2c18770fdc691897 | [
"0BSD"
] | 52 | 2020-01-03T17:05:14.000Z | 2022-03-31T11:39:50.000Z | hata/ext/extension_loader/client_extension.py | Tari-dev/hata | a5c3199c845858f997af3b0b2c18770fdc691897 | [
"0BSD"
] | 47 | 2019-11-09T08:46:45.000Z | 2022-03-31T14:33:34.000Z | __all__ = ()
from ...backend.utils import KeepType
from ...discord.client import Client
from .extension import EXTENSIONS, EXTENSION_STATE_LOADED
@KeepType(Client)
class Client:
@property
def extensions(self):
"""
Returns a list of extensions added to the client. Added by the `extension_load... | 31.290323 | 100 | 0.593814 | 802 | 0.826804 | 0 | 0 | 820 | 0.845361 | 0 | 0 | 202 | 0.208247 |
d74152884389e5fc3f13b32b2c1f5a681bd2affe | 211 | py | Python | org/miggy/setup.py | DarkSession/fd-api | e319000dd12ca88c3ddd736b739d904279f69b8b | [
"CC-BY-4.0"
] | 20 | 2017-10-03T21:47:39.000Z | 2022-01-27T21:06:53.000Z | org/miggy/setup.py | DarkSession/fd-api | e319000dd12ca88c3ddd736b739d904279f69b8b | [
"CC-BY-4.0"
] | 1 | 2021-10-13T15:49:57.000Z | 2021-11-05T18:58:21.000Z | org/miggy/setup.py | DarkSession/fd-api | e319000dd12ca88c3ddd736b739d904279f69b8b | [
"CC-BY-4.0"
] | 7 | 2020-02-07T13:43:29.000Z | 2022-03-26T13:13:55.000Z | # vim: textwidth=0 wrapmargin=0 tabstop=2 shiftwidth=2 softtabstop=2 smartindent smarttab
from setuptools import setup, find_namespace_packages
setup(
name="org.miggy",
packages=find_namespace_packages()
)
| 26.375 | 89 | 0.805687 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 100 | 0.473934 |
d742dd18740c02a1839bc5886575861c03728ccd | 462 | py | Python | day-04/part-1/badouralix.py | evqna/adventofcode-2020 | 526bb9c87057d02bda4de9647932a0e25bdb3a5b | [
"MIT"
] | 12 | 2020-11-30T19:22:18.000Z | 2021-06-21T05:55:58.000Z | day-04/part-1/badouralix.py | evqna/adventofcode-2020 | 526bb9c87057d02bda4de9647932a0e25bdb3a5b | [
"MIT"
] | 13 | 2020-11-30T17:27:22.000Z | 2020-12-22T17:43:13.000Z | day-04/part-1/badouralix.py | evqna/adventofcode-2020 | 526bb9c87057d02bda4de9647932a0e25bdb3a5b | [
"MIT"
] | 3 | 2020-12-01T08:49:40.000Z | 2022-03-26T21:47:38.000Z | from tool.runners.python import SubmissionPy
class BadouralixSubmission(SubmissionPy):
def run(self, s):
"""
:param s: input in string format
:return: solution flag
"""
result = 0
for line in s.split("\n\n"):
keys = {keyvalue.split(":")[0] for keyvalue ... | 25.666667 | 73 | 0.519481 | 414 | 0.896104 | 0 | 0 | 0 | 0 | 0 | 0 | 131 | 0.28355 |
d74303560e27d9dbcb4f0ce7fc9475cbf09c4f3a | 6,845 | py | Python | s2e_env/manage.py | michaelbrownuc/s2e-env | 4bd6a45bf1ec9456ed5acf5047b6aac3fcd19683 | [
"BSD-3-Clause"
] | null | null | null | s2e_env/manage.py | michaelbrownuc/s2e-env | 4bd6a45bf1ec9456ed5acf5047b6aac3fcd19683 | [
"BSD-3-Clause"
] | null | null | null | s2e_env/manage.py | michaelbrownuc/s2e-env | 4bd6a45bf1ec9456ed5acf5047b6aac3fcd19683 | [
"BSD-3-Clause"
] | null | null | null | """
Copyright (c) Django Software Foundation and individual contributors.
Copyright (c) Dependable Systems Laboratory, EPFL
All rights reserved.
Redistribution and use in source and binary forms, with or without modification,
are permitted provided that the following conditions are met:
1. Redistributions of sour... | 35.466321 | 108 | 0.659752 | 2,717 | 0.396932 | 0 | 0 | 0 | 0 | 0 | 0 | 3,794 | 0.554273 |
d74324110a48059e49cab1877c123daa1cf09eba | 1,658 | py | Python | src/interface/vib_main.py | stembl/vibproc | 2588ad7fad5309a0a56fe5ea3d0a0f4affd10911 | [
"MIT"
] | null | null | null | src/interface/vib_main.py | stembl/vibproc | 2588ad7fad5309a0a56fe5ea3d0a0f4affd10911 | [
"MIT"
] | null | null | null | src/interface/vib_main.py | stembl/vibproc | 2588ad7fad5309a0a56fe5ea3d0a0f4affd10911 | [
"MIT"
] | null | null | null | ## Main Program for Vibration Analysis with Pandas
import sys, os
import matplotlib.pyplot as plt
#sys.path.append(os.path.join(os.path.dirname(__file__), "../tools/"))
sys.path.append("../tools/")
sys.path.append("../../data/")
from open_file_folder import *
from import_vib_data import *
from data_features import ... | 25.121212 | 70 | 0.740651 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 877 | 0.528951 |
d74383d9925c9e5501ce517e56c8dbd310c32f9d | 399 | py | Python | Lesson 02 - Arrays/OddOccurrencesInArray_3.py | kourouklides/codility-python | 0c193a3af3addd3d17a2b0eed6cd29ba6b396e9e | [
"Apache-2.0"
] | 11 | 2018-06-05T03:04:22.000Z | 2022-02-03T05:01:07.000Z | Lesson 02 - Arrays/OddOccurrencesInArray_3.py | kourouklides/codility-python | 0c193a3af3addd3d17a2b0eed6cd29ba6b396e9e | [
"Apache-2.0"
] | null | null | null | Lesson 02 - Arrays/OddOccurrencesInArray_3.py | kourouklides/codility-python | 0c193a3af3addd3d17a2b0eed6cd29ba6b396e9e | [
"Apache-2.0"
] | 6 | 2020-04-23T07:18:22.000Z | 2021-12-05T05:23:26.000Z | # you can write to stdout for debugging purposes, e.g.
# print("this is a debug message")
def solution(A):
# write your code in Python 3.6
dictionary = {}
for number in A:
if dictionary.get(number) == None:
dictionary[number] = 1
else:
dictionary[number] += 1
for ke... | 22.166667 | 54 | 0.591479 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 119 | 0.298246 |
d7442cc25fd608f9e2b752fac226f3d226409445 | 273 | py | Python | MANN/Utils/similarities.py | jgyllinsky/How-to-Learn-from-Little-Data | 3b7b481ac8aa376540a2ca1fff7046de9f86dad6 | [
"MIT"
] | 161 | 2017-05-06T01:37:30.000Z | 2021-12-15T09:58:26.000Z | MANN/Utils/similarities.py | jgyllinsky/How-to-Learn-from-Little-Data | 3b7b481ac8aa376540a2ca1fff7046de9f86dad6 | [
"MIT"
] | 8 | 2017-05-08T20:00:51.000Z | 2018-05-28T01:16:30.000Z | MANN/Utils/similarities.py | jgyllinsky/How-to-Learn-from-Little-Data | 3b7b481ac8aa376540a2ca1fff7046de9f86dad6 | [
"MIT"
] | 78 | 2017-05-06T03:27:31.000Z | 2020-12-21T17:24:20.000Z | import tensorflow as tf
def cosine_similarity(x, y, eps=1e-6):
z = tf.batch_matmul(x, tf.transpose(y, perm=[0,2,1]))
z /= tf.sqrt(tf.multiply(tf.expand_dims(tf.reduce_sum(tf.multiply(x,x), 2), 2),tf.expand_dims(tf.reduce_sum(tf.multiply(y,y), 2), 1)) + eps)
return z
| 34.125 | 141 | 0.688645 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 |
d74569333a69434699769603bb8e6b9c55c7c51c | 1,870 | py | Python | PythonAPI/quickstart/03-raycast.py | MaisJamal/Apollo-BT-GP | 4d8d721fa16b67e7ecefdd05d937b1153c000d63 | [
"Apache-2.0"
] | null | null | null | PythonAPI/quickstart/03-raycast.py | MaisJamal/Apollo-BT-GP | 4d8d721fa16b67e7ecefdd05d937b1153c000d63 | [
"Apache-2.0"
] | null | null | null | PythonAPI/quickstart/03-raycast.py | MaisJamal/Apollo-BT-GP | 4d8d721fa16b67e7ecefdd05d937b1153c000d63 | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python3
#
# Copyright (c) 2019 LG Electronics, Inc.
#
# This software contains code licensed as described in LICENSE.
#
import os
import lgsvl
sim = lgsvl.Simulator(os.environ.get("SIMULATOR_HOST", "127.0.0.1"), 8181)
if sim.current_scene == "BorregasAve":
sim.reset()
else:
sim.load("BorregasAve")
... | 27.5 | 109 | 0.725668 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 886 | 0.473797 |
d746595f48844a5e6d0dbe01d637017879e8559b | 7,064 | py | Python | app/run.py | mourgaya/iscsi_ihm | aadf09590a02f6f1e6b16b000c2a4380e015f840 | [
"Apache-2.0"
] | null | null | null | app/run.py | mourgaya/iscsi_ihm | aadf09590a02f6f1e6b16b000c2a4380e015f840 | [
"Apache-2.0"
] | null | null | null | app/run.py | mourgaya/iscsi_ihm | aadf09590a02f6f1e6b16b000c2a4380e015f840 | [
"Apache-2.0"
] | null | null | null | #author : eric mourgya
#
import commands
from flask import jsonify
from flask import Flask, Response, request, redirect,session, url_for
from flask.ext.login import LoginManager, UserMixin,login_required, login_user, logout_user
#@app.after_request
#def treat_as_plain_text(response):
# response.headers["content-typ... | 27.920949 | 98 | 0.614383 | 244 | 0.034541 | 0 | 0 | 5,113 | 0.723811 | 0 | 0 | 2,946 | 0.417044 |
d7469f7f64e499f08213f3dd92d29492cf06e4a9 | 539 | py | Python | src/config/defaults/sc2/config.py | ewanlee/mackrl | 6dd505aa09830f16c35a022f67e255db935c807e | [
"Apache-2.0"
] | 26 | 2019-10-28T09:01:45.000Z | 2021-09-20T08:56:12.000Z | src/config/defaults/sc2/config.py | ewanlee/mackrl | 6dd505aa09830f16c35a022f67e255db935c807e | [
"Apache-2.0"
] | 1 | 2020-07-25T06:50:05.000Z | 2020-07-25T06:50:05.000Z | src/config/defaults/sc2/config.py | ewanlee/mackrl | 6dd505aa09830f16c35a022f67e255db935c807e | [
"Apache-2.0"
] | 6 | 2019-12-18T12:02:57.000Z | 2021-03-03T13:15:47.000Z | def get_cfg(existing_cfg, _log):
"""
generates
"""
_sanity_check(existing_cfg, _log)
import ntpath, os, yaml
with open(os.path.join(os.path.dirname(__file__), "{}.yml".format(ntpath.basename(__file__).split(".")[0])),
'r') as stream:
try:
ret = yaml.load(stream)... | 29.944444 | 112 | 0.595547 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 91 | 0.168831 |
d74820e3197a81d3b2193a0e7a959fc2f8c0c24d | 1,191 | py | Python | analyser/utils/data_loader.py | michigg/web-simultaneous-recording-tool | 67db83f6e34d9cb726c69b4e448fed3604a43618 | [
"MIT"
] | 1 | 2022-03-30T09:45:25.000Z | 2022-03-30T09:45:25.000Z | analyser/utils/data_loader.py | michigg/web-simultaneous-recording-tool | 67db83f6e34d9cb726c69b4e448fed3604a43618 | [
"MIT"
] | null | null | null | analyser/utils/data_loader.py | michigg/web-simultaneous-recording-tool | 67db83f6e34d9cb726c69b4e448fed3604a43618 | [
"MIT"
] | null | null | null | import glob
import json
import pandas as pd
from models.analysis import Analysis
from models.devices import Devices
import logging
logger = logging.getLogger(__name__)
class Loader:
@staticmethod
def load_analysis_from_csv(path: str, index_col=0, header=0) -> pd.DataFrame:
return pd.read_csv(path, ... | 32.189189 | 81 | 0.680101 | 1,017 | 0.853904 | 0 | 0 | 987 | 0.828715 | 0 | 0 | 192 | 0.161209 |
d748a84338b8e8ea97ee055765e5c914d9d65349 | 320 | py | Python | catstuff/tools/argparser.py | modora/catstuff | 7a4ea67e26774e42e90d0c71a4b2c299fe506d73 | [
"MIT"
] | null | null | null | catstuff/tools/argparser.py | modora/catstuff | 7a4ea67e26774e42e90d0c71a4b2c299fe506d73 | [
"MIT"
] | 7 | 2017-12-16T06:16:56.000Z | 2017-12-26T06:21:18.000Z | catstuff/tools/argparser.py | modora/catstuff | 7a4ea67e26774e42e90d0c71a4b2c299fe506d73 | [
"MIT"
] | null | null | null | import argparse, sys
__version__ = '1.0.2'
class CSArgParser(argparse.ArgumentParser):
""" Argument parser that shows help if there is an error """
def error(self, message, exit=False):
sys.stderr.write('Error: {}\n'.format(message))
self.print_help()
if exit:
sys.exit(2)
| 24.615385 | 64 | 0.628125 | 273 | 0.853125 | 0 | 0 | 0 | 0 | 0 | 0 | 80 | 0.25 |
d74a05fdbfc357bdb2194d73ae4809aafa378aee | 9,565 | py | Python | custom_components/google_home/sensor.py | tmttn/home-assistant-config | a707a95bb9458a267d7fbf21cde0464af99b5253 | [
"MIT"
] | 1 | 2022-01-01T20:07:21.000Z | 2022-01-01T20:07:21.000Z | custom_components/google_home/sensor.py | tmttn/home-assistant-config | a707a95bb9458a267d7fbf21cde0464af99b5253 | [
"MIT"
] | null | null | null | custom_components/google_home/sensor.py | tmttn/home-assistant-config | a707a95bb9458a267d7fbf21cde0464af99b5253 | [
"MIT"
] | null | null | null | """Sensor platform for Google Home"""
from __future__ import annotations
import logging
import voluptuous as vol
from homeassistant.config_entries import ConfigEntry
from homeassistant.const import DEVICE_CLASS_TIMESTAMP, STATE_UNAVAILABLE
from homeassistant.core import HomeAssistant
from homeassistant.helpers impor... | 30.657051 | 88 | 0.624255 | 6,647 | 0.694929 | 0 | 0 | 3,047 | 0.318557 | 3,173 | 0.33173 | 1,415 | 0.147935 |
d74aea35b8907c25e7a9565f11c2bcb6503f3a32 | 2,691 | py | Python | ContinuumBenchmarks/MNIST/Continual-Learning-Benchmark/Plot.py | hikmatkhan/Continuum | 83302753648e0d521d8b5f57edae5df4307c0a5c | [
"MIT"
] | null | null | null | ContinuumBenchmarks/MNIST/Continual-Learning-Benchmark/Plot.py | hikmatkhan/Continuum | 83302753648e0d521d8b5f57edae5df4307c0a5c | [
"MIT"
] | null | null | null | ContinuumBenchmarks/MNIST/Continual-Learning-Benchmark/Plot.py | hikmatkhan/Continuum | 83302753648e0d521d8b5f57edae5df4307c0a5c | [
"MIT"
] | null | null | null | import torch
import pandas as pd
# "Avg_NormalNN",
Approaches = ["NormalNN", "EWC",
"SI", "L2", "Naive_Rehearsal_1100", "Naive_Rehearsal_4400",
"MAS", "GEM_1100", "GEM_4400"
]
REPEAT = 10
OutDirPath = "/home/hikmat/Desktop/JWorkspace/CL/Continuum/ContinuumBenchmarks/MNIST/Conti... | 38.442857 | 169 | 0.66741 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 979 | 0.363805 |
d74be0e6efcefb06e3529cae5316490cf81fffce | 130 | py | Python | fmojinja/awk/__main__.py | Taro-Imahiro/fmojinja | 5b2c4100e25bd198b1cf8ed44b37b1c4bb93d2ee | [
"MIT"
] | null | null | null | fmojinja/awk/__main__.py | Taro-Imahiro/fmojinja | 5b2c4100e25bd198b1cf8ed44b37b1c4bb93d2ee | [
"MIT"
] | 13 | 2021-07-06T07:03:58.000Z | 2021-11-22T15:25:22.000Z | fmojinja/awk/__main__.py | Taro-Imahiro/fmojinja | 5b2c4100e25bd198b1cf8ed44b37b1c4bb93d2ee | [
"MIT"
] | 3 | 2021-06-26T19:40:34.000Z | 2021-09-15T04:24:21.000Z | from ..mixin import SubCommands
from .pdb_reformer import PdbReformer
SubCommands.main_proc({
"pdb_reformer": PdbReformer
})
| 18.571429 | 37 | 0.784615 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 14 | 0.107692 |
d74c74f32a5497e7e19bbaa47aa3d3f1d06f9e90 | 848 | py | Python | src/home_automation_hub/storage.py | levidavis/py-home | 3cc30e19d506824de9816ad9dbcfba4338a7dfa8 | [
"MIT"
] | 26 | 2018-08-21T19:54:21.000Z | 2021-10-15T18:59:17.000Z | src/home_automation_hub/storage.py | levidavis/py-home | 3cc30e19d506824de9816ad9dbcfba4338a7dfa8 | [
"MIT"
] | 3 | 2020-01-23T03:54:24.000Z | 2020-07-19T13:10:22.000Z | src/home_automation_hub/storage.py | levidavis/py-home | 3cc30e19d506824de9816ad9dbcfba4338a7dfa8 | [
"MIT"
] | 11 | 2018-09-18T21:31:11.000Z | 2021-07-03T11:23:30.000Z | import redis
import json
from . import config
redis_instance = None
def set_up(host, port, db):
global redis_instance
redis_instance = redis.StrictRedis(host=host, port=port, db=db)
class ModuleStorage():
def __init__(self, module_id):
self.key_prefix = "module:" + config.config.enabled_modules... | 24.941176 | 96 | 0.659198 | 652 | 0.768868 | 0 | 0 | 60 | 0.070755 | 0 | 0 | 63 | 0.074292 |
d74cb954739227c81cdf0acf2e81f09cf919377a | 475 | py | Python | example/abc-preview.py | lochbrunner/vscode-generic-binary-preview | 9cc44089d9b51c9e8a64547f086c61bf86d20a0c | [
"MIT"
] | 1 | 2022-02-26T20:29:40.000Z | 2022-02-26T20:29:40.000Z | example/abc-preview.py | lochbrunner/vscode-generic-binary-preview | 9cc44089d9b51c9e8a64547f086c61bf86d20a0c | [
"MIT"
] | 1 | 2021-08-24T17:12:00.000Z | 2021-08-24T17:12:23.000Z | example/abc-preview.py | lochbrunner/vscode-generic-binary-preview | 9cc44089d9b51c9e8a64547f086c61bf86d20a0c | [
"MIT"
] | null | null | null | #!/usr/bin/env python
import argparse
import os
import sys
import pickle
if __name__ == "__main__":
parser = argparse.ArgumentParser()
parser.add_argument('filename')
args = parser.parse_args()
if os.path.splitext(args.filename)[1] != '.abc':
# We can not read this file type
sys.exit(... | 21.590909 | 52 | 0.612632 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 113 | 0.237895 |
d74d3899741085d63737a7cf25e86b7c54dd0fdb | 12,299 | py | Python | obsolete/pipeline_mapping_benchmark.py | cdrakesmith/CGATPipelines | 3c94ae4f9d87d51108255dc405c4b95af7c8b694 | [
"MIT"
] | 49 | 2015-04-13T16:49:25.000Z | 2022-03-29T10:29:14.000Z | obsolete/pipeline_mapping_benchmark.py | cdrakesmith/CGATPipelines | 3c94ae4f9d87d51108255dc405c4b95af7c8b694 | [
"MIT"
] | 252 | 2015-04-08T13:23:34.000Z | 2019-03-18T21:51:29.000Z | obsolete/pipeline_mapping_benchmark.py | cdrakesmith/CGATPipelines | 3c94ae4f9d87d51108255dc405c4b95af7c8b694 | [
"MIT"
] | 22 | 2015-05-21T00:37:52.000Z | 2019-09-25T05:04:27.000Z | """=========================================
Read Mapping parameter titration pipeline
=========================================
* align reads to the genome using a range of different parameters
* calculate alignment statistics
Requirements
------------
On top of the default CGAT setup, the pipeline requires ... | 35.649275 | 197 | 0.462314 | 0 | 0 | 0 | 0 | 7,185 | 0.584194 | 0 | 0 | 7,520 | 0.611432 |
d74ea2281107cf74e2034caf7b92932a4e11e640 | 1,904 | py | Python | user_Test.py | Robertokello11/Password-Locker | 23afa9b2748044b523e33660e45f934a90d88328 | [
"MIT"
] | null | null | null | user_Test.py | Robertokello11/Password-Locker | 23afa9b2748044b523e33660e45f934a90d88328 | [
"MIT"
] | null | null | null | user_Test.py | Robertokello11/Password-Locker | 23afa9b2748044b523e33660e45f934a90d88328 | [
"MIT"
] | null | null | null | import unittest #Import unittest module
from user import user # importing the contact class
class TestUser(unittest.TestCase):
def setUp(self):
'''
method to run before each test
'''
self.new_user=User("Robert", "Robert11") #new User created
def tearDown(self):
'''
... | 25.72973 | 69 | 0.581408 | 1,757 | 0.922794 | 0 | 0 | 0 | 0 | 0 | 0 | 703 | 0.369223 |
d74f99009f7b23a8259c513299a6bb144a926283 | 4,881 | py | Python | src/old/api_server.py | ssupdoc/k8-simulation | 7834d3faaed3e86b547554c6228540c316621011 | [
"CC0-1.0"
] | null | null | null | src/old/api_server.py | ssupdoc/k8-simulation | 7834d3faaed3e86b547554c6228540c316621011 | [
"CC0-1.0"
] | null | null | null | src/old/api_server.py | ssupdoc/k8-simulation | 7834d3faaed3e86b547554c6228540c316621011 | [
"CC0-1.0"
] | null | null | null | from src.deployment import Deployment
from src.end_point import EndPoint
from src.etcd import Etcd
from src.pod import Pod
from src.pid_controller import PIDController
from src.request import Request
from src.worker_node import WorkerNode
import threading
import random
#The APIServer handles the communication between ... | 36.699248 | 129 | 0.763983 | 4,465 | 0.914772 | 0 | 0 | 0 | 0 | 0 | 0 | 1,742 | 0.356894 |
d75199ae09fb507ebd0bec385de7a0580d95d595 | 1,946 | py | Python | ngram_graphs/TextGraph/IGraphTextGraph.py | loginn/ngrams_graphs | 74fc42d3895cdbc51eec5aaf7b5505b4432619e3 | [
"MIT"
] | 8 | 2018-04-24T17:03:29.000Z | 2022-02-08T14:36:00.000Z | ngram_graphs/TextGraph/IGraphTextGraph.py | loginn/ngrams-graphs | 74fc42d3895cdbc51eec5aaf7b5505b4432619e3 | [
"MIT"
] | 1 | 2019-08-13T08:50:54.000Z | 2021-12-03T11:19:51.000Z | ngram_graphs/TextGraph/IGraphTextGraph.py | loginn/ngrams_graphs | 74fc42d3895cdbc51eec5aaf7b5505b4432619e3 | [
"MIT"
] | null | null | null | from igraph import Graph
def find_node_name(graph, node_idx):
return graph.vs[node_idx]["name"]
class IGraphTextGraph(Graph):
def __init__(self):
super().__init__(directed=True)
def __copy__(self):
g = IGraphTextGraph()
for v in self.vs:
g.add_vertex(v)
for e... | 38.92 | 108 | 0.631552 | 1,841 | 0.946043 | 0 | 0 | 164 | 0.084275 | 0 | 0 | 144 | 0.073998 |
d751efb295d54d9e30bbe118adcaa7556e4e4646 | 67 | py | Python | Python Crash Course/12_use_module.py | rfaria/full-stack-python | 1e764d4a1468d849d20005846e49ff900787d1ed | [
"MIT"
] | 1 | 2022-01-17T19:55:52.000Z | 2022-01-17T19:55:52.000Z | Python Crash Course/12_use_module.py | rfaria/full-stack-python | 1e764d4a1468d849d20005846e49ff900787d1ed | [
"MIT"
] | null | null | null | Python Crash Course/12_use_module.py | rfaria/full-stack-python | 1e764d4a1468d849d20005846e49ff900787d1ed | [
"MIT"
] | null | null | null | import new_module as nm
if __name__ == '__main__':
nm.say_hi() | 16.75 | 26 | 0.686567 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 10 | 0.149254 |
d75247a3779551deda4745fa7b2623bb3e507eaf | 619 | py | Python | pyFiDEL/utils.py | sungcheolkim78/pyFiDEL | 670067b12a2efd276e23382251ec612af678731f | [
"Apache-2.0"
] | null | null | null | pyFiDEL/utils.py | sungcheolkim78/pyFiDEL | 670067b12a2efd276e23382251ec612af678731f | [
"Apache-2.0"
] | null | null | null | pyFiDEL/utils.py | sungcheolkim78/pyFiDEL | 670067b12a2efd276e23382251ec612af678731f | [
"Apache-2.0"
] | null | null | null | '''
utils.py - utility functions
Soli Deo Gloria
'''
__author__ = 'Sung-Cheol Kim'
__version__ = '1.0.0'
import numpy as np
def fermi_l(x: np.array, l1: float, l2: float) -> np.array:
''' calculate fermi-dirac distribution with np.array x with l1 and l2'''
return 1. / (1. + np.exp(l2 * x + l1))
def ferm... | 23.807692 | 78 | 0.596123 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 222 | 0.358643 |
d752c6600006a1dd3d08802063344cf314d1ca74 | 3,970 | py | Python | scripts/run_jsw_ablation_experiments.py | Oulu-IMEDS/OAProgression | 76dcb93d4101d1a97c13e39dbb92808f62923b12 | [
"BSD-4-Clause-UC"
] | 65 | 2019-04-14T15:37:55.000Z | 2021-11-10T10:01:57.000Z | scripts/run_jsw_ablation_experiments.py | Oulu-IMEDS/OAProgression | 76dcb93d4101d1a97c13e39dbb92808f62923b12 | [
"BSD-4-Clause-UC"
] | 9 | 2019-07-09T08:12:08.000Z | 2022-01-03T12:06:26.000Z | scripts/run_jsw_ablation_experiments.py | MIPT-Oulu/OAProgression | 76dcb93d4101d1a97c13e39dbb92808f62923b12 | [
"BSD-4-Clause-UC"
] | 13 | 2019-04-15T10:20:57.000Z | 2021-09-13T11:38:00.000Z | import sys
import os
import cv2
import argparse
import pickle
from sklearn.metrics import average_precision_score
from sklearn.model_selection import GroupKFold
from oaprogression.metadata.oai import jsw_features, read_jsw_metadata_oai, beam_angle_feature
from oaprogression.training.lgbm_tools import optimize_lgbm_hy... | 49.012346 | 123 | 0.575315 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 679 | 0.171033 |
d753414b6d8a595d3f5481cc528d827c6798b55d | 819 | py | Python | data/synthetic/analyze.py | thonic/pyhawkes | 99804deb9ea22ba3e1a99584420722abdf8eb56b | [
"MIT"
] | 221 | 2015-02-26T04:25:34.000Z | 2022-03-27T13:06:10.000Z | data/synthetic/analyze.py | thonic/pyhawkes | 99804deb9ea22ba3e1a99584420722abdf8eb56b | [
"MIT"
] | 20 | 2015-08-04T01:47:19.000Z | 2021-08-08T00:22:44.000Z | data/synthetic/analyze.py | thonic/pyhawkes | 99804deb9ea22ba3e1a99584420722abdf8eb56b | [
"MIT"
] | 86 | 2015-02-22T23:36:32.000Z | 2021-11-13T20:56:07.000Z | import gzip
import pickle
import os
def analyze(data_path):
"""
Run the comparison on the given data file
:param data_path:
:return:
"""
if data_path.endswith(".gz"):
with gzip.open(data_path, 'r') as f:
S, true_model = pickle.load(f)
else:
with open(data_path... | 22.135135 | 87 | 0.582418 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 251 | 0.306471 |
d75380c7f93cf504e36d7b8aad4924bb1e6a7e9d | 1,692 | py | Python | icarus/test/test_util.py | oascigil/icarus_edge_comp | b7bb9f9b8d0f27b4b01469dcba9cfc0c4949d64b | [
"MIT"
] | 5 | 2021-03-20T09:22:55.000Z | 2021-12-20T17:01:33.000Z | icarus/test/test_util.py | oascigil/icarus_edge_comp | b7bb9f9b8d0f27b4b01469dcba9cfc0c4949d64b | [
"MIT"
] | 1 | 2021-12-13T07:40:46.000Z | 2021-12-20T16:59:08.000Z | icarus/test/test_util.py | oascigil/icarus_edge_comp | b7bb9f9b8d0f27b4b01469dcba9cfc0c4949d64b | [
"MIT"
] | 1 | 2021-11-25T05:42:20.000Z | 2021-11-25T05:42:20.000Z | import unittest
import networkx as nx
import fnss
import icarus.util as util
class TestUtil(unittest.TestCase):
@classmethod
def setUpClass(cls):
pass
@classmethod
def tearDownClass(cls):
pass
def setUp(self):
pass
def tearDown(self):
pass
def test_ti... | 32.538462 | 82 | 0.615839 | 1,610 | 0.951537 | 0 | 0 | 103 | 0.060875 | 0 | 0 | 85 | 0.050236 |
d7541a3b15b51e054893433fc2620f63f4d58eb9 | 1,055 | py | Python | pytorch_metric_learning/trainers/unsupervised_embeddings_using_augmentations.py | jacobdanovitch/pytorch_metric_learning | dbcf2d49fffe92f7dc1221b939e182c214633520 | [
"MIT"
] | 1 | 2021-05-18T01:51:04.000Z | 2021-05-18T01:51:04.000Z | pytorch_metric_learning/trainers/unsupervised_embeddings_using_augmentations.py | junjungoal/pytorch_metric_learning | e56bb440d1ec63e13622025209135a788c6f51c1 | [
"MIT"
] | null | null | null | pytorch_metric_learning/trainers/unsupervised_embeddings_using_augmentations.py | junjungoal/pytorch_metric_learning | e56bb440d1ec63e13622025209135a788c6f51c1 | [
"MIT"
] | 1 | 2021-05-18T01:51:00.000Z | 2021-05-18T01:51:00.000Z | from .metric_loss_only import MetricLossOnly
import logging
from ..utils import common_functions as c_f
import torch
class UnsupervisedEmbeddingsUsingAugmentations(MetricLossOnly):
def __init__(self, transforms, **kwargs):
super().__init__(**kwargs)
self.label_mapper = lambda label, hierarc... | 43.958333 | 116 | 0.661611 | 930 | 0.881517 | 0 | 0 | 0 | 0 | 0 | 0 | 23 | 0.021801 |
d7560a43f54c8aae8cfba885c28425454151868f | 866 | py | Python | accelerator/migrations/0064_update_gender_criteria_to_full_gender_spec.py | masschallenge/django-accelerator | 8af898b574be3b8335edc8961924d1c6fa8b5fd5 | [
"MIT"
] | 6 | 2017-06-14T19:34:01.000Z | 2020-03-08T07:16:59.000Z | accelerator/migrations/0064_update_gender_criteria_to_full_gender_spec.py | masschallenge/django-accelerator | 8af898b574be3b8335edc8961924d1c6fa8b5fd5 | [
"MIT"
] | 160 | 2017-06-20T17:12:13.000Z | 2022-03-30T13:53:12.000Z | accelerator/migrations/0064_update_gender_criteria_to_full_gender_spec.py | masschallenge/django-accelerator | 8af898b574be3b8335edc8961924d1c6fa8b5fd5 | [
"MIT"
] | null | null | null | # Generated by Django 2.2.24 on 2021-07-01 20:17
from django.db import migrations
def update_criterion_specs(apps, schema_editor):
CriterionOptionSpec = apps.get_model("accelerator", "CriterionOptionSpec")
CriterionOptionSpec.objects.filter(option="m").update(option="Male")
CriterionOptionSpec.objects.fi... | 30.928571 | 78 | 0.71709 | 232 | 0.267898 | 0 | 0 | 0 | 0 | 0 | 0 | 184 | 0.212471 |
d7564ee7c90edf711987a796bd61e3ba3f488668 | 2,766 | py | Python | task8.py | akramnarejo/pycode | 475aab3df34f5c015e6e8f7e628ecadb91404569 | [
"MIT"
] | null | null | null | task8.py | akramnarejo/pycode | 475aab3df34f5c015e6e8f7e628ecadb91404569 | [
"MIT"
] | null | null | null | task8.py | akramnarejo/pycode | 475aab3df34f5c015e6e8f7e628ecadb91404569 | [
"MIT"
] | null | null | null | import random
def choice(choice):
""" This function takes in integer value and returns the equivalent string """
if(choice == 1):
return "Rock"
elif(choice == 2):
return "Paper"
else:
return "Scissors"
def determine(userChoice, computerChoice):
"""
This function take... | 32.928571 | 105 | 0.537238 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1,237 | 0.447216 |
d75687d12877fd75bcb5ec323b32f51bea82f129 | 6,245 | py | Python | rl_coach/graph_managers/hrl_graph_manager.py | jl45621/coach | 9a895a1ac73aff44b2e6eb8e4d01e8ec35ceb084 | [
"Apache-2.0"
] | 1,960 | 2017-10-19T10:31:24.000Z | 2020-11-07T18:19:23.000Z | rl_coach/graph_managers/hrl_graph_manager.py | gndctrl2mjrtm/coach-ray | ae6593bb33cf0ae3c5a4b3b351560dd6b47cd031 | [
"Apache-2.0"
] | 349 | 2017-10-21T17:17:18.000Z | 2020-10-17T13:39:56.000Z | rl_coach/graph_managers/hrl_graph_manager.py | gndctrl2mjrtm/coach-ray | ae6593bb33cf0ae3c5a4b3b351560dd6b47cd031 | [
"Apache-2.0"
] | 428 | 2017-10-21T01:32:58.000Z | 2020-11-07T13:49:49.000Z | #
# Copyright (c) 2017 Intel Corporation
#
# 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... | 52.923729 | 120 | 0.68711 | 5,173 | 0.828343 | 0 | 0 | 0 | 0 | 0 | 0 | 2,665 | 0.426741 |
d7591c0d088001626e41cc97845928cb48724e49 | 1,667 | py | Python | test_21_recent_filelist.py | Mpreyzner/tdd_in_python | fa20864329424e40a52e80df34f31cdc56620fb4 | [
"MIT"
] | null | null | null | test_21_recent_filelist.py | Mpreyzner/tdd_in_python | fa20864329424e40a52e80df34f31cdc56620fb4 | [
"MIT"
] | null | null | null | test_21_recent_filelist.py | Mpreyzner/tdd_in_python | fa20864329424e40a52e80df34f31cdc56620fb4 | [
"MIT"
] | 1 | 2020-05-09T17:41:01.000Z | 2020-05-09T17:41:01.000Z | # https://sites.google.com/site/tddproblems/all-problems-1/recent-file-list
# A popular feature of graphical editors of
# all kinds (text, graphics, spreadsheets, ..) is the Recent file list. It is often found as a sub-menu of the file
# menu in the GUI of the program.
#
# Use TDD to grow this kind of behaviour. Some e... | 29.767857 | 117 | 0.706059 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 766 | 0.459508 |
d7599edaa481a1e260e406f973a13c62378a0dab | 389 | py | Python | tests/utils.py | amatissart/idunn | cae32024165a85ad99881c373a88ea5702631d71 | [
"Apache-2.0"
] | null | null | null | tests/utils.py | amatissart/idunn | cae32024165a85ad99881c373a88ea5702631d71 | [
"Apache-2.0"
] | null | null | null | tests/utils.py | amatissart/idunn | cae32024165a85ad99881c373a88ea5702631d71 | [
"Apache-2.0"
] | null | null | null | from contextlib import contextmanager
from copy import deepcopy
from app import settings
@contextmanager
def override_settings(overrides):
"""
A utility function used by some fixtures to override settings
"""
old_settings = deepcopy(settings._settings)
settings._settings.update(overrides)
try:
... | 24.3125 | 65 | 0.732648 | 0 | 0 | 282 | 0.724936 | 298 | 0.766067 | 0 | 0 | 77 | 0.197943 |
d759b3383f0a3272c487bb9c3a6da4112544bbe3 | 173 | py | Python | exp01_string.py | psb2509/learning-python3 | 38bd16f85d458b69ed677c72315c1023f83afc3d | [
"MIT"
] | null | null | null | exp01_string.py | psb2509/learning-python3 | 38bd16f85d458b69ed677c72315c1023f83afc3d | [
"MIT"
] | 4 | 2018-09-09T16:47:46.000Z | 2018-09-10T12:18:43.000Z | exp01_string.py | psb2509/learning-python3 | 38bd16f85d458b69ed677c72315c1023f83afc3d | [
"MIT"
] | null | null | null | print(4+3);
print("Hello");
print('Who are you');
print('This is Pradeep\'s python program');
print(r'C:\Users\N51254\Documents\NetBeansProjects');
print("Pradeep "*5); | 28.833333 | 54 | 0.687861 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 110 | 0.635838 |
d759cca6aa40b22128380587e7622577a783f241 | 1,422 | py | Python | parse.py | OpenScienceFramework/citations | 3679ef4a1746a287061186078ce4b9144afe9083 | [
"Apache-2.0"
] | 4 | 2015-05-20T15:48:35.000Z | 2021-06-24T17:04:51.000Z | parse.py | OpenScienceFramework/citations | 3679ef4a1746a287061186078ce4b9144afe9083 | [
"Apache-2.0"
] | null | null | null | parse.py | OpenScienceFramework/citations | 3679ef4a1746a287061186078ce4b9144afe9083 | [
"Apache-2.0"
] | 1 | 2015-01-10T13:02:45.000Z | 2015-01-10T13:02:45.000Z | # encoding: utf-8
"""
Parse module for parsing citations into structured data. Currently this uses
the Parsley library to do this, the grammars are defined in the grammars/
folder and cycled through until one is found that works.
to_dict will convert the Reference named tuple into a dictionary, which allows
for easy t... | 28.44 | 79 | 0.662447 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 646 | 0.453652 |
d75a122a7b1520cc30ff7d383f0593e9eebe913f | 2,260 | py | Python | src/utils/config.py | cpaismz89/DeepFireTopology | 9cfe7c5ed9997a2a89b7405af47d9991da7d5471 | [
"MIT"
] | null | null | null | src/utils/config.py | cpaismz89/DeepFireTopology | 9cfe7c5ed9997a2a89b7405af47d9991da7d5471 | [
"MIT"
] | null | null | null | src/utils/config.py | cpaismz89/DeepFireTopology | 9cfe7c5ed9997a2a89b7405af47d9991da7d5471 | [
"MIT"
] | null | null | null | # Run Keras on CPU
import os
# os.environ["CUDA_DEVICE_ORDER"] = "PCI_BUS_ID" # see issue #152
# os.environ["CUDA_VISIBLE_DEVICES"] = " " # -1 if CPU
# Importations
from IPython.display import Image
# Compressed pickle
import pickle
from compress_pickle import dump as cdump
from compress_pickle import load ... | 32.753623 | 125 | 0.834513 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 309 | 0.136726 |
d75a1604cab32ecaf5df590d83df4055be296ffd | 1,572 | py | Python | openstack_dashboard/test/integration_tests/steps.py | Mirantis/mos-horizon | d2444220d959c8b921436bd75459c2face0e71d2 | [
"Apache-2.0"
] | 9 | 2016-06-03T03:53:24.000Z | 2017-05-20T16:53:23.000Z | openstack_dashboard/test/integration_tests/steps.py | Mirantis/mos-horizon | d2444220d959c8b921436bd75459c2face0e71d2 | [
"Apache-2.0"
] | 1 | 2016-09-08T10:57:46.000Z | 2016-09-08T10:59:06.000Z | openstack_dashboard/test/integration_tests/steps.py | Mirantis/mos-horizon | d2444220d959c8b921436bd75459c2face0e71d2 | [
"Apache-2.0"
] | 4 | 2016-08-01T10:50:15.000Z | 2017-02-22T12:11:19.000Z | # Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# d... | 37.428571 | 78 | 0.714377 | 0 | 0 | 799 | 0.50827 | 0 | 0 | 0 | 0 | 583 | 0.370865 |
d75a18bd78e91d9f730e373f55bda8a6f4b069bd | 631 | py | Python | src/zabbix_enums/common/event.py | szuro/zabbix-enums | f2ef3b9ea630f678c336d4fc58b5401771a0e4d1 | [
"MIT"
] | 1 | 2022-02-07T01:21:34.000Z | 2022-02-07T01:21:34.000Z | src/zabbix_enums/common/event.py | szuro/zabbix-enums | f2ef3b9ea630f678c336d4fc58b5401771a0e4d1 | [
"MIT"
] | null | null | null | src/zabbix_enums/common/event.py | szuro/zabbix-enums | f2ef3b9ea630f678c336d4fc58b5401771a0e4d1 | [
"MIT"
] | null | null | null | from zabbix_enums.common import _ZabbixEnum
class EventSeverity(_ZabbixEnum):
NOT_CLASSIFIED = 0
INFORMATION = 1
WARNING = 2
AVERAGE = 3
HIGH = 4
DISASTER = 5
class EventSuppressed(_ZabbixEnum):
NO = 0
YES = 1
class EventObjectTrigger(_ZabbixEnum):
TRIGGER = 0
class EventObje... | 15.02381 | 47 | 0.673534 | 566 | 0.896989 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 |
d75a3a6b573bad3eb8f11cb8fcb954ad3b080d4b | 3,283 | py | Python | tests/test_next_step_assignment_udf.py | EdinburghGenomics/clarity_scripts | 472299fc4edd4e0a08895ecc7c5630b253322e28 | [
"MIT"
] | 2 | 2018-06-18T16:31:09.000Z | 2021-03-31T20:13:39.000Z | tests/test_next_step_assignment_udf.py | EdinburghGenomics/clarity_scripts | 472299fc4edd4e0a08895ecc7c5630b253322e28 | [
"MIT"
] | 99 | 2016-02-15T16:21:51.000Z | 2022-03-11T23:43:26.000Z | tests/test_next_step_assignment_udf.py | EdinburghGenomics/clarity_scripts | 472299fc4edd4e0a08895ecc7c5630b253322e28 | [
"MIT"
] | null | null | null | from unittest.mock import patch, PropertyMock, Mock
import pytest
from EPPs.common import StepEPP
from tests.test_common import TestEPP, NamedMock
from scripts.next_step_assignment_udf import AssignNextStepUDF
class TestNextStepAssignmentUDF(TestEPP):
step_udfs1={'step_udf1':'udf_value1'}
step_udfs2={'step... | 33.161616 | 113 | 0.604325 | 3,069 | 0.934816 | 0 | 0 | 0 | 0 | 0 | 0 | 615 | 0.187329 |
d75a625bfb5e6d5e2d2d9e1471c8fa852109fb7f | 17 | py | Python | haul2/src/__init__.py | hotkeymuc/haul2 | bac20b684fd81c24b91e505002723a6577c2b883 | [
"MIT"
] | null | null | null | haul2/src/__init__.py | hotkeymuc/haul2 | bac20b684fd81c24b91e505002723a6577c2b883 | [
"MIT"
] | null | null | null | haul2/src/__init__.py | hotkeymuc/haul2 | bac20b684fd81c24b91e505002723a6577c2b883 | [
"MIT"
] | null | null | null | __all__ = ["htk"] | 17 | 17 | 0.588235 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 5 | 0.294118 |
d75b34d68f5f86482cc12361e48b4e2ab74ec8dd | 2,439 | py | Python | test_opencv_haar_img.py | sunnylgz/faceapi | 7de817a2924d7ad4cbbca9778c7a7ec0e4427458 | [
"MIT"
] | null | null | null | test_opencv_haar_img.py | sunnylgz/faceapi | 7de817a2924d7ad4cbbca9778c7a7ec0e4427458 | [
"MIT"
] | null | null | null | test_opencv_haar_img.py | sunnylgz/faceapi | 7de817a2924d7ad4cbbca9778c7a7ec0e4427458 | [
"MIT"
] | null | null | null | #! /usr/bin/python3
"""find faces from input image based on mtcnn and locate the locations and landmarks
"""
# MIT License
#
# Copyright (c) 2016 David Sandberg
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to d... | 35.347826 | 90 | 0.738007 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1,330 | 0.545305 |
d75b85454e9ed8ed2910b5b6cb818fe560fdc4cc | 3,111 | py | Python | sphinx-sources/Examples/ComputerPrac/FresnelPlane.py | jccmak/lightpipes | 1a296fe08bdd97fc9a0e11f92bab25c85f68e57d | [
"BSD-3-Clause"
] | 132 | 2017-03-15T15:28:46.000Z | 2022-03-09T00:28:25.000Z | sphinx-sources/Examples/ComputerPrac/FresnelPlane.py | jccmak/lightpipes | 1a296fe08bdd97fc9a0e11f92bab25c85f68e57d | [
"BSD-3-Clause"
] | 63 | 2017-01-26T15:46:55.000Z | 2022-01-25T04:50:59.000Z | sphinx-sources/Examples/ComputerPrac/FresnelPlane.py | jccmak/lightpipes | 1a296fe08bdd97fc9a0e11f92bab25c85f68e57d | [
"BSD-3-Clause"
] | 37 | 2017-02-17T16:11:38.000Z | 2022-01-25T18:03:47.000Z | #!/usr/bin/env python
"""
Computer practical 6.1. Fresnel diffraction, plane wavefront.
=============================================================
This is part of the 'computer practical' set of assignments.
Demonstrates Fresnel diffraction when a plane wavefront enters
a round hole.
Measur... | 25.5 | 121 | 0.623594 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 897 | 0.288332 |
d75cad8b32fab20545d08ae0ad7d2cccf0a03783 | 1,226 | py | Python | scripts/sliding_window.py | gustaveroussy/98drivers | 9886eb1995592f690d621db945e268f7c629e07d | [
"MIT"
] | null | null | null | scripts/sliding_window.py | gustaveroussy/98drivers | 9886eb1995592f690d621db945e268f7c629e07d | [
"MIT"
] | 7 | 2016-05-25T09:55:35.000Z | 2016-05-30T08:01:31.000Z | scripts/sliding_window.py | gustaveroussy/98drivers | 9886eb1995592f690d621db945e268f7c629e07d | [
"MIT"
] | null | null | null | import argparse
import tabix
import os
from common import *
def sliding_window(tabix_file, genom, window ):
sizes = chromosom_sizes(genom)
tx = tabix.open(tabix_file)
for chromosom in sizes:
for position in range(0,sizes[chromosom] - window, window):
start = position
end = position + windo... | 26.652174 | 79 | 0.696574 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 376 | 0.306688 |
d75d5e9c183dad29dd630cad94b9feb4b957bbfc | 535 | py | Python | examples/tornado/myapp/__init__.py | s-shin/wswrapper | f47500eb9d27d3aa96d91a50081945e3b83be9dd | [
"MIT"
] | 2 | 2017-05-15T22:23:36.000Z | 2018-02-19T12:27:45.000Z | examples/tornado/myapp/__init__.py | s-shin/wswrapper | f47500eb9d27d3aa96d91a50081945e3b83be9dd | [
"MIT"
] | null | null | null | examples/tornado/myapp/__init__.py | s-shin/wswrapper | f47500eb9d27d3aa96d91a50081945e3b83be9dd | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
def setup_argparser(parser):
"""コマンドパーサーのセットアップ。
パーサーは共有されるので、被らないように上手く調整すること。
:param parser: ``argparse.ArgumentParser`` のインスタンス。
"""
pass
def setup_app(args):
"""コマンドパース後のセットアップ。
:param args: ``parser.arg_parse()`` の戻り値。
"""
pass
def on_open(... | 14.861111 | 55 | 0.605607 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 546 | 0.719368 |
d75da4931865b017feed0648dddd5ffd50baa642 | 120 | py | Python | src/Bank.py | tokuma09/PyTDD | ae76cd7d6af13c383d4d860500c6291d924a56fd | [
"MIT"
] | null | null | null | src/Bank.py | tokuma09/PyTDD | ae76cd7d6af13c383d4d860500c6291d924a56fd | [
"MIT"
] | 15 | 2021-05-10T13:29:25.000Z | 2021-05-23T07:15:09.000Z | src/Bank.py | tokuma09/PyTDD | ae76cd7d6af13c383d4d860500c6291d924a56fd | [
"MIT"
] | null | null | null | class Bank():
def __init__(self):
pass
def reduce(self, source, to):
return source.reduce(to)
| 15 | 33 | 0.575 | 119 | 0.991667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 |
d75e34968052a479dcb04800c417d5b42abec672 | 3,876 | py | Python | test/clean_directory.py | adevress/gfal2 | ce8945d1c153e26c5d10ad43d1940b8dcace0579 | [
"Apache-2.0"
] | null | null | null | test/clean_directory.py | adevress/gfal2 | ce8945d1c153e26c5d10ad43d1940b8dcace0579 | [
"Apache-2.0"
] | null | null | null | test/clean_directory.py | adevress/gfal2 | ce8945d1c153e26c5d10ad43d1940b8dcace0579 | [
"Apache-2.0"
] | 1 | 2020-04-28T09:36:46.000Z | 2020-04-28T09:36:46.000Z | #!/usr/bin/env python
import gfal2
import logging
import optparse
import stat
import sys
log = logging.getLogger('gfal2.clean_directory')
class Cleaner(object):
def __init__(self, abort_on_error=False, recursive=False, only_files=False, chmod=False):
self.abort_on_error = abort_on_error
self.rec... | 36.914286 | 100 | 0.576625 | 2,449 | 0.631837 | 0 | 0 | 0 | 0 | 0 | 0 | 617 | 0.159185 |
d75e7b27d27b1524b1e76cacefb052ea9376911b | 2,776 | py | Python | app/views/recipe.py | baldur132/essensfindung | e1a8106d8a1de857340229a5fe36ca6910c55b35 | [
"MIT"
] | 1 | 2022-01-29T20:33:30.000Z | 2022-01-29T20:33:30.000Z | app/views/recipe.py | baldur132/essensfindung | e1a8106d8a1de857340229a5fe36ca6910c55b35 | [
"MIT"
] | 2 | 2022-03-08T06:41:22.000Z | 2022-03-09T11:52:06.000Z | app/views/recipe.py | baldur132/essensfindung | e1a8106d8a1de857340229a5fe36ca6910c55b35 | [
"MIT"
] | 6 | 2022-01-06T15:02:59.000Z | 2022-02-02T08:08:56.000Z | """Router and Logic for the Recipe of the Website"""
from datetime import timedelta
from typing import Union
import fastapi
from fastapi.responses import HTMLResponse
from sqlalchemy.orm import Session
from starlette.requests import Request
from starlette.templating import Jinja2Templates
from db.database import get_... | 33.445783 | 106 | 0.716499 | 0 | 0 | 0 | 0 | 2,195 | 0.790706 | 2,139 | 0.770533 | 503 | 0.181196 |
d75e92e1cf6688e5a8ad55c6253bccf7855e6a50 | 2,196 | py | Python | platform/radio/efr32_multiphy_configurator/pyradioconfig/parts/viper/calculators/calc_utilities.py | PascalGuenther/gecko_sdk | 2e82050dc8823c9fe0e8908c1b2666fb83056230 | [
"Zlib"
] | 69 | 2021-12-16T01:34:09.000Z | 2022-03-31T08:27:39.000Z | platform/radio/efr32_multiphy_configurator/pyradioconfig/parts/viper/calculators/calc_utilities.py | PascalGuenther/gecko_sdk | 2e82050dc8823c9fe0e8908c1b2666fb83056230 | [
"Zlib"
] | 6 | 2022-01-12T18:22:08.000Z | 2022-03-25T10:19:27.000Z | platform/radio/efr32_multiphy_configurator/pyradioconfig/parts/viper/calculators/calc_utilities.py | PascalGuenther/gecko_sdk | 2e82050dc8823c9fe0e8908c1b2666fb83056230 | [
"Zlib"
] | 21 | 2021-12-20T09:05:45.000Z | 2022-03-28T02:52:28.000Z | from pyradioconfig.parts.bobcat.calculators.calc_utilities import Calc_Utilities_Bobcat
from pycalcmodel.core.variable import ModelVariableFormat
from enum import Enum
class Calc_Utilities_Viper(Calc_Utilities_Bobcat):
def buildVariables(self, model):
#Build all variables from the inherited class
s... | 37.220339 | 99 | 0.722222 | 2,026 | 0.922587 | 0 | 0 | 0 | 0 | 0 | 0 | 764 | 0.347905 |
d75ec669dfc620aaaefd9ee6ffa0b75d16e42209 | 2,029 | py | Python | tests/logger/check_logger.py | rancp/ducktape-docs | e1a3b1b7e68beedf5f8d29a4e5f196912a20e264 | [
"Apache-2.0"
] | null | null | null | tests/logger/check_logger.py | rancp/ducktape-docs | e1a3b1b7e68beedf5f8d29a4e5f196912a20e264 | [
"Apache-2.0"
] | null | null | null | tests/logger/check_logger.py | rancp/ducktape-docs | e1a3b1b7e68beedf5f8d29a4e5f196912a20e264 | [
"Apache-2.0"
] | null | null | null | # Copyright 2016 Confluent Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 30.283582 | 81 | 0.699359 | 1,219 | 0.600789 | 0 | 0 | 59 | 0.029078 | 0 | 0 | 798 | 0.393297 |
d75f55e688f1197eea211a05b99890e08a4f598e | 1,268 | py | Python | Egzersiz/ege/egzersizSet.py | ibrahimediz/ornekproje | c5ebeafc43a9c6d2aa639d0d95eedbce65991576 | [
"Apache-2.0"
] | null | null | null | Egzersiz/ege/egzersizSet.py | ibrahimediz/ornekproje | c5ebeafc43a9c6d2aa639d0d95eedbce65991576 | [
"Apache-2.0"
] | null | null | null | Egzersiz/ege/egzersizSet.py | ibrahimediz/ornekproje | c5ebeafc43a9c6d2aa639d0d95eedbce65991576 | [
"Apache-2.0"
] | null | null | null | first_angle = int(input("Lütfen ilk açıyı giriniz: "))
second_angle = int(input("Lütfen ilk açıyı giriniz: "))
gelenAcilar = {first_angle, second_angle}
eskenar = {60, 60, 60}
dik = {25, 65, 90}
ikizKenar = {45, 45, 90}
cesitKenar = {120, 41, 19}
if gelenAcilar.intersection(ikizKenar):
print("ikizkenar")
elif ge... | 23.054545 | 59 | 0.603312 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 713 | 0.548884 |
d7611de84d0c09241612fe2faace88345d97ec3c | 18,916 | py | Python | src/tests/presale/test_customer.py | n0emis/pretix | 57d68eaddb01ec4adc0837a915631871cae4d91a | [
"Apache-2.0"
] | null | null | null | src/tests/presale/test_customer.py | n0emis/pretix | 57d68eaddb01ec4adc0837a915631871cae4d91a | [
"Apache-2.0"
] | 8 | 2015-01-06T10:50:27.000Z | 2015-01-18T18:38:18.000Z | src/tests/presale/test_customer.py | n0emis/pretix | 57d68eaddb01ec4adc0837a915631871cae4d91a | [
"Apache-2.0"
] | null | null | null | #
# This file is part of pretix (Community Edition).
#
# Copyright (C) 2014-2020 Raphael Michel and contributors
# Copyright (C) 2020-2021 rami.io GmbH and contributors
#
# This program is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General
# Public License as published by ... | 33.185965 | 119 | 0.656164 | 0 | 0 | 0 | 0 | 16,143 | 0.853405 | 0 | 0 | 5,925 | 0.313227 |
d7644768742f958b906abb14fbff6d652cf10fee | 2,009 | py | Python | build/python_module.py | Romit-Maulik/CBurgers | 0b0b0d733049d731c9b82215f19219f99ea77b25 | [
"MIT"
] | 5 | 2020-09-17T04:56:00.000Z | 2021-04-01T23:33:51.000Z | build/python_module.py | Romit-Maulik/CBurgers | 0b0b0d733049d731c9b82215f19219f99ea77b25 | [
"MIT"
] | null | null | null | build/python_module.py | Romit-Maulik/CBurgers | 0b0b0d733049d731c9b82215f19219f99ea77b25 | [
"MIT"
] | 4 | 2020-09-17T13:00:34.000Z | 2021-06-24T00:36:17.000Z | print("From python: Within python module")
import os,sys
HERE = os.getcwd()
sys.path.insert(0,HERE)
import numpy as np
import tensorflow as tf
import matplotlib.pyplot as plt
data_array = np.zeros(shape=(2001,258)) # Very important that this matches the number of timesteps in the main solver
x = np.arange(start=0,st... | 26.434211 | 117 | 0.672474 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 522 | 0.259831 |
d766600ac591a726caf5047535ca5f091cf8d7ac | 10,478 | py | Python | Tutorials/SENSEI/Advection_AmrLevel/Exec/SingleVortex/sensei/render_iso_catalyst_3d.py | ylunalin/amrex | 5715b2fc8a77e0db17bfe7907982e29ec44811ca | [
"BSD-3-Clause-LBNL"
] | null | null | null | Tutorials/SENSEI/Advection_AmrLevel/Exec/SingleVortex/sensei/render_iso_catalyst_3d.py | ylunalin/amrex | 5715b2fc8a77e0db17bfe7907982e29ec44811ca | [
"BSD-3-Clause-LBNL"
] | null | null | null | Tutorials/SENSEI/Advection_AmrLevel/Exec/SingleVortex/sensei/render_iso_catalyst_3d.py | ylunalin/amrex | 5715b2fc8a77e0db17bfe7907982e29ec44811ca | [
"BSD-3-Clause-LBNL"
] | 1 | 2020-01-17T05:00:26.000Z | 2020-01-17T05:00:26.000Z |
from paraview.simple import *
from paraview import coprocessing
#--------------------------------------------------------------
# Code generated from cpstate.py to create the CoProcessor.
# ParaView 5.4.1 64 bits
#--------------------------------------------------------------
# Global screenshot output options
imag... | 44.777778 | 364 | 0.654132 | 7,692 | 0.73411 | 0 | 0 | 0 | 0 | 0 | 0 | 3,901 | 0.372304 |
d767675283bbb063fdc340913b93263291f2c950 | 212 | py | Python | tests/integration/test_integration_foreign_payment_codes.py | pwitab/visma | ffa6698738fcc1be9de727e7fe77cce30310f830 | [
"BSD-3-Clause"
] | 5 | 2018-08-10T19:12:48.000Z | 2021-07-08T12:43:24.000Z | tests/integration/test_integration_foreign_payment_codes.py | pwitab/visma | ffa6698738fcc1be9de727e7fe77cce30310f830 | [
"BSD-3-Clause"
] | 16 | 2018-06-17T18:51:05.000Z | 2021-01-10T10:44:36.000Z | tests/integration/test_integration_foreign_payment_codes.py | pwitab/visma | ffa6698738fcc1be9de727e7fe77cce30310f830 | [
"BSD-3-Clause"
] | 3 | 2019-03-05T15:01:13.000Z | 2021-06-15T14:35:37.000Z | from visma.models import ForeignPaymentCodes
class TestForeignPaymentCodes:
def test_list_foregin_payment_codes(self):
codes = ForeignPaymentCodes.objects.all()
assert len(codes) is not 0
| 21.2 | 49 | 0.754717 | 164 | 0.773585 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 |
d7683f0603e42e3b0a2ea0473fd022c587fdae78 | 995 | py | Python | performance/forms.py | linikerunk/tcc-people-analytics | fdda975682d5299c8384e31ebb974dc085330875 | [
"MIT"
] | null | null | null | performance/forms.py | linikerunk/tcc-people-analytics | fdda975682d5299c8384e31ebb974dc085330875 | [
"MIT"
] | 1 | 2020-10-11T10:09:39.000Z | 2020-10-11T10:09:39.000Z | performance/forms.py | linikerunk/TCC_PeopleAnalytics | fdda975682d5299c8384e31ebb974dc085330875 | [
"MIT"
] | null | null | null | """ This is a forms.py that helps to work on the payload of front-end """
from django import forms
from django.contrib.auth import get_user_model
from django.core.exceptions import ValidationError
from django.contrib.auth.models import User
from django.forms import ModelForm
from django.forms.models import inlineformse... | 27.638889 | 73 | 0.742714 | 319 | 0.320603 | 0 | 0 | 0 | 0 | 0 | 0 | 163 | 0.163819 |
d768dc679de8770bdc1267fbf48dedc2b6d9648d | 365 | py | Python | answers/Python/@oseme-techguy/03-word-in-reverse.py | Flipponachi/20-questions | a6ad9a468683646781426008e71dbb508e8e59bb | [
"MIT"
] | 1 | 2019-09-13T14:13:07.000Z | 2019-09-13T14:13:07.000Z | answers/Python/@oseme-techguy/03-word-in-reverse.py | Flipponachi/20-questions | a6ad9a468683646781426008e71dbb508e8e59bb | [
"MIT"
] | null | null | null | answers/Python/@oseme-techguy/03-word-in-reverse.py | Flipponachi/20-questions | a6ad9a468683646781426008e71dbb508e8e59bb | [
"MIT"
] | 1 | 2021-01-02T12:01:46.000Z | 2021-01-02T12:01:46.000Z | """
Solution to Word in Reverse
"""
if __name__ == '__main__':
while True:
word = input('Enter a word: ')
word = str(word)
i = len(word)
reversed_word = ''
while i > 0:
reversed_word += word[i - 1]
i -= 1
print('{reversed_wo... | 22.8125 | 71 | 0.493151 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 88 | 0.241096 |
d768fe73af1f8acf9182c2673f7840224b4e40d8 | 2,592 | py | Python | src/spooq2/spooq2_logger.py | rt-phb/Spooq | ef101dcb4239cee43f56497908fee63998eb5846 | [
"MIT"
] | null | null | null | src/spooq2/spooq2_logger.py | rt-phb/Spooq | ef101dcb4239cee43f56497908fee63998eb5846 | [
"MIT"
] | null | null | null | src/spooq2/spooq2_logger.py | rt-phb/Spooq | ef101dcb4239cee43f56497908fee63998eb5846 | [
"MIT"
] | null | null | null | """
Global Logger instance used by Spooq2.
Example
-------
>>> import logging
>>> logga = logging.getLogger("spooq2")
<logging.Logger at 0x7f5dc8eb2890>
>>> logga.info("Hello World")
[spooq2] 2020-03-21 23:55:48,253 INFO logging_example::<module>::4: Hello World
"""
import os
import sys
import logging
from spooq2._... | 27 | 124 | 0.631173 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1,673 | 0.645448 |
d769120bcdbd81031f2be3c1d9954eb83b339b6d | 3,610 | py | Python | tests/extra/math_ops_test.py | yaroslavvb/imperative | d08f08b4febc9005f7d91feaeb59ca18fbbca486 | [
"Apache-2.0"
] | 20 | 2016-10-05T20:23:15.000Z | 2021-07-10T03:56:40.000Z | tests/extra/math_ops_test.py | yaroslavvb/imperative | d08f08b4febc9005f7d91feaeb59ca18fbbca486 | [
"Apache-2.0"
] | 2 | 2016-10-05T22:43:26.000Z | 2016-10-12T01:16:11.000Z | tests/extra/math_ops_test.py | yaroslavvb/imperative | d08f08b4febc9005f7d91feaeb59ca18fbbca486 | [
"Apache-2.0"
] | 1 | 2017-10-31T09:18:51.000Z | 2017-10-31T09:18:51.000Z | # Copyright 2015 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... | 30.854701 | 80 | 0.652355 | 2,202 | 0.609972 | 0 | 0 | 0 | 0 | 0 | 0 | 829 | 0.22964 |
d7694bd9262436a2c11c4b2d8fb0ff233914d037 | 7,327 | py | Python | battlefortune/batchrunner.py | pfassina/BattleFortune | 3a985687f395d32c41f170a173db0b50c9c82fdd | [
"MIT"
] | 3 | 2019-06-21T01:37:50.000Z | 2021-03-24T16:56:49.000Z | battlefortune/batchrunner.py | pfassina/BattleFortune | 3a985687f395d32c41f170a173db0b50c9c82fdd | [
"MIT"
] | 6 | 2021-03-18T21:37:16.000Z | 2022-03-11T23:35:21.000Z | battlefortune/batchrunner.py | pfassina/BattleFortune | 3a985687f395d32c41f170a173db0b50c9c82fdd | [
"MIT"
] | null | null | null | import keyboard
from logparser import parselog, validate_log
import os
from psutil import process_iter
from pyautogui import click
import subprocess
from turnhandler import backupturn, clonegame, cleanturns, delete_log, delete_temp
import yaml
from time import sleep
import threading
import time
import win32gui
import w... | 26.9375 | 94 | 0.619763 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2,727 | 0.372084 |
d76a161827a2e2c2e3a71fbfaf612214e039ac3b | 1,188 | py | Python | preprocess.py | austinben/ECE470 | 05b6c4c8b41a2c1d634560a0e5ce6af5e4adbc3a | [
"MIT"
] | null | null | null | preprocess.py | austinben/ECE470 | 05b6c4c8b41a2c1d634560a0e5ce6af5e4adbc3a | [
"MIT"
] | null | null | null | preprocess.py | austinben/ECE470 | 05b6c4c8b41a2c1d634560a0e5ce6af5e4adbc3a | [
"MIT"
] | null | null | null | import numpy as np
import os
import cv2
import imutils
import numpy as np
from keras.preprocessing import image
from matplotlib import pyplot as plt
def crop_image(img):
#convert the images to greyscale and add a slight guassian blur
gray = cv2.cvtColor(img,cv2.COLOR_BGR2GRAY)
blurred = cv2.GaussianBlur(g... | 34.941176 | 86 | 0.686027 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 284 | 0.239057 |
d76b7aa3673d7e4fdedf5a1cdab205aa228b5775 | 3,444 | py | Python | tests/test_db_awssimpledb.py | gyrospectre/securitybot | 90db2ae532667c48ca080108b895c2e1fe16b1e8 | [
"Apache-2.0"
] | 3 | 2020-10-09T04:46:15.000Z | 2021-12-30T10:12:37.000Z | tests/test_db_awssimpledb.py | gyrospectre/securitybot | 90db2ae532667c48ca080108b895c2e1fe16b1e8 | [
"Apache-2.0"
] | null | null | null | tests/test_db_awssimpledb.py | gyrospectre/securitybot | 90db2ae532667c48ca080108b895c2e1fe16b1e8 | [
"Apache-2.0"
] | 1 | 2020-08-11T19:28:13.000Z | 2020-08-11T19:28:13.000Z | import unittest
from unittest.mock import MagicMock
from unittest.mock import patch
from securitybot.db.awssimpledb import DbClient
from securitybot.exceptions import DbException
SDB_CFG = {
'domain_prefix': 'secbot'
}
class TestChatProviderSlack(unittest.TestCase):
@patch('securitybot.db.awssimpledb.cli... | 32.186916 | 87 | 0.639082 | 3,213 | 0.932927 | 0 | 0 | 3,111 | 0.90331 | 0 | 0 | 719 | 0.208769 |
d76cb886459f15396940273045af583f04a800a8 | 1,759 | py | Python | src/waiting.py | aquova/bouncer | 9988b4f2a0e659e2d49fcc4e95815931b2e81670 | [
"MIT"
] | 5 | 2019-02-17T02:50:32.000Z | 2020-07-04T14:43:31.000Z | src/waiting.py | aquova/bouncer | 9988b4f2a0e659e2d49fcc4e95815931b2e81670 | [
"MIT"
] | 4 | 2019-02-16T23:37:40.000Z | 2020-07-03T14:54:17.000Z | src/waiting.py | aquova/bouncer | 9988b4f2a0e659e2d49fcc4e95815931b2e81670 | [
"MIT"
] | 2 | 2019-02-16T13:40:24.000Z | 2020-05-09T05:54:40.000Z | import datetime, discord
from dataclasses import dataclass
from commonbot.utils import getTimeDelta
@dataclass
class AnsweringMachineEntry:
name: str
timestamp: datetime
last_message: str
message_url: str
class AnsweringMachine:
def __init__(self):
self.waiting_list = {}
self.recen... | 30.327586 | 118 | 0.643547 | 1,644 | 0.934622 | 0 | 0 | 120 | 0.068221 | 916 | 0.52075 | 249 | 0.141558 |
d76d78b8f2dc7f9192fed4ce770d6fc94f87677e | 1,231 | py | Python | estimation/sample_z.py | yiruiliu110/eegnn | 253773c301681bb00b4789c34f48c82468ad16da | [
"MIT"
] | null | null | null | estimation/sample_z.py | yiruiliu110/eegnn | 253773c301681bb00b4789c34f48c82468ad16da | [
"MIT"
] | null | null | null | estimation/sample_z.py | yiruiliu110/eegnn | 253773c301681bb00b4789c34f48c82468ad16da | [
"MIT"
] | null | null | null | """
this script contains the function to compute z from sparse v , pi and w
"""
import torch
from estimation.truncated_poisson import TruncatedPoisson
def compute_z(log_w: torch.tensor, pi: torch.sparse, c: torch.sparse):
"""
This function computes the class indicators given cluster proportion vector pi and ... | 41.033333 | 152 | 0.727051 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 464 | 0.376929 |
d76d863e3b44be2672e1cb5cd88dd7bc048a830a | 446 | py | Python | test3/routes/MainRoute.py | Ca11MeE/dophon | 6737b0f0dc9ec2c2229865940c3c6d6ee326fc28 | [
"Apache-2.0"
] | 1 | 2018-08-13T09:57:34.000Z | 2018-08-13T09:57:34.000Z | test3/routes/MainRoute.py | Ca11MeE/dophon | 6737b0f0dc9ec2c2229865940c3c6d6ee326fc28 | [
"Apache-2.0"
] | null | null | null | test3/routes/MainRoute.py | Ca11MeE/dophon | 6737b0f0dc9ec2c2229865940c3c6d6ee326fc28 | [
"Apache-2.0"
] | null | null | null | from dophon import *
from dophon.annotation import *
app = blue_print('main', __name__,url_prefix='/main')
@RequestMapping('/', ['get'])
@ResponseTemplate(['index.html'])
def index():
return {}
@GetRoute('/get')
@ResponseTemplate(['index.html'])
def get_index():
return {}
@PostRoute('/post')
@ResponseTe... | 14.866667 | 53 | 0.656951 | 0 | 0 | 0 | 0 | 325 | 0.7287 | 0 | 0 | 82 | 0.183857 |
d76db77d529fe9e5f197cd3b9a8d53a6b929a6d0 | 17,179 | py | Python | paint_program.py | nick-tkachov/paint-program | 80b657acfe9c63dd62a8d93927255490b55372ed | [
"MIT"
] | null | null | null | paint_program.py | nick-tkachov/paint-program | 80b657acfe9c63dd62a8d93927255490b55372ed | [
"MIT"
] | null | null | null | paint_program.py | nick-tkachov/paint-program | 80b657acfe9c63dd62a8d93927255490b55372ed | [
"MIT"
] | null | null | null | # ---------------------------------------------------------------------------------------------------#
# Program Name: PAINT PROGRAM OOP ASSIGNMENT
# Programmer: Nick Tkachov
# Date: November 20, 2017
# Input: Options at the beginning of the game allow user to select SMALL,MEDIUM,LARGE grid sizes,
# and ... | 38.691441 | 163 | 0.560917 | 7,984 | 0.464753 | 0 | 0 | 0 | 0 | 0 | 0 | 4,674 | 0.272076 |
d76f76f73a1b4d94c460fbf42b33ff78ab858a28 | 8,668 | py | Python | Pcolor_Peaks.py | nchaparr/Sam_Output_Anls | c6736f7863b36d09738ac95b7cbde19ba69526cf | [
"MIT"
] | null | null | null | Pcolor_Peaks.py | nchaparr/Sam_Output_Anls | c6736f7863b36d09738ac95b7cbde19ba69526cf | [
"MIT"
] | 1 | 2015-04-18T14:47:49.000Z | 2015-05-01T21:51:44.000Z | Pcolor_Peaks.py | nchaparr/Sam_Output_Anls | c6736f7863b36d09738ac95b7cbde19ba69526cf | [
"MIT"
] | null | null | null | from __future__ import division
from netCDF4 import Dataset
import glob,os.path
import numpy as np
import numpy.ma as ma
from scipy.interpolate import UnivariateSpline
from matplotlib import cm
from matplotlib import ticker
import matplotlib.pyplot as plt
#import site
#site.addsitedir('/tera/phil/nchaparr/SAM2/sam_main... | 40.12963 | 210 | 0.53311 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1,972 | 0.227503 |