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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
6237f0339981149359b6cbdbf7112e0798057089 | 1,039 | py | Python | textbox/evaluator/meteor_evaluator.py | StevenTang1998/TextBox | acd8298c7e6618384d585146f799d02cc475520c | [
"MIT"
] | 347 | 2021-01-09T07:55:55.000Z | 2022-03-27T00:46:36.000Z | textbox/evaluator/meteor_evaluator.py | Timothy023/TextBox | bb96e16bcfa63a7f84461b5678f7718566385a8d | [
"MIT"
] | 18 | 2021-01-12T07:37:06.000Z | 2022-01-11T02:26:49.000Z | textbox/evaluator/meteor_evaluator.py | Timothy023/TextBox | bb96e16bcfa63a7f84461b5678f7718566385a8d | [
"MIT"
] | 67 | 2021-01-09T07:23:52.000Z | 2022-03-27T12:02:12.000Z | # @Time : 2021/4/19
# @Author : Lai Xu
# @Email : tsui_lai@163.com
"""
textbox.evaluator.meteor_evaluator
#######################################
"""
import numpy as np
from nltk.translate.meteor_score import meteor_score
from textbox.evaluator.abstract_evaluator import AbstractEvaluator
class MeteorEvaluator(Ab... | 31.484848 | 108 | 0.692012 |
6237f05f956e2d7094a57e189fbbe64d5a39f8d5 | 2,969 | py | Python | masci_tools/tests/test_kkr_plotting.py | JPchico/masci-tools | a950f492ecebcc1b15100e5dc891f5a6fa6c1a5b | [
"MIT"
] | 1 | 2021-06-26T20:37:12.000Z | 2021-06-26T20:37:12.000Z | masci_tools/tests/test_kkr_plotting.py | RubelMozumder/masci-tools | a950f492ecebcc1b15100e5dc891f5a6fa6c1a5b | [
"MIT"
] | null | null | null | masci_tools/tests/test_kkr_plotting.py | RubelMozumder/masci-tools | a950f492ecebcc1b15100e5dc891f5a6fa6c1a5b | [
"MIT"
] | null | null | null | #!/usr/bin/env python
from __future__ import absolute_import
from builtins import object
import pytest
# prevent issue with not having a display on travis-ci
# this needs to go *before* pyplot imports
import matplotlib
from six.moves import range
matplotlib.use('Agg')
from matplotlib.pyplot import gcf, title
from masc... | 40.121622 | 147 | 0.709667 |
6238217c6ced207ef7be10ff21b111ba50d4ebf6 | 15,589 | py | Python | src/python/pants/backend/jvm/targets/jvm_binary.py | dturner-tw/pants | 3a04f2e46bf2b8fb0a7999c09e4ffdf9057ed33f | [
"Apache-2.0"
] | null | null | null | src/python/pants/backend/jvm/targets/jvm_binary.py | dturner-tw/pants | 3a04f2e46bf2b8fb0a7999c09e4ffdf9057ed33f | [
"Apache-2.0"
] | null | null | null | src/python/pants/backend/jvm/targets/jvm_binary.py | dturner-tw/pants | 3a04f2e46bf2b8fb0a7999c09e4ffdf9057ed33f | [
"Apache-2.0"
] | null | null | null | # coding=utf-8
# Copyright 2014 Pants project contributors (see CONTRIBUTORS.md).
# Licensed under the Apache License, Version 2.0 (see LICENSE).
from __future__ import (absolute_import, division, generators, nested_scopes, print_function,
unicode_literals, with_statement)
import re
from hashl... | 39.971795 | 100 | 0.681763 |
6238328d1ec6bcb03d0f159f1c878e5d8670bb42 | 978 | py | Python | vyperlogix/wx/PopUpDialog.py | raychorn/chrome_gui | f1fade70b61af12ee43c55c075aa9cfd32caa962 | [
"CC0-1.0"
] | 1 | 2020-09-29T01:36:33.000Z | 2020-09-29T01:36:33.000Z | vyperlogix/wx/PopUpDialog.py | raychorn/chrome_gui | f1fade70b61af12ee43c55c075aa9cfd32caa962 | [
"CC0-1.0"
] | null | null | null | vyperlogix/wx/PopUpDialog.py | raychorn/chrome_gui | f1fade70b61af12ee43c55c075aa9cfd32caa962 | [
"CC0-1.0"
] | null | null | null | import wx
def wx_PopUp_Dialog(parent=None,msg='',title='INFO',styles=wx.CANCEL|wx.ICON_INFORMATION):
'''styles can be one of the following:
wx.OK ................ show Ok button
wx.CANCEL ............ show Cancel button
wx.YES_NO .............show Yes, No buttons
wx.YES_DEFAULT ........make Yes but... | 39.12 | 92 | 0.616564 |
62385ac1ff98939c2bbc634e2e29c28821ab080e | 9,057 | py | Python | ncskos/test/test_ld_functions.py | GeoscienceAustralia/ncskos | d94dc66188ee120c01f6ccdfb85276da313b3d02 | [
"CC-BY-4.0"
] | 1 | 2019-05-31T19:13:53.000Z | 2019-05-31T19:13:53.000Z | ncskos/test/test_ld_functions.py | GeoscienceAustralia/ncskos | d94dc66188ee120c01f6ccdfb85276da313b3d02 | [
"CC-BY-4.0"
] | null | null | null | ncskos/test/test_ld_functions.py | GeoscienceAustralia/ncskos | d94dc66188ee120c01f6ccdfb85276da313b3d02 | [
"CC-BY-4.0"
] | null | null | null | """
Unit tests for ld_functions against a test URI
Created on 5Oct.,2016
@author: Alex Ip
"""
import unittest
from pprint import pprint
from ncskos import ld_functions # ConceptFetcher, CliValuesValidator
SHOW_DEBUG_OUTPUT = False
TEST_SKOS_PARAMS = {
'lang': 'pl',
'altLabels': True,
'narrower': True,
... | 35.517647 | 116 | 0.681683 |
6238607c9ba206558f879ebba08ccaa67711f387 | 66,206 | py | Python | storage/tests/test_storage.py | globocom/vault | 4909cc022476e59022a1dc55d1bbabf49873ca80 | [
"Apache-2.0"
] | 15 | 2015-03-19T13:05:06.000Z | 2021-08-13T19:17:25.000Z | storage/tests/test_storage.py | globocom/vault | 4909cc022476e59022a1dc55d1bbabf49873ca80 | [
"Apache-2.0"
] | 24 | 2015-02-24T14:20:06.000Z | 2021-12-15T13:33:52.000Z | storage/tests/test_storage.py | globocom/vault | 4909cc022476e59022a1dc55d1bbabf49873ca80 | [
"Apache-2.0"
] | 11 | 2016-09-12T07:54:01.000Z | 2021-10-31T20:26:43.000Z | # -*- coding: utf-8 -*-
from unittest.mock import patch, Mock
from unittest import TestCase
import requests
from swiftclient import client
from django.urls import reverse
from django.utils.translation import gettext as _
from django.test.utils import override_settings
from django.contrib.auth.models import Group, Us... | 40.994427 | 152 | 0.6455 |
62389320c597af9658d67a2d31e801880a0c1686 | 2,469 | py | Python | syncmanagerclient/syncmanagerclient/clients/git_settings.py | Frie-man/syncmanager | f76e36f85ea68ab177a9ffd50dfff033ae0fc8f6 | [
"MIT"
] | null | null | null | syncmanagerclient/syncmanagerclient/clients/git_settings.py | Frie-man/syncmanager | f76e36f85ea68ab177a9ffd50dfff033ae0fc8f6 | [
"MIT"
] | null | null | null | syncmanagerclient/syncmanagerclient/clients/git_settings.py | Frie-man/syncmanager | f76e36f85ea68ab177a9ffd50dfff033ae0fc8f6 | [
"MIT"
] | null | null | null | import re
from git import Repo
from ..util.system import sanitize_path
class GitClientSettings:
def __init__(self):
self.errors = []
def set_config(self, config, *args):
self.source_path_short = config.get('source', None)
self.source_path = sanitize_path(self.source_path_short)
... | 34.291667 | 83 | 0.589712 |
6238974d4d202520d99117d1c7ab786d48a67ba3 | 823 | py | Python | migrations/versions/d3d693b8dd81_.py | Sjors/patron | a496097ad0821b677c8e710e8aceb587928be31c | [
"MIT"
] | 114 | 2018-12-30T20:43:37.000Z | 2022-03-21T18:57:47.000Z | migrations/versions/d3d693b8dd81_.py | Sjors/patron | a496097ad0821b677c8e710e8aceb587928be31c | [
"MIT"
] | 17 | 2019-04-25T20:20:57.000Z | 2022-03-29T21:48:35.000Z | migrations/versions/d3d693b8dd81_.py | Sjors/patron | a496097ad0821b677c8e710e8aceb587928be31c | [
"MIT"
] | 17 | 2019-01-02T06:37:11.000Z | 2022-03-29T22:22:40.000Z | """empty message
Revision ID: d3d693b8dd81
Revises: d2028f25feb9
Create Date: 2019-01-07 19:45:49.636979
"""
from alembic import op
import sqlalchemy as sa
# revision identifiers, used by Alembic.
revision = 'd3d693b8dd81'
down_revision = 'd2028f25feb9'
branch_labels = None
depends_on = None
def upgrade():
# ... | 24.205882 | 70 | 0.686513 |
62389a4770bf6b5a349a26bed4257f551988b194 | 11,119 | py | Python | asprin/src/solver/metasp/reify.py | potassco/asprin | 42e296cdc70cacbbc4d699ef32ec903c83c8208a | [
"MIT"
] | 16 | 2016-11-16T17:24:42.000Z | 2022-01-08T16:19:46.000Z | asprin/src/solver/metasp/reify.py | potassco/asprin | 42e296cdc70cacbbc4d699ef32ec903c83c8208a | [
"MIT"
] | 10 | 2018-03-14T14:18:40.000Z | 2022-01-21T13:24:06.000Z | asprin/src/solver/metasp/reify.py | potassco/asprin | 42e296cdc70cacbbc4d699ef32ec903c83c8208a | [
"MIT"
] | 4 | 2018-03-10T04:25:45.000Z | 2020-10-20T09:43:08.000Z | # MIT License
#
# Copyright (c) 2017 Javier Romero
#
# 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... | 29.809651 | 90 | 0.560752 |
62389a8a1a760bacad476d1777cbfea8a7b87f5c | 5,523 | py | Python | tests/test_members.py | rricard/dxr | e5449d9e48980c7ea4c66b86dca9a4be8851999b | [
"MIT"
] | 1 | 2018-08-31T01:50:53.000Z | 2018-08-31T01:50:53.000Z | tests/test_members.py | tsharman/dxr | b05efe1fe96eb9aaab3b53f1410af9ed7db919f4 | [
"MIT"
] | null | null | null | tests/test_members.py | tsharman/dxr | b05efe1fe96eb9aaab3b53f1410af9ed7db919f4 | [
"MIT"
] | null | null | null | from dxr.testing import SingleFileTestCase, MINIMAL_MAIN
class MemberVariableTests(SingleFileTestCase):
source = """
class MemberVariable {
public:
int member_variable;
};
""" + MINIMAL_MAIN
def test_member_variable(self):
"""Test searching for memb... | 34.092593 | 109 | 0.518197 |
6238a4af3295d17d22ea3e543b9c72993dbd990b | 439 | py | Python | modisco/__init__.py | Bluedragon137/tfmodisco | d7c56b21e1bb58b07695ef3035f173b7d1a039e6 | [
"MIT"
] | 70 | 2018-05-21T01:47:12.000Z | 2022-03-12T04:15:27.000Z | modisco/__init__.py | Bluedragon137/tfmodisco | d7c56b21e1bb58b07695ef3035f173b7d1a039e6 | [
"MIT"
] | 36 | 2018-06-04T21:39:43.000Z | 2022-03-15T15:24:11.000Z | modisco/__init__.py | Bluedragon137/tfmodisco | d7c56b21e1bb58b07695ef3035f173b7d1a039e6 | [
"MIT"
] | 22 | 2018-06-04T19:51:15.000Z | 2022-03-06T23:27:18.000Z | from __future__ import division, print_function, absolute_import
from . import aggregator
from . import affinitymat
from . import coordproducers
from . import core
from . import gammamix
from . import metaclusterers
from . import nearest_neighbors
from . import util
from . import tfmodisco_workflow
from . import value_... | 27.4375 | 64 | 0.822323 |
6238acf593708916551b459e0169c27ff53fae57 | 7,751 | py | Python | DBFace/model/DBFaceReLU.py | riciche/SimpleCVReproduction | 4075de39f9c61f1359668a413f6a5d98903fcf97 | [
"Apache-2.0"
] | 923 | 2020-01-11T06:36:53.000Z | 2022-03-31T00:26:57.000Z | DBFace/model/DBFaceReLU.py | riciche/SimpleCVReproduction | 4075de39f9c61f1359668a413f6a5d98903fcf97 | [
"Apache-2.0"
] | 25 | 2020-02-27T08:35:46.000Z | 2022-01-25T08:54:19.000Z | DBFace/model/DBFaceReLU.py | riciche/SimpleCVReproduction | 4075de39f9c61f1359668a413f6a5d98903fcf97 | [
"Apache-2.0"
] | 262 | 2020-01-02T02:19:40.000Z | 2022-03-23T04:56:16.000Z |
import torch
import torch.nn as nn
import torch.nn.functional as F
class HSigmoid(nn.Module):
def forward(self, x):
out = F.relu6(x + 3, inplace=True) / 6
return out
class SeModule(nn.Module):
def __init__(self, in_size, reduction=4):
super(SeModule, self).__init__()
self.po... | 37.264423 | 152 | 0.570378 |
6238eb417b974317f472a0fcaa92ac121c58b0ff | 1,320 | py | Python | tf2onnx/tflite/ZerosLikeOptions.py | LoicDagnas/tensorflow-onnx | 6691850e79047d05d85017573170fd8240393b57 | [
"Apache-2.0"
] | 1,473 | 2018-03-16T02:47:33.000Z | 2022-03-31T03:43:52.000Z | tf2onnx/tflite/ZerosLikeOptions.py | LoicDagnas/tensorflow-onnx | 6691850e79047d05d85017573170fd8240393b57 | [
"Apache-2.0"
] | 1,208 | 2018-03-14T09:58:49.000Z | 2022-03-31T17:56:20.000Z | tf2onnx/tflite/ZerosLikeOptions.py | LoicDagnas/tensorflow-onnx | 6691850e79047d05d85017573170fd8240393b57 | [
"Apache-2.0"
] | 350 | 2018-04-03T03:48:40.000Z | 2022-03-30T11:23:55.000Z | # SPDX-License-Identifier: Apache-2.0
# automatically generated by the FlatBuffers compiler, do not modify
# namespace: tflite
import flatbuffers
from flatbuffers.compat import import_numpy
np = import_numpy()
class ZerosLikeOptions(object):
__slots__ = ['_tab']
@classmethod
def GetRootAs(cls, buf, off... | 33 | 114 | 0.713636 |
6238edb04fc29c4f006d00e22294a2fd2e3a8fe5 | 376 | py | Python | playback/utils/timing_utils.py | stjordanis/playback | 7e8ea29f764a52753aef4e3334fd9bcf7826e082 | [
"BSD-3-Clause"
] | 85 | 2021-03-10T15:11:09.000Z | 2022-03-07T13:03:48.000Z | playback/utils/timing_utils.py | stjordanis/playback | 7e8ea29f764a52753aef4e3334fd9bcf7826e082 | [
"BSD-3-Clause"
] | 35 | 2021-02-03T12:48:18.000Z | 2021-11-14T11:48:46.000Z | playback/utils/timing_utils.py | stjordanis/playback | 7e8ea29f764a52753aef4e3334fd9bcf7826e082 | [
"BSD-3-Clause"
] | 6 | 2021-02-03T14:19:49.000Z | 2021-08-11T06:43:35.000Z | from time import time
class Timed(object):
"""
Tiny timing util that execution time of the scope it wraps
"""
def __init__(self):
self.duration = None
self._start = None
def __enter__(self):
self._start = time()
return self
def __exit__(self, exc_type, exc_val... | 20.888889 | 62 | 0.609043 |
623911c75cf2a1df448d99a68e9f7ad771d8be56 | 2,585 | py | Python | twilight/utils/checks.py | Just-Jojo/Twilight-bot | 1256e9568b7d05e60fb9697df950435de72add38 | [
"MIT"
] | null | null | null | twilight/utils/checks.py | Just-Jojo/Twilight-bot | 1256e9568b7d05e60fb9697df950435de72add38 | [
"MIT"
] | 8 | 2020-11-17T04:57:17.000Z | 2021-03-19T22:25:49.000Z | twilight/utils/checks.py | Just-Jojo/Twilight-bot | 1256e9568b7d05e60fb9697df950435de72add38 | [
"MIT"
] | 2 | 2021-01-05T22:32:45.000Z | 2021-02-02T13:39:23.000Z | """
MIT License
Copyright (c) 2020-2021 Jojo#7711
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, publish... | 30.05814 | 78 | 0.723404 |
62392fadc2ac83a2937833bdaecf7f41909e63c9 | 3,972 | py | Python | intersight/models/equipment_locator_led_list.py | gumpcraca/intersight-python | 780e6703c739f329084beacbbf2ad7a6a2e59b2b | [
"Apache-2.0"
] | null | null | null | intersight/models/equipment_locator_led_list.py | gumpcraca/intersight-python | 780e6703c739f329084beacbbf2ad7a6a2e59b2b | [
"Apache-2.0"
] | null | null | null | intersight/models/equipment_locator_led_list.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 EquipmentLocatorLedList(object):
"""
NOTE: Th... | 25.792208 | 88 | 0.563192 |
6239367a322228ecf06ef8a864d1659eb6615af1 | 25,056 | py | Python | perfkitbenchmarker/providers/aws/aws_managed_relational_db.py | dPhanekham/PerfKitBenchmarker | e9fe13fb826ef875d3100c164a50dac638b756c3 | [
"Apache-2.0"
] | null | null | null | perfkitbenchmarker/providers/aws/aws_managed_relational_db.py | dPhanekham/PerfKitBenchmarker | e9fe13fb826ef875d3100c164a50dac638b756c3 | [
"Apache-2.0"
] | 1 | 2021-03-26T00:41:05.000Z | 2021-03-26T00:41:05.000Z | perfkitbenchmarker/providers/aws/aws_managed_relational_db.py | sachinpatkar/PerfKitBenchmarker | ed2898278244d71501de87bb181d50b3561dcf44 | [
"Apache-2.0"
] | null | null | null | # Copyright 2017 PerfKitBenchmarker Authors. All rights reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by appli... | 35.641536 | 80 | 0.67844 |
6239450346c00d542ccd3c1b131caec8ccecac87 | 593 | py | Python | setup.py | CristianContrera95/strict_df | b9c544896835a204ba346254953794ff7e19868a | [
"MIT"
] | null | null | null | setup.py | CristianContrera95/strict_df | b9c544896835a204ba346254953794ff7e19868a | [
"MIT"
] | null | null | null | setup.py | CristianContrera95/strict_df | b9c544896835a204ba346254953794ff7e19868a | [
"MIT"
] | null | null | null | """
Module setup for installation
"""
import os
from setuptools import setup
def load_requirements(fname):
"""Turn requirements.txt into a list"""
requirements = []
if os.path.exists(fname):
with open(fname, "r") as fp:
requirements = [line.strip() for line in fp]
return requireme... | 20.448276 | 70 | 0.655987 |
623952c34ca82f64b9ec7c11e1ee0c95b56959c8 | 2,465 | py | Python | utils/loader.py | m3hrdadfi/albert-persian-lab | 4e89c8ef5632972f1ebd3e203fc93f6271ac3b2a | [
"Apache-2.0"
] | 9 | 2020-07-30T05:49:19.000Z | 2022-01-30T04:11:24.000Z | utils/loader.py | E-RROR/albert-persian-lab | f43ec9efad236c4024bf2648a7af02e04e952b4c | [
"Apache-2.0"
] | 4 | 2021-11-10T19:54:14.000Z | 2022-02-15T12:49:47.000Z | utils/loader.py | E-RROR/albert-persian-lab | f43ec9efad236c4024bf2648a7af02e04e952b4c | [
"Apache-2.0"
] | 5 | 2020-07-30T12:05:13.000Z | 2020-12-13T18:04:53.000Z | import streamlit as st
import pandas as pd
from PIL import Image
def load_image(image_path, image_resize=None):
""" A helper function to load and resize an image
Args:
image_path (str): The image path.
image_resize (tuple): The image-resize width, height
Returns:
return Pillow.Im... | 24.65 | 97 | 0.596755 |
6239950ef9bb49e24769ac6fbcced619f660382b | 9,344 | py | Python | asposewordscloud/configuration.py | aspose-words-cloud/aspose-words-cloud-python | 65c7b55fa4aac69b60d41e7f54aed231df285479 | [
"MIT"
] | 14 | 2018-07-15T17:01:52.000Z | 2018-11-29T06:15:33.000Z | asposewordscloud/configuration.py | aspose-words-cloud/aspose-words-cloud-python | 65c7b55fa4aac69b60d41e7f54aed231df285479 | [
"MIT"
] | 1 | 2018-09-28T12:59:34.000Z | 2019-10-08T08:42:59.000Z | asposewordscloud/configuration.py | aspose-words-cloud/aspose-words-cloud-python | 65c7b55fa4aac69b60d41e7f54aed231df285479 | [
"MIT"
] | 2 | 2020-12-21T07:59:17.000Z | 2022-02-16T21:41:25.000Z | # coding: utf-8
# -----------------------------------------------------------------------------------
# <copyright company="Aspose" file="configuration.py">
# Copyright (c) 2021 Aspose.Words for Cloud
# </copyright>
# <summary>
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of thi... | 35.393939 | 109 | 0.617937 |
6239b5575cf0780c265dca39b98519519c78f271 | 45,231 | py | Python | vlbi_errors/analyze_mf.py | ipashchenko/ve | b866b6d9465310d4cd5bb4d2e92595d918b681d0 | [
"MIT"
] | null | null | null | vlbi_errors/analyze_mf.py | ipashchenko/ve | b866b6d9465310d4cd5bb4d2e92595d918b681d0 | [
"MIT"
] | 1 | 2019-10-16T20:36:19.000Z | 2020-03-24T19:28:01.000Z | vlbi_errors/analyze_mf.py | ipashchenko/ve | b866b6d9465310d4cd5bb4d2e92595d918b681d0 | [
"MIT"
] | null | null | null | import os
import pickle
import json
import glob
import numpy as np
import matplotlib
import matplotlib.pyplot as plt
from scipy.stats import mode
from astropy.time import Time
from uv_data import UVData
from spydiff import clean_difmap
from from_fits import (create_clean_image_from_fits_file,
cre... | 47.812896 | 103 | 0.561319 |
6239ce57b7cdec26ee5a9f92e0ca7f42d0de1642 | 8,506 | py | Python | pysoa/common/transport/local.py | arareko/pysoa | a90e428558500cf692f7f6e33fd358dd2779c328 | [
"Apache-2.0"
] | 91 | 2017-05-08T22:41:33.000Z | 2022-02-09T11:37:07.000Z | pysoa/common/transport/local.py | arareko/pysoa | a90e428558500cf692f7f6e33fd358dd2779c328 | [
"Apache-2.0"
] | 63 | 2017-06-14T20:08:49.000Z | 2021-06-16T23:08:25.000Z | pysoa/common/transport/local.py | arareko/pysoa | a90e428558500cf692f7f6e33fd358dd2779c328 | [
"Apache-2.0"
] | 26 | 2017-10-13T23:23:13.000Z | 2022-01-11T16:58:17.000Z | from __future__ import (
absolute_import,
unicode_literals,
)
from collections import deque
from typing import (
Any,
Deque,
Dict,
Hashable,
Mapping,
Optional,
Type,
Union,
)
from conformity import fields
from pymetrics.recorders.base import MetricsRecorder
import six
from pys... | 40.312796 | 120 | 0.659652 |
6239cf81eab9ee553d6c43d5f16909b1fd9ebe82 | 2,812 | py | Python | data/global-configuration/packs/synology/hostingdrivers/hostingdriver_synology.py | naparuba/opsbro | 98618a002cd47250d21e7b877a24448fc95fec80 | [
"MIT"
] | 32 | 2017-08-29T08:57:16.000Z | 2021-04-21T08:53:04.000Z | data/global-configuration/packs/synology/hostingdrivers/hostingdriver_synology.py | naparuba/opsbro | 98618a002cd47250d21e7b877a24448fc95fec80 | [
"MIT"
] | 108 | 2017-09-04T19:59:28.000Z | 2022-03-31T08:12:07.000Z | data/global-configuration/packs/synology/hostingdrivers/hostingdriver_synology.py | naparuba/kunai | 98618a002cd47250d21e7b877a24448fc95fec80 | [
"MIT"
] | 8 | 2015-02-03T12:30:53.000Z | 2017-07-29T19:43:54.000Z | import os
from opsbro.hostingdrivermanager import InterfaceHostingDriver, HOSTING_DRIVER_LAYER_PHYSICAL
class DockerContainerHostingDriver(InterfaceHostingDriver):
name = 'synology'
layer = HOSTING_DRIVER_LAYER_PHYSICAL
def __init__(self):
super(DockerContainerHostingDriver, self).__ini... | 39.055556 | 298 | 0.607752 |
6239e9f7289795eca2c949a784d7670f7578ed3e | 1,542 | py | Python | urna/vvpat.py | Lucasgscruz/sistemaVotacaoEletronica | dcdcc9fc5fff8cc55555e95365300e247aa72f81 | [
"MIT"
] | null | null | null | urna/vvpat.py | Lucasgscruz/sistemaVotacaoEletronica | dcdcc9fc5fff8cc55555e95365300e247aa72f81 | [
"MIT"
] | null | null | null | urna/vvpat.py | Lucasgscruz/sistemaVotacaoEletronica | dcdcc9fc5fff8cc55555e95365300e247aa72f81 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# biblioteca
# https://pypi.org/project/qrcode/
import qrcode
import time
from PIL import Image
from PIL import ImageFont
from PIL import ImageDraw
"""
Geração do QrCode
"""
caminhho_urna = "urna_vvpats/"
def contador_vvpat(contador):
arq = open('contador.txt', 'a')
... | 25.278689 | 66 | 0.632296 |
6239fe9df436830a8d4559ae294aaa535305abb1 | 19,075 | py | Python | sharpy/postproc/asymptoticstability.py | AntonioWR/sharpy | c922be8d5a1831c4624b22f39264e2f417a03deb | [
"BSD-3-Clause"
] | null | null | null | sharpy/postproc/asymptoticstability.py | AntonioWR/sharpy | c922be8d5a1831c4624b22f39264e2f417a03deb | [
"BSD-3-Clause"
] | null | null | null | sharpy/postproc/asymptoticstability.py | AntonioWR/sharpy | c922be8d5a1831c4624b22f39264e2f417a03deb | [
"BSD-3-Clause"
] | null | null | null | import os
import warnings as warn
import numpy as np
import scipy.linalg as sclalg
import sharpy.utils.settings as settings
from sharpy.utils.solver_interface import solver, BaseSolver, initialise_solver
import sharpy.utils.cout_utils as cout
import sharpy.utils.algebra as algebra
import sharpy.solvers.lindynamicsim as... | 40.157895 | 139 | 0.633919 |
623a25ece6788756e7a234fe1eb5e659fd1c0de1 | 1,408 | py | Python | sdk/eventhub/azure-eventhub/azure/eventhub/_connection_manager.py | vincenttran-msft/azure-sdk-for-python | 348b56f9f03eeb3f7b502eed51daf494ffff874d | [
"MIT"
] | 2,728 | 2015-01-09T10:19:32.000Z | 2022-03-31T14:50:33.000Z | sdk/eventhub/azure-eventhub/azure/eventhub/_connection_manager.py | v-xuto/azure-sdk-for-python | 9c6296d22094c5ede410bc83749e8df8694ccacc | [
"MIT"
] | 17,773 | 2015-01-05T15:57:17.000Z | 2022-03-31T23:50:25.000Z | sdk/eventhub/azure-eventhub/azure/eventhub/_connection_manager.py | v-xuto/azure-sdk-for-python | 9c6296d22094c5ede410bc83749e8df8694ccacc | [
"MIT"
] | 1,916 | 2015-01-19T05:05:41.000Z | 2022-03-31T19:36:44.000Z | # --------------------------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license information.
# --------------------------------------------------------------------... | 28.16 | 94 | 0.566761 |
623a44632696d3efcb4012cddd22b8f8a0a31cfa | 2,407 | bzl | Python | third_party/bazel-skylib-312bccd83b1364fa736dde97ccba3d2b40cdfabc/tests/subpackages_tests.bzl | Vertexwahn/FlatlandRT | 37d09fde38b25eff5f802200b43628efbd1e3198 | [
"Apache-2.0"
] | 62 | 2021-09-21T18:58:02.000Z | 2022-03-07T02:17:43.000Z | third_party/bazel-skylib-312bccd83b1364fa736dde97ccba3d2b40cdfabc/tests/subpackages_tests.bzl | Vertexwahn/FlatlandRT | 37d09fde38b25eff5f802200b43628efbd1e3198 | [
"Apache-2.0"
] | null | null | null | third_party/bazel-skylib-312bccd83b1364fa736dde97ccba3d2b40cdfabc/tests/subpackages_tests.bzl | Vertexwahn/FlatlandRT | 37d09fde38b25eff5f802200b43628efbd1e3198 | [
"Apache-2.0"
] | null | null | null | # Copyright 2022 The Bazel 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 la... | 28.317647 | 105 | 0.655172 |
623a64c4ec429ecba26cb4a6a203048185683eb6 | 9,123 | py | Python | pywinauto/controlproperties.py | nimuston/pywinauto | 3f61f7dea13b2e5b1282d65d2ae8247aae00b06f | [
"BSD-3-Clause"
] | 1 | 2021-01-31T08:10:34.000Z | 2021-01-31T08:10:34.000Z | pywinauto/controlproperties.py | nimuston/pywinauto | 3f61f7dea13b2e5b1282d65d2ae8247aae00b06f | [
"BSD-3-Clause"
] | null | null | null | pywinauto/controlproperties.py | nimuston/pywinauto | 3f61f7dea13b2e5b1282d65d2ae8247aae00b06f | [
"BSD-3-Clause"
] | null | null | null | # GUI Application automation and testing library
# Copyright (C) 2006-2016 Mark Mc Mahon and Contributors
# https://github.com/pywinauto/pywinauto/graphs/contributors
# http://pywinauto.github.io/docs/credits.html
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# mod... | 34.168539 | 81 | 0.561219 |
623a82de45045cbf499f3cbfc87eb434bef80243 | 8,967 | py | Python | celertix/models/celertix_orm.py | BALAVIGNESHDOSTRIX/celertix-framework | a3d9a530431cbdecf9686fe34fbe3c8d3265327e | [
"MIT"
] | 2 | 2020-12-19T14:17:25.000Z | 2021-08-03T10:20:21.000Z | celertix/models/celertix_orm.py | BALAVIGNESHDOSTRIX/celertix-framework | a3d9a530431cbdecf9686fe34fbe3c8d3265327e | [
"MIT"
] | 12 | 2021-02-08T21:02:14.000Z | 2022-03-12T00:52:27.000Z | celertix/models/celertix_orm.py | BALAVIGNESHDOSTRIX/celertix-framework | a3d9a530431cbdecf9686fe34fbe3c8d3265327e | [
"MIT"
] | 1 | 2021-04-08T15:32:32.000Z | 2021-04-08T15:32:32.000Z | import inspect
from asyncpg import create_pool, connect
from .celertix_sql import *
from .celertix_sql import CelertixSql as sql
from .celertix_fields import *
from ..tools.celertix_global import clx, clxuniv
from ..tools.celertix_tools import CelertixTools as gtol
class Database:
def __init__(self, dbuser=None... | 37.995763 | 120 | 0.554031 |
623aa442886866f95cf7aaf5c78d0fd7658c08cd | 5,241 | py | Python | tests/test_misc.py | konstantin-stepanov/aiodirector | 4a928762c6a388a4102154b59b78badbff9e1511 | [
"MIT"
] | null | null | null | tests/test_misc.py | konstantin-stepanov/aiodirector | 4a928762c6a388a4102154b59b78badbff9e1511 | [
"MIT"
] | 502 | 2018-01-24T18:11:11.000Z | 2022-03-27T23:33:20.000Z | tests/test_misc.py | inplat/aioapp | 4ccb026264eaab69806512b58681c0b2f9544621 | [
"Apache-2.0"
] | null | null | null | import time
import json
import datetime
import decimal
import asyncio
from functools import partial
import pytest
from yarl import URL
from aioapp.misc import (async_call, get_func_params, mask_url_pwd,
json_encode, rndstr, parse_dsn)
async def test_async_call(loop):
fut = asyncio.Future(... | 24.152074 | 78 | 0.564969 |
623ad5ef947220c5abccfffa12a4fa693b92f888 | 5,829 | py | Python | study/hfppnetwork/hfppnetwork/sms/forms.py | NASA-Tournament-Lab/CoECI-CMS-Healthcare-Fraud-Prevention | 4facd935920e77239c25323ca7e233cb899ba9f5 | [
"Apache-2.0"
] | 7 | 2015-07-15T06:47:16.000Z | 2020-10-17T20:51:09.000Z | study/hfppnetwork/hfppnetwork/sms/forms.py | NASA-Tournament-Lab/CoECI-CMS-Healthcare-Fraud-Prevention | 4facd935920e77239c25323ca7e233cb899ba9f5 | [
"Apache-2.0"
] | null | null | null | study/hfppnetwork/hfppnetwork/sms/forms.py | NASA-Tournament-Lab/CoECI-CMS-Healthcare-Fraud-Prevention | 4facd935920e77239c25323ca7e233cb899ba9f5 | [
"Apache-2.0"
] | 8 | 2017-01-30T02:27:01.000Z | 2021-04-21T04:15:48.000Z | # -*- coding: utf-8 -*-
"""
Copyright (C) 2013 TopCoder Inc., All Rights Reserved.
This is module that represents all the forms.
@author: TCSASSEMBLER
@version: 1.0
"""
from django import forms
from django.forms.models import inlineformset_factory
from hfppnetwork.sms.models import Study, StudyChart, StudyDataReque... | 30.84127 | 92 | 0.707497 |
623b18072e35da3e7e2774135a0afc916a4e9212 | 1,276 | py | Python | Python Script/summarizer.py | antarikshnarain/ContentRecommendationForArticles | dec9a8ddb7829176b475d1fb00b81daa931706a0 | [
"MIT"
] | null | null | null | Python Script/summarizer.py | antarikshnarain/ContentRecommendationForArticles | dec9a8ddb7829176b475d1fb00b81daa931706a0 | [
"MIT"
] | null | null | null | Python Script/summarizer.py | antarikshnarain/ContentRecommendationForArticles | dec9a8ddb7829176b475d1fb00b81daa931706a0 | [
"MIT"
] | null | null | null | from __future__ import division
import nltk
import math
from math import log
import pickle
"""
idf={}
f=open('IDF.txt')
text=f.read()
f.close()
text=text.split(' ')
for w in text:
if w!='':
t=w.split('/!@#$')
idf[t[0]]=float(t[1])
"""
f=open('IDF.pck','r')
idf=pickle.load(f)
f.close()
def idfs... | 22.785714 | 63 | 0.543887 |
623b2c6b7011da45d119a9c35d17be69a10f42e0 | 2,438 | py | Python | hparams.py | eric102004/FastSpeech2-1 | 95e0fa7f02b390fa21ee9801cfa297d25163f71d | [
"MIT"
] | 1 | 2021-05-31T12:34:54.000Z | 2021-05-31T12:34:54.000Z | hparams.py | eric102004/FastSpeech2-1 | 95e0fa7f02b390fa21ee9801cfa297d25163f71d | [
"MIT"
] | null | null | null | hparams.py | eric102004/FastSpeech2-1 | 95e0fa7f02b390fa21ee9801cfa297d25163f71d | [
"MIT"
] | null | null | null | import os
import yaml
### Dataset(LJSpeech, Blizzard2013, VCTK, LibriTTS) ###
#dataset = "LJSpeech"
#data_path = "/dataset/LJSpeech-1.1"
#dataset = "Blizzard2013"
#data_path = "./Blizzard-2013/train/segmented/"
#dataset = "VCTK"
#data_path = "/home/kaiwei/SpeechNet/FastSpeech2/dataset/VCTK-Corpus"
dataset = "Libri... | 22.163636 | 77 | 0.726415 |
623b3a85cce23af1f8961ffbd3dee4c850731bb0 | 2,157 | py | Python | applications/timeflow/data/demands.py | dyvenia/timesheets | 5120acd66cbeb3ce43bff5acfee4cd6b14882962 | [
"MIT"
] | 13 | 2021-09-27T14:53:15.000Z | 2022-02-15T05:48:01.000Z | applications/timeflow/data/demands.py | dyvenia/timesheets | 5120acd66cbeb3ce43bff5acfee4cd6b14882962 | [
"MIT"
] | 45 | 2021-10-13T08:47:28.000Z | 2022-02-15T09:16:51.000Z | applications/timeflow/data/demands.py | dyvenia/timesheets | 5120acd66cbeb3ce43bff5acfee4cd6b14882962 | [
"MIT"
] | null | null | null | import requests
import json
from typing import List, TypedDict, Dict
from ..config import base_url
from .common import Select
from ..pages.utils import days_list
from datetime import datetime
class Demand(TypedDict):
team_id: int
epic_id: int
year: int
month: int
days: int
created_at: datetime... | 27.303797 | 83 | 0.580436 |
623b3b3c432d8187aa4b38299cb4027ae3d38a94 | 3,044 | py | Python | days/day22.py | Kurocon/AdventOfCode2016 | 357e55025c763baa9d838b70025f968ca5e92ed7 | [
"BSD-3-Clause"
] | null | null | null | days/day22.py | Kurocon/AdventOfCode2016 | 357e55025c763baa9d838b70025f968ca5e92ed7 | [
"BSD-3-Clause"
] | null | null | null | days/day22.py | Kurocon/AdventOfCode2016 | 357e55025c763baa9d838b70025f968ca5e92ed7 | [
"BSD-3-Clause"
] | null | null | null | import re
from itertools import permutations
from days import AOCDay, day
@day(22)
class Day22(AOCDay):
node_re = re.compile(r"/dev/grid/node-x([0-9]+)-y([0-9]+) +([0-9]+)T +([0-9]+)T +([0-9]+)T +([0-9]+)%")
nodes = {}
test_input = """Filesystem Size Used Avail Use%
Filesystem S... | 38.05 | 122 | 0.533509 |
623b3c4f541935a85aed5c400d9698193f80eab8 | 110,081 | py | Python | gui/qt/main_window.py | Andymeows/electrum-doge | e5e8c8e3e301cccb53de58445445e9e7fd0e9665 | [
"MIT"
] | 1 | 2017-02-21T17:52:54.000Z | 2017-02-21T17:52:54.000Z | gui/qt/main_window.py | Andymeows/electrum-doge | e5e8c8e3e301cccb53de58445445e9e7fd0e9665 | [
"MIT"
] | null | null | null | gui/qt/main_window.py | Andymeows/electrum-doge | e5e8c8e3e301cccb53de58445445e9e7fd0e9665 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
#
# Electrum - lightweight Bitcoin client
# Copyright (C) 2012 thomasv@gitorious
#
# 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 witho... | 40.307946 | 454 | 0.607861 |
623b533b02742f4ef737327663cdca4cad088b94 | 2,007 | py | Python | ucb_cs61A/projects/scheme/tests/03.py | tavaresdong/courses-notes | 7fb89103bca679f5ef9b14cbc777152daac1402e | [
"MIT"
] | null | null | null | ucb_cs61A/projects/scheme/tests/03.py | tavaresdong/courses-notes | 7fb89103bca679f5ef9b14cbc777152daac1402e | [
"MIT"
] | 1 | 2017-07-31T08:15:26.000Z | 2017-07-31T08:15:26.000Z | ucb_cs61A/projects/scheme/tests/03.py | tavaresdong/courses-notes | 7fb89103bca679f5ef9b14cbc777152daac1402e | [
"MIT"
] | 1 | 2019-10-06T16:52:31.000Z | 2019-10-06T16:52:31.000Z | test = {
'name': 'Question 3',
'points': 1,
'suites': [
{
'cases': [
{
'code': r"""
>>> global_frame = create_global_frame()
>>> global_frame.define("x", 3)
>>> global_frame.parent is None
True
>>> global_frame.lookup("x")
3
... | 23.611765 | 50 | 0.400598 |
623b5e950323858bfbf7f156ae331c79ae0375c4 | 15,823 | py | Python | tests/testing_data/integration_answers.py | albarqounilab/MONAI | bb0b307d68021a243011a58fd82a1d275f00a51a | [
"Apache-2.0"
] | 1 | 2021-07-13T00:34:41.000Z | 2021-07-13T00:34:41.000Z | tests/testing_data/integration_answers.py | albarqounilab/MONAI | bb0b307d68021a243011a58fd82a1d275f00a51a | [
"Apache-2.0"
] | null | null | null | tests/testing_data/integration_answers.py | albarqounilab/MONAI | bb0b307d68021a243011a58fd82a1d275f00a51a | [
"Apache-2.0"
] | null | null | null | # Copyright 2020 - 2021 MONAI Consortium
# 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 wri... | 36.374713 | 106 | 0.502244 |
623b824c6441fd58bd0d5720b9972bfd0d146713 | 1,892 | py | Python | core/apps/classes/classes_for_sidebar.py | yavuzbektas/StudentAnalayze | 794f433f650633f646bee5cbe08d04afdbd75e84 | [
"MIT"
] | null | null | null | core/apps/classes/classes_for_sidebar.py | yavuzbektas/StudentAnalayze | 794f433f650633f646bee5cbe08d04afdbd75e84 | [
"MIT"
] | null | null | null | core/apps/classes/classes_for_sidebar.py | yavuzbektas/StudentAnalayze | 794f433f650633f646bee5cbe08d04afdbd75e84 | [
"MIT"
] | null | null | null | from apps.classes.models import Classes
from apps.student.models import StudentList
def all_class_levels():
classes = Classes.objects.all()
all_class_levels = []
all_class_levels_levels = []
for i in classes:
if i.level not in all_class_levels:
all_class_levels.append(i.level)
f... | 40.255319 | 140 | 0.642178 |
623ba08b978eced4869e34b8d62d39d5d3cba007 | 6,481 | py | Python | libqtile/layout/tile.py | lKk2/qtile | 1e8b153d4f52705adf05391453120f803df6ecac | [
"MIT"
] | 1 | 2020-07-15T13:44:45.000Z | 2020-07-15T13:44:45.000Z | libqtile/layout/tile.py | lKk2/qtile | 1e8b153d4f52705adf05391453120f803df6ecac | [
"MIT"
] | null | null | null | libqtile/layout/tile.py | lKk2/qtile | 1e8b153d4f52705adf05391453120f803df6ecac | [
"MIT"
] | null | null | null | # Copyright (c) 2010 Aldo Cortesi
# Copyright (c) 2010-2011 Paul Colomiets
# Copyright (c) 2011 Mounier Florian
# Copyright (c) 2011 Tzbob
# Copyright (c) 2012 roger
# Copyright (c) 2012-2014 Tycho Andersen
# Copyright (c) 2013 Tao Sauvage
# Copyright (c) 2014 ramnes
# Copyright (c) 2014 Sean Vig
# Copyright (c) 2014 d... | 34.657754 | 80 | 0.623052 |
623bd88760850c2e747bbd20f63e9b8582bd2fb1 | 33,883 | py | Python | applications/tensorflow/cnns/inference/ssd/ssd_model.py | Splendon/examples | ed4a8a01857b6ddca49559141acf5d0986eb01e1 | [
"MIT"
] | null | null | null | applications/tensorflow/cnns/inference/ssd/ssd_model.py | Splendon/examples | ed4a8a01857b6ddca49559141acf5d0986eb01e1 | [
"MIT"
] | null | null | null | applications/tensorflow/cnns/inference/ssd/ssd_model.py | Splendon/examples | ed4a8a01857b6ddca49559141acf5d0986eb01e1 | [
"MIT"
] | null | null | null | # Copyright 2019 Graphcore Ltd.
"""
SSD implementation based on Vgg-16 entry network as originally published by Liu et al.
This is an implementation of the Single Shot MultiBox Detector (SSD) using a dual-device, single-graph
framework as deployed for inference. The convolutional component of the model is entirely dep... | 56.284053 | 120 | 0.538264 |
623be8b64f2504e1101eddd75a2e8a604049d8ef | 199 | py | Python | quma/tests/fixtures/scripts/qmark/__init__.py | ernstla/quma | c9f7f14c4a3e016f69f9e3fc51543e38bef58dd4 | [
"MIT"
] | 16 | 2018-10-03T12:41:41.000Z | 2021-12-19T12:50:34.000Z | quma/tests/fixtures/scripts/qmark/__init__.py | ernstla/quma | c9f7f14c4a3e016f69f9e3fc51543e38bef58dd4 | [
"MIT"
] | null | null | null | quma/tests/fixtures/scripts/qmark/__init__.py | ernstla/quma | c9f7f14c4a3e016f69f9e3fc51543e38bef58dd4 | [
"MIT"
] | 1 | 2018-10-03T13:42:49.000Z | 2018-10-03T13:42:49.000Z | from quma import Namespace
class Root(Namespace):
alias = 'root'
def get_test(self, cursor):
return 'Test'
def get_shadowed_test(self, cursor):
return 'Shadowed Test'
| 16.583333 | 40 | 0.648241 |
623c070297b61f3fcb3503bfda457f64288fd531 | 6,387 | py | Python | sktime/transformations/series/summarize.py | FedericoGarza/sktime | b21cdd81453abd34c72b42d4b2273b49d29eba30 | [
"BSD-3-Clause"
] | null | null | null | sktime/transformations/series/summarize.py | FedericoGarza/sktime | b21cdd81453abd34c72b42d4b2273b49d29eba30 | [
"BSD-3-Clause"
] | null | null | null | sktime/transformations/series/summarize.py | FedericoGarza/sktime | b21cdd81453abd34c72b42d4b2273b49d29eba30 | [
"BSD-3-Clause"
] | null | null | null | #!/usr/bin/env python3 -u
# -*- coding: utf-8 -*-
# copyright: sktime developers, BSD-3-Clause License (see LICENSE file)
"""Implement transformers for summarizing a time series."""
__author__ = ["mloning", "RNKuhns"]
__all__ = ["SummaryTransformer"]
import pandas as pd
from sktime.transformations.base import BaseTr... | 33.439791 | 81 | 0.620166 |
623c89a9f92349801b58827d17392691033ed738 | 5,105 | py | Python | .leetcode/726.number-of-atoms.py | KuiyuanFu/PythonLeetCode | 8962df2fa838eb7ae48fa59de272ba55a89756d8 | [
"MIT"
] | null | null | null | .leetcode/726.number-of-atoms.py | KuiyuanFu/PythonLeetCode | 8962df2fa838eb7ae48fa59de272ba55a89756d8 | [
"MIT"
] | null | null | null | .leetcode/726.number-of-atoms.py | KuiyuanFu/PythonLeetCode | 8962df2fa838eb7ae48fa59de272ba55a89756d8 | [
"MIT"
] | null | null | null | # @lc app=leetcode id=726 lang=python3
#
# [726] Number of Atoms
#
# https://leetcode.com/problems/number-of-atoms/description/
#
# algorithms
# Hard (51.23%)
# Likes: 794
# Dislikes: 197
# Total Accepted: 39.1K
# Total Submissions: 75.9K
# Testcase Example: '"H2O"'
#
# Given a string formula representing a chem... | 23.099548 | 79 | 0.490891 |
623c94bbac8b439866563e7836acc2b7b1c4729b | 20,779 | py | Python | seleniumbase/translate/spanish.py | filipe-guerra/SeleniumBase | b75b1ced779a4dbb10d9265b70bef8184bcea251 | [
"MIT"
] | 1 | 2020-08-28T08:53:46.000Z | 2020-08-28T08:53:46.000Z | seleniumbase/translate/spanish.py | BarryYBL/SeleniumBase | e3cb810331183fa003cea8af81057e4136dfd660 | [
"MIT"
] | null | null | null | seleniumbase/translate/spanish.py | BarryYBL/SeleniumBase | e3cb810331183fa003cea8af81057e4136dfd660 | [
"MIT"
] | null | null | null | # Spanish / Español - Translations - Python 3 Only!
from seleniumbase import BaseCase
from seleniumbase import MasterQA
class CasoDePrueba(BaseCase):
def __init__(self, *args, **kwargs):
super(CasoDePrueba, self).__init__(*args, **kwargs)
self._language = "Spanish"
def abrir(self, *args, **k... | 37.848816 | 79 | 0.654507 |
623c9ad6021766fd98425d9fe73b131311f98c0a | 5,917 | py | Python | appengine/predator/analysis/linear/changelist_features/test/touch_crashed_component_test.py | allaparthi/monorail | e18645fc1b952a5a6ff5f06e0c740d75f1904473 | [
"BSD-3-Clause"
] | 2 | 2021-04-13T21:22:18.000Z | 2021-09-07T02:11:57.000Z | appengine/predator/analysis/linear/changelist_features/test/touch_crashed_component_test.py | allaparthi/monorail | e18645fc1b952a5a6ff5f06e0c740d75f1904473 | [
"BSD-3-Clause"
] | 21 | 2020-09-06T02:41:05.000Z | 2022-03-02T04:40:01.000Z | appengine/predator/analysis/linear/changelist_features/test/touch_crashed_component_test.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.
from analysis.analysis_testcase import AnalysisTestCase
from analysis.component_classifier import Component
from analysis.component_classifier import Compone... | 41.377622 | 80 | 0.641372 |
623cac359e238a457cf8ebb0d57b8ef96a857d0a | 3,029 | py | Python | pcdsdevices/jet.py | slacAdpai/pcdsdevices | 7d79821f8b5652a7fd457b9a73d22ef37b2043d3 | [
"BSD-3-Clause-LBNL"
] | null | null | null | pcdsdevices/jet.py | slacAdpai/pcdsdevices | 7d79821f8b5652a7fd457b9a73d22ef37b2043d3 | [
"BSD-3-Clause-LBNL"
] | null | null | null | pcdsdevices/jet.py | slacAdpai/pcdsdevices | 7d79821f8b5652a7fd457b9a73d22ef37b2043d3 | [
"BSD-3-Clause-LBNL"
] | null | null | null | """
Module for the liquid jet classes.
"""
from ophyd import Component as Cpt
from ophyd import Device
from .component import UnrelatedComponent as UCpt
from .epics_motor import IMS, BeckhoffAxis
from .interface import BaseInterface
class Injector(Device, BaseInterface):
"""
Positioner for liquid jet Injecto... | 26.570175 | 78 | 0.658633 |
623ceafbaa177a8a251165f18f5e2db5c136c672 | 2,560 | py | Python | sjtwo-c/toolchains/mac/gcc-arm-none-eabi-8-2019-q3-update/arm-none-eabi/lib/thumb/v7e-m/nofp/libstdc++.a-gdb.py | seanlinc/Playmate | 077877d172dd6b7beab910c52ec95ee300bc6480 | [
"Apache-2.0"
] | 2 | 2020-04-04T21:09:56.000Z | 2020-04-08T17:00:58.000Z | sjtwo-c/toolchains/mac/gcc-arm-none-eabi-8-2019-q3-update/arm-none-eabi/lib/thumb/v7e-m/nofp/libstdc++.a-gdb.py | seanlinc/Playmate | 077877d172dd6b7beab910c52ec95ee300bc6480 | [
"Apache-2.0"
] | 13 | 2020-04-11T21:50:57.000Z | 2020-04-19T03:19:48.000Z | sjtwo-c/toolchains/mac/gcc-arm-none-eabi-8-2019-q3-update/arm-none-eabi/lib/thumb/v7e-m/nofp/libstdc++.a-gdb.py | seanlinc/Playmate | 077877d172dd6b7beab910c52ec95ee300bc6480 | [
"Apache-2.0"
] | null | null | null | # -*- python -*-
# Copyright (C) 2009-2018 Free Software Foundation, Inc.
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 3 of the License, or
# (at your option) any later versio... | 41.290323 | 126 | 0.730469 |
623d67f151acdcd6890a3824352a7ba0cc5745be | 111,576 | py | Python | sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2017_12_01/operations/_virtual_machines_operations.py | vincenttran-msft/azure-sdk-for-python | 348b56f9f03eeb3f7b502eed51daf494ffff874d | [
"MIT"
] | 1 | 2022-03-09T08:59:13.000Z | 2022-03-09T08:59:13.000Z | sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2017_12_01/operations/_virtual_machines_operations.py | vincenttran-msft/azure-sdk-for-python | 348b56f9f03eeb3f7b502eed51daf494ffff874d | [
"MIT"
] | null | null | null | sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2017_12_01/operations/_virtual_machines_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 ... | 42.570011 | 217 | 0.667608 |
623d6e2681d5e95d9386a31c3d513ffa73141bd7 | 1,039 | py | Python | backend/model/account/news.py | deti/boss | bc0cfe3067bf1cbf26789f7443a36e7cdd2ac869 | [
"Apache-2.0"
] | 7 | 2018-05-20T08:56:08.000Z | 2022-03-11T15:50:54.000Z | backend/model/account/news.py | deti/boss | bc0cfe3067bf1cbf26789f7443a36e7cdd2ac869 | [
"Apache-2.0"
] | 2 | 2021-06-08T21:12:51.000Z | 2022-01-13T01:25:27.000Z | backend/model/account/news.py | deti/boss | bc0cfe3067bf1cbf26789f7443a36e7cdd2ac869 | [
"Apache-2.0"
] | 5 | 2016-10-09T14:52:09.000Z | 2020-12-25T01:04:35.000Z | import errors
from model import db, AccountDb, duplicate_handle
from sqlalchemy import Column
from arrow import utcnow
class News(db.Model, AccountDb):
id_field = "news_id"
unique_field = "subject"
news_id = Column(db.Integer, primary_key=True)
subject = Column(db.String(78))
body = Column(db.Te... | 26.641026 | 86 | 0.6564 |
623da96da875eaf4ff02f90f03df3c9c2bb39faf | 11,959 | py | Python | Programs/inside_out_2.py | ShineTop/PiGlow | 3b87aca3a36a9cc2076ccebdccc5eb7a61855aa7 | [
"MIT"
] | 5 | 2018-03-16T19:09:50.000Z | 2022-02-06T21:37:35.000Z | Programs/inside_out_2.py | Breakfast-for-Pigeons/PiGlow | 3b87aca3a36a9cc2076ccebdccc5eb7a61855aa7 | [
"MIT"
] | 3 | 2018-10-02T16:06:19.000Z | 2020-03-01T19:07:31.000Z | Programs/inside_out_2.py | ShineTop/PiGlow | 3b87aca3a36a9cc2076ccebdccc5eb7a61855aa7 | [
"MIT"
] | 1 | 2017-11-03T13:36:35.000Z | 2017-11-03T13:36:35.000Z | #!/usr/bin/env python3
"""
Inside Out 2
A variation of Inside Out. This program lights up the
indivdual colors like in Inside Out, but they stay on until
all leds are on. Then they are turned off in reverse order.
Then the speed gradually increases.
....................
Functions:
- inside_out_2a: Lights up 1 color ... | 24.759834 | 75 | 0.615018 |
623da9a52576015c6619ac14ec576faa161ce6a5 | 6,484 | py | Python | asposewordscloud/models/requests/delete_run_online_request.py | aspose-words-cloud/aspose-words-cloud-python | 65c7b55fa4aac69b60d41e7f54aed231df285479 | [
"MIT"
] | 14 | 2018-07-15T17:01:52.000Z | 2018-11-29T06:15:33.000Z | asposewordscloud/models/requests/delete_run_online_request.py | aspose-words-cloud/aspose-words-cloud-python | 65c7b55fa4aac69b60d41e7f54aed231df285479 | [
"MIT"
] | 1 | 2018-09-28T12:59:34.000Z | 2019-10-08T08:42:59.000Z | asposewordscloud/models/requests/delete_run_online_request.py | aspose-words-cloud/aspose-words-cloud-python | 65c7b55fa4aac69b60d41e7f54aed231df285479 | [
"MIT"
] | 2 | 2020-12-21T07:59:17.000Z | 2022-02-16T21:41:25.000Z | # coding: utf-8
# -----------------------------------------------------------------------------------
# <copyright company="Aspose" file="delete_run_online_request.py">
# Copyright (c) 2021 Aspose.Words for Cloud
# </copyright>
# <summary>
# Permission is hereby granted, free of charge, to any person obtaining a co... | 48.75188 | 255 | 0.663017 |
623e0ef96be202811887a0950d2f43595c3e9094 | 1,991 | py | Python | bio/ensembl/ontology/hive/OLSImportReport.py | Ensembl/ols-ensembl-loader | c62d4dee4d0296fb35a84fdc683941ff7afac541 | [
"Apache-2.0"
] | null | null | null | bio/ensembl/ontology/hive/OLSImportReport.py | Ensembl/ols-ensembl-loader | c62d4dee4d0296fb35a84fdc683941ff7afac541 | [
"Apache-2.0"
] | 25 | 2018-09-13T08:29:33.000Z | 2019-12-10T14:48:05.000Z | bio/ensembl/ontology/hive/OLSImportReport.py | Ensembl/ols-ensembl-loader | c62d4dee4d0296fb35a84fdc683941ff7afac541 | [
"Apache-2.0"
] | 3 | 2019-07-18T13:34:07.000Z | 2020-07-30T12:54:22.000Z | # -*- coding: utf-8 -*-
"""
.. See the NOTICE file distributed with this work for additional information
regarding copyright ownership.
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
... | 41.479167 | 113 | 0.708689 |
623e154de339000fdc25fb97f627d005accc751e | 1,234 | py | Python | src/coalescenceml/metadata_store/sqlite_metadata_store.py | CornellDataScience/CoalescenceML | 6dd849b272c77011719952b47d5b55684d90733a | [
"Apache-2.0"
] | null | null | null | src/coalescenceml/metadata_store/sqlite_metadata_store.py | CornellDataScience/CoalescenceML | 6dd849b272c77011719952b47d5b55684d90733a | [
"Apache-2.0"
] | null | null | null | src/coalescenceml/metadata_store/sqlite_metadata_store.py | CornellDataScience/CoalescenceML | 6dd849b272c77011719952b47d5b55684d90733a | [
"Apache-2.0"
] | null | null | null | from typing import ClassVar, Union
from ml_metadata.proto import metadata_store_pb2
from pydantic import validator
from tfx.orchestration import metadata
from coalescenceml.io import utils
from coalescenceml.metadata_store import BaseMetadataStore
class SQLiteMetadataStore(BaseMetadataStore):
"""SQLite backend ... | 28.697674 | 74 | 0.682334 |
623e1fb4d85092883133fa50cd1d601f05a5fe2e | 2,537 | py | Python | ibms_project/sfm/tests.py | mohdbakhrayba/ibms | 029e1f3bf108586289c65bb1d547f86851f9494f | [
"Apache-2.0"
] | null | null | null | ibms_project/sfm/tests.py | mohdbakhrayba/ibms | 029e1f3bf108586289c65bb1d547f86851f9494f | [
"Apache-2.0"
] | null | null | null | ibms_project/sfm/tests.py | mohdbakhrayba/ibms | 029e1f3bf108586289c65bb1d547f86851f9494f | [
"Apache-2.0"
] | null | null | null | from django.urls import reverse
from django.test.client import Client
from mixer.backend.django import mixer
from ibms.tests import IbmsTestCase
from sfm.models import FinancialYear, Quarter, SFMMetric, MeasurementType, CostCentre, MeasurementValue
class SfmViewsTest(IbmsTestCase):
"""Test that sfm application v... | 38.439394 | 103 | 0.642491 |
623e257cd367ca759b65bc5cb9c13ea9a895911c | 416 | py | Python | chapter12/03 Robot Dancer.py | munnep/begin_to_code_with_python | 3ef14d90785526b6b26d262a7627eee73791d7d0 | [
"MIT"
] | null | null | null | chapter12/03 Robot Dancer.py | munnep/begin_to_code_with_python | 3ef14d90785526b6b26d262a7627eee73791d7d0 | [
"MIT"
] | null | null | null | chapter12/03 Robot Dancer.py | munnep/begin_to_code_with_python | 3ef14d90785526b6b26d262a7627eee73791d7d0 | [
"MIT"
] | null | null | null | # EG12-4 Robot Dancer
import time
def forward():
print('robot moving forward')
time.sleep(1)
def back():
print('robot moving back')
time.sleep(1)
def left():
print('robot moving left')
time.sleep(1)
def right():
print('robot moving right')
time.sleep(1)
dance_moves = [forward, back... | 15.407407 | 42 | 0.646635 |
623e37a48e235ebb66a79814fbfc8395645997db | 22 | py | Python | btd6_memory_info/generated/Mono/Security/Cryptography/DSAManaged/dsa_managed.py | 56kyle/bloons_auto | 419d55b51d1cddc49099593970adf1c67985b389 | [
"MIT"
] | null | null | null | btd6_memory_info/generated/Mono/Security/Cryptography/DSAManaged/dsa_managed.py | 56kyle/bloons_auto | 419d55b51d1cddc49099593970adf1c67985b389 | [
"MIT"
] | null | null | null | btd6_memory_info/generated/Mono/Security/Cryptography/DSAManaged/dsa_managed.py | 56kyle/bloons_auto | 419d55b51d1cddc49099593970adf1c67985b389 | [
"MIT"
] | null | null | null | class DSAManaged: pass | 22 | 22 | 0.863636 |
623e438eb9cfa70c51e7c160d5b63af398e64d2d | 868 | py | Python | test/vanilla/version-tolerant/Expected/AcceptanceTests/BodyDurationVersionTolerant/bodydurationversiontolerant/__init__.py | cfculhane/autorest.python | 8cbca95faee88d933a58bbbd17b76834faa8d387 | [
"MIT"
] | null | null | null | test/vanilla/version-tolerant/Expected/AcceptanceTests/BodyDurationVersionTolerant/bodydurationversiontolerant/__init__.py | cfculhane/autorest.python | 8cbca95faee88d933a58bbbd17b76834faa8d387 | [
"MIT"
] | null | null | null | test/vanilla/version-tolerant/Expected/AcceptanceTests/BodyDurationVersionTolerant/bodydurationversiontolerant/__init__.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.4 | 114 | 0.658986 |
623e4641b404bce00105d01d20d3594f3aa7e521 | 1,617 | py | Python | futaba/lru.py | Hoffs/futaba | 4d07c421c4229c81ddd42da1a49594b8cf11832d | [
"MIT"
] | 23 | 2018-09-17T09:06:27.000Z | 2021-05-27T15:21:37.000Z | futaba/lru.py | Hoffs/futaba | 4d07c421c4229c81ddd42da1a49594b8cf11832d | [
"MIT"
] | 257 | 2018-08-18T21:27:54.000Z | 2020-12-29T23:27:10.000Z | futaba/lru.py | Hoffs/futaba | 4d07c421c4229c81ddd42da1a49594b8cf11832d | [
"MIT"
] | 22 | 2018-09-09T09:03:13.000Z | 2021-11-09T03:34:34.000Z | #
# lru.py
#
# futaba - A Discord Mod bot for the Programming server
# Copyright (c) 2017-2020 Jake Richardson, Ammon Smith, jackylam5
#
# futaba is available free of charge under the terms of the MIT
# License. You are free to redistribute and/or modify it under those
# terms. It is distributed in the hopes that it wi... | 26.080645 | 68 | 0.620284 |
623e5d0aaaa9d05fd2a073afb8613ebefddf842b | 6,991 | py | Python | unittests/nebula_website/babel.py | threathunterX/nebula_query_web | 9c73d82f7e6bc322ea2edfd86ff62727c49d7abb | [
"Apache-2.0"
] | 1 | 2019-05-01T09:42:31.000Z | 2019-05-01T09:42:31.000Z | nebula_website/babel.py | threathunterX/nebula_query_web | 9c73d82f7e6bc322ea2edfd86ff62727c49d7abb | [
"Apache-2.0"
] | null | null | null | nebula_website/babel.py | threathunterX/nebula_query_web | 9c73d82f7e6bc322ea2edfd86ff62727c49d7abb | [
"Apache-2.0"
] | 5 | 2019-06-24T05:48:54.000Z | 2022-02-18T03:34:30.000Z | # -*- coding: utf-8 -*-
import json
from babel_python.serviceclient_async import ServiceClient
from babel_python.servicemeta import ServiceMeta
from babel_python.serviceserver_async import ServiceServer
from threathunter_common.util import millis_now
import settings
# default mode
mode = settings.Babel_Mode
nebula_n... | 27.964 | 109 | 0.706337 |
623e609213a617983119a6ae5db32cc9e2b8f651 | 10,632 | py | Python | deeppavlov/metrics/fmeasure.py | ineersa/DeepPavlov | 8200bf9a0f0b378baad4ee0eb75b59453f516004 | [
"Apache-2.0"
] | 1 | 2019-09-09T20:21:30.000Z | 2019-09-09T20:21:30.000Z | deeppavlov/metrics/fmeasure.py | ineersa/DeepPavlov | 8200bf9a0f0b378baad4ee0eb75b59453f516004 | [
"Apache-2.0"
] | null | null | null | deeppavlov/metrics/fmeasure.py | ineersa/DeepPavlov | 8200bf9a0f0b378baad4ee0eb75b59453f516004 | [
"Apache-2.0"
] | 1 | 2019-03-17T13:47:44.000Z | 2019-03-17T13:47:44.000Z | # Copyright 2017 Neural Networks and Deep Learning lab, MIPT
#
# 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... | 37.702128 | 125 | 0.545993 |
623e64e95dda9e687b88ad4f74ff9347de0294d2 | 1,306 | py | Python | stests/chain/get_account_balance.py | goral09/stests | 4de26485535cadf1b708188a7133a976536ccba3 | [
"Apache-2.0"
] | 4 | 2020-03-10T15:28:17.000Z | 2021-10-02T11:41:17.000Z | stests/chain/get_account_balance.py | goral09/stests | 4de26485535cadf1b708188a7133a976536ccba3 | [
"Apache-2.0"
] | 1 | 2020-03-25T11:31:44.000Z | 2020-03-25T11:31:44.000Z | stests/chain/get_account_balance.py | goral09/stests | 4de26485535cadf1b708188a7133a976536ccba3 | [
"Apache-2.0"
] | 9 | 2020-02-25T18:43:42.000Z | 2021-08-10T17:08:42.000Z | import json
import subprocess
from stests.chain.get_state_root_hash import execute as get_state_root_hash
from stests.core.types.infra import Network
from stests.core.types.infra import Node
from stests.core.utils import paths
# Method upon client to be invoked.
_CLIENT_METHOD = "get-balance"
def execute(
net... | 27.787234 | 81 | 0.696018 |
623e9675ac723fe653bed5e165a8c7032e45c2da | 2,141 | py | Python | conekt/controllers/admin/controls/species.py | legumeinfo/CoNekT | 709a4980cfa255cafd456b268e274db2b4b1f5fb | [
"MIT"
] | 14 | 2018-08-20T03:07:21.000Z | 2021-11-04T11:15:31.000Z | conekt/controllers/admin/controls/species.py | mutwil/CoNekT | f4a4496a87d14b15bcf587975b31a2edc24c6bf7 | [
"MIT"
] | 9 | 2018-07-17T15:30:47.000Z | 2021-07-05T13:11:54.000Z | conekt/controllers/admin/controls/species.py | mutwil/CoNekT | f4a4496a87d14b15bcf587975b31a2edc24c6bf7 | [
"MIT"
] | 3 | 2019-08-05T09:16:34.000Z | 2019-12-04T23:59:28.000Z | import os
from tempfile import mkstemp
from flask import request, flash, url_for
from conekt.extensions import admin_required
from werkzeug.exceptions import abort
from werkzeug.utils import redirect
from conekt.controllers.admin.controls import admin_controls
from conekt.forms.admin.add_species import AddSpeciesForm... | 36.913793 | 116 | 0.646427 |
623e9ad50dbf0fcd3e5a7c9f0579d73df5845181 | 6,445 | py | Python | example/mnist/train_mnist_chainer.py | gunpowder78/webdnn | c659ea49007f91d178ce422a1eebe289516a71ee | [
"MIT"
] | 1 | 2018-07-26T13:52:21.000Z | 2018-07-26T13:52:21.000Z | example/mnist/train_mnist_chainer.py | gunpowder78/webdnn | c659ea49007f91d178ce422a1eebe289516a71ee | [
"MIT"
] | null | null | null | example/mnist/train_mnist_chainer.py | gunpowder78/webdnn | c659ea49007f91d178ce422a1eebe289516a71ee | [
"MIT"
] | null | null | null | #!/usr/bin/env python
"""
WebDNN's example of training and converting mnist model to "graph descriptor"
Basic part is from example of Chainer (https://github.com/pfnet/chainer/)
Copyright (c) 2015 Preferred Infrastructure, Inc.
Copyright (c) 2015 Preferred Networks, Inc.
Permission is hereby granted, free of charge... | 35.412088 | 134 | 0.695733 |
623e9d043b8c262805506cc8d3634dea75ae3aed | 726 | py | Python | test/test_console_print.py | hadara/punnsilm | 71e267ca64b1f3a6c7d5bc304652534e458c49d0 | [
"MIT"
] | 1 | 2021-11-11T17:12:28.000Z | 2021-11-11T17:12:28.000Z | test/test_console_print.py | hadara/punnsilm | 71e267ca64b1f3a6c7d5bc304652534e458c49d0 | [
"MIT"
] | null | null | null | test/test_console_print.py | hadara/punnsilm | 71e267ca64b1f3a6c7d5bc304652534e458c49d0 | [
"MIT"
] | null | null | null | NODE_LIST = [
{
'name': 'syslog_source',
'type': 'syslog_file_monitor',
'outputs': [
'filter',
],
'params': {
'filename': 'testlog1.log',
}
},
{
'name': 'filter',
'type': 'rx_grouper',
'params': {
'gr... | 20.166667 | 47 | 0.290634 |
623f278dacb5a194d2e267e22ae20683ef4c99bd | 18,197 | py | Python | src/sardana/macroserver/scan/scandata.py | schooft/sardana | 76287b416650f40da79871ee3849340d0ff31f1d | [
"CC-BY-3.0"
] | null | null | null | src/sardana/macroserver/scan/scandata.py | schooft/sardana | 76287b416650f40da79871ee3849340d0ff31f1d | [
"CC-BY-3.0"
] | null | null | null | src/sardana/macroserver/scan/scandata.py | schooft/sardana | 76287b416650f40da79871ee3849340d0ff31f1d | [
"CC-BY-3.0"
] | null | null | null | #!/usr/bin/env python
##############################################################################
##
# This file is part of Sardana
##
# http://www.sardana-controls.org/
##
# Copyright 2011 CELLS / ALBA Synchrotron, Bellaterra, Spain
##
# Sardana is free software: you can redistribute it and/or modify
# it under th... | 34.013084 | 79 | 0.578447 |
623f72a3f5c14d773ed5da82b0ec8d74eebcc1bc | 1,130 | py | Python | speech_recognizer/config.py | naderabdalghani/project-rev | 3205d42a2220372783ab49ce8c3c70a4c4b9ad7e | [
"Apache-2.0"
] | 2 | 2021-12-13T04:19:30.000Z | 2022-02-16T16:27:20.000Z | speech_recognizer/config.py | MuhanadAtef/project-rev | 3205d42a2220372783ab49ce8c3c70a4c4b9ad7e | [
"Apache-2.0"
] | null | null | null | speech_recognizer/config.py | MuhanadAtef/project-rev | 3205d42a2220372783ab49ce8c3c70a4c4b9ad7e | [
"Apache-2.0"
] | 2 | 2021-08-17T06:25:36.000Z | 2021-08-17T12:45:33.000Z | from .text_transformer import TextTransformer
import torch
import os
from app_config import DATA_DIR
FEATURE_USED = {'name': 'mel-spectrogram', 'n_features': 128}
SAMPLING_RATE = 16000
TEXT_TRANSFORMER = TextTransformer()
HYPER_PARAMS = {
"n_cnn_layers": 3,
"n_rnn_layers": 5,
"rnn_dim": 512,
"n_class"... | 35.3125 | 134 | 0.736283 |
623f8a9cd311f8830a201ce979fb2c17fcde8817 | 2,271 | py | Python | catalyst/dl/scripts/train.py | ivbelkin/catalyst | 468348d0a9a2c2e34e6e3550adf67275e96ce13d | [
"MIT"
] | null | null | null | catalyst/dl/scripts/train.py | ivbelkin/catalyst | 468348d0a9a2c2e34e6e3550adf67275e96ce13d | [
"MIT"
] | null | null | null | catalyst/dl/scripts/train.py | ivbelkin/catalyst | 468348d0a9a2c2e34e6e3550adf67275e96ce13d | [
"MIT"
] | null | null | null | #!/usr/bin/env python
import os
import argparse
import pathlib
from catalyst.dl.scripts.utils import prepare_modules
from catalyst.contrib.registry import Registry
from catalyst.utils.config import parse_args_uargs, save_config
from catalyst.utils.misc import set_global_seeds, boolean_flag
def build_args(parser):
... | 29.115385 | 76 | 0.686482 |
623fb4df6f3feb4ab1daa7a4340afd3f29fb2601 | 959 | py | Python | atom/proton/python/test/test_recommendation_config1.py | AbhiGupta03/SDK | f3a61aae7a847f07f0c22a154ca88dc378e9d25e | [
"Apache-2.0"
] | 11 | 2019-04-16T02:11:17.000Z | 2021-12-16T22:51:40.000Z | atom/proton/python/test/test_recommendation_config1.py | AbhiGupta03/SDK | f3a61aae7a847f07f0c22a154ca88dc378e9d25e | [
"Apache-2.0"
] | 81 | 2019-11-19T23:24:28.000Z | 2022-03-28T11:35:47.000Z | atom/proton/python/test/test_recommendation_config1.py | AbhiGupta03/SDK | f3a61aae7a847f07f0c22a154ca88dc378e9d25e | [
"Apache-2.0"
] | 11 | 2020-07-08T02:29:56.000Z | 2022-03-28T10:05:33.000Z | # coding: utf-8
"""
Hydrogen Proton API
Financial engineering module of Hydrogen Atom # noqa: E501
OpenAPI spec version: 1.9.2
Contact: info@hydrogenplatform.com
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
from __future__ import absolute_import
import unittest
import... | 23.390244 | 96 | 0.72367 |
623fcdb1ffb6f7c00ff92efc68a67a4bb4c6861b | 1,915 | py | Python | libs/scriptmenu.py | spidermila/mikrotik_control | 65bf4405be180cf5073cdb129aa345df4ddfac52 | [
"MIT"
] | null | null | null | libs/scriptmenu.py | spidermila/mikrotik_control | 65bf4405be180cf5073cdb129aa345df4ddfac52 | [
"MIT"
] | null | null | null | libs/scriptmenu.py | spidermila/mikrotik_control | 65bf4405be180cf5073cdb129aa345df4ddfac52 | [
"MIT"
] | 1 | 2022-03-20T02:57:03.000Z | 2022-03-20T02:57:03.000Z | from typing import List
from libs.configuration import Configuration
from libs.device import Device
from libs.group import Group
from libs.script import Script
class ScriptMenu:
def __init__(
self,
config: Configuration,
devices: List[Device],
groups: List[Group],
scripts:... | 30.887097 | 55 | 0.499217 |
623fe82e8d8507de903cf02f3f97f80350346ae4 | 11,347 | py | Python | MOOCdbFeatureExtract/program/sql_functions_feature_extract/sql_functions_ori.py | rcmurray/WorkflowComponents | 368f8132ce5bef3ac3fb9d8e1a13a08f91764cfa | [
"BSD-4-Clause-UC"
] | 26 | 2016-09-14T18:15:29.000Z | 2021-12-01T20:01:29.000Z | MOOCdbFeatureExtract/program/sql_functions_feature_extract/sql_functions_ori.py | rcmurray/WorkflowComponents | 368f8132ce5bef3ac3fb9d8e1a13a08f91764cfa | [
"BSD-4-Clause-UC"
] | 122 | 2017-09-12T15:22:03.000Z | 2021-09-27T17:25:08.000Z | MOOCdbFeatureExtract/program/sql_functions_feature_extract/sql_functions_ori.py | rcmurray/WorkflowComponents | 368f8132ce5bef3ac3fb9d8e1a13a08f91764cfa | [
"BSD-4-Clause-UC"
] | 17 | 2017-02-16T16:04:41.000Z | 2021-02-06T05:36:44.000Z | """
Helper functions for interfacing with SQL databases
"""
import MySQLdb
import MySQLdb.cursors as cursors
import getpass
import shutil
import os
from subprocess import Popen, PIPE
import re
import sqlparse
import multiprocessing
class TimeoutException(Exception):
pass
def openSQLConnection(databaseName, userNa... | 36.485531 | 139 | 0.666255 |
623fec9cb1ae02ede0a23fa6d9ce82fc08cf721b | 669 | py | Python | plugins/rabbitmq/pyparts/cluster_checks.py | nicolasbock/hotsos | 6a0d650a8d76b5a5f85f4ddc8c0a9f8939e1de7a | [
"Apache-2.0"
] | null | null | null | plugins/rabbitmq/pyparts/cluster_checks.py | nicolasbock/hotsos | 6a0d650a8d76b5a5f85f4ddc8c0a9f8939e1de7a | [
"Apache-2.0"
] | null | null | null | plugins/rabbitmq/pyparts/cluster_checks.py | nicolasbock/hotsos | 6a0d650a8d76b5a5f85f4ddc8c0a9f8939e1de7a | [
"Apache-2.0"
] | null | null | null | from core.checks import CallbackHelper
from core.issues import (
issue_types,
issue_utils,
)
from core.plugins.rabbitmq import RabbitMQEventChecksBase
YAML_PRIORITY = 1
EVENTCALLBACKS = CallbackHelper()
class RabbitMQClusterChecks(RabbitMQEventChecksBase):
def __init__(self):
super().__init__(ya... | 29.086957 | 66 | 0.715994 |
623feee9ea031188c25e34c518d5b6fa22165fe2 | 180 | py | Python | settings/apps.py | FRA1T/django_news | f293df7197a261d8f853a68a1579dc377c0f1d15 | [
"MIT"
] | 2 | 2020-10-31T07:01:03.000Z | 2020-10-31T07:04:13.000Z | settings/apps.py | GitHuber228/django_news | 63798966214848ca9ab9370ca070d1b9c89a314b | [
"MIT"
] | null | null | null | settings/apps.py | GitHuber228/django_news | 63798966214848ca9ab9370ca070d1b9c89a314b | [
"MIT"
] | 1 | 2020-10-31T07:04:21.000Z | 2020-10-31T07:04:21.000Z | from django.apps import AppConfig
from django.utils.translation import ugettext_lazy as _
class SettingsConfig(AppConfig):
name = 'settings'
verbose_name = _('Settings')
| 22.5 | 55 | 0.766667 |
62400896acb81d28d9eaf1dfb7ad84b9f9eaa4b0 | 3,816 | py | Python | rapvis/rapvis_gene_dis.py | liuwell/rapvis | a69d06a31b1d7fe4510c1c90bfeee22b68a9b3b9 | [
"MIT"
] | 1 | 2020-10-25T10:23:45.000Z | 2020-10-25T10:23:45.000Z | rapvis/rapvis_gene_dis.py | liuwell/rapvis | a69d06a31b1d7fe4510c1c90bfeee22b68a9b3b9 | [
"MIT"
] | null | null | null | rapvis/rapvis_gene_dis.py | liuwell/rapvis | a69d06a31b1d7fe4510c1c90bfeee22b68a9b3b9 | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
import matplotlib.pyplot as plt
plt.switch_backend('agg')
import pandas as pd
import numpy as np
from pandas.api.types import CategoricalDtype
from scipy import stats
import seaborn as sns
import datetime
import os
import re
import math
###
from rapvis_general import current_time
###
def gene_... | 29.8125 | 149 | 0.697327 |
62404befe9ac3774c5e70f3fa02e113e317b8f8a | 2,956 | py | Python | plot.py | jlgleason/hts-constrained-embeddings | 713fbe7deb7f145ba0eff66b9b67bf1cafd2222b | [
"MIT"
] | 9 | 2020-08-24T20:10:35.000Z | 2022-01-31T20:38:40.000Z | plot.py | jlgleason/hts-constrained-embeddings | 713fbe7deb7f145ba0eff66b9b67bf1cafd2222b | [
"MIT"
] | 2 | 2020-09-16T15:11:14.000Z | 2021-03-30T21:22:37.000Z | plot.py | jlgleason/hts-constrained-embeddings | 713fbe7deb7f145ba0eff66b9b67bf1cafd2222b | [
"MIT"
] | 2 | 2020-09-10T14:52:45.000Z | 2021-03-30T03:40:12.000Z | #######
#
# Script to reproduce learning curve plots
#
# Usage:
#
# 1) python plot.py
#
# This will produce a plot of training loss over iterations, averaged over all
# folds in a single experiment
#######
import glob
from typing import List
import fire
import pandas as pd
import seaborn as sns
import m... | 32.844444 | 105 | 0.598782 |
62404d42c94d3a15001d0aa3926a10327ea91545 | 5,785 | py | Python | sdk/storage/azure-mgmt-storage/azure/mgmt/storage/v2021_08_01/operations/_skus_operations.py | vincenttran-msft/azure-sdk-for-python | 348b56f9f03eeb3f7b502eed51daf494ffff874d | [
"MIT"
] | 1 | 2022-03-09T08:59:13.000Z | 2022-03-09T08:59:13.000Z | sdk/storage/azure-mgmt-storage/azure/mgmt/storage/v2021_08_01/operations/_skus_operations.py | vincenttran-msft/azure-sdk-for-python | 348b56f9f03eeb3f7b502eed51daf494ffff874d | [
"MIT"
] | null | null | null | sdk/storage/azure-mgmt-storage/azure/mgmt/storage/v2021_08_01/operations/_skus_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 ... | 39.896552 | 133 | 0.663267 |
624052d5ae35ce65086f62f766a038b461fddc94 | 12,675 | py | Python | sdk/containerregistry/azure-containerregistry/tests/test_container_repository_client.py | JayDoubleu/azure-sdk-for-python | f3760fc8d7ea1b46b0def0628579d36abe75976f | [
"MIT"
] | null | null | null | sdk/containerregistry/azure-containerregistry/tests/test_container_repository_client.py | JayDoubleu/azure-sdk-for-python | f3760fc8d7ea1b46b0def0628579d36abe75976f | [
"MIT"
] | null | null | null | sdk/containerregistry/azure-containerregistry/tests/test_container_repository_client.py | JayDoubleu/azure-sdk-for-python | f3760fc8d7ea1b46b0def0628579d36abe75976f | [
"MIT"
] | null | null | null | # coding=utf-8
# ------------------------------------
# Copyright (c) Microsoft Corporation.
# Licensed under the MIT License.
# ------------------------------------
from datetime import datetime
import pytest
from devtools_testutils import AzureTestCase
from azure.containerregistry import (
ContainerRepositoryCl... | 37.835821 | 117 | 0.692781 |
62405b48d4cf2e2005c04960361fd037cd767157 | 335 | py | Python | basics/int_float_bool_None.py | mukeshkhattar/python-basics | c674aad80649e2a734bfdcafff834038bd8f4175 | [
"Apache-2.0"
] | null | null | null | basics/int_float_bool_None.py | mukeshkhattar/python-basics | c674aad80649e2a734bfdcafff834038bd8f4175 | [
"Apache-2.0"
] | null | null | null | basics/int_float_bool_None.py | mukeshkhattar/python-basics | c674aad80649e2a734bfdcafff834038bd8f4175 | [
"Apache-2.0"
] | null | null | null | '''
int
float
bool
None - It has one only value : None
'''
# -inf
a=float('-inf')
type(a)
a
if a == float('-inf'):
'yes'
# int operator gives floor value in int, do not use round :
round(2.5) #2
round(1.5) # 2
int(1.5) # 1
int(2.5) # 2
#None
a=None
type(a) # <class 'NoneType'>
if a == None:
'yes'
a # does not p... | 12.407407 | 59 | 0.59403 |
62405fc8f525f3b73e4030a9a111c89b11c9b50a | 4,512 | py | Python | src/app.py | bhasha-lip-reading/dataset-manager | c17d1caefb43dd58ba04b9673f8249a06cf2b33a | [
"Apache-2.0"
] | null | null | null | src/app.py | bhasha-lip-reading/dataset-manager | c17d1caefb43dd58ba04b9673f8249a06cf2b33a | [
"Apache-2.0"
] | null | null | null | src/app.py | bhasha-lip-reading/dataset-manager | c17d1caefb43dd58ba04b9673f8249a06cf2b33a | [
"Apache-2.0"
] | null | null | null | from glob import glob
import argparse
from Command.AudioExtractionCommand import AudioExtractionCommand
import config
from Command.AudioExtractionCommand import AudioExtractionCommand
from Command.CommandHandler import CommandHandler
from Command.VideoPlayerCommand import VideoPlayerCommand
from Command.AudioDetectionC... | 29.880795 | 85 | 0.631206 |
62409355bf54dc9a90b2371836aa4c42f51f1480 | 7,308 | py | Python | kesk.py | LeonLenclos/kesk | bdfea9e69a8bf77744960fd09ecaa00e726e2a6f | [
"Unlicense"
] | 1 | 2018-11-13T14:29:07.000Z | 2018-11-13T14:29:07.000Z | kesk.py | LeonLenclos/kesk | bdfea9e69a8bf77744960fd09ecaa00e726e2a6f | [
"Unlicense"
] | null | null | null | kesk.py | LeonLenclos/kesk | bdfea9e69a8bf77744960fd09ecaa00e726e2a6f | [
"Unlicense"
] | null | null | null | #!/usr/bin/env python3
"""Kesk (V1.0) is a simple keyboard-only drawing software made with pygame"""
import pygame
from config import *
pygame.init()
class Kesk:
"""The application's class."""
def __init__(self,
fg_color=DEFAULT_FG_COLOR,
bg_color=DEFAULT_BG_COLOR,
... | 33.990698 | 80 | 0.534209 |
6240d441765374bf807d43348b6fe405f72f2e5e | 13,195 | py | Python | eventio/iact/objects.py | mblnk/pyeventio | 072dbd698f3bcd8e60eff0eeddcf828615b28db8 | [
"MIT"
] | 5 | 2016-11-18T15:53:00.000Z | 2018-11-29T15:36:40.000Z | eventio/iact/objects.py | mblnk/pyeventio | 072dbd698f3bcd8e60eff0eeddcf828615b28db8 | [
"MIT"
] | 48 | 2016-09-30T23:44:07.000Z | 2018-12-11T16:08:36.000Z | eventio/iact/objects.py | mblnk/pyeventio | 072dbd698f3bcd8e60eff0eeddcf828615b28db8 | [
"MIT"
] | null | null | null | ''' Methods to read in and parse the IACT EventIO object types '''
import struct
import numpy as np
from io import BytesIO
from corsikaio.subblocks import (
parse_run_header,
parse_run_end,
parse_event_header,
parse_event_end,
)
from ..tools import (
read_short, read_int, read_float, read_from, rea... | 29.128035 | 90 | 0.581129 |
6240e3de1c65632d29a9ea0fb8ed6ba6008235fc | 1,230 | py | Python | app/test_yummy_recipes.py | pnganga/Yummy_recipes | f15ca850cf3f596ca077977ed9df1d6dc475cc84 | [
"MIT"
] | null | null | null | app/test_yummy_recipes.py | pnganga/Yummy_recipes | f15ca850cf3f596ca077977ed9df1d6dc475cc84 | [
"MIT"
] | 1 | 2017-10-17T13:02:39.000Z | 2017-10-17T14:15:07.000Z | app/test_yummy_recipes.py | pnganga/Yummy_recipes | f15ca850cf3f596ca077977ed9df1d6dc475cc84 | [
"MIT"
] | null | null | null | import flask
import unittest
from flask_testing import TestCase
from app import app
from app import simulated_models
class TestYummyRecipes(TestCase):
# testing if routes render the right templates
def create_app(self):
return app
def test_root(self):
self.client.get('/')
self.assert_template_used('index... | 24.6 | 176 | 0.739837 |
6240f76dd373eb8da6bc5aba0c10f73b92179aac | 1,118 | py | Python | nova/cmd/xvpvncproxy.py | ebalduf/nova-backports | 6bf97ec73467de522d34ab7a17ca0e0874baa7f9 | [
"Apache-2.0"
] | 5 | 2016-04-28T16:20:38.000Z | 2021-04-25T11:19:03.000Z | nova/cmd/xvpvncproxy.py | ebalduf/nova-backports | 6bf97ec73467de522d34ab7a17ca0e0874baa7f9 | [
"Apache-2.0"
] | 11 | 2017-06-19T01:28:55.000Z | 2017-06-23T02:01:47.000Z | nova/cmd/xvpvncproxy.py | ebalduf/nova-backports | 6bf97ec73467de522d34ab7a17ca0e0874baa7f9 | [
"Apache-2.0"
] | 7 | 2015-01-20T10:30:08.000Z | 2020-02-05T10:29:05.000Z | # Copyright (c) 2010 OpenStack Foundation
# 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... | 29.421053 | 77 | 0.744186 |
624120b461afc3f510742c0c048badd4b0a10121 | 8,329 | py | Python | osiris/base/environments.py | skadyan/aws-glue-python-kickstart | 5e3228a0793188d248f801a2b5a522210048ccde | [
"Apache-2.0"
] | 4 | 2020-04-23T18:43:27.000Z | 2022-02-22T03:57:06.000Z | osiris/base/environments.py | skadyan/aws-glue-python-kickstart | 5e3228a0793188d248f801a2b5a522210048ccde | [
"Apache-2.0"
] | 1 | 2021-06-02T00:47:12.000Z | 2021-06-02T00:47:12.000Z | osiris/base/environments.py | skadyan/aws-glue-python-kickstart | 5e3228a0793188d248f801a2b5a522210048ccde | [
"Apache-2.0"
] | null | null | null | import abc
import os
import re
import typing
from abc import abstractmethod
from argparse import Namespace
from functools import lru_cache
from typing import Any, Callable, List
import yaml
from osiris.base import logutils, generalutils
from osiris.base.fsutils import fs_open, fs_exists
from osiris.base.generalutils ... | 31.790076 | 117 | 0.610277 |
62413d2eb5567b80c3b43f010c18aa5e29557a86 | 283 | py | Python | mim/tests/test_mim.py | nbraunsc/MIM | 587ae79b0ec76c20af6235a68c85ed15f2cc7155 | [
"BSD-3-Clause"
] | null | null | null | mim/tests/test_mim.py | nbraunsc/MIM | 587ae79b0ec76c20af6235a68c85ed15f2cc7155 | [
"BSD-3-Clause"
] | null | null | null | mim/tests/test_mim.py | nbraunsc/MIM | 587ae79b0ec76c20af6235a68c85ed15f2cc7155 | [
"BSD-3-Clause"
] | null | null | null | """
Unit and regression test for the mim package.
"""
# Import package, test suite, and other packages as needed
import mim
import pytest
import sys
def test_mim_imported():
"""Sample test, will always pass so long as import statement worked"""
assert "mim" in sys.modules
| 21.769231 | 74 | 0.731449 |
62416ace8227306d429936d89152ae5278119cce | 6,412 | py | Python | asposewordscloud/models/form_field_response.py | aspose-words-cloud/aspose-words-cloud-python | 65c7b55fa4aac69b60d41e7f54aed231df285479 | [
"MIT"
] | 14 | 2018-07-15T17:01:52.000Z | 2018-11-29T06:15:33.000Z | asposewordscloud/models/form_field_response.py | aspose-words-cloud/aspose-words-cloud-python | 65c7b55fa4aac69b60d41e7f54aed231df285479 | [
"MIT"
] | 1 | 2018-09-28T12:59:34.000Z | 2019-10-08T08:42:59.000Z | asposewordscloud/models/form_field_response.py | aspose-words-cloud/aspose-words-cloud-python | 65c7b55fa4aac69b60d41e7f54aed231df285479 | [
"MIT"
] | 2 | 2020-12-21T07:59:17.000Z | 2022-02-16T21:41:25.000Z | # coding: utf-8
# -----------------------------------------------------------------------------------
# <copyright company="Aspose" file="form_field_response.py">
# Copyright (c) 2021 Aspose.Words for Cloud
# </copyright>
# <summary>
# Permission is hereby granted, free of charge, to any person obtaining a copy
# ... | 35.038251 | 85 | 0.584373 |
6241889ce3708a9298bf71610771c63752aae856 | 326 | py | Python | tap_list_providers/models.py | danroberts728/hsvdotbeer | 5b977bf4a7aab149ad56564b3adbb09424500308 | [
"Apache-2.0"
] | 18 | 2018-12-06T01:46:37.000Z | 2021-10-17T10:37:17.000Z | tap_list_providers/models.py | danroberts728/hsvdotbeer | 5b977bf4a7aab149ad56564b3adbb09424500308 | [
"Apache-2.0"
] | 194 | 2018-11-04T12:50:49.000Z | 2022-01-06T22:43:43.000Z | tap_list_providers/models.py | danroberts728/hsvdotbeer | 5b977bf4a7aab149ad56564b3adbb09424500308 | [
"Apache-2.0"
] | 7 | 2019-03-18T05:36:06.000Z | 2020-12-25T03:27:29.000Z | """Models for tap list provider support"""
from django.db import models
from venues.models import Venue
class APIRateLimitTimestamp(models.Model):
api_type = models.CharField(
max_length=50,
unique=True,
choices=Venue.TAP_LIST_PROVIDERS,
)
rate_limit_expires_at = models.DateTimeFi... | 23.285714 | 50 | 0.717791 |
6241976693f9bea5fb314774fda1b1ac1a7d51e6 | 13,355 | py | Python | imperative/python/megengine/utils/profile_analyzer.py | chenbo123222/MegEngine | 8230ea2d0b16422136ad27b4073d523b524aa4e6 | [
"Apache-2.0"
] | 3 | 2020-10-23T06:33:57.000Z | 2020-10-23T06:34:06.000Z | imperative/python/megengine/utils/profile_analyzer.py | chenbo123222/MegEngine | 8230ea2d0b16422136ad27b4073d523b524aa4e6 | [
"Apache-2.0"
] | null | null | null | imperative/python/megengine/utils/profile_analyzer.py | chenbo123222/MegEngine | 8230ea2d0b16422136ad27b4073d523b524aa4e6 | [
"Apache-2.0"
] | null | null | null | # -*- coding: utf-8 -*-
# MegEngine is Licensed under the Apache License, Version 2.0 (the "License")
#
# Copyright (c) 2014-2020 Megvii Inc. All rights reserved.
#
# Unless required by applicable law or agreed to in writing,
# software distributed under the License is distributed on an
# "AS IS" BASIS, WITHOUT ARRANTI... | 33.221393 | 88 | 0.586148 |
6241b4d8959cdd6d7bcad838cbb146b844ef35b9 | 12,339 | py | Python | planet/scripts/tasks.py | dingyiming0427/planet | a6c810855e8824c244d527ab57ccf7178e302a12 | [
"Apache-2.0"
] | null | null | null | planet/scripts/tasks.py | dingyiming0427/planet | a6c810855e8824c244d527ab57ccf7178e302a12 | [
"Apache-2.0"
] | null | null | null | planet/scripts/tasks.py | dingyiming0427/planet | a6c810855e8824c244d527ab57ccf7178e302a12 | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 The PlaNet 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... | 40.588816 | 104 | 0.74147 |
6241bf28eb0832a8df2865f685794a8d27237ea0 | 4,187 | py | Python | sdks/python/appcenter_sdk/models/AddAppTesterResponse.py | Brantone/appcenter-sdks | eeb063ecf79908b6e341fb00196d2cd9dc8f3262 | [
"MIT"
] | null | null | null | sdks/python/appcenter_sdk/models/AddAppTesterResponse.py | Brantone/appcenter-sdks | eeb063ecf79908b6e341fb00196d2cd9dc8f3262 | [
"MIT"
] | 6 | 2019-10-23T06:38:53.000Z | 2022-01-22T07:57:58.000Z | sdks/python/appcenter_sdk/models/AddAppTesterResponse.py | Brantone/appcenter-sdks | eeb063ecf79908b6e341fb00196d2cd9dc8f3262 | [
"MIT"
] | 2 | 2019-10-23T06:31:05.000Z | 2021-08-21T17:32:47.000Z | # coding: utf-8
"""
App Center Client
Microsoft Visual Studio App Center API # noqa: E501
OpenAPI spec version: preview
Contact: benedetto.abbenanti@gmail.com
Project Repository: https://github.com/b3nab/appcenter-sdks
"""
import pprint
import re # noqa: F401
import six
class AddAppTesterRe... | 29.695035 | 96 | 0.58395 |
6241c77b1a8498c072d2fb49b65f03480a4f6a77 | 1,352 | py | Python | pytket/backends/measurements.py | tbcdebug/pytket | 5568d8a4e0c3d9799e227493f697841b6eb3b769 | [
"Apache-2.0"
] | null | null | null | pytket/backends/measurements.py | tbcdebug/pytket | 5568d8a4e0c3d9799e227493f697841b6eb3b769 | [
"Apache-2.0"
] | null | null | null | pytket/backends/measurements.py | tbcdebug/pytket | 5568d8a4e0c3d9799e227493f697841b6eb3b769 | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 Cambridge Quantum Computing
#
# 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 agree... | 35.578947 | 97 | 0.706361 |
6241f062421e6d00ee704d4b0da7db84db5a8700 | 10,703 | py | Python | canvas_sdk/methods/quiz_questions.py | david-house-harvard/canvas_python_sdk | 9c2e59621a9a5667bc43c253ef801482b241a2c1 | [
"MIT"
] | 21 | 2015-06-12T13:49:04.000Z | 2021-11-08T05:37:44.000Z | canvas_sdk/methods/quiz_questions.py | david-house-harvard/canvas_python_sdk | 9c2e59621a9a5667bc43c253ef801482b241a2c1 | [
"MIT"
] | 44 | 2015-02-04T15:26:52.000Z | 2021-12-03T17:47:00.000Z | canvas_sdk/methods/quiz_questions.py | david-house-harvard/canvas_python_sdk | 9c2e59621a9a5667bc43c253ef801482b241a2c1 | [
"MIT"
] | 7 | 2015-07-20T23:56:03.000Z | 2021-02-23T17:13:00.000Z | from canvas_sdk import client, utils
def list_questions_in_quiz(request_ctx, course_id, quiz_id, per_page=None, **request_kwargs):
"""
Returns the list of QuizQuestions in this quiz.
:param request_ctx: The request context
:type request_ctx: :class:RequestContext
:param course_id: (req... | 53.515 | 400 | 0.731571 |
6241f4f87893a18d23659dc6f3a979ed54bd8c96 | 1,806 | py | Python | 1_code/attr_mngment/persist_attr_manager.py | jaimiles23/Multiplication_Medley | 1072dea1a5be0b339211ff39db6a89a90aca64c1 | [
"MIT"
] | null | null | null | 1_code/attr_mngment/persist_attr_manager.py | jaimiles23/Multiplication_Medley | 1072dea1a5be0b339211ff39db6a89a90aca64c1 | [
"MIT"
] | null | null | null | 1_code/attr_mngment/persist_attr_manager.py | jaimiles23/Multiplication_Medley | 1072dea1a5be0b339211ff39db6a89a90aca64c1 | [
"MIT"
] | null | null | null | """
/**
* @author [Jai Miles]
* @email [jaimiles23@gmail.com]
* @create date 2020-05-04 16:10:38
* @modify date 2020-06-16 14:27:47
* @desc [
Utility class for loading & saving persistent attributes.
]*/"""
##########
# Imports
##########
from logs import logger, log_func_name, log_all
##########
# Utility... | 27.784615 | 86 | 0.662791 |
6241f7cf95cf2a343d36c42d31df72ed7b47070b | 239 | py | Python | setup.py | dapetri/coin-it | 933b56a85abca9e5130d7a657c9524e76bc09c35 | [
"MIT"
] | null | null | null | setup.py | dapetri/coin-it | 933b56a85abca9e5130d7a657c9524e76bc09c35 | [
"MIT"
] | null | null | null | setup.py | dapetri/coin-it | 933b56a85abca9e5130d7a657c9524e76bc09c35 | [
"MIT"
] | null | null | null | from setuptools import find_packages, setup
setup(
name='src',
packages=find_packages(),
version='0.1.0',
description='RL model levareging on correlations between crypto coins.',
author='dapetri',
license='MIT',
)
| 21.727273 | 76 | 0.686192 |
62420a598aa6474e46cc360791ba98c74083f1f4 | 23,070 | py | Python | magicbot/state_machine.py | ConnectionMaster/robotpy-wpilib-utilities | b62e563c7df113e9e513a36b9039f47f34157be1 | [
"BSD-3-Clause"
] | 14 | 2015-10-20T02:56:17.000Z | 2020-03-17T04:44:12.000Z | magicbot/state_machine.py | robotpy/robotpy-wpilib-utilities | 80f753a1d315d234d6ecdd79be544ec01ca091ae | [
"BSD-3-Clause"
] | 107 | 2015-01-26T23:47:10.000Z | 2022-03-16T13:57:36.000Z | magicbot/state_machine.py | ConnectionMaster/robotpy-wpilib-utilities | b62e563c7df113e9e513a36b9039f47f34157be1 | [
"BSD-3-Clause"
] | 21 | 2016-01-01T01:44:40.000Z | 2022-03-15T18:00:35.000Z | import functools
import inspect
from typing import Callable, Optional
import wpilib
from .magic_tunable import tunable
if wpilib.RobotBase.isSimulation():
getTime = wpilib.Timer.getFPGATimestamp
else:
from time import monotonic as getTime
class IllegalCallError(TypeError):
pass
class NoFirstStateErro... | 35.546995 | 86 | 0.613697 |
62422abc07ec17c3b5105a523a216187f0f0c103 | 931 | py | Python | sdks/python/test/test_TesterAppResponse.py | Brantone/appcenter-sdks | eeb063ecf79908b6e341fb00196d2cd9dc8f3262 | [
"MIT"
] | null | null | null | sdks/python/test/test_TesterAppResponse.py | Brantone/appcenter-sdks | eeb063ecf79908b6e341fb00196d2cd9dc8f3262 | [
"MIT"
] | 6 | 2019-10-23T06:38:53.000Z | 2022-01-22T07:57:58.000Z | sdks/python/test/test_TesterAppResponse.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... | 23.275 | 93 | 0.72073 |
62423bb191a0efa22ed1c3c79cb125b9814da253 | 3,475 | py | Python | escli/main.py | zhongnansu/es-cli | e0656c21392e52a8b9cfafa69acfa0c13b743a9c | [
"Apache-2.0"
] | 6 | 2019-08-23T18:06:41.000Z | 2020-05-06T18:26:53.000Z | escli/main.py | zhongnansu/es-cli | e0656c21392e52a8b9cfafa69acfa0c13b743a9c | [
"Apache-2.0"
] | null | null | null | escli/main.py | zhongnansu/es-cli | e0656c21392e52a8b9cfafa69acfa0c13b743a9c | [
"Apache-2.0"
] | null | null | null | """
Copyright 2019, Amazon Web Services Inc.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing,... | 33.095238 | 112 | 0.697554 |
62424cf95c27d0da6dcab7913aaf45eae43ab96d | 3,343 | py | Python | qnarre.old/test/test_message.py | quantapix/qnarre.com | f51d5945c20ef8182c4aa11f1b407d064c190c70 | [
"MIT"
] | null | null | null | qnarre.old/test/test_message.py | quantapix/qnarre.com | f51d5945c20ef8182c4aa11f1b407d064c190c70 | [
"MIT"
] | null | null | null | qnarre.old/test/test_message.py | quantapix/qnarre.com | f51d5945c20ef8182c4aa11f1b407d064c190c70 | [
"MIT"
] | null | null | null | # Copyright 2018 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... | 32.456311 | 79 | 0.601855 |
62426300f28b8c6a0c9bd02a4c411708a3f324bd | 3,826 | py | Python | expression_interface/contexts.py | IDEHCO3/kanban-backend | 902732f0fd569627925356d6b9d68a5ec7680b88 | [
"MIT"
] | null | null | null | expression_interface/contexts.py | IDEHCO3/kanban-backend | 902732f0fd569627925356d6b9d68a5ec7680b88 | [
"MIT"
] | null | null | null | expression_interface/contexts.py | IDEHCO3/kanban-backend | 902732f0fd569627925356d6b9d68a5ec7680b88 | [
"MIT"
] | null | null | null | from hyper_resource.contexts import ContextResource
class SubBooleanOperatorResourceContext(ContextResource):
def attributes_contextualized_dict(self):
dic_context = {
"in": {'@id': "http:/interfaces/in", '@type': "http:/interfaces/in"},
... | 64.847458 | 133 | 0.490068 |
62426465b5184b7c8822e75d78310161a4d277eb | 7,488 | py | Python | scripts/calibrate_real_joint.py | longhathuc/agimus-vision | 9ee13e727ff9612a647aeb48d92ab73f85543369 | [
"BSD-2-Clause"
] | 1 | 2019-12-01T19:13:22.000Z | 2019-12-01T19:13:22.000Z | scripts/calibrate_real_joint.py | longhathuc/agimus-vision | 9ee13e727ff9612a647aeb48d92ab73f85543369 | [
"BSD-2-Clause"
] | 7 | 2018-09-27T09:34:44.000Z | 2020-04-08T08:25:08.000Z | scripts/calibrate_real_joint.py | longhathuc/agimus-vision | 9ee13e727ff9612a647aeb48d92ab73f85543369 | [
"BSD-2-Clause"
] | 3 | 2018-08-28T13:52:47.000Z | 2021-01-22T15:47:56.000Z | import rospy
import tf
import tf2_ros
import thread
import pickle
import math
import numpy as np
rospy.init_node('saveTf')
transfo = tf.TransformerROS()
buf = tf2_ros.Buffer()
listener = tf2_ros.TransformListener(buf)
listener_acq = tf.TransformListener()
def fitSphere(points):
x = np.array([p[0] for p in poin... | 32 | 209 | 0.534188 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.