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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
ffa75c630b1c91a28f74260ec560ddd8e1e035e5 | 919 | py | Python | onadata/apps/viewer/management/commands/set_uuid_in_xml.py | ubpd/kobocat | 45906e07e8f05c30e3e26bab5570a8ab1ee264db | [
"BSD-2-Clause"
] | null | null | null | onadata/apps/viewer/management/commands/set_uuid_in_xml.py | ubpd/kobocat | 45906e07e8f05c30e3e26bab5570a8ab1ee264db | [
"BSD-2-Clause"
] | null | null | null | onadata/apps/viewer/management/commands/set_uuid_in_xml.py | ubpd/kobocat | 45906e07e8f05c30e3e26bab5570a8ab1ee264db | [
"BSD-2-Clause"
] | null | null | null | # coding: utf-8
from __future__ import unicode_literals, print_function, division, absolute_import
from django.core.management.base import BaseCommand
from django.utils.translation import ugettext as _, ugettext_lazy
from onadata.apps.viewer.models.data_dictionary import DataDictionary
from onadata.libs.utils.model_to... | 39.956522 | 82 | 0.662677 |
ffa78121586526868101ece5593b236dd46bcf3e | 8,885 | py | Python | tests/unit/benchmark/scenarios/compute/test_cpuload.py | kkltcjk/kklt | 5388eb439616a442dde496ef77ba6b71169369e0 | [
"Apache-2.0"
] | null | null | null | tests/unit/benchmark/scenarios/compute/test_cpuload.py | kkltcjk/kklt | 5388eb439616a442dde496ef77ba6b71169369e0 | [
"Apache-2.0"
] | null | null | null | tests/unit/benchmark/scenarios/compute/test_cpuload.py | kkltcjk/kklt | 5388eb439616a442dde496ef77ba6b71169369e0 | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python
##############################################################################
# Copyright (c) 2015 Ericsson AB and others.
#
# All rights reserved. This program and the accompanying materials
# are made available under the terms of the Apache License, Version 2.0
# which accompanies this distrib... | 33.528302 | 78 | 0.428588 |
ffa78fa5cf610bf9655eb31cadd4f78dcd2bfe45 | 13,341 | py | Python | chrome/test/chromedriver/client/chromedriver.py | Wzzzx/chromium-crosswalk | 768dde8efa71169f1c1113ca6ef322f1e8c9e7de | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | 2 | 2019-01-28T08:09:58.000Z | 2021-11-15T15:32:10.000Z | chrome/test/chromedriver/client/chromedriver.py | Wzzzx/chromium-crosswalk | 768dde8efa71169f1c1113ca6ef322f1e8c9e7de | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | null | null | null | chrome/test/chromedriver/client/chromedriver.py | Wzzzx/chromium-crosswalk | 768dde8efa71169f1c1113ca6ef322f1e8c9e7de | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | 6 | 2020-09-23T08:56:12.000Z | 2021-11-18T03:40:49.000Z | # Copyright 2013 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 sys
import platform
import command_executor
from command_executor import Command
from webelement import WebElement
class ChromeDriverException(Exce... | 32.146988 | 79 | 0.700472 |
ffa7903c1c20a0b8888b54f6a830ba893e4dacff | 1,487 | py | Python | Hyperparameters.py | shalei120/OxCTE | 0909a7d8f4fd8269de51eefe25732553e9fd4f59 | [
"MIT"
] | 1 | 2021-08-29T10:21:53.000Z | 2021-08-29T10:21:53.000Z | Hyperparameters.py | shalei120/OxCTE | 0909a7d8f4fd8269de51eefe25732553e9fd4f59 | [
"MIT"
] | null | null | null | Hyperparameters.py | shalei120/OxCTE | 0909a7d8f4fd8269de51eefe25732553e9fd4f59 | [
"MIT"
] | null | null | null | import os
import torch
class HP:
def __init__(self):
self.args = self.predefined_args()
def predefined_args(self):
args = {}
args['test'] = None
args['createDataset'] = True
args['playDataset'] = 10
args['reset'] = True
args['device'] = "cuda" if torch.c... | 27.537037 | 72 | 0.529254 |
ffa7c1204187c8961cd981f24d1ab47345677cba | 3,685 | py | Python | tools/android/mempressure.py | Wzzzx/chromium-crosswalk | 768dde8efa71169f1c1113ca6ef322f1e8c9e7de | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | 2 | 2019-01-28T08:09:58.000Z | 2021-11-15T15:32:10.000Z | tools/android/mempressure.py | maidiHaitai/haitaibrowser | a232a56bcfb177913a14210e7733e0ea83a6b18d | [
"BSD-3-Clause"
] | null | null | null | tools/android/mempressure.py | maidiHaitai/haitaibrowser | a232a56bcfb177913a14210e7733e0ea83a6b18d | [
"BSD-3-Clause"
] | 6 | 2020-09-23T08:56:12.000Z | 2021-11-18T03:40:49.000Z | #!/usr/bin/env python
# Copyright 2013 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 collections
import logging
import optparse
import os
import sys
_SRC_PATH = os.path.abspath(os.path.join(
os.path.dirname(_... | 32.043478 | 78 | 0.652374 |
ffa7f562ad300607f693f73dcc1808f0dcf15b2f | 1,141 | py | Python | sysinv/sysinv/sysinv/sysinv/helm/memcached.py | starlingx-staging/stx-config | ccbf0392d1941e7cad6673f6351bd905a5a5d419 | [
"Apache-2.0"
] | null | null | null | sysinv/sysinv/sysinv/sysinv/helm/memcached.py | starlingx-staging/stx-config | ccbf0392d1941e7cad6673f6351bd905a5a5d419 | [
"Apache-2.0"
] | null | null | null | sysinv/sysinv/sysinv/sysinv/helm/memcached.py | starlingx-staging/stx-config | ccbf0392d1941e7cad6673f6351bd905a5a5d419 | [
"Apache-2.0"
] | null | null | null | #
# Copyright (c) 2018 Wind River Systems, Inc.
#
# SPDX-License-Identifier: Apache-2.0
#
from sysinv.common import constants
from sysinv.common import exception
from sysinv.openstack.common import log as logging
from sysinv.helm import common
from sysinv.helm import base
LOG = logging.getLogger(__name__)
class Mem... | 28.525 | 75 | 0.667835 |
ffa80a8efc0afe5003549fc6bb0ad3d583583f46 | 12,364 | py | Python | pandaharvester/harvesterstager/go_stager.py | tsulaiav/harvester | ca3f78348019dd616738f2da7d50e81700a8e6b9 | [
"Apache-2.0"
] | 11 | 2017-06-01T10:16:58.000Z | 2019-11-22T08:41:36.000Z | pandaharvester/harvesterstager/go_stager.py | tsulaiav/harvester | ca3f78348019dd616738f2da7d50e81700a8e6b9 | [
"Apache-2.0"
] | 34 | 2016-10-25T19:15:24.000Z | 2021-03-05T12:59:04.000Z | pandaharvester/harvesterstager/go_stager.py | tsulaiav/harvester | ca3f78348019dd616738f2da7d50e81700a8e6b9 | [
"Apache-2.0"
] | 17 | 2016-10-24T13:29:45.000Z | 2021-03-23T17:35:27.000Z | import os
import sys
import os.path
import zipfile
import hashlib
from future.utils import iteritems
from globus_sdk import TransferClient
from globus_sdk import TransferData
from globus_sdk import NativeAppAuthClient
from globus_sdk import RefreshTokenAuthorizer
# TO BE REMOVED for python2.7
import requests.packages... | 43.535211 | 118 | 0.581123 |
ffa8142a7844b40ae0397852560950a7d55d6c51 | 451 | py | Python | stdplugins/list_user_names_reserved_by_me.py | dqanshi/alluka | f1ac5b227f4e12a4363c6e06b8acc0fd5aac6f1c | [
"Apache-2.0"
] | 2 | 2019-10-23T12:30:32.000Z | 2019-10-23T20:33:26.000Z | stdplugins/list_user_names_reserved_by_me.py | dqanshi/alluka | f1ac5b227f4e12a4363c6e06b8acc0fd5aac6f1c | [
"Apache-2.0"
] | 2 | 2020-05-22T14:59:05.000Z | 2020-05-28T12:04:02.000Z | stdplugins/list_user_names_reserved_by_me.py | dqanshi/alluka | f1ac5b227f4e12a4363c6e06b8acc0fd5aac6f1c | [
"Apache-2.0"
] | 12 | 2019-10-25T18:48:16.000Z | 2020-04-26T11:31:21.000Z | # For @UniBorg
# (c) Shrimadhav U K
from telethon import events, functions, types
@borg.on(events.NewMessage(pattern=r"\-listnames", outgoing=True))
async def _(event):
if event.fwd_from:
return
result = await borg(functions.channels.GetAdminedPublicChannelsRequest())
output_str = ""
for chann... | 30.066667 | 77 | 0.7051 |
ffa849ea5b3e37d687defdedebc7453e3fceac8a | 91 | py | Python | Source/JavaScriptCore/Scripts/wkbuiltins/__init__.py | jacadcaps/webkitty | 9aebd2081349f9a7b5d168673c6f676a1450a66d | [
"BSD-2-Clause"
] | 6 | 2021-07-05T16:09:39.000Z | 2022-03-06T22:44:42.000Z | Source/JavaScriptCore/Scripts/wkbuiltins/__init__.py | jacadcaps/webkitty | 9aebd2081349f9a7b5d168673c6f676a1450a66d | [
"BSD-2-Clause"
] | 7 | 2022-03-15T13:25:39.000Z | 2022-03-15T13:25:44.000Z | Source/JavaScriptCore/Scripts/wkbuiltins/__init__.py | jacadcaps/webkitty | 9aebd2081349f9a7b5d168673c6f676a1450a66d | [
"BSD-2-Clause"
] | null | null | null | # Required for Python to search this directory for module files
from .wkbuiltins import *
| 22.75 | 63 | 0.791209 |
ffa84b2a0949f40eadd36fcd2d369a54e793c706 | 5,935 | py | Python | eb-virt/bin/wsdump.py | YutingPang/one_note | 9dfc7061f07819cbac96e87080d767705d7dfe0c | [
"MIT"
] | null | null | null | eb-virt/bin/wsdump.py | YutingPang/one_note | 9dfc7061f07819cbac96e87080d767705d7dfe0c | [
"MIT"
] | null | null | null | eb-virt/bin/wsdump.py | YutingPang/one_note | 9dfc7061f07819cbac96e87080d767705d7dfe0c | [
"MIT"
] | null | null | null | #!/Users/yutingpang/git/eb-flask/eb-virt/bin/python
import argparse
import code
import sys
import threading
import time
import ssl
import six
from six.moves.urllib.parse import urlparse
import websocket
try:
import readline
except ImportError:
pass
def get_encoding():
encoding = getattr(sys.stdin, "en... | 29.381188 | 92 | 0.569503 |
ffa85185f61229245bb042cc9780e3224ade0516 | 1,048 | py | Python | launch/ur10_robotiq140_demo.launch.py | gezp/universal_robot_ign | c441c793db2373ab576233971f153f34b79ac157 | [
"MIT"
] | 20 | 2021-02-26T22:58:23.000Z | 2022-03-18T21:29:51.000Z | launch/ur10_robotiq140_demo.launch.py | gezp/universal_robot_ign | c441c793db2373ab576233971f153f34b79ac157 | [
"MIT"
] | 1 | 2021-07-20T16:05:37.000Z | 2021-07-24T00:30:22.000Z | launch/ur10_robotiq140_demo.launch.py | gezp/universal_robot_ign | c441c793db2373ab576233971f153f34b79ac157 | [
"MIT"
] | 2 | 2021-01-20T16:20:44.000Z | 2022-02-28T08:05:42.000Z |
import os
from ament_index_python.packages import get_package_share_directory
from launch import LaunchDescription
from launch.actions import ExecuteProcess, DeclareLaunchArgument, IncludeLaunchDescription
from launch.conditions import IfCondition
from launch.launch_description_sources import PythonLaunchDescriptionS... | 37.428571 | 90 | 0.766221 |
ffa86f4a990e3b73903455f592826f19c4c4ec73 | 861 | py | Python | rlkit/state_distance/tdm_n3dpg.py | Asap7772/railrl_evalsawyer | baba8ce634d32a48c7dfe4dc03b123e18e96e0a3 | [
"MIT"
] | 1 | 2020-10-23T14:40:09.000Z | 2020-10-23T14:40:09.000Z | rlkit/state_distance/tdm_n3dpg.py | Asap7772/railrl_evalsawyer | baba8ce634d32a48c7dfe4dc03b123e18e96e0a3 | [
"MIT"
] | null | null | null | rlkit/state_distance/tdm_n3dpg.py | Asap7772/railrl_evalsawyer | baba8ce634d32a48c7dfe4dc03b123e18e96e0a3 | [
"MIT"
] | 1 | 2021-05-27T20:38:45.000Z | 2021-05-27T20:38:45.000Z | from rlkit.state_distance.tdm import TemporalDifferenceModel
from rlkit.torch.ddpg.n3dpg import N3DPG
class TdmN3dpg(TemporalDifferenceModel, N3DPG):
def __init__(
self,
env,
qf,
vf,
exploration_policy,
n3dpg_kwargs,
tdm_kwargs,
... | 23.916667 | 60 | 0.537747 |
ffa87be3e59bd06790c924838c7baf156fd16d23 | 1,061 | py | Python | cloudmesh/pi/distance.py | cloudmesh/cloudmesh.pi | bdf706b3763031341c41b811749064c293e73c14 | [
"Apache-2.0"
] | 2 | 2017-09-18T00:56:36.000Z | 2018-06-01T23:41:23.000Z | cloudmesh/pi/distance.py | cloudmesh/cloudmesh-pi | bdf706b3763031341c41b811749064c293e73c14 | [
"Apache-2.0"
] | 1 | 2018-04-16T18:37:17.000Z | 2018-04-16T18:37:17.000Z | cloudmesh/pi/distance.py | cloudmesh/cloudmesh.pi | bdf706b3763031341c41b811749064c293e73c14 | [
"Apache-2.0"
] | 3 | 2017-09-20T11:13:54.000Z | 2017-11-30T23:48:37.000Z | #!/usr/bin/env python
#21cm = 26
#31cm = 36
#41cm = 49
#51cm = 62
#61cm = 75
#71cm = 86
#81cm = 99
#If value is smaller than 7 cm, take value.
import grovepi
class DistanceSensor(object):
def __init__(self, port=4):
"""
connect to digital port. D4 is defualt.
:param port: Integer
... | 18.946429 | 64 | 0.536287 |
ffa88c68adf0220552aeeae6ba045d113a14ccae | 10,424 | py | Python | darkhex/agent/SetPolicyAgent.py | BedirT/dark-hex-tools | c4b803253e57d3c87edddde6e82740c643378dde | [
"MIT"
] | null | null | null | darkhex/agent/SetPolicyAgent.py | BedirT/dark-hex-tools | c4b803253e57d3c87edddde6e82740c643378dde | [
"MIT"
] | 10 | 2022-01-16T05:55:09.000Z | 2022-03-09T20:21:21.000Z | darkhex/agent/SetPolicyAgent.py | BedirT/darkhex | c4b803253e57d3c87edddde6e82740c643378dde | [
"MIT"
] | null | null | null | from Projects.base.agent.Agent import Agent
from numpy import random
import copy
class PolicyPerRound:
def __init__(self, policy, children=[], children_prob=[]):
self.board_size = [3, 4]
self.policy = policy
self.children = children
self.children_prob = children_prob
sel... | 36.069204 | 127 | 0.466232 |
ffa8aac5e32fe0489f9d1203f20ef370a51f20e5 | 10,076 | py | Python | src/ggrc/models/mixins/with_similarity_score.py | Killswitchz/ggrc-core | 2460df94daf66727af248ad821462692917c97a9 | [
"ECL-2.0",
"Apache-2.0"
] | null | null | null | src/ggrc/models/mixins/with_similarity_score.py | Killswitchz/ggrc-core | 2460df94daf66727af248ad821462692917c97a9 | [
"ECL-2.0",
"Apache-2.0"
] | 10 | 2018-07-06T00:04:23.000Z | 2021-02-26T21:13:20.000Z | src/ggrc/models/mixins/with_similarity_score.py | Killswitchz/ggrc-core | 2460df94daf66727af248ad821462692917c97a9 | [
"ECL-2.0",
"Apache-2.0"
] | 1 | 2017-11-11T22:16:56.000Z | 2017-11-11T22:16:56.000Z | # Copyright (C) 2017 Google Inc.
# Licensed under http://www.apache.org/licenses/LICENSE-2.0 <see LICENSE file>
"""Contains WithSimilarityScore mixin.
This defines a procedure of getting "similar" objects which have similar
relationships.
"""
from sqlalchemy import and_
from sqlalchemy import case
from sqlalchemy im... | 37.597015 | 79 | 0.638051 |
ffa8ade1f0f902f8b2ff25132ef21d938aab3113 | 9,859 | py | Python | test.py | Roxbili/kws-demo | 7e0674f1407572fc8f148293b23fa20a5164bc5e | [
"Apache-2.0"
] | null | null | null | test.py | Roxbili/kws-demo | 7e0674f1407572fc8f148293b23fa20a5164bc5e | [
"Apache-2.0"
] | null | null | null | test.py | Roxbili/kws-demo | 7e0674f1407572fc8f148293b23fa20a5164bc5e | [
"Apache-2.0"
] | null | null | null | # Copyright 2017 The TensorFlow Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applica... | 36.246324 | 84 | 0.683234 |
ffa8bda7a311f15cff9addd33edafb0217fd2f99 | 782 | py | Python | chapter3/fannsdb/fannsdb/command/_DEPRECATED_/pred_update.py | chris-zen/phd-thesis | 1eefdff8e7ca1910304e27ae42551dc64496b101 | [
"Unlicense"
] | 1 | 2015-12-22T00:53:18.000Z | 2015-12-22T00:53:18.000Z | chapter3/fannsdb/fannsdb/command/_DEPRECATED_/pred_update.py | chris-zen/phd-thesis | 1eefdff8e7ca1910304e27ae42551dc64496b101 | [
"Unlicense"
] | null | null | null | chapter3/fannsdb/fannsdb/command/_DEPRECATED_/pred_update.py | chris-zen/phd-thesis | 1eefdff8e7ca1910304e27ae42551dc64496b101 | [
"Unlicense"
] | null | null | null | #!/bin/env python
import os
import re
import argparse
from datetime import datetime
from fannsdb.cmdhelper import DefaultCommandHelper
def main():
parser = argparse.ArgumentParser(
description="Update predictors min, max and count")
cmd = DefaultCommandHelper(parser)
cmd.add_db_args()
cmd.add_selected_pred... | 17 | 73 | 0.735294 |
ffa8d3f2afb02bfd5be750fb154b81042bf0d652 | 30,393 | py | Python | src/sage/calculus/transforms/dft.py | saraedum/sage-renamed | d2da67b14da2ad766a5906425d60d43a3b3e1270 | [
"BSL-1.0"
] | null | null | null | src/sage/calculus/transforms/dft.py | saraedum/sage-renamed | d2da67b14da2ad766a5906425d60d43a3b3e1270 | [
"BSL-1.0"
] | null | null | null | src/sage/calculus/transforms/dft.py | saraedum/sage-renamed | d2da67b14da2ad766a5906425d60d43a3b3e1270 | [
"BSL-1.0"
] | null | null | null | r"""
Discrete Fourier Transforms
This file contains functions useful for computing discrete Fourier
transforms and probability distribution functions for discrete random
variables for sequences of elements of `\QQ` or `\CC`, indexed by a
``range(N)``, `\ZZ / N \ZZ`, an abelian group, the conjugacy classes
of a permuta... | 37.383764 | 333 | 0.536374 |
ffa8dc7619f5ec8d9c603476a4a32380e02a1f64 | 5,242 | py | Python | rbac/providers/ldap/delta_inbound_sync.py | adamgering/sawtooth-next-directory | da07a115107909a90bb4f71ff756e0ba663320e8 | [
"Apache-2.0"
] | null | null | null | rbac/providers/ldap/delta_inbound_sync.py | adamgering/sawtooth-next-directory | da07a115107909a90bb4f71ff756e0ba663320e8 | [
"Apache-2.0"
] | 1 | 2018-09-10T19:12:31.000Z | 2018-09-10T19:12:31.000Z | rbac/providers/ldap/delta_inbound_sync.py | adamgering/sawtooth-next-directory | da07a115107909a90bb4f71ff756e0ba663320e8 | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 Contributors to Hyperledger Sawtooth
#
# 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 ... | 36.151724 | 109 | 0.657764 |
ffa8eee7d84ebe0995b0ef8f47c5898011265dba | 350 | py | Python | hbkit/libs/datastructures.py | graycarl/hbk | d4c90807b2558a2b61fb1253d9804fbaf373443f | [
"MIT"
] | 1 | 2021-07-22T05:25:35.000Z | 2021-07-22T05:25:35.000Z | hbkit/libs/datastructures.py | graycarl/hbk | d4c90807b2558a2b61fb1253d9804fbaf373443f | [
"MIT"
] | 37 | 2017-07-27T06:07:25.000Z | 2020-12-11T12:57:31.000Z | hbkit/libs/datastructures.py | graycarl/hbk | d4c90807b2558a2b61fb1253d9804fbaf373443f | [
"MIT"
] | 1 | 2019-04-02T08:36:32.000Z | 2019-04-02T08:36:32.000Z | # -*- coding: utf-8 -*-
from __future__ import absolute_import, unicode_literals
from builtins import * # noqa
class Namespace(dict):
def __getattr__(self, name):
try:
return self[name]
except KeyError:
raise AttributeError(name)
def __setattr__(self, name, value... | 21.875 | 56 | 0.62 |
ffa8efcaa2122bf17da8f80a8b87bde13732ae35 | 10,698 | py | Python | core/model_deployment.py | YifanQie/Deep_Learning_for_Manufacturing | 9ba19e41f69c561b04b8573ab9c52c0969f45bfd | [
"MIT"
] | 27 | 2019-10-31T15:16:13.000Z | 2022-03-29T03:56:57.000Z | core/model_deployment.py | YifanQie/Deep_Learning_for_Manufacturing | 9ba19e41f69c561b04b8573ab9c52c0969f45bfd | [
"MIT"
] | 4 | 2020-03-25T14:18:04.000Z | 2022-02-10T00:34:58.000Z | core/model_deployment.py | YifanQie/Deep_Learning_for_Manufacturing | 9ba19e41f69c561b04b8573ab9c52c0969f45bfd | [
"MIT"
] | 7 | 2020-02-23T22:12:37.000Z | 2021-12-08T20:14:41.000Z | """ The model deploy file is used to leverage a trained model to perform inference on unknown set of node deviations.
"""
import os
os.environ['TF_CPP_MIN_LOG_LEVEL'] = '3'
import sys
current_path=os.path.dirname(__file__)
parentdir = os.path.dirname(current_path)
#Adding Path to various Modules
sys.path.append("../... | 36.636986 | 156 | 0.761825 |
ffa8f03e45067a489311974bb3fad977c4d36e8a | 668 | py | Python | py_kor/pk_mixins/implementation/choice_enum.py | vladankor/core | ae23a4e47e487e55b0a44c415a45adc2e437f2a4 | [
"MIT"
] | null | null | null | py_kor/pk_mixins/implementation/choice_enum.py | vladankor/core | ae23a4e47e487e55b0a44c415a45adc2e437f2a4 | [
"MIT"
] | null | null | null | py_kor/pk_mixins/implementation/choice_enum.py | vladankor/core | ae23a4e47e487e55b0a44c415a45adc2e437f2a4 | [
"MIT"
] | 1 | 2021-01-30T13:58:22.000Z | 2021-01-30T13:58:22.000Z | from enum import Enum
from .generics import T
from typing import List, Tuple, Generic
class ChoiceEnum(Enum):
"""
Extension for python enum. It can be used as mixin for choices in Django field choices
"""
@classmethod
def choices(cls) -> Tuple[Tuple[T, str]]:
return tuple((item.value, item... | 24.740741 | 90 | 0.60479 |
ffa8f69b5655595b6e0df7ead2d1ee4cc6de6522 | 14,447 | py | Python | tests/mdts/tests/functional_tests/test_load_balancer.py | duarten/midonet | c7a5aa352a8038bdc6a463c68abc47bb411a1e7c | [
"Apache-2.0"
] | null | null | null | tests/mdts/tests/functional_tests/test_load_balancer.py | duarten/midonet | c7a5aa352a8038bdc6a463c68abc47bb411a1e7c | [
"Apache-2.0"
] | null | null | null | tests/mdts/tests/functional_tests/test_load_balancer.py | duarten/midonet | c7a5aa352a8038bdc6a463c68abc47bb411a1e7c | [
"Apache-2.0"
] | null | null | null | # Copyright 2014 Midokura SARL
#
# 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... | 35.065534 | 98 | 0.690939 |
ffa8f8f5b8e0c7382d516f50bd4c03716e9cdfeb | 5,204 | py | Python | HW 4/ps4.py | minotaur487/MIT-OCW-Problem-Sets | 40ca55009f1543a1249cca4304357ff39d72e3e6 | [
"MIT"
] | null | null | null | HW 4/ps4.py | minotaur487/MIT-OCW-Problem-Sets | 40ca55009f1543a1249cca4304357ff39d72e3e6 | [
"MIT"
] | null | null | null | HW 4/ps4.py | minotaur487/MIT-OCW-Problem-Sets | 40ca55009f1543a1249cca4304357ff39d72e3e6 | [
"MIT"
] | null | null | null | # 6.00 Problem Set 4
#
# Caesar Cipher Skeleton
#
import string
import random
WORDLIST_FILENAME = "words.txt"
# -----------------------------------
# Helper code
# (you don't need to understand this helper code)
def load_words():
print ("Loading word list from file...")
# inFile: file
inFile = open(WORDLI... | 25.262136 | 115 | 0.600692 |
ffa8fe46c78b3088e222138028a5d5fdc8c90dcb | 588 | py | Python | blousebrothers/friends/migrations/0004_auto_20180717_1352.py | sladinji/blousebrothers | 461de3ba011c0aaed3f0014136c4497b6890d086 | [
"MIT"
] | 1 | 2022-01-27T11:58:10.000Z | 2022-01-27T11:58:10.000Z | blousebrothers/friends/migrations/0004_auto_20180717_1352.py | sladinji/blousebrothers | 461de3ba011c0aaed3f0014136c4497b6890d086 | [
"MIT"
] | 5 | 2021-03-19T00:01:54.000Z | 2022-03-11T23:46:21.000Z | blousebrothers/friends/migrations/0004_auto_20180717_1352.py | sladinji/blousebrothers | 461de3ba011c0aaed3f0014136c4497b6890d086 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
# Generated by Django 1.11.14 on 2018-07-17 13:52
from __future__ import unicode_literals
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('friends', '0003_auto_20171024_1628'),
]
operation... | 26.727273 | 150 | 0.661565 |
ffa9011c3e2f5d2bc4ed3e1cbec24ae55cda4d46 | 16,318 | py | Python | python_modules/dagster/dagster/grpc/impl.py | kstennettlull/dagster | dd6f57e170ff03bf145f1dd1417e0b2c3156b1d6 | [
"Apache-2.0"
] | null | null | null | python_modules/dagster/dagster/grpc/impl.py | kstennettlull/dagster | dd6f57e170ff03bf145f1dd1417e0b2c3156b1d6 | [
"Apache-2.0"
] | null | null | null | python_modules/dagster/dagster/grpc/impl.py | kstennettlull/dagster | dd6f57e170ff03bf145f1dd1417e0b2c3156b1d6 | [
"Apache-2.0"
] | null | null | null | """Workhorse functions for individual API requests."""
import os
import sys
from typing import Generator, List, Optional
import pendulum
from dagster import check
from dagster.core.definitions import ScheduleEvaluationContext
from dagster.core.definitions.reconstruct import ReconstructablePipeline, ReconstructableRe... | 37.255708 | 156 | 0.702782 |
ffa914660fec59a043e56dbe210e64bf961e5f63 | 1,267 | py | Python | alipay/aop/api/domain/AlipayOpenMiniIsvCreateModel.py | antopen/alipay-sdk-python-all | 8e51c54409b9452f8d46c7bb10eea7c8f7e8d30c | [
"Apache-2.0"
] | 213 | 2018-08-27T16:49:32.000Z | 2021-12-29T04:34:12.000Z | alipay/aop/api/domain/AlipayOpenMiniIsvCreateModel.py | antopen/alipay-sdk-python-all | 8e51c54409b9452f8d46c7bb10eea7c8f7e8d30c | [
"Apache-2.0"
] | 29 | 2018-09-29T06:43:00.000Z | 2021-09-02T03:27:32.000Z | alipay/aop/api/domain/AlipayOpenMiniIsvCreateModel.py | antopen/alipay-sdk-python-all | 8e51c54409b9452f8d46c7bb10eea7c8f7e8d30c | [
"Apache-2.0"
] | 59 | 2018-08-27T16:59:26.000Z | 2022-03-25T10:08:15.000Z | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import json
from alipay.aop.api.constant.ParamConstants import *
from alipay.aop.api.domain.CreateMiniRequest import CreateMiniRequest
class AlipayOpenMiniIsvCreateModel(object):
def __init__(self):
self._create_mini_request = None
@property
def cre... | 28.155556 | 89 | 0.669298 |
ffa932bb9e0c4a4152f39a755a79ed6e416f26f9 | 67 | py | Python | deepchembed/tests/test_core.py | hanghu/AutoChemCluster | 2ab4ae996b300a90637b124707905201c89d74d8 | [
"MIT"
] | 2 | 2019-05-15T06:31:35.000Z | 2019-08-31T13:13:21.000Z | deepchembed/tests/test_core.py | hanghu/AutoChemCluster | 2ab4ae996b300a90637b124707905201c89d74d8 | [
"MIT"
] | 7 | 2019-05-02T19:01:40.000Z | 2022-02-10T00:11:00.000Z | deepchembed/tests/test_core.py | hanghu/AutoChemCluster | 2ab4ae996b300a90637b124707905201c89d74d8 | [
"MIT"
] | 1 | 2019-08-17T11:34:56.000Z | 2019-08-17T11:34:56.000Z | import deepchembed as dce
def test_deepchembed():
return
| 11.166667 | 25 | 0.701493 |
ffa93f1c794f93569f36ba8f4d0ff0cb7612fea9 | 3,313 | py | Python | sdk/desktopvirtualization/azure-mgmt-desktopvirtualization/azure/mgmt/desktopvirtualization/_configuration.py | vincenttran-msft/azure-sdk-for-python | 348b56f9f03eeb3f7b502eed51daf494ffff874d | [
"MIT"
] | 2,728 | 2015-01-09T10:19:32.000Z | 2022-03-31T14:50:33.000Z | sdk/desktopvirtualization/azure-mgmt-desktopvirtualization/azure/mgmt/desktopvirtualization/_configuration.py | v-xuto/azure-sdk-for-python | 9c6296d22094c5ede410bc83749e8df8694ccacc | [
"MIT"
] | 17,773 | 2015-01-05T15:57:17.000Z | 2022-03-31T23:50:25.000Z | sdk/desktopvirtualization/azure-mgmt-desktopvirtualization/azure/mgmt/desktopvirtualization/_configuration.py | v-xuto/azure-sdk-for-python | 9c6296d22094c5ede410bc83749e8df8694ccacc | [
"MIT"
] | 1,916 | 2015-01-19T05:05:41.000Z | 2022-03-31T19:36:44.000Z | # coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license information.
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may ... | 46.013889 | 129 | 0.689405 |
ffa94e4ade2bd74a3e012e438f5b684aba34417e | 18,396 | py | Python | sktime/classification/distance_based/_shape_dtw.py | brettkoonce/sktime | 6336247bad0dac8692aa4b911c267f401dea4163 | [
"BSD-3-Clause"
] | 2 | 2020-10-05T12:17:41.000Z | 2020-10-19T08:57:50.000Z | sktime/classification/distance_based/_shape_dtw.py | brettkoonce/sktime | 6336247bad0dac8692aa4b911c267f401dea4163 | [
"BSD-3-Clause"
] | 2 | 2020-04-20T12:26:42.000Z | 2020-04-22T17:09:14.000Z | sktime/classification/distance_based/_shape_dtw.py | brettkoonce/sktime | 6336247bad0dac8692aa4b911c267f401dea4163 | [
"BSD-3-Clause"
] | 1 | 2022-02-14T18:19:01.000Z | 2022-02-14T18:19:01.000Z | # Utilities
import numpy as np
import pandas as pd
from sktime.utils.validation.series_as_features import check_X, check_X_y
from sktime.utils.data_container import tabularize
# Tuning
from sklearn.model_selection import GridSearchCV
from sklearn.model_selection import KFold
# Transforms
from sktime.transformers.seri... | 39.56129 | 79 | 0.541639 |
ffa95d0e285aefe04a25d3c4681e8784a02c322e | 479 | py | Python | ooni/otime.py | irl/ooni-probe | c21861c28ca6bd667715872d099006fab87222fd | [
"BSD-2-Clause"
] | null | null | null | ooni/otime.py | irl/ooni-probe | c21861c28ca6bd667715872d099006fab87222fd | [
"BSD-2-Clause"
] | null | null | null | ooni/otime.py | irl/ooni-probe | c21861c28ca6bd667715872d099006fab87222fd | [
"BSD-2-Clause"
] | null | null | null | from datetime import datetime
def prettyDateNow():
"""
Returns a good looking string for the local time.
"""
return datetime.now().ctime()
def prettyDateNowUTC():
"""
Returns a good looking string for utc time.
"""
return datetime.utcnow().ctime()
def timestampNowLongUTC():
"""
... | 22.809524 | 76 | 0.628392 |
ffa96afa5219eb7bf19c3b73362e05869665cfec | 1,491 | py | Python | tests/test_projectors.py | dabapps/django-readers | dfbf52c2c3599b364ca80ae6efbc26fea7a1d197 | [
"BSD-2-Clause"
] | 79 | 2021-02-26T15:45:34.000Z | 2022-03-19T01:55:19.000Z | tests/test_projectors.py | sobolevn/django-readers | a23431e2d23a8215fdddf2b48e80e793d1e0eeab | [
"BSD-2-Clause"
] | 13 | 2021-02-27T12:36:18.000Z | 2022-03-22T13:34:28.000Z | tests/test_projectors.py | sobolevn/django-readers | a23431e2d23a8215fdddf2b48e80e793d1e0eeab | [
"BSD-2-Clause"
] | 1 | 2021-07-16T14:16:19.000Z | 2021-07-16T14:16:19.000Z | from django.test import TestCase
from django_readers import producers, projectors
from tests.models import Widget
class WrapProducerTestCase(TestCase):
def test_producer_to_projector(self):
widget = Widget(name="test", other="other")
def produce_name(instance):
return instance.name
... | 33.886364 | 79 | 0.658618 |
ffa977ba2bb9503ba178c109c492765f5ef03d18 | 4,364 | py | Python | examples/tf_profiler_while_loop.py | jamesj-jiao/aim | 452380368f76ff441b2ff3a51029f4ad43a9d902 | [
"MIT"
] | null | null | null | examples/tf_profiler_while_loop.py | jamesj-jiao/aim | 452380368f76ff441b2ff3a51029f4ad43a9d902 | [
"MIT"
] | null | null | null | examples/tf_profiler_while_loop.py | jamesj-jiao/aim | 452380368f76ff441b2ff3a51029f4ad43a9d902 | [
"MIT"
] | null | null | null | import time
import tensorflow as tf
# Import MNIST data
from tensorflow.examples.tutorials.mnist import input_data
import aim
aim.init(overwrite=True)
from aim import Profiler
Profiler.init(auto_detect_cycles=False, aggregate=Profiler.MEAN)
mnist = input_data.read_data_sets('/tmp/data/', one_hot=True)
learning_rat... | 32.81203 | 80 | 0.627864 |
ffa99b220100be548ffe408c22140acf0afa632a | 4,121 | py | Python | data/genome/driver/api.py | hanghang2333/graph | ccb56d2ed34b3090fa9e97a28589c71b9a23bd97 | [
"BSD-3-Clause"
] | 68 | 2018-10-09T06:36:47.000Z | 2022-01-22T12:12:18.000Z | data/genome/driver/api.py | hanghang2333/graph | ccb56d2ed34b3090fa9e97a28589c71b9a23bd97 | [
"BSD-3-Clause"
] | 8 | 2018-01-23T04:48:30.000Z | 2018-07-23T08:12:17.000Z | data/genome/driver/api.py | roytseng-tw/px2graph_lab | ab7d799d38ae32aa342b3aebce9edc246b140fa5 | [
"BSD-3-Clause"
] | 14 | 2019-01-15T06:08:35.000Z | 2021-10-20T02:44:58.000Z | from models import Image, Object, Attribute, Relationship
from models import Region, Graph, QA, QAObject, Synset
import httplib
import json
import utils
"""
Get all Image ids.
"""
def GetAllImageIds():
page = 1
next = '/api/v0/images/all?page=' + str(page)
ids = []
while True:
data = utils.RetrieveData(nex... | 28.42069 | 93 | 0.640136 |
ffa9a8ec506775ba3a7397f0dd9418ad39756b52 | 1,515 | py | Python | 0x08-python-more_classes/5-rectangle.py | flourishcodes/holbertonschool-higher_level_programming | 6fda5cca4ed960d7f3d40c26292ad55e1e7d3065 | [
"MIT"
] | null | null | null | 0x08-python-more_classes/5-rectangle.py | flourishcodes/holbertonschool-higher_level_programming | 6fda5cca4ed960d7f3d40c26292ad55e1e7d3065 | [
"MIT"
] | null | null | null | 0x08-python-more_classes/5-rectangle.py | flourishcodes/holbertonschool-higher_level_programming | 6fda5cca4ed960d7f3d40c26292ad55e1e7d3065 | [
"MIT"
] | 4 | 2018-05-01T05:04:15.000Z | 2020-04-28T22:22:54.000Z | #!/usr/bin/python3
'''5-rectangle'''
class Rectangle:
'''Defines the Rectangle type'''
def __init__(self, width=0, height=0):
self.width = width
self.height = height
def __str__(self):
if self.__width == 0 or self.__height == 0:
return""
else:
for... | 24.435484 | 67 | 0.533333 |
ffa9ca27b40462d412008b57eb34236143ad12cf | 10,844 | py | Python | google-cloud-sdk/.install/.backup/lib/googlecloudsdk/command_lib/pubsub/util.py | KaranToor/MA450 | c98b58aeb0994e011df960163541e9379ae7ea06 | [
"Apache-2.0"
] | 1 | 2017-11-29T18:52:27.000Z | 2017-11-29T18:52:27.000Z | google-cloud-sdk/.install/.backup/lib/googlecloudsdk/command_lib/pubsub/util.py | KaranToor/MA450 | c98b58aeb0994e011df960163541e9379ae7ea06 | [
"Apache-2.0"
] | null | null | null | google-cloud-sdk/.install/.backup/lib/googlecloudsdk/command_lib/pubsub/util.py | KaranToor/MA450 | c98b58aeb0994e011df960163541e9379ae7ea06 | [
"Apache-2.0"
] | 1 | 2020-07-25T12:09:01.000Z | 2020-07-25T12:09:01.000Z | # Copyright 2015 Google Inc. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or ag... | 34.645367 | 80 | 0.713574 |
ffa9ec408792f8ca18110faaef12262039b00814 | 7,568 | py | Python | django/contrib/localflavor/pl/forms.py | jezdez-archive/django-old | 9e28c4f4e90f8dfcfbb55bb13be437afb4f870e9 | [
"BSD-3-Clause"
] | 1 | 2019-06-13T16:18:27.000Z | 2019-06-13T16:18:27.000Z | django/contrib/localflavor/pl/forms.py | sirmmo/rango | 9e28c4f4e90f8dfcfbb55bb13be437afb4f870e9 | [
"BSD-3-Clause"
] | null | null | null | django/contrib/localflavor/pl/forms.py | sirmmo/rango | 9e28c4f4e90f8dfcfbb55bb13be437afb4f870e9 | [
"BSD-3-Clause"
] | 1 | 2020-07-15T05:01:00.000Z | 2020-07-15T05:01:00.000Z | """
Polish-specific form helpers
"""
from __future__ import absolute_import
import re
from django.contrib.localflavor.pl.pl_administrativeunits import ADMINISTRATIVE_UNIT_CHOICES
from django.contrib.localflavor.pl.pl_voivodeships import VOIVODESHIP_CHOICES
from django.core.validators import EMPTY_VALUES
from django.... | 34.557078 | 102 | 0.600291 |
ffaa09b7953eb2ba61acd752c64e747d42bd9ae7 | 1,953 | py | Python | exception_reports/traceback.py | CircleUp/exception-reports | 283d1700020c8d2558cbb2ac2a398409de31f442 | [
"BSD-3-Clause"
] | 1 | 2018-01-05T06:53:11.000Z | 2018-01-05T06:53:11.000Z | exception_reports/traceback.py | CircleUp/exception-reports | 283d1700020c8d2558cbb2ac2a398409de31f442 | [
"BSD-3-Clause"
] | 6 | 2018-01-05T14:40:03.000Z | 2019-04-10T22:42:55.000Z | exception_reports/traceback.py | CircleUp/exception-reports | 283d1700020c8d2558cbb2ac2a398409de31f442 | [
"BSD-3-Clause"
] | null | null | null | import sys
def get_logger_traceback(): # noqa
"""
Returns a traceback object for a log event.
A traceback object is only available when an exception has been thrown. To get one for a log event
we throw an exception and then wrap it in our own Traceback proxy that hides parts of the stack trace
l... | 27.125 | 105 | 0.615463 |
ffaabb684afe77f984a78cc6d54902d25f41784f | 18,772 | py | Python | tests/unit/cli/commands/test_env.py | DeanHwd/rally | d284aa0746c54f1c375470e76dd206d19877a7fd | [
"Apache-2.0"
] | null | null | null | tests/unit/cli/commands/test_env.py | DeanHwd/rally | d284aa0746c54f1c375470e76dd206d19877a7fd | [
"Apache-2.0"
] | null | null | null | tests/unit/cli/commands/test_env.py | DeanHwd/rally | d284aa0746c54f1c375470e76dd206d19877a7fd | [
"Apache-2.0"
] | 1 | 2015-02-07T09:44:47.000Z | 2015-02-07T09:44:47.000Z | # Copyright 2018: ITLook Inc.
# All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by ... | 43.757576 | 79 | 0.589548 |
ffaac51be8a6f931707215dcb245df397c6645e0 | 6,867 | py | Python | cartography/intel/aws/__init__.py | eRaMvn/cartography | 807e9216700d32f23739e3b5d227b32fd81aee19 | [
"Apache-2.0"
] | null | null | null | cartography/intel/aws/__init__.py | eRaMvn/cartography | 807e9216700d32f23739e3b5d227b32fd81aee19 | [
"Apache-2.0"
] | null | null | null | cartography/intel/aws/__init__.py | eRaMvn/cartography | 807e9216700d32f23739e3b5d227b32fd81aee19 | [
"Apache-2.0"
] | null | null | null | import logging
import boto3
import botocore.exceptions
from . import dynamodb
from . import ec2
from . import eks
from . import elasticsearch
from . import iam
from . import lambda_function
from . import organizations
from . import permission_relationships
from . import rds
from . import redshift
from . import resour... | 41.11976 | 119 | 0.722878 |
ffaac646f0e580a0cda4604cd84c89ebb7d23f81 | 2,993 | py | Python | tests/test_crypto/test_password_end2end.py | valory-xyz/agents-aea | 8f38efa96041b0156ed1ae328178e395dbabf2fc | [
"Apache-2.0"
] | null | null | null | tests/test_crypto/test_password_end2end.py | valory-xyz/agents-aea | 8f38efa96041b0156ed1ae328178e395dbabf2fc | [
"Apache-2.0"
] | null | null | null | tests/test_crypto/test_password_end2end.py | valory-xyz/agents-aea | 8f38efa96041b0156ed1ae328178e395dbabf2fc | [
"Apache-2.0"
] | null | null | null | # -*- coding: utf-8 -*-
# ------------------------------------------------------------------------------
#
# Copyright 2022 Valory AG
# Copyright 2018-2021 Fetch.AI Limited
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# ... | 36.5 | 85 | 0.553291 |
ffaad5eca6c48cc0ed13c2a3835c56cd9453069d | 7,732 | py | Python | terraform/cloudwatch.tf.json.template.py | VIIgit/azul | bb61965f625c667979a2f255f6bc39dcafaaf40b | [
"Apache-2.0"
] | null | null | null | terraform/cloudwatch.tf.json.template.py | VIIgit/azul | bb61965f625c667979a2f255f6bc39dcafaaf40b | [
"Apache-2.0"
] | null | null | null | terraform/cloudwatch.tf.json.template.py | VIIgit/azul | bb61965f625c667979a2f255f6bc39dcafaaf40b | [
"Apache-2.0"
] | null | null | null | import json
from azul.template import emit
from azul import config
from azul.deployment import aws
emit({
"resource": [
*([] if config.share_es_domain else [{
"aws_cloudwatch_metric_alarm": {
"CPUUtilization": {
"alarm_name": config.es_domain+"-CPUUtilizatio... | 46.02381 | 117 | 0.43223 |
ffaade52f67a05b9fc759913b10fbb5228aec16a | 49,667 | py | Python | src/run_Baidu_v2.py | trib-plan/TriB-QA | 996c763ac0bc5f69ce04a60376d5b3a3d5face3b | [
"MIT"
] | 48 | 2019-03-11T12:57:41.000Z | 2022-01-25T09:17:32.000Z | src/run_Baidu_v2.py | BarryZM/TriB-QA | 996c763ac0bc5f69ce04a60376d5b3a3d5face3b | [
"MIT"
] | 3 | 2019-04-10T09:47:13.000Z | 2019-07-18T12:53:10.000Z | src/run_Baidu_v2.py | BarryZM/TriB-QA | 996c763ac0bc5f69ce04a60376d5b3a3d5face3b | [
"MIT"
] | 8 | 2019-03-19T08:44:58.000Z | 2020-04-08T10:08:21.000Z | # -*- coding:utf-8 -*-
# coding=utf-8
# Copyright 2018 The Google AI Language Team Authors and The HuggingFace Inc. team.
# Copyright (c) 2018, NVIDIA CORPORATION. All rights reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License... | 45.649816 | 119 | 0.60805 |
ffaae7bbbac8333bf7a1c9994f155d7a7c6af2d5 | 695 | py | Python | music_trees/generate/__main__.py | hugofloresgarcia/music-trees | 51c47f1fc924936c25b84bf35edff52d88e9cccd | [
"MIT"
] | 25 | 2021-07-16T10:24:35.000Z | 2022-03-25T04:46:25.000Z | music_trees/generate/__main__.py | loretoparisi/music-trees | 0ea3f49c2bafa97efd7352728ca687d7fee9e025 | [
"MIT"
] | 4 | 2021-11-12T10:25:29.000Z | 2021-12-01T16:11:13.000Z | music_trees/generate/__main__.py | loretoparisi/music-trees | 0ea3f49c2bafa97efd7352728ca687d7fee9e025 | [
"MIT"
] | 3 | 2021-11-09T02:40:03.000Z | 2022-03-04T19:26:39.000Z | from music_trees.generate.core import generate_data
import argparse
from str2bool import str2bool
parser = argparse.ArgumentParser()
parser.add_argument('--dataset', type=str, required=True,
help='name of dataset to generate, either mdb or katunog')
parser.add_argument('--name', type=str, required... | 36.578947 | 78 | 0.732374 |
ffab4103b42f0f554292470884263e2a6290e3ea | 350 | py | Python | my_work/ch1_algorithm_design_principles/asymptotic_analysis.py | gabrielavirna/PythonDataStructuresAndAlgorithms | d406dc247a8ff2f39ee5aac2a398027298ffbf69 | [
"MIT"
] | 1 | 2019-01-22T04:59:02.000Z | 2019-01-22T04:59:02.000Z | my_work/ch1_algorithm_design_principles/asymptotic_analysis.py | gabrielavirna/python_data_structures_and_algorithms | d406dc247a8ff2f39ee5aac2a398027298ffbf69 | [
"MIT"
] | null | null | null | my_work/ch1_algorithm_design_principles/asymptotic_analysis.py | gabrielavirna/python_data_structures_and_algorithms | d406dc247a8ff2f39ee5aac2a398027298ffbf69 | [
"MIT"
] | null | null | null | """
Asymptotic analysis
-------------------
Algorithm's runtime performance:
Worst case - Use an input that gives the slowest performance
Best case - Use an input that give, the best results
Average case - Assumes the input is random
Need to know the upper and lower bounds: simply create two expressions, one each for... | 31.818182 | 110 | 0.734286 |
ffab499f9da16cb1745613da524ec9dabb419f9a | 2,743 | py | Python | src/visions/core/implementations/typesets.py | ieaves/tenzing | 92d39c1c3a5633d8074e0ffe8c2687c465aebbc8 | [
"MIT"
] | null | null | null | src/visions/core/implementations/typesets.py | ieaves/tenzing | 92d39c1c3a5633d8074e0ffe8c2687c465aebbc8 | [
"MIT"
] | null | null | null | src/visions/core/implementations/typesets.py | ieaves/tenzing | 92d39c1c3a5633d8074e0ffe8c2687c465aebbc8 | [
"MIT"
] | null | null | null | from visions.core.model.typeset import VisionsTypeset
from visions.core.implementations.types import *
class visions_standard_set(VisionsTypeset):
"""The standard visions typesets
Includes support for the following types:
- visions_float
- visions_integer
- visions_bool
- visions_object
... | 22.669421 | 61 | 0.606271 |
ffab4ca71e538d952c94a9bc3500e7f84cfa7070 | 3,617 | py | Python | tkinter/basic/menu.py | sdyz5210/python | 78f9999f94d92d9ca7fde6f18acec7d3abd422ef | [
"BSD-3-Clause"
] | null | null | null | tkinter/basic/menu.py | sdyz5210/python | 78f9999f94d92d9ca7fde6f18acec7d3abd422ef | [
"BSD-3-Clause"
] | null | null | null | tkinter/basic/menu.py | sdyz5210/python | 78f9999f94d92d9ca7fde6f18acec7d3abd422ef | [
"BSD-3-Clause"
] | null | null | null | #!/usr/bin/evn python
# -*- coding: utf-8 -*-
# python version 2.7.6
from Tkinter import *
def new_file():
print "Open new file"
def open_file():
print "Open existing file"
def stub_action():
print "Menu select"
def makeCommandMenu():
CmdBtn = Menubutton(mBar, text='Button Commands', underline=0)
... | 32.585586 | 82 | 0.708598 |
ffab8899f6d8bda96daca44c56477641d5cf0915 | 15,898 | py | Python | gdata/apps/emailsettings/client.py | gitdaniel228/realtor | 4366d57b064be87b31c8a036b3ed7a99b2036461 | [
"BSD-3-Clause"
] | 11 | 2015-02-23T18:46:39.000Z | 2020-02-24T09:43:58.000Z | lib/gdata/apps/emailsettings/client.py | motord/Motorcycle-Diaries | bb5e5e2d4d79573b4231e760d7662db26c03a55e | [
"BSD-3-Clause"
] | null | null | null | lib/gdata/apps/emailsettings/client.py | motord/Motorcycle-Diaries | bb5e5e2d4d79573b4231e760d7662db26c03a55e | [
"BSD-3-Clause"
] | 5 | 2016-03-17T14:34:19.000Z | 2021-06-10T18:33:44.000Z | #!/usr/bin/python2.4
#
# Copyright 2010 Google Inc. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required ... | 39.645885 | 80 | 0.704931 |
ffab99bbdc078f242ef96a4fc99dc0dfe76abfda | 45,419 | py | Python | geowombat/core/properties.py | jgrss/geowombat | e691102a3dcce13b272810b43bc9586681ae6934 | [
"MIT"
] | 38 | 2020-01-13T22:45:18.000Z | 2022-03-31T05:44:35.000Z | geowombat/core/properties.py | jgrss/geowombat | e691102a3dcce13b272810b43bc9586681ae6934 | [
"MIT"
] | 41 | 2020-01-27T00:57:58.000Z | 2022-03-10T19:52:20.000Z | geowombat/core/properties.py | jgrss/geowombat | e691102a3dcce13b272810b43bc9586681ae6934 | [
"MIT"
] | 4 | 2020-01-14T19:27:38.000Z | 2021-08-23T03:08:37.000Z | from pathlib import Path
from collections import namedtuple
from .util import n_rows_cols
import pandas as pd
import geopandas as gpd
from rasterio.coords import BoundingBox
from affine import Affine
import shapely
from shapely.geometry import Polygon
WavelengthsPan = namedtuple('WavelengthsPan', 'pan')
Wavelengths... | 47.658972 | 135 | 0.295251 |
ffabdbae37521b67c77ce3fcd08d07b007d096fe | 1,679 | py | Python | examples/debugging/basic_ila.py | asaioe99/luna_JP | 276c9d86d2c964c7c4be149d721156d869c9489b | [
"BSD-3-Clause"
] | 4 | 2020-02-11T18:40:02.000Z | 2020-04-03T13:07:38.000Z | examples/debugging/basic_ila.py | kbeckmann/luna | befb33620d1c4267607a45f331b84bc196c7a8bf | [
"BSD-3-Clause"
] | null | null | null | examples/debugging/basic_ila.py | kbeckmann/luna | befb33620d1c4267607a45f331b84bc196c7a8bf | [
"BSD-3-Clause"
] | 1 | 2021-01-16T00:40:49.000Z | 2021-01-16T00:40:49.000Z | #!/usr/bin/env python3
#
# This file is part of LUNA.
#
import sys
from nmigen import Signal, Module, Elaboratable, ClockDomain, ClockSignal, Cat
from luna import top_level_cli
from luna.gateware.utils.cdc import synchronize
from luna.gateware.debug.ila import SyncSerialILA
from luna.apollo ... | 29.45614 | 78 | 0.646814 |
ffabed06d5e8e9bcd271b595fe8f56736ab7a55c | 13,446 | py | Python | stix2/utils.py | cobsec/cti-python-stix2 | ea403d5c50b393005c759c6ca765958454ab8193 | [
"BSD-3-Clause"
] | 9 | 2017-07-03T19:01:23.000Z | 2020-02-20T19:22:49.000Z | stix2/utils.py | cobsec/cti-python-stix2 | ea403d5c50b393005c759c6ca765958454ab8193 | [
"BSD-3-Clause"
] | 1 | 2017-05-30T14:13:27.000Z | 2017-05-30T14:13:27.000Z | stix2/utils.py | cobsec/cti-python-stix2 | ea403d5c50b393005c759c6ca765958454ab8193 | [
"BSD-3-Clause"
] | 1 | 2017-05-26T19:17:14.000Z | 2017-05-26T19:17:14.000Z | """Utility functions and classes for the STIX2 library."""
from collections import Mapping
import copy
import datetime as dt
import json
from dateutil import parser
import pytz
import stix2.base
from .exceptions import (
InvalidValueError, RevokeError, UnmodifiablePropertyError,
)
# Sentinel value for properti... | 33.036855 | 108 | 0.637141 |
ffabfafec2daac10bae7cfb550458c0d52383052 | 2,832 | py | Python | freezeyt_blog/app.py | nappex/freezeyt | 67ead4552ae402cedfcf4ee8ec76fb8a07850724 | [
"MIT"
] | null | null | null | freezeyt_blog/app.py | nappex/freezeyt | 67ead4552ae402cedfcf4ee8ec76fb8a07850724 | [
"MIT"
] | null | null | null | freezeyt_blog/app.py | nappex/freezeyt | 67ead4552ae402cedfcf4ee8ec76fb8a07850724 | [
"MIT"
] | null | null | null | import mimetypes
import mistune
from flask import Flask, url_for, abort, render_template, Response
from pathlib import Path
from urllib.parse import urlparse
import html
from pygments import highlight
from pygments.lexers import get_lexer_by_name
from pygments.formatters import HtmlFormatter
app = Flask(__name__)
BA... | 28.039604 | 73 | 0.634887 |
ffac1ff5a8c8687bdd554413e888a5a860a0f7c2 | 637 | py | Python | test/tests/24_pkcs11_cert/hooks.py | airtower-luna/mod_gnutls | b6ce8add210095b2b983f63a818f5d157aff9f89 | [
"Apache-2.0"
] | 2 | 2015-04-06T11:28:40.000Z | 2021-07-11T12:34:53.000Z | test/tests/24_pkcs11_cert/hooks.py | airtower-luna/mod_gnutls | b6ce8add210095b2b983f63a818f5d157aff9f89 | [
"Apache-2.0"
] | 4 | 2020-09-07T19:27:20.000Z | 2021-07-29T19:29:40.000Z | test/tests/24_pkcs11_cert/hooks.py | airtower-luna/mod_gnutls | b6ce8add210095b2b983f63a818f5d157aff9f89 | [
"Apache-2.0"
] | 1 | 2022-01-26T12:17:17.000Z | 2022-01-26T12:17:17.000Z | #!/usr/bin/python3
import os
import mgstest.softhsm
from pathlib import Path
from unittest import SkipTest
def prepare_env():
if not mgstest.softhsm.find_softhsm_bin():
raise SkipTest('SoftHSM not found.')
db = 'authority/server/softhsm2.db'
softhsm_conf = mgstest.softhsm.tmp_softhsm_conf(db)
... | 22.75 | 63 | 0.660911 |
ffac2692a12350ece72f56e8952392ee068eb5d1 | 23,491 | py | Python | src/vit/train_dino.py | gokberkgul/self-learning-transformer-mil | a3c3236daeb82859dec0cf2747f0dd121121fcdf | [
"Apache-2.0"
] | 1 | 2022-02-23T23:48:23.000Z | 2022-02-23T23:48:23.000Z | src/vit/train_dino.py | gokberkgul/self-learning-transformer-mil | a3c3236daeb82859dec0cf2747f0dd121121fcdf | [
"Apache-2.0"
] | null | null | null | src/vit/train_dino.py | gokberkgul/self-learning-transformer-mil | a3c3236daeb82859dec0cf2747f0dd121121fcdf | [
"Apache-2.0"
] | null | null | null | # Copyright (c) Facebook, Inc. and its affiliates.
#
# 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 ... | 48.939583 | 143 | 0.665148 |
ffac276ef0fbde9daeaecc29eda053137269b112 | 3,657 | py | Python | intersight/models/workflow_workflow_info_ref.py | gumpcraca/intersight-python | 780e6703c739f329084beacbbf2ad7a6a2e59b2b | [
"Apache-2.0"
] | null | null | null | intersight/models/workflow_workflow_info_ref.py | gumpcraca/intersight-python | 780e6703c739f329084beacbbf2ad7a6a2e59b2b | [
"Apache-2.0"
] | null | null | null | intersight/models/workflow_workflow_info_ref.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 WorkflowWorkflowInfoRef(object):
"""
NOTE: Th... | 24.38 | 77 | 0.547443 |
ffac326f8cad5bbc40f20a38e7e661f0e967fb03 | 17,207 | py | Python | applications/popart/bert/bert_data/create_pretraining_data.py | Splendon/examples | ed4a8a01857b6ddca49559141acf5d0986eb01e1 | [
"MIT"
] | 2 | 2020-04-07T23:46:17.000Z | 2021-12-05T10:29:34.000Z | applications/popart/bert/bert_data/create_pretraining_data.py | Splendon/examples | ed4a8a01857b6ddca49559141acf5d0986eb01e1 | [
"MIT"
] | 5 | 2020-01-28T23:13:33.000Z | 2022-02-10T00:34:57.000Z | applications/popart/bert/bert_data/create_pretraining_data.py | Splendon/examples | ed4a8a01857b6ddca49559141acf5d0986eb01e1 | [
"MIT"
] | 1 | 2020-04-07T23:46:29.000Z | 2020-04-07T23:46:29.000Z | # coding=utf-8
# Copyright 2018 The Google AI Language Team Authors.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by ... | 35.260246 | 112 | 0.667403 |
ffac327d5d78fe4805495d2d255a5a6bc71e56da | 6,441 | py | Python | syft/generic/object.py | Ankit-Dhankhar/PySyft | 750bd2c3987a570ef1dc8554b933696d416724c7 | [
"Apache-2.0"
] | 1 | 2019-07-09T09:57:23.000Z | 2019-07-09T09:57:23.000Z | syft/generic/object.py | souravs17031999/PySyft | cd0a134288ab041884537b04eb65358c4d53a471 | [
"Apache-2.0"
] | null | null | null | syft/generic/object.py | souravs17031999/PySyft | cd0a134288ab041884537b04eb65358c4d53a471 | [
"Apache-2.0"
] | 1 | 2021-04-18T15:27:15.000Z | 2021-04-18T15:27:15.000Z | from abc import ABC
import functools
from typing import List
import syft as sy
class AbstractObject(ABC):
"""
This is a generic object abstraction.
"""
is_wrapper = False
def __init__(
self,
id: int = None,
owner: "sy.workers.AbstractWorker" = None,
tags: List[st... | 31.886139 | 97 | 0.595249 |
ffac86fabb181f52cc380511909dd5697e35d530 | 17,374 | py | Python | ccoin/messages.py | Rustem/toychain | dafc445e66af8a18c4b007b20b15f9612b825529 | [
"MIT"
] | 3 | 2018-05-01T09:13:00.000Z | 2018-06-26T03:01:07.000Z | ccoin/messages.py | Rustem/toychain | dafc445e66af8a18c4b007b20b15f9612b825529 | [
"MIT"
] | null | null | null | ccoin/messages.py | Rustem/toychain | dafc445e66af8a18c4b007b20b15f9612b825529 | [
"MIT"
] | null | null | null | import random
import msgpack
import time
import json
from ccoin import settings
from ccoin.security import hash_map, sign, verify, hash_message
from .exceptions import MessageDeserializationException, TransactionNotVerifiable, TransactionBadSignature
from abc import ABC, abstractmethod, abstractclassmethod
# b'BLKf... | 30.588028 | 121 | 0.586509 |
ffaca3690a2d2515685ffb01174e1d1d9bd8cd4c | 4,011 | py | Python | benchmark/inclusion_benchmark.py | yrik/datasketch | 82d9639bc0011932a952bbae1d4b5bd5ac03c7c8 | [
"MIT"
] | 1,771 | 2015-04-07T18:06:02.000Z | 2022-03-31T17:45:24.000Z | benchmark/inclusion_benchmark.py | yrik/datasketch | 82d9639bc0011932a952bbae1d4b5bd5ac03c7c8 | [
"MIT"
] | 159 | 2015-08-15T09:47:58.000Z | 2022-03-22T12:55:21.000Z | benchmark/inclusion_benchmark.py | yrik/datasketch | 82d9639bc0011932a952bbae1d4b5bd5ac03c7c8 | [
"MIT"
] | 278 | 2015-04-08T13:50:27.000Z | 2022-03-02T13:00:33.000Z | '''
Test the accuracy of inclusion estimation using data sketches
Must be using Python 2 as pyhash does not support Python 3
HyperLogLog inclusion score is computed using cardinality estimate
and inclusion-exclusion principle.
MinHash inclusion score is computed using Jaccard estiamte,
inclusion-exclusion principle, an... | 32.609756 | 77 | 0.63625 |
ffaca42306ce1e66c781260860e21d9d29cf9f6e | 3,030 | py | Python | petab/conditions.py | paulflang/PEtab | f263174065109ad7c5500796d871a6326fabbc8c | [
"MIT"
] | null | null | null | petab/conditions.py | paulflang/PEtab | f263174065109ad7c5500796d871a6326fabbc8c | [
"MIT"
] | null | null | null | petab/conditions.py | paulflang/PEtab | f263174065109ad7c5500796d871a6326fabbc8c | [
"MIT"
] | null | null | null | """Functions operating on the PEtab condition table"""
from typing import Iterable, Optional, List, Union
import numpy as np
import pandas as pd
from . import lint, core
from .C import *
def get_condition_df(
condition_file: Union[str, pd.DataFrame, None]
) -> pd.DataFrame:
"""Read the provided conditi... | 28.317757 | 78 | 0.646205 |
ffacd1802be39f4e37dd8d98c676cb417bcb5320 | 469 | py | Python | precess.py | marissakotze/timDIMM | dde00a3bb6ca7c3d9b71e24f9363350a0e2a323f | [
"BSD-3-Clause"
] | 1 | 2021-06-06T15:26:36.000Z | 2021-06-06T15:26:36.000Z | precess.py | marissakotze/timDIMM | dde00a3bb6ca7c3d9b71e24f9363350a0e2a323f | [
"BSD-3-Clause"
] | null | null | null | precess.py | marissakotze/timDIMM | dde00a3bb6ca7c3d9b71e24f9363350a0e2a323f | [
"BSD-3-Clause"
] | 3 | 2015-07-29T15:16:35.000Z | 2017-12-01T13:02:36.000Z | #!/usr/bin/env python
import sys
import os
import ephem
import time
import numpy as np
salt = ephem.Observer()
salt.lat = "-32:22:32"
salt.lon = "20:48:30"
salt.elevation = 1800
salt.temp = 10
salt.compute_pressure()
salt.epoch=ephem.J2000
salt.date=time.strftime("%Y-%m-%d %H:%M:%S", time.gmtime())
ra = sys.argv[1]
... | 18.038462 | 65 | 0.667377 |
ffacdfbd5ff86b4bf49e146a715a9ec9e93a24f8 | 8,355 | py | Python | Barbican/Server/barbican-stable-mitaka/barbican/barbican/plugin/crypto/simple_crypto.py | cloud-security-research/sgx-kms | 2f07bf36721dafe0e4a000ca3f41529dc8d2004a | [
"Apache-2.0"
] | 36 | 2017-11-08T23:36:35.000Z | 2022-03-20T16:01:55.000Z | Barbican/Server/barbican-stable-mitaka/barbican/barbican/plugin/crypto/simple_crypto.py | Calctopia-OpenSource/sgx-kms | 2f07bf36721dafe0e4a000ca3f41529dc8d2004a | [
"Apache-2.0"
] | 2 | 2017-11-17T03:19:17.000Z | 2018-07-04T03:37:36.000Z | Barbican/Server/barbican-stable-mitaka/barbican/barbican/plugin/crypto/simple_crypto.py | Calctopia-OpenSource/sgx-kms | 2f07bf36721dafe0e4a000ca3f41529dc8d2004a | [
"Apache-2.0"
] | 12 | 2017-11-13T03:20:40.000Z | 2021-07-16T03:26:41.000Z | # Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the... | 39.976077 | 79 | 0.623459 |
ffad0af47d9ed834cf4caab0017d54d6f603e741 | 388 | py | Python | rkd/__init__.py | iro-upgto/rkd | 7823781ddc81a9dac18fed55080205e8ed68b57b | [
"MIT"
] | null | null | null | rkd/__init__.py | iro-upgto/rkd | 7823781ddc81a9dac18fed55080205e8ed68b57b | [
"MIT"
] | null | null | null | rkd/__init__.py | iro-upgto/rkd | 7823781ddc81a9dac18fed55080205e8ed68b57b | [
"MIT"
] | null | null | null | #
# Universidad Politécnica de Guanajuato
# Departamento de Ingeniería Robótica
#
# rkd: Python library for kinematic analysis of robots
import numpy as np
from .didactic import *
# If True, always print floating point numbers using fixed point notation,
# in which case numbers equal to zero in the current precision... | 29.846154 | 94 | 0.78866 |
ffad4cdb2a3995b2863408c222da9df4422c88d1 | 1,432 | py | Python | alipay/aop/api/domain/AlipayOpenAppAppcontentItemDeleteModel.py | antopen/alipay-sdk-python-all | 8e51c54409b9452f8d46c7bb10eea7c8f7e8d30c | [
"Apache-2.0"
] | 213 | 2018-08-27T16:49:32.000Z | 2021-12-29T04:34:12.000Z | alipay/aop/api/domain/AlipayOpenAppAppcontentItemDeleteModel.py | antopen/alipay-sdk-python-all | 8e51c54409b9452f8d46c7bb10eea7c8f7e8d30c | [
"Apache-2.0"
] | 29 | 2018-09-29T06:43:00.000Z | 2021-09-02T03:27:32.000Z | alipay/aop/api/domain/AlipayOpenAppAppcontentItemDeleteModel.py | antopen/alipay-sdk-python-all | 8e51c54409b9452f8d46c7bb10eea7c8f7e8d30c | [
"Apache-2.0"
] | 59 | 2018-08-27T16:59:26.000Z | 2022-03-25T10:08:15.000Z | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import json
from alipay.aop.api.constant.ParamConstants import *
class AlipayOpenAppAppcontentItemDeleteModel(object):
def __init__(self):
self._biz_unique_id = None
self._item_id = None
@property
def biz_unique_id(self):
return self... | 25.571429 | 77 | 0.601955 |
ffad795f2c8ad7fd6cbcb98c8019dc2af78cbeb9 | 2,887 | py | Python | fasta2random_representative.py | ba1/BioParsing | 8a0257d4765a7bc86fef7688762abbeaaf3cef07 | [
"MIT"
] | 1 | 2017-06-19T15:15:26.000Z | 2017-06-19T15:15:26.000Z | fasta2random_representative.py | ba1/BioParsing | 8a0257d4765a7bc86fef7688762abbeaaf3cef07 | [
"MIT"
] | null | null | null | fasta2random_representative.py | ba1/BioParsing | 8a0257d4765a7bc86fef7688762abbeaaf3cef07 | [
"MIT"
] | null | null | null | '''
Created on Nov 3, 2015
@author: bardya
'''
import os
import argparse
import random
from Bio import SeqIO
def parse_args():
parser = argparse.ArgumentParser(description='From a set of multi fasta files in the input-directory extract 1 or more representative sequences randomly for each')
parser.add_ar... | 41.84058 | 167 | 0.658469 |
ffad7b3cdfd5262741b7f605688bd78754f03768 | 8,734 | py | Python | macgyver/query_vector_db.py | RobbieHember/fcgadgets | d968991ea185d48df8d674d290b7e03bfc8843d4 | [
"Apache-2.0"
] | 2 | 2021-11-18T21:29:37.000Z | 2022-01-13T23:40:42.000Z | macgyver/query_vector_db.py | RobbieHember/fcgadgets | d968991ea185d48df8d674d290b7e03bfc8843d4 | [
"Apache-2.0"
] | null | null | null | macgyver/query_vector_db.py | RobbieHember/fcgadgets | d968991ea185d48df8d674d290b7e03bfc8843d4 | [
"Apache-2.0"
] | null | null | null | '''
QUERY RESULTS ACTIVITY TREATMENT LAYER
'''
#%% Import modules
import numpy as np
import pandas as pd
import geopandas as gpd
import fiona
import matplotlib.pyplot as plt
import numpy.matlib as ml
from shapely.geometry import Polygon,Point
import time
import gc as garc
from fcgadgets.macgyver import utilities_ge... | 31.76 | 116 | 0.599382 |
ffad84fb686b4a413a1530ce0760eb418b8ce36a | 836 | py | Python | examples/__init__.py | valory-xyz/agents-aea | 8f38efa96041b0156ed1ae328178e395dbabf2fc | [
"Apache-2.0"
] | 126 | 2019-09-07T09:32:44.000Z | 2022-03-29T14:28:41.000Z | examples/__init__.py | valory-xyz/agents-aea | 8f38efa96041b0156ed1ae328178e395dbabf2fc | [
"Apache-2.0"
] | 1,814 | 2019-08-24T10:08:07.000Z | 2022-03-31T14:28:36.000Z | examples/__init__.py | valory-xyz/agents-aea | 8f38efa96041b0156ed1ae328178e395dbabf2fc | [
"Apache-2.0"
] | 46 | 2019-09-03T22:13:58.000Z | 2022-03-22T01:25:16.000Z | # -*- coding: utf-8 -*-
# ------------------------------------------------------------------------------
#
# Copyright 2018-2020 Fetch.AI Limited
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the ... | 39.809524 | 80 | 0.580144 |
ffad8e46ebaaf5acd21db93d9704e4d1c63f861b | 3,134 | py | Python | make_stat.py | deshpandeyash/treesplittingsimulator | aa93dcac892cd580669e453353a88a7b9343b423 | [
"MIT"
] | 1 | 2020-02-20T15:00:14.000Z | 2020-02-20T15:00:14.000Z | make_stat.py | deshpandeyash/treesplittingsimulator | aa93dcac892cd580669e453353a88a7b9343b423 | [
"MIT"
] | null | null | null | make_stat.py | deshpandeyash/treesplittingsimulator | aa93dcac892cd580669e453353a88a7b9343b423 | [
"MIT"
] | null | null | null | import numpy as np
import scipy.stats
from matplotlib import pyplot as plt
import tikzplotlib
def mean_confidence_interval(data, confidence=0.95):
a = 1.0 * np.array(data)
n = len(a)
m, se = np.mean(a), scipy.stats.sem(a)
h = se * scipy.stats.t.ppf((1 + confidence) / 2., n - 1)
return m... | 39.670886 | 119 | 0.636567 |
ffad928fb773c3898cff793b3889bd409a274ddd | 4,348 | py | Python | pytorch/fastpitch/common/audio_processing.py | ningchaoar/portfolio-examples | bacbbbcc3f20e89648c91141156f091de4eef651 | [
"MIT"
] | 5 | 2021-11-26T03:54:26.000Z | 2022-03-18T01:15:05.000Z | pytorch/fastpitch/common/audio_processing.py | ningchaoar/portfolio-examples | bacbbbcc3f20e89648c91141156f091de4eef651 | [
"MIT"
] | 8 | 2021-12-11T11:08:29.000Z | 2022-03-30T10:50:55.000Z | pytorch/fastpitch/common/audio_processing.py | ningchaoar/portfolio-examples | bacbbbcc3f20e89648c91141156f091de4eef651 | [
"MIT"
] | 5 | 2021-11-29T07:55:08.000Z | 2022-03-21T06:38:51.000Z | # *****************************************************************************
# Copyright (c) 2018, NVIDIA CORPORATION. All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are met:
# * Redistributions... | 36.233333 | 83 | 0.665593 |
ffadcc89664dbd075d6b54167437f4347a7233b6 | 411 | py | Python | cogs/dev.py | rvalien/orbbot | 0f3f9198f595d8217142718151096d925405258a | [
"MIT"
] | null | null | null | cogs/dev.py | rvalien/orbbot | 0f3f9198f595d8217142718151096d925405258a | [
"MIT"
] | null | null | null | cogs/dev.py | rvalien/orbbot | 0f3f9198f595d8217142718151096d925405258a | [
"MIT"
] | null | null | null | import json
import requests
from discord.ext import commands
class DevCommands(commands.Cog):
def __init__(self, bot):
self.bot = bot
self._last_member = None
@commands.command()
@commands.is_owner()
async def members(self, ctx):
am = self.bot.get_all_members()
for m ... | 18.681818 | 39 | 0.632603 |
ffade5ed0083d7ca559bc68caa6b55cad24eaebe | 2,353 | py | Python | artemis/ml/datasets/mnist.py | peteroconnor-bc/artemis | ad2871fae7d986bf10580eec27aee5b7315adad5 | [
"BSD-2-Clause-FreeBSD"
] | 235 | 2016-08-26T14:18:51.000Z | 2022-03-13T10:54:39.000Z | artemis/ml/datasets/mnist.py | peteroconnor-bc/artemis | ad2871fae7d986bf10580eec27aee5b7315adad5 | [
"BSD-2-Clause-FreeBSD"
] | 112 | 2016-04-30T11:48:38.000Z | 2021-01-12T20:17:32.000Z | artemis/ml/datasets/mnist.py | peteroconnor-bc/artemis | ad2871fae7d986bf10580eec27aee5b7315adad5 | [
"BSD-2-Clause-FreeBSD"
] | 31 | 2016-11-05T19:09:19.000Z | 2021-09-13T07:35:40.000Z | import pickle
from artemis.general.should_be_builtins import memoize
from artemis.ml.datasets.datasets import DataSet, DataCollection
from artemis.fileman.file_getter import get_file, unzip_gz
import numpy as np
__author__ = 'peter'
@memoize # This should save time on tests and dataset should be immutable so it's ... | 42.017857 | 132 | 0.673608 |
ffadeac3112f75e9906077a36c9e1b58771cbc55 | 835 | py | Python | alipay/aop/api/response/AlipayMarketingIotMerchantplanCreateormodifyResponse.py | antopen/alipay-sdk-python-all | 8e51c54409b9452f8d46c7bb10eea7c8f7e8d30c | [
"Apache-2.0"
] | 213 | 2018-08-27T16:49:32.000Z | 2021-12-29T04:34:12.000Z | alipay/aop/api/response/AlipayMarketingIotMerchantplanCreateormodifyResponse.py | antopen/alipay-sdk-python-all | 8e51c54409b9452f8d46c7bb10eea7c8f7e8d30c | [
"Apache-2.0"
] | 29 | 2018-09-29T06:43:00.000Z | 2021-09-02T03:27:32.000Z | alipay/aop/api/response/AlipayMarketingIotMerchantplanCreateormodifyResponse.py | antopen/alipay-sdk-python-all | 8e51c54409b9452f8d46c7bb10eea7c8f7e8d30c | [
"Apache-2.0"
] | 59 | 2018-08-27T16:59:26.000Z | 2022-03-25T10:08:15.000Z | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import json
from alipay.aop.api.response.AlipayResponse import AlipayResponse
class AlipayMarketingIotMerchantplanCreateormodifyResponse(AlipayResponse):
def __init__(self):
super(AlipayMarketingIotMerchantplanCreateormodifyResponse, self).__init__()
... | 32.115385 | 125 | 0.755689 |
ffadfec7eec8c3bd489e6a63244c5d0c0e85fae4 | 75 | py | Python | ccmixter_song_downloader/__init__.py | jtara1/CCMixterSongDownloader | bbf7c5d169562fd531408815594920fdffe00fcc | [
"Apache-2.0"
] | null | null | null | ccmixter_song_downloader/__init__.py | jtara1/CCMixterSongDownloader | bbf7c5d169562fd531408815594920fdffe00fcc | [
"Apache-2.0"
] | 4 | 2018-01-11T02:33:43.000Z | 2018-02-16T23:45:30.000Z | ccmixter_song_downloader/__init__.py | jtara1/ccmixter_song_downloader | bbf7c5d169562fd531408815594920fdffe00fcc | [
"Apache-2.0"
] | null | null | null | from ccmixter_song_downloader.__main__ import \
CCMixterSongDownloader
| 25 | 47 | 0.853333 |
ffae163d4f2e76d4263bb1e84274f98a8d61b1fe | 32,356 | py | Python | esrally/config.py | alexsapran/rally | 6c4164bcc681b267feac969c100809964aac9c8f | [
"Apache-2.0"
] | 2 | 2019-04-11T10:45:11.000Z | 2019-06-05T15:24:05.000Z | esrally/config.py | alexsapran/rally | 6c4164bcc681b267feac969c100809964aac9c8f | [
"Apache-2.0"
] | null | null | null | esrally/config.py | alexsapran/rally | 6c4164bcc681b267feac969c100809964aac9c8f | [
"Apache-2.0"
] | null | null | null | # Licensed to Elasticsearch B.V. under one or more contributor
# license agreements. See the NOTICE file distributed with
# this work for additional information regarding copyright
# ownership. Elasticsearch B.V. licenses this file to you under
# the Apache License, Version 2.0 (the "License"); you may
# not use this f... | 48.802413 | 140 | 0.61732 |
ffae46f2cf56f8e7e364277e772666cfe389cf66 | 13,765 | py | Python | sc_classifier/SCC.py | msimet/sc_classifier | 3dbc8c4d722e1a2b6a588986fff8c083fb5db541 | [
"BSD-2-Clause"
] | 1 | 2020-10-29T13:52:38.000Z | 2020-10-29T13:52:38.000Z | sc_classifier/SCC.py | msimet/sc_classifier | 3dbc8c4d722e1a2b6a588986fff8c083fb5db541 | [
"BSD-2-Clause"
] | null | null | null | sc_classifier/SCC.py | msimet/sc_classifier | 3dbc8c4d722e1a2b6a588986fff8c083fb5db541 | [
"BSD-2-Clause"
] | null | null | null | """ SCC.py: contains the definition of the SpatialCluster object that performs the
Hebert & Macaire algorithm """
import numpy as np
from sklearn.cluster import KMeans
class SpatialColorClassifier(object):
"""
A class to perform the spatial-color pixel clustering algorithm of
https://ieeexplore.ieee.o... | 51.74812 | 100 | 0.631965 |
ffae4d4adf150b18ea2d7ef5def277e0f807b6d8 | 13,898 | py | Python | LYD.IA/Interface.py | thewozn/LYD.IA | f04d3eb67894cc5ba9ea0af612b9c6dfb471ec8c | [
"MIT"
] | null | null | null | LYD.IA/Interface.py | thewozn/LYD.IA | f04d3eb67894cc5ba9ea0af612b9c6dfb471ec8c | [
"MIT"
] | null | null | null | LYD.IA/Interface.py | thewozn/LYD.IA | f04d3eb67894cc5ba9ea0af612b9c6dfb471ec8c | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
"""
Created on Mon Mar 12 13:55:37 2018
@author: anthony.woznica
Absolutely ANY USE of the following functions REQUIRE CREDIT IN THE HEADER OF THE FILE (WOZNICA Anthony).
There are NO exceptions.
This file contains all methods regarding the dialog part of the chatbot.
"""
import lexical_anal... | 46.019868 | 164 | 0.5431 |
ffae67c85e50225c429c1f85e29411bbdc1f4f48 | 71,694 | py | Python | salt/states/pkg.py | rfairburn/salt | 7e44444e873e1cb1d2fe13e39b0edea3779a2b5e | [
"Apache-2.0"
] | null | null | null | salt/states/pkg.py | rfairburn/salt | 7e44444e873e1cb1d2fe13e39b0edea3779a2b5e | [
"Apache-2.0"
] | null | null | null | salt/states/pkg.py | rfairburn/salt | 7e44444e873e1cb1d2fe13e39b0edea3779a2b5e | [
"Apache-2.0"
] | null | null | null | # -*- coding: utf-8 -*-
'''
Installation of packages using OS package managers such as yum or apt-get
=========================================================================
Salt can manage software packages via the pkg state module, packages can be
set up to be installed, latest, removed and purged. Package managem... | 36.227388 | 115 | 0.532778 |
ffae7b66a740f450d28853b13d719213f90e9ed6 | 1,265 | py | Python | code/perception3d/test.py | theNded/SGP | 63d33cc8bffde53676d9c4800f4b11804b53b360 | [
"MIT"
] | 137 | 2021-03-05T03:24:30.000Z | 2022-03-30T03:37:57.000Z | code/perception3d/test.py | theNded/SGP | 63d33cc8bffde53676d9c4800f4b11804b53b360 | [
"MIT"
] | 2 | 2021-06-06T20:59:47.000Z | 2021-09-30T03:37:41.000Z | code/perception3d/test.py | theNded/SGP | 63d33cc8bffde53676d9c4800f4b11804b53b360 | [
"MIT"
] | 2 | 2021-04-18T14:47:16.000Z | 2021-04-23T06:43:27.000Z | import sys, os
file_path = os.path.abspath(__file__)
project_path = os.path.dirname(os.path.dirname(file_path))
sys.path.append(project_path)
fcgf_path = os.path.join(project_path, 'ext', 'FCGF')
sys.path.append(fcgf_path)
from dataset.threedmatch_test import Dataset3DMatchTest
from perception3d.adaptor import FCGFC... | 35.138889 | 75 | 0.698024 |
ffae8c388b3772b527ebd3842359d60f934641f8 | 6,569 | py | Python | src/ecs_endpoint.py | ipa-nhg/error_classification_server | 53a56e3421a719fe0a20eda5a8d752559e240a0e | [
"BSD-3-Clause"
] | 2 | 2021-03-04T02:34:36.000Z | 2021-12-15T09:53:32.000Z | src/ecs_endpoint.py | cognicept-admin/error_classification_server | d9cbba8c84e715134f3568ca8778b62e8c4eade3 | [
"BSD-3-Clause"
] | null | null | null | src/ecs_endpoint.py | cognicept-admin/error_classification_server | d9cbba8c84e715134f3568ca8778b62e8c4eade3 | [
"BSD-3-Clause"
] | 2 | 2020-09-23T03:55:33.000Z | 2021-09-29T12:09:46.000Z | '''
This program defines and served API endpoint routes for the ERT and ECS tables.
'''
import os
import errno
from sanic import Sanic, response
from databases import Database
app = Sanic(__name__)
@app.route("/ping")
async def get_ping(request):
"""
Test API Route
"""
return response.json({'data'... | 33.176768 | 255 | 0.636474 |
ffae8fd8c40313f4ee3af56dd393c2bc69dad412 | 4,751 | py | Python | jcc/helpers3/linux.py | IreneZhou0129/PyLucene-assignment | 70916f1c8451c5dce5c5205915b25f214ffed2e4 | [
"Apache-2.0"
] | null | null | null | jcc/helpers3/linux.py | IreneZhou0129/PyLucene-assignment | 70916f1c8451c5dce5c5205915b25f214ffed2e4 | [
"Apache-2.0"
] | null | null | null | jcc/helpers3/linux.py | IreneZhou0129/PyLucene-assignment | 70916f1c8451c5dce5c5205915b25f214ffed2e4 | [
"Apache-2.0"
] | null | null | null | # Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distribu... | 45.247619 | 242 | 0.692275 |
ffaee2c28b2bb2a2f57d7a176b4c47314dc21f14 | 2,592 | py | Python | advbench/plotting/primal_dual.py | constrainedlearning/advbench | 68f9f6d77268aad45517ca84d383b996724cc976 | [
"MIT"
] | 5 | 2021-11-09T13:21:45.000Z | 2022-03-14T21:15:31.000Z | advbench/plotting/primal_dual.py | constrainedlearning/advbench | 68f9f6d77268aad45517ca84d383b996724cc976 | [
"MIT"
] | 1 | 2022-03-03T18:56:13.000Z | 2022-03-03T18:58:38.000Z | advbench/plotting/primal_dual.py | constrainedlearning/advbench | 68f9f6d77268aad45517ca84d383b996724cc976 | [
"MIT"
] | 3 | 2021-11-02T21:01:44.000Z | 2022-03-23T18:50:49.000Z | import argparse
import matplotlib.pyplot as plt
import numpy as np
import seaborn as sns
import pandas as pd
import json
import os
from advbench.lib import reporting, plotting
if __name__ == '__main__':
parser = argparse.ArgumentParser(description='Plot primal dual')
parser.add_argument('--input_dir', type=st... | 30.494118 | 129 | 0.600694 |
ffaf0b25ca0c58affb5a0bfe542d7757f3a08abc | 70,927 | py | Python | geosoft/gxpy/grid.py | fearaschiarrai/gxpy | 4c5e7594b24e530a8cd94df1eef562c5c6ce3e92 | [
"BSD-2-Clause"
] | 25 | 2017-07-14T06:39:37.000Z | 2022-03-09T21:39:51.000Z | geosoft/gxpy/grid.py | fearaschiarrai/gxpy | 4c5e7594b24e530a8cd94df1eef562c5c6ce3e92 | [
"BSD-2-Clause"
] | 100 | 2016-12-13T17:30:41.000Z | 2021-08-01T20:21:13.000Z | geosoft/gxpy/grid.py | fearaschiarrai/gxpy | 4c5e7594b24e530a8cd94df1eef562c5c6ce3e92 | [
"BSD-2-Clause"
] | 28 | 2016-12-12T17:34:40.000Z | 2022-03-16T15:39:39.000Z | """
Geosoft grid and image handling, including all
`supported file formats <https://geosoftgxdev.atlassian.net/wiki/display/GXDEV92/Grid+File+Name+Decorations>`_ .
:Classes:
:`Grid`: grid dataset
:Constants:
:FILE_READ: 0 open for read, files are not changed
:FILE_READWRITE: 1 open for read and write... | 35.605924 | 125 | 0.552526 |
ffaf1edcf7fc314e562d1e4002d05e721880fd3a | 1,896 | py | Python | configs/atss/atss_r50_fpn_1x_coco_Nuscenes_exp1.py | flyingTan/QuantMmdetection | 6126cd7725dcd0c4d3ad68f016908c500a0adbb9 | [
"Apache-2.0"
] | 2 | 2021-08-28T06:43:03.000Z | 2022-01-17T00:04:23.000Z | configs/atss/atss_r50_fpn_1x_coco_Nuscenes_exp1.py | flyingTan/QuantMmdetection | 6126cd7725dcd0c4d3ad68f016908c500a0adbb9 | [
"Apache-2.0"
] | null | null | null | configs/atss/atss_r50_fpn_1x_coco_Nuscenes_exp1.py | flyingTan/QuantMmdetection | 6126cd7725dcd0c4d3ad68f016908c500a0adbb9 | [
"Apache-2.0"
] | null | null | null | _base_ = [
'../_base_/datasets/coco_detection_nuscenes.py',
'../_base_/schedules/schedule_1x.py', '../_base_/default_runtime.py'
]
model = dict(
type='ATSS',
pretrained='torchvision://resnet50',
backbone=dict(
type='ResNet',
depth=50,
num_stages=4,
out_indices=(0, 1, ... | 30.095238 | 73 | 0.576477 |
ffaf8cc4fad919a0c90fff943c868b700f8a3756 | 9,789 | py | Python | test/azure/legacy/Expected/AcceptanceTests/AzureSpecials/azurespecialproperties/aio/operations/_subscription_in_method_operations.py | cfculhane/autorest.python | 8cbca95faee88d933a58bbbd17b76834faa8d387 | [
"MIT"
] | 35 | 2018-04-03T12:15:53.000Z | 2022-03-11T14:03:34.000Z | test/azure/legacy/Expected/AcceptanceTests/AzureSpecials/azurespecialproperties/aio/operations/_subscription_in_method_operations.py | cfculhane/autorest.python | 8cbca95faee88d933a58bbbd17b76834faa8d387 | [
"MIT"
] | 652 | 2017-08-28T22:44:41.000Z | 2022-03-31T21:20:31.000Z | test/azure/legacy/Expected/AcceptanceTests/AzureSpecials/azurespecialproperties/aio/operations/_subscription_in_method_operations.py | cfculhane/autorest.python | 8cbca95faee88d933a58bbbd17b76834faa8d387 | [
"MIT"
] | 29 | 2017-08-28T20:57:01.000Z | 2022-03-11T14:03:38.000Z | # coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license information.
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may ... | 47.519417 | 164 | 0.702115 |
ffafa01ed29a4f9ffc883b59b08923d5ce023f41 | 148 | py | Python | exceptions/__init__.py | bornobob/ModelChecking | f49d7077e32d3a699d199289349c88ff18206382 | [
"MIT"
] | 2 | 2020-02-19T21:07:10.000Z | 2020-02-19T21:39:56.000Z | exceptions/__init__.py | bornobob/ModelChecking | f49d7077e32d3a699d199289349c88ff18206382 | [
"MIT"
] | 9 | 2020-02-26T13:16:21.000Z | 2020-04-01T09:55:40.000Z | exceptions/__init__.py | bornobob/ModelChecking | f49d7077e32d3a699d199289349c88ff18206382 | [
"MIT"
] | null | null | null | from exceptions.galileoparseexception import GalileoParseException
from exceptions.unsupportedfiletypeexception import UnsupportedFileTypeException
| 49.333333 | 80 | 0.932432 |
ffafc2e397a4284b2ac96c22c81535f7d07dc0e3 | 93,482 | py | Python | sdk/cosmos/azure-cosmos/azure/cosmos/_cosmos_client_connection.py | vincenttran-msft/azure-sdk-for-python | 348b56f9f03eeb3f7b502eed51daf494ffff874d | [
"MIT"
] | 1 | 2022-02-01T18:50:12.000Z | 2022-02-01T18:50:12.000Z | sdk/cosmos/azure-cosmos/azure/cosmos/_cosmos_client_connection.py | vincenttran-msft/azure-sdk-for-python | 348b56f9f03eeb3f7b502eed51daf494ffff874d | [
"MIT"
] | null | null | null | sdk/cosmos/azure-cosmos/azure/cosmos/_cosmos_client_connection.py | vincenttran-msft/azure-sdk-for-python | 348b56f9f03eeb3f7b502eed51daf494ffff874d | [
"MIT"
] | null | null | null | # The MIT License (MIT)
# Copyright (c) 2014 Microsoft Corporation
# 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, cop... | 35.598629 | 120 | 0.623425 |
ffafd7cc132adadae7553b79a9fcf156dafa4621 | 1,020 | py | Python | nvflare/fuel/hci/file_transfer_defs.py | Can-Zhao/NVFlare | 52d9dee9972b32d49d9a8add52a652ce3bb878b5 | [
"Apache-2.0"
] | 155 | 2021-08-05T18:05:09.000Z | 2022-03-27T15:32:56.000Z | nvflare/fuel/hci/file_transfer_defs.py | Can-Zhao/NVFlare | 52d9dee9972b32d49d9a8add52a652ce3bb878b5 | [
"Apache-2.0"
] | 216 | 2021-12-01T06:07:12.000Z | 2022-03-30T23:34:02.000Z | nvflare/fuel/hci/file_transfer_defs.py | Can-Zhao/NVFlare | 52d9dee9972b32d49d9a8add52a652ce3bb878b5 | [
"Apache-2.0"
] | 44 | 2021-11-24T16:03:29.000Z | 2022-03-24T23:28:39.000Z | # Copyright (c) 2021-2022, NVIDIA CORPORATION. All rights reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by ... | 37.777778 | 74 | 0.792157 |
ffafdd8af1807241f534e394ceb6239b9c7356e1 | 742 | py | Python | Settings/MPS_CONTROL_TABLE.py | xzhang-wr/DAnTE_V2 | 8b433973aa5ab47ef237d8dfaca6232a6d9f526b | [
"Apache-2.0"
] | null | null | null | Settings/MPS_CONTROL_TABLE.py | xzhang-wr/DAnTE_V2 | 8b433973aa5ab47ef237d8dfaca6232a6d9f526b | [
"Apache-2.0"
] | null | null | null | Settings/MPS_CONTROL_TABLE.py | xzhang-wr/DAnTE_V2 | 8b433973aa5ab47ef237d8dfaca6232a6d9f526b | [
"Apache-2.0"
] | null | null | null | #!usr/bin/env python
__author__ = "Xiaoguang Zhang"
__email__ = "xzhang@westwoodrobotics.net"
__copyright__ = "Copyright 2020 Westwood Robotics"
__date__ = "Jan 8, 2020"
__version__ = "0.1.0"
__status__ = "Beta"
"""
Register Table
"""
class INSTRUCTION:
"""MPS Instruction"""
read = 0b01000000
write = 0b1... | 21.2 | 56 | 0.66442 |
ffafee4a05d83a8ce28c529eb55d7ef97632f4b0 | 4,294 | py | Python | tests/unit_tests/tuners/task_specific_test.py | micheleFraccaroli/autokeras | 4c0e36dc0a5418355952dd74f74b2b6e7e87ebf1 | [
"Apache-2.0"
] | 4,704 | 2017-12-03T02:40:27.000Z | 2019-12-19T23:23:34.000Z | tests/unit_tests/tuners/task_specific_test.py | micheleFraccaroli/autokeras | 4c0e36dc0a5418355952dd74f74b2b6e7e87ebf1 | [
"Apache-2.0"
] | 541 | 2018-02-13T21:59:58.000Z | 2019-04-01T15:21:57.000Z | tests/unit_tests/tuners/task_specific_test.py | micheleFraccaroli/autokeras | 4c0e36dc0a5418355952dd74f74b2b6e7e87ebf1 | [
"Apache-2.0"
] | 738 | 2018-02-07T03:01:13.000Z | 2019-12-19T23:23:36.000Z | # Copyright 2020 The AutoKeras Authors.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to i... | 31.573529 | 74 | 0.701444 |
ffb016e2d8ea9ab7eb9ca60ec78a50a9fcd568c8 | 11,184 | py | Python | clients/client/python/ory_client/model/identity_schema_location.py | sproutfi/sdk | 5340b37d7b3e8f3c1b8f4c0c16ede05488498620 | [
"Apache-2.0"
] | null | null | null | clients/client/python/ory_client/model/identity_schema_location.py | sproutfi/sdk | 5340b37d7b3e8f3c1b8f4c0c16ede05488498620 | [
"Apache-2.0"
] | null | null | null | clients/client/python/ory_client/model/identity_schema_location.py | sproutfi/sdk | 5340b37d7b3e8f3c1b8f4c0c16ede05488498620 | [
"Apache-2.0"
] | null | null | null | """
Ory APIs
Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. # noqa: E501
The version of the OpenAPI document: v0.0.1-alpha.71
Contact: support@ory.sh
Generated by: htt... | 43.51751 | 194 | 0.572604 |
ffb03a2a83595b20c5e638447fd1a4b61d104819 | 2,117 | py | Python | src/indriya_msgs/python/publishers_pb2.py | praveenv4k/Indriya | a74a4b8bb9f04b5e858305769e892edfcab32df5 | [
"MIT"
] | 1 | 2017-07-12T15:30:58.000Z | 2017-07-12T15:30:58.000Z | src/indriya_msgs/python/publishers_pb2.py | praveenv4k/Indriya | a74a4b8bb9f04b5e858305769e892edfcab32df5 | [
"MIT"
] | null | null | null | src/indriya_msgs/python/publishers_pb2.py | praveenv4k/Indriya | a74a4b8bb9f04b5e858305769e892edfcab32df5 | [
"MIT"
] | 1 | 2016-03-09T12:34:19.000Z | 2016-03-09T12:34:19.000Z | # Generated by the protocol buffer compiler. DO NOT EDIT!
# source: publishers.proto
import sys
_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1'))
from google.protobuf import descriptor as _descriptor
from google.protobuf import message as _message
from google.protobuf import reflection as _re... | 29 | 175 | 0.764289 |
ffb060d0e5b7c3dfaa78b810cca094ccf23c2192 | 3,260 | py | Python | gait/main.py | EveCharbie/BioptimPaperExamples | 89b7daea6686b8c008aa1f8e6d2700f9441231d8 | [
"MIT"
] | null | null | null | gait/main.py | EveCharbie/BioptimPaperExamples | 89b7daea6686b8c008aa1f8e6d2700f9441231d8 | [
"MIT"
] | null | null | null | gait/main.py | EveCharbie/BioptimPaperExamples | 89b7daea6686b8c008aa1f8e6d2700f9441231d8 | [
"MIT"
] | null | null | null | """
This is an example on gait biomechanics.
Experimental data (markers trajectories, ground reaction forces and moments) are tracked.
"""
from time import time
import numpy as np
import biorbd_casadi as biorbd
from bioptim import Solver, Shooting
from gait.load_experimental_data import LoadData
from gait.ocp import ... | 35.434783 | 117 | 0.649387 |
ffb097fafc4027156b5c25e9fce69b78ace72019 | 559 | py | Python | algorithms/bfs/bfs_graph_template.py | hariharanragothaman/pymaster | b3d033b4d5c75c69f587c94d9d12cd4a349a6a69 | [
"Apache-2.0"
] | 10 | 2020-09-21T22:23:09.000Z | 2022-01-25T16:58:44.000Z | algorithms/bfs/bfs_graph_template.py | hariharanragothaman/pymaster | b3d033b4d5c75c69f587c94d9d12cd4a349a6a69 | [
"Apache-2.0"
] | null | null | null | algorithms/bfs/bfs_graph_template.py | hariharanragothaman/pymaster | b3d033b4d5c75c69f587c94d9d12cd4a349a6a69 | [
"Apache-2.0"
] | null | null | null | def bfs(graph, start=0):
visited = [False] * len(graph)
visited[start] = True
q = [start]
for v in q:
for w in graph[v]:
if not visited[w]:
visited[w] = True
q.append(w)
def layers(graph, start=0):
visited = [False] * len(graph)
visited[star... | 21.5 | 34 | 0.456172 |
ffb0b835078c6267e1176066f43c939cde0f01a5 | 3,758 | py | Python | enrolment/tests/test_admin.py | konradko/directory-api | e9cd05b1deaf575e94352c46ddbd1857d8119fda | [
"MIT"
] | 1 | 2021-11-06T12:08:26.000Z | 2021-11-06T12:08:26.000Z | enrolment/tests/test_admin.py | konradko/directory-api | e9cd05b1deaf575e94352c46ddbd1857d8119fda | [
"MIT"
] | null | null | null | enrolment/tests/test_admin.py | konradko/directory-api | e9cd05b1deaf575e94352c46ddbd1857d8119fda | [
"MIT"
] | null | null | null | import csv
import pytest
import io
from django.contrib.auth.models import User
from django.core.urlresolvers import reverse
from django.test import Client
from enrolment.models import PreVerifiedEnrolment
@pytest.fixture()
def superuser():
return User.objects.create_superuser(
username='admin', email='a... | 32.119658 | 79 | 0.716871 |
ffb0c18e7fa21eb71ace5feaf7fdca8b415475d9 | 268 | py | Python | socialchoice/sharing/__main__.py | ashwinreddy/voting | 4a9ef46901ddad23e814d5744944463f6fd9ae83 | [
"MIT"
] | null | null | null | socialchoice/sharing/__main__.py | ashwinreddy/voting | 4a9ef46901ddad23e814d5744944463f6fd9ae83 | [
"MIT"
] | null | null | null | socialchoice/sharing/__main__.py | ashwinreddy/voting | 4a9ef46901ddad23e814d5744944463f6fd9ae83 | [
"MIT"
] | null | null | null | from . import bids
if __name__ == "__main__":
sealed_bids = [[352, 295, 395, 368, 324], [98, 102, 98, 95, 105], [460, 449, 510, 501, 476], [852, 825, 832, 817, 843], [513, 501, 505, 505, 491], [725, 738, 750, 744, 761]]
bids.SealedBids(sealed_bids).settlement | 53.6 | 177 | 0.615672 |
ffb0c49893b5c0f0ae77301e40dd4e1885644483 | 3,731 | py | Python | getl/blocks/write/batch_delta.py | husqvarnagroup/GETL | 37251abf12bac2efed1fe463b09a288d85969141 | [
"MIT"
] | 8 | 2020-06-10T09:00:17.000Z | 2021-06-07T18:02:19.000Z | getl/blocks/write/batch_delta.py | husqvarnagroup/GETL | 37251abf12bac2efed1fe463b09a288d85969141 | [
"MIT"
] | 5 | 2020-07-03T10:39:25.000Z | 2021-08-30T14:52:47.000Z | getl/blocks/write/batch_delta.py | husqvarnagroup/GETL | 37251abf12bac2efed1fe463b09a288d85969141 | [
"MIT"
] | 1 | 2020-05-28T07:53:48.000Z | 2020-05-28T07:53:48.000Z | """Module for writing files to s3 as delta files."""
from dataclasses import dataclass
from pyspark.sql import DataFrame, SparkSession
from pyspark.sql.utils import AnalysisException, ParseException
from getl.common.delta_table import DeltaTable
from getl.common.s3path import S3Path
from getl.logging import get_logge... | 38.463918 | 103 | 0.614044 |
ffb0c6d6595075937ca5e1fe5967f59a557690f2 | 7,155 | py | Python | installer/core/providers/aws/boto3/iam.py | Diffblue-benchmarks/pacbot | 4709eb11f87636bc42a52e7a76b740f9d76d156d | [
"Apache-2.0"
] | 1 | 2020-01-14T10:14:27.000Z | 2020-01-14T10:14:27.000Z | installer/core/providers/aws/boto3/iam.py | Diffblue-benchmarks/pacbot | 4709eb11f87636bc42a52e7a76b740f9d76d156d | [
"Apache-2.0"
] | 1 | 2020-01-14T10:14:30.000Z | 2020-01-14T10:14:30.000Z | installer/core/providers/aws/boto3/iam.py | Diffblue-benchmarks/pacbot | 4709eb11f87636bc42a52e7a76b740f9d76d156d | [
"Apache-2.0"
] | 1 | 2020-01-14T09:10:10.000Z | 2020-01-14T09:10:10.000Z | import boto3
def get_iam_client(access_key, secret_key):
"""
Returns the client object for AWS IAM
Args:
access_key (str): AWS Access Key
secret_key (str): AWS Secret Key
Returns:
obj: AWS IAM Object
"""
return boto3.client(
'iam',
aws_access_key_id=ac... | 28.392857 | 117 | 0.685674 |
ffb0d107c529d0dbd3fe54d9e9ab1d86b8718189 | 967 | py | Python | py/cidoc_crm_types/properties/p22_transferred_title_to.py | minorg/cidoc-crm-types | 9018bdbf0658e4d28a87bc94543e467be45d8aa5 | [
"Apache-2.0"
] | null | null | null | py/cidoc_crm_types/properties/p22_transferred_title_to.py | minorg/cidoc-crm-types | 9018bdbf0658e4d28a87bc94543e467be45d8aa5 | [
"Apache-2.0"
] | null | null | null | py/cidoc_crm_types/properties/p22_transferred_title_to.py | minorg/cidoc-crm-types | 9018bdbf0658e4d28a87bc94543e467be45d8aa5 | [
"Apache-2.0"
] | null | null | null | from .p14_carried_out_by import P14CarriedOutBy
from dataclasses import dataclass
@dataclass
class P22TransferredTitleTo(P14CarriedOutBy):
"""
Scope note:
This property identifies the instance of E39 Actor that acquires the legal ownership of an object as a result of an instance of E8 Acquisition.
The property w... | 35.814815 | 266 | 0.778697 |
ffb0e47ab865b13b5e4e4388a0fd528fad1e5734 | 157,819 | py | Python | pygsti/report/workspacetables.py | maij/pyGSTi | 70e83e05fa689f53550feb3914c4fac40ca4a943 | [
"Apache-2.0"
] | 73 | 2016-01-28T05:02:05.000Z | 2022-03-30T07:46:33.000Z | pygsti/report/workspacetables.py | 00mjk/pyGSTi | 4f8bf5337b01b7afcb7b0580b717b5d1fe281be4 | [
"Apache-2.0"
] | 113 | 2016-02-25T15:32:18.000Z | 2022-03-31T13:18:13.000Z | pygsti/report/workspacetables.py | 00mjk/pyGSTi | 4f8bf5337b01b7afcb7b0580b717b5d1fe281be4 | [
"Apache-2.0"
] | 41 | 2016-03-15T19:32:07.000Z | 2022-02-16T10:22:05.000Z | """
Classes corresponding to tables within a Workspace context.
"""
#***************************************************************************************************
# Copyright 2015, 2019 National Technology & Engineering Solutions of Sandia, LLC (NTESS).
# Under the terms of Contract DE-NA0003525 with NTESS, the U... | 42.676852 | 120 | 0.571604 |
ffb10e77da6ac373b0afbb333b04f37d864185d3 | 203 | py | Python | src/rolca/rating/apps.py | dblenkus/rolca | 033492d9b573b1dc65cb836579dff27c6e06c7a7 | [
"Apache-2.0"
] | null | null | null | src/rolca/rating/apps.py | dblenkus/rolca | 033492d9b573b1dc65cb836579dff27c6e06c7a7 | [
"Apache-2.0"
] | 12 | 2016-11-27T18:38:23.000Z | 2017-09-09T16:18:17.000Z | src/rolca/rating/apps.py | dblenkus/rolca | 033492d9b573b1dc65cb836579dff27c6e06c7a7 | [
"Apache-2.0"
] | null | null | null | """Application configuration."""
from django.apps import AppConfig
class RolcaRatingConfig(AppConfig):
"""Application configuration."""
name = 'rolca.rating'
verbose_name = "Rolca rating"
| 20.3 | 36 | 0.719212 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.