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
9df3952ad5a0ab92e2449d6885e6beaeddd68099
5,847
py
Python
tools/old/rep_train.py
XYHC-MMDA/Multi-modal-Multi-task-DA
ed8297eb489d50c580795713cccb72bc958f406f
[ "Apache-2.0" ]
1
2020-11-05T19:51:23.000Z
2020-11-05T19:51:23.000Z
tools/old/rep_train.py
XYHC-MMDA/Multi-modal-Multi-task-DA
ed8297eb489d50c580795713cccb72bc958f406f
[ "Apache-2.0" ]
null
null
null
tools/old/rep_train.py
XYHC-MMDA/Multi-modal-Multi-task-DA
ed8297eb489d50c580795713cccb72bc958f406f
[ "Apache-2.0" ]
null
null
null
from __future__ import division import argparse import copy import logging import mmcv import os import time import torch from mmcv import Config, DictAction from mmcv.runner import init_dist from os import path as osp from mmdet3d import __version__ from mmdet3d.datasets import build_dataset from mmdet3d.models impo...
35.871166
79
0.661878
656237a02de658ffaa48195c43173a050ccbf509
802
py
Python
main.py
satishnarasimhan/outliers
2094281d75d11f7a3925759e8dc19c9404c9a4a7
[ "MIT" ]
null
null
null
main.py
satishnarasimhan/outliers
2094281d75d11f7a3925759e8dc19c9404c9a4a7
[ "MIT" ]
null
null
null
main.py
satishnarasimhan/outliers
2094281d75d11f7a3925759e8dc19c9404c9a4a7
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ Created on Thu May 20 16:21:46 2021 @author: Satish Narasimhan This script will generate the list of securities / instruments which have ITM selling """ from datetime import datetime import pandas as pd # Determine current date day = datetime.now() date = day.strftime("%d%m%y") #date = '1...
20.564103
85
0.698254
48aa1643bc69ebe88754e9067179b99923448f52
3,801
py
Python
fr_celery/settings.py
johnbartholomew/bookwyrm
a6593eced7db88f0a68bd19a0e6ba441bf1053c3
[ "CC0-1.0" ]
null
null
null
fr_celery/settings.py
johnbartholomew/bookwyrm
a6593eced7db88f0a68bd19a0e6ba441bf1053c3
[ "CC0-1.0" ]
null
null
null
fr_celery/settings.py
johnbartholomew/bookwyrm
a6593eced7db88f0a68bd19a0e6ba441bf1053c3
[ "CC0-1.0" ]
null
null
null
""" Django settings for fr_celery project. Generated by 'django-admin startproject' using Django 3.0.3. For more information on this file, see https://docs.djangoproject.com/en/3.0/topics/settings/ For the full list of settings and their values, see https://docs.djangoproject.com/en/3.0/ref/settings/ """ import os ...
25.857143
91
0.691397
e23e41f85e2518bdd19807285abea1f366214539
1,391
py
Python
blobinstall.py
thanm/devel-scripts
f8777a7c282b4b15f004e22ebf5c6b6751b82f87
[ "Apache-2.0" ]
null
null
null
blobinstall.py
thanm/devel-scripts
f8777a7c282b4b15f004e22ebf5c6b6751b82f87
[ "Apache-2.0" ]
null
null
null
blobinstall.py
thanm/devel-scripts
f8777a7c282b4b15f004e22ebf5c6b6751b82f87
[ "Apache-2.0" ]
3
2019-05-18T23:01:33.000Z
2021-09-18T14:17:10.000Z
#!/usr/bin/python3 """Install a 'blob' file from an extract shell archive. This script installs the 3rd party blob contained in a previously downloaded extract-*.sh file. This avoids the need to have to page through and accept the user agreement (which is what you have to do if you execute the archive directly). """ ...
25.759259
74
0.635514
53637bdbc183e3e28778e907cc8fa64b770fa105
3,186
py
Python
tests/vfs/sqlite_blob_file_system.py
Defense-Cyber-Crime-Center/dfvfs
da2ccbc4c989ced5ad651057bd8f5a4b18af6d37
[ "Apache-2.0" ]
2
2016-02-18T12:46:26.000Z
2022-03-13T03:05:05.000Z
tests/vfs/sqlite_blob_file_system.py
Defense-Cyber-Crime-Center/dfvfs
da2ccbc4c989ced5ad651057bd8f5a4b18af6d37
[ "Apache-2.0" ]
null
null
null
tests/vfs/sqlite_blob_file_system.py
Defense-Cyber-Crime-Center/dfvfs
da2ccbc4c989ced5ad651057bd8f5a4b18af6d37
[ "Apache-2.0" ]
5
2016-12-18T08:05:39.000Z
2019-11-19T21:18:00.000Z
#!/usr/bin/python # -*- coding: utf-8 -*- """Tests for the file system implementation using sqlite blob.""" import os import unittest from dfvfs.path import sqlite_blob_path_spec from dfvfs.path import os_path_spec from dfvfs.resolver import context from dfvfs.vfs import sqlite_blob_file_system class SqliteBlobFile...
32.510204
80
0.754237
9f4794f33cef602630e703d2229283ead10a1794
58,351
py
Python
shellnoob.py
hpolloni/shellnoob
31110c2de7e6979d9962ddcf90805f5e2866c927
[ "MIT" ]
null
null
null
shellnoob.py
hpolloni/shellnoob
31110c2de7e6979d9962ddcf90805f5e2866c927
[ "MIT" ]
null
null
null
shellnoob.py
hpolloni/shellnoob
31110c2de7e6979d9962ddcf90805f5e2866c927
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- # Copyright (c) 2013 Yanick Fratantonio # # 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 ...
37.284984
139
0.579562
904a1151f890c56ace6be32c1a918ff2955ea234
15,001
py
Python
pgsmo/objects/table_objects/column.py
DaeunYim/pgtoolsservice
b7e548718d797883027b2caee2d4722810b33c0f
[ "MIT" ]
33
2019-05-27T13:04:35.000Z
2022-03-17T13:33:05.000Z
pgsmo/objects/table_objects/column.py
DaeunYim/pgtoolsservice
b7e548718d797883027b2caee2d4722810b33c0f
[ "MIT" ]
31
2019-06-10T01:55:47.000Z
2022-03-09T07:27:49.000Z
pgsmo/objects/table_objects/column.py
DaeunYim/pgtoolsservice
b7e548718d797883027b2caee2d4722810b33c0f
[ "MIT" ]
25
2019-05-13T18:39:24.000Z
2021-11-16T03:07:33.000Z
# -------------------------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # --------------------------------------------------------------------...
32.122056
127
0.571095
898112bdd8a8c8df86bf80e0a4af1aac3c592ec8
1,652
py
Python
services/nodemanager/tests/test_computenode.py
coolmaksat/arvados
5f571760d4b52426e39ae39d0ce5cb9b7cfb0add
[ "Apache-2.0" ]
1
2017-11-15T13:16:38.000Z
2017-11-15T13:16:38.000Z
services/nodemanager/tests/test_computenode.py
coolmaksat/arvados
5f571760d4b52426e39ae39d0ce5cb9b7cfb0add
[ "Apache-2.0" ]
null
null
null
services/nodemanager/tests/test_computenode.py
coolmaksat/arvados
5f571760d4b52426e39ae39d0ce5cb9b7cfb0add
[ "Apache-2.0" ]
1
2020-09-02T08:37:54.000Z
2020-09-02T08:37:54.000Z
#!/usr/bin/env python # Copyright (C) The Arvados Authors. All rights reserved. # # SPDX-License-Identifier: AGPL-3.0 from __future__ import absolute_import, print_function import time import unittest import arvados.errors as arverror import mock import arvnodeman.computenode as cnode from . import testutil @mock....
35.913043
99
0.719734
531dc76cf5dcad13788b752a5e7c1941eff99727
745
py
Python
services/core-api/app/api/now_applications/models/now_application_review_type.py
bcgov/mds
6c427a66a5edb4196222607291adef8fd6677038
[ "Apache-2.0" ]
25
2018-07-09T19:04:37.000Z
2022-03-15T17:27:10.000Z
services/core-api/app/api/now_applications/models/now_application_review_type.py
areyeslo/mds
e8c38e593e09b78e2a57009c0d003d6c4bfa32e6
[ "Apache-2.0" ]
983
2018-04-25T20:08:07.000Z
2022-03-31T21:45:20.000Z
services/core-api/app/api/now_applications/models/now_application_review_type.py
areyeslo/mds
e8c38e593e09b78e2a57009c0d003d6c4bfa32e6
[ "Apache-2.0" ]
58
2018-05-15T22:35:50.000Z
2021-11-29T19:40:52.000Z
from sqlalchemy.dialects.postgresql import UUID from sqlalchemy.schema import FetchedValue from sqlalchemy.ext.associationproxy import association_proxy from app.api.utils.models_mixins import Base, AuditMixin from app.extensions import db class NOWApplicationReviewType(Base, AuditMixin): __tablename__ = "now_ap...
35.47619
86
0.783893
2ea0511cf75fdfcf256cc5daf7427e13c44fe1cb
3,252
py
Python
watertap3/watertap3/utils/design.py
avdudchenko/WaterTAP3
839fbd4d19ec096ac7629b7109d18ab907b88b8e
[ "BSD-3-Clause" ]
null
null
null
watertap3/watertap3/utils/design.py
avdudchenko/WaterTAP3
839fbd4d19ec096ac7629b7109d18ab907b88b8e
[ "BSD-3-Clause" ]
34
2021-06-25T17:54:12.000Z
2021-06-25T17:54:27.000Z
watertap3/watertap3/utils/design.py
avdudchenko/WaterTAP3
839fbd4d19ec096ac7629b7109d18ab907b88b8e
[ "BSD-3-Clause" ]
4
2021-06-25T18:32:31.000Z
2022-03-24T20:24:18.000Z
from . import module_import from .constituent_removal_water_recovery import create from .mixer_wt3 import Mixer from .source_wt3 import Source __all__ = ['add_unit_process', 'add_water_source', 'add_splitter', 'add_mixer'] def add_unit_process(m=None, unit_process_name=None, unit_pro...
40.65
281
0.690959
67504b8da6b2b1f79aae0e7ff2334dc78ca55f38
1,364
py
Python
electrum_mona/plugins/digitalbitbox/qt.py
zcore-dev/electrum-mona
2beb0c9c7794e8b03d1725bae41ee8b792c57275
[ "MIT" ]
null
null
null
electrum_mona/plugins/digitalbitbox/qt.py
zcore-dev/electrum-mona
2beb0c9c7794e8b03d1725bae41ee8b792c57275
[ "MIT" ]
null
null
null
electrum_mona/plugins/digitalbitbox/qt.py
zcore-dev/electrum-mona
2beb0c9c7794e8b03d1725bae41ee8b792c57275
[ "MIT" ]
null
null
null
from functools import partial from electrum_mona.i18n import _ from electrum_mona.plugin import hook from electrum_mona.wallet import Standard_Wallet from ..hw_wallet.qt import QtHandlerBase, QtPluginBase from ..hw_wallet.plugin import only_hook_if_libraries_available from .digitalbitbox import DigitalBitboxP...
29.652174
92
0.676686
321b8fa22d829152f7a8f9479279d503c3a868ac
13,868
py
Python
pybind/slxos/v16r_1_00b/mpls_state/memory/__init__.py
shivharis/pybind
4e1c6d54b9fd722ccec25546ba2413d79ce337e6
[ "Apache-2.0" ]
null
null
null
pybind/slxos/v16r_1_00b/mpls_state/memory/__init__.py
shivharis/pybind
4e1c6d54b9fd722ccec25546ba2413d79ce337e6
[ "Apache-2.0" ]
null
null
null
pybind/slxos/v16r_1_00b/mpls_state/memory/__init__.py
shivharis/pybind
4e1c6d54b9fd722ccec25546ba2413d79ce337e6
[ "Apache-2.0" ]
1
2021-11-05T22:15:42.000Z
2021-11-05T22:15:42.000Z
from operator import attrgetter import pyangbind.lib.xpathhelper as xpathhelper from pyangbind.lib.yangtypes import RestrictedPrecisionDecimalType, RestrictedClassType, TypedListType from pyangbind.lib.yangtypes import YANGBool, YANGListType, YANGDynClass, ReferenceType from pyangbind.lib.base import PybindBase from d...
66.354067
736
0.732478
79807aee70733c97d1208306d4d0c21fcb0ecf4f
3,499
py
Python
flocker/common/test/test_interface.py
wallnerryan/flocker-profiles
bcd3ced8edf4af86a68070ff6a714c45f9f4913b
[ "Apache-2.0" ]
null
null
null
flocker/common/test/test_interface.py
wallnerryan/flocker-profiles
bcd3ced8edf4af86a68070ff6a714c45f9f4913b
[ "Apache-2.0" ]
null
null
null
flocker/common/test/test_interface.py
wallnerryan/flocker-profiles
bcd3ced8edf4af86a68070ff6a714c45f9f4913b
[ "Apache-2.0" ]
null
null
null
# Copyright ClusterHQ Inc. See LICENSE file for details. """ Tests for ``flocker.common._interface``. """ from twisted.trial.unittest import SynchronousTestCase from eliot.testing import ( assertHasMessage, capture_logging ) from eliot import Field, MessageType from zope.interface import Interface, implementer...
25.918519
77
0.632181
338a961994b666a1bf2ecefb49fb2852baa728d3
875
py
Python
mysite/website/urls.py
aBadHorse/malachifrancis.me
c3114a6ff622e23f41fa040e32665a33efd58aa4
[ "MIT" ]
null
null
null
mysite/website/urls.py
aBadHorse/malachifrancis.me
c3114a6ff622e23f41fa040e32665a33efd58aa4
[ "MIT" ]
null
null
null
mysite/website/urls.py
aBadHorse/malachifrancis.me
c3114a6ff622e23f41fa040e32665a33efd58aa4
[ "MIT" ]
null
null
null
from django.urls import path from django.contrib import admin from django.contrib.auth import views as auth_views from .views import * app_name = 'website' urlpatterns = [ path('', HomeView.as_view()), path('home/', HomeView.as_view(), name='home'), path('about/', AboutView.as_view(), name='about'), pa...
41.666667
78
0.665143
3fcedb58ec18a62ba3b97cc1768e87cb668135bd
26,431
py
Python
Lib/test/test_asyncore.py
gerph/cpython
98813cb03c2371789669c3d8debf8fca2a344de9
[ "CNRI-Python-GPL-Compatible" ]
11,058
2018-05-29T07:40:06.000Z
2022-03-31T11:38:42.000Z
Lib/test/test_asyncore.py
gerph/cpython
98813cb03c2371789669c3d8debf8fca2a344de9
[ "CNRI-Python-GPL-Compatible" ]
2,105
2018-06-01T10:07:16.000Z
2022-03-31T14:56:42.000Z
Lib/test/test_asyncore.py
gerph/cpython
98813cb03c2371789669c3d8debf8fca2a344de9
[ "CNRI-Python-GPL-Compatible" ]
914
2018-07-27T09:36:14.000Z
2022-03-31T19:56:34.000Z
import asyncore import unittest import select import os import socket import sys import time import errno import struct import threading from test import support from io import BytesIO if support.PGO: raise unittest.SkipTest("test is not helpful for PGO") TIMEOUT = 3 HAS_UNIX_SOCKETS = hasattr(socket, 'AF_UNIX'...
31.653892
86
0.603382
0351209b488725764ca66d24df63b7a666858c71
1,515
py
Python
55661085-detect-differences-between-images-opencv/detect_differences_between_images.py
nathancy/stackoverflow
e9e2e2b8fba61e41526638a13ac7ada6de2d7560
[ "MIT" ]
3
2019-09-18T10:45:20.000Z
2021-09-18T08:36:49.000Z
55661085-detect-differences-between-images-opencv/detect_differences_between_images.py
nathancy/stackoverflow
e9e2e2b8fba61e41526638a13ac7ada6de2d7560
[ "MIT" ]
1
2020-03-19T15:49:31.000Z
2020-03-30T14:54:03.000Z
55661085-detect-differences-between-images-opencv/detect_differences_between_images.py
nathancy/stackoverflow
e9e2e2b8fba61e41526638a13ac7ada6de2d7560
[ "MIT" ]
1
2021-04-08T19:30:42.000Z
2021-04-08T19:30:42.000Z
from skimage.measure import compare_ssim import cv2 before = cv2.imread('base.png') after = cv2.imread('base2.png') # Convert images to grayscale before_gray = cv2.cvtColor(before, cv2.COLOR_BGR2GRAY) after_gray = cv2.cvtColor(after, cv2.COLOR_BGR2GRAY) # Compute SSIM between two images (score, diff) = compare_ssim(...
39.868421
86
0.735314
9cdc5160d8d8a8953fab994c184a637d70e2dce2
56
py
Python
helpers/__init__.py
philipperemy/wavenet
a10bb3cdf924df5b77a56c56e70c853c1e614327
[ "MIT" ]
21
2016-11-18T03:06:10.000Z
2020-03-21T14:02:01.000Z
helpers/__init__.py
afcarl/wavenet-philipperemy
a10bb3cdf924df5b77a56c56e70c853c1e614327
[ "MIT" ]
null
null
null
helpers/__init__.py
afcarl/wavenet-philipperemy
a10bb3cdf924df5b77a56c56e70c853c1e614327
[ "MIT" ]
6
2016-11-24T02:44:37.000Z
2021-10-15T11:52:19.000Z
from .file_logger import FileLogger from .utils import *
28
35
0.821429
170fbe028bbbf4cb6a94c4386c78e51a4a96d9bc
4,072
py
Python
python/tc2py.py
dhlee4/Tinkercell_new
c4d1848bbb905f0e1f9e011837268ac80aff8711
[ "BSD-3-Clause" ]
null
null
null
python/tc2py.py
dhlee4/Tinkercell_new
c4d1848bbb905f0e1f9e011837268ac80aff8711
[ "BSD-3-Clause" ]
null
null
null
python/tc2py.py
dhlee4/Tinkercell_new
c4d1848bbb905f0e1f9e011837268ac80aff8711
[ "BSD-3-Clause" ]
null
null
null
from tinkercell import * def toItems(array): n = len(array); A = tc_createItemsArray(n); for i in range(0, n): tc_setItem(A, i, array[i]); return A; def fromItems(array): n = array.length; A = range(0,n); for i in range(0, n): A[i] = tc_getItem(array,i); #tc_deleteIt...
26.966887
129
0.528978
d092b42dd0a672786ee84b594d06e7501750ceb9
25,053
py
Python
python/thunder/rdds/fileio/readers.py
Andrewosh/thunder
500892f80f758313e3788d50d2c281da64561cbf
[ "Apache-2.0" ]
null
null
null
python/thunder/rdds/fileio/readers.py
Andrewosh/thunder
500892f80f758313e3788d50d2c281da64561cbf
[ "Apache-2.0" ]
null
null
null
python/thunder/rdds/fileio/readers.py
Andrewosh/thunder
500892f80f758313e3788d50d2c281da64561cbf
[ "Apache-2.0" ]
null
null
null
"""Classes that abstract reading from various types of filesystems. Currently two types of 'filesystem' are supported: * the local file system, via python's native file() objects * Amazon's S3, using the boto library (only if boto is installed; boto is not a requirement) For each filesystem, two types of reader cla...
40.342995
120
0.636371
ee8649587e8c87e2722ed52066c8977d5da4fca8
185
py
Python
zee-news-crawler/config.py
project-anuvaad/anuvaad-corpus-tools
7624b48bc32eda6cf2efe126e28ad41a9763fe10
[ "MIT" ]
6
2021-03-17T10:25:44.000Z
2022-03-10T11:28:51.000Z
timesofindia-crawler/config.py
project-anuvaad/anuvaad-corpus-tools
7624b48bc32eda6cf2efe126e28ad41a9763fe10
[ "MIT" ]
null
null
null
timesofindia-crawler/config.py
project-anuvaad/anuvaad-corpus-tools
7624b48bc32eda6cf2efe126e28ad41a9763fe10
[ "MIT" ]
7
2020-12-17T07:23:29.000Z
2021-12-01T14:35:28.000Z
CHROME_DRIVER_PATH = "chromedriver" DRIVER_WAIT_TIME = 20 CSV_FILE_ENCODING = "utf-16" ANUVAAD_USERNAME = "stageuser@tarento.com" ANUVAAD_PASSWORD = "Welcome@123" BREAK_PROGRESS = True
26.428571
42
0.805405
50448dcc47588b8765d3e06815f96b4f1d7c6795
27,025
py
Python
sdk/python/pulumi_aws/ec2/volume_attachment.py
chivandikwa/pulumi-aws
19c08bf9dcb90544450ffa4eec7bf6751058fde2
[ "ECL-2.0", "Apache-2.0" ]
1
2021-11-10T16:33:40.000Z
2021-11-10T16:33:40.000Z
sdk/python/pulumi_aws/ec2/volume_attachment.py
chivandikwa/pulumi-aws
19c08bf9dcb90544450ffa4eec7bf6751058fde2
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
sdk/python/pulumi_aws/ec2/volume_attachment.py
chivandikwa/pulumi-aws
19c08bf9dcb90544450ffa4eec7bf6751058fde2
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
# coding=utf-8 # *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** # *** 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...
52.071291
382
0.667863
eb3f17a9569a47fb5726aed97bba34046fe49f8f
14,580
py
Python
ansible/lib/ansible/modules/core/cloud/amazon/ec2_eip.py
kiv-box/redis
966a0c3f0a51282cd173b42a6e249d23f4e89dec
[ "Apache-2.0" ]
null
null
null
ansible/lib/ansible/modules/core/cloud/amazon/ec2_eip.py
kiv-box/redis
966a0c3f0a51282cd173b42a6e249d23f4e89dec
[ "Apache-2.0" ]
null
null
null
ansible/lib/ansible/modules/core/cloud/amazon/ec2_eip.py
kiv-box/redis
966a0c3f0a51282cd173b42a6e249d23f4e89dec
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/python # This file is part of Ansible # # Ansible is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, either version 3 of the License, or # (at your option) any later version. # # Ansible is distributed...
37.48072
130
0.663855
8b033c0a92091980fdf310b06f7da9555123d0bf
591
py
Python
PE052-Permuted multiples/PE052.py
christosg88/ProjectEuler
6fe131b03b0f81b12a219d5c7d6fe17d9a91eeee
[ "MIT" ]
null
null
null
PE052-Permuted multiples/PE052.py
christosg88/ProjectEuler
6fe131b03b0f81b12a219d5c7d6fe17d9a91eeee
[ "MIT" ]
null
null
null
PE052-Permuted multiples/PE052.py
christosg88/ProjectEuler
6fe131b03b0f81b12a219d5c7d6fe17d9a91eeee
[ "MIT" ]
null
null
null
# It can be seen that the number, 125874, and its double, 251748, contain # exactly the same digits, but in a different order. # Find the smallest positive integer, x, such that 2x, 3x, 4x, 5x, and 6x, # contain the same digits. def FreqOfDigits(number): digits = [0 for x in xrange(10)] for digit in list(str(n...
24.625
74
0.585448
26d7221d9fb489b32c0be5b75d5a7e25893c5d77
451
py
Python
benchmark/python/mailpy.py
hywel1994/SARosPerceptionKitti
82c307facb5b39e47c510fbdb132962cebf09d2e
[ "MIT" ]
232
2020-08-26T10:16:10.000Z
2022-03-26T08:39:44.000Z
benchmark/python/mailpy.py
hywel1994/SARosPerceptionKitti
82c307facb5b39e47c510fbdb132962cebf09d2e
[ "MIT" ]
17
2018-10-06T14:40:26.000Z
2022-03-27T07:50:03.000Z
benchmark/python/mailpy.py
hywel1994/SARosPerceptionKitti
82c307facb5b39e47c510fbdb132962cebf09d2e
[ "MIT" ]
74
2018-10-09T19:09:54.000Z
2022-03-27T12:38:14.000Z
class Mail: """ Dummy class to print messages without sending e-mails""" def __init__(self,mailaddress): pass def msg(self,msg): print msg def finalize(self,success,benchmark,sha_key,mailaddress=None): if success: print "Results for %s (benchmark: %s) sucessfully crea...
34.692308
92
0.636364
e8fcf3df5412004ab7a8f50fae05fb94d04f8211
54
py
Python
cms/__init__.py
datakortet/django-cms
81f854cff8b23a51a98eee68528526fa854521ed
[ "BSD-3-Clause" ]
null
null
null
cms/__init__.py
datakortet/django-cms
81f854cff8b23a51a98eee68528526fa854521ed
[ "BSD-3-Clause" ]
null
null
null
cms/__init__.py
datakortet/django-cms
81f854cff8b23a51a98eee68528526fa854521ed
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- __version__ = '2.4.3-support'
18
29
0.574074
406625dcad8f240e602e60c77d67f6a542bce980
20,701
py
Python
src/tests/plugins/test_sendmail.py
NicsTr/pretix
e6d2380d9ed1836cc64a688b2be20d00a8500eab
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
src/tests/plugins/test_sendmail.py
NicsTr/pretix
e6d2380d9ed1836cc64a688b2be20d00a8500eab
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
src/tests/plugins/test_sendmail.py
NicsTr/pretix
e6d2380d9ed1836cc64a688b2be20d00a8500eab
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
import datetime import pytest from django.core import mail as djmail from django.utils.timezone import now from django_scopes import scopes_disabled from pretix.base.models import ( Checkin, Event, Item, Order, OrderPosition, Organizer, Team, User, ) @pytest.fixture def event(): """Returns an event instance...
42.075203
113
0.512391
393c52380f5eefe326dddb110f15804f9549c7ff
5,385
py
Python
argocd_client/models/v1alpha1_sync_operation_resource.py
thepabloaguilar/argocd-client
a6c4ff268a63ee6715f9f837b9225b798aa6bde2
[ "BSD-3-Clause" ]
1
2021-09-29T11:57:07.000Z
2021-09-29T11:57:07.000Z
argocd_client/models/v1alpha1_sync_operation_resource.py
thepabloaguilar/argocd-client
a6c4ff268a63ee6715f9f837b9225b798aa6bde2
[ "BSD-3-Clause" ]
1
2020-09-09T00:28:57.000Z
2020-09-09T00:28:57.000Z
argocd_client/models/v1alpha1_sync_operation_resource.py
thepabloaguilar/argocd-client
a6c4ff268a63ee6715f9f837b9225b798aa6bde2
[ "BSD-3-Clause" ]
2
2020-10-13T18:31:59.000Z
2021-02-15T12:52:33.000Z
# coding: utf-8 """ Consolidate Services Description of all APIs # noqa: E501 The version of the OpenAPI document: version not set Generated by: https://openapi-generator.tech """ import pprint import re # noqa: F401 import six from argocd_client.configuration import Configuration class V1alp...
27.060302
118
0.584401
cc3ba182d105330aa6cc95d9962cfb18b2736f87
263
py
Python
tests/artificial/transf_Fisher/trend_LinearTrend/cycle_5/ar_12/test_artificial_128_Fisher_LinearTrend_5_12_0.py
shaido987/pyaf
b9afd089557bed6b90b246d3712c481ae26a1957
[ "BSD-3-Clause" ]
377
2016-10-13T20:52:44.000Z
2022-03-29T18:04:14.000Z
tests/artificial/transf_Fisher/trend_LinearTrend/cycle_5/ar_12/test_artificial_128_Fisher_LinearTrend_5_12_0.py
ysdede/pyaf
b5541b8249d5a1cfdc01f27fdfd99b6580ed680b
[ "BSD-3-Clause" ]
160
2016-10-13T16:11:53.000Z
2022-03-28T04:21:34.000Z
tests/artificial/transf_Fisher/trend_LinearTrend/cycle_5/ar_12/test_artificial_128_Fisher_LinearTrend_5_12_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 = "LinearTrend", cycle_length = 5, transform = "Fisher", sigma = 0.0, exog_count = 0, ar_order = 12);
37.571429
163
0.730038
daff3f7f30c349ef6741a7bdb435e028930b5dde
3,538
py
Python
setup.py
cmccully/imageutils
3eafeb62cba5c3da44c04f2aaaf88fb4b84a8f5e
[ "BSD-3-Clause" ]
null
null
null
setup.py
cmccully/imageutils
3eafeb62cba5c3da44c04f2aaaf88fb4b84a8f5e
[ "BSD-3-Clause" ]
null
null
null
setup.py
cmccully/imageutils
3eafeb62cba5c3da44c04f2aaaf88fb4b84a8f5e
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python # Licensed under a 3-clause BSD style license - see LICENSE.rst import glob import os import sys import ah_bootstrap from setuptools import setup #A dirty hack to get around some early import/configurations ambiguities if sys.version_info[0] >= 3: import builtins else: import __builtin_...
32.163636
79
0.742793
5aa8d1d4a9c2419efe0b454ea03540951bb6dd5b
213
py
Python
openCV_projects/learn/matplot_imgshower.py
henryz2004/OpenCV_Experiments
b33c4bf65ef302613ec902b680441d469423cdb3
[ "MIT" ]
null
null
null
openCV_projects/learn/matplot_imgshower.py
henryz2004/OpenCV_Experiments
b33c4bf65ef302613ec902b680441d469423cdb3
[ "MIT" ]
null
null
null
openCV_projects/learn/matplot_imgshower.py
henryz2004/OpenCV_Experiments
b33c4bf65ef302613ec902b680441d469423cdb3
[ "MIT" ]
null
null
null
import numpy as np import cv2 from matplotlib import pyplot as plt image = cv2.imread("personsmall.jpg", 1)[..., ::-1] plt.imshow(image, interpolation='bicubic') plt.xticks([]), plt.yticks([]) plt.show()
23.666667
52
0.676056
ad761dfb69de8225bd832a13b91636524268ffdd
2,027
py
Python
chrome/browser/resources/PRESUBMIT.py
junmin-zhu/chromium-rivertrail
eb1a57aca71fe68d96e48af8998dcfbe45171ee1
[ "BSD-3-Clause" ]
7
2015-05-20T22:41:35.000Z
2021-11-18T19:07:59.000Z
chrome/browser/resources/PRESUBMIT.py
quisquous/chromium
b25660e05cddc9d0c3053b3514f07037acc69a10
[ "BSD-3-Clause" ]
1
2015-02-02T06:55:08.000Z
2016-01-20T06:11:59.000Z
chrome/browser/resources/PRESUBMIT.py
jianglong0156/chromium.src
d496dfeebb0f282468827654c2b3769b3378c087
[ "BSD-3-Clause" ]
6
2016-11-14T10:13:35.000Z
2021-01-23T15:29:53.000Z
# Copyright (c) 2012 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. """Presubmit script for Chromium WebUI resources. See http://dev.chromium.org/developers/how-tos/depottools/presubmit-scripts for more details about the...
34.355932
79
0.71337
b67d220f7d79c9d6c4ca405b4c335d96ac2be3c9
6,228
py
Python
iWear/resources/names.py
AmitAharoni/iWear2021
8e792d8dc1fed733fa1f77b7f4720393970a83d5
[ "MIT" ]
7
2021-03-08T18:15:44.000Z
2021-05-24T21:04:24.000Z
users/recources/names.py
AmitAharoni/roo.me
eb93ed99ab8635543a5e9489893e6718344ddfd9
[ "MIT" ]
232
2021-03-08T15:35:56.000Z
2021-06-06T21:33:10.000Z
users/recources/names.py
AmitAharoni/roo.me
eb93ed99ab8635543a5e9489893e6718344ddfd9
[ "MIT" ]
7
2021-03-08T13:11:46.000Z
2021-03-22T06:58:39.000Z
FIRST_NAME_LIST = [ "Aaron", "Abbey", "Abbie", "Jen", "Jena", "Jenae", "Jeniffer", "Jenine", "Jenise", "Jenna", "Jennefer", "Jennell", "Jennette", "Jenni", "Jennie", "Jennifer", "Jenniffer", "Jennine", "Jenny", "Jerald", "Jeraldine", "Jeramy", "Jere", "Jeremiah", "Jeremy", "Jeri", "Jerica", "Jerilyn", "...
84.162162
102
0.579801
068ecd1b0328defd3e60695fb3f156b279bc234f
2,473
py
Python
blstm_att/utils_for_clinic.py
JoinAJR/blstm_att
4c4b598da900c7ee3ac5aa94a4017df1ffe756b7
[ "Apache-2.0" ]
null
null
null
blstm_att/utils_for_clinic.py
JoinAJR/blstm_att
4c4b598da900c7ee3ac5aa94a4017df1ffe756b7
[ "Apache-2.0" ]
null
null
null
blstm_att/utils_for_clinic.py
JoinAJR/blstm_att
4c4b598da900c7ee3ac5aa94a4017df1ffe756b7
[ "Apache-2.0" ]
null
null
null
import numpy as np class2label_2 = {'1': 0, '2': 1, '3': 2, '4': 3,'5': 4,'6':5} label2class_2 = {'0': 1, '1': 2, '2': 3, '3': 4,'4': 5,'5': 6} class2label = {'before': 0,'after': 1,'simutaneous': 2,'includes': 3,'is_included': 4,'vague': 5} label2class = ...
47.557692
119
0.544278
a2f82a6e41232c4c3f9cfb6ecb55298ec0da225b
3,207
py
Python
myCatkin/src/joystick_drivers/wiimote/nodes/feedbackTester.py
sbow/scratch
8ac5cd772c8f6c3def6d25ad0402c3f973af2fae
[ "MIT" ]
3
2021-01-10T10:52:14.000Z
2021-12-31T10:19:25.000Z
src/joystick_drivers/wiimote/nodes/feedbackTester.py
EveVengerov/Gesture-Controlling-Drone
8fe38dbfdc496472e13e76bcdb55b471f51b42ea
[ "MIT" ]
null
null
null
src/joystick_drivers/wiimote/nodes/feedbackTester.py
EveVengerov/Gesture-Controlling-Drone
8fe38dbfdc496472e13e76bcdb55b471f51b42ea
[ "MIT" ]
1
2021-02-04T04:59:32.000Z
2021-02-04T04:59:32.000Z
#!/usr/bin/env python import roslib import rospy from sensor_msgs.msg import JoyFeedbackArray from sensor_msgs.msg import JoyFeedback roslib.load_manifest('wiimote') INTER_PATTERN_SLEEP_DURATION = 0.2 def talker(): pub = rospy.Publisher('/joy/set_feedback', JoyFeedbackArray, queue_size=1) rospy.init_node('...
27.177966
91
0.549735
ec363e03f2908e9a72d76e53000773a56b488809
2,708
py
Python
machine-learning-ex6/ex6/ex6 in python.py
Louay-Ben-nessir/Assignments-in-octave-and-python
0e01f19a3f712dc1f293327eaf121d518cadcd29
[ "MIT" ]
1
2021-10-01T20:59:44.000Z
2021-10-01T20:59:44.000Z
machine-learning-ex6/ex6/ex6 in python.py
Louay-Ben-nessir/Assignments-in-octave-and-python
0e01f19a3f712dc1f293327eaf121d518cadcd29
[ "MIT" ]
null
null
null
machine-learning-ex6/ex6/ex6 in python.py
Louay-Ben-nessir/Assignments-in-octave-and-python
0e01f19a3f712dc1f293327eaf121d518cadcd29
[ "MIT" ]
null
null
null
import numpy as np import scipy.io import sklearn import matplotlib.pyplot as plt def plot(X,y,model=False,clear=False): plt.close()#clear any other plot type_0=np.matrix( [(X[i,0],X[i,1]) for i in range(y.shape[0]) if not y[i]] ) type_1=np.matrix( [(X[i,0],X[i,1]) for i in range(y.shape[0]) if y[i]] ) #c...
35.631579
119
0.630355
a903863386d75c3c92f3cfed94940c8833979241
1,398
py
Python
monk/system_unit_tests/gluon/test_loss_crossentropy.py
Shreyashwaghe/monk_v1
4ee4d9483e8ffac9b73a41f3c378e5abf5fc799b
[ "Apache-2.0" ]
7
2020-07-26T08:37:29.000Z
2020-10-30T10:23:11.000Z
monk/system_unit_tests/gluon/test_loss_crossentropy.py
mursalfk/monk_v1
62f34a52f242772186ffff7e56764e958fbcd920
[ "Apache-2.0" ]
9
2020-01-28T21:40:39.000Z
2022-02-10T01:24:06.000Z
monk/system_unit_tests/gluon/test_loss_crossentropy.py
mursalfk/monk_v1
62f34a52f242772186ffff7e56764e958fbcd920
[ "Apache-2.0" ]
1
2020-10-07T12:57:44.000Z
2020-10-07T12:57:44.000Z
import os import sys sys.path.append("../../../monk/"); import psutil from gluon_prototype import prototype from compare_prototype import compare from common import print_start from common import print_status import mxnet as mx import numpy as np from gluon.losses.return_loss import load_loss def test_loss_crossent...
27.411765
69
0.61731
288fb5d9d5bddef99103e05cdc6c80eb52146ab2
6,998
py
Python
pydocumentdb/execution_context/execution_dispatcher.py
afiram/azure-documentdb-python-v2.2.1
e6af4adac47b2dcd9774f20659a61d23c0a09971
[ "MIT" ]
1
2017-11-03T21:11:48.000Z
2017-11-03T21:11:48.000Z
pydocumentdb/execution_context/execution_dispatcher.py
afiram/azure-documentdb-python-v2.2.1
e6af4adac47b2dcd9774f20659a61d23c0a09971
[ "MIT" ]
null
null
null
pydocumentdb/execution_context/execution_dispatcher.py
afiram/azure-documentdb-python-v2.2.1
e6af4adac47b2dcd9774f20659a61d23c0a09971
[ "MIT" ]
3
2017-11-06T16:13:48.000Z
2020-03-30T01:09:16.000Z
#The MIT License (MIT) #Copyright (c) 2014 Microsoft Corporation #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, modi...
41.164706
187
0.691483
4f7fd5107cc0602f791e26e1adac74edbb4d0d31
973
py
Python
pysocialforce/utils/logging.py
Femme-js/PySocialForceJ
274914072f08edb1169c5f63c2d8399ad4304833
[ "MIT" ]
42
2020-07-07T17:23:15.000Z
2022-03-30T00:07:17.000Z
pysocialforce/utils/logging.py
Femme-js/PySocialForceJ
274914072f08edb1169c5f63c2d8399ad4304833
[ "MIT" ]
3
2020-10-25T22:01:06.000Z
2020-12-01T13:56:34.000Z
pysocialforce/utils/logging.py
Femme-js/PySocialForceJ
274914072f08edb1169c5f63c2d8399ad4304833
[ "MIT" ]
21
2020-06-29T13:25:55.000Z
2022-03-11T13:41:35.000Z
"""General utilities""" import logging from functools import wraps from time import time # Create a custom logger logger = logging.getLogger("root") logger.setLevel(logging.DEBUG) FORMAT = "%(levelname)s:[%(filename)s:%(lineno)s %(funcName)20s() ] %(message)s" # Create handlers c_handler = logging.StreamHandler() f_h...
25.605263
83
0.704008
372c1c343be12e685d93604110093f88067364c7
6,641
py
Python
pretix_juvare_notify/tasks.py
rixx/pretix-juvare-notify
97325a7821ea98134e5b0ce41076b4ceb8d0eb24
[ "Apache-2.0" ]
null
null
null
pretix_juvare_notify/tasks.py
rixx/pretix-juvare-notify
97325a7821ea98134e5b0ce41076b4ceb8d0eb24
[ "Apache-2.0" ]
null
null
null
pretix_juvare_notify/tasks.py
rixx/pretix-juvare-notify
97325a7821ea98134e5b0ce41076b4ceb8d0eb24
[ "Apache-2.0" ]
null
null
null
import json import logging import requests from django.db.models import Exists, OuterRef from django_scopes import scope, scopes_disabled from i18nfield.strings import LazyI18nString from pretix.base.email import get_email_context from pretix.base.i18n import language from pretix.base.models import ( Event, Inv...
35.137566
157
0.538774
2cccb438c2156ff0bce189a4f769e9f1685bbc9d
1,821
py
Python
model/Data.py
Apokefal/python_training
3efb1d3c0d6ceb66ee48fa61d6dce0f2c7cdbc3e
[ "Apache-2.0" ]
null
null
null
model/Data.py
Apokefal/python_training
3efb1d3c0d6ceb66ee48fa61d6dce0f2c7cdbc3e
[ "Apache-2.0" ]
null
null
null
model/Data.py
Apokefal/python_training
3efb1d3c0d6ceb66ee48fa61d6dce0f2c7cdbc3e
[ "Apache-2.0" ]
null
null
null
### from sys import maxsize class Group: def __init__(self, name=None, header=None, footer=None, id=None): self.name=name self.header=header self.footer=footer self.id = id def __repr__(self): return "%s:%s;%s;%s" % (self.id, self.name, self.header, self.footer) d...
28.904762
133
0.621636
5f49ef00ee9b23c8787832eee16597beb49b0bbb
1,769
py
Python
aliyun-python-sdk-dcdn/aliyunsdkdcdn/request/v20180115/DescribeDcdnCertificateDetailRequest.py
liumihust/aliyun-openapi-python-sdk
c7b5dd4befae4b9c59181654289f9272531207ef
[ "Apache-2.0" ]
null
null
null
aliyun-python-sdk-dcdn/aliyunsdkdcdn/request/v20180115/DescribeDcdnCertificateDetailRequest.py
liumihust/aliyun-openapi-python-sdk
c7b5dd4befae4b9c59181654289f9272531207ef
[ "Apache-2.0" ]
null
null
null
aliyun-python-sdk-dcdn/aliyunsdkdcdn/request/v20180115/DescribeDcdnCertificateDetailRequest.py
liumihust/aliyun-openapi-python-sdk
c7b5dd4befae4b9c59181654289f9272531207ef
[ "Apache-2.0" ]
null
null
null
# Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. The ASF licenses this file # to you under the Apache License, Version 2.0 (the # "License"); you may not u...
36.102041
82
0.770492
8c9a16900a024b6bf0b6864b3a8210c1d16e6416
6,346
py
Python
cloudify_gcp/iam/policy_binding.py
cloudify-cosmo/cloudify-gcp-plugin
c70faee0555070f7fc67f0001395eaafb681b23c
[ "Apache-2.0" ]
4
2016-10-24T17:42:07.000Z
2020-05-31T00:34:07.000Z
cloudify_gcp/iam/policy_binding.py
cloudify-cosmo/cloudify-gcp-plugin
c70faee0555070f7fc67f0001395eaafb681b23c
[ "Apache-2.0" ]
35
2015-04-30T20:14:01.000Z
2022-02-03T21:35:54.000Z
cloudify_gcp/iam/policy_binding.py
cloudify-cosmo/cloudify-gcp-plugin
c70faee0555070f7fc67f0001395eaafb681b23c
[ "Apache-2.0" ]
13
2015-04-17T16:42:03.000Z
2021-06-24T04:12:14.000Z
# ####### # Copyright (c) 2018-2020 Cloudify Platform Ltd. 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...
34.868132
78
0.64324
b07dacd94d1a0f15c5d8124239967a3cc59e1e1b
389
py
Python
hacky_automation.py
nalkpas/MS-E-250B-Project
5d8dd590c47858c7bba3ce0682024ac607251271
[ "MIT" ]
null
null
null
hacky_automation.py
nalkpas/MS-E-250B-Project
5d8dd590c47858c7bba3ce0682024ac607251271
[ "MIT" ]
null
null
null
hacky_automation.py
nalkpas/MS-E-250B-Project
5d8dd590c47858c7bba3ce0682024ac607251271
[ "MIT" ]
null
null
null
import os map_names = ['CityGrid_JeffersonCounty_CSV', 'JeffCo_firebreaks'] scenarios = {'CityGrid_JeffersonCounty_CSV': ['InitialValues', 'DefensibleSpace', 'IWUIC', 'Buildings', 'Vegetation'], 'JeffCo_firebreaks': ['InitialValues']} for map_name in map_names: for scenario in scenarios[name]: os.system('pytho...
35.363636
118
0.737789
fa37faf72bd201f3af5011a022c7c02231e43339
1,954
py
Python
blackpearl/examples/scrollingtext.py
offmessage/blackpearl
ffbba460fe7fc7fe4d7e3466f5ff13ea0c081fc5
[ "MIT" ]
null
null
null
blackpearl/examples/scrollingtext.py
offmessage/blackpearl
ffbba460fe7fc7fe4d7e3466f5ff13ea0c081fc5
[ "MIT" ]
null
null
null
blackpearl/examples/scrollingtext.py
offmessage/blackpearl
ffbba460fe7fc7fe4d7e3466f5ff13ea0c081fc5
[ "MIT" ]
null
null
null
from blackpearl.modules import Module from blackpearl.modules import Touch from blackpearl.projects import Project from blackpearl.things import Dial from blackpearl.things import Matrix from blackpearl.things import Rainbow from blackpearl.things import Touch class Scroller(Touch): listening_for = ['touch',] ...
27.521127
59
0.580348
df2c41991e69feb16b4181a6b50d86bd0319923d
2,609
py
Python
built-in/PyTorch/Official/cv/image_object_detection/YoloV3_ID1790_for_PyTorch/configs/paa/paa_r50_fpn_1x_coco.py
Ascend/modelzoo
f018cfed33dbb1cc2110b9ea2e233333f71cc509
[ "Apache-2.0" ]
12
2020-12-13T08:34:24.000Z
2022-03-20T15:17:17.000Z
built-in/PyTorch/Official/cv/image_object_detection/YoloV3_ID1790_for_PyTorch/configs/paa/paa_r50_fpn_1x_coco.py
Ascend/modelzoo
f018cfed33dbb1cc2110b9ea2e233333f71cc509
[ "Apache-2.0" ]
1
2022-01-20T03:11:05.000Z
2022-01-20T06:53:39.000Z
built-in/PyTorch/Official/cv/image_object_detection/YoloV3_ID1790_for_PyTorch/configs/paa/paa_r50_fpn_1x_coco.py
Ascend/modelzoo
f018cfed33dbb1cc2110b9ea2e233333f71cc509
[ "Apache-2.0" ]
2
2021-07-10T12:40:46.000Z
2021-12-17T07:55:15.000Z
# Copyright 2021 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 agree...
30.694118
74
0.609429
8fd3e428b84ef022caa836d52dd65ebb77b4d9d4
20,235
py
Python
soepy/test/test_unit.py
OpenSourceEconomics/soepy
4ff40292799e248e356d614c1a7141bd35a912c9
[ "MIT" ]
12
2018-12-17T14:46:55.000Z
2022-03-28T21:15:33.000Z
soepy/test/test_unit.py
OpenSourceEconomics/soepy
4ff40292799e248e356d614c1a7141bd35a912c9
[ "MIT" ]
129
2019-02-18T08:49:39.000Z
2022-03-25T16:52:08.000Z
soepy/test/test_unit.py
OpenSourceEconomics/soepy
4ff40292799e248e356d614c1a7141bd35a912c9
[ "MIT" ]
6
2019-02-19T15:23:40.000Z
2022-03-28T21:16:00.000Z
import collections import numpy as np import pandas as pd import random from random import randrange, randint from soepy.pre_processing.model_processing import read_model_spec_init from soepy.pre_processing.model_processing import read_model_params_init from soepy.exogenous_processes.education import gen_prob_educ_le...
31.966825
99
0.593131
90b2b4fcc3b62528ac08d88f0794659301e1770c
3,328
py
Python
torch_sparse/index_select.py
mariogeiger/pytorch_sparse
57852a6664ce58324dbeab0db13837ffb9005930
[ "MIT" ]
623
2018-07-29T10:45:05.000Z
2022-03-29T04:35:08.000Z
torch_sparse/index_select.py
mariogeiger/pytorch_sparse
57852a6664ce58324dbeab0db13837ffb9005930
[ "MIT" ]
201
2018-08-15T14:11:03.000Z
2022-03-31T14:14:01.000Z
torch_sparse/index_select.py
mariogeiger/pytorch_sparse
57852a6664ce58324dbeab0db13837ffb9005930
[ "MIT" ]
101
2018-10-14T04:08:11.000Z
2022-03-23T21:33:37.000Z
from typing import Optional import torch from torch_scatter import gather_csr from torch_sparse.storage import SparseStorage, get_layout from torch_sparse.tensor import SparseTensor def index_select(src: SparseTensor, dim: int, idx: torch.Tensor) -> SparseTensor: dim = src.dim() + dim if dim < 0...
32.627451
79
0.582332
f825c1f14b6f2ccd5c4f5751f712af5ace6d4d0d
145
py
Python
docs/ui/examples/example7dd39b928b483d0ec531f34910149fc4.py
okajun35/Flexx_translate_ja
d6aaf2d981623e69cd70d20761b6509ed5af304f
[ "MIT" ]
1
2022-03-09T03:35:56.000Z
2022-03-09T03:35:56.000Z
docs/ui/examples/example7dd39b928b483d0ec531f34910149fc4.py
okajun35/Flexx_translate_ja
d6aaf2d981623e69cd70d20761b6509ed5af304f
[ "MIT" ]
null
null
null
docs/ui/examples/example7dd39b928b483d0ec531f34910149fc4.py
okajun35/Flexx_translate_ja
d6aaf2d981623e69cd70d20761b6509ed5af304f
[ "MIT" ]
null
null
null
from flexx import app, ui # A red widget class Example(ui.Widget): CSS = ".flx-Example {background:#f00; min-width: 20px; min-height:20px}"
24.166667
76
0.696552
8db21d85e455f281652c3a01a12e96a4a1892505
26,337
py
Python
archive_scripts/x_nba_shot_charts.py
Connor-R/nba_shot_charts
7331ea4acbf8f38073681efb97576b36cca519d7
[ "MIT" ]
12
2017-04-07T17:15:57.000Z
2021-02-03T22:57:00.000Z
archive_scripts/x_nba_shot_charts.py
Connor-R/nba_shot_charts
7331ea4acbf8f38073681efb97576b36cca519d7
[ "MIT" ]
null
null
null
archive_scripts/x_nba_shot_charts.py
Connor-R/nba_shot_charts
7331ea4acbf8f38073681efb97576b36cca519d7
[ "MIT" ]
null
null
null
import requests import urllib import os import shutil import csv import sys import glob import math import pandas as pd import numpy as np import argparse import matplotlib as mpb import matplotlib.pyplot as plt from matplotlib import offsetbox as osb from matplotlib.patches import RegularPolygon from datetime import ...
47.625678
480
0.650492
dc0ae27970486fbfff44cbccb7c753af0fd1f9a6
35,565
py
Python
fastfiz/fz.py
sharmapulkit/roNNie-Pool
84f511236bc01d80983fcbabba896f065a658028
[ "Apache-2.0" ]
2
2017-10-03T19:41:46.000Z
2020-03-01T17:39:04.000Z
fastfiz/fz.py
sharmapulkit/roNNie-pool
84f511236bc01d80983fcbabba896f065a658028
[ "Apache-2.0" ]
null
null
null
fastfiz/fz.py
sharmapulkit/roNNie-pool
84f511236bc01d80983fcbabba896f065a658028
[ "Apache-2.0" ]
2
2018-08-07T05:02:09.000Z
2019-07-31T20:40:25.000Z
# This file was automatically generated by SWIG (http://www.swig.org). # Version 3.0.12 # # Do not make changes to this file unless you know what you are doing--modify # the SWIG interface file instead. from sys import version_info as _swig_python_version_info if _swig_python_version_info >= (2, 7, 0): def swig_im...
32.127371
96
0.707325
4deadb760be3d94df89ca26714f9150629f72a23
21
py
Python
example_snippets/multimenus_snippets/Snippets/NumPy/Vectorized (universal) functions/Logarithms and exponentials/logaddexp2 Logarithm of the sum of exponentiations of the inputs in base-2.py
kuanpern/jupyterlab-snippets-multimenus
477f51cfdbad7409eab45abe53cf774cd70f380c
[ "BSD-3-Clause" ]
null
null
null
example_snippets/multimenus_snippets/Snippets/NumPy/Vectorized (universal) functions/Logarithms and exponentials/logaddexp2 Logarithm of the sum of exponentiations of the inputs in base-2.py
kuanpern/jupyterlab-snippets-multimenus
477f51cfdbad7409eab45abe53cf774cd70f380c
[ "BSD-3-Clause" ]
null
null
null
example_snippets/multimenus_snippets/Snippets/NumPy/Vectorized (universal) functions/Logarithms and exponentials/logaddexp2 Logarithm of the sum of exponentiations of the inputs in base-2.py
kuanpern/jupyterlab-snippets-multimenus
477f51cfdbad7409eab45abe53cf774cd70f380c
[ "BSD-3-Clause" ]
1
2021-02-04T04:51:48.000Z
2021-02-04T04:51:48.000Z
np.logaddexp2(x1, x2)
21
21
0.761905
6f15433dd9e6076ad6befd734780764bd55c10f2
7,540
py
Python
animation/creation.py
kiranajij/manim
3f95435b486d874b7b86476dc6293618ed08dab2
[ "MIT" ]
null
null
null
animation/creation.py
kiranajij/manim
3f95435b486d874b7b86476dc6293618ed08dab2
[ "MIT" ]
null
null
null
animation/creation.py
kiranajij/manim
3f95435b486d874b7b86476dc6293618ed08dab2
[ "MIT" ]
null
null
null
from __future__ import absolute_import import numpy as np from constants import * from animation.animation import Animation from mobject.svg.tex_mobject import TextMobject from mobject.types.vectorized_mobject import VMobject from mobject.types.vectorized_mobject import VectorizedPoint from animation.transform impor...
28.888889
81
0.643236
f37a1a60a0ccfb59acce6f2c9645402234825282
3,481
py
Python
inventory/inventory/report/pending_order_teralokasi/pending_order_teralokasi.py
riconova92/inventory
7cc4f49bda31f802af36ee4ea6eb43092b5094a7
[ "MIT" ]
null
null
null
inventory/inventory/report/pending_order_teralokasi/pending_order_teralokasi.py
riconova92/inventory
7cc4f49bda31f802af36ee4ea6eb43092b5094a7
[ "MIT" ]
null
null
null
inventory/inventory/report/pending_order_teralokasi/pending_order_teralokasi.py
riconova92/inventory
7cc4f49bda31f802af36ee4ea6eb43092b5094a7
[ "MIT" ]
null
null
null
# Copyright (c) 2013, Myme and contributors # For license information, please see license.txt from __future__ import unicode_literals import frappe def execute(filters=None): columns, data = [], [] columns = [] select_field = "" group_clause = "" order_clause = "" left_join = "" if filters.get("group_by") ==...
46.413333
168
0.691468
0bac2af616e58f8a8bf30007437aa5a408bee54a
11,266
py
Python
src/pybel/struct/pipeline/pipeline.py
tehw0lf/pybel
6f67f8cce15052cc3c42ef87374e3b9ee45e6519
[ "Apache-2.0" ]
null
null
null
src/pybel/struct/pipeline/pipeline.py
tehw0lf/pybel
6f67f8cce15052cc3c42ef87374e3b9ee45e6519
[ "Apache-2.0" ]
null
null
null
src/pybel/struct/pipeline/pipeline.py
tehw0lf/pybel
6f67f8cce15052cc3c42ef87374e3b9ee45e6519
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- """This module holds the Pipeline class.""" import json import logging import types from functools import wraps from .decorators import get_transformation, in_place_map, mapped, universe_map from .exc import MetaValueError, MissingPipelineFunctionError, MissingUniverseError from ..operations ...
32.655072
117
0.616723
6b8d3aa9d06b28e21bcc5efb962abeec7309e08c
877
py
Python
capricorn/__init__.py
WenchenLi/nlp_vocab
9fb557b2e70ab378395e9f9548a7a61d24fd1e5d
[ "MIT" ]
5
2018-12-07T12:35:07.000Z
2020-07-04T04:33:13.000Z
capricorn/__init__.py
WenchenLi/nlp_vocab
9fb557b2e70ab378395e9f9548a7a61d24fd1e5d
[ "MIT" ]
null
null
null
capricorn/__init__.py
WenchenLi/nlp_vocab
9fb557b2e70ab378395e9f9548a7a61d24fd1e5d
[ "MIT" ]
1
2020-09-06T12:05:50.000Z
2020-09-06T12:05:50.000Z
# Copyright 2017 The Wenchen Li. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law ...
36.541667
80
0.712657
8d228c0c6f41b305fd04d21d56e9b97f3c152ab6
59,281
py
Python
controllers/inv.py
nursix/eden
61d5a947da20bbf4d6458c9be88ed37b1330518c
[ "MIT" ]
4
2015-04-08T19:51:44.000Z
2016-08-06T07:05:35.000Z
controllers/inv.py
nursix/eden
61d5a947da20bbf4d6458c9be88ed37b1330518c
[ "MIT" ]
27
2015-02-18T23:38:23.000Z
2020-04-27T13:53:23.000Z
controllers/inv.py
nursix/eden
61d5a947da20bbf4d6458c9be88ed37b1330518c
[ "MIT" ]
5
2015-09-10T05:31:14.000Z
2017-06-07T11:06:27.000Z
# -*- coding: utf-8 -*- """ Inventory Management A module to record Inventories of Items at Sites, including Warehouses, Offices, Shelters & Hospitals """ if not settings.has_module(c): raise HTTP(404, body="Module disabled: %s" % c) # ----------------------------------------------------------------...
40.108931
132
0.434439
cd853c12e1f360ffb59f5bd5476fe60ace9d24d7
1,588
py
Python
src/modules/connection.py
YHCClin/simple-effective-text-matching-pytorch
f6f2b15ad0a5270a69b3c961d99dd8645771bc99
[ "Apache-2.0" ]
4
2021-08-30T03:08:26.000Z
2022-01-09T08:19:48.000Z
src/modules/connection.py
YHCClin/simple-effective-text-matching-pytorch
f6f2b15ad0a5270a69b3c961d99dd8645771bc99
[ "Apache-2.0" ]
1
2021-10-05T12:45:38.000Z
2021-10-05T12:45:38.000Z
src/modules/connection.py
YHCClin/simple-effective-text-matching-pytorch
f6f2b15ad0a5270a69b3c961d99dd8645771bc99
[ "Apache-2.0" ]
null
null
null
# coding=utf-8 # Copyright (C) 2019 Alibaba Group Holding 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 app...
29.962264
97
0.673174
e9b20476e70ff151687cddc5ad4e87c3dfe5a65d
257
py
Python
src/market/roles.py
wiktorcie/docker-django-example
87c5cc2ac45f66564b30538d43c5a8eadba42011
[ "MIT" ]
null
null
null
src/market/roles.py
wiktorcie/docker-django-example
87c5cc2ac45f66564b30538d43c5a8eadba42011
[ "MIT" ]
null
null
null
src/market/roles.py
wiktorcie/docker-django-example
87c5cc2ac45f66564b30538d43c5a8eadba42011
[ "MIT" ]
null
null
null
from rolepermissions.roles import AbstractUserRole class Vendor(AbstractUserRole): available_permissions = { 'create_listing': True, } class Moderator(AbstractUserRole): available_permissions = { 'do_something': True, }
17.133333
50
0.696498
bacccc8fa8e270a1330a87aecc20885a658d12c9
874
py
Python
domintell/example/scan.py
yaccri/python-domintell
e8a17c9f25ef071a58dd0656746bde9105ba5f01
[ "MIT" ]
1
2021-12-03T04:29:21.000Z
2021-12-03T04:29:21.000Z
domintell/example/scan.py
yaccri/python-domintell
e8a17c9f25ef071a58dd0656746bde9105ba5f01
[ "MIT" ]
3
2020-09-20T11:50:28.000Z
2021-08-13T10:16:14.000Z
domintell/example/scan.py
yaccri/python-domintell
e8a17c9f25ef071a58dd0656746bde9105ba5f01
[ "MIT" ]
6
2020-10-05T20:23:06.000Z
2021-09-14T07:18:31.000Z
#!/usr/bin/python3 """ Example code to scan Domintell and return list of installed modules. """ import time import logging import sys import domintell import os, sys from config import host def _on_message(message): print('received message', message) print(message) logging.basicConfig(stream=sys.stdout, leve...
19
69
0.732265
374399b0a4c7b1fec3b718630c621fc550940bf0
14,380
py
Python
data_loader/data_loader.py
Edelbert/tf2-mobile-2d-single-pose-estimation
a6961b2c12e8edfd9b7c4e87d0925c046ff7b673
[ "Apache-2.0" ]
null
null
null
data_loader/data_loader.py
Edelbert/tf2-mobile-2d-single-pose-estimation
a6961b2c12e8edfd9b7c4e87d0925c046ff7b673
[ "Apache-2.0" ]
null
null
null
data_loader/data_loader.py
Edelbert/tf2-mobile-2d-single-pose-estimation
a6961b2c12e8edfd9b7c4e87d0925c046ff7b673
[ "Apache-2.0" ]
null
null
null
# Copyright 2018 Jaewook Kang (jwkang10@gmail.com) 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 ...
37.742782
146
0.576634
84ad08d7633ea440ffc3f4f891a35e81f772ab1e
4,256
py
Python
ck_airport.py
LGinC/checkinpanel
01692c6fbad0bf7c16cc180a836f3c2a69253772
[ "MIT" ]
752
2021-08-29T11:24:39.000Z
2022-03-31T09:22:56.000Z
ck_airport.py
LGinC/checkinpanel
01692c6fbad0bf7c16cc180a836f3c2a69253772
[ "MIT" ]
99
2021-08-30T02:15:32.000Z
2022-03-30T08:51:06.000Z
ck_airport.py
LGinC/checkinpanel
01692c6fbad0bf7c16cc180a836f3c2a69253772
[ "MIT" ]
280
2021-08-29T08:27:44.000Z
2022-03-30T09:39:06.000Z
# -*- coding: utf-8 -*- """ :author @Icrons cron: 20 10 * * * new Env('机场签到'); """ import json import re import traceback import requests import urllib3 from notify_mtr import send from utils import get_data urllib3.disable_warnings() class SspanelQd(object): def __init__(self, check_items): self.chec...
31.294118
138
0.507754
f598a2d4811c4993486203d456dd53dd436ea223
1,588
py
Python
samples/generated_samples/aiplatform_generated_aiplatform_v1_metadata_service_get_artifact_sync.py
lclc19/python-aiplatform
d8da2e365277441abadb04328943f23345d72b0e
[ "Apache-2.0" ]
180
2020-09-23T17:21:15.000Z
2022-03-30T17:25:47.000Z
samples/generated_samples/aiplatform_generated_aiplatform_v1_metadata_service_get_artifact_sync.py
lclc19/python-aiplatform
d8da2e365277441abadb04328943f23345d72b0e
[ "Apache-2.0" ]
601
2020-09-23T16:23:44.000Z
2022-03-31T19:08:23.000Z
samples/generated_samples/aiplatform_generated_aiplatform_v1_metadata_service_get_artifact_sync.py
lclc19/python-aiplatform
d8da2e365277441abadb04328943f23345d72b0e
[ "Apache-2.0" ]
109
2020-09-23T16:22:04.000Z
2022-03-28T21:18:29.000Z
# -*- coding: utf-8 -*- # Copyright 2020 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or...
33.083333
108
0.762594
c40dc5c005d9112efaeb35c4cadf0673b809be6b
6,485
py
Python
var/spack/repos/builtin/packages/py-azureml-dataprep-rslex/package.py
vchuravy/spack
f74670e210dc9b1996be2ca2932fc465fb8ebe9e
[ "ECL-2.0", "Apache-2.0", "MIT-0", "MIT" ]
null
null
null
var/spack/repos/builtin/packages/py-azureml-dataprep-rslex/package.py
vchuravy/spack
f74670e210dc9b1996be2ca2932fc465fb8ebe9e
[ "ECL-2.0", "Apache-2.0", "MIT-0", "MIT" ]
12
2021-05-12T05:54:41.000Z
2022-03-30T11:09:24.000Z
var/spack/repos/builtin/packages/py-azureml-dataprep-rslex/package.py
vchuravy/spack
f74670e210dc9b1996be2ca2932fc465fb8ebe9e
[ "ECL-2.0", "Apache-2.0", "MIT-0", "MIT" ]
null
null
null
# Copyright 2013-2021 Lawrence Livermore National Security, LLC and other # Spack Project Developers. See the top-level COPYRIGHT file for details. # # SPDX-License-Identifier: (Apache-2.0 OR MIT) import sys from spack import * class PyAzuremlDataprepRslex(Package): """Azure Machine Learning Data Prep RsLex is ...
87.635135
140
0.74017
cd764522f096603697fc91268d5c7d3870d760f2
782
py
Python
YoloV1Train.py
cersar/BasicNetwork
119ebb745e67a9b74b72cc4635fea360db0ed43f
[ "MIT" ]
4
2019-01-02T07:54:51.000Z
2019-01-04T06:11:15.000Z
YoloV1Train.py
cersar/BasicNetwork
119ebb745e67a9b74b72cc4635fea360db0ed43f
[ "MIT" ]
null
null
null
YoloV1Train.py
cersar/BasicNetwork
119ebb745e67a9b74b72cc4635fea360db0ed43f
[ "MIT" ]
null
null
null
from network.YoloV1 import YoloV1 from model.train import fit from util.data_util import load_data,preprocess_data import tensorflow as tf voc_labels = ["aeroplane", "bicycle", "bird", "boat", "bottle", "bus", "car", "cat", "chair", "cow", "diningtable", "dog", "horse", "motorbike", "person", "pottedplant", "s...
43.444444
81
0.727621
645c17e3f4a6b865217e0c673edc9e8119b485f8
6,116
py
Python
tests/test_envs.py
SwapnilPande/stable-baselines3
93f62cef7c44295f7e82c751a8a7b23653361313
[ "MIT" ]
3,204
2020-05-05T08:27:19.000Z
2022-03-31T12:23:31.000Z
tests/test_envs.py
SwapnilPande/stable-baselines3
93f62cef7c44295f7e82c751a8a7b23653361313
[ "MIT" ]
739
2020-05-08T15:03:44.000Z
2022-03-31T20:16:02.000Z
tests/test_envs.py
SwapnilPande/stable-baselines3
93f62cef7c44295f7e82c751a8a7b23653361313
[ "MIT" ]
807
2020-05-09T04:06:04.000Z
2022-03-31T05:54:28.000Z
import types import gym import numpy as np import pytest from gym import spaces from stable_baselines3.common.env_checker import check_env from stable_baselines3.common.envs import ( BitFlippingEnv, FakeImageEnv, IdentityEnv, IdentityEnvBox, IdentityEnvMultiBinary, IdentityEnvMultiDiscrete, ...
27.8
103
0.658437
70aa57d1cb693e044cda5c6617ece33af649a464
603
py
Python
what_is_Monero/tests/test_what_is_monero.py
Sleeptraphero/ProjectSE
8cc406c9a628b9849dfc778526b01ce8baea21b0
[ "MIT" ]
null
null
null
what_is_Monero/tests/test_what_is_monero.py
Sleeptraphero/ProjectSE
8cc406c9a628b9849dfc778526b01ce8baea21b0
[ "MIT" ]
null
null
null
what_is_Monero/tests/test_what_is_monero.py
Sleeptraphero/ProjectSE
8cc406c9a628b9849dfc778526b01ce8baea21b0
[ "MIT" ]
null
null
null
from what_is_Monero.website import app def test_index(): # create a version of our website that we can use for testing with app.test_client() as test_client: # mimic a browser: 'GET /', as if you visit the site response = test_client.get('/') # check that the HTTP response is a succes...
33.5
78
0.668325
59c5f5df71924f0c1b252edff515fcfc9543d626
3,413
py
Python
jdleden/afdelingen.py
jonge-democraten/jdleden
f734796770f09d90928acb5d9790210243d8d024
[ "MIT" ]
null
null
null
jdleden/afdelingen.py
jonge-democraten/jdleden
f734796770f09d90928acb5d9790210243d8d024
[ "MIT" ]
5
2016-11-13T20:57:03.000Z
2020-06-05T17:35:45.000Z
jdleden/afdelingen.py
jonge-democraten/jdleden
f734796770f09d90928acb5d9790210243d8d024
[ "MIT" ]
1
2017-01-14T15:05:41.000Z
2017-01-14T15:05:41.000Z
# All departments with their postal code ranges AFDELINGEN = { "Amsterdam":[ (1000,1229), (1245,1392), (1395,2159), (2165,2165), (3640,3650), (8200,8249)], "Leiden-Haaglanden":[ (2160,2164), (2166,2750), (2752,2760), (2762,2799), ...
20.810976
47
0.39496
8f142b2cf60312f740ffb8eda7fc236343bc8bae
897
py
Python
exercises/zh/test_01_12_03.py
Jette16/spacy-course
32df0c8f6192de6c9daba89740a28c0537e4d6a0
[ "MIT" ]
2,085
2019-04-17T13:10:40.000Z
2022-03-30T21:51:46.000Z
exercises/zh/test_01_12_03.py
Jette16/spacy-course
32df0c8f6192de6c9daba89740a28c0537e4d6a0
[ "MIT" ]
79
2019-04-18T14:42:55.000Z
2022-03-07T08:15:43.000Z
exercises/zh/test_01_12_03.py
Jette16/spacy-course
32df0c8f6192de6c9daba89740a28c0537e4d6a0
[ "MIT" ]
361
2019-04-17T13:34:32.000Z
2022-03-28T04:42:45.000Z
def test(): assert ( len(pattern) == 3 ), "模板应该描述了三个词符(三个字典)。" assert ( isinstance(pattern[0], dict) and isinstance(pattern[1], dict) and isinstance(pattern[2], dict) ), "模板中的每一项应该是一个字典。" assert ( len(pattern[0]) == 1 and len(pattern[1]) == 1 ), "首两个模板的里面应...
28.935484
63
0.554069
cf43d11e973524da72868ed87c0f991f07ae2a41
124
py
Python
async/logger.py
harshal/django-async
ec350246a42a75bce2f22a70444420ef1fe741f4
[ "BSL-1.0" ]
null
null
null
async/logger.py
harshal/django-async
ec350246a42a75bce2f22a70444420ef1fe741f4
[ "BSL-1.0" ]
1
2019-11-06T17:11:05.000Z
2019-11-11T01:58:05.000Z
async/logger.py
harshal/django-async
ec350246a42a75bce2f22a70444420ef1fe741f4
[ "BSL-1.0" ]
1
2019-11-06T13:29:36.000Z
2019-11-06T13:29:36.000Z
""" Django Async logger. """ #pylint: disable=unused-import import logging _logger = logging.getLogger('async_logger')
15.5
43
0.725806
290168c3505d7e16704ad140fd9c8de5232aedca
117
py
Python
.history/calculator_factories_20210629130529.py
Aleff13/calculadora-tkinter
01e169d3c1d128976eb3a41ea1f53f11d6157e44
[ "MIT" ]
null
null
null
.history/calculator_factories_20210629130529.py
Aleff13/calculadora-tkinter
01e169d3c1d128976eb3a41ea1f53f11d6157e44
[ "MIT" ]
null
null
null
.history/calculator_factories_20210629130529.py
Aleff13/calculadora-tkinter
01e169d3c1d128976eb3a41ea1f53f11d6157e44
[ "MIT" ]
null
null
null
import tkinter as tk def make_root() -> tk.Tk: root = tk.Tk() root.title("Calculator") root.config(padx)
19.5
28
0.632479
b49abf357034c2fc21bd404c197d119425d93fd0
8,581
py
Python
catkin_tools/verbs/catkin_config/cli.py
timonegk/catkin_tools
70ca62f67dc125e5879864a7a80c261b9a9bc914
[ "Apache-2.0" ]
null
null
null
catkin_tools/verbs/catkin_config/cli.py
timonegk/catkin_tools
70ca62f67dc125e5879864a7a80c261b9a9bc914
[ "Apache-2.0" ]
null
null
null
catkin_tools/verbs/catkin_config/cli.py
timonegk/catkin_tools
70ca62f67dc125e5879864a7a80c261b9a9bc914
[ "Apache-2.0" ]
null
null
null
# Copyright 2014 Open Source Robotics Foundation, 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...
50.775148
120
0.701084
41893adb5a6d80070ffa1272a104f71a8c20d80f
1,331
py
Python
app/migrations/versions/e96865e4fa62_users_added_marks.py
sachisabya28/quiz-app-beta
5bc5ee33dc9025a0bc23d541bfca6a318ea32c26
[ "MIT" ]
3
2021-05-31T16:46:00.000Z
2022-01-16T00:19:37.000Z
app/migrations/versions/e96865e4fa62_users_added_marks.py
sachisabya28/quiz-app-beta
5bc5ee33dc9025a0bc23d541bfca6a318ea32c26
[ "MIT" ]
null
null
null
app/migrations/versions/e96865e4fa62_users_added_marks.py
sachisabya28/quiz-app-beta
5bc5ee33dc9025a0bc23d541bfca6a318ea32c26
[ "MIT" ]
null
null
null
"""users added marks Revision ID: e96865e4fa62 Revises: 59069a416ef2 Create Date: 2020-09-23 14:29:28.764869 """ from alembic import op import sqlalchemy as sa # revision identifiers, used by Alembic. revision = 'e96865e4fa62' down_revision = '59069a416ef2' branch_labels = None depends_on = None def upgrade(): ...
30.953488
75
0.674681
6da33cbb0da7d57fc51c3919b70252f723b95373
26,910
py
Python
backdoor.py
Rainism/the-backdoor-factory
6237b9ff84c9ca83e9bdedb9cc93a4865c776bc0
[ "BSD-3-Clause" ]
null
null
null
backdoor.py
Rainism/the-backdoor-factory
6237b9ff84c9ca83e9bdedb9cc93a4865c776bc0
[ "BSD-3-Clause" ]
null
null
null
backdoor.py
Rainism/the-backdoor-factory
6237b9ff84c9ca83e9bdedb9cc93a4865c776bc0
[ "BSD-3-Clause" ]
1
2020-03-19T04:04:09.000Z
2020-03-19T04:04:09.000Z
#!/usr/bin/env python ''' BackdoorFactory (BDF) v2 - Tertium Quid Many thanks to Ryan O'Neill --ryan 'at' codeslum <d ot> org-- Without him, I would still be trying to do stupid things with the elf format. Also thanks to Silvio Cesare with his 1998 paper (http://vxheaven.org/lib/vsc01.html) which these ELF patching t...
49.016393
110
0.413452
dd51ddb1ffafe5dced436431a42e76d79e1f94b4
23,632
py
Python
pymatgen/core/tests/test_lattice.py
Chessmag/pymatgen
61a4bb7a1792e1ea2379abd45b3c40efb816fd64
[ "MIT" ]
1
2021-10-18T01:26:50.000Z
2021-10-18T01:26:50.000Z
pymatgen/core/tests/test_lattice.py
Chessmag/pymatgen
61a4bb7a1792e1ea2379abd45b3c40efb816fd64
[ "MIT" ]
null
null
null
pymatgen/core/tests/test_lattice.py
Chessmag/pymatgen
61a4bb7a1792e1ea2379abd45b3c40efb816fd64
[ "MIT" ]
null
null
null
# coding: utf-8 # Copyright (c) Pymatgen Development Team. # Distributed under the terms of the MIT License. import itertools from pymatgen.core.lattice import Lattice, get_points_in_spheres import numpy as np from pymatgen.util.testing import PymatgenTest from pymatgen.core.operations import SymmOp class LatticeTe...
44.927757
116
0.567112
95112fe24f5a62e3491192a8182c801d57769c09
1,976
py
Python
Python/tautology.py
BuserLukas/Logic
cc0447554cfa75b213a10a2db37ce82c42afb91d
[ "MIT" ]
13
2019-10-03T13:25:02.000Z
2021-12-26T11:49:25.000Z
Python/tautology.py
BuserLukas/Logic
cc0447554cfa75b213a10a2db37ce82c42afb91d
[ "MIT" ]
19
2015-01-14T15:36:24.000Z
2019-04-21T02:13:23.000Z
Python/tautology.py
BuserLukas/Logic
cc0447554cfa75b213a10a2db37ce82c42afb91d
[ "MIT" ]
18
2019-10-03T16:05:46.000Z
2021-12-10T19:44:15.000Z
import propLogParser as plp def power(M): "Compute a list containing all subsets of the set M" if M == set(): return [ set() ] x = M.pop() L = power(M) return L + [ K | { x } for K in L ] def tautology(F): "Check, whether the formula F is a tautology" P = collectVars(F) A = pow...
30.4
69
0.510628
dcbd9ca692faf70983f93b43fbb00b71499619c7
6,869
py
Python
custom/icds_reports/reports/stadiometer.py
rochakchauhan/commcare-hq
aa7ab3c2d0c51fe10f2b51b08101bb4b5a376236
[ "BSD-3-Clause" ]
null
null
null
custom/icds_reports/reports/stadiometer.py
rochakchauhan/commcare-hq
aa7ab3c2d0c51fe10f2b51b08101bb4b5a376236
[ "BSD-3-Clause" ]
1
2021-06-02T04:45:16.000Z
2021-06-02T04:45:16.000Z
custom/icds_reports/reports/stadiometer.py
rochakchauhan/commcare-hq
aa7ab3c2d0c51fe10f2b51b08101bb4b5a376236
[ "BSD-3-Clause" ]
null
null
null
from collections import OrderedDict, defaultdict from datetime import datetime from dateutil.relativedelta import relativedelta from dateutil.rrule import MONTHLY, rrule from django.db.models.aggregates import Sum from custom.icds_reports.cache import icds_quickcache from custom.icds_reports.const import LocationType...
31.800926
99
0.572136
44da136be9a9ba52d1f0da2cb3745ecc39c2ddb3
10,840
py
Python
var/spack/repos/builtin/packages/r/package.py
carlabguillen/spack
7070bb892f9bdb5cf9e76e0eecd64f6cc5f4695c
[ "ECL-2.0", "Apache-2.0", "MIT-0", "MIT" ]
1
2021-07-03T22:53:51.000Z
2021-07-03T22:53:51.000Z
var/spack/repos/builtin/packages/r/package.py
carlabguillen/spack
7070bb892f9bdb5cf9e76e0eecd64f6cc5f4695c
[ "ECL-2.0", "Apache-2.0", "MIT-0", "MIT" ]
3
2022-03-09T09:15:39.000Z
2022-03-09T09:15:42.000Z
var/spack/repos/builtin/packages/r/package.py
carlabguillen/spack
7070bb892f9bdb5cf9e76e0eecd64f6cc5f4695c
[ "ECL-2.0", "Apache-2.0", "MIT-0", "MIT" ]
2
2020-01-10T18:54:54.000Z
2021-07-03T22:57:16.000Z
# Copyright 2013-2020 Lawrence Livermore National Security, LLC and other # Spack Project Developers. See the top-level COPYRIGHT file for details. # # SPDX-License-Identifier: (Apache-2.0 OR MIT) import os import re from spack import * class R(AutotoolsPackage): """R is 'GNU S', a freely available language and...
44.065041
95
0.642066
4f0dcb16f634f353e6d50ca952156424418dbe91
6,257
py
Python
sdk/python/pulumi_azure/dns/ptr_record.py
apollo2030/pulumi-azure
034665c61665f4dc7e291b8813747012d34fa044
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
sdk/python/pulumi_azure/dns/ptr_record.py
apollo2030/pulumi-azure
034665c61665f4dc7e291b8813747012d34fa044
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
sdk/python/pulumi_azure/dns/ptr_record.py
apollo2030/pulumi-azure
034665c61665f4dc7e291b8813747012d34fa044
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
# coding=utf-8 # *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** import json import warnings import pulumi import pulumi.runtime from typing import Union from .. import utilities, tables class PtrRec...
48.130769
187
0.668531
fa970328743c5b58e3b947d5d5c2776ce8024ab8
3,741
py
Python
pysmartnode/components/machine/remoteConfig.py
Nabla128k/pysmartnode
a0998ad6582a28fe5a0529fb15dd4f61e254d25f
[ "MIT" ]
82
2018-07-24T18:30:41.000Z
2022-03-10T06:13:15.000Z
pysmartnode/components/machine/remoteConfig.py
Nabla128k/pysmartnode
a0998ad6582a28fe5a0529fb15dd4f61e254d25f
[ "MIT" ]
15
2020-02-08T21:20:09.000Z
2021-03-15T09:13:28.000Z
pysmartnode/components/machine/remoteConfig.py
Nabla128k/pysmartnode
a0998ad6582a28fe5a0529fb15dd4f61e254d25f
[ "MIT" ]
23
2018-07-24T18:30:42.000Z
2021-12-12T10:03:44.000Z
# Author: Kevin Köck # Copyright Kevin Köck 2019-2020 Released under the MIT license # Created on 2019-09-15 __updated__ = "2020-08-11" __version__ = "0.93" from pysmartnode.utils.component import ComponentBase from pysmartnode import config from pysmartnode import logging import uasyncio as asyncio from sys import ...
36.320388
90
0.57792
cf4545c0d96ad70a56077b248b4f7efbbcd3825c
441
py
Python
3.6/Modules/global_parameters.py
mew-two-github/de-Novo-drug-Design
c21ebf1067d10f4a1243c767adec3dd7f5af7d78
[ "MIT" ]
1
2021-12-27T10:23:38.000Z
2021-12-27T10:23:38.000Z
3.6/Modules/global_parameters.py
mew-two-github/de-Novo-drug-Design
c21ebf1067d10f4a1243c767adec3dd7f5af7d78
[ "MIT" ]
null
null
null
3.6/Modules/global_parameters.py
mew-two-github/de-Novo-drug-Design
c21ebf1067d10f4a1243c767adec3dd7f5af7d78
[ "MIT" ]
null
null
null
# GLOBAL PARAMETERS # Fragmenting and building the encoding MOL_SPLIT_START = 70 MAX_ATOMS = 12 MAX_FREE = 3 MAX_FRAGMENTS = 12 # Similarity parameters ETA = 0.1 # Generation parameters MAX_SWAP = 5 FEATURES = 2 # Model parameters N_DENSE = 128 N_DENSE2 = 32 N_LSTM = 32 # Times 2 neurons, since there are both a f...
15.75
107
0.746032
b0cfe5849cb0ceb088cd96cb6335412d5f14f44c
993
py
Python
seeq/addons/correlation/_utils/__init__.py
seeq12/seeq-correlation
ab2ed13871352dc3671f5d5df09ec3aebd5f24f5
[ "Apache-2.0" ]
2
2021-11-17T00:17:43.000Z
2022-01-25T21:15:04.000Z
seeq/addons/correlation/_utils/__init__.py
seeq12/seeq-correlation
ab2ed13871352dc3671f5d5df09ec3aebd5f24f5
[ "Apache-2.0" ]
5
2021-11-02T23:13:57.000Z
2022-02-14T21:30:32.000Z
seeq/addons/correlation/_utils/__init__.py
seeq12/seeq-correlation
ab2ed13871352dc3671f5d5df09ec3aebd5f24f5
[ "Apache-2.0" ]
null
null
null
from ._common import validate_argument_types, print_red from ._permissions import permissions_defaults, add_datalab_project_ace, get_user, get_user_group from ._sdl import pull_only_signals, get_worksheet_url, get_workbook_worksheet_workstep_ids, get_worksheet_url_from_ids from ._sdl import sanitize_sdl_url, get_datala...
66.2
119
0.814703
d054894ae9950e2482b6a80ef7f7f5d9fbedccd7
264
py
Python
passbook/factors/captcha/apps.py
fossabot/passbook
cba17f6659404445ac3025f11657d89368cc8b4f
[ "MIT" ]
null
null
null
passbook/factors/captcha/apps.py
fossabot/passbook
cba17f6659404445ac3025f11657d89368cc8b4f
[ "MIT" ]
null
null
null
passbook/factors/captcha/apps.py
fossabot/passbook
cba17f6659404445ac3025f11657d89368cc8b4f
[ "MIT" ]
null
null
null
"""passbook captcha app""" from django.apps import AppConfig class PassbookFactorCaptchaConfig(AppConfig): """passbook captcha app""" name = "passbook.factors.captcha" label = "passbook_factors_captcha" verbose_name = "passbook Factors.Captcha"
24
45
0.738636
0967d1cf070d9ccf2bad3f3b947bba4cf3784ded
91
py
Python
Diena_10_Classes_Objects/my_prog.py
edzya/Python_RTU_08_20
d2921d998c611c18328dd523daf976a27ce858c1
[ "MIT" ]
8
2020-08-31T16:10:54.000Z
2021-11-24T06:37:37.000Z
Diena_10_Classes_Objects/my_prog.py
edzya/Python_RTU_08_20
d2921d998c611c18328dd523daf976a27ce858c1
[ "MIT" ]
8
2021-06-08T22:30:29.000Z
2022-03-12T00:48:55.000Z
Diena_10_Classes_Objects/my_prog.py
edzya/Python_RTU_08_20
d2921d998c611c18328dd523daf976a27ce858c1
[ "MIT" ]
12
2020-09-28T17:06:52.000Z
2022-02-17T12:12:46.000Z
import sys import my_util print(my_util.add(5,7)) print(my_util.my_pi) print(sys.path)
9.1
23
0.747253
001e9a7b9b61b7f78458a5d38d6ca20128e889b6
1,338
py
Python
dyn2sel/tests/apply_dcs/test_desdd.py
luccaportes/Scikit-DYN2SEL
3e102f4fff5696277c57997fb811139c5e6f8b4d
[ "MIT" ]
1
2021-08-21T21:21:29.000Z
2021-08-21T21:21:29.000Z
dyn2sel/tests/apply_dcs/test_desdd.py
luccaportes/Scikit-DYN2SEL
3e102f4fff5696277c57997fb811139c5e6f8b4d
[ "MIT" ]
10
2020-10-27T13:37:36.000Z
2021-09-11T02:40:51.000Z
dyn2sel/tests/apply_dcs/test_desdd.py
luccaportes/Scikit-DYN2SEL
3e102f4fff5696277c57997fb811139c5e6f8b4d
[ "MIT" ]
1
2021-11-24T07:20:42.000Z
2021-11-24T07:20:42.000Z
import sys sys.path.append("..") from skmultiflow.data import SEAGenerator # from skmultiflow.bayes import NaiveBayes from skmultiflow.meta import AdaptiveRandomForest, OzaBagging from dyn2sel.apply_dcs import DESDDMethod def test_accuracy(): # an ensemble of Adaptive Random Forests should perform at the very l...
32.634146
116
0.731689
6ba2771460dd387d3334d060cbe403c92ef7615c
3,303
py
Python
brevis/predict/paper.py
vinayak19th/Brevis-2.0
a0dd211f25e2e719ae9a14f29ccd5cd6e72704aa
[ "MIT" ]
null
null
null
brevis/predict/paper.py
vinayak19th/Brevis-2.0
a0dd211f25e2e719ae9a14f29ccd5cd6e72704aa
[ "MIT" ]
10
2021-06-10T20:41:38.000Z
2022-03-12T00:56:18.000Z
brevis/predict/paper.py
vinayak19th/Brevis-2.0
a0dd211f25e2e719ae9a14f29ccd5cd6e72704aa
[ "MIT" ]
null
null
null
import random import os import sys import newspaper from tools.trie import * import requests from bs4 import BeautifulSoup from newsapi import NewsApiClient # NUM_POPULAR_URLS = 3 # NUM_EACH_POPULAR = 2 # FORGET_ARTICLE = False NUM_ARTICLES = 20 BASE_DIR = Path(__file__).resolve().parent.parent SAVED_TRIE_DIR = B...
29.756757
101
0.565849
07bc53b4ea55c1a5648d5d5745eb90c1e9ff81bb
3,348
py
Python
mlrtvc/src/training/vocoder_train.py
rushic24/Multi-Language-RTVC
f61f79ea119d10c876bd69b825f5cb84c9b66ac8
[ "MIT" ]
9
2021-12-19T07:41:49.000Z
2022-01-28T17:16:32.000Z
mlrtvc/src/training/vocoder_train.py
rushic24/Multi-Language-RTVC
f61f79ea119d10c876bd69b825f5cb84c9b66ac8
[ "MIT" ]
13
2021-12-17T18:57:39.000Z
2022-03-04T12:22:46.000Z
mlrtvc/src/training/vocoder_train.py
rushic24/Multi-Language-RTVC
f61f79ea119d10c876bd69b825f5cb84c9b66ac8
[ "MIT" ]
3
2021-12-21T23:52:55.000Z
2022-01-06T23:08:34.000Z
import sys sys.path.append("../") from core.utils.argutils import print_args from core.vocoder.train import train from pathlib import Path import argparse if __name__ == "__main__": parser = argparse.ArgumentParser( description="Trains the vocoder from the synthesizer audios and the GTA synthesized mels,...
32.504854
105
0.625448
39ad81147ba2cad90b254f92a2ba85c4f9a8424c
8,662
py
Python
venv/Lib/site-packages/astroid/brain/brain_numpy_ndarray.py
professorbee/randomplushmiku
b2db186a5d081da0cb00b8c73dee9eff6047b1f1
[ "MIT" ]
4
2021-03-29T19:15:29.000Z
2021-06-08T05:34:00.000Z
venv/Lib/site-packages/astroid/brain/brain_numpy_ndarray.py
professorbee/randomplushmiku
b2db186a5d081da0cb00b8c73dee9eff6047b1f1
[ "MIT" ]
14
2021-03-26T20:54:22.000Z
2021-04-06T17:18:53.000Z
venv/Lib/site-packages/astroid/brain/brain_numpy_ndarray.py
professorbee/randomplushmiku
b2db186a5d081da0cb00b8c73dee9eff6047b1f1
[ "MIT" ]
2
2021-04-01T23:43:20.000Z
2021-04-27T13:35:28.000Z
# Copyright (c) 2015-2016, 2018-2020 Claudiu Popa <pcmanticore@gmail.com> # Copyright (c) 2016 Ceridwen <ceridwenv@gmail.com> # Copyright (c) 2017-2020 hippo91 <guillaume.peillex@gmail.com> # Licensed under the LGPL: https://www.gnu.org/licenses/old-licenses/lgpl-2.1.en.html # For details: https://github.com/PyCQA/ast...
55.525641
110
0.625606
b87f92aac1f81b96b80d7c35bffc8400b1c7fbaf
1,933
py
Python
examples/transmitter/swagger_server/business_logic/generate_event.py
duo-labs/sharedsignals
15345e78c39a86fc6bafab642aca58a12cf57ef2
[ "BSD-3-Clause" ]
12
2021-12-01T00:16:25.000Z
2022-02-09T06:49:23.000Z
examples/transmitter/swagger_server/business_logic/generate_event.py
duo-labs/sharedsignals
15345e78c39a86fc6bafab642aca58a12cf57ef2
[ "BSD-3-Clause" ]
7
2021-11-30T19:04:40.000Z
2022-02-04T17:16:39.000Z
examples/transmitter/swagger_server/business_logic/generate_event.py
duo-labs/sharedsignals
15345e78c39a86fc6bafab642aca58a12cf57ef2
[ "BSD-3-Clause" ]
3
2022-02-13T16:23:07.000Z
2022-03-15T22:31:06.000Z
# Copyright (c) 2021 Cisco Systems, Inc. and its affiliates # All rights reserved. # Use of this source code is governed by a BSD 3-Clause License # that can be found in the LICENSE file. from swagger_server.events import ( SecurityEvent, SessionRevoked, TokenClaimsChange, CredentialChange, AssuranceLevel...
37.173077
71
0.7791
609b2164235de06486fb445df9e3f6b85704bb9f
2,272
py
Python
venv/lib/python2.7/site-packages/openpyxl/descriptors/sequence.py
Christian-Castro/castro_odoo8
8247fdb20aa39e043b6fa0c4d0af509462ab3e00
[ "Unlicense" ]
4
2018-07-04T17:20:12.000Z
2019-07-14T18:07:25.000Z
venv/lib/python2.7/site-packages/openpyxl/descriptors/sequence.py
Christian-Castro/castro_odoo8
8247fdb20aa39e043b6fa0c4d0af509462ab3e00
[ "Unlicense" ]
null
null
null
venv/lib/python2.7/site-packages/openpyxl/descriptors/sequence.py
Christian-Castro/castro_odoo8
8247fdb20aa39e043b6fa0c4d0af509462ab3e00
[ "Unlicense" ]
1
2018-09-03T03:02:06.000Z
2018-09-03T03:02:06.000Z
from __future__ import absolute_import # copyright openpyxl 2010-2015 from openpyxl.compat import safe_string from openpyxl.xml.functions import Element from openpyxl.utils.indexed_list import IndexedList from .base import Descriptor, _convert from .namespace import namespaced class Sequence(Descriptor): """ ...
26.114943
76
0.631602
bda3e468bc071bc89002eac8a5399b49fcf5b76c
18,362
py
Python
Telstra_EventDetection/models/resister_phone_number_list.py
telstra/EventDetectionAPI-SDK-python
94f3bb56ebd3e7bcb8818af3b1b43d910f92bd1f
[ "Apache-2.0" ]
3
2018-05-23T11:12:25.000Z
2020-05-18T00:53:50.000Z
Telstra_EventDetection/models/resister_phone_number_list.py
telstra/EventDetectionAPI-SDK-python
94f3bb56ebd3e7bcb8818af3b1b43d910f92bd1f
[ "Apache-2.0" ]
null
null
null
Telstra_EventDetection/models/resister_phone_number_list.py
telstra/EventDetectionAPI-SDK-python
94f3bb56ebd3e7bcb8818af3b1b43d910f92bd1f
[ "Apache-2.0" ]
1
2018-12-10T01:35:11.000Z
2018-12-10T01:35:11.000Z
# coding: utf-8 """ Telstra Event Detection API # Introduction Telstra's Event Detection API provides the ability to subscribe to and receive mobile network events for registered mobile numbers associated with Telstra's mobile network, such as; SIM swap, port-in, port-out, new MSIDN, new mobile service and c...
156.940171
15,265
0.696711
ba3c90e9a6c7b14a6e25f2e63043f261ad425a7c
4,347
py
Python
PRAI/praiapp/models.py
vishwabasak41/praicopy2
45fca251608d1621e75bfcc963bf5ff29d695336
[ "MIT" ]
null
null
null
PRAI/praiapp/models.py
vishwabasak41/praicopy2
45fca251608d1621e75bfcc963bf5ff29d695336
[ "MIT" ]
null
null
null
PRAI/praiapp/models.py
vishwabasak41/praicopy2
45fca251608d1621e75bfcc963bf5ff29d695336
[ "MIT" ]
null
null
null
# This is an auto-generated Django model module. # You'll have to do the following manually to clean this up: # * Rearrange models' order # * Make sure each model has one field with primary_key=True # * Make sure each ForeignKey has `on_delete` set to the desired behavior. # * Remove `managed = False` lines if ...
32.931818
117
0.705544
972f09c4319f9569415d79e6579cc75589308765
799
py
Python
tests/syntax/IndentationError.py
augustand/Nuitka
b7b9dd50b60505a309f430ce17cad36fb7d75048
[ "Apache-2.0" ]
null
null
null
tests/syntax/IndentationError.py
augustand/Nuitka
b7b9dd50b60505a309f430ce17cad36fb7d75048
[ "Apache-2.0" ]
null
null
null
tests/syntax/IndentationError.py
augustand/Nuitka
b7b9dd50b60505a309f430ce17cad36fb7d75048
[ "Apache-2.0" ]
null
null
null
# Copyright 2016, Kay Hayen, mailto:kay.hayen@gmail.com # # Python tests originally created or extracted from other peoples work. The # parts were too small to be protected. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the ...
36.318182
79
0.705882
297d8d192f8ca2bde9a082a382b86ecbdb57e636
475
py
Python
sachima/sachima_http_server.py
gitter-badger/Sachima
76547fb6a21f1fea597994e6ee02c5db080d1e7a
[ "MIT" ]
null
null
null
sachima/sachima_http_server.py
gitter-badger/Sachima
76547fb6a21f1fea597994e6ee02c5db080d1e7a
[ "MIT" ]
null
null
null
sachima/sachima_http_server.py
gitter-badger/Sachima
76547fb6a21f1fea597994e6ee02c5db080d1e7a
[ "MIT" ]
null
null
null
from nameko.standalone.rpc import ClusterRpcProxy from sanic import Sanic from sanic.response import json from sachima import conf app = Sanic() CONFIG = conf.get("BROKER") def sachima_rpc_reports(req): with ClusterRpcProxy(CONFIG) as rpc: # print(req) res = rpc.data.get_report(req.json) ...
20.652174
49
0.703158
801b3abb1a4a71e319aa3974d314b61db36707c2
2,238
py
Python
c2cgeoportal/subscribers.py
craxxkid/c2cgeoportal
60ca7d5d014d69b0a938f858271c911a30da77c3
[ "BSD-2-Clause-FreeBSD" ]
null
null
null
c2cgeoportal/subscribers.py
craxxkid/c2cgeoportal
60ca7d5d014d69b0a938f858271c911a30da77c3
[ "BSD-2-Clause-FreeBSD" ]
null
null
null
c2cgeoportal/subscribers.py
craxxkid/c2cgeoportal
60ca7d5d014d69b0a938f858271c911a30da77c3
[ "BSD-2-Clause-FreeBSD" ]
null
null
null
# -*- coding: utf-8 -*- # Copyright (c) 2011-2016, Camptocamp SA # 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 #...
40.690909
81
0.773458
fb572150d5d9dea15c7224dc7178c709fea7aef4
348
py
Python
src/helper_addressbook.py
kaue/PyBitmessage
7b8bf082ff0d569f507d65e087000e4e3d6ccf3f
[ "MIT", "BSD-2-Clause-FreeBSD" ]
1,583
2015-01-01T13:03:20.000Z
2022-03-31T23:10:00.000Z
src/helper_addressbook.py
kaue/PyBitmessage
7b8bf082ff0d569f507d65e087000e4e3d6ccf3f
[ "MIT", "BSD-2-Clause-FreeBSD" ]
841
2015-01-01T14:51:48.000Z
2022-03-25T06:45:14.000Z
src/helper_addressbook.py
kaue/PyBitmessage
7b8bf082ff0d569f507d65e087000e4e3d6ccf3f
[ "MIT", "BSD-2-Clause-FreeBSD" ]
482
2015-01-07T00:53:25.000Z
2022-03-24T15:58:12.000Z
""" Insert value into addressbook """ from bmconfigparser import BMConfigParser from helper_sql import sqlExecute def insert(address, label): """perform insert into addressbook""" if address not in BMConfigParser().addresses(): return sqlExecute('''INSERT INTO addressbook VALUES (?,?)''', label, add...
23.2
90
0.70977
5aec5d8e38aba39e6aba9a8f19637587c2f12544
9,128
py
Python
python/paddle/fluid/tests/unittests/test_elementwise_add_op.py
ysh329/Paddle
50ad9046c9a440564d104eaa354eb9df83a35678
[ "Apache-2.0" ]
9
2017-12-04T02:58:01.000Z
2020-12-03T14:46:30.000Z
python/paddle/fluid/tests/unittests/test_elementwise_add_op.py
ysh329/Paddle
50ad9046c9a440564d104eaa354eb9df83a35678
[ "Apache-2.0" ]
7
2017-12-05T20:29:08.000Z
2018-10-15T08:57:40.000Z
python/paddle/fluid/tests/unittests/test_elementwise_add_op.py
ysh329/Paddle
50ad9046c9a440564d104eaa354eb9df83a35678
[ "Apache-2.0" ]
6
2018-03-19T22:38:46.000Z
2019-11-01T22:28:27.000Z
# Copyright (c) 2018 PaddlePaddle 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 appli...
32.254417
74
0.654251
07fe621c9c42870e4074abda4015e3d67ea27a16
674
py
Python
app/core/management/commands/wait_for_db.py
CasperAmandusJohansen/recipe-app-api
22d299a332f0ce2803a0e20aa7dabab715583377
[ "MIT" ]
null
null
null
app/core/management/commands/wait_for_db.py
CasperAmandusJohansen/recipe-app-api
22d299a332f0ce2803a0e20aa7dabab715583377
[ "MIT" ]
null
null
null
app/core/management/commands/wait_for_db.py
CasperAmandusJohansen/recipe-app-api
22d299a332f0ce2803a0e20aa7dabab715583377
[ "MIT" ]
null
null
null
import time from django.db import connections from django.db.utils import OperationalError from django.core.management.base import BaseCommand class Command(BaseCommand): """ Django command to pause execution until database is available """ def handle(self, *args, **options): self.stdout.wri...
30.636364
72
0.645401
c918570b4df2d3da5dcbcdab9bf1fd442b54a6ef
2,772
py
Python
sensible-paste-up/sensible-paste-up.py
catseye/NaNoGenLab
3e4a7314e6023557856e1cc910e9d0edc4daf43c
[ "Unlicense" ]
20
2015-06-05T14:02:12.000Z
2021-11-02T22:19:18.000Z
sensible-paste-up/sensible-paste-up.py
catseye/NaNoGenLab
3e4a7314e6023557856e1cc910e9d0edc4daf43c
[ "Unlicense" ]
1
2015-10-15T12:58:35.000Z
2015-10-15T12:58:35.000Z
sensible-paste-up/sensible-paste-up.py
catseye/NaNoGenLab
3e4a7314e6023557856e1cc910e9d0edc4daf43c
[ "Unlicense" ]
1
2021-04-08T23:50:06.000Z
2021-04-08T23:50:06.000Z
#!/usr/bin/env python import math from optparse import OptionParser import os import random import sys from PIL import Image def get_luminance(image, rectangle): # not that I know what luminance means. we want the pick the # "blankest" part of the canvas, is all. this is an attempt region = image.crop...
29.806452
79
0.568182
d32cc53a01f3099b2f9dd6106230edbba3224508
954
py
Python
alipay/aop/api/response/KoubeiItemModifyResponse.py
snowxmas/alipay-sdk-python-all
96870ced60facd96c5bce18d19371720cbda3317
[ "Apache-2.0" ]
213
2018-08-27T16:49:32.000Z
2021-12-29T04:34:12.000Z
alipay/aop/api/response/KoubeiItemModifyResponse.py
snowxmas/alipay-sdk-python-all
96870ced60facd96c5bce18d19371720cbda3317
[ "Apache-2.0" ]
29
2018-09-29T06:43:00.000Z
2021-09-02T03:27:32.000Z
alipay/aop/api/response/KoubeiItemModifyResponse.py
snowxmas/alipay-sdk-python-all
96870ced60facd96c5bce18d19371720cbda3317
[ "Apache-2.0" ]
59
2018-08-27T16:59:26.000Z
2022-03-25T10:08:15.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- import json from alipay.aop.api.response.AlipayResponse import AlipayResponse class KoubeiItemModifyResponse(AlipayResponse): def __init__(self): super(KoubeiItemModifyResponse, self).__init__() self._item_id = None self._request_id = None ...
26.5
97
0.674004
94b700b52e231acc3112ed925a477cfaa49a9645
1,051
py
Python
data/nlp_importer.py
normangilmore/TextThresher
b5919389dd6a2eb1ce084cb6262e9ff7a06cc751
[ "Apache-2.0" ]
21
2016-08-01T23:42:00.000Z
2020-08-06T17:41:31.000Z
data/nlp_importer.py
normangilmore/TextThresher
b5919389dd6a2eb1ce084cb6262e9ff7a06cc751
[ "Apache-2.0" ]
38
2016-08-02T01:07:57.000Z
2017-10-27T22:48:31.000Z
data/nlp_importer.py
normangilmore/TextThresher
b5919389dd6a2eb1ce084cb6262e9ff7a06cc751
[ "Apache-2.0" ]
11
2016-08-03T22:31:59.000Z
2021-12-28T18:35:49.000Z
import os os.environ.setdefault("DJANGO_SETTINGS_MODULE", "thresher_backend.settings") import django django.setup() import json from thresher.models import NLPHints from data.nlp_hint_types import QUESTION_TO_HINT_TYPE def nlp_load(annotations): resultList = json.loads(annotations) for result in resultList:...
32.84375
76
0.627022