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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
f70001f658d4dfaa72dd4f0d1b3176492f6658bb | 6,442 | py | Python | spider/openwrt.py | CNDB/CNDB | 2e3a41111f604cf2f4f22a7c9370bb3f753e3e88 | [
"BSD-3-Clause"
] | null | null | null | spider/openwrt.py | CNDB/CNDB | 2e3a41111f604cf2f4f22a7c9370bb3f753e3e88 | [
"BSD-3-Clause"
] | null | null | null | spider/openwrt.py | CNDB/CNDB | 2e3a41111f604cf2f4f22a7c9370bb3f753e3e88 | [
"BSD-3-Clause"
] | null | null | null | #!/usr/bin/python
# -*- coding: utf-8 -*-
# #*** <License> ************************************************************#
# This module is part of the repository CNDB.
#
# This module is licensed under the terms of the BSD 3-Clause License
# <http://www.c-tanzer.at/license/bsd_3c.html>.
# #*** </License> ***************... | 34.449198 | 78 | 0.472369 |
f7001ad17b839c3551d7b4c8edcc8b1d1d322b6f | 6,412 | py | Python | asv/plugins/conda.py | prisae/asv | 57c386d7cc27f91ecd8daf1ad2e0413f2efdd39c | [
"BSD-3-Clause"
] | 2 | 2019-08-18T11:05:25.000Z | 2019-11-17T02:07:18.000Z | asv/plugins/conda.py | prisae/asv | 57c386d7cc27f91ecd8daf1ad2e0413f2efdd39c | [
"BSD-3-Clause"
] | 1 | 2019-02-19T17:11:38.000Z | 2019-02-19T17:11:38.000Z | asv/plugins/conda.py | prisae/asv | 57c386d7cc27f91ecd8daf1ad2e0413f2efdd39c | [
"BSD-3-Clause"
] | null | null | null | # Licensed under a 3-clause BSD style license - see LICENSE.rst
# -*- coding: utf-8 -*-
from __future__ import absolute_import, division, unicode_literals, print_function
import re
import os
import tempfile
import six
from .. import environment
from ..console import log
from .. import util
WIN = (os.name == "nt")... | 33.570681 | 93 | 0.547723 |
f700701e51582a6f314450ea9547949094b4db62 | 3,429 | py | Python | fineract/objects/group.py | mobidevke/py-fineract | 712b0c20686accd7d7e0a2356ccaf59c5fe4f7dd | [
"Apache-2.0"
] | 7 | 2019-03-11T16:17:33.000Z | 2020-10-22T21:57:51.000Z | fineract/objects/group.py | mobidevke/py-fineract | 712b0c20686accd7d7e0a2356ccaf59c5fe4f7dd | [
"Apache-2.0"
] | 3 | 2019-11-05T20:22:16.000Z | 2019-12-11T17:09:04.000Z | fineract/objects/group.py | mobidevke/py-fineract | 712b0c20686accd7d7e0a2356ccaf59c5fe4f7dd | [
"Apache-2.0"
] | 2 | 2020-11-19T16:00:36.000Z | 2021-11-19T09:36:13.000Z | from fineract.objects.fineract_object import DataFineractObject
from fineract.objects.types import Type
class Group(DataFineractObject):
"""
This class represents a Group.
"""
def __repr__(self):
return self.get__repr__({'group_id': self.id})
def _init_attributes(self):
self.id = ... | 29.307692 | 93 | 0.567221 |
f7007e7d6cadbb4707818ec05e6fcbc50ba52dfb | 2,656 | py | Python | sysinv/sysinv/sysinv/sysinv/common/service.py | starlingx-staging/stx-config | ccbf0392d1941e7cad6673f6351bd905a5a5d419 | [
"Apache-2.0"
] | null | null | null | sysinv/sysinv/sysinv/sysinv/common/service.py | starlingx-staging/stx-config | ccbf0392d1941e7cad6673f6351bd905a5a5d419 | [
"Apache-2.0"
] | null | null | null | sysinv/sysinv/sysinv/sysinv/common/service.py | starlingx-staging/stx-config | ccbf0392d1941e7cad6673f6351bd905a5a5d419 | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python
# -*- encoding: utf-8 -*-
#
# Copyright © 2012 eNovance <licensing@enovance.com>
#
# Author: Julien Danjou <julien@danjou.info>
#
# 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 Lice... | 34.947368 | 79 | 0.622364 |
f7008bf87b5a1c0780d7272b314fa3142ffb3ef3 | 18,984 | py | Python | netbox_agent/server.py | freberkivra/netbox-agent | 5f0aae6c011cd43f7d9e6d322f90a6b0f5195c61 | [
"Apache-2.0"
] | 24 | 2019-08-05T15:14:20.000Z | 2020-02-02T11:05:45.000Z | netbox_agent/server.py | freberkivra/netbox-agent | 5f0aae6c011cd43f7d9e6d322f90a6b0f5195c61 | [
"Apache-2.0"
] | 39 | 2019-08-04T18:12:07.000Z | 2020-01-30T21:42:38.000Z | netbox_agent/server.py | freberkivra/netbox-agent | 5f0aae6c011cd43f7d9e6d322f90a6b0f5195c61 | [
"Apache-2.0"
] | 8 | 2019-09-03T20:51:22.000Z | 2020-01-15T06:00:23.000Z | import netbox_agent.dmidecode as dmidecode
from netbox_agent.config import config
from netbox_agent.config import netbox_instance as nb
from netbox_agent.inventory import Inventory
from netbox_agent.location import Datacenter, Rack, Tenant
from netbox_agent.misc import create_netbox_tags, get_device_role, get_device_ty... | 36.43762 | 103 | 0.608038 |
f700bd3e668d5f4fe3f075fecf18bb44137fc1c9 | 11,470 | py | Python | tools/azure-sdk-tools/packaging_tools/swaggertosdk/SwaggerToSdkCore.py | vincenttran-msft/azure-sdk-for-python | 348b56f9f03eeb3f7b502eed51daf494ffff874d | [
"MIT"
] | 1 | 2022-02-01T18:50:12.000Z | 2022-02-01T18:50:12.000Z | tools/azure-sdk-tools/packaging_tools/swaggertosdk/SwaggerToSdkCore.py | vincenttran-msft/azure-sdk-for-python | 348b56f9f03eeb3f7b502eed51daf494ffff874d | [
"MIT"
] | null | null | null | tools/azure-sdk-tools/packaging_tools/swaggertosdk/SwaggerToSdkCore.py | vincenttran-msft/azure-sdk-for-python | 348b56f9f03eeb3f7b502eed51daf494ffff874d | [
"MIT"
] | null | null | null | """SwaggerToSdk core tools.
"""
from enum import Enum, unique
import json
import logging
import os
import re
import tempfile
from pathlib import Path
import requests
from github import Github, UnknownObjectException
from .autorest_tools import (
autorest_latest_version_finder,
autorest_bootstrap_version_find... | 38.233333 | 119 | 0.682476 |
f700c767ff92c13aef1a23a878df02eea4e86053 | 3,656 | py | Python | src/Application/PythonScriptModule/pymodules_old/circuits/core/values.py | antont/tundra | 5c9b0a3957071f08ab425dff701cdbb34f9e1868 | [
"Apache-2.0"
] | 1 | 2018-04-02T15:38:10.000Z | 2018-04-02T15:38:10.000Z | src/Application/PythonScriptModule/pymodules_old/circuits/core/values.py | antont/tundra | 5c9b0a3957071f08ab425dff701cdbb34f9e1868 | [
"Apache-2.0"
] | null | null | null | src/Application/PythonScriptModule/pymodules_old/circuits/core/values.py | antont/tundra | 5c9b0a3957071f08ab425dff701cdbb34f9e1868 | [
"Apache-2.0"
] | 1 | 2021-09-04T12:37:34.000Z | 2021-09-04T12:37:34.000Z | # Package: values
# Date: 11th April 2010
# Author: James Mills, prologic at shortcircuit dot net dot au
"""Values
This defines the Value object used by components and events.
"""
from types import ListType
from itertools import imap
from events import Event
class ValueChanged(Event):
"""Value Changed E... | 28.341085 | 78 | 0.602298 |
f700e68836d56c80b1eb23849bcf903eda4dfa6c | 5,105 | py | Python | nova/virt/hyperv/imagecache.py | ebalduf/nova-backports | 6bf97ec73467de522d34ab7a17ca0e0874baa7f9 | [
"Apache-2.0"
] | null | null | null | nova/virt/hyperv/imagecache.py | ebalduf/nova-backports | 6bf97ec73467de522d34ab7a17ca0e0874baa7f9 | [
"Apache-2.0"
] | null | null | null | nova/virt/hyperv/imagecache.py | ebalduf/nova-backports | 6bf97ec73467de522d34ab7a17ca0e0874baa7f9 | [
"Apache-2.0"
] | null | null | null | # Copyright 2013 Cloudbase Solutions Srl
# 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 r... | 39.573643 | 78 | 0.591773 |
f700f20444454593e2536cb9e2591f4eae5a213c | 7,178 | py | Python | src/config.py | volovodenko/English | 860ae0f971909b9aa299c193ea7d0161c88d0b22 | [
"Apache-2.0"
] | null | null | null | src/config.py | volovodenko/English | 860ae0f971909b9aa299c193ea7d0161c88d0b22 | [
"Apache-2.0"
] | null | null | null | src/config.py | volovodenko/English | 860ae0f971909b9aa299c193ea7d0161c88d0b22 | [
"Apache-2.0"
] | null | null | null | # -*- coding: utf-8 -*-
import os
import re
import json
import os.path
import unittest
reg_cmnt = re.compile(r"/\*.*?\*/", re.DOTALL)
class Config:
"Работа с конфигурационным файлом"
def __init__(self, main_path=None, user_path=None):
if main_path is None:
self._main_path = "config.json... | 36.622449 | 114 | 0.57314 |
f70101d2e677dfa1c95b8d12717565b56481d031 | 11,171 | py | Python | server/server/organizations/models.py | connectiveproject/connective | 8866082b2147feef0e5254ac4215987b9d881396 | [
"MIT"
] | 4 | 2021-07-05T10:49:26.000Z | 2021-11-24T11:34:43.000Z | server/server/organizations/models.py | connectiveproject/connective | 8866082b2147feef0e5254ac4215987b9d881396 | [
"MIT"
] | 39 | 2021-06-21T15:02:37.000Z | 2022-02-28T15:07:42.000Z | server/server/organizations/models.py | connectiveproject/connective | 8866082b2147feef0e5254ac4215987b9d881396 | [
"MIT"
] | 17 | 2021-06-16T08:59:45.000Z | 2021-09-29T11:35:38.000Z | from django.core.validators import RegexValidator
from django.db import models
from django.utils.translation import gettext_lazy as _
from taggit.managers import TaggableManager
from server.connective_tags.models import ConnectiveTaggedItem
from server.schools.models import School
from server.utils.db_utils import get... | 37.612795 | 87 | 0.688569 |
f70153728cb260c3c86bc652b2c6fedfd73c3c53 | 4,548 | py | Python | core/assembly_system.py | YifanQie/Deep_Learning_for_Manufacturing | 9ba19e41f69c561b04b8573ab9c52c0969f45bfd | [
"MIT"
] | 27 | 2019-10-31T15:16:13.000Z | 2022-03-29T03:56:57.000Z | core/assembly_system.py | YifanQie/Deep_Learning_for_Manufacturing | 9ba19e41f69c561b04b8573ab9c52c0969f45bfd | [
"MIT"
] | 4 | 2020-03-25T14:18:04.000Z | 2022-02-10T00:34:58.000Z | core/assembly_system.py | YifanQie/Deep_Learning_for_Manufacturing | 9ba19e41f69c561b04b8573ab9c52c0969f45bfd | [
"MIT"
] | 7 | 2020-02-23T22:12:37.000Z | 2021-12-08T20:14:41.000Z | import numpy as np
import pandas as pd
""" Contains core classes and methods for initializing a Assembly System, the inputs are provided in assemblyconfig file in utilities"""
class AssemblySystem:
"""Assembly System Class
:param assembly_type: Type of assembly Single-Station/Multi-Station
:type assembly_system:... | 39.547826 | 230 | 0.776165 |
f701a87736fbc584f7e9ffd3e6d8d63f457be0ba | 2,204 | py | Python | lhotse/manipulation.py | freewym/lhotse | 66e9bbaf25b75011388ab00189baa162c3c1d435 | [
"Apache-2.0"
] | null | null | null | lhotse/manipulation.py | freewym/lhotse | 66e9bbaf25b75011388ab00189baa162c3c1d435 | [
"Apache-2.0"
] | null | null | null | lhotse/manipulation.py | freewym/lhotse | 66e9bbaf25b75011388ab00189baa162c3c1d435 | [
"Apache-2.0"
] | null | null | null | from functools import reduce
from itertools import chain
from operator import add
from typing import Iterable, Optional, TypeVar
from lhotse.audio import Recording, RecordingSet
from lhotse.cut import Cut, CutSet, MixedCut
from lhotse.features import FeatureSet, Features
from lhotse.supervision import SupervisionSegme... | 38 | 120 | 0.72686 |
f701ad039addc3139e0d9bb52293365f52a99e55 | 5,544 | py | Python | tests/unit/modules/brew_test.py | skrobul/salt | ef7fb71082cce7a9783e00b9c65062fefae09263 | [
"Apache-2.0"
] | 2 | 2017-09-17T21:10:35.000Z | 2019-08-26T03:00:12.000Z | tests/unit/modules/brew_test.py | skrobul/salt | ef7fb71082cce7a9783e00b9c65062fefae09263 | [
"Apache-2.0"
] | null | null | null | tests/unit/modules/brew_test.py | skrobul/salt | ef7fb71082cce7a9783e00b9c65062fefae09263 | [
"Apache-2.0"
] | 3 | 2021-02-23T08:12:48.000Z | 2021-02-23T08:13:13.000Z | # -*- coding: utf-8 -*-
'''
:codeauthor: :email:`Nicole Thomas <nicole@satlstack.com>`
'''
# Import Salt Testing Libs
from salttesting import TestCase
from salttesting.mock import MagicMock, patch
from salttesting.helpers import ensure_in_syspath
ensure_in_syspath('../../')
# Import Salt Libs
from salt.modules i... | 33.197605 | 79 | 0.628066 |
f701dbb60581a894fa82d654ad38824ba276b7a5 | 4,113 | py | Python | model/seg_models/pspnet.py | AceCoooool/segmentation | 2f4d5ac193cab580eb8ba789e79db6dadcfecfd0 | [
"MIT"
] | 2 | 2019-06-08T13:09:08.000Z | 2020-09-21T04:03:09.000Z | model/seg_models/pspnet.py | AceCoooool/segmentation | 2f4d5ac193cab580eb8ba789e79db6dadcfecfd0 | [
"MIT"
] | 2 | 2019-05-20T11:56:02.000Z | 2019-06-02T13:22:55.000Z | model/seg_models/pspnet.py | AceCoooool/segmentation | 2f4d5ac193cab580eb8ba789e79db6dadcfecfd0 | [
"MIT"
] | 1 | 2020-09-22T03:55:39.000Z | 2020-09-22T03:55:39.000Z | """Pyramid Scene Parsing Network"""
import os
import torch
from torch import nn
import torch.nn.functional as F
from model.seg_models.segbase import SegBaseModel
from model.module.basic import _FCNHead
__all__ = ['PSPNet', 'get_psp',
'get_psp_resnet101_voc',
'get_psp_resnet101_citys']
# head
d... | 36.39823 | 106 | 0.644299 |
f701f97e1f188d4e04e78e513ce8208e4d9f71ef | 1,360 | py | Python | deploy.py | blockchainhelppro/CelvinRost | aa2661747d06e4610928466521e4da1db77aeadc | [
"MIT"
] | 2 | 2018-08-15T21:27:59.000Z | 2018-08-21T17:56:12.000Z | deploy.py | blockchainhelppro/CelvinRost | aa2661747d06e4610928466521e4da1db77aeadc | [
"MIT"
] | null | null | null | deploy.py | blockchainhelppro/CelvinRost | aa2661747d06e4610928466521e4da1db77aeadc | [
"MIT"
] | 1 | 2021-12-06T04:03:32.000Z | 2021-12-06T04:03:32.000Z | import itertools
import toposort
from populus.utils.contracts import (
compute_direct_dependency_graph,
compute_recursive_contract_dependencies,
)
def compute_deploy_order(dependency_graph):
"""
Given a dictionary that maps contract to their dependencies,
determine the overall dependency orderin... | 33.170732 | 83 | 0.772794 |
f7020126c0821383f6a8544cd6c1e7094992bb87 | 25 | py | Python | btd6_memory_info/generated/Unity/Collections/LowLevel/Unsafe/UnsafeUtility/unsafe_utility.py | 56kyle/bloons_auto | 419d55b51d1cddc49099593970adf1c67985b389 | [
"MIT"
] | null | null | null | btd6_memory_info/generated/Unity/Collections/LowLevel/Unsafe/UnsafeUtility/unsafe_utility.py | 56kyle/bloons_auto | 419d55b51d1cddc49099593970adf1c67985b389 | [
"MIT"
] | null | null | null | btd6_memory_info/generated/Unity/Collections/LowLevel/Unsafe/UnsafeUtility/unsafe_utility.py | 56kyle/bloons_auto | 419d55b51d1cddc49099593970adf1c67985b389 | [
"MIT"
] | null | null | null | class UnsafeUtility: pass | 25 | 25 | 0.88 |
f702024c3c01565b670bab7999a264ce4f0d7f8d | 260 | py | Python | slack_app/tasks.py | webscopeio/django-slack-app | 65abb3717460c51a19c1238eb0572f25c47b2a42 | [
"MIT"
] | 3 | 2020-06-23T10:02:48.000Z | 2020-10-28T11:59:28.000Z | slack_app/tasks.py | webscopeio/django-slack-integration | 65abb3717460c51a19c1238eb0572f25c47b2a42 | [
"MIT"
] | 2 | 2020-02-17T11:42:03.000Z | 2020-02-18T13:46:38.000Z | slack_app/tasks.py | webscopeio/django-slack-integration | 65abb3717460c51a19c1238eb0572f25c47b2a42 | [
"MIT"
] | 4 | 2020-10-11T11:02:58.000Z | 2022-03-14T08:23:42.000Z | from celery import shared_task
from .signals import slack_event_received
@shared_task
def receive_slack_signal_task(sender, event_type, event_data, **data):
slack_event_received.send(sender=sender, event_type=event_type, event_data=event_data, **data)
| 26 | 98 | 0.819231 |
f70218f2b4f389dac4b6b4a28a071cb1c97475d0 | 5,869 | py | Python | office365/sharepoint/tenant/administration/tenant.py | wreiner/Office365-REST-Python-Client | 476bbce4f5928a140b4f5d33475d0ac9b0783530 | [
"MIT"
] | null | null | null | office365/sharepoint/tenant/administration/tenant.py | wreiner/Office365-REST-Python-Client | 476bbce4f5928a140b4f5d33475d0ac9b0783530 | [
"MIT"
] | null | null | null | office365/sharepoint/tenant/administration/tenant.py | wreiner/Office365-REST-Python-Client | 476bbce4f5928a140b4f5d33475d0ac9b0783530 | [
"MIT"
] | null | null | null | from office365.runtime.client_value_collection import ClientValueCollection
from office365.runtime.queries.service_operation_query import ServiceOperationQuery
from office365.runtime.resource_path import ResourcePath
from office365.sharepoint.base_entity import BaseEntity
from office365.sharepoint.tenant.administration... | 39.655405 | 116 | 0.679332 |
f7022b106191f7e769f494a9e9e6e19c38892823 | 1,472 | py | Python | qnarre/doc/justifier.py | quantapix/qnarre.com | f51d5945c20ef8182c4aa11f1b407d064c190c70 | [
"MIT"
] | null | null | null | qnarre/doc/justifier.py | quantapix/qnarre.com | f51d5945c20ef8182c4aa11f1b407d064c190c70 | [
"MIT"
] | null | null | null | qnarre/doc/justifier.py | quantapix/qnarre.com | f51d5945c20ef8182c4aa11f1b407d064c190c70 | [
"MIT"
] | null | null | null | # Copyright 2019 Quantapix 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 applicable l... | 35.902439 | 79 | 0.536005 |
f7022f7075bdd6537b307688382d872a3f7fd177 | 53 | py | Python | Interfaces/__init__.py | ahmadryan/TurbAn | b8866d103a2ca2f5fbad73bcd4416f19299f22b2 | [
"BSD-2-Clause-Patent"
] | null | null | null | Interfaces/__init__.py | ahmadryan/TurbAn | b8866d103a2ca2f5fbad73bcd4416f19299f22b2 | [
"BSD-2-Clause-Patent"
] | null | null | null | Interfaces/__init__.py | ahmadryan/TurbAn | b8866d103a2ca2f5fbad73bcd4416f19299f22b2 | [
"BSD-2-Clause-Patent"
] | 10 | 2019-03-22T15:30:12.000Z | 2021-02-10T02:55:50.000Z | from . import Simulations
from . import Spacecraft
| 17.666667 | 26 | 0.773585 |
f7023d3f50a4bcdd656f0e33b9e318facfcd714f | 892 | py | Python | kubi_ecs_logger/models/fields/destination.py | kumina/kubi_ecs_logger | 64d9519e0759a24253a4edc53e0c024675033d1c | [
"BSD-3-Clause"
] | 6 | 2019-12-15T12:47:06.000Z | 2022-01-11T08:54:58.000Z | kubi_ecs_logger/models/fields/destination.py | kumina/kubi_ecs_logger | 64d9519e0759a24253a4edc53e0c024675033d1c | [
"BSD-3-Clause"
] | null | null | null | kubi_ecs_logger/models/fields/destination.py | kumina/kubi_ecs_logger | 64d9519e0759a24253a4edc53e0c024675033d1c | [
"BSD-3-Clause"
] | null | null | null | from marshmallow import fields
from .field_set import FieldSet, FieldSetSchema
class Destination(FieldSet):
def __init__(self,
address: str = None,
bytes: int = None,
domain: str = None,
ip: str = None,
mac: str = None,
... | 24.777778 | 47 | 0.533632 |
f7025167168843760aa99b53b10d6a7a0fc912e1 | 2,035 | py | Python | .eggs/boto-2.48.0-py2.7.egg/boto/sdb/db/key.py | MQQ/git-bigstore | 95f1e37fcda7fdce80502593cec31a44c604cf8a | [
"Apache-2.0"
] | null | null | null | .eggs/boto-2.48.0-py2.7.egg/boto/sdb/db/key.py | MQQ/git-bigstore | 95f1e37fcda7fdce80502593cec31a44c604cf8a | [
"Apache-2.0"
] | null | null | null | .eggs/boto-2.48.0-py2.7.egg/boto/sdb/db/key.py | MQQ/git-bigstore | 95f1e37fcda7fdce80502593cec31a44c604cf8a | [
"Apache-2.0"
] | null | null | null | # Copyright (c) 2006,2007,2008 Mitch Garnaat http://garnaat.org/
#
# 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,... | 33.916667 | 77 | 0.696314 |
f7025258811b22755058146106a8a59727a8d6a1 | 14,181 | py | Python | lib/geomet/wkt.py | davasqueza/eriskco_conector_CloudSQL | 99304b5eed06e9bba3646535a82d7fc98b0838b7 | [
"Apache-2.0"
] | null | null | null | lib/geomet/wkt.py | davasqueza/eriskco_conector_CloudSQL | 99304b5eed06e9bba3646535a82d7fc98b0838b7 | [
"Apache-2.0"
] | null | null | null | lib/geomet/wkt.py | davasqueza/eriskco_conector_CloudSQL | 99304b5eed06e9bba3646535a82d7fc98b0838b7 | [
"Apache-2.0"
] | null | null | null | # Copyright 2013 Lars Butler & individual contributors
#
# 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 applicab... | 28.192843 | 79 | 0.586348 |
f70271444a8a7d243bda48a6efd9534b633a6c2b | 1,169 | py | Python | server/openapi_server/controllers/text_date_annotation_controller.py | cascadianblue/phi-annotator | 0da6c102ec1068e6b15c613e2a90a78f79d15935 | [
"Apache-2.0"
] | null | null | null | server/openapi_server/controllers/text_date_annotation_controller.py | cascadianblue/phi-annotator | 0da6c102ec1068e6b15c613e2a90a78f79d15935 | [
"Apache-2.0"
] | 19 | 2021-07-29T03:14:38.000Z | 2022-03-01T06:03:14.000Z | server/openapi_server/controllers/text_date_annotation_controller.py | cascadianblue/phi-annotator | 0da6c102ec1068e6b15c613e2a90a78f79d15935 | [
"Apache-2.0"
] | null | null | null | import connexion
from openapi_server.annotator.phi_types import PhiType
from openapi_server.get_annotations import get_annotations
from openapi_server.models.error import Error # noqa: E501
from openapi_server.models.text_date_annotation_request import \
TextDateAnnotationRequest # noqa: E501
from openapi_server.... | 35.424242 | 70 | 0.707442 |
f702747b82118bbd64d8fc67a01e1f638cbb45dd | 26,042 | py | Python | src/transformersX/models/cutoffbert/modeling_cutoffbert.py | stevezheng23/fewshot_nlp_pt | aaca4658aaa48a5a45dfd7d5ee7282d7f7c74be2 | [
"Apache-2.0"
] | 2 | 2021-08-06T05:43:55.000Z | 2022-03-17T22:31:21.000Z | src/transformersX/models/cutoffbert/modeling_cutoffbert.py | stevezheng23/fewshot_nlp_pt | aaca4658aaa48a5a45dfd7d5ee7282d7f7c74be2 | [
"Apache-2.0"
] | null | null | null | src/transformersX/models/cutoffbert/modeling_cutoffbert.py | stevezheng23/fewshot_nlp_pt | aaca4658aaa48a5a45dfd7d5ee7282d7f7c74be2 | [
"Apache-2.0"
] | null | null | null | # coding=utf-8
# Copyright 2018 The Google AI Language Team Authors and The HuggingFace Inc. team.
# Copyright (c) 2018, NVIDIA CORPORATION. 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 cop... | 44.9 | 213 | 0.672183 |
f7028f059677a83cf6bbecfd7df23260f585b48f | 785 | py | Python | sdk/media/azure-mgmt-media/azure/mgmt/media/aio/__init__.py | vincenttran-msft/azure-sdk-for-python | 348b56f9f03eeb3f7b502eed51daf494ffff874d | [
"MIT"
] | 1 | 2022-02-01T18:50:12.000Z | 2022-02-01T18:50:12.000Z | sdk/media/azure-mgmt-media/azure/mgmt/media/aio/__init__.py | vincenttran-msft/azure-sdk-for-python | 348b56f9f03eeb3f7b502eed51daf494ffff874d | [
"MIT"
] | null | null | null | sdk/media/azure-mgmt-media/azure/mgmt/media/aio/__init__.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 ... | 49.0625 | 114 | 0.636943 |
f702939c992f164058c986345c72844ea2c3df0a | 2,852 | py | Python | tests/data_tests/writer_tests/json_writer_test.py | alueschow/polymatheia | e46a38b3686139bbab3a2fcfaa914d4ca938654e | [
"MIT"
] | 3 | 2020-09-15T15:15:34.000Z | 2021-06-15T10:35:07.000Z | tests/data_tests/writer_tests/json_writer_test.py | alueschow/polymatheia | e46a38b3686139bbab3a2fcfaa914d4ca938654e | [
"MIT"
] | 7 | 2020-09-03T12:53:34.000Z | 2020-10-05T09:14:29.000Z | tests/data_tests/writer_tests/json_writer_test.py | alueschow/polymatheia | e46a38b3686139bbab3a2fcfaa914d4ca938654e | [
"MIT"
] | 2 | 2020-10-13T09:12:21.000Z | 2021-04-15T14:19:06.000Z | """Tests for the :mod:`~polymatheia.data.writer` package."""
import json
import os
from shutil import rmtree
from polymatheia.data import NavigableDict
from polymatheia.data.writer import JSONWriter
DOCUMENTS = [NavigableDict(r) for r in [
{
'id': '1',
'name': {
'first': 'A',
... | 31.688889 | 68 | 0.471599 |
f702a1da97b07980eb0080e9eb0cd536cdc7c88d | 28,785 | py | Python | python/ray/tests/test_runtime_env.py | RaphaelCS/ray | 5f4d9085d2452186bff563fb2856e643c4c82095 | [
"Apache-2.0"
] | 1 | 2022-02-24T02:38:04.000Z | 2022-02-24T02:38:04.000Z | python/ray/tests/test_runtime_env.py | swag1ong/ray | fdbeef604692aa308973988b32405ec0d70f9f40 | [
"Apache-2.0"
] | null | null | null | python/ray/tests/test_runtime_env.py | swag1ong/ray | fdbeef604692aa308973988b32405ec0d70f9f40 | [
"Apache-2.0"
] | null | null | null | import os
import pytest
import sys
import random
import tempfile
import requests
from pathlib import Path
import ray
from ray.test_utils import (run_string_as_driver,
run_string_as_driver_nonblocking)
from ray._private.utils import (get_wheel_filename, get_master_wheel_url,
... | 35.537037 | 79 | 0.640021 |
f7030d07bc7c0ce56ea130285e2eff935e0bf461 | 30 | py | Python | anchor/__init__.py | forest-snow/anchor-topic | ad947f2ff6aefc28394531fa74ba3e94e5a01fc2 | [
"MIT"
] | 13 | 2019-02-14T15:55:55.000Z | 2022-03-03T01:01:28.000Z | anchor/__init__.py | gkaramanolakis/anchor-topic | e1637fa3965bfe14d8a5241b070c675bcdf4df18 | [
"MIT"
] | 1 | 2020-11-12T22:49:16.000Z | 2020-11-12T22:49:16.000Z | anchor/__init__.py | gkaramanolakis/anchor-topic | e1637fa3965bfe14d8a5241b070c675bcdf4df18 | [
"MIT"
] | 2 | 2019-02-14T15:26:56.000Z | 2021-08-21T02:37:53.000Z | import anchor
name = 'anchor' | 10 | 15 | 0.733333 |
f7031222207e58ab6b118aabf23323dbda72761a | 1,391 | py | Python | svhn/evaluate_calibration.py | mvaldenegro/paper-subensembles-image-classification | cc3a6567b1de82b9bfb1612ad8d0e73cdd7ae09b | [
"BSD-3-Clause"
] | 5 | 2020-06-04T19:54:29.000Z | 2021-12-13T06:19:48.000Z | svhn/evaluate_calibration.py | mvaldenegro/paper-subensembles-image-classification | cc3a6567b1de82b9bfb1612ad8d0e73cdd7ae09b | [
"BSD-3-Clause"
] | null | null | null | svhn/evaluate_calibration.py | mvaldenegro/paper-subensembles-image-classification | cc3a6567b1de82b9bfb1612ad8d0e73cdd7ae09b | [
"BSD-3-Clause"
] | null | null | null | import numpy as np
import h5py
import pandas as pd
from svhn_io import load_svhn
from keras_uncertainty.utils import classifier_calibration_curve, classifier_calibration_error
EPSILON = 1e-10
def load_hdf5_data(filename):
inp = h5py.File(filename, "r")
preds = inp["preds"][...]
inp.close()
return p... | 33.119048 | 104 | 0.716751 |
f70332380c19749fdaaa89b3db41948706f18fba | 228 | py | Python | main.py | ConnorDoesDev/cozmo | dc2e4574d056b6e61e1e7042c3b32d7e0d00f055 | [
"CC0-1.0"
] | null | null | null | main.py | ConnorDoesDev/cozmo | dc2e4574d056b6e61e1e7042c3b32d7e0d00f055 | [
"CC0-1.0"
] | null | null | null | main.py | ConnorDoesDev/cozmo | dc2e4574d056b6e61e1e7042c3b32d7e0d00f055 | [
"CC0-1.0"
] | null | null | null | import cozmo
name = input("What is your name? ")
def cozmo_program(robot: cozmo.robot.Robot):
robot.say_text(
f"Hi! My name is Cozmo. How are you, {name}?").wait_for_completed()
cozmo.run_program(cozmo_program)
| 19 | 75 | 0.697368 |
f7037afae16524014eb92d458ac6b7aedaa8b9b9 | 1,107 | py | Python | porcupine/__init__.py | Akuli/editor | cf98c538e75a07d825f9066e25a3752fdf7c3c29 | [
"MIT"
] | 1 | 2021-07-28T10:09:26.000Z | 2021-07-28T10:09:26.000Z | porcupine/__init__.py | Akuli/editor | cf98c538e75a07d825f9066e25a3752fdf7c3c29 | [
"MIT"
] | null | null | null | porcupine/__init__.py | Akuli/editor | cf98c538e75a07d825f9066e25a3752fdf7c3c29 | [
"MIT"
] | null | null | null | """Porcupine is a simple editor.
You are probably reading this because you want to learn how Porcupine
works or write fun plugins for it. I recommend getting started with the
plugin API documentation:
https://akuli.github.io/porcupine/
"""
import sys
import appdirs
version_info = (0, 99, 2) # this is updated ... | 29.918919 | 83 | 0.775068 |
f703a7594603428c46c23789bb1ed339b09979a3 | 1,136 | py | Python | kubi_ecs_logger/models/root_schema.py | kumina/kubi_ecs_logger | 64d9519e0759a24253a4edc53e0c024675033d1c | [
"BSD-3-Clause"
] | 6 | 2019-12-15T12:47:06.000Z | 2022-01-11T08:54:58.000Z | kubi_ecs_logger/models/root_schema.py | kumina/kubi_ecs_logger | 64d9519e0759a24253a4edc53e0c024675033d1c | [
"BSD-3-Clause"
] | null | null | null | kubi_ecs_logger/models/root_schema.py | kumina/kubi_ecs_logger | 64d9519e0759a24253a4edc53e0c024675033d1c | [
"BSD-3-Clause"
] | null | null | null | """
TODO: Add doc what this file is doing
"""
from marshmallow import Schema, post_dump
class RootSchema(Schema):
SKIP_VALUES = [None]
@post_dump
def remove_skip_values(self, data, many, **kwargs):
return {
key: value for key, value in data.items()
if value not in self.SKI... | 32.457143 | 66 | 0.553697 |
f703c343b85bbcb32c648a5f8668d2512894a13a | 2,586 | py | Python | IMLearn/learners/regressors/polynomial_fitting.py | RotemBadash/IML.HUJI | 2b20d074c159123f61b321a7e84312ab82400949 | [
"MIT"
] | null | null | null | IMLearn/learners/regressors/polynomial_fitting.py | RotemBadash/IML.HUJI | 2b20d074c159123f61b321a7e84312ab82400949 | [
"MIT"
] | null | null | null | IMLearn/learners/regressors/polynomial_fitting.py | RotemBadash/IML.HUJI | 2b20d074c159123f61b321a7e84312ab82400949 | [
"MIT"
] | null | null | null | from __future__ import annotations
from typing import NoReturn
from . import LinearRegression
from ...base import BaseEstimator
import numpy as np
class PolynomialFitting(BaseEstimator):
"""
Polynomial Fitting using Least Squares estimation
"""
def __init__(self, k: int) -> PolynomialFitting:
... | 28.108696 | 68 | 0.5785 |
f703c645aa7c72fe4e04cdbf60f8a8cc84e7b617 | 1,238 | py | Python | alipay/aop/api/domain/PriceInformation.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/domain/PriceInformation.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/domain/PriceInformation.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.constant.ParamConstants import *
class PriceInformation(object):
def __init__(self):
self._amount = None
self._type = None
@property
def amount(self):
return self._amount
@amount.setter
def am... | 22.107143 | 63 | 0.53958 |
f703ed2aa1c7638b37cd9459328cc99a0a5f16f3 | 34,077 | py | Python | main.py | RedaLegzali/mr-driller | c944b10ff17ece1445b55cf3b44a4aca411dcc0d | [
"MIT"
] | null | null | null | main.py | RedaLegzali/mr-driller | c944b10ff17ece1445b55cf3b44a4aca411dcc0d | [
"MIT"
] | null | null | null | main.py | RedaLegzali/mr-driller | c944b10ff17ece1445b55cf3b44a4aca411dcc0d | [
"MIT"
] | null | null | null | import pygame, time
from pygame.locals import *
from random import *
pygame.init()
# Variables Pygame
white = (255, 255, 255)
crystal = (162,162,162)
black = (0, 0, 0)
rose = (236,28,115)
red = pygame.Color('#ff0000')
green = pygame.Color('#00ff62')
blue = pygame.Color('#0026ff')
yellow = (222,207,... | 28.186104 | 158 | 0.601726 |
f703edfd294b009350efb017aa9f635fff7cb725 | 30,396 | py | Python | treetopper/stand.py | zacharybeebe/treetopper | 9302d9c482eb2209c516c79100be98614666f8c1 | [
"MIT"
] | null | null | null | treetopper/stand.py | zacharybeebe/treetopper | 9302d9c482eb2209c516c79100be98614666f8c1 | [
"MIT"
] | null | null | null | treetopper/stand.py | zacharybeebe/treetopper | 9302d9c482eb2209c516c79100be98614666f8c1 | [
"MIT"
] | null | null | null | from os import (
startfile,
getcwd
)
from os.path import join
from io import BytesIO
from csv import (
writer,
excel
)
from openpyxl import (
Workbook,
load_workbook
)
from statistics import (
mean,
variance,
stdev
)
from treetopper.plot import Plot
from treetopper.timber import (
... | 41.46794 | 150 | 0.565469 |
f703ee65ebc49d049639276ee2bcc8f8f67095eb | 992 | py | Python | pyclopedia/p01_beginner/p03_data_structure/p02_list/p02_slice_operator.py | MacHu-GWU/pyclopedia-project | c6ee156eb40bc5a4ac5f51aa735b6fd004cb68ee | [
"MIT"
] | null | null | null | pyclopedia/p01_beginner/p03_data_structure/p02_list/p02_slice_operator.py | MacHu-GWU/pyclopedia-project | c6ee156eb40bc5a4ac5f51aa735b6fd004cb68ee | [
"MIT"
] | null | null | null | pyclopedia/p01_beginner/p03_data_structure/p02_list/p02_slice_operator.py | MacHu-GWU/pyclopedia-project | c6ee156eb40bc5a4ac5f51aa735b6fd004cb68ee | [
"MIT"
] | null | null | null | #!/usr/bin/env python
# -*- coding: utf-8 -*-
def example1():
"""Slice operator.
seq[::stride] # [seq[0], seq[stride], ..., seq[-1] ]
seq[low::stride] # [seq[low], seq[low+stride], ..., seq[-1] ]
seq[:high:stride] # [seq[0], seq[stride], ..., seq[high-1]]
seq[lo... | 29.176471 | 73 | 0.519153 |
f7040c6cca5a86749407c6d12a090a8e1288ff52 | 6,990 | py | Python | src/teleop_tools/mouse_teleop/scripts/mouse_teleop.py | aljanabim/svea | 37d27089237af3777456d7664473ffb811dabf33 | [
"MIT"
] | 5 | 2021-06-25T13:09:30.000Z | 2022-03-15T11:33:07.000Z | src/teleop_tools/mouse_teleop/scripts/mouse_teleop.py | aljanabim/svea | 37d27089237af3777456d7664473ffb811dabf33 | [
"MIT"
] | null | null | null | src/teleop_tools/mouse_teleop/scripts/mouse_teleop.py | aljanabim/svea | 37d27089237af3777456d7664473ffb811dabf33 | [
"MIT"
] | 17 | 2019-09-29T10:22:41.000Z | 2021-04-08T12:38:37.000Z | #! /usr/bin/env python
# -*- coding: utf-8 -*-
#
# Copyright (c) 2015 Enrique Fernandez
# Released under the BSD License.
#
# Authors:
# * Enrique Fernandez
import Tkinter
import rospy
from geometry_msgs.msg import Twist, Vector3
import numpy
class MouseTeleop():
def __init__(self):
# Retrieve params... | 28.884298 | 78 | 0.572246 |
f704533cb05012bfc523241ab664a84ebc5b8dad | 7,054 | py | Python | obsolete/reports/pipeline_capseq/trackers/macs_replicated_intervals.py | kevinrue/cgat-flow | 02b5a1867253c2f6fd6b4f3763e0299115378913 | [
"MIT"
] | 11 | 2018-09-07T11:33:23.000Z | 2022-01-07T12:16:11.000Z | obsolete/reports/pipeline_capseq/trackers/macs_replicated_intervals.py | kevinrue/cgat-flow | 02b5a1867253c2f6fd6b4f3763e0299115378913 | [
"MIT"
] | 102 | 2018-03-22T15:35:26.000Z | 2022-03-23T17:46:16.000Z | obsolete/reports/pipeline_capseq/trackers/macs_replicated_intervals.py | kevinrue/cgat-flow | 02b5a1867253c2f6fd6b4f3763e0299115378913 | [
"MIT"
] | 7 | 2018-06-11T15:01:41.000Z | 2020-03-31T09:29:33.000Z | import os
import sys
import re
import types
import itertools
import matplotlib.pyplot as plt
import numpy
import scipy.stats
import numpy.ma
import Stats
import Histogram
from cgatReport.Tracker import *
from cpgReport import *
##########################################################################
class replica... | 38.546448 | 164 | 0.568897 |
f7046f8691fd007d37014cd2211e82ad6141f5c5 | 1,700 | py | Python | src/Products/PluginIndexes/util.py | icemac/Products.ZCatalog | 697719cc0f1a016ab7b874237271d3e11693e78b | [
"ZPL-2.1"
] | null | null | null | src/Products/PluginIndexes/util.py | icemac/Products.ZCatalog | 697719cc0f1a016ab7b874237271d3e11693e78b | [
"ZPL-2.1"
] | 1 | 2021-02-10T16:05:38.000Z | 2021-02-10T16:05:38.000Z | src/Products/PluginIndexes/util.py | icemac/Products.ZCatalog | 697719cc0f1a016ab7b874237271d3e11693e78b | [
"ZPL-2.1"
] | 1 | 2021-02-10T15:34:58.000Z | 2021-02-10T15:34:58.000Z | ##############################################################################
#
# Copyright (c) 2002 Zope Foundation and Contributors.
#
# This software is subject to the provisions of the Zope Public License,
# Version 2.1 (ZPL). A copy of the ZPL should accompany this distribution.
# THIS SOFTWARE IS PROVIDED "AS I... | 28.813559 | 78 | 0.606471 |
f704acb27652fac4c53df6d424b7bb033879e704 | 15,975 | py | Python | CollisionAvoidanceMonitor/main.py | GustavLero/EPICS-inst_servers | 4bcdd6a80f1d9e074de3f0f7c66968d506981988 | [
"BSD-3-Clause"
] | null | null | null | CollisionAvoidanceMonitor/main.py | GustavLero/EPICS-inst_servers | 4bcdd6a80f1d9e074de3f0f7c66968d506981988 | [
"BSD-3-Clause"
] | null | null | null | CollisionAvoidanceMonitor/main.py | GustavLero/EPICS-inst_servers | 4bcdd6a80f1d9e074de3f0f7c66968d506981988 | [
"BSD-3-Clause"
] | null | null | null | import sys
import os
import ode
import logging
import threading
from time import sleep, time
from genie_python.genie_startup import *
import pv_server
import render
from configurations import config_zoom as config
from collide import collide, CollisionDetector
from geometry import GeometryBox
from move import move_all... | 33.560924 | 119 | 0.587856 |
f704c9482c2b74b28c4faceee71e9f4dcabea3a3 | 316 | py | Python | johann/__init__.py | lobotmcj/johann | c188c6f31446907a5d6a237191540856f02a91a0 | [
"BSD-3-Clause"
] | 11 | 2020-08-27T18:33:09.000Z | 2022-03-18T03:09:03.000Z | johann/__init__.py | johannsdg/johann | c188c6f31446907a5d6a237191540856f02a91a0 | [
"BSD-3-Clause"
] | null | null | null | johann/__init__.py | johannsdg/johann | c188c6f31446907a5d6a237191540856f02a91a0 | [
"BSD-3-Clause"
] | 2 | 2020-09-04T03:07:35.000Z | 2020-11-06T19:08:03.000Z | # Copyright (c) 2019-present, The Johann Authors. All Rights Reserved.
# Use of this source code is governed by a BSD-3-clause license that can
# be found in the LICENSE file. See the AUTHORS file for names of contributors.
"""Johann, lightweight and flexible scenario orchestration"""
__version__ = "0.3.0-alpha"
| 39.5 | 79 | 0.759494 |
f704ccdab8daddc07843c80260a004c3a4b58cc3 | 40,273 | py | Python | tests/unit_test/action/action_test.py | Anitej/kairon | 61d6bd7f230a744303abab42e3b54b0381fee7da | [
"Apache-2.0"
] | null | null | null | tests/unit_test/action/action_test.py | Anitej/kairon | 61d6bd7f230a744303abab42e3b54b0381fee7da | [
"Apache-2.0"
] | null | null | null | tests/unit_test/action/action_test.py | Anitej/kairon | 61d6bd7f230a744303abab42e3b54b0381fee7da | [
"Apache-2.0"
] | null | null | null | import json
import os
os.environ["system_file"] = "./tests/testing_data/system.yaml"
from typing import Dict, Text, Any, List
import pytest
import responses
from mongoengine import connect, disconnect
from rasa_sdk import Tracker
from rasa_sdk.executor import CollectingDispatcher
from kairon.action_server.data_object... | 45.098544 | 196 | 0.596653 |
f704f458109bda2f6012d3166ddc6ff6686bf0f4 | 12,306 | py | Python | ABLIRC/bin/Basic/Distance2XXX/reads_or_peaks_distribution_relative2xxx.py | ablifedev/ABLIRC | 875278b748a8e22ada2c76c3c76dbf970be4a6a4 | [
"MIT"
] | 1 | 2020-02-25T13:08:20.000Z | 2020-02-25T13:08:20.000Z | ABLIRC/bin/Basic/Distance2XXX/reads_or_peaks_distribution_relative2xxx.py | ablifedev/ABLIRC | 875278b748a8e22ada2c76c3c76dbf970be4a6a4 | [
"MIT"
] | 1 | 2020-02-25T13:16:03.000Z | 2020-02-25T13:16:03.000Z | ABLIRC/bin/Basic/Distance2XXX/reads_or_peaks_distribution_relative2xxx.py | ablifedev/ABLIRC | 875278b748a8e22ada2c76c3c76dbf970be4a6a4 | [
"MIT"
] | null | null | null | #!/usr/bin/env python2.7
# -*- coding: utf-8 -*-
####################################################################################
### Copyright (C) 2015-2019 by ABLIFE
####################################################################################
#########################################################... | 33.715068 | 232 | 0.42719 |
f7050c7044587c7a03a7e83f1453f954e296f2ad | 49,770 | py | Python | sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2017_03_30/aio/operations/_virtual_machine_scale_set_vms_operations.py | vincenttran-msft/azure-sdk-for-python | 348b56f9f03eeb3f7b502eed51daf494ffff874d | [
"MIT"
] | 1 | 2021-09-07T18:39:05.000Z | 2021-09-07T18:39:05.000Z | sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2017_03_30/aio/operations/_virtual_machine_scale_set_vms_operations.py | vincenttran-msft/azure-sdk-for-python | 348b56f9f03eeb3f7b502eed51daf494ffff874d | [
"MIT"
] | null | null | null | sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2017_03_30/aio/operations/_virtual_machine_scale_set_vms_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 ... | 47.445186 | 361 | 0.678802 |
f705116959898fd81eae2168f0c9e139ab6337b3 | 7,603 | py | Python | cogs/calculator.py | MerciDvor/modbot | f1a11eaa8e88d297ee19ca37aacc41489c0d0350 | [
"MIT"
] | 11 | 2019-01-10T22:09:31.000Z | 2021-12-14T05:26:10.000Z | cogs/calculator.py | MerciDvor/modbot | f1a11eaa8e88d297ee19ca37aacc41489c0d0350 | [
"MIT"
] | 5 | 2019-01-10T07:20:19.000Z | 2021-04-22T00:57:34.000Z | cogs/calculator.py | MerciDvor/modbot | f1a11eaa8e88d297ee19ca37aacc41489c0d0350 | [
"MIT"
] | 34 | 2019-01-10T05:49:29.000Z | 2022-02-11T14:04:54.000Z | from __future__ import division
import discord, math, operator
from discord.ext import commands
from pyparsing import (Literal,CaselessLiteral,Word,Combine,Group,Optional,
ZeroOrMore,Forward,nums,alphas,oneOf)
__author__='Paul McGuire'
__version__ = '$Revision: 0.0 $'
__date__ = '$Date: 2009-03-20... | 41.320652 | 123 | 0.544916 |
f7053ab01509c24ced03b369dae6ac255d9ca094 | 4,288 | py | Python | dp_conceptual_search/api/search/routes.py | flaxandteal/dp-conceptual-search | 16c6383a61ba5b7069337c2626a0dc243bfe9d35 | [
"MIT"
] | null | null | null | dp_conceptual_search/api/search/routes.py | flaxandteal/dp-conceptual-search | 16c6383a61ba5b7069337c2626a0dc243bfe9d35 | [
"MIT"
] | null | null | null | dp_conceptual_search/api/search/routes.py | flaxandteal/dp-conceptual-search | 16c6383a61ba5b7069337c2626a0dc243bfe9d35 | [
"MIT"
] | null | null | null | """
This file contains all routes for the /search API
"""
from sanic import Blueprint
from sanic.response import HTTPResponse
from dp4py_sanic.api.response.json_response import json
from dp_conceptual_search.config import CONFIG
from dp_conceptual_search.api.request import ONSRequest
from dp_conceptual_search.ons.sea... | 34.304 | 90 | 0.752332 |
f7053cb96e078cbb641803774c57e3d6c47395cc | 5,903 | py | Python | src/_repobee/disthelpers.py | tohanss/repobee | cf5eb1e83e62c20bbca00c8ad9f798a612e1664f | [
"MIT"
] | null | null | null | src/_repobee/disthelpers.py | tohanss/repobee | cf5eb1e83e62c20bbca00c8ad9f798a612e1664f | [
"MIT"
] | null | null | null | src/_repobee/disthelpers.py | tohanss/repobee | cf5eb1e83e62c20bbca00c8ad9f798a612e1664f | [
"MIT"
] | null | null | null | """Helper functions for the distribution."""
import importlib
import json
import pathlib
import subprocess
import sys
import types
import os
from typing import Optional, List
import requests
import repobee_plug as plug
import _repobee.ext
from _repobee import distinfo
from _repobee import plugin
class DependencyRe... | 32.256831 | 79 | 0.671015 |
f705402b1b08aa6730ba341cc50c68502d1b99d6 | 17,851 | py | Python | tests/test_scheduler.py | atlas555/pyspider | 8f71e0e8d67f03a728cd5ea48fa931f6415e1e10 | [
"Apache-2.0"
] | 5 | 2015-03-31T13:25:25.000Z | 2016-03-14T11:17:02.000Z | tests/test_scheduler.py | e-dorigatti/pyspider | 8f71e0e8d67f03a728cd5ea48fa931f6415e1e10 | [
"Apache-2.0"
] | null | null | null | tests/test_scheduler.py | e-dorigatti/pyspider | 8f71e0e8d67f03a728cd5ea48fa931f6415e1e10 | [
"Apache-2.0"
] | 1 | 2016-02-17T23:12:47.000Z | 2016-02-17T23:12:47.000Z | #!/usr/bin/env python
# -*- encoding: utf-8 -*-
# vim: set et sw=4 ts=4 sts=4 ff=unix fenc=utf8:
# Author: Binux<i@binux.me>
# http://binux.me
# Created on 2014-02-08 22:37:13
import os
import time
import shutil
import unittest2 as unittest
import logging
import logging.config
logging.config.fileConfig("pyspid... | 30.671821 | 99 | 0.503893 |
f7059649cace577ed483d9e7b5ab728bae8e0607 | 12,268 | py | Python | VMBackup/main/PluginHost.py | jamvar/azure-linux-extensions | 66610daae2ef09f7920d9c4aa2e99a3035fe76a6 | [
"Apache-2.0"
] | 2 | 2021-11-02T00:16:29.000Z | 2022-02-17T12:08:42.000Z | VMBackup/main/PluginHost.py | jamvar/azure-linux-extensions | 66610daae2ef09f7920d9c4aa2e99a3035fe76a6 | [
"Apache-2.0"
] | 3 | 2019-07-29T20:25:09.000Z | 2019-08-13T00:00:45.000Z | VMBackup/main/PluginHost.py | ChrisCoe/azure-linux-extensions | 1ca6fce15eca3ddefc33651b094c9a4b4e52fa31 | [
"Apache-2.0"
] | 1 | 2017-07-17T18:52:10.000Z | 2017-07-17T18:52:10.000Z | import time
import sys
import os
import threading
try:
import ConfigParser as ConfigParsers
except ImportError:
import configparser as ConfigParsers
from common import CommonVariables
from pwd import getpwuid
from stat import *
import traceback
# [pre_post]
# "timeout" : (in seconds),
#
# ....... | 43.814286 | 175 | 0.623329 |
f705c09c479088d7f96725e5df722801a0715965 | 5,653 | py | Python | ibmsecurity/isam/base/network/felb/services/servers.py | ibm-enio/ibmsecurity | 81f989678642c3b6a49b2a3fbb5d9ca98804ef17 | [
"Apache-2.0"
] | 2 | 2019-12-05T13:51:10.000Z | 2019-12-20T08:02:35.000Z | ibmsecurity/isam/base/network/felb/services/servers.py | ibm-enio/ibmsecurity | 81f989678642c3b6a49b2a3fbb5d9ca98804ef17 | [
"Apache-2.0"
] | null | null | null | ibmsecurity/isam/base/network/felb/services/servers.py | ibm-enio/ibmsecurity | 81f989678642c3b6a49b2a3fbb5d9ca98804ef17 | [
"Apache-2.0"
] | 1 | 2020-04-03T09:30:01.000Z | 2020-04-03T09:30:01.000Z | import ibmsecurity.utilities.tools
import logging
logger = logging.getLogger(__name__)
module_uri = "/isam/felb/configuration/services/"
requires_modulers = None
requires_version = None
def add(isamAppliance, service_name, address, active, port, weight, secure, ssllabel, check_mode=False, force=False):
"""
... | 38.195946 | 120 | 0.552096 |
f705e1ac415f1541823e90e5a27d3686709724a5 | 370 | py | Python | cryptoxlib/clients/aax/exceptions.py | PetrZufan/cryptoxlib-aio | 8fbb817ee7a7a88693804e24877863370d1d53c7 | [
"MIT"
] | 90 | 2020-04-09T18:34:49.000Z | 2022-03-09T14:29:32.000Z | cryptoxlib/clients/aax/exceptions.py | PetrZufan/cryptoxlib-aio | 8fbb817ee7a7a88693804e24877863370d1d53c7 | [
"MIT"
] | 44 | 2020-04-03T17:02:20.000Z | 2022-01-29T14:51:51.000Z | cryptoxlib/clients/aax/exceptions.py | PetrZufan/cryptoxlib-aio | 8fbb817ee7a7a88693804e24877863370d1d53c7 | [
"MIT"
] | 28 | 2020-04-25T21:34:53.000Z | 2022-03-31T07:20:07.000Z | from typing import Optional
from cryptoxlib.exceptions import CryptoXLibException
class AAXException(CryptoXLibException):
pass
class AAXRestException(AAXException):
def __init__(self, status_code: int, body: Optional[dict]):
super().__init__(f"Rest API exception: status [{status_code}], response [{body}]")
... | 24.666667 | 84 | 0.778378 |
f705f177770c12c0106c8231abaa004e1def0c23 | 1,728 | py | Python | src/simulator/workload/schemes.py | pskopnik/htc-cache-simulator | ee502db3f1c2b99ffe05ee609a18069b583798da | [
"MIT"
] | 1 | 2020-12-15T16:09:31.000Z | 2020-12-15T16:09:31.000Z | src/simulator/workload/schemes.py | pskopnik/htc-cache-system-simulator | ee502db3f1c2b99ffe05ee609a18069b583798da | [
"MIT"
] | null | null | null | src/simulator/workload/schemes.py | pskopnik/htc-cache-system-simulator | ee502db3f1c2b99ffe05ee609a18069b583798da | [
"MIT"
] | null | null | null | from typing import List
from . import AccessRequest, FileID, PartSpec, PartsGenerator
class NonCorrelatedSchemesGenerator(object):
def __init__(self, number: int, fraction: float) -> None:
self._number: int = number
self._fraction: float = fraction
self._parts_number: int = 2 ** number
@property
def number... | 30.315789 | 87 | 0.712963 |
f705f391ab810c9189b100ed39229631d36e2a29 | 213,437 | py | Python | core/domain/exp_domain_test.py | yashdusing/oppia | c0218e13ba29f9bc25cc5ec6f7f13108ee4fdb9a | [
"Apache-2.0"
] | null | null | null | core/domain/exp_domain_test.py | yashdusing/oppia | c0218e13ba29f9bc25cc5ec6f7f13108ee4fdb9a | [
"Apache-2.0"
] | null | null | null | core/domain/exp_domain_test.py | yashdusing/oppia | c0218e13ba29f9bc25cc5ec6f7f13108ee4fdb9a | [
"Apache-2.0"
] | null | null | null | # coding: utf-8
#
# Copyright 2014 The Oppia 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 requi... | 28.745724 | 135 | 0.603415 |
f7061506fa2cce695f12947d1688e170169e08f4 | 8,490 | py | Python | src/magql/filter.py | ruoyangW-dev/magql | a7b6a217495a785afcac12c350cb234ff60f265e | [
"BSD-3-Clause"
] | 25 | 2020-02-13T21:25:08.000Z | 2021-11-29T07:19:16.000Z | src/magql/filter.py | ruoyangW-dev/magql | a7b6a217495a785afcac12c350cb234ff60f265e | [
"BSD-3-Clause"
] | 40 | 2020-02-14T00:54:06.000Z | 2021-07-28T18:45:32.000Z | src/magql/filter.py | ruoyangW-dev/magql | a7b6a217495a785afcac12c350cb234ff60f265e | [
"BSD-3-Clause"
] | 2 | 2021-06-07T21:50:46.000Z | 2021-12-21T14:47:31.000Z | from __future__ import annotations
import typing as t
from functools import singledispatch
from inflection import underscore
from sqlalchemy import Date
from sqlalchemy import DateTime
from sqlalchemy import Text
from sqlalchemy import Time
from sqlalchemy import Unicode
from sqlalchemy import UnicodeText
from sqlalc... | 30.430108 | 88 | 0.610718 |
f70621467fab8e1d22e5d59550b5a4137d4f315b | 876 | py | Python | chapter-7/blog/asgi.py | PacktPublishing/Real-time-Django | 07480a089fc0880d752d4ee5740ae6587de93aee | [
"MIT"
] | null | null | null | chapter-7/blog/asgi.py | PacktPublishing/Real-time-Django | 07480a089fc0880d752d4ee5740ae6587de93aee | [
"MIT"
] | null | null | null | chapter-7/blog/asgi.py | PacktPublishing/Real-time-Django | 07480a089fc0880d752d4ee5740ae6587de93aee | [
"MIT"
] | null | null | null | # blog/asgi.py
import os
import django
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "blog.settings")
from django.conf import settings
django.setup()
from django.core.asgi import get_asgi_application
from channels.security.websocket import OriginValidator
from channels.auth import AuthMiddlewareStack
from channels.r... | 29.2 | 73 | 0.700913 |
f706325e5c227c033d4565561ec304b5bb74a652 | 8,144 | py | Python | gui/sfbrowser/sfbrowser.py | tjd2002/spikeforest2 | 2e393564b858b2995aa2ccccd9bd73065681b5de | [
"Apache-2.0"
] | null | null | null | gui/sfbrowser/sfbrowser.py | tjd2002/spikeforest2 | 2e393564b858b2995aa2ccccd9bd73065681b5de | [
"Apache-2.0"
] | null | null | null | gui/sfbrowser/sfbrowser.py | tjd2002/spikeforest2 | 2e393564b858b2995aa2ccccd9bd73065681b5de | [
"Apache-2.0"
] | null | null | null | import vdomr as vd
import spikeforest as sf
from cairio import client as ca
import pandas as pd
import numpy as np
from matplotlib import pyplot as plt
class AccuracyPlot(vd.components.Pyplot):
def __init__(self, snrs, accuracies):
vd.components.Pyplot.__init__(self)
self._snrs = snrs
self... | 33.792531 | 92 | 0.55943 |
f7063d183d1a4b14e905709671cb83a6a4ba78be | 964 | py | Python | app/user/views.py | anilbpoyraz/recipe-app-api | 947ff8c54b0abeb9a2a70825bd5bfe74944ccde3 | [
"MIT"
] | null | null | null | app/user/views.py | anilbpoyraz/recipe-app-api | 947ff8c54b0abeb9a2a70825bd5bfe74944ccde3 | [
"MIT"
] | null | null | null | app/user/views.py | anilbpoyraz/recipe-app-api | 947ff8c54b0abeb9a2a70825bd5bfe74944ccde3 | [
"MIT"
] | null | null | null | from django.shortcuts import render
from rest_framework import generics, authentication, permissions
from rest_framework.authtoken.views import ObtainAuthToken
from rest_framework.settings import api_settings
from user.serializers import UserSerializer, AuthTokenSerializer
class CreateUserView(generics.CreateAPIVie... | 32.133333 | 66 | 0.790456 |
f7063f6725e9115c25a43134ff0307df025c8b2a | 14,639 | py | Python | lib/datasets/adas.py | LeftThink/pytorch-lighthead | 5f4bf1c87b9be77bf7242ad89900239a9d66914c | [
"MIT"
] | null | null | null | lib/datasets/adas.py | LeftThink/pytorch-lighthead | 5f4bf1c87b9be77bf7242ad89900239a9d66914c | [
"MIT"
] | null | null | null | lib/datasets/adas.py | LeftThink/pytorch-lighthead | 5f4bf1c87b9be77bf7242ad89900239a9d66914c | [
"MIT"
] | null | null | null | # coding: utf-8
# --------------------------------------------------------
# Fast R-CNN
# Copyright (c) 2015 Microsoft
# Licensed under The MIT License [see LICENSE for details]
# Written by Ross Girshick
# --------------------------------------------------------
from __future__ import print_function
import xml.dom.mi... | 38.523684 | 89 | 0.548398 |
f7065db5438bbe3dd6134673cfc14c67b2095dac | 29,176 | py | Python | tests/test_plugin.py | scartill/cmd2 | 1b4e1e25f84bcc800a5f369783c3c3448a42361e | [
"MIT"
] | 1 | 2021-07-06T23:59:46.000Z | 2021-07-06T23:59:46.000Z | tests/test_plugin.py | scartill/cmd2 | 1b4e1e25f84bcc800a5f369783c3c3448a42361e | [
"MIT"
] | null | null | null | tests/test_plugin.py | scartill/cmd2 | 1b4e1e25f84bcc800a5f369783c3c3448a42361e | [
"MIT"
] | null | null | null | # coding=utf-8
# flake8: noqa E302
"""
Test plugin infrastructure and hooks.
"""
import sys
import pytest
# Python 3.5 had some regressions in the unitest.mock module, so use 3rd party mock if available
try:
import mock
except ImportError:
from unittest import mock
import cmd2
from cmd2 import plugin
class... | 34.774732 | 136 | 0.717165 |
f70660ac38f411cd1d8a0396ef510a16bb61622b | 5,516 | py | Python | esperclient/models/inline_response2005.py | pallavigopi/esper-client-py | f7e71d3f25a5d91f35628b414e8abe9e6849d316 | [
"Apache-2.0"
] | null | null | null | esperclient/models/inline_response2005.py | pallavigopi/esper-client-py | f7e71d3f25a5d91f35628b414e8abe9e6849d316 | [
"Apache-2.0"
] | null | null | null | esperclient/models/inline_response2005.py | pallavigopi/esper-client-py | f7e71d3f25a5d91f35628b414e8abe9e6849d316 | [
"Apache-2.0"
] | null | null | null | # coding: utf-8
"""
ESPER API REFERENCE
OpenAPI spec version: 1.0.0
Contact: developer@esper.io
---------------------------------------------------------
Copyright 2019 Shoonya Enterprises Inc.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the Li... | 26.14218 | 80 | 0.581218 |
f706c0c3e8cc27ca3edb6a7b17a579cd796d7cc7 | 6,962 | py | Python | tests/test_integration.py | prototypefund/lazycluster | e6fbd69dbd73ec9bf101a502f25f7afdf0579f66 | [
"Apache-2.0"
] | 44 | 2019-08-07T12:01:07.000Z | 2021-09-02T16:50:51.000Z | tests/test_integration.py | prototypefund/lazycluster | e6fbd69dbd73ec9bf101a502f25f7afdf0579f66 | [
"Apache-2.0"
] | 9 | 2020-10-26T13:08:32.000Z | 2021-09-16T02:13:58.000Z | tests/test_integration.py | prototypefund/lazycluster | e6fbd69dbd73ec9bf101a502f25f7afdf0579f66 | [
"Apache-2.0"
] | 9 | 2019-09-18T07:52:09.000Z | 2022-02-11T13:48:19.000Z | import os
import re
import sys
import time
from subprocess import PIPE, run
from types import ModuleType
from typing import Union
import docker
import requests
import storm.__main__ as storm
from lazycluster import Runtime, RuntimeGroup, RuntimeManager, RuntimeTask
from .config import RUNTIME_DOCKER_IMAGE, RUNTIME_N... | 32.685446 | 195 | 0.657282 |
f706dc272c114b0f5868e62d1d68cbe7a0866c42 | 2,676 | py | Python | mplotlab/graphics/Navigation.py | DedeKite/wxPlotLab | 808d457aeb897ceb37535bcd11d15b65a0a14cd1 | [
"MIT"
] | 6 | 2016-03-21T18:44:23.000Z | 2021-05-16T19:07:02.000Z | mplotlab/graphics/Navigation.py | DedeKite/wxPlotLab | 808d457aeb897ceb37535bcd11d15b65a0a14cd1 | [
"MIT"
] | 1 | 2018-05-15T14:47:03.000Z | 2018-05-15T14:47:03.000Z | mplotlab/graphics/Navigation.py | astyl/mplotlab | 808d457aeb897ceb37535bcd11d15b65a0a14cd1 | [
"MIT"
] | 1 | 2016-01-29T12:38:20.000Z | 2016-01-29T12:38:20.000Z | # -*-coding:Utf-8 -*
from mplotlab import App
from matplotlib.backend_bases import NavigationToolbar2
import wx
class Cursors:
# this class is only used as a simple namespace
HAND, POINTER, SELECT_REGION, MOVE = list(range(4))
cursors = Cursors()
cursord = {
cursors.MOVE : wx.CURSOR_HAND,
... | 28.774194 | 69 | 0.554933 |
f706f78145d12ecc2b8193f93c65c8642b4557a3 | 374 | py | Python | autovivification.py | godontop/python-work | ea22e0df8b0b17605f5a434e556a388d1f75aa47 | [
"MIT"
] | null | null | null | autovivification.py | godontop/python-work | ea22e0df8b0b17605f5a434e556a388d1f75aa47 | [
"MIT"
] | null | null | null | autovivification.py | godontop/python-work | ea22e0df8b0b17605f5a434e556a388d1f75aa47 | [
"MIT"
] | null | null | null | class AutoVivification(dict):
"""Implementation of perl's autovivification."""
def __missing__(self, key):
value = self[key] = type(self)()
return value
weather = AutoVivification()
weather['china']['guangdong']['shenzhen'] = 'sunny'
weather['china']['hubei']['wuhan'] = 'sunny'
weather['USA'][... | 28.769231 | 53 | 0.65508 |
f70710e622e29b88ff546c1cea16be884932d06d | 7,825 | py | Python | tests/test_serverless.py | jpvowen/troposphere | 6a9efa7717db75905b846a9f3aafd092f55c7925 | [
"BSD-2-Clause"
] | 1 | 2021-02-14T15:18:12.000Z | 2021-02-14T15:18:12.000Z | tests/test_serverless.py | jpvowen/troposphere | 6a9efa7717db75905b846a9f3aafd092f55c7925 | [
"BSD-2-Clause"
] | null | null | null | tests/test_serverless.py | jpvowen/troposphere | 6a9efa7717db75905b846a9f3aafd092f55c7925 | [
"BSD-2-Clause"
] | 5 | 2020-05-10T13:50:32.000Z | 2021-09-09T09:06:54.000Z | import unittest
from troposphere import Tags, Template
from troposphere.s3 import Filter, Rules, S3Key
from troposphere.serverless import (
Api, DeadLetterQueue, DeploymentPreference, Function, FunctionForPackaging,
LayerVersion, S3Event, S3Location, SimpleTable,
)
class TestServerless(unittest.TestCase):
... | 28.046595 | 79 | 0.474121 |
f7071f677e4a2851bd5ef43d794f9ff207bdcbfa | 94 | py | Python | project_RL/linear_sarsa/__init__.py | Ronnypetson/gym-minigrid | 1f0a607160960f00b664130c756a4f3bab356752 | [
"Apache-2.0"
] | null | null | null | project_RL/linear_sarsa/__init__.py | Ronnypetson/gym-minigrid | 1f0a607160960f00b664130c756a4f3bab356752 | [
"Apache-2.0"
] | 2 | 2021-10-15T01:57:47.000Z | 2021-10-29T20:24:56.000Z | project_RL/linear_sarsa/__init__.py | Ronnypetson/gym-minigrid | 1f0a607160960f00b664130c756a4f3bab356752 | [
"Apache-2.0"
] | null | null | null | import project_RL.linear_sarsa.train
from project_RL.linear_sarsa.sarsa_lambda_agent import *
| 31.333333 | 56 | 0.882979 |
f7072282324b2c842adb0702a11c0bbc9e10dbfb | 3,821 | py | Python | Tutorials/MLADS-spring-2018/CNTK_distributed/CNTK_distributed.py | cvitolo/DataScienceVM | 97e1b780de572266dcdab89d443af55d5b930f42 | [
"MIT"
] | 165 | 2017-04-21T07:42:38.000Z | 2022-02-08T13:13:20.000Z | Tutorials/MLADS-spring-2018/CNTK_distributed/CNTK_distributed.py | cvitolo/DataScienceVM | 97e1b780de572266dcdab89d443af55d5b930f42 | [
"MIT"
] | 32 | 2017-08-14T16:50:23.000Z | 2021-06-29T09:27:01.000Z | Tutorials/MLADS-spring-2018/CNTK_distributed/CNTK_distributed.py | cvitolo/DataScienceVM | 97e1b780de572266dcdab89d443af55d5b930f42 | [
"MIT"
] | 106 | 2017-04-26T08:46:36.000Z | 2022-03-20T11:44:08.000Z | import numpy as np
import os
import sys
import cntk
from cntk.layers import Convolution2D, MaxPooling, Dense, Dropout
from utils import *
import argparse
from cntk.train.distributed import Communicator, mpi_communicator
# Hyperparams
EPOCHS = 1
BATCHSIZE = 64 * 4
LR = 0.01
MOMENTUM = 0.9
N_CLASSES = 10
def create_bas... | 35.71028 | 116 | 0.708715 |
f7072395412ad1d9fe5f43c10e8343cbe181879e | 926 | py | Python | config/settings.py | hadadiashkan/yousician | 99b8e6a6d04f0304fccbaef8ee5f423ac92b7b45 | [
"MIT"
] | null | null | null | config/settings.py | hadadiashkan/yousician | 99b8e6a6d04f0304fccbaef8ee5f423ac92b7b45 | [
"MIT"
] | null | null | null | config/settings.py | hadadiashkan/yousician | 99b8e6a6d04f0304fccbaef8ee5f423ac92b7b45 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
"""Application configuration.
Most configuration is set via environment variables.
For local development, use a .env file to set
environment variables.
"""
from os import path, urandom
class Config:
"""Application Configuration."""
from environs import Env
env = Env()
env.r... | 21.045455 | 68 | 0.631749 |
f7073889c5af752e055589ef6c34b11b55b8eee6 | 2,666 | py | Python | va_explorer/users/tests/test_validators.py | VA-Explorer/va_explorer | e43cfbff0ce5209c12134b7ac4ce439db6fc87a2 | [
"Apache-2.0"
] | null | null | null | va_explorer/users/tests/test_validators.py | VA-Explorer/va_explorer | e43cfbff0ce5209c12134b7ac4ce439db6fc87a2 | [
"Apache-2.0"
] | 125 | 2020-10-07T12:00:15.000Z | 2022-03-31T21:29:21.000Z | va_explorer/users/tests/test_validators.py | VA-Explorer/va_explorer | e43cfbff0ce5209c12134b7ac4ce439db6fc87a2 | [
"Apache-2.0"
] | 2 | 2020-10-29T16:08:42.000Z | 2020-12-08T19:03:41.000Z | from unittest import TestCase
import pytest
from django.core.exceptions import ValidationError
from va_explorer.tests.factories import UserFactory
from va_explorer.users.models import UserPasswordHistory
from va_explorer.users.validators import PasswordComplexityValidator, PasswordHistoryValidator
pytestmark = pytest... | 37.027778 | 97 | 0.704426 |
f7075e0814a6b52830ec7abfbaab90ad9441a256 | 732 | py | Python | load_pkl_model.py | Rayaction/ECO-paddle | 28c9adf0f6626dd8d262848fd6a2d7147e76048e | [
"MIT"
] | null | null | null | load_pkl_model.py | Rayaction/ECO-paddle | 28c9adf0f6626dd8d262848fd6a2d7147e76048e | [
"MIT"
] | null | null | null | load_pkl_model.py | Rayaction/ECO-paddle | 28c9adf0f6626dd8d262848fd6a2d7147e76048e | [
"MIT"
] | null | null | null | import pickle
import sys
sys.path.append("..")
from model import ECO
import paddle.fluid as fluid
# Load pickle, since pretrained model is too bigger than the threshold(150M), split them into 2 parts and then reload them
f0 = open('seg0.pkl', 'rb')
f1 = open('seg1.pkl', 'rb')
model_out = dict()
model_0 = p... | 31.826087 | 123 | 0.714481 |
f7075e944abb59672f7df904d36157a6ba3e5bfa | 1,750 | py | Python | otp/level/LevelMgr.py | LittleNed/toontown-stride | 1252a8f9a8816c1810106006d09c8bdfe6ad1e57 | [
"Apache-2.0"
] | 3 | 2020-01-02T08:43:36.000Z | 2020-07-05T08:59:02.000Z | otp/level/LevelMgr.py | NoraTT/Historical-Commits-Project-Altis-Source | fe88e6d07edf418f7de6ad5b3d9ecb3d0d285179 | [
"Apache-2.0"
] | null | null | null | otp/level/LevelMgr.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.toonbase.ToonPythonUtil import Functor
from otp.level import LevelMgrBase
class LevelMgr(LevelMgrBase.LevelMgrBase):
def __init__(self, level, entId):
LevelMgrBase.LevelMgrBase.__init__(self, level, entId)
self.geom = loader.loadModel(self.modelFilename)
if not self.geom:
... | 37.234043 | 100 | 0.668 |
f7077532ef595e987257cd5055e8eba48e9aa978 | 26,132 | py | Python | alphagradient/utils.py | nathanheidacker/AlphaGradient | cf031058f3e91381575e2df44cc029bcc7f4cc73 | [
"MIT",
"Apache-2.0",
"BSD-3-Clause"
] | null | null | null | alphagradient/utils.py | nathanheidacker/AlphaGradient | cf031058f3e91381575e2df44cc029bcc7f4cc73 | [
"MIT",
"Apache-2.0",
"BSD-3-Clause"
] | null | null | null | alphagradient/utils.py | nathanheidacker/AlphaGradient | cf031058f3e91381575e2df44cc029bcc7f4cc73 | [
"MIT",
"Apache-2.0",
"BSD-3-Clause"
] | null | null | null | # -*- coding: utf-8 -*-
"""Standard utility functions used throughout AlphaGradient"""
# Standard Imports
from __future__ import annotations
from abc import ABC, abstractmethod
import builtins
from datetime import (
date,
datetime,
time,
timedelta,
)
import math
from pathlib import Path
# Third Party... | 30.85242 | 94 | 0.641321 |
f7081d04f130b03fc952042146402d7f447fa934 | 604 | py | Python | cuor/harvester/general.py | tocororo/cuor | 0202970f19b927562f34eb4367ea4f91e08e6706 | [
"MIT"
] | null | null | null | cuor/harvester/general.py | tocororo/cuor | 0202970f19b927562f34eb4367ea4f91e08e6706 | [
"MIT"
] | null | null | null | cuor/harvester/general.py | tocororo/cuor | 0202970f19b927562f34eb4367ea4f91e08e6706 | [
"MIT"
] | null | null | null | from cuor.organizations.api import OrganizationRecord
import traceback
def remove_nulls(d):
return {k: v for k, v in d.items() if v is not None}
def _assing_if_exist(data, record, field):
if field in record:
data[field] = record[field]
def insert_in_cuor(data, inst):
# try:
OrganizationReco... | 25.166667 | 80 | 0.587748 |
f7082209033fa16bf0b05b5db5d4f2960b3c91f8 | 4,412 | py | Python | hotsos/core/host_helpers/config.py | KellenRenshaw/hotsos | e3fc51ab7f8af606a5846a3486a7fda23d761583 | [
"Apache-2.0"
] | 6 | 2021-10-01T19:46:14.000Z | 2022-03-31T17:05:08.000Z | hotsos/core/host_helpers/config.py | KellenRenshaw/hotsos | e3fc51ab7f8af606a5846a3486a7fda23d761583 | [
"Apache-2.0"
] | 111 | 2021-10-01T18:18:17.000Z | 2022-03-29T12:23:20.000Z | hotsos/core/host_helpers/config.py | KellenRenshaw/hotsos | e3fc51ab7f8af606a5846a3486a7fda23d761583 | [
"Apache-2.0"
] | 10 | 2021-09-29T14:47:54.000Z | 2022-03-18T14:52:16.000Z | import os
import re
class ConfigBase(object):
def __init__(self, path):
self.path = path
@classmethod
def squash_int_range(cls, ilist):
"""Takes a list of integers and squashes consecutive values into a
string range. Returned list contains mix of strings and ints.
"""
... | 28.836601 | 78 | 0.487307 |
f708236a902da8255569087afbd1a500653aa211 | 7,208 | py | Python | modules/android.py | inzanez/pdfium-lib | f4e6fbb3b29c100ff3f291944944fd7e38fafbcd | [
"MIT"
] | 69 | 2021-01-27T18:53:22.000Z | 2022-02-25T00:41:41.000Z | modules/android.py | inzanez/pdfium-lib | f4e6fbb3b29c100ff3f291944944fd7e38fafbcd | [
"MIT"
] | 31 | 2021-01-23T17:14:46.000Z | 2022-03-04T18:06:23.000Z | modules/android.py | inzanez/pdfium-lib | f4e6fbb3b29c100ff3f291944944fd7e38fafbcd | [
"MIT"
] | 19 | 2021-01-27T18:57:07.000Z | 2022-01-04T02:56:03.000Z | import glob
import os
import tarfile
from subprocess import check_call
import modules.config as c
import modules.functions as f
def run_task_build_pdfium():
f.debug("Building PDFium...")
target = "android"
build_dir = os.path.join("build", target)
f.create_dir(build_dir)
target_dir = os.path.jo... | 29.182186 | 88 | 0.517064 |
f70828b88a42c74567ef99b3f01c0cad6c366906 | 2,053 | py | Python | tensorflow_datasets/image/__init__.py | ubershmekel/datasets | 555220a3bf048a1bed6aed5db97696fb83088b83 | [
"Apache-2.0"
] | null | null | null | tensorflow_datasets/image/__init__.py | ubershmekel/datasets | 555220a3bf048a1bed6aed5db97696fb83088b83 | [
"Apache-2.0"
] | null | null | null | tensorflow_datasets/image/__init__.py | ubershmekel/datasets | 555220a3bf048a1bed6aed5db97696fb83088b83 | [
"Apache-2.0"
] | null | null | null | # coding=utf-8
# Copyright 2019 The TensorFlow Datasets Authors.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by appl... | 50.073171 | 97 | 0.857282 |
f7083d021a8246eb35e98c07308c8cc6808d8bec | 9,979 | py | Python | ertk/stats.py | bagustris/emotion | 5bd83d3ca8a6eb930f449b7a990fefd75d0c7d36 | [
"MIT"
] | 3 | 2020-11-03T14:54:22.000Z | 2021-04-12T12:23:10.000Z | ertk/stats.py | bagustris/emotion | 5bd83d3ca8a6eb930f449b7a990fefd75d0c7d36 | [
"MIT"
] | null | null | null | ertk/stats.py | bagustris/emotion | 5bd83d3ca8a6eb930f449b7a990fefd75d0c7d36 | [
"MIT"
] | 2 | 2020-12-03T06:21:59.000Z | 2021-01-16T04:47:12.000Z | from functools import partial
from typing import Callable, List, Union
import numpy as np
import pandas as pd
from scipy.stats import friedmanchisquare, rankdata
from sklearn.metrics.pairwise import pairwise_distances
from statsmodels.stats.libqsturng import qsturng
Matrix = List[List[float]]
def friedman_nemenyi(t... | 30.990683 | 88 | 0.585029 |
f7086a22a8b6cbc948ed244b0ec6f73cdc2f4cd2 | 2,987 | py | Python | newsroom/evaluate/run.py | peter-xbs/newsroom_chinese | 7fcae68b2ea5584d08d0c48faee34a0734237e6b | [
"Apache-2.0"
] | null | null | null | newsroom/evaluate/run.py | peter-xbs/newsroom_chinese | 7fcae68b2ea5584d08d0c48faee34a0734237e6b | [
"Apache-2.0"
] | null | null | null | newsroom/evaluate/run.py | peter-xbs/newsroom_chinese | 7fcae68b2ea5584d08d0c48faee34a0734237e6b | [
"Apache-2.0"
] | null | null | null | ################################################################################
from subprocess import Popen, PIPE, STDOUT
from threading import Thread
import bz2, json, click
from newsroom import jsonl
from . import readiter
from tqdm import tqdm
###################################################################... | 22.628788 | 80 | 0.494811 |
f7089f47db2e2b77a6377a7ce32ab1734102e04b | 12,276 | py | Python | src/fuzzysearch/substitutions_only.py | klauer/fuzzysearch | 55fc21e469495bc84fe6f81b0c148e105765182d | [
"MIT"
] | null | null | null | src/fuzzysearch/substitutions_only.py | klauer/fuzzysearch | 55fc21e469495bc84fe6f81b0c148e105765182d | [
"MIT"
] | null | null | null | src/fuzzysearch/substitutions_only.py | klauer/fuzzysearch | 55fc21e469495bc84fe6f81b0c148e105765182d | [
"MIT"
] | null | null | null | from collections import deque, defaultdict
from itertools import islice
from functools import wraps
from fuzzysearch.common import FuzzySearchBase, Match, \
count_differences_with_maximum, get_best_match_in_group, group_matches
from fuzzysearch.compat import text_type
from fuzzysearch.search_exact import search_ex... | 39.220447 | 95 | 0.646546 |
f708e062dee09bdd223cf03577105bdf406b13fd | 1,386 | py | Python | var/spack/repos/builtin/packages/r-multcomp/package.py | kehw/spack | 4f49b1a9301447a8cf880c99820cad65e5c2d7e3 | [
"ECL-2.0",
"Apache-2.0",
"MIT-0",
"MIT"
] | 2 | 2020-09-10T22:50:08.000Z | 2021-01-12T22:18:54.000Z | var/spack/repos/builtin/packages/r-multcomp/package.py | kehw/spack | 4f49b1a9301447a8cf880c99820cad65e5c2d7e3 | [
"ECL-2.0",
"Apache-2.0",
"MIT-0",
"MIT"
] | 11 | 2021-01-08T22:23:53.000Z | 2022-03-30T11:08:17.000Z | var/spack/repos/builtin/packages/r-multcomp/package.py | kehw/spack | 4f49b1a9301447a8cf880c99820cad65e5c2d7e3 | [
"ECL-2.0",
"Apache-2.0",
"MIT-0",
"MIT"
] | null | null | null | # Copyright 2013-2021 Lawrence Livermore National Security, LLC and other
# Spack Project Developers. See the top-level COPYRIGHT file for details.
#
# SPDX-License-Identifier: (Apache-2.0 OR MIT)
from spack import *
class RMultcomp(RPackage):
"""Simultaneous tests and confidence intervals for general linear
... | 47.793103 | 96 | 0.727273 |
f708e9a4590e61d74102e1c7483f7e1fb43ae436 | 1,710 | py | Python | button.py | qodzero/ukivy | d7179a83c2e6e357cf50113f53d24c780bf29789 | [
"MIT"
] | null | null | null | button.py | qodzero/ukivy | d7179a83c2e6e357cf50113f53d24c780bf29789 | [
"MIT"
] | null | null | null | button.py | qodzero/ukivy | d7179a83c2e6e357cf50113f53d24c780bf29789 | [
"MIT"
] | null | null | null | from kivy.uix.button import Button
from kivy.properties import StringProperty, BooleanProperty, NumericProperty, ObjectProperty
from kivy.graphics import Color, Rectangle, RoundedRectangle, Ellipse
from kivy.lang import Builder
Builder.load_string('''
<FlatButton>:
background_normal: ''
background_color: [0,0,... | 24.428571 | 92 | 0.623392 |
f708ecc2659e7dad9f641b77c908e306e5f808bc | 3,029 | py | Python | watcher_dashboard/utils/utils.py | openstack/watcher-dashboard | 146e547da934c2464ec5f49326eabed0eecfda96 | [
"Apache-2.0"
] | 15 | 2016-02-12T07:33:42.000Z | 2019-01-28T22:13:27.000Z | watcher_dashboard/utils/utils.py | openstack/watcher-dashboard | 146e547da934c2464ec5f49326eabed0eecfda96 | [
"Apache-2.0"
] | null | null | null | watcher_dashboard/utils/utils.py | openstack/watcher-dashboard | 146e547da934c2464ec5f49326eabed0eecfda96 | [
"Apache-2.0"
] | 2 | 2017-08-11T02:25:37.000Z | 2017-10-10T09:59:40.000Z | # -*- coding: utf8 -*-
#
# 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... | 31.884211 | 78 | 0.621657 |
f7090240b3aff921b5983ce0da0f77c0d2b72c2b | 311 | py | Python | python/p153.py | forewing/lc | 314468a1a3bb7d38eccf1f34b0d1b7da04a34784 | [
"CC0-1.0"
] | null | null | null | python/p153.py | forewing/lc | 314468a1a3bb7d38eccf1f34b0d1b7da04a34784 | [
"CC0-1.0"
] | null | null | null | python/p153.py | forewing/lc | 314468a1a3bb7d38eccf1f34b0d1b7da04a34784 | [
"CC0-1.0"
] | null | null | null | class Solution:
def findMin(self, nums: List[int]) -> int:
l = 0
r = len(nums) - 1
while r - l > 3:
m = (l + r) // 2
if nums[m] > nums[l] and nums[m] > nums[r]:
l = m + 1
else:
r = m
return min(nums[l:r+1])
| 25.916667 | 55 | 0.366559 |
f7091944434db8d19ca5662d7bf98cc15182bb16 | 13,500 | py | Python | python/infra/DisplayCoverage.py | AvciRecep/chaste_2019 | 1d46cdac647820d5c5030f8a9ea3a1019f6651c1 | [
"Apache-2.0",
"BSD-3-Clause"
] | 1 | 2020-04-05T12:11:54.000Z | 2020-04-05T12:11:54.000Z | python/infra/DisplayCoverage.py | AvciRecep/chaste_2019 | 1d46cdac647820d5c5030f8a9ea3a1019f6651c1 | [
"Apache-2.0",
"BSD-3-Clause"
] | null | null | null | python/infra/DisplayCoverage.py | AvciRecep/chaste_2019 | 1d46cdac647820d5c5030f8a9ea3a1019f6651c1 | [
"Apache-2.0",
"BSD-3-Clause"
] | 2 | 2020-04-05T14:26:13.000Z | 2021-03-09T08:18:17.000Z | #!/usr/bin/env python
"""Copyright (c) 2005-2019, University of Oxford.
All rights reserved.
University of Oxford means the Chancellor, Masters and Scholars of the
University of Oxford, having an administrative office at Wellington
Square, Oxford OX1 2JD, UK.
This file is part of Chaste.
Redistribution and use in ... | 45.918367 | 143 | 0.616593 |
f7091b68ebbfbd69780202759a09375d54581042 | 2,147 | py | Python | tests/test_encoding.py | samv/unique | d5d8deb109d0b14ce072118432baf0bebc11826b | [
"MIT"
] | 1 | 2015-04-02T20:27:25.000Z | 2015-04-02T20:27:25.000Z | tests/test_encoding.py | samv/unique | d5d8deb109d0b14ce072118432baf0bebc11826b | [
"MIT"
] | null | null | null | tests/test_encoding.py | samv/unique | d5d8deb109d0b14ce072118432baf0bebc11826b | [
"MIT"
] | null | null | null |
import json
import unittest2
from normalize import from_json
from normalize import JsonProperty
from normalize import JsonRecord
from normalize import Property
from normalize import Record
from normalize import to_json
from unique.encoding import JSONRecordIO
from testclasses import MultiLevelKeyValue
from testclas... | 28.25 | 81 | 0.63251 |
f7092a6a9bede6870067db1af0ef8ca88e82b286 | 2,116 | py | Python | setup.py | ZLLentz/pcdscalc | 6279d3eb8bd62da0e5ac9d9f3b451519e5f13aea | [
"BSD-3-Clause-LBNL"
] | null | null | null | setup.py | ZLLentz/pcdscalc | 6279d3eb8bd62da0e5ac9d9f3b451519e5f13aea | [
"BSD-3-Clause-LBNL"
] | null | null | null | setup.py | ZLLentz/pcdscalc | 6279d3eb8bd62da0e5ac9d9f3b451519e5f13aea | [
"BSD-3-Clause-LBNL"
] | null | null | null | import sys
from os import path
from setuptools import find_packages, setup
import versioneer
min_version = (3, 6)
if sys.version_info < min_version:
error = """
pcdscalc does not support Python {0}.{1}.
Python {2}.{3} and above is required. Check your Python version like so:
python3 --version
This may be due ... | 28.594595 | 77 | 0.654537 |
f7092c10da42e20fd36d0a193c9d2a7e83185c7d | 22,395 | py | Python | lib/utils/SegDataGenerator.py | Grusinator/BirdClassification | c78ca3dbf70c2509c79ca4641102a2d725084d2a | [
"MIT"
] | 1 | 2018-04-16T19:01:48.000Z | 2018-04-16T19:01:48.000Z | lib/utils/SegDataGenerator.py | Grusinator/BirdClassification | c78ca3dbf70c2509c79ca4641102a2d725084d2a | [
"MIT"
] | null | null | null | lib/utils/SegDataGenerator.py | Grusinator/BirdClassification | c78ca3dbf70c2509c79ca4641102a2d725084d2a | [
"MIT"
] | null | null | null | from keras.preprocessing.image import *
from keras.applications.imagenet_utils import preprocess_input
from keras import backend as K
from PIL import Image
import numpy as np
import os
#import cv2
def center_crop(x, center_crop_size, data_format, **kwargs):
if data_format == 'channels_first':
centerh, cen... | 43.067308 | 160 | 0.552936 |
f7093f4912a687d4e7ec0a6c86c92b455f7b055d | 274,474 | py | Python | rsl_comm_py/shearwater_registers.py | RedshiftLabsPtyLtd/rsl_comm_py | e53b4e85079898c894dac25842a08bcc303edfbb | [
"MIT"
] | null | null | null | rsl_comm_py/shearwater_registers.py | RedshiftLabsPtyLtd/rsl_comm_py | e53b4e85079898c894dac25842a08bcc303edfbb | [
"MIT"
] | null | null | null | rsl_comm_py/shearwater_registers.py | RedshiftLabsPtyLtd/rsl_comm_py | e53b4e85079898c894dac25842a08bcc303edfbb | [
"MIT"
] | null | null | null | #!/usr/bin/env python
# Author: Dr. Konstantin Selyunin
# License: MIT
# Created: 2020.08.19
import logging
import os.path
import struct
from abc import abstractmethod, ABC
from typing import Union, Tuple
from .rsl_xml_svd.rsl_svd_parser import RslSvdParser
class ShearWaterRegisters(ABC):
def __init__(self, ... | 40.66884 | 287 | 0.63888 |
f70953a63bbc0820445c238e63d7232ef154338a | 3,503 | py | Python | python/phonenumbers/data/region_HR.py | Eyepea/python-phonenumbers | 0336e191fda80a21ed5c19d5e029ad8c70f620ee | [
"Apache-2.0"
] | 2 | 2019-03-30T02:12:54.000Z | 2021-03-08T18:59:40.000Z | python/phonenumbers/data/region_HR.py | Eyepea/python-phonenumbers | 0336e191fda80a21ed5c19d5e029ad8c70f620ee | [
"Apache-2.0"
] | null | null | null | python/phonenumbers/data/region_HR.py | Eyepea/python-phonenumbers | 0336e191fda80a21ed5c19d5e029ad8c70f620ee | [
"Apache-2.0"
] | 1 | 2018-11-10T03:47:34.000Z | 2018-11-10T03:47:34.000Z | """Auto-generated file, do not edit by hand. HR metadata"""
from ..phonemetadata import NumberFormat, PhoneNumberDesc, PhoneMetadata
PHONE_METADATA_HR = PhoneMetadata(id='HR', country_code=385, international_prefix='00',
general_desc=PhoneNumberDesc(national_number_pattern='[1-7]\\d{5,8}|[89]\\d{6,11}', possible_n... | 113 | 171 | 0.68684 |
f7095d1db7c3f81dc0dfa863c114fdc12fc2c216 | 2,964 | py | Python | test_scripts/main_cvxpy_simple.py | forgi86/pyMPC | 291db149554767a035fcb01df3fed7a6b3fe60e4 | [
"MIT"
] | 84 | 2019-05-28T09:27:37.000Z | 2022-03-31T08:38:23.000Z | test_scripts/main_cvxpy_simple.py | passion4energy/pyMPC | 4b004ba707dab49cd36d96a3575b8593c870a904 | [
"MIT"
] | 2 | 2020-04-17T00:03:27.000Z | 2021-01-30T11:35:58.000Z | test_scripts/main_cvxpy_simple.py | passion4energy/pyMPC | 4b004ba707dab49cd36d96a3575b8593c870a904 | [
"MIT"
] | 20 | 2019-10-13T13:50:16.000Z | 2022-03-31T08:38:25.000Z | from cvxpy import Variable, Parameter, Minimize, Problem, OSQP, quad_form
import numpy as np
import scipy as sp
import scipy.sparse as sparse
import time
if __name__ == "__main__":
# Discrete time model of a quadcopter
Ts = 0.2
M = 2.0
Ad = sparse.csc_matrix([
[1.0, Ts],
[0, 1.0]
... | 28.5 | 90 | 0.567476 |
f70964db97d98144a8ce1f0e75a35480642ce6b9 | 1,273 | py | Python | discretisedfield/ovf2vtk.py | minrk/discretisedfield | 251584f8d976a7fafdff5402d16327489407c4dd | [
"BSD-3-Clause"
] | null | null | null | discretisedfield/ovf2vtk.py | minrk/discretisedfield | 251584f8d976a7fafdff5402d16327489407c4dd | [
"BSD-3-Clause"
] | null | null | null | discretisedfield/ovf2vtk.py | minrk/discretisedfield | 251584f8d976a7fafdff5402d16327489407c4dd | [
"BSD-3-Clause"
] | null | null | null | import argparse
import discretisedfield as df
def convert_files(input_files, output_files):
for input_file, output_file in zip(input_files, output_files):
field = df.Field.fromfile(input_file)
field.write(output_file)
def main():
parser = argparse.ArgumentParser(
prog='ovf2vtk',
... | 31.825 | 76 | 0.600157 |
f70975b2a600c129a02d2b7302e2595d0a4aa9c1 | 138 | py | Python | src/apps/cecyrd/config.py | SGC-Tlaxcala/cerebro | 6c842f66d849065a70002fccdb1eaca1e3d61d99 | [
"MIT"
] | null | null | null | src/apps/cecyrd/config.py | SGC-Tlaxcala/cerebro | 6c842f66d849065a70002fccdb1eaca1e3d61d99 | [
"MIT"
] | 48 | 2017-04-21T17:35:23.000Z | 2020-08-29T04:19:35.000Z | src/apps/cecyrd/config.py | SGC-Tlaxcala/cerebro | 6c842f66d849065a70002fccdb1eaca1e3d61d99 | [
"MIT"
] | null | null | null | from django.apps import AppConfig
class CecyrdConfig(AppConfig):
name = 'apps.cecyrd'
verbose_name = 'Evaluación del proveedor'
| 19.714286 | 45 | 0.746377 |
f7098178cdc1fe45aac531ccf83efb684e2e1369 | 12,691 | py | Python | src/python/pants/backend/docker/target_types.py | xyzst/pants | d6a357fe67ee7e8e1aefeae625e107f5609f1717 | [
"Apache-2.0"
] | null | null | null | src/python/pants/backend/docker/target_types.py | xyzst/pants | d6a357fe67ee7e8e1aefeae625e107f5609f1717 | [
"Apache-2.0"
] | null | null | null | src/python/pants/backend/docker/target_types.py | xyzst/pants | d6a357fe67ee7e8e1aefeae625e107f5609f1717 | [
"Apache-2.0"
] | null | null | null | # Copyright 2021 Pants project contributors (see CONTRIBUTORS.md).
# Licensed under the Apache License, Version 2.0 (see LICENSE).
from __future__ import annotations
import os
import re
from abc import ABC, abstractmethod
from textwrap import dedent
from typing import Callable, ClassVar, Iterator, Optional, cast
fro... | 38.574468 | 120 | 0.643685 |
f709a9ab548efdde5cce699085047d8dc56830d2 | 7,366 | py | Python | pyrseas/dbobject/column.py | andreypopp/Pyrseas | 5fadc91bfd1e3e430e8f53d434df18b9abea3cb0 | [
"BSD-3-Clause"
] | 1 | 2015-03-16T09:10:47.000Z | 2015-03-16T09:10:47.000Z | pyrseas/dbobject/column.py | andreypopp/Pyrseas | 5fadc91bfd1e3e430e8f53d434df18b9abea3cb0 | [
"BSD-3-Clause"
] | null | null | null | pyrseas/dbobject/column.py | andreypopp/Pyrseas | 5fadc91bfd1e3e430e8f53d434df18b9abea3cb0 | [
"BSD-3-Clause"
] | null | null | null | # -*- coding: utf-8 -*-
"""
pyrseas.column
~~~~~~~~~~~~~~
This module defines two classes: Column derived from
DbSchemaObject and ColumnDict derived from DbObjectDict.
"""
from pyrseas.dbobject import DbObjectDict, DbSchemaObject, quote_id
class Column(DbSchemaObject):
"A table column definition"... | 36.83 | 79 | 0.562449 |
f709b83b7dd0d4dc8f2ed9be76428c1683165b7d | 1,895 | py | Python | luafun/game/config.py | Delaunay/LuaFun | bd0efd8fc2b064d6bf58993e59a6ad4ac6713b39 | [
"BSD-3-Clause"
] | 1 | 2021-02-06T06:42:29.000Z | 2021-02-06T06:42:29.000Z | luafun/game/config.py | Delaunay/LuaFun | bd0efd8fc2b064d6bf58993e59a6ad4ac6713b39 | [
"BSD-3-Clause"
] | 6 | 2021-04-08T21:46:06.000Z | 2021-05-09T01:40:04.000Z | luafun/game/config.py | Delaunay/LuaFun | bd0efd8fc2b064d6bf58993e59a6ad4ac6713b39 | [
"BSD-3-Clause"
] | null | null | null | import os
EXECUTABLE_PATH_WINDOWS = '/game/bin/win64/dota2.exe'
EXECUTABLE_PATH_LINUX = '/game/dota.sh'
EXECUTABLE_PATH_LINUX = '/game/bin/linuxsteamrt64/dota2'
BOT_PATH = '/game/dota/scripts/vscripts/bots/'
CONSOLE_LOG = '/game/dota/scripts/vscripts/bots/console.log'
SEND_MSG = '/game/dota/scripts/vscripts/bots/IPC_... | 28.712121 | 81 | 0.667018 |
f709b9bf5ba6566862a18830554448f31ea2f564 | 20,398 | py | Python | hs_labels/models.py | hydroshare/hydroshare | bf9888bbe61507aff070b1dfcec2fdec1921468d | [
"BSD-3-Clause"
] | 178 | 2015-01-08T23:03:36.000Z | 2022-03-03T13:56:45.000Z | hs_labels/models.py | hydroshare/hydroshare | bf9888bbe61507aff070b1dfcec2fdec1921468d | [
"BSD-3-Clause"
] | 4,125 | 2015-01-01T14:26:15.000Z | 2022-03-31T16:38:55.000Z | hs_labels/models.py | hydroshare/hydroshare | bf9888bbe61507aff070b1dfcec2fdec1921468d | [
"BSD-3-Clause"
] | 53 | 2015-03-15T17:56:51.000Z | 2022-03-17T00:32:16.000Z | """
This model supports user labeling of resources in various ways.
For a User u, this instantiates a subobject u.ulabels (like u.uaccess)
that contains all the labeling functions.
Functions include:
* u.ulabels.label_resource(r, label)
instantiates a label for a resource. Resources can have multiple labels.
... | 38.779468 | 110 | 0.595402 |
f709d7d9a6c3f3c9af884ebe9c62a536e3dfa929 | 597 | py | Python | verification_rules/common/__init__.py | adrianmkng/watchmen | 4be15ad64a5d54d4f546ca8c139fa41fd42dd6aa | [
"Apache-2.0"
] | 190 | 2017-12-13T05:01:42.000Z | 2021-11-15T23:35:54.000Z | verification_rules/common/__init__.py | adrianmkng/watchmen | 4be15ad64a5d54d4f546ca8c139fa41fd42dd6aa | [
"Apache-2.0"
] | 2 | 2018-08-31T04:53:03.000Z | 2018-11-14T00:13:49.000Z | verification_rules/common/__init__.py | adrianmkng/watchmen | 4be15ad64a5d54d4f546ca8c139fa41fd42dd6aa | [
"Apache-2.0"
] | 22 | 2017-12-13T04:36:46.000Z | 2021-07-29T07:37:41.000Z | # Copyright 2017 Insurance Australia Group Limited
#
# 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.8 | 74 | 0.768844 |
f709dac114e4abf7ce428aa013816678149fbf10 | 19 | py | Python | btd6_memory_info/generated/SteamNative/Platform/Linux32/linux32.py | 56kyle/bloons_auto | 419d55b51d1cddc49099593970adf1c67985b389 | [
"MIT"
] | null | null | null | btd6_memory_info/generated/SteamNative/Platform/Linux32/linux32.py | 56kyle/bloons_auto | 419d55b51d1cddc49099593970adf1c67985b389 | [
"MIT"
] | null | null | null | btd6_memory_info/generated/SteamNative/Platform/Linux32/linux32.py | 56kyle/bloons_auto | 419d55b51d1cddc49099593970adf1c67985b389 | [
"MIT"
] | null | null | null | class Linux32: pass | 19 | 19 | 0.842105 |
f709db49836f0a337d880632a4ab2b1e17e82610 | 1,896 | py | Python | hooks/hook-pygame.py | tappi287/rf2_video_settings | 6ae73c63f48e6d515a9efb653f236dea0494d9f1 | [
"MIT"
] | 8 | 2020-12-09T17:34:40.000Z | 2022-02-21T10:15:09.000Z | hooks/hook-pygame.py | tappi287/rf2_video_settings | 6ae73c63f48e6d515a9efb653f236dea0494d9f1 | [
"MIT"
] | 11 | 2021-02-27T00:21:47.000Z | 2022-02-25T14:41:56.000Z | hooks/hook-pygame.py | tappi287/rf2_video_settings | 6ae73c63f48e6d515a9efb653f236dea0494d9f1 | [
"MIT"
] | 2 | 2021-06-28T21:11:53.000Z | 2022-02-06T17:20:18.000Z | """
binaries hook for pygame seems to be required for pygame 2.0 Windows.
Otherwise some essential DLLs will not be transfered to the exe.
And also put hooks for datas, resources that pygame uses, to work
correctly with pyinstaller
"""
import os
import platform
from pygame import __file__ as pygame_main_file
# Get... | 33.857143 | 118 | 0.701477 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.