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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
38f557de42b843f4fab9966ddd51aacb1ecd6d65 | 481 | py | Python | src/olympia/addons/migrations/0017_addonreviewerflags_notified_about_expiring_delayed_rejections.py | shashwatsingh/addons-server | 8fce98901104349055a828b5a47865f5e8f4120b | [
"BSD-3-Clause"
] | 843 | 2016-02-09T13:00:37.000Z | 2022-03-20T19:17:06.000Z | src/olympia/addons/migrations/0017_addonreviewerflags_notified_about_expiring_delayed_rejections.py | shashwatsingh/addons-server | 8fce98901104349055a828b5a47865f5e8f4120b | [
"BSD-3-Clause"
] | 10,187 | 2016-02-05T23:51:05.000Z | 2022-03-31T15:24:44.000Z | src/olympia/addons/migrations/0017_addonreviewerflags_notified_about_expiring_delayed_rejections.py | shashwatsingh/addons-server | 8fce98901104349055a828b5a47865f5e8f4120b | [
"BSD-3-Clause"
] | 551 | 2016-02-08T20:32:16.000Z | 2022-03-15T16:49:24.000Z | # Generated by Django 2.2.14 on 2020-07-30 14:58
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('addons', '0016_addonreviewerflags_auto_approval_disabled_until_next_approval'),
]
operations = [
migrations.AddField(
model_nam... | 25.315789 | 89 | 0.677755 |
38f573e88cbd06c3c0afa3719706264105644fc9 | 1,476 | py | Python | docs/conf.py | mitre/thumbtack-client | 9eeb869ae7dbf5111c44c95434086670f32de490 | [
"Apache-2.0"
] | 3 | 2021-08-15T02:14:09.000Z | 2022-03-03T22:00:42.000Z | docs/conf.py | mitre/thumbtack-client | 9eeb869ae7dbf5111c44c95434086670f32de490 | [
"Apache-2.0"
] | 2 | 2020-09-25T06:40:24.000Z | 2022-02-22T15:51:01.000Z | docs/conf.py | mitre/thumbtack-client | 9eeb869ae7dbf5111c44c95434086670f32de490 | [
"Apache-2.0"
] | 1 | 2019-11-07T08:35:10.000Z | 2019-11-07T08:35:10.000Z | # -*- coding: utf-8 -*-
project = "thumbtack-client"
copyright = "2019, The MITRE Corporation"
author = "The MITRE Corporation"
version = "0.3.0"
release = "0.3.0"
extensions = [
"sphinx.ext.autodoc",
"sphinx.ext.napoleon",
"sphinx.ext.viewcode",
]
templates_path = ["_templates"]
source_suffix = ".rst"... | 19.68 | 83 | 0.623306 |
38f58615ed274e7f41cbd519070dddd15d1248f7 | 2,480 | py | Python | mitosis/app/persistent_cell_manager.py | sbtinstruments/mitosis | 3a0eb96bdfd51c65b78afcbdcbb2bd770a88f6f5 | [
"MIT"
] | 4 | 2021-07-22T08:20:36.000Z | 2021-08-10T19:59:52.000Z | mitosis/app/persistent_cell_manager.py | sbtinstruments/mitosis | 3a0eb96bdfd51c65b78afcbdcbb2bd770a88f6f5 | [
"MIT"
] | null | null | null | mitosis/app/persistent_cell_manager.py | sbtinstruments/mitosis | 3a0eb96bdfd51c65b78afcbdcbb2bd770a88f6f5 | [
"MIT"
] | null | null | null | from contextlib import AsyncExitStack
from pathlib import Path
from anyio import create_memory_object_stream
from anyio.abc import AsyncResource, TaskGroup
from anyio.streams.memory import MemoryObjectReceiveStream, MemoryObjectSendStream
from ..async_node import AsyncNode
from ..basics import FlowIntegrationExceptio... | 43.508772 | 99 | 0.7125 |
38f5a1f092beb944feb5068ed137bfbe054d37c4 | 51,622 | py | Python | salt/client/ssh/__init__.py | cbosdo/salt-1 | 9084d662781f9c0944804ba087e652c2ddb730bf | [
"Apache-2.0"
] | null | null | null | salt/client/ssh/__init__.py | cbosdo/salt-1 | 9084d662781f9c0944804ba087e652c2ddb730bf | [
"Apache-2.0"
] | null | null | null | salt/client/ssh/__init__.py | cbosdo/salt-1 | 9084d662781f9c0944804ba087e652c2ddb730bf | [
"Apache-2.0"
] | null | null | null | # -*- coding: utf-8 -*-
'''
Create ssh executor system
'''
# Import python libs
from __future__ import absolute_import, print_function
import base64
import copy
import getpass
import json
import logging
import multiprocessing
import subprocess
import hashlib
import tarfile
import os
import re
import sys
import time
imp... | 36.899214 | 134 | 0.51943 |
38f5f7b97556650d56abc5e30662dc926201ea43 | 1,088 | py | Python | test/test_itemlist.py | peter88213/yWrestler | 32a152e8b814983ecaef6e9861df1d6b7008568d | [
"MIT"
] | null | null | null | test/test_itemlist.py | peter88213/yWrestler | 32a152e8b814983ecaef6e9861df1d6b7008568d | [
"MIT"
] | null | null | null | test/test_itemlist.py | peter88213/yWrestler | 32a152e8b814983ecaef6e9861df1d6b7008568d | [
"MIT"
] | null | null | null | """Integration tests for the pyWriter project.
Test the conversion of the item list.
For further information see https://github.com/peter88213/PyWriter
Published under the MIT License (https://opensource.org/licenses/mit-license.php)
"""
from pywriter.csv.csv_itemlist import CsvItemList
from pywriter.ods.ods_... | 26.536585 | 82 | 0.685662 |
38f65854508384a80576430a407074296b21e8e0 | 397 | py | Python | DjangoTraining/DjProject1/DjProject1/wsgi.py | udhayprakash/Django_Projects | 5c5257944d36a552428f8b8a926110d64055fc12 | [
"Apache-2.0"
] | null | null | null | DjangoTraining/DjProject1/DjProject1/wsgi.py | udhayprakash/Django_Projects | 5c5257944d36a552428f8b8a926110d64055fc12 | [
"Apache-2.0"
] | 27 | 2020-06-05T23:26:44.000Z | 2022-02-10T11:21:31.000Z | DjangoTraining/DjProject1/DjProject1/wsgi.py | udhayprakash/Django_Projects | 5c5257944d36a552428f8b8a926110d64055fc12 | [
"Apache-2.0"
] | null | null | null | """
WSGI config for DjProject1 project.
It exposes the WSGI callable as a module-level variable named ``application``.
For more information on this file, see
https://docs.djangoproject.com/en/2.2/howto/deployment/wsgi/
"""
import os
from django.core.wsgi import get_wsgi_application
os.environ.setdefault('DJANGO_SE... | 23.352941 | 78 | 0.788413 |
38f65b0379df7e0772920ba910c704c74e6a0eea | 4,883 | py | Python | Tools/Scripts/webkitpy/tool/bot/sheriff.py | jacadcaps/webkitty | 9aebd2081349f9a7b5d168673c6f676a1450a66d | [
"BSD-2-Clause"
] | 6 | 2021-07-05T16:09:39.000Z | 2022-03-06T22:44:42.000Z | Tools/Scripts/webkitpy/tool/bot/sheriff.py | jacadcaps/webkitty | 9aebd2081349f9a7b5d168673c6f676a1450a66d | [
"BSD-2-Clause"
] | 7 | 2022-03-15T13:25:39.000Z | 2022-03-15T13:25:44.000Z | Tools/Scripts/webkitpy/tool/bot/sheriff.py | jacadcaps/webkitty | 9aebd2081349f9a7b5d168673c6f676a1450a66d | [
"BSD-2-Clause"
] | null | null | null | # Copyright (c) 2010 Google 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 above copyright
# notice, this list of conditions and the ... | 45.212963 | 112 | 0.671513 |
38f6b1f6c1ad4ab4dfd823c7684bad9256e49c5d | 12,396 | py | Python | tests/unit/utils/event_test.py | johngrasty/salt | f66b18d8ee52eb988c3dbd8ba3ff6a6173c8aea5 | [
"Apache-2.0"
] | null | null | null | tests/unit/utils/event_test.py | johngrasty/salt | f66b18d8ee52eb988c3dbd8ba3ff6a6173c8aea5 | [
"Apache-2.0"
] | 1 | 2015-09-02T12:49:48.000Z | 2015-09-02T19:22:58.000Z | tests/unit/utils/event_test.py | johngrasty/salt | f66b18d8ee52eb988c3dbd8ba3ff6a6173c8aea5 | [
"Apache-2.0"
] | null | null | null | # -*- coding: utf-8 -*-
'''
:codeauthor: :email:`Pedro Algarvio (pedro@algarvio.me)`
tests.unit.utils.event_test
~~~~~~~~~~~~~~~~~~~~~~~~~~~
'''
# Import python libs
from __future__ import absolute_import
import os
import hashlib
import time
from tornado.testing import AsyncTestCase
import zmq
import zmq... | 36.566372 | 106 | 0.585673 |
38f711798d917edfbb85c32d8f364f1a0c4a6ed0 | 4,533 | py | Python | lang/py3/setup.py | gth828r/avro-python3 | c8379728b4a762d99262e526fb53f631076fb143 | [
"Apache-2.0"
] | 12 | 2018-01-10T22:28:55.000Z | 2019-09-06T10:03:53.000Z | lang/py3/setup.py | gth828r/avro-python3 | c8379728b4a762d99262e526fb53f631076fb143 | [
"Apache-2.0"
] | 16 | 2018-03-15T23:11:29.000Z | 2021-09-20T12:45:54.000Z | lang/py3/setup.py | gth828r/avro-python3 | c8379728b4a762d99262e526fb53f631076fb143 | [
"Apache-2.0"
] | 25 | 2018-01-05T15:13:55.000Z | 2021-12-10T20:01:28.000Z | #!/usr/bin/env python3
# -*- mode: python -*-
# -*- coding: utf-8 -*-
# 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... | 29.627451 | 80 | 0.675491 |
38f75e55d0698547c5f55931c8b7be5740e52aa2 | 1,542 | py | Python | tests/test_bug/test_issue_002.py | Eastwu5788/pre-request | 6e51076ef9260d5fcf56dc513ad0240f04ce4938 | [
"MIT"
] | 86 | 2017-08-17T12:41:52.000Z | 2022-02-24T12:17:47.000Z | tests/test_bug/test_issue_002.py | Eastwu5788/pre-request | 6e51076ef9260d5fcf56dc513ad0240f04ce4938 | [
"MIT"
] | 10 | 2020-03-30T03:24:46.000Z | 2022-02-23T01:34:53.000Z | tests/test_bug/test_issue_002.py | Eastwu5788/pre-request | 6e51076ef9260d5fcf56dc513ad0240f04ce4938 | [
"MIT"
] | 7 | 2017-08-18T03:40:35.000Z | 2020-05-19T04:09:10.000Z | # !/usr/local/python/bin/python
# -*- coding: utf-8 -*-
# (C) Wu Dong, 2020
# All rights reserved
# @Author: 'Wu Dong <wudong@eastwu.cn>'
# @Time: '2020-10-12 15:55'
# sys
import json
# 3p
from flask import Flask, make_response
# project
from pre_request import pre, Rule
app = Flask(__name__)
app.config["TESTING"] = ... | 22.676471 | 79 | 0.566796 |
38f76459a789b31123786ba0544a4cfde4677e32 | 23,682 | py | Python | sdk/eventhub/azure-mgmt-eventhub/azure/mgmt/eventhub/aio/_event_hub_management_client.py | vincenttran-msft/azure-sdk-for-python | 348b56f9f03eeb3f7b502eed51daf494ffff874d | [
"MIT"
] | 2,728 | 2015-01-09T10:19:32.000Z | 2022-03-31T14:50:33.000Z | sdk/eventhub/azure-mgmt-eventhub/azure/mgmt/eventhub/aio/_event_hub_management_client.py | v-xuto/azure-sdk-for-python | 9c6296d22094c5ede410bc83749e8df8694ccacc | [
"MIT"
] | 17,773 | 2015-01-05T15:57:17.000Z | 2022-03-31T23:50:25.000Z | sdk/eventhub/azure-mgmt-eventhub/azure/mgmt/eventhub/aio/_event_hub_management_client.py | v-xuto/azure-sdk-for-python | 9c6296d22094c5ede410bc83749e8df8694ccacc | [
"MIT"
] | 1,916 | 2015-01-19T05:05:41.000Z | 2022-03-31T19:36:44.000Z | # 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 ... | 63.152 | 173 | 0.720083 |
38f7b07797546cd48fd4900b5f90c13d1b67b218 | 3,382 | py | Python | fastaProcessing/fastaHomoExtractWindow.py | linlifeng/llbio | 962f6abda8e8a576cb0bf4d73d3a5c4ef9b1a04b | [
"MIT"
] | null | null | null | fastaProcessing/fastaHomoExtractWindow.py | linlifeng/llbio | 962f6abda8e8a576cb0bf4d73d3a5c4ef9b1a04b | [
"MIT"
] | null | null | null | fastaProcessing/fastaHomoExtractWindow.py | linlifeng/llbio | 962f6abda8e8a576cb0bf4d73d3a5c4ef9b1a04b | [
"MIT"
] | null | null | null | #!/usr/bin/python
"""
input:
1. query file
2. db file
3. padding
input query could contain multiple sequences.
when two query hit the same position, the hit that is covered by the other is ommited
this also print out sequence that are in the same strand, reverse complementing the rsp from the other direction, for eas... | 30.745455 | 136 | 0.590775 |
38f7c0ccd279332bf405e66d5d79c1569026ded1 | 463 | py | Python | setup.py | TLESORT/Continual_Learning_Data_Former | 51b43d770d97e441bb6e63e0a568c2f3d5bc8866 | [
"MIT"
] | 34 | 2019-07-25T13:22:29.000Z | 2021-04-25T02:12:04.000Z | setup.py | TLESORT/Continual_Learning_Data_Former | 51b43d770d97e441bb6e63e0a568c2f3d5bc8866 | [
"MIT"
] | null | null | null | setup.py | TLESORT/Continual_Learning_Data_Former | 51b43d770d97e441bb6e63e0a568c2f3d5bc8866 | [
"MIT"
] | 4 | 2019-07-26T03:24:27.000Z | 2020-06-13T08:01:37.000Z | from setuptools import setup
with open("Readme.md", "r") as fh:
long_description = fh.read()
setup(
name='continuum',
version='0.1',
author="Timothee LESORT",
author_email="t.lesort@gmail.com",
description="A data loader for continual learning experiments",
long_description=long_descrip... | 23.15 | 67 | 0.686825 |
38f7c82dfd0d3aa7f43518e59030e1985f41fe23 | 573 | py | Python | myvenv/lib/python3.7/site-packages/webpush/templatetags/webpush_notifications.py | rizkybram27/magangUMN | 8ace710670b8117dd39018a4cd1eee051091a3e7 | [
"MIT"
] | 4 | 2019-03-18T12:12:50.000Z | 2020-07-10T19:40:44.000Z | myvenv/lib/python3.7/site-packages/webpush/templatetags/webpush_notifications.py | rizkybram27/magangUMN | 8ace710670b8117dd39018a4cd1eee051091a3e7 | [
"MIT"
] | null | null | null | myvenv/lib/python3.7/site-packages/webpush/templatetags/webpush_notifications.py | rizkybram27/magangUMN | 8ace710670b8117dd39018a4cd1eee051091a3e7 | [
"MIT"
] | 7 | 2019-08-01T12:37:54.000Z | 2021-05-12T14:40:06.000Z | from django import template
from django.conf import settings
from django.urls import reverse
from webpush.utils import get_templatetag_context
register = template.Library()
@register.filter
@register.inclusion_tag('webpush_header.html', takes_context=True)
def webpush_header(context):
template_context = get_tem... | 26.045455 | 66 | 0.82199 |
38f7e753f25770cc38bc746a347aef4007c77ede | 14,167 | py | Python | sdk/storage/azure-mgmt-storage/azure/mgmt/storage/v2021_01_01/models/_storage_management_client_enums.py | vincenttran-msft/azure-sdk-for-python | 348b56f9f03eeb3f7b502eed51daf494ffff874d | [
"MIT"
] | 1 | 2022-03-09T08:59:13.000Z | 2022-03-09T08:59:13.000Z | sdk/storage/azure-mgmt-storage/azure/mgmt/storage/v2021_01_01/models/_storage_management_client_enums.py | vincenttran-msft/azure-sdk-for-python | 348b56f9f03eeb3f7b502eed51daf494ffff874d | [
"MIT"
] | null | null | null | sdk/storage/azure-mgmt-storage/azure/mgmt/storage/v2021_01_01/models/_storage_management_client_enums.py | vincenttran-msft/azure-sdk-for-python | 348b56f9f03eeb3f7b502eed51daf494ffff874d | [
"MIT"
] | 1 | 2022-03-04T06:21:56.000Z | 2022-03-04T06:21:56.000Z | # 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 ... | 31.693512 | 102 | 0.703254 |
38f80b9c8415af5d529ecdd35276f1dff2353dbd | 652 | py | Python | jedeschule/items.py | k-nut/jedeschule-scraper | feb8141513174b1fc0c52433dcc8d99f0a141586 | [
"MIT"
] | 15 | 2017-03-15T11:06:13.000Z | 2022-02-10T12:20:56.000Z | jedeschule/items.py | k-nut/jedeschule-scraper | feb8141513174b1fc0c52433dcc8d99f0a141586 | [
"MIT"
] | 80 | 2016-11-29T14:42:46.000Z | 2021-08-14T15:41:18.000Z | jedeschule/items.py | k-nut/jedeschule-scraper | feb8141513174b1fc0c52433dcc8d99f0a141586 | [
"MIT"
] | 14 | 2017-06-06T14:36:26.000Z | 2021-09-26T12:39:04.000Z | # -*- coding: utf-8 -*-
# Define here the models for your scraped items
#
# See documentation in:
# http://doc.scrapy.org/en/latest/topics/items.html
import scrapy
class School(scrapy.Item):
name = scrapy.Field()
id = scrapy.Field()
address = scrapy.Field()
address2 = scrapy.Field()
zip = scrapy... | 22.482759 | 51 | 0.641104 |
38f81c9bdf09794e8e33455026561a372e104457 | 1,296 | py | Python | comics/fields.py | mwschall/dcdb | 0c650b9bfd877ffaf8023b8207ad6a54411c7bc5 | [
"0BSD"
] | 1 | 2017-06-15T23:27:14.000Z | 2017-06-15T23:27:14.000Z | comics/fields.py | mwschall/dcdb | 0c650b9bfd877ffaf8023b8207ad6a54411c7bc5 | [
"0BSD"
] | null | null | null | comics/fields.py | mwschall/dcdb | 0c650b9bfd877ffaf8023b8207ad6a54411c7bc5 | [
"0BSD"
] | null | null | null | from django.db import models
from django.utils.translation import gettext_lazy as _
from comics.util import s_uuid, DEFAULT_UUID_LEN
class ShortUUIDField(models.CharField):
empty_strings_allowed = False
description = _("Short UUID")
def __init__(self, *args, **kwargs):
# kwargs['blank'] = True
... | 28.8 | 91 | 0.635031 |
38f836a62be35bb38550d008e19a4356c2d69fc8 | 22,754 | py | Python | .config/qtile/config.py | RafaelLuz/dotfiles | cc47b2f719597cc75c4773a5dd59a883bc2955ca | [
"MIT"
] | null | null | null | .config/qtile/config.py | RafaelLuz/dotfiles | cc47b2f719597cc75c4773a5dd59a883bc2955ca | [
"MIT"
] | null | null | null | .config/qtile/config.py | RafaelLuz/dotfiles | cc47b2f719597cc75c4773a5dd59a883bc2955ca | [
"MIT"
] | null | null | null | # from typing import List # noqa: F401
import subprocess
from datetime import datetime
from pathlib import Path
from libqtile import bar, layout, widget
from libqtile.config import Click, Drag, Group, Key, Match, Screen
from libqtile.lazy import lazy
from libqtile.utils import guess_terminal
from libqtile.widget im... | 39.572174 | 239 | 0.584381 |
38f84cba1e44afe3c02cae57ad2d8916e404e6dc | 5,028 | py | Python | src/pykeen/models/unimodal/trans_e.py | Rodrigo-A-Pereira/pykeen | 76c5acb707faa524b5951b0d1d85ab1afe806462 | [
"MIT"
] | null | null | null | src/pykeen/models/unimodal/trans_e.py | Rodrigo-A-Pereira/pykeen | 76c5acb707faa524b5951b0d1d85ab1afe806462 | [
"MIT"
] | null | null | null | src/pykeen/models/unimodal/trans_e.py | Rodrigo-A-Pereira/pykeen | 76c5acb707faa524b5951b0d1d85ab1afe806462 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
"""TransE."""
from typing import Any, ClassVar, Mapping
import torch
import torch.autograd
from torch.nn import functional
from ..base import EntityRelationEmbeddingModel
from ...constants import DEFAULT_EMBEDDING_HPO_EMBEDDING_DIM_RANGE
from ...nn.emb import EmbeddingSpecification
from ...n... | 40.878049 | 119 | 0.659507 |
38f856bb13742b846f9e879092e86b103aa7322d | 238 | py | Python | 0x0A-python-inheritance/0-main.py | gogomillan/holbertonschool-higher_level_programming | 1549ffc4fdc284271684321ff6edd882a314193a | [
"MIT"
] | 1 | 2022-02-07T12:13:18.000Z | 2022-02-07T12:13:18.000Z | 0x0A-python-inheritance/0-main.py | Rmolimock/holbertonschool-higher_level_programming | cf0421cbb6463b3960dc581badf7d4bbe1622b7d | [
"MIT"
] | null | null | null | 0x0A-python-inheritance/0-main.py | Rmolimock/holbertonschool-higher_level_programming | cf0421cbb6463b3960dc581badf7d4bbe1622b7d | [
"MIT"
] | 1 | 2021-12-06T18:15:54.000Z | 2021-12-06T18:15:54.000Z | #!/usr/bin/python3
lookup = __import__('0-lookup').lookup
class MyClass1(object):
pass
class MyClass2(object):
my_attr1 = 3
def my_meth(self):
pass
print(lookup(MyClass1))
print(lookup(MyClass2))
print(lookup(int))
| 15.866667 | 38 | 0.684874 |
38f86a52b5f7cbd3df50e41c17514e20bfc9c984 | 1,979 | py | Python | can_tools/scrapers/official/MO/mo_vaccine.py | christopherturner/can-scrapers | e580e6bc507ffd5fae06e43bb285822e3cd43986 | [
"MIT"
] | 7 | 2020-11-11T14:47:46.000Z | 2021-12-28T02:21:41.000Z | can_tools/scrapers/official/MO/mo_vaccine.py | christopherturner/can-scrapers | e580e6bc507ffd5fae06e43bb285822e3cd43986 | [
"MIT"
] | 176 | 2020-11-13T00:32:44.000Z | 2022-02-17T01:32:30.000Z | can_tools/scrapers/official/MO/mo_vaccine.py | christopherturner/can-scrapers | e580e6bc507ffd5fae06e43bb285822e3cd43986 | [
"MIT"
] | 13 | 2020-11-14T19:25:34.000Z | 2021-04-04T22:32:07.000Z | import pandas as pd
import us
from can_tools.scrapers import variables
from can_tools.scrapers.official.base import TableauDashboard
class MissouriVaccineCounty(TableauDashboard):
has_location = False
source = "https://results.mo.gov/t/COVID19/views/VaccinationsDashboard/Vaccinations"
source_name = "Miss... | 38.057692 | 88 | 0.571501 |
38f88b308de037da7e5e8a17ac1deef01bc662d3 | 9,807 | py | Python | Apps/Brontes/View/asset_widget_ui.py | geoffroygivry/CyclopsVFX-Unity | 6ab9ab122b6c3e6200e90d49a0c2bf774e53d985 | [
"MIT"
] | 17 | 2017-06-27T04:14:42.000Z | 2022-03-07T03:37:44.000Z | Apps/Brontes/View/asset_widget_ui.py | geoffroygivry/Cyclops-VFX | 6ab9ab122b6c3e6200e90d49a0c2bf774e53d985 | [
"MIT"
] | 2 | 2017-06-14T04:17:51.000Z | 2018-08-23T20:12:44.000Z | Apps/Brontes/View/asset_widget_ui.py | geoffroygivry/CyclopsVFX-Unity | 6ab9ab122b6c3e6200e90d49a0c2bf774e53d985 | [
"MIT"
] | 2 | 2019-03-18T06:18:33.000Z | 2019-08-14T21:07:53.000Z | # -*- coding: utf-8 -*-
# Form implementation generated from reading ui file 'Apps/Brontes/View/asset_widget.ui'
#
# Created: Tue Nov 7 12:16:22 2017
# by: pyside-uic 0.2.13 running on PySide 1.2.2
#
# WARNING! All changes made in this file will be lost!
from PySide import QtCore, QtGui
class Ui_Asset_Widget(o... | 66.263514 | 263 | 0.696033 |
38f8d2900cf2c410c5d0f0146e07ca2a2bbb4eac | 1,721 | py | Python | beam_local.py | Masamerc/easy-beam-pipeline | fb501e87eb379be5cfd7d35caab9682b8c3c30ae | [
"MIT"
] | null | null | null | beam_local.py | Masamerc/easy-beam-pipeline | fb501e87eb379be5cfd7d35caab9682b8c3c30ae | [
"MIT"
] | 1 | 2021-05-04T03:53:28.000Z | 2021-05-05T10:54:06.000Z | beam_local.py | Masamerc/easy-beam-pipeline | fb501e87eb379be5cfd7d35caab9682b8c3c30ae | [
"MIT"
] | null | null | null | import apache_beam as beam
import os
from apache_beam.options.pipeline_options import PipelineOptions, StandardOptions
# user-defined transformations and functions
from transformations.ptransforms import ReadFromCsv, WriteToCsv, GroupType
from transformations.functions import ConvertLog, CollectDurationBy
CURDIR = os... | 43.025 | 116 | 0.700174 |
38f8d39f19b6349b80204b420c1039ca7f40d439 | 463 | py | Python | django_tenants/signals.py | sguermond/django-tenants | 0bd05d8c477c5ef5103853d17e9c76ac890d958e | [
"MIT"
] | null | null | null | django_tenants/signals.py | sguermond/django-tenants | 0bd05d8c477c5ef5103853d17e9c76ac890d958e | [
"MIT"
] | null | null | null | django_tenants/signals.py | sguermond/django-tenants | 0bd05d8c477c5ef5103853d17e9c76ac890d958e | [
"MIT"
] | 1 | 2019-02-08T23:32:23.000Z | 2019-02-08T23:32:23.000Z | from django.dispatch import Signal
post_schema_sync = Signal(providing_args=['tenant'])
post_schema_sync.__doc__ = """
Sent after a tenant has been saved, its schema created and synced
"""
schema_needs_to_be_sync = Signal(providing_args=['tenant'])
schema_needs_to_be_sync.__doc__ = """
Schema needs to be synced
"""
... | 27.235294 | 65 | 0.773218 |
38f8da6f235adc29a8c89d602c7dfd4727cd99fa | 8,658 | py | Python | scripts/my_utils/visualizer/keypoint_visualizer.py | MaaaasayaK/Self-Supervised-Small-Soccer-Player-Detection-Tracking | 96d87367afdf4cca8aeca3f32c313e8632c70fe4 | [
"MIT"
] | 1 | 2021-08-17T18:22:12.000Z | 2021-08-17T18:22:12.000Z | scripts/my_utils/visualizer/keypoint_visualizer.py | cballester/Self-Supervised-Small-Soccer-Player-Detection-Tracking | a5d2d0c31a992919a270bd0e02379844196271f0 | [
"MIT"
] | null | null | null | scripts/my_utils/visualizer/keypoint_visualizer.py | cballester/Self-Supervised-Small-Soccer-Player-Detection-Tracking | a5d2d0c31a992919a270bd0e02379844196271f0 | [
"MIT"
] | 1 | 2021-08-19T14:21:52.000Z | 2021-08-19T14:21:52.000Z | '''
keypoint_visualizer.py
Visualizer for Human Pose Estimation
Author: Guanghan Ning
E-mail: guanghan.ning@jd.com
Created on June 18th, 2018
'''
import cv2
import numpy as np
import sys, os
sys.path.append(os.path.abspath("../../../utility/"))
sys.path.append(os.path.abspath("/home/u176443/Documents/ARPE... | 45.329843 | 195 | 0.573227 |
38f8dbdaa58f42a217dd49fa9d98912b460b7b50 | 635 | py | Python | tests/test_mod.py | arodland/IRI2016 | ab9873e597cc78cec40f11e133b83efdbe61ae7c | [
"MIT"
] | 1 | 2020-12-18T11:49:18.000Z | 2020-12-18T11:49:18.000Z | tests/test_mod.py | arodland/IRI2016 | ab9873e597cc78cec40f11e133b83efdbe61ae7c | [
"MIT"
] | null | null | null | tests/test_mod.py | arodland/IRI2016 | ab9873e597cc78cec40f11e133b83efdbe61ae7c | [
"MIT"
] | 1 | 2020-12-18T11:49:20.000Z | 2020-12-18T11:49:20.000Z | #!/usr/bin/env python
from pytest import approx
import pytest
from pathlib import Path
import iri2016
root = Path(__file__).parents[1]
def test_altitude_profile():
time = '2015-12-13T10'
altkmrange = (100, 1000, 10.)
glat = 65.1
glon = -147.5
iri = iri2016.IRI(time, altkmrange, glat, glon)
# .i... | 24.423077 | 66 | 0.664567 |
38f8e80db57a55380a5920aeae4d0f8560ac5231 | 18,541 | py | Python | igibson/envs/igibson_env.py | suresh-guttikonda/iGibson | a69e623058180146466cd52d4bb3c00d1facdacf | [
"MIT"
] | 360 | 2020-04-02T11:12:09.000Z | 2022-03-24T21:46:58.000Z | igibson/envs/igibson_env.py | suresh-guttikonda/iGibson | a69e623058180146466cd52d4bb3c00d1facdacf | [
"MIT"
] | 169 | 2020-04-07T21:01:05.000Z | 2022-03-31T10:07:39.000Z | igibson/envs/igibson_env.py | suresh-guttikonda/iGibson | a69e623058180146466cd52d4bb3c00d1facdacf | [
"MIT"
] | 94 | 2020-04-09T23:22:17.000Z | 2022-03-17T21:49:03.000Z | import argparse
import logging
import time
from collections import OrderedDict
import gym
import numpy as np
import pybullet as p
from transforms3d.euler import euler2quat
from igibson.envs.env_base import BaseEnv
from igibson.external.pybullet_tools.utils import stable_z_on_aabb
from igibson.robots.robot_base import... | 38.466805 | 120 | 0.627744 |
38f8f65e8cf9461955df2233a582f7dfe2916b4f | 5,184 | py | Python | test/api/document/test_revisions.py | aspose-words-cloud/aspose-words-cloud-python | 65c7b55fa4aac69b60d41e7f54aed231df285479 | [
"MIT"
] | 14 | 2018-07-15T17:01:52.000Z | 2018-11-29T06:15:33.000Z | test/api/document/test_revisions.py | aspose-words-cloud/aspose-words-cloud-python | 65c7b55fa4aac69b60d41e7f54aed231df285479 | [
"MIT"
] | 1 | 2018-09-28T12:59:34.000Z | 2019-10-08T08:42:59.000Z | test/api/document/test_revisions.py | aspose-words-cloud/aspose-words-cloud-python | 65c7b55fa4aac69b60d41e7f54aed231df285479 | [
"MIT"
] | 2 | 2020-12-21T07:59:17.000Z | 2022-02-16T21:41:25.000Z | # -----------------------------------------------------------------------------------
# <copyright company="Aspose" file="test_revisions.py">
# Copyright (c) 2021 Aspose.Words for Cloud
# </copyright>
# <summary>
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and ... | 51.84 | 188 | 0.732832 |
38f931196666dbc5a8e229cd8aef93d1e9d52f36 | 242 | py | Python | stix_shifter_modules/virus_total/stix_transmission/constants.py | SalmanMesia/stix-shifter | 4e5e701876d0462a40bf408e68497aa0cd3145d9 | [
"Apache-2.0"
] | null | null | null | stix_shifter_modules/virus_total/stix_transmission/constants.py | SalmanMesia/stix-shifter | 4e5e701876d0462a40bf408e68497aa0cd3145d9 | [
"Apache-2.0"
] | null | null | null | stix_shifter_modules/virus_total/stix_transmission/constants.py | SalmanMesia/stix-shifter | 4e5e701876d0462a40bf408e68497aa0cd3145d9 | [
"Apache-2.0"
] | null | null | null | supportedCortexAnalyzerModules: dict = {
"VirusTotal_GetReport_3_0": {
"path": "virus_total/stix_transmission/virustotal.py",
"name": "VirusTotalAnalyzer",
"config": {
"service": "get"
}
}
} | 26.888889 | 62 | 0.578512 |
38f948075702477f6809cca87fbccffddb2138a0 | 11,460 | py | Python | Notebooks/CarsDB-accdb.py | JRCSTU/wltp | 18650f372044371ed994a161a93473a75e76d2a9 | [
"Apache-2.0"
] | 11 | 2017-05-22T18:31:01.000Z | 2021-11-08T12:20:07.000Z | Notebooks/CarsDB-accdb.py | JRCSTU/wltp | 18650f372044371ed994a161a93473a75e76d2a9 | [
"Apache-2.0"
] | 11 | 2016-08-09T13:37:13.000Z | 2020-03-31T20:33:20.000Z | Notebooks/CarsDB-accdb.py | JRCSTU/wltp | 18650f372044371ed994a161a93473a75e76d2a9 | [
"Apache-2.0"
] | 6 | 2017-11-30T10:22:32.000Z | 2020-12-03T14:04:55.000Z | # ---
# jupyter:
# jupytext:
# formats: ipynb,py:percent
# text_representation:
# extension: .py
# format_name: percent
# format_version: '1.3'
# jupytext_version: 1.6.0
# kernelspec:
# display_name: Python 3
# language: python
# name: python3
# ---
# %% [markdown]
# # P... | 30.806452 | 141 | 0.605236 |
38f950f8c830ee2e32b77ba78f762aed68cd3917 | 365 | py | Python | 0x16-api_advanced/ 2-main.py | jfbm74/holberton-system_engineering-devops | ae9318ac98fdbca4ba4eb08035f9157fd0af9dc8 | [
"MIT"
] | null | null | null | 0x16-api_advanced/ 2-main.py | jfbm74/holberton-system_engineering-devops | ae9318ac98fdbca4ba4eb08035f9157fd0af9dc8 | [
"MIT"
] | null | null | null | 0x16-api_advanced/ 2-main.py | jfbm74/holberton-system_engineering-devops | ae9318ac98fdbca4ba4eb08035f9157fd0af9dc8 | [
"MIT"
] | null | null | null | #!/usr/bin/python3
"""
2-main
"""
import sys
if __name__ == '__main__':
recurse = __import__('2-recurse').recurse
if len(sys.argv) < 2:
print("Please pass an argument for the subreddit to search.")
else:
result = recurse(sys.argv[1])
if result is not None:
print(len(resu... | 21.470588 | 69 | 0.567123 |
38f978fbf9ea206b6e74c2b03b49ce063653f1bb | 5,146 | py | Python | scripts/eval_segmentation.py | AceCoooool/segmentation | 2f4d5ac193cab580eb8ba789e79db6dadcfecfd0 | [
"MIT"
] | 2 | 2019-06-08T13:09:08.000Z | 2020-09-21T04:03:09.000Z | scripts/eval_segmentation.py | AceCoooool/segmentation | 2f4d5ac193cab580eb8ba789e79db6dadcfecfd0 | [
"MIT"
] | 2 | 2019-05-20T11:56:02.000Z | 2019-06-02T13:22:55.000Z | scripts/eval_segmentation.py | AceCoooool/segmentation | 2f4d5ac193cab580eb8ba789e79db6dadcfecfd0 | [
"MIT"
] | 1 | 2020-09-22T03:55:39.000Z | 2020-09-22T03:55:39.000Z | import os
import sys
import argparse
from tqdm import tqdm
import torch
from torch.utils import data
from torchvision import transforms
cur_path = os.path.dirname(__file__)
sys.path.insert(0, os.path.join(cur_path, '..'))
import utils as ptutil
from model import model_zoo
from data import get_segmentation_dataset
fro... | 43.243697 | 106 | 0.651768 |
38f9892f32fb9c9795fef1ea4ca9e01f41d73682 | 20,742 | py | Python | tridesclous/datasource.py | rbodo/tridesclous | 86f58eb8f076698245786c75e906514c7a914e48 | [
"MIT"
] | 1 | 2021-04-13T15:10:13.000Z | 2021-04-13T15:10:13.000Z | tridesclous/datasource.py | rbodo/tridesclous | 86f58eb8f076698245786c75e906514c7a914e48 | [
"MIT"
] | null | null | null | tridesclous/datasource.py | rbodo/tridesclous | 86f58eb8f076698245786c75e906514c7a914e48 | [
"MIT"
] | null | null | null | import os
import subprocess
import numpy as np
import re
from collections import OrderedDict
from example.cbnu.utils import get_interval
data_source_classes = OrderedDict()
possible_modes = ['one-file', 'multi-file', 'one-dir', 'multi-dir', 'other']
import neo
class DataSourceBase:
gui_params = None
de... | 37.372973 | 124 | 0.612622 |
38fa5bec5adff9cd7499884f53b0e0ac023abef0 | 5,338 | py | Python | neutron_diagnose/client/clientmanager.py | zhuzhichaoTM/neutron-diagnose | 223d0d5edaf77a8264ce06d68adaa1b329bb9f1b | [
"Apache-2.0"
] | null | null | null | neutron_diagnose/client/clientmanager.py | zhuzhichaoTM/neutron-diagnose | 223d0d5edaf77a8264ce06d68adaa1b329bb9f1b | [
"Apache-2.0"
] | null | null | null | neutron_diagnose/client/clientmanager.py | zhuzhichaoTM/neutron-diagnose | 223d0d5edaf77a8264ce06d68adaa1b329bb9f1b | [
"Apache-2.0"
] | null | null | null | # 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, software
# distrib... | 34.43871 | 79 | 0.633571 |
38faa2529bb1ded64fc5cec5cd8370972569da25 | 1,586 | py | Python | carbonium_fb/contrib/everyone.py | szymonszl/carbonium | e0cc9b318c116213781c661f9935cc809f73e27b | [
"BSD-3-Clause"
] | null | null | null | carbonium_fb/contrib/everyone.py | szymonszl/carbonium | e0cc9b318c116213781c661f9935cc809f73e27b | [
"BSD-3-Clause"
] | null | null | null | carbonium_fb/contrib/everyone.py | szymonszl/carbonium | e0cc9b318c116213781c661f9935cc809f73e27b | [
"BSD-3-Clause"
] | null | null | null | """This module provides the EveryoneCommand class"""
from fbchat import models
from ..dataclasses import Thread
from ..handlers import CommandHandler
class EveryoneCommand(CommandHandler):
"""
"Everyone" command.
This handler creates a command, which tags everyone
present in the group. It can be used... | 36.045455 | 89 | 0.633039 |
38faa6dd41da50b46d4ae31252bc31ee64e55cf0 | 1,363 | py | Python | stfba/settings.py | eladnoor/stFBA | fbaefb48143a5f176aa3a7a9a63a9440ca18236e | [
"MIT"
] | null | null | null | stfba/settings.py | eladnoor/stFBA | fbaefb48143a5f176aa3a7a9a63a9440ca18236e | [
"MIT"
] | null | null | null | stfba/settings.py | eladnoor/stFBA | fbaefb48143a5f176aa3a7a9a63a9440ca18236e | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
"""
Created on Wed Mar 23 16:36:02 2016
@author: noore
"""
import os
import pandas as pd
import inspect
import numpy as np
LP_SOLVER = 'gurobi'
SCRIPT_DIR = os.path.dirname(os.path.abspath(inspect.getfile(inspect.currentframe())))
BASE_DIR = os.path.join(*os.path.split(SCRIPT_DIR)[0:-1])
DAT... | 27.26 | 86 | 0.668379 |
38fac0f2a2811c001fac2379a40b5293bcc755d9 | 19,165 | py | Python | pytorch/fastpitch/inference.py | ningchaoar/portfolio-examples | bacbbbcc3f20e89648c91141156f091de4eef651 | [
"MIT"
] | 5 | 2021-11-26T03:54:26.000Z | 2022-03-18T01:15:05.000Z | pytorch/fastpitch/inference.py | ningchaoar/portfolio-examples | bacbbbcc3f20e89648c91141156f091de4eef651 | [
"MIT"
] | 8 | 2021-12-11T11:08:29.000Z | 2022-03-30T10:50:55.000Z | pytorch/fastpitch/inference.py | ningchaoar/portfolio-examples | bacbbbcc3f20e89648c91141156f091de4eef651 | [
"MIT"
] | 5 | 2021-11-29T07:55:08.000Z | 2022-03-21T06:38:51.000Z | # *****************************************************************************
# Copyright (c) 2018, NVIDIA CORPORATION. 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... | 43.261851 | 108 | 0.598487 |
38faca7228953972ceb33fbe8e18fc8e7abf7da5 | 18,953 | py | Python | client/isolated_format.py | hixio-mh/luci-py | 5e2606b0db8f5dac25e9f84fdf71d103da393894 | [
"Apache-2.0"
] | null | null | null | client/isolated_format.py | hixio-mh/luci-py | 5e2606b0db8f5dac25e9f84fdf71d103da393894 | [
"Apache-2.0"
] | 1 | 2022-03-02T11:45:18.000Z | 2022-03-02T11:45:18.000Z | client/isolated_format.py | hixio-mh/luci-py | 5e2606b0db8f5dac25e9f84fdf71d103da393894 | [
"Apache-2.0"
] | 1 | 2021-07-23T15:32:55.000Z | 2021-07-23T15:32:55.000Z | # Copyright 2014 The LUCI Authors. All rights reserved.
# Use of this source code is governed under the Apache License, Version 2.0
# that can be found in the LICENSE file.
"""Understands .isolated files and can do local operations on them."""
import hashlib
import json
import logging
import os
import re
import stat
... | 35.228625 | 80 | 0.657099 |
38faced1df5f2c3d64635299a361a08a8b0b109d | 2,488 | py | Python | cubes/models.py | zachtib/MagicWithFriends | 18db849fe282903051820b718a2d7b434360e332 | [
"MIT"
] | null | null | null | cubes/models.py | zachtib/MagicWithFriends | 18db849fe282903051820b718a2d7b434360e332 | [
"MIT"
] | 5 | 2021-02-15T20:52:10.000Z | 2021-07-03T18:19:59.000Z | cubes/models.py | zachtib/MagicWithFriends | 18db849fe282903051820b718a2d7b434360e332 | [
"MIT"
] | null | null | null | import uuid
from random import shuffle
from typing import List
from django.contrib.auth.models import User
from django.db import models
from cards.models import Printing, Card
class CubeNotLargeEnoughException(BaseException):
pass
class Cube(models.Model):
id = models.UUIDField(primary_key=True, default=u... | 32.311688 | 86 | 0.665997 |
38fae371d45a43778b11c2160c44307653ed6ac2 | 1,734 | py | Python | pdfmajor/parser/PSStackParser/types.py | asosnovsky/pdfmajor | 7e24c64b5b4fdc84c12b2f78dcaab0e1aa07f4ad | [
"MIT"
] | 23 | 2019-01-13T23:32:24.000Z | 2021-07-08T04:29:15.000Z | pdfmajor/parser/PSStackParser/types.py | asosnovsky/pdfmajor | 7e24c64b5b4fdc84c12b2f78dcaab0e1aa07f4ad | [
"MIT"
] | 3 | 2019-08-09T18:42:01.000Z | 2019-12-13T15:43:24.000Z | pdfmajor/parser/PSStackParser/types.py | asosnovsky/pdfmajor | 7e24c64b5b4fdc84c12b2f78dcaab0e1aa07f4ad | [
"MIT"
] | 2 | 2020-01-09T11:18:20.000Z | 2020-03-24T06:02:30.000Z | ## Basic PostScript Types
##
from typing import Union
## PSObject
##
class PSObject(object):
"""Base class for all PS or PDF-related data types."""
pass
## PSLiteral
##
class PSLiteral(PSObject):
"""A class that represents a PostScript literal.
Postscript literals are used as identifiers, such... | 21.675 | 68 | 0.637255 |
38fafaa0964d7851016dfc503456d43e0d50ef96 | 1,441 | py | Python | src2/creational/car_builder.py | unica-isde/isde | a9603d8b8d1a347447cec483108132aa1e8457eb | [
"Apache-2.0"
] | 7 | 2021-01-20T09:11:53.000Z | 2022-03-15T12:19:06.000Z | src2/creational/car_builder.py | unica-isde/isde | a9603d8b8d1a347447cec483108132aa1e8457eb | [
"Apache-2.0"
] | null | null | null | src2/creational/car_builder.py | unica-isde/isde | a9603d8b8d1a347447cec483108132aa1e8457eb | [
"Apache-2.0"
] | 10 | 2020-11-01T09:47:02.000Z | 2021-11-02T12:59:50.000Z | from abc import ABC, abstractmethod
from car import Car, Wheel, Engine, Body
class Director:
# _builder = None
def set_builder(self, builder):
self._builder = builder
def get_car(self):
car = Car()
body = self._builder.get_body()
car.set_body(body)
engine = self... | 18.240506 | 45 | 0.596808 |
38fb023e21937e0e1d7d8fba4cd70a6a048eef6d | 675 | py | Python | python/dp_accounting/rdp/__init__.py | Jolly608090/differential-privacy | 74d5be96d4abe6820ef4838c00a1b78c72ae01af | [
"Apache-2.0"
] | 1 | 2022-03-02T20:02:34.000Z | 2022-03-02T20:02:34.000Z | python/dp_accounting/rdp/__init__.py | fbalicchia/differential-privacy | 099080e49c4c047802d785bc818898c0caf84d45 | [
"Apache-2.0"
] | null | null | null | python/dp_accounting/rdp/__init__.py | fbalicchia/differential-privacy | 099080e49c4c047802d785bc818898c0caf84d45 | [
"Apache-2.0"
] | null | null | null | # 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,... | 37.5 | 74 | 0.768889 |
38fb22c60e509ebd9696a050997481edcf79e1b8 | 1,743 | py | Python | salt/pillar/cobbler.py | skrobul/salt | ef7fb71082cce7a9783e00b9c65062fefae09263 | [
"Apache-2.0"
] | 2 | 2017-09-17T21:10:35.000Z | 2019-08-26T03:00:12.000Z | salt/pillar/cobbler.py | skrobul/salt | ef7fb71082cce7a9783e00b9c65062fefae09263 | [
"Apache-2.0"
] | null | null | null | salt/pillar/cobbler.py | skrobul/salt | ef7fb71082cce7a9783e00b9c65062fefae09263 | [
"Apache-2.0"
] | 3 | 2021-02-23T08:12:48.000Z | 2021-02-23T08:13:13.000Z | # -*- coding: utf-8 -*-
'''
A module to pull data from Cobbler via its API into the Pillar dictionary
Configuring the Cobbler ext_pillar
==================================
The same cobbler.* parameters are used for both the Cobbler tops and Cobbler pillar
modules.
.. code-block:: yaml
ext_pillar:
- cobbler:
... | 25.26087 | 87 | 0.635112 |
38fb304dfa0562388cf596a8d6ae6d379aacf491 | 11,269 | py | Python | tests/test_tn_option_orders.py | NumberAI/python-bandwidth-iris | 0e05f79d68b244812afb97e00fd65b3f46d00aa3 | [
"MIT"
] | 2 | 2020-04-13T13:47:59.000Z | 2022-02-23T20:32:41.000Z | tests/test_tn_option_orders.py | bandwidthcom/python-bandwidth-iris | dbcb30569631395041b92917252d913166f7d3c9 | [
"MIT"
] | 5 | 2020-09-18T20:59:24.000Z | 2021-08-25T16:51:42.000Z | tests/test_tn_option_orders.py | bandwidthcom/python-bandwidth-iris | dbcb30569631395041b92917252d913166f7d3c9 | [
"MIT"
] | 5 | 2018-12-12T14:39:50.000Z | 2020-11-17T21:42:29.000Z | #!/usr/bin/env python
import os
import sys
# For coverage.
if __package__ is None:
sys.path.append(os.path.dirname(os.path.abspath(__file__)) + "/..")
from unittest import main, TestCase
import requests
import requests_mock
from iris_sdk.client import Client
from iris_sdk.models.account import Account
XML_RES... | 43.678295 | 127 | 0.569261 |
38fb4d93e0f1b760ed9a6bdd2d966969767f86fe | 29,656 | py | Python | test/integration/ggrc/integrations/test_issue_integration.py | farcry4998/ggrc-core | c469039dabb55033c1b379850feb19e8dda2e2a1 | [
"ECL-2.0",
"Apache-2.0"
] | 1 | 2019-01-04T10:55:14.000Z | 2019-01-04T10:55:14.000Z | test/integration/ggrc/integrations/test_issue_integration.py | farcry4998/ggrc-core | c469039dabb55033c1b379850feb19e8dda2e2a1 | [
"ECL-2.0",
"Apache-2.0"
] | null | null | null | test/integration/ggrc/integrations/test_issue_integration.py | farcry4998/ggrc-core | c469039dabb55033c1b379850feb19e8dda2e2a1 | [
"ECL-2.0",
"Apache-2.0"
] | null | null | null | # Copyright (C) 2018 Google Inc.
# Licensed under http://www.apache.org/licenses/LICENSE-2.0 <see LICENSE file>
"""Integration tests for Issue with IssueTracker integration."""
# pylint: disable=unused-argument
import mock
import ddt
from ggrc import db
from ggrc import models
from ggrc import settings
from ggrc.mo... | 41.131761 | 79 | 0.652178 |
38fb568a7472a503252eeebe898678d84f57a59f | 471 | py | Python | notification_django_app/users/signals.py | rajat-np/notification-django-app | 37929b654cc8bceadb73b50897297ef49f1af7c4 | [
"MIT"
] | null | null | null | notification_django_app/users/signals.py | rajat-np/notification-django-app | 37929b654cc8bceadb73b50897297ef49f1af7c4 | [
"MIT"
] | 1 | 2022-02-28T23:10:02.000Z | 2022-02-28T23:10:02.000Z | notification_django_app/users/signals.py | rajat-np/notification-django-app | 37929b654cc8bceadb73b50897297ef49f1af7c4 | [
"MIT"
] | null | null | null | from django.db.models.signals import post_save
from django.dispatch import receiver
from django.contrib.auth.models import User
from notifications.signals import notify
from notification_django_app.users.models import User
@receiver(post_save, sender=User)
def create_profile(sender, instance, created, **kwargs):
... | 31.4 | 81 | 0.783439 |
38fb58125f76249b99e6ed44ff943208295752a1 | 1,560 | py | Python | models/experimental/inference/load_test/data/data_loader_factory.py | tensorflow/tpu-demos | 8aac591077e5781785aa6c22bc400472ba14dada | [
"Apache-2.0"
] | 65 | 2017-07-28T03:47:42.000Z | 2018-02-04T20:54:18.000Z | models/experimental/inference/load_test/data/data_loader_factory.py | tensorflow/tpu-demos | 8aac591077e5781785aa6c22bc400472ba14dada | [
"Apache-2.0"
] | 10 | 2017-08-11T22:55:40.000Z | 2018-02-07T01:11:28.000Z | models/experimental/inference/load_test/data/data_loader_factory.py | tensorflow/tpu-demos | 8aac591077e5781785aa6c22bc400472ba14dada | [
"Apache-2.0"
] | 28 | 2017-07-28T08:20:06.000Z | 2018-01-28T16:28:12.000Z | # Copyright 2021 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... | 38.04878 | 80 | 0.71859 |
38fb5b2f30ef41aa0f356db79b2bc37524573743 | 6,700 | py | Python | sdks/python/appcenter_sdk/models/ApiTokensCreateResponse.py | Brantone/appcenter-sdks | eeb063ecf79908b6e341fb00196d2cd9dc8f3262 | [
"MIT"
] | null | null | null | sdks/python/appcenter_sdk/models/ApiTokensCreateResponse.py | Brantone/appcenter-sdks | eeb063ecf79908b6e341fb00196d2cd9dc8f3262 | [
"MIT"
] | 6 | 2019-10-23T06:38:53.000Z | 2022-01-22T07:57:58.000Z | sdks/python/appcenter_sdk/models/ApiTokensCreateResponse.py | Brantone/appcenter-sdks | eeb063ecf79908b6e341fb00196d2cd9dc8f3262 | [
"MIT"
] | 2 | 2019-10-23T06:31:05.000Z | 2021-08-21T17:32:47.000Z | # coding: utf-8
"""
App Center Client
Microsoft Visual Studio App Center API # noqa: E501
OpenAPI spec version: preview
Contact: benedetto.abbenanti@gmail.com
Project Repository: https://github.com/b3nab/appcenter-sdks
"""
import pprint
import re # noqa: F401
import six
class ApiTokensCreat... | 28.87931 | 109 | 0.587313 |
38fb66212602aaf4029da348a0447327153759ec | 3,983 | py | Python | tests/historical_query_perf.py | microsoft/CCF | cb38ac3ca2c7e529127fed61a86d78029a8548ff | [
"Apache-2.0"
] | 530 | 2019-05-07T03:07:15.000Z | 2022-03-29T16:33:06.000Z | tests/historical_query_perf.py | microsoft/CCF | cb38ac3ca2c7e529127fed61a86d78029a8548ff | [
"Apache-2.0"
] | 3,393 | 2019-05-07T08:33:32.000Z | 2022-03-31T14:57:14.000Z | tests/historical_query_perf.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 infra.e2e_args
import infra.network
import infra.proc
import ccf.commit
import http
from e2e_logging import get_all_entries
import cimetrics.upload
from loguru import logger as LOG
def test_historical_query_ra... | 31.864 | 160 | 0.645995 |
38fb7314b2bf190594e0df3efcafb443476ba915 | 11,849 | py | Python | src/aurman/main_solver.py | LChris314/aurman | 1701022b6a45165e196be957b45350e2607d1bac | [
"MIT"
] | null | null | null | src/aurman/main_solver.py | LChris314/aurman | 1701022b6a45165e196be957b45350e2607d1bac | [
"MIT"
] | null | null | null | src/aurman/main_solver.py | LChris314/aurman | 1701022b6a45165e196be957b45350e2607d1bac | [
"MIT"
] | null | null | null | import json
import logging
import os
import sys
from typing import Sequence, Set
from pycman.config import PacmanConfig
from aurman.classes import System, Package, PossibleTypes
from aurman.coloring import aurman_error, Colors
from aurman.own_exceptions import InvalidInput
from aurman.parse_args import parse_pacman_a... | 44.713208 | 119 | 0.679551 |
38fb81c6d593f432d7056687f3b4ac358d69c2d1 | 49,962 | py | Python | bittensor/_subtensor/subtensor_impl.py | chaosxcode/bittensor | 9c2f513cc7fb03844952ae3755162ed914b11cba | [
"MIT"
] | null | null | null | bittensor/_subtensor/subtensor_impl.py | chaosxcode/bittensor | 9c2f513cc7fb03844952ae3755162ed914b11cba | [
"MIT"
] | null | null | null | bittensor/_subtensor/subtensor_impl.py | chaosxcode/bittensor | 9c2f513cc7fb03844952ae3755162ed914b11cba | [
"MIT"
] | null | null | null | # The MIT License (MIT)
# Copyright © 2021 Yuma Rao
# Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated
# documentation files (the “Software”), to deal in the Software without restriction, including without limitation
# the rights to use, copy, modify, merge... | 48.132948 | 281 | 0.584864 |
38fb830b20a30bf954d13ffe4a50307fc0a39aad | 44 | py | Python | catalog/views/__init__.py | saymoniphal/fswd-p4-item-catalog | b0f870f11395877308984bb464413989b183c94f | [
"Unlicense",
"MIT"
] | null | null | null | catalog/views/__init__.py | saymoniphal/fswd-p4-item-catalog | b0f870f11395877308984bb464413989b183c94f | [
"Unlicense",
"MIT"
] | null | null | null | catalog/views/__init__.py | saymoniphal/fswd-p4-item-catalog | b0f870f11395877308984bb464413989b183c94f | [
"Unlicense",
"MIT"
] | null | null | null | from .category import *
from .item import *
| 14.666667 | 23 | 0.727273 |
38fbada40f94b59e9052a5f43281f0d03e8cf3d1 | 3,511 | py | Python | v0.95/dc/models/users.py | iaiting/Flask-and-pywebview-followup-application-gui | b665334403b4a8471b5f28054ee2dc7adda7d9fc | [
"MIT"
] | null | null | null | v0.95/dc/models/users.py | iaiting/Flask-and-pywebview-followup-application-gui | b665334403b4a8471b5f28054ee2dc7adda7d9fc | [
"MIT"
] | null | null | null | v0.95/dc/models/users.py | iaiting/Flask-and-pywebview-followup-application-gui | b665334403b4a8471b5f28054ee2dc7adda7d9fc | [
"MIT"
] | 1 | 2019-12-25T11:57:45.000Z | 2019-12-25T11:57:45.000Z | import os
import pandas as pd
from dc.utils.dbwrap import Dbwrap
from dc.utils.commun import Commun
class User:
func = Commun()
conf = func.config_info()
db = Dbwrap(conf["path_to_database"])
def add_user(self, username, userpassword, userrights, defaultproofreader):
"""Adds a use... | 34.421569 | 130 | 0.602677 |
38fbf7ffdc3279851a8327d2b616579ceb37e675 | 3,946 | py | Python | jinad/helper.py | jina-ai/jinad | 4fb874b145357668ecd84cb015c9db1939ed013c | [
"Apache-2.0"
] | 3 | 2020-10-29T10:11:42.000Z | 2022-03-15T02:32:43.000Z | jinad/helper.py | jina-ai/jinad | 4fb874b145357668ecd84cb015c9db1939ed013c | [
"Apache-2.0"
] | 41 | 2020-10-23T13:06:39.000Z | 2021-01-06T19:55:06.000Z | jinad/helper.py | jina-ai/jinad | 4fb874b145357668ecd84cb015c9db1939ed013c | [
"Apache-2.0"
] | null | null | null | import os
import argparse
from typing import Dict, List, Union
from jina import __default_host__
from jina.helper import get_random_identity
from fastapi import UploadFile
from jinad.models import PeaModel, SinglePodModel, ParallelPodModel
def get_enum_defaults(parser: argparse.ArgumentParser):
""" Helper funct... | 34.017241 | 88 | 0.649265 |
38fc4e4d29081fbd316aa57a1f99289284102f7f | 4,153 | py | Python | datar/datar/verbs.py | stjordanis/datar | 4e2b5db026ad35918954576badef9951928c0cb1 | [
"MIT"
] | 110 | 2021-03-09T04:10:40.000Z | 2022-03-13T10:28:20.000Z | datar/datar/verbs.py | sthagen/datar | 1218a549e2f0547c7b5a824ca6d9adf1bf96ba46 | [
"MIT"
] | 54 | 2021-06-20T18:53:44.000Z | 2022-03-29T22:13:07.000Z | datar/datar/verbs.py | sthagen/datar | 1218a549e2f0547c7b5a824ca6d9adf1bf96ba46 | [
"MIT"
] | 11 | 2021-06-18T03:03:14.000Z | 2022-02-25T11:48:26.000Z | """Specific verbs from this package"""
from typing import Any, List
from pandas import DataFrame
from pipda import register_verb
from pipda.utils import CallingEnvs
from ..core.types import is_scalar
from ..core.contexts import Context
from ..core.grouped import DataFrameGroupBy
from ..core.utils import get_option
fr... | 29.041958 | 75 | 0.585842 |
38fc5fddf33fce75f153bd5a1804d1c0961f3c5e | 2,649 | py | Python | conans/model/package_metadata.py | NewProggie/conan | 6ec73ac2b4be98e1ab4e5ee797008b50ca2d7424 | [
"MIT"
] | null | null | null | conans/model/package_metadata.py | NewProggie/conan | 6ec73ac2b4be98e1ab4e5ee797008b50ca2d7424 | [
"MIT"
] | null | null | null | conans/model/package_metadata.py | NewProggie/conan | 6ec73ac2b4be98e1ab4e5ee797008b50ca2d7424 | [
"MIT"
] | null | null | null | import json
from collections import defaultdict
from conans import DEFAULT_REVISION_V1
class _RecipeMetadata(object):
def __init__(self):
self._revision = None
self.properties = {}
@property
def revision(self):
return self._revision
@revision.setter
def revision(self, r... | 24.990566 | 78 | 0.617969 |
38fc731b6b2de11ac4142dddae56bc1e45dc0a62 | 11,884 | py | Python | angrmanagement/plugins/trace_viewer/qtrace_viewer.py | Kyle-Kyle/angr-management | 6ea65f19d813be510a38f06510b2b2148a6b5000 | [
"BSD-2-Clause"
] | 2 | 2022-01-23T21:43:54.000Z | 2022-02-02T08:20:20.000Z | angrmanagement/plugins/trace_viewer/qtrace_viewer.py | Kyle-Kyle/angr-management | 6ea65f19d813be510a38f06510b2b2148a6b5000 | [
"BSD-2-Clause"
] | 1 | 2021-12-04T01:11:46.000Z | 2021-12-04T01:11:46.000Z | angrmanagement/plugins/trace_viewer/qtrace_viewer.py | Kyle-Kyle/angr-management | 6ea65f19d813be510a38f06510b2b2148a6b5000 | [
"BSD-2-Clause"
] | 1 | 2021-05-17T05:46:19.000Z | 2021-05-17T05:46:19.000Z | from PySide2.QtWidgets import QWidget, QHBoxLayout, QGraphicsScene, QGraphicsView, QGraphicsItemGroup
from PySide2.QtGui import QPen, QBrush, QLinearGradient, QColor, QPainter, QImage, QFont
from PySide2.QtCore import Qt, QPoint, QEvent
import logging
l = logging.getLogger(name=__name__)
class QTraceViewer(QWidget):
... | 39.745819 | 116 | 0.614271 |
38fc9525db5640af7d4bc21706d6a885c25abf88 | 3,570 | py | Python | alpacka/utils/mrunner_client.py | shoot-tree-search/sts | 2d9f19a40c7fb1c637dd3bd230942c01f14927e1 | [
"MIT"
] | 2 | 2021-01-03T04:21:56.000Z | 2021-02-12T12:54:58.000Z | alpacka/utils/mrunner_client.py | shoot-tree-search/sts | 2d9f19a40c7fb1c637dd3bd230942c01f14927e1 | [
"MIT"
] | null | null | null | alpacka/utils/mrunner_client.py | shoot-tree-search/sts | 2d9f19a40c7fb1c637dd3bd230942c01f14927e1 | [
"MIT"
] | null | null | null | """Parse and return mrunner gin-config and set-up Neptune."""
import atexit
import datetime
import functools
import os
import pickle
import cloudpickle
import neptune
from alpacka import metric_logging
from alpacka.batch_steppers import worker_utils
def get_configuration(spec_path):
"""Get mrunner experiment s... | 33.055556 | 80 | 0.644538 |
38fcaee11c829753c720a2f6d3a229f99837cde8 | 962 | py | Python | test/test_taloussanomat.py | joniok/hybra-medialoader | ebc6df58287b5146917d66de69d807309cea4a8f | [
"MIT"
] | null | null | null | test/test_taloussanomat.py | joniok/hybra-medialoader | ebc6df58287b5146917d66de69d807309cea4a8f | [
"MIT"
] | 14 | 2016-10-14T15:09:42.000Z | 2017-03-01T14:29:29.000Z | test/test_taloussanomat.py | joniok/hybra-medialoader | ebc6df58287b5146917d66de69d807309cea4a8f | [
"MIT"
] | 1 | 2020-11-18T13:06:48.000Z | 2020-11-18T13:06:48.000Z | import sys
import os
import filecmp
import importlib
import datetime
import common
path = os.path.abspath('.')
sys.path.append(path)
domain = 'taloussanomat'
url = 'http://www.iltasanomat.fi/taloussanomat/porssiuutiset/art-2000001922018.html?n=1'
out = 'test/parser_out.txt'
module = importlib.import_module( 'sites.'... | 23.463415 | 88 | 0.734927 |
38fcbd55141afafbc83a4244dfc3b5bfe368499d | 2,694 | py | Python | sdk/loadtestservice/azure-mgmt-loadtestservice/azure/mgmt/loadtestservice/models/__init__.py | vincenttran-msft/azure-sdk-for-python | 348b56f9f03eeb3f7b502eed51daf494ffff874d | [
"MIT"
] | 2,728 | 2015-01-09T10:19:32.000Z | 2022-03-31T14:50:33.000Z | sdk/loadtestservice/azure-mgmt-loadtestservice/azure/mgmt/loadtestservice/models/__init__.py | v-xuto/azure-sdk-for-python | 9c6296d22094c5ede410bc83749e8df8694ccacc | [
"MIT"
] | 17,773 | 2015-01-05T15:57:17.000Z | 2022-03-31T23:50:25.000Z | sdk/loadtestservice/azure-mgmt-loadtestservice/azure/mgmt/loadtestservice/models/__init__.py | v-xuto/azure-sdk-for-python | 9c6296d22094c5ede410bc83749e8df8694ccacc | [
"MIT"
] | 1,916 | 2015-01-19T05:05:41.000Z | 2022-03-31T19:36:44.000Z | # 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 ... | 39.043478 | 94 | 0.715664 |
38fcc34e09d153659ec0244881ba63c5285d5efd | 31,442 | py | Python | classifier_data_lib.py | ahzz1207/ALBERT-TINYBERT | d7065a8c7316fd46bc6855ed238c45533e926c0e | [
"Apache-2.0"
] | 12 | 2020-03-06T10:30:17.000Z | 2022-03-23T02:18:25.000Z | classifier_data_lib.py | ahzz1207/ALBERT-TINYBERT | d7065a8c7316fd46bc6855ed238c45533e926c0e | [
"Apache-2.0"
] | 5 | 2020-09-25T19:09:32.000Z | 2022-02-09T23:36:28.000Z | classifier_data_lib.py | ahzz1207/ALBERT-TINYBERT | d7065a8c7316fd46bc6855ed238c45533e926c0e | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 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... | 34.028139 | 87 | 0.65651 |
38fcc768f4a970bab82e846866ff86156b933c16 | 5,993 | py | Python | code/Module1.py | QiuSH12/MachineLearningForMedicalImages | 7368a073c4c994a93a494d527478c0a395a7364c | [
"MIT"
] | 92 | 2016-11-13T14:39:32.000Z | 2022-01-01T08:54:23.000Z | code/Module1.py | QiuSH12/MachineLearningForMedicalImages | 7368a073c4c994a93a494d527478c0a395a7364c | [
"MIT"
] | null | null | null | code/Module1.py | QiuSH12/MachineLearningForMedicalImages | 7368a073c4c994a93a494d527478c0a395a7364c | [
"MIT"
] | 44 | 2016-06-23T20:01:44.000Z | 2021-11-17T23:17:59.000Z |
# coding: utf-8
# # Module 1 - Data Load / Display / Normalization
#
# In this module you will learn how to load a nifti image utilizing nibabel and create datasets that can be used with machine learning algorithms. The basic features we will consider are intensity based and originate from multiple acquisition type... | 29.668317 | 328 | 0.725179 |
38fcc82d4515b95d4934020f458e02a886dff24b | 409 | py | Python | wizard_builder/views.py | SexualHealthInnovations/django-wizard-builder | f5effe8c462313f16be914b562dbea8ea796b672 | [
"BSD-3-Clause"
] | 16 | 2016-06-21T04:05:24.000Z | 2017-09-26T15:40:24.000Z | wizard_builder/views.py | SexualHealthInnovations/django-wizard-builder | f5effe8c462313f16be914b562dbea8ea796b672 | [
"BSD-3-Clause"
] | 141 | 2016-06-21T20:46:46.000Z | 2017-09-28T00:20:49.000Z | wizard_builder/views.py | project-callisto/django-wizard-builder | f5effe8c462313f16be914b562dbea8ea796b672 | [
"BSD-3-Clause"
] | 7 | 2017-10-04T22:52:18.000Z | 2018-05-31T17:14:39.000Z | '''
docs / reference:
- https://docs.djangoproject.com/en/1.11/topics/class-based-views/
views should define:
- templates
'''
from . import view_partials
class NewWizardView(
view_partials.WizardRedirectPartial,
):
step = 0
class WizardView(
view_partials.WizardPartial,
):
template_name =... | 17.041667 | 70 | 0.721271 |
38fcdae233a8ba72f7aafe28cbef7fd66fb149d5 | 11,152 | py | Python | pynurbs/geometry/methods/create.py | trelau/pyNURBS | 5dfd082fe368c1140ce485dc64b049b32c267d1f | [
"BSD-3-Clause"
] | 2 | 2019-04-16T20:30:19.000Z | 2019-10-03T07:40:47.000Z | pynurbs/geometry/methods/create.py | trelau/pyNURBS | 5dfd082fe368c1140ce485dc64b049b32c267d1f | [
"BSD-3-Clause"
] | null | null | null | pynurbs/geometry/methods/create.py | trelau/pyNURBS | 5dfd082fe368c1140ce485dc64b049b32c267d1f | [
"BSD-3-Clause"
] | 1 | 2018-09-23T14:28:12.000Z | 2018-09-23T14:28:12.000Z | from __future__ import division
from numpy import argsort, array, cross, dot, float64, mean
from numpy.linalg import svd
from pynurbs.geometry.checker import CheckGeom
from pynurbs.geometry.intersector import IntersectGeom
from pynurbs.geometry.line import Line
from pynurbs.geometry.methods.geom_utils import angle_be... | 28.66838 | 78 | 0.589849 |
38fcf8b81ab1164d072eb061c100ec8d162fe2c2 | 3,472 | py | Python | tests/test_cli/test_add/test_contract.py | valory-xyz/agents-aea | 8f38efa96041b0156ed1ae328178e395dbabf2fc | [
"Apache-2.0"
] | 28 | 2021-10-31T18:54:14.000Z | 2022-03-17T13:10:43.000Z | tests/test_cli/test_add/test_contract.py | valory-xyz/agents-aea | 8f38efa96041b0156ed1ae328178e395dbabf2fc | [
"Apache-2.0"
] | 66 | 2021-10-31T11:55:48.000Z | 2022-03-31T06:26:23.000Z | tests/test_cli/test_add/test_contract.py | valory-xyz/agents-aea | 8f38efa96041b0156ed1ae328178e395dbabf2fc | [
"Apache-2.0"
] | null | null | null | # -*- coding: utf-8 -*-
# ------------------------------------------------------------------------------
#
# Copyright 2022 Valory AG
# Copyright 2018-2021 Fetch.AI Limited
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# ... | 35.428571 | 86 | 0.659562 |
38fd192a154977b3b2176b93f02501dde81753da | 2,255 | py | Python | lib/data_augmentation.py | panthersuper/r2n2 | db75a70e4425840f0deaf96004bd4ce429b69b51 | [
"MIT"
] | null | null | null | lib/data_augmentation.py | panthersuper/r2n2 | db75a70e4425840f0deaf96004bd4ce429b69b51 | [
"MIT"
] | null | null | null | lib/data_augmentation.py | panthersuper/r2n2 | db75a70e4425840f0deaf96004bd4ce429b69b51 | [
"MIT"
] | null | null | null | import numpy as np
from lib.config import cfg
from PIL import Image
def image_transform(img, crop_x, crop_y, crop_loc=None, color_tint=None):
"""
Takes numpy.array img
"""
# Slight translation
if cfg.TRAIN.RANDOM_CROP and not crop_loc:
crop_loc = [np.random.randint(0, crop_y), np.random.r... | 27.168675 | 93 | 0.597783 |
38fd26d34d8aa3d16aee23e01a487c517cb9a984 | 523 | py | Python | terrascript/provider/abergmeier/exasol.py | mjuenema/python-terrascript | 6d8bb0273a14bfeb8ff8e950fe36f97f7c6e7b1d | [
"BSD-2-Clause"
] | 507 | 2017-07-26T02:58:38.000Z | 2022-01-21T12:35:13.000Z | terrascript/provider/abergmeier/exasol.py | mjuenema/python-terrascript | 6d8bb0273a14bfeb8ff8e950fe36f97f7c6e7b1d | [
"BSD-2-Clause"
] | 135 | 2017-07-20T12:01:59.000Z | 2021-10-04T22:25:40.000Z | terrascript/provider/abergmeier/exasol.py | mjuenema/python-terrascript | 6d8bb0273a14bfeb8ff8e950fe36f97f7c6e7b1d | [
"BSD-2-Clause"
] | 81 | 2018-02-20T17:55:28.000Z | 2022-01-31T07:08:40.000Z | # terrascript/provider/abergmeier/exasol.py
# Automatically generated by tools/makecode.py (24-Sep-2021 15:16:02 UTC)
import terrascript
class exasol(terrascript.Provider):
"""Terraform Provider for Exasol"""
__description__ = "Terraform Provider for Exasol"
__namespace__ = "abergmeier"
__name__ = "... | 26.15 | 74 | 0.718929 |
38fd39f81e112707c6f598363f3f528055e652b2 | 9,909 | py | Python | src/model_classes_.py | rsinghlab/GC-MERGE | 166211a7493b56ae59812e3975effcc42aeafc43 | [
"MIT"
] | 2 | 2020-12-20T11:51:18.000Z | 2021-02-12T23:21:44.000Z | src/model_classes_.py | moritzschaefer/GC-MERGE | ac2b0d32b2581c21c233647f5264cf35e7e6f0f4 | [
"MIT"
] | null | null | null | src/model_classes_.py | moritzschaefer/GC-MERGE | ac2b0d32b2581c21c233647f5264cf35e7e6f0f4 | [
"MIT"
] | 1 | 2021-02-12T11:36:18.000Z | 2021-02-12T11:36:18.000Z | import os
import argparse
import time
from datetime import datetime, date
import random
import numpy as np
from scipy.sparse import load_npz
from sklearn.metrics import roc_auc_score, f1_score, precision_recall_curve, auc
from scipy.stats import pearsonr
import pandas as pd
import torch
import torch_geom... | 34.40625 | 128 | 0.576446 |
38fd77162c2065c4b281f6abc873be0e5ef95dc5 | 78,738 | py | Python | instapy/instapy.py | MissProxy/followig | 84ecbbad49556f54e4c3b6f531ce12a919a134a1 | [
"MIT"
] | null | null | null | instapy/instapy.py | MissProxy/followig | 84ecbbad49556f54e4c3b6f531ce12a919a134a1 | [
"MIT"
] | null | null | null | instapy/instapy.py | MissProxy/followig | 84ecbbad49556f54e4c3b6f531ce12a919a134a1 | [
"MIT"
] | null | null | null | """OS Modules environ method to get the setup vars from the Environment"""
import csv
import json
import logging
from math import ceil
import os
from platform import python_version
from datetime import datetime
from sys import maxsize
import random
from pyvirtualdisplay import Display
from selenium import webdriver
fr... | 42.400646 | 136 | 0.419505 |
38fda017bc5817df243489cc7af71303fc8fbad9 | 9,769 | py | Python | discord/raw_models.py | CuzImSyntax/dis.py | 2f56d546f2594e1dbb6955c8b13b3a884a04eca6 | [
"MIT"
] | 1 | 2021-09-11T13:39:44.000Z | 2021-09-11T13:39:44.000Z | discord/raw_models.py | CuzImSyntax/discordIO | 47cd508ed48004aa61a41a5b196d3ff003456219 | [
"MIT"
] | null | null | null | discord/raw_models.py | CuzImSyntax/discordIO | 47cd508ed48004aa61a41a5b196d3ff003456219 | [
"MIT"
] | null | null | null | """
The MIT License (MIT)
Copyright (c) 2015-2021 Rapptz 2021-present CuzImSyntax
Permission is hereby granted, free of charge, to any person obtaining a
copy of this software and associated documentation files (the "Software"),
to deal in the Software without restriction, including without limitation
the rights to u... | 35.014337 | 127 | 0.665575 |
38fdb570ade206ba6c3947d096f2dee8a19c4c96 | 120 | py | Python | Chapter 8/08/PaxHeader/recipe62_production.py | robert0714/Python-Testing-Cookbook-Second-Edition | c7c5d59e42e9ca2874faf12a6dd201736a45ca83 | [
"MIT"
] | null | null | null | Chapter 8/08/PaxHeader/recipe62_production.py | robert0714/Python-Testing-Cookbook-Second-Edition | c7c5d59e42e9ca2874faf12a6dd201736a45ca83 | [
"MIT"
] | null | null | null | Chapter 8/08/PaxHeader/recipe62_production.py | robert0714/Python-Testing-Cookbook-Second-Edition | c7c5d59e42e9ca2874faf12a6dd201736a45ca83 | [
"MIT"
] | null | null | null | 15 uid=2057284
20 ctime=1295332244
20 atime=1295578340
24 SCHILY.dev=234881026
23 SCHILY.ino=29229789
18 SCHILY.nlink=1
| 17.142857 | 23 | 0.825 |
38fdecdde29203cdf01df01fceedf8d46e490d56 | 2,765 | py | Python | eventtypeidentification/volumetric_data.py | marivasq/gamma-ai | 735953e80901afea3e5cdeb2a7b27c9ab5725434 | [
"MIT"
] | 6 | 2020-01-29T07:24:14.000Z | 2022-03-16T10:05:25.000Z | eventtypeidentification/volumetric_data.py | marivasq/gamma-ai | 735953e80901afea3e5cdeb2a7b27c9ab5725434 | [
"MIT"
] | 6 | 2020-07-03T00:31:10.000Z | 2021-09-10T07:45:01.000Z | eventtypeidentification/volumetric_data.py | marivasq/gamma-ai | 735953e80901afea3e5cdeb2a7b27c9ab5725434 | [
"MIT"
] | 5 | 2019-02-27T22:56:49.000Z | 2019-08-24T19:01:41.000Z | import numpy as np
import os
import cStringIO
import tensorflow as tf
import random
import zipfile
class ShapeNet40Vox30(object):
def __init__(self, batch_size=None):
class Voxels(object):
def __init__(self, zf, fi, label, category):
self._zf = zf
self._fi = fi
self._label = label
self._catego... | 24.043478 | 83 | 0.663653 |
38fe0648dcc1ba3f8049031ddbeb0f88a88a9599 | 4,897 | py | Python | fetcher/source_utils.py | griffindvs/covid19-datafetcher | 9cd05a5ddb196a2db89da409783b165798fed211 | [
"Apache-2.0"
] | null | null | null | fetcher/source_utils.py | griffindvs/covid19-datafetcher | 9cd05a5ddb196a2db89da409783b165798fed211 | [
"Apache-2.0"
] | null | null | null | fetcher/source_utils.py | griffindvs/covid19-datafetcher | 9cd05a5ddb196a2db89da409783b165798fed211 | [
"Apache-2.0"
] | null | null | null | from datetime import datetime, date
import inspect
import logging
import typing
from fetcher.utils import Fields, request, request_and_parse, request_csv, request_soup, \
request_pandas, request_tableau_scraper, extract_attributes, extract_arcgis_attributes
MS_FILTER = datetime(2020, 1, 1, 0, 0).timestamp() * 10... | 34.244755 | 90 | 0.621809 |
38fe0b3ab5cf13603a3676677b0b21f0743f3b14 | 9,698 | py | Python | mitri_van/day_10.py | techartorg/Advent_of_Code_2020 | ae21164bc126352e7a2e9c9c6a0017ccb9d946cc | [
"MIT"
] | 3 | 2020-11-16T15:20:11.000Z | 2020-12-11T17:01:42.000Z | mitri_van/day_10.py | techartorg/Advent_of_Code_2020 | ae21164bc126352e7a2e9c9c6a0017ccb9d946cc | [
"MIT"
] | null | null | null | mitri_van/day_10.py | techartorg/Advent_of_Code_2020 | ae21164bc126352e7a2e9c9c6a0017ccb9d946cc | [
"MIT"
] | 1 | 2020-12-13T04:42:44.000Z | 2020-12-13T04:42:44.000Z | '''
--- Day 10: Adapter Array ---
Patched into the aircraft's data port, you discover weather forecasts of a massive tropical storm. Before you can figure out whether it will impact your vacation plans, however, your device suddenly turns off!
Its battery is dead.
You'll need to plug it in. There's only one p... | 39.104839 | 292 | 0.676737 |
38fe0ba4b3a84c4637deb3f0016a828e9e22c0c3 | 839 | py | Python | test_data/t3.py | kamahen/pykythe | d54fd05096af5eb47efb863f613f12d5d80c6c41 | [
"Apache-2.0"
] | 14 | 2018-01-07T01:53:15.000Z | 2021-09-22T00:57:29.000Z | test_data/t3.py | kamahen/pykythe | d54fd05096af5eb47efb863f613f12d5d80c6c41 | [
"Apache-2.0"
] | 39 | 2018-01-07T20:54:25.000Z | 2021-03-21T23:48:17.000Z | test_data/t3.py | kamahen/pykythe | d54fd05096af5eb47efb863f613f12d5d80c6c41 | [
"Apache-2.0"
] | 3 | 2018-12-31T14:37:14.000Z | 2020-07-04T10:53:02.000Z | # TODO: delete this file, after incorporating its test elsewhere
# Mostly this is tests of subscript assignment.
class A:
#- { @aa defines/binding A_aa? }
aa = 1.0
#- { @bb defines/binding A_bb? }
bb = []
# DictSetMakerNode
x = {}
# ListMakerNode
y = [1,2]
y[0] = A()
#- { @aa ref A_aa }
y[0].aa
... | 15.537037 | 81 | 0.575685 |
38fe2c84c83929fae43fa91697133b8dd4fedd9f | 6,600 | py | Python | src/MSG3D/data_gen/ntu120_gendata.py | IW276/IW276SS20-P7 | ed388c04eb8d5ea1d13b5ed4119e722552794a62 | [
"MIT"
] | null | null | null | src/MSG3D/data_gen/ntu120_gendata.py | IW276/IW276SS20-P7 | ed388c04eb8d5ea1d13b5ed4119e722552794a62 | [
"MIT"
] | null | null | null | src/MSG3D/data_gen/ntu120_gendata.py | IW276/IW276SS20-P7 | ed388c04eb8d5ea1d13b5ed4119e722552794a62 | [
"MIT"
] | null | null | null | import sys
sys.path.extend(['../'])
import os
import pickle
import argparse
import numpy as np
from tqdm import tqdm
from MSG3D.data_gen.preprocess import pre_normalization
# NTU RGB+D Skeleton 120 Configurations: https://arxiv.org/pdf/1905.04757.pdf
training_subjects = set([
1, 2, 4, 5, 8, 9, 13, 14, 15, 16, ... | 35.869565 | 101 | 0.575303 |
38fe642208043e9739cce1410d20c0baaec59b0c | 17,733 | py | Python | clients/client/python/ory_client/api/metadata_api.py | kolotaev/sdk | 0dda1becd70be8d7b9d678321ebe780c1ba00485 | [
"Apache-2.0"
] | null | null | null | clients/client/python/ory_client/api/metadata_api.py | kolotaev/sdk | 0dda1becd70be8d7b9d678321ebe780c1ba00485 | [
"Apache-2.0"
] | null | null | null | clients/client/python/ory_client/api/metadata_api.py | kolotaev/sdk | 0dda1becd70be8d7b9d678321ebe780c1ba00485 | [
"Apache-2.0"
] | null | null | null | """
Ory APIs
Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. # noqa: E501
The version of the OpenAPI document: v0.0.1-alpha.17
Contact: support@ory.sh
Generated by: htt... | 38.55 | 483 | 0.50454 |
38fe90b51bd1a8c0d73a273e22d1da577620fe24 | 4,719 | py | Python | gpxo/general.py | liquidpizza/gpxo | 4f8eb43a4d6b879f51a7e688dfa80b4aa5558889 | [
"BSD-3-Clause"
] | 3 | 2021-06-28T20:54:23.000Z | 2021-12-14T15:40:09.000Z | gpxo/general.py | liquidpizza/gpxo | 4f8eb43a4d6b879f51a7e688dfa80b4aa5558889 | [
"BSD-3-Clause"
] | 1 | 2021-10-09T09:31:15.000Z | 2021-10-09T09:31:15.000Z | gpxo/general.py | liquidpizza/gpxo | 4f8eb43a4d6b879f51a7e688dfa80b4aa5558889 | [
"BSD-3-Clause"
] | 2 | 2021-09-24T21:59:52.000Z | 2021-12-17T21:50:56.000Z | """General tools for gpx data processing based on gpxpy."""
import numpy as np
from vincenty import vincenty
def closest_pt(pt, trajectory):
"""Finds closest pt to pt (lat, long) in trajectory (lats, longs).
Parameters
----------
pt is a tuple (lat, long)
trajectory can be:
- a tuple (lats,... | 29.12963 | 91 | 0.593982 |
38fed5335ef39e9832c8b47e3c872ada453aa645 | 31,843 | py | Python | tensorflow/python/tools/saved_model_cli.py | tianyapiaozi/tensorflow | fb3ce0467766a8e91f1da0ad7ada7c24fde7a73a | [
"Apache-2.0"
] | 71 | 2017-05-25T16:02:15.000Z | 2021-06-09T16:08:08.000Z | tensorflow/python/tools/saved_model_cli.py | shrikunjsarda/tensorflow | 7e8927e7af0c51ac20a63bd4eab6ff83df1a39ae | [
"Apache-2.0"
] | 133 | 2017-04-26T16:49:49.000Z | 2019-10-15T11:39:26.000Z | tensorflow/python/tools/saved_model_cli.py | shrikunjsarda/tensorflow | 7e8927e7af0c51ac20a63bd4eab6ff83df1a39ae | [
"Apache-2.0"
] | 31 | 2018-09-11T02:17:17.000Z | 2021-12-15T10:33:35.000Z | # Copyright 2017 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... | 39.458488 | 81 | 0.696009 |
38fefad01e1a8b984b76b0147c3e7e386a735a4b | 461 | py | Python | eth/__init__.py | jin10086/py-evm | da04e8de42fdbf3bc5ca596f5f6b3d810c1afea8 | [
"MIT"
] | 137 | 2017-03-17T11:37:51.000Z | 2022-03-07T07:51:28.000Z | eth/__init__.py | jin10086/py-evm | da04e8de42fdbf3bc5ca596f5f6b3d810c1afea8 | [
"MIT"
] | 102 | 2017-04-07T10:43:03.000Z | 2018-11-11T18:01:56.000Z | eth/__init__.py | jin10086/py-evm | da04e8de42fdbf3bc5ca596f5f6b3d810c1afea8 | [
"MIT"
] | 39 | 2017-03-17T11:38:52.000Z | 2021-02-18T23:05:17.000Z | import pkg_resources
import sys
from eth.tools.logging import (
setup_trace_logging
)
#
# Setup TRACE level logging.
#
# This needs to be done before the other imports
setup_trace_logging()
from eth.chains import ( # noqa: F401
Chain,
MainnetChain,
MainnetTesterChain,
RopstenChain,
)
#
# Ensu... | 16.464286 | 62 | 0.737527 |
38ff437c71f71ffc9a591839a0d03f1443276328 | 1,784 | gyp | Python | services/tracing/tracing.gyp | Wzzzx/chromium-crosswalk | 768dde8efa71169f1c1113ca6ef322f1e8c9e7de | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | 2 | 2019-01-28T08:09:58.000Z | 2021-11-15T15:32:10.000Z | services/tracing/tracing.gyp | maidiHaitai/haitaibrowser | a232a56bcfb177913a14210e7733e0ea83a6b18d | [
"BSD-3-Clause"
] | null | null | null | services/tracing/tracing.gyp | maidiHaitai/haitaibrowser | a232a56bcfb177913a14210e7733e0ea83a6b18d | [
"BSD-3-Clause"
] | 6 | 2020-09-23T08:56:12.000Z | 2021-11-18T03:40:49.000Z | # Copyright 2016 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
{
'targets': [
{
'target_name': 'tracing_interfaces',
'type': 'none',
'variables': {
'mojom_files': [
'public/inter... | 28.774194 | 78 | 0.57343 |
38ff461e4a91a9d48f509f9d271dec74bcb2adde | 46,977 | py | Python | sdk/storage/azure-mgmt-storage/azure/mgmt/storage/v2018_03_01_preview/aio/operations/_blob_containers_operations.py | vincenttran-msft/azure-sdk-for-python | 348b56f9f03eeb3f7b502eed51daf494ffff874d | [
"MIT"
] | 1 | 2022-03-09T08:59:13.000Z | 2022-03-09T08:59:13.000Z | sdk/storage/azure-mgmt-storage/azure/mgmt/storage/v2018_03_01_preview/aio/operations/_blob_containers_operations.py | vincenttran-msft/azure-sdk-for-python | 348b56f9f03eeb3f7b502eed51daf494ffff874d | [
"MIT"
] | null | null | null | sdk/storage/azure-mgmt-storage/azure/mgmt/storage/v2018_03_01_preview/aio/operations/_blob_containers_operations.py | vincenttran-msft/azure-sdk-for-python | 348b56f9f03eeb3f7b502eed51daf494ffff874d | [
"MIT"
] | 1 | 2022-03-04T06:21:56.000Z | 2022-03-04T06:21:56.000Z | # 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 ... | 49.139121 | 455 | 0.696064 |
38ff538a1d23ee4d7f2e9820f3cfdba34b989624 | 1,343 | py | Python | marqeta/response_models/primary_contact_info_model.py | marqeta/marqeta-python | 66fa690eb910825c510a391720b0fe717fac0234 | [
"MIT"
] | 21 | 2019-04-12T09:02:17.000Z | 2022-02-18T11:39:06.000Z | marqeta/response_models/primary_contact_info_model.py | marqeta/marqeta-python | 66fa690eb910825c510a391720b0fe717fac0234 | [
"MIT"
] | 1 | 2020-07-22T21:27:40.000Z | 2020-07-23T17:38:43.000Z | marqeta/response_models/primary_contact_info_model.py | marqeta/marqeta-python | 66fa690eb910825c510a391720b0fe717fac0234 | [
"MIT"
] | 10 | 2019-05-08T14:20:37.000Z | 2021-09-20T18:09:26.000Z | from datetime import datetime, date
from marqeta.response_models import datetime_object
import json
import re
class PrimaryContactInfoModel(object):
def __init__(self, json_response):
self.json_response = json_response
def __str__(self):
return json.dumps(self.json_response, default=self.json... | 22.016393 | 111 | 0.670886 |
38ffb603765395bfe14d9b881e9352c2ce7bcb37 | 286 | py | Python | tests/network/nano_node/data/http/version.py | Matoking/siliqua | b943822631ab18dde85e95d1731ebd7ffd7ef14a | [
"CC0-1.0"
] | 8 | 2019-10-31T19:16:08.000Z | 2021-12-04T00:09:24.000Z | tests/network/nano_node/data/http/version.py | Matoking/siliqua | b943822631ab18dde85e95d1731ebd7ffd7ef14a | [
"CC0-1.0"
] | null | null | null | tests/network/nano_node/data/http/version.py | Matoking/siliqua | b943822631ab18dde85e95d1731ebd7ffd7ef14a | [
"CC0-1.0"
] | 1 | 2019-11-01T19:27:48.000Z | 2019-11-01T19:27:48.000Z | from tests.network.nano_node.conftest import HTTPReplay
DATA = [
HTTPReplay(
{"action": "version"},
{
"node_vendor": "Nano 19.0",
"protocol_version": "17",
"rpc_version": "1",
"store_version": "14"
}
)
]
| 19.066667 | 55 | 0.486014 |
38ffc7bedde77b77b243ae6f7d1154dd8ad72eb4 | 2,020 | py | Python | components/azure/azureml/aml-deploy-model/compile_pipeline.py | Iuiu1234/pipelines | 1e032f550ce23cd40bfb6827b995248537b07d08 | [
"Apache-2.0"
] | 2,860 | 2018-05-24T04:55:01.000Z | 2022-03-31T13:49:56.000Z | components/azure/azureml/aml-deploy-model/compile_pipeline.py | Iuiu1234/pipelines | 1e032f550ce23cd40bfb6827b995248537b07d08 | [
"Apache-2.0"
] | 7,331 | 2018-05-16T09:03:26.000Z | 2022-03-31T23:22:04.000Z | components/azure/azureml/aml-deploy-model/compile_pipeline.py | Iuiu1234/pipelines | 1e032f550ce23cd40bfb6827b995248537b07d08 | [
"Apache-2.0"
] | 1,359 | 2018-05-15T11:05:41.000Z | 2022-03-31T09:42:09.000Z | import os
import kfp.compiler as compiler
import kfp.components as components
from kfp.azure import use_azure_secret
import kfp.dsl as dsl
component_root = os.path.join(os.path.dirname(os.path.abspath(__file__)), ".")
image_repo_name = "<your_acr_name>.azurecr.io/deploy" # the container registery for the contai... | 42.978723 | 128 | 0.624257 |
38ffcc42d4e85fc67a72a3d6888ecdc53c3192cf | 2,280 | py | Python | doc/sphinx/example-acoustics-1d/setplot.py | geoflows/geoclaw-4.x | c8879d25405017b38392aa3b1ea422ff3e3604ea | [
"BSD-3-Clause"
] | 7 | 2016-11-13T03:11:51.000Z | 2021-09-07T18:59:48.000Z | doc/sphinx/example-acoustics-1d/setplot.py | che-wenchao/D-Claw | 8ab5d971c9a7a7130e03a447a4b8642e292f4e88 | [
"BSD-3-Clause"
] | 11 | 2020-01-14T18:00:37.000Z | 2022-03-29T14:25:24.000Z | doc/sphinx/example-acoustics-1d/setplot.py | che-wenchao/D-Claw | 8ab5d971c9a7a7130e03a447a4b8642e292f4e88 | [
"BSD-3-Clause"
] | 6 | 2020-01-14T17:15:42.000Z | 2021-12-03T17:28:44.000Z |
"""
Set up the plot figures, axes, and items to be done for each frame.
This module is imported by the plotting routines and then the
function setplot is called to set the plot parameters.
"""
#--------------------------
def setplot(plotdata):
#--------------------------
"""
Specify what is to b... | 31.666667 | 74 | 0.620614 |
38ffda2b3534e42289dea2a532bf02d86ba16210 | 180,724 | py | Python | anaconda_project/test/test_project_ops.py | cpbotha/anaconda-project | 08839d39bf1292a88e26d96fa34027dfed975d61 | [
"BSD-3-Clause"
] | null | null | null | anaconda_project/test/test_project_ops.py | cpbotha/anaconda-project | 08839d39bf1292a88e26d96fa34027dfed975d61 | [
"BSD-3-Clause"
] | null | null | null | anaconda_project/test/test_project_ops.py | cpbotha/anaconda-project | 08839d39bf1292a88e26d96fa34027dfed975d61 | [
"BSD-3-Clause"
] | null | null | null | # -*- coding: utf-8 -*-
# -----------------------------------------------------------------------------
# Copyright (c) 2016, Anaconda, Inc. All rights reserved.
#
# Licensed under the terms of the BSD 3-Clause License.
# The full license is in the file LICENSE.txt, distributed with this software.
# -------------------... | 36.072655 | 120 | 0.628201 |
38ffe57cdf264a10bb1e0af2f6844c5b0ed793cb | 1,827 | py | Python | src/graph_transpiler/webdnn/backend/fallback/kernels/__init__.py | gunpowder78/webdnn | c659ea49007f91d178ce422a1eebe289516a71ee | [
"MIT"
] | 1 | 2018-07-26T13:52:21.000Z | 2018-07-26T13:52:21.000Z | src/graph_transpiler/webdnn/backend/fallback/kernels/__init__.py | gunpowder78/webdnn | c659ea49007f91d178ce422a1eebe289516a71ee | [
"MIT"
] | null | null | null | src/graph_transpiler/webdnn/backend/fallback/kernels/__init__.py | gunpowder78/webdnn | c659ea49007f91d178ce422a1eebe289516a71ee | [
"MIT"
] | null | null | null | from webdnn.backend.fallback.kernels import abs
from webdnn.backend.fallback.kernels import average_pooling_2d
from webdnn.backend.fallback.kernels import broadcast
from webdnn.backend.fallback.kernels import clipped_relu
from webdnn.backend.fallback.kernels import concat
from webdnn.backend.fallback.kernels import con... | 53.735294 | 72 | 0.873563 |
38fff0961df475aef6f79104d6e3fb6814b3a08e | 10,124 | py | Python | tests/test_core.py | YuiYukihira/Pyneat | 6a1778a66c3dad5041ba5f3903355a6991c34a48 | [
"MIT"
] | 3 | 2019-04-21T08:39:59.000Z | 2020-12-22T05:59:14.000Z | tests/test_core.py | YuiYukihira/Pyneat | 6a1778a66c3dad5041ba5f3903355a6991c34a48 | [
"MIT"
] | null | null | null | tests/test_core.py | YuiYukihira/Pyneat | 6a1778a66c3dad5041ba5f3903355a6991c34a48 | [
"MIT"
] | 1 | 2020-03-09T12:05:03.000Z | 2020-03-09T12:05:03.000Z | import pytest
import pyneat
import random
from math import exp
from os import remove, getpid
import time
import psutil
import logging
import copy
def type_dec(error, message):
def type_dec_inner(func):
def func_wrapper():
with pytest.raises(error, message=message):
func()
... | 34.202703 | 111 | 0.529731 |
38fff771743ad196bffac4e8d27c879fb72b1079 | 6,364 | py | Python | test/decoders/test_rnn_transducer_decoder.py | Cescfangs/neural_sp | 2c12d25d2078d3dacdb80c5c367c2e90feba7b6c | [
"Apache-2.0"
] | null | null | null | test/decoders/test_rnn_transducer_decoder.py | Cescfangs/neural_sp | 2c12d25d2078d3dacdb80c5c367c2e90feba7b6c | [
"Apache-2.0"
] | null | null | null | test/decoders/test_rnn_transducer_decoder.py | Cescfangs/neural_sp | 2c12d25d2078d3dacdb80c5c367c2e90feba7b6c | [
"Apache-2.0"
] | null | null | null | #! /usr/bin/env python3
# -*- coding: utf-8 -*-
"""Test for RNN Transducer."""
import argparse
import importlib
import numpy as np
import pytest
import torch
from neural_sp.models.torch_utils import np2tensor
from neural_sp.models.torch_utils import pad_list
ENC_N_UNITS = 32
VOCAB = 10
def make_args(**kwargs):
... | 30.893204 | 90 | 0.589095 |
38fffa8bedefa4ce9a18f37a61ab1b34e49b2471 | 1,789 | py | Python | pbsmrtpipe/tools/report_to_html.py | PacificBiosciences/pbsmrtpipe | 4d532c823d3a46b82c2eb20b9d46e63544c8ba83 | [
"BSD-3-Clause"
] | 26 | 2015-08-06T02:09:51.000Z | 2021-02-26T02:25:01.000Z | pbsmrtpipe/tools/report_to_html.py | mpkocher/pbsmrtpipe | 4d532c823d3a46b82c2eb20b9d46e63544c8ba83 | [
"BSD-3-Clause"
] | 181 | 2015-08-07T18:13:02.000Z | 2021-04-13T16:24:32.000Z | pbsmrtpipe/tools/report_to_html.py | PacificBiosciences/pbsmrtpipe | 4d532c823d3a46b82c2eb20b9d46e63544c8ba83 | [
"BSD-3-Clause"
] | 29 | 2015-08-07T17:29:42.000Z | 2021-09-15T18:22:37.000Z | import sys
import logging
from pbcommand.common_options import add_log_debug_option
from pbcommand.cli import pacbio_args_runner, get_default_argparser
from pbcommand.utils import setup_log
from pbcommand.cli.utils import main_runner_default
from pbcommand.validators import validate_file
import pbsmrtpipe.report_rend... | 27.523077 | 93 | 0.765232 |
38fffd02d2caf0633242a50e621f31171aa2e4d7 | 14,580 | py | Python | main/playground/model2/CompositionalVectorSpaceModel.py | wliu88/AttentivePathRanking | 4757d0d825442170cc7f2b11c9939cf3e2cec121 | [
"MIT"
] | 16 | 2019-12-02T21:18:48.000Z | 2022-03-01T11:27:01.000Z | main/playground/model2/CompositionalVectorSpaceModel.py | wliu88/AttentivePathRanking | 4757d0d825442170cc7f2b11c9939cf3e2cec121 | [
"MIT"
] | 6 | 2020-11-09T09:28:22.000Z | 2022-01-13T01:52:20.000Z | main/playground/model2/CompositionalVectorSpaceModel.py | wliu88/AttentivePathRanking | 4757d0d825442170cc7f2b11c9939cf3e2cec121 | [
"MIT"
] | 5 | 2019-12-29T06:32:25.000Z | 2021-07-29T12:36:36.000Z | import torch
import torch.nn as nn
import torch.nn.functional as functional
import torch.optim as optim
import collections
import os
import random
import time
import numpy as np
import json
from main.playground.model2.FeatureEmbedding import FeatureEmbedding
torch.manual_seed(1)
def print_sum(module, grad_input, g... | 51.338028 | 125 | 0.668038 |
ac0020b317cd9b99a6bf7f88f69f723aad53f112 | 180 | py | Python | ops/db/example/models/b.py | oetiker/osparc-simcore | 00918bf8f000840cc70cc49458780a55858d52ea | [
"MIT"
] | null | null | null | ops/db/example/models/b.py | oetiker/osparc-simcore | 00918bf8f000840cc70cc49458780a55858d52ea | [
"MIT"
] | 2 | 2018-05-13T09:10:57.000Z | 2019-03-06T08:10:40.000Z | ops/db/example/models/b.py | oetiker/osparc-simcore | 00918bf8f000840cc70cc49458780a55858d52ea | [
"MIT"
] | null | null | null | from sqlalchemy import Column, Integer, String
from base import Base
class B(Base):
__tablename__ = 'B'
id = Column(Integer, primary_key=True)
name = Column(String)
| 18 | 46 | 0.705556 |
ac0043e2b6146a0e8e4c97592fc6aa65ba1cb480 | 4,684 | py | Python | SciPy2016/MTwork/inv3d_HPK1/run_thibaut3_offTip/findDiam_inversion.py | simpeg/simpegExamples | 38b8064fb854d809f72b7f1ca8b8096bca696af1 | [
"MIT"
] | 1 | 2021-08-07T13:46:54.000Z | 2021-08-07T13:46:54.000Z | SciPy2016/MTwork/inv3d_HPK1/run_thibaut3_offTip/findDiam_inversion.py | simpeg/simpegExamples | 38b8064fb854d809f72b7f1ca8b8096bca696af1 | [
"MIT"
] | 1 | 2016-07-27T22:20:36.000Z | 2016-07-27T22:20:36.000Z | SciPy2016/MTwork/inv3d_HPK1/run_thibaut3_offTip/findDiam_inversion.py | simpeg/simpegExamples | 38b8064fb854d809f72b7f1ca8b8096bca696af1 | [
"MIT"
] | null | null | null | # Import modules
import numpy as np, sys, os, time, gzip, cPickle as pickle, scipy
#sys.path.append('/tera_raid/gudni/gitCodes/simpeg')
#sys.path.append('/tera_raid/gudni')
from pymatsolver import MumpsSolver
import SimPEG as simpeg
from SimPEG import NSEM
from numpy.lib import recfunctions as rFunc
# Function to get ... | 31.648649 | 103 | 0.714774 |
ac0065a6931d6f8865bee4bd7bc2bdf8e565f20f | 3,803 | py | Python | test/unit/ggrc/test_utils.py | Killswitchz/ggrc-core | 2460df94daf66727af248ad821462692917c97a9 | [
"ECL-2.0",
"Apache-2.0"
] | null | null | null | test/unit/ggrc/test_utils.py | Killswitchz/ggrc-core | 2460df94daf66727af248ad821462692917c97a9 | [
"ECL-2.0",
"Apache-2.0"
] | 10 | 2018-07-06T00:04:23.000Z | 2021-02-26T21:13:20.000Z | test/unit/ggrc/test_utils.py | Killswitchz/ggrc-core | 2460df94daf66727af248ad821462692917c97a9 | [
"ECL-2.0",
"Apache-2.0"
] | 1 | 2017-11-11T22:16:56.000Z | 2017-11-11T22:16:56.000Z | # Copyright (C) 2017 Google Inc.
# Licensed under http://www.apache.org/licenses/LICENSE-2.0 <see LICENSE file>
import unittest
from ggrc import utils
class TestUtilsFunctions(unittest.TestCase):
@unittest.skip("Audit-scope objects can't be mapped from outside")
def test_mapping_rules(self):
""" Test that ... | 24.06962 | 78 | 0.403629 |
ac00691dcd7c645294b44e978e09190a9005874d | 7,021 | py | Python | apps/quotes/views.py | lucifurtun/myquotes | 4b78622acc9223cc18999dce1c2d6374bb52e20f | [
"BSD-3-Clause"
] | 4 | 2016-12-12T12:18:37.000Z | 2017-03-08T07:49:14.000Z | apps/quotes/views.py | lucifurtun/myquotes | 4b78622acc9223cc18999dce1c2d6374bb52e20f | [
"BSD-3-Clause"
] | 24 | 2017-08-25T14:15:52.000Z | 2022-02-26T19:24:17.000Z | apps/quotes/views.py | lucifurtun/myquotes | 4b78622acc9223cc18999dce1c2d6374bb52e20f | [
"BSD-3-Clause"
] | null | null | null | from django.db.models import Q, Count, FieldDoesNotExist
from django.http import HttpResponseBadRequest
from rest_framework import permissions, mixins, status
from rest_framework import schemas, viewsets
from rest_framework import views
from rest_framework.decorators import api_view, renderer_classes
from rest_framewor... | 34.586207 | 108 | 0.657171 |
ac008c04b765baab6312bc839068a74116df4f35 | 12,686 | py | Python | onmt/modules/source_noise.py | leejihwan23/NMT-GPU | 96464effc6f328cc94d553df996b19a9ffe64c60 | [
"Apache-2.0"
] | 39 | 2020-04-14T09:41:41.000Z | 2022-02-21T14:32:06.000Z | onmt/modules/source_noise.py | leejihwan23/NMT-GPU | 96464effc6f328cc94d553df996b19a9ffe64c60 | [
"Apache-2.0"
] | 17 | 2020-05-11T23:44:57.000Z | 2021-02-17T10:53:15.000Z | onmt/modules/source_noise.py | leejihwan23/NMT-GPU | 96464effc6f328cc94d553df996b19a9ffe64c60 | [
"Apache-2.0"
] | 20 | 2020-04-14T11:22:43.000Z | 2021-11-25T03:57:21.000Z | import math
import torch
def aeq(ref, *args):
for i, e in enumerate(args):
assert ref == e, "%s != %s (element %d)" % (str(ref), str(e), i)
class NoiseBase(object):
def __init__(self, prob, pad_idx=1, device_id="cpu",
ids_to_noise=[], **kwargs):
self.prob = prob
self... | 36.14245 | 79 | 0.550843 |
ac00a52dec9cd8032775e6e6336916aede94ebe1 | 2,987 | py | Python | datalad/metadata/extractors/tests/test_exif.py | soichih/datalad | 797dde3ab7497be170e2c4ea8824f33a4b38e5d8 | [
"MIT"
] | null | null | null | datalad/metadata/extractors/tests/test_exif.py | soichih/datalad | 797dde3ab7497be170e2c4ea8824f33a4b38e5d8 | [
"MIT"
] | null | null | null | datalad/metadata/extractors/tests/test_exif.py | soichih/datalad | 797dde3ab7497be170e2c4ea8824f33a4b38e5d8 | [
"MIT"
] | null | null | null | # emacs: -*- mode: python-mode; py-indent-offset: 4; tab-width: 4; indent-tabs-mode: nil; coding: utf-8 -*-
# ex: set sts=4 ts=4 sw=4 et:
# ## ### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ##
#
# See COPYING file distributed along with the datalad package for the
# copyright and license te... | 30.171717 | 176 | 0.586542 |
ac00b1f30ea2b326c9bac79b27bdb46477c56acb | 613 | py | Python | board/migrations/0005_auto_20210416_1848.py | shift-board/shiftboard | 1e49a93d70a18a1f799d5bf2101ca67eb79031a9 | [
"MIT"
] | 1 | 2021-04-25T18:27:22.000Z | 2021-04-25T18:27:22.000Z | board/migrations/0005_auto_20210416_1848.py | shift-board/shiftboard | 1e49a93d70a18a1f799d5bf2101ca67eb79031a9 | [
"MIT"
] | 16 | 2021-04-14T00:44:32.000Z | 2021-05-02T22:23:01.000Z | board/migrations/0005_auto_20210416_1848.py | shift-board/shiftboard | 1e49a93d70a18a1f799d5bf2101ca67eb79031a9 | [
"MIT"
] | null | null | null | # Generated by Django 3.2 on 2021-04-16 22:48
from django.db import migrations, models
import django.utils.timezone
class Migration(migrations.Migration):
dependencies = [
('board', '0004_auto_20210416_0136'),
]
operations = [
migrations.AddField(
model_name='board',
... | 24.52 | 74 | 0.610114 |
ac0116dee2a390d084b9038197936efc53ed8b90 | 3,233 | py | Python | sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/aio/_configuration.py | vincenttran-msft/azure-sdk-for-python | 348b56f9f03eeb3f7b502eed51daf494ffff874d | [
"MIT"
] | 1 | 2022-03-09T08:59:13.000Z | 2022-03-09T08:59:13.000Z | sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/aio/_configuration.py | vincenttran-msft/azure-sdk-for-python | 348b56f9f03eeb3f7b502eed51daf494ffff874d | [
"MIT"
] | null | null | null | sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/aio/_configuration.py | vincenttran-msft/azure-sdk-for-python | 348b56f9f03eeb3f7b502eed51daf494ffff874d | [
"MIT"
] | 1 | 2022-03-04T06:21:56.000Z | 2022-03-04T06:21:56.000Z | # 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 ... | 47.544118 | 130 | 0.702444 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.