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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
1defe24feb19d85d13811aff07076b2d1e1e228d | 1,162 | py | Python | tools/perf/page_sets/system_health/system_health_stories.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/perf/page_sets/system_health/system_health_stories.py | Wzzzx/chromium-crosswalk | 768dde8efa71169f1c1113ca6ef322f1e8c9e7de | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | null | null | null | tools/perf/page_sets/system_health/system_health_stories.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 2016 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
from page_sets.system_health import single_page_stories
from telemetry import story
class _SystemHealthStorySet(story.StorySet):
"""User stories for the... | 32.277778 | 72 | 0.74957 |
1df0165e97262ad1b83622ce976e52111d78f115 | 1,928 | py | Python | tests/viewsets/buttons/related_model_test.py | intellineers/django-bridger | ed097984a99df7da40a4d01bd00c56e3c6083056 | [
"BSD-3-Clause"
] | 2 | 2020-03-17T00:53:23.000Z | 2020-07-16T07:00:33.000Z | tests/viewsets/buttons/related_model_test.py | intellineers/django-bridger | ed097984a99df7da40a4d01bd00c56e3c6083056 | [
"BSD-3-Clause"
] | 76 | 2019-12-05T01:15:57.000Z | 2021-09-07T16:47:27.000Z | tests/viewsets/buttons/related_model_test.py | intellineers/django-bridger | ed097984a99df7da40a4d01bd00c56e3c6083056 | [
"BSD-3-Clause"
] | 1 | 2020-02-05T15:09:47.000Z | 2020-02-05T15:09:47.000Z | from bridger import buttons as bt
from bridger import display as dp
from bridger.buttons.metadata_config import ButtonConfig
from tests.serializers import ActionButtonSerializer
class RelatedModelTestButtonConfig(ButtonConfig):
FSM_DROPDOWN = True
CUSTOM_INSTANCE_BUTTONS = CUSTOM_LIST_INSTANCE_BUTTONS = {
... | 35.054545 | 105 | 0.463174 |
1df049df745a1071105d62c028f5f0953532e42e | 2,059 | py | Python | src/array_processing.py | leckman/exocode | a88754b889687a268fb140282de1ce8e1b7c8992 | [
"MIT-0"
] | 1 | 2015-08-12T15:52:39.000Z | 2015-08-12T15:52:39.000Z | src/array_processing.py | leckman/exocode | a88754b889687a268fb140282de1ce8e1b7c8992 | [
"MIT-0"
] | null | null | null | src/array_processing.py | leckman/exocode | a88754b889687a268fb140282de1ce8e1b7c8992 | [
"MIT-0"
] | null | null | null | '''
Copyright (c) 2015, Laura Eckman
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, distribute, ... | 33.754098 | 77 | 0.674599 |
1df0534ec381bbafec1602cc04fbeb7b2f5fee3e | 78 | py | Python | src/olympia/ratings/__init__.py | shashwatsingh/addons-server | 8fce98901104349055a828b5a47865f5e8f4120b | [
"BSD-3-Clause"
] | 843 | 2016-02-09T13:00:37.000Z | 2022-03-20T19:17:06.000Z | src/olympia/ratings/__init__.py | shashwatsingh/addons-server | 8fce98901104349055a828b5a47865f5e8f4120b | [
"BSD-3-Clause"
] | 10,187 | 2016-02-05T23:51:05.000Z | 2022-03-31T15:24:44.000Z | src/olympia/ratings/__init__.py | shashwatsingh/addons-server | 8fce98901104349055a828b5a47865f5e8f4120b | [
"BSD-3-Clause"
] | 551 | 2016-02-08T20:32:16.000Z | 2022-03-15T16:49:24.000Z | REVIEW_MODERATE_KEEP = -1
REVIEW_MODERATE_SKIP = 0
REVIEW_MODERATE_DELETE = 1
| 19.5 | 26 | 0.833333 |
1df0d46b751377d032417b853460597056f69a4e | 12,685 | py | Python | archive/nexus-api-v2/.CI-CD/Interpreter.py | cloud-hybrid/delta | 402b00ed5aaa32ccef628361e9635879b7ace44f | [
"BSD-3-Clause"
] | null | null | null | archive/nexus-api-v2/.CI-CD/Interpreter.py | cloud-hybrid/delta | 402b00ed5aaa32ccef628361e9635879b7ace44f | [
"BSD-3-Clause"
] | null | null | null | archive/nexus-api-v2/.CI-CD/Interpreter.py | cloud-hybrid/delta | 402b00ed5aaa32ccef628361e9635879b7ace44f | [
"BSD-3-Clause"
] | 1 | 2022-01-03T05:33:15.000Z | 2022-01-03T05:33:15.000Z | #!/usr/bin/env python3
# -*- Coding: UTF-8 -*-
# -*- System: Linux -*-
# -*- Usage: *.* -*-
# Owner: Jacob B. Sanders
# Source: gitlab.cloud-technology.io
# License: BSD 3-Clause License
#
# Copyright 2021, Jacob B. Sanders - Cloud Hybrid LLC. & Affiliates
#
# Redistribution and use in source and binary for... | 34.470109 | 99 | 0.625857 |
1df0d48a472909e53190f92871eaad7caf9d7b9d | 41,102 | py | Python | core/domain/topic_services.py | yashdusing/oppia | c0218e13ba29f9bc25cc5ec6f7f13108ee4fdb9a | [
"Apache-2.0"
] | null | null | null | core/domain/topic_services.py | yashdusing/oppia | c0218e13ba29f9bc25cc5ec6f7f13108ee4fdb9a | [
"Apache-2.0"
] | 4 | 2019-08-15T10:49:21.000Z | 2022-03-02T05:10:20.000Z | core/domain/topic_services.py | grishamjindal/oppia | 3a29329a446e30b3b70641cf0286e23fad85418f | [
"Apache-2.0"
] | null | null | null | # coding: utf-8
#
# Copyright 2018 The Oppia Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless requi... | 39.107517 | 114 | 0.682935 |
1df0f076e8edaf914d87c670e4935a922c169ebf | 96 | py | Python | olive/devices/error/sensor.py | liuyenting/olive-core | b532b29e29fe9f167369f66b8d922f5f644f9309 | [
"Apache-2.0"
] | null | null | null | olive/devices/error/sensor.py | liuyenting/olive-core | b532b29e29fe9f167369f66b8d922f5f644f9309 | [
"Apache-2.0"
] | null | null | null | olive/devices/error/sensor.py | liuyenting/olive-core | b532b29e29fe9f167369f66b8d922f5f644f9309 | [
"Apache-2.0"
] | null | null | null | from .base import DeviceError
class SensorError(DeviceError):
"""Generic sensor error."""
| 16 | 31 | 0.729167 |
1df0ff6238e042600270a309dd943623839fc429 | 4,293 | py | Python | lambda_functions/analyzer/yara_analyzer.py | NextronSystems/binaryalert | 0bc4bff81496c560fdc9f84d7d12d7dc5d91f42f | [
"Apache-2.0"
] | 3 | 2021-02-25T23:27:41.000Z | 2022-02-26T16:44:27.000Z | lambda_functions/analyzer/yara_analyzer.py | NextronSystems/binaryalert | 0bc4bff81496c560fdc9f84d7d12d7dc5d91f42f | [
"Apache-2.0"
] | 3 | 2021-03-20T05:48:25.000Z | 2021-06-02T04:07:29.000Z | lambda_functions/analyzer/yara_analyzer.py | NextronSystems/binaryalert | 0bc4bff81496c560fdc9f84d7d12d7dc5d91f42f | [
"Apache-2.0"
] | 7 | 2021-05-06T18:28:25.000Z | 2022-02-25T23:49:45.000Z | """Wrapper around YARA analysis."""
import collections
import re
import requests
import subprocess
from typing import List
from lambda_functions.analyzer.common import LOGGER
# YARA matches from both yara-python and yextend are stored in this generic YaraMatch tuple.
YaraMatch = collections.namedtuple(
'YaraMatch... | 42.93 | 139 | 0.560447 |
1df10481d765fe39174640d9522c9fa9357bafa2 | 261 | py | Python | pni_customization/pni_customization/doctype/local_slip/local_slip.py | DaizyModi/pni_customization | 577946e91c8fe956ca64c089327ce18174002ec4 | [
"MIT"
] | null | null | null | pni_customization/pni_customization/doctype/local_slip/local_slip.py | DaizyModi/pni_customization | 577946e91c8fe956ca64c089327ce18174002ec4 | [
"MIT"
] | null | null | null | pni_customization/pni_customization/doctype/local_slip/local_slip.py | DaizyModi/pni_customization | 577946e91c8fe956ca64c089327ce18174002ec4 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
# Copyright (c) 2021, Jigar Tarpara and contributors
# For license information, please see license.txt
from __future__ import unicode_literals
# import frappe
from frappe.model.document import Document
class LocalSlip(Document):
pass
| 23.727273 | 52 | 0.773946 |
1df114f79b825277d978d5267493cdd510d9a536 | 5,207 | py | Python | tests/integration/crud/simple/chunks/test_chunks.py | HarshCasper/jina | 81ab098b140b74ad1cfdfde9218cec7a40923749 | [
"Apache-2.0"
] | 1 | 2021-02-25T19:28:50.000Z | 2021-02-25T19:28:50.000Z | tests/integration/crud/simple/chunks/test_chunks.py | HarshCasper/jina | 81ab098b140b74ad1cfdfde9218cec7a40923749 | [
"Apache-2.0"
] | 1 | 2021-02-27T05:56:45.000Z | 2021-02-27T05:57:03.000Z | tests/integration/crud/simple/chunks/test_chunks.py | deepampatel/jina | 97f9e97a4a678a28bdeacbc7346eaf7bbd2aeb89 | [
"Apache-2.0"
] | null | null | null | import os
import random
from pathlib import Path
import numpy as np
import pytest
from jina import Document
from jina.executors.indexers import BaseIndexer
from jina.flow import Flow
TOP_K = 10
@pytest.fixture
def config(tmpdir):
random.seed(0)
np.random.seed(0)
os.environ['JINA_CRUD_CHUNKS'] = str(tmp... | 33.811688 | 94 | 0.65508 |
1df13c599b949611e46f4ada922fbb3df2e525ba | 1,714 | py | Python | pygarl/examples/gesture_keyboard.py | federico-terzi/pygarl | 0b8d8732b1fd3ed2df8a4eafb001a8362c764b30 | [
"Apache-2.0"
] | 10 | 2017-07-17T10:35:38.000Z | 2021-03-23T19:24:06.000Z | pygarl/examples/gesture_keyboard.py | shikharucer/pygarl | ad79163245f43cfbdbaba77a8f906b5a4f3e6b3b | [
"Apache-2.0"
] | 3 | 2018-10-08T06:12:10.000Z | 2019-11-12T03:38:12.000Z | pygarl/examples/gesture_keyboard.py | shikharucer/pygarl | ad79163245f43cfbdbaba77a8f906b5a4f3e6b3b | [
"Apache-2.0"
] | 6 | 2019-01-26T11:59:59.000Z | 2020-12-20T15:58:31.000Z | from pygarl.base import CallbackManager
from pygarl.classifiers import SVMClassifier
from pygarl.mocks import VerboseMiddleware
from pygarl.data_readers import SerialDataReader
from pygarl.predictors import ClassifierPredictor
from pygarl.sample_managers import DiscreteSampleManager
from string import ascii_lowercase
i... | 26.78125 | 74 | 0.742124 |
1df16dd8e8b3ff5a46ab1a895227663fda1305c8 | 110,082 | py | Python | ibm_botocore/credentials.py | Bhaskers-Blu-Org1/ibm-cos-sdk-python-core | dbd5dd4b6362724f068648fad7a6771e20bf994f | [
"Apache-2.0"
] | null | null | null | ibm_botocore/credentials.py | Bhaskers-Blu-Org1/ibm-cos-sdk-python-core | dbd5dd4b6362724f068648fad7a6771e20bf994f | [
"Apache-2.0"
] | null | null | null | ibm_botocore/credentials.py | Bhaskers-Blu-Org1/ibm-cos-sdk-python-core | dbd5dd4b6362724f068648fad7a6771e20bf994f | [
"Apache-2.0"
] | 1 | 2020-07-30T09:21:09.000Z | 2020-07-30T09:21:09.000Z | # Copyright (c) 2012-2013 Mitch Garnaat http://garnaat.org/
# Copyright 2012-2014 Amazon.com, Inc. or its affiliates. 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. A copy of
# the License is located at
#
# http... | 40.029818 | 147 | 0.625952 |
1df188c4bd6695ad6b253206f935a9e3dec05a2e | 1,422 | py | Python | config/settings/test.py | mrsaemir/the_millionaire | 3fe2c9c114b43648b1c2e039589733bbf778b7f6 | [
"MIT"
] | null | null | null | config/settings/test.py | mrsaemir/the_millionaire | 3fe2c9c114b43648b1c2e039589733bbf778b7f6 | [
"MIT"
] | null | null | null | config/settings/test.py | mrsaemir/the_millionaire | 3fe2c9c114b43648b1c2e039589733bbf778b7f6 | [
"MIT"
] | null | null | null | """
With these settings, tests run faster.
"""
from .base import * # noqa
from .base import env
# GENERAL
# ------------------------------------------------------------------------------
# https://docs.djangoproject.com/en/dev/ref/settings/#secret-key
SECRET_KEY = env(
"DJANGO_SECRET_KEY",
default="mYqH92pwl... | 33.857143 | 80 | 0.510549 |
1df1ae7947fff5214c637a93d005627c52d0e27c | 2,685 | py | Python | sdk/dataprotection/azure-mgmt-dataprotection/setup.py | vincenttran-msft/azure-sdk-for-python | 348b56f9f03eeb3f7b502eed51daf494ffff874d | [
"MIT"
] | 1 | 2022-03-09T08:59:13.000Z | 2022-03-09T08:59:13.000Z | sdk/dataprotection/azure-mgmt-dataprotection/setup.py | vincenttran-msft/azure-sdk-for-python | 348b56f9f03eeb3f7b502eed51daf494ffff874d | [
"MIT"
] | null | null | null | sdk/dataprotection/azure-mgmt-dataprotection/setup.py | vincenttran-msft/azure-sdk-for-python | 348b56f9f03eeb3f7b502eed51daf494ffff874d | [
"MIT"
] | null | null | null | #!/usr/bin/env python
#-------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for
# license information.
#----------------------------------------------------------------... | 35.8 | 103 | 0.611173 |
1df1c0a8a7eab09cb05845fc091f77fece06f8c9 | 942 | py | Python | src/djshop/apps/store/migrations/0002_auto_20161204_2335.py | diegojromerolopez/djshop | 3fe623532228006e96269bd0f21c7b7d380c3a1a | [
"MIT"
] | null | null | null | src/djshop/apps/store/migrations/0002_auto_20161204_2335.py | diegojromerolopez/djshop | 3fe623532228006e96269bd0f21c7b7d380c3a1a | [
"MIT"
] | 1 | 2017-05-08T17:05:00.000Z | 2018-04-04T11:55:30.000Z | src/djshop/apps/store/migrations/0002_auto_20161204_2335.py | diegojromerolopez/djshop | 3fe623532228006e96269bd0f21c7b7d380c3a1a | [
"MIT"
] | 2 | 2017-04-25T10:32:57.000Z | 2020-05-04T16:12:08.000Z | # -*- coding: utf-8 -*-
# Generated by Django 1.10 on 2016-12-04 23:35
from __future__ import unicode_literals
from django.db import migrations
def default_serving_sizes(apps, schema_editor):
ServingSize = apps.get_model("store", "ServingSize")
for weight in [25, 100, 500, 1000, 1500, 2000]:
serving_... | 28.545455 | 78 | 0.696391 |
1df1c89adf158c275e5cc9aa3c2a137b64c83938 | 989 | py | Python | test/python/LIM2Metrics/py2/base/common/AbstractFactory/AbstractFactory.py | sagodiz/SonarQube-plug-in | 4f8e111baecc4c9f9eaa5cd3d7ebeb1e365ace2c | [
"BSD-4-Clause"
] | 20 | 2015-06-16T17:39:10.000Z | 2022-03-20T22:39:40.000Z | test/python/LIM2Metrics/py2/base/common/AbstractFactory/AbstractFactory.py | sagodiz/SonarQube-plug-in | 4f8e111baecc4c9f9eaa5cd3d7ebeb1e365ace2c | [
"BSD-4-Clause"
] | 29 | 2015-12-29T19:07:22.000Z | 2022-03-22T10:39:02.000Z | test/python/LIM2Metrics/py2/base/common/AbstractFactory/AbstractFactory.py | sagodiz/SonarQube-plug-in | 4f8e111baecc4c9f9eaa5cd3d7ebeb1e365ace2c | [
"BSD-4-Clause"
] | 12 | 2015-08-28T01:22:18.000Z | 2021-09-25T08:17:31.000Z | #!/usr/bin/python
#-*- coding: utf-8 -*-
class button:
"""Root class of GUI button."""
def paint(self):
pass
class button_win (button):
def paint(self):
print 'A Windows button!'
class button_x (button):
def paint(self):
print 'An X button!'
class gui_factory:
def cre... | 21.5 | 48 | 0.596562 |
1df1dd4de291d0b820452d909d5a9a61e9fc97b3 | 952 | py | Python | examples/pylab_examples/coords_demo.py | yuvallanger/matplotlib | e0020d318a9a9685594c6bff4631f74599321459 | [
"MIT",
"BSD-3-Clause"
] | 8 | 2017-04-11T08:55:30.000Z | 2022-03-25T04:31:26.000Z | examples/pylab_examples/coords_demo.py | epgauss/matplotlib | c9898ea9a30c67c579ab27cd61b68e2abae0fb0e | [
"MIT",
"BSD-3-Clause"
] | null | null | null | examples/pylab_examples/coords_demo.py | epgauss/matplotlib | c9898ea9a30c67c579ab27cd61b68e2abae0fb0e | [
"MIT",
"BSD-3-Clause"
] | 14 | 2015-10-05T04:15:46.000Z | 2020-06-11T18:06:02.000Z | #!/usr/bin/env python
"""
An example of how to interact with the plotting canvas by connecting
to move and click events
"""
from __future__ import print_function
import sys
from pylab import *
t = arange(0.0, 1.0, 0.01)
s = sin(2*pi*t)
fig, ax = plt.subplots()
ax.plot(t,s)
def on_move(event):
# get the x and y ... | 23.219512 | 68 | 0.665966 |
1df20dccd8eb759eb8f4c889c1ec07df6a045311 | 8,595 | py | Python | croupier_plugin/tests/unit/torque_tests.py | ari-apc-lab/croupier | cfffa81df64898abb837da23921f7fa614033e85 | [
"Apache-2.0"
] | 5 | 2019-03-21T15:32:40.000Z | 2022-02-16T09:16:06.000Z | croupier_plugin/tests/unit/torque_tests.py | ari-apc-lab/croupier | cfffa81df64898abb837da23921f7fa614033e85 | [
"Apache-2.0"
] | 25 | 2021-05-13T09:24:31.000Z | 2022-03-03T16:20:38.000Z | croupier_plugin/tests/unit/torque_tests.py | ari-apc-lab/croupier | cfffa81df64898abb837da23921f7fa614033e85 | [
"Apache-2.0"
] | 3 | 2019-07-08T13:55:40.000Z | 2021-05-20T13:13:22.000Z | """
Copyright (c) 2019 HLRS. All rights reserved.
This file is part of Croupier.
Croupier is free software: you can redistribute it and/or modify it
under the terms of the Apache License, Version 2.0 (the License) License.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT ANY WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUD... | 35.081633 | 80 | 0.53438 |
1df20f5d5806070fd55002fd1c63020ea5978e68 | 832 | py | Python | HM_2/Ex1_2.py | NaychukAnastasiya/goiteens-python3-naychuk | a79d0af238a15f58a822bb5d8e4d48227d4a7bc1 | [
"MIT"
] | null | null | null | HM_2/Ex1_2.py | NaychukAnastasiya/goiteens-python3-naychuk | a79d0af238a15f58a822bb5d8e4d48227d4a7bc1 | [
"MIT"
] | null | null | null | HM_2/Ex1_2.py | NaychukAnastasiya/goiteens-python3-naychuk | a79d0af238a15f58a822bb5d8e4d48227d4a7bc1 | [
"MIT"
] | null | null | null |
# 2. В змінні з іменем президентів записано кількість їхніх термінів на посту.
# Вивести на консоль кількість років їхнього президентства для кожного окремо.
# George_Washington = 2
# Thomas_Jefferson = 2
# Herbert_Hoover = 1
# Barack_Obama = 2
president_termin = 4 #years
George_Washington = 2 #termins
... | 39.619048 | 109 | 0.768029 |
1df21f0d3ead0796743251b2b1e9d19e29d0c403 | 158 | py | Python | pyclopedia/p03_stdlib/_internet_data_handling/__init__.py | MacHu-GWU/pyclopedia-project | c6ee156eb40bc5a4ac5f51aa735b6fd004cb68ee | [
"MIT"
] | null | null | null | pyclopedia/p03_stdlib/_internet_data_handling/__init__.py | MacHu-GWU/pyclopedia-project | c6ee156eb40bc5a4ac5f51aa735b6fd004cb68ee | [
"MIT"
] | null | null | null | pyclopedia/p03_stdlib/_internet_data_handling/__init__.py | MacHu-GWU/pyclopedia-project | c6ee156eb40bc5a4ac5f51aa735b6fd004cb68ee | [
"MIT"
] | null | null | null | #!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
Internet Data Handling
===============================================================================
"""
| 19.75 | 79 | 0.28481 |
1df22bf07bc8e050c532e0676d6a86a4a0d1eba9 | 187 | py | Python | maps/mesa/mesa.py | 56kyle/bloons_auto | 419d55b51d1cddc49099593970adf1c67985b389 | [
"MIT"
] | null | null | null | maps/mesa/mesa.py | 56kyle/bloons_auto | 419d55b51d1cddc49099593970adf1c67985b389 | [
"MIT"
] | null | null | null | maps/mesa/mesa.py | 56kyle/bloons_auto | 419d55b51d1cddc49099593970adf1c67985b389 | [
"MIT"
] | null | null | null | from map import Map
class Mesa(Map):
def __init__(self, *args, **kwargs):
super().__init__(*args, **kwargs)
self.name = 'mesa'
self.difficulty = 'advanced'
| 18.7 | 41 | 0.588235 |
1df242918699c388954a94ddb8af5fd901b90af6 | 1,196 | py | Python | viber_command_bot/config.py | tklikifi/viber-command-bot | 41ae43a8d9d22052201c422f6e84bfe56455110d | [
"MIT"
] | 3 | 2018-08-26T20:00:34.000Z | 2021-06-27T08:34:33.000Z | viber_command_bot/config.py | tklikifi/viber-command-bot | 41ae43a8d9d22052201c422f6e84bfe56455110d | [
"MIT"
] | null | null | null | viber_command_bot/config.py | tklikifi/viber-command-bot | 41ae43a8d9d22052201c422f6e84bfe56455110d | [
"MIT"
] | null | null | null | """
Viber bot configuration parsing
"""
import configparser
import os
import sys
class ParseError(Exception):
"""
Error found during bot configuration parsing.
"""
pass
def parse(file_path):
"""
Parse bot configuration file.
:param file_path: path to the configuration file
:return:... | 23.92 | 78 | 0.661371 |
1df25a06566d60b3bbac66ed4cb4f3ac78f3b027 | 3,693 | py | Python | topi/python/topi/vision/rcnn/proposal.py | mingwayzhang/tvm | 3b287c4d4e6d83e6fd30db47ffa3d5481a332a63 | [
"Apache-2.0"
] | 48 | 2020-07-29T18:09:23.000Z | 2021-10-09T01:53:33.000Z | topi/python/topi/vision/rcnn/proposal.py | mingwayzhang/tvm | 3b287c4d4e6d83e6fd30db47ffa3d5481a332a63 | [
"Apache-2.0"
] | 9 | 2021-04-02T02:28:07.000Z | 2022-03-26T18:23:59.000Z | topi/python/topi/vision/rcnn/proposal.py | mingwayzhang/tvm | 3b287c4d4e6d83e6fd30db47ffa3d5481a332a63 | [
"Apache-2.0"
] | 42 | 2020-08-01T06:41:24.000Z | 2022-01-20T10:33:08.000Z | # Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not u... | 32.681416 | 98 | 0.651503 |
1df260499f199bef260666aaf64ed248bdcd7301 | 3,807 | py | Python | hidimstat/knockoffs/stat_coef_diff.py | agramfort/hidimstat | b96e7ac5cc8523a37b20936cfc3625ded35aef24 | [
"BSD-2-Clause"
] | null | null | null | hidimstat/knockoffs/stat_coef_diff.py | agramfort/hidimstat | b96e7ac5cc8523a37b20936cfc3625ded35aef24 | [
"BSD-2-Clause"
] | null | null | null | hidimstat/knockoffs/stat_coef_diff.py | agramfort/hidimstat | b96e7ac5cc8523a37b20936cfc3625ded35aef24 | [
"BSD-2-Clause"
] | null | null | null | # -*- coding: utf-8 -*-
# Authors: Binh Nguyen <tuan-binh.nguyen@inria.fr>
import numpy as np
from sklearn.linear_model import (ElasticNetCV, LassoCV, LogisticRegressionCV,
RidgeCV)
from sklearn.linear_model._coordinate_descent import _alpha_grid
from sklearn.model_selection import Gr... | 29.742188 | 78 | 0.627003 |
1df261a4970407e81097a00ce23b51515a7c1729 | 2,147 | py | Python | tests/misc_tests/test_observable.py | dpazel/music_rep | 2f9de9b98b13df98f1a0a2120b84714725ce527e | [
"MIT"
] | 1 | 2021-05-06T19:45:54.000Z | 2021-05-06T19:45:54.000Z | tests/misc_tests/test_observable.py | dpazel/music_rep | 2f9de9b98b13df98f1a0a2120b84714725ce527e | [
"MIT"
] | null | null | null | tests/misc_tests/test_observable.py | dpazel/music_rep | 2f9de9b98b13df98f1a0a2120b84714725ce527e | [
"MIT"
] | null | null | null | import unittest
from misc.observable import Observable
from misc.observer import Observer
class MyObservable(Observable):
COUNT_UPDATE = 35
COUNT_UPDATE_MSG = 'Count Update'
def __init__(self, name, count):
Observable.__init__(self)
self.__name = name
self.__count = count
... | 23.593407 | 106 | 0.576619 |
1df2e57fdf3038833d72007fcc7d65f405b76131 | 1,892 | py | Python | scandeval/benchmarks/ndt_nb_dep.py | NbAiLab/ScandEval | 59eb1902a1880d7483d48a4ee213bbec0e2eb71a | [
"MIT"
] | 10 | 2021-07-21T10:47:42.000Z | 2022-03-03T13:45:25.000Z | scandeval/benchmarks/ndt_nb_dep.py | NbAiLab/ScandEval | 59eb1902a1880d7483d48a4ee213bbec0e2eb71a | [
"MIT"
] | 28 | 2021-07-29T12:21:15.000Z | 2022-03-09T12:46:49.000Z | scandeval/benchmarks/ndt_nb_dep.py | NbAiLab/ScandEval | 59eb1902a1880d7483d48a4ee213bbec0e2eb71a | [
"MIT"
] | 4 | 2022-01-17T12:11:58.000Z | 2022-03-14T18:42:01.000Z | '''Dependency parsing evaluation of a language model on the NDT-NB dataset'''
import logging
from .abstract import DepBenchmark
logger = logging.getLogger(__name__)
class NdtNBDepBenchmark(DepBenchmark):
'''Benchmark of language models on the dependency parsing part of DDT-NB.
Args:
cache_dir (st... | 40.255319 | 78 | 0.639006 |
1df2e6ad3bd404c0cc6aa2f45390673758ebb36b | 6,366 | py | Python | tensorflow_model_analysis/extractors/tflite_predict_extractor_test.py | pfyang/model-analysis | cc7d75c1bf588123795511572e1b4445d9a52191 | [
"Apache-2.0"
] | 1 | 2021-05-10T10:54:09.000Z | 2021-05-10T10:54:09.000Z | tensorflow_model_analysis/extractors/tflite_predict_extractor_test.py | Saiprasad16/model-analysis | 1617375dd35e72447653e54330484c3a2950e4c6 | [
"Apache-2.0"
] | null | null | null | tensorflow_model_analysis/extractors/tflite_predict_extractor_test.py | Saiprasad16/model-analysis | 1617375dd35e72447653e54330484c3a2950e4c6 | [
"Apache-2.0"
] | null | null | null | # Lint as: python3
# Copyright 2020 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# https://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agr... | 37.011628 | 80 | 0.663839 |
1df2ee6f8ed438ad38f08f6d1a651621d303011c | 3,330 | py | Python | test/acceptance/tools/glance_request.py | FIWARE/cloud.PaaS | 3ddec91c2b0ef3baca1dd2e596373cf0d4d341e3 | [
"Apache-2.0"
] | null | null | null | test/acceptance/tools/glance_request.py | FIWARE/cloud.PaaS | 3ddec91c2b0ef3baca1dd2e596373cf0d4d341e3 | [
"Apache-2.0"
] | null | null | null | test/acceptance/tools/glance_request.py | FIWARE/cloud.PaaS | 3ddec91c2b0ef3baca1dd2e596373cf0d4d341e3 | [
"Apache-2.0"
] | 2 | 2016-08-22T16:03:25.000Z | 2018-03-05T23:28:55.000Z | # -*- coding: utf-8 -*-
# Copyright 2014 Telefonica Investigación y Desarrollo, S.A.U
#
# This file is part of FI-WARE project.
#
# 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:
#
# h... | 32.019231 | 114 | 0.641441 |
1df31fc80ce3f8adff7692c7b6bae34768a2ae9d | 211,170 | py | Python | distributed/tests/test_client.py | vepadulano/distributed | 1da51994cc84c0897589a4476cd24073147054b6 | [
"BSD-3-Clause"
] | null | null | null | distributed/tests/test_client.py | vepadulano/distributed | 1da51994cc84c0897589a4476cd24073147054b6 | [
"BSD-3-Clause"
] | null | null | null | distributed/tests/test_client.py | vepadulano/distributed | 1da51994cc84c0897589a4476cd24073147054b6 | [
"BSD-3-Clause"
] | null | null | null | from __future__ import annotations
import asyncio
import functools
import gc
import inspect
import logging
import os
import pickle
import random
import subprocess
import sys
import threading
import traceback
import types
import warnings
import weakref
import zipfile
from collections import deque
from collections.abc i... | 28.152246 | 100 | 0.61889 |
1df34b7a668ef092e5472532a0f6e27f4fa3ae1d | 49,581 | py | Python | hashicorp_vault_client/hashicorp_vault_client/api/secrets_api.py | drewmullen/HAC | fb185804fd244366f8f8d01df22835b3d96e7512 | [
"Apache-2.0"
] | null | null | null | hashicorp_vault_client/hashicorp_vault_client/api/secrets_api.py | drewmullen/HAC | fb185804fd244366f8f8d01df22835b3d96e7512 | [
"Apache-2.0"
] | 2 | 2019-09-30T20:56:41.000Z | 2019-10-02T00:22:07.000Z | hashicorp_vault_client/hashicorp_vault_client/api/secrets_api.py | drewmullen/HAC | fb185804fd244366f8f8d01df22835b3d96e7512 | [
"Apache-2.0"
] | null | null | null | # coding: utf-8
"""
HashiCorp Vault API
HTTP API that gives you full access to Vault. All API routes are prefixed with `/v1/`. # noqa: E501
OpenAPI spec version: 1.2.0
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
from __future__ import absolute_import
import re # noqa... | 37.561364 | 122 | 0.595248 |
1df36718542faaa3a0a05ab242b2f2c8c860b319 | 1,004 | py | Python | python_scripts/vacuum_custom_clean.py | aneisch/home-assistant | d8a866d75f512d23ffa7b9e5d82d7c575ece3c76 | [
"Apache-2.0"
] | 18 | 2016-08-10T01:02:27.000Z | 2017-10-26T04:19:49.000Z | python_scripts/vacuum_custom_clean.py | aneisch/home-assistant | d8a866d75f512d23ffa7b9e5d82d7c575ece3c76 | [
"Apache-2.0"
] | null | null | null | python_scripts/vacuum_custom_clean.py | aneisch/home-assistant | d8a866d75f512d23ffa7b9e5d82d7c575ece3c76 | [
"Apache-2.0"
] | 4 | 2017-04-20T19:41:21.000Z | 2017-05-16T17:10:05.000Z | """
Take input from a number of input_select and then tell Roborock to clean those rooms
miiocli vacuum --ip 10.0.0.10 --token $(cat ~/homeassistant/secrets.yaml | grep -F roborock_token | awk ' {print $2 }') get_room_mapping
OR use sensor.roborock_current_room attribute "room_number" to get rooms
"""
rooms = {'Dini... | 43.652174 | 222 | 0.7251 |
1df375f53b8810f47ec870ab35fcd6e7ae776859 | 901 | py | Python | lang/python/web.py.example/todolist/todo.py | liuyang1/test | a4560e0c9ffd0bc054d55bbcf12a894ab5b7d417 | [
"MIT"
] | 8 | 2015-06-07T13:25:48.000Z | 2022-03-22T23:14:50.000Z | lang/python/web.py.example/todolist/todo.py | liuyang1/test | a4560e0c9ffd0bc054d55bbcf12a894ab5b7d417 | [
"MIT"
] | 30 | 2016-01-29T01:36:41.000Z | 2018-09-19T07:01:22.000Z | lang/python/web.py.example/todolist/todo.py | liuyang1/test | a4560e0c9ffd0bc054d55bbcf12a894ab5b7d417 | [
"MIT"
] | null | null | null | import web
import model
urls = (
'/', 'Index',
'/del/(\d+)', 'Delete'
)
render = web.template.render('templates', base='base')
class Index:
form = web.form.Form(
web.form.Textbox('title', web.form.notnull,
description='i need to:'),
web.form.Button(... | 23.102564 | 55 | 0.533851 |
1df39acf8ba898eb6360613e815435906cf23221 | 24,969 | py | Python | recognition/ArcFace/triplet_image_iter.py | dwhite54/insightface | ea172e4921c3960c0684404afff6d0d862447eae | [
"MIT"
] | 12,377 | 2017-12-04T02:46:57.000Z | 2022-03-31T16:48:31.000Z | recognition/ArcFace/triplet_image_iter.py | dwhite54/insightface | ea172e4921c3960c0684404afff6d0d862447eae | [
"MIT"
] | 1,851 | 2017-12-05T05:41:23.000Z | 2022-03-30T13:06:22.000Z | recognition/ArcFace/triplet_image_iter.py | dwhite54/insightface | ea172e4921c3960c0684404afff6d0d862447eae | [
"MIT"
] | 4,198 | 2017-12-05T02:57:19.000Z | 2022-03-30T10:29:37.000Z | # THIS FILE IS FOR EXPERIMENTS, USE image_iter.py FOR NORMAL IMAGE LOADING.
from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
import os
import random
import logging
import sys
import numbers
import math
import sklearn
import datetime
import numpy as np
import ... | 39.696343 | 151 | 0.51652 |
1df4099d1b13c7ad22c750bd07f56e721a5af5e2 | 1,373 | py | Python | kafka-utils/src/bai_kafka_utils/utils.py | gavinmbell/benchmark-ai-1 | a697e67d68b843fe9350e55871dad867bab5d51d | [
"Apache-2.0"
] | 6 | 2020-09-29T09:03:04.000Z | 2022-03-14T06:52:25.000Z | kafka-utils/src/bai_kafka_utils/utils.py | gavinmbell/benchmark-ai-1 | a697e67d68b843fe9350e55871dad867bab5d51d | [
"Apache-2.0"
] | null | null | null | kafka-utils/src/bai_kafka_utils/utils.py | gavinmbell/benchmark-ai-1 | a697e67d68b843fe9350e55871dad867bab5d51d | [
"Apache-2.0"
] | 4 | 2020-10-01T07:49:22.000Z | 2021-06-16T19:44:12.000Z | # Copyright 2019 Amazon.com, Inc. or its affiliates. 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.
# A copy of the License is located at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# or in the "l... | 28.020408 | 76 | 0.744355 |
1df40a024d740d0f8e102dfbf77f05bb7c6448d0 | 4,472 | py | Python | bark_ml/library_wrappers/lib_tf_agents/runners/sac_runner.py | GAIL-4-BARK/bark-ml | c61c897842c2184ee842428e451bae3be2cd7242 | [
"MIT"
] | null | null | null | bark_ml/library_wrappers/lib_tf_agents/runners/sac_runner.py | GAIL-4-BARK/bark-ml | c61c897842c2184ee842428e451bae3be2cd7242 | [
"MIT"
] | 24 | 2020-05-05T13:53:17.000Z | 2020-08-13T15:58:51.000Z | bark_ml/library_wrappers/lib_tf_agents/runners/sac_runner.py | Brucknem/bark-ml | c61c897842c2184ee842428e451bae3be2cd7242 | [
"MIT"
] | null | null | null | import sys
import logging
import time
import tensorflow as tf
import numpy as np
tf.compat.v1.enable_v2_behavior()
# BARK imports
from bark.runtime.commons.parameters import ParameterServer
from bark_ml.core.observers import NearestObserver
# tf agent imports
from tf_agents.drivers import dynamic_step_driver
from tf_... | 34.4 | 113 | 0.677102 |
1df41a91c3fba54f95e61a803c57df3fbb2ddaae | 5,228 | py | Python | server_common/test_modules/test_channel_access.py | ISISComputingGroup/EPICS-inst_servers | 056fed778ebd1190421e06b9ac9c8a0bdae0d317 | [
"BSD-3-Clause"
] | 1 | 2020-08-20T23:38:53.000Z | 2020-08-20T23:38:53.000Z | server_common/test_modules/test_channel_access.py | ISISComputingGroup/EPICS-inst_servers | 056fed778ebd1190421e06b9ac9c8a0bdae0d317 | [
"BSD-3-Clause"
] | 88 | 2015-09-03T11:50:41.000Z | 2021-02-18T19:13:04.000Z | server_common/test_modules/test_channel_access.py | ISISComputingGroup/EPICS-inst_servers | 056fed778ebd1190421e06b9ac9c8a0bdae0d317 | [
"BSD-3-Clause"
] | 1 | 2020-08-20T23:38:05.000Z | 2020-08-20T23:38:05.000Z | import threading
import time
import unittest
from six.moves.queue import Queue, Empty
from concurrent.futures import wait
from mock import Mock, patch
from hamcrest import *
import server_common
from server_common.channel_access import ChannelAccess, NUMBER_OF_CAPUT_THREADS, maximum_severity, AlarmSeverity, \
Al... | 37.884058 | 119 | 0.698164 |
1df44ed20dcb88e0249abb3ac7dd9e9fb223de8d | 281 | py | Python | tolqc-api/app/main/swagger/library_type.py | sanger-tol/tolqc | 6ef535a0eb0028c5d9270ff18d95d38c6656cbdd | [
"MIT"
] | null | null | null | tolqc-api/app/main/swagger/library_type.py | sanger-tol/tolqc | 6ef535a0eb0028c5d9270ff18d95d38c6656cbdd | [
"MIT"
] | null | null | null | tolqc-api/app/main/swagger/library_type.py | sanger-tol/tolqc | 6ef535a0eb0028c5d9270ff18d95d38c6656cbdd | [
"MIT"
] | null | null | null | # SPDX-FileCopyrightText: 2021 Genome Research Ltd.
#
# SPDX-License-Identifier: MIT
from main.schema import LibraryTypeSchema
from .base import BaseSwagger, setup_swagger
@setup_swagger
class LibraryTypeSwagger(BaseSwagger):
class Meta:
schema = LibraryTypeSchema
| 20.071429 | 51 | 0.782918 |
1df45d605b5501ba626fa2d06067d92ab74f813b | 5,901 | py | Python | HRI/TFVT_HRI/scripts/collect_v2_data.py | WorldEditors/PaddleRobotics | d02efd74662c6f78dfb964e8beb93f1914dcb2f3 | [
"Apache-2.0"
] | 146 | 2020-12-08T11:51:38.000Z | 2022-03-23T12:58:43.000Z | HRI/TFVT_HRI/scripts/collect_v2_data.py | WorldEditors/PaddleRobotics | d02efd74662c6f78dfb964e8beb93f1914dcb2f3 | [
"Apache-2.0"
] | 10 | 2020-12-23T03:00:31.000Z | 2022-03-23T09:55:30.000Z | HRI/TFVT_HRI/scripts/collect_v2_data.py | WorldEditors/PaddleRobotics | d02efd74662c6f78dfb964e8beb93f1914dcb2f3 | [
"Apache-2.0"
] | 43 | 2020-12-21T09:40:39.000Z | 2022-03-31T06:41:32.000Z | import os
import sys
import cv2
import glob
import pickle
import argparse
import numpy as np
from moviepy.editor import VideoFileClip
sys.path.append(
os.path.realpath(os.path.join(os.path.dirname(__file__), '..')))
from perception.common.video import VideoWriter, convert_to_h264
def parse_args():
parser = a... | 35.981707 | 76 | 0.570073 |
1df4695259c391d943ddb55e44129062be64d81d | 32,578 | py | Python | build_tool.py | khadas/android_external_toolchain-utils | 3690e025de8daaed03c4acb02d2b054e5c4c0dd5 | [
"BSD-3-Clause"
] | null | null | null | build_tool.py | khadas/android_external_toolchain-utils | 3690e025de8daaed03c4acb02d2b054e5c4c0dd5 | [
"BSD-3-Clause"
] | null | null | null | build_tool.py | khadas/android_external_toolchain-utils | 3690e025de8daaed03c4acb02d2b054e5c4c0dd5 | [
"BSD-3-Clause"
] | null | null | null | #!/usr/bin/python2
"""Script to bootstrap the chroot using new toolchain.
This script allows you to build/install a customized version of gcc/binutils,
either by specifying branch or a local directory.
This script must be executed outside chroot.
Below is some typical usage -
## Build gcc located at /local/gcc/dir ... | 38.147541 | 80 | 0.600712 |
1df4a959e0058b7effda3d8c9d673ff914e4400f | 5,912 | py | Python | tekstovni_vmesnik.py | matejbolta/Test-Vislice | 0b81424a912dd2620b3f756b097224d1532522c0 | [
"MIT"
] | null | null | null | tekstovni_vmesnik.py | matejbolta/Test-Vislice | 0b81424a912dd2620b3f756b097224d1532522c0 | [
"MIT"
] | null | null | null | tekstovni_vmesnik.py | matejbolta/Test-Vislice | 0b81424a912dd2620b3f756b097224d1532522c0 | [
"MIT"
] | null | null | null | # _____
# |/ |
# | o
# | /|\
# | / \
# _|_______
import model
# print('\033[1;94m' + niz + '\033[0m')
# 90 sivo, 91 rdeče, 92 zeleno, 93 rumeno, 94 modro, 95 roza, 96 svetlo modro, 97 krepko
ime = input('\nKako ti je ime? >')
_ = input(f'\nŽivijo {ime... | 31.614973 | 137 | 0.401556 |
1df4b1273460f2b25a0da391abeadf33a24a8abc | 39 | py | Python | run.py | beenje/aiolegomac | 4bf780749e018750c5644fea3e84f09444c43d3d | [
"BSD-2-Clause"
] | 1 | 2017-12-29T14:24:34.000Z | 2017-12-29T14:24:34.000Z | run.py | beenje/aiolegomac | 4bf780749e018750c5644fea3e84f09444c43d3d | [
"BSD-2-Clause"
] | 5 | 2021-03-18T20:23:21.000Z | 2022-03-11T23:16:41.000Z | run.py | beenje/aiolegomac | 4bf780749e018750c5644fea3e84f09444c43d3d | [
"BSD-2-Clause"
] | null | null | null | from aiolegomac.app import run
run()
| 7.8 | 30 | 0.74359 |
1df4b37413d092883d7a4a4c91d7c8b8f1105f83 | 9,880 | py | Python | venv/Lib/site-packages/tensorflow/python/ops/gen_clustering_ops.py | rexliu3/StockTradingBotCloud | 46b732b9c05f73bc0e856a3c4a16854b6d12e18e | [
"MIT"
] | null | null | null | venv/Lib/site-packages/tensorflow/python/ops/gen_clustering_ops.py | rexliu3/StockTradingBotCloud | 46b732b9c05f73bc0e856a3c4a16854b6d12e18e | [
"MIT"
] | null | null | null | venv/Lib/site-packages/tensorflow/python/ops/gen_clustering_ops.py | rexliu3/StockTradingBotCloud | 46b732b9c05f73bc0e856a3c4a16854b6d12e18e | [
"MIT"
] | 1 | 2020-06-28T11:47:47.000Z | 2020-06-28T11:47:47.000Z | """Python wrappers around TensorFlow ops.
This file is MACHINE GENERATED! Do not edit.
Original C++ source file: clustering_ops.cc
"""
import collections
from tensorflow.python import pywrap_tfe as pywrap_tfe
from tensorflow.python.eager import context as _context
from tensorflow.python.eager import core as _core
fr... | 41.166667 | 129 | 0.725101 |
1df4c8a894e13884f18272e1bfa65c19089954ca | 5,688 | py | Python | poppurri/mixture/migrations/0006_auto__add_unique_category_name.py | ariel17/poppurri | 56c2f7ec96402e96776b928cd8be5454f7c2ab67 | [
"MIT"
] | null | null | null | poppurri/mixture/migrations/0006_auto__add_unique_category_name.py | ariel17/poppurri | 56c2f7ec96402e96776b928cd8be5454f7c2ab67 | [
"MIT"
] | 12 | 2017-06-01T13:15:33.000Z | 2017-06-01T13:15:35.000Z | poppurri/mixture/migrations/0006_auto__add_unique_category_name.py | ariel17/poppurri | 56c2f7ec96402e96776b928cd8be5454f7c2ab67 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
from south.utils import datetime_utils as datetime
from south.db import db
from south.v2 import SchemaMigration
from django.db import models
class Migration(SchemaMigration):
def forwards(self, orm):
# Adding unique constraint on 'Category', fields ['name']
db.create_uniqu... | 67.714286 | 195 | 0.567159 |
1df4d03d458c53ad4621486d29d942a264bf16cf | 8,479 | py | Python | tests/testThetasAnalyzer.py | DogeMajor/GDFT | bd84a8cef8d68f88c3c80de9936ee65ce85fcb40 | [
"MIT"
] | null | null | null | tests/testThetasAnalyzer.py | DogeMajor/GDFT | bd84a8cef8d68f88c3c80de9936ee65ce85fcb40 | [
"MIT"
] | null | null | null | tests/testThetasAnalyzer.py | DogeMajor/GDFT | bd84a8cef8d68f88c3c80de9936ee65ce85fcb40 | [
"MIT"
] | null | null | null | import sys
import unittest
import numpy as np
sys.path.append("../src")
sys.path.append("src/")
from utils import extract_thetas_records
from gdft import gdft_matrix
from correlations import *
from analyzer import PCA, ThetasAnalyzer, SortedThetas
from tools import GDFTTestCase
#------Test data------------------------... | 51.70122 | 109 | 0.582026 |
1df506e4c705d38b9fcf63114a7e35317a1ae998 | 8,698 | py | Python | tests/e2e_tests/base_case/user_personal_info_case.py | ikostan/ParaBankSeleniumAutomation | e28a886adba89b82a60831ad96a3a8f00f863116 | [
"Unlicense"
] | 4 | 2019-08-12T19:36:58.000Z | 2021-09-14T18:48:27.000Z | tests/e2e_tests/base_case/user_personal_info_case.py | ikostan/ParaBankSeleniumAutomation | e28a886adba89b82a60831ad96a3a8f00f863116 | [
"Unlicense"
] | 1 | 2021-06-02T00:01:00.000Z | 2021-06-02T00:01:00.000Z | tests/e2e_tests/base_case/user_personal_info_case.py | ikostan/ParaBankSeleniumAutomation | e28a886adba89b82a60831ad96a3a8f00f863116 | [
"Unlicense"
] | 2 | 2019-08-12T10:06:00.000Z | 2020-12-25T05:52:40.000Z | # Created by Egor Kostan.
# GitHub: https://github.com/ikostan
# LinkedIn: https://www.linkedin.com/in/egor-kostan/
import unittest
from utils.step_definition import step_definition
from expected_results.page_content.register_page_content import RegisterPageContent
class UserPersonalInfoCase(unittest.TestCase):
... | 41.419048 | 97 | 0.515866 |
1df51ec1b509ab40b55be4cd7b84eb5b4f970d91 | 13,961 | py | Python | lib_fr/datasets/coco.py | chang010453/GRP-HAI | 60f7c7633e33dbdd852f5df3e0a3d1017b6b2a22 | [
"MIT"
] | null | null | null | lib_fr/datasets/coco.py | chang010453/GRP-HAI | 60f7c7633e33dbdd852f5df3e0a3d1017b6b2a22 | [
"MIT"
] | null | null | null | lib_fr/datasets/coco.py | chang010453/GRP-HAI | 60f7c7633e33dbdd852f5df3e0a3d1017b6b2a22 | [
"MIT"
] | null | null | null | # --------------------------------------------------------
# Fast/er R-CNN
# Licensed under The MIT License [see LICENSE for details]
# Written by Ross Girshick and Xinlei Chen
# --------------------------------------------------------
from __future__ import absolute_import
from __future__ import division
from __future... | 41.4273 | 119 | 0.552682 |
1df536804223addad7259725cf4b95c35f4bf0a6 | 5,415 | py | Python | python_modules/libraries/dagster-dask/dagster_dask_tests/test_utils.py | kstennettlull/dagster | dd6f57e170ff03bf145f1dd1417e0b2c3156b1d6 | [
"Apache-2.0"
] | null | null | null | python_modules/libraries/dagster-dask/dagster_dask_tests/test_utils.py | kstennettlull/dagster | dd6f57e170ff03bf145f1dd1417e0b2c3156b1d6 | [
"Apache-2.0"
] | null | null | null | python_modules/libraries/dagster-dask/dagster_dask_tests/test_utils.py | kstennettlull/dagster | dd6f57e170ff03bf145f1dd1417e0b2c3156b1d6 | [
"Apache-2.0"
] | null | null | null | import dask.dataframe as dd
from dagster_dask import DataFrame
from dagster import InputDefinition, execute_solid, file_relative_path, solid
@solid(input_defs=[InputDefinition(dagster_type=DataFrame, name="input_df")])
def passthrough(_, input_df: DataFrame) -> DataFrame:
return input_df
def generate_config(pa... | 33.018293 | 94 | 0.672207 |
1df53dc30262fe046579aa3bad2a913dabf6b625 | 6,420 | py | Python | mi/dataset/parser/test/test_adcpt_m_log9.py | rmanoni/mi-dataset | c1012a0cd8f2ea075e008cdd1ab291ed54f44d43 | [
"BSD-2-Clause"
] | 1 | 2015-05-10T01:08:44.000Z | 2015-05-10T01:08:44.000Z | mi/dataset/parser/test/test_adcpt_m_log9.py | rmanoni/mi-dataset | c1012a0cd8f2ea075e008cdd1ab291ed54f44d43 | [
"BSD-2-Clause"
] | null | null | null | mi/dataset/parser/test/test_adcpt_m_log9.py | rmanoni/mi-dataset | c1012a0cd8f2ea075e008cdd1ab291ed54f44d43 | [
"BSD-2-Clause"
] | 9 | 2015-04-15T21:09:08.000Z | 2019-11-15T03:18:53.000Z | #!/usr/bin/env python
"""
@package mi.dataset.parser.test
@file marine-integrations/mi/dataset/parser/test/test_adcpt_m_log9.py
@author Tapana Gupta
@brief Test code for adcpt_m_log9 data parser
Files used for testing:
ADCPT_M_LOG9_simple.txt
File contains 25 valid data records
ADCPT_M_LOG9_large.txt
File conta... | 35.274725 | 110 | 0.654206 |
1df543cb35998eb86a667cf2481ad3356759ca7d | 1,531 | py | Python | server/danesfield_server/job_info.py | Kitware/Danesfield-App | 70d9f5c7c5af2ca92d274c99175783ea43087592 | [
"Apache-2.0"
] | 25 | 2018-12-19T08:45:13.000Z | 2022-03-27T14:20:42.000Z | server/danesfield_server/job_info.py | Kitware/Danesfield-App | 70d9f5c7c5af2ca92d274c99175783ea43087592 | [
"Apache-2.0"
] | 10 | 2018-11-30T22:21:45.000Z | 2022-01-21T19:43:47.000Z | server/danesfield_server/job_info.py | Kitware/Danesfield-App | 70d9f5c7c5af2ca92d274c99175783ea43087592 | [
"Apache-2.0"
] | 7 | 2018-12-03T21:42:53.000Z | 2021-09-07T17:09:10.000Z | #!/usr/bin/env python
# -*- coding: utf-8 -*-
###############################################################################
# Copyright Kitware Inc. and Contributors
# Distributed under the Apache License, 2.0 (apache.org/licenses/LICENSE-2.0)
# See accompanying Copyright.txt and LICENSE files for details
##########... | 36.452381 | 84 | 0.589157 |
1df5463d3218248ef415971ea54667e32bff23ff | 14,349 | py | Python | hw5/cs285/density_model.py | erfanMhi/Deep-Reinforcement-Learning-CS285 | 4b832c232889b0f867c5d43b4f28c588607cfd60 | [
"MIT"
] | 91 | 2020-06-13T16:26:42.000Z | 2022-03-31T02:49:30.000Z | hw5/cs285/density_model.py | erfanMhi/Deep-Reinforcement-Learning-CS285 | 4b832c232889b0f867c5d43b4f28c588607cfd60 | [
"MIT"
] | 6 | 2020-07-26T15:44:36.000Z | 2022-02-10T02:15:10.000Z | hw5/cs285/density_model.py | erfanMhi/Deep-Reinforcement-Learning-CS285 | 4b832c232889b0f867c5d43b4f28c588607cfd60 | [
"MIT"
] | 16 | 2020-08-04T01:17:45.000Z | 2022-02-24T04:51:41.000Z | import tensorflow_probability as tfp
import numpy as np
import tensorflow as tf
from ex_utils import build_mlp
class Density_Model(object):
def __init__(self):
super(Density_Model, self).__init__()
def receive_tf_sess(self, sess):
self.sess = sess
def get_prob(self, state):
raise... | 36.69821 | 142 | 0.562409 |
1df56c120be25642d5516f6c61d2b4cbca60c3e4 | 26,825 | py | Python | ngraph/transformers/gpu/tensor_ops.py | NervanaSystems/ngraph-python | ac032c83c7152b615a9ad129d54d350f9d6a2986 | [
"Apache-2.0"
] | 18 | 2018-03-19T04:16:49.000Z | 2021-02-08T14:44:58.000Z | ngraph/transformers/gpu/tensor_ops.py | rsumner31/ngraph | 5e5c9bb9f24d95aee190b914dd2d44122fc3be53 | [
"Apache-2.0"
] | 2 | 2019-04-16T06:41:49.000Z | 2019-05-06T14:08:13.000Z | ngraph/transformers/gpu/tensor_ops.py | rsumner31/ngraph | 5e5c9bb9f24d95aee190b914dd2d44122fc3be53 | [
"Apache-2.0"
] | 11 | 2018-06-16T15:59:08.000Z | 2021-03-06T00:45:30.000Z | # ******************************************************************************
# Copyright 2017-2018 Intel Corporation
#
# 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.apa... | 36.20108 | 98 | 0.613495 |
1df57354804ff98df320a6100a7495e6cf0ef4ac | 57,232 | py | Python | improver/ensemble_copula_coupling/ensemble_copula_coupling.py | owena11/improver | ff658db31364c0bdf3af3940736c260e10544705 | [
"BSD-3-Clause"
] | null | null | null | improver/ensemble_copula_coupling/ensemble_copula_coupling.py | owena11/improver | ff658db31364c0bdf3af3940736c260e10544705 | [
"BSD-3-Clause"
] | null | null | null | improver/ensemble_copula_coupling/ensemble_copula_coupling.py | owena11/improver | ff658db31364c0bdf3af3940736c260e10544705 | [
"BSD-3-Clause"
] | null | null | null | # -*- coding: utf-8 -*-
# -----------------------------------------------------------------------------
# (C) British Crown Copyright 2017-2021 Met Office.
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions a... | 41.744712 | 102 | 0.644447 |
1df597e6acf5e8ecb712bcd42b35353169e97bff | 5,073 | py | Python | wienerschnitzelgemeinschaft/src/keras_optimizers.py | guitarmind/HPA-competition-solutions | 547d53aaca148fdb5f4585526ad7364dfa47967d | [
"MIT"
] | null | null | null | wienerschnitzelgemeinschaft/src/keras_optimizers.py | guitarmind/HPA-competition-solutions | 547d53aaca148fdb5f4585526ad7364dfa47967d | [
"MIT"
] | null | null | null | wienerschnitzelgemeinschaft/src/keras_optimizers.py | guitarmind/HPA-competition-solutions | 547d53aaca148fdb5f4585526ad7364dfa47967d | [
"MIT"
] | null | null | null | """From built-in optimizer classes.
"""
from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
import six
import copy
from six.moves import zip
from keras import backend as K
from keras.utils.generic_utils import serialize_keras_object
from keras.utils.generic_uti... | 43.358974 | 106 | 0.59176 |
1df5c2ce67b943526136afafafefdb35f2b39bf1 | 816 | py | Python | python/worker.py | taomujian/linbing | fe772a58f41e3b046b51a866bdb7e4655abaf51a | [
"MIT"
] | 351 | 2020-02-26T05:23:26.000Z | 2022-03-26T12:39:19.000Z | python/worker.py | taomujian/linbing | fe772a58f41e3b046b51a866bdb7e4655abaf51a | [
"MIT"
] | 15 | 2020-03-26T07:31:49.000Z | 2022-03-09T02:12:17.000Z | python/worker.py | taomujian/linbing | fe772a58f41e3b046b51a866bdb7e4655abaf51a | [
"MIT"
] | 99 | 2020-02-28T07:30:46.000Z | 2022-03-16T16:41:09.000Z | #!/usr/bin/env python3
import configparser
from redis import Redis
from multiprocessing import Pool, freeze_support
from rq import Queue, Worker, Connection
config = configparser.ConfigParser()
config.read('conf.ini', encoding = 'utf-8')
redis_conn = Redis(host = config.get('redis', 'ip'), password = config.get('red... | 25.5 | 132 | 0.629902 |
1df5f3e59e77314933e8f0255ae50dfc83b4ac9c | 6,578 | py | Python | river/datasets/synth/sine.py | online-ml/creme | 60872844e6052b5ef20e4075aea30f9031377136 | [
"BSD-3-Clause"
] | 1,105 | 2019-01-24T15:15:30.000Z | 2020-11-10T18:27:00.000Z | river/datasets/synth/sine.py | online-ml/creme | 60872844e6052b5ef20e4075aea30f9031377136 | [
"BSD-3-Clause"
] | 328 | 2019-01-25T13:48:43.000Z | 2020-11-11T11:41:44.000Z | river/datasets/synth/sine.py | online-ml/creme | 60872844e6052b5ef20e4075aea30f9031377136 | [
"BSD-3-Clause"
] | 150 | 2019-01-29T19:05:21.000Z | 2020-11-11T11:50:14.000Z | import numpy as np
from river import datasets
from river.utils.skmultiflow_utils import check_random_state
class Sine(datasets.base.SyntheticDataset):
r"""Sine generator.
This generator is an implementation of the dara stream with abrupt
concept drift, as described in Gama, Joao, et al. [^1].
It ge... | 36.748603 | 82 | 0.623138 |
1df6008c2fa17f145a43543362edaf5fef1923be | 16,512 | py | Python | tests/backend/test_states_polyquad.py | SubhashishQPIT/strawberryfields | dae6ae8b1b3eb188fc2c874bd6c943bebf697ab9 | [
"Apache-2.0"
] | 646 | 2018-03-26T15:12:35.000Z | 2022-03-21T18:52:42.000Z | tests/backend/test_states_polyquad.py | tonybruguier/strawberryfields | 298601e409528f22c6717c2d816ab68ae8bda1fa | [
"Apache-2.0"
] | 666 | 2018-03-27T20:21:27.000Z | 2022-03-25T18:35:33.000Z | tests/backend/test_states_polyquad.py | tonybruguier/strawberryfields | 298601e409528f22c6717c2d816ab68ae8bda1fa | [
"Apache-2.0"
] | 182 | 2018-04-11T17:09:39.000Z | 2022-03-29T15:38:43.000Z | # Copyright 2019 Xanadu Quantum Technologies 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 agre... | 35.509677 | 133 | 0.580124 |
1df633857a5e618066e515910af635c6685afc1c | 272 | py | Python | chapter2/intogen-mutations/develop/lib/python/intogensm/constants/oncodrivefm.py | chris-zen/phd-thesis | 1eefdff8e7ca1910304e27ae42551dc64496b101 | [
"Unlicense"
] | 1 | 2015-12-22T00:53:18.000Z | 2015-12-22T00:53:18.000Z | chapter2/intogen-mutations/develop/lib/python/intogensm/constants/oncodrivefm.py | chris-zen/phd-thesis | 1eefdff8e7ca1910304e27ae42551dc64496b101 | [
"Unlicense"
] | null | null | null | chapter2/intogen-mutations/develop/lib/python/intogensm/constants/oncodrivefm.py | chris-zen/phd-thesis | 1eefdff8e7ca1910304e27ae42551dc64496b101 | [
"Unlicense"
] | null | null | null | # FIXME deprecated
ONCODRIVEFM_NUM_CORES = 1
ONCODRIVEFM_ESTIMATOR = "mean"
ONCODRIVEFM_GENES_THRESHOLD = "1%"
ONCODRIVEFM_GENES_NUM_SAMPLINGS = 10000
ONCODRIVEFM_GENES_FILTER_ENABLED = True
ONCODRIVEFM_PATHWAYS_THRESHOLD = 10
ONCODRIVEFM_PATHWAYS_NUM_SAMPLINGS = 10000 | 24.727273 | 42 | 0.856618 |
1df643918b3d787d3328fb2b2e1aa044930642a4 | 2,362 | py | Python | Python3/Books/Douson/chapter10/movie_chooser.py | neon1ks/Study | 5d40171cf3bf5e8d3a95539e91f5afec54d1daf3 | [
"MIT"
] | null | null | null | Python3/Books/Douson/chapter10/movie_chooser.py | neon1ks/Study | 5d40171cf3bf5e8d3a95539e91f5afec54d1daf3 | [
"MIT"
] | null | null | null | Python3/Books/Douson/chapter10/movie_chooser.py | neon1ks/Study | 5d40171cf3bf5e8d3a95539e91f5afec54d1daf3 | [
"MIT"
] | null | null | null | # Movie Chooser
# Demonstrates check buttons
from tkinter import *
class Application(Frame):
""" GUI Application for favorite movie types. """
def __init__(self, master):
super(Application, self).__init__(master)
self.grid()
self.create_widgets()
def create_widgets(self):
... | 31.918919 | 75 | 0.539797 |
1df64c4eb180631eaa93d38de1332088c3c12fa6 | 701 | py | Python | multidoc-stave/simple-backend/nlpviewer_backend/migrations/0009_auto_20210318_0044.py | adithya7/cdec-ann-tool | 263137960d01babdddae48faef9cfef5efef6826 | [
"Apache-2.0"
] | null | null | null | multidoc-stave/simple-backend/nlpviewer_backend/migrations/0009_auto_20210318_0044.py | adithya7/cdec-ann-tool | 263137960d01babdddae48faef9cfef5efef6826 | [
"Apache-2.0"
] | null | null | null | multidoc-stave/simple-backend/nlpviewer_backend/migrations/0009_auto_20210318_0044.py | adithya7/cdec-ann-tool | 263137960d01babdddae48faef9cfef5efef6826 | [
"Apache-2.0"
] | null | null | null | # Generated by Django 3.1.6 on 2021-03-18 04:44
import datetime
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('nlpviewer_backend', '0008_auto_20210318_0030'),
]
operations = [
migrations.AlterField(
model_name='annotationlo... | 28.04 | 109 | 0.617689 |
1df67beea45ef96df1ac0e5714dc8a8429f2eae3 | 1,452 | py | Python | model/time_base_map.py | bowlofstew/bii-server | 9abc558b1ba9722088e22a4937a224cfcc3c5f22 | [
"MIT"
] | 27 | 2015-04-15T09:40:26.000Z | 2020-04-29T06:24:06.000Z | model/time_base_map.py | bowlofstew/bii-server | 9abc558b1ba9722088e22a4937a224cfcc3c5f22 | [
"MIT"
] | 2 | 2015-06-03T20:19:51.000Z | 2015-06-30T20:40:14.000Z | model/time_base_map.py | bowlofstew/bii-server | 9abc558b1ba9722088e22a4937a224cfcc3c5f22 | [
"MIT"
] | 10 | 2015-08-06T08:17:28.000Z | 2020-09-29T17:02:57.000Z | import bisect
from biicode.common.utils.serializer import ListDeserializer
class TimeBaseMap(tuple):
'''
Two lists, first of time, second of ID or BlockVersionTable or set or Renames
'''
def __new__(cls, data=None):
if not data:
obj = super(TimeBaseMap, cls).__new__(cls, ([], []))
... | 26.888889 | 81 | 0.55854 |
1df684d1aa417a6cd7591bbfeb4060f1a239c582 | 1,194 | py | Python | setup.py | skullydazed/rgb7seg.py | 91acf81248ba993274a9fd7a760ebf42ae6a2aec | [
"MIT"
] | null | null | null | setup.py | skullydazed/rgb7seg.py | 91acf81248ba993274a9fd7a760ebf42ae6a2aec | [
"MIT"
] | null | null | null | setup.py | skullydazed/rgb7seg.py | 91acf81248ba993274a9fd7a760ebf42ae6a2aec | [
"MIT"
] | null | null | null | #!/usr/bin/env python
# Special thanks to Hynek Schlawack for providing excellent documentation:
#
# https://hynek.me/articles/sharing-your-labor-of-love-pypi-quick-and-dirty/
import os
from setuptools import setup
def read(*paths):
"""Build a file path from *paths* and return the contents."""
with open(os.pa... | 33.166667 | 112 | 0.666667 |
1df6a6a0a5b2b9b8eb33158ae7a2ce10e1101ae8 | 7,319 | py | Python | smal/smal_torch.py | chaneyddtt/Coarse-to-fine-3D-Animal | b3f9b1031b5761838c94ca091095636101747fd9 | [
"MIT"
] | 11 | 2021-11-17T03:11:21.000Z | 2022-03-23T06:38:19.000Z | smal/smal_torch.py | chaneyddtt/Coarse-to-fine-3D-Animal | b3f9b1031b5761838c94ca091095636101747fd9 | [
"MIT"
] | 3 | 2021-12-07T07:42:33.000Z | 2022-01-07T11:41:17.000Z | smal/smal_torch.py | chaneyddtt/Coarse-to-fine-3D-Animal | b3f9b1031b5761838c94ca091095636101747fd9 | [
"MIT"
] | 9 | 2021-11-26T08:57:19.000Z | 2022-03-22T10:29:19.000Z | """
PyTorch implementation of the SMAL/SMPL model
"""
from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
import numpy as np
import torch
import torch.nn as nn
from torch.autograd import Variable
import pickle as pkl
from smal.batch_lbs import batch_rodri... | 34.523585 | 142 | 0.576445 |
1df6be786b0b1579b5b52e22f071d5bc38efb06e | 11,604 | py | Python | venv/lib/python3.8/site-packages/pip/_internal/commands/list.py | GePajarinen/Django-App | cb5cc13fe560a1a929ccd1f88f45219f60e68c43 | [
"MIT"
] | 1 | 2020-06-24T13:23:30.000Z | 2020-06-24T13:23:30.000Z | venv/lib/python3.8/site-packages/pip/_internal/commands/list.py | GePajarinen/Django-App | cb5cc13fe560a1a929ccd1f88f45219f60e68c43 | [
"MIT"
] | null | null | null | venv/lib/python3.8/site-packages/pip/_internal/commands/list.py | GePajarinen/Django-App | cb5cc13fe560a1a929ccd1f88f45219f60e68c43 | [
"MIT"
] | null | null | null | from __future__ import absolute_import
import json
import logging
from pip._vendor import six
from pip._internal.cli import cmdoptions
from pip._internal.cli.req_command import IndexGroupCommand
from pip._internal.cli.status_codes import SUCCESS
from pip._internal.exceptions import CommandError
from pip._... | 35.925697 | 80 | 0.584023 |
1df6d029a54fd49d89b63a0391d73a4d5fd9121b | 1,516 | py | Python | API/src/main/resources/Lib/robot/htmldata/jartemplate.py | TagExpress/SikuliX1 | de9da11794dd94b3821eddc5c01b534d3f2fe828 | [
"MIT"
] | null | null | null | API/src/main/resources/Lib/robot/htmldata/jartemplate.py | TagExpress/SikuliX1 | de9da11794dd94b3821eddc5c01b534d3f2fe828 | [
"MIT"
] | null | null | null | API/src/main/resources/Lib/robot/htmldata/jartemplate.py | TagExpress/SikuliX1 | de9da11794dd94b3821eddc5c01b534d3f2fe828 | [
"MIT"
] | null | null | null | # Copyright (c) 2010-2020, sikuli.org, sikulix.com - MIT license
#
# 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 b... | 32.956522 | 82 | 0.691293 |
1df6e2ac53bb74717bbcb330f8832b5d64c8c985 | 2,369 | py | Python | tests/load/test_load_hpo.py | bjhall/scout | ea772cf8d233223e0ec5271f61b95d3afcf719ad | [
"BSD-3-Clause"
] | null | null | null | tests/load/test_load_hpo.py | bjhall/scout | ea772cf8d233223e0ec5271f61b95d3afcf719ad | [
"BSD-3-Clause"
] | null | null | null | tests/load/test_load_hpo.py | bjhall/scout | ea772cf8d233223e0ec5271f61b95d3afcf719ad | [
"BSD-3-Clause"
] | null | null | null | from scout.load.hpo import load_hpo, load_disease_terms, load_hpo_terms
from scout.utils.handle import get_file_handle
def test_load_disease_terms(gene_database, genemap_file, hpo_disease_handle):
adapter = gene_database
alias_genes = adapter.genes_by_alias()
# GIVEN a populated database with genes and n... | 31.171053 | 78 | 0.720979 |
1df6f544f7429716c5edcfb947f179372a26d438 | 2,092 | py | Python | tensorflow/contrib/learn/__init__.py | gnoses/TensorFlow | 63a21e054007d86269ed1ad0145ebce04ee57a81 | [
"Apache-2.0"
] | 2 | 2017-11-24T04:06:38.000Z | 2018-01-07T11:30:04.000Z | tensorflow/contrib/learn/__init__.py | amineferchichi/tensorflow | 4ac9c09d5ca57a03b8daa5fb9e295947b1619854 | [
"Apache-2.0"
] | null | null | null | tensorflow/contrib/learn/__init__.py | amineferchichi/tensorflow | 4ac9c09d5ca57a03b8daa5fb9e295947b1619854 | [
"Apache-2.0"
] | 1 | 2021-02-16T15:38:50.000Z | 2021-02-16T15:38:50.000Z | # Copyright 2016 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... | 26.15 | 80 | 0.751912 |
1df72785b89c165ca89571643bbf46b3648ed6b2 | 836 | py | Python | lib/singer-python/setup.py | epappas/cryptodata | 8635fb11e714956bcc2184338ddeac5a2533ec91 | [
"Apache-2.0"
] | 1 | 2021-12-07T19:05:31.000Z | 2021-12-07T19:05:31.000Z | lib/singer-python/setup.py | epappas/cryptodata | 8635fb11e714956bcc2184338ddeac5a2533ec91 | [
"Apache-2.0"
] | 46 | 2021-04-16T23:24:17.000Z | 2022-03-31T02:19:45.000Z | lib/singer-python/setup.py | epappas/cryptodata | 8635fb11e714956bcc2184338ddeac5a2533ec91 | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python
from setuptools import setup, find_packages
import subprocess
setup(name="singer-python",
version='5.12.1',
description="Singer.io utility library",
author="Stitch",
classifiers=['Programming Language :: Python :: 3 :: Only'],
url="http://singer.io",
install_r... | 23.222222 | 66 | 0.465311 |
1df7281298e14c969143cbc4e21381bc318dd026 | 1,403 | py | Python | pylib/monitor/haproxy/conditions.py | xkmato/py77 | 9c44d8f8924f47a7331c29fd0287a4bb9416d316 | [
"MIT"
] | null | null | null | pylib/monitor/haproxy/conditions.py | xkmato/py77 | 9c44d8f8924f47a7331c29fd0287a4bb9416d316 | [
"MIT"
] | null | null | null | pylib/monitor/haproxy/conditions.py | xkmato/py77 | 9c44d8f8924f47a7331c29fd0287a4bb9416d316 | [
"MIT"
] | 2 | 2018-07-16T19:14:11.000Z | 2020-10-15T08:48:32.000Z | """
Conditions for sending alert emails for HAProxy Monitor
A condition is a callable that takes a ProxyStats object and
returns an error string or None for success
"""
from datetime import datetime
__copyright__ = '2013, Room 77, Inc.'
__author__ = 'Kyle Konrad <kyle@room77.com>'
def more_than_n_down(n):
"""
A... | 28.632653 | 72 | 0.679971 |
1df72df2cd05e07546941277cf218c2ac652e566 | 2,595 | py | Python | lib/coloraide/spaces/prophoto_rgb.py | adaminfinitum/ColorHelper | d6ab02ccff01dd1e3a01dbc186b5ba3ff1fcca47 | [
"MIT"
] | 253 | 2015-03-04T06:48:43.000Z | 2022-03-25T14:22:17.000Z | lib/coloraide/spaces/prophoto_rgb.py | adaminfinitum/ColorHelper | d6ab02ccff01dd1e3a01dbc186b5ba3ff1fcca47 | [
"MIT"
] | 197 | 2015-03-04T21:40:47.000Z | 2022-03-25T17:04:36.000Z | lib/coloraide/spaces/prophoto_rgb.py | adaminfinitum/ColorHelper | d6ab02ccff01dd1e3a01dbc186b5ba3ff1fcca47 | [
"MIT"
] | 32 | 2015-03-21T03:28:01.000Z | 2021-09-06T07:20:51.000Z | """Pro Photo RGB color class."""
from ..spaces import RE_DEFAULT_MATCH
from .srgb.base import SRGB
from .xyz import XYZ
from .. import util
import re
ET = 1 / 512
ET2 = 16 / 512
RGB_TO_XYZ = [
[7.9776048967230273e-01, 1.3518583717574034e-01, 3.1349349581524806e-02],
[2.8807112822929343e-01, 7.1184321781010151... | 26.752577 | 104 | 0.669364 |
1df735967dbf5391a5c5b0e20af3f2ce81e501ce | 11,297 | py | Python | Python_files/INRIX_data_preprocessing_16_prepare_link_flows_for_OD_demand_estimation_Apr_ext.py | jingzbu/InverseVITraffic | c0d33d91bdd3c014147d58866c1a2b99fb8a9608 | [
"MIT"
] | null | null | null | Python_files/INRIX_data_preprocessing_16_prepare_link_flows_for_OD_demand_estimation_Apr_ext.py | jingzbu/InverseVITraffic | c0d33d91bdd3c014147d58866c1a2b99fb8a9608 | [
"MIT"
] | null | null | null | Python_files/INRIX_data_preprocessing_16_prepare_link_flows_for_OD_demand_estimation_Apr_ext.py | jingzbu/InverseVITraffic | c0d33d91bdd3c014147d58866c1a2b99fb8a9608 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
__author__ = "Jing Zhang"
__email__ = "jingzbu@gmail.com"
__status__ = "Development"
from util import *
road_seg_inr_capac = zload('../temp_files/road_seg_inr_capac_ext.pkz')
# load tmc-day-ave_speed data for AM peak of Apruary
tmc_day_speed_dict_Apr_AM = zload('../temp_files/Apr_AM/tmc_day_... | 58.533679 | 121 | 0.607241 |
1df74b2ef5fd95119d20965abd9a6c79e94b9c5f | 639 | py | Python | botoflow/decider/__init__.py | boto/botoflow | 49d8ed3bc9c57294504be82e933a051e1901b76e | [
"Apache-2.0"
] | 13 | 2016-06-15T06:10:57.000Z | 2021-10-30T03:52:28.000Z | botoflow/decider/__init__.py | DalavanCloud/botoflow | 49d8ed3bc9c57294504be82e933a051e1901b76e | [
"Apache-2.0"
] | 11 | 2016-09-15T01:48:08.000Z | 2019-01-09T06:11:44.000Z | botoflow/decider/__init__.py | DalavanCloud/botoflow | 49d8ed3bc9c57294504be82e933a051e1901b76e | [
"Apache-2.0"
] | 16 | 2016-06-05T03:42:04.000Z | 2022-03-01T17:43:14.000Z | # Copyright 2013 Amazon.com, Inc. or its affiliates. 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.
# A copy of the License is located at
#
# http://aws.amazon.com/apache2.0
#
# or in the "license" file accompa... | 39.9375 | 75 | 0.769953 |
1df7659c0e65abe040a9c8ef8c04a6ea6fd69f29 | 1,346 | py | Python | venv/Lib/site-packages/pybtex/__version__.py | PeerHerholz/guideline_jupyter_book | ce445e4be0d53370b67708a22550565b90d71ac6 | [
"BSD-3-Clause"
] | 2 | 2021-02-16T16:17:07.000Z | 2021-11-08T20:27:13.000Z | venv/Lib/site-packages/pybtex/__version__.py | PeerHerholz/guideline_jupyter_book | ce445e4be0d53370b67708a22550565b90d71ac6 | [
"BSD-3-Clause"
] | null | null | null | venv/Lib/site-packages/pybtex/__version__.py | PeerHerholz/guideline_jupyter_book | ce445e4be0d53370b67708a22550565b90d71ac6 | [
"BSD-3-Clause"
] | 4 | 2020-11-14T17:05:36.000Z | 2020-11-16T18:44:54.000Z | # Copyright (c) 2006-2019 Andrey Golovigin
#
# 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, publi... | 44.866667 | 93 | 0.786033 |
1df77548723e41afee57967af7a683c0a6cb96be | 3,567 | py | Python | src/python/pants/goal/help.py | xyzst/pants | d6a357fe67ee7e8e1aefeae625e107f5609f1717 | [
"Apache-2.0"
] | null | null | null | src/python/pants/goal/help.py | xyzst/pants | d6a357fe67ee7e8e1aefeae625e107f5609f1717 | [
"Apache-2.0"
] | 16 | 2022-01-13T10:40:30.000Z | 2022-03-30T10:20:44.000Z | src/python/pants/goal/help.py | riisi/pants | b33327389fab67c47b919710ea32f20ca284b1a6 | [
"Apache-2.0"
] | null | null | null | # Copyright 2021 Pants project contributors (see CONTRIBUTORS.md).
# Licensed under the Apache License, Version 2.0 (see LICENSE).
from __future__ import annotations
from abc import abstractmethod
from pants.base.exiter import ExitCode
from pants.base.specs import Specs
from pants.build_graph.build_configuration imp... | 30.228814 | 71 | 0.703953 |
1df7761d376a40d50e253491cec103aff141c621 | 8,800 | py | Python | models/language_only_dialog.py | hudaAlamri/visdial-bert | 77fee9e49c629bff314397d7ff029389a08a4ec0 | [
"BSD-3-Clause"
] | 85 | 2019-12-05T21:04:34.000Z | 2022-03-21T09:26:39.000Z | models/language_only_dialog.py | hudaAlamri/visdial-bert | 77fee9e49c629bff314397d7ff029389a08a4ec0 | [
"BSD-3-Clause"
] | 12 | 2019-12-10T14:55:21.000Z | 2021-08-24T03:13:21.000Z | models/language_only_dialog.py | satwikkottur/visdial-bert | 87e264794c45cc5c8c1ea243ad9d2b4d94a44faf | [
"BSD-3-Clause"
] | 18 | 2019-12-08T15:51:43.000Z | 2022-01-27T16:46:15.000Z | import torch
from torch import nn
from torch.nn import CrossEntropyLoss
from pytorch_transformers.modeling_bert import BertForPreTraining, BertPredictionHeadTransform, BertEmbeddings, BertPreTrainingHeads, BertLayerNorm, \
BertModel, BertEncoder, BertPooler
from utils.data_utils import sequence_mask
class BertEmbe... | 55.345912 | 150 | 0.707841 |
1df784383030eea4cf6b66845058c3b77267d119 | 11,692 | py | Python | tools/test_voc.py | cizhenshi/mmdetection | b0fe89677020ebe9e6a736b98d3e791ca0e6536d | [
"Apache-2.0"
] | 1 | 2020-05-12T16:47:39.000Z | 2020-05-12T16:47:39.000Z | tools/test_voc.py | cizhenshi/mmdetection | b0fe89677020ebe9e6a736b98d3e791ca0e6536d | [
"Apache-2.0"
] | null | null | null | tools/test_voc.py | cizhenshi/mmdetection | b0fe89677020ebe9e6a736b98d3e791ca0e6536d | [
"Apache-2.0"
] | null | null | null | import argparse
import os
import os.path as osp
import pickle
import shutil
import tempfile
import mmcv
import torch
import torch.distributed as dist
from mmcv.parallel import MMDataParallel, MMDistributedDataParallel
from mmcv.runner import get_dist_info, load_checkpoint
from mmdet.apis import init_dist
from mmdet.c... | 36.198142 | 79 | 0.621707 |
1df7c86432f4e1f04adf89ffdb3b5db2ae5360f3 | 4,130 | py | Python | packit/utils/commands.py | majamassarini/packit | b319c4ac2321f012c17ab0b2d0ebfb6c8226eff0 | [
"MIT"
] | 81 | 2019-02-07T15:38:34.000Z | 2020-07-16T06:33:02.000Z | packit/utils/commands.py | majamassarini/packit | b319c4ac2321f012c17ab0b2d0ebfb6c8226eff0 | [
"MIT"
] | 825 | 2019-02-07T15:08:16.000Z | 2020-08-02T08:11:23.000Z | packit/utils/commands.py | majamassarini/packit | b319c4ac2321f012c17ab0b2d0ebfb6c8226eff0 | [
"MIT"
] | 51 | 2019-02-08T09:56:29.000Z | 2020-06-17T15:34:00.000Z | # Copyright Contributors to the Packit project.
# SPDX-License-Identifier: MIT
import logging
import os
import shlex
import subprocess
import sys
from contextlib import contextmanager
from pathlib import Path
from typing import Dict, List, Optional, Union
from packit.exceptions import PackitCommandFailedError
from pa... | 26.993464 | 89 | 0.638499 |
1df7cda1ceb42ef04e1e48cf9073a06b2753c0a8 | 266 | py | Python | pni_customization/pni_customization/doctype/pni_packing_type/pni_packing_type.py | DaizyModi/pni_customization | 577946e91c8fe956ca64c089327ce18174002ec4 | [
"MIT"
] | null | null | null | pni_customization/pni_customization/doctype/pni_packing_type/pni_packing_type.py | DaizyModi/pni_customization | 577946e91c8fe956ca64c089327ce18174002ec4 | [
"MIT"
] | null | null | null | pni_customization/pni_customization/doctype/pni_packing_type/pni_packing_type.py | DaizyModi/pni_customization | 577946e91c8fe956ca64c089327ce18174002ec4 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
# Copyright (c) 2019, Jigar Tarpara and contributors
# For license information, please see license.txt
from __future__ import unicode_literals
# import frappe
from frappe.model.document import Document
class PNIPackingType(Document):
pass
| 24.181818 | 52 | 0.778195 |
1df7d89f2de1befb1f65bdb252469852382f8c08 | 2,969 | py | Python | docs/conf.py | mag1pie/scHPF | 926f8831b4167ad877572a5e34d1e7d2f729b1c4 | [
"BSD-2-Clause"
] | null | null | null | docs/conf.py | mag1pie/scHPF | 926f8831b4167ad877572a5e34d1e7d2f729b1c4 | [
"BSD-2-Clause"
] | null | null | null | docs/conf.py | mag1pie/scHPF | 926f8831b4167ad877572a5e34d1e7d2f729b1c4 | [
"BSD-2-Clause"
] | null | null | null | # Configuration file for the Sphinx documentation builder.
#
# This file only contains a selection of the most common options. For a full
# list see the documentation:
# http://www.sphinx-doc.org/en/master/config
# -- Path setup --------------------------------------------------------------
# If extensions (or module... | 33.738636 | 82 | 0.68811 |
1df80e679ee0397dd8d4d5e65c0c7d0cb8285669 | 9,239 | py | Python | src/radical/ensemblemd/patterns/simulation_analysis_loop.py | chemlove/radical.ensemblemd | 0ec4b127760d2fee88d4eae1768fecec4bdd6b21 | [
"MIT"
] | null | null | null | src/radical/ensemblemd/patterns/simulation_analysis_loop.py | chemlove/radical.ensemblemd | 0ec4b127760d2fee88d4eae1768fecec4bdd6b21 | [
"MIT"
] | null | null | null | src/radical/ensemblemd/patterns/simulation_analysis_loop.py | chemlove/radical.ensemblemd | 0ec4b127760d2fee88d4eae1768fecec4bdd6b21 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
"""This module defines and implements the Pipeline class.
"""
__author__ = "Ole Weider <ole.weidner@rutgers.edu>"
__copyright__ = "Copyright 2014, http://radical.rutgers.edu"
__license__ = "MIT"
from radical.ensemblemd.exceptions import NotImplementedError
from radical.ensemblemd.execution... | 36.808765 | 136 | 0.577335 |
1df810e20e843e3ba73b6c77871d71b2c42db7da | 328 | py | Python | sdk/core/azure-common/azure/common/_version.py | vincenttran-msft/azure-sdk-for-python | 348b56f9f03eeb3f7b502eed51daf494ffff874d | [
"MIT"
] | 1 | 2022-03-09T08:59:13.000Z | 2022-03-09T08:59:13.000Z | sdk/core/azure-common/azure/common/_version.py | vincenttran-msft/azure-sdk-for-python | 348b56f9f03eeb3f7b502eed51daf494ffff874d | [
"MIT"
] | null | null | null | sdk/core/azure-common/azure/common/_version.py | vincenttran-msft/azure-sdk-for-python | 348b56f9f03eeb3f7b502eed51daf494ffff874d | [
"MIT"
] | 1 | 2022-03-04T06:21:56.000Z | 2022-03-04T06:21:56.000Z | #-------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for
# license information.
#--------------------------------------------------------------------------
VERSION = "... | 41 | 75 | 0.408537 |
1df84227cc41ffded65a57807c8e35497552d452 | 168 | py | Python | qcos_addons/utils/load_data_from_json.py | kevin0120/airflow | fa263cbf0ac002bdb26239ce36d5dc2a1b6251fd | [
"Apache-2.0"
] | null | null | null | qcos_addons/utils/load_data_from_json.py | kevin0120/airflow | fa263cbf0ac002bdb26239ce36d5dc2a1b6251fd | [
"Apache-2.0"
] | null | null | null | qcos_addons/utils/load_data_from_json.py | kevin0120/airflow | fa263cbf0ac002bdb26239ce36d5dc2a1b6251fd | [
"Apache-2.0"
] | null | null | null | # -*- coding:utf-8 -*-
import json
def load_data_from_json(file_name: str) -> dict:
'''
加载json文件为dict
'''
f = open(file_name)
return json.load(f)
| 15.272727 | 48 | 0.595238 |
1df85fff39a52909bc99b43ec26b8fb0c6d4a891 | 2,105 | py | Python | python/features_table.py | victorpoughon/master-thesis | 61565db7dd2ce0909dacfb2a33f10c66bfb11a34 | [
"MIT"
] | null | null | null | python/features_table.py | victorpoughon/master-thesis | 61565db7dd2ce0909dacfb2a33f10c66bfb11a34 | [
"MIT"
] | null | null | null | python/features_table.py | victorpoughon/master-thesis | 61565db7dd2ce0909dacfb2a33f10c66bfb11a34 | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
import sys
import os
import os.path
import numpy as np
from features_common import match_angle, spatial_coverage
def make_features_table(root, subdirs, outlier_threshold, fraction_limit):
"""
Make the features table for the given image pair directory
and list of subdirs (from os.wa... | 36.929825 | 153 | 0.661758 |
1df86b3ab255825726900ed836398e160df36a56 | 376 | py | Python | iris_sdk/models/maps/sip_peer.py | NumberAI/python-bandwidth-iris | 0e05f79d68b244812afb97e00fd65b3f46d00aa3 | [
"MIT"
] | 2 | 2020-04-13T13:47:59.000Z | 2022-02-23T20:32:41.000Z | iris_sdk/models/maps/sip_peer.py | bandwidthcom/python-bandwidth-iris | dbcb30569631395041b92917252d913166f7d3c9 | [
"MIT"
] | 5 | 2020-09-18T20:59:24.000Z | 2021-08-25T16:51:42.000Z | iris_sdk/models/maps/sip_peer.py | bandwidthcom/python-bandwidth-iris | dbcb30569631395041b92917252d913166f7d3c9 | [
"MIT"
] | 5 | 2018-12-12T14:39:50.000Z | 2020-11-17T21:42:29.000Z | #!/usr/bin/env python
from iris_sdk.models.maps.base_map import BaseMap
class SipPeerMap(BaseMap):
address = None
calling_name = None
description = None
final_destination_uri = None
is_default_peer = None
peer_id = None
peer_name = None
short_messaging_protocol = None
sms_hosts = ... | 22.117647 | 49 | 0.710106 |
1df88022c2a7e7b38314935877524148da8036c5 | 10,133 | py | Python | sporco/prox/_lp.py | vishalbelsare/sporco | afc3dae3ab81d84a23e8487812670ecb7457e869 | [
"BSD-3-Clause"
] | 217 | 2016-06-13T16:41:26.000Z | 2022-03-22T06:31:05.000Z | sporco/prox/_lp.py | vishalbelsare/sporco | afc3dae3ab81d84a23e8487812670ecb7457e869 | [
"BSD-3-Clause"
] | 21 | 2016-06-13T23:28:35.000Z | 2022-02-17T23:20:01.000Z | sporco/prox/_lp.py | vishalbelsare/sporco | afc3dae3ab81d84a23e8487812670ecb7457e869 | [
"BSD-3-Clause"
] | 47 | 2016-12-14T13:08:33.000Z | 2021-12-12T01:59:49.000Z | # -*- coding: utf-8 -*-
# Copyright (C) 2015-2020 by Brendt Wohlberg <brendt@ieee.org>
# All rights reserved. BSD 3-clause License.
# This file is part of the SPORCO package. Details of the copyright
# and user license can be found in the 'LICENSE.txt' file distributed
# with the package.
r""":math:`\ell_p` norms (and... | 29.715543 | 78 | 0.594197 |
1df889974c41cac6edbda0e6510e792de0220d62 | 219 | py | Python | oscar/lib/python2.7/site-packages/phonenumbers/data/alt_format_63.py | sainjusajan/django-oscar | 466e8edc807be689b0a28c9e525c8323cc48b8e1 | [
"BSD-3-Clause"
] | null | null | null | oscar/lib/python2.7/site-packages/phonenumbers/data/alt_format_63.py | sainjusajan/django-oscar | 466e8edc807be689b0a28c9e525c8323cc48b8e1 | [
"BSD-3-Clause"
] | null | null | null | oscar/lib/python2.7/site-packages/phonenumbers/data/alt_format_63.py | sainjusajan/django-oscar | 466e8edc807be689b0a28c9e525c8323cc48b8e1 | [
"BSD-3-Clause"
] | null | null | null | """Auto-generated file, do not edit by hand. 63 metadata"""
from ..phonemetadata import NumberFormat
PHONE_ALT_FORMAT_63 = [NumberFormat(pattern='(\\d{4})(\\d{4})', format='\\1 \\2', leading_digits_pattern=['2'])]
| 43.8 | 113 | 0.684932 |
1df896d46a1874e6acb8668f8117435c082c0634 | 45,130 | py | Python | neutrino/main.py | joshuavictorchen/neutrino | 378081346787a66c186be2ef64338418ebf6321f | [
"MIT"
] | 1 | 2021-11-28T03:00:31.000Z | 2021-11-28T03:00:31.000Z | neutrino/main.py | joshuavictorchen/neutrino | 378081346787a66c186be2ef64338418ebf6321f | [
"MIT"
] | null | null | null | neutrino/main.py | joshuavictorchen/neutrino | 378081346787a66c186be2ef64338418ebf6321f | [
"MIT"
] | null | null | null | import neutrino.config as c
import neutrino.tools as t
import os
import pandas as pd
import time
import traceback
from copy import deepcopy
from datetime import datetime
from neutrino.datum import Datum
from neutrino.link import Link
from neutrino.stream import Stream
from neutrino.updater import Updater
from pathlib i... | 42.89924 | 173 | 0.565876 |
1df8feee71927d1489418195b538dca7499b2090 | 21,670 | py | Python | model/resnet.py | ThoroughImages/NetFrame | c5c75c71e70c3ca623cf39e9a83d1356992907aa | [
"MIT"
] | 7 | 2020-04-24T09:00:09.000Z | 2021-09-22T16:43:12.000Z | model/resnet.py | ThoroughImages/NetFrame | c5c75c71e70c3ca623cf39e9a83d1356992907aa | [
"MIT"
] | 4 | 2020-09-25T22:41:29.000Z | 2022-02-09T23:47:28.000Z | model/resnet.py | ThoroughImages/NetFrame | c5c75c71e70c3ca623cf39e9a83d1356992907aa | [
"MIT"
] | 6 | 2020-04-24T09:00:14.000Z | 2021-04-26T15:30:26.000Z | #coding:utf-8
from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
import collections
import tensorflow as tf
slim = tf.contrib.slim
class Block(collections.namedtuple('Block', ['scope', 'unit_fn', 'args'])):
"""A named tuple describing a ResNet block.
I... | 47.417943 | 80 | 0.679142 |
1df911887c360805528d4512aa7052d5d5b53919 | 1,623 | py | Python | pygenesys/technology/thermal.py | arfc/pygenesys | 2ac0c1fbe7c2dffd0135cf8c52d2c8b31cc31ab4 | [
"BSD-3-Clause"
] | 1 | 2021-05-27T18:28:48.000Z | 2021-05-27T18:28:48.000Z | pygenesys/technology/thermal.py | arfc/pygenesys | 2ac0c1fbe7c2dffd0135cf8c52d2c8b31cc31ab4 | [
"BSD-3-Clause"
] | 34 | 2021-05-31T18:52:46.000Z | 2022-03-07T17:57:13.000Z | pygenesys/technology/thermal.py | arfc/pygenesys | 2ac0c1fbe7c2dffd0135cf8c52d2c8b31cc31ab4 | [
"BSD-3-Clause"
] | 2 | 2021-05-27T18:30:46.000Z | 2021-06-01T14:09:48.000Z | """
This file contains information for pre-made thermal energy production
technologies.These technologies generate thermal energy as the primary energy
carrier.
Possible confusion:
* NUCLEAR_THM produces thermal energy (e.g. steam) and is written in
this file.
* NUCLEAR_ELC produces electricity and... | 36.886364 | 77 | 0.540974 |
1df913015bc58315974a6c27dc98580b86acbd68 | 2,622 | py | Python | fileshare/notification/utils.py | nijatrajab/fileshare | f364788f318ffe8b731ccb68e9c275bfa73c0292 | [
"MIT"
] | 1 | 2021-07-08T06:51:28.000Z | 2021-07-08T06:51:28.000Z | fileshare/notification/utils.py | nijatrajab/fileshareproject | f364788f318ffe8b731ccb68e9c275bfa73c0292 | [
"MIT"
] | null | null | null | fileshare/notification/utils.py | nijatrajab/fileshareproject | f364788f318ffe8b731ccb68e9c275bfa73c0292 | [
"MIT"
] | null | null | null | from django.core.serializers.python import Serializer
from django.contrib.humanize.templatetags.humanize import naturaltime
class LazyNotificationEncoder(Serializer):
def get_dump_object(self, obj):
dump_object = {}
if obj.get_content_object_type() == "FriendRequest":
dump_object.updat... | 45.206897 | 86 | 0.573227 |
1df92728d7fb5526536474f387a57c0418ddf780 | 6,506 | py | Python | lstms_exploit_linguistic_attributes/embedding_rnn.py | nelson-liu/LSTMs-exploit-linguistic-attributes | 227ef83654f7db4510e18f44fcc994bdc4d6c54a | [
"MIT"
] | 5 | 2018-06-13T19:44:02.000Z | 2019-09-02T21:33:41.000Z | lstms_exploit_linguistic_attributes/embedding_rnn.py | nelson-liu/LSTMs-exploit-linguistic-attributes | 227ef83654f7db4510e18f44fcc994bdc4d6c54a | [
"MIT"
] | null | null | null | lstms_exploit_linguistic_attributes/embedding_rnn.py | nelson-liu/LSTMs-exploit-linguistic-attributes | 227ef83654f7db4510e18f44fcc994bdc4d6c54a | [
"MIT"
] | 3 | 2018-08-29T21:48:26.000Z | 2018-11-12T21:59:17.000Z | import torch
import torch.nn as nn
from torch.nn.utils.rnn import pack_padded_sequence as pack
from torch.nn.utils.rnn import pad_packed_sequence as pad
class EmbeddingRNN(nn.Module):
"""
This Module is a simple wrapper around a RNN that
accepts an embedding matrix and variable-length input
with token... | 38.046784 | 78 | 0.587304 |
1df9add4ef7ba56c68b966626bfbd57cb88b1cbc | 7,462 | py | Python | tests/test_provider_chanzuckerberg_snowflake.py | mjuenema/python-terrascript | 6d8bb0273a14bfeb8ff8e950fe36f97f7c6e7b1d | [
"BSD-2-Clause"
] | 507 | 2017-07-26T02:58:38.000Z | 2022-01-21T12:35:13.000Z | tests/test_provider_chanzuckerberg_snowflake.py | mjuenema/python-terrascript | 6d8bb0273a14bfeb8ff8e950fe36f97f7c6e7b1d | [
"BSD-2-Clause"
] | 135 | 2017-07-20T12:01:59.000Z | 2021-10-04T22:25:40.000Z | tests/test_provider_chanzuckerberg_snowflake.py | mjuenema/python-terrascript | 6d8bb0273a14bfeb8ff8e950fe36f97f7c6e7b1d | [
"BSD-2-Clause"
] | 81 | 2018-02-20T17:55:28.000Z | 2022-01-31T07:08:40.000Z | # tests/test_provider_chanzuckerberg_snowflake.py
# Automatically generated by tools/makecode.py (24-Sep-2021 15:27:18 UTC)
def test_provider_import():
import terrascript.provider.chanzuckerberg.snowflake
def test_resource_import():
from terrascript.resource.chanzuckerberg.snowflake import snowflake_account... | 35.703349 | 88 | 0.817609 |
1df9b298bc5b4cfa194b7b03314818fea90554fd | 17 | py | Python | common/version.py | pythings/PythingsOS | 276b41a32af7fa0d5395b2bb308e611f784f9711 | [
"Apache-2.0"
] | 11 | 2020-01-15T14:25:48.000Z | 2021-11-25T04:21:18.000Z | common/version.py | Pythings/PythingsOS | 276b41a32af7fa0d5395b2bb308e611f784f9711 | [
"Apache-2.0"
] | 8 | 2021-02-04T16:41:57.000Z | 2022-03-29T21:57:15.000Z | common/version.py | pythings/PythingsOS | 276b41a32af7fa0d5395b2bb308e611f784f9711 | [
"Apache-2.0"
] | null | null | null | version='v1.1.0'
| 8.5 | 16 | 0.647059 |
1df9da723e83f96082c2e0775a5a27db1164e2f2 | 710 | py | Python | xos/services/onos/migrations/0001_initial.py | xmaruto/mcord | 3678a3d10c3703c2b73f396c293faebf0c82a4f4 | [
"Apache-2.0"
] | null | null | null | xos/services/onos/migrations/0001_initial.py | xmaruto/mcord | 3678a3d10c3703c2b73f396c293faebf0c82a4f4 | [
"Apache-2.0"
] | null | null | null | xos/services/onos/migrations/0001_initial.py | xmaruto/mcord | 3678a3d10c3703c2b73f396c293faebf0c82a4f4 | [
"Apache-2.0"
] | null | null | null | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import models, migrations
class Migration(migrations.Migration):
dependencies = [
('core', '0001_initial'),
]
operations = [
migrations.CreateModel(
name='ONOSApp',
fields=[
... | 20.882353 | 47 | 0.446479 |
1df9ecb52e21fa99d1b1a6f17990744ed7832b4d | 125 | py | Python | chapter3/transfic/transfic/blt.py | chris-zen/phd-thesis | 1eefdff8e7ca1910304e27ae42551dc64496b101 | [
"Unlicense"
] | 1 | 2015-12-22T00:53:18.000Z | 2015-12-22T00:53:18.000Z | chapter3/transfic/transfic/blt.py | chris-zen/phd-thesis | 1eefdff8e7ca1910304e27ae42551dc64496b101 | [
"Unlicense"
] | null | null | null | chapter3/transfic/transfic/blt.py | chris-zen/phd-thesis | 1eefdff8e7ca1910304e27ae42551dc64496b101 | [
"Unlicense"
] | null | null | null | import json
def load_blt_stats(path):
with open(path) as f:
doc = json.load(f)
blt_stats = doc["blt"]
return blt_stats | 17.857143 | 25 | 0.704 |
1df9f4e17676baeec7507a7076bec62d008577bd | 12,438 | py | Python | services/traction/acapy_client/model/v20_cred_bound_offer_request.py | Open-Earth-Foundation/traction | 908b555a7f408a88541b7692d3730e37a297c919 | [
"Apache-2.0"
] | 12 | 2022-01-29T20:30:03.000Z | 2022-03-29T11:46:14.000Z | services/traction/acapy_client/model/v20_cred_bound_offer_request.py | Open-Earth-Foundation/traction | 908b555a7f408a88541b7692d3730e37a297c919 | [
"Apache-2.0"
] | 38 | 2021-11-22T17:52:50.000Z | 2022-03-31T17:52:00.000Z | services/traction/acapy_client/model/v20_cred_bound_offer_request.py | Open-Earth-Foundation/traction | 908b555a7f408a88541b7692d3730e37a297c919 | [
"Apache-2.0"
] | 9 | 2021-11-22T18:05:48.000Z | 2022-03-29T11:25:08.000Z | """
Aries Cloud Agent
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
The version of the OpenAPI document: v0.7.2
Generated by: https://openapi-generator.tech
"""
import re # noqa: F401
import sys # noqa: F401
from acapy_cli... | 43.038062 | 164 | 0.569706 |
1dfa042efabd5d7f7863dd8a2aa89b852c74df2f | 8,003 | py | Python | venv/lib/python3.6/site-packages/kubernetes/client/models/v1_quobyte_volume_source.py | DiptoChakrabarty/Kube-Automate | 2072d1aadd58eb405c7308ff5cfecbf50300ead3 | [
"MIT"
] | null | null | null | venv/lib/python3.6/site-packages/kubernetes/client/models/v1_quobyte_volume_source.py | DiptoChakrabarty/Kube-Automate | 2072d1aadd58eb405c7308ff5cfecbf50300ead3 | [
"MIT"
] | null | null | null | venv/lib/python3.6/site-packages/kubernetes/client/models/v1_quobyte_volume_source.py | DiptoChakrabarty/Kube-Automate | 2072d1aadd58eb405c7308ff5cfecbf50300ead3 | [
"MIT"
] | null | null | null | # coding: utf-8
"""
Kubernetes
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
OpenAPI spec version: release-1.15
Generated by: https://openapi-generator.tech
"""
import pprint
import re # noqa: F401
import six
class V1Quo... | 31.140078 | 220 | 0.605148 |
1dfa10931d083b8d626298aa6d8d197f82e6a4fb | 3,405 | py | Python | main_chexpert.py | marshuang80/ml-scl | ca6a3cbd82a7afa4f3d1e5e3385ddea7376da653 | [
"Apache-2.0"
] | 2 | 2020-11-09T20:35:41.000Z | 2021-10-05T15:35:55.000Z | main_chexpert.py | marshuang80/ml-scl | ca6a3cbd82a7afa4f3d1e5e3385ddea7376da653 | [
"Apache-2.0"
] | 1 | 2021-10-10T09:51:47.000Z | 2021-10-10T09:51:47.000Z | main_chexpert.py | marshuang80/ml-scl | ca6a3cbd82a7afa4f3d1e5e3385ddea7376da653 | [
"Apache-2.0"
] | 1 | 2021-10-20T11:41:27.000Z | 2021-10-20T11:41:27.000Z | """Training script for CheXpert"""
import argparse
import numpy as np
import pandas as pd
import torch
import tqdm
import util
from constants import *
from args import CheXpertTrainArgParser
from dataset.chexpert import get_dataloader
from logger import Logger
from models import... | 29.353448 | 80 | 0.600587 |
1dfa764db9104917e6ea98ddd9651b8bf55b59b4 | 5,827 | py | Python | channelmanager.py | Dabomstew/goldenrod | 36c4f9e5321788779840371b09a78cc6b26b38b1 | [
"MIT"
] | 2 | 2015-05-20T00:42:03.000Z | 2015-05-23T04:18:42.000Z | channelmanager.py | Dabomstew/goldenrod | 36c4f9e5321788779840371b09a78cc6b26b38b1 | [
"MIT"
] | null | null | null | channelmanager.py | Dabomstew/goldenrod | 36c4f9e5321788779840371b09a78cc6b26b38b1 | [
"MIT"
] | null | null | null | import config
import datetime, time
import requests, json
class ChannelManager:
def __init__(self, conn, cursor, lock, channelInstances):
self.conn = conn
self.cursor = cursor
self.lock = lock
self.channelInstances = channelInstances
def run(self):
... | 47.762295 | 207 | 0.449288 |
1dfa79cc4cdfca69a18e5b77b17ae5ed0c7ea3e4 | 302 | py | Python | textwiser/transformations/lda.py | vishalbelsare/textwiser | da500f24c8d35d29e3ff77702b7c5ece244562cc | [
"Apache-2.0"
] | 24 | 2020-07-02T13:31:46.000Z | 2022-03-25T02:27:24.000Z | textwiser/transformations/lda.py | fmr-llc/textwiser | 2c5bdd73c26bd3fb7bd2f324f57d99233aa9c17f | [
"Apache-2.0"
] | 5 | 2020-07-23T16:43:02.000Z | 2022-02-23T17:05:38.000Z | textwiser/transformations/lda.py | fmr-llc/textwiser | 2c5bdd73c26bd3fb7bd2f324f57d99233aa9c17f | [
"Apache-2.0"
] | 6 | 2021-01-03T08:09:39.000Z | 2022-03-25T02:18:59.000Z | # Copyright 2019 FMR LLC <opensource@fidelity.com>
# SPDX-License-Identifer: Apache-2.0
from sklearn.decomposition import LatentDirichletAllocation
from textwiser.transformations.nmf import _ScikitTransformation
class _LDATransformation(_ScikitTransformation):
Model = LatentDirichletAllocation
| 30.2 | 63 | 0.844371 |
1dfa7d5f9d0c6bcd1e0b5a5fbc599f30dfb05aeb | 6,815 | py | Python | bp_unit_tests/level_1/unit_test_dot.py | nicholas-moreles/blaspy | c4af6258e17dd996c4b6d90bbaae15b31b8702b4 | [
"BSD-3-Clause"
] | 4 | 2015-01-25T12:44:44.000Z | 2022-03-19T08:36:19.000Z | bp_unit_tests/level_1/unit_test_dot.py | nicholas-moreles/blaspy | c4af6258e17dd996c4b6d90bbaae15b31b8702b4 | [
"BSD-3-Clause"
] | 7 | 2015-01-20T13:35:39.000Z | 2015-05-31T17:11:50.000Z | bp_unit_tests/level_1/unit_test_dot.py | nicholas-moreles/blaspy | c4af6258e17dd996c4b6d90bbaae15b31b8702b4 | [
"BSD-3-Clause"
] | null | null | null | """
Copyright (c) 2014-2015, The University of Texas at Austin.
All rights reserved.
This file is part of BLASpy and is available under the 3-Clause
BSD License, which can be found in the LICENSE file at the top-level
directory or at http://opensource.org/licenses/BSD-3-Clause
"""
from blaspy im... | 35.868421 | 72 | 0.567572 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.