hexsha stringlengths 40 40 | size int64 4 1.02M | ext stringclasses 8
values | lang stringclasses 1
value | max_stars_repo_path stringlengths 4 209 | max_stars_repo_name stringlengths 5 121 | max_stars_repo_head_hexsha stringlengths 40 40 | 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 4 209 | max_issues_repo_name stringlengths 5 121 | max_issues_repo_head_hexsha stringlengths 40 40 | max_issues_repo_licenses listlengths 1 10 | max_issues_count int64 1 67k ⌀ | 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 209 | max_forks_repo_name stringlengths 5 121 | max_forks_repo_head_hexsha stringlengths 40 40 | 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 4 1.02M | avg_line_length float64 1.07 66.1k | max_line_length int64 4 266k | alphanum_fraction float64 0.01 1 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
8e7c90bed1b0aee4f48ab416fe01a4e034ad9b66 | 82 | py | Python | distlock/__init__.py | hnimminh/distlock | b7bd515d8dbe2308eb71354dcf7334140fb11eec | [
"MIT"
] | 2 | 2021-08-07T09:38:02.000Z | 2021-08-14T01:34:27.000Z | distlock/__init__.py | hnimminh/distlock | b7bd515d8dbe2308eb71354dcf7334140fb11eec | [
"MIT"
] | 1 | 2021-08-06T11:15:49.000Z | 2021-08-06T11:32:48.000Z | distlock/__init__.py | hnimminh/distlock | b7bd515d8dbe2308eb71354dcf7334140fb11eec | [
"MIT"
] | null | null | null | from .distlock import DistLock, ReentrantDistLock, DistLockFactory, DistLockError
| 41 | 81 | 0.865854 |
12b2822adda055e2539114257d84dd2af924d401 | 1,557 | py | Python | backend/myeats/myeats_user/views.py | Zeppelin17/MyEatsScheduler | 7ed54c71b980072c42ce8eaacf48e013872120ab | [
"MIT"
] | null | null | null | backend/myeats/myeats_user/views.py | Zeppelin17/MyEatsScheduler | 7ed54c71b980072c42ce8eaacf48e013872120ab | [
"MIT"
] | 6 | 2021-03-30T14:17:18.000Z | 2022-02-27T10:32:32.000Z | backend/myeats/myeats_user/views.py | Zeppelin17/MyEatsScheduler | 7ed54c71b980072c42ce8eaacf48e013872120ab | [
"MIT"
] | null | null | null | """
/**
* myeats_user views
*
* @summary myeats_user views
* @author Zeppelin17 <elzeppelin17@gmail.com>
*
* Created at : 2020-04-19 06:36:02
* Last modified : 2020-08-08 17:47:39
*/
"""
from myeats_user.models import MyEatsUser
from myeats_user.serializers import MyEatsUserSerializer
from rest_framework... | 33.847826 | 91 | 0.755941 |
01bb014fca58b796061ed90b73d6af7b4a9e0a61 | 3,251 | py | Python | app/recipe/views.py | velibor7/recipes_pracc | 7a160e3c4e0d7be95559342223bb1a4d627a3932 | [
"MIT"
] | null | null | null | app/recipe/views.py | velibor7/recipes_pracc | 7a160e3c4e0d7be95559342223bb1a4d627a3932 | [
"MIT"
] | null | null | null | app/recipe/views.py | velibor7/recipes_pracc | 7a160e3c4e0d7be95559342223bb1a4d627a3932 | [
"MIT"
] | null | null | null | from rest_framework import viewsets, mixins, status
from rest_framework.authentication import TokenAuthentication
from rest_framework.permissions import IsAuthenticated
from rest_framework.decorators import action
from rest_framework.response import Response
from core.models import Tag, Ingredient, Recipe
from recipe... | 29.288288 | 66 | 0.760689 |
2153d9e9163777eccbe7bd4b778aea4c3662b68c | 487 | py | Python | solution/dynamic_programming_1/1010/main.py | simon-hoon/baekjoon | c06ebc8e83bd2303ed99db08172ebd7d405a6ab5 | [
"MIT"
] | 2,236 | 2019-08-05T00:36:59.000Z | 2022-03-31T16:03:53.000Z | solution/dynamic_programming_1/1010/main.py | juy4556/baekjoon | bc0b0a0ebaa45a5bbd32751f84c458a9cfdd9f92 | [
"MIT"
] | 225 | 2020-12-17T10:20:45.000Z | 2022-01-05T17:44:16.000Z | solution/dynamic_programming_1/1010/main.py | juy4556/baekjoon | bc0b0a0ebaa45a5bbd32751f84c458a9cfdd9f92 | [
"MIT"
] | 602 | 2019-08-05T00:46:25.000Z | 2022-03-31T13:38:23.000Z | # Authored by : gkgg123
# Co-authored by : -
# Link : https://www.acmicpc.net/source/share/6c285d8c7b9c44af971645f45c06d848
import sys
def input():
return sys.stdin.readline().rstrip()
T = int(input())
dp = [[0 for _ in range(31)] for _ in range(31)]
dp[0][0] = 1
for num in range(1,31):
dp[num][0] = 1
fo... | 23.190476 | 78 | 0.597536 |
1a94e1386300724f7a0715ef93bb043d42e42294 | 2,193 | py | Python | threaded_code/main.py | ankurshaswat/GoBackNProtocol | 182ea20570dcf480d6b4c6183e60a75b7afcf72a | [
"MIT"
] | null | null | null | threaded_code/main.py | ankurshaswat/GoBackNProtocol | 182ea20570dcf480d6b4c6183e60a75b7afcf72a | [
"MIT"
] | null | null | null | threaded_code/main.py | ankurshaswat/GoBackNProtocol | 182ea20570dcf480d6b4c6183e60a75b7afcf72a | [
"MIT"
] | null | null | null | import functools
from mininet.topo import Topo
from mininet.net import Mininet
from mininet.link import TCLink
from mininet.node import OVSController,RemoteController
import time
from threading import Thread
import random
BANDWIDTH = 1
DELAY='0ms'
LOSS=2
# DELAY = str(random.randint(0,5))+'ms'
# print('Delay set to... | 27.4125 | 76 | 0.640675 |
ce24579c48b8c4dded08a533be530e7d1e199b1b | 36,414 | py | Python | manim/scene/scene.py | yongkyuns/manim | 0261b83027057ec5df78681eabcaec78ee99c192 | [
"MIT"
] | null | null | null | manim/scene/scene.py | yongkyuns/manim | 0261b83027057ec5df78681eabcaec78ee99c192 | [
"MIT"
] | null | null | null | manim/scene/scene.py | yongkyuns/manim | 0261b83027057ec5df78681eabcaec78ee99c192 | [
"MIT"
] | null | null | null | import inspect
import random
import warnings
import platform
from tqdm import tqdm as ProgressDisplay
import numpy as np
from ..animation.animation import Animation
from ..animation.transform import MoveToTarget, ApplyMethod
from ..camera.camera import Camera
from ..constants import *
from ..container.container impor... | 30.885496 | 99 | 0.578349 |
9de53b0bdb4846b731840e74c92a2bea8c1858c2 | 2,350 | py | Python | fhirclient/models/medicinalproductindication_tests.py | zzhou41/client-py | cbfa8d7c7f1bad233b237b7c5582fc0577b21f70 | [
"Apache-2.0"
] | null | null | null | fhirclient/models/medicinalproductindication_tests.py | zzhou41/client-py | cbfa8d7c7f1bad233b237b7c5582fc0577b21f70 | [
"Apache-2.0"
] | null | null | null | fhirclient/models/medicinalproductindication_tests.py | zzhou41/client-py | cbfa8d7c7f1bad233b237b7c5582fc0577b21f70 | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python
# -*- coding: utf-8 -*-
#
# Generated from FHIR 4.0.0-a53ec6ee1b on 2019-07-29.
# 2019, SMART Health IT.
import os
import io
import unittest
import json
from . import medicinalproductindication
from .fhirdate import FHIRDate
class MedicinalProductIndicationTests(unittest.TestCase):
def i... | 47.959184 | 141 | 0.722128 |
76a7e694e6221931ca8aae8667d9c0f5164fd95d | 5,419 | py | Python | iotronic/api/app.py | MDSLab/iotronic | 88d260bd418fbb78f81cd17a8d5dc0a794a6e79a | [
"Apache-2.0"
] | 3 | 2016-05-13T16:00:19.000Z | 2021-07-18T12:01:08.000Z | iotronic/api/app.py | MDSLab/iotronic | 88d260bd418fbb78f81cd17a8d5dc0a794a6e79a | [
"Apache-2.0"
] | null | null | null | iotronic/api/app.py | MDSLab/iotronic | 88d260bd418fbb78f81cd17a8d5dc0a794a6e79a | [
"Apache-2.0"
] | 1 | 2015-07-23T15:40:05.000Z | 2015-07-23T15:40:05.000Z | # -*- encoding: utf-8 -*-
# Copyright © 2012 New Dream Network, LLC (DreamHost)
# 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.... | 37.372414 | 79 | 0.616534 |
77a1d40204ebafc627eafde1f6a833b05041c917 | 2,455 | py | Python | python/isogram/isogram.py | Coffeyliu/exercism | 02354be676b17e94d820df92d5436373ca656bf8 | [
"MIT"
] | null | null | null | python/isogram/isogram.py | Coffeyliu/exercism | 02354be676b17e94d820df92d5436373ca656bf8 | [
"MIT"
] | null | null | null | python/isogram/isogram.py | Coffeyliu/exercism | 02354be676b17e94d820df92d5436373ca656bf8 | [
"MIT"
] | null | null | null | import re
from typing import Set
def is_isogram(string):
"""check the input string has repeated letter or not,
return True or False.
Note: spaces and hyphens are allowed to appear multiple times"""
# shirouto: good doc string
# shirouto: how many times are you scanning the string? I have po... | 41.610169 | 108 | 0.685132 |
63404293c4a2adb4ca475906b6eda9ec5bab617d | 108,331 | py | Python | pattern/text/__init__.py | Demfier/pattern | 75f40b7bd4b14efe763cdced8965448f1f928b37 | [
"BSD-3-Clause"
] | 1 | 2017-04-26T07:28:33.000Z | 2017-04-26T07:28:33.000Z | pattern/text/__init__.py | Demfier/pattern | 75f40b7bd4b14efe763cdced8965448f1f928b37 | [
"BSD-3-Clause"
] | null | null | null | pattern/text/__init__.py | Demfier/pattern | 75f40b7bd4b14efe763cdced8965448f1f928b37 | [
"BSD-3-Clause"
] | 1 | 2017-04-26T07:28:35.000Z | 2017-04-26T07:28:35.000Z | #### PATTERN | TEXT | PARSER #######################################################################
# -*- coding: utf-8 -*-
# Copyright (c) 2010 University of Antwerp, Belgium
# Author: Tom De Smedt <tom@organisms.be>
# License: BSD (see LICENSE.txt for details).
# http://www.clips.ua.ac.be/pages/pattern
############... | 44.489117 | 159 | 0.519103 |
cfa493c49828e2b976971a93f829e745f2b88aa6 | 1,872 | py | Python | tests/test_regressors.py | Dlux804/mlkg | d5de0bfb8da8a08ad6e264727415db05fe840665 | [
"MIT"
] | null | null | null | tests/test_regressors.py | Dlux804/mlkg | d5de0bfb8da8a08ad6e264727415db05fe840665 | [
"MIT"
] | null | null | null | tests/test_regressors.py | Dlux804/mlkg | d5de0bfb8da8a08ad6e264727415db05fe840665 | [
"MIT"
] | null | null | null | """
Objective: Test regressors.py's functionality
"""
from tests.model_fixture import __data_split_model__, delete_files
import pytest
import collections
import os
from main import ROOT_DIR
# change working directory to
os.chdir(ROOT_DIR)
@pytest.mark.parametrize('algorithm, data, exp, tuned, directory', [('nn', 'Li... | 32.275862 | 114 | 0.729701 |
029da1b3d29e7f65b8798a2c20f853aaeceb7206 | 2,014 | py | Python | graph_data.py | headrotor/contec_data | bd08a71236ce5ee84a8ec7d494643383a8f04540 | [
"MIT"
] | 1 | 2021-11-03T21:20:30.000Z | 2021-11-03T21:20:30.000Z | graph_data.py | headrotor/contec_data | bd08a71236ce5ee84a8ec7d494643383a8f04540 | [
"MIT"
] | null | null | null | graph_data.py | headrotor/contec_data | bd08a71236ce5ee84a8ec7d494643383a8f04540 | [
"MIT"
] | null | null | null | import matplotlib as plt
import numpy as np
from matplotlib.backends.backend_tkagg import FigureCanvasTkAgg, NavigationToolbar2Tk
from matplotlib.figure import Figure
plt.use('TkAgg')
#Adapted for python3 and contec data graphing from
# https://stackoverflow.com/questions/43114508/can-a-pyqt-embedded-matplotlib-graph... | 33.016393 | 98 | 0.650447 |
2a33c8a0cd5ad151acdd9b6a58c11bf77ecb6b0b | 36,261 | py | Python | gamestonk_terminal/cryptocurrency/technical_analysis/ta_controller.py | elan17/GamestonkTerminal | f958f8275dc15ffaf30c1f0652f5b033725b7f10 | [
"MIT"
] | 1,835 | 2021-05-09T02:55:06.000Z | 2022-03-29T12:37:05.000Z | gamestonk_terminal/cryptocurrency/technical_analysis/ta_controller.py | elan17/GamestonkTerminal | f958f8275dc15ffaf30c1f0652f5b033725b7f10 | [
"MIT"
] | 569 | 2021-05-09T15:59:41.000Z | 2022-03-29T12:25:16.000Z | gamestonk_terminal/cryptocurrency/technical_analysis/ta_controller.py | elan17/GamestonkTerminal | f958f8275dc15ffaf30c1f0652f5b033725b7f10 | [
"MIT"
] | 268 | 2021-05-10T21:46:50.000Z | 2022-03-28T09:18:38.000Z | """Crypto Technical Analysis Controller Module"""
__docformat__ = "numpy"
# pylint:disable=too-many-lines
import argparse
from typing import List
from datetime import datetime, timedelta
import pandas as pd
from prompt_toolkit.completion import NestedCompleter
from gamestonk_terminal.rich_config import console
from g... | 35.307692 | 109 | 0.55015 |
3e24c9906b2e8ce42932f6755d1100f6fcf90da6 | 971 | py | Python | quantumcat/gates/custom_gates/cirq/sxd_gate.py | santanu-banerjee/quantumcat | bf02f77c7e196c21e964cba37d995e2c1a00a3c5 | [
"Apache-2.0"
] | 20 | 2021-05-10T07:04:41.000Z | 2021-12-13T17:12:05.000Z | quantumcat/gates/custom_gates/cirq/sxd_gate.py | santanu-banerjee/quantumcat | bf02f77c7e196c21e964cba37d995e2c1a00a3c5 | [
"Apache-2.0"
] | 2 | 2021-04-26T05:34:52.000Z | 2021-05-16T13:46:22.000Z | quantumcat/gates/custom_gates/cirq/sxd_gate.py | santanu-banerjee/quantumcat | bf02f77c7e196c21e964cba37d995e2c1a00a3c5 | [
"Apache-2.0"
] | 17 | 2021-04-02T18:09:33.000Z | 2022-02-10T16:38:57.000Z | # (C) Copyright Artificial Brain 2021.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed ... | 31.322581 | 75 | 0.676622 |
dbcdb2d2b434399069970fd67bcf2478fefade05 | 98,004 | py | Python | manticore/platforms/evm.py | cclauss/manticore | 03af65e55f7db8b418f79ab250b3a10a7fee668c | [
"Apache-2.0"
] | null | null | null | manticore/platforms/evm.py | cclauss/manticore | 03af65e55f7db8b418f79ab250b3a10a7fee668c | [
"Apache-2.0"
] | null | null | null | manticore/platforms/evm.py | cclauss/manticore | 03af65e55f7db8b418f79ab250b3a10a7fee668c | [
"Apache-2.0"
] | null | null | null | ''' Symbolic EVM implementation based on the yellow paper: http://gavwood.com/paper.pdf '''
import random
import copy
import inspect
from functools import wraps
from ..utils.helpers import issymbolic, memoized
from ..platforms.platform import *
from ..core.smtlib import solver, TooManySolutions, Expression, Bool, BitVe... | 38.000775 | 183 | 0.564161 |
c41e7458f68e7f2635b5ceed5741c20e54cd3d26 | 2,925 | py | Python | gui/arena/my_view.py | Flipajs/FERDA | 120a9e16d7ab4877f72fadbe4484c8b91adf22c4 | [
"MIT"
] | 1 | 2021-04-23T10:00:49.000Z | 2021-04-23T10:00:49.000Z | gui/arena/my_view.py | Flipajs/FERDA | 120a9e16d7ab4877f72fadbe4484c8b91adf22c4 | [
"MIT"
] | null | null | null | gui/arena/my_view.py | Flipajs/FERDA | 120a9e16d7ab4877f72fadbe4484c8b91adf22c4 | [
"MIT"
] | null | null | null | from PyQt4.QtGui import QMatrix
__author__ = 'filip@naiser.cz'
from PyQt4 import QtGui, QtCore
class MyView(QtGui.QGraphicsView):
def __init__(self, update_callback_move=None, update_callback_press=None, update_callback_release=None):
super(MyView, self).__init__()
self.setMouseTracking(True)
... | 32.865169 | 111 | 0.619487 |
09d8b174f89cdd7b9186f5bddd8859aac0006c3a | 7,936 | py | Python | src/pybel/io/spia.py | djinnome/pybel | 6ffc1df662fef51f4d740daf6d7643010a9d5be8 | [
"MIT"
] | null | null | null | src/pybel/io/spia.py | djinnome/pybel | 6ffc1df662fef51f4d740daf6d7643010a9d5be8 | [
"MIT"
] | null | null | null | src/pybel/io/spia.py | djinnome/pybel | 6ffc1df662fef51f4d740daf6d7643010a9d5be8 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
"""An exporter for signaling pathway impact analysis (SPIA) described by [Tarca2009]_.
.. [Tarca2009] Tarca, A. L., *et al* (2009). `A novel signaling pathway impact analysis
<https://doi.org/10.1093/bioinformatics/btn577>`_. Bioinformatics, 25(1), 75–82.
.. seealso:: https://b... | 36.571429 | 99 | 0.665197 |
a2fdaa200a04a4fe7eb93fb6f6fdd802cc5c413b | 1,498 | py | Python | panel/widgets/texteditor.py | sdrees/panel | 4a7cfc74d42379edc14b5897be60ea403a5cab17 | [
"BSD-3-Clause"
] | null | null | null | panel/widgets/texteditor.py | sdrees/panel | 4a7cfc74d42379edc14b5897be60ea403a5cab17 | [
"BSD-3-Clause"
] | null | null | null | panel/widgets/texteditor.py | sdrees/panel | 4a7cfc74d42379edc14b5897be60ea403a5cab17 | [
"BSD-3-Clause"
] | null | null | null | """
Defines a WYSIWYG TextEditor widget based on quill.js.
"""
import param
from pyviz_comms import JupyterComm
from ..util import lazy_load
from .base import Widget
class TextEditor(Widget):
"""
The `TextEditor` widget provides a WYSIWYG
(what-you-see-is-what-you-get) rich text editor which outputs HTM... | 31.208333 | 87 | 0.668224 |
aaa58c78438ee25553bcf632db7469c13362a99b | 421 | py | Python | LissajousRT.py | pmartel/CircuitPyDisk | 4bcd71850dab9da84829126dfbd0e09948c3324f | [
"MIT"
] | null | null | null | LissajousRT.py | pmartel/CircuitPyDisk | 4bcd71850dab9da84829126dfbd0e09948c3324f | [
"MIT"
] | null | null | null | LissajousRT.py | pmartel/CircuitPyDisk | 4bcd71850dab9da84829126dfbd0e09948c3324f | [
"MIT"
] | null | null | null | # Lissajous Real Time
import math
import board,analogio
lChan = analogio.AnalogOut(board.A0)
rChan = analogio.AnalogOut(board.A1)
length = 1000
while True:
for idx in range(length):
left = round(math.sin(math.pi * 2 * idx / length) * 10000 + 10000)
right = round(math.sin(math.pi * 2 * 3 * idx / l... | 28.066667 | 93 | 0.63658 |
ec173da7484bc5e52fc8307666752374a3ad228b | 10,888 | py | Python | breveIDE_windows_2.7.2_2/breveIDE_2.7.2/lib/python2.4/distutils/unixccompiler.py | Lamouse/Evolutionary-Creativity | 9e9a4094285241d0541e0b87a3bd2c5e4ba804d3 | [
"MIT"
] | null | null | null | breveIDE_windows_2.7.2_2/breveIDE_2.7.2/lib/python2.4/distutils/unixccompiler.py | Lamouse/Evolutionary-Creativity | 9e9a4094285241d0541e0b87a3bd2c5e4ba804d3 | [
"MIT"
] | null | null | null | breveIDE_windows_2.7.2_2/breveIDE_2.7.2/lib/python2.4/distutils/unixccompiler.py | Lamouse/Evolutionary-Creativity | 9e9a4094285241d0541e0b87a3bd2c5e4ba804d3 | [
"MIT"
] | null | null | null | """distutils.unixccompiler
Contains the UnixCCompiler class, a subclass of CCompiler that handles
the "typical" Unix-style command-line C compiler:
* macros defined with -Dname[=value]
* macros undefined with -Uname
* include search directories specified with -Idir
* libraries specified with -lllib
* library... | 44.440816 | 91 | 0.611958 |
df09e706d5178483055f2b30638b1bedb9023d51 | 9,825 | py | Python | wrench/semisupervisedlearning/meanteacher.py | Stranger469/ARS2 | b6d62b66997180abe01b676d5359c20daa42b7ad | [
"Apache-2.0"
] | null | null | null | wrench/semisupervisedlearning/meanteacher.py | Stranger469/ARS2 | b6d62b66997180abe01b676d5359c20daa42b7ad | [
"Apache-2.0"
] | null | null | null | wrench/semisupervisedlearning/meanteacher.py | Stranger469/ARS2 | b6d62b66997180abe01b676d5359c20daa42b7ad | [
"Apache-2.0"
] | null | null | null | import logging
from typing import List, Any, Optional, Union, Callable
import numpy as np
import torch
import torch.nn as nn
from tqdm.auto import trange
from .utils import exp_rampup, consistency_loss, BatchNormController
from ..backbone import BackBone
from ..basemodel import BaseTorchClassModel
from ..config impor... | 38.529412 | 139 | 0.549109 |
6c60d328ccdcf1d455eb996faf0996664aa1e596 | 1,530 | py | Python | src/romp/lib/utils/check_files.py | scraplab/ROMP | 6ce076306f25e5b1d723208628f66f2a68e461ef | [
"MIT"
] | null | null | null | src/romp/lib/utils/check_files.py | scraplab/ROMP | 6ce076306f25e5b1d723208628f66f2a68e461ef | [
"MIT"
] | null | null | null | src/romp/lib/utils/check_files.py | scraplab/ROMP | 6ce076306f25e5b1d723208628f66f2a68e461ef | [
"MIT"
] | null | null | null | import shutil
import zipfile
import os
import os.path as osp
import subprocess
import traceback
from pathlib import Path
import gdown
gdrive_id = '1sYzcUsv5XVCwkWg6FKVtKmq0gaSzEcf1'
ROMP_DATA_DIR = Path('~/.ROMP').expanduser()
needs_download = False
def get_ROMP_files():
if os.path.isdir(str(ROMP_DATA_DIR.joinpat... | 43.714286 | 160 | 0.705229 |
304268e3755b9bea9e5382695290bfa0e7a2bae4 | 2,214 | py | Python | plugins/grpc/client/kaldi_serve/core.py | ishine/kaldi-serve | 05b17f663cd4c860621fcf8c9d904f16f4ebc900 | [
"Apache-2.0"
] | 8 | 2021-09-03T09:59:51.000Z | 2022-03-02T21:38:43.000Z | plugins/grpc/client/kaldi_serve/core.py | ishine/kaldi-serve | 05b17f663cd4c860621fcf8c9d904f16f4ebc900 | [
"Apache-2.0"
] | 8 | 2021-10-22T03:31:28.000Z | 2021-12-02T08:25:27.000Z | plugins/grpc/client/kaldi_serve/core.py | ishine/kaldi-serve | 05b17f663cd4c860621fcf8c9d904f16f4ebc900 | [
"Apache-2.0"
] | 2 | 2021-12-01T12:41:12.000Z | 2022-01-01T11:11:36.000Z | from google.protobuf.empty_pb2 import Empty
import grpc
from kaldi_serve.kaldi_serve_pb2 import RecognitionConfig, RecognizeRequest
from kaldi_serve.kaldi_serve_pb2_grpc import KaldiServeStub
from kaldi_serve.kaldi_serve_pb2_grpc import google_dot_protobuf_dot_empty__pb2 as proto_empty
class KaldiServeClient(object)... | 54 | 163 | 0.776874 |
01087375a7c38eec335ab518c8dd285c7c0858a1 | 464 | py | Python | kernel/linux-4.13/tools/testing/selftests/tc-testing/tdc_config.py | ShawnZhong/SplitFS | 7e21a6fc505ff70802e5666d097326ecb97a4ae3 | [
"Apache-2.0"
] | 31 | 2018-01-16T17:11:44.000Z | 2022-03-16T13:51:24.000Z | kernel/linux-4.13/tools/testing/selftests/tc-testing/tdc_config.py | braymill/SplitFS | 00a42bb1b51718048e4c15dde31e9d358932575e | [
"Apache-2.0"
] | 5 | 2020-04-04T09:24:09.000Z | 2020-04-19T12:33:55.000Z | kernel/linux-4.13/tools/testing/selftests/tc-testing/tdc_config.py | braymill/SplitFS | 00a42bb1b51718048e4c15dde31e9d358932575e | [
"Apache-2.0"
] | 30 | 2018-05-02T08:43:27.000Z | 2022-01-23T03:25:54.000Z | """
tdc_config.py - tdc user-specified values
Copyright (C) 2017 Lucas Bates <lucasb@mojatatu.com>
"""
# Dictionary containing all values that can be substituted in executable
# commands.
NAMES = {
# Substitute your own tc path here
'TC': '/sbin/tc',
# Name of veth devices to be created ... | 25.777778 | 72 | 0.586207 |
23c18d3bacd634e0941c236644d39ed0f7c4c367 | 316 | py | Python | planb/show_cluster.py | john-coleman/planb-cassandra | 26d7d66e2962501c7d24595e0376546c68ec222e | [
"Apache-2.0"
] | 19 | 2016-02-15T19:37:52.000Z | 2017-11-01T03:37:06.000Z | planb/show_cluster.py | john-coleman/planb-cassandra | 26d7d66e2962501c7d24595e0376546c68ec222e | [
"Apache-2.0"
] | 173 | 2016-02-15T15:53:36.000Z | 2017-11-09T13:04:17.000Z | planb/show_cluster.py | john-coleman/planb-cassandra | 26d7d66e2962501c7d24595e0376546c68ec222e | [
"Apache-2.0"
] | 15 | 2016-04-20T14:25:59.000Z | 2017-08-24T14:43:32.000Z | from clickclick import print_table
TITLES = {
'NameTag': 'Name Tag',
'PrivateIpAddress': 'Private IP',
}
def show_instances(instances):
print_table(["NameTag", "PrivateIpAddress"],
[dict(i, NameTag=i['Tags']['Name'])
for i in instances],
titles=TITLES)
| 24.307692 | 51 | 0.582278 |
c3dcebed885c131e7910a3917ad882ab04be32c1 | 1,176 | py | Python | fsleyes/plugins/controls/filetreepanel/__init__.py | pauldmccarthy/fsleyes | 453a6b91ec7763c39195814d635257e3766acf83 | [
"Apache-2.0"
] | 12 | 2018-05-05T01:36:25.000Z | 2021-09-23T20:44:08.000Z | fsleyes/plugins/controls/filetreepanel/__init__.py | pauldmccarthy/fsleyes | 453a6b91ec7763c39195814d635257e3766acf83 | [
"Apache-2.0"
] | 97 | 2018-05-05T02:17:23.000Z | 2022-03-29T14:58:42.000Z | fsleyes/plugins/controls/filetreepanel/__init__.py | pauldmccarthy/fsleyes | 453a6b91ec7763c39195814d635257e3766acf83 | [
"Apache-2.0"
] | 6 | 2017-12-09T09:02:00.000Z | 2021-03-05T18:55:13.000Z | #!/usr/bin/env python
#
# __init__.py - Manage interactions between the FSLeyes FileTreePanel and
# the filetree library.
#
# Author: Paul McCarthy <pauldmccarthy@gmail.com>
#
"""The ``fsleyes.filetree`` package manages interactions between the FSLeyes
:class:`.FileTreePanel` and the `file-tree
<https://g... | 25.565217 | 76 | 0.70068 |
16542fefc2720b802a4189e345e0767a9bb7a571 | 902 | py | Python | app/form/urls.py | the-marcd/app-intro | 74ea854e6674831f8fffd4c4004b2caeb076dd3d | [
"Apache-2.0"
] | null | null | null | app/form/urls.py | the-marcd/app-intro | 74ea854e6674831f8fffd4c4004b2caeb076dd3d | [
"Apache-2.0"
] | null | null | null | app/form/urls.py | the-marcd/app-intro | 74ea854e6674831f8fffd4c4004b2caeb076dd3d | [
"Apache-2.0"
] | null | null | null | """form URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/2.2/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: path('', views.home, name='home')
Class-based vi... | 34.692308 | 77 | 0.709534 |
356aee4cbc7d599c9662448e1b685397b5c4fcdb | 162 | py | Python | arrays/tests/test_two_sum_ii.py | ahcode0919/python-ds-algorithms | 0d617b78c50b6c18da40d9fa101438749bfc82e1 | [
"MIT"
] | null | null | null | arrays/tests/test_two_sum_ii.py | ahcode0919/python-ds-algorithms | 0d617b78c50b6c18da40d9fa101438749bfc82e1 | [
"MIT"
] | null | null | null | arrays/tests/test_two_sum_ii.py | ahcode0919/python-ds-algorithms | 0d617b78c50b6c18da40d9fa101438749bfc82e1 | [
"MIT"
] | 3 | 2020-10-07T20:24:45.000Z | 2020-12-16T04:53:19.000Z | from arrays.two_sum_ii import two_sum_ii
def test_two_sum_ii():
assert two_sum_ii([2, 7, 11, 15], 9) == [1, 2]
assert two_sum_ii([-1, 0], -1) == [1, 2]
| 23.142857 | 50 | 0.617284 |
1cb3d8c8065220597232224a1140dd18e6c673be | 3,673 | py | Python | test/WorkoutPlanTester.py | msimms/OpenWorkoutWeb | 21e506b7d5cfaf30875c3f584cfae796ba112d49 | [
"MIT"
] | 1 | 2021-06-23T03:59:19.000Z | 2021-06-23T03:59:19.000Z | test/WorkoutPlanTester.py | msimms/OpenWorkoutWeb | 21e506b7d5cfaf30875c3f584cfae796ba112d49 | [
"MIT"
] | 10 | 2021-06-26T20:37:01.000Z | 2022-03-22T16:42:22.000Z | test/WorkoutPlanTester.py | msimms/OpenWorkoutWeb | 21e506b7d5cfaf30875c3f584cfae796ba112d49 | [
"MIT"
] | 1 | 2021-06-17T01:51:27.000Z | 2021-06-17T01:51:27.000Z | #! /usr/bin/env python
# -*- coding: utf-8 -*-
#
# # MIT License
#
# Copyright (c) 2020 Mike Simms
#
# 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 ... | 34.650943 | 151 | 0.673019 |
fa35efd58e6dbc29b14f47cca8a7f71e9be25d41 | 3,088 | py | Python | scipy/interpolate/tests/test_ndgriddata.py | lesserwhirls/scipy-cwt | ee673656d879d9356892621e23ed0ced3d358621 | [
"BSD-3-Clause"
] | 8 | 2015-10-07T00:37:32.000Z | 2022-01-21T17:02:33.000Z | scipy/interpolate/tests/test_ndgriddata.py | lesserwhirls/scipy-cwt | ee673656d879d9356892621e23ed0ced3d358621 | [
"BSD-3-Clause"
] | null | null | null | scipy/interpolate/tests/test_ndgriddata.py | lesserwhirls/scipy-cwt | ee673656d879d9356892621e23ed0ced3d358621 | [
"BSD-3-Clause"
] | 8 | 2015-05-09T14:23:57.000Z | 2018-11-15T05:56:00.000Z | import numpy as np
from numpy.testing import assert_equal, assert_array_equal, assert_allclose, \
run_module_suite
from scipy.interpolate import griddata
class TestGriddata(object):
def test_fill_value(self):
x = [(0,0), (0,1), (1,0)]
y = [1, 2, 3]
yi = griddata(x, y, [(1,1), (1,... | 37.658537 | 79 | 0.493523 |
30f816a956491eedc374a15fe8de6d1e5829de3f | 3,973 | py | Python | tests/functional/metrics/test_metrics.py | tomasfarias/dbt-core | ed5df342ca5d99c5e6971ee6d11c8cf3e6e263b3 | [
"Apache-2.0"
] | 799 | 2021-10-13T21:40:33.000Z | 2022-03-31T16:19:31.000Z | tests/functional/metrics/test_metrics.py | tomasfarias/dbt-core | ed5df342ca5d99c5e6971ee6d11c8cf3e6e263b3 | [
"Apache-2.0"
] | 939 | 2021-10-13T17:45:24.000Z | 2022-03-31T22:09:58.000Z | tests/functional/metrics/test_metrics.py | tomasfarias/dbt-core | ed5df342ca5d99c5e6971ee6d11c8cf3e6e263b3 | [
"Apache-2.0"
] | 175 | 2021-10-14T18:59:06.000Z | 2022-03-31T16:17:32.000Z | import pytest
from dbt.tests.util import run_dbt, get_manifest
from dbt.exceptions import ParsingException
models__people_metrics_yml = """
version: 2
metrics:
- model: "ref('people')"
name: number_of_people
description: Total count of people
label: "Number of people"
type: count
sql: "*"
... | 23.370588 | 153 | 0.639315 |
5b53e5d9a34eb4c70e241383542050e65c8da563 | 4,859 | py | Python | neutron/openstack/common/rpc/matchmaker_redis.py | kevinbenton/neutron | f27fba3ad77d907713e3e1cbfa45d33e0135c08b | [
"Apache-2.0"
] | null | null | null | neutron/openstack/common/rpc/matchmaker_redis.py | kevinbenton/neutron | f27fba3ad77d907713e3e1cbfa45d33e0135c08b | [
"Apache-2.0"
] | null | null | null | neutron/openstack/common/rpc/matchmaker_redis.py | kevinbenton/neutron | f27fba3ad77d907713e3e1cbfa45d33e0135c08b | [
"Apache-2.0"
] | null | null | null | # vim: tabstop=4 shiftwidth=4 softtabstop=4
# Copyright 2013 Cloudscaling Group, 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/LI... | 33.280822 | 79 | 0.633258 |
cfdc4db86859d282f15bfcf53fcf001d60f8f147 | 1,665 | py | Python | scripts/release_helper/main.py | DavidZeLiang/azure-sdk-for-python | b343247adc7c3c7ff52d6eadeca6b57eb0a23047 | [
"MIT"
] | null | null | null | scripts/release_helper/main.py | DavidZeLiang/azure-sdk-for-python | b343247adc7c3c7ff52d6eadeca6b57eb0a23047 | [
"MIT"
] | null | null | null | scripts/release_helper/main.py | DavidZeLiang/azure-sdk-for-python | b343247adc7c3c7ff52d6eadeca6b57eb0a23047 | [
"MIT"
] | null | null | null | from github import Github
from utils import REQUEST_REPO, REST_REPO, IssuePackage
from python import python_process
from go import go_process
from java import java_process
from js import js_process
import os
from typing import List
import logging
logging.basicConfig(level=logging.INFO,
format='%(... | 27.75 | 108 | 0.703303 |
dac5230270a54c726216be10c32f053ecb01b0f0 | 603 | py | Python | python/amici/__main__.py | kristianmeyerr/AMICI | 15f14c24b781daf5ceb3606d79edbbf57155a043 | [
"CC0-1.0"
] | 44 | 2020-09-17T07:12:07.000Z | 2022-02-23T21:25:27.000Z | python/amici/__main__.py | kristianmeyerr/AMICI | 15f14c24b781daf5ceb3606d79edbbf57155a043 | [
"CC0-1.0"
] | 589 | 2020-08-07T21:56:42.000Z | 2022-03-31T17:32:27.000Z | python/amici/__main__.py | kristianmeyerr/AMICI | 15f14c24b781daf5ceb3606d79edbbf57155a043 | [
"CC0-1.0"
] | 10 | 2020-09-02T09:32:43.000Z | 2022-03-23T12:43:45.000Z | """Package-level entrypoint"""
from . import __version__, compiledWithOpenMP, has_clibs, hdf5_enabled
import os
import sys
def print_info():
"""Displays information on the current AMICI installation.
Useful for verifying package installation of submitting bug reports"""
features = []
if has_clibs:
... | 23.192308 | 81 | 0.686567 |
9892e0b036985563ca628025ff1256ff29726778 | 930 | py | Python | migrations/versions/f99acd036dc1_.py | andreyvpng/vkpoll | 56147814af7547541470d090b7b723adb90dd0b6 | [
"BSD-2-Clause"
] | 2 | 2018-03-11T17:45:16.000Z | 2018-03-12T14:33:54.000Z | migrations/versions/f99acd036dc1_.py | andreyvpng/vkpull | 56147814af7547541470d090b7b723adb90dd0b6 | [
"BSD-2-Clause"
] | null | null | null | migrations/versions/f99acd036dc1_.py | andreyvpng/vkpull | 56147814af7547541470d090b7b723adb90dd0b6 | [
"BSD-2-Clause"
] | 1 | 2018-03-10T05:41:48.000Z | 2018-03-10T05:41:48.000Z | """empty message
Revision ID: f99acd036dc1
Revises: 41485b039997
Create Date: 2018-03-16 17:22:22.266349
"""
from alembic import op
import sqlalchemy as sa
# revision identifiers, used by Alembic.
revision = 'f99acd036dc1'
down_revision = '41485b039997'
branch_labels = None
depends_on = None
def upgrade():
# ... | 25.833333 | 65 | 0.677419 |
569a2baaf47944beabd1a0dd1b012f564321127c | 8,859 | py | Python | pygoogle/__init__.py | aikikode/uspeak | 1d288484a997a71a8ff63d6f52f88069d0225056 | [
"MIT"
] | 7 | 2015-07-24T09:51:47.000Z | 2020-01-01T06:33:40.000Z | pygoogle/__init__.py | aikikode/uspeak | 1d288484a997a71a8ff63d6f52f88069d0225056 | [
"MIT"
] | null | null | null | pygoogle/__init__.py | aikikode/uspeak | 1d288484a997a71a8ff63d6f52f88069d0225056 | [
"MIT"
] | 5 | 2017-11-15T06:22:26.000Z | 2020-04-15T23:45:11.000Z | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Google AJAX Search Module
http://code.google.com/apis/ajaxsearch/documentation/reference.html
Needs Python 2.6 or later
"""
import json
import logging
import sys
from urllib.request import urlopen
from urllib.parse import urlencode, unquote
__author__ = "Kiran Bandla... | 38.350649 | 122 | 0.584039 |
1fa4f4ba57425a0698651aee950f7f7c281e7d88 | 8,766 | py | Python | virt/ansible-2.3.0/lib/python2.7/site-packages/ansible/modules/network/nxos/nxos_udld.py | lakhlaifi/RedHat-Ansible | 27c5077cced9d416081fcd5d69ea44bca0317fa4 | [
"Apache-2.0"
] | null | null | null | virt/ansible-2.3.0/lib/python2.7/site-packages/ansible/modules/network/nxos/nxos_udld.py | lakhlaifi/RedHat-Ansible | 27c5077cced9d416081fcd5d69ea44bca0317fa4 | [
"Apache-2.0"
] | null | null | null | virt/ansible-2.3.0/lib/python2.7/site-packages/ansible/modules/network/nxos/nxos_udld.py | lakhlaifi/RedHat-Ansible | 27c5077cced9d416081fcd5d69ea44bca0317fa4 | [
"Apache-2.0"
] | 1 | 2020-02-13T14:24:57.000Z | 2020-02-13T14:24:57.000Z | #!/usr/bin/python
#
# This file is part of Ansible
#
# Ansible is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# Ansible is distribut... | 29.416107 | 87 | 0.625485 |
d4ec6577a081c90585c5214be581b6b76d0730cd | 7,731 | py | Python | vnpy/api/tap/error_codes.py | iamyyl/vnpy | 2a9fed6c9f09e27449c9f4a1cf1eaeb78435b9b8 | [
"MIT"
] | 323 | 2015-11-21T14:45:29.000Z | 2022-03-16T08:54:37.000Z | vnpy/api/tap/error_codes.py | iamyyl/vnpy | 2a9fed6c9f09e27449c9f4a1cf1eaeb78435b9b8 | [
"MIT"
] | 9 | 2017-03-21T08:26:21.000Z | 2021-08-23T06:41:17.000Z | vnpy/api/tap/error_codes.py | iamyyl/vnpy | 2a9fed6c9f09e27449c9f4a1cf1eaeb78435b9b8 | [
"MIT"
] | 148 | 2016-09-26T03:25:39.000Z | 2022-02-06T14:43:48.000Z | error_map = {
0: None,
-1: "连接服务失败",
-2: "链路认证失败",
-3: "主机地址不可用",
-4: "发送数据错误",
-5: "测试编号不合法",
-6: "没准备好测试网络",
-7: "当前网络测试还没结束",
-8: "没用可用的接入前置",
-9: "数据路径不可用",
-10: "重复登录",
-11: "内部错误",
-12: "上一次请求还没有结束",
-13: "输入参数非法",
-14: "授权码不合法",
-15: "授权码超期",
-1... | 26.750865 | 54 | 0.606131 |
2052cfcceed9a013ff4e223d2f16c96cf49221a8 | 488 | py | Python | migrations/versions/543a3bcb0e4e_.py | Kirza/flask-learning | 9e672c82fdd8b3d8d4f4d0d3695608648c13f305 | [
"MIT"
] | null | null | null | migrations/versions/543a3bcb0e4e_.py | Kirza/flask-learning | 9e672c82fdd8b3d8d4f4d0d3695608648c13f305 | [
"MIT"
] | null | null | null | migrations/versions/543a3bcb0e4e_.py | Kirza/flask-learning | 9e672c82fdd8b3d8d4f4d0d3695608648c13f305 | [
"MIT"
] | null | null | null | """empty message
Revision ID: 543a3bcb0e4e
Revises: None
Create Date: 2015-06-25 14:37:27.291548
"""
# revision identifiers, used by Alembic.
revision = '543a3bcb0e4e'
down_revision = None
from alembic import op
import sqlalchemy as sa
def upgrade():
### commands auto generated by Alembic - please adjust! ###... | 18.074074 | 63 | 0.682377 |
ee4462cb3a78b9e5d5d24b07028c33bd2f807538 | 287 | py | Python | liberary_system_management/config/desktop.py | nmimsnikhil/Frappe_Traning | ec7ac7afbb5fd20ead71e239e32842f508f24394 | [
"MIT"
] | null | null | null | liberary_system_management/config/desktop.py | nmimsnikhil/Frappe_Traning | ec7ac7afbb5fd20ead71e239e32842f508f24394 | [
"MIT"
] | null | null | null | liberary_system_management/config/desktop.py | nmimsnikhil/Frappe_Traning | ec7ac7afbb5fd20ead71e239e32842f508f24394 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from frappe import _
def get_data():
return [
{
"module_name": "Liberary Management",
"color": "grey",
"icon": "octicon octicon-file-directory",
"type": "module",
"label": _("Liberary Management")
}
]
| 19.133333 | 44 | 0.637631 |
633e660f256cdaa58995c3e0d83ea8da8bab9345 | 2,044 | py | Python | doc/source/EXAMPLES/allskyf33.py | kapteyn-astro/kapteyn | f12332cfd567c7c0da40628dcfc7b297971ee636 | [
"BSD-3-Clause"
] | 3 | 2016-04-28T08:55:33.000Z | 2018-07-23T18:35:58.000Z | doc/source/EXAMPLES/allskyf33.py | kapteyn-astro/kapteyn | f12332cfd567c7c0da40628dcfc7b297971ee636 | [
"BSD-3-Clause"
] | 2 | 2020-07-23T12:28:37.000Z | 2021-07-13T18:26:06.000Z | doc/source/EXAMPLES/allskyf33.py | kapteyn-astro/kapteyn | f12332cfd567c7c0da40628dcfc7b297971ee636 | [
"BSD-3-Clause"
] | 3 | 2017-05-03T14:01:08.000Z | 2020-07-23T12:23:28.000Z | from kapteyn import maputils
import numpy
from service import *
fignum = 33
fig = plt.figure(figsize=figsize)
frame = fig.add_axes(plotbox)
theta_a = 45.0
t1 = 20.0; t2 = 70.0
eta = abs(t1-t2)/2.0
title = r"""Conic equidistant projection (COD) oblique with $\theta_a=45^\circ$, $\theta_1=20^\circ$
and $\theta_2=70^\cir... | 40.078431 | 100 | 0.612035 |
f85d64bdc47bc1ef2afdfb1eeb579b2f7521b414 | 2,961 | py | Python | damage_detector/scalary/DataCollection.py | Andrew-Pynch/smashbot | 76f1e5e31df324d50e1e592dacfe183a4d206fe3 | [
"MIT"
] | null | null | null | damage_detector/scalary/DataCollection.py | Andrew-Pynch/smashbot | 76f1e5e31df324d50e1e592dacfe183a4d206fe3 | [
"MIT"
] | null | null | null | damage_detector/scalary/DataCollection.py | Andrew-Pynch/smashbot | 76f1e5e31df324d50e1e592dacfe183a4d206fe3 | [
"MIT"
] | null | null | null | import sys
import os
import time
from collections import Counter
import cv2
import numpy as np
import win32gui
import win32ui
import win32con
import win32api
class DataCollection(object):
def __init__(self):
pass
def __call__(self):
return self
def GrabScreen(self, region=None):
... | 31.168421 | 93 | 0.573117 |
b22b5ffcd46036b86acd6eb916fe93660be83eaf | 3,370 | py | Python | app/views/drivers/driver_routes.py | tjdaley/publicdataws | 1aa4a98cf47fae10cc0f59a8d01168df806b4919 | [
"MIT"
] | null | null | null | app/views/drivers/driver_routes.py | tjdaley/publicdataws | 1aa4a98cf47fae10cc0f59a8d01168df806b4919 | [
"MIT"
] | null | null | null | app/views/drivers/driver_routes.py | tjdaley/publicdataws | 1aa4a98cf47fae10cc0f59a8d01168df806b4919 | [
"MIT"
] | null | null | null | """
driver_routes.py - Handle the routes for searching and displaying drivers.
This module provides the views for the following routes:
/driver/<string:db>/<string:ed>/<string:rec>/<string:state>/
/search/dl_address
/search/dl
Copyright (c) 2019 by Thomas J. Daley. All Rights Reserved.
"""
from flask import Bluepri... | 37.444444 | 116 | 0.710682 |
420103d7ff6991b55cc30c2dad0ef3dc6cdb1f87 | 6,954 | py | Python | Python36_x86_Template/Lib/uu.py | iveskim/cloudbase-init-installer | bc7630a7fb7dd527618dac3938147e2d9439c285 | [
"Apache-2.0"
] | null | null | null | Python36_x86_Template/Lib/uu.py | iveskim/cloudbase-init-installer | bc7630a7fb7dd527618dac3938147e2d9439c285 | [
"Apache-2.0"
] | null | null | null | Python36_x86_Template/Lib/uu.py | iveskim/cloudbase-init-installer | bc7630a7fb7dd527618dac3938147e2d9439c285 | [
"Apache-2.0"
] | 4 | 2019-12-11T18:50:22.000Z | 2020-08-10T19:25:11.000Z | #! /usr/bin/env python3
# Copyright 1994 by Lance Ellinghouse
# Cathedral City, California Republic, United States of America.
# All Rights Reserved
# Permission to use, copy, modify, and distribute this software and its
# documentation for any purpose and without fee is hereby granted,
#... | 34.77 | 146 | 0.55407 |
7c79eb19533f1eb3ee671491b3a76e08eebe857e | 620 | py | Python | setup.py | targetsmart-devops/cloudchain | ead0b14c3da79b72971b34082d4e0ee1f2c02cc6 | [
"MIT"
] | null | null | null | setup.py | targetsmart-devops/cloudchain | ead0b14c3da79b72971b34082d4e0ee1f2c02cc6 | [
"MIT"
] | 1 | 2016-09-12T20:22:30.000Z | 2016-09-12T20:22:30.000Z | setup.py | targetsmart-devops/cloudchain | ead0b14c3da79b72971b34082d4e0ee1f2c02cc6 | [
"MIT"
] | 1 | 2016-09-13T21:23:19.000Z | 2016-09-13T21:23:19.000Z | from setuptools import setup
setup(
name='cloudchain',
packages=['cloudchain'], # this must be the same as the name above
version='0.1.7',
description='Secure, easy secrets.',
author='Jonathan Buys',
author_email='jonathan.buys@targetsmart.com',
url='https://github.com/targetsmart-devops/c... | 29.52381 | 72 | 0.662903 |
a23a1a311c334f4523824cac6939a9bef171b542 | 126,965 | py | Python | mrcnn/model.py | ilovecocolade/MultipleObjectTrackerMastersProject | 9999acb9ea5df40676349eea594143fb32d12979 | [
"MIT"
] | null | null | null | mrcnn/model.py | ilovecocolade/MultipleObjectTrackerMastersProject | 9999acb9ea5df40676349eea594143fb32d12979 | [
"MIT"
] | null | null | null | mrcnn/model.py | ilovecocolade/MultipleObjectTrackerMastersProject | 9999acb9ea5df40676349eea594143fb32d12979 | [
"MIT"
] | null | null | null | """
Mask R-CNN
The main Mask R-CNN model implementation.
Copyright (c) 2017 Matterport, Inc.
Licensed under the MIT License (see LICENSE for details)
Written by Waleed Abdulla
"""
import os
import random
import datetime
import re
import math
import logging
from collections import OrderedDict
import multiprocessing
im... | 44.146384 | 115 | 0.612035 |
724d3415c8075e39614e8e61987825ec869a4237 | 145 | py | Python | Topic_Evaluator/api/urls.py | siqueiralex/topic-coherence | c87b8bfcc7afe1ef42bf698494498387249185de | [
"MIT"
] | 3 | 2019-09-16T00:46:39.000Z | 2020-03-30T21:23:18.000Z | Topic_Evaluator/api/urls.py | siqueiralex/topic-coherence | c87b8bfcc7afe1ef42bf698494498387249185de | [
"MIT"
] | 1 | 2020-03-26T00:18:32.000Z | 2020-03-26T00:18:32.000Z | Topic_Evaluator/api/urls.py | siqueiralex/topic-coherence | c87b8bfcc7afe1ef42bf698494498387249185de | [
"MIT"
] | null | null | null | from django.urls import path, include
from api import views
urlpatterns = [
path('topic/', views.topic),
path('model/', views.model),
]
| 18.125 | 37 | 0.675862 |
c795aa5a5000023672b6ddd57f0a5a0fde7dca47 | 10,956 | py | Python | bgp/rlkit/torch/ddpg/ddpg.py | aypan17/value_learning | 240a67ecf99b178fe0c4ced2bfd1dd50453fbdfe | [
"MIT"
] | null | null | null | bgp/rlkit/torch/ddpg/ddpg.py | aypan17/value_learning | 240a67ecf99b178fe0c4ced2bfd1dd50453fbdfe | [
"MIT"
] | null | null | null | bgp/rlkit/torch/ddpg/ddpg.py | aypan17/value_learning | 240a67ecf99b178fe0c4ced2bfd1dd50453fbdfe | [
"MIT"
] | null | null | null | from collections import OrderedDict
import numpy as np
import torch.optim as optim
import bgp.rlkit.torch.pytorch_util as ptu
import torch
from bgp.rlkit.core.eval_util import create_stats_ordered_dict
from bgp.rlkit.policies.simple import RandomPolicy
from bgp.rlkit.samplers.util import rollout
from bgp.rlkit.torch.... | 35.687296 | 85 | 0.610259 |
857f8efbe273585635c611695735e24a4358c3a6 | 7,339 | py | Python | qutebrowser/themes/base16-qutebrowser/themes/base16-material-vivid.config.py | ebzzry/dotfiles | 0c775392a031c0e24ee7b165f2533a4254eedc78 | [
"CC0-1.0"
] | 30 | 2016-06-17T01:52:37.000Z | 2021-08-20T11:39:30.000Z | qutebrowser/themes/base16-qutebrowser/themes/base16-material-vivid.config.py | ebzzry/dotfiles | 0c775392a031c0e24ee7b165f2533a4254eedc78 | [
"CC0-1.0"
] | null | null | null | qutebrowser/themes/base16-qutebrowser/themes/base16-material-vivid.config.py | ebzzry/dotfiles | 0c775392a031c0e24ee7b165f2533a4254eedc78 | [
"CC0-1.0"
] | 3 | 2019-04-08T13:09:10.000Z | 2019-11-04T12:20:43.000Z | # base16-qutebrowser (https://github.com/theova/base16-qutebrowser)
# Base16 qutebrowser template by theova
# Material Vivid scheme by joshyrobot
base00 = "#202124"
base01 = "#27292c"
base02 = "#323639"
base03 = "#44464d"
base04 = "#676c71"
base05 = "#80868b"
base06 = "#9e9e9e"
base07 = "#ffffff"
base08 = "#f44336"
ba... | 29.007905 | 71 | 0.770541 |
375a97bb1e3ce4b4fbc574686db9bf05b37d8aaf | 2,884 | py | Python | src/picosvg/svg_path_iter.py | yisibl/picosvg | 61cf42dc8797317c8bd1f32de43c4f60bce0e2ef | [
"Apache-2.0"
] | null | null | null | src/picosvg/svg_path_iter.py | yisibl/picosvg | 61cf42dc8797317c8bd1f32de43c4f60bce0e2ef | [
"Apache-2.0"
] | null | null | null | src/picosvg/svg_path_iter.py | yisibl/picosvg | 61cf42dc8797317c8bd1f32de43c4f60bce0e2ef | [
"Apache-2.0"
] | null | null | null | # 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
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, ... | 36.974359 | 82 | 0.609917 |
ecf237fab0bcb1e9e6c3cd2efd6e5dab597c54d4 | 4,640 | py | Python | backup.py | farchanjo/mongobackup | 5913b7496a0f55ce7dfc5461fcbfdb093c2d9fe3 | [
"MIT"
] | null | null | null | backup.py | farchanjo/mongobackup | 5913b7496a0f55ce7dfc5461fcbfdb093c2d9fe3 | [
"MIT"
] | null | null | null | backup.py | farchanjo/mongobackup | 5913b7496a0f55ce7dfc5461fcbfdb093c2d9fe3 | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
import logging
import datetime
import os
import subprocess
import shutil
import boto3
from botocore.exceptions import ClientError
try:
from pymongo import MongoClient
except ImportError:
print('You must install pymongo before. use pip install pymongo - python3')... | 36.25 | 115 | 0.656897 |
705a1b21d67916f035e9b698b5ec5417b54ea24e | 4,260 | py | Python | sara_flexbe_states/src/sara_flexbe_states/get_marker.py | WalkingMachine/sara_behaviors | fcb55d274331915cd39d7d444546f17a39f85a44 | [
"BSD-3-Clause"
] | 5 | 2018-05-07T19:58:08.000Z | 2021-04-21T10:49:05.000Z | sara_flexbe_states/src/sara_flexbe_states/get_marker.py | WalkingMachine/sara_behaviors | fcb55d274331915cd39d7d444546f17a39f85a44 | [
"BSD-3-Clause"
] | 21 | 2017-05-26T01:20:06.000Z | 2021-01-26T23:03:36.000Z | sara_flexbe_states/src/sara_flexbe_states/get_marker.py | WalkingMachine/sara_behaviors | fcb55d274331915cd39d7d444546f17a39f85a44 | [
"BSD-3-Clause"
] | 2 | 2019-07-22T07:21:20.000Z | 2019-11-11T20:49:22.000Z | #!/usr/bin/env python
# encoding=utf8
from flexbe_core import EventState, Logger
from flexbe_core.proxy import ProxySubscriberCached
from tf.transformations import quaternion_from_euler, quaternion_matrix, quaternion_from_matrix
from geometry_msgs.msg import Quaternion
import rostopic
import inspect
from rospy.rostime... | 35.206612 | 167 | 0.592019 |
2dedade4615a92cb376fa22b03b861a6e82e6ba9 | 13,974 | py | Python | tests/addr/test_xmr_addr.py | 3rdIteration/bip_utils | 84abeff9158618a0ecf9a059c19fd1a3d882e724 | [
"MIT"
] | null | null | null | tests/addr/test_xmr_addr.py | 3rdIteration/bip_utils | 84abeff9158618a0ecf9a059c19fd1a3d882e724 | [
"MIT"
] | null | null | null | tests/addr/test_xmr_addr.py | 3rdIteration/bip_utils | 84abeff9158618a0ecf9a059c19fd1a3d882e724 | [
"MIT"
] | null | null | null | # Copyright (c) 2021 Emanuele Bellocchia
#
# 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,... | 64.100917 | 160 | 0.695434 |
f2c41a2a4a82fd6566b001bc6264b28f594623b6 | 591 | py | Python | examples/libtest/imports/__init__.py | takipsizad/pyjs | 54db0ba6747aca744f9f3c3e985a17e913dfb951 | [
"ECL-2.0",
"Apache-2.0"
] | 739 | 2015-01-01T02:05:11.000Z | 2022-03-30T15:26:16.000Z | examples/libtest/imports/__init__.py | takipsizad/pyjs | 54db0ba6747aca744f9f3c3e985a17e913dfb951 | [
"ECL-2.0",
"Apache-2.0"
] | 33 | 2015-03-25T23:17:04.000Z | 2021-08-19T08:25:22.000Z | examples/libtest/imports/__init__.py | takipsizad/pyjs | 54db0ba6747aca744f9f3c3e985a17e913dfb951 | [
"ECL-2.0",
"Apache-2.0"
] | 167 | 2015-01-01T22:27:47.000Z | 2022-03-17T13:29:19.000Z |
exec_order = []
class Imports(object):
exec_order = exec_order
def __init__(self):
self.v = 1
imports = Imports()
overrideme = "not overridden"
from . import cls as loccls
# TODO: Generate an ImportError
# This is not valid since Python 2.6!
#try:
# from .imports import cls as upcls
#except Imp... | 16.885714 | 38 | 0.695431 |
de50c4e8764c572360723bf14f196dc004015967 | 458 | py | Python | tests/test_matcher.py | fuzeman/plex.metadata.py | 2a0a1936d088efa0754406a95ba64be724af2d26 | [
"MIT"
] | 4 | 2015-02-21T06:45:05.000Z | 2018-01-26T04:59:03.000Z | tests/test_matcher.py | fuzeman/plex.metadata.py | 2a0a1936d088efa0754406a95ba64be724af2d26 | [
"MIT"
] | null | null | null | tests/test_matcher.py | fuzeman/plex.metadata.py | 2a0a1936d088efa0754406a95ba64be724af2d26 | [
"MIT"
] | null | null | null | import logging
logging.basicConfig(level=logging.DEBUG)
from plex_metadata import Matcher
def test_parse():
cases = [
('Show.Name.S05E10-11', [{'season': '05', 'episode_from': '10', 'episode_to': '11'}]),
('Show.Name.S05E10E11', [{'season': '05', 'episode': ['10', '11']}]),
('Show.Name.5x... | 28.625 | 94 | 0.593886 |
391fd76937e1cff35207deea2ba984041b863e0a | 3,260 | py | Python | purity_fb/purity_fb_1dot1/models/snapshot_suffix.py | mabdelhafez/purity_fb_python_client | a9856875b3df43b4302a2e4addd1a6b71f51f5ce | [
"Apache-2.0"
] | null | null | null | purity_fb/purity_fb_1dot1/models/snapshot_suffix.py | mabdelhafez/purity_fb_python_client | a9856875b3df43b4302a2e4addd1a6b71f51f5ce | [
"Apache-2.0"
] | null | null | null | purity_fb/purity_fb_1dot1/models/snapshot_suffix.py | mabdelhafez/purity_fb_python_client | a9856875b3df43b4302a2e4addd1a6b71f51f5ce | [
"Apache-2.0"
] | null | null | null | # coding: utf-8
"""
Pure Storage FlashBlade REST 1.1 Python SDK
Pure Storage FlashBlade REST 1.1 Python SDK, developed by [Pure Storage, Inc](http://www.purestorage.com/). Documentations can be found at [purity-fb.readthedocs.io](http://purity-fb.readthedocs.io/).
OpenAPI spec version: 1.1
Contact: i... | 25.669291 | 204 | 0.546012 |
472bf4c335211e199f9ae153356c9ffbe753efdb | 8,575 | py | Python | ambari-agent/src/test/python/ambari_agent/TestPythonExecutor.py | dsantesteban/ambari | a8184e8b7f6d8d247ee2ef77303c6bce55ebca39 | [
"Apache-2.0"
] | 1 | 2021-07-03T08:17:34.000Z | 2021-07-03T08:17:34.000Z | ambari-agent/src/test/python/ambari_agent/TestPythonExecutor.py | dsantesteban/ambari | a8184e8b7f6d8d247ee2ef77303c6bce55ebca39 | [
"Apache-2.0"
] | null | null | null | ambari-agent/src/test/python/ambari_agent/TestPythonExecutor.py | dsantesteban/ambari | a8184e8b7f6d8d247ee2ef77303c6bce55ebca39 | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python
'''
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")... | 40.258216 | 131 | 0.725598 |
cba5979e8a71d0ed237d79c4229d9370529ff67f | 2,447 | py | Python | examples/dfp/v201711/activity_group_service/create_activity_groups.py | christineyi3898/googleads-python-lib | cd707dc897b93cf1bbb19355f7424e7834e7fb55 | [
"Apache-2.0"
] | 1 | 2019-10-21T04:10:22.000Z | 2019-10-21T04:10:22.000Z | examples/dfp/v201711/activity_group_service/create_activity_groups.py | christineyi3898/googleads-python-lib | cd707dc897b93cf1bbb19355f7424e7834e7fb55 | [
"Apache-2.0"
] | null | null | null | examples/dfp/v201711/activity_group_service/create_activity_groups.py | christineyi3898/googleads-python-lib | cd707dc897b93cf1bbb19355f7424e7834e7fb55 | [
"Apache-2.0"
] | 1 | 2019-10-21T04:10:51.000Z | 2019-10-21T04:10:51.000Z | #!/usr/bin/env python
#
# Copyright 2015 Google Inc. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless requir... | 33.986111 | 78 | 0.729873 |
be493695d76a36df0653fc71af87cf32c170c0b0 | 81 | py | Python | pitches/celery_worker.py | jakhax/pitches | e56358d00089bd46addd54192220bcca0478e0da | [
"MIT"
] | null | null | null | pitches/celery_worker.py | jakhax/pitches | e56358d00089bd46addd54192220bcca0478e0da | [
"MIT"
] | null | null | null | pitches/celery_worker.py | jakhax/pitches | e56358d00089bd46addd54192220bcca0478e0da | [
"MIT"
] | null | null | null | from .app import celery, create_app
app = create_app()
app.app_context().push()
| 16.2 | 35 | 0.740741 |
96ac38cf7ae3d2a54d0c683b292c7bd1d785c66c | 371 | py | Python | setup.py | Ken529n/Lassolver | f9f6997bf065622fe462b329c5cc99bd20f7d68b | [
"MIT"
] | null | null | null | setup.py | Ken529n/Lassolver | f9f6997bf065622fe462b329c5cc99bd20f7d68b | [
"MIT"
] | null | null | null | setup.py | Ken529n/Lassolver | f9f6997bf065622fe462b329c5cc99bd20f7d68b | [
"MIT"
] | null | null | null | from setuptools import setup, find_packages
setup(
name = 'lassolver',
version = '0.2.8',
author = 'Ken Hisanaga',
description='Lassolver is a Python package for Compressed Sensing and Distributed Compressed Sensing',
install_requires = ['numpy','scipy','matplotlib',],
packages = find_packages(),
url = 'https:/... | 30.916667 | 103 | 0.727763 |
c4079391c4c761164b891d79e16929f8c900b730 | 996 | py | Python | tests/test_api.py | wakita181009/slack-api-utils | 2216b9fa36bc49f25669efd4df279e5b1ecbfd63 | [
"MIT"
] | null | null | null | tests/test_api.py | wakita181009/slack-api-utils | 2216b9fa36bc49f25669efd4df279e5b1ecbfd63 | [
"MIT"
] | null | null | null | tests/test_api.py | wakita181009/slack-api-utils | 2216b9fa36bc49f25669efd4df279e5b1ecbfd63 | [
"MIT"
] | null | null | null | # -*- cording: utf-8 -*-
from __future__ import unicode_literals
import os
import unittest
from slack_api_utils.client import Client
TOKEN = os.getenv("SLACK_API_TOKEN")
class ClientTest(unittest.TestCase):
def setUp(self):
self.client = Client(TOKEN)
def test_get_user_dict(self):
self.ass... | 25.538462 | 55 | 0.672691 |
54261196ffe7fb0a501bbe9f23c3c04b37d35a44 | 2,410 | py | Python | BiblioPixelAnimations/matrix/Fireworks.py | karsttuinstra/BiblioPixelAnimations | 103f57319a1f9c98d8d3ca51999e3286e7b1ff06 | [
"MIT"
] | null | null | null | BiblioPixelAnimations/matrix/Fireworks.py | karsttuinstra/BiblioPixelAnimations | 103f57319a1f9c98d8d3ca51999e3286e7b1ff06 | [
"MIT"
] | null | null | null | BiblioPixelAnimations/matrix/Fireworks.py | karsttuinstra/BiblioPixelAnimations | 103f57319a1f9c98d8d3ca51999e3286e7b1ff06 | [
"MIT"
] | null | null | null | import random
from bibliopixel.animation.matrix import Matrix
from bibliopixel.colors import COLORS
class Circle:
def __init__(self, posy, posx, color, frameratio, radius):
self._y = posy
self._x = posx
self._color = color
# animation speed of a single circle relative to the fps o... | 32.567568 | 84 | 0.591701 |
7524fdf2db1b6e667fe8d8ffa3b3438aec8a575a | 4,334 | py | Python | custom_components/hacs/hacsmigration.py | basschipper/hacs | a5387f962fb6a1414b1d2d32b49678c5baff27f6 | [
"MIT"
] | 3 | 2019-03-12T21:27:56.000Z | 2019-05-03T06:18:48.000Z | custom_components/hacs/hacsmigration.py | basschipper/hacs | a5387f962fb6a1414b1d2d32b49678c5baff27f6 | [
"MIT"
] | null | null | null | custom_components/hacs/hacsmigration.py | basschipper/hacs | a5387f962fb6a1414b1d2d32b49678c5baff27f6 | [
"MIT"
] | null | null | null | """Blueprint for HacsMigration."""
import logging
import json
from shutil import copy2
import aiofiles
from .hacsbase import HacsBase
from .const import STORAGE_VERSION, STORENAME
_LOGGER = logging.getLogger("custom_components.hacs.migration")
class HacsMigration(HacsBase):
"""HACS data migration handler."""
... | 36.116667 | 84 | 0.591832 |
e9db2bf4734b0e11d17d1537eace027f8e4647a5 | 3,994 | py | Python | src/v5.1/resources/swagger_client/models/post_secondary_institution_extensions.py | xmarcosx/edfi-notebook | 0564ebdf1d0f45a9d25056e7e61369f0a837534d | [
"Apache-2.0"
] | 2 | 2021-04-27T17:18:17.000Z | 2021-04-27T19:14:39.000Z | src/v5.1/resources/swagger_client/models/post_secondary_institution_extensions.py | xmarcosx/edfi-notebook | 0564ebdf1d0f45a9d25056e7e61369f0a837534d | [
"Apache-2.0"
] | null | null | null | src/v5.1/resources/swagger_client/models/post_secondary_institution_extensions.py | xmarcosx/edfi-notebook | 0564ebdf1d0f45a9d25056e7e61369f0a837534d | [
"Apache-2.0"
] | 1 | 2022-01-06T09:43:11.000Z | 2022-01-06T09:43:11.000Z | # coding: utf-8
"""
Ed-Fi Operational Data Store API
The Ed-Fi ODS / API enables applications to read and write education data stored in an Ed-Fi ODS through a secure REST interface. *** > *Note: Consumers of ODS / API information should sanitize all data for display and storage. The ODS / API provides reas... | 32.209677 | 482 | 0.611417 |
7b7de9b50ca4676880302d0a4fbf12f7d4701750 | 1,809 | py | Python | bamboo/unit_tests/test_unit_layer_covariance.py | forsyth2/lbann | 64fc0346f65353c2f7526a019da964914e539fb0 | [
"Apache-2.0"
] | null | null | null | bamboo/unit_tests/test_unit_layer_covariance.py | forsyth2/lbann | 64fc0346f65353c2f7526a019da964914e539fb0 | [
"Apache-2.0"
] | null | null | null | bamboo/unit_tests/test_unit_layer_covariance.py | forsyth2/lbann | 64fc0346f65353c2f7526a019da964914e539fb0 | [
"Apache-2.0"
] | null | null | null | import sys
sys.path.insert(0, '../common_python')
import tools
import pytest
import os
def skeleton_layer_covariance(cluster, executables, dir_name, compiler_name):
if compiler_name not in executables:
e = 'skeleton_layer_covariance: default_exes[%s] does not exist' % compiler_name
print('Skip - '... | 39.326087 | 115 | 0.737424 |
8bb399fd4ddd4977ed7df234553082cff6bc10b5 | 7,405 | py | Python | app/pylibs/osx64/Cryptodome/Cipher/CAST.py | skylex77/PokeMapGT | dbef69236fd8ec492d00bd067b430686451cc102 | [
"MIT"
] | 2,557 | 2016-07-19T22:20:45.000Z | 2022-01-25T10:53:35.000Z | app/pylibs/osx64/Cryptodome/Cipher/CAST.py | skylex77/PokeMapGT | dbef69236fd8ec492d00bd067b430686451cc102 | [
"MIT"
] | 1,360 | 2016-07-20T02:06:42.000Z | 2021-07-27T12:46:40.000Z | app/pylibs/osx64/Cryptodome/Cipher/CAST.py | skylex77/PokeMapGT | dbef69236fd8ec492d00bd067b430686451cc102 | [
"MIT"
] | 607 | 2016-07-20T03:34:04.000Z | 2022-01-05T14:57:09.000Z | # -*- coding: utf-8 -*-
#
# Cipher/CAST.py : CAST
#
# ===================================================================
# The contents of this file are dedicated to the public domain. To
# the extent that dedication to the public domain is not available,
# everyone is granted a worldwide, perpetual, royalty-free,
#... | 36.477833 | 79 | 0.629575 |
9cfba7f40d8d62ee74f92677ebdc40f41d030ab9 | 6,440 | py | Python | pybind/slxos/v16r_1_00b/rule/command/interface_vlan_leaf/interface/__init__.py | shivharis/pybind | 4e1c6d54b9fd722ccec25546ba2413d79ce337e6 | [
"Apache-2.0"
] | null | null | null | pybind/slxos/v16r_1_00b/rule/command/interface_vlan_leaf/interface/__init__.py | shivharis/pybind | 4e1c6d54b9fd722ccec25546ba2413d79ce337e6 | [
"Apache-2.0"
] | null | null | null | pybind/slxos/v16r_1_00b/rule/command/interface_vlan_leaf/interface/__init__.py | shivharis/pybind | 4e1c6d54b9fd722ccec25546ba2413d79ce337e6 | [
"Apache-2.0"
] | 1 | 2021-11-05T22:15:42.000Z | 2021-11-05T22:15:42.000Z |
from operator import attrgetter
import pyangbind.lib.xpathhelper as xpathhelper
from pyangbind.lib.yangtypes import RestrictedPrecisionDecimalType, RestrictedClassType, TypedListType
from pyangbind.lib.yangtypes import YANGBool, YANGListType, YANGDynClass, ReferenceType
from pyangbind.lib.base import PybindBase
from d... | 52.357724 | 588 | 0.712578 |
e4b261df7a29c6b674e656015f2dba5c7c6b9484 | 128,274 | py | Python | python/ccxt/gateio.py | abc1763613206/ccxt | 0169158d5ad9648c3a893da1589d922cc8a177f9 | [
"MIT"
] | null | null | null | python/ccxt/gateio.py | abc1763613206/ccxt | 0169158d5ad9648c3a893da1589d922cc8a177f9 | [
"MIT"
] | null | null | null | python/ccxt/gateio.py | abc1763613206/ccxt | 0169158d5ad9648c3a893da1589d922cc8a177f9 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
# PLEASE DO NOT EDIT THIS FILE, IT IS GENERATED AND WILL BE OVERWRITTEN:
# https://github.com/ccxt/ccxt/blob/master/CONTRIBUTING.md#how-to-contribute-code
from ccxt.base.exchange import Exchange
import hashlib
from ccxt.base.errors import ExchangeError
from ccxt.base.errors import Authenticati... | 43.394452 | 194 | 0.454566 |
108b5c327a8a992eb39a7de2c2d840ff4963c731 | 36,114 | py | Python | vers/v3v3v2.py | Lyxal/AddPlusPlus | 851e47285cde44ff2bfc3bc0adff4ca7c54b33cf | [
"MIT"
] | null | null | null | vers/v3v3v2.py | Lyxal/AddPlusPlus | 851e47285cde44ff2bfc3bc0adff4ca7c54b33cf | [
"MIT"
] | null | null | null | vers/v3v3v2.py | Lyxal/AddPlusPlus | 851e47285cde44ff2bfc3bc0adff4ca7c54b33cf | [
"MIT"
] | null | null | null | import functools
import math
import operator
import random
import re
import sys
import error
def isdigit(string):
return all(i in '1234567890-.' for i in string)
def eval_(string):
if '.' in string: return float(string)
try: return int(string)
except: return string
class Stack(list)... | 40.577528 | 123 | 0.433295 |
ddefa4f59483e9bae1b695f133fed0027f080e34 | 5,759 | py | Python | tensorflow/tensorboard/backend/server.py | c0g/tensorflow_current | f794cd393b1e7821fcc3cdcee9b6a4400f2540bf | [
"Apache-2.0"
] | 2 | 2019-07-05T15:17:01.000Z | 2020-04-16T07:25:56.000Z | tensorflow/tensorboard/backend/server.py | c0g/tensorflow_current | f794cd393b1e7821fcc3cdcee9b6a4400f2540bf | [
"Apache-2.0"
] | 1 | 2021-04-12T03:51:59.000Z | 2021-04-12T03:51:59.000Z | tensorflow/tensorboard/backend/server.py | c0g/tensorflow_current | f794cd393b1e7821fcc3cdcee9b6a4400f2540bf | [
"Apache-2.0"
] | 1 | 2016-07-06T00:54:41.000Z | 2016-07-06T00:54:41.000Z | # Copyright 2015 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... | 35.331288 | 80 | 0.718701 |
4a6b64b5409e7d93578f6fe4400bed5a533cb301 | 2,008 | py | Python | detr_tf/data/processing.py | Andrei997/detr-tensorflow | 32d55c1af96453e22e37807e934c6a56c9debeb9 | [
"MIT"
] | null | null | null | detr_tf/data/processing.py | Andrei997/detr-tensorflow | 32d55c1af96453e22e37807e934c6a56c9debeb9 | [
"MIT"
] | null | null | null | detr_tf/data/processing.py | Andrei997/detr-tensorflow | 32d55c1af96453e22e37807e934c6a56c9debeb9 | [
"MIT"
] | null | null | null | import tensorflow as tf
import numpy as np
def normalized_images(image, config):
""" Normalized images. torch_resnet is used on finetuning
since the weights are based on the original paper training code
from pytorch. tf_resnet is used when training from scratch with a
resnet50 traine don tensorflow.... | 33.466667 | 107 | 0.646414 |
73939eece3e33cebdfece6ed9b0608413c9220a5 | 1,258 | py | Python | modules/gsl_specfun/doc/gsl_sf_taylorcoeff.py | brycelelbach/nt2 | 73d7e8dd390fa4c8d251c6451acdae65def70e0b | [
"BSL-1.0"
] | 1 | 2022-03-24T03:35:10.000Z | 2022-03-24T03:35:10.000Z | modules/gsl_specfun/doc/gsl_sf_taylorcoeff.py | brycelelbach/nt2 | 73d7e8dd390fa4c8d251c6451acdae65def70e0b | [
"BSL-1.0"
] | null | null | null | modules/gsl_specfun/doc/gsl_sf_taylorcoeff.py | brycelelbach/nt2 | 73d7e8dd390fa4c8d251c6451acdae65def70e0b | [
"BSL-1.0"
] | null | null | null | [ ## this file was manually modified by jt
{
'functor' : {
'arity' : '2',
'call_types' : ['iT','T'],
'ret_arity' : '0',
'rturn' : {
'default' : 'T',
},
'simd_types' : [],
'special' : ['gsl_specfun'],
'type_defs' : [],
... | 27.955556 | 77 | 0.344992 |
61100ccf1e31dbb30b2bc0d14709d1ed8741f0d5 | 2,936 | py | Python | psdaq/psdaq/pyxpm/surf/ethernet/udp/_UdpEngineClient.py | JBlaschke/lcls2 | 30523ef069e823535475d68fa283c6387bcf817b | [
"BSD-3-Clause-LBNL"
] | null | null | null | psdaq/psdaq/pyxpm/surf/ethernet/udp/_UdpEngineClient.py | JBlaschke/lcls2 | 30523ef069e823535475d68fa283c6387bcf817b | [
"BSD-3-Clause-LBNL"
] | null | null | null | psdaq/psdaq/pyxpm/surf/ethernet/udp/_UdpEngineClient.py | JBlaschke/lcls2 | 30523ef069e823535475d68fa283c6387bcf817b | [
"BSD-3-Clause-LBNL"
] | null | null | null | #!/usr/bin/env python
#-----------------------------------------------------------------------------
# Title : PyRogue UdpEngineClient
#-----------------------------------------------------------------------------
# File : UdpEngineClient.py
# Created : 2017-04-12
#----------------------------------------... | 40.219178 | 93 | 0.449932 |
401bac70e80f40b25a3e85c81e2088384df40b35 | 8,899 | py | Python | createModel.py | szervoudakis/OpinionMine | 70ab18747ec0b32b59ed1936a04872acffdbd2f9 | [
"Apache-2.0"
] | 1 | 2021-06-01T06:03:00.000Z | 2021-06-01T06:03:00.000Z | createModel.py | szervoudakis/OpinionMine | 70ab18747ec0b32b59ed1936a04872acffdbd2f9 | [
"Apache-2.0"
] | null | null | null | createModel.py | szervoudakis/OpinionMine | 70ab18747ec0b32b59ed1936a04872acffdbd2f9 | [
"Apache-2.0"
] | 1 | 2021-06-25T14:59:34.000Z | 2021-06-25T14:59:34.000Z | import ast
import json
import os
from tempfile import TemporaryFile
import numpy
import problog
import time
from problog.cnf_formula import CNF
from problog.ddnnf_formula import DDNNF
from problog.formula import LogicDAG
from vaderSentiment.vaderSentiment import SentimentIntensityAnalyzer
from EntitiesOfTweet import *... | 39.030702 | 176 | 0.633442 |
f6ebf02b53c821bcb69f93d3b123bd0c85268bf5 | 2,148 | py | Python | graphite_feeder/handler/appliance/light/indoor/dimmerable.py | majamassarini/automate-graphite-feeder | 0f17f99bbdaab86e10e0b7d424d055ff44fc4ca0 | [
"MIT"
] | null | null | null | graphite_feeder/handler/appliance/light/indoor/dimmerable.py | majamassarini/automate-graphite-feeder | 0f17f99bbdaab86e10e0b7d424d055ff44fc4ca0 | [
"MIT"
] | null | null | null | graphite_feeder/handler/appliance/light/indoor/dimmerable.py | majamassarini/automate-graphite-feeder | 0f17f99bbdaab86e10e0b7d424d055ff44fc4ca0 | [
"MIT"
] | null | null | null | import home
from graphite_feeder.handler.appliance.light import Handler as Parent
class Handler(Parent):
KLASS = home.appliance.light.indoor.dimmerable.Appliance
def _get_url(self, name):
url = 'target=alias(offset(keepLastValue({name}.{metric}), -4),"Show")&'.format(
name=name, metric=... | 34.645161 | 101 | 0.571229 |
f55c7d048bb9183a690aa80bcbc5b9baa5feceb2 | 1,446 | py | Python | 2020/day07/main.py | loboyd/advent-of-code-2020 | 3895b9a3289a1fb6e4a55135b232d1c02a0c3308 | [
"MIT"
] | null | null | null | 2020/day07/main.py | loboyd/advent-of-code-2020 | 3895b9a3289a1fb6e4a55135b232d1c02a0c3308 | [
"MIT"
] | null | null | null | 2020/day07/main.py | loboyd/advent-of-code-2020 | 3895b9a3289a1fb6e4a55135b232d1c02a0c3308 | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
data = open("data.txt", 'r').read().split('\n')[:-1]
def sol1(data):
b = dict()
for d in data:
d = d[:-1]
outer, inners = d.split(' contain ')
outer = outer.rpartition(' ')[0]
inners = inners.split(', ')
inners = [i.rpartition(' ')[0] for i in in... | 23.322581 | 62 | 0.457123 |
ec2f95cf9913f3f9744738b81cebf44eee64a753 | 236 | py | Python | test_basic.py | zexhan17/Intro-to-computing-using-python | 0f040a4f3cfe08b15af317cb27eafa0a1a38c573 | [
"MIT"
] | null | null | null | test_basic.py | zexhan17/Intro-to-computing-using-python | 0f040a4f3cfe08b15af317cb27eafa0a1a38c573 | [
"MIT"
] | null | null | null | test_basic.py | zexhan17/Intro-to-computing-using-python | 0f040a4f3cfe08b15af317cb27eafa0a1a38c573 | [
"MIT"
] | null | null | null | from basicmath import add
def test_add():
assert add(1, 3) == 4
# from basicmath import sortlist
#
# def test_srt():
# l = [15, 2, 3, 7, 6, 0]
# l_sorted = [0, 2, 3, 6, 7, 15]
#
# assert sortlist(l) == l_sorted
| 11.8 | 36 | 0.54661 |
cec740c0585480a40aa6f95f2fe263db72e473da | 1,321 | py | Python | seahub/api2/views_misc.py | MJochim/seahub | 66fcc6772511d43346a2980613576c5fdb4c4945 | [
"Apache-2.0"
] | 101 | 2021-05-16T06:00:03.000Z | 2021-12-01T02:02:29.000Z | seahub/api2/views_misc.py | MJochim/seahub | 66fcc6772511d43346a2980613576c5fdb4c4945 | [
"Apache-2.0"
] | 6 | 2019-12-13T09:55:45.000Z | 2022-03-11T23:47:29.000Z | seahub/api2/views_misc.py | MJochim/seahub | 66fcc6772511d43346a2980613576c5fdb4c4945 | [
"Apache-2.0"
] | 1 | 2019-05-16T06:58:16.000Z | 2019-05-16T06:58:16.000Z | # Copyright (c) 2012-2016 Seafile Ltd.
from seahub.api2.base import APIView
from seahub.api2.utils import json_response, is_seafile_pro
from seahub import settings
from seahub.utils import HAS_OFFICE_CONVERTER, HAS_FILE_SEARCH
from constance import config
class ServerInfoView(APIView):
"""
Returns the server ... | 31.452381 | 103 | 0.668433 |
3901d75d591857af1bd80ac7f58f6de3f64df60e | 882 | py | Python | parqser/parser/base_parser.py | ARQtty/parqser | 2f4f9505544d718dc818d1d9177ac1394bfbb352 | [
"MIT"
] | null | null | null | parqser/parser/base_parser.py | ARQtty/parqser | 2f4f9505544d718dc818d1d9177ac1394bfbb352 | [
"MIT"
] | null | null | null | parqser/parser/base_parser.py | ARQtty/parqser | 2f4f9505544d718dc818d1d9177ac1394bfbb352 | [
"MIT"
] | null | null | null | from typing import List
from inspect import getmembers, isclass
from parqser.page import BasePage
from parqser.web_component import BaseComponent
class BaseParser:
def __init__(self, components: List[BaseComponent]):
self._components = components
def parse(self, page: BasePage) -> BasePage:
"... | 35.28 | 78 | 0.70068 |
e4b7f5435c02b89dfed16d91def3ee24697f7719 | 1,556 | py | Python | educa/courses/fields.py | AmitAps/elearning | 08e622306c6845dd29140becf3286acb946a2e73 | [
"MIT"
] | null | null | null | educa/courses/fields.py | AmitAps/elearning | 08e622306c6845dd29140becf3286acb946a2e73 | [
"MIT"
] | null | null | null | educa/courses/fields.py | AmitAps/elearning | 08e622306c6845dd29140becf3286acb946a2e73 | [
"MIT"
] | null | null | null | from django.db import models
from django.core.exceptions import ObjectDoesNotExist
class OrderField(models.PositiveIntegerField):
"""
This is your custom OrderField . It inherits from the PositiveIntegerField
field provided by Django. Your OrderField field takes an optional for_fields
parameter that allows you... | 42.054054 | 141 | 0.561054 |
03f6b461cd33ba7f1517e6f33579a0d79767de18 | 9,743 | py | Python | dags/rockflow/operators/futu.py | day253/airflow-dags | a98d47396f2c6e0185d528e94d02fa8a8daaef7a | [
"Unlicense"
] | 2 | 2022-01-08T17:19:01.000Z | 2022-02-10T06:41:28.000Z | dags/rockflow/operators/futu.py | RockFlow-AI/airflow-dags | 8172ed9041231264d491120d0c1f5c973fbed92a | [
"Unlicense"
] | null | null | null | dags/rockflow/operators/futu.py | RockFlow-AI/airflow-dags | 8172ed9041231264d491120d0c1f5c973fbed92a | [
"Unlicense"
] | 1 | 2021-12-15T09:57:55.000Z | 2021-12-15T09:57:55.000Z | import json
import os
from io import BytesIO
from multiprocessing.pool import ThreadPool as Pool
from pathlib import Path
from typing import Any, Dict
import pandas as pd
from stringcase import snakecase
from rockflow.common.datatime_helper import GmtDatetimeCheck
from rockflow.common.futu_company_profile import Futu... | 27.44507 | 111 | 0.582162 |
02ae8b3a1d37749f8c902ef70f15c11e91633024 | 16,121 | py | Python | jobs/buildhub/inventory_to_records.py | leplatrem/buildhub | 0fa1fc0d917f63d47fa7f2586a6e495ddb4c5ad3 | [
"Apache-2.0"
] | null | null | null | jobs/buildhub/inventory_to_records.py | leplatrem/buildhub | 0fa1fc0d917f63d47fa7f2586a6e495ddb4c5ad3 | [
"Apache-2.0"
] | null | null | null | jobs/buildhub/inventory_to_records.py | leplatrem/buildhub | 0fa1fc0d917f63d47fa7f2586a6e495ddb4c5ad3 | [
"Apache-2.0"
] | null | null | null | import argparse
import asyncio
import async_timeout
import csv
import datetime
import json
import logging
import os
import pkg_resources
import re
import sys
from collections import defaultdict
import aiohttp
import backoff
from buildhub.utils import (
archive_url, chunked, is_release_build_metadata, is_build_url... | 36.14574 | 94 | 0.59742 |
6ed62b13950edec5282430a3e1bea7ec20f94c64 | 888 | py | Python | ckanext/example_iconfigurer/plugin_v1.py | ziveo/ckan | f4cfe5e28789df58b2bf7e73e5989ffda00e5c5c | [
"Apache-2.0"
] | 58 | 2015-01-11T09:05:15.000Z | 2022-03-17T23:44:07.000Z | ckanext/example_iconfigurer/plugin_v1.py | ziveo/ckan | f4cfe5e28789df58b2bf7e73e5989ffda00e5c5c | [
"Apache-2.0"
] | 1,467 | 2015-01-01T16:47:44.000Z | 2022-02-28T16:51:20.000Z | ckanext/example_iconfigurer/plugin_v1.py | ziveo/ckan | f4cfe5e28789df58b2bf7e73e5989ffda00e5c5c | [
"Apache-2.0"
] | 17 | 2015-05-06T14:04:21.000Z | 2021-11-11T19:58:16.000Z | # encoding: utf-8
from six import text_type
import ckan.plugins as plugins
import ckan.plugins.toolkit as toolkit
class ExampleIConfigurerPlugin(plugins.SingletonPlugin):
plugins.implements(plugins.IConfigurer)
# IConfigurer
def update_config_schema(self, schema):
ignore_missing = toolkit.ge... | 28.645161 | 77 | 0.661036 |
f3ca4d6db3c221618e8d4cb564352f0ca687bd14 | 4,923 | py | Python | lib/gii/moai/LuaScriptAsset.py | tommo/gii | 03624a57cf74a07e38bfdc7f53c50bd926b7b5a7 | [
"MIT"
] | 7 | 2016-02-13T18:47:23.000Z | 2020-07-03T13:47:49.000Z | lib/gii/moai/LuaScriptAsset.py | tommo/gii | 03624a57cf74a07e38bfdc7f53c50bd926b7b5a7 | [
"MIT"
] | 1 | 2018-06-13T04:55:27.000Z | 2021-11-05T05:52:51.000Z | lib/gii/moai/LuaScriptAsset.py | tommo/gii | 03624a57cf74a07e38bfdc7f53c50bd926b7b5a7 | [
"MIT"
] | 4 | 2016-02-15T13:32:46.000Z | 2019-12-12T17:22:31.000Z | import os.path
import subprocess
import hashlib
from MOAIRuntime import *
from MOAIRuntime import _G, _GII
from gii.core import *
##--------------------------------------------##
signals.register ( 'script.load' )
signals.register ( 'script.reload' )
signals.register ( 'script.unload' )
##-------------------------... | 29.656627 | 92 | 0.618119 |
06c7d051798b2af1ee43dde46e04c07320f2a51c | 17,218 | py | Python | tests/components/alexa/test_state_report.py | PiotrMachowski/core | b9d7d0cae2ccd2d88e90e49cc09e154a27ed809b | [
"Apache-2.0"
] | 3 | 2020-11-27T06:26:27.000Z | 2020-12-09T14:55:16.000Z | tests/components/alexa/test_state_report.py | PiotrMachowski/core | b9d7d0cae2ccd2d88e90e49cc09e154a27ed809b | [
"Apache-2.0"
] | 25 | 2021-11-24T06:24:10.000Z | 2022-03-31T06:23:06.000Z | tests/components/alexa/test_state_report.py | PiotrMachowski/core | b9d7d0cae2ccd2d88e90e49cc09e154a27ed809b | [
"Apache-2.0"
] | 3 | 2021-11-14T13:29:33.000Z | 2021-12-27T17:05:22.000Z | """Test report state."""
import json
from unittest.mock import AsyncMock, patch
import aiohttp
import pytest
from homeassistant import core
from homeassistant.components.alexa import errors, state_report
from . import TEST_URL, get_default_config
async def test_report_state(hass, aioclient_mock):
"""Test proac... | 31.305455 | 91 | 0.644558 |
4fc2e2dfdfa5f0efcfff1cf1573c189f4cbd2003 | 9,198 | py | Python | modi/util/usage_util.py | seankim811/pyMODI | 7293fb400e810d4fefaee75ca61cb21694918a52 | [
"MIT"
] | 13 | 2020-05-19T02:34:05.000Z | 2022-02-18T06:44:34.000Z | modi/util/usage_util.py | seankim811/pyMODI | 7293fb400e810d4fefaee75ca61cb21694918a52 | [
"MIT"
] | 48 | 2018-08-21T07:56:35.000Z | 2020-05-03T02:08:26.000Z | modi/util/usage_util.py | LUXROBO/MODI-Python-API | 43df0276ca21ec8c1997d1521f507e8f0150336c | [
"MIT"
] | 23 | 2020-05-18T06:34:54.000Z | 2021-02-25T11:50:17.000Z | import os
from textwrap import fill
from textwrap import dedent
class UsageInstructor:
"""
Usage Instructor teaches basic module usage of PyMODI.
It mainly teachs what methods are available for each module.
"""
row_len = 79
def __init__(self):
self.bundle = None
self.led = N... | 27.538922 | 76 | 0.485214 |
ad458374e5774e3889ede15de3ae61f798e9ad20 | 10,054 | py | Python | codechecker_common/source_code_comment_handler.py | tmsblgh/codechecker | 51f5917485c523d6d21de4b497e84076c1c875a1 | [
"Apache-2.0"
] | null | null | null | codechecker_common/source_code_comment_handler.py | tmsblgh/codechecker | 51f5917485c523d6d21de4b497e84076c1c875a1 | [
"Apache-2.0"
] | null | null | null | codechecker_common/source_code_comment_handler.py | tmsblgh/codechecker | 51f5917485c523d6d21de4b497e84076c1c875a1 | [
"Apache-2.0"
] | null | null | null | # -------------------------------------------------------------------------
#
# Part of the CodeChecker project, under the Apache License v2.0 with
# LLVM Exceptions. See LICENSE for license information.
# SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
#
# ---------------------------------------------------... | 35.652482 | 79 | 0.568629 |
f56ec991ad3d1ff32cd89c4cd7e7ca829c0f7530 | 290 | py | Python | src/python/WMComponent/DBS3Buffer/Oracle/DBSBufferFiles/HeritageLFNChild.py | khurtado/WMCore | f74e252412e49189a92962945a94f93bec81cd1e | [
"Apache-2.0"
] | 21 | 2015-11-19T16:18:45.000Z | 2021-12-02T18:20:39.000Z | src/python/WMComponent/DBS3Buffer/Oracle/DBSBufferFiles/HeritageLFNChild.py | khurtado/WMCore | f74e252412e49189a92962945a94f93bec81cd1e | [
"Apache-2.0"
] | 5,671 | 2015-01-06T14:38:52.000Z | 2022-03-31T22:11:14.000Z | src/python/WMComponent/DBS3Buffer/Oracle/DBSBufferFiles/HeritageLFNChild.py | khurtado/WMCore | f74e252412e49189a92962945a94f93bec81cd1e | [
"Apache-2.0"
] | 67 | 2015-01-21T15:55:38.000Z | 2022-02-03T19:53:13.000Z | #!/usr/bin/env python
"""
_HeritageLFNChild_
Oracle implementation of DBSBufferFiles.HeritageLFNChild
"""
from WMComponent.DBS3Buffer.MySQL.DBSBufferFiles.HeritageLFNChild import \
HeritageLFNChild as MySQLHeritageLFNChild
class HeritageLFNChild(MySQLHeritageLFNChild):
pass
| 18.125 | 74 | 0.813793 |
29188c23562eb6219d9d21dadbc402359286814d | 167 | py | Python | vizdoommaze/envs/vizdoommazethree16.py | Brodong/vizdoommaze | 1b7531f59f6eb5e94d22193d95febaf52ff6a874 | [
"MIT"
] | null | null | null | vizdoommaze/envs/vizdoommazethree16.py | Brodong/vizdoommaze | 1b7531f59f6eb5e94d22193d95febaf52ff6a874 | [
"MIT"
] | null | null | null | vizdoommaze/envs/vizdoommazethree16.py | Brodong/vizdoommaze | 1b7531f59f6eb5e94d22193d95febaf52ff6a874 | [
"MIT"
] | 1 | 2021-01-14T08:58:28.000Z | 2021-01-14T08:58:28.000Z | from vizdoommaze.envs.vizdoomenv import VizdoomEnv
class VizdoomMazeThree16(VizdoomEnv):
def __init__(self):
super(VizdoomMazeThree16, self).__init__(69) | 27.833333 | 52 | 0.778443 |
aa883481530cb525c58d5b25b8b1ed4377c85f98 | 1,622 | py | Python | fakenamegeneratorAPI/parser_.py | catarium/fakenamegenerator_API | 60d3ddba85fc332a3d31857e81bf9e23005dfeba | [
"Apache-2.0"
] | 3 | 2020-09-05T17:16:17.000Z | 2020-12-04T13:06:35.000Z | fakenamegeneratorAPI/parser_.py | catarium/fakenamegenerator_API | 60d3ddba85fc332a3d31857e81bf9e23005dfeba | [
"Apache-2.0"
] | null | null | null | fakenamegeneratorAPI/parser_.py | catarium/fakenamegenerator_API | 60d3ddba85fc332a3d31857e81bf9e23005dfeba | [
"Apache-2.0"
] | null | null | null | import requests
from bs4 import BeautifulSoup
import re
URL = 'https://www.fakenamegenerator.com/'
class Parser:
def __init__(self):
self.url = 'https://www.fakenamegenerator.com/'
self.headers = {'user-agent': 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_4) ', 'accept': '*/*'}
def create_... | 37.72093 | 106 | 0.522195 |
c1f9571416840c9b0beb00cbe77916d99c1b12fe | 6,336 | py | Python | models/cifar10_resnet.py | ychfan/tf_estimator_barebone | cdbc0628bc01b9949667034da5dda42c86761cd0 | [
"MIT"
] | 80 | 2018-04-10T18:01:27.000Z | 2021-11-29T14:05:27.000Z | models/cifar10_resnet.py | bensuucar/tf_estimator_barebone | cdbc0628bc01b9949667034da5dda42c86761cd0 | [
"MIT"
] | 12 | 2018-11-07T13:39:47.000Z | 2019-11-10T09:14:58.000Z | models/cifar10_resnet.py | bensuucar/tf_estimator_barebone | cdbc0628bc01b9949667034da5dda42c86761cd0 | [
"MIT"
] | 20 | 2018-09-24T22:37:59.000Z | 2021-02-23T18:10:59.000Z | """ResNet model for CIFAR-10 dataset
"""
from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
import tensorflow as tf
import models
def update_argparser(parser):
models.update_argparser(parser)
args, _ = parser.parse_known_args()
if args.dataset == 'cif... | 33 | 80 | 0.630682 |
2bd7f81a62b3b20cbf55820d0bdbeb408eb8acc2 | 20,645 | py | Python | extra_apps/xadmin/views/edit.py | thomaslzb/onlineStore | 83bda14c97ece799f3df44dc26b6e3b1c8b8463d | [
"Apache-2.0"
] | null | null | null | extra_apps/xadmin/views/edit.py | thomaslzb/onlineStore | 83bda14c97ece799f3df44dc26b6e3b1c8b8463d | [
"Apache-2.0"
] | null | null | null | extra_apps/xadmin/views/edit.py | thomaslzb/onlineStore | 83bda14c97ece799f3df44dc26b6e3b1c8b8463d | [
"Apache-2.0"
] | null | null | null | from __future__ import absolute_import
import copy
from crispy_forms.utils import TEMPLATE_PACK
from django import forms
from django.contrib.contenttypes.models import ContentType
from django.core.exceptions import PermissionDenied, FieldError
from django.db import models, transaction
from django.forms.models import m... | 36.60461 | 202 | 0.609978 |
6a913142b9481694cd8cf15327b878b0b01b5733 | 95 | py | Python | ch10/mypackage/spam.py | Lee-W/Python_Cookbook | c8896ee46bb0c00536f7132f3fec2eaf6df45667 | [
"MIT"
] | null | null | null | ch10/mypackage/spam.py | Lee-W/Python_Cookbook | c8896ee46bb0c00536f7132f3fec2eaf6df45667 | [
"MIT"
] | null | null | null | ch10/mypackage/spam.py | Lee-W/Python_Cookbook | c8896ee46bb0c00536f7132f3fec2eaf6df45667 | [
"MIT"
] | null | null | null | import pkgutil
data = pkgutil.get_data(__package__, 'somedata.dat')
print('Data from ', data) | 19 | 52 | 0.747368 |
f1431e9bf793a65c0e91c092f8e9f8acb9ae1f60 | 11,500 | py | Python | resources/lib/run_addon.py | Sopor/plugin.video.netflix-1 | ecefb537cdffa368e104864b313fbcc010b44b68 | [
"MIT"
] | null | null | null | resources/lib/run_addon.py | Sopor/plugin.video.netflix-1 | ecefb537cdffa368e104864b313fbcc010b44b68 | [
"MIT"
] | null | null | null | resources/lib/run_addon.py | Sopor/plugin.video.netflix-1 | ecefb537cdffa368e104864b313fbcc010b44b68 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
"""
Copyright (C) 2017 Sebastian Golasch (plugin.video.netflix)
Functions for starting the addon
SPDX-License-Identifier: MIT
See LICENSES/MIT.md for more information.
"""
from __future__ import absolute_import, division, unicode_literals
from functools import wraps
from xbmc ... | 46.938776 | 120 | 0.672174 |
bcbda76bad29f5cc26c69161ec0ba5c316281000 | 11,744 | py | Python | fastai2/text/learner.py | pete88b/fastai2 | b3254d1032ff8a223b6acd7298d2ba06fe90e4eb | [
"Apache-2.0"
] | 1 | 2020-07-09T09:58:08.000Z | 2020-07-09T09:58:08.000Z | fastai2/text/learner.py | pete88b/fastai2 | b3254d1032ff8a223b6acd7298d2ba06fe90e4eb | [
"Apache-2.0"
] | 1 | 2021-09-28T05:58:59.000Z | 2021-09-28T05:58:59.000Z | fastai2/text/learner.py | pete88b/fastai2 | b3254d1032ff8a223b6acd7298d2ba06fe90e4eb | [
"Apache-2.0"
] | null | null | null | # AUTOGENERATED! DO NOT EDIT! File to edit: nbs/37_text.learner.ipynb (unless otherwise specified).
__all__ = ['match_embeds', 'load_ignore_keys', 'clean_raw_keys', 'load_model_text', 'TextLearner', 'decode_spec_tokens',
'LMLearner', 'language_model_learner', 'text_classifier_learner']
# Cell
from ..basics... | 44.316981 | 120 | 0.647054 |
25fd42c6572b4f84746228463c079248e063ce9f | 29,399 | py | Python | pipeline/ingest/histology.py | davidgodinez/map-ephys | 5a037815bf32b80aa4840b4e08e140758e87ffc9 | [
"MIT"
] | 1 | 2022-01-20T23:31:19.000Z | 2022-01-20T23:31:19.000Z | pipeline/ingest/histology.py | davidgodinez/map-ephys | 5a037815bf32b80aa4840b4e08e140758e87ffc9 | [
"MIT"
] | 18 | 2019-05-30T19:13:45.000Z | 2022-02-21T18:37:28.000Z | pipeline/ingest/histology.py | davidgodinez/map-ephys | 5a037815bf32b80aa4840b4e08e140758e87ffc9 | [
"MIT"
] | 3 | 2019-05-10T20:27:42.000Z | 2021-09-15T16:53:34.000Z | import logging
import pathlib
import csv
import re
import json
import math
import numpy as np
import scipy.io as scio
import datajoint as dj
from datetime import datetime
from pipeline import lab, ephys, experiment, ccf, histology, report
from pipeline import get_schema_name, dict_to_hash
from pipeline.ingest import... | 47.0384 | 157 | 0.548216 |
b91ca3bdd4f2e974fd34e675dd6531c29734119c | 1,279 | py | Python | app.py | TinyDevil/simple_web | 376717d2900fc1fb6334899ebaf110566133634d | [
"MIT"
] | 2 | 2019-08-06T13:08:40.000Z | 2019-12-09T03:12:44.000Z | app.py | TinyDevil/simple_web | 376717d2900fc1fb6334899ebaf110566133634d | [
"MIT"
] | null | null | null | app.py | TinyDevil/simple_web | 376717d2900fc1fb6334899ebaf110566133634d | [
"MIT"
] | null | null | null | from werkzeug.wrappers import Request, Response
from werkzeug.routing import Map, Rule
from werkzeug.serving import run_simple
class App(object):
def __init__(self):
self.url_map = Map()
def dispatch_request(self, request):
adapter = self.url_map.bind_to_environ(request.environ)
try:
... | 27.212766 | 71 | 0.637217 |
f4d4b9c5981ad1af6934a89c3f4349a327286e0a | 6,301 | py | Python | password_generator.py | ShunSakurai/password | 0e1e5d4a3f73286a85595c2639c4701a071f5517 | [
"CNRI-Python"
] | 2 | 2017-06-18T23:12:04.000Z | 2021-08-02T15:17:07.000Z | password_generator.py | ShunSakurai/password | 0e1e5d4a3f73286a85595c2639c4701a071f5517 | [
"CNRI-Python"
] | null | null | null | password_generator.py | ShunSakurai/password | 0e1e5d4a3f73286a85595c2639c4701a071f5517 | [
"CNRI-Python"
] | 1 | 2019-10-04T08:54:10.000Z | 2019-10-04T08:54:10.000Z | # coding: utf-8
'''
cd /d z:
cd Dropbox/Codes/password_generator
py password_generator.py
'''
# Terms taken from Pythonista
import tkinter
import random
import re
view = tkinter.Frame()
subview_up_left = tkinter.Frame(view)
subview_up_right = tkinter.Frame(view)
subview_left = tkinter.Frame(view)
subview_right = tk... | 30.736585 | 158 | 0.701952 |
7ff6d45a99cac7eb493edf7b0e4d943e90073ccc | 405 | py | Python | src/wireless/bluetooth_conn.py | SLR8/core | e1dcb313ecbcd63983e69e182cc32af5eac25836 | [
"MIT"
] | null | null | null | src/wireless/bluetooth_conn.py | SLR8/core | e1dcb313ecbcd63983e69e182cc32af5eac25836 | [
"MIT"
] | null | null | null | src/wireless/bluetooth_conn.py | SLR8/core | e1dcb313ecbcd63983e69e182cc32af5eac25836 | [
"MIT"
] | null | null | null | import bluetooth
print('Scanning for bluetooth devices')
devices = bluetooth.discover_devices(lookup_names=True, lookup_class= True)
number_of_devices = len(devices)
print(f'Devices found {number_of_devices}')
for addr, name, device_class in devices:
print('\n')
print('Device')
print(f'Device name {name... | 27 | 75 | 0.733333 |
c895aaff472d3d5a17d2ef24d01d0a9240711981 | 662 | py | Python | leetcode2.py | nhatle0296/programming_challenges | e44fbbddff97f858db1e28a396a58fb0e451fd5a | [
"MIT"
] | null | null | null | leetcode2.py | nhatle0296/programming_challenges | e44fbbddff97f858db1e28a396a58fb0e451fd5a | [
"MIT"
] | 1 | 2018-03-09T17:12:03.000Z | 2018-03-09T17:12:03.000Z | leetcode2.py | nhatle0296/programming_challenges | e44fbbddff97f858db1e28a396a58fb0e451fd5a | [
"MIT"
] | null | null | null | def addTwoNumbers(self, l1, l2):
"""
:type l1: ListNode
:type l2: ListNode
:rtype: ListNode
"""
traversal1 = l1
traversal2 = l2
dummy = head = ListNode(0)
carry = 0
while traversal1 != None or traversal2 != None or carry != 0:
i... | 30.090909 | 69 | 0.492447 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.