hexsha
stringlengths
40
40
size
int64
2
1.05M
ext
stringclasses
9 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
4
193
max_stars_repo_name
stringlengths
6
109
max_stars_repo_head_hexsha
stringlengths
40
78
max_stars_repo_licenses
listlengths
1
10
max_stars_count
int64
1
36.6k
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
4
193
max_issues_repo_name
stringlengths
6
109
max_issues_repo_head_hexsha
stringlengths
40
78
max_issues_repo_licenses
listlengths
1
10
max_issues_count
int64
1
29.8k
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
4
193
max_forks_repo_name
stringlengths
6
109
max_forks_repo_head_hexsha
stringlengths
40
78
max_forks_repo_licenses
listlengths
1
10
max_forks_count
int64
1
11.2k
max_forks_repo_forks_event_min_datetime
stringlengths
24
24
max_forks_repo_forks_event_max_datetime
stringlengths
24
24
content
stringlengths
2
1.05M
avg_line_length
float64
1
404k
max_line_length
int64
1
1.03M
alphanum_fraction
float64
0
1
f76d7bcf84ad710baf9ea9a5daef85a825f71ff5
2,056
py
Python
dnacentersdk/models/validators/v2_1_2/jsd_00a2fa6146089317.py
nonstdout/dnacentersdk
dbbbc4baa5300aa9e5c9193f2ea71438018095f5
[ "MIT" ]
null
null
null
dnacentersdk/models/validators/v2_1_2/jsd_00a2fa6146089317.py
nonstdout/dnacentersdk
dbbbc4baa5300aa9e5c9193f2ea71438018095f5
[ "MIT" ]
null
null
null
dnacentersdk/models/validators/v2_1_2/jsd_00a2fa6146089317.py
nonstdout/dnacentersdk
dbbbc4baa5300aa9e5c9193f2ea71438018095f5
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """DNA Center Add members to the tag data model. Copyright (c) 2019-2020 Cisco and/or its affiliates. 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, ...
35.448276
78
0.712549
f76d9cd36678be609f7373df612d091604edfb5c
2,065
py
Python
bootcamp/multimedia/migrations/0002_auto_20180206_1238.py
basiltiger/easy_bootcamp
875b9ed287f1a7824bb38f142dbe2f3b1ce54389
[ "MIT" ]
null
null
null
bootcamp/multimedia/migrations/0002_auto_20180206_1238.py
basiltiger/easy_bootcamp
875b9ed287f1a7824bb38f142dbe2f3b1ce54389
[ "MIT" ]
null
null
null
bootcamp/multimedia/migrations/0002_auto_20180206_1238.py
basiltiger/easy_bootcamp
875b9ed287f1a7824bb38f142dbe2f3b1ce54389
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # Generated by Django 1.11.10 on 2018-02-06 12:38 from __future__ import unicode_literals import autoslug.fields from django.conf import settings from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ migr...
40.490196
166
0.591283
f76db251f0ceb323466a4f23b2df6501aafd4626
408
py
Python
apps/core/urls.py
sparcs-kaist/new-ara-api
63998da575cb148347708199fe1345c4e7ee3e1b
[ "MIT" ]
19
2017-09-13T07:51:58.000Z
2022-03-28T11:04:03.000Z
apps/core/urls.py
sparcs-kaist/new-ara-api
63998da575cb148347708199fe1345c4e7ee3e1b
[ "MIT" ]
147
2017-09-14T13:45:30.000Z
2022-03-14T15:54:09.000Z
apps/core/urls.py
sparcs-kaist/new-ara-api
63998da575cb148347708199fe1345c4e7ee3e1b
[ "MIT" ]
5
2019-08-31T13:13:30.000Z
2021-03-26T15:46:38.000Z
from django.urls import path, include from apps.core.views import HomeView, InvalidSsoLoginView, StatusView, router urlpatterns = [ path('api/', include(router.urls)), path('api/home/', view=HomeView.as_view(), name='HomeView'), path('api/status/', view=StatusView.as_view(), name='StatusView'), path(...
34
94
0.723039
f76db9d9047afcd22814c1c8ba0659a389ddbb14
4,047
py
Python
tests/rest/test_evidence_list_by_document.py
UniStuttgart-VISUS/damast
05ceb150e86227d81f0f4bb441af6d4f8bce65ee
[ "MIT" ]
2
2021-12-22T17:01:02.000Z
2022-01-18T17:05:48.000Z
tests/rest/test_evidence_list_by_document.py
UniStuttgart-VISUS/damast
05ceb150e86227d81f0f4bb441af6d4f8bce65ee
[ "MIT" ]
94
2021-12-22T11:21:57.000Z
2022-03-31T22:40:56.000Z
tests/rest/test_evidence_list_by_document.py
UniStuttgart-VISUS/damast
05ceb150e86227d81f0f4bb441af6d4f8bce65ee
[ "MIT" ]
1
2022-01-04T09:04:47.000Z
2022-01-04T09:04:47.000Z
import pytest import re import psycopg2.extras import damast from damast.postgres_rest_api.util import NumericRangeEncoder import flask import json from functools import namedtuple from conftest import get_headers from database.testdata import annotation_table, document_table, evidence_table, person_instance_table, pl...
38.542857
166
0.668396
f76dc2cbfee057cdbb76ab87638d1d8f23a4dedf
4,769
py
Python
src/ftd/offset.py
FabienTaxil/ftd
a36e0ca59eb60e216a5de1eb93d1089a7f080ec7
[ "MIT" ]
3
2022-01-26T23:43:16.000Z
2022-02-11T07:50:49.000Z
src/ftd/offset.py
lixaft/ftd
a36e0ca59eb60e216a5de1eb93d1089a7f080ec7
[ "MIT" ]
null
null
null
src/ftd/offset.py
lixaft/ftd
a36e0ca59eb60e216a5de1eb93d1089a7f080ec7
[ "MIT" ]
null
null
null
"""Provide utilities related to offsets.""" import logging import math from maya import cmds from maya.api import OpenMaya import ftd.attribute import ftd.connection __all__ = [ "group", "inverse_group", "matrix", "matrix_to_group", "reset_matrix", "unmatrix", ] LOG = logging.getLogger(__nam...
30.570513
79
0.623191
f76de113981c32c8fba69d5886599571dd1a5559
4,635
py
Python
tests/metrics/test_modis_evi.py
natgeosociety/marapp-metrics
f3883452fbbe4101c7a6a6481316fe78246c8be2
[ "Apache-2.0" ]
null
null
null
tests/metrics/test_modis_evi.py
natgeosociety/marapp-metrics
f3883452fbbe4101c7a6a6481316fe78246c8be2
[ "Apache-2.0" ]
4
2020-11-25T12:03:26.000Z
2022-01-22T13:58:02.000Z
tests/metrics/test_modis_evi.py
natgeosociety/marapp-metrics
f3883452fbbe4101c7a6a6481316fe78246c8be2
[ "Apache-2.0" ]
1
2021-02-23T18:58:10.000Z
2021-02-23T18:58:10.000Z
""" Copyright 2018-2020 National Geographic Society Use of this software does not constitute endorsement by National Geographic Society (NGS). The NGS name and NGS logo may not be used for any purpose without written permission from NGS. Licensed under the Apache License, Version 2.0 (the "License"); you ma...
31.530612
87
0.675512
f76df04fafe33ec4198ed826c173a0970619001c
1,853
py
Python
SCRAPE/Lib/site-packages/twisted/internet/test/test_kqueuereactor.py
Chinmoy-Prasad-Dutta/scrapy_scraper
09f6abfc3bcf10ee28f486d83b450c89a07e066e
[ "MIT" ]
4,612
2015-01-01T12:57:23.000Z
2022-03-30T01:08:23.000Z
SCRAPE/Lib/site-packages/twisted/internet/test/test_kqueuereactor.py
Chinmoy-Prasad-Dutta/scrapy_scraper
09f6abfc3bcf10ee28f486d83b450c89a07e066e
[ "MIT" ]
1,243
2015-01-23T17:23:59.000Z
2022-03-28T13:46:17.000Z
SCRAPE/Lib/site-packages/twisted/internet/test/test_kqueuereactor.py
Chinmoy-Prasad-Dutta/scrapy_scraper
09f6abfc3bcf10ee28f486d83b450c89a07e066e
[ "MIT" ]
1,236
2015-01-13T14:41:26.000Z
2022-03-17T07:12:36.000Z
# Copyright (c) Twisted Matrix Laboratories. # See LICENSE for details. """ Tests for L{twisted.internet.kqueuereactor}. """ import errno from zope.interface import implementer from twisted.trial.unittest import TestCase try: from twisted.internet.kqreactor import KQueueReactor, _IKQueue kqueueSkip = None...
25.383562
79
0.660011
f76dfce45f526d858a6dc3e72e254613e5468791
1,320
py
Python
cloud-sql/sql-server/sqlalchemy/main.py
jsj14/python-docs-samples
9cf5461b166eea824c40c704ed06c5ea53cf91d4
[ "Apache-2.0" ]
null
null
null
cloud-sql/sql-server/sqlalchemy/main.py
jsj14/python-docs-samples
9cf5461b166eea824c40c704ed06c5ea53cf91d4
[ "Apache-2.0" ]
null
null
null
cloud-sql/sql-server/sqlalchemy/main.py
jsj14/python-docs-samples
9cf5461b166eea824c40c704ed06c5ea53cf91d4
[ "Apache-2.0" ]
null
null
null
# Copyright 2020 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, s...
33
85
0.711364
f76e1cbdfcf18783e161ab18d4ab1f9750594a2e
669
py
Python
data-processing/tests/test_match_symbols.py
jusheen/scholar-reader
d1d87c0e2ab1cb411b9a9b80e3e2e7e256b9c9c0
[ "Apache-2.0" ]
null
null
null
data-processing/tests/test_match_symbols.py
jusheen/scholar-reader
d1d87c0e2ab1cb411b9a9b80e3e2e7e256b9c9c0
[ "Apache-2.0" ]
null
null
null
data-processing/tests/test_match_symbols.py
jusheen/scholar-reader
d1d87c0e2ab1cb411b9a9b80e3e2e7e256b9c9c0
[ "Apache-2.0" ]
null
null
null
from common.match_symbols import Match, get_mathml_matches DEFAULT_TEX_PATH = "tex-path" DEFAULT_EQUATION_INDEX = 0 def test_matches_self(): mathml = "<mi>x</mi>" matches = get_mathml_matches([mathml]) assert len(matches) == 1 assert matches[mathml] == [Match(mathml, mathml, 1)] def test_matches_ch...
27.875
58
0.638266
f76e31de7cb2e7e5df8067f0592ad2f99d020c8c
8,155
py
Python
ViewStuff/default_calendar/default_calendar_controller.py
nortismo/ADC
48dfaaae71db174a48a0c308b77a3405d92cf729
[ "Beerware" ]
1
2018-11-26T10:59:51.000Z
2018-11-26T10:59:51.000Z
ViewStuff/default_calendar/default_calendar_controller.py
nortismo/ADC
48dfaaae71db174a48a0c308b77a3405d92cf729
[ "Beerware" ]
null
null
null
ViewStuff/default_calendar/default_calendar_controller.py
nortismo/ADC
48dfaaae71db174a48a0c308b77a3405d92cf729
[ "Beerware" ]
null
null
null
import datetime import sys from PyQt5.QtCore import QObject, QUrl, QByteArray from PyQt5.QtQml import QQmlApplicationEngine from PyQt5.QtWidgets import QMainWindow, QApplication from ViewStuff.text_input.text_input_controller import TextInputController from CalendarStuff import Calendar from ViewStuff.default_calendar...
45.814607
215
0.657633
f76e475aa5462e3f7981f45fa42c0237b8031f1c
1,529
py
Python
transformer/plugins/test_sanitize_headers.py
jsabak/Transformer
c96ff1bed109f114f7c69143c85ee362e5f518d1
[ "MIT" ]
null
null
null
transformer/plugins/test_sanitize_headers.py
jsabak/Transformer
c96ff1bed109f114f7c69143c85ee362e5f518d1
[ "MIT" ]
null
null
null
transformer/plugins/test_sanitize_headers.py
jsabak/Transformer
c96ff1bed109f114f7c69143c85ee362e5f518d1
[ "MIT" ]
null
null
null
from datetime import datetime from urllib.parse import urlparse from transformer.request import HttpMethod, Header, Request from transformer.task import Task2 from .sanitize_headers import plugin def test_its_name_is_resolvable(): from transformer.plugins import resolve assert list(resolve("transformer.plug...
28.314815
76
0.704382
f76e7d99cfe91f1d91e7f73cc51d42d413c83cf6
2,688
py
Python
sugaroid/brain/bye.py
vardaan-raj/sugaroid
d0476fb9c44a73fee2e0de45162f2b1ac86452aa
[ "MIT" ]
4
2020-09-28T13:52:40.000Z
2020-10-30T15:24:50.000Z
sugaroid/brain/bye.py
sreyasaju/sugaroid
d58e06fb664daa16fda1bf23cc73068efcd5634c
[ "MIT" ]
null
null
null
sugaroid/brain/bye.py
sreyasaju/sugaroid
d58e06fb664daa16fda1bf23cc73068efcd5634c
[ "MIT" ]
null
null
null
""" MIT License Sugaroid Artificial Intelligence Chatbot Core Copyright (c) 2020-2021 Srevin Saju Copyright (c) 2021 The Sugaroid Project 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 r...
35.84
87
0.730655
f76f1fb954ada0f955275d43f302adf3b1516bfd
8,875
py
Python
openbb_terminal/cryptocurrency/overview/coinpaprika_view.py
JerBouma/OpenBBTerminal
0c60d70cb29b0a6e4db41d6dd0d34f79a6169b27
[ "MIT" ]
null
null
null
openbb_terminal/cryptocurrency/overview/coinpaprika_view.py
JerBouma/OpenBBTerminal
0c60d70cb29b0a6e4db41d6dd0d34f79a6169b27
[ "MIT" ]
null
null
null
openbb_terminal/cryptocurrency/overview/coinpaprika_view.py
JerBouma/OpenBBTerminal
0c60d70cb29b0a6e4db41d6dd0d34f79a6169b27
[ "MIT" ]
null
null
null
"""CoinPaprika view""" __docformat__ = "numpy" import logging import os from pandas.plotting import register_matplotlib_converters import openbb_terminal.cryptocurrency.overview.coinpaprika_model as paprika from openbb_terminal.cryptocurrency.dataframe_helpers import ( lambda_long_number_format_with_type_check, ...
23.729947
111
0.629296
f76f3e5698487eb779909d64fdc2a5b52cd50d83
1,041
py
Python
talks/lambdas/scratch.py
KTLAI/UMpy
6b2af3e936699f5559ef648a36121376bf01a403
[ "BSD-3-Clause" ]
null
null
null
talks/lambdas/scratch.py
KTLAI/UMpy
6b2af3e936699f5559ef648a36121376bf01a403
[ "BSD-3-Clause" ]
null
null
null
talks/lambdas/scratch.py
KTLAI/UMpy
6b2af3e936699f5559ef648a36121376bf01a403
[ "BSD-3-Clause" ]
12
2020-06-15T13:35:15.000Z
2021-09-10T00:38:39.000Z
# TODO arithmetic ['Rank'] + headers # Using Lambda: Lambda definition does not include a “return” statement, # it always contains an expression that is returned. We can also put a lambda definition anywhere # a function is expected, and we don’t have to assign it to a variable at all. This is the # simplicity of lam...
30.617647
97
0.694524
f76f4236a6262dce74cb87b19d1fcab21b387f20
265
py
Python
news/templatetags/message_tag.py
FRA1T/django_news
f293df7197a261d8f853a68a1579dc377c0f1d15
[ "MIT" ]
2
2020-10-31T07:01:03.000Z
2020-10-31T07:04:13.000Z
news/templatetags/message_tag.py
FRA1T/django_news
f293df7197a261d8f853a68a1579dc377c0f1d15
[ "MIT" ]
null
null
null
news/templatetags/message_tag.py
FRA1T/django_news
f293df7197a261d8f853a68a1579dc377c0f1d15
[ "MIT" ]
1
2020-10-31T07:04:21.000Z
2020-10-31T07:04:21.000Z
from django import template register = template.Library() @register.inclusion_tag('news/tags/message.html') def show_message_from_level_important(messages): """Shows messages after submitting form.""" context = {'messages': messages} return context
22.083333
49
0.750943
f76f49ec0661d51f837a3c1aa91c9842c26e099b
2,492
py
Python
core/argo/core/network/MultivariateNormalTriL.py
szokejokepu/natural-rws
bb1ad4ca3ec714e6bf071d2136593dc853492b68
[ "MIT" ]
4
2020-12-07T19:13:13.000Z
2022-01-30T18:52:18.000Z
core/argo/core/network/MultivariateNormalTriL.py
szokejokepu/natural-rws
bb1ad4ca3ec714e6bf071d2136593dc853492b68
[ "MIT" ]
12
2020-09-25T22:41:28.000Z
2022-02-09T23:46:34.000Z
core/argo/core/network/MultivariateNormalTriL.py
szokejokepu/natural-rws
bb1ad4ca3ec714e6bf071d2136593dc853492b68
[ "MIT" ]
2
2021-03-02T18:31:04.000Z
2021-03-02T21:56:43.000Z
import tensorflow as tf from tensorflow_probability import distributions as tfd from functools import partial from .AbstractGaussianSimple import AbstractGaussianSimple import types import sonnet as snt class MultivariateNormalTriL(AbstractGaussianSimple): def __init__(self, output_size, ...
40.193548
128
0.611557
f76f5e0f18c75ba74cc497ad491e2f8e20a37297
128
py
Python
setup.py
swryan/pyCycleOld
fbab35b74d0e5487abe686ae0823ff52e75afb3b
[ "Apache-2.0" ]
null
null
null
setup.py
swryan/pyCycleOld
fbab35b74d0e5487abe686ae0823ff52e75afb3b
[ "Apache-2.0" ]
null
null
null
setup.py
swryan/pyCycleOld
fbab35b74d0e5487abe686ae0823ff52e75afb3b
[ "Apache-2.0" ]
null
null
null
from distutils.core import setup setup(name='pycycle', version='3.0.0', packages=[ 'pycycle', ], )
14.222222
32
0.539063
f76f5f04ffc7cd1e2df6eab4d2846736aed0f9eb
9,492
py
Python
tests/integration/widgets/test_datepicker.py
ivan-usov/bokeh
ec3295c4e6027864db4821b59d1a423bf4a1245f
[ "BSD-3-Clause" ]
null
null
null
tests/integration/widgets/test_datepicker.py
ivan-usov/bokeh
ec3295c4e6027864db4821b59d1a423bf4a1245f
[ "BSD-3-Clause" ]
null
null
null
tests/integration/widgets/test_datepicker.py
ivan-usov/bokeh
ec3295c4e6027864db4821b59d1a423bf4a1245f
[ "BSD-3-Clause" ]
null
null
null
#----------------------------------------------------------------------------- # Copyright (c) 2012 - 2017, Anaconda, Inc. All rights reserved. # # Powered by the Bokeh Development Team. # # The full license is in the file LICENSE.txt, distributed with this software. #---------------------------------------------------...
41.814978
144
0.605352
f76f692faf67eb05d3f45a4c3153deea16254557
67
py
Python
blousebrothers/partner/__init__.py
sladinji/blousebrothers
461de3ba011c0aaed3f0014136c4497b6890d086
[ "MIT" ]
1
2022-01-27T11:58:10.000Z
2022-01-27T11:58:10.000Z
blousebrothers/partner/__init__.py
sladinji/blousebrothers
461de3ba011c0aaed3f0014136c4497b6890d086
[ "MIT" ]
5
2021-03-19T00:01:54.000Z
2022-03-11T23:46:21.000Z
blousebrothers/partner/__init__.py
sladinji/blousebrothers
461de3ba011c0aaed3f0014136c4497b6890d086
[ "MIT" ]
null
null
null
default_app_config = 'blousebrothers.partner.config.PartnerConfig'
33.5
66
0.865672
f76f763a0e94f9e4b2a36171561594cf034dc953
1,891
py
Python
manage.py
grantmcconnaughey/django-field-history
84cda9d5d49d5ea6220ab1c82878c37280490a6b
[ "BSD-3-Clause" ]
346
2016-02-17T22:29:55.000Z
2022-03-20T17:43:26.000Z
manage.py
grantmcconnaughey/django-field-history
84cda9d5d49d5ea6220ab1c82878c37280490a6b
[ "BSD-3-Clause" ]
36
2016-02-18T18:41:11.000Z
2021-09-17T05:48:36.000Z
manage.py
grantmcconnaughey/django-field-history
84cda9d5d49d5ea6220ab1c82878c37280490a6b
[ "BSD-3-Clause" ]
42
2016-02-19T18:20:47.000Z
2020-09-11T01:31:52.000Z
#!/usr/bin/env python import os import sys try: from django.conf import settings settings.configure( DEBUG=True, USE_TZ=True, DATABASES={ "default": { "ENGINE": "django.db.backends.sqlite3", "NAME": "db.sqlite3" } }, ...
27.808824
85
0.558964
f76fada27e5bd1a3ae53db0871ce66fb01ff7eec
21,531
py
Python
ooni/reporter.py
irl/ooni-probe
c21861c28ca6bd667715872d099006fab87222fd
[ "BSD-2-Clause" ]
null
null
null
ooni/reporter.py
irl/ooni-probe
c21861c28ca6bd667715872d099006fab87222fd
[ "BSD-2-Clause" ]
null
null
null
ooni/reporter.py
irl/ooni-probe
c21861c28ca6bd667715872d099006fab87222fd
[ "BSD-2-Clause" ]
null
null
null
import uuid import yaml import os from copy import deepcopy from datetime import datetime from contextlib import contextmanager from yaml.representer import SafeRepresenter from yaml.emitter import Emitter from yaml.serializer import Serializer from yaml.resolver import Resolver from twisted.python.util import unti...
33.589704
108
0.59203
f76fc6e378b23e85416b49d5173cfb94eb2eb888
1,873
py
Python
experiments/evaluate.py
johnruth96/privacy-justifiable-fairness
3f5ae92d791df1827cbc8720cf5e7aa33ceed7aa
[ "MIT" ]
null
null
null
experiments/evaluate.py
johnruth96/privacy-justifiable-fairness
3f5ae92d791df1827cbc8720cf5e7aa33ceed7aa
[ "MIT" ]
null
null
null
experiments/evaluate.py
johnruth96/privacy-justifiable-fairness
3f5ae92d791df1827cbc8720cf5e7aa33ceed7aa
[ "MIT" ]
null
null
null
import os import pandas as pd from experiments.conf import Config from fairness import measure_fairness from privacy.models import get_l_distinct, get_k def evaluate_experiment(conf: Config): # Load setup setup = conf.get_setup() A = setup["A"] I = setup["I"] O = setup["O"] S = setup["S"] ...
30.704918
96
0.564335
f76fdef1fd6eb1ca9c5e3fd37aaa8cdd4b15c7d3
6,149
py
Python
mplStyle/MplTextStyle.py
khanfarhan10/mplStyle
f657f54c6c101811b8bf0c44f4b16d4f4926685d
[ "BSD-3-Clause" ]
39
2015-03-08T23:05:01.000Z
2022-02-07T16:03:35.000Z
mplStyle/MplTextStyle.py
khanfarhan10/mplStyle
f657f54c6c101811b8bf0c44f4b16d4f4926685d
[ "BSD-3-Clause" ]
null
null
null
mplStyle/MplTextStyle.py
khanfarhan10/mplStyle
f657f54c6c101811b8bf0c44f4b16d4f4926685d
[ "BSD-3-Clause" ]
23
2015-03-08T19:56:59.000Z
2021-07-15T15:16:26.000Z
#=========================================================================== # # Copyright (c) 2014, California Institute of Technology. # U.S. Government Sponsorship under NASA Contract NAS7-03001 is # acknowledged. All rights reserved. # # Redistribution and use in source and binary forms, with or without # modific...
34.740113
76
0.58107
f76ffdb0b7f1aa5ffab22d055c1db552ca94cbf0
119
py
Python
resources/__init__.py
UMCUGenetics/clarity_utils
85c79a906bc587fbdc67d1329e0bc56923769d53
[ "MIT" ]
1
2018-06-18T16:15:48.000Z
2018-06-18T16:15:48.000Z
resources/__init__.py
UMCUGenetics/clarity_utils
85c79a906bc587fbdc67d1329e0bc56923769d53
[ "MIT" ]
2
2021-03-31T20:12:34.000Z
2021-11-22T14:33:22.000Z
resources/__init__.py
UMCUGenetics/clarity_utils_usf
85c79a906bc587fbdc67d1329e0bc56923769d53
[ "MIT" ]
null
null
null
import resources.useq_run_status_mail import resources.useq_modify_samplesheet import resources.useq_group_permissions
29.75
40
0.92437
f77053df666d6cfee963850d33c130b1501189a8
9,947
py
Python
cwltool/pathmapper.py
wtsi-hgi/cwltool
6d3e9f0b0f2c4fb78b76eb4270451f29515322f3
[ "Apache-2.0" ]
2
2017-07-06T13:25:23.000Z
2017-07-06T13:26:15.000Z
cwltool/pathmapper.py
igormusinov/cwl_parser_python3
5b2cd24496c424fbe0923d6b1f715076fab1ca4c
[ "Apache-2.0" ]
1
2018-05-10T06:45:21.000Z
2018-05-10T06:45:21.000Z
cwltool/pathmapper.py
wtsi-hgi/cwltool
6d3e9f0b0f2c4fb78b76eb4270451f29515322f3
[ "Apache-2.0" ]
null
null
null
import collections import logging import os import stat import uuid from functools import partial from typing import Any, Callable, Iterable, Set, Text, Tuple, Union import schema_salad.validate as validate from schema_salad.ref_resolver import uri_file_path from schema_salad.sourceline import SourceLine from six.move...
40.108871
130
0.601287
f7707148dc9ff83a86cf975acc4eb1deaea4e803
880
py
Python
utils/overwrite.py
AliasPedroKarim/Kagura
892ee3daab31f0e55e7c810413617e89d5ce1317
[ "MIT" ]
null
null
null
utils/overwrite.py
AliasPedroKarim/Kagura
892ee3daab31f0e55e7c810413617e89d5ce1317
[ "MIT" ]
null
null
null
utils/overwrite.py
AliasPedroKarim/Kagura
892ee3daab31f0e55e7c810413617e89d5ce1317
[ "MIT" ]
null
null
null
# -*- encoding:utf-8 -*- import discord from discord.ext.commands import check, NotOwner def is_owner(): """ A :func:`.check` that checks if the person invoking this command is the owner of the bot. This is powered by :meth:`.Bot.is_owner`. This check raises a special exception, :exc:`.NotOwner`...
30.344828
132
0.628409
f770793b798248ca404e791238689342fb38d1e4
4,752
py
Python
Tools/parametric_model/src/models/multirotor_model.py
ethz-asl/data-driven-dynamics
decf4bec19c9fc4a1789f5eb4d6e6003774c75d6
[ "BSD-3-Clause" ]
38
2021-12-20T22:52:25.000Z
2022-03-15T09:45:01.000Z
Tools/parametric_model/src/models/multirotor_model.py
ethz-asl/data-driven-dynamics
decf4bec19c9fc4a1789f5eb4d6e6003774c75d6
[ "BSD-3-Clause" ]
18
2021-12-21T09:36:20.000Z
2022-03-20T13:03:27.000Z
Tools/parametric_model/src/models/multirotor_model.py
ethz-asl/data-driven-dynamics
decf4bec19c9fc4a1789f5eb4d6e6003774c75d6
[ "BSD-3-Clause" ]
8
2021-12-20T22:52:34.000Z
2022-03-30T21:13:59.000Z
""" * * Copyright (c) 2021 Manuel Yves Galliker * 2021 Autonomous Systems Lab ETH Zurich * All rights reserved. * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * * 1. Redistributions of source cod...
44.411215
149
0.710859
f77085ec0351604c5a745321937bd20be630e3cf
476
py
Python
lemur/tests/plugins/destination_plugin.py
x-lhan/lemur
1d8aaa4a242af610363e961167bc31691b358773
[ "Apache-2.0" ]
null
null
null
lemur/tests/plugins/destination_plugin.py
x-lhan/lemur
1d8aaa4a242af610363e961167bc31691b358773
[ "Apache-2.0" ]
2
2020-04-03T09:28:20.000Z
2020-04-04T04:56:35.000Z
lemur/tests/plugins/destination_plugin.py
x-lhan/lemur
1d8aaa4a242af610363e961167bc31691b358773
[ "Apache-2.0" ]
null
null
null
from lemur.plugins.bases import DestinationPlugin class TestDestinationPlugin(DestinationPlugin): title = 'Test' slug = 'test-destination' description = 'Enables testing' author = 'Kevin Glisson' author_url = 'https://github.com/netflix/lemur.git' def __init__(self, *args, **kwargs): ...
28
77
0.695378
f770a51ae17e11d4c6d504c1e323da5cc5108a0b
276
py
Python
terrascript/transloadit/r.py
mjuenema/python-terrascript
6d8bb0273a14bfeb8ff8e950fe36f97f7c6e7b1d
[ "BSD-2-Clause" ]
507
2017-07-26T02:58:38.000Z
2022-01-21T12:35:13.000Z
terrascript/transloadit/r.py
mjuenema/python-terrascript
6d8bb0273a14bfeb8ff8e950fe36f97f7c6e7b1d
[ "BSD-2-Clause" ]
135
2017-07-20T12:01:59.000Z
2021-10-04T22:25:40.000Z
terrascript/transloadit/r.py
mjuenema/python-terrascript
6d8bb0273a14bfeb8ff8e950fe36f97f7c6e7b1d
[ "BSD-2-Clause" ]
81
2018-02-20T17:55:28.000Z
2022-01-31T07:08:40.000Z
# terrascript/transloadit/r.py # Automatically generated by tools/makecode.py () import warnings warnings.warn( "using the 'legacy layout' is deprecated", DeprecationWarning, stacklevel=2 ) import terrascript class transloadit_template(terrascript.Resource): pass
19.714286
79
0.782609
f770bbc784a3d05eebbe9bb729d5584a7b5ebeda
22,399
py
Python
nova/virt/libvirt/blockinfo.py
ebalduf/nova-backports
6bf97ec73467de522d34ab7a17ca0e0874baa7f9
[ "Apache-2.0" ]
5
2016-04-28T16:20:38.000Z
2021-04-25T11:19:03.000Z
nova/virt/libvirt/blockinfo.py
ebalduf/nova-backports
6bf97ec73467de522d34ab7a17ca0e0874baa7f9
[ "Apache-2.0" ]
null
null
null
nova/virt/libvirt/blockinfo.py
ebalduf/nova-backports
6bf97ec73467de522d34ab7a17ca0e0874baa7f9
[ "Apache-2.0" ]
5
2020-04-08T20:24:45.000Z
2020-10-05T19:02:13.000Z
# Copyright (C) 2012-2013 Red Hat, 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 la...
34.144817
79
0.610697
f770bc069d5c8b6f8773727f0b10f5cbe53df2fd
515
py
Python
setup.py
ccebrecos/py-telegram-bot
b8f47da07e706fad189baaf059e9889ff932e9da
[ "Apache-2.0" ]
2
2018-03-31T11:43:57.000Z
2021-03-11T19:07:27.000Z
setup.py
ccebrecos/py-telegram-bot
b8f47da07e706fad189baaf059e9889ff932e9da
[ "Apache-2.0" ]
null
null
null
setup.py
ccebrecos/py-telegram-bot
b8f47da07e706fad189baaf059e9889ff932e9da
[ "Apache-2.0" ]
1
2021-03-27T19:31:39.000Z
2021-03-27T19:31:39.000Z
from setuptools import setup setup( name='py-telegram-bot', version='0.1', description='Telegram bot coded in Python to retrieve Bitcoin data', license='Apache License v2.0', author='Carlos GC', author_email='mail@ccebrecos.com', url='https://github.com/ccebrecos/py-telegram-bot', keywo...
22.391304
72
0.594175
f770c5d26b0b73655f4c5137b6ca4784e1c7ce85
4,532
py
Python
scripts/python/backend_server/wsgi/road_wx_locator.py
OSADP/Pikalert-Vehicle-Data-Translator-
295da604408f6f13af0301b55476a81311459386
[ "Apache-2.0" ]
2
2020-06-03T15:59:50.000Z
2020-12-21T11:11:57.000Z
scripts/python/backend_server/wsgi/road_wx_locator.py
OSADP/Pikalert-Vehicle-Data-Translator-
295da604408f6f13af0301b55476a81311459386
[ "Apache-2.0" ]
null
null
null
scripts/python/backend_server/wsgi/road_wx_locator.py
OSADP/Pikalert-Vehicle-Data-Translator-
295da604408f6f13af0301b55476a81311459386
[ "Apache-2.0" ]
2
2019-10-02T06:47:23.000Z
2020-02-02T18:32:23.000Z
#!/usr/bin/env python # *=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=* # ** Copyright UCAR (c) 1992 - 2015 # ** University Corporation for Atmospheric Research(UCAR) # ** National Center for Atmospheric Research(NCAR) # ** Research Applications Laboratory(RAL) # ** P.O.Box 3000, Boulder...
42.35514
194
0.667696
f770e51065634d4cdbce04efa115dbfb869fe3b2
19,173
py
Python
test/vanilla/low-level/AcceptanceTests/asynctests/test_dictionary.py
cfculhane/autorest.python
8cbca95faee88d933a58bbbd17b76834faa8d387
[ "MIT" ]
35
2018-04-03T12:15:53.000Z
2022-03-11T14:03:34.000Z
test/vanilla/low-level/AcceptanceTests/asynctests/test_dictionary.py
cfculhane/autorest.python
8cbca95faee88d933a58bbbd17b76834faa8d387
[ "MIT" ]
652
2017-08-28T22:44:41.000Z
2022-03-31T21:20:31.000Z
test/vanilla/low-level/AcceptanceTests/asynctests/test_dictionary.py
cfculhane/autorest.python
8cbca95faee88d933a58bbbd17b76834faa8d387
[ "MIT" ]
29
2017-08-28T20:57:01.000Z
2022-03-11T14:03:38.000Z
# -------------------------------------------------------------------------- # # Copyright (c) Microsoft Corporation. All rights reserved. # # The MIT License (MIT) # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the ""Software""),...
45.75895
159
0.753247
f770fa90b48d5849accd7760d6dcbff2975642b8
1,371
py
Python
toydata/submit_scripts/run_missing_sim_flu_analysis.py
iosonofabio/FitnessInference
3de97a9301733ac9e47ebc78f4e76f7530ccb538
[ "MIT" ]
11
2015-08-24T05:20:56.000Z
2021-08-13T13:58:31.000Z
toydata/submit_scripts/run_missing_sim_flu_analysis.py
iosonofabio/FitnessInference
3de97a9301733ac9e47ebc78f4e76f7530ccb538
[ "MIT" ]
3
2015-08-24T04:43:25.000Z
2021-07-06T00:33:44.000Z
toydata/submit_scripts/run_missing_sim_flu_analysis.py
iosonofabio/FitnessInference
3de97a9301733ac9e47ebc78f4e76f7530ccb538
[ "MIT" ]
3
2019-08-30T18:52:49.000Z
2021-06-15T06:47:04.000Z
import sys,os, glob import subprocess import numpy as np L=2000 sim_prefix = '/20140820_seqs' dt=100 valdt = 1 jobcount = 0 D=0.5 year_list = range(5000, 24800, dt) dir_list = glob.glob('../data_new/N_10000_L_2*sdt_1*') for dir_name in dir_list: for sample_size in [200]: for dscale in [0.5, 1.0, 2.0, 3.0]...
36.078947
161
0.511306
f77126a5af92ffb2c6fe877055c443d567ea20d4
374
py
Python
tests/osiris/base/test_generalutils.py
skadyan/aws-glue-python-kickstart
5e3228a0793188d248f801a2b5a522210048ccde
[ "Apache-2.0" ]
4
2020-04-23T18:43:27.000Z
2022-02-22T03:57:06.000Z
tests/osiris/base/test_generalutils.py
skadyan/aws-glue-python-kickstart
5e3228a0793188d248f801a2b5a522210048ccde
[ "Apache-2.0" ]
1
2021-06-02T00:47:12.000Z
2021-06-02T00:47:12.000Z
tests/osiris/base/test_generalutils.py
skadyan/aws-glue-python-kickstart
5e3228a0793188d248f801a2b5a522210048ccde
[ "Apache-2.0" ]
null
null
null
from osiris.base.generalutils import flag def test_flag_values(): assert not flag(None) assert not flag('None') assert not flag('none') assert not flag('null') assert not flag('0') assert not flag(0) assert not flag('N') assert not flag('no') assert not flag('false') assert fl...
20.777778
41
0.63369
f77129dde990700758d5c6f09cefb3c68d3c4895
3,220
py
Python
Formating/__init__.py
duncanbackr/jit_analytics
9c81ff294459ccda5f3d3ace40dd5f5b44cfa4d1
[ "MIT" ]
null
null
null
Formating/__init__.py
duncanbackr/jit_analytics
9c81ff294459ccda5f3d3ace40dd5f5b44cfa4d1
[ "MIT" ]
null
null
null
Formating/__init__.py
duncanbackr/jit_analytics
9c81ff294459ccda5f3d3ace40dd5f5b44cfa4d1
[ "MIT" ]
null
null
null
comment_format = { 'platformAvatar': 'thumbnail_url', 'badge': 'badge', 'fanID': 'youtube_fan_id', 'authorDisplayName': 'account_title', 'commentDatePosted': 'timestamp', 'commentID': 'comment_id', 'textDisplay': 'content', 'archive': 'archived', '...
30.961538
81
0.564596
f77168d5a15a1187d94edfc593ed43416e3d8946
1,979
py
Python
recipes/recipe_modules/cloudbuildhelper/test_api.py
allaparthi/monorail
e18645fc1b952a5a6ff5f06e0c740d75f1904473
[ "BSD-3-Clause" ]
null
null
null
recipes/recipe_modules/cloudbuildhelper/test_api.py
allaparthi/monorail
e18645fc1b952a5a6ff5f06e0c740d75f1904473
[ "BSD-3-Clause" ]
null
null
null
recipes/recipe_modules/cloudbuildhelper/test_api.py
allaparthi/monorail
e18645fc1b952a5a6ff5f06e0c740d75f1904473
[ "BSD-3-Clause" ]
null
null
null
# Copyright 2019 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. from hashlib import sha256 from recipe_engine import recipe_test_api class CloudBuildHelperTestApi(recipe_test_api.RecipeTestApi): def build_success_out...
30.921875
80
0.632137
f77173820712e19bd0f5ea1d043b2ed897409624
20,694
py
Python
ExtentionPackages/pysmi/compiler.py
hongsofwing/PyQYT-master
9a112d9adbf9885a8b7535b7ef7759b60a0f9a29
[ "CNRI-Python" ]
null
null
null
ExtentionPackages/pysmi/compiler.py
hongsofwing/PyQYT-master
9a112d9adbf9885a8b7535b7ef7759b60a0f9a29
[ "CNRI-Python" ]
null
null
null
ExtentionPackages/pysmi/compiler.py
hongsofwing/PyQYT-master
9a112d9adbf9885a8b7535b7ef7759b60a0f9a29
[ "CNRI-Python" ]
null
null
null
# # This file is part of pysmi software. # # Copyright (c) 2015-2016, Ilya Etingof <ilya@glas.net> # License: http://pysmi.sf.net/license.html # import sys import os import time try: from pwd import getpwuid except ImportError: getpwuid = lambda x: ['<unknown>'] from pysmi import __name__ as packageName from py...
43.292887
266
0.589011
f77188f9f7483a56b1d4078315e74446a6d27b4a
6,582
py
Python
ingestion/functions/aws_access/ScheduleRuleTests.py
open-covid-data/healthmap-gdo-temp
5af5c9e2f7dcefa9039dc6b3a2e2c5094566fc2e
[ "MIT" ]
5
2020-04-16T13:54:24.000Z
2020-07-06T13:42:10.000Z
ingestion/functions/aws_access/ScheduleRuleTests.py
open-covid-data/healthmap-gdo-temp
5af5c9e2f7dcefa9039dc6b3a2e2c5094566fc2e
[ "MIT" ]
487
2020-04-16T00:56:09.000Z
2020-07-27T09:09:29.000Z
ingestion/functions/aws_access/ScheduleRuleTests.py
open-covid-data/healthmap-gdo-temp
5af5c9e2f7dcefa9039dc6b3a2e2c5094566fc2e
[ "MIT" ]
null
null
null
import unittest from datetime import datetime, timedelta from .EventBridgeClient import EventBridgeClient, date_of_requested_weekday_in_month class ScheduleRuleTests(unittest.TestCase): real_ingestion_rule = { 'Arn': 'arn:aws:events:eu-central-1:612888738066:rule/taiwan-taiwan-ingestor-prod', 'Des...
52.656
154
0.72364
f77189d606aa63fd9b0340c2ac609678cf9dc9e5
564
py
Python
Interviews/second/tests/test_second.py
makkahwi/data-structures-and-algorithms
06551786258bb7dabb9b0ab07c0f80ff78abca41
[ "MIT" ]
null
null
null
Interviews/second/tests/test_second.py
makkahwi/data-structures-and-algorithms
06551786258bb7dabb9b0ab07c0f80ff78abca41
[ "MIT" ]
null
null
null
Interviews/second/tests/test_second.py
makkahwi/data-structures-and-algorithms
06551786258bb7dabb9b0ab07c0f80ff78abca41
[ "MIT" ]
null
null
null
from second.second import checkLinkedList, linked_list import pytest def test_1(list1): actual = checkLinkedList(list1) expected = False assert actual == expected def test_2(list2): actual = checkLinkedList(list2) expected = True assert actual == expected @pytest.fixture def list1(): l...
17.090909
54
0.661348
f771cb229aab4b60ebd68e813e329112d07f9530
11,014
py
Python
experiments/ashvin/icra2021/widowx/sawyer_awac2_drawerhorizontal_close1.py
Asap7772/railrl_evalsawyer
baba8ce634d32a48c7dfe4dc03b123e18e96e0a3
[ "MIT" ]
null
null
null
experiments/ashvin/icra2021/widowx/sawyer_awac2_drawerhorizontal_close1.py
Asap7772/railrl_evalsawyer
baba8ce634d32a48c7dfe4dc03b123e18e96e0a3
[ "MIT" ]
null
null
null
experiments/ashvin/icra2021/widowx/sawyer_awac2_drawerhorizontal_close1.py
Asap7772/railrl_evalsawyer
baba8ce634d32a48c7dfe4dc03b123e18e96e0a3
[ "MIT" ]
null
null
null
import rlkit.misc.hyperparameter as hyp from rlkit.demos.source.dict_to_mdp_path_loader import EncoderDictToMDPPathLoader from rlkit.launchers.experiments.ashvin.awac_rig import awac_rig_experiment from rlkit.launchers.launcher_util import run_experiment from rlkit.launchers.arglauncher import run_variants from rlkit.t...
35.644013
126
0.61104
f771cd624f75558b43c457c60959bf2cfde89e37
224
py
Python
timeit_test.py
abdullahi318/learn-python
62ea4750ff291c9be90362018f77047e1af9d63d
[ "MIT" ]
2
2021-07-22T00:17:16.000Z
2021-12-24T10:03:57.000Z
timeit_test.py
salisu14/learn-python-programming
a1d3d8206850199d8fab1321a432bd3f1fc0a6a1
[ "MIT" ]
2
2021-04-17T10:22:21.000Z
2021-04-25T11:36:08.000Z
timeit_test.py
salisu14/learn-python-programming
a1d3d8206850199d8fab1321a432bd3f1fc0a6a1
[ "MIT" ]
1
2021-04-19T13:20:35.000Z
2021-04-19T13:20:35.000Z
#!/usr/bin/env python3 import timeit def main(): timeit.timeit('"-".join(str(n) for n in range(100))', number=10000) #print(f"List populated in {toc - tic:0.4f} seconds") if __name__ == "__main__": main()
17.230769
71
0.620536
f771cf60254c3df337197ec2d63163ec2375cb9d
10,476
py
Python
collections/ansible_collections/community/general/plugins/modules/packaging/language/pipx.py
escalate/my-smart-home
a9579c845761b980515ff34d2a95568c6e7c2b6c
[ "MIT" ]
22
2021-07-16T08:11:22.000Z
2022-03-31T07:15:34.000Z
Ansible-AWS-Provisioning/collections/ansible_collections/community/general/plugins/modules/packaging/language/pipx.py
premsagar0228/ansible-real-life
1a51193b833ab6ad320100472333b9ffb0da39d4
[ "MIT" ]
1
2022-03-12T02:25:26.000Z
2022-03-12T02:25:26.000Z
Ansible-AWS-Provisioning/collections/ansible_collections/community/general/plugins/modules/packaging/language/pipx.py
premsagar0228/ansible-real-life
1a51193b833ab6ad320100472333b9ffb0da39d4
[ "MIT" ]
39
2021-07-05T02:31:42.000Z
2022-03-31T02:46:03.000Z
#!/usr/bin/python # -*- coding: utf-8 -*- # (c) 2021, Alexei Znamensky <russoz@gmail.com> # GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) from __future__ import absolute_import, division, print_function __metaclass__ = type DOCUMENTATION = ''' --- module: pipx short_desc...
36.757895
134
0.610443
f771d4dabe98bf364ffc451446d2ab47580068cf
2,986
py
Python
src/sphinx_conda/model.py
jamesp/sphinx-conda
3ab091af4aabb12f151a40d1c93dd3eb16ca2785
[ "MIT" ]
null
null
null
src/sphinx_conda/model.py
jamesp/sphinx-conda
3ab091af4aabb12f151a40d1c93dd3eb16ca2785
[ "MIT" ]
null
null
null
src/sphinx_conda/model.py
jamesp/sphinx-conda
3ab091af4aabb12f151a40d1c93dd3eb16ca2785
[ "MIT" ]
null
null
null
from functools import total_ordering from pathlib import Path from typing import Any, Dict, Generator, List, Optional, Tuple, Union import yaml from pydantic import BaseModel from .util import split @total_ordering class CondaPackage(BaseModel): name: str version: Optional[str] build: Optional[str] ...
32.456522
85
0.605157
f771e11095532f5b6f76b6fde769908758dfc70a
2,192
py
Python
day08.py
drewbrew/advent-of-code-2015
885ec0c2f25c4ec2425c3d05dd0c9ccc5b0890df
[ "Apache-2.0" ]
null
null
null
day08.py
drewbrew/advent-of-code-2015
885ec0c2f25c4ec2425c3d05dd0c9ccc5b0890df
[ "Apache-2.0" ]
null
null
null
day08.py
drewbrew/advent-of-code-2015
885ec0c2f25c4ec2425c3d05dd0c9ccc5b0890df
[ "Apache-2.0" ]
null
null
null
from queue import Queue from typing import Iterable TEST_INPUTS = { '""': (2, 0, 6), '"abc"': (5, 3, 9), '"aaa\\"aaa"': (10, 7, 16), '"\\x27"': (6, 1, 11), } def unescaped_str_len(string: str) -> int: queue = Queue() for char in string: queue.put(char) length = 0 while not que...
28.467532
86
0.568887
f771fd240ad6d221c8bbe6d8421d7d3088f5877b
858
py
Python
examples/reader_plugin.py
mkitti/napari
4e954d30b5a1b70c5e495db1b8f48a3bdda1ff86
[ "BSD-3-Clause" ]
1
2021-04-24T10:10:54.000Z
2021-04-24T10:10:54.000Z
examples/reader_plugin.py
mkitti/napari
4e954d30b5a1b70c5e495db1b8f48a3bdda1ff86
[ "BSD-3-Clause" ]
17
2020-06-11T21:02:03.000Z
2021-02-02T19:10:19.000Z
examples/reader_plugin.py
mkitti/napari
4e954d30b5a1b70c5e495db1b8f48a3bdda1ff86
[ "BSD-3-Clause" ]
1
2020-07-19T18:03:35.000Z
2020-07-19T18:03:35.000Z
"""Barebones reader plugin example, using imageio.imread""" from napari_plugin_engine import napari_hook_implementation from imageio import formats, imread readable_extensions = tuple(set(x for f in formats for x in f.extensions)) @napari_hook_implementation def napari_get_reader(path): """A basic implementatio...
34.32
79
0.734266
f7720c0eb28b25f44cc808c86f61c7a125283ebf
1,419
py
Python
apps/accounts/models/phone_device.py
victoraguilarc/agendas
31b24a2d6350605b638b59062f297ef3f58e9879
[ "MIT" ]
2
2020-06-06T23:10:27.000Z
2020-10-06T19:12:26.000Z
apps/accounts/models/phone_device.py
victoraguilarc/medical-appointment
31b24a2d6350605b638b59062f297ef3f58e9879
[ "MIT" ]
3
2021-04-08T20:44:38.000Z
2021-09-22T19:04:16.000Z
apps/accounts/models/phone_device.py
victoraguilarc/agendas
31b24a2d6350605b638b59062f297ef3f58e9879
[ "MIT" ]
1
2020-10-10T14:07:37.000Z
2020-10-10T14:07:37.000Z
# -*- coding: utf-8 -*- from django.db import models from apps.accounts.models.choices import Platform from apps.accounts.models.managers.phone_device import PhoneDeviceManager from django.utils.translation import ugettext_lazy as _ from apps.contrib.models.mixins import UUIDPrimaryKeyModelMixin, TimeStampedModelM...
22.887097
86
0.626498
f772190ca4e99ab865f103a6563399f10f0f6bdb
5,961
py
Python
leetcode_python/Binary_Search/split-array-largest-sum.py
yennanliu/Python_basics
6a597442d39468295946cefbfb11d08f61424dc3
[ "Unlicense" ]
null
null
null
leetcode_python/Binary_Search/split-array-largest-sum.py
yennanliu/Python_basics
6a597442d39468295946cefbfb11d08f61424dc3
[ "Unlicense" ]
null
null
null
leetcode_python/Binary_Search/split-array-largest-sum.py
yennanliu/Python_basics
6a597442d39468295946cefbfb11d08f61424dc3
[ "Unlicense" ]
null
null
null
""" 410. Split Array Largest Sum Hard Given an array nums which consists of non-negative integers and an integer m, you can split the array into m non-empty continuous subarrays. Write an algorithm to minimize the largest sum among these m subarrays. Example 1: Input: nums = [7,2,5,10,8], m = 2 Output: 18 Expla...
37.727848
140
0.599396
f7721c7c8627b5e8bbb0d8bbd96c0e8675068be9
2,027
py
Python
run_models_on_simulated_data.py
dvav/clonosGP
e7f9a08869df0e1857fe24e4e311999f7ba6560f
[ "MIT" ]
9
2020-01-28T03:22:36.000Z
2022-01-11T09:38:22.000Z
run_models_on_simulated_data.py
dvav/clonosGP
e7f9a08869df0e1857fe24e4e311999f7ba6560f
[ "MIT" ]
2
2021-10-05T12:24:02.000Z
2022-01-09T12:33:23.000Z
run_models_on_simulated_data.py
dvav/clonosGP
e7f9a08869df0e1857fe24e4e311999f7ba6560f
[ "MIT" ]
null
null
null
import os import sys IDX = int(sys.argv[1]) os.environ['THEANO_FLAGS'] = f'base_compiledir="theano/p{IDX}"' import tqdm as tqd import itertools as itr import numpy as nmp import pandas as pnd import sklearn.metrics as mtr import scipy.special as scp import pymc3 as pmc import clonosGP as cln ## def run_model(prio...
31.671875
150
0.594475
f7723d03c86887ce08b5ccbb1e58305ca263a701
4,762
py
Python
src/global_stat.py
volovodenko/English
860ae0f971909b9aa299c193ea7d0161c88d0b22
[ "Apache-2.0" ]
31
2015-02-11T16:10:52.000Z
2021-08-31T12:39:05.000Z
src/global_stat.py
volovodenko/English
860ae0f971909b9aa299c193ea7d0161c88d0b22
[ "Apache-2.0" ]
5
2015-05-26T09:38:02.000Z
2015-11-12T20:54:32.000Z
src/global_stat.py
volovodenko/English
860ae0f971909b9aa299c193ea7d0161c88d0b22
[ "Apache-2.0" ]
9
2015-03-18T08:23:51.000Z
2022-01-05T05:51:04.000Z
# -*- coding: utf-8 -*- import unittest class GlobalStatistic: "Расчет данных для отображения статистики пользователю" def __init__(self): self.stat_en_ru = [] self.stat_ru_en = [] def _calc_stat(self, word, stat_info): en_word, transcription, ru_word = word.get_show_info() ...
39.032787
108
0.603948
f7724a8ea07af8aa7ff7b650f0a53e1b9850dc48
52,778
py
Python
Keras_tensorflow_nightly/source2.7/tensorflow/contrib/rpc/python/kernel_tests/test_example_pb2.py
Con-Mi/lambda-packs
b23a8464abdd88050b83310e1d0e99c54dac28ab
[ "MIT" ]
1
2019-06-27T12:09:44.000Z
2019-06-27T12:09:44.000Z
Keras_tensorflow_nightly/source2.7/tensorflow/contrib/rpc/python/kernel_tests/test_example_pb2.py
Con-Mi/lambda-packs
b23a8464abdd88050b83310e1d0e99c54dac28ab
[ "MIT" ]
null
null
null
Keras_tensorflow_nightly/source2.7/tensorflow/contrib/rpc/python/kernel_tests/test_example_pb2.py
Con-Mi/lambda-packs
b23a8464abdd88050b83310e1d0e99c54dac28ab
[ "MIT" ]
null
null
null
# Generated by the protocol buffer compiler. DO NOT EDIT! # source: tensorflow/contrib/rpc/python/kernel_tests/test_example.proto import sys _b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) from google.protobuf import descriptor as _descriptor from google.protobuf import message as _message ...
47.719711
5,410
0.756925
f77276c20794c942deb25a825c69efd6254d17ce
6,377
py
Python
webservices/resources/candidate_aggregates.py
adborden/openFEC
53a0a2b1a56292c5ca8e7a3185832baaed4a63d9
[ "CC0-1.0" ]
null
null
null
webservices/resources/candidate_aggregates.py
adborden/openFEC
53a0a2b1a56292c5ca8e7a3185832baaed4a63d9
[ "CC0-1.0" ]
null
null
null
webservices/resources/candidate_aggregates.py
adborden/openFEC
53a0a2b1a56292c5ca8e7a3185832baaed4a63d9
[ "CC0-1.0" ]
1
2020-03-04T00:21:16.000Z
2020-03-04T00:21:16.000Z
import sqlalchemy as sa from flask_apispec import doc, marshal_with from webservices import args from webservices import utils from webservices import filters from webservices import schemas from webservices.utils import use_kwargs from webservices.common.views import ApiResource from webservices.common import models ...
35.232044
114
0.66536
f772774c3daa9c18a2a8387a7978bbdd97f47254
200
py
Python
venv/Scripts/django-admin.py
CaptainKryuk/django-REST-tasking
0df52aff0b9719c2cb204baa0cdc04a301df6b75
[ "MIT" ]
null
null
null
venv/Scripts/django-admin.py
CaptainKryuk/django-REST-tasking
0df52aff0b9719c2cb204baa0cdc04a301df6b75
[ "MIT" ]
null
null
null
venv/Scripts/django-admin.py
CaptainKryuk/django-REST-tasking
0df52aff0b9719c2cb204baa0cdc04a301df6b75
[ "MIT" ]
null
null
null
#!c:\users\kryukax1\documents\github\react_django\django-rest-tasking\venv\scripts\python.exe from django.core import management if __name__ == "__main__": management.execute_from_command_line()
33.333333
93
0.805
f7727bae430a7be7d295af1c019926ea2ffbda8f
1,014
py
Python
redhawk/scripts/listfiles.py
spranesh/Redhawk
e2be5a6553df8449acecee2239b60c7bca0f22bc
[ "BSD-2-Clause-FreeBSD" ]
2
2016-10-04T11:46:32.000Z
2017-07-09T15:23:55.000Z
redhawk/scripts/listfiles.py
spranesh/Redhawk
e2be5a6553df8449acecee2239b60c7bca0f22bc
[ "BSD-2-Clause-FreeBSD" ]
4
2016-03-07T13:16:48.000Z
2018-03-21T00:25:04.000Z
redhawk/scripts/listfiles.py
spranesh/Redhawk
e2be5a6553df8449acecee2239b60c7bca0f22bc
[ "BSD-2-Clause-FreeBSD" ]
3
2016-04-06T08:04:34.000Z
2020-03-17T20:59:47.000Z
#!/usr/bin/env python from __future__ import absolute_import from __future__ import print_function from . import script_util as S import redhawk import redhawk.utils.key_value_store as KVStore import redhawk.utils.util as U import os import optparse usage = "%prog listfiles" description = S.MakeStringFromTemplate( ""...
27.405405
71
0.760355
f77298a3aa0b0d057bf72c54e058fa4ea69e4149
114
py
Python
lambdas/service/vendor/resources/environ.json.template.py
DataBiosphere/azul
abcaa7c6a04f1f5b8fd74e449e254eff6c433913
[ "Apache-2.0" ]
17
2018-07-20T02:53:35.000Z
2022-01-11T12:27:31.000Z
lambdas/indexer/vendor/resources/environ.json.template.py
DataBiosphere/azul
abcaa7c6a04f1f5b8fd74e449e254eff6c433913
[ "Apache-2.0" ]
3,887
2018-06-29T15:23:02.000Z
2022-03-31T23:29:37.000Z
lambdas/indexer/vendor/resources/environ.json.template.py
DataBiosphere/azul
abcaa7c6a04f1f5b8fd74e449e254eff6c433913
[ "Apache-2.0" ]
21
2018-07-06T03:17:33.000Z
2022-02-18T04:10:02.000Z
from azul import ( config, ) from azul.template import ( emit, ) emit(config.lambda_env_for_outsourcing)
12.666667
39
0.719298
f772b87e0fe012c92fb9baa915857d0c131d43ce
3,500
py
Python
linkedlist/add_two_numbers.py
AnshulPatni/Algorithms
c8bcfb86d50f68041921e5140f01821ac12d9521
[ "MIT" ]
null
null
null
linkedlist/add_two_numbers.py
AnshulPatni/Algorithms
c8bcfb86d50f68041921e5140f01821ac12d9521
[ "MIT" ]
null
null
null
linkedlist/add_two_numbers.py
AnshulPatni/Algorithms
c8bcfb86d50f68041921e5140f01821ac12d9521
[ "MIT" ]
null
null
null
""" You are given two non-empty linked lists representing two non-negative integers. The digits are stored in reverse order and each of their nodes contain a single digit. Add the two numbers and return it as a linked list. You may assume the two numbers do not contain any leading zero, except the number 0 itself. In...
26.923077
66
0.568857
f772c715c784ec188873fc4e8436e3bfae64ba13
3,514
py
Python
experiments/chat/turbotutorial/settings.py
hotwire-django/turbo-django
a8eab649f7f09f89e7cbedd72582b2ffe81abcab
[ "MIT" ]
298
2020-12-23T21:28:46.000Z
2022-03-19T11:25:23.000Z
experiments/chat/turbotutorial/settings.py
hotwire-django/turbo-django
a8eab649f7f09f89e7cbedd72582b2ffe81abcab
[ "MIT" ]
30
2020-12-26T14:57:40.000Z
2022-03-28T12:44:34.000Z
experiments/chat/turbotutorial/settings.py
hotwire-django/turbo-django
a8eab649f7f09f89e7cbedd72582b2ffe81abcab
[ "MIT" ]
11
2020-12-24T19:50:40.000Z
2022-01-23T15:02:58.000Z
""" Django settings for turbotutorial project. Generated by 'django-admin startproject' using Django 3.2.5. For more information on this file, see https://docs.djangoproject.com/en/3.2/topics/settings/ For the full list of settings and their values, see https://docs.djangoproject.com/en/3.2/ref/settings/ """ from p...
27.888889
98
0.715709
f772db269d64efcb85e9aacb039122505ba21daf
1,815
py
Python
files/.config/kitty/termpdf.py
apereiroc/fictional-couscous
0f4cabfad1c477c0c881c74feaa5d12a41b8df1d
[ "MIT" ]
null
null
null
files/.config/kitty/termpdf.py
apereiroc/fictional-couscous
0f4cabfad1c477c0c881c74feaa5d12a41b8df1d
[ "MIT" ]
null
null
null
files/.config/kitty/termpdf.py
apereiroc/fictional-couscous
0f4cabfad1c477c0c881c74feaa5d12a41b8df1d
[ "MIT" ]
null
null
null
from kittens.tui.handler import result_handler import os def main(args): pass @result_handler(no_ui=True) def handle_result(args, result, target_window_id, boss): window_title = "termpdf" termpdf_cmd = "termpdf.py" cmd = termpdf_cmd + " " + os.path.expanduser(args[1]) # Runs a command in the window def r...
33.611111
79
0.70303
f772e92eb3dfe07f3382da9292b0260d436b98eb
5,967
py
Python
tests/test_yes_com.py
fabian-hk/dnssec_scanner
437ca39bb84e592b81f146c9e711c93687a43ae3
[ "BSD-2-Clause" ]
1
2020-03-19T16:02:11.000Z
2020-03-19T16:02:11.000Z
tests/test_yes_com.py
fabian-hk/dnssec_scanner
437ca39bb84e592b81f146c9e711c93687a43ae3
[ "BSD-2-Clause" ]
1
2020-03-06T02:35:49.000Z
2020-03-12T16:41:43.000Z
tests/test_yes_com.py
fabian-hk/dnssec_scanner
437ca39bb84e592b81f146c9e711c93687a43ae3
[ "BSD-2-Clause" ]
null
null
null
import logging import dns.rdatatype import re from tests.utils.custom_test_case import CustomTestCase as CTC from dnssec_scanner import DNSSECScanner, State from dnssec_scanner.messages import Validator, Msg, Types from tests.utils.messages_testing import TestMessage log = logging.getLogger("dnssec_scanner") log.set...
50.567797
120
0.613038
f772ecd4ca6b1364c110e5cce701f8ce1dc0d3b6
1,067
py
Python
Join/inner_joins.py
monocilindro/qgis-earthengine-examples
82aea8926d34ed3f4ad4a4a345ddbd225819d28f
[ "MIT" ]
646
2019-12-03T06:09:03.000Z
2022-03-28T03:37:08.000Z
Join/inner_joins.py
csaybar/qgis-earthengine-examples
ba8942683834d2847ff3246bdd1859b36e50fe44
[ "MIT" ]
10
2019-12-30T03:42:44.000Z
2021-05-22T07:34:07.000Z
Join/inner_joins.py
csaybar/qgis-earthengine-examples
ba8942683834d2847ff3246bdd1859b36e50fe44
[ "MIT" ]
219
2019-12-06T02:20:53.000Z
2022-03-30T15:14:27.000Z
import ee from ee_plugin import Map # Make a date filter to get images in this date range. dateFilter = ee.Filter.date('2014-01-01', '2014-02-01') # Load a MODIS collection with EVI data. mcd43a4 = ee.ImageCollection('MODIS/MCD43A4_006_EVI') \ .filter(dateFilter) # Load a MODIS collection with quality data. mc...
29.638889
114
0.746954
f7730c891a4dc370c72e7301103bc378480c7597
4,402
py
Python
examples/quantize/quantized_fuzzer.py
johnnytheboii/TensorFuzz_2.0
d1d7ae7de26067c2a1c223dbef6d897752aa8f71
[ "Apache-2.0" ]
null
null
null
examples/quantize/quantized_fuzzer.py
johnnytheboii/TensorFuzz_2.0
d1d7ae7de26067c2a1c223dbef6d897752aa8f71
[ "Apache-2.0" ]
null
null
null
examples/quantize/quantized_fuzzer.py
johnnytheboii/TensorFuzz_2.0
d1d7ae7de26067c2a1c223dbef6d897752aa8f71
[ "Apache-2.0" ]
null
null
null
# Copyright 2018 Google LLC # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # https://www.apache.org/licenses/LICENSE-2.0 # Unless required by applicable law or agreed to in writing, sof...
32.850746
79
0.731031
f7731141cb77337d592fd5409d084bdf6f28057c
7,961
py
Python
eva-accession-clustering-automation/clustering_automation/cluster_from_mongo.py
apriltuesday/eva-accession
295ae3b99fee679b486b4a1433d46c0fd5811024
[ "Apache-2.0" ]
null
null
null
eva-accession-clustering-automation/clustering_automation/cluster_from_mongo.py
apriltuesday/eva-accession
295ae3b99fee679b486b4a1433d46c0fd5811024
[ "Apache-2.0" ]
null
null
null
eva-accession-clustering-automation/clustering_automation/cluster_from_mongo.py
apriltuesday/eva-accession
295ae3b99fee679b486b4a1433d46c0fd5811024
[ "Apache-2.0" ]
null
null
null
# Copyright 2020 EMBL - European Bioinformatics Institute # # 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...
55.284722
174
0.704937
f7731c55bc023452e0f319f059f43687b78b2bc0
2,665
py
Python
sdk/automation/azure-mgmt-automation/setup.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
1
2022-03-09T08:59:13.000Z
2022-03-09T08:59:13.000Z
sdk/automation/azure-mgmt-automation/setup.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
null
null
null
sdk/automation/azure-mgmt-automation/setup.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
null
null
null
#!/usr/bin/env python #------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for # license information. #----------------------------------------------------------------...
35.533333
103
0.609006
f7735212ac3d4dc063fa1a1c79b3a8d55b3e5665
4,248
py
Python
src/migrations/versions/25a0a520d83a_.py
RasmusGodske/eo-auth
b25d916f8b1bb23ec5ca40de907b038b21d17713
[ "Apache-2.0" ]
null
null
null
src/migrations/versions/25a0a520d83a_.py
RasmusGodske/eo-auth
b25d916f8b1bb23ec5ca40de907b038b21d17713
[ "Apache-2.0" ]
1
2021-09-13T15:49:06.000Z
2021-09-13T15:49:06.000Z
src/migrations/versions/25a0a520d83a_.py
RasmusGodske/eo-auth
b25d916f8b1bb23ec5ca40de907b038b21d17713
[ "Apache-2.0" ]
1
2022-01-27T14:39:11.000Z
2022-01-27T14:39:11.000Z
"""empty message Revision ID: 25a0a520d83a Revises: Create Date: 2021-11-12 11:45:29.153816 """ from alembic import op import sqlalchemy as sa # revision identifiers, used by Alembic. revision = '25a0a520d83a' down_revision = None branch_labels = None depends_on = None def upgrade(): # ### commands auto gene...
47.2
117
0.7008
f7735e83b1eaa53abb64d74c83f1332f1bd8523e
2,991
py
Python
Models/Scheduler/Regular/V1/model.py
schmocker/Pyjamas
52a72d6e8b915f77a2194d4e7d53c46d0ec28c17
[ "MIT" ]
2
2018-05-31T15:02:08.000Z
2018-07-11T11:02:44.000Z
Models/Scheduler/Regular/V1/model.py
schmocker/Pyjamas
52a72d6e8b915f77a2194d4e7d53c46d0ec28c17
[ "MIT" ]
null
null
null
Models/Scheduler/Regular/V1/model.py
schmocker/Pyjamas
52a72d6e8b915f77a2194d4e7d53c46d0ec28c17
[ "MIT" ]
null
null
null
import asyncio from pyjamas_core.util import Input, Output, Property from pyjamas_core.supermodel import Supermodel class Model(Supermodel): """ schedules the func gates of the agent sets the number of elapsed rounds as output """ def __init__(self, uuid, name: str): super(Model, ...
39.355263
125
0.63223
f77361cc89bdbe49e9ca08f8b1b85fbaf18ce908
13,190
py
Python
keras2onnx/ke2onnx/lstm.py
xadupre/keras-onnx
17559f987ecce7ec40ab8a36a9596eb950f9b332
[ "MIT" ]
null
null
null
keras2onnx/ke2onnx/lstm.py
xadupre/keras-onnx
17559f987ecce7ec40ab8a36a9596eb950f9b332
[ "MIT" ]
null
null
null
keras2onnx/ke2onnx/lstm.py
xadupre/keras-onnx
17559f987ecce7ec40ab8a36a9596eb950f9b332
[ "MIT" ]
null
null
null
############################################################################### # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for # license information. ############################################################################### imp...
36.336088
118
0.655269
f7738aaa38a1d96bdb788445d6748332574b9105
3,184
py
Python
vyper/exceptions.py
daejunpark/viper
a9281385661e95610ec0b1e163fc60ebba4d7f01
[ "MIT" ]
null
null
null
vyper/exceptions.py
daejunpark/viper
a9281385661e95610ec0b1e163fc60ebba4d7f01
[ "MIT" ]
null
null
null
vyper/exceptions.py
daejunpark/viper
a9281385661e95610ec0b1e163fc60ebba4d7f01
[ "MIT" ]
null
null
null
import types from vyper.settings import ( VYPER_ERROR_CONTEXT_LINES, VYPER_ERROR_LINE_NUMBERS, ) # Attempts to display the line and column of violating code. class ParserException(Exception): def __init__(self, message='Error Message not found.', item=None): self.message = message self.li...
25.070866
88
0.674623
f773996246c4be175f752fdeb1566317fcc7c093
4,910
py
Python
tempest/cmd/run_stress.py
vmahuli/tempest
f70319f5eda72b8c8a913ae1002ec531324e4116
[ "Apache-2.0" ]
null
null
null
tempest/cmd/run_stress.py
vmahuli/tempest
f70319f5eda72b8c8a913ae1002ec531324e4116
[ "Apache-2.0" ]
null
null
null
tempest/cmd/run_stress.py
vmahuli/tempest
f70319f5eda72b8c8a913ae1002ec531324e4116
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # Copyright 2013 Quanta Research Cambridge, 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 # # U...
38.359375
78
0.575356
f773fdfa3bf05b374a0f54f5daf0120984f4ff89
1,084
py
Python
flag_glyph_name.py
spdd/if3games-noto-emoji
5cdf14d9cd56c25d225d50c8984cd5b9c02d26ec
[ "Apache-2.0" ]
1
2020-06-12T02:16:21.000Z
2020-06-12T02:16:21.000Z
flag_glyph_name.py
spdd/if3games-noto-emoji
5cdf14d9cd56c25d225d50c8984cd5b9c02d26ec
[ "Apache-2.0" ]
null
null
null
flag_glyph_name.py
spdd/if3games-noto-emoji
5cdf14d9cd56c25d225d50c8984cd5b9c02d26ec
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # # Copyright 2014 Google Inc. All rights reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless require...
30.111111
78
0.732472
f77406670c1162fd0238f62c696b4cdacf4fd21d
4,807
py
Python
custom_components/aoaws_anws/const.py
tsunglung/TwANWS
032ab7ad6a194c23d3683b02534bb441f7eb511e
[ "MIT" ]
1
2021-07-08T15:49:56.000Z
2021-07-08T15:49:56.000Z
custom_components/aoaws_anws/const.py
tsunglung/TwANWS
032ab7ad6a194c23d3683b02534bb441f7eb511e
[ "MIT" ]
2
2021-05-12T04:13:02.000Z
2022-03-23T17:04:22.000Z
custom_components/aoaws_anws/const.py
tsunglung/TwANWS
032ab7ad6a194c23d3683b02534bb441f7eb511e
[ "MIT" ]
null
null
null
"""Constants for ANWS AOAWS Integration.""" from datetime import timedelta from homeassistant.const import ( DEVICE_CLASS_HUMIDITY, DEVICE_CLASS_TEMPERATURE, LENGTH_KILOMETERS, PERCENTAGE, SPEED_MILES_PER_HOUR, TEMP_CELSIUS, UV_INDEX, ) from homeassistant.components.weather import ( ATTR...
26.26776
91
0.618889
f7741b841ea951fec20b7329d03fe2513c66e260
63
py
Python
dp/edit_distance.py
santoshmano/pybricks
bcb3ab80417e8e896280062494ce6c046329b7e8
[ "MIT" ]
null
null
null
dp/edit_distance.py
santoshmano/pybricks
bcb3ab80417e8e896280062494ce6c046329b7e8
[ "MIT" ]
null
null
null
dp/edit_distance.py
santoshmano/pybricks
bcb3ab80417e8e896280062494ce6c046329b7e8
[ "MIT" ]
null
null
null
def edit_distance(s1, s2): if __name__ = "__main__":
5.727273
26
0.603175
f7742161a31a66e660b8b2ca2d37dd1ab014dbd7
17,511
py
Python
tensorflow_probability/python/internal/special_math.py
timudk/probability
8bdbf1c0b0f801edaf342f4ffc9caf1cfd6f1103
[ "Apache-2.0" ]
null
null
null
tensorflow_probability/python/internal/special_math.py
timudk/probability
8bdbf1c0b0f801edaf342f4ffc9caf1cfd6f1103
[ "Apache-2.0" ]
null
null
null
tensorflow_probability/python/internal/special_math.py
timudk/probability
8bdbf1c0b0f801edaf342f4ffc9caf1cfd6f1103
[ "Apache-2.0" ]
null
null
null
# Copyright 2018 The TensorFlow Probability 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 o...
36.179752
80
0.632802
f774523c1a0320a4838acd7905a92428e852a192
553
py
Python
rockiot/app/apps.py
isocserbia/rockiot
fc0c52cca4ca862ba570d6b2c64b8d30f8989f05
[ "Apache-2.0" ]
2
2022-01-23T11:03:37.000Z
2022-02-26T10:54:10.000Z
rockiot/app/apps.py
isocserbia/rockiot
fc0c52cca4ca862ba570d6b2c64b8d30f8989f05
[ "Apache-2.0" ]
null
null
null
rockiot/app/apps.py
isocserbia/rockiot
fc0c52cca4ca862ba570d6b2c64b8d30f8989f05
[ "Apache-2.0" ]
null
null
null
import os import sys from django.apps import AppConfig class AppConfig(AppConfig): default_auto_field = 'django.db.models.BigAutoField' name = 'app' def ready(self): from app.models import AlertScheme, MAX_MINUTES_NO_METADATA, MAX_TERMINATED_CONNECTIONS_PER_HOUR, \ MAX_MINUTES_NO_IN...
21.269231
107
0.674503
f7746b10fef266e7e3aa4fec7b6c523c0ea3b106
1,244
py
Python
fluo/views/__init__.py
rsalmaso/django-fluo
340e3b4f9c1b4b09feccefb9b3ab2d26d59fac2b
[ "MIT" ]
1
2020-08-05T09:29:08.000Z
2020-08-05T09:29:08.000Z
fluo/views/__init__.py
rsalmaso/django-fluo
340e3b4f9c1b4b09feccefb9b3ab2d26d59fac2b
[ "MIT" ]
1
2020-08-05T09:28:58.000Z
2020-09-19T09:02:48.000Z
fluo/views/__init__.py
rsalmaso/django-fluo
340e3b4f9c1b4b09feccefb9b3ab2d26d59fac2b
[ "MIT" ]
null
null
null
# Copyright (C) 2007-2020, Raffaele Salmaso <raffaele@salmaso.org> # # 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, cop...
44.428571
79
0.766881
f7746b12f4606d4a96195a97eac3ad30fa23da10
180
py
Python
app/fields/__init__.py
PhotoScout/API
24c2040b0a2fcb1ea906c7aa095c9e74d3ca4fa9
[ "MIT" ]
null
null
null
app/fields/__init__.py
PhotoScout/API
24c2040b0a2fcb1ea906c7aa095c9e74d3ca4fa9
[ "MIT" ]
null
null
null
app/fields/__init__.py
PhotoScout/API
24c2040b0a2fcb1ea906c7aa095c9e74d3ca4fa9
[ "MIT" ]
null
null
null
from .user import USER_SHORT_FIELDS, USER_FIELDS from .guide import GUIDE_FIELDS from .photo import PHOTO_FIELDS from .misc import LOCATION_FIELDS from .places import PLACE_FIELDS
30
48
0.85
f774a722134bdb081575bb4b46e29d9d6d905c75
1,084
py
Python
alipay/aop/api/response/MybankPaymentTradeBankRootQueryResponse.py
antopen/alipay-sdk-python-all
8e51c54409b9452f8d46c7bb10eea7c8f7e8d30c
[ "Apache-2.0" ]
213
2018-08-27T16:49:32.000Z
2021-12-29T04:34:12.000Z
alipay/aop/api/response/MybankPaymentTradeBankRootQueryResponse.py
antopen/alipay-sdk-python-all
8e51c54409b9452f8d46c7bb10eea7c8f7e8d30c
[ "Apache-2.0" ]
29
2018-09-29T06:43:00.000Z
2021-09-02T03:27:32.000Z
alipay/aop/api/response/MybankPaymentTradeBankRootQueryResponse.py
antopen/alipay-sdk-python-all
8e51c54409b9452f8d46c7bb10eea7c8f7e8d30c
[ "Apache-2.0" ]
59
2018-08-27T16:59:26.000Z
2022-03-25T10:08:15.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- import json from alipay.aop.api.response.AlipayResponse import AlipayResponse from alipay.aop.api.domain.Institution import Institution class MybankPaymentTradeBankRootQueryResponse(AlipayResponse): def __init__(self): super(MybankPaymentTradeBankRootQueryRe...
32.848485
112
0.682657
f774bc527ab3f2062647e9ebbfd7228f8b360cd0
4,512
py
Python
src/conda_tools/cache/package.py
groutr/conda-tools
f421fd324f306a713c0cb1a3845306758ff981f4
[ "BSD-3-Clause" ]
11
2016-07-07T00:27:01.000Z
2019-12-02T08:47:16.000Z
src/conda_tools/cache/package.py
groutr/conda-tools
f421fd324f306a713c0cb1a3845306758ff981f4
[ "BSD-3-Clause" ]
8
2016-07-15T14:59:27.000Z
2019-07-03T18:05:34.000Z
src/conda_tools/cache/package.py
groutr/conda-tools
f421fd324f306a713c0cb1a3845306758ff981f4
[ "BSD-3-Clause" ]
2
2016-07-13T22:24:51.000Z
2016-11-16T18:03:46.000Z
from os.path import join, exists, isdir import json from functools import lru_cache import pathlib import typing from sys import intern from . import lazyproperty from . import _types from .exceptions import InvalidCachePackage import tarfile class PackagePool(object): """ Common pool for sharing PackageIn...
26.857143
105
0.564938
f774fb4aef50651009ea47e2785df2de1303807e
29,624
py
Python
buildh/core.py
pierrepo/buildH
4870ffc4fb41deec2c8af5ba5b589795bbb99563
[ "BSD-3-Clause" ]
null
null
null
buildh/core.py
pierrepo/buildH
4870ffc4fb41deec2c8af5ba5b589795bbb99563
[ "BSD-3-Clause" ]
null
null
null
buildh/core.py
pierrepo/buildH
4870ffc4fb41deec2c8af5ba5b589795bbb99563
[ "BSD-3-Clause" ]
null
null
null
"""Module holding the core functions.""" import pandas as pd import MDAnalysis as mda import MDAnalysis.coordinates.XTC as XTC from . import hydrogens from . import geometry as geo from . import writers # For debugging. # TODO: Remove it after implement logging feature DEBUG=False def buildHs_on_1C(atom, H_type, ...
45.786708
121
0.607379
f7751227d5fdfb2ce6982471279f87ea223bf1ff
7,749
py
Python
test/unit/data/test_data.py
rozlana-g/FEDOT
a909d6c0ef481cc1cf7a5f10f7b1292d8d2def5c
[ "BSD-3-Clause" ]
358
2020-06-11T09:34:53.000Z
2022-03-31T12:56:22.000Z
test/unit/data/test_data.py
rozlana-g/FEDOT
a909d6c0ef481cc1cf7a5f10f7b1292d8d2def5c
[ "BSD-3-Clause" ]
467
2020-06-11T13:49:45.000Z
2022-03-31T14:19:48.000Z
test/unit/data/test_data.py
rozlana-g/FEDOT
a909d6c0ef481cc1cf7a5f10f7b1292d8d2def5c
[ "BSD-3-Clause" ]
48
2020-07-13T14:50:45.000Z
2022-03-26T09:37:13.000Z
import os from copy import deepcopy import numpy as np import pandas as pd import pytest from sklearn.datasets import load_iris from fedot.core.data.data import InputData, OutputData from fedot.core.data.multi_modal import MultiModalData from fedot.core.repository.dataset_types import DataTypesEnum from fedot.core.re...
36.9
89
0.682153
f775242af7422496541cad54251b3607e6a782b0
1,149
py
Python
test/test_get_gender_response.py
doc22940/cloudmersive.apiclient.python
8646291f45ebd7c6572a296e30f693693a6782c4
[ "Apache-2.0" ]
3
2018-06-23T21:37:21.000Z
2020-04-20T23:07:36.000Z
test/test_get_gender_response.py
doc22940/cloudmersive.apiclient.python
8646291f45ebd7c6572a296e30f693693a6782c4
[ "Apache-2.0" ]
1
2019-02-04T17:03:35.000Z
2019-03-02T20:16:52.000Z
test/test_get_gender_response.py
doc22940/cloudmersive.apiclient.python
8646291f45ebd7c6572a296e30f693693a6782c4
[ "Apache-2.0" ]
2
2019-03-21T15:54:15.000Z
2020-05-27T17:30:43.000Z
# coding: utf-8 """ validateapi The validation APIs help you validate data. Check if an E-mail address is real. Check if a domain is real. Check up on an IP address, and even where it is located. All this and much more is available in the validation API. # noqa: E501 OpenAPI spec version: v1 Ge...
28.02439
240
0.738033
f7753974e15ff74f8cb8e47336a6d827cb089c6c
2,506
py
Python
auxiliary/np_ioueval.py
bjajoh/lidar_transfer
63cbdf0000c5c64e710dc28771cb95ad104feac8
[ "MIT" ]
55
2021-02-09T08:05:59.000Z
2022-03-31T07:59:07.000Z
auxiliary/np_ioueval.py
ZiyiLiubird/semantic-kitti-api
9a6366264b1fd95d7a84e05bd41659524fd9fd32
[ "MIT" ]
4
2021-02-15T11:15:45.000Z
2021-09-27T08:06:30.000Z
auxiliary/np_ioueval.py
ZiyiLiubird/semantic-kitti-api
9a6366264b1fd95d7a84e05bd41659524fd9fd32
[ "MIT" ]
10
2021-02-10T08:12:27.000Z
2021-12-23T02:43:36.000Z
#!/usr/bin/env python3 # This file is covered by the LICENSE file in the root of this project. import sys import numpy as np class iouEval: def __init__(self, n_classes, ignore=None): # classes self.n_classes = n_classes # What to include and ignore from the means self.ignore = np.array(ignore, dt...
26.104167
83
0.61652
f77543614c593161c27b434ad55e613668617c68
876
py
Python
code/L14-9.py
8bitidea/omac-solved-lessons-
b78ee1b41dd310b97a0d5c3c64ab184186e1238f
[ "MIT" ]
null
null
null
code/L14-9.py
8bitidea/omac-solved-lessons-
b78ee1b41dd310b97a0d5c3c64ab184186e1238f
[ "MIT" ]
null
null
null
code/L14-9.py
8bitidea/omac-solved-lessons-
b78ee1b41dd310b97a0d5c3c64ab184186e1238f
[ "MIT" ]
null
null
null
#------------------------------------------- #One Million Arabic Coder (OMRC) #patch Full Stack Web Dev .1 #Lisson 13 Problem Solving #Please note that i am sharing this code to #find the idea behined the problem not for #copy and pasting ! #and i wish if you can find a mistake or ha #ve a better answer let me know ...
22.461538
44
0.635845
f775476598df351443f989f6efe333252fa28cf6
4,132
py
Python
ibms_project/ibms/migrations/0002_auto_20170904_1150.py
mohdbakhrayba/ibms
029e1f3bf108586289c65bb1d547f86851f9494f
[ "Apache-2.0" ]
2
2019-09-07T20:39:29.000Z
2021-09-16T12:02:16.000Z
ibms_project/ibms/migrations/0002_auto_20170904_1150.py
mohdbakhrayba/ibms
029e1f3bf108586289c65bb1d547f86851f9494f
[ "Apache-2.0" ]
11
2020-06-18T06:53:01.000Z
2022-02-11T01:55:42.000Z
ibms_project/ibms/migrations/0002_auto_20170904_1150.py
mohdbakhrayba/ibms
029e1f3bf108586289c65bb1d547f86851f9494f
[ "Apache-2.0" ]
5
2016-01-18T04:36:48.000Z
2017-09-07T06:38:28.000Z
# -*- coding: utf-8 -*- # Generated by Django 1.11.3 on 2017-09-04 03:50 from __future__ import unicode_literals from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('ibms', '0001_initial'), ] operations = [ migrations.AlterField( ...
62.606061
316
0.549371
f7754d688ea81f849e8caedb18747b0314de8ed3
1,674
py
Python
Chanet.py
ParadoxZW/CIFAR100-PRACTICE
175d9a72fc8e7d79ec3ef8670028d1efe830e5b9
[ "MIT" ]
1
2020-04-15T11:01:28.000Z
2020-04-15T11:01:28.000Z
Chanet.py
ParadoxZW/CIFAR100-PRACTICE
175d9a72fc8e7d79ec3ef8670028d1efe830e5b9
[ "MIT" ]
null
null
null
Chanet.py
ParadoxZW/CIFAR100-PRACTICE
175d9a72fc8e7d79ec3ef8670028d1efe830e5b9
[ "MIT" ]
null
null
null
# just for fun, give channel some meanings about relations # between positions. from modules import * from torch import tensor import torch import numpy as np import torch.nn.functional as F from torch import nn class Group(nn.Module): """ resblocks with same input and output size. """ def __init__(...
32.192308
85
0.569892
f77559d68fa951938c362420d5d0bb3fc45202fb
2,610
py
Python
multicurrency/nakfa.py
fscm/multicurrency
5eabdcbfbf427dcafe08d4d05cfce8c9348aeb91
[ "MIT" ]
2
2021-03-26T18:19:57.000Z
2021-07-27T01:15:50.000Z
multicurrency/nakfa.py
fscm/multicurrency
5eabdcbfbf427dcafe08d4d05cfce8c9348aeb91
[ "MIT" ]
null
null
null
multicurrency/nakfa.py
fscm/multicurrency
5eabdcbfbf427dcafe08d4d05cfce8c9348aeb91
[ "MIT" ]
null
null
null
# -*- coding: UTF-8 -*- # # copyright: 2020-2022, Frederico Martins # author: Frederico Martins <http://github.com/fscm> # license: SPDX-License-Identifier: MIT """Nakfa currency representation(s).""" from decimal import Decimal from typing import Optional, Union from .currency import Currency class Nakfa(Currency)...
33.896104
77
0.601916
f7758e7e9d54b63507f07979a0af8d27ec099b88
11,539
py
Python
irl/mdp/gridworld.py
pragupta/Inverse-Reinforcement-Learning
e7bbb7bb0ad24ebc36d9e0d4b4e6c6788229fd9c
[ "MIT" ]
null
null
null
irl/mdp/gridworld.py
pragupta/Inverse-Reinforcement-Learning
e7bbb7bb0ad24ebc36d9e0d4b4e6c6788229fd9c
[ "MIT" ]
null
null
null
irl/mdp/gridworld.py
pragupta/Inverse-Reinforcement-Learning
e7bbb7bb0ad24ebc36d9e0d4b4e6c6788229fd9c
[ "MIT" ]
null
null
null
""" Implements the gridworld MDP. Matthew Alger, 2015 matthew.alger@anu.edu.au """ import numpy as np import numpy.random as rn import matplotlib.pyplot as plt class Gridworld(object): """ Gridworld MDP. """ def __init__(self, grid_size, wind, discount): """ grid_size: Grid size. int...
33.063037
80
0.519716
f7758f64253c800e4c6ee339ecf3a2d15ef17809
1,083
py
Python
PythonNetCode/chapter9/9_2_save_packets_in_pcap_format.py
AirChen/PythonPractic
676708237dc502ea9a60218a3ca134874bd18456
[ "MIT" ]
null
null
null
PythonNetCode/chapter9/9_2_save_packets_in_pcap_format.py
AirChen/PythonPractic
676708237dc502ea9a60218a3ca134874bd18456
[ "MIT" ]
null
null
null
PythonNetCode/chapter9/9_2_save_packets_in_pcap_format.py
AirChen/PythonPractic
676708237dc502ea9a60218a3ca134874bd18456
[ "MIT" ]
null
null
null
#!/usr/bin/env python # Python Network Programming Cookbook -- Chapter - 9 # This program is optimized for Python 2.7. # It may run on any other version with/without modifications. import os from scapy.all import * pkts = [] count = 0 pcapnum = 0 def write_cap(x): global pkts global count global pcapnum ...
23.543478
72
0.591874
f775a6dc3dad091a9337db4b98d875cc49c56ab1
4,854
py
Python
venv/Lib/site-packages/tests/test_200_MultipleRsltsetsUniformColDefs.py
shehzadulislam/Assignment4
a9cced70be6ae5d2685027d68032d5849f638301
[ "Apache-2.0" ]
null
null
null
venv/Lib/site-packages/tests/test_200_MultipleRsltsetsUniformColDefs.py
shehzadulislam/Assignment4
a9cced70be6ae5d2685027d68032d5849f638301
[ "Apache-2.0" ]
null
null
null
venv/Lib/site-packages/tests/test_200_MultipleRsltsetsUniformColDefs.py
shehzadulislam/Assignment4
a9cced70be6ae5d2685027d68032d5849f638301
[ "Apache-2.0" ]
null
null
null
# # Licensed Materials - Property of IBM # # (c) Copyright IBM Corp. 2007-2008 # import unittest, sys import ibm_db import config from testfunctions import IbmDbTestFunctions class IbmDbTestCase(unittest.TestCase): def test_200_MultipleRsltsetsUniformColDefs(self): obj = IbmDbTestFunctions() obj.assert_...
20.225
101
0.55171
f775c6f8c907ddb7e89bc977c7e63be3ce76d5e9
19
py
Python
service/__init__.py
abuonomo/concept-tagging-api
217bb8b84de8479bff1227a008ee91da45de558a
[ "MIT" ]
10
2020-06-16T16:02:14.000Z
2021-11-07T12:56:48.000Z
service/__init__.py
abuonomo/concept-tagging-api
217bb8b84de8479bff1227a008ee91da45de558a
[ "MIT" ]
4
2020-06-19T13:17:10.000Z
2020-09-21T02:15:18.000Z
service/__init__.py
abuonomo/concept-tagging-api
217bb8b84de8479bff1227a008ee91da45de558a
[ "MIT" ]
8
2020-06-16T16:38:03.000Z
2021-09-13T02:09:27.000Z
import service.app
9.5
18
0.842105
f775e6987bd9a0bc9c4b6f841156ee39f701459f
11,570
py
Python
oa/models.py
lastcc/OAHelper
2d58ac56b8e223aeefd5371d3eaf9ea8ac485735
[ "MIT" ]
null
null
null
oa/models.py
lastcc/OAHelper
2d58ac56b8e223aeefd5371d3eaf9ea8ac485735
[ "MIT" ]
null
null
null
oa/models.py
lastcc/OAHelper
2d58ac56b8e223aeefd5371d3eaf9ea8ac485735
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- from bs4 import BeautifulSoup from log_config import logger class Struct(object): """ An object that has attributes built from the dictionary given in constructor. So ss=Struct(a=1, b='b') will satisfy assert ss.a == 1 and assert ss.b == 'b'. """ def...
28.781095
151
0.531979
f775f720ab9f08dac1aa4bef66b6886f5be8bcbf
1,354
py
Python
tests/v2/test_client.py
alexpilotti/python-glanceclient
3b6754a8cc8932cd9645d54acc8d02826993a546
[ "Apache-2.0" ]
null
null
null
tests/v2/test_client.py
alexpilotti/python-glanceclient
3b6754a8cc8932cd9645d54acc8d02826993a546
[ "Apache-2.0" ]
null
null
null
tests/v2/test_client.py
alexpilotti/python-glanceclient
3b6754a8cc8932cd9645d54acc8d02826993a546
[ "Apache-2.0" ]
null
null
null
# Copyright 2013 OpenStack LLC. # 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 b...
33.85
78
0.703102
f7763823cbda6a6c508b3a1d4a4ffb6ca5ed80fd
21,095
py
Python
ibis/backends/spark/client.py
jreback/ibis
fdcca59b085416b1311eb268be3886abad1db230
[ "Apache-2.0" ]
1
2020-08-19T03:36:26.000Z
2020-08-19T03:36:26.000Z
ibis/backends/spark/client.py
jreback/ibis
fdcca59b085416b1311eb268be3886abad1db230
[ "Apache-2.0" ]
null
null
null
ibis/backends/spark/client.py
jreback/ibis
fdcca59b085416b1311eb268be3886abad1db230
[ "Apache-2.0" ]
2
2020-11-27T22:21:50.000Z
2021-04-03T09:36:25.000Z
import pandas as pd import pyspark as ps import regex as re import toolz from pkg_resources import parse_version import ibis.common.exceptions as com import ibis.expr.datatypes as dt import ibis.expr.lineage as lin import ibis.expr.operations as ops import ibis.expr.schema as sch import ibis.expr.types as ir from ibis...
27.43173
79
0.581986
f77653588ba8889cf74584e89068412cf653b100
266
py
Python
src/Python3/Q115251/exsample.py
umyuu/Sample
66e8cd725b682db4c9bf93fb80786eea8cbad19d
[ "MIT" ]
null
null
null
src/Python3/Q115251/exsample.py
umyuu/Sample
66e8cd725b682db4c9bf93fb80786eea8cbad19d
[ "MIT" ]
null
null
null
src/Python3/Q115251/exsample.py
umyuu/Sample
66e8cd725b682db4c9bf93fb80786eea8cbad19d
[ "MIT" ]
null
null
null
# -*- coding: utf8 -*- def mufunc(end=25, multiple=2, non_multiple=5): for i in range(0, end + 1, multiple): if i % non_multiple: yield i def main() -> None: for i in mufunc(): print(i) if __name__ == '__main__': main()
15.647059
47
0.533835
f7766e34703acee2ed45c8a59840089e1f8cf787
834
py
Python
userinfo.py
kenmutuma001/Password-Locker
5fb96851d1e52ae5b339ec40e696c045271ca33e
[ "Unlicense" ]
null
null
null
userinfo.py
kenmutuma001/Password-Locker
5fb96851d1e52ae5b339ec40e696c045271ca33e
[ "Unlicense" ]
null
null
null
userinfo.py
kenmutuma001/Password-Locker
5fb96851d1e52ae5b339ec40e696c045271ca33e
[ "Unlicense" ]
null
null
null
class Userinfo: ''' class generates the users info.That is the username and password. ''' userinfo_list = [] def save_userinfo(self): ''' This method saves userinfo into the userinfo_list ''' Userinfo.userinfo_list.append(self) def delete_userinfo(self): ''' T...
18.954545
68
0.621103
f776ab9ca7db968123df3118310586873a3802e2
6,715
py
Python
libs/nftk_modify_hosts_file.py
dre/neurofuzz_toolkit
fb36e8faa23a96a81a1e677a1add1347de765ed2
[ "BSD-3-Clause" ]
null
null
null
libs/nftk_modify_hosts_file.py
dre/neurofuzz_toolkit
fb36e8faa23a96a81a1e677a1add1347de765ed2
[ "BSD-3-Clause" ]
null
null
null
libs/nftk_modify_hosts_file.py
dre/neurofuzz_toolkit
fb36e8faa23a96a81a1e677a1add1347de765ed2
[ "BSD-3-Clause" ]
1
2018-04-21T21:39:38.000Z
2018-04-21T21:39:38.000Z
''' FILENAME : nftk_modify_hosts_file.py AUTHORS : Andres Andreu <andres [at] neurofuzzsecurity dot com> MODIFIED BY : Andres Andreu DATE : 07/11/2015 LAST UPDATE : 05/18/2016 modifies an /etc/hosts file and then has the ability to reset it back to its original state ...
33.575
92
0.615786
f776addcc97821b83a4df78fe6947ed6a11b376a
8,347
py
Python
pirateMapMaker.py
cornell-cup/cs-wall
c9097dd36fdf95842648844f956951c7572642ea
[ "Apache-2.0" ]
null
null
null
pirateMapMaker.py
cornell-cup/cs-wall
c9097dd36fdf95842648844f956951c7572642ea
[ "Apache-2.0" ]
13
2018-03-21T04:13:50.000Z
2018-04-13T20:34:11.000Z
pirateMapMaker.py
cornell-cup/cs-wall
c9097dd36fdf95842648844f956951c7572642ea
[ "Apache-2.0" ]
2
2018-03-21T04:19:07.000Z
2018-03-26T21:20:28.000Z
import json import Globals as g class PirateMapMaker(): """Object class for making levels for Wall from JSON files Contains the keywords for parsing a level JSON into a data structure representing the game state for the GUI. """ ###Keys to access JSON data #Background image for game ...
33.123016
95
0.577094
f776b2800bfed75a902a899fce68615b8ea23018
11,476
py
Python
AFLW/fddb_finetune.py
kli-nlpr/FaceDetection-ConvNet-3D
f9251c48eb40c5aec8fba7455115c355466555be
[ "Apache-2.0" ]
159
2016-08-23T22:13:26.000Z
2021-10-24T01:31:35.000Z
AFLW/fddb_finetune.py
mrgloom/FaceDetection-ConvNet-3D
f9251c48eb40c5aec8fba7455115c355466555be
[ "Apache-2.0" ]
10
2016-08-23T05:59:07.000Z
2018-05-24T02:31:41.000Z
AFLW/fddb_finetune.py
mrgloom/FaceDetection-ConvNet-3D
f9251c48eb40c5aec8fba7455115c355466555be
[ "Apache-2.0" ]
77
2016-08-21T00:35:00.000Z
2021-06-01T05:03:34.000Z
import os import numpy as np import mxnet as mx import fddb_symbol_finetune from mxnet import optimizer as opt from mxnet.optimizer import get_updater import time batchsize = 4000 start_epoch = 1 end_epoch = 201 num_cls = 10 channel_len = 64 feature_len = 3136 + 8 + num_cls * (num_cls + 1) + num_cls * channel_len lab...
41.280576
115
0.586441
f776c664d9a262959f37a2648cf09b76add09397
16,316
py
Python
Tools/resultsdbpy/resultsdbpy/model/repository.py
jacadcaps/webkitty
9aebd2081349f9a7b5d168673c6f676a1450a66d
[ "BSD-2-Clause" ]
6
2021-07-05T16:09:39.000Z
2022-03-06T22:44:42.000Z
Tools/resultsdbpy/resultsdbpy/model/repository.py
jacadcaps/webkitty
9aebd2081349f9a7b5d168673c6f676a1450a66d
[ "BSD-2-Clause" ]
7
2022-03-15T13:25:39.000Z
2022-03-15T13:25:44.000Z
Tools/resultsdbpy/resultsdbpy/model/repository.py
jacadcaps/webkitty
9aebd2081349f9a7b5d168673c6f676a1450a66d
[ "BSD-2-Clause" ]
null
null
null
# Copyright (C) 2019 Apple Inc. All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions # are met: # 1. Redistributions of source code must retain the above copyright # notice, this list of conditions and the f...
41.835897
157
0.596531
f776df4e91f33c3708960a63576c363d4a0758cb
1,346
py
Python
scripts/artifacts/adb_hosts.py
JamieSharpe/ALEAPP
acb06736d772d75c9dc0fd58b9f2a1726e795fb4
[ "MIT" ]
null
null
null
scripts/artifacts/adb_hosts.py
JamieSharpe/ALEAPP
acb06736d772d75c9dc0fd58b9f2a1726e795fb4
[ "MIT" ]
null
null
null
scripts/artifacts/adb_hosts.py
JamieSharpe/ALEAPP
acb06736d772d75c9dc0fd58b9f2a1726e795fb4
[ "MIT" ]
null
null
null
from scripts.plugin_base import ArtefactPlugin from scripts.ilapfuncs import logfunc, tsv from scripts import artifact_report class AdbHostsPlugin(ArtefactPlugin): """ """ def __init__(self): super().__init__() self.author = 'Unknown' self.author_email = '' se...
32.047619
119
0.600297
f777014662bfd7307c1f9230afb026180f14e6da
1,817
py
Python
I2CLCD1602.py
vito-royeca/gpio-tutorials
548f4ad9ef44a4d21c1465e0d054a70572c61549
[ "MIT" ]
null
null
null
I2CLCD1602.py
vito-royeca/gpio-tutorials
548f4ad9ef44a4d21c1465e0d054a70572c61549
[ "MIT" ]
null
null
null
I2CLCD1602.py
vito-royeca/gpio-tutorials
548f4ad9ef44a4d21c1465e0d054a70572c61549
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 ######################################################################## # Filename : I2CLCD1602.py # Description : Use the LCD display data # Author : freenove # modification: 2018/08/03 ######################################################################## from PCF8574 import PCF8574_...
31.327586
108
0.589433