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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
791416c6dcb829169cf49e8f73ff4b4e6af27228 | 18,766 | py | Python | Scripts/Plotter/PlotHistory.py | ReleasedBrainiac/GraphToSequenceNN | 70861637088bc38054beeab44a5c478254b5da25 | [
"MIT"
] | 3 | 2019-04-26T06:40:38.000Z | 2021-02-18T08:44:40.000Z | Scripts/Plotter/PlotHistory.py | ReleasedBrainiac/GraphToSequenceNN | 70861637088bc38054beeab44a5c478254b5da25 | [
"MIT"
] | 4 | 2018-08-28T13:26:14.000Z | 2019-12-16T18:29:11.000Z | Scripts/Plotter/PlotHistory.py | ReleasedBrainiac/GraphToSequenceNN | 70861637088bc38054beeab44a5c478254b5da25 | [
"MIT"
] | null | null | null | import re
import matplotlib.pyplot as plt
from DatasetHandler.ContentSupport import isNotNone, isNone
from Plotter.SavePlots import PlotSaver
class HistoryPlotter(object):
"""
This class provides a History plotting pipeline using mathplot.
"""
_using_history:bool = False # This for a later implemented... | 48.365979 | 231 | 0.553981 |
791437348d4a4efe8a37fa251db6ff8f45fae815 | 4,405 | py | Python | sdk/resources/azure-mgmt-resource/azure/mgmt/resource/policy/v2016_04_01/aio/_policy_client.py | vincenttran-msft/azure-sdk-for-python | 348b56f9f03eeb3f7b502eed51daf494ffff874d | [
"MIT"
] | 1 | 2022-02-01T18:50:12.000Z | 2022-02-01T18:50:12.000Z | sdk/resources/azure-mgmt-resource/azure/mgmt/resource/policy/v2016_04_01/aio/_policy_client.py | vincenttran-msft/azure-sdk-for-python | 348b56f9f03eeb3f7b502eed51daf494ffff874d | [
"MIT"
] | null | null | null | sdk/resources/azure-mgmt-resource/azure/mgmt/resource/policy/v2016_04_01/aio/_policy_client.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 ... | 44.494949 | 125 | 0.706016 |
79144c7111e7b86724aa557f08e48dd70d5ea256 | 58,905 | py | Python | Keras_tensorflow_nightly/source2.7/tensorflow/python/ops/gen_boosted_trees_ops.py | Con-Mi/lambda-packs | b23a8464abdd88050b83310e1d0e99c54dac28ab | [
"MIT"
] | 1 | 2019-06-27T12:09:44.000Z | 2019-06-27T12:09:44.000Z | Keras_tensorflow_nightly/source2.7/tensorflow/python/ops/gen_boosted_trees_ops.py | Con-Mi/lambda-packs | b23a8464abdd88050b83310e1d0e99c54dac28ab | [
"MIT"
] | null | null | null | Keras_tensorflow_nightly/source2.7/tensorflow/python/ops/gen_boosted_trees_ops.py | Con-Mi/lambda-packs | b23a8464abdd88050b83310e1d0e99c54dac28ab | [
"MIT"
] | null | null | null | """Python wrappers around TensorFlow ops.
This file is MACHINE GENERATED! Do not edit.
Original C++ source file: boosted_trees_ops.cc
"""
import collections as _collections
import six as _six
from tensorflow.python import pywrap_tensorflow as _pywrap_tensorflow
from tensorflow.python.eager import context as _context... | 42.777778 | 3,324 | 0.716153 |
791454e67de2d0bcd572676838157a9a091795fd | 5,290 | py | Python | playx/playlist/autoplaylist.py | Saul-Dickson/playx | 48f3dc0d2cb68cfb6b0ed3c362c86ed3ed382ebe | [
"MIT"
] | 221 | 2017-07-21T03:46:50.000Z | 2021-12-20T22:45:25.000Z | playx/playlist/autoplaylist.py | Saul-Dickson/playx | 48f3dc0d2cb68cfb6b0ed3c362c86ed3ed382ebe | [
"MIT"
] | 98 | 2018-07-14T12:56:28.000Z | 2021-03-04T16:48:24.000Z | playx/playlist/autoplaylist.py | Saul-Dickson/playx | 48f3dc0d2cb68cfb6b0ed3c362c86ed3ed382ebe | [
"MIT"
] | 35 | 2018-05-15T19:30:08.000Z | 2021-07-24T14:43:33.000Z | #!/usr/bin/env python3
"""
This module is intended to use Markov Chains for generating playlist automatically.
For now, simple counter is used to create a "naive" baseline auto-playlist.
"""
import pathlib
import re
import random
from collections import Counter
from abc import ABC, abstractmethod
from play... | 29.065934 | 87 | 0.544423 |
7914629e8fa00db43818ae1ee5eaed837fe56122 | 21,365 | py | Python | intersight/models/equipment_chassis.py | gumpcraca/intersight-python | 780e6703c739f329084beacbbf2ad7a6a2e59b2b | [
"Apache-2.0"
] | null | null | null | intersight/models/equipment_chassis.py | gumpcraca/intersight-python | 780e6703c739f329084beacbbf2ad7a6a2e59b2b | [
"Apache-2.0"
] | null | null | null | intersight/models/equipment_chassis.py | gumpcraca/intersight-python | 780e6703c739f329084beacbbf2ad7a6a2e59b2b | [
"Apache-2.0"
] | null | null | null | # coding: utf-8
"""
Intersight REST API
This is Intersight REST API
OpenAPI spec version: 1.0.9-255
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
from pprint import pformat
from six import iteritems
import re
class EquipmentChassis(object):
"""
NOTE: This clas... | 26.90806 | 418 | 0.589282 |
7914884c4ce5350d2c24a61f05999d076d8f5447 | 3,207 | py | Python | monitor_requests/data.py | jayvdb/monitor_requests | 431c10d7f3819f7f3806815fa29daad9159adedd | [
"BSD-3-Clause"
] | null | null | null | monitor_requests/data.py | jayvdb/monitor_requests | 431c10d7f3819f7f3806815fa29daad9159adedd | [
"BSD-3-Clause"
] | null | null | null | monitor_requests/data.py | jayvdb/monitor_requests | 431c10d7f3819f7f3806815fa29daad9159adedd | [
"BSD-3-Clause"
] | 1 | 2020-01-31T15:00:43.000Z | 2020-01-31T15:00:43.000Z | """Data handling by server or instance."""
import json
import urllib3
class DataHandler(object):
"""Handle data."""
def __init__(self, server_port=None):
"""Initialize.
:param server_port: Int. local port.
"""
self.server_port = server_port
self.logged_requests = {}
... | 32.393939 | 75 | 0.518553 |
791489d674e37d896eaf1ac56932e2eb7017653b | 23,321 | py | Python | examples/polygon_classify_cnn/pool_net.py | DigitalGlobe/mltools | 6739823243872a4b5e9334193721065189eebe2e | [
"MIT"
] | 88 | 2016-07-13T20:10:16.000Z | 2021-12-06T09:04:17.000Z | examples/polygon_classify_cnn/pool_net.py | DigitalGlobe/mltools | 6739823243872a4b5e9334193721065189eebe2e | [
"MIT"
] | 5 | 2017-01-09T06:34:18.000Z | 2019-02-11T15:10:47.000Z | examples/polygon_classify_cnn/pool_net.py | DigitalGlobe/mltools | 6739823243872a4b5e9334193721065189eebe2e | [
"MIT"
] | 46 | 2016-08-05T23:45:53.000Z | 2021-11-10T02:29:26.000Z | # Generic CNN classifier that uses a geojson file and gbdx imagery to classify chips
import numpy as np
import os, random
import json, geojson
from mltools import geojson_tools as gt
from mltools.data_extractors import get_data_from_polygon_list as get_chips
from keras.layers.core import Dense, Dropout, Activation, F... | 46.923541 | 91 | 0.595086 |
7914cc4b762f6784205a5426f6bb28591e3907fd | 3,954 | py | Python | alipay/aop/api/request/AlipayUserMpointPreconsultRequest.py | antopen/alipay-sdk-python-all | 8e51c54409b9452f8d46c7bb10eea7c8f7e8d30c | [
"Apache-2.0"
] | null | null | null | alipay/aop/api/request/AlipayUserMpointPreconsultRequest.py | antopen/alipay-sdk-python-all | 8e51c54409b9452f8d46c7bb10eea7c8f7e8d30c | [
"Apache-2.0"
] | null | null | null | alipay/aop/api/request/AlipayUserMpointPreconsultRequest.py | antopen/alipay-sdk-python-all | 8e51c54409b9452f8d46c7bb10eea7c8f7e8d30c | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import json
from alipay.aop.api.FileItem import FileItem
from alipay.aop.api.constant.ParamConstants import *
from alipay.aop.api.domain.AlipayUserMpointPreconsultModel import AlipayUserMpointPreconsultModel
class AlipayUserMpointPreconsultRequest(object):
def __i... | 27.268966 | 148 | 0.643399 |
7914e6055b00703da94378f6076f58b67a60a5f6 | 21,283 | py | Python | fairseq/data/data_utils.py | MANGA-UOFA/NAUS | 8c0c0815a280d0661adf588302848c7f1ecc56da | [
"MIT"
] | 8 | 2022-03-19T15:20:10.000Z | 2022-03-30T20:29:25.000Z | fairseq/data/data_utils.py | MANGA-UOFA/NAUS | 8c0c0815a280d0661adf588302848c7f1ecc56da | [
"MIT"
] | null | null | null | fairseq/data/data_utils.py | MANGA-UOFA/NAUS | 8c0c0815a280d0661adf588302848c7f1ecc56da | [
"MIT"
] | 2 | 2022-03-18T14:42:41.000Z | 2022-03-19T15:23:20.000Z | # Copyright (c) Facebook, Inc. and its affiliates.
#
# This source code is licensed under the MIT license found in the
# LICENSE file in the root directory of this source tree.
try:
from collections.abc import Iterable
except ImportError:
from collections import Iterable
import contextlib
import itertools
impo... | 35.769748 | 120 | 0.608279 |
7914fcd65a95cd8e690ad934aa56546f01db56ae | 11,172 | py | Python | tests/platform_tests/test_cpu_memory_usage.py | jsanghra/sonic-mgmt | 9f7af402de9e8e16a33c81b31581c9e155e55430 | [
"Apache-2.0"
] | null | null | null | tests/platform_tests/test_cpu_memory_usage.py | jsanghra/sonic-mgmt | 9f7af402de9e8e16a33c81b31581c9e155e55430 | [
"Apache-2.0"
] | null | null | null | tests/platform_tests/test_cpu_memory_usage.py | jsanghra/sonic-mgmt | 9f7af402de9e8e16a33c81b31581c9e155e55430 | [
"Apache-2.0"
] | null | null | null | import logging
import pytest
from collections import namedtuple, Counter
from tests.platform_tests.counterpoll.cpu_memory_helper import restore_counter_poll # lgtm [py/unused-import]
from tests.platform_tests.counterpoll.cpu_memory_helper import counterpoll_type # lgtm [py/unused-import]
from tests.platform_test... | 48.786026 | 176 | 0.735858 |
79152b6b1616b24947880389ca1ca7760c914637 | 4,453 | py | Python | Tools/Scripts/webkitpy/port/device.py | jacadcaps/webkitty | 9aebd2081349f9a7b5d168673c6f676a1450a66d | [
"BSD-2-Clause"
] | 6 | 2021-07-05T16:09:39.000Z | 2022-03-06T22:44:42.000Z | Tools/Scripts/webkitpy/port/device.py | jacadcaps/webkitty | 9aebd2081349f9a7b5d168673c6f676a1450a66d | [
"BSD-2-Clause"
] | 7 | 2022-03-15T13:25:39.000Z | 2022-03-15T13:25:44.000Z | Tools/Scripts/webkitpy/port/device.py | jacadcaps/webkitty | 9aebd2081349f9a7b5d168673c6f676a1450a66d | [
"BSD-2-Clause"
] | null | null | null | # Copyright (C) 2017-2019 Apple Inc. All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions
# are met:
# 1. Redistributions of source code must retain the above copyright
# notice, this list of conditions and ... | 36.5 | 95 | 0.715922 |
791551be86e57871a0093a202dc497da69450536 | 2,596 | py | Python | modules.py | ksboy/adversarial_attack | cb1e02b8ff31056cdd0eb1f747c1b08ed12527bc | [
"Apache-2.0"
] | 1 | 2020-05-22T02:03:34.000Z | 2020-05-22T02:03:34.000Z | modules.py | ksboy/adversarial_attack | cb1e02b8ff31056cdd0eb1f747c1b08ed12527bc | [
"Apache-2.0"
] | null | null | null | modules.py | ksboy/adversarial_attack | cb1e02b8ff31056cdd0eb1f747c1b08ed12527bc | [
"Apache-2.0"
] | 1 | 2019-12-04T14:29:23.000Z | 2019-12-04T14:29:23.000Z | import torch
class FGM():
def __init__(self, model):
self.model = model
self.backup = {}
def attack(self, epsilon=1e-6, emb_name='embed'):
# emb_name这个参数要换成你模型中embedding的参数名
for name, param in self.model.named_parameters():
if param.requires_grad and emb_name in nam... | 36.56338 | 87 | 0.580123 |
791569bd4dbb927b29d073a3df1f738bb1fac670 | 1,820 | py | Python | dpa/ptask/action/source.py | Clemson-DPA/dpa-pipe | 2482b8a0fd96dc19c0be4e82c3eaf0508914a968 | [
"MIT"
] | 55 | 2015-07-15T02:33:55.000Z | 2020-12-28T08:02:54.000Z | dpa/ptask/action/source.py | Clemson-DPA/dpa-pipe | 2482b8a0fd96dc19c0be4e82c3eaf0508914a968 | [
"MIT"
] | 5 | 2015-07-11T03:21:10.000Z | 2016-12-27T12:20:07.000Z | dpa/ptask/action/source.py | Clemson-DPA/dpa-pipe | 2482b8a0fd96dc19c0be4e82c3eaf0508914a968 | [
"MIT"
] | 12 | 2015-07-08T04:48:39.000Z | 2020-06-27T11:35:58.000Z |
# ----------------------------------------------------------------------------
# Imports:
# ----------------------------------------------------------------------------
from dpa.action import Action, ActionError
from dpa.ptask.action.sync import _PTaskSyncAction
from dpa.location import current_location_code
from dpa... | 36.4 | 78 | 0.467582 |
7915b0acfe32fc73d48f61719754319aa5c60bde | 6,366 | py | Python | backend/utils/viewset.py | lybbn/django-vue3-lyadmin | df8ed48971eb3e3da977e1fd0467b1230b56afe4 | [
"MIT"
] | 1 | 2022-03-01T07:20:36.000Z | 2022-03-01T07:20:36.000Z | backend/utils/viewset.py | lybbn/django-vue3-lyadmin | df8ed48971eb3e3da977e1fd0467b1230b56afe4 | [
"MIT"
] | null | null | null | backend/utils/viewset.py | lybbn/django-vue3-lyadmin | df8ed48971eb3e3da977e1fd0467b1230b56afe4 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
"""
@Remark: 自定义视图集
"""
from drf_yasg import openapi
from drf_yasg.utils import swagger_auto_schema
from rest_framework.decorators import action
from rest_framework.viewsets import ModelViewSet
from utils.filters import DataLevelPermissionsFilter
from utils.jsonResponse import SuccessResponse,... | 41.337662 | 103 | 0.696199 |
7915c9e9af5e1afbd3cedb0c75f15d9e2eab0587 | 1,214 | py | Python | server/openapi_server/controllers/text_id_annotation_controller.py | cascadianblue/phi-annotator | 0da6c102ec1068e6b15c613e2a90a78f79d15935 | [
"Apache-2.0"
] | null | null | null | server/openapi_server/controllers/text_id_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_id_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_id_annotation_request import TextIdAnnotationRequest # noqa: E501
from openapi_server.models.tex... | 39.16129 | 110 | 0.737232 |
7915dedb7120f35fcbeda0b10924ecebe98b7a1e | 12,649 | py | Python | Tensorflow_OpenCV_Nightly/source/markdown/treeprocessors.py | Con-Mi/lambda-packs | b23a8464abdd88050b83310e1d0e99c54dac28ab | [
"MIT"
] | null | null | null | Tensorflow_OpenCV_Nightly/source/markdown/treeprocessors.py | Con-Mi/lambda-packs | b23a8464abdd88050b83310e1d0e99c54dac28ab | [
"MIT"
] | null | null | null | Tensorflow_OpenCV_Nightly/source/markdown/treeprocessors.py | Con-Mi/lambda-packs | b23a8464abdd88050b83310e1d0e99c54dac28ab | [
"MIT"
] | null | null | null | import re
from . import inlinepatterns
from . import util
from . import odict
def build_treeprocessors(md_instance, **kwargs):
""" Build the default treeprocessors for Markdown. """
treeprocessors = odict.OrderedDict()
treeprocessors["inline"] = InlineProcessor(md_instance)
treeprocessors["prettify"] ... | 35.038781 | 80 | 0.528579 |
7915ecfa3c5a5d7e7e1194f2b7608f2256454a1a | 6,678 | py | Python | src/evaluate/plot_evaluation.py | claudius-kienle/self-supervised-depth-denoising | 4dffb30e8ef5022ef665825d26f45f67bf712cfd | [
"MIT"
] | 2 | 2021-12-02T15:06:28.000Z | 2021-12-03T09:48:32.000Z | src/evaluate/plot_evaluation.py | claudius-kienle/self-supervised-depth-denoising | 4dffb30e8ef5022ef665825d26f45f67bf712cfd | [
"MIT"
] | 23 | 2022-02-24T09:17:03.000Z | 2022-03-21T16:57:58.000Z | src/evaluate/plot_evaluation.py | alr-internship/self-supervised-depth-denoising | 4dffb30e8ef5022ef665825d26f45f67bf712cfd | [
"MIT"
] | null | null | null | from argparse import ArgumentParser
import enum
from pathlib import Path
from matplotlib import pyplot as plt
from matplotlib.lines import Line2D
import numpy as np
import yaml
import pandas as pd
METRICS = ['total_L1', '0_to10mm_L1', '10_to20mm_L1', 'above20mm_L1']
METRICS_TITLE = ['L1Loss', 'L1Loss in [0,10) mm', ... | 36.097297 | 116 | 0.628182 |
791615133b7e5924eb542f262094d07209f7e292 | 1,622 | py | Python | here_location_services/config/autosuggest_config.py | jain-aayush1123/here-location-services-python | 11ad5ef8273b4f243c43bc00ebd470f725b980bc | [
"Apache-2.0"
] | 16 | 2021-02-15T13:49:29.000Z | 2022-03-29T10:34:43.000Z | here_location_services/config/autosuggest_config.py | jain-aayush1123/here-location-services-python | 11ad5ef8273b4f243c43bc00ebd470f725b980bc | [
"Apache-2.0"
] | 8 | 2021-02-27T18:40:46.000Z | 2021-10-03T15:49:27.000Z | here_location_services/config/autosuggest_config.py | jain-aayush1123/here-location-services-python | 11ad5ef8273b4f243c43bc00ebd470f725b980bc | [
"Apache-2.0"
] | 11 | 2021-02-16T04:58:08.000Z | 2022-02-21T20:51:55.000Z | # Copyright (C) 2019-2021 HERE Europe B.V.
# SPDX-License-Identifier: Apache-2.0
"""This module defines all the configs which will be required as inputs to autosuggest API."""
from .base_config import Bunch
class SearchCircle:
"""A class to define ``SearchCircle``
Results will be returned if they are locat... | 25.746032 | 94 | 0.663379 |
791615ef55b9f96e9b784b7f7f95b9fca930494c | 5,110 | py | Python | data_loader/modules/Text_Image_Augmentation_python/augment.py | WenmuZhou/crnn.pytorch | bf7a7c62376eee93943ca7c68e88e3d563c09aa8 | [
"Apache-2.0"
] | 46 | 2018-05-29T08:01:10.000Z | 2022-02-14T21:47:40.000Z | data_loader/modules/Text_Image_Augmentation_python/augment.py | WenmuZhou/crnn.pytorch | bf7a7c62376eee93943ca7c68e88e3d563c09aa8 | [
"Apache-2.0"
] | null | null | null | data_loader/modules/Text_Image_Augmentation_python/augment.py | WenmuZhou/crnn.pytorch | bf7a7c62376eee93943ca7c68e88e3d563c09aa8 | [
"Apache-2.0"
] | 17 | 2018-11-14T09:17:00.000Z | 2021-08-06T04:05:07.000Z | # -*- coding:utf-8 -*-
# Author: RubanSeven
# import cv2
import numpy as np
# from transform import get_perspective_transform, warp_perspective
from .warp_mls import WarpMLS
def distort(src, segment):
img_h, img_w = src.shape[:2]
cut = img_w // segment
thresh = cut // 3
# thresh = img_h // segment /... | 32.75641 | 106 | 0.604501 |
791640b5340ecb8219dc91d85ee17b94d92466b6 | 7,497 | py | Python | src/rcmodel/optimisation.py | BFourcin/rcmodel | 160eb2ad7ea60f328abde157baeef7378e28d815 | [
"MIT"
] | 5 | 2021-07-05T13:48:59.000Z | 2021-12-08T11:40:51.000Z | src/rcmodel/optimisation.py | BFourcin/rcmodel | 160eb2ad7ea60f328abde157baeef7378e28d815 | [
"MIT"
] | null | null | null | src/rcmodel/optimisation.py | BFourcin/rcmodel | 160eb2ad7ea60f328abde157baeef7378e28d815 | [
"MIT"
] | null | null | null | from filelock import FileLock
import torch
import pandas as pd
from .tools import BuildingTemperatureDataset
import os
def train(model, device, dataloader, optimizer):
"""
Performs one epoch of training.
Order of rooms in building and in data must match otherwise model will fit wrong rooms to data.
"""... | 32.175966 | 145 | 0.620381 |
791688dbd138ffb5132f957ed4ac7f6e3567bcff | 30,666 | py | Python | pmaf/biome/essentials/_taxonomy.py | mmtechslv/PhyloMAF | bab43dd4a4d2812951b1fdf4f1abb83edb79ea88 | [
"BSD-3-Clause"
] | 1 | 2021-07-02T06:24:17.000Z | 2021-07-02T06:24:17.000Z | pmaf/biome/essentials/_taxonomy.py | mmtechslv/PhyloMAF | bab43dd4a4d2812951b1fdf4f1abb83edb79ea88 | [
"BSD-3-Clause"
] | 1 | 2021-06-28T12:02:46.000Z | 2021-06-28T12:02:46.000Z | pmaf/biome/essentials/_taxonomy.py | mmtechslv/PhyloMAF | bab43dd4a4d2812951b1fdf4f1abb83edb79ea88 | [
"BSD-3-Clause"
] | null | null | null | import warnings
warnings.simplefilter("ignore", category=FutureWarning)
from pmaf.biome.essentials._metakit import EssentialFeatureMetabase
from pmaf.biome.essentials._base import EssentialBackboneBase
from pmaf.internal._constants import (
AVAIL_TAXONOMY_NOTATIONS,
jRegexGG,
jRegexQIIME,
BIOM_TAXONOMY... | 37.081016 | 133 | 0.559903 |
79169bddb5727f28fd9783d8831697eaf00b999b | 5,044 | py | Python | acme/core.py | novatig/acme | 7774e4a22519d8b05951320864e5308974eaad2a | [
"Apache-2.0"
] | null | null | null | acme/core.py | novatig/acme | 7774e4a22519d8b05951320864e5308974eaad2a | [
"Apache-2.0"
] | null | null | null | acme/core.py | novatig/acme | 7774e4a22519d8b05951320864e5308974eaad2a | [
"Apache-2.0"
] | null | null | null | # python3
# Copyright 2018 DeepMind Technologies Limited. 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 re... | 29.670588 | 80 | 0.720658 |
7916b3da781992124634c14a9ab2ce9eef80044d | 336 | py | Python | cli/commands/cmd_serve.py | laith43d/juju-survey | 3c23203fda6042b2316f1cf06bd18e16e4ddde5d | [
"MIT"
] | null | null | null | cli/commands/cmd_serve.py | laith43d/juju-survey | 3c23203fda6042b2316f1cf06bd18e16e4ddde5d | [
"MIT"
] | null | null | null | cli/commands/cmd_serve.py | laith43d/juju-survey | 3c23203fda6042b2316f1cf06bd18e16e4ddde5d | [
"MIT"
] | null | null | null | import click
from config.settings import app
@click.group()
def cli():
"""
Serves the application for testing locally. If you want to test it
in a production like environment, please deploy with Docker.\n
:return: Application instance
"""
click.echo('\033[95mINFO: Starting the app..\033[0m')
... | 19.764706 | 70 | 0.678571 |
7916f3d34f77696974388b6d130677174cb5d565 | 11,959 | py | Python | product.py | sayatul/trytond-sale-channel | 3b15e6f48275e813cb2ad569c075112dce7989f8 | [
"BSD-3-Clause"
] | null | null | null | product.py | sayatul/trytond-sale-channel | 3b15e6f48275e813cb2ad569c075112dce7989f8 | [
"BSD-3-Clause"
] | 23 | 2015-07-11T06:19:44.000Z | 2017-04-25T15:39:30.000Z | product.py | sayatul/trytond-sale-channel | 3b15e6f48275e813cb2ad569c075112dce7989f8 | [
"BSD-3-Clause"
] | 20 | 2015-07-30T21:40:57.000Z | 2017-07-25T06:05:39.000Z | # -*- coding: utf-8 -*-
"""
product.py
Implementing Add listing wizard for downstream modules:
* In the __setup__ method of `product.listing.add.start` in downstream
module, add the type as a valid channel type. Since this is non trivial
a convenience method `add_source` is provided which will add the source
... | 31.224543 | 93 | 0.619199 |
7916fcfddc68e7f36d3e379f1ccdcbf27e3385d9 | 189 | py | Python | python/xviz_avs/server/aws_fetch.py | Smart-Ag/xviz | 71c4470fdcb5c497793eb53666da6a5feb6832f0 | [
"Apache-2.0"
] | 1 | 2021-06-03T04:02:49.000Z | 2021-06-03T04:02:49.000Z | python/xviz_avs/server/aws_fetch.py | Smart-Ag/xviz | 71c4470fdcb5c497793eb53666da6a5feb6832f0 | [
"Apache-2.0"
] | null | null | null | python/xviz_avs/server/aws_fetch.py | Smart-Ag/xviz | 71c4470fdcb5c497793eb53666da6a5feb6832f0 | [
"Apache-2.0"
] | null | null | null |
def ecr_login:
# this will login to aws
def select_file_action:
# this will move the file that was selected on the front end to install the tar file in the correct location
| 21 | 112 | 0.724868 |
791707eea45f2f67d4bc1e5cfbdafa9e16587261 | 2,861 | py | Python | examples/vegetation.py | raikel/mcrops | 8597f74e79d62f8184a9ff707ae1d6b627cb05df | [
"MIT"
] | null | null | null | examples/vegetation.py | raikel/mcrops | 8597f74e79d62f8184a9ff707ae1d6b627cb05df | [
"MIT"
] | null | null | null | examples/vegetation.py | raikel/mcrops | 8597f74e79d62f8184a9ff707ae1d6b627cb05df | [
"MIT"
] | 1 | 2020-01-02T21:00:40.000Z | 2020-01-02T21:00:40.000Z | import argparse
import sys
from os import path
import cv2 as cv
from mcrops import veget, utils
def full_imshow(name, image):
cv.namedWindow(name, cv.WINDOW_NORMAL)
cv.resizeWindow(name, 800, 600)
cv.imshow(name, image)
def main(image_path: str, resolution: float, row_sep: float):
print(f'Starting... | 27.247619 | 74 | 0.650122 |
79170d80fdfd070112aa2ff1d2ece020671e09c7 | 17,419 | py | Python | Sklearn_scipy_numpy/source/sklearn/externals/joblib/numpy_pickle.py | Con-Mi/lambda-packs | b23a8464abdd88050b83310e1d0e99c54dac28ab | [
"MIT"
] | 1 | 2016-10-24T13:36:23.000Z | 2016-10-24T13:36:23.000Z | Sklearn_scipy_numpy/source/sklearn/externals/joblib/numpy_pickle.py | Con-Mi/lambda-packs | b23a8464abdd88050b83310e1d0e99c54dac28ab | [
"MIT"
] | null | null | null | Sklearn_scipy_numpy/source/sklearn/externals/joblib/numpy_pickle.py | Con-Mi/lambda-packs | b23a8464abdd88050b83310e1d0e99c54dac28ab | [
"MIT"
] | null | null | null | """
Utilities for fast persistence of big data, with optional compression.
"""
# Author: Gael Varoquaux <gael dot varoquaux at normalesup dot org>
# Copyright (c) 2009 Gael Varoquaux
# License: BSD Style, 3 clauses.
import pickle
import traceback
import os
import zlib
import warnings
from io import BytesIO
from ._co... | 36.826638 | 79 | 0.611516 |
79171c14890593f01ba00aed1960af689deb4de5 | 2,539 | py | Python | Object Oriented Programming/5 - Special Methods/index.py | Sudani-Coder/python | 9c35f04a0521789ba91b7058695139ed074f7796 | [
"MIT"
] | null | null | null | Object Oriented Programming/5 - Special Methods/index.py | Sudani-Coder/python | 9c35f04a0521789ba91b7058695139ed074f7796 | [
"MIT"
] | null | null | null | Object Oriented Programming/5 - Special Methods/index.py | Sudani-Coder/python | 9c35f04a0521789ba91b7058695139ed074f7796 | [
"MIT"
] | null | null | null | # Python Object Oriented Programming
import datetime
class Employee:
num_of_emps = 0 # Class Variable
raise_amount = 1.02 # Class Variable
def __init__(self, FirstName, LastName, salary):
self.FirstName = FirstName
self.LastName = LastName
self.salary = int(salary)
self.em... | 27.597826 | 94 | 0.606932 |
791738dab5284ae121c622818c20671323151af4 | 3,625 | py | Python | app/app/settings.py | Akshay-ch-dj/RESTapi-app-series | 0a7ca3384e3d8d6b2d1c746b23f95426988a9bf9 | [
"MIT"
] | null | null | null | app/app/settings.py | Akshay-ch-dj/RESTapi-app-series | 0a7ca3384e3d8d6b2d1c746b23f95426988a9bf9 | [
"MIT"
] | null | null | null | app/app/settings.py | Akshay-ch-dj/RESTapi-app-series | 0a7ca3384e3d8d6b2d1c746b23f95426988a9bf9 | [
"MIT"
] | null | null | null | """
Django settings for app project.
Generated by 'django-admin startproject' using Django 2.1.15.
For more information on this file, see
https://docs.djangoproject.com/en/2.1/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/2.1/ref/settings/
"""
import os
# Bu... | 26.079137 | 91 | 0.688828 |
7917572d8bccbbce4bf40c20ba7edd3f3ad93612 | 1,553 | py | Python | ch03/code/ch03-04_osm2shp.py | MatthiasWunsch/python-geospatial-analysis-cookbook | 88946ca6242283c9110488c64ac44057a53e2831 | [
"MIT"
] | 98 | 2015-06-14T08:42:21.000Z | 2022-03-09T16:48:43.000Z | ch03/code/ch03-04_osm2shp.py | MatthiasWunsch/python-geospatial-analysis-cookbook | 88946ca6242283c9110488c64ac44057a53e2831 | [
"MIT"
] | 6 | 2015-12-23T09:56:33.000Z | 2022-02-13T20:06:05.000Z | ch03/code/ch03-04_osm2shp.py | MatthiasWunsch/python-geospatial-analysis-cookbook | 88946ca6242283c9110488c64ac44057a53e2831 | [
"MIT"
] | 43 | 2015-08-24T13:13:32.000Z | 2022-03-14T20:55:15.000Z | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# convert / import osm xml .osm file into a Shapefile
import subprocess
import os
import shutil
# specify output format
output_format = "ESRI Shapefile"
# complete path to input OSM xml file .osm
input_osm = '../geodata/OSM_san_francisco_westbluff.osm'
# Windows users c... | 30.45098 | 73 | 0.676111 |
79179977f10525cc9283347215b72e1884af7396 | 312 | py | Python | apps/api.py | ForestMars/Coda.to | 55e99a8fb1867738e0bb2292461fa2bf3a7770f7 | [
"DOC",
"MIT"
] | null | null | null | apps/api.py | ForestMars/Coda.to | 55e99a8fb1867738e0bb2292461fa2bf3a7770f7 | [
"DOC",
"MIT"
] | null | null | null | apps/api.py | ForestMars/Coda.to | 55e99a8fb1867738e0bb2292461fa2bf3a7770f7 | [
"DOC",
"MIT"
] | null | null | null | # api.py -
__version__ = '0.1'
__all__ = ['layout', 'callback']
import dash_core_components as dcc
import dash_html_components as html
from dash.dependencies import Input, Output
layout = html.Div([
html.Br(),
html.H3('Covid Data Tools API'),
],
style={'padding':'10vw'}
)
def callback(app):
pass
| 17.333333 | 43 | 0.689103 |
79183f13bc49d0ab6bc6366ace964d4a592f41a3 | 313,518 | py | Python | tests/test_core.py | Lectem/emscripten | 18a5b3a1ee9aadae2bccb67224026d668221545a | [
"MIT"
] | 1 | 2021-02-10T04:30:14.000Z | 2021-02-10T04:30:14.000Z | tests/test_core.py | Lectem/emscripten | 18a5b3a1ee9aadae2bccb67224026d668221545a | [
"MIT"
] | null | null | null | tests/test_core.py | Lectem/emscripten | 18a5b3a1ee9aadae2bccb67224026d668221545a | [
"MIT"
] | null | null | null | # Copyright 2013 The Emscripten Authors. All rights reserved.
# Emscripten is available under two separate licenses, the MIT license and the
# University of Illinois/NCSA Open Source License. Both these licenses can be
# found in the LICENSE file.
from __future__ import print_function
import glob
import hashlib
impo... | 35.728547 | 545 | 0.628471 |
791881b0895ce533ac167363fbdeaf8146bb70c7 | 4,332 | py | Python | process.py | wileyw/VideoGAN | d5c40ce4180b63d9dc6017a8caf19cfd63166a96 | [
"MIT"
] | 5 | 2019-01-27T21:00:19.000Z | 2021-09-08T11:00:37.000Z | process.py | mswang12/VideoGAN | d5c40ce4180b63d9dc6017a8caf19cfd63166a96 | [
"MIT"
] | 2 | 2018-08-22T04:06:11.000Z | 2019-08-01T18:56:20.000Z | process.py | mswang12/VideoGAN | d5c40ce4180b63d9dc6017a8caf19cfd63166a96 | [
"MIT"
] | 3 | 2019-02-17T00:41:19.000Z | 2019-09-03T17:30:12.000Z | import os
import scipy.misc
import torch
import numpy as np
import torch.optim as optim
import config
import data_loader
import d_net
import loss_funs
import g_net
dtype = config.dtype
def save_samples(generated_images, iteration, prefix):
generated_images = generated_images.data.cpu().numpy()
num_images,... | 31.620438 | 91 | 0.635042 |
791897e60eeb370eebcfe842f8c9af064ae305a0 | 5,576 | py | Python | Core/OpenData.py | UASLab/OpenFlightAnalysis | b5ecb3ea7ff82f5fb21efa7e9cbee60bf68aea37 | [
"MIT"
] | 7 | 2019-03-15T17:28:35.000Z | 2022-02-11T07:27:40.000Z | Core/OpenData.py | UASLab/OpenFlightAnalysis | b5ecb3ea7ff82f5fb21efa7e9cbee60bf68aea37 | [
"MIT"
] | null | null | null | Core/OpenData.py | UASLab/OpenFlightAnalysis | b5ecb3ea7ff82f5fb21efa7e9cbee60bf68aea37 | [
"MIT"
] | 2 | 2021-05-15T06:23:50.000Z | 2022-03-04T19:38:39.000Z | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Created on Fri Dec 28 15:05:36 2018
@author: louismueller
"""
# import
import numpy as np
#%%
def PlotOverview(oData):
import matplotlib.pyplot as plt
from mpl_toolkits.mplot3d import Axes3D
# Overview Plots
# Find interesting stuff: takeoff, landi... | 28.020101 | 102 | 0.601506 |
79189cfd3b75b54bcf9088b532b6881183c33302 | 4,738 | py | Python | cadnano/gui/dialogs/ui_mods.py | mctrinh/cadnano2.5 | d8254f24eef5fd77b4fb2b1a9642a8eea2e3c736 | [
"BSD-3-Clause"
] | 69 | 2015-01-13T02:54:40.000Z | 2022-03-27T14:25:51.000Z | cadnano/gui/dialogs/ui_mods.py | mctrinh/cadnano2.5 | d8254f24eef5fd77b4fb2b1a9642a8eea2e3c736 | [
"BSD-3-Clause"
] | 127 | 2015-01-01T06:26:34.000Z | 2022-03-02T12:48:05.000Z | cadnano/gui/dialogs/ui_mods.py | mctrinh/cadnano2.5 | d8254f24eef5fd77b4fb2b1a9642a8eea2e3c736 | [
"BSD-3-Clause"
] | 48 | 2015-01-22T19:57:49.000Z | 2022-03-27T14:27:53.000Z | # -*- coding: utf-8 -*-
# Form implementation generated from reading ui file 'mods.ui'
#
# Created: Sun Oct 12 21:39:36 2014
# by: PyQt5 UI code generator 5.3.2
#
# WARNING! All changes made in this file will be lost!
from PyQt5 import QtCore, QtGui, QtWidgets
class Ui_ModsDialog(object):
def setupUi(self,... | 58.493827 | 119 | 0.748417 |
7918bf5dc3c2620d23ff4c9516c25adc98030c43 | 7,459 | py | Python | appengine/findit/pipelines/test_failure/analyze_test_failure_pipeline.py | allaparthi/monorail | e18645fc1b952a5a6ff5f06e0c740d75f1904473 | [
"BSD-3-Clause"
] | 2 | 2021-04-13T21:22:18.000Z | 2021-09-07T02:11:57.000Z | appengine/findit/pipelines/test_failure/analyze_test_failure_pipeline.py | allaparthi/monorail | e18645fc1b952a5a6ff5f06e0c740d75f1904473 | [
"BSD-3-Clause"
] | 21 | 2020-09-06T02:41:05.000Z | 2022-03-02T04:40:01.000Z | appengine/findit/pipelines/test_failure/analyze_test_failure_pipeline.py | allaparthi/monorail | e18645fc1b952a5a6ff5f06e0c740d75f1904473 | [
"BSD-3-Clause"
] | null | null | null | # Copyright 2017 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.
import logging
from common import constants
from common import monitoring
from dto.collect_swarming_task_results_inputs import (
CollectSwarmingTaskResu... | 43.115607 | 79 | 0.770881 |
7918d6ad78059dfbd34468a3be7966805544562a | 6,321 | py | Python | test/multiapi/Expected/AcceptanceTests/Multiapi/multiapi/v3/aio/operations/_operation_group_two_operations.py | cfculhane/autorest.python | 8cbca95faee88d933a58bbbd17b76834faa8d387 | [
"MIT"
] | null | null | null | test/multiapi/Expected/AcceptanceTests/Multiapi/multiapi/v3/aio/operations/_operation_group_two_operations.py | cfculhane/autorest.python | 8cbca95faee88d933a58bbbd17b76834faa8d387 | [
"MIT"
] | null | null | null | test/multiapi/Expected/AcceptanceTests/Multiapi/multiapi/v3/aio/operations/_operation_group_two_operations.py | cfculhane/autorest.python | 8cbca95faee88d933a58bbbd17b76834faa8d387 | [
"MIT"
] | 1 | 2022-03-28T08:58:03.000Z | 2022-03-28T08:58:03.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 ... | 43 | 133 | 0.667774 |
7918f6f70acfe15e3c76493b84cf218520149495 | 654 | py | Python | client/verta/verta/_swagger/_public/modeldb/model/ModeldbAddProjectTags.py | CaptEmulation/modeldb | 78b10aca553e386554f9740db63466b1cf013a1a | [
"Apache-2.0"
] | 835 | 2017-02-08T20:14:24.000Z | 2020-03-12T17:37:49.000Z | client/verta/verta/_swagger/_public/modeldb/model/ModeldbAddProjectTags.py | CaptEmulation/modeldb | 78b10aca553e386554f9740db63466b1cf013a1a | [
"Apache-2.0"
] | 651 | 2019-04-18T12:55:07.000Z | 2022-03-31T23:45:09.000Z | client/verta/verta/_swagger/_public/modeldb/model/ModeldbAddProjectTags.py | CaptEmulation/modeldb | 78b10aca553e386554f9740db63466b1cf013a1a | [
"Apache-2.0"
] | 170 | 2017-02-13T14:49:22.000Z | 2020-02-19T17:59:12.000Z | # THIS FILE IS AUTO-GENERATED. DO NOT EDIT
from verta._swagger.base_type import BaseType
class ModeldbAddProjectTags(BaseType):
def __init__(self, id=None, tags=None):
required = {
"id": False,
"tags": False,
}
self.id = id
self.tags = tags
for k, v in required.items():
if self... | 21.8 | 62 | 0.597859 |
7918fc2048fbe13ed0142ebdbce33786d5354191 | 11,196 | py | Python | ninfs/mount/_common.py | Jhynjhiruu/ninfs | 9e0f5889cafd595c56e2db936177ef1b0f4ac02e | [
"MIT"
] | 213 | 2019-04-18T04:43:18.000Z | 2022-03-29T06:25:38.000Z | ninfs/mount/_common.py | Jhynjhiruu/ninfs | 9e0f5889cafd595c56e2db936177ef1b0f4ac02e | [
"MIT"
] | 55 | 2019-04-20T01:21:26.000Z | 2022-03-26T02:40:17.000Z | ninfs/mount/_common.py | Jhynjhiruu/ninfs | 9e0f5889cafd595c56e2db936177ef1b0f4ac02e | [
"MIT"
] | 17 | 2019-05-11T22:15:31.000Z | 2021-10-06T03:46:51.000Z | # This file is a part of ninfs.
#
# Copyright (c) 2017-2021 Ian Burgwin
# This file is licensed under The MIT License (MIT).
# You can find the full license text in LICENSE.md in the root of this project.
import logging
import time
from argparse import ArgumentParser, SUPPRESS
from errno import EROFS
from functools im... | 30.016086 | 112 | 0.602358 |
79190b208af8f45dd2b8bc5fb0096c0f79c71204 | 14,447 | py | Python | scripts/search_ml_model_params.py | musicpiano/mlmicrophysics | 720e09b9003285e4e601df8befd58337bee691f5 | [
"MIT"
] | 4 | 2021-01-05T13:18:28.000Z | 2021-09-29T09:53:28.000Z | scripts/search_ml_model_params.py | musicpiano/mlmicrophysics | 720e09b9003285e4e601df8befd58337bee691f5 | [
"MIT"
] | 5 | 2020-11-16T15:53:24.000Z | 2021-07-22T20:16:11.000Z | scripts/search_ml_model_params.py | musicpiano/mlmicrophysics | 720e09b9003285e4e601df8befd58337bee691f5 | [
"MIT"
] | 4 | 2020-07-08T13:04:44.000Z | 2022-01-09T13:36:55.000Z | import numpy as np
import yaml
from dask.distributed import Client, LocalCluster, as_completed
import argparse
from os.path import exists, join
from os import makedirs
from mlmicrophysics.data import subset_data_files_by_date, assemble_data_files
from sklearn.ensemble import RandomForestRegressor, RandomForestClassifie... | 54.31203 | 170 | 0.558386 |
79190b4fdaa47385b188f0a5ef50e02316991efe | 127 | py | Python | quma/tests/fixtures/scripts/qmark/users/__init__.py | ernstla/quma | c9f7f14c4a3e016f69f9e3fc51543e38bef58dd4 | [
"MIT"
] | 16 | 2018-10-03T12:41:41.000Z | 2021-12-19T12:50:34.000Z | quma/tests/fixtures/scripts/qmark/users/__init__.py | ernstla/quma | c9f7f14c4a3e016f69f9e3fc51543e38bef58dd4 | [
"MIT"
] | null | null | null | quma/tests/fixtures/scripts/qmark/users/__init__.py | ernstla/quma | c9f7f14c4a3e016f69f9e3fc51543e38bef58dd4 | [
"MIT"
] | 1 | 2018-10-03T13:42:49.000Z | 2018-10-03T13:42:49.000Z | from quma import Namespace
class Users(Namespace):
alias = 'user'
def get_test(self, cursor):
return 'Test'
| 14.111111 | 31 | 0.645669 |
7919496450812aebf18c2eb29b459a4f6d5a03e7 | 705 | py | Python | Leetcode/easy/excel-sheet-column-title.py | jen-sjen/data-structures-basics-leetcode | addac32974b16e0a37aa60c210ab7820b349b279 | [
"MIT"
] | 6 | 2021-07-29T03:26:20.000Z | 2022-01-28T15:11:45.000Z | Leetcode/easy/excel-sheet-column-title.py | jen-sjen/data-structures-basics-leetcode | addac32974b16e0a37aa60c210ab7820b349b279 | [
"MIT"
] | 2 | 2021-09-30T09:47:23.000Z | 2022-01-31T03:08:24.000Z | Leetcode/easy/excel-sheet-column-title.py | jen-sjen/data-structures-basics-leetcode | addac32974b16e0a37aa60c210ab7820b349b279 | [
"MIT"
] | 5 | 2021-08-10T06:41:11.000Z | 2022-01-29T17:50:20.000Z | """
# EXCEL SHEET COLUMN TITLE
Given a positive integer, return its corresponding column title as appear in an Excel sheet.
For example:
1 -> A
2 -> B
3 -> C
...
26 -> Z
27 -> AA
28 -> AB
...
Example 1:
Input: 1
Output: "A"
Example 2:
Input: 28
Output: "AB"
Example 3:
Input: 70... | 15 | 92 | 0.434043 |
79196ec94cc4b8ee39ecdfcf7420fc458021997b | 3,034 | py | Python | psak_src/psak_src/exploit_modules/ping.py | Syslog777/psak | da9fd58a2e90adf8882019a04ddbdc2eede872cd | [
"BSD-3-Clause"
] | 28 | 2017-12-12T12:16:13.000Z | 2022-02-23T04:34:35.000Z | psak_src/psak_src/exploit_modules/ping.py | Syslog777/psak | da9fd58a2e90adf8882019a04ddbdc2eede872cd | [
"BSD-3-Clause"
] | 7 | 2017-12-12T11:53:20.000Z | 2020-01-25T10:13:40.000Z | psak_src/psak_src/exploit_modules/ping.py | Syslog777/psak | da9fd58a2e90adf8882019a04ddbdc2eede872cd | [
"BSD-3-Clause"
] | 10 | 2018-01-02T20:30:07.000Z | 2020-05-06T20:26:08.000Z | """
Copyright (c) 2017, Syslog777
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... | 40.453333 | 82 | 0.636454 |
7919878f4085d6d12cdcb153170df1fa3bde8e8d | 1,035 | py | Python | my_hello_world_app/web_api/router.py | gsjay980/data-science-IP | 715550d1cbf67e552c0df533619460c0fee15b94 | [
"MIT"
] | 5 | 2020-05-26T09:33:54.000Z | 2021-07-01T02:42:30.000Z | my_hello_world_app/web_api/router.py | gsjay980/data-science-IP | 715550d1cbf67e552c0df533619460c0fee15b94 | [
"MIT"
] | 3 | 2019-12-26T17:34:24.000Z | 2020-02-04T03:16:23.000Z | my_hello_world_app/web_api/router.py | gsjay980/data-science-IP | 715550d1cbf67e552c0df533619460c0fee15b94 | [
"MIT"
] | 2 | 2021-12-17T00:46:03.000Z | 2022-02-26T11:04:55.000Z | from os import getenv
from typing import Optional, Dict
from flask import Flask
TestConfig = Optional[Dict[str, bool]]
def create_app(test_config: TestConfig = None) -> Flask:
""" App factory method to initialize the application with given configuration """
app: Flask = Flask(__name__)
if test_config ... | 32.34375 | 97 | 0.672464 |
7919aa84d1a408738e672c271489923f7f808a23 | 66,019 | py | Python | igraph/clustering.py | tuandnvn/ecat_learning | fe797a088baec356e08b2e3cd56c7b73dd37c843 | [
"MIT"
] | 2 | 2017-03-07T04:01:59.000Z | 2017-05-02T17:19:29.000Z | igraph/clustering.py | tuandnvn/ecat_learning | fe797a088baec356e08b2e3cd56c7b73dd37c843 | [
"MIT"
] | null | null | null | igraph/clustering.py | tuandnvn/ecat_learning | fe797a088baec356e08b2e3cd56c7b73dd37c843 | [
"MIT"
] | null | null | null | # vim:ts=4:sw=4:sts=4:et
# -*- coding: utf-8 -*-
"""Classes related to graph clustering.
@undocumented: _handle_mark_groups_arg_for_clustering, _prepare_community_comparison"""
__license__ = u"""
Copyright (C) 2006-2012 Tamás Nepusz <ntamas@gmail.com>
Pázmány Péter sétány 1/a, 1117 Budapest, Hungary
This program is... | 39.722623 | 95 | 0.622215 |
7919bce32e34e8dc29fa0501f55437a8b1d74bb2 | 1,572 | py | Python | tests/test_gen_uml.py | MarianelaSena/gaphor | f1ccc2e2ae98d7fad54f6dd9271e8e10fbb2e324 | [
"Apache-2.0"
] | null | null | null | tests/test_gen_uml.py | MarianelaSena/gaphor | f1ccc2e2ae98d7fad54f6dd9271e8e10fbb2e324 | [
"Apache-2.0"
] | null | null | null | tests/test_gen_uml.py | MarianelaSena/gaphor | f1ccc2e2ae98d7fad54f6dd9271e8e10fbb2e324 | [
"Apache-2.0"
] | null | null | null | """Test case that checks the working of the utils/command/gen_uml.py module."""
from utils.model.gen_uml import generate
import importlib_metadata
class PseudoFile:
def __init__(self):
self.data = ""
def write(self, data):
self.data += data
def close(self):
pass
def test_loadi... | 32.081633 | 102 | 0.721374 |
7919beb345969d0c3b668ef29bd30c52b2b44167 | 8,467 | py | Python | papers/jfm2022_optimizing_control_bayesian_method/views/sketches.py | anton-pershin/restools | eb141f0989617db796d106de1b0824161ccaa0aa | [
"MIT"
] | null | null | null | papers/jfm2022_optimizing_control_bayesian_method/views/sketches.py | anton-pershin/restools | eb141f0989617db796d106de1b0824161ccaa0aa | [
"MIT"
] | null | null | null | papers/jfm2022_optimizing_control_bayesian_method/views/sketches.py | anton-pershin/restools | eb141f0989617db796d106de1b0824161ccaa0aa | [
"MIT"
] | null | null | null | import os
import sys
sys.path.append(os.getcwd())
import numpy as np
import matplotlib.pyplot as plt
from scipy.stats import beta
from restools.plotting import rasterise_and_save
from papers.jfm2020_probabilistic_protocol.data import Summary as SummaryProbProto
from papers.jfm2020_probabilistic_protocol.extensions im... | 40.903382 | 128 | 0.619228 |
791a06ecf209ba5f9631a72dd8e57f00075408be | 395 | py | Python | cancel.py | griswaldbrooks/gdax-tools | d24743b0edc3f47ae79dc2b92cdbffc85b7e38c4 | [
"MIT"
] | null | null | null | cancel.py | griswaldbrooks/gdax-tools | d24743b0edc3f47ae79dc2b92cdbffc85b7e38c4 | [
"MIT"
] | null | null | null | cancel.py | griswaldbrooks/gdax-tools | d24743b0edc3f47ae79dc2b92cdbffc85b7e38c4 | [
"MIT"
] | null | null | null | import gdax
import os
import json
API_KEY = os.environ['GDAX_API_KEY']
API_SECRET = os.environ['GDAX_API_SECRET']
API_PASS = os.environ['GDAX_API_PASS']
def main():
'''
Cancels all bitcoin orders.
'''
client = gdax.AuthenticatedClient(API_KEY, API_SECRET, API_PASS)
r = client.cancel_all(product='... | 18.809524 | 68 | 0.686076 |
791a1bb3b5f6ac2dda03109cae1ccf20ef947217 | 124 | py | Python | terms/urls.py | kevin-ci/janeric2 | df07508a76ad8194a63be7786d8b84a905b3d2e9 | [
"MIT"
] | 1 | 2021-02-28T11:54:14.000Z | 2021-02-28T11:54:14.000Z | terms/urls.py | kevin-ci/janeric2 | df07508a76ad8194a63be7786d8b84a905b3d2e9 | [
"MIT"
] | 6 | 2021-12-01T11:39:03.000Z | 2021-12-04T22:28:57.000Z | terms/urls.py | kevin-ci/janeric2 | df07508a76ad8194a63be7786d8b84a905b3d2e9 | [
"MIT"
] | 1 | 2021-12-21T16:20:49.000Z | 2021-12-21T16:20:49.000Z | from django.urls import path
from . import views
urlpatterns = [
path('', views.TermsList.as_view(), name='terms'),
]
| 15.5 | 54 | 0.677419 |
791a226cb20c6487249972643d8b87052851c37f | 1,901 | py | Python | xos/tosca/resources/port.py | xmaruto/mcord | 3678a3d10c3703c2b73f396c293faebf0c82a4f4 | [
"Apache-2.0"
] | null | null | null | xos/tosca/resources/port.py | xmaruto/mcord | 3678a3d10c3703c2b73f396c293faebf0c82a4f4 | [
"Apache-2.0"
] | null | null | null | xos/tosca/resources/port.py | xmaruto/mcord | 3678a3d10c3703c2b73f396c293faebf0c82a4f4 | [
"Apache-2.0"
] | null | null | null | import os
import pdb
import sys
import tempfile
sys.path.append("/opt/tosca")
from translator.toscalib.tosca_template import ToscaTemplate
from core.models import Instance,User,Network,NetworkTemplate,Port
from xosresource import XOSResource
class XOSPort(XOSResource):
provides = ["tosca.nodes.network.Port"]
... | 30.66129 | 127 | 0.662809 |
791a34f6aaeb80b8df810cbc853de7ddeac91948 | 2,873 | py | Python | sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/migrate_sql_server_sql_db_task_properties.py | pjquirk/azure-sdk-for-python | cbf02ec4f177b96eae1dbbba87c34c2c93880150 | [
"MIT"
] | 1 | 2021-09-07T18:36:04.000Z | 2021-09-07T18:36:04.000Z | sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/migrate_sql_server_sql_db_task_properties.py | pjquirk/azure-sdk-for-python | cbf02ec4f177b96eae1dbbba87c34c2c93880150 | [
"MIT"
] | 2 | 2019-10-02T23:37:38.000Z | 2020-10-02T01:17:31.000Z | sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/migrate_sql_server_sql_db_task_properties.py | xiafu-msft/azure-sdk-for-python | 4d9560cfd519ee60667f3cc2f5295a58c18625db | [
"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 ... | 41.637681 | 82 | 0.641142 |
791a5000fddec3217e16dd5cf76785563dc4b458 | 2,581 | py | Python | homeassistant/components/ais_qrcode/camera.py | stravinci/AIS-home-assistant | ead4dafd3f801ebeb32860bd34443ed24a4f4167 | [
"Apache-2.0"
] | 1 | 2020-05-11T19:20:07.000Z | 2020-05-11T19:20:07.000Z | homeassistant/components/ais_qrcode/camera.py | stravinci/AIS-home-assistant | ead4dafd3f801ebeb32860bd34443ed24a4f4167 | [
"Apache-2.0"
] | null | null | null | homeassistant/components/ais_qrcode/camera.py | stravinci/AIS-home-assistant | ead4dafd3f801ebeb32860bd34443ed24a4f4167 | [
"Apache-2.0"
] | null | null | null | import logging
import io
from homeassistant.core import callback
from homeassistant.components.ais_dom import ais_global
from homeassistant.const import EVENT_HOMEASSISTANT_START
from homeassistant.components.camera import Camera
from homeassistant.helpers.event import async_track_state_change
from datetime import time... | 27.168421 | 87 | 0.655172 |
791a94b005b4e2979932186befd647647047c71a | 939 | py | Python | markovgen.py | SeanMcGrath/MarkovLatex | a75807a87cb1e0a9d12ae4149b17beb520d3371b | [
"MIT"
] | null | null | null | markovgen.py | SeanMcGrath/MarkovLatex | a75807a87cb1e0a9d12ae4149b17beb520d3371b | [
"MIT"
] | null | null | null | markovgen.py | SeanMcGrath/MarkovLatex | a75807a87cb1e0a9d12ae4149b17beb520d3371b | [
"MIT"
] | null | null | null | #!/usr/bin/env python
from markovLatex.markov import TextGenerator
import argparse, sys
def main(args):
parser = argparse.ArgumentParser(description="Generate pseudorandom text from input text files.")
parser.add_argument('files', type=str, nargs='+', help='one or more input text files')
parser.add_argum... | 27.617647 | 117 | 0.614483 |
791acd35b42f12d4ffa76a23f2bb10684a215000 | 8,993 | py | Python | airflow_client/test/test_dag_collection_all_of.py | sptsakcg/airflow-client-python | 38a14e8641988f8cc88a5b27632ef4198bdb2843 | [
"Apache-2.0"
] | null | null | null | airflow_client/test/test_dag_collection_all_of.py | sptsakcg/airflow-client-python | 38a14e8641988f8cc88a5b27632ef4198bdb2843 | [
"Apache-2.0"
] | null | null | null | airflow_client/test/test_dag_collection_all_of.py | sptsakcg/airflow-client-python | 38a14e8641988f8cc88a5b27632ef4198bdb2843 | [
"Apache-2.0"
] | null | null | null | """
Airflow API (Stable)
# Overview To facilitate management, Apache Airflow supports a range of REST API endpoints across its objects. This section provides an overview of the API design, methods, and supported use cases. Most of the endpoints accept `JSON` as input and return `JSON` responses. This means t... | 230.589744 | 8,173 | 0.759813 |
791aef36da9b38d6fdfb666f673cdb87fd1f4809 | 3,589 | py | Python | flexget/plugins/parsers/plugin_parsing.py | sillygreen89/Flexget | 60f24ab0dda7b94c87ba43451921c50c3cef391f | [
"MIT"
] | 1 | 2018-05-02T21:14:50.000Z | 2018-05-02T21:14:50.000Z | flexget/plugins/parsers/plugin_parsing.py | sillygreen89/Flexget | 60f24ab0dda7b94c87ba43451921c50c3cef391f | [
"MIT"
] | null | null | null | flexget/plugins/parsers/plugin_parsing.py | sillygreen89/Flexget | 60f24ab0dda7b94c87ba43451921c50c3cef391f | [
"MIT"
] | null | null | null | from __future__ import unicode_literals, division, absolute_import
from builtins import * # pylint: disable=unused-import, redefined-builtin
import logging
from flexget import plugin
from flexget.event import event
log = logging.getLogger('parsing')
PARSER_TYPES = ['movie', 'series']
# Mapping of parser type to (m... | 39.43956 | 118 | 0.667317 |
791af60fc9cf02ff8befb90f5a25cbc2fa85c633 | 52,269 | py | Python | saspy/sasdata.py | kjnh10/saspy | 6d0e1dbc0933b9561394550f6ce42b0a31f9426d | [
"Apache-2.0"
] | null | null | null | saspy/sasdata.py | kjnh10/saspy | 6d0e1dbc0933b9561394550f6ce42b0a31f9426d | [
"Apache-2.0"
] | null | null | null | saspy/sasdata.py | kjnh10/saspy | 6d0e1dbc0933b9561394550f6ce42b0a31f9426d | [
"Apache-2.0"
] | null | null | null | #
# Copyright SAS Institute
#
# 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... | 38.832838 | 161 | 0.499244 |
791af654979b979f7f9b4ef07929eeb2b1894dfd | 132 | py | Python | bflib/monsters/undeads/base.py | ChrisLR/BasicDungeonRL | b293d40bd9a0d3b7aec41b5e1d58441165997ff1 | [
"MIT"
] | 3 | 2017-10-28T11:28:38.000Z | 2018-09-12T09:47:00.000Z | bflib/monsters/undeads/base.py | ChrisLR/BasicDungeonRL | b293d40bd9a0d3b7aec41b5e1d58441165997ff1 | [
"MIT"
] | null | null | null | bflib/monsters/undeads/base.py | ChrisLR/BasicDungeonRL | b293d40bd9a0d3b7aec41b5e1d58441165997ff1 | [
"MIT"
] | null | null | null | from bflib.monsters import listing
from bflib.monsters.base import Monster
@listing.register_type
class Undead(Monster):
pass
| 16.5 | 39 | 0.80303 |
791b1f43aa4efb6e9610e6d71fe9fb54519508b6 | 233 | py | Python | practice/24.py | porala/python | 41213189a9b35b5b8c40c048f4d6cd3f8e5f25f4 | [
"DOC"
] | 1 | 2020-01-15T11:04:16.000Z | 2020-01-15T11:04:16.000Z | practice/24.py | porala/python | 41213189a9b35b5b8c40c048f4d6cd3f8e5f25f4 | [
"DOC"
] | 2 | 2021-03-31T19:36:19.000Z | 2021-06-10T22:29:26.000Z | practice/24.py | porala/python | 41213189a9b35b5b8c40c048f4d6cd3f8e5f25f4 | [
"DOC"
] | null | null | null | #Complete the script so it prints out the expected output
d = dict(a = list(range(1, 11)), b = list(range(11, 21)), c = list(range(21, 31)))
print(d.items())
for key, value in d.items():
print(key, "has value", value)
| 25.888889 | 83 | 0.618026 |
791b734ebcfc41514e076c249fd7666b7ed56dc6 | 1,329 | py | Python | capstoneproject/helpers/form_helper.py | athrun22/content-rating | 25ccdb02edd18d0118d60fce609b60baadef257b | [
"Apache-2.0"
] | 1 | 2018-02-08T01:50:37.000Z | 2018-02-08T01:50:37.000Z | capstoneproject/helpers/form_helper.py | jwillikers/content-rating | 25ccdb02edd18d0118d60fce609b60baadef257b | [
"Apache-2.0"
] | null | null | null | capstoneproject/helpers/form_helper.py | jwillikers/content-rating | 25ccdb02edd18d0118d60fce609b60baadef257b | [
"Apache-2.0"
] | null | null | null | """
This class contains functions to interact between user interactions provided through HTML requests and the forms that
the user is using.
"""
from django.contrib.auth import authenticate
from django.contrib.auth import login as auth_login
def signup(form, request):
"""
This function saves a new user accoun... | 35.918919 | 117 | 0.730625 |
791b737a98be3365b9f45fb4b21c92ea62d53844 | 1,656 | py | Python | diffprivlib/__init__.py | Jakondak/differential-privacy-library | c26bab301f2554b52c8bd836b28091f2f2611cd4 | [
"MIT"
] | 1 | 2020-05-03T06:06:44.000Z | 2020-05-03T06:06:44.000Z | diffprivlib/__init__.py | dohmatob/differential-privacy-library | 1a17bf0e3bf7d18d5c19258abbf81c27fd9a5e16 | [
"MIT"
] | null | null | null | diffprivlib/__init__.py | dohmatob/differential-privacy-library | 1a17bf0e3bf7d18d5c19258abbf81c27fd9a5e16 | [
"MIT"
] | 1 | 2022-01-02T11:29:30.000Z | 2022-01-02T11:29:30.000Z | # MIT License
#
# Copyright (C) IBM Corporation 2019
#
# 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... | 51.75 | 120 | 0.778986 |
791b93ee627f13e4f594f45db7af00946541b13b | 634 | py | Python | bin/rst2pseudoxml.py | drpaneas/linuxed.gr | 95676e9f18a234092656c61b73b9e6633f2e39ec | [
"MIT"
] | null | null | null | bin/rst2pseudoxml.py | drpaneas/linuxed.gr | 95676e9f18a234092656c61b73b9e6633f2e39ec | [
"MIT"
] | null | null | null | bin/rst2pseudoxml.py | drpaneas/linuxed.gr | 95676e9f18a234092656c61b73b9e6633f2e39ec | [
"MIT"
] | null | null | null | #!/Users/drpaneas/Virtualenvs/linuxed/bin/python2.7
# $Id: rst2pseudoxml.py 4564 2006-05-21 20:44:42Z wiemann $
# Author: David Goodger <goodger@python.org>
# Copyright: This module has been placed in the public domain.
"""
A minimal front end to the Docutils Publisher, producing pseudo-XML.
"""
try:
import loca... | 26.416667 | 73 | 0.744479 |
791bbfcc30e2b1fd175ded58ae014f340f3c3a46 | 551 | py | Python | resources/keys.py | MujyKun/IreneAPI | 6f2105c64991753b8e4520f6b624a2cf5fbc9519 | [
"MIT"
] | 1 | 2021-12-20T23:22:02.000Z | 2021-12-20T23:22:02.000Z | resources/keys.py | MujyKun/IreneAPI | 6f2105c64991753b8e4520f6b624a2cf5fbc9519 | [
"MIT"
] | null | null | null | resources/keys.py | MujyKun/IreneAPI | 6f2105c64991753b8e4520f6b624a2cf5fbc9519 | [
"MIT"
] | null | null | null | import psycopg2
import os
from dotenv import load_dotenv
load_dotenv() # Adds .env to memory
# postgres db connection
postgres_options = {
"host": os.getenv("POSTGRES_HOST"),
"database": os.getenv("POSTGRES_DATABASE"),
"user": os.getenv("POSTGRES_USER"),
"password": os.getenv("POSTGRES_PASSWORD")
... | 22.04 | 61 | 0.715064 |
791bc06351ec4083a4dd05259397d02a6c41fc9e | 10,912 | py | Python | datalad/customremotes/tests/test_archives.py | soichih/datalad | 797dde3ab7497be170e2c4ea8824f33a4b38e5d8 | [
"MIT"
] | null | null | null | datalad/customremotes/tests/test_archives.py | soichih/datalad | 797dde3ab7497be170e2c4ea8824f33a4b38e5d8 | [
"MIT"
] | null | null | null | datalad/customremotes/tests/test_archives.py | soichih/datalad | 797dde3ab7497be170e2c4ea8824f33a4b38e5d8 | [
"MIT"
] | null | null | null | # emacs: -*- mode: python; py-indent-offset: 4; tab-width: 4; indent-tabs-mode: nil -*-
# ex: set sts=4 ts=4 sw=4 et:
# ## ### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ##
#
# See COPYING file distributed along with the datalad package for the
# copyright and license terms.
#
# ## ### ### ... | 36.740741 | 116 | 0.660007 |
791bc296b1ef89239b8c5c58444752a6e422d3fe | 5,539 | py | Python | grader_e2e/fixtures/binary/django/5/test.py | HackSoftware/HackGraderTests | 7bddb1a3c44a1a92c7ac387da7d43dcbc3d4befd | [
"MIT"
] | null | null | null | grader_e2e/fixtures/binary/django/5/test.py | HackSoftware/HackGraderTests | 7bddb1a3c44a1a92c7ac387da7d43dcbc3d4befd | [
"MIT"
] | 2 | 2020-06-05T17:54:26.000Z | 2021-06-01T22:17:14.000Z | grader_e2e/fixtures/binary/django/5/test.py | HackSoftware/HackGraderTests | 7bddb1a3c44a1a92c7ac387da7d43dcbc3d4befd | [
"MIT"
] | null | null | null | import uuid
import re
import requests
import unittest
import shlex
from subprocess import Popen, call
import time
UUID4_REGEX = re.compile('([a-zA-Z]|[0-9]){8}\-([a-zA-Z]|[0-9]){4}\-([a-zA-Z]|[0-9]){4}\-([a-zA-Z]|[0-9]){4}\-([a-zA-Z]|[0-9]){12}')
BASE_URL = 'http://localhost:8000/storage'
CREATE_USER_URL = BASE_URL +... | 32.582353 | 132 | 0.681892 |
791bf50f25ee77a3e47a89721dd9c6b9ef96047b | 6,919 | py | Python | ios/dateparser/lib/python2.7/site-packages/ruamel/yaml/composer.py | mpercich/Calendarize | d658962d5d205f878afd9876cb64b5381964f112 | [
"MIT"
] | null | null | null | ios/dateparser/lib/python2.7/site-packages/ruamel/yaml/composer.py | mpercich/Calendarize | d658962d5d205f878afd9876cb64b5381964f112 | [
"MIT"
] | null | null | null | ios/dateparser/lib/python2.7/site-packages/ruamel/yaml/composer.py | mpercich/Calendarize | d658962d5d205f878afd9876cb64b5381964f112 | [
"MIT"
] | null | null | null | # coding: utf-8
from __future__ import absolute_import
from __future__ import print_function
import warnings
from ruamel.yaml.error import MarkedYAMLError, ReusedAnchorWarning
from ruamel.yaml.compat import utf8
from ruamel.yaml.events import (
StreamStartEvent, StreamEndEvent, MappingStartEvent, MappingEndEven... | 37.603261 | 92 | 0.599798 |
791c0d8d347ae2c5c4658668d35e155c0e43500e | 585 | py | Python | dataprep/tests/benchmarks/eda.py | Waterpine/dataprep-1 | 4032acb1d1f2c413d4cb000d17e8ffa611315f9f | [
"MIT"
] | 1,229 | 2019-12-21T02:58:59.000Z | 2022-03-30T08:12:33.000Z | dataprep/tests/benchmarks/eda.py | Waterpine/dataprep-1 | 4032acb1d1f2c413d4cb000d17e8ffa611315f9f | [
"MIT"
] | 680 | 2019-12-19T06:09:23.000Z | 2022-03-31T04:15:25.000Z | dataprep/tests/benchmarks/eda.py | Waterpine/dataprep-1 | 4032acb1d1f2c413d4cb000d17e8ffa611315f9f | [
"MIT"
] | 170 | 2020-01-08T03:27:26.000Z | 2022-03-20T20:42:55.000Z | """
This module is for performance testing of EDA module in github action.
"""
from functools import partial
import pandas as pd
from typing import Any
from ...datasets import load_dataset
from ...eda import create_report
def report_func(df: pd.DataFrame, **kwargs: Any) -> None:
"""
Create report function, us... | 24.375 | 70 | 0.705983 |
791c252a892c0fa2fc5d61da7cc9303cfe591ff6 | 1,084 | py | Python | sdks/python/test/test_DistributionGroupAppsDeleteRequest.py | Brantone/appcenter-sdks | eeb063ecf79908b6e341fb00196d2cd9dc8f3262 | [
"MIT"
] | null | null | null | sdks/python/test/test_DistributionGroupAppsDeleteRequest.py | Brantone/appcenter-sdks | eeb063ecf79908b6e341fb00196d2cd9dc8f3262 | [
"MIT"
] | 6 | 2019-10-23T06:38:53.000Z | 2022-01-22T07:57:58.000Z | sdks/python/test/test_DistributionGroupAppsDeleteRequest.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
"""
from __future__ import absolute_import
import unittest
import appcente... | 27.1 | 133 | 0.760148 |
791c74720692c159f62c5a39156fed40ac4c8479 | 4,569 | py | Python | server/danesfield_server/algorithms/msi_to_rgb.py | Kitware/Danesfield-App | 70d9f5c7c5af2ca92d274c99175783ea43087592 | [
"Apache-2.0"
] | 25 | 2018-12-19T08:45:13.000Z | 2022-03-27T14:20:42.000Z | server/danesfield_server/algorithms/msi_to_rgb.py | Kitware/Danesfield-App | 70d9f5c7c5af2ca92d274c99175783ea43087592 | [
"Apache-2.0"
] | 10 | 2018-11-30T22:21:45.000Z | 2022-01-21T19:43:47.000Z | server/danesfield_server/algorithms/msi_to_rgb.py | Kitware/Danesfield-App | 70d9f5c7c5af2ca92d274c99175783ea43087592 | [
"Apache-2.0"
] | 7 | 2018-12-03T21:42:53.000Z | 2021-09-07T17:09:10.000Z | #!/usr/bin/env python
# -*- coding: utf-8 -*-
###############################################################################
# Copyright Kitware Inc. and Contributors
# Distributed under the Apache License, 2.0 (apache.org/licenses/LICENSE-2.0)
# See accompanying Copyright.txt and LICENSE files for details
##########... | 33.108696 | 88 | 0.642591 |
791c77e75167aab072bced93a39eb38ed76a3146 | 11,826 | py | Python | airflow/providers/cncf/kubernetes/utils/pod_launcher.py | kevin0120/airflow | fa263cbf0ac002bdb26239ce36d5dc2a1b6251fd | [
"Apache-2.0"
] | 1 | 2021-03-03T07:00:02.000Z | 2021-03-03T07:00:02.000Z | airflow/providers/cncf/kubernetes/utils/pod_launcher.py | kevin0120/airflow | fa263cbf0ac002bdb26239ce36d5dc2a1b6251fd | [
"Apache-2.0"
] | 36 | 2021-11-26T00:08:49.000Z | 2021-11-26T00:09:33.000Z | airflow/providers/cncf/kubernetes/utils/pod_launcher.py | kevin0120/airflow | fa263cbf0ac002bdb26239ce36d5dc2a1b6251fd | [
"Apache-2.0"
] | 3 | 2020-06-30T02:38:17.000Z | 2022-01-19T06:14:08.000Z | # Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not u... | 38.148387 | 109 | 0.624472 |
791c89600c26bf22650221566c00dc396c778d03 | 564 | py | Python | core/migrations/0022_auto_20210331_1623.py | IS-AgroSmart/MVP | b347e7c846a9a29584a6baee0b825381d5bc62a3 | [
"CNRI-Python"
] | null | null | null | core/migrations/0022_auto_20210331_1623.py | IS-AgroSmart/MVP | b347e7c846a9a29584a6baee0b825381d5bc62a3 | [
"CNRI-Python"
] | 140 | 2020-01-21T15:42:29.000Z | 2021-08-21T18:04:19.000Z | core/migrations/0022_auto_20210331_1623.py | IS-AgroSmart/AgroSmart-Web | b347e7c846a9a29584a6baee0b825381d5bc62a3 | [
"CNRI-Python"
] | 1 | 2021-05-03T06:12:35.000Z | 2021-05-03T06:12:35.000Z | # Generated by Django 3.0.1 on 2021-03-31 21:23
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('core', '0021_user_used_space'),
]
operations = [
migrations.AddField(
model_name='user',
name='maximum_space',
... | 23.5 | 64 | 0.592199 |
791ca0e1fa969dd1c1ac91858fce292164298abb | 973 | py | Python | camera_skeleton.py | korrawat/athack-susan | 6cbe32d8ccac0726279739f6cdb276310afbad6d | [
"MIT"
] | null | null | null | camera_skeleton.py | korrawat/athack-susan | 6cbe32d8ccac0726279739f6cdb276310afbad6d | [
"MIT"
] | null | null | null | camera_skeleton.py | korrawat/athack-susan | 6cbe32d8ccac0726279739f6cdb276310afbad6d | [
"MIT"
] | null | null | null | import cv2
import os
import numpy as np
from image_processor import process_image
from processor_properties import ProcessorProperties
import time
class Camera:
def __init__(self):
self.cap = cv2.VideoCapture(0)
def snapshot(self):
ret, frame = self.cap.read()
return frame
if __nam... | 27.027778 | 69 | 0.599178 |
791ca17bab45a00d9db5fc5c58f2c609a582af66 | 2,668 | py | Python | fonty/lib/terminal_size.py | jamesssooi/font-cli | c98227606ad5c6ebeab01f70d754db29b8406f44 | [
"Apache-2.0"
] | 12 | 2018-05-02T05:59:31.000Z | 2022-03-15T13:03:26.000Z | fonty/lib/terminal_size.py | jamesssooi/font-cli | c98227606ad5c6ebeab01f70d754db29b8406f44 | [
"Apache-2.0"
] | null | null | null | fonty/lib/terminal_size.py | jamesssooi/font-cli | c98227606ad5c6ebeab01f70d754db29b8406f44 | [
"Apache-2.0"
] | 2 | 2018-05-02T05:59:40.000Z | 2020-04-19T13:18:09.000Z | '''fonty.lib.terminal_size
Cross platform module to retrieve size of terminal/cmd
Adapted from: https://gist.github.com/jtriley/1108174
'''
import os
import shlex
import struct
import platform
import subprocess
def get_terminal_size():
""" getTerminalSize()
- get width and height of console
- works on l... | 30.318182 | 104 | 0.60045 |
791ca41351375671c531150e997014bdcc003c4d | 9,409 | py | Python | qcodes/monitor/monitor.py | ctschnur/Qcodes | 623e39aa3774da8b7aa062734a85f4e1f79a635b | [
"MIT"
] | 1 | 2020-10-19T08:09:04.000Z | 2020-10-19T08:09:04.000Z | qcodes/monitor/monitor.py | ctschnur/Qcodes | 623e39aa3774da8b7aa062734a85f4e1f79a635b | [
"MIT"
] | 206 | 2020-10-01T06:33:56.000Z | 2022-03-29T16:08:08.000Z | qcodes/monitor/monitor.py | Akshita07/Qcodes | f75e4786e268f415935aa4658d92526279c7a102 | [
"MIT"
] | null | null | null | #! /usr/bin/env python
# -*- coding: utf-8 -*-
# vim:fenc=utf-8
#
# Copyright © 2017 unga <giulioungaretti@me.com>
#
# Distributed under terms of the MIT license.
"""
Monitor a set of parameters in a background thread
stream output over websocket
To start monitor, run this file, or if qcodes is installed as a module:
... | 33.967509 | 89 | 0.610054 |
791ca5397cf53e6a91c26f5a0a7331baddd11b3a | 9,545 | py | Python | packages/main/src/RPA/Netsuite.py | FormulatedAutomation/rpaframework | 7704d20540fe5ada0c10bd48605afb5d4697b497 | [
"Apache-2.0"
] | null | null | null | packages/main/src/RPA/Netsuite.py | FormulatedAutomation/rpaframework | 7704d20540fe5ada0c10bd48605afb5d4697b497 | [
"Apache-2.0"
] | null | null | null | packages/main/src/RPA/Netsuite.py | FormulatedAutomation/rpaframework | 7704d20540fe5ada0c10bd48605afb5d4697b497 | [
"Apache-2.0"
] | 1 | 2021-02-11T21:00:11.000Z | 2021-02-11T21:00:11.000Z | from functools import wraps
import itertools
import logging
from netsuitesdk import NetSuiteConnection
from netsuitesdk.internal.client import NetSuiteClient
from netsuitesdk.internal.utils import PaginatedSearch
from robot.libraries.BuiltIn import BuiltIn, RobotNotRunningError
from RPA.core.helpers import required_e... | 34.089286 | 88 | 0.642535 |
791cd7d56ad5f7a8928d30513195f9045fb13e2f | 457 | py | Python | terrascript/provider/alertmixer/amixr.py | mjuenema/python-terrascript | 6d8bb0273a14bfeb8ff8e950fe36f97f7c6e7b1d | [
"BSD-2-Clause"
] | 507 | 2017-07-26T02:58:38.000Z | 2022-01-21T12:35:13.000Z | terrascript/provider/alertmixer/amixr.py | mjuenema/python-terrascript | 6d8bb0273a14bfeb8ff8e950fe36f97f7c6e7b1d | [
"BSD-2-Clause"
] | 135 | 2017-07-20T12:01:59.000Z | 2021-10-04T22:25:40.000Z | terrascript/provider/alertmixer/amixr.py | mjuenema/python-terrascript | 6d8bb0273a14bfeb8ff8e950fe36f97f7c6e7b1d | [
"BSD-2-Clause"
] | 81 | 2018-02-20T17:55:28.000Z | 2022-01-31T07:08:40.000Z | # terrascript/provider/alertmixer/amixr.py
# Automatically generated by tools/makecode.py (24-Sep-2021 15:11:40 UTC)
import terrascript
class amixr(terrascript.Provider):
""""""
__description__ = ""
__namespace__ = "alertmixer"
__name__ = "amixr"
__source__ = "https://github.com/alertmixer/terra... | 22.85 | 73 | 0.691466 |
791cef0150c4e4b13ade904535690f42e4782584 | 19,312 | py | Python | kubric/renderer/blender.py | Xtuden-com/kubric | e31bf6a32eada4465fe5a03af88e99e626f53522 | [
"Apache-2.0"
] | null | null | null | kubric/renderer/blender.py | Xtuden-com/kubric | e31bf6a32eada4465fe5a03af88e99e626f53522 | [
"Apache-2.0"
] | null | null | null | kubric/renderer/blender.py | Xtuden-com/kubric | e31bf6a32eada4465fe5a03af88e99e626f53522 | [
"Apache-2.0"
] | null | null | null | # Copyright 2020 The Kubric Authors
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# https://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in wr... | 39.900826 | 112 | 0.713546 |
791d0a41386b6038e88428faf23b3f1c09cfe501 | 8,312 | py | Python | assignments/2018/assignment1/cs231n/classifiers/k_nearest_neighbor.py | dpetrini/cs231n.github.io | 7dc3be43c523889eafebdef3dc65ef35aab69d16 | [
"MIT"
] | null | null | null | assignments/2018/assignment1/cs231n/classifiers/k_nearest_neighbor.py | dpetrini/cs231n.github.io | 7dc3be43c523889eafebdef3dc65ef35aab69d16 | [
"MIT"
] | null | null | null | assignments/2018/assignment1/cs231n/classifiers/k_nearest_neighbor.py | dpetrini/cs231n.github.io | 7dc3be43c523889eafebdef3dc65ef35aab69d16 | [
"MIT"
] | null | null | null | import numpy as np
class KNearestNeighbor(object):
""" a kNN classifier with L2 distance """
def __init__(self):
pass
def train(self, X, y):
"""
Train the classifier. For k-nearest neighbors this is just
memorizing the training data.
Inputs:
- X: A numpy array of shape (num_train, D) ... | 44.212766 | 93 | 0.464509 |
791d7838a24f08ef6e4ed084dd54a132469fdaa5 | 19,457 | py | Python | src/config/fabric-ansible/job_manager/job_handler.py | sasikrishna2014/contrail-controller | 27ec672dc0ea720fe2ed10743ddefbe09f6305e0 | [
"Apache-2.0"
] | null | null | null | src/config/fabric-ansible/job_manager/job_handler.py | sasikrishna2014/contrail-controller | 27ec672dc0ea720fe2ed10743ddefbe09f6305e0 | [
"Apache-2.0"
] | null | null | null | src/config/fabric-ansible/job_manager/job_handler.py | sasikrishna2014/contrail-controller | 27ec672dc0ea720fe2ed10743ddefbe09f6305e0 | [
"Apache-2.0"
] | null | null | null | #
# Copyright (c) 2018 Juniper Networks, Inc. All rights reserved.
#
"""
This file contains job manager api which involves playbook interactions
"""
import os
import uuid
import json
import subprocess32
import traceback
import ast
import time
import gevent
import requests
import xml.etree.ElementTree as etree
from j... | 44.020362 | 79 | 0.526751 |
791d81e933688515afb80d532902be33554504b5 | 78,761 | py | Python | resources.py | frankbroniewski/qgis-pag-plugin | c3c3c42e1e11065394789566307109f7efdb574d | [
"MIT"
] | null | null | null | resources.py | frankbroniewski/qgis-pag-plugin | c3c3c42e1e11065394789566307109f7efdb574d | [
"MIT"
] | 108 | 2015-09-01T12:28:28.000Z | 2021-02-02T07:51:30.000Z | resources.py | frankbroniewski/qgis-pag-plugin | c3c3c42e1e11065394789566307109f7efdb574d | [
"MIT"
] | 2 | 2018-12-04T09:57:07.000Z | 2021-10-14T06:32:14.000Z | # -*- coding: utf-8 -*-
# Resource object code
#
# Created: mer. 14. sept. 10:51:53 2016
# by: The Resource Compiler for PyQt (Qt v4.8.5)
#
# WARNING! All changes made in this file will be lost!
from PyQt4 import QtCore
qt_resource_data = "\
\x00\x00\x07\xea\
\x89\
\x50\x4e\x47\x0d\x0a\x1a\x0a\x00\x00\x00\x0d\x... | 62.163378 | 105 | 0.726311 |
791d8ef67360d0725dddb768ef7bae9d929a8148 | 376 | py | Python | migrations/versions/0304a_merge.py | cds-snc/notifier-api | 90b385ec49efbaee7e607516fc7d9f08991af813 | [
"MIT"
] | 41 | 2019-11-28T16:58:41.000Z | 2022-01-28T21:11:16.000Z | migrations/versions/0304a_merge.py | cds-snc/notification-api | b1c1064f291eb860b494c3fa65ac256ad70bf47c | [
"MIT"
] | 1,083 | 2019-07-08T12:57:24.000Z | 2022-03-08T18:53:40.000Z | migrations/versions/0304a_merge.py | cds-snc/notifier-api | 90b385ec49efbaee7e607516fc7d9f08991af813 | [
"MIT"
] | 9 | 2020-01-24T19:56:43.000Z | 2022-01-27T21:36:53.000Z | """
Revision ID: 0304a_merge
Revises: 0304_remove_org_to_service, 0303a_merge
Create Date: 2019-07-29 16:18:27.467361
"""
# revision identifiers, used by Alembic.
revision = "0304a_merge"
down_revision = ("0304_remove_org_to_service", "0303a_merge")
branch_labels = None
import sqlalchemy as sa
from alembic import o... | 15.666667 | 61 | 0.75 |
791dc82cc2c24ad34a123d3391cdfeabeb3b6e03 | 6,766 | py | Python | gradient-boosting/main.py | ofir-frd/Machine-Learning-Bootcamp | 71233cf3764b528c39438d5d45b433f094456717 | [
"Apache-2.0"
] | null | null | null | gradient-boosting/main.py | ofir-frd/Machine-Learning-Bootcamp | 71233cf3764b528c39438d5d45b433f094456717 | [
"Apache-2.0"
] | null | null | null | gradient-boosting/main.py | ofir-frd/Machine-Learning-Bootcamp | 71233cf3764b528c39438d5d45b433f094456717 | [
"Apache-2.0"
] | null | null | null | import numpy as np
import pandas as pd
from sklearn.tree import DecisionTreeRegressor
from sklearn.model_selection import KFold
import plotly.express as px
from plotly.subplots import make_subplots
import plotly.graph_objects as go
# import data and preprocess it
def preprocessing(file_name: str):
# ... | 41.509202 | 121 | 0.671593 |
791dea65be5907caf94c271d80cc04736ba15609 | 1,222 | py | Python | setup.py | elistevens/esper | c54bd44d6528feed6ca01c5f423a89027c21e3b3 | [
"MIT"
] | 366 | 2015-12-25T23:37:58.000Z | 2022-03-19T09:36:13.000Z | setup.py | elistevens/esper | c54bd44d6528feed6ca01c5f423a89027c21e3b3 | [
"MIT"
] | 60 | 2015-12-26T04:13:40.000Z | 2022-03-15T10:57:29.000Z | setup.py | elistevens/esper | c54bd44d6528feed6ca01c5f423a89027c21e3b3 | [
"MIT"
] | 67 | 2016-01-07T12:09:08.000Z | 2022-03-28T20:26:47.000Z | from setuptools import setup
with open('esper/__init__.py') as f:
info = {}
for line in f.readlines():
if line.startswith('version'):
exec(line, info)
break
README = open('README.rst').read()
setup(name='esper',
version=info['version'],
author='Benjamin Moran',
... | 37.030303 | 104 | 0.592471 |
791e000c5d6312e3d2e61ea236173c5bc475d714 | 11,475 | py | Python | src/gedml/launcher/managers/base_manager.py | wangck20/GeDML | 1f76ac2094d7b88be7fd4eb6145e5586e547b9ca | [
"MIT"
] | null | null | null | src/gedml/launcher/managers/base_manager.py | wangck20/GeDML | 1f76ac2094d7b88be7fd4eb6145e5586e547b9ca | [
"MIT"
] | null | null | null | src/gedml/launcher/managers/base_manager.py | wangck20/GeDML | 1f76ac2094d7b88be7fd4eb6145e5586e547b9ca | [
"MIT"
] | null | null | null | import torch
from torch.nn.parallel import DistributedDataParallel as DDP
import torch.distributed as dist
import logging
import pandas as pd
import traceback
from ...core import models
from ..misc import utils
class BaseManager:
"""
Manager all modules and computation devices. Support three kinds of comput... | 32.692308 | 135 | 0.542484 |
791e1e7fe22ce905f55a154e70fb2c6a67ec3c1d | 15,593 | py | Python | python-scripts/gt_add_sine_attributes.py | freemanpro/gt-tools | d24c81b047f680fe8d35ae99cd0effcbb21b73bc | [
"MIT"
] | null | null | null | python-scripts/gt_add_sine_attributes.py | freemanpro/gt-tools | d24c81b047f680fe8d35ae99cd0effcbb21b73bc | [
"MIT"
] | null | null | null | python-scripts/gt_add_sine_attributes.py | freemanpro/gt-tools | d24c81b047f680fe8d35ae99cd0effcbb21b73bc | [
"MIT"
] | null | null | null | """
Create Sine function without using third-party plugins or expressions.
@Guilherme Trevisan - github.com/TrevisanGMW - 2021-01-25
1.0 - 2021-01-25
Initial Release
"""
try:
from shiboken2 import wrapInstance
except ImportError:
from shiboken import wrapInstance
try:
from PySide2.Q... | 46.27003 | 207 | 0.621946 |
791e47ea47b65a4216521c6b6bb1288dca0cf171 | 6,044 | py | Python | src/facial_landmarks_detection.py | ElisaCovato/Computer-pointer-controller---Intel-Edge-AI-Nanodegree | 89e626b5591f543139d9cdab0dec9a6d8db53c6d | [
"MIT"
] | 1 | 2021-01-19T13:56:56.000Z | 2021-01-19T13:56:56.000Z | src/facial_landmarks_detection.py | ElisaCovato/Computer-pointer-controller---Intel-Edge-AI-Nanodegree | 89e626b5591f543139d9cdab0dec9a6d8db53c6d | [
"MIT"
] | 4 | 2021-06-08T21:51:26.000Z | 2022-03-12T00:37:12.000Z | src/facial_landmarks_detection.py | ElisaCovato/Computer-pointer-controller---Intel-Edge-AI-Nanodegree | 89e626b5591f543139d9cdab0dec9a6d8db53c6d | [
"MIT"
] | null | null | null | import logging as log
import cv2
import sys
import numpy as np
class LandmarksDetectionModel:
'''
Class for the Face Landmarks Detection Model.
Load and configure inference plugins for the specified target devices,
and performs either synchronous or asynchronous modes for the
specified infer requ... | 38.74359 | 119 | 0.627895 |
791e6c75ee5e44282973c9deb22c6e587a8604ab | 10,712 | py | Python | esky/sudo/__init__.py | omnivore/esky | 39e77deacf3e48d4d5d7a46701d9ef0f5593820d | [
"BSD-3-Clause"
] | 190 | 2015-01-05T09:18:52.000Z | 2022-03-08T08:15:12.000Z | esky/sudo/__init__.py | omnivore/esky | 39e77deacf3e48d4d5d7a46701d9ef0f5593820d | [
"BSD-3-Clause"
] | 100 | 2015-01-16T13:59:08.000Z | 2018-02-25T02:36:51.000Z | esky/sudo/__init__.py | omnivore/esky | 39e77deacf3e48d4d5d7a46701d9ef0f5593820d | [
"BSD-3-Clause"
] | 58 | 2015-01-30T18:29:51.000Z | 2022-03-12T04:47:27.000Z | # Copyright (c) 2009-2010, Cloud Matrix Pty. Ltd.
# All rights reserved; available under the terms of the BSD License.
"""
esky.sudo: spawn a root-privileged helper app to process esky updates.
This module provides the infrastructure for spawning a stand-alone "helper app"
to install updates with root privileges... | 31.976119 | 79 | 0.567868 |
791e84507d590d016ffd9bee3ec9d6ddd7b27864 | 1,706 | py | Python | python/phonenumbers/data/region_MQ.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_MQ.py | Eyepea/python-phonenumbers | 0336e191fda80a21ed5c19d5e029ad8c70f620ee | [
"Apache-2.0"
] | null | null | null | python/phonenumbers/data/region_MQ.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. MQ metadata"""
from ..phonemetadata import NumberFormat, PhoneNumberDesc, PhoneMetadata
PHONE_METADATA_MQ = PhoneMetadata(id='MQ', country_code=596, international_prefix='00',
general_desc=PhoneNumberDesc(national_number_pattern='[56]\\d{8}', possible_number_pattern='\\... | 85.3 | 182 | 0.759672 |
791e9cc6a687b53781322cb8b55252d7f09c0cd4 | 11,826 | py | Python | Tests/TestMultisineSpacing.py | UASLab/OpenFlightAnalysis | b5ecb3ea7ff82f5fb21efa7e9cbee60bf68aea37 | [
"MIT"
] | 7 | 2019-03-15T17:28:35.000Z | 2022-02-11T07:27:40.000Z | Tests/TestMultisineSpacing.py | UASLab/OpenFlightAnalysis | b5ecb3ea7ff82f5fb21efa7e9cbee60bf68aea37 | [
"MIT"
] | null | null | null | Tests/TestMultisineSpacing.py | UASLab/OpenFlightAnalysis | b5ecb3ea7ff82f5fb21efa7e9cbee60bf68aea37 | [
"MIT"
] | 2 | 2021-05-15T06:23:50.000Z | 2022-03-04T19:38:39.000Z | """
University of Minnesota
Aerospace Engineering and Mechanics - UAV Lab
Copyright 2019 Regents of the University of Minnesota
See: LICENSE.md for complete license details
Author: Chris Regan
Example script for generating Schroeder type Multisine Excitations.
"""
import numpy as np
import matplotlib.pyplot as plt
... | 32.223433 | 196 | 0.671909 |
791eb687781a6c2319f746ee29beb157416d6cbf | 67 | py | Python | survae/transforms/stochastic/__init__.py | alisiahkoohi/survae_flows | e1747b05524c7ab540a211ed360ab3e67bc3e96d | [
"MIT"
] | 262 | 2020-07-05T20:57:44.000Z | 2022-03-28T02:24:43.000Z | survae/transforms/stochastic/__init__.py | alisiahkoohi/survae_flows | e1747b05524c7ab540a211ed360ab3e67bc3e96d | [
"MIT"
] | 17 | 2020-08-15T05:43:34.000Z | 2022-01-31T12:24:21.000Z | survae/transforms/stochastic/__init__.py | alisiahkoohi/survae_flows | e1747b05524c7ab540a211ed360ab3e67bc3e96d | [
"MIT"
] | 35 | 2020-08-24T06:55:37.000Z | 2022-02-11T05:17:58.000Z | from .base import *
from .vae import *
from .permutation import *
| 13.4 | 26 | 0.716418 |
791ec1a35cb2095eaea784032485e5d6ab858603 | 1,780 | py | Python | tests/common/test_op/ascend/globalavgpool.py | tianjiashuo/akg | a9cbf642063fb1086a93e8bc6be6feb145689817 | [
"Apache-2.0"
] | 286 | 2020-06-23T06:40:44.000Z | 2022-03-30T01:27:49.000Z | tests/common/test_op/ascend/globalavgpool.py | tianjiashuo/akg | a9cbf642063fb1086a93e8bc6be6feb145689817 | [
"Apache-2.0"
] | 10 | 2020-07-31T03:26:59.000Z | 2021-12-27T15:00:54.000Z | tests/common/test_op/ascend/globalavgpool.py | tianjiashuo/akg | a9cbf642063fb1086a93e8bc6be6feb145689817 | [
"Apache-2.0"
] | 30 | 2020-07-17T01:04:14.000Z | 2021-12-27T14:05:19.000Z | # Copyright 2019-2021 Huawei Technologies Co., Ltd
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agre... | 35.6 | 104 | 0.685393 |
791ee46817ca5eb9626ea62d2b7ce7ce6f7a4680 | 5,449 | py | Python | src/mcidle/networking/packets/clientbound/__init__.py | sijanec/mcidle-python | e951b5c55b1f2270e6492b115de79581d5c763bb | [
"MIT"
] | 35 | 2018-12-04T14:54:00.000Z | 2021-12-12T21:09:12.000Z | src/mcidle/networking/packets/clientbound/__init__.py | sijanec/mcidle-python | e951b5c55b1f2270e6492b115de79581d5c763bb | [
"MIT"
] | 7 | 2019-03-05T21:55:28.000Z | 2021-03-07T23:06:50.000Z | src/mcidle/networking/packets/clientbound/__init__.py | sijanec/mcidle-python | e951b5c55b1f2270e6492b115de79581d5c763bb | [
"MIT"
] | 9 | 2019-06-17T03:05:56.000Z | 2020-10-23T10:21:58.000Z | from mcidle.networking.packets.packet import Packet
from mcidle.networking.types import String, VarIntPrefixedByteArray, VarInt, Integer, VarIntArray, \
Long, Byte, Double, Float, Boolean, UUID, Short, UnsignedByte
"""
Note: not using an OrderedDict for `definition` will break
in anything older than Python 3.7.1... | 23.386266 | 100 | 0.572949 |
791f00c7059cbe10a9bce965530a2f0da988c1e4 | 24 | py | Python | btd6_memory_info/generated/Facepunch/Steamworks/Achievements/achievements.py | 56kyle/bloons_auto | 419d55b51d1cddc49099593970adf1c67985b389 | [
"MIT"
] | null | null | null | btd6_memory_info/generated/Facepunch/Steamworks/Achievements/achievements.py | 56kyle/bloons_auto | 419d55b51d1cddc49099593970adf1c67985b389 | [
"MIT"
] | null | null | null | btd6_memory_info/generated/Facepunch/Steamworks/Achievements/achievements.py | 56kyle/bloons_auto | 419d55b51d1cddc49099593970adf1c67985b389 | [
"MIT"
] | null | null | null | class Achievements: pass | 24 | 24 | 0.875 |
791f178cf9a40424decabe918d088c01c67377c4 | 10,019 | py | Python | amundsen_application/api/utils/notification_utils.py | gabrielucelli/amundsenfrontendlibrary | f4fef4f836c6e5482dd71add78ca3611dcd829c3 | [
"Apache-2.0"
] | 1 | 2020-03-17T19:12:06.000Z | 2020-03-17T19:12:06.000Z | amundsen_application/api/utils/notification_utils.py | gabrielucelli/amundsenfrontendlibrary | f4fef4f836c6e5482dd71add78ca3611dcd829c3 | [
"Apache-2.0"
] | null | null | null | amundsen_application/api/utils/notification_utils.py | gabrielucelli/amundsenfrontendlibrary | f4fef4f836c6e5482dd71add78ca3611dcd829c3 | [
"Apache-2.0"
] | null | null | null | import logging
from http import HTTPStatus
from enum import Enum
from flask import current_app as app
from flask import jsonify, make_response, Response
from typing import Dict, List
from amundsen_application.api.exceptions import MailClientNotImplemented
from amundsen_application.log.action_log import action_loggin... | 45.540909 | 122 | 0.643976 |
791f32c381b417c2af54f08da44d21f31b65afab | 2,334 | py | Python | test/unit/tools/test_conda_resolution.py | tdans1/Use-Galaxy | e9f05cb1b11db20a729ac73520f886ee619c6b90 | [
"CC-BY-3.0"
] | 4 | 2018-10-29T18:34:38.000Z | 2021-09-29T23:30:42.000Z | test/unit/tools/test_conda_resolution.py | tdans1/Use-Galaxy | e9f05cb1b11db20a729ac73520f886ee619c6b90 | [
"CC-BY-3.0"
] | 1 | 2019-02-04T16:21:27.000Z | 2019-02-04T16:45:17.000Z | test/unit/tools/test_conda_resolution.py | chambm/galaxy | fd1926767996a161cd2fc8bd184e6835fd688765 | [
"CC-BY-3.0"
] | 3 | 2020-02-12T15:22:24.000Z | 2021-08-19T10:27:39.000Z | import os
import shutil
import unittest
from tempfile import mkdtemp
from galaxy.tools.deps import (
conda_util,
DependencyManager
)
from galaxy.tools.deps.requirements import ToolRequirement
from galaxy.tools.deps.resolvers.conda import CondaDependencyResolver
def skip_unless_environ(var):
if var in os.... | 37.047619 | 96 | 0.701371 |
791f445233f972af63e534b01af37b5eee534f01 | 531 | py | Python | authorization/migrations/0017_auto_20200806_0429.py | Joost-dm/jooster | 04f3fa979b689b61a4aeae8a5309a09277404fd6 | [
"MIT"
] | 1 | 2020-06-17T02:51:35.000Z | 2020-06-17T02:51:35.000Z | authorization/migrations/0017_auto_20200806_0429.py | Joost-dm/jooster | 04f3fa979b689b61a4aeae8a5309a09277404fd6 | [
"MIT"
] | 7 | 2020-06-06T18:32:37.000Z | 2022-03-12T00:33:42.000Z | authorization/migrations/0017_auto_20200806_0429.py | Joost-dm/jooster | 04f3fa979b689b61a4aeae8a5309a09277404fd6 | [
"MIT"
] | null | null | null | # Generated by Django 3.0.7 on 2020-08-06 01:29
import authorization.models
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('authorization', '0016_auto_20200806_0338'),
]
operations = [
migrations.AlterField(
model_name='cust... | 26.55 | 157 | 0.6742 |
791f4c8f0c811b78a615396cbec205d2ddace675 | 3,899 | py | Python | zhaquirks/smartthings/tag_v4.py | artmg/zha-device-handlers | 5b30b8b0ffb8ff2b23ea4ce8dcbf0fa556843c1c | [
"Apache-2.0"
] | null | null | null | zhaquirks/smartthings/tag_v4.py | artmg/zha-device-handlers | 5b30b8b0ffb8ff2b23ea4ce8dcbf0fa556843c1c | [
"Apache-2.0"
] | null | null | null | zhaquirks/smartthings/tag_v4.py | artmg/zha-device-handlers | 5b30b8b0ffb8ff2b23ea4ce8dcbf0fa556843c1c | [
"Apache-2.0"
] | null | null | null | """Device handler for smartthings tagV4 sensors."""
import logging
import homeassistant.components.zha.const as zha_const
from zigpy.profiles import PROFILES, zha
from zigpy.zcl.clusters.general import Basic, Identify,\
PollControl, Ota, BinaryInput
from zigpy.quirks import CustomDevice
from zhaquirks import LocalD... | 29.315789 | 70 | 0.605796 |
791f57457724840637dd11c7a6730407efa8f053 | 1,585 | py | Python | tools/awa/create_awa_meta.py | soumye/dialog_without_dialog | 9f95d6fb457659f9007445d9036b94e639bddd8b | [
"MIT"
] | 3 | 2020-09-08T23:19:51.000Z | 2021-07-21T11:12:48.000Z | tools/awa/create_awa_meta.py | soumye/dialog_without_dialog | 9f95d6fb457659f9007445d9036b94e639bddd8b | [
"MIT"
] | 2 | 2021-01-08T02:08:09.000Z | 2021-11-15T23:51:02.000Z | tools/awa/create_awa_meta.py | soumye/dialog_without_dialog | 9f95d6fb457659f9007445d9036b94e639bddd8b | [
"MIT"
] | 2 | 2020-11-10T15:53:03.000Z | 2020-12-11T03:24:00.000Z | import argparse
import os.path as pth
import json
import glob
import random
parser = argparse.ArgumentParser()
parser.add_argument('--awa-dir', default='datasets/Animals_with_Attributes2/')
parser.add_argument('--out-file', default='data/awa_meta.json')
args = parser.parse_args()
awa_dir = args.awa_dir
with open(p... | 27.327586 | 78 | 0.620189 |
791f5883160528971861eded937dec83437d2400 | 355 | py | Python | shelter/templatetags/female_filter.py | kermox/schronisko-krakow | 8f8c546894e4b683ce463debad27db72ef820f90 | [
"MIT"
] | 1 | 2020-11-17T18:50:44.000Z | 2020-11-17T18:50:44.000Z | shelter/templatetags/female_filter.py | kermox/schronisko-krakow | 8f8c546894e4b683ce463debad27db72ef820f90 | [
"MIT"
] | 9 | 2020-10-23T18:42:45.000Z | 2022-03-12T00:39:57.000Z | shelter/templatetags/female_filter.py | kermox/schronisko-krakow | 8f8c546894e4b683ce463debad27db72ef820f90 | [
"MIT"
] | null | null | null | from django import template
from django.template.defaultfilters import stringfilter
register = template.Library()
@register.filter(name='female_filter')
@stringfilter
def female_filter(variable):
"""
Simple function to know the gender by name ending. If name ends with 'a' - it is female's name.
"""
r... | 23.666667 | 99 | 0.721127 |
791f79ff612cc74e4ddf5306a3a77fffa38ea3c4 | 6,041 | py | Python | syft/workers/websocket_server.py | Ankit-Dhankhar/PySyft | 750bd2c3987a570ef1dc8554b933696d416724c7 | [
"Apache-2.0"
] | 1 | 2019-07-09T09:57:23.000Z | 2019-07-09T09:57:23.000Z | syft/workers/websocket_server.py | souravs17031999/PySyft | cd0a134288ab041884537b04eb65358c4d53a471 | [
"Apache-2.0"
] | null | null | null | syft/workers/websocket_server.py | souravs17031999/PySyft | cd0a134288ab041884537b04eb65358c4d53a471 | [
"Apache-2.0"
] | 1 | 2021-04-18T15:27:15.000Z | 2021-04-18T15:27:15.000Z | import asyncio
import binascii
import logging
import socket
import ssl
import sys
from typing import Union
from typing import List
import tblib.pickling_support
import torch
import websockets
import syft as sy
from syft.federated import FederatedClient
from syft.generic.tensor import AbstractTensor
from syft.workers.... | 33.192308 | 90 | 0.622248 |
791f7c9c10ab1812c3f36dc0923d5e8df94d8818 | 56,309 | py | Python | lib/anitraintools.py | plin1112/ANI-Tools | 76280c918fc79fee8c266b8bc9ab57f86104ec99 | [
"MIT"
] | 8 | 2018-10-30T16:48:44.000Z | 2021-03-08T01:44:41.000Z | lib/anitraintools.py | plin1112/ANI-Tools | 76280c918fc79fee8c266b8bc9ab57f86104ec99 | [
"MIT"
] | null | null | null | lib/anitraintools.py | plin1112/ANI-Tools | 76280c918fc79fee8c266b8bc9ab57f86104ec99 | [
"MIT"
] | 5 | 2018-04-05T15:51:12.000Z | 2019-05-23T21:38:31.000Z | import hdnntools as hdt
import pyanitools as pyt
import pyNeuroChem as pync
from pyNeuroChem import cachegenerator as cg
import numpy as np
from scipy.integrate import quad
import pandas as pd
from time import sleep
import subprocess
import random
import re
import os
from multiprocessing import Process
import shut... | 41.927774 | 288 | 0.47028 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.