hexsha stringlengths 40 40 | size int64 5 2.06M | ext stringclasses 11
values | lang stringclasses 1
value | max_stars_repo_path stringlengths 3 251 | max_stars_repo_name stringlengths 4 130 | max_stars_repo_head_hexsha stringlengths 40 78 | max_stars_repo_licenses listlengths 1 10 | max_stars_count int64 1 191k ⌀ | 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 3 251 | max_issues_repo_name stringlengths 4 130 | max_issues_repo_head_hexsha stringlengths 40 78 | max_issues_repo_licenses listlengths 1 10 | max_issues_count int64 1 116k ⌀ | 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 3 251 | max_forks_repo_name stringlengths 4 130 | max_forks_repo_head_hexsha stringlengths 40 78 | max_forks_repo_licenses listlengths 1 10 | max_forks_count int64 1 105k ⌀ | max_forks_repo_forks_event_min_datetime stringlengths 24 24 ⌀ | max_forks_repo_forks_event_max_datetime stringlengths 24 24 ⌀ | content stringlengths 1 1.05M | avg_line_length float64 1 1.02M | max_line_length int64 3 1.04M | alphanum_fraction float64 0 1 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
cbdf9ff14b79b043642bf4e92833f21eebe9c6f0 | 621 | py | Python | build_automation/content_management/migrations/0046_auto_20200228_1432.py | SolarSPELL-Main/DLMS | 7e799246c55f5a64fa236567c411d1c2a2c4f38f | [
"MIT"
] | null | null | null | build_automation/content_management/migrations/0046_auto_20200228_1432.py | SolarSPELL-Main/DLMS | 7e799246c55f5a64fa236567c411d1c2a2c4f38f | [
"MIT"
] | 9 | 2020-01-15T21:33:16.000Z | 2021-06-10T22:13:28.000Z | build_automation/content_management/migrations/0046_auto_20200228_1432.py | SolarSPELL-Main/DLMS | 7e799246c55f5a64fa236567c411d1c2a2c4f38f | [
"MIT"
] | 3 | 2019-11-16T03:54:48.000Z | 2021-09-10T18:53:20.000Z | # Generated by Django 2.1.3 on 2020-02-28 21:32
from django.db import migrations, models
import django.db.models.deletion
| 25.875 | 129 | 0.63124 |
cbe454fc38406286a1921bff834cf81ed53fb858 | 12,700 | py | Python | pycudadecon/deconvolution.py | zbarry/pycudadecon | 9259a579a3bb2122a2251beb5b910ba2e5828ad3 | [
"MIT"
] | 46 | 2019-03-04T04:54:39.000Z | 2022-02-28T04:44:27.000Z | pycudadecon/deconvolution.py | zbarry/pycudadecon | 9259a579a3bb2122a2251beb5b910ba2e5828ad3 | [
"MIT"
] | 18 | 2019-03-08T04:31:23.000Z | 2022-02-07T06:43:15.000Z | pycudadecon/deconvolution.py | zbarry/pycudadecon | 9259a579a3bb2122a2251beb5b910ba2e5828ad3 | [
"MIT"
] | 9 | 2019-03-06T03:07:59.000Z | 2022-03-11T17:02:21.000Z | import os
from fnmatch import fnmatch
from typing import Iterator, List, Optional, Sequence, Tuple, Union
import numpy as np
from typing_extensions import Literal
from . import lib
from .otf import TemporaryOTF
from .util import PathOrArray, _kwargs_for, imread
def rl_cleanup():
"""Release GPU buffer and cleanu... | 31.127451 | 88 | 0.613228 |
cbe6b0eea93a98eae975c5a09c446c6929e03ea6 | 816 | py | Python | deep_learning_with_tensorFlow/Chapter05/p11302.py | pearpai/TensorFlow-action | 264099d933988532ed59eaf0f2ad495d40ede4d2 | [
"Apache-2.0"
] | 3 | 2018-06-07T07:15:00.000Z | 2018-10-09T07:59:50.000Z | deep_learning_with_tensorFlow/Chapter05/p11302.py | pearpai/TensorFlow-action | 264099d933988532ed59eaf0f2ad495d40ede4d2 | [
"Apache-2.0"
] | null | null | null | deep_learning_with_tensorFlow/Chapter05/p11302.py | pearpai/TensorFlow-action | 264099d933988532ed59eaf0f2ad495d40ede4d2 | [
"Apache-2.0"
] | 4 | 2017-04-23T05:30:41.000Z | 2018-09-27T07:13:37.000Z | # coding=utf-8
import tensorflow as tf
v = tf.Variable(0, dtype=tf.float32, name='v3')
# vv:0
for variables in tf.global_variables():
print(variables.name)
ema = tf.train.ExponentialMovingAverage(0.99)
#
maintain_averages_op = ema.apply(tf.global_variables())
# TensorFlow
# v/ExponentialMovingAverage
# v:0 v/E... | 29.142857 | 55 | 0.75 |
1dab593015997d8eba3dbafe4c8fcbe0f12b7e14 | 35 | py | Python | build/lib/zorb/models/__init__.py | varunranga/zorb | ffad98d15c3200eafc1b10c68860ce34ebf78f62 | [
"MIT"
] | 3 | 2021-05-13T16:28:39.000Z | 2022-02-18T23:10:35.000Z | src/zorb/models/__init__.py | varunranga/zorb | ffad98d15c3200eafc1b10c68860ce34ebf78f62 | [
"MIT"
] | null | null | null | src/zorb/models/__init__.py | varunranga/zorb | ffad98d15c3200eafc1b10c68860ce34ebf78f62 | [
"MIT"
] | null | null | null | from .Sequential import Sequential
| 17.5 | 34 | 0.857143 |
1dae9ce676e6495c35381a8c5c2d8862347c3bd0 | 28 | py | Python | oarepo_whitenoise/__init__.py | oarepo/oarepo-whitenoise | e72a875edc2a8db3c7805c65ed7e73927d20f056 | [
"MIT"
] | null | null | null | oarepo_whitenoise/__init__.py | oarepo/oarepo-whitenoise | e72a875edc2a8db3c7805c65ed7e73927d20f056 | [
"MIT"
] | null | null | null | oarepo_whitenoise/__init__.py | oarepo/oarepo-whitenoise | e72a875edc2a8db3c7805c65ed7e73927d20f056 | [
"MIT"
] | 1 | 2021-06-28T12:21:33.000Z | 2021-06-28T12:21:33.000Z | """Nothing here, really."""
| 14 | 27 | 0.607143 |
1daff2d7a44c6c02cc6f43b03cc6ccde6dd9165f | 1,748 | py | Python | assets/src/ba_data/python/bastd/mapdata/rampage.py | Benefit-Zebra/ballistica | eb85df82cff22038e74a2d93abdcbe9cd755d782 | [
"MIT"
] | 317 | 2020-04-04T00:33:10.000Z | 2022-03-28T01:07:09.000Z | assets/src/ba_data/python/bastd/mapdata/rampage.py | Alshahriah/ballistica | 326f6677a0118667e93ce9034849622ebef706fa | [
"MIT"
] | 315 | 2020-04-04T22:33:10.000Z | 2022-03-31T22:50:02.000Z | assets/src/ba_data/python/bastd/mapdata/rampage.py | Alshahriah/ballistica | 326f6677a0118667e93ce9034849622ebef706fa | [
"MIT"
] | 97 | 2020-04-04T01:32:17.000Z | 2022-03-16T19:02:59.000Z | # Released under the MIT License. See LICENSE for details.
#
# This file was automatically generated from "rampage.ma"
# pylint: disable=all
points = {}
# noinspection PyDictCreation
boxes = {}
boxes['area_of_interest_bounds'] = (0.3544110667, 5.616383286,
-4.066055072) + (0.0, 0.0,... | 52.969697 | 77 | 0.638444 |
1db107f2c1e2018df51dd16f8e25f706a3117779 | 7,945 | py | Python | PyFlow/UI/Widgets/GraphEditor_ui.py | dlario/PyFlow | b53b9d14b37aa586426d85842c6cd9a9c35443f2 | [
"MIT"
] | null | null | null | PyFlow/UI/Widgets/GraphEditor_ui.py | dlario/PyFlow | b53b9d14b37aa586426d85842c6cd9a9c35443f2 | [
"MIT"
] | null | null | null | PyFlow/UI/Widgets/GraphEditor_ui.py | dlario/PyFlow | b53b9d14b37aa586426d85842c6cd9a9c35443f2 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
# Form implementation generated from reading ui file 'e:/GIT/PyFlow/PyFlow/UI/Widgets\GraphEditor_ui.ui',
# licensing of 'e:/GIT/PyFlow/PyFlow/UI/Widgets\GraphEditor_ui.ui' applies.
#
# Created: Sat May 4 12:25:24 2019
# by: pyside2-uic running on PySide2 5.12.0
#
# WARNING! All changes ... | 60.648855 | 148 | 0.746633 |
1db11b3357bbf28fcc5549063a419c83717d2922 | 995 | py | Python | computer_wordle.py | AntonKueltz/computer-wordle-client | 5cd88d779f529de2c19b82d599ff478476cb0feb | [
"MIT"
] | null | null | null | computer_wordle.py | AntonKueltz/computer-wordle-client | 5cd88d779f529de2c19b82d599ff478476cb0feb | [
"MIT"
] | null | null | null | computer_wordle.py | AntonKueltz/computer-wordle-client | 5cd88d779f529de2c19b82d599ff478476cb0feb | [
"MIT"
] | 2 | 2022-02-03T01:36:51.000Z | 2022-02-07T20:52:36.000Z | #!/usr/bin/env python3
import api
from urllib.parse import urljoin
GREEN = 'G'
YELLOW = 'Y'
GRAY = '.'
with open('wordlist.txt') as wordlist_file:
wordlist = tuple(line.strip() for line in wordlist_file)
| 26.184211 | 70 | 0.654271 |
1db1d266c16124792ba1fb342841f354a3bc0a8d | 1,450 | py | Python | src/validataclass/validators/date_validator.py | binary-butterfly/validataclass | 65b07973c66cb4b00404037207405cc4c9580e12 | [
"MIT"
] | null | null | null | src/validataclass/validators/date_validator.py | binary-butterfly/validataclass | 65b07973c66cb4b00404037207405cc4c9580e12 | [
"MIT"
] | 20 | 2021-11-08T15:58:38.000Z | 2022-03-02T16:56:15.000Z | src/validataclass/validators/date_validator.py | binary-butterfly/validataclass | 65b07973c66cb4b00404037207405cc4c9580e12 | [
"MIT"
] | null | null | null | """
validataclass
Copyright (c) 2021, binary butterfly GmbH and contributors
Use of this source code is governed by an MIT-style license that can be found in the LICENSE file.
"""
from datetime import date
from typing import Any
from .string_validator import StringValidator
from validataclass.exceptions import Invali... | 25.438596 | 109 | 0.658621 |
1db1f7c927cfaedb78f62fb3695b46b8ba415747 | 1,810 | py | Python | shimmer/apps/SimpleAccelGyro/simpleAccelGyroRecv.py | tinyos-io/tinyos-3.x-contrib | 3aaf036722a2afc0c0aad588459a5c3e00bd3c01 | [
"BSD-3-Clause",
"MIT"
] | 1 | 2020-02-28T20:35:09.000Z | 2020-02-28T20:35:09.000Z | shimmer/apps/SimpleAccelGyro/simpleAccelGyroRecv.py | tinyos-io/tinyos-3.x-contrib | 3aaf036722a2afc0c0aad588459a5c3e00bd3c01 | [
"BSD-3-Clause",
"MIT"
] | null | null | null | shimmer/apps/SimpleAccelGyro/simpleAccelGyroRecv.py | tinyos-io/tinyos-3.x-contrib | 3aaf036722a2afc0c0aad588459a5c3e00bd3c01 | [
"BSD-3-Clause",
"MIT"
] | null | null | null | #!/usr/bin/python
import sys, os, struct, array, time
try:
import tos
except ImportError:
import posix
sys.path = [os.path.join(posix.environ['TOSROOT'], 'support', 'sdk', 'python')] + sys.path
import tos
if len(sys.argv) < 2:
print "no device specified"
print "example:"
print " simpleAccelGyro... | 36.938776 | 131 | 0.508287 |
1db266d927adb6c005db3a33cf6739b15458b37f | 597 | py | Python | astronat/core/__init__.py | nstarman/astronat | 9e1f41c6de1ca6adbd2bf99414a4c9b61838abf6 | [
"BSD-3-Clause"
] | 1 | 2020-11-20T18:25:26.000Z | 2020-11-20T18:25:26.000Z | astronat/core/__init__.py | nstarman/astronat | 9e1f41c6de1ca6adbd2bf99414a4c9b61838abf6 | [
"BSD-3-Clause"
] | 3 | 2020-09-09T06:10:20.000Z | 2020-09-16T05:56:10.000Z | astronat/core/__init__.py | nstarman/astronat | 9e1f41c6de1ca6adbd2bf99414a4c9b61838abf6 | [
"BSD-3-Clause"
] | null | null | null | # -*- coding: utf-8 -*-
# see LICENSE.rst
"""Basic Astronomy Functions.
.. todo::
change this to C / pyx. whatever astropy's preferred C thing is.
"""
__author__ = ""
# __copyright__ = "Copyright 2018, "
# __credits__ = [""]
# __license__ = ""
# __version__ = "0.0.0"
# __maintainer__ = ""
# __email__ = ""
# __... | 15.710526 | 78 | 0.440536 |
1db2abb5c5f56c7175445d7b83c28b635555e35d | 28,922 | py | Python | CHEBYSHEV/TVB_Method/cheb_class.py | mtmoncur/RootFinding | 8d7c8f8d4fda158c83ff1a605f330db14b56ecc7 | [
"MIT"
] | null | null | null | CHEBYSHEV/TVB_Method/cheb_class.py | mtmoncur/RootFinding | 8d7c8f8d4fda158c83ff1a605f330db14b56ecc7 | [
"MIT"
] | null | null | null | CHEBYSHEV/TVB_Method/cheb_class.py | mtmoncur/RootFinding | 8d7c8f8d4fda158c83ff1a605f330db14b56ecc7 | [
"MIT"
] | null | null | null | import numpy as np
import itertools
from numpy.polynomial import chebyshev as cheb
"""
Module for defining the class of Chebyshev polynomials, as well as various related
classes and methods, including:
Classes:
-------
Polynomial: Superclass for MultiPower and MultiCheb. Contains methods and
... | 31.817382 | 118 | 0.577069 |
1db3723a72818283ab89562ed96cdc5069ece039 | 5,072 | py | Python | 18-Make-and-build/42-Latex/run_45-Copy-latex-typo3-stuff.py | marble/Toolchain_RenderDocumentation | 1b206c0478b7418a628233e9e1fd36eeb4224185 | [
"MIT"
] | null | null | null | 18-Make-and-build/42-Latex/run_45-Copy-latex-typo3-stuff.py | marble/Toolchain_RenderDocumentation | 1b206c0478b7418a628233e9e1fd36eeb4224185 | [
"MIT"
] | 9 | 2016-09-05T19:24:57.000Z | 2018-12-05T16:11:55.000Z | 18-Make-and-build/42-Latex/run_45-Copy-latex-typo3-stuff.py | marble/Toolchain_RenderDocumentation | 1b206c0478b7418a628233e9e1fd36eeb4224185 | [
"MIT"
] | 2 | 2017-04-08T10:12:48.000Z | 2020-08-14T13:10:42.000Z | #!/usr/bin/env python
# coding: utf-8
from __future__ import print_function
from __future__ import absolute_import
import os
import re
import shutil
import stat
import sys
import tct
from os.path import exists as ospe, join as ospj
from tct import deepget
params = tct.readjson(sys.argv[1])
binabspath = sys.argv[2]
... | 30.371257 | 115 | 0.536475 |
1db591283c587148c660788ee47bee65cf843d14 | 693 | py | Python | src/tact/server/websocket.py | wabain/tact | bd95608bebc640e47f31f6d0a403108fe998188d | [
"MIT"
] | null | null | null | src/tact/server/websocket.py | wabain/tact | bd95608bebc640e47f31f6d0a403108fe998188d | [
"MIT"
] | null | null | null | src/tact/server/websocket.py | wabain/tact | bd95608bebc640e47f31f6d0a403108fe998188d | [
"MIT"
] | null | null | null | """Base definitions for the websocket interface"""
import json
from abc import ABC, abstractmethod
| 27.72 | 69 | 0.695527 |
1db65875e73e38c64b16e13b346efb8fec1b7649 | 10,312 | py | Python | wiimatch/match.py | mcara/wiimatch | c6126a6148588d60dbed68c46a7da14f71410f7f | [
"BSD-3-Clause"
] | 2 | 2019-08-14T12:46:05.000Z | 2021-03-30T18:17:47.000Z | wiimatch/match.py | mcara/wiimatch | c6126a6148588d60dbed68c46a7da14f71410f7f | [
"BSD-3-Clause"
] | 4 | 2019-08-07T11:37:34.000Z | 2019-08-21T16:54:56.000Z | wiimatch/match.py | mcara/wiimatch | c6126a6148588d60dbed68c46a7da14f71410f7f | [
"BSD-3-Clause"
] | 2 | 2019-08-05T16:44:14.000Z | 2019-08-21T13:13:21.000Z | """
A module that provides main API for optimal (LSQ) "matching" of weighted
N-dimensional image intensity data using (multivariate) polynomials.
:Author: Mihai Cara (contact: help@stsci.edu)
:License: :doc:`../LICENSE`
"""
import numpy as np
from .lsq_optimizer import build_lsq_eqs, pinv_solve, rlu_solve
__all__... | 39.060606 | 79 | 0.624903 |
1db68436f9947e25427cf7df6c8bf3c1b129ddd8 | 2,705 | py | Python | tests/test_utils.py | plus3it/WatchMaker | 0b9d773642709e5b2a2f4a9aac4d682917901b72 | [
"Apache-2.0"
] | 39 | 2017-03-07T15:39:47.000Z | 2022-02-03T00:51:33.000Z | tests/test_utils.py | plus3it/WatchMaker | 0b9d773642709e5b2a2f4a9aac4d682917901b72 | [
"Apache-2.0"
] | 851 | 2016-06-01T00:35:46.000Z | 2022-03-28T12:03:17.000Z | tests/test_utils.py | eemperor/watchmaker | a007297bd4549e064019d8212ca8cb4da4636686 | [
"Apache-2.0"
] | 55 | 2016-06-01T14:15:46.000Z | 2021-12-23T14:31:26.000Z | # -*- coding: utf-8 -*-
# pylint: disable=redefined-outer-name,protected-access
"""Salt worker main test module."""
from __future__ import (absolute_import, division, print_function,
unicode_literals, with_statement)
import watchmaker.utils
try:
from unittest.mock import patch
except Impor... | 37.569444 | 75 | 0.737893 |
1db85436a1e7560cd1e4c27e632933b72b6c79d7 | 18,256 | py | Python | shop/src/transaction_logic.py | gryan12/anonymous_ecommerce | 9c46589f6005fd0f7433e024e0d705fdd6038e53 | [
"Apache-2.0"
] | null | null | null | shop/src/transaction_logic.py | gryan12/anonymous_ecommerce | 9c46589f6005fd0f7433e024e0d705fdd6038e53 | [
"Apache-2.0"
] | null | null | null | shop/src/transaction_logic.py | gryan12/anonymous_ecommerce | 9c46589f6005fd0f7433e024e0d705fdd6038e53 | [
"Apache-2.0"
] | null | null | null | import logging
import random
import time
import src.support.outbound_routing as ob
from src.support.creds import build_cred, build_proof_request, build_schema, build_credential_proposal, build_proof_proposal
import src.support.settings as config
# This file containst the functions that perform transaction-specific
# ... | 35.51751 | 124 | 0.663453 |
1db911440c02b6ae5ac0e07ff149aaf4416a4ce3 | 2,843 | py | Python | pymath/renders.py | Lafrite/pyMath | 9888e12661d07754568493ab47b5d896349d3784 | [
"Apache-2.0"
] | null | null | null | pymath/renders.py | Lafrite/pyMath | 9888e12661d07754568493ab47b5d896349d3784 | [
"Apache-2.0"
] | null | null | null | pymath/renders.py | Lafrite/pyMath | 9888e12661d07754568493ab47b5d896349d3784 | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python
# encoding: utf-8
from .render import Render
from .fraction import Fraction
from .generic import first_elem, last_elem
__all__ = ['post2in_fix', 'tex_render', 'txt_render']
# ------------------------
# A infix to postfix list convertor
p2i_infix = {"+": "+", "-": "-", "*": "*", "/" : "/", ":":... | 27.336538 | 85 | 0.500528 |
1db923da6962bff441110d6f89fea97b0bd0f082 | 1,813 | py | Python | examples/wide_and_deep_example.py | meta-soul/MetaSpore | e6fbc12c6a3139df76c87215b16f9dba65962ec7 | [
"Apache-2.0"
] | 32 | 2022-03-30T10:24:00.000Z | 2022-03-31T16:19:15.000Z | examples/wide_and_deep_example.py | meta-soul/MetaSpore | e6fbc12c6a3139df76c87215b16f9dba65962ec7 | [
"Apache-2.0"
] | null | null | null | examples/wide_and_deep_example.py | meta-soul/MetaSpore | e6fbc12c6a3139df76c87215b16f9dba65962ec7 | [
"Apache-2.0"
] | 3 | 2022-03-30T10:28:57.000Z | 2022-03-30T11:37:39.000Z | #
# To run locally, execute:
#
# spark-submit --master local[2] wide_and_deep_example.py
#
S3_ROOT_DIR = 's3://{YOUR_S3_BUCKET}/{YOUR_S3_PATH}/'
batch_size = 100
worker_count = 1
server_count = 1
import metaspore as ms
spark = ms.spark.get_session(batch_size=batch_size,
worker_count=wo... | 37.770833 | 92 | 0.665196 |
1db9945d0a006ee0eef48ac4ca55f27881406e8a | 1,213 | py | Python | O3/_10_bias_variance_tradeoff/bias_variance_tradeoff.py | ShAlireza/ML-Tries | 4516be7a3275c9bdedd7bd258800be384b6b34f0 | [
"MIT"
] | null | null | null | O3/_10_bias_variance_tradeoff/bias_variance_tradeoff.py | ShAlireza/ML-Tries | 4516be7a3275c9bdedd7bd258800be384b6b34f0 | [
"MIT"
] | null | null | null | O3/_10_bias_variance_tradeoff/bias_variance_tradeoff.py | ShAlireza/ML-Tries | 4516be7a3275c9bdedd7bd258800be384b6b34f0 | [
"MIT"
] | null | null | null | """The bias-variance tradeoff
Often, researchers use the terms "bias" and "variance" or "bias-
variance tradeoff" to describe the performance of a modelthat
is, you may stumble upon talks, books, or articles where people
say that a model has a "high variance" or "high bias." So, what
does that mean... | 46.653846 | 82 | 0.751031 |
1db9aba6d555320304b7768349db8870cdc9782b | 496 | py | Python | pytronlinks/__init__.py | wahyubram82/PytronAI | 52953461727cda6f60fedf802b748352095ba6ec | [
"BSD-3-Clause"
] | 2 | 2016-12-04T03:03:40.000Z | 2018-05-21T15:28:45.000Z | pytronlinks/__init__.py | wahyubram82/PytronAI | 52953461727cda6f60fedf802b748352095ba6ec | [
"BSD-3-Clause"
] | 2 | 2019-02-24T17:04:03.000Z | 2021-04-12T13:00:08.000Z | pytronlinks/__init__.py | wahyubram82/PytronAI | 52953461727cda6f60fedf802b748352095ba6ec | [
"BSD-3-Clause"
] | 6 | 2016-11-20T15:08:29.000Z | 2020-07-08T12:36:30.000Z | # -*- coding: UTF-8 -*-
"""
Pytron - Links Mark II Interface
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Links for Python
:copyright: (c) 2016 by Scott Doucet / aka: traBpUkciP.
:license: BSD, see LICENSE for more details.
"""
from .client import *
__copyright__ = 'Copyright 2016 by traBpUkciP'
__versi... | 18.37037 | 59 | 0.612903 |
1db9f8268801e37ed09678dd7bdfdf9e618fd8da | 2,324 | py | Python | tests/test_nestedprops.py | atviriduomenys/spinta | 77a10e201f8cdc63143fce7996fd0898acb1ff58 | [
"MIT"
] | 2 | 2019-03-14T06:41:14.000Z | 2019-03-26T11:48:14.000Z | tests/test_nestedprops.py | sirex/spinta | 77a10e201f8cdc63143fce7996fd0898acb1ff58 | [
"MIT"
] | 44 | 2019-04-05T15:52:45.000Z | 2022-03-30T07:41:33.000Z | tests/test_nestedprops.py | sirex/spinta | 77a10e201f8cdc63143fce7996fd0898acb1ff58 | [
"MIT"
] | 1 | 2019-04-01T09:54:27.000Z | 2019-04-01T09:54:27.000Z | import pytest
| 24.463158 | 55 | 0.449656 |
1dba0895c59eec6cd5b80fa99e70f9f9b7bf6507 | 1,979 | py | Python | dockerpty/__init__.py | tedivm/dockerpty | f8d17d893c6758b7cc25825e99f6b02202632a97 | [
"Apache-2.0"
] | 129 | 2015-01-19T15:02:47.000Z | 2022-03-28T07:46:46.000Z | dockerpty/__init__.py | tedivm/dockerpty | f8d17d893c6758b7cc25825e99f6b02202632a97 | [
"Apache-2.0"
] | 52 | 2015-01-01T11:22:23.000Z | 2021-03-29T14:11:10.000Z | dockerpty/__init__.py | tedivm/dockerpty | f8d17d893c6758b7cc25825e99f6b02202632a97 | [
"Apache-2.0"
] | 71 | 2015-02-07T16:25:27.000Z | 2022-02-06T02:34:18.000Z | # dockerpty.
#
# Copyright 2014 Chris Corbyn <chris@w3style.co.uk>
#
# 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 ap... | 38.803922 | 97 | 0.71905 |
1dbcfb725076b81e8d7c56d6791f6316aa039467 | 3,639 | py | Python | django_documents_tools/utils.py | pik-software/django-documents-tools | 57b3083175d2562af635f0cdde74a681248a444e | [
"BSD-3-Clause"
] | 1 | 2019-12-07T15:51:08.000Z | 2019-12-07T15:51:08.000Z | django_documents_tools/utils.py | pik-software/django-documents-tools | 57b3083175d2562af635f0cdde74a681248a444e | [
"BSD-3-Clause"
] | 9 | 2019-12-06T10:53:08.000Z | 2020-07-06T06:47:45.000Z | django_documents_tools/utils.py | pik-software/django-documents-tools | 57b3083175d2562af635f0cdde74a681248a444e | [
"BSD-3-Clause"
] | null | null | null | import os
from collections import Counter
from django.core.exceptions import ValidationError
from django.utils import timezone
from django.utils.deconstruct import deconstructible
from django_documents_tools.exceptions import (
BusinessEntityCreationIsNotAllowedError)
from django_documents_tools.manager import se... | 38.712766 | 109 | 0.71091 |
1dbddad7e6aa4ab9f3b4b98398e41967db617fa0 | 2,989 | py | Python | database/models.py | zdresearch/Nettacker | 6d1653df01fee06ac6906a3cb1beebed39c166ef | [
"Apache-2.0"
] | 884 | 2020-09-26T01:12:09.000Z | 2022-03-31T07:39:23.000Z | database/models.py | GeauxWeisbeck4/Nettacker | 0d6a907f4528b42ff6460c8a1e58f73ae768b38e | [
"Apache-2.0"
] | 185 | 2018-04-18T12:16:27.000Z | 2020-09-25T10:37:23.000Z | database/models.py | GeauxWeisbeck4/Nettacker | 0d6a907f4528b42ff6460c8a1e58f73ae768b38e | [
"Apache-2.0"
] | 236 | 2020-09-26T22:19:29.000Z | 2022-03-30T08:21:28.000Z | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
from sqlalchemy.ext.declarative import declarative_base
from sqlalchemy import (Column,
Integer,
Text,
DateTime)
Base = declarative_base()
| 28.740385 | 122 | 0.573101 |
1dbf1d60e9c6955adb19358c161e8059577649ad | 12,712 | py | Python | umigame/plotting.py | penguinwang96825/Umigame | 98d647ab6f40df08fe31d6b3bc444afe229a914e | [
"Apache-2.0"
] | null | null | null | umigame/plotting.py | penguinwang96825/Umigame | 98d647ab6f40df08fe31d6b3bc444afe229a914e | [
"Apache-2.0"
] | null | null | null | umigame/plotting.py | penguinwang96825/Umigame | 98d647ab6f40df08fe31d6b3bc444afe229a914e | [
"Apache-2.0"
] | 1 | 2021-11-01T14:35:32.000Z | 2021-11-01T14:35:32.000Z | import matplotlib
import matplotlib.pyplot as plt
import seaborn as sns
import pandas as pd
import numpy as np
import empyrical as ep
from matplotlib.ticker import FuncFormatter
def plot_returns(returns,
live_start_date=None,
ax=None):
"""
Plots raw returns over time.
Bac... | 29.910588 | 87 | 0.590387 |
1dc11d56c934455980afcc662ca3cdb1b2a2b283 | 154 | py | Python | anuvaad-etl/anuvaad-extractor/document-processor/block-segmenter/src/routes/__init__.py | srihari-nagaraj/anuvaad | b09b01a033a033e97db6e404c088e0e6332053e4 | [
"MIT"
] | null | null | null | anuvaad-etl/anuvaad-extractor/document-processor/block-segmenter/src/routes/__init__.py | srihari-nagaraj/anuvaad | b09b01a033a033e97db6e404c088e0e6332053e4 | [
"MIT"
] | null | null | null | anuvaad-etl/anuvaad-extractor/document-processor/block-segmenter/src/routes/__init__.py | srihari-nagaraj/anuvaad | b09b01a033a033e97db6e404c088e0e6332053e4 | [
"MIT"
] | null | null | null | from .routes import Bolck_Segmenter_BLUEPRINT
from .routes import Bolck_Segmenter_BLUEPRINT_WF
#from .documentstructure import DOCUMENTSTRUCTURE_BLUEPRINT | 51.333333 | 59 | 0.902597 |
1dc23bb69793b971dce241628dbacc086c1774ec | 9,672 | py | Python | pysnmp/HPN-ICF-8021PAE-MIB.py | agustinhenze/mibs.snmplabs.com | 1fc5c07860542b89212f4c8ab807057d9a9206c7 | [
"Apache-2.0"
] | 11 | 2021-02-02T16:27:16.000Z | 2021-08-31T06:22:49.000Z | pysnmp/HPN-ICF-8021PAE-MIB.py | agustinhenze/mibs.snmplabs.com | 1fc5c07860542b89212f4c8ab807057d9a9206c7 | [
"Apache-2.0"
] | 75 | 2021-02-24T17:30:31.000Z | 2021-12-08T00:01:18.000Z | pysnmp/HPN-ICF-8021PAE-MIB.py | agustinhenze/mibs.snmplabs.com | 1fc5c07860542b89212f4c8ab807057d9a9206c7 | [
"Apache-2.0"
] | 10 | 2019-04-30T05:51:36.000Z | 2022-02-16T03:33:41.000Z | #
# PySNMP MIB module HPN-ICF-8021PAE-MIB (http://snmplabs.com/pysmi)
# ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/HPN-ICF-8021PAE-MIB
# Produced by pysmi-0.3.4 at Mon Apr 29 19:24:57 2019
# On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4
# Using Python version 3.7.3 (default... | 140.173913 | 1,548 | 0.770678 |
1dc275b3994ff3b09ff1c61b8cf96f51f28bcb83 | 5,978 | py | Python | spectools_ir/slab_fitter/helpers.py | erichegonzales/eriche-thesis | d3e1c67e05f4cf8f636a9365c819538f0f0affcb | [
"MIT"
] | 4 | 2021-06-02T10:45:22.000Z | 2022-01-20T13:49:13.000Z | spectools_ir/slab_fitter/helpers.py | erichegonzales/eriche-thesis | d3e1c67e05f4cf8f636a9365c819538f0f0affcb | [
"MIT"
] | null | null | null | spectools_ir/slab_fitter/helpers.py | erichegonzales/eriche-thesis | d3e1c67e05f4cf8f636a9365c819538f0f0affcb | [
"MIT"
] | null | null | null | import numpy as np
from astroquery.hitran import Hitran
from astropy import units as un
from astropy.constants import c, k_B, h, u
def calc_solid_angle(radius,distance):
'''
Convenience function to calculate solid angle from radius and distance, assuming a disk shape.
Parameters
----------
radius ... | 50.235294 | 138 | 0.457009 |
1dc2f03665e1c48e0dda7a55e8fc1d2784bcdfa3 | 6,513 | py | Python | tests/test_models.py | hramezani/django-voting | f07707cb84765be76f7e9e985dd0523842b02ae7 | [
"BSD-3-Clause"
] | null | null | null | tests/test_models.py | hramezani/django-voting | f07707cb84765be76f7e9e985dd0523842b02ae7 | [
"BSD-3-Clause"
] | null | null | null | tests/test_models.py | hramezani/django-voting | f07707cb84765be76f7e9e985dd0523842b02ae7 | [
"BSD-3-Clause"
] | null | null | null | # coding: utf-8
from __future__ import unicode_literals
from django.contrib.auth.models import User
from django.test import TestCase
from voting.models import Vote
from test_app.models import Item
# Basic voting ###############################################################
# Retrieval of votes #################... | 41.484076 | 99 | 0.595425 |
1dc32d294e6a71baf5f6ed3e4a11842ec769ac1d | 1,040 | py | Python | CodeIA/venv/Lib/site-packages/absl/testing/_parameterized_async.py | Finasty-lab/IA-Python | 286113504906fec11a5aa5fd1d12e38536b1c859 | [
"Apache-2.0"
] | 38,667 | 2015-01-01T00:15:34.000Z | 2022-03-31T22:57:03.000Z | update/venv/lib/python3.9/site-packages/absl/testing/_parameterized_async.py | azizhudai/material-design-icons | 63c5cb306073a9ecdfd3579f0f696746ab6305f6 | [
"Apache-2.0"
] | 1,192 | 2015-01-03T07:59:34.000Z | 2022-03-31T13:22:26.000Z | update/venv/lib/python3.9/site-packages/absl/testing/_parameterized_async.py | azizhudai/material-design-icons | 63c5cb306073a9ecdfd3579f0f696746ab6305f6 | [
"Apache-2.0"
] | 11,269 | 2015-01-01T08:41:17.000Z | 2022-03-31T16:12:52.000Z | # Lint as: python3
# Copyright 2020 The Abseil 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 l... | 30.588235 | 77 | 0.766346 |
1dc3eb0778658965db00b73aafa4a9ead618309c | 10,149 | py | Python | app/ImagePreprocessing.py | sadpotatoes/G6capstone-AI_Education | e6ae82a607b74a052a3bb4d7d7d5b2462b5b9e23 | [
"MIT"
] | null | null | null | app/ImagePreprocessing.py | sadpotatoes/G6capstone-AI_Education | e6ae82a607b74a052a3bb4d7d7d5b2462b5b9e23 | [
"MIT"
] | null | null | null | app/ImagePreprocessing.py | sadpotatoes/G6capstone-AI_Education | e6ae82a607b74a052a3bb4d7d7d5b2462b5b9e23 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
"""
Created on Sat Feb 8 11:20:09 2020
@author: Donovan
"""
| 37.869403 | 127 | 0.558282 |
1dc47681c1599227aeabca5e06abcb71ffb15e6e | 1,349 | py | Python | www.geofabrik.de/__poly2geojson.py | 0xC70FF3/maps-playground | cad0031a11d1c245adbff6981e3dc5921332393c | [
"MIT"
] | null | null | null | www.geofabrik.de/__poly2geojson.py | 0xC70FF3/maps-playground | cad0031a11d1c245adbff6981e3dc5921332393c | [
"MIT"
] | null | null | null | www.geofabrik.de/__poly2geojson.py | 0xC70FF3/maps-playground | cad0031a11d1c245adbff6981e3dc5921332393c | [
"MIT"
] | null | null | null | import json
import os
if __name__ == "__main__":
main()
| 31.372093 | 86 | 0.468495 |
1dc562d3f5acb7cb3b986082452a776619fd60b4 | 881 | py | Python | kafka/optstest.py | peterhogan/python | bc6764f7794a862ff0d138bad80f1d6313984dcd | [
"MIT"
] | null | null | null | kafka/optstest.py | peterhogan/python | bc6764f7794a862ff0d138bad80f1d6313984dcd | [
"MIT"
] | null | null | null | kafka/optstest.py | peterhogan/python | bc6764f7794a862ff0d138bad80f1d6313984dcd | [
"MIT"
] | null | null | null | from optparse import OptionParser
kafkabroker = ""
kafkatopic = ""
rssfile = ""
helpstring = """Usage: newsreader.py [OPTIONS]... -f <RSS_FILE> <KAFKA_BROKER> <KAFKA_TOPIC>
Read news articles from XML rss feeds specified in <RSS_FILE>
Feeds must be separated by newlines
Feeds to be ignored can be prefixed with #
Ma... | 32.62963 | 95 | 0.669694 |
1dc5a50b94883d015b44bc01453e7a7183a5e0f8 | 636 | py | Python | Shuffle an Array.py | HalShaw/Leetcode | 27c52aac5a8ecc5b5f02e54096a001920661b4bb | [
"MIT"
] | 1 | 2016-12-22T04:09:25.000Z | 2016-12-22T04:09:25.000Z | Shuffle an Array.py | HalShaw/Leetcode | 27c52aac5a8ecc5b5f02e54096a001920661b4bb | [
"MIT"
] | null | null | null | Shuffle an Array.py | HalShaw/Leetcode | 27c52aac5a8ecc5b5f02e54096a001920661b4bb | [
"MIT"
] | null | null | null | from random import shuffle#
from copy import deepcopy
| 21.931034 | 69 | 0.551887 |
1dc85a966947c3cfd792ac63592206b7beb44ee8 | 11,319 | py | Python | ml3/mbrl_utils.py | neha191091/LearningToLearn | 3619d27bb3b7a836d9423dfbdd8da82460d4fa73 | [
"MIT"
] | 76 | 2020-12-11T02:15:20.000Z | 2021-11-16T10:26:45.000Z | ml3/mbrl_utils.py | neha191091/LearningToLearn | 3619d27bb3b7a836d9423dfbdd8da82460d4fa73 | [
"MIT"
] | 2 | 2021-04-08T21:06:48.000Z | 2021-09-09T13:48:59.000Z | ml3/mbrl_utils.py | neha191091/LearningToLearn | 3619d27bb3b7a836d9423dfbdd8da82460d4fa73 | [
"MIT"
] | 18 | 2020-12-24T14:18:19.000Z | 2022-03-14T02:23:02.000Z | # Copyright (c) Facebook, Inc. and its affiliates.
import numpy as np
from termcolor import colored
import logging
import torch.nn as nn
import torch.utils.data
log = logging.getLogger(__name__)
import torch
import numpy as np
import math
# I did not make this inherit from nn.Module, because our GP implementatio... | 33.488166 | 118 | 0.606767 |
1dc89df2fe8619ca2bff4d7c4037856cb3d50bae | 323 | py | Python | src/write.py | toodom02/img-to-css | a8ccd899ca18f86f68f8dcdac7854b0a142841c2 | [
"MIT"
] | null | null | null | src/write.py | toodom02/img-to-css | a8ccd899ca18f86f68f8dcdac7854b0a142841c2 | [
"MIT"
] | null | null | null | src/write.py | toodom02/img-to-css | a8ccd899ca18f86f68f8dcdac7854b0a142841c2 | [
"MIT"
] | null | null | null | from . import config
| 20.1875 | 79 | 0.582043 |
1dc9c27b442dd4cf3069aed11e33ffad02388e03 | 307 | py | Python | test/tests/marshal_test.py | jvkersch/pyston | 2c7e7a5e0ed7a0a8b4528919f855fa8336b43902 | [
"BSD-2-Clause",
"Apache-2.0"
] | null | null | null | test/tests/marshal_test.py | jvkersch/pyston | 2c7e7a5e0ed7a0a8b4528919f855fa8336b43902 | [
"BSD-2-Clause",
"Apache-2.0"
] | null | null | null | test/tests/marshal_test.py | jvkersch/pyston | 2c7e7a5e0ed7a0a8b4528919f855fa8336b43902 | [
"BSD-2-Clause",
"Apache-2.0"
] | null | null | null | import marshal
o = [-1, 1.23456789, complex(1.2, 3.4)]
o += [True, False, None]
o += ["Hello World!", u"Hello World!"]
o += [{ "Key" : "Value" }, set(["Set"]), frozenset(["FrozenSet"]), (1, 2, 3), [1, 2, 3]]
for i in o:
s = marshal.dumps(i)
r = marshal.loads(s)
print "Dumping:", i, "Loaded", r
| 30.7 | 88 | 0.537459 |
1dca8369ce474af0f5d87fe2a557846435779fc6 | 1,956 | py | Python | tests/test_reader.py | goiosunsw/audacity.py | 899fa99e11e0345f95a563ea3c72b0d98f84e646 | [
"MIT"
] | 1 | 2018-01-05T02:06:04.000Z | 2018-01-05T02:06:04.000Z | tests/test_reader.py | goiosunsw/audacity.py | 899fa99e11e0345f95a563ea3c72b0d98f84e646 | [
"MIT"
] | null | null | null | tests/test_reader.py | goiosunsw/audacity.py | 899fa99e11e0345f95a563ea3c72b0d98f84e646 | [
"MIT"
] | null | null | null | import unittest
import os
import sys
import argparse
import numpy as np
import audacity as aud
print('Module file:')
print(aud.__file__)
SCRIPT_DIR = os.path.split(os.path.realpath(__file__))[0]
PACKAGE_DIR = os.path.realpath(os.path.join(SCRIPT_DIR,'..'))
DATA_DIR = os.path.join(PACKAGE_DIR, 'data')
TEST_FILE_1 = ... | 26.432432 | 75 | 0.644683 |
1dcac33d4a64b986ef5357a7616bac8feaec924f | 1,715 | py | Python | src/models/predict_model.py | Chrypapado/Garbage_Classification | 92c8627a430fca305fc5fb38880b6464a6edb9a2 | [
"FTL"
] | null | null | null | src/models/predict_model.py | Chrypapado/Garbage_Classification | 92c8627a430fca305fc5fb38880b6464a6edb9a2 | [
"FTL"
] | 1 | 2021-06-20T13:55:56.000Z | 2021-06-20T13:55:56.000Z | src/models/predict_model.py | Chrypapado/Garbage_Classification | 92c8627a430fca305fc5fb38880b6464a6edb9a2 | [
"FTL"
] | null | null | null | import argparse
import sys
from pathlib import Path
import matplotlib.pyplot as plt
import torch
import torchvision.transforms as transforms
from model import ResNet
from PIL import Image
if __name__ == '__main__':
# Arguments
parser = argparse.ArgumentParser(description='Training arguments')
parser.add_a... | 35.729167 | 75 | 0.683382 |
1dcbbd2677c54b75d412f37ba6ff6de126f5a9fa | 248 | py | Python | tests/test_lightcurve.py | moemyself3/lightcurator | 0848435a170fea1d8979a416068ad88f7d8012a2 | [
"MIT"
] | 2 | 2019-03-20T15:11:22.000Z | 2020-05-31T01:55:03.000Z | tests/test_lightcurve.py | moemyself3/lightcurator | 0848435a170fea1d8979a416068ad88f7d8012a2 | [
"MIT"
] | 18 | 2019-03-20T06:42:17.000Z | 2021-01-24T04:57:08.000Z | tests/test_lightcurve.py | moemyself3/lightcurator | 0848435a170fea1d8979a416068ad88f7d8012a2 | [
"MIT"
] | null | null | null | import unittest
from lightcurator import lightcurve as lc
if __name__ == '__main__':
unittest.main()
| 20.666667 | 49 | 0.709677 |
1dccc5743e94de53f95b5ccf3e289dd5436b798d | 17,756 | py | Python | baselines/deepq/assembly/data/plot_result.py | DengYuelin/baselines-assembly | d40171845349395f0ed389d725873b389b08f94f | [
"MIT"
] | 1 | 2022-03-23T02:35:05.000Z | 2022-03-23T02:35:05.000Z | baselines/deepq/assembly/data/plot_result.py | DengYuelin/baselines-assembly | d40171845349395f0ed389d725873b389b08f94f | [
"MIT"
] | null | null | null | baselines/deepq/assembly/data/plot_result.py | DengYuelin/baselines-assembly | d40171845349395f0ed389d725873b389b08f94f | [
"MIT"
] | 3 | 2018-12-20T10:10:57.000Z | 2020-08-07T10:12:57.000Z | # -*- coding: utf-8 -*-
"""
# @Time : 24/10/18 2:40 PM
# @Author : ZHIMIN HOU
# @FileName: plot_result.py
# @Software: PyCharm
# @Github https://github.com/hzm2016
"""
import collections
import matplotlib.pyplot as plt
import numpy as np
import pickle
import copy as cp
from baselines.deepq.assembly.src.value_fu... | 42.785542 | 153 | 0.592926 |
1dcf47342d8ac127388b110b95bb6666da395ea7 | 895 | py | Python | repacolors/palette/__init__.py | dyuri/repacolors | 4556efeb262529dde4586dad78ac7ff64d4dedf5 | [
"MIT"
] | 1 | 2020-02-29T17:05:06.000Z | 2020-02-29T17:05:06.000Z | repacolors/palette/__init__.py | dyuri/repacolors | 4556efeb262529dde4586dad78ac7ff64d4dedf5 | [
"MIT"
] | null | null | null | repacolors/palette/__init__.py | dyuri/repacolors | 4556efeb262529dde4586dad78ac7ff64d4dedf5 | [
"MIT"
] | null | null | null | from repacolors import ColorScale
from .colorbrewer import PALETTES as CBPALETTES
PALETTES = {
"ryb": ["#fe2713", "#fd5307", "#fb9900", "#fabc00", "#fefe34", "#d1e92c", "#66b032", "#0492ce", "#0347fe", "#3e01a4", "#8600af", "#a7194b"],
"rybw3": ["#FE2712", "#FC600A", "#FB9902", "#FCCC1A", "#FEFE33", "#B2D732"... | 30.862069 | 146 | 0.607821 |
1dcff6dd57331f977b210a82d3eb44c337f97160 | 765 | py | Python | src/util.py | sgtpepperpt/cowrie-qemu | bf03e1a87af24c53290fd626efd7a5865ae0aa2f | [
"BSD-3-Clause"
] | 1 | 2019-06-05T08:33:52.000Z | 2019-06-05T08:33:52.000Z | src/util.py | sgtpepperpt/cowrie-qemu | bf03e1a87af24c53290fd626efd7a5865ae0aa2f | [
"BSD-3-Clause"
] | null | null | null | src/util.py | sgtpepperpt/cowrie-qemu | bf03e1a87af24c53290fd626efd7a5865ae0aa2f | [
"BSD-3-Clause"
] | null | null | null | # Copyright (c) 2019 Guilherme Borges <guilhermerosasborges@gmail.com>
# See the COPYRIGHT file for more information
import subprocess
import time
| 23.181818 | 83 | 0.665359 |
1dd03130b6b9f8c9a6d3932e46dd12cf5f030098 | 65,125 | py | Python | library/load_partial.py | binaryburn/pan-fca | 77f8b47d21a7e5a11b6de0bc7b051837c02b770f | [
"Apache-2.0"
] | 26 | 2019-02-08T16:16:01.000Z | 2021-05-03T22:42:02.000Z | library/load_partial.py | binaryburn/pan-fca | 77f8b47d21a7e5a11b6de0bc7b051837c02b770f | [
"Apache-2.0"
] | 10 | 2019-02-26T14:22:23.000Z | 2021-09-23T23:23:16.000Z | library/load_partial.py | binaryburn/pan-fca | 77f8b47d21a7e5a11b6de0bc7b051837c02b770f | [
"Apache-2.0"
] | 43 | 2019-02-09T13:46:45.000Z | 2020-10-06T08:38:58.000Z | # -*- coding: utf-8 -*-
## Developed by Uriah Bojorquez
from PyQt5.QtWidgets import QMainWindow, QApplication, QFileDialog, QMessageBox, QSizePolicy, QDialog
from PyQt5.QtGui import QColor, QPalette
from PyQt5 import QtCore
from qt_iron_skillet_ui import Ui_Dialog as IRONSKILLET
from qt_config_ui_panorama import Ui_Dia... | 42.845395 | 432 | 0.572468 |
1dd06073161d1a6fc8153bce35244468454bcf1e | 3,173 | py | Python | lab_2/find_lcs_length_optimized_test.py | alenashuvar/2020-2-level-labs | aa5185fae19b386c741faa8dcff3424872642090 | [
"MIT"
] | 3 | 2020-09-05T16:27:19.000Z | 2021-03-12T12:08:00.000Z | lab_2/find_lcs_length_optimized_test.py | alenashuvar/2020-2-level-labs | aa5185fae19b386c741faa8dcff3424872642090 | [
"MIT"
] | 100 | 2020-09-06T16:36:23.000Z | 2020-12-12T06:18:47.000Z | lab_2/find_lcs_length_optimized_test.py | alenashuvar/2020-2-level-labs | aa5185fae19b386c741faa8dcff3424872642090 | [
"MIT"
] | 62 | 2020-09-06T10:49:43.000Z | 2021-09-10T07:07:53.000Z | """
Tests find_lcs_optimized function
"""
import timeit
import unittest
from memory_profiler import memory_usage
from lab_2.main import find_lcs_length_optimized, tokenize_big_file
| 42.306667 | 95 | 0.656792 |
1dd0b855c9e3e5a1470c944f9d3f6ea76ae0c1de | 754 | py | Python | second/app.py | angelsoffury/microservices-basic | ad33b9be82e68b0363f6da676ca1d9e9c71b8f0e | [
"BSD-Source-Code"
] | 1 | 2022-01-20T16:36:35.000Z | 2022-01-20T16:36:35.000Z | second/app.py | angelsoffury/microservices-basic | ad33b9be82e68b0363f6da676ca1d9e9c71b8f0e | [
"BSD-Source-Code"
] | null | null | null | second/app.py | angelsoffury/microservices-basic | ad33b9be82e68b0363f6da676ca1d9e9c71b8f0e | [
"BSD-Source-Code"
] | null | null | null | from flask import Flask, jsonify, render_template
import requests
app = Flask(__name__)
if __name__ == '__main__':
app.run(host='0.0.0.0', port='5001', debug=True)
| 23.5625 | 79 | 0.656499 |
1dd48b3bcb89fa1bccfb199439da3963a4087136 | 56,257 | py | Python | autokernel/autokernel.py | oddlama/autokernel | cd165cbc9467385c356d4a3d31b524a40d574edd | [
"MIT"
] | 49 | 2020-04-09T14:36:05.000Z | 2022-03-19T12:57:54.000Z | autokernel/autokernel.py | oddlama/autokernel | cd165cbc9467385c356d4a3d31b524a40d574edd | [
"MIT"
] | 1 | 2021-08-09T19:11:00.000Z | 2021-11-10T17:12:17.000Z | autokernel/autokernel.py | oddlama/autokernel | cd165cbc9467385c356d4a3d31b524a40d574edd | [
"MIT"
] | 4 | 2020-04-16T19:59:34.000Z | 2021-12-17T12:57:37.000Z | import autokernel.kconfig
import autokernel.config
import autokernel.lkddb
import autokernel.node_detector
import autokernel.symbol_tracking
from autokernel import __version__
from autokernel import log
from autokernel import util
from autokernel.symbol_tracking import set_value_detect_conflicts
import argparse
import... | 40.914182 | 297 | 0.654087 |
1dd75c9d95a741f7dad3e09aacf0d3d73196b181 | 19,007 | py | Python | game.py | henryboisdequin/Tower-Defense-Game | 687f509da179678f205b53705abec4b8ad31b188 | [
"MIT"
] | null | null | null | game.py | henryboisdequin/Tower-Defense-Game | 687f509da179678f205b53705abec4b8ad31b188 | [
"MIT"
] | null | null | null | game.py | henryboisdequin/Tower-Defense-Game | 687f509da179678f205b53705abec4b8ad31b188 | [
"MIT"
] | null | null | null | from Enemy.bosses import *
from Enemy.desert_enemies import *
from Enemy.field_enemies import *
from Enemy.graveyard_enemies import *
from Enemy.magic_enemies import *
from Enemy.moon_enemies import *
from Enemy.winter_enemies import *
from Enemy.fire_enemies import *
from menu import VerticalMenu
from Buildings.archer... | 37.637624 | 119 | 0.50755 |
1dd7cafd4dc5d45bf6df84b8e8c9c05df721a1fb | 1,177 | py | Python | zendesk_tickets/client.py | ibrechin/django-zendesk-tickets | f4651836d6a0aaad46fcd90229e482bf4673e9ac | [
"MIT"
] | 4 | 2017-04-12T08:11:07.000Z | 2022-01-26T16:30:52.000Z | zendesk_tickets/client.py | ibrechin/django-zendesk-tickets | f4651836d6a0aaad46fcd90229e482bf4673e9ac | [
"MIT"
] | 6 | 2015-12-07T12:13:49.000Z | 2022-03-21T12:19:10.000Z | zendesk_tickets/client.py | ibrechin/django-zendesk-tickets | f4651836d6a0aaad46fcd90229e482bf4673e9ac | [
"MIT"
] | 2 | 2021-04-11T06:31:40.000Z | 2021-07-26T06:20:33.000Z | import json
from urllib.parse import urljoin
from django.conf import settings
import requests
def create_ticket(subject, tags, ticket_body, requester_email=None, custom_fields=None):
""" Create a new Zendesk ticket """
payload = {'ticket': {
'subject': subject,
'comment': {
'bo... | 26.155556 | 88 | 0.627018 |
1dd87ba8ad5a67a4277d8da50db47d17748918d9 | 2,208 | py | Python | pravash/servicenowplugin/xlr-servicenow-plugin-master/src/main/resources/servicenow/RequestApproval.py | amvasudeva/rapidata | 7b6e984d24866f5cf474847cf462ac628427cf48 | [
"Apache-2.0"
] | null | null | null | pravash/servicenowplugin/xlr-servicenow-plugin-master/src/main/resources/servicenow/RequestApproval.py | amvasudeva/rapidata | 7b6e984d24866f5cf474847cf462ac628427cf48 | [
"Apache-2.0"
] | 7 | 2020-06-30T23:14:35.000Z | 2021-08-02T17:08:05.000Z | pravash/servicenowplugin/xlr-servicenow-plugin-master/src/main/resources/servicenow/RequestApproval.py | amvasudeva/rapidata | 7b6e984d24866f5cf474847cf462ac628427cf48 | [
"Apache-2.0"
] | null | null | null | #
# THIS CODE AND INFORMATION ARE PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED WARRANTIES OF MERCHANTABILITY AND/OR FITNESS
# FOR A PARTICULAR PURPOSE. THIS CODE AND INFORMATION ARE NOT SUPPORTED BY XEBIALABS.
#
import sys, string, time
import c... | 27.6 | 98 | 0.688859 |
1dd93c15d98d6b6545270d6a317fbfaaacd7b210 | 1,238 | py | Python | migrations/versions/5f810254fdd4_initial_migration7.py | moha-abdul/minute-pitch | 4f36d09c61f24fdb983eef2a5b00dc925c34464d | [
"MIT"
] | null | null | null | migrations/versions/5f810254fdd4_initial_migration7.py | moha-abdul/minute-pitch | 4f36d09c61f24fdb983eef2a5b00dc925c34464d | [
"MIT"
] | null | null | null | migrations/versions/5f810254fdd4_initial_migration7.py | moha-abdul/minute-pitch | 4f36d09c61f24fdb983eef2a5b00dc925c34464d | [
"MIT"
] | null | null | null | """Initial Migration7
Revision ID: 5f810254fdd4
Revises: c0a6d11f2e37
Create Date: 2018-09-17 20:20:59.265902
"""
from alembic import op
import sqlalchemy as sa
# revision identifiers, used by Alembic.
revision = '5f810254fdd4'
down_revision = 'c0a6d11f2e37'
branch_labels = None
depends_on = None
| 31.74359 | 98 | 0.693053 |
1dda73b8c7b716967c6538d6b9f6cbcc77ed0163 | 625 | py | Python | config/api_router.py | Kubiniet/Mailing-messages | 14810eaa6bef7895a22b2f5e435e9db410772e1e | [
"MIT"
] | 1 | 2022-03-30T14:24:10.000Z | 2022-03-30T14:24:10.000Z | config/api_router.py | Kubiniet/Mailing-messages | 14810eaa6bef7895a22b2f5e435e9db410772e1e | [
"MIT"
] | null | null | null | config/api_router.py | Kubiniet/Mailing-messages | 14810eaa6bef7895a22b2f5e435e9db410772e1e | [
"MIT"
] | null | null | null | from django.conf import settings
from rest_framework.routers import DefaultRouter, SimpleRouter
from message_service.mailing.api.views import (
ClientsViewSet,
MailingViewSet,
MessageViewSet,
)
from message_service.users.api.views import UserViewSet
if settings.DEBUG:
router = DefaultRouter()
else:
... | 26.041667 | 67 | 0.7808 |
1ddaabf5260925241474b1020f7b0e3d597421f5 | 126 | py | Python | fts/backends/xapian.py | filwaitman/django-fts | af9f10d760e543288c21a8f4239288c2e415b9e9 | [
"BSD-3-Clause"
] | null | null | null | fts/backends/xapian.py | filwaitman/django-fts | af9f10d760e543288c21a8f4239288c2e415b9e9 | [
"BSD-3-Clause"
] | 9 | 2020-02-11T23:38:20.000Z | 2022-03-11T23:16:29.000Z | 3rdparty/odeoncg-django-fts-odeon-9ea3a64/fts/backends/unported/xapian.py | cltrudeau/django-yacon | d462c88cf98bf8eef50a0696b265fa28dfdb40eb | [
"MIT"
] | 2 | 2017-09-10T11:27:51.000Z | 2019-12-28T00:12:58.000Z | from fts.backends.base import InvalidFtsBackendError
raise InvalidFtsBackendError("Xapian FTS backend not yet implemented") | 42 | 70 | 0.849206 |
1ddc7b1c9df94d1d6c3913b9a8bd616213efe883 | 525 | py | Python | Lab2/Exercise3.py | alex99q/python3-lab-exercises | dfa96908f589d2e03ce3a21a3326fd7365d62fcb | [
"MIT"
] | null | null | null | Lab2/Exercise3.py | alex99q/python3-lab-exercises | dfa96908f589d2e03ce3a21a3326fd7365d62fcb | [
"MIT"
] | null | null | null | Lab2/Exercise3.py | alex99q/python3-lab-exercises | dfa96908f589d2e03ce3a21a3326fd7365d62fcb | [
"MIT"
] | null | null | null | import random
secret_num = random.randrange(1, 11, 1)
player_num = int(input("Guess a number from 1 to 10: "))
list_of_player_nums = [player_num]
while player_num != secret_num:
if player_num > secret_num:
print("Too high!")
elif player_num < secret_num:
print("Too low!")
pl... | 27.631579 | 66 | 0.660952 |
1ddcb5a365134a0fc6fdd220c36768b3059a205b | 363 | py | Python | rotor_tm_traj/traj/Optimization/entire_path/generate_poly.py | xl2623/RotorTM | 4ef88f1fdb2137ff7f6e7f0acbf9105b99773ed8 | [
"BSD-3-Clause"
] | 1 | 2022-01-10T13:43:11.000Z | 2022-01-10T13:43:11.000Z | rotor_tm_traj/traj/Optimization/entire_path/generate_poly.py | xl2623/RotorTM | 4ef88f1fdb2137ff7f6e7f0acbf9105b99773ed8 | [
"BSD-3-Clause"
] | null | null | null | rotor_tm_traj/traj/Optimization/entire_path/generate_poly.py | xl2623/RotorTM | 4ef88f1fdb2137ff7f6e7f0acbf9105b99773ed8 | [
"BSD-3-Clause"
] | 3 | 2022-01-21T03:04:38.000Z | 2022-01-25T15:05:31.000Z | #! /usr/bin/env python
from math import factorial
import numpy as np
# test passed | 24.2 | 55 | 0.663912 |
1dde29d159ca50f530c3329ce64e235d58752ef0 | 3,389 | py | Python | tests/train.py | lbaret/pytorch_functions | fd6f6b167074acba9981f0dbbf3ad20e93444ff2 | [
"MIT"
] | 1 | 2021-04-17T13:33:58.000Z | 2021-04-17T13:33:58.000Z | tests/train.py | lbaret/pytorch_functions | fd6f6b167074acba9981f0dbbf3ad20e93444ff2 | [
"MIT"
] | null | null | null | tests/train.py | lbaret/pytorch_functions | fd6f6b167074acba9981f0dbbf3ad20e93444ff2 | [
"MIT"
] | null | null | null | # ---
# jupyter:
# jupytext:
# formats: ipynb,py:light
# text_representation:
# extension: .py
# format_name: light
# format_version: '1.5'
# jupytext_version: 1.11.0
# kernelspec:
# display_name: Python 3
# language: python
# name: python3
# ---
import torch
def train... | 29.215517 | 95 | 0.553851 |
1ddeb4640afb7464adb779919965594b59498d6c | 4,342 | py | Python | openmv_cam/sensors.py | Adridri24/Robocup | aa403f73cdc5f7cdf9e3bb8afd997c2b0fa081d3 | [
"MIT"
] | 1 | 2021-07-27T21:47:06.000Z | 2021-07-27T21:47:06.000Z | openmv_cam/sensors.py | ajayat/robocup | aa403f73cdc5f7cdf9e3bb8afd997c2b0fa081d3 | [
"MIT"
] | null | null | null | openmv_cam/sensors.py | ajayat/robocup | aa403f73cdc5f7cdf9e3bb8afd997c2b0fa081d3 | [
"MIT"
] | null | null | null | import ustruct as struct
import sensor
import pyb
import ulogging as logging
logger = logging.Logger(__name__)
| 32.893939 | 85 | 0.620451 |
1ddf116bdca6613e7a3cef9650883687a600fa9d | 179 | py | Python | dmutils/__init__.py | robot2051/dto-digitalmarketplace-utils | e581be6396c12473697398b0ec9d253c564a324b | [
"MIT"
] | null | null | null | dmutils/__init__.py | robot2051/dto-digitalmarketplace-utils | e581be6396c12473697398b0ec9d253c564a324b | [
"MIT"
] | null | null | null | dmutils/__init__.py | robot2051/dto-digitalmarketplace-utils | e581be6396c12473697398b0ec9d253c564a324b | [
"MIT"
] | null | null | null | from . import logging, config, proxy_fix, formats, request_id
from .flask_init import init_app, init_frontend_app, init_manager
import flask_featureflags
__version__ = '24.4.1'
| 25.571429 | 65 | 0.810056 |
1de0594f63b502fd9fe8aa8efd742514e03f84cb | 1,453 | py | Python | withings_data/views.py | MPikDev/withings_weight_display | 8d0a91c949cc9c2f1323db9986f68330cf21e4bf | [
"MIT"
] | null | null | null | withings_data/views.py | MPikDev/withings_weight_display | 8d0a91c949cc9c2f1323db9986f68330cf21e4bf | [
"MIT"
] | null | null | null | withings_data/views.py | MPikDev/withings_weight_display | 8d0a91c949cc9c2f1323db9986f68330cf21e4bf | [
"MIT"
] | null | null | null | from django.http import HttpResponse
from django.shortcuts import render, redirect
from models import User
from django.contrib.auth import authenticate, login
from django.conf import settings
from django.contrib.auth.decorators import login_required
| 28.490196 | 99 | 0.748107 |
1de174b38b26130877be87229aea9bb86c21ce03 | 52 | py | Python | backend/models/__init__.py | hajajmaor/e_commerce_website | c3cb4b7acb4447231358ee153128dab1ef7096f5 | [
"MIT"
] | null | null | null | backend/models/__init__.py | hajajmaor/e_commerce_website | c3cb4b7acb4447231358ee153128dab1ef7096f5 | [
"MIT"
] | 7 | 2021-04-06T16:01:12.000Z | 2021-04-29T07:11:40.000Z | backend/models/__init__.py | hajajmaor/e_commerce_website | c3cb4b7acb4447231358ee153128dab1ef7096f5 | [
"MIT"
] | null | null | null | from .cart import receipt_col as receipt_collection
| 26 | 51 | 0.865385 |
1de1dc48d04018d54f9948a56fb3009257d670db | 14,662 | py | Python | wwzplotter.py | skiehl/wwz | e48a85d415bc2e3c4308a17ae511534372d52cba | [
"BSD-3-Clause"
] | null | null | null | wwzplotter.py | skiehl/wwz | e48a85d415bc2e3c4308a17ae511534372d52cba | [
"BSD-3-Clause"
] | null | null | null | wwzplotter.py | skiehl/wwz | e48a85d415bc2e3c4308a17ae511534372d52cba | [
"BSD-3-Clause"
] | null | null | null | # -*- coding: utf-8 -*-
#!/usr/bin/env python
"""A class for plotting results of the weighted wavelet z-transform analysis.
"""
import matplotlib.gridspec as gs
import matplotlib.pyplot as plt
from matplotlib.ticker import LogLocator
import numpy as np
import os
import sys
__author__ = "Sebastian Kiehlmann"
__credits... | 33.398633 | 79 | 0.524349 |
1de5367a1f3c604d3f330ae4e673bd72ff6587fa | 7,651 | py | Python | preprocessing/emotic/load_data_from_numpy.py | GKalliatakis/DisplaceNet | 439bcd5ed4133b040baa107c215170eb963aa343 | [
"MIT"
] | 7 | 2019-05-13T01:49:43.000Z | 2020-02-19T04:16:35.000Z | preprocessing/emotic/load_data_from_numpy.py | GKalliatakis/DisplaceNet | 439bcd5ed4133b040baa107c215170eb963aa343 | [
"MIT"
] | null | null | null | preprocessing/emotic/load_data_from_numpy.py | GKalliatakis/DisplaceNet | 439bcd5ed4133b040baa107c215170eb963aa343 | [
"MIT"
] | 4 | 2019-05-28T16:06:31.000Z | 2020-02-27T09:29:16.000Z | """Python utilities required to load data (image & their annotations) stored in numpy arrays.
Functions `load_numpy_arrays_single_output` & `load_numpy_arrays_emotions_age_only` are deprecated.
Use either the main function `load_data_from_numpy` to load all the applicable arrays
or the supporting `load_anno... | 46.369697 | 180 | 0.656385 |
1de617306ea8b95ead3e14011fe6581a03bd62b9 | 15,575 | py | Python | services/core/Ambient/ambient/agent.py | gnmerritt/volttron | ebfbf62bab77d46fd3e8d6aaca1fc4f33932ccf3 | [
"Apache-2.0"
] | 406 | 2015-01-20T03:08:53.000Z | 2022-03-31T20:59:07.000Z | services/core/Ambient/ambient/agent.py | gnmerritt/volttron | ebfbf62bab77d46fd3e8d6aaca1fc4f33932ccf3 | [
"Apache-2.0"
] | 2,031 | 2015-01-05T21:35:45.000Z | 2022-03-29T21:44:36.000Z | services/core/Ambient/ambient/agent.py | gnmerritt/volttron | ebfbf62bab77d46fd3e8d6aaca1fc4f33932ccf3 | [
"Apache-2.0"
] | 219 | 2015-01-20T14:53:57.000Z | 2022-03-06T00:37:41.000Z | # -*- coding: utf-8 -*- {{{
# vim: set fenc=utf-8 ft=python sw=4 ts=4 sts=4 et:
#
# Copyright (c) 2017, Battelle Memorial Institute
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are met:
#
# 1. Redistrib... | 44.121813 | 120 | 0.642953 |
1de63b87d5455ccb25aeab1b6a213dfe5402bcb9 | 7,601 | py | Python | process.py | imdeepmind/AmazonReview-LanguageGenerationDataset | 64856e5c0fb0718203585c217bb5443344ef177d | [
"MIT"
] | 3 | 2019-08-29T17:38:11.000Z | 2021-01-08T13:07:35.000Z | process.py | imdeepmind/AmazonReview-LanguageGenerationDataset | 64856e5c0fb0718203585c217bb5443344ef177d | [
"MIT"
] | null | null | null | process.py | imdeepmind/AmazonReview-LanguageGenerationDataset | 64856e5c0fb0718203585c217bb5443344ef177d | [
"MIT"
] | 1 | 2019-08-26T11:09:59.000Z | 2019-08-26T11:09:59.000Z | import sqlite3
import pandas as pd
import re
import random
from bs4 import BeautifulSoup
process = Process('dataset/02.tsv', 'dataset', (.8, .1, .1), 40)
process.create_table()
process.process()
| 39.180412 | 245 | 0.52822 |
1de641bdba821c7515279839b852f0ac77f42640 | 55 | py | Python | src/torchphysics/utils/data/__init__.py | uwe-iben/torchphysics | f0a56539cff331d49caaa90bc2fdd0d238b298f8 | [
"Apache-2.0"
] | 203 | 2021-11-10T10:33:29.000Z | 2022-03-26T09:05:12.000Z | src/torchphysics/utils/data/__init__.py | DKreuter/torchphysics | 775d9aca71752a568f1fca972c958b99107f3b7c | [
"Apache-2.0"
] | 3 | 2022-01-07T19:57:00.000Z | 2022-03-10T08:04:49.000Z | src/torchphysics/utils/data/__init__.py | DKreuter/torchphysics | 775d9aca71752a568f1fca972c958b99107f3b7c | [
"Apache-2.0"
] | 16 | 2021-09-30T08:35:37.000Z | 2022-03-16T13:12:22.000Z | from .dataloader import PointsDataset, PointsDataLoader | 55 | 55 | 0.890909 |
1de7a0dc0cdbaa0b1dee69836abf352a586d2b83 | 445 | py | Python | src/panel/urls.py | cybekRT/DJPajton2 | e461070269a5b39bac6c8df1eb739ea79c7099b5 | [
"MIT"
] | null | null | null | src/panel/urls.py | cybekRT/DJPajton2 | e461070269a5b39bac6c8df1eb739ea79c7099b5 | [
"MIT"
] | null | null | null | src/panel/urls.py | cybekRT/DJPajton2 | e461070269a5b39bac6c8df1eb739ea79c7099b5 | [
"MIT"
] | null | null | null | from django.conf.urls import url
from . import views
urlpatterns = [
#url(r'^view/(?P<pk>[0-9]+)', views.ArticleDetailView.as_view(), name = "detail"),
#url(r'', views.ArticleIndexView.as_view(), name = "index"),
url(r'login', views.Login.as_view()),
url(r'logout', views.Logout.as_view()),
... | 34.230769 | 87 | 0.611236 |
1de7f7ec7324ad33e6191ad8327f06347d390541 | 3,035 | py | Python | Gems/WhiteBox/Editor/Scripts/WhiteBox.py | aaarsene/o3de | 37e3b0226958974defd14dd6d808e8557dcd7345 | [
"Apache-2.0",
"MIT"
] | 1 | 2021-09-13T00:01:12.000Z | 2021-09-13T00:01:12.000Z | Gems/WhiteBox/Editor/Scripts/WhiteBox.py | aaarsene/o3de | 37e3b0226958974defd14dd6d808e8557dcd7345 | [
"Apache-2.0",
"MIT"
] | null | null | null | Gems/WhiteBox/Editor/Scripts/WhiteBox.py | aaarsene/o3de | 37e3b0226958974defd14dd6d808e8557dcd7345 | [
"Apache-2.0",
"MIT"
] | 1 | 2021-07-20T11:07:25.000Z | 2021-07-20T11:07:25.000Z | """
Copyright (c) Contributors to the Open 3D Engine Project. For complete copyright and license terms please see the LICENSE at the root of this distribution.
SPDX-License-Identifier: Apache-2.0 OR MIT
"""
# setup path
import azlmbr.legacy.general as general
import azlmbr.bus as bus
import azlmbr.editor as editor
im... | 48.174603 | 155 | 0.801647 |
1de934d7356d8cdb5f92362c3fbc904ed493a5b2 | 7,800 | py | Python | src/analysis/analysis.py | rcgonzalez9061/m2v-adversarial-hindoird | 513ede9875330ea44de65f7f6b0f76e98c9c81da | [
"MIT"
] | null | null | null | src/analysis/analysis.py | rcgonzalez9061/m2v-adversarial-hindoird | 513ede9875330ea44de65f7f6b0f76e98c9c81da | [
"MIT"
] | null | null | null | src/analysis/analysis.py | rcgonzalez9061/m2v-adversarial-hindoird | 513ede9875330ea44de65f7f6b0f76e98c9c81da | [
"MIT"
] | 3 | 2021-03-08T08:01:24.000Z | 2022-02-23T01:12:26.000Z | from dask.distributed import Client
import dask.dataframe as dd
import pandas as pd
import numpy as np
import os
import matplotlib.pyplot as plt
import matplotlib.cm as cm
from sklearn.manifold import TSNE
from sklearn.decomposition import PCA
from IPython.display import display, HTML
from sklearn.cluster import KMeans... | 35.294118 | 124 | 0.591667 |
1de9e88ceb68a4275423c2572fd161fe8abe5541 | 1,756 | py | Python | common/sqlmanager.py | ntcat/tilde | 6bbe7f56483e3a64103c3d3e7a39681a2c2690be | [
"MIT"
] | 1 | 2018-05-21T04:41:00.000Z | 2018-05-21T04:41:00.000Z | common/sqlmanager.py | ntcat/tilde | 6bbe7f56483e3a64103c3d3e7a39681a2c2690be | [
"MIT"
] | null | null | null | common/sqlmanager.py | ntcat/tilde | 6bbe7f56483e3a64103c3d3e7a39681a2c2690be | [
"MIT"
] | null | null | null | #!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
__title__ = ''
__author__ = 'shen.bas'
__time__ = '2018-01-26'
"""
import pymysql
| 22.227848 | 69 | 0.664009 |
1dea6f53071178d05a953eb23c32d6609a27d012 | 1,786 | py | Python | rls/algorithms/single/ddqn.py | StepNeverStop/RLs | 25cc97c96cbb19fe859c9387b7547cbada2c89f2 | [
"Apache-2.0"
] | 371 | 2019-04-26T00:37:33.000Z | 2022-03-31T07:33:12.000Z | rls/algorithms/single/ddqn.py | BlueFisher/RLs | 25cc97c96cbb19fe859c9387b7547cbada2c89f2 | [
"Apache-2.0"
] | 47 | 2019-07-21T11:51:57.000Z | 2021-08-31T08:45:22.000Z | rls/algorithms/single/ddqn.py | BlueFisher/RLs | 25cc97c96cbb19fe859c9387b7547cbada2c89f2 | [
"Apache-2.0"
] | 102 | 2019-06-29T13:11:15.000Z | 2022-03-28T13:51:04.000Z | #!/usr/bin/env python3
# encoding: utf-8
import torch.nn.functional as F
from rls.algorithms.single.dqn import DQN
from rls.common.decorator import iton
from rls.utils.torch_utils import n_step_return
| 39.688889 | 105 | 0.558231 |
1deabd234d3d7ab0242074f8b32e1bcacc5fabc3 | 1,394 | py | Python | blockChain/modularDivision.py | slowy07/pythonApps | 22f9766291dbccd8185035745950c5ee4ebd6a3e | [
"MIT"
] | 10 | 2020-10-09T11:05:18.000Z | 2022-02-13T03:22:10.000Z | blockChain/modularDivision.py | slowy07/pythonApps | 22f9766291dbccd8185035745950c5ee4ebd6a3e | [
"MIT"
] | null | null | null | blockChain/modularDivision.py | slowy07/pythonApps | 22f9766291dbccd8185035745950c5ee4ebd6a3e | [
"MIT"
] | 6 | 2020-11-26T12:49:43.000Z | 2022-03-06T06:46:43.000Z | from typing import Tuple
if __name__ == "__main__":
from doctest import testmod
testmod(name="modular_division", verbose=True)
testmod(name="modular_division2", verbose=True)
testmod(name="invert_modulo", verbose=True)
testmod(name="extended_gcd", verbose=True)
testmod(name="extended_euclid", v... | 24.45614 | 65 | 0.552367 |
1dead52e33a4564094a52bf02b01c565cce3acb2 | 5,373 | py | Python | arekit/contrib/networks/context/architectures/cnn.py | nicolay-r/AREk | 19c39ec0dc9a17464cade03b9c4da0c6d1d21191 | [
"MIT"
] | 18 | 2019-12-14T18:43:11.000Z | 2022-03-21T05:55:36.000Z | arekit/contrib/networks/context/architectures/cnn.py | nicolay-r/AREk | 19c39ec0dc9a17464cade03b9c4da0c6d1d21191 | [
"MIT"
] | 284 | 2020-08-08T20:52:44.000Z | 2022-03-31T05:26:20.000Z | arekit/contrib/networks/context/architectures/cnn.py | nicolay-r/AREk | 19c39ec0dc9a17464cade03b9c4da0c6d1d21191 | [
"MIT"
] | 1 | 2021-08-07T13:17:43.000Z | 2021-08-07T13:17:43.000Z | import tensorflow as tf
from collections import OrderedDict
from arekit.contrib.networks.context.architectures.base.base import SingleInstanceNeuralNetwork
from arekit.contrib.networks.context.configurations.cnn import CNNConfig
from arekit.contrib.networks.tf_helpers import layers
| 39.507353 | 117 | 0.589615 |
1deb8efbdd96d38511ba7695b577776dc1d7e9c2 | 149 | py | Python | data/hospital_level/raw/hifld_hospital/download.py | csinva/covid-19-analysis | e7b1e82cb6b25d62a868ff61025d88e17452de28 | [
"MIT"
] | 2 | 2020-03-24T16:50:02.000Z | 2020-03-24T17:00:50.000Z | data_new/hospital_level/raw/hifld_hospital/download.py | rahul263-stack/covid19-severity-prediction | f581adb2fccb12d5ab3f3c59ee120f484703edf5 | [
"MIT"
] | 1 | 2020-03-28T15:34:28.000Z | 2020-03-28T19:22:27.000Z | data/hospital_level/raw/hifld_hospital/download.py | Yu-Group/covid-19-ventilator-demand-prediction | e7b1e82cb6b25d62a868ff61025d88e17452de28 | [
"MIT"
] | null | null | null | #!/usr/bin/python3
import os
os.system('wget \
https://opendata.arcgis.com/datasets/6ac5e325468c4cb9b905f1728d6fbf0f_0.csv \
-O hifld_hospital.csv')
| 24.833333 | 77 | 0.791946 |
1def47cb7540794f0847dc42e0919f49e98df7e1 | 458 | py | Python | src/helper.py | yiuc/azure-aud | 695341178c1396980a75fd2ab88550ca7930c70e | [
"Apache-2.0"
] | 2 | 2019-01-24T12:23:28.000Z | 2021-01-19T15:04:35.000Z | src/helper.py | yiuc/azure-aud | 695341178c1396980a75fd2ab88550ca7930c70e | [
"Apache-2.0"
] | null | null | null | src/helper.py | yiuc/azure-aud | 695341178c1396980a75fd2ab88550ca7930c70e | [
"Apache-2.0"
] | 1 | 2021-05-26T17:34:51.000Z | 2021-05-26T17:34:51.000Z | import argparse
import subprocess
import sys
import logging
logger = logging.getLogger("helper") | 26.941176 | 87 | 0.687773 |
1def7d7b2c472095eabd58e752a36f75a3a587c3 | 1,622 | py | Python | 044_wildcat_matching.py | gengwg/leetcode | 0af5256ec98149ef5863f3bba78ed1e749650f6e | [
"Apache-2.0"
] | 2 | 2018-04-24T19:17:40.000Z | 2018-04-24T19:33:52.000Z | 044_wildcat_matching.py | gengwg/leetcode | 0af5256ec98149ef5863f3bba78ed1e749650f6e | [
"Apache-2.0"
] | null | null | null | 044_wildcat_matching.py | gengwg/leetcode | 0af5256ec98149ef5863f3bba78ed1e749650f6e | [
"Apache-2.0"
] | 3 | 2020-06-17T05:48:52.000Z | 2021-01-02T06:08:25.000Z | # 44. Wildcard Matching
#
# Implement wildcard pattern matching with support for '?' and '*'.
#
# '?' Matches any single character.
# '*' Matches any sequence of characters (including the empty sequence).
#
# The matching should cover the entire input string (not partial).
#
# The function prototype should be:
# bool i... | 27.033333 | 73 | 0.479655 |
1df20dac7a824f73870c3a8bb0561dbeba1a3f8c | 1,013 | py | Python | einsteinsolid.py | SNOlson/MyCodes | 7d2942d961b638bc34e8d7aea86bfbcaa0326a8d | [
"Apache-2.0"
] | null | null | null | einsteinsolid.py | SNOlson/MyCodes | 7d2942d961b638bc34e8d7aea86bfbcaa0326a8d | [
"Apache-2.0"
] | null | null | null | einsteinsolid.py | SNOlson/MyCodes | 7d2942d961b638bc34e8d7aea86bfbcaa0326a8d | [
"Apache-2.0"
] | null | null | null | """Table for 200 and 100 oscillators with 100 units of energy"""
import math
import matplotlib.pyplot as plt
import numpy as np
import pandas as pd
nA = 200
nB = 100
qA = np.arange(0,101,1)
qB = np.arange(101, 0, -1)
#multsA = [mult(n = i+nA-1, r = i) for i in qA]
#multsB = [mult(n = j+nB-1, r = i) for j ... | 23.55814 | 73 | 0.617966 |
1df2a0598e91ae4e8513a3d7be0aab30ae5f3267 | 1,184 | py | Python | Grid.py | KeilonRobertson/Pathfinding-Visualizer | 71637fbadfd4f4dc04ba82d0d7429738f27a4a74 | [
"MIT"
] | 5 | 2020-10-02T03:03:49.000Z | 2020-10-08T16:45:24.000Z | Grid.py | KeilonRobertson/Pathfinding-Visualizer | 71637fbadfd4f4dc04ba82d0d7429738f27a4a74 | [
"MIT"
] | null | null | null | Grid.py | KeilonRobertson/Pathfinding-Visualizer | 71637fbadfd4f4dc04ba82d0d7429738f27a4a74 | [
"MIT"
] | null | null | null | from Vertex import Vertex
import pygame
from Colours import Colours
| 29.6 | 92 | 0.529561 |
1df2a9b981356894b69c9da96fea58cbc93cb744 | 10,811 | py | Python | improver_tests/precipitation_type/shower_condition_probability/test_ShowerConditionProbability.py | thbom001/improver | 6f6e334a1e8e44a151125cf123ecdda2c56dbec4 | [
"BSD-3-Clause"
] | null | null | null | improver_tests/precipitation_type/shower_condition_probability/test_ShowerConditionProbability.py | thbom001/improver | 6f6e334a1e8e44a151125cf123ecdda2c56dbec4 | [
"BSD-3-Clause"
] | null | null | null | improver_tests/precipitation_type/shower_condition_probability/test_ShowerConditionProbability.py | thbom001/improver | 6f6e334a1e8e44a151125cf123ecdda2c56dbec4 | [
"BSD-3-Clause"
] | null | null | null | # -*- coding: utf-8 -*-
# -----------------------------------------------------------------------------
# (C) British Crown copyright. The Met Office.
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are me... | 39.456204 | 86 | 0.565998 |
1df3ba41e191af85d9097217c0ce64ae0929f14a | 4,774 | py | Python | controllers/vessel/file/upload.py | gbf-labs/rh-api | 317a812164ad8943ab638c06f61723cb928bfd12 | [
"Apache-2.0"
] | null | null | null | controllers/vessel/file/upload.py | gbf-labs/rh-api | 317a812164ad8943ab638c06f61723cb928bfd12 | [
"Apache-2.0"
] | 6 | 2020-03-30T23:11:27.000Z | 2022-03-12T00:21:45.000Z | controllers/vessel/file/upload.py | gbf-labs/rh-api | 317a812164ad8943ab638c06f61723cb928bfd12 | [
"Apache-2.0"
] | null | null | null | # pylint: disable=no-member, too-many-locals, no-self-use
"""Vessels File Upload """
import time
from flask import request
# from library.couch_database import CouchDatabase
from library.postgresql_queries import PostgreSQL
from library.couch_queries import Queries
from library.common import Common
from library... | 29.652174 | 92 | 0.526812 |
1df4682ad4e85d7a5440a5f0af1ac4170aeb6c7a | 389 | py | Python | graphgallery/gallery/gallery_model/pytorch/__init__.py | Aria461863631/GraphGallery | 7b62f80ab36b29013bea2538a6581fc696a80201 | [
"MIT"
] | null | null | null | graphgallery/gallery/gallery_model/pytorch/__init__.py | Aria461863631/GraphGallery | 7b62f80ab36b29013bea2538a6581fc696a80201 | [
"MIT"
] | null | null | null | graphgallery/gallery/gallery_model/pytorch/__init__.py | Aria461863631/GraphGallery | 7b62f80ab36b29013bea2538a6581fc696a80201 | [
"MIT"
] | null | null | null | from .gcn import GCN, DenseGCN
from .gat import GAT
from .clustergcn import ClusterGCN
from .fastgcn import FastGCN
from .dagnn import DAGNN
from .pairnorm import *
from .simpgcn import SimPGCN
from .mlp import MLP
from .tagcn import TAGCN
from .appnp import APPNP, PPNP
# experimantal model
from .experimental.median_g... | 25.933333 | 48 | 0.81491 |
1df523cdc41ccb402483976f0573983b6122d8e9 | 4,412 | py | Python | tests/test_vims_pixel.py | seignovert/pyvims | a70b5b9b8bc5c37fa43b7db4d15407f312a31849 | [
"BSD-3-Clause"
] | 4 | 2019-09-16T15:50:22.000Z | 2021-04-08T15:32:48.000Z | tests/test_vims_pixel.py | seignovert/pyvims | a70b5b9b8bc5c37fa43b7db4d15407f312a31849 | [
"BSD-3-Clause"
] | 3 | 2018-05-04T09:28:24.000Z | 2018-12-03T09:00:31.000Z | tests/test_vims_pixel.py | seignovert/pyvims | a70b5b9b8bc5c37fa43b7db4d15407f312a31849 | [
"BSD-3-Clause"
] | 1 | 2020-10-12T15:14:17.000Z | 2020-10-12T15:14:17.000Z | """Test VIMS image module."""
from numpy.testing import assert_array_almost_equal as assert_array
from pytest import approx, fixture, raises
from pyvims import VIMS
from pyvims.errors import VIMSError
def test_pixel_err(cube):
"""Test VIMS pixel errors."""
# Invalid sample value
with raises(VIMSErr... | 26.739394 | 75 | 0.635086 |
1df7cf4379736e54e6847b970614eade9f08fa85 | 4,239 | py | Python | Project2/system.py | KristianWold/FYS4410 | 25f23109468ed72b69a6e9af72957500d76f0e79 | [
"MIT"
] | 1 | 2020-04-30T18:39:43.000Z | 2020-04-30T18:39:43.000Z | Project2/system.py | KristianWold/FYS4411 | 25f23109468ed72b69a6e9af72957500d76f0e79 | [
"MIT"
] | null | null | null | Project2/system.py | KristianWold/FYS4411 | 25f23109468ed72b69a6e9af72957500d76f0e79 | [
"MIT"
] | null | null | null | import tensorflow as tf
import numpy as np
from tqdm.notebook import tqdm
def oneBodyDensity(pos, bins, mode="radial"):
if mode == "radial1D":
density = np.zeros(bins.shape[0])
r_min = bins[0]
dr = bins[1] - bins[0]
rPos = np.linalg.norm(pos, axis=1)
for r in tqdm(rPos... | 27.348387 | 78 | 0.482425 |
1df80634b7ac4a729c96447edb28b15b92dc8f16 | 8,819 | py | Python | contrib/heat_docker/heat_docker/tests/test_docker_container.py | redhat-openstack/heat | 6b9be0a868b857e942c1cc90594d0f3a0d0725d0 | [
"Apache-2.0"
] | null | null | null | contrib/heat_docker/heat_docker/tests/test_docker_container.py | redhat-openstack/heat | 6b9be0a868b857e942c1cc90594d0f3a0d0725d0 | [
"Apache-2.0"
] | null | null | null | contrib/heat_docker/heat_docker/tests/test_docker_container.py | redhat-openstack/heat | 6b9be0a868b857e942c1cc90594d0f3a0d0725d0 | [
"Apache-2.0"
] | null | null | null | #
# Copyright (c) 2013 Docker, 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 requir... | 40.269406 | 79 | 0.652342 |
1dfaf8dad72aefecc4b8134cc8efce48a3d16816 | 288 | py | Python | pyslam/thirdparty/disk/submodules/torch-dimcheck/setup.py | dysdsyd/VO_benchmark | a7602edab934419c1ec73618ee655e18026f834f | [
"Apache-2.0"
] | 2 | 2021-09-11T09:13:31.000Z | 2021-11-03T01:39:56.000Z | pyslam/thirdparty/disk/submodules/torch-dimcheck/setup.py | dysdsyd/VO_benchmark | a7602edab934419c1ec73618ee655e18026f834f | [
"Apache-2.0"
] | null | null | null | pyslam/thirdparty/disk/submodules/torch-dimcheck/setup.py | dysdsyd/VO_benchmark | a7602edab934419c1ec73618ee655e18026f834f | [
"Apache-2.0"
] | null | null | null | from setuptools import setup
setup(
name='torch-dimcheck',
version='0.0.1',
description='Dimensionality annotations for tensor parameters and return values',
packages=['torch_dimcheck'],
author='Micha Tyszkiewicz',
author_email='michal.tyszkiewicz@gmail.com',
)
| 26.181818 | 85 | 0.725694 |
1dfc968b657f73ab414bcfadc856995832d9a8ce | 5,050 | py | Python | retropath2_wrapper/__main__.py | brsynth/RetroPath2-wrapper | 545f40ad0df7049332012ee5184138c6c14a9f35 | [
"MIT"
] | 4 | 2021-10-13T22:12:16.000Z | 2021-12-25T13:00:53.000Z | retropath2_wrapper/__main__.py | brsynth/RetroPath2-wrapper | 545f40ad0df7049332012ee5184138c6c14a9f35 | [
"MIT"
] | 6 | 2020-08-14T15:02:35.000Z | 2022-03-04T13:05:21.000Z | retropath2_wrapper/__main__.py | brsynth/RetroPath2-wrapper | 545f40ad0df7049332012ee5184138c6c14a9f35 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
from os import (
path as os_path,
mkdir as os_mkdir,
getcwd
)
from argparse import ArgumentParser
from logging import (
Logger,
getLogger
)
from glob import glob
from typing import (
Dict,
)
from colored import fg, bg, attr
from brs_utils import (
create_logger
)
from... | 24.876847 | 139 | 0.6 |
1dfcb4d77e3deb4901ba246b595206ea283bb0d6 | 136,009 | py | Python | src_data/community_health_metrics.py | marcmiquel/WDO | 7d8d8e912f8dbacb2cdc0f6fd5c26370b8310cbb | [
"MIT"
] | 3 | 2020-12-21T06:06:16.000Z | 2021-08-28T12:52:07.000Z | src_data/community_health_metrics.py | marcmiquel/WDO | 7d8d8e912f8dbacb2cdc0f6fd5c26370b8310cbb | [
"MIT"
] | 1 | 2021-01-27T19:33:20.000Z | 2021-01-27T19:33:20.000Z | src_data/community_health_metrics.py | marcmiquel/WDO | 7d8d8e912f8dbacb2cdc0f6fd5c26370b8310cbb | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
# script
import wikilanguages_utils
from wikilanguages_utils import *
# time
import time
import datetime
from dateutil import relativedelta
import calendar
# system
import os
import sys
import shutil
import re
import random
import operator
# databases
import MySQLdb as mdb, MySQLdb.cursors as m... | 48.436254 | 1,569 | 0.642068 |
1dfd5d2386c40b6bce3490e841b7ecb270155298 | 1,051 | py | Python | tests/api/length_dist_api_test.py | himanshur-dev/ribopy | 78846e4140a7aa7b4dc995f39606577efaaf0831 | [
"MIT"
] | 4 | 2020-01-14T01:01:36.000Z | 2022-03-21T16:30:24.000Z | tests/api/length_dist_api_test.py | himanshur-dev/ribopy | 78846e4140a7aa7b4dc995f39606577efaaf0831 | [
"MIT"
] | 9 | 2019-12-17T20:45:08.000Z | 2021-12-15T22:34:06.000Z | tests/api/length_dist_api_test.py | himanshur-dev/ribopy | 78846e4140a7aa7b4dc995f39606577efaaf0831 | [
"MIT"
] | 3 | 2019-12-14T17:51:53.000Z | 2022-01-12T16:09:45.000Z | # -*- coding: utf-8 -*-
import unittest
import os
from io import StringIO, BytesIO
import h5py
from ribopy import Ribo
from ribopy import create
from ribopy.merge import merge_ribos
from ribopy.settings import *
from ribopy.core.exceptions import *
import sys
test_dir_1 = os.path.dirname(os.path.realpath(__file__))
... | 28.405405 | 73 | 0.639391 |
1dfd962e97e4b42a0882e32bbba5a65998278c73 | 263 | py | Python | task_management/urls.py | AbdelrahmanRabiee/ayenapp | 43fc4f2b5f53ca308cf60c9f1d74cb2e3f4f4b25 | [
"MIT"
] | null | null | null | task_management/urls.py | AbdelrahmanRabiee/ayenapp | 43fc4f2b5f53ca308cf60c9f1d74cb2e3f4f4b25 | [
"MIT"
] | 5 | 2020-06-06T01:47:05.000Z | 2022-02-10T14:05:22.000Z | task_management/urls.py | AbdelrahmanRabiee/ayenapp | 43fc4f2b5f53ca308cf60c9f1d74cb2e3f4f4b25 | [
"MIT"
] | null | null | null | from django.urls import path
from rest_framework import routers
from task_management import viewsets
app_name = "task_management"
urlpatterns = [
]
task_router = routers.SimpleRouter()
task_router.register(r'tasks', viewsets.TasksViewSet, base_name='tasks') | 18.785714 | 72 | 0.802281 |
1dfdf1dc9d560dd375ad6fcdf3b6923ca0b72a86 | 36 | py | Python | core/parsers/__init__.py | andrewisakov/taximaster | b92f06894bbc3414086ec77f1c918a3c0f085241 | [
"MIT"
] | null | null | null | core/parsers/__init__.py | andrewisakov/taximaster | b92f06894bbc3414086ec77f1c918a3c0f085241 | [
"MIT"
] | null | null | null | core/parsers/__init__.py | andrewisakov/taximaster | b92f06894bbc3414086ec77f1c918a3c0f085241 | [
"MIT"
] | null | null | null | from .parsers import request_parser
| 18 | 35 | 0.861111 |
1dff8f34b88c1028d015cee284c4c5733bdd6297 | 4,698 | py | Python | pytils/clock.py | d33jiang/pytils | 6e44a05480abec6297b77730676bcb5fd5088f6f | [
"MIT"
] | null | null | null | pytils/clock.py | d33jiang/pytils | 6e44a05480abec6297b77730676bcb5fd5088f6f | [
"MIT"
] | null | null | null | pytils/clock.py | d33jiang/pytils | 6e44a05480abec6297b77730676bcb5fd5088f6f | [
"MIT"
] | null | null | null | import functools
import heapq
import logging
from collections import deque
from threading import Condition, RLock
from typing import Any, Callable, List, NamedTuple, Optional
from pytils.mixins import DaemonHandler
from ._config.time import DEFAULT_TIME_SUPPLIER, TimeSupplier, TimeType, ZERO_DURATION
__all__ = [
... | 25.813187 | 107 | 0.645807 |
38005601c897e3e947cdabb62140e650a9ec4e7f | 1,473 | py | Python | audtool/__init__.py | Guaxinim5573/audacious-player | 7bcd2afdd91bb18a41fb70500aaf76eaa17da837 | [
"MIT"
] | null | null | null | audtool/__init__.py | Guaxinim5573/audacious-player | 7bcd2afdd91bb18a41fb70500aaf76eaa17da837 | [
"MIT"
] | 1 | 2021-11-29T16:25:22.000Z | 2021-11-29T16:25:22.000Z | audtool/__init__.py | Guaxinim5573/audacious-player | 7bcd2afdd91bb18a41fb70500aaf76eaa17da837 | [
"MIT"
] | null | null | null | import subprocess
import logging
logger = logging.getLogger(__name__)
# Run a command line command and returns stdout
# Get current song
# Skip to next song
# Display all songs in current playlist | 26.781818 | 91 | 0.697895 |
3800e9b86f70276c90dfe1568a7d1e6b8f6d4743 | 5,157 | py | Python | hyperglass/execution/drivers/agent.py | blkmajik/hyperglass | c52a6f609843177671d38bcad59b8bd658f46b64 | [
"BSD-3-Clause-Clear"
] | 298 | 2019-06-17T13:51:46.000Z | 2021-06-23T18:09:51.000Z | hyperglass/execution/drivers/agent.py | blkmajik/hyperglass | c52a6f609843177671d38bcad59b8bd658f46b64 | [
"BSD-3-Clause-Clear"
] | 137 | 2019-06-18T12:59:37.000Z | 2021-06-19T05:50:58.000Z | hyperglass/execution/drivers/agent.py | blkmajik/hyperglass | c52a6f609843177671d38bcad59b8bd658f46b64 | [
"BSD-3-Clause-Clear"
] | 42 | 2019-06-18T07:25:23.000Z | 2021-06-18T17:40:20.000Z | """Execute validated & constructed query on device.
Accepts input from front end application, validates the input and
returns errors if input is invalid. Passes validated parameters to
construct.py, which is used to build & run the Netmiko connections or
hyperglass-frr API calls, returns the output back to the front e... | 36.835714 | 86 | 0.54683 |
3800ef2480e2344c284a3ea135e2ec8a35e84cfa | 3,377 | py | Python | GiftUi.py | DrPleaseRespect/GiftBox | d39b3b644aa579297315ee3b3cb38c79556682f9 | [
"MIT"
] | null | null | null | GiftUi.py | DrPleaseRespect/GiftBox | d39b3b644aa579297315ee3b3cb38c79556682f9 | [
"MIT"
] | null | null | null | GiftUi.py | DrPleaseRespect/GiftBox | d39b3b644aa579297315ee3b3cb38c79556682f9 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
################################################################################
## Form generated from reading UI file 'GiftUi.ui'
##
## Created by: Qt User Interface Compiler version 5.15.2
##
## WARNING! All changes made in this file will be lost when recompiling UI file!
###################... | 37.522222 | 95 | 0.665976 |
3801139345c9a4ae91e8d3ae8ff7f84beeaa380a | 251 | py | Python | telegram_coin_bot/__init__.py | sigmaister/telegram-coin-bot | b14329de8fc86cb135f05d7207f64a00f349cabf | [
"MIT"
] | 17 | 2020-07-17T18:55:27.000Z | 2021-11-20T03:54:01.000Z | telegram_coin_bot/__init__.py | sigmaister/telegram-coin-bot | b14329de8fc86cb135f05d7207f64a00f349cabf | [
"MIT"
] | 5 | 2020-07-17T19:23:06.000Z | 2020-08-11T12:45:14.000Z | telegram_coin_bot/__init__.py | sigmaister/telegram-coin-bot | b14329de8fc86cb135f05d7207f64a00f349cabf | [
"MIT"
] | 10 | 2020-07-17T19:01:40.000Z | 2021-12-18T13:21:55.000Z | __author__ = "Wild Print"
__maintainer__ = __author__
__email__ = "telegram_coin_bot@rambler.ru"
__license__ = "MIT"
__version__ = "0.0.1"
__all__ = (
"__author__",
"__email__",
"__license__",
"__maintainer__",
"__version__",
)
| 15.6875 | 42 | 0.669323 |
38028042957e1e98ecf41fea1079a9cdbc4aaca9 | 3,200 | py | Python | tests/backend/message.py | IronMeerkat/genesis | 4a053ae4639a12295be9951905ca69383c1da860 | [
"MIT"
] | null | null | null | tests/backend/message.py | IronMeerkat/genesis | 4a053ae4639a12295be9951905ca69383c1da860 | [
"MIT"
] | null | null | null | tests/backend/message.py | IronMeerkat/genesis | 4a053ae4639a12295be9951905ca69383c1da860 | [
"MIT"
] | null | null | null | import test_agent
print('Logging in')
Meerkat = test_agent.TestAgent(username='meerkat', password='12345678', endpoint='/messages/')
Pangolin = test_agent.TestAgent(username='pangolin', password='12345678', endpoint='/messages/')
Badger = test_agent.TestAgent(username='badger', password='12345678', endpoint='/messages... | 50 | 115 | 0.763438 |
380600494572f949b77592c439a21526f70f73b6 | 123 | py | Python | contact/urls.py | BobsProgrammingAcademy/Portfolio-Website-Deployment | e3122f6fa0376f64b1580e03b8cb43da6dc85a1a | [
"MIT"
] | null | null | null | contact/urls.py | BobsProgrammingAcademy/Portfolio-Website-Deployment | e3122f6fa0376f64b1580e03b8cb43da6dc85a1a | [
"MIT"
] | null | null | null | contact/urls.py | BobsProgrammingAcademy/Portfolio-Website-Deployment | e3122f6fa0376f64b1580e03b8cb43da6dc85a1a | [
"MIT"
] | null | null | null | from django.urls import path
from .views import ContactListView
urlpatterns = [
path('', ContactListView.as_view()),
] | 20.5 | 40 | 0.739837 |
38070ca03e30ff02df559993d8efdc9637c42c89 | 4,610 | py | Python | src/sentry/integrations/github/client.py | detouched/sentry | 1d3cc332c9ee1c2cf5ddaf1e850e14386c3684dd | [
"BSD-3-Clause"
] | 1 | 2018-12-04T12:57:00.000Z | 2018-12-04T12:57:00.000Z | src/sentry/integrations/github/client.py | detouched/sentry | 1d3cc332c9ee1c2cf5ddaf1e850e14386c3684dd | [
"BSD-3-Clause"
] | 1 | 2021-05-09T11:43:43.000Z | 2021-05-09T11:43:43.000Z | src/sentry/integrations/github/client.py | detouched/sentry | 1d3cc332c9ee1c2cf5ddaf1e850e14386c3684dd | [
"BSD-3-Clause"
] | null | null | null | from __future__ import absolute_import
from datetime import datetime
from sentry.integrations.github.utils import get_jwt
from sentry.integrations.client import ApiClient
| 32.237762 | 89 | 0.58872 |
38075a559a8aab3be200b9d2861d53ab27a363b2 | 1,504 | py | Python | data/tokens.py | account77/mendax_py | 2fa6fdf0ebb835a269665a3b64adf43b8a6e4e20 | [
"MIT"
] | 1 | 2022-02-08T06:50:33.000Z | 2022-02-08T06:50:33.000Z | data/tokens.py | account77/mendax_py | 2fa6fdf0ebb835a269665a3b64adf43b8a6e4e20 | [
"MIT"
] | null | null | null | data/tokens.py | account77/mendax_py | 2fa6fdf0ebb835a269665a3b64adf43b8a6e4e20 | [
"MIT"
] | null | null | null | TT_INT = 'INT' # int
TT_FLOAT = 'FLOAT' # float
TT_STRING = 'STRING' # string
TT_IDENTIFIER = 'IDENTIFIER' #
TT_KEYWORD = 'KEYWORD' #
TT_PLUS = 'PLUS' # +
TT_MINUS = 'MINUS' # -
TT_MUL = 'MUL' # *
TT_DIV = 'DIV' # /
TT_POW = 'POW' # ^
TT_EQ = 'EQ' # =
TT_LPAREN = 'LPAREN' # (
TT_RPAREN = 'RPAREN' # )
TT_... | 21.183099 | 72 | 0.535904 |
3808406b3ee798849fbc2399203409d6b196a582 | 1,503 | py | Python | server/tree_gen/tree_gen.py | patrickferner/Lo-Finity | 406531106277c2ad3422518e8beb39b1c3fa53f3 | [
"MIT"
] | 1 | 2021-06-14T14:41:36.000Z | 2021-06-14T14:41:36.000Z | server/tree_gen/tree_gen.py | Jorbeatz/Lo-Finity | 406531106277c2ad3422518e8beb39b1c3fa53f3 | [
"MIT"
] | null | null | null | server/tree_gen/tree_gen.py | Jorbeatz/Lo-Finity | 406531106277c2ad3422518e8beb39b1c3fa53f3 | [
"MIT"
] | 1 | 2019-07-22T21:45:10.000Z | 2019-07-22T21:45:10.000Z | import requests
import json
import pdb
import time
#url_string = "https://api.hooktheory.com/v1/trends/nodes?cp=1"
response = requests.get("https://api.hooktheory.com/v1/trends/nodes?cp=1", headers={'Authorization': "Bearer 0449bff346d2609ac119bfb7d290e9bb"})
hook_result = json.loads(response.text)
json_result = {}
ch... | 28.903846 | 144 | 0.667332 |