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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
340556e1e0c08283d52d7ab00c0bd69cfae55d5b | 96 | py | Python | riki/__init__.py | afenyvesi/riki | dfd6579b3400e8ebcad1c4a610902124fad8f302 | [
"MIT"
] | null | null | null | riki/__init__.py | afenyvesi/riki | dfd6579b3400e8ebcad1c4a610902124fad8f302 | [
"MIT"
] | 1 | 2020-01-25T23:07:00.000Z | 2020-01-25T23:07:00.000Z | riki/__init__.py | afenyvesi/riki | dfd6579b3400e8ebcad1c4a610902124fad8f302 | [
"MIT"
] | 2 | 2020-01-25T22:21:33.000Z | 2020-07-15T20:59:18.000Z | from ._version import __version__
# TODO: refactor the whole semester shit to semester configs
| 24 | 60 | 0.8125 |
340699a64c90a2586bf773ce6e1dbfc3c237f72c | 2,013 | py | Python | src/Lib/_imp.py | martinphellwig/brython_wf | e169afc1e048cba0c12118b4cd6f109df6fe67c9 | [
"BSD-3-Clause"
] | 3 | 2017-04-04T06:18:16.000Z | 2020-01-17T02:03:39.000Z | src/Lib/_imp.py | martinphellwig/brython_wf | e169afc1e048cba0c12118b4cd6f109df6fe67c9 | [
"BSD-3-Clause"
] | 1 | 2019-07-08T05:28:59.000Z | 2021-01-14T10:44:49.000Z | src/Lib/_imp.py | martinphellwig/brython_wf | e169afc1e048cba0c12118b4cd6f109df6fe67c9 | [
"BSD-3-Clause"
] | 8 | 2017-06-27T05:38:52.000Z | 2021-06-19T16:00:03.000Z | """(Extremely) low-level import machinery bits as used by importlib and imp."""
def acquire_lock(*args,**kw):
"""acquire_lock() -> None Acquires the interpreter's import lock for the current thread.
This lock should be used by import hooks to ensure thread-safety
when importing modules.
On platform... | 38.711538 | 122 | 0.71237 |
3406d84467a5acfd453f5f31463ea4e221d44215 | 719 | py | Python | toolset/benchmark/test_types/datarate_type.py | ssgberk/benchmark-tool | 43514f302c7a4e81f4236d0ed5dfa8f2a84c8d29 | [
"BSD-3-Clause"
] | null | null | null | toolset/benchmark/test_types/datarate_type.py | ssgberk/benchmark-tool | 43514f302c7a4e81f4236d0ed5dfa8f2a84c8d29 | [
"BSD-3-Clause"
] | null | null | null | toolset/benchmark/test_types/datarate_type.py | ssgberk/benchmark-tool | 43514f302c7a4e81f4236d0ed5dfa8f2a84c8d29 | [
"BSD-3-Clause"
] | null | null | null | from toolset.benchmark.test_types.framework_test_type import FrameworkTestType
| 26.62963 | 78 | 0.584145 |
340711cca076c2fc011c0b1bb2f7dfe92c01eb3a | 2,150 | py | Python | tests/test_pyspark_gateway.py | abronte/PysparkGateway | 96f18719e5245259dc8cda48d591127fbb64559e | [
"Apache-2.0"
] | 2 | 2019-04-19T04:28:30.000Z | 2021-04-06T21:35:18.000Z | tests/test_pyspark_gateway.py | abronte/PysparkGateway | 96f18719e5245259dc8cda48d591127fbb64559e | [
"Apache-2.0"
] | 12 | 2019-06-04T22:51:29.000Z | 2021-03-05T17:28:52.000Z | tests/test_pyspark_gateway.py | abronte/PysparkGateway | 96f18719e5245259dc8cda48d591127fbb64559e | [
"Apache-2.0"
] | 2 | 2020-09-08T13:56:03.000Z | 2020-09-08T14:04:33.000Z | import unittest
import time
from multiprocessing import Process
import os
import psutil
import requests
import pandas
from pyspark_gateway import server
from pyspark_gateway import PysparkGateway
if __name__ == '__main__':
unittest.main()
| 28.666667 | 94 | 0.630233 |
3407d24ae2fa298896d1f107ed13d34a6563056d | 2,705 | py | Python | endpoints/candidates.py | stikks/Interview_Calendar | a84028addf198cde73a859295e59884d09468b9b | [
"MIT"
] | null | null | null | endpoints/candidates.py | stikks/Interview_Calendar | a84028addf198cde73a859295e59884d09468b9b | [
"MIT"
] | 2 | 2020-03-12T16:11:48.000Z | 2020-03-12T16:11:48.000Z | endpoints/candidates.py | stikks/Interview_Calendar | a84028addf198cde73a859295e59884d09468b9b | [
"MIT"
] | null | null | null | from flask import jsonify
import connexion
from app import forms, models, InvalidUsage
from services import common
def all():
"""
json response of available interviewers
:return:
"""
url_params = connexion.request.args
page = url_params.get('page', 0)
limit = url_params.get('limit', 20)... | 27.886598 | 118 | 0.678743 |
34092ed7ac478bf326c91277968d452e229666f2 | 20,549 | py | Python | extract_spreadsheet_data.py | dpvcg/extract-sheets | f133202f8f120768edeb19d66cbeae19d32283ad | [
"MIT"
] | null | null | null | extract_spreadsheet_data.py | dpvcg/extract-sheets | f133202f8f120768edeb19d66cbeae19d32283ad | [
"MIT"
] | 2 | 2019-05-21T14:57:57.000Z | 2020-08-25T10:41:08.000Z | extract_spreadsheet_data.py | dpvcg/extract-sheets | f133202f8f120768edeb19d66cbeae19d32283ad | [
"MIT"
] | null | null | null | import pickle
import os.path
import sys, getopt
from googleapiclient.discovery import build
from google_auth_oauthlib.flow import InstalledAppFlow
from google.auth.transport.requests import Request
import html
from collections import namedtuple
from dataclasses import dataclass
from typing import List
from rdf_serial... | 40.05653 | 92 | 0.541973 |
340be8531353ff9d1a25de04481afd75f2788f8a | 2,242 | py | Python | setup.py | Tygs/ww | 6a4b85141c9b74026abe8f3fa9bc7021f3c99fd4 | [
"MIT"
] | 15 | 2016-10-15T10:15:08.000Z | 2021-04-06T08:31:02.000Z | setup.py | Tygs/ww | 6a4b85141c9b74026abe8f3fa9bc7021f3c99fd4 | [
"MIT"
] | 7 | 2016-10-14T08:53:29.000Z | 2016-11-09T23:43:31.000Z | setup.py | Tygs/ww | 6a4b85141c9b74026abe8f3fa9bc7021f3c99fd4 | [
"MIT"
] | 3 | 2016-10-13T11:44:46.000Z | 2016-10-14T08:58:03.000Z |
import re
import setuptools
def get_version(path="src/ww/__init__.py"):
""" Return the version of by with regex intead of importing it"""
init_content = open(path, "rt").read()
pattern = r"^__version__ = ['\"]([^'\"]*)['\"]"
return re.search(pattern, init_content, re.M).group(1)
requirements, dep_... | 32.492754 | 74 | 0.604817 |
340cbfe68b1c13b7a09c6a2e2168a22416b91746 | 462 | py | Python | Largest_Number.py | Taizul1579/Pythonbasic | a197e1d8fa7f74bc9bff5ae2d5cf6bf7010e884c | [
"Apache-2.0"
] | null | null | null | Largest_Number.py | Taizul1579/Pythonbasic | a197e1d8fa7f74bc9bff5ae2d5cf6bf7010e884c | [
"Apache-2.0"
] | null | null | null | Largest_Number.py | Taizul1579/Pythonbasic | a197e1d8fa7f74bc9bff5ae2d5cf6bf7010e884c | [
"Apache-2.0"
] | null | null | null | # largest number
a = int(input("Enter The First Number : "))
b = int(input("Enter The Seceond Number : "))
c = int(input("Enter The Thard Number : "))
Max = max(a, b, c)
print("Largest Number Is :", Max)
print('################## Seceond Program #################################')
if a >= b and a >= c:
... | 27.176471 | 79 | 0.512987 |
340ed019461635a7a257c5e10586606f2797256a | 7,144 | py | Python | karp/services/entry_views.py | spraakbanken/karp-backend-v6-tmp | e5b78157bd999df18c188973ae2a337015b6f35d | [
"MIT"
] | 1 | 2021-12-08T15:33:42.000Z | 2021-12-08T15:33:42.000Z | karp/services/entry_views.py | spraakbanken/karp-backend-v6-tmp | e5b78157bd999df18c188973ae2a337015b6f35d | [
"MIT"
] | null | null | null | karp/services/entry_views.py | spraakbanken/karp-backend-v6-tmp | e5b78157bd999df18c188973ae2a337015b6f35d | [
"MIT"
] | null | null | null | import typing
import pydantic
from sb_json_tools import jsondiff
from karp.domain import model
from karp.utility import unique_id
from karp import errors as karp_errors
from . import context
# pylint: disable=unsubscriptable-object
def diff(
diff_request: EntryDiffRequest,
ctx: context.Context,
) -... | 34.512077 | 113 | 0.643757 |
340ef7f7152b1c8bcf4d6dfbc1ee8ab088dec0b4 | 1,517 | py | Python | src/genie/libs/parser/generic/tests/ShowInventory/cli/equal/golden_output_nxos_1_expected.py | balmasea/genieparser | d1e71a96dfb081e0a8591707b9d4872decd5d9d3 | [
"Apache-2.0"
] | null | null | null | src/genie/libs/parser/generic/tests/ShowInventory/cli/equal/golden_output_nxos_1_expected.py | balmasea/genieparser | d1e71a96dfb081e0a8591707b9d4872decd5d9d3 | [
"Apache-2.0"
] | null | null | null | src/genie/libs/parser/generic/tests/ShowInventory/cli/equal/golden_output_nxos_1_expected.py | balmasea/genieparser | d1e71a96dfb081e0a8591707b9d4872decd5d9d3 | [
"Apache-2.0"
] | null | null | null | expected_output = {
'inventory_item_index': {
0: {
'description': 'nexus7000 c7009 (9 slot) chassis ',
'name': 'chassis',
'pid': 'N7K-C7009',
'sn': 'JAF1704ARQG',
'vid': 'V01',
},
1: {
'description': 'supervisor module-2... | 28.622642 | 75 | 0.382334 |
340fc602bc88626b963a2f00f968c462be4fd52e | 7,907 | py | Python | harolistener.py | zanedma/haro-listener | ad6566f4a63075c44376e27e1c15a67aecfbbd59 | [
"MIT"
] | 1 | 2021-03-22T07:34:47.000Z | 2021-03-22T07:34:47.000Z | harolistener.py | zanedma/haro-listener | ad6566f4a63075c44376e27e1c15a67aecfbbd59 | [
"MIT"
] | 1 | 2021-12-01T13:19:24.000Z | 2021-12-01T13:19:24.000Z | harolistener.py | zanedma/haro-listener | ad6566f4a63075c44376e27e1c15a67aecfbbd59 | [
"MIT"
] | null | null | null | from __future__ import print_function
import base64
from email.mime.text import MIMEText
import os
import pickle
from time import sleep
# project specific imports
from utils import getTime, set_params, exitWithError
from colors import printGreen, printFail
import messageutils
from inboxmanager import InboxManager
# goo... | 39.338308 | 118 | 0.636398 |
340feb310324e5298778e12f9aadf50691777642 | 2,155 | py | Python | python_developer_tools/cv/utils/tensorboard_demo.py | carlsummer/python_developer_tools | a8c4365b7cc601cda55648cdfd8c0cb1faae132f | [
"Apache-2.0"
] | 32 | 2021-06-21T04:49:48.000Z | 2022-03-29T05:46:59.000Z | python_developer_tools/cv/utils/tensorboard_demo.py | carlsummer/python_developer_tools | a8c4365b7cc601cda55648cdfd8c0cb1faae132f | [
"Apache-2.0"
] | 1 | 2021-11-12T03:45:55.000Z | 2021-11-12T03:45:55.000Z | python_developer_tools/cv/utils/tensorboard_demo.py | carlsummer/python_developer_tools | a8c4365b7cc601cda55648cdfd8c0cb1faae132f | [
"Apache-2.0"
] | 10 | 2021-06-03T08:05:05.000Z | 2021-12-13T03:10:42.000Z | #### tensorboard
import atexit
import os
import os.path as osp
import signal
import time
import torch
import torchvision
from tensorboardX import SummaryWriter
import subprocess
import sys
import socket
def get_host_ip():
"""
ip
:return:
"""
try:
s=socket.socket(socket.AF_INET,socket.SOCK... | 26.9375 | 118 | 0.670534 |
34113fecaaf5a7c5bd7a7623c8074eb083a1607c | 17,731 | py | Python | mindmappings/gradSearch/search/search.py | kartik-hegde/mindmappings | e96f2a287da2a93c4af0794a3bab1211bc95ba0a | [
"MIT"
] | 17 | 2021-03-30T07:11:44.000Z | 2022-03-08T11:06:39.000Z | mindmappings/gradSearch/search/search.py | kartik-hegde/mindmappings | e96f2a287da2a93c4af0794a3bab1211bc95ba0a | [
"MIT"
] | 1 | 2022-01-12T03:20:31.000Z | 2022-01-30T17:24:30.000Z | mindmappings/gradSearch/search/search.py | kartik-hegde/mindmappings | e96f2a287da2a93c4af0794a3bab1211bc95ba0a | [
"MIT"
] | 4 | 2021-05-25T00:30:41.000Z | 2022-02-09T13:57:21.000Z | import torch
import math
import time
import csv
from torch.autograd import Variable
import torch.nn as nn
from torch.nn import parameter
import torch.nn.functional as F
from torch.multiprocessing import Pool, Process, set_start_method, Lock, cpu_count
import sys, os
import numpy as np
from copy import copy, deepcopy
f... | 48.84573 | 244 | 0.604196 |
34132b4f426042a4feec013fe9658cc640630b89 | 299 | py | Python | Python3-Learn/StringCopies-SanaaShah.py.py | nikhiljain-413/Hacktoberfest2021_beginner | 56b008c9ed294c3fc23b44fa13faced99948236d | [
"MIT"
] | 65 | 2021-10-01T07:02:29.000Z | 2022-03-23T10:41:37.000Z | Python3-Learn/StringCopies-SanaaShah.py.py | nikhiljain-413/Hacktoberfest2021_beginner | 56b008c9ed294c3fc23b44fa13faced99948236d | [
"MIT"
] | 82 | 2021-10-01T14:21:42.000Z | 2022-03-29T03:43:58.000Z | Python3-Learn/StringCopies-SanaaShah.py.py | nikhiljain-413/Hacktoberfest2021_beginner | 56b008c9ed294c3fc23b44fa13faced99948236d | [
"MIT"
] | 210 | 2021-10-01T07:02:39.000Z | 2022-03-27T17:41:00.000Z | # 9. Write a Python program to get a string which is n (non-negative integer) copies of a given string
str = input('Enter any String value: ')
num = int(input('Enter the number of copies you want of the string: '))
final = ''
for i in range(num):
final = final + str
print(final)
| 29.9 | 104 | 0.662207 |
3413c44b880bddcf7e0378db06183b833d5bd76e | 4,005 | py | Python | tests/dsl/test_node_output_usage.py | raztud/dagger | 7b394138c139e3b4fdf228e3d34359f1ae6bdd7a | [
"Apache-2.0"
] | 9 | 2021-09-06T14:22:38.000Z | 2022-02-08T07:48:39.000Z | tests/dsl/test_node_output_usage.py | raztud/dagger | 7b394138c139e3b4fdf228e3d34359f1ae6bdd7a | [
"Apache-2.0"
] | 36 | 2021-09-04T06:20:19.000Z | 2021-12-26T17:54:59.000Z | tests/dsl/test_node_output_usage.py | raztud/dagger | 7b394138c139e3b4fdf228e3d34359f1ae6bdd7a | [
"Apache-2.0"
] | 4 | 2021-09-06T08:07:19.000Z | 2021-10-18T19:13:18.000Z | from typing import Iterable
import pytest
from dagger.dsl.node_output_key_usage import NodeOutputKeyUsage
from dagger.dsl.node_output_partition_usage import NodeOutputPartitionUsage
from dagger.dsl.node_output_property_usage import NodeOutputPropertyUsage
from dagger.dsl.node_output_reference import NodeOutputReferen... | 32.04 | 190 | 0.716105 |
3415b7b36fe73ac8e78b9b0821b2a77617ee2095 | 581 | py | Python | jupyter_geppetto/handlers.py | sanjayankur31/org.geppetto.frontend.jupyter | 1ddaa59fa115df47b1f01ca287a0029619ff7e8e | [
"MIT"
] | 4 | 2018-05-06T05:53:29.000Z | 2021-03-06T16:28:15.000Z | jupyter-geppetto/jupyter_geppetto/handlers.py | MetaCell/geppetto-meta | 1c73ad040de2c3b81b3514dbb8126237662f6c11 | [
"MIT"
] | 237 | 2021-03-17T09:40:17.000Z | 2022-03-30T11:09:44.000Z | jupyter-geppetto/jupyter_geppetto/handlers.py | MetaCell/geppetto-meta | 1c73ad040de2c3b81b3514dbb8126237662f6c11 | [
"MIT"
] | 4 | 2016-11-08T17:12:33.000Z | 2021-04-13T11:07:27.000Z | import logging
from jupyter_geppetto.service import PathService
from .settings import template_path, home_page
from .webapi import get
| 24.208333 | 73 | 0.662651 |
341602762a0cb9dc649cd65f83da67b871866977 | 979 | py | Python | ut/ut_someip_sd.py | User65k/eth-scapy-someip | 4c6ccb29de6e4c0790df912daae1d94c2642c32a | [
"MIT"
] | null | null | null | ut/ut_someip_sd.py | User65k/eth-scapy-someip | 4c6ccb29de6e4c0790df912daae1d94c2642c32a | [
"MIT"
] | null | null | null | ut/ut_someip_sd.py | User65k/eth-scapy-someip | 4c6ccb29de6e4c0790df912daae1d94c2642c32a | [
"MIT"
] | null | null | null | import unittest
import sys
import ctypes
import struct
import binascii
sys.path.append('.')
from eth_scapy_someip import eth_scapy_someip as someip
from eth_scapy_someip import eth_scapy_sd as sd
| 27.971429 | 82 | 0.713994 |
341849ca4ff92816697b83c9176a8ba030d1dee6 | 274 | py | Python | Lab6-Networks-Graphs/solutions/ex1_1.py | computational-medicine/BMED360-2021 | 2c6052b9affedf1fee23c89d23941bf08eb2614c | [
"MIT"
] | 2 | 2021-04-19T23:22:17.000Z | 2021-04-20T14:04:58.000Z | Lab6-Networks-Graphs/solutions/ex1_1.py | computational-medicine/BMED360-2021 | 2c6052b9affedf1fee23c89d23941bf08eb2614c | [
"MIT"
] | null | null | null | Lab6-Networks-Graphs/solutions/ex1_1.py | computational-medicine/BMED360-2021 | 2c6052b9affedf1fee23c89d23941bf08eb2614c | [
"MIT"
] | null | null | null | labels = {0:'A', 1:'B', 2:'C', 3:'D', 4:'E'}
A = np.array([
[0., 1., 0., 1., 0.],
[0., 0., 0., 0., 0.],
[1., 0., 0., 0., 0.],
[0., 0., 1., 0., 1.],
[0., 0., 0., 0., 0.]])
print(f' A =\n {A}, \n A^T =\n {A.T}')
print(f'labels: {labels}')
| 22.833333 | 44 | 0.29927 |
34185c06367bb86539eebeda47f7b80a58372f97 | 1,087 | py | Python | Easy/20.ValidParentheses(BruteForce).py | YuriSpiridonov/LeetCode | 2dfcc9c71466ffa2ebc1c89e461ddfca92e2e781 | [
"MIT"
] | 39 | 2020-07-04T11:15:13.000Z | 2022-02-04T22:33:42.000Z | Easy/20.ValidParentheses(BruteForce).py | YuriSpiridonov/LeetCode | 2dfcc9c71466ffa2ebc1c89e461ddfca92e2e781 | [
"MIT"
] | 1 | 2020-07-15T11:53:37.000Z | 2020-07-15T11:53:37.000Z | Easy/20.ValidParentheses(BruteForce).py | YuriSpiridonov/LeetCode | 2dfcc9c71466ffa2ebc1c89e461ddfca92e2e781 | [
"MIT"
] | 20 | 2020-07-14T19:12:53.000Z | 2022-03-02T06:28:17.000Z | """
Given a string containing just the characters '(', ')', '{', '}', '[', ']',
determine if the input string is valid.
An input string is valid if:
1. Open brackets must be closed by the same type of brackets.
2. Open brackets must be closed in the correct order.
Note that an empty s... | 27.871795 | 91 | 0.542778 |
3418885ff886036c8a295388d13bf8abdea5e1d4 | 4,405 | py | Python | src/pfmsoft/util/collection/misc.py | DonalChilde/Pfm-Util | 6be95278e61d3007da193742e089ea2ae7faa190 | [
"MIT"
] | 1 | 2021-09-25T22:03:01.000Z | 2021-09-25T22:03:01.000Z | src/pfmsoft/util/collection/misc.py | DonalChilde/Pfm-Util | 6be95278e61d3007da193742e089ea2ae7faa190 | [
"MIT"
] | null | null | null | src/pfmsoft/util/collection/misc.py | DonalChilde/Pfm-Util | 6be95278e61d3007da193742e089ea2ae7faa190 | [
"MIT"
] | null | null | null | import logging
from itertools import chain, islice, repeat
from typing import Callable, Iterator, TypeVar, Union
#### setting up logger ####
logger = logging.getLogger(__name__)
logger.addHandler(logging.NullHandler())
T = TypeVar("T")
def optional_object(
argument: Union[None, T], object_factory: Callable[...,... | 34.685039 | 122 | 0.631555 |
3419940201b190d163c1916d0f6f399eb96f956f | 782 | py | Python | torchtext_th/data/sentence.py | phiradet/torchtext-th | 6dd795cbe712998ac175d6f2dd4cbfa40d227bdf | [
"MIT"
] | 3 | 2019-06-14T23:19:34.000Z | 2021-07-08T08:28:25.000Z | torchtext_th/data/sentence.py | phiradet/torchtext-th | 6dd795cbe712998ac175d6f2dd4cbfa40d227bdf | [
"MIT"
] | 3 | 2019-06-12T09:16:01.000Z | 2019-06-20T14:30:39.000Z | torchtext_th/data/sentence.py | phiradet/torchtext-th | 6dd795cbe712998ac175d6f2dd4cbfa40d227bdf | [
"MIT"
] | null | null | null | from typing import Iterator
from itertools import chain
from torchtext_th.data.token import Token
| 28.962963 | 78 | 0.641944 |
341aa3e5d70ee31bca27c0594c0a8f6f2bfb805c | 8,884 | py | Python | qframer/fmainwindow.py | dragondjf/QMarkdowner | fc79c85ca2949fa9ce3b317606ad7bbcd1299960 | [
"MIT"
] | 115 | 2015-01-02T12:23:59.000Z | 2021-12-22T08:18:04.000Z | qframer/fmainwindow.py | dragondjf/QMarkdowner | fc79c85ca2949fa9ce3b317606ad7bbcd1299960 | [
"MIT"
] | 1 | 2017-01-12T09:10:46.000Z | 2017-01-12T09:10:46.000Z | qframer/fmainwindow.py | dragondjf/QMarkdowner | fc79c85ca2949fa9ce3b317606ad7bbcd1299960 | [
"MIT"
] | 69 | 2015-03-12T07:40:21.000Z | 2020-04-04T15:15:55.000Z | #!/usr/bin/python
# -*- coding: utf-8 -*-
from .qt.QtCore import *
from .qt.QtGui import *
from .ftitlebar import FTitleBar
from .fstatusbar import FStatusBar
| 32.188406 | 77 | 0.593426 |
341ccffc9e7ed4b86b653144bd2deb78296a6032 | 8,025 | py | Python | superpeer/LocalData.py | xBlue0/AlaKazaam | ffd84c8afcb3aca40eac45c4c98faa547822e0fb | [
"MIT"
] | 5 | 2018-04-10T13:13:59.000Z | 2019-05-12T17:07:37.000Z | superpeer/LocalData.py | marcorambaldi/AlaKazaam | ffd84c8afcb3aca40eac45c4c98faa547822e0fb | [
"MIT"
] | 2 | 2018-04-14T13:04:27.000Z | 2018-04-17T09:03:58.000Z | superpeer/LocalData.py | marcorambaldi/AlaKazaam | ffd84c8afcb3aca40eac45c4c98faa547822e0fb | [
"MIT"
] | 1 | 2019-03-01T13:28:51.000Z | 2019-03-01T13:28:51.000Z | #!/usr/bin/env python
import re
# -----------------------------------------------------------------------------
| 29.395604 | 114 | 0.662804 |
341d97beaea78e6d23a478af81f6df13714d58f6 | 951 | py | Python | msc/__main__.py | sshh12/multi-sys-cli | 3de18d0df24f3b1710b5cb49726c23b24f4b5858 | [
"MIT"
] | null | null | null | msc/__main__.py | sshh12/multi-sys-cli | 3de18d0df24f3b1710b5cb49726c23b24f4b5858 | [
"MIT"
] | null | null | null | msc/__main__.py | sshh12/multi-sys-cli | 3de18d0df24f3b1710b5cb49726c23b24f4b5858 | [
"MIT"
] | null | null | null | from msc.args import parse_args, prompt_string_arg_if_none
from msc.pool_cmds import pool_list, pool_create, pool_delete, pool_exec, pool_shell
from msc.digitalocean import DigitalOceanPoolProvider
if __name__ == "__main__":
main() | 33.964286 | 84 | 0.649842 |
341e054992d30cc10f37c1880c1fd753fd2e6420 | 590 | py | Python | vive_server/setup.py | MPC-Berkeley/vive_ros2 | 9b82beb56c64b85ab87b352c14f122f8fca14bee | [
"MIT"
] | 1 | 2022-01-06T18:19:56.000Z | 2022-01-06T18:19:56.000Z | vive_server/setup.py | GeckoRobotics/vive_ros2 | 9b82beb56c64b85ab87b352c14f122f8fca14bee | [
"MIT"
] | null | null | null | vive_server/setup.py | GeckoRobotics/vive_ros2 | 9b82beb56c64b85ab87b352c14f122f8fca14bee | [
"MIT"
] | 2 | 2021-06-24T18:24:11.000Z | 2021-08-28T20:02:20.000Z | import setuptools
setuptools.setup(
name="vive_ros2_server",
version="0.0.1",
author="Michael Equi",
author_email="michaelequi@berkeley.edu",
description="Package for running the pure python server",
long_description="",
long_description_content_type="text/markdown",
url="https://github... | 29.5 | 61 | 0.667797 |
3420a801dbe6606d54a136ed65823cdd2e9cecae | 384 | py | Python | Chapter07/algorithms_13.py | vabyte/Modern-Python-Standard-Library-Cookbook | 4f53e3ab7b61aca1cca9343e7421e170280cd5b5 | [
"MIT"
] | 84 | 2018-08-09T09:30:03.000Z | 2022-01-04T23:20:38.000Z | Chapter07/algorithms_13.py | jiro74/Modern-Python-Standard-Library-Cookbook | 4f53e3ab7b61aca1cca9343e7421e170280cd5b5 | [
"MIT"
] | 1 | 2019-11-04T18:57:40.000Z | 2020-09-07T08:52:25.000Z | Chapter07/algorithms_13.py | jiro74/Modern-Python-Standard-Library-Cookbook | 4f53e3ab7b61aca1cca9343e7421e170280cd5b5 | [
"MIT"
] | 33 | 2018-09-26T11:05:55.000Z | 2022-03-15T10:31:10.000Z | from contextlib import ExitStack
import contextlib
for n in range(5):
with ExitStack() as stack:
stack.enter_context(first())
if n % 2 == 0:
stack.enter_context(second())
print('NUMBER: {}'.format(n))
| 19.2 | 41 | 0.632813 |
34213d4a49d584afc7dd7bc836c55645b4e2dc55 | 398 | py | Python | CombinedLinearCongruentialGenerators/generate.py | SUT-Courses/SimulationMiniTool | 56e050e887d2b2c7f24921300059a6d925dfd9dc | [
"MIT"
] | null | null | null | CombinedLinearCongruentialGenerators/generate.py | SUT-Courses/SimulationMiniTool | 56e050e887d2b2c7f24921300059a6d925dfd9dc | [
"MIT"
] | null | null | null | CombinedLinearCongruentialGenerators/generate.py | SUT-Courses/SimulationMiniTool | 56e050e887d2b2c7f24921300059a6d925dfd9dc | [
"MIT"
] | null | null | null |
print(combined_linear_cong())
| 14.214286 | 34 | 0.414573 |
342261e60df9efc91277a7fb7c47cae5e098de83 | 18,997 | py | Python | encoder_disk_generator.py | Hyvok/Inkscape-rotary-encoder-disk-generator | 0c5cca22e75d865b820c3756323e173c54035556 | [
"MIT"
] | 28 | 2015-02-26T21:43:56.000Z | 2021-12-13T11:26:33.000Z | encoder_disk_generator.py | Hyvok/Inkscape-rotary-encoder-disk-generator | 0c5cca22e75d865b820c3756323e173c54035556 | [
"MIT"
] | 5 | 2019-11-14T13:32:06.000Z | 2021-09-27T19:14:26.000Z | encoder_disk_generator.py | Hyvok/Inkscape-rotary-encoder-disk-generator | 0c5cca22e75d865b820c3756323e173c54035556 | [
"MIT"
] | 4 | 2016-11-22T21:40:48.000Z | 2020-08-18T19:34:56.000Z | #!/usr/bin/env python3
import inkex
import math
import string
from lxml import etree
from inkex.transforms import Transform
# Function for calculating a point from the origin when you know the distance
# and the angle
if __name__ == '__main__':
EncoderDiskGenerator().run()
| 38.848671 | 79 | 0.554351 |
3422a13073f2fbe5d59125ed9250844c05c25fa3 | 1,756 | py | Python | fbadhelpers/helpers/initializers.py | jameslk/fbadhelpers | 5d7e6e645b245a5df7a466ec73add66f9aafb9e9 | [
"MIT"
] | 1 | 2018-01-11T20:06:36.000Z | 2018-01-11T20:06:36.000Z | fbadhelpers/helpers/initializers.py | jameslk/fbadhelpers | 5d7e6e645b245a5df7a466ec73add66f9aafb9e9 | [
"MIT"
] | null | null | null | fbadhelpers/helpers/initializers.py | jameslk/fbadhelpers | 5d7e6e645b245a5df7a466ec73add66f9aafb9e9 | [
"MIT"
] | null | null | null | from typing import Iterable, Mapping, Sequence, Callable
from urllib.parse import quote
from facebookads import FacebookAdsApi
from facebookads.adobjects.ad import Ad
from facebookads.adobjects.adaccount import AdAccount
from facebookads.adobjects.adcreative import AdCreative
from facebookads.adobjects.adset import Ad... | 31.357143 | 101 | 0.730638 |
342400da6b0f4b51a717d4f0399a8254357e5d4c | 8,106 | py | Python | api.py | Bociany/Moodai | b7c2a3f1febe067c85830849a1e1b7ca3e4efb48 | [
"MIT"
] | null | null | null | api.py | Bociany/Moodai | b7c2a3f1febe067c85830849a1e1b7ca3e4efb48 | [
"MIT"
] | null | null | null | api.py | Bociany/Moodai | b7c2a3f1febe067c85830849a1e1b7ca3e4efb48 | [
"MIT"
] | 1 | 2020-10-25T16:33:28.000Z | 2020-10-25T16:33:28.000Z | from flask import Flask, Blueprint, request, session
from flask_httpauth import HTTPTokenAuth
from sqlalchemy import desc
from auth import verify_token, generate_token, token_exists, hash_multiple, remove_token
from database import *
from models.user import User
from models.mood import Mood
from models.notes import No... | 37.013699 | 257 | 0.723415 |
342451e25dffec100fb073381fd7a1aa1ac1aaf6 | 11,228 | py | Python | osipkd/views/admin/m_unit.py | aagusti/o-sipkd | 6c61fddb87fa6f4be18cac851bb44949019b8f3e | [
"MIT"
] | null | null | null | osipkd/views/admin/m_unit.py | aagusti/o-sipkd | 6c61fddb87fa6f4be18cac851bb44949019b8f3e | [
"MIT"
] | null | null | null | osipkd/views/admin/m_unit.py | aagusti/o-sipkd | 6c61fddb87fa6f4be18cac851bb44949019b8f3e | [
"MIT"
] | null | null | null | import os
import uuid
from osipkd.tools import row2dict, xls_reader
from datetime import datetime
from sqlalchemy import not_, func
from sqlalchemy.sql.expression import and_
from ziggurat_foundations.models import groupfinder
from pyramid.view import (
view_config,
)
from pyramid.httpexceptions import (
HT... | 39.535211 | 115 | 0.520217 |
34275cbd7c4a75b5049827255a7fa18f83a6f781 | 3,518 | py | Python | day9-stream-processing/run.py | mg6/advent-of-code-2017 | d7e60cfdfa3ea0cf9973afcb9ff371b46f23d169 | [
"MIT"
] | null | null | null | day9-stream-processing/run.py | mg6/advent-of-code-2017 | d7e60cfdfa3ea0cf9973afcb9ff371b46f23d169 | [
"MIT"
] | null | null | null | day9-stream-processing/run.py | mg6/advent-of-code-2017 | d7e60cfdfa3ea0cf9973afcb9ff371b46f23d169 | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
def get_score(elem, score=0):
children = sum(get_score(e, score=score+1) for e in elem if type(e) == list)
return score + children
stream = parse_stream('')
try:
next(stream)
except StopIteration:
pass
else:
assert False, 'Should immediately finish on empty stream'
as... | 30.327586 | 80 | 0.552302 |
3428512d1b7e127cd70a34943dfe9bec7323f84b | 908 | py | Python | tenc/core.py | nanogiants/tenc | fb9632c5a60d3d5342e5d00a6c2c28d53fbdd6ea | [
"MIT"
] | null | null | null | tenc/core.py | nanogiants/tenc | fb9632c5a60d3d5342e5d00a6c2c28d53fbdd6ea | [
"MIT"
] | null | null | null | tenc/core.py | nanogiants/tenc | fb9632c5a60d3d5342e5d00a6c2c28d53fbdd6ea | [
"MIT"
] | null | null | null | import sys
from Crypto.Cipher import AES
from Crypto.Util.Padding import pad, unpad
def encrypt(data, password):
"""Enrcrypt data and return content in binary"""
try:
cipher = AES.new(password.encode(), AES.MODE_CBC)
cypher_text_bytes = cipher.encrypt(pad(data.encode(), AES.block_size))
... | 29.290323 | 81 | 0.655286 |
342bf82a9483e64b740b3a00daa8f3a88e20797a | 1,812 | py | Python | src/stock/lib/fundamentals/company_info.py | callim105/alphascan | a8eea45b3560a369b186c9971b01351a7a900d13 | [
"MIT"
] | 1 | 2021-12-03T01:30:12.000Z | 2021-12-03T01:30:12.000Z | src/stock/lib/fundamentals/company_info.py | callim105/alphascan | a8eea45b3560a369b186c9971b01351a7a900d13 | [
"MIT"
] | null | null | null | src/stock/lib/fundamentals/company_info.py | callim105/alphascan | a8eea45b3560a369b186c9971b01351a7a900d13 | [
"MIT"
] | null | null | null | import requests
import pandas as pd
from util.api_util import AV_API_KEY
def get_annual_income_statements(symbol):
"""
Returns a dataframe of annual IS for the past 5 yrs.
"""
df = query_av(function="INCOME_STATEMENT", symbol=symbol, datatype='annualReports')
return df
def get_quarterly_income_... | 26.26087 | 102 | 0.689845 |
342c2f2a3ec8444cfd113ad50ed2e68ddd742bbc | 502 | py | Python | FinalGame.py | KRHS-GameProgramming-2016/Memefinity | 85dbf98ecebcf2cb7622a6d40a6b170d6309bf29 | [
"MIT"
] | null | null | null | FinalGame.py | KRHS-GameProgramming-2016/Memefinity | 85dbf98ecebcf2cb7622a6d40a6b170d6309bf29 | [
"MIT"
] | 6 | 2017-01-19T19:00:11.000Z | 2017-06-05T15:01:36.000Z | FinalGame.py | KRHS-GameProgramming-2016/Memefinity | 85dbf98ecebcf2cb7622a6d40a6b170d6309bf29 | [
"MIT"
] | null | null | null | import pygame, sys, math, random
from Meme import *
from Bossmeme import *
from Wall import *
from Level import *
from Player import *
from Memefinity import *
pygame.init()
#Hello b0ss, this file shall be the final game, or a script, kinda, whatever.
#Reading the file top to bottom should be the game from start to fi... | 20.08 | 77 | 0.752988 |
342d26dcc76f61867565c30c84a06b8e86e0eed4 | 10,876 | py | Python | sdk/python/pulumi_aws/guardduty/outputs.py | chivandikwa/pulumi-aws | 19c08bf9dcb90544450ffa4eec7bf6751058fde2 | [
"ECL-2.0",
"Apache-2.0"
] | 260 | 2018-06-18T14:57:00.000Z | 2022-03-29T11:41:03.000Z | sdk/python/pulumi_aws/guardduty/outputs.py | chivandikwa/pulumi-aws | 19c08bf9dcb90544450ffa4eec7bf6751058fde2 | [
"ECL-2.0",
"Apache-2.0"
] | 1,154 | 2018-06-19T20:38:20.000Z | 2022-03-31T19:48:16.000Z | sdk/python/pulumi_aws/guardduty/outputs.py | chivandikwa/pulumi-aws | 19c08bf9dcb90544450ffa4eec7bf6751058fde2 | [
"ECL-2.0",
"Apache-2.0"
] | 115 | 2018-06-28T03:20:27.000Z | 2022-03-29T11:41:06.000Z | # coding=utf-8
# *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
# *** Do not edit by hand unless you're certain you know what you are doing! ***
import warnings
import pulumi
import pulumi.runtime
from typing import Any, Mapping, Optional, Sequence, Union, overload
from .. import... | 39.838828 | 262 | 0.655756 |
342d58d1ad9286b4fe5d8adc6492bb006a2ce91d | 2,943 | py | Python | src/ipaparser/_code/matcher.py | danmysak/ipa-parser | bb4f5fc1a8f95ef87793d2ffd79430a9a0ffbeaf | [
"MIT"
] | null | null | null | src/ipaparser/_code/matcher.py | danmysak/ipa-parser | bb4f5fc1a8f95ef87793d2ffd79430a9a0ffbeaf | [
"MIT"
] | null | null | null | src/ipaparser/_code/matcher.py | danmysak/ipa-parser | bb4f5fc1a8f95ef87793d2ffd79430a9a0ffbeaf | [
"MIT"
] | null | null | null | from dataclasses import dataclass
from typing import Any, Callable, Generic, Iterable, Optional, TypeVar
from .strings import StringPosition, StringPositions, to_string
__all__ = [
'Match',
'Matcher',
'MatchOption',
]
T = TypeVar('T')
class Matcher(Generic[T]):
_max_length: int
_mapping: dict... | 37.730769 | 120 | 0.649677 |
342d9ca5a0ea976bd56c381378be9fbabc55becb | 4,311 | py | Python | audible_processor/monitor/file_processor.py | killermonk/audible_processor | 7738ba927818d15b702ff49b2fdf89433e477021 | [
"MIT"
] | 1 | 2022-02-18T13:23:39.000Z | 2022-02-18T13:23:39.000Z | audible_processor/monitor/file_processor.py | killermonk/audible_processor | 7738ba927818d15b702ff49b2fdf89433e477021 | [
"MIT"
] | null | null | null | audible_processor/monitor/file_processor.py | killermonk/audible_processor | 7738ba927818d15b702ff49b2fdf89433e477021 | [
"MIT"
] | null | null | null | import configparser
import logging
import multiprocessing as mp
import os.path
from contextlib import contextmanager
from datetime import datetime
from enum import Enum
from parser.parser import Parser, ParserConfig
from queue import Empty
from typing import Any, Dict
from monitor.config import DaemonConfig
STATE_FIL... | 33.679688 | 105 | 0.635583 |
342f32ed64550a8da4a8ef5f7800093077e54557 | 1,569 | py | Python | tests/lib/scaling_test.py | Crossing-Minds/xminds-python | 8ee345e3a9ec41016c6a866e1af5eb13f7ff4f1f | [
"MIT"
] | 4 | 2020-10-27T00:11:52.000Z | 2022-01-17T21:15:25.000Z | tests/lib/scaling_test.py | Crossing-Minds/xminds-python | 8ee345e3a9ec41016c6a866e1af5eb13f7ff4f1f | [
"MIT"
] | null | null | null | tests/lib/scaling_test.py | Crossing-Minds/xminds-python | 8ee345e3a9ec41016c6a866e1af5eb13f7ff4f1f | [
"MIT"
] | null | null | null | import unittest
import numpy
from xminds.ds.scaling import linearscaling
| 41.289474 | 83 | 0.555131 |
34307682e8bac87302038a9a06f371acc7dd9b50 | 12,912 | py | Python | pcwg/gui/date_pick.py | lcameron05/PCWG | 8ae8ea7d644aa5bec0d1651101d83d8f17994f4b | [
"MIT"
] | 14 | 2015-01-15T12:40:51.000Z | 2019-06-14T16:10:08.000Z | pcwg/gui/date_pick.py | lzhiwen3090/PCWG | 795e3ea267c7b87187dce04721c91a9d9c7999a7 | [
"MIT"
] | 121 | 2015-01-06T11:31:25.000Z | 2018-05-29T21:13:23.000Z | pcwg/gui/date_pick.py | lzhiwen3090/PCWG | 795e3ea267c7b87187dce04721c91a9d9c7999a7 | [
"MIT"
] | 26 | 2015-01-15T12:41:09.000Z | 2019-04-11T14:45:32.000Z |
#based on code by : Camilo Olarte|colarte@telesat.com.co|Sept.2003
import sys
import string
import calendar
import Tkinter as tk
import time
import datetime
from dateutil.parser import parse
from dateutil.relativedelta import relativedelta
from tk_simple_dialog import Dialog
from ..core.status import Status
if __n... | 34.803235 | 136 | 0.563197 |
34317faacca728036cc0c949a6524177d35c7254 | 3,929 | py | Python | tests/test_blog.py | octopusinvitro/flask-tutorial | 8a8173cdfb0f854a1462d5bc3f251e6552a531a6 | [
"MIT"
] | null | null | null | tests/test_blog.py | octopusinvitro/flask-tutorial | 8a8173cdfb0f854a1462d5bc3f251e6552a531a6 | [
"MIT"
] | null | null | null | tests/test_blog.py | octopusinvitro/flask-tutorial | 8a8173cdfb0f854a1462d5bc3f251e6552a531a6 | [
"MIT"
] | null | null | null | import pytest
from flaskr import db
| 28.678832 | 94 | 0.683125 |
3431d10ba196cb41783bcea2077798fd2c896622 | 1,946 | py | Python | hadoop/openpayments/build_test_data.py | shubags/MSAN694 | 9b2594f7209d9d1d7792fc596ea46d0f90f27525 | [
"Apache-2.0"
] | null | null | null | hadoop/openpayments/build_test_data.py | shubags/MSAN694 | 9b2594f7209d9d1d7792fc596ea46d0f90f27525 | [
"Apache-2.0"
] | null | null | null | hadoop/openpayments/build_test_data.py | shubags/MSAN694 | 9b2594f7209d9d1d7792fc596ea46d0f90f27525 | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python
#
# A simple script to save NUM lines from the huge dataset into a smaller file for simple tests
#
# Usage: build_test_data.py [outfile]
from __future__ import print_function
import argparse
import random
import sys
__author__ = 'marco'
FILE_NAME = 'data/OPPR_ALL_DTL_GNRL_12192014.csv'
NUM = 10... | 32.433333 | 94 | 0.573484 |
34372621e9f6d0b9c6557e14b649382d8ceb0b47 | 335 | py | Python | tests/test_dummy.py | LucaMarconato/mirna-explorer | 6447cdc7d1e9d6dbf899c74c564bf9a45b19e36f | [
"MIT"
] | null | null | null | tests/test_dummy.py | LucaMarconato/mirna-explorer | 6447cdc7d1e9d6dbf899c74c564bf9a45b19e36f | [
"MIT"
] | 4 | 2018-10-16T05:32:38.000Z | 2018-10-31T21:32:08.000Z | tests/test_dummy.py | LucaMarconato/mirna_explorer | 6447cdc7d1e9d6dbf899c74c564bf9a45b19e36f | [
"MIT"
] | null | null | null | import unittest
| 22.333333 | 77 | 0.698507 |
3437523667b4fd7c19e4eec18e650541f0fb1f99 | 528 | py | Python | helpers.py | chame1eon/binaryninja-frida | 6292320d1854abaa9a1f2a59234c49faebf86416 | [
"MIT"
] | 46 | 2017-10-10T20:28:57.000Z | 2022-02-28T13:45:48.000Z | helpers.py | chame1eon/binaryninja-frida | 6292320d1854abaa9a1f2a59234c49faebf86416 | [
"MIT"
] | 5 | 2019-07-04T20:17:38.000Z | 2020-06-01T17:53:58.000Z | helpers.py | chame1eon/binaryninja-frida | 6292320d1854abaa9a1f2a59234c49faebf86416 | [
"MIT"
] | 7 | 2018-06-04T14:00:24.000Z | 2021-11-15T04:42:25.000Z | '''
Some python helper functions.
Tested on Python 3.8
'''
# https://learning.oreilly.com/library/view/effective-python-90/9780134854717/ch01.xhtml#ch1
| 26.4 | 92 | 0.6875 |
3437ac01cfd94d44391f51d8c11604eb9e8f9c2a | 893 | py | Python | cpc/asm/DirectMemoryReference.py | U-Ar/Cpresto | f723458fb237c9e3e8bc8a6afdf7c81858a65363 | [
"BSD-3-Clause"
] | 1 | 2021-05-09T07:10:19.000Z | 2021-05-09T07:10:19.000Z | cpc/asm/DirectMemoryReference.py | U-Ar/Cpresto | f723458fb237c9e3e8bc8a6afdf7c81858a65363 | [
"BSD-3-Clause"
] | null | null | null | cpc/asm/DirectMemoryReference.py | U-Ar/Cpresto | f723458fb237c9e3e8bc8a6afdf7c81858a65363 | [
"BSD-3-Clause"
] | null | null | null | from .MemoryReference import MemoryReference
from .SymbolTable import SymbolTable
| 26.264706 | 67 | 0.653975 |
343a85de1d3e11277cfecd3f880ab9548f9d2217 | 635 | py | Python | Others/hard/Dijkstra.py | GeorgianBadita/algorithmic-problems | 6b260050b7a1768b5e47a1d7d4ef7138a52db210 | [
"MIT"
] | 1 | 2021-07-05T16:32:14.000Z | 2021-07-05T16:32:14.000Z | Others/hard/Dijkstra.py | GeorgianBadita/algorithmic-problems | 6b260050b7a1768b5e47a1d7d4ef7138a52db210 | [
"MIT"
] | null | null | null | Others/hard/Dijkstra.py | GeorgianBadita/algorithmic-problems | 6b260050b7a1768b5e47a1d7d4ef7138a52db210 | [
"MIT"
] | 1 | 2021-05-14T15:40:09.000Z | 2021-05-14T15:40:09.000Z | import heapq
| 27.608696 | 62 | 0.587402 |
343ac4986234c278328262f80d5ff0144e2423b0 | 213 | py | Python | spinta/ufuncs/changebase/components.py | atviriduomenys/spinta | 77a10e201f8cdc63143fce7996fd0898acb1ff58 | [
"MIT"
] | 2 | 2019-03-14T06:41:14.000Z | 2019-03-26T11:48:14.000Z | spinta/ufuncs/changebase/components.py | sirex/spinta | 77a10e201f8cdc63143fce7996fd0898acb1ff58 | [
"MIT"
] | 44 | 2019-04-05T15:52:45.000Z | 2022-03-30T07:41:33.000Z | spinta/ufuncs/changebase/components.py | sirex/spinta | 77a10e201f8cdc63143fce7996fd0898acb1ff58 | [
"MIT"
] | 1 | 2019-04-01T09:54:27.000Z | 2019-04-01T09:54:27.000Z | from __future__ import annotations
from spinta.components import Model
from spinta.components import Property
from spinta.core.ufuncs import Env
| 17.75 | 38 | 0.798122 |
343c95622efc40d3730894f1a187c4d8b7598c6c | 11,723 | py | Python | IRIS_data_download/IRIS_download_support/obspy/signal/tests/test_filter.py | earthinversion/Fnet_IRIS_data_automated_download | 09a6e0c992662feac95744935e038d1c68539fa1 | [
"MIT"
] | 2 | 2020-03-05T01:03:01.000Z | 2020-12-17T05:04:07.000Z | IRIS_data_download/IRIS_download_support/obspy/signal/tests/test_filter.py | earthinversion/Fnet_IRIS_data_automated_download | 09a6e0c992662feac95744935e038d1c68539fa1 | [
"MIT"
] | 4 | 2021-03-31T19:25:55.000Z | 2021-12-13T20:32:46.000Z | IRIS_data_download/IRIS_download_support/obspy/signal/tests/test_filter.py | earthinversion/Fnet_IRIS_data_automated_download | 09a6e0c992662feac95744935e038d1c68539fa1 | [
"MIT"
] | 2 | 2020-09-08T19:33:40.000Z | 2021-04-05T09:47:50.000Z | #!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
The Filter test suite.
"""
from __future__ import (absolute_import, division, print_function,
unicode_literals)
from future.builtins import * # NOQA
import gzip
import os
import unittest
import warnings
import numpy as np
import scipy.signal a... | 40.285223 | 79 | 0.579459 |
343ca14a3ff776c2e2c14b42414980219bd43f45 | 2,421 | py | Python | random_greetings_test.py | joaodartora/random-greetings | 6a037497df1beb94202303fba8a1cc601fb02e69 | [
"MIT"
] | 5 | 2021-01-06T18:45:35.000Z | 2022-01-05T19:38:41.000Z | random_greetings_test.py | joaodartora/random-greetings | 6a037497df1beb94202303fba8a1cc601fb02e69 | [
"MIT"
] | 3 | 2021-02-25T00:05:55.000Z | 2021-02-25T00:24:44.000Z | random_greetings_test.py | joaodartora/random-greetings | 6a037497df1beb94202303fba8a1cc601fb02e69 | [
"MIT"
] | null | null | null | import unittest
import random_greetings
if __name__ == '__main__':
unittest.main()
| 45.679245 | 152 | 0.768278 |
343f19c9ce6d15621044a8ba4f49367413bf9126 | 762 | py | Python | neo_finrl/ccxt/preprocess_ccxt.py | chandra168/NeoFinRL | c2b9da5918ac2905bc31c42f5e17a45159afd47f | [
"MIT"
] | null | null | null | neo_finrl/ccxt/preprocess_ccxt.py | chandra168/NeoFinRL | c2b9da5918ac2905bc31c42f5e17a45159afd47f | [
"MIT"
] | null | null | null | neo_finrl/ccxt/preprocess_ccxt.py | chandra168/NeoFinRL | c2b9da5918ac2905bc31c42f5e17a45159afd47f | [
"MIT"
] | null | null | null | from finrl.config import config
from finrl.preprocessing.preprocessors import FeatureEngineer
import pandas as pd
import numpy as np
| 33.130435 | 79 | 0.612861 |
343f4428b931645496c3bb608e0d5b0d226d8b52 | 86 | py | Python | ForLoop.py | aytona/PythonIntro | a370f532dae6fb17fbcb8c70d2439358f2e3fe7d | [
"MIT"
] | null | null | null | ForLoop.py | aytona/PythonIntro | a370f532dae6fb17fbcb8c70d2439358f2e3fe7d | [
"MIT"
] | null | null | null | ForLoop.py | aytona/PythonIntro | a370f532dae6fb17fbcb8c70d2439358f2e3fe7d | [
"MIT"
] | null | null | null | #!/usr/bin/python3
fh = open('lines.txt')
for line in fh.readlines():
print(line) | 17.2 | 27 | 0.651163 |
344044da2a53c80838fd73ef0645f11d64dbe6c3 | 1,807 | py | Python | tests/session/drivers/testsessioncookie.py | LowieHuyghe/edmunds-python | 236d087746cb8802a8854b2706b8d3ff009e9209 | [
"Apache-2.0"
] | 4 | 2017-09-07T13:39:50.000Z | 2018-05-31T16:14:50.000Z | tests/session/drivers/testsessioncookie.py | LowieHuyghe/edmunds-python | 236d087746cb8802a8854b2706b8d3ff009e9209 | [
"Apache-2.0"
] | 103 | 2017-03-19T15:58:21.000Z | 2018-07-11T20:36:17.000Z | tests/session/drivers/testsessioncookie.py | LowieHuyghe/edmunds-python | 236d087746cb8802a8854b2706b8d3ff009e9209 | [
"Apache-2.0"
] | 2 | 2017-10-14T15:20:11.000Z | 2018-04-20T09:55:44.000Z |
from tests.testcase import TestCase
from edmunds.globals import session
from flask.sessions import SecureCookieSession
from werkzeug.local import LocalProxy
| 28.234375 | 86 | 0.524073 |
344045b6f807beeee5b6164c6e47ca93c4b6f0be | 837 | py | Python | r2cloud/auth.py | Lukas0025/r2cloud-python-sdk | 22539b7cff4d7e09b5cc1291add677a9ebacf6da | [
"Apache-2.0"
] | null | null | null | r2cloud/auth.py | Lukas0025/r2cloud-python-sdk | 22539b7cff4d7e09b5cc1291add677a9ebacf6da | [
"Apache-2.0"
] | null | null | null | r2cloud/auth.py | Lukas0025/r2cloud-python-sdk | 22539b7cff4d7e09b5cc1291add677a9ebacf6da | [
"Apache-2.0"
] | null | null | null | #!/bin/env python
## tle file for r2cloud SDK
# @author Luk Pleva <lukasplevac@gmail.com>
# @date 9.9.2020
import time | 28.862069 | 70 | 0.602151 |
344249726263f6cdedfbf9989e61be0b224dbb96 | 1,097 | py | Python | pymatflow/scripts/xyz-build-supercell.py | DeqiTang/pymatflow | bd8776feb40ecef0e6704ee898d9f42ded3b0186 | [
"MIT"
] | 6 | 2020-03-06T16:13:08.000Z | 2022-03-09T07:53:34.000Z | pymatflow/scripts/xyz-build-supercell.py | DeqiTang/pymatflow | bd8776feb40ecef0e6704ee898d9f42ded3b0186 | [
"MIT"
] | 1 | 2021-10-02T02:23:08.000Z | 2021-11-08T13:29:37.000Z | pymatflow/scripts/xyz-build-supercell.py | DeqiTang/pymatflow | bd8776feb40ecef0e6704ee898d9f42ded3b0186 | [
"MIT"
] | 1 | 2021-07-10T16:28:14.000Z | 2021-07-10T16:28:14.000Z | #!/usr/bin/env python
# _*_ coding: utf-8 _*_
import argparse
from pymatflow.base.xyz import base_xyz
from pymatflow.structure.crystal import crystal
"""
usage:
xyz-build-supercell.py -i input.xyz -o output.xyz -n n1 n2 n3
n1, n2, n3 are the three repeated number in
the three direct of three ... | 28.128205 | 83 | 0.646308 |
344597918733e3cbaa91a11a58a4ce26bab24486 | 179 | py | Python | tests/conftest.py | bendavies99/LedFx | d2b5bf3412fecb67c4e2858f83caea402a29d589 | [
"MIT"
] | 17 | 2018-08-31T05:51:09.000Z | 2022-02-12T15:41:33.000Z | tests/conftest.py | simon-wh/LedFx | 393af53726a7ccaa11331a0e0bccce3f5289ed15 | [
"MIT"
] | null | null | null | tests/conftest.py | simon-wh/LedFx | 393af53726a7ccaa11331a0e0bccce3f5289ed15 | [
"MIT"
] | 5 | 2019-07-15T22:12:45.000Z | 2022-02-05T10:50:44.000Z | #!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
https://pytest.org/latest/plugins.html
"""
from __future__ import print_function, absolute_import, division
# import pytest
| 19.888889 | 64 | 0.698324 |
34459c00bf15a915c60f32d842e7ed2f88e46044 | 288 | py | Python | Depth Map from Stereo Images/depth_map_from_stereo_images.py | boazde/balloon-shooter | 6478f046701b3c804345c4eeb864e82cb1ccdc2b | [
"Apache-2.0"
] | null | null | null | Depth Map from Stereo Images/depth_map_from_stereo_images.py | boazde/balloon-shooter | 6478f046701b3c804345c4eeb864e82cb1ccdc2b | [
"Apache-2.0"
] | null | null | null | Depth Map from Stereo Images/depth_map_from_stereo_images.py | boazde/balloon-shooter | 6478f046701b3c804345c4eeb864e82cb1ccdc2b | [
"Apache-2.0"
] | 1 | 2018-08-05T09:01:32.000Z | 2018-08-05T09:01:32.000Z | import numpy as np
import cv2 as cv
from matplotlib import pyplot as plt
imgL = cv.imread('tsukuba_l.png', 0)
imgR = cv.imread('tsukuba_r.png', 0)
stereo = cv.StereoBM_create(numDisparities=16, blockSize=15)
disparity = stereo.compute(imgL, imgR)
plt.imshow(disparity, 'gray')
plt.show()
| 28.8 | 60 | 0.756944 |
344a6c57396ca61d68d37dfcbcf6e3f06084c514 | 18,268 | py | Python | Ui_Menu.py | atticus-lv/Little-function | adeefedc910fd937f39f2b8bb8e2df9920ef8c2b | [
"BSD-3-Clause"
] | 4 | 2020-07-01T14:04:07.000Z | 2020-07-14T15:07:40.000Z | Ui_Menu.py | atticus-lv/Little-function | adeefedc910fd937f39f2b8bb8e2df9920ef8c2b | [
"BSD-3-Clause"
] | null | null | null | Ui_Menu.py | atticus-lv/Little-function | adeefedc910fd937f39f2b8bb8e2df9920ef8c2b | [
"BSD-3-Clause"
] | 1 | 2020-12-11T07:46:15.000Z | 2020-12-11T07:46:15.000Z | #-*- coding =utf-8 -*-
import bpy
from bpy.props import *
from bpy.types import Menu,Panel,AddonPreferences
from .Ops_Light import getlight
# shift a menu
# object menu
# side menu or pie menu part
# select menu
| 33.580882 | 120 | 0.625137 |
344bf5eb081c017555d5742dacc0a86867177bca | 391 | py | Python | fields/image-proc/raw/raw-1-drawImage.py | animatedb/codeplayfield | 3ce164d9402581dcc18555743945c4ea57f3be48 | [
"MIT"
] | null | null | null | fields/image-proc/raw/raw-1-drawImage.py | animatedb/codeplayfield | 3ce164d9402581dcc18555743945c4ea57f3be48 | [
"MIT"
] | null | null | null | fields/image-proc/raw/raw-1-drawImage.py | animatedb/codeplayfield | 3ce164d9402581dcc18555743945c4ea57f3be48 | [
"MIT"
] | null | null | null |
# Load a library that allows drawing and images.
import cv2
# Save image in set directory
# Read RGB image
# download image from cleanpng.com
img = cv2.imread('1-pets.jpg')
# Output img with window name as 'image'
cv2.imshow('image', img)
# Maintain output window util user presses a key
cv2.waitKey(0) ... | 20.578947 | 49 | 0.713555 |
3450537bbf39749b02ea29c68a2890f5f1285284 | 2,438 | py | Python | peepo/tests/network_modification_test.py | hayoc/peepo_prototype | 57b4a42fd6b769cbd17a3449a49a013fc5d75455 | [
"MIT"
] | 2 | 2019-03-04T21:12:21.000Z | 2021-03-30T00:35:50.000Z | peepo/tests/network_modification_test.py | hayoc/peepo | b15fd18d0f618e1e24eadc97c72fde62039ddafb | [
"MIT"
] | null | null | null | peepo/tests/network_modification_test.py | hayoc/peepo | b15fd18d0f618e1e24eadc97c72fde62039ddafb | [
"MIT"
] | null | null | null | from pgmpy.factors.discrete import TabularCPD
from pgmpy.inference import VariableElimination
from pgmpy.models import BayesianModel
"""
CREATE NEW MODEL
THEN INFER
AFTER WE WILL MODIFY THE MODEL
AND INFER AGAIN
I'm simply creating the same network used here in this tutorial, except that I'm creating the network part... | 36.38806 | 118 | 0.632075 |
3451491f281657225eb12e397ca0c1b32618813b | 10,025 | py | Python | src/baldor/transform.py | gavanderhoorn/baldor | 7844f56bccbfb63b255c21e93a255726847509ee | [
"BSD-3-Clause"
] | 1 | 2021-11-06T10:32:59.000Z | 2021-11-06T10:32:59.000Z | src/baldor/transform.py | Dream360/baldor | 08c29ba226687a81b3de15085c80e9fc0238c287 | [
"BSD-3-Clause"
] | null | null | null | src/baldor/transform.py | Dream360/baldor | 08c29ba226687a81b3de15085c80e9fc0238c287 | [
"BSD-3-Clause"
] | 1 | 2021-11-06T10:32:54.000Z | 2021-11-06T10:32:54.000Z | #!/usr/bin/env python
"""
Homogeneous Transformation Matrices
"""
import math
import numpy as np
# Local modules
import baldor as br
def are_equal(T1, T2, rtol=1e-5, atol=1e-8):
"""
Returns True if two homogeneous transformation are equal within a tolerance.
Parameters
----------
T1: array_like
First i... | 26.662234 | 79 | 0.59601 |
34575d0be5f1d539f952f6ed5f2ce7d84d79f289 | 1,423 | py | Python | celery_uncovered/tricks/celery_conf.py | TinlokLee/Python-CelerySS | f66c42d2eace51e28b17ed6d7eec0fa765f9d90b | [
"MIT"
] | null | null | null | celery_uncovered/tricks/celery_conf.py | TinlokLee/Python-CelerySS | f66c42d2eace51e28b17ed6d7eec0fa765f9d90b | [
"MIT"
] | null | null | null | celery_uncovered/tricks/celery_conf.py | TinlokLee/Python-CelerySS | f66c42d2eace51e28b17ed6d7eec0fa765f9d90b | [
"MIT"
] | null | null | null | import os
import logging
from django.conf import settings # noqa
from celery import signals
from celery.task.control import inspect
| 27.901961 | 69 | 0.588897 |
3457d8aedd18211653e91995d82cf79ab5d2e314 | 4,419 | py | Python | codes/scripts/generate_mod_LR_bic.py | yuanjunchai/IKC | 2a846cf1194cd9bace08973d55ecd8fd3179fe48 | [
"Apache-2.0"
] | 192 | 2019-09-03T14:52:10.000Z | 2022-03-18T14:07:06.000Z | codes/scripts/generate_mod_LR_bic.py | sczhangjie/IKC | 2a846cf1194cd9bace08973d55ecd8fd3179fe48 | [
"Apache-2.0"
] | 25 | 2019-09-10T01:42:07.000Z | 2022-01-11T02:14:27.000Z | codes/scripts/generate_mod_LR_bic.py | sczhangjie/IKC | 2a846cf1194cd9bace08973d55ecd8fd3179fe48 | [
"Apache-2.0"
] | 35 | 2019-09-17T07:20:27.000Z | 2022-03-23T00:17:06.000Z | import os
import sys
import cv2
import numpy as np
import torch
try:
sys.path.append(os.path.dirname(os.path.dirname(os.path.abspath(__file__))))
from data.util import imresize_np
from utils import util
except ImportError:
pass
if __name__ == "__main__":
generate_mod_LR_bic()
| 37.449153 | 123 | 0.632722 |
34589dda9c22ca7f74bb3fd8e4579be48b9b939f | 602 | py | Python | aldjemy/types.py | winclap/aldjemy | 090486983b648b1ee531c2b6004201c10253a33d | [
"BSD-3-Clause"
] | null | null | null | aldjemy/types.py | winclap/aldjemy | 090486983b648b1ee531c2b6004201c10253a33d | [
"BSD-3-Clause"
] | null | null | null | aldjemy/types.py | winclap/aldjemy | 090486983b648b1ee531c2b6004201c10253a33d | [
"BSD-3-Clause"
] | null | null | null | # coding: utf-8
import django
from sqlalchemy import types, ForeignKey
| 22.296296 | 73 | 0.689369 |
3458c8a244167fc4de3cea41505e9b6d068889de | 1,543 | py | Python | linters/lexicon_linter.py | unfoldingWord-dev/tx-job-handler | 5364ed079bbd5b6528eeb6d12f2ca5c696e84f4f | [
"MIT"
] | 1 | 2020-11-25T04:07:37.000Z | 2020-11-25T04:07:37.000Z | linters/lexicon_linter.py | unfoldingWord-dev/tx-job-handler | 5364ed079bbd5b6528eeb6d12f2ca5c696e84f4f | [
"MIT"
] | 52 | 2018-10-25T05:49:30.000Z | 2022-03-16T22:31:57.000Z | linters/lexicon_linter.py | unfoldingWord-dev/tx-job-handler | 5364ed079bbd5b6528eeb6d12f2ca5c696e84f4f | [
"MIT"
] | null | null | null | import os
import re
from linters.markdown_linter import MarkdownLinter
from general_tools.file_utils import read_file
from app_settings.app_settings import AppSettings
| 35.068182 | 85 | 0.594945 |
3458e78a61d0530976d41cc1ee35cbe952501111 | 1,812 | py | Python | project_template/linegen.py | warrencrowell/OptimusRhyme | dca3a78e868b5cec01c1af708dcfb942c0702bc1 | [
"MIT"
] | null | null | null | project_template/linegen.py | warrencrowell/OptimusRhyme | dca3a78e868b5cec01c1af708dcfb942c0702bc1 | [
"MIT"
] | null | null | null | project_template/linegen.py | warrencrowell/OptimusRhyme | dca3a78e868b5cec01c1af708dcfb942c0702bc1 | [
"MIT"
] | null | null | null | import nltk
import random
EXPLICIT_WORDS = ['shit', 'fuck', 'nigg', 'masturb', 'bitch']
| 31.789474 | 64 | 0.546909 |
345a42252196ac144c22ac0ef54c695e0268f0d1 | 1,596 | py | Python | Functions/readFile.py | SunYongshuai/SunSpice | 7f9368a7af1421a63b69dcce3decc6d06ff1ff6b | [
"Apache-2.0"
] | 1 | 2018-12-10T06:06:54.000Z | 2018-12-10T06:06:54.000Z | Functions/readFile.py | SunYongshuai/SunSpice | 7f9368a7af1421a63b69dcce3decc6d06ff1ff6b | [
"Apache-2.0"
] | null | null | null | Functions/readFile.py | SunYongshuai/SunSpice | 7f9368a7af1421a63b69dcce3decc6d06ff1ff6b | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/python3
# -*- encoding="UTF-8" -*-
#Import Package
import sys
sys.path.append("..")
import re
from tkinter.messagebox import *
import parameters
#Dont use from parameters import NetlistPath, it Will be import ealier than Changed
from parameters import regExpExtend
from parameters import regExpCommandEnd
... | 23.820896 | 90 | 0.652882 |
345a69af5d907c6bab145563e5584f5ba8f8fc27 | 451 | py | Python | tasurvey/__init__.py | Rcain07/SCULabTAevaluations | fcedbd046c2880ea0ce12c7bb02b8e9f8d84d372 | [
"MIT"
] | null | null | null | tasurvey/__init__.py | Rcain07/SCULabTAevaluations | fcedbd046c2880ea0ce12c7bb02b8e9f8d84d372 | [
"MIT"
] | null | null | null | tasurvey/__init__.py | Rcain07/SCULabTAevaluations | fcedbd046c2880ea0ce12c7bb02b8e9f8d84d372 | [
"MIT"
] | null | null | null | '''
Description: Functional file that initializes our app
'''
import os
from flask import Flask, flash, request, redirect, url_for
from config import Config
from flask_sqlalchemy import SQLAlchemy
from werkzeug.utils import secure_filename
from flask_login import LoginManager
app = Flask(__name__)
app.config.from_objec... | 22.55 | 58 | 0.804878 |
345d49286901cd1496500b9260f619ea4162e4b2 | 12,043 | py | Python | posts/views.py | vadimpopovski/codegram | 5bc30671d9e4d60344484e2958de3c5753124fd4 | [
"MIT"
] | null | null | null | posts/views.py | vadimpopovski/codegram | 5bc30671d9e4d60344484e2958de3c5753124fd4 | [
"MIT"
] | null | null | null | posts/views.py | vadimpopovski/codegram | 5bc30671d9e4d60344484e2958de3c5753124fd4 | [
"MIT"
] | null | null | null | from django.http.response import HttpResponse
from django.shortcuts import render, get_object_or_404
from django.http import HttpResponseRedirect, JsonResponse
from django.contrib.auth.decorators import login_required
from django.core.paginator import Paginator
from main.functions import get_authenticated_user, get_new... | 37.990536 | 259 | 0.651499 |
345d873ec822bd85ba44e8e911804060c0abd48f | 4,221 | py | Python | es/plot.py | DanielTakeshi/rl_algorithms | 7a43fa485137dd5e0bbebecbbbc390cdb6dbde0b | [
"MIT"
] | 150 | 2017-02-13T01:27:59.000Z | 2021-12-11T01:06:28.000Z | es/plot.py | DanielTakeshi/Reinforcement_Learning_Algorithms | 7a43fa485137dd5e0bbebecbbbc390cdb6dbde0b | [
"MIT"
] | 6 | 2017-01-17T22:44:24.000Z | 2017-12-21T15:05:32.000Z | es/plot.py | DanielTakeshi/Reinforcement_Learning_Algorithms | 7a43fa485137dd5e0bbebecbbbc390cdb6dbde0b | [
"MIT"
] | 36 | 2017-07-22T12:29:17.000Z | 2020-12-04T12:40:33.000Z | """
To plot this, you need to provide the experiment directory plus an output stem.
I use this for InvertedPendulum:
python plot.py outputs/InvertedPendulum-v1 --envname InvertedPendulum-v1 \
--out figures/InvertedPendulum-v1
(c) May 2017 by Daniel Seita
"""
import argparse
import matplotlib
matplotl... | 36.076923 | 86 | 0.628761 |
345e34a7d6bf14a08366aa0aaaefde67070a65d9 | 2,810 | py | Python | setup.py | johannah/balloon-learning-environment | cdb2e582f2b03c41f037bf76142d31611f5e0316 | [
"Apache-2.0"
] | 64 | 2021-11-09T08:49:02.000Z | 2022-03-30T17:33:54.000Z | setup.py | johannah/balloon-learning-environment | cdb2e582f2b03c41f037bf76142d31611f5e0316 | [
"Apache-2.0"
] | null | null | null | setup.py | johannah/balloon-learning-environment | cdb2e582f2b03c41f037bf76142d31611f5e0316 | [
"Apache-2.0"
] | 5 | 2021-11-14T18:56:42.000Z | 2022-03-18T16:22:31.000Z | # coding=utf-8
# Copyright 2022 The Balloon Learning Environment 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 require... | 25.315315 | 76 | 0.693594 |
345e922f08611898b3ac561b10e1e4d11726e99b | 386 | py | Python | mips-rt/native_lib/gen_isr_table.py | MikuroXina/pic32mx470-rs-hello-world | 28ef92a33db13345ce40f2a31089023f082e10bd | [
"MIT"
] | 1 | 2020-03-04T21:02:32.000Z | 2020-03-04T21:02:32.000Z | mips-rt/native_lib/gen_isr_table.py | MikuroXina/pic32mx470-rs-hello-world | 28ef92a33db13345ce40f2a31089023f082e10bd | [
"MIT"
] | null | null | null | mips-rt/native_lib/gen_isr_table.py | MikuroXina/pic32mx470-rs-hello-world | 28ef92a33db13345ce40f2a31089023f082e10bd | [
"MIT"
] | 2 | 2020-03-04T21:02:45.000Z | 2020-07-11T16:58:31.000Z | #!/usr/bin/python3
#
# generate ISR table
#
vect_fmt = '''\
# vector {0}
.weak _vector_{0}_fn, _vector_{0}_j
_vector_{0}_fn = _default_isr_fn
_vector_{0}_context = _isr_context
.section .vector_{0}, "ax"
.ent _vector_{0}
_vector_{0}:
la k0,_vector_{0}_fn
j _vector_{0}_context
nop
.end _vect... | 16.782609 | 35 | 0.642487 |
345ea33ffbb6fea11b6553aa914a02712c24fb98 | 6,518 | py | Python | FSM.py | wzx19980321/CPO_lab4 | c80701808e02df6042a98dd53da182f36b86b54b | [
"Apache-2.0"
] | null | null | null | FSM.py | wzx19980321/CPO_lab4 | c80701808e02df6042a98dd53da182f36b86b54b | [
"Apache-2.0"
] | null | null | null | FSM.py | wzx19980321/CPO_lab4 | c80701808e02df6042a98dd53da182f36b86b54b | [
"Apache-2.0"
] | null | null | null | import collections
import time
from functools import wraps
from typing import Any, Callable, Tuple, Union, List
| 37.676301 | 110 | 0.473305 |
345fb5b5178a9d7ea4cb8bfbcc908abb4b90eb1f | 73 | py | Python | iitgauth/__init__.py | shubhamvishnoi3288/django-iitg-auth | 4113368445fef8014657c54534c02e9d3b860673 | [
"BSD-3-Clause"
] | 6 | 2017-03-23T16:35:37.000Z | 2018-02-13T14:03:59.000Z | iitgauth/__init__.py | shubhamvishnoi3288/django-iitg-auth | 4113368445fef8014657c54534c02e9d3b860673 | [
"BSD-3-Clause"
] | 4 | 2017-07-02T11:43:50.000Z | 2018-03-25T10:57:16.000Z | iitgauth/__init__.py | shubhamvishnoi3288/django-iitg-auth | 4113368445fef8014657c54534c02e9d3b860673 | [
"BSD-3-Clause"
] | 1 | 2021-05-25T12:45:44.000Z | 2021-05-25T12:45:44.000Z | VERSION = (0, 0, 4)
default_app_config = 'iitgauth.apps.IitgauthConfig'
| 18.25 | 51 | 0.739726 |
346216230af3553a0fa4f41d0c6e2274efc3bb66 | 932 | py | Python | dj_hybrid/expression_wrapper/wrap.py | cybojenix/django-hybrid-properties | ee52f3132a60b9443cd9c3d9145163c235afac80 | [
"Apache-2.0"
] | 9 | 2018-05-01T09:02:54.000Z | 2020-07-15T08:58:04.000Z | dj_hybrid/expression_wrapper/wrap.py | antdking/django-hybrid | ee52f3132a60b9443cd9c3d9145163c235afac80 | [
"Apache-2.0"
] | 1 | 2018-05-08T18:45:29.000Z | 2018-05-08T18:45:29.000Z | dj_hybrid/expression_wrapper/wrap.py | antdking/django-hybrid | ee52f3132a60b9443cd9c3d9145163c235afac80 | [
"Apache-2.0"
] | 1 | 2018-05-08T18:39:45.000Z | 2018-05-08T18:39:45.000Z | from typing import Type, Union
from dj_hybrid.types import SupportsPython
from .registry import registry
from .types import TypeWrapperOrProxy, Wrapable
def wrap(expression: Wrapable) -> SupportsPython:
"""Wrap an expression so we can control how each one works within python
Django essentially builds a cha... | 30.064516 | 84 | 0.743562 |
3463ccde590294a9dfa01bffd2ce811e289e9672 | 3,470 | py | Python | deployment.py | MaRaSu/openstreetmap-tile-server | 346d8a68076048c50b0c5dc4cbac30b7664b5379 | [
"Apache-2.0"
] | 1 | 2021-04-05T15:07:02.000Z | 2021-04-05T15:07:02.000Z | deployment.py | MaRaSu/openstreetmap-tile-server | 346d8a68076048c50b0c5dc4cbac30b7664b5379 | [
"Apache-2.0"
] | null | null | null | deployment.py | MaRaSu/openstreetmap-tile-server | 346d8a68076048c50b0c5dc4cbac30b7664b5379 | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/python
# -----------------------------------------------------------------
# Canary deployment of Tileserver
# -----------------------------------------------------------------
import time
import subprocess
from datetime import date
import urllib2
import socket
import time
PG_VOLUME_NAME = 'mtb-tileserver-... | 38.131868 | 191 | 0.657637 |
3465e4df532d410ea7946841819bd922c9700557 | 1,369 | py | Python | das/notification.py | davidcast95/das | 245b96e1316e99fa30862622755cd68fce0ff979 | [
"MIT"
] | null | null | null | das/notification.py | davidcast95/das | 245b96e1316e99fa30862622755cd68fce0ff979 | [
"MIT"
] | null | null | null | das/notification.py | davidcast95/das | 245b96e1316e99fa30862622755cd68fce0ff979 | [
"MIT"
] | null | null | null | import frappe
from frappe.utils import get_request_session
import json
| 25.830189 | 91 | 0.681519 |
34667ea2a0199932f4434af4adeeb01ec3d10c7f | 1,183 | py | Python | test/unit/python/MetadataTest.py | dmarklein/WordCloud | e67b8906622abe628b2825e58bc224b522ec5fcb | [
"Apache-2.0"
] | 1 | 2016-12-23T09:51:43.000Z | 2016-12-23T09:51:43.000Z | test/unit/python/MetadataTest.py | dmarklein/WordCloud | e67b8906622abe628b2825e58bc224b522ec5fcb | [
"Apache-2.0"
] | 21 | 2015-02-19T03:15:30.000Z | 2015-07-27T19:56:45.000Z | test/unit/python/MetadataTest.py | dmarklein/WordCloud | e67b8906622abe628b2825e58bc224b522ec5fcb | [
"Apache-2.0"
] | null | null | null | '''
Test Cases for Metadata Class for Word Cloud Project
Daniel Klein
Computer-Based Honors Program
The University of Alabama
9.12.2013
'''
import unittest
from src.core.python.Metadata import Metadata
if __name__ == "__main__":
#import sys;sys.argv = ['', 'Test.testName']
unittest.main() | 26.288889 | 70 | 0.634827 |
3466cbc335869bc6367a832c3ad0d9c63e1f079e | 426 | py | Python | backend/algorithm/controllers/path_planning/graph.py | SpaceGliderr/fyp-sim-react | 20ad9baac200a8beedbd5a86cd749e5cdb63daca | [
"MIT"
] | null | null | null | backend/algorithm/controllers/path_planning/graph.py | SpaceGliderr/fyp-sim-react | 20ad9baac200a8beedbd5a86cd749e5cdb63daca | [
"MIT"
] | null | null | null | backend/algorithm/controllers/path_planning/graph.py | SpaceGliderr/fyp-sim-react | 20ad9baac200a8beedbd5a86cd749e5cdb63daca | [
"MIT"
] | null | null | null | import numpy as np
| 23.666667 | 60 | 0.593897 |
34674ac68d2e81a558c7f01008b5526756544441 | 3,467 | py | Python | py/faint/image.py | lukas-ke/faint-graphics-editor | 33eb9e6a3f2216fb2cf6ef9709a14f3d20b78fbf | [
"Apache-2.0"
] | 10 | 2016-12-28T22:06:31.000Z | 2021-05-24T13:42:30.000Z | py/faint/image.py | lukas-ke/faint-graphics-editor | 33eb9e6a3f2216fb2cf6ef9709a14f3d20b78fbf | [
"Apache-2.0"
] | 4 | 2015-10-09T23:55:10.000Z | 2020-04-04T08:09:22.000Z | py/faint/image.py | lukas-ke/faint-graphics-editor | 33eb9e6a3f2216fb2cf6ef9709a14f3d20b78fbf | [
"Apache-2.0"
] | null | null | null | import ifaint
def one_color_bg(obj):
try:
return obj._one_color_bg()
except AttributeError:
return ifaint._one_color_bg(obj)
| 23.268456 | 63 | 0.564177 |
34676472975149b91d7f84d84ea4b4caf330a0c3 | 5,514 | py | Python | django_cache_dependencies/__init__.py | imposeren/cache-dependencies | aab7b4f0bda6776ea184d99eeaa26d1c9ac8e4b2 | [
"BSD-3-Clause"
] | null | null | null | django_cache_dependencies/__init__.py | imposeren/cache-dependencies | aab7b4f0bda6776ea184d99eeaa26d1c9ac8e4b2 | [
"BSD-3-Clause"
] | null | null | null | django_cache_dependencies/__init__.py | imposeren/cache-dependencies | aab7b4f0bda6776ea184d99eeaa26d1c9ac8e4b2 | [
"BSD-3-Clause"
] | 2 | 2020-03-05T14:36:44.000Z | 2021-05-04T03:55:42.000Z | from __future__ import absolute_import, unicode_literals
import sys
import hashlib
from threading import local
import django.core.cache
from django.conf import settings
from django.core import signals as core_signals
from django.core.cache import DEFAULT_CACHE_ALIAS
from django.db.models import signals as model_signal... | 30.804469 | 100 | 0.662677 |
34677864834974b9a397731f965ed9f1bea99403 | 172 | py | Python | python/ql/test/3/query-tests/Classes/inconsistent-mro/inconsistent_mro.py | vadi2/codeql | a806a4f08696d241ab295a286999251b56a6860c | [
"MIT"
] | 4,036 | 2020-04-29T00:09:57.000Z | 2022-03-31T14:16:38.000Z | python/ql/test/3/query-tests/Classes/inconsistent-mro/inconsistent_mro.py | vadi2/codeql | a806a4f08696d241ab295a286999251b56a6860c | [
"MIT"
] | 2,970 | 2020-04-28T17:24:18.000Z | 2022-03-31T22:40:46.000Z | python/ql/test/3/query-tests/Classes/inconsistent-mro/inconsistent_mro.py | ScriptBox99/github-codeql | 2ecf0d3264db8fb4904b2056964da469372a235c | [
"MIT"
] | 794 | 2020-04-29T00:28:25.000Z | 2022-03-30T08:21:46.000Z | #Inconsistent MRO
#This is OK in Python 2 | 10.117647 | 23 | 0.569767 |
346c3a44b5316fb717678c261d0a73998057d413 | 4,265 | py | Python | gammapy/astro/darkmatter/utils.py | mealworm/gammapy | a838b2ca347dd6321f8da4e4097a33150d7b9be6 | [
"BSD-3-Clause"
] | null | null | null | gammapy/astro/darkmatter/utils.py | mealworm/gammapy | a838b2ca347dd6321f8da4e4097a33150d7b9be6 | [
"BSD-3-Clause"
] | null | null | null | gammapy/astro/darkmatter/utils.py | mealworm/gammapy | a838b2ca347dd6321f8da4e4097a33150d7b9be6 | [
"BSD-3-Clause"
] | null | null | null | # Licensed under a 3-clause BSD style license - see LICENSE.rst
"""
Utilities to compute J-factor maps
"""
from __future__ import absolute_import, division, print_function, unicode_literals
from ...cube import make_separation_map
from ...maps import WcsNDMap
import astropy.units as u
import numpy as np
import copy
__... | 29.825175 | 82 | 0.6068 |
346c986b22a404321ea50b505eb5fc91f610d540 | 2,427 | py | Python | Events/events.py | DerKeksTV/Keks-Bot | de07281c5bb15e0d578d27a564420a8ba61f6db4 | [
"MIT"
] | 3 | 2020-11-25T20:35:17.000Z | 2021-02-09T16:28:58.000Z | Events/events.py | DerKeksTV/Keks-Bot | de07281c5bb15e0d578d27a564420a8ba61f6db4 | [
"MIT"
] | null | null | null | Events/events.py | DerKeksTV/Keks-Bot | de07281c5bb15e0d578d27a564420a8ba61f6db4 | [
"MIT"
] | null | null | null | import discord
from config import log
from config import config
import Webhook.log_send as ch_log
from Moderating.Perms import role as perms
| 28.552941 | 142 | 0.668315 |
346cfe4c3d3044bc5050dc5d28596facaf4673fd | 740 | py | Python | fme_server_lib/FileLogger/Logger.py | bcgov/fme | 0564363c59ccd06fe79459ec08ff3b7c5bf7e061 | [
"Apache-2.0"
] | null | null | null | fme_server_lib/FileLogger/Logger.py | bcgov/fme | 0564363c59ccd06fe79459ec08ff3b7c5bf7e061 | [
"Apache-2.0"
] | 2 | 2021-07-26T20:33:16.000Z | 2021-07-26T20:33:19.000Z | fme_server_lib/FileLogger/Logger.py | bcgov/fme | 0564363c59ccd06fe79459ec08ff3b7c5bf7e061 | [
"Apache-2.0"
] | null | null | null | import os
| 26.428571 | 58 | 0.502703 |
346e9682a26aef94c565d285e5b76492fd9e4ea0 | 395 | py | Python | web/impact/impact/permissions/allocate_applications_permissions.py | masschallenge/impact-api | 81075ced8fcc95de9390dd83c15e523e67fc48c0 | [
"MIT"
] | 5 | 2017-10-19T15:11:52.000Z | 2020-03-08T07:16:21.000Z | web/impact/impact/permissions/allocate_applications_permissions.py | masschallenge/impact-api | 81075ced8fcc95de9390dd83c15e523e67fc48c0 | [
"MIT"
] | 182 | 2017-06-21T19:32:13.000Z | 2021-03-22T13:38:16.000Z | web/impact/impact/permissions/allocate_applications_permissions.py | masschallenge/impact-api | 81075ced8fcc95de9390dd83c15e523e67fc48c0 | [
"MIT"
] | 1 | 2018-06-23T11:53:18.000Z | 2018-06-23T11:53:18.000Z | from rest_framework.permissions import BasePermission
| 32.916667 | 76 | 0.734177 |
346ed50bb3dcfc85f8134663cc902a2f1607219f | 84 | py | Python | examples/team-fullmetal/dockerComp/src/client/app/wsgi.py | connectthefuture/docker-hacks | d7ea13522188233d5e8a97179d2b0a872239f58d | [
"MIT"
] | null | null | null | examples/team-fullmetal/dockerComp/src/client/app/wsgi.py | connectthefuture/docker-hacks | d7ea13522188233d5e8a97179d2b0a872239f58d | [
"MIT"
] | 1 | 2021-03-20T04:49:20.000Z | 2021-03-20T04:49:20.000Z | examples/team-fullmetal/dockerComp/src/client/app/wsgi.py | connectthefuture/docker-hacks | d7ea13522188233d5e8a97179d2b0a872239f58d | [
"MIT"
] | null | null | null | # if gunicorn is used
from run import app
if __name__ == "__main__":
app.run()
| 14 | 26 | 0.666667 |
346f2ad7b27dc11410aa8b7a9e1b78989914849c | 3,162 | py | Python | compatibility-verifier/sample-test-suite/config/dataGenerator.py | WangCHX/pinot | ae02ecefa4b4367fc3547fa5bfb718d63b45b477 | [
"Apache-2.0"
] | 2,144 | 2015-06-10T16:02:11.000Z | 2018-11-08T07:59:13.000Z | compatibility-verifier/sample-test-suite/config/dataGenerator.py | PrachiKhobragade/pinot | f200ec515630442f95f6fc55f568b00f7cb04f4f | [
"Apache-2.0"
] | 1,894 | 2015-06-11T05:17:48.000Z | 2018-11-09T19:22:27.000Z | compatibility-verifier/sample-test-suite/config/dataGenerator.py | PrachiKhobragade/pinot | f200ec515630442f95f6fc55f568b00f7cb04f4f | [
"Apache-2.0"
] | 418 | 2015-06-10T15:53:06.000Z | 2018-11-09T00:05:06.000Z | #
# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not... | 33.638298 | 98 | 0.684377 |
346f5766c7d34d7d2a361557c6ee59f18fb84c1f | 2,969 | py | Python | lib/datasets/factory.py | amitfishy/py_faster_rcnn | 75c340f134ccb1d0efad68d12b6c86c1d6ae7593 | [
"BSD-2-Clause"
] | null | null | null | lib/datasets/factory.py | amitfishy/py_faster_rcnn | 75c340f134ccb1d0efad68d12b6c86c1d6ae7593 | [
"BSD-2-Clause"
] | null | null | null | lib/datasets/factory.py | amitfishy/py_faster_rcnn | 75c340f134ccb1d0efad68d12b6c86c1d6ae7593 | [
"BSD-2-Clause"
] | null | null | null | # --------------------------------------------------------
# Fast R-CNN
# Copyright (c) 2015 Microsoft
# Licensed under The MIT License [see LICENSE for details]
# Written by Ross Girshick
# --------------------------------------------------------
"""Factory method for easily getting imdbs by name."""
from pascal_voc... | 39.586667 | 127 | 0.655776 |
346ff732f27704ee6121d33b77e42e3601c9c09f | 4,668 | py | Python | src/gitlab/Gitlab.py | arrnorets/pylibs | 191c75150b23b5a55b713d152b49c8e0e52a0f24 | [
"Apache-2.0"
] | null | null | null | src/gitlab/Gitlab.py | arrnorets/pylibs | 191c75150b23b5a55b713d152b49c8e0e52a0f24 | [
"Apache-2.0"
] | null | null | null | src/gitlab/Gitlab.py | arrnorets/pylibs | 191c75150b23b5a55b713d152b49c8e0e52a0f24 | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
# An object that stores information about project in Gitlab. It uses API v4.
from configparser import ConfigParser
import json
import requests
import shutil
import sys
import urllib.parse
import zipfile
| 40.591304 | 178 | 0.588903 |
347053f4c65de4c7e2c7c13a8144cc85060f99be | 2,367 | py | Python | statsneighborhoods/price.py | joehand/statistics-neighborhoods | 5a9cbbfd46da2d3dc5b715c2a9dec3276cee3fe8 | [
"MIT"
] | 1 | 2018-05-06T19:19:32.000Z | 2018-05-06T19:19:32.000Z | statsneighborhoods/price.py | joehand/statistics-neighborhoods | 5a9cbbfd46da2d3dc5b715c2a9dec3276cee3fe8 | [
"MIT"
] | null | null | null | statsneighborhoods/price.py | joehand/statistics-neighborhoods | 5a9cbbfd46da2d3dc5b715c2a9dec3276cee3fe8 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
"""
price calculations
~~~~~~~~~
WARNING: This is specific to US income data.
If this needs to be changed,
you will need to update the BINS values and some of the regex expressions.
:copyright: (c) 2015 by Joe Hand, Santa Fe Institute.
:license: MIT
"""
import numpy... | 36.415385 | 118 | 0.621462 |
34709103517f1e3b70cf5ad2dd28c6bb65951e42 | 5,945 | py | Python | 2018/day4/guard.py | sthilaid/AdventOfCode | f4a6006167debeb717843db41e7089d10d323d21 | [
"MIT"
] | null | null | null | 2018/day4/guard.py | sthilaid/AdventOfCode | f4a6006167debeb717843db41e7089d10d323d21 | [
"MIT"
] | null | null | null | 2018/day4/guard.py | sthilaid/AdventOfCode | f4a6006167debeb717843db41e7089d10d323d21 | [
"MIT"
] | null | null | null |
#!/usr/bin/python3
import array
import datetime
import functools
import io
import sys
def part1(inputfile):
lines = []
with open(inputfile, "r") as file:
lines = file.readlines()
lines.sort()
guards = []
while True:
shift, lines = Shift.parse(lines)
shiftRegi... | 31.62234 | 103 | 0.514382 |
34719799e364b3eadd684c0a5fd67038a3ba1a9b | 408 | py | Python | apps/gsuite/mail_syncer/tests/test_utils.py | Kpaubert/onlineweb4 | 9ac79f163bc3a816db57ffa8477ea88770d97807 | [
"MIT"
] | 32 | 2017-02-22T13:38:38.000Z | 2022-03-31T23:29:54.000Z | apps/gsuite/mail_syncer/tests/test_utils.py | Kpaubert/onlineweb4 | 9ac79f163bc3a816db57ffa8477ea88770d97807 | [
"MIT"
] | 694 | 2017-02-15T23:09:52.000Z | 2022-03-31T23:16:07.000Z | apps/gsuite/mail_syncer/tests/test_utils.py | Kpaubert/onlineweb4 | 9ac79f163bc3a816db57ffa8477ea88770d97807 | [
"MIT"
] | 35 | 2017-09-02T21:13:09.000Z | 2022-02-21T11:30:30.000Z | from googleapiclient.errors import HttpError
from httplib2 import Response
| 25.5 | 80 | 0.683824 |
3472110f997eb86fec5734bbdab064fe7075504b | 10,492 | py | Python | helpdesk/views/api/index.py | dispensable/helpdesk | f1dff07d5f051ea739a5995dbe06fef8a690e4b4 | [
"BSD-3-Clause"
] | null | null | null | helpdesk/views/api/index.py | dispensable/helpdesk | f1dff07d5f051ea739a5995dbe06fef8a690e4b4 | [
"BSD-3-Clause"
] | null | null | null | helpdesk/views/api/index.py | dispensable/helpdesk | f1dff07d5f051ea739a5995dbe06fef8a690e4b4 | [
"BSD-3-Clause"
] | null | null | null | # coding: utf-8
import logging
from typing import Optional
from authlib.jose import jwt, errors as jwterrors
from starlette.responses import RedirectResponse # NOQA
from starlette.authentication import requires, has_required_scope # NOQA
from fastapi import Query, HTTPException, Depends, Request
from helpdesk impo... | 38.432234 | 122 | 0.681186 |
3473c35810fc9fdef155de2c949fd1aa125f0b24 | 512 | py | Python | ivy_3dprint_site/assets.py | hellwen/ivy_3dprint_site | 118969e7c6b81994343b615385ac4a2c469c8602 | [
"BSD-2-Clause"
] | null | null | null | ivy_3dprint_site/assets.py | hellwen/ivy_3dprint_site | 118969e7c6b81994343b615385ac4a2c469c8602 | [
"BSD-2-Clause"
] | null | null | null | ivy_3dprint_site/assets.py | hellwen/ivy_3dprint_site | 118969e7c6b81994343b615385ac4a2c469c8602 | [
"BSD-2-Clause"
] | null | null | null | from flask_assets import Bundle
common_css = Bundle(
# bootstrap
Bundle('css/vendor/bootstrap.css',
'css/vendor/bootstrap-theme.css'),
'css/vendor/typelate.css',
'css/vendor/helper.css',
'css/main.css',
filters='cssmin',
output='public/css/common.css'
)
common_js = Bundle(
'js/... | 22.26087 | 42 | 0.638672 |
3476a86dc9e0ac6fd8216803840ae80b2e93eb7b | 3,785 | py | Python | musicSpide.py | Brucechen13/converweb | 75e53960e0340a3c3a762bfe0b6087e3e7ac8ea0 | [
"MIT"
] | null | null | null | musicSpide.py | Brucechen13/converweb | 75e53960e0340a3c3a762bfe0b6087e3e7ac8ea0 | [
"MIT"
] | null | null | null | musicSpide.py | Brucechen13/converweb | 75e53960e0340a3c3a762bfe0b6087e3e7ac8ea0 | [
"MIT"
] | null | null | null | import requests
import json,os
import base64
from Crypto.Cipher import AES
import codecs
import binascii
from lxml import etree
musicUrl = ['http://music.163.com/discover/toplist?id=3779629']
basicUrl = 'http://music.163.com'
# AJAXHTMLAPIAPI
#print(getMusic()) | 39.427083 | 274 | 0.614795 |
3477643ed6a1e9f2e57cd610eb10b9c823a21e5d | 2,891 | py | Python | package/src/snobedo/modis/__main__.py | UofU-Cryosphere/isnoda | 147742a8e589e472f73f9926cef27c2a1fe1d8d5 | [
"MIT"
] | 3 | 2021-12-02T01:55:08.000Z | 2022-01-05T21:40:55.000Z | package/src/snobedo/modis/__main__.py | UofU-Cryosphere/isnoda | 147742a8e589e472f73f9926cef27c2a1fe1d8d5 | [
"MIT"
] | 12 | 2020-09-24T22:32:48.000Z | 2022-02-17T20:29:54.000Z | package/src/snobedo/modis/__main__.py | UofU-Cryosphere/isnoda | 147742a8e589e472f73f9926cef27c2a1fe1d8d5 | [
"MIT"
] | 1 | 2020-08-26T19:45:32.000Z | 2020-08-26T19:45:32.000Z | import argparse
from datetime import datetime, timedelta
from pathlib import Path
from typing import NamedTuple
import dask
import numpy as np
from snobedo.lib import ModisGeoTiff
from snobedo.lib.command_line_helpers import add_dask_options, \
add_water_year_option
from snobedo.lib.dask_utils import run_with_cli... | 26.045045 | 79 | 0.675199 |
3477dcb657d5c2ddc0c119b91b421d868e92f3de | 2,114 | py | Python | repos/system_upgrade/el8toel9/actors/sssdcheck/actor.py | sm00th/leapp-repository | 1c171ec3a5f9260a3c6f84a9b15cad78a875ac61 | [
"Apache-2.0"
] | null | null | null | repos/system_upgrade/el8toel9/actors/sssdcheck/actor.py | sm00th/leapp-repository | 1c171ec3a5f9260a3c6f84a9b15cad78a875ac61 | [
"Apache-2.0"
] | 1 | 2022-03-07T15:34:11.000Z | 2022-03-07T15:35:15.000Z | repos/system_upgrade/el8toel9/actors/sssdcheck/actor.py | sm00th/leapp-repository | 1c171ec3a5f9260a3c6f84a9b15cad78a875ac61 | [
"Apache-2.0"
] | null | null | null | from leapp.actors import Actor
from leapp.models import SSSDConfig8to9
from leapp import reporting
from leapp.reporting import Report, create_report
from leapp.tags import IPUWorkflowTag, ChecksPhaseTag
COMMON_REPORT_TAGS = [reporting.Tags.AUTHENTICATION, reporting.Tags.SECURITY]
related = [
reporting.RelatedRes... | 34.655738 | 86 | 0.668401 |
3478bed71b27fbe54d8a0036b43d502dea8a018c | 11,308 | py | Python | karborclient/common/base.py | thuylt2/karborclient | 884d685c3cd1c1075e895791d7027b56c30dd328 | [
"Apache-2.0"
] | null | null | null | karborclient/common/base.py | thuylt2/karborclient | 884d685c3cd1c1075e895791d7027b56c30dd328 | [
"Apache-2.0"
] | null | null | null | karborclient/common/base.py | thuylt2/karborclient | 884d685c3cd1c1075e895791d7027b56c30dd328 | [
"Apache-2.0"
] | null | null | null | # Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# d... | 32.776812 | 79 | 0.57508 |
3478c3f0864fb6087e6bd877632d57facc873d5f | 1,640 | py | Python | src/py_wizard/console_wiz_iface/ConsoleCurrencyQuestion.py | shearern/PyWizard | fac7f859707bc7fe36737caa794c159a66ea0789 | [
"MIT"
] | null | null | null | src/py_wizard/console_wiz_iface/ConsoleCurrencyQuestion.py | shearern/PyWizard | fac7f859707bc7fe36737caa794c159a66ea0789 | [
"MIT"
] | null | null | null | src/py_wizard/console_wiz_iface/ConsoleCurrencyQuestion.py | shearern/PyWizard | fac7f859707bc7fe36737caa794c159a66ea0789 | [
"MIT"
] | null | null | null | '''
Created on Sep 20, 2013
@author: nshearer
'''
from ConsoleSimpleQuestion import ConsoleSimpleQuestion
from ConsoleSimpleQuestion import UserAnswerValidationError
| 32.156863 | 83 | 0.568293 |
3478fc67a95347f25251e8ec26bfb095d3803bf3 | 269 | py | Python | rasplivestation/__init__.py | Krounet/RaspLiveStation | cd2fe9274197fa0da1cafe62738b4ffdf1ff3c96 | [
"WTFPL"
] | null | null | null | rasplivestation/__init__.py | Krounet/RaspLiveStation | cd2fe9274197fa0da1cafe62738b4ffdf1ff3c96 | [
"WTFPL"
] | null | null | null | rasplivestation/__init__.py | Krounet/RaspLiveStation | cd2fe9274197fa0da1cafe62738b4ffdf1ff3c96 | [
"WTFPL"
] | null | null | null | # -*- coding: utf-8 -*-
"""
Created on Mon Dec 19 14:48:39 2016
@author: Krounet
e-mail : krounet@gmail.com
"""
__version__="0.0.1"
from rasplivestation.livestreamerLaunching import livestreamerLaunching
from rasplivestation.clienttoRasp import clienttoRasp | 24.454545 | 72 | 0.743494 |