hexsha
stringlengths
40
40
size
int64
3
1.03M
ext
stringclasses
10 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
3
972
max_stars_repo_name
stringlengths
6
130
max_stars_repo_head_hexsha
stringlengths
40
78
max_stars_repo_licenses
listlengths
1
10
max_stars_count
int64
1
191k
max_stars_repo_stars_event_min_datetime
stringlengths
24
24
max_stars_repo_stars_event_max_datetime
stringlengths
24
24
max_issues_repo_path
stringlengths
3
972
max_issues_repo_name
stringlengths
6
130
max_issues_repo_head_hexsha
stringlengths
40
78
max_issues_repo_licenses
listlengths
1
10
max_issues_count
int64
1
116k
max_issues_repo_issues_event_min_datetime
stringlengths
24
24
max_issues_repo_issues_event_max_datetime
stringlengths
24
24
max_forks_repo_path
stringlengths
3
972
max_forks_repo_name
stringlengths
6
130
max_forks_repo_head_hexsha
stringlengths
40
78
max_forks_repo_licenses
listlengths
1
10
max_forks_count
int64
1
105k
max_forks_repo_forks_event_min_datetime
stringlengths
24
24
max_forks_repo_forks_event_max_datetime
stringlengths
24
24
content
stringlengths
3
1.03M
avg_line_length
float64
1.13
941k
max_line_length
int64
2
941k
alphanum_fraction
float64
0
1
06fc4eba810668b2d11ff7c5397013dfe56f2902
276
py
Python
artgate/platform/__init__.py
Fassty/artgate
f1f853e9eec985fcd883dd27a0a5f6a610660e50
[ "MIT" ]
null
null
null
artgate/platform/__init__.py
Fassty/artgate
f1f853e9eec985fcd883dd27a0a5f6a610660e50
[ "MIT" ]
null
null
null
artgate/platform/__init__.py
Fassty/artgate
f1f853e9eec985fcd883dd27a0a5f6a610660e50
[ "MIT" ]
null
null
null
from artgate.platform.base import AbstractEnvConnector from artgate.platform.android import * from artgate.platform.ios import * from artgate.platform.linux import LinuxEnvConnector from artgate.platform.macos import * from artgate.platform.windows import WindowsEnvConnector
39.428571
56
0.858696
7856795e38fe6feb70245449f478552ae5377199
222,834
py
Python
pywikibot/page/__init__.py
Partlo/RoboCade
89c49b3f793b96aeb9e75672fd150872eb52aa11
[ "MIT" ]
null
null
null
pywikibot/page/__init__.py
Partlo/RoboCade
89c49b3f793b96aeb9e75672fd150872eb52aa11
[ "MIT" ]
null
null
null
pywikibot/page/__init__.py
Partlo/RoboCade
89c49b3f793b96aeb9e75672fd150872eb52aa11
[ "MIT" ]
null
null
null
""" Objects representing various types of MediaWiki, including Wikibase, pages. This module also includes objects: * Property: a type of semantic data. * Claim: an instance of a semantic assertion. * Revision: a single change to a wiki page. * FileInfo: a structure holding imageinfo of latest rev. of FilePage...
38.53926
80
0.564353
a360f84302ee5efb13419c211018c149c6542c03
645
py
Python
tests/test_line.py
firasm/pysketcher
ef0c25b11b739197e254d714c69c86e107059be3
[ "MIT" ]
27
2020-09-03T16:59:32.000Z
2022-03-11T08:21:25.000Z
tests/test_line.py
ReblochonMasque/pysketcher-1
9e804f4855edc6962b68e92091f35c2e960df813
[ "MIT" ]
395
2020-09-05T06:32:54.000Z
2022-03-31T12:06:55.000Z
tests/test_line.py
ReblochonMasque/pysketcher-1
9e804f4855edc6962b68e92091f35c2e960df813
[ "MIT" ]
4
2021-04-19T09:23:06.000Z
2021-11-12T20:21:30.000Z
from hypothesis import assume, HealthCheck, settings from pysketcher import Line, Point from tests.utils import given_inferred class TestLine: @given_inferred @settings(suppress_health_check=[HealthCheck.filter_too_much]) def test_start(self, a: Point, b: Point) -> None: assume(a != b) li...
32.25
85
0.662016
70c8e500b491cc61f9621bb13d52a07cec3e0f2b
17,585
py
Python
nnutils/train_utils.py
silviazuffi/smalst
f7871d6e53331938ac8e15491d88988f3645020c
[ "MIT" ]
121
2019-09-11T18:26:06.000Z
2022-03-09T07:25:12.000Z
nnutils/train_utils.py
silviazuffi/smalst
f7871d6e53331938ac8e15491d88988f3645020c
[ "MIT" ]
27
2019-09-19T11:06:36.000Z
2022-03-12T00:05:51.000Z
nnutils/train_utils.py
silviazuffi/smalst
f7871d6e53331938ac8e15491d88988f3645020c
[ "MIT" ]
21
2019-09-12T00:36:05.000Z
2021-11-16T18:01:12.000Z
""" Generic Training Utils. """ from __future__ import absolute_import from __future__ import division from __future__ import print_function import torch import os import os.path as osp import time import pdb from absl import flags import pickle as pkl import scipy.misc import numpy as np from ..nnutils import geom_ut...
46.398417
155
0.570145
c316914573b4e32e600a95968ae4101c7a8e7e69
15,222
py
Python
salt/modules/portage_config.py
styro/salt
d087d94dca02ca8bf53a6c21b94944bc7957522c
[ "Apache-2.0" ]
3
2016-09-03T06:26:42.000Z
2019-06-30T13:04:53.000Z
salt/modules/portage_config.py
styro/salt
d087d94dca02ca8bf53a6c21b94944bc7957522c
[ "Apache-2.0" ]
null
null
null
salt/modules/portage_config.py
styro/salt
d087d94dca02ca8bf53a6c21b94944bc7957522c
[ "Apache-2.0" ]
1
2021-12-02T15:30:00.000Z
2021-12-02T15:30:00.000Z
# -*- coding: utf-8 -*- ''' Configure ``portage(5)`` ''' # Import python libs from __future__ import absolute_import import os import shutil # Import salt libs import salt.utils # Import third party libs try: import portage HAS_PORTAGE = True except ImportError: HAS_PORTAGE = False import sys if ...
31.450413
120
0.535278
d8519b84b147ec619c546d717ba55459594c7a0d
738
py
Python
.history/myblog/models_20200416093106.py
abhinavmarwaha/demo-django-blog
c80a7d825e44d7e1589d9272c3583764562a2515
[ "MIT" ]
null
null
null
.history/myblog/models_20200416093106.py
abhinavmarwaha/demo-django-blog
c80a7d825e44d7e1589d9272c3583764562a2515
[ "MIT" ]
null
null
null
.history/myblog/models_20200416093106.py
abhinavmarwaha/demo-django-blog
c80a7d825e44d7e1589d9272c3583764562a2515
[ "MIT" ]
null
null
null
from django.db import models from django.contrib.auth.models import User STATUS = ( (0,"Draft"), (1,"Publish") ) class Post(models.Model): title = models.CharField(max_length=200, unique=True) slug = models.SlugField(max_length=200, unique=True) author = models.ForeignKey(User, on_delete= models....
27.333333
89
0.707317
4ffc19cf4a2fdd3801fbc7431bca3b425cdb9842
42,393
py
Python
app.py
hkeseyan/uh-edc
41c663661f2dd03cea004a08902226cc5a4579ca
[ "MIT" ]
null
null
null
app.py
hkeseyan/uh-edc
41c663661f2dd03cea004a08902226cc5a4579ca
[ "MIT" ]
null
null
null
app.py
hkeseyan/uh-edc
41c663661f2dd03cea004a08902226cc5a4579ca
[ "MIT" ]
null
null
null
# if the access file has its columns reorganized the load_Metadata_Page() method needs to have # the elements renumbered appropriate from flask import Flask, render_template, request, flash, session, url_for, redirect import flask import os from flask_uploads import UploadSet, configure_uploads, IMAGES from d...
45.486052
160
0.601727
133877b2579beca2dcb435755912f35a4880bbe4
29
py
Python
project_euler/051-100/97.py
floppp/programming_challenges
42df1b72faf5ddf907296f90e9b14e014d2ea13b
[ "MIT" ]
null
null
null
project_euler/051-100/97.py
floppp/programming_challenges
42df1b72faf5ddf907296f90e9b14e014d2ea13b
[ "MIT" ]
null
null
null
project_euler/051-100/97.py
floppp/programming_challenges
42df1b72faf5ddf907296f90e9b14e014d2ea13b
[ "MIT" ]
null
null
null
print 28433 * 2**7830457 + 1
14.5
28
0.655172
a8b294b5ff4cc1c317a1f439815e58ceb07b3538
7,048
py
Python
nTD/n_expected_Sarsa.py
Tony-Tan/Reinforcement_Leanring_An_Introduction
285b93b0108bb3401623149129fad4ec863db0d5
[ "MIT" ]
5
2020-11-09T11:40:10.000Z
2021-06-10T12:06:12.000Z
nTD/n_expected_Sarsa.py
Tony-Tan/Reinforcement_Leanring_An_Introduction
285b93b0108bb3401623149129fad4ec863db0d5
[ "MIT" ]
1
2020-11-10T02:38:06.000Z
2020-11-10T10:49:44.000Z
nTD/n_expected_Sarsa.py
Tony-Tan/Reinforcement_Leanring_An_Introduction
285b93b0108bb3401623149129fad4ec863db0d5
[ "MIT" ]
null
null
null
import collections import matplotlib.pyplot as plt import numpy as np from environment.random_walk_19_states import RandomWalk def constant_factory(n): probability_list = np.ones(n) return lambda: probability_list / np.sum(probability_list) class Agent: def __init__(self, environment_, n): self...
53.801527
115
0.532775
ebaf8b1c467ceafe16f008467043a4aa0f19de54
3,650
py
Python
adafruit_epd/mcp_sram.py
makermelissa/Adafruit_CircuitPython_EPD
d738c779a65ea91a7f3d897214b0dba035a65212
[ "Unlicense", "MIT-0", "MIT" ]
26
2018-09-12T21:08:38.000Z
2022-03-18T03:21:06.000Z
adafruit_epd/mcp_sram.py
makermelissa/Adafruit_CircuitPython_EPD
d738c779a65ea91a7f3d897214b0dba035a65212
[ "Unlicense", "MIT-0", "MIT" ]
35
2018-07-18T17:52:03.000Z
2021-07-05T21:55:17.000Z
adafruit_epd/mcp_sram.py
makermelissa/Adafruit_CircuitPython_EPD
d738c779a65ea91a7f3d897214b0dba035a65212
[ "Unlicense", "MIT-0", "MIT" ]
17
2018-08-04T15:51:21.000Z
2022-03-18T15:04:51.000Z
# SPDX-FileCopyrightText: 2018 Dean Miller for Adafruit Industries # # SPDX-License-Identifier: MIT """ `adafruit_epd.mcp_sram` - Adafruit MCP SRAM - sram driver ==================================================================================== CircuitPython driver for Microchip SRAM chips * Author(s): Dean Miller "...
33.181818
84
0.606575
325885920991d1c927ae063598bc6e880aa4ecab
11,046
py
Python
pytracking/util_scripts/download_results.py
sehomi/pyCFTrackers
4dbd550fbac78f4e7e35fdb4a1761b5b0cf9b096
[ "MIT" ]
null
null
null
pytracking/util_scripts/download_results.py
sehomi/pyCFTrackers
4dbd550fbac78f4e7e35fdb4a1761b5b0cf9b096
[ "MIT" ]
null
null
null
pytracking/util_scripts/download_results.py
sehomi/pyCFTrackers
4dbd550fbac78f4e7e35fdb4a1761b5b0cf9b096
[ "MIT" ]
null
null
null
import os import sys import gdown import re import shutil import argparse import tempfile env_path = os.path.join(os.path.dirname(__file__), '../..') if env_path not in sys.path: sys.path.append(env_path) from pytracking.evaluation.environment import env_settings pytracking_results_link_dict = { "dimp": { ...
44.720648
121
0.671917
dbf110b73649848ec3416806df4824703faecffc
431
py
Python
apps/clients/signals.py
swelanauguste/notices1
3e05746ad5c3af62dd2fa94beb9b3d3447f2086d
[ "MIT" ]
null
null
null
apps/clients/signals.py
swelanauguste/notices1
3e05746ad5c3af62dd2fa94beb9b3d3447f2086d
[ "MIT" ]
null
null
null
apps/clients/signals.py
swelanauguste/notices1
3e05746ad5c3af62dd2fa94beb9b3d3447f2086d
[ "MIT" ]
null
null
null
from django.db.models.signals import post_save from django.dispatch import receiver from django.contrib.auth.models import User from .models import Profile @receiver(post_save, sender=User) def update_user_profile(sender, instance, created, **kwargs): if created: Profile.objects.create(user=instance) @...
26.9375
61
0.777262
6b559a50061487e99ead4aedbe0586eb5eeb9c44
1,741
py
Python
azure-mgmt-applicationinsights/azure/mgmt/applicationinsights/models/application_insights_component_quota_status.py
JonathanGailliez/azure-sdk-for-python
f0f051bfd27f8ea512aea6fc0c3212ee9ee0029b
[ "MIT" ]
4
2016-06-17T23:25:29.000Z
2022-03-30T22:37:45.000Z
azure-mgmt-applicationinsights/azure/mgmt/applicationinsights/models/application_insights_component_quota_status.py
JonathanGailliez/azure-sdk-for-python
f0f051bfd27f8ea512aea6fc0c3212ee9ee0029b
[ "MIT" ]
54
2016-03-25T17:25:01.000Z
2018-10-22T17:27:54.000Z
azure-mgmt-applicationinsights/azure/mgmt/applicationinsights/models/application_insights_component_quota_status.py
JonathanGailliez/azure-sdk-for-python
f0f051bfd27f8ea512aea6fc0c3212ee9ee0029b
[ "MIT" ]
3
2016-05-03T20:49:46.000Z
2017-10-05T21:05:27.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 ...
36.270833
76
0.630672
2f2d98ce2e1e290120d8abb5fae6659817d7cc76
1,121
py
Python
tests/to_jsonschema/test_numeric_types.py
pglass/py-openapi-jsonschema-converter
ca84a49fc1e218ae4686d4ca6ee89781ac26c213
[ "MIT" ]
12
2018-12-10T19:11:47.000Z
2021-08-02T13:55:04.000Z
tests/to_jsonschema/test_numeric_types.py
pglass/py-openapi-jsonschema-converter
ca84a49fc1e218ae4686d4ca6ee89781ac26c213
[ "MIT" ]
6
2018-07-06T19:36:47.000Z
2020-07-27T18:43:50.000Z
tests/to_jsonschema/test_numeric_types.py
pglass/py-openapi-jsonschema-converter
ca84a49fc1e218ae4686d4ca6ee89781ac26c213
[ "MIT" ]
3
2018-07-05T23:06:18.000Z
2020-07-11T03:32:07.000Z
from openapi_schema_to_json_schema import to_json_schema as convert def test_handles_integer_types(): schema = { "type": 'integer', } result = convert(schema) expected = { "$schema": 'http://json-schema.org/draft-04/schema#', "type": 'integer', } assert result == expect...
22.42
67
0.537913
5dc13c32d5145aaa335dd450f44ebc648246494d
1,391
py
Python
src/app/rdfer.py
epoz/shmarql
16fde653a7e8fdf81d3ecbf7427bf2428932013f
[ "Unlicense" ]
null
null
null
src/app/rdfer.py
epoz/shmarql
16fde653a7e8fdf81d3ecbf7427bf2428932013f
[ "Unlicense" ]
null
null
null
src/app/rdfer.py
epoz/shmarql
16fde653a7e8fdf81d3ecbf7427bf2428932013f
[ "Unlicense" ]
null
null
null
import json, logging from .config import PREFIXES_FILEPATH, DEFAULT_PREFIXES try: if PREFIXES_FILEPATH: PREFIXES = json.load(open(PREFIXES_FILEPATH)) else: PREFIXES = DEFAULT_PREFIXES except: logging.exception(f"Problem binding PREFIXES from {PREFIXES_FILEPATH}") def prefixes(value): ...
26.75
76
0.580158
8ad7ac9d12fa58cd3c381c3b6d62e7c67f8173e0
9,277
py
Python
docs/source/conf.py
mousepawgames/ratscript
fcd5faf89aee52935626d8a628bb410ad7da208f
[ "BSD-3-Clause" ]
2
2019-10-07T02:57:36.000Z
2020-01-10T20:02:55.000Z
docs/source/conf.py
mousepawgames/ratscript
fcd5faf89aee52935626d8a628bb410ad7da208f
[ "BSD-3-Clause" ]
null
null
null
docs/source/conf.py
mousepawgames/ratscript
fcd5faf89aee52935626d8a628bb410ad7da208f
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- # # Ratscript documentation build configuration file, created by # sphinx-quickstart on Wed May 25 19:52:16 2016. # # This file is execfile()d with the current directory set to its # containing dir. # # Note that not all possible configuration values are present in this # ...
32.211806
80
0.71715
7ca300f1d3d1f9b919c8fc99aaa51d478a120c15
13,935
py
Python
assets/src/ba_data/python/bastd/ui/settings/keyboard.py
booklin/ballistica
c7835388313e2d100a27568aec46a57d938d6839
[ "MIT" ]
1
2020-04-04T01:32:29.000Z
2020-04-04T01:32:29.000Z
assets/src/ba_data/python/bastd/ui/settings/keyboard.py
Awesome-Logic/ballistica
233a4a4f7840c9c666a1809626b6993a4b145349
[ "MIT" ]
null
null
null
assets/src/ba_data/python/bastd/ui/settings/keyboard.py
Awesome-Logic/ballistica
233a4a4f7840c9c666a1809626b6993a4b145349
[ "MIT" ]
null
null
null
# Copyright (c) 2011-2020 Eric Froemling # # 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, merge, publish,...
43.546875
79
0.485684
5bf652148ef9303522bf45ed8274b945a849e2f3
3,041
py
Python
vunit/test/unit/test_database.py
imd1/vunit
c5693af6a46547da117f45d03e492ad17385b23f
[ "Artistic-2.0" ]
2
2021-05-13T19:57:55.000Z
2021-05-21T13:28:39.000Z
vunit/test/unit/test_database.py
imd1/vunit
c5693af6a46547da117f45d03e492ad17385b23f
[ "Artistic-2.0" ]
1
2018-06-17T18:01:25.000Z
2018-06-22T11:07:33.000Z
vunit/test/unit/test_database.py
imd1/vunit
c5693af6a46547da117f45d03e492ad17385b23f
[ "Artistic-2.0" ]
3
2020-01-17T08:27:53.000Z
2020-01-30T22:03:20.000Z
# This Source Code Form is subject to the terms of the Mozilla Public # License, v. 2.0. If a copy of the MPL was not distributed with this file, # You can obtain one at http://mozilla.org/MPL/2.0/. # # Copyright (c) 2015-2016, Lars Asplund lars.anders.asplund@gmail.com """ Test the database related classes """ impor...
31.677083
75
0.679382
70c8b930094ade0127354d3df22fe5c320409c5d
38,991
py
Python
src/transformers/models/roformer/modeling_flax_roformer.py
bhavika/transformers
65cf33e7e53cd46313f3655f274b3f6ca0fd679d
[ "Apache-2.0" ]
31
2022-02-02T13:13:41.000Z
2022-03-29T08:37:20.000Z
src/transformers/models/roformer/modeling_flax_roformer.py
guang7400613/transformers
28e091430eea9e0d40839e56fd0d57aec262f5f9
[ "Apache-2.0" ]
2
2022-03-14T10:13:16.000Z
2022-03-14T11:50:27.000Z
src/transformers/models/roformer/modeling_flax_roformer.py
guang7400613/transformers
28e091430eea9e0d40839e56fd0d57aec262f5f9
[ "Apache-2.0" ]
2
2022-03-21T04:32:39.000Z
2022-03-22T01:02:49.000Z
# coding=utf-8 # Copyright 2021 The HuggingFace Inc. team. All rights reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless r...
35.870285
119
0.669513
2d3e639a8421b13f82680aa2ab3a9dedc5444fcf
70,590
py
Python
ironic/drivers/modules/drac/raid.py
Hellcatlk/ironic
e15440370cca1f1a998d3607910697c3129d040a
[ "Apache-2.0" ]
1
2021-03-29T03:48:47.000Z
2021-03-29T03:48:47.000Z
ironic/drivers/modules/drac/raid.py
Hellcatlk/ironic
e15440370cca1f1a998d3607910697c3129d040a
[ "Apache-2.0" ]
null
null
null
ironic/drivers/modules/drac/raid.py
Hellcatlk/ironic
e15440370cca1f1a998d3607910697c3129d040a
[ "Apache-2.0" ]
null
null
null
# # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under...
40.96924
79
0.634424
02ed0e67c34d55f70445f5dbaa89364940472aba
50
py
Python
war3observer/__init__.py
sides/war3observer
898981ec73ba033f5f705098e13dd7f7de1f34e5
[ "MIT" ]
26
2019-12-15T11:10:19.000Z
2022-02-24T12:45:45.000Z
war3observer/__init__.py
warlockbrawl/war3observer
898981ec73ba033f5f705098e13dd7f7de1f34e5
[ "MIT" ]
9
2019-01-24T12:33:24.000Z
2019-11-09T00:37:04.000Z
war3observer/__init__.py
warlockbrawl/war3observer
898981ec73ba033f5f705098e13dd7f7de1f34e5
[ "MIT" ]
6
2019-01-12T18:14:52.000Z
2019-10-12T10:19:04.000Z
__version__ = '0.9.0' from .server import Server
12.5
26
0.72
3f7551930cf8a20062a20e8b7448ce8c2f087f55
14,509
py
Python
notion/store.py
yashgorana/notion-py
ef6d2ae58e50c2b3c95fa1e15250086db29e2400
[ "MIT" ]
null
null
null
notion/store.py
yashgorana/notion-py
ef6d2ae58e50c2b3c95fa1e15250086db29e2400
[ "MIT" ]
null
null
null
notion/store.py
yashgorana/notion-py
ef6d2ae58e50c2b3c95fa1e15250086db29e2400
[ "MIT" ]
null
null
null
import datetime import json import threading import uuid from collections import defaultdict from copy import deepcopy from dictdiffer import diff from inspect import signature from threading import Lock from pathlib import Path from tzlocal import get_localzone from .logger import logger from .settings import CACHE_...
35.216019
118
0.558067
b4f729116df73c24897dbd9b10c0de978895753d
5,119
py
Python
nuitka/build/SconsHacks.py
zu3st/Nuitka
41d002085dbd23b15d90b71b5cfbb51670402b16
[ "Apache-2.0" ]
null
null
null
nuitka/build/SconsHacks.py
zu3st/Nuitka
41d002085dbd23b15d90b71b5cfbb51670402b16
[ "Apache-2.0" ]
null
null
null
nuitka/build/SconsHacks.py
zu3st/Nuitka
41d002085dbd23b15d90b71b5cfbb51670402b16
[ "Apache-2.0" ]
null
null
null
# Copyright 2021, Kay Hayen, mailto:kay.hayen@gmail.com # # Part of "Nuitka", an optimizing Python compiler that is compatible and # integrates with CPython, but also works on its own. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in complianc...
26.117347
88
0.630787
4579996c11ebf106cf3d97a6b0ddcf8773bd986e
289
py
Python
leonardo_theme_portfolioitem/__init__.py
dresl/leonardo-theme-portfolioitem
d431f06d1a1c83a054585cb1c207b4d12302aaf6
[ "Apache-2.0" ]
null
null
null
leonardo_theme_portfolioitem/__init__.py
dresl/leonardo-theme-portfolioitem
d431f06d1a1c83a054585cb1c207b4d12302aaf6
[ "Apache-2.0" ]
null
null
null
leonardo_theme_portfolioitem/__init__.py
dresl/leonardo-theme-portfolioitem
d431f06d1a1c83a054585cb1c207b4d12302aaf6
[ "Apache-2.0" ]
null
null
null
LEONARDO_APPS = [ 'leonardo_theme_portfolioitem', 'leonardo_module_analytics', ] LEONARDO_CSS_FILES = [ 'css/animate.css', 'css/fakeLoader.css', 'css/nprogress.css', ] LEONARDO_JS_FILES = [ 'js/fakeLoader.min.js', 'js/portfolio.js', 'js/nprogress.js', ]
16.055556
35
0.650519
96ef9173b4431e5f4593119463d368d471582528
4,882
py
Python
doc/tutorials/1_basics/plot_6-mesh-quality-inspection.py
mjziebarth/gimli
196ac4d6dd67e0326cccc44a87b367f64051e490
[ "Apache-2.0" ]
224
2015-02-20T21:36:24.000Z
2022-03-30T07:27:43.000Z
doc/tutorials/1_basics/plot_6-mesh-quality-inspection.py
ivek1312/gimli
5fafebb7c96dd0e04e2616df402fa27a01609d63
[ "Apache-2.0" ]
341
2015-05-21T14:39:51.000Z
2022-03-31T01:54:07.000Z
doc/tutorials/1_basics/plot_6-mesh-quality-inspection.py
ivek1312/gimli
5fafebb7c96dd0e04e2616df402fa27a01609d63
[ "Apache-2.0" ]
107
2015-01-24T14:40:21.000Z
2022-02-25T12:12:13.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- r""" Quality of unstructured meshes ============================== **Problem:** Accurate numerical solutions require high quality meshes. In the case of unstructured triangular meshes (or tetrahedral meshes in 3D), relatively large and small angles can lead t...
39.370968
80
0.634166
a15c77a61dbde8440bd58a32d33ee5ac19361427
2,486
py
Python
lib/rucio/api/scope.py
fno2010/rucio
47e93cfbe5887071c70de4ba815c1bbdddfac2ce
[ "Apache-2.0" ]
null
null
null
lib/rucio/api/scope.py
fno2010/rucio
47e93cfbe5887071c70de4ba815c1bbdddfac2ce
[ "Apache-2.0" ]
null
null
null
lib/rucio/api/scope.py
fno2010/rucio
47e93cfbe5887071c70de4ba815c1bbdddfac2ce
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # Copyright CERN since 2012 # # 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 ...
31.468354
104
0.702333
1af77a97dd8ed343480b641737ff20ae7449a0f6
1,051
py
Python
pdfviewer/hoverbutton.py
Project-TRT/Enc-Viewer
42218945ffef23f27b7b699bcb56b039fe6a189c
[ "MIT" ]
37
2018-11-10T12:00:27.000Z
2022-03-22T04:03:39.000Z
pdfviewer/hoverbutton.py
Project-TRT/Enc-Viewer
42218945ffef23f27b7b699bcb56b039fe6a189c
[ "MIT" ]
null
null
null
pdfviewer/hoverbutton.py
Project-TRT/Enc-Viewer
42218945ffef23f27b7b699bcb56b039fe6a189c
[ "MIT" ]
20
2019-01-07T14:44:24.000Z
2022-02-02T17:05:34.000Z
from tkinter import * from PIL import Image, ImageTk from pdfviewer.tooltip import ToolTip class HoverButton(Button): def __init__(self, master, tool_tip=None, image_path=None, keep_pressed=False, **kw): Button.__init__(self, master=master, **kw) self.defaultBackground = self["background"] ...
32.84375
89
0.632731
0f5bca7405cbcbfa31cb3fd8bafb27bd83475474
7,661
py
Python
zzr_configs/rotated_blend_mask_add_atten_loss_used_PFN_with_ms_isaid.py
ZZR8066/AerialDetection
34c732b61d7df9a832a2a072e8b6abbe8031cb07
[ "Apache-2.0" ]
6
2020-07-30T02:45:35.000Z
2022-02-08T13:47:26.000Z
zzr_configs/rotated_blend_mask_add_atten_loss_used_PFN_with_ms_isaid.py
ZZR8066/AerialDetection_and_Segmenation
34c732b61d7df9a832a2a072e8b6abbe8031cb07
[ "Apache-2.0" ]
1
2020-07-25T12:51:10.000Z
2021-12-26T22:28:08.000Z
zzr_configs/rotated_blend_mask_add_atten_loss_used_PFN_with_ms_isaid.py
ZZR8066/AerialDetection_and_Segmenation
34c732b61d7df9a832a2a072e8b6abbe8031cb07
[ "Apache-2.0" ]
3
2020-11-09T03:11:16.000Z
2021-11-02T09:30:39.000Z
# model settings model = dict( type='RotateBlendMaskRCNN', # pretrained='/disk2/zzr/resnet50.pth', pretrained='/disk2/zzr/resnet101.pth', backbone=dict( type='ResNet', # depth=50, depth=101, num_stages=4, out_indices=(0, 1, 2, 3), frozen_stages=1, ...
31.142276
113
0.575773
a4bbd88c20e5ea0428d3c43d868f228a325854e7
2,748
py
Python
missile.py
teepster/thaipy_march2022
bf0a09ac6baa0f74b70b762e8890af6ef3375538
[ "MIT" ]
null
null
null
missile.py
teepster/thaipy_march2022
bf0a09ac6baa0f74b70b762e8890af6ef3375538
[ "MIT" ]
null
null
null
missile.py
teepster/thaipy_march2022
bf0a09ac6baa0f74b70b762e8890af6ef3375538
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 import pygame import math def blit_rotate(image, pos, originPos, angle): # https://stackoverflow.com/questions/59909942/how-can-you-rotate-an-image-around-an-off-center-pivot-in-pygame image_rect = image.get_rect(topleft = (pos[0] - originPos[0], pos[1]-originPos[1])) offset_center_to_pivot ...
36.64
113
0.725983
ac7f983673e43d6c09d2e53a917df9da118f3c82
2,133
py
Python
posts/api/views.py
videetssinghai/Blog-Rest-Api
e81e0c1969b170cb482d2fdf7f2883efc42c69db
[ "MIT" ]
null
null
null
posts/api/views.py
videetssinghai/Blog-Rest-Api
e81e0c1969b170cb482d2fdf7f2883efc42c69db
[ "MIT" ]
null
null
null
posts/api/views.py
videetssinghai/Blog-Rest-Api
e81e0c1969b170cb482d2fdf7f2883efc42c69db
[ "MIT" ]
null
null
null
from rest_framework.generics import (CreateAPIView, ListAPIView, RetrieveAPIView, DestroyAPIView, UpdateAPIView, RetrieveUpdateAPIView) from posts.models import Post from .serializers import PostListSerializer, PostDetailsSerializer, PostCreateUpdateSerializer from rest_framework.permissions import ( AllowAny, IsAuthen...
29.219178
135
0.742616
349e81c28085fd6fd2bec865c98a713e5798e909
2,342
py
Python
segint_research_django/segint_api/migrations/0028_auto_20200728_1508.py
VarianAPIs/SegInt-Research
3b7aa71ada46cbb35a428a00eb9f2a5c43f15d51
[ "MIT" ]
3
2021-04-15T14:24:24.000Z
2022-03-23T17:07:06.000Z
segint_research_django/segint_api/migrations/0028_auto_20200728_1508.py
VarianAPIs/SegInt-Research
3b7aa71ada46cbb35a428a00eb9f2a5c43f15d51
[ "MIT" ]
null
null
null
segint_research_django/segint_api/migrations/0028_auto_20200728_1508.py
VarianAPIs/SegInt-Research
3b7aa71ada46cbb35a428a00eb9f2a5c43f15d51
[ "MIT" ]
1
2021-04-21T15:05:09.000Z
2021-04-21T15:05:09.000Z
# Generated by Django 3.0.7 on 2020-07-28 15:08 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('segint_api', '0027_auto_20200728_1456'), ] operations = [ migrations.AlterField( model_name='modelchanneldescription', ...
31.648649
50
0.581554
4291e29250d29b1fa3e4d71a4d971224cb996bed
1,823
py
Python
222-Count-Complete-Tree-Nodes/solution01.py
Eroica-cpp/LeetCode
07276bd11558f3d0e32bec768b09e886de145f9e
[ "CC-BY-3.0", "MIT" ]
7
2015-05-05T22:21:30.000Z
2021-03-13T04:04:15.000Z
222-Count-Complete-Tree-Nodes/solution01.py
Eroica-cpp/LeetCode
07276bd11558f3d0e32bec768b09e886de145f9e
[ "CC-BY-3.0", "MIT" ]
null
null
null
222-Count-Complete-Tree-Nodes/solution01.py
Eroica-cpp/LeetCode
07276bd11558f3d0e32bec768b09e886de145f9e
[ "CC-BY-3.0", "MIT" ]
2
2018-12-26T08:13:25.000Z
2020-07-18T20:18:24.000Z
#!/usr/bin/python # ============================================================================== # Author: Tao Li (taoli@ucsd.edu) # Date: Jun 5, 2015 # Question: 222-Count-Complete-Tree-Nodes # Link: https://leetcode.com/problems/count-complete-tree-nodes/ # ================================================...
31.982456
80
0.503566
b893ae105e977247049473031958f9556ca969d9
995
py
Python
printing/fonts/__init__.py
notatallshaw/Grail-0.6
2b850a4a3dcfcb6cb4cf891f2c2f9ee0509c7b43
[ "CNRI-Jython" ]
22
2021-05-17T07:01:04.000Z
2021-10-31T09:03:29.000Z
printing/fonts/__init__.py
SimiCode/Grail-Web-Browser
16b86d3215068d334eacf6153b71a748eed53d3d
[ "CNRI-Jython" ]
17
2021-05-17T04:39:49.000Z
2021-09-06T14:50:39.000Z
printing/fonts/__init__.py
SimiCode/Grail-Web-Browser
16b86d3215068d334eacf6153b71a748eed53d3d
[ "CNRI-Jython" ]
6
2021-05-17T07:37:01.000Z
2022-01-09T10:26:24.000Z
"""PostScript font metrics package. This package is used by the html2ps.py standalone script, and Grail's PostScript printing dialog to gather the correct font metrics for printing. Exported functions: font_from_name(psfontname) returns a PSFont derived object for metrics calculation """ import regsub def...
28.428571
69
0.716583
32637b5b29c8a00f5ad349df629ccab239037fce
29,518
py
Python
Lib/test/test_threading.py
certik/python-3.2
8c024c1e08248a4640429e3761905ae308d64e44
[ "PSF-2.0" ]
1
2019-12-31T18:13:30.000Z
2019-12-31T18:13:30.000Z
Lib/test/test_threading.py
priya-sharma-prog/python-3.2
8c024c1e08248a4640429e3761905ae308d64e44
[ "PSF-2.0" ]
1
2019-07-04T09:18:21.000Z
2019-07-04T19:14:03.000Z
Lib/test/test_threading.py
priya-sharma-prog/python-3.2
8c024c1e08248a4640429e3761905ae308d64e44
[ "PSF-2.0" ]
13
2015-04-02T16:49:38.000Z
2021-10-17T20:14:14.000Z
# Very rudimentary test of threading module import test.support from test.support import verbose, strip_python_stderr, import_module import random import re import sys _thread = import_module('_thread') threading = import_module('threading') import time import unittest import weakref import os from test.script_helper ...
37.459391
87
0.57531
f92fbad81d7a62f2c6ac7c051f85b48923ed8a97
584
py
Python
packages/api-server/api_server/models/building_map.py
baviera08/romi-dashboard
ac3a15014ad3c3bdac523a6550934a06653cfba1
[ "Apache-2.0" ]
23
2021-04-13T23:01:12.000Z
2022-03-21T02:15:24.000Z
packages/api-server/api_server/models/building_map.py
baviera08/romi-dashboard
ac3a15014ad3c3bdac523a6550934a06653cfba1
[ "Apache-2.0" ]
326
2021-03-10T17:32:17.000Z
2022-03-30T04:42:14.000Z
packages/api-server/api_server/models/building_map.py
baviera08/romi-dashboard
ac3a15014ad3c3bdac523a6550934a06653cfba1
[ "Apache-2.0" ]
13
2021-04-10T10:33:36.000Z
2022-02-22T15:39:58.000Z
from typing import List from . import tortoise_models as ttm from .ros_pydantic import rmf_building_map_msgs class AffineImage(rmf_building_map_msgs.AffineImage): data: str class Level(rmf_building_map_msgs.Level): images: List[AffineImage] class BuildingMap(rmf_building_map_msgs.BuildingMap): levels...
24.333333
84
0.746575
d5703c466ba425597183a01b4ab1865e8a7f3b20
3,327
py
Python
home_server_config.py
eea/eea.docker.matrix.synapse
e90079e1b4b031388c616f89fd6bc7afdd936302
[ "Apache-2.0" ]
null
null
null
home_server_config.py
eea/eea.docker.matrix.synapse
e90079e1b4b031388c616f89fd6bc7afdd936302
[ "Apache-2.0" ]
1
2018-02-02T11:51:19.000Z
2018-02-02T16:58:59.000Z
home_server_config.py
eea/eea.docker.matrix.synapse
e90079e1b4b031388c616f89fd6bc7afdd936302
[ "Apache-2.0" ]
2
2018-04-16T13:02:21.000Z
2018-04-16T20:09:44.000Z
#!/usr/bin/env python import yaml import os import distutils.util import sys db_type = os.getenv('DATABASE', 'sqlite') postgres_host = os.getenv('POSTGRES_HOST', 'db') postgres_port = os.getenv('POSTGRES_PORT', 5432) db_name = os.getenv('DB_NAME', 'synapse') db_user = os.getenv('DB_USER', 'postgres') db_pasword = os...
40.084337
325
0.715359
139af67f3dc467e96089ee973a589e5779886a8a
2,128
py
Python
scripts/get_reaxys_data.py
SilviaAmAm/scscore
2d351ae1b6e390625c6ad56d50e4eb4ba0e20ece
[ "MIT" ]
57
2018-01-30T20:04:33.000Z
2022-03-29T11:30:56.000Z
scripts/get_reaxys_data.py
SilviaAmAm/scscore
2d351ae1b6e390625c6ad56d50e4eb4ba0e20ece
[ "MIT" ]
12
2018-02-05T16:49:44.000Z
2021-01-20T14:51:03.000Z
scripts/get_reaxys_data.py
SilviaAmAm/scscore
2d351ae1b6e390625c6ad56d50e4eb4ba0e20ece
[ "MIT" ]
29
2018-01-30T22:15:28.000Z
2022-03-09T20:03:43.000Z
import os from pymongo import MongoClient import rdkit.Chem as Chem ''' Get examples from Reaxys where... (a) we can parse the reactants and products (b) there is a single product (product salts == multiple products) (c) there is at least one instance that is explicitly single step This is meant to work wit...
38
117
0.663064
88ab6f32751baac31cda210300c417fd25c9bce1
2,852
py
Python
ayush/src/ayush/first_step_on_vertex_visit.py
Ayush8120/Improved-MR-DFS-PX4
1f64db7b801cb97a2ccb26a7de95d1c92b0666f4
[ "MIT" ]
6
2021-08-02T13:52:37.000Z
2022-02-23T11:47:33.000Z
ayush/src/ayush/first_step_on_vertex_visit.py
Ayush8120/Improved-MR-DFS-PX4
1f64db7b801cb97a2ccb26a7de95d1c92b0666f4
[ "MIT" ]
1
2021-07-30T20:46:19.000Z
2021-08-31T17:37:17.000Z
ayush/src/ayush/first_step_on_vertex_visit.py
Ayush8120/Improved-MR-DFS-PX4
1f64db7b801cb97a2ccb26a7de95d1c92b0666f4
[ "MIT" ]
1
2022-01-18T10:42:35.000Z
2022-01-18T10:42:35.000Z
import rospy import numpy as np import pandas as pd from ayush.initialize_graph import update_iteration, update_present_location from ayush.mergematrices import MergeMatrices from ayush.order_matrix import order_matrix ''' Class for representing the Completed Edge Attributes, contains: - row_tags : tags of the nod...
43.212121
130
0.674264
565a85cce4c38eb615396c9fd30126f9c7640047
10,952
py
Python
tests/unit/modules/test_services.py
mxswift/taurus
15c22226665367bd9d5ef4e2b98663d0535ff1a2
[ "Apache-2.0" ]
null
null
null
tests/unit/modules/test_services.py
mxswift/taurus
15c22226665367bd9d5ef4e2b98663d0535ff1a2
[ "Apache-2.0" ]
null
null
null
tests/unit/modules/test_services.py
mxswift/taurus
15c22226665367bd9d5ef4e2b98663d0535ff1a2
[ "Apache-2.0" ]
null
null
null
import json import os import shutil import zipfile from os.path import join from bzt import NormalShutdown, ToolError, TaurusConfigError from bzt.engine import Service, Provisioning, EngineModule from bzt.modules.blazemeter import CloudProvisioning from bzt.modules.services import Unpacker, InstallChecker, AndroidEmul...
42.449612
109
0.64244
751e50a54abecbd58af0d85f1980beef607fd401
8,364
py
Python
immutable/core_py3.py
khinsen/ImmutablePy
ddad7edf90bbf4ddb81daf9a189ea6f7796c1f16
[ "CECILL-B" ]
null
null
null
immutable/core_py3.py
khinsen/ImmutablePy
ddad7edf90bbf4ddb81daf9a189ea6f7796c1f16
[ "CECILL-B" ]
null
null
null
immutable/core_py3.py
khinsen/ImmutablePy
ddad7edf90bbf4ddb81daf9a189ea6f7796c1f16
[ "CECILL-B" ]
null
null
null
import abc import collections import itertools import types # # The metaclass is meant to be used only once, for defining the class # Immutable. Its role is to rename the __init__ method and to prevent # subclasses of Immutable to redefine mutation methods. # class ImmutableMeta(abc.ABCMeta): def __new__(mcls, na...
33.725806
78
0.632712
18b23486d9b547bf29e5ad177405304043378c68
7,278
py
Python
qiskit/aqua/components/optimizers/aqgd.py
Cristian-Malinescu/qiskit-aqua
b29596800447c3130a20ec72a18b7fd8ed9fdb2f
[ "Apache-2.0" ]
null
null
null
qiskit/aqua/components/optimizers/aqgd.py
Cristian-Malinescu/qiskit-aqua
b29596800447c3130a20ec72a18b7fd8ed9fdb2f
[ "Apache-2.0" ]
null
null
null
qiskit/aqua/components/optimizers/aqgd.py
Cristian-Malinescu/qiskit-aqua
b29596800447c3130a20ec72a18b7fd8ed9fdb2f
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # This code is part of Qiskit. # # (C) Copyright IBM 2019, 2020. # # This code is licensed under the Apache License, Version 2.0. You may # obtain a copy of this license in the LICENSE.txt file in the root directory # of this source tree or at http://www.apache.org/licenses/LICENSE-2.0. # # Any...
38.104712
97
0.620912
f39f8d815d870cd5792dbb2a04450890658e197f
57,487
py
Python
scripts/build_db_create_ignf_from_xml.py
asinghvi17/PROJ
a4c5cc1e42559f1d92c6b7655680d11f1eead703
[ "MIT" ]
null
null
null
scripts/build_db_create_ignf_from_xml.py
asinghvi17/PROJ
a4c5cc1e42559f1d92c6b7655680d11f1eead703
[ "MIT" ]
null
null
null
scripts/build_db_create_ignf_from_xml.py
asinghvi17/PROJ
a4c5cc1e42559f1d92c6b7655680d11f1eead703
[ "MIT" ]
null
null
null
#!/usr/bin/env python ############################################################################### # $Id$ # # Project: PROJ # Purpose: Build SRS and coordinate transform database from IGNF registry # Author: Even Rouault <even.rouault at spatialys.com> # #######################################################...
49.815425
619
0.623932
3f73b8b49f9ca7573e706080df70711d0a939ac8
883
py
Python
clients/kratos/python/test/test_error_container.py
UkonnRa/sdk
23ab5408a89cdf6ba7a6d8944f8d1b1cdc68aa4c
[ "Apache-2.0" ]
null
null
null
clients/kratos/python/test/test_error_container.py
UkonnRa/sdk
23ab5408a89cdf6ba7a6d8944f8d1b1cdc68aa4c
[ "Apache-2.0" ]
null
null
null
clients/kratos/python/test/test_error_container.py
UkonnRa/sdk
23ab5408a89cdf6ba7a6d8944f8d1b1cdc68aa4c
[ "Apache-2.0" ]
null
null
null
# coding: utf-8 """ Ory Kratos Welcome to the ORY Kratos HTTP API documentation! # noqa: E501 The version of the OpenAPI document: latest Generated by: https://openapi-generator.tech """ from __future__ import absolute_import import unittest import ory_kratos_client from ory_kratos_client.models...
22.075
89
0.711212
bf9c1adf9db28f0c0c8d681957ef2f58486a3ea6
4,692
py
Python
models/densenet.py
YZP17121579/network-slimming
2682de727f8cecd5b3c1472969357971bf52195a
[ "MIT" ]
1
2018-10-04T17:12:52.000Z
2018-10-04T17:12:52.000Z
models/densenet.py
YZP17121579/network-slimming
2682de727f8cecd5b3c1472969357971bf52195a
[ "MIT" ]
null
null
null
models/densenet.py
YZP17121579/network-slimming
2682de727f8cecd5b3c1472969357971bf52195a
[ "MIT" ]
1
2018-10-04T17:14:50.000Z
2018-10-04T17:14:50.000Z
import math import torch import torch.nn as nn import torch.nn.functional as F from torch.autograd import Variable from .channel_selection import channel_selection __all__ = ['densenet'] """ densenet with basic block. """ class BasicBlock(nn.Module): def __init__(self, inplanes, cfg, expansion=1, growthRate=12,...
34
113
0.583973
26efa9cd9d7cae255eda7f9c5e0c5c204337c52a
300
py
Python
instagram/json_import.py
EnjoyLifeFund/macHighSierra-py36-pkgs
5668b5785296b314ea1321057420bcd077dba9ea
[ "BSD-3-Clause", "BSD-2-Clause", "MIT" ]
2
2020-04-03T22:15:44.000Z
2022-02-26T05:22:55.000Z
instagram/json_import.py
EnjoyLifeFund/macHighSierra-py36-pkgs
5668b5785296b314ea1321057420bcd077dba9ea
[ "BSD-3-Clause", "BSD-2-Clause", "MIT" ]
6
2021-02-08T20:40:57.000Z
2022-02-20T07:19:56.000Z
my-project-env/lib/python3.6/site-packages/instagram/json_import.py
wizzicollo/animated-fiesta
92a449b4b632ece5a5c73b5344cafe02d8872586
[ "MIT" ]
null
null
null
try: import simplejson except ImportError: try: import json as simplejson except ImportError: try: from django.utils import simplejson except ImportError: raise ImportError('A json library is required to use this python library')
27.272727
87
0.63
acf6dede8bd2e838616ca2ac9069da77b8b0af50
2,024
py
Python
hax/hax/queue/cli.py
papan-singh/cortx-hare
4d6a533750dffe0b71c633a3707da79d9883b3dd
[ "Apache-2.0" ]
null
null
null
hax/hax/queue/cli.py
papan-singh/cortx-hare
4d6a533750dffe0b71c633a3707da79d9883b3dd
[ "Apache-2.0" ]
null
null
null
hax/hax/queue/cli.py
papan-singh/cortx-hare
4d6a533750dffe0b71c633a3707da79d9883b3dd
[ "Apache-2.0" ]
null
null
null
import logging import sys from typing import NamedTuple import click import inject from hax.common import di_configuration from hax.queue.publish import BQPublisher, EQPublisher, Publisher AppCtx = NamedTuple('AppCtx', [('payload', str), ('type', str), ('publisher', Publisher)]) def ...
31.138462
77
0.615613
0226e1eab3629f683c312a2f12f0fa38686de4ed
2,197
py
Python
nadypy/api/relay/get_relay_relay.py
Nadybot/nadypy
ae6cbb886d233fde491aee501cb72bf993f3a02f
[ "MIT" ]
null
null
null
nadypy/api/relay/get_relay_relay.py
Nadybot/nadypy
ae6cbb886d233fde491aee501cb72bf993f3a02f
[ "MIT" ]
null
null
null
nadypy/api/relay/get_relay_relay.py
Nadybot/nadypy
ae6cbb886d233fde491aee501cb72bf993f3a02f
[ "MIT" ]
null
null
null
from typing import Any, Dict, Optional, Union import httpx from ...client import AuthenticatedClient from ...models.relay_config import RelayConfig from ...types import Response def _get_kwargs( relay: str, *, client: AuthenticatedClient, ) -> Dict[str, Any]: url = "{}/relay/{relay}".format(client.b...
20.92381
86
0.634502
dc82cd5ae5343f8a9ef48f55edd931c506632cfe
229
py
Python
setup.py
showmethedatawiki/job_posts
2c711aaa924feac82f317fd1f7c8433705ddbcfc
[ "MIT" ]
null
null
null
setup.py
showmethedatawiki/job_posts
2c711aaa924feac82f317fd1f7c8433705ddbcfc
[ "MIT" ]
null
null
null
setup.py
showmethedatawiki/job_posts
2c711aaa924feac82f317fd1f7c8433705ddbcfc
[ "MIT" ]
null
null
null
#!/usr/bin/env python from job_posts import __version__ from distutils.core import setup setup(name="Data Scrap", version=__version__, description="Job posts data scrapper", author='Showmethedata.wiki' )
22.9
44
0.71179
d2598310e852cf771be8a080cf30899ce8ddce05
18,623
py
Python
benchmark/opperf/utils/op_registry_utils.py
lanking520/incubator-mxnet
755541cfe8bd8b8ca0e91414be29345a4ffe8333
[ "BSL-1.0", "Apache-2.0" ]
1
2021-05-07T10:49:37.000Z
2021-05-07T10:49:37.000Z
benchmark/opperf/utils/op_registry_utils.py
lanking520/incubator-mxnet
755541cfe8bd8b8ca0e91414be29345a4ffe8333
[ "BSL-1.0", "Apache-2.0" ]
null
null
null
benchmark/opperf/utils/op_registry_utils.py
lanking520/incubator-mxnet
755541cfe8bd8b8ca0e91414be29345a4ffe8333
[ "BSL-1.0", "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...
38.006122
136
0.675992
715b353571fe54c39a602fd48d630dd9b18e0025
1,878
py
Python
sopex/chunker.py
codemaniac/sopex
64a503ea9267a5a9ca18e40b026d5ac22c0e6ae8
[ "BSD-2-Clause" ]
10
2017-02-09T17:10:32.000Z
2021-10-20T17:03:27.000Z
machine_learning/ebook_mastering_ml_in_6_steps/Chapter_5_Code/Code/chunker.py
manual123/Nacho-Jupyter-Notebooks
e75523434b1a90313a6b44e32b056f63de8a7135
[ "MIT" ]
2
2017-02-20T13:43:40.000Z
2020-06-05T14:04:24.000Z
machine_learning/ebook_mastering_ml_in_6_steps/Chapter_5_Code/Code/chunker.py
manual123/Nacho-Jupyter-Notebooks
e75523434b1a90313a6b44e32b056f63de8a7135
[ "MIT" ]
3
2017-02-20T13:44:39.000Z
2020-06-05T13:53:10.000Z
#!/usr/bin/python # -*- coding: utf-8 -*- import os import simplejson as json import pyparsing from jpype import * class PennTreebackChunker(object): def __init__(self): path = os.path.realpath(__file__) path = path[:path.rfind(os.sep)] + os.sep + 'jars' classpath = os.pathsep.join(path+os.sep+jar for j...
37.56
89
0.697018
83ec198973cff51d85f5b52cb784630791b320f5
3,001
py
Python
ciara_python/ciara.py
ScialdoneLab/CIARA_python
6fea1bd716ea2624764c0166d55b524d6d72ead6
[ "MIT" ]
1
2022-03-28T17:37:03.000Z
2022-03-28T17:37:03.000Z
ciara_python/ciara.py
ScialdoneLab/CIARA_python
6fea1bd716ea2624764c0166d55b524d6d72ead6
[ "MIT" ]
null
null
null
ciara_python/ciara.py
ScialdoneLab/CIARA_python
6fea1bd716ea2624764c0166d55b524d6d72ead6
[ "MIT" ]
null
null
null
import numpy as np from scipy.stats import fisher_exact import scipy.sparse as sp import multiprocessing from functools import partial def perform_fisher(nn_gene_expression, binary_expression, p_value, odds_ratio=2): p_value_nn = 1 if np.sum(nn_gene_expression) != 0: input_fisher = np.array([[np.sum(...
38.474359
126
0.710097
54c6e840b17afd384f67919ef5019680c7e68c59
16,884
py
Python
src/azure-cli-core/azure/cli/core/_help.py
v-Ajnava/azure-cli
febec631d79bfca151e84267b5b409594bad598e
[ "MIT" ]
null
null
null
src/azure-cli-core/azure/cli/core/_help.py
v-Ajnava/azure-cli
febec631d79bfca151e84267b5b409594bad598e
[ "MIT" ]
3
2021-03-26T00:48:20.000Z
2022-03-29T22:05:39.000Z
src/azure-cli-core/azure/cli/core/_help.py
v-Ajnava/azure-cli
febec631d79bfca151e84267b5b409594bad598e
[ "MIT" ]
1
2017-12-28T04:51:44.000Z
2017-12-28T04:51:44.000Z
# -------------------------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # --------------------------------------------------------------------...
34.040323
118
0.601575
e3f8182d3984894a9a1fa757244178f9ce0e6846
1,024
py
Python
tests/test_java.py
eerimoq/pygments
3cd60987c27d2228ac46bfa2648e280aaaf61fc1
[ "BSD-2-Clause" ]
940
2019-08-23T13:08:46.000Z
2022-03-31T06:40:44.000Z
tests/test_java.py
eerimoq/pygments
3cd60987c27d2228ac46bfa2648e280aaaf61fc1
[ "BSD-2-Clause" ]
1,043
2019-08-22T12:22:28.000Z
2022-03-31T20:26:02.000Z
tests/test_java.py
eerimoq/pygments
3cd60987c27d2228ac46bfa2648e280aaaf61fc1
[ "BSD-2-Clause" ]
488
2019-09-19T14:27:19.000Z
2022-03-31T17:02:44.000Z
""" Basic JavaLexer Test ~~~~~~~~~~~~~~~~~~~~ :copyright: Copyright 2006-2021 by the Pygments team, see AUTHORS. :license: BSD, see LICENSE for details. """ import time import pytest from pygments.token import String from pygments.lexers import JavaLexer @pytest.fixture(scope='module') def lexer()...
24.97561
70
0.638672
f88f2896953faf3602311410cde2d0337795e50a
1,362
py
Python
portfolio/Python/scrapy/soundslive/andertons_spider.py
0--key/lib
ba7a85dda2b208adc290508ca617bdc55a5ded22
[ "Apache-2.0" ]
null
null
null
portfolio/Python/scrapy/soundslive/andertons_spider.py
0--key/lib
ba7a85dda2b208adc290508ca617bdc55a5ded22
[ "Apache-2.0" ]
null
null
null
portfolio/Python/scrapy/soundslive/andertons_spider.py
0--key/lib
ba7a85dda2b208adc290508ca617bdc55a5ded22
[ "Apache-2.0" ]
5
2016-03-22T07:40:46.000Z
2021-05-30T16:12:21.000Z
from scrapy.spider import BaseSpider from scrapy.selector import HtmlXPathSelector from scrapy.http import Request, HtmlResponse from scrapy.utils.url import urljoin_rfc from product_spiders.items import Product, ProductLoaderWithNameStrip as ProductLoader class AnderstonSpider(BaseSpider): name = 'andertons.co.u...
43.935484
86
0.610866
8cd86446f819518c4e652a6ded64d604f5984369
6,933
py
Python
Cogs/Utils.py
camielverdult/CorpBot.py
56cf3ee736625525d05f9f447b31e34baf93596d
[ "MIT" ]
null
null
null
Cogs/Utils.py
camielverdult/CorpBot.py
56cf3ee736625525d05f9f447b31e34baf93596d
[ "MIT" ]
null
null
null
Cogs/Utils.py
camielverdult/CorpBot.py
56cf3ee736625525d05f9f447b31e34baf93596d
[ "MIT" ]
null
null
null
import asyncio import discord import re from discord.ext import commands from Cogs import Nullify # bot = None # url_regex = re.compile(r"(http|ftp|https)://([\w_-]+(?:(?:\.[\w_-]+)+))([\w.,@?^=%&:/~+#-]*[\w@?^=%&/~+#-])?") def setup(bot): # This module isn't actually a cog - but it is a place # ...
47.486301
197
0.605221
b6df9c15b381875c93cc6c5ff2cec4f3b94c8446
879
py
Python
drfsample/ajaxsample/management/commands/sample.py
miveh/python_course
96730deb1a5c07125916d723ae02c85074b86817
[ "Apache-2.0" ]
11
2021-07-15T11:14:43.000Z
2022-02-08T08:19:57.000Z
drfsample/ajaxsample/management/commands/sample.py
miveh/python_course
96730deb1a5c07125916d723ae02c85074b86817
[ "Apache-2.0" ]
null
null
null
drfsample/ajaxsample/management/commands/sample.py
miveh/python_course
96730deb1a5c07125916d723ae02c85074b86817
[ "Apache-2.0" ]
39
2021-07-15T10:42:31.000Z
2021-07-25T13:44:25.000Z
from django.core.management.base import BaseCommand, CommandError class Command(BaseCommand): help = 'Closes the specified poll for voting' def add_arguments(self, parser): # parser.add_argument('number', type=int) parser.add_argument( '--delete', action='store_true', ...
32.555556
92
0.583618
7bb41476d4327ea71a9c75e4085c1946f4b0771a
8,805
py
Python
test/test_web_tiddler_revisions.py
tiddlyweb/tiddlyweb
376bcad280e24d2de4d74883dc4d8369abcb2c28
[ "BSD-3-Clause" ]
57
2015-02-01T21:03:34.000Z
2021-12-25T12:02:31.000Z
test/test_web_tiddler_revisions.py
tiddlyweb/tiddlyweb
376bcad280e24d2de4d74883dc4d8369abcb2c28
[ "BSD-3-Clause" ]
6
2016-02-05T11:43:32.000Z
2019-09-05T13:38:49.000Z
test/test_web_tiddler_revisions.py
tiddlyweb/tiddlyweb
376bcad280e24d2de4d74883dc4d8369abcb2c28
[ "BSD-3-Clause" ]
17
2015-05-12T08:53:23.000Z
2021-12-21T15:56:30.000Z
""" Test GETting a tiddler revision list. """ import simplejson from .fixtures import (muchdata, reset_textstore, _teststore, initialize_app, get_http) text_put_body = u"""modifier: JohnSmith created: modified: 200803030303 tags: [[tag three]] Hello, I'm John Smith \xbb and I have something to sell. """ ...
31.672662
101
0.640318
bd89b53ed8a19ba7b02ac4a1bf49ee30d309ea9d
1,259
py
Python
video_speed_benchmark.py
hajungong007/Dense-Head-Pose-Estimation
3cdb89c1cc1289d85b1e36787223636e7e42139d
[ "MIT" ]
1
2021-02-23T15:41:20.000Z
2021-02-23T15:41:20.000Z
video_speed_benchmark.py
hajungong007/Dense-Head-Pose-Estimation
3cdb89c1cc1289d85b1e36787223636e7e42139d
[ "MIT" ]
null
null
null
video_speed_benchmark.py
hajungong007/Dense-Head-Pose-Estimation
3cdb89c1cc1289d85b1e36787223636e7e42139d
[ "MIT" ]
null
null
null
#!/usr/bin/python3 # -*- coding:utf-8 -*- import numpy as np import sys import cv2 import service import time fd = service.UltraLightFaceDetecion("weights/RFB-320.tflite", conf_threshold=0.92) fa = service.DenseFaceReconstruction("weights/dense_face.tflite") mr = service.Triangles...
24.686275
75
0.636219
68e83e8b628c4c68b191b7c4262388105bfc4c07
192
py
Python
data/groups.py
isakhanian/python_training
689b1b4c6381c81b09c7df152d0d5f729a5abce6
[ "Apache-2.0" ]
null
null
null
data/groups.py
isakhanian/python_training
689b1b4c6381c81b09c7df152d0d5f729a5abce6
[ "Apache-2.0" ]
null
null
null
data/groups.py
isakhanian/python_training
689b1b4c6381c81b09c7df152d0d5f729a5abce6
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- from model.group import Group testdata = [ Group(name="name1", header="header1", footer="footer1"), Group(name="name2", header="header2", footer="footer2") ]
21.333333
60
0.640625
2cdc3baca7f4707d1ab8d5a66ca8fad1da065a2d
52,343
py
Python
test/requirements.py
thereisnosun/sqlalchemy
94aed8b17d21da9a20be4b092f6a60b12f60b761
[ "MIT" ]
null
null
null
test/requirements.py
thereisnosun/sqlalchemy
94aed8b17d21da9a20be4b092f6a60b12f60b761
[ "MIT" ]
null
null
null
test/requirements.py
thereisnosun/sqlalchemy
94aed8b17d21da9a20be4b092f6a60b12f60b761
[ "MIT" ]
1
2020-12-04T14:51:39.000Z
2020-12-04T14:51:39.000Z
"""Requirements specific to SQLAlchemy's own unit tests. """ import sys from sqlalchemy import exc from sqlalchemy.sql import text from sqlalchemy.testing import exclusions from sqlalchemy.testing.exclusions import against from sqlalchemy.testing.exclusions import fails_if from sqlalchemy.testing.exclusions import ...
30.753819
81
0.567182
deeea6ae92f000e272daa6bb9a9d0b1e7b7b69eb
1,892
py
Python
Tests/benchmarks/bench_microbenchmarks.py
CyberFlameGO/Pyjion
696ccb57f56036716e553711a00060a2c94ae817
[ "MIT" ]
null
null
null
Tests/benchmarks/bench_microbenchmarks.py
CyberFlameGO/Pyjion
696ccb57f56036716e553711a00060a2c94ae817
[ "MIT" ]
null
null
null
Tests/benchmarks/bench_microbenchmarks.py
CyberFlameGO/Pyjion
696ccb57f56036716e553711a00060a2c94ae817
[ "MIT" ]
null
null
null
def test_floats(n=100000): """ Test float/integer arithmetic """ for y in range(n): x = 0.1 z = y * y + x - y x *= z def test_ints(n=100000): """ Test integer arithmetic """ for y in range(n): x = 2 z = y * y + x - y x *= z def test_bigints(n=100000): ...
23.073171
83
0.486786
c47b994b224252997cb9179bb163356f12b60851
250
py
Python
code/utils/backend.py
wukailu/EDSR-PyTorch
5625cf83ce88050b68e649beb4155b32c38018fa
[ "MIT" ]
null
null
null
code/utils/backend.py
wukailu/EDSR-PyTorch
5625cf83ce88050b68e649beb4155b32c38018fa
[ "MIT" ]
null
null
null
code/utils/backend.py
wukailu/EDSR-PyTorch
5625cf83ce88050b68e649beb4155b32c38018fa
[ "MIT" ]
null
null
null
import os local_backend = os.getenv('LOCAL_BACKEND') if local_backend: from .local_backend import * else: if 'use_kubernets.backend' in os.listdir('.'): from .kubernetes_backend import * else: from .atlas_backend import *
25
50
0.688
a9b182a80363b33a5780a2b66dedeadc3e2e132f
3,392
py
Python
plugins/community/repos/Southpole/eurorack/elements/resources/resources.py
guillaume-plantevin/VeeSeeVSTRack
76fafc8e721613669d6f5ae82a0f58ce923a91e1
[ "Zlib", "BSD-3-Clause" ]
233
2018-07-02T16:49:36.000Z
2022-02-27T21:45:39.000Z
plugins/community/repos/Southpole/eurorack/elements/resources/resources.py
guillaume-plantevin/VeeSeeVSTRack
76fafc8e721613669d6f5ae82a0f58ce923a91e1
[ "Zlib", "BSD-3-Clause" ]
24
2018-07-09T11:32:15.000Z
2022-01-07T01:45:43.000Z
plugins/community/repos/Southpole/eurorack/elements/resources/resources.py
guillaume-plantevin/VeeSeeVSTRack
76fafc8e721613669d6f5ae82a0f58ce923a91e1
[ "Zlib", "BSD-3-Clause" ]
24
2018-07-14T21:55:30.000Z
2021-05-04T04:20:34.000Z
#!/usr/bin/python2.5 # # Copyright 2014 Olivier Gillet. # # Author: Olivier Gillet (ol.gillet@gmail.com) # # 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 witho...
38.988506
80
0.712264
1bcf00f4944af43d9c7015c05144ed56d4f6d816
2,041
py
Python
pykomposter/lib.py
algoravioli/pykomposter
84af1851477d003be4beed0cdbe0dd664ff150a1
[ "MIT" ]
null
null
null
pykomposter/lib.py
algoravioli/pykomposter
84af1851477d003be4beed0cdbe0dd664ff150a1
[ "MIT" ]
null
null
null
pykomposter/lib.py
algoravioli/pykomposter
84af1851477d003be4beed0cdbe0dd664ff150a1
[ "MIT" ]
null
null
null
import music21 import numpy as np import pandas as pd # function definitions import actions # behaviours: import behaviours # metabehaviours: import metabehaviours # microactions import microactions class pykomposter: def __init__(self): super(pykomposter, self).__init__() self.outlook = { ...
31.4
149
0.588927
2cc85d4bd905b49d4ddb9fb7094e59f5b5befe76
1,810
py
Python
Caffe/server.py
jingmingcn/blood-server
0bcc1fda5d05b8e5acca2c9ce6857c7963fb84b5
[ "Apache-2.0" ]
null
null
null
Caffe/server.py
jingmingcn/blood-server
0bcc1fda5d05b8e5acca2c9ce6857c7963fb84b5
[ "Apache-2.0" ]
null
null
null
Caffe/server.py
jingmingcn/blood-server
0bcc1fda5d05b8e5acca2c9ce6857c7963fb84b5
[ "Apache-2.0" ]
null
null
null
# -*- coding: UTF-8 -*- import BaseHTTPServer import json import numpy as np import base64 import caffe_predict #import caffe_train #服务器端配置 HOST_NAME = 'localhost' PORT_NUMBER = 9000 class JSONHandler(BaseHTTPServer.BaseHTTPRequestHandler): """处理接收到的POST请求""" def do_POST(self): response_code = 200 ...
27.846154
63
0.576796
1f4f7fb6d213f4208c7f5f3b368be72d9ff67177
23
py
Python
kb_python/__init__.py
Maarten-vd-Sande/kb_python
f9ec9c377b8e9f270a9b121285b0b6593942080f
[ "BSD-2-Clause" ]
null
null
null
kb_python/__init__.py
Maarten-vd-Sande/kb_python
f9ec9c377b8e9f270a9b121285b0b6593942080f
[ "BSD-2-Clause" ]
null
null
null
kb_python/__init__.py
Maarten-vd-Sande/kb_python
f9ec9c377b8e9f270a9b121285b0b6593942080f
[ "BSD-2-Clause" ]
null
null
null
__version__ = '0.24.4'
11.5
22
0.652174
fc445dae8405dad339ce95bf5e475c4c332ea1fc
995
py
Python
lms/models/enrollment_models.py
yankai14/event-management-telegram-bot-backend
c0b4b2294ab7d06100b221d9b41a8f52d500075d
[ "MIT" ]
null
null
null
lms/models/enrollment_models.py
yankai14/event-management-telegram-bot-backend
c0b4b2294ab7d06100b221d9b41a8f52d500075d
[ "MIT" ]
6
2021-06-28T07:23:15.000Z
2021-07-22T12:59:33.000Z
lms/models/enrollment_models.py
yankai14/event-management-telegram-bot-backend
c0b4b2294ab7d06100b221d9b41a8f52d500075d
[ "MIT" ]
null
null
null
from django.db import models from . import User, EventInstance class EventRole(models.IntegerChoices): PARTICIPANT = 1 FACILITATOR = 2 EVENT_ADMIN = 3 COORDINATOR = 4 LEAD = 5 class EnrollmentStatus(models.IntegerChoices): PENDING = 1 ENROLLED = 2 REJECTED = 3 WITHDRAWN = 4 AW...
35.535714
91
0.717588
b106f30d2329afde9c89183ffa7604eb902fab96
4,404
py
Python
cloudbaseinit/tests/plugins/windows/test_ntpclient.py
jstopinsek/bsd-cloudinit
57fb6a6367447102118ff8901bb93d7581d4ca13
[ "Apache-2.0" ]
74
2015-01-07T17:03:43.000Z
2022-02-06T17:08:54.000Z
cloudbaseinit/tests/plugins/windows/test_ntpclient.py
jstopinsek/bsd-cloudinit
57fb6a6367447102118ff8901bb93d7581d4ca13
[ "Apache-2.0" ]
26
2015-02-13T11:32:05.000Z
2020-11-13T15:02:03.000Z
cloudbaseinit/tests/plugins/windows/test_ntpclient.py
jstopinsek/bsd-cloudinit
57fb6a6367447102118ff8901bb93d7581d4ca13
[ "Apache-2.0" ]
40
2015-01-22T17:12:03.000Z
2021-12-09T20:37:35.000Z
# Copyright 2014 Cloudbase Solutions Srl # # 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 l...
41.942857
78
0.673252
c37e4960d4597f0c0b8f279479bb8a5f9e1baec3
6,486
py
Python
tests/test_integration.py
behzadhaghgoo/cml
e659c7ae10a52bbe1cbabf9d359aea43af19eb12
[ "MIT" ]
210
2018-10-17T01:04:48.000Z
2022-03-09T16:17:06.000Z
tests/test_integration.py
Zhiwei-Z/PrompLimitTest
9d109f1a604125411a1e7894c3222cd50a0ec975
[ "MIT" ]
13
2018-10-25T20:01:09.000Z
2022-01-24T13:11:24.000Z
tests/test_integration.py
Zhiwei-Z/PrompLimitTest
9d109f1a604125411a1e7894c3222cd50a0ec975
[ "MIT" ]
55
2018-10-18T22:00:51.000Z
2021-11-24T00:06:31.000Z
from meta_policy_search.baselines.linear_baseline import LinearFeatureBaseline from meta_policy_search.meta_algos.pro_mp import ProMP from meta_policy_search.samplers.meta_sampler import MetaSampler from meta_policy_search.samplers.meta_sample_processor import MetaSampleProcessor from meta_policy_search.policies.meta_g...
36.852273
114
0.573235
22a37b34c6ed009b071237dad6a3c900a387589e
3,974
py
Python
ptsemseg/models/modelTir3D.py
donghaozhang/fast_segmentation
6a9911e2fe7dedb6e432cb549334e7b0cd0a720d
[ "MIT" ]
8
2018-09-06T05:41:55.000Z
2018-12-25T15:57:03.000Z
ptsemseg/models/modelTir3D.py
donghaozhang/fast_segmentation
6a9911e2fe7dedb6e432cb549334e7b0cd0a720d
[ "MIT" ]
2
2018-09-29T08:56:49.000Z
2019-06-03T09:17:17.000Z
ptsemseg/models/modelTir3D.py
donghaozhang/fast_segmentation
6a9911e2fe7dedb6e432cb549334e7b0cd0a720d
[ "MIT" ]
4
2018-09-06T05:45:11.000Z
2019-08-26T00:48:26.000Z
import torch import torch.nn as nn from ptsemseg.models.layersTir3D import * class FCDenseNet(nn.Module): def __init__(self, in_channels=3, down_blocks=(5, 5, 5, 5, 5), up_blocks=(5, 5, 5, 5, 5), bottleneck_layers=5, growth_rate=16, out_chans_first_conv=48, n_classes=12): super().__init__() self.down_...
30.569231
84
0.690237
e5d0dc86537c993d5adb315799c674928aff2ec6
3,256
py
Python
ultra/ultra/baselines/td3/td3/config.py
isgeles/SMARTS
423275123ae4aab8b7d409140d82b50555a5267c
[ "MIT" ]
554
2020-10-16T02:30:35.000Z
2022-03-29T14:13:00.000Z
ultra/ultra/baselines/td3/td3/config.py
isgeles/SMARTS
423275123ae4aab8b7d409140d82b50555a5267c
[ "MIT" ]
917
2020-10-17T00:10:31.000Z
2022-03-31T23:00:47.000Z
ultra/ultra/baselines/td3/td3/config.py
isgeles/SMARTS
423275123ae4aab8b7d409140d82b50555a5267c
[ "MIT" ]
135
2020-10-20T01:44:49.000Z
2022-03-27T04:51:31.000Z
# MIT License # # Copyright (C) 2021. Huawei Technologies Co., Ltd. All rights reserved. # # 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 th...
40.197531
84
0.58231
99fe9bc77c2dbbf4915fc76838b07c9662c8e827
606
py
Python
timer.py
kovibalu/cnntools
083dd35dbe006d794e61a88cc6e0935a0c0298ff
[ "MIT" ]
1
2019-08-27T14:23:36.000Z
2019-08-27T14:23:36.000Z
timer.py
kovibalu/cnntools
083dd35dbe006d794e61a88cc6e0935a0c0298ff
[ "MIT" ]
1
2017-05-27T10:49:55.000Z
2017-05-27T10:49:55.000Z
timer.py
kovibalu/cnntools
083dd35dbe006d794e61a88cc6e0935a0c0298ff
[ "MIT" ]
null
null
null
import timeit from django.conf import settings class Timer: def __init__(self, message='Execution', force_show=False): self.message = message self.force_show = force_show def __enter__(self): self.start = timeit.default_timer() return self def __exit__(self, *args): ...
28.857143
78
0.658416
4c832896fd032a16adaab55464c58871ed0f0851
5,636
py
Python
gam/clustering.py
timwong101/project-gam
6a0b87418091772517e2f3b2339e8998c43ffc54
[ "Apache-2.0" ]
null
null
null
gam/clustering.py
timwong101/project-gam
6a0b87418091772517e2f3b2339e8998c43ffc54
[ "Apache-2.0" ]
null
null
null
gam/clustering.py
timwong101/project-gam
6a0b87418091772517e2f3b2339e8998c43ffc54
[ "Apache-2.0" ]
1
2020-11-18T02:30:19.000Z
2020-11-18T02:30:19.000Z
""" Implementation of kmedoids using custom distance metric Adaped from https://raw.githubusercontent.com/shenxudeu/K_Medoids/master/k_medoids.py TODO: - refactor and test components of implementation """ from copy import deepcopy import matplotlib.pyplot as plt import numpy as np from sklearn.metrics import pairwise...
32.205714
87
0.521647
9392e50db017a9484708ad15a92af15c7178a059
7,266
py
Python
multiinput/generate_configs.py
NeilBotelho/ibm-fl
24acd94086f2a68b6f471c7e9fe2794f31315b5f
[ "IBM-pibs" ]
2
2020-12-02T10:59:48.000Z
2021-11-30T01:11:53.000Z
multiinput/generate_configs.py
NeilBotelho/ibm-fl
24acd94086f2a68b6f471c7e9fe2794f31315b5f
[ "IBM-pibs" ]
null
null
null
multiinput/generate_configs.py
NeilBotelho/ibm-fl
24acd94086f2a68b6f471c7e9fe2794f31315b5f
[ "IBM-pibs" ]
1
2020-12-02T10:59:49.000Z
2020-12-02T10:59:49.000Z
#!/usr/bin/env python3 import argparse import os import time import yaml import sys from importlib import import_module fl_path = os.path.abspath('.') if fl_path not in sys.path: sys.path.append(fl_path) from research.constants import GENERATE_CONFIG_DESC, NUM_PARTIES_DESC, \ PATH_CONFIG_DESC, MODEL_CONFIG_D...
30.024793
115
0.64327
74f385d53e5dd31bf1430082c9dcff46b4875e12
27,046
py
Python
gpMgmt/bin/lib/pysync.py
nurikk/gpdb
04fe0202c59721826d1eda2b19d73e5572893fcb
[ "PostgreSQL", "Apache-2.0" ]
3
2017-12-10T16:41:21.000Z
2020-07-08T12:59:12.000Z
gpMgmt/bin/lib/pysync.py
guofengrichard/gpdb
29bdd6ef38d8d9b9cb04ca31d44e279eb9f640d3
[ "PostgreSQL", "Apache-2.0" ]
null
null
null
gpMgmt/bin/lib/pysync.py
guofengrichard/gpdb
29bdd6ef38d8d9b9cb04ca31d44e279eb9f640d3
[ "PostgreSQL", "Apache-2.0" ]
4
2017-12-10T16:41:35.000Z
2020-11-28T12:20:30.000Z
#!/usr/bin/env python import os,sys if sys.hexversion<0x2040400: sys.stderr.write("pysync.py needs python version at least 2.4.4.\n") sys.stderr.write("You are using %s\n"%sys.version) sys.stderr.write("Here is a guess at where the python executable is--\n") os.system("/bin/sh -c 'type python>&2'"); ...
40.367164
141
0.562819
e9f33b392dfc2b5d78d00857fa40e7cb613fecf2
1,162
py
Python
via_cms/model/feed/feed_dao.py
jeanjacquesp/via-cms
12b212f8005e3d667c23ffc4da831e4d3e653999
[ "MIT" ]
null
null
null
via_cms/model/feed/feed_dao.py
jeanjacquesp/via-cms
12b212f8005e3d667c23ffc4da831e4d3e653999
[ "MIT" ]
null
null
null
via_cms/model/feed/feed_dao.py
jeanjacquesp/via-cms
12b212f8005e3d667c23ffc4da831e4d3e653999
[ "MIT" ]
null
null
null
# Copyright 2020 Pax Syriana Foundation. Licensed under the Apache License, Version 2.0 # from via_cms.extension import db from via_cms.model._database import Model ID_NONE = 0 ID_NEWS = 1 ID_FINANCE = 2 ID_DOCUMENT = 3 class Feed(Model): __tablename__ = 'feed_tbl' # flask packages: required to name the i...
29.05
88
0.571429
ead6b47c0ad3f8458192fe9f4850033f9acd6d48
16,284
py
Python
src/compas/geometry/shapes/box.py
franaudo/compas
8b2982a1c31e87d1a6740864476d6242612dc3dd
[ "MIT" ]
2
2021-03-17T18:14:22.000Z
2021-09-19T13:50:02.000Z
src/compas/geometry/shapes/box.py
franaudo/compas
8b2982a1c31e87d1a6740864476d6242612dc3dd
[ "MIT" ]
null
null
null
src/compas/geometry/shapes/box.py
franaudo/compas
8b2982a1c31e87d1a6740864476d6242612dc3dd
[ "MIT" ]
null
null
null
from __future__ import absolute_import from __future__ import division from __future__ import print_function from compas.geometry import centroid_points from compas.geometry import transform_points from compas.geometry import Transformation from compas.geometry import Frame from compas.geometry import Vector from ._s...
28.468531
112
0.522046
7195d9be67cb05960bc9134551214e2155f85a44
758
py
Python
breveIDE_windows_2.7.2_2/breveIDE_2.7.2/demos/Programming-Examples/SoundExample.py
Lamouse/Evolutionary-Creativity
9e9a4094285241d0541e0b87a3bd2c5e4ba804d3
[ "MIT" ]
null
null
null
breveIDE_windows_2.7.2_2/breveIDE_2.7.2/demos/Programming-Examples/SoundExample.py
Lamouse/Evolutionary-Creativity
9e9a4094285241d0541e0b87a3bd2c5e4ba804d3
[ "MIT" ]
null
null
null
breveIDE_windows_2.7.2_2/breveIDE_2.7.2/demos/Programming-Examples/SoundExample.py
Lamouse/Evolutionary-Creativity
9e9a4094285241d0541e0b87a3bd2c5e4ba804d3
[ "MIT" ]
null
null
null
# Note: this file was automatically converted to Python from the # original steve-language source code. Please see the original # file for more detailed comments and documentation. import breve class myController( breve.Control ): def __init__( self ): breve.Control.__init__( self ) self.sound = None myCont...
22.294118
74
0.725594
89f5acef06ff4721bfb6076de2293a4e4e1c0a0a
7,035
py
Python
pipeline/recon/amass.py
bamhm182/recon-pipeline
7659658ec706ff7a523231ca5bf04ec464b5ae49
[ "MIT" ]
352
2020-01-22T13:36:11.000Z
2022-03-22T19:37:24.000Z
pipeline/recon/amass.py
bamhm182/recon-pipeline
7659658ec706ff7a523231ca5bf04ec464b5ae49
[ "MIT" ]
72
2020-01-24T04:53:52.000Z
2021-07-14T19:23:29.000Z
pipeline/recon/amass.py
bamhm182/recon-pipeline
7659658ec706ff7a523231ca5bf04ec464b5ae49
[ "MIT" ]
86
2020-01-23T09:20:51.000Z
2022-03-03T08:04:37.000Z
import json import subprocess from pathlib import Path import luigi from luigi.util import inherits from luigi.contrib.sqla import SQLAlchemyTarget import pipeline.models.db_manager from ..tools import tools from .targets import TargetList from .helpers import meets_requirements from ..models.target_model import Targ...
33.660287
117
0.612367
4fce1782666b62940b9d0f65857c8b9d8725f82b
9,138
py
Python
resource/lib/python2.7/site-packages/Crypto/SelfTest/Hash/test_keccak.py
claudiopastorini/geofire-python
274e1b1d733a1158e4f36de40f0349dbc1ff6c34
[ "MIT" ]
5
2018-01-18T11:39:23.000Z
2022-01-01T11:38:40.000Z
resource/lib/python2.7/site-packages/Crypto/SelfTest/Hash/test_keccak.py
claudiopastorini/geofire-python
274e1b1d733a1158e4f36de40f0349dbc1ff6c34
[ "MIT" ]
4
2017-02-20T02:33:48.000Z
2017-02-20T04:10:16.000Z
resource/lib/python2.7/site-packages/Crypto/SelfTest/Hash/test_keccak.py
claudiopastorini/geofire-python
274e1b1d733a1158e4f36de40f0349dbc1ff6c34
[ "MIT" ]
4
2018-01-18T11:32:38.000Z
2021-11-25T23:28:04.000Z
# =================================================================== # # Copyright (c) 2015, Legrandin <helderijs@gmail.com> # 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. Redistributio...
36.261905
88
0.598271
f3fe7b95d5b3d39e931c0cd153fadaa94b7a1368
5,987
py
Python
_build/jupyter_execute/ch05/ch5_1.py
liuzhengqi1996/math452
635b6ce53cb792e316abf4f47396f2e4f0686815
[ "MIT" ]
null
null
null
_build/jupyter_execute/ch05/ch5_1.py
liuzhengqi1996/math452
635b6ce53cb792e316abf4f47396f2e4f0686815
[ "MIT" ]
null
null
null
_build/jupyter_execute/ch05/ch5_1.py
liuzhengqi1996/math452
635b6ce53cb792e316abf4f47396f2e4f0686815
[ "MIT" ]
null
null
null
#!/usr/bin/env python # coding: utf-8 # # 5.1 Weierstrass Theorem # # To approximate any continuous function, a very simple idea is to # approximate the function in a polynomial space. An important property of # this space is that polynomials can approximate any reasonable function! # # - $P_n(\mathbb{R}^d)$ is de...
32.362162
124
0.611993
9f7afe044bc1f51397a1dcedf5104c7edf98933b
2,612
py
Python
schengen.py
ThiccPadx/despanatun_project
2a8210879a4bbd93f311ed99658057820032f681
[ "MIT" ]
1
2022-02-26T21:21:26.000Z
2022-02-26T21:21:26.000Z
schengen.py
ThiccPadx/despanatun_project
2a8210879a4bbd93f311ed99658057820032f681
[ "MIT" ]
null
null
null
schengen.py
ThiccPadx/despanatun_project
2a8210879a4bbd93f311ed99658057820032f681
[ "MIT" ]
null
null
null
import os import time from selenium import webdriver from selenium.common.exceptions import TimeoutException from selenium.webdriver.common.keys import Keys from selenium.webdriver.chrome.options import Options import subprocess # Uncomment to check if alerting works # playAlert() # If it doesn't work, install mpg123...
30.372093
112
0.655436
07aa2cb23ed59451dc98842777c78e4697b66124
667
py
Python
Recommender/recommender/test_functions.py
jesierski/early-sunrise
b39b983fdbd67cd1c264773b1a511b8b76d3346d
[ "MIT" ]
3
2021-03-01T09:41:11.000Z
2021-10-31T20:55:42.000Z
Recommender/recommender/test_functions.py
jesierski/early-sunrise
b39b983fdbd67cd1c264773b1a511b8b76d3346d
[ "MIT" ]
null
null
null
Recommender/recommender/test_functions.py
jesierski/early-sunrise
b39b983fdbd67cd1c264773b1a511b8b76d3346d
[ "MIT" ]
null
null
null
import pandas as pd from functions import get_ratings, get_movies, make_df, impute from for_model import get_scores from recommender_cosim import get_scores2 def test_rating_in(): df = get_ratings() assert isinstance(df, pd.DataFrame) def test_movies_in(): df = get_movies() assert isinstance(df, pd.Da...
33.35
95
0.722639
bd6f10680719a2488234d45b72c55e2b7fa57565
2,046
py
Python
NewsRecommendation/src/model/NAML/fm.py
ustcsky/recommenders
64f0dd4653cf7f1d687c45c61807841415e111c7
[ "MIT" ]
null
null
null
NewsRecommendation/src/model/NAML/fm.py
ustcsky/recommenders
64f0dd4653cf7f1d687c45c61807841415e111c7
[ "MIT" ]
null
null
null
NewsRecommendation/src/model/NAML/fm.py
ustcsky/recommenders
64f0dd4653cf7f1d687c45c61807841415e111c7
[ "MIT" ]
null
null
null
import torch import torch.nn as nn import torch.nn.functional as F import torch class FM_Layer(nn.Module): def __init__(self, n=10, k=5): super(FM_Layer, self).__init__() self.n = n self.k = k self.linear = nn.Linear(self.n, 1) # 前两项线性层 self.V = nn.Parameter(torch.randn(se...
38.603774
91
0.634409
43db65ecfa2da59037af4de4e36f1c29739626dc
2,246
py
Python
data_scripts/cache_to_cache.py
GabeWeiss/break_data_bank
cfd97a436270768aade5aaf529e4871164ac4f9c
[ "Apache-2.0" ]
null
null
null
data_scripts/cache_to_cache.py
GabeWeiss/break_data_bank
cfd97a436270768aade5aaf529e4871164ac4f9c
[ "Apache-2.0" ]
null
null
null
data_scripts/cache_to_cache.py
GabeWeiss/break_data_bank
cfd97a436270768aade5aaf529e4871164ac4f9c
[ "Apache-2.0" ]
null
null
null
import argparse import sys from google.cloud import firestore parser = argparse.ArgumentParser() # TODO: Add ability to set seed and transfer directly to production #parser.add_argument("-s", "--seed") parser.add_argument("--seed", required=True) args = parser.parse_args() db = firestore.Client() try: SEED = in...
35.09375
195
0.645147
e823619137cc103ba915a752539dd2229d123100
45
py
Python
__init__.py
caokai1073/UTA
352719118cdebb25ccde6e22928676b83b38cd41
[ "MIT" ]
18
2020-02-05T00:49:19.000Z
2022-01-12T03:32:31.000Z
__init__.py
caokai1073/UTA
352719118cdebb25ccde6e22928676b83b38cd41
[ "MIT" ]
3
2020-12-29T07:18:50.000Z
2022-01-19T04:17:41.000Z
__init__.py
caokai1073/UTA
352719118cdebb25ccde6e22928676b83b38cd41
[ "MIT" ]
4
2020-06-04T10:00:25.000Z
2020-11-01T11:50:34.000Z
#!/usr/bin/env python # encoding=utf-8
9
22
0.6
1a228c63aa7e1b96d18566073239739e8d0dcaf0
5,223
py
Python
samples/dnn/segmentation.py
artun3e/opencv
524a2fffe96195b906a95b548b0a185d3251eb7e
[ "BSD-3-Clause" ]
5
2015-04-13T01:45:39.000Z
2017-03-07T10:35:28.000Z
samples/dnn/segmentation.py
artun3e/opencv
524a2fffe96195b906a95b548b0a185d3251eb7e
[ "BSD-3-Clause" ]
4
2019-02-18T14:09:16.000Z
2019-09-30T11:01:03.000Z
samples/dnn/segmentation.py
artun3e/opencv
524a2fffe96195b906a95b548b0a185d3251eb7e
[ "BSD-3-Clause" ]
3
2015-02-09T08:29:48.000Z
2016-06-28T07:47:04.000Z
import cv2 as cv import argparse import numpy as np import sys from common import * backends = (cv.dnn.DNN_BACKEND_DEFAULT, cv.dnn.DNN_BACKEND_HALIDE, cv.dnn.DNN_BACKEND_INFERENCE_ENGINE, cv.dnn.DNN_BACKEND_OPENCV) targets = (cv.dnn.DNN_TARGET_CPU, cv.dnn.DNN_TARGET_OPENCL, cv.dnn.DNN_TARGET_OPENCL_FP16, cv.dnn.DNN_T...
40.804688
130
0.640245
023e8a5a01d92a08250536cfd4a17119758299ac
3,674
py
Python
reana_cluster/cli/__init__.py
BenGalewsky/reana-cluster
b631360d92886b760d56d47686774537aa4b1db5
[ "MIT" ]
1
2019-06-27T01:21:02.000Z
2019-06-27T01:21:02.000Z
reana_cluster/cli/__init__.py
BenGalewsky/reana-cluster
b631360d92886b760d56d47686774537aa4b1db5
[ "MIT" ]
null
null
null
reana_cluster/cli/__init__.py
BenGalewsky/reana-cluster
b631360d92886b760d56d47686774537aa4b1db5
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # # This file is part of REANA. # Copyright (C) 2017, 2018 CERN. # # REANA is free software; you can redistribute it and/or modify it # under the terms of the MIT License; see LICENSE file for more details. """REANA cluster command line interface.""" import logging import sys import click fro...
30.363636
79
0.637452
b23cb0829cc5f3bc93031c9d6b9de2aaf7826180
20,647
py
Python
tests/plugins/different_versions/rdflib3_1_0/env/lib/python2.7/site-packages/rdflib/plugins/memory.py
EliAndrewC/sideboard
81f0099f4c03e7abb5856e046539aa033ecf04f9
[ "BSD-3-Clause" ]
3
2015-01-12T16:16:50.000Z
2020-03-20T03:22:36.000Z
lib/rdflib/plugins/memory.py
mhausenblas/madr
aaae3fa6a68cc56978873e329f4886ec0bc11b9c
[ "Apache-2.0" ]
null
null
null
lib/rdflib/plugins/memory.py
mhausenblas/madr
aaae3fa6a68cc56978873e329f4886ec0bc11b9c
[ "Apache-2.0" ]
null
null
null
from __future__ import generators from rdflib.term import BNode from rdflib.store import Store, NO_STORE, VALID_STORE ANY = Any = None class Memory(Store): """\ An in memory implementation of a triple store. This triple store uses nested dictionaries to store triples. Each triple is stored in two...
36.738434
92
0.50758
5dade8eeb2af37457bcc7cd82e980bf254e746b4
1,492
py
Python
homeassistant/components/websocket_api/permissions.py
MrDelik/core
93a66cc357b226389967668441000498a10453bb
[ "Apache-2.0" ]
30,023
2016-04-13T10:17:53.000Z
2020-03-02T12:56:31.000Z
homeassistant/components/websocket_api/permissions.py
MrDelik/core
93a66cc357b226389967668441000498a10453bb
[ "Apache-2.0" ]
31,101
2020-03-02T13:00:16.000Z
2022-03-31T23:57:36.000Z
homeassistant/components/websocket_api/permissions.py
Vaarlion/core
f3de8b9f28de01abf72c0f5bb0b457eb1841f201
[ "Apache-2.0" ]
11,956
2016-04-13T18:42:31.000Z
2020-03-02T09:32:12.000Z
"""Permission constants for the websocket API. Separate file to avoid circular imports. """ from __future__ import annotations from typing import Final from homeassistant.components.frontend import EVENT_PANELS_UPDATED from homeassistant.components.lovelace.const import EVENT_LOVELACE_UPDATED from homeassistant.comp...
33.909091
87
0.835791
e102fc5cccbcf6941fee158c3a2b9046dc0dd6d6
997
py
Python
lib_rovpp/tests/yaml_system_tests/subprefix_graph_13/test_subprefix_prefix_01.py
jfuruness/lib_rovpp
67032c2dc296fa1804a8305d8cb671339b8e45e0
[ "BSD-3-Clause" ]
1
2021-09-27T14:20:12.000Z
2021-09-27T14:20:12.000Z
lib_rovpp/tests/yaml_system_tests/subprefix_graph_13/test_subprefix_prefix_01.py
jfuruness/lib_rovpp
67032c2dc296fa1804a8305d8cb671339b8e45e0
[ "BSD-3-Clause" ]
null
null
null
lib_rovpp/tests/yaml_system_tests/subprefix_graph_13/test_subprefix_prefix_01.py
jfuruness/lib_rovpp
67032c2dc296fa1804a8305d8cb671339b8e45e0
[ "BSD-3-Clause" ]
1
2021-10-01T16:30:33.000Z
2021-10-01T16:30:33.000Z
from pathlib import Path from lib_bgp_simulator import BaseGraphSystemTester from lib_bgp_simulator import BGPSimpleAS from lib_bgp_simulator import ROVSimpleAS from lib_bgp_simulator import Graph013 from ..unstable import Unstable from ....as_classes import ROVPPV1SimpleAS from ....as_classes import ROVPPV2SimpleAS ...
26.236842
61
0.822467
fe93aed7cc37061c0b4d50fabc8933c6640df7ea
1,487
py
Python
texar/tf/modules/encoders/encoder_base.py
jiajunhua/asyml-texar
22d7b8eea5bd43eef68b615ba87b2e8220bafdf8
[ "Apache-2.0" ]
1
2020-09-18T04:36:43.000Z
2020-09-18T04:36:43.000Z
texar/tf/modules/encoders/encoder_base.py
jiajunhua/asyml-texar
22d7b8eea5bd43eef68b615ba87b2e8220bafdf8
[ "Apache-2.0" ]
6
2020-09-26T01:31:48.000Z
2021-08-25T16:13:51.000Z
texar/tf/modules/encoders/encoder_base.py
jiajunhua/asyml-texar
22d7b8eea5bd43eef68b615ba87b2e8220bafdf8
[ "Apache-2.0" ]
null
null
null
# Copyright 2018 The Texar 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 applicable ...
26.553571
74
0.67922
cdd24175e2b1406e8d9e4109017da21ac2da2b34
157,610
py
Python
scipy/special/add_newdocs.py
luispedro/scipy
0fcbbfdbee1297a93f9fd2335770efe62ff8b5ac
[ "BSD-3-Clause" ]
null
null
null
scipy/special/add_newdocs.py
luispedro/scipy
0fcbbfdbee1297a93f9fd2335770efe62ff8b5ac
[ "BSD-3-Clause" ]
null
null
null
scipy/special/add_newdocs.py
luispedro/scipy
0fcbbfdbee1297a93f9fd2335770efe62ff8b5ac
[ "BSD-3-Clause" ]
null
null
null
# Docstrings for generated ufuncs # # The syntax is designed to look like the function add_newdoc is being # called from numpy.lib, but in this file add_newdoc puts the # docstrings in a dictionary. This dictionary is used in # generate_ufuncs.py to generate the docstrings for the ufuncs in # scipy.special at the C lev...
24.816564
194
0.596548
d7747391026b69a1399a5dea21954ed10139c60e
240
py
Python
args_kwargs.py
jnwanya/python-basic-lesson
d9afd21c6d2d8914a54210432d01936c630b5ee7
[ "MIT" ]
null
null
null
args_kwargs.py
jnwanya/python-basic-lesson
d9afd21c6d2d8914a54210432d01936c630b5ee7
[ "MIT" ]
null
null
null
args_kwargs.py
jnwanya/python-basic-lesson
d9afd21c6d2d8914a54210432d01936c630b5ee7
[ "MIT" ]
null
null
null
def my_method(arg1, arg2, arg3): return arg1 + arg2 + arg3 def long_arg_method(*args): return sum(args) def kwargs_method(*args, **kwargs): print(args) print(kwargs) kwargs_method(1, 2, 45, name='John', location='UK')
16
51
0.658333
0eb910fabfec73f706194e2331f6e71b7f7d512e
25,639
py
Python
aicsimageio/formats.py
griffinfujioka/aicsimageio
c49a613dc54381d11237240ba36f0ef54603a7d6
[ "BSD-3-Clause" ]
null
null
null
aicsimageio/formats.py
griffinfujioka/aicsimageio
c49a613dc54381d11237240ba36f0ef54603a7d6
[ "BSD-3-Clause" ]
null
null
null
aicsimageio/formats.py
griffinfujioka/aicsimageio
c49a613dc54381d11237240ba36f0ef54603a7d6
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- from typing import Dict, List ############################################################################### # The order of the readers in this impl dict is important. # # Example: # if TiffReader was placed before OmeTiffReader, # we would never hit the OmeTiffReader ...
52.755144
84
0.727954
6a7e5c7b4dec5291193355dc96194901de773799
3,834
py
Python
generator.py
kholohan/chexnet
e8cb9bf2365326210d64b09ccfd503a858485941
[ "MIT" ]
16
2018-12-23T22:19:47.000Z
2020-08-13T16:30:33.000Z
generator.py
kholohan/chexnet
e8cb9bf2365326210d64b09ccfd503a858485941
[ "MIT" ]
21
2018-10-18T16:29:49.000Z
2021-06-16T12:15:58.000Z
generator.py
kholohan/chexnet
e8cb9bf2365326210d64b09ccfd503a858485941
[ "MIT" ]
12
2018-12-23T22:19:53.000Z
2020-12-21T12:06:09.000Z
import numpy as np import os import pandas as pd from keras.utils import Sequence from PIL import Image from skimage.transform import resize class AugmentedImageSequence(Sequence): """ Class for generating augmented image sequences Arguments: Sequence {[type]} -- [description] """ def...
36.514286
98
0.608764
1445f10be6b7c76c871b537c688c55d7df206c69
10,009
py
Python
scripts/particles.py
Remosy/v2e
efc81cbcc113ca55d1631603323150be5ef8eb30
[ "MIT" ]
null
null
null
scripts/particles.py
Remosy/v2e
efc81cbcc113ca55d1631603323150be5ef8eb30
[ "MIT" ]
null
null
null
scripts/particles.py
Remosy/v2e
efc81cbcc113ca55d1631603323150be5ef8eb30
[ "MIT" ]
null
null
null
# generates many linearly moving particles # use it like this: # v2e --leak_rate=0 --shot=0 --cutoff_hz=300 --sigma_thr=.05 --pos_thr=.2 --neg_thr=.2 --dvs_exposure duration .01 --output_folder "g:\Qsync\particles" --overwrite --dvs_aedat2=particles --output_width=346 --output_height=260 --batch=64 --disable_slomo --s...
42.591489
301
0.618743
061f5a0abf2d8c6f8dbc6f25b814caa8b38c5613
15,422
py
Python
pw_build_mcuxpresso/py/pw_build_mcuxpresso/components.py
curtin-space/pigweed
fe2e1743e03fabd2676f01d9de0ac9d34a426076
[ "Apache-2.0" ]
86
2021-03-09T23:49:40.000Z
2022-03-30T08:14:51.000Z
pw_build_mcuxpresso/py/pw_build_mcuxpresso/components.py
curtin-space/pigweed
fe2e1743e03fabd2676f01d9de0ac9d34a426076
[ "Apache-2.0" ]
4
2021-07-27T20:32:03.000Z
2022-03-08T10:39:07.000Z
pw_build_mcuxpresso/py/pw_build_mcuxpresso/components.py
curtin-space/pigweed
fe2e1743e03fabd2676f01d9de0ac9d34a426076
[ "Apache-2.0" ]
22
2021-03-11T15:15:47.000Z
2022-02-09T06:16:36.000Z
# Copyright 2021 The Pigweed 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 # # https://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in ...
32.467368
79
0.635002
5033761e12b3058c3de02f355c9fa7becda6c1f7
1,037
py
Python
examples/response/alert_bulk_resolve.py
redcanaryco/cbapi-python
18d332d5b0a7868c6929746b0b02c73545bbd0f9
[ "MIT" ]
2
2017-07-19T07:24:28.000Z
2021-07-23T03:57:08.000Z
examples/response/alert_bulk_resolve.py
redcanaryco/cbapi-python
18d332d5b0a7868c6929746b0b02c73545bbd0f9
[ "MIT" ]
null
null
null
examples/response/alert_bulk_resolve.py
redcanaryco/cbapi-python
18d332d5b0a7868c6929746b0b02c73545bbd0f9
[ "MIT" ]
3
2019-03-12T23:01:28.000Z
2021-07-23T03:57:22.000Z
#!/usr/bin/env python import sys from cbapi.response.models import Alert from cbapi.example_helpers import build_cli_parser, get_cb_response_object import time def main(): parser = build_cli_parser("Bulk resolve alerts") parser.add_argument("--query", action="store", default="", help=...
28.027027
108
0.677917
12efc19bb57c682000d09a6bf30d566dfc349b5e
300
py
Python
lambda/functions/virtualmail/common/exceptions.py
virtualmail/virtualmail
c960cda1131848cc34dfd7f153e1d586afce930a
[ "MIT" ]
null
null
null
lambda/functions/virtualmail/common/exceptions.py
virtualmail/virtualmail
c960cda1131848cc34dfd7f153e1d586afce930a
[ "MIT" ]
null
null
null
lambda/functions/virtualmail/common/exceptions.py
virtualmail/virtualmail
c960cda1131848cc34dfd7f153e1d586afce930a
[ "MIT" ]
null
null
null
class PassthroughException(Exception): def __init__(self, e, when, text=None, stop_processing=False): self.msg = 'Exception "{}" while {}'.format(e, when) self.e = e self.when = when self.text = text self.stop_processing = stop_processing super().__init__(self.msg)
33.333333
64
0.66