blob_id stringlengths 40 40 | directory_id stringlengths 40 40 | path stringlengths 4 721 | content_id stringlengths 40 40 | detected_licenses listlengths 0 57 | license_type stringclasses 2
values | repo_name stringlengths 5 91 | snapshot_id stringlengths 40 40 | revision_id stringlengths 40 40 | branch_name stringclasses 321
values | visit_date timestamp[ns]date 2016-08-12 09:31:09 2023-09-06 10:45:07 | revision_date timestamp[ns]date 2010-09-28 14:01:40 2023-09-06 06:22:19 | committer_date timestamp[ns]date 2010-09-28 14:01:40 2023-09-06 06:22:19 | github_id int64 426 681M | star_events_count int64 101 243k | fork_events_count int64 0 110k | gha_license_id stringclasses 23
values | gha_event_created_at timestamp[ns]date 2012-06-28 18:51:49 2023-09-14 21:59:16 ⌀ | gha_created_at timestamp[ns]date 2008-02-11 22:55:26 2023-08-10 11:14:58 ⌀ | gha_language stringclasses 147
values | src_encoding stringclasses 26
values | language stringclasses 2
values | is_vendor bool 2
classes | is_generated bool 2
classes | length_bytes int64 6 10.2M | extension stringclasses 115
values | filename stringlengths 3 113 | content stringlengths 6 10.2M |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
41ba98b008236e1204ee0d56eee05869874d077b | b347bc4b850dee4a8a9a171b563a3f31230ce1c7 | /sktime/transformations/series/date.py | 30c21601eae4a47fd03fdc56d087fc93837df49f | [
"BSD-3-Clause"
] | permissive | sktime/sktime | 5963962df338c5931a2f9f1794d1203c50ddc27e | 70b2bfaaa597eb31bc3a1032366dcc0e1f4c8a9f | refs/heads/main | 2023-08-22T18:20:08.022950 | 2023-08-22T15:24:39 | 2023-08-22T15:24:39 | 156,401,841 | 1,117 | 268 | BSD-3-Clause | 2023-09-14T20:44:21 | 2018-11-06T15:08:24 | Python | UTF-8 | Python | false | false | 14,941 | py | date.py | #!/usr/bin/env python3 -u
# copyright: sktime developers, BSD-3-Clause License (see LICENSE file)
"""Extract calendar features from datetimeindex."""
__author__ = ["danbartl", "KishManani", "VyomkeshVyas"]
__all__ = ["DateTimeFeatures"]
import warnings
import numpy as np
import pandas as pd
from sktime.transformatio... |
6cd31e8deb99487311d9da418037770f9cc3683a | c3e0a6919caf85c35239ef23084df9bbf8dd61c3 | /pypeit/deprecated/bin/pypeit_chk_alignments | 5047bf817096f3dacb818cb6249d4430301d9016 | [
"BSD-3-Clause"
] | permissive | pypeit/PypeIt | 6eb9e5afd62acc9d363e497cd9e367d620f86ea4 | 0d2e2196afc6904050b1af4d572f5c643bb07e38 | refs/heads/release | 2023-08-25T21:15:59.113114 | 2023-06-04T15:23:39 | 2023-06-04T15:23:39 | 36,958,428 | 136 | 98 | BSD-3-Clause | 2023-09-12T17:42:15 | 2015-06-05T22:25:37 | Python | UTF-8 | Python | false | false | 192 | pypeit_chk_alignments | #!/usr/bin/env python
"""
Show the alignments in a Ginga window
"""
from pypeit.scripts import chk_alignments
if __name__ == '__main__':
chk_alignments.main(chk_alignments.parse_args())
| |
79cd232ad45e0e0d7fe56cc03ee8728ae3e7f53c | d70e3750c600da2cd14f5a07f6cc4bc4d2261cd3 | /scripts/analyze_endpoints_and_create_files.py | 1095e8353e2280e62a4595788eab883afdc31fdd | [
"MIT"
] | permissive | swar/nba_api | 93d794123a856dcf2005e6c2856c2a369d29839e | 8480b574c286a22c9064c014505ae61f7dd84fc1 | refs/heads/master | 2023-09-05T07:03:01.612102 | 2023-09-01T00:59:16 | 2023-09-01T00:59:16 | 149,062,453 | 1,909 | 554 | MIT | 2023-09-14T18:56:46 | 2018-09-17T03:13:07 | Python | UTF-8 | Python | false | false | 792 | py | analyze_endpoints_and_create_files.py | from tools.stats.endpoint_analysis import analysis as endpoint_analysis
from tools.stats.endpoint_py_file_generator import generator as py_file_generator
from tools.stats.endpoint_documentation_generator import generator as endpoint_documentation_generator
from tools.stats.parameter_documentation_generator import gener... |
7f64aaaff9d6abb8e64f954c11556f0b774b408f | c001930958cb94f8b91b1f734108671f1db9e9f1 | /tests/integration/renderer/test_due_diligence.py | 8c28edd853a84168375644d53f7d436b7b722f8d | [
"MIT"
] | permissive | plotly/dash | 73c752135937e27975071fbd144e3fb21618e7b4 | 6eaf2e17c25f7ca1847c41aafeb18e87c586cb9f | refs/heads/dev | 2023-08-30T21:21:06.056499 | 2023-08-29T16:49:04 | 2023-08-29T16:49:04 | 33,702,544 | 20,553 | 2,355 | MIT | 2023-08-31T20:51:14 | 2015-04-10T01:53:08 | Python | UTF-8 | Python | false | false | 3,528 | py | test_due_diligence.py | import json
import os
import string
import pytest
from bs4 import BeautifulSoup
import requests
import plotly
from dash import Dash, html
def test_rddd001_initial_state(dash_duo):
app = Dash(__name__)
my_class_attrs = {
"id": "p.c.4",
"className": "my-class",
"title": "tooltip",
... |
0a1a75fa12b844b1235c15932714d60923ba442d | 8ca19f1a31070738b376c0370c4bebf6b7efcb43 | /office365/todo/attachments/session.py | d9741b95a0142d40b8a4787d300b2aa676522c5c | [
"MIT"
] | permissive | vgrem/Office365-REST-Python-Client | 2ef153d737c6ed5445ba1e446aeaec39c4ef4ed3 | cbd245d1af8d69e013c469cfc2a9851f51c91417 | refs/heads/master | 2023-09-02T14:20:40.109462 | 2023-08-31T19:14:05 | 2023-08-31T19:14:05 | 51,305,798 | 1,006 | 326 | MIT | 2023-08-28T05:38:02 | 2016-02-08T15:24:51 | Python | UTF-8 | Python | false | false | 1,333 | py | session.py | from datetime import datetime
from office365.entity import Entity
from office365.runtime.types.collections import StringCollection
class AttachmentSession(Entity):
"""Represents a resource that uploads large attachments to a todoTask."""
@property
def content(self):
"""The content streams that a... |
2968ef8bce80420194e9a779e6510a3a6b087d68 | e4b11f60c768fb1719e4158e9e701d424184c5ce | /ceilometer/tests/unit/publisher/test_messaging_publisher.py | 48ed89307ba94d958fa2ca6c0b50bc07001a3455 | [
"Apache-2.0"
] | permissive | openstack/ceilometer | af938664ccba710547dbb4c74e5deb2175482d56 | d31d4ed3574a5d19fe4b09ab2c227dba64da170a | refs/heads/master | 2023-08-28T15:09:01.659514 | 2023-08-21T03:29:16 | 2023-08-21T03:29:16 | 6,642,735 | 246 | 289 | Apache-2.0 | 2019-11-01T04:21:47 | 2012-11-11T18:33:12 | Python | UTF-8 | Python | false | false | 14,860 | py | test_messaging_publisher.py | #
# Copyright 2012 New Dream Network, LLC (DreamHost)
#
# 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... |
6c046ad821cf394cdf2a498dd45322be5040fdb6 | aae3c6fccb2296e4da5bb10310f5dd6baba8b7de | /activitysim/abm/models/trip_matrices.py | 0c9e1f447fabd5ff4d1dee475f2e157d24d3f0d5 | [
"BSD-3-Clause"
] | permissive | ActivitySim/activitysim | 3d938e616452be76db1bb0c8a1212e12b9216823 | a8e755f96d0e32633a6d3657c4878e3b6a37e59a | refs/heads/main | 2023-08-08T16:02:06.275693 | 2023-05-09T13:08:23 | 2023-05-09T13:08:23 | 20,981,950 | 118 | 89 | BSD-3-Clause | 2023-07-25T14:07:16 | 2014-06-18T23:57:40 | Jupyter Notebook | UTF-8 | Python | false | false | 13,051 | py | trip_matrices.py | # ActivitySim
# See full license in LICENSE.txt.
import logging
import numpy as np
import openmatrix as omx
import pandas as pd
from activitysim.core import config, expressions, inject, los, pipeline
logger = logging.getLogger(__name__)
@inject.step()
def write_trip_matrices(network_los):
"""
Write trip m... |
533713605e00f7286066d7b812b26a1ad3cc6bc1 | fbd2702e8c45d5e6cec39877295ef45f2f61d426 | /pynamodb/expressions/update.py | 2118e86259e8e2f92aa5ae848752499e459fc71e | [
"MIT"
] | permissive | pynamodb/PynamoDB | 365961a5cd7b2d7e924f8edf367dde641d00914a | 335c7cde6732c5121347207e60479d96e47338f6 | refs/heads/master | 2023-08-22T06:19:59.762796 | 2023-07-18T05:37:13 | 2023-07-18T05:37:13 | 16,058,979 | 1,987 | 412 | MIT | 2023-08-29T14:48:51 | 2014-01-20T02:18:35 | Python | UTF-8 | Python | false | false | 4,661 | py | update.py | from typing import Any
from typing import Dict
from typing import List
from typing import Optional
from typing import Sequence
from typing import TYPE_CHECKING
from pynamodb.constants import BINARY_SET
from pynamodb.constants import NUMBER
from pynamodb.constants import NUMBER_SET
from pynamodb.constants import STRING... |
d6381bde14752473f42a86e8d431fa38e261e4d2 | a8ecd983bc6100705c3916d5378b557ef8cf0dab | /grafanalib/tests/test_opentsdb.py | 7a1db2a6432c16ea018041d12e1965b039346019 | [
"Apache-2.0"
] | permissive | weaveworks/grafanalib | 711905c78dd9db4257f4d438e55a7112efd1db4a | b0d81c97b2e8980c4bb5d2b155a31a7b0a47cedb | refs/heads/main | 2023-08-28T19:49:32.135931 | 2023-08-18T14:36:17 | 2023-08-18T14:36:17 | 75,401,165 | 1,782 | 313 | Apache-2.0 | 2023-09-11T13:29:48 | 2016-12-02T14:11:13 | Python | UTF-8 | Python | false | false | 1,036 | py | test_opentsdb.py | """Tests for OpenTSDB datasource"""
import grafanalib.core as G
from grafanalib.opentsdb import (
OpenTSDBFilter,
OpenTSDBTarget,
)
from grafanalib import _gen
import sys
if sys.version_info[0] < 3:
from io import BytesIO as StringIO
else:
from io import StringIO
def test_serialization_opentsdb_targ... |
9bc5dc2f5ee39a32ad08dbf726a229a5fe8c0417 | ac235a23f22be0d6f1818bb53902177f9969813a | /ddtrace/contrib/sanic/__init__.py | 5646bf90cd7bb5b457a363ae06216c6cdacb9ba6 | [
"Apache-2.0",
"BSD-3-Clause"
] | permissive | DataDog/dd-trace-py | f09d6d48c4c69aea68f999fc8a458ade5c6150cf | 1e3bd6d4edef5cda5a0831a6a7ec8e4046659d17 | refs/heads/1.x | 2023-09-01T20:25:26.746324 | 2023-09-01T18:54:37 | 2023-09-01T18:54:37 | 61,572,326 | 461 | 426 | NOASSERTION | 2023-09-14T20:38:57 | 2016-06-20T18:52:23 | Python | UTF-8 | Python | false | false | 1,828 | py | __init__.py | """
The Sanic__ integration will trace requests to and from Sanic.
Enable Sanic tracing automatically via ``ddtrace-run``::
ddtrace-run python app.py
Sanic tracing can also be enabled manually::
from ddtrace import patch_all
patch_all(sanic=True)
from sanic import Sanic
from sanic.response imp... |
e6147db8c2924c2de9b01a7ff653301bdb4d2608 | 2a1b8a671aceda6bc446f8ce26400aa84fa444a6 | /Packs/ThreatMiner/Integrations/ThreatMiner/ThreatMiner_test.py | 551cb16235208f696a7771208af1515b3f724faf | [
"MIT"
] | permissive | demisto/content | 6d4722d46f0ff0beea2748e9f7de585bf91a78b4 | 890def5a0e0ae8d6eaa538148249ddbc851dbb6b | refs/heads/master | 2023-09-04T00:02:25.618032 | 2023-09-03T21:56:22 | 2023-09-03T21:56:22 | 60,525,392 | 1,023 | 1,921 | MIT | 2023-09-14T20:55:24 | 2016-06-06T12:17:02 | Python | UTF-8 | Python | false | false | 865 | py | ThreatMiner_test.py | import demistomock as demisto
from ThreatMiner import get_dbot_score_report
from CommonServerPython import DBotScoreReliability
DBOT_SCORES = {
'Reliability': 'C - Fairly reliable',
'Vendor': 'ThreatMiner',
'Indicator': 'CA978112CA1BBDCAFAC231B39A23DC4DA786EFF8147C4E72B9807785AFEE48BB',
'Score': 0,
... |
b3ae0a5cc5144d4cec9cb996500212a782eb6769 | 431bc209251c67ed68b69ca12a34f79da4be946c | /scripts/config_vscode.py | 5ee130128be50b3d2054ecebd84b5d3f4603ca2f | [
"BSD-3-Clause"
] | permissive | LLNL/conduit | 4ae3157e8e9a83643f9479506f3b5f1def7b99fa | a6b0b179716eb804a0749cc20083c24c21ed682b | refs/heads/develop | 2023-09-04T00:04:32.475102 | 2023-09-01T16:00:30 | 2023-09-01T16:00:30 | 40,552,086 | 168 | 58 | NOASSERTION | 2023-09-05T21:33:19 | 2015-08-11T16:14:10 | C++ | UTF-8 | Python | false | false | 1,944 | py | config_vscode.py | # Copyright (c) Lawrence Livermore National Security, LLC and other Conduit
# Project developers. See top-level LICENSE AND COPYRIGHT files for dates and
# other details. No copyright assignment is required to contribute to Conduit.
import sys
import json
import os
from optparse import OptionParser
def parse_args()... |
952ef8979b4ec8442536863df1a050ab30d175c0 | 54f59bfc9d657e35f52762fd7ac5a5034c301dfb | /test/functional/feature_txwitness.py | 260ebfe89f41cadf4ca0f814e86a81bbaa8c3317 | [
"MIT"
] | permissive | ElementsProject/elements | a8db662b18b27f7f0162bc76e98d23b2ca80727d | 93cc036edfc855ea7e8a357897958cb55bbce369 | refs/heads/master | 2023-08-31T13:24:12.360307 | 2023-08-24T20:51:08 | 2023-08-24T20:51:08 | 37,064,937 | 1,064 | 436 | MIT | 2023-08-29T17:49:35 | 2015-06-08T12:17:33 | C++ | UTF-8 | Python | false | false | 11,960 | py | feature_txwitness.py | #!/usr/bin/env python3
# Copyright (c) 2015-2018 The Bitcoin Core developers
# Distributed under the MIT software license, see the accompanying
# file COPYING or http://www.opensource.org/licenses/mit-license.php.
"""Test the txwitness for elements
1) Make sure python serialization stuff matches whatever the node/wall... |
22f24de15fdf7544484ba020a32aa5c0eca7b128 | da1500e0d3040497614d5327d2461a22e934b4d8 | /starboard/tools/package.py | 246eb1d61a22d8c45f96510142d39160fcf25b5f | [
"Apache-2.0",
"BSD-3-Clause"
] | permissive | youtube/cobalt | 34085fc93972ebe05b988b15410e99845efd1968 | acefdaaadd3ef46f10f63d1acae2259e4024d383 | refs/heads/main | 2023-09-01T13:09:47.225174 | 2023-09-01T08:54:54 | 2023-09-01T08:54:54 | 50,049,789 | 169 | 80 | BSD-3-Clause | 2023-09-14T21:50:50 | 2016-01-20T18:11:34 | null | UTF-8 | Python | false | false | 6,574 | py | package.py | #
# Copyright 2016 The Cobalt 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 applicabl... |
798f9d29d215b33de4a507cb56aff89b03c302e1 | ec075d46cffdf5046164dcb31a1e0478848c6088 | /test/regression/WaveInBar_MultiBlock/WaveInBar_MultiBlock_PostProcess.py | f06e191beeb13da001b5e3fab2b7d6fba43eb58a | [
"BSD-3-Clause",
"BSD-2-Clause"
] | permissive | peridigm/peridigm | dc42571181faadd337fd14003ca1101cb60988ef | 82c6ad8f8152aaa3c8a2b4e7b31f82b8e1c6f28c | refs/heads/master | 2023-08-18T09:47:15.926358 | 2023-08-03T21:30:18 | 2023-08-03T21:30:18 | 49,228,024 | 172 | 146 | NOASSERTION | 2023-08-03T21:29:55 | 2016-01-07T20:11:19 | C++ | UTF-8 | Python | false | false | 5,844 | py | WaveInBar_MultiBlock_PostProcess.py | #! /usr/bin/env python
def verfiy_results(result = True):
csv_file_name = "WaveInBar_MultiBlock.csv"
csv_file = open(csv_file_name)
lines = csv_file.readlines()
csv_file.close()
vals = lines[-2].split()
time = float(vals[0].strip(","))
Volume_Block_1 = float(vals[1].strip(","))
Volume_... |
651fe25149d71d075fe0a80276c9fddbb84b28dc | e8b04bef9aa1ac8e2c109dd315f133c8f4d28ae6 | /projects/samples/environments/factory/controllers/screw_controller/screw_controller.py | 7aaa1a73d649248a980da2f37a71ae7b8b709e97 | [
"Apache-2.0"
] | permissive | cyberbotics/webots | f075dacf4067e8dcebbfd89e8690df8525f6d745 | 8aba6eaae76989facf3442305c8089d3cc366bcf | refs/heads/master | 2023-08-31T09:41:13.205940 | 2023-08-18T10:48:30 | 2023-08-18T10:48:30 | 156,228,018 | 2,495 | 1,525 | Apache-2.0 | 2023-08-28T16:30:33 | 2018-11-05T14:09:10 | C++ | UTF-8 | Python | false | false | 1,820 | py | screw_controller.py | # Copyright 1996-2023 Cyberbotics Ltd.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# https://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to i... |
a4e156fcd37d4b82686889954719a218528a492a | 3a6a211ea0d32405497fbd6486c490bb147e25f9 | /devil/devil/utils/lazy/weak_constant.py | 4110193752ac6cd94bacea5ac015f2e41c94db16 | [
"BSD-3-Clause"
] | permissive | catapult-project/catapult | e2cbdd5eb89f3b1492fc8752494e62ea1df4bae0 | 53102de187a48ac2cfc241fef54dcbc29c453a8e | refs/heads/main | 2021-05-25T07:37:22.832505 | 2021-05-24T08:01:49 | 2021-05-25T06:07:38 | 33,947,548 | 2,032 | 742 | BSD-3-Clause | 2022-08-26T16:01:18 | 2015-04-14T17:49:05 | HTML | UTF-8 | Python | false | false | 1,395 | py | weak_constant.py | # Copyright 2015 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.
import threading
from devil.utils import reraiser_thread
from devil.utils import timeout_retry
class WeakConstant(object):
"""A thread-safe, lazily init... |
1b5fbeed5b0dd225553b76db0b9236806d1bf95f | f9d564f1aa83eca45872dab7fbaa26dd48210d08 | /huaweicloud-sdk-sms/huaweicloudsdksms/v3/model/show_overview_response.py | 06c659f2b358a551d6299f5797321c96f63c85b4 | [
"Apache-2.0"
] | permissive | huaweicloud/huaweicloud-sdk-python-v3 | cde6d849ce5b1de05ac5ebfd6153f27803837d84 | f69344c1dadb79067746ddf9bfde4bddc18d5ecf | refs/heads/master | 2023-09-01T19:29:43.013318 | 2023-08-31T08:28:59 | 2023-08-31T08:28:59 | 262,207,814 | 103 | 44 | NOASSERTION | 2023-06-22T14:50:48 | 2020-05-08T02:28:43 | Python | UTF-8 | Python | false | false | 5,392 | py | show_overview_response.py | # coding: utf-8
import six
from huaweicloudsdkcore.sdk_response import SdkResponse
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
class ShowOverviewResponse(SdkResponse):
"""
Attributes:
openapi_types (dict): The key is attribute name
and the va... |
cbc9a08a26da9c40eb11ce5947361c3ccd221644 | 8f7320c10f2c5fc8475753dc5256d1a66067e15c | /pykeops/pykeops/examples/numpy/plot_test_invkernel_numpy.py | 6187ffacab3f732ec06cc72c1ae2e1e587aec5b8 | [
"MIT"
] | permissive | getkeops/keops | 947a5409710379893c6c7a46d0a256133a6d8aff | 52ed22a7fbbcf4bd02dbdf5dc2b00bf79cceddf5 | refs/heads/main | 2023-08-25T12:44:22.092925 | 2023-08-09T13:33:58 | 2023-08-09T13:33:58 | 182,054,091 | 910 | 69 | MIT | 2023-09-03T20:35:44 | 2019-04-18T09:04:07 | Python | UTF-8 | Python | false | false | 3,035 | py | plot_test_invkernel_numpy.py | """
KernelSolve reduction
===========================
Let's see how to solve discrete deconvolution problems
using the **conjugate gradient solver** provided by
:class:`numpy.KernelSolve <pykeops.numpy.KernelSolve>`.
"""
###############################################################################
# Setup
# ----... |
28b653c1eb2f6048655218dbbbe082763d71db28 | 88fe84c79e5740b4aaa068df6a70e35841a68d25 | /src/awkward/_nplikes/typetracer.py | 63f753204009a77228f4f026f223a2f2c5394575 | [
"BSD-3-Clause"
] | permissive | scikit-hep/awkward | 176f56182a936270e163eab92ea18368c2bdc1be | 519bba6ed2eec4e227994d2fd1a62b2a51f15e20 | refs/heads/main | 2023-09-02T20:19:10.175088 | 2023-09-01T20:13:25 | 2023-09-01T20:13:25 | 202,413,762 | 208 | 22 | BSD-3-Clause | 2023-09-14T17:19:29 | 2019-08-14T19:32:12 | Python | UTF-8 | Python | false | false | 48,734 | py | typetracer.py | # BSD 3-Clause License; see https://github.com/scikit-hep/awkward-1.0/blob/main/LICENSE
from __future__ import annotations
from numbers import Number
import numpy
import awkward as ak
from awkward._nplikes.dispatch import register_nplike
from awkward._nplikes.numpylike import (
ArrayLike,
IndexType,
Nump... |
79f1cde648d70121fd3feb98067dca1fb1427786 | cfa35dc2ea93ee0eceb2399a9e6112e987579c09 | /stonesoup/tests/conftest.py | 20e9ff17f8bbaa158ad7f7c64b1c786271d6e796 | [
"LicenseRef-scancode-proprietary-license",
"MIT",
"LicenseRef-scancode-unknown-license-reference",
"Apache-2.0",
"Python-2.0",
"LicenseRef-scancode-secret-labs-2011"
] | permissive | dstl/Stone-Soup | 227e6a9e6fbdceca14af3f0259f311ec74095597 | f24090cc919b3b590b84f965a3884ed1293d181d | refs/heads/main | 2023-09-01T14:33:14.626428 | 2023-09-01T11:35:46 | 2023-09-01T11:35:46 | 98,420,803 | 315 | 126 | MIT | 2023-09-14T14:55:34 | 2017-07-26T12:34:28 | Python | UTF-8 | Python | false | false | 252 | py | conftest.py | import pytest
from ..base import Base, Property
class _TestBase(Base):
property_a: int = Property()
property_b: str = Property()
property_c: int = Property(default=123)
@pytest.fixture(scope='session')
def base():
return _TestBase
|
3dc732d75b192ab8411516da9a7bc139213ecb02 | 4d616d46c7f9b0ce151f924f6d94e1fff0fd9640 | /stages/org.osbuild.tmpfilesd | ed633d131ef67db6584de9e33e3458a3b12a6f23 | [
"Apache-2.0",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | osbuild/osbuild | 36d04725fa263a4cbfc683cc466c8327328eac69 | e7fb2e11174a9b69b1761a726989f7a9a9e2ce1c | refs/heads/main | 2023-08-28T13:28:53.047810 | 2023-08-25T15:47:30 | 2023-08-28T11:25:04 | 165,869,351 | 150 | 84 | Apache-2.0 | 2023-09-14T11:02:21 | 2019-01-15T14:55:29 | Python | UTF-8 | Python | false | false | 3,642 | tmpfilesd | org.osbuild.tmpfilesd | #!/usr/bin/python3
"""
Create tmpfiles.d configuration.
This stage creates a tmpfiles.d configuration file with the given name in
/usr/lib/tmpfiles.d. Provided list of configuration directives is written
as separate lines into the configuration file. At least one configuration
directive must be specified.
"""
import... |
617a4ca47f8fc54b49e915ccebb9fa8e555d4d6f | 916c1313c623c799e98d1bd897b3aef510172639 | /py/phl/phlsys_git__it.py | cab6cabcf182c516cedaf498a6b6ddbb08429709 | [
"Apache-2.0",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | bloomberg/phabricator-tools | 377ba3dba299c5d21a015bb039ae920fae5478ef | 09bd1587fe8945d93a891162fd4c89640c6fada7 | refs/heads/master | 2021-01-02T19:43:48.274684 | 2019-01-11T13:34:55 | 2019-01-11T13:34:55 | 8,464,182 | 154 | 40 | Apache-2.0 | 2022-02-14T09:57:48 | 2013-02-27T20:02:50 | Python | UTF-8 | Python | false | false | 2,074 | py | phlsys_git__it.py | """Test suite for phlsys_git."""
# =============================================================================
# TEST PLAN
# -----------------------------------------------------------------------------
# Here we detail the things we are concerned to test and specify which tests
# co... |
4ced2ff74d143f7ae18888e00b0b2ef9909a9f10 | 77ff40ab8d90d15013f9cc884c2eb3ed24cd5cf7 | /python/houdini_toolbox/ui/paste/sources.py | 468cd4e5bacbeff403bfda8dd385f931e9363490 | [
"MIT"
] | permissive | captainhammy/Houdini-Toolbox | 78655b943244d2c086966812031bb94ab0ace3a3 | f233232d8fbf5934ac99dad1aa72bdd5faa63b8b | refs/heads/master | 2023-06-23T09:37:30.745036 | 2023-06-12T19:59:23 | 2023-06-12T19:59:23 | 3,946,767 | 159 | 34 | MIT | 2022-10-01T15:31:26 | 2012-04-06T04:12:28 | Python | UTF-8 | Python | false | false | 17,308 | py | sources.py | """Classes for finding, copying and pasting of files."""
# ==============================================================================
# IMPORTS
# ==============================================================================
# Future
from __future__ import annotations
# Standard Library
import abc
import datetim... |
de50f031c179ab23195681782262f19c1cfc6733 | 153a746ea3246cdc04ac0413c9793309ca924d08 | /test/test_extensions/debug.py | 7f0c1ca1280de1597e56f70d2a4375a44889f714 | [
"MIT"
] | permissive | GothenburgBitFactory/timewarrior | bfbc0e9960012ce47c1134ca60ba06077cfa8724 | a72659f753af283879a5c3bfb71448583a2ba7b7 | refs/heads/develop | 2023-09-04T20:55:38.830794 | 2020-03-06T13:52:22 | 2023-08-11T18:50:29 | 120,080,436 | 1,082 | 129 | MIT | 2023-09-11T23:20:14 | 2018-02-03T10:15:22 | C++ | UTF-8 | Python | false | false | 167 | py | debug.py | #!/usr/bin/env python3
import sys
for line in sys.stdin:
# skip configuration
if line == "\n":
break
for line in sys.stdin:
print(line.strip())
|
d6e1d0f94777f1c7caf4f6b097711567aefccf05 | 93e68522fd0237990491415d752832cee13d63bb | /pyani/aniblastall.py | 32a6025e90ecb7a2bfce7d04b51d41345744ccf4 | [
"MIT"
] | permissive | widdowquinn/pyani | 3d6b8abe36195595fe5a2d1ece091f3a758a9ab7 | 62949c49d971aa33e413821905565368563ad056 | refs/heads/master | 2022-08-15T02:53:13.466225 | 2022-06-11T10:25:25 | 2022-06-11T10:25:25 | 28,641,481 | 178 | 66 | MIT | 2022-07-29T14:14:59 | 2014-12-30T18:48:01 | Python | UTF-8 | Python | false | false | 3,921 | py | aniblastall.py | # -*- coding: utf-8 -*-
# (c) University of Strathclyde 2021
# Author: Leighton Pritchard
#
# Contact: leighton.pritchard@strath.ac.uk
#
# Leighton Pritchard,
# Strathclyde Institute for Pharmacy and Biomedical Sciences,
# Cathedral Street,
# Glasgow,
# G4 0RE
# Scotland,
# UK
#
# The MIT License
#
# Copyright (c) 2021... |
5184fbd87106188ac91456c0f792af09e9af05a9 | 2e3cbdf0b30ad85a049622a5b862976eb59a1730 | /fireworks/features/stats.py | 2e8ab58b2bb184e5bd1b7a03cea57ed721b31bed | [
"LicenseRef-scancode-generic-cla",
"BSD-2-Clause",
"LicenseRef-scancode-hdf5"
] | permissive | materialsproject/fireworks | dc754122374ffce4859b3418a40fc8796879c0e2 | 579bcf411196ce0bebb4f04ccd2410c091c966cf | refs/heads/main | 2023-08-19T00:18:44.331744 | 2023-08-14T00:43:32 | 2023-08-14T00:44:39 | 7,507,548 | 298 | 195 | NOASSERTION | 2023-09-04T08:24:47 | 2013-01-08T19:18:02 | Python | UTF-8 | Python | false | false | 18,454 | py | stats.py | """Important: this class is out-of-date and deprecated. It will be replaced by the FWReport() class."""
from collections import defaultdict
from datetime import datetime, timedelta
from bson.son import SON
from dateutil import parser
from fireworks import LaunchPad
__author__ = "Wei Chen"
__copyright__ = "Copyright... |
b20ecdac0b397f076349bd69d8f2b09bf12e52a4 | 5b7c2feb27a71837edf526315d413706a6bf82ff | /mmf/utils/configuration.py | 6f23a81c418e1beb7143aac3aa27d4610334143f | [
"BSD-3-Clause"
] | permissive | facebookresearch/mmf | df675223566dc8fb2359aa3e1a2d49db5e3c2b9a | 63f76fbcfe2d056b88734fc41a983251d20e6c61 | refs/heads/main | 2023-08-23T23:40:46.827046 | 2023-07-11T06:18:50 | 2023-07-11T06:18:50 | 138,831,170 | 2,432 | 592 | NOASSERTION | 2023-08-11T20:26:11 | 2018-06-27T04:52:40 | Python | UTF-8 | Python | false | false | 20,095 | py | configuration.py | # Copyright (c) Facebook, Inc. and its affiliates.
import collections
import json
import logging
import os
import warnings
from ast import literal_eval
from typing import List
import torch
from mmf.common.registry import registry
from mmf.utils.env import import_user_module
from mmf.utils.file_io import PathManager
fr... |
24d330118591a1dcf2f2274a2f20fa1186786861 | f305f84ea6f721c2391300f0a60e21d2ce14f2a5 | /7_graph/经典题/置换环/F - Guess The Number 2-置换环、孙子定理.py | 2726fcc29f43445e02e886322d8d4967874c7033 | [] | no_license | 981377660LMT/algorithm-study | f2ada3e6959338ae1bc21934a84f7314a8ecff82 | 7e79e26bb8f641868561b186e34c1127ed63c9e0 | refs/heads/master | 2023-09-01T18:26:16.525579 | 2023-09-01T12:21:58 | 2023-09-01T12:21:58 | 385,861,235 | 225 | 24 | null | null | null | null | UTF-8 | Python | false | false | 2,764 | py | F - Guess The Number 2-置换环、孙子定理.py | """
置换环+中国剩余定理(孙子定理)
你需要猜到对方的n的大小,你仅可做一件事:
- 指定m,输出一个长度为 m的数组A。其中 1≤m≤110,1≤Ai≤m
- 对方根据数组 A,输出一个数组 B
- 你根据该数组 B,得出 n的值。
生成数组 B的方式为:
假想一个有m个点的图,其中点i连一条有向边到点ai。
Bi的值为:从i号点出发,走 n条边到达的点的编号。
n≤1e9
解:
# !多个置换环的大小 lcm要大于1e9
# 环的大小需要由两两互素的数构成
# 4,9,5,7,11,13,17,19,23,其和为108<110,其乘积为1338557220>1e9
通过该数组(... |
1c0d462fe531b78acb68fe2816f9ae7bf646dc56 | bb12da8a0d637b68255b04b182fdd47558bec12e | /tests/test_differ_differconfig.py | 4f35d6c1c45691f8db5ab35431aea9758025c32b | [
"ISC"
] | permissive | wwkimball/yamlpath | 03f1dffc0c5d5208d43fca33578de9ad0074c395 | be7af7de60e920659b535aaae39046e84c85c248 | refs/heads/master | 2023-08-25T07:42:53.174510 | 2023-03-30T22:32:16 | 2023-03-30T22:32:16 | 184,194,939 | 102 | 20 | ISC | 2023-03-30T22:32:17 | 2019-04-30T05:05:17 | Python | UTF-8 | Python | false | false | 11,959 | py | test_differ_differconfig.py | import pytest
from types import SimpleNamespace
from yamlpath.func import get_yaml_editor, get_yaml_data
from yamlpath.differ.enums import (
AoHDiffOpts,
ArrayDiffOpts,
)
from yamlpath.wrappers import NodeCoords
from yamlpath.differ import DifferConfig
from yamlpath import YAMLPath
from tests.conftest import (... |
614af475ac155f281e3b3b28c8b8f8c569c88601 | e30874b3aa20804833dd11788176f839fcd08690 | /python/cudf/cudf/core/buffer/utils.py | 373be99ec96d8967f2a1f35d83214a14f94fb7f9 | [
"Apache-2.0"
] | permissive | rapidsai/cudf | eaba8948cddde8161c3b02b1b972dab3df8d95b3 | c51633627ee7087542ad4c315c0e139dea58e408 | refs/heads/branch-23.10 | 2023-09-04T07:18:27.194295 | 2023-09-03T06:20:33 | 2023-09-03T06:20:33 | 90,506,918 | 5,386 | 751 | Apache-2.0 | 2023-09-14T00:27:03 | 2017-05-07T03:43:37 | C++ | UTF-8 | Python | false | false | 4,735 | py | utils.py | # Copyright (c) 2022-2023, NVIDIA CORPORATION.
from __future__ import annotations
import threading
from contextlib import ContextDecorator
from typing import Any, Dict, Optional, Tuple, Union
from cudf.core.buffer.buffer import Buffer, cuda_array_interface_wrapper
from cudf.core.buffer.exposure_tracked_buffer import... |
d7d62520eff93ce0c7ffe393b9322e56d1ffe784 | 8da41ffa2ccb09e04f95db0f211e0ed69a42a352 | /courses/machine_learning/deepdive2/end_to_end_ml/solutions/serving/application/lib/werkzeug/middleware/__init__.py | 5e049f5ee97070ee39bcc46db88c37b4334d32d6 | [
"Apache-2.0"
] | permissive | GoogleCloudPlatform/training-data-analyst | 808af9b09a0e5f5657c4ca76cdd205f808d76d89 | 975a95032ce5b7012d1772c7f1f5cfe606eae839 | refs/heads/master | 2023-09-05T19:50:59.722334 | 2023-09-04T14:25:33 | 2023-09-04T14:25:33 | 56,459,948 | 7,311 | 5,917 | Apache-2.0 | 2023-09-13T21:45:54 | 2016-04-17T21:39:27 | Jupyter Notebook | UTF-8 | Python | false | false | 549 | py | __init__.py | """
Middleware
==========
A WSGI middleware is a WSGI application that wraps another application
in order to observe or change its behavior. Werkzeug provides some
middleware for common use cases.
.. toctree::
:maxdepth: 1
proxy_fix
shared_data
dispatcher
http_proxy
lint
profiler
The :do... |
fc864b6e064f3aa0ac86132ef92cef3676d95311 | 7e1c4dd6a2cae0597b4f4e961063cf077acdfd4c | /txcouchbase/tests/conftest.py | 6eead6539538adb5ca12b63cb0a4afc40deb151d | [
"Apache-2.0",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | couchbase/couchbase-python-client | 753fa434db910d175bf9ea53a5829a40ba36e938 | c7d80434be3f917d6f25439a918aed30273f63f4 | refs/heads/master | 2023-08-29T14:04:13.532717 | 2023-08-24T22:53:30 | 2023-08-25T03:35:21 | 2,122,194 | 223 | 87 | Apache-2.0 | 2023-05-30T16:05:59 | 2011-07-29T04:24:46 | Python | UTF-8 | Python | false | false | 2,362 | py | conftest.py | # Copyright 2016-2022. Couchbase, 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 a... |
7ba334128b9dcbeb434e85dbdf7ec1199daf780b | 88d555a009f9075e59177fac70036892f397b439 | /bin/archive/basenji_map_seqs.py | a4dfd3f92d916b42772ab29eb792900cec2c42ff | [
"Apache-2.0"
] | permissive | calico/basenji | f9f406971d355dda81821dcf274696a7d27e332d | 615b9eec8a591783b16d959029ddad08edae853d | refs/heads/master | 2023-09-04T11:14:15.620786 | 2023-07-27T00:05:13 | 2023-07-27T00:05:13 | 96,346,574 | 326 | 143 | Apache-2.0 | 2023-08-16T00:36:32 | 2017-07-05T17:54:18 | Python | UTF-8 | Python | false | false | 5,055 | py | basenji_map_seqs.py | #!/usr/bin/env python
# Copyright 2017 Calico LLC
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
# https://www.apache.org/licenses/LICENSE-2.0
# Unless required by applicable law or agr... |
8ad9099fcf40314b05b5bcc78ca47b4e33db1c5d | 578db86c51d44ebddd0dc7b1738985b3dc69eb74 | /custom/abt/tests/test_custom_recipients.py | 05c625560d1499a1b6603287d4a38ab14649464e | [
"BSD-3-Clause"
] | permissive | dimagi/commcare-hq | a43c7dd32b5f89c89fd5aa1b1359ab7301f4ff6b | e7391ddae1af1dbf118211ecb52c83fc508aa656 | refs/heads/master | 2023-08-16T22:38:27.853437 | 2023-08-16T19:07:19 | 2023-08-16T19:07:19 | 247,278 | 499 | 203 | BSD-3-Clause | 2023-09-14T19:03:24 | 2009-07-09T17:00:07 | Python | UTF-8 | Python | false | false | 4,019 | py | test_custom_recipients.py | from django.test import TestCase
from corehq.apps.domain.models import Domain
from corehq.apps.locations.models import SQLLocation, LocationType
from corehq.apps.users.models import CommCareUser
from corehq.messaging.scheduling.scheduling_partitioned.models import CaseTimedScheduleInstance
from corehq.util.test_utils i... |
fbce7b0eefe0c65a773e9710881873aba7184455 | 8cb7399499d582efbc900b530cd7075dd82ec0bd | /tests/plugins/core/test_taskmanager.py | 1eb179f2fa1b6d00f5ae44d04d46e45c0b41bd5c | [
"MIT",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | SpockBotMC/SpockBot | 115334d3ebb6db806e859a9ea20ea476761702b3 | f89911551f18357720034fbaa52837a0d09f66ea | refs/heads/master | 2021-01-15T15:33:00.003492 | 2016-05-01T14:57:55 | 2016-05-01T14:57:55 | 7,111,791 | 188 | 61 | null | 2016-04-25T00:06:56 | 2012-12-11T13:01:23 | Python | UTF-8 | Python | false | false | 7,381 | py | test_taskmanager.py | import random
from collections import defaultdict
from unittest import TestCase
from spockbot.plugins.core.taskmanager import TaskManager
from spockbot.plugins.tools.task import Task, TaskFailed
class EventMock(object):
def __init__(self):
self.handlers = defaultdict(list)
def reg_event_handler(self... |
96eac2c0bee121a0318f0934e3cc1ec7a3701a9b | 39fd37bc43089b5b7e025b4f18ddbb45fea33f05 | /models/proto_norm.py | 4efbdfb51792cbee56875f6528020d21ab8da88c | [
"MIT"
] | permissive | thunlp/FewRel | 48e385970543cece1a837a7da3584dfa5dca4d5b | 278a2315d2138810a379cd8d5718914dc56e2582 | refs/heads/master | 2023-08-11T02:17:32.738965 | 2022-05-04T14:41:14 | 2022-05-04T14:41:14 | 146,135,239 | 752 | 155 | MIT | 2019-12-19T07:10:18 | 2018-08-25T22:55:12 | Python | UTF-8 | Python | false | false | 1,974 | py | proto_norm.py | import sys
sys.path.append('..')
import fewshot_re_kit
import torch
from torch import autograd, optim, nn
from torch.autograd import Variable
from torch.nn import functional as F
def l2norm(X):
norm = torch.pow(X, 2).sum(dim=-1, keepdim=True).sqrt()
X = torch.div(X, norm)
return X
class ProtoNorm(fewshot_... |
85911cc8210b627a50ab89c2e7ce4ef9048d6ff5 | c1b77c0b1630c2e319e7ba7782a744f4ac867f7d | /test/lazy/test_lazy_evaluated_kernel_tensor.py | 5a35287044d4c9f67d719d07247d98605bf146bb | [
"MIT",
"Python-2.0"
] | permissive | cornellius-gp/gpytorch | 6b9ab969b2888fa7f27f236a1b20041f00cc0253 | 5e93d2c04ac0634a7aeea9fd964be529bb250888 | refs/heads/master | 2023-08-31T21:13:02.741585 | 2023-08-25T19:24:53 | 2023-08-25T19:24:53 | 93,868,719 | 3,182 | 578 | MIT | 2023-09-13T01:06:00 | 2017-06-09T14:48:20 | Python | UTF-8 | Python | false | false | 8,539 | py | test_lazy_evaluated_kernel_tensor.py | #!/usr/bin/env python3
import math
import unittest
from unittest.mock import MagicMock, patch
import linear_operator
import torch
from linear_operator import to_dense
from linear_operator.test.linear_operator_test_case import LinearOperatorTestCase
import gpytorch
class TestLazyEvaluatedKernelTensorBatch(LinearOpe... |
0897247aac03222e040717aa52e02075ad5d2f07 | 3ac3806457ca4340ac93f925ec866ca7f53c96c9 | /pyExamples/paralleltruss.py | 4b8e448ebe9436979d16c96588b3a70a87f3126b | [] | permissive | zhuminjie/OpenSeesPyDoc | 7e4be3e3c7adceefbfd90c97653064f351a6c7bb | 4d2af110c392ad388b34b362a3e8ecd9ab106313 | refs/heads/master | 2023-08-02T04:43:11.881919 | 2023-07-25T16:38:54 | 2023-07-25T16:38:54 | 104,932,114 | 115 | 122 | MIT | 2023-03-23T03:08:34 | 2017-09-26T20:03:25 | Python | UTF-8 | Python | false | false | 1,173 | py | paralleltruss.py | import openseespy.opensees as ops
pid = ops.getPID()
np = ops.getNP()
ops.start()
if np != 2:
exit()
ops.model('basic', '-ndm', 2, '-ndf', 2)
ops.uniaxialMaterial('Elastic', 1, 3000.0)
if pid == 0:
ops.node(1, 0.0, 0.0)
ops.node(4, 72.0, 96.0)
ops.fix(1, 1, 1)
ops.element('Truss', 1, 1, 4, 10.0... |
a1108bdc8e611e2e046f3b9c0df35fbbfe52c14f | efe44bbc64cf788768d73e35cfb1baa2098181f6 | /networks/scitile/storti_integrals/torus.py | aa06ee44b56b1e1948b1b7b3b49c47f7e1710328 | [
"Apache-2.0"
] | permissive | plaidml/plaidml | d2dd18f8228d3959ec875b66aa4ff31f6c29ef00 | 49fbaa5ac387e621f11ba0b81f49461e4b2d02ef | refs/heads/plaidml-v1 | 2023-08-09T18:38:07.681422 | 2023-07-23T20:15:07 | 2023-07-23T20:15:07 | 100,326,126 | 4,779 | 516 | Apache-2.0 | 2023-02-14T21:33:05 | 2017-08-15T01:43:24 | C++ | UTF-8 | Python | false | false | 3,561 | py | torus.py | import math
import matplotlib.pyplot as plt
from op import *
def toroidal_shell_integral_moment_of_innertia_exact(R, r):
return 2 * (math.pi**2) * r * R * ((2 * (R**2)) + (3 * (r**2)))
def torus_volume_exact(R, r):
return 2 * (math.pi**2) * (r**2) * R
def torus_surface_area_exact(R, r):
return 4 * (m... |
157345db6c9968fd887547afef44c5d122b65966 | 72293b4650b92019f9c046133f7de13ea6f69644 | /zulip_bots/zulip_bots/bots/monkeytestit/test_monkeytestit.py | 1ee4fc103e31198cbd88222de8460f5e7f98b583 | [
"Apache-2.0",
"LicenseRef-scancode-free-unknown"
] | permissive | zulip/python-zulip-api | 820978c36689db4872abf21730b25ce8abb5fbcf | 35a8ff8839ac39cff0638f533fea59665cb9aff3 | refs/heads/main | 2023-09-03T14:04:46.920347 | 2023-06-12T21:03:10 | 2023-08-11T19:36:11 | 96,455,158 | 387 | 437 | Apache-2.0 | 2023-08-11T19:36:12 | 2017-07-06T17:25:46 | Python | UTF-8 | Python | false | false | 1,750 | py | test_monkeytestit.py | from importlib import import_module
from unittest.mock import patch
from zulip_bots.test_lib import BotTestCase, DefaultTests
class TestMonkeyTestitBot(BotTestCase, DefaultTests):
bot_name = "monkeytestit"
def setUp(self):
self.monkeytestit_class = import_module(
"zulip_bots.bots.monkeyt... |
d84e79c07f590c190b6b6ab86638da6182f0cc67 | 1aeb564072899cc48596af5c3066fc720ea741a7 | /testing_neuraxle/hyperparams/test_distributions.py | 86b389a9b80e970cc26f2b5e799f1f948285c2ac | [
"Apache-2.0"
] | permissive | Neuraxio/Neuraxle | f8dfb8d6f6c8ce295dcb5f7c37b98545c11976e3 | af917c984241178436a759be3b830e6d8b03245f | refs/heads/master | 2023-08-07T03:36:01.680863 | 2022-08-16T17:43:49 | 2022-08-16T17:43:49 | 177,868,131 | 597 | 62 | Apache-2.0 | 2023-07-09T06:12:47 | 2019-03-26T21:01:54 | Python | UTF-8 | Python | false | false | 24,942 | py | test_distributions.py | """
Tests for Hyperparameters Distributions
========================================
..
Copyright 2019, Neuraxio 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:/... |
3ba57795ba617fe2563200afadb5b9b0202e6290 | 9468849850c7c2b2040835eb9496bfb716a98c21 | /cea/plots/optimization/b_parallel_coordinates.py | 10bbc9a353941485e6e93e03d478b9818ef0e5be | [
"MIT"
] | permissive | architecture-building-systems/CityEnergyAnalyst | e6532c0c794538dbb665366ccf6d783e0d9d1345 | b84bcefdfdfc2bc0e009b5284b74391a957995ac | refs/heads/master | 2023-08-30T19:57:47.445797 | 2023-08-25T13:30:28 | 2023-08-25T13:30:28 | 49,491,341 | 166 | 60 | MIT | 2023-09-11T11:10:00 | 2016-01-12T10:02:17 | Python | UTF-8 | Python | false | false | 5,316 | py | b_parallel_coordinates.py | """
Show a Pareto curve plot for individuals in a given generation.
"""
import plotly.graph_objs as go
import cea.plots.optimization
__author__ = "Jimeno A. Fonseca"
__copyright__ = "Copyright 2020, Architecture and Building Systems - ETH Zurich"
__credits__ = ["Jimeno A. Fonseca"]
__license__ = "MIT"
__version__... |
55be6530921d093c19ef4c7441e0c8ec5c3b06f9 | 971e0efcc68b8f7cfb1040c38008426f7bcf9d2e | /tests/perf/test_ozone_ar_speed_order_350.py | 661e4fbb2d5974c393cc23fcc30482964cc05a8d | [
"BSD-3-Clause",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | antoinecarme/pyaf | a105d172c2e7544f8d580d75f28b751351dd83b6 | b12db77cb3fa9292e774b2b33db8ce732647c35e | refs/heads/master | 2023-09-01T09:30:59.967219 | 2023-07-28T20:15:53 | 2023-07-28T20:15:53 | 70,790,978 | 457 | 77 | BSD-3-Clause | 2023-03-08T21:45:40 | 2016-10-13T09:30:30 | Python | UTF-8 | Python | false | false | 70 | py | test_ozone_ar_speed_order_350.py | import tests.perf.test_ozone_ar_speed_many as gen
gen.run_test(350)
|
c7a923abbe93e48a0d1750ebdfaa6a6c398b9880 | 974d04d2ea27b1bba1c01015a98112d2afb78fe5 | /test/legacy_test/test_scatter_nd_op.py | ee6a2423e0d2002a66a4c69df2cd790bd1a881b9 | [
"Apache-2.0"
] | permissive | PaddlePaddle/Paddle | b3d2583119082c8e4b74331dacc4d39ed4d7cff0 | 22a11a60e0e3d10a3cf610077a3d9942a6f964cb | refs/heads/develop | 2023-08-17T21:27:30.568889 | 2023-08-17T12:38:22 | 2023-08-17T12:38:22 | 65,711,522 | 20,414 | 5,891 | Apache-2.0 | 2023-09-14T19:20:51 | 2016-08-15T06:59:08 | C++ | UTF-8 | Python | false | false | 18,016 | py | test_scatter_nd_op.py | # Copyright (c) 2019 PaddlePaddle Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by app... |
769ec3448eb5eb5c4100aec665e7094f8a105786 | 549270020f6c8724e2ef1b12e38d11b025579f8d | /recipes/cfitsio/all/conanfile.py | b5849b0ae29466397a6bac68ecc8c6bec4352465 | [
"MIT"
] | permissive | conan-io/conan-center-index | 1bcec065ccd65aa38b1fed93fbd94d9d5fe6bc43 | 3b17e69bb4e5601a850b6e006e44775e690bac33 | refs/heads/master | 2023-08-31T11:34:45.403978 | 2023-08-31T11:13:23 | 2023-08-31T11:13:23 | 204,671,232 | 844 | 1,820 | MIT | 2023-09-14T21:22:42 | 2019-08-27T09:43:58 | Python | UTF-8 | Python | false | false | 4,730 | py | conanfile.py | from conan import ConanFile
from conan.tools.cmake import CMake, CMakeDeps, CMakeToolchain, cmake_layout
from conan.tools.files import apply_conandata_patches, copy, export_conandata_patches, get, rmdir
from conan.tools.scm import Version
import glob
import os
required_conan_version = ">=1.54.0"
class CfitsioConan(C... |
190f08b00e8aa79ca7b82f1b57f23fd937b20b08 | a5cffc68c40887b34c298f98b3c684a84bbfe96e | /apps/radioss/get_radioss_bm_info.py | a12ffa7584d89b6e57a25e6033d771776cdfac16 | [
"LicenseRef-scancode-generic-cla",
"MIT"
] | permissive | Azure/azurehpc | 54e3a852b0ef739ec598cfd751929aa0b004d5ff | f9766c25d7084bbab463182dadf9ed48e58a09ba | refs/heads/master | 2023-08-19T01:44:44.088508 | 2023-08-02T18:27:10 | 2023-08-02T18:27:10 | 196,273,513 | 112 | 71 | MIT | 2023-08-02T18:27:11 | 2019-07-10T20:52:18 | Shell | UTF-8 | Python | false | false | 3,381 | py | get_radioss_bm_info.py | #!/bin/env python3
import argparse
from subprocess import Popen, PIPE
import json
import pprint
import statistics as stat
import os, sys
parser = argparse.ArgumentParser(prog='PROG', usage='%(prog)s [options]')
parser.add_argument("-m", type=str, help="-m <model name>")
parser.add_argument("-f", type=str, help="-f ... |
2f2b472b1f7dd38965842016a83c6e20402ad5e3 | a935ec8dab61675b6a3e348511fb9f8c5d490026 | /python/audioflux/dsp/resample.py | 1d4a33144941912e372539589d02ff489fc14ec2 | [
"MIT"
] | permissive | libAudioFlux/audioFlux | d604c54941c17d90e1ef42f04ba353ef6e244926 | 3ae59434e2c1cacb6da43562677ed4899d7047c7 | refs/heads/master | 2023-04-28T05:17:22.649299 | 2023-04-25T09:45:59 | 2023-04-25T09:45:59 | 589,514,195 | 1,701 | 85 | MIT | 2023-04-25T09:00:05 | 2023-01-16T09:53:04 | C | UTF-8 | Python | false | false | 6,620 | py | resample.py | import numpy as np
from ctypes import Structure, POINTER, pointer, c_int, c_float, c_void_p
from audioflux.base import Base
from audioflux.type import ResampleQualityType, WindowType
from audioflux.utils import check_audio, format_channel, revoke_channel
__all__ = ["Resample", "WindowResample"]
class OpaqueResample(... |
75bc70e0e2651581cddb993ad1001841556fff84 | 91fe60d56e95c1824d52921b100c8b13a2770163 | /duel/help.py | c41356336a11997e0e682aeb8420ad9b618404d7 | [
"BSD-3-Clause"
] | permissive | vuvova/gdb-tools | 9b109db954c155caded6d121a92232bf9609f30c | c9dd6fa10576f155c401ee7b1c2c8c9d3d15cb2c | refs/heads/arpeggio | 2023-07-09T23:50:29.174461 | 2023-07-02T21:12:31 | 2023-07-02T21:12:59 | 90,655,454 | 129 | 22 | null | 2017-06-20T19:38:08 | 2017-05-08T17:37:12 | Python | UTF-8 | Python | false | false | 1,627 | py | help.py | import re
INTRO = """\
Supported DUEL commands:
duel help - give basic help (shortcut: dl ?)
duel longhelp - give a longer help (dl ??)
duel examples - show useful usage examples
duel operators - operators summary
duel aliases - show current aliases
duel clear - clear all aliases
"""
with open(__file__.r... |
af7539e1ca69ed58680d06bfe32f1a915624b4ea | 8848d293343245920974f774e22f470cd99e2a86 | /tests/test_visualization.py | 40d67a228bb1f0a708bf961cfc9e8d9b97619d33 | [
"BSD-3-Clause"
] | permissive | UCSBarchlab/PyRTL | 8765d4393cf39b6f5fec91821a4bf84ae5a03d8e | 90646ed6adadfc82f7077754ff7c89b40c621fcc | refs/heads/development | 2023-08-07T18:37:41.365915 | 2023-07-28T22:32:10 | 2023-07-28T22:32:10 | 17,123,539 | 215 | 82 | BSD-3-Clause | 2023-09-12T21:05:35 | 2014-02-24T02:58:06 | Python | UTF-8 | Python | false | false | 17,399 | py | test_visualization.py | import unittest
import random
import io
import pyrtl
graphviz_string_detailed = """\
digraph g {
graph [splines="spline", outputorder="edgesfirst"];
node [shape=circle, style=filled, fillcolor=lightblue1,
fontcolor=black, fontname=helvetica, penwidth=0,
fixedsize=shape];
edge [labelfloat=f... |
c4ea8ab38ffc5a660e06893b91f83cfba67e8318 | 885d3e4017d96ed9fd56545d95ad63895e6dc01d | /rootpy/plotting/style/atlas/labels.py | 8d946b83a94c4d03d3ff73e9058f8a5bc2e39a3a | [
"BSD-3-Clause",
"MPL-1.1"
] | permissive | rootpy/rootpy | c3eb7f70d29e4779a0bda8356fb96922bb95537f | 3926935e1f2100d8ba68070c2ab44055d4800f73 | refs/heads/master | 2021-01-17T04:08:51.330059 | 2019-01-05T17:05:50 | 2019-01-05T17:05:50 | 3,276,014 | 159 | 60 | BSD-3-Clause | 2019-12-08T12:35:08 | 2012-01-26T18:05:37 | Python | UTF-8 | Python | false | false | 1,257 | py | labels.py | from __future__ import absolute_import
from .... import ROOT
from ....context import preserve_current_canvas
from ....memory.keepalive import keepalive
__all__ = [
'ATLAS_label',
]
def ATLAS_label(x, y, text="Preliminary 20XX", sqrts=8,
pad=None,
expfont=73, labelfont=43,
... |
3eccdd5ac4b98f26678016f9ac0bdbe1adbc75ac | b25e0126f671c6ddca46a4329e388e14d99c2220 | /iotdb-client/client-py/iotdb/tsfile/common/constant/TsFileConstant.py | 0baad6a5fb8709c89061aa77679d22fc525832ff | [
"Apache-2.0",
"BSD-3-Clause",
"EPL-1.0",
"CDDL-1.1",
"MIT",
"LicenseRef-scancode-public-domain",
"BSD-2-Clause",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | apache/iotdb | fd59940125c905537ffedad3b0963f7170ba67d9 | d5450a1e5648699409e1c793035204989d78cfbb | refs/heads/master | 2023-09-01T01:15:59.527322 | 2023-08-31T11:43:29 | 2023-08-31T11:43:29 | 158,975,124 | 2,882 | 893 | Apache-2.0 | 2023-09-14T14:16:58 | 2018-11-24T21:29:17 | Java | UTF-8 | Python | false | false | 1,173 | py | TsFileConstant.py | # 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... |
7ae72e02037057b98081de59185cbc9e3d7ec78b | 264f392530710b287ac54f40ea805638c6348cc3 | /google/scripts/run_onpolicy_saddle.py | 9a2235019bc65e7a4182de4c452908f332edb8aa | [
"Apache-2.0"
] | permissive | google-research/dice_rl | b26dd2231b0a664f11e0ede08d8209a4ace1cd2f | 6551950608ad0472ddf6e8f4075f51793c9d2763 | refs/heads/master | 2023-08-06T21:35:15.690175 | 2023-01-30T19:26:12 | 2023-01-30T19:27:38 | 285,369,787 | 106 | 14 | Apache-2.0 | 2023-01-30T19:27:44 | 2020-08-05T18:15:53 | Python | UTF-8 | Python | false | false | 6,521 | py | run_onpolicy_saddle.py | # Copyright 2020 Google LLC.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, ... |
f06b3d31e51a098ab3dff64ba9c9c574246a4d38 | cd99fe697ce43e30a64df9cc1df9470d1b0712ab | /forge/trinity/ann.py | 1e47d436a372b18c7bf6d60fa6b5df2a03493bc5 | [
"MIT"
] | permissive | openai/neural-mmo | ecde7382aa06123b9951cd78712e5eb1497204aa | 38fd0310bc784de9b86e5144d0e78f4d31005e6b | refs/heads/v1.0 | 2023-08-05T02:48:18.988444 | 2019-09-13T23:46:13 | 2019-09-13T23:46:13 | 173,154,826 | 1,607 | 203 | MIT | 2023-07-21T13:04:40 | 2019-02-28T17:17:24 | Python | UTF-8 | Python | false | false | 8,664 | py | ann.py | from pdb import set_trace as T
import numpy as np
import torch
from torch import nn
from torch.nn import functional as F
from torch.distributions import Categorical
from forge.blade.action.tree import ActionTree
from forge.blade.action.v2 import ActionV2
from forge.blade.lib.enums import Neon
from forge.blade.lib imp... |
02f2057a8fa754124a4194df44cc3bbb20a63e3d | d1c2d00078520cd556f60b7213c27856f8b3460d | /sdks/python/apache_beam/io/parquetio.py | 734dfa0bfe8e0236d2d6d315e535dde4958a0a2f | [
"BSD-3-Clause",
"MIT",
"LicenseRef-scancode-protobuf",
"Apache-2.0",
"Python-2.0"
] | permissive | apache/beam | ed11b9e043465c720659eac20ac71b5b171bfa88 | 6d5048e05087ea54abc889ce402ae2a0abb9252b | refs/heads/master | 2023-09-04T07:41:07.002653 | 2023-09-01T23:01:05 | 2023-09-01T23:01:05 | 50,904,245 | 7,061 | 4,522 | Apache-2.0 | 2023-09-14T21:43:38 | 2016-02-02T08:00:06 | Java | UTF-8 | Python | false | false | 26,641 | py | parquetio.py | #
# 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 us... |
f0082253f8e7e41cf494f3e7860041a9a6f0cf61 | ae07b42c9e0e5d0d06b42bdb9a13f62b6358bcb1 | /src/result_parser.py | d4c413b09f2f002efdb65c190d08bc64203aa4cb | [
"CC-BY-4.0",
"LicenseRef-scancode-generic-cla",
"MIT",
"ODbL-1.0"
] | permissive | microsoft/P.808 | 67c3b263e5339373de10386fdc5c39f2c2376ba3 | c489ab4963946fa5adca5830c8785f82a2db4f2d | refs/heads/master | 2023-06-30T00:59:33.335852 | 2023-04-17T11:50:04 | 2023-04-17T11:50:04 | 233,724,186 | 163 | 56 | MIT | 2023-04-17T11:50:05 | 2020-01-14T00:44:58 | HTML | UTF-8 | Python | false | false | 42,339 | py | result_parser.py | """
/*---------------------------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
*--------------------------------------------------------------... |
47f6c413df2ee2d6b2702649a32d1cbba090901e | f39fbc00e7584a3e93f92534ca016fd951110cf1 | /tests/rptest/utils/rpk_config.py | 35160801a12aa964b926abba3efee61997083524 | [] | no_license | redpanda-data/redpanda | 93234ff70348d3ed131bdc2d121fc8dcb7bffca9 | bee41676303c0e5fb161256b844bb14a135de8cd | refs/heads/dev | 2023-08-27T21:40:47.107399 | 2023-08-26T11:45:30 | 2023-08-26T11:45:30 | 309,512,982 | 4,297 | 308 | null | 2023-09-14T20:36:21 | 2020-11-02T22:43:36 | C++ | UTF-8 | Python | false | false | 893 | py | rpk_config.py | # Copyright 2023 Redpanda Data, Inc.
#
# Use of this software is governed by the Business Source License
# included in the file licenses/BSL.md
#
# As of the Change Date specified in that file, in accordance with
# the Business Source License, use of this software will be governed
# by the Apache License, Version 2.0
... |
dc3bf26741414e094ee74332a00f30713dbc9adc | 85e27209a7df58f76ab0f9f2ed13b1c6ac31ffc9 | /src_python/habitat_sim/simulator.py | 3db49904f1ce9b76fec7d250b7c29e3ebb7c6e71 | [
"CC-BY-4.0",
"CC-BY-3.0",
"MIT"
] | permissive | facebookresearch/habitat-sim | 72a78877c412fef1d42a553f896654c71c54d245 | 6f46bccc1733f4cec30b89d994ac55df2b46eb4a | refs/heads/main | 2023-09-03T00:17:30.809849 | 2023-08-29T16:06:16 | 2023-08-29T16:06:16 | 169,164,539 | 1,924 | 432 | MIT | 2023-09-14T17:12:21 | 2019-02-04T23:14:28 | C++ | UTF-8 | Python | false | false | 28,891 | py | simulator.py | #!/usr/bin/env python3
# Copyright (c) Meta Platforms, Inc. and its affiliates.
# This source code is licensed under the MIT license found in the
# LICENSE file in the root directory of this source tree.
import time
from collections import OrderedDict
from collections.abc import MutableMapping
from typing import Any,... |
a97d1929efcefc3e61c626f9039e7860fcd75ed6 | a41e1498e3c080f47abd8e8e57157548df3ebbf1 | /pandas/_libs/tslibs/offsets.pyi | 1a4742111db89dec228b963e9f344706a4ea5ee0 | [
"BSD-3-Clause"
] | permissive | pandas-dev/pandas | e7e639454a298bebc272622e66faa9829ea393bb | c7325d7e7e77ecb4a4e57b48bc25265277c75712 | refs/heads/main | 2023-09-01T12:42:07.927176 | 2023-09-01T11:14:10 | 2023-09-01T11:14:10 | 858,127 | 36,166 | 18,728 | BSD-3-Clause | 2023-09-14T21:18:41 | 2010-08-24T01:37:33 | Python | UTF-8 | Python | false | false | 8,208 | pyi | offsets.pyi | from datetime import (
datetime,
time,
timedelta,
)
from typing import (
Any,
Collection,
Literal,
TypeVar,
overload,
)
import numpy as np
from pandas._libs.tslibs.nattype import NaTType
from pandas._typing import (
OffsetCalendar,
Self,
npt,
)
from .timedeltas import Time... |
58390d2ed06a640e4d9b90eaafbbbbebe3b18a8d | d7b9b490c954c7a9160b69f8ce2c907ef4681ecb | /sponsors/migrations/0008_auto_20201028_1814.py | 5a527fb08f990478d084d1fba395b4c4ea6f25b7 | [
"Apache-2.0"
] | permissive | python/pythondotorg | 00db93a4b1789a4d438806d106d9cee3349ad78c | c4ee749942227ca75c8e670546afe67232d647b2 | refs/heads/main | 2023-08-28T20:04:24.735314 | 2023-08-03T19:12:29 | 2023-08-03T19:12:29 | 6,127,047 | 1,131 | 646 | Apache-2.0 | 2023-08-24T15:57:04 | 2012-10-08T16:00:15 | Python | UTF-8 | Python | false | false | 8,190 | py | 0008_auto_20201028_1814.py | # Generated by Django 2.0.13 on 2020-10-28 18:14
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
("sponsors", "0007_auto_2... |
ecebe1cd8fc1dfe9a44c9c502c7b12c75c90973d | 3a6a211ea0d32405497fbd6486c490bb147e25f9 | /telemetry/telemetry/page/traffic_setting.py | 9f5416ba6b2a58ddc2dc68875ea2b153aa9700c1 | [
"BSD-3-Clause"
] | permissive | catapult-project/catapult | e2cbdd5eb89f3b1492fc8752494e62ea1df4bae0 | 53102de187a48ac2cfc241fef54dcbc29c453a8e | refs/heads/main | 2021-05-25T07:37:22.832505 | 2021-05-24T08:01:49 | 2021-05-25T06:07:38 | 33,947,548 | 2,032 | 742 | BSD-3-Clause | 2022-08-26T16:01:18 | 2015-04-14T17:49:05 | HTML | UTF-8 | Python | false | false | 1,386 | py | traffic_setting.py | # Copyright 2016 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.
# Copyright 2016 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 fi... |
67c8e98ca49492c62edd00500aa4418f491322ff | 0e4860fecfdd34a3255003cc8c8df086c14083dd | /python/practise/learn-python/python_basic/dict_def.py | 702c6280381974095a3665183e8724d41225b241 | [] | no_license | anzhihe/learning | 503ab9a58f280227011da5eaa4b14b46c678e6f3 | 66f7f801e1395207778484e1543ea26309d4b354 | refs/heads/master | 2023-08-08T11:42:11.983677 | 2023-07-29T09:19:47 | 2023-07-29T09:19:47 | 188,768,643 | 1,443 | 617 | null | 2023-08-24T02:10:34 | 2019-05-27T04:04:10 | Python | UTF-8 | Python | false | false | 3,764 | py | dict_def.py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
@FileName: dict_def.py
@Function: dict definition
@Author: Zhihe An
@Site: https://chegva.com
@Time: 2021/6/27
"""
"""一、为什么需要字典?"""
"""
电话簿中存储了姓名和电话号码:
张三 → 13333333333
李四 → 14444444444
王五 → 15555555555
赵六 → 166666666... |
cb0c1b424b3836b6012d93672fce3c795de172be | 20ef5a192d8fa9c1eb25b0198ba059e002036229 | /tests/sklearn/test_infairness.py | fb7222d5f36bd73588f3f961ca9e5aa5d5ebe23d | [
"Apache-2.0"
] | permissive | Trusted-AI/AIF360 | 8ee9835e0c394f38ebb70f9351b113dac8710435 | 6f9972e4a7dbca2402f29b86ea67889143dbeb3e | refs/heads/master | 2023-08-31T07:48:43.056722 | 2023-07-27T19:09:06 | 2023-07-27T19:09:06 | 145,761,123 | 1,157 | 432 | Apache-2.0 | 2023-09-08T10:42:28 | 2018-08-22T20:47:15 | Python | UTF-8 | Python | false | false | 7,100 | py | test_infairness.py | from contextlib import nullcontext
from functools import partial
from inFairness import fairalgo, distances
import numpy as np
import pandas as pd
import pytest
from sklearn.datasets import make_classification, make_regression
from sklearn.model_selection import GridSearchCV
from sklearn.pipeline import Pipeline
from s... |
5e99522fc7459932c35a585e800feeec7da5d6af | 974d04d2ea27b1bba1c01015a98112d2afb78fe5 | /python/paddle/sparse/nn/layer/pooling.py | f42af9f5dc1405ff999e4cbe466b954393984a2c | [
"Apache-2.0"
] | permissive | PaddlePaddle/Paddle | b3d2583119082c8e4b74331dacc4d39ed4d7cff0 | 22a11a60e0e3d10a3cf610077a3d9942a6f964cb | refs/heads/develop | 2023-08-17T21:27:30.568889 | 2023-08-17T12:38:22 | 2023-08-17T12:38:22 | 65,711,522 | 20,414 | 5,891 | Apache-2.0 | 2023-09-14T19:20:51 | 2016-08-15T06:59:08 | C++ | UTF-8 | Python | false | false | 4,806 | py | pooling.py | # Copyright (c) 2022 PaddlePaddle Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by appli... |
8edb52ee8342012fba3d476fea9e5103a6633fba | 187414dcb264fb49d82507a099fd5fdca6e55e38 | /dev/run-tests-jenkins.py | aa82b28e38217e2510485b6733969eb5fc3e039e | [
"Apache-2.0",
"BSD-3-Clause",
"CC0-1.0",
"CDDL-1.1",
"LicenseRef-scancode-public-domain",
"BSD-2-Clause",
"LicenseRef-scancode-unknown-license-reference",
"EPL-2.0",
"CDDL-1.0",
"MIT",
"LGPL-2.0-or-later",
"Python-2.0",
"LicenseRef-scancode-generic-cla",
"LicenseRef-scancode-free-unknown",... | permissive | apache/spark | 8aeba2d80465a262acc95781ede105a5b5886f6d | 60d8fc49bec5dae1b8cf39a0670cb640b430f520 | refs/heads/master | 2023-09-04T04:33:36.058199 | 2023-09-04T03:48:52 | 2023-09-04T03:48:52 | 17,165,658 | 39,983 | 32,449 | Apache-2.0 | 2023-09-14T19:46:24 | 2014-02-25T08:00:08 | Scala | UTF-8 | Python | false | false | 9,116 | py | run-tests-jenkins.py | #!/usr/bin/env python3
#
# 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 "L... |
cec40fb03891dc898eca779bdc450f6096ee483a | 974d04d2ea27b1bba1c01015a98112d2afb78fe5 | /python/paddle/geometric/message_passing/utils.py | 5122a4f110ffe8d1c5fc8ef8933d18ac5847a65d | [
"Apache-2.0"
] | permissive | PaddlePaddle/Paddle | b3d2583119082c8e4b74331dacc4d39ed4d7cff0 | 22a11a60e0e3d10a3cf610077a3d9942a6f964cb | refs/heads/develop | 2023-08-17T21:27:30.568889 | 2023-08-17T12:38:22 | 2023-08-17T12:38:22 | 65,711,522 | 20,414 | 5,891 | Apache-2.0 | 2023-09-14T19:20:51 | 2016-08-15T06:59:08 | C++ | UTF-8 | Python | false | false | 2,971 | py | utils.py | # Copyright (c) 2022 PaddlePaddle Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by app... |
26cb2fd8c979d2cf42d52b972c95dee035efe7a8 | a08fe655bd0beed8433d386aec22b15a60916ebf | /utils/bits.py | 95e61c968dc82df3b4e6586a98ce898e4b65b596 | [] | no_license | bastibl/gr-keyfob | bfd5bb8d95b2ec4ddc79682328474e52bfcb7a3a | e9b144e50dac0aeb81708dc9ae80fcb044c670d3 | refs/heads/maint-3.9 | 2022-05-03T11:17:24.555464 | 2022-03-28T10:53:55 | 2022-03-28T10:53:55 | 37,908,760 | 168 | 37 | null | 2022-03-28T10:53:56 | 2015-06-23T09:09:52 | Python | UTF-8 | Python | false | false | 190 | py | bits.py | #!/usr/bin/env python
import sys
f = open("~/bits.bin", 'rb')
try:
byte = f.read(1)
while byte != "":
sys.stdout.write(str(ord(byte)))
byte = f.read(1)
finally:
f.close()
print
|
a61d0cdda7e23d6a95e08fa34aac1301aea03ed6 | 226727e281e6ce17450fac3ea78d1a3c4a3999fc | /examples/MuscularFlagella/connection_flagella.py | e8e22c02ac0b31cec298449ee73682c598c0d94d | [
"MIT"
] | permissive | GazzolaLab/PyElastica | 20df23e97560d05ef50e60f2aeefb420968fb01d | 49017d456aa10032e0ba1af23d5afd92cecedfa5 | refs/heads/master | 2023-08-31T14:28:48.056038 | 2023-08-18T16:54:51 | 2023-08-18T16:54:51 | 254,172,891 | 159 | 94 | MIT | 2023-09-09T04:11:01 | 2020-04-08T18:47:47 | Python | UTF-8 | Python | false | false | 4,153 | py | connection_flagella.py | __doc__ = """Muscular flagella connection class Numba implementation. """
__all__ = ["MuscularFlagellaConnection"]
import numpy as np
from numba import njit
from elastica.joint import FreeJoint
from elastica._linalg import _batch_matvec
class MuscularFlagellaConnection(FreeJoint):
"""
This connection class is... |
3c29634bdc27ce94bc9beb1d26a25e12fb7a2cb2 | ec7591c3f478c43e76257aaa500d8f6a2e763d74 | /stanza/pipeline/external/sudachipy.py | 7b142c7b149df84e9aaea69c512fc04b8dda8533 | [
"Apache-2.0"
] | permissive | stanfordnlp/stanza | 5cc3dbe70a96dd565639b7dae1efde6b4fa76985 | c530c9af647d521262b56b717bcc38b0cfc5f1b8 | refs/heads/main | 2023-09-01T12:01:38.980322 | 2023-03-14T16:10:05 | 2023-03-14T16:10:05 | 104,854,615 | 4,281 | 599 | NOASSERTION | 2023-09-10T00:31:36 | 2017-09-26T08:00:56 | Python | UTF-8 | Python | false | false | 2,917 | py | sudachipy.py | """
Processors related to SudachiPy in the pipeline.
GitHub Home: https://github.com/WorksApplications/SudachiPy
"""
import re
from stanza.models.common import doc
from stanza.pipeline._constants import TOKENIZE
from stanza.pipeline.processor import ProcessorVariant, register_processor_variant
def check_sudachipy()... |
466830adbf4b689a1e2fff13ed25277927b974a0 | 21590487701d2dcbe1a1c1dd81c6e983f7523cb6 | /opentelemetry-sdk/tests/performance/benchmarks/metrics/test_benchmark_metrics_histogram,.py | 2f9c4405418ebf40bb639144e077ed181f7b31df | [
"Apache-2.0"
] | permissive | open-telemetry/opentelemetry-python | 837199e541c03cff311cad075401791ee2a23583 | d8490c5f557dd7005badeb800095cb51b553c98c | refs/heads/main | 2023-08-26T06:47:23.837997 | 2023-08-17T22:35:13 | 2023-08-17T22:35:13 | 185,478,926 | 1,361 | 668 | Apache-2.0 | 2023-09-14T20:48:40 | 2019-05-07T21:13:30 | Python | UTF-8 | Python | false | false | 3,939 | py | test_benchmark_metrics_histogram,.py | # Copyright The OpenTelemetry Authors
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in ... |
e68e92b9ae27c86621e6dd843175a0e23960451b | a8ca3225e24c8b093056ce6baa1db6ba3aea8f97 | /tests/pf/test_mag_inversion_linear.py | ff8adfdfd773d053207cfb349a0eb6523329b0fd | [
"MIT"
] | permissive | simpeg/simpeg | 3e8779392d7b26fe576a7a665205068989d8f4d8 | ebde5856c318f7b4deb92d755b4fefe19012c48e | refs/heads/main | 2023-09-03T18:49:03.545965 | 2023-08-27T15:45:50 | 2023-08-27T15:45:50 | 14,727,320 | 437 | 268 | MIT | 2023-09-10T18:16:22 | 2013-11-26T19:46:36 | Python | UTF-8 | Python | false | false | 4,884 | py | test_mag_inversion_linear.py | import unittest
import discretize
from discretize.utils import active_from_xyz
from SimPEG import (
utils,
maps,
regularization,
data_misfit,
optimization,
inverse_problem,
directives,
inversion,
)
import numpy as np
# import SimPEG.PF as PF
from SimPEG.potential_fields import magnetics... |
c6c9df075ac4ba3de72171d607b4917472f79225 | 1dbbb05b30d27c6419b9f34eea3b9a47f92582a0 | /parlai/crowdsourcing/projects/wizard_of_internet/worlds.py | 7c919b4a4d4fd88b4413e6a01bac30092dc61bd9 | [
"MIT"
] | permissive | facebookresearch/ParlAI | 815334323d0ebef51bf9837336fe3eef6fe1655d | e1d899edfb92471552bae153f59ad30aa7fca468 | refs/heads/main | 2023-08-31T22:20:45.918129 | 2023-08-14T19:39:56 | 2023-08-14T19:39:56 | 89,266,735 | 10,943 | 2,395 | MIT | 2023-09-13T23:07:40 | 2017-04-24T17:10:44 | Python | UTF-8 | Python | false | false | 51,244 | py | worlds.py | #!/usr/bin/env python3
# Copyright (c) Facebook, Inc. and its affiliates.
# This source code is licensed under the MIT license found in the
# LICENSE file in the root directory of this source tree.
from copy import deepcopy
import random
import time
from datetime import datetime
from typing import Any, Dict, List, Uni... |
a46d04c1cb58fb70cb6da0841961323f3a2b1b4e | b4e36b2c71b41f8971b57bda977c29503aa4846d | /easCheck.py | 623376d92b876e1a91cc678b0df0b03e920d8b63 | [] | no_license | 3gstudent/Homework-of-Python | b79157eceb63f171e2a838479611bb9e5e85018a | d436661fbcb3d57021134f61e6c59f4d5a29b948 | refs/heads/master | 2023-04-09T15:55:16.360349 | 2023-03-31T03:02:43 | 2023-03-31T03:02:43 | 150,383,185 | 300 | 105 | null | 2022-11-28T02:49:10 | 2018-09-26T07:05:35 | Python | UTF-8 | Python | false | false | 1,570 | py | easCheck.py | import requests
import base64
import sys
import warnings
warnings.filterwarnings("ignore")
def test_options_https(ip,username,password):
try:
credential = base64.b64encode(username+":"+password)
url = 'https://' + ip + '/Microsoft-Server-ActiveSync'
headers = {
'User-... |
897645c2c1080cf91730fb7ab89d7bc8f7422b2e | f509ab9825c542e09b0c6591d86ef1f9feb540a6 | /pkgs/sdk-pkg/src/genie/libs/sdk/apis/iosxe/syslog/configure.py | 11350d5b27459983a48c4d867a633efc3d6c8430 | [
"Apache-2.0"
] | permissive | CiscoTestAutomation/genielibs | 97f597117193aaa18028defeb69078ebb241173a | e42e51475cddcb10f5c7814d0fe892ac865742ba | refs/heads/master | 2023-08-11T16:39:41.959947 | 2023-07-27T17:58:42 | 2023-07-27T17:58:42 | 130,717,047 | 109 | 60 | Apache-2.0 | 2023-08-29T22:32:08 | 2018-04-23T15:21:56 | Python | UTF-8 | Python | false | false | 830 | py | configure.py | # Steps
from pyats.aetest.steps import Steps
# Unicon
from unicon.core.errors import SubCommandFailure
def configure_syslog_server(device, server):
""" Configure Syslog servers
Args:
device ('obj') : Device to be configured server
server ('str'): Syslog server to be c... |
2aea090e316f9e75eb9a17bf32eee321a2993d1c | 5624a2063891918855c7832d4f4bab2c3df27a28 | /setup.py | 820012f4181900685935125915176250a76d2ce6 | [
"MIT"
] | permissive | ealcobaca/pymfe | 52908a9e54d83b431e8aed47b4ea7943e4875b31 | 50131572309dd92cfdf1eceb313be7408f3941b6 | refs/heads/master | 2023-05-12T12:47:08.060399 | 2023-01-03T20:04:24 | 2023-01-03T20:04:24 | 158,245,631 | 117 | 33 | MIT | 2023-05-02T20:00:34 | 2018-11-19T15:20:11 | Python | UTF-8 | Python | false | false | 1,876 | py | setup.py | """Setup for pymfe package."""
import setuptools
import os
import pymfe
with open("README.md", "r") as fh:
LONG_DESCRIPTION = fh.read()
NAME = "pymfe"
VERSION = pymfe.__version__
DESCRIPTION = "Meta-feature Extractor"
LICENSE = "MIT"
URL = "https://github.com/ealcobaca/pymfe"
MAINTAINER = "Edesio Alcob... |
81ab294e628549640d089b004a7f3457409f2c44 | 1742b6719b988e5519373002305e31d28b8bd691 | /sdk/python/pulumi_aws/memorydb/outputs.py | 7babc7e87682dbeb8de1d4a7dce40fe33907e067 | [
"BSD-3-Clause",
"Apache-2.0",
"MPL-2.0"
] | permissive | pulumi/pulumi-aws | 4f7fdb4a816c5ea357cff2c2e3b613c006e49f1a | 42b0a0abdf6c14da248da22f8c4530af06e67b98 | refs/heads/master | 2023-08-03T23:08:34.520280 | 2023-08-01T18:09:58 | 2023-08-01T18:09:58 | 97,484,940 | 384 | 171 | Apache-2.0 | 2023-09-14T14:48:40 | 2017-07-17T14:20:33 | Java | UTF-8 | Python | false | false | 29,750 | py | outputs.py | # coding=utf-8
# *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
# *** Do not edit by hand unless you're certain you know what you are doing! ***
import copy
import warnings
import pulumi
import pulumi.runtime
from typing import Any, Mapping, Optional, Sequence, Union, overload
fr... |
f547747b8bd3f940c2035c80d10c7fc5b31d56ed | 489c11c84d604c3363a326f98f931b09378be7e3 | /oauth/tests.py | bb23b9baba8660c1703c60fb33ae42cc17f716ab | [
"MIT"
] | permissive | liangliangyy/DjangoBlog | 88441bb728d84f1a52f8122a09fd45fe8e1f14c3 | 6a708de228aaa07a2bf0de84f05eb1fb8f33a37d | refs/heads/master | 2023-08-31T08:31:56.249077 | 2023-08-23T13:48:34 | 2023-08-23T13:48:34 | 72,640,835 | 6,499 | 3,157 | MIT | 2023-09-13T10:09:26 | 2016-11-02T13:07:55 | Python | UTF-8 | Python | false | false | 9,781 | py | tests.py | import json
from unittest.mock import patch
from django.conf import settings
from django.contrib import auth
from django.test import Client, RequestFactory, TestCase
from django.urls import reverse
from djangoblog.utils import get_sha256
from oauth.models import OAuthConfig
from oauth.oauthmanager import BaseOauthMan... |
c44c038fb6436bbdb54c0be536b3bf90bd19cb4b | 026ba8593b3b364ec44797e345d25324be53f9cf | /pydantic_cli/tests/test_examples_simple_with_enum_by_name.py | 8405fff2715e74051733e48b8bea4f201cbe8534 | [
"MIT"
] | permissive | mpkocher/pydantic-cli | e8d21dd094aabb18f39935a2351c0f297f4d163e | d67ab8b265fd9ed045d27ecd904a04b8185481fa | refs/heads/master | 2023-07-10T16:13:15.750640 | 2022-04-06T23:14:34 | 2022-04-06T23:14:34 | 197,854,268 | 109 | 9 | MIT | 2023-06-30T23:53:36 | 2019-07-19T23:22:18 | Python | UTF-8 | Python | false | false | 884 | py | test_examples_simple_with_enum_by_name.py | from . import _TestHarness, HarnessConfig
from pydantic_cli.examples.simple_with_enum_by_name import Options, example_runner
class TestExamples(_TestHarness[Options]):
CONFIG = HarnessConfig(Options, example_runner)
def test_simple_01(self):
args = ["--states", "RUNNING", "FAILED", "--mode", "alpha... |
33f38b38ef80b162d7b4792b7e6d99cd51d8decd | e1cddfd754d952134e72dfd03522c5ea4fb6008e | /docs/_scripts/filter_h.py | 31c4c5142831308d7b3561803f0c0144d20d2f23 | [
"Apache-2.0"
] | permissive | FDio/vpp | 0ad30fa1bec2975ffa6b66b45c9f4f32163123b6 | f234b0d4626d7e686422cc9dfd25958584f4931e | refs/heads/master | 2023-08-31T16:09:04.068646 | 2022-03-14T09:49:15 | 2023-08-31T09:50:00 | 96,556,718 | 1,048 | 630 | Apache-2.0 | 2023-06-21T05:39:17 | 2017-07-07T16:29:40 | C | UTF-8 | Python | false | false | 1,658 | py | filter_h.py | #!/usr/bin/env python3
# Copyright (c) 2016 Comcast Cable Communications Management, LLC.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at:
#
# http://www.apache.org/licenses/LICENSE-2.0
#... |
9d323f41ae3ff2dda802170a2d85c6e465cedb87 | 578db86c51d44ebddd0dc7b1738985b3dc69eb74 | /corehq/apps/api/tasks.py | ac67926f30c7d85e2fd33dafadccc9eff0a20b48 | [
"BSD-3-Clause"
] | permissive | dimagi/commcare-hq | a43c7dd32b5f89c89fd5aa1b1359ab7301f4ff6b | e7391ddae1af1dbf118211ecb52c83fc508aa656 | refs/heads/master | 2023-08-16T22:38:27.853437 | 2023-08-16T19:07:19 | 2023-08-16T19:07:19 | 247,278 | 499 | 203 | BSD-3-Clause | 2023-09-14T19:03:24 | 2009-07-09T17:00:07 | Python | UTF-8 | Python | false | false | 373 | py | tasks.py | import time
from celery.schedules import crontab
from corehq.apps.celery import periodic_task
from tastypie.models import ApiAccess
@periodic_task(run_every=crontab(minute=0, hour=0), queue='background_queue')
def clean_api_access():
accessed = int(time.time()) - 90 * 24 * 3600 # only keep last 90 days
ApiA... |
3c3da9bed8ae5b4c451520fe12e4e7e3a33e8890 | 568fa58296378fa129ab3349adf010daa44ed45b | /python/akg/ops/math/ascend/approximate_equal.py | 87f473d87d4dc70cc6bc54bba0fbae40ff3de8f9 | [
"Apache-2.0",
"BSD-3-Clause",
"NCSA",
"X11-distribute-modifications-variant",
"Zlib",
"MIT",
"LicenseRef-scancode-unknown-license-reference",
"Unlicense",
"LLVM-exception",
"BSD-2-Clause"
] | permissive | mindspore-ai/akg | 37f471badc66de6a831f1f45ad84344f34d23ef2 | 99f33858d6972741748cbfc9ab0bf9600428fef7 | refs/heads/master | 2023-07-25T23:03:17.672665 | 2023-07-11T07:33:57 | 2023-07-11T07:33:57 | 274,077,856 | 319 | 36 | Apache-2.0 | 2021-12-30T13:43:08 | 2020-06-22T08:09:05 | Python | UTF-8 | Python | false | false | 2,975 | py | approximate_equal.py | # Copyright 2020-2022 Huawei Technologies Co., Ltd
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agre... |
f6f46ee5c45044416c21c67fd39d2941958847f1 | 56a77194fc0cd6087b0c2ca1fb6dc0de64b8a58a | /applications/WindEngineeringApplication/tests/test_WindEngineeringApplication.py | 2390d6b6f9cc47e9e8fe109965cc9769d5444907 | [
"BSD-3-Clause"
] | permissive | KratosMultiphysics/Kratos | 82b902a2266625b25f17239b42da958611a4b9c5 | 366949ec4e3651702edc6ac3061d2988f10dd271 | refs/heads/master | 2023-08-30T20:31:37.818693 | 2023-08-30T18:01:01 | 2023-08-30T18:01:01 | 81,815,495 | 994 | 285 | NOASSERTION | 2023-09-14T13:22:43 | 2017-02-13T10:58:24 | C++ | UTF-8 | Python | false | false | 2,875 | py | test_WindEngineeringApplication.py | # Kratos imports
import KratosMultiphysics
import KratosMultiphysics.KratosUnittest as UnitTest
from KratosMultiphysics.WindEngineeringApplication.test_suite import SuiteFlags, TestSuite
import run_cpp_tests
# STL imports
import pathlib
class TestLoader(UnitTest.TestLoader):
@property
def suiteClass(self):
... |
bbc3c5bde130c509fb252b316f20d489a41cfde2 | 1742b6719b988e5519373002305e31d28b8bd691 | /sdk/python/pulumi_aws/oam/get_sink.py | 3b0cb98d6fb19cfa015b691dd5456205724bdac3 | [
"BSD-3-Clause",
"MPL-2.0",
"Apache-2.0"
] | permissive | pulumi/pulumi-aws | 4f7fdb4a816c5ea357cff2c2e3b613c006e49f1a | 42b0a0abdf6c14da248da22f8c4530af06e67b98 | refs/heads/master | 2023-08-03T23:08:34.520280 | 2023-08-01T18:09:58 | 2023-08-01T18:09:58 | 97,484,940 | 384 | 171 | Apache-2.0 | 2023-09-14T14:48:40 | 2017-07-17T14:20:33 | Java | UTF-8 | Python | false | false | 5,065 | py | get_sink.py | # coding=utf-8
# *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
# *** Do not edit by hand unless you're certain you know what you are doing! ***
import copy
import warnings
import pulumi
import pulumi.runtime
from typing import Any, Mapping, Optional, Sequence, Union, overload
fr... |
105da23dbfa962850abc9d614601bc8da0677339 | f0519485bd889fedc1f01e3d3f5bf8681cac163e | /panflute/tools.py | 7cff301e944ab886b47bb953a6fe2800e8c62860 | [
"BSD-3-Clause"
] | permissive | sergiocorreia/panflute | 55291ab38fcb63a162864faf6bf349e3e9aaaaa1 | dd8b03a3f5b1eca13faf54289dae3e50d5323ca0 | refs/heads/master | 2023-07-08T15:28:00.102303 | 2023-03-07T03:14:02 | 2023-03-07T03:14:02 | 55,024,750 | 470 | 74 | BSD-3-Clause | 2023-02-08T11:01:41 | 2016-03-30T02:07:47 | Python | UTF-8 | Python | false | false | 23,478 | py | tools.py | """
Useful (but not essential) functions for writing panflute filters
"""
# ---------------------------
# Imports
# ---------------------------
from .base import Element
from .elements import *
from .io import dump
import io
import os
import os.path as p
import re
import sys
import json
import yaml
import shlex
fro... |
69ec86d53dce85e7256b27da0c41bcec7cdcd9c2 | 852b57a1a2a0fa6b0d23bef16c4a989d369936e9 | /tests/sync/test_tracing.py | 5c50842401bb2caf296d33d40bf49dfad10de768 | [
"Apache-2.0"
] | permissive | microsoft/playwright-python | e28badf23e20f948b4063a314e906006dcdff7fa | 42c0bf19d7ae415552172d7c04cdb7afd9dad7fb | refs/heads/main | 2023-08-22T17:49:04.645213 | 2023-08-14T12:52:46 | 2023-08-14T12:52:46 | 276,414,382 | 9,615 | 870 | Apache-2.0 | 2023-09-05T17:07:48 | 2020-07-01T15:28:13 | Python | UTF-8 | Python | false | false | 10,397 | py | test_tracing.py | # Copyright (c) Microsoft Corporation.
#
# 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 writ... |
342727704b0e4a38266acdfe9a3fafbc2a3afa85 | ab4e2883680fd0ab576d9b30be88c08f38e9562b | /cornac/eval_methods/propensity_stratified_evaluation.py | aa1751e06986c798ed481b76d8a59bdae832bed0 | [
"Apache-2.0"
] | permissive | PreferredAI/cornac | 6b2ac4589dfe38a41128b0d00b7fc642a5ae41ba | b0d6fe83e9c99bfe41312059ae849ca1009a179f | refs/heads/master | 2023-08-17T18:17:52.745292 | 2023-08-13T04:51:13 | 2023-08-13T04:51:13 | 141,242,285 | 806 | 150 | Apache-2.0 | 2023-09-14T09:19:15 | 2018-07-17T06:31:35 | Python | UTF-8 | Python | false | false | 14,383 | py | propensity_stratified_evaluation.py | import time
from collections import defaultdict
from collections import OrderedDict
import powerlaw
import numpy as np
import tqdm.auto as tqdm
from ..utils.common import safe_indexing
from ..data import Dataset
from .base_method import BaseMethod, rating_eval
from .ratio_split import RatioSplit
from ..experiment.res... |
816af407252416c7920e38e75c056ea91ed94104 | ff443629c167f318d071f62886581167c51690c4 | /test/lint/lint-python.py | 6010c787cb9cdac97dc7691397138ada7611189b | [
"MIT"
] | permissive | bitcoin/bitcoin | a618b2555d9fe5a2b613e5fec0f4b1eca3b4d86f | 6f03c45f6bb5a6edaa3051968b6a1ca4f84d2ccb | refs/heads/master | 2023-09-05T00:16:48.295861 | 2023-09-02T17:43:00 | 2023-09-02T17:46:33 | 1,181,927 | 77,104 | 33,708 | MIT | 2023-09-14T20:47:31 | 2010-12-19T15:16:43 | C++ | UTF-8 | Python | false | false | 5,818 | py | lint-python.py | #!/usr/bin/env python3
#
# Copyright (c) 2022 The Bitcoin Core developers
# Distributed under the MIT software license, see the accompanying
# file COPYING or http://www.opensource.org/licenses/mit-license.php.
"""
Check for specified flake8 and mypy warnings in python files.
"""
import os
import subprocess
import sy... |
14af8a75316e98e2a4e1c841b0e81baa82cfedfe | 9e1f60a867f66b1f4e4fc84fa4252c581e5e1a36 | /Chapter06/descriptors_pythonic_1.py | 67b266cae1968dbbd694c1aacfb85e2d7e0fd181 | [
"MIT"
] | permissive | PacktPublishing/Clean-Code-in-Python | c216e002485b8cd7736f97b59215a3930f35359a | 7348d0f9f42871f499b352e0696e0cef51c4f8c6 | refs/heads/master | 2023-06-10T13:40:33.331115 | 2023-05-30T17:48:09 | 2023-05-30T17:48:09 | 145,072,942 | 523 | 181 | MIT | 2023-05-30T17:48:10 | 2018-08-17T04:48:38 | Python | UTF-8 | Python | false | false | 1,367 | py | descriptors_pythonic_1.py | """Clean Code in Python - Chapter 6: Descriptors
> A Pythonic Implementation
"""
import time
class Traveller:
"""A person visiting several cities.
We wish to track the path of the traveller, as he or she is visiting each
new city.
>>> alice = Traveller("Alice", "Barcelona")
>>> alice.current_... |
d295f90736a8801c5beefdf862949445c6d141db | 540b4199dd80228f1d84c9b687e974cfa2c289a2 | /【Python+Dash快速web应用开发】系列文章/18 项目结构篇/dash_demo_project/models/age.py | fabfaf20a2554db87a32eea207cf64d3b418d89f | [] | no_license | CNFeffery/DataScienceStudyNotes | 1186e26c88874b89b65f841af5f78dc49429e479 | d45b42b49be04ba4add9cdd18b4787fb3c334b1f | refs/heads/master | 2023-08-17T07:18:43.730916 | 2023-07-25T14:05:17 | 2023-07-25T14:05:17 | 206,516,448 | 1,141 | 485 | null | null | null | null | UTF-8 | Python | false | false | 609 | py | age.py | from peewee import SqliteDatabase, Model
from peewee import CharField, FloatField
db = SqliteDatabase('models/age.db')
class Age(Model):
# 地区,唯一
region = CharField(unique=True)
# 0-14岁占比
prop_0_to_14 = FloatField()
# 15-59岁占比
prop_15_59 = FloatField()
# 60岁及以上占比
prop_60_above = Flo... |
cdbc6192e5c21788bf0aeee18ef1b43df9603d24 | 42965d9ad4214758fe25232c53b291099924f659 | /lib/convert_files.py | 6ebcc7db9f4e56e1a418c3c136862ad5aac59091 | [
"MIT"
] | permissive | chaosparrot/parrot.py | 802a6af6f2c21d8e0d18d673fada93e4a4101144 | c8e5562600612ad6fdb93c96781d7c23439f1cab | refs/heads/master | 2023-08-03T12:27:09.166527 | 2023-04-10T08:34:56 | 2023-04-10T08:34:56 | 178,544,997 | 126 | 34 | MIT | 2023-03-14T18:42:52 | 2019-03-30T10:37:28 | Python | UTF-8 | Python | false | false | 10,920 | py | convert_files.py | from config.config import *
import os
import subprocess
import math
import time
import wave
from queue import *
import numpy as np
from scipy.fftpack import fft
from scipy.fftpack import fftfreq
from scipy.signal import blackmanharris
from lib.machinelearning import get_loudest_freq, get_recording_power
import audioop
... |
f7eeb27ec5c0827ce700b9607e06dcd6ad8e0779 | f80ef3a3cf859b13e8af8433af549b6b1043bf6e | /pyobjc-framework-UserNotificationsUI/Lib/UserNotificationsUI/__init__.py | d966483872291daacc3faac5f5879b58f48bc244 | [
"MIT"
] | permissive | ronaldoussoren/pyobjc | 29dc9ca0af838a56105a9ddd62fb38ec415f0b86 | 77b98382e52818690449111cd2e23cd469b53cf5 | refs/heads/master | 2023-09-01T05:15:21.814504 | 2023-06-13T20:00:17 | 2023-06-13T20:00:17 | 243,933,900 | 439 | 49 | null | 2023-06-25T02:49:07 | 2020-02-29T08:43:12 | Python | UTF-8 | Python | false | false | 798 | py | __init__.py | """
Python mapping for the UserNotificationsUI framework.
This module does not contain docstrings for the wrapped code, check Apple's
documentation for details on how to use these functions and classes.
"""
import sys
import Cocoa
import UserNotifications
import objc
from UserNotificationsUI import _metadata
sys.mo... |
96418dda8c0facb41e6e2a8fb0de3dc34961edbf | 499f5402baed77d000c65f243b457c69dc3d2fe4 | /pycatia/hybrid_shape_interfaces/hybrid_shape_plane_offset_pt.py | 2c99634c7809c240e97cf444793341a3294f9bdc | [
"MIT"
] | permissive | evereux/pycatia | 416189b34f3c60effea8a76258e36ffc5ae86e22 | 5f5726d5dc66265b3eba8a01910c4aeae424365d | refs/heads/master | 2023-08-21T10:03:41.660445 | 2023-08-09T16:21:10 | 2023-08-09T16:21:10 | 159,069,580 | 141 | 42 | MIT | 2023-08-09T11:15:27 | 2018-11-25T20:04:31 | Python | UTF-8 | Python | false | false | 3,765 | py | hybrid_shape_plane_offset_pt.py | #! usr/bin/python3.9
"""
Module initially auto generated using V5Automation files from CATIA V5 R28 on 2020-07-06 14:02:20.222384
.. warning::
The notes denoted "CAA V5 Visual Basic Help" are to be used as reference only.
They are there as a guide as to how the visual basic / catscript function... |
a084eb63619278a87d3a7cf077610872ca30ee66 | a2b20597759990445081057d35d113434cfcf970 | /source/interprocedural_analyses/taint/test/integration/long_access_path_taint.py | f80fb9de0fe26f828a16db5cffb84f443e38b47c | [
"MIT"
] | permissive | facebook/pyre-check | 34059599c02b65605c574f13555229f3b931fd4e | fe8ccedc572cc1faa1fd01e9138f65e982875002 | refs/heads/main | 2023-09-03T19:10:11.587028 | 2023-09-02T07:40:35 | 2023-09-02T07:40:35 | 110,274,488 | 6,703 | 575 | MIT | 2023-09-13T17:02:32 | 2017-11-10T17:31:36 | OCaml | UTF-8 | Python | false | false | 1,031 | py | long_access_path_taint.py | # Copyright (c) Meta Platforms, Inc. and affiliates.
#
# This source code is licensed under the MIT license found in the
# LICENSE file in the root directory of this source tree.
from builtins import _test_sink, _test_source
from typing import Any, Dict, List, Optional, Tuple
class C:
def __init__(
self,... |
d30ca881b0d545e8dc77c7e8b36638343834375b | eeade6c1c22887dd87aeb4cdd5a61263ea5bf26f | /test_runner/blog/migrations/0001_initial.py | 38c24edfc338d8f3f2753d9dee8b03634ea95e2b | [
"BSD-3-Clause"
] | permissive | nyaruka/smartmin | ce396ee0a9d2a8eacde32568c9745c176e11925f | 5c0d9fd189f7472c6568bd5cd3b55db4574a3d44 | refs/heads/main | 2023-09-05T10:15:48.963165 | 2023-08-15T15:02:01 | 2023-08-15T15:02:01 | 1,928,199 | 200 | 37 | BSD-3-Clause | 2023-08-15T15:00:59 | 2011-06-21T08:56:44 | Python | UTF-8 | Python | false | false | 4,016 | py | 0001_initial.py | from django.conf import settings
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
]
operations = [
migrations.CreateModel(
name="Category",
fields=[
... |
86b53aa8b63bb76593e92e46ee319a44cba1240e | 1ed25da5d1e27cd49fb4a02acfe99aadcf2fae57 | /pygeoapi/models/config.py | 148f78d77e697af8cd23b856c176b0b65d45aaa4 | [
"MIT"
] | permissive | geopython/pygeoapi | 6d2a7b0e8fe75d0c454a0b2fc3599a0b88c7567f | 2d3ec88320cf5e1ed47b4b794f40b453bad487e2 | refs/heads/master | 2023-09-04T04:30:59.768950 | 2023-09-03T02:00:23 | 2023-09-03T02:00:23 | 121,585,259 | 391 | 245 | MIT | 2023-09-13T18:13:00 | 2018-02-15T02:46:27 | Python | UTF-8 | Python | false | false | 4,273 | py | config.py | # ****************************** -*-
# flake8: noqa
# =================================================================
#
# Authors: Sander Schaminee <sander.schaminee@geocat.net>
#
# Copyright (c) 2023 Sander Schaminee
#
# Permission is hereby granted, free of charge, to any person
# obtaining a copy of this software ... |
a727f69b5acf7648d2566066fbde785f73d1168f | a3d6556180e74af7b555f8d47d3fea55b94bcbda | /chrome/android/features/tab_ui/DEPS | 8f96d0fdee2eeb3872acd71d572ff00868331842 | [
"BSD-3-Clause"
] | permissive | chromium/chromium | aaa9eda10115b50b0616d2f1aed5ef35d1d779d6 | a401d6cf4f7bf0e2d2e964c512ebb923c3d8832c | refs/heads/main | 2023-08-24T00:35:12.585945 | 2023-08-23T22:01:11 | 2023-08-23T22:01:11 | 120,360,765 | 17,408 | 7,102 | BSD-3-Clause | 2023-09-10T23:44:27 | 2018-02-05T20:55:32 | null | UTF-8 | Python | false | false | 1,140 | DEPS | include_rules = [
"+chrome/browser/android/lifecycle",
"+chrome/browser/endpoint_fetcher",
"+chrome/browser/optimization_guide/android/java/src/org/chromium/chrome/browser/optimization_guide",
"+chrome/browser/profiles/android/java",
"+chrome/browser/tab/java",
"+chrome/browser/tabmodel/android/java",
"+chrome/b... | |
761b16461a9119b8d224dbc33659b7be9e3beb54 | 5fa348b53191cc8d8cb8df2d213d1a0d1a07a820 | /hls4ml/converters/keras/reshape.py | bd9d519a2a33d6e88316a462979b18b19dd537a3 | [
"Apache-2.0"
] | permissive | fastmachinelearning/hls4ml | 29496536ca5a63a51e009d246019680bd4950007 | 4b4b5a0cf0bc59801e94b2bb64d63d8734645c3b | refs/heads/main | 2023-08-31T15:52:18.564650 | 2023-08-28T22:57:50 | 2023-08-28T23:25:36 | 108,329,371 | 562 | 199 | Apache-2.0 | 2023-09-13T17:19:05 | 2017-10-25T21:43:56 | C++ | UTF-8 | Python | false | false | 3,236 | py | reshape.py | import numpy as np
from hls4ml.converters.keras_to_hls import keras_handler, parse_default_keras_layer
from hls4ml.converters.utils import parse_data_format
@keras_handler('Flatten')
def parse_flatten_layer(keras_layer, input_names, input_shapes, data_reader):
assert keras_layer["class_name"] == 'Flatten'
l... |
b0deafe57a977920a200a5aff59dbe6dbb20ea81 | c287f29b900b4fcc1396867d5f6b099830ff216b | /src/portal/puffer/migrations/0007_participate.py | 0a4d110905f57b49da0ef1e52286070d4f41a2e0 | [] | no_license | StanfordSNR/puffer | 5660fcd243606a4223bb6769b806a99eda073041 | a8967b4a232efeeedae392cab39042ca805314d5 | refs/heads/master | 2023-09-01T11:07:41.256267 | 2023-08-07T17:18:45 | 2023-08-07T17:18:45 | 106,030,394 | 739 | 123 | null | 2022-12-28T21:01:35 | 2017-10-06T17:10:05 | C++ | UTF-8 | Python | false | false | 603 | py | 0007_participate.py | # Generated by Django 2.1.2 on 2018-10-29 21:53
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('puffer', '0006_grafanasnapshot'),
]
operations = [
migrations.CreateModel(
name='Participate',
fields=[
... |
c2d7013e7af4665b9d85e5b6d86bdb3203851e0b | b8bbdfc593b6d816e67a344f720f90ec05236778 | /airflow/providers/sftp/sensors/sftp.py | f6a1278c18a11e4b76db3672fa5686fe7a75293e | [
"Apache-2.0",
"BSD-3-Clause",
"MIT"
] | permissive | apache/airflow | ed78db0a8bab7e096990e143926e52f518e288ab | 1b122c15030e99cef9d4ff26d3781a7a9d6949bc | refs/heads/main | 2023-09-01T08:37:34.556097 | 2023-09-01T06:49:05 | 2023-09-01T06:49:05 | 33,884,891 | 22,756 | 11,558 | Apache-2.0 | 2023-09-14T20:12:36 | 2015-04-13T18:04:58 | Python | UTF-8 | Python | false | false | 4,400 | py | sftp.py | #
# 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... |
1c870e656e7e542579c960f7ef268a6fc88f9655 | a5a99f646e371b45974a6fb6ccc06b0a674818f2 | /L1Trigger/L1TMuonBarrel/test/kalmanTools/runCalibration.py | 33f92da3dbe6ff1f66d3d085ca679e9b1256eec1 | [
"Apache-2.0"
] | permissive | cms-sw/cmssw | 4ecd2c1105d59c66d385551230542c6615b9ab58 | 19c178740257eb48367778593da55dcad08b7a4f | refs/heads/master | 2023-08-23T21:57:42.491143 | 2023-08-22T20:22:40 | 2023-08-22T20:22:40 | 10,969,551 | 1,006 | 3,696 | Apache-2.0 | 2023-09-14T19:14:28 | 2013-06-26T14:09:07 | C++ | UTF-8 | Python | false | false | 8,063 | py | runCalibration.py | import ROOT
import itertools
import math
from DataFormats.FWLite import Events, Handle
from array import array
import numpy
def median(lst):
return numpy.median(numpy.array(lst))
def fetchSegmentsPhi(event,ontime=True,twinMux=True):
phiSeg = Handle ('L1MuDTChambPhContainer')
if twinMux:
eve... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.