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
d5dcdc2e070c73315628fe951f12b74e68f54618
10,307
py
Python
modules/templates/DRK/layouts.py
nursix/DRKCM
09328289ff721c416494398aa751ff99906327cb
[ "MIT" ]
3
2022-01-26T08:07:54.000Z
2022-03-21T21:53:52.000Z
modules/templates/DRK/layouts.py
nursix/eden-asp
e49f46cb6488918f8d5a163dcd5a900cd686978c
[ "MIT" ]
null
null
null
modules/templates/DRK/layouts.py
nursix/eden-asp
e49f46cb6488918f8d5a163dcd5a900cd686978c
[ "MIT" ]
null
null
null
""" Menu layouts for DRK/Village License: MIT """ from gluon import * from gluon.storage import Storage from core import * from s3theme import NAV, SECTION # ============================================================================= class S3MainMenuLayout(S3NavigationItem): """ Custom Main Menu Layout...
35.788194
121
0.37654
d5dcf0fb34f5b03b5030c8b88b3ec018d3f0e72a
1,758
py
Python
applications/shop/choices.py
dev-easyshares/mighty
a6cf473fb8cfbf5b92db68c7b068fc8ae2911b8b
[ "MIT" ]
null
null
null
applications/shop/choices.py
dev-easyshares/mighty
a6cf473fb8cfbf5b92db68c7b068fc8ae2911b8b
[ "MIT" ]
1
2022-03-12T00:57:37.000Z
2022-03-12T00:57:37.000Z
applications/shop/choices.py
dev-easyshares/mighty
a6cf473fb8cfbf5b92db68c7b068fc8ae2911b8b
[ "MIT" ]
null
null
null
from django.utils.translation import gettext_lazy as _ ONEUSE = 'ONEUSE' MONTH = 'MONTH' YEAR = 'YEAR' FREE = 'FREE' CUSTOM = 'CUSTOM' FREQUENCIES = ( (ONEUSE, _('Par utilisation')), (MONTH, _('Mensuel')), (YEAR, _('Annuel')), (FREE, _('Gratuite')), (CUSTOM, _('Custom')), ) CB = "CB" IBAN = "IBAN"...
21.180723
54
0.598407
d5dcfe04b024ee99a2a3bebc7f72a5c904aa5d85
6,180
py
Python
scripts/htext2table.py
CGATOxford/proj029
f0a8ea63b4f086e673aa3bf8b7d3b9749261b525
[ "BSD-3-Clause" ]
3
2016-04-04T22:54:14.000Z
2017-04-01T09:37:54.000Z
scripts/htext2table.py
CGATOxford/proj029
f0a8ea63b4f086e673aa3bf8b7d3b9749261b525
[ "BSD-3-Clause" ]
null
null
null
scripts/htext2table.py
CGATOxford/proj029
f0a8ea63b4f086e673aa3bf8b7d3b9749261b525
[ "BSD-3-Clause" ]
null
null
null
''' htext2table.py ============== :Author: Nick Ilott :Release: $Id$ :Date: |today| :Tags: Python Purpose ------- Parse Kegg orthology data from an htext file into readable and useful format. The resulting format is a mapping of each kegg pathway with the genes within that pathway. Usage ----- Example:: cat in...
28.611111
145
0.478641
d5dd0d6de219ab241ec7c78a9295d9e7b7a0fa9b
2,813
py
Python
utuputki/webui/handlers/handlerbase.py
katajakasa/utuputki2
27dd38de512807ac1884e4df9d4ef8e80a74b252
[ "MIT" ]
6
2015-10-24T03:16:16.000Z
2019-10-07T18:35:15.000Z
utuputki/webui/handlers/handlerbase.py
katajakasa/utuputki2
27dd38de512807ac1884e4df9d4ef8e80a74b252
[ "MIT" ]
28
2015-10-23T07:26:29.000Z
2016-04-03T13:13:17.000Z
utuputki/webui/handlers/handlerbase.py
katajakasa/utuputki2
27dd38de512807ac1884e4df9d4ef8e80a74b252
[ "MIT" ]
2
2016-04-04T20:54:36.000Z
2019-08-08T12:14:25.000Z
# -*- coding: utf-8 -*- import json import logging from common.db import USERLEVELS log = logging.getLogger(__name__) class HandlerBase(object): def __init__(self, sock, mtype, query): self.sock = sock self.mtype = mtype self.query = query def get_req_skip_count(self): count...
32.333333
102
0.59936
d5dd0deff32ce0df4ff2b3a0c10fa839562d6b54
4,713
py
Python
salt/modules/sysmod.py
skrobul/salt
ef7fb71082cce7a9783e00b9c65062fefae09263
[ "Apache-2.0" ]
1
2018-02-03T17:30:56.000Z
2018-02-03T17:30:56.000Z
salt/modules/sysmod.py
skrobul/salt
ef7fb71082cce7a9783e00b9c65062fefae09263
[ "Apache-2.0" ]
null
null
null
salt/modules/sysmod.py
skrobul/salt
ef7fb71082cce7a9783e00b9c65062fefae09263
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- ''' The sys module provides information about the available functions on the minion ''' # Import python libs import logging # Import salt libs import salt.utils import salt.state from salt.utils.doc import strip_rst as _strip_rst log = logging.getLogger(__name__) # Define the module's virtua...
23.80303
79
0.598133
d5dd8bbdda91cdb49abf299a3904e83be2ae4b28
1,034
py
Python
src/mop/git/azure_devops/refs.py
robertfischer3/python-mop
d81fe43e484f469d91992e471acf059ecfd57dd2
[ "MIT" ]
1
2020-01-14T21:38:10.000Z
2020-01-14T21:38:10.000Z
src/mop/git/azure_devops/refs.py
robertfischer3/python-mop
d81fe43e484f469d91992e471acf059ecfd57dd2
[ "MIT" ]
null
null
null
src/mop/git/azure_devops/refs.py
robertfischer3/python-mop
d81fe43e484f469d91992e471acf059ecfd57dd2
[ "MIT" ]
1
2020-01-30T03:12:59.000Z
2020-01-30T03:12:59.000Z
from configparser import ConfigParser from dotenv import load_dotenv from mop.framework.azure_connections import request_authenticated_azure_session from mop.azure.utils.create_configuration import ( change_dir, CONFVARIABLES, OPERATIONSPATH, ) class AzureDevOpsRefs(): def __init__(self, personal_a...
32.3125
111
0.709865
d5dd9fc103b027476fef297c962549cd3e73b1e9
1,158
py
Python
ufora/distributed/ServerUtils/CaCerts.py
ufora/ufora
04db96ab049b8499d6d6526445f4f9857f1b6c7e
[ "Apache-2.0", "CC0-1.0", "MIT", "BSL-1.0", "BSD-3-Clause" ]
571
2015-11-05T20:07:07.000Z
2022-01-24T22:31:09.000Z
ufora/distributed/ServerUtils/CaCerts.py
timgates42/ufora
04db96ab049b8499d6d6526445f4f9857f1b6c7e
[ "Apache-2.0", "CC0-1.0", "MIT", "BSL-1.0", "BSD-3-Clause" ]
218
2015-11-05T20:37:55.000Z
2021-05-30T03:53:50.000Z
ufora/distributed/ServerUtils/CaCerts.py
timgates42/ufora
04db96ab049b8499d6d6526445f4f9857f1b6c7e
[ "Apache-2.0", "CC0-1.0", "MIT", "BSL-1.0", "BSD-3-Clause" ]
40
2015-11-07T21:42:19.000Z
2021-05-23T03:48:19.000Z
# Copyright 2015 Ufora 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...
31.297297
76
0.659758
d5ddaaec2319d3676267a3ea3674f3edc989834f
5,564
py
Python
tfoptflow/dataset_mpisintel.py
mf-zhang/tfoptflow
d27b249fcbae2d1f4373ef4ba16cb0c89890058e
[ "MIT" ]
478
2018-09-10T20:34:35.000Z
2022-03-28T07:52:17.000Z
tfoptflow/dataset_mpisintel.py
mf-zhang/tfoptflow
d27b249fcbae2d1f4373ef4ba16cb0c89890058e
[ "MIT" ]
38
2018-10-10T09:35:30.000Z
2021-12-15T07:29:23.000Z
tfoptflow/dataset_mpisintel.py
mf-zhang/tfoptflow
d27b249fcbae2d1f4373ef4ba16cb0c89890058e
[ "MIT" ]
134
2018-09-24T05:01:35.000Z
2022-03-31T03:34:08.000Z
""" dataset_mpisintel.py MPI-Sintel (436x1024) optical flow dataset class. Written by Phil Ferriere Licensed under the MIT License (see LICENSE for details) """ from __future__ import absolute_import, division, print_function import os from sklearn.model_selection import train_test_split from dataset_base import O...
45.235772
107
0.622035
d5de171449f5b01b78e3671bec23b419c900e078
3,857
py
Python
tests/integration/test_fork.py
msabramo/diesel
a1ed7ed0358d0fec8592e23aafc3b7ec167ab649
[ "BSD-3-Clause" ]
224
2015-01-03T06:33:05.000Z
2021-11-22T03:19:02.000Z
tests/integration/test_fork.py
dowski/diesel
d9824e467805caf40e0ba21b88a27db38e64c352
[ "BSD-3-Clause" ]
12
2015-01-01T03:35:15.000Z
2021-05-22T23:37:28.000Z
tests/integration/test_fork.py
dowski/diesel
d9824e467805caf40e0ba21b88a27db38e64c352
[ "BSD-3-Clause" ]
37
2015-01-04T01:47:55.000Z
2022-03-03T02:04:15.000Z
from diesel import fork, sleep, first, Loop, fork_child, ParentDiedException from diesel.util.event import Event from diesel import runtime def tottering_child(v): v[0] += 1 sleep(10) def test_basic_fork(): v = [0] done = Event() def parent(): fork(tottering_child, v) sleep(0.1) ...
25.045455
76
0.631838
d5de308c7d4c77f7949af97fbb34402df9d464a6
11,688
py
Python
yardstick/vTC/apexlake/experimental_framework/benchmarking_unit.py
kkltcjk/kklt
5388eb439616a442dde496ef77ba6b71169369e0
[ "Apache-2.0" ]
null
null
null
yardstick/vTC/apexlake/experimental_framework/benchmarking_unit.py
kkltcjk/kklt
5388eb439616a442dde496ef77ba6b71169369e0
[ "Apache-2.0" ]
null
null
null
yardstick/vTC/apexlake/experimental_framework/benchmarking_unit.py
kkltcjk/kklt
5388eb439616a442dde496ef77ba6b71169369e0
[ "Apache-2.0" ]
null
null
null
# Copyright (c) 2015 Intel Research and Development Ireland 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 app...
41.15493
78
0.597793
d5de4a28456382141f293220292c4716f218efd4
17,603
py
Python
demo_videomode_fmt2.py
miyamotost/hand_object_detector
34c8c6ad53306d4a12c12857e71bcd73bd6a68bf
[ "MIT" ]
null
null
null
demo_videomode_fmt2.py
miyamotost/hand_object_detector
34c8c6ad53306d4a12c12857e71bcd73bd6a68bf
[ "MIT" ]
null
null
null
demo_videomode_fmt2.py
miyamotost/hand_object_detector
34c8c6ad53306d4a12c12857e71bcd73bd6a68bf
[ "MIT" ]
null
null
null
# -------------------------------------------------------- # Tensorflow Faster R-CNN # Licensed under The MIT License [see LICENSE for details] # Written by Jiasen Lu, Jianwei Yang, based on code from Ross Girshick # -------------------------------------------------------- from __future__ import absolute_import from __...
38.184382
191
0.610805
d5de5fab9e7667b5ca49b7327f50f582cfdee494
13,839
py
Python
zytlib/wrapper.py
sillybun/pyctlib
d4c8b191fd270923ad73924760847f2bdbdd9116
[ "MIT" ]
3
2021-07-03T17:27:44.000Z
2021-09-26T20:48:19.000Z
zytlib/wrapper.py
sillybun/pyctlib
d4c8b191fd270923ad73924760847f2bdbdd9116
[ "MIT" ]
null
null
null
zytlib/wrapper.py
sillybun/pyctlib
d4c8b191fd270923ad73924760847f2bdbdd9116
[ "MIT" ]
1
2022-03-08T08:54:03.000Z
2022-03-08T08:54:03.000Z
#! python3.8 -u # -*- coding: utf-8 -*- ############################## ## Project PyCTLib ## Package <main> ############################## __all__ = """ restore_type_wrapper generate_typehint_wrapper empty_wrapper """.split() from pyoverload import * import inspect from functools import wraps from .strto...
31.813793
115
0.567093
d5de5fdce0fe8a978f1b2db322e1e6ca56a15ca1
2,304
py
Python
practise/serinarray.py
mengyangbai/leetcode
e7a6906ecc5bce665dec5d0f057b302a64d50f40
[ "MIT" ]
null
null
null
practise/serinarray.py
mengyangbai/leetcode
e7a6906ecc5bce665dec5d0f057b302a64d50f40
[ "MIT" ]
null
null
null
practise/serinarray.py
mengyangbai/leetcode
e7a6906ecc5bce665dec5d0f057b302a64d50f40
[ "MIT" ]
null
null
null
class Node(object): def __init__(self, val, children): self.val = val self.children = children # Definition for a binary tree node. class TreeNode(object): def __init__(self, x): self.val = x self.left = None self.right = None class Codec: def serializeHelper(self...
26.790698
76
0.541667
d5de6888511473f32be9df99a858988f9f8c8804
1,470
py
Python
tests/test_app/views.py
wq/django-natural-keys
58e9a15c9c5672171fed9497c4a5200518b333a6
[ "MIT" ]
32
2016-03-07T20:40:42.000Z
2022-03-17T07:25:33.000Z
tests/test_app/views.py
wq/django-natural-keys
58e9a15c9c5672171fed9497c4a5200518b333a6
[ "MIT" ]
16
2017-05-02T16:18:22.000Z
2021-08-24T16:02:10.000Z
tests/test_app/views.py
wq/django-natural-keys
58e9a15c9c5672171fed9497c4a5200518b333a6
[ "MIT" ]
12
2016-05-06T11:34:02.000Z
2020-07-02T18:15:59.000Z
try: from rest_framework import viewsets from rest_framework import serializers except ImportError: pass else: from .models import ( NaturalKeyChild, ModelWithNaturalKey, ModelWithSingleUniqueField ) from natural_keys import ( NaturalKeySerializer, NaturalKeyModelSerializer )...
32.666667
72
0.702041
d5deb8af8fa9ac47c17896dbb75f20ba6a43b1b7
3,836
py
Python
thunderpush/api.py
welingtonsampaio/thunderpush
9c3fd4bd0c9015cae6d0ad2b3f022680f7c8f4d1
[ "BSD-3-Clause" ]
null
null
null
thunderpush/api.py
welingtonsampaio/thunderpush
9c3fd4bd0c9015cae6d0ad2b3f022680f7c8f4d1
[ "BSD-3-Clause" ]
null
null
null
thunderpush/api.py
welingtonsampaio/thunderpush
9c3fd4bd0c9015cae6d0ad2b3f022680f7c8f4d1
[ "BSD-3-Clause" ]
null
null
null
import logging import tornado.web from thunderpush.sortingstation import SortingStation logger = logging.getLogger() try: import simplejson as json except ImportError: import json def is_authenticated(f): """ Decorator used to check if a valid api key has been provided. """ def run_check(self, *arg...
27.014085
79
0.618874
d5deba011c0c8f2ce8b48defd2b5685505e48aee
4,554
py
Python
scriptabit/plugins/trello/trello_task.py
luqiang21/scriptabit
0d0cf71814e98954850891fa0887bdcffcf7147d
[ "Apache-2.0" ]
9
2016-09-04T07:02:20.000Z
2021-06-29T07:29:40.000Z
scriptabit/plugins/trello/trello_task.py
luqiang21/scriptabit
0d0cf71814e98954850891fa0887bdcffcf7147d
[ "Apache-2.0" ]
35
2016-07-30T01:03:15.000Z
2022-02-12T20:27:37.000Z
scriptabit/plugins/trello/trello_task.py
luqiang21/scriptabit
0d0cf71814e98954850891fa0887bdcffcf7147d
[ "Apache-2.0" ]
8
2016-09-05T12:36:53.000Z
2020-06-15T18:25:50.000Z
# -*- coding: utf-8 -*- """ Implements a Trello synchronisation task. """ # Ensure backwards compatibility with Python 2 from __future__ import ( absolute_import, division, print_function, unicode_literals) from builtins import * from datetime import datetime import pytz from scriptabit import Characte...
29.764706
80
0.613527
d5dec667adae6f54740740016632fae348580a6c
7,260
py
Python
scales/dispatch.py
steveniemitz/scales
153fff192a11fbda18afdea12652b090e33b3c59
[ "MIT" ]
48
2015-06-04T00:08:44.000Z
2021-02-27T16:00:50.000Z
scales/dispatch.py
steveniemitz/pynagle
153fff192a11fbda18afdea12652b090e33b3c59
[ "MIT" ]
10
2015-07-30T20:54:02.000Z
2020-02-24T15:39:49.000Z
scales/dispatch.py
steveniemitz/pynagle
153fff192a11fbda18afdea12652b090e33b3c59
[ "MIT" ]
11
2015-06-10T19:44:34.000Z
2020-02-14T02:02:40.000Z
"""Core classes for dispatching messages from a Scales proxy to a message sink stack.""" import time import gevent from .asynchronous import AsyncResult from .constants import MessageProperties, SinkProperties from .message import ( Deadline, MethodCallMessage, MethodReturnMessage, TimeoutError ...
33.611111
109
0.680165
d5decf29215c5583c38bbcca2c7b826c4cfba1dd
5,009
py
Python
sdks/python/appcenter_sdk/models/v2SymbolUpdateInfo.py
Brantone/appcenter-sdks
eeb063ecf79908b6e341fb00196d2cd9dc8f3262
[ "MIT" ]
null
null
null
sdks/python/appcenter_sdk/models/v2SymbolUpdateInfo.py
Brantone/appcenter-sdks
eeb063ecf79908b6e341fb00196d2cd9dc8f3262
[ "MIT" ]
6
2019-10-23T06:38:53.000Z
2022-01-22T07:57:58.000Z
sdks/python/appcenter_sdk/models/v2SymbolUpdateInfo.py
Brantone/appcenter-sdks
eeb063ecf79908b6e341fb00196d2cd9dc8f3262
[ "MIT" ]
2
2019-10-23T06:31:05.000Z
2021-08-21T17:32:47.000Z
# coding: utf-8 """ App Center Client Microsoft Visual Studio App Center API # noqa: E501 OpenAPI spec version: preview Contact: benedetto.abbenanti@gmail.com Project Repository: https://github.com/b3nab/appcenter-sdks """ import pprint import re # noqa: F401 import six class v2SymbolUpdate...
28.140449
95
0.574566
d5deda4d779e177a4940c19ba7c513c6147808d5
11,432
py
Python
monai/networks/nets/gmvae_you.py
albarqounilab/MONAI
bb0b307d68021a243011a58fd82a1d275f00a51a
[ "Apache-2.0" ]
null
null
null
monai/networks/nets/gmvae_you.py
albarqounilab/MONAI
bb0b307d68021a243011a58fd82a1d275f00a51a
[ "Apache-2.0" ]
null
null
null
monai/networks/nets/gmvae_you.py
albarqounilab/MONAI
bb0b307d68021a243011a58fd82a1d275f00a51a
[ "Apache-2.0" ]
null
null
null
# Copyright 2020 - 2021 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 wri...
44.65625
148
0.641183
d5df0e3250926dda1fa5a27f3f5d223800e5db57
935
py
Python
src/widgets/toolbar.py
sisoe24/ProfileInspector
38cfefe68c09b153f7380447c4c486728feecb9d
[ "MIT" ]
4
2021-07-22T10:23:56.000Z
2021-11-03T19:01:21.000Z
src/widgets/toolbar.py
Ripax/ProfileInspector
38cfefe68c09b153f7380447c4c486728feecb9d
[ "MIT" ]
null
null
null
src/widgets/toolbar.py
Ripax/ProfileInspector
38cfefe68c09b153f7380447c4c486728feecb9d
[ "MIT" ]
1
2022-02-16T07:23:31.000Z
2022-02-16T07:23:31.000Z
# coding: utf-8 from __future__ import print_function from PySide2.QtCore import QSize, Qt from PySide2.QtGui import QIcon from PySide2.QtWidgets import QToolBar, QWhatsThis from ProfileInspector.src import nuke class ToolBar(QToolBar): def __init__(self): QToolBar.__init__(self) self.setIconSiz...
28.333333
88
0.670588
d5df1bd574016e567ad8643ecf2704d17ff54959
8,811
py
Python
salt/engines/slack.py
cbosdo/salt-1
9084d662781f9c0944804ba087e652c2ddb730bf
[ "Apache-2.0" ]
null
null
null
salt/engines/slack.py
cbosdo/salt-1
9084d662781f9c0944804ba087e652c2ddb730bf
[ "Apache-2.0" ]
null
null
null
salt/engines/slack.py
cbosdo/salt-1
9084d662781f9c0944804ba087e652c2ddb730bf
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- ''' An engine that reads messages from Slack and sends them to the Salt event bus. Alternatively Salt commands can be sent to the Salt master via Slack by setting the control parameter to ``True`` and using command prefaced with a ``!``. .. versionadded: 2016.3.0 :configuration: Example confi...
38.308696
133
0.423107
d5df25b2a8a447cf835e8259fd7a804bfcc95666
1,193
py
Python
rootfs/api/tests/test_healthz.py
hanlucen/controller
2be591d44508bbca8058d3f856d10d425fa4f519
[ "MIT" ]
null
null
null
rootfs/api/tests/test_healthz.py
hanlucen/controller
2be591d44508bbca8058d3f856d10d425fa4f519
[ "MIT" ]
19
2020-07-30T06:31:29.000Z
2022-03-14T07:33:44.000Z
rootfs/api/tests/test_healthz.py
hanlucen/controller
2be591d44508bbca8058d3f856d10d425fa4f519
[ "MIT" ]
9
2020-07-30T02:50:12.000Z
2020-12-11T06:44:19.000Z
from api.tests import DryccTestCase class HealthCheckTest(DryccTestCase): def test_healthcheck_liveness(self): # GET and HEAD (no auth required) response = self.client.get('/healthz') self.assertContains(response, "OK", status_code=200) response = self.client.head('/healthz') ...
35.088235
65
0.650461
d5df2b21051220a756a733015baa2dd19ba1bf89
80,152
py
Python
bonneville/modules/file.py
lowsodium/bonneville
02a016380b56345594f20ee007c62e7e92821a8b
[ "Apache-2.0" ]
null
null
null
bonneville/modules/file.py
lowsodium/bonneville
02a016380b56345594f20ee007c62e7e92821a8b
[ "Apache-2.0" ]
null
null
null
bonneville/modules/file.py
lowsodium/bonneville
02a016380b56345594f20ee007c62e7e92821a8b
[ "Apache-2.0" ]
3
2020-05-10T02:08:44.000Z
2020-11-06T11:01:57.000Z
# -*- coding: utf-8 -*- ''' Manage information about regular files, directories, and special files on the minion, set/read user, group, mode, and data ''' # TODO: We should add the capability to do u+r type operations here # some time in the future from __future__ import print_function # Import python libs import co...
29.631054
170
0.537167
d5df2e4bf408fde15da84a334ba84d31efb70b31
2,982
py
Python
oceanmesh.py
gabrielfuenmar/Ocean-Sailing-Routes
bf80177fc931cd224da55e9aeda29c8cfa021c0f
[ "MIT" ]
null
null
null
oceanmesh.py
gabrielfuenmar/Ocean-Sailing-Routes
bf80177fc931cd224da55e9aeda29c8cfa021c0f
[ "MIT" ]
null
null
null
oceanmesh.py
gabrielfuenmar/Ocean-Sailing-Routes
bf80177fc931cd224da55e9aeda29c8cfa021c0f
[ "MIT" ]
null
null
null
""" Created on Mon Jul 15 09:21:29 2019 Author: Gabriel Fuentes Lezcano """ import geopandas as gpd import meshpy.triangle as triangle import numpy as np def round_trip_connect(start, end): """ Parameters: start: Float. First point of sequence end: F...
35.927711
82
0.617706
d5df49bc69e22503ae700f7c444acc775459dc54
622
py
Python
Task1D.py
anirudhbhalekar/Part1A-FWS-97
0de5e84d2bc99fe376b57106c22be4a4d5972acd
[ "MIT" ]
2
2022-02-01T16:38:42.000Z
2022-02-01T16:38:57.000Z
Task1D.py
anirudhbhalekar/Part1A-FWS-97
0de5e84d2bc99fe376b57106c22be4a4d5972acd
[ "MIT" ]
1
2022-02-04T19:56:15.000Z
2022-02-04T19:56:45.000Z
Task1D.py
anirudhbhalekar/Part1A-FWS-97
0de5e84d2bc99fe376b57106c22be4a4d5972acd
[ "MIT" ]
null
null
null
from floodsystem.geo import rivers_with_station from floodsystem.geo import stations_by_river from floodsystem.stationdata import build_station_list def run(): stations = build_station_list() rivers = rivers_with_station(stations) rivers = sorted(rivers) print("First 10 rivers with stations (al...
27.043478
81
0.692926
d5df6700c25c09f5d244c18ed0244c56cd5a3b52
101
py
Python
abc/050/A.py
tonko2/AtCoder
5d617072517881d226d7c8af09cb88684d41af7e
[ "Xnet", "X11", "CECILL-B" ]
2
2022-01-22T07:56:58.000Z
2022-01-24T00:29:37.000Z
abc/050/A.py
tonko2/AtCoder
5d617072517881d226d7c8af09cb88684d41af7e
[ "Xnet", "X11", "CECILL-B" ]
null
null
null
abc/050/A.py
tonko2/AtCoder
5d617072517881d226d7c8af09cb88684d41af7e
[ "Xnet", "X11", "CECILL-B" ]
null
null
null
a, o, b = input().split() a = int(a) b = int(b) if o == "+": print(a + b) else: print(a - b)
12.625
25
0.435644
d5dfd4a7ea164d5cf5541808efa9b0ac853843f1
14,617
py
Python
keyword-search_complete.py
lenmorld/Yackathon_keyword_map
c6e57d3b65911f94322bb22b07042f9c0b0071c2
[ "Apache-2.0" ]
1
2018-12-11T03:35:26.000Z
2018-12-11T03:35:26.000Z
keyword-search_complete.py
lenmorld/Yackathon_keyword_map
c6e57d3b65911f94322bb22b07042f9c0b0071c2
[ "Apache-2.0" ]
null
null
null
keyword-search_complete.py
lenmorld/Yackathon_keyword_map
c6e57d3b65911f94322bb22b07042f9c0b0071c2
[ "Apache-2.0" ]
null
null
null
#! python3 import sys, webbrowser, bs4 import json import csv #from pprint import pprint #from itertools import islice #import requests #+ (sys.argv[1:]) #print ("PYTHON is working " + str(sys.argv[1:])) keyword = str(sys.argv[1:]) keyword = keyword.replace("[", "") keyword = keyword.replace("]", "") keyword = keyw...
21.06196
166
0.512007
d5dff18e470f4f83f8b48c387438f98455d0fb85
2,028
py
Python
userbot/plugins/elautopfp.py
justteen/BUZZ-USERBOT
55651cce150e1d04d2c61efb2565ef9f46b42933
[ "BSL-1.0" ]
null
null
null
userbot/plugins/elautopfp.py
justteen/BUZZ-USERBOT
55651cce150e1d04d2c61efb2565ef9f46b42933
[ "BSL-1.0" ]
null
null
null
userbot/plugins/elautopfp.py
justteen/BUZZ-USERBOT
55651cce150e1d04d2c61efb2565ef9f46b42933
[ "BSL-1.0" ]
null
null
null
""" Time In Profile Pic..... Command: `.epp` Custom / Modified Plugin for some magical effects by this Legendary Guy @Sur_vivor #curse: who ever edits this credit section will goto hell ⚠️DISCLAIMER⚠️ USING THIS PLUGIN CAN RESULT IN ACCOUNT BAN + CAS BAN + SPAM BAN + ACCOUNT SUSPENSION . WE DONT CARE ABOUT BAN, S...
30.727273
133
0.670611
d5dff3a005f360527330a4b933cba8f66d3cbcf7
12,659
py
Python
kuconnect/ldnn.py
ozanarkancan/KuConnect
1b4a7b3a5c200c3f590f894919011856f1b4a585
[ "MIT" ]
null
null
null
kuconnect/ldnn.py
ozanarkancan/KuConnect
1b4a7b3a5c200c3f590f894919011856f1b4a585
[ "MIT" ]
1
2015-11-23T21:43:42.000Z
2015-11-23T21:43:42.000Z
kuconnect/ldnn.py
ozanarkancan/KuConnect
1b4a7b3a5c200c3f590f894919011856f1b4a585
[ "MIT" ]
null
null
null
from rnn import * from lstm import * from gru import * from layers import * import cPickle import theano.tensor as T from inits import zeros def get_layer(prev, activation, n_in, n_hidden, n_out, dropout_rate, bias, truncate, indices, connect=False): if prev.__class__.__name__.startswith("Bi"): if conn...
39.808176
132
0.578008
d5dffee3361a9f4b2f70107281941192ba13cdae
14,574
py
Python
test/functional/wallet_balance.py
raipay/bitcoin-abc
5e0b712845f9649762aa0fc1e0de8665787207b7
[ "MIT" ]
null
null
null
test/functional/wallet_balance.py
raipay/bitcoin-abc
5e0b712845f9649762aa0fc1e0de8665787207b7
[ "MIT" ]
2
2022-02-27T21:05:11.000Z
2022-02-27T21:05:47.000Z
test/functional/wallet_balance.py
raipay/bitcoin-abc
5e0b712845f9649762aa0fc1e0de8665787207b7
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # Copyright (c) 2018-2019 The Bitcoin Core developers # Distributed under the MIT software license, see the accompanying # file COPYING or http://www.opensource.org/licenses/mit-license.php. """Test the wallet balance RPC methods.""" from decimal import Decimal import struct from test_framework....
44.705521
129
0.608481
d5e035b8470042e0c7e014f0c5724b015610ee1d
8,594
py
Python
devito/parameters.py
BrunoMot/devito
b6e077857765b7b5fad812ec5774635ca4c6fbb7
[ "MIT" ]
2
2019-04-05T20:52:23.000Z
2019-11-03T21:36:53.000Z
devito/parameters.py
BrunoMot/devito
b6e077857765b7b5fad812ec5774635ca4c6fbb7
[ "MIT" ]
9
2019-06-11T20:54:19.000Z
2020-04-06T17:56:10.000Z
devito/parameters.py
BrunoMot/devito
b6e077857765b7b5fad812ec5774635ca4c6fbb7
[ "MIT" ]
2
2018-11-15T12:03:48.000Z
2018-11-15T13:16:19.000Z
"""The parameters dictionary contains global parameter settings.""" from collections import OrderedDict from os import environ from functools import wraps from devito.tools import Signer, filter_ordered __all__ = ['configuration', 'init_configuration', 'print_defaults', 'print_state', 'add_sub_configurati...
37.528384
92
0.611706
d5e03e0e4f558c7ae394b9b3789ab9b0afdce49c
50,843
py
Python
miniccnx_metrics-collector/node.py
marcieloliveira/snmp-gateway-ccn
6c0e304dd324b2819d208b741ced4bf93550d778
[ "MIT" ]
1
2019-08-10T20:00:48.000Z
2019-08-10T20:00:48.000Z
miniccnx_metrics-collector/node.py
marcieloliveira/snmp-gateway-ccn
6c0e304dd324b2819d208b741ced4bf93550d778
[ "MIT" ]
null
null
null
miniccnx_metrics-collector/node.py
marcieloliveira/snmp-gateway-ccn
6c0e304dd324b2819d208b741ced4bf93550d778
[ "MIT" ]
null
null
null
""" Node objects for Mininet. Nodes provide a simple abstraction for interacting with hosts, switches and controllers. Local nodes are simply one or more processes on the local machine. Node: superclass for all (primarily local) network nodes. Host: a virtual host. By default, a host is simply a shell; commands ...
36.084457
95
0.562555
d5e05552b590b18de4b9166f4251f0d104ebf8a5
18,655
py
Python
trax/rl/ppo.py
yakovkeselman/trax
615432bbc58ffb5bdf83a771e8f8b470995456db
[ "Apache-2.0" ]
1
2020-05-30T15:19:39.000Z
2020-05-30T15:19:39.000Z
trax/rl/ppo.py
ZachT1711/trax
a0a3dd8d49e53fc48bb24cc08c10a8a53517e7bc
[ "Apache-2.0" ]
null
null
null
trax/rl/ppo.py
ZachT1711/trax
a0a3dd8d49e53fc48bb24cc08c10a8a53517e7bc
[ "Apache-2.0" ]
null
null
null
# coding=utf-8 # Copyright 2020 The Trax Authors. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or a...
34.355433
80
0.635326
d5e06a48953f8fc7b3f09ede57eb7337297008e1
4,154
py
Python
src/bin/hub.py
ravila4/mychem.info
9b63b5f0957b5e7b252ca8122734a363905036b3
[ "Apache-2.0" ]
10
2017-07-24T11:45:27.000Z
2022-02-14T13:42:36.000Z
src/bin/hub.py
ravila4/mychem.info
9b63b5f0957b5e7b252ca8122734a363905036b3
[ "Apache-2.0" ]
92
2017-06-22T16:49:20.000Z
2022-03-24T20:50:01.000Z
src/bin/hub.py
ravila4/mychem.info
9b63b5f0957b5e7b252ca8122734a363905036b3
[ "Apache-2.0" ]
11
2017-06-12T18:31:35.000Z
2022-01-31T02:56:52.000Z
#!/usr/bin/env python import os, logging from functools import partial import config, biothings from biothings.utils.version import set_versions app_folder,_src = os.path.split(os.path.split(os.path.split(os.path.abspath(__file__))[0])[0]) set_versions(config,app_folder) biothings.config_for_app(config) from biothin...
54.657895
147
0.659846
d5e0841a07543657c911a76df368441273d423b1
9,945
py
Python
cloudmesh/iaas/ec2/cm_compute.py
JulienPalard/cloudmesh
1759b88daef3a13917492d028fdabe08f03ca996
[ "Apache-2.0" ]
null
null
null
cloudmesh/iaas/ec2/cm_compute.py
JulienPalard/cloudmesh
1759b88daef3a13917492d028fdabe08f03ca996
[ "Apache-2.0" ]
4
2021-06-08T20:20:08.000Z
2022-03-11T23:30:22.000Z
cloudmesh/iaas/ec2/cm_compute.py
JulienPalard/cloudmesh
1759b88daef3a13917492d028fdabe08f03ca996
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- """ cloudmesh.iaas.ec2.cm_compute ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ """ from __future__ import print_function from cloudmesh.config.cm_config import cm_config from cloudmesh.config.cm_config import cm_config_flavor from cloudmesh.iaas.ComputeBaseType import ComputeBaseType from libcloud.compute.ba...
29.598214
84
0.570437
d5e08faf00652df879ff1eb3646799374ec847ef
5,077
py
Python
bonneville/modules/debian_service.py
lowsodium/bonneville
02a016380b56345594f20ee007c62e7e92821a8b
[ "Apache-2.0" ]
null
null
null
bonneville/modules/debian_service.py
lowsodium/bonneville
02a016380b56345594f20ee007c62e7e92821a8b
[ "Apache-2.0" ]
null
null
null
bonneville/modules/debian_service.py
lowsodium/bonneville
02a016380b56345594f20ee007c62e7e92821a8b
[ "Apache-2.0" ]
3
2020-05-10T02:08:44.000Z
2020-11-06T11:01:57.000Z
# -*- coding: utf-8 -*- ''' Service support for Debian systems (uses update-rc.d and /sbin/service) ''' # Import python libs import glob import re # Import bonneville libs from .systemd import _sd_booted __func_alias__ = { 'reload_': 'reload' } def __virtual__(): ''' Only work on Debian and when system...
20.308
79
0.598976
d5e0af8f7664b4a3e325a4fae5620a00d8307d09
308
py
Python
carla/recourse_methods/catalog/__init__.py
jayanthyetukuri/CARLA
c3f3aaf11a5a8499c4bec5065e0c17ec8e6f5950
[ "MIT" ]
140
2021-08-03T21:53:32.000Z
2022-03-20T08:52:02.000Z
carla/recourse_methods/catalog/__init__.py
jayanthyetukuri/CARLA
c3f3aaf11a5a8499c4bec5065e0c17ec8e6f5950
[ "MIT" ]
54
2021-03-07T18:22:16.000Z
2021-08-03T12:06:31.000Z
carla/recourse_methods/catalog/__init__.py
jayanthyetukuri/CARLA
c3f3aaf11a5a8499c4bec5065e0c17ec8e6f5950
[ "MIT" ]
16
2021-08-23T12:14:58.000Z
2022-03-01T00:52:58.000Z
# flake8: noqa from .actionable_recourse import ActionableRecourse from .cchvae import CCHVAE from .cem import CEM from .clue import Clue from .crud import CRUD from .dice import Dice from .face import Face from .growing_spheres import GrowingSpheres from .revise import Revise from .wachter import Wachter
23.692308
51
0.818182
d5e14e7a641b5673e97882daf2b5a1796ee1bbef
1,921
py
Python
tensorflow/contrib/coder/python/ops/coder_ops_test.py
tianyapiaozi/tensorflow
fb3ce0467766a8e91f1da0ad7ada7c24fde7a73a
[ "Apache-2.0" ]
71
2017-05-25T16:02:15.000Z
2021-06-09T16:08:08.000Z
tensorflow/contrib/coder/python/ops/coder_ops_test.py
shrikunjsarda/tensorflow
7e8927e7af0c51ac20a63bd4eab6ff83df1a39ae
[ "Apache-2.0" ]
133
2017-04-26T16:49:49.000Z
2019-10-15T11:39:26.000Z
tensorflow/contrib/coder/python/ops/coder_ops_test.py
shrikunjsarda/tensorflow
7e8927e7af0c51ac20a63bd4eab6ff83df1a39ae
[ "Apache-2.0" ]
31
2018-09-11T02:17:17.000Z
2021-12-15T10:33:35.000Z
# Copyright 2018 The TensorFlow Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applica...
35.574074
80
0.717855
d5e15ae44b05005a4975478f55d1537c1338db44
4,480
py
Python
token_management/TokenManagerGraphQL.py
Lufedi/reaper
bdf56b499e5b704c27b9f6c053d798c2a10fa4cf
[ "Apache-2.0" ]
null
null
null
token_management/TokenManagerGraphQL.py
Lufedi/reaper
bdf56b499e5b704c27b9f6c053d798c2a10fa4cf
[ "Apache-2.0" ]
1
2021-03-16T20:28:19.000Z
2021-03-16T20:28:19.000Z
token_management/TokenManagerGraphQL.py
Lufedi/reaper
bdf56b499e5b704c27b9f6c053d798c2a10fa4cf
[ "Apache-2.0" ]
1
2022-03-04T01:21:09.000Z
2022-03-04T01:21:09.000Z
from token_management.TokenManagerAbstract import TokenManagerAbstract from datetime import datetime, timedelta import requests import time class TokenManagerGraphQL(TokenManagerAbstract): def __init__(self, tokens): self.tokens = tokens self.tokens_state = dict() self.active_token_id = N...
46.185567
120
0.551563
d5e15e0d4997ec2ee162cdecf851d3feead7cb6d
9,207
py
Python
salt/modules/splunk_search.py
Rafflecopter/salt
08bbfcd4d9b93351d7d5d25b097e892026b6f1cd
[ "Apache-2.0" ]
3
2015-04-16T18:42:35.000Z
2017-10-30T16:57:49.000Z
salt/salt/modules/splunk_search.py
smallyear/linuxLearn
342e5020bf24b5fac732c4275a512087b47e578d
[ "Apache-2.0" ]
16
2015-11-18T00:44:03.000Z
2018-10-29T20:48:27.000Z
salt/salt/modules/splunk_search.py
smallyear/linuxLearn
342e5020bf24b5fac732c4275a512087b47e578d
[ "Apache-2.0" ]
1
2018-04-19T16:57:27.000Z
2018-04-19T16:57:27.000Z
# -*- coding: utf-8 -*- ''' Module for interop with the Splunk API .. versionadded:: 2015.5.0 :depends: - splunk-sdk python module :configuration: Configure this module by specifying the name of a configuration profile in the minion config, minion pillar, or master config. The module will use the 'splunk' k...
29.796117
133
0.631259
d5e16a196b5c4de0c922e72b3f85bd8e36503463
140
py
Python
glowingwaffle/common/EnumData.py
chews0n/glowing-waffle
b381421f64bc6a5202421d3870548c7737f93bce
[ "Apache-2.0" ]
null
null
null
glowingwaffle/common/EnumData.py
chews0n/glowing-waffle
b381421f64bc6a5202421d3870548c7737f93bce
[ "Apache-2.0" ]
5
2021-07-20T19:11:39.000Z
2021-07-21T03:10:27.000Z
glowingwaffle/common/EnumData.py
chews0n/glowing-waffle
b381421f64bc6a5202421d3870548c7737f93bce
[ "Apache-2.0" ]
2
2021-02-25T15:43:59.000Z
2022-03-20T13:57:34.000Z
from enum import Enum class Features(Enum): WELL_LENGTH = 1 FLUID_PER_METER = 2 class Targets(Enum): IP90 = 1 IP180 = 2
11.666667
23
0.642857
d5e1761f772d5624edf938d24e4d478c6e5b0d19
2,453
py
Python
setup.py
TheDubliner/confluencebuilder
f92d63ae9949c52cf8639643073aacb249cacd62
[ "BSD-2-Clause" ]
null
null
null
setup.py
TheDubliner/confluencebuilder
f92d63ae9949c52cf8639643073aacb249cacd62
[ "BSD-2-Clause" ]
2
2020-08-08T22:03:17.000Z
2020-12-19T00:42:22.000Z
setup.py
TheDubliner/confluencebuilder
f92d63ae9949c52cf8639643073aacb249cacd62
[ "BSD-2-Clause" ]
null
null
null
# -*- coding: utf-8 -*- """ :copyright: Copyright 2016-2020 by the contributors (see AUTHORS file). :license: BSD-2-Clause, see LICENSE for details. """ from distutils.command.clean import clean from distutils import dir_util from setuptools import find_packages from setuptools import setup import os with ope...
31.050633
80
0.627803
d5e1b6931e17e0606047d955bb6efee5bbd36a16
20,948
py
Python
jenkinsapi/job.py
ifwe/jenkinsapi
31a7fbb07efcd48e226f7dcf643fd2a2625416c0
[ "MIT" ]
null
null
null
jenkinsapi/job.py
ifwe/jenkinsapi
31a7fbb07efcd48e226f7dcf643fd2a2625416c0
[ "MIT" ]
null
null
null
jenkinsapi/job.py
ifwe/jenkinsapi
31a7fbb07efcd48e226f7dcf643fd2a2625416c0
[ "MIT" ]
null
null
null
""" Module for jenkinsapi Job """ import json import logging import urlparse import xml.etree.ElementTree as ET from collections import defaultdict from time import sleep from jenkinsapi.build import Build from jenkinsapi.invocation import Invocation from jenkinsapi.jenkinsbase import JenkinsBase from jenkinsapi.queue...
35.565365
108
0.598864
d5e1e9d145da33df09b0edba15c9a1aaff5cf2bf
764
py
Python
mlapp/integrations/aml/utils/datastore.py
kerenleibovich/mlapp
0b8dfaba7a7070ab68cb29ff61dd1c7dd8076693
[ "Apache-2.0" ]
33
2021-02-26T10:41:09.000Z
2021-11-07T12:35:32.000Z
mlapp/integrations/aml/utils/datastore.py
kerenleibovich/mlapp
0b8dfaba7a7070ab68cb29ff61dd1c7dd8076693
[ "Apache-2.0" ]
17
2021-03-04T15:37:21.000Z
2021-04-06T12:00:13.000Z
mlapp/integrations/aml/utils/datastore.py
kerenleibovich/mlapp
0b8dfaba7a7070ab68cb29ff61dd1c7dd8076693
[ "Apache-2.0" ]
9
2021-03-03T20:02:41.000Z
2021-10-05T13:03:56.000Z
from azureml.core import Datastore def get_datastore(workspace, name='workspaceblobstore'): return Datastore.get(workspace, datastore_name=name) def register_blob_datastore(subscription_id, resource_group, workspace, datastore_name, container_name, account_name, account_key, set_as_defaul...
30.56
117
0.732984
d5e1ee4b5b0a21e046567539025cdfbd3a3d1875
2,798
py
Python
chapter_6_visualization/text_network.py
fancyerii/voicebook
def82da8577086d0361643a05fec2463006533a9
[ "Apache-2.0" ]
1
2020-03-05T01:19:17.000Z
2020-03-05T01:19:17.000Z
chapter_6_visualization/text_network.py
fancyerii/voicebook
def82da8577086d0361643a05fec2463006533a9
[ "Apache-2.0" ]
null
null
null
chapter_6_visualization/text_network.py
fancyerii/voicebook
def82da8577086d0361643a05fec2463006533a9
[ "Apache-2.0" ]
null
null
null
''' ================================================ ## VOICEBOOK REPOSITORY ## ================================================ repository name: voicebook repository version: 1.0 repository link: https://github.com/jim-schwoebel/voicebook author: Jim Schwoebel author contact: js@neur...
34.975
121
0.61401
d5e1f974dfd660acda66d2df35c96157c1f574c2
879
py
Python
tests/test_docs/__init__.py
valory-xyz/agents-aea
8f38efa96041b0156ed1ae328178e395dbabf2fc
[ "Apache-2.0" ]
28
2021-10-31T18:54:14.000Z
2022-03-17T13:10:43.000Z
tests/test_docs/__init__.py
valory-xyz/agents-aea
8f38efa96041b0156ed1ae328178e395dbabf2fc
[ "Apache-2.0" ]
66
2021-10-31T11:55:48.000Z
2022-03-31T06:26:23.000Z
tests/test_docs/__init__.py
valory-xyz/agents-aea
8f38efa96041b0156ed1ae328178e395dbabf2fc
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # ------------------------------------------------------------------------------ # # Copyright 2022 Valory AG # Copyright 2018-2020 Fetch.AI Limited # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # ...
41.857143
80
0.589306
d5e1fcb676eb75fa161d269b2dd7b99df6288fc6
11,253
py
Python
oscar/lib/python2.7/site-packages/ipython_genutils/testing/decorators.py
sainjusajan/django-oscar
466e8edc807be689b0a28c9e525c8323cc48b8e1
[ "BSD-3-Clause" ]
null
null
null
oscar/lib/python2.7/site-packages/ipython_genutils/testing/decorators.py
sainjusajan/django-oscar
466e8edc807be689b0a28c9e525c8323cc48b8e1
[ "BSD-3-Clause" ]
null
null
null
oscar/lib/python2.7/site-packages/ipython_genutils/testing/decorators.py
sainjusajan/django-oscar
466e8edc807be689b0a28c9e525c8323cc48b8e1
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- """Decorators for labeling test objects. Decorators that merely return a modified version of the original function object are straightforward. Decorators that return a new function object need to use nose.tools.make_decorator(original_function)(decorator) in returning the decorator, in o...
32.80758
92
0.625255
d5e234d14628dfdead7f4481cd8e62e23880efd8
3,928
py
Python
tests/python/pants_test/backend/python/tasks/test_unpack_wheels.py
mpopenko-exos/pants
47d27037c8b13291fc9023e56ddd1b1defdf1b8e
[ "Apache-2.0" ]
null
null
null
tests/python/pants_test/backend/python/tasks/test_unpack_wheels.py
mpopenko-exos/pants
47d27037c8b13291fc9023e56ddd1b1defdf1b8e
[ "Apache-2.0" ]
1
2018-09-04T17:37:34.000Z
2018-09-04T19:42:58.000Z
tests/python/pants_test/backend/python/tasks/test_unpack_wheels.py
mpopenko-exos/pants
47d27037c8b13291fc9023e56ddd1b1defdf1b8e
[ "Apache-2.0" ]
null
null
null
# Copyright 2019 Pants project contributors (see CONTRIBUTORS.md). # Licensed under the Apache License, Version 2.0 (see LICENSE). import functools import re from pants.backend.python.python_requirement import PythonRequirement from pants.backend.python.targets.python_requirement_library import PythonRequirementLibra...
44.636364
136
0.744399
d5e237889daf76645d5c0ee58f1b025a8f92e98e
1,244
py
Python
src/oscar/apps/analytics/migrations/0002_auto_20140827_1705.py
sainjusajan/django-oscar
466e8edc807be689b0a28c9e525c8323cc48b8e1
[ "BSD-3-Clause" ]
null
null
null
src/oscar/apps/analytics/migrations/0002_auto_20140827_1705.py
sainjusajan/django-oscar
466e8edc807be689b0a28c9e525c8323cc48b8e1
[ "BSD-3-Clause" ]
5
2021-05-28T19:38:28.000Z
2022-03-12T00:45:39.000Z
src/oscar/apps/analytics/migrations/0002_auto_20140827_1705.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 from django.conf import settings class Migration(migrations.Migration): dependencies = [ ('analytics', '0001_initial'), ('catalogue', '0001_initial'), migrations.swappable...
33.621622
113
0.594051
d5e257cb0006f89e8d9af97cbeb02b1d01cd2591
1,038
py
Python
models/alexnet.py
chrisbyd/TripletQuant
07d45905577d4429dcc7827e0c06bfcf6d6f5c99
[ "MIT" ]
null
null
null
models/alexnet.py
chrisbyd/TripletQuant
07d45905577d4429dcc7827e0c06bfcf6d6f5c99
[ "MIT" ]
null
null
null
models/alexnet.py
chrisbyd/TripletQuant
07d45905577d4429dcc7827e0c06bfcf6d6f5c99
[ "MIT" ]
null
null
null
import torch.nn as nn from torchvision import models import torch class AlexNet(nn.Module): def __init__(self, feat_dim, pretrained=True): super(AlexNet, self).__init__() model_alexnet = models.alexnet(pretrained=pretrained) self.features = model_alexnet.features cl1 = nn.Linear(...
28.833333
61
0.584778
d5e25a306350d97dcfb4e493bc75ecb72bc1f957
25,481
py
Python
atom/nucleus/python/nucleus_api/models/card.py
AbhiGupta03/SDK
f3a61aae7a847f07f0c22a154ca88dc378e9d25e
[ "Apache-2.0" ]
null
null
null
atom/nucleus/python/nucleus_api/models/card.py
AbhiGupta03/SDK
f3a61aae7a847f07f0c22a154ca88dc378e9d25e
[ "Apache-2.0" ]
null
null
null
atom/nucleus/python/nucleus_api/models/card.py
AbhiGupta03/SDK
f3a61aae7a847f07f0c22a154ca88dc378e9d25e
[ "Apache-2.0" ]
null
null
null
# coding: utf-8 """ Hydrogen Nucleus API The Hydrogen Nucleus API # noqa: E501 OpenAPI spec version: 1.9.5 Contact: info@hydrogenplatform.com Generated by: https://github.com/swagger-api/swagger-codegen.git """ import pprint import re # noqa: F401 import six from nucleus_api.configuration i...
27.369495
590
0.588242
d5e27d3b038ead99b24a7f099fc39693beda4166
295
py
Python
CF_Functions/Arcade/allLongestStrings.py
glickmac/Misc_Scripts
7e18be79b84a309a1e79935f4470ea915141938d
[ "MIT" ]
null
null
null
CF_Functions/Arcade/allLongestStrings.py
glickmac/Misc_Scripts
7e18be79b84a309a1e79935f4470ea915141938d
[ "MIT" ]
null
null
null
CF_Functions/Arcade/allLongestStrings.py
glickmac/Misc_Scripts
7e18be79b84a309a1e79935f4470ea915141938d
[ "MIT" ]
1
2020-07-30T17:37:12.000Z
2020-07-30T17:37:12.000Z
def allLongestStrings(inputArray): my_list = [] max = 0 for item in inputArray: item_length = len(item) if item_length >= max: max = item_length for item in inputArray: if len(item) == max: my_list.append(item) return(my_list)
24.583333
34
0.572881
d5e2a318d1532e4ce036cf2eea670ef1080dce1e
2,008
py
Python
Pynq-Z1/notebooks/Video_PR/webserver/functions/filters.py
AEW2015/PYNQ_PR_Overlay
2c685d2d76d04e579beecdbdfd8d0919b3dfa71c
[ "BSD-3-Clause" ]
16
2017-03-14T20:28:40.000Z
2021-11-02T12:45:15.000Z
Pynq-Z1/notebooks/Video_PR/webserver/functions/filters.py
xupsh/PYNQ_PR_Overlay
2c685d2d76d04e579beecdbdfd8d0919b3dfa71c
[ "BSD-3-Clause" ]
2
2017-12-04T05:46:35.000Z
2018-11-30T21:40:45.000Z
Pynq-Z1/notebooks/Video_PR/webserver/functions/filters.py
xupsh/PYNQ_PR_Overlay
2c685d2d76d04e579beecdbdfd8d0919b3dfa71c
[ "BSD-3-Clause" ]
8
2017-03-30T22:00:43.000Z
2020-09-08T12:49:39.000Z
from pynq import Overlay from pynq import Bitstream_Part from pynq.board import Register from pynq.drivers.video import HDMI class Filters: def __init__(self): self.width = 0 self.hegiht = 0 self.running = False self.hdmi_in = None self.hdmi_out = None def connect_HDMI...
29.529412
91
0.544821
d5e2f1f6b85e22cda95f41abe3d135c4b0be1c99
4,191
py
Python
tests/test_tips.py
pybites/pybites-tips
f7cbfd71bb904adc932e496b0d0bb40058d4bd78
[ "MIT" ]
9
2020-08-25T11:58:12.000Z
2022-03-04T12:32:05.000Z
tests/test_tips.py
pybites/pybites-tips
f7cbfd71bb904adc932e496b0d0bb40058d4bd78
[ "MIT" ]
2
2020-10-10T22:07:54.000Z
2020-10-11T11:22:19.000Z
tests/test_tips.py
pybites/pybites-tips
f7cbfd71bb904adc932e496b0d0bb40058d4bd78
[ "MIT" ]
1
2020-10-16T20:39:52.000Z
2020-10-16T20:39:52.000Z
from unittest.mock import patch, Mock import pytest import requests from pytip import PyBitesTips tips_payload = [ {'code': ">>> 'Python' ' is ' 'fun'\n'Python is fun'", 'id': 11, 'image_link': None, 'link': None, 'share_link': 'https://twitter.com/pybites/status/1106182595866513409', 't...
30.369565
79
0.590313
d5e2f891ca3244b083ba48eba277aacfefb6c338
1,963
py
Python
nta/exceptions.py
HwangWonYo/naver_talk_sdk
8c4bb692d50654e5af3c4ae2b8894052feb2116a
[ "MIT" ]
19
2017-12-05T07:07:54.000Z
2018-12-08T11:39:13.000Z
nta/exceptions.py
bungeoppang/naver_talk_sdk
8c4bb692d50654e5af3c4ae2b8894052feb2116a
[ "MIT" ]
36
2017-12-04T03:48:16.000Z
2018-07-20T01:30:16.000Z
nta/exceptions.py
bungeoppang/naver_talk_sdk
8c4bb692d50654e5af3c4ae2b8894052feb2116a
[ "MIT" ]
2
2018-10-02T01:39:59.000Z
2018-10-16T01:28:29.000Z
''' navertalk.exceptions module ''' from __future__ import unicode_literals class BaseError(Exception): """Base Exception class""" def __init__(self, message='-'): """__init__ method. Args: - message: str readable message """ self.message = message def __repr_...
23.650602
84
0.613856
d5e330803fb09b899e71a5e897e36b8c3e9764e7
2,028
py
Python
gin_rummy/cards/cards.py
jmhummel/Gin-Rummy-ML
1cf12bb88803cfcf4b42dc0025161c656dccc3a7
[ "MIT" ]
null
null
null
gin_rummy/cards/cards.py
jmhummel/Gin-Rummy-ML
1cf12bb88803cfcf4b42dc0025161c656dccc3a7
[ "MIT" ]
null
null
null
gin_rummy/cards/cards.py
jmhummel/Gin-Rummy-ML
1cf12bb88803cfcf4b42dc0025161c656dccc3a7
[ "MIT" ]
null
null
null
import random from enum import Enum class Suit(Enum): SPADES = 0 DIAMONDS = 1 CLUBS = 2 HEARTS = 3 def __str__(self): d = { self.SPADES: 'S', self.DIAMONDS: 'D', self.CLUBS: 'C', self.HEARTS: 'H', } return d[self] class Ran...
20.079208
73
0.5
d5e34019b24769c76f8bbcbc0ce46576622b138b
1,912
py
Python
utils.py
Johnson-yue/RS-GAN
8e8723045d63d8f9a4b510800cd909e7a6e3d195
[ "MIT" ]
26
2020-11-10T18:43:07.000Z
2021-11-05T08:19:17.000Z
utils.py
Johnson-yue/RS-GAN
8e8723045d63d8f9a4b510800cd909e7a6e3d195
[ "MIT" ]
1
2020-11-19T03:46:04.000Z
2020-12-10T23:25:23.000Z
utils.py
Johnson-yue/RS-GAN
8e8723045d63d8f9a4b510800cd909e7a6e3d195
[ "MIT" ]
3
2020-11-12T09:50:57.000Z
2021-07-16T21:04:46.000Z
import matplotlib matplotlib.use('Agg') import matplotlib.pyplot as plt import numpy as np def decay_lr(opt, max_iter, start_iter, initial_lr): """Decay learning rate linearly till 0.""" coeff = -initial_lr / (max_iter - start_iter) for pg in opt.param_groups: pg['lr'] += coeff def getGradNorm(mo...
31.866667
82
0.643828
d5e342eb46261c5b26e37050259f4ce6a0923d33
31,040
py
Python
msticpy/sectools/geoip.py
aw350m33d/msticpy
e099a09a600dee3740b10d9ccf4ac836e2cbd3a8
[ "MIT" ]
null
null
null
msticpy/sectools/geoip.py
aw350m33d/msticpy
e099a09a600dee3740b10d9ccf4ac836e2cbd3a8
[ "MIT" ]
1
2021-06-02T15:24:59.000Z
2021-06-02T15:24:59.000Z
msticpy/sectools/geoip.py
rcobb-scwx/msticpy
992e2d55db4fc2916b47109c233a24b330f7cf67
[ "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. # -------------------------------------------------------------------------- """ Geoip ...
35.272727
109
0.595522
d5e36111ef93992b1acfbc82bfd39df4ca27271a
2,852
py
Python
worx_v2/custompy/sales_order.py
UsamaNaveed9/worx_v2
2c46dcc9ec3d7a75ba3626502a8186891bf15bd5
[ "MIT" ]
null
null
null
worx_v2/custompy/sales_order.py
UsamaNaveed9/worx_v2
2c46dcc9ec3d7a75ba3626502a8186891bf15bd5
[ "MIT" ]
null
null
null
worx_v2/custompy/sales_order.py
UsamaNaveed9/worx_v2
2c46dcc9ec3d7a75ba3626502a8186891bf15bd5
[ "MIT" ]
null
null
null
from __future__ import unicode_literals import frappe import json import frappe.utils from frappe.utils import cstr, flt, getdate, cint, nowdate, add_days, get_link_to_form, strip_html from frappe import _ @frappe.whitelist() def get_job_form_items(self, for_raw_material_request=0): '''Returns items with BOM that ...
31
146
0.676718
d5e382b4ba04189b1a2479d7584b671ffda7e71f
6,613
py
Python
bisection_alpha/bisection_alpha.py
qnity/insurance_python
8dff5e365e3749b76adaeea90d89909af5f3c1b0
[ "MIT" ]
8
2021-12-12T17:47:29.000Z
2022-03-05T09:41:15.000Z
bisection_alpha.py
qnity/bisection_alpha_python
5b3f475eee83e01d63efd704658a6bf3631338c5
[ "MIT" ]
6
2022-03-08T13:14:23.000Z
2022-03-29T12:57:42.000Z
bisection_alpha/bisection_alpha.py
qnity/insurance_python
8dff5e365e3749b76adaeea90d89909af5f3c1b0
[ "MIT" ]
null
null
null
import numpy as np from SWCalibrate import SWCalibrate as SWCalibrate from SWExtrapolate import SWExtrapolate as SWExtrapolate def Galfa(M_Obs: np.ndarray, r_Obs: np.ndarray, ufr, alpha, Tau): """ Calculates the gap at the convergence point between the alowable tolerance Tau and the curve extrapolated us...
64.203883
200
0.649932
d5e3a001f59f0277fc583f7baf959f5567141d70
25,904
py
Python
azure/multiapi/storagev2/filedatalake/v2018_11_09/_models.py
xolve/azure-multiapi-storage-python
47509479427c879f18c554e451e838453d47c2bd
[ "MIT" ]
3
2019-02-21T20:46:26.000Z
2021-06-22T15:35:52.000Z
azure/multiapi/storagev2/filedatalake/v2018_11_09/_models.py
xolve/azure-multiapi-storage-python
47509479427c879f18c554e451e838453d47c2bd
[ "MIT" ]
11
2017-10-05T18:20:40.000Z
2020-10-10T09:20:19.000Z
azure/multiapi/storagev2/filedatalake/v2018_11_09/_models.py
xolve/azure-multiapi-storage-python
47509479427c879f18c554e451e838453d47c2bd
[ "MIT" ]
15
2017-10-02T18:48:20.000Z
2022-03-03T14:03:49.000Z
# ------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for # license information. # -------------------------------------------------------------------------- # pylint: ...
43.101498
112
0.701899
d5e3a2f1ac4e9ae06ffbb2501b032fa5f96fd87b
802
py
Python
leetcode/690. Employee Importance/soln.py
saisankargochhayat/algo_quest
a24f9a22c019ab31d56bd5a7ca5ba790d54ce5dc
[ "Apache-2.0" ]
3
2017-02-15T20:55:04.000Z
2018-09-26T18:48:24.000Z
leetcode/690. Employee Importance/soln.py
saisankargochhayat/algo_quest
a24f9a22c019ab31d56bd5a7ca5ba790d54ce5dc
[ "Apache-2.0" ]
4
2017-10-07T18:59:20.000Z
2019-10-08T05:43:25.000Z
leetcode/690. Employee Importance/soln.py
saisankargochhayat/algo_quest
a24f9a22c019ab31d56bd5a7ca5ba790d54ce5dc
[ "Apache-2.0" ]
1
2017-10-08T06:52:21.000Z
2017-10-08T06:52:21.000Z
""" # Definition for Employee. class Employee: def __init__(self, id: int, importance: int, subordinates: List[int]): self.id = id self.importance = importance self.subordinates = subordinates """ class Solution: def getImportance(self, employees: List['Employee'], id: int) -> int: ...
28.642857
74
0.511222
d5e3a779967f155730180a16e2c484d6560eaa3f
1,341
py
Python
fpscanner/instructions/__init__.py
nikialeksey/fingerprintscanner
ec86f3a31e3df4ef01639568008747943cf27e28
[ "MIT" ]
9
2018-08-26T18:05:13.000Z
2021-10-21T13:57:37.000Z
fpscanner/instructions/__init__.py
nikialeksey/fingerprintscanner
ec86f3a31e3df4ef01639568008747943cf27e28
[ "MIT" ]
6
2018-08-26T18:03:28.000Z
2021-08-19T16:21:38.000Z
fpscanner/instructions/__init__.py
nikialeksey/fingerprintscanner
ec86f3a31e3df4ef01639568008747943cf27e28
[ "MIT" ]
1
2020-03-17T01:57:07.000Z
2020-03-17T01:57:07.000Z
# MIT License # # Copyright (c) 2018 Alexey Nikitin # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights # to use, copy, modify, merg...
47.892857
80
0.798658
d5e3befbb8b26df842cf930b144ef981bf0808ea
2,941
py
Python
examples/snowflake-ml/pytorchsnowflake.py
saturncloud/examples
e87b4c49f9562d85a631cbaa9fe4205e96088231
[ "BSD-3-Clause" ]
11
2020-08-18T09:55:38.000Z
2022-03-03T15:01:16.000Z
examples/snowflake-ml/pytorchsnowflake.py
saturncloud/examples
e87b4c49f9562d85a631cbaa9fe4205e96088231
[ "BSD-3-Clause" ]
195
2020-08-18T19:22:02.000Z
2022-03-31T15:55:18.000Z
examples/snowflake-ml/pytorchsnowflake.py
saturncloud/examples
e87b4c49f9562d85a631cbaa9fe4205e96088231
[ "BSD-3-Clause" ]
3
2020-12-09T14:45:24.000Z
2021-10-06T18:20:47.000Z
""" PyTorch Snowflake Image Folder Data Class This class is an extension of PyTorch image data objects to allow loading image files from a Snowflake unstructured table. Learn more at https://quickstarts.snowflake.com/. """ import tempfile from os.path import basename, dirname from typing import Callable, Optional fro...
29.41
101
0.648759
d5e3c2ec5a476d95efd3cb3fe13b166af914525b
3,713
py
Python
examples/solvers using low level utilities/interior_laplace_panel_polygon_example_oversampling.py
dbstein/pybie2d
1c2d6c05f6dbb4f1ab4476d3824f4dde20f90d58
[ "Apache-2.0" ]
11
2018-10-26T17:34:29.000Z
2020-04-27T21:21:33.000Z
examples/solvers using low level utilities/interior_laplace_panel_polygon_example_oversampling.py
dbstein/pybie2d
1c2d6c05f6dbb4f1ab4476d3824f4dde20f90d58
[ "Apache-2.0" ]
null
null
null
examples/solvers using low level utilities/interior_laplace_panel_polygon_example_oversampling.py
dbstein/pybie2d
1c2d6c05f6dbb4f1ab4476d3824f4dde20f90d58
[ "Apache-2.0" ]
null
null
null
import numpy as np import scipy as sp import scipy.sparse import matplotlib as mpl import matplotlib.pyplot as plt import matplotlib.path import time plt.ion() import pybie2d """ Demonstrate how to use the pybie2d package to solve an interior Laplace problem On a complicated domain using a global quadrature This exam...
35.361905
99
0.632103
d5e3c7742dc1990e00e22fd34a2c58227d9ed0d3
2,244
py
Python
utils/yaml_utils.py
renuchauhan625/RazorPyOfficial
e5e3c2cb638b0e402f665aa2e756debd7c456237
[ "Apache-2.0" ]
3
2021-07-11T03:52:50.000Z
2022-01-06T11:30:08.000Z
utils/yaml_utils.py
renuchauhan625/RazorPyOfficial
e5e3c2cb638b0e402f665aa2e756debd7c456237
[ "Apache-2.0" ]
null
null
null
utils/yaml_utils.py
renuchauhan625/RazorPyOfficial
e5e3c2cb638b0e402f665aa2e756debd7c456237
[ "Apache-2.0" ]
1
2021-07-18T05:42:40.000Z
2021-07-18T05:42:40.000Z
''' Created on 30-Jan-2021 @author: Abhishek Prajapati ''' #All os imports from errno import ENOENT from os import strerror from os.path import exists as file_path_exists, join as join_path from yaml import safe_load, YAMLError from managers.vars_manager import AppsVars from support.razor_logger import logger cla...
33.492537
123
0.618984
d5e3cac677b4b95d68a2df7bf7afe95558f338d4
64,711
py
Python
sdk/appservice/azure-mgmt-web/azure/mgmt/web/v2020_09_01/aio/operations/_app_service_certificate_orders_operations.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
1
2021-09-07T18:39:05.000Z
2021-09-07T18:39:05.000Z
sdk/appservice/azure-mgmt-web/azure/mgmt/web/v2020_09_01/aio/operations/_app_service_certificate_orders_operations.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
null
null
null
sdk/appservice/azure-mgmt-web/azure/mgmt/web/v2020_09_01/aio/operations/_app_service_certificate_orders_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 ...
47.1311
733
0.693901
d5e3d72cc848e46fe7a9936e2b58dfd036525364
1,633
py
Python
dance.py
weiss-d/uuid-dance
72852a6c2e5cfe25b89f7ec4ddce65c27c99ec60
[ "MIT" ]
null
null
null
dance.py
weiss-d/uuid-dance
72852a6c2e5cfe25b89f7ec4ddce65c27c99ec60
[ "MIT" ]
null
null
null
dance.py
weiss-d/uuid-dance
72852a6c2e5cfe25b89f7ec4ddce65c27c99ec60
[ "MIT" ]
null
null
null
import sys from typing import Any, List, Tuple import uuid import matplotlib.animation as animation from matplotlib.lines import Line2D from matplotlib import pyplot def uuid_as_list() -> List[int]: """Returns a list of integers each representing a symbol of random UUID. Dashes are replaced with zeros. "...
26.33871
84
0.654623
d5e4367c33c912eaab1a2feed54f609f80f1f02a
2,460
py
Python
deltamoea/__init__.py
DecisionVis/dmoea-python
416cc0e8a4efd7fb952d25c12e86bc929f8be872
[ "BSD-3-Clause" ]
2
2018-07-31T13:57:39.000Z
2019-04-26T01:00:35.000Z
deltamoea/__init__.py
DecisionVis/deltamoea
416cc0e8a4efd7fb952d25c12e86bc929f8be872
[ "BSD-3-Clause" ]
null
null
null
deltamoea/__init__.py
DecisionVis/deltamoea
416cc0e8a4efd7fb952d25c12e86bc929f8be872
[ "BSD-3-Clause" ]
null
null
null
""" Copyright (c) 2018 DecisionVis, LLC. All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: 1. Redistributions of source code must retain the above copyright notice, this list of conditions and the followi...
35.142857
59
0.82439
d5e45dec7ba6284400f3807bcdceaf8ab34c05cf
25,053
py
Python
twilio/rest/api/v2010/account/usage/record/yearly.py
theDrinkMD/twibbage
c0aba60bd2df50f0a5688db4a01048ea1efd1a45
[ "MIT" ]
1
2021-02-24T04:59:03.000Z
2021-02-24T04:59:03.000Z
twilio/rest/api/v2010/account/usage/record/yearly.py
theDrinkMD/twibbage
c0aba60bd2df50f0a5688db4a01048ea1efd1a45
[ "MIT" ]
null
null
null
twilio/rest/api/v2010/account/usage/record/yearly.py
theDrinkMD/twibbage
c0aba60bd2df50f0a5688db4a01048ea1efd1a45
[ "MIT" ]
1
2018-12-09T00:53:21.000Z
2018-12-09T00:53:21.000Z
# coding=utf-8 """ This code was generated by \ / _ _ _| _ _ | (_)\/(_)(_|\/| |(/_ v1.0.0 / / """ from twilio.base import deserialize from twilio.base import serialize from twilio.base import values from twilio.base.instance_resource import InstanceResource from twilio.base.list_resource import Li...
43.046392
119
0.677723
d5e4b7b0116680e4b345a91b5fa592b26fe91a73
19,902
py
Python
src/wdmtoolbox/wdmtoolbox.py
timcera/wdmtoolbox
c6a3c55d88c90e66dfa7a6f78fe766ae11954559
[ "BSD-3-Clause" ]
2
2017-04-04T17:46:43.000Z
2018-02-08T20:11:26.000Z
src/wdmtoolbox/wdmtoolbox.py
timcera/wdmtoolbox
c6a3c55d88c90e66dfa7a6f78fe766ae11954559
[ "BSD-3-Clause" ]
7
2016-04-25T21:38:24.000Z
2021-08-06T14:31:24.000Z
src/wdmtoolbox/wdmtoolbox.py
timcera/wdmtoolbox
c6a3c55d88c90e66dfa7a6f78fe766ae11954559
[ "BSD-3-Clause" ]
4
2016-03-30T20:31:03.000Z
2021-03-08T20:25:28.000Z
# -*- coding: utf-8 -*- """The component functions of the wdmtoolbox. Used to manipulate Watershed Data Management files for time-series. """ from __future__ import print_function import datetime import os import sys # Third party imports from builtins import range, str from collections import OrderedDict import ma...
25.288437
87
0.584615
d5e4dd0324661b89f4d76852ffc39820b062b659
5,115
py
Python
opensfm/actions/export_geocoords.py
YanNoun/OpenSfM
a1293bff2f00b5716f5bbd413e79098b46c53ab8
[ "BSD-2-Clause" ]
1
2022-01-16T01:35:37.000Z
2022-01-16T01:35:37.000Z
opensfm/actions/export_geocoords.py
YanNoun/OpenSfM
a1293bff2f00b5716f5bbd413e79098b46c53ab8
[ "BSD-2-Clause" ]
null
null
null
opensfm/actions/export_geocoords.py
YanNoun/OpenSfM
a1293bff2f00b5716f5bbd413e79098b46c53ab8
[ "BSD-2-Clause" ]
null
null
null
import logging import os import numpy as np import pyproj from opensfm import dataset from opensfm import io from opensfm.dataset import DataSet, UndistortedDataSet logger = logging.getLogger(__name__) def run_dataset( data: DataSet, proj, transformation, image_positions, reconstruction, dense, output ): "...
36.021127
89
0.611926
d5e4f00497fdf4a7bea3b258fa8c1f13973ecb86
556
py
Python
core/typecheck/typing.py
xieguo/sublime_db
f2a7b0e55e9f0b77b90a9aa2ea4c4f9136db1315
[ "MIT" ]
1
2019-01-21T17:37:32.000Z
2019-01-21T17:37:32.000Z
core/typecheck/typing.py
xieguo/sublime_db
f2a7b0e55e9f0b77b90a9aa2ea4c4f9136db1315
[ "MIT" ]
null
null
null
core/typecheck/typing.py
xieguo/sublime_db
f2a7b0e55e9f0b77b90a9aa2ea4c4f9136db1315
[ "MIT" ]
null
null
null
TYPE_CHECKING = False class Any: pass class _GetAttr(type): def __getitem__(self, x): return self class Generic(metaclass=_GetAttr): pass class Generator(Generic): pass class Callable(Generic): pass class List(Generic): pass class Optional(Generic): pass class Tuple(Generic): ...
16.848485
42
0.67446
d5e4fa0db329f713a52ed2b23682dcb96a6e3ce4
2,609
py
Python
autoio-interfaces/mess_io/writer/__init__.py
lpratalimaffei/autoio
57be6e4882af1841153c19e7353e2531e64ce47f
[ "Apache-2.0" ]
null
null
null
autoio-interfaces/mess_io/writer/__init__.py
lpratalimaffei/autoio
57be6e4882af1841153c19e7353e2531e64ce47f
[ "Apache-2.0" ]
1
2022-02-15T19:35:14.000Z
2022-02-15T19:35:14.000Z
autoio-interfaces/mess_io/writer/__init__.py
lpratalimaffei/autoio
57be6e4882af1841153c19e7353e2531e64ce47f
[ "Apache-2.0" ]
13
2020-06-24T05:21:11.000Z
2021-05-05T19:58:30.000Z
""" Functions write all the neccessary sections of MESS input files for kinetics and thermochemistry calculations using data from electronic structure calculations """ from mess_io.writer._glob import messrates_inp_str from mess_io.writer._glob import messpf_inp_str from mess_io.writer._glob import global_rates_...
31.059524
61
0.784975
d5e4fb08f26fdbdd6a3d33d61e3e46a2595e1bb7
39,982
py
Python
chapter_4_modeling/train_audiotextclassify.py
fancyerii/voicebook
def82da8577086d0361643a05fec2463006533a9
[ "Apache-2.0" ]
1
2020-03-05T01:19:17.000Z
2020-03-05T01:19:17.000Z
chapter_4_modeling/train_audiotextclassify.py
fancyerii/voicebook
def82da8577086d0361643a05fec2463006533a9
[ "Apache-2.0" ]
null
null
null
chapter_4_modeling/train_audiotextclassify.py
fancyerii/voicebook
def82da8577086d0361643a05fec2463006533a9
[ "Apache-2.0" ]
null
null
null
''' train_audiotextclassify.py Jim Schwoebel (C) 2018, NeuroLex Laboratories This function takes in two folders with wav files (20 secs), transcribes them through PocketSphinx, fingerprints them with audio and text features (.json), and then builds an optimized machine learning model from these features. This model...
42.991398
699
0.602821
d5e5036b9da85098e88ba205bc0c49ee69d79330
10,007
py
Python
tests/integration/test.py
gautamk/python-intercom
154814eff8835ac15392ba186e1ffe256b8ff821
[ "MIT" ]
1
2015-11-06T00:01:31.000Z
2015-11-06T00:01:31.000Z
tests/integration/test.py
gautamk/python-intercom
154814eff8835ac15392ba186e1ffe256b8ff821
[ "MIT" ]
null
null
null
tests/integration/test.py
gautamk/python-intercom
154814eff8835ac15392ba186e1ffe256b8ff821
[ "MIT" ]
null
null
null
# coding=utf-8 # # Copyright 2012 keyes.ie # # License: http://jkeyes.mit-license.org/ # import httpretty import os import re DIRPATH = os.path.dirname(__file__) FIXTURES = os.path.join(DIRPATH, 'fixtures') from intercom import AuthenticationError from intercom import BadGatewayError from intercom import ResourceNot...
31.07764
78
0.676227
d5e514f18bed6b62f80592ee351c9db211e9966e
1,529
py
Python
SCRAPE/Lib/site-packages/twisted/logger/_buffer.py
Chinmoy-Prasad-Dutta/scrapy_scraper
09f6abfc3bcf10ee28f486d83b450c89a07e066e
[ "MIT" ]
4,612
2015-01-01T12:57:23.000Z
2022-03-30T01:08:23.000Z
SCRAPE/Lib/site-packages/twisted/logger/_buffer.py
Chinmoy-Prasad-Dutta/scrapy_scraper
09f6abfc3bcf10ee28f486d83b450c89a07e066e
[ "MIT" ]
1,243
2015-01-23T17:23:59.000Z
2022-03-28T13:46:17.000Z
SCRAPE/Lib/site-packages/twisted/logger/_buffer.py
Chinmoy-Prasad-Dutta/scrapy_scraper
09f6abfc3bcf10ee28f486d83b450c89a07e066e
[ "MIT" ]
1,236
2015-01-13T14:41:26.000Z
2022-03-17T07:12:36.000Z
# -*- test-case-name: twisted.logger.test.test_buffer -*- # Copyright (c) Twisted Matrix Laboratories. # See LICENSE for details. """ Log observer that maintains a buffer. """ from collections import deque from typing import Deque, Optional from zope.interface import implementer from ._interfaces import ILogObserve...
27.8
78
0.616089
d5e52247acf9e04fbfad0795f9fc0306fdf82dcc
7,517
py
Python
directory/datadog_checks/directory/directory.py
seants/integrations-core
1e5548915fc24f1bbd095e845f0940c22992b09c
[ "BSD-3-Clause" ]
null
null
null
directory/datadog_checks/directory/directory.py
seants/integrations-core
1e5548915fc24f1bbd095e845f0940c22992b09c
[ "BSD-3-Clause" ]
null
null
null
directory/datadog_checks/directory/directory.py
seants/integrations-core
1e5548915fc24f1bbd095e845f0940c22992b09c
[ "BSD-3-Clause" ]
null
null
null
# (C) Datadog, Inc. 2018 # All rights reserved # Licensed under a 3-clause BSD style license (see LICENSE) from fnmatch import fnmatch from os.path import abspath, exists, join, relpath from re import compile as re_compile from time import time from datadog_checks.checks import AgentCheck from datadog_checks.config im...
40.853261
110
0.540508
d5e54a0783edf0e4f28106c0558d4e00baca3ef5
2,230
py
Python
python/computer_vision/face_detect_face_recognition/samples/sample_image_basics.py
san99tiago/tesis
70e452cfa9eedbbe64347e2bd8826bb295473d01
[ "MIT" ]
4
2021-03-09T19:59:50.000Z
2021-03-31T01:28:24.000Z
python/computer_vision/face_detect_face_recognition/samples/sample_image_basics.py
san99tiago/tesis
70e452cfa9eedbbe64347e2bd8826bb295473d01
[ "MIT" ]
null
null
null
python/computer_vision/face_detect_face_recognition/samples/sample_image_basics.py
san99tiago/tesis
70e452cfa9eedbbe64347e2bd8826bb295473d01
[ "MIT" ]
null
null
null
# MULTIPLE IMAGE SAMPLES FOR FACE_DETECTION WITH "FACE RECOGNITION MODULE" APPROACH # Built-int imports import os # External imports import cv2 as cv import numpy as np # My own imports import face_detect_fr as fdfr import get_assets_folder as gaf # Get assets folder in repo for the samples ASSETS_FOLDER = gaf.get_...
28.589744
83
0.698655
d5e55551bc592f20f7a325bb5a53377ff4a67837
13,519
py
Python
slick_reporting/fields.py
srijwalzartek/django-slick-reporting
aed9262a3dd83aa28e141301a4b3bf7041be7748
[ "BSD-3-Clause" ]
null
null
null
slick_reporting/fields.py
srijwalzartek/django-slick-reporting
aed9262a3dd83aa28e141301a4b3bf7041be7748
[ "BSD-3-Clause" ]
null
null
null
slick_reporting/fields.py
srijwalzartek/django-slick-reporting
aed9262a3dd83aa28e141301a4b3bf7041be7748
[ "BSD-3-Clause" ]
null
null
null
import uuid from django.db.models import Sum from django.utils.translation import ugettext_lazy as _ from .decorators import report_field_register from .helpers import get_calculation_annotation from .registry import field_registry class SlickReportField(object): """ Computation field responsible for making...
34.138889
119
0.640876
d5e5765418c55eb8e248c59fddd4a8a3e84848a0
1,554
py
Python
hindi_inverse_text_normalization/verbalizers/punctuation.py
Open-Speech-EkStep/punctuation-ITN
d4b8340786a836d44b510ff981667a37cac4b65e
[ "MIT" ]
2
2022-01-17T09:13:42.000Z
2022-01-18T23:33:42.000Z
hindi_inverse_text_normalization/verbalizers/punctuation.py
Open-Speech-EkStep/punctuation-ITN
d4b8340786a836d44b510ff981667a37cac4b65e
[ "MIT" ]
null
null
null
hindi_inverse_text_normalization/verbalizers/punctuation.py
Open-Speech-EkStep/punctuation-ITN
d4b8340786a836d44b510ff981667a37cac4b65e
[ "MIT" ]
2
2022-02-07T14:10:30.000Z
2022-02-09T07:28:19.000Z
# Copyright (c) 2021, NVIDIA CORPORATION. All rights reserved. # Copyright 2015 and onwards Google, 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/license...
31.08
114
0.664736
d5e585119aced212daddbb712d5681636b1f0212
2,359
py
Python
accounts/migrations/0002_initial.py
fossabot/flaam-api
d11651aa77c4b7c5e26b6443f9699e0a4bec4354
[ "MIT" ]
1
2022-01-07T04:01:06.000Z
2022-01-07T04:01:06.000Z
accounts/migrations/0002_initial.py
fossabot/flaam-api
d11651aa77c4b7c5e26b6443f9699e0a4bec4354
[ "MIT" ]
26
2021-11-14T06:02:59.000Z
2022-03-29T14:17:39.000Z
accounts/migrations/0002_initial.py
fossabot/flaam-api
d11651aa77c4b7c5e26b6443f9699e0a4bec4354
[ "MIT" ]
1
2022-01-05T18:51:01.000Z
2022-01-05T18:51:01.000Z
# Generated by Django 3.2.8 on 2021-10-26 08:11 from django.conf import settings from django.db import migrations, models class Migration(migrations.Migration): initial = True dependencies = [ ("accounts", "0001_initial"), ("tags", "0001_initial"), ("auth", "0012_alter_user_first_na...
31.453333
126
0.529462
d5e5af111d12447e4a44f6482012de068d784ff9
1,028
py
Python
Tutorial/G.E.G/intro/SpudLords.py
mgrazebrook/supegemial
848a3c8fbd00f3e125357097bd5dee655b99aaaf
[ "MIT" ]
null
null
null
Tutorial/G.E.G/intro/SpudLords.py
mgrazebrook/supegemial
848a3c8fbd00f3e125357097bd5dee655b99aaaf
[ "MIT" ]
null
null
null
Tutorial/G.E.G/intro/SpudLords.py
mgrazebrook/supegemial
848a3c8fbd00f3e125357097bd5dee655b99aaaf
[ "MIT" ]
null
null
null
import sys, pygame pygame.init() size = width, height = 320, 240 speed = [2, 2] pink = 100, 0, 100 blue = 40, 10, 100 purple = 100, 20, 180 colourList = [purple, blue, pink] currentColour = 1; screen = pygame.display.set_mode(size) ball = pygame.image.load("spud.png") ballrect = ball.get_rect() while 1: for even...
29.371429
72
0.633268
d5e5d03a41cb78ec77d01e32bfabfd0f929ac649
9,741
py
Python
Models_simpler_short_horizon.py
panos108/MBDoE-total
5691d2d1615667b94cbf4cf107df543fe8148650
[ "MIT" ]
1
2021-09-30T08:48:31.000Z
2021-09-30T08:48:31.000Z
Models_simpler_short_horizon.py
panos108/MBDoE-total
5691d2d1615667b94cbf4cf107df543fe8148650
[ "MIT" ]
2
2020-12-03T18:05:59.000Z
2020-12-03T18:06:33.000Z
Models_simpler_short_horizon.py
panos108/MBDoE-total
5691d2d1615667b94cbf4cf107df543fe8148650
[ "MIT" ]
null
null
null
# GP NMPC problem setup import numpy as np from casadi import * class Bio_reactor_1: def __init__(self): self.real_parameters = [0.0923*0.62, 178.85] def specifications(self): ''' Specify Problem parameters ''' tf = 240. # final time nk = 4 ...
37.465385
131
0.505698
d5e65755311e704a4477908a2726bd6d7fbaa6e2
3,358
py
Python
my_work/ch6_graphs_and_other_algs/graphs_notes.py
gabrielavirna/PythonDataStructuresAndAlgorithms
d406dc247a8ff2f39ee5aac2a398027298ffbf69
[ "MIT" ]
1
2019-01-22T04:59:02.000Z
2019-01-22T04:59:02.000Z
my_work/ch6_graphs_and_other_algs/graphs_notes.py
gabrielavirna/python_data_structures_and_algorithms
d406dc247a8ff2f39ee5aac2a398027298ffbf69
[ "MIT" ]
null
null
null
my_work/ch6_graphs_and_other_algs/graphs_notes.py
gabrielavirna/python_data_structures_and_algorithms
d406dc247a8ff2f39ee5aac2a398027298ffbf69
[ "MIT" ]
null
null
null
""" Graphs and Other Algorithms --------------------------- Graphs - used to solve a number of computing problems. They also have much less structure than other data structures and things like traversal can be much more unconventional. Graphs ------- - a set of vertices and edges that form connections between the vert...
61.054545
120
0.748958
d5e65f9bf7cd0e1b634072843ac2acd5e267b818
52,035
py
Python
test/integration/ggrc/services/test_query/test_basic.py
farcry4998/ggrc-core
c469039dabb55033c1b379850feb19e8dda2e2a1
[ "ECL-2.0", "Apache-2.0" ]
1
2019-01-04T10:55:14.000Z
2019-01-04T10:55:14.000Z
test/integration/ggrc/services/test_query/test_basic.py
farcry4998/ggrc-core
c469039dabb55033c1b379850feb19e8dda2e2a1
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
test/integration/ggrc/services/test_query/test_basic.py
farcry4998/ggrc-core
c469039dabb55033c1b379850feb19e8dda2e2a1
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
# coding: utf-8 # Copyright (C) 2018 Google Inc. # Licensed under http://www.apache.org/licenses/LICENSE-2.0 <see LICENSE file> # pylint: disable=too-many-lines """Tests for /query api endpoint.""" import unittest from datetime import datetime from operator import itemgetter import ddt from flask import json from ...
34.759519
79
0.57886
d5e6734e7c9b9407c57a904d9a4de30bc075380b
5,533
py
Python
alipay/aop/api/domain/AlipayBossFncOutputinvoiceRcptQueryModel.py
antopen/alipay-sdk-python-all
8e51c54409b9452f8d46c7bb10eea7c8f7e8d30c
[ "Apache-2.0" ]
null
null
null
alipay/aop/api/domain/AlipayBossFncOutputinvoiceRcptQueryModel.py
antopen/alipay-sdk-python-all
8e51c54409b9452f8d46c7bb10eea7c8f7e8d30c
[ "Apache-2.0" ]
null
null
null
alipay/aop/api/domain/AlipayBossFncOutputinvoiceRcptQueryModel.py
antopen/alipay-sdk-python-all
8e51c54409b9452f8d46c7bb10eea7c8f7e8d30c
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- import json from alipay.aop.api.constant.ParamConstants import * class AlipayBossFncOutputinvoiceRcptQueryModel(object): def __init__(self): self._ar_no = None self._inst_id = None self._invoice_date_begin = None self._invoice_date_en...
31.4375
87
0.596241
d5e67a04b52c49879ec3e832b65ebcef7660129f
4,126
py
Python
src/python/pants/build_graph/mirrored_target_option_mixin.py
tpasternak/pants
edf5716283d449852309fff1a10dd351dfbf3493
[ "Apache-2.0" ]
1
2021-05-05T18:58:28.000Z
2021-05-05T18:58:28.000Z
src/python/pants/build_graph/mirrored_target_option_mixin.py
tpasternak/pants
edf5716283d449852309fff1a10dd351dfbf3493
[ "Apache-2.0" ]
null
null
null
src/python/pants/build_graph/mirrored_target_option_mixin.py
tpasternak/pants
edf5716283d449852309fff1a10dd351dfbf3493
[ "Apache-2.0" ]
3
2020-06-30T08:28:13.000Z
2021-07-28T09:35:57.000Z
# Copyright 2018 Pants project contributors (see CONTRIBUTORS.md). # Licensed under the Apache License, Version 2.0 (see LICENSE). from abc import ABC, abstractmethod from dataclasses import dataclass from typing import Any from pants.util.memo import memoized_property @dataclass(frozen=True) class MirroredTargetOp...
40.45098
101
0.714493
d5e6aaed72ed0efdc89153160bbbbe8013d08e73
9,174
py
Python
tests/integration/test_validators.py
grktsh/openapi-core
d4ada7bcbb9b13f5c5dd090988c35be7a0d141b7
[ "BSD-3-Clause" ]
null
null
null
tests/integration/test_validators.py
grktsh/openapi-core
d4ada7bcbb9b13f5c5dd090988c35be7a0d141b7
[ "BSD-3-Clause" ]
null
null
null
tests/integration/test_validators.py
grktsh/openapi-core
d4ada7bcbb9b13f5c5dd090988c35be7a0d141b7
[ "BSD-3-Clause" ]
null
null
null
import json import pytest from openapi_core.schema.media_types.exceptions import ( InvalidContentType, InvalidMediaTypeValue, ) from openapi_core.schema.operations.exceptions import InvalidOperation from openapi_core.schema.parameters.exceptions import MissingRequiredParameter from openapi_core.schema.request_bodi...
31.634483
78
0.606606
d5e6c2c70a5cef57b92798721d0ec8f3afdc052b
2,858
py
Python
RareVariants/io/VariantsGffWriter.py
afif-elghraoui/CorrelatedVariants
4fc6722c78c9a03ad44a7d2f737ccece64d22c35
[ "BSD-3-Clause" ]
null
null
null
RareVariants/io/VariantsGffWriter.py
afif-elghraoui/CorrelatedVariants
4fc6722c78c9a03ad44a7d2f737ccece64d22c35
[ "BSD-3-Clause" ]
null
null
null
RareVariants/io/VariantsGffWriter.py
afif-elghraoui/CorrelatedVariants
4fc6722c78c9a03ad44a7d2f737ccece64d22c35
[ "BSD-3-Clause" ]
null
null
null
################################################################################# # Copyright (c) 2011-2013, Pacific Biosciences of California, Inc. # # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are me...
50.140351
89
0.69909
d5e6d896de702187f7649941839ca08f20f4e2b1
10,618
py
Python
preprocess/registration_setup.py
polosecki/ton_rfmri_repo
bfa0313c83865045bd0fb36ec43349164b065f69
[ "BSD-3-Clause" ]
1
2020-07-14T15:21:27.000Z
2020-07-14T15:21:27.000Z
preprocess/registration_setup.py
polosecki/ton_rfmri_repo
bfa0313c83865045bd0fb36ec43349164b065f69
[ "BSD-3-Clause" ]
null
null
null
preprocess/registration_setup.py
polosecki/ton_rfmri_repo
bfa0313c83865045bd0fb36ec43349164b065f69
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- """ Script to do spatial registration of both structural and functional MRI volumes to MNI space. The generated images have the same resolution as the originally acquired ones. It makes use of 2 workflows: 'registration_func_wf.py' and 'registration_struct_wf.py'. Created on Fri Feb 19 02:52:17...
46.366812
89
0.47994
d5e71fade834394fc295bac219103058da9f55f3
1,934
py
Python
python/hashmap_tree_intersection/hashmap_tree_intersection/hashtable.py
RoaaMustafa/data-structures-and-algorithms
3a756dd5b3feae338eaac28e9229bc37ad6013e2
[ "MIT" ]
null
null
null
python/hashmap_tree_intersection/hashmap_tree_intersection/hashtable.py
RoaaMustafa/data-structures-and-algorithms
3a756dd5b3feae338eaac28e9229bc37ad6013e2
[ "MIT" ]
2
2021-08-06T13:44:01.000Z
2021-08-07T10:18:07.000Z
python/hashmap_tree_intersection/hashmap_tree_intersection/hashtable.py
RoaaMustafa/data-structures-and-algorithms
3a756dd5b3feae338eaac28e9229bc37ad6013e2
[ "MIT" ]
1
2021-12-06T22:12:31.000Z
2021-12-06T22:12:31.000Z
class Node: def __init__(self, data): self.data = data self.next = None class LinkedList: def __init__(self): self.head = None def add(self, data): node = Node(data) if not self.head: self.head = node else: current = self.head ...
26.493151
47
0.522234
d5e725c8a1344f90551e5f2cc518bcd997e32b18
3,169
py
Python
salo/events/suricata/http.py
isabella232/salo
8586096a2c2cc1b55ab554157ed1fe1cbce08827
[ "Apache-2.0" ]
32
2022-01-14T02:28:52.000Z
2022-03-27T16:17:43.000Z
salo/events/suricata/http.py
isabella232/salo
8586096a2c2cc1b55ab554157ed1fe1cbce08827
[ "Apache-2.0" ]
1
2022-02-28T04:14:47.000Z
2022-02-28T04:14:47.000Z
salo/events/suricata/http.py
isabella232/salo
8586096a2c2cc1b55ab554157ed1fe1cbce08827
[ "Apache-2.0" ]
2
2022-03-25T14:59:27.000Z
2022-03-27T16:53:43.000Z
#!/usr/bin/env python3 # Copyright 2021 Splunk 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...
32.010101
107
0.665825
d5e745686afbf8f545bf95c9c1fc12205d5f070b
5,549
py
Python
AnalysisDAFM/program/Representation/problem2vec.py
rcmurray/WorkflowComponents
368f8132ce5bef3ac3fb9d8e1a13a08f91764cfa
[ "BSD-4-Clause-UC" ]
26
2016-09-14T18:15:29.000Z
2021-12-01T20:01:29.000Z
AnalysisDAFM/program/Representation/problem2vec.py
rcmurray/WorkflowComponents
368f8132ce5bef3ac3fb9d8e1a13a08f91764cfa
[ "BSD-4-Clause-UC" ]
122
2017-09-12T15:22:03.000Z
2021-09-27T17:25:08.000Z
AnalysisDAFM/program/Representation/problem2vec.py
rcmurray/WorkflowComponents
368f8132ce5bef3ac3fb9d8e1a13a08f91764cfa
[ "BSD-4-Clause-UC" ]
17
2017-02-16T16:04:41.000Z
2021-02-06T05:36:44.000Z
""" *prob2vec* Function to create a dataframe with embedding vectors associated with every problem depending on the value of min_count. Also, used to generate total number of problems associated with min_count and representation type. Input :- ws, vs, mt, mc - window_size, ...
48.252174
155
0.523698
d5e76a3247aa5e36a0d9399f260e54c7384e3585
3,845
py
Python
orangehackathon/widgets/enronloader.py
e-mental-health/orange-hackathon
ff4ece2495fb47599e61e634f94b55c4f5692b0f
[ "Apache-2.0" ]
1
2022-01-06T16:48:07.000Z
2022-01-06T16:48:07.000Z
orangehackathon/widgets/enronloader.py
e-mental-health/orange-hackathon
ff4ece2495fb47599e61e634f94b55c4f5692b0f
[ "Apache-2.0" ]
4
2019-08-30T17:28:11.000Z
2022-02-01T08:06:08.000Z
orangehackathon/widgets/enronloader.py
e-mental-health/orange-hackathon
ff4ece2495fb47599e61e634f94b55c4f5692b0f
[ "Apache-2.0" ]
1
2019-08-30T11:06:20.000Z
2019-08-30T11:06:20.000Z
from pathlib import Path import os import pandas as pd import sys from Orange.widgets.widget import OWWidget, Output from Orange.widgets import gui from Orange.widgets.settings import Setting from PyQt5.QtCore import Qt from PyQt5.QtWidgets import QFormLayout from Orange.data.pandas_compat import table_from_frame from...
38.838384
106
0.576333
d5e7710765d70f2386ece7d02afd0ace1dcc1973
1,056
py
Python
worm_fitness.py
Agross09/WormEvolution
9d539c628837da002c940bec417719d6582619d6
[ "MIT" ]
null
null
null
worm_fitness.py
Agross09/WormEvolution
9d539c628837da002c940bec417719d6582619d6
[ "MIT" ]
null
null
null
worm_fitness.py
Agross09/WormEvolution
9d539c628837da002c940bec417719d6582619d6
[ "MIT" ]
1
2019-05-05T00:27:08.000Z
2019-05-05T00:27:08.000Z
import heapq import math PROP_WORMS_FAIL = 0.50 def population_fitness(population): pop_size = len(population) pop_heap = [] i = 0 #populationC = population.copy() #heapq.heappush(pop_heap, (worm.fitness, worm)) while i < pop_size: worm = population.pop() if (type(worm) != tup...
24.55814
64
0.641098
d5e77a194c270f19b443d9cfc8e2ee6fb1c2bbff
980
py
Python
src/wai/annotations/adams/ic/specifier/_ADAMSICInputFormatSpecifier.py
waikato-ufdl/wai-annotations-adams
1cb1ecf9520eea43c392a07d7766da51551a3a20
[ "Apache-2.0" ]
null
null
null
src/wai/annotations/adams/ic/specifier/_ADAMSICInputFormatSpecifier.py
waikato-ufdl/wai-annotations-adams
1cb1ecf9520eea43c392a07d7766da51551a3a20
[ "Apache-2.0" ]
null
null
null
src/wai/annotations/adams/ic/specifier/_ADAMSICInputFormatSpecifier.py
waikato-ufdl/wai-annotations-adams
1cb1ecf9520eea43c392a07d7766da51551a3a20
[ "Apache-2.0" ]
null
null
null
from typing import Type, Tuple from wai.annotations.core.component import Component from wai.annotations.core.domain import DomainSpecifier from wai.annotations.core.specifier import SourceStageSpecifier class ADAMSICInputFormatSpecifier(SourceStageSpecifier): """ Specifier of the components for reading the ...
36.296296
98
0.760204
d5e786e69cf74a68cb6a836e76e772f40e808a16
1,421
py
Python
ibmsecurity/isam/fed/connector_instructions.py
ibm-enio/ibmsecurity
81f989678642c3b6a49b2a3fbb5d9ca98804ef17
[ "Apache-2.0" ]
1
2018-04-24T19:57:09.000Z
2018-04-24T19:57:09.000Z
ibmsecurity/isam/fed/connector_instructions.py
ibm-enio/ibmsecurity
81f989678642c3b6a49b2a3fbb5d9ca98804ef17
[ "Apache-2.0" ]
null
null
null
ibmsecurity/isam/fed/connector_instructions.py
ibm-enio/ibmsecurity
81f989678642c3b6a49b2a3fbb5d9ca98804ef17
[ "Apache-2.0" ]
1
2020-04-03T09:30:01.000Z
2020-04-03T09:30:01.000Z
import logging logger = logging.getLogger(__name__) # URI for this module uri = "/mga/connector_instructions" requires_modules = ["federation"] requires_version = "9.0.0.0" def get_all(isamAppliance, check_mode=False, force=False): """ Retrieve all connector instruction sets """ return isamAppliance...
33.046512
83
0.584799
d5e796c3d63972974efdedfc6e1d917a6eb88370
4,180
py
Python
model.py
swapnamoy17/EAST-DenseNet
6f8a8bd9a17912c2f19b9695b1a11ec5daa17c0f
[ "CC-BY-4.0" ]
null
null
null
model.py
swapnamoy17/EAST-DenseNet
6f8a8bd9a17912c2f19b9695b1a11ec5daa17c0f
[ "CC-BY-4.0" ]
1
2021-07-26T20:16:32.000Z
2021-07-26T20:16:32.000Z
model.py
swapnamoy17/EAST-DenseNet
6f8a8bd9a17912c2f19b9695b1a11ec5daa17c0f
[ "CC-BY-4.0" ]
null
null
null
import keras from keras.applications.resnet50 import ResNet50 from keras.models import Model from keras.layers import Conv2D, concatenate, BatchNormalization, Lambda, Input, multiply, add, ZeroPadding2D, Activation, Layer, MaxPooling2D, Dropout from keras import regularizers import keras.backend as K import tensorflow ...
52.25
177
0.686842
d5e79c651bab2c3b9eea5141ba29c416249292bb
4,046
py
Python
files/steps/generate_dataset_from_adg.py
dwp/dataworks-aws-ingest-replica
ed5fb0ebd57334be24244c711ed72b6f9ea2b734
[ "0BSD" ]
null
null
null
files/steps/generate_dataset_from_adg.py
dwp/dataworks-aws-ingest-replica
ed5fb0ebd57334be24244c711ed72b6f9ea2b734
[ "0BSD" ]
95
2021-03-29T15:02:03.000Z
2022-03-28T12:20:11.000Z
files/steps/generate_dataset_from_adg.py
dwp/dataworks-aws-ingest-replica
ed5fb0ebd57334be24244c711ed72b6f9ea2b734
[ "0BSD" ]
1
2021-04-10T22:12:58.000Z
2021-04-10T22:12:58.000Z
import argparse import csv import datetime import io import itertools import json import os.path from concurrent.futures import ThreadPoolExecutor from pyspark.sql import SparkSession def get_parameters(): """Define and parse command line args.""" parser = argparse.ArgumentParser( description="Receiv...
29.318841
87
0.604548