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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
23abb883b7d6f8d9b303589c1c757b509dc4d37a | 3a6a211ea0d32405497fbd6486c490bb147e25f9 | /dependency_manager/dependency_manager/base_config_unittest.py | c10d2a78ea965581534418518cd8d245dca249b5 | [
"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 | 81,060 | py | base_config_unittest.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.
# pylint: disable=unused-argument
import os
import unittest
from py_utils import cloud_storage
import mock
from pyfakefs import fake_filesystem_unittest
fr... |
cb5ff47407f722bd45df77511392f2e4e67893bc | eb9f655206c43c12b497c667ba56a0d358b6bc3a | /python/testData/refactoring/rename/epydocRenameParameter_after.py | 914cc1cff998c6f956cd3c3c3bf78e7ebef151d7 | [
"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 | 120 | py | epydocRenameParameter_after.py | def func(bar):
""" \\some comment
@param bar: The parameter value.
@type bar: Its type."""
pass
|
8f21ea31bf765262b783698bdaafa6ace9d818cf | 5f5960d3041beb541f8abc6cb5c5bfeaf80f420d | /0248_Problem_1.py | 75a3dab754a5fca31e7480ce0887e53d4ebf92c8 | [] | no_license | codereport/LeetCode | 6a904ba915d9a0e104f9b2e0556592d9b733fcec | 2a3d5ea3438d696690d9a30f1f3f81403128f983 | refs/heads/master | 2023-09-01T05:59:30.763405 | 2023-08-24T23:45:20 | 2023-08-24T23:45:20 | 120,723,684 | 125 | 46 | null | 2023-03-21T17:25:50 | 2018-02-08T06:59:28 | C++ | UTF-8 | Python | false | false | 191 | py | 0248_Problem_1.py | # Problem Link: https://leetcode.com/contest/weekly-contest-248/problems/build-array-from-permutation/
def buildArray(self, nums: List[int]) -> List[int]:
return [nums[i] for i in nums]
|
8f8d9013e57b2792038d1d10ab2b85a5058d07f8 | 2bc18a13c4a65b4005741b979f2cb0193c1e1a01 | /test/suite/out/W39.py | 554814c47839f32df7413729bd66ffe72cb950df | [
"MIT"
] | permissive | hhatto/autopep8 | b0b9daf78050d981c4355f096418b9283fc20a0f | 4e869ad63a11575267450bfefdf022bb6128ab93 | refs/heads/main | 2023-09-01T05:14:18.553939 | 2023-08-27T14:12:45 | 2023-08-27T14:12:45 | 1,206,729 | 3,966 | 329 | MIT | 2023-08-27T14:12:46 | 2010-12-29T20:08:51 | Python | UTF-8 | Python | false | false | 144 | py | W39.py | #: W391
# The next line is blank
#: Okay
'''there is nothing wrong
with a multiline string at EOF
that happens to have a blank line in it
'''
|
8e4a27aca6401adddca686c97d5a5ff2d8500194 | 217a3f7fd7ae0d80ab8e04c0e4dce0c16a7cee3f | /tools/train_source.py | c9a967eec48b8f4c1d17493ab2ead0f1aab2e73e | [
"MIT"
] | permissive | ZJULearning/MaxSquareLoss | 5e1d29dee83158e78f7a294479be734a53cd78dc | 2fbc18fc4ee0a618bfb6a9c0e1318261c80541db | refs/heads/master | 2022-11-30T16:25:36.343504 | 2021-12-31T10:41:54 | 2021-12-31T10:41:54 | 181,312,374 | 113 | 28 | MIT | 2022-11-22T08:49:43 | 2019-04-14T13:23:27 | Python | UTF-8 | Python | false | false | 31,659 | py | train_source.py | import os
import random
import logging
import argparse
import torch
import torch.nn as nn
import torch.utils.data as data
import torch.nn.functional as F
from tqdm import tqdm
from math import ceil
import numpy as np
from distutils.version import LooseVersion
from tensorboardX import SummaryWriter
from torchvision.util... |
61d048fc281accde5be37d930b995f11593e5ea6 | ddddaa700e4642f46a2c1e1e0271a7c8ea62ba0f | /harness/determined/constants.py | 57887b7c582edf87bad5b37e3522a7b8330fda2b | [
"Apache-2.0"
] | permissive | determined-ai/determined | 9d563cb5ffd074c88ee5edc9bf22ab9c3cb78c7e | 8239b1993f4f44390f4e88901ffaf3b12429b83c | refs/heads/main | 2023-08-21T12:13:36.651298 | 2023-08-21T08:34:16 | 2023-08-21T08:34:16 | 253,846,879 | 2,531 | 330 | Apache-2.0 | 2023-09-14T21:54:17 | 2020-04-07T16:12:29 | Go | UTF-8 | Python | false | false | 2,417 | py | constants.py | import os
MAX_SLOTS_PER_AGENT = 16
# The default configs to use in when running test experiments.
#
# TODO: Unify the defaults used here with the defaults used in master.
DEFAULT_SEARCHER_CFG = {"name": "single", "max_length": {"batches": 100}}
DEFAULT_RESOURCES_CFG = {"slots_per_trial": 1, "native_parallel": False}
D... |
122cf87df135a600099ddde86b57a92018a2e24a | 3ca67d69abd4e74b7145b340cdda65532f90053b | /BOJ/1245.농장관리/sAp00n.py | 58fcb04e7263d3cf6ebf22e66ef8f001ab85f8de | [] | no_license | DKU-STUDY/Algorithm | 19549516984b52a1c5cd73e1ed1e58f774d6d30e | 6f78efdbefd8eedab24e43d74c7dae7f95c2893b | refs/heads/master | 2023-02-18T06:48:39.309641 | 2023-02-09T07:16:14 | 2023-02-09T07:16:14 | 258,455,710 | 175 | 49 | null | 2023-02-09T07:16:16 | 2020-04-24T08:42:27 | Python | UTF-8 | Python | false | false | 5,675 | py | sAp00n.py | from sys import stdin
from collections import deque
def near_check(mat, node):
global N_Column
global M_Row
i, j = node
node_val = mat[j][i]
return_list = []
if i == 0:
if j == 0:
search_list = [[i + 1, j], [i, j + 1], [i + 1, j + 1]]
for near_node in search_li... |
d4321b9d3679ecc77b78f4e72dff7dd5100f92c6 | 9734c93c86c982b1ce046340bac9e53645b261b8 | /tests/parsers/systemd_journal.py | 5f378d3d4041cef535987a02edcda75af03d51d6 | [
"Apache-2.0"
] | permissive | log2timeline/plaso | cd72dd407d6c5627506c14f58cb8f6a6926aa808 | d6022f8cfebfddf2d08ab2d300a41b61f3349933 | refs/heads/main | 2023-09-02T08:43:48.241198 | 2023-08-19T07:28:12 | 2023-08-19T07:28:12 | 23,812,315 | 1,506 | 421 | Apache-2.0 | 2023-09-04T08:24:53 | 2014-09-08T23:29:28 | Python | UTF-8 | Python | false | false | 5,652 | py | systemd_journal.py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""Tests for the Systemd Journal parser."""
import unittest
from plaso.containers import warnings
from plaso.parsers import systemd_journal
from tests.parsers import test_lib
class SystemdJournalParserTest(test_lib.ParserTestCase):
"""Tests for the Systemd Journal p... |
0314bd661b49af8ecf559d27c57e29d5439cf7c2 | df2dbd755cc34689d735db2dcc635378307afc19 | /日常自动化工具/win32api/key_press.py | f35d263eb26d4365cf7e27156eeb899091c4bd03 | [] | no_license | ywz978020607/History | 0c0c72fccba2189492f0137e3ea2fe83af6b4417 | 6979784ef14dfa97d9dfc4e19b3376ec05e4e1e4 | refs/heads/master | 2023-05-25T17:31:28.875449 | 2023-05-18T08:57:15 | 2023-05-18T08:57:15 | 262,790,307 | 126 | 61 | null | 2020-11-13T16:37:09 | 2020-05-10T13:13:26 | Python | UTF-8 | Python | false | false | 188 | py | key_press.py | import win32api
import win32con
import time
time.sleep(5)
win32api.keybd_event(0x41,0,0,0) # enter
win32api.keybd_event(0x41,0,win32con.KEYEVENTF_KEYUP,0) #释放按键
print("ok") |
862055a16f5c4eaa61c1a97fe3955617feb52152 | 3f7028cc89a79582266a19acbde0d6b066a568de | /test/extensions/filters/network/thrift_proxy/driver/server.py | 5741a98bbf0c8b9e3392cd9e12da227654c61c11 | [
"Apache-2.0",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | envoyproxy/envoy | 882d3c7f316bf755889fb628bee514bb2f6f66f0 | 72f129d273fa32f49581db3abbaf4b62e3e3703c | refs/heads/main | 2023-08-31T09:20:01.278000 | 2023-08-31T08:58:36 | 2023-08-31T08:58:36 | 65,214,191 | 21,404 | 4,756 | Apache-2.0 | 2023-09-14T21:56:37 | 2016-08-08T15:07:24 | C++ | UTF-8 | Python | false | false | 7,086 | py | server.py | #!/usr/bin/env python
import argparse
import logging
import sys
from generated.example import Example
from generated.example.ttypes import (Result, TheWorks, AppException)
from thrift import Thrift, TMultiplexedProcessor
from thrift.protocol import TBinaryProtocol, TCompactProtocol, TJSONProtocol
from thrift.server ... |
a216a7f4faaf25409c9d57d6938bdf69d91bfd05 | 140e90b1cdc47650cc88637d79e122d0695a8105 | /pyrender/font.py | 5ac530d7b949f50314a0d9cf5d744bedcace0571 | [
"MIT"
] | permissive | mmatl/pyrender | 2d7a92cab4e134a65f98990549d98ef3c63aa668 | a59963ef890891656fd17c90e12d663233dcaa99 | refs/heads/master | 2023-07-10T17:31:50.861253 | 2022-04-30T19:40:43 | 2022-04-30T19:40:43 | 166,606,982 | 1,166 | 224 | MIT | 2023-04-06T08:09:08 | 2019-01-20T00:11:18 | Python | UTF-8 | Python | false | false | 8,225 | py | font.py | """Font texture loader and processor.
Author: Matthew Matl
"""
import freetype
import numpy as np
import os
import OpenGL
from OpenGL.GL import *
from .constants import TextAlign, FLOAT_SZ
from .texture import Texture
from .sampler import Sampler
class FontCache(object):
"""A cache for fonts.
"""
def ... |
264169d936e993af74b52d178786c3046a64c1ca | 86092e7c45eeb677576edab301cebb592a8baa31 | /analyze-dns-nsid.py | d46e5db122a06dccbb3fd3df1a776cc5f1d9594a | [] | no_license | RIPE-Atlas-Community/ripe-atlas-community-contrib | 73b745aec4845452ba7eaa30932e7bee934171e8 | 2fb7d7e8143ee3884d0ad556612ba759ee414955 | refs/heads/master | 2023-06-08T18:13:14.845089 | 2023-06-06T14:08:08 | 2023-06-06T14:08:08 | 8,092,696 | 144 | 31 | null | 2021-11-25T14:15:35 | 2013-02-08T11:52:59 | Python | UTF-8 | Python | false | false | 2,674 | py | analyze-dns-nsid.py | #!/usr/bin/env python
""" Python code to analyze RIPE Atlas UDM (User-Defined Measurements)
results. This one is for DNS NSID queries (find the identity of a name
server). It uses a RIPE Atlas JSON file as input or a reference to a
public measurement.
Stephane Bortzmeyer <bortzmeyer@nic.fr>
"""
import json
import sy... |
3b07765f8e6ddf1333145a850f391f6145cf704b | e31f84c20af7be8646f03faf22ac55ad041444a3 | /feature_engine/selection/single_feature_performance.py | 35e95336fb184a8700afeaf77f4863047a181b9b | [
"BSD-3-Clause"
] | permissive | feature-engine/feature_engine | 564aa2f298bb1beb0606bd5d51261b4d1085a8df | 3343305a01d1acfeff846b65d33a5686c6e8c84f | refs/heads/main | 2023-08-07T09:19:24.315277 | 2023-06-08T06:27:45 | 2023-06-08T06:27:45 | 163,630,824 | 874 | 105 | BSD-3-Clause | 2023-09-13T14:02:23 | 2018-12-31T01:47:18 | Python | UTF-8 | Python | false | false | 8,211 | py | single_feature_performance.py | import warnings
from typing import List, Union
import pandas as pd
from sklearn.model_selection import cross_validate
from feature_engine._docstrings.fit_attributes import (
_feature_names_in_docstring,
_n_features_in_docstring,
)
from feature_engine._docstrings.init_parameters.selection import (
_confirm... |
253ea4fc6e865174cfbc94a53897191fdf458b92 | fa1ad2e2ac7e376fc7cb3b3a6e1bb88eed3e80be | /ai/mmdetection/configs/fcos/fcos_r50-caffe_fpn_gn-head-center_1x_coco.py | 9e4eb1d5981761fab8fe0bb876ff7ef243ac31f9 | [
"Apache-2.0",
"BSD-3-Clause",
"MIT"
] | 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 | 146 | py | fcos_r50-caffe_fpn_gn-head-center_1x_coco.py | _base_ = './fcos_r50-caffe_fpn_gn-head_1x_coco.py'
# model settings
model = dict(bbox_head=dict(center_sampling=True, center_sample_radius=1.5))
|
dfecf2a4e9a12348976b9fcf08c7b39dde67ece7 | 5a5bde743ddbcfa28dbd71dbd8fe1835010763df | /functest/func_obj_loader_consistency.py | 468a4bc25c90e48729084dbd0a6c1a523527b934 | [
"MIT",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | lightmetrica/lightmetrica-v3 | fb85230c92dac12e754ca570cd54d45b5b6e457c | 70601dbef13a513df032911d47f790791671a8e0 | refs/heads/master | 2021-10-29T08:13:40.140577 | 2021-10-22T10:50:39 | 2021-10-22T10:50:39 | 189,633,321 | 105 | 14 | NOASSERTION | 2021-10-20T14:34:34 | 2019-05-31T17:27:55 | C++ | UTF-8 | Python | false | false | 2,674 | py | func_obj_loader_consistency.py | # ---
# jupyter:
# jupytext:
# formats: ipynb,py:light
# text_representation:
# extension: .py
# format_name: light
# format_version: '1.5'
# jupytext_version: 1.3.3
# kernelspec:
# display_name: Python 3
# language: python
# name: python3
# ---
# ## Checking consistency... |
b7e191d2a4dd7d36e4d4d5aa675f8a93a28846e4 | 2212a32833776a5d5d2164d8efd11bd18bd3f768 | /tf_agents/train/ppo_learner.py | 2dd1a5ba14e954246b2bf86fcc009899db8b1ead | [
"Apache-2.0"
] | permissive | tensorflow/agents | f39805fb98ef9af712dcaff3ba49e1ac6d42804b | eca1093d3a047e538f17f6ab92ab4d8144284f23 | refs/heads/master | 2023-08-14T04:56:30.774797 | 2023-08-02T17:43:44 | 2023-08-02T17:44:09 | 157,936,206 | 2,755 | 848 | Apache-2.0 | 2023-07-26T02:35:32 | 2018-11-17T00:29:12 | Python | UTF-8 | Python | false | false | 14,808 | py | ppo_learner.py | # coding=utf-8
# Copyright 2020 The TF-Agents 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 la... |
88c35e0742afa10300280d070fd5754cebb38f24 | 2d05050d0ada29f7680b4df20c10bb85b0530e45 | /tests/python/relay/aot/test_aot_create_function_metadata.py | 80137bd23f0c39de4ad5dc1d297ecf513ace516a | [
"Apache-2.0",
"BSD-3-Clause",
"MIT",
"LicenseRef-scancode-unknown-license-reference",
"Unlicense",
"Zlib",
"LLVM-exception",
"BSD-2-Clause"
] | permissive | apache/tvm | 87cb617f9a131fa44e1693303aaddf70e7a4c403 | d75083cd97ede706338ab413dbc964009456d01b | refs/heads/main | 2023-09-04T11:24:26.263032 | 2023-09-04T07:26:00 | 2023-09-04T07:26:00 | 70,746,484 | 4,575 | 1,903 | Apache-2.0 | 2023-09-14T19:06:33 | 2016-10-12T22:20:28 | Python | UTF-8 | Python | false | false | 13,086 | py | test_aot_create_function_metadata.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... |
4a11b6496ff58f2370bccd8605b97ba5f806ad91 | fa1ad2e2ac7e376fc7cb3b3a6e1bb88eed3e80be | /olap/ByConity/tests/testflows/rbac/tests/syntax/revoke_role.py | 0642dd6b0d4e44772e7e66c0fa0b610f7f3fa7cc | [
"Apache-2.0",
"BSD-3-Clause",
"MIT"
] | 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 | 10,114 | py | revoke_role.py | from contextlib import contextmanager
from testflows.core import *
import rbac.helper.errors as errors
from rbac.requirements import *
@TestFeature
@Name("revoke role")
@Args(format_description=False)
def feature(self, node="clickhouse1"):
"""Check revoke query syntax.
```sql
REVOKE [ON CLUSTER cluster_... |
6f2112ec15539460a1bf1490e719f3ef54457d1c | 578db86c51d44ebddd0dc7b1738985b3dc69eb74 | /corehq/apps/sms/migrations/0018_check_for_phone_number_migration.py | b62e6f3906bfb326c08d29c28a9c610d3276cd5c | [
"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 | 396 | py | 0018_check_for_phone_number_migration.py | from django.db import migrations
from corehq.apps.sms.migration_status import (
assert_phone_number_migration_complete,
)
def noop(*args, **kwargs):
pass
class Migration(migrations.Migration):
dependencies = [
('sms', '0017_update_phoneblacklist'),
]
operations = {
migrations.... |
2189589f1cb1e2fea85c1540bd69de59979f4d62 | a7a9b9341aeb04e3c01981f6d451f52f891a4d3e | /models/resnet_small_V3.py | 0a88c64216db3e6a2c8142c7e5a82a9e9137bd29 | [] | no_license | he-y/filter-pruning-geometric-median | 500ee7485adaddd9e356f6f67cd9ea27fcd1e5da | 44fbab47b246e8b11bc8008a7bebfe06c0e391b8 | refs/heads/master | 2023-08-08T16:33:18.136385 | 2023-08-05T03:15:18 | 2023-08-05T03:15:18 | 177,763,869 | 547 | 123 | null | 2023-08-31T06:50:25 | 2019-03-26T10:17:15 | Python | UTF-8 | Python | false | false | 5,825 | py | resnet_small_V3.py | import torch
import torch.nn as nn
import torch.nn.functional as F
from torch.nn import init
#from .res_utils import DownsampleA, DownsampleC, DownsampleD
import math
class DownsampleA(nn.Module):
def __init__(self, nIn, nOut, stride):
super(DownsampleA, self).__init__()
self.avg = nn.AvgPool2d(kernel_si... |
d9341243e0c7abaa1c70d22d7815c7ab4c365abe | 8212e68f7c960ff43336afcb142e6a8f5a4dae0a | /libforget/json.py | 488581e73131dbdbb30ae29dac68559360dcad6a | [
"ISC"
] | permissive | codl/forget | 7997da98897c9fe949d6266cd74b7826b0351d05 | 50ba3dfaa0082b49bfba726d8f13cbb396fd44f8 | refs/heads/master | 2022-12-09T18:39:03.936811 | 2022-09-16T19:48:05 | 2022-09-16T19:48:05 | 99,214,821 | 166 | 17 | ISC | 2022-11-22T10:10:35 | 2017-08-03T09:21:08 | Python | UTF-8 | Python | false | false | 735 | py | json.py | from json import dumps
def account(acc):
last_delete = None
next_delete = None
if acc.last_delete:
last_delete = acc.last_delete.isoformat()
if acc.next_delete:
next_delete = acc.next_delete.isoformat()
return dumps(dict(
post_count=acc.post_count(),
eligibl... |
91e5b18a00232d6188b11216ea7ebda624643969 | 6c1fb34e6220673f38c4bedd752caf13e1323aab | /Code/novelty-dates.py | b674dd8f4a235974853c8f8adc4189784a686332 | [] | no_license | rozim/ChessData | 9b7112b519bbf88540ed221b516222284b8938f9 | 0b6da41b8ae357c5c72c93ad8e20b873cb556571 | refs/heads/master | 2023-06-11T03:15:13.799114 | 2023-05-30T05:52:10 | 2023-05-30T05:52:10 | 7,515,413 | 153 | 31 | null | null | null | null | UTF-8 | Python | false | false | 3,633 | py | novelty-dates.py | # Generate first date seen of positions.
import sys
import os
import chess
import chess.pgn
from pprint import pprint
import time
import collections
from util import *
import resource
import sqlitedict
import json
from absl import app
from absl import flags
FLAGS = flags.FLAGS
flags.DEFINE_integer('max_ply', 60, 'E... |
a7ca4ed536c44f433051e7894bdeb9c61ddd1974 | e7fdf97207866226b2a85bf23da2f8553e9a57cf | /setup.py | d5a033d39c07c11a5c3e4fdf45222e8f2fe93134 | [] | no_license | avibrazil/iOSbackup | 3f31cc6fd2d4df11efccc98b9247e039c3e728ed | 76666902d69c1758a673a9142e45cf8d6ed40210 | refs/heads/master | 2023-07-16T09:46:31.093550 | 2022-10-16T01:03:54 | 2022-10-16T01:03:54 | 231,742,810 | 169 | 29 | null | 2023-06-27T01:21:43 | 2020-01-04T10:07:37 | Python | UTF-8 | Python | false | false | 1,683 | py | setup.py | import setuptools
from iOSbackup import __version__
with open("README.md", "r", encoding="utf-8") as fh:
long_description = fh.read()
setuptools.setup(
name="iOSbackup",
version=__version__,
author="Avi Alkalay",
author_email="avibrazil@gmail.com",
description="Reads and extracts files from pa... |
a2bf331c2ae0a8db4777bef72f56eab1a6515e32 | 095e5e86c931af6553996b0a128c07d94b38cbca | /test/test_number.py | 2b92924fb839f7206c2f55a406850b3efb967e50 | [
"MIT"
] | permissive | hpyproject/hpy | 1dc9e5e855fa006b1728703c5925addbb43cf792 | 8310a762d78e3412464b1869959a77da013e6307 | refs/heads/master | 2023-09-03T21:18:17.273371 | 2023-07-24T07:26:14 | 2023-07-24T07:26:14 | 196,559,763 | 681 | 41 | MIT | 2023-07-24T07:26:16 | 2019-07-12T10:27:56 | Python | UTF-8 | Python | false | false | 8,440 | py | test_number.py | from .support import HPyTest
class TestNumber(HPyTest):
def test_bool_from_bool_and_long(self):
import pytest
mod = self.make_module("""
HPyDef_METH(from_bool, "from_bool", HPyFunc_O)
static HPy from_bool_impl(HPyContext *ctx, HPy self, HPy arg)
{
... |
d1a0e81c16d7b8a0e0f583d152b4c3787e1d2f48 | fdb9bdc6c4ab2f14ba71e544493706d5e275899f | /fhir/resources/STU3/implementationguide.py | 921b56c28868b3e7fbbfcc7a6a0dcce50cb62dd5 | [
"BSD-3-Clause"
] | permissive | nazrulworld/fhir.resources | 6ae8aea8180c611b0c5050759c6dcdf63e4cb061 | 1fd6ea476b27b3fcb8c4ef8f23bc51cf161e69e3 | refs/heads/main | 2023-08-30T18:27:27.277249 | 2023-07-03T19:57:06 | 2023-07-03T19:57:06 | 165,297,877 | 256 | 83 | NOASSERTION | 2023-08-24T15:34:05 | 2019-01-11T19:26:41 | Python | UTF-8 | Python | false | false | 46,599 | py | implementationguide.py | # -*- coding: utf-8 -*-
"""
Profile: http://hl7.org/fhir/StructureDefinition/ImplementationGuide
Release: STU3
Version: 3.0.2
Revision: 11917
Last updated: 2019-10-24T11:53:00+11:00
"""
import typing
from pydantic import Field, root_validator
from pydantic.error_wrappers import ErrorWrapper, ValidationError
from pydan... |
9f1417770b538b6d7f3b4085cf1093ae0dd6d5a4 | c268dcf432f3b7171be6eb307aafbe1bd173285a | /reddit2telegram/channels/~inactive/r_linux/app.py | aa800ceee1d2fcc8a5f65f2c735cfd3f68280292 | [
"MIT"
] | permissive | Fillll/reddit2telegram | a7162da2cc08c81bcc8078ea4160d4ee07461fee | 5d8ee3097e716734d55a72f5a16ce3d7467e2ed7 | refs/heads/master | 2023-08-09T10:34:16.163262 | 2023-07-30T18:36:19 | 2023-07-30T18:36:19 | 67,726,018 | 258 | 205 | MIT | 2023-09-07T02:36:36 | 2016-09-08T17:39:46 | Python | UTF-8 | Python | false | false | 133 | py | app.py | #encoding:utf-8
subreddit = 'linux'
t_channel = '@r_linux'
def send_post(submission, r2t):
return r2t.send_simple(submission)
|
b5f970f4dddce31f24458b797e8f3b67a486e828 | a3d6556180e74af7b555f8d47d3fea55b94bcbda | /third_party/wpt_tools/wpt/tools/third_party/html5lib/html5lib/treewalkers/__init__.py | b2d3aac3137f5d374ec35dd4bbfdb5e732fc51f0 | [
"BSD-3-Clause",
"GPL-1.0-or-later",
"MIT",
"LGPL-2.0-or-later",
"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 | 5,719 | py | __init__.py | """A collection of modules for iterating through different kinds of
tree, generating tokens identical to those produced by the tokenizer
module.
To create a tree walker for a new type of tree, you need to
implement a tree walker object (called TreeWalker by convention) that
implements a 'serialize' method which takes ... |
a5e73235197eb021e62f2343a9669f508ad24ac7 | 8fb93fda613102df17c6c3788e9214713b94c4fd | /demos/demo_mustache.py | 0177c796c028d756f800fa7b2c90bb9faaa67f7c | [] | no_license | j2labs/brubeck | b2b314dd1f973399966b0cb602d21d0b35c258ea | 0e42200126155973b1403a2c073768a3345329a6 | refs/heads/master | 2023-09-05T17:34:04.684344 | 2016-06-01T02:46:31 | 2016-06-01T02:46:31 | 1,339,333 | 320 | 54 | null | 2020-03-18T13:18:21 | 2011-02-07T20:39:12 | Python | UTF-8 | Python | false | false | 643 | py | demo_mustache.py | #!/usr/bin/env python
from brubeck.request_handling import Brubeck
from brubeck.templating import MustacheRendering, load_mustache_env
from brubeck.connections import Mongrel2Connection
class DemoHandler(MustacheRendering):
def get(self):
name = self.get_argument('name', 'dude')
context = {
... |
53020e4aa9c8cc1c278e8277df4f6ce85784141a | 894b88c702e1b3cb4fe394081ca2216051ebeb3e | /benchmark/pyfastx_fasta_sequence_iterate_without_index.py | f68e5a3c5773afc6cb33770e66d35920f3c9371c | [
"MIT"
] | permissive | lmdu/pyfastx | 3cdb7c60fc26a639918496a643ac6a71bf390f69 | b6f7b9aba6869df899135944922d90635c78f669 | refs/heads/master | 2023-08-11T18:28:17.746734 | 2023-04-18T15:43:49 | 2023-04-18T15:43:49 | 176,523,301 | 203 | 20 | MIT | 2023-08-21T14:39:47 | 2019-03-19T13:55:46 | C | UTF-8 | Python | false | false | 97 | py | pyfastx_fasta_sequence_iterate_without_index.py | import sys
import pyfastx
for name, seq in pyfastx.Fasta(sys.argv[1], build_index=False):
pass
|
10ce29ef164d38160c224c1b7a08ee4daec5b6d4 | 15eb68a30bd1bcd8c153ce3c8774e09ef3f4135d | /TrainingExtensions/tensorflow/src/python/aimet_tensorflow/keras/adaround/adaround_wrapper.py | e390150d6e66509fa628d06221c1240d2caf799f | [
"BSD-3-Clause"
] | permissive | quic/aimet | 77a984af68fc3c46d98c707d18a14c95a3efdacf | 5a406e657082b6a4f6e4bf48f0e46e085cb1e351 | refs/heads/develop | 2023-08-21T12:51:10.500286 | 2023-08-18T18:35:39 | 2023-08-18T18:35:39 | 257,688,216 | 1,676 | 339 | NOASSERTION | 2023-09-08T06:59:39 | 2020-04-21T18:57:10 | Python | UTF-8 | Python | false | false | 12,317 | py | adaround_wrapper.py | # /usr/bin/env python3.6
# -*- mode: python -*-
# =============================================================================
# @@-COPYRIGHT-START-@@
#
# Copyright (c) 2022, Qualcomm Innovation Center, Inc. All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification,... |
409187fadb21b1a86a0fd2eb973cba33ce42d49d | 83963c19fd120dcc7498b726cc56de7fbb900a47 | /tests/test_photokit.py | 7f606319b6ffa0c13ace9b569e4b77498e467ccc | [
"MIT",
"LicenseRef-scancode-public-domain",
"CC-BY-2.0"
] | permissive | RhetTbull/osxphotos | 55ad4f1257bcd26bb3fbadde6ce5dd59c0917354 | 2cb5a4d18a27be6ccf68f5f35abd39418d238016 | refs/heads/main | 2023-09-02T18:11:06.227191 | 2023-09-02T16:06:51 | 2023-09-02T16:06:51 | 192,160,985 | 1,287 | 93 | MIT | 2023-09-14T14:10:58 | 2019-06-16T07:07:49 | Python | UTF-8 | Python | false | false | 13,434 | py | test_photokit.py | """ test photokit.py methods """
import os
import pathlib
import tempfile
import pytest
from osxphotos.platform import is_macos
if is_macos:
from osxphotos.photokit import (
PHOTOS_VERSION_CURRENT,
PHOTOS_VERSION_ORIGINAL,
PHOTOS_VERSION_UNADJUSTED,
LivePhotoAsset,
PhotoA... |
822f5b3fbfe890b5369a500f0849289c239d7927 | 5eff7a36d9a9917dce9111f0c3074375fe6f7656 | /lib/mesa/src/compiler/glsl/tests/lower_precision_test.py | 999c6267af338a6d54a6f30679e9829bf938a023 | [] | no_license | openbsd/xenocara | cb392d02ebba06f6ff7d826fd8a89aa3b8401779 | a012b5de33ea0b977095d77316a521195b26cc6b | refs/heads/master | 2023-08-25T12:16:58.862008 | 2023-08-12T16:16:25 | 2023-08-12T16:16:25 | 66,967,384 | 177 | 66 | null | 2023-07-22T18:12:37 | 2016-08-30T18:36:01 | C | UTF-8 | Python | false | false | 56,024 | py | lower_precision_test.py | # encoding=utf-8
# Copyright © 2019 Google
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without limitation the rights
# to use, copy, modify, merge, publish... |
56f5b081680326bcb97e681f7a0cf5bd56540920 | 96dcea595e7c16cec07b3f649afd65f3660a0bad | /homeassistant/components/home_connect/light.py | 17dc842358f963298d10f5463c13208e5afe4c4e | [
"Apache-2.0"
] | permissive | home-assistant/core | 3455eac2e9d925c92d30178643b1aaccf3a6484f | 80caeafcb5b6e2f9da192d0ea6dd1a5b8244b743 | refs/heads/dev | 2023-08-31T15:41:06.299469 | 2023-08-31T14:50:53 | 2023-08-31T14:50:53 | 12,888,993 | 35,501 | 20,617 | Apache-2.0 | 2023-09-14T21:50:15 | 2013-09-17T07:29:48 | Python | UTF-8 | Python | false | false | 7,796 | py | light.py | """Provides a light for Home Connect."""
import logging
from math import ceil
from typing import Any
from homeconnect.api import HomeConnectError
from homeassistant.components.light import (
ATTR_BRIGHTNESS,
ATTR_HS_COLOR,
ColorMode,
LightEntity,
)
from homeassistant.config_entries import ConfigEntry
... |
4bda781947961f5eafe7d3e01be1e44db187bf0a | fdbb74a95924e2677466614f6ab6e2bb13b2a95a | /third_party/python/Lib/test/test_poplib.py | 889d9dae08bf447f966cde8fa865fdee3a129470 | [
"Python-2.0",
"GPL-1.0-or-later",
"LicenseRef-scancode-python-cwi",
"LicenseRef-scancode-free-unknown",
"LicenseRef-scancode-other-copyleft",
"ISC"
] | permissive | jart/cosmopolitan | fb11b5658939023977060a7c6c71a74093d9cb44 | 0d748ad58e1063dd1f8560f18a0c75293b9415b7 | refs/heads/master | 2023-09-06T09:17:29.303607 | 2023-09-02T03:49:13 | 2023-09-02T03:50:18 | 272,457,606 | 11,887 | 435 | ISC | 2023-09-14T17:47:58 | 2020-06-15T14:16:13 | C | UTF-8 | Python | false | false | 16,978 | py | test_poplib.py | """Test script for poplib module."""
# Modified by Giampaolo Rodola' to give poplib.POP3 and poplib.POP3_SSL
# a real test suite
import poplib
import asyncore
import asynchat
import socket
import os
import errno
from unittest import TestCase, skipUnless
from test import support as test_support
threading = test_suppo... |
bfaf46b9f78483181d939c39cc117fbc512809be | be5789fb62a876a192759c3c683bf93829845d43 | /setup.py | f72056e829f271ea00336ce08152308cdf5bbcfa | [
"Apache-2.0"
] | permissive | onnx/onnx-mxnet | 6d09a0cbb342e3d65ef3fe3d00ca8898a43bb87b | b602d75c5a01f5ed8f68b11150a06374f058a86b | refs/heads/master | 2023-06-10T08:57:44.568011 | 2019-03-08T17:57:56 | 2019-03-08T17:57:56 | 109,312,982 | 121 | 32 | Apache-2.0 | 2018-06-26T19:02:49 | 2017-11-02T20:02:20 | Python | UTF-8 | Python | false | false | 1,409 | py | setup.py | # Copyright 2017 Amazon.com, Inc. or its affiliates. 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.
# A copy of the License is located at
# http://www.apache.org/licenses/LICENSE-2.0
# or in the "license" file... |
bdb750409bed7f2d7c0347fc964db86e3d4e00d5 | 8246092010e656920e7199f889f9cbf54b83a729 | /pycoin/symbols/btdx.py | bb5cb4ebbd3a7ac66aec905957c5442d78ca33d4 | [
"MIT"
] | permissive | richardkiss/pycoin | 5717411a11445773ac922c1d1c1b7dbe4835cd77 | b41ad7d02e52d9869a8c9f0dbd7d3b2b496c98c0 | refs/heads/main | 2023-08-07T12:14:04.974934 | 2023-04-18T02:27:15 | 2023-04-18T02:27:15 | 10,917,677 | 1,306 | 489 | MIT | 2023-06-03T23:24:50 | 2013-06-24T19:17:52 | Python | UTF-8 | Python | false | false | 455 | py | btdx.py | from pycoin.networks.bitcoinish import create_bitcoinish_network
network = create_bitcoinish_network(
symbol="BTDX", network_name="Bitcloud", subnet_name="mainnet",
wif_prefix_hex="99", sec_prefix="BTDXSEC:", address_prefix_hex="19", pay_to_script_prefix_hex="05",
bip32_prv_prefix_hex="0488ADE4", bip32_pub... |
8405a646971434f3d064a5c9b861471cc52889f9 | c3542b98289c1ba85f62d08b5edbe1a3c18f3c80 | /oneeven.py | 0c0a8c5253062245ac3717a5e7067c09c00e44f4 | [
"LicenseRef-scancode-unknown",
"GPL-1.0-or-later",
"MIT"
] | permissive | geekcomputers/Python | 16674289843f89f6cc287097f033b928f4181d84 | bc55e2a2c5a98f4c7597e901a04457dfb9d5df0c | refs/heads/master | 2023-08-18T21:04:18.163283 | 2023-08-17T17:38:16 | 2023-08-17T17:38:16 | 2,881,789 | 32,418 | 15,024 | MIT | 2023-09-02T18:40:33 | 2011-11-30T09:04:08 | Python | UTF-8 | Python | false | false | 233 | py | oneeven.py | # Python Program to Print Even Numbers from 1 to N
maximum = int(input(" Please Enter the Maximum Value : "))
number = 1
while number <= maximum:
if number % 2 == 0:
print("{0}".format(number))
number = number + 1
|
a30855d8fa51950c8e851a76f197776b438a33db | 6d7e44292e34bbc5e8cbc0eb9e9b264c0b498c5d | /test/conftest.py | e3708c0a4a5cdac5b834d14dd1d86e1168c6b53b | [
"Python-2.0",
"MIT"
] | permissive | smicallef/spiderfoot | 69585266dad860d3230d3ce7b801e34eeb359f90 | 6e8e6a8277ea251fdd62a0946268f5dfe9162817 | refs/heads/master | 2023-08-28T09:40:10.136780 | 2023-08-18T05:47:39 | 2023-08-18T05:47:39 | 4,165,675 | 10,620 | 2,130 | MIT | 2023-09-13T08:18:31 | 2012-04-28T07:10:13 | Python | UTF-8 | Python | false | false | 1,738 | py | conftest.py | import pytest
from spiderfoot import SpiderFootHelpers
@pytest.fixture(autouse=True)
def default_options(request):
request.cls.default_options = {
'_debug': False,
'__logging': True, # Logging in general
'__outputfilter': None, # Event types to filter from modules' output
'_usera... |
d6b1b02541082aa4c5ff348fe20332e3b700e2e1 | de2d6e6cbb65729255f288f3b3bf1c065c538573 | /running_modes/reinforcement_learning/logging/console_message.py | 7d2188db89c9907a12ebfa5343bdc96119dfc5ce | [
"LicenseRef-scancode-proprietary-license",
"Apache-2.0"
] | permissive | MolecularAI/Reinvent | 2edf7736b77107f3c04a6ba7ad8b8a3b39691f31 | b7324d222a49d18b08335a01649abdb0ac66a734 | refs/heads/master | 2022-08-09T00:09:11.752865 | 2022-06-01T15:17:01 | 2022-06-01T15:17:01 | 248,080,601 | 306 | 110 | Apache-2.0 | 2023-03-05T15:55:52 | 2020-03-17T21:54:26 | Python | UTF-8 | Python | false | false | 2,333 | py | console_message.py | import time
from reinvent_scoring.scoring.score_summary import FinalSummary
from reinvent_chemistry.logging import fraction_valid_smiles
class ConsoleMessage:
def create(self, start_time, n_steps, step, smiles,
mean_score, score_summary: FinalSummary, score,
agent_likelihood, prior... |
7740d30f3a3be38e0f0dcab7035bacafa8128c0a | 518bf342bc4138982af3e2724e75f1d9ca3ba56c | /solutions/2337. Move Pieces to Obtain a String/2337.py | eac7e66dd1225a84f490eadb551a4281f254632e | [
"MIT"
] | permissive | walkccc/LeetCode | dae85af7cc689882a84ee5011f0a13a19ad97f18 | a27be41c174565d365cbfe785f0633f634a01b2a | refs/heads/main | 2023-08-28T01:32:43.384999 | 2023-08-20T19:00:45 | 2023-08-20T19:00:45 | 172,231,974 | 692 | 302 | MIT | 2023-08-13T14:48:42 | 2019-02-23T15:46:23 | C++ | UTF-8 | Python | false | false | 555 | py | 2337.py | class Solution:
def canChange(self, start: str, target: str) -> bool:
n = len(start)
i = 0 # start's index
j = 0 # target's index
while i <= n and j <= n:
while i < n and start[i] == '_':
i += 1
while j < n and target[j] == '_':
j += 1
if i == n or j == n:
... |
ae2ed89cf467047139b7e08933604a797f066458 | 8ca19f1a31070738b376c0370c4bebf6b7efcb43 | /examples/insights/list_used.py | cf4e05d4d11b50693b23d36f6f4ee0c0cac306ae | [
"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 | 455 | py | list_used.py | """
Calculate and list the documents that a user has viewed or modified.
https://learn.microsoft.com/en-us/graph/api/insights-list-used?view=graph-rest-1.0&tabs=http
"""
import json
from office365.graph_client import GraphClient
from tests.graph_case import acquire_token_by_username_password
client = GraphClient(acq... |
8e779ef768250e028df8146b8a825841978b2824 | 7c1f157acafec729d060847469a5cf36cd88e792 | /cords/selectionstrategies/SL/weightedrandomexplorationstrategy.py | d2303e6bfe1789faeecd6a087eb9d78703eca73e | [
"MIT"
] | permissive | decile-team/cords | 025415cc7b4577e01acba312908b9e12da27da9b | 8d10c7f5d96e071f98c20e4e9ff4c41c2c4ea2af | refs/heads/main | 2023-05-25T01:57:51.429546 | 2023-05-24T19:46:54 | 2023-05-24T19:46:54 | 330,041,216 | 289 | 54 | MIT | 2023-05-24T17:25:40 | 2021-01-15T23:02:58 | Jupyter Notebook | UTF-8 | Python | false | false | 4,894 | py | weightedrandomexplorationstrategy.py | import numpy as np
import torch, time
import pickle
from torch.nn import Softmax
import math
def pickle2dict(file_name, key):
"""
Load dictionary from pickle file
"""
with open(file_name, "rb") as fIn:
stored_data = pickle.load(fIn)
value = stored_data[key]
return value
def taylo... |
722d3c8b5aff4abb19c42913c090d4dfd880a97d | 1f399edf85d995443d01f66d77eca0723886d0ff | /misc/config_tools/scenario_config/upgrader.py | 3788f328315aab5b8c83708e729a005153617873 | [
"BSD-3-Clause"
] | permissive | projectacrn/acrn-hypervisor | f9c5864d54929a5d2fa36b5e78c08f19b46b8f98 | 390740aa1b1e9d62c51f8e3afa0c29e07e43fa23 | refs/heads/master | 2023-08-18T05:07:01.310327 | 2023-08-11T07:49:36 | 2023-08-16T13:20:27 | 123,983,554 | 1,059 | 686 | BSD-3-Clause | 2023-09-14T09:51:10 | 2018-03-05T21:52:25 | C | UTF-8 | Python | false | false | 47,353 | py | upgrader.py | #!/usr/bin/env python3
#
# Copyright (C) 2022 Intel Corporation.
#
# SPDX-License-Identifier: BSD-3-Clause
#
import os
import argparse, logging
import re
from functools import lru_cache, partialmethod
from collections import defaultdict, namedtuple
import lxml.etree as etree
from scenario_transformer import ScenarioT... |
e6c1facd802bfb0181a17b0a71104123ac50e64b | 9a2dfbb97f375ed497e5d033344641a04a2710d9 | /sdk/python/touca/__init__.py | e1fc11ae549a72c155099d9afc09480773e66d57 | [
"Apache-2.0",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | trytouca/trytouca | 50eca4164635c293a891dcdd2e1836cb60627274 | f69d7314dd861cd25a85d02739af5d01b4846916 | refs/heads/main | 2023-06-07T05:52:25.159264 | 2023-03-30T21:20:05 | 2023-03-30T21:20:05 | 468,843,509 | 425 | 27 | Apache-2.0 | 2023-09-14T06:50:11 | 2022-03-11T17:32:38 | TypeScript | UTF-8 | Python | false | false | 2,668 | py | __init__.py | # Copyright 2023 Touca, Inc. Subject to Apache-2.0 License.
"""
Entry-point to the Touca SDK for Python.
You can install this sdk via ``pip install touca`` and import it in your code via::
import touca
Alternatively, you can import individual functions which may be useful in rare
cases if and when you want to c... |
cd4fe5f316b3a2d28023ff37a9ec649a14d0d0d1 | b2a0015525eb65d143891c911a30f9f6c30f246a | /setup.py | dc634f57f72f9dc16a8bf40264a7b1e1b810e2d4 | [
"MIT"
] | permissive | qhgz2013/anime-face-detector | 65a381848ff89293af422ed16aaa18ebb1c7101a | 94d75475a17f48c7636345cd316c2eeae242a58e | refs/heads/master | 2022-03-08T09:33:30.513973 | 2022-02-21T11:48:33 | 2022-02-21T11:48:33 | 143,052,594 | 240 | 37 | MIT | 2022-02-21T11:48:34 | 2018-07-31T18:31:29 | Python | UTF-8 | Python | false | false | 1,139 | py | setup.py | # --------------------------------------------------------
# Fast R-CNN
# Copyright (c) 2015 Microsoft
# Licensed under The MIT License [see LICENSE for details]
# Written by Ross Girshick
# --------------------------------------------------------
import os
from os.path import join as pjoin
import numpy as np
from dis... |
43bf996ba4d67f087832cdf5f210b5408e77c337 | bed3ac926beac0f4e0293303d7b2a6031ee476c9 | /Modules/Filtering/DisplacementField/wrapping/test/itkDisplacementFieldTransformTest.py | 146f7360d9ab0616d0cb626e18cfe55a33d83307 | [
"IJG",
"Zlib",
"LicenseRef-scancode-proprietary-license",
"SMLNJ",
"BSD-3-Clause",
"BSD-4.3TAHOE",
"LicenseRef-scancode-free-unknown",
"Spencer-86",
"LicenseRef-scancode-llnl",
"FSFUL",
"Libpng",
"libtiff",
"LicenseRef-scancode-warranty-disclaimer",
"LicenseRef-scancode-other-permissive",
... | permissive | InsightSoftwareConsortium/ITK | ed9dbbc5b8b3f7511f007c0fc0eebb3ad37b88eb | 3eb8fd7cdfbc5ac2d0c2e5e776848a4cbab3d7e1 | refs/heads/master | 2023-08-31T17:21:47.754304 | 2023-08-31T00:58:51 | 2023-08-31T14:12:21 | 800,928 | 1,229 | 656 | Apache-2.0 | 2023-09-14T17:54:00 | 2010-07-27T15:48:04 | C++ | UTF-8 | Python | false | false | 1,934 | py | itkDisplacementFieldTransformTest.py | # ==========================================================================
#
# Copyright NumFOCUS
#
# 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... |
0397e692e51cbb40c012c333ecc631b31a402321 | 1b0804b390ce6c9bc52359bf894aee29b7545de1 | /demo/wildcard.py | 926e43a51ebfb6010f0ac1d2a1f360042e620a9c | [
"Apache-2.0"
] | permissive | iogf/crocs | b8ebd76311292a19a0e78d85cdcd0164913eb7ba | 83c9b27d20b26787a9f76b9a34cd19944c295657 | refs/heads/master | 2022-07-03T09:45:14.526745 | 2022-01-23T00:06:55 | 2022-01-23T00:06:55 | 96,660,373 | 565 | 29 | null | 2017-08-03T20:37:37 | 2017-07-09T04:11:37 | Python | UTF-8 | Python | false | false | 82 | py | wildcard.py | from crocs.regex import Pattern, X
e = Pattern('a', X(), 'b')
e.test()
e.hits()
|
9171fe936c20bdbdddbc7aa76086715ad089147e | bb33e6be8316f35decbb2b81badf2b6dcf7df515 | /source/res/scripts/client/gui/Scaleform/daapi/view/bootcamp/BCBattleResult.py | 02989fb3a56aa28020c7a9456cd327faed4b052c | [] | no_license | StranikS-Scan/WorldOfTanks-Decompiled | 999c9567de38c32c760ab72c21c00ea7bc20990c | d2fe9c195825ececc728e87a02983908b7ea9199 | refs/heads/1.18 | 2023-08-25T17:39:27.718097 | 2022-09-22T06:49:44 | 2022-09-22T06:49:44 | 148,696,315 | 103 | 39 | null | 2022-09-14T17:50:03 | 2018-09-13T20:49:11 | Python | UTF-8 | Python | false | false | 6,607 | py | BCBattleResult.py | # Python bytecode 2.7 (decompiled from Python 2.7)
# Embedded file name: scripts/client/gui/Scaleform/daapi/view/bootcamp/BCBattleResult.py
import BigWorld
from CurrentVehicle import g_currentVehicle
from gui.Scaleform.Waiting import Waiting
from gui.Scaleform.daapi.view.meta.BCBattleResultMeta import BCBattleResultMet... |
aeefd84886a4c7830526a73274204cac27e9e9c1 | ea910d9946ff96f44bf8895508d053f3075f7c3a | /dist/bbct/build.py | a650bed3af35038ce45594a1c1255bc2673097f6 | [
"BSD-2-Clause",
"GPL-1.0-or-later",
"MIT",
"GPL-3.0-only",
"GPL-2.0-only",
"LicenseRef-scancode-public-domain"
] | permissive | davidgiven/cowgol | 290e4ba4e6e87b4619a5f69c0c156145f31cee88 | ec33ae1293df3937c6397575a0f7defb5e3b4a4d | refs/heads/master | 2023-07-13T20:31:01.261973 | 2023-03-06T19:06:34 | 2023-03-06T19:06:34 | 93,265,830 | 180 | 29 | BSD-2-Clause | 2023-03-05T19:29:03 | 2017-06-03T18:12:02 | C | UTF-8 | Python | false | false | 1,940 | py | build.py | from build.ab2 import export, Rule, Target, normalrule
from tools.build import tocpm, mkdfs
@Rule
def bbcify(self, name, src: Target = None):
normalrule(
replaces=self,
ins=[src],
outs=[self.localname + ".txt"],
commands=[
r"""sed -e 's/include "\(.*\)\.coh"/include "h.... |
fa9a439c9a6a5e22c9adca425adef475e4e114b7 | 5770a3fc8bd224d926d4aff5b7d8f1863f145cab | /quarkchain/cluster/subscription.py | 11b6c84a749d648f3b467374aeeb675124730978 | [
"MIT"
] | permissive | QuarkChain/pyquarkchain | d06a59d630fd0c4a07e1c10548ba044329da95ba | 2068153c9386a1eacb5eccb8cf93d98f87537203 | refs/heads/master | 2023-02-27T14:16:07.419575 | 2022-04-18T20:35:59 | 2022-04-18T20:35:59 | 143,354,339 | 253 | 133 | MIT | 2023-02-07T21:54:01 | 2018-08-02T23:28:47 | Python | UTF-8 | Python | false | false | 3,764 | py | subscription.py | import asyncio
import json
from typing import List, Dict, Tuple, Optional, Callable
from jsonrpcserver.exceptions import InvalidParams
from websockets import WebSocketServerProtocol
from quarkchain.core import MinorBlock
SUB_NEW_HEADS = "newHeads"
SUB_NEW_PENDING_TX = "newPendingTransactions"
SUB_LOGS = "logs"
SUB_S... |
d2dddb54f5d04fef324abf2ae628b52aef3452fe | 71b8b60c5627ace1bbda39f679f93f60b55543ca | /tensorflow_federated/examples/program/program_logic.py | e3f0801aa97b45d649d11441db31549940359fcb | [
"Apache-2.0"
] | permissive | tensorflow/federated | ff94b63e9f4af448795bae77cee5b627dcae9051 | ad4bca66f4b483e09d8396e9948630813a343d27 | refs/heads/main | 2023-08-31T11:46:28.559047 | 2023-08-31T02:04:38 | 2023-08-31T02:09:59 | 161,556,784 | 2,297 | 631 | Apache-2.0 | 2023-09-13T22:54:14 | 2018-12-12T23:15:35 | Python | UTF-8 | Python | false | false | 18,541 | py | program_logic.py | # Copyright 2022, The TensorFlow Federated 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 o... |
6316b387ba016ca99f6290e10b30c5b12a206923 | afbae26b958b5ef20548402a65002dcc8e55b66a | /ironstubs/default_settings.py | d445574bc29c1bf3f2aa9b7306ae8abf7068ed67 | [
"MIT"
] | permissive | gtalarico/ironpython-stubs | d875cb8932c7644f807dc6fde9dd513d159e4f5c | c7f6a6cb197e3949e40a4880a0b2a44e72d0a940 | refs/heads/master | 2023-07-12T01:43:47.295560 | 2022-05-23T18:12:06 | 2022-05-23T18:12:06 | 95,340,553 | 235 | 88 | NOASSERTION | 2023-07-05T06:36:28 | 2017-06-25T05:30:46 | Python | UTF-8 | Python | false | false | 1,734 | py | default_settings.py | import os
PATHS = [
# | Local Binaries
# | Revit
'C:\\Program Files\\Autodesk\\Revit 2017',
'C:\\Program Files\\Autodesk\\Revit 2017\\en-US',
# | Tekla Structures
'C:\\Program Files\\Tekla Structures\\2017\\nt\\bin\\plugins',
# | Dynamo
'C:\\Program Files\\Dynamo\Dynamo Core\\... |
d3517ffb64796590f32ef40fe61b966ac5e2c25d | 83e7dc1281874779c46dfadcc15b2bb66d8e599c | /examples/event/lv_example_event_4.py | 48399039cc6080515d8178ef59ac37936999eb00 | [
"MIT"
] | permissive | lvgl/lvgl | 7d51d6774d6ac71df7101fc7ded56fea4b70be01 | 5c984b4a5364b6455966eb3a860153806c51626f | refs/heads/master | 2023-08-30T22:39:20.283922 | 2023-08-30T19:55:29 | 2023-08-30T19:55:29 | 60,667,730 | 9,296 | 2,218 | MIT | 2023-09-14T17:59:34 | 2016-06-08T04:14:34 | C | UTF-8 | Python | false | false | 1,693 | py | lv_example_event_4.py | class LV_Example_Event_4:
def __init__(self):
#
# Demonstrate the usage of draw event
#
self.size = 0
self.size_dec = False
self.cont = lv.obj(lv.scr_act())
self.cont.set_size(200, 200)
self.cont.center()
self.cont.add_event(self.event_cb, lv.... |
6c2512d55971633eaacd685acd26fa0007200199 | 86366739c4613bc96193680001ab80b704a69e17 | /loaddata.py | 1f327886b9ecbc82c8d4e268efe67403bfafa053 | [
"MIT"
] | permissive | JunjH/Visualizing-CNNs-for-monocular-depth-estimation | 3b2ecfa38e5ae0ae51beaa50b159e88254546459 | 9fb5124e7a907817de6a3eecf1b3ec854c8adf85 | refs/heads/master | 2022-06-21T05:52:43.671488 | 2022-06-10T03:12:04 | 2022-06-10T03:12:04 | 180,339,370 | 148 | 29 | null | 2019-04-10T06:38:26 | 2019-04-09T10:06:58 | Python | UTF-8 | Python | false | false | 3,427 | py | loaddata.py | import pandas as pd
import numpy as np
from torch.utils.data import Dataset, DataLoader
from torchvision import transforms, utils
from PIL import Image
import random
from nyu_transform import *
class depthDataset(Dataset):
"""Face Landmarks dataset."""
def __init__(self, csv_file, transform=None):
se... |
090117dcb8a6f5a81b7502e7854946d427e80233 | d110546d747d7e3865ce5742d5fca09f404623c0 | /tests/pytests/unit/utils/test_xmlutil.py | 42826e626fae0a8d7bd6608b7e46b6d0646d89e7 | [
"Apache-2.0",
"MIT",
"BSD-2-Clause"
] | permissive | saltstack/salt | 354fc86a7be1f69514b3dd3b2edb9e6f66844c1d | 1ef90cbdc7203f97775edb7666db86a41eb9fc15 | refs/heads/master | 2023-07-19T20:56:20.210556 | 2023-06-29T23:12:28 | 2023-07-19T11:47:47 | 1,390,248 | 11,026 | 6,296 | Apache-2.0 | 2023-09-14T20:45:37 | 2011-02-20T20:16:56 | Python | UTF-8 | Python | false | false | 6,241 | py | test_xmlutil.py | import xml.etree.ElementTree as ET
import pytest
import salt.utils.xmlutil as xml
@pytest.fixture
def xml_doc():
return ET.fromstring(
"""
<domain>
<name>test01</name>
<memory unit="MiB">1024</memory>
<cpu>
<topology sockets="1"/>
<... |
acbfad4422fddf48dfe4605cc292e88acd04b5d0 | 56d6257e932e1397ab03b1e7ccc6231378665b04 | /ATOMSQ/view_toggle.py | 3cedfda2af394aedd8ec6aa9b736214264386e7d | [] | no_license | gluon/AbletonLive10.1_MIDIRemoteScripts | e6c8dc4956cff9630aaa36f3667994387ad1d0cf | 2468b51eba7e5082b06f9e381b3e72027c5f272c | refs/heads/master | 2023-01-10T18:37:46.504180 | 2022-12-23T09:21:48 | 2022-12-23T09:21:48 | 213,423,555 | 205 | 59 | null | 2021-02-12T16:15:01 | 2019-10-07T15:44:52 | Python | UTF-8 | Python | false | false | 3,092 | py | view_toggle.py | #Embedded file name: /Users/versonator/Jenkins/live/output/Live/mac_64_static/Release/python-bundle/MIDI Remote Scripts/ATOMSQ/view_toggle.py
from __future__ import absolute_import, print_function, unicode_literals
from ableton.v2.base import listens
from ableton.v2.control_surface import Component
from ableton.v2.cont... |
1d2072e95f00ace2721963a3a30e0cb9072da1f5 | f1c2e4b3147af77e23306f841610aafd6db1c6b0 | /dev-support/mini-submarine/submarine/image_classification.py | aa3aa2b9f5fe8ee45be18b7813fbac061b9ff6d3 | [
"Apache-2.0",
"GPL-1.0-or-later",
"LicenseRef-scancode-unknown",
"LicenseRef-scancode-unknown-license-reference",
"BSD-3-Clause",
"BSD-2-Clause",
"GPL-2.0-only",
"LicenseRef-scancode-public-domain",
"MIT",
"CDDL-1.1",
"Classpath-exception-2.0"
] | permissive | apache/submarine | a2927f5f4f7f5faff4701139f2f0f88a98195e7f | 0c10613f39b707d5e446c515c12fa28295c8052e | refs/heads/master | 2023-08-30T14:35:43.145942 | 2023-08-20T00:19:54 | 2023-08-24T23:50:49 | 209,459,144 | 663 | 269 | Apache-2.0 | 2023-09-03T09:05:06 | 2019-09-19T04:00:17 | Java | UTF-8 | Python | false | false | 21,376 | py | image_classification.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 ... |
c2b4e654862590e57338c843c71ec677e9455530 | f305f84ea6f721c2391300f0a60e21d2ce14f2a5 | /23_设计类/设计版本控制(可持久化)/可持久化数组/完全可持久化数组-数据结构.py | fd490ebd1b0453895c1dbf66e1cda831e05e24b2 | [] | 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 | 1,982 | py | 完全可持久化数组-数据结构.py | # # 配列の初期状態
# A = [2, 0, 1, 9]
# # 更新操作
# operations = [('a.0', 2, 2, 'a.1'), ('a.1', 0, 1, 'a.2'), ('a.2', 1, 1, 'a.3'),
# ('a.1', 3, 0, 'b.2'), ('a.3', 3, 3, 'a.4')]
# # クエリ
# queries = [('a.1', 2), ('a.4', 1), ('a.4', 3), ('b.2', 3)]
# https://qiita.com/wotsushi/items/72e7f8cdd674741ffd61#%E5%8F... |
dc2a036569a42630cce431374858085679351fde | 126884e6916e9d78201527419681c0369bc61e9a | /Python/Human_Detector/human_detector.py | 7e981d0c76a64c1aaaaf5c08def8c4661db2ceb3 | [
"MIT"
] | permissive | HarshCasper/Rotten-Scripts | adb9d9b707958f0353f7f7dda44f406da123e64a | 31fd3fb1233f39ea2252a7a44160ff8a2140f7bd | refs/heads/master | 2023-08-27T20:10:27.180869 | 2023-05-07T19:14:31 | 2023-07-25T11:59:06 | 240,786,294 | 1,474 | 754 | MIT | 2023-07-25T11:59:08 | 2020-02-15T20:53:36 | Python | UTF-8 | Python | false | false | 4,355 | py | human_detector.py | import cv2
import imutils
import argparse
HOGCV = cv2.HOGDescriptor()
HOGCV.setSVMDetector(cv2.HOGDescriptor_getDefaultPeopleDetector())
def detect(frame):
bounding_box_cordinates, weights = HOGCV.detectMultiScale(
frame, winStride=(4, 4), padding=(8, 8), scale=1.03
)
person = 1
for x, y, w... |
169acd2fe8a4ef1990fd5356bbf221d4fa238da7 | 518bf342bc4138982af3e2724e75f1d9ca3ba56c | /solutions/2154. Keep Multiplying Found Values by Two/2155.py | e9c418a40e15cfc68b18de0fc5d70db4749e0b7a | [
"MIT"
] | permissive | walkccc/LeetCode | dae85af7cc689882a84ee5011f0a13a19ad97f18 | a27be41c174565d365cbfe785f0633f634a01b2a | refs/heads/main | 2023-08-28T01:32:43.384999 | 2023-08-20T19:00:45 | 2023-08-20T19:00:45 | 172,231,974 | 692 | 302 | MIT | 2023-08-13T14:48:42 | 2019-02-23T15:46:23 | C++ | UTF-8 | Python | false | false | 178 | py | 2155.py | class Solution:
def findFinalValue(self, nums: List[int], original: int) -> int:
numsSet = set(nums)
while original in numsSet:
original *= 2
return original
|
46f763d2a8309c08b34b8d77f07f140c0ddd3d25 | be240c2147e7e1456b934d40d3fe47115e443bc3 | /meta_learning/meta_example.py | 4b2daa9796c3ec9522c546f1c7a3233fa9b2d328 | [
"Apache-2.0"
] | permissive | google-research/tensor2robot | 811c416663a505ec110759dca0c9b31c7eb86720 | f93f378db3183cceaad1b96828b199cf40cad606 | refs/heads/master | 2023-09-01T07:31:43.167332 | 2023-07-31T17:19:19 | 2023-07-31T17:20:07 | 186,457,418 | 539 | 104 | Apache-2.0 | 2023-07-12T09:25:12 | 2019-05-13T16:28:37 | Python | UTF-8 | Python | false | false | 2,520 | py | meta_example.py | # coding=utf-8
# Copyright 2023 The Tensor2Robot 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 ... |
c9a1601113afd6508cfcd3e6e4bb2d65e0895c9f | 967968e56ec17a2ee641af84cfca669c1d16a6f1 | /tests/ad/directory/test_directory_schema.py | 73a9c315af2c992c281465e0163cb00363c1d019 | [
"MIT"
] | permissive | tenable/pyTenable | 72108c2564682e65cba181ded6ef6a9c990ef004 | 4e31049891f55016168b14ae30d332a965523640 | refs/heads/master | 2023-08-30T23:26:33.161062 | 2023-08-08T04:39:04 | 2023-08-08T04:39:04 | 114,689,090 | 300 | 211 | MIT | 2023-08-08T04:39:05 | 2017-12-18T21:23:01 | Python | UTF-8 | Python | false | false | 1,308 | py | test_directory_schema.py | '''test directory schema'''
import pytest
from marshmallow import INCLUDE, ValidationError
from tenable.ad.directories.schema import DirectorySchema
@pytest.fixture
def directory_schema():
return {'infrastructureId': 1,
'id': 1,
'name': 'test',
'ip': '172.32.68.1',
... |
328f3d26be985dae05587f625ddb3f4d56b477a5 | 017b1261bac4a6ed7e613474f328239188366491 | /src/rpdk/core/contract/type_configuration.py | 209b2574f8e1c9fed8c6ec63f7f9fbd87e3b04cd | [
"Apache-2.0"
] | permissive | aws-cloudformation/cloudformation-cli | bd4834bfe8b39c9fc926f9c77710b2c6d1b167c1 | 75bed278bcec94739e4c132e2b3d88a4fddb5bf4 | refs/heads/master | 2023-08-07T18:24:56.153849 | 2023-07-31T22:54:23 | 2023-07-31T22:54:23 | 143,929,054 | 270 | 164 | Apache-2.0 | 2023-08-31T16:06:04 | 2018-08-07T21:33:19 | Python | UTF-8 | Python | false | false | 2,013 | py | type_configuration.py | import json
import logging
import os
from rpdk.core.exceptions import InvalidProjectError
LOG = logging.getLogger(__name__)
class TypeConfiguration:
TYPE_CONFIGURATION = None
@staticmethod
def get_type_configuration(typeconfigloc):
if typeconfigloc:
type_config_file_path = typeconfi... |
6557f38aefd0ceb4bf4a794a320b65546b9a11ee | ed865aed525556fd7aa5ac5a024af720de8438e3 | /cli/src/pcluster/cli/commands/configure/subnet_computation.py | 31c04e4831ffc6640ce67c8c18e26ea306df7b4c | [
"Python-2.0",
"GPL-1.0-or-later",
"MPL-2.0",
"MIT",
"LicenseRef-scancode-python-cwi",
"BSD-3-Clause",
"LicenseRef-scancode-other-copyleft",
"LicenseRef-scancode-free-unknown",
"Apache-2.0",
"MIT-0",
"BSD-2-Clause"
] | permissive | aws/aws-parallelcluster | 7bb33a6e175168f63a1e0acb1a9a7e9cbc405eff | a213978a09ea7fc80855bf55c539861ea95259f9 | refs/heads/develop | 2023-09-05T15:12:18.533270 | 2023-09-05T14:38:59 | 2023-09-05T14:38:59 | 19,718,034 | 520 | 226 | Apache-2.0 | 2023-09-14T15:56:30 | 2014-05-12T22:42:19 | Python | UTF-8 | Python | false | false | 5,959 | py | subnet_computation.py | # Copyright 2018 Amazon.com, Inc. or its affiliates. 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. A copy of the License is located at
#
# http://aws.amazon.com/apache2.0/
#
# or in the "LICENSE.txt" file accom... |
f9d1781f4ec4f0a7fd3e6d613f9256cc1e787695 | f9e7d65cb784c01a0200145ba8d289afe41d4a56 | /extra/tigertool/ecusb/stm32usb.py | 875251329f362d814fb9fbcb679221c5e073f984 | [
"BSD-3-Clause"
] | permissive | FrameworkComputer/EmbeddedController | ad7086769e87d0a4179eae96a7c9ff5e383ff54e | f6d6b927eed71550d3475411cfc3e59abe5cef2a | refs/heads/hx20-hx30 | 2023-08-08T20:45:10.621169 | 2023-05-26T07:03:59 | 2023-05-26T07:03:59 | 447,021,040 | 846 | 48 | BSD-3-Clause | 2023-05-26T07:04:59 | 2022-01-12T00:11:14 | C | UTF-8 | Python | false | false | 3,545 | py | stm32usb.py | # Copyright 2017 The Chromium OS Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
"""Allows creation of an interface via stm32 usb."""
import usb
class SusbError(Exception):
"""Class for exceptions of Susb."""
def __init__(self, ... |
3c5befea3657e8a159ab2f0288fae6e2e677527f | 6416b746ee71d897789eab1e450000831674dbd0 | /tests/unit/hpo/test_resource_manager.py | 46beb4ac0662e98fb82a40c05ac2e6956bcd568e | [
"Apache-2.0"
] | permissive | openvinotoolkit/training_extensions | c921f83ad52311af96ff45ae0b88d0aecddd855b | 80454808b38727e358e8b880043eeac0f18152fb | refs/heads/develop | 2023-08-31T06:29:07.229339 | 2023-08-31T01:57:26 | 2023-08-31T01:57:26 | 154,843,614 | 397 | 230 | Apache-2.0 | 2023-09-14T06:17:01 | 2018-10-26T14:02:29 | Python | UTF-8 | Python | false | false | 6,268 | py | test_resource_manager.py | import pytest
from otx.hpo.resource_manager import (
CPUResourceManager,
GPUResourceManager,
_remove_none_from_dict,
get_resource_manager,
)
from tests.test_suite.e2e_test_system import e2e_pytest_component
@pytest.fixture
def cpu_resource_manager():
return CPUResourceManager(num_parallel_trial=4... |
c8085d6e9a589badcfd443f96b8c6f781faee7f6 | 279f415dd1e06c594c6c87deda57e201c73c4542 | /test/test_transformer_decode.py | 5c92c019095b0644c99579eecb005634e5cfc862 | [
"Apache-2.0"
] | permissive | espnet/espnet | f7ba47271c1a6b1ed606dbbfb04a7f14220bb585 | bcd20948db7846ee523443ef9fd78c7a1248c95e | refs/heads/master | 2023-08-28T23:43:34.238336 | 2023-08-23T02:51:39 | 2023-08-23T02:51:39 | 114,054,873 | 7,242 | 2,244 | Apache-2.0 | 2023-09-14T08:01:11 | 2017-12-13T00:45:11 | Python | UTF-8 | Python | false | false | 4,486 | py | test_transformer_decode.py | import numpy
import pytest
import torch
from espnet.nets.pytorch_backend.transformer.decoder import Decoder
from espnet.nets.pytorch_backend.transformer.encoder import Encoder
from espnet.nets.pytorch_backend.transformer.mask import subsequent_mask
RTOL = 1e-4
@pytest.mark.parametrize("normalize_before", [True, Fal... |
1887c43e839ae986c6d56e55ef873ff235c56b23 | 12f0bd77926127cdacc2452d6f9cfed91806b2fe | /idaes/models/properties/modular_properties/examples/HC_PR.py | 7826a12f8b896e028092da65054094d471762882 | [
"BSD-2-Clause",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | IDAES/idaes-pse | e03d2583ae1ba968a7099f9f439fd8c3efa12904 | deacf4c422bc9e50cb347e11a8cbfa0195bd4274 | refs/heads/main | 2023-08-16T19:13:00.355572 | 2023-08-04T04:19:29 | 2023-08-04T04:19:29 | 168,622,088 | 173 | 227 | NOASSERTION | 2023-09-11T16:04:55 | 2019-02-01T01:12:51 | Python | UTF-8 | Python | false | false | 41,092 | py | HC_PR.py | #################################################################################
# The Institute for the Design of Advanced Energy Systems Integrated Platform
# Framework (IDAES IP) was produced under the DOE Institute for the
# Design of Advanced Energy Systems (IDAES).
#
# Copyright (c) 2018-2023 by the software own... |
ee8acc3943d3e3400b004d6a08f2ea7a3b00421b | 3f763cf893b09a3be562858613c928703ff349e4 | /client/verta/verta/_cli/deployment/get.py | a0ffec426dec2f5bf287fd89d3bf89aca5e4f0c9 | [
"Apache-2.0"
] | permissive | VertaAI/modeldb | 636e46fc025b01a514d599b10e228c8735503357 | ec9ac7712500adb13fd815dfd476ce9f536c6921 | refs/heads/main | 2023-08-31T00:45:37.220628 | 2023-08-30T18:45:13 | 2023-08-30T18:45:13 | 71,305,435 | 844 | 142 | Apache-2.0 | 2023-09-14T19:24:13 | 2016-10-19T01:07:26 | Java | UTF-8 | Python | false | false | 809 | py | get.py | # -*- coding: utf-8 -*-
import click
from .deployment import deployment
from ... import Client
@deployment.group()
def get():
"""Get detailed information about an entity related to deployment.
For example, to see information about an endpoint, run
`verta deployment get endpoint "<endpoint path>"`
... |
64d3e87bc6b3a68030f88a962f0c546f27b59a35 | 7ebb2f0458d3813737dd045473d7c1398d08392d | /pyclesperanto_prototype/_tier4/_proximal_neighbor_count.py | 5c0e37d4ee91dca8eddf6c357c2cbc5973656e8e | [
"Python-2.0",
"BSD-3-Clause"
] | permissive | clEsperanto/pyclesperanto_prototype | b3192d6984f45571fe0a7dfcceee2058bc4debbe | b465c8669f8e9326874139cf4b9c9af22c22757c | refs/heads/master | 2023-09-04T11:07:55.828329 | 2023-08-25T17:18:30 | 2023-08-25T17:18:30 | 248,206,619 | 152 | 36 | BSD-3-Clause | 2023-05-23T09:44:51 | 2020-03-18T10:56:29 | Jupyter Notebook | UTF-8 | Python | false | false | 1,361 | py | _proximal_neighbor_count.py | from .._tier0 import plugin_function
from .._tier0 import Image
import numpy as np
from .._tier0 import create_none
@plugin_function(categories=['label measurement'], output_creator=create_none)
def proximal_neighbor_count(source : Image, destination : Image = None, min_distance : float = 0, max_distance : float = np.... |
07409aa6d1b50b75674b4143d3a281f0956e48c8 | da1721d2783ea4d67ff4e73cee6eee71292f2ef7 | /toontown/building/TutorialBuildingAI.py | c2426e50314e4e06df5804fa7e75533f43a29a40 | [
"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 | 3,772 | py | TutorialBuildingAI.py | from panda3d.core import *
from direct.directnotify import DirectNotifyGlobal
from . import DistributedDoorAI
from . import DistributedTutorialInteriorAI
from . import FADoorCodes
from . import DoorTypes
from toontown.toon import NPCToons
from toontown.toonbase import TTLocalizer
# This is not a distributed class... I... |
6ee6a8673d13535a58a34b820cb5bd9865401aaf | 2181883c8faac55bfc969a97d22d9b24a3e81ab3 | /Pythonwin/pywin/framework/editor/__init__.py | 16e3158184e55234a845dbbcc792c2b352939a24 | [
"PSF-2.0"
] | permissive | mhammond/pywin32 | 574bf121cfeac8c7a9d28f94ee0f2069a425e8ab | 2a7137f21965013020ef9e4f27565db6dea59003 | refs/heads/main | 2023-09-02T13:16:52.307262 | 2023-08-17T19:42:26 | 2023-08-17T19:42:26 | 108,187,130 | 4,757 | 907 | null | 2023-08-23T01:45:49 | 2017-10-24T21:44:27 | C++ | UTF-8 | Python | false | false | 2,923 | py | __init__.py | # __init__ for the Pythonwin editor package.
#
# We used to support optional editors - eg, color or non-color.
#
# This really isnt necessary with Scintilla, and scintilla
# is getting so deeply embedded that it was too much work.
import win32ui
defaultCharacterFormat = (-402653169, 0, 200, 0, 0, 0, 49, "Courier New"... |
076472973dcdc01873e19df03580b1fe9c7734c2 | fa3f6d4e9169fb95f828013d179d03accdff381b | /grr/server/grr_response_server/export_converters/launchd_plist_test.py | 44bdf5fabf1422d9a2f4778db1926d887816107b | [
"Apache-2.0"
] | permissive | google/grr | c51a2bd251ed2f7adae538541990a2cc01fdcc8c | 44c0eb8c938302098ef7efae8cfd6b90bcfbb2d6 | refs/heads/master | 2023-09-05T20:02:36.823914 | 2023-07-26T09:34:09 | 2023-07-26T09:34:09 | 14,909,673 | 4,683 | 927 | Apache-2.0 | 2023-07-26T09:34:10 | 2013-12-04T00:17:53 | Python | UTF-8 | Python | false | false | 5,127 | py | launchd_plist_test.py | #!/usr/bin/env python
from absl import app
from grr_response_core.lib.rdfvalues import plist as rdf_plist
from grr_response_server.export_converters import launchd_plist
from grr.test_lib import export_test_lib
from grr.test_lib import test_lib
class LaunchdPlistConverterTest(export_test_lib.ExportTestBase):
"""Te... |
bfc0da789a88411f021cdaac7c245917719426c3 | 99dcb18a9e3ea367272f740b8cbf3c34285a0c08 | /google/cloud/aiplatform/compat/types/__init__.py | fb72dc7103a20107d85449250cdfa3d6420425ff | [
"Apache-2.0"
] | permissive | googleapis/python-aiplatform | 926a4873f35dbea15b2fd86c0e16b5e6556d803e | 76b95b92c1d3b87c72d754d8c02b1bca652b9a27 | refs/heads/main | 2023-08-19T23:49:02.180075 | 2023-08-19T13:25:59 | 2023-08-19T13:27:27 | 298,017,988 | 418 | 240 | Apache-2.0 | 2023-09-14T21:08:33 | 2020-09-23T15:43:39 | Python | UTF-8 | Python | false | false | 10,897 | py | __init__.py | # -*- coding: utf-8 -*-
# Copyright 2023 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 o... |
6a70f4c2d7eb6f54f9e71dfc6bcaef2119b1556b | 2311e4ef8feb8c54cb3ca0db817c5219804364a7 | /setup.py | 98f89a371d8830656584e05e7c13f79a6885ff45 | [
"MIT"
] | permissive | vBaiCai/python-pesq | 4d4095f2e6241c5c1edd4e729e30e1a25f34e0b3 | a76902d7dd371a172bfcbb52d80b2d1f1f9251dd | refs/heads/master | 2023-04-28T19:14:39.979390 | 2023-04-24T12:05:46 | 2023-04-24T12:05:46 | 161,613,833 | 334 | 71 | MIT | 2023-04-24T12:05:47 | 2018-12-13T09:18:08 | Python | UTF-8 | Python | false | false | 1,544 | py | setup.py | from setuptools import setup, Extension, find_packages
from setuptools.command.build_ext import build_ext as _build_ext
import os
includes = ['pypesq']
try:
import numpy as np
includes += [os.path.join(np.get_include(), 'numpy')]
except:
pass
extension = Extension("pesq_core",
... |
ab9782cc55ac964a93a4c8eedf13a638ba48e157 | 4f458456fa868a2824eaefaa110b477aaa9bf434 | /source/accounts/forms.py | 79a3c3d0210fe3337156f14811d407eddfc9977a | [] | permissive | egorsmkv/simple-django-login-and-register | 9e1e2d2fb02a4851492fb22bebd5dbe976c8c6aa | 9389911dbc98d8f411922e1e8b5dd9247ac9a95b | refs/heads/master | 2023-07-31T20:41:23.368663 | 2023-07-13T12:52:04 | 2023-07-13T12:52:04 | 99,043,550 | 832 | 470 | BSD-3-Clause | 2023-09-02T18:01:42 | 2017-08-01T21:11:28 | Python | UTF-8 | Python | false | false | 6,641 | py | forms.py | from datetime import timedelta
from django import forms
from django.forms import ValidationError
from django.conf import settings
from django.contrib.auth.models import User
from django.contrib.auth.forms import UserCreationForm
from django.utils import timezone
from django.db.models import Q
from django.utils.transla... |
525b502b72f02d30859567571d5b9f897cded29c | 3afe7348e830a0c5139fb7cf393736e18b59ab4a | /src/clusterfuzz/_internal/tests/core/bot/tasks/utasks/minimize_task_test.py | 26cc1d2c469bd93c68c7d7228afba18608c9491d | [
"Apache-2.0"
] | permissive | google/clusterfuzz | 00845899e081dbbb89b70a75ce0b7eba3da73b02 | 6501a839b27a264500244f32bace8bee4d5cb9a2 | refs/heads/master | 2023-09-03T17:34:17.821599 | 2023-09-01T16:11:51 | 2023-09-01T16:11:51 | 168,060,021 | 5,420 | 639 | Apache-2.0 | 2023-09-13T16:40:54 | 2019-01-29T00:19:40 | Python | UTF-8 | Python | false | false | 8,068 | py | minimize_task_test.py | # Copyright 2019 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, ... |
3531bbdcb663a6fd1ceb0428ec7e9d4dcca6309c | db12b990924703cd74748d8585cd9c11fafa6746 | /h2o-py/tests/testdir_misc/pyunit_citibike_consistency_check.py | cafef032ed9e8d75c8371753d943ce56af3ea688 | [
"Apache-2.0"
] | permissive | h2oai/h2o-3 | 919019a8f297eec676011a9cfd2cc2d97891ce14 | d817ab90c8c47f6787604a0b9639b66234158228 | refs/heads/master | 2023-08-17T18:50:17.732191 | 2023-08-17T16:44:42 | 2023-08-17T16:44:42 | 17,371,412 | 6,872 | 2,345 | Apache-2.0 | 2023-09-14T18:05:40 | 2014-03-03T16:08:07 | Jupyter Notebook | UTF-8 | Python | false | false | 1,521 | py | pyunit_citibike_consistency_check.py | from builtins import zip
import sys
sys.path.insert(1,"../../")
import h2o
from tests import pyunit_utils
# Check to make sure the small and large citibike demos have not diverged
import os
def consistency_check():
try:
small = pyunit_utils.locate("h2o-py/demos/citi_bike_small.ipynb")
except ValueErro... |
f4a7aeaad31e5c74a3c7283f1d7d0acb0ed864f5 | bb33e6be8316f35decbb2b81badf2b6dcf7df515 | /source/res/scripts/client/gui/impl/gen/view_models/views/lobby/customization/progressive_items_view/item_level_info_model.py | 3891b116eaaa0ef4ffc083c29f09fd866ee011f7 | [] | no_license | StranikS-Scan/WorldOfTanks-Decompiled | 999c9567de38c32c760ab72c21c00ea7bc20990c | d2fe9c195825ececc728e87a02983908b7ea9199 | refs/heads/1.18 | 2023-08-25T17:39:27.718097 | 2022-09-22T06:49:44 | 2022-09-22T06:49:44 | 148,696,315 | 103 | 39 | null | 2022-09-14T17:50:03 | 2018-09-13T20:49:11 | Python | UTF-8 | Python | false | false | 2,086 | py | item_level_info_model.py | # Python bytecode 2.7 (decompiled from Python 2.7)
# Embedded file name: scripts/client/gui/impl/gen/view_models/views/lobby/customization/progressive_items_view/item_level_info_model.py
from frameworks.wulf import ViewModel
from gui.impl.gen.view_models.views.lobby.customization.progressive_items_view.progress_block i... |
71f33f00a988f190955b5a61c96e5fe8133fc353 | c2c212ba42ebfa35f3b6122344978bc94ec8fa67 | /tests/test_onehundredonecookbooks.py | f37b16c4bc485cdd16b997ed90b8b90ccc645ac2 | [
"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,390 | py | test_onehundredonecookbooks.py | from recipe_scrapers.onehundredonecookbooks import OneHundredOneCookBooks
from tests import ScraperTest
class TestOneHundredOneCookBooksScraper(ScraperTest):
scraper_class = OneHundredOneCookBooks
def test_host(self):
self.assertEqual("101cookbooks.com", self.harvester_class.host())
def test_au... |
7108edbc93d1426a13c7facaf75f9a45affdcbb7 | a3d6556180e74af7b555f8d47d3fea55b94bcbda | /third_party/wpt_tools/wpt/tools/wpt/android.py | 366502cc6c2b63ca47ce01caef9b12146b2ee9f7 | [
"BSD-3-Clause",
"GPL-1.0-or-later",
"MIT",
"LGPL-2.0-or-later",
"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 | 5,386 | py | android.py | # mypy: allow-untyped-defs
import argparse
import os
import platform
import shutil
import subprocess
import requests
from .wpt import venv_dir
android_device = None
here = os.path.abspath(os.path.dirname(__file__))
wpt_root = os.path.abspath(os.path.join(here, os.pardir, os.pardir))
def do_delayed_imports():
... |
7d708c536b35f528587dbfe9b701be918cc148a2 | dcc7dd6c65cb13d3619689b2c794b450e503b100 | /src/poetry/vcs/git/backend.py | fcafc430605d76f26d02a496077ea27070fdcd8a | [
"MIT"
] | permissive | python-poetry/poetry | 6b83f8db6a15b132fd252b68ed3bbee51b4e64f0 | 02448cf7f184dea204156f7dcb620a4f01a0068e | refs/heads/master | 2023-09-04T12:23:02.700442 | 2023-09-02T10:46:06 | 2023-09-02T10:46:06 | 123,303,402 | 20,127 | 2,081 | MIT | 2023-09-12T09:41:09 | 2018-02-28T15:23:47 | Python | UTF-8 | Python | false | false | 15,939 | py | backend.py | from __future__ import annotations
import dataclasses
import logging
import re
from pathlib import Path
from subprocess import CalledProcessError
from typing import TYPE_CHECKING
from urllib.parse import urljoin
from dulwich import porcelain
from dulwich.client import HTTPUnauthorized
from dulwich.client import get_... |
3562c60602c45a713e7aae07310fab6cc39cec20 | 3b87eaa7f1b8290d1a74ac2bec9573f81aab831d | /python/python/examples/class_or_func_def_stmt.py | 9d066a3b46b73cac29b706d91e009bc63818d85a | [
"MIT"
] | permissive | antlr/grammars-v4 | 1f6ba461f9fb2c8f04335ca495249ab6eab8e0ae | 98c2bc3b68eff9ad4b809d21a6c9d858c5b9ddfa | refs/heads/master | 2023-08-16T13:37:23.691676 | 2023-08-13T15:20:52 | 2023-08-13T15:20:52 | 5,958,314 | 9,255 | 4,577 | MIT | 2023-09-13T21:17:22 | 2012-09-25T23:45:11 | ANTLR | UTF-8 | Python | false | false | 205 | py | class_or_func_def_stmt.py | # class_or_func_def_stmt: decorator+ (classdef | funcdef);
# decorator classdef
@decorator
class foo:
pass
# decorator decorator funcdef
@accepts(int,int)
@returns(float)
def bar(low,high):
pass
|
afffec838ee574de9f737ceb24271fc6b00ffe8e | c46754b9600a12df4f9d7a6320dfc19aa96b1e1d | /examples/research_projects/movement-pruning/emmental/modules/binarizer.py | b4a801d56d9de27da30d82d4c2f7b16f40a13ccd | [
"Apache-2.0"
] | permissive | huggingface/transformers | ccd52a0d7c59e5f13205f32fd96f55743ebc8814 | 4fa0aff21ee083d0197a898cdf17ff476fae2ac3 | refs/heads/main | 2023-09-05T19:47:38.981127 | 2023-09-05T19:21:33 | 2023-09-05T19:21:33 | 155,220,641 | 102,193 | 22,284 | Apache-2.0 | 2023-09-14T20:44:49 | 2018-10-29T13:56:00 | Python | UTF-8 | Python | false | false | 5,822 | py | binarizer.py | # coding=utf-8
# Copyright 2020-present, AllenAI Authors, University of Illinois Urbana-Champaign,
# Intel Nervana Systems and the HuggingFace Inc. team.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the ... |
a8fbc5826339abb319d4a75e70ef95e07f9ceca9 | 0760fb4901a75766921a205b55686d6d6f049b30 | /doc/source/serve/doc_code/tutorial_pytorch.py | 66bd2fb6314f899e8074b47c7693d05255b43d55 | [
"MIT",
"BSD-3-Clause",
"Apache-2.0"
] | permissive | ray-project/ray | a4bb6940b08b59a61ef0b8e755a52d8563a2f867 | edba68c3e7cf255d1d6479329f305adb7fa4c3ed | refs/heads/master | 2023-08-31T03:36:48.164405 | 2023-08-31T03:20:38 | 2023-08-31T03:20:38 | 71,932,349 | 29,482 | 5,669 | Apache-2.0 | 2023-09-14T21:48:14 | 2016-10-25T19:38:30 | Python | UTF-8 | Python | false | false | 1,678 | py | tutorial_pytorch.py | # fmt: off
# __doc_import_begin__
from ray import serve
from io import BytesIO
from PIL import Image
from starlette.requests import Request
from typing import Dict
import torch
from torchvision import transforms
from torchvision.models import resnet18
# __doc_import_end__
# fmt: on
# __doc_define_servable_begin__
@... |
5ad1e99e46420e075e09d53315b5efedc96c923d | e34810541899182d3a0835e02fa68389af63a805 | /pypsa/io.py | 8ed64623502f0c6804ebe37a66a8af2d4e109aa5 | [
"MIT"
] | permissive | PyPSA/PyPSA | 483216289643ca496d66d316a22e000afa15706c | 38b710c73950d05164e7d6c9dd786065ee7cde44 | refs/heads/master | 2023-08-19T20:55:17.329666 | 2023-08-17T10:40:50 | 2023-08-17T10:40:50 | 49,414,256 | 891 | 399 | MIT | 2023-09-14T14:09:38 | 2016-01-11T09:04:18 | Python | UTF-8 | Python | false | false | 47,437 | py | io.py | # -*- coding: utf-8 -*-
"""
Functions for importing and exporting data.
"""
__author__ = (
"PyPSA Developers, see https://pypsa.readthedocs.io/en/latest/developers.html"
)
__copyright__ = (
"Copyright 2015-2023 PyPSA Developers, see https://pypsa.readthedocs.io/en/latest/developers.html, "
"MIT License"
)
... |
b4f95915e9ea389a5b6e09b19da73e0d28fa8460 | 5a52ccea88f90dd4f1acc2819997fce0dd5ffb7d | /alipay/aop/api/response/KoubeiRetailWmsSupplierreportQueryResponse.py | a7227e7860ec96c571aeca4e27599eab41b18797 | [
"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 | 2,018 | py | KoubeiRetailWmsSupplierreportQueryResponse.py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import json
from alipay.aop.api.response.AlipayResponse import AlipayResponse
from alipay.aop.api.domain.SupplierReport import SupplierReport
class KoubeiRetailWmsSupplierreportQueryResponse(AlipayResponse):
def __init__(self):
super(KoubeiRetailWmsSupplierr... |
a6ab7b925321d27206c771adf1ecedd0df21a3d8 | 8ca19f1a31070738b376c0370c4bebf6b7efcb43 | /office365/planner/tasks/task_details.py | 303a6cd1603cdc0d61a6d5b2953b580075b0bff8 | [
"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 | 228 | py | task_details.py | from office365.entity import Entity
class PlannerTaskDetails(Entity):
"""
The plannerTaskDetails resource represents the additional information about a task.
Each task object has a details object.
"""
pass
|
d4a7edd531f5efbdedc5026b60c635b1582b2481 | 11cd362cdd78c2fc48042ed203614b201ac94aa6 | /desktop/core/ext-py3/django-axes-5.13.0/tests/test_login.py | 39035210f08de0faf73a685fde7ace6c6b8feaa0 | [
"MIT",
"CC-BY-3.0",
"LicenseRef-scancode-other-copyleft",
"LicenseRef-scancode-unknown-license-reference",
"ZPL-2.0",
"Unlicense",
"LGPL-3.0-only",
"CC0-1.0",
"LicenseRef-scancode-other-permissive",
"CNRI-Python",
"LicenseRef-scancode-warranty-disclaimer",
"GPL-2.0-or-later",
"Python-2.0",
... | permissive | cloudera/hue | b42343d0e03d2936b5a9a32f8ddb3e9c5c80c908 | dccb9467675c67b9c3399fc76c5de6d31bfb8255 | refs/heads/master | 2023-08-31T06:49:25.724501 | 2023-08-28T20:45:00 | 2023-08-28T20:45:00 | 732,593 | 5,655 | 2,244 | Apache-2.0 | 2023-09-14T03:05:41 | 2010-06-21T19:46:51 | JavaScript | UTF-8 | Python | false | false | 27,438 | py | test_login.py | """
Integration tests for the login handling.
TODO: Clean up the tests in this module.
"""
from importlib import import_module
from django.contrib.auth import get_user_model, login, logout
from django.http import HttpRequest
from django.test import override_settings, TestCase
from django.urls import reverse
from ax... |
2d0e8edaaac63d6b281a9ac7960602a787f9864b | 2d05050d0ada29f7680b4df20c10bb85b0530e45 | /python/tvm/driver/tvmc/registry.py | c2e74eb1935ecf1348df32fd1ae2a757a106071c | [
"Apache-2.0",
"BSD-3-Clause",
"MIT",
"LicenseRef-scancode-unknown-license-reference",
"Unlicense",
"Zlib",
"LLVM-exception",
"BSD-2-Clause"
] | permissive | apache/tvm | 87cb617f9a131fa44e1693303aaddf70e7a4c403 | d75083cd97ede706338ab413dbc964009456d01b | refs/heads/main | 2023-09-04T11:24:26.263032 | 2023-09-04T07:26:00 | 2023-09-04T07:26:00 | 70,746,484 | 4,575 | 1,903 | Apache-2.0 | 2023-09-14T19:06:33 | 2016-10-12T22:20:28 | Python | UTF-8 | Python | false | false | 3,863 | py | registry.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... |
b3c565935b8728cdbe8b9a980e972bcb9687be19 | 19d72f2dc579312ffc01dc019891dc73e0763302 | /reward/reward_sample.py | b70d3edde3af5174f8add45477c80ca7e93ae252 | [
"MIT",
"MIT-0"
] | permissive | aws-deepracer-community/deepracer-analysis | 609916997fc9fdd4a57dcf349cc2664423c6739a | 26a6be78f24554dc86b34a72e87f3795578b44dc | refs/heads/master | 2023-08-16T18:22:39.494096 | 2023-08-12T08:42:20 | 2023-08-12T08:43:09 | 245,901,296 | 129 | 101 | MIT-0 | 2023-08-12T08:20:46 | 2020-03-08T22:56:13 | Jupyter Notebook | UTF-8 | Python | false | false | 1,256 | py | reward_sample.py | from time import time
class Reward:
def __init__(self, verbose=False):
self.previous_steps = None
self.initial_time = None
self.verbose = verbose
@staticmethod
def get_vector_length(v):
return (v[0] ** 2 + v[1] ** 2) ** 0.5
@staticmethod
def vector(a, b):
... |
152dc685d55efea1a3331bb4c155845a8082554b | 96dcea595e7c16cec07b3f649afd65f3660a0bad | /homeassistant/components/script/helpers.py | 9f0d4399d3d20b132b71bd032ab7f30e0943d369 | [
"Apache-2.0"
] | permissive | home-assistant/core | 3455eac2e9d925c92d30178643b1aaccf3a6484f | 80caeafcb5b6e2f9da192d0ea6dd1a5b8244b743 | refs/heads/dev | 2023-08-31T15:41:06.299469 | 2023-08-31T14:50:53 | 2023-08-31T14:50:53 | 12,888,993 | 35,501 | 20,617 | Apache-2.0 | 2023-09-14T21:50:15 | 2013-09-17T07:29:48 | Python | UTF-8 | Python | false | false | 785 | py | helpers.py | """Helpers for automation integration."""
from homeassistant.components.blueprint import DomainBlueprints
from homeassistant.core import HomeAssistant, callback
from homeassistant.helpers.singleton import singleton
from .const import DOMAIN, LOGGER
DATA_BLUEPRINTS = "script_blueprints"
def _blueprint_in_use(hass: H... |
c3655379b13cb39c72b6d4c8a99f65efa116f517 | 07df6279388a17192eb4e4e417383a1f56208839 | /mmdet3d/core/points/base_points.py | 929fa21e62efa150eb048ecdf403b3bbb904d284 | [
"Apache-2.0"
] | permissive | HuangJunJie2017/BEVDet | 11d4ca45286739c9bd099f715cb0edc9408a914f | f71858d02eb0fbd09860150ade67558d7984b1be | refs/heads/dev2.1 | 2023-05-23T15:35:45.216750 | 2023-05-07T16:35:04 | 2023-05-07T16:35:04 | 432,979,408 | 985 | 192 | Apache-2.0 | 2023-04-28T15:06:51 | 2021-11-29T09:28:12 | Python | UTF-8 | Python | false | false | 16,601 | py | base_points.py | # Copyright (c) OpenMMLab. All rights reserved.
import warnings
from abc import abstractmethod
import numpy as np
import torch
from ..bbox.structures.utils import rotation_3d_in_axis
class BasePoints(object):
"""Base class for Points.
Args:
tensor (torch.Tensor | np.ndarray | list): a N x points_di... |
5853633f18162445981e5e3d7583c0253cdbb637 | f241df59f8e6c13cab13ec3b5d5d9ade89c419f7 | /leo/plugins/writers/markdown.py | bf9c08dc2d5a5fafbe0c05d468097e78f8e67f68 | [
"BSD-3-Clause",
"MIT"
] | permissive | leo-editor/leo-editor | 6c6e09c1ae89cb9b1952c9f5b0c3a6c76ae9e625 | a3f6c3ebda805dc40cd93123948f153a26eccee5 | refs/heads/devel | 2023-08-28T08:57:01.365701 | 2023-08-23T10:21:57 | 2023-08-23T10:21:57 | 16,728,437 | 1,671 | 219 | NOASSERTION | 2023-09-14T19:39:01 | 2014-02-11T11:14:41 | Python | UTF-8 | Python | false | false | 2,398 | py | markdown.py | #@+leo-ver=5-thin
#@+node:ekr.20140726091031.18073: * @file ../plugins/writers/markdown.py
"""The @auto write code for markdown."""
from leo.core import leoGlobals as g
from leo.core.leoNodes import Position
import leo.plugins.writers.basewriter as basewriter
#@+others
#@+node:ekr.20140726091031.18075: ** class Markdow... |
c48f98fe7c530fca1995aef3d11bf45d88df6e0f | f6492af1b4c162c7d76edc7de5fa671dff963b11 | /src/RestrictedPython/Guards.py | 6713bc9e4be6f7fdaab28c414c245e86e21f7d47 | [
"ZPL-2.1"
] | permissive | zopefoundation/RestrictedPython | 4cf9b85819648672078c746f059b714feb252ed0 | aac3f96d07212cb6e07f3bcafd6da63f531ca9e0 | refs/heads/master | 2023-09-03T20:13:55.796804 | 2023-08-31T06:08:49 | 2023-08-31T06:08:49 | 8,480,726 | 341 | 43 | NOASSERTION | 2023-09-01T06:01:53 | 2013-02-28T14:29:45 | Python | UTF-8 | Python | false | false | 7,646 | py | Guards.py | ##############################################################################
#
# Copyright (c) 2002 Zope Foundation and Contributors.
#
# This software is subject to the provisions of the Zope Public License,
# Version 2.1 (ZPL). A copy of the ZPL should accompany this distribution.
# THIS SOFTWARE IS PROVIDED "AS I... |
518ff430b60bcec1e988dc23b68e78ff15afdb60 | b739654b057190041d3f82d035874fe10e4825d4 | /qtpynodeeditor/__init__.py | 915044431ab312f7e9b2bbf2d58d0fbb6acbd50b | [
"BSD-3-Clause"
] | permissive | klauer/qtpynodeeditor | 708cec70ae51cdbf52262e1cdf0d0bd33bf5e137 | 523e76e15ef26edc73fdad6fdd65df9babbde73b | refs/heads/master | 2023-08-16T06:35:08.051000 | 2023-08-04T16:50:21 | 2023-08-04T16:50:21 | 175,901,436 | 141 | 50 | NOASSERTION | 2023-08-15T06:23:03 | 2019-03-15T22:55:45 | Python | UTF-8 | Python | false | false | 2,208 | py | __init__.py | from .connection import Connection
from .connection_geometry import ConnectionGeometry
from .connection_graphics_object import ConnectionGraphicsObject
from .connection_painter import ConnectionPainter
from .data_model_registry import DataModelRegistry
from .enums import ConnectionPolicy, NodeValidationState, PortType
... |
58ebdc893fc482741353c7546affef9b61ed5fb3 | 5142e81b50d15202ff79a34c9b888f18d2baec27 | /plotnine/geoms/geom_map.py | 56ad84e1afae20b410c67a5c1fd9155ff4f213c1 | [
"MIT"
] | permissive | has2k1/plotnine | 03c0e979b6b05b5e92cb869cca903cfce20988dc | ef5650c4aabb29dcfe810043fb0fc8a4ea83f14b | refs/heads/main | 2023-08-30T22:17:07.835055 | 2023-08-08T07:57:53 | 2023-08-08T07:57:53 | 89,276,692 | 3,719 | 233 | MIT | 2023-08-08T13:09:24 | 2017-04-24T19:00:44 | Python | UTF-8 | Python | false | false | 9,434 | py | geom_map.py | from __future__ import annotations
import typing
import numpy as np
import pandas as pd
from ..doctools import document
from ..exceptions import PlotnineError
from ..utils import SIZE_FACTOR, to_rgba
from .geom import geom
from .geom_point import geom_point
from .geom_polygon import geom_polygon
if typing.TYPE_CHEC... |
1cf6cda633a3b57757c5109d53cd4b9fc3f6371d | ff4ce3522d502248f56b32438b303c3301185709 | /tests/test_deps_env/random-lines/1.0/scripts/random-lines | afda9200fde1902d27307282ce306b7978b23d3b | [
"Apache-2.0"
] | permissive | common-workflow-language/cwltool | d8304f3dcd6e31bda6d0ea11452b692987e39b28 | bd89c5694685bff46bf56fb32316c8f6fe0d799d | refs/heads/main | 2023-08-24T09:43:39.331516 | 2023-08-23T15:05:17 | 2023-08-23T16:45:11 | 43,816,051 | 336 | 258 | Apache-2.0 | 2023-09-13T10:55:19 | 2015-10-07T13:03:05 | Python | UTF-8 | Python | false | false | 2,300 | random-lines | #!/usr/bin/env python
# Dan Blankenberg
# Selects N random lines from a file and outputs to another file, maintaining original line order
# allows specifying a seed
# does two passes to determine line offsets/count, and then to output contents
import optparse
import random
import sys
def get_random_by_subtraction( l... | |
31b8d2ceed0f6a5cd58b5351eaee8d988bfffe04 | 069c2295076c482afadfe6351da5ae02be8e18e6 | /tests/forms_tests/field_tests/test_filepathfield.py | 092001b4537eaa6ea1ca68a795abcc0243d929a7 | [
"LicenseRef-scancode-other-copyleft",
"LicenseRef-scancode-unknown-license-reference",
"BSD-3-Clause",
"GPL-1.0-or-later",
"Python-2.0.1",
"LicenseRef-scancode-free-unknown",
"LicenseRef-scancode-other-permissive",
"Python-2.0"
] | permissive | django/django | 5eb557f57053631cd4f566f451e43197309dbeeb | c74a6fad5475495756a5bdb18b2cab2b68d429bc | refs/heads/main | 2023-09-01T03:43:44.033530 | 2023-08-31T08:27:32 | 2023-08-31T08:27:32 | 4,164,482 | 73,530 | 38,187 | BSD-3-Clause | 2023-09-14T20:03:48 | 2012-04-28T02:47:18 | Python | UTF-8 | Python | false | false | 4,298 | py | test_filepathfield.py | import os.path
from django.core.exceptions import ValidationError
from django.forms import FilePathField
from django.test import SimpleTestCase
PATH = os.path.dirname(os.path.abspath(__file__))
def fix_os_paths(x):
if isinstance(x, str):
return x.removeprefix(PATH).replace("\\", "/")
elif isinstance... |
3f6314435de251a37a5db56e4d91c0b73cbf7019 | 1adebf72de7aa7147b1148ba35280645fbe5bbd3 | /supriya/ugens/mac.py | fab397e9724be8404863680765fee490119090ea | [
"MIT"
] | permissive | josiah-wolf-oberholtzer/supriya | d0c4f921a06e3f9df40f91a226a1c038d3ef84d5 | 2ebf835ce9bbfca19e4220628a32c30fa66e04f7 | refs/heads/main | 2023-07-20T00:06:23.955530 | 2023-07-18T03:02:14 | 2023-07-18T03:02:14 | 17,463,359 | 227 | 28 | MIT | 2023-07-18T03:02:15 | 2014-03-06T02:27:25 | Python | UTF-8 | Python | false | false | 1,183 | py | mac.py | from ..enums import SignalRange
from .bases import UGen, param, ugen
@ugen(kr=True, signal_range=SignalRange.UNIPOLAR)
class KeyState(UGen):
keycode = param(0.0)
minimum = param(0.0)
maximum = param(1.0)
lag = param(0.2)
@ugen(kr=True, signal_range=SignalRange.UNIPOLAR)
class MouseButton(UGen):
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.