hexsha
stringlengths
40
40
size
int64
4
1.02M
ext
stringclasses
8 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
4
209
max_stars_repo_name
stringlengths
5
121
max_stars_repo_head_hexsha
stringlengths
40
40
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
4
209
max_issues_repo_name
stringlengths
5
121
max_issues_repo_head_hexsha
stringlengths
40
40
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
4
209
max_forks_repo_name
stringlengths
5
121
max_forks_repo_head_hexsha
stringlengths
40
40
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
4
1.02M
avg_line_length
float64
1.07
66.1k
max_line_length
int64
4
266k
alphanum_fraction
float64
0.01
1
0cb51aed1cee54901ffa54b553efb2e220ba5cfa
18,257
py
Python
testing/test_serialize.py
shendel/hippyvm
26cc6675612e4ddc4d1b425d2731d34c97355c45
[ "MIT" ]
1
2021-07-28T01:10:41.000Z
2021-07-28T01:10:41.000Z
testing/test_serialize.py
shendel/hippyvm
26cc6675612e4ddc4d1b425d2731d34c97355c45
[ "MIT" ]
null
null
null
testing/test_serialize.py
shendel/hippyvm
26cc6675612e4ddc4d1b425d2731d34c97355c45
[ "MIT" ]
null
null
null
from testing.test_interpreter import BaseTestInterpreter class TestBuiltin(BaseTestInterpreter): def test_serialize(self): output = self.run(""" class Connection { protected $link; private $server, $username, $password, $db; public function __construct($server, $username, $password, $d...
39.949672
252
0.517884
19557c8d455d47e554b68e54a268f754e18776a8
3,619
py
Python
ckan/tests/plugins/ckantestplugins.py
robin-NEC/ckan
71a82c4b0bb499fd3a6d1ccfd038b2231f50f92a
[ "BSD-3-Clause" ]
1
2021-10-01T12:47:19.000Z
2021-10-01T12:47:19.000Z
ckan/tests/plugins/ckantestplugins.py
robin-NEC/ckan
71a82c4b0bb499fd3a6d1ccfd038b2231f50f92a
[ "BSD-3-Clause" ]
null
null
null
ckan/tests/plugins/ckantestplugins.py
robin-NEC/ckan
71a82c4b0bb499fd3a6d1ccfd038b2231f50f92a
[ "BSD-3-Clause" ]
2
2018-01-21T17:03:08.000Z
2019-07-23T08:49:52.000Z
# encoding: utf-8 from collections import defaultdict import ckan.plugins as p import ckan.tests.plugins.mock_plugin as mock_plugin class PluginObserverPlugin(mock_plugin.MockSingletonPlugin): p.implements(p.IPluginObserver) class ActionPlugin(p.SingletonPlugin): p.implements(p.IActions) def get_acti...
27.007463
66
0.658193
30fe80adeb62f8d89920e85ab183d640aa69e01a
22,368
py
Python
zun-3.0.0/zun/tests/unit/db/utils.py
scottwedge/OpenStack-Stein
7077d1f602031dace92916f14e36b124f474de15
[ "Apache-2.0" ]
null
null
null
zun-3.0.0/zun/tests/unit/db/utils.py
scottwedge/OpenStack-Stein
7077d1f602031dace92916f14e36b124f474de15
[ "Apache-2.0" ]
5
2019-08-14T06:46:03.000Z
2021-12-13T20:01:25.000Z
zun-3.0.0/zun/tests/unit/db/utils.py
scottwedge/OpenStack-Stein
7077d1f602031dace92916f14e36b124f474de15
[ "Apache-2.0" ]
2
2020-03-15T01:24:15.000Z
2020-07-22T20:34:26.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...
37.530201
79
0.608816
0a00cf97da5dcec86fa55b61dc97bcbd1fb623c3
9,533
py
Python
objetto/utils/storage.py
brunonicko/objetto
50540bc14c5767e3f8fa09bf59ba322cb043a353
[ "MIT" ]
8
2020-12-10T21:04:06.000Z
2022-01-22T07:43:07.000Z
objetto/utils/storage.py
brunonicko/objetto
50540bc14c5767e3f8fa09bf59ba322cb043a353
[ "MIT" ]
null
null
null
objetto/utils/storage.py
brunonicko/objetto
50540bc14c5767e3f8fa09bf59ba322cb043a353
[ "MIT" ]
1
2022-01-20T21:39:48.000Z
2022-01-20T21:39:48.000Z
# -*- coding: utf-8 -*- """Immutable weak key/strong value storage and mutable evolver.""" from abc import abstractmethod from copy import deepcopy from functools import partial from typing import TYPE_CHECKING, Generic, TypeVar, cast from weakref import WeakSet, ref try: from typing import final except ImportErr...
27.315186
86
0.578307
67f228ca90fc9014a1db042c94aa35a8fc0e3731
4,953
py
Python
utils.py
joseph-zhong/dilation-tensorflow
0e5c13bef4e32d1901d3129fe31f9dbb12f6f9de
[ "MIT" ]
null
null
null
utils.py
joseph-zhong/dilation-tensorflow
0e5c13bef4e32d1901d3129fe31f9dbb12f6f9de
[ "MIT" ]
null
null
null
utils.py
joseph-zhong/dilation-tensorflow
0e5c13bef4e32d1901d3129fe31f9dbb12f6f9de
[ "MIT" ]
null
null
null
import os import cv2 import numpy as np from datasets import CONFIG #import numba # this function is the same as the one in the original repository # basically it performs upsampling for datasets having zoom > 1 # @numba.jit(nopython=True) def interp_map(prob, zoom, width, height): channels = prob.shape[2] zo...
38.695313
102
0.600444
e1c0946f515d0f2958bba1edd63a34c1907c2380
38,103
py
Python
src/sage/misc/misc.py
swewers/mein_sage
0e4e2d14aab0a1a2e63292939a9baa997f0e986b
[ "BSL-1.0" ]
4
2020-07-17T04:49:44.000Z
2020-07-29T06:33:51.000Z
src/sage/misc/misc.py
Ivo-Maffei/sage
467fbc70a08b552b3de33d9065204ee9cbfb02c7
[ "BSL-1.0" ]
1
2020-04-18T16:30:43.000Z
2020-04-18T16:30:43.000Z
src/sage/misc/misc.py
dimpase/sage
468f23815ade42a2192b0a9cd378de8fdc594dcd
[ "BSL-1.0" ]
null
null
null
""" Miscellaneous functions AUTHORS: - William Stein - William Stein (2006-04-26): added workaround for Windows where most users' home directory has a space in it. - Robert Bradshaw (2007-09-20): Ellipsis range/iterator. TESTS: The following test, verifying that :trac:`16181` has been resolved, needs to stay at...
26.701472
143
0.53568
3048cdd97c44ca37d93294ac774cd03709c058c8
420
py
Python
Executor/Tasks/Run/message.py
EVOLVED-5G/ELCM
07d07a114b667e8c6915ee3ef125dd4864dd2247
[ "Apache-2.0" ]
null
null
null
Executor/Tasks/Run/message.py
EVOLVED-5G/ELCM
07d07a114b667e8c6915ee3ef125dd4864dd2247
[ "Apache-2.0" ]
null
null
null
Executor/Tasks/Run/message.py
EVOLVED-5G/ELCM
07d07a114b667e8c6915ee3ef125dd4864dd2247
[ "Apache-2.0" ]
null
null
null
from Task import Task from Helper import Level class Message(Task): def __init__(self, logMethod, parent, params): super().__init__("Message", parent, params, logMethod, None) self.paramRules = { 'Severity': ('INFO', False), 'Message': (None, True) } def Run(se...
26.25
68
0.592857
f60ba1e52bb744a834b4d9954091db245bddba99
10,195
py
Python
benchmark/COMPARE/HIGGS/visual/best_median.py
victor-estrade/SystGradDescent
822e7094290301ec47a99433381a8d6406798aff
[ "MIT" ]
2
2019-03-20T09:05:02.000Z
2019-03-20T15:23:44.000Z
benchmark/COMPARE/HIGGS/visual/best_median.py
victor-estrade/SystGradDescent
822e7094290301ec47a99433381a8d6406798aff
[ "MIT" ]
null
null
null
benchmark/COMPARE/HIGGS/visual/best_median.py
victor-estrade/SystGradDescent
822e7094290301ec47a99433381a8d6406798aff
[ "MIT" ]
null
null
null
# coding: utf-8 from __future__ import print_function from __future__ import division from __future__ import absolute_import from __future__ import unicode_literals import os import datetime from visual.misc import set_plot_config set_plot_config() # import matplotlib as mpl import matplotlib.pyplot as plt # import...
45.923423
132
0.639039
8177c993dc65c7b4047f52679d01a48615e63583
1,159
py
Python
imagecapture.py
T3hUb3rK1tten/HAB-Misc
b320b7d97f1b67f76d73e77c90e296e8ecc320e0
[ "MIT" ]
null
null
null
imagecapture.py
T3hUb3rK1tten/HAB-Misc
b320b7d97f1b67f76d73e77c90e296e8ecc320e0
[ "MIT" ]
null
null
null
imagecapture.py
T3hUb3rK1tten/HAB-Misc
b320b7d97f1b67f76d73e77c90e296e8ecc320e0
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- import time import subprocess import fcntl, sys import datetime captureresolution = "1280x720" pid_file = '/opt/webcam/imagecapture.lock' symlink = '/opt/webcam/current.jpg' def captureImage(): filename = "/opt/webcam/images/{0}.jpg".format(int(time.time()) + 15) comma...
26.953488
105
0.650561
2e913c5b776290d821b0c46c25301828db27da33
4,775
py
Python
doc/conf.py
dojeda/timeflux
d22423d17e6e2db06535f2b8fff44f79b893f12e
[ "MIT" ]
null
null
null
doc/conf.py
dojeda/timeflux
d22423d17e6e2db06535f2b8fff44f79b893f12e
[ "MIT" ]
null
null
null
doc/conf.py
dojeda/timeflux
d22423d17e6e2db06535f2b8fff44f79b893f12e
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- # # Timeflux documentation build configuration file import os import sys sys.path.insert(0, os.path.abspath('..')) from timeflux import __version__ from sphinx.util import logging logger = logging.getLogger(__name__) # -- Auto-generate API documentation -----------------...
28.088235
185
0.631623
29fe6c23b079f2e1d39d361ddbf178723f83e74b
1,832
py
Python
setup.py
ShadowJonathan/py-multiaddr
c57fb9b9cc7cf1fc45ee7e68fecff5301de47a89
[ "Apache-2.0", "MIT" ]
null
null
null
setup.py
ShadowJonathan/py-multiaddr
c57fb9b9cc7cf1fc45ee7e68fecff5301de47a89
[ "Apache-2.0", "MIT" ]
null
null
null
setup.py
ShadowJonathan/py-multiaddr
c57fb9b9cc7cf1fc45ee7e68fecff5301de47a89
[ "Apache-2.0", "MIT" ]
1
2019-11-24T21:27:58.000Z
2019-11-24T21:27:58.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- import setuptools try: from setuptools import setup except ImportError: from distutils.core import setup with open('README.rst') as readme_file: readme = readme_file.read() with open('HISTORY.rst') as history_file: history = history_file.read() versio...
27.757576
92
0.605895
def02fbb5f5f028ee6054d13b5753229c9615564
2,107
py
Python
social_core/backends/slack.py
rameshananth/social-core
eeee9763862d768627e134a42e4664456b6eabec
[ "BSD-3-Clause" ]
745
2016-12-03T16:38:37.000Z
2022-03-29T17:18:52.000Z
social_core/backends/slack.py
rameshananth/social-core
eeee9763862d768627e134a42e4664456b6eabec
[ "BSD-3-Clause" ]
624
2016-12-06T16:01:46.000Z
2022-03-29T15:50:35.000Z
social_core/backends/slack.py
rameshananth/social-core
eeee9763862d768627e134a42e4664456b6eabec
[ "BSD-3-Clause" ]
583
2016-12-03T16:40:38.000Z
2022-03-28T05:32:37.000Z
""" Slack OAuth2 backend, docs at: https://python-social-auth.readthedocs.io/en/latest/backends/slack.html https://api.slack.com/docs/oauth """ from __future__ import unicode_literals from .oauth import BaseOAuth2 class SlackOAuth2(BaseOAuth2): """Slack OAuth authentication backend""" name = 'slack' ...
33.983871
87
0.595634
84faaffc9aee14891bde2ed8964661f6f0582896
6,216
py
Python
monai/data/sliding_window_inference.py
Transconnectome/MONAI
dc7cd0ec25d4b27f321a31f13e707769922c66b3
[ "Apache-2.0" ]
1
2021-06-18T00:53:06.000Z
2021-06-18T00:53:06.000Z
monai/data/sliding_window_inference.py
Transconnectome/MONAI
dc7cd0ec25d4b27f321a31f13e707769922c66b3
[ "Apache-2.0" ]
null
null
null
monai/data/sliding_window_inference.py
Transconnectome/MONAI
dc7cd0ec25d4b27f321a31f13e707769922c66b3
[ "Apache-2.0" ]
null
null
null
# Copyright 2020 MONAI Consortium # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # http://www.apache.org/licenses/LICENSE-2.0 # Unless required by applicable law or agreed to in writing, s...
48.5625
119
0.685167
c7ebf5cff1886bd1c39736ec5b8a75fa0b402f98
945
py
Python
tests/core/commands/test_renku.py
lokijuhy/renku-python
0bfceafa4e6b4750439ab0ed20c61b0a6ba03a1f
[ "Apache-2.0" ]
26
2018-06-04T15:21:50.000Z
2022-02-11T17:31:24.000Z
tests/core/commands/test_renku.py
lokijuhy/renku-python
0bfceafa4e6b4750439ab0ed20c61b0a6ba03a1f
[ "Apache-2.0" ]
1,655
2018-05-17T22:07:50.000Z
2022-03-31T21:22:01.000Z
tests/core/commands/test_renku.py
lokijuhy/renku-python
0bfceafa4e6b4750439ab0ed20c61b0a6ba03a1f
[ "Apache-2.0" ]
19
2018-05-18T14:12:25.000Z
2022-03-30T19:51:35.000Z
# -*- coding: utf-8 -*- # # Copyright 2017-2021- Swiss Data Science Center (SDSC) # A partnership between École Polytechnique Fédérale de Lausanne (EPFL) and # Eidgenössische Technische Hochschule Zürich (ETHZ). # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in co...
33.75
75
0.751323
8335101a0b9bc5feccfb72179f4ee1e76e71c85f
3,359
py
Python
huaweicloud-sdk-iam/huaweicloudsdkiam/v3/model/keystone_update_mapping_request.py
wuchen-huawei/huaweicloud-sdk-python-v3
3683d703f4320edb2b8516f36f16d485cff08fc2
[ "Apache-2.0" ]
1
2021-11-03T07:54:50.000Z
2021-11-03T07:54:50.000Z
huaweicloud-sdk-iam/huaweicloudsdkiam/v3/model/keystone_update_mapping_request.py
wuchen-huawei/huaweicloud-sdk-python-v3
3683d703f4320edb2b8516f36f16d485cff08fc2
[ "Apache-2.0" ]
null
null
null
huaweicloud-sdk-iam/huaweicloudsdkiam/v3/model/keystone_update_mapping_request.py
wuchen-huawei/huaweicloud-sdk-python-v3
3683d703f4320edb2b8516f36f16d485cff08fc2
[ "Apache-2.0" ]
null
null
null
# coding: utf-8 import pprint import re import six class KeystoneUpdateMappingRequest: """ Attributes: openapi_types (dict): The key is attribute name and the value is attribute type. attribute_map (dict): The key is attribute name and...
24.881481
79
0.54421
3fe19e13a90486b3dcca06eeba4dae29bbb51bc3
102
py
Python
apps/chat/apps.py
picsldev/pyerp
e998e3e99a4e45033d54a6b1df50697f7288f67f
[ "MIT" ]
null
null
null
apps/chat/apps.py
picsldev/pyerp
e998e3e99a4e45033d54a6b1df50697f7288f67f
[ "MIT" ]
null
null
null
apps/chat/apps.py
picsldev/pyerp
e998e3e99a4e45033d54a6b1df50697f7288f67f
[ "MIT" ]
null
null
null
# Librerias Django from django.apps import AppConfig class ChatConfig(AppConfig): name = 'chat'
14.571429
33
0.745098
54eb9c60e7d7a5b9f761cbbacd296ba14733f959
5,318
py
Python
lib/dcsotiesplunk/config.py
satta/TIE-Splunk-TA
8d4636b96dfb63b4ca7b38f21d1c8a2d8dde392b
[ "BSD-3-Clause" ]
2
2019-03-19T12:25:42.000Z
2019-03-19T12:27:34.000Z
lib/dcsotiesplunk/config.py
satta/TIE-Splunk-TA
8d4636b96dfb63b4ca7b38f21d1c8a2d8dde392b
[ "BSD-3-Clause" ]
7
2019-03-28T17:32:33.000Z
2020-06-17T10:45:20.000Z
lib/dcsotiesplunk/config.py
satta/TIE-Splunk-TA
8d4636b96dfb63b4ca7b38f21d1c8a2d8dde392b
[ "BSD-3-Clause" ]
1
2021-08-23T15:22:36.000Z
2021-08-23T15:22:36.000Z
# Copyright (c) 2020, DCSO GmbH from configparser import ConfigParser from typing import NoReturn, Optional, Any, Union from dcsotie.errors import TIEConfigError from dcsotie.utils import Range, SeverityRange, ConfidenceRange CONFIG_SCHEMA = { 'filter': { 'ip_confidence': (ConfidenceRange, 80), '...
32.82716
110
0.559233
b6989fb7311794605b5a695436e60f268ce4ee88
1,678
py
Python
horizon/openstack_dashboard/utils/vpncredential.py
yianjiajia/openstack_horizon
9e36a4c3648ef29d0df6912d990465f51d6124a6
[ "Apache-2.0" ]
null
null
null
horizon/openstack_dashboard/utils/vpncredential.py
yianjiajia/openstack_horizon
9e36a4c3648ef29d0df6912d990465f51d6124a6
[ "Apache-2.0" ]
null
null
null
horizon/openstack_dashboard/utils/vpncredential.py
yianjiajia/openstack_horizon
9e36a4c3648ef29d0df6912d990465f51d6124a6
[ "Apache-2.0" ]
null
null
null
''' @author: alex ''' import os import re import uuid import subprocess from StringIO import StringIO from mako.template import Template def createCredential(keyBasePath): p = subprocess.Popen("/usr/bin/build-ssl-credential "+keyBasePath, shell=True, stdout=subprocess.PIPE, stderr=subprocess.STDOUT) exitCode=...
28.931034
132
0.648987
8e0dbbdb9cb75fe1caf60a06fa4949f00b8b7f08
63
py
Python
camera/__init__.py
dorna-robotics/camera
b8e7783ae384bd08aecc0ce5729455531a1415f8
[ "MIT" ]
2
2021-08-17T00:26:23.000Z
2021-09-27T15:29:14.000Z
camera/__init__.py
dorna-robotics/camera
b8e7783ae384bd08aecc0ce5729455531a1415f8
[ "MIT" ]
null
null
null
camera/__init__.py
dorna-robotics/camera
b8e7783ae384bd08aecc0ce5729455531a1415f8
[ "MIT" ]
1
2021-09-27T15:29:16.000Z
2021-09-27T15:29:16.000Z
from .camera import * from .sync import * __version__ = "1.00"
15.75
21
0.698413
fb026029d8f0333302c7e4376ce258dbe4f8cd2d
777
py
Python
applicationinsights/channel/contracts/Domain.py
Rebeccalau/ApplicationInsights-Python
cc91fede2d6d6c48acaa5687aa13ca491a17025a
[ "MIT" ]
89
2015-05-06T22:02:17.000Z
2019-04-22T14:50:33.000Z
applicationinsights/channel/contracts/Domain.py
Rebeccalau/ApplicationInsights-Python
cc91fede2d6d6c48acaa5687aa13ca491a17025a
[ "MIT" ]
115
2015-04-29T17:44:52.000Z
2019-04-25T21:39:02.000Z
applicationinsights/channel/contracts/Domain.py
Rebeccalau/ApplicationInsights-Python
cc91fede2d6d6c48acaa5687aa13ca491a17025a
[ "MIT" ]
59
2015-04-19T13:34:52.000Z
2019-04-25T21:04:02.000Z
import collections import copy from .Utils import _write_complex_object class Domain(object): """Data contract class for type Domain. """ _defaults = collections.OrderedDict([ ]) def __init__(self): """Initializes a new instance of the class. """ self._values = { ...
25.064516
87
0.60103
3ae6890231e3f7cf954fd43390ca6288cb8c8261
1,485
py
Python
flattrclient/search.py
chrigl/python-flattr
7ef180d2a874f7b3f1636bcb871512caaa246cb3
[ "Apache-2.0" ]
null
null
null
flattrclient/search.py
chrigl/python-flattr
7ef180d2a874f7b3f1636bcb871512caaa246cb3
[ "Apache-2.0" ]
3
2015-11-08T12:29:58.000Z
2019-11-08T10:47:51.000Z
flattrclient/search.py
chrigl/python-flattr
7ef180d2a874f7b3f1636bcb871512caaa246cb3
[ "Apache-2.0" ]
null
null
null
import flattrclient import flattrclient.things class SearchResult(flattrclient.resource.Resource): """ flattr search result. Contains things """ def __init__(self, session=None, total_items=None, items=None, page=None, things=None, **kwargs): """ Initialize with data of an dictionary ...
32.282609
111
0.62963
cc5d8a8b33c46a6597855962b27c6761a37202d3
6,450
py
Python
sdk/python/pulumi_azure_native/datamigration/get_service.py
pulumi-bot/pulumi-azure-native
f7b9490b5211544318e455e5cceafe47b628e12c
[ "Apache-2.0" ]
null
null
null
sdk/python/pulumi_azure_native/datamigration/get_service.py
pulumi-bot/pulumi-azure-native
f7b9490b5211544318e455e5cceafe47b628e12c
[ "Apache-2.0" ]
null
null
null
sdk/python/pulumi_azure_native/datamigration/get_service.py
pulumi-bot/pulumi-azure-native
f7b9490b5211544318e455e5cceafe47b628e12c
[ "Apache-2.0" ]
null
null
null
# coding=utf-8 # *** WARNING: this file was generated by the Pulumi SDK Generator. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** import warnings import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union from .. import _utilities, _tables from ...
32.575758
182
0.62124
96df4c9f0bb6c49cca748025950c9fcf69bdaf61
10,065
py
Python
airflow_client/test/test_user_collection.py
11010cy/airflow-client-python
43c20c383a268160eccbbb4b09c5ffe205a88b61
[ "Apache-2.0" ]
115
2020-06-30T09:29:10.000Z
2022-03-30T20:15:36.000Z
airflow_client/test/test_user_collection.py
11010cy/airflow-client-python
43c20c383a268160eccbbb4b09c5ffe205a88b61
[ "Apache-2.0" ]
20
2021-03-18T17:48:35.000Z
2022-02-08T09:34:44.000Z
airflow_client/test/test_user_collection.py
11010cy/airflow-client-python
43c20c383a268160eccbbb4b09c5ffe205a88b61
[ "Apache-2.0" ]
20
2020-07-02T02:51:26.000Z
2022-01-31T11:53:38.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...
167.75
8,173
0.764232
bfd2ba521931816cb4aebb37f52a424968573ee9
9,921
py
Python
Older_versions_of_Assignment6/Assignment6-update/backend.py
Ryan-F3107/Quinterac-CISC-327
3a2a73ad8e862b2c95a21e27b579d1267ce8dfa0
[ "MIT" ]
null
null
null
Older_versions_of_Assignment6/Assignment6-update/backend.py
Ryan-F3107/Quinterac-CISC-327
3a2a73ad8e862b2c95a21e27b579d1267ce8dfa0
[ "MIT" ]
null
null
null
Older_versions_of_Assignment6/Assignment6-update/backend.py
Ryan-F3107/Quinterac-CISC-327
3a2a73ad8e862b2c95a21e27b579d1267ce8dfa0
[ "MIT" ]
null
null
null
""" CISC 327 - Assignment 4 This program simulates the backend office of Quinterac. The input files are the Merged Transaction Summary File and the Master Account File The generated output file is the New Master Account file and the Valid Account List File The program intends to take in the two input files, modify t...
41.165975
120
0.685314
744d54f16dbe7bfe416543e65d99e6fb2c406290
4,168
py
Python
stubs.min/System/Windows/Forms/__init___parts/ComboBoxRenderer.py
ricardyn/ironpython-stubs
4d2b405eda3ceed186e8adca55dd97c332c6f49d
[ "MIT" ]
1
2021-02-02T13:39:16.000Z
2021-02-02T13:39:16.000Z
stubs.min/System/Windows/Forms/__init___parts/ComboBoxRenderer.py
hdm-dt-fb/ironpython-stubs
4d2b405eda3ceed186e8adca55dd97c332c6f49d
[ "MIT" ]
null
null
null
stubs.min/System/Windows/Forms/__init___parts/ComboBoxRenderer.py
hdm-dt-fb/ironpython-stubs
4d2b405eda3ceed186e8adca55dd97c332c6f49d
[ "MIT" ]
null
null
null
class ComboBoxRenderer(object): """ Provides methods used to render a combo box control with visual styles. This class cannot be inherited. """ @staticmethod def DrawDropDownButton(g,bounds,state): """ DrawDropDownButton(g: Graphics,bounds: Rectangle,state: ComboBoxState) Draws a drop-down arrow with t...
50.216867
141
0.735125
73cfa53ad0310cd80bfdc43acc8a1e36ebdcb2a7
20,687
py
Python
run_pplm_discrim_train.py
jefflai108/6.438-final
9f167b17c19c89429f03031cfc65e2257ff4d045
[ "Apache-2.0" ]
null
null
null
run_pplm_discrim_train.py
jefflai108/6.438-final
9f167b17c19c89429f03031cfc65e2257ff4d045
[ "Apache-2.0" ]
null
null
null
run_pplm_discrim_train.py
jefflai108/6.438-final
9f167b17c19c89429f03031cfc65e2257ff4d045
[ "Apache-2.0" ]
null
null
null
#! /usr/bin/env python3 # coding=utf-8 # This code is licensed under a non-commercial license. import argparse import csv import json import math import os import time import numpy as np import torch import torch.nn.functional as F import torch.optim import torch.optim as optim import torch.utils.data as data from n...
33.968801
93
0.554261
2733a13b3794d5560d1b441e9bf930613da29a1b
1,465
py
Python
catalog/bindings/csw/update_type.py
NIVANorge/s-enda-playground
56ae0a8978f0ba8a5546330786c882c31e17757a
[ "Apache-2.0" ]
null
null
null
catalog/bindings/csw/update_type.py
NIVANorge/s-enda-playground
56ae0a8978f0ba8a5546330786c882c31e17757a
[ "Apache-2.0" ]
null
null
null
catalog/bindings/csw/update_type.py
NIVANorge/s-enda-playground
56ae0a8978f0ba8a5546330786c882c31e17757a
[ "Apache-2.0" ]
null
null
null
from dataclasses import dataclass, field from typing import List, Optional from bindings.csw.constraint import Constraint from bindings.csw.record_property import RecordProperty __NAMESPACE__ = "http://www.opengis.net/cat/csw/2.0.2" @dataclass class UpdateType: """Update statements may replace an entire record o...
29.3
78
0.608191
974c9feca821e5ef0d44df9bfa7485f6ca9befe0
2,312
py
Python
saleor/dashboard/customer/views.py
tanjibpa/alrawaa
c28fbe7becd43b9de1575346fe8c29cee5f36de1
[ "BSD-3-Clause" ]
null
null
null
saleor/dashboard/customer/views.py
tanjibpa/alrawaa
c28fbe7becd43b9de1575346fe8c29cee5f36de1
[ "BSD-3-Clause" ]
null
null
null
saleor/dashboard/customer/views.py
tanjibpa/alrawaa
c28fbe7becd43b9de1575346fe8c29cee5f36de1
[ "BSD-3-Clause" ]
null
null
null
from django.conf import settings from django.contrib import messages from django.contrib.auth.decorators import permission_required from django.shortcuts import get_object_or_404, redirect from django.template.response import TemplateResponse from django.utils.translation import pgettext_lazy from ...core.utils import...
38.533333
78
0.740484
c2770d47f7f431cff981739c72a94dc39258accc
4,505
py
Python
dusty/drivers/rp/report_portal_writer.py
KarynaTaranova/dusty
1443575bc6a2708e721788792f9fcc658a7df48d
[ "Apache-2.0" ]
null
null
null
dusty/drivers/rp/report_portal_writer.py
KarynaTaranova/dusty
1443575bc6a2708e721788792f9fcc658a7df48d
[ "Apache-2.0" ]
null
null
null
dusty/drivers/rp/report_portal_writer.py
KarynaTaranova/dusty
1443575bc6a2708e721788792f9fcc658a7df48d
[ "Apache-2.0" ]
null
null
null
# Copyright 2018 getcarrier.io # # 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 t...
38.177966
97
0.594673
3811057a70dd9d794550599275a90fc5476ddd6e
9,276
py
Python
main.py
Milabo-HRH/Reversi_miniAlphaGo
cdddb3d1da3c7c423cd4a4a6902dc53c022263f6
[ "MIT" ]
null
null
null
main.py
Milabo-HRH/Reversi_miniAlphaGo
cdddb3d1da3c7c423cd4a4a6902dc53c022263f6
[ "MIT" ]
null
null
null
main.py
Milabo-HRH/Reversi_miniAlphaGo
cdddb3d1da3c7c423cd4a4a6902dc53c022263f6
[ "MIT" ]
null
null
null
import copy from copy import deepcopy import random from board import Board import math # 棋盘初始化 board = Board() # 打印初始化棋盘 board.display() class RandomPlayer: """ 随机玩家, 随机返回一个合法落子位置 """ def __init__(self, color): """ 玩家初始化 :param color: 下棋方,'X' - 黑棋,'O' - 白棋 """ ...
27.525223
117
0.48135
07dca5a5ae06304cb0200fc110a340f1b787fd84
2,107
py
Python
tools/swig/test/setup.py
kishimoto-banana/numpy
9b7e890b014f6ad3b4288246f0565f7afd6eca84
[ "BSD-3-Clause" ]
1
2020-02-17T18:54:35.000Z
2020-02-17T18:54:35.000Z
tools/swig/test/setup.py
kishimoto-banana/numpy
9b7e890b014f6ad3b4288246f0565f7afd6eca84
[ "BSD-3-Clause" ]
null
null
null
tools/swig/test/setup.py
kishimoto-banana/numpy
9b7e890b014f6ad3b4288246f0565f7afd6eca84
[ "BSD-3-Clause" ]
null
null
null
#! /usr/bin/env python # System imports from distutils.core import Extension, setup from distutils import sysconfig # Third-party modules - we depend on numpy for everything import numpy # Obtain the numpy include directory. numpy_include = numpy.get_include() # Array extension module _Array = Extension("_Array...
30.1
69
0.488372
887462eda3be21f20ef4eba78d49adaed1cce54f
75,442
py
Python
glance/tests/integration/legacy_functional/test_v1_api.py
dchavoll/stx-glance
1ec64167057e3368f27a1a81aca294b771e79c5e
[ "Apache-2.0" ]
null
null
null
glance/tests/integration/legacy_functional/test_v1_api.py
dchavoll/stx-glance
1ec64167057e3368f27a1a81aca294b771e79c5e
[ "Apache-2.0" ]
5
2018-09-18T15:51:40.000Z
2019-01-08T16:38:44.000Z
glance/tests/integration/legacy_functional/test_v1_api.py
dchavoll/stx-glance
1ec64167057e3368f27a1a81aca294b771e79c5e
[ "Apache-2.0" ]
6
2018-09-06T14:50:23.000Z
2018-11-27T21:32:51.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...
43.035938
79
0.581414
4d523754e040f81312aa69ff58ef8460f91637f6
44,838
py
Python
sdk/python/pulumi_azure_native/servicebus/v20210601preview/outputs.py
polivbr/pulumi-azure-native
09571f3bf6bdc4f3621aabefd1ba6c0d4ecfb0e7
[ "Apache-2.0" ]
null
null
null
sdk/python/pulumi_azure_native/servicebus/v20210601preview/outputs.py
polivbr/pulumi-azure-native
09571f3bf6bdc4f3621aabefd1ba6c0d4ecfb0e7
[ "Apache-2.0" ]
null
null
null
sdk/python/pulumi_azure_native/servicebus/v20210601preview/outputs.py
polivbr/pulumi-azure-native
09571f3bf6bdc4f3621aabefd1ba6c0d4ecfb0e7
[ "Apache-2.0" ]
null
null
null
# coding=utf-8 # *** WARNING: this file was generated by the Pulumi SDK Generator. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** import warnings import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union, overload from ... import _utilities fro...
35.501188
159
0.634194
f3b6e564fce1b80869e25a41dbd513c44fb73f17
2,915
py
Python
tests/message_test.py
jaschadub/pycoin
1e8d0d9fe20ce0347b97847bb529cd1bd84c7442
[ "MIT" ]
1,210
2015-01-02T13:36:28.000Z
2022-03-30T00:52:22.000Z
tests/message_test.py
impactog/pycoin
3db6f82afa3054d8d07caca4909e1aed3de2fceb
[ "MIT" ]
280
2015-01-05T23:16:47.000Z
2022-02-22T22:02:17.000Z
tests/message_test.py
impactog/pycoin
3db6f82afa3054d8d07caca4909e1aed3de2fceb
[ "MIT" ]
459
2015-01-10T00:15:57.000Z
2022-03-16T12:04:40.000Z
import io import unittest from pycoin.encoding.hexbytes import h2b from pycoin.message.make_parser_and_packer import ( make_parser_and_packer, standard_messages, standard_message_post_unpacks, standard_parsing_functions, standard_streamer ) from pycoin.message.PeerAddress import ip_bin_to_ip4_addr, ip_bin_to_i...
35.54878
119
0.657976
e35ad067e358711ad23128ba9fae9995a02766a9
12,067
py
Python
evaluation.py
yxtay/text-classification-tensorflow
1be7e1e357844742c813a536991a49cc47aa7be3
[ "MIT" ]
9
2017-11-16T17:58:30.000Z
2019-07-16T20:57:02.000Z
evaluation.py
yxtay/text-classification-tensorflow
1be7e1e357844742c813a536991a49cc47aa7be3
[ "MIT" ]
null
null
null
evaluation.py
yxtay/text-classification-tensorflow
1be7e1e357844742c813a536991a49cc47aa7be3
[ "MIT" ]
1
2018-03-23T13:11:24.000Z
2018-03-23T13:11:24.000Z
import numpy as np from scipy import interp from sklearn import metrics from logger import float_array_string, get_logger, get_name name = get_name(__name__, __file__) logger = get_logger(name) def get_roc_curve(y_true: np.ndarray, y_score: np.ndarray) -> dict: """ calculates roc curve data from y true and ...
38.925806
110
0.655672
ccc875566033ca5a82a6b24ee8d86e926b963614
2,141
py
Python
utils/image.py
yoidea/JK_uniform_classifier
e74065245777b914f5dbb1cb25b7d89c8a6c535e
[ "MIT" ]
null
null
null
utils/image.py
yoidea/JK_uniform_classifier
e74065245777b914f5dbb1cb25b7d89c8a6c535e
[ "MIT" ]
null
null
null
utils/image.py
yoidea/JK_uniform_classifier
e74065245777b914f5dbb1cb25b7d89c8a6c535e
[ "MIT" ]
null
null
null
import os import numpy as np from PIL import Image from tqdm import tqdm from keras.utils.np_utils import to_categorical def to_dirname(name): """ ディレクトリ名の"/"有無の違いを吸収する # 引数 name : String, ディレクトリ名 # 戻り値 name : String, 変更後 """ if name[-1:] == '/': return name else: ...
23.788889
61
0.545072
0ecfc3e126603537f3a4e69f937a40e5d980d2f6
1,329
py
Python
app/forms/post_forms.py
olivaC/group-cmput404-project
bc5c9429d35f97f07d6550196eab1a1193b7e983
[ "MIT" ]
2
2019-02-12T01:02:35.000Z
2019-11-05T23:33:16.000Z
app/forms/post_forms.py
olivaC/group-cmput404-project
bc5c9429d35f97f07d6550196eab1a1193b7e983
[ "MIT" ]
55
2019-02-19T19:16:25.000Z
2022-01-13T01:07:50.000Z
app/forms/post_forms.py
olivaC/group-cmput404-project
bc5c9429d35f97f07d6550196eab1a1193b7e983
[ "MIT" ]
null
null
null
from django.forms import ModelForm, inlineformset_factory from django import forms from django.contrib.auth.models import User from django.contrib.auth.forms import UserChangeForm from app.models import Post, Author, Comment class AuthorForm(ModelForm): author_id = forms.CharField() host = forms.CharField(lab...
20.765625
57
0.566591
46e203ece175f49f15604424123742f1e100fd83
215
py
Python
fastccd_support_ioc/utils/maskTriggerInputs.py
lbl-camera/fastccd_support_ioc
80b3820744e9aec7923af6adec0a66a0c51b2c21
[ "BSD-3-Clause" ]
null
null
null
fastccd_support_ioc/utils/maskTriggerInputs.py
lbl-camera/fastccd_support_ioc
80b3820744e9aec7923af6adec0a66a0c51b2c21
[ "BSD-3-Clause" ]
1
2020-08-07T22:22:25.000Z
2020-08-07T22:22:25.000Z
fastccd_support_ioc/utils/setTriggerSW.py
lbl-camera/fastccd_support_ioc
80b3820744e9aec7923af6adec0a66a0c51b2c21
[ "BSD-3-Clause" ]
1
2021-02-08T22:06:05.000Z
2021-02-08T22:06:05.000Z
#! /usr/bin/python # -*- coding: utf-8 -*- from . import cin_constants from . import cin_register_map from . import cin_functions import time cin_functions.WriteReg(cin_register_map.REG_TRIGGERMASK_REG, "0000", 0)
23.888889
71
0.767442
06eb84d6f03a66827fdaf4383b8c66cb3b827f56
8,140
py
Python
troposphere/codebuild.py
DavideXX92/troposphere
1564a3b65a6504152e2e98a8a1b0bc512e358480
[ "BSD-2-Clause" ]
1
2019-01-29T08:33:52.000Z
2019-01-29T08:33:52.000Z
troposphere/codebuild.py
Marzocchi666/troposphere
a67117e5fe1ccf033a98498d6c128126e66e5d3c
[ "BSD-2-Clause" ]
null
null
null
troposphere/codebuild.py
Marzocchi666/troposphere
a67117e5fe1ccf033a98498d6c128126e66e5d3c
[ "BSD-2-Clause" ]
1
2019-02-27T00:06:02.000Z
2019-02-27T00:06:02.000Z
# Copyright (c) 2016, Mark Peek <mark@peek.org> # All rights reserved. # # See LICENSE file for full license. from . import AWSHelperFn, AWSObject, AWSProperty, Tags from .validators import boolean, integer, positive_integer VALID_IMAGE_PULL_CREDENTIALS = ('CODEBUILD', 'SERVICE_ROLE') VALID_CREDENTIAL_PROVIDERS = ('...
29.708029
93
0.573587
22b5a480a732fa7c9bc48963c524bf79cd8e2dc3
18,083
py
Python
content/test/gpu/gpu_tests/power_measurement_integration_test.py
sarang-apps/darshan_browser
173649bb8a7c656dc60784d19e7bb73e07c20daa
[ "BSD-3-Clause-No-Nuclear-License-2014", "BSD-3-Clause" ]
null
null
null
content/test/gpu/gpu_tests/power_measurement_integration_test.py
sarang-apps/darshan_browser
173649bb8a7c656dc60784d19e7bb73e07c20daa
[ "BSD-3-Clause-No-Nuclear-License-2014", "BSD-3-Clause" ]
null
null
null
content/test/gpu/gpu_tests/power_measurement_integration_test.py
sarang-apps/darshan_browser
173649bb8a7c656dc60784d19e7bb73e07c20daa
[ "BSD-3-Clause-No-Nuclear-License-2014", "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. """This script only works on Windows with Intel CPU. Intel Power Gadget needs to be installed on the machine before this script works. The software can be dow...
34.842004
80
0.659293
3503ed39419d747fb71832914533db511bc033a3
12,591
py
Python
tools/test.py
hasnainvirk/mbed-os
f3da72875035c96f5eab77b4ed07022ce08e8c5b
[ "Apache-2.0", "BSD-3-Clause" ]
1
2019-04-04T19:54:33.000Z
2019-04-04T19:54:33.000Z
tools/test.py
hasnainvirk/mbed-os
f3da72875035c96f5eab77b4ed07022ce08e8c5b
[ "Apache-2.0", "BSD-3-Clause" ]
8
2018-01-15T10:23:03.000Z
2019-04-05T15:09:14.000Z
tools/test.py
hasnainvirk/mbed-os
f3da72875035c96f5eab77b4ed07022ce08e8c5b
[ "Apache-2.0", "BSD-3-Clause" ]
4
2017-03-13T12:38:58.000Z
2018-10-09T06:58:18.000Z
#! /usr/bin/env python2 """ mbed SDK Copyright (c) 2011-2013 ARM Limited 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 applicabl...
43.268041
158
0.583194
e40c9fccf3e6277b3bead4d2b76c065e18c0944c
1,401
py
Python
train/nn_utils.py
muxinc/videojs-super-resolution
e0f45832ff79285731eb29fbe8d48058c93f42fc
[ "MIT" ]
20
2020-10-15T22:34:04.000Z
2021-11-12T12:03:23.000Z
train/nn_utils.py
stefan2718/videojs-super-resolution
144556ce0dd0110709249759f226b8d1bb158d72
[ "MIT" ]
3
2020-11-18T21:17:15.000Z
2020-12-09T15:45:53.000Z
train/nn_utils.py
greggking/videojs-super-resolution
7dec1959c849b6eea549ddda1c27cf6bf396a934
[ "MIT" ]
3
2020-10-07T12:54:17.000Z
2021-08-09T10:17:54.000Z
# Utils for nn scaler import tensorflow as tf import os import random # Load a PNG and scale it to the given width/height def load_png(filename, height, width): raw_png = tf.read_file(filename) decoded_png = tf.image.decode_png(raw_png, channels=3) scaled_png = tf.image.resize_images(decoded_png, [height,...
38.916667
132
0.747323
ecc535e0d3d19cac8bf28af29b69b47aabf7119b
954
py
Python
openunipay/weixin_pay/admin.py
irocn/pay
8822b4db930cd72794a060d0ca17b67863e3ade0
[ "MIT" ]
63
2016-01-31T09:37:40.000Z
2021-03-17T08:31:16.000Z
openunipay/weixin_pay/admin.py
murez/openunipay
5b008fd01be8df658815f3d68d3e194a184763fe
[ "MIT" ]
4
2016-01-30T13:31:22.000Z
2017-01-17T08:28:58.000Z
openunipay/weixin_pay/admin.py
murez/openunipay
5b008fd01be8df658815f3d68d3e194a184763fe
[ "MIT" ]
32
2016-05-04T03:42:44.000Z
2021-01-24T09:37:24.000Z
# -*- coding: utf-8 -*- from django.contrib import admin from .models import WeiXinOrder from import_export import resources from import_export.admin import ImportExportModelAdmin class WeiXinOrderResource(resources.ModelResource): class Meta: model = WeiXinOrder import_id_fields = ('id',)...
34.071429
160
0.676101
1a1c59aa9d0f878fe8f35a1edf21d11c49c2b846
656
py
Python
setup.py
MrCubanfrog/OHappening
a7ea958ec96baa4cac5b8ae42cf53ae81d8f2e4b
[ "MIT" ]
null
null
null
setup.py
MrCubanfrog/OHappening
a7ea958ec96baa4cac5b8ae42cf53ae81d8f2e4b
[ "MIT" ]
null
null
null
setup.py
MrCubanfrog/OHappening
a7ea958ec96baa4cac5b8ae42cf53ae81d8f2e4b
[ "MIT" ]
null
null
null
# -*- coding: utf8 -*- from setuptools import setup, find_packages setup( name="OHappening", version="0.1.1", python_requires='>3.0.0', author="Ilmo Salmenperä", author_email="ilmo.salmenpera@helsinki.fi", packages=find_packages(), include_package_data=True, url="http://github.com/MrCub...
27.333333
95
0.664634
5954711aba6293db110326e8e0dc2d5453600334
4,491
py
Python
4_efficientdet/lib/infer_detector.py
tincher/Monk_Object_Detection
4d33b100a642eabdfb70aacd22d591cddfe04f98
[ "Apache-2.0" ]
null
null
null
4_efficientdet/lib/infer_detector.py
tincher/Monk_Object_Detection
4d33b100a642eabdfb70aacd22d591cddfe04f98
[ "Apache-2.0" ]
null
null
null
4_efficientdet/lib/infer_detector.py
tincher/Monk_Object_Detection
4d33b100a642eabdfb70aacd22d591cddfe04f98
[ "Apache-2.0" ]
null
null
null
import os import argparse import torch import torch.nn as nn from torch.utils.data import DataLoader from torchvision import transforms from dataset import CocoDataset, Resizer, Normalizer, Augmenter, collater from model import EfficientDet from tensorboardX import SummaryWriter import shutil import numpy as np from tq...
41.201835
124
0.601648
f55e793ad923c2319e6249de71f19c3482eec0a7
2,646
py
Python
script/hassfest/translations.py
KingofTown/core
3d9ae1b8bd05de2c481122a9446c5d09db6bc072
[ "Apache-2.0" ]
null
null
null
script/hassfest/translations.py
KingofTown/core
3d9ae1b8bd05de2c481122a9446c5d09db6bc072
[ "Apache-2.0" ]
null
null
null
script/hassfest/translations.py
KingofTown/core
3d9ae1b8bd05de2c481122a9446c5d09db6bc072
[ "Apache-2.0" ]
null
null
null
"""Validate integration translation files.""" import json from typing import Dict import voluptuous as vol from voluptuous.humanize import humanize_error from .model import Integration def data_entry_schema(*, require_title: bool, require_step_title: bool): """Generate a data entry schema.""" step_title_cla...
29.076923
83
0.62585
c9bd6ff5d48a2e31e5b16cd771c7d691d5a829c8
426
py
Python
test/posix/integration/pthread/test.py
KristianJerpetjon/IncludeOS
367a1dcefafd6f9618e5373c9133839f9ee2d675
[ "Apache-2.0" ]
1
2019-09-14T09:58:20.000Z
2019-09-14T09:58:20.000Z
test/posix/integration/pthread/test.py
KristianJerpetjon/IncludeOS
367a1dcefafd6f9618e5373c9133839f9ee2d675
[ "Apache-2.0" ]
1
2016-06-28T13:30:26.000Z
2016-06-28T13:30:26.000Z
test/posix/integration/pthread/test.py
KristianJerpetjon/IncludeOS
367a1dcefafd6f9618e5373c9133839f9ee2d675
[ "Apache-2.0" ]
1
2021-06-16T22:48:53.000Z
2021-06-16T22:48:53.000Z
#! /usr/bin/env python import sys import os includeos_src = os.environ.get('INCLUDEOS_SRC', os.path.realpath(os.path.join(os.getcwd(), os.path.dirname(__file__))).split('/test')[0]) print 'includeos_src: {0}'.format(includeos_src) sys.path.insert(0,includeos_src) from vmrunner import v...
25.058824
120
0.685446
d3dcf7f47a5d66788134dd01c983435e51a48a12
1,474
py
Python
aiida/sphinxext/workchain.py
louisponet/aiida-core
3214236df66a3792ee57fe38a06c0c3bb65861ab
[ "MIT", "BSD-3-Clause" ]
1
2016-09-12T10:51:00.000Z
2016-09-12T10:51:00.000Z
aiida/sphinxext/workchain.py
louisponet/aiida-core
3214236df66a3792ee57fe38a06c0c3bb65861ab
[ "MIT", "BSD-3-Clause" ]
17
2020-03-11T17:04:05.000Z
2020-05-01T09:34:45.000Z
aiida/sphinxext/workchain.py
louisponet/aiida-core
3214236df66a3792ee57fe38a06c0c3bb65861ab
[ "MIT", "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- ########################################################################### # Copyright (c), The AiiDA team. All rights reserved. # # This file is part of the AiiDA code. # # ...
38.789474
102
0.602442
ade7a6c48def6e27bb18f5da17d41e102d75d4fc
1,061
py
Python
tests/dashboard/test_index.py
hema984838/Log_test
4f4d487e28e9b7b81fa0b814ed917a189e1c72dd
[ "MIT" ]
4
2021-07-06T14:51:24.000Z
2021-07-23T16:40:53.000Z
tests/dashboard/test_index.py
hema984838/Log_test
4f4d487e28e9b7b81fa0b814ed917a189e1c72dd
[ "MIT" ]
1
2021-05-11T13:02:48.000Z
2021-05-11T13:03:32.000Z
tests/dashboard/test_index.py
hema984838/Log_test
4f4d487e28e9b7b81fa0b814ed917a189e1c72dd
[ "MIT" ]
null
null
null
from flask import url_for, g from app.models import ( Alias, ) from tests.utils import login def test_create_random_alias_success(flask_client): login(flask_client) assert Alias.query.count() == 1 r = flask_client.post( url_for("dashboard.index"), data={"form-name": "create-random-em...
26.525
86
0.640905
72e040df2780ace87f6ba223c6df659bad16f4ca
6,439
py
Python
tests/test_http_util.py
Swapnilr1/pyoidc
2feb099f4f4e26047888437aea1226237d05ebba
[ "Apache-2.0" ]
null
null
null
tests/test_http_util.py
Swapnilr1/pyoidc
2feb099f4f4e26047888437aea1226237d05ebba
[ "Apache-2.0" ]
null
null
null
tests/test_http_util.py
Swapnilr1/pyoidc
2feb099f4f4e26047888437aea1226237d05ebba
[ "Apache-2.0" ]
null
null
null
from future.backports.http.cookies import SimpleCookie from future.builtins import str as newstr import datetime import pytest from six import PY2 from oic.exception import ImproperlyConfigured from oic.utils.http_util import CookieDealer from oic.utils.http_util import InvalidCookieSign from oic.utils.http_util imp...
30.808612
103
0.622457
a12dcacebc9c9931a491398c2005539f79a239b7
2,032
py
Python
plot/circles.py
eschombu/python-utils
8b3753e7ef961499c62755a104ac1ddb475cc68e
[ "MIT" ]
null
null
null
plot/circles.py
eschombu/python-utils
8b3753e7ef961499c62755a104ac1ddb475cc68e
[ "MIT" ]
null
null
null
plot/circles.py
eschombu/python-utils
8b3753e7ef961499c62755a104ac1ddb475cc68e
[ "MIT" ]
null
null
null
import numpy as np import matplotlib.pyplot as plt import matplotlib as mpl def create_circles(xy_tuples, radii=None, colors_or_cmapNormInd=None): if radii is None: radii = np.zeros(len(xy_tuples)) elif len(radii) == 1: radii = np.ones(len(xy_tuples)) * radii else: radii = np.array(...
36.945455
90
0.636811
f4623062ab4f59722e615d1dc193901d2d01d250
1,493
py
Python
Secao16_ProgramaOrientadaObjetos/Metodos.py
PauloFTeixeira/curso_python
9040c7dcc5262620f6330bb9637710bb8899bc6b
[ "MIT" ]
null
null
null
Secao16_ProgramaOrientadaObjetos/Metodos.py
PauloFTeixeira/curso_python
9040c7dcc5262620f6330bb9637710bb8899bc6b
[ "MIT" ]
null
null
null
Secao16_ProgramaOrientadaObjetos/Metodos.py
PauloFTeixeira/curso_python
9040c7dcc5262620f6330bb9637710bb8899bc6b
[ "MIT" ]
null
null
null
""" Método é o mesmo que função Representa o comportamento do objeto, as ações que ele pode realizar # MÉTODO CONSTRUTOR E DE INSTANCIA class Produto: # atributo de classe imposto = 1.5 # Método construtor def __init__(self, nome, descricao, valor): # métodos de i...
22.283582
78
0.626256
5341dbd8e8c52586adcbc95aa59dcfe76df3d224
11,304
py
Python
projects/ants/tests/04.py
AnthonyNg404/61A
6b8fc656ef5438dc45e58d49b025bc653dda8655
[ "Unlicense" ]
null
null
null
projects/ants/tests/04.py
AnthonyNg404/61A
6b8fc656ef5438dc45e58d49b025bc653dda8655
[ "Unlicense" ]
null
null
null
projects/ants/tests/04.py
AnthonyNg404/61A
6b8fc656ef5438dc45e58d49b025bc653dda8655
[ "Unlicense" ]
null
null
null
test = { 'name': 'Problem 4', 'points': 2, 'suites': [ { 'cases': [ { 'answer': 'ThrowerAnt', 'choices': [ 'ThrowerAnt', 'ShortThrower', 'LongThrower', 'Bee' ], 'hidden': False, 'locked': False, ...
31.752809
96
0.47753
e6e458a8a377e9496a5bd8c639166ada560bcefb
1,076
py
Python
src/metrics.py
jvfe/dvc-showcase
55e302216cf739df832d99808e463bddf03f91ce
[ "BSD-3-Clause" ]
1
2020-08-05T21:23:47.000Z
2020-08-05T21:23:47.000Z
src/metrics.py
jvfe/dvc-showcase
55e302216cf739df832d99808e463bddf03f91ce
[ "BSD-3-Clause" ]
null
null
null
src/metrics.py
jvfe/dvc-showcase
55e302216cf739df832d99808e463bddf03f91ce
[ "BSD-3-Clause" ]
null
null
null
# %% import networkx as nx import csv # %% def make_edgelist(file, cols=[2, 3], delim="\t"): """Create an edgelist that's easy to parse""" pairs = [] with open(file, "r") as inter_file: reader = csv.reader(inter_file, delimiter=delim) for row in reader: pairs.append([row[i] fo...
23.391304
67
0.643123
09bd007acd35e7b69cd8a875dbc0722185ba3c6c
7,277
py
Python
py_scripts/load_data.py
binarySequoia/VG_Recal
43b19453a168a8909eecc0b9eff501de8a563227
[ "MIT" ]
1
2020-11-28T21:02:29.000Z
2020-11-28T21:02:29.000Z
py_scripts/load_data.py
binarySequoia/vg_recal
43b19453a168a8909eecc0b9eff501de8a563227
[ "MIT" ]
null
null
null
py_scripts/load_data.py
binarySequoia/vg_recal
43b19453a168a8909eecc0b9eff501de8a563227
[ "MIT" ]
null
null
null
import numpy as np import pandas as pd import json from keras.utils import to_categorical def decodePhred(x): return 1-10**(-x/10.0) def encodePhred(x): out = -10 * np.log10(1.00000000001-x) out = out.astype(np.int64) out[out > 60] = 60 out[out <= 0] = 1 return out def json2csv(file, debu...
29.342742
107
0.580459
b6ce908d57ae9129d80163907bb028233092a8b1
276
py
Python
tests/artificial/transf_RelativeDifference/trend_ConstantTrend/cycle_0/ar_/test_artificial_128_RelativeDifference_ConstantTrend_0__0.py
shaido987/pyaf
b9afd089557bed6b90b246d3712c481ae26a1957
[ "BSD-3-Clause" ]
377
2016-10-13T20:52:44.000Z
2022-03-29T18:04:14.000Z
tests/artificial/transf_RelativeDifference/trend_ConstantTrend/cycle_0/ar_/test_artificial_128_RelativeDifference_ConstantTrend_0__0.py
ysdede/pyaf
b5541b8249d5a1cfdc01f27fdfd99b6580ed680b
[ "BSD-3-Clause" ]
160
2016-10-13T16:11:53.000Z
2022-03-28T04:21:34.000Z
tests/artificial/transf_RelativeDifference/trend_ConstantTrend/cycle_0/ar_/test_artificial_128_RelativeDifference_ConstantTrend_0__0.py
ysdede/pyaf
b5541b8249d5a1cfdc01f27fdfd99b6580ed680b
[ "BSD-3-Clause" ]
63
2017-03-09T14:51:18.000Z
2022-03-27T20:52:57.000Z
import pyaf.Bench.TS_datasets as tsds import tests.artificial.process_artificial_dataset as art art.process_dataset(N = 128 , FREQ = 'D', seed = 0, trendtype = "ConstantTrend", cycle_length = 0, transform = "RelativeDifference", sigma = 0.0, exog_count = 0, ar_order = 0);
39.428571
176
0.742754
2ee2055ef8bc73a049be12830e16d3a454cc485a
4,419
py
Python
V3_currently_not_working/poisoning.py
achanhon/AdversarialModel
64287b5fe4606ee154f03d775a9535e5de1cba24
[ "Unlicense" ]
null
null
null
V3_currently_not_working/poisoning.py
achanhon/AdversarialModel
64287b5fe4606ee154f03d775a9535e5de1cba24
[ "Unlicense" ]
null
null
null
V3_currently_not_working/poisoning.py
achanhon/AdversarialModel
64287b5fe4606ee154f03d775a9535e5de1cba24
[ "Unlicense" ]
1
2019-05-20T02:18:12.000Z
2019-05-20T02:18:12.000Z
import torch device = "cuda" if torch.cuda.is_available() else "cpu" print("TRAIN DATA") import torchvision import torchvision.transforms as transforms transform_train = transforms.Compose( [ transforms.ToTensor(), ] ) trainset = torchvision.datasets.CIFAR10( root="./build/data", train=True, down...
28.694805
92
0.632722
5f3c47b7933e13bc20d0861528167b4e409b24c4
4,677
py
Python
server/mainapp/utils.py
mayank0508/MusicApp
1575d9120735d40c1736a2734fc2a29195f6d606
[ "MIT" ]
null
null
null
server/mainapp/utils.py
mayank0508/MusicApp
1575d9120735d40c1736a2734fc2a29195f6d606
[ "MIT" ]
null
null
null
server/mainapp/utils.py
mayank0508/MusicApp
1575d9120735d40c1736a2734fc2a29195f6d606
[ "MIT" ]
null
null
null
from rest_framework import status from django.http import response import datetime as d from core.settings import AWS_BUCKET_FOLDER, AWS_OBJECT_URL_PREFIX from authentication.errors import ContactUsDataInsertionError from authentication.models import ContactUsData from core.errors import PageDoesNotExistError from .er...
29.980769
85
0.632457
167f54538914ad162e2690fb1002cff6e8fe47f2
942
py
Python
test/test_lisp_list.py
jakubwro/lisp-in-python
380469c7303b448113dc7e54ced4bcd60be3e7aa
[ "MIT" ]
3
2020-01-30T08:55:50.000Z
2021-04-15T15:03:57.000Z
test/test_lisp_list.py
jakubwro/lisp-in-python
380469c7303b448113dc7e54ced4bcd60be3e7aa
[ "MIT" ]
null
null
null
test/test_lisp_list.py
jakubwro/lisp-in-python
380469c7303b448113dc7e54ced4bcd60be3e7aa
[ "MIT" ]
null
null
null
import pytest import sys import os sys.path.append(os.path.abspath('test')) from runner import execute, Interpreter def test_list_functions(): run = Interpreter().run assert run("(list)") == "()" assert run("(list? (list))") == "true" assert run("(empty? (list))") == "true" assert run("(empty? (lis...
33.642857
64
0.550955
c079836d7f97416cb9464dd60069dee6828d693e
2,551
py
Python
src/ozy_streaming.py
pambot/ozymandias
21dd8323c586e0d5019be10e831afde1d32a8e71
[ "MIT" ]
33
2017-11-29T06:43:56.000Z
2021-07-23T14:00:05.000Z
src/ozy_streaming.py
pambot/ozymandias
21dd8323c586e0d5019be10e831afde1d32a8e71
[ "MIT" ]
1
2017-12-11T09:26:28.000Z
2017-12-11T09:26:28.000Z
src/ozy_streaming.py
pambot/ozymandias
21dd8323c586e0d5019be10e831afde1d32a8e71
[ "MIT" ]
15
2018-01-21T15:48:33.000Z
2022-02-12T19:58:09.000Z
import os import json import numpy as np import cv2 import sparkstart from pyspark import SparkContext, SparkConf, SparkFiles from pyspark.streaming import StreamingContext from pyspark.streaming.kafka import KafkaUtils from kafka import SimpleClient, KeyedProducer ROOT = os.getenv('HOME') + '/' def detect_features...
28.032967
74
0.623285
9730daa163062de0fa7458fed73106da653aa4ab
40,552
py
Python
examples/flax/summarization/run_summarization_flax.py
bugface/transformers
ba286fe7d51db12ad663effac83bed8199dd7141
[ "Apache-2.0" ]
5
2020-09-01T09:15:48.000Z
2020-09-15T03:25:05.000Z
examples/flax/summarization/run_summarization_flax.py
bugface/transformers
ba286fe7d51db12ad663effac83bed8199dd7141
[ "Apache-2.0" ]
2
2022-03-08T04:58:59.000Z
2022-03-19T03:45:14.000Z
examples/flax/summarization/run_summarization_flax.py
bugface/transformers
ba286fe7d51db12ad663effac83bed8199dd7141
[ "Apache-2.0" ]
3
2020-08-20T04:46:25.000Z
2020-10-14T08:39:13.000Z
#!/usr/bin/env python # coding=utf-8 # Copyright 2021 The HuggingFace Team 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-...
42.374086
119
0.660485
f94fe847c65e45154e40ec16bfe49c4fc0ced033
1,774
py
Python
sphinx/writers/xml.py
zhsj/sphinx
169297d0b76bf0b503033dadeb14f9a2b735e422
[ "BSD-2-Clause" ]
69
2019-02-18T12:07:35.000Z
2022-03-12T10:38:32.000Z
sphinx/writers/xml.py
zhsj/sphinx
169297d0b76bf0b503033dadeb14f9a2b735e422
[ "BSD-2-Clause" ]
12
2018-12-06T22:06:49.000Z
2022-02-25T17:40:44.000Z
sphinx/writers/xml.py
zhsj/sphinx
169297d0b76bf0b503033dadeb14f9a2b735e422
[ "BSD-2-Clause" ]
28
2019-03-22T01:07:13.000Z
2022-02-21T16:38:27.000Z
# -*- coding: utf-8 -*- """ sphinx.writers.xml ~~~~~~~~~~~~~~~~~~ Docutils-native XML and pseudo-XML writers. :copyright: Copyright 2007-2018 by the Sphinx team, see AUTHORS. :license: BSD, see LICENSE for details. """ from docutils import writers from docutils.writers.docutils_xml import Writer ...
28.15873
70
0.642052
1862fb422684c3f141e3167bcc3df472c5bcd8c6
964
py
Python
ssh/keygen.py
peregrinium/clusterforDO
0abeb91a3e7daf6070cbf95161bb75eba0465d9a
[ "MIT" ]
null
null
null
ssh/keygen.py
peregrinium/clusterforDO
0abeb91a3e7daf6070cbf95161bb75eba0465d9a
[ "MIT" ]
null
null
null
ssh/keygen.py
peregrinium/clusterforDO
0abeb91a3e7daf6070cbf95161bb75eba0465d9a
[ "MIT" ]
1
2019-04-11T19:57:38.000Z
2019-04-11T19:57:38.000Z
import os from Crypto.PublicKey import RSA def generate_key(): return RSA.generate(2048) def check_key_already_generated(): with open(os.path.join(os.path.dirname(os.path.realpath(__file__)),"id_rsa"), 'r') as private_key: if private_key.read(11) == "UNGENERATED": return False with ope...
35.703704
107
0.673237
9f50ce703baa1beeec4da3c9203e8c8577a5fba7
3,168
py
Python
venv/Lib/site-packages/apscheduler/events.py
hitzhu/simpleblog-master
ec1e38ed924f9595d29095e060e33814792bdbac
[ "Apache-2.0" ]
1
2022-02-04T22:33:17.000Z
2022-02-04T22:33:17.000Z
lib/python3.7/site-packages/apscheduler/events.py
robinhaggqvist/ikea-stock-checker
a4f1c078c5290aaffa02fba8f5bb911f3678bff0
[ "MIT" ]
null
null
null
lib/python3.7/site-packages/apscheduler/events.py
robinhaggqvist/ikea-stock-checker
a4f1c078c5290aaffa02fba8f5bb911f3678bff0
[ "MIT" ]
null
null
null
__all__ = ('EVENT_SCHEDULER_START', 'EVENT_SCHEDULER_SHUTDOWN', 'EVENT_EXECUTOR_ADDED', 'EVENT_EXECUTOR_REMOVED', 'EVENT_JOBSTORE_ADDED', 'EVENT_JOBSTORE_REMOVED', 'EVENT_ALL_JOBS_REMOVED', 'EVENT_JOB_ADDED', 'EVENT_JOB_REMOVED', 'EVENT_JOB_MODIFIED', 'EVENT_JOB_EXECUTED', 'EVENT_JOB_ER...
34.813187
98
0.714331
e02605ddade10570cc524884cac938ff5c584de3
143,736
py
Python
datalad/support/annexrepo.py
mikapfl/datalad
7b407ecbbfbbea0789304a640bac721d1718e72d
[ "MIT" ]
null
null
null
datalad/support/annexrepo.py
mikapfl/datalad
7b407ecbbfbbea0789304a640bac721d1718e72d
[ "MIT" ]
null
null
null
datalad/support/annexrepo.py
mikapfl/datalad
7b407ecbbfbbea0789304a640bac721d1718e72d
[ "MIT" ]
null
null
null
# emacs: -*- mode: python; py-indent-offset: 4; tab-width: 4; indent-tabs-mode: nil -*- # ex: set sts=4 ts=4 sw=4 noet: # ## ### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ## # # See COPYING file distributed along with the datalad package for the # copyright and license terms. # # ## ### ##...
38.597207
167
0.562469
6efcba1e138fe0e553bb174496970681492b180d
914
py
Python
addons/website_event_track/models/event_track_tag.py
SHIVJITH/Odoo_Machine_Test
310497a9872db7844b521e6dab5f7a9f61d365a4
[ "Apache-2.0" ]
null
null
null
addons/website_event_track/models/event_track_tag.py
SHIVJITH/Odoo_Machine_Test
310497a9872db7844b521e6dab5f7a9f61d365a4
[ "Apache-2.0" ]
null
null
null
addons/website_event_track/models/event_track_tag.py
SHIVJITH/Odoo_Machine_Test
310497a9872db7844b521e6dab5f7a9f61d365a4
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # Part of Odoo. See LICENSE file for full copyright and licensing details. from random import randint from odoo import fields, models class TrackTag(models.Model): _name = "event.track.tag" _description = 'Event Track Tag' _order = "category_id, sequence, name" def _default_...
32.642857
101
0.677243
b5de6355aadb5f3bc501a9524e1a96d449e4375c
238
py
Python
api/__init__.py
ICan-js/api
883ac4de4d1bef04a48a4516022fd29a570821c2
[ "BSD-2-Clause" ]
null
null
null
api/__init__.py
ICan-js/api
883ac4de4d1bef04a48a4516022fd29a570821c2
[ "BSD-2-Clause" ]
1
2021-03-25T23:30:48.000Z
2021-03-25T23:30:48.000Z
api/__init__.py
ICan-js/api
883ac4de4d1bef04a48a4516022fd29a570821c2
[ "BSD-2-Clause" ]
null
null
null
from flasgger import Swagger from flask import Flask from flask_cors import CORS app = Flask(__name__) cors = CORS(app) swagger = Swagger(app) app.config.from_object("config") from api.controllers import general, mobilenetv1, lecun98
18.307692
57
0.789916
ed660448ace785bb36b84177cfca982aeacab0f7
1,909
py
Python
tests/integration/insights/v1/test_summary.py
nitinavasthi/twillio-whatsapp
182397b9e7d7270735756bbfc52cf78b9a5c1719
[ "MIT" ]
null
null
null
tests/integration/insights/v1/test_summary.py
nitinavasthi/twillio-whatsapp
182397b9e7d7270735756bbfc52cf78b9a5c1719
[ "MIT" ]
null
null
null
tests/integration/insights/v1/test_summary.py
nitinavasthi/twillio-whatsapp
182397b9e7d7270735756bbfc52cf78b9a5c1719
[ "MIT" ]
null
null
null
# coding=utf-8 r""" This code was generated by \ / _ _ _| _ _ | (_)\/(_)(_|\/| |(/_ v1.0.0 / / """ from tests import IntegrationTestCase from tests.holodeck import Request from twilio.base.exceptions import TwilioException from twilio.http.response import Response class CallSummaryTestCase(Integ...
31.816667
104
0.545312
e18c0b735c936295f567cc5cea21270242ae63b3
13,568
py
Python
venv/Lib/site-packages/torch/quantization/quantize.py
countBMB/BenjiRepo
79d882263baaf2a11654ca67d2e5593074d36dfa
[ "Apache-2.0" ]
1
2020-02-24T06:23:07.000Z
2020-02-24T06:23:07.000Z
venv/Lib/site-packages/torch/quantization/quantize.py
countBMB/BenjiRepo
79d882263baaf2a11654ca67d2e5593074d36dfa
[ "Apache-2.0" ]
4
2021-06-02T00:49:27.000Z
2022-01-13T01:59:34.000Z
venv/Lib/site-packages/torch/quantization/quantize.py
countBMB/BenjiRepo
79d882263baaf2a11654ca67d2e5593074d36dfa
[ "Apache-2.0" ]
null
null
null
from __future__ import absolute_import, division, print_function, unicode_literals import copy import itertools import warnings import torch import torch.nn as nn import torch.nn.intrinsic as nni import torch.nn.quantized as nnq from .default_mappings import (DEFAULT_DYNAMIC_MODULE_MAPPING, ...
40.501493
117
0.679761
fa3c73e124d991ac42447caaa9ef9e79f72ae98d
4,081
py
Python
netbox/dcim/tables/sites.py
MXPicture/netbox
3fbf1f7e71801487abd3524797298d82dca4db4f
[ "Apache-2.0" ]
null
null
null
netbox/dcim/tables/sites.py
MXPicture/netbox
3fbf1f7e71801487abd3524797298d82dca4db4f
[ "Apache-2.0" ]
null
null
null
netbox/dcim/tables/sites.py
MXPicture/netbox
3fbf1f7e71801487abd3524797298d82dca4db4f
[ "Apache-2.0" ]
null
null
null
import django_tables2 as tables from dcim.models import Location, Region, Site, SiteGroup from netbox.tables import NetBoxTable, columns from tenancy.tables import TenantColumn from .template_code import LOCATION_BUTTONS __all__ = ( 'LocationTable', 'RegionTable', 'SiteTable', 'SiteGroupTable', ) # ...
25.993631
116
0.599853
03d58e16b055d90af08bb7767036415bccbfc60b
1,639
py
Python
rlkit/samplers/in_place.py
ajabri/oyster
7be65f232a538d4ec541c000b3661f44ececb5fb
[ "MIT" ]
null
null
null
rlkit/samplers/in_place.py
ajabri/oyster
7be65f232a538d4ec541c000b3661f44ececb5fb
[ "MIT" ]
null
null
null
rlkit/samplers/in_place.py
ajabri/oyster
7be65f232a538d4ec541c000b3661f44ececb5fb
[ "MIT" ]
null
null
null
from rlkit.samplers.util import rollout from rlkit.torch.sac.policies import MakeDeterministic class InPlacePathSampler(object): """ A sampler that does not serialization for sampling. Instead, it just uses the current policy and environment as-is. WARNING: This will affect the environment! So ``...
32.137255
104
0.640024
b8471fda5d4aff0ab676b7dd75a4a245e946e738
11,866
py
Python
awx/main/tests/functional/test_projects.py
bhyunki/awx
ce588a6af5a5c7f71a5b176ffe53eda5ebc3492c
[ "Apache-2.0" ]
11,396
2017-09-07T04:56:02.000Z
2022-03-31T13:56:17.000Z
awx/main/tests/functional/test_projects.py
bhyunki/awx
ce588a6af5a5c7f71a5b176ffe53eda5ebc3492c
[ "Apache-2.0" ]
11,046
2017-09-07T09:30:46.000Z
2022-03-31T20:28:01.000Z
awx/main/tests/functional/test_projects.py
bhyunki/awx
ce588a6af5a5c7f71a5b176ffe53eda5ebc3492c
[ "Apache-2.0" ]
3,592
2017-09-07T04:14:31.000Z
2022-03-31T23:53:09.000Z
# -*- coding: utf-8 -*- from unittest import mock # noqa import pytest from awx.api.versioning import reverse from awx.main.models import Project from django.core.exceptions import ValidationError # # Project listing and visibility tests # @pytest.fixture def team_project_list(organization_factory): objects =...
28.871046
157
0.542811
e866d60f841ae414868c0f4073af10b4c0f8cb55
3,775
py
Python
darling_ansible/python_venv/lib/python3.7/site-packages/oci/application_migration/models/soacs_discovery_details.py
revnav/sandbox
f9c8422233d093b76821686b6c249417502cf61d
[ "Apache-2.0" ]
null
null
null
darling_ansible/python_venv/lib/python3.7/site-packages/oci/application_migration/models/soacs_discovery_details.py
revnav/sandbox
f9c8422233d093b76821686b6c249417502cf61d
[ "Apache-2.0" ]
null
null
null
darling_ansible/python_venv/lib/python3.7/site-packages/oci/application_migration/models/soacs_discovery_details.py
revnav/sandbox
f9c8422233d093b76821686b6c249417502cf61d
[ "Apache-2.0" ]
1
2020-06-25T03:12:58.000Z
2020-06-25T03:12:58.000Z
# coding: utf-8 # Copyright (c) 2016, 2020, Oracle and/or its affiliates. All rights reserved. # This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may c...
33.705357
245
0.66649
dba9481c5ff40f880412abeb1749e1ddc1ad9c73
1,475
py
Python
samples/views/views.py
dev-ai-kar/django-tools
78e41580d34d359e9bfe029b9c7b0cb6e81d2cb1
[ "CC-BY-3.0" ]
null
null
null
samples/views/views.py
dev-ai-kar/django-tools
78e41580d34d359e9bfe029b9c7b0cb6e81d2cb1
[ "CC-BY-3.0" ]
null
null
null
samples/views/views.py
dev-ai-kar/django-tools
78e41580d34d359e9bfe029b9c7b0cb6e81d2cb1
[ "CC-BY-3.0" ]
1
2021-08-23T19:38:37.000Z
2021-08-23T19:38:37.000Z
from django.http import HttpResponse from django.http import HttpResponseRedirect from django.utils.html import escape from django.views import View # Create your views here. def funky(request): response = """<html><body><p>This is the funky function sample</p> </body></html>""" return HttpResponse(respons...
29.5
70
0.629831
e36f0ff78b119d379622898a61401fc0a2b8466f
5,525
py
Python
numpy/distutils/fcompiler/absoft.py
walshb/numpy
073bc39c58a6788ffda6aaa7549955cc3d4fdc93
[ "BSD-3-Clause" ]
343
2015-01-07T05:58:44.000Z
2022-03-15T14:55:21.000Z
numpy/distutils/fcompiler/absoft.py
walshb/numpy
073bc39c58a6788ffda6aaa7549955cc3d4fdc93
[ "BSD-3-Clause" ]
61
2015-03-19T18:20:21.000Z
2019-10-23T12:58:23.000Z
numpy/distutils/fcompiler/absoft.py
walshb/numpy
073bc39c58a6788ffda6aaa7549955cc3d4fdc93
[ "BSD-3-Clause" ]
66
2015-01-20T15:35:05.000Z
2021-11-25T16:49:41.000Z
# http://www.absoft.com/literature/osxuserguide.pdf # http://www.absoft.com/documentation.html # Notes: # - when using -g77 then use -DUNDERSCORE_G77 to compile f2py # generated extension modules (works for f2py v2.45.241_1936 and up) import os from numpy.distutils.cpuinfo import cpu from numpy.distutils.fcompile...
34.53125
155
0.544072
bf8d3f3cb062b9089b90ffeb3f73b05e0cc4ba6b
62,245
py
Python
cinder/volume/drivers/nexenta/ns5/iscsi.py
cloudification-io/cinder
23d76e01f2b4f3771b57fb287084a4884238b827
[ "Apache-2.0" ]
571
2015-01-01T17:47:26.000Z
2022-03-23T07:46:36.000Z
cinder/volume/drivers/nexenta/ns5/iscsi.py
BelieveInFuture/cinder
fff95fa6a68a054488ee087b6e31f4f5e28209dc
[ "Apache-2.0" ]
37
2015-01-22T23:27:04.000Z
2021-02-05T16:38:48.000Z
cinder/volume/drivers/nexenta/ns5/iscsi.py
BelieveInFuture/cinder
fff95fa6a68a054488ee087b6e31f4f5e28209dc
[ "Apache-2.0" ]
841
2015-01-04T17:17:11.000Z
2022-03-31T12:06:51.000Z
# Copyright 2019 Nexenta Systems, 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 req...
43.711376
79
0.589686
28627afdf5730a30a72abe885266dd5f96c95710
979
py
Python
Archive/Ami-NEM-poly.py
sjpbailey/udi-poly-ami-nem-python-master
e5582899bb2648d1bdcd7dd4ff27bcb51a8cd5fc
[ "MIT" ]
null
null
null
Archive/Ami-NEM-poly.py
sjpbailey/udi-poly-ami-nem-python-master
e5582899bb2648d1bdcd7dd4ff27bcb51a8cd5fc
[ "MIT" ]
2
2021-07-31T19:36:57.000Z
2021-08-10T22:18:29.000Z
Archive/Ami-NEM-poly.py
sjpbailey/udi-poly-ami-nem-python-master
e5582899bb2648d1bdcd7dd4ff27bcb51a8cd5fc
[ "MIT" ]
2
2021-08-09T21:21:39.000Z
2021-08-09T21:23:27.000Z
#!/usr/bin/env python """ This is a NodeServer template for Polyglot v3 written in Python3 v2 version by Einstein.42 (James Milne) milne.james@gmail.com v3 version by (Bob Paauwe) bpaauwe@yahoo.com v3 Net Energy Meter by (Steve Bailey) sjpbailey@gmial.com """ import udi_interface import sys LOGGER = udi_interface.LOG...
31.580645
109
0.682329
5209623957b7d15ad91d1d33d49fcd55804ca495
409
py
Python
Aulas python downloads/ex057.py
Osmair-riamso/AulasPython
647f51182a46f34af6d9b5cff8511182c6cad4a4
[ "MIT" ]
null
null
null
Aulas python downloads/ex057.py
Osmair-riamso/AulasPython
647f51182a46f34af6d9b5cff8511182c6cad4a4
[ "MIT" ]
null
null
null
Aulas python downloads/ex057.py
Osmair-riamso/AulasPython
647f51182a46f34af6d9b5cff8511182c6cad4a4
[ "MIT" ]
null
null
null
'''Faça um programa que leia o sexo de uma pessoa, mas só aceite os valores ‘M’ ou ‘F’. Caso esteja errado, peça a digitação novamente até ter um valor correto.''' sexo = str(input("digite seu sexo: [M/F]")).strip().upper()[0] while sexo not in "mMfF": sexo = str(input("Dados invalidos. Por favor Digite usando ...
31.461538
93
0.674817
a0ed8d32370f68e2b35dd7b7b4a32159c33b2e1a
17,005
py
Python
ionosenterprise/client.py
TomaAlexandru/ionos-enterprise-sdk-python
df66b11ef51960417227721f3224f746edaa6b22
[ "Apache-2.0" ]
null
null
null
ionosenterprise/client.py
TomaAlexandru/ionos-enterprise-sdk-python
df66b11ef51960417227721f3224f746edaa6b22
[ "Apache-2.0" ]
null
null
null
ionosenterprise/client.py
TomaAlexandru/ionos-enterprise-sdk-python
df66b11ef51960417227721f3224f746edaa6b22
[ "Apache-2.0" ]
null
null
null
# Copyright 2015-2017 IONOS # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, s...
38.472851
102
0.569303
bcb15250f3951b2bdd85642c75090a117c714e64
15,165
py
Python
nova/tests/virt/baremetal/test_tilera.py
SnabbCo/nova
d156d7fdf241569da2c27ae02ec88e6ef448f7e2
[ "Apache-2.0" ]
2
2016-04-19T08:20:39.000Z
2021-10-03T16:00:37.000Z
nova/tests/virt/baremetal/test_tilera.py
SnabbCo/nova
d156d7fdf241569da2c27ae02ec88e6ef448f7e2
[ "Apache-2.0" ]
null
null
null
nova/tests/virt/baremetal/test_tilera.py
SnabbCo/nova
d156d7fdf241569da2c27ae02ec88e6ef448f7e2
[ "Apache-2.0" ]
1
2020-07-24T06:34:03.000Z
2020-07-24T06:34:03.000Z
# coding=utf-8 # Copyright (c) 2011-2013 University of Southern California / ISI # 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...
38.007519
79
0.628157
713e881c24db0dc99a10b9b9bf47279b592a00db
4,833
py
Python
read_log_mt50.py
NagisaZj/mtrl
9aa7b614e22cecddfb61da2a85e196e26aeea814
[ "MIT" ]
null
null
null
read_log_mt50.py
NagisaZj/mtrl
9aa7b614e22cecddfb61da2a85e196e26aeea814
[ "MIT" ]
null
null
null
read_log_mt50.py
NagisaZj/mtrl
9aa7b614e22cecddfb61da2a85e196e26aeea814
[ "MIT" ]
null
null
null
import json import matplotlib.pyplot as plt import numpy as np color_set = { 'Amaranth': np.array([0.9, 0.17, 0.31]), # main algo 'Amber': np.array([1.0, 0.49, 0.0]), # main baseline 'Bleu de France': np.array([0.19, 0.55, 0.91]), 'Electric violet': np.array([0.56, 0.0, 1.0]), ...
42.769912
476
0.695634
608f576b785ccd427e1e09d9f4e56cee6a09c4a5
11,502
py
Python
tests/unit/test_schema_collection_info.py
cutwater/galaxy-importer
1d585a6739cc72cb1db1574b50fdda55c23092de
[ "Apache-2.0" ]
null
null
null
tests/unit/test_schema_collection_info.py
cutwater/galaxy-importer
1d585a6739cc72cb1db1574b50fdda55c23092de
[ "Apache-2.0" ]
null
null
null
tests/unit/test_schema_collection_info.py
cutwater/galaxy-importer
1d585a6739cc72cb1db1574b50fdda55c23092de
[ "Apache-2.0" ]
null
null
null
# (c) 2012-2019, Ansible by Red Hat # # This file is part of Ansible Galaxy # # Ansible Galaxy is free software: you can redistribute it and/or modify # it under the terms of the Apache License as published by # the Apache Software Foundation, either version 2 of the License, or # (at your option) any later version. # ...
30.428571
92
0.651626
53cbd234f0ae97aaa4c792123f54948813831f8a
173
py
Python
SPOJ/AjudeAparecido.py
aajjbb/contest-files
b8842681b96017063a7baeac52ae1318bf59d74d
[ "Apache-2.0" ]
1
2018-08-28T19:58:40.000Z
2018-08-28T19:58:40.000Z
SPOJ/AjudeAparecido.py
aajjbb/contest-files
b8842681b96017063a7baeac52ae1318bf59d74d
[ "Apache-2.0" ]
2
2017-04-16T00:48:05.000Z
2017-08-03T20:12:26.000Z
SPOJ/AjudeAparecido.py
aajjbb/contest-files
b8842681b96017063a7baeac52ae1318bf59d74d
[ "Apache-2.0" ]
4
2016-03-04T19:42:00.000Z
2018-01-08T11:42:00.000Z
N, S = int(input()), 0 line = str(input()).split() for i in range(N): S = S + int(line[i]) T = int(input()) if T == S: print("Acertou") else: print("Errou")
12.357143
27
0.514451
147cc8c87b3a75e461eeb139e9a9a29a182b926b
2,334
py
Python
avionix/kube/coordination.py
Maxiimeeb/avionix
c149e4319c8c8c00d50450ec1644545340ff7322
[ "BSD-3-Clause" ]
51
2020-07-17T11:42:44.000Z
2022-03-17T23:51:28.000Z
avionix/kube/coordination.py
Maxiimeeb/avionix
c149e4319c8c8c00d50450ec1644545340ff7322
[ "BSD-3-Clause" ]
55
2020-07-14T21:21:14.000Z
2022-03-04T22:43:10.000Z
avionix/kube/coordination.py
Maxiimeeb/avionix
c149e4319c8c8c00d50450ec1644545340ff7322
[ "BSD-3-Clause" ]
9
2021-01-05T01:52:14.000Z
2022-02-16T12:42:18.000Z
""" Contains Lease class """ from datetime import time from typing import Optional from avionix.kube.base_objects import Coordination from avionix.kube.meta import ObjectMeta from avionix.yaml.yaml_handling import HelmYaml class LeaseSpec(HelmYaml): """ :param acquire_time: acquireTime is a time when the cu...
38.9
115
0.706084
cd218c64408eb5749c3765a106fa43acd367daeb
23,175
py
Python
luks/_version.py
barretobrock/luks
852c36bf6f0cbba5c639f64eff683df633bd0a24
[ "MIT" ]
null
null
null
luks/_version.py
barretobrock/luks
852c36bf6f0cbba5c639f64eff683df633bd0a24
[ "MIT" ]
null
null
null
luks/_version.py
barretobrock/luks
852c36bf6f0cbba5c639f64eff683df633bd0a24
[ "MIT" ]
null
null
null
# This file helps to compute a version number in source trees obtained from # git-archive tarball (such as those provided by githubs download-from-tag # feature). Distribution tarballs (built by setup.py sdist) and build # directories (produced by setup.py build) will contain a much shorter file # that just contains t...
35.930233
84
0.581014
d16779b10a97be2e6bb347f4a55821609a6bc996
2,065
py
Python
fashionscrapper/brand/mango/webelements/MangoWebElements.py
NiklasHoltmeyer/FashionScrapper
0505dce5eef62e44b6a50c372ade009d307baffd
[ "MIT" ]
null
null
null
fashionscrapper/brand/mango/webelements/MangoWebElements.py
NiklasHoltmeyer/FashionScrapper
0505dce5eef62e44b6a50c372ade009d307baffd
[ "MIT" ]
null
null
null
fashionscrapper/brand/mango/webelements/MangoWebElements.py
NiklasHoltmeyer/FashionScrapper
0505dce5eef62e44b6a50c372ade009d307baffd
[ "MIT" ]
null
null
null
from time import sleep from bs4 import BeautifulSoup from selenium.webdriver.common.by import By from selenium.webdriver.support import expected_conditions as EC from fashionscrapper.brand.mango.webelements.consts.Mango_Selectors import Mango_Selectors from fashionscrapper.brand.mango.webelements.views.Mango_Categori...
38.240741
113
0.68523
e153a98e96b994304710ed75695d9091195ad368
18,285
py
Python
st2common/st2common/runners/base.py
avezraj/st2
519c7f6819e52fb289c440bb7d1df7b558bb9ed7
[ "Apache-2.0" ]
null
null
null
st2common/st2common/runners/base.py
avezraj/st2
519c7f6819e52fb289c440bb7d1df7b558bb9ed7
[ "Apache-2.0" ]
null
null
null
st2common/st2common/runners/base.py
avezraj/st2
519c7f6819e52fb289c440bb7d1df7b558bb9ed7
[ "Apache-2.0" ]
null
null
null
# Copyright 2019 Extreme Networks, Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to i...
34.113806
100
0.641564
7424f12b9491f1f9313b02d3897acf40fd05a1ab
424
py
Python
installDeps.py
Comrade-Riley/python-paint
0c8c38bde99f731cda075886da50931c7e556524
[ "MIT" ]
null
null
null
installDeps.py
Comrade-Riley/python-paint
0c8c38bde99f731cda075886da50931c7e556524
[ "MIT" ]
null
null
null
installDeps.py
Comrade-Riley/python-paint
0c8c38bde99f731cda075886da50931c7e556524
[ "MIT" ]
null
null
null
import sys,os if sys.platform == "win32" or sys.platform == 'cygwin': pip='pip' os.system('py -m pip install -U pygame --user') elif sys.playform == 'linux' or sys.playform == 'linux': pip='pip3' os.syetem('sudo apt-get install python3-pygame') else: os.syetem('python3 -m pip install -U pygame --user') pip='pip3...
30.285714
56
0.669811
f3b06f0c1dfa14fcd019a9da3dd2c3442feb3c56
6,983
py
Python
built-in/MindSpore/Official/cv/image_classification/InceptionV4_for_MinSpore/train.py
Ascend/modelzoo
f018cfed33dbb1cc2110b9ea2e233333f71cc509
[ "Apache-2.0" ]
12
2020-12-13T08:34:24.000Z
2022-03-20T15:17:17.000Z
built-in/MindSpore/Official/cv/image_classification/InceptionV4_for_MinSpore/train.py
Ascend/modelzoo
f018cfed33dbb1cc2110b9ea2e233333f71cc509
[ "Apache-2.0" ]
1
2022-01-20T03:11:05.000Z
2022-01-20T06:53:39.000Z
built-in/MindSpore/Official/cv/image_classification/InceptionV4_for_MinSpore/train.py
Ascend/modelzoo
f018cfed33dbb1cc2110b9ea2e233333f71cc509
[ "Apache-2.0" ]
2
2021-07-10T12:40:46.000Z
2021-12-17T07:55:15.000Z
# 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...
42.840491
120
0.69569
d7e97e9ffbe504c6361b61b6b675d61e4f2536bd
345
py
Python
test/scales/thrift/gen_py/hello/ttypes.py
jeffreythewang/scales
9b068c6308eb7eb98f629e0542a0b0f28c04c960
[ "MIT" ]
123
2017-06-06T04:59:07.000Z
2019-07-11T10:20:35.000Z
test/scales/thrift/gen_py/hello/ttypes.py
jeffreythewang/scales
9b068c6308eb7eb98f629e0542a0b0f28c04c960
[ "MIT" ]
126
2015-04-26T02:55:26.000Z
2022-02-16T22:43:28.000Z
test/scales/thrift/gen_py/hello/ttypes.py
jeffreythewang/scales
9b068c6308eb7eb98f629e0542a0b0f28c04c960
[ "MIT" ]
163
2015-01-22T14:05:24.000Z
2022-03-17T12:24:34.000Z
# # Autogenerated by Thrift Compiler (0.10.0) # # DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING # # options string: py # from thrift.Thrift import TType, TMessageType, TFrozenDict, TException, TApplicationException from thrift.protocol.TProtocol import TProtocolException import sys from thrift.tra...
24.642857
93
0.797101
e7ca6e85ae109d704e78baf5eeb4cf4132bf7cb2
2,370
py
Python
Supported Languages/Python/smash/models/two_factor_authentication_model.py
SMASH-INC/API
d0679f199f786aa24f0510df078b4318c27dcc0f
[ "MIT" ]
null
null
null
Supported Languages/Python/smash/models/two_factor_authentication_model.py
SMASH-INC/API
d0679f199f786aa24f0510df078b4318c27dcc0f
[ "MIT" ]
null
null
null
Supported Languages/Python/smash/models/two_factor_authentication_model.py
SMASH-INC/API
d0679f199f786aa24f0510df078b4318c27dcc0f
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ smash.models.two_factor_authentication_model This file was automatically generated for SMASH by SMASH v2.0 ( https://smashlabs.io ) """ class TwoFactorAuthenticationModel(object): """Implementation of the 'Two Factor Authentication Model' model. TODO: type model descrip...
27.55814
90
0.577215
d3a8363dce043d7deb37b286bde00f63a66c11fb
14,718
py
Python
superset/models/dashboard.py
hikaya-io/incubator-superset
3dac81c89613f04dc9e4424dda043821c7557323
[ "Apache-2.0" ]
2
2021-01-24T18:12:26.000Z
2021-05-27T22:46:50.000Z
superset/models/dashboard.py
hikaya-io/incubator-superset
3dac81c89613f04dc9e4424dda043821c7557323
[ "Apache-2.0" ]
39
2019-07-28T09:49:37.000Z
2022-03-31T09:37:13.000Z
superset/models/dashboard.py
hikaya-io/incubator-superset
3dac81c89613f04dc9e4424dda043821c7557323
[ "Apache-2.0" ]
3
2021-01-05T10:54:08.000Z
2021-01-05T12:36:19.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...
36.795
87
0.669724
4e66d813814c1f3f8a9fa559165abfa2b1b08a85
524
py
Python
templates/app.py
ShweYeeKoKo/python-exercises
f7e0a8a5b1a55c42783d36f849c10b54932d568e
[ "MIT" ]
null
null
null
templates/app.py
ShweYeeKoKo/python-exercises
f7e0a8a5b1a55c42783d36f849c10b54932d568e
[ "MIT" ]
null
null
null
templates/app.py
ShweYeeKoKo/python-exercises
f7e0a8a5b1a55c42783d36f849c10b54932d568e
[ "MIT" ]
null
null
null
from flask import Flask from flask import render_template from flask import request app = Flask(__name__) @app.route("/hello", methods=['POST', 'GET']) def index(): greeting = "Hello World" if request.method == "POST": name = request.form['name'] greet = request.form['greet'] ...
23.818182
63
0.624046
3d0fe2714f1dbfaa2abe631b577ae655fde66511
5,629
py
Python
anchore_engine/util/deb.py
lewksanders/anchore-engine
dbf03360b29d8e07f275ddc609b43fef2c89fa57
[ "Apache-2.0" ]
1
2019-06-27T08:47:48.000Z
2019-06-27T08:47:48.000Z
anchore_engine/util/deb.py
lewksanders/anchore-engine
dbf03360b29d8e07f275ddc609b43fef2c89fa57
[ "Apache-2.0" ]
1
2021-06-25T15:24:28.000Z
2021-06-25T15:24:28.000Z
anchore_engine/util/deb.py
mcburne/anchore-engine
de3c5bea6c0628fd611b027fc1d9e58b7e8d15a3
[ "Apache-2.0" ]
1
2019-11-23T03:39:28.000Z
2019-11-23T03:39:28.000Z
""" Utils for working with debian packages (dpkg and apt). """ # Map ops to the conversion from a standard cmp output compare_operators = { 'le': lambda x: x <= 0, 'lt': lambda x: x < 0, 'eq': lambda x: x == 0, 'ne': lambda x: x != 0, 'ge': lambda x: x >= 0, 'gt': lambda x: x > 0, } # See dpk...
27.193237
118
0.549654
b32245b5a1c43915287671371c4978f93d95b1cf
233
py
Python
Configuration/Eras/python/Era_Phase2C9_cff.py
gputtley/cmssw
c1ef8454804e4ebea8b65f59c4a952a6c94fde3b
[ "Apache-2.0" ]
2
2017-09-29T13:32:51.000Z
2019-01-31T00:40:58.000Z
Configuration/Eras/python/Era_Phase2C9_cff.py
gputtley/cmssw
c1ef8454804e4ebea8b65f59c4a952a6c94fde3b
[ "Apache-2.0" ]
26
2018-10-30T12:47:58.000Z
2022-03-29T08:39:00.000Z
Configuration/Eras/python/Era_Phase2C9_cff.py
gputtley/cmssw
c1ef8454804e4ebea8b65f59c4a952a6c94fde3b
[ "Apache-2.0" ]
3
2019-03-09T13:06:43.000Z
2020-07-03T00:47:30.000Z
import FWCore.ParameterSet.Config as cms from Configuration.Eras.Era_Phase2C8_cff import Phase2C8 from Configuration.Eras.Modifier_phase2_hgcalV11_cff import phase2_hgcalV11 Phase2C9 = cms.ModifierChain(Phase2C8, phase2_hgcalV11)
29.125
75
0.871245
fa99ba4cda5323af399a24738cec7d5ced1be7a8
5,177
py
Python
temboo/core/Library/Flickr/Photos/Replace.py
jordanemedlock/psychtruths
52e09033ade9608bd5143129f8a1bfac22d634dd
[ "Apache-2.0" ]
7
2016-03-07T02:07:21.000Z
2022-01-21T02:22:41.000Z
temboo/core/Library/Flickr/Photos/Replace.py
jordanemedlock/psychtruths
52e09033ade9608bd5143129f8a1bfac22d634dd
[ "Apache-2.0" ]
null
null
null
temboo/core/Library/Flickr/Photos/Replace.py
jordanemedlock/psychtruths
52e09033ade9608bd5143129f8a1bfac22d634dd
[ "Apache-2.0" ]
8
2016-06-14T06:01:11.000Z
2020-04-22T09:21:44.000Z
# -*- coding: utf-8 -*- ############################################################################### # # Replace # Replaces a photo that has already been uploaded to Flickr. # # Python versions 2.6, 2.7, 3.x # # Copyright 2014, Temboo Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you m...
41.75
198
0.673749
5ceedf3ecdd79e2f0d3719ac5162f8e64981297f
27,316
py
Python
src/m1_Point.py
smitham-3/09-ImplementingClasses-201930
59e0362de0c2974f7be3676df4a62fe42ac1af1c
[ "MIT" ]
null
null
null
src/m1_Point.py
smitham-3/09-ImplementingClasses-201930
59e0362de0c2974f7be3676df4a62fe42ac1af1c
[ "MIT" ]
null
null
null
src/m1_Point.py
smitham-3/09-ImplementingClasses-201930
59e0362de0c2974f7be3676df4a62fe42ac1af1c
[ "MIT" ]
null
null
null
import math """ A simple Point class. NOTE: This is NOT rosegraphics -- it is your OWN Point class. Authors: David Mutchler, Vibha Alangar, Matt Boutell, Dave Fisher, Mark Hays, Amanda Stouder, Aaron Wilkin, their colleagues, and Alex Smith. """ # DONE: 1. PUT YOUR NAME IN THE ABOVE LINE. def ...
35.11054
79
0.522551
a0420f89681cef7818e25726c3f212e54d654d89
2,972
py
Python
fluids/obs/birds_eye.py
BerkeleyAutomation/FLUIDS
728da0d0fec5028ca4506aa9cc8e37a5b072e7a9
[ "MIT" ]
26
2017-12-28T18:15:36.000Z
2022-01-21T13:00:27.000Z
fluids/obs/birds_eye.py
BerkeleyAutomation/FLUIDS
728da0d0fec5028ca4506aa9cc8e37a5b072e7a9
[ "MIT" ]
61
2018-01-30T05:18:42.000Z
2021-05-19T15:00:05.000Z
fluids/obs/birds_eye.py
BerkeleyAutomation/FLUIDS
728da0d0fec5028ca4506aa9cc8e37a5b072e7a9
[ "MIT" ]
14
2017-12-11T04:59:21.000Z
2021-05-19T12:21:31.000Z
from six import iteritems import numpy as np import pygame from fluids.assets.shape import Shape from fluids.obs.obs import FluidsObs from fluids.utils import rotation_array class BirdsEyeObservation(FluidsObs): """ Bird's-eye 2D top-down image centered on the vehicle, similar to what is visualized. Mino...
43.705882
111
0.582773
05f1f9504d0cd5cfd1bfa71cd9601941565fe873
1,988
py
Python
boa3/builtin/nativecontract/gas.py
OnBlockIO/neo3-boa
cb317292a67532a52ed26f2b0f0f7d0b10ac5f5f
[ "Apache-2.0" ]
25
2020-07-22T19:37:43.000Z
2022-03-08T03:23:55.000Z
boa3/builtin/nativecontract/gas.py
OnBlockIO/neo3-boa
cb317292a67532a52ed26f2b0f0f7d0b10ac5f5f
[ "Apache-2.0" ]
419
2020-04-23T17:48:14.000Z
2022-03-31T13:17:45.000Z
boa3/builtin/nativecontract/gas.py
OnBlockIO/neo3-boa
cb317292a67532a52ed26f2b0f0f7d0b10ac5f5f
[ "Apache-2.0" ]
15
2020-05-21T21:54:24.000Z
2021-11-18T06:17:24.000Z
from typing import Any from boa3.builtin.type import UInt160 class GAS: """ A class used to represent the GAS native contract """ @classmethod def symbol(cls) -> str: """ Gets the symbol of GAS. :return: the GAS string. :rtype: str """ pass @...
26.506667
117
0.594064
8de6a70ecc99fc9345694e2e9a157968afdeb47d
1,841
py
Python
sdk/datafactory/azure-mgmt-datafactory/azure/mgmt/datafactory/models/rerun_trigger_resource.py
tzhanl/azure-sdk-for-python
18cd03f4ab8fd76cc0498f03e80fbc99f217c96e
[ "MIT" ]
1
2021-09-07T18:36:04.000Z
2021-09-07T18:36:04.000Z
sdk/datafactory/azure-mgmt-datafactory/azure/mgmt/datafactory/models/rerun_trigger_resource.py
tzhanl/azure-sdk-for-python
18cd03f4ab8fd76cc0498f03e80fbc99f217c96e
[ "MIT" ]
2
2019-10-02T23:37:38.000Z
2020-10-02T01:17:31.000Z
sdk/datafactory/azure-mgmt-datafactory/azure/mgmt/datafactory/models/rerun_trigger_resource.py
tzhanl/azure-sdk-for-python
18cd03f4ab8fd76cc0498f03e80fbc99f217c96e
[ "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.472727
82
0.587181