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
93cf90e40434c01078c4fc0ac5a1aaf0200efabc
b8441dc1987be9e64fa3081d456b2a3060ec44d1
/mars/services/task/analyzer/fusion.py
d87f85616ad2ba30f8450fee5869cc7734f3d351
[ "BSD-3-Clause", "MIT", "ISC", "Apache-2.0", "CC0-1.0", "BSD-2-Clause", "LicenseRef-scancode-unknown-license-reference" ]
permissive
mars-project/mars
f99fefbce999d58a9249bc72046787a9731c9c73
c36c53fa22e10ef9477d9c454401a2f281375f31
refs/heads/master
2023-07-23T00:23:55.133015
2023-07-03T11:44:54
2023-07-03T11:44:54
160,543,708
2,704
362
Apache-2.0
2023-09-11T07:57:35
2018-12-05T16:04:03
Python
UTF-8
Python
false
false
8,864
py
fusion.py
# Copyright 1999-2021 Alibaba Group Holding Ltd. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or a...
96c6caa8ea0008494172125e3c90727d271c45a1
eb9f655206c43c12b497c667ba56a0d358b6bc3a
/python/helpers/typeshed/stubs/oauthlib/oauthlib/oauth2/rfc6749/clients/legacy_application.pyi
b7f692737e817f8541a7806409332e030ee26a06
[ "Apache-2.0", "MIT" ]
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
359
pyi
legacy_application.pyi
from typing import Any from .base import Client as Client class LegacyApplicationClient(Client): grant_type: str def __init__(self, client_id, **kwargs) -> None: ... def prepare_request_body( # type: ignore[override] self, username, password, body: str = ..., scope: Any | None = ..., include_clie...
30b2a25e7db2673403161c2ad9e5e2f134f51a4d
a0447b03ad89a41a5c2e2073e32aeaf4d6279340
/ironic/tests/unit/drivers/modules/storage/test_cinder.py
6d753a8a7da524faeea5cc5a7259d1998e035a07
[ "Apache-2.0" ]
permissive
openstack/ironic
2ae87e36d7a62d44b7ed62cad4e2e294d48e061b
ab76ff12e1c3c2208455e917f1a40d4000b4e990
refs/heads/master
2023-08-31T11:08:34.486456
2023-08-31T04:45:05
2023-08-31T04:45:05
10,066,301
411
365
Apache-2.0
2023-07-25T02:05:53
2013-05-14T22:28:24
Python
UTF-8
Python
false
false
27,869
py
test_cinder.py
# Copyright 2016 Hewlett Packard Enterprise Development Company LP. # Copyright 2016 IBM Corp # 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...
5e22661def30bc9e35cfea47c056e68e8411fcb5
8c0a92d54ea8b8c07648d454529cba588081ce12
/state_representation/models.py
d188587f67f71398114b92c664cd38833f9c7055
[ "MIT" ]
permissive
araffin/robotics-rl-srl
79c1e7f34b5a28367fabbe80e7cfe81e7693cd4c
eae7c1ab310c79662f6e68c0d255e08641037ffa
refs/heads/master
2023-08-25T17:09:16.050197
2021-04-05T18:43:17
2021-04-05T18:43:17
118,007,580
590
102
MIT
2019-08-09T09:30:36
2018-01-18T16:23:17
Python
UTF-8
Python
false
false
8,472
py
models.py
import json import pickle as pkl from collections import OrderedDict import numpy as np import torch as th import srl_zoo.preprocessing as preprocessing from srl_zoo.models import CustomCNN, ConvolutionalNetwork, SRLModules, SRLModulesSplit from srl_zoo.preprocessing import preprocessImage, getNChannels from srl_zoo....
dc1121bacbbc5c3bd9172e0d0ebef3cc7a3f2889
982a904a83e2caa7acd8b2ac19cfc5a4fb75bde1
/examples/ch13_TwitterV2/snippets_ipynb/tweetlistener.py
b01654d9bd316b830da46d4cfa55ea43bb3e1a26
[ "LicenseRef-scancode-warranty-disclaimer" ]
no_license
pdeitel/IntroToPython
73bc349fe40701b51f49d17d7fbc5b9985885e48
978093febf2ed849a2049e0b0860d2c4998306f7
refs/heads/master
2023-02-09T08:04:15.313698
2023-02-03T23:23:42
2023-02-03T23:23:42
173,331,130
249
371
null
2022-12-04T06:52:26
2019-03-01T16:08:37
null
UTF-8
Python
false
false
2,857
py
tweetlistener.py
# tweetlistener.py """StreamListener subclass that processes tweets as they arrive.""" from deep_translator import GoogleTranslator import tweepy class TweetListener(tweepy.StreamingClient): """Handles incoming Tweet stream.""" def __init__(self, bearer_token, limit=10): """Create instance va...
239860f31588adbfe2a0522241de74e1ff070bcc
0820f480ec00bbe3e7e75c38ee2c13adf1ace6ed
/zmq/backend/cffi/_poll.py
34734b63e49b392dbf6b0492eac425acdb115dc8
[ "BSD-3-Clause", "LGPL-3.0-only", "LicenseRef-scancode-zeromq-exception-lgpl-3.0" ]
permissive
zeromq/pyzmq
9f2258d3bf1211cec9b12b4b0272e9ccd85b2ac5
9bee18aa4112bb6351c226c2000c7a858db386ab
refs/heads/main
2023-08-31T08:20:21.445949
2023-08-10T09:28:41
2023-08-10T09:28:41
788,264
2,944
656
BSD-3-Clause
2023-09-05T06:32:54
2010-07-21T07:20:37
Python
UTF-8
Python
false
false
2,886
py
_poll.py
"""zmq poll function""" # Copyright (C) PyZMQ Developers # Distributed under the terms of the Modified BSD License. try: from time import monotonic except ImportError: from time import clock as monotonic import warnings from zmq.error import InterruptedSystemCall, _check_rc from ._cffi import ffi from ._cf...
6b8e123300a3c9a0abfd27ef1021b34a23628193
568a2667a1b6ec33a0dec9ac01844ef74e11ab2b
/landlab/components/depth_dependent_diffusion/__init__.py
b5daec846193534fda6bc1bb71320ad66722d5e7
[ "MIT" ]
permissive
landlab/landlab
0bcc9b7b1d8c4d7f79bad687e1526b80ebc83728
1cd72e5832ece1aa922cd1b239e2e94ed0f11f8b
refs/heads/master
2023-08-31T07:24:21.545523
2023-08-29T18:51:06
2023-08-29T18:51:06
19,599,383
326
313
MIT
2023-09-14T19:12:23
2014-05-09T04:52:50
Python
UTF-8
Python
false
false
112
py
__init__.py
from .hillslope_depth_dependent_linear_flux import DepthDependentDiffuser __all__ = ["DepthDependentDiffuser"]
5c12add8e92dc11eaf4165441f4cb7441a95b4a4
dd91ea0a9b143371cfb186eaa74333da9488510d
/python/interpret-core/interpret/visual/_interactive.py
6a35e55e2d95a544c3ff33f7c7bed6ba1cae2d94
[ "MIT" ]
permissive
interpretml/interpret
6c6ef2f2e6a6bb9c43633251089385cc44affe16
e6f38ea195aecbbd9d28c7183a83c65ada16e1ae
refs/heads/develop
2023-09-03T17:42:50.611413
2023-08-28T18:16:10
2023-08-28T18:16:10
184,704,903
3,731
472
MIT
2023-08-15T04:31:34
2019-05-03T05:47:52
C++
UTF-8
Python
false
false
7,582
py
_interactive.py
# Copyright (c) 2023 The InterpretML Contributors # Distributed under the MIT software license import sys import logging from ..provider import AutoVisualizeProvider, PreserveProvider, DashProvider _log = logging.getLogger(__name__) _current_module = sys.modules[__name__] _current_module._preserve_provider = None _...
231df3285e1e697268436aceeea9ba34379cd859
09c87fe780df6d1f9eb33799ed516a0bbd7ab1e3
/src/layout/line_crosses_shape.py
1f0c5ca2b3aa8211725d1dcd7bf28fccf76e7626
[]
no_license
abulka/pynsource
8ad412b85dc1acaeb83d7d34af8cc033c6baba91
979436525c57fdaeaa832e960985e0406e123587
refs/heads/master
2023-04-13T12:58:02.911318
2023-04-11T09:56:32
2023-04-11T09:56:32
32,249,425
271
46
null
2022-10-10T04:36:57
2015-03-15T07:21:43
Python
UTF-8
Python
false
false
1,643
py
line_crosses_shape.py
# line intersecting with a shape? # testing only from graph import GraphNode from .line_intersection import FindLineIntersection # This function was migrated into GraphNode def CalcLineIntersectionsWithNode(line_start_point, line_end_point, node): result = [] for nodeline in node.lines: result.appen...
5595c450e876f9123fd37677387e54d799d65c21
76fb0a3cfc9d9362ab29174bd1d55e888ea4d7f6
/tfx/examples/custom_components/slack/slack_component/executor.py
be7a2a2c4459c55a932fdca60893a35308e2bd0a
[ "Apache-2.0" ]
permissive
tensorflow/tfx
0cfc9c55171352ecc98c9dfa8ffe976c689d7073
1b328504fa08a70388691e4072df76f143631325
refs/heads/master
2023-08-30T11:56:50.894497
2023-08-29T22:47:19
2023-08-29T22:48:26
169,116,405
2,116
899
Apache-2.0
2023-09-14T21:51:42
2019-02-04T17:14:36
Python
UTF-8
Python
false
false
9,202
py
executor.py
# Copyright 2019 Google LLC. 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...
8dc96b519573d9326f171028d0ec5d69b0019e3a
0c239c1de121e89281fe5cb3cdb473437acbbb85
/sahara/tests/unit/base.py
7954d0d2712af20ea1c08fd593a0314c5874b7cd
[ "Apache-2.0" ]
permissive
openstack/sahara
6fdee5d633cf53219e77d6b7bc7f92712f158b3e
a806a536b623b4ce1a345d5718505a5f04c987f4
refs/heads/master
2023-08-30T02:09:07.178932
2023-08-09T05:48:53
2023-08-09T05:48:53
13,348,302
165
120
Apache-2.0
2021-01-28T06:06:41
2013-10-05T16:26:15
Python
UTF-8
Python
false
false
2,331
py
base.py
# Copyright (c) 2013 Mirantis Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writ...
9525cfcdc8743a41ec8d35df963b2792e50a4917
6c066611b11a8de5e2c22c30cfcc578a4c49edce
/GLSL/Channel/Shuffle_AtoRGB_GL/Shuffle_AtoRGB_GL.py
674bf7abb2f0ebd32f32bc3ab86944046e2c99a9
[]
no_license
NatronGitHub/natron-plugins
ad2d9227637b4b86b45f92856fa54d327872a0a6
b0c499fb6391024f54be9f26ed41b5cf7475d574
refs/heads/master
2022-12-12T10:02:20.252222
2022-11-30T02:29:04
2022-11-30T02:29:04
130,576,224
332
67
null
2022-11-30T02:29:05
2018-04-22T14:39:29
Python
UTF-8
Python
false
false
10,605
py
Shuffle_AtoRGB_GL.py
# -*- coding: utf-8 -*- # DO NOT EDIT THIS FILE # This file was automatically generated by Natron PyPlug exporter version 10. # Hand-written code should be added in a separate file named Shuffle_AtoRGB_GLExt.py # See http://natron.readthedocs.org/en/master/devel/groups.html#adding-hand-written-code-callbacks-etc # Not...
3c071479a8b582263b84655e39192945a1c9dec2
64e2c522afd6a87a56e1ce6279299821b251243b
/App/Distribute/build_dmg.py
7d171c135a78545394f7a7a2ebc3b7f01c0efedc
[ "Apache-2.0" ]
permissive
justvanrossum/fontgoggles
57a151048e4be41defc63a761808abbdd8e8053e
98c56975e81202ca0bdb73716f503a3172915c31
refs/heads/master
2023-09-02T02:36:02.915460
2023-05-23T06:54:29
2023-05-23T06:54:29
225,787,392
367
53
Apache-2.0
2023-09-11T17:27:16
2019-12-04T05:34:43
Python
UTF-8
Python
false
false
1,460
py
build_dmg.py
import os import subprocess import sys import tempfile appPath = os.path.abspath(sys.argv[1]) appFileName = os.path.basename(appPath) appName, _ = os.path.splitext(appFileName) dmgPath = os.path.abspath(sys.argv[2]) if os.path.exists(dmgPath): os.remove(dmgPath) with tempfile.TemporaryDirectory() as imgPath: ...
db38bb57faf018e512a3383c7bf46860701521bc
88d555a009f9075e59177fac70036892f397b439
/bin/borzoi_bench_trip_folds.py
2c24e638b274422763763d1ed8d555a58c7d09e0
[ "Apache-2.0" ]
permissive
calico/basenji
f9f406971d355dda81821dcf274696a7d27e332d
615b9eec8a591783b16d959029ddad08edae853d
refs/heads/master
2023-09-04T11:14:15.620786
2023-07-27T00:05:13
2023-07-27T00:05:13
96,346,574
326
143
Apache-2.0
2023-08-16T00:36:32
2017-07-05T17:54:18
Python
UTF-8
Python
false
false
7,202
py
borzoi_bench_trip_folds.py
#!/usr/bin/env python # Copyright 2019 Calico LLC # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # https://www.apache.org/licenses/LICENSE-2.0 # Unless required by applicable law or agr...
ea0328e7a848cc7b946fa1bb127e78c1e9c1401a
6c2dbc8d4e536220fb3b1cc72aa8104aea8b0698
/tests/test_issues/test_bot_context_is_usable.py
f3db6b9976f325a63fa89af81c95e34af158754a
[ "MIT" ]
permissive
aiogram/aiogram
f8f98a0beb63bd4d93ea810638d5792569bf354b
04bd0c9e7c5421c060183b90d515050f41377bc1
refs/heads/dev-3.x
2023-08-30T21:20:13.018174
2023-08-28T23:01:54
2023-08-28T23:01:54
111,210,856
4,287
1,250
MIT
2023-09-10T21:34:03
2017-11-18T14:11:13
Python
UTF-8
Python
false
false
880
py
test_bot_context_is_usable.py
from datetime import datetime from aiogram import Dispatcher, Router from aiogram.enums import ChatType from aiogram.filters import Command from aiogram.methods import SendMessage from aiogram.types import Chat, Message, Update, User from tests.mocked_bot import MockedBot issue_router = Router() @issue_router.messa...
2c91652cf5c20dae2c0c6523cac1b98e24ba190a
92ae735d5dc6f6a094daedbd32614e714d0b8c4a
/newsletter/tests/__init__.py
ff7f59c2c71a65cae5e7b39bf99d8303758f0c71
[ "MIT" ]
permissive
Williano/Final-Senior-Year-Project-
3b01ac9fd85753720b01c2245cf9b71648aad35d
4bd988575537b37b5cf852b616d3db5666c95e7f
refs/heads/master
2023-08-07T16:11:42.778492
2023-06-05T04:59:06
2023-06-05T04:59:06
121,346,340
173
60
MIT
2023-06-05T04:59:07
2018-02-13T06:17:16
Python
UTF-8
Python
false
false
588
py
__init__.py
from .test_web import ( AnonymousNewsletterListTestCase, UserNewsletterListTestCase, SubscribeTestCase, UserSubscribeTestCase, InvisibleAnonymousSubscribeTestCase, InvisibleUserSubscribeTestCase, AnonymousSubscribeTestCase, ArchiveTestcase, ActivationEmailSentUrlTestCase, ActionActivatedUrlTestCase ...
215ea68623c635403d7cebec280f23726f26f3d6
96dcea595e7c16cec07b3f649afd65f3660a0bad
/homeassistant/components/tibber/__init__.py
6bd68e17c4d2722bff3fdd7cfbffd88636e478f7
[ "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
2,719
py
__init__.py
"""Support for Tibber.""" import asyncio import logging import aiohttp import tibber from homeassistant.config_entries import ConfigEntry from homeassistant.const import ( CONF_ACCESS_TOKEN, CONF_NAME, EVENT_HOMEASSISTANT_STOP, Platform, ) from homeassistant.core import Event, HomeAssistant from homea...
2976e04faf5bca8b5b452e4b2c15a8540eddc9dc
a85c048a4ae820beb2bc265d1845e23842fc8c2a
/learning/pytorch/models/train.py
4b8d5368334e756cd1f563376e52f19032f85a0d
[ "MIT" ]
permissive
ithemal/Ithemal
e549856538c7b1f2c50d0f40b51b9bb97baf6379
b3c39a8942b8b3d92c0fa81815b34fa9b6cbe683
refs/heads/master
2021-12-10T11:50:00.058462
2021-11-30T16:18:30
2021-11-30T16:18:30
151,625,735
124
33
MIT
2020-06-26T15:11:01
2018-10-04T19:33:52
Python
UTF-8
Python
false
false
11,676
py
train.py
import sys import os sys.path.append(os.path.join(os.environ['ITHEMAL_HOME'], 'learning', 'pytorch')) import torch import torch.nn as nn from enum import Enum import common_libs.utilities as ut import data.data_cost as dt import torch.autograd as autograd import torch.optim as optim import math import numpy as np impo...
59d1f48a414c5fa3c37eea591fce0f46dfebaf6a
f9d564f1aa83eca45872dab7fbaa26dd48210d08
/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/bandwidth.py
e12e5b577b9635985865795ab5ddc0749330f083
[ "Apache-2.0" ]
permissive
huaweicloud/huaweicloud-sdk-python-v3
cde6d849ce5b1de05ac5ebfd6153f27803837d84
f69344c1dadb79067746ddf9bfde4bddc18d5ecf
refs/heads/master
2023-09-01T19:29:43.013318
2023-08-31T08:28:59
2023-08-31T08:28:59
262,207,814
103
44
NOASSERTION
2023-06-22T14:50:48
2020-05-08T02:28:43
Python
UTF-8
Python
false
false
42,585
py
bandwidth.py
# coding: utf-8 import six from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization class Bandwidth: """ Attributes: openapi_types (dict): The key is attribute name and the value is attribute type. attribute_map (dict): The key is attribute name ...
5568ae7c2aacfeb53f3eaaf7f8725885b2b5b2c8
ebac806d8289e6268ebd4b8075e682bdaeff860b
/tests/draw/svg/test_patterns.py
28c8b7bd1dd1a16e51a833d43516b41330bfafe1
[ "BSD-3-Clause" ]
permissive
Kozea/WeasyPrint
af1613ea28ba54bf14ac2cbba37c4832393d71e7
6977e79ce94ef605d39276702e3484d2a9570b35
refs/heads/master
2023-08-11T07:08:47.828375
2023-08-09T18:14:07
2023-08-09T18:23:15
2,179,572
5,685
739
BSD-3-Clause
2023-09-04T20:52:57
2011-08-09T14:14:24
Python
UTF-8
Python
false
false
7,333
py
test_patterns.py
"""Test how SVG simple patterns are drawn.""" from ...testing_utils import assert_no_logs @assert_no_logs def test_pattern(assert_pixels): assert_pixels(''' BBrrBBrr BBrrBBrr rrBBrrBB rrBBrrBB BBrrBBrr BBrrBBrr rrBBrrBB rrBBrrBB ''', ''' <...
c12fcd57ddd9161c3f09ddffac37777c47cf5992
ec85250addb7357dfe7bb3e0680d53fc7b0fd8fb
/python_modules/dagster-graphql/dagster_graphql/implementation/utils.py
63fa7403b299a3f45d93d311b78325bb06040478
[ "Apache-2.0" ]
permissive
dagster-io/dagster
6adb5deee8bcf3ea1866a6a64f2ed81e1db5e73a
fe21995e0402878437a828c6a4244025eac8c43b
refs/heads/master
2023-09-05T20:46:08.203794
2023-09-05T19:54:52
2023-09-05T19:54:52
131,619,646
8,565
1,154
Apache-2.0
2023-09-14T21:57:37
2018-04-30T16:30:04
Python
UTF-8
Python
false
false
8,074
py
utils.py
import sys from contextlib import contextmanager from contextvars import ContextVar from types import TracebackType from typing import ( TYPE_CHECKING, Any, Callable, Dict, Iterable, Iterator, List, Mapping, NamedTuple, Optional, Sequence, Tuple, Type, TypeVar, ...
57236855824a0b30ad77865139280a3913c4dd65
90b358151d9da221b06ef059313ef607b0e66e45
/tests/bdd/conftest.py
c6a7cd5a6e57b586b9b2d19104f5b6c1df4d847e
[]
no_license
truenas/webui
7967a33403bb718ee5bb9d72b616a9abb7bb9ba5
6fdbd450da688500c92e6b15710237caa5227eb4
refs/heads/master
2023-09-04T15:00:20.663494
2023-09-04T13:28:07
2023-09-04T13:28:07
90,044,084
176
173
null
2023-09-14T17:21:37
2017-05-02T14:42:01
TypeScript
UTF-8
Python
false
false
8,274
py
conftest.py
# !/usr/bin/env python3 import os import pytest import time import xpaths from configparser import ConfigParser from platform import system from selenium import webdriver from selenium.webdriver.common.keys import Keys from selenium.webdriver.common.action_chains import ActionChains from selenium.webdriver.common.desi...
139293647710f8d180195adeb189c85bca9c0816
9a46907c545a3d2e09924d1431ade1cd448e1de6
/DisplayUtils/TileDisplay.py
d4840cb32697422738e21013e1924c7cacff2ea4
[]
no_license
kazmiekr/GasPumpOCR
126cf1bce517c53b1bfe5fcda4b8a3a23adf90d4
3ef1386f853176b514708cc6b30d332b3b8d5e9f
refs/heads/master
2022-08-19T21:40:11.048720
2022-07-20T11:20:54
2022-07-20T11:20:54
86,585,608
154
57
null
2022-07-20T11:20:55
2017-03-29T13:30:13
Python
UTF-8
Python
false
false
825
py
TileDisplay.py
import cv2 start_y = 20 current_stack_y = start_y current_stack_x = 0 current_stack_width = 0 min_width = 200 max_stack_y = 450 y_buffer = 25 x_buffer = 10 def show_img(name, img): global current_stack_y, current_stack_x, current_stack_width height, width = img.shape[:2] if width < min_width: wid...
4db0d817bf89b851c4b898bffb228ccc6558d045
eb9f655206c43c12b497c667ba56a0d358b6bc3a
/python/helpers/typeshed/stubs/passlib/passlib/handlers/bcrypt.pyi
1823586f19369581461eaf898874f23bd7f79341
[ "Apache-2.0", "MIT" ]
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
1,816
pyi
bcrypt.pyi
from typing import Any, ClassVar import passlib.utils.handlers as uh class _BcryptCommon(uh.SubclassBackendMixin, uh.TruncateMixin, uh.HasManyIdents, uh.HasRounds, uh.HasSalt, uh.GenericHandler): # type: ignore[misc] name: ClassVar[str] checksum_size: ClassVar[int] checksum_chars: ClassVar[str] defau...
bcf2f76f5f2af3ac43e1095adc5bbda4febe7913
cadb6dceb7bb67ce47ef48b2c83f480a65d6b01a
/s3prl/problem/diarization/__init__.py
2eb4ad13b195e3f942b1c4d1733f328333352bed
[ "Apache-2.0", "CC-BY-NC-4.0" ]
permissive
s3prl/s3prl
52ec2ae4df5a61c786c122085603aa9c5e8c2681
76a9432b824f6ae3eae09a35a67782c4ed582832
refs/heads/main
2023-08-17T02:26:57.524087
2023-06-10T17:12:27
2023-06-10T17:12:27
196,905,457
1,549
398
Apache-2.0
2023-09-14T13:07:05
2019-07-15T01:54:52
Python
UTF-8
Python
false
false
100
py
__init__.py
""" Speaker Diarization recipes """ from .superb_sd import SuperbSD __all__ = [ "SuperbSD", ]
1dd6a89044ac4500fd2c016fbe0970373b4c5774
a38bf459ae380f67e0de22f7106a8df4385a7076
/gapic/configurable_snippetgen/configured_snippet.py
6f13043b8fe695cc6cf7a738a18caf644f7ae03b
[ "Apache-2.0" ]
permissive
googleapis/gapic-generator-python
73ce9d52f6f5bb2652d49b237b24263d6637b1da
4eee26181e8db9fb5144eef5a76f178c1594e48a
refs/heads/main
2023-09-04T11:12:14.728757
2023-09-02T10:34:44
2023-09-02T10:34:44
129,809,857
116
65
Apache-2.0
2023-09-12T18:57:01
2018-04-16T21:47:04
Python
UTF-8
Python
false
false
9,620
py
configured_snippet.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 writing, s...
096f658bdc54726feea445556a51312c1d06efe5
9ffe3f09f0195e2f7e54eedec02b40374bffd5f9
/tests/test_errors.py
dd38245d743bf049471295c159b3eef7d567b2a5
[ "BSD-3-Clause" ]
permissive
aromanovich/jsl
63d36d42cd93e63a0b319318ec8a88cf5854142c
1b0cb1d4b0c28993dd29a7156fd0aa63a25c5030
refs/heads/master
2020-05-31T01:47:15.307376
2016-11-14T16:31:57
2016-11-14T16:31:57
30,669,230
244
30
null
2017-07-24T18:25:35
2015-02-11T20:55:02
Python
UTF-8
Python
false
false
9,856
py
test_errors.py
import pytest from jsl.document import Document from jsl.fields import (ArrayField, StringField, IntField, BaseSchemaField, DictField, OneOfField, AnyOfField, AllOfField, NotField, DocumentField) from jsl.roles import DEFAULT_ROLE, Var from jsl.exceptions import (SchemaG...
6dd9897eac8e1c887a8d97e42a06b39249883ebc
0760fb4901a75766921a205b55686d6d6f049b30
/python/ray/_private/thirdparty/dacite/data.py
560cdf8beddb082122f26bb548329ec95f23581d
[ "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
52
py
data.py
from typing import Dict, Any Data = Dict[str, Any]
55bc350ad05e6f66b2abfbdab159f44896e9806c
df7b40e95718ac0f6071a0ba571b42efc81cf6de
/configs/_base_/models/cd_vit.py
c1513db0484f790549fbc12919b5b42b4a6892bc
[ "Apache-2.0" ]
permissive
shinianzhihou/ChangeDetection
87fa2c498248e6124aeefb8f0ee8154bda36deee
354e71234bef38b6e142b6ba02f23db958582844
refs/heads/master
2023-01-23T20:42:31.017006
2023-01-09T11:37:24
2023-01-09T11:37:24
218,001,748
162
29
Apache-2.0
2022-11-03T04:11:00
2019-10-28T08:41:54
Python
UTF-8
Python
false
false
934
py
cd_vit.py
norm_cfg = dict(type='SyncBN', requires_grad=True) model = dict( type='EncoderDecoder', backbone=dict( type='CDVit', backbone_choice='resnet18', num_images=2, image_size=224, feature_size=28, patch_size=4, in_channels=128, out_channels=32, ...
167e69a0be7d29e02306f233ec68378bdb0faa44
eb9f655206c43c12b497c667ba56a0d358b6bc3a
/python/testData/refactoring/inlineFunction/simple/main.after.py
6427fa328e8f754f6c81e520ea3b26cfb5094f40
[ "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
81
py
main.after.py
def foo(arg): local = arg + arg return local local = 42 + 42 x = local
6f4133446d32f954cabcdcbfd9546a690a378d09
975b2d421d3661e6770b601929d5f11d981d8985
/msgraph/generated/models/notification_template_branding_options.py
6813530914d5dad4525c1ebf947de9810efb3c97
[ "MIT" ]
permissive
microsoftgraph/msgraph-sdk-python
a7c551b85daadeebf76ec4ae12668664ea639b42
27de7ccbe688d7614b2f6bde0fdbcda4bc5cc949
refs/heads/main
2023-09-03T21:45:27.989672
2023-08-31T06:22:18
2023-08-31T06:22:18
534,665,999
135
18
MIT
2023-09-14T11:04:11
2022-09-09T14:00:17
Python
UTF-8
Python
false
false
889
py
notification_template_branding_options.py
from enum import Enum class NotificationTemplateBrandingOptions(str, Enum): # Indicates that no branding options are set in the message template. None_ = "none", # Indicates to include company logo in the message template. IncludeCompanyLogo = "includeCompanyLogo", # Indicates to include company na...
815136b98459d0a622518645be06bf0fc81f3703
de0c523399eaf24544f7c0cbd61fe8d3c69c84f8
/custom_mutators/examples/wrapper_afl_min.py
5cd6003188e714f864629bf64060aed0b16eb369
[ "Apache-2.0" ]
permissive
AFLplusplus/AFLplusplus
d45b697b8f2f767d29f4d886a2f9c5bd9ad6c032
11a622c63d70c9ca16c9847418b88992139aa892
refs/heads/stable
2023-09-01T16:24:45.928708
2023-08-31T12:51:42
2023-08-31T12:51:42
189,044,704
3,470
872
Apache-2.0
2023-09-13T13:56:14
2019-05-28T14:29:06
C
UTF-8
Python
false
false
3,073
py
wrapper_afl_min.py
#!/usr/bin/env python from XmlMutatorMin import XmlMutatorMin # Default settings (production mode) __mutator__ = None __seed__ = "RANDOM" __log__ = False __log_file__ = "wrapper.log" # AFL functions def log(text): """ Logger """ global __seed__ global __log__ global __log_file__ if __...
49d0ec0d7de01a857191c8e5a51651bf60ec7d32
20f125a17856c1251727314c571091a59bc770f0
/Chapter 09/9.09_chat_server.py
c8ef4ea7ab2b40f5c98598d071c3c577d22a79ea
[ "MIT" ]
permissive
PacktPublishing/Tkinter-GUI-Application-Development-Blueprints-Second-Edition
310983285d54c59bdd02e69b9a913aa9372c869a
1e160c0575028e446295c121a84142164ee5ced2
refs/heads/master
2023-07-10T05:34:39.159752
2023-01-30T09:20:16
2023-01-30T09:20:16
123,231,531
142
94
MIT
2023-07-03T23:09:32
2018-02-28T04:59:53
Python
UTF-8
Python
false
false
1,777
py
9.09_chat_server.py
""" Code illustration: 9.09 Chat server Tkinter GUI Application Development Blueprints """ import socket import threading class ChatServer: clients_list = [] last_received_message = "" def __init__(self): self.create_listening_server() def create_listening_server(self): self.se...
f42190bc172ba7887797e613eacd2baaace5d765
7f24023d365e013ec0924844c1a872edfb0c75b4
/tests/trac/test-issue-0043.py
b849824ca9672211dae999f73ea1be87d74349ed
[ "Python-2.0", "MIT", "Apache-2.0" ]
permissive
pabigot/pyxb
cd42c024607572c6363682d389e9296caf3f2857
5ee5ba54c9f702dc9c9efc2731ee547ecd4dae4a
refs/heads/next
2023-05-11T03:23:19.599756
2023-04-29T20:38:15
2023-04-29T20:45:13
20,547,850
130
63
Apache-2.0
2021-08-19T16:52:18
2014-06-06T01:49:03
Python
UTF-8
Python
false
false
877
py
test-issue-0043.py
# -*- coding: utf-8 -*- from __future__ import unicode_literals import logging if __name__ == '__main__': logging.basicConfig() _log = logging.getLogger(__name__) import pyxb.binding.generate import pyxb.binding.datatypes as xs import pyxb.binding.basis import pyxb.utils.domutils from pyxb.exceptions_ import * im...
1219520caeaad38b6288b62d2a4b7ffd503594e7
171cff4f64d99807199c830aed3863d0ac191de4
/examples/django_nyc_demo/noodles/views.py
7c4f398eab14638338c4274d068c7f48eea0a148
[ "MIT" ]
permissive
hendrix/hendrix
5e75bd61da2636659788c16e47b1172fe4d71f9c
abab0984cfd82b4513bebb05252e28c7df4cccd7
refs/heads/main
2023-08-30T03:58:34.636196
2022-11-17T15:48:57
2022-11-17T15:48:57
12,119,499
311
42
MIT
2023-02-16T07:00:13
2013-08-14T21:06:32
Python
UTF-8
Python
false
false
805
py
views.py
import time from django.shortcuts import render from hendrix.experience import crosstown_traffic, hey_joe def my_noodles(request): llama = "Another noodle" @crosstown_traffic() def my_long_thing(): for i in range(5): print("another noodle on the python console") time.sle...
6513a614abf5678c971b66e78f1f7a44df52740d
6c29f457a5e787309b344fec53c133845d8985e8
/fairscale/experimental/nn/distributed_pipeline/partition_handler.py
9ef0d919a306a852290dd13ff998d2ac6e675d0a
[ "Apache-2.0", "MIT", "BSD-3-Clause", "BSD-2-Clause" ]
permissive
facebookresearch/fairscale
eb378e44cca951e242fb58f82522d9ba8e87d732
164cc0f3170b4a3951dd84dda29c3e1504ac4d6e
refs/heads/main
2023-09-04T12:48:14.924836
2023-04-20T03:41:53
2023-04-20T03:41:53
277,899,703
2,553
257
NOASSERTION
2023-08-28T19:02:48
2020-07-07T19:02:01
Python
UTF-8
Python
false
false
12,228
py
partition_handler.py
# Copyright (c) Facebook, Inc. and its affiliates. All rights reserved. # # This source code is licensed under the BSD license found in the # LICENSE file in the root directory of this source tree. from threading import Condition from types import TracebackType from typing import Dict, List, Optional, Tuple, Type, Uni...
cab3f9d5b7db6354f1fe9b897fd5f000cd96225b
1154075d79d5d24aa4093daf3f886b5a7e446a30
/dnachisel/builtin_specifications/AvoidBlastMatches.py
3069d018acdd28b4231703721ede5dfa5cd4942f
[ "MIT" ]
permissive
Edinburgh-Genome-Foundry/DnaChisel
8548f48aec9d2f57b25bb301dda476e48696e27f
4be08c2696710387ae6d5b0346e6680a69d88c64
refs/heads/master
2023-08-28T12:50:05.308622
2023-06-06T15:30:28
2023-06-06T15:30:28
102,761,506
172
44
MIT
2023-05-30T02:20:23
2017-09-07T16:37:36
Python
UTF-8
Python
false
false
4,665
py
AvoidBlastMatches.py
"""Implementation of AvoidBlastMatches.""" from ..Specification import Specification, SpecEvaluation # from .VoidSpecification import VoidSpecification from ..biotools import blast_sequence from ..Location import Location class AvoidBlastMatches(Specification): """Enforce that the sequence has no BLAST matches ...
60e3af325026fe247206f62eb1f0e7913914d895
5ef6c8d47864f471e26b9902d61f8c687e941f05
/src/genie/libs/parser/iosxe/tests/Traceroute/cli/equal/golden_output1_expected.py
dbc23cbf9d109a1a1524861e8543f5d12fdd7f40
[ "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
3,332
py
golden_output1_expected.py
expected_output = { "traceroute": { "172.16.166.253": { "address": "172.16.166.253", "hops": { "9": { "paths": { 1: { "address": "10.2.1.2", "vrf_out_id": "2001", ...
ab1e53f342c28ddf924556db1bce28453817af4c
8ce4f36e0d1ea49ca21c648f660eb6cc7839e565
/testing/components/distributions/categorical_test.py
9c99267c302a325ea02744c1735195d7047f67fc
[ "Apache-2.0", "LicenseRef-scancode-unknown-license-reference" ]
permissive
amzn/MXFusion
9f76783609303b555148be0dd7c5c48550e2b497
af6223e9636b055d029d136dd7ae023b210b4560
refs/heads/master
2023-04-13T18:35:57.454425
2019-05-30T06:43:07
2019-05-30T06:43:07
143,047,851
109
38
Apache-2.0
2023-04-10T09:52:55
2018-07-31T17:47:44
Python
UTF-8
Python
false
false
5,676
py
categorical_test.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://www.apache.org/licenses/LICENSE-2.0 # # or in th...
bcc24c7c988cf60428b96f562c7634a6b8ab7832
ad635776bcd66a23e8047c292c3a30034034eb30
/datafiles/tests/test_converters.py
2aa91cbdfe337f6193236cf064debe6314bf849a
[ "MIT" ]
permissive
jacebrowning/datafiles
535456db853157b514faf23a235099ada567292a
cb9de0f59bd437e78d867d77ba22a4020057af2d
refs/heads/main
2023-09-01T04:22:55.766516
2023-08-21T22:43:33
2023-08-21T22:43:34
137,429,206
180
21
MIT
2023-07-25T22:03:26
2018-06-15T01:58:39
Python
UTF-8
Python
false
false
16,339
py
test_converters.py
# pylint: disable=unused-variable from dataclasses import dataclass from enum import Enum from typing import ByteString, Dict, List, Mapping, Optional, Set, TypedDict, Union import pytest from ruamel.yaml.scalarstring import LiteralScalarString from datafiles import converters, settings from . import xfail_without_...
8698e62c73596cd7e7db2d00ca4dd29d37125ca0
da1721d2783ea4d67ff4e73cee6eee71292f2ef7
/toontown/minigame/VoteResultsTrolleyPanel.py
8877dc1d97900573893d91ea47c8ab670e1d87e0
[ "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
12,121
py
VoteResultsTrolleyPanel.py
from direct.gui.DirectGui import DirectFrame, DGG, DirectLabel from direct.directnotify import DirectNotifyGlobal from toontown.toonbase import ToontownGlobals from panda3d.core import Point3, TextNode, Vec4 from toontown.minigame import TravelGameGlobals from toontown.toonbase import TTLocalizer from direct.interval.I...
75edd35370ae1d06927e0153b8b16d4fb17c8676
4129d5b10c0ac8288db205f91ed45a40b812ef5c
/photutils/isophote/harmonics.py
c57568d55a1c33c6919dc986c55fba7410bdcd90
[ "BSD-3-Clause" ]
permissive
astropy/photutils
163762aa560fd13c8a4a49aff2d6b0a522cedbcc
a6d629774c52cc82af18d0444c6e5584e5d0b492
refs/heads/main
2023-09-01T20:51:05.823954
2023-08-28T19:35:54
2023-08-28T19:35:54
2,640,766
204
130
BSD-3-Clause
2023-09-13T22:46:41
2011-10-25T02:39:28
Python
UTF-8
Python
false
false
4,261
py
harmonics.py
# Licensed under a 3-clause BSD style license - see LICENSE.rst """ This module provides tools for computing and fitting harmonic functions. """ import numpy as np __all__ = ['first_and_second_harmonic_function', 'fit_first_and_second_harmonics', 'fit_upper_harmonic'] def _least_squares_fit(optimize_func...
aeb2e4abc7a8f50ee7f8cca31fddb8df0b485115
99fa07ff170c4b5f880013a58f20a6412bd88dbf
/tests/test_loky_module.py
b9734eac4322110d120b88ec750b3720181e71a3
[ "BSD-3-Clause" ]
permissive
joblib/loky
72df8afddfc55a6d2575a13730a1973bd71a49bb
05da9a84b6bae8dd4370f553ffcd06df99b54f86
refs/heads/master
2023-08-23T00:35:06.989283
2023-06-29T13:07:28
2023-06-29T13:07:28
48,578,152
244
32
BSD-3-Clause
2023-06-29T13:43:09
2015-12-25T11:16:10
Python
UTF-8
Python
false
false
6,512
py
test_loky_module.py
import multiprocessing as mp import os import sys import shutil import tempfile import warnings from subprocess import check_output import pytest import loky from loky import cpu_count from loky.backend.context import _cpu_count_user, _MAX_WINDOWS_WORKERS def test_version(): assert hasattr( loky, "__ver...
e2f37ce1e8cdccd53b22ff106364e44163bc8808
6ff85b80c6fe1b3ad5416a304b93551a5e80de10
/Python/String/GetASCIICode.py
9ff9b981a1bbcb2388b380770200278576870628
[ "MIT" ]
permissive
maniero/SOpt
c600cc2333e0a47ce013be3516bbb8080502ff2a
5d17e1a9cbf115eaea6d30af2079d0c92ffff7a3
refs/heads/master
2023-08-10T16:48:46.058739
2023-08-10T13:42:17
2023-08-10T13:42:17
78,631,930
1,002
136
MIT
2023-01-28T12:10:01
2017-01-11T11:19:24
C#
UTF-8
Python
false
false
279
py
GetASCIICode.py
def DeslocaASCII(texto): novoTexto = '' for letra in texto: numero = ord(letra) novoTexto += chr(numero + (-23 if numero > 87 else 3)) return novoTexto print(DeslocaASCII('ABCDEFGHIJKLMNOPQRSTUVWXYZ')) #https://pt.stackoverflow.com/q/253730/101
78f5c68ea393218413695b9c061936cb3a9c69f3
1fc0cc24dfb0231f35a99ae6ced7b01bb2814830
/tests/allure_pytest/acceptance/step/test_step_with_several_step_inside_thread.py
88304eeeeb9dafcc67ee944b77e180a393d84f1a
[ "Apache-2.0" ]
permissive
allure-framework/allure-python
54dd07bbde954c0a75b47443ea5fa892a730da29
200b7175218f27fef576d77c2ec791d0ea5ebe90
refs/heads/master
2023-08-23T09:14:15.292120
2023-08-08T16:19:36
2023-08-08T16:19:36
79,346,720
672
261
Apache-2.0
2023-08-25T09:58:13
2017-01-18T14:17:16
Python
UTF-8
Python
false
false
2,546
py
test_step_with_several_step_inside_thread.py
from hamcrest import assert_that from tests.allure_pytest.pytest_runner import AllurePytestRunner from allure_commons_test.report import has_test_case from allure_commons_test.result import has_step def test_step_with_thread(allure_pytest_runner: AllurePytestRunner): """ >>> from concurrent.futures import Th...
a305f74daeea8d335e60d414ece09ad2fa1f5d5d
eb9f655206c43c12b497c667ba56a0d358b6bc3a
/python/helpers/typeshed/stubs/braintree/braintree/subscription_gateway.pyi
766dc57e6728f98e44895e0649de21ae2646f5ca
[ "Apache-2.0", "MIT" ]
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
958
pyi
subscription_gateway.pyi
from typing import Any from braintree.error_result import ErrorResult as ErrorResult from braintree.exceptions.not_found_error import NotFoundError as NotFoundError from braintree.resource import Resource as Resource from braintree.resource_collection import ResourceCollection as ResourceCollection from braintree.subs...
5da286def5a0ed836f5e96adec75a4165be06df4
f766f1e264361c0518ae18fcc6472bc991482c06
/tests/parse_datetime_test.py
e40507a8253e4f3c799dfeb25182c0057bd78a0c
[ "MIT" ]
permissive
pimutils/khal
583c10fe4ac280255bab904f0fe083b150c19a13
8fcfc8f34ffa541de4579c6e74da1a3b8cb9905e
refs/heads/master
2023-08-31T08:53:50.534014
2023-08-15T06:46:28
2023-08-15T08:50:07
12,357,974
2,041
206
MIT
2023-09-13T05:41:29
2013-08-25T11:22:27
Python
UTF-8
Python
false
false
21,766
py
parse_datetime_test.py
import datetime as dt from collections import OrderedDict import pytest from freezegun import freeze_time from khal.exceptions import DateTimeParseError, FatalError from khal.icalendar import new_vevent from khal.parse_datetime import ( construct_daynames, eventinfofstr, guessdatetimefstr, guessrangef...
4948903651582314a75534da4ac5255ae77d5b20
8da41ffa2ccb09e04f95db0f211e0ed69a42a352
/courses/machine_learning/deepdive2/end_to_end_ml/labs/serving/application/lib/rsa/randnum.py
310acaa62074b42830b020ab3fba76135dcc5a46
[ "Apache-2.0" ]
permissive
GoogleCloudPlatform/training-data-analyst
808af9b09a0e5f5657c4ca76cdd205f808d76d89
975a95032ce5b7012d1772c7f1f5cfe606eae839
refs/heads/master
2023-09-05T19:50:59.722334
2023-09-04T14:25:33
2023-09-04T14:25:33
56,459,948
7,311
5,917
Apache-2.0
2023-09-13T21:45:54
2016-04-17T21:39:27
Jupyter Notebook
UTF-8
Python
false
false
2,643
py
randnum.py
# -*- coding: utf-8 -*- # # Copyright 2011 Sybren A. Stüvel <sybren@stuvel.eu> # # 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 # # Un...
dbc5b9375a91dad64a55bdedeec3e4a1424eabab
7bea5adf7d6284fbad0131d665e957d58adfe7c7
/allauth/socialaccount/providers/notion/provider.py
77e2bdb67b17a36a415ec1b1a16a112da4304618
[ "MIT" ]
permissive
pennersr/django-allauth
50c9e71c3666785368e92ed9e19ea0f6a5438cd2
6b8911a5ebbabda0d446f2743bd4d00d250ed500
refs/heads/main
2023-09-03T16:48:10.988418
2023-09-02T08:00:53
2023-09-02T08:00:53
976,994
7,719
3,481
MIT
2023-09-14T15:06:57
2010-10-10T20:10:52
Python
UTF-8
Python
false
false
1,621
py
provider.py
from allauth.account.models import EmailAddress from allauth.socialaccount.providers.base import ProviderAccount from allauth.socialaccount.providers.oauth2.provider import OAuth2Provider class NotionAccount(ProviderAccount): def get_user(self): return self.account.extra_data["owner"]["user"] def get...
9e52814e677ee64a470d6091862ab8f714bf29d4
1742b6719b988e5519373002305e31d28b8bd691
/sdk/python/pulumi_aws/elasticache/get_cluster.py
673f34216f7a80b4bfd8829afa9c6b30899c0de6
[ "MPL-2.0", "BSD-3-Clause", "Apache-2.0" ]
permissive
pulumi/pulumi-aws
4f7fdb4a816c5ea357cff2c2e3b613c006e49f1a
42b0a0abdf6c14da248da22f8c4530af06e67b98
refs/heads/master
2023-08-03T23:08:34.520280
2023-08-01T18:09:58
2023-08-01T18:09:58
97,484,940
384
171
Apache-2.0
2023-09-14T14:48:40
2017-07-17T14:20:33
Java
UTF-8
Python
false
false
18,099
py
get_cluster.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...
09e77eec51dee7dd35a2a8205f5e23285188e30d
dd616b888494f2d848447d360d883c9c9b4bdbf9
/cantoolz/modules/vircar/ecu_engine.py
20221c36c2435a7910de1738295479f9232738fa
[ "BSD-3-Clause", "MIT", "Apache-2.0" ]
permissive
CANToolz/CANToolz
2b25730770ac6a97c671067bf975a52d58f1066c
82d330b835b90598f7289cdfe083f7f66309f915
refs/heads/master
2023-05-14T14:36:54.135516
2021-02-24T07:26:06
2021-02-24T07:26:06
99,575,229
247
49
NOASSERTION
2023-05-07T13:18:09
2017-08-07T12:24:35
Python
UTF-8
Python
false
false
12,965
py
ecu_engine.py
import time import random from cantoolz.can import CANMessage from cantoolz.uds import UDSMessage from cantoolz.isotp import ISOTPMessage from cantoolz.module import CANModule class ecu_engine(CANModule): name = "Engine emulator for vircar" help = """ This module emulating car engine. Init params ...
5e5685c019634917a9c0bb3c0ed79fe146f7b013
cbc33d3a1e59885077bc8ec95a92127afea3d000
/test/test_natural.py
6335526f0ae10d2328dfa454415701ef8148eb3b
[]
no_license
cortesi/scurve
4031f03d131f79021cbc18124334629e9a449709
a59e8335c48a7cda7043fbd1b28bcae1abc9645d
refs/heads/master
2020-10-18T15:05:08.377065
2015-03-03T08:59:56
2015-03-03T08:59:56
455,059
373
57
null
2021-09-22T11:27:53
2010-01-01T08:25:49
Python
UTF-8
Python
false
false
1,109
py
test_natural.py
from scurve import natural, utils import tutils class TestNatural: def test_point(self): tutils.is_complete(natural.Natural(1, 1)) tutils.is_complete(natural.Natural(1, 3)) tutils.is_complete(natural.Natural(2, 3)) tutils.is_complete(natural.Natural(3, 3)) tutils.is_complet...
173030f097852a80f2fcb67688f5d10b9589a939
30c78b7de2d7580916a83507cb01e20432e2ce32
/lab_classes/gprs/load_bgplvm_dimension_select.py
d1bd9212667829f5218deb739105b4466629310e
[ "BSD-3-Clause" ]
permissive
SheffieldML/notebook
cc3611117cc7604061758a2bd08f7a5faa96e31e
4051844f4b79246c5fd628f6109a551d1c45c863
refs/heads/master
2023-04-06T07:36:30.839922
2023-04-02T20:43:56
2023-04-02T20:43:56
19,849,949
158
118
BSD-3-Clause
2023-04-02T20:43:57
2014-05-16T08:38:08
Jupyter Notebook
UTF-8
Python
false
false
1,199
py
load_bgplvm_dimension_select.py
import urllib2, os, sys model_path = 'digit_bgplvm_demo.pickle' # local name for model file status = "" re = 0 if len(sys.argv) == 2: re = 1 if re or not os.path.exists(model_path): # only download the model new, if it was not already url = 'http://staffwww.dcs.sheffield.ac.uk/people/J.Hensman/digit_bgplvm_...
2896ed4db7be67ba3eff489d8e54ffb830b53251
4594a6e6ad395e253a7d9f77dcd7d2e201ef5519
/examples/simulations/regression_sim.py
a4126ce95e5b1151b6ee9d4f2fb5bb4d8b3106cb
[ "Apache-2.0" ]
permissive
stanfordmlgroup/ngboost
eb6e7f0a5c365d037bcbf21e2dcdb1eec419624e
00954f31fcc09ee342898fdba5e1e9668739ea60
refs/heads/master
2023-08-27T17:37:10.749035
2023-08-22T23:20:07
2023-08-22T23:20:07
138,227,534
1,543
259
Apache-2.0
2023-09-08T21:29:52
2018-06-21T22:22:40
Python
UTF-8
Python
false
false
1,565
py
regression_sim.py
from argparse import ArgumentParser import numpy as np from matplotlib import pyplot as plt from sklearn.metrics import r2_score from ngboost.distns import Normal from ngboost.evaluation import * from ngboost.learners import default_linear_learner from ngboost.ngboost import NGBoost if __name__ == "__main__": a...
15ba9467e3ef87716de4173d7e16fa630e8a5e5d
36dfd21c845f37d1b01c093715d6688513aec704
/src/clusto/test/drivers/resourcetests.py
567cbefc83b97b412a9a0a2e8ee826e5e5bfb271
[]
permissive
clusto/clusto
f992040ef935cc43a9f967d1412888f56ec82f71
7ac64e94482cc71075227dacda48953439f46dab
refs/heads/master
2021-07-15T21:51:23.247277
2021-03-13T13:23:54
2021-03-13T13:23:54
1,432,240
246
63
BSD-3-Clause
2021-03-13T13:12:45
2011-03-02T20:17:28
Python
UTF-8
Python
false
false
2,816
py
resourcetests.py
from clusto.test import testbase from clusto.drivers import * class ResourceManagerTests(testbase.ClustoTestBase): def testAllocate(self): rm = ResourceManager('test') d = Driver('d') rm.allocate(d, 'foo') self.assertEqual(rm.owners('foo'), [d]) def testResourceCount(se...
6121cbddbf7a357306e9c86063f11e5b742dabd8
37e88c82b29bb92819ee7f82d6d24d778f78ab99
/core/string_utils.py
3826365c9c040180635be16dacdd4a8fe37c313a
[ "Apache-2.0" ]
permissive
phage-nz/ph0neutria
134fc27b074618bd4b6a7685235ec5dd525eebbb
865aae37d8503d3f580f6762aa67f65958355ba7
refs/heads/master
2022-07-04T15:14:29.136172
2020-04-24T23:37:23
2020-04-24T23:37:23
70,286,606
281
65
Apache-2.0
2020-04-12T06:46:57
2016-10-07T22:12:20
Python
UTF-8
Python
false
false
6,722
py
string_utils.py
#!/usr/bin/python3 from .config_utils import get_base_config from fuzzywuzzy import fuzz from .log_utils import get_module_logger from tldextract import extract, TLDExtract from urllib.parse import urlparse import Levenshtein import os import re import statistics import string import sys CDIR = os.path.dirname(os....
66a27f7cd68f2d7681553ea9fd4f40caae47c8ee
d91d19da3589c3f69a834bbb9834386e80f100e0
/datashader/data_libraries/dask_cudf.py
9e0f7634d46116463cbdd561670b470e96d52b68
[]
permissive
holoviz/datashader
11d518371e974c02ba3843871e3e0905e0c83956
b510594eb771d14cff3b69efca8ddd37ca3a1046
refs/heads/main
2023-08-18T13:55:24.214980
2023-08-17T08:45:48
2023-08-17T08:45:48
48,504,165
1,040
133
BSD-3-Clause
2023-09-11T09:51:30
2015-12-23T18:02:20
Python
UTF-8
Python
false
false
368
py
dask_cudf.py
from __future__ import annotations from datashader.data_libraries.dask import dask_pipeline from datashader.core import bypixel import dask_cudf @bypixel.pipeline.register(dask_cudf.DataFrame) def dask_cudf_pipeline(df, schema, canvas, glyph, summary, *, antialias=False): return dask_pipeline(df, schema, canvas, ...
0360c3bd38473c122f40a00bf5831bde7f468814
11cd362cdd78c2fc48042ed203614b201ac94aa6
/desktop/core/ext-py3/boto-2.49.0/tests/mturk/test_disable_hit.py
2d9bd9bfc00c30086683c94f601a93df3b6bf79b
[ "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", "GPL-3.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
324
py
test_disable_hit.py
from tests.mturk.support import unittest from common import MTurkCommon from boto.mturk.connection import MTurkRequestError class TestDisableHITs(MTurkCommon): def test_disable_invalid_hit(self): self.assertRaises(MTurkRequestError, self.conn.disable_hit, 'foo') if __name__ == '__main__': unittest.main...
c9bb9af526a8d131e9be067a97ce5966f5a7775f
db0e49a94c2554ec8853133d09afca65d697eb62
/ucp/benchmarks/utils.py
d52facc21e5af58d6f267b7f17ddd21168fd997c
[ "BSD-3-Clause" ]
permissive
rapidsai/ucx-py
415c631039c9c6ceb8d90b04e872d5a61a12eb0f
9ba056f9f2b1af169c6312b178e9853b066928bd
refs/heads/branch-0.34
2023-09-02T21:33:25.839513
2023-08-28T13:40:30
2023-08-28T13:40:30
149,822,197
103
45
BSD-3-Clause
2023-09-08T18:41:12
2018-09-21T21:53:38
Python
UTF-8
Python
false
false
11,722
py
utils.py
import asyncio import json import logging import multiprocessing as mp import os import pickle import threading from types import ModuleType import numpy as np from ucp._libs.utils import get_address logger = logging.getLogger("ucx") def _ensure_cuda_device(devs, rank): import numba.cuda dev_id = devs[ran...
f86976baf2311dd1b10186a1b9a32426e128abe5
b26c41926fa3a7c2c061132d80e91a2750f2f468
/tensorflow_probability/python/distributions/truncated_normal_test.py
cb7019ad5945a33ecdf94a5c1962dbe26e702686
[ "Apache-2.0" ]
permissive
tensorflow/probability
22e679a4a883e408f8ef237cda56e3e3dfa42b17
42a64ba0d9e0973b1707fcd9b8bd8d14b2d4e3e5
refs/heads/main
2023-09-04T02:06:08.174935
2023-08-31T20:30:00
2023-08-31T20:31:33
108,053,674
4,055
1,269
Apache-2.0
2023-09-13T21:49:49
2017-10-23T23:50:54
Jupyter Notebook
UTF-8
Python
false
false
24,194
py
truncated_normal_test.py
# Copyright 2018 The TensorFlow Probability 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...
c7b5441d661c21d320a95c6f2e51875f9176bf18
5a52ccea88f90dd4f1acc2819997fce0dd5ffb7d
/alipay/aop/api/domain/AlipayEcoMycarVehicleInfoQueryModel.py
9997e6268855b678d39f3c713e831c429cac872d
[ "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,321
py
AlipayEcoMycarVehicleInfoQueryModel.py
#!/usr/bin/env python # -*- coding: utf-8 -*- import json from alipay.aop.api.constant.ParamConstants import * class AlipayEcoMycarVehicleInfoQueryModel(object): def __init__(self): self._plate_no = None self._vi_id = None @property def plate_no(self): return self._plate_no ...
40b6efec0cf5906c8278dc10acf47fea507cc60a
1ebb431a94bc5afcdde7b3fd50354ae70b4aa556
/html5css3/postprocessors.py
926a126d2fc51b2e93572ee48633d02900405767
[ "MIT" ]
permissive
marianoguerra/rst2html5
a2ce9c74b6906639e4f201f4e6aa2d81798c2aca
525ed5bade67ca5cf4c7c9e50498896704f439f7
refs/heads/master
2021-10-26T03:51:03.619384
2021-09-28T08:19:09
2021-09-28T08:19:09
2,613,617
107
35
MIT
2021-09-28T08:19:10
2011-10-20T14:22:19
HTML
UTF-8
Python
false
false
13,173
py
postprocessors.py
from __future__ import absolute_import import os import sys import html5css3 import json from . import html IS_PY3 = sys.version[0] == '3' from docutils import nodes from docutils.parsers.rst import directives from docutils.parsers.rst import Directive BASE_PATH = os.path.dirname(__file__) join_path = os.path.join...
ec5174ebd89dea3d46453ddc04d7d96ac4e3ced0
0c5b9ebee22450c214576f18929436527b26a1b0
/starfish/core/util/try_import.py
831856330d572e17b2436fb48cab5937b32f5e12
[ "MIT" ]
permissive
spacetx/starfish
962b4e4a8c0c193acaa84c016a6edaef76c14769
853f56c7c02b15397adb921db5e3bde02fdadb63
refs/heads/master
2023-03-09T13:51:30.772904
2022-09-06T22:16:25
2022-09-06T22:16:25
92,539,237
211
75
MIT
2023-02-11T01:52:25
2017-05-26T18:45:11
Python
UTF-8
Python
false
false
1,160
py
try_import.py
import functools from typing import Callable, Optional, Set def try_import(allowable_module_names: Optional[Set[str]]=None) -> Callable: """ Decorator to apply to a method. If one of the modules in `allowable_module_names` fail to import, raise a friendly error message. If `allowable_module_names` is No...
2d9f9b96b8a45a9637b3a38f4785dd209bffdc53
518bf342bc4138982af3e2724e75f1d9ca3ba56c
/solutions/0573. Squirrel Simulation/0573.py
7a812eb2569b6ac7988830d4be2e0122994e6ddf
[ "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
390
py
0573.py
class Solution: def minDistance(self, height: int, width: int, tree: List[int], squirrel: List[int], nuts: List[List[int]]) -> int: def dist(a: List[int], b: List[int]) -> int: return abs(a[0] - b[0]) + abs(a[1] - b[1]) totDist = sum(dist(nut, tree) for nut in nuts) * 2 maxSave = max(dist(nut, tree...
3d0fbe1fa165e834eb10a1ab0162a89459ac8c4b
753cd066a9bd26b6c37c8d53a86c7a9c659ec18c
/vision/cnns/pytorch-lightning/test/test_notebook.py
76e2190e4c65478ea6a0e5cde6ea50edbd1ff8c1
[ "MIT" ]
permissive
graphcore/examples
ac872015808ed2a913d4d7bf0d63202ce15ebbae
e2f834dd60e7939672c1795b4ac62e89ad0bca49
refs/heads/master
2023-08-05T02:08:12.341836
2023-07-27T11:13:10
2023-07-27T11:13:10
143,977,106
311
80
MIT
2023-09-11T16:42:56
2018-08-08T07:29:17
Python
UTF-8
Python
false
false
964
py
test_notebook.py
# Copyright (c) 2022 Graphcore Ltd. All rights reserved. import pathlib import nbformat import pytest from nbconvert.preprocessors import ExecutePreprocessor EXAMPLE_ROOT_DIR = pathlib.Path(__file__).parent.parent / "code-examples" / "fashion-mnist" @pytest.mark.category2 @pytest.mark.ipus(4) def test_notebook_1():...
df796762481ffa5cdcb3fe4f4cf16ffe6355d8ce
767dae79df18f9868855774464d08864a1d8629b
/protonfixes/gamefixes/493200.py
32ed3ca3f92d058a3fa59c60f26238c087f19435
[ "BSD-2-Clause" ]
permissive
simons-public/protonfixes
05cd9c2c37c35ce56ec4c3cdcdba375c6eadf530
681411ba8ceb5d2d790e674eb7a5b98951d426e6
refs/heads/master
2022-11-16T04:16:32.764931
2022-11-15T00:24:24
2022-11-15T00:24:24
150,211,569
245
75
NOASSERTION
2022-11-15T00:24:25
2018-09-25T05:20:02
Python
UTF-8
Python
false
false
765
py
493200.py
""" Game fix for RiME """ # pylint: disable=C0103 from protonfixes import util def main(): """ Install xact and dinput8, override libraries and disable esync """ print('Applying fixes for RiME') # if Proton version older than 3.16-5 if util.protonversion(True) < 1544476838: # If not al...
c44df6f736cfcc6754e904ba4f283ea6d5c05acf
9935c1a1142a19d72dd8ca5b8a8ad2a70e2a7edb
/Plugins/Aspose_Words_Java_for_Jython/asposewords/quickstart/LoadAndSaveToStream.py
a49fe353dd0630bacc74af08a24b5e1949dc00f7
[ "MIT" ]
permissive
aspose-words/Aspose.Words-for-Java
705ad9a8047b8d9b7986dd5569859af24632afc0
2dceb8acb5547bbc0a62c49587b97fd4f3159b36
refs/heads/master
2023-08-18T08:43:51.900921
2023-05-15T13:48:56
2023-05-15T13:48:56
2,849,872
347
194
MIT
2023-02-01T13:45:06
2011-11-25T13:43:55
Java
UTF-8
Python
false
false
1,194
py
LoadAndSaveToStream.py
from asposewords import Settings from com.aspose.words import Document from com.aspose.words import SaveFormat from java.io import ByteArrayOutputStream from java.io import FileInputStream from java.io import FileOutputStream class LoadAndSaveToStream: def __init__(self): dataDir = Settings.dataDir + 'qu...
f5118affac77f01d492bc45e8576d4635c201b8e
8a4b17f89a8b24e6e1f8073f4df9d3bee7c546ec
/misc/refalt-repr-examples.py
6caf7f2f07110cf8c05a94939b5056c22b1618f7
[ "Apache-2.0" ]
permissive
biocommons/hgvs
f8a600f15657b7f6aaa7c913d55d3acc43c1cb51
697b32bba2b191c3e10c44d408030927f031c03e
refs/heads/main
2023-08-19T12:40:15.503258
2023-05-23T21:46:06
2023-05-23T21:46:06
84,496,560
228
95
Apache-2.0
2023-09-14T05:01:26
2017-03-09T22:58:27
Python
UTF-8
Python
false
false
854
py
refalt-repr-examples.py
#!/usr/bin/env python import hgvs import hgvs.parser from tabulate import tabulate from six.moves import map hp = hgvs.parser.Parser() variants = [ "NM_01.2:c.1_2del", "NM_01.2:c.1_2del2", "NM_01.2:c.1_2delAA", "NM_01.2:c.1_2insTTT", "NM_01.2:c.1_2delinsTTT", "NM_01.2:c.1_2del2insTTT", "N...
d34912b90b50893cb9387e8fdc0acc72ff20eade
55defa28b5bd395e7ead2f9ca848f378ee2c8b13
/tests/python/unittest/test_target_codegen_hexagon.py
ef0eb4ff5a7e8f8e0de16b83e2eb15b973673bd1
[ "Apache-2.0", "BSD-3-Clause", "Zlib", "MIT", "LicenseRef-scancode-unknown-license-reference", "Unlicense", "BSD-2-Clause" ]
permissive
neo-ai/tvm
456d48c8d80bd7190c91b488b8f9d6cf22918706
da529bf421fcfddd914b41bbe9bf9d5863671266
refs/heads/dev
2023-03-06T03:28:18.303189
2022-05-09T04:25:16
2022-05-09T04:25:16
167,632,700
101
43
Apache-2.0
2023-02-17T20:49:09
2019-01-26T00:35:54
Python
UTF-8
Python
false
false
6,944
py
test_target_codegen_hexagon.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...
7f61c845aa7ce5d4f8c356ab083f555c363a33d6
8caa926fa767898a0a8fba1d5b3bef73d96be410
/sagemaker-pyspark-sdk/tests/sagemakerestimator_test.py
17f456ae1672365ece885f5b500a410fd6c5dda9
[ "Apache-2.0" ]
permissive
aws/sagemaker-spark
72122fd3675487050965c9d35f3b26295c9f174b
e27ccff05cd4f062b67712411b3c9ac95308502c
refs/heads/master
2023-05-11T12:38:13.951884
2022-08-26T16:19:57
2022-08-26T16:19:57
111,010,291
297
141
Apache-2.0
2023-05-10T02:39:27
2017-11-16T18:58:56
Scala
UTF-8
Python
false
false
3,973
py
sagemakerestimator_test.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://aws.amazon.com/apache2.0/ # # or in the "license" file accom...
218afdeeefd2e4a1c607bb0c58bfe936c6b03140
35b6013c1943f37d1428afd2663c8aba0a02628d
/appengine/standard/firebase/firetactoe/firetactoe_test.py
95c6cb9523c8ee6957f48e1f5d10295f95ceaedb
[ "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
6,712
py
firetactoe_test.py
# Copyright 2016 Google Inc. All rights reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or a...
4799ce1a9197317b1e840b65a616013d4b6e0655
99d5e10013778f3822b3dac404db04156ad99acb
/ema_workbench/em_framework/ema_multiprocessing.py
606a3396b8d9e6f77ac3e491144c937173acd9ee
[ "BSD-3-Clause" ]
permissive
quaquel/EMAworkbench
0e25b9caa86fb3c41376b14ad6f70911aec2a594
9d13fb6fc8e8e3fc8cc693102f85966c5876f9ac
refs/heads/master
2023-08-10T08:23:48.007445
2023-07-18T10:54:43
2023-07-18T10:54:43
5,109,457
102
86
BSD-3-Clause
2023-09-12T06:51:17
2012-07-19T12:18:19
Jupyter Notebook
UTF-8
Python
false
false
7,576
py
ema_multiprocessing.py
""" support for using the multiprocessing library in combination with the workbench """ import logging import multiprocessing import os import queue import shutil import sys import threading import time import traceback from collections import defaultdict from logging import handlers from .experiment_runner import Ex...
5535895c3ccfa8f9b4931350ac9a658e5e059cf6
5770a3fc8bd224d926d4aff5b7d8f1863f145cab
/quarkchain/p2p/constants.py
80db768a635eed324f42e6238fc2efeab54d07b3
[ "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
4,327
py
constants.py
SUPPORTED_RLPX_VERSION = 4 # Overhead added by ECIES encryption ENCRYPT_OVERHEAD_LENGTH = 113 # Lentgh of elliptic S256 signatures SIGNATURE_LEN = 65 # Length of public keys: 512 bit keys in uncompressed form, without format byte PUBKEY_LEN = 64 # Hash length (for nonce etc) HASH_LEN = 32 # Length of initial auth ...
726e4f6f85221546eb2931465ba3a4bf6157f074
2337351b228818e41be3002bd38f68f77c2aa074
/tests/test_hist.py
ada91364a1419d4f56cab446f6b4f3bdb4eab72e
[ "BSD-3-Clause" ]
permissive
nocproject/noc
57d40c680a1499374463e472434f9595ed6d1374
6e6d71574e9b9d822bec572cc629a0ea73604a59
refs/heads/master
2023-08-31T01:11:33.544573
2023-08-30T17:31:11
2023-08-30T17:31:11
107,815,776
105
33
BSD-3-Clause
2023-07-31T07:57:45
2017-10-21T21:04:33
Python
UTF-8
Python
false
false
3,839
py
test_hist.py
# ---------------------------------------------------------------------- # Test noc.core.hist module # ---------------------------------------------------------------------- # Copyright (C) 2007-2019 The NOC Project # See LICENSE for details # ---------------------------------------------------------------------- # Th...
d797c1c031e05a7d28597723d94db34dbf417a6c
10ddfb2d43a8ec5d47ce35dc0b8acf4fd58dea94
/Python/convert-the-temperature.py
728fb12b182dcd43c683e736c611cf0913d182ad
[ "MIT" ]
permissive
kamyu104/LeetCode-Solutions
f54822059405ef4df737d2e9898b024f051fd525
4dc4e6642dc92f1983c13564cc0fd99917cab358
refs/heads/master
2023-09-02T13:48:26.830566
2023-08-28T10:11:12
2023-08-28T10:11:12
152,631,182
4,549
1,651
MIT
2023-05-31T06:10:33
2018-10-11T17:38:35
C++
UTF-8
Python
false
false
236
py
convert-the-temperature.py
# Time: O(1) # Space: O(1) # math class Solution(object): def convertTemperature(self, celsius): """ :type celsius: float :rtype: List[float] """ return [celsius+273.15, celsius*1.80+32.00]
4dd9d153132077ae1cdd39d8163947abb52402f4
9a717ace10555004356b963a1836844e5764ba7a
/napalm_logs/scripts/__init__.py
f8b354a484c36ea63410e4c0c72839fc7ddf1ee5
[ "Apache-2.0" ]
permissive
napalm-automation/napalm-logs
467e7654f34318e5dca4323e1726a3543065e395
1778d79ccd0eaa0d5205d369637e8f557365fa65
refs/heads/develop
2023-06-26T15:16:33.621929
2022-11-08T14:48:00
2022-11-08T14:48:00
84,958,777
142
53
Apache-2.0
2023-06-12T09:22:43
2017-03-14T14:30:19
Python
UTF-8
Python
false
false
52
py
__init__.py
# -*- coding: utf-8 -*- """ napalm-logs scripts """
7f28836fc7938099963b9a7d8639e8dbd0edcce6
34305ef03fffd872195fced3d946fcaccbc79ddf
/skrf/io/tests/test_io.py
2bf52a39b3eb480149d3e305eaa3a26bb49deef4
[ "BSD-3-Clause" ]
permissive
scikit-rf/scikit-rf
20477c643883b6b46dca50fca31ad1010a9512e9
26243ffc45160f17612badc880ad5d022036537a
refs/heads/master
2023-08-19T03:34:42.208425
2023-07-28T13:56:06
2023-07-28T13:56:06
3,218,028
555
276
BSD-3-Clause
2023-09-12T21:56:17
2012-01-19T14:25:58
Python
UTF-8
Python
false
false
6,009
py
test_io.py
import unittest import os import numpy as npy import skrf as rf from skrf.io import Touchstone class IOTestCase(unittest.TestCase): """ """ def setUp(self): """ """ self.test_dir = os.path.dirname(os.path.abspath(__file__))+'/' self.pickle_file = os.path.join(self.test_dir...
ff833d9fffd56279a9bda34386445506d858b75a
5ea4a3a0e50d2cee386f497c8449d13cd80450f9
/xsdata/formats/dataclass/parsers/mixins.py
04a348b2f195d43abbdd43ef27a22ac8e8414269
[ "MIT" ]
permissive
tefra/xsdata
8df028ff79cd04b29ecf24401810562b8917b7be
31f672af84fd040a97996871916a41b1046fe46b
refs/heads/main
2023-08-17T03:20:06.912750
2023-08-12T15:24:40
2023-08-12T15:24:40
217,130,848
243
49
MIT
2023-08-30T15:25:31
2019-10-23T18:51:12
Python
UTF-8
Python
false
false
5,621
py
mixins.py
import abc from typing import Any from typing import Dict from typing import List from typing import Optional from typing import Tuple from typing import Type from xsdata.exceptions import XmlHandlerError from xsdata.formats.bindings import AbstractParser from xsdata.formats.dataclass.parsers.config import ParserConfi...
3cd79d26035d8aa83fe14043a349f8b54f9166bc
7a836801cdfefe5cb645e855989a456b43dc883e
/src/ops/jinja/__init__.py
09b242c5dec4d29925ae2be153b2fabd4a1ee444
[ "Apache-2.0" ]
permissive
adobe/ops-cli
57fa2925d200e429ca0a028324ee2d25bdcfc0a5
02fea7dbb7652b6dd0e53cea6433a632d6a1aaea
refs/heads/master
2023-08-31T11:23:14.781104
2023-08-01T13:55:35
2023-08-01T13:55:35
168,430,474
200
54
Apache-2.0
2023-09-12T08:06:49
2019-01-30T23:18:55
Python
UTF-8
Python
false
false
1,743
py
__init__.py
# Copyright 2019 Adobe. All rights reserved. # This file is licensed to you 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 ...
e4daeec172f07fe8fadc267de6ac266cfdbf7d2d
9c028c54fcba2d22d48bed063090e35e9af35dc4
/ciw/tests/test_individual.py
3de2412db79039d4453b5c7a61eaf1b4a0037011
[ "MIT" ]
permissive
CiwPython/Ciw
b2612edf361c7c6af58fdf5f710b44c81f417d23
85d03a4988f34c1ca05d7781649042ea2761a42b
refs/heads/master
2023-04-19T03:45:53.599066
2023-04-06T17:42:08
2023-04-06T17:42:08
47,995,577
143
39
MIT
2023-02-07T13:06:10
2015-12-14T19:10:50
Python
UTF-8
Python
false
false
5,033
py
test_individual.py
import unittest import ciw from hypothesis import given from hypothesis.strategies import integers class TestIndividual(unittest.TestCase): def test_init_method_1(self): i = ciw.Individual(22, 3) self.assertEqual(i.customer_class, 3) self.assertEqual(i.previous_class, 3) self.asser...
7a3871ef3c456df483508e10f9e80c3987f4ad3f
a3d6556180e74af7b555f8d47d3fea55b94bcbda
/ios/third_party/webkit/copy_webkit_for_clusterfuzz.py
3615a0a4a80ae5736e8e192b4a8ed4cad138c421
[ "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", "LicenseRef-scancode-unknown-license-reference" ]
permissive
chromium/chromium
aaa9eda10115b50b0616d2f1aed5ef35d1d779d6
a401d6cf4f7bf0e2d2e964c512ebb923c3d8832c
refs/heads/main
2023-08-24T00:35:12.585945
2023-08-23T22:01:11
2023-08-23T22:01:11
120,360,765
17,408
7,102
BSD-3-Clause
2023-09-10T23:44:27
2018-02-05T20:55:32
null
UTF-8
Python
false
false
1,431
py
copy_webkit_for_clusterfuzz.py
# Copyright 2020 The Chromium Authors # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. import argparse import os import shutil import subprocess import sys def main(): description = 'Packages WebKit build for Clusterfuzz.' parser = argparse.ArgumentParser(desc...
453eb83130d9e028cf173b53159c5f545dae5197
5f69a6549b8d5e417553d910622e6855b2ae679b
/projects/python/perception/slam/full_map_posterior_gmapping/src/map_simulator/src/map_simulator/robot_commands/misc/comment_cmd.py
2c1074666125dafe986be8b272c4922dda8f58eb
[ "Apache-2.0" ]
permissive
opendr-eu/opendr
822219f709613d77c5eb62c5d02808d344239835
b3d6ce670cdf63469fc5766630eb295d67b3d788
refs/heads/master
2023-08-31T07:02:36.375231
2023-08-29T06:39:51
2023-08-29T06:39:51
293,755,225
535
82
Apache-2.0
2023-09-13T16:53:34
2020-09-08T08:55:04
Python
UTF-8
Python
false
false
1,921
py
comment_cmd.py
# Copyright 2020-2023 OpenDR European Project # # 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 agree...
f9cb277343ab73306e9efe699313a914ef8fd659
88cbc17731050b425f197ac7766c6156d5823ca8
/flake8_stripe/flake8_stripe.py
500e0f4ade2838e9cd700cdbbceaf38a0de116c8
[ "MIT" ]
permissive
stripe/stripe-python
011fe719f4305302013b360b76d2af3a0d5b3bf9
85066908ed1e638574351da1a1b260291ea0f8a1
refs/heads/master
2023-08-31T23:47:53.826885
2023-08-31T20:25:09
2023-08-31T20:25:09
1,953,389
1,396
465
MIT
2023-09-14T18:12:54
2011-06-25T19:53:04
Python
UTF-8
Python
false
false
4,256
py
flake8_stripe.py
# Hint: if you're developing this plugin, test changes with: # venv/bin/tox -e lint -r # so that tox re-installs the plugin from the local directory import ast from typing import Iterator, Tuple class TypingImportsChecker: name = __name__ version = "0.1.0" # Rules: # * typing_extensions v4.1.1 is t...
0f476a903dded4ad308253e5aeb6773ede787de9
4c800425b941243c521f0a878c1b12a8f5a50585
/deepreg/model/backbone/interface.py
36fe4be9511bdf553d8988b0e0061697220dcd36
[ "Apache-2.0" ]
permissive
DeepRegNet/DeepReg
f7af4554c89a7a40a53bac9f7fc9939402d1110d
650a2f1a88ad3c6932be305d6a98a36e26feedc6
refs/heads/main
2023-04-06T20:40:38.722315
2022-05-18T21:52:19
2022-05-18T21:52:19
269,365,590
509
78
Apache-2.0
2023-03-11T12:18:21
2020-06-04T13:21:37
Python
UTF-8
Python
false
false
1,834
py
interface.py
from abc import abstractmethod import tensorflow as tf class Backbone(tf.keras.Model): """ Interface class for backbones. """ def __init__( self, image_size: tuple, num_channel_initial: int, out_kernel_initializer: str, out_activation: str, out_channel...
5958b90229f4f643d077c2c41ca7a1c32a6a4023
56f9e2a097f827c13ccaee56c7dfeb7a1ed2cc4f
/stylegan_human/bg_white.py
f9bd13169baf5e000599b5b45d22e6d76726518c
[ "CC-BY-NC-4.0", "LicenseRef-scancode-unknown-license-reference" ]
permissive
saic-mdal/HiDT
ae825455aec994edbc5730f896d39eb27bc5c6e5
f023fb99879bb5043650124cc7c14f0a60d3577b
refs/heads/main
2023-07-25T07:29:48.531637
2023-07-24T10:43:10
2023-07-24T10:43:10
247,065,521
669
90
BSD-3-Clause
2022-10-20T19:00:18
2020-03-13T12:23:52
Jupyter Notebook
UTF-8
Python
false
false
1,771
py
bg_white.py
# Copyright (c) SenseTime Research. All rights reserved. import os import click import cv2 import numpy as np def bg_white(seg, raw, blur_level=3, gaussian=81): seg = cv2.blur(seg, (blur_level, blur_level)) empty = np.ones_like(seg) seg_bg = (empty - seg) * 255 seg_bg = cv2.GaussianBlur(seg_bg,(gaus...
4e0fd7cd901e9dca95311bd4a5910935cc5d481e
5aaa9a22478723dbafce0238fd84a2aa6994f050
/yabox/algorithms/base.py
394f56c4592ed0d223fde062a2cc0a893622b69f
[ "Apache-2.0" ]
permissive
pablormier/yabox
ec75cc32738e16b0466e0f8ab89e670e62546b3c
a3ed449edf4349849c598fb1e5fe8e787ed57131
refs/heads/master
2022-12-09T18:26:10.983040
2022-12-06T09:07:39
2022-12-06T09:07:39
97,233,963
141
20
Apache-2.0
2022-12-06T09:07:40
2017-07-14T12:57:43
Jupyter Notebook
UTF-8
Python
false
false
1,414
py
base.py
# -*- coding: utf-8 -*- import numpy as np def binomial_crossover(target, mutant, cr): n = len(target) p = np.random.rand(n) < cr if not np.any(p): p[np.random.randint(0, n)] = True return np.where(p, mutant, target) def random_sample(population, exclude, size=3): # Optimized version usi...
2e9bbb9c825311bdc63d821d4a6d016c30240a7a
b48f14f38a4c95af0fa07c10c181a607a8c29cd7
/src/pynlpir/nlpir.py
ac223c54352042580a03d87a41e044210c21bddc
[ "MIT" ]
permissive
tsroten/pynlpir
7fc3cb67966ea0b12489073d63c545f8d1da13f8
515c77dbc79e35aad96d81071af9385c213f0758
refs/heads/main
2023-08-09T18:58:26.009949
2023-07-24T12:10:39
2023-07-24T12:10:39
18,347,833
587
153
MIT
2023-07-24T12:10:40
2014-04-01T22:55:19
Python
UTF-8
Python
false
false
6,495
py
nlpir.py
# -*- coding: utf-8 -*- """This module uses :mod:`ctypes` to provide a Python API to NLPIR. Other than argument names used in this documentation, the functions are left the same as they are in NLPIR. When this module is imported, the NLPIR library is imported and the functions listed below are exported by a :class:`c...
4a6a824f35c487043ea0af0825544cbcf5f4e767
ae575a6207acf1bae6252aac20f7934c87e55e44
/wechat_django/pay/admin/payapp.py
ed25397d2cc3ec1bd6b198eaa452a0d338c5cfa2
[ "MIT" ]
permissive
Xavier-Lam/wechat-django
57c28c189f7e443dc94a7a8393d8597f4610bb34
526e2d9d261fde8279314cf30fb70dbeb439d943
refs/heads/master
2023-08-17T02:25:46.025887
2023-08-15T02:05:49
2023-08-15T02:05:49
171,990,883
185
62
MIT
2023-08-15T02:05:50
2019-02-22T03:51:44
Python
UTF-8
Python
false
false
4,378
py
payapp.py
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django import forms from django.contrib import admin from django.utils.translation import gettext_lazy as _ from wechat_django.admin.base import has_wechat_permission from wechat_django.admin.wechatapp import WeChatAppAdmin from wechat_django.consta...
3c12a7138de6cd348c0eed7157a5428b45e91576
6d652aa802d90571a640ac0b538ff3055d0e34c5
/i3pystatus/updates/yaourt.py
8855f3169970be8e72dd718e8ac4247d10560ecb
[ "MIT" ]
permissive
enkore/i3pystatus
38eaea8203ed309ff90e1717bd3a9075f12590b0
0820dd4e3d479dddec7797b2ea9a83da0f62b7cf
refs/heads/current
2023-08-18T11:36:18.296269
2023-04-25T20:56:08
2023-04-25T20:56:08
8,130,605
438
244
MIT
2023-08-13T12:13:33
2013-02-11T01:01:15
Python
UTF-8
Python
false
false
1,296
py
yaourt.py
from i3pystatus.core.command import run_through_shell from i3pystatus.updates import Backend class Yaourt(Backend): """ This module counts the available updates using yaourt. By default it will only count aur packages. Thus it can be used with the pacman backend like this: .. code-block:: python ...
9c6a8466a061f4c33141878cde3ff3a82eb03534
5dc77586e3e0f9de1f032fd2ca68494d8e58928f
/tests/cli/test_init_sqlite.py
083d48e1553929b14598efd118d1721ca0fdf20e
[ "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
22,782
py
test_init_sqlite.py
import os import re import shutil import pytest from click.testing import CliRunner from freezegun import freeze_time from great_expectations.cli import cli from great_expectations.data_context.data_context.file_data_context import ( FileDataContext, ) from great_expectations.data_context.util import file_relativ...
bb644856bada2c88ca04f9360f67ecd392ea8f91
c1b77c0b1630c2e319e7ba7782a744f4ac867f7d
/test/likelihoods/test_beta_likelihood.py
52b2135a457e5140598d3b428d2f232a16f92ec4
[ "MIT", "Python-2.0" ]
permissive
cornellius-gp/gpytorch
6b9ab969b2888fa7f27f236a1b20041f00cc0253
5e93d2c04ac0634a7aeea9fd964be529bb250888
refs/heads/master
2023-08-31T21:13:02.741585
2023-08-25T19:24:53
2023-08-25T19:24:53
93,868,719
3,182
578
MIT
2023-09-13T01:06:00
2017-06-09T14:48:20
Python
UTF-8
Python
false
false
1,822
py
test_beta_likelihood.py
#!/usr/bin/env python3 import unittest import torch from gpytorch.likelihoods import _OneDimensionalLikelihood, BetaLikelihood from gpytorch.test.base_likelihood_test_case import BaseLikelihoodTestCase class TestBetaLikelihood(BaseLikelihoodTestCase, unittest.TestCase): seed = 1 def _create_targets(self, ...
1133c05fb41f10921c102c7fc64f5c7297a67fc9
10ddfb2d43a8ec5d47ce35dc0b8acf4fd58dea94
/Python/design-tic-tac-toe.py
4e0cb9b3f2adbc36c0d00cae949d7ffb70423574
[ "MIT" ]
permissive
kamyu104/LeetCode-Solutions
f54822059405ef4df737d2e9898b024f051fd525
4dc4e6642dc92f1983c13564cc0fd99917cab358
refs/heads/master
2023-09-02T13:48:26.830566
2023-08-28T10:11:12
2023-08-28T10:11:12
152,631,182
4,549
1,651
MIT
2023-05-31T06:10:33
2018-10-11T17:38:35
C++
UTF-8
Python
false
false
1,385
py
design-tic-tac-toe.py
# Time: O(1), per move. # Space: O(n^2) class TicTacToe(object): def __init__(self, n): """ Initialize your data structure here. :type n: int """ self.__size = n self.__rows = [[0, 0] for _ in xrange(n)] self.__cols = [[0, 0] for _ in xrange(n)] se...
959a1defd2f48049db9467dba7d0161c0d766e81
40282fc3afc28166ce01cdf2240d445a1930f2b0
/docs/sections/section10/solutions/sol_2b.py
875dd7e78708f85d6d7f748777d7dce92d33b67a
[ "MIT" ]
permissive
Harvard-IACS/2020-CS109A
7dac61f88aefe9647fe7e3eabb3dc6ef85cc8d73
665100fec24309edb818a51bc8c29db2912d370f
refs/heads/master
2022-07-31T18:05:47.127653
2021-11-17T22:30:00
2021-11-17T22:30:00
287,811,847
114
123
MIT
2022-05-04T06:26:14
2020-08-15T19:28:34
Jupyter Notebook
UTF-8
Python
false
false
800
py
sol_2b.py
kernel_weight = 0.03 bias_weight = 0.03 model_iris_l1 = models.Sequential([ layers.Input(shape = (4,)), layers.Dense(32, activation='relu', kernel_regularizer=regularizers.l1(kernel_weight), bias_regularizer=regularizers.l2(bias_weight)), layers.Dense(32, activation='relu', kernel_regularizer=regularizers.l1(kern...
cddea924b407eedb5e8d88a75b34844796d7cace
bd2997cdba05ed3ec73c0c4abc765da7c132fa47
/transformer/batch.py
931391ad651874469a20ade23d5bf2bc392486a2
[]
no_license
scoutbee/pytorch-nlp-notebooks
77119b4366c794d779577211282b8dc29063cb49
1e1cb88db61fcec1fba2b3ae862cf4cd81138d09
refs/heads/develop
2020-04-28T04:44:29.561198
2019-11-18T07:43:49
2019-11-18T07:43:49
174,991,743
438
181
null
2019-11-22T08:14:08
2019-03-11T12:05:06
Jupyter Notebook
UTF-8
Python
false
false
8,020
py
batch.py
from collections import Counter import numpy as np import pandas as pd import torch import torch.nn as nn import torch.nn.functional as F from nltk.tokenize import wordpunct_tokenize from torch import optim from torch.autograd import Variable from torch.nn.utils.rnn import pad_sequence from torch.utils.data import Dat...
8954df5be3684c566435343e0c92f8d9d25c1beb
7d232f51e2330a4f537c50ede9c6bc023d656fd4
/src/python/grpcio_tests/tests_aio/unit/done_callback_test.py
b6a4a352147fe257a9f4f906303e1b5560c246a1
[ "BSD-3-Clause", "MPL-2.0", "Apache-2.0" ]
permissive
grpc/grpc
6975af3ba6f07a6fe965b875a0c09abf18999a52
e4d598ab64aa54f1da78c6ed6133b741742d11d4
refs/heads/master
2023-08-31T01:10:22.666618
2023-08-30T22:35:17
2023-08-30T22:35:17
27,729,880
42,330
13,022
Apache-2.0
2023-09-14T21:54:19
2014-12-08T18:58:53
C++
UTF-8
Python
false
false
10,325
py
done_callback_test.py
# Copyright 2020 The gRPC Authors # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writ...
dea100149edb147698e98104cbede36c45c5227b
eb9f655206c43c12b497c667ba56a0d358b6bc3a
/python/testData/refactoring/inlinelocal/multilineStringToTripleQuotedFString.before.py
0892870d440dc6ec94eac94c76e761670a48baba
[ "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
47
py
multilineStringToTripleQuotedFString.before.py
s6 = ''' foo bar ''' print(f'''{s<caret>6}''')
e95d1aa1625f346bf1d68d5cc65ac854cdf11509
26a67dfb19c45fc11f655f737fa1061a870a5af1
/docs/tutorials/example_code/star_render.py
4096e4818a99c9f36e11e2d5fc4c3ce73922646e
[]
no_license
pynbody/pynbody
e7604befc6de9e78a96b5b5871319b99bf8e2ca8
6b0cb61d89b17451f3bf65866e8891f2aefc4453
refs/heads/master
2023-08-08T04:50:29.914356
2023-06-19T17:49:31
2023-06-19T17:49:31
10,058,773
129
99
null
2023-09-13T11:44:37
2013-05-14T15:46:59
Python
UTF-8
Python
false
false
375
py
star_render.py
import matplotlib.pylab as plt import pynbody # load the snapshot and set to physical units s = pynbody.load('testdata/g15784.lr.01024.gz') s.physical_units() # load the halos h = s.halos() # center on the largest halo and align the disk pynbody.analysis.angmom.sideon(h[1]) #create an image using the default bands...
dde309be73d391098e9a3a1419b511710f098def
4266f2cc3084984f5f2795415d3c22c288e5f9ee
/src/formatting/whitespace.py
4a6696441dbb40817f713f29a434540e73ad65f5
[ "MIT" ]
permissive
jcberquist/sublimetext-cfml
5fce38b03be2fa70071a5c55d2830e632bfec49c
b91c44a32e251c20c6359a8d9232287e1b408e6c
refs/heads/master
2022-11-03T20:14:35.918063
2022-10-18T20:23:25
2022-10-18T20:23:25
48,827,528
133
30
MIT
2022-10-18T20:23:27
2015-12-31T01:48:00
Python
UTF-8
Python
false
false
7,866
py
whitespace.py
import sublime import re from .. import utils from .delimited_scopes import DELIMITED_SCOPES OPERATOR_SELECTOR = "source.cfml.script keyword.operator -source.sql" WHITESPACE_CONTAINER_START = ",".join( [DELIMITED_SCOPES[k]["start"] for k in DELIMITED_SCOPES] ) WHITESPACE_CONTAINER_END = ",".join( [DELIMITED_S...
f5aadbd4e15adcffb5ffdff467dbdb5ec391203f
7d232f51e2330a4f537c50ede9c6bc023d656fd4
/test/http2_test/test_ping.py
49db39332cdf14fd923487d7ed7415e3b8eb8987
[ "BSD-3-Clause", "MPL-2.0", "Apache-2.0" ]
permissive
grpc/grpc
6975af3ba6f07a6fe965b875a0c09abf18999a52
e4d598ab64aa54f1da78c6ed6133b741742d11d4
refs/heads/master
2023-08-31T01:10:22.666618
2023-08-30T22:35:17
2023-08-30T22:35:17
27,729,880
42,330
13,022
Apache-2.0
2023-09-14T21:54:19
2014-12-08T18:58:53
C++
UTF-8
Python
false
false
2,270
py
test_ping.py
# Copyright 2016 gRPC authors. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing...
3830b9a7e43b00224b6486a2c3335eee4fc5f8e3
eb9f655206c43c12b497c667ba56a0d358b6bc3a
/python/testData/refactoring/introduceVariable/dontSuggestBuiltinTypeNames2.py
6feada57c99e977ce392a405925db58ca145f1f8
[ "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
66
py
dontSuggestBuiltinTypeNames2.py
choicelist = [] foo = '' fooval = di<caret>ct(choicelist).get(foo)