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
74c793f7b0a8cee7683e9628f0f70dd27e0bed7a
1,501
py
Python
test/test_policy_subject.py
pollination/python-sdk
599e8dbfc6e547c5e18aa903b27c70d7ffef84e5
[ "RSA-MD" ]
2
2020-01-30T23:28:59.000Z
2020-05-06T16:43:47.000Z
test/test_policy_subject.py
pollination/python-sdk
599e8dbfc6e547c5e18aa903b27c70d7ffef84e5
[ "RSA-MD" ]
1
2020-10-02T18:00:25.000Z
2020-10-02T18:00:25.000Z
test/test_policy_subject.py
pollination/python-sdk
599e8dbfc6e547c5e18aa903b27c70d7ffef84e5
[ "RSA-MD" ]
null
null
null
# coding: utf-8 """ pollination-server Pollination Server OpenAPI Definition # noqa: E501 The version of the OpenAPI document: 0.16.0 Contact: info@pollination.cloud Generated by: https://openapi-generator.tech """ from __future__ import absolute_import import unittest import datetime import...
26.333333
85
0.652898
74c7aab927bd924026c839b688ac8f4b32ae332f
2,347
py
Python
Tools/scons/scons-local/SCons/Scanner/RC.py
Syeberman/nohtyP
59d7214a5a5474a03c54f45d79ad4fd037989a79
[ "CNRI-Python-GPL-Compatible" ]
null
null
null
Tools/scons/scons-local/SCons/Scanner/RC.py
Syeberman/nohtyP
59d7214a5a5474a03c54f45d79ad4fd037989a79
[ "CNRI-Python-GPL-Compatible" ]
null
null
null
Tools/scons/scons-local/SCons/Scanner/RC.py
Syeberman/nohtyP
59d7214a5a5474a03c54f45d79ad4fd037989a79
[ "CNRI-Python-GPL-Compatible" ]
null
null
null
"""SCons.Scanner.RC This module implements the dependency scanner for RC (Interface Definition Language) files. """ # # Copyright (c) 2001 - 2017 The SCons Foundation # # Permission is hereby granted, free of charge, to any person obtaining # a copy of this software and associated documentation files (the...
35.029851
91
0.634427
74c7b049f88659fd2ce40986117ed7dde322a584
8,437
py
Python
docs/conf.py
scottwedge/ucsc_apis
c7d0de17cb969fb43984035be2dee630fcb1f610
[ "Apache-2.0" ]
1
2018-08-15T15:13:43.000Z
2018-08-15T15:13:43.000Z
docs/conf.py
scottwedge/ucsc_apis
c7d0de17cb969fb43984035be2dee630fcb1f610
[ "Apache-2.0" ]
8
2017-02-13T09:09:02.000Z
2017-12-27T04:05:26.000Z
docs/conf.py
scottwedge/ucsc_apis
c7d0de17cb969fb43984035be2dee630fcb1f610
[ "Apache-2.0" ]
3
2016-11-22T09:49:01.000Z
2020-10-14T01:23:40.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- # # ucsc_apis documentation build configuration file, created by # sphinx-quickstart on Tue Jul 9 22:26:36 2013. # # This file is execfile()d with the current directory set to its # containing dir. # # Note that not all possible configuration values are present in this # a...
30.568841
76
0.715776
74c7d60606cbc5d77ed68453437432b07570bc40
5,897
py
Python
wielder/util/util.py
hamshif/Wielder
22af082422f2b756cf18d3813e2b4132810d83c3
[ "Apache-2.0" ]
null
null
null
wielder/util/util.py
hamshif/Wielder
22af082422f2b756cf18d3813e2b4132810d83c3
[ "Apache-2.0" ]
3
2020-05-04T12:50:35.000Z
2021-08-20T11:53:09.000Z
wielder/util/util.py
hamshif/Wielder
22af082422f2b756cf18d3813e2b4132810d83c3
[ "Apache-2.0" ]
1
2020-04-14T04:29:26.000Z
2020-04-14T04:29:26.000Z
#!/usr/bin/env python import logging import os import re from time import sleep import random import string import yaml from requests import get from wielder.util.commander import async_cmd # This example requires the requests library be installed. You can learn more # about the Requests library here: http://docs.py...
23.12549
105
0.629642
74c7e822b4aba38e11235464b289cdb9258f56c9
1,717
py
Python
django/contrib/formtools/wizard/tests/cookiestoragetests.py
hafeez3000/django
08e1175ac8d683b692ec3c67dc31df149f07dc8f
[ "BSD-3-Clause" ]
null
null
null
django/contrib/formtools/wizard/tests/cookiestoragetests.py
hafeez3000/django
08e1175ac8d683b692ec3c67dc31df149f07dc8f
[ "BSD-3-Clause" ]
null
null
null
django/contrib/formtools/wizard/tests/cookiestoragetests.py
hafeez3000/django
08e1175ac8d683b692ec3c67dc31df149f07dc8f
[ "BSD-3-Clause" ]
null
null
null
from django.test import TestCase from django.core import signing from django.core.exceptions import SuspiciousOperation from django.http import HttpResponse from django.contrib.formtools.wizard.storage.cookie import CookieStorage from django.contrib.formtools.wizard.tests.storagetests import get_request, TestStorage ...
39.022727
110
0.722772
74c80e647db161d18288fe071d32fab43e4fe9de
57
py
Python
src/patch_issue/__init__.py
yakobu/patch-issue
fdacc21d20f0eeec096d0f738b3da3ca9d128015
[ "MIT" ]
null
null
null
src/patch_issue/__init__.py
yakobu/patch-issue
fdacc21d20f0eeec096d0f738b3da3ca9d128015
[ "MIT" ]
2
2018-11-13T06:29:35.000Z
2021-06-01T22:54:50.000Z
src/patch_issue/__init__.py
yakobu/patch-issue
fdacc21d20f0eeec096d0f738b3da3ca9d128015
[ "MIT" ]
null
null
null
from .patch_issue import JiraPatchIssue, RESOLVED_STATUS
28.5
56
0.877193
74c83d85114b3a298222040b76e32f3b2150366e
19,914
py
Python
data_preprocessing/05extractPoseAndBvh.py
koonyook/muscle-from-kinematic
ea96e82251e3028f3e03cca44d57065236e6ca00
[ "MIT" ]
null
null
null
data_preprocessing/05extractPoseAndBvh.py
koonyook/muscle-from-kinematic
ea96e82251e3028f3e03cca44d57065236e6ca00
[ "MIT" ]
null
null
null
data_preprocessing/05extractPoseAndBvh.py
koonyook/muscle-from-kinematic
ea96e82251e3028f3e03cca44d57065236e6ca00
[ "MIT" ]
null
null
null
import numpy as np from xml.dom.minidom import parse import pickle import sys from util import * from myMath import * import refM from TSVreader import MarkerRecord from bvhTemplate import saveToBvh #read template and scale everything like 04displayScaledModel.py #do not take from results of 05generatePersonalXmlObj.p...
39.511905
168
0.757106
74c8478fffd506955fee6c8afadc3e19a0597f42
2,693
py
Python
sdk/trafficmanager/azure-mgmt-trafficmanager/azure/mgmt/trafficmanager/models/__init__.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
1
2022-03-09T08:59:13.000Z
2022-03-09T08:59:13.000Z
sdk/trafficmanager/azure-mgmt-trafficmanager/azure/mgmt/trafficmanager/models/__init__.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
null
null
null
sdk/trafficmanager/azure-mgmt-trafficmanager/azure/mgmt/trafficmanager/models/__init__.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
1
2022-03-04T06:21:56.000Z
2022-03-04T06:21:56.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 may ...
33.6625
94
0.753063
74c849797f3bab9c8eb8e7ed62df7613fd9b8233
5,962
py
Python
JackJill/mnist_tutorial/mnist.py
andpol5/whaleDetector
2dd0bb9eaa3ba0281a72b268a87a8f8a6c40d4bf
[ "MIT" ]
1
2016-01-23T18:24:45.000Z
2016-01-23T18:24:45.000Z
JackJill/mnist_tutorial/mnist.py
andpol5/whaleDetector
2dd0bb9eaa3ba0281a72b268a87a8f8a6c40d4bf
[ "MIT" ]
null
null
null
JackJill/mnist_tutorial/mnist.py
andpol5/whaleDetector
2dd0bb9eaa3ba0281a72b268a87a8f8a6c40d4bf
[ "MIT" ]
null
null
null
# Copyright 2015 Google Inc. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or a...
36.133333
80
0.686347
74c84e7e361ccb14734b016e74a0eacdbcec815c
300
py
Python
amundsen_application/api/utils/request_utils.py
jhettler/amundsenfrontendlibrary
9581c4943b795ff63d9f3cec3011c2e8526ffd4e
[ "Apache-2.0" ]
1
2021-04-10T14:09:06.000Z
2021-04-10T14:09:06.000Z
amundsen_application/api/utils/request_utils.py
jhettler/amundsenfrontendlibrary
9581c4943b795ff63d9f3cec3011c2e8526ffd4e
[ "Apache-2.0" ]
null
null
null
amundsen_application/api/utils/request_utils.py
jhettler/amundsenfrontendlibrary
9581c4943b795ff63d9f3cec3011c2e8526ffd4e
[ "Apache-2.0" ]
null
null
null
from typing import Dict def get_query_param(args: Dict, param: str, error_msg: str = None) -> str: value = args.get(param) if value is None: msg = 'A {0} parameter must be provided'.format(param) if error_msg is not None else error_msg raise Exception(msg) return value
30
102
0.676667
74c897db391c06ed4ca2fda817ff5fb2a22da5c9
3,875
py
Python
code/toscaparser/shell.py
superfluidity/RDCL3D
3c5717941bd4046aa1be178e9004db1dc1c469a0
[ "Apache-2.0" ]
8
2017-03-13T16:34:28.000Z
2021-11-16T11:35:56.000Z
code/toscaparser/shell.py
superfluidity/RDCL3D
3c5717941bd4046aa1be178e9004db1dc1c469a0
[ "Apache-2.0" ]
null
null
null
code/toscaparser/shell.py
superfluidity/RDCL3D
3c5717941bd4046aa1be178e9004db1dc1c469a0
[ "Apache-2.0" ]
3
2017-03-28T09:26:40.000Z
2020-12-08T14:16:12.000Z
# Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # d...
32.024793
78
0.594323
74c8aa27a73cf00ff847724641feea36b46f69b7
14,690
py
Python
src/robot/running/bodyrunner.py
bradyarthur/RobotFramework
f45747dfec1095359379ba0088cecd955a83e576
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
src/robot/running/bodyrunner.py
bradyarthur/RobotFramework
f45747dfec1095359379ba0088cecd955a83e576
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
src/robot/running/bodyrunner.py
bradyarthur/RobotFramework
f45747dfec1095359379ba0088cecd955a83e576
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
# Copyright 2008-2015 Nokia Networks # Copyright 2016- Robot Framework Foundation # # 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 ...
38.965517
88
0.599115
74c8bbe3e122fe2aee0bab8367eb70e5e35cd1a2
7,418
py
Python
tests/turbulette_tests/test_pydantic.py
gitter-badger/turbulette
abc61b58033f4f53bbefe5a1e10bf6550d2ce86f
[ "BSD-3-Clause" ]
null
null
null
tests/turbulette_tests/test_pydantic.py
gitter-badger/turbulette
abc61b58033f4f53bbefe5a1e10bf6550d2ce86f
[ "BSD-3-Clause" ]
null
null
null
tests/turbulette_tests/test_pydantic.py
gitter-badger/turbulette
abc61b58033f4f53bbefe5a1e10bf6550d2ce86f
[ "BSD-3-Clause" ]
null
null
null
import pytest from ariadne import gql, make_executable_schema, snake_case_fallback_resolvers from pydantic import Json, ValidationError, UUID4 from turbulette.apps.base.resolvers.root_types import base_scalars_resolvers from turbulette.validation import GraphQLModel, PydanticBindable, validator from turbulette.validati...
23.253918
81
0.59423
74c8faef5b3141a825a125913db9531f56158145
750
py
Python
src/fileTest.py
ArkiWang/LeetcodePy
6b4af8da843910823f7f53989bbda4ec8e6dad15
[ "MIT" ]
null
null
null
src/fileTest.py
ArkiWang/LeetcodePy
6b4af8da843910823f7f53989bbda4ec8e6dad15
[ "MIT" ]
null
null
null
src/fileTest.py
ArkiWang/LeetcodePy
6b4af8da843910823f7f53989bbda4ec8e6dad15
[ "MIT" ]
null
null
null
from typing import List class Solution: def kLengthApart(self, nums: List[int], k: int) -> bool: i = 0 while i < len(nums) and nums[i] == 0: i += 1 interval = 0 intervalList = [] for j in range(i, len(nums)): if nums[j] == 0: interval += 1 ...
25
60
0.505333
74c91992d92dd517e54867b115bc804c2603b3d0
97
py
Python
app/main/__init__.py
Kipngetich33/news-highlights
773d4852d28d56b0c313b6da397d46fc0ca9a054
[ "Unlicense" ]
null
null
null
app/main/__init__.py
Kipngetich33/news-highlights
773d4852d28d56b0c313b6da397d46fc0ca9a054
[ "Unlicense" ]
null
null
null
app/main/__init__.py
Kipngetich33/news-highlights
773d4852d28d56b0c313b6da397d46fc0ca9a054
[ "Unlicense" ]
null
null
null
from flask import Blueprint main = Blueprint ('main', __name__) from . import views, error ,forms
32.333333
35
0.762887
74c92e2028788014b52783e3a7645917e2fc4390
7,594
py
Python
qiskit/circuit/library/standard_gates/swap.py
nkanazawa1989/qiskit-terra
88267be7228e5d09533e4e2d8bbccfcafa6f2e8c
[ "Apache-2.0" ]
1
2019-06-04T12:23:36.000Z
2019-06-04T12:23:36.000Z
qiskit/circuit/library/standard_gates/swap.py
nkanazawa1989/qiskit-terra
88267be7228e5d09533e4e2d8bbccfcafa6f2e8c
[ "Apache-2.0" ]
35
2019-03-07T02:09:22.000Z
2022-03-22T19:55:15.000Z
qiskit/circuit/library/standard_gates/swap.py
nkanazawa1989/qiskit-terra
88267be7228e5d09533e4e2d8bbccfcafa6f2e8c
[ "Apache-2.0" ]
null
null
null
# This code is part of Qiskit. # # (C) Copyright IBM 2017. # # 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 derivative wo...
32.042194
99
0.45931
74c93166f60ab55b1c44ac093e84eb836306712c
17,139
py
Python
applications/nightly_build/test_keras_applications.py
xadupre/keras-onnx
17559f987ecce7ec40ab8a36a9596eb950f9b332
[ "MIT" ]
1
2020-10-26T03:03:02.000Z
2020-10-26T03:03:02.000Z
applications/nightly_build/test_keras_applications.py
xadupre/keras-onnx
17559f987ecce7ec40ab8a36a9596eb950f9b332
[ "MIT" ]
null
null
null
applications/nightly_build/test_keras_applications.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...
43.389873
144
0.639944
74c952f8b50488bdb2a31e2b44be027c08a3463b
735
py
Python
migrations/versions/1c19d9abe7d9_.py
ENCODE-DCC/genomic-data-service
954017a5bcc5f448fbe2867768186df5e066c67c
[ "MIT" ]
3
2020-10-26T02:15:55.000Z
2022-01-26T18:39:09.000Z
migrations/versions/1c19d9abe7d9_.py
ENCODE-DCC/genomic-data-service
954017a5bcc5f448fbe2867768186df5e066c67c
[ "MIT" ]
3
2021-08-17T02:01:54.000Z
2022-03-30T17:14:02.000Z
migrations/versions/1c19d9abe7d9_.py
ENCODE-DCC/genomic-data-service
954017a5bcc5f448fbe2867768186df5e066c67c
[ "MIT" ]
1
2022-03-24T21:15:34.000Z
2022-03-24T21:15:34.000Z
"""empty message Revision ID: 1c19d9abe7d9 Revises: b81b25cdbeca Create Date: 2021-02-16 11:48:12.531412 """ from alembic import op import sqlalchemy as sa # revision identifiers, used by Alembic. revision = '1c19d9abe7d9' down_revision = 'b81b25cdbeca' branch_labels = None depends_on = None def upgrade(): # ...
25.344828
113
0.718367
74c96db010e0eb518b5f8df267c7dc2dc95002c7
1,013
py
Python
src/utils/logging.py
mikolajsacha/meta_learning_experiments
055ebdbe266b1650932cc920ec70613f04a86059
[ "MIT" ]
3
2018-07-09T09:15:28.000Z
2018-11-03T15:07:15.000Z
src/utils/logging.py
mikolajsacha/meta_learning_experiments
055ebdbe266b1650932cc920ec70613f04a86059
[ "MIT" ]
null
null
null
src/utils/logging.py
mikolajsacha/meta_learning_experiments
055ebdbe266b1650932cc920ec70613f04a86059
[ "MIT" ]
null
null
null
""" Helper methods for logging """ import os import logging def configure_logger(name: str, level: int) -> logging.Logger: logger = logging.getLogger(name) logger.setLevel(level) log_dir = os.environ['LOG_DIR'] fh = logging.FileHandler(os.path.join(log_dir, '{}.log'.format(name))) fh.setLevel(le...
25.325
90
0.654492
74c9ba25d0f048345af3f2a63c74a2aa778f5b7f
2,954
py
Python
sdk/eventhub/azure-eventhub/samples/async_samples/recv_with_checkpoint_by_time_interval_async.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
2,728
2015-01-09T10:19:32.000Z
2022-03-31T14:50:33.000Z
sdk/eventhub/azure-eventhub/samples/async_samples/recv_with_checkpoint_by_time_interval_async.py
v-xuto/azure-sdk-for-python
9c6296d22094c5ede410bc83749e8df8694ccacc
[ "MIT" ]
17,773
2015-01-05T15:57:17.000Z
2022-03-31T23:50:25.000Z
sdk/eventhub/azure-eventhub/samples/async_samples/recv_with_checkpoint_by_time_interval_async.py
v-xuto/azure-sdk-for-python
9c6296d22094c5ede410bc83749e8df8694ccacc
[ "MIT" ]
1,916
2015-01-19T05:05:41.000Z
2022-03-31T19:36:44.000Z
#!/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. # ---------------------------------------------...
41.027778
117
0.719364
74c9bde5f3ed5ab71f465baea431f4b8db2c50e6
4,746
py
Python
flexget/plugins/filter/exists_movie.py
BrainDamage/Flexget
50f75bdad64ce023daaff334df8478319ddb9f64
[ "MIT" ]
null
null
null
flexget/plugins/filter/exists_movie.py
BrainDamage/Flexget
50f75bdad64ce023daaff334df8478319ddb9f64
[ "MIT" ]
null
null
null
flexget/plugins/filter/exists_movie.py
BrainDamage/Flexget
50f75bdad64ce023daaff334df8478319ddb9f64
[ "MIT" ]
null
null
null
from __future__ import unicode_literals, division, absolute_import import os import logging from flexget import plugin from flexget.event import event from flexget.config_schema import one_or_more from flexget.utils.titles.movie import MovieParser from flexget.utils.tools import TimedDict log = logging.getLogger('exi...
35.155556
86
0.533923
74c9cd2a810b58a86c9e1253aefa7ff6388a8240
3,471
py
Python
improver/cli/combine.py
owena11/improver
ff658db31364c0bdf3af3940736c260e10544705
[ "BSD-3-Clause" ]
77
2017-04-26T07:47:40.000Z
2022-03-31T09:40:49.000Z
improver/cli/combine.py
owena11/improver
ff658db31364c0bdf3af3940736c260e10544705
[ "BSD-3-Clause" ]
1,440
2017-03-29T10:04:15.000Z
2022-03-28T10:11:29.000Z
improver/cli/combine.py
MoseleyS/improver
ca028e3a1c842e3ff00b188c8ea6eaedd0a07149
[ "BSD-3-Clause" ]
72
2017-03-17T16:53:45.000Z
2022-02-16T09:41:37.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- # ----------------------------------------------------------------------------- # (C) British Crown Copyright 2017-2021 Met Office. # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the ...
41.321429
86
0.701815
74c9d250637584c8e9ba96229d3655a8467abb61
11,058
py
Python
keystone/token/providers/fernet/core.py
yanheven/keystone
417b8941095f40674575ed951b4a03ebcdc91fef
[ "Apache-2.0" ]
null
null
null
keystone/token/providers/fernet/core.py
yanheven/keystone
417b8941095f40674575ed951b4a03ebcdc91fef
[ "Apache-2.0" ]
null
null
null
keystone/token/providers/fernet/core.py
yanheven/keystone
417b8941095f40674575ed951b4a03ebcdc91fef
[ "Apache-2.0" ]
null
null
null
# 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 # distributed under t...
40.955556
79
0.633207
74c9e617e83747faaabfe0c92bd849579ef3be06
984
py
Python
edgar/forms/form5.py
rs-kellogg/edgar2data
1c382e4ae36fa2ed7f240aa5b7d16dd154cbfb2b
[ "MIT" ]
null
null
null
edgar/forms/form5.py
rs-kellogg/edgar2data
1c382e4ae36fa2ed7f240aa5b7d16dd154cbfb2b
[ "MIT" ]
null
null
null
edgar/forms/form5.py
rs-kellogg/edgar2data
1c382e4ae36fa2ed7f240aa5b7d16dd154cbfb2b
[ "MIT" ]
1
2021-02-16T13:43:18.000Z
2021-02-16T13:43:18.000Z
""" Copyright (c) 2021 Northwestern University. All rights reserved. This work is licensed under the terms of the MIT license. For a copy, see <https://opensource.org/licenses/MIT>. """ from typing import List, Dict from pathlib import Path from edgar.forms.form4 import Form4 class Form5(Form4): """ Represe...
33.931034
115
0.670732
74c9e721c6d53d680a1a5c94870c31b9bb575dfe
836
py
Python
backend/backend/sql/challenge.py
ravirahman/sancus
6563852b98edeb1068574e2d99e1fc18b815bee3
[ "MIT" ]
2
2022-03-17T04:50:20.000Z
2022-03-17T04:51:31.000Z
backend/backend/sql/challenge.py
ravirahman/sancus
6563852b98edeb1068574e2d99e1fc18b815bee3
[ "MIT" ]
null
null
null
backend/backend/sql/challenge.py
ravirahman/sancus
6563852b98edeb1068574e2d99e1fc18b815bee3
[ "MIT" ]
null
null
null
from common.sql.datetime import DateTime from common.sql.protobuf import Protobuf from common.sql.uuid import UUID from common.utils.datetime import get_current_datetime from common.utils.uuid import generate_uuid4 from protobufs.webauthn_pb2 import AuthenticatorAssertionResponse, ChallengeRequest from sqlalchemy impor...
39.809524
111
0.815789
74c9f493f5e53a71cf04c971207b7132e06448ae
4,069
py
Python
alipay/aop/api/request/AlipayOverseasTransferInstitutionpaymentQueryRequest.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/request/AlipayOverseasTransferInstitutionpaymentQueryRequest.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/request/AlipayOverseasTransferInstitutionpaymentQueryRequest.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.FileItem import FileItem from alipay.aop.api.constant.ParamConstants import * from alipay.aop.api.domain.AlipayOverseasTransferInstitutionpaymentQueryModel import AlipayOverseasTransferInstitutionpaymentQueryModel class AlipayOverseasTra...
28.062069
148
0.653232
74ca0cb087d70b193a92fc85833b0c55a532282f
2,780
py
Python
sdscli/adapters/hysds/rules.py
sdskit/sdscli
9bb96e880c8251d1dce56b901c1289ed80f83ce7
[ "Apache-2.0" ]
null
null
null
sdscli/adapters/hysds/rules.py
sdskit/sdscli
9bb96e880c8251d1dce56b901c1289ed80f83ce7
[ "Apache-2.0" ]
24
2018-03-14T15:37:38.000Z
2021-11-30T21:59:44.000Z
sdscli/adapters/hysds/rules.py
sdskit/sdscli
9bb96e880c8251d1dce56b901c1289ed80f83ce7
[ "Apache-2.0" ]
13
2018-02-22T15:01:35.000Z
2019-02-07T18:58:57.000Z
"""SDS user rules management functions.""" from __future__ import unicode_literals from __future__ import print_function from __future__ import division from __future__ import absolute_import from builtins import open from future import standard_library standard_library.install_aliases() import os import json from dat...
31.235955
102
0.676619
74ca4f42c2f95336a51354b01bde99c91a7d000a
6,774
py
Python
neuropype/nodes/Substract.py
ablot/Pinceau
ae8f3dd088349f8976a5ddf91d83c60ca1ef39e2
[ "MIT" ]
null
null
null
neuropype/nodes/Substract.py
ablot/Pinceau
ae8f3dd088349f8976a5ddf91d83c60ca1ef39e2
[ "MIT" ]
null
null
null
neuropype/nodes/Substract.py
ablot/Pinceau
ae8f3dd088349f8976a5ddf91d83c60ca1ef39e2
[ "MIT" ]
null
null
null
from neuropype import node #from neuropype.datatypes import Sweep from numpy import logical_and, vstack from neuropype import tag as tagModule class Substract(node.Node): '''substract trace1 to trace0 (out = trace0 - trace1) if self.in_sweep_index is None (default): out[i] = trace0[i] - trace1[1...
39.156069
81
0.507234
74ca5e97f49a80e7384f682d71f029f9f61fadd4
553
py
Python
odata/plugins/interfaces.py
qlands/formshare_odata_plugin
0c1d9324d3e5bdc863ff12374954b40eb6f244d9
[ "BSD-3-Clause" ]
null
null
null
odata/plugins/interfaces.py
qlands/formshare_odata_plugin
0c1d9324d3e5bdc863ff12374954b40eb6f244d9
[ "BSD-3-Clause" ]
null
null
null
odata/plugins/interfaces.py
qlands/formshare_odata_plugin
0c1d9324d3e5bdc863ff12374954b40eb6f244d9
[ "BSD-3-Clause" ]
1
2020-09-11T03:51:50.000Z
2020-09-11T03:51:50.000Z
from formshare.plugins.interfaces import Interface class IWARFileCreated(Interface): """ Plugin into the creation of the WarFile. """ def after_create(self, request, absolute_path): """ Called after the OData WAR files are created. :param request: Pyramid request object ...
29.105263
83
0.688969
74ca62e9f3075b5b2215c4e7cfce9407e756c045
4,882
py
Python
app/app/settings.py
alexiuasse/byebnk-desafio
40738fc40f2c7964dd3e0b07f027bd81dc012477
[ "MIT" ]
null
null
null
app/app/settings.py
alexiuasse/byebnk-desafio
40738fc40f2c7964dd3e0b07f027bd81dc012477
[ "MIT" ]
null
null
null
app/app/settings.py
alexiuasse/byebnk-desafio
40738fc40f2c7964dd3e0b07f027bd81dc012477
[ "MIT" ]
null
null
null
""" Django settings for app 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 pathlib imp...
26.677596
91
0.700123
74ca6346e6d9a4b5d823fafa2d4db684e2fc3a0d
2,893
py
Python
vilbert_beta/script/conceptual_caption_preprocess_sequential_train.py
WadeYin9712/GD-VCR
aa8138b55f5a9136dae10ceb99455d9f2beb6d75
[ "MIT" ]
19
2021-09-04T16:49:57.000Z
2022-01-07T08:49:20.000Z
vilbert_beta/script/conceptual_caption_preprocess_sequential_train.py
WadeYin9712/GD-VCR
aa8138b55f5a9136dae10ceb99455d9f2beb6d75
[ "MIT" ]
null
null
null
vilbert_beta/script/conceptual_caption_preprocess_sequential_train.py
WadeYin9712/GD-VCR
aa8138b55f5a9136dae10ceb99455d9f2beb6d75
[ "MIT" ]
null
null
null
import os import numpy as np # from tensorpack.dataflow import RNGDataFlow, PrefetchDataZMQ from tensorpack.dataflow import * import lmdb import json import pdb import csv FIELDNAMES = ['image_id', 'image_w','image_h','num_boxes', 'boxes', 'features', 'cls_prob'] import sys import pandas as pd import zlib import base64...
38.573333
128
0.62392
74ca63d4e86998ba4a21a3779ba29a293c298425
976
py
Python
aless_art_shop/sitemaps.py
AlessioMartello/art_shop
aff7bfe0870b120d648d922c89e49ebf3c975f06
[ "MIT" ]
null
null
null
aless_art_shop/sitemaps.py
AlessioMartello/art_shop
aff7bfe0870b120d648d922c89e49ebf3c975f06
[ "MIT" ]
null
null
null
aless_art_shop/sitemaps.py
AlessioMartello/art_shop
aff7bfe0870b120d648d922c89e49ebf3c975f06
[ "MIT" ]
null
null
null
from django.contrib.sitemaps import Sitemap from django.urls import reverse from aless_art_shop.urls import app_name as art_shop_app from stripe_payments.urls import app_name as stripe_app from aless_art_shop.models import Product, BlogPost class StaticViewSitemap(Sitemap): priority = 1.0 changefreq = "monthl...
23.238095
113
0.686475
74ca75692787328dd76293399e3fa1c2d5559eec
1,464
py
Python
code/part_a/db1_ninapro/resnet50_db1ninapro.py
DSIP-UPatras/sEMG-based-gesture-recognition-mgeorgoula
a5f8f234aebad671b38296730f46f0b637fadc64
[ "MIT" ]
3
2019-08-22T11:24:09.000Z
2020-06-09T07:16:45.000Z
code/part_a/db1_ninapro/resnet50_db1ninapro.py
DSIP-UPatras/sEMG-based-gesture-recognition-mgeorgoula
a5f8f234aebad671b38296730f46f0b637fadc64
[ "MIT" ]
1
2019-08-24T06:25:24.000Z
2019-08-24T06:25:24.000Z
code/part_a/db1_ninapro/resnet50_db1ninapro.py
DSIP-UPatras/sEMG-based-gesture-recognition-mgeorgoula
a5f8f234aebad671b38296730f46f0b637fadc64
[ "MIT" ]
1
2020-05-25T02:21:35.000Z
2020-05-25T02:21:35.000Z
# -*- coding: utf-8 -*- """ Modify pretrained ResNet50 model """ from keras.layers import * from keras import initializers, regularizers, constraints, optimizers from keras.models import load_model, Model from keras.applications import resnet50 import keras.backend as K import numpy as np def ResNet...
28.705882
109
0.673497
74ca790dc2c741e349fb4cfcc86b501c14b77fc8
1,814
py
Python
python/l0140.py
daidaifan/leetcode-problem-solver
1793eada501a2a18d05f118a98ac52e2edd12ef8
[ "MIT" ]
null
null
null
python/l0140.py
daidaifan/leetcode-problem-solver
1793eada501a2a18d05f118a98ac52e2edd12ef8
[ "MIT" ]
null
null
null
python/l0140.py
daidaifan/leetcode-problem-solver
1793eada501a2a18d05f118a98ac52e2edd12ef8
[ "MIT" ]
null
null
null
""" class Solution(object): def wordBreak(self, s, wordDict): :type s: str :type wordDict: List[str] :rtype: List[str] is_composition = [False] * (len(s) + 1) is_composition[0] = True dp = [[]] for i in range(1, len(s) + 1): dp.append([]) ...
29.737705
71
0.462514
74ca83bd5876657a38aaaeec2546bdcb61a0d225
5,502
py
Python
sdk/rdbms/azure-mgmt-rdbms/azure/mgmt/rdbms/mysql/aio/operations/_server_based_performance_tier_operations.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
1
2022-03-09T08:59:13.000Z
2022-03-09T08:59:13.000Z
sdk/rdbms/azure-mgmt-rdbms/azure/mgmt/rdbms/mysql/aio/operations/_server_based_performance_tier_operations.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
null
null
null
sdk/rdbms/azure-mgmt-rdbms/azure/mgmt/rdbms/mysql/aio/operations/_server_based_performance_tier_operations.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
null
null
null
# 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 may ...
44.731707
182
0.670302
74cac113e37de868a293cbae24e160faf41fee8a
3,729
py
Python
etl/jobs/transformation/cna_molecular_data_transformer_job.py
PDXFinder/pdcm-etl
3caf80938d9e80f1fc7bb0724cba6ae68a8d315e
[ "Apache-2.0" ]
1
2021-05-24T14:54:48.000Z
2021-05-24T14:54:48.000Z
etl/jobs/transformation/cna_molecular_data_transformer_job.py
PDCMFinder/pdcm-etl
df0006e4ad5ca2ddf9c1387e28a0b7fb24f195de
[ "Apache-2.0" ]
37
2022-02-09T18:19:13.000Z
2022-03-29T12:14:19.000Z
etl/jobs/transformation/cna_molecular_data_transformer_job.py
PDCMFinder/pdcm-etl
df0006e4ad5ca2ddf9c1387e28a0b7fb24f195de
[ "Apache-2.0" ]
null
null
null
import sys from pyspark.sql import DataFrame, SparkSession from etl.constants import Constants from etl.jobs.transformation.harmonisation.markers_harmonisation import harmonise_mutation_marker_symbols from etl.jobs.util.id_assigner import add_id def main(argv): """ Creates a parquet file with provider type ...
40.978022
115
0.753017
74cacad05ea7e48a6eee7443829e8ad273233aa8
18,674
py
Python
QuadrupedalRobots/ETGRL/deployment/robots/a1.py
WorldEditors/PaddleRobotics
d02efd74662c6f78dfb964e8beb93f1914dcb2f3
[ "Apache-2.0" ]
146
2020-12-08T11:51:38.000Z
2022-03-23T12:58:43.000Z
QuadrupedalRobots/ETGRL/deployment/robots/a1.py
WorldEditors/PaddleRobotics
d02efd74662c6f78dfb964e8beb93f1914dcb2f3
[ "Apache-2.0" ]
10
2020-12-23T03:00:31.000Z
2022-03-23T09:55:30.000Z
QuadrupedalRobots/ETGRL/deployment/robots/a1.py
WorldEditors/PaddleRobotics
d02efd74662c6f78dfb964e8beb93f1914dcb2f3
[ "Apache-2.0" ]
43
2020-12-21T09:40:39.000Z
2022-03-31T06:41:32.000Z
# coding=utf-8 # Copyright 2020 The Google Research 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 applicab...
36.687623
86
0.657224
74cb0fd23dc247e79896a3464650fd70ce7f7ed2
7,007
py
Python
examples/tqt/resnet20/quant_tqt.py
PannenetsF/QuantizationPool
504d7cfa70ba08e9ab3c314527526c5ba5003dda
[ "BSD-3-Clause" ]
4
2021-06-04T03:10:18.000Z
2021-10-30T11:43:07.000Z
examples/tqt/resnet20/quant_tqt.py
PannenetsF/QuantizationPool
504d7cfa70ba08e9ab3c314527526c5ba5003dda
[ "BSD-3-Clause" ]
null
null
null
examples/tqt/resnet20/quant_tqt.py
PannenetsF/QuantizationPool
504d7cfa70ba08e9ab3c314527526c5ba5003dda
[ "BSD-3-Clause" ]
null
null
null
import tqt from qresnet import resnet18 import torch import torch.nn as nn import torchvision.datasets as datasets import torchvision.transforms as transforms from torch.utils.data import DataLoader import argparse from torch.utils.tensorboard import SummaryWriter import math import time import logging import os, sys, ...
35.388889
75
0.539889
74cb47fa217b80d2102e0740c6b92c7f2c8d5f68
1,059
py
Python
sdk/containerregistry/azure-mgmt-containerregistry/azure/mgmt/containerregistry/v2019_05_01/models/quarantine_policy.py
pjquirk/azure-sdk-for-python
cbf02ec4f177b96eae1dbbba87c34c2c93880150
[ "MIT" ]
null
null
null
sdk/containerregistry/azure-mgmt-containerregistry/azure/mgmt/containerregistry/v2019_05_01/models/quarantine_policy.py
pjquirk/azure-sdk-for-python
cbf02ec4f177b96eae1dbbba87c34c2c93880150
[ "MIT" ]
null
null
null
sdk/containerregistry/azure-mgmt-containerregistry/azure/mgmt/containerregistry/v2019_05_01/models/quarantine_policy.py
pjquirk/azure-sdk-for-python
cbf02ec4f177b96eae1dbbba87c34c2c93880150
[ "MIT" ]
null
null
null
# 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 ...
34.16129
76
0.603399
74cb4e9d1522bd2f1021c2849c1fa6d8e3533af8
655
py
Python
app/models/schemas/parameters.py
PSE-TECO-2020-TEAM1/e2e-ml_model-management
7f01a008648e25a29c639a5e16124b2e399eb821
[ "MIT" ]
1
2021-05-04T08:46:19.000Z
2021-05-04T08:46:19.000Z
app/models/schemas/parameters.py
PSE-TECO-2020-TEAM1/e2e-ml_model-management
7f01a008648e25a29c639a5e16124b2e399eb821
[ "MIT" ]
null
null
null
app/models/schemas/parameters.py
PSE-TECO-2020-TEAM1/e2e-ml_model-management
7f01a008648e25a29c639a5e16124b2e399eb821
[ "MIT" ]
1
2022-01-28T21:21:32.000Z
2022-01-28T21:21:32.000Z
from app.models.schemas.mongo_model import MongoModel from typing import Any, Dict, List from pydantic import BaseModel from app.ml.objects.classification import Classifier from app.ml.objects.feature import Feature from app.ml.objects.imputation import Imputation from app.ml.objects.normalization import Normalization ...
34.473684
54
0.807634
74cb58be2f726617032b65a2dd7e5ac6e0d8bb46
3,576
py
Python
appengine/findit/services/test/isolate_test.py
allaparthi/monorail
e18645fc1b952a5a6ff5f06e0c740d75f1904473
[ "BSD-3-Clause" ]
2
2021-04-13T21:22:18.000Z
2021-09-07T02:11:57.000Z
appengine/findit/services/test/isolate_test.py
allaparthi/monorail
e18645fc1b952a5a6ff5f06e0c740d75f1904473
[ "BSD-3-Clause" ]
21
2020-09-06T02:41:05.000Z
2022-03-02T04:40:01.000Z
appengine/findit/services/test/isolate_test.py
allaparthi/monorail
e18645fc1b952a5a6ff5f06e0c740d75f1904473
[ "BSD-3-Clause" ]
null
null
null
# Copyright 2018 The Chromium Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. import base64 import json import mock import zlib from infra_api_clients import http_client_util from infra_api_clients.isolate import isolate_util from ser...
31.368421
78
0.649049
74cb5db7251a0a35a1fa542974315e49267b9603
5,046
py
Python
pmaf/database/_helpers/_ott_maker.py
mmtechslv/PhyloMAF
bab43dd4a4d2812951b1fdf4f1abb83edb79ea88
[ "BSD-3-Clause" ]
1
2021-07-02T06:24:17.000Z
2021-07-02T06:24:17.000Z
pmaf/database/_helpers/_ott_maker.py
mmtechslv/PhyloMAF
bab43dd4a4d2812951b1fdf4f1abb83edb79ea88
[ "BSD-3-Clause" ]
1
2021-06-28T12:02:46.000Z
2021-06-28T12:02:46.000Z
pmaf/database/_helpers/_ott_maker.py
mmtechslv/PhyloMAF
bab43dd4a4d2812951b1fdf4f1abb83edb79ea88
[ "BSD-3-Clause" ]
null
null
null
import execnet import os def make_ott_taxonomy(reftax_path: str, newtax_path: str, reftax_src_path: str) -> bool: """Reconstructs OpenTreeOfLife taxonomy by removing non-microbial life clades. Parameters ---------- reftax_path Path to reference taxonomy directory. `Download Latest...
42.05
109
0.513872
74cb623ce2ff06500c4c6e0eec660f18c5f685a8
2,877
py
Python
metacash/dashboards/category_analysis.py
elehcimd/metacash
3681df7d14d656ffb30d4b8720368845f99cce58
[ "MIT" ]
1
2021-03-31T13:59:42.000Z
2021-03-31T13:59:42.000Z
metacash/dashboards/category_analysis.py
elehcimd/metacash
3681df7d14d656ffb30d4b8720368845f99cce58
[ "MIT" ]
2
2021-03-31T14:28:11.000Z
2021-03-31T15:31:32.000Z
metacash/dashboards/category_analysis.py
elehcimd/metacash
3681df7d14d656ffb30d4b8720368845f99cce58
[ "MIT" ]
null
null
null
import ipywidgets as widgets from IPython.display import display, clear_output from metacash.dashboards.dashboard_widget import DashboardWidget from metacash.dashboards.plots import barplot_monthly from metacash.dashboards.utils import display_df class Widgets: def __init__(self, category_analysis): sel...
31.271739
105
0.635384
74cb7691193c52d6b40903112ce8c79cc49fe1f6
35
py
Python
wavelet/util/__init__.py
AP-Atul/wavelets
cff71e777759844b35f8e96f14930b2c71a215a1
[ "MIT" ]
5
2021-02-01T07:43:39.000Z
2022-03-25T05:01:31.000Z
wavelet/util/__init__.py
AP-Atul/wavelets
cff71e777759844b35f8e96f14930b2c71a215a1
[ "MIT" ]
null
null
null
wavelet/util/__init__.py
AP-Atul/wavelets
cff71e777759844b35f8e96f14930b2c71a215a1
[ "MIT" ]
null
null
null
from wavelet.util.utility import *
17.5
34
0.8
74cbce7aa6c6104b1700a29c8730f397820bd7f0
474
py
Python
CBDGUI/CBDGUI/asgi.py
ODeinsN/ChatDuelBot
a7ab2435926eba6be5139cfe54aaa415c3f588bc
[ "Unlicense" ]
null
null
null
CBDGUI/CBDGUI/asgi.py
ODeinsN/ChatDuelBot
a7ab2435926eba6be5139cfe54aaa415c3f588bc
[ "Unlicense" ]
null
null
null
CBDGUI/CBDGUI/asgi.py
ODeinsN/ChatDuelBot
a7ab2435926eba6be5139cfe54aaa415c3f588bc
[ "Unlicense" ]
null
null
null
""" ASGI config for CBDGUI project. It exposes the ASGI callable as a module-level variable named ``application``. For more information on this file, see https://docs.djangoproject.com/en/3.2/howto/deployment/asgi/ """ import os from channels.routing import ProtocolTypeRouter from django.core.asgi import get_asgi_a...
23.7
78
0.780591
74cbe514a99d2c7dc306bfd6f0231a03b0d6229a
5,011
py
Python
src/oscar/apps/payment/migrations/0001_initial.py
sainjusajan/django-oscar
466e8edc807be689b0a28c9e525c8323cc48b8e1
[ "BSD-3-Clause" ]
null
null
null
src/oscar/apps/payment/migrations/0001_initial.py
sainjusajan/django-oscar
466e8edc807be689b0a28c9e525c8323cc48b8e1
[ "BSD-3-Clause" ]
5
2021-05-28T19:38:28.000Z
2022-03-12T00:45:39.000Z
src/oscar/apps/payment/migrations/0001_initial.py
Jean1508/ya-madoa
1ffb1d11e15bf33e4c3a09698675a4357e887eaa
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.db import models, migrations import oscar.models.fields.autoslugfield from django.conf import settings from decimal import Decimal class Migration(migrations.Migration): dependencies = [ ('order', '0001_initial'), ...
52.747368
243
0.585911
74cbf6ad0711b73ac4b26b0f2abce5632a3ecb14
3,306
py
Python
python/phonenumbers/data/region_IR.py
Eyepea/python-phonenumbers
0336e191fda80a21ed5c19d5e029ad8c70f620ee
[ "Apache-2.0" ]
2
2019-03-30T02:12:54.000Z
2021-03-08T18:59:40.000Z
python/phonenumbers/data/region_IR.py
Eyepea/python-phonenumbers
0336e191fda80a21ed5c19d5e029ad8c70f620ee
[ "Apache-2.0" ]
null
null
null
python/phonenumbers/data/region_IR.py
Eyepea/python-phonenumbers
0336e191fda80a21ed5c19d5e029ad8c70f620ee
[ "Apache-2.0" ]
1
2018-11-10T03:47:34.000Z
2018-11-10T03:47:34.000Z
"""Auto-generated file, do not edit by hand. IR metadata""" from ..phonemetadata import NumberFormat, PhoneNumberDesc, PhoneMetadata PHONE_METADATA_IR = PhoneMetadata(id='IR', country_code=98, international_prefix='00', general_desc=PhoneNumberDesc(national_number_pattern='[14-8]\\d{6,9}|[23]\\d{4,9}|9(?:[1-4]\\d{...
132.24
764
0.647913
74cc020407c24b5c357a2f4b45f4cbc25559097f
3,826
py
Python
common/http_extended.py
pythings/PythingsOS
276b41a32af7fa0d5395b2bb308e611f784f9711
[ "Apache-2.0" ]
11
2020-01-15T14:25:48.000Z
2021-11-25T04:21:18.000Z
common/http_extended.py
Pythings/PythingsOS
276b41a32af7fa0d5395b2bb308e611f784f9711
[ "Apache-2.0" ]
8
2021-02-04T16:41:57.000Z
2022-03-29T21:57:15.000Z
common/http_extended.py
pythings/PythingsOS
276b41a32af7fa0d5395b2bb308e611f784f9711
[ "Apache-2.0" ]
null
null
null
from pal import socket import json import logger import hal import pal import env import gc import network from utils import load_param from SIM800L import Modem from platform import platform class Uart(object): def __init__(self, softuart): self.softuart=softuart def write(self, string): ...
30.608
163
0.5954
74cc26464fa8af67783560b1f42b74a0e586815a
5,482
py
Python
atlasph/i2c.py
AshuJoshi/environmentalSensing
1fee3a2a6959e22b74d53d5a253c4a3f07d02266
[ "MIT" ]
null
null
null
atlasph/i2c.py
AshuJoshi/environmentalSensing
1fee3a2a6959e22b74d53d5a253c4a3f07d02266
[ "MIT" ]
null
null
null
atlasph/i2c.py
AshuJoshi/environmentalSensing
1fee3a2a6959e22b74d53d5a253c4a3f07d02266
[ "MIT" ]
null
null
null
#!/usr/bin/python import io import sys import fcntl import time import copy import string from AtlasI2C import ( AtlasI2C ) def print_devices(device_list, device): for i in device_list: if(i == device): print("--> " + i.get_device_info()) else: print(" - ...
37.292517
115
0.540131
74cc31638dbc6a92023b76854a200cbdbf2abcc8
925
py
Python
lewis_emulators/julabo/devices/__init__.py
ISISComputingGroup/EPICS-DeviceEmulator
026c2a14a16bb204ea7527e3765daa182cafa814
[ "BSD-3-Clause" ]
2
2020-10-20T16:49:13.000Z
2021-02-19T10:41:44.000Z
lewis_emulators/julabo/devices/__init__.py
ISISComputingGroup/EPICS-DeviceEmulator
026c2a14a16bb204ea7527e3765daa182cafa814
[ "BSD-3-Clause" ]
9
2019-03-22T15:35:15.000Z
2021-07-28T11:05:43.000Z
lewis_emulators/julabo/interfaces/__init__.py
ISISComputingGroup/EPICS-DeviceEmulator
026c2a14a16bb204ea7527e3765daa182cafa814
[ "BSD-3-Clause" ]
1
2020-10-21T17:02:44.000Z
2020-10-21T17:02:44.000Z
# -*- coding: utf-8 -*- # ********************************************************************* # plankton - a library for creating hardware device simulators # Copyright (C) 2016-2017 European Spallation Source ERIC # # This program is free software: you can redistribute it and/or modify # it under the terms of the GN...
48.684211
71
0.641081
74cc3e1762c6830125fec8eeef759798950da4eb
4,722
py
Python
docs/experiments/object_reach_stable_baselines_image.py
irivers29/robo-gym
d4672e80f3d0ba1c6fc8c4624dd8461ad4551d1b
[ "MIT" ]
null
null
null
docs/experiments/object_reach_stable_baselines_image.py
irivers29/robo-gym
d4672e80f3d0ba1c6fc8c4624dd8461ad4551d1b
[ "MIT" ]
null
null
null
docs/experiments/object_reach_stable_baselines_image.py
irivers29/robo-gym
d4672e80f3d0ba1c6fc8c4624dd8461ad4551d1b
[ "MIT" ]
null
null
null
from asyncio.constants import LOG_THRESHOLD_FOR_CONNLOST_WRITES import time import argparse import os import datetime import gym from matplotlib.pyplot import plot import robo_gym from robo_gym.wrappers.exception_handling import ExceptionHandling import numpy as np from stable_baselines3 import TD3 from stable_baseli...
37.181102
131
0.685938
74cc9fc8f482206cc02ee1aa7c796bd7c636ebf5
2,515
py
Python
models/Xgboost.py
shubham14/Fraud_Detection
44880940c550d5abc0b1dd0cd0b14cc697f4c41f
[ "MIT" ]
null
null
null
models/Xgboost.py
shubham14/Fraud_Detection
44880940c550d5abc0b1dd0cd0b14cc697f4c41f
[ "MIT" ]
null
null
null
models/Xgboost.py
shubham14/Fraud_Detection
44880940c550d5abc0b1dd0cd0b14cc697f4c41f
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ Created on Mon Jul 15 22:16:12 2019 @author: Shubham """ import pandas as pd from sklearn import preprocessing, metrics import xgboost as xgb from time import time import pickle from imblearn.combine import SMOTEENN from sklearn.model_selection import train_test_split def train_model(X_tr...
31.835443
73
0.617495
74ccd6f61a3fbdced2b1deb4ba35da2085130baa
39,207
py
Python
applications/admin/languages/tr.py
ngsimon/web2py
93297fed8a3a916b45d17f5c4d5d2b80aaf92788
[ "BSD-3-Clause" ]
1,573
2015-01-01T07:19:06.000Z
2022-03-30T09:06:06.000Z
applications/admin/languages/tr.py
ngsimon/web2py
93297fed8a3a916b45d17f5c4d5d2b80aaf92788
[ "BSD-3-Clause" ]
1,691
2015-01-03T11:03:23.000Z
2022-03-30T07:27:28.000Z
applications/admin/languages/tr.py
ngsimon/web2py
93297fed8a3a916b45d17f5c4d5d2b80aaf92788
[ "BSD-3-Clause" ]
895
2015-01-03T19:56:15.000Z
2022-03-18T18:30:57.000Z
# -*- coding: utf-8 -*- { '!langcode!': 'tr', '!langname!': 'Türkçe', '"update" is an optional expression like "field1=\'newvalue\'". You cannot update or delete the results of a JOIN': '"güncelleme" ("update") "field1 = \'yenideğer\'" gibi seçeneğe bağlı bir ifadedir. JOIN sonuçlarını silemez veya silemezsiniz.', '"Us...
57.742268
802
0.721147
74cd01a53d726bff651f120ea6091288f431d72c
2,694
py
Python
test/integration/test_disco_dynamodb.py
Angakkuq/asiaq-aws
f7ddec9fc60aef685f372cbaefee2b08ae18b6a0
[ "BSD-2-Clause" ]
null
null
null
test/integration/test_disco_dynamodb.py
Angakkuq/asiaq-aws
f7ddec9fc60aef685f372cbaefee2b08ae18b6a0
[ "BSD-2-Clause" ]
4
2016-03-22T17:04:04.000Z
2016-03-23T18:03:45.000Z
test/integration/test_disco_dynamodb.py
Angakkuit/asiaq-aws
f7ddec9fc60aef685f372cbaefee2b08ae18b6a0
[ "BSD-2-Clause" ]
null
null
null
""" Integration tests for disco_dynamodb.py """ import json from random import randint from test.helpers.integration_helpers import IntegrationTest MOCK_TABLE_NAME = "IntegrationTest" CREATE_CMD = "disco_dynamodb.py create --env {0} --config test/test_dynamodb_create.json --wait" DELETE_CMD = "disco_dynamodb.py dele...
42.761905
106
0.650705
74cd051ff817105c24574390f293b43e0d6937df
16,185
py
Python
distributed/tests/test_utils.py
willirath/distributed
67fe8208a0a6edc18e02a4c5080d81fb11eab338
[ "BSD-3-Clause" ]
1
2020-12-07T14:35:09.000Z
2020-12-07T14:35:09.000Z
distributed/tests/test_utils.py
willirath/distributed
67fe8208a0a6edc18e02a4c5080d81fb11eab338
[ "BSD-3-Clause" ]
2
2021-05-11T16:00:55.000Z
2021-08-23T20:45:22.000Z
distributed/tests/test_utils.py
willirath/distributed
67fe8208a0a6edc18e02a4c5080d81fb11eab338
[ "BSD-3-Clause" ]
1
2020-12-16T05:38:10.000Z
2020-12-16T05:38:10.000Z
import asyncio import array import datetime from functools import partial import io import os import queue import socket import sys from time import sleep import traceback import numpy as np import pytest from tornado.ioloop import IOLoop import dask from distributed.metrics import time from distributed.utils import ...
25.56872
88
0.614581
74cd4db5462a7462479da18d42eb8e409c5a89db
28,223
py
Python
sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2021_04_01/models/__init__.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
1
2021-09-07T18:39:05.000Z
2021-09-07T18:39:05.000Z
sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2021_04_01/models/__init__.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
null
null
null
sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2021_04_01/models/__init__.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
1
2022-03-04T06:21:56.000Z
2022-03-04T06:21:56.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 may ...
38.982044
94
0.825639
74cd8654b0a6475982ba79e95c85462361e6dd8e
496
py
Python
ninja/__init__.py
fcortes/django-ninja
c29a5ae298ec22e25f8ee49c7787bd8a311bac78
[ "MIT" ]
null
null
null
ninja/__init__.py
fcortes/django-ninja
c29a5ae298ec22e25f8ee49c7787bd8a311bac78
[ "MIT" ]
null
null
null
ninja/__init__.py
fcortes/django-ninja
c29a5ae298ec22e25f8ee49c7787bd8a311bac78
[ "MIT" ]
null
null
null
"""Django Ninja - Fast Django REST framework""" __version__ = "0.13.2" from pydantic import Field from ninja.files import UploadedFile from ninja.main import NinjaAPI from ninja.params_functions import Body, Cookie, File, Form, Header, Path, Query from ninja.router import Router from ninja.schema import Schema __al...
18.37037
80
0.657258
74cd8c2ca1fff8b19eebc75a0db1937aa10414f9
2,883
py
Python
Common/IO/FileInfo/FileInfo.py
enriqueescobar-askida/Kinito.Finance
5308748b64829ac798a858161f9b4a9e5829db44
[ "MIT" ]
2
2020-03-04T11:18:38.000Z
2020-05-10T15:36:42.000Z
Common/IO/FileInfo/FileInfo.py
enriqueescobar-askida/Kinito.Finance
5308748b64829ac798a858161f9b4a9e5829db44
[ "MIT" ]
6
2020-03-30T16:42:47.000Z
2021-12-13T20:37:21.000Z
Common/IO/FileInfo/FileInfo.py
enriqueescobar-askida/Kinito.Finance
5308748b64829ac798a858161f9b4a9e5829db44
[ "MIT" ]
1
2020-04-14T11:26:16.000Z
2020-04-14T11:26:16.000Z
#from Common.IO.FileInfo import IFileInfo import datetime import os from abc import * from pathlib import Path class FileInfo(ABC): __length: int = 0 __path_orig: str = '' __path_abs: str = '' __dir_name: str = '' __dir_path: str = '' __dir_root: str = '' __extension: str = '' __name: ...
25.289474
82
0.627125
74cdd1e033332d3e26f5bc877a8017cc636a3dff
5,097
py
Python
improver_tests/ensemble_copula_coupling/ecc_test_data.py
owena11/improver
ff658db31364c0bdf3af3940736c260e10544705
[ "BSD-3-Clause" ]
77
2017-04-26T07:47:40.000Z
2022-03-31T09:40:49.000Z
improver_tests/ensemble_copula_coupling/ecc_test_data.py
owena11/improver
ff658db31364c0bdf3af3940736c260e10544705
[ "BSD-3-Clause" ]
1,440
2017-03-29T10:04:15.000Z
2022-03-28T10:11:29.000Z
improver_tests/ensemble_copula_coupling/ecc_test_data.py
MoseleyS/improver
ca028e3a1c842e3ff00b188c8ea6eaedd0a07149
[ "BSD-3-Clause" ]
72
2017-03-17T16:53:45.000Z
2022-02-16T09:41:37.000Z
# -*- coding: utf-8 -*- # ----------------------------------------------------------------------------- # (C) British Crown Copyright 2017-2021 Met Office. # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions a...
36.407143
87
0.65568
74cdf180dc6e55097aeba9bedae69aa17e3465f8
12,490
py
Python
PythonProjects/99-CapstoneProject-202020-DavidAndVIbha/libs/mqtt_remote_method_calls.py
much2mutch/csse120-public
4f862a6deb7a5373fb5723fb2a23e4042e4d4157
[ "MIT" ]
null
null
null
PythonProjects/99-CapstoneProject-202020-DavidAndVIbha/libs/mqtt_remote_method_calls.py
much2mutch/csse120-public
4f862a6deb7a5373fb5723fb2a23e4042e4d4157
[ "MIT" ]
null
null
null
PythonProjects/99-CapstoneProject-202020-DavidAndVIbha/libs/mqtt_remote_method_calls.py
much2mutch/csse120-public
4f862a6deb7a5373fb5723fb2a23e4042e4d4157
[ "MIT" ]
null
null
null
############################################################################### # STUDENTS: *** Do NOT change ANYTHING in this module. *** ############################################################################### """ Library for making MQTT remote method calls. The purpose of the MqttClient class is to all...
40.551948
146
0.638191
74ce1175156e79d28dde3ddbdd1588c882a53eb5
10,906
py
Python
sdk/sql/azure-mgmt-sql/azure/mgmt/sql/operations/_maintenance_windows_operations.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
1
2022-03-09T08:59:13.000Z
2022-03-09T08:59:13.000Z
sdk/sql/azure-mgmt-sql/azure/mgmt/sql/operations/_maintenance_windows_operations.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
null
null
null
sdk/sql/azure-mgmt-sql/azure/mgmt/sql/operations/_maintenance_windows_operations.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
null
null
null
# 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 may ...
42.108108
222
0.692004
74ce2878876242fa01c18e56fd134b9b5bcb611d
1,781
py
Python
mailanalyzer/detector/hostname.py
COMSYS/MailAnalyzer
8cc51c4165f4f7851eaf513cfc5db6d930c289e8
[ "MIT" ]
4
2018-01-18T15:29:22.000Z
2021-11-23T12:32:50.000Z
mailanalyzer/detector/hostname.py
COMSYS/MailAnalyzer
8cc51c4165f4f7851eaf513cfc5db6d930c289e8
[ "MIT" ]
null
null
null
mailanalyzer/detector/hostname.py
COMSYS/MailAnalyzer
8cc51c4165f4f7851eaf513cfc5db6d930c289e8
[ "MIT" ]
1
2019-10-08T19:07:25.000Z
2019-10-08T19:07:25.000Z
from mailanalyzer.detector.abstract import AbstractDetector import os import glob import re import csv import xml.etree.cElementTree as ET class HostNameDetector(AbstractDetector): def __init__(self): path = os.path.join(os.path.dirname(__file__),'domainRegex') files = glob.glob(path + '/*.xml') self.hostn...
27.828125
86
0.664795
74ce44dd86ffcb7ca0e8b4269d88d8cb6647783c
2,989
py
Python
data/images/intro/rhodiumize.py
andy-hanson/monis-xtreme
5d483e93adaf4425364919344f9a092c16b79577
[ "Unlicense" ]
null
null
null
data/images/intro/rhodiumize.py
andy-hanson/monis-xtreme
5d483e93adaf4425364919344f9a092c16b79577
[ "Unlicense" ]
null
null
null
data/images/intro/rhodiumize.py
andy-hanson/monis-xtreme
5d483e93adaf4425364919344f9a092c16b79577
[ "Unlicense" ]
null
null
null
import math import pygame #Settings A: rad=160, b**=12, if 31.0/32 > rad2/rad < 1: b = 1.0/12, s3.set_alpha(28) imageName = 'sample.png' rad = 160 s3 = pygame.display.set_mode((rad*2-1,rad*2-1)) s = pygame.image.load(imageName)#pygame.transform.scale(pygame.image.load(imageName),(2400,2400)) w = s.get_...
30.5
98
0.479759
74ce70114bade67fbc86b096606eb898155e7b17
8,463
py
Python
GNNp_regression/train.py
PNNL-CompBio/pf-gnn_pli
e6d857ab64885c431c311e6d2957ab10f70935a4
[ "BSD-2-Clause" ]
2
2022-02-11T06:10:07.000Z
2022-03-02T23:10:11.000Z
GNNp_regression/train.py
nkkchem/pf-gnn_pli
ba4189734e37202e5507b7ae1d52ea214d6c8ba2
[ "BSD-2-Clause" ]
null
null
null
GNNp_regression/train.py
nkkchem/pf-gnn_pli
ba4189734e37202e5507b7ae1d52ea214d6c8ba2
[ "BSD-2-Clause" ]
1
2022-03-29T00:48:31.000Z
2022-03-29T00:48:31.000Z
import pickle import random import csv from gnn import gnn import time import numpy as np import utils import torch.nn as nn import torch import time import os from sklearn import metrics from sklearn.metrics import roc_auc_score import argparse import time from torch.utils.data import DataLoader ...
40.3
117
0.656859
74ce9b9cb173fa05c881d443a8cc33cd149e68a8
295
py
Python
151. Reverse Words in a String.py
Jorewang/LeetCode_Solutions
0c483a915e2a8b3bfc4bcb4b5a35df3dd0dbe8ba
[ "Apache-2.0" ]
2
2020-06-13T06:37:50.000Z
2020-06-13T06:37:52.000Z
151. Reverse Words in a String.py
Jorewang/LeetCode_Solutions
0c483a915e2a8b3bfc4bcb4b5a35df3dd0dbe8ba
[ "Apache-2.0" ]
null
null
null
151. Reverse Words in a String.py
Jorewang/LeetCode_Solutions
0c483a915e2a8b3bfc4bcb4b5a35df3dd0dbe8ba
[ "Apache-2.0" ]
null
null
null
class Solution(object): def reverseWords(self, s): li = s.split(' ') res = [] for i in li: if i: res.insert(0, i) return ' '.join(res) if __name__ == '__main__': s = 'the sky is blue' print(Solution().reverseWords(s))
19.666667
37
0.481356
74cea482e053f3113b315ff9b880e158c2979a56
5,702
py
Python
masakari/monitors/instancemonitor/libvirt_eventfilter.py
sampathP/openstack-masakari
108d988165271b7bafd66d985ff1000537ef3183
[ "Apache-2.0" ]
54
2015-08-19T01:58:56.000Z
2020-08-31T09:04:15.000Z
masakari/monitors/instancemonitor/libvirt_eventfilter.py
sampathP/openstack-masakari
108d988165271b7bafd66d985ff1000537ef3183
[ "Apache-2.0" ]
43
2015-12-10T05:00:38.000Z
2020-01-30T14:38:37.000Z
masakari/monitors/instancemonitor/libvirt_eventfilter.py
sampathP/openstack-masakari
108d988165271b7bafd66d985ff1000537ef3183
[ "Apache-2.0" ]
39
2015-10-01T07:12:13.000Z
2019-10-15T11:39:45.000Z
#!/usr/bin/python # -*- coding: utf-8 -*- # Copyright(c) 2015 Nippon Telegraph and Telephone Corporation # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/license...
24.899563
77
0.582603
74cecd9ade35f8a4ceb614656235c987e8369632
2,701
py
Python
examples/xml/Add_page_test.py
robotafm/Capsule
bf1ceef28f3ef2c0e97ee78203815f51783270e3
[ "MIT" ]
null
null
null
examples/xml/Add_page_test.py
robotafm/Capsule
bf1ceef28f3ef2c0e97ee78203815f51783270e3
[ "MIT" ]
null
null
null
examples/xml/Add_page_test.py
robotafm/Capsule
bf1ceef28f3ef2c0e97ee78203815f51783270e3
[ "MIT" ]
null
null
null
import hashlib import pytesseract import cv2 import os import sys import socket import xml.dom.minidom import tempfile import time import subprocess as sp djvu_file = r'D:\Data\testdata\djvu\test2_multipage.djvu' image_file = r'D:\Data\testdata\img\OCR\tests.png' alto_xml_file = r'D:\Data\testdata\xml\t...
38.585714
106
0.659385
74cee31471f695ada98e08a9a6a624616ba0017c
203
py
Python
react-django/backend/todo/serializers.py
dhy3y/Metamorphosis-Automation
9a0113ef63283a5fae591c1348288c62f3f8c727
[ "MIT" ]
null
null
null
react-django/backend/todo/serializers.py
dhy3y/Metamorphosis-Automation
9a0113ef63283a5fae591c1348288c62f3f8c727
[ "MIT" ]
null
null
null
react-django/backend/todo/serializers.py
dhy3y/Metamorphosis-Automation
9a0113ef63283a5fae591c1348288c62f3f8c727
[ "MIT" ]
null
null
null
from rest_framework import serializers from .models import Todo class TodoSerializer(serializers.ModelSerializer): class Meta: model = Todo fields = ('id', 'title', 'description', 'completed')
29
56
0.743842
74cefcc865b462ea97bb262bab98f2f5aa97c51b
14,345
py
Python
Tools/Scripts/webkitpy/style/checkers/changelog_unittest.py
jacadcaps/webkitty
9aebd2081349f9a7b5d168673c6f676a1450a66d
[ "BSD-2-Clause" ]
6
2021-07-05T16:09:39.000Z
2022-03-06T22:44:42.000Z
Tools/Scripts/webkitpy/style/checkers/changelog_unittest.py
jacadcaps/webkitty
9aebd2081349f9a7b5d168673c6f676a1450a66d
[ "BSD-2-Clause" ]
7
2022-03-15T13:25:39.000Z
2022-03-15T13:25:44.000Z
Tools/Scripts/webkitpy/style/checkers/changelog_unittest.py
jacadcaps/webkitty
9aebd2081349f9a7b5d168673c6f676a1450a66d
[ "BSD-2-Clause" ]
null
null
null
# Copyright (C) 2010 Apple Inc. All rights reserved. # Copyright (C) 2011 Patrick Gansterer <paroga@paroga.com> # # 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 abov...
58.076923
125
0.487138
74cf090e27da7af198419a183d46a32485b536a8
13,874
py
Python
lib/model/fpn/detnet_backbone.py
LeftThink/DetNet_pytorch
c8205fb4cba24bac97bf10a37d74f9940aa0b9c8
[ "MIT" ]
2
2020-01-19T01:21:42.000Z
2020-11-18T01:50:17.000Z
lib/model/fpn/detnet_backbone.py
LeftThink/DetNet_pytorch
c8205fb4cba24bac97bf10a37d74f9940aa0b9c8
[ "MIT" ]
null
null
null
lib/model/fpn/detnet_backbone.py
LeftThink/DetNet_pytorch
c8205fb4cba24bac97bf10a37d74f9940aa0b9c8
[ "MIT" ]
4
2019-01-02T09:14:49.000Z
2020-12-22T02:12:57.000Z
from __future__ import absolute_import from __future__ import division from __future__ import print_function from model.utils.config import cfg from model.fpn.fpn import _FPN import torch import torch.nn as nn import math __all__ = ['DetNet', 'detnet59'] def conv3x3(in_planes, out_planes, stride=1): "3x3 convo...
35.035354
118
0.591466
74cf0a2b0f62b1aa34bdb5d70fd7f016c3982b59
13,394
py
Python
python/tvm/contrib/cutlass/gen_gemm.py
ZihengJiang/relax
5676ffa4c423adf2b3f1920c5fdaca43369e9855
[ "Apache-2.0" ]
1
2020-04-01T07:18:38.000Z
2020-04-01T07:18:38.000Z
python/tvm/contrib/cutlass/gen_gemm.py
ZihengJiang/relax
5676ffa4c423adf2b3f1920c5fdaca43369e9855
[ "Apache-2.0" ]
null
null
null
python/tvm/contrib/cutlass/gen_gemm.py
ZihengJiang/relax
5676ffa4c423adf2b3f1920c5fdaca43369e9855
[ "Apache-2.0" ]
null
null
null
# Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. The ASF licenses this file # to you under the Apache License, Version 2.0 (the # "License"); you may not u...
37.205556
98
0.577721
74cf176a8b8b6522ca60d8acf20e85db65b1fc75
23,294
py
Python
CADRE/attitude.py
robfalck/CADRE
f1fb419aade62fe830d56d958f35f1e153f04363
[ "Apache-2.0" ]
6
2015-05-13T23:44:26.000Z
2021-05-30T07:23:30.000Z
CADRE/attitude.py
robfalck/CADRE
f1fb419aade62fe830d56d958f35f1e153f04363
[ "Apache-2.0" ]
4
2018-07-24T20:10:52.000Z
2018-09-07T17:16:51.000Z
CADRE/attitude.py
robfalck/CADRE
f1fb419aade62fe830d56d958f35f1e153f04363
[ "Apache-2.0" ]
14
2015-07-21T17:41:42.000Z
2020-07-31T09:49:09.000Z
""" Attitude discipline for CADRE. """ from six.moves import range import numpy as np from openmdao.api import ExplicitComponent from CADRE.kinematics import computepositionrotd, computepositionrotdjacobian class Attitude_Angular(ExplicitComponent): """ Calculates angular velocity vector from the satellite...
32.670407
89
0.431184
74cf3c054feccfcd49b60fded5033d5cf61649f2
711
py
Python
fbchat/__init__.py
krzesu0/fbchat
ec4a7b9917167f331a74c1093d88d8f60e1c9030
[ "BSD-3-Clause" ]
null
null
null
fbchat/__init__.py
krzesu0/fbchat
ec4a7b9917167f331a74c1093d88d8f60e1c9030
[ "BSD-3-Clause" ]
null
null
null
fbchat/__init__.py
krzesu0/fbchat
ec4a7b9917167f331a74c1093d88d8f60e1c9030
[ "BSD-3-Clause" ]
1
2019-11-11T15:46:24.000Z
2019-11-11T15:46:24.000Z
# -*- coding: UTF-8 -*- """Facebook Chat (Messenger) for Python :copyright: (c) 2015 - 2019 by Taehoon Kim :license: BSD 3-Clause, see LICENSE for more details. """ from __future__ import unicode_literals # These imports are far too general, but they're needed for backwards compatbility. from .models import * from ....
27.346154
83
0.73699
74cf5f95a422c1faebe1532f715ebdea873cd638
31,723
py
Python
sdk/search/azure-search-documents/azure/search/documents/indexes/_generated/operations/_skillsets_operations.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
1
2022-03-09T08:59:13.000Z
2022-03-09T08:59:13.000Z
sdk/search/azure-search-documents/azure/search/documents/indexes/_generated/operations/_skillsets_operations.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
null
null
null
sdk/search/azure-search-documents/azure/search/documents/indexes/_generated/operations/_skillsets_operations.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
null
null
null
# pylint: disable=too-many-lines # 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) AutoRe...
43.396717
188
0.674999
74cfbb8e60f30ce87dc00d820abcb3b13afdfcca
1,944
py
Python
lbrynet/tests/unit/test_customLogger.py
D474designs/lbry
149fa625e0ad91da9c227963cb65ca673cdc8af8
[ "MIT" ]
null
null
null
lbrynet/tests/unit/test_customLogger.py
D474designs/lbry
149fa625e0ad91da9c227963cb65ca673cdc8af8
[ "MIT" ]
null
null
null
lbrynet/tests/unit/test_customLogger.py
D474designs/lbry
149fa625e0ad91da9c227963cb65ca673cdc8af8
[ "MIT" ]
null
null
null
import StringIO import logging import mock import unittest from twisted.internet import defer from twisted import trial from lbrynet import custom_logger from lbrynet.tests.util import is_android class TestLogger(trial.unittest.TestCase): def raiseError(self): raise Exception('terrible things happened')...
36
94
0.676955
74cfd3b9669e981c3b7eeaa6dc515b63f4b07bac
652
py
Python
content/test/gpu/gpu_tests/trace_test_expectations.py
Wzzzx/chromium-crosswalk
768dde8efa71169f1c1113ca6ef322f1e8c9e7de
[ "BSD-3-Clause-No-Nuclear-License-2014", "BSD-3-Clause" ]
2
2019-01-28T08:09:58.000Z
2021-11-15T15:32:10.000Z
content/test/gpu/gpu_tests/trace_test_expectations.py
maidiHaitai/haitaibrowser
a232a56bcfb177913a14210e7733e0ea83a6b18d
[ "BSD-3-Clause" ]
null
null
null
content/test/gpu/gpu_tests/trace_test_expectations.py
maidiHaitai/haitaibrowser
a232a56bcfb177913a14210e7733e0ea83a6b18d
[ "BSD-3-Clause" ]
6
2020-09-23T08:56:12.000Z
2021-11-18T03:40:49.000Z
# Copyright 2015 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 gpu_tests.gpu_test_expectations import GpuTestExpectations # See the GpuTestExpectations class for documentation. class TraceTestExpectations(GpuTestE...
31.047619
72
0.748466
74cfde38befbacd8993dee81ffb3eb59d2d53e1a
1,044
py
Python
tests/test_encodings.py
evandroforks/sublime_lib
7d013cd85dbcc10b66e8c81a07160b2dd55f3138
[ "MIT" ]
49
2018-04-11T01:18:02.000Z
2021-09-17T14:34:56.000Z
tests/test_encodings.py
evandrocoan/sublime_lib
7d013cd85dbcc10b66e8c81a07160b2dd55f3138
[ "MIT" ]
115
2018-04-03T18:53:17.000Z
2021-12-07T09:36:33.000Z
tests/test_encodings.py
evandrocoan/sublime_lib
7d013cd85dbcc10b66e8c81a07160b2dd55f3138
[ "MIT" ]
5
2018-11-26T12:07:47.000Z
2020-03-27T12:31:55.000Z
from sublime_lib.encodings import from_sublime, to_sublime from unittest import TestCase class TestEncodings(TestCase): def test_from(self): self.assertEqual( from_sublime("Western (Windows 1252)"), "cp1252" ) def test_from_error(self): with self.assertRaises...
23.727273
58
0.560345
74cff71980c2ac898e90664affc71c2234366ee5
600
py
Python
tests/data/expected/main/main_nested_directory/definitions/friends.py
adaamz/datamodel-code-generator
3b34573f35f8d420e4668a85047c757fd1da7754
[ "MIT" ]
891
2019-07-23T04:23:32.000Z
2022-03-31T13:36:33.000Z
tests/data/expected/main/main_nested_directory/definitions/friends.py
adaamz/datamodel-code-generator
3b34573f35f8d420e4668a85047c757fd1da7754
[ "MIT" ]
663
2019-07-23T09:50:26.000Z
2022-03-29T01:56:55.000Z
tests/data/expected/main/main_nested_directory/definitions/friends.py
adaamz/datamodel-code-generator
3b34573f35f8d420e4668a85047c757fd1da7754
[ "MIT" ]
108
2019-07-23T08:50:37.000Z
2022-03-09T10:50:22.000Z
# generated by datamodel-codegen: # filename: definitions/friends.json # timestamp: 2019-07-26T00:00:00+00:00 from __future__ import annotations from typing import List, Optional, Union from pydantic import BaseModel, Extra, Field from . import food class Friend(BaseModel): class Config: extra = ...
24
71
0.7
74cffa35db81013d7a3a5b26974a331a11dbe6b0
23,430
py
Python
ArchiverAccess/test_modules/test_log_file_creator.py
GustavLero/EPICS-inst_servers
4bcdd6a80f1d9e074de3f0f7c66968d506981988
[ "BSD-3-Clause" ]
1
2020-08-20T23:38:53.000Z
2020-08-20T23:38:53.000Z
ArchiverAccess/test_modules/test_log_file_creator.py
GustavLero/EPICS-inst_servers
4bcdd6a80f1d9e074de3f0f7c66968d506981988
[ "BSD-3-Clause" ]
88
2015-09-03T11:50:41.000Z
2021-02-18T19:13:04.000Z
ArchiverAccess/test_modules/test_log_file_creator.py
GustavLero/EPICS-inst_servers
4bcdd6a80f1d9e074de3f0f7c66968d506981988
[ "BSD-3-Clause" ]
1
2020-08-20T23:38:05.000Z
2020-08-20T23:38:05.000Z
# This file is part of the ISIS IBEX application. # Copyright (C) 2012-2016 Science & Technology Facilities Council. # All rights reserved. # # This program is distributed in the hope that it will be useful. # This program and the accompanying materials are made available under the # terms of the Eclipse Public License...
53.129252
157
0.696329
74cffb11125f7a36b15a7966cc167630b28eb4f1
1,760
py
Python
dragons/plugins/azan.py
TeamDragons/Dragons-Userbot
e40584f4dc898b785523adea4519ffb412dc92c4
[ "MIT" ]
3
2021-08-11T08:33:39.000Z
2022-01-17T00:09:11.000Z
dragons/plugins/azan.py
sophiashirashaki/Dragons-Userbot
2255c18428e488a267eaec1ec8c081fabcde167a
[ "MIT" ]
null
null
null
dragons/plugins/azan.py
sophiashirashaki/Dragons-Userbot
2255c18428e488a267eaec1ec8c081fabcde167a
[ "MIT" ]
6
2021-08-14T08:20:41.000Z
2022-03-20T02:31:45.000Z
# ported from uniborg # https://github.com/muhammedfurkan/UniBorg/blob/master/stdplugins/ezanvakti.py import json import requests from ..sql_helper.globals import gvarstatus from . import drgub, edit_delete, edit_or_reply plugin_category = "extra" @drgub.drg_cmd( pattern="azan(?:\s|$)([\s\S]*)", command=("a...
41.904762
96
0.578977
74d0138301682d9a3f43b1533ed714e463023fe2
914
py
Python
pak/util/interfaces.py
friedkeenan/pak.py
dd1ff188fa3274e3e329ec436da47c4db97a09d4
[ "0BSD" ]
6
2021-05-22T21:02:04.000Z
2022-02-12T01:14:12.000Z
pak/util/interfaces.py
friedkeenan/pak.py
dd1ff188fa3274e3e329ec436da47c4db97a09d4
[ "0BSD" ]
null
null
null
pak/util/interfaces.py
friedkeenan/pak.py
dd1ff188fa3274e3e329ec436da47c4db97a09d4
[ "0BSD" ]
null
null
null
"""Utilities for checking object interfaces.""" import io __all__ = [ "is_iterable", "file_object", ] def is_iterable(obj): """Checks if an object is iterable. Parameters ---------- obj The object to check. ``obj`` is iterable if it can be used in the following expression:: ...
17.245283
61
0.551422
74d014f991a4e526a28144305743255dc10db81e
6,086
py
Python
VideoSimulationManagerAgent.py
TheVinhLuong102/BlocksBot
ad8bb17f43ca72ab4511189d0f2abd02dec5478c
[ "Apache-2.0" ]
2
2020-09-05T00:08:27.000Z
2021-11-03T08:17:52.000Z
VideoSimulationManagerAgent.py
TheVinhLuong102/BlocksBot
ad8bb17f43ca72ab4511189d0f2abd02dec5478c
[ "Apache-2.0" ]
null
null
null
VideoSimulationManagerAgent.py
TheVinhLuong102/BlocksBot
ad8bb17f43ca72ab4511189d0f2abd02dec5478c
[ "Apache-2.0" ]
2
2020-05-19T16:48:17.000Z
2020-09-05T00:08:29.000Z
# coding : utf-8 ''' Copyright 2020-2021 Agnese Salutari. 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 ...
34.977011
121
0.685508
74d018f3010a99f3dd5250ca36a2904263ef3d9b
2,921
py
Python
experiment/classification_baseline.py
Howe-Young/asc_triplet
12a018e6fd14c61ffedc87c8609b128e28c51d8d
[ "MIT" ]
7
2019-01-08T11:02:50.000Z
2021-01-12T14:16:51.000Z
experiment/classification_baseline.py
Howe-Young/asc_triplet
12a018e6fd14c61ffedc87c8609b128e28c51d8d
[ "MIT" ]
4
2019-01-08T12:47:58.000Z
2019-01-09T12:18:54.000Z
experiment/classification_baseline.py
Howe-Young/asc_triplet
12a018e6fd14c61ffedc87c8609b128e28c51d8d
[ "MIT" ]
6
2019-01-04T14:13:47.000Z
2020-06-17T07:48:17.000Z
from data_manager.datasets import DevSet from data_manager.mean_variance import TaskbStandarizer from data_manager.data_prepare import Dcase18TaskbData from torchvision.transforms import Compose from data_manager.transformer import ToTensor, Normalize from torch.utils.data import DataLoader import os from networks impo...
38.434211
120
0.713797
74d01d1cf372f33a85d2d861a1a1af7349d1bf78
16,988
py
Python
sdk/appconfiguration/azure-mgmt-appconfiguration/azure/mgmt/appconfiguration/aio/operations/_key_values_operations.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
1
2022-03-09T08:59:13.000Z
2022-03-09T08:59:13.000Z
sdk/appconfiguration/azure-mgmt-appconfiguration/azure/mgmt/appconfiguration/aio/operations/_key_values_operations.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
null
null
null
sdk/appconfiguration/azure-mgmt-appconfiguration/azure/mgmt/appconfiguration/aio/operations/_key_values_operations.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
1
2022-03-04T06:21:56.000Z
2022-03-04T06:21:56.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 may ...
46.542466
225
0.681187
74d01efdf793d034e622c208cac3b72d5d90dc86
327
py
Python
datawinners/smsapi/accounting.py
ICT4H/dcs-web
fb0f53fad4401cfac1c1789ff28b9d5bda40c975
[ "Apache-2.0" ]
1
2015-11-02T09:11:12.000Z
2015-11-02T09:11:12.000Z
datawinners/smsapi/accounting.py
ICT4H/dcs-web
fb0f53fad4401cfac1c1789ff28b9d5bda40c975
[ "Apache-2.0" ]
null
null
null
datawinners/smsapi/accounting.py
ICT4H/dcs-web
fb0f53fad4401cfac1c1789ff28b9d5bda40c975
[ "Apache-2.0" ]
null
null
null
from string import upper default_non_chargable_map = ['ACCEPTED', 'UNKNOWN', "REJECTD"] not_chargable_map = { 'infobip': default_non_chargable_map } def is_chargable(status, smsc): if upper(status)=="DELIVRD": return True return upper(status) not in not_chargable_map.get(smsc, default_non_chargabl...
27.25
86
0.743119
74d0420ce0217f2377055d3d665c548c3ef024c8
4,749
py
Python
keystone/tests/unit/common/test_connection_pool.py
yanheven/keystone
417b8941095f40674575ed951b4a03ebcdc91fef
[ "Apache-2.0" ]
null
null
null
keystone/tests/unit/common/test_connection_pool.py
yanheven/keystone
417b8941095f40674575ed951b4a03ebcdc91fef
[ "Apache-2.0" ]
null
null
null
keystone/tests/unit/common/test_connection_pool.py
yanheven/keystone
417b8941095f40674575ed951b4a03ebcdc91fef
[ "Apache-2.0" ]
1
2020-07-02T09:12:28.000Z
2020-07-02T09:12:28.000Z
# Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under t...
39.575
78
0.693409
74d05a870c6a962dc38932c407c0e4721f6016c8
3,530
py
Python
predict.py
shvetchakra/ImageClassifier
d9ecc83ddfdbe65951394e4636d96e73ef6d1289
[ "MIT" ]
null
null
null
predict.py
shvetchakra/ImageClassifier
d9ecc83ddfdbe65951394e4636d96e73ef6d1289
[ "MIT" ]
null
null
null
predict.py
shvetchakra/ImageClassifier
d9ecc83ddfdbe65951394e4636d96e73ef6d1289
[ "MIT" ]
null
null
null
import torch from torch import nn from torch import optim from torchvision import datasets, transforms, models import json import argparse import os import numpy as np from PIL import Image import itertools parser1 = argparse.ArgumentParser() parser1.add_argument('img_path') parser1.add_argument('checkpoint') parser1....
32.685185
106
0.658074
74d0996aa6001060e73650101f57a0a51c4ce1cf
537
py
Python
src/fastapi_aad_auth/mixins/not_authenticated.py
Alex-Chekh/fastapi_aad_auth
4ad21fa76e7422da5d0799695bb547cd3e6224e0
[ "MIT" ]
29
2020-09-04T08:39:42.000Z
2022-01-21T08:43:48.000Z
src/fastapi_aad_auth/mixins/not_authenticated.py
Alex-Chekh/fastapi_aad_auth
4ad21fa76e7422da5d0799695bb547cd3e6224e0
[ "MIT" ]
86
2020-07-30T20:51:19.000Z
2022-03-30T16:55:24.000Z
src/fastapi_aad_auth/mixins/not_authenticated.py
Alex-Chekh/fastapi_aad_auth
4ad21fa76e7422da5d0799695bb547cd3e6224e0
[ "MIT" ]
11
2020-10-16T07:17:16.000Z
2022-02-09T17:13:55.000Z
"""Add not_authenticated error to a class.""" from fastapi import HTTPException from starlette.status import HTTP_401_UNAUTHORIZED class NotAuthenticatedMixin: """Provide an error for not authenticated error.""" @property def not_authenticated(self): """Create an error for unauthenticated request...
31.588235
59
0.642458
74d0a001ed0646378b8bc96b45bfa3c457a932b1
6,041
py
Python
api_interface.py
CSugarPrince/Historical-Forex-Predictor
f50eb317852e540c3dfb3199769ce0ba250bf741
[ "MIT" ]
null
null
null
api_interface.py
CSugarPrince/Historical-Forex-Predictor
f50eb317852e540c3dfb3199769ce0ba250bf741
[ "MIT" ]
null
null
null
api_interface.py
CSugarPrince/Historical-Forex-Predictor
f50eb317852e540c3dfb3199769ce0ba250bf741
[ "MIT" ]
null
null
null
import requests import datetime import pytz # TODO: proper error-checking for get_historical_rates() # TODO: implement logging for error messages generated by the API. replace print statement # TODO: code input checking for get_historical_rates. ensure that input is valid date format. ################################...
34.323864
151
0.590796
74d0aad0d1ea4bf4706c4a89cf96d75d29aa0d3c
7,397
py
Python
TrainingExtensions/torch/src/python/aimet_torch/winnow/winnow_utils.py
lipovsek/aimet
236fb02cc6c45e65c067030416c49a09ace82045
[ "BSD-3-Clause" ]
945
2020-04-30T02:23:55.000Z
2022-03-31T08:44:32.000Z
TrainingExtensions/torch/src/python/aimet_torch/winnow/winnow_utils.py
lipovsek/aimet
236fb02cc6c45e65c067030416c49a09ace82045
[ "BSD-3-Clause" ]
563
2020-05-01T03:07:22.000Z
2022-03-30T05:35:58.000Z
TrainingExtensions/torch/src/python/aimet_torch/winnow/winnow_utils.py
lipovsek/aimet
236fb02cc6c45e65c067030416c49a09ace82045
[ "BSD-3-Clause" ]
186
2020-04-30T00:55:26.000Z
2022-03-30T09:54:51.000Z
# /usr/bin/env python3.5 # -*- mode: python -*- # ============================================================================= # @@-COPYRIGHT-START-@@ # # Copyright (c) 2019, Qualcomm Innovation Center, Inc. All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification,...
37.358586
114
0.662971
74d0b3abd4de6f7d4028fbbc7c875ace10bac9d3
6,929
py
Python
art/metrics_unittest.py
yalechang/adversarial-robustness-toolbox
df4efc86c3ed963c82687b3ab8cd5cdbd5fe5c57
[ "MIT" ]
1
2022-03-02T19:05:12.000Z
2022-03-02T19:05:12.000Z
art/metrics_unittest.py
yalechang/adversarial-robustness-toolbox
df4efc86c3ed963c82687b3ab8cd5cdbd5fe5c57
[ "MIT" ]
null
null
null
art/metrics_unittest.py
yalechang/adversarial-robustness-toolbox
df4efc86c3ed963c82687b3ab8cd5cdbd5fe5c57
[ "MIT" ]
null
null
null
from __future__ import absolute_import, division, print_function, unicode_literals import unittest import keras.backend as k import tensorflow as tf import numpy as np from art.classifiers.cnn import CNN from art.metrics import empirical_robustness from art.utils import load_mnist, load_cifar10 from art.metrics impo...
33.8
119
0.593592
74d0b744656975d4bb822b863085924bf30a2f94
5,342
py
Python
adv.py
annakooperberg/adversarial
8177aafbc11346c23cd9330cf94904d763d54999
[ "MIT" ]
null
null
null
adv.py
annakooperberg/adversarial
8177aafbc11346c23cd9330cf94904d763d54999
[ "MIT" ]
null
null
null
adv.py
annakooperberg/adversarial
8177aafbc11346c23cd9330cf94904d763d54999
[ "MIT" ]
null
null
null
import torch import torch.nn as nn import torch.nn.functional as F import torch.optim as optim from torch.autograd import Variable import torchvision from torchvision import datasets, transforms, models import matplotlib # % matplotlib inline import matplotlib.pyplot as plt import numpy as np from PIL import Image imp...
31.239766
148
0.739236
74d0cc17f733284ef69520b8232946eb34676223
574
py
Python
samples/contrib/resnet-cmle/resnet_model/trainer/__init__.py
cclauss/pipelines
2592307cceb72fdb61be2673f67d7b4a4bd12023
[ "Apache-2.0" ]
10
2019-12-06T20:10:40.000Z
2022-03-21T18:28:41.000Z
samples/contrib/resnet-cmle/resnet_model/trainer/__init__.py
cclauss/pipelines
2592307cceb72fdb61be2673f67d7b4a4bd12023
[ "Apache-2.0" ]
null
null
null
samples/contrib/resnet-cmle/resnet_model/trainer/__init__.py
cclauss/pipelines
2592307cceb72fdb61be2673f67d7b4a4bd12023
[ "Apache-2.0" ]
10
2019-12-13T18:49:56.000Z
2022-03-03T05:17:37.000Z
# Copyright 2019 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, ...
44.153846
74
0.763066
74d109f431582aa1dd333ae8ad753c313510f745
2,350
py
Python
python/tests/wrapper/test_07_initialize_and_get_phi.py
fs2cousins/bigartm
6cf4d1fa664bbc9fba573e2a033cbae8338bcbda
[ "BSD-3-Clause" ]
1
2018-05-12T05:48:17.000Z
2018-05-12T05:48:17.000Z
python/tests/wrapper/test_07_initialize_and_get_phi.py
fs2cousins/bigartm
6cf4d1fa664bbc9fba573e2a033cbae8338bcbda
[ "BSD-3-Clause" ]
null
null
null
python/tests/wrapper/test_07_initialize_and_get_phi.py
fs2cousins/bigartm
6cf4d1fa664bbc9fba573e2a033cbae8338bcbda
[ "BSD-3-Clause" ]
null
null
null
from __future__ import print_function import os import numpy import tempfile import shutil import pytest from six.moves import range import artm.wrapper import artm.wrapper.messages_pb2 as messages import artm.wrapper.constants as constants import artm.master_component as mc def test_func(): # Set some constant...
35.606061
107
0.617021
74d12bfbefc92738a3609cd356f6cdfa41e2d286
5,244
py
Python
apysc/_display/width_interface.py
ynsnf/apysc
b10ffaf76ec6beb187477d0a744fca00e3efc3fb
[ "MIT" ]
16
2021-04-16T02:01:29.000Z
2022-01-01T08:53:49.000Z
apysc/_display/width_interface.py
ynsnf/apysc
b10ffaf76ec6beb187477d0a744fca00e3efc3fb
[ "MIT" ]
613
2021-03-24T03:37:38.000Z
2022-03-26T10:58:37.000Z
apysc/_display/width_interface.py
ynsnf/apysc
b10ffaf76ec6beb187477d0a744fca00e3efc3fb
[ "MIT" ]
2
2021-06-20T07:32:58.000Z
2021-12-26T08:22:11.000Z
"""Class implementation for witdth interface. """ from typing import Dict from typing import Union from apysc._animation.animation_width_interface import AnimationWidthInterface from apysc._type.attr_linking_interface import AttrLinkingInterface from apysc._type.int import Int from apysc._type.revert_interfa...
33.189873
79
0.584668
74d139b3817712e71083cac240507cdd1a3035e9
6,794
py
Python
lib/sdb_database.py
dpfried/mocs
d594a47c2e3125a30fe14c2bc646d0e0614cb8b2
[ "MIT" ]
8
2016-05-31T09:54:15.000Z
2021-08-13T13:25:01.000Z
lib/sdb_database.py
dpfried/mocs
d594a47c2e3125a30fe14c2bc646d0e0614cb8b2
[ "MIT" ]
null
null
null
lib/sdb_database.py
dpfried/mocs
d594a47c2e3125a30fe14c2bc646d0e0614cb8b2
[ "MIT" ]
10
2015-01-07T06:45:44.000Z
2021-06-21T08:41:57.000Z
from sqlalchemy import Column, Integer, Boolean, UnicodeText, Date, ForeignKey, Table, func from sqlalchemy.orm import relationship from sqlalchemy.ext.declarative import declarative_base from database import engine, Session, ManagedSession, sliced_query, Base, generalize, stringify_terms from status import set_status ...
36.724324
147
0.62879
74d1677b40335376c5c02601b33a2f7bde0981c3
25,469
py
Python
Sklearn_scipy_numpy/source/sklearn/linear_model/tests/test_coordinate_descent.py
Con-Mi/lambda-packs
b23a8464abdd88050b83310e1d0e99c54dac28ab
[ "MIT" ]
4
2018-01-21T21:18:35.000Z
2022-03-23T21:57:56.000Z
Sklearn_scipy_numpy/source/sklearn/linear_model/tests/test_coordinate_descent.py
Con-Mi/lambda-packs
b23a8464abdd88050b83310e1d0e99c54dac28ab
[ "MIT" ]
null
null
null
Sklearn_scipy_numpy/source/sklearn/linear_model/tests/test_coordinate_descent.py
Con-Mi/lambda-packs
b23a8464abdd88050b83310e1d0e99c54dac28ab
[ "MIT" ]
null
null
null
# Authors: Olivier Grisel <olivier.grisel@ensta.org> # Alexandre Gramfort <alexandre.gramfort@inria.fr> # License: BSD 3 clause from sys import version_info import numpy as np from scipy import interpolate, sparse from copy import deepcopy from sklearn.datasets import load_boston from sklearn.utils.testing ...
37.620384
79
0.669559
74d18b9eb67c347583a272cccec2a1bd0fa5b1ef
1,755
py
Python
cdk/lib/lambda/macie-finding/index.py
jasnkapadia/soaring
5740ef6e623bbc5e175305f9e0c3d7a06f4fdcfa
[ "MIT" ]
null
null
null
cdk/lib/lambda/macie-finding/index.py
jasnkapadia/soaring
5740ef6e623bbc5e175305f9e0c3d7a06f4fdcfa
[ "MIT" ]
null
null
null
cdk/lib/lambda/macie-finding/index.py
jasnkapadia/soaring
5740ef6e623bbc5e175305f9e0c3d7a06f4fdcfa
[ "MIT" ]
1
2021-05-02T13:14:17.000Z
2021-05-02T13:14:17.000Z
import boto3 from datetime import datetime def lambda_handler(event, _context): """ Handles input/output for Lambda - do all logic in separate functions """ ### Soaring Contextual Engine ### Geo IP Lookup ## Open CloudTrail event in JSON format cloud_event = event job_id = cloud_event[...
33.113208
149
0.642735
74d1a57b5348d54e058d2ef9d0d1ea89912ea4b2
844
py
Python
tests/python/test_scope_errors.py
ericjang/taichi
0dec0bac6d9c16b7b62ba528f9e0d4268d1d05d2
[ "MIT" ]
null
null
null
tests/python/test_scope_errors.py
ericjang/taichi
0dec0bac6d9c16b7b62ba528f9e0d4268d1d05d2
[ "MIT" ]
1
2020-07-21T05:51:19.000Z
2020-10-08T01:31:15.000Z
tests/python/test_scope_errors.py
hoojaoh/taichi
641c4b83bcf98e7354b135964cd23759b0110c6b
[ "MIT" ]
null
null
null
import taichi as ti @ti.must_throw(UnboundLocalError) def test_if(): ti.get_runtime().print_preprocessed = True x = ti.var(ti.f32) @ti.layout def layout(): ti.root.dense(ti.i, 1).place(x) @ti.kernel def func(): if True: a = 0 else: a = 1 ti.print(a) func() @ti.must_throw(U...
15.071429
44
0.604265
74d1b67a3625337accaa40842f96d307d950a4e5
2,482
py
Python
toontown/weather/DistributedWeatherCycleAI.py
LittleNed/toontown-stride
1252a8f9a8816c1810106006d09c8bdfe6ad1e57
[ "Apache-2.0" ]
3
2020-01-02T08:43:36.000Z
2020-07-05T08:59:02.000Z
toontown/weather/DistributedWeatherCycleAI.py
NoraTT/Historical-Commits-Project-Altis-Source
fe88e6d07edf418f7de6ad5b3d9ecb3d0d285179
[ "Apache-2.0" ]
null
null
null
toontown/weather/DistributedWeatherCycleAI.py
NoraTT/Historical-Commits-Project-Altis-Source
fe88e6d07edf418f7de6ad5b3d9ecb3d0d285179
[ "Apache-2.0" ]
4
2019-06-20T23:45:23.000Z
2020-10-14T20:30:15.000Z
from direct.distributed.DistributedObjectAI import DistributedObjectAI from direct.directnotify import DirectNotifyGlobal from direct.fsm.State import State from direct.fsm.ClassicFSM import ClassicFSM class DistributedWeatherCycleAI(DistributedObjectAI): notify = DirectNotifyGlobal.directNotify.newCategory('Distr...
26.688172
97
0.661563