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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
e3af0c54fc348474f9b9d9f22f0f2e2bbfffd5d0 | 4,049 | py | Python | Dragon/python/dragon/vm/tensorflow/contrib/learn/datasets/base.py | neopenx/Dragon | 0e639a7319035ddc81918bd3df059230436ee0a1 | [
"BSD-2-Clause"
] | 212 | 2015-07-05T07:57:17.000Z | 2022-02-27T01:55:35.000Z | Dragon/python/dragon/vm/tensorflow/contrib/learn/datasets/base.py | neopenx/Dragon | 0e639a7319035ddc81918bd3df059230436ee0a1 | [
"BSD-2-Clause"
] | 6 | 2016-07-07T14:31:56.000Z | 2017-12-12T02:21:15.000Z | Dragon/python/dragon/vm/tensorflow/contrib/learn/datasets/base.py | neopenx/Dragon | 0e639a7319035ddc81918bd3df059230436ee0a1 | [
"BSD-2-Clause"
] | 71 | 2016-03-24T09:02:41.000Z | 2021-06-03T01:52:41.000Z | # Copyright 2016 The TensorFlow Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applica... | 32.918699 | 80 | 0.637935 | 0 | 0 | 1,840 | 0.454433 | 170 | 0.041986 | 0 | 0 | 2,043 | 0.504569 |
e3afe486c89ac3a00730c37ba0aa5141f39fe3fe | 97 | py | Python | test/integration/steps/pds.py | NHSDigital/list-reconciliation | 37b1ebe99a64275e23b0e7fb6a89415b92d14306 | [
"MIT"
] | 4 | 2021-06-25T08:28:54.000Z | 2021-12-16T11:03:42.000Z | test/integration/steps/pds.py | NHSDigital/list-reconciliation | 37b1ebe99a64275e23b0e7fb6a89415b92d14306 | [
"MIT"
] | 184 | 2021-06-24T15:27:08.000Z | 2022-03-17T12:44:28.000Z | test/integration/steps/pds.py | NHSDigital/list-reconciliation | 37b1ebe99a64275e23b0e7fb6a89415b92d14306 | [
"MIT"
] | 3 | 2021-11-05T10:21:44.000Z | 2022-03-04T14:29:24.000Z | from behave import given
@given("we have processed PDS data")
def step_impl(context):
pass
| 13.857143 | 36 | 0.731959 | 0 | 0 | 0 | 0 | 69 | 0.71134 | 0 | 0 | 28 | 0.28866 |
e3b045a473bd87ba50f0bc065652bd367fcdfb8d | 19,208 | py | Python | iSearch/isearch.py | Twilightgo/iSearch | 600398dc22c07ef1211209769f9fda4d2c1151d7 | [
"MIT"
] | null | null | null | iSearch/isearch.py | Twilightgo/iSearch | 600398dc22c07ef1211209769f9fda4d2c1151d7 | [
"MIT"
] | null | null | null | iSearch/isearch.py | Twilightgo/iSearch | 600398dc22c07ef1211209769f9fda4d2c1151d7 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
from __future__ import print_function, unicode_literals
import sys
import argparse
import os
import re
import sqlite3
import requests
import bs4
from termcolor import colored
# Python2 compatibility
if sys.version_info[0] == 2:
reload(sys)
sys.setdefaultencoding('utf-8')
# Default data... | 32.834188 | 112 | 0.508434 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 5,633 | 0.289406 |
e3b0cc4b1724b29973099266d87959c7fe603cf2 | 108 | wsgi | Python | mysite/auth.wsgi | biljiang/mysite | 15c0a0d7bb6bd46587f4cf805ce43f4c570de1be | [
"BSD-3-Clause"
] | null | null | null | mysite/auth.wsgi | biljiang/mysite | 15c0a0d7bb6bd46587f4cf805ce43f4c570de1be | [
"BSD-3-Clause"
] | null | null | null | mysite/auth.wsgi | biljiang/mysite | 15c0a0d7bb6bd46587f4cf805ce43f4c570de1be | [
"BSD-3-Clause"
] | null | null | null | def groups_for_user(environ, user):
if user == 'feng':
return ['secret-agents']
return ['']
| 21.6 | 35 | 0.583333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 23 | 0.212963 |
e3b1ad3f8a41b03310d872dbf885d93f88101fcf | 4,925 | py | Python | models/gcn.py | Louis-udm/Word-Grounded-Graph-Convolutional-Network | 4c90bff0ec8bcdd8994154eead0efb5a3caefca7 | [
"MIT"
] | null | null | null | models/gcn.py | Louis-udm/Word-Grounded-Graph-Convolutional-Network | 4c90bff0ec8bcdd8994154eead0efb5a3caefca7 | [
"MIT"
] | null | null | null | models/gcn.py | Louis-udm/Word-Grounded-Graph-Convolutional-Network | 4c90bff0ec8bcdd8994154eead0efb5a3caefca7 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
# -*- coding: utf-8 -*-
"""Title: GCN models
Description:
The original Graph convolutional network model and GCN layer.
Refer to: https://arxiv.org/abs/1609.02907
"""
# =======================================
# @author Zhibin.Lu
# @email [email protected]
# ==============================... | 24.502488 | 72 | 0.520406 | 4,437 | 0.900914 | 0 | 0 | 0 | 0 | 0 | 0 | 932 | 0.189239 |
e3b1ba519d604af495caccc117a36b3a9bff6079 | 2,513 | py | Python | tabledefinition/generate_table_definitions_for_solana.py | blockchain-etl/evmchain-etl-table-definition-cli | 033d7e8ddc33f47378547a304b2688df3a0a3746 | [
"MIT"
] | 1 | 2022-03-04T11:24:31.000Z | 2022-03-04T11:24:31.000Z | tabledefinition/generate_table_definitions_for_solana.py | blockchain-etl/evmchain-etl-table-definition-cli | 033d7e8ddc33f47378547a304b2688df3a0a3746 | [
"MIT"
] | null | null | null | tabledefinition/generate_table_definitions_for_solana.py | blockchain-etl/evmchain-etl-table-definition-cli | 033d7e8ddc33f47378547a304b2688df3a0a3746 | [
"MIT"
] | null | null | null | SOLIDITY_TO_BQ_TYPES = {
'address': 'STRING',
}
table_description = ''
def abi_to_table_definitions_for_solana(
abi,
dataset_name,
contract_name,
contract_address=None,
include_functions=False
):
result = {}
for a in abi.get('events') if abi.get('events') else []:
... | 32.217949 | 119 | 0.578591 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 507 | 0.201751 |
e3b286c18d71e706ee97d4e448587e741b1515a4 | 587 | py | Python | number-guessing-game.py | DataSciPyCodes/Python-Projects | 0c62477f2177d6ec7431875da6aa53778a790bf6 | [
"MIT"
] | null | null | null | number-guessing-game.py | DataSciPyCodes/Python-Projects | 0c62477f2177d6ec7431875da6aa53778a790bf6 | [
"MIT"
] | null | null | null | number-guessing-game.py | DataSciPyCodes/Python-Projects | 0c62477f2177d6ec7431875da6aa53778a790bf6 | [
"MIT"
] | null | null | null | #Method-1 guess the number game
import random
number = random.randint(1,10)
guess = 0
count = 0
print("You can exit the game anytime. Just enter 'exit'.")
while guess != number and guess != "exit":
guess = input("Guess a number between 1 to 10 :- ")
if guess == "exit":
print("Closing the game...")
... | 23.48 | 58 | 0.577513 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 228 | 0.388416 |
e3b312bcfe15753efff73463e7b650e5bc126303 | 10,014 | py | Python | docking/dock_and_equilibrate.py | proteneer/timemachine | feee9f24adcb533ab9e1c15a3f4fa4dcc9d9a701 | [
"Apache-2.0"
] | 91 | 2019-01-05T17:03:04.000Z | 2022-03-11T09:08:46.000Z | docking/dock_and_equilibrate.py | proteneer/timemachine | feee9f24adcb533ab9e1c15a3f4fa4dcc9d9a701 | [
"Apache-2.0"
] | 474 | 2019-01-07T14:33:15.000Z | 2022-03-31T19:15:12.000Z | docking/dock_and_equilibrate.py | proteneer/timemachine | feee9f24adcb533ab9e1c15a3f4fa4dcc9d9a701 | [
"Apache-2.0"
] | 12 | 2019-01-13T00:40:36.000Z | 2022-01-14T10:23:54.000Z | """Solvates a host, inserts guest(s) into solvated host, equilibrates
"""
import os
import time
import tempfile
import numpy as np
from rdkit import Chem
from md import builders, minimizer
from fe import pdb_writer, free_energy
from ff import Forcefield
from ff.handlers.deserialize import deserialize_handlers
from t... | 33.049505 | 105 | 0.603056 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3,142 | 0.313761 |
e3b3a2b9c400072459039396551edf7edb2673da | 5,552 | py | Python | Lessons/source/bases.py | ericanaglik/cs13 | 6dc2dd41e0b82a43999145b226509d8fc0adb366 | [
"MIT"
] | null | null | null | Lessons/source/bases.py | ericanaglik/cs13 | 6dc2dd41e0b82a43999145b226509d8fc0adb366 | [
"MIT"
] | 8 | 2019-04-26T06:29:56.000Z | 2019-08-17T01:48:07.000Z | Lessons/source/bases.py | ericanaglik/cs13 | 6dc2dd41e0b82a43999145b226509d8fc0adb366 | [
"MIT"
] | null | null | null | #!python
import string
# Hint: Use these string constants to encode/decode hexadecimal digits and more
# string.digits is '0123456789'
# string.hexdigits is '0123456789abcdefABCDEF'
# string.ascii_lowercase is 'abcdefghijklmnopqrstuvwxyz'
# string.ascii_uppercase is 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'
# string.ascii_letters ... | 36.287582 | 328 | 0.600865 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3,059 | 0.550973 |
e3b3eb4f092c715b7640f0a297086182d40badaa | 3,667 | py | Python | ecl/provider_connectivity/v2/address_assignment.py | keiichi-hikita/eclsdk | c43afb982fd54eb1875cdc22d46044644d804c4a | [
"Apache-2.0"
] | null | null | null | ecl/provider_connectivity/v2/address_assignment.py | keiichi-hikita/eclsdk | c43afb982fd54eb1875cdc22d46044644d804c4a | [
"Apache-2.0"
] | null | null | null | ecl/provider_connectivity/v2/address_assignment.py | keiichi-hikita/eclsdk | c43afb982fd54eb1875cdc22d46044644d804c4a | [
"Apache-2.0"
] | null | null | null | # -*- coding: utf-8 -*-
from ecl.provider_connectivity import provider_connectivity_service
from ecl import resource2
from ecl.network.v2 import network
from ecl.network.v2 import subnet
import hashlib
class AddressAssignment(resource2.Resource):
resources_key = "address_assignments"
resource_key = "address_... | 32.166667 | 79 | 0.648487 | 3,454 | 0.941914 | 0 | 0 | 436 | 0.118898 | 0 | 0 | 1,124 | 0.306518 |
e3b455062720d39836f878d513bb8f75e9ad6e80 | 675 | py | Python | tests/test_gifGenerator.py | wmokrogulski/gifGenerator | fa2b36d082e32f310583935a361d7b7a2bf29fe6 | [
"MIT"
] | null | null | null | tests/test_gifGenerator.py | wmokrogulski/gifGenerator | fa2b36d082e32f310583935a361d7b7a2bf29fe6 | [
"MIT"
] | 2 | 2021-12-23T11:01:14.000Z | 2022-03-12T01:01:15.000Z | tests/test_gifGenerator.py | wmokrogulski/gifGenerator | fa2b36d082e32f310583935a361d7b7a2bf29fe6 | [
"MIT"
] | null | null | null | import unittest
from unittest import TestCase
from src.gifGenerator import GifGenerator
class TestGifGenerator(TestCase):
def setUp(self) -> None:
self.gg = GifGenerator()
def test_set_text_position(self):
position = (50, 90)
self.gg.setTextPosition(position)
self.assertEqua... | 20.454545 | 57 | 0.666667 | 534 | 0.791111 | 0 | 0 | 0 | 0 | 0 | 0 | 27 | 0.04 |
e3b8997cfd0dae36bdb5f953799806c281136e2c | 9,915 | py | Python | PSP/GAME/Python/python/bsddb/test/test_dbshelve.py | TheMindVirus/pspy | e9d1bba4f6b7486c3010bede93d88afdfc036492 | [
"MIT"
] | 7 | 2015-04-06T15:17:13.000Z | 2020-10-21T04:57:00.000Z | PSP/GAME/Python/python/bsddb/test/test_dbshelve.py | TheMindVirus/pspy | e9d1bba4f6b7486c3010bede93d88afdfc036492 | [
"MIT"
] | 1 | 2021-04-11T15:01:12.000Z | 2021-04-11T15:01:12.000Z | PSP/GAME/Python/python/bsddb/test/test_dbshelve.py | TheMindVirus/pspy | e9d1bba4f6b7486c3010bede93d88afdfc036492 | [
"MIT"
] | 4 | 2016-05-16T17:53:08.000Z | 2020-11-28T17:18:50.000Z | """
TestCases for checking dbShelve objects.
"""
import sys, os, string
import tempfile, random
from pprint import pprint
from types import *
import unittest
try:
# For Pythons w/distutils pybsddb
from bsddb3 import db, dbshelve
except ImportError:
# For Python 2.3
from bsddb import db, dbshelve
from... | 27.618384 | 79 | 0.558548 | 8,279 | 0.834997 | 0 | 0 | 0 | 0 | 0 | 0 | 1,557 | 0.157035 |
e3b8e41843e13fa56ad91af90735c93477b63c0f | 2,940 | py | Python | lib/pyexcel/pyexcel/sources/file_source_output.py | logice/QQ-Groups-Spider | a161282c6832ed40183905e96205edb5a57e8a05 | [
"MIT"
] | null | null | null | lib/pyexcel/pyexcel/sources/file_source_output.py | logice/QQ-Groups-Spider | a161282c6832ed40183905e96205edb5a57e8a05 | [
"MIT"
] | null | null | null | lib/pyexcel/pyexcel/sources/file_source_output.py | logice/QQ-Groups-Spider | a161282c6832ed40183905e96205edb5a57e8a05 | [
"MIT"
] | 1 | 2021-04-12T07:48:42.000Z | 2021-04-12T07:48:42.000Z | """
pyexcel.sources.file
~~~~~~~~~~~~~~~~~~~
Representation of file sources
:copyright: (c) 2015-2016 by Onni Software Ltd.
:license: New BSD License
"""
from pyexcel import params
from pyexcel.factory import FileSource
from pyexcel.sources.rendererfactory import RendererFactory
from... | 27.735849 | 76 | 0.618707 | 2,194 | 0.746259 | 0 | 0 | 214 | 0.072789 | 0 | 0 | 465 | 0.158163 |
e3b964ad8299bef44ea12f1a518924e1fbba8289 | 920 | py | Python | setup.py | vmyrgiotis/MDF_DALEC_Grass | fdd168ce7845c925f8e95fc792e2204b440cca2e | [
"CC0-1.0"
] | null | null | null | setup.py | vmyrgiotis/MDF_DALEC_Grass | fdd168ce7845c925f8e95fc792e2204b440cca2e | [
"CC0-1.0"
] | null | null | null | setup.py | vmyrgiotis/MDF_DALEC_Grass | fdd168ce7845c925f8e95fc792e2204b440cca2e | [
"CC0-1.0"
] | null | null | null | import pathlib
from setuptools import setup, find_packages
HERE = pathlib.Path(__file__).parent
VERSION = '0.1.0'
PACKAGE_NAME = 'MDF_DALEC_GRASS'
AUTHOR = 'Vasilis Myrgiotis'
AUTHOR_EMAIL = '[email protected]'
URL = 'https://github.com/vmyrgiotis/MDF_DALEC_GRASS'
LICENSE = 'MIT'
DESCRIPTION = 'A Bayesian model-da... | 28.75 | 117 | 0.773913 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 327 | 0.355435 |
e3ba2aa1467f1469e9c62d6360d6ba267f4c6b98 | 752 | py | Python | setup.py | guma44/croo | 5cddee4c3163698cd9f265638e76671fef415baa | [
"MIT"
] | null | null | null | setup.py | guma44/croo | 5cddee4c3163698cd9f265638e76671fef415baa | [
"MIT"
] | null | null | null | setup.py | guma44/croo | 5cddee4c3163698cd9f265638e76671fef415baa | [
"MIT"
] | null | null | null | import setuptools
from croo import croo_args
with open('README.md', 'r') as fh:
long_description = fh.read()
setuptools.setup(
name='croo',
version=croo_args.__version__,
scripts=['bin/croo'],
python_requires='>3.4.1',
author='Jin Lee',
author_email='[email protected]',
description='CR... | 28.923077 | 68 | 0.666223 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 280 | 0.37234 |
e3bc8d2fb6f6907f9468220745bf4d9d7f0ccd81 | 5,142 | py | Python | source/estimators/estimator.py | mingweima/rldsge | ad40af982f455b65c5f407f6aa082e4caf7322a6 | [
"MIT"
] | null | null | null | source/estimators/estimator.py | mingweima/rldsge | ad40af982f455b65c5f407f6aa082e4caf7322a6 | [
"MIT"
] | null | null | null | source/estimators/estimator.py | mingweima/rldsge | ad40af982f455b65c5f407f6aa082e4caf7322a6 | [
"MIT"
] | null | null | null | from typing import Dict
import numpy as np
from ..envs.env import StructuralModel
from ..utils.lik_func import *
from ..utils.useful_class import ParameterGrid
class Estimator(ABC):
"""An Estimator takes in a (trained) solver and relevant params
and outputs estimated structural params
"""
def __... | 42.495868 | 112 | 0.632828 | 4,801 | 0.933683 | 0 | 0 | 916 | 0.178141 | 0 | 0 | 1,330 | 0.258654 |
e3bd47079e9b2036b424cb4e9c92e2174a230006 | 1,269 | py | Python | Algorithm.Python/OptionDataNullReferenceRegressionAlgorithm.py | BlackBoxAM/Lean | 5ea9f04b104d27f0fcfe3a383a3a60ca12206d99 | [
"Apache-2.0"
] | 6,580 | 2015-01-12T16:48:44.000Z | 2022-03-31T22:05:09.000Z | Algorithm.Python/OptionDataNullReferenceRegressionAlgorithm.py | BlackBoxAM/Lean | 5ea9f04b104d27f0fcfe3a383a3a60ca12206d99 | [
"Apache-2.0"
] | 3,392 | 2015-01-12T17:44:07.000Z | 2022-03-30T20:34:03.000Z | Algorithm.Python/OptionDataNullReferenceRegressionAlgorithm.py | BlackBoxAM/Lean | 5ea9f04b104d27f0fcfe3a383a3a60ca12206d99 | [
"Apache-2.0"
] | 3,354 | 2015-01-12T16:58:31.000Z | 2022-03-31T00:56:03.000Z | # QUANTCONNECT.COM - Democratizing Finance, Empowering Individuals.
# Lean Algorithmic Trading Engine v2.0. Copyright 2014 QuantConnect 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 Licen... | 37.323529 | 98 | 0.735225 | 449 | 0.353822 | 0 | 0 | 0 | 0 | 0 | 0 | 783 | 0.617021 |
e3bda12509b429c895c643f26b992aa471887764 | 1,371 | py | Python | examples/sharedlinks/sharedlinks-backend/links/models.py | gcbirzan/django-rest-registration | 1a9da937c283d03d1fce1a68322a702e14692c79 | [
"MIT"
] | 329 | 2018-05-09T13:10:37.000Z | 2022-03-25T11:05:20.000Z | examples/sharedlinks/sharedlinks-backend/links/models.py | gcbirzan/django-rest-registration | 1a9da937c283d03d1fce1a68322a702e14692c79 | [
"MIT"
] | 167 | 2018-04-21T00:28:17.000Z | 2022-03-30T09:24:52.000Z | examples/sharedlinks/sharedlinks-backend/links/models.py | gcbirzan/django-rest-registration | 1a9da937c283d03d1fce1a68322a702e14692c79 | [
"MIT"
] | 97 | 2018-05-09T14:17:59.000Z | 2022-02-23T08:46:30.000Z | from django.db import models
from django.contrib.auth.models import User
class Link(models.Model):
url = models.URLField()
title = models.CharField(max_length=255)
reporter = models.ForeignKey(
User,
on_delete=models.SET_NULL,
related_name='reported_links',
null=True,
... | 23.637931 | 68 | 0.592268 | 1,292 | 0.942378 | 0 | 0 | 0 | 0 | 0 | 0 | 144 | 0.105033 |
e3bdcff4bd778ceff3ed0e2ca2a1821228f999c6 | 7,106 | py | Python | hpc_rll/rl_utils/ppo.py | mingzhang96/DI-hpc | 5431c283a91b77df7c6a86fb0affa60099d4bb31 | [
"Apache-2.0"
] | 64 | 2021-07-08T02:18:08.000Z | 2022-02-28T09:52:57.000Z | hpc_rll/rl_utils/ppo.py | mingzhang96/DI-hpc | 5431c283a91b77df7c6a86fb0affa60099d4bb31 | [
"Apache-2.0"
] | null | null | null | hpc_rll/rl_utils/ppo.py | mingzhang96/DI-hpc | 5431c283a91b77df7c6a86fb0affa60099d4bb31 | [
"Apache-2.0"
] | 3 | 2021-07-14T08:58:45.000Z | 2022-03-30T12:36:46.000Z | import torch
import torch.nn.functional as F
from typing import Optional
from collections import namedtuple
import hpc_rl_utils
# hpc version only support cuda
hpc_ppo_loss = namedtuple('hpc_ppo_loss', ['policy_loss', 'value_loss', 'entropy_loss'])
hpc_ppo_info = namedtuple('hpc_ppo_info', ['approx_kl', 'clipfrac'])
... | 47.373333 | 192 | 0.659161 | 6,781 | 0.954264 | 0 | 0 | 1,954 | 0.274979 | 0 | 0 | 2,450 | 0.344779 |
e3be7a53e508b992ad117b38ccc98afaeeef9017 | 1,069 | py | Python | src/monitoring_service/metrics.py | netcriptus/raiden-services | 3955d91852c616f6ba0a3a979757edbd852b2c6d | [
"MIT"
] | 13 | 2019-02-07T23:23:33.000Z | 2021-07-03T16:00:53.000Z | src/monitoring_service/metrics.py | netcriptus/raiden-services | 3955d91852c616f6ba0a3a979757edbd852b2c6d | [
"MIT"
] | 1,095 | 2019-01-21T09:30:57.000Z | 2022-03-25T05:13:30.000Z | src/monitoring_service/metrics.py | netcriptus/raiden-services | 3955d91852c616f6ba0a3a979757edbd852b2c6d | [
"MIT"
] | 18 | 2019-01-21T09:17:19.000Z | 2022-02-23T15:53:17.000Z | from prometheus_client import Counter
from raiden.utils.typing import TokenAmount
from raiden_libs.metrics import ( # noqa: F401, pylint: disable=unused-import
ERRORS_LOGGED,
EVENTS_EXCEPTIONS_RAISED,
EVENTS_PROCESSING_TIME,
MESSAGES_EXCEPTIONS_RAISED,
MESSAGES_PROCESSING_TIME,
REGISTRY,
E... | 25.452381 | 78 | 0.750234 | 55 | 0.05145 | 0 | 0 | 0 | 0 | 0 | 0 | 225 | 0.210477 |
e3be9c37370787ab104874a6e05f24ddb94436e5 | 9,774 | py | Python | helper/fetch_funcdata.py | SysSec-KAIST/FirmKit | 6d8408e1336ed0b5d42d9722e0918888b3f3b424 | [
"MIT"
] | 3 | 2022-01-05T22:04:09.000Z | 2022-03-28T07:01:48.000Z | helper/fetch_funcdata.py | SysSec-KAIST/FirmKit | 6d8408e1336ed0b5d42d9722e0918888b3f3b424 | [
"MIT"
] | null | null | null | helper/fetch_funcdata.py | SysSec-KAIST/FirmKit | 6d8408e1336ed0b5d42d9722e0918888b3f3b424 | [
"MIT"
] | null | null | null | # modified from TikNib/tiknib/ida/fetch_funcdata_v7.5.py
import os
import sys
import string
from hashlib import sha1
from collections import defaultdict
import time
import pprint as pp
import idautils
import idc
import idaapi
import ida_pro
import ida_nalt
import ida_bytes
sys.path.append(os.path.... | 34.294737 | 89 | 0.561797 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1,697 | 0.173624 |
e3c3ec76a20176afe22ba2e37b489b70bdc6e8aa | 20,109 | py | Python | AwesomeService/coveo-blitz-thrift/src/main/python/awesome/AwesomeService.py | coveord/Blitz-2015 | 9d8a0fbc3b4ca7cfdce9a3aea0efec205070e946 | [
"Apache-2.0"
] | 4 | 2015-01-13T00:27:20.000Z | 2015-01-19T21:21:18.000Z | AwesomeService/coveo-blitz-thrift/src/main/python/awesome/AwesomeService.py | Coveo/Blitz-2015 | 9d8a0fbc3b4ca7cfdce9a3aea0efec205070e946 | [
"Apache-2.0"
] | null | null | null | AwesomeService/coveo-blitz-thrift/src/main/python/awesome/AwesomeService.py | Coveo/Blitz-2015 | 9d8a0fbc3b4ca7cfdce9a3aea0efec205070e946 | [
"Apache-2.0"
] | 1 | 2016-03-11T18:35:02.000Z | 2016-03-11T18:35:02.000Z | #
# Autogenerated by Thrift Compiler (0.9.2)
#
# DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
#
# options string: py
#
from thrift.Thrift import TType, TMessageType, TException, TApplicationException
from ttypes import *
from thrift.Thrift import TProcessor
from thrift.transport import TTransport
... | 28.892241 | 188 | 0.675369 | 19,599 | 0.974638 | 0 | 0 | 0 | 0 | 0 | 0 | 1,319 | 0.065593 |
e3c455dcd759b47e6ff022d0f28b6d8b03f6c49a | 10,382 | py | Python | src/org_setup/resources/organizations.py | gilyas/aws-control-tower-org-setup-sample | 65c1a1a0c7b7bb362dff1924f38f63bd8c3a8e41 | [
"MIT-0"
] | null | null | null | src/org_setup/resources/organizations.py | gilyas/aws-control-tower-org-setup-sample | 65c1a1a0c7b7bb362dff1924f38f63bd8c3a8e41 | [
"MIT-0"
] | null | null | null | src/org_setup/resources/organizations.py | gilyas/aws-control-tower-org-setup-sample | 65c1a1a0c7b7bb362dff1924f38f63bd8c3a8e41 | [
"MIT-0"
] | null | null | null | #!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: MIT-0
*
* 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... | 37.345324 | 119 | 0.573974 | 8,987 | 0.865633 | 0 | 0 | 283 | 0.027259 | 0 | 0 | 3,803 | 0.366307 |
e3c4a465fcdd23d8bc979d0237347d3db4337947 | 2,095 | py | Python | clint/textui/core.py | mpmman/clint | 9d3693d644b8587d985972b6075d970096f6439e | [
"0BSD"
] | 1,230 | 2015-01-03T05:39:25.000Z | 2020-02-18T12:36:03.000Z | clint/textui/core.py | not-kennethreitz/clint | 9d3693d644b8587d985972b6075d970096f6439e | [
"0BSD"
] | 50 | 2015-01-06T17:58:20.000Z | 2018-03-19T13:25:22.000Z | clint/textui/core.py | not-kennethreitz/clint | 9d3693d644b8587d985972b6075d970096f6439e | [
"0BSD"
] | 153 | 2015-01-03T03:56:25.000Z | 2020-02-13T20:59:03.000Z | # -*- coding: utf-8 -*-
"""
clint.textui.core
~~~~~~~~~~~~~~~~~
Core TextUI functionality for Puts/Indent/Writer.
"""
from __future__ import absolute_import
import sys
from contextlib import contextmanager
from .formatters import max_width, min_width, _get_max_width_context
from .cols import columns
from ..util... | 21.822917 | 74 | 0.602864 | 0 | 0 | 114 | 0.054415 | 130 | 0.062053 | 0 | 0 | 575 | 0.274463 |
e3c6cfd741e8bd9adaeac0bf0d16ec2396131aa6 | 636 | py | Python | setup.py | mluciarr/McComplex | e83b5d11ab772a6bdc6233d318f7da5f67b3c5ce | [
"MIT"
] | null | null | null | setup.py | mluciarr/McComplex | e83b5d11ab772a6bdc6233d318f7da5f67b3c5ce | [
"MIT"
] | null | null | null | setup.py | mluciarr/McComplex | e83b5d11ab772a6bdc6233d318f7da5f67b3c5ce | [
"MIT"
] | 1 | 2021-04-14T22:43:33.000Z | 2021-04-14T22:43:33.000Z | #!/usr/bin/env python
from distutils.core import setup
import setuptools
setup(name='McComplex',
version='1.0',
description="""This program reconstructs macrocomplexes of protein-protein
and protein-(DNA/RNA) from a list of files of binary interactions of its chains""",
author='Maria Lucía Romero, Ferran Pegena... | 37.411765 | 84 | 0.748428 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 425 | 0.66719 |
e3c83e726d786e7b9f87a1f14f06ff2aa47d4a9b | 1,277 | py | Python | pymitools/girder/metadataPresets.py | chapmanbe/pymitools | be0f4a3f56dd6c8bb89678368c49e09b3333232c | [
"Apache-2.0"
] | null | null | null | pymitools/girder/metadataPresets.py | chapmanbe/pymitools | be0f4a3f56dd6c8bb89678368c49e09b3333232c | [
"Apache-2.0"
] | null | null | null | pymitools/girder/metadataPresets.py | chapmanbe/pymitools | be0f4a3f56dd6c8bb89678368c49e09b3333232c | [
"Apache-2.0"
] | null | null | null | """Metadata presets for commonly used keywords."""
presets = {
chest : {"Anatomical Region":
{"ID": "0001443",
"Name": "chest",
"Ontology Acronym": "UBERON",
"Ontology Name": "Uber Anatomy Ontology",
"Resource URL":
"http://pur... | 29.697674 | 66 | 0.473767 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 730 | 0.571652 |
e3c99e6c753a7603c000c4cebf8d2e0f312189b5 | 901 | py | Python | data/colors-extractor.py | imlolman/Flat-UI-Colors-Chrome-App | d12010360dfeb1d38e8923dbe0fa5c51640b7314 | [
"BSD-Source-Code"
] | 1 | 2021-04-23T13:33:16.000Z | 2021-04-23T13:33:16.000Z | data/colors-extractor.py | imlolman/Flat-UI-Colors-Chrome-App | d12010360dfeb1d38e8923dbe0fa5c51640b7314 | [
"BSD-Source-Code"
] | null | null | null | data/colors-extractor.py | imlolman/Flat-UI-Colors-Chrome-App | d12010360dfeb1d38e8923dbe0fa5c51640b7314 | [
"BSD-Source-Code"
] | null | null | null | from bs4 import BeautifulSoup
import json
source = open('html-source.html', encoding="utf8").read()
soup = BeautifulSoup(source, 'html.parser')
# Prittified to look and understand the structure of Code
# prittified = soup.prettify().encode("utf-8")
# open('prettified.html', 'wb').write(prittified)
color_sets = []
... | 32.178571 | 71 | 0.627081 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 424 | 0.470588 |
e3ca5e822898bbe283aa33628cdf89af94b959cf | 2,005 | py | Python | preprocessing.py | Y-greatigr/Covid19_Model | 30fc0af1ac6c7f68bf072607ee0db194f8c8093a | [
"MIT"
] | null | null | null | preprocessing.py | Y-greatigr/Covid19_Model | 30fc0af1ac6c7f68bf072607ee0db194f8c8093a | [
"MIT"
] | null | null | null | preprocessing.py | Y-greatigr/Covid19_Model | 30fc0af1ac6c7f68bf072607ee0db194f8c8093a | [
"MIT"
] | null | null | null | # 데이터를 가져온다.
# 학습 직전의 데이터를 가공하는 역할을 맡는다.
import numpy as np
import os
import options as opt
import datetime
from sklearn.model_selection import train_test_split
from sklearn.preprocessing import Normalizer
import joblib
def date_to_number(date):
# 글자로 표현된 날짜를 숫자로 바꾼다.
# ex) 'Dec/1' -> '12/1'
... | 28.642857 | 98 | 0.551122 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 616 | 0.281664 |
e3cac54ed59276bd1cf21b47cfa19280c29a0b7c | 20,168 | py | Python | colorpy/colorpy-0.1.0/illuminants.py | gmweir/QuasiOptics | 0974178984f845597c5209217613c26edf931ed0 | [
"MIT"
] | 1 | 2020-11-06T18:16:00.000Z | 2020-11-06T18:16:00.000Z | colorpy/colorpy-0.1.1/illuminants.py | gmweir/QuasiOptics | 0974178984f845597c5209217613c26edf931ed0 | [
"MIT"
] | null | null | null | colorpy/colorpy-0.1.1/illuminants.py | gmweir/QuasiOptics | 0974178984f845597c5209217613c26edf931ed0 | [
"MIT"
] | null | null | null | '''
illuminants.py - Definitions of some standard illuminants.
Description:
Illuminants are spectrums, normalized so that Y = 1.0.
Spectrums are 2D numpy arrays, with one row for each wavelength,
with the first column holding the wavelength in nm, and the
second column the intensity.
The spectrums have a wavelength... | 27.741403 | 106 | 0.555881 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 5,306 | 0.26309 |
e3cb6664659c1efec8fe41651c43927d133e5bf2 | 10,046 | py | Python | tests/unit/test_functions.py | noahsa/scikit-hts | db067f416172d18f7d0127150c45419883260d54 | [
"MIT"
] | null | null | null | tests/unit/test_functions.py | noahsa/scikit-hts | db067f416172d18f7d0127150c45419883260d54 | [
"MIT"
] | null | null | null | tests/unit/test_functions.py | noahsa/scikit-hts | db067f416172d18f7d0127150c45419883260d54 | [
"MIT"
] | null | null | null | import numpy
import pandas
import hts.hierarchy
from hts.functions import (
_create_bl_str_col,
get_agg_series,
get_hierarchichal_df,
to_sum_mat,
)
def test_sum_mat_uv(uv_tree):
mat, sum_mat_labels = to_sum_mat(uv_tree)
assert isinstance(mat, numpy.ndarray)
shp = mat.shape
assert shp[... | 31.993631 | 86 | 0.429723 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1,806 | 0.179773 |
e3cbbca95424c00d63673acba3c061a2db999558 | 644 | py | Python | tests/settings.py | team23/django_t10e | f25e8ac6507e05968d2dbf1003ec4cb9f35b627e | [
"BSD-3-Clause"
] | null | null | null | tests/settings.py | team23/django_t10e | f25e8ac6507e05968d2dbf1003ec4cb9f35b627e | [
"BSD-3-Clause"
] | 2 | 2016-03-22T15:31:38.000Z | 2016-04-05T08:59:39.000Z | tests/settings.py | team23/django_t10e | f25e8ac6507e05968d2dbf1003ec4cb9f35b627e | [
"BSD-3-Clause"
] | null | null | null | import os
import warnings
warnings.simplefilter('always')
test_dir = os.path.dirname(os.path.abspath(__file__))
DATABASES = {
'default': {
'NAME': os.path.join(test_dir, 'db.sqlite'),
'ENGINE': 'django.db.backends.sqlite3',
},
}
USE_I18N = True
USE_L10N = True
INSTALLED_APPS = [
'django.... | 16.512821 | 62 | 0.669255 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 228 | 0.354037 |
e3cc45c059a23522906c2bbff40ce8bfec753ce5 | 3,101 | py | Python | medium/380-Insert Delete GetRandom O(1).py | Davidxswang/leetcode | d554b7f5228f14c646f726ddb91014a612673e06 | [
"Apache-2.0"
] | 2 | 2020-05-08T02:17:17.000Z | 2020-05-17T04:55:56.000Z | medium/380-Insert Delete GetRandom O(1).py | Davidxswang/leetcode | d554b7f5228f14c646f726ddb91014a612673e06 | [
"Apache-2.0"
] | null | null | null | medium/380-Insert Delete GetRandom O(1).py | Davidxswang/leetcode | d554b7f5228f14c646f726ddb91014a612673e06 | [
"Apache-2.0"
] | null | null | null | """
https://leetcode.com/problems/insert-delete-getrandom-o1/
Implement the RandomizedSet class:
bool insert(int val) Inserts an item val into the set if not present. Returns true if the item was not present, false otherwise.
bool remove(int val) Removes an item val from the set if present. Returns true if the item w... | 35.643678 | 215 | 0.660755 | 1,141 | 0.367946 | 0 | 0 | 0 | 0 | 0 | 0 | 2,299 | 0.741374 |
e3cd17e1ce16cc51bbf2c4408a071cf80ad1dcea | 851 | py | Python | src/main/generic_cpu/test3/generic_cpu.py | cicerone/kosim | a9f718a19019c11fd6e6c6fc0164d4d214bbb5e2 | [
"BSL-1.0"
] | 2 | 2019-11-15T19:15:36.000Z | 2022-03-14T12:53:18.000Z | src/main/generic_cpu/test3/generic_cpu.py | cicerone/kosim | a9f718a19019c11fd6e6c6fc0164d4d214bbb5e2 | [
"BSL-1.0"
] | null | null | null | src/main/generic_cpu/test3/generic_cpu.py | cicerone/kosim | a9f718a19019c11fd6e6c6fc0164d4d214bbb5e2 | [
"BSL-1.0"
] | null | null | null | #!/usr/bin/env python
#==============================================================================================
# Copyright (c) 2009 Kotys LLC. Distributed under the Boost Software License, Version 1.0.
# (See accompanying file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
# Author: Ciceron... | 31.518519 | 95 | 0.551116 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 572 | 0.67215 |
e3cfcef261416f1b7213e8dce2b540fc137ab1f5 | 7,491 | py | Python | smartools/patches/sheets.py | davocarli/smartools | 57e6233efe8da6b34557f99e8d7c24eef77cfd9d | [
"MIT"
] | 2 | 2021-01-01T17:34:02.000Z | 2021-01-07T13:23:00.000Z | smartools/patches/sheets.py | davocarli/smartools | 57e6233efe8da6b34557f99e8d7c24eef77cfd9d | [
"MIT"
] | null | null | null | smartools/patches/sheets.py | davocarli/smartools | 57e6233efe8da6b34557f99e8d7c24eef77cfd9d | [
"MIT"
] | null | null | null | import smartsheet
# from smartsheet.smartsheet import fresh_operation
from .__smartools import SmartoolsObject, access_levels, RequirementError
from .typed_list import SmartoolsTypedList
smart = smartsheet.Smartsheet("INIT")
smart.Sheets
class SmartoolsSheets(smartsheet.sheets.Sheets):
def smartools(self):
return ... | 34.84186 | 165 | 0.707916 | 7,075 | 0.944467 | 0 | 0 | 0 | 0 | 0 | 0 | 2,707 | 0.361367 |
e3cfd1eba8567bcfd38dbc01b741198461b5c024 | 3,119 | py | Python | modules/persons/application/controllers/v1/phone/create_phone_controller.py | eduardolujan/hexagonal_architecture_django | 8055927cb460bc40f3a2651c01a9d1da696177e8 | [
"BSD-3-Clause"
] | 6 | 2020-08-09T23:41:08.000Z | 2021-03-16T22:05:40.000Z | modules/persons/application/controllers/v1/phone/create_phone_controller.py | eduardolujan/hexagonal_architecture_django | 8055927cb460bc40f3a2651c01a9d1da696177e8 | [
"BSD-3-Clause"
] | 1 | 2020-10-02T02:59:38.000Z | 2020-10-02T02:59:38.000Z | modules/persons/application/controllers/v1/phone/create_phone_controller.py | eduardolujan/hexagonal_architecture_django | 8055927cb460bc40f3a2651c01a9d1da696177e8 | [
"BSD-3-Clause"
] | 2 | 2021-03-16T22:05:43.000Z | 2021-04-30T06:35:25.000Z | # -*- coding: utf-8 -*-
# Infra
from modules.shared.infrastructure.log import LoggerDecorator, PyLoggerService
# Application
from modules.persons.application.create import PhoneCreator
from modules.persons.application.create.command import CreatePhoneCommand
# Domain
from modules.shared.domain.http import status as h... | 36.267442 | 83 | 0.631613 | 2,385 | 0.764668 | 0 | 0 | 2,446 | 0.784226 | 0 | 0 | 408 | 0.130811 |
e3cfd93cdd0841ab2b66bf374189846ddaaf186d | 5,651 | py | Python | tests/test_dispatch_sparql_query_model_catalog.py | KnowledgeCaptureAndDiscovery/OBA_sparql | 9c1c28902ab3d6561b3b6a0f8a7d284688d86326 | [
"Apache-2.0"
] | 5 | 2020-05-12T22:00:16.000Z | 2021-11-08T22:16:11.000Z | tests/test_dispatch_sparql_query_model_catalog.py | KnowledgeCaptureAndDiscovery/OBA_sparql | 9c1c28902ab3d6561b3b6a0f8a7d284688d86326 | [
"Apache-2.0"
] | 24 | 2019-09-26T23:20:11.000Z | 2022-01-14T14:19:14.000Z | tests/test_dispatch_sparql_query_model_catalog.py | KnowledgeCaptureAndDiscovery/OBA_sparql | 9c1c28902ab3d6561b3b6a0f8a7d284688d86326 | [
"Apache-2.0"
] | 1 | 2021-12-01T14:56:09.000Z | 2021-12-01T14:56:09.000Z | import json
import logging
import unittest
from typing import Dict
from SPARQLWrapper import JSONLD
from obasparql.query_manager import QueryManager, QUERIES_TYPES, QUERY_TYPE_GET_ONE_USER
from obasparql.utils import generate_uri
from tests.settings import *
logger = logging.getLogger('testing')
graph_user = generat... | 36.694805 | 463 | 0.585914 | 5,231 | 0.925677 | 0 | 0 | 0 | 0 | 0 | 0 | 3,190 | 0.564502 |
e3d014948574aa9afc4263cc074b784b2bb1665c | 1,538 | py | Python | cogs/ObjectCache.py | Deivedux/Shiramine | bbaf651a4ccd5f65c8aef1eb09ba8899bb2958db | [
"MIT"
] | 6 | 2019-03-20T15:15:31.000Z | 2022-02-23T20:11:24.000Z | cogs/ObjectCache.py | Deivedux/Shiramine | bbaf651a4ccd5f65c8aef1eb09ba8899bb2958db | [
"MIT"
] | 1 | 2021-11-20T00:25:48.000Z | 2021-11-20T00:25:48.000Z | cogs/ObjectCache.py | Deivedux/Shiramine | bbaf651a4ccd5f65c8aef1eb09ba8899bb2958db | [
"MIT"
] | 8 | 2019-11-22T05:56:40.000Z | 2021-12-04T17:38:38.000Z | import time
import json
import sqlite3
import os
conn = sqlite3.connect('configs/Database.db')
c = conn.cursor()
start_time = time.time()
with open('configs/config.json') as json_data:
config = json.load(json_data)
server_config_raw = c.execute("SELECT * FROM ServerConfig").fetchall()
server_config = {}
def serve... | 27.464286 | 80 | 0.737321 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 217 | 0.141092 |
e3d072cf82df30c9642a147eb2b4e745f7865fe4 | 643 | py | Python | Python/valid-palindrome-ii.py | coolryze/LeetCode | 03876232521a20d32f8fa4e7d6d19cf208739a79 | [
"MIT"
] | 2 | 2018-07-18T01:33:07.000Z | 2018-11-16T03:17:03.000Z | Python/valid-palindrome-ii.py | coolryze/LeetCode | 03876232521a20d32f8fa4e7d6d19cf208739a79 | [
"MIT"
] | null | null | null | Python/valid-palindrome-ii.py | coolryze/LeetCode | 03876232521a20d32f8fa4e7d6d19cf208739a79 | [
"MIT"
] | null | null | null | class Solution:
def validPalindrome(self, s):
"""
:type s: str
:rtype: bool
"""
left = 0
right = len(s)-1
while left < right:
if s[left] != s[right]:
return self.isPalindrome(s, left, right-1) or self.isPalindrome(s, left+1, right)... | 22.964286 | 97 | 0.426128 | 642 | 0.998445 | 0 | 0 | 0 | 0 | 0 | 0 | 57 | 0.088647 |
e3d079b0ac366654644d7bfe8c3c51abdf0bef18 | 308 | py | Python | Afvaldienst/__init__.py | xirixiz/python-afvalwijzer-afvalstoffendienst | ef76b07033848a6f7092e941c6c4a3ec214f2842 | [
"MIT"
] | 1 | 2019-10-28T12:26:14.000Z | 2019-10-28T12:26:14.000Z | Afvaldienst/__init__.py | xirixiz/afvaldienst | ef76b07033848a6f7092e941c6c4a3ec214f2842 | [
"MIT"
] | 3 | 2020-09-11T08:38:50.000Z | 2020-09-23T07:08:44.000Z | Afvaldienst/__init__.py | xirixiz/python-afvalwijzer-afvalstoffendienst | ef76b07033848a6f7092e941c6c4a3ec214f2842 | [
"MIT"
] | null | null | null | __author__ = 'Bram van Dartel - xirixiz'
__author_email__ = '[email protected]'
__license__ = 'MIT'
__maintainer_email__ = '[email protected]'
__url__ = 'https://github.com/xirixiz/afvaldienst',
__version__ = '1.1.4'
from .Afvaldienst import Afvaldienst
from .AfvaldienstScraper import AfvaldienstScraper
| 30.8 | 51 | 0.788961 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 119 | 0.386364 |
e3d0ea8dfddd487de8fd53ee32a9b4f750e83af2 | 4,749 | py | Python | src/python_lib_for_me/date.py | silverag-corgi/python-lib-for-me | ed30c7b879396ca6af53c762d7c919b0ea44bea7 | [
"MIT"
] | null | null | null | src/python_lib_for_me/date.py | silverag-corgi/python-lib-for-me | ed30c7b879396ca6af53c762d7c919b0ea44bea7 | [
"MIT"
] | 1 | 2022-02-06T08:21:56.000Z | 2022-02-06T15:48:26.000Z | src/python_lib_for_me/date.py | silverag-corgi/python-lib-for-me | ed30c7b879396ca6af53c762d7c919b0ea44bea7 | [
"MIT"
] | null | null | null | '''
日付モジュール
'''
import calendar
from datetime import date, datetime, timedelta
from typing import Iterator
from zoneinfo import ZoneInfo
from dateutil.relativedelta import relativedelta
def get_first_date_of_this_month(base_date: date) -> date:
'''
今月初日取得
Args:
base_date (d... | 24.863874 | 90 | 0.606443 | 0 | 0 | 390 | 0.073212 | 0 | 0 | 0 | 0 | 2,185 | 0.410175 |
e3d1710232166bf85532195c15df881b2381f79f | 267 | py | Python | tpi/main.py | karajan1001/tpi | c7259a8fea023797058deaf487700645df5fe210 | [
"Apache-2.0"
] | 5 | 2021-09-04T05:02:59.000Z | 2021-09-30T18:23:42.000Z | tpi/main.py | karajan1001/tpi | c7259a8fea023797058deaf487700645df5fe210 | [
"Apache-2.0"
] | 14 | 2021-09-07T15:17:27.000Z | 2021-10-08T01:09:41.000Z | tpi/main.py | karajan1001/tpi | c7259a8fea023797058deaf487700645df5fe210 | [
"Apache-2.0"
] | 6 | 2021-09-06T08:52:04.000Z | 2022-02-07T21:43:48.000Z | import argparse
import logging
log = logging.getLogger(__name__)
def get_main_parser():
parser = argparse.ArgumentParser(prog="tpi")
return parser
def main(argv=None):
parser = get_main_parser()
args = parser.parse_args(argv)
log.debug(args)
| 16.6875 | 48 | 0.715356 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 5 | 0.018727 |
e3d176bb8a4ef4588c81f92f7a9d84251d18fd27 | 2,948 | py | Python | catkin_ws/src/easter_egg_hunt/scripts/waypoint_states.py | pdscraml/bunny-hunter | 7d6951f5cbcc46ec31c8b17dc66a6297cc4d7536 | [
"Apache-2.0"
] | null | null | null | catkin_ws/src/easter_egg_hunt/scripts/waypoint_states.py | pdscraml/bunny-hunter | 7d6951f5cbcc46ec31c8b17dc66a6297cc4d7536 | [
"Apache-2.0"
] | null | null | null | catkin_ws/src/easter_egg_hunt/scripts/waypoint_states.py | pdscraml/bunny-hunter | 7d6951f5cbcc46ec31c8b17dc66a6297cc4d7536 | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python
# Intro to Robotics - EE5900 - Spring 2017
# Final Project
# Philip (Team Lead)
# Ian
# Akhil
#
# Revision: v1.2
# imports
import rospy
import smach
import smach_ros
import time
import actionlib
from easter_egg_hunt.srv import EnableDiscovery
from m... | 33.123596 | 142 | 0.684871 | 2,451 | 0.831411 | 0 | 0 | 0 | 0 | 0 | 0 | 621 | 0.210651 |
e3d20c80e3fd93f5b987a741bdb20323be97f451 | 209 | py | Python | templates/hello/views.py | cesarau04/python-react-webapp | 305f69693313065a9ebbe116a34fd27111c86851 | [
"0BSD"
] | null | null | null | templates/hello/views.py | cesarau04/python-react-webapp | 305f69693313065a9ebbe116a34fd27111c86851 | [
"0BSD"
] | 1 | 2021-03-10T10:17:52.000Z | 2021-03-10T10:17:52.000Z | templates/hello/views.py | cesarau04/python-react-webapp | 305f69693313065a9ebbe116a34fd27111c86851 | [
"0BSD"
] | null | null | null | from flask import render_template, Blueprint
hello_blueprint = Blueprint('hello', __name__)
@hello_blueprint.route('/')
@hello_blueprint.route('/hello')
def index():
return render_template('index.html')
| 23.222222 | 46 | 0.760766 | 0 | 0 | 0 | 0 | 114 | 0.545455 | 0 | 0 | 30 | 0.143541 |
e3d2b660c79791266d30c8a38f66f8ca7ec0c0c0 | 682 | py | Python | project/api/views.py | akxen/pyomo-drf-docker | 9299561e61ce0cc6b40968e078aea84bded1228b | [
"Apache-2.0"
] | null | null | null | project/api/views.py | akxen/pyomo-drf-docker | 9299561e61ce0cc6b40968e078aea84bded1228b | [
"Apache-2.0"
] | null | null | null | project/api/views.py | akxen/pyomo-drf-docker | 9299561e61ce0cc6b40968e078aea84bded1228b | [
"Apache-2.0"
] | null | null | null | from django.shortcuts import render
from django.http import HttpResponse
from rest_framework import status
from rest_framework.views import APIView
from rest_framework.response import Response
from .serializers import ModelDataSerializer
from .optimisation.model import run_model
class RunModel(APIView):
"""Cons... | 31 | 78 | 0.758065 | 397 | 0.582111 | 0 | 0 | 0 | 0 | 0 | 0 | 62 | 0.090909 |
e3d5b6ff47680e0205ffd2a767cb7c6b5cf84622 | 1,456 | py | Python | icees_api/features/qgraph_utils.py | xu-hao/ddcr-api | f69c80a84d413078bd36985b6579d2bc32329b8f | [
"MIT"
] | 2 | 2018-10-03T16:58:57.000Z | 2021-10-04T22:10:48.000Z | icees_api/features/qgraph_utils.py | xu-hao/ddcr-api | f69c80a84d413078bd36985b6579d2bc32329b8f | [
"MIT"
] | 195 | 2019-06-26T17:56:33.000Z | 2022-03-30T20:46:05.000Z | icees_api/features/qgraph_utils.py | xu-hao/ddcr-api | f69c80a84d413078bd36985b6579d2bc32329b8f | [
"MIT"
] | 5 | 2018-09-10T19:45:29.000Z | 2020-10-26T17:59:05.000Z | """Query graph utilities."""
import re
from bmt import Toolkit
BMT = Toolkit()
def get_subcategories(category):
"""Get sub-categories, according to the Biolink model."""
return [
descendant.replace("_", "")
for descendant in BMT.get_descendants(category, formatted=True, reflexive=True)
]... | 30.333333 | 87 | 0.632555 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 428 | 0.293956 |
e3d5f08a740b483f1653463909ea2ce9beb6acde | 3,493 | py | Python | toy-evolve/weno.py | IanHawke/toy-evolve | a1490327dd19492e2c0bb0d9c6909abe8b167135 | [
"MIT"
] | null | null | null | toy-evolve/weno.py | IanHawke/toy-evolve | a1490327dd19492e2c0bb0d9c6909abe8b167135 | [
"MIT"
] | null | null | null | toy-evolve/weno.py | IanHawke/toy-evolve | a1490327dd19492e2c0bb0d9c6909abe8b167135 | [
"MIT"
] | null | null | null | import numpy
C_3 = numpy.array([1, 2]) / 3
a_3 = numpy.array([[3, -1], [1, 1]]) / 2
sigma_3 = numpy.array([[[1, 0], [-2, 1]], [[1, 0], [-2, 1]]])
C_5 = numpy.array([1, 6, 3]) / 10
a_5 = numpy.array([[11, -7, 2], [2, 5, -1], [-1, 5, 2]]) / 6
sigma_5 = numpy.array([[[40, 0, 0],
[-124, 100, 0],
... | 32.342593 | 80 | 0.488405 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 |
e3d6ee49185d1368971f9d3c026c6acc53822813 | 2,832 | py | Python | tests/test_optimize.py | ricosjp/siml | 8fc07d798cdedd77622c16221ee44a575d36bad0 | [
"Apache-2.0"
] | 11 | 2020-12-28T16:22:33.000Z | 2021-11-14T17:09:27.000Z | tests/test_optimize.py | ricosjp/siml | 8fc07d798cdedd77622c16221ee44a575d36bad0 | [
"Apache-2.0"
] | null | null | null | tests/test_optimize.py | ricosjp/siml | 8fc07d798cdedd77622c16221ee44a575d36bad0 | [
"Apache-2.0"
] | 2 | 2021-04-28T09:41:47.000Z | 2021-07-01T21:18:51.000Z | from pathlib import Path
import shutil
import unittest
import numpy as np
import siml.optimize as optimize
import siml.setting as setting
class TestOptimize(unittest.TestCase):
def test_generate_dict(self):
main_setting = setting.MainSetting.read_settings_yaml(
Path('tests/data/deform/optun... | 35.848101 | 77 | 0.611935 | 2,689 | 0.949506 | 0 | 0 | 0 | 0 | 0 | 0 | 430 | 0.151836 |
e3d7620b8331f1df9da2a2562c6b4d96e926fba0 | 1,773 | py | Python | demo.py | natekspencer/vivintpy | ea65b05871b3f13326ba370112357a6696793bf6 | [
"MIT"
] | 3 | 2022-02-10T14:08:59.000Z | 2022-03-30T18:55:25.000Z | demo.py | natekspencer/pyvivint | ea65b05871b3f13326ba370112357a6696793bf6 | [
"MIT"
] | null | null | null | demo.py | natekspencer/pyvivint | ea65b05871b3f13326ba370112357a6696793bf6 | [
"MIT"
] | 2 | 2021-10-31T01:43:26.000Z | 2021-11-21T13:33:55.000Z | import asyncio
import logging
import os
import pubnub
from vivintpy.account import Account
from vivintpy.devices import VivintDevice
from vivintpy.devices.camera import MOTION_DETECTED, Camera
from vivintpy.exceptions import VivintSkyApiMfaRequiredError
pubnub.set_stream_logger(name="pubnub", level=logging.ERROR)
... | 31.105263 | 87 | 0.648054 | 0 | 0 | 0 | 0 | 0 | 0 | 1,399 | 0.789058 | 266 | 0.150028 |
e3db1939642019da218fde1bd068b8be2f4606ff | 3,811 | py | Python | qanda/views.py | Fnechz/StakeOverflow-Clone | 7f17bdb80ebc23a2a5210eb31db6121c5d41e70c | [
"MIT"
] | null | null | null | qanda/views.py | Fnechz/StakeOverflow-Clone | 7f17bdb80ebc23a2a5210eb31db6121c5d41e70c | [
"MIT"
] | null | null | null | qanda/views.py | Fnechz/StakeOverflow-Clone | 7f17bdb80ebc23a2a5210eb31db6121c5d41e70c | [
"MIT"
] | null | null | null | from django.contrib.auth.mixins import LoginRequiredMixin
from django.http.response import HttpResponseRedirect, HttpResponseBadRequest
from django.urls.base import reverse
from django.utils import timezone
from django.views.generic import (
CreateView,
DayArchiveView,
DetailView,
RedirectView,
Templ... | 26.282759 | 78 | 0.708738 | 3,172 | 0.832327 | 0 | 0 | 0 | 0 | 0 | 0 | 382 | 0.100236 |
e3ddafddccd1aee845e95e14e1da8e8b355c53a4 | 92,214 | py | Python | incubator/bootstrap_cli/__main__.py | cognitedata/inso-bootstrap-cli | d2ed0e575703acc7af2a11212357b6fd439f5279 | [
"Apache-2.0"
] | null | null | null | incubator/bootstrap_cli/__main__.py | cognitedata/inso-bootstrap-cli | d2ed0e575703acc7af2a11212357b6fd439f5279 | [
"Apache-2.0"
] | 7 | 2022-02-16T12:46:33.000Z | 2022-03-30T15:58:45.000Z | incubator/bootstrap_cli/__main__.py | cognitedata/inso-bootstrap-cli | d2ed0e575703acc7af2a11212357b6fd439f5279 | [
"Apache-2.0"
] | null | null | null | # 888 888
# 888 888
# 888 888
# .d8888b 88888b. 8888b. 88888b. .d88b. .d88b. 888 .d88b. .d88b.
# d88P" 888 "88b "88b 888 "88b d88P"88b d8P Y8b 888 d88... | 42.241869 | 134 | 0.560934 | 72,307 | 0.784071 | 3,557 | 0.038571 | 10,902 | 0.118217 | 0 | 0 | 40,718 | 0.441531 |
e3e011a21c49b5509fea872c5fc1398a8616f542 | 4,440 | py | Python | pyhcl/passes/expand_memory.py | raybdzhou/PyChip-py-hcl | 08edc6ad4d2978eb417482f6f92678f8f9a1e3c7 | [
"MIT"
] | null | null | null | pyhcl/passes/expand_memory.py | raybdzhou/PyChip-py-hcl | 08edc6ad4d2978eb417482f6f92678f8f9a1e3c7 | [
"MIT"
] | null | null | null | pyhcl/passes/expand_memory.py | raybdzhou/PyChip-py-hcl | 08edc6ad4d2978eb417482f6f92678f8f9a1e3c7 | [
"MIT"
] | null | null | null | from typing import List, Dict
from pyhcl.ir.low_ir import *
from pyhcl.ir.low_prim import *
from pyhcl.passes._pass import Pass
from pyhcl.passes.utils import get_binary_width
DEFAULT_READ_LATENCY = 0
DEFAULT_WRITE_LATENCY = 1
@dataclass
class ExpandMemory(Pass):
def run(self, c: Circuit):
def get_mem_po... | 45.773196 | 156 | 0.533333 | 4,200 | 0.945946 | 0 | 0 | 4,211 | 0.948423 | 0 | 0 | 54 | 0.012162 |
e3e0c634baf400be713a2f06ce7ace7a4e212de8 | 2,071 | py | Python | ClydeLog.py | bnadeau/open-test-jig | 99891aa96740eac267352d76a45b9dd5e1f55e0e | [
"Apache-2.0"
] | null | null | null | ClydeLog.py | bnadeau/open-test-jig | 99891aa96740eac267352d76a45b9dd5e1f55e0e | [
"Apache-2.0"
] | null | null | null | ClydeLog.py | bnadeau/open-test-jig | 99891aa96740eac267352d76a45b9dd5e1f55e0e | [
"Apache-2.0"
] | null | null | null | import logging
import time
import os
BLACK, RED, GREEN, YELLOW, BLUE, MAGENTA, CYAN, WHITE = range(8)
format = "%(asctime)s %(levelname)-10s %(message)s"
id = time.strftime("%Y%m%d-%H%M%S")
#These are the sequences need to get colored ouput
RESET_SEQ = "\033[0m"
COLOR_SEQ = "\033[1;%dm"
BOLD_SEQ = "\033[1m"
def for... | 27.25 | 84 | 0.713182 | 445 | 0.214872 | 0 | 0 | 0 | 0 | 0 | 0 | 370 | 0.178658 |
e3e15e7f00bea2796ee5bd52b11a09a192eae24f | 4,485 | py | Python | private_market/test.py | sigmoid3/Dapper | 469ddca6de3b5e977bcba05de57b9e07bf46dd13 | [
"MIT"
] | 974 | 2015-01-01T08:37:37.000Z | 2022-03-29T16:41:11.000Z | private_market/test.py | sigmoid3/Dapper | 469ddca6de3b5e977bcba05de57b9e07bf46dd13 | [
"MIT"
] | 45 | 2015-05-04T15:57:26.000Z | 2022-03-22T14:40:24.000Z | private_market/test.py | sigmoid3/Dapper | 469ddca6de3b5e977bcba05de57b9e07bf46dd13 | [
"MIT"
] | 414 | 2015-01-05T14:43:01.000Z | 2022-03-28T18:30:58.000Z | from ethereum import tester as t
from ethereum import utils
def test():
s = t.state()
test_company = s.abi_contract('company.se', ADMIN_ACCOUNT=utils.decode_int(t.a0))
order_book = s.abi_contract('orders.se')
test_currency = s.abi_contract('currency.se', sender=t.k0)
assert test_company.getAdmin() ... | 50.965909 | 85 | 0.716611 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1,114 | 0.248384 |
e3e284f2bcaf4183ceaa0d76915531a74b397b67 | 14,338 | py | Python | meshreg/visualize/samplevis.py | jonashein/handobjectnet_baseline | 29175be4528f68b8a2aa6dc6aa37ee0a042f93ab | [
"MIT"
] | 2 | 2021-07-09T15:10:44.000Z | 2021-07-11T12:42:13.000Z | meshreg/visualize/samplevis.py | jonashein/handobjectnet_baseline | 29175be4528f68b8a2aa6dc6aa37ee0a042f93ab | [
"MIT"
] | null | null | null | meshreg/visualize/samplevis.py | jonashein/handobjectnet_baseline | 29175be4528f68b8a2aa6dc6aa37ee0a042f93ab | [
"MIT"
] | null | null | null | import torch
import numpy as np
from libyana.visutils.viz2d import visualize_joints_2d
from meshreg.datasets.queries import BaseQueries, TransQueries
from meshreg.visualize import consistdisplay
def get_check_none(data, key, cpu=True):
if key in data and data[key] is not None:
if cpu:
return ... | 46.401294 | 119 | 0.522597 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3,204 | 0.223462 |
e3e49196e82b3c1f79806bdd2aeb6e1bcf532ba4 | 3,185 | py | Python | api_app/api/dependencies/workspaces.py | gauravagrwal/AzureTRE | f3cb1e40e4926f8b196add807b05abec46bb36fc | [
"MIT"
] | 71 | 2021-03-04T15:10:18.000Z | 2022-03-29T16:37:37.000Z | api_app/api/dependencies/workspaces.py | gauravagrwal/AzureTRE | f3cb1e40e4926f8b196add807b05abec46bb36fc | [
"MIT"
] | 1,498 | 2021-03-05T07:28:00.000Z | 2022-03-31T16:28:06.000Z | api_app/api/dependencies/workspaces.py | gauravagrwal/AzureTRE | f3cb1e40e4926f8b196add807b05abec46bb36fc | [
"MIT"
] | 60 | 2021-04-30T10:09:26.000Z | 2022-03-30T12:39:27.000Z | from fastapi import Depends, HTTPException, Path, status
from pydantic import UUID4
from api.dependencies.database import get_repository
from db.errors import EntityDoesNotExist, ResourceIsNotDeployed
from db.repositories.user_resources import UserResourceRepository
from db.repositories.workspace_services import Works... | 56.875 | 224 | 0.82292 | 0 | 0 | 0 | 0 | 0 | 0 | 2,288 | 0.718367 | 0 | 0 |
e3e5cb6c2267ca3e81be3aad88376455fe125b55 | 14,828 | py | Python | nnef_tools/conversion/tensorflow/tf_pb_to_tf_py.py | rgiduthuri/NNEF-Tools | 8a9971f897fb5a110dd254e0c20077213f257700 | [
"Apache-2.0"
] | null | null | null | nnef_tools/conversion/tensorflow/tf_pb_to_tf_py.py | rgiduthuri/NNEF-Tools | 8a9971f897fb5a110dd254e0c20077213f257700 | [
"Apache-2.0"
] | null | null | null | nnef_tools/conversion/tensorflow/tf_pb_to_tf_py.py | rgiduthuri/NNEF-Tools | 8a9971f897fb5a110dd254e0c20077213f257700 | [
"Apache-2.0"
] | null | null | null | # Copyright (c) 2017 The Khronos Group 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 ... | 50.435374 | 115 | 0.658956 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4,149 | 0.279808 |
e3e5d7bb420ff6920778e91d10161cbdad69e4fa | 1,015 | py | Python | CS1410/p5test.py | Davidjbennett/DavidBennett.github.io | 09a2652b7ace8741bf23c6432abd58ee790b9f0c | [
"MIT"
] | 3 | 2021-05-18T16:17:29.000Z | 2022-01-20T15:46:59.000Z | CS1410/p5test.py | Davidjbennett/DavidBennett | 09a2652b7ace8741bf23c6432abd58ee790b9f0c | [
"MIT"
] | null | null | null | CS1410/p5test.py | Davidjbennett/DavidBennett | 09a2652b7ace8741bf23c6432abd58ee790b9f0c | [
"MIT"
] | null | null | null | import unittest
from payroll import *
class P2Test(unittest.TestCase):
def setUp(self):
self.emp = payroll.Employee('12-3456789', 'John', 'Doe', '123 Anystreet', 'Anytown', 'Anystate', '98765')
def testHourly(self):
rate = 35.5
self.emp.make_hourly(rate)
for d in range(10):
... | 39.038462 | 113 | 0.629557 | 928 | 0.914286 | 0 | 0 | 0 | 0 | 0 | 0 | 534 | 0.526108 |
e3e6303d7750f26636e0532318d99a61631c9c10 | 17,884 | py | Python | EXOSIMS/Completeness/BrownCompleteness.py | dgarrett622/EXOSIMS | ce41adc8c162b6330eb9cefee83f3a395bcff614 | [
"BSD-3-Clause"
] | null | null | null | EXOSIMS/Completeness/BrownCompleteness.py | dgarrett622/EXOSIMS | ce41adc8c162b6330eb9cefee83f3a395bcff614 | [
"BSD-3-Clause"
] | 2 | 2016-08-13T18:39:39.000Z | 2020-06-26T00:18:37.000Z | EXOSIMS/Completeness/BrownCompleteness.py | douglase/EXOSIMS | ce41adc8c162b6330eb9cefee83f3a395bcff614 | [
"BSD-3-Clause"
] | null | null | null | # -*- coding: utf-8 -*-
import time
import numpy as np
from scipy import interpolate
import astropy.units as u
import astropy.constants as const
import os, inspect
try:
import cPickle as pickle
except:
import pickle
import hashlib
from EXOSIMS.Prototypes.Completeness import Completeness
from EXOSIM... | 42.08 | 109 | 0.537575 | 17,485 | 0.97769 | 0 | 0 | 0 | 0 | 0 | 0 | 6,724 | 0.375979 |
e3e6feda3445e87c646510a9a3a710d5ae1d2df6 | 1,418 | py | Python | pylsp/plugins/hover.py | nemethf/python-lsp-server | 34be02a6ce37bab7fb9ba1845006c0af16fb7efc | [
"MIT"
] | 1 | 2021-07-08T01:27:25.000Z | 2021-07-08T01:27:25.000Z | pylsp/plugins/hover.py | nemethf/python-lsp-server | 34be02a6ce37bab7fb9ba1845006c0af16fb7efc | [
"MIT"
] | null | null | null | pylsp/plugins/hover.py | nemethf/python-lsp-server | 34be02a6ce37bab7fb9ba1845006c0af16fb7efc | [
"MIT"
] | null | null | null | # Copyright 2017-2020 Palantir Technologies, Inc.
# Copyright 2021- Python Language Server Contributors.
import logging
from pylsp import hookimpl, _utils
log = logging.getLogger(__name__)
@hookimpl
def pylsp_hover(document, position):
code_position = _utils.position_to_jedi_linecolumn(document, position)
... | 28.36 | 74 | 0.662906 | 0 | 0 | 0 | 0 | 1,223 | 0.862482 | 0 | 0 | 471 | 0.332158 |
e3e789b09b4bc5d5bd9a4f91dddf897a4ef4d03a | 4,753 | py | Python | LocStat/pipelines/output.py | nhtoshiaki/LocStat | 0196d627d1f16a778cbc8f1996d217d8fee72afb | [
"MIT"
] | null | null | null | LocStat/pipelines/output.py | nhtoshiaki/LocStat | 0196d627d1f16a778cbc8f1996d217d8fee72afb | [
"MIT"
] | null | null | null | LocStat/pipelines/output.py | nhtoshiaki/LocStat | 0196d627d1f16a778cbc8f1996d217d8fee72afb | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
import items
class TxtFileWriter:
"""
Write the repository representation in the file.
"""
def __init__(self, file_path):
self.file_path = file_path
def __enter__(self):
self.file = open(self.file_path, 'w', encoding='utf-8')
return self
def ... | 37.722222 | 79 | 0.487482 | 4,712 | 0.991374 | 0 | 0 | 400 | 0.084157 | 0 | 0 | 1,128 | 0.237324 |
e3e858c279c7da79f073153068c7d9c2b91c90b3 | 736 | py | Python | greensinversion/regularization.py | isuthermography/greensinversion | 92f272a3649bb2f6b132f8cd239edd68dd2a6a62 | [
"Unlicense"
] | 1 | 2020-07-25T23:23:04.000Z | 2020-07-25T23:23:04.000Z | greensinversion/regularization.py | isuthermography/greensinversion | 92f272a3649bb2f6b132f8cd239edd68dd2a6a62 | [
"Unlicense"
] | 1 | 2018-10-04T01:43:25.000Z | 2018-11-28T17:59:12.000Z | greensinversion/regularization.py | isuthermography/greensinversion | 92f272a3649bb2f6b132f8cd239edd68dd2a6a62 | [
"Unlicense"
] | 1 | 2020-07-25T23:23:06.000Z | 2020-07-25T23:23:06.000Z | import numpy as np
def apply_tikhonov_regularization(u,s,v,usetikparam,vector):
#alpha = usetikparam*np.sqrt(u.shape[0]/v.shape[1]) # Tikhonov parameter interpreted as scaled by sqrt(matrix rows/matrix cols) so that it is directly interpretable as NETD/NESI (noise equivalent temperature difference over no... | 36.8 | 319 | 0.716033 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 517 | 0.702446 |
e3e870bbf5df4a845585a4326902f3311e5fcf1d | 1,563 | py | Python | examples/telebot.py | b3ntuz1/words | 5d14439e18d9462a02a836afc3497a188bfc3224 | [
"MIT"
] | null | null | null | examples/telebot.py | b3ntuz1/words | 5d14439e18d9462a02a836afc3497a188bfc3224 | [
"MIT"
] | null | null | null | examples/telebot.py | b3ntuz1/words | 5d14439e18d9462a02a836afc3497a188bfc3224 | [
"MIT"
] | null | null | null | import flask
import telebot
import words
from dotenv import load_dotenv
load_dotenv()
app = flask.Flask(__name__)
bot = telebot.TeleBot(environ.get("TG_TOKEN"), threaded=False)
WEBHOOK_URL_PATH = "/%s/" % (environ.get("TG_TOKEN"))
# # Remove webhook, it fails sometimes the set if there is a previous webhook
# bot.re... | 31.26 | 106 | 0.68778 | 0 | 0 | 0 | 0 | 1,115 | 0.713372 | 0 | 0 | 415 | 0.265515 |
e3e8a02a4a0c93dadb97549166e65600c319f251 | 547 | py | Python | lvsfunc/__init__.py | DeadNews/lvsfunc | 15bc8b99595c5066c15f4aba9fb9989e1068a9ee | [
"MIT"
] | null | null | null | lvsfunc/__init__.py | DeadNews/lvsfunc | 15bc8b99595c5066c15f4aba9fb9989e1068a9ee | [
"MIT"
] | null | null | null | lvsfunc/__init__.py | DeadNews/lvsfunc | 15bc8b99595c5066c15f4aba9fb9989e1068a9ee | [
"MIT"
] | null | null | null | """
lvsfunc, a collection of VapourSynth functions and wrappers written and/or modified by LightArrowsEXE.
If you spot any issues, please do not hesitate to send in a Pull Request
or reach out to me on Discord (LightArrowsEXE#0476)!
"""
# flake8: noqa
from . import aa, comparison, deinterlace, denoise, m... | 26.047619 | 106 | 0.758684 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 273 | 0.499086 |
e3e90ea49def6ec58ac5f2b5f001c13fe85417ac | 529 | py | Python | Roman_to_Integer.py | sujitmandal/leetCode | b52bfd68cd93243765a94a190807f9b79ec4b4af | [
"MIT"
] | null | null | null | Roman_to_Integer.py | sujitmandal/leetCode | b52bfd68cd93243765a94a190807f9b79ec4b4af | [
"MIT"
] | null | null | null | Roman_to_Integer.py | sujitmandal/leetCode | b52bfd68cd93243765a94a190807f9b79ec4b4af | [
"MIT"
] | null | null | null | roman_dict = {
"I" : 1,
"V" : 5,
"X" : 10,
"L" : 50,
"C" : 100,
"D" : 500,
"M" : 1000
}
class Solution:
def romanToInt(self, s: str) -> int:
previous = 0
current = 0
result = 0
for x in s[::-1]:
current = roman_dict[x]
if (previous > current):
... | 18.241379 | 40 | 0.478261 | 355 | 0.671078 | 0 | 0 | 0 | 0 | 0 | 0 | 37 | 0.069943 |
e3ea89a73be617f94a289a935e3c1a5396be4890 | 4,214 | py | Python | utils/warmup.py | hengwei-chan/3D_SBDD | eda6d51aaf01ef25581a46920a25161678fab76d | [
"MIT"
] | 67 | 2021-12-02T05:53:44.000Z | 2022-03-31T07:21:26.000Z | utils/warmup.py | hengwei-chan/3D_SBDD | eda6d51aaf01ef25581a46920a25161678fab76d | [
"MIT"
] | 13 | 2021-12-05T14:23:46.000Z | 2022-03-25T21:07:20.000Z | utils/warmup.py | hengwei-chan/3D_SBDD | eda6d51aaf01ef25581a46920a25161678fab76d | [
"MIT"
] | 16 | 2022-01-11T11:48:24.000Z | 2022-03-27T19:20:58.000Z | """
MIT License
Copyright (c) 2019 Ildoo Kim
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, dis... | 48.436782 | 152 | 0.685809 | 3,032 | 0.719506 | 0 | 0 | 0 | 0 | 0 | 0 | 1,743 | 0.413621 |
e3eab184db32babbdcd60c4ea7969530ce380571 | 2,154 | py | Python | src/ee/deployers.py | marcelotrevisani/ee | 933d6a80402b30943ca3df4a1a120047f7163a4b | [
"MIT"
] | 5 | 2021-12-09T21:54:35.000Z | 2021-12-14T11:25:57.000Z | src/ee/deployers.py | marcelotrevisani/ee | 933d6a80402b30943ca3df4a1a120047f7163a4b | [
"MIT"
] | 6 | 2021-12-09T21:04:19.000Z | 2022-02-11T11:19:44.000Z | src/ee/deployers.py | marcelotrevisani/ee | 933d6a80402b30943ca3df4a1a120047f7163a4b | [
"MIT"
] | 2 | 2021-02-12T20:20:26.000Z | 2021-12-14T11:24:24.000Z | import abc
import logging
from typing import List
from ee.models import EnvironmentDefinition
logger = logging.getLogger(__name__)
class DeploymentBackend(abc.ABC):
def run(self, env_def: EnvironmentDefinition, command: List[str]):
"""
This is the main public method.
This is a template ... | 27.615385 | 80 | 0.597029 | 2,018 | 0.936862 | 0 | 0 | 944 | 0.438254 | 0 | 0 | 1,339 | 0.621634 |
e3eb6d0f0d638a2beae2a17150b8764d8ef995b7 | 2,946 | py | Python | vb_simulation_pkgs/example_pkgs/pkg_moveit_examples/scripts/node_eg2_predefined_pose.py | ROBODITYA/Eyantra-2021-Vargi-Bots | f1c6a82c46e6e84486a4832b3fbcd02625849447 | [
"MIT"
] | 1 | 2021-07-13T07:05:29.000Z | 2021-07-13T07:05:29.000Z | vb_simulation_pkgs/example_pkgs/pkg_moveit_examples/scripts/node_eg2_predefined_pose.py | TejasPhutane/Eyantra-2021-Vargi-Bots | ab84a1304101850be8c0f69cfe6de70d53c33189 | [
"MIT"
] | 1 | 2021-06-05T07:58:03.000Z | 2021-06-05T07:58:03.000Z | vb_simulation_pkgs/example_pkgs/pkg_moveit_examples/scripts/node_eg2_predefined_pose.py | ROBODITYA/Eyantra-2021-Vargi-Bots | f1c6a82c46e6e84486a4832b3fbcd02625849447 | [
"MIT"
] | null | null | null | #! /usr/bin/env python
import rospy
import sys
import copy
import moveit_commander
import moveit_msgs.msg
import geometry_msgs.msg
import actionlib
class Ur5Moveit:
# Constructor
def __init__(self, arg_robot_name):
rospy.init_node('node_eg2_predefined_pose', anonymous=True)
self._robot_ns =... | 37.291139 | 163 | 0.681942 | 2,519 | 0.855058 | 0 | 0 | 0 | 0 | 0 | 0 | 576 | 0.195519 |
e3ecff00be006576e1644fd5e646a6c21330ba43 | 5,047 | py | Python | plugins/pelican_gist/plugin.py | kura/kura.io | 7f9ba2140b93bba86d1367e41706ad72f9e672bf | [
"MIT"
] | 13 | 2015-02-19T22:14:07.000Z | 2021-02-07T14:16:34.000Z | plugins/pelican_gist/plugin.py | kura/kura.gg | 42c8e0a7a6d9480297df004452b073883ff9693e | [
"MIT"
] | 2 | 2015-07-28T10:02:57.000Z | 2017-07-28T18:08:59.000Z | plugins/pelican_gist/plugin.py | kura/kura.io | 7f9ba2140b93bba86d1367e41706ad72f9e672bf | [
"MIT"
] | 7 | 2015-08-26T16:52:00.000Z | 2019-10-11T05:32:37.000Z | # -*- coding: utf-8 -*-
"""
Gist embedding plugin for Pelican
=================================
This plugin allows you to embed `Gists`_ into your posts.
.. _Gists: https://gist.github.com/
"""
from __future__ import unicode_literals
import hashlib
import logging
import os
import re
import codecs
import pygments
lo... | 30.96319 | 91 | 0.624529 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1,382 | 0.273826 |
e3ed166cf5e760668330d7ff8e4a946c7c875bce | 1,188 | py | Python | ass1/rsc/ts.py | suryaavala/network | 291b59dce961448b2a9b92b6a0754ec994a6fb91 | [
"MIT"
] | null | null | null | ass1/rsc/ts.py | suryaavala/network | 291b59dce961448b2a9b92b6a0754ec994a6fb91 | [
"MIT"
] | null | null | null | ass1/rsc/ts.py | suryaavala/network | 291b59dce961448b2a9b92b6a0754ec994a6fb91 | [
"MIT"
] | null | null | null | import time
from socket import *
import sys
host = sys.argv[1]
#port = sys.argv[2]
#message = sys.argv[2]
sock = socket(AF_INET, SOCK_DGRAM)
sock.settimeout(1)
sock.bind((str(host),0))
print(sock.getsockname(),sock.getsockname()[1])
port = 5967
for message in 'abcdefghijklmnopqrstuvwxyz':
sock.sendto(message.e... | 32.108108 | 139 | 0.653199 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 539 | 0.453704 |
e3edc74364411dacd749db536296fed60fe22954 | 26,799 | py | Python | django/docs/ref/contrib/auth.txt.py | roshanba/mangal | f7b428811dc07214009cc33f0beb665ead402038 | [
"bzip2-1.0.6",
"MIT"
] | null | null | null | django/docs/ref/contrib/auth.txt.py | roshanba/mangal | f7b428811dc07214009cc33f0beb665ead402038 | [
"bzip2-1.0.6",
"MIT"
] | null | null | null | django/docs/ref/contrib/auth.txt.py | roshanba/mangal | f7b428811dc07214009cc33f0beb665ead402038 | [
"bzip2-1.0.6",
"MIT"
] | null | null | null | XXXXXXXXXXXXXXXXXXXXXXX
XXXXXXXXXXXXXXXXXXXXXXX
XXXXXXXXXXXXXXXXXXXXXXX
XXXX XXXXXXXX XXXXXXXX XXX XXXXXXXXX XXXXXXXX XXX XXX XXXXXXXXXX XX XXXXXXXX
XXXXXXXXXXXXXX XXXXXXX XXX XXXX XXXXXXX XX XXX XXXXX XX XXXXX XXXXXXXXXX XX
XXX XX XXXXXXXXX XXXXXXXXXXXXXX XXX XXXXXXXXXXXXX XXX XXX XXXXXXXXXXXXXXXXXXXX
XXXXX XXXXX XXX... | 38.12091 | 96 | 0.79044 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 |
e3efc019f189a8a6987dd98946e89c72d64fa190 | 2,218 | py | Python | BIA 660 - Web Analytics/Assignments/Assignment 2/webcounter.py | ParasGarg/Stevens-Computer-Science-Courses-Materials | 13015e6e83471d89ae29474857fe83a81994420f | [
"MIT"
] | 25 | 2017-03-23T04:51:18.000Z | 2022-03-03T21:51:11.000Z | BIA 660 - Web Analytics/Assignments/Assignment 2/webcounter.py | vaishnavimecit/Stevens-Computer-Science-Courses-Materials | 13015e6e83471d89ae29474857fe83a81994420f | [
"MIT"
] | null | null | null | BIA 660 - Web Analytics/Assignments/Assignment 2/webcounter.py | vaishnavimecit/Stevens-Computer-Science-Courses-Materials | 13015e6e83471d89ae29474857fe83a81994420f | [
"MIT"
] | 19 | 2018-05-10T05:17:05.000Z | 2022-03-12T05:18:58.000Z | """
A script that reads a file from the web and
returns the all the words having frequency in between two words passed
"""
import re
from nltk.corpus import stopwords
import requests
from operator import itemgetter
def run(url, word1, word2):
freq = {} # keep the freq of each word in the file
freq[word1] = 0... | 35.774194 | 175 | 0.626691 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1,092 | 0.492335 |
e3f2542b1e8fcfc1c962b23f153fdbfa31f29be1 | 4,487 | py | Python | dev/archery/archery/integration/util.py | palmerlao/arrow | 4e680c46ad5aa76ba1dc85574c4e96a51450364f | [
"Apache-2.0"
] | null | null | null | dev/archery/archery/integration/util.py | palmerlao/arrow | 4e680c46ad5aa76ba1dc85574c4e96a51450364f | [
"Apache-2.0"
] | 8 | 2020-04-10T19:03:51.000Z | 2021-01-21T01:06:28.000Z | dev/archery/archery/integration/util.py | signavio/arrow | 866e6a82e2794b151235c19b8c5cbf1fcaf780ef | [
"CC-BY-3.0",
"Apache-2.0",
"CC0-1.0"
] | null | null | null | # Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not u... | 28.398734 | 77 | 0.654558 | 1,478 | 0.329396 | 654 | 0.145754 | 869 | 0.193671 | 0 | 0 | 2,099 | 0.467796 |
e3f2b53a7343d04d14b8c9e8a2dd45c0ae9f242e | 4,715 | py | Python | python/src/cmdline/write_struct.py | hgmelectronics/xcpsetup | 646d22537f58e59c3fe324da08c4dbe0d5881efa | [
"BSD-2-Clause"
] | null | null | null | python/src/cmdline/write_struct.py | hgmelectronics/xcpsetup | 646d22537f58e59c3fe324da08c4dbe0d5881efa | [
"BSD-2-Clause"
] | null | null | null | python/src/cmdline/write_struct.py | hgmelectronics/xcpsetup | 646d22537f58e59c3fe324da08c4dbe0d5881efa | [
"BSD-2-Clause"
] | null | null | null | #!/usr/bin/python3
import argparse
import ctypes
import json
import sys
if not '..' in sys.path:
sys.path.append('..')
from comm import BoardTypes
from comm import CANInterface
from comm import XCPConnection
from util import plugins
from util import ctypesdict
from util import config
import argProc
plugins.l... | 42.477477 | 145 | 0.634783 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1,232 | 0.261294 |
e3f35c53bc5f2d93179fd278d659372e135f798d | 2,383 | py | Python | doc/python_api/examples/bpy.types.Depsgraph.1.py | rbabari/blender | 6daa85f14b2974abfc3d0f654c5547f487bb3b74 | [
"Naumen",
"Condor-1.1",
"MS-PL"
] | 365 | 2015-02-10T15:10:55.000Z | 2022-03-03T15:50:51.000Z | doc/python_api/examples/bpy.types.Depsgraph.1.py | rbabari/blender | 6daa85f14b2974abfc3d0f654c5547f487bb3b74 | [
"Naumen",
"Condor-1.1",
"MS-PL"
] | 45 | 2015-01-09T15:34:20.000Z | 2021-10-05T14:44:23.000Z | doc/python_api/examples/bpy.types.Depsgraph.1.py | rbabari/blender | 6daa85f14b2974abfc3d0f654c5547f487bb3b74 | [
"Naumen",
"Condor-1.1",
"MS-PL"
] | 172 | 2015-01-25T15:16:53.000Z | 2022-01-31T08:25:36.000Z | """
Dependency graph: Evaluated ID example
++++++++++++++++++++++++++++++++++++++
This example demonstrates access to the evaluated ID (such as object, material, etc.) state from
an original ID.
This is needed every time one needs to access state with animation, constraints, and modifiers
taken into account.
"""
impor... | 39.065574 | 99 | 0.675619 | 1,854 | 0.778011 | 0 | 0 | 0 | 0 | 0 | 0 | 1,557 | 0.653378 |
e3f5aaf3ddf858989f83bcba1743ef73978162e1 | 2,411 | py | Python | upgrade-insecure-requests/support/generate.py | Thezone1975/wpt | 9e201113cf36aefe07fe9c14caa47705d541e141 | [
"BSD-3-Clause"
] | 1 | 2019-09-10T22:45:24.000Z | 2019-09-10T22:45:24.000Z | upgrade-insecure-requests/support/generate.py | Thezone1975/wpt | 9e201113cf36aefe07fe9c14caa47705d541e141 | [
"BSD-3-Clause"
] | 3 | 2017-10-06T15:45:34.000Z | 2018-09-11T12:49:57.000Z | upgrade-insecure-requests/support/generate.py | Thezone1975/wpt | 9e201113cf36aefe07fe9c14caa47705d541e141 | [
"BSD-3-Clause"
] | null | null | null | # Usage: execute
# $ python support/generate.py
# at wpt/upgrade-insecure-requests/.
#
# Note: Some tests (link-upgrade.sub.https.html and
# websocket-upgrade.https.html) are not covered by this generator script.
template = '''<!DOCTYPE html>
<html>
<head>
<!-- Generated by wpt/upgrade-insecure-requests/support/genera... | 37.092308 | 89 | 0.690585 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1,691 | 0.701369 |
e3f5cd033fa43c92ae4a7eb4ce55f52eab4be962 | 424 | py | Python | model_constructor/mxresnet.py | ayasyrev/model_constructor | 3759a02dd9f7aa1ca3e6a4a5aefe72380886207e | [
"Apache-2.0"
] | 3 | 2020-08-02T09:18:27.000Z | 2021-12-22T07:43:37.000Z | model_constructor/mxresnet.py | ayasyrev/model_constructor | 3759a02dd9f7aa1ca3e6a4a5aefe72380886207e | [
"Apache-2.0"
] | 16 | 2020-11-09T11:35:13.000Z | 2021-12-23T13:04:54.000Z | model_constructor/mxresnet.py | ayasyrev/model_constructor | 3759a02dd9f7aa1ca3e6a4a5aefe72380886207e | [
"Apache-2.0"
] | 2 | 2020-04-08T20:56:48.000Z | 2021-01-20T13:37:52.000Z | from functools import partial
from .activations import Mish
from .net import Net
__all__ = ['mxresnet_parameters', 'mxresnet34', 'mxresnet50']
mxresnet_parameters = {'stem_sizes': [3, 32, 64, 64], 'act_fn': Mish()}
mxresnet34 = partial(Net, name='MXResnet32', expansion=1, layers=[3, 4, 6, 3], **mxresnet_parameters... | 32.615385 | 101 | 0.71934 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 89 | 0.209906 |
e3f60625a8143b4d147e2f952742a97ef41ee31f | 1,242 | py | Python | 1.undersampling.py | Moons08/TalkingData-Fraud-Detection | c88fb8b5358f6057603b7725ed2767fab47c51c6 | [
"MIT"
] | 1 | 2019-01-18T06:20:54.000Z | 2019-01-18T06:20:54.000Z | 1.undersampling.py | Moons08/LightGBM-tutorial-Fraud_Detection | c88fb8b5358f6057603b7725ed2767fab47c51c6 | [
"MIT"
] | null | null | null | 1.undersampling.py | Moons08/LightGBM-tutorial-Fraud_Detection | c88fb8b5358f6057603b7725ed2767fab47c51c6 | [
"MIT"
] | null | null | null | import os
import pandas as pd
from imblearn.under_sampling import RandomUnderSampler
from contextlib import contextmanager
import psutil
import time
@contextmanager
def timer_memory(name):
t0 = time.time()
yield
print(
f'Memory: {(psutil.Process(os.getpid()).memory_info().rss/2**30):.02f}GB')
... | 26.425532 | 82 | 0.587762 | 0 | 0 | 266 | 0.214171 | 282 | 0.227053 | 0 | 0 | 349 | 0.280998 |
e3f69e5b14024599fb273e979ccbc45a1c411ded | 8,652 | py | Python | spydrnet/plugins/namespace_manager/tests/test_edif_namespace.py | ganeshgore/spydrnet | 22672b8fc7d63461a71077bd20f29df6d38e96f4 | [
"BSD-3-Clause"
] | 34 | 2020-03-12T15:40:49.000Z | 2022-02-28T07:13:47.000Z | spydrnet/plugins/namespace_manager/tests/test_edif_namespace.py | ganeshgore/spydrnet | 22672b8fc7d63461a71077bd20f29df6d38e96f4 | [
"BSD-3-Clause"
] | 104 | 2020-01-06T20:32:19.000Z | 2022-01-02T00:20:14.000Z | spydrnet/plugins/namespace_manager/tests/test_edif_namespace.py | ganeshgore/spydrnet | 22672b8fc7d63461a71077bd20f29df6d38e96f4 | [
"BSD-3-Clause"
] | 10 | 2020-09-02T20:24:00.000Z | 2022-02-24T16:10:07.000Z | import unittest
import spydrnet as sdn
class TestEdifNamespace(unittest.TestCase):
original_default = None
@classmethod
def setUpClass(cls) -> None:
cls.original_default = sdn.namespace_manager.default
sdn.namespace_manager.default = "EDIF"
@classmethod
def tearDownClass(cls) -> N... | 33.66537 | 66 | 0.592811 | 8,610 | 0.995146 | 0 | 0 | 1,936 | 0.223763 | 0 | 0 | 1,865 | 0.215557 |
e3f744a34f5cd637c13b66b21c7bdf2144d67708 | 3,344 | py | Python | tf_agents/benchmark/distribution_strategy_utils.py | FlorisHoogenboom/agents | 2cd5a61e1838b52012271f1fb8617c29a55279a9 | [
"Apache-2.0"
] | 16 | 2020-09-23T06:21:49.000Z | 2022-03-28T05:45:04.000Z | tf_agents/benchmark/distribution_strategy_utils.py | FlorisHoogenboom/agents | 2cd5a61e1838b52012271f1fb8617c29a55279a9 | [
"Apache-2.0"
] | null | null | null | tf_agents/benchmark/distribution_strategy_utils.py | FlorisHoogenboom/agents | 2cd5a61e1838b52012271f1fb8617c29a55279a9 | [
"Apache-2.0"
] | 6 | 2020-10-09T06:33:23.000Z | 2022-02-03T16:16:36.000Z | # coding=utf-8
# Copyright 2018 The TF-Agents Authors.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law... | 34.474227 | 80 | 0.696172 | 106 | 0.031699 | 0 | 0 | 0 | 0 | 0 | 0 | 1,775 | 0.530801 |
e3f85ec084254dfe08068ef5fd90d188baae09d8 | 72 | py | Python | barbarism.py | Matimed/Barbarism | 4892092f24f314bc6cfacc1c780436dc59fc90ac | [
"MIT"
] | 2 | 2021-09-09T14:03:40.000Z | 2021-11-03T03:35:55.000Z | barbarism.py | Matimed/Barbarism | 4892092f24f314bc6cfacc1c780436dc59fc90ac | [
"MIT"
] | null | null | null | barbarism.py | Matimed/Barbarism | 4892092f24f314bc6cfacc1c780436dc59fc90ac | [
"MIT"
] | null | null | null | import pygame as pg
pg.init()
from src.main import Main
main = Main()
| 10.285714 | 25 | 0.708333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 |
e3f8f7b3257c5bd12d8d3490e725fe8a7a51ecb9 | 388 | py | Python | frappe/patches/v7_0/desktop_icons_hidden_by_admin_as_blocked.py | anandpdoshi/frappe | b3546f1ebcac3480eccf5d19371ca534e7ce79bb | [
"MIT"
] | null | null | null | frappe/patches/v7_0/desktop_icons_hidden_by_admin_as_blocked.py | anandpdoshi/frappe | b3546f1ebcac3480eccf5d19371ca534e7ce79bb | [
"MIT"
] | null | null | null | frappe/patches/v7_0/desktop_icons_hidden_by_admin_as_blocked.py | anandpdoshi/frappe | b3546f1ebcac3480eccf5d19371ca534e7ce79bb | [
"MIT"
] | 5 | 2016-06-20T08:48:11.000Z | 2018-12-12T09:42:31.000Z | import frappe
def execute():
# all icons hidden in standard are "blocked"
# this is for the use case where the admin wants to remove icon for everyone
# in 7.0, icons may be hidden by default, but still can be shown to the user
# e.g. Accounts, Stock etc, so we need a new property for blocked
frappe.db.sql('upda... | 43.111111 | 88 | 0.737113 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 333 | 0.858247 |
e3f9d1e7fbd73db26f8548fce222535435572494 | 3,985 | py | Python | gen_mirror_json.py | Ashwin4RC/api | e6fc38b5ef8510ab4a11cb492fe49b9ed2cbcc58 | [
"Apache-2.0"
] | null | null | null | gen_mirror_json.py | Ashwin4RC/api | e6fc38b5ef8510ab4a11cb492fe49b9ed2cbcc58 | [
"Apache-2.0"
] | null | null | null | gen_mirror_json.py | Ashwin4RC/api | e6fc38b5ef8510ab4a11cb492fe49b9ed2cbcc58 | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python3
# pylint: disable=missing-docstring,invalid-name,broad-except,cell-var-from-loop
import hashlib
import json
import os
import sys
from utils import get_date_from_zip, get_metadata_from_zip
ALLOWED_BUILDTYPES = ["Alpha", "Beta", "Official", "Gapps"]
ALLOWED_VERSIONS = ["9.0", "10"]
FILE_BASE: s... | 36.227273 | 88 | 0.496863 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 617 | 0.154831 |
e3f9dc11cb81a8cb80e6cd940f8a035848122990 | 431 | py | Python | button/take_screen.py | PitPietro/gpiozero-pyqt5 | 0384d34348841d193c025a1909d909d1bf772a7d | [
"MIT"
] | null | null | null | button/take_screen.py | PitPietro/gpiozero-pyqt5 | 0384d34348841d193c025a1909d909d1bf772a7d | [
"MIT"
] | null | null | null | button/take_screen.py | PitPietro/gpiozero-pyqt5 | 0384d34348841d193c025a1909d909d1bf772a7d | [
"MIT"
] | null | null | null | import os
# from signal import pause
from gpiozero import Button
from datetime import datetime
def take_screen():
screen_btn = Button(2)
while True:
if screen_btn.is_pressed:
timestamp = datetime.now()
cmd = "scrot -u d 5 $n {}.png".format('screen_' + str(timestamp))
... | 21.55 | 77 | 0.605568 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 106 | 0.24594 |
e3fb07a9be04e9aa4d5249fcb856df6a2aede22a | 1,435 | py | Python | year2020/day21.py | 3schwartz/AdventOfCode | 32f259c4e20c3c4834718411f1053b6a11f71c86 | [
"MIT"
] | null | null | null | year2020/day21.py | 3schwartz/AdventOfCode | 32f259c4e20c3c4834718411f1053b6a11f71c86 | [
"MIT"
] | null | null | null | year2020/day21.py | 3schwartz/AdventOfCode | 32f259c4e20c3c4834718411f1053b6a11f71c86 | [
"MIT"
] | null | null | null | import common
lines = common.get_lines('day21_data.txt')
food_dict = {}
all_ingredients = []
for line in lines:
ingredients, allergens = line.split(' (contains ')
allergens = allergens[:-1].split(', ')
ingredients = ingredients.split(' ')
all_ingredients.extend(ingredients)
for alle... | 32.613636 | 90 | 0.627875 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 194 | 0.135192 |
e3fb126e341fe57625eff17359d622708faa18e2 | 4,279 | py | Python | src/model_evaluation.py | Littleote/Analisis_de_contrasenyes | 3837153e82b9da0c6f8ed1c372103944f3acaca6 | [
"MIT"
] | null | null | null | src/model_evaluation.py | Littleote/Analisis_de_contrasenyes | 3837153e82b9da0c6f8ed1c372103944f3acaca6 | [
"MIT"
] | null | null | null | src/model_evaluation.py | Littleote/Analisis_de_contrasenyes | 3837153e82b9da0c6f8ed1c372103944f3acaca6 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
"""
@author: david
"""
import matplotlib.pyplot as plt
import seaborn as sns
import numpy as np
from sklearn.model_selection import KFold
from sklearn.metrics import confusion_matrix, classification_report
from sklearn.metrics import PrecisionRecallDisplay, RocCurveDisplay
class ModelEvaluatio... | 40.752381 | 117 | 0.475111 | 3,980 | 0.929907 | 0 | 0 | 0 | 0 | 0 | 0 | 751 | 0.175467 |
e3fb3094156efbfadeca185946c48f3c4d800789 | 1,632 | py | Python | setup.py | zhuzhenping/hf_at_py | edbbefc7dd1d476ed7fd62ad9635888cfc5fcb44 | [
"Apache-2.0"
] | 130 | 2017-03-10T02:01:38.000Z | 2021-01-10T03:55:30.000Z | setup.py | zhuzhenping/hf_at_py | edbbefc7dd1d476ed7fd62ad9635888cfc5fcb44 | [
"Apache-2.0"
] | 3 | 2018-11-30T00:07:50.000Z | 2020-12-01T13:01:13.000Z | setup.py | zhuzhenping/hf_at_py | edbbefc7dd1d476ed7fd62ad9635888cfc5fcb44 | [
"Apache-2.0"
] | 69 | 2017-04-01T13:57:21.000Z | 2020-10-07T11:29:45.000Z | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# @Time : 2018/11/20 8:15
# @Author : HaiFeng
# @Email : [email protected]
from setuptools import setup
import os
this_directory = os.path.abspath(os.path.dirname(__file__))
# 读取文件内容
def read_file(filename):
with open(os.path.join(this_directory, filename), enc... | 29.142857 | 84 | 0.674632 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 902 | 0.502787 |
e3fbc1eef6b6ab6c9a1ff3c81478fc53b610ea00 | 6,478 | py | Python | web_console_v2/api/fedlearner_webconsole/scheduler/transaction.py | chen1i/fedlearner | 981514dadbd0aa49ae87d185dd247d310e35605c | [
"Apache-2.0"
] | 5 | 2020-04-14T06:37:45.000Z | 2021-04-26T15:58:01.000Z | web_console_v2/api/fedlearner_webconsole/scheduler/transaction.py | chen1i/fedlearner | 981514dadbd0aa49ae87d185dd247d310e35605c | [
"Apache-2.0"
] | 1 | 2020-04-27T03:01:27.000Z | 2020-04-27T03:01:27.000Z | web_console_v2/api/fedlearner_webconsole/scheduler/transaction.py | chen1i/fedlearner | 981514dadbd0aa49ae87d185dd247d310e35605c | [
"Apache-2.0"
] | 13 | 2020-02-20T05:56:52.000Z | 2020-06-08T07:11:25.000Z | # Copyright 2020 The FedLearner Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applica... | 39.742331 | 78 | 0.636153 | 5,585 | 0.862149 | 0 | 0 | 124 | 0.019142 | 0 | 0 | 1,004 | 0.154986 |
e3fd5d581d1b57f36ef591f8271741509e6dd229 | 4,636 | py | Python | src/openeo_grass_gis_driver/models/schema_base.py | marcjansen/openeo-grassgis-driver | 57b309819fdc456fba02cd1ab8fe6731ddfbb66a | [
"Apache-2.0"
] | 7 | 2018-03-16T17:26:14.000Z | 2022-03-09T08:19:10.000Z | src/openeo_grass_gis_driver/models/schema_base.py | marcjansen/openeo-grassgis-driver | 57b309819fdc456fba02cd1ab8fe6731ddfbb66a | [
"Apache-2.0"
] | 70 | 2018-03-09T11:28:12.000Z | 2022-02-17T09:06:17.000Z | src/openeo_grass_gis_driver/models/schema_base.py | marcjansen/openeo-grassgis-driver | 57b309819fdc456fba02cd1ab8fe6731ddfbb66a | [
"Apache-2.0"
] | 13 | 2018-03-12T09:58:24.000Z | 2022-02-23T10:40:11.000Z | # -*- coding: utf-8 -*-
import json
from typing import List, Optional
from flask import make_response
__author__ = "Sören Gebbert"
__copyright__ = "Copyright 2018, Sören Gebbert, mundialis"
__maintainer__ = "Sören Gebbert"
__email__ = "[email protected]"
def as_dict_without_nones(o):
d = o.__dict__
... | 24.659574 | 85 | 0.613891 | 3,857 | 0.831429 | 0 | 0 | 0 | 0 | 0 | 0 | 2,629 | 0.566717 |
e3fdd8b8cbc3926690972bd648e3656a84878e8f | 1,457 | py | Python | plugins/maya/inventory/action_update_namespace.py | davidlatwe/reveries-config | 4a282dd64a32a9b87bd1a070759b6425ff785d68 | [
"MIT"
] | 3 | 2020-04-01T10:51:17.000Z | 2021-08-05T18:35:23.000Z | plugins/maya/inventory/action_update_namespace.py | davidlatwe/reveries-config | 4a282dd64a32a9b87bd1a070759b6425ff785d68 | [
"MIT"
] | null | null | null | plugins/maya/inventory/action_update_namespace.py | davidlatwe/reveries-config | 4a282dd64a32a9b87bd1a070759b6425ff785d68 | [
"MIT"
] | 1 | 2020-07-05T12:06:30.000Z | 2020-07-05T12:06:30.000Z |
import avalon.api
class UpdateNamespace(avalon.api.InventoryAction):
"""Update container imprinted namespace
Sometimes artist may import loaded subsets from other scene, which
may prefixing an extra namespace on top of those subsets but the
namespace attribute in the container did not update hence a... | 29.734694 | 75 | 0.671929 | 1,435 | 0.9849 | 0 | 0 | 396 | 0.271791 | 0 | 0 | 605 | 0.415237 |
e3fff047d0d4657b650e98281fbe2b1e51ff6026 | 3,694 | py | Python | src/outpost/django/salt/serializers.py | medunigraz/outpost.django.salt | bb8d3cefeaa8444ce15979689abdd93ed993304b | [
"BSD-2-Clause"
] | null | null | null | src/outpost/django/salt/serializers.py | medunigraz/outpost.django.salt | bb8d3cefeaa8444ce15979689abdd93ed993304b | [
"BSD-2-Clause"
] | null | null | null | src/outpost/django/salt/serializers.py | medunigraz/outpost.django.salt | bb8d3cefeaa8444ce15979689abdd93ed993304b | [
"BSD-2-Clause"
] | null | null | null | import logging
import gpg
from rest_framework import serializers
from .conf import settings
from . import models
logger = logging.getLogger(__name__)
class PGPFileField(serializers.Field):
def to_representation(self, value):
with gpg.Context(armor=True) as c:
imp = c.key_import(settings.SAL... | 32.403509 | 88 | 0.674066 | 3,514 | 0.951272 | 0 | 0 | 0 | 0 | 0 | 0 | 545 | 0.147537 |
e3fff64e6905d157f27dedffc36bcf8b6222a9c6 | 11,950 | py | Python | demosauruswebapp/demosaurus/link_thesaurus.py | KBNLresearch/Demosaurus | 9235e315d9eef9d8d64f94a90ab4fc8220670ef2 | [
"Apache-2.0"
] | 1 | 2020-06-25T16:39:35.000Z | 2020-06-25T16:39:35.000Z | demosauruswebapp/demosaurus/link_thesaurus.py | KBNLresearch/Demosaurus | 9235e315d9eef9d8d64f94a90ab4fc8220670ef2 | [
"Apache-2.0"
] | 6 | 2020-03-06T12:31:38.000Z | 2021-09-20T15:08:17.000Z | demosauruswebapp/demosaurus/link_thesaurus.py | KBNLresearch/Demosaurus | 9235e315d9eef9d8d64f94a90ab4fc8220670ef2 | [
"Apache-2.0"
] | null | null | null | from flask import (
Blueprint, flash, g, redirect, render_template, get_template_attribute, request, url_for, jsonify
)
#from ....dataprocessing import # dataprocessin .read_rdf import
from demosauruswebapp.demosaurus.db import get_db
import pandas as pd
from nltk.metrics import distance as nl_distance
import re
im... | 49.585062 | 139 | 0.647699 | 0 | 0 | 0 | 0 | 752 | 0.062929 | 0 | 0 | 4,701 | 0.393389 |
5401d3f8943311c53015fddf7d9a9c7b00d0c8d8 | 6,784 | py | Python | solver.py | IvoryCandy/char-rnn | a21f3b198770c6c9bef0171bf31b2a1710066da8 | [
"Apache-2.0"
] | null | null | null | solver.py | IvoryCandy/char-rnn | a21f3b198770c6c9bef0171bf31b2a1710066da8 | [
"Apache-2.0"
] | null | null | null | solver.py | IvoryCandy/char-rnn | a21f3b198770c6c9bef0171bf31b2a1710066da8 | [
"Apache-2.0"
] | null | null | null | import math
import numpy as np
import torch
from torch import nn
from torch.backends import cudnn
from torch.utils.data import DataLoader
from tqdm import tqdm
from model import CharRNN
from data import TextDataset, TextConverter
class Trainer(object):
def __init__(self, args):
self.args = args
... | 31.849765 | 119 | 0.599204 | 6,544 | 0.964623 | 0 | 0 | 590 | 0.086969 | 0 | 0 | 380 | 0.056014 |
540226b4bbeda54cd1c6e6f8ca8daa02d21b75b8 | 17,360 | py | Python | mayday_control/scripts/motion_control.py | LasseBoerresen/Mayday | 3e40d9f3eb2727f78cfa915e19fb5706b6a53514 | [
"MIT"
] | 2 | 2020-08-20T15:44:44.000Z | 2021-09-27T07:21:59.000Z | mayday_control/scripts/motion_control.py | LasseBoerresen/Mayday | 3e40d9f3eb2727f78cfa915e19fb5706b6a53514 | [
"MIT"
] | 9 | 2018-03-02T15:21:22.000Z | 2020-11-07T12:23:09.000Z | mayday_control/scripts/motion_control.py | LasseBoerresen/Mayday | 3e40d9f3eb2727f78cfa915e19fb5706b6a53514 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
import time
import random
import math
import unittest
import numpy as np
import pandas as pd
import std_msgs
from std_msgs.msg import String
# from control_msgs.msg import JointControllerState
# from gazebo_msgs.msg import LinkStates
# import matplotlib.pyplot as plt
import dynamixel_adapter
##... | 33.643411 | 120 | 0.589286 | 10,733 | 0.61826 | 0 | 0 | 0 | 0 | 0 | 0 | 12,343 | 0.711002 |
5402f5bc7398b19a2c1f22b4890e4f4b84f51e3e | 10,278 | py | Python | venv/lib/python3.9/site-packages/trio/socket.py | almmello/frozen | c9928491f694b56a0023926bc763c703ba1fd75a | [
"BSD-2-Clause"
] | 3 | 2022-02-26T17:16:34.000Z | 2022-03-04T15:04:00.000Z | venv/lib/python3.9/site-packages/trio/socket.py | almmello/frozen | c9928491f694b56a0023926bc763c703ba1fd75a | [
"BSD-2-Clause"
] | 20 | 2021-05-03T18:02:23.000Z | 2022-03-12T12:01:04.000Z | venv/lib/python3.9/site-packages/trio/socket.py | almmello/frozen | c9928491f694b56a0023926bc763c703ba1fd75a | [
"BSD-2-Clause"
] | 1 | 2022-03-28T09:19:34.000Z | 2022-03-28T09:19:34.000Z | # This is a public namespace, so we don't want to expose any non-underscored
# attributes that aren't actually part of our public API. But it's very
# annoying to carefully always use underscored names for module-level
# temporaries, imports, etc. when implementing the module. So we put the
# implementation in an under... | 48.481132 | 84 | 0.748784 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1,814 | 0.176493 |
54036005b75aaa482dfeae48fd25d054393283e1 | 2,258 | py | Python | tests/test_encoders.py | alxlampe/d3rlpy | af7e6bd018a51f95138d121f59c50dc36ec87e3a | [
"MIT"
] | null | null | null | tests/test_encoders.py | alxlampe/d3rlpy | af7e6bd018a51f95138d121f59c50dc36ec87e3a | [
"MIT"
] | null | null | null | tests/test_encoders.py | alxlampe/d3rlpy | af7e6bd018a51f95138d121f59c50dc36ec87e3a | [
"MIT"
] | null | null | null | import pytest
from d3rlpy.models.torch.encoders import PixelEncoder
from d3rlpy.models.torch.encoders import PixelEncoderWithAction
from d3rlpy.models.torch.encoders import VectorEncoder
from d3rlpy.models.torch.encoders import VectorEncoderWithAction
from d3rlpy.encoders import create_encoder_factory
from d3rlpy.enco... | 35.84127 | 77 | 0.740478 | 0 | 0 | 0 | 0 | 1,848 | 0.818423 | 0 | 0 | 149 | 0.065988 |
5406dab8bc4f61a6b8581ae628a67e2632c2d5cd | 2,217 | py | Python | cam/03_face_recognition.py | kimtaehoho/osscap2020 | 7980ab742a1a90fb4405eeabe941504a0b859d20 | [
"Apache-2.0"
] | null | null | null | cam/03_face_recognition.py | kimtaehoho/osscap2020 | 7980ab742a1a90fb4405eeabe941504a0b859d20 | [
"Apache-2.0"
] | 10 | 2020-10-12T04:45:01.000Z | 2020-11-29T12:40:55.000Z | cam/03_face_recognition.py | kimtaehoho/osscap2020 | 7980ab742a1a90fb4405eeabe941504a0b859d20 | [
"Apache-2.0"
] | 1 | 2020-10-12T12:28:42.000Z | 2020-10-12T12:28:42.000Z | # -*- coding: utf-8 -*-
#import game
from glob import glob
file1 = glob("01_face_dataset.py")
file2 = glob("02_face_training.py")
import facedataset
import facetrain
import cv2
import numpy as np
import os
from PIL import Image
#facedataset.first()
#facetrain.second()
recognizer = cv2.face.LBPHFaceRecognizer_create()
... | 28.063291 | 81 | 0.620207 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 787 | 0.347768 |
540828fed7b9b1cf90bafa38feea72b4a282cfd0 | 1,047 | py | Python | deprecated/dpr/code/encoder.py | eunaoeh/mrc-level2-nlp-01 | caa893ca7d689200b3528377901d59fa9ca452ac | [
"MIT"
] | 1 | 2021-11-25T04:30:51.000Z | 2021-11-25T04:30:51.000Z | deprecated/dpr/code/encoder.py | eunaoeh/mrc-level2-nlp-01 | caa893ca7d689200b3528377901d59fa9ca452ac | [
"MIT"
] | null | null | null | deprecated/dpr/code/encoder.py | eunaoeh/mrc-level2-nlp-01 | caa893ca7d689200b3528377901d59fa9ca452ac | [
"MIT"
] | 5 | 2021-11-21T22:53:40.000Z | 2022-02-23T09:22:25.000Z | from transformers import (
RobertaModel,
RobertaPreTrainedModel,
BertModel,
BertPreTrainedModel,
)
class BertEncoder(BertPreTrainedModel):
def __init__(self, config):
super(BertEncoder, self).__init__(config)
self.bert = BertModel(config)
self.init_weights()
def forwa... | 25.536585 | 83 | 0.685769 | 926 | 0.884432 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 |
5408382e17eaa39a39eec48a1a272c02bf244807 | 3,395 | py | Python | tutorial/calculator/calculator.002.py | UltraStudioLTD/pyTermTk | a1e96b0e7f43906b9fda0b16f19f427919a055c2 | [
"MIT"
] | 1 | 2022-02-28T16:33:25.000Z | 2022-02-28T16:33:25.000Z | tutorial/calculator/calculator.002.py | UltraStudioLTD/pyTermTk | a1e96b0e7f43906b9fda0b16f19f427919a055c2 | [
"MIT"
] | null | null | null | tutorial/calculator/calculator.002.py | UltraStudioLTD/pyTermTk | a1e96b0e7f43906b9fda0b16f19f427919a055c2 | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
# MIT License
#
# Copyright (c) 2022 Eugenio Parodi <ceccopierangiolieugenio AT googlemail DOT com>
#
# 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 restricti... | 40.903614 | 86 | 0.742268 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2,024 | 0.596171 |
5408f0d69dd4b712a3e36a300e74e57a1812c78d | 4,433 | py | Python | dags/clix_static_visuals_dag.py | CLIxIndia-Dev/clix_dashboard_backend_AF | 4dc2f48fdd1ea312977f8237cec9b9fd71cc20b4 | [
"Apache-2.0"
] | null | null | null | dags/clix_static_visuals_dag.py | CLIxIndia-Dev/clix_dashboard_backend_AF | 4dc2f48fdd1ea312977f8237cec9b9fd71cc20b4 | [
"Apache-2.0"
] | null | null | null | dags/clix_static_visuals_dag.py | CLIxIndia-Dev/clix_dashboard_backend_AF | 4dc2f48fdd1ea312977f8237cec9b9fd71cc20b4 | [
"Apache-2.0"
] | 1 | 2020-03-17T06:40:25.000Z | 2020-03-17T06:40:25.000Z | # This DAG is for running python scripts to generate static visualisation data
# from syncthing every month end
import airflow
from airflow import DAG
from airflow.operators.bash_operator import BashOperator
from airflow.operators.python_operator import PythonOperator
from airflow.operators.dummy_operator import Dumm... | 39.230088 | 98 | 0.676291 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1,775 | 0.400406 |
540b37aa828992718d326e40cc3e8c5c7baaf141 | 67 | py | Python | nadl/__init__.py | siAyush/nadl | 8aa698231e1d198bf823a58c84f139f6f93bc7df | [
"MIT"
] | 7 | 2021-05-18T11:16:49.000Z | 2021-05-30T20:25:12.000Z | nadl/__init__.py | siAyush/nadl | 8aa698231e1d198bf823a58c84f139f6f93bc7df | [
"MIT"
] | null | null | null | nadl/__init__.py | siAyush/nadl | 8aa698231e1d198bf823a58c84f139f6f93bc7df | [
"MIT"
] | 1 | 2022-03-02T19:52:25.000Z | 2022-03-02T19:52:25.000Z | from nadl.tensor import Tensor
from nadl.parameter import Parameter | 33.5 | 36 | 0.865672 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 |