hexsha
stringlengths
40
40
size
int64
1
1.03M
ext
stringclasses
10 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
3
239
max_stars_repo_name
stringlengths
5
130
max_stars_repo_head_hexsha
stringlengths
40
78
max_stars_repo_licenses
listlengths
1
10
max_stars_count
int64
1
191k
⌀
max_stars_repo_stars_event_min_datetime
stringlengths
24
24
⌀
max_stars_repo_stars_event_max_datetime
stringlengths
24
24
⌀
max_issues_repo_path
stringlengths
3
239
max_issues_repo_name
stringlengths
5
130
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
239
max_forks_repo_name
stringlengths
5
130
max_forks_repo_head_hexsha
stringlengths
40
78
max_forks_repo_licenses
listlengths
1
10
max_forks_count
int64
1
105k
⌀
max_forks_repo_forks_event_min_datetime
stringlengths
24
24
⌀
max_forks_repo_forks_event_max_datetime
stringlengths
24
24
⌀
content
stringlengths
1
1.03M
avg_line_length
float64
1
958k
max_line_length
int64
1
1.03M
alphanum_fraction
float64
0
1
797c9b9db4e81c431fb8e75308c4821896d168e8
14,867
py
Python
tools/camflasher/main.py
yansinan/pycameresp
e239b4db110bffeb6bbdae6930d2b78562d21e35
[ "MIT" ]
null
null
null
tools/camflasher/main.py
yansinan/pycameresp
e239b4db110bffeb6bbdae6930d2b78562d21e35
[ "MIT" ]
null
null
null
tools/camflasher/main.py
yansinan/pycameresp
e239b4db110bffeb6bbdae6930d2b78562d21e35
[ "MIT" ]
null
null
null
#!/usr/bin/python3 """ Tools to flash the firmware of pycameresp """ # Requirements : # - pip3 install serial # - pip3 install pyinstaller # - pip3 install esptool # - pip3 install pyserial # For windows seven # - pip3 install pyqt5 # For windows 10, 11, linux, osx # - pip3 install pyqt6 # # pylint:disable=no-name-in-m...
34.981176
131
0.688841
797c9c6d26ca922e67ead625b47e1dd608990310
1,234
py
Python
deploy.py
uclaupe-tutoring/website
b36ea770d9b950b0f753b03f45864a25ebd10982
[ "MIT" ]
null
null
null
deploy.py
uclaupe-tutoring/website
b36ea770d9b950b0f753b03f45864a25ebd10982
[ "MIT" ]
null
null
null
deploy.py
uclaupe-tutoring/website
b36ea770d9b950b0f753b03f45864a25ebd10982
[ "MIT" ]
null
null
null
#!/usr/local/bin/python import argparse import distutils.spawn import shutil import subprocess import os DEV_APPSERVER_PATH = distutils.spawn.find_executable('dev_appserver.py') GCLOUD_PATH = distutils.spawn.find_executable('gcloud') APP_PATH = os.path.join(os.path.dirname(__file__), 'app') LIB_PATH = os.path.join(...
23.730769
78
0.649919
797c9d54bb526661ad6ef51071c9e072ca74a0a6
2,502
py
Python
cluster/silhouette.py
jzhang1198/project5
21fe3c2aafa959081e291b2f4e79407fc1f19804
[ "MIT" ]
null
null
null
cluster/silhouette.py
jzhang1198/project5
21fe3c2aafa959081e291b2f4e79407fc1f19804
[ "MIT" ]
null
null
null
cluster/silhouette.py
jzhang1198/project5
21fe3c2aafa959081e291b2f4e79407fc1f19804
[ "MIT" ]
null
null
null
import numpy as np from scipy.spatial.distance import cdist class Silhouette: def __init__(self, metric: str = "euclidean"): """ inputs: metric: str the name of the distance metric to use """ self.metric = metric def score(self, X: np.ndarray, y: np...
41.016393
166
0.617106
797c9f357b3d7b7e8d1aa838afa92f1abd7788d5
5,531
py
Python
tests/test_bybit.py
PAV-Laboratory/crypto_data_fetcher
6cd79260a68add5283255f1e6ff03a9d79dd21ea
[ "CC0-1.0" ]
1
2021-08-01T19:39:54.000Z
2021-08-01T19:39:54.000Z
tests/test_bybit.py
PAV-Laboratory/crypto_data_fetcher
6cd79260a68add5283255f1e6ff03a9d79dd21ea
[ "CC0-1.0" ]
null
null
null
tests/test_bybit.py
PAV-Laboratory/crypto_data_fetcher
6cd79260a68add5283255f1e6ff03a9d79dd21ea
[ "CC0-1.0" ]
null
null
null
import time import ccxt import pandas as pd from unittest import TestCase from crypto_data_fetcher.bybit import BybitFetcher class TestBybit(TestCase): def test_fetch_ohlcv_initial(self): bybit = ccxt.bybit() fetcher = BybitFetcher(ccxt_client=bybit) df = fetcher.fetch_ohlcv( m...
33.932515
123
0.578015
797c9f3ae1e7c909a755e7faadf48ec09834b40f
26,678
py
Python
greykite/tests/sklearn/estimator/test_base_silverkite_estimator.py
briancpark/greykite
2f484978a7ed206ebd9356e02fc1fb881cd25205
[ "BSD-2-Clause" ]
null
null
null
greykite/tests/sklearn/estimator/test_base_silverkite_estimator.py
briancpark/greykite
2f484978a7ed206ebd9356e02fc1fb881cd25205
[ "BSD-2-Clause" ]
null
null
null
greykite/tests/sklearn/estimator/test_base_silverkite_estimator.py
briancpark/greykite
2f484978a7ed206ebd9356e02fc1fb881cd25205
[ "BSD-2-Clause" ]
null
null
null
import datetime import numpy as np import modin.pandas as pd import pytest from sklearn.exceptions import NotFittedError from sklearn.metrics import mean_absolute_error from sklearn.metrics import mean_squared_error from testfixtures import LogCapture import greykite.common.constants as cst from greykite.algo.forecas...
37.469101
101
0.630482
797c9fbd4caad6434e885c1b990904623c73518d
821
py
Python
variation/translators/genomic_duplication.py
cancervariants/variant-normalization
e89a9f8366a659c82b2042aeb7effe339851bfb4
[ "MIT" ]
1
2022-01-19T18:17:49.000Z
2022-01-19T18:17:49.000Z
variation/translators/genomic_duplication.py
cancervariants/variation-normalization
9c8fbab1562591ae9445d82ddd15df29f1ea1f5a
[ "MIT" ]
99
2021-06-07T12:50:34.000Z
2022-03-23T13:38:29.000Z
variation/translators/genomic_duplication.py
cancervariants/variant-normalization
e89a9f8366a659c82b2042aeb7effe339851bfb4
[ "MIT" ]
null
null
null
"""Module for Genomic Duplication Translation.""" from variation.translators.translator import Translator from variation.schemas.classification_response_schema import ClassificationType from variation.schemas.token_response_schema import \ GenomicDuplicationRangeToken, GenomicDuplicationToken class GenomicDuplica...
43.210526
79
0.750305
797ca049bb093cb279f2826d1eb8a659e674a5b8
1,102
py
Python
foronoi/observers/debug_observer.py
yagna2652/foronoi
e5ce3ae825857a326267ee18e90f525e83ae2003
[ "MIT" ]
24
2018-09-02T00:38:16.000Z
2021-03-09T02:46:21.000Z
foronoi/observers/debug_observer.py
yagna2652/foronoi
e5ce3ae825857a326267ee18e90f525e83ae2003
[ "MIT" ]
8
2019-12-23T04:15:30.000Z
2021-03-25T01:08:05.000Z
foronoi/observers/debug_observer.py
yagna2652/foronoi
e5ce3ae825857a326267ee18e90f525e83ae2003
[ "MIT" ]
6
2020-01-01T10:26:55.000Z
2021-04-02T09:14:23.000Z
from abc import ABC from foronoi.observers.message import Message from foronoi.observers.observer import Observer from foronoi.observers.subject import Subject class DebugObserver(Observer, ABC): def __init__(self, callback=None): """ Listens to debug messages. Parameters -------...
30.611111
115
0.625227
797ca1c851705070bf3c20a7dd1811c6d21f25d3
4,274
py
Python
tests/pc/test_po_cleanup.py
arista-northwest/sonic-mgmt
ef83219cf68b03693aedf22c22a040000a491a64
[ "Apache-2.0" ]
1
2021-02-22T05:32:02.000Z
2021-02-22T05:32:02.000Z
tests/pc/test_po_cleanup.py
arista-northwest/sonic-mgmt
ef83219cf68b03693aedf22c22a040000a491a64
[ "Apache-2.0" ]
1
2021-04-29T03:00:53.000Z
2021-04-29T03:00:53.000Z
tests/pc/test_po_cleanup.py
arista-northwest/sonic-mgmt
ef83219cf68b03693aedf22c22a040000a491a64
[ "Apache-2.0" ]
1
2021-08-20T03:34:30.000Z
2021-08-20T03:34:30.000Z
import pytest import logging from tests.common.utilities import wait_until from tests.common import config_reload from tests.common.plugins.loganalyzer.loganalyzer import LogAnalyzer pytestmark = [ pytest.mark.topology('any'), ] LOG_EXPECT_PO_CLEANUP_RE = "cleanTeamProcesses: Sent SIGTERM to port channel.*{}.*" ...
39.943925
173
0.723912
797ca2bbe27455c281e38667c6500620fc4eafd7
16,818
py
Python
jenkins_jobs/local_yaml.py
caohhung/jenkins-job-builder
5fe749ef36d71803f923c1c0306debd021c288a3
[ "Apache-2.0" ]
null
null
null
jenkins_jobs/local_yaml.py
caohhung/jenkins-job-builder
5fe749ef36d71803f923c1c0306debd021c288a3
[ "Apache-2.0" ]
12
2015-11-30T17:13:11.000Z
2022-03-18T10:58:07.000Z
jenkins_jobs/local_yaml.py
caohhung/jenkins-job-builder
5fe749ef36d71803f923c1c0306debd021c288a3
[ "Apache-2.0" ]
11
2016-10-25T12:03:32.000Z
2021-04-27T12:16:51.000Z
#!/usr/bin/env python # Copyright (C) 2013 Hewlett-Packard. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable la...
34.392638
79
0.669461
797ca2ed27a0143ba071e72877ef55782c196d59
8,073
py
Python
py/facerec/classifier.py
dashmoment/facerecognition
9115c6675be5757a23a46e4c7af5f625f78ddf74
[ "BSD-3-Clause" ]
1
2019-04-23T21:50:08.000Z
2019-04-23T21:50:08.000Z
py/facerec/classifier.py
Tester2009/facerec
d19217e9a146cac65579ff8e0251e9ca26c2ec95
[ "BSD-3-Clause" ]
null
null
null
py/facerec/classifier.py
Tester2009/facerec
d19217e9a146cac65579ff8e0251e9ca26c2ec95
[ "BSD-3-Clause" ]
2
2019-02-14T08:13:33.000Z
2019-04-23T21:47:48.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- # Copyright (c) Philipp Wagner. All rights reserved. # Licensed under the BSD license. See LICENSE file in the project root for full license information. from facerec.distance import EuclideanDistance from facerec.util import asRowMatrix import logging import numpy as np ...
43.171123
446
0.627895
797ca3077f9890e5f379c80b51e50334b66df689
11,923
py
Python
sdk/python/pulumi_azure_native/web/v20181101/list_web_app_backup_status_secrets_slot.py
pulumi-bot/pulumi-azure-native
f7b9490b5211544318e455e5cceafe47b628e12c
[ "Apache-2.0" ]
null
null
null
sdk/python/pulumi_azure_native/web/v20181101/list_web_app_backup_status_secrets_slot.py
pulumi-bot/pulumi-azure-native
f7b9490b5211544318e455e5cceafe47b628e12c
[ "Apache-2.0" ]
null
null
null
sdk/python/pulumi_azure_native/web/v20181101/list_web_app_backup_status_secrets_slot.py
pulumi-bot/pulumi-azure-native
f7b9490b5211544318e455e5cceafe47b628e12c
[ "Apache-2.0" ]
null
null
null
# coding=utf-8 # *** WARNING: this file was generated by the Pulumi SDK Generator. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** import warnings import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union from ... import _utilities, _tables from...
39.611296
321
0.640611
797ca30a715e6932bd9e0fbd721401b53a71af58
34,135
py
Python
software/glasgow/protocol/jtag_svf.py
yorickvP/Glasgow
0e0adebf008875769bd71a5a08089fde71cc2bb7
[ "Apache-2.0", "0BSD" ]
null
null
null
software/glasgow/protocol/jtag_svf.py
yorickvP/Glasgow
0e0adebf008875769bd71a5a08089fde71cc2bb7
[ "Apache-2.0", "0BSD" ]
null
null
null
software/glasgow/protocol/jtag_svf.py
yorickvP/Glasgow
0e0adebf008875769bd71a5a08089fde71cc2bb7
[ "Apache-2.0", "0BSD" ]
null
null
null
# Ref: https://www.asset-intertech.com/eresources/svf-serial-vector-format-specification-jtag-boundary-scan # Accession: G00022 # Ref: http://www.jtagtest.com/pdf/svf_specification.pdf # Accession: G00023 import re from abc import ABCMeta, abstractmethod from bitarray import bitarray __all__ = ["SVFParser", "SVFEven...
37.718232
107
0.503061
797ca3d141bc8a8e49134bfa4199db2e53a0e2f5
513
py
Python
packages/python/plotly/plotly/validators/icicle/marker/colorbar/_ticklabelstep.py
mastermind88/plotly.py
efa70710df1af22958e1be080e105130042f1839
[ "MIT" ]
null
null
null
packages/python/plotly/plotly/validators/icicle/marker/colorbar/_ticklabelstep.py
mastermind88/plotly.py
efa70710df1af22958e1be080e105130042f1839
[ "MIT" ]
null
null
null
packages/python/plotly/plotly/validators/icicle/marker/colorbar/_ticklabelstep.py
mastermind88/plotly.py
efa70710df1af22958e1be080e105130042f1839
[ "MIT" ]
null
null
null
import _plotly_utils.basevalidators class TicklabelstepValidator(_plotly_utils.basevalidators.IntegerValidator): def __init__( self, plotly_name="ticklabelstep", parent_name="icicle.marker.colorbar", **kwargs, ): super(TicklabelstepValidator, self).__init__( ...
28.5
76
0.623782
797ca4267e0d9d1e9143c8e18c9827fa65ab7f44
1,138
py
Python
runoob/basic_tutorial/str_is.py
zeroonegit/python
919f8bb14ae91e37e42ff08192df24b60135596f
[ "MIT" ]
1
2017-03-30T00:43:40.000Z
2017-03-30T00:43:40.000Z
runoob/basic_tutorial/str_is.py
QuinceySun/Python
919f8bb14ae91e37e42ff08192df24b60135596f
[ "MIT" ]
null
null
null
runoob/basic_tutorial/str_is.py
QuinceySun/Python
919f8bb14ae91e37e42ff08192df24b60135596f
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- ############################ # File Name: str_is.py # Author: One Zero # Mail: zeroonegit@gmail.com # Created Time: 2015-12-28 00:59:48 ############################ # 测试实例一 print('测试实例一') str = 'zeroonegit@gmail.com' print(str.isalnum()) # 判断所有字符都是数字或者字...
34.484848
63
0.484183
797ca45327342f17cc948f2ec3716d8d56a17dab
534
py
Python
src/blade/build_rules.py
WindLeeWT/typhoon-blade
388e0d891d09396628088f49173651b81ec81b79
[ "BSD-3-Clause" ]
2
2021-06-29T13:42:22.000Z
2021-09-06T10:57:34.000Z
src/blade/build_rules.py
WindLeeWT/typhoon-blade
388e0d891d09396628088f49173651b81ec81b79
[ "BSD-3-Clause" ]
null
null
null
src/blade/build_rules.py
WindLeeWT/typhoon-blade
388e0d891d09396628088f49173651b81ec81b79
[ "BSD-3-Clause" ]
5
2021-06-29T13:42:26.000Z
2022-02-08T02:41:34.000Z
# Copyright (c) 2013 Tencent Inc. # All rights reserved. # # Author: Feng Chen <phongchen@tencent.com> """ Manage symbols can be used in BUILD files. """ __build_rules = {} def register_variable(name, value): """Register a variable that accessiable in BUILD file """ __build_rules[name] = value def regi...
19.071429
78
0.691011
797ca479ca6711f234d8f455444fc8f6709cc8a9
2,425
py
Python
v0.1/core/fabfile.py
Miki-AG/ngLaunchpad
5f62bfcb04beb44f1ec211b935875a592d96a830
[ "MIT" ]
null
null
null
v0.1/core/fabfile.py
Miki-AG/ngLaunchpad
5f62bfcb04beb44f1ec211b935875a592d96a830
[ "MIT" ]
null
null
null
v0.1/core/fabfile.py
Miki-AG/ngLaunchpad
5f62bfcb04beb44f1ec211b935875a592d96a830
[ "MIT" ]
null
null
null
import sys from fabric.api import * from fabric.colors import green, red, green, yellow from fabric.contrib.files import exists from fabric.contrib import * from django.template import Template import os import layout_settings #set_operating_system() """ Basic commands: """ def show_help(): """ help ...
25.260417
127
0.65732
797ca65a1b8f12bac2e60305e0fad148bd2647ec
12,179
py
Python
Adafruit_Python_LED_Backpack/Matrix16x8LedDisplay/MultiMatrix8x8Display.py
pro585code/RaspDroid-SeverSide
fbb333ee7261eab6eda41a22fd7940050d38e95a
[ "MIT" ]
1
2018-04-02T08:06:51.000Z
2018-04-02T08:06:51.000Z
Adafruit_Python_LED_Backpack/Matrix16x8LedDisplay/MultiMatrix8x8Display.py
pro585code/RaspDroid-SeverSide
fbb333ee7261eab6eda41a22fd7940050d38e95a
[ "MIT" ]
null
null
null
Adafruit_Python_LED_Backpack/Matrix16x8LedDisplay/MultiMatrix8x8Display.py
pro585code/RaspDroid-SeverSide
fbb333ee7261eab6eda41a22fd7940050d38e95a
[ "MIT" ]
null
null
null
__author__ = 'youngsoul' # 70 - display 1 # 72 - display 2 # 71 - display 3 # 74 - display 4 from Adafruit_LED_Backpack import Matrix8x8 import time import platform import math import hashlib import base64 import os.path if platform.system() == "Linux": from PIL import ImageFont from PIL import Image from...
39.67101
249
0.586419
797ca697fcb7bbc94b059021d5f279ba732d66e2
12,918
py
Python
lib/sqlalchemy/sql/events.py
Dreamsorcerer/sqlalchemy
153671df9d4cd7f2cdb3e14e6221f529269885d9
[ "MIT" ]
null
null
null
lib/sqlalchemy/sql/events.py
Dreamsorcerer/sqlalchemy
153671df9d4cd7f2cdb3e14e6221f529269885d9
[ "MIT" ]
null
null
null
lib/sqlalchemy/sql/events.py
Dreamsorcerer/sqlalchemy
153671df9d4cd7f2cdb3e14e6221f529269885d9
[ "MIT" ]
null
null
null
# sqlalchemy/sql/events.py # Copyright (C) 2005-2020 the SQLAlchemy authors and contributors # <see AUTHORS file> # # This module is part of SQLAlchemy and is released under # the MIT License: http://www.opensource.org/licenses/mit-license.php from .base import SchemaEventTarget from .. import event class DDLEvents(...
40.242991
79
0.651107
797ca75c476d0ff4f0d7b9f6a9115598bd75825a
9,919
py
Python
python/sparkts/models/test/test_GARCH.py
WeiwenRen/spark-timeseries
f50592901a169c2ade4593dd6035372b121b20ca
[ "Apache-2.0" ]
null
null
null
python/sparkts/models/test/test_GARCH.py
WeiwenRen/spark-timeseries
f50592901a169c2ade4593dd6035372b121b20ca
[ "Apache-2.0" ]
null
null
null
python/sparkts/models/test/test_GARCH.py
WeiwenRen/spark-timeseries
f50592901a169c2ade4593dd6035372b121b20ca
[ "Apache-2.0" ]
null
null
null
import numpy as np from sparkts.models import ARGARCH, GARCH from sparkts.models.ARGARCH import ARGARCHModel from sparkts.models.GARCH import GARCHModel from sparkts.test.test_utils import PySparkTestCase class FitGARCHModelTestCase(PySparkTestCase): def test_log_likelihood(self): model = GARCHModel(0.2,...
24.491358
88
0.262426
797ca761b9089069970d587adb5793d9ecb2ea4a
1,587
py
Python
server.py
nicoinn/mockup_REST
152f3d30b0be7f9e2113b221b9a1d29675448f04
[ "Apache-2.0" ]
null
null
null
server.py
nicoinn/mockup_REST
152f3d30b0be7f9e2113b221b9a1d29675448f04
[ "Apache-2.0" ]
null
null
null
server.py
nicoinn/mockup_REST
152f3d30b0be7f9e2113b221b9a1d29675448f04
[ "Apache-2.0" ]
null
null
null
from flask import ( Flask, render_template ) from flask import request, Response import tailer # Create the application instance app = Flask(__name__, template_folder="templates") # Create a URL route in our application for "/" @app.route('/') def home(): """ This function just responds to the bro...
22.352113
63
0.627599
797caa4f084317fd625ea355bca77779a8c5944b
337
py
Python
platform/hwconf_data/zgm13/modules/BULBPWM_COLOR/BULBPWM_COLOR_behavior.py
lenloe1/v2.7
9ac9c4a7bb37987af382c80647f42d84db5f2e1d
[ "Zlib" ]
null
null
null
platform/hwconf_data/zgm13/modules/BULBPWM_COLOR/BULBPWM_COLOR_behavior.py
lenloe1/v2.7
9ac9c4a7bb37987af382c80647f42d84db5f2e1d
[ "Zlib" ]
1
2020-08-25T02:36:22.000Z
2020-08-25T02:36:22.000Z
platform/hwconf_data/zgm13/modules/BULBPWM_COLOR/BULBPWM_COLOR_behavior.py
lenloe1/v2.7
9ac9c4a7bb37987af382c80647f42d84db5f2e1d
[ "Zlib" ]
1
2020-08-25T01:56:04.000Z
2020-08-25T01:56:04.000Z
from . import ExporterModel from . import BULBPWM_COLOR_model from . import RuntimeModel class BULBPWM_COLOR(ExporterModel.Module): def __init__(self, name=None): if not name: name = self.__class__.__name__ super(BULBPWM_COLOR, self).__init__(name, visible=True) self.model = BU...
30.636364
63
0.715134
797caa62512ec8d534731559e7de9a4d8c50a8a5
1,689
py
Python
app.py
hbontempo-br/broker-api
992118bcb2754df34053a6dd56020d2e3002ce78
[ "MIT" ]
null
null
null
app.py
hbontempo-br/broker-api
992118bcb2754df34053a6dd56020d2e3002ce78
[ "MIT" ]
null
null
null
app.py
hbontempo-br/broker-api
992118bcb2754df34053a6dd56020d2e3002ce78
[ "MIT" ]
null
null
null
# Logger is started here because it needs to run before packages have their own logging # configuration and invalidates this customization from utils.logger import BaseLogger # noqa: E402 BaseLogger().config() # noqa: E402 import logging # noqa: E402 import falcon # noqa: E402 from api.adapters.sink import SinkA...
31.277778
94
0.746596
797cab6b02b881edaeb1eb25fe5ceca971c2878f
1,196
py
Python
Project Files/Basic Navigation/DD2.py
Iceman1590/AT-TVectorAirgig
7a3fb03ba9c2dd53108d6e8164d36938e56187e1
[ "Apache-2.0" ]
null
null
null
Project Files/Basic Navigation/DD2.py
Iceman1590/AT-TVectorAirgig
7a3fb03ba9c2dd53108d6e8164d36938e56187e1
[ "Apache-2.0" ]
null
null
null
Project Files/Basic Navigation/DD2.py
Iceman1590/AT-TVectorAirgig
7a3fb03ba9c2dd53108d6e8164d36938e56187e1
[ "Apache-2.0" ]
null
null
null
import time import anki_vector from anki_vector.util import degrees, distance_mm, speed_mmps def main(): args = anki_vector.util.parse_command_args() num = 1 with anki_vector.Robot(args.serial, show_viewer=True, enable_face_detection=False, show_3d_viewer=True, enable_nav_map_feed=True) as robot: with a...
29.170732
141
0.593645
797cabfbf654535b62198ba00c30c19d79400605
2,786
py
Python
.runtime/symbol_table.py
efocht/aurora-runtime
ef8763930c741fec4313604ec2413a829e085503
[ "BSD-3-Clause" ]
2
2020-01-22T22:17:42.000Z
2020-09-23T09:51:36.000Z
.runtime/symbol_table.py
efocht/aurora-runtime
ef8763930c741fec4313604ec2413a829e085503
[ "BSD-3-Clause" ]
null
null
null
.runtime/symbol_table.py
efocht/aurora-runtime
ef8763930c741fec4313604ec2413a829e085503
[ "BSD-3-Clause" ]
1
2020-01-21T17:58:58.000Z
2020-01-21T17:58:58.000Z
import os import sys import argparse import re import glob import parser.pycparser as pcp import parser.pycparser.c_generator from src.find_kernels import GetFunctionTable ################################################################################ ################################################################...
32.776471
96
0.544867
797cacb395748d01ce62bb2e68af7b81417391c5
1,910
py
Python
8_create-ninja-season-files.py
dmuehlemann/RPGV
18b4216e6cedce40a020a57e1822a363a8a6b60c
[ "MIT" ]
null
null
null
8_create-ninja-season-files.py
dmuehlemann/RPGV
18b4216e6cedce40a020a57e1822a363a8a6b60c
[ "MIT" ]
2
2021-12-14T11:54:18.000Z
2021-12-15T10:03:37.000Z
8_create-ninja-season-files.py
dmuehlemann/RPGV
18b4216e6cedce40a020a57e1822a363a8a6b60c
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ Created on Thu Jan 21 13:30:25 2021 @author: Dirk """ # -*- coding: utf-8 -*- """ Created on Tue Oct 27 13:33:08 2020 @author: Dirk This scripts creates a file for each weather regimes and season with its capacity factor from renewables.ninja """ from pathlib import Path import xarra...
27.681159
102
0.574869
797cae53f3c7dd7c3161340d00a559fd2a157393
2,487
py
Python
email_tracker/backends.py
MagicSolutions/django-email-tracker
55a9ca1a958283bb94541d5fea548521cec39101
[ "MIT" ]
1
2021-04-05T12:37:51.000Z
2021-04-05T12:37:51.000Z
email_tracker/backends.py
IndustriaTech/django-email-tracker
55a9ca1a958283bb94541d5fea548521cec39101
[ "MIT" ]
null
null
null
email_tracker/backends.py
IndustriaTech/django-email-tracker
55a9ca1a958283bb94541d5fea548521cec39101
[ "MIT" ]
null
null
null
import warnings import threading from django.core.mail import get_connection from django.core.mail.backends.base import BaseEmailBackend from email_tracker.conf import settings from email_tracker.compat import make_msgid from email_tracker.models import TrackedEmail class EmailBackendWrapper(BaseEmailBackend): ...
32.298701
109
0.669883
797cb011110c3e033bf18ced277ea8cc1b95f93d
2,244
py
Python
rdr_service/tools/generate_questionnaire_response_answer_spec.py
all-of-us/raw-data-repository
d28ad957557587b03ff9c63d55dd55e0508f91d8
[ "BSD-3-Clause" ]
39
2017-10-13T19:16:27.000Z
2021-09-24T16:58:21.000Z
rdr_service/tools/generate_questionnaire_response_answer_spec.py
all-of-us/raw-data-repository
d28ad957557587b03ff9c63d55dd55e0508f91d8
[ "BSD-3-Clause" ]
312
2017-09-08T15:42:13.000Z
2022-03-23T18:21:40.000Z
rdr_service/tools/generate_questionnaire_response_answer_spec.py
all-of-us/raw-data-repository
d28ad957557587b03ff9c63d55dd55e0508f91d8
[ "BSD-3-Clause" ]
19
2017-09-15T13:58:00.000Z
2022-02-07T18:33:20.000Z
"""Generates a JSON questionnaire response answer spec based off data in the database.""" import csv from sqlalchemy import text from rdr_service.dao import database_factory from rdr_service.main_util import get_parser _BATCH_SIZE = 1000 _QUESTION_SPEC_SQL = """ SELECT module, question_code, COUNT(DIS...
37.4
89
0.71836
797cb0b7597e4461e2622b4671fc8f0f9290503b
3,175
py
Python
svg_plotter.py
rohankumardubey/pylt
cc86fadbfdb774d5e99d0d9d86aec2ccdb842d84
[ "Beerware" ]
null
null
null
svg_plotter.py
rohankumardubey/pylt
cc86fadbfdb774d5e99d0d9d86aec2ccdb842d84
[ "Beerware" ]
null
null
null
svg_plotter.py
rohankumardubey/pylt
cc86fadbfdb774d5e99d0d9d86aec2ccdb842d84
[ "Beerware" ]
null
null
null
#/usr/local/bin/python # # A rudimentary pen plotter which outputs SVG files # class plotter(): def __init__(self, fname="_.svg"): self.width = "6in" self.height = "4.5in" self.bbox_coord = None self.bgcolor = None self.__pencolor = "black" self.__penwidth = 3 self.__started = False self.__up = True...
22.841727
77
0.60126
797cb295a7e1d87eeecc5830cedcce6a1e59e9af
559
py
Python
corey-schafer/concurrency-parallelism/multiprocessing/09_concurrent_futures.py
phunc20/youtube
265c6c4e07c14db42ecc4e3a677ec9ad6f886d2e
[ "MIT" ]
null
null
null
corey-schafer/concurrency-parallelism/multiprocessing/09_concurrent_futures.py
phunc20/youtube
265c6c4e07c14db42ecc4e3a677ec9ad6f886d2e
[ "MIT" ]
null
null
null
corey-schafer/concurrency-parallelism/multiprocessing/09_concurrent_futures.py
phunc20/youtube
265c6c4e07c14db42ecc4e3a677ec9ad6f886d2e
[ "MIT" ]
null
null
null
import concurrent.futures import time start = time.perf_counter() def schlafen(n_sec=1): print(f"Sleep for {n_sec}(s) ...") time.sleep(n_sec) res = f"Done sleeping {n_sec}(s) ..." print(res) return res with concurrent.futures.ProcessPoolExecutor() as executor: f1 = executor.submit(schlafen, 2...
26.619048
58
0.661896
797cb29927791ce887ee6fde98de345502397f05
1,572
py
Python
jaad/exceptions.py
AmadeusITGroup/jaad
9cc818c7011243c82224256f52abf734cea33298
[ "BSD-3-Clause" ]
null
null
null
jaad/exceptions.py
AmadeusITGroup/jaad
9cc818c7011243c82224256f52abf734cea33298
[ "BSD-3-Clause" ]
null
null
null
jaad/exceptions.py
AmadeusITGroup/jaad
9cc818c7011243c82224256f52abf734cea33298
[ "BSD-3-Clause" ]
null
null
null
import traceback import logging import sys from django.conf import settings from rest_framework.exceptions import APIException from rest_framework.response import Response from rest_framework.views import exception_handler as default_exception_handler def exception_handler(exc, context): # Call REST framework'...
32.75
84
0.616412
797cb2e6238ed0ffde5c2463eccd25a3d04295cb
1,580
py
Python
src/urtypes/bytes.py
selfcustody/urtypes
8ff8e6ebe484d7a0f98ad73f4441708704998b43
[ "MIT" ]
null
null
null
src/urtypes/bytes.py
selfcustody/urtypes
8ff8e6ebe484d7a0f98ad73f4441708704998b43
[ "MIT" ]
null
null
null
src/urtypes/bytes.py
selfcustody/urtypes
8ff8e6ebe484d7a0f98ad73f4441708704998b43
[ "MIT" ]
null
null
null
# The MIT License (MIT) # Copyright (c) 2021 Tom J. Sun # 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, ...
34.347826
79
0.73481
797cb46f8c4e6145b8ae96dfbe64bfa772f8856b
1,827
py
Python
validate_rms_frequency_domain.py
antonyvm1102/Redbox
8aa7feeaa6513275e7e78ed6cc049bed50bf1ec2
[ "MIT" ]
null
null
null
validate_rms_frequency_domain.py
antonyvm1102/Redbox
8aa7feeaa6513275e7e78ed6cc049bed50bf1ec2
[ "MIT" ]
null
null
null
validate_rms_frequency_domain.py
antonyvm1102/Redbox
8aa7feeaa6513275e7e78ed6cc049bed50bf1ec2
[ "MIT" ]
null
null
null
import signal_processing as sp import time import matplotlib.pyplot as plt import numpy as np import math """ Validate translation of known time signal to RMS values per 1/3 octave band frequencies """ start_time = time.time() sampling_rate = 400 n_samples = 2**19 ...
33.833333
111
0.642583
797cb557b8c34e821b952d9983047e2c5703da3e
5,178
py
Python
efficient_vdvae_jax/model/schedules.py
Rayhane-mamah/Efficient-VDVAE
07bcb8ba58c228ab0ed62c5cf374c19a10932010
[ "MIT" ]
41
2022-03-25T17:13:14.000Z
2022-03-31T22:49:08.000Z
efficient_vdvae_jax/model/schedules.py
Rayhane-mamah/Efficient-VDVAE
07bcb8ba58c228ab0ed62c5cf374c19a10932010
[ "MIT" ]
2
2022-03-28T04:55:46.000Z
2022-03-29T01:52:58.000Z
efficient_vdvae_jax/model/schedules.py
Rayhane-mamah/Efficient-VDVAE
07bcb8ba58c228ab0ed62c5cf374c19a10932010
[ "MIT" ]
3
2022-03-28T16:52:28.000Z
2022-03-31T16:55:12.000Z
import jax import jax.numpy as jnp import jax.lax as lax from hparams import HParams hparams = HParams.get_hparams_by_name("efficient_vdvae") def get_lr_schedule(decay_scheme, init_lr, warmup_steps, decay_steps, decay_rate, decay_start, min_lr): if decay_scheme == 'noam': return NoamSchedule(init_lr, war...
36.464789
135
0.653341
797cb5a06909e926571030e76cef5b098d2e55a7
111
py
Python
core/parsers.py
hassan-cedeno/mlb
3b1f9bd8db342da9613d4230d3f214ba82be400e
[ "MIT" ]
1
2021-04-08T18:40:14.000Z
2021-04-08T18:40:14.000Z
core/parsers.py
hassan-cedeno/mlb
3b1f9bd8db342da9613d4230d3f214ba82be400e
[ "MIT" ]
null
null
null
core/parsers.py
hassan-cedeno/mlb
3b1f9bd8db342da9613d4230d3f214ba82be400e
[ "MIT" ]
null
null
null
def clean_reference_files(data): h_row = data[0] return [dict(zip(h_row, r)) for r in data[1:-1]]
22.2
52
0.621622
797cb5dee038c6c9bf46645452641d07d3dc0530
607
py
Python
examples/gslib/read-point-set.py
tkoyama010/PVGeo
d2852b07be5411ca4b3a96f886ae864bbf6d09d8
[ "BSD-3-Clause" ]
145
2018-07-20T21:46:27.000Z
2022-02-21T02:23:06.000Z
examples/gslib/read-point-set.py
tkoyama010/PVGeo
d2852b07be5411ca4b3a96f886ae864bbf6d09d8
[ "BSD-3-Clause" ]
50
2018-06-14T22:38:27.000Z
2021-11-29T03:38:08.000Z
examples/gslib/read-point-set.py
tkoyama010/PVGeo
d2852b07be5411ca4b3a96f886ae864bbf6d09d8
[ "BSD-3-Clause" ]
34
2018-07-27T07:48:20.000Z
2022-03-23T06:39:57.000Z
""" Read GSLib Point Set ~~~~~~~~~~~~~~~~~~~~ Read GSLib point set file """ # sphinx_gallery_thumbnail_number = 1 from pyvista import examples from PVGeo.gslib import GSLibPointSetReader ############################################################################### # points_url = 'http://www.trainingimages.org/uplo...
28.904762
95
0.558484
797cb6b0ae492712774bb269a6209e7bd03458eb
1,518
py
Python
tests/keras/losses_test.py
cc13ny/keras
172fa11ecce5aff8f359c8eec32b3cf1f76d1312
[ "MIT" ]
1
2018-07-22T03:59:02.000Z
2018-07-22T03:59:02.000Z
tests/keras/losses_test.py
cc13ny/keras
172fa11ecce5aff8f359c8eec32b3cf1f76d1312
[ "MIT" ]
null
null
null
tests/keras/losses_test.py
cc13ny/keras
172fa11ecce5aff8f359c8eec32b3cf1f76d1312
[ "MIT" ]
3
2020-02-24T15:16:05.000Z
2020-05-09T05:29:53.000Z
import pytest import numpy as np from keras import losses from keras import backend as K allobj = [losses.mean_squared_error, losses.mean_absolute_error, losses.mean_absolute_percentage_error, losses.mean_squared_logarithmic_error, losses.squared_hinge, losses.hinge,...
30.36
81
0.662055
797cb6dfdd39d03112a6a56778afe454ce21ad08
5,392
py
Python
lib/setup.py
lippman1125/SSH_RESNET50
77c5e19e03d07834c4beaa8cbf85fc714ca0f4d6
[ "MIT" ]
3
2018-12-25T03:01:36.000Z
2019-02-19T08:37:16.000Z
lib/setup.py
lippman1125/SSH_RESNET50
77c5e19e03d07834c4beaa8cbf85fc714ca0f4d6
[ "MIT" ]
null
null
null
lib/setup.py
lippman1125/SSH_RESNET50
77c5e19e03d07834c4beaa8cbf85fc714ca0f4d6
[ "MIT" ]
1
2018-12-27T03:15:13.000Z
2018-12-27T03:15:13.000Z
# -------------------------------------------------------- # Fast R-CNN # Copyright (c) 2015 Microsoft # Licensed under The MIT License [see LICENSE for details] # Written by Ross Girshick # -------------------------------------------------------- import os from os.path import join as pjoin from setuptools import setu...
35.708609
90
0.621847
797cb6f3bcef505e537f1adcbbd168e058a4b97a
221
py
Python
cartrade/cartrade/doctype/category/test_category.py
vignesharumainayagam/csdwale-cartrade-live
8dd27adbb7a242fe8f7083bc743d13cbf05327fa
[ "MIT" ]
null
null
null
cartrade/cartrade/doctype/category/test_category.py
vignesharumainayagam/csdwale-cartrade-live
8dd27adbb7a242fe8f7083bc743d13cbf05327fa
[ "MIT" ]
null
null
null
cartrade/cartrade/doctype/category/test_category.py
vignesharumainayagam/csdwale-cartrade-live
8dd27adbb7a242fe8f7083bc743d13cbf05327fa
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # Copyright (c) 2018, Tridots Tech Pvt. Ltd. and Contributors # See license.txt from __future__ import unicode_literals import frappe import unittest class TestCategory(unittest.TestCase): pass
20.090909
61
0.760181
797cb782698fa7a8556a0e87115a5b312065a5f7
5,442
py
Python
joint/init_clusters.py
wanglab-georgetown/JOINT
044a2ee6122d7e0cf61108d486e6f2cd12240d9f
[ "Apache-2.0" ]
3
2021-03-09T23:17:55.000Z
2021-05-11T16:33:41.000Z
joint/init_clusters.py
wanglab-georgetown/JOINT
044a2ee6122d7e0cf61108d486e6f2cd12240d9f
[ "Apache-2.0" ]
null
null
null
joint/init_clusters.py
wanglab-georgetown/JOINT
044a2ee6122d7e0cf61108d486e6f2cd12240d9f
[ "Apache-2.0" ]
null
null
null
import numpy as np from sklearn.impute import SimpleImputer,KNNImputer from sklearn.decomposition import PCA from sklearn.cluster import KMeans from sklearn.cluster import SpectralClustering from sklearn.metrics.cluster import adjusted_rand_score from sklearn.preprocessing import StandardScaler def get_init_em_param...
27.21
83
0.606578
797cb7d0319be62035f4093a739db690f96b7d2c
581
py
Python
pyembroidery/MaxReader.py
mrjohnmain/pyembroidery
3acaa543e3ffaad67f83092ab3151fce87c76ec4
[ "MIT" ]
null
null
null
pyembroidery/MaxReader.py
mrjohnmain/pyembroidery
3acaa543e3ffaad67f83092ab3151fce87c76ec4
[ "MIT" ]
null
null
null
pyembroidery/MaxReader.py
mrjohnmain/pyembroidery
3acaa543e3ffaad67f83092ab3151fce87c76ec4
[ "MIT" ]
null
null
null
from .ReadHelper import read_int_8, read_int_32le, read_int_24le, signed24 MAX_SIZE_CONVERSION_RATIO = 1.235 def read(f, out, settings=None): f.seek(0xD5, 0) stitch_count = read_int_32le(f) for i in range(0, stitch_count): x = read_int_24le(f) c0 = read_int_8(f) y = rea...
26.409091
75
0.585198
797cb8c2c2d35dcf5538f8dad8dfc4c3e62eef7f
708
py
Python
extraPackages/pyzmq-17.1.2/examples/heartbeat/ping.py
dolboBobo/python3_ios
877f8c2c5890f26292ddd14909bea62a04fe2889
[ "BSD-3-Clause" ]
130
2018-02-03T10:25:54.000Z
2022-03-25T22:27:22.000Z
extraPackages/pyzmq-17.1.2/examples/heartbeat/ping.py
spacetime314/python3_ios
e149f1bc2e50046c8810f83dae7739a8dea939ee
[ "BSD-3-Clause" ]
9
2018-12-14T07:31:42.000Z
2020-12-09T20:29:28.000Z
extraPackages/pyzmq-17.1.2/examples/heartbeat/ping.py
spacetime314/python3_ios
e149f1bc2e50046c8810f83dae7739a8dea939ee
[ "BSD-3-Clause" ]
64
2018-04-25T08:51:57.000Z
2022-01-29T14:13:57.000Z
#!/usr/bin/env python """For use with pong.py This script simply pings a process started by pong.py or tspong.py, to demonstrate that zmq remains responsive while Python blocks. Authors ------- * MinRK """ from __future__ import print_function import sys import time import numpy import zmq ctx = zmq.Context() req...
19.666667
71
0.637006
797cb8cdb24cda6bf71ebd5267513847f1cca25a
2,295
py
Python
tool/RefactorHeaderIncludes.py
Naftoreiclag/Cpp-Project-Template
6471f05266d01365f545062272ba9f403119c763
[ "Apache-2.0" ]
null
null
null
tool/RefactorHeaderIncludes.py
Naftoreiclag/Cpp-Project-Template
6471f05266d01365f545062272ba9f403119c763
[ "Apache-2.0" ]
null
null
null
tool/RefactorHeaderIncludes.py
Naftoreiclag/Cpp-Project-Template
6471f05266d01365f545062272ba9f403119c763
[ "Apache-2.0" ]
null
null
null
# Copyright 2017 James Fong # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to i...
35.307692
77
0.650109
797cb9970a6931b0d8455ddbfe2662a1b6eb3f17
268,221
py
Python
pycs/api/API.py
akaitrade/Centre.PyCS
e7703f4823fd25e7979bb8e5f3cb8247aac08ade
[ "MIT" ]
null
null
null
pycs/api/API.py
akaitrade/Centre.PyCS
e7703f4823fd25e7979bb8e5f3cb8247aac08ade
[ "MIT" ]
null
null
null
pycs/api/API.py
akaitrade/Centre.PyCS
e7703f4823fd25e7979bb8e5f3cb8247aac08ade
[ "MIT" ]
null
null
null
# # Autogenerated by Thrift Compiler (0.13.0) # # DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING # # options string: py # from thrift.Thrift import TType, TMessageType, TFrozenDict, TException, TApplicationException from thrift.protocol.TProtocol import TProtocolException from thrift.TRecursive impo...
33.502498
134
0.59873
797cb9d8c2522501807bbc82585255146e3091d0
4,415
py
Python
skbio/io/tests/test_util.py
Kleptobismol/scikit-bio
3df95446558273034b884852f2b7bf6a1872f66d
[ "BSD-3-Clause" ]
null
null
null
skbio/io/tests/test_util.py
Kleptobismol/scikit-bio
3df95446558273034b884852f2b7bf6a1872f66d
[ "BSD-3-Clause" ]
null
null
null
skbio/io/tests/test_util.py
Kleptobismol/scikit-bio
3df95446558273034b884852f2b7bf6a1872f66d
[ "BSD-3-Clause" ]
null
null
null
# ---------------------------------------------------------------------------- # Copyright (c) 2013--, scikit-bio development team. # # Distributed under the terms of the Modified BSD License. # # The full license is in the file COPYING.txt, distributed with this software. # --------------------------------------------...
35.604839
78
0.582786
797cb9f6dc8ba8242a8af9b0987e74e9e64dbb4c
1,469
py
Python
pcat2py/class/219dc91a-5cc5-11e4-af55-00155d01fe08.py
phnomcobra/PCAT2PY
937c3b365cdc5ac69b78f59070be0a21bdb53db0
[ "MIT" ]
null
null
null
pcat2py/class/219dc91a-5cc5-11e4-af55-00155d01fe08.py
phnomcobra/PCAT2PY
937c3b365cdc5ac69b78f59070be0a21bdb53db0
[ "MIT" ]
null
null
null
pcat2py/class/219dc91a-5cc5-11e4-af55-00155d01fe08.py
phnomcobra/PCAT2PY
937c3b365cdc5ac69b78f59070be0a21bdb53db0
[ "MIT" ]
null
null
null
#!/usr/bin/python ################################################################################ # 219dc91a-5cc5-11e4-af55-00155d01fe08 # # Justin Dierking # justindierking@hardbitsolutions.com # phnomcobra@gmail.com # # 10/24/2014 Original Construction ################################################################...
38.657895
166
0.609258
797cb9ff8c476ec144c8e57f4c62f2f8c12e7e65
3,752
py
Python
dawn/test/integration-test/dawn4py-tests/sparse_dimensions.py
BenWeber42/dawn
727835e027b8270d667452b857fa4e0af57b2c2e
[ "MIT" ]
null
null
null
dawn/test/integration-test/dawn4py-tests/sparse_dimensions.py
BenWeber42/dawn
727835e027b8270d667452b857fa4e0af57b2c2e
[ "MIT" ]
1
2020-04-03T21:42:04.000Z
2020-04-03T21:42:04.000Z
dawn/test/integration-test/dawn4py-tests/sparse_dimensions.py
eddie-c-davis/dawn
4dabcfc72e422f125e6a18fe08d0212d588adf98
[ "MIT" ]
1
2019-07-25T15:19:15.000Z
2019-07-25T15:19:15.000Z
#!/usr/bin/env python ##===-----------------------------------------------------------------------------*- Python -*-===## # _ # | | # __| | __ ___ ___ ___ # / _` |/ _` \ \ /\ / / '_ | # | (_| | (_| |\ V V /| | | | # \__,_|\__,_| \_/\_/ |_| |_| - Compiler Toolchain ## ## # This file is distributed under the MIT...
31.79661
100
0.51226
797cbad38c7d417a66190b50463998e66e024be6
17,404
py
Python
tests/features/test_array_xd.py
TheVinhLuong102/HuggingFace-DataSets
e42e15f92c1033e5df9348f6b6c0d441489aa187
[ "Apache-2.0" ]
10,608
2020-09-10T15:47:50.000Z
2022-03-31T22:51:47.000Z
tests/features/test_array_xd.py
realChainLife/datasets
98261e8b0b7be4dbaaa71ae188b950f7fbe51bbd
[ "Apache-2.0" ]
2,396
2020-09-10T14:55:31.000Z
2022-03-31T19:41:04.000Z
tests/features/test_array_xd.py
realChainLife/datasets
98261e8b0b7be4dbaaa71ae188b950f7fbe51bbd
[ "Apache-2.0" ]
1,530
2020-09-10T21:43:10.000Z
2022-03-31T01:59:12.000Z
import os import random import tempfile import unittest import numpy as np import pandas as pd import pytest from absl.testing import parameterized import datasets from datasets.arrow_writer import ArrowWriter from datasets.features import Array2D, Array3D, Array3DExtensionType, Array4D, Array5D, Value, _ArrayXD from...
46.534759
116
0.633303
797cbb7f5ce496e3c52ee403e55492cec83bb1d0
26,977
py
Python
MULTITASK_FILES/RETINANET_FILES/src/pytorch-retinanet/retinanet/dataloader.py
egoodman92/semi-supervised-surgery
42f7af7e707e71ecd64b9f215fab5c07e2b71d70
[ "MIT" ]
null
null
null
MULTITASK_FILES/RETINANET_FILES/src/pytorch-retinanet/retinanet/dataloader.py
egoodman92/semi-supervised-surgery
42f7af7e707e71ecd64b9f215fab5c07e2b71d70
[ "MIT" ]
null
null
null
MULTITASK_FILES/RETINANET_FILES/src/pytorch-retinanet/retinanet/dataloader.py
egoodman92/semi-supervised-surgery
42f7af7e707e71ecd64b9f215fab5c07e2b71d70
[ "MIT" ]
null
null
null
from __future__ import print_function, division import sys import os import torch import numpy as np import random import csv from torch.utils.data import Dataset, DataLoader from torchvision import transforms, utils from torch.utils.data.sampler import Sampler from future.utils import raise_from from pycocotools.coco...
34.278272
163
0.591504
797cbbc85c242913c33f757f8eb9986984024198
9,816
py
Python
utils/xpath_util.py
RajkumarQxf2/qxf2-page-object-model
f777ef3e9e140aeacb481c945e9522a2bc42840d
[ "MIT" ]
2
2020-08-15T09:06:11.000Z
2020-08-24T06:20:23.000Z
utils/xpath_util.py
RajkumarQxf2/qxf2-page-object-model
f777ef3e9e140aeacb481c945e9522a2bc42840d
[ "MIT" ]
null
null
null
utils/xpath_util.py
RajkumarQxf2/qxf2-page-object-model
f777ef3e9e140aeacb481c945e9522a2bc42840d
[ "MIT" ]
1
2022-01-24T03:56:37.000Z
2022-01-24T03:56:37.000Z
""" Qxf2 Services: Utility script to generate XPaths for the given URL * Take the input URL from the user * Parse the HTML content using beautifilsoup * Find all Input and Button tags * Guess the XPaths * Generate Variable names for the xpaths * To run the script in Gitbash use command 'python -u utils/xpath_util.py' ...
57.741176
255
0.560921
797cc0c7952b6ef705bdbe23635695b8597d56e3
512
py
Python
app/cloudtrail/logic/constants.py
marjamis/informant
b7639f7cdab79320952beb3f5d07875d0b34a4c4
[ "MIT" ]
1
2022-02-28T03:27:56.000Z
2022-02-28T03:27:56.000Z
app/cloudtrail/logic/constants.py
marjamis/informant
b7639f7cdab79320952beb3f5d07875d0b34a4c4
[ "MIT" ]
null
null
null
app/cloudtrail/logic/constants.py
marjamis/informant
b7639f7cdab79320952beb3f5d07875d0b34a4c4
[ "MIT" ]
null
null
null
from django.conf import settings # Directory used to store search data SEARCH_DIR = settings.BASE_DIR+'/searches' # Cloud Trail items for each API call, used in full_results view OUTPUT_HEADERS = [ 'awsRegion', 'eventID', 'eventName', 'eventTime', 'eventType' 'eventSource', 'eventVersion',...
20.48
64
0.664063
797cc1751e4f4c16b0e3532d9ee61b6febf4de94
14,009
py
Python
jupyter-book/linear_models/module 4 - wrap-up-quizz.py
castorfou/scikit-learn-mooc
235748eff57409eb17d8355024579c6df44c0563
[ "CC-BY-4.0" ]
1
2021-05-25T07:29:44.000Z
2021-05-25T07:29:44.000Z
jupyter-book/linear_models/module 4 - wrap-up-quizz.py
castorfou/scikit-learn-mooc
235748eff57409eb17d8355024579c6df44c0563
[ "CC-BY-4.0" ]
null
null
null
jupyter-book/linear_models/module 4 - wrap-up-quizz.py
castorfou/scikit-learn-mooc
235748eff57409eb17d8355024579c6df44c0563
[ "CC-BY-4.0" ]
null
null
null
#!/usr/bin/env python # coding: utf-8 # # 🏁 Wrap-up quiz # # **This quiz requires some programming to be answered.** # # Open the dataset `house_prices.csv` with the following command: # In[2]: import pandas as pd ames_housing = pd.read_csv("../datasets/house_prices.csv", na_values="?") target_name = "SalePrice...
26.283302
119
0.719966
797cc299f1d694b30ea66c4d05286a9e60bc1b77
4,659
py
Python
common-python/bcctools/bcc_rest/bcc_update_target.py
LaudateCorpus1/atg-commerce-iaas
f1ae31657fc0111a5c019d46a28a3c81aae1acb2
[ "MIT" ]
28
2016-11-07T14:03:25.000Z
2022-02-01T08:46:52.000Z
common-python/bcctools/bcc_rest/bcc_update_target.py
LaudateCorpus1/atg-commerce-iaas
f1ae31657fc0111a5c019d46a28a3c81aae1acb2
[ "MIT" ]
3
2016-11-09T13:23:03.000Z
2018-04-05T15:49:22.000Z
common-python/bcctools/bcc_rest/bcc_update_target.py
LaudateCorpus1/atg-commerce-iaas
f1ae31657fc0111a5c019d46a28a3c81aae1acb2
[ "MIT" ]
13
2016-10-27T17:59:38.000Z
2022-02-18T04:38:38.000Z
#!/usr/bin/python # The MIT License (MIT) # # Copyright (c) 2017 Oracle # # 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 us...
39.151261
150
0.647778
797cc31c7ecc3a2265e37844d7aa9fec3173dfa1
4,938
py
Python
rnalysis/utils/ref_tables.py
GuyTeichman/srna_analysis
100501727141df8e070eb64bf1da458a3e33a920
[ "MIT" ]
null
null
null
rnalysis/utils/ref_tables.py
GuyTeichman/srna_analysis
100501727141df8e070eb64bf1da458a3e33a920
[ "MIT" ]
null
null
null
rnalysis/utils/ref_tables.py
GuyTeichman/srna_analysis
100501727141df8e070eb64bf1da458a3e33a920
[ "MIT" ]
null
null
null
import os from pathlib import Path from typing import Union import yaml from rnalysis import __attr_file_key__, __biotype_file_key__, __path__ def get_settings_file_path(): """ Generates the full path of the 'settings.yaml' file. :returns: the path of the settings.yaml file. :rtype: pathlib.Path ...
33.14094
113
0.678817
797cc37823139ee96ba0ad590d79b900915d79b9
4,769
py
Python
im2mesh/onet_m/models/__init__.py
AlexsaseXie/occupancy_networks
972119ae7a7c9f782e1fc1df48a5b85b678edd31
[ "MIT" ]
2
2020-06-03T20:54:26.000Z
2021-09-15T06:57:57.000Z
im2mesh/onet_m/models/__init__.py
AlexsaseXie/occupancy_networks
972119ae7a7c9f782e1fc1df48a5b85b678edd31
[ "MIT" ]
null
null
null
im2mesh/onet_m/models/__init__.py
AlexsaseXie/occupancy_networks
972119ae7a7c9f782e1fc1df48a5b85b678edd31
[ "MIT" ]
2
2020-06-14T12:27:22.000Z
2020-10-27T16:55:04.000Z
import torch import torch.nn as nn from torch import distributions as dist from im2mesh.onet.models import encoder_latent, decoder # Encoder latent dictionary encoder_latent_dict = { 'simple': encoder_latent.Encoder, } # Decoder dictionary decoder_dict = { 'simple': decoder.Decoder, 'cbatchnorm': decoder....
29.257669
87
0.579996
797cc452d85d80eee3cefbc684b0dc10ef3b41b6
879
py
Python
euler-22.py
TFabijo/euler
58dc07b9adb236890556ccd5d75ca9dbd2b50df9
[ "MIT" ]
null
null
null
euler-22.py
TFabijo/euler
58dc07b9adb236890556ccd5d75ca9dbd2b50df9
[ "MIT" ]
null
null
null
euler-22.py
TFabijo/euler
58dc07b9adb236890556ccd5d75ca9dbd2b50df9
[ "MIT" ]
null
null
null
abeceda = {'A' : 1,'B' : 2, 'C' : 3, 'D' : 4, 'E' : 5, 'F' : 6, 'G' : 7, 'H' : 8, 'I' : 9, 'J' : 10, 'K' : 11, 'L' : 12, 'M' : 13, 'N' : 14, 'O' : 15, 'P' : 16, 'Q' : 17, 'R' : 18, 'S' : 19, 'T' : 20, 'U' : 21, 'V' : 22, 'W' : 23, 'X' : 24, 'Y' : 25, 'Z' : 26} def razvrsti_imena_po_abecedi_v_seznam(imena): with...
29.3
261
0.473265
797cc4913a481891bb549f438f0da1ffb01cb205
699
py
Python
bootcamp/users/migrations/0003_auto_20211013_1928.py
alexandrelff/bootcamp
57f7dff02d1dfbfae25fb993ef42710b1b61b7ba
[ "MIT" ]
null
null
null
bootcamp/users/migrations/0003_auto_20211013_1928.py
alexandrelff/bootcamp
57f7dff02d1dfbfae25fb993ef42710b1b61b7ba
[ "MIT" ]
null
null
null
bootcamp/users/migrations/0003_auto_20211013_1928.py
alexandrelff/bootcamp
57f7dff02d1dfbfae25fb993ef42710b1b61b7ba
[ "MIT" ]
null
null
null
# Generated by Django 3.2.7 on 2021-10-13 19:28 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('users', '0002_auto_20200404_2206'), ] operations = [ migrations.AddField( model_name='user', name='send_notification...
29.125
163
0.630901
797cc51f0a4684cf72c3eb45fa3a825bc540aca9
895
py
Python
homeworks/hw-1-search/search/drivers/google.py
possibly-harmless/WebPythonOTUS
cf696376d95e88242862e245b415833e81aa39e2
[ "MIT" ]
null
null
null
homeworks/hw-1-search/search/drivers/google.py
possibly-harmless/WebPythonOTUS
cf696376d95e88242862e245b415833e81aa39e2
[ "MIT" ]
null
null
null
homeworks/hw-1-search/search/drivers/google.py
possibly-harmless/WebPythonOTUS
cf696376d95e88242862e245b415833e81aa39e2
[ "MIT" ]
null
null
null
from search.linkextractor import SEDriverRegistry, AbstractLinkExtractor import re class GoogleLinkExtractor(AbstractLinkExtractor): @classmethod def get_selector(cls): return ".rc > div > a" @classmethod def get_link_extractor(cls, elem): href = elem.get('href') return href ...
26.323529
77
0.602235
797cc588ea6dd32e0001f0a23f60d71704e947cb
3,094
py
Python
onetask/embedding.py
onetask-ai/onetask-python
ea810a3092a029d5b30f6af9e9a5f17567e0b901
[ "MIT" ]
7
2021-06-06T10:57:08.000Z
2022-02-04T15:11:55.000Z
onetask/embedding.py
onetask-ai/onetask-python
ea810a3092a029d5b30f6af9e9a5f17567e0b901
[ "MIT" ]
3
2021-07-15T11:57:57.000Z
2022-01-17T17:27:55.000Z
onetask/embedding.py
onetask-ai/onetask-python
ea810a3092a029d5b30f6af9e9a5f17567e0b901
[ "MIT" ]
1
2021-06-06T10:57:16.000Z
2021-06-06T10:57:16.000Z
# -*- coding: utf-8 -*- from abc import ABC, abstractmethod from sentence_transformers import SentenceTransformer, models from torch import nn import numpy as np from wasabi import msg from sklearn.feature_extraction.text import CountVectorizer from sklearn.preprocessing import OneHotEncoder from transformers import lo...
27.140351
119
0.664512
797cc61bcb96912d6ec86a66a4e573f8c3ec8c6c
855
py
Python
profiles_api/serializers.py
IsaiahAim/profiles-rest-api
933aed151647c0aabbb9fc8b0d1480bb782ae503
[ "MIT" ]
null
null
null
profiles_api/serializers.py
IsaiahAim/profiles-rest-api
933aed151647c0aabbb9fc8b0d1480bb782ae503
[ "MIT" ]
null
null
null
profiles_api/serializers.py
IsaiahAim/profiles-rest-api
933aed151647c0aabbb9fc8b0d1480bb782ae503
[ "MIT" ]
null
null
null
from rest_framework import serializers from profiles_api import models class HelloSerializer(serializers.Serializer): """Serializes a name field for testing our APIView""" name =serializers.CharField(max_length=10) class UserProfileSerializer(serializers.ModelSerializer): """Serializes a user profile o...
26.71875
57
0.639766
797cc6607705f65c17f13d72858f5c4081125c99
1,236
py
Python
sklearn_json/word2vec.py
JumpWork/sklearn-json
a8159402ce3f3758d11629ca5b570328d3097fed
[ "MIT" ]
null
null
null
sklearn_json/word2vec.py
JumpWork/sklearn-json
a8159402ce3f3758d11629ca5b570328d3097fed
[ "MIT" ]
null
null
null
sklearn_json/word2vec.py
JumpWork/sklearn-json
a8159402ce3f3758d11629ca5b570328d3097fed
[ "MIT" ]
null
null
null
from functools import lru_cache from typing import Union import numpy as np import pandas as pd import spacy # jumpml-specific import sys, os sys.path.append(os.path.expanduser('~/jump-ml')) from classifier.utils.embeddings import Word2VecVectorizer ''' @lru_cache(maxsize=None) def get_spacy_nlp(): r...
24.72
108
0.589806
797cc71cae02e8f6c01e6e5ad1416caa09adc10c
1,599
py
Python
faucetml/preprocessing/identify_types.py
econti/FaucetML
af28569ce7446e2db497c9b9b92e4845fbb34942
[ "Apache-2.0" ]
15
2020-01-22T00:06:53.000Z
2020-01-29T22:49:06.000Z
faucetml/preprocessing/identify_types.py
econti/faucetml
af28569ce7446e2db497c9b9b92e4845fbb34942
[ "Apache-2.0" ]
null
null
null
faucetml/preprocessing/identify_types.py
econti/faucetml
af28569ce7446e2db497c9b9b92e4845fbb34942
[ "Apache-2.0" ]
null
null
null
""" Code taken from Facebook ReAgent and modified for Faucet ML. Original copyright: Copyright (c) Facebook, Inc. and its affiliates. All rights reserved. Original BSD License: https://github.com/facebookresearch/ReAgent/blob/master/LICENSE """ import numpy as np BINARY = "BINARY" PROBABILITY = "PROBABILI...
22.842857
85
0.699812
797cc783f61fee5202ea6b0444c484629e6321c2
637
py
Python
SentEval/words/words_test.py
comRamona/Neural-Statistician
7ff41fdf97e0e4ca3a335901d107f6de0edb5481
[ "Unlicense" ]
3
2019-03-06T18:45:09.000Z
2022-03-10T19:11:18.000Z
SentEval/words/words_test.py
comRamona/Neural-Statistician
7ff41fdf97e0e4ca3a335901d107f6de0edb5481
[ "Unlicense" ]
null
null
null
SentEval/words/words_test.py
comRamona/Neural-Statistician
7ff41fdf97e0e4ca3a335901d107f6de0edb5481
[ "Unlicense" ]
2
2020-06-23T09:05:37.000Z
2022-02-25T08:39:43.000Z
from wordsdata import WikipediaDataset import os import argparse from torch.utils import data parser = argparse.ArgumentParser(description='test') parser.add_argument('--data-dir', required=True, type=str, default=None, help='location of formatted Omniglot data') args = parser.parse_args() prin...
26.541667
114
0.747253
797cc973caaeee8bc4aea2d39c3f61357e3d2f32
1,453
py
Python
ejercicios/obtener_pais_api.py
carlosviveros/Soluciones
115f4fa929c7854ca497e4c994352adc64565456
[ "MIT" ]
4
2021-12-14T23:51:25.000Z
2022-03-24T11:14:00.000Z
ejercicios/obtener_pais_api.py
leugimkm/Soluciones
d71601c8d9b5e86e926f48d9e49462af8a956b6d
[ "MIT" ]
null
null
null
ejercicios/obtener_pais_api.py
leugimkm/Soluciones
d71601c8d9b5e86e926f48d9e49462af8a956b6d
[ "MIT" ]
5
2021-11-10T06:49:50.000Z
2022-03-24T01:42:28.000Z
"""AyudaEnPython: https://www.facebook.com/groups/ayudapython # ------------------------ Enunciado Original ------------------------- Se le pide implementar un programa que entregue el nombre completo de un país recibiendo como input el código abreviado de dicho país. Para ello, debe ayudarse de la siguiente API: ...
30.270833
71
0.644184
797cca04fb5dee0d7000019b1591031f9a44f61a
81
py
Python
clipboard.py
azharhappy/Nancy-VA--MacOS
e2825f1e61e5f5c995de9cdda8e836d4a34cbb7d
[ "MIT" ]
4
2017-01-03T07:26:10.000Z
2017-06-28T11:16:39.000Z
clipboard.py
azhar22k/Nancy-VA--MacOS
e2825f1e61e5f5c995de9cdda8e836d4a34cbb7d
[ "MIT" ]
null
null
null
clipboard.py
azhar22k/Nancy-VA--MacOS
e2825f1e61e5f5c995de9cdda8e836d4a34cbb7d
[ "MIT" ]
2
2018-03-27T13:00:58.000Z
2019-01-14T14:55:59.000Z
from pyperclip import paste a=paste() from subprocess import call call(['say',a])
20.25
27
0.765432
797cca0649e57ef1c66ebfed090c1a5fa2f11726
417
py
Python
best_practice/mobile_native/android/test_valid_login.py
echo2477/demo-python
adc55aa8075dbd46f94d1ae68f2acfd8f20720d5
[ "MIT" ]
42
2019-02-27T03:28:52.000Z
2022-01-25T21:18:45.000Z
best_practice/mobile_native/android/test_valid_login.py
echo2477/demo-python
adc55aa8075dbd46f94d1ae68f2acfd8f20720d5
[ "MIT" ]
12
2019-05-10T23:43:55.000Z
2021-11-05T21:20:02.000Z
best_practice/mobile_native/android/test_valid_login.py
echo2477/demo-python
adc55aa8075dbd46f94d1ae68f2acfd8f20720d5
[ "MIT" ]
38
2019-02-27T03:28:52.000Z
2022-02-17T07:27:08.000Z
def test_standard_user(android_rdc_driver): android_rdc_driver.find_element_by_accessibility_id("test-Username").send_keys("standard_user") android_rdc_driver.find_element_by_accessibility_id("test-Password").send_keys("secret_sauce") android_rdc_driver.find_element_by_accessibility_id("test-LOGIN").click()...
59.571429
99
0.839329
797ccaa01c8fff2a5df2dd9ca4197181b1bf0b4b
1,129
py
Python
materials/sp20/lab/lab07/tests/q3_4.py
ds-modules/Deepnote-demo
548c12ced6cae774ecd0036aa1e8bb833af6472c
[ "BSD-3-Clause" ]
null
null
null
materials/sp20/lab/lab07/tests/q3_4.py
ds-modules/Deepnote-demo
548c12ced6cae774ecd0036aa1e8bb833af6472c
[ "BSD-3-Clause" ]
null
null
null
materials/sp20/lab/lab07/tests/q3_4.py
ds-modules/Deepnote-demo
548c12ced6cae774ecd0036aa1e8bb833af6472c
[ "BSD-3-Clause" ]
null
null
null
test = { 'name': 'q3_4', 'points': 1, 'suites': [ { 'cases': [ { 'code': r""" >>> isinstance(postban_rates, Table) True """, 'hidden': False, 'locked': False }, { 'code': r""" >>> postban_rates.num_ro...
20.527273
97
0.357839
797ccabe68c668356b8d689a152d4c9bc7c9b01f
3,525
py
Python
yearn/curve.py
sambacha/yearn-exporter
0a4a894d1c85f47aa347d510d2a6f24143650590
[ "MIT" ]
null
null
null
yearn/curve.py
sambacha/yearn-exporter
0a4a894d1c85f47aa347d510d2a6f24143650590
[ "MIT" ]
null
null
null
yearn/curve.py
sambacha/yearn-exporter
0a4a894d1c85f47aa347d510d2a6f24143650590
[ "MIT" ]
1
2021-06-04T19:07:16.000Z
2021-06-04T19:07:16.000Z
from brownie import ZERO_ADDRESS, interface from cachetools import LRUCache, cached from yearn import uniswap from yearn.mutlicall import fetch_multicall crv = interface.ERC20("0xD533a949740bb3306d119CC777fa900bA034cd52") voting_escrow = interface.CurveVotingEscrow("0x5f3b5DfEb7B28CDbD7FAba78963EE202a494e2A2") gauge_...
32.943925
117
0.694184
797ccb02eb616c589be9c3b8e16d70b6e790b08c
959
py
Python
tests/Selenium/forgotpass.py
mnonchevGmu/493Capstone
068bdece7cb96cabd17ced28f6aff32ce41eceb0
[ "MIT" ]
null
null
null
tests/Selenium/forgotpass.py
mnonchevGmu/493Capstone
068bdece7cb96cabd17ced28f6aff32ce41eceb0
[ "MIT" ]
4
2021-03-10T09:16:50.000Z
2022-02-27T00:19:05.000Z
tests/Selenium/forgotpass.py
mnonchevGmu/493Capstone
068bdece7cb96cabd17ced28f6aff32ce41eceb0
[ "MIT" ]
null
null
null
import unittest import time from selenium import webdriver from selenium.webdriver.support.select import Select class TestForgotPass(unittest.TestCase): @classmethod def setUpClass(cls): cls.driver = webdriver.Chrome(executable_path=r"C:\Users\J\PycharmProjects\FirstSeleniumProject\drivers\chromedriv...
28.205882
130
0.701773
797ccb547d2ecc88b9edbb73d27545d5bc46d626
1,285
py
Python
cmdtzz/3.py
FocusDS7/FianceAI_Test
f9310ee0723165007890a89b5e9865154e1c315f
[ "Apache-2.0" ]
null
null
null
cmdtzz/3.py
FocusDS7/FianceAI_Test
f9310ee0723165007890a89b5e9865154e1c315f
[ "Apache-2.0" ]
null
null
null
cmdtzz/3.py
FocusDS7/FianceAI_Test
f9310ee0723165007890a89b5e9865154e1c315f
[ "Apache-2.0" ]
null
null
null
# -*- coding: UTF-8 -*- import pandas as pd import matplotlib.pyplot as plt import matplotlib.dates as mdates from datetime import datetime #import numpy as np plt.figure(1) ax1 = plt.subplot(111) ax1.xaxis.set_major_locator(mdates.DayLocator()) ax1.xaxis.set_major_formatter(mdates.DateFormatter('%y/%m/%d')) plt.figur...
32.125
107
0.706615
797ccd0da67f58dc298ab6a8c003683f4b392f57
11,323
py
Python
OmniDB/OmniDB/Chat/classes.py
swipswaps/OmniDB
03d2d791c50455176d20bc3513a48ff584164439
[ "MIT" ]
1
2019-05-29T19:46:28.000Z
2019-05-29T19:46:28.000Z
OmniDB/OmniDB/Chat/classes.py
swipswaps/OmniDB
03d2d791c50455176d20bc3513a48ff584164439
[ "MIT" ]
null
null
null
OmniDB/OmniDB/Chat/classes.py
swipswaps/OmniDB
03d2d791c50455176d20bc3513a48ff584164439
[ "MIT" ]
1
2019-03-11T06:57:43.000Z
2019-03-11T06:57:43.000Z
from . import exception class Message: """Represent a message from database. Attributes: code (int): the message code. createdAt (str): string representating when message was created. updatedAt (str): string representating when message was updated. user (cla...
46.405738
208
0.630575
797ccd19d148f88205dd7efa50228aa5bea32309
5,607
py
Python
nn.py
zaibacu/pynn
59a3e3fcca9530c7d3fa7304c9162d9ed5e375f7
[ "MIT" ]
null
null
null
nn.py
zaibacu/pynn
59a3e3fcca9530c7d3fa7304c9162d9ed5e375f7
[ "MIT" ]
null
null
null
nn.py
zaibacu/pynn
59a3e3fcca9530c7d3fa7304c9162d9ed5e375f7
[ "MIT" ]
null
null
null
import math import random import pickle ALPHA = 1 def sigmoid(x): return 1/(1 + math.pow(math.e, -x)) def linear(x): return x """NEURONS""" class Neuron(object): def __init__(self, fn): self.sum = 0 self.fn = fn def add(self, value): pass def clear(self): self.sum = 0 def output(self): return sel...
22.428
97
0.689139
797ccd3cd78d1fcae7eb038f1560ea4cf848d3e5
323
py
Python
whetlab/server/error/client_error.py
schevalier/Whetlab-Python-Client
e934424e9ca6f06617a6421509d13c0cc87777e7
[ "BSD-4-Clause" ]
4
2015-07-31T12:47:36.000Z
2021-04-14T16:37:55.000Z
whetlab/server/error/client_error.py
schevalier/Whetlab-Python-Client
e934424e9ca6f06617a6421509d13c0cc87777e7
[ "BSD-4-Clause" ]
null
null
null
whetlab/server/error/client_error.py
schevalier/Whetlab-Python-Client
e934424e9ca6f06617a6421509d13c0cc87777e7
[ "BSD-4-Clause" ]
3
2016-03-25T02:23:09.000Z
2018-05-04T03:09:02.000Z
# ClientException is used when the api returns an error class ClientError(Exception): def __init__(self, message, code): super(ClientError, self).__init__() self.message = message self.code = code def __str__(self): return 'Error code: ' + str(self.code) + ' Server message: ' + str(self.messag...
29.363636
89
0.684211
797ccdaba5fa339915712443ae861c9ec759bf26
33,162
py
Python
tests/test_sns/test_publishing_boto3.py
Preskton/moto
c9c30b82867294030833cef292db167955bc8240
[ "Apache-2.0" ]
1
2021-04-06T12:48:00.000Z
2021-04-06T12:48:00.000Z
tests/test_sns/test_publishing_boto3.py
Preskton/moto
c9c30b82867294030833cef292db167955bc8240
[ "Apache-2.0" ]
null
null
null
tests/test_sns/test_publishing_boto3.py
Preskton/moto
c9c30b82867294030833cef292db167955bc8240
[ "Apache-2.0" ]
null
null
null
from __future__ import unicode_literals import base64 import json import boto3 import re from freezegun import freeze_time import sure # noqa import responses from botocore.exceptions import ClientError import pytest from moto import mock_sns, mock_sqs, settings from moto.core import ACCOUNT_ID from moto.sns import...
33.39577
496
0.645438
797cce06fa3fedf9d01cbb3e00af01b71b60b272
323
py
Python
Skyhero-admin/Day 26/script.py
adityajoshi-08/100-Days-of-Code
22026ca37dd8bcf5e5e22a8a302510249936c002
[ "MIT" ]
33
2022-01-11T14:00:24.000Z
2022-03-24T02:49:44.000Z
Skyhero-admin/Day 26/script.py
adityajoshi-08/100-Days-of-Code
22026ca37dd8bcf5e5e22a8a302510249936c002
[ "MIT" ]
28
2022-01-11T17:08:52.000Z
2022-03-15T17:03:15.000Z
Skyhero-admin/Day 26/script.py
adityajoshi-08/100-Days-of-Code
22026ca37dd8bcf5e5e22a8a302510249936c002
[ "MIT" ]
57
2022-01-11T15:54:07.000Z
2022-03-27T04:37:42.000Z
#!/usr/bin/env python3 # Import all from pwntools library from pwn import * # Create connection with remote service conn = remote("google.com", 80) # Send data request conn.send(b"GET /\r\n") # Receive one line of reponse from server line = conn.recvline() print(line) # Close connection when we are done conn.close...
17.944444
41
0.727554
797ccea0c3a7f180f0b42c3111f4afd3fda272bf
1,147
py
Python
dlup_lightning_mil/data/transforms/__init__.py
NKI-AI/dlup-lightning-mil
f33d6c0eb504d73bd822909f29e548bc186e5306
[ "Apache-2.0" ]
null
null
null
dlup_lightning_mil/data/transforms/__init__.py
NKI-AI/dlup-lightning-mil
f33d6c0eb504d73bd822909f29e548bc186e5306
[ "Apache-2.0" ]
null
null
null
dlup_lightning_mil/data/transforms/__init__.py
NKI-AI/dlup-lightning-mil
f33d6c0eb504d73bd822909f29e548bc186e5306
[ "Apache-2.0" ]
null
null
null
# coding=utf-8 # Copyright (c) DLUP Contributors import torchvision import torch class MyRotationTransform: """Rotate by one of the given angles. Arguments: angles: list(ints). List of integer degrees to pick from. E.g. [0, 90, 180, 270] for a random 90-degree-like rotation """ def __in...
27.309524
125
0.625109
797ccfccd2839484e3e2eeb3218bc340d8001068
1,509
py
Python
waffle/__init__.py
Melevir/django-waffle
75a1e6664dd39832aa98c76e065941e713d6c075
[ "BSD-3-Clause" ]
null
null
null
waffle/__init__.py
Melevir/django-waffle
75a1e6664dd39832aa98c76e065941e713d6c075
[ "BSD-3-Clause" ]
null
null
null
waffle/__init__.py
Melevir/django-waffle
75a1e6664dd39832aa98c76e065941e713d6c075
[ "BSD-3-Clause" ]
null
null
null
import django from django.core.exceptions import ImproperlyConfigured from waffle.utils import get_setting from django.apps import apps as django_apps VERSION = (2, 2, 1) __version__ = '.'.join(map(str, VERSION)) if django.VERSION < (3, 2): default_app_config = 'waffle.apps.WaffleConfig' def flag_is_active(req...
28.471698
98
0.712392
797cd013d80882698f7aac4d9298000a6fe56728
20,081
py
Python
chrome/common/extensions/docs/server2/availability_finder.py
7kbird/chrome
f56688375530f1003e34c34f441321977c5af3c3
[ "BSD-3-Clause-No-Nuclear-License-2014", "BSD-3-Clause" ]
null
null
null
chrome/common/extensions/docs/server2/availability_finder.py
7kbird/chrome
f56688375530f1003e34c34f441321977c5af3c3
[ "BSD-3-Clause-No-Nuclear-License-2014", "BSD-3-Clause" ]
null
null
null
chrome/common/extensions/docs/server2/availability_finder.py
7kbird/chrome
f56688375530f1003e34c34f441321977c5af3c3
[ "BSD-3-Clause-No-Nuclear-License-2014", "BSD-3-Clause" ]
1
2020-11-04T07:23:37.000Z
2020-11-04T07:23:37.000Z
# Copyright 2013 The Chromium Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. import posixpath from api_models import GetNodeCategories from api_schema_graph import APISchemaGraph from branch_utility import BranchUtility, ChannelInfo ...
44.037281
80
0.6914
797cd0df23feddef2561365e05d80409cb97789c
2,348
py
Python
aria/orchestrator/workflows/executor/dry.py
tnadeau/incubator-ariatosca
de32028783969bc980144afa3c91061c7236459c
[ "Apache-2.0" ]
null
null
null
aria/orchestrator/workflows/executor/dry.py
tnadeau/incubator-ariatosca
de32028783969bc980144afa3c91061c7236459c
[ "Apache-2.0" ]
null
null
null
aria/orchestrator/workflows/executor/dry.py
tnadeau/incubator-ariatosca
de32028783969bc980144afa3c91061c7236459c
[ "Apache-2.0" ]
1
2020-06-16T15:13:06.000Z
2020-06-16T15:13:06.000Z
# 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 use ...
41.928571
133
0.678024
797cd0e8db7b1bd728726656e2b01903901f4fbf
1,757
py
Python
algoliasearch/http/requester_async.py
augustosamame/algoliasearch-client-python
3c62fa8f954d6b6fd4952f6bcfcfd48d5938ceb6
[ "MIT" ]
null
null
null
algoliasearch/http/requester_async.py
augustosamame/algoliasearch-client-python
3c62fa8f954d6b6fd4952f6bcfcfd48d5938ceb6
[ "MIT" ]
null
null
null
algoliasearch/http/requester_async.py
augustosamame/algoliasearch-client-python
3c62fa8f954d6b6fd4952f6bcfcfd48d5938ceb6
[ "MIT" ]
null
null
null
import asyncio import aiohttp import async_timeout from algoliasearch.http.requester import Requester from algoliasearch.http.transporter import Response, Request class RequesterAsync(Requester): def __init__(self): # type: () -> None self._session = None @asyncio.coroutine # type: ignore...
28.803279
74
0.562891
797cd1527c38d008b60d642e0bd6210847a3ef0e
2,522
py
Python
django_mri/analysis/automation/cat12_segmentation/utils.py
GalBenZvi/django_mri
558e9187a6ba18b7ba69aced919a6f94d066a2fc
[ "Apache-2.0" ]
4
2020-07-27T20:33:54.000Z
2022-01-11T20:24:03.000Z
django_mri/analysis/automation/cat12_segmentation/utils.py
GalBenZvi/django_mri
558e9187a6ba18b7ba69aced919a6f94d066a2fc
[ "Apache-2.0" ]
107
2019-09-04T11:38:46.000Z
2022-03-04T13:59:51.000Z
django_mri/analysis/automation/cat12_segmentation/utils.py
GalBenZvi/django_mri
558e9187a6ba18b7ba69aced919a6f94d066a2fc
[ "Apache-2.0" ]
2
2020-05-24T06:35:33.000Z
2020-06-14T13:15:32.000Z
""" Utilties for CAT12 segmentation automation. """ from pathlib import Path from typing import Tuple import nibabel as nib import numpy as np from django.db.models import QuerySet from django_analyses.models.analysis_version import AnalysisVersion from django_analyses.models.input.definitions.input_definition import...
26.270833
96
0.716891
797cd193e8390f308ee15c0c80a1159fd510f7ca
8,959
py
Python
src/codegen/codegen.py
sidharth-anand/YeetScript
ea058cc33fa4e15db899b934db5145eff8f104bb
[ "MIT" ]
null
null
null
src/codegen/codegen.py
sidharth-anand/YeetScript
ea058cc33fa4e15db899b934db5145eff8f104bb
[ "MIT" ]
null
null
null
src/codegen/codegen.py
sidharth-anand/YeetScript
ea058cc33fa4e15db899b934db5145eff8f104bb
[ "MIT" ]
1
2022-02-23T17:36:07.000Z
2022-02-23T17:36:07.000Z
import argparse from prettytable import PrettyTable class Stack: def __init__(self,max_lim): self.__lis_of_eles=[] self.__max_lim=max_lim self.__top=-1 def get_stack_eles(self): return self.__lis_of_eles def is_full(self): if(self.__top==self.__ma...
25.670487
128
0.447148
797cd21ffcf672d6748c461ee780381a89677f96
6,572
py
Python
lab03.py
elliala/cs20-S16-lab03
6979d1e3eea79a48754f1318c9c3389c4ebea346
[ "MIT" ]
null
null
null
lab03.py
elliala/cs20-S16-lab03
6979d1e3eea79a48754f1318c9c3389c4ebea346
[ "MIT" ]
null
null
null
lab03.py
elliala/cs20-S16-lab03
6979d1e3eea79a48754f1318c9c3389c4ebea346
[ "MIT" ]
null
null
null
# lab03.py for Ellia La and Kerry Jones # CS20, Spring 2016, Instructor: Phill Conrad # Draw some initials using turtle graphics import turtle import math def drawE (t,w,h): """ draw the letter E using t as the turtle, w as the width, and h as the height """ #draw the top horizontal line of the E ...
28.824561
192
0.605904
797cd257833fecc5745efb4d9aee2f9fac154143
3,433
py
Python
tests/helpers/test_entityfilter.py
maihde/home-assistant
688d70644949a658e0607e52b3896a2c4c8a85e7
[ "Apache-2.0" ]
2
2020-02-20T18:47:55.000Z
2021-11-09T11:33:28.000Z
tests/helpers/test_entityfilter.py
maihde/home-assistant
688d70644949a658e0607e52b3896a2c4c8a85e7
[ "Apache-2.0" ]
5
2022-03-01T06:31:03.000Z
2022-03-31T07:20:45.000Z
tests/helpers/test_entityfilter.py
maihde/home-assistant
688d70644949a658e0607e52b3896a2c4c8a85e7
[ "Apache-2.0" ]
3
2018-08-27T10:08:30.000Z
2020-07-04T10:07:03.000Z
"""The tests for the EntityFitler component.""" from homeassistant.helpers.entityfilter import generate_filter def test_no_filters_case_1(): """If include and exclude not included, pass everything.""" incl_dom = {} incl_ent = {} excl_dom = {} excl_ent = {} testfilter = generate_filter(incl_dom...
35.760417
77
0.703758
797cd2f181ac0ed0dcc93330a46f233754fce0a5
2,943
py
Python
cards/tests.py
johnson-tay09/django-custom-user
3bc2d3a51857c91fa16d2fd6fea823e51e36a1d9
[ "MIT" ]
null
null
null
cards/tests.py
johnson-tay09/django-custom-user
3bc2d3a51857c91fa16d2fd6fea823e51e36a1d9
[ "MIT" ]
null
null
null
cards/tests.py
johnson-tay09/django-custom-user
3bc2d3a51857c91fa16d2fd6fea823e51e36a1d9
[ "MIT" ]
null
null
null
from django.contrib.auth import get_user_model from django.test import TestCase from django.urls import reverse from .models import Card class CardTests(TestCase): def setUp(self): self.user = get_user_model().objects.create_user( username="tester", email="tester@email.com", password="pass" ...
34.22093
85
0.583078
797cd3389a78439463692595076dac80142959aa
625
py
Python
doc/pyplots/fig_axes_customize_simple.py
pierre-haessig/matplotlib
0d945044ca3fbf98cad55912584ef80911f330c6
[ "MIT", "PSF-2.0", "BSD-3-Clause" ]
16
2016-06-14T19:45:35.000Z
2020-11-30T19:02:58.000Z
doc/pyplots/fig_axes_customize_simple.py
pierre-haessig/matplotlib
0d945044ca3fbf98cad55912584ef80911f330c6
[ "MIT", "PSF-2.0", "BSD-3-Clause" ]
7
2015-05-08T19:36:25.000Z
2015-06-30T15:32:17.000Z
doc/pyplots/fig_axes_customize_simple.py
pierre-haessig/matplotlib
0d945044ca3fbf98cad55912584ef80911f330c6
[ "MIT", "PSF-2.0", "BSD-3-Clause" ]
14
2015-10-05T04:15:46.000Z
2020-06-11T18:06:02.000Z
import numpy as np import matplotlib.pyplot as plt # plt.figure creates a matplotlib.figure.Figure instance fig = plt.figure() rect = fig.patch # a rectangle instance rect.set_facecolor('lightgoldenrodyellow') ax1 = fig.add_axes([0.1, 0.3, 0.4, 0.4]) rect = ax1.patch rect.set_facecolor('lightslategray') for label i...
22.321429
56
0.7248
797cd355a13ac793210299af1acbf271ac03a5e9
3,599
py
Python
ircbot/plugin/stack_exchange.py
singingtelegram/ircbot
5bdeca53c9c2fdef26e84fd107a141519dba20fb
[ "Apache-2.0", "CC-BY-4.0" ]
10
2016-11-10T06:32:51.000Z
2021-03-17T00:54:59.000Z
ircbot/plugin/stack_exchange.py
singingtelegram/ircbot
5bdeca53c9c2fdef26e84fd107a141519dba20fb
[ "Apache-2.0", "CC-BY-4.0" ]
106
2016-11-11T20:04:10.000Z
2022-02-04T07:05:14.000Z
ircbot/plugin/stack_exchange.py
singingtelegram/ircbot
5bdeca53c9c2fdef26e84fd107a141519dba20fb
[ "Apache-2.0", "CC-BY-4.0" ]
30
2017-02-08T19:58:13.000Z
2021-04-25T02:23:26.000Z
"""Print information about Stack Exchange links.""" import functools import re import urllib.parse from datetime import datetime from typing import Dict from typing import NamedTuple import requests API = 'https://api.stackexchange.com/2.2' class Site(NamedTuple): api_name: str name: str class Question(N...
27.899225
107
0.619617
797cd35b21dbf6dd55b687dad813e0280a1653e9
3,578
py
Python
accounting/accounting/doctype/purchase_invoice/test_purchase_invoice.py
noahjacob/Accounting
6be90c4f82867156532ca71b1faa9d017e3269af
[ "MIT" ]
1
2021-04-05T06:22:16.000Z
2021-04-05T06:22:16.000Z
accounting/accounting/doctype/purchase_invoice/test_purchase_invoice.py
mohsinalimat/Accounting
6be90c4f82867156532ca71b1faa9d017e3269af
[ "MIT" ]
null
null
null
accounting/accounting/doctype/purchase_invoice/test_purchase_invoice.py
mohsinalimat/Accounting
6be90c4f82867156532ca71b1faa9d017e3269af
[ "MIT" ]
2
2021-04-05T06:22:17.000Z
2021-04-10T06:05:36.000Z
# -*- coding: utf-8 -*- # Copyright (c) 2021, Noah Jacob and Contributors # See license.txt from __future__ import unicode_literals import frappe from frappe.utils import flt,nowdate import unittest class TestPurchaseInvoice(unittest.TestCase): def test_new_purchase_invoice(self): pi = create_purchase_invoice('Gam...
24.506849
155
0.705422
797cd483ad2dc0d717b0fca6340d4ffa993c2548
1,750
py
Python
setup.py
joooeey/tinynetrc
e4e61448c0a80d99d75b85e57d6584c3a702d72b
[ "MIT" ]
11
2017-11-03T12:44:00.000Z
2021-04-16T22:13:38.000Z
setup.py
joooeey/tinynetrc
e4e61448c0a80d99d75b85e57d6584c3a702d72b
[ "MIT" ]
22
2017-11-03T03:00:30.000Z
2021-08-15T18:14:44.000Z
setup.py
joooeey/tinynetrc
e4e61448c0a80d99d75b85e57d6584c3a702d72b
[ "MIT" ]
4
2018-12-30T15:12:37.000Z
2021-12-29T11:21:43.000Z
# -*- coding: utf-8 -*- import re from setuptools import setup EXTRAS_REQUIRE = { 'tests': ['pytest'], 'lint': [ 'flake8==3.9.2', ], } EXTRAS_REQUIRE['dev'] = ( EXTRAS_REQUIRE['tests'] + EXTRAS_REQUIRE['lint'] + ['tox', 'konch'] ) def find_version(fname): """Attempts to find the version n...
26.923077
71
0.583429
797cd53f31f581bdf6d4c67ae8cdd3babf27d6d9
121
py
Python
scholariumat/products/apps.py
valuehack/scholariumat
47c13f3429b95b9ad5ca59b45cf971895260bb5c
[ "MIT" ]
null
null
null
scholariumat/products/apps.py
valuehack/scholariumat
47c13f3429b95b9ad5ca59b45cf971895260bb5c
[ "MIT" ]
232
2018-06-30T11:40:52.000Z
2020-04-29T23:55:41.000Z
scholariumat/products/apps.py
valuehack/scholariumat
47c13f3429b95b9ad5ca59b45cf971895260bb5c
[ "MIT" ]
3
2018-05-31T12:57:03.000Z
2020-02-27T16:25:44.000Z
from django.apps import AppConfig class ProductsConfig(AppConfig): name = 'products' verbose_name = 'Produkte'
17.285714
33
0.735537
797cd571f0fa992a76bedfd6f01a930b5510c685
4,503
py
Python
line_rec/utils.py
linhuifj/kaggle-kuzushiji-recognition
dc77389bbec5d66ed8a35242a2ca37bb683b4b04
[ "MIT" ]
9
2019-11-20T06:27:06.000Z
2020-11-23T08:14:17.000Z
line_rec/utils.py
linhuifj/kaggle-kuzushiji-recognition
dc77389bbec5d66ed8a35242a2ca37bb683b4b04
[ "MIT" ]
1
2020-03-26T13:16:21.000Z
2020-03-26T13:16:21.000Z
line_rec/utils.py
linhuifj/kaggle-kuzushiji-recognition
dc77389bbec5d66ed8a35242a2ca37bb683b4b04
[ "MIT" ]
4
2019-10-29T11:05:24.000Z
2020-04-13T07:34:02.000Z
import torch #device = torch.device('cuda' if torch.cuda.is_available() else 'cpu') class CTCLabelConverter(object): """ Convert between text-label and text-index """ def __init__(self, character, opt): # character (str): set of the possible characters. dict_character = list(character) ...
36.314516
120
0.56851
797cd59026c7a471ce7e7d4b7f9957a34833ad60
914
py
Python
src/uuulib/updaters/git.py
eviljoe/junk-n-stuff
41a4f80cc8e99e5ffcc025529d3731f6272443f6
[ "MIT" ]
null
null
null
src/uuulib/updaters/git.py
eviljoe/junk-n-stuff
41a4f80cc8e99e5ffcc025529d3731f6272443f6
[ "MIT" ]
136
2015-11-17T16:50:49.000Z
2018-03-07T15:53:00.000Z
src/uuulib/updaters/git.py
eviljoe/junk-n-stuff
41a4f80cc8e99e5ffcc025529d3731f6272443f6
[ "MIT" ]
null
null
null
from uuulib.updaters import abstractupdater from jnscommons import jnsvalid _CMD = 'git' class GitUpdater(abstractupdater.AbstractRepoUpdater): def add_help_argument(self, parser): parser.add_argument('--' + _CMD, action='append', default=[], metavar='git_repo', dest='git_dirs', ...
27.69697
106
0.657549
797cd5fbaaa9b3160fcd9747c8ba5cbab19738e9
2,087
py
Python
fn_ip_void/fn_ip_void/util/selftest.py
khirazo/resilient-community-apps
76d21d899945a5458203d6ba9cfaaf9907b395b2
[ "MIT" ]
null
null
null
fn_ip_void/fn_ip_void/util/selftest.py
khirazo/resilient-community-apps
76d21d899945a5458203d6ba9cfaaf9907b395b2
[ "MIT" ]
null
null
null
fn_ip_void/fn_ip_void/util/selftest.py
khirazo/resilient-community-apps
76d21d899945a5458203d6ba9cfaaf9907b395b2
[ "MIT" ]
null
null
null
# (c) Copyright IBM Corp. 2010, 2020. All Rights Reserved. # -*- coding: utf-8 -*- # pragma pylint: disable=unused-argument, no-self-use """Function implementation test with: resilient-circuits selftest -l fn-ip-void """ import logging from resilient_lib import RequestsCommon, validate_fields from fn_ip_void.util.i...
34.213115
163
0.654528
797cd680f63fa0fee81e5eae497432405982c303
605
py
Python
aiogram_pagination/utils/callback_stack_factory.py
altroncode/aiogram-pagination
4389b5b110936b8c22c61eec669843cf1e8452ce
[ "MIT" ]
10
2021-12-08T16:08:26.000Z
2022-02-18T04:46:21.000Z
aiogram_pagination/utils/callback_stack_factory.py
altroncode/aiogram-pagination
4389b5b110936b8c22c61eec669843cf1e8452ce
[ "MIT" ]
1
2022-01-08T20:36:54.000Z
2022-01-08T20:37:39.000Z
aiogram_pagination/utils/callback_stack_factory.py
altroncode/aiogram-pagination
4389b5b110936b8c22c61eec669843cf1e8452ce
[ "MIT" ]
null
null
null
from aiogram.utils.callback_data import CallbackData from aiogram_pagination.utils.misc.overloading import overload, OverloadMeta class CallbackStackFactory(CallbackData, metaclass=OverloadMeta): def __init__(self, prefix, *parts): super().__init__(prefix, *parts) self._part_names = *self._part_n...
33.611111
76
0.692562
797cd6e46cc94b5d794e88935e283f6f368362ed
98
py
Python
app/app/main/routes.py
mikhailsidorov/flask-docker-heroku-template
211ac1ca432da9e8034e77b4af8ef995b0f3c15b
[ "MIT" ]
null
null
null
app/app/main/routes.py
mikhailsidorov/flask-docker-heroku-template
211ac1ca432da9e8034e77b4af8ef995b0f3c15b
[ "MIT" ]
null
null
null
app/app/main/routes.py
mikhailsidorov/flask-docker-heroku-template
211ac1ca432da9e8034e77b4af8ef995b0f3c15b
[ "MIT" ]
null
null
null
from app import db from app.main import bp @bp.route('/') def index(): return 'Hello World!'
14
25
0.663265
797cd6fb783c513380944ddb14adf22050beb4e0
1,241
py
Python
var/spack/repos/builtin/packages/nettle/package.py
jeanbez/spack
f4e51ce8f366c85bf5aa0eafe078677b42dae1ba
[ "ECL-2.0", "Apache-2.0", "MIT-0", "MIT" ]
null
null
null
var/spack/repos/builtin/packages/nettle/package.py
jeanbez/spack
f4e51ce8f366c85bf5aa0eafe078677b42dae1ba
[ "ECL-2.0", "Apache-2.0", "MIT-0", "MIT" ]
8
2021-11-09T20:28:40.000Z
2022-03-15T03:26:33.000Z
var/spack/repos/builtin/packages/nettle/package.py
jeanbez/spack
f4e51ce8f366c85bf5aa0eafe078677b42dae1ba
[ "ECL-2.0", "Apache-2.0", "MIT-0", "MIT" ]
2
2019-02-08T20:37:20.000Z
2019-03-31T15:19:26.000Z
# Copyright 2013-2022 Lawrence Livermore National Security, LLC and other # Spack Project Developers. See the top-level COPYRIGHT file for details. # # SPDX-License-Identifier: (Apache-2.0 OR MIT) from spack.package import * class Nettle(AutotoolsPackage, GNUMirrorPackage): """The Nettle package contains the low...
44.321429
95
0.770346
797cd700da9d86d498e79f6c22735c477dba48f9
2,964
py
Python
constants.py
arunkumaraqm/Polynomial-Interpolation
0718e488cff63517de0877ded7650b38c24d9c56
[ "MIT" ]
1
2021-08-01T13:08:04.000Z
2021-08-01T13:08:04.000Z
constants.py
arunkumaraqm/Polynomial-Interpolation
0718e488cff63517de0877ded7650b38c24d9c56
[ "MIT" ]
null
null
null
constants.py
arunkumaraqm/Polynomial-Interpolation
0718e488cff63517de0877ded7650b38c24d9c56
[ "MIT" ]
null
null
null
FPS = 20 # frames per second import pandas as pd import pygame as game cdf = pd.read_csv('colors.csv') # convert to dictionary with name as key and list of r, g, b values as value del cdf['common_name'] del cdf['hex'] colors = cdf.set_index('name').T.to_dict('list') colors.update({ 'black': (000, 000, 000), 'w...
27.192661
120
0.709514
797cd7ca4a7ceb0a72ac2926c55632aea3d3b34f
196
py
Python
hexrd/ui/constants.py
psavery/hexrdgui
2a02dff4284bdddc48aa0bb17473cc651e161759
[ "BSD-3-Clause" ]
null
null
null
hexrd/ui/constants.py
psavery/hexrdgui
2a02dff4284bdddc48aa0bb17473cc651e161759
[ "BSD-3-Clause" ]
null
null
null
hexrd/ui/constants.py
psavery/hexrdgui
2a02dff4284bdddc48aa0bb17473cc651e161759
[ "BSD-3-Clause" ]
null
null
null
from hexrd import constants # Wavelength to kilo electron volt conversion WAVELENGTH_TO_KEV = constants.keVToAngstrom(1.) KEV_TO_WAVELENGTH = constants.keVToAngstrom(1.) DEFAULT_CMAP = 'plasma'
24.5
47
0.816327
797cd7e10cda501fdb512072cb79f2eaac10f9ad
3,954
py
Python
geoopt/utils.py
leonMatzner/geoopt
4a7058e43bf78ab5012b862076a74bec175df221
[ "Apache-2.0" ]
438
2019-03-05T11:24:03.000Z
2022-03-31T14:46:42.000Z
geoopt/utils.py
leonMatzner/geoopt
4a7058e43bf78ab5012b862076a74bec175df221
[ "Apache-2.0" ]
98
2019-03-07T21:38:24.000Z
2022-03-25T10:48:45.000Z
geoopt/utils.py
leonMatzner/geoopt
4a7058e43bf78ab5012b862076a74bec175df221
[ "Apache-2.0" ]
58
2019-04-13T04:52:16.000Z
2022-03-14T09:26:00.000Z
import itertools from typing import Tuple, Any, Union, List import torch.jit import functools import operator import geoopt __all__ = [ "strip_tuple", "size2shape", "make_tuple", "broadcast_shapes", "ismanifold", "canonical_manifold", "list_range", "idx2sign", "drop_dims", "cano...
22.213483
121
0.604957
797cd81fd6beda7bf94b667ed6655d05a138b17b
4,954
py
Python
infer.py
wilson1yan/tgan
33d0f687505f32774b8a731c18e5f88370afaaa0
[ "MIT" ]
76
2017-10-05T07:19:57.000Z
2022-03-25T13:00:15.000Z
infer.py
jrdeco560/tgan
53fde1bcb59e2a57f76b9b26097226ec0423811f
[ "MIT" ]
12
2017-10-05T07:42:20.000Z
2020-11-04T10:24:45.000Z
infer.py
jrdeco560/tgan
53fde1bcb59e2a57f76b9b26097226ec0423811f
[ "MIT" ]
39
2017-10-05T07:20:04.000Z
2022-03-01T18:27:47.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- import argparse import glob import imp import os import subprocess import sys import numpy as np import yaml import chainer import chainer.functions as F import cv2 as cv from chainer import Variable from chainer import serializers def make_video(fsgen, vgen, n, z_slow...
34.165517
115
0.61304
797cd88380b03c2f743e1624f4892fa7b0158659
734
py
Python
appengine/findit/crash/stacktrace.py
eunchong/infra
ce3728559112bfb3e8b32137eada517aec6d22f9
[ "BSD-3-Clause" ]
null
null
null
appengine/findit/crash/stacktrace.py
eunchong/infra
ce3728559112bfb3e8b32137eada517aec6d22f9
[ "BSD-3-Clause" ]
null
null
null
appengine/findit/crash/stacktrace.py
eunchong/infra
ce3728559112bfb3e8b32137eada517aec6d22f9
[ "BSD-3-Clause" ]
null
null
null
# Copyright 2016 The Chromium Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. class Stacktrace(list): """Interface Represents Stacktrace object. Contains a list of callstacks, because one stacktrace may have more than one calls...
31.913043
77
0.724796