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
79879fdc3171b8e34b606b27eb1ceb67f4473e3e
11,148
py
Python
mmdet/models/dense_heads/free_anchor_retina_head.py
evgps/mmdetection_trashcan
aaf4237c2c0d473425cdc7b741d3009177b79751
[ "Apache-2.0" ]
12,377
2017-12-04T02:46:57.000Z
2022-03-31T16:48:31.000Z
mmdet/models/dense_heads/free_anchor_retina_head.py
evgps/mmdetection_trashcan
aaf4237c2c0d473425cdc7b741d3009177b79751
[ "Apache-2.0" ]
1,851
2017-12-05T05:41:23.000Z
2022-03-30T13:06:22.000Z
mmdet/models/dense_heads/free_anchor_retina_head.py
evgps/mmdetection_trashcan
aaf4237c2c0d473425cdc7b741d3009177b79751
[ "Apache-2.0" ]
4,198
2017-12-05T02:57:19.000Z
2022-03-30T10:29:37.000Z
import torch import torch.nn.functional as F from mmdet.core import bbox_overlaps from ..builder import HEADS from .retina_head import RetinaHead EPS = 1e-12 @HEADS.register_module() class FreeAnchorRetinaHead(RetinaHead): """FreeAnchor RetinaHead used in https://arxiv.org/abs/1909.02466. Args: num...
41.136531
94
0.53615
7987a0881618a02ecd5860de94180e2bb22851d1
182
py
Python
src/cancer/message/__init__.py
OpenAlcoholics/telegram-vreddit-bot
ea736f2a8808331abeb5b85ace1cff3faf7466e7
[ "MIT" ]
null
null
null
src/cancer/message/__init__.py
OpenAlcoholics/telegram-vreddit-bot
ea736f2a8808331abeb5b85ace1cff3faf7466e7
[ "MIT" ]
1
2021-11-17T15:44:36.000Z
2021-11-17T15:44:36.000Z
src/cancer/message/__init__.py
OpenAlcoholics/telegram-vreddit-bot
ea736f2a8808331abeb5b85ace1cff3faf7466e7
[ "MIT" ]
null
null
null
from .download import DownloadMessage # noqa from .message import Message # noqa from .topic import Topic # noqa from .youtube_url_convert import YoutubeUrlConvertMessage # noqa
36.4
65
0.802198
7987a10996d03c58ee0184f1efb1871adfeae548
798
py
Python
front_end/django-project/cyder/api/urls.py
Jonathan56/CyDER
58cc88f5140585b6d4d9073eca29e3d3b324eb5e
[ "BSD-3-Clause-LBNL" ]
10
2017-05-03T18:00:49.000Z
2021-07-25T03:09:32.000Z
front_end/django-project/cyder/api/urls.py
Jonathan56/CyDER
58cc88f5140585b6d4d9073eca29e3d3b324eb5e
[ "BSD-3-Clause-LBNL" ]
null
null
null
front_end/django-project/cyder/api/urls.py
Jonathan56/CyDER
58cc88f5140585b6d4d9073eca29e3d3b324eb5e
[ "BSD-3-Clause-LBNL" ]
2
2018-02-12T17:14:15.000Z
2021-02-02T02:12:27.000Z
from django.urls import path, include from rest_framework import routers from rest_framework.authtoken import views as token_views from . import views app_name = 'api' apirouter = routers.DefaultRouter() urlpatterns = [ path('token-auth/', token_views.obtain_auth_token), path('token-session/', views.token_fro...
26.6
57
0.68797
7987a2412becdbce9efc23a6d1bb8c7f741150e4
628
py
Python
manage.py
rubenbuelvas/DS3Rings
147dee935fac645d6f0fc40b91bb4c1eef1d21bd
[ "MIT" ]
1
2020-04-27T04:26:06.000Z
2020-04-27T04:26:06.000Z
manage.py
rubenbuelvas/DS3Rings
147dee935fac645d6f0fc40b91bb4c1eef1d21bd
[ "MIT" ]
3
2021-06-08T21:27:38.000Z
2022-03-12T00:30:27.000Z
manage.py
rubenbuelvas/DS3Rings
147dee935fac645d6f0fc40b91bb4c1eef1d21bd
[ "MIT" ]
null
null
null
#!/usr/bin/env python """Django's command-line utility for administrative tasks.""" import os import sys def main(): os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'DS3Rings.settings') try: from django.core.management import execute_from_command_line except ImportError as exc: raise Impor...
28.545455
73
0.683121
7987a30c650181b70031b675fa451e192cbaff88
1,528
py
Python
pay-api/tests/unit/services/test_pad_service.py
stevenc987/sbc-pay
04f02f362f88a30c082b0643583b8d0ebff6063f
[ "Apache-2.0" ]
null
null
null
pay-api/tests/unit/services/test_pad_service.py
stevenc987/sbc-pay
04f02f362f88a30c082b0643583b8d0ebff6063f
[ "Apache-2.0" ]
null
null
null
pay-api/tests/unit/services/test_pad_service.py
stevenc987/sbc-pay
04f02f362f88a30c082b0643583b8d0ebff6063f
[ "Apache-2.0" ]
null
null
null
# Copyright © 2019 Province of British Columbia # # 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 agr...
32.510638
105
0.742801
7987a3a847d56793525e17bf9d0c1de85bb72151
7,097
py
Python
search/django/weedid/tasks.py
Sydney-Informatics-Hub/Weed-ID-Interchange
d27891c2148de54d03727f688f8b6c6c414ec09b
[ "MIT" ]
4
2021-05-21T00:53:24.000Z
2021-08-30T12:01:24.000Z
search/django/weedid/tasks.py
Sydney-Informatics-Hub/Weed-ID-Interchange
d27891c2148de54d03727f688f8b6c6c414ec09b
[ "MIT" ]
282
2020-07-10T00:52:21.000Z
2021-03-01T06:58:05.000Z
search/django/weedid/tasks.py
Sydney-Informatics-Hub/Weed-ID-Interchange
d27891c2148de54d03727f688f8b6c6c414ec09b
[ "MIT" ]
2
2020-10-07T06:12:39.000Z
2021-02-02T05:21:32.000Z
from __future__ import absolute_import, unicode_literals import json import traceback import datetime import subprocess from celery import shared_task from weedcoco.repo.deposit import deposit, compress_to_download from weedcoco.index.indexing import ElasticSearchIndexer from weedcoco.index.thumbnailing import thumbnai...
32.259091
227
0.659152
7987a4e0dbc0dfbdbb8e4f531a23b7b3e1eb9d37
2,344
py
Python
rapid7_insightvm/komand_rapid7_insightvm/connection/connection.py
emartin-merrill-r7/insightconnect-plugins
a589745dbcc9f01d3e601431e77ab7221a84c117
[ "MIT" ]
1
2020-03-18T09:14:55.000Z
2020-03-18T09:14:55.000Z
rapid7_insightvm/komand_rapid7_insightvm/connection/connection.py
OSSSP/insightconnect-plugins
846758dab745170cf1a8c146211a8bea9592e8ff
[ "MIT" ]
null
null
null
rapid7_insightvm/komand_rapid7_insightvm/connection/connection.py
OSSSP/insightconnect-plugins
846758dab745170cf1a8c146211a8bea9592e8ff
[ "MIT" ]
null
null
null
import komand from .schema import ConnectionSchema # Custom imports below import urllib3 from requests import Session from requests.auth import HTTPBasicAuth from requests.exceptions import RequestException from collections import namedtuple from komand_rapid7_insightvm.util import endpoints class Connection(komand.C...
37.206349
116
0.656143
7987a4e604591c45a5f828f327253f8c3b867858
35,792
py
Python
src/fparser/common/base_classes.py
grnydawn/fparser
bc7cac9f1c126338bff62f291efdb4164f5d4c4a
[ "BSD-3-Clause" ]
null
null
null
src/fparser/common/base_classes.py
grnydawn/fparser
bc7cac9f1c126338bff62f291efdb4164f5d4c4a
[ "BSD-3-Clause" ]
null
null
null
src/fparser/common/base_classes.py
grnydawn/fparser
bc7cac9f1c126338bff62f291efdb4164f5d4c4a
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- # Modified work Copyright (c) 2017 Science and Technology Facilities Council # Original work Copyright (c) 1999-2008 Pearu Peterson # All rights reserved. # Modifications made as part of the fparser project are distributed # under the following license: # Redistribution and use in source and ...
35.61393
79
0.550123
7987a6275814a56d65295c3560ceed86438952bf
3,110
py
Python
ingestion/src/metadata/ingestion/source/database/mssql.py
TeddyCr/OpenMetadata
9e11ad54d99a3317c27c101269768e7aa2c6eb5f
[ "Apache-2.0" ]
null
null
null
ingestion/src/metadata/ingestion/source/database/mssql.py
TeddyCr/OpenMetadata
9e11ad54d99a3317c27c101269768e7aa2c6eb5f
[ "Apache-2.0" ]
null
null
null
ingestion/src/metadata/ingestion/source/database/mssql.py
TeddyCr/OpenMetadata
9e11ad54d99a3317c27c101269768e7aa2c6eb5f
[ "Apache-2.0" ]
null
null
null
# Copyright 2021 Collate # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # http://www.apache.org/licenses/LICENSE-2.0 # Unless required by applicable law or agreed to in writing, software...
38.395062
99
0.685852
7987a99ffa3ff164453f60a5131e503cb01807b1
950,400
py
Python
build/releases/release-0.580/ob/lisp.py
farinacci/lispers.net
e1ed6e0f0a242b13ad629afb0fc1c7072b19b30c
[ "Apache-2.0" ]
26
2019-02-01T19:12:21.000Z
2022-03-25T04:40:38.000Z
build/releases/release-0.580/ob/lisp.py
farinacci/lispers.net
e1ed6e0f0a242b13ad629afb0fc1c7072b19b30c
[ "Apache-2.0" ]
3
2019-10-29T17:49:19.000Z
2022-03-20T21:21:31.000Z
build/releases/release-0.580/ob/lisp.py
farinacci/lispers.net
e1ed6e0f0a242b13ad629afb0fc1c7072b19b30c
[ "Apache-2.0" ]
4
2019-02-02T16:50:48.000Z
2020-10-29T03:10:58.000Z
# ----------------------------------------------------------------------------- # # Copyright 2013-2019 lispers.net - Dino Farinacci <farinacci@gmail.com> # # 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...
46.290975
787
0.64928
7987aab7bd473dbd78fa7994ec8106e66bb7b032
3,595
py
Python
dit/divergences/maximum_correlation.py
Ejjaffe/dit
c9d206f03d1de5a0a298b1d0ea9d79ea5e789ee1
[ "BSD-3-Clause" ]
1
2020-03-13T10:30:11.000Z
2020-03-13T10:30:11.000Z
dit/divergences/maximum_correlation.py
Ejjaffe/dit
c9d206f03d1de5a0a298b1d0ea9d79ea5e789ee1
[ "BSD-3-Clause" ]
null
null
null
dit/divergences/maximum_correlation.py
Ejjaffe/dit
c9d206f03d1de5a0a298b1d0ea9d79ea5e789ee1
[ "BSD-3-Clause" ]
null
null
null
""" Compute the maximum correlation: .. math:: \rho(X:Y) = max_{f, g} E(f(X)g(Y)) """ import numpy as np from ..exceptions import ditException from ..helpers import normalize_rvs __all__ = ( 'conditional_maximum_correlation_pmf', 'maximum_correlation', 'maximum_correlation_pmf', ) svdvals = lambda...
28.307087
98
0.638665
7987aaf9c97f6dd278e2e0581f6ba46583103983
3,198
py
Python
docs/pyqt/widzety/widzety_z5.py
damiankarol7/python101
1978a9402a8fb0f20c4ca7bd542cb8d7d4501b9b
[ "MIT" ]
44
2015-02-11T19:10:37.000Z
2021-11-11T09:45:43.000Z
docs/pyqt/widzety/widzety_z5.py
damiankarol7/python101
1978a9402a8fb0f20c4ca7bd542cb8d7d4501b9b
[ "MIT" ]
9
2015-02-06T21:26:25.000Z
2022-03-31T10:44:22.000Z
docs/pyqt/widzety/widzety_z5.py
damiankarol7/python101
1978a9402a8fb0f20c4ca7bd542cb8d7d4501b9b
[ "MIT" ]
172
2015-06-13T07:16:24.000Z
2022-03-30T20:41:11.000Z
#!/usr/bin/python # -*- coding: utf-8 -*- from __future__ import unicode_literals from PyQt5.QtWidgets import QApplication, QWidget from gui_z5 import Ui_Widget from PyQt5.QtGui import QColor class Widgety(QWidget, Ui_Widget): """ Główna klasa aplikacji """ kanaly = {'R'} # zbiór kanałów kolorW = QColo...
31.98
79
0.622889
7987ab9f719338d4c4fe782913004ace32f529dc
10,134
py
Python
qa/rpc-tests/listtransactions.py
shadowOz/stargate-guru-test
41716cd5142df5d598775139c4a3313bc3c917ac
[ "MIT" ]
null
null
null
qa/rpc-tests/listtransactions.py
shadowOz/stargate-guru-test
41716cd5142df5d598775139c4a3313bc3c917ac
[ "MIT" ]
null
null
null
qa/rpc-tests/listtransactions.py
shadowOz/stargate-guru-test
41716cd5142df5d598775139c4a3313bc3c917ac
[ "MIT" ]
null
null
null
#!/usr/bin/env python2 # Copyright (c) 2014-2015 The Bitcoin Core developers # Distributed under the MIT software license, see the accompanying # file COPYING or http://www.opensource.org/licenses/mit-license.php. # Exercise the listtransactions API from test_framework.test_framework import BitcoinTestFramework from ...
50.168317
113
0.598579
7987acd29ecca0f6cdd16ad44f6106c04d003bf4
4,525
py
Python
croquis_style/pix2pix/train.py
MeimShang/sRender
a07fcc2c2ce590649da4006c5de545ac65372817
[ "MIT" ]
23
2021-01-17T05:01:34.000Z
2022-02-25T06:21:31.000Z
croquis_style/pix2pix/train.py
MeimShang/sRender
a07fcc2c2ce590649da4006c5de545ac65372817
[ "MIT" ]
1
2021-02-24T11:13:00.000Z
2021-02-24T11:13:00.000Z
croquis_style/pix2pix/train.py
MeimShang/sRender
a07fcc2c2ce590649da4006c5de545ac65372817
[ "MIT" ]
2
2020-11-10T17:33:02.000Z
2020-11-27T06:39:36.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- # @Time : 19-6-13 # @Author : Jehovah # @File : train.py # @Software: PyCharm import time import options from data_loader2 import DataLoader from models.networks import * from utils.utils import GANLoss from torch.optim import lr_scheduler import torch.utils.data ...
29.966887
96
0.579669
7987ada8d7e574102cca3b39fcb374f0ab864d48
11,084
py
Python
App/apps/sobre_nosotros.py
Sebasc322/SupplierApp
e7f9f62b344ae494cce7abc35ed977cd889857f3
[ "MIT" ]
null
null
null
App/apps/sobre_nosotros.py
Sebasc322/SupplierApp
e7f9f62b344ae494cce7abc35ed977cd889857f3
[ "MIT" ]
null
null
null
App/apps/sobre_nosotros.py
Sebasc322/SupplierApp
e7f9f62b344ae494cce7abc35ed977cd889857f3
[ "MIT" ]
null
null
null
import dash_html_components as html import dash_core_components as dcc import dash_bootstrap_components as dbc import dash_table from app import app TEAM_LOGO = "/assets/logos/TEAM_100.gif" layout = html.Div( [ html.A( html.Div( [ html.Img(s...
56.841026
194
0.358896
7987ae055b5682dc85d401496308b551a3d9f257
4,855
py
Python
msticpy/sectools/tiproviders/azure_sent_byoti.py
kinow/msticpy
82ad94bb7a6024e4c4e8ac50fde80df327c9f55b
[ "MIT" ]
null
null
null
msticpy/sectools/tiproviders/azure_sent_byoti.py
kinow/msticpy
82ad94bb7a6024e4c4e8ac50fde80df327c9f55b
[ "MIT" ]
null
null
null
msticpy/sectools/tiproviders/azure_sent_byoti.py
kinow/msticpy
82ad94bb7a6024e4c4e8ac50fde80df327c9f55b
[ "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. # -------------------------------------------------------------------------- """ Azure ...
37.346154
88
0.590937
7987ae77105b90778fa76de2b6bd2da7ddcfd0a3
5,057
py
Python
lib/utils/lr_policy.py
kiyoon/video-long-term-feature-banks
f1201555901cf8c04ce45e97551e01fd04b541d4
[ "Apache-2.0" ]
377
2019-04-17T17:45:45.000Z
2022-03-18T14:02:24.000Z
lib/utils/lr_policy.py
kiyoon/video-long-term-feature-banks
f1201555901cf8c04ce45e97551e01fd04b541d4
[ "Apache-2.0" ]
64
2019-04-24T16:19:45.000Z
2021-08-02T02:05:20.000Z
lib/utils/lr_policy.py
kiyoon/video-long-term-feature-banks
f1201555901cf8c04ce45e97551e01fd04b541d4
[ "Apache-2.0" ]
81
2019-04-17T20:15:48.000Z
2022-03-24T12:27:45.000Z
# Copyright (c) Facebook, Inc. and its affiliates. # # 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 ...
32.006329
80
0.606882
7987b0250bfb3dd56bfe6b01550abb5c3a2dfc71
4,691
py
Python
nullaway-eval/javac_args.py
gradual-verification/NullSafetyJava
d9e08a5fedd6e4bf11f264cde11bd427102c5b25
[ "MIT" ]
null
null
null
nullaway-eval/javac_args.py
gradual-verification/NullSafetyJava
d9e08a5fedd6e4bf11f264cde11bd427102c5b25
[ "MIT" ]
null
null
null
nullaway-eval/javac_args.py
gradual-verification/NullSafetyJava
d9e08a5fedd6e4bf11f264cde11bd427102c5b25
[ "MIT" ]
null
null
null
from common import * import re pattern = "Compiler arguments: " args_need_value = ["-source","-target","-encoding","-d","-s","-extdirs","-endorseddirs","-sourcepath","-cp","-classpath","-processor","-processorpath","-bootclasspath"] args_to_remove = ["-g","-Werror","-proc:none","-Xplugin:ErrorProne"] EP_args = "-Xep(?...
44.67619
227
0.702835
7987b10a0634e289fee054079c5d69380c827e5f
396
py
Python
order/serializers.py
muhtarudinsiregar/tees_test
4821f3eb3e69f9aef6901d13517975742c243055
[ "MIT" ]
null
null
null
order/serializers.py
muhtarudinsiregar/tees_test
4821f3eb3e69f9aef6901d13517975742c243055
[ "MIT" ]
null
null
null
order/serializers.py
muhtarudinsiregar/tees_test
4821f3eb3e69f9aef6901d13517975742c243055
[ "MIT" ]
null
null
null
from rest_framework import serializers, permissions from order.models import Order class OrderSerializer(serializers.ModelSerializer): name = serializers.ReadOnlyField(source='user.username') email = serializers.ReadOnlyField(source='user.email') permission_classes = (permissions.IsAuthenticated,) c...
28.285714
60
0.732323
7987b1a861b305e230a0e1d04af83d41b9d5d9d4
44,253
py
Python
numba/typeinfer.py
EnjoyLifeFund/py36pkgs
0ac677fbbfa7b6d8c527fe2c759ba05117b07fd2
[ "MIT", "BSD-2-Clause", "BSD-3-Clause" ]
null
null
null
numba/typeinfer.py
EnjoyLifeFund/py36pkgs
0ac677fbbfa7b6d8c527fe2c759ba05117b07fd2
[ "MIT", "BSD-2-Clause", "BSD-3-Clause" ]
null
null
null
numba/typeinfer.py
EnjoyLifeFund/py36pkgs
0ac677fbbfa7b6d8c527fe2c759ba05117b07fd2
[ "MIT", "BSD-2-Clause", "BSD-3-Clause" ]
null
null
null
""" Type inference base on CPA. The algorithm guarantees monotonic growth of type-sets for each variable. Steps: 1. seed initial types 2. build constraints 3. propagate constraints 4. unify types Constraint propagation is precise and does not regret (no backtracing). Constraints push types forward fol...
37.375845
87
0.570831
7987b1e747b581a36c5895149849bdb173552548
48,806
py
Python
django/db/models/expressions.py
dorosch/django
5637cf1dc2a92e8b7cf20bf9de09e848017ebbc8
[ "CNRI-Python-GPL-Compatible", "BSD-3-Clause" ]
null
null
null
django/db/models/expressions.py
dorosch/django
5637cf1dc2a92e8b7cf20bf9de09e848017ebbc8
[ "CNRI-Python-GPL-Compatible", "BSD-3-Clause" ]
null
null
null
django/db/models/expressions.py
dorosch/django
5637cf1dc2a92e8b7cf20bf9de09e848017ebbc8
[ "CNRI-Python-GPL-Compatible", "BSD-3-Clause" ]
null
null
null
import copy import datetime import inspect from decimal import Decimal from django.core.exceptions import EmptyResultSet, FieldError from django.db import NotSupportedError, connection from django.db.models import fields from django.db.models.constants import LOOKUP_SEP from django.db.models.query_utils import Q from ...
35.886765
110
0.637913
7987b3464301b03241c548dc4e0bf327ced1494c
7,304
py
Python
scanpy/plotting/_docs.py
zeehio/scanpy
7fda6aeb957c6d6fea2af79f0fbc82b7952a8a3d
[ "BSD-3-Clause" ]
null
null
null
scanpy/plotting/_docs.py
zeehio/scanpy
7fda6aeb957c6d6fea2af79f0fbc82b7952a8a3d
[ "BSD-3-Clause" ]
null
null
null
scanpy/plotting/_docs.py
zeehio/scanpy
7fda6aeb957c6d6fea2af79f0fbc82b7952a8a3d
[ "BSD-3-Clause" ]
null
null
null
"""Shared docstrings for plotting function parameters. """ doc_adata_color_etc = """\ adata Annotated data matrix. color Keys for annotations of observations/cells or variables/genes, e.g., `'ann1'` or `['ann1', 'ann2']`. gene_symbols Column name in `.var` DataFrame that stores gene symbols. By defaul...
44
98
0.717552
7987b4545fd12ce4173251796dea54b6e821637a
262
py
Python
eleanor/__init__.py
martindevora/eleanor
fc18f9bf0625d8e92715b6e21b06ea2dd5724d5b
[ "MIT" ]
64
2019-01-07T10:38:25.000Z
2022-03-29T04:53:22.000Z
eleanor/__init__.py
martindevora/eleanor
fc18f9bf0625d8e92715b6e21b06ea2dd5724d5b
[ "MIT" ]
196
2018-10-29T18:48:08.000Z
2022-03-25T08:06:00.000Z
eleanor/__init__.py
martindevora/eleanor
fc18f9bf0625d8e92715b6e21b06ea2dd5724d5b
[ "MIT" ]
33
2019-02-12T19:18:10.000Z
2022-03-21T12:45:38.000Z
import os PACKAGEDIR = os.path.abspath(os.path.dirname(__file__)) from .version import __version__ from .eleanor import * from .targetdata import * from .postcard import * from .source import * from .crossmatch import * from .ffi import * from .update import *
21.833333
55
0.763359
7987b4c5dcee8db480c35f5deb7a647298ae3610
808
py
Python
posts/forms.py
kudinov-prog/music_square
ed098e83ec2d7e17d14d8243f4d448b380e802a0
[ "MIT" ]
null
null
null
posts/forms.py
kudinov-prog/music_square
ed098e83ec2d7e17d14d8243f4d448b380e802a0
[ "MIT" ]
null
null
null
posts/forms.py
kudinov-prog/music_square
ed098e83ec2d7e17d14d8243f4d448b380e802a0
[ "MIT" ]
null
null
null
from django import forms from .models import Genre, Post, Comment class PostForm(forms.ModelForm): class Meta: model = Post fields = ['genre', 'text', 'image', 'content'] labels = { 'genre': 'Группа', 'text': 'Текст', 'image': 'Картинка', 'c...
26.064516
65
0.52599
7987b52a5e690e4f742aea9864cdc3c68e5d4fed
544
py
Python
docs/source/examples/part_of_screen.py
RedFantom/python-mss
7e26de184b1e6a0800231b01451f794087a76f73
[ "MIT" ]
null
null
null
docs/source/examples/part_of_screen.py
RedFantom/python-mss
7e26de184b1e6a0800231b01451f794087a76f73
[ "MIT" ]
null
null
null
docs/source/examples/part_of_screen.py
RedFantom/python-mss
7e26de184b1e6a0800231b01451f794087a76f73
[ "MIT" ]
null
null
null
# coding: utf-8 """ This is part of the MSS Python's module. Source: https://github.com/BoboTiG/python-mss Example to capture part of the screen. """ import mss import mss.tools with mss.mss() as sct: # The screen part to capture monitor = {'top': 160, 'left': 160, 'width': 160, 'height': 135} output = ...
22.666667
70
0.663603
7987b5fb3b8ba778e2cda438a3695bf9223ff3b7
1,536
py
Python
test_ac.py
vivaan-park/go
f90004eccebf83e21f181f6c84b160b7b6a21ba6
[ "MIT" ]
null
null
null
test_ac.py
vivaan-park/go
f90004eccebf83e21f181f6c84b160b7b6a21ba6
[ "MIT" ]
null
null
null
test_ac.py
vivaan-park/go
f90004eccebf83e21f181f6c84b160b7b6a21ba6
[ "MIT" ]
null
null
null
# © 2020 지성. all rights reserved. # <llllllllll@kakao.com> # MIT License import argparse import h5py from tensorflow.keras.layers import ZeroPadding2D, Conv2D, Dense, Flatten, Input from tensorflow.keras.models import Model from dlgo import rl from dlgo import encoders def main(): parser = argparse.ArgumentPars...
25.180328
80
0.663411
7987b66b965ca6f52cddeef0998611c7c9e1dc01
2,562
py
Python
src/context.py
aws/amazon-braket-containers
44187fb4cc73e05bda3e361638d94b90f6e4c06a
[ "Apache-2.0" ]
1
2022-03-22T23:49:17.000Z
2022-03-22T23:49:17.000Z
src/context.py
aws/amazon-braket-containers
44187fb4cc73e05bda3e361638d94b90f6e4c06a
[ "Apache-2.0" ]
null
null
null
src/context.py
aws/amazon-braket-containers
44187fb4cc73e05bda3e361638d94b90f6e4c06a
[ "Apache-2.0" ]
3
2021-11-29T21:19:31.000Z
2022-01-13T16:31:06.000Z
# Copyright Amazon.com, Inc. or its affiliates. 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. A copy of # the License is located at # # http://aws.amazon.com/apache2.0/ # # or in the "license" file accompan...
30.5
83
0.614364
7987b711a7f3891907254ab6a097223c90b6e8a2
1,425
py
Python
ykdl/extractors/baidu/music.py
Fearyncess/ykdl
d12a7b4dbad936e6312e084848a19378ed47bbd7
[ "MIT" ]
1,153
2016-06-02T09:57:22.000Z
2021-05-14T13:02:35.000Z
ykdl/extractors/baidu/music.py
Fearyncess/ykdl
d12a7b4dbad936e6312e084848a19378ed47bbd7
[ "MIT" ]
515
2016-06-02T10:03:10.000Z
2021-05-14T14:37:08.000Z
ykdl/extractors/baidu/music.py
Fearyncess/ykdl
d12a7b4dbad936e6312e084848a19378ed47bbd7
[ "MIT" ]
274
2016-06-13T12:31:20.000Z
2021-04-13T02:20:04.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- from __future__ import print_function from ykdl.util.match import match1 from ykdl.util.html import get_content from ykdl.extractor import VideoExtractor from ykdl.videoinfo import VideoInfo from ykdl.compact import urlencode, compact_bytes import time import json class ...
32.386364
156
0.657544
7987b73cc7e2a4a6d469d185e6834bd8762223d6
1,552
py
Python
FWCore/MessageService/test/u30_cfg.py
akhter-towsifa/cmssw
c9dad837e419070a532a4951c397bcc68f5bd095
[ "Apache-2.0" ]
1
2020-05-27T10:52:33.000Z
2020-05-27T10:52:33.000Z
FWCore/MessageService/test/u30_cfg.py
akhter-towsifa/cmssw
c9dad837e419070a532a4951c397bcc68f5bd095
[ "Apache-2.0" ]
28
2019-08-15T15:21:11.000Z
2021-12-29T14:13:18.000Z
FWCore/MessageService/test/u30_cfg.py
akhter-towsifa/cmssw
c9dad837e419070a532a4951c397bcc68f5bd095
[ "Apache-2.0" ]
1
2020-08-18T10:29:49.000Z
2020-08-18T10:29:49.000Z
# Unit test configuration file for GroupLogStatistics(category) # Tests LoggedErrorsSummary, using modues that have normal categories # and also grouped categories. The expectation is that even grouped # categories will be separated by module on the per-event summary. import FWCore.ParameterSet.Config as cms ...
28.740741
71
0.701675
7987b78e9f1cca64b7b817dff19fd232715b7476
355
py
Python
auto/exception.py
xiaomingliao/APIAutoTest
7966115621e342dcac3feab45289358dd7b85cbd
[ "MIT" ]
1
2018-08-08T06:37:23.000Z
2018-08-08T06:37:23.000Z
auto/exception.py
awake006/auto
7966115621e342dcac3feab45289358dd7b85cbd
[ "MIT" ]
null
null
null
auto/exception.py
awake006/auto
7966115621e342dcac3feab45289358dd7b85cbd
[ "MIT" ]
null
null
null
class TestCaseNotException(Exception): pass class ParameterBuildFailedException(Exception): pass class ResponseErr(Exception): pass class ReturnFormatException(Exception): pass class CaseFailException(Exception): pass class CaseRequiredDataException(Exception): pass class ParameterFo...
13.148148
47
0.769014
7987b8584d35c3120751fc8c3ed4444569a88828
13,860
py
Python
floodlight/io/statsperform.py
MartinWohlan/floodlight
add8325725fba9169bec40726e6e949da7a8fc2f
[ "MIT" ]
null
null
null
floodlight/io/statsperform.py
MartinWohlan/floodlight
add8325725fba9169bec40726e6e949da7a8fc2f
[ "MIT" ]
null
null
null
floodlight/io/statsperform.py
MartinWohlan/floodlight
add8325725fba9169bec40726e6e949da7a8fc2f
[ "MIT" ]
null
null
null
import warnings from typing import Dict, Tuple, Union from pathlib import Path import numpy as np import pandas as pd from floodlight.core.code import Code from floodlight.core.events import Events from floodlight.core.pitch import Pitch from floodlight.core.xy import XY def _create_metadata_from_dat_df( csv_d...
32.232558
88
0.590837
7987b913df8f8a8663406b601409150f725416e6
549
py
Python
simple-backend/manage.py
gxchris95/stave
12239c189723d7325994e75fd1eb3e88364aaa32
[ "Apache-2.0" ]
null
null
null
simple-backend/manage.py
gxchris95/stave
12239c189723d7325994e75fd1eb3e88364aaa32
[ "Apache-2.0" ]
null
null
null
simple-backend/manage.py
gxchris95/stave
12239c189723d7325994e75fd1eb3e88364aaa32
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python import os import sys if __name__ == '__main__': os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'nlpviewer_backend.settings') try: from django.core.management import execute_from_command_line except ImportError as exc: raise ImportError( "Couldn't import Dj...
34.3125
81
0.692168
7987b96fe8f8daae0afe670f2154fc24bc071efb
2,557
py
Python
tests/extension/thread_/fifo_multithread/thread_fifo_multithread.py
akmaru/veriloggen
74f998139e8cf613f7703fa4cffd571bbf069bbc
[ "Apache-2.0" ]
null
null
null
tests/extension/thread_/fifo_multithread/thread_fifo_multithread.py
akmaru/veriloggen
74f998139e8cf613f7703fa4cffd571bbf069bbc
[ "Apache-2.0" ]
null
null
null
tests/extension/thread_/fifo_multithread/thread_fifo_multithread.py
akmaru/veriloggen
74f998139e8cf613f7703fa4cffd571bbf069bbc
[ "Apache-2.0" ]
null
null
null
from __future__ import absolute_import from __future__ import print_function import sys import os # the next line can be removed after installation sys.path.insert(0, os.path.dirname(os.path.dirname(os.path.dirname( os.path.dirname(os.path.dirname(os.path.abspath(__file__))))))) from veriloggen import * import ve...
23.897196
75
0.592882
7987b9f95919a27809e40de2f3f8d190d489f667
3,297
py
Python
script.module.nanscrapers/lib/nanscrapers/scraperplugins/streamthis.py
TheWardoctor/wardoctors-repo
893f646d9e27251ffc00ca5f918e4eb859a5c8f0
[ "Apache-2.0" ]
1
2019-03-05T09:38:10.000Z
2019-03-05T09:38:10.000Z
script.module.nanscrapers/lib/nanscrapers/scraperplugins/streamthis.py
TheWardoctor/wardoctors-repo
893f646d9e27251ffc00ca5f918e4eb859a5c8f0
[ "Apache-2.0" ]
null
null
null
script.module.nanscrapers/lib/nanscrapers/scraperplugins/streamthis.py
TheWardoctor/wardoctors-repo
893f646d9e27251ffc00ca5f918e4eb859a5c8f0
[ "Apache-2.0" ]
1
2021-11-05T20:48:09.000Z
2021-11-05T20:48:09.000Z
import re import requests import difflib import xbmc from ..scraper import Scraper from ..common import clean_title User_Agent = 'Mozilla/5.0 (Windows NT 6.3; WOW64; rv:56.0) Gecko/20100101 Firefox/56.0' headers = {'User-Agent':User_Agent} class streamthis(Scraper): domains = ['streamthis.tv'] name = "streamt...
44.554054
226
0.52108
7987bae05faf2af08f266319b7e68eae95d9594a
2,039
py
Python
clfpy/tests/test_gss_timed.py
CloudiFacturing/cfpy
09ad23907ba05b94797ad215e652c57e002de0bf
[ "Zlib" ]
null
null
null
clfpy/tests/test_gss_timed.py
CloudiFacturing/cfpy
09ad23907ba05b94797ad215e652c57e002de0bf
[ "Zlib" ]
3
2019-07-15T10:48:14.000Z
2020-12-04T12:44:10.000Z
clfpy/tests/test_gss_timed.py
SemWES/clfpy
09ad23907ba05b94797ad215e652c57e002de0bf
[ "Zlib" ]
3
2018-07-06T08:08:51.000Z
2019-03-20T09:12:13.000Z
"""Tests the upload time for GSS""" import os import time from contextlib import contextmanager import clfpy as cf gss_url = "https://api.hetcomp.org/gss-0.1/FileUtilities?wsdl" try: session_token = os.environ['CFG_TOKEN'] except KeyError: print("CFG_TOKEN environment variable must be defined.") exit(-1)...
27.554054
74
0.666013
7987baf007107ad30f73e5bf2228e3b25e71f098
5,471
py
Python
data/kyle/random_forest.py
isabellewei/deephealth
a226788561996e698b5f52b4b83683dcb3563ea5
[ "MIT" ]
null
null
null
data/kyle/random_forest.py
isabellewei/deephealth
a226788561996e698b5f52b4b83683dcb3563ea5
[ "MIT" ]
null
null
null
data/kyle/random_forest.py
isabellewei/deephealth
a226788561996e698b5f52b4b83683dcb3563ea5
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ Created on Fri Feb 17 22:30:04 2017 @author: kylem_000 """ def random_forest(n_estimators = [10], crit = [1], max_features = [35], max_depth = [None], min_samples_split = [2], min_samples_leaf = [1], n_trials = 1, train_size = 0.02, test_size ...
48.415929
147
0.436483
7987bb5051ca2c12bb20f84aae6be4bcfd4c3cdb
25,379
py
Python
modules/templates/default/parser.py
nursix/DRKCM
09328289ff721c416494398aa751ff99906327cb
[ "MIT" ]
3
2022-01-26T08:07:54.000Z
2022-03-21T21:53:52.000Z
modules/templates/default/parser.py
nursix/eden-asp
e49f46cb6488918f8d5a163dcd5a900cd686978c
[ "MIT" ]
null
null
null
modules/templates/default/parser.py
nursix/eden-asp
e49f46cb6488918f8d5a163dcd5a900cd686978c
[ "MIT" ]
1
2017-10-03T13:03:47.000Z
2017-10-03T13:03:47.000Z
# -*- coding: utf-8 -*- """ Message Parsing Template-specific Message Parsers are defined here. @copyright: 2012-2021 (c) Sahana Software Foundation @license: MIT Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files ...
35.248611
93
0.449427
7987bbaf519979dce332718f950963456a241893
2,401
py
Python
aries_cloudagent/wallet/util.py
ldej/aries-cloudagent-python
25b7a9c08921e67b0962c434102489884ac403b2
[ "Apache-2.0" ]
null
null
null
aries_cloudagent/wallet/util.py
ldej/aries-cloudagent-python
25b7a9c08921e67b0962c434102489884ac403b2
[ "Apache-2.0" ]
null
null
null
aries_cloudagent/wallet/util.py
ldej/aries-cloudagent-python
25b7a9c08921e67b0962c434102489884ac403b2
[ "Apache-2.0" ]
1
2020-04-30T08:22:22.000Z
2020-04-30T08:22:22.000Z
"""Wallet utility functions.""" import base58 import base64 from multicodec import add_prefix, remove_prefix def pad(val: str) -> str: """Pad base64 values if need be: JWT calls to omit trailing padding.""" padlen = 4 - len(val) % 4 return val if padlen > 2 else (val + "=" * padlen) def unpad(val: str...
30.782051
79
0.668888
7987bc3ca8a0f32e4d1a4455ac61557b8c0927ce
7,244
py
Python
basicsr/models/video_base_model.py
safduagfyuafg/VSR-Transformer
87701264f04746404c57418f135f90f7ef6c3f50
[ "Apache-2.0", "MIT" ]
196
2021-06-15T08:24:58.000Z
2022-03-30T05:47:52.000Z
basicsr/models/video_base_model.py
iyangming/VSR-Transformer
87701264f04746404c57418f135f90f7ef6c3f50
[ "Apache-2.0", "MIT" ]
19
2021-06-15T09:49:45.000Z
2022-03-08T13:19:07.000Z
basicsr/models/video_base_model.py
iyangming/VSR-Transformer
87701264f04746404c57418f135f90f7ef6c3f50
[ "Apache-2.0", "MIT" ]
22
2021-06-15T09:28:42.000Z
2022-03-21T09:29:06.000Z
import importlib import torch from collections import Counter from copy import deepcopy from os import path as osp from torch import distributed as dist from tqdm import tqdm from basicsr.models.sr_model import SRModel from basicsr.utils import get_root_logger, imwrite, tensor2img from basicsr.utils.dist_util import g...
41.394286
78
0.522777
7987bd9b8aeb3215ba9167fbc7e8189b255bb7ae
539
py
Python
web/control_panel/views.py
voostar/Jiva
1f591c77b41481f659229587e9e9501972efaa4b
[ "MIT" ]
null
null
null
web/control_panel/views.py
voostar/Jiva
1f591c77b41481f659229587e9e9501972efaa4b
[ "MIT" ]
null
null
null
web/control_panel/views.py
voostar/Jiva
1f591c77b41481f659229587e9e9501972efaa4b
[ "MIT" ]
null
null
null
from django.shortcuts import render from control_panel.motor import motor def panel(request): control = motor() action = request.GET.get('go') if action == 'up': control.right_forward() control.left_forward() elif action == 'back': control.right_backward() control.left_b...
26.95
40
0.625232
7987be5009280530a38a8bef93fd5cc17d850963
8,350
py
Python
src/lp_model.py
rossmclane/demand_projection
c43cf8e6b2e0d5edf92508223ad34849287924db
[ "MIT" ]
null
null
null
src/lp_model.py
rossmclane/demand_projection
c43cf8e6b2e0d5edf92508223ad34849287924db
[ "MIT" ]
null
null
null
src/lp_model.py
rossmclane/demand_projection
c43cf8e6b2e0d5edf92508223ad34849287924db
[ "MIT" ]
null
null
null
from __future__ import division from pyomo.environ import * import numpy as np import pandas as pd from folium import Map, CircleMarker, FeatureGroup, LayerControl import os.path class linear_program: def construct_inputs(self): # Construct the files needed for input from the demand output file ...
40.533981
125
0.585988
7987bf4aadf0c5d085f1aa00fb01b4bb97845dd8
1,357
py
Python
azure-mgmt-compute/azure/mgmt/compute/v2018_06_01/models/target_region.py
JonathanGailliez/azure-sdk-for-python
f0f051bfd27f8ea512aea6fc0c3212ee9ee0029b
[ "MIT" ]
1
2021-09-07T18:36:04.000Z
2021-09-07T18:36:04.000Z
azure-mgmt-compute/azure/mgmt/compute/v2018_06_01/models/target_region.py
JonathanGailliez/azure-sdk-for-python
f0f051bfd27f8ea512aea6fc0c3212ee9ee0029b
[ "MIT" ]
2
2019-10-02T23:37:38.000Z
2020-10-02T01:17:31.000Z
azure-mgmt-compute/azure/mgmt/compute/v2018_06_01/models/target_region.py
JonathanGailliez/azure-sdk-for-python
f0f051bfd27f8ea512aea6fc0c3212ee9ee0029b
[ "MIT" ]
1
2019-06-17T22:18:23.000Z
2019-06-17T22:18:23.000Z
# coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for # license information. # # Code generated by Microsoft (R) AutoRest Code Generator. # Changes ...
33.925
81
0.609433
7987bf67e0f46fcf64c827c8fa84a01d4dc65064
2,407
py
Python
djangoproj/recipes/models.py
nervmaster/djangoproj
77e3ad721f9f0e445ef6df807f7ff39834127de3
[ "Unlicense" ]
null
null
null
djangoproj/recipes/models.py
nervmaster/djangoproj
77e3ad721f9f0e445ef6df807f7ff39834127de3
[ "Unlicense" ]
null
null
null
djangoproj/recipes/models.py
nervmaster/djangoproj
77e3ad721f9f0e445ef6df807f7ff39834127de3
[ "Unlicense" ]
null
null
null
from django.db import models from decimal import Decimal # Create your models here. class Ingredient(models.Model): MEASURE_CHOICES = ( ('L', 'Liter'), ('G', 'Gram') ) CURRENCY_CHOICES = ( ('USD', 'US Dollars'), ('EUR', 'EURO'), ('BRL', 'BRAZILIAN REAL') ) na...
39.459016
89
0.665559
7987bfc57c044ee6e6928705b364e5a263197540
1,049
py
Python
catboost/python-package/catboost/__init__.py
mjjohns1/catboost
08719381259ab93f00b8e350433f67ae9782fef6
[ "Apache-2.0" ]
6,989
2017-07-18T06:23:18.000Z
2022-03-31T15:58:36.000Z
catboost/python-package/catboost/__init__.py
mjjohns1/catboost
08719381259ab93f00b8e350433f67ae9782fef6
[ "Apache-2.0" ]
1,978
2017-07-18T09:17:58.000Z
2022-03-31T14:28:43.000Z
catboost/python-package/catboost/__init__.py
mjjohns1/catboost
08719381259ab93f00b8e350433f67ae9782fef6
[ "Apache-2.0" ]
1,228
2017-07-18T09:03:13.000Z
2022-03-29T05:57:40.000Z
from .core import ( FeaturesData, EFstrType, EShapCalcType, EFeaturesSelectionAlgorithm, Pool, CatBoost, CatBoostClassifier, CatBoostRegressor, CatBoostRanker, CatBoostError, cv, train, sum_models, _have_equal_features, to_regressor, to_classifier, to_ranker, MultiRegressionCustomMetric, MultiRegressionCust...
43.708333
118
0.77693
7987c12a737f02b2d05720a93f957462c053190c
2,058
py
Python
ZXW_CUI.py
Origami404/ZhixueApp
6ae6164061867d68032564a76eca507f2eb6b280
[ "MIT" ]
6
2019-05-24T23:49:02.000Z
2021-01-04T10:33:52.000Z
ZXW_CUI.py
Origami404/ZhixueApp
6ae6164061867d68032564a76eca507f2eb6b280
[ "MIT" ]
null
null
null
ZXW_CUI.py
Origami404/ZhixueApp
6ae6164061867d68032564a76eca507f2eb6b280
[ "MIT" ]
1
2019-05-24T23:49:18.000Z
2019-05-24T23:49:18.000Z
from getpass import getpass import os import platform from zhixuewang import Zhixuewang from zhixuewang.exceptions import UserOrPassError def clear_screen(): os_version = platform.platform() if os_version[0] == 'W': os.system('cls') else: os.system('clear') print('Init finish...
31.661538
110
0.611273
7987c2d3fee0298d7fd17434642f63d00fc54a7c
5,608
py
Python
wexpect/wexpect_util.py
ka3bhy/wexpect
14a4279579a740ce15743db44228f3b0cf4ee8f4
[ "MIT" ]
52
2019-04-24T14:38:43.000Z
2022-03-08T22:03:11.000Z
wexpect/wexpect_util.py
ka3bhy/wexpect
14a4279579a740ce15743db44228f3b0cf4ee8f4
[ "MIT" ]
51
2019-05-13T12:15:09.000Z
2021-12-15T14:00:15.000Z
wexpect/wexpect_util.py
ka3bhy/wexpect
14a4279579a740ce15743db44228f3b0cf4ee8f4
[ "MIT" ]
20
2019-07-15T15:48:31.000Z
2022-03-27T08:55:17.000Z
"""Wexpect is a Windows variant of pexpect https://pexpect.readthedocs.io. Wexpect is a Python module for spawning child applications and controlling them automatically. wexpect util contains small functions, and classes, which are used in multiple classes. The command line argument parsers, and the Exceptions placed...
30.813187
100
0.602175
7987c3bc7b7e51142b5450e1f5747deac67c1257
4,238
py
Python
src/dataindex/mapping.py
IsmailM/myvariant.info
5af6ad68fc2c1eb539ab9e683a34bafd51ed5cb1
[ "Apache-2.0" ]
null
null
null
src/dataindex/mapping.py
IsmailM/myvariant.info
5af6ad68fc2c1eb539ab9e683a34bafd51ed5cb1
[ "Apache-2.0" ]
null
null
null
src/dataindex/mapping.py
IsmailM/myvariant.info
5af6ad68fc2c1eb539ab9e683a34bafd51ed5cb1
[ "Apache-2.0" ]
1
2018-11-17T09:16:59.000Z
2018-11-17T09:16:59.000Z
#ES mapping import importlib def get_mapping(sources=None): if sources is None: #sources = ['cadd', 'clinvar', 'cosmic2', 'dbnsfp', 'dbsnp', 'drugbank', 'emv', 'evs', 'grasp'] sources = sources or ['dbsnp', "cadd", "evs", "snpedia", "wellderly", 'dbnsfp', 'emv', 'mutd...
26
103
0.418594
7987c44a03c362a0410ee6a3e63b7d3c868dc056
743
py
Python
setup.py
whitmell/pytalk
e5a95f1b406d4fb0580392cabe3279de26ffee84
[ "Apache-2.0" ]
6
2020-01-15T02:53:40.000Z
2021-12-26T07:13:27.000Z
setup.py
whitmell/pytalk
e5a95f1b406d4fb0580392cabe3279de26ffee84
[ "Apache-2.0" ]
2
2020-04-14T21:40:22.000Z
2021-02-20T05:48:37.000Z
setup.py
whitmell/pytalk
e5a95f1b406d4fb0580392cabe3279de26ffee84
[ "Apache-2.0" ]
3
2020-05-14T21:21:21.000Z
2022-01-28T03:57:14.000Z
import subprocess from sys import platform import os from setuptools import setup with open('requirements.txt') as f: required = f.read().splitlines() with open("README.md","r") as f: long_description = f.read() version = "0.3.4" setup(name='doctalk', version=version, description='doctalk: Dialogue agent ...
26.535714
85
0.724092
7987c5cbe539f09a7ea002692a75290a4d3eb7ee
533
py
Python
antispam/honeypot/widgets.py
cjh79/django-antispam
a9026d30650e72323fd31384e9a40b9dc6eb4323
[ "MIT" ]
48
2017-06-13T13:51:06.000Z
2021-07-17T11:24:27.000Z
antispam/honeypot/widgets.py
cjh79/django-antispam
a9026d30650e72323fd31384e9a40b9dc6eb4323
[ "MIT" ]
7
2017-08-17T18:27:12.000Z
2020-07-27T10:56:09.000Z
antispam/honeypot/widgets.py
cjh79/django-antispam
a9026d30650e72323fd31384e9a40b9dc6eb4323
[ "MIT" ]
8
2017-06-28T07:38:34.000Z
2020-04-22T15:41:42.000Z
from django import forms from django.utils.safestring import mark_safe class HoneypotInput(forms.TextInput): """ Default honeypot field widget. Display text input in hidden div. """ @property def is_hidden(self): return True def render(self, *args, **kwargs): """ ...
22.208333
67
0.587242
7987c6b01c37fc45876d3c815ae2e00a1ba119f9
9,642
py
Python
3.7.0/lldb-3.7.0.src/utils/test/lldb-disasm.py
androm3da/clang_sles
2ba6d0711546ad681883c42dfb8661b842806695
[ "MIT" ]
3
2016-02-10T14:18:40.000Z
2018-02-05T03:15:56.000Z
3.7.0/lldb-3.7.0.src/utils/test/lldb-disasm.py
androm3da/clang_sles
2ba6d0711546ad681883c42dfb8661b842806695
[ "MIT" ]
1
2016-02-10T15:40:03.000Z
2016-02-10T15:40:03.000Z
3.7.0/lldb-3.7.0.src/utils/test/lldb-disasm.py
androm3da/clang_sles
2ba6d0711546ad681883c42dfb8661b842806695
[ "MIT" ]
null
null
null
#!/usr/bin/env python """ Run lldb to disassemble all the available functions for an executable image. """ import os import re import sys from optparse import OptionParser def setupSysPath(): """ Add LLDB.framework/Resources/Python and the test dir to the sys.path. """ # Get the directory containing...
39.516393
117
0.592719
7987c6ee1cf0c4171bb0c95a0d228e2bf5262297
145
py
Python
Apps/dash/apps.py
arthur-asilva/rc_plataforma
7e6f7eb7f9a3b9089c02db98518b60d8e481ce4c
[ "BSD-2-Clause" ]
null
null
null
Apps/dash/apps.py
arthur-asilva/rc_plataforma
7e6f7eb7f9a3b9089c02db98518b60d8e481ce4c
[ "BSD-2-Clause" ]
null
null
null
Apps/dash/apps.py
arthur-asilva/rc_plataforma
7e6f7eb7f9a3b9089c02db98518b60d8e481ce4c
[ "BSD-2-Clause" ]
null
null
null
from django.apps import AppConfig class DashConfig(AppConfig): default_auto_field = 'django.db.models.BigAutoField' name = 'Apps.dash'
20.714286
56
0.751724
7987c763bd1171cd91902dc4c2374e2f1c65113b
101
py
Python
helloworld.py
Drixitel/astr-119
b75d288f5b451c5bcfabb0d3b4cd71146de57f64
[ "MIT" ]
null
null
null
helloworld.py
Drixitel/astr-119
b75d288f5b451c5bcfabb0d3b4cd71146de57f64
[ "MIT" ]
3
2020-10-01T17:50:40.000Z
2020-10-05T20:20:55.000Z
helloworld.py
Drixitel/astr-119
b75d288f5b451c5bcfabb0d3b4cd71146de57f64
[ "MIT" ]
null
null
null
#!/user/bin/env python3 #this program will print hello world to the screen print("Hello World!")
25.25
52
0.722772
7987c7ba98492143b79a415d2acd569d254f2e33
2,724
py
Python
pyzoo/zoo/examples/tensorflow/tfpark/tf_optimizer/evaluate_mnist_keras.py
SteNicholas/analytics-zoo
2967e74427855cb0f3d60b5c298343976bb0d23e
[ "Apache-2.0" ]
1
2020-08-10T03:08:41.000Z
2020-08-10T03:08:41.000Z
pyzoo/zoo/examples/tensorflow/tfpark/tf_optimizer/evaluate_mnist_keras.py
SteNicholas/analytics-zoo
2967e74427855cb0f3d60b5c298343976bb0d23e
[ "Apache-2.0" ]
null
null
null
pyzoo/zoo/examples/tensorflow/tfpark/tf_optimizer/evaluate_mnist_keras.py
SteNicholas/analytics-zoo
2967e74427855cb0f3d60b5c298343976bb0d23e
[ "Apache-2.0" ]
2
2020-08-03T06:18:44.000Z
2020-08-06T07:17:55.000Z
# # Copyright 2018 Analytics Zoo 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 or agreed to...
32.819277
100
0.667401
7987c8370f89b3f25d7bcac834f6da660fa06b2f
2,280
py
Python
scrap.py
Mohamed-Jeafer/Scraping
6c074b59b23e66f4b42542ac7acb12d1b8ef41c1
[ "MIT" ]
null
null
null
scrap.py
Mohamed-Jeafer/Scraping
6c074b59b23e66f4b42542ac7acb12d1b8ef41c1
[ "MIT" ]
null
null
null
scrap.py
Mohamed-Jeafer/Scraping
6c074b59b23e66f4b42542ac7acb12d1b8ef41c1
[ "MIT" ]
null
null
null
import requests from bs4 import BeautifulSoup import pprint import pymysql # This is a program that will scrap hacker news website for the most important news and sort them # Database Configuration REGION = 'us-east-1' endpoint = 'webscraping-db.ch1o2xbrlqqq.us-east-1.rds.amazonaws.com' username = 'admin' password = ...
34.545455
107
0.654825
7987c8f4fa9c540aec245de48319ddf44fe62e4a
2,691
py
Python
openGaussBase/testcase/GUC/RESOURCE/Opengauss_Function_Guc_Resource_Case0037.py
opengauss-mirror/Yat
aef107a8304b94e5d99b4f1f36eb46755eb8919e
[ "MulanPSL-1.0" ]
null
null
null
openGaussBase/testcase/GUC/RESOURCE/Opengauss_Function_Guc_Resource_Case0037.py
opengauss-mirror/Yat
aef107a8304b94e5d99b4f1f36eb46755eb8919e
[ "MulanPSL-1.0" ]
null
null
null
openGaussBase/testcase/GUC/RESOURCE/Opengauss_Function_Guc_Resource_Case0037.py
opengauss-mirror/Yat
aef107a8304b94e5d99b4f1f36eb46755eb8919e
[ "MulanPSL-1.0" ]
null
null
null
""" Copyright (c) 2022 Huawei Technologies Co.,Ltd. openGauss is licensed under Mulan PSL v2. You can use this software according to the terms and conditions of the Mulan PSL v2. You may obtain a copy of Mulan PSL v2 at: http://license.coscl.org.cn/MulanPSL2 THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, W...
36.863014
118
0.648086
7987c92d3f738ccf587bee92cfd74980f70818da
13,800
py
Python
qiskit/assembler/assemble_schedules.py
kevinsung/qiskit-terra
573198bdc55eaf4ad0691d441ae41c874f46313d
[ "Apache-2.0" ]
92
2018-06-05T11:18:38.000Z
2018-07-01T23:50:44.000Z
qiskit/assembler/assemble_schedules.py
QISKit/qiskit-core
7391168c8944a5d901e0fdf02fb8955e82bc2ca1
[ "Apache-2.0" ]
107
2018-06-05T08:41:19.000Z
2018-07-02T12:10:53.000Z
qiskit/assembler/assemble_schedules.py
kevinsung/qiskit-terra
573198bdc55eaf4ad0691d441ae41c874f46313d
[ "Apache-2.0" ]
39
2018-06-05T09:55:56.000Z
2018-07-02T08:47:35.000Z
# This code is part of Qiskit. # # (C) Copyright IBM 2017, 2019. # # This code is licensed under the Apache License, Version 2.0. You may # obtain a copy of this license in the LICENSE.txt file in the root directory # of this source tree or at http://www.apache.org/licenses/LICENSE-2.0. # # Any modifications or derivat...
40.949555
100
0.666957
7987cb50bb56aa0bd7dcf6f4641e508496e6b3e4
403
py
Python
nandiasgarden/nandiasgarden/wsgi.py
ratansingh98/Learn_Django
2eed2858dd735e43fb2c8f9b6b1064ba95e95127
[ "MIT" ]
null
null
null
nandiasgarden/nandiasgarden/wsgi.py
ratansingh98/Learn_Django
2eed2858dd735e43fb2c8f9b6b1064ba95e95127
[ "MIT" ]
null
null
null
nandiasgarden/nandiasgarden/wsgi.py
ratansingh98/Learn_Django
2eed2858dd735e43fb2c8f9b6b1064ba95e95127
[ "MIT" ]
null
null
null
""" WSGI config for nandiasgarden project. It exposes the WSGI callable as a module-level variable named ``application``. For more information on this file, see https://docs.djangoproject.com/en/3.1/howto/deployment/wsgi/ """ import os from django.core.wsgi import get_wsgi_application os.environ.setdefault('DJANGO...
23.705882
78
0.791563
7987cc81486d50a8db0722b4306cc205b9301edf
605
py
Python
mmaction/utils/__init__.py
rlleshi/mmaction2
6993693f178b1a59e5eb07f1a3db484d5e5de61a
[ "Apache-2.0" ]
1,870
2020-07-11T09:33:46.000Z
2022-03-31T13:21:36.000Z
mmaction/utils/__init__.py
rlleshi/mmaction2
6993693f178b1a59e5eb07f1a3db484d5e5de61a
[ "Apache-2.0" ]
1,285
2020-07-11T11:18:57.000Z
2022-03-31T08:41:17.000Z
mmaction/utils/__init__.py
rlleshi/mmaction2
6993693f178b1a59e5eb07f1a3db484d5e5de61a
[ "Apache-2.0" ]
557
2020-07-11T09:51:57.000Z
2022-03-31T13:21:35.000Z
# Copyright (c) OpenMMLab. All rights reserved. from .collect_env import collect_env from .decorators import import_module_error_class, import_module_error_func from .gradcam_utils import GradCAM from .logger import get_root_logger from .misc import get_random_string, get_shm_dir, get_thread_id from .module_hooks impor...
40.333333
75
0.814876
7987cd3754296b04437984410bf3cbd47c1b4e71
7,575
py
Python
cloudmesh/secgroup/Secgroup.py
aporlowski/cloudmesh-cloud
247479361300f97bbb8b7b1f4c99308358e9e2b2
[ "Apache-2.0" ]
5
2019-05-06T01:27:55.000Z
2020-03-12T09:50:08.000Z
cloudmesh/secgroup/Secgroup.py
aporlowski/cloudmesh-cloud
247479361300f97bbb8b7b1f4c99308358e9e2b2
[ "Apache-2.0" ]
137
2019-04-06T12:35:29.000Z
2020-05-05T10:02:36.000Z
cloudmesh/secgroup/Secgroup.py
aporlowski/cloudmesh-cloud
247479361300f97bbb8b7b1f4c99308358e9e2b2
[ "Apache-2.0" ]
27
2019-04-05T22:03:41.000Z
2021-03-05T00:05:00.000Z
from cloudmesh.common.parameter import Parameter from cloudmesh.mongo.CmDatabase import CmDatabase from cloudmesh.mongo.DataBaseDecorator import DatabaseUpdate # # use CmDatabase for interacting with the db, you will find also a simple find # function there. # class SecgroupExamples: def __init__(self): ...
26.12069
78
0.443564
7987cd733c755ba3e1c68446c72ea8f0502c9d3e
1,426
py
Python
examples/keras_sequential_classification_model.py
openml/openml-keras
e72829bbb95b16117d63bba6543877f5afc89712
[ "BSD-3-Clause" ]
null
null
null
examples/keras_sequential_classification_model.py
openml/openml-keras
e72829bbb95b16117d63bba6543877f5afc89712
[ "BSD-3-Clause" ]
12
2020-01-28T23:09:20.000Z
2022-02-10T00:36:46.000Z
examples/keras_sequential_classification_model.py
openml/openml-keras
e72829bbb95b16117d63bba6543877f5afc89712
[ "BSD-3-Clause" ]
1
2020-05-28T00:20:10.000Z
2020-05-28T00:20:10.000Z
""" Keras sequential classification example ================== An example of a sequential network used as an OpenML flow. """ import keras import openml import openml_keras ############################################################################ # Define a sequential Keras model. model = keras.models.Sequential(...
36.564103
76
0.532258
7987cd917743ce67be11ef8adb4253b81efc7baa
739
py
Python
orchestra/utils/tests/test_load_json.py
code-review-doctor/orchestra
1ba58d26c508e89d2050dc9b0c8439eb1eadd014
[ "Apache-2.0" ]
444
2016-07-25T05:24:30.000Z
2022-02-21T08:12:29.000Z
orchestra/utils/tests/test_load_json.py
code-review-doctor/orchestra
1ba58d26c508e89d2050dc9b0c8439eb1eadd014
[ "Apache-2.0" ]
395
2016-07-26T20:49:59.000Z
2022-03-15T20:58:45.000Z
orchestra/utils/tests/test_load_json.py
code-review-doctor/orchestra
1ba58d26c508e89d2050dc9b0c8439eb1eadd014
[ "Apache-2.0" ]
63
2016-07-26T04:10:21.000Z
2022-03-29T03:32:19.000Z
import json from orchestra.tests.helpers import OrchestraTestCase from orchestra.utils.load_json import load_encoded_json class LoadEncodedJsonTest(OrchestraTestCase): def test_non_json_string(self): encoded_data = '' result = load_encoded_json(encoded_data) expected = {} self.as...
28.423077
55
0.691475
7987cdea2a71d18378c5a7aa8d4ab41518203299
1,051
py
Python
14/part2/main.py
orrinjelo/AdventOfCode2018
7455737bebfb56d7912c8f8760a55ea0a5b240a3
[ "MIT" ]
1
2020-12-14T21:05:28.000Z
2020-12-14T21:05:28.000Z
14/part2/main.py
orrinjelo/AdventOfCode2018
7455737bebfb56d7912c8f8760a55ea0a5b240a3
[ "MIT" ]
null
null
null
14/part2/main.py
orrinjelo/AdventOfCode2018
7455737bebfb56d7912c8f8760a55ea0a5b240a3
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 import os, sys import numpy as np from pprint import pprint sys.path.append(os.path.join(os.path.dirname(os.path.realpath(__file__)), '..', '..')) from utils.timeit import timeit if __name__ == '__main__': # Parse args, parse number list if len(sys.argv) <= 1: sys.exit('No ent...
29.194444
86
0.614653
7987cf10dce32278185fd5b2152064caf843043c
2,849
py
Python
tests/doc_examples_1.py
IPVS-AS/pusion
58ef24b602f611192430f6005ecf5305f878f412
[ "MIT" ]
5
2021-07-24T16:05:12.000Z
2022-01-21T15:06:03.000Z
tests/doc_examples_1.py
IPVS-AS/pusion
58ef24b602f611192430f6005ecf5305f878f412
[ "MIT" ]
null
null
null
tests/doc_examples_1.py
IPVS-AS/pusion
58ef24b602f611192430f6005ecf5305f878f412
[ "MIT" ]
2
2021-07-24T16:05:14.000Z
2022-03-25T21:24:40.000Z
import pusion as p import sklearn # Create an ensemble of 3 neural networks with different hyperparameters classifiers = [ sklearn.neural_network.MLPClassifier(hidden_layer_sizes=(100,)), sklearn.neural_network.MLPClassifier(hidden_layer_sizes=(100, 50)), sklearn.neural_network.MLPClassifier(hidden_layer...
33.127907
120
0.686557
7987cf47e88e4084a712f129848ddcb54ced56dd
978
py
Python
nomadgram/users/migrations/0002_auto_20180107_0257.py
ayong8/ex-nomadgram
fe1575204c88ff9a46fd7f4651655723646e11c1
[ "MIT" ]
null
null
null
nomadgram/users/migrations/0002_auto_20180107_0257.py
ayong8/ex-nomadgram
fe1575204c88ff9a46fd7f4651655723646e11c1
[ "MIT" ]
17
2020-06-05T16:58:32.000Z
2022-03-11T23:21:38.000Z
nomadgram/users/migrations/0002_auto_20180107_0257.py
ayong8/ex-nomadgram
fe1575204c88ff9a46fd7f4651655723646e11c1
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # Generated by Django 1.10.8 on 2018-01-07 02:57 from __future__ import unicode_literals from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('users', '0001_initial'), ] operations = [ migrations.AddField( ...
27.166667
147
0.551125
7987d0d98bdd62336feef36f335daee2183d8341
6,253
py
Python
code/keys.py
RonWalker22/ron_talon
72b09fdf1cd7fd179bac2109cb2cb3240620b570
[ "MIT" ]
null
null
null
code/keys.py
RonWalker22/ron_talon
72b09fdf1cd7fd179bac2109cb2cb3240620b570
[ "MIT" ]
null
null
null
code/keys.py
RonWalker22/ron_talon
72b09fdf1cd7fd179bac2109cb2cb3240620b570
[ "MIT" ]
null
null
null
from typing import Set from talon import Module, Context, actions, app import sys default_alphabet = "air bat cap drum each fine gust harp ice jury crunch look made near odd pit quench red sun trap urge vest weapon plex yank zip".split( " " ) letters_string = "abcdefghijklmnopqrstuvwxyz" default_digits = "zero o...
25.73251
154
0.609148
7987d18d3230029914ace8257b130d59242b4617
358
py
Python
application/src/database_manager/helpers.py
eyardley/CSC648-SoftwareEngineering-Snapster
6dbe1cf9b34de6d6dbc6be75db3a34583f67c01a
[ "MIT" ]
null
null
null
application/src/database_manager/helpers.py
eyardley/CSC648-SoftwareEngineering-Snapster
6dbe1cf9b34de6d6dbc6be75db3a34583f67c01a
[ "MIT" ]
3
2021-06-08T21:39:12.000Z
2022-01-13T02:46:20.000Z
application/src/database_manager/helpers.py
eyardley/CSC648-SoftwareEngineering-Snapster
6dbe1cf9b34de6d6dbc6be75db3a34583f67c01a
[ "MIT" ]
1
2021-05-09T21:01:28.000Z
2021-05-09T21:01:28.000Z
def get_media_type(conn, id): conn.query("SELECT `media_type` FROM media_types WHERE `media_type_id` = %s", (id,)) data = conn.fetchall() conn.commit() return data def get_category_type(conn, id): conn.query("SELECT `category` FROM categories WHERE `category_id` = %s", (id,)) data = conn.fetcha...
32.545455
88
0.664804
7987d1f2ba49c02d5e1aed7191f934f21ea729d0
871
py
Python
weis/aeroelasticse/test/test_IECWind.py
ebranlard/WEIS
59851a0c3b2e801bd413ca4887ab4b78e58f928a
[ "Apache-2.0" ]
26
2020-08-25T16:16:21.000Z
2022-03-10T08:23:57.000Z
weis/aeroelasticse/test/test_IECWind.py
ebranlard/WEIS
59851a0c3b2e801bd413ca4887ab4b78e58f928a
[ "Apache-2.0" ]
90
2020-08-24T23:02:47.000Z
2022-03-29T13:48:15.000Z
weis/aeroelasticse/test/test_IECWind.py
ebranlard/WEIS
59851a0c3b2e801bd413ca4887ab4b78e58f928a
[ "Apache-2.0" ]
25
2020-08-24T19:28:24.000Z
2022-01-27T21:17:37.000Z
import unittest from openmdao.utils.assert_utils import assert_near_equal from weis.aeroelasticse.pyIECWind import pyIECWind_extreme class TestIECWind(unittest.TestCase): def setUp(self): self.extreme_wind = pyIECWind_extreme() self.extreme_wind.setup() def test_NTM(self): ...
28.096774
70
0.660161
7987d207f5772c799a8fb815c829e1ee26377ae5
7,001
py
Python
misc/ng_php_conf_hooks.py
power-electro/Nginx-Mirror-OF-Elasa-Communiuty
2136093bf5ffb4baf7d9e4c7a7b9dfbb972310f3
[ "MIT" ]
null
null
null
misc/ng_php_conf_hooks.py
power-electro/Nginx-Mirror-OF-Elasa-Communiuty
2136093bf5ffb4baf7d9e4c7a7b9dfbb972310f3
[ "MIT" ]
15
2021-03-18T20:25:13.000Z
2022-03-02T14:54:33.000Z
misc/ng_php_conf_hooks.py
power-electro/Nginx-Mirror-OF-Elasa-Communiuty
2136093bf5ffb4baf7d9e4c7a7b9dfbb972310f3
[ "MIT" ]
1
2017-03-04T16:48:55.000Z
2017-03-04T16:48:55.000Z
import os, re, shutil # # try: internalIp = os.environ['OPENSHIFT_DIY_IP'] except: try: from subprocess import check_output import subprocess # ip = check_output(["dig", "+short", "@resolver1.opendns.com", # "myip.opendns.com"]).decode().strip() st = ""...
38.467033
186
0.662191
7987d2a251dc9f01c1b1629fe7d1b10c7e638bc5
2,350
py
Python
turf/point_grid/_point_grid.py
diogomatoschaves/pyturf
966e0c37389f7ad398431498f16e7cc9b510cd56
[ "MIT" ]
5
2020-04-12T15:15:51.000Z
2020-04-20T14:40:53.000Z
turf/point_grid/_point_grid.py
diogomatoschaves/pyturf
966e0c37389f7ad398431498f16e7cc9b510cd56
[ "MIT" ]
36
2020-04-09T16:49:05.000Z
2020-06-01T14:39:37.000Z
turf/point_grid/_point_grid.py
diogomatoschaves/pyturf
966e0c37389f7ad398431498f16e7cc9b510cd56
[ "MIT" ]
null
null
null
from typing import Dict, List, Union from turf.distance import distance from turf.bbox import bbox from turf.boolean_within import boolean_within from turf.helpers import feature_collection, point, FeatureCollection def point_grid( bbox: List[float], n_cells: Union[int, float], options: Dict = {}, ) -> F...
33.571429
85
0.637021
7987d3950d740fa1ba2724dabe6aa972e9aafc7a
17,944
py
Python
sshjail.py
nerzhul/ansible-sshjail
e712c537ecdfc7a660f222fbac4172dd715fc130
[ "MIT" ]
62
2015-05-08T21:18:31.000Z
2021-11-07T15:25:45.000Z
sshjail.py
nerzhul/ansible-sshjail
e712c537ecdfc7a660f222fbac4172dd715fc130
[ "MIT" ]
37
2015-07-08T01:56:34.000Z
2022-03-26T22:40:44.000Z
sshjail.py
nerzhul/ansible-sshjail
e712c537ecdfc7a660f222fbac4172dd715fc130
[ "MIT" ]
36
2015-06-17T23:34:52.000Z
2022-03-26T20:50:35.000Z
# Copyright (c) 2015-2018, Austin Hyde (@austinhyde) from __future__ import (absolute_import, division, print_function) import os import pipes from ansible.errors import AnsibleError from ansible.plugins.connection.ssh import Connection as SSHConnection from ansible.module_utils._text import to_text from ansible.plug...
36.921811
143
0.578188
7987d45c6257cfe23b309944ab8912452b578afd
701
py
Python
setup.py
nvinard/erzsol3PythonTools
4018f71b4c2153fa8fa374ce5e520f9936bf502a
[ "MIT" ]
null
null
null
setup.py
nvinard/erzsol3PythonTools
4018f71b4c2153fa8fa374ce5e520f9936bf502a
[ "MIT" ]
null
null
null
setup.py
nvinard/erzsol3PythonTools
4018f71b4c2153fa8fa374ce5e520f9936bf502a
[ "MIT" ]
1
2021-01-11T08:10:49.000Z
2021-01-11T08:10:49.000Z
import setuptools with open("README.md", "r") as fh: long_description = fh.read() setuptools.setup( name="erzsol3Py", version="0.1", author="Nicolas Vinard", author_email="vinard.nicolas@gmail.com", description="Some functions to create erzsol3 input files, read output files and a little more....
30.478261
101
0.67475
7987d5697baf8cc1b16f4dda03be54fc4e9e9113
5,781
py
Python
imaginaire/third_party/flow_net/flownet2/utils/flow_utils.py
MichaelDoron/imaginaire
5f95b988453d391e972fa528152121d0dd3cb51a
[ "RSA-MD" ]
1
2021-11-17T08:45:58.000Z
2021-11-17T08:45:58.000Z
imaginaire/third_party/flow_net/flownet2/utils/flow_utils.py
jrfrantz/imaginaire
7c650977b29ea2dd12557d1fef447df9809db737
[ "RSA-MD" ]
null
null
null
imaginaire/third_party/flow_net/flownet2/utils/flow_utils.py
jrfrantz/imaginaire
7c650977b29ea2dd12557d1fef447df9809db737
[ "RSA-MD" ]
1
2021-06-09T01:28:59.000Z
2021-06-09T01:28:59.000Z
# Copyright (C) 2020 NVIDIA Corporation. All rights reserved. # # This work is made available under the Nvidia Source Code License-NC. # To view a copy of this license, check out LICENSE.md import numpy as np import matplotlib.pyplot as plt import os.path TAG_CHAR = np.array([202021.25], np.float32) def readFlow(fn...
26.277273
77
0.561668
7987d599418368e94dc1a6eec18cf31303ae2b67
681
py
Python
examples/triangle/v1/triangle.py
ramalho/modernoopy
07f53e0bb02673293633b3ad764ec20833bb3e76
[ "BSD-3-Clause" ]
13
2018-10-27T14:54:31.000Z
2019-10-13T09:52:04.000Z
examples/triangle/v1/triangle.py
ramalho/modernoopy
07f53e0bb02673293633b3ad764ec20833bb3e76
[ "BSD-3-Clause" ]
null
null
null
examples/triangle/v1/triangle.py
ramalho/modernoopy
07f53e0bb02673293633b3ad764ec20833bb3e76
[ "BSD-3-Clause" ]
2
2019-02-15T22:32:57.000Z
2019-03-18T11:16:28.000Z
""" Simple class to represent a right-angled triangle. >>> t = RightTriangle(3, 4) >>> t.a 3.0 >>> t.hypot() 5.0 >>> t.describe() Right triangle with sides 5.0, 4.0, and 3.0. >>> t # doctest:+ELLIPSIS <triangle.RightTriangle object at 0x...> """ import math class RightTriangle...
20.636364
57
0.562408
7987d646315f357df9f2de884e298475d927a2e8
1,721
py
Python
wandb/vendor/pygments/plugin.py
dreamflasher/client
c8267f1c6b8b6970172d622bb8fbf7cc773d78b2
[ "MIT" ]
3,968
2017-08-23T21:27:19.000Z
2022-03-31T22:00:19.000Z
wandb/vendor/pygments/plugin.py
dreamflasher/client
c8267f1c6b8b6970172d622bb8fbf7cc773d78b2
[ "MIT" ]
2,725
2017-04-17T00:29:15.000Z
2022-03-31T21:01:53.000Z
wandb/vendor/pygments/plugin.py
dreamflasher/client
c8267f1c6b8b6970172d622bb8fbf7cc773d78b2
[ "MIT" ]
351
2018-04-08T19:39:34.000Z
2022-03-30T19:38:08.000Z
# -*- coding: utf-8 -*- """ pygments.plugin ~~~~~~~~~~~~~~~ Pygments setuptools plugin interface. The methods defined here also work if setuptools isn't installed but they just return nothing. lexer plugins:: [pygments.lexers] yourlexer = yourmodule:YourLexer formatter pl...
24.942029
70
0.704242
7987d6a47bd60cc2d172f00c84e96932e49adca8
3,067
py
Python
bin/fix_requests/fix_request_4004.py
PRIMAVERA-H2020/pre-proc
0c47636cbe32a13a9544f3e5ce9f4c778dc55078
[ "BSD-3-Clause" ]
null
null
null
bin/fix_requests/fix_request_4004.py
PRIMAVERA-H2020/pre-proc
0c47636cbe32a13a9544f3e5ce9f4c778dc55078
[ "BSD-3-Clause" ]
null
null
null
bin/fix_requests/fix_request_4004.py
PRIMAVERA-H2020/pre-proc
0c47636cbe32a13a9544f3e5ce9f4c778dc55078
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python """ fix_request_4004.py EC-Earth-Consortium.*.Prim*.selected Update the further_info_url from CMIP6 to PRIMAVERA in those files that need this fix. """ import argparse import logging.config import sys import django django.setup() from pre_proc_app.models import DataRequest, FileFix __version...
25.347107
80
0.571568
7987d6aed4a488e29d82f8f2f9de940fa0354c13
18,698
py
Python
crowdin_api/api_resources/source_files/tests/test_source_files_resources.py
dpaskov/crowdin-api-client-python
e3be5f5ba567ffd97fdeb3f11b54f81ccb74ad98
[ "MIT" ]
13
2021-03-02T02:31:57.000Z
2022-03-05T20:03:38.000Z
crowdin_api/api_resources/source_files/tests/test_source_files_resources.py
dpaskov/crowdin-api-client-python
e3be5f5ba567ffd97fdeb3f11b54f81ccb74ad98
[ "MIT" ]
17
2021-03-23T09:10:30.000Z
2022-03-17T10:05:25.000Z
crowdin_api/api_resources/source_files/tests/test_source_files_resources.py
dpaskov/crowdin-api-client-python
e3be5f5ba567ffd97fdeb3f11b54f81ccb74ad98
[ "MIT" ]
6
2021-04-22T07:54:46.000Z
2021-12-30T19:38:44.000Z
from unittest import mock import pytest from crowdin_api.api_resources.enums import PatchOperation from crowdin_api.api_resources.source_files.enums import ( BranchPatchPath, DirectoryPatchPath, FilePatchPath, FileType, Priority, ) from crowdin_api.api_resources.source_files.resource import SourceF...
35.819923
97
0.541502
7987d77c6e2e1ca23892aa38aa037663e62566a4
5,862
py
Python
yt_dlp/extractor/paramountplus.py
nxtreaming/yt-dlp
385ffb467b2285e85a2a5495b90314ba1f8e0700
[ "Unlicense" ]
11
2022-01-06T22:09:50.000Z
2022-03-12T22:26:22.000Z
yt_dlp/extractor/paramountplus.py
nxtreaming/yt-dlp
385ffb467b2285e85a2a5495b90314ba1f8e0700
[ "Unlicense" ]
4
2022-02-25T08:20:18.000Z
2022-03-17T16:16:20.000Z
yt_dlp/extractor/paramountplus.py
nxtreaming/yt-dlp
385ffb467b2285e85a2a5495b90314ba1f8e0700
[ "Unlicense" ]
3
2022-02-19T08:59:13.000Z
2022-03-06T16:11:21.000Z
import itertools from .common import InfoExtractor from .cbs import CBSBaseIE from ..utils import ( int_or_none, url_or_none, ) class ParamountPlusIE(CBSBaseIE): _VALID_URL = r'''(?x) (?: paramountplus:| https?://(?:www\.)?(?: paramountplus\.com/(?:shows|mo...
38.565789
169
0.56636
7987d81e31730951b1247878e65dc13976fecdc7
3,479
py
Python
data_structures/linked_list/unordered_list.py
gsingh79/python-ds-algorithms
236bda4bb4e57d20ce2d6310efe8cdcd8d3367fc
[ "Apache-2.0" ]
1
2022-01-19T01:28:08.000Z
2022-01-19T01:28:08.000Z
data_structures/linked_list/unordered_list.py
gaurav-singh/python-ds-algorithms
236bda4bb4e57d20ce2d6310efe8cdcd8d3367fc
[ "Apache-2.0" ]
null
null
null
data_structures/linked_list/unordered_list.py
gaurav-singh/python-ds-algorithms
236bda4bb4e57d20ce2d6310efe8cdcd8d3367fc
[ "Apache-2.0" ]
1
2022-01-03T04:03:27.000Z
2022-01-03T04:03:27.000Z
from data_structures.linked_list.node import Node from data_structures.linked_list.base_list import BaseList class UnorderedList(BaseList): def __init__(self): super().__init__() def add(self, item): # add item to first item (i.e. head) # reset head to point to the new first item in t...
25.394161
78
0.561081
7987d8e5beb082b56bb570a7787624ff6aad7972
1,336
py
Python
setup.py
HtmlMak/django-streamfield
d40a3128e531386b1bccbaeb7d6b7529a9650fd8
[ "BSD-2-Clause" ]
null
null
null
setup.py
HtmlMak/django-streamfield
d40a3128e531386b1bccbaeb7d6b7529a9650fd8
[ "BSD-2-Clause" ]
null
null
null
setup.py
HtmlMak/django-streamfield
d40a3128e531386b1bccbaeb7d6b7529a9650fd8
[ "BSD-2-Clause" ]
1
2021-03-19T16:13:52.000Z
2021-03-19T16:13:52.000Z
import setuptools with open("README.md", "r") as fh: long_description = fh.read() setuptools.setup( name="django-streamfield", version="1.3.8", author="Yury Lapshinov", author_email="y.raagin@gmail.com", description="StreamField for native Django Admin or with Grappelli", long_description=...
36.108108
72
0.615269
7987da80631c714b56dc0b0f3567a7759bdbc025
3,109
py
Python
flask_melodramatiq/__init__.py
gjeusel/flask_melodramatiq
7979bd9be01f0dca7dbc945b1949c0dc8ab0b37a
[ "MIT" ]
null
null
null
flask_melodramatiq/__init__.py
gjeusel/flask_melodramatiq
7979bd9be01f0dca7dbc945b1949c0dc8ab0b37a
[ "MIT" ]
null
null
null
flask_melodramatiq/__init__.py
gjeusel/flask_melodramatiq
7979bd9be01f0dca7dbc945b1949c0dc8ab0b37a
[ "MIT" ]
null
null
null
import importlib import functools import dramatiq from flask_melodramatiq.lazy_broker import ( LAZY_BROKER_DOCSTRING_TEMPLATE, register_broker_class, LazyActor, LazyBrokerMixin, Broker, ) from flask_melodramatiq.rabbitmq import RabbitmqBrokerMixin __all__ = ['create_broker_class', 'Broker', 'Rabbit...
32.051546
101
0.719846
7987dbaa2ac6502d734db9d64ee63349f14576a5
58,854
py
Python
pyapprox/tests/test_gaussian_process.py
samtx/pyapprox
c926d910e30fbcfed7d0621175d3b0268d59f852
[ "MIT" ]
null
null
null
pyapprox/tests/test_gaussian_process.py
samtx/pyapprox
c926d910e30fbcfed7d0621175d3b0268d59f852
[ "MIT" ]
null
null
null
pyapprox/tests/test_gaussian_process.py
samtx/pyapprox
c926d910e30fbcfed7d0621175d3b0268d59f852
[ "MIT" ]
null
null
null
import unittest from pyapprox.gaussian_process import * from sklearn.gaussian_process.kernels import Matern, WhiteKernel, RBF import pyapprox as pya from scipy import stats from scipy.linalg import solve_triangular from scipy.spatial.distance import cdist import copy import time def compute_mean_and_variance_of_gauss...
41.918803
160
0.6213
7987dc7cbc046daac71e9c35dbb8efade4ca5fd1
3,491
py
Python
pettingzoo/mpe/scenarios/simple_speaker_listener.py
RedTachyon/PettingZoo
0c4be0ca0de5a11bf8eff3f7b87976edcacd093e
[ "Apache-2.0" ]
846
2020-05-12T05:55:00.000Z
2021-10-08T19:38:40.000Z
pettingzoo/mpe/scenarios/simple_speaker_listener.py
RedTachyon/PettingZoo
0c4be0ca0de5a11bf8eff3f7b87976edcacd093e
[ "Apache-2.0" ]
237
2020-04-27T06:01:39.000Z
2021-10-13T02:55:54.000Z
pettingzoo/mpe/scenarios/simple_speaker_listener.py
RedTachyon/PettingZoo
0c4be0ca0de5a11bf8eff3f7b87976edcacd093e
[ "Apache-2.0" ]
126
2020-05-29T04:20:29.000Z
2021-10-13T05:31:12.000Z
import numpy as np from .._mpe_utils.core import Agent, Landmark, World from .._mpe_utils.scenario import BaseScenario class Scenario(BaseScenario): def make_world(self): world = World() # set any world properties first world.dim_c = 3 num_landmarks = 3 world.collaborative...
37.537634
98
0.598969
7987dcd3d311fc0f9712767a592cbc5f6eb85a95
10,100
py
Python
image_models/models/nasnet/pnasnet.py
jlscs/FastNN
0628bd82e9e5a1772bc3246a914116abb6da9ade
[ "BSD-2-Clause" ]
null
null
null
image_models/models/nasnet/pnasnet.py
jlscs/FastNN
0628bd82e9e5a1772bc3246a914116abb6da9ade
[ "BSD-2-Clause" ]
null
null
null
image_models/models/nasnet/pnasnet.py
jlscs/FastNN
0628bd82e9e5a1772bc3246a914116abb6da9ade
[ "BSD-2-Clause" ]
1
2019-09-10T04:58:33.000Z
2019-09-10T04:58:33.000Z
# Copyright 2018 The TensorFlow Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applica...
36.861314
80
0.674653
7987de7caf3cf91522a5887b4ccb8e0524766855
6,542
py
Python
homeassistant/components/sensor/alpha_vantage.py
maihde/home-assistant
688d70644949a658e0607e52b3896a2c4c8a85e7
[ "Apache-2.0" ]
2
2018-01-15T06:36:11.000Z
2019-06-06T14:08:01.000Z
homeassistant/components/sensor/alpha_vantage.py
maihde/home-assistant
688d70644949a658e0607e52b3896a2c4c8a85e7
[ "Apache-2.0" ]
null
null
null
homeassistant/components/sensor/alpha_vantage.py
maihde/home-assistant
688d70644949a658e0607e52b3896a2c4c8a85e7
[ "Apache-2.0" ]
3
2018-08-27T10:08:30.000Z
2020-07-04T10:07:03.000Z
""" Stock market information from Alpha Vantage. For more details about this platform, please refer to the documentation at https://home-assistant.io/components/sensor.alpha_vantage/ """ from datetime import timedelta import logging import voluptuous as vol from homeassistant.components.sensor import PLATFORM_SCHEMA...
30.427907
79
0.652553
7987de968355a78f98d8e0c1e12b7bf0fa47171d
441
py
Python
testproj/testproj/core/urls.py
pivotal-energy-solutions/django-input-collection
cc2ce3e0a7104ba9c524eaba5706da94ddb04a5f
[ "Apache-2.0" ]
null
null
null
testproj/testproj/core/urls.py
pivotal-energy-solutions/django-input-collection
cc2ce3e0a7104ba9c524eaba5706da94ddb04a5f
[ "Apache-2.0" ]
4
2019-08-25T15:47:24.000Z
2022-03-24T19:35:09.000Z
testproj/testproj/core/urls.py
pivotal-energy-solutions/django-input-collection
cc2ce3e0a7104ba9c524eaba5706da94ddb04a5f
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- from django_input_collection import features from django.urls import path, include from . import views urlpatterns = [] if features.rest_framework: urlpatterns.extend( [ path( "polls/", include( [ ...
20.045455
68
0.439909
7987ded59e321fb452d121f1691e4e4e0c6dec58
3,791
py
Python
docs/conf.py
charitywll/mysterious-messenger
2605c050b1ccec46b3b6288d84b93eaefe895b4a
[ "MIT" ]
6
2019-12-29T17:05:20.000Z
2021-12-29T01:25:26.000Z
docs/conf.py
charitywll/mysterious-messenger
2605c050b1ccec46b3b6288d84b93eaefe895b4a
[ "MIT" ]
2
2019-11-22T16:43:55.000Z
2021-01-22T17:53:52.000Z
docs/conf.py
charitywll/mysterious-messenger
2605c050b1ccec46b3b6288d84b93eaefe895b4a
[ "MIT" ]
9
2020-06-12T03:10:09.000Z
2021-09-26T15:46:06.000Z
# Configuration file for the Sphinx documentation builder. # # This file only contains a selection of the most common options. For a full # list see the documentation: # https://www.sphinx-doc.org/en/master/usage/configuration.html # -- Path setup -------------------------------------------------------------- # If ex...
33.254386
81
0.688209
7987dee3a1733dec24efa7c32013868e0b16ce16
12,358
py
Python
test/integration/component/test_storage_motion.py
ycyun/ablestack-cloud
b7bd36a043e2697d05303246373988aa033c9229
[ "Apache-2.0" ]
1,131
2015-01-08T18:59:06.000Z
2022-03-29T11:31:10.000Z
test/integration/component/test_storage_motion.py
ycyun/ablestack-cloud
b7bd36a043e2697d05303246373988aa033c9229
[ "Apache-2.0" ]
5,908
2015-01-13T15:28:37.000Z
2022-03-31T20:31:07.000Z
test/integration/component/test_storage_motion.py
ycyun/ablestack-cloud
b7bd36a043e2697d05303246373988aa033c9229
[ "Apache-2.0" ]
1,083
2015-01-05T01:16:52.000Z
2022-03-31T12:14:10.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 u...
39.608974
122
0.478071
7987df2354fcd1b3d06f8892273b359148c0b20b
2,371
py
Python
accounts/models.py
smudkey/adminset
d19a84706693918ddbfd62f8bf9e837b2e6f6558
[ "Apache-2.0" ]
53
2017-10-24T01:41:45.000Z
2021-02-09T14:21:47.000Z
accounts/models.py
smudkey/adminset
d19a84706693918ddbfd62f8bf9e837b2e6f6558
[ "Apache-2.0" ]
2
2019-04-15T10:15:07.000Z
2019-04-15T11:29:16.000Z
accounts/models.py
smudkey/adminset
d19a84706693918ddbfd62f8bf9e837b2e6f6558
[ "Apache-2.0" ]
29
2017-12-21T11:38:53.000Z
2022-02-09T11:28:22.000Z
from __future__ import unicode_literals from django.db import models from django.contrib.auth.models import BaseUserManager, AbstractBaseUser # Create your models here. class PermissionList(models.Model): name = models.CharField(max_length=64) url = models.CharField(max_length=255) def __unicode__(self)...
28.914634
80
0.674821
7987e0629c322db5b250d4af6b2f96b5ecd83867
4,933
py
Python
juliany_pizza/settings.py
kzborisov/Juliany-Pizza
4ebc0b21e314b244048df79e4858f30447b43f8b
[ "MIT" ]
null
null
null
juliany_pizza/settings.py
kzborisov/Juliany-Pizza
4ebc0b21e314b244048df79e4858f30447b43f8b
[ "MIT" ]
9
2022-03-23T13:13:23.000Z
2022-03-28T13:40:20.000Z
juliany_pizza/settings.py
kzborisov/Juliany-Pizza
4ebc0b21e314b244048df79e4858f30447b43f8b
[ "MIT" ]
null
null
null
import os from pathlib import Path from django.urls import reverse_lazy BASE_DIR = Path(__file__).resolve().parent.parent SECRET_KEY = os.environ.get('SECRET_KEY', 'purple-unicorn') APP_ENVIRONMENT = os.environ.get('APP_ENVIRONMENT') DEBUG = os.environ.get('DEBUG', 'False') == 'True' ALLOWED_HOSTS = os.environ.get...
26.239362
91
0.657612
7987e0efc3f81760b2b3c6b415d4c9150c558d45
341
py
Python
app/omwebapp/view/ntt.py
JojiKoike/OMWebAppEngine
b390a28109add4b9d9631bed44e87090111f2bc3
[ "MIT" ]
null
null
null
app/omwebapp/view/ntt.py
JojiKoike/OMWebAppEngine
b390a28109add4b9d9631bed44e87090111f2bc3
[ "MIT" ]
null
null
null
app/omwebapp/view/ntt.py
JojiKoike/OMWebAppEngine
b390a28109add4b9d9631bed44e87090111f2bc3
[ "MIT" ]
null
null
null
""" NTTモデルのWeb APIモジュールです。 """ from .view_base import ViewBase4Modelica class AirTightEncTemp(ViewBase4Modelica): """ 密閉筐体温度計算モデルのREST API実装です。 """ def __init__(self, **kwargs): kwargs['name'] = __name__ kwargs['model_name'] = "NTT.modelica_ENC_Unit_Test" ViewBase4Modelica.__in...
22.733333
59
0.677419
7987e10cd1a219fa0932ab907b745c63b3cd8015
2,498
py
Python
simple.py
paulfjacobs/pyzmq-auth-hello-world
2e6542419fbfbc6080f5ab9793bec05aed6164a8
[ "MIT" ]
null
null
null
simple.py
paulfjacobs/pyzmq-auth-hello-world
2e6542419fbfbc6080f5ab9793bec05aed6164a8
[ "MIT" ]
null
null
null
simple.py
paulfjacobs/pyzmq-auth-hello-world
2e6542419fbfbc6080f5ab9793bec05aed6164a8
[ "MIT" ]
null
null
null
import zmq import time from threading import Thread class Server(Thread): """ Server thread just binds, prints messages that it receives, and sends "World" back. """ def __init__(self, public_key, secret_key, port): super().__init__() self.ctx = zmq.Context() self.port = port ...
29.738095
113
0.636109
7987e1930695804ec466b88424249feb22977400
413
py
Python
env/Lib/site-packages/plotly/validators/scattermapbox/_showlegend.py
andresgreen-byte/Laboratorio-1--Inversion-de-Capital
8a4707301d19c3826c31026c4077930bcd6a8182
[ "MIT" ]
11,750
2015-10-12T07:03:39.000Z
2022-03-31T20:43:15.000Z
venv/Lib/site-packages/plotly/validators/scattermapbox/_showlegend.py
wakisalvador/constructed-misdirection
74779e9ec640a11bc08d5d1967c85ac4fa44ea5e
[ "Unlicense" ]
2,951
2015-10-12T00:41:25.000Z
2022-03-31T22:19:26.000Z
venv/Lib/site-packages/plotly/validators/scattermapbox/_showlegend.py
wakisalvador/constructed-misdirection
74779e9ec640a11bc08d5d1967c85ac4fa44ea5e
[ "Unlicense" ]
2,623
2015-10-15T14:40:27.000Z
2022-03-28T16:05:50.000Z
import _plotly_utils.basevalidators class ShowlegendValidator(_plotly_utils.basevalidators.BooleanValidator): def __init__(self, plotly_name="showlegend", parent_name="scattermapbox", **kwargs): super(ShowlegendValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_...
34.416667
88
0.687651
7987e2b4458f41d8b4ca94167f648a372bfba5f1
1,531
py
Python
indico/legacy/services/implementation/base.py
aiforrural/Digital-Events-Example
628aaa8727b259b9367ac0ae1c5ba8e9e95eca82
[ "MIT" ]
1
2021-02-08T09:34:27.000Z
2021-02-08T09:34:27.000Z
indico/legacy/services/implementation/base.py
pamirk/indico
c3b4e06b11cc21ad497f74d0b2ca901bc1b2a768
[ "MIT" ]
null
null
null
indico/legacy/services/implementation/base.py
pamirk/indico
c3b4e06b11cc21ad497f74d0b2ca901bc1b2a768
[ "MIT" ]
null
null
null
# This file is part of Indico. # Copyright (C) 2002 - 2020 CERN # # Indico is free software; you can redistribute it and/or # modify it under the terms of the MIT License; see the # LICENSE file for more details. from flask import g, session from werkzeug.exceptions import Forbidden from indico.core.logger import sen...
27.836364
98
0.666231
7987e42a518100b6ebfe29e313b4917060ca716b
16,764
py
Python
mindspore/nn/layer/lstm.py
Joejiong/mindspore
083fd6565cab1aa1d3114feeacccf1cba0d55e80
[ "Apache-2.0" ]
1
2021-04-23T06:35:18.000Z
2021-04-23T06:35:18.000Z
mindspore/nn/layer/lstm.py
Joejiong/mindspore
083fd6565cab1aa1d3114feeacccf1cba0d55e80
[ "Apache-2.0" ]
null
null
null
mindspore/nn/layer/lstm.py
Joejiong/mindspore
083fd6565cab1aa1d3114feeacccf1cba0d55e80
[ "Apache-2.0" ]
null
null
null
# Copyright 2020 Huawei Technologies Co., Ltd # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to...
52.224299
117
0.591923
7987e46a47682a1767b3d523325556d1d975127a
4,346
py
Python
python/tvm/te/hybrid/runtime.py
jacobpostman/incubator-tvm
fdef79d317d455eb5c9e9e86feb97416eb594690
[ "Zlib", "Unlicense", "Apache-2.0", "BSD-2-Clause", "MIT", "ECL-2.0" ]
4
2019-05-08T04:46:07.000Z
2019-11-11T19:43:04.000Z
python/tvm/te/hybrid/runtime.py
minminsun/incubator-tvm
02643d39798c6ec28348235d36d8da626f50d9dd
[ "Apache-2.0" ]
2
2020-09-14T09:18:25.000Z
2020-09-24T03:28:18.000Z
python/tvm/te/hybrid/runtime.py
minminsun/incubator-tvm
02643d39798c6ec28348235d36d8da626f50d9dd
[ "Apache-2.0" ]
2
2019-08-08T01:48:03.000Z
2019-09-27T06:49:16.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 u...
26.339394
86
0.593419
7987e4a5091fc2f5acca62e8f4823d5cbd83a0bb
89
py
Python
core/api/tests/api.py
p-panagiotis/venom
8544f44b10e95bd3964ddde997cda4169c6d34f0
[ "MIT" ]
null
null
null
core/api/tests/api.py
p-panagiotis/venom
8544f44b10e95bd3964ddde997cda4169c6d34f0
[ "MIT" ]
null
null
null
core/api/tests/api.py
p-panagiotis/venom
8544f44b10e95bd3964ddde997cda4169c6d34f0
[ "MIT" ]
null
null
null
from fastapi import APIRouter app = APIRouter(prefix="/core/api/tests", tags=["Tests"])
22.25
57
0.730337
7987e4e1094b6fe94f7eb28c633f63b9840a5ff2
332
py
Python
eventsourcing/tests/test_process_with_django.py
alexanderlarin/eventsourcing
6f2a4ded3c783ba3ee465243a48f66ecdee20f52
[ "BSD-3-Clause" ]
1
2020-02-10T08:12:31.000Z
2020-02-10T08:12:31.000Z
eventsourcing/tests/test_process_with_django.py
alexanderlarin/eventsourcing
6f2a4ded3c783ba3ee465243a48f66ecdee20f52
[ "BSD-3-Clause" ]
null
null
null
eventsourcing/tests/test_process_with_django.py
alexanderlarin/eventsourcing
6f2a4ded3c783ba3ee465243a48f66ecdee20f52
[ "BSD-3-Clause" ]
null
null
null
from eventsourcing.tests.sequenced_item_tests.test_django_record_manager import DjangoTestCase from eventsourcing.application.django import DjangoApplication from eventsourcing.tests.test_process import TestProcess class TestProcessWithDjango(DjangoTestCase, TestProcess): process_class = DjangoApplication del(T...
30.181818
94
0.876506
7987e5c11e81981294d8d7785c5e946a92312d3b
1,294
py
Python
solutions/0094/094_binary_tree_inorder_traversal.py
abawchen/leetcode
41d3b172a7694a46a860fbcb0565a3acccd000f2
[ "MIT" ]
null
null
null
solutions/0094/094_binary_tree_inorder_traversal.py
abawchen/leetcode
41d3b172a7694a46a860fbcb0565a3acccd000f2
[ "MIT" ]
null
null
null
solutions/0094/094_binary_tree_inorder_traversal.py
abawchen/leetcode
41d3b172a7694a46a860fbcb0565a3acccd000f2
[ "MIT" ]
null
null
null
class TreeNode: def __init__(self, x): self.val = x self.left = None self.right = None class Solution: # @param {TreeNode} root # @return {integer[]} # inorder: left -> root -> right def inorderTraversal(self, root): if not root: return [] l = []...
18.485714
92
0.558733
7987e5ebed37856eb3c0d85a1c5b7510f8535114
2,623
py
Python
UNF/modules/embedding/embedding.py
waterzxj/UNF
5eda8e7c60116735f595f4b21b24547708b36cf5
[ "Apache-2.0" ]
86
2020-02-23T13:38:11.000Z
2022-03-01T12:09:28.000Z
UNF/modules/embedding/embedding.py
Dreamliking/UNF
5eda8e7c60116735f595f4b21b24547708b36cf5
[ "Apache-2.0" ]
2
2020-04-20T08:33:05.000Z
2020-05-13T13:43:08.000Z
UNF/modules/embedding/embedding.py
Dreamliking/UNF
5eda8e7c60116735f595f4b21b24547708b36cf5
[ "Apache-2.0" ]
14
2020-03-07T05:21:44.000Z
2021-05-09T16:57:23.000Z
#coding:utf-8 """ Embedding类的抽象 """ import os import sys import torch from torch import nn import torch.nn.functional as F from modules.module_util import init_tensor from modules.base_type import InitType, FAN_MODE, ActivationType class BaseEmbedding(nn.Module): """ Emebdding类的基类 :params dim int类型,embe...
28.204301
81
0.621807
7987e62cd8d901176f50a9543d429eab2b6307bd
24,255
py
Python
feapder/db/redisdb.py
RuixiangS/feapder
e21098c9d4f4ba001275f4d4d57d6ea4687b93a8
[ "MIT" ]
null
null
null
feapder/db/redisdb.py
RuixiangS/feapder
e21098c9d4f4ba001275f4d4d57d6ea4687b93a8
[ "MIT" ]
null
null
null
feapder/db/redisdb.py
RuixiangS/feapder
e21098c9d4f4ba001275f4d4d57d6ea4687b93a8
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ Created on 2016-11-16 16:25 --------- @summary: 操作redis数据库 --------- @author: Boris """ import time import redis from redis._compat import unicode, long, basestring from redis.connection import Encoder as _Encoder from redis.exceptions import ConnectionError, TimeoutError from redis.except...
28.501763
114
0.505298