hexsha
stringlengths
40
40
size
int64
2
1.05M
ext
stringclasses
9 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
4
193
max_stars_repo_name
stringlengths
6
109
max_stars_repo_head_hexsha
stringlengths
40
78
max_stars_repo_licenses
listlengths
1
10
max_stars_count
int64
1
36.6k
max_stars_repo_stars_event_min_datetime
stringlengths
24
24
max_stars_repo_stars_event_max_datetime
stringlengths
24
24
max_issues_repo_path
stringlengths
4
193
max_issues_repo_name
stringlengths
6
109
max_issues_repo_head_hexsha
stringlengths
40
78
max_issues_repo_licenses
listlengths
1
10
max_issues_count
int64
1
29.8k
max_issues_repo_issues_event_min_datetime
stringlengths
24
24
max_issues_repo_issues_event_max_datetime
stringlengths
24
24
max_forks_repo_path
stringlengths
4
193
max_forks_repo_name
stringlengths
6
109
max_forks_repo_head_hexsha
stringlengths
40
78
max_forks_repo_licenses
listlengths
1
10
max_forks_count
int64
1
11.2k
max_forks_repo_forks_event_min_datetime
stringlengths
24
24
max_forks_repo_forks_event_max_datetime
stringlengths
24
24
content
stringlengths
2
1.05M
avg_line_length
float64
1
404k
max_line_length
int64
1
1.03M
alphanum_fraction
float64
0
1
93bada7c60c870e2ab15335226a19033ffb0d649
1,919
py
Python
test/test_page_of_persons_all_of.py
Sage-Bionetworks/rocc-client
85b73afe7d4977094810c0a8094f56ebe7ed3d48
[ "Apache-2.0" ]
null
null
null
test/test_page_of_persons_all_of.py
Sage-Bionetworks/rocc-client
85b73afe7d4977094810c0a8094f56ebe7ed3d48
[ "Apache-2.0" ]
14
2020-12-06T23:54:23.000Z
2021-02-03T18:35:02.000Z
test/test_page_of_persons_all_of.py
Sage-Bionetworks/rocc-client
85b73afe7d4977094810c0a8094f56ebe7ed3d48
[ "Apache-2.0" ]
null
null
null
# coding: utf-8 """ Registry of Open Community Challenge API The OpenAPI specification implemented by the Challenge Registries. # Introduction TBA # noqa: E501 The version of the OpenAPI document: 0.1.1 Contact: thomas.schaffter@sagebionetworks.org Generated by: https://openapi-generator.tech "...
30.460317
104
0.615946
93baee07957e0ae28308040ae393af1fc2d24429
585
py
Python
datasets/DET/seed/OpenImages.py
zhangzhengde0225/SwinTrack
526be17f8ef266cb924c6939bd8dda23e9b73249
[ "MIT" ]
143
2021-12-03T02:33:36.000Z
2022-03-29T00:01:48.000Z
datasets/DET/seed/OpenImages.py
zhangzhengde0225/SwinTrack
526be17f8ef266cb924c6939bd8dda23e9b73249
[ "MIT" ]
33
2021-12-03T10:32:05.000Z
2022-03-31T02:13:55.000Z
datasets/DET/seed/OpenImages.py
zhangzhengde0225/SwinTrack
526be17f8ef266cb924c6939bd8dda23e9b73249
[ "MIT" ]
24
2021-12-04T06:46:42.000Z
2022-03-30T07:57:47.000Z
from datasets.base.factory_seed import BaseSeed from datasets.types.data_split import DataSplit class OpenImages_Seed(BaseSeed): def __init__(self, root_path: str=None, data_split=DataSplit.Training | DataSplit.Validation | DataSplit.Testing): if root_path is None: root_path = self.get_path_fr...
41.785714
118
0.753846
93baf5e4d83867b7e987a8bdfa95d1e350aa7b07
10,173
py
Python
source/api/dataplane/runtime/chalicelib/common.py
awslabs/aws-media-replay-engine
2c217eff42f8e2c56b43e2ecf593f5aaa92c5451
[ "Apache-2.0" ]
22
2021-11-24T01:23:07.000Z
2022-03-26T23:24:46.000Z
source/api/dataplane/runtime/chalicelib/common.py
awslabs/aws-media-replay-engine
2c217eff42f8e2c56b43e2ecf593f5aaa92c5451
[ "Apache-2.0" ]
null
null
null
source/api/dataplane/runtime/chalicelib/common.py
awslabs/aws-media-replay-engine
2c217eff42f8e2c56b43e2ecf593f5aaa92c5451
[ "Apache-2.0" ]
3
2021-12-10T09:42:51.000Z
2022-02-16T02:22:50.000Z
# Copyright 2021 Amazon.com, Inc. or its affiliates. All Rights Reserved. # SPDX-License-Identifier: Apache-2.0 import os import json import urllib.parse import boto3 import decimal from decimal import Decimal from datetime import datetime from chalice import Chalice from chalice import IAMAuthorizer from chalice imp...
45.013274
132
0.626954
93bb0a5c9e1076deb6d81d99a3b44cf456afa5b1
343
py
Python
invenio_communities/invitations/services/common.py
max-moser/invenio-communities
cfdd6a8b36bf6856db4fd55123c832700eb32376
[ "MIT" ]
null
null
null
invenio_communities/invitations/services/common.py
max-moser/invenio-communities
cfdd6a8b36bf6856db4fd55123c832700eb32376
[ "MIT" ]
null
null
null
invenio_communities/invitations/services/common.py
max-moser/invenio-communities
cfdd6a8b36bf6856db4fd55123c832700eb32376
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # # Copyright (C) 2022 Northwestern University. # # Invenio-Communities is free software; you can redistribute it and/or modify # it under the terms of the MIT License; see LICENSE file for more details. """Common data placed here to prevent circular dependencies.""" REQUEST_TYPE_ID = 'commun...
28.583333
77
0.746356
93bb419305837be454141f6fbb1da249d2640e21
1,794
py
Python
app.py
GuillaumeAI/gia-style-transfer-tf2
543e4e3434b87612bff6bb901c6ce4026069fa15
[ "MIT" ]
16
2019-05-21T22:28:30.000Z
2022-03-07T19:29:08.000Z
app.py
GuillaumeAI/gia-style-transfer-tf2
543e4e3434b87612bff6bb901c6ce4026069fa15
[ "MIT" ]
4
2021-09-01T07:23:48.000Z
2022-02-26T12:15:40.000Z
app.py
GuillaumeAI/gia-style-transfer-tf2
543e4e3434b87612bff6bb901c6ce4026069fa15
[ "MIT" ]
5
2020-02-08T10:08:58.000Z
2021-06-03T17:47:32.000Z
""" Copyright (c) 2019 Sébastien IOOSS 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, distribute...
35.88
117
0.773133
93bb4bd92e8ed5c43720eb857c5d9687329e8e07
12,504
py
Python
test/py_behavior_miqp_agent_test.py
bark-simulator/planner-miqp
aef044d03febadeb62c9634eed9830133d4c8b7b
[ "MIT" ]
5
2021-12-23T08:52:09.000Z
2022-03-30T21:33:02.000Z
test/py_behavior_miqp_agent_test.py
bark-simulator/planner-miqp
aef044d03febadeb62c9634eed9830133d4c8b7b
[ "MIT" ]
null
null
null
test/py_behavior_miqp_agent_test.py
bark-simulator/planner-miqp
aef044d03febadeb62c9634eed9830133d4c8b7b
[ "MIT" ]
null
null
null
# Copyright (c) 2021 fortiss GmbH # # Authors: Klemens Esterle and Tobias Kessler # # This work is licensed under the terms of the MIT license. # For a copy, see <https://opensource.org/licenses/MIT>. import unittest import numpy as np import time import math from random import random import logging from bark.runti...
40.205788
119
0.672745
93bb611ac001cbe979569de0bcf5c51df9b255fb
13,217
py
Python
examples/datav_keras_exp.py
SimonCarozza/autolrn
d0875844a3e9b4fc22510ef320aa498e339b6192
[ "MIT" ]
null
null
null
examples/datav_keras_exp.py
SimonCarozza/autolrn
d0875844a3e9b4fc22510ef320aa498e339b6192
[ "MIT" ]
null
null
null
examples/datav_keras_exp.py
SimonCarozza/autolrn
d0875844a3e9b4fc22510ef320aa498e339b6192
[ "MIT" ]
null
null
null
"""Evaluate and train Keras Classifiers.""" from sklearn.model_selection import StratifiedKFold from sklearn.pipeline import Pipeline from sklearn.dummy import DummyClassifier from pandas import read_csv, DataFrame # from pandas.plotting import scatter_matrix import matplotlib.pyplot as plt import numpy as np import ...
31.695444
96
0.635772
93bbaa27bca691c7f51f82400545011856bb7233
475
py
Python
tests/test_encryption.py
alphagov/notify-api
16dbafbad69e5bb179ba4b2202a7afa299c88d61
[ "MIT" ]
12
2015-10-06T08:58:28.000Z
2016-08-08T17:51:29.000Z
tests/test_encryption.py
gds-attic/notify-api
16dbafbad69e5bb179ba4b2202a7afa299c88d61
[ "MIT" ]
1
2015-10-27T12:01:26.000Z
2015-10-27T12:01:26.000Z
tests/test_encryption.py
gds-attic/notify-api
16dbafbad69e5bb179ba4b2202a7afa299c88d61
[ "MIT" ]
3
2016-05-31T17:40:15.000Z
2021-04-10T20:03:33.000Z
from app.main.encryption import checkpw, hashpw def test_should_hash_password(): password = "mypassword" assert password != hashpw(password) def test_should_check_password(): password = "mypassword" password_hash = hashpw(password) assert checkpw(password, password_hash) is True def test_shoul...
25
61
0.749474
93bbb344f6b018d8cf8fe9bac9f7178cd1bdcbc0
985
py
Python
src/onevision/datasets/iec/utils/resize_image.py
phlong3105/onevision
90552b64df7213e7fbe23c80ffd8a89583289433
[ "MIT" ]
2
2022-03-28T09:46:38.000Z
2022-03-28T14:12:32.000Z
src/onevision/datasets/iec/utils/resize_image.py
phlong3105/onevision
90552b64df7213e7fbe23c80ffd8a89583289433
[ "MIT" ]
null
null
null
src/onevision/datasets/iec/utils/resize_image.py
phlong3105/onevision
90552b64df7213e7fbe23c80ffd8a89583289433
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- """ """ from __future__ import annotations import glob import os from pathlib import Path import cv2 from onevision.cv import is_image_file from onevision.cv import read_image from onevision.cv import resize from onevision.cv import VisionBackend from onevision.file im...
25.25641
54
0.714721
93bbbc2a09ef6c4a6bc9170ad919948f11e1662d
1,305
py
Python
satchless/contrib/products/book/models.py
cajun-code/satchless
068b26046c3af63268f8eecd6e33da2bbb78b8d1
[ "BSD-4-Clause" ]
1
2015-11-05T05:09:27.000Z
2015-11-05T05:09:27.000Z
satchless/contrib/products/book/models.py
cajun-code/satchless
068b26046c3af63268f8eecd6e33da2bbb78b8d1
[ "BSD-4-Clause" ]
null
null
null
satchless/contrib/products/book/models.py
cajun-code/satchless
068b26046c3af63268f8eecd6e33da2bbb78b8d1
[ "BSD-4-Clause" ]
null
null
null
from django.db import models from django.utils.translation import ugettext_lazy as _ from satchless.product.models import ProductAbstract, Variant class Book(ProductAbstract): author = models.TextField(_("author"), max_length=512) publisher = models.TextField(_("publisher"), max_length=300, blank=True) ed...
40.78125
78
0.679693
93bbd90cac8f414ee66f83fb822fb1ebf8f69ea0
4,547
py
Python
app/database/schema.py
flych3r/spotify-tracker
306d549da6a57866ea480c85286d870e7653a1eb
[ "MIT" ]
2
2021-06-25T00:24:13.000Z
2021-07-10T13:00:39.000Z
app/database/schema.py
flych3r/spotify-tracker
306d549da6a57866ea480c85286d870e7653a1eb
[ "MIT" ]
null
null
null
app/database/schema.py
flych3r/spotify-tracker
306d549da6a57866ea480c85286d870e7653a1eb
[ "MIT" ]
2
2021-05-16T01:40:39.000Z
2021-07-10T12:59:07.000Z
from datetime import datetime from typing import Optional import ormar from app.database.db import db, metadata class BaseMeta(ormar.ModelMeta): """Base table metadata.""" metadata = metadata database = db class User(ormar.Model): """ `users` table mapping. Attributes ---------- ...
23.559585
65
0.614471
93bbdc5b401280f118d1298f6aa8ff52553d02b8
10,103
py
Python
airflow/utils/dates.py
kevin0120/airflow
fa263cbf0ac002bdb26239ce36d5dc2a1b6251fd
[ "Apache-2.0" ]
1
2021-03-03T07:00:02.000Z
2021-03-03T07:00:02.000Z
airflow/utils/dates.py
kevin0120/airflow
fa263cbf0ac002bdb26239ce36d5dc2a1b6251fd
[ "Apache-2.0" ]
36
2021-11-26T00:08:49.000Z
2021-11-26T00:09:33.000Z
airflow/utils/dates.py
kevin0120/airflow
fa263cbf0ac002bdb26239ce36d5dc2a1b6251fd
[ "Apache-2.0" ]
3
2020-06-30T02:38:17.000Z
2022-01-19T06:14:08.000Z
# # Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. The ASF licenses this file # to you under the Apache License, Version 2.0 (the # "License"); you may not...
39.932806
103
0.640503
93bc0a58350e26db9ae5eab09c956b80bf8cc0ae
9,792
py
Python
aselsan-chatbot_domainintent/speechRecGoogle.py
NurbukeTeker/Bert_MultiDomainIntent_Chatbot
8214333a7a53d1b5ce260b7e54b6111ddf761b8b
[ "MIT" ]
null
null
null
aselsan-chatbot_domainintent/speechRecGoogle.py
NurbukeTeker/Bert_MultiDomainIntent_Chatbot
8214333a7a53d1b5ce260b7e54b6111ddf761b8b
[ "MIT" ]
null
null
null
aselsan-chatbot_domainintent/speechRecGoogle.py
NurbukeTeker/Bert_MultiDomainIntent_Chatbot
8214333a7a53d1b5ce260b7e54b6111ddf761b8b
[ "MIT" ]
null
null
null
from __future__ import division import re import sys from google.cloud import speech from google.cloud.speech import enums from google.cloud.speech import types import pyaudio from six.moves import queue # Audio recording parameters RATE = 16000 CHUNK = int(RATE / 10) # 100ms def get_current_time(...
37.090909
220
0.615707
93bc391e595223deb5d4d5ec085ca87cbadd36ba
739
py
Python
sunpy/net/tests/test_baseclient.py
johan12345/sunpy
56e1ab0c2c992f99e0fe3e6bff468b731a51228c
[ "BSD-2-Clause" ]
2
2020-07-02T13:01:42.000Z
2020-08-27T20:05:31.000Z
sunpy/net/tests/test_baseclient.py
johan12345/sunpy
56e1ab0c2c992f99e0fe3e6bff468b731a51228c
[ "BSD-2-Clause" ]
1
2020-05-11T13:38:56.000Z
2020-05-11T13:38:56.000Z
sunpy/net/tests/test_baseclient.py
johan12345/sunpy
56e1ab0c2c992f99e0fe3e6bff468b731a51228c
[ "BSD-2-Clause" ]
null
null
null
import re import pytest from sunpy.net import base_client, dataretriever, jsoc, vso _REGEX = re.compile(r"Client") CLIENT_LIST = [] for a_import in [vso, jsoc, dataretriever]: for item in dir(a_import): if _REGEX.search(item): CLIENT_LIST.append(getattr(a_import, item)) CLIENT_LIST.remove(...
24.633333
60
0.741543
93bc7a11c6182f1560dd5b0a483445607ad357c2
2,164
py
Python
test/test_parse.py
anx-bhagmann/updatable
0d84dd440c7bea0790784ceea6dc12962748698e
[ "MIT" ]
null
null
null
test/test_parse.py
anx-bhagmann/updatable
0d84dd440c7bea0790784ceea6dc12962748698e
[ "MIT" ]
null
null
null
test/test_parse.py
anx-bhagmann/updatable
0d84dd440c7bea0790784ceea6dc12962748698e
[ "MIT" ]
null
null
null
#!/usr/bin/env python import unittest import os from updatable import utils as updatable_utils PATH = os.path.dirname(os.path.realpath(__file__)) def get_environment_requirements_list_monkey(*args, **kwargs): with open(os.path.join(PATH, 'fixtures/requirements-initial.txt')) as f: content = f.readlines...
33.292308
115
0.685767
93bc811b3441a9567462084a5bbf1d275d33f8ce
7,438
py
Python
venv/lib/python3.6/site-packages/kubernetes/client/models/v1_lease_spec.py
DiptoChakrabarty/Kube-Automate
2072d1aadd58eb405c7308ff5cfecbf50300ead3
[ "MIT" ]
null
null
null
venv/lib/python3.6/site-packages/kubernetes/client/models/v1_lease_spec.py
DiptoChakrabarty/Kube-Automate
2072d1aadd58eb405c7308ff5cfecbf50300ead3
[ "MIT" ]
null
null
null
venv/lib/python3.6/site-packages/kubernetes/client/models/v1_lease_spec.py
DiptoChakrabarty/Kube-Automate
2072d1aadd58eb405c7308ff5cfecbf50300ead3
[ "MIT" ]
null
null
null
# coding: utf-8 """ Kubernetes No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 OpenAPI spec version: release-1.15 Generated by: https://openapi-generator.tech """ import pprint import re # noqa: F401 import six class V1Lea...
32.76652
175
0.632697
93bc824dd67257975480bfc22799c447149c7c43
131
py
Python
modl/decomposition/__init__.py
johnbanq/modl
dcabb6b4793db57b858221a1c184741255b6396d
[ "BSD-2-Clause" ]
135
2016-05-04T01:52:44.000Z
2022-03-01T18:38:13.000Z
modl/decomposition/__init__.py
johnbanq/modl
dcabb6b4793db57b858221a1c184741255b6396d
[ "BSD-2-Clause" ]
20
2016-06-03T12:53:27.000Z
2020-05-12T22:35:52.000Z
modl/decomposition/__init__.py
johnbanq/modl
dcabb6b4793db57b858221a1c184741255b6396d
[ "BSD-2-Clause" ]
49
2016-05-09T02:48:04.000Z
2022-03-01T18:40:55.000Z
from .dict_fact import DictFact from .fmri import fMRIDictFact from .image import ImageDictFact from .recsys import RecsysDictFact
26.2
34
0.847328
93bc932331d06fe620b9dc241c2d48eeb8fdbdb8
9,559
py
Python
oec_sync/sync/oec.py
SamnnyWong/OECSynchronizer
9b28c96988158f5717bacd47f59cbabb1ce072cd
[ "Unlicense", "MIT" ]
null
null
null
oec_sync/sync/oec.py
SamnnyWong/OECSynchronizer
9b28c96988158f5717bacd47f59cbabb1ce072cd
[ "Unlicense", "MIT" ]
null
null
null
oec_sync/sync/oec.py
SamnnyWong/OECSynchronizer
9b28c96988158f5717bacd47f59cbabb1ce072cd
[ "Unlicense", "MIT" ]
null
null
null
from xml.etree import ElementTree as Etree from model import * from astro_unit import * from io import StringIO import logging class FieldMeta: """ OEC field metadata. """ def __init__(self, datatype: str, unit: str = None): self.type = datatype self.unit = unit # Maps field name to ...
37.194553
79
0.574746
93bcafea83610a570359aa5cb68992eb8fe23e0a
1,376
py
Python
passpie/process.py
bcfurtado/passpie
421c40a57ad5f55e3f14b323c929a2c41dfb5527
[ "MIT" ]
700
2015-05-02T20:58:37.000Z
2022-01-20T18:49:17.000Z
passpie/process.py
bcfurtado/passpie
421c40a57ad5f55e3f14b323c929a2c41dfb5527
[ "MIT" ]
108
2015-05-02T02:56:39.000Z
2021-07-01T21:46:10.000Z
passpie/process.py
bcfurtado/passpie
421c40a57ad5f55e3f14b323c929a2c41dfb5527
[ "MIT" ]
72
2015-05-03T02:50:24.000Z
2021-06-09T03:38:51.000Z
import logging import os from subprocess import Popen, PIPE from ._compat import basestring DEVNULL = open(os.devnull, 'w') class Proc(Popen): def communicate(self, **kwargs): if kwargs.get('input') and isinstance(kwargs['input'], basestring): kwargs['input'] = kwargs['input'].encode('utf-...
28.081633
75
0.614099
93bcb82883a879d20de1f5b8dc8e7f9d6f11fd37
44,123
py
Python
src/aks-preview/azext_aks_preview/vendored_sdks/azure_mgmt_preview_aks/v2022_05_02_preview/operations/_agent_pools_operations.py
saisankargochhayat/azure-cli-extensions
f89443a766961f984977a2cf1b682973fcb61edd
[ "MIT" ]
1
2022-02-01T18:50:12.000Z
2022-02-01T18:50:12.000Z
src/aks-preview/azext_aks_preview/vendored_sdks/azure_mgmt_preview_aks/v2022_05_02_preview/operations/_agent_pools_operations.py
saisankargochhayat/azure-cli-extensions
f89443a766961f984977a2cf1b682973fcb61edd
[ "MIT" ]
null
null
null
src/aks-preview/azext_aks_preview/vendored_sdks/azure_mgmt_preview_aks/v2022_05_02_preview/operations/_agent_pools_operations.py
saisankargochhayat/azure-cli-extensions
f89443a766961f984977a2cf1b682973fcb61edd
[ "MIT" ]
1
2022-02-14T21:43:29.000Z
2022-02-14T21:43:29.000Z
# pylint: disable=too-many-lines # coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # Code generated by Microsoft (R) AutoRe...
44.840447
263
0.676178
93bcc3df0af56335b6a4e5bb1c1774862f465afc
13,766
py
Python
PythonProjects/09-MoreImplementingClasses/src/m3_capital_t_class.py
much2mutch/csse120-public
4f862a6deb7a5373fb5723fb2a23e4042e4d4157
[ "MIT" ]
null
null
null
PythonProjects/09-MoreImplementingClasses/src/m3_capital_t_class.py
much2mutch/csse120-public
4f862a6deb7a5373fb5723fb2a23e4042e4d4157
[ "MIT" ]
null
null
null
PythonProjects/09-MoreImplementingClasses/src/m3_capital_t_class.py
much2mutch/csse120-public
4f862a6deb7a5373fb5723fb2a23e4042e4d4157
[ "MIT" ]
null
null
null
""" A CapitalT class and functions that use/test it. Authors: David Mutchler, Vibha Alangar, Matt Boutell, Dave Fisher, Mark Hays, Amanda Stouder, Derek Whitley, their colleagues, and PUT_YOUR_NAME_HERE. """ # TODO: 1. PUT YOUR NAME IN THE ABOVE LINE. import rosegraphics as rg # --------------...
40.369501
80
0.522156
93bccb70af00ce6f58f9cad01951934e0a11bf65
5,652
py
Python
tools/iccv/generate_voc_format.py
yjy941124/PPR-FCN
1eba5515b37e7b32413efdf14bb0c22a2e46fee9
[ "MIT" ]
20
2017-10-16T18:12:51.000Z
2021-12-23T02:34:20.000Z
tools/iccv/generate_voc_format.py
yjy941124/PPR-FCN
1eba5515b37e7b32413efdf14bb0c22a2e46fee9
[ "MIT" ]
1
2018-11-10T04:59:48.000Z
2021-01-21T04:51:31.000Z
tools/iccv/generate_voc_format.py
yjy941124/PPR-FCN
1eba5515b37e7b32413efdf14bb0c22a2e46fee9
[ "MIT" ]
5
2017-10-17T00:54:42.000Z
2018-04-08T15:09:40.000Z
import _init_paths from fast_rcnn.train import get_training_roidb, train_net from fast_rcnn.config import cfg, cfg_from_file, cfg_from_list, get_output_dir from datasets.factory import get_imdb import datasets.imdb import caffe import argparse import pprint import numpy as np import sys import zl_config as C from fast_...
36.464516
92
0.664897
93bcf0816c9a306dc230041bbe89235f7d061b65
5,192
py
Python
tests/test_helpers.py
ncc-tools/python-pa-api
a27481dd323d282d0f4457586198d9faec896f11
[ "Apache-2.0" ]
null
null
null
tests/test_helpers.py
ncc-tools/python-pa-api
a27481dd323d282d0f4457586198d9faec896f11
[ "Apache-2.0" ]
3
2017-02-09T17:38:08.000Z
2021-06-01T22:17:08.000Z
tests/test_helpers.py
ncc-tools/python-pa-api
a27481dd323d282d0f4457586198d9faec896f11
[ "Apache-2.0" ]
null
null
null
"""A collection of helpers to test the PA API library""" from contextlib import contextmanager import json from urllib3.response import HTTPResponse from paapi.paapi import PaApi class MockPoolmanager: """ Mocks urllib3's PoolManager """ RETURN = 1 RAISE = 2 EVAL = 3 _next_response = Non...
30.186047
83
0.551233
93bcfce6a7b44e892aefb1e9e9c87903ee3eefc6
1,804
py
Python
StreamPy/TestExamplesListToStreams/OLD_EXAMPLES/example_many_inputs_sink_stateful.py
AnomalyInc/StreamPy
94abca276b2857de48259f4f42ef95efbdf5f6d1
[ "Apache-2.0" ]
2
2017-04-27T11:04:27.000Z
2019-02-07T21:03:32.000Z
StreamPy/TestExamplesListToStreams/OLD_EXAMPLES/example_many_inputs_sink_stateful.py
StreamPy/StreamPy
94abca276b2857de48259f4f42ef95efbdf5f6d1
[ "Apache-2.0" ]
null
null
null
StreamPy/TestExamplesListToStreams/OLD_EXAMPLES/example_many_inputs_sink_stateful.py
StreamPy/StreamPy
94abca276b2857de48259f4f42ef95efbdf5f6d1
[ "Apache-2.0" ]
null
null
null
"""This module contains examples of the stateless single stream source """ if __name__ == '__main__': if __package__ is None: import sys from os import path sys.path.append( path.dirname( path.dirname( path.abspath(__file__) ) ) ) from Agent import * from ListOperators import stream_func d...
32.8
81
0.672949
93bd0466a3abf98d741e65290a2180ea3bab963a
2,120
py
Python
rhucrl/agent/dr_agent.py
sebascuri/rhucrl
27663e1302f3bbc636dff28495c6f2667bb7c1da
[ "MIT" ]
1
2021-11-19T11:46:48.000Z
2021-11-19T11:46:48.000Z
rhucrl/agent/dr_agent.py
sebascuri/rhucrl
27663e1302f3bbc636dff28495c6f2667bb7c1da
[ "MIT" ]
1
2021-11-22T07:48:03.000Z
2021-11-22T07:48:03.000Z
rhucrl/agent/dr_agent.py
sebascuri/rhucrl
27663e1302f3bbc636dff28495c6f2667bb7c1da
[ "MIT" ]
1
2022-03-26T10:18:01.000Z
2022-03-26T10:18:01.000Z
"""Python Script Template.""" from importlib import import_module import numpy as np import torch from rllib.agent import AbstractAgent from torch.distributions.uniform import Uniform class DomainRandomizationAgent(AbstractAgent): """Domain Randomization Agent. It samples a new domain at each episode and th...
33.650794
87
0.639151
93bd143004772109cd9193bccd840e7b1f1a6377
6,150
py
Python
bin/parse_mongo_url.py
aptible/docker-mongodb
05baf57e33a026938282d569344afb047632f412
[ "MIT" ]
1
2022-02-09T04:22:46.000Z
2022-02-09T04:22:46.000Z
bin/parse_mongo_url.py
aptible/docker-mongodb
05baf57e33a026938282d569344afb047632f412
[ "MIT" ]
19
2015-03-15T23:32:46.000Z
2019-12-26T22:29:58.000Z
bin/parse_mongo_url.py
aptible/docker-mongodb
05baf57e33a026938282d569344afb047632f412
[ "MIT" ]
11
2015-02-22T00:09:12.000Z
2018-07-03T16:54:47.000Z
#!/usr/bin/env python """ The output from this script is meant to be eval'd by a shell to parse out MongoDB options from a connection string. >>> os.environ["MONGO_VERSION"] = "100.0.0" >>> set_use_ssl_opts(False) >>> mongo_url = urlparse.urlparse("mongodb://aptible:foobar@localhost:123/db?ssl=true&x-sslVerify=false")...
33.606557
112
0.663577
93bd216faf92574ded8110ec7b9c214b27ee30a4
2,177
py
Python
tests/test_interactive_mode.py
blanketastronomer/credit_calculator
195cb56934f354543c8d71787577695986bc9340
[ "MIT" ]
null
null
null
tests/test_interactive_mode.py
blanketastronomer/credit_calculator
195cb56934f354543c8d71787577695986bc9340
[ "MIT" ]
null
null
null
tests/test_interactive_mode.py
blanketastronomer/credit_calculator
195cb56934f354543c8d71787577695986bc9340
[ "MIT" ]
null
null
null
from io import StringIO import pytest from credit_calculator.calculator import Calculator from tests.helpers.file_helper import text_from_file @pytest.fixture() def calculator(): calculator = Calculator() yield calculator def compatible_input(*inputs) -> StringIO: return StringIO("\n".join(inputs)) d...
32.492537
112
0.73955
93bd2250670469a97af01c860e24bb2a8cb5d4a3
8,782
py
Python
src/morphforge/simulation/base/core/simulation.py
mikehulluk/morphforge
2a95096f144ed4ea487decb735ce66706357d3c7
[ "BSD-2-Clause" ]
1
2021-01-21T11:31:59.000Z
2021-01-21T11:31:59.000Z
src/morphforge/simulation/base/core/simulation.py
mikehulluk/morphforge
2a95096f144ed4ea487decb735ce66706357d3c7
[ "BSD-2-Clause" ]
null
null
null
src/morphforge/simulation/base/core/simulation.py
mikehulluk/morphforge
2a95096f144ed4ea487decb735ce66706357d3c7
[ "BSD-2-Clause" ]
null
null
null
#!/usr/bin/python # -*- coding: utf-8 -*- # --------------------------------------------------------------------- # Copyright (c) 2012 Michael Hull. # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions # are m...
33.391635
120
0.659759
93bd24156a94ab6198a0d0305daf453ddcc84aa6
3,535
py
Python
utils_3d/weak_perspective_pyrender_renderer.py
mikecheninoulu/Unsupervised_IEPGAN
ae075e49f283af7bf76821c6db1da51c383b92e6
[ "MIT" ]
20
2021-07-24T14:26:53.000Z
2022-01-21T07:47:01.000Z
utils_3d/weak_perspective_pyrender_renderer.py
mikecheninoulu/Unsupervised_IEPGAN
ae075e49f283af7bf76821c6db1da51c383b92e6
[ "MIT" ]
5
2021-09-03T08:11:47.000Z
2022-03-25T05:11:07.000Z
utils_3d/weak_perspective_pyrender_renderer.py
mikecheninoulu/Unsupervised_IEPGAN
ae075e49f283af7bf76821c6db1da51c383b92e6
[ "MIT" ]
1
2021-08-21T07:29:15.000Z
2021-08-21T07:29:15.000Z
# -*- coding: utf-8 -*- # Code from https://github.com/mkocabas/VIBE import math import trimesh import pyrender import numpy as np from pyrender.constants import RenderFlags import config class WeakPerspectiveCamera(pyrender.Camera): def __init__(self, scale, translation, ...
29.957627
115
0.562093
93bd270aac519657ec6159b040ba65cf0521b783
15,898
py
Python
appengine/findit/findit_v2/services/chromeos_api.py
allaparthi/monorail
e18645fc1b952a5a6ff5f06e0c740d75f1904473
[ "BSD-3-Clause" ]
null
null
null
appengine/findit/findit_v2/services/chromeos_api.py
allaparthi/monorail
e18645fc1b952a5a6ff5f06e0c740d75f1904473
[ "BSD-3-Clause" ]
7
2022-02-15T01:11:37.000Z
2022-03-02T12:46:13.000Z
appengine/findit/findit_v2/services/chromeos_api.py
allaparthi/monorail
e18645fc1b952a5a6ff5f06e0c740d75f1904473
[ "BSD-3-Clause" ]
null
null
null
# Copyright 2019 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. """Defines the chromeos-specific APIs required by Findit.""" from collections import defaultdict import logging from google.appengine.ext import ndb from go...
36.715935
80
0.661404
93bd371f5012f190443286b3907bb524b09fe6c7
4,650
py
Python
run_plate.py
Betaglutamate/Zwietering_model
c88809d58027b82b8d1a86b771180d020e15d1d7
[ "MIT" ]
null
null
null
run_plate.py
Betaglutamate/Zwietering_model
c88809d58027b82b8d1a86b771180d020e15d1d7
[ "MIT" ]
null
null
null
run_plate.py
Betaglutamate/Zwietering_model
c88809d58027b82b8d1a86b771180d020e15d1d7
[ "MIT" ]
null
null
null
import os import pandas as pd import numpy as np import csv from scipy import stats def subtract_background(df, modifier): first_row = df.iloc[0:10, 1:].mean(axis=0).copy() df.iloc[:, 1:] = df.iloc[:, 1:].apply( lambda row: row - (first_row - modifier), axis=1) df = df.astype('float').copy() r...
34.191176
104
0.644516
93bd8c80e5cafbdde2c7bb09acc2b166db3231f4
1,919
py
Python
cupy/statistics/order.py
umitanuki/chainer
225c56b233e684ff4855451d2af4c2fb66915f21
[ "MIT" ]
null
null
null
cupy/statistics/order.py
umitanuki/chainer
225c56b233e684ff4855451d2af4c2fb66915f21
[ "MIT" ]
null
null
null
cupy/statistics/order.py
umitanuki/chainer
225c56b233e684ff4855451d2af4c2fb66915f21
[ "MIT" ]
1
2018-11-18T00:36:51.000Z
2018-11-18T00:36:51.000Z
from cupy import reduction def amin(a, axis=None, out=None, keepdims=False, dtype=None): """Returns the minimum of an array or the minimum along an axis. Args: a (cupy.ndarray): Array to take the minimum. axis (int): Along which axis to take the minimum. The flattened array is use...
29.523077
78
0.65086
93bd9390c9abab106407d0a19140e7ad89543980
284
py
Python
tests/integration/tasks/test_azure_blob_storage.py
angelika233/viadot
99a4c5b622ad099a44ab014a47ba932a747c0ae6
[ "MIT" ]
23
2021-05-04T13:28:30.000Z
2022-02-16T18:51:24.000Z
tests/integration/tasks/test_azure_blob_storage.py
angelika233/viadot
99a4c5b622ad099a44ab014a47ba932a747c0ae6
[ "MIT" ]
142
2021-05-01T10:48:12.000Z
2022-03-28T15:00:06.000Z
tests/integration/tasks/test_azure_blob_storage.py
angelika233/viadot
99a4c5b622ad099a44ab014a47ba932a747c0ae6
[ "MIT" ]
13
2021-05-14T18:28:10.000Z
2022-03-17T10:17:17.000Z
from viadot.tasks import BlobFromCSV def test_blob_from_csv(TEST_CSV_FILE_PATH, TEST_CSV_FILE_BLOB_PATH): blob_task = BlobFromCSV() result = blob_task.run( from_path=TEST_CSV_FILE_PATH, to_path=TEST_CSV_FILE_BLOB_PATH, overwrite=True ) assert result == True
28.4
85
0.767606
93be05f9ff2cbf3880e3a6d0fc83841050966bc4
6,539
py
Python
retrobiocat_web/app/biocatdb/forms.py
ihayhurst/RetroBioCat
d674897459c0ab65faad5ed3017c55cf51bcc020
[ "MIT" ]
9
2020-12-01T16:33:02.000Z
2022-01-19T20:02:42.000Z
retrobiocat_web/app/biocatdb/forms.py
ihayhurst/RetroBioCat
d674897459c0ab65faad5ed3017c55cf51bcc020
[ "MIT" ]
4
2020-10-02T14:38:32.000Z
2021-08-02T09:23:58.000Z
retrobiocat_web/app/biocatdb/forms.py
ihayhurst/RetroBioCat
d674897459c0ab65faad5ed3017c55cf51bcc020
[ "MIT" ]
6
2021-01-14T07:48:36.000Z
2022-03-20T17:34:27.000Z
from flask_wtf import FlaskForm from wtforms import StringField, BooleanField, SubmitField, IntegerField, DecimalField, SelectField from wtforms.validators import DataRequired, NumberRange, ValidationError from retrobiocat_web.retro.generation import node_analysis from retrobiocat_web.retro.enzyme_identification import...
45.409722
113
0.666157
93be28250442eeba8cec0ad7b400b139614f84c0
5,362
py
Python
kopf/toolkits/hierarchies.py
damc-dev/kopf
7c344fc682759bbf0647da60933021a75b3862d3
[ "MIT" ]
1
2019-10-22T19:11:15.000Z
2019-10-22T19:11:15.000Z
kopf/toolkits/hierarchies.py
iahmad-khan/kopf
267e23b306124d9448f4d98c060af57bb1004038
[ "MIT" ]
null
null
null
kopf/toolkits/hierarchies.py
iahmad-khan/kopf
267e23b306124d9448f4d98c060af57bb1004038
[ "MIT" ]
null
null
null
""" All the functions to properly build the object hierarchies. """ from typing import Optional, Iterable, Iterator, cast, MutableMapping, Any, Union from kopf.reactor import handling from kopf.structs import bodies from kopf.structs import dicts K8sObject = MutableMapping[Any, Any] K8sObjects = Union[K8sObject, Iter...
33.72327
92
0.650504
93be4b8640ee790992c305a306cc90724b52b34d
8,058
py
Python
datalad/runner/runner.py
soichih/datalad
797dde3ab7497be170e2c4ea8824f33a4b38e5d8
[ "MIT" ]
null
null
null
datalad/runner/runner.py
soichih/datalad
797dde3ab7497be170e2c4ea8824f33a4b38e5d8
[ "MIT" ]
1
2020-12-01T20:13:51.000Z
2020-12-01T20:13:51.000Z
datalad/runner/runner.py
jwodder/datalad
2b92a764fdc64b750dad68eb51c817218a1ec153
[ "MIT" ]
null
null
null
# emacs: -*- mode: python; py-indent-offset: 4; tab-width: 4; indent-tabs-mode: nil -*- # ex: set sts=4 ts=4 sw=4 et: # ## ### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ## # # See COPYING file distributed along with the datalad package for the # copyright and license terms. # # ## ### ### ...
38.371429
87
0.597791
93be7fbbd54e2e72bab17bcd394266149a994a2f
498
py
Python
CPU/python/Pool.py
maxtcurie/Parallel_programming
512ac4da0e99d4413e34790edcb255f2e145749e
[ "MIT" ]
null
null
null
CPU/python/Pool.py
maxtcurie/Parallel_programming
512ac4da0e99d4413e34790edcb255f2e145749e
[ "MIT" ]
null
null
null
CPU/python/Pool.py
maxtcurie/Parallel_programming
512ac4da0e99d4413e34790edcb255f2e145749e
[ "MIT" ]
null
null
null
from multiprocessing import Pool import time def f(x): time.sleep(1) return x*x ''' print('**************************') print('******no paraellel********') start=time.time() for i in range(4): f(i) end=time.time() print(f"Runtime of the program is {end - start} s") ''' print('**************************')...
19.153846
51
0.526104
93be93691f5c746e0ffb6f7a384894e5e26c8d5e
4,612
py
Python
helpers/feature_extraction.py
franloza/ETS-Challenge
eafec51ae6e4b4ca5ef12d58c8215dcbc0b28549
[ "MIT" ]
null
null
null
helpers/feature_extraction.py
franloza/ETS-Challenge
eafec51ae6e4b4ca5ef12d58c8215dcbc0b28549
[ "MIT" ]
null
null
null
helpers/feature_extraction.py
franloza/ETS-Challenge
eafec51ae6e4b4ca5ef12d58c8215dcbc0b28549
[ "MIT" ]
null
null
null
"""feature_extraction.py Create the requested datasets. Author: Fran Lozano <fjlozanos@gmail.com> """ from __future__ import division import logging import numpy as np import statsmodels.stats.stattools as sm from statsmodels.tsa.seasonal import seasonal_decompose import pandas as pd import scipy.stats as st impor...
34.676692
124
0.6585
93be9aedbc4e075af2a4ed26f1ae6c5f60af90ce
1,630
py
Python
02-Libraries-Implementation/dash/DataVisualization/Dash.py
NguyenQuangBinh803/Python-Heritage
7da72b2926cefc4903086a1cab7de3a64764d648
[ "MIT" ]
1
2021-01-10T12:06:26.000Z
2021-01-10T12:06:26.000Z
02-Libraries-Implementation/dash/DataVisualization/Dash.py
NguyenQuangBinh803/Python-Heritage
7da72b2926cefc4903086a1cab7de3a64764d648
[ "MIT" ]
null
null
null
02-Libraries-Implementation/dash/DataVisualization/Dash.py
NguyenQuangBinh803/Python-Heritage
7da72b2926cefc4903086a1cab7de3a64764d648
[ "MIT" ]
null
null
null
import dash import dash_core_components as dcc import dash_html_components as html import pandas as pd try: data = pd.read_csv("avocado.csv") data = data.query("type == 'conventional' and region == 'Albany'") data["Date"] = pd.to_datetime(data["Date"], format="%Y-%m-%d") data.sort_values("Date", inplace...
31.960784
70
0.386503
93bea8caf501414bd880dc0b4f841783e2ccd7e4
13,118
py
Python
virtual/lib/python3.8/site-packages/connexion/apis/flask_api.py
dan-mutua/flaskwk3
f7ee5a27d52005bedd757d6008102b9f82508521
[ "MIT" ]
null
null
null
virtual/lib/python3.8/site-packages/connexion/apis/flask_api.py
dan-mutua/flaskwk3
f7ee5a27d52005bedd757d6008102b9f82508521
[ "MIT" ]
null
null
null
virtual/lib/python3.8/site-packages/connexion/apis/flask_api.py
dan-mutua/flaskwk3
f7ee5a27d52005bedd757d6008102b9f82508521
[ "MIT" ]
null
null
null
""" This module defines a Flask Connexion API which implements translations between Flask and Connexion requests / responses. """ import logging import warnings from typing import Any import flask import werkzeug.exceptions from werkzeug.local import LocalProxy from connexion.apis import flask_utils from connexion.a...
40.363077
166
0.64705
93bec69df3561538c3d8eac5cadedd5d5c0e70da
7,312
py
Python
tests/unit/test_git_diff_conditional.py
gousteris/git-diff-conditional-buildkite-plugin
517442ca9ebe21021e1078debf88c231ba8e8dff
[ "MIT" ]
19
2020-03-27T11:53:11.000Z
2021-04-14T23:11:27.000Z
tests/unit/test_git_diff_conditional.py
segmentio/git-diff-conditional-buildkite-plugin
62a276000149da0bbf4e152634211c75966a8558
[ "MIT" ]
7
2020-03-27T11:59:51.000Z
2021-08-06T14:01:42.000Z
tests/unit/test_git_diff_conditional.py
segmentio/git-diff-conditional-buildkite-plugin
62a276000149da0bbf4e152634211c75966a8558
[ "MIT" ]
6
2020-03-28T20:49:49.000Z
2022-01-19T17:48:02.000Z
import pytest from CONSTANTS import LOGGER_NAME, PLUGIN_PREFIX from scripts.generate_pipeline import GitDiffConditional # Fixtures @pytest.fixture(scope="module") def file_name_env_var_suffix(): return "PIPELINE_FILE" @pytest.fixture(scope="module") def file_name(): return "pipeline.yml" @pytest.fixture...
28.5625
87
0.620897
93bec8fc357919adec87c75ff7ff9d478de73cc4
69
py
Python
redkite/__init__.py
GazizZhotabayev/redkite-pbi-tools
b89321e7dc7b5bae9cdaab178f60fdaa66f3feb4
[ "MIT" ]
2
2021-06-23T11:51:51.000Z
2021-06-30T11:46:50.000Z
redkite/__init__.py
GazizZhotabayev/redkite-pbi-tools
b89321e7dc7b5bae9cdaab178f60fdaa66f3feb4
[ "MIT" ]
1
2021-06-02T11:44:02.000Z
2021-06-02T11:44:02.000Z
redkite/__init__.py
GazizZhotabayev/redkite-pbi-tools
b89321e7dc7b5bae9cdaab178f60fdaa66f3feb4
[ "MIT" ]
2
2021-06-02T11:33:52.000Z
2021-07-08T10:35:17.000Z
from .portal import Portal from .tools import * from .deploy import *
23
26
0.768116
93bee9161e1961e16c030c94f6b11366459b2b7f
8,761
py
Python
geosoft/gxapi/GXDSEL.py
fearaschiarrai/gxpy
4c5e7594b24e530a8cd94df1eef562c5c6ce3e92
[ "BSD-2-Clause" ]
25
2017-07-14T06:39:37.000Z
2022-03-09T21:39:51.000Z
geosoft/gxapi/GXDSEL.py
fearaschiarrai/gxpy
4c5e7594b24e530a8cd94df1eef562c5c6ce3e92
[ "BSD-2-Clause" ]
100
2016-12-13T17:30:41.000Z
2021-08-01T20:21:13.000Z
geosoft/gxapi/GXDSEL.py
fearaschiarrai/gxpy
4c5e7594b24e530a8cd94df1eef562c5c6ce3e92
[ "BSD-2-Clause" ]
28
2016-12-12T17:34:40.000Z
2022-03-16T15:39:39.000Z
### extends 'class_empty.py' ### block ClassImports # NOTICE: Do not edit anything here, it is generated code from . import gxapi_cy from geosoft.gxapi import GXContext, float_ref, int_ref, str_ref ### endblock ClassImports ### block Header # NOTICE: The code generator will not replace the code in this block ### end...
27.812698
135
0.61945
93bef2e572e2fbcda04db5ea5bc088c3e17a79d3
1,624
py
Python
src/frontend/templatetags/frontend_tags.py
mava-ar/sgk
cb8b3abf243b4614e6a45e4e2db5bb7cce94dee4
[ "Apache-2.0" ]
null
null
null
src/frontend/templatetags/frontend_tags.py
mava-ar/sgk
cb8b3abf243b4614e6a45e4e2db5bb7cce94dee4
[ "Apache-2.0" ]
32
2016-05-09T19:37:08.000Z
2022-01-13T01:00:52.000Z
src/frontend/templatetags/frontend_tags.py
mava-ar/sgk
cb8b3abf243b4614e6a45e4e2db5bb7cce94dee4
[ "Apache-2.0" ]
null
null
null
import time from django import template from django.urls import reverse from django.utils import timezone from django_tenants.utils import get_tenant_model from pacientes.models import ComentariosHistoriaClinica, ImagenesHistoriaClinica register = template.Library() @register.filter(name="split") def split(str, sp...
27.066667
107
0.709975
93bf1be8c39f583768187ef6e09506100e2d45a1
2,437
py
Python
ConfigVersionControl/version_control_exceptions.py
GustavLero/EPICS-inst_servers
4bcdd6a80f1d9e074de3f0f7c66968d506981988
[ "BSD-3-Clause" ]
1
2020-08-20T23:38:53.000Z
2020-08-20T23:38:53.000Z
ConfigVersionControl/version_control_exceptions.py
GustavLero/EPICS-inst_servers
4bcdd6a80f1d9e074de3f0f7c66968d506981988
[ "BSD-3-Clause" ]
88
2015-09-03T11:50:41.000Z
2021-02-18T19:13:04.000Z
ConfigVersionControl/version_control_exceptions.py
GustavLero/EPICS-inst_servers
4bcdd6a80f1d9e074de3f0f7c66968d506981988
[ "BSD-3-Clause" ]
1
2020-08-20T23:38:05.000Z
2020-08-20T23:38:05.000Z
# This file is part of the ISIS IBEX application. # Copyright (C) 2012-2016 Science & Technology Facilities Council. # All rights reserved. # # This program is distributed in the hope that it will be useful. # This program and the accompanying materials are made available under the # terms of the Eclipse Public License...
34.323944
83
0.773082
93bf5414a3fa1866ad6db4a036e73dfa33beaa76
2,538
py
Python
configurations/featharalick_bagged_convroll_all_broaden_7x7_weightdecay_resume.py
YingK001/-
11a66cdbddee16c69514b9530a727df0ac6e136f
[ "MIT" ]
628
2015-03-25T17:32:30.000Z
2021-07-30T18:24:33.000Z
configurations/featharalick_bagged_convroll_all_broaden_7x7_weightdecay_resume.py
YingK001/-
11a66cdbddee16c69514b9530a727df0ac6e136f
[ "MIT" ]
4
2015-04-06T10:23:19.000Z
2017-01-10T18:47:49.000Z
configurations/featharalick_bagged_convroll_all_broaden_7x7_weightdecay_resume.py
YingK001/-
11a66cdbddee16c69514b9530a727df0ac6e136f
[ "MIT" ]
253
2015-03-25T18:08:43.000Z
2022-01-26T22:35:05.000Z
import numpy as np import theano import theano.tensor as T import lasagne as nn import data import load import nn_plankton import dihedral import tmp_dnn import tta features = [ # "hu", # "tutorial", "haralick", # "aaronmoments", # "lbp", # "pftas", # "zernike_moments", # "image_siz...
28.516854
143
0.710402
93bf72281b877c583ac290064e3a8349357298cf
6,979
py
Python
Assignment1/strucprobe.py
TimO96/NLP2
83f65a385457f68397c641f38b53df0110282578
[ "MIT" ]
null
null
null
Assignment1/strucprobe.py
TimO96/NLP2
83f65a385457f68397c641f38b53df0110282578
[ "MIT" ]
null
null
null
Assignment1/strucprobe.py
TimO96/NLP2
83f65a385457f68397c641f38b53df0110282578
[ "MIT" ]
null
null
null
import torch import torch.nn as nn import random from tqdm import tqdm class StructuralProbe(nn.Module): """ Computes squared L2 distance after projection by a matrix. For a batch of sentences, computes all n^2 pairs of distances for each sentence in the batch. """ def __init__(self, model_dim, r...
36.925926
133
0.635191
93bf99f44c4dfb776826fc13a854ea78e15cfa81
3,801
py
Python
tasks.py
wmclendon/fortigaterepr
9e23edbd25cd27deb7687d5a8690fd69dcada8ed
[ "Apache-2.0" ]
1
2020-01-21T18:48:10.000Z
2020-01-21T18:48:10.000Z
tasks.py
wmclendon/fortigaterepr
9e23edbd25cd27deb7687d5a8690fd69dcada8ed
[ "Apache-2.0" ]
16
2019-10-21T12:39:08.000Z
2021-06-02T00:38:38.000Z
tasks.py
wmclendon/fortigaterepr
9e23edbd25cd27deb7687d5a8690fd69dcada8ed
[ "Apache-2.0" ]
1
2020-10-14T02:42:33.000Z
2020-10-14T02:42:33.000Z
""" Tasks for maintaining the project. Execute 'invoke --list' for guidance on using Invoke """ import shutil import platform from invoke import task try: from pathlib import Path Path().expanduser() except (ImportError, AttributeError): from pathlib2 import Path import webbrowser ROOT_DIR = Path(__fi...
22.89759
79
0.62694
93bfa8cd92e13961693cb2b2383f9445f8994884
7,245
py
Python
sdk/netapp/azure-mgmt-netapp/azure/mgmt/netapp/aio/operations/_net_app_resource_quota_limits_operations.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
1
2022-03-09T08:59:13.000Z
2022-03-09T08:59:13.000Z
sdk/netapp/azure-mgmt-netapp/azure/mgmt/netapp/aio/operations/_net_app_resource_quota_limits_operations.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
null
null
null
sdk/netapp/azure-mgmt-netapp/azure/mgmt/netapp/aio/operations/_net_app_resource_quota_limits_operations.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
1
2022-03-04T06:21:56.000Z
2022-03-04T06:21:56.000Z
# coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may ...
41.878613
154
0.666253
93bfd24a04e32beede71b99cc9e56213c11c4a66
2,445
py
Python
tests/_display/test_ellipse.py
ynsnf/apysc
b10ffaf76ec6beb187477d0a744fca00e3efc3fb
[ "MIT" ]
16
2021-04-16T02:01:29.000Z
2022-01-01T08:53:49.000Z
tests/_display/test_ellipse.py
ynsnf/apysc
b10ffaf76ec6beb187477d0a744fca00e3efc3fb
[ "MIT" ]
613
2021-03-24T03:37:38.000Z
2022-03-26T10:58:37.000Z
tests/_display/test_ellipse.py
simon-ritchie/apyscript
c319f8ab2f1f5f7fad8d2a8b4fc06e7195476279
[ "MIT" ]
2
2021-06-20T07:32:58.000Z
2021-12-26T08:22:11.000Z
import re from random import randint from typing import Match from typing import Optional from retrying import retry import apysc as ap from apysc._display.stage import get_stage_variable_name from apysc._expression import expression_data_util from apysc._expression import var_names from tests._display.tes...
38.203125
73
0.63272
93c01fbdef4a2ce7b1c92138caa0e0da85bbca0a
7,733
py
Python
tests/test_dwave_sampler.py
davage/dwave-system
b899077ce024e666fe6de6b9c4a8f2d42cc7a991
[ "Apache-2.0" ]
1
2019-11-06T19:17:46.000Z
2019-11-06T19:17:46.000Z
tests/test_dwave_sampler.py
davage/dwave-system
b899077ce024e666fe6de6b9c4a8f2d42cc7a991
[ "Apache-2.0" ]
null
null
null
tests/test_dwave_sampler.py
davage/dwave-system
b899077ce024e666fe6de6b9c4a8f2d42cc7a991
[ "Apache-2.0" ]
null
null
null
# Copyright 2018 D-Wave Systems Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or...
37.538835
119
0.558386
93c02884c4264bfca66ab332ba9645cb11325a15
4,988
py
Python
plugins/events/events.py
tijptjik/thegodsproject
8014f7b546289b9ca3aec64f6492b8312628d0a2
[ "MIT" ]
null
null
null
plugins/events/events.py
tijptjik/thegodsproject
8014f7b546289b9ca3aec64f6492b8312628d0a2
[ "MIT" ]
null
null
null
plugins/events/events.py
tijptjik/thegodsproject
8014f7b546289b9ca3aec64f6492b8312628d0a2
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ events plugin for Pelican ========================= This plugin looks for and parses an "events" directory and generates blog posts with a user-defined event date. (typically in the future) It also generates an ICalendar v2.0 calendar file. https://en.wikipedia.org/wiki/ICalendar Author: ...
29.169591
91
0.629711
93c03d1ea99b981a47b33dba0ee57e3707122423
1,008
py
Python
model/functions.py
FFTYYY/TWIRLS
e751fa514baef54e8456135b7b790a0f810d0792
[ "MIT" ]
25
2021-06-16T15:56:04.000Z
2022-02-06T09:47:31.000Z
model/functions.py
FFTYYY/TWIRLS
e751fa514baef54e8456135b7b790a0f810d0792
[ "MIT" ]
null
null
null
model/functions.py
FFTYYY/TWIRLS
e751fa514baef54e8456135b7b790a0f810d0792
[ "MIT" ]
1
2021-06-29T05:45:47.000Z
2021-06-29T05:45:47.000Z
import pdb import random import dgl import torch as tc import torch as th import torch.nn as nn import torch.nn.functional as F from dgl import function as fn from torch.nn import init def normalized_AX(graph, X): """Y = D^{-1/2}AD^{-1/2}X""" Y = D_power_X(graph, X, -0.5) # Y = D^{-1/2}X Y = AX(graph, ...
19.764706
59
0.551587
93c053e256ae3ed368e3f1a95f1b927e1784df02
1,698
py
Python
leetcode/937_Reorder_Data_In_Log_Files.py
PhillipLeeHub/algorithm-and-data-structure
c0c27fee1b4fd634084da0b41395a26307d76e69
[ "MIT" ]
1
2020-05-01T21:29:17.000Z
2020-05-01T21:29:17.000Z
leetcode/937_Reorder_Data_In_Log_Files.py
PhillipLeeHub/algorithm-and-data-structure
c0c27fee1b4fd634084da0b41395a26307d76e69
[ "MIT" ]
null
null
null
leetcode/937_Reorder_Data_In_Log_Files.py
PhillipLeeHub/algorithm-and-data-structure
c0c27fee1b4fd634084da0b41395a26307d76e69
[ "MIT" ]
1
2020-06-12T23:32:14.000Z
2020-06-12T23:32:14.000Z
''' 937. Reorder Data in Log Files You have an array of logs. Each log is a space delimited string of words. For each log, the first word in each log is an alphanumeric identifier. Then, either: Each word after the identifier will consist only of lowercase letters, or; Each word after the identifier will consist o...
33.96
239
0.651355
93c059dd1980ddcde34b57f9a96370ae06493e19
6,558
py
Python
xstrings.py
elicn/xstrings
56419319d277129047f57cef5bfadd18d09133ae
[ "Unlicense" ]
14
2015-07-19T06:43:21.000Z
2021-08-28T05:42:50.000Z
xstrings.py
elicn/xstrings
56419319d277129047f57cef5bfadd18d09133ae
[ "Unlicense" ]
null
null
null
xstrings.py
elicn/xstrings
56419319d277129047f57cef5bfadd18d09133ae
[ "Unlicense" ]
2
2015-02-10T09:06:48.000Z
2015-07-19T06:31:48.000Z
#!/usr/bin/env python2 ''' xstrings - print the strings of encoded printable characters in files. inspired by 'xorsearch' by didier stevens, http://blog.didierstevens.com/programs/xorsearch @author Eli Cohen-Nehemia, https://github.com/elicn/xstrings ''' import re import argparse from string import printable from s...
44.917808
183
0.663617
93c0810209a3219112db4bb13c51b62c80b6a2ed
7,632
py
Python
More/E00_Publications/Presentations/WhatIsPageBot/Slides.py
freder/PageBotExamples
eb4ced53a673b9376e8357afa9ea0795b022b13c
[ "Ruby", "MIT" ]
5
2020-06-20T22:01:23.000Z
2021-08-06T04:39:50.000Z
More/E00_Publications/Presentations/WhatIsPageBot/Slides.py
freder/PageBotExamples
eb4ced53a673b9376e8357afa9ea0795b022b13c
[ "Ruby", "MIT" ]
5
2020-05-17T09:32:27.000Z
2021-03-15T19:45:52.000Z
More/E00_Publications/Presentations/WhatIsPageBot/Slides.py
freder/PageBotExamples
eb4ced53a673b9376e8357afa9ea0795b022b13c
[ "Ruby", "MIT" ]
2
2021-02-25T19:07:45.000Z
2022-01-09T21:14:06.000Z
# ----------------------------------------------------------------------------- # Copyright (c) 2016+ Buro Petr van Blokland + Claudia Mens # www.pagebot.io # # P A G E B O T E X A M P L E S # # Free to use. Licensed under MIT conditions # Made for usage in DrawBot, www.drawbot.com # --------------...
47.111111
301
0.639151
93c081afbe1c52f9e634aaf6ffe16c723d765535
1,344
py
Python
soco/plugins/example.py
gitter-badger/SoCo
65977466057748ea522a6d8b7f2a649091485a07
[ "MIT" ]
28
2020-04-24T17:32:33.000Z
2021-12-28T23:45:16.000Z
soco/plugins/example.py
gitter-badger/SoCo
65977466057748ea522a6d8b7f2a649091485a07
[ "MIT" ]
11
2020-04-28T15:57:39.000Z
2022-01-07T09:32:10.000Z
soco/plugins/example.py
gitter-badger/SoCo
65977466057748ea522a6d8b7f2a649091485a07
[ "MIT" ]
3
2021-08-10T11:56:14.000Z
2022-01-13T04:19:03.000Z
# -*- coding: utf-8 -*- """Example implementation of a plugin.""" from __future__ import ( print_function, unicode_literals ) from ..plugins import SoCoPlugin __all__ = ['ExamplePlugin'] class ExamplePlugin(SoCoPlugin): """This file serves as an example of a SoCo plugin.""" def __init__(self, soco, ...
24.436364
70
0.616815
93c0a682c527cd1446045419ceed0c31627d2a38
25,983
py
Python
impacket/structure.py
black-security/impacket3
5b6145b3f511d4f7cddaba64cf150b109113afea
[ "Apache-1.1" ]
null
null
null
impacket/structure.py
black-security/impacket3
5b6145b3f511d4f7cddaba64cf150b109113afea
[ "Apache-1.1" ]
null
null
null
impacket/structure.py
black-security/impacket3
5b6145b3f511d4f7cddaba64cf150b109113afea
[ "Apache-1.1" ]
1
2022-01-28T00:53:41.000Z
2022-01-28T00:53:41.000Z
# Copyright (c) 2003-2012 CORE Security Technologies # # This software is provided under under a slightly modified version # of the Apache Software License. See the accompanying LICENSE file # for more information. # from struct import pack, unpack, calcsize # Trying to support both Python 2 and 3 import sys if sys....
32.765448
198
0.506677
93c0da54e0e9842817e6a0ef2d660ee4dbe92806
17,306
py
Python
datasets/convert_imagenet.py
SimuJenni/Correspondences
384c0272e438ad3e7c936f5ae78fe6154b188c54
[ "MIT" ]
null
null
null
datasets/convert_imagenet.py
SimuJenni/Correspondences
384c0272e438ad3e7c936f5ae78fe6154b188c54
[ "MIT" ]
null
null
null
datasets/convert_imagenet.py
SimuJenni/Correspondences
384c0272e438ad3e7c936f5ae78fe6154b188c54
[ "MIT" ]
null
null
null
# Copyright 2016 Google Inc. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or a...
38.629464
119
0.683231
93c0f1aff12107a2803023d767e7f40502a66999
677
py
Python
var/spack/repos/builtin/packages/py-aiosignal/package.py
BenWibking/spack
49b3b43a4a9375210b578635d9240875a5f3106b
[ "ECL-2.0", "Apache-2.0", "MIT-0", "MIT" ]
348
2015-12-30T04:05:54.000Z
2022-02-21T10:57:53.000Z
var/spack/repos/builtin/packages/py-aiosignal/package.py
BenWibking/spack
49b3b43a4a9375210b578635d9240875a5f3106b
[ "ECL-2.0", "Apache-2.0", "MIT-0", "MIT" ]
3,994
2015-12-09T09:43:00.000Z
2017-11-04T02:46:39.000Z
var/spack/repos/builtin/packages/py-aiosignal/package.py
flatironinstitute/spack
71a7b1b5fadbe16bcdb36fb679aa828cd7d83b02
[ "ECL-2.0", "Apache-2.0", "MIT-0", "MIT" ]
359
2015-12-16T18:25:55.000Z
2017-11-02T14:51:13.000Z
# 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) from spack import * class PyAiosignal(PythonPackage): """A project to manage callbacks in asyncio projects.""" ...
32.238095
95
0.713442
93c1059ff6a2ef5c4a246be710b66141d02275d4
4,250
py
Python
researchtool/summarization.py
ChristophBeckmann/ResearchTool
178ae87a23ea7fcc908505a8469075be3c2205ee
[ "MIT" ]
null
null
null
researchtool/summarization.py
ChristophBeckmann/ResearchTool
178ae87a23ea7fcc908505a8469075be3c2205ee
[ "MIT" ]
null
null
null
researchtool/summarization.py
ChristophBeckmann/ResearchTool
178ae87a23ea7fcc908505a8469075be3c2205ee
[ "MIT" ]
null
null
null
import logging from nltk.cluster.util import cosine_distance # For calculate Cosine similarity (Similarity of two sentences) from nltk.corpus import stopwords # nltk stopwords files import numpy as np import networkx as nx # Network analysis: Need for similarity gra...
38.990826
119
0.670824
93c174c00ea0ee22c01a805ff420033f8df533b3
1,664
py
Python
installer/model/model/user.py
F0xedb/tos-installer-backend
664b5d2100b302f22e649c449ccfa1376d838215
[ "MIT" ]
1
2019-09-14T17:15:23.000Z
2019-09-14T17:15:23.000Z
installer/model/model/user.py
F0xedb/tos-installer-backend
664b5d2100b302f22e649c449ccfa1376d838215
[ "MIT" ]
10
2019-08-25T20:52:47.000Z
2019-10-14T13:44:19.000Z
installer/model/model/user.py
ODEX-TOS/tos-installer-backend
664b5d2100b302f22e649c449ccfa1376d838215
[ "MIT" ]
null
null
null
# MIT License # # Copyright (c) 2019 Meyers Tom # # 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...
39.619048
89
0.736779
93c18793ba34231e24476007a259c986019dab53
1,876
py
Python
maths/prime_factors.py
tg12/Python
398d1dbf4b780d1725aeae9a91b4c79f4410e2f0
[ "MIT" ]
null
null
null
maths/prime_factors.py
tg12/Python
398d1dbf4b780d1725aeae9a91b4c79f4410e2f0
[ "MIT" ]
null
null
null
maths/prime_factors.py
tg12/Python
398d1dbf4b780d1725aeae9a91b4c79f4410e2f0
[ "MIT" ]
1
2020-06-26T09:46:17.000Z
2020-06-26T09:46:17.000Z
'''THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, TITLE AND NON-INFRINGEMENT. IN NO EVENT SHALL THE COPYRIGHT HOLDERS OR ANYONE DISTRIBUTING THE SOFTWARE BE LIABLE FOR ANY DAMAGES OR OT...
26.422535
74
0.626866
93c1941e93189da20a0efb1f96f7a0c780a4c9dd
1,613
py
Python
data/transcoder_evaluation_gfg/python/FIND_MAXIMUM_PRODUCT_OF_A_TRIPLET_IN_ARRAY_1.py
mxl1n/CodeGen
e5101dd5c5e9c3720c70c80f78b18f13e118335a
[ "MIT" ]
241
2021-07-20T08:35:20.000Z
2022-03-31T02:39:08.000Z
data/transcoder_evaluation_gfg/python/FIND_MAXIMUM_PRODUCT_OF_A_TRIPLET_IN_ARRAY_1.py
mxl1n/CodeGen
e5101dd5c5e9c3720c70c80f78b18f13e118335a
[ "MIT" ]
49
2021-07-22T23:18:42.000Z
2022-03-24T09:15:26.000Z
data/transcoder_evaluation_gfg/python/FIND_MAXIMUM_PRODUCT_OF_A_TRIPLET_IN_ARRAY_1.py
mxl1n/CodeGen
e5101dd5c5e9c3720c70c80f78b18f13e118335a
[ "MIT" ]
71
2021-07-21T05:17:52.000Z
2022-03-29T23:49:28.000Z
# Copyright (c) 2019-present, Facebook, Inc. # All rights reserved. # # This source code is licensed under the license found in the # LICENSE file in the root directory of this source tree. # def f_gold ( arr , n ) : if n < 3 : return - 1 arr.sort ( ) return max ( arr [ 0 ] * arr [ 1 ] * arr [ n - 1...
48.878788
185
0.466832
93c19e276e62873700fb642db7b5a08ad8baddcf
1,991
py
Python
venv/Lib/site-packages/tests/test_006_ConnPassingOpts.py
shehzadulislam/Assignment4
a9cced70be6ae5d2685027d68032d5849f638301
[ "Apache-2.0" ]
null
null
null
venv/Lib/site-packages/tests/test_006_ConnPassingOpts.py
shehzadulislam/Assignment4
a9cced70be6ae5d2685027d68032d5849f638301
[ "Apache-2.0" ]
null
null
null
venv/Lib/site-packages/tests/test_006_ConnPassingOpts.py
shehzadulislam/Assignment4
a9cced70be6ae5d2685027d68032d5849f638301
[ "Apache-2.0" ]
null
null
null
# # Licensed Materials - Property of IBM # # (c) Copyright IBM Corp. 2007-2008 # import unittest, sys import ibm_db import config from testfunctions import IbmDbTestFunctions class IbmDbTestCase(unittest.TestCase): def test_006_ConnPassingOpts(self): obj = IbmDbTestFunctions() obj.assert_expect(self.r...
21.641304
91
0.586138
93c1be5cbd20ee423b53c7993aa7ac08bf23de85
724
py
Python
reana_server/cli.py
holzman/reana-server
f0d55e16ba01ae4e4ca53b823eaa56d6bd2572aa
[ "MIT" ]
null
null
null
reana_server/cli.py
holzman/reana-server
f0d55e16ba01ae4e4ca53b823eaa56d6bd2572aa
[ "MIT" ]
null
null
null
reana_server/cli.py
holzman/reana-server
f0d55e16ba01ae4e4ca53b823eaa56d6bd2572aa
[ "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 Server command line tool.""" import logging import click from reana_commons.c...
27.846154
72
0.754144
93c1e5a75ca085d1e551ba851c66a6a10871530a
1,132
py
Python
loom/test/test_infer_seeded.py
probcomp/loom
825188eae76e7106a6959f6a18312b0aa3338f83
[ "BSD-3-Clause" ]
2
2019-10-25T17:57:22.000Z
2020-07-14T02:37:34.000Z
loom/test/test_infer_seeded.py
probcomp/loom
825188eae76e7106a6959f6a18312b0aa3338f83
[ "BSD-3-Clause" ]
1
2019-12-13T03:08:05.000Z
2019-12-13T03:08:05.000Z
loom/test/test_infer_seeded.py
probcomp/loom
825188eae76e7106a6959f6a18312b0aa3338f83
[ "BSD-3-Clause" ]
1
2020-06-22T11:23:43.000Z
2020-06-22T11:23:43.000Z
import json import numpy as np import pandas as pd import loom.tasks def infer_and_relate(seed): """Helper function to infer taxi model using a given seed.""" config = {'schedule': {'extra_passes': 1}, 'seed': seed} name = 'seeding-test' loom.tasks.ingest(name, 'synth-schema.json', 'synth.csv', debu...
32.342857
73
0.659011
93c1f6f008cbb98a05eddda8deddd9672409f5e4
1,948
py
Python
days/day7.py
Kurocon/AdventOfCode2016
357e55025c763baa9d838b70025f968ca5e92ed7
[ "BSD-3-Clause" ]
null
null
null
days/day7.py
Kurocon/AdventOfCode2016
357e55025c763baa9d838b70025f968ca5e92ed7
[ "BSD-3-Clause" ]
null
null
null
days/day7.py
Kurocon/AdventOfCode2016
357e55025c763baa9d838b70025f968ca5e92ed7
[ "BSD-3-Clause" ]
null
null
null
import re from days import AOCDay, day @day(7) class Day7(AOCDay): test_input = """abba[mnop]qrst abcd[bddb]xyyx aaaa[qwer]tyui ioxxoj[asdfgh]zxcvbn""" test_input2 = """aba[bab]xyz xyx[xyx]xyx aaa[kek]eke zazbz[bzb]cdb""" addresses = [] ADDR_RE = re.compile("(?:(?P<outside>[^\[\]][a-z]+[^\[\]])|\...
29.969231
88
0.541068
93c1f8b80771ca95d5e3ea756c7e53857e64b4ae
7,222
py
Python
app/main/routes.py
Sjors/patron
a496097ad0821b677c8e710e8aceb587928be31c
[ "MIT" ]
114
2018-12-30T20:43:37.000Z
2022-03-21T18:57:47.000Z
app/main/routes.py
Sjors/patron
a496097ad0821b677c8e710e8aceb587928be31c
[ "MIT" ]
17
2019-04-25T20:20:57.000Z
2022-03-29T21:48:35.000Z
app/main/routes.py
Sjors/patron
a496097ad0821b677c8e710e8aceb587928be31c
[ "MIT" ]
17
2019-01-02T06:37:11.000Z
2022-03-29T22:22:40.000Z
from app import blog_engine, db from app.main import bp from app.models import BTCPayClientStore, Square, PriceLevel from datetime import datetime from flask import redirect, url_for, flash, render_template, request,\ current_app from flask_blogging_patron import PostProcessor from flask_blogging_patron.views i...
33.590698
72
0.568125
93c1f9a3abe9199ba23996639baa80ebb7cbe3b6
970
py
Python
iris_sdk/models/maps/order.py
NumberAI/python-bandwidth-iris
0e05f79d68b244812afb97e00fd65b3f46d00aa3
[ "MIT" ]
2
2020-04-13T13:47:59.000Z
2022-02-23T20:32:41.000Z
iris_sdk/models/maps/order.py
bandwidthcom/python-bandwidth-iris
dbcb30569631395041b92917252d913166f7d3c9
[ "MIT" ]
5
2020-09-18T20:59:24.000Z
2021-08-25T16:51:42.000Z
iris_sdk/models/maps/order.py
bandwidthcom/python-bandwidth-iris
dbcb30569631395041b92917252d913166f7d3c9
[ "MIT" ]
5
2018-12-12T14:39:50.000Z
2020-11-17T21:42:29.000Z
#!/usr/bin/env python from iris_sdk.models.maps.base_map import BaseMap class OrderMap(BaseMap): area_code_search_and_order_type = None back_order_requested = None close_order = None count_of_t_ns = None customer_order_id = None city_search_and_order_type = None existing_telephone_number_...
28.529412
52
0.747423
93c2157cdfb60f9313f11fdcf231712d82e59561
818
py
Python
bob_white/bwhite_12.py
techartorg/Advent_of_Code_2020
ae21164bc126352e7a2e9c9c6a0017ccb9d946cc
[ "MIT" ]
3
2020-11-16T15:20:11.000Z
2020-12-11T17:01:42.000Z
bob_white/bwhite_12.py
techartorg/Advent_of_Code_2020
ae21164bc126352e7a2e9c9c6a0017ccb9d946cc
[ "MIT" ]
null
null
null
bob_white/bwhite_12.py
techartorg/Advent_of_Code_2020
ae21164bc126352e7a2e9c9c6a0017ccb9d946cc
[ "MIT" ]
1
2020-12-13T04:42:44.000Z
2020-12-13T04:42:44.000Z
pzl = open("day_12.input").read().splitlines() pos_01 = pos_02 = 0j facing = 1 + 0j waypoint = 10 + 1j directions = { "N": 1j, "S": -1j, "E": 1, "W": -1, } rotations = { "R90": -1j, "R180": -1, "R270": 1j, "L90": 1j, "L180": -1, "L270": -1j, } for mov in pzl: direction = ...
20.974359
61
0.5489
93c234fcf91c54bc4b936f33f240c223bef3ae01
148,562
py
Python
SCRAPE/Lib/site-packages/IPython/core/interactiveshell.py
Chinmoy-Prasad-Dutta/scrapy_scraper
09f6abfc3bcf10ee28f486d83b450c89a07e066e
[ "MIT" ]
2
2022-02-26T11:19:40.000Z
2022-03-28T08:23:25.000Z
SCRAPE/Lib/site-packages/IPython/core/interactiveshell.py
Chinmoy-Prasad-Dutta/scrapy_scraper
09f6abfc3bcf10ee28f486d83b450c89a07e066e
[ "MIT" ]
null
null
null
SCRAPE/Lib/site-packages/IPython/core/interactiveshell.py
Chinmoy-Prasad-Dutta/scrapy_scraper
09f6abfc3bcf10ee28f486d83b450c89a07e066e
[ "MIT" ]
1
2022-03-28T09:19:34.000Z
2022-03-28T09:19:34.000Z
# -*- coding: utf-8 -*- """Main IPython class.""" #----------------------------------------------------------------------------- # Copyright (C) 2001 Janko Hauser <jhauser@zscout.de> # Copyright (C) 2001-2007 Fernando Perez. <fperez@colorado.edu> # Copyright (C) 2008-2011 The IPython Development Team # # Distribu...
39.521681
147
0.588138
93c256ddf41fe0815b282f94010787bd74965c41
11,701
py
Python
ufora/FORA/python/fora_interpreter.py
ufora/ufora
04db96ab049b8499d6d6526445f4f9857f1b6c7e
[ "Apache-2.0", "CC0-1.0", "MIT", "BSL-1.0", "BSD-3-Clause" ]
571
2015-11-05T20:07:07.000Z
2022-01-24T22:31:09.000Z
ufora/FORA/python/fora_interpreter.py
timgates42/ufora
04db96ab049b8499d6d6526445f4f9857f1b6c7e
[ "Apache-2.0", "CC0-1.0", "MIT", "BSL-1.0", "BSD-3-Clause" ]
218
2015-11-05T20:37:55.000Z
2021-05-30T03:53:50.000Z
ufora/FORA/python/fora_interpreter.py
timgates42/ufora
04db96ab049b8499d6d6526445f4f9857f1b6c7e
[ "Apache-2.0", "CC0-1.0", "MIT", "BSL-1.0", "BSD-3-Clause" ]
40
2015-11-07T21:42:19.000Z
2021-05-23T03:48:19.000Z
#!/usr/bin/env python # encoding: utf-8 # Copyright 2015 Ufora Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless...
32.23416
99
0.624306
93c263901e353879fbc21b83c93ffe91df26ff55
1,071
py
Python
templates/database/redis/actions.py
Jumpscale/ays9
63bd414ff06372ba885c55eec528f427e63bcbe1
[ "Apache-2.0" ]
4
2017-06-07T08:10:06.000Z
2017-11-10T02:20:38.000Z
templates/database/redis/actions.py
Jumpscale/ays9
63bd414ff06372ba885c55eec528f427e63bcbe1
[ "Apache-2.0" ]
242
2017-05-18T10:51:48.000Z
2019-09-18T15:09:47.000Z
templates/database/redis/actions.py
Jumpscale/ays9
63bd414ff06372ba885c55eec528f427e63bcbe1
[ "Apache-2.0" ]
5
2017-06-16T15:43:25.000Z
2017-09-29T12:48:06.000Z
def install(job): service = job.service prefab = service.executor.prefab prefab.db.redis.install() prefab.db.redis.start( name=service.name, ip=service.model.data.host if service.model.data.host != '' else None, port=service.model.data.port, unixsocket=service.model.data...
32.454545
98
0.678805
93c270f34b6b9554cd66803034f4e985f09214bb
107
py
Python
grouper/entities/checkpoint.py
TimYagan/merou
3d3cd5e17eab5ffe259f7b41a925af6f47ec8988
[ "Apache-2.0" ]
null
null
null
grouper/entities/checkpoint.py
TimYagan/merou
3d3cd5e17eab5ffe259f7b41a925af6f47ec8988
[ "Apache-2.0" ]
null
null
null
grouper/entities/checkpoint.py
TimYagan/merou
3d3cd5e17eab5ffe259f7b41a925af6f47ec8988
[ "Apache-2.0" ]
null
null
null
from typing import NamedTuple Checkpoint = NamedTuple("Checkpoint", [("checkpoint", int), ("time", int)])
26.75
75
0.71028
93c293370b4f138788f51cde94dbd4952bc41f59
11,317
py
Python
g2s/onmt/modules/GlobalAttention.py
ashishu007/pytorch-stuff
e5384ac063880323527f6d9b18ade0ddb06a9615
[ "MIT" ]
19
2020-07-09T03:46:08.000Z
2022-01-05T08:34:43.000Z
g2s/onmt/modules/GlobalAttention.py
ashishu007/pytorch-stuff
e5384ac063880323527f6d9b18ade0ddb06a9615
[ "MIT" ]
12
2020-07-11T07:44:40.000Z
2022-03-12T00:44:15.000Z
g2s/onmt/modules/GlobalAttention.py
ashishu007/pytorch-stuff
e5384ac063880323527f6d9b18ade0ddb06a9615
[ "MIT" ]
4
2020-07-15T16:11:38.000Z
2021-10-16T16:58:02.000Z
import torch import torch.nn as nn from onmt.Utils import aeq, sequence_mask class GlobalAttention(nn.Module): """ Global attention takes a matrix and a query vector. It then computes a parameterized convex combination of the matrix based on the input query. Constructs a unit mapping a query `q`...
34.821538
96
0.57312
93c29de553823397f42f344c90a5125830caac17
1,537
py
Python
2021/20/solution2.py
frenzymadness/aoc
c9018e757bae61a696e675a827aef873995abdd3
[ "WTFPL" ]
2
2020-12-04T09:45:38.000Z
2020-12-07T14:06:12.000Z
2021/20/solution2.py
frenzymadness/aoc
c9018e757bae61a696e675a827aef873995abdd3
[ "WTFPL" ]
null
null
null
2021/20/solution2.py
frenzymadness/aoc
c9018e757bae61a696e675a827aef873995abdd3
[ "WTFPL" ]
null
null
null
from itertools import product algo = "" image = [] pixels = {".": "0", "#": "1"} with open("input.txt") as input_file: for line in input_file: line = line.strip() if not line: break algo += line for line in input_file: line = line.strip() image.append(...
24.790323
71
0.565387
93c2a044a38b5f1489383f4693fcc8e893f28720
7,754
py
Python
tests/test_hello.py
elishacook/falcon
0a9431ff2fbd60329532c726744a842b7caeeaf9
[ "Apache-2.0" ]
2
2015-04-16T22:01:52.000Z
2015-04-20T21:53:19.000Z
tests/test_hello.py
elishacook/falcon
0a9431ff2fbd60329532c726744a842b7caeeaf9
[ "Apache-2.0" ]
null
null
null
tests/test_hello.py
elishacook/falcon
0a9431ff2fbd60329532c726744a842b7caeeaf9
[ "Apache-2.0" ]
1
2020-03-23T13:33:14.000Z
2020-03-23T13:33:14.000Z
from testtools.matchers import Contains import falcon import io import falcon.testing as testing import six # NOTE(kgriffs): Concept from Gunicorn's source (wsgi.py) class FileWrapper(object): def __init__(self, file_like, block_size=8192): self.file_like = file_like self.block_size = block_siz...
33.713043
78
0.649342
93c2ac5fe12432cee0109a5a1cb29d12f63049e5
16,358
py
Python
sdk/applicationinsights/azure-mgmt-applicationinsights/azure/mgmt/applicationinsights/v2015_05_01/aio/operations/_workbooks_operations.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
1
2022-03-09T08:59:13.000Z
2022-03-09T08:59:13.000Z
sdk/applicationinsights/azure-mgmt-applicationinsights/azure/mgmt/applicationinsights/v2015_05_01/aio/operations/_workbooks_operations.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
null
null
null
sdk/applicationinsights/azure-mgmt-applicationinsights/azure/mgmt/applicationinsights/v2015_05_01/aio/operations/_workbooks_operations.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
1
2022-03-04T06:21:56.000Z
2022-03-04T06:21:56.000Z
# coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may ...
45.692737
179
0.67979
93c2acfa904a6e51ecd57b775a27941439ba948f
4,616
py
Python
zerver/tests/test_report.py
dehnert/zulip
f5935e81c7cf2f11ff4ccfcd31d2a1061b8d7ff5
[ "Apache-2.0" ]
null
null
null
zerver/tests/test_report.py
dehnert/zulip
f5935e81c7cf2f11ff4ccfcd31d2a1061b8d7ff5
[ "Apache-2.0" ]
1
2019-11-02T09:06:05.000Z
2019-11-02T09:06:05.000Z
zerver/tests/test_report.py
erinis-eligro/zulip-outcasts
51153a6ce219370aee79bfe462f6e4fb956993d9
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- from __future__ import absolute_import from __future__ import print_function from typing import Any, Callable, Iterable, Tuple from zerver.lib.test_classes import ( ZulipTestCase, ) from zerver.lib.utils import statsd import mock import ujson def fix_params(raw_params): # type: (Dict...
32.055556
75
0.588821
93c2b8c619877f6635a4c7c377783dcd10aab270
303
py
Python
python/projects/learnpythonthehardway.org/ex13.py
zhaoace/codecraft
bf06267e86bd7386714911b0df4aa0ca0a91d882
[ "Unlicense" ]
null
null
null
python/projects/learnpythonthehardway.org/ex13.py
zhaoace/codecraft
bf06267e86bd7386714911b0df4aa0ca0a91d882
[ "Unlicense" ]
null
null
null
python/projects/learnpythonthehardway.org/ex13.py
zhaoace/codecraft
bf06267e86bd7386714911b0df4aa0ca0a91d882
[ "Unlicense" ]
null
null
null
# encoding:utf-8 # modules 模组 # argument variable 参数变量 # unpack 解包 from sys import argv script, first, second, third = argv print "The script is called: ", script print "Your first variable is: ", first print "Your second variable is: ", second print "Your third variable is: ", third
20.2
42
0.689769
93c2c71d2ee487d54e2455e5fea77b821e29dd10
1,556
py
Python
create_dataset.py
EirikGG/3DModelDsGen
de973e51be69c36d2c5b9d99d6726db3d1a5980e
[ "MIT" ]
1
2021-06-23T02:04:25.000Z
2021-06-23T02:04:25.000Z
create_dataset.py
EirikGG/SyntheticDataGenObjectDetection
de973e51be69c36d2c5b9d99d6726db3d1a5980e
[ "MIT" ]
null
null
null
create_dataset.py
EirikGG/SyntheticDataGenObjectDetection
de973e51be69c36d2c5b9d99d6726db3d1a5980e
[ "MIT" ]
null
null
null
import argparse, sys, inspect from dataset_generator.dataset_generator import generate_dataset parser = argparse.ArgumentParser(description='Create image dataset based on a 3D model. ' 'This script calls dataset_generator/dataset_generator.py -> ' ...
50.193548
115
0.563625
93c2e2c9b254bc0e5fe3452921c779906bfcfd2e
313
py
Python
setup.py
bergkvistdavid/tempto
27cd4ab4c1defce625afe42b4743ccdf445afe5f
[ "Apache-2.0" ]
null
null
null
setup.py
bergkvistdavid/tempto
27cd4ab4c1defce625afe42b4743ccdf445afe5f
[ "Apache-2.0" ]
null
null
null
setup.py
bergkvistdavid/tempto
27cd4ab4c1defce625afe42b4743ccdf445afe5f
[ "Apache-2.0" ]
null
null
null
"""A setuptools based setup module. See: https://packaging.python.org/en/latest/distributing.html """ from setuptools import setup, find_packages setup( name="tempto", version="0.1.0", license="Apache License 2.0", description="Retry", author="bergkvistdavid", packages=find_packages() )
20.866667
56
0.699681
93c2eccde3151a39a08f78551ef9a113442ffffb
952
py
Python
medium/Spiral Matrix ||/solution.py
ashutosh1919/leetcode-problems
65f99a3694549af88c7702b598de1a8ccb7db5fb
[ "MIT" ]
8
2021-08-21T19:10:04.000Z
2022-03-11T14:30:02.000Z
medium/Spiral Matrix ||/solution.py
ashutosh1919/leetcode-problems
65f99a3694549af88c7702b598de1a8ccb7db5fb
[ "MIT" ]
null
null
null
medium/Spiral Matrix ||/solution.py
ashutosh1919/leetcode-problems
65f99a3694549af88c7702b598de1a8ccb7db5fb
[ "MIT" ]
1
2021-08-24T06:29:02.000Z
2021-08-24T06:29:02.000Z
# Time complexity: O(n*n) # Approach: Create empty matrix. Iterate through it in spiral way and keep putting the numbers. class Solution: def generateMatrix(self, n: int) -> List[List[int]]: ans = [[0]*n for i in range(n)] num = 1 left, right, top, bottom = 0, n-1, 0, n-1 while left...
38.08
95
0.481092
93c2fa194d8ed1aaa71f6645d5647d9739cb2983
2,547
py
Python
setup.py
groupserver/gs.profile.contact
89303e16efc671859efb0a81c90870ebbbe1fe93
[ "ZPL-2.1" ]
null
null
null
setup.py
groupserver/gs.profile.contact
89303e16efc671859efb0a81c90870ebbbe1fe93
[ "ZPL-2.1" ]
null
null
null
setup.py
groupserver/gs.profile.contact
89303e16efc671859efb0a81c90870ebbbe1fe93
[ "ZPL-2.1" ]
null
null
null
# -*- coding: utf-8 -*- ############################################################################ # # Copyright © 2016 OnlineGroups.net and Contributors. # All Rights Reserved. # # This software is subject to the provisions of the Zope Public License, # Version 2.1 (ZPL). A copy of the ZPL should accompany this dis...
33.077922
76
0.612093
93c30802f4bb8ec0eb1daf9a870f6dfa5ca3ac02
97
py
Python
by-session/ta-921/j8/representation.py
amiraliakbari/sharif-mabani-python
5d14a08d165267fe71c28389ddbafe29af7078c5
[ "MIT" ]
2
2015-04-29T20:59:35.000Z
2018-09-26T13:33:43.000Z
by-session/ta-921/j8/representation.py
amiraliakbari/sharif-mabani-python
5d14a08d165267fe71c28389ddbafe29af7078c5
[ "MIT" ]
null
null
null
by-session/ta-921/j8/representation.py
amiraliakbari/sharif-mabani-python
5d14a08d165267fe71c28389ddbafe29af7078c5
[ "MIT" ]
null
null
null
t1 = [[1], [1], [1], [1], [1]] t2 = [[1], [1, [1, 1]], [1]] t3 = [[1], [1, [1, [1], 1]], [1]]
24.25
34
0.226804
93c31338c7fb3c8831aeac37bebb0e8a07f5feda
2,562
py
Python
rlbench/tasks/reach_target.py
robfiras/RLBench
97ab9526b6efb718f2b5aae40897ccd75aeff11e
[ "BSD-3-Clause" ]
null
null
null
rlbench/tasks/reach_target.py
robfiras/RLBench
97ab9526b6efb718f2b5aae40897ccd75aeff11e
[ "BSD-3-Clause" ]
null
null
null
rlbench/tasks/reach_target.py
robfiras/RLBench
97ab9526b6efb718f2b5aae40897ccd75aeff11e
[ "BSD-3-Clause" ]
null
null
null
from typing import List, Tuple import numpy as np from pyrep.objects.shape import Shape from pyrep.objects.proximity_sensor import ProximitySensor from rlbench.const import colors from rlbench.backend.task import Task from rlbench.backend.spawn_boundary import SpawnBoundary from rlbench.backend.conditions import Detect...
40.666667
115
0.647541
93c32b30861b10becf9335b0f27cd866aa581588
11,296
py
Python
tests/classification/test_stat_scores.py
awaelchli/metrics
bb5ca011e1b31dfebe04574eb07be0af541c51fb
[ "Apache-2.0" ]
1
2021-03-12T10:33:12.000Z
2021-03-12T10:33:12.000Z
tests/classification/test_stat_scores.py
awaelchli/metrics
bb5ca011e1b31dfebe04574eb07be0af541c51fb
[ "Apache-2.0" ]
null
null
null
tests/classification/test_stat_scores.py
awaelchli/metrics
bb5ca011e1b31dfebe04574eb07be0af541c51fb
[ "Apache-2.0" ]
null
null
null
# Copyright The PyTorch Lightning team. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to i...
41.992565
120
0.648106
93c34a0a386a4963ee4269c0763ee92d3197c302
2,487
py
Python
Model/predict_lstm.py
SBUNetSys/MobiRNN-EMDL17
2ae914b8cd2794f014b45207bb94749168b2b0be
[ "MIT" ]
12
2017-06-06T14:52:24.000Z
2020-10-12T03:50:15.000Z
Model/predict_lstm.py
SBUNetSys/MobiRNN-EMDL17
2ae914b8cd2794f014b45207bb94749168b2b0be
[ "MIT" ]
null
null
null
Model/predict_lstm.py
SBUNetSys/MobiRNN-EMDL17
2ae914b8cd2794f014b45207bb94749168b2b0be
[ "MIT" ]
6
2017-06-06T14:52:25.000Z
2020-10-21T09:51:37.000Z
#!/usr/bin/python from __future__ import print_function import tensorflow as tf import numpy as np import os import time import util if __name__ == "__main__": frozen_model = "data/lstm_model.pb" if os.path.isfile(frozen_model): print("using frozen model: {}".format(frozen_model)) else: pri...
38.261538
94
0.632087
93c34b6960975fe0a338c8818a31945d20254101
3,325
py
Python
StaticXMLCompare/static_data_pre_diff_merge.py
cafesun/expython
fae2db6f343577c3008a533e8adab3ec35ffa313
[ "MIT" ]
null
null
null
StaticXMLCompare/static_data_pre_diff_merge.py
cafesun/expython
fae2db6f343577c3008a533e8adab3ec35ffa313
[ "MIT" ]
null
null
null
StaticXMLCompare/static_data_pre_diff_merge.py
cafesun/expython
fae2db6f343577c3008a533e8adab3ec35ffa313
[ "MIT" ]
null
null
null
#!/usr/bin/python # -*- coding:utf8 -*- import os, sys, argparse import logging from static_file_scanner import StaticFileScanner from static_xml_parser_ex import StaticXMLParseEx class StaticDataPreMerge(object): '静态数据合并类' def __init__(self, xmlPath, pattern): self._xmlPath = xmlPath self....
34.278351
106
0.640301
93c36724fd5cc5ffa950cbd66d0c7a812f12dc95
3,215
py
Python
kirsche/download.py
kausalflow/kirsche
6aabc9e9fede82b5e69f537126bae335bc089caf
[ "MIT" ]
4
2021-09-21T03:08:18.000Z
2021-09-27T00:49:45.000Z
kirsche/download.py
kausalflow/kirsche
6aabc9e9fede82b5e69f537126bae335bc089caf
[ "MIT" ]
2
2021-09-22T11:22:30.000Z
2021-09-28T15:20:50.000Z
kirsche/download.py
kausalflow/kirsche
6aabc9e9fede82b5e69f537126bae335bc089caf
[ "MIT" ]
null
null
null
import json import time from pathlib import Path from typing import Optional, Union import click from loguru import logger from kirsche.utils.bib import get_unique_ids_from_bib from kirsche.utils.semanticscholar import get_paper_info from kirsche.utils.io import save_batch_json def list_dois( paper_ids: Optiona...
27.956522
84
0.6479
93c371aa928f76dc444114ac184c4f5490fb1070
4,489
py
Python
production/pygsl-0.9.5/tests/multifit_nlin_test.py
juhnowski/FishingRod
457e7afb5cab424296dff95e1acf10ebf70d32a9
[ "MIT" ]
null
null
null
production/pygsl-0.9.5/tests/multifit_nlin_test.py
juhnowski/FishingRod
457e7afb5cab424296dff95e1acf10ebf70d32a9
[ "MIT" ]
null
null
null
production/pygsl-0.9.5/tests/multifit_nlin_test.py
juhnowski/FishingRod
457e7afb5cab424296dff95e1acf10ebf70d32a9
[ "MIT" ]
1
2018-10-02T06:18:07.000Z
2018-10-02T06:18:07.000Z
#!/usr/bin/env python # Author : Pierre Schnizer import sys import unittest import pygsl._numobj as Numeric import random import pygsl from pygsl import Float from pygsl import multifit_nlin import copy #import Gnuplot exp = Numeric.exp #g = Gnuplot.Gnuplot() _eps = 1e-7 def testfunc(t, A = 1., _lambda = .1, b=.5): ...
31.612676
80
0.470483
93c3a7107a730135f0a5172d715c68819e190349
8,771
py
Python
hls4ml_working_lib_test_too/hls4ml/utils/config.py
filipemlins/nas-hls4ml
b35afc4f684d803d352776c40f3a6cbbf47c4b1c
[ "MIT" ]
null
null
null
hls4ml_working_lib_test_too/hls4ml/utils/config.py
filipemlins/nas-hls4ml
b35afc4f684d803d352776c40f3a6cbbf47c4b1c
[ "MIT" ]
null
null
null
hls4ml_working_lib_test_too/hls4ml/utils/config.py
filipemlins/nas-hls4ml
b35afc4f684d803d352776c40f3a6cbbf47c4b1c
[ "MIT" ]
null
null
null
from __future__ import print_function import numpy as np import h5py import json import math from collections import OrderedDict def create_vivado_config(output_dir='my-hls-test', project_name='myproject', fpga_part='xcku115-flvb2104-2-i', clock_period=5): config = {} config['OutputDir'] = output...
41.966507
159
0.620454
93c3a9499794f1c5c31b8ac93b18c7693119a418
1,664
py
Python
DAFNI-wrappers/et_module/dockerFiles/extract_data.py
roseDickinson/nismod2
5c571b055a6f5dc26bdc2bc8950b9cf1c9202fca
[ "MIT" ]
5
2019-12-18T15:27:28.000Z
2020-10-03T09:10:23.000Z
DAFNI-wrappers/et_module/dockerFiles/extract_data.py
roseDickinson/nismod2
5c571b055a6f5dc26bdc2bc8950b9cf1c9202fca
[ "MIT" ]
11
2019-12-18T14:53:03.000Z
2021-12-30T07:26:46.000Z
DAFNI-wrappers/et_module/dockerFiles/extract_data.py
roseDickinson/nismod2
5c571b055a6f5dc26bdc2bc8950b9cf1c9202fca
[ "MIT" ]
3
2019-12-18T15:27:39.000Z
2022-02-25T07:04:06.000Z
from utils import run_process, link_files, copy_lads from shutil import unpack_archive from pathlib import Path from settings import ( NISMOD_PATH, NISMOD_DATA_PATH, NISMOD_SCENARIOS_PATH, NISMOD_SOCIO_ECONOMIC_PATH, ) def extract(): copy_lads() print("Extracting") datasets = [ { ...
28.689655
79
0.569712
93c3dbe67b89be2410f888952ab245b97486597b
797
py
Python
modernize/fixes/fix_import.py
superjkl/python-modernize-division-warnings
7095261ec661fbf33db59c87c501f0f84ecc4f4a
[ "BSD-3-Clause" ]
220
2015-03-25T11:06:13.000Z
2020-08-19T13:33:57.000Z
modernize/fixes/fix_import.py
superjkl/python-modernize-division-warnings
7095261ec661fbf33db59c87c501f0f84ecc4f4a
[ "BSD-3-Clause" ]
113
2015-01-03T18:05:27.000Z
2020-08-18T21:42:23.000Z
modernize/fixes/fix_import.py
superjkl/python-modernize-division-warnings
7095261ec661fbf33db59c87c501f0f84ecc4f4a
[ "BSD-3-Clause" ]
39
2015-01-18T10:08:52.000Z
2020-07-12T18:44:40.000Z
from __future__ import generator_stop from fissix.fixer_util import syms from fissix.fixes import fix_import from .. import utils class FixImport(fix_import.FixImport): # Make sure this runs before any other fixer to guarantee that any other # added absolute_import doesn't block this fixer's execution. ...
28.464286
76
0.659975
93c3e5a6ebd76875346208ebccb574b676b28e3f
715
py
Python
utils/orm_norm/ormnorm.py
neulab/cmu-ner
d35d57fe453d81cc98e3ee55bac58f9ca618f59b
[ "BSD-3-Clause" ]
11
2018-04-21T10:25:12.000Z
2022-03-27T03:48:25.000Z
utils/orm_norm/ormnorm.py
neulab/cmu-ner
d35d57fe453d81cc98e3ee55bac58f9ca618f59b
[ "BSD-3-Clause" ]
2
2018-06-29T11:02:18.000Z
2018-06-29T11:15:24.000Z
utils/orm_norm/ormnorm.py
neulab/cmu-ner
d35d57fe453d81cc98e3ee55bac58f9ca618f59b
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- import re PATTERNS = [ (r'([aeiou])(\1)', r'\1'), (r'(b|c|ch|d|dh|f|g|h|j|k|l|m|n|ny|p|ph|q|r|s|sh|t|v|w|x|y|z)\1', r'\1'), (r'ph', r'p'), (r'q', r'k'), (r'x', r't'), (r'c([^h]|\b)', r'ch\1'), (r'ai', r'ayi'), (r's(b|c|ch|d|dh|f|g|h|j|k|l|m...
24.655172
87
0.493706
93c3ea840734a39f2dd927e0f7194f15f4356de6
812
py
Python
photologger_project/photologger/slack.py
matteoferla/Somewhat-Smart-Home
aa3b3855648b1732c733e8cc604ab2f0124d12c4
[ "MIT" ]
null
null
null
photologger_project/photologger/slack.py
matteoferla/Somewhat-Smart-Home
aa3b3855648b1732c733e8cc604ab2f0124d12c4
[ "MIT" ]
null
null
null
photologger_project/photologger/slack.py
matteoferla/Somewhat-Smart-Home
aa3b3855648b1732c733e8cc604ab2f0124d12c4
[ "MIT" ]
null
null
null
import requests, unicodedata, os, re def slack(msg): """ Send message to a slack webhook. Copy pasted code from Michelanglo. Obvs nothing malicious is sent from here! :param msg: :return: """ print(msg) # sanitise. if 'SLACK_WEBHOOK' not in os.environ: return False msg =...
33.833333
84
0.570197
93c401a23356cda4b66b2d002018c133779ccb3d
13,476
py
Python
src/CAceHttpClient/scripts/rebuild_CAceHttpClient.py
xylsxyls/xueyelingshuan
61eb1c7c4f76c3eaf4cf26e4b2b37b6ed2abc5b9
[ "MIT" ]
3
2019-11-26T05:33:47.000Z
2020-05-18T06:49:41.000Z
src/CAceHttpClient/scripts/rebuild_CAceHttpClient.py
xylsxyls/xueyelingshuan
61eb1c7c4f76c3eaf4cf26e4b2b37b6ed2abc5b9
[ "MIT" ]
null
null
null
src/CAceHttpClient/scripts/rebuild_CAceHttpClient.py
xylsxyls/xueyelingshuan
61eb1c7c4f76c3eaf4cf26e4b2b37b6ed2abc5b9
[ "MIT" ]
1
2020-06-03T03:27:27.000Z
2020-06-03T03:27:27.000Z
#!python3 # -*- coding:utf-8 -*- import os import sys import time import ctypes import shutil import subprocess IsPy3 = sys.version_info[0] >= 3 if IsPy3: import winreg else: import codecs import _winreg as winreg BuildType = 'Release' IsRebuild = True Build = 'Rebuild' Update = False C...
39.174419
178
0.582591
93c42bb6ff75d76a0368b1b74de1ed63c9be0322
7,183
py
Python
python/mxnet/gluon/contrib/data/text.py
UNIXCODERS/incubator-mxnet
5c5a904209900e21b20ca206b043ea7a8252ebfc
[ "Apache-2.0" ]
1
2018-02-26T02:46:07.000Z
2018-02-26T02:46:07.000Z
python/mxnet/gluon/contrib/data/text.py
UNIXCODERS/incubator-mxnet
5c5a904209900e21b20ca206b043ea7a8252ebfc
[ "Apache-2.0" ]
null
null
null
python/mxnet/gluon/contrib/data/text.py
UNIXCODERS/incubator-mxnet
5c5a904209900e21b20ca206b043ea7a8252ebfc
[ "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...
42.005848
96
0.635111
93c43387dff3ef03cedbfbd1cd1d7d831a637056
4,909
py
Python
src/emm/services/evg_cli_service.py
zamj/evg-module-manager
e6029edce023071847ef2ea25af89c31219f41f6
[ "Apache-2.0" ]
null
null
null
src/emm/services/evg_cli_service.py
zamj/evg-module-manager
e6029edce023071847ef2ea25af89c31219f41f6
[ "Apache-2.0" ]
null
null
null
src/emm/services/evg_cli_service.py
zamj/evg-module-manager
e6029edce023071847ef2ea25af89c31219f41f6
[ "Apache-2.0" ]
null
null
null
"""Service for working with the evergreen CLI.""" from __future__ import annotations import re from pathlib import Path from typing import List, NamedTuple from plumbum import local from plumbum.machines.local import LocalCommand from emm.options import EmmOptions PATCH_ID_RE = re.compile(r"ID\s:\s(?P<patch_id>\S+)...
34.090278
96
0.621919