hexsha
stringlengths
40
40
size
int64
2
1.05M
ext
stringclasses
9 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
4
193
max_stars_repo_name
stringlengths
6
109
max_stars_repo_head_hexsha
stringlengths
40
78
max_stars_repo_licenses
listlengths
1
10
max_stars_count
int64
1
36.6k
max_stars_repo_stars_event_min_datetime
stringlengths
24
24
max_stars_repo_stars_event_max_datetime
stringlengths
24
24
max_issues_repo_path
stringlengths
4
193
max_issues_repo_name
stringlengths
6
109
max_issues_repo_head_hexsha
stringlengths
40
78
max_issues_repo_licenses
listlengths
1
10
max_issues_count
int64
1
29.8k
max_issues_repo_issues_event_min_datetime
stringlengths
24
24
max_issues_repo_issues_event_max_datetime
stringlengths
24
24
max_forks_repo_path
stringlengths
4
193
max_forks_repo_name
stringlengths
6
109
max_forks_repo_head_hexsha
stringlengths
40
78
max_forks_repo_licenses
listlengths
1
10
max_forks_count
int64
1
11.2k
max_forks_repo_forks_event_min_datetime
stringlengths
24
24
max_forks_repo_forks_event_max_datetime
stringlengths
24
24
content
stringlengths
2
1.05M
avg_line_length
float64
1
404k
max_line_length
int64
1
1.03M
alphanum_fraction
float64
0
1
ffd232fe893d0f506ce32a0c3f7aeba8c00e9e42
1,424
py
Python
kornia/color/__init__.py
ananyamukh6/kornia
04307c26a9b4dc8d37f0b1a746c197609e98514c
[ "ECL-2.0", "Apache-2.0" ]
1
2021-07-27T06:59:04.000Z
2021-07-27T06:59:04.000Z
kornia/color/__init__.py
ananyamukh6/kornia
04307c26a9b4dc8d37f0b1a746c197609e98514c
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
kornia/color/__init__.py
ananyamukh6/kornia
04307c26a9b4dc8d37f0b1a746c197609e98514c
[ "ECL-2.0", "Apache-2.0" ]
2
2020-01-08T17:11:34.000Z
2020-10-14T00:44:18.000Z
from .gray import rgb_to_grayscale, RgbToGrayscale from .gray import bgr_to_grayscale, BgrToGrayscale from .rgb import BgrToRgb, bgr_to_rgb from .rgb import RgbToBgr, rgb_to_bgr from .hsv import RgbToHsv, rgb_to_hsv from .hsv import HsvToRgb, hsv_to_rgb from .hls import RgbToHls, rgb_to_hls from .hls import HlsToRgb, h...
24.982456
84
0.701545
ffd24218944e150a32b1b915288ab1df90afb45c
21,832
py
Python
tensorflow/contrib/rnn/python/kernel_tests/lstm_ops_test.py
tianyapiaozi/tensorflow
fb3ce0467766a8e91f1da0ad7ada7c24fde7a73a
[ "Apache-2.0" ]
71
2017-05-25T16:02:15.000Z
2021-06-09T16:08:08.000Z
tensorflow/contrib/rnn/python/kernel_tests/lstm_ops_test.py
shrikunjsarda/tensorflow
7e8927e7af0c51ac20a63bd4eab6ff83df1a39ae
[ "Apache-2.0" ]
133
2017-04-26T16:49:49.000Z
2019-10-15T11:39:26.000Z
tensorflow/contrib/rnn/python/kernel_tests/lstm_ops_test.py
shrikunjsarda/tensorflow
7e8927e7af0c51ac20a63bd4eab6ff83df1a39ae
[ "Apache-2.0" ]
31
2018-09-11T02:17:17.000Z
2021-12-15T10:33:35.000Z
# Copyright 2016 The TensorFlow Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applica...
40.132353
80
0.637276
ffd248e0494369ba018032ae71d4a86495d614fc
2,009
py
Python
tests/integration/questionnaire/test_questionnaire_previous_link.py
ons-eq-team/eq-questionnaire-runner
8d029097faa2b9d53d9621064243620db60c62c7
[ "MIT" ]
null
null
null
tests/integration/questionnaire/test_questionnaire_previous_link.py
ons-eq-team/eq-questionnaire-runner
8d029097faa2b9d53d9621064243620db60c62c7
[ "MIT" ]
null
null
null
tests/integration/questionnaire/test_questionnaire_previous_link.py
ons-eq-team/eq-questionnaire-runner
8d029097faa2b9d53d9621064243620db60c62c7
[ "MIT" ]
null
null
null
from tests.integration.integration_test_case import IntegrationTestCase class TestQuestionnairePreviousLink(IntegrationTestCase): def test_previous_link_doesnt_appear_on_introduction(self): # Given self.launchSurvey("test_final_confirmation") # When we open the introduction # Then ...
35.245614
83
0.696864
ffd258268a981bbfc026177dc74d84d9cf6801d8
3,383
py
Python
AIClient_Python/src/world/Character.py
CSGames-Archive/AI-2015
dcb49b93de4d2bdfb5600ae6be47ce513cc65c47
[ "MIT" ]
1
2015-12-18T01:56:34.000Z
2015-12-18T01:56:34.000Z
AIClient_Python/src/world/Character.py
scarriere/CSGames-AI2015
dcb49b93de4d2bdfb5600ae6be47ce513cc65c47
[ "MIT" ]
null
null
null
AIClient_Python/src/world/Character.py
scarriere/CSGames-AI2015
dcb49b93de4d2bdfb5600ae6be47ce513cc65c47
[ "MIT" ]
1
2018-01-12T03:18:08.000Z
2018-01-12T03:18:08.000Z
''' Created on Dec 20, 2014 @author: scarriere ''' from event.DropMineEvent import DropMineEvent from aiclient.Singleton import Singleton from event.QueueController import QueueController from world.Missile import Missile from mathUtils.Vector2 import Vector2 from event.MoveCharacterEvent import MoveCharacterEvent fr...
27.504065
85
0.571682
ffd26d37e0e9d7ca3a2c461f84f4f193fd4140b1
3,572
py
Python
stop_at_vaportemp/stop_at_vaportemp.py
warfery/openinterface_examples_python
243ec7106c8cf3e5d374833e2288290c63965ca0
[ "MIT" ]
1
2020-08-06T14:23:08.000Z
2020-08-06T14:23:08.000Z
stop_at_vaportemp/stop_at_vaportemp.py
warfery/openinterface_examples_python
243ec7106c8cf3e5d374833e2288290c63965ca0
[ "MIT" ]
3
2020-07-22T11:11:48.000Z
2020-08-25T07:48:09.000Z
stop_at_vaportemp/stop_at_vaportemp.py
warfery/openinterface_examples_python
243ec7106c8cf3e5d374833e2288290c63965ca0
[ "MIT" ]
3
2020-07-21T16:48:25.000Z
2020-08-20T14:59:41.000Z
import requests import argparse import getpass from datetime import datetime, timedelta import time import urllib3 from os import path from jsonpath_ng import jsonpath, parse # path to the relevant parameter in the process json path_to_param = '$.vacuum.vaporTemp' # name of parameter for help / console param_name = 'v...
39.688889
114
0.681691
ffd28aa22c498d5d9c04152e0023643aed54fb44
3,401
py
Python
doctr/models/detection/core.py
Mindee/doctr
b9d8feb1b4a2206e4944ef2dea109acc19585074
[ "Apache-2.0" ]
628
2021-02-13T21:49:37.000Z
2022-03-31T19:48:57.000Z
doctr/models/detection/core.py
Mindee/doctr
b9d8feb1b4a2206e4944ef2dea109acc19585074
[ "Apache-2.0" ]
694
2021-02-08T15:23:38.000Z
2022-03-31T07:24:59.000Z
doctr/models/detection/core.py
Mindee/doctr
b9d8feb1b4a2206e4944ef2dea109acc19585074
[ "Apache-2.0" ]
90
2021-04-28T05:39:02.000Z
2022-03-31T06:48:36.000Z
# Copyright (C) 2021, Mindee. # This program is licensed under the Apache License version 2. # See LICENSE or go to <https://www.apache.org/licenses/LICENSE-2.0.txt> for full license details. from typing import List import cv2 import numpy as np from doctr.utils.repr import NestedObject __all__ = ['DetectionPostPr...
32.084906
116
0.593355
ffd2bd76e5f21283bf2046ab5d07c5719702cd39
4,094
py
Python
alipay/aop/api/request/AlipayCommerceOperationGamemarketingBenefitVerifyRequest.py
antopen/alipay-sdk-python-all
8e51c54409b9452f8d46c7bb10eea7c8f7e8d30c
[ "Apache-2.0" ]
213
2018-08-27T16:49:32.000Z
2021-12-29T04:34:12.000Z
alipay/aop/api/request/AlipayCommerceOperationGamemarketingBenefitVerifyRequest.py
antopen/alipay-sdk-python-all
8e51c54409b9452f8d46c7bb10eea7c8f7e8d30c
[ "Apache-2.0" ]
29
2018-09-29T06:43:00.000Z
2021-09-02T03:27:32.000Z
alipay/aop/api/request/AlipayCommerceOperationGamemarketingBenefitVerifyRequest.py
antopen/alipay-sdk-python-all
8e51c54409b9452f8d46c7bb10eea7c8f7e8d30c
[ "Apache-2.0" ]
59
2018-08-27T16:59:26.000Z
2022-03-25T10:08:15.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- import json from alipay.aop.api.FileItem import FileItem from alipay.aop.api.constant.ParamConstants import * from alipay.aop.api.domain.AlipayCommerceOperationGamemarketingBenefitVerifyModel import AlipayCommerceOperationGamemarketingBenefitVerifyModel class AlipayCom...
28.234483
148
0.655105
ffd2dd7189aab0c9ce285a2ca822101b4d72390c
41
py
Python
pyppca/__init__.py
el-hult/pyppca
ea24f8ea39824a1653ceeaaa13587f51037952ca
[ "MIT" ]
14
2019-10-31T09:01:31.000Z
2022-02-13T10:05:32.000Z
pyppca/__init__.py
shergreen/pyppca
45a65953b66f44746cbe0aff862b4b1f43d73ab0
[ "MIT" ]
1
2019-06-13T08:56:25.000Z
2019-06-13T13:41:52.000Z
pyppca/__init__.py
el-hult/pyppca
ea24f8ea39824a1653ceeaaa13587f51037952ca
[ "MIT" ]
6
2019-12-24T10:48:04.000Z
2021-05-22T06:19:27.000Z
name = "pyppca" from .pyppca import ppca
13.666667
24
0.731707
ffd2e9c2338f86ea9e0fa41022c8969d0ec21eae
9,411
py
Python
sdk/monitor/azure-mgmt-monitor/azure/mgmt/monitor/v2021_05_01_preview/operations/_diagnostic_settings_category_operations.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
1
2022-02-01T18:50:12.000Z
2022-02-01T18:50:12.000Z
sdk/monitor/azure-mgmt-monitor/azure/mgmt/monitor/v2021_05_01_preview/operations/_diagnostic_settings_category_operations.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
null
null
null
sdk/monitor/azure-mgmt-monitor/azure/mgmt/monitor/v2021_05_01_preview/operations/_diagnostic_settings_category_operations.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
null
null
null
# coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may ...
40.390558
136
0.672617
ffd316979dedfd8396dba0ffb1f16e1d55cb1d36
3,054
py
Python
gerapy/server/core/urls.py
awesome-archive/Gerapy
e9792d020397cd85b4d553b91b7829078b728b98
[ "MIT" ]
1
2018-12-07T02:05:32.000Z
2018-12-07T02:05:32.000Z
gerapy/server/core/urls.py
Tilyp/Gerapy
e9792d020397cd85b4d553b91b7829078b728b98
[ "MIT" ]
null
null
null
gerapy/server/core/urls.py
Tilyp/Gerapy
e9792d020397cd85b4d553b91b7829078b728b98
[ "MIT" ]
null
null
null
from django.conf.urls import url from . import views urlpatterns = [ url(r'^$', views.index, name='index'), url(r'^api/index/status/$', views.index_status, name='index_status'), url(r'^api/client/$', views.client_index, name='client_index'), url(r'^api/client/create', views.client_create, name='client_...
74.487805
104
0.688278
ffd3799da4570caea1a395f500db9163e266f60e
199
py
Python
master/nimmt6-master/nimmt6-master/tests/test_player.py
AlexRogalskiy/DevArtifacts
931aabb8cbf27656151c54856eb2ea7d1153203a
[ "MIT" ]
4
2018-09-07T15:35:24.000Z
2019-03-27T09:48:12.000Z
master/nimmt6-master/nimmt6-master/tests/test_player.py
AlexRogalskiy/DevArtifacts
931aabb8cbf27656151c54856eb2ea7d1153203a
[ "MIT" ]
371
2020-03-04T21:51:56.000Z
2022-03-31T20:59:11.000Z
master/nimmt6-master/nimmt6-master/tests/test_player.py
AlexRogalskiy/DevArtifacts
931aabb8cbf27656151c54856eb2ea7d1153203a
[ "MIT" ]
3
2019-06-18T19:57:17.000Z
2020-11-06T03:55:08.000Z
#!/usr/bin/python """ This is an unit test for players in the game """ import unittest class TestPlayer(unittest.TestCase): """ Unit test for all basic players (firstBot, randomBot, userBot) """
24.875
71
0.713568
ffd39f5b9976a07a4f5ac5626e55a185af18039b
1,157
py
Python
nnvm/tests/python/frontend/onnx/model_zoo/__init__.py
mingwayzhang/tvm
3b287c4d4e6d83e6fd30db47ffa3d5481a332a63
[ "Apache-2.0" ]
48
2020-07-29T18:09:23.000Z
2021-10-09T01:53:33.000Z
nnvm/tests/python/frontend/onnx/model_zoo/__init__.py
mingwayzhang/tvm
3b287c4d4e6d83e6fd30db47ffa3d5481a332a63
[ "Apache-2.0" ]
9
2021-04-02T02:28:07.000Z
2022-03-26T18:23:59.000Z
nnvm/tests/python/frontend/onnx/model_zoo/__init__.py
mingwayzhang/tvm
3b287c4d4e6d83e6fd30db47ffa3d5481a332a63
[ "Apache-2.0" ]
42
2020-08-01T06:41:24.000Z
2022-01-20T10:33:08.000Z
"""Store for onnx examples and common models.""" from __future__ import absolute_import as _abs import os import logging from .super_resolution import get_super_resolution from tvm.contrib.download import download_testdata URLS = { 'super_resolution.onnx': 'https://gist.github.com/zhreshold/bcda4716699ac97ea44f79...
48.208333
169
0.797753
ffd3ec4582e76e6ddfc98f9032a79d6d81303367
2,481
py
Python
bfc/opt/removedead.py
staceb/esotope-bfc
0f4992cce44f3fbf1046ec1c6c981bc4fad023f7
[ "MIT" ]
25
2015-08-24T11:40:10.000Z
2022-03-24T03:11:25.000Z
bfc/opt/removedead.py
staceb/esotope-bfc
0f4992cce44f3fbf1046ec1c6c981bc4fad023f7
[ "MIT" ]
30
2017-11-22T16:01:15.000Z
2017-11-22T16:10:27.000Z
bfc/opt/removedead.py
staceb/esotope-bfc
0f4992cce44f3fbf1046ec1c6c981bc4fad023f7
[ "MIT" ]
2
2018-11-08T15:04:11.000Z
2021-01-26T17:24:13.000Z
# This is a part of Esotope Brainfuck Compiler. from bfc.nodes import * from bfc.expr import * from bfc.cond import * from bfc.opt.base import BaseOptimizerPass, Transformer from bfc.opt.cleanup import cleanup class OptimizerPass(BaseOptimizerPass): # dead code elimination, sorta. doesn't do so across basic bloc...
32.220779
75
0.529222
ffd41493d4a2931c581feb1b7c39d2f3d6e304a8
505
py
Python
tests/data/expected/main/all_of_with_object/output.py
adaamz/datamodel-code-generator
3b34573f35f8d420e4668a85047c757fd1da7754
[ "MIT" ]
891
2019-07-23T04:23:32.000Z
2022-03-31T13:36:33.000Z
tests/data/expected/main/all_of_with_object/output.py
adaamz/datamodel-code-generator
3b34573f35f8d420e4668a85047c757fd1da7754
[ "MIT" ]
663
2019-07-23T09:50:26.000Z
2022-03-29T01:56:55.000Z
tests/data/expected/main/all_of_with_object/output.py
adaamz/datamodel-code-generator
3b34573f35f8d420e4668a85047c757fd1da7754
[ "MIT" ]
108
2019-07-23T08:50:37.000Z
2022-03-09T10:50:22.000Z
# generated by datamodel-codegen: # filename: all_of_with_object.json # timestamp: 2019-07-26T00:00:00+00:00 from __future__ import annotations from typing import Optional from pydantic import BaseModel class Home(BaseModel): address: Optional[str] = None zip: Optional[str] = None class Kind(BaseMod...
18.035714
40
0.706931
ffd44a99583b62f342524cf87ba31c80a4be5b94
13,548
py
Python
fast_update/fast.py
netzkolchose/django-fast-update
13bfd99b3ac90d3fc04fde1c3350f84dae7a4be4
[ "MIT" ]
null
null
null
fast_update/fast.py
netzkolchose/django-fast-update
13bfd99b3ac90d3fc04fde1c3350f84dae7a4be4
[ "MIT" ]
null
null
null
fast_update/fast.py
netzkolchose/django-fast-update
13bfd99b3ac90d3fc04fde1c3350f84dae7a4be4
[ "MIT" ]
null
null
null
from weakref import WeakKeyDictionary from django.db import transaction, models, connections from django.db.models.functions import Cast from django.db.models.expressions import Col from operator import attrgetter # typing imports from django.db.models import Field from typing import Callable, Dict, Iterable, List, Se...
35.84127
94
0.660319
ffd467c188efd98cce1687d6c0145e03b40f5950
26,340
py
Python
src/connectedvmware/azext_connectedvmware/vendored_sdks/operations/_guest_agents_operations.py
saisankargochhayat/azure-cli-extensions
f89443a766961f984977a2cf1b682973fcb61edd
[ "MIT" ]
null
null
null
src/connectedvmware/azext_connectedvmware/vendored_sdks/operations/_guest_agents_operations.py
saisankargochhayat/azure-cli-extensions
f89443a766961f984977a2cf1b682973fcb61edd
[ "MIT" ]
null
null
null
src/connectedvmware/azext_connectedvmware/vendored_sdks/operations/_guest_agents_operations.py
saisankargochhayat/azure-cli-extensions
f89443a766961f984977a2cf1b682973fcb61edd
[ "MIT" ]
1
2022-02-14T21:43:29.000Z
2022-02-14T21:43:29.000Z
# pylint: disable=too-many-lines # coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # Code generated by Microsoft (R) AutoRe...
42.621359
239
0.659681
ffd49d7df58366604a630f26e8f9dfc2920f12cf
4,859
py
Python
tests/suite/test_requirements.py
microsoft/CCF
cb38ac3ca2c7e529127fed61a86d78029a8548ff
[ "Apache-2.0" ]
530
2019-05-07T03:07:15.000Z
2022-03-29T16:33:06.000Z
tests/suite/test_requirements.py
microsoft/CCF
cb38ac3ca2c7e529127fed61a86d78029a8548ff
[ "Apache-2.0" ]
3,393
2019-05-07T08:33:32.000Z
2022-03-31T14:57:14.000Z
tests/suite/test_requirements.py
microsoft/CCF
cb38ac3ca2c7e529127fed61a86d78029a8548ff
[ "Apache-2.0" ]
158
2019-05-07T09:17:56.000Z
2022-03-25T16:45:04.000Z
# Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the Apache 2.0 License. import functools from loguru import logger as LOG class TestRequirementsNotMet(Exception): pass def description(desc): def decorator(func): @functools.wraps(func) def wrapper(*args, **kwarg...
33.054422
131
0.600535
ffd4a889f1a3244b9248488f355ac118036b56dc
193
py
Python
terrascript/ucodecov/r.py
mjuenema/python-terrascript
6d8bb0273a14bfeb8ff8e950fe36f97f7c6e7b1d
[ "BSD-2-Clause" ]
507
2017-07-26T02:58:38.000Z
2022-01-21T12:35:13.000Z
terrascript/ucodecov/r.py
mjuenema/python-terrascript
6d8bb0273a14bfeb8ff8e950fe36f97f7c6e7b1d
[ "BSD-2-Clause" ]
135
2017-07-20T12:01:59.000Z
2021-10-04T22:25:40.000Z
terrascript/ucodecov/r.py
mjuenema/python-terrascript
6d8bb0273a14bfeb8ff8e950fe36f97f7c6e7b1d
[ "BSD-2-Clause" ]
81
2018-02-20T17:55:28.000Z
2022-01-31T07:08:40.000Z
# terrascript/ucodecov/r.py # Automatically generated by tools/makecode.py () import warnings warnings.warn( "using the 'legacy layout' is deprecated", DeprecationWarning, stacklevel=2 )
21.444444
79
0.766839
ffd4c90e1712b1c1d2bdc94d53b0913a46c38f5a
1,598
py
Python
flexget/plugins/parsers/parser_internal.py
sillygreen89/Flexget
60f24ab0dda7b94c87ba43451921c50c3cef391f
[ "MIT" ]
1
2018-05-02T21:14:50.000Z
2018-05-02T21:14:50.000Z
flexget/plugins/parsers/parser_internal.py
sillygreen89/Flexget
60f24ab0dda7b94c87ba43451921c50c3cef391f
[ "MIT" ]
null
null
null
flexget/plugins/parsers/parser_internal.py
sillygreen89/Flexget
60f24ab0dda7b94c87ba43451921c50c3cef391f
[ "MIT" ]
null
null
null
from __future__ import unicode_literals, division, absolute_import from builtins import * # pylint: disable=unused-import, redefined-builtin import logging import time from flexget import plugin from flexget.event import event from flexget.utils.log import log_once from flexget.utils.titles.movie import MovieParser ...
31.333333
107
0.661452
ffd4e4b0bf0a9b90b7a52607e84a9c53a02db11b
1,867
py
Python
Common/Readers/Engine/YahooFinancialEngine.py
enriqueescobar-askida/Kinito.Finance
5308748b64829ac798a858161f9b4a9e5829db44
[ "MIT" ]
2
2020-03-04T11:18:38.000Z
2020-05-10T15:36:42.000Z
Common/Readers/Engine/YahooFinancialEngine.py
enriqueescobar-askida/Kinito.Finance
5308748b64829ac798a858161f9b4a9e5829db44
[ "MIT" ]
6
2020-03-30T16:42:47.000Z
2021-12-13T20:37:21.000Z
Common/Readers/Engine/YahooFinancialEngine.py
enriqueescobar-askida/Kinito.Finance
5308748b64829ac798a858161f9b4a9e5829db44
[ "MIT" ]
1
2020-04-14T11:26:16.000Z
2020-04-14T11:26:16.000Z
from yahoofinancials import YahooFinancials import Common.Readers.YahooTicker as YahooTicker from datetime import date from Common.Readers.Engine.AbstractEngine import AbstractEngine class YahooFinancialEngine(AbstractEngine): """description of class""" StockName: str PeRatio: float FromDate: date ...
33.339286
143
0.68827
ffd4e852151d753e85e6cf45d92884eb8c346bae
21,278
py
Python
google-cloud-sdk/.install/.backup/lib/googlecloudsdk/third_party/apis/dataproc/v1/dataproc_v1_client.py
KaranToor/MA450
c98b58aeb0994e011df960163541e9379ae7ea06
[ "Apache-2.0" ]
1
2017-11-29T18:52:27.000Z
2017-11-29T18:52:27.000Z
google-cloud-sdk/.install/.backup/lib/googlecloudsdk/third_party/apis/dataproc/v1/dataproc_v1_client.py
KaranToor/MA450
c98b58aeb0994e011df960163541e9379ae7ea06
[ "Apache-2.0" ]
null
null
null
google-cloud-sdk/.install/.backup/lib/googlecloudsdk/third_party/apis/dataproc/v1/dataproc_v1_client.py
KaranToor/MA450
c98b58aeb0994e011df960163541e9379ae7ea06
[ "Apache-2.0" ]
1
2020-07-25T12:09:01.000Z
2020-07-25T12:09:01.000Z
"""Generated client library for dataproc version v1.""" # NOTE: This file is autogenerated and should not be edited by hand. from apitools.base.py import base_api from googlecloudsdk.third_party.apis.dataproc.v1 import dataproc_v1_messages as messages class DataprocV1(base_api.BaseApiClient): """Generated client li...
41.558594
590
0.69546
ffd4ea4da2f29547f924cf7be0b42306a8164250
17,233
py
Python
p2pcam/tutk/tutk.py
kingrollsdice/p2pcam
b4f1124b081e2ae8d525dac434fec9704ec8458a
[ "MIT" ]
3
2021-05-14T20:36:48.000Z
2021-06-14T10:04:01.000Z
p2pcam/tutk/tutk.py
kingrollsdice/p2pcam
b4f1124b081e2ae8d525dac434fec9704ec8458a
[ "MIT" ]
null
null
null
p2pcam/tutk/tutk.py
kingrollsdice/p2pcam
b4f1124b081e2ae8d525dac434fec9704ec8458a
[ "MIT" ]
1
2021-09-21T11:49:48.000Z
2021-09-21T11:49:48.000Z
import typing from typing import Optional, Union import pathlib from ctypes import ( CDLL, Array, Structure, c_char, c_char_p, c_int, c_int32, c_uint, c_uint8, c_uint16, c_uint32, c_ushort, cdll, pointer, sizeof, ) BITRATE_360P = 0x1E """ The bitrate used by...
32.824762
106
0.681947
ffd4efad0f38c76f6db8107524ffb9131ac4e07a
1,258
py
Python
sunpy/instr/iris/iris.py
derdon/sunpy
619102cd48c73a326c45263369446be9b74366e8
[ "MIT" ]
1
2020-01-12T15:06:49.000Z
2020-01-12T15:06:49.000Z
sunpy/instr/iris/iris.py
derdon/sunpy
619102cd48c73a326c45263369446be9b74366e8
[ "MIT" ]
null
null
null
sunpy/instr/iris/iris.py
derdon/sunpy
619102cd48c73a326c45263369446be9b74366e8
[ "MIT" ]
null
null
null
""" Some very beta tools for IRIS """ import sunpy.io import sunpy.time import sunpy.map __all__ = ['SJI_to_cube'] def SJI_to_cube(filename, start=0, stop=None, hdu=0): """ Read a SJI file and return a MapCube .. warning:: This function is a very early beta and is not stable. Further work is ...
22.070175
87
0.620827
ffd4f12a80ddc87c2cfd3310187f5ea47437e155
1,819
py
Python
supriya/commands/GroupTailRequest.py
deeuu/supriya
14fcb5316eccb4dafbe498932ceff56e1abb9d27
[ "MIT" ]
null
null
null
supriya/commands/GroupTailRequest.py
deeuu/supriya
14fcb5316eccb4dafbe498932ceff56e1abb9d27
[ "MIT" ]
null
null
null
supriya/commands/GroupTailRequest.py
deeuu/supriya
14fcb5316eccb4dafbe498932ceff56e1abb9d27
[ "MIT" ]
null
null
null
from supriya.commands.MoveRequest import MoveRequest from supriya.enums import RequestId class GroupTailRequest(MoveRequest): """ A /g_tail request. :: >>> import supriya >>> server = supriya.Server.default().boot() >>> group = supriya.Group().allocate() >>> synth = supri...
23.320513
73
0.487631
ffd4f5851a20145e24cc36ce1612380f0cc32c8c
15,867
py
Python
Lib/test/test_memoryview.py
bendmorris/static-python
2e0f8c4d7ed5b359dc7d8a75b6fb37e6b6c5c473
[ "PSF-2.0" ]
164
2015-01-04T07:04:07.000Z
2022-01-06T03:18:56.000Z
Lib/test/test_memoryview.py
idobatter/cpython
c7b03e7b57cedccb77e37f65f9bbcb82050c2bb5
[ "PSF-2.0" ]
3
2015-08-27T07:35:26.000Z
2016-04-07T16:35:39.000Z
Lib/test/test_memoryview.py
bendmorris/static-python
2e0f8c4d7ed5b359dc7d8a75b6fb37e6b6c5c473
[ "PSF-2.0" ]
35
2015-06-11T05:35:55.000Z
2022-01-11T19:32:00.000Z
"""Unit tests for the memoryview Some tests are in test_bytes. Many tests that require _testbuffer.ndarray are in test_buffer. """ import unittest import test.support import sys import gc import weakref import array import io class AbstractMemoryTests: source_bytes = b"abcdef" @property def _sour...
33.125261
81
0.582467
ffd51fd05f7077125b2dc6e168e7d6fc8af5bee3
2,006
py
Python
tests/test_mechanics.py
JHay0112/jmath
3bccf7353c07152ff49ec6aa56785918c9f710ed
[ "MIT" ]
7
2021-06-25T12:57:08.000Z
2021-12-29T21:53:30.000Z
tests/test_mechanics.py
JHay0112/jmath
3bccf7353c07152ff49ec6aa56785918c9f710ed
[ "MIT" ]
1
2021-08-11T02:16:12.000Z
2021-08-12T06:05:21.000Z
tests/test_mechanics.py
JHay0112/jmath
3bccf7353c07152ff49ec6aa56785918c9f710ed
[ "MIT" ]
1
2021-09-20T21:25:55.000Z
2021-09-20T21:25:55.000Z
""" jmath/tests/test_mechanics.py Runs tests on Mechanics Author: Jordan Hay Date: 2021-07-16 """ # - Imports from ..jmath.physics.mechanics import * # - Tests def test_gravity(): """Tests that the graviational force between two objects at a distance is as expected.""" env = PhysEnv() ...
32.354839
93
0.664506
ffd53e02fd3e0f9cd20a24b09a06df28f84f2a31
8,610
py
Python
sdk/eventhub/azure-eventhubs/examples/test_examples_eventhub.py
pjquirk/azure-sdk-for-python
cbf02ec4f177b96eae1dbbba87c34c2c93880150
[ "MIT" ]
1
2021-09-07T18:36:04.000Z
2021-09-07T18:36:04.000Z
sdk/eventhub/azure-eventhubs/examples/test_examples_eventhub.py
pjquirk/azure-sdk-for-python
cbf02ec4f177b96eae1dbbba87c34c2c93880150
[ "MIT" ]
2
2019-10-02T23:37:38.000Z
2020-10-02T01:17:31.000Z
sdk/eventhub/azure-eventhubs/examples/test_examples_eventhub.py
xiafu-msft/azure-sdk-for-python
4d9560cfd519ee60667f3cc2f5295a58c18625db
[ "MIT" ]
null
null
null
#------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for # license information. #-------------------------------------------------------------------------- import pyte...
33.897638
104
0.688502
ffd53e7a78142162317a677de49c1821635a65b5
4,880
py
Python
python/paddle/v2/fluid/tests/book_memory_optimization/test_memopt_machine_translation.py
boru-roylu/Paddle
b15c675530db541440ddb5b7e774d522ecaf1533
[ "ECL-2.0", "Apache-2.0" ]
1
2019-03-14T05:20:07.000Z
2019-03-14T05:20:07.000Z
python/paddle/v2/fluid/tests/book_memory_optimization/test_memopt_machine_translation.py
boru-roylu/Paddle
b15c675530db541440ddb5b7e774d522ecaf1533
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
python/paddle/v2/fluid/tests/book_memory_optimization/test_memopt_machine_translation.py
boru-roylu/Paddle
b15c675530db541440ddb5b7e774d522ecaf1533
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
# Copyright (c) 2018 PaddlePaddle Authors. All Rights Reserve. # # 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 appl...
33.655172
80
0.651025
ffd546f9b645274a3108ab4c5d52f46374f79d80
552
py
Python
tests/test_init.py
Hellowlol/bw_plex
86768d6ee89ee1c08d2f6e6468976e4c51135915
[ "MIT" ]
371
2018-01-01T17:07:06.000Z
2022-03-30T01:52:28.000Z
tests/test_init.py
Hellowlol/bw_plex
86768d6ee89ee1c08d2f6e6468976e4c51135915
[ "MIT" ]
144
2018-01-01T22:36:36.000Z
2022-01-31T19:26:55.000Z
tests/test_init.py
Hellowlol/bw_plex
86768d6ee89ee1c08d2f6e6468976e4c51135915
[ "MIT" ]
44
2018-01-02T07:58:45.000Z
2021-11-30T10:53:52.000Z
from conftest import bw_plex def test_trim_args(): a = ['bw_plex', '-d', 'watch'] args = bw_plex.trim_argv(a) assert 'bw_plex' == args[0] assert '-d' == args[1] assert 'watch' not in args def test_arg_extract(mocker): args = ['bw_plex', '-d', '--username', 'kek', '-p', 'mysecret', 'add_them...
25.090909
99
0.615942
ffd54836784476cb1eeed9bd10a9ab8e6e7e6bab
2,846
py
Python
phonlp/models/common/dropout.py
WEYAI/PhoNLP
8fefe49965dc6346c224a5636d9333a7ddf55a2c
[ "Apache-2.0" ]
99
2020-12-31T05:44:17.000Z
2022-03-17T08:48:54.000Z
phonlp/models/common/dropout.py
WEYAI/PhoNLP
8fefe49965dc6346c224a5636d9333a7ddf55a2c
[ "Apache-2.0" ]
5
2020-12-31T14:44:50.000Z
2021-12-17T08:54:06.000Z
phonlp/models/common/dropout.py
WEYAI/PhoNLP
8fefe49965dc6346c224a5636d9333a7ddf55a2c
[ "Apache-2.0" ]
13
2020-12-31T05:49:37.000Z
2021-12-29T16:34:42.000Z
import torch import torch.nn as nn class WordDropout(nn.Module): """A word dropout layer that's designed for embedded inputs (e.g., any inputs to an LSTM layer). Given a batch of embedded inputs, this layer randomly set some of them to be a replacement state. Note that this layer assumes the last dimensio...
35.135802
137
0.644413
ffd55997580b82ddbecd7d5281a3789263397c6e
3,426
py
Python
eval_generator_model.py
rakshithShetty/captionGAN
3a1d33923aee05ea46d2556f59cb892132a1e5c2
[ "MIT" ]
66
2017-12-04T05:23:29.000Z
2022-03-16T02:43:23.000Z
eval_generator_model.py
Jevin754/captionGAN
b9d1331e7a64ed20e152a749eaa1f086c0be556d
[ "MIT" ]
5
2018-02-28T06:25:53.000Z
2021-11-07T16:38:03.000Z
eval_generator_model.py
Jevin754/captionGAN
b9d1331e7a64ed20e152a749eaa1f086c0be556d
[ "MIT" ]
17
2017-11-16T01:45:15.000Z
2022-02-06T08:09:08.000Z
import argparse import numpy as np import cPickle as pickle from imagernn.data_provider import getDataProvider, prepare_data, prepare_adv_data from imagernn.cnn_evaluatorTheano import CnnEvaluator from imagernn.solver import Solver from imagernn.imagernn_utils import decodeEvaluator, decodeGenerator, eval_split_theano ...
38.931818
118
0.63164
ffd5befbf1d4e7d122225f9ef860ca2d38251408
2,359
py
Python
rlkit/torch/networks/mlp.py
Asap7772/railrl_evalsawyer
baba8ce634d32a48c7dfe4dc03b123e18e96e0a3
[ "MIT" ]
null
null
null
rlkit/torch/networks/mlp.py
Asap7772/railrl_evalsawyer
baba8ce634d32a48c7dfe4dc03b123e18e96e0a3
[ "MIT" ]
null
null
null
rlkit/torch/networks/mlp.py
Asap7772/railrl_evalsawyer
baba8ce634d32a48c7dfe4dc03b123e18e96e0a3
[ "MIT" ]
null
null
null
""" General networks for pytorch. Algorithm-specific networks should go else-where. """ import torch from torch import nn as nn from torch.nn import functional as F from rlkit.policies.base import Policy from rlkit.torch import pytorch_util as ptu from rlkit.torch.core import eval_np from rlkit.torch.data_management....
30.636364
71
0.613396
ffd5c28fbee2a3dc916895f979c303753887b3e7
101
py
Python
by-session/class-921/week1/circle.py
amiraliakbari/sharif-mabani-python
5d14a08d165267fe71c28389ddbafe29af7078c5
[ "MIT" ]
2
2015-04-29T20:59:35.000Z
2018-09-26T13:33:43.000Z
by-session/class-921/week1/circle.py
amiraliakbari/sharif-mabani-python
5d14a08d165267fe71c28389ddbafe29af7078c5
[ "MIT" ]
null
null
null
by-session/class-921/week1/circle.py
amiraliakbari/sharif-mabani-python
5d14a08d165267fe71c28389ddbafe29af7078c5
[ "MIT" ]
null
null
null
import turtle while turtle.heading() < 359: turtle.forward(1) turtle.left(1) turtle.done()
12.625
29
0.673267
ffd5c3609f5d49af632e5be442404c67737cf82e
501
py
Python
tests/test_convert_utils.py
relf/WhatsOpt-CLI
85551102c28b2bd404207521fd9020435415d469
[ "Apache-2.0" ]
5
2019-11-13T08:05:57.000Z
2022-01-03T14:35:49.000Z
tests/test_convert_utils.py
relf/WhatsOpt-CLI
85551102c28b2bd404207521fd9020435415d469
[ "Apache-2.0" ]
4
2019-12-19T14:43:17.000Z
2021-06-21T09:28:31.000Z
tests/test_convert_utils.py
relf/WhatsOpt-CLI
85551102c28b2bd404207521fd9020435415d469
[ "Apache-2.0" ]
5
2019-03-29T09:51:25.000Z
2021-06-08T14:10:52.000Z
import os import unittest from openmdao.api import CaseReader from whatsopt.convert_utils import ( convert_sqlite_to_csv, ) class TestUploadUtils(unittest.TestCase): DATA_PATH = os.path.join(os.path.dirname(__file__), "data") def test_convert_sqlite_to_csv(self): filepath = os.path.join(TestUpl...
26.368421
77
0.732535
ffd6089bdc88dd3977528d3d7da783730462477e
19,280
py
Python
setup.py
ssalonen/pandas
1929563fdb5358a41420d103a388aa2bd494d543
[ "PSF-2.0", "BSD-2-Clause", "BSD-3-Clause" ]
null
null
null
setup.py
ssalonen/pandas
1929563fdb5358a41420d103a388aa2bd494d543
[ "PSF-2.0", "BSD-2-Clause", "BSD-3-Clause" ]
null
null
null
setup.py
ssalonen/pandas
1929563fdb5358a41420d103a388aa2bd494d543
[ "PSF-2.0", "BSD-2-Clause", "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python """ Parts of this file were taken from the pyzmq project (https://github.com/zeromq/pyzmq) which have been permitted for use under the BSD license. Parts are from lxml (https://github.com/lxml/lxml) """ import os import sys import shutil import warnings # may need to work around setuptools bug ...
34.614004
83
0.576504
ffd61e8a3a4254255ba6d06f473142395174208d
4,826
py
Python
asposewordscloud/models/requests/move_file_request.py
aspose-words-cloud/aspose-words-cloud-python
65c7b55fa4aac69b60d41e7f54aed231df285479
[ "MIT" ]
14
2018-07-15T17:01:52.000Z
2018-11-29T06:15:33.000Z
asposewordscloud/models/requests/move_file_request.py
aspose-words-cloud/aspose-words-cloud-python
65c7b55fa4aac69b60d41e7f54aed231df285479
[ "MIT" ]
1
2018-09-28T12:59:34.000Z
2019-10-08T08:42:59.000Z
asposewordscloud/models/requests/move_file_request.py
aspose-words-cloud/aspose-words-cloud-python
65c7b55fa4aac69b60d41e7f54aed231df285479
[ "MIT" ]
2
2020-12-21T07:59:17.000Z
2022-02-16T21:41:25.000Z
# coding: utf-8 # ----------------------------------------------------------------------------------- # <copyright company="Aspose" file="move_file_request.py"> # Copyright (c) 2021 Aspose.Words for Cloud # </copyright> # <summary> # Permission is hereby granted, free of charge, to any person obtaining a copy # of...
42.707965
113
0.644012
ffd62368446050139e03097290f1dc6fcfb58613
11,004
py
Python
assemblyline/common/compat_tag_map.py
malvidin/assemblyline-base
6e7de0c15fbca2cf586e33f04df7d3717bd0c0b5
[ "MIT" ]
null
null
null
assemblyline/common/compat_tag_map.py
malvidin/assemblyline-base
6e7de0c15fbca2cf586e33f04df7d3717bd0c0b5
[ "MIT" ]
null
null
null
assemblyline/common/compat_tag_map.py
malvidin/assemblyline-base
6e7de0c15fbca2cf586e33f04df7d3717bd0c0b5
[ "MIT" ]
null
null
null
from typing import Dict from assemblyline.common.dict_utils import flatten tag_map = { "attribution": { "actor": ['THREAT_ACTOR'], "campaign": ['CAMPAIGN_NAME'], "exploit": ['EXPLOIT_NAME'], "implant": ['IMPLANT_NAME'], "family": ['IMPLANT_FAMILY'], "network": ['NET...
35.382637
78
0.493548
ffd624cd995380277c816689628e304f60eef05d
1,809
py
Python
sunpy/lightcurve/sources/logical.py
derdon/sunpy
619102cd48c73a326c45263369446be9b74366e8
[ "MIT" ]
null
null
null
sunpy/lightcurve/sources/logical.py
derdon/sunpy
619102cd48c73a326c45263369446be9b74366e8
[ "MIT" ]
null
null
null
sunpy/lightcurve/sources/logical.py
derdon/sunpy
619102cd48c73a326c45263369446be9b74366e8
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """Provides a logical lightcurve. Only two values are allowed - True or False. Useful for keeping track of when an event occurred, usually labeled as "True".""" from __future__ import absolute_import import numpy as np from sunpy.lightcurve import LightCurve from scipy.ndimage import label fr...
32.303571
85
0.624655
ffd62e7e0529f52b8ca559d3e8aca63f78d87126
35,698
py
Python
perfkitbenchmarker/providers/gcp/gce_virtual_machine.py
dPhanekham/PerfKitBenchmarker
e9fe13fb826ef875d3100c164a50dac638b756c3
[ "Apache-2.0" ]
null
null
null
perfkitbenchmarker/providers/gcp/gce_virtual_machine.py
dPhanekham/PerfKitBenchmarker
e9fe13fb826ef875d3100c164a50dac638b756c3
[ "Apache-2.0" ]
null
null
null
perfkitbenchmarker/providers/gcp/gce_virtual_machine.py
dPhanekham/PerfKitBenchmarker
e9fe13fb826ef875d3100c164a50dac638b756c3
[ "Apache-2.0" ]
null
null
null
# Copyright 2017 PerfKitBenchmarker Authors. All rights reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by appli...
38.550756
80
0.687489
ffd64c91c3c685be7dd8dcdcef43393d296a5562
541
py
Python
large_app/python/user_module/swaggerui.py
sahilGupta89/large_flask_app
e1ab54431bb935c02186f586d9246b741d9f2d33
[ "MIT" ]
null
null
null
large_app/python/user_module/swaggerui.py
sahilGupta89/large_flask_app
e1ab54431bb935c02186f586d9246b741d9f2d33
[ "MIT" ]
null
null
null
large_app/python/user_module/swaggerui.py
sahilGupta89/large_flask_app
e1ab54431bb935c02186f586d9246b741d9f2d33
[ "MIT" ]
null
null
null
from flask_swagger_ui import get_swaggerui_blueprint SWAGGER_URL = "/api/docs" # URL for exposing Swagger UI API_URL = "/swagger/" # Call factory function to create our blueprint swaggerui_blueprint = get_swaggerui_blueprint( SWAGGER_URL, API_URL, config={ "layout": "BaseLayout", "deepLin...
27.05
57
0.659889
ffd664444c8dde963b41c6c4fdc2c5968c101570
2,202
py
Python
distance_between_points.py
Dikaeinstein/Think_Python
370cb5af25230ff20994206e2d8023fd1d4c2c74
[ "MIT" ]
null
null
null
distance_between_points.py
Dikaeinstein/Think_Python
370cb5af25230ff20994206e2d8023fd1d4c2c74
[ "MIT" ]
null
null
null
distance_between_points.py
Dikaeinstein/Think_Python
370cb5af25230ff20994206e2d8023fd1d4c2c74
[ "MIT" ]
null
null
null
import cwd from copy import deepcopy from math import sqrt class Point: '''Represents a point in 2-D space.''' def __init__(self, x=0.0, y=0.0): self.x = x self.y = y def __str__(self): return "({0}, {1})".format(self.x, self.y) # Type-Based dispatch def __add__(se...
25.604651
79
0.542688
ffd6bd401d50913c0a70e146b37e07306b45d803
1,488
py
Python
ligament_fs/__init__.py
Archived-Object/ligament
ff3d78130522676a20dc64086dc8a27b197cc20f
[ "Apache-2.0" ]
1
2015-07-22T15:27:40.000Z
2015-07-22T15:27:40.000Z
ligament_fs/__init__.py
Archived-Object/ligament
ff3d78130522676a20dc64086dc8a27b197cc20f
[ "Apache-2.0" ]
null
null
null
ligament_fs/__init__.py
Archived-Object/ligament
ff3d78130522676a20dc64086dc8a27b197cc20f
[ "Apache-2.0" ]
null
null
null
""" Basic filesystem operations for the `ligament` task operator """ import os import glob import shutil from ligament.buildtarget import BuildTarget from ligament.helpers import mkdir_recursive, pdebug class Copy(BuildTarget): def __init__(self, filemap, **kwargs): BuildTarget.__init__(self, **kwargs) ...
31
68
0.557796
ffd70c4372908c742dc4b916da0f2699cf04260e
142
py
Python
distsim/__init__.py
mikulatomas/distsim
fe4c6345fdebb240cad3ce30272d677a66ec7325
[ "MIT" ]
4
2020-10-22T07:12:48.000Z
2021-11-10T14:34:23.000Z
distsim/__init__.py
mikulatomas/distsim
fe4c6345fdebb240cad3ce30272d677a66ec7325
[ "MIT" ]
null
null
null
distsim/__init__.py
mikulatomas/distsim
fe4c6345fdebb240cad3ce30272d677a66ec7325
[ "MIT" ]
null
null
null
"""Top-level package for distsim.""" from .network import Network from .node import Node from .link import Link from .message import Message
20.285714
36
0.767606
ffd7458bc01e8e46251baef3b245335dabb92c93
2,247
py
Python
publishing_boy/plugins.py
przemekkot/publishing-boy
7ed069ab2393d684057ddad196c49a58101e9fda
[ "MIT" ]
null
null
null
publishing_boy/plugins.py
przemekkot/publishing-boy
7ed069ab2393d684057ddad196c49a58101e9fda
[ "MIT" ]
7
2020-02-12T02:27:28.000Z
2022-02-10T08:54:02.000Z
publishing_boy/plugins.py
przemekkot/publishing-boy
7ed069ab2393d684057ddad196c49a58101e9fda
[ "MIT" ]
null
null
null
import os from datetime import datetime from publishing_boy import config """Here are functions that serve the role of plugins. Each function accepts tuple object with: - filename - content - path Those functions are loaded to the program by a decorator, during module loading. Functions are stored inside a list. """ ...
21.4
77
0.659546
ffd7499d68e60c5ade30f84579cb5f897547c218
14,526
py
Python
test/unit/core/test_baseloop.py
arielmakestuff/loadlimit
70d3d23eecfe7922699098ea4901cc8673d14576
[ "MIT" ]
null
null
null
test/unit/core/test_baseloop.py
arielmakestuff/loadlimit
70d3d23eecfe7922699098ea4901cc8673d14576
[ "MIT" ]
5
2016-11-28T16:59:44.000Z
2017-03-18T17:10:40.000Z
test/unit/core/test_baseloop.py
arielmakestuff/loadlimit
70d3d23eecfe7922699098ea4901cc8673d14576
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # test/unit/core/test_baseloop.py # Copyright (C) 2016 authors and contributors (see AUTHORS file) # # This module is released under the MIT License. """Test loadlimit.core.BaseLoop""" # ============================================================================ # Imports # ==================...
30.074534
78
0.567328
ffd7774bb7e030156fe7ff2ba7b8f13d65fe00cf
11,241
py
Python
ipsframework/node_structure.py
HPC-SimTools/IPS-framework
4911bcc97a64bb31503009de75f24d3cba263bec
[ "BSD-3-Clause" ]
9
2019-05-06T17:30:35.000Z
2021-12-10T16:05:00.000Z
ipsframework/node_structure.py
HPC-SimTools/IPS-framework
4911bcc97a64bb31503009de75f24d3cba263bec
[ "BSD-3-Clause" ]
80
2018-04-13T20:25:04.000Z
2022-03-10T21:59:58.000Z
ipsframework/node_structure.py
HPC-SimTools/IPS-framework
4911bcc97a64bb31503009de75f24d3cba263bec
[ "BSD-3-Clause" ]
4
2020-08-07T17:58:13.000Z
2021-11-12T17:17:42.000Z
# ------------------------------------------------------------------------------- # Copyright 2006-2021 UT-Battelle, LLC. See LICENSE for more information. # ------------------------------------------------------------------------------- """ Node structures for RM are implemented here for convenience. """ # local vers...
35.238245
160
0.492305
ffd79482104c566d0d14237a77b46555e8299f63
3,998
py
Python
skimage/morphology/binary.py
jaberg/scikits-image
2ab3e2dfb341189ef2ff9370c6cf3d33ef6ec88d
[ "BSD-3-Clause" ]
null
null
null
skimage/morphology/binary.py
jaberg/scikits-image
2ab3e2dfb341189ef2ff9370c6cf3d33ef6ec88d
[ "BSD-3-Clause" ]
null
null
null
skimage/morphology/binary.py
jaberg/scikits-image
2ab3e2dfb341189ef2ff9370c6cf3d33ef6ec88d
[ "BSD-3-Clause" ]
1
2019-12-20T19:19:59.000Z
2019-12-20T19:19:59.000Z
import numpy as np from scipy import ndimage def binary_erosion(image, selem, out=None): """Return fast binary morphological erosion of an image. This function returns the same result as greyscale erosion but performs faster for binary images. Morphological erosion sets a pixel at (i,j) to the minim...
28.971014
79
0.653327
ffd7c26fa5cb21dfcadd1cf38d591691f59d7fe6
7,871
py
Python
functions/main.py
leonardobiffi/aws-schedule-instances
fe610c4dfe85c656c80158d9aa5481df49293426
[ "Apache-2.0" ]
1
2020-09-27T00:37:52.000Z
2020-09-27T00:37:52.000Z
functions/main.py
leonardobiffi/aws-schedule-instances
fe610c4dfe85c656c80158d9aa5481df49293426
[ "Apache-2.0" ]
null
null
null
functions/main.py
leonardobiffi/aws-schedule-instances
fe610c4dfe85c656c80158d9aa5481df49293426
[ "Apache-2.0" ]
2
2020-09-25T11:42:10.000Z
2021-07-05T19:53:55.000Z
import os, json from datetime import datetime, timedelta from logger.main import * # Debug if enable debugmode = os.getenv('DEBUG', False) def debugout(module, data): if debugmode: logger.info("DEBUG %s : %s" % (module, data)) def flattenjson(b, delim): val = {} for i in b.keys(): if isin...
36.953052
129
0.51226
ffd7c4537eac78678cdb55f2e6bfaacff188a7a5
1,609
py
Python
ice/gridproviders/consolegrid_provider.py
gordonshieh94/Ice
595a6c6790bbc46709c2871245756ca7c045a98b
[ "MIT" ]
null
null
null
ice/gridproviders/consolegrid_provider.py
gordonshieh94/Ice
595a6c6790bbc46709c2871245756ca7c045a98b
[ "MIT" ]
null
null
null
ice/gridproviders/consolegrid_provider.py
gordonshieh94/Ice
595a6c6790bbc46709c2871245756ca7c045a98b
[ "MIT" ]
null
null
null
""" consolegrid_provider.py Created by Scott on 2013-12-26. Copyright (c) 2013 Scott Rice. All rights reserved. """ import requests import urllib.request from ice.gridproviders import grid_image_provider from ice.logs import logger class ConsoleGridProvider(grid_image_provider.GridImageProvider): api_url = "http...
27.741379
104
0.683654
ffd7e92f3e0444d219404682ff4764c3878628d0
874
py
Python
setup.py
richardhsu/naarad
665f58f76c2412e125f2be2c111ebc7cdf6ff92e
[ "Apache-2.0" ]
180
2015-01-05T13:27:16.000Z
2021-02-08T04:11:47.000Z
setup.py
richardhsu/naarad
665f58f76c2412e125f2be2c111ebc7cdf6ff92e
[ "Apache-2.0" ]
58
2015-01-07T10:25:17.000Z
2020-11-05T03:40:23.000Z
setup.py
richardhsu/naarad
665f58f76c2412e125f2be2c111ebc7cdf6ff92e
[ "Apache-2.0" ]
60
2015-01-06T09:23:33.000Z
2021-02-11T04:29:33.000Z
#! /usr/bin/python from setuptools import setup, find_packages with open('VERSION') as f: naarad_version = f.read().strip() with open('requirements.txt') as f: required = f.read().splitlines() setup(name="naarad", description='Naarad is a Performance Analysis tool', url='https://github.com/l...
34.96
123
0.668192
ffd7fb835dc69146eb455f269e88e69516d36219
1,503
py
Python
tests/test_arrays.py
ritabt/petra
a7b391cdcd34f07ca201e2a396e141a3d2f12884
[ "Apache-2.0" ]
null
null
null
tests/test_arrays.py
ritabt/petra
a7b391cdcd34f07ca201e2a396e141a3d2f12884
[ "Apache-2.0" ]
null
null
null
tests/test_arrays.py
ritabt/petra
a7b391cdcd34f07ca201e2a396e141a3d2f12884
[ "Apache-2.0" ]
1
2020-04-13T20:12:26.000Z
2020-04-13T20:12:26.000Z
from typing import cast, Callable import subprocess import petra as pt import unittest from ctypes import CFUNCTYPE, c_int32 program = pt.Program("module") My_Array = pt.ArrayType(pt.Int32_t, 3) array_var = pt.Symbol(My_Array, "array_var") program.add_func( "array_set_get_values", (), pt.Int32_t, p...
27.327273
87
0.550233
ffd8103fadec4c1aaaf5197fcfcaf8f89e997c9c
63,924
py
Python
pytorch/torch/overrides.py
zhou3968322/dl-code-read
aca204a986dabe2755becff0f42de1082299d791
[ "MIT" ]
null
null
null
pytorch/torch/overrides.py
zhou3968322/dl-code-read
aca204a986dabe2755becff0f42de1082299d791
[ "MIT" ]
null
null
null
pytorch/torch/overrides.py
zhou3968322/dl-code-read
aca204a986dabe2755becff0f42de1082299d791
[ "MIT" ]
null
null
null
""" Python implementation of __torch_function__ While most of the torch API and handling for __torch_function__ happens at the C++ level, some of the torch API is written in Python so we need python-level handling for __torch_function__ overrides as well. The main developer-facing functionality in this file are handle...
56.519894
132
0.646705
ffd81e97852777baf4a8b15146835938e87a8193
28,381
py
Python
lib/googlecloudsdk/calliope/cli.py
ianel20/google-cloud-sdk
36ed4e06ba3961d0a8fbf30a3eaabf7db6d4e9c3
[ "Apache-2.0" ]
null
null
null
lib/googlecloudsdk/calliope/cli.py
ianel20/google-cloud-sdk
36ed4e06ba3961d0a8fbf30a3eaabf7db6d4e9c3
[ "Apache-2.0" ]
null
null
null
lib/googlecloudsdk/calliope/cli.py
ianel20/google-cloud-sdk
36ed4e06ba3961d0a8fbf30a3eaabf7db6d4e9c3
[ "Apache-2.0" ]
1
2020-07-25T12:23:41.000Z
2020-07-25T12:23:41.000Z
# Copyright 2013 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 ag...
39.308864
80
0.69011
ffd83f8068f05ae6bebb8b9f42dc0d0b2357b23d
34
py
Python
annodize/frame/__init__.py
NowanIlfideme/annodize
d31f68b62f473990a43334ef50a0a176847b1f7a
[ "MIT" ]
null
null
null
annodize/frame/__init__.py
NowanIlfideme/annodize
d31f68b62f473990a43334ef50a0a176847b1f7a
[ "MIT" ]
null
null
null
annodize/frame/__init__.py
NowanIlfideme/annodize
d31f68b62f473990a43334ef50a0a176847b1f7a
[ "MIT" ]
null
null
null
"""Annotated dataframe checks."""
17
33
0.705882
ffd85109d8d9abf30ce56b77b163f02bca8743be
8,968
py
Python
toontown/coghq/DistributedGridAI.py
LittleNed/toontown-stride
1252a8f9a8816c1810106006d09c8bdfe6ad1e57
[ "Apache-2.0" ]
3
2020-01-02T08:43:36.000Z
2020-07-05T08:59:02.000Z
toontown/coghq/DistributedGridAI.py
NoraTT/Historical-Commits-Project-Altis-Source
fe88e6d07edf418f7de6ad5b3d9ecb3d0d285179
[ "Apache-2.0" ]
null
null
null
toontown/coghq/DistributedGridAI.py
NoraTT/Historical-Commits-Project-Altis-Source
fe88e6d07edf418f7de6ad5b3d9ecb3d0d285179
[ "Apache-2.0" ]
4
2019-06-20T23:45:23.000Z
2020-10-14T20:30:15.000Z
from toontown.coghq.CrateGlobals import * from otp.level import DistributedEntityAI from direct.directnotify import DirectNotifyGlobal class DistributedGridAI(DistributedEntityAI.DistributedEntityAI): notify = DirectNotifyGlobal.directNotify.newCategory('DistributedGridAI') def __init__(self, level, entId): ...
36.307692
107
0.521521
ffd85520af433dea9a3b4742aeea4daadb1e1a59
7,589
py
Python
pywick/models/segmentation/da_basenets/resnet.py
ashishpatel26/pywick
1afffd1c21c2b188836d3599e802146182757bb5
[ "MIT" ]
2
2020-11-28T07:56:09.000Z
2021-11-08T09:30:39.000Z
pywick/models/segmentation/da_basenets/resnet.py
ashishpatel26/pywick
1afffd1c21c2b188836d3599e802146182757bb5
[ "MIT" ]
null
null
null
pywick/models/segmentation/da_basenets/resnet.py
ashishpatel26/pywick
1afffd1c21c2b188836d3599e802146182757bb5
[ "MIT" ]
null
null
null
import torch import torch.nn as nn import torch.utils.model_zoo as model_zoo __all__ = ['ResNet', 'resnet18', 'resnet34', 'resnet50', 'resnet101', 'resnet152'] model_urls = { 'resnet18': 'https://download.pytorch.org/models/resnet18-5c106cde.pth', 'resnet34': 'https://download.pytorch.org/models/resnet34-333f...
33.579646
119
0.622743
ffd881ca5545df898628ba054c0f96bf00baadec
560
py
Python
efficientnet/metrics/metric.py
hyunghunny/efficientnet-pytorch
738dc06847eac40d443cfb7bd97c6b6957a23a66
[ "MIT" ]
108
2019-06-02T14:59:45.000Z
2022-01-07T00:26:04.000Z
cifar/efficientnet/metrics/metric.py
lancopku/well-classified-examples-are-underestimated
6ee7cdeae893d64d4795b2903d812875fe861c62
[ "Apache-2.0" ]
11
2019-06-18T15:54:43.000Z
2021-01-08T13:38:16.000Z
cifar/efficientnet/metrics/metric.py
lancopku/well-classified-examples-are-underestimated
6ee7cdeae893d64d4795b2903d812875fe861c62
[ "Apache-2.0" ]
32
2019-06-11T02:50:16.000Z
2021-05-10T10:24:09.000Z
from abc import ABCMeta, abstractproperty def _to_value(other): if isinstance(other, Metric): other = other.value return other class Metric(metaclass=ABCMeta): @abstractproperty def value(self): raise NotImplementedError def __gt__(self, other): return self.value > _to_...
20.740741
45
0.658929
ffd8a051a4e6eda10a0944ab20d71bf4940e32ff
6,746
py
Python
boa/core/recipe_handling.py
dhirschfeld/boa
e29aca2c458c211627874a568de3d71545881f27
[ "BSD-3-Clause" ]
33
2020-06-01T11:02:02.000Z
2020-09-01T17:07:00.000Z
boa/core/recipe_handling.py
dhirschfeld/boa
e29aca2c458c211627874a568de3d71545881f27
[ "BSD-3-Clause" ]
17
2020-06-01T16:10:18.000Z
2020-08-28T20:42:26.000Z
boa/core/recipe_handling.py
dhirschfeld/boa
e29aca2c458c211627874a568de3d71545881f27
[ "BSD-3-Clause" ]
8
2020-06-24T14:07:51.000Z
2020-08-31T02:55:46.000Z
# Copyright (C) 2021, QuantStack # SPDX-License-Identifier: BSD-3-Clause import os import re import time from os.path import exists, isdir, join from subprocess import CalledProcessError import yaml from bs4 import UnicodeDammit from conda.gateways.disk.create import mkdir_p from conda_build import utils from conda_...
38.99422
93
0.606878
ffd8b417d5f59b2d51ad56cc72e84675893620bc
12,750
py
Python
tests/core/pyspec/eth2spec/test/fork_choice/test_on_attestation.py
booleanfunction/eth2.0-specs
cf916dc147a5694e681bb52af7ebd2b156e1df78
[ "CC0-1.0" ]
1
2020-07-08T19:09:33.000Z
2020-07-08T19:09:33.000Z
tests/core/pyspec/eth2spec/test/fork_choice/test_on_attestation.py
booleanfunction/eth2.0-specs
cf916dc147a5694e681bb52af7ebd2b156e1df78
[ "CC0-1.0" ]
null
null
null
tests/core/pyspec/eth2spec/test/fork_choice/test_on_attestation.py
booleanfunction/eth2.0-specs
cf916dc147a5694e681bb52af7ebd2b156e1df78
[ "CC0-1.0" ]
null
null
null
from eth2spec.test.context import PHASE0, with_all_phases, spec_state_test from eth2spec.test.helpers.block import build_empty_block_for_next_slot from eth2spec.test.helpers.attestations import get_valid_attestation, sign_attestation from eth2spec.test.helpers.state import transition_to, state_transition_and_sign_block...
38.059701
109
0.764863
ffd8b9bead5e9929f201cb9a0a79beb105d10d8b
22,550
py
Python
zsc/compiler.py
theodox/zsc
1474604bc95ad562108a2c280e2640c8774019ac
[ "MIT" ]
9
2020-03-09T01:50:06.000Z
2021-03-16T05:17:38.000Z
zsc/compiler.py
theodox/zsc
1474604bc95ad562108a2c280e2640c8774019ac
[ "MIT" ]
null
null
null
zsc/compiler.py
theodox/zsc
1474604bc95ad562108a2c280e2640c8774019ac
[ "MIT" ]
1
2020-03-09T01:22:01.000Z
2020-03-09T01:22:01.000Z
import io import ast import logging from .prepass import ParseError, Prepass logger = logging.getLogger(__name__) logger.addHandler(logging.StreamHandler()) logger.setLevel(logging.DEBUG) WARN_ON_COMPARISONS = True VERSION = '0.1.0' class Analyzer(ast.NodeVisitor): def __init__(self, indent=0, input_file='',...
31.017882
113
0.52878
ffd8cec50de7a2c42421439f6fd253b31882c092
8,996
py
Python
Lib/yp_test/test_filecmp.py
Syeberman/nohtyP
59d7214a5a5474a03c54f45d79ad4fd037989a79
[ "CNRI-Python-GPL-Compatible" ]
null
null
null
Lib/yp_test/test_filecmp.py
Syeberman/nohtyP
59d7214a5a5474a03c54f45d79ad4fd037989a79
[ "CNRI-Python-GPL-Compatible" ]
null
null
null
Lib/yp_test/test_filecmp.py
Syeberman/nohtyP
59d7214a5a5474a03c54f45d79ad4fd037989a79
[ "CNRI-Python-GPL-Compatible" ]
null
null
null
from yp import * import filecmp import os import shutil import tempfile import unittest from yp_test import yp_unittest from yp_test import support @yp_unittest.skip_files class FileCompareTestCase(unittest.TestCase): def setUp(self): self.name = support.TESTFN self.name_same = support.TESTFN + '-...
40.705882
78
0.589818
ffd8d5487069e5d5187b038e9767d75ac95e7b68
122
py
Python
pytorch_widedeep/preprocessing/__init__.py
FlyingWing/pytorch-widedeep
91a255d08bc9bdd5a05669465b7cf0313849ec9c
[ "MIT" ]
null
null
null
pytorch_widedeep/preprocessing/__init__.py
FlyingWing/pytorch-widedeep
91a255d08bc9bdd5a05669465b7cf0313849ec9c
[ "MIT" ]
null
null
null
pytorch_widedeep/preprocessing/__init__.py
FlyingWing/pytorch-widedeep
91a255d08bc9bdd5a05669465b7cf0313849ec9c
[ "MIT" ]
null
null
null
from ._preprocessors import ( TextPreprocessor, WidePreprocessor, DensePreprocessor, ImagePreprocessor, )
17.428571
29
0.737705
ffd8fa2108c1c8a1eedef375021e1e5b39cba3d0
1,214
py
Python
rhucrl_experiments/hucrl_robustness/launch_all_evaluate.py
sebascuri/rhucrl
27663e1302f3bbc636dff28495c6f2667bb7c1da
[ "MIT" ]
1
2021-11-19T11:46:48.000Z
2021-11-19T11:46:48.000Z
rhucrl_experiments/hucrl_robustness/launch_all_evaluate.py
sebascuri/rhucrl
27663e1302f3bbc636dff28495c6f2667bb7c1da
[ "MIT" ]
1
2021-11-22T07:48:03.000Z
2021-11-22T07:48:03.000Z
rhucrl_experiments/hucrl_robustness/launch_all_evaluate.py
sebascuri/rhucrl
27663e1302f3bbc636dff28495c6f2667bb7c1da
[ "MIT" ]
1
2022-03-26T10:18:01.000Z
2022-03-26T10:18:01.000Z
"""Python Script Template.""" import os from lsf_runner import init_runner, make_commands runner = init_runner("EvaluateKnownModel", wall_time=24 * 60, num_threads=4) cwd = os.path.dirname(os.path.realpath(__file__)) script = "evaluate_nominal.py" ENVIRONMENTS = [ # "MBHalfCheetah-v0", "PendulumSwingUp-v0",...
23.803922
84
0.588962
ffd9072f88878b23b0197f6f01f27308edcc16f5
27,547
py
Python
integration-tests/test/rnode.py
guilhermehas/rchain
3fd2a1924e828de18204ac100bff60a6090621e1
[ "Apache-2.0" ]
null
null
null
integration-tests/test/rnode.py
guilhermehas/rchain
3fd2a1924e828de18204ac100bff60a6090621e1
[ "Apache-2.0" ]
null
null
null
integration-tests/test/rnode.py
guilhermehas/rchain
3fd2a1924e828de18204ac100bff60a6090621e1
[ "Apache-2.0" ]
null
null
null
import functools import re import os import queue import shlex import string import shutil import logging from logging import (Logger) import threading from threading import Event import contextlib from multiprocessing import Queue, Process from typing import ( Dict, List, Tuple, Optional, Generator...
36.926273
115
0.657821
ffd9487d3f95d926e05d46ef1095bfc7845bccb6
1,746
py
Python
twitoff/prediction.py
Full-Data-Alchemist/twitt-off
8e7016dcd6a3341e0812a53b0abe226a953f4a8b
[ "MIT" ]
null
null
null
twitoff/prediction.py
Full-Data-Alchemist/twitt-off
8e7016dcd6a3341e0812a53b0abe226a953f4a8b
[ "MIT" ]
null
null
null
twitoff/prediction.py
Full-Data-Alchemist/twitt-off
8e7016dcd6a3341e0812a53b0abe226a953f4a8b
[ "MIT" ]
null
null
null
""" Preediction for users based on tweet embeddings """ import numpy as np from sklearn.linear_model import LogisticRegression from .models import User from .twitter import vectorize_tweets import pickle def predict_user(user0_name, user1_name, hypo_tweet_text): """ Determine and return which user is more lik...
43.65
76
0.668958
ffd96fa855a5f6063676dfc0fe9fad34155537f2
3,023
py
Python
pyproxy/pyproxy/providers/disk.py
dburihabwa/recast
f7adbc344e174f48a919a651df54945ec9672201
[ "MIT" ]
null
null
null
pyproxy/pyproxy/providers/disk.py
dburihabwa/recast
f7adbc344e174f48a919a651df54945ec9672201
[ "MIT" ]
1
2020-11-08T20:21:13.000Z
2020-11-08T20:21:13.000Z
pyproxy/pyproxy/providers/disk.py
dburihabwa/recast
f7adbc344e174f48a919a651df54945ec9672201
[ "MIT" ]
3
2018-05-24T14:40:54.000Z
2021-07-10T17:54:26.000Z
""" A storage provider that writes blocks to the filesystem """ import errno import os import shutil def mkdir_p(path): """ Recursively creates a directory tree. Shamelessly copied from https://stackoverflow.com/a/600612 Args: path(str): Tree to create Returns: bool: True if the dir...
28.518868
74
0.575587
ffd98f6f378e7cf43e7c5be1585b767ca7f5accb
2,781
py
Python
tests/test_sources_finder.py
cclauss/statue
ac582dcf1cbcb4379028ef15339ac400bfe8a642
[ "Apache-2.0" ]
8
2020-09-29T12:31:08.000Z
2022-02-28T08:49:48.000Z
tests/test_sources_finder.py
cclauss/statue
ac582dcf1cbcb4379028ef15339ac400bfe8a642
[ "Apache-2.0" ]
20
2020-06-13T20:21:27.000Z
2022-03-29T12:52:36.000Z
tests/test_sources_finder.py
saroad2/statue
ac582dcf1cbcb4379028ef15339ac400bfe8a642
[ "Apache-2.0" ]
null
null
null
from pathlib import Path from typing import List from git import Repo from pytest_cases import THIS_MODULE, fixture, parametrize_with_cases from statue.sources_finder import find_sources def existing_file(*args): directory = Path(*args[:-1]) directory.mkdir(parents=True, exist_ok=True) file_name = args[...
30.56044
88
0.737864
ffd9d2d2384dcba7a439708ae0f9bd51e8b26729
348
py
Python
srfnef/tools/api/__init__.py
twj2417/srf
63365cfd75199d70eea2273214a4fa580a9fdf2a
[ "Apache-2.0" ]
null
null
null
srfnef/tools/api/__init__.py
twj2417/srf
63365cfd75199d70eea2273214a4fa580a9fdf2a
[ "Apache-2.0" ]
null
null
null
srfnef/tools/api/__init__.py
twj2417/srf
63365cfd75199d70eea2273214a4fa580a9fdf2a
[ "Apache-2.0" ]
null
null
null
# encoding: utf-8 ''' @author: Minghao Guo @contact: mh.guo0111@gmail.com @software: srf_ct @file: __init__.py @date: 4/8/2019 @desc: ''' from .class_schema_parser import convert_class_to_schema, convert_schema_to_class from .instance_dict_parser import convert_instance_to_dict, convert_dict_to_instance from .json impo...
26.769231
84
0.801724
ffd9d58a445f0530252b3c118aa90e091b4baa66
2,254
py
Python
python/scc.py
shauryachawla/misc
e50eb7c8979f9b3f7ecc43464cf7ccc91bf4d0bb
[ "MIT" ]
null
null
null
python/scc.py
shauryachawla/misc
e50eb7c8979f9b3f7ecc43464cf7ccc91bf4d0bb
[ "MIT" ]
null
null
null
python/scc.py
shauryachawla/misc
e50eb7c8979f9b3f7ecc43464cf7ccc91bf4d0bb
[ "MIT" ]
1
2019-10-07T08:22:09.000Z
2019-10-07T08:22:09.000Z
import sys sys.setrecursionlimit(70000) adj_list = {} reverse = {} order = [] leaders = {} from trace1 import trace def dfs_loop(G, process_ord): global leaders leaders = {} visited = set() for v in process_ord: if v not in visited: visited.add(v) dfs.leader = v ...
26.209302
74
0.502662
ffd9ea2eda23d2e1f5c4c860f781a954f7bb872e
4,086
py
Python
cn_v2/manager/notify.py
Larryun/coursenotify_v2
e82794ba83d42c2cca9b2dc7c6e6108dcecaba54
[ "MIT" ]
1
2021-03-25T22:16:07.000Z
2021-03-25T22:16:07.000Z
cn_v2/manager/notify.py
Larryun/coursenotify_v2
e82794ba83d42c2cca9b2dc7c6e6108dcecaba54
[ "MIT" ]
null
null
null
cn_v2/manager/notify.py
Larryun/coursenotify_v2
e82794ba83d42c2cca9b2dc7c6e6108dcecaba54
[ "MIT" ]
null
null
null
from jinja2 import Environment, FileSystemLoader, select_autoescape from cn_v2.manager.base import BaseManager from cn_v2.util.email import * class NotifyManger(BaseManager): def __init__(self, config_file, school, cursor=None): super(NotifyManger, self).__init__(config_file, school, cursor=cursor) ...
40.86
108
0.645374
ffd9eba4b2a61d5de3395179b9fe7af67e6ae7ae
9,742
py
Python
ecfs_analyze_logs/src/analyze_file_accesses.py
zdvresearch/fast15-paper-addons
8001f658ba819202186bf84892f4718eefd021fe
[ "MIT" ]
null
null
null
ecfs_analyze_logs/src/analyze_file_accesses.py
zdvresearch/fast15-paper-addons
8001f658ba819202186bf84892f4718eefd021fe
[ "MIT" ]
null
null
null
ecfs_analyze_logs/src/analyze_file_accesses.py
zdvresearch/fast15-paper-addons
8001f658ba819202186bf84892f4718eefd021fe
[ "MIT" ]
null
null
null
#!/usr/bin/env python """ works on the filtered/merged/obfuscated files. for every day, get stats for number of files put/get/del, amount of bytes written / read / deleted. """ import gzip from collections import defaultdict import sys import time import os import resource import hashlib import json import math...
27.676136
107
0.512728
ffda1f7d98c43079efc95cbdcebf27c52d2a7d90
7,636
py
Python
train.py
pedrodiamel/pytorch-classification
0fa9f597ba1e7cf8fcde322e2e9ee924970593aa
[ "MIT" ]
9
2019-03-27T12:40:15.000Z
2021-12-20T12:57:59.000Z
train.py
pedrodiamel/pytorch-classification
0fa9f597ba1e7cf8fcde322e2e9ee924970593aa
[ "MIT" ]
null
null
null
train.py
pedrodiamel/pytorch-classification
0fa9f597ba1e7cf8fcde322e2e9ee924970593aa
[ "MIT" ]
null
null
null
# STD MODULE import os import numpy as np import cv2 import random # TORCH MODULE import torch from torch.utils.data import Dataset, DataLoader from torch.utils.data.sampler import SubsetRandomSampler, WeightedRandomSampler from torchvision import transforms, utils import torch.backends.cudnn as cudnn # PYTVISION MO...
38.18
113
0.619303
ffda689425d9395bd3d3ba4df6e98327f49485f8
65,768
py
Python
ThirdParty/Twisted/twisted/words/test/test_irc.py
OpenGeoscience/VTK
a373e975b9284a022f43a062ebf5042bb17b4e44
[ "BSD-3-Clause" ]
1
2021-10-13T01:57:14.000Z
2021-10-13T01:57:14.000Z
ThirdParty/Twisted/twisted/words/test/test_irc.py
OpenGeoscience/VTK
a373e975b9284a022f43a062ebf5042bb17b4e44
[ "BSD-3-Clause" ]
null
null
null
ThirdParty/Twisted/twisted/words/test/test_irc.py
OpenGeoscience/VTK
a373e975b9284a022f43a062ebf5042bb17b4e44
[ "BSD-3-Clause" ]
5
2015-10-09T04:12:29.000Z
2021-12-15T16:57:11.000Z
# Copyright (c) Twisted Matrix Laboratories. # See LICENSE for details. """ Tests for L{twisted.words.protocols.irc}. """ import time from twisted.trial import unittest from twisted.trial.unittest import TestCase from twisted.words.protocols import irc from twisted.words.protocols.irc import IRCClient from twisted.i...
34.632965
101
0.564728
ffda6e5f3e90aab7aa380a6b666c01ea1a132aad
7,178
py
Python
src/python/pants/option/options_fingerprinter.py
mpopenko-exos/pants
47d27037c8b13291fc9023e56ddd1b1defdf1b8e
[ "Apache-2.0" ]
null
null
null
src/python/pants/option/options_fingerprinter.py
mpopenko-exos/pants
47d27037c8b13291fc9023e56ddd1b1defdf1b8e
[ "Apache-2.0" ]
1
2018-09-04T17:37:34.000Z
2018-09-04T19:42:58.000Z
src/python/pants/option/options_fingerprinter.py
mpopenko-exos/pants
47d27037c8b13291fc9023e56ddd1b1defdf1b8e
[ "Apache-2.0" ]
null
null
null
# Copyright 2015 Pants project contributors (see CONTRIBUTORS.md). # Licensed under the Apache License, Version 2.0 (see LICENSE). import os from collections import defaultdict from hashlib import sha1 from pants.base.build_environment import get_buildroot from pants.base.hash_utils import CoercingEncoder, json_hash ...
39.01087
102
0.691279
ffda89f7456f017790abcaa7d747126ec6407693
28,948
py
Python
pisces/schema/antelope.py
samuelchodur/pisces
1545db9d8cb2f56ac77dc786909cbfcdd9e0bba4
[ "MIT" ]
12
2015-04-17T01:57:45.000Z
2020-05-22T22:54:47.000Z
pisces/schema/antelope.py
samuelchodur/pisces
1545db9d8cb2f56ac77dc786909cbfcdd9e0bba4
[ "MIT" ]
26
2015-03-17T14:10:53.000Z
2019-06-13T13:08:30.000Z
pisces/schema/antelope.py
samuelchodur/pisces
1545db9d8cb2f56ac77dc786909cbfcdd9e0bba4
[ "MIT" ]
9
2015-11-07T04:49:53.000Z
2019-04-07T05:13:45.000Z
# coding: utf-8 """ Antelope v4.11 Datascope database schema """ from datetime import datetime from sqlalchemy import Date, DateTime, Float, Numeric, String, Integer from sqlalchemy import Column, Table, func from sqlalchemy import PrimaryKeyConstraint, UniqueConstraint, Index from sqlalchemy.ext.declarative import d...
38.039422
125
0.579971
ffda8f8396413bc99c53073a1d2c1d7b699821d7
4,021
py
Python
alipay/aop/api/request/KoubeiCateringDishVirtualcategorySyncRequest.py
antopen/alipay-sdk-python-all
8e51c54409b9452f8d46c7bb10eea7c8f7e8d30c
[ "Apache-2.0" ]
213
2018-08-27T16:49:32.000Z
2021-12-29T04:34:12.000Z
alipay/aop/api/request/KoubeiCateringDishVirtualcategorySyncRequest.py
antopen/alipay-sdk-python-all
8e51c54409b9452f8d46c7bb10eea7c8f7e8d30c
[ "Apache-2.0" ]
29
2018-09-29T06:43:00.000Z
2021-09-02T03:27:32.000Z
alipay/aop/api/request/KoubeiCateringDishVirtualcategorySyncRequest.py
antopen/alipay-sdk-python-all
8e51c54409b9452f8d46c7bb10eea7c8f7e8d30c
[ "Apache-2.0" ]
59
2018-08-27T16:59:26.000Z
2022-03-25T10:08:15.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- import json from alipay.aop.api.FileItem import FileItem from alipay.aop.api.constant.ParamConstants import * from alipay.aop.api.domain.KoubeiCateringDishVirtualcategorySyncModel import KoubeiCateringDishVirtualcategorySyncModel class KoubeiCateringDishVirtualcategory...
27.731034
148
0.649092
ffda9a23da8a97725ad20b4724517bcac5c8b6a7
2,871
py
Python
c2cwsgiutils/stats_pyramid/_pyramid_spy.py
jhutchings1/c2cwsgiutils
733f3eace5393539a170455038a27d42682bf4f5
[ "BSD-2-Clause-FreeBSD" ]
null
null
null
c2cwsgiutils/stats_pyramid/_pyramid_spy.py
jhutchings1/c2cwsgiutils
733f3eace5393539a170455038a27d42682bf4f5
[ "BSD-2-Clause-FreeBSD" ]
null
null
null
c2cwsgiutils/stats_pyramid/_pyramid_spy.py
jhutchings1/c2cwsgiutils
733f3eace5393539a170455038a27d42682bf4f5
[ "BSD-2-Clause-FreeBSD" ]
null
null
null
from typing import Callable, Optional, Dict, Any import pyramid.config import pyramid.events from pyramid.httpexceptions import HTTPException import pyramid.request from c2cwsgiutils import stats def _add_server_metric( request: pyramid.request.Request, name: str, duration: Optional[float] = None, d...
33
93
0.653779
ffda9d0429bf0be05f8401d42e9ba149c85c0361
8,430
py
Python
load_data.py
sorrowyn/C-Tran
236d785952c59210e6812b4ad5ee12bab585ce4c
[ "MIT" ]
104
2021-01-25T17:27:16.000Z
2022-03-20T10:17:50.000Z
load_data.py
sorrowyn/C-Tran
236d785952c59210e6812b4ad5ee12bab585ce4c
[ "MIT" ]
9
2021-02-26T08:11:46.000Z
2021-11-17T16:24:52.000Z
load_data.py
sorrowyn/C-Tran
236d785952c59210e6812b4ad5ee12bab585ce4c
[ "MIT" ]
18
2021-02-21T14:01:23.000Z
2022-03-16T08:41:27.000Z
import torch from skimage import io, transform import numpy as np from torch.utils.data import Dataset, DataLoader from torchvision import transforms from pdb import set_trace as stop import os, random from dataloaders.voc2007_20 import Voc07Dataset from dataloaders.vg500_dataset import VGDataset from dataloaders.coco8...
44.136126
174
0.639265
ffdaa3e28edd81b4e5ba7419facbfd4ff58e2172
115
py
Python
aurora/defaults.py
tommyip/aurora
a8c9226a454055021b2259d929bcd83e6b758ac4
[ "MIT" ]
null
null
null
aurora/defaults.py
tommyip/aurora
a8c9226a454055021b2259d929bcd83e6b758ac4
[ "MIT" ]
null
null
null
aurora/defaults.py
tommyip/aurora
a8c9226a454055021b2259d929bcd83e6b758ac4
[ "MIT" ]
null
null
null
DEFAULTS = { 'output_dir': 'dist', 'static_dir': 'static', 'permalink': '/blog/:year/:month/:title', }
19.166667
45
0.565217
ffdac6a48199654df2fe8e42ce4a522e41856ce0
5,789
py
Python
src/a01/auth.py
mcardosos/adx-automation-client
d657ff85b0f0e408e5c64703c47798d164f49a35
[ "MIT" ]
null
null
null
src/a01/auth.py
mcardosos/adx-automation-client
d657ff85b0f0e408e5c64703c47798d164f49a35
[ "MIT" ]
null
null
null
src/a01/auth.py
mcardosos/adx-automation-client
d657ff85b0f0e408e5c64703c47798d164f49a35
[ "MIT" ]
null
null
null
import os import json import sys from datetime import datetime import adal import tabulate import requests.auth import a01.cli from a01.common import get_logger, CONFIG_DIR, CONFIG_FILE, TOKEN_FILE, AUTHORITY_URL, CLIENT_ID, RESOURCE_ID, A01Config class AuthenticationError(Exception): pass class AuthSettings(...
31.983425
120
0.622387
ffdad965a0ed67a659bbf8330ebc576111ae3bc0
4,935
py
Python
setup.py
smsaladi/moltemplate
8c45b0e419a0efa79092267d192b7ba6b2598e7b
[ "MIT" ]
null
null
null
setup.py
smsaladi/moltemplate
8c45b0e419a0efa79092267d192b7ba6b2598e7b
[ "MIT" ]
null
null
null
setup.py
smsaladi/moltemplate
8c45b0e419a0efa79092267d192b7ba6b2598e7b
[ "MIT" ]
null
null
null
from setuptools import setup setup( name='moltemplate', packages=['moltemplate', 'moltemplate.nbody_alt_symmetry'], package_dir={'moltemplate': 'moltemplate'}, #.py files are in "moltemplate/" package_data={'moltemplate': ['force_fields/*.lt']}, #.lt files are in "moltemplate/force_f...
43.672566
672
0.645593
ffdaf13ae041424e1dd129bc39b956a59dd84d03
2,209
py
Python
chaospy/distributions/collection/burr.py
lblonk/chaospy
1759a4307c6134b74ce63ff44973195f1e185f94
[ "MIT" ]
1
2020-04-29T20:53:25.000Z
2020-04-29T20:53:25.000Z
chaospy/distributions/collection/burr.py
agonzs11/Polinomio-del-caos
5a415ece07e6535488174bac69a6c0fcc2ca272d
[ "MIT" ]
null
null
null
chaospy/distributions/collection/burr.py
agonzs11/Polinomio-del-caos
5a415ece07e6535488174bac69a6c0fcc2ca272d
[ "MIT" ]
null
null
null
"""Burr Type III distribution.""" import numpy from scipy import special from ..baseclass import Dist from ..operators.addition import Add class burr(Dist): """Stadard Burr distribution.""" def __init__(self, alpha=1., kappa=1.): Dist.__init__(self, alpha=alpha, kappa=kappa) def _pdf(self, x, a...
30.260274
71
0.564056
ffdb18347e1a89e5a594ec8cd153e725f3b4ae88
8,277
py
Python
Tools/Scripts/webkitpy/port/server_process_unittest.py
jacadcaps/webkitty
9aebd2081349f9a7b5d168673c6f676a1450a66d
[ "BSD-2-Clause" ]
6
2021-07-05T16:09:39.000Z
2022-03-06T22:44:42.000Z
Tools/Scripts/webkitpy/port/server_process_unittest.py
jacadcaps/webkitty
9aebd2081349f9a7b5d168673c6f676a1450a66d
[ "BSD-2-Clause" ]
7
2022-03-15T13:25:39.000Z
2022-03-15T13:25:44.000Z
Tools/Scripts/webkitpy/port/server_process_unittest.py
jacadcaps/webkitty
9aebd2081349f9a7b5d168673c6f676a1450a66d
[ "BSD-2-Clause" ]
null
null
null
# Copyright (C) 2011 Google Inc. All rights reserved. # Copyright (C) 2011-2019 Apple Inc. All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are # met: # # * Redistributions of source code must retain the a...
35.371795
144
0.670654
ffdb31c3b69ca5a8d04d44b168e6510559419e02
727
py
Python
redash/handlers/events.py
steedos/redash
46d954843f229d74b5712384e74b4b0fdcef621b
[ "BSD-2-Clause-FreeBSD" ]
null
null
null
redash/handlers/events.py
steedos/redash
46d954843f229d74b5712384e74b4b0fdcef621b
[ "BSD-2-Clause-FreeBSD" ]
null
null
null
redash/handlers/events.py
steedos/redash
46d954843f229d74b5712384e74b4b0fdcef621b
[ "BSD-2-Clause-FreeBSD" ]
1
2021-07-27T06:27:29.000Z
2021-07-27T06:27:29.000Z
from flask import request from redash import statsd_client from redash.wsgi import api from redash.tasks import record_event from redash.handlers.base import BaseResource class EventAPI(BaseResource): def post(self): events_list = request.get_json(force=True) for event in events_list: ...
25.964286
72
0.697387
ffdb3539adf4687b930b96ffa6a12f65037ca4ba
3,993
py
Python
MFAEngine/config/urls.py
justicevR/mfa_authentication_factor_v0.1
b7302904c3eaa00801ca4d78fb47797b16427ad4
[ "MIT" ]
null
null
null
MFAEngine/config/urls.py
justicevR/mfa_authentication_factor_v0.1
b7302904c3eaa00801ca4d78fb47797b16427ad4
[ "MIT" ]
null
null
null
MFAEngine/config/urls.py
justicevR/mfa_authentication_factor_v0.1
b7302904c3eaa00801ca4d78fb47797b16427ad4
[ "MIT" ]
null
null
null
"""MFAServer URL Configuration The `urlpatterns` list routes URLs to views. For more information please see: https://docs.djangoproject.com/en/3.2/topics/http/urls/ Examples: Function views 1. Add an import: from my_app import views 2. Add a URL to urlpatterns: path('', views.home, name='home') Class-bas...
34.128205
172
0.727523
ffdb4c624b9cddd1258dd515bd261cfcb81cd6b0
1,365
py
Python
discavar/test.py
JulianFlesch/discavar-vcf
84e89f57abb3ae07e5c857e6a700ebb4bcea2c64
[ "MIT" ]
null
null
null
discavar/test.py
JulianFlesch/discavar-vcf
84e89f57abb3ae07e5c857e6a700ebb4bcea2c64
[ "MIT" ]
null
null
null
discavar/test.py
JulianFlesch/discavar-vcf
84e89f57abb3ae07e5c857e6a700ebb4bcea2c64
[ "MIT" ]
null
null
null
from discavar.analysis import Cohort from discavar.annotation_parser import VEPAnnotation from discavar.filters import AnnotationFilter, VariantFilter from discavar.vcfwrapper import CyVCFWrapper import os import time tsvfile = "/home/julian/Uni/Bachelorarbeit/vcfs/input.tsv" os.chdir("../../vcfs") # t1 = time.time() ...
30.333333
85
0.675458
ffdb6a5ff4359435efdc84988157f364c76b7f8a
2,394
py
Python
tridesclous/tests/testingtools.py
rbodo/tridesclous
86f58eb8f076698245786c75e906514c7a914e48
[ "MIT" ]
1
2021-04-13T15:10:13.000Z
2021-04-13T15:10:13.000Z
tridesclous/tests/testingtools.py
rbodo/tridesclous
86f58eb8f076698245786c75e906514c7a914e48
[ "MIT" ]
null
null
null
tridesclous/tests/testingtools.py
rbodo/tridesclous
86f58eb8f076698245786c75e906514c7a914e48
[ "MIT" ]
null
null
null
import os import shutil import numpy as np from tridesclous.datasets import download_dataset from tridesclous.dataio import DataIO from tridesclous.catalogueconstructor import CatalogueConstructor from tridesclous.cataloguetools import apply_all_catalogue_steps def is_running_on_ci_cloud(): if os.environ.get('T...
26.307692
73
0.606516
ffdb6e120fc82be68f566e28b58502761ca07b90
5,363
py
Python
test/test_ukcp18_web_api.py
ukcp-data/ukcp18-api-client
3c92a946be17818b2d5a9d52da053d1e3b657b6a
[ "BSD-2-Clause" ]
1
2019-03-17T15:19:26.000Z
2019-03-17T15:19:26.000Z
test/test_ukcp18_web_api.py
ukcp-data/ukcp18-api-client
3c92a946be17818b2d5a9d52da053d1e3b657b6a
[ "BSD-2-Clause" ]
2
2019-03-17T15:19:16.000Z
2022-03-15T13:35:30.000Z
test/test_ukcp18_web_api.py
ukcp-data/ukcp-api-client
3c92a946be17818b2d5a9d52da053d1e3b657b6a
[ "BSD-2-Clause" ]
null
null
null
import os import requests import time import xml.etree.ElementTree as ET from ukcp_api_client.client import UKCPApiClient API_KEY = os.environ.get('API_KEY', None) if not API_KEY: raise Exception('Please define environment variable: "API_KEY"') BASE_URL = 'https://ukclimateprojections-ui.metoffice.gov.uk' UR...
29.960894
103
0.663994
ffdb7ee14eea22a0673b5df5639123d9f5aeef51
12,026
py
Python
tests/conftest.py
Reallywish/deepl-python-main2
66efe52df645d949ab0e2900bada7b33a4871422
[ "MIT" ]
217
2021-08-06T08:01:36.000Z
2022-03-31T10:21:16.000Z
tests/conftest.py
Reallywish/deepl-python-main2
66efe52df645d949ab0e2900bada7b33a4871422
[ "MIT" ]
28
2021-08-31T10:42:00.000Z
2022-03-30T00:55:19.000Z
tests/conftest.py
Reallywish/deepl-python-main2
66efe52df645d949ab0e2900bada7b33a4871422
[ "MIT" ]
17
2021-08-22T08:39:17.000Z
2022-03-29T14:10:09.000Z
# Copyright 2022 DeepL SE (https://www.deepl.com) # Use of this source code is governed by an MIT # license that can be found in the LICENSE file. import deepl import os import pathlib from pydantic import BaseSettings import pytest from typing import Callable, Optional from typing_extensions import Protocol import uu...
31.984043
79
0.635124
ffdb84b60897360a4d8cd5fcf3362fff744490f1
5,992
py
Python
bigchaindb/backend/localmongodb/connection.py
hongsookim/bigchaindb-sharding
b8af70ab77fb4d186cc227a8076e268a3ec8544b
[ "ECL-2.0", "Apache-2.0", "CC-BY-4.0" ]
1
2018-11-06T10:42:17.000Z
2018-11-06T10:42:17.000Z
bigchaindb/backend/localmongodb/connection.py
hongsookim/bigchaindb-sharding
b8af70ab77fb4d186cc227a8076e268a3ec8544b
[ "ECL-2.0", "Apache-2.0", "CC-BY-4.0" ]
null
null
null
bigchaindb/backend/localmongodb/connection.py
hongsookim/bigchaindb-sharding
b8af70ab77fb4d186cc227a8076e268a3ec8544b
[ "ECL-2.0", "Apache-2.0", "CC-BY-4.0" ]
null
null
null
# Copyright BigchainDB GmbH and BigchainDB contributors # SPDX-License-Identifier: (Apache-2.0 AND CC-BY-4.0) # Code is Apache-2.0 and docs are CC-BY-4.0 import logging from ssl import CERT_REQUIRED import pymongo import bigchaindb from bigchaindb.utils import Lazy from bigchaindb.common.exceptions import Configurat...
44.058824
117
0.555574
ffdb9df5bf45ee1df9985f911223d875607fffac
537
py
Python
assets/time_custom.py
prakarsh17/tessarect-bot
6f1f05733b33bdfbcb5adc7754a059b1c2945c12
[ "MIT" ]
10
2022-01-28T11:27:36.000Z
2022-02-25T14:24:17.000Z
assets/time_custom.py
prakarsh17/tessarect-bot
6f1f05733b33bdfbcb5adc7754a059b1c2945c12
[ "MIT" ]
1
2022-01-29T15:24:17.000Z
2022-01-29T15:24:17.000Z
assets/time_custom.py
prakarsh17/tessarect-bot
6f1f05733b33bdfbcb5adc7754a059b1c2945c12
[ "MIT" ]
1
2022-01-29T03:50:33.000Z
2022-01-29T03:50:33.000Z
import datetime def time_bm(timezone): now = datetime.datetime.utcnow() if timezone is None: return now else: time_offsets = [int(value) for value in timezone.split(':')] if len(time_offsets) == 2: now += datetime.timedelta(hours=time_offsets[0], ...
31.588235
101
0.56797
ffdb9f5a3b165b20df0ffa0736f187bbc107a235
11,242
py
Python
tests/unit/plugins/common/runners/test_rps.py
LorenzoBianconi/rally
2bbd7ee590cca048fb4ad6a8eefc484989979ff8
[ "Apache-2.0" ]
1
2021-09-29T02:16:09.000Z
2021-09-29T02:16:09.000Z
tests/unit/plugins/common/runners/test_rps.py
noah8713/rally-ovs
2434787c2cf4ca267108966c4ddc55ded3c333d9
[ "Apache-2.0" ]
1
2020-07-14T11:29:31.000Z
2020-07-14T11:29:31.000Z
tests/unit/plugins/common/runners/test_rps.py
noah8713/rally-ovs
2434787c2cf4ca267108966c4ddc55ded3c333d9
[ "Apache-2.0" ]
1
2020-07-02T01:33:48.000Z
2020-07-02T01:33:48.000Z
# Copyright 2014: Mirantis 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 b...
38.632302
78
0.573919
ffdba81dd26fbcc1c928a95467652808c0ceba28
19,582
py
Python
qiskit_dynamics/models/generator_models.py
haggaila/qiskit-dynamics
fd20314e2b591c35323782bc429d9f928fdb9a12
[ "Apache-2.0" ]
1
2022-01-21T01:47:40.000Z
2022-01-21T01:47:40.000Z
qiskit_dynamics/models/generator_models.py
haggaila/qiskit-dynamics
fd20314e2b591c35323782bc429d9f928fdb9a12
[ "Apache-2.0" ]
null
null
null
qiskit_dynamics/models/generator_models.py
haggaila/qiskit-dynamics
fd20314e2b591c35323782bc429d9f928fdb9a12
[ "Apache-2.0" ]
null
null
null
# This code is part of Qiskit. # # (C) Copyright IBM 2020. # # This code is licensed under the Apache License, Version 2.0. You may # obtain a copy of this license in the LICENSE.txt file in the root directory # of this source tree or at http://www.apache.org/licenses/LICENSE-2.0. # # Any modifications or derivative wo...
36.808271
99
0.637116
ffdbab7b836ff3ca4514ea87650badf152f98c8b
120
py
Python
chapter6/exercises/EG6-13 Code Analysis 2.py
munnep/begin_to_code_with_python
3ef14d90785526b6b26d262a7627eee73791d7d0
[ "MIT" ]
null
null
null
chapter6/exercises/EG6-13 Code Analysis 2.py
munnep/begin_to_code_with_python
3ef14d90785526b6b26d262a7627eee73791d7d0
[ "MIT" ]
null
null
null
chapter6/exercises/EG6-13 Code Analysis 2.py
munnep/begin_to_code_with_python
3ef14d90785526b6b26d262a7627eee73791d7d0
[ "MIT" ]
null
null
null
# EG6-13 Code Analysis 2 for count in range(1,13): if count==5: continue print(count) print('Finished')
17.142857
25
0.625
ffdbad9d205dbe1fb66af3af7d7aadd9df60c7f7
12,676
py
Python
spine_rig.py
jkim327/rig_class
0bda2dd1947e92c258e79886c90584e955e86835
[ "MIT" ]
null
null
null
spine_rig.py
jkim327/rig_class
0bda2dd1947e92c258e79886c90584e955e86835
[ "MIT" ]
null
null
null
spine_rig.py
jkim327/rig_class
0bda2dd1947e92c258e79886c90584e955e86835
[ "MIT" ]
null
null
null
import maya.cmds as cmds import maya.mel as mel import logging logger = logging.getLogger(__name__) import rig_class.spine_data as sd class SpineRig(object): def __init__(self, spine_data): self.spine_data = sd.SpineData() def create_sample(self): ''' Description: Creates...
27.437229
383
0.572499
ffdbcf15023ebe32daa252a5c6b568024761bbd0
2,374
py
Python
src/arch/x86/isa/insts/x87/transcendental_functions/trigonometric_functions.py
pnkfb9/gem5_priority
fbf766277df78a470758cf7d798d12fb1e7c51c4
[ "BSD-3-Clause" ]
null
null
null
src/arch/x86/isa/insts/x87/transcendental_functions/trigonometric_functions.py
pnkfb9/gem5_priority
fbf766277df78a470758cf7d798d12fb1e7c51c4
[ "BSD-3-Clause" ]
null
null
null
src/arch/x86/isa/insts/x87/transcendental_functions/trigonometric_functions.py
pnkfb9/gem5_priority
fbf766277df78a470758cf7d798d12fb1e7c51c4
[ "BSD-3-Clause" ]
null
null
null
# Copyright (c) 2007 The Hewlett-Packard Development Company # All rights reserved. # # The license below extends only to copyright in the software and shall # not be construed as granting a license to any other intellectual # property including but not limited to intellectual property relating # to a hardware implemen...
41.649123
72
0.771693
ffdbf8f3e3534fbf74737c8bde560c908bd6ef5a
4,796
py
Python
allennlp/semparse/worlds/atis_world.py
danyaljj/allennlp
5846855d363df8f84d0a12bc6867ac66f539c2a3
[ "Apache-2.0" ]
null
null
null
allennlp/semparse/worlds/atis_world.py
danyaljj/allennlp
5846855d363df8f84d0a12bc6867ac66f539c2a3
[ "Apache-2.0" ]
null
null
null
allennlp/semparse/worlds/atis_world.py
danyaljj/allennlp
5846855d363df8f84d0a12bc6867ac66f539c2a3
[ "Apache-2.0" ]
1
2018-08-30T17:08:16.000Z
2018-08-30T17:08:16.000Z
from copy import deepcopy from typing import List, Dict from parsimonious.grammar import Grammar from allennlp.semparse.contexts.atis_tables import * # pylint: disable=wildcard-import,unused-wildcard-import from allennlp.semparse.contexts.sql_table_context import \ SqlTableContext, SqlVisitor, generate_one_of...
43.6
109
0.66055
ffdc063fe02793f26c2f32dba1b5684e1dff498c
6,064
py
Python
river/stats/cov.py
online-ml/creme
60872844e6052b5ef20e4075aea30f9031377136
[ "BSD-3-Clause" ]
1,105
2019-01-24T15:15:30.000Z
2020-11-10T18:27:00.000Z
river/stats/cov.py
online-ml/creme
60872844e6052b5ef20e4075aea30f9031377136
[ "BSD-3-Clause" ]
328
2019-01-25T13:48:43.000Z
2020-11-11T11:41:44.000Z
river/stats/cov.py
online-ml/creme
60872844e6052b5ef20e4075aea30f9031377136
[ "BSD-3-Clause" ]
150
2019-01-29T19:05:21.000Z
2020-11-11T11:50:14.000Z
import copy import numpy as np from river import stats class Cov(stats.base.Bivariate): """Covariance. Parameters ---------- ddof Delta Degrees of Freedom. Examples -------- >>> from river import stats >>> x = [-2.1, -1, 4.3] >>> y = [ 3, 1.1, 0.12] >>> cov =...
27.563636
145
0.546339
ffdc247eeca60248cee00e1ee00023f3c199bd67
14,720
py
Python
alphastarmini/core/arch/arch_model.py
liuruoze/mini-AlphaStar
cf9de2507d526a5fb8ef67676aab2ffb92738640
[ "Apache-2.0" ]
108
2021-02-10T13:24:56.000Z
2022-03-21T09:58:28.000Z
alphastarmini/core/arch/arch_model.py
liuruoze/mini-AlphaStar
cf9de2507d526a5fb8ef67676aab2ffb92738640
[ "Apache-2.0" ]
21
2021-04-09T18:46:05.000Z
2022-03-29T02:44:15.000Z
alphastarmini/core/arch/arch_model.py
liuruoze/mini-AlphaStar
cf9de2507d526a5fb8ef67676aab2ffb92738640
[ "Apache-2.0" ]
19
2021-08-03T01:49:02.000Z
2022-03-30T10:21:13.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- " ArchModel." import torch import torch.nn as nn import torch.nn.functional as F from torch.optim import Adam, RMSprop from alphastarmini.core.arch.scalar_encoder import ScalarEncoder from alphastarmini.core.arch.entity_encoder import EntityEncoder, Entity fr...
46.435331
141
0.688655
ffdc4209a467bb3f3959651f9df1d6916ce7ef0e
9,031
py
Python
ice_validator/preload/generator.py
rohitagarwal0910/vvp-cnf-validation-scripts
2825f9517f4f186b4f6cc733dc1f11f1414c438e
[ "Apache-2.0", "CC-BY-4.0" ]
1
2018-08-29T19:33:22.000Z
2018-08-29T19:33:22.000Z
ice_validator/preload/generator.py
rohitagarwal0910/vvp-cnf-validation-scripts
2825f9517f4f186b4f6cc733dc1f11f1414c438e
[ "Apache-2.0", "CC-BY-4.0" ]
null
null
null
ice_validator/preload/generator.py
rohitagarwal0910/vvp-cnf-validation-scripts
2825f9517f4f186b4f6cc733dc1f11f1414c438e
[ "Apache-2.0", "CC-BY-4.0" ]
2
2019-07-23T15:47:43.000Z
2021-07-02T15:04:19.000Z
# -*- coding: utf8 -*- # ============LICENSE_START==================================================== # org.onap.vvp/validation-scripts # =================================================================== # Copyright © 2019 AT&T Intellectual Property. All rights reserved. # ===========================================...
37.945378
101
0.661831