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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
5b8b9e25ca66bf56d38fa883adc8a97a2e94522f | 3,307 | py | Python | subt/dummy_darpa_server.py | m3d/osgar_archive_2020 | 556b534e59f8aa9b6c8055e2785c8ae75a1a0a0e | [
"MIT"
] | 12 | 2017-02-16T10:22:59.000Z | 2022-03-20T05:48:06.000Z | subt/dummy_darpa_server.py | m3d/osgar_archive_2020 | 556b534e59f8aa9b6c8055e2785c8ae75a1a0a0e | [
"MIT"
] | 618 | 2016-08-30T04:46:12.000Z | 2022-03-25T16:03:10.000Z | subt/dummy_darpa_server.py | robotika/osgar | 6f4f584d5553ab62c08a1c7bb493fefdc9033173 | [
"MIT"
] | 11 | 2016-08-27T20:02:55.000Z | 2022-03-07T08:53:53.000Z | #!/usr/bin/env python
"""
Dummy DARPA scoring server
"""
import os
import sys
import csv
import math
import json
import logging
from collections import defaultdict
from http.server import BaseHTTPRequestHandler, HTTPServer
from mimetypes import guess_type
g_logger = logging.getLogger(__name__)
def main():
... | 32.742574 | 278 | 0.599335 |
5b8eda9c95d489f300e7c9259bd30883f72e24c7 | 637 | py | Python | app/models/item.py | mtawil/item-catalog | 1a46ab7a915bf4092a3cbee840937a6d8a9d0673 | [
"MIT"
] | 1 | 2022-01-28T18:57:39.000Z | 2022-01-28T18:57:39.000Z | app/models/item.py | mtawil/item-catalog | 1a46ab7a915bf4092a3cbee840937a6d8a9d0673 | [
"MIT"
] | null | null | null | app/models/item.py | mtawil/item-catalog | 1a46ab7a915bf4092a3cbee840937a6d8a9d0673 | [
"MIT"
] | null | null | null | from orator import mutator
from slugify import slugify
from app import db
from orator.orm import belongs_to
| 21.965517 | 54 | 0.66562 |
5b90d091cb2251945499a059e54ea7667ca3efce | 2,004 | py | Python | tests/test_retry_middleware.py | 0xfede7c8/scrapy-fake-useragent | 3e5ed91e0fb15789bea13909ec9f17a6fa4c17e8 | [
"BSD-3-Clause"
] | null | null | null | tests/test_retry_middleware.py | 0xfede7c8/scrapy-fake-useragent | 3e5ed91e0fb15789bea13909ec9f17a6fa4c17e8 | [
"BSD-3-Clause"
] | null | null | null | tests/test_retry_middleware.py | 0xfede7c8/scrapy-fake-useragent | 3e5ed91e0fb15789bea13909ec9f17a6fa4c17e8 | [
"BSD-3-Clause"
] | null | null | null | import pytest
from scrapy import Request
from scrapy.http import Response
from scrapy.spiders import Spider
from scrapy.utils.test import get_crawler
from twisted.internet.error import DNSLookupError
from scrapy_fake_useragent.middleware import RetryUserAgentMiddleware
| 28.628571 | 69 | 0.753493 |
5b9151562ac70dbe8d93818415cfa9bf040487d1 | 1,186 | py | Python | tests/gateway/test_virtonomica.py | xlam/autovirt | a19f9237c8b1123ce4f4b8b396dc88122019d4f8 | [
"MIT"
] | null | null | null | tests/gateway/test_virtonomica.py | xlam/autovirt | a19f9237c8b1123ce4f4b8b396dc88122019d4f8 | [
"MIT"
] | null | null | null | tests/gateway/test_virtonomica.py | xlam/autovirt | a19f9237c8b1123ce4f4b8b396dc88122019d4f8 | [
"MIT"
] | null | null | null | from autovirt.gateway.virtonomica.shopgateway import ShopGateway
| 24.708333 | 64 | 0.554806 |
5b9151ea0896990566bf4da390f7e5b70a755ccf | 1,579 | py | Python | tests/python/physics_cloth.py | gunslingster/CSC581-assignement1 | 39012146e142bf400c7140d90ecfd27c45b589ca | [
"Naumen",
"Condor-1.1",
"MS-PL"
] | 39 | 2020-05-26T15:21:14.000Z | 2022-03-24T04:46:31.000Z | tests/python/physics_cloth.py | gunslingster/CSC581-assignement1 | 39012146e142bf400c7140d90ecfd27c45b589ca | [
"Naumen",
"Condor-1.1",
"MS-PL"
] | 7 | 2020-05-11T14:04:54.000Z | 2020-06-03T15:00:20.000Z | tests/python/physics_cloth.py | gunslingster/CSC581-assignement1 | 39012146e142bf400c7140d90ecfd27c45b589ca | [
"Naumen",
"Condor-1.1",
"MS-PL"
] | 5 | 2020-08-03T13:03:29.000Z | 2021-08-07T22:10:26.000Z | # ##### BEGIN GPL LICENSE BLOCK #####
#
# This program 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 2
# of the License, or (at your option) any later version.
#
# This program is distrib... | 30.365385 | 74 | 0.662445 |
5b915c3b17eeed0173d5f856392260bac3c66028 | 5,054 | py | Python | nowcasting_dataset/manager/base.py | JanEbbing/nowcasting_dataset | f907054a457987e6f6dbb13bfb65fc5359c6f680 | [
"MIT"
] | null | null | null | nowcasting_dataset/manager/base.py | JanEbbing/nowcasting_dataset | f907054a457987e6f6dbb13bfb65fc5359c6f680 | [
"MIT"
] | null | null | null | nowcasting_dataset/manager/base.py | JanEbbing/nowcasting_dataset | f907054a457987e6f6dbb13bfb65fc5359c6f680 | [
"MIT"
] | null | null | null | """Base Manager class."""
import logging
from pathlib import Path
from typing import Optional
import nowcasting_dataset.utils as nd_utils
from nowcasting_dataset import config
from nowcasting_dataset.data_sources import ALL_DATA_SOURCE_NAMES, MAP_DATA_SOURCE_NAME_TO_CLASS
logger = logging.getLogger(__name__)
| 44.725664 | 100 | 0.666601 |
5b9693fa2b04beeaf69c92e83d17519a3a978143 | 764 | py | Python | GatewayServis/API/ImageAPI.py | CommName/WildeLifeWatcher | 3ce3b564d0e6cc81ebc2b607a712580d3c388db6 | [
"MIT"
] | null | null | null | GatewayServis/API/ImageAPI.py | CommName/WildeLifeWatcher | 3ce3b564d0e6cc81ebc2b607a712580d3c388db6 | [
"MIT"
] | null | null | null | GatewayServis/API/ImageAPI.py | CommName/WildeLifeWatcher | 3ce3b564d0e6cc81ebc2b607a712580d3c388db6 | [
"MIT"
] | null | null | null | import cherrypy
import requests
import json
from CommunicationLayer import ServiceRegistry
| 28.296296 | 92 | 0.662304 |
5b96dfeca9efe5e44a9af8ca8317c32891758506 | 1,489 | py | Python | tests/seahub/invitations/test_views.py | Xandersoft/seahub | f75f238b3e0a907e8a8003f419e367fa36e992e7 | [
"Apache-2.0",
"BSD-3-Clause"
] | null | null | null | tests/seahub/invitations/test_views.py | Xandersoft/seahub | f75f238b3e0a907e8a8003f419e367fa36e992e7 | [
"Apache-2.0",
"BSD-3-Clause"
] | null | null | null | tests/seahub/invitations/test_views.py | Xandersoft/seahub | f75f238b3e0a907e8a8003f419e367fa36e992e7 | [
"Apache-2.0",
"BSD-3-Clause"
] | null | null | null | from django.utils import timezone
from django.core.urlresolvers import reverse
from seahub.invitations.models import Invitation
from seahub.test_utils import BaseTestCase
| 33.840909 | 76 | 0.650772 |
5b983dc44d6c799abc8012a0d7ea31430d04c3b1 | 6,289 | py | Python | projects/seeker/tasks/search_decision.py | DrMatters/ParlAI | 755b9dcb778deb5a82029d69ae3260579c6450f1 | [
"MIT"
] | 1 | 2022-03-27T17:16:19.000Z | 2022-03-27T17:16:19.000Z | projects/seeker/tasks/search_decision.py | DrMatters/ParlAI | 755b9dcb778deb5a82029d69ae3260579c6450f1 | [
"MIT"
] | null | null | null | projects/seeker/tasks/search_decision.py | DrMatters/ParlAI | 755b9dcb778deb5a82029d69ae3260579c6450f1 | [
"MIT"
] | 1 | 2022-03-30T14:05:29.000Z | 2022-03-30T14:05:29.000Z | #!/usr/bin/env python3
# Copyright (c) Facebook, Inc. and its affiliates.
# This source code is licensed under the MIT license found in the
# LICENSE file in the root directory of this source tree.
"""
SeeKeR Search Decision Tasks.
"""
from typing import Optional
from parlai.core.opt import Opt
from parlai.core.param... | 35.331461 | 75 | 0.657497 |
5b994b983a9b32668d74419e6514f5b302e70c33 | 445 | py | Python | django101/django101/urls.py | nrgxtra/web_basics | 073ccb361af666c9fe2b3fa0b5cf74d721acb1b4 | [
"MIT"
] | null | null | null | django101/django101/urls.py | nrgxtra/web_basics | 073ccb361af666c9fe2b3fa0b5cf74d721acb1b4 | [
"MIT"
] | null | null | null | django101/django101/urls.py | nrgxtra/web_basics | 073ccb361af666c9fe2b3fa0b5cf74d721acb1b4 | [
"MIT"
] | null | null | null |
from django.contrib import admin
from django.urls import path, include
from django101 import cities
from django101.cities.views import index, list_phones, test_index, create_person
urlpatterns = [
path('admin/', admin.site.urls),
path('test/', test_index),
path('create/', create_person, name='c... | 29.666667 | 81 | 0.694382 |
5b9a1344434efcaa1dceca50f39a0f10202d1fd1 | 4,150 | py | Python | helpers.py | gyhor/redmein | 2dfe8b32ae4a899c1c3df7e430fb7b93931a2885 | [
"MIT"
] | null | null | null | helpers.py | gyhor/redmein | 2dfe8b32ae4a899c1c3df7e430fb7b93931a2885 | [
"MIT"
] | null | null | null | helpers.py | gyhor/redmein | 2dfe8b32ae4a899c1c3df7e430fb7b93931a2885 | [
"MIT"
] | 1 | 2021-01-21T19:19:46.000Z | 2021-01-21T19:19:46.000Z | from __future__ import print_function
from datetime import date, datetime, timedelta
import os
import tempfile
PERIODS = {
'y': {'name': 'yesterday', 'description': 'Yesterday'},
'lw': {'name': 'lastweek', 'description': 'Last work week'},
'cw': {'name': 'currentweek', 'description': 'Current work week'},
'fl... | 29.642857 | 118 | 0.659759 |
5b9a8dd256cc2cefb07a2f6abdab4d4f9808a5e9 | 1,695 | py | Python | GeneratebestpolTextMaxAverageReturn.py | TakuyaHiraoka/Learning-Robust-Options-by-Conditional-Value-at-Risk-Optimization | 78d3f8e36cdc954897ddc6af9029991bff19fb58 | [
"MIT"
] | 9 | 2019-12-11T20:34:20.000Z | 2021-05-23T04:35:29.000Z | GeneratebestpolTextMaxAverageReturn.py | TakuyaHiraoka/Learning-Robust-Options-by-Conditional-Value-at-Risk-Optimization | 78d3f8e36cdc954897ddc6af9029991bff19fb58 | [
"MIT"
] | null | null | null | GeneratebestpolTextMaxAverageReturn.py | TakuyaHiraoka/Learning-Robust-Options-by-Conditional-Value-at-Risk-Optimization | 78d3f8e36cdc954897ddc6af9029991bff19fb58 | [
"MIT"
] | null | null | null | import os
import re
import statistics
if __name__ == '__main__':
# experiment setup params.
root_path = "./"
epoch = 0
# find result files by recursively opening directories.
result_files = find_all_key_files_path(root_path, ".csv")
print(result_files)
print()
# open files
result... | 29.224138 | 61 | 0.537463 |
5b9b1eea85ebeac6ed18057f8f6bb2b43f18b42d | 2,573 | py | Python | examples/2_commit-simple.py | sgibson91/github_api_test | d294c4c792a6af929fb789d4004c87260a3cee7b | [
"MIT"
] | 1 | 2021-09-22T08:04:44.000Z | 2021-09-22T08:04:44.000Z | examples/2_commit-simple.py | sgibson91/github-commits-over-api | d294c4c792a6af929fb789d4004c87260a3cee7b | [
"MIT"
] | null | null | null | examples/2_commit-simple.py | sgibson91/github-commits-over-api | d294c4c792a6af929fb789d4004c87260a3cee7b | [
"MIT"
] | 9 | 2021-09-24T11:17:54.000Z | 2021-09-24T11:32:03.000Z | import argparse
import base64
import os
import subprocess
import sys
import tempfile
import requests
if __name__ == "__main__":
main()
| 26.255102 | 88 | 0.644773 |
5b9b2b0153f61f01eed085b07622c7e582fd44d9 | 1,013 | py | Python | src/parruc/flexslider/interfaces.py | parruc/parruc.flexslider | b0074ba060db4a9813dca5c0da29d03ed386ce95 | [
"MIT"
] | null | null | null | src/parruc/flexslider/interfaces.py | parruc/parruc.flexslider | b0074ba060db4a9813dca5c0da29d03ed386ce95 | [
"MIT"
] | null | null | null | src/parruc/flexslider/interfaces.py | parruc/parruc.flexslider | b0074ba060db4a9813dca5c0da29d03ed386ce95 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
"""Module where all interfaces, events and exceptions live."""
from . import _
from plone.app.vocabularies.catalog import CatalogSource
from plone.namedfile.field import NamedBlobImage
from plone.supermodel import model
from z3c.relationfield.schema import RelationChoice
from zope import schema... | 25.974359 | 66 | 0.706811 |
5b9c535490c51d3506b243f651f0c9960ebce1df | 1,694 | py | Python | eth_data_collector/block.py | Whitecoin-XWC/Whitecoin-CrosschainMidware | 7560d80f3bac09250ed365e7e6b9239209e7e502 | [
"Apache-2.0"
] | null | null | null | eth_data_collector/block.py | Whitecoin-XWC/Whitecoin-CrosschainMidware | 7560d80f3bac09250ed365e7e6b9239209e7e502 | [
"Apache-2.0"
] | null | null | null | eth_data_collector/block.py | Whitecoin-XWC/Whitecoin-CrosschainMidware | 7560d80f3bac09250ed365e7e6b9239209e7e502 | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python
# encoding: utf-8
__author__ = 'hasee'
import json
from datetime import datetime
| 30.25 | 117 | 0.59209 |
5b9fcea89591f2e56179d543a677ddc94c981056 | 2,448 | py | Python | tests/cmdline.py | robertschulze/dirsync | 5eae39e0e4a85d3d71c4690081b5f88e5efa9117 | [
"MIT"
] | 65 | 2016-02-23T17:25:51.000Z | 2022-03-31T01:03:41.000Z | tests/cmdline.py | robertschulze/dirsync | 5eae39e0e4a85d3d71c4690081b5f88e5efa9117 | [
"MIT"
] | 24 | 2015-01-07T09:51:28.000Z | 2022-02-11T15:03:57.000Z | tests/cmdline.py | robertschulze/dirsync | 5eae39e0e4a85d3d71c4690081b5f88e5efa9117 | [
"MIT"
] | 27 | 2015-01-07T09:12:02.000Z | 2022-02-08T20:27:00.000Z | """
Command line options tests
"""
import os
import re
from six import iteritems, StringIO
try:
# Python 3
from unittest.mock import patch
except ImportError:
from mock import patch
from dirsync.options import ArgParser
from dirsync.run import sync
from ._base import DirSyncTestCase
fr... | 27.818182 | 65 | 0.583742 |
5ba1947ace73c085c25f644e39fc215c1d92fdff | 8,562 | py | Python | ocean_provider/routes/decrypt.py | oceanprotocol/provider-service-py | 408a9032b30d3606a6b991f3982b7d17ded7cd47 | [
"Apache-2.0"
] | 1 | 2020-10-27T07:30:06.000Z | 2020-10-27T07:30:06.000Z | ocean_provider/routes/decrypt.py | oceanprotocol/provider-service-py | 408a9032b30d3606a6b991f3982b7d17ded7cd47 | [
"Apache-2.0"
] | 14 | 2020-05-28T11:50:18.000Z | 2020-10-26T09:51:49.000Z | ocean_provider/routes/decrypt.py | oceanprotocol/provider-service-py | 408a9032b30d3606a6b991f3982b7d17ded7cd47 | [
"Apache-2.0"
] | 2 | 2020-06-30T06:08:07.000Z | 2020-09-09T03:44:29.000Z | #
# Copyright 2021 Ocean Protocol Foundation
# SPDX-License-Identifier: Apache-2.0
#
import logging
import lzma
from hashlib import sha256
from typing import Optional, Tuple
from eth_typing.encoding import HexStr
from flask import Response, request
from flask_sieve import validate
from ocean_provider.requests_session ... | 35.234568 | 88 | 0.686872 |
5ba1b03217590cd51cf14bd304c81cdb93925ba6 | 79 | py | Python | aries_cloudagent/protocols/connections/v1_0/role.py | ankita-p17/aries-cloudagent-python | f849e360b0372fa58ffd7d043f39e3b81375570e | [
"Apache-2.0"
] | null | null | null | aries_cloudagent/protocols/connections/v1_0/role.py | ankita-p17/aries-cloudagent-python | f849e360b0372fa58ffd7d043f39e3b81375570e | [
"Apache-2.0"
] | null | null | null | aries_cloudagent/protocols/connections/v1_0/role.py | ankita-p17/aries-cloudagent-python | f849e360b0372fa58ffd7d043f39e3b81375570e | [
"Apache-2.0"
] | null | null | null | from enum import Enum | 13.166667 | 21 | 0.594937 |
5ba512b3cc3c02047e366a68b92d00520b0293a3 | 2,699 | py | Python | src/cowrie/output/csirtg.py | uwacyber/cowrie | 1d81e1ca5d0b8461e06f17aee26cb7bf108a16e5 | [
"BSD-3-Clause"
] | 2,316 | 2015-06-25T18:51:02.000Z | 2022-03-29T23:31:16.000Z | src/cowrie/output/csirtg.py | uwacyber/cowrie | 1d81e1ca5d0b8461e06f17aee26cb7bf108a16e5 | [
"BSD-3-Clause"
] | 632 | 2015-07-08T19:02:05.000Z | 2022-03-20T03:20:56.000Z | src/cowrie/output/csirtg.py | uwacyber/cowrie | 1d81e1ca5d0b8461e06f17aee26cb7bf108a16e5 | [
"BSD-3-Clause"
] | 486 | 2015-08-12T05:02:45.000Z | 2022-03-27T19:54:02.000Z | from __future__ import annotations
import os
from datetime import datetime
from twisted.python import log
import cowrie.core.output
from cowrie.core.config import CowrieConfig
token = CowrieConfig.get("output_csirtg", "token", fallback="a1b2c3d4")
if token == "a1b2c3d4":
log.msg("output_csirtg: token not found i... | 27.262626 | 86 | 0.577251 |
5ba5c6b926abcc27d77eb56e1ab7d35c7c997288 | 1,355 | py | Python | gui.py | Skezzowski/Rock-Paper-Scissors-Recognizer | 1e3122c648d5eedef8909b75825021de590c6fdc | [
"MIT"
] | null | null | null | gui.py | Skezzowski/Rock-Paper-Scissors-Recognizer | 1e3122c648d5eedef8909b75825021de590c6fdc | [
"MIT"
] | null | null | null | gui.py | Skezzowski/Rock-Paper-Scissors-Recognizer | 1e3122c648d5eedef8909b75825021de590c6fdc | [
"MIT"
] | null | null | null | import cv2
from PIL import Image, ImageTk
from appJar import gui
from segmentation import segment_hand_with_background
import recognize as rec
import skeleton as sk
app = gui("RPS Recognizer")
app.setStretch("none")
app.addLabel("Rock-Paper-Scissors Recognizer")
app.addFileEntry("f1")
app.addButton("Submit", submi... | 26.568627 | 87 | 0.684133 |
5ba646458e889ae3b1ad2c81a1b4ddcbd8846e71 | 1,347 | py | Python | eval/HighlightBins/hist.py | mkirsche/sapling | 4bbe08ecabd2d7d05f0c7ad1369fef7d0de8cc85 | [
"MIT"
] | 20 | 2018-10-18T16:42:50.000Z | 2022-01-12T13:13:09.000Z | eval/HighlightBins/hist.py | mkirsche/sapling | 4bbe08ecabd2d7d05f0c7ad1369fef7d0de8cc85 | [
"MIT"
] | 1 | 2020-11-26T08:07:30.000Z | 2020-12-02T05:41:25.000Z | eval/HighlightBins/hist.py | mkirsche/sapling | 4bbe08ecabd2d7d05f0c7ad1369fef7d0de8cc85 | [
"MIT"
] | 6 | 2020-01-29T21:59:55.000Z | 2022-03-31T23:38:01.000Z | import sys
import matplotlib
matplotlib.use('Agg')
import matplotlib.pyplot as plt
import seaborn as sns
fn = sys.argv[1]
pal = sns.color_palette()
with open(fn) as f:
toPlot = []
names = []
goodness = []
xs = []
ys = []
ps = []
sns.set()
for line in f:
tokens = line.split(' ')
if len(tokens) ==... | 25.415094 | 61 | 0.55605 |
5ba693f02b6eec231bd51eee1c8015fbc38f46e9 | 2,882 | py | Python | obj_sys/obj_tools.py | weijia/obj_sys | 7654a84f155f8e0da942f980d06c6ada34a6d71e | [
"BSD-3-Clause"
] | null | null | null | obj_sys/obj_tools.py | weijia/obj_sys | 7654a84f155f8e0da942f980d06c6ada34a6d71e | [
"BSD-3-Clause"
] | null | null | null | obj_sys/obj_tools.py | weijia/obj_sys | 7654a84f155f8e0da942f980d06c6ada34a6d71e | [
"BSD-3-Clause"
] | null | null | null | import socket
import logging
from ufs_tools import format_path
gUfsObjUrlPrefix = u'ufs' + get_fs_protocol_separator()
gUfsObjUrlSeparator = u'/'
log = logging.getLogger(__name__)
def is_ufs_url(url):
"""
In format of xxxx://xxxx
:param url:
"""
if url.find(get_fs_protocol_separat... | 22 | 91 | 0.683206 |
5ba72256a6d0dd8def446e04a42967abcf78e13a | 935 | py | Python | django_pandas/tests/models.py | patseng/django-pandas | 289c9bd5e245551f932a28c9dd185ff1e82346d3 | [
"BSD-3-Clause"
] | null | null | null | django_pandas/tests/models.py | patseng/django-pandas | 289c9bd5e245551f932a28c9dd185ff1e82346d3 | [
"BSD-3-Clause"
] | null | null | null | django_pandas/tests/models.py | patseng/django-pandas | 289c9bd5e245551f932a28c9dd185ff1e82346d3 | [
"BSD-3-Clause"
] | null | null | null | from django.db import models
from django_pandas.managers import DataFrameManager
| 22.261905 | 51 | 0.574332 |
5ba7d313b7cd41420e9e5febeab4e32d8628ee1f | 2,304 | py | Python | src/apps/recommendations/tests/x_test_comparable_inventories.py | Remy-TPP/q-api | 761dd2d15557cb9a8bdc0b397fc10e0cf7c95c03 | [
"MIT"
] | null | null | null | src/apps/recommendations/tests/x_test_comparable_inventories.py | Remy-TPP/q-api | 761dd2d15557cb9a8bdc0b397fc10e0cf7c95c03 | [
"MIT"
] | 14 | 2020-06-23T20:32:16.000Z | 2022-01-13T03:13:20.000Z | src/apps/recommendations/tests/x_test_comparable_inventories.py | MartinCura/q-api | 761dd2d15557cb9a8bdc0b397fc10e0cf7c95c03 | [
"MIT"
] | null | null | null | from unittest import TestCase
from apps.profiles.models import Profile
from apps.recipes.models import Recipe, Ingredient
from apps.recommendations.utils import ComparableInventory
# TODO: written for manual testing with preloaded db; for general use should create resources in setUp()
| 32 | 104 | 0.656684 |
5ba7dd577c3e8828d8289625c9be21e83ca75ece | 2,378 | py | Python | api/migrations/0076_auto_20200728_1500.py | IFRCGo/ifrcgo-api | c1c3e0cf1076ab48d03db6aaf7a00f8485ca9e1a | [
"MIT"
] | 11 | 2018-06-11T06:05:12.000Z | 2022-03-25T09:31:44.000Z | api/migrations/0076_auto_20200728_1500.py | IFRCGo/ifrcgo-api | c1c3e0cf1076ab48d03db6aaf7a00f8485ca9e1a | [
"MIT"
] | 498 | 2017-11-07T21:20:13.000Z | 2022-03-31T14:37:18.000Z | api/migrations/0076_auto_20200728_1500.py | IFRCGo/ifrcgo-api | c1c3e0cf1076ab48d03db6aaf7a00f8485ca9e1a | [
"MIT"
] | 6 | 2018-04-11T13:29:50.000Z | 2020-07-16T16:52:11.000Z | # Generated by Django 2.2.13 on 2020-07-28 15:00
from django.db import migrations
| 27.651163 | 52 | 0.543314 |
5ba8bd99382a6bd8f9062e85811ea5bbc00b9220 | 345 | py | Python | main.py | alextremblay962/Hydropinic_System | 7fcc87f110425183fb8e18c7f7c6664781565f65 | [
"MIT"
] | null | null | null | main.py | alextremblay962/Hydropinic_System | 7fcc87f110425183fb8e18c7f7c6664781565f65 | [
"MIT"
] | null | null | null | main.py | alextremblay962/Hydropinic_System | 7fcc87f110425183fb8e18c7f7c6664781565f65 | [
"MIT"
] | null | null | null | import serial
import json
import io
import time
ser = serial.Serial("COM24" , 9600, timeout=2)
topic = "hydro/light1"
payload = 1
#data = json.dumps({"topic":topic,"payload":payload})
data = "{\"topic\":\"hydro/light1\",\"payload\":1}"
data = data.encode()
print(data)
ser.write(b'A')
hello = ser.readline()#.dec... | 16.428571 | 53 | 0.669565 |
5ba9e26eca34452a68418484aba93e32e621f681 | 366 | py | Python | level_3/challenge_2.py | mouse-reeve/foobar | 16b66b2bf50f612d2a2b72a3997fb954cff72a0b | [
"MIT"
] | null | null | null | level_3/challenge_2.py | mouse-reeve/foobar | 16b66b2bf50f612d2a2b72a3997fb954cff72a0b | [
"MIT"
] | 1 | 2015-10-15T21:53:15.000Z | 2016-03-04T18:31:37.000Z | level_3/challenge_2.py | mouse-reeve/foobar | 16b66b2bf50f612d2a2b72a3997fb954cff72a0b | [
"MIT"
] | null | null | null | ''' Compute a digest message '''
def answer(digest):
''' solve for m[1] '''
message = []
for i, v in enumerate(digest):
pv = message[i - 1] if i > 0 else 0
m = 0.1
a = 0
while m != int(m):
m = ((256 * a) + (v ^ pv)) / 129.0
a += 1
m = int(m)
... | 20.333333 | 46 | 0.42623 |
5bac7ae6136379e32a79e0f45ffc9c4c50e02c35 | 274 | py | Python | pacote-download/pythonProject/exercicios_python_guanabara/ex019.py | oliveirajonathas/python_estudos | 28921672d7e5d0866030c45b077a28998905f752 | [
"MIT"
] | null | null | null | pacote-download/pythonProject/exercicios_python_guanabara/ex019.py | oliveirajonathas/python_estudos | 28921672d7e5d0866030c45b077a28998905f752 | [
"MIT"
] | null | null | null | pacote-download/pythonProject/exercicios_python_guanabara/ex019.py | oliveirajonathas/python_estudos | 28921672d7e5d0866030c45b077a28998905f752 | [
"MIT"
] | null | null | null | import random
aluno1 = input('Nome aluno 1: ')
aluno2 = input('Nome aluno 2: ')
aluno3 = input('Nome aluno 3: ')
aluno4 = input('Nome aluno 4: ')
sorteado = random.choice([aluno1, aluno2, aluno3, aluno4])
print('O sorteado para apagar o quadro foi: {}'.format(sorteado))
| 24.909091 | 65 | 0.686131 |
5badd82fc3129e47361d6ac0510385c34b87a716 | 306 | py | Python | tests/test_reset_plot.py | l-johnston/toolbag | 1bd6ca61bfaf5856e5de320926d5593291e39e9c | [
"MIT"
] | null | null | null | tests/test_reset_plot.py | l-johnston/toolbag | 1bd6ca61bfaf5856e5de320926d5593291e39e9c | [
"MIT"
] | null | null | null | tests/test_reset_plot.py | l-johnston/toolbag | 1bd6ca61bfaf5856e5de320926d5593291e39e9c | [
"MIT"
] | null | null | null | """Test reset_plot"""
import matplotlib.pyplot as plt
from toolbag import reset_plot
plt.ion()
# pylint: disable = missing-function-docstring
| 20.4 | 46 | 0.656863 |
5bade8022eec80f2a26ec5d44c9c7347683447d6 | 330 | py | Python | af/shovel/oonipl/popen.py | mimi89999/pipeline | 3e9eaf74c0966df907a230fbe89407c2bbc3d930 | [
"BSD-3-Clause"
] | null | null | null | af/shovel/oonipl/popen.py | mimi89999/pipeline | 3e9eaf74c0966df907a230fbe89407c2bbc3d930 | [
"BSD-3-Clause"
] | null | null | null | af/shovel/oonipl/popen.py | mimi89999/pipeline | 3e9eaf74c0966df907a230fbe89407c2bbc3d930 | [
"BSD-3-Clause"
] | null | null | null | #!/usr/bin/env python2.7
# -*- coding: utf-8 -*-
from subprocess import Popen, PIPE
from contextlib import contextmanager
| 18.333333 | 37 | 0.593939 |
5baf5da6b3b56130ae127a49e7d55ba199f66090 | 3,104 | py | Python | software/dsp/ddc.py | loxodes/phasenoise | 21dc8cd6ca167c215bd5e2b579d65062c7bdc848 | [
"MIT"
] | 14 | 2020-09-20T18:38:18.000Z | 2021-08-06T09:17:19.000Z | software/dsp/ddc.py | loxodes/phasenoise | 21dc8cd6ca167c215bd5e2b579d65062c7bdc848 | [
"MIT"
] | null | null | null | software/dsp/ddc.py | loxodes/phasenoise | 21dc8cd6ca167c215bd5e2b579d65062c7bdc848 | [
"MIT"
] | 1 | 2021-02-06T13:46:16.000Z | 2021-02-06T13:46:16.000Z | from migen import *
from nco import NCO
from mixer import Mixer
from cic import CIC, CompensationFilter
import numpy as np
import matplotlib.pyplot as plt
if __name__ == '__main__':
dut = DDC()
run_simulation(dut, ddc_test(dut), vcd_name="ddc_test.vcd")
| 27.22807 | 107 | 0.615979 |
5baff64f81ba252289a1e5fc1113a99049bc4207 | 1,372 | py | Python | moog/tasks/composite_task.py | juanpablordz/moog.github.io | d7995d3563492378d0877ce8d16f5ca9a8031794 | [
"Apache-2.0",
"MIT"
] | 22 | 2021-02-26T18:19:35.000Z | 2022-03-05T19:01:00.000Z | moog/tasks/composite_task.py | juanpablordz/moog.github.io | d7995d3563492378d0877ce8d16f5ca9a8031794 | [
"Apache-2.0",
"MIT"
] | 1 | 2021-04-01T06:15:02.000Z | 2021-04-23T13:14:12.000Z | moog/tasks/composite_task.py | juanpablordz/moog.github.io | d7995d3563492378d0877ce8d16f5ca9a8031794 | [
"Apache-2.0",
"MIT"
] | 2 | 2021-05-02T02:20:39.000Z | 2021-05-06T16:24:35.000Z | """Composite task."""
from . import abstract_task
import numpy as np
| 31.906977 | 80 | 0.637026 |
5bb15a5ffb620445f0397de1c06daebdacb8541a | 908 | py | Python | main/api/fields.py | lipis/gae-init-magic | 6b1e0b50f8e5200cb2dacebca9ac65e796b241a9 | [
"MIT"
] | 465 | 2015-01-01T17:49:09.000Z | 2021-12-06T15:00:40.000Z | main/api/fields.py | lipis/gae-init-magic | 6b1e0b50f8e5200cb2dacebca9ac65e796b241a9 | [
"MIT"
] | 652 | 2018-10-26T12:28:08.000Z | 2021-08-02T09:13:48.000Z | main/api/fields.py | lipis/gae-init-magic | 6b1e0b50f8e5200cb2dacebca9ac65e796b241a9 | [
"MIT"
] | 171 | 2015-01-01T16:48:09.000Z | 2022-03-15T21:48:52.000Z | # coding: utf-8
import urllib
from flask_restful import fields
from flask_restful.fields import *
| 18.916667 | 61 | 0.67511 |
5bb27bd7739504eb9fc2a3cbb5ae875a2a149f7e | 1,353 | py | Python | polls/views.py | pygabo/omnik | 579b20671515d8a38b56df8c5bc837bd201ec7b0 | [
"MIT"
] | null | null | null | polls/views.py | pygabo/omnik | 579b20671515d8a38b56df8c5bc837bd201ec7b0 | [
"MIT"
] | null | null | null | polls/views.py | pygabo/omnik | 579b20671515d8a38b56df8c5bc837bd201ec7b0 | [
"MIT"
] | null | null | null | from django.shortcuts import get_object_or_404, render
from django.http import HttpResponseRedirect, HttpResponse
from django.http import HttpResponse
from django.urls import reverse
from django.views.generic import ListView,DetailView
from .models import Poll, Choice
def vote(request, question_id):
question = ... | 33 | 82 | 0.704361 |
5bb28b111d97dd9185bbbe21a689e7be67fc0820 | 864 | py | Python | tests/test_contextmanager.py | eagleshine/invirtualenv | 5f8993dd96070f4c7fc88657c59f56f6706a5544 | [
"BSD-3-Clause"
] | 15 | 2017-03-13T03:35:15.000Z | 2021-08-31T09:34:14.000Z | tests/test_contextmanager.py | eagleshine/invirtualenv | 5f8993dd96070f4c7fc88657c59f56f6706a5544 | [
"BSD-3-Clause"
] | 53 | 2016-04-28T20:49:01.000Z | 2021-06-18T16:40:00.000Z | tests/test_contextmanager.py | eagleshine/invirtualenv | 5f8993dd96070f4c7fc88657c59f56f6706a5544 | [
"BSD-3-Clause"
] | 10 | 2016-05-10T19:22:18.000Z | 2020-06-30T18:24:58.000Z | import os
import unittest
import invirtualenv.contextmanager
| 39.272727 | 75 | 0.638889 |
5bb59ff29485da299bf3f36eb02b24fa0c1f1983 | 6,731 | py | Python | xero/filesmanager.py | Ian2020/pyxero | 187f00fc535c585fa741520d1bdd9500abf3dcca | [
"BSD-3-Clause"
] | 246 | 2015-02-11T19:38:57.000Z | 2022-03-29T10:13:52.000Z | xero/filesmanager.py | Ian2020/pyxero | 187f00fc535c585fa741520d1bdd9500abf3dcca | [
"BSD-3-Clause"
] | 209 | 2015-01-07T01:28:12.000Z | 2022-03-09T19:06:40.000Z | xero/filesmanager.py | Ian2020/pyxero | 187f00fc535c585fa741520d1bdd9500abf3dcca | [
"BSD-3-Clause"
] | 206 | 2015-01-10T22:33:08.000Z | 2022-03-16T14:07:28.000Z | from __future__ import unicode_literals
import os
import requests
from six.moves.urllib.parse import parse_qs
from .constants import XERO_FILES_URL
from .exceptions import (
XeroBadRequest,
XeroExceptionUnknown,
XeroForbidden,
XeroInternalError,
XeroNotAvailable,
XeroNotFound,
XeroNotImple... | 33.321782 | 87 | 0.576437 |
5bb69ffabb9285aa28e934c2aba594cdec056ae0 | 519 | py | Python | jobs/migrations/0055_savedfeatureselection_uid.py | hotosm/hot-exports-two | d60530445e89b2a46bd55ea3b7c2e72409b0f493 | [
"BSD-3-Clause"
] | 95 | 2017-09-29T13:20:38.000Z | 2022-03-14T06:43:47.000Z | jobs/migrations/0055_savedfeatureselection_uid.py | hotosm/hot-exports-two | d60530445e89b2a46bd55ea3b7c2e72409b0f493 | [
"BSD-3-Clause"
] | 229 | 2015-07-29T08:50:27.000Z | 2017-09-21T18:05:56.000Z | jobs/migrations/0055_savedfeatureselection_uid.py | hotosm/hot-exports-two | d60530445e89b2a46bd55ea3b7c2e72409b0f493 | [
"BSD-3-Clause"
] | 30 | 2017-10-06T23:53:48.000Z | 2022-03-10T06:17:07.000Z | # -*- coding: utf-8 -*-
# Generated by Django 1.9 on 2017-06-26 12:06
from __future__ import unicode_literals
from django.db import migrations, models
import uuid
| 23.590909 | 99 | 0.645472 |
5bb783371c1c6bac129e190c83ca0c821e863a44 | 6,194 | py | Python | unified_planning/plans/partial_order_plan.py | aiplan4eu/unified-planning | d2fd18baa3a2110595e5dfdc3f55254df72c3016 | [
"Apache-2.0"
] | 9 | 2022-02-18T14:51:58.000Z | 2022-03-31T06:02:43.000Z | unified_planning/plans/partial_order_plan.py | aiplan4eu/unified-planning | d2fd18baa3a2110595e5dfdc3f55254df72c3016 | [
"Apache-2.0"
] | 37 | 2022-02-01T10:44:38.000Z | 2022-03-31T09:13:42.000Z | unified_planning/plans/partial_order_plan.py | aiplan4eu/unified-planning | d2fd18baa3a2110595e5dfdc3f55254df72c3016 | [
"Apache-2.0"
] | null | null | null | # Copyright 2021 AIPlan4EU project
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in wri... | 51.616667 | 211 | 0.700355 |
5bb8dc2b9919fe922dd397b3d18c6984fcf2da3a | 71 | py | Python | tests/params.py | cponecp/iHone | 91096b085d72afa97a6e640c082564ef500f5be8 | [
"MIT"
] | null | null | null | tests/params.py | cponecp/iHone | 91096b085d72afa97a6e640c082564ef500f5be8 | [
"MIT"
] | null | null | null | tests/params.py | cponecp/iHone | 91096b085d72afa97a6e640c082564ef500f5be8 | [
"MIT"
] | null | null | null |
fun(user='cp',default={}) | 17.75 | 31 | 0.633803 |
5bb90766f7b85944500acf3f02a74757b861fc3d | 8,492 | py | Python | orquesta/tests/unit/graphing/native/test_routes_split.py | batk0/orquesta | f03f3f2f3820bf111a9277f4f6c5d6c83a89d004 | [
"Apache-2.0"
] | null | null | null | orquesta/tests/unit/graphing/native/test_routes_split.py | batk0/orquesta | f03f3f2f3820bf111a9277f4f6c5d6c83a89d004 | [
"Apache-2.0"
] | null | null | null | orquesta/tests/unit/graphing/native/test_routes_split.py | batk0/orquesta | f03f3f2f3820bf111a9277f4f6c5d6c83a89d004 | [
"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
# distributed under th... | 32.166667 | 74 | 0.321597 |
5bbbb9f34d714ae4dbca7523d97576b3cc0761f0 | 227 | py | Python | test_client.py | lilydjwg/udt_py | 90cb36f3ef503bb45a9aa4f9dad5c86eddce0abd | [
"BSD-3-Clause"
] | 9 | 2015-01-11T06:59:40.000Z | 2022-02-02T14:57:59.000Z | test_client.py | lilydjwg/udt_py | 90cb36f3ef503bb45a9aa4f9dad5c86eddce0abd | [
"BSD-3-Clause"
] | 1 | 2015-01-15T21:03:51.000Z | 2015-01-16T03:05:25.000Z | test_client.py | lilydjwg/udt_py | 90cb36f3ef503bb45a9aa4f9dad5c86eddce0abd | [
"BSD-3-Clause"
] | 1 | 2020-06-20T08:39:06.000Z | 2020-06-20T08:39:06.000Z | #!/usr/bin/env python3
import udt
import socket
import time
s = udt.socket(socket.AF_INET, socket.SOCK_STREAM, 0)
s.connect(("localhost", 5555))
print("Sending...")
s.send(b"Hello", 0)
buf = s.recv(1024, 0)
print(repr(buf))
| 16.214286 | 53 | 0.696035 |
5bbf42ace722c24c81f330e4307be610dd8dbc8b | 1,907 | py | Python | core_lib/rule_validator/rule_validator_decorator.py | shubham-surya/core-lib | 543db80706746a937e5ed16bd50f2de8d58b32e4 | [
"MIT"
] | null | null | null | core_lib/rule_validator/rule_validator_decorator.py | shubham-surya/core-lib | 543db80706746a937e5ed16bd50f2de8d58b32e4 | [
"MIT"
] | 9 | 2021-03-11T02:29:17.000Z | 2022-03-22T19:01:18.000Z | core_lib/rule_validator/rule_validator_decorator.py | shubham-surya/core-lib | 543db80706746a937e5ed16bd50f2de8d58b32e4 | [
"MIT"
] | 2 | 2022-01-27T11:19:00.000Z | 2022-02-11T11:33:09.000Z | from functools import wraps
from core_lib.helpers.func_utils import get_func_parameter_index_by_name
from core_lib.rule_validator.rule_validator import RuleValidator
| 38.918367 | 197 | 0.616675 |
5bbfa07e6200a39297ee7b945822d94abec3bd05 | 2,058 | py | Python | logistic_regression_08/main.py | michaellengyel/cifar_image_recognition | ad8dc5784e32907762366018270412c8975719d2 | [
"Apache-2.0"
] | null | null | null | logistic_regression_08/main.py | michaellengyel/cifar_image_recognition | ad8dc5784e32907762366018270412c8975719d2 | [
"Apache-2.0"
] | null | null | null | logistic_regression_08/main.py | michaellengyel/cifar_image_recognition | ad8dc5784e32907762366018270412c8975719d2 | [
"Apache-2.0"
] | null | null | null | import torch
import torch.nn as nn
import numpy as np
from sklearn import datasets
from sklearn.preprocessing import StandardScaler
from sklearn.model_selection import train_test_split
import matplotlib.pyplot as plt
if __name__ == '__main__':
main()
| 26.384615 | 95 | 0.661808 |
5bbfc3eb5cd5c998c4f1c0a160a1b3c4c4e0bd4e | 1,060 | py | Python | obkey_parts/__version__.py | evyd13/obkey3 | bb49ed6d6696299a410c43d0ba6471ee3f594c26 | [
"MIT"
] | 4 | 2018-12-17T03:53:26.000Z | 2022-01-06T19:40:02.000Z | obkey_parts/__version__.py | evyd13/obkey3 | bb49ed6d6696299a410c43d0ba6471ee3f594c26 | [
"MIT"
] | 9 | 2016-05-01T09:42:23.000Z | 2022-01-10T11:10:12.000Z | obkey_parts/__version__.py | evyd13/obkey3 | bb49ed6d6696299a410c43d0ba6471ee3f594c26 | [
"MIT"
] | 6 | 2019-03-11T13:14:22.000Z | 2022-01-02T23:55:17.000Z | """
Obkey package informations.
This file is a part of Openbox Key Editor
Code under GPL (originally MIT) from version 1.3 - 2018.
See Licenses information in ../obkey .
"""
MAJOR = 1
MINOR = 3
PATCH = 2
__version__ = "{0}.{1}.{2}".format(MAJOR, MINOR, PATCH)
__description__ = 'Openbox Key Editor'
__long_des... | 32.121212 | 124 | 0.700943 |
5bc0cb9ffa299ad9d23aa50d9179c1903fd178ee | 811 | py | Python | PSA/modules/BroEventDispatcher.py | SECURED-FP7/secured-psa-nsm | 20c8f790ebc2d2aa8c33bda1e047f8f29275a0be | [
"Apache-2.0"
] | null | null | null | PSA/modules/BroEventDispatcher.py | SECURED-FP7/secured-psa-nsm | 20c8f790ebc2d2aa8c33bda1e047f8f29275a0be | [
"Apache-2.0"
] | null | null | null | PSA/modules/BroEventDispatcher.py | SECURED-FP7/secured-psa-nsm | 20c8f790ebc2d2aa8c33bda1e047f8f29275a0be | [
"Apache-2.0"
] | null | null | null | # -*- Mode:Python;indent-tabs-mode:nil; -*-
#
# BroEventDispatcher.py
#
# A simple event dispatcher.
#
# Author: jju / VTT Technical Research Centre of Finland Ltd., 2016
#
import logging
callbacks = { }
def register( key, obj ):
"""
Register a callback for key 'key'
"""
global callbacks
callback... | 19.309524 | 76 | 0.588163 |
5bc10292408a422083d964a15112bb688f34a1cb | 3,592 | py | Python | scripts/molecules.py | abelcarreras/PyQchem | 2edf984ba17373ad3fd450b18592c8b7827b72e5 | [
"MIT"
] | 16 | 2020-03-06T00:15:16.000Z | 2022-02-21T12:54:46.000Z | scripts/molecules.py | abelcarreras/qchem_scripts | 992fc3d650f3b7651c63aba5759ba0f986eccffe | [
"MIT"
] | 3 | 2020-12-24T12:44:14.000Z | 2021-03-30T03:11:16.000Z | scripts/molecules.py | abelcarreras/qchem_scripts | 992fc3d650f3b7651c63aba5759ba0f986eccffe | [
"MIT"
] | 3 | 2020-06-05T20:55:41.000Z | 2021-03-23T18:17:15.000Z | from pyqchem.structure import Structure
import numpy as np
# Ethene parallel position
# Tetracloroethene
# Tetracloroethene | 36.653061 | 74 | 0.52422 |
5bc343c63bd416a3914682e8b9480f3267efc3a6 | 1,776 | py | Python | twitter_monitor/twitter_bot_runner.py | coffeerightnow/TwitterMonitor | 91ce0647f0ec7a81bae6e5788d37221230a2d9b5 | [
"MIT"
] | null | null | null | twitter_monitor/twitter_bot_runner.py | coffeerightnow/TwitterMonitor | 91ce0647f0ec7a81bae6e5788d37221230a2d9b5 | [
"MIT"
] | null | null | null | twitter_monitor/twitter_bot_runner.py | coffeerightnow/TwitterMonitor | 91ce0647f0ec7a81bae6e5788d37221230a2d9b5 | [
"MIT"
] | null | null | null | import logging
from .config_loader import BackendConfig
import time
from .data_processing import TwitterStreamListener, TweetProcessor, TweetQueue
# load configuration
config = BackendConfig()
# setup Logging
logging.basicConfig(format='%(asctime)s %(message)s', level=config.log_level, filename='twitter_log.log')
# c... | 37 | 105 | 0.739302 |
5bc378b2e4d4522b4b61e8ed9d281f74655fd8f8 | 5,651 | py | Python | lib/bot/__init__.py | ItsZabbs/Pokedex-Bot | 0dfe38f939712ff0478eada1ff4c44226f6013c0 | [
"MIT"
] | null | null | null | lib/bot/__init__.py | ItsZabbs/Pokedex-Bot | 0dfe38f939712ff0478eada1ff4c44226f6013c0 | [
"MIT"
] | null | null | null | lib/bot/__init__.py | ItsZabbs/Pokedex-Bot | 0dfe38f939712ff0478eada1ff4c44226f6013c0 | [
"MIT"
] | null | null | null | import discord
from discord.ext import commands
import dotenv
import os
from glob import glob
import traceback
from ..db import db
# Loading the environment variables
dotenv.load_dotenv()
token = os.getenv("BOT_TOKEN")
error_guild_id = os.getenv("GUILD_ID")
error_channel_id = os.getenv("CHANNEL_ID")
feedback_channel... | 35.993631 | 195 | 0.642895 |
5bc3b76b4051d6f7137b9c441c17bb2450602f26 | 50,408 | py | Python | StackApp/env/lib/python2.7/site-packages/blueprint/backend/files.py | jonathanmusila/StackOverflow-Lite | a9a03f129592c6f741eb4d1e608ca2db0e40bf11 | [
"MIT"
] | null | null | null | StackApp/env/lib/python2.7/site-packages/blueprint/backend/files.py | jonathanmusila/StackOverflow-Lite | a9a03f129592c6f741eb4d1e608ca2db0e40bf11 | [
"MIT"
] | null | null | null | StackApp/env/lib/python2.7/site-packages/blueprint/backend/files.py | jonathanmusila/StackOverflow-Lite | a9a03f129592c6f741eb4d1e608ca2db0e40bf11 | [
"MIT"
] | null | null | null | """
Search for configuration files to include in the blueprint.
"""
import base64
from collections import defaultdict
import errno
import glob
import grp
import hashlib
import logging
import os.path
import pwd
import re
import stat
import subprocess
from blueprint import util
# An extra list of pathnames and MD5 su... | 51.860082 | 79 | 0.607047 |
5bc56560720d2cf232c7165fe370c0dba7a927b7 | 3,065 | py | Python | control/adaptive_affine.py | jnez71/misc | 397ac0b8e3bccec4daa73db8963bb0510eebebfe | [
"MIT"
] | 3 | 2017-05-12T21:52:53.000Z | 2018-04-02T16:05:08.000Z | control/adaptive_affine.py | jnez71/misc | 397ac0b8e3bccec4daa73db8963bb0510eebebfe | [
"MIT"
] | null | null | null | control/adaptive_affine.py | jnez71/misc | 397ac0b8e3bccec4daa73db8963bb0510eebebfe | [
"MIT"
] | 4 | 2017-04-13T01:06:21.000Z | 2019-01-22T09:43:38.000Z | #!/usr/bin/env python3
"""
Adaptive Affine Control:
My favorite myopic (not MPC, DP, or RL) control-law when absolutely nothing is known about your system except
that the control is additive and fully-actuated:
```
dx/dt = f(x,t) + u # drift f unknown, state x at time t known, choose control u to make x=r
u = W... | 31.597938 | 114 | 0.54323 |
5bc679b5e30f69fabf91b151ec50839acee5a93d | 1,227 | py | Python | hermione/module_templates/__IMPLEMENTED_BASE__/src/ml/preprocessing/preprocessing.py | RodrigoATorres/hermione | 6cbed73e309f8025a48f33165d8f29561c6a3cc7 | [
"Apache-2.0"
] | 183 | 2020-06-03T22:43:14.000Z | 2022-03-17T22:39:07.000Z | hermione/module_templates/__IMPLEMENTED_BASE__/src/ml/preprocessing/preprocessing.py | RodrigoATorres/hermione | 6cbed73e309f8025a48f33165d8f29561c6a3cc7 | [
"Apache-2.0"
] | 31 | 2020-06-03T22:55:18.000Z | 2022-03-27T20:06:17.000Z | hermione/module_templates/__IMPLEMENTED_BASE__/src/ml/preprocessing/preprocessing.py | RodrigoATorres/hermione | 6cbed73e309f8025a48f33165d8f29561c6a3cc7 | [
"Apache-2.0"
] | 43 | 2020-06-03T22:45:03.000Z | 2021-12-29T19:43:54.000Z | import pandas as pd
from ml.preprocessing.normalization import Normalizer
from category_encoders import *
import logging
logging.getLogger().setLevel(logging.INFO)
| 23.596154 | 59 | 0.546862 |
5bc752f683441124b17790de08739437980201a1 | 738 | py | Python | python-backend/tests/status/resources/test_mine_status_resource.py | MaxWardle/mds | 15d8405e6e95af98da9588f353c5d6692d1aa3d6 | [
"Apache-2.0"
] | null | null | null | python-backend/tests/status/resources/test_mine_status_resource.py | MaxWardle/mds | 15d8405e6e95af98da9588f353c5d6692d1aa3d6 | [
"Apache-2.0"
] | null | null | null | python-backend/tests/status/resources/test_mine_status_resource.py | MaxWardle/mds | 15d8405e6e95af98da9588f353c5d6692d1aa3d6 | [
"Apache-2.0"
] | 1 | 2019-01-12T23:44:13.000Z | 2019-01-12T23:44:13.000Z | import json
from app.api.constants import MINE_STATUS_OPTIONS
from tests.constants import TEST_MINE_GUID
# GET
| 36.9 | 107 | 0.764228 |
5bc7db691db6bd3aeb10eeebc1044c688e5b67aa | 3,124 | py | Python | DevTools/lineCount.py | spiiin/CadEditor | b28316ddd9be4e79ac5e6adf89b7751df609d94e | [
"MIT"
] | 164 | 2015-01-16T17:09:45.000Z | 2022-03-17T03:39:08.000Z | DevTools/lineCount.py | spiiin/CadEditor | b28316ddd9be4e79ac5e6adf89b7751df609d94e | [
"MIT"
] | 13 | 2015-02-20T17:07:40.000Z | 2021-07-11T05:33:17.000Z | DevTools/lineCount.py | spiiin/CadEditor | b28316ddd9be4e79ac5e6adf89b7751df609d94e | [
"MIT"
] | 23 | 2015-09-01T22:29:11.000Z | 2022-01-10T01:32:32.000Z | #!/usr/bin/env python2
#Script for calculate LoC of all source files of project
import os,string
import sys
extension_list = ['h','hpp','cpp','c','pas','dpr','asm','py','q3asm','def','sh','bat','cs','java','cl','lisp','ui',"nut"]
comment_sims = {'asm' : ';', 'py' : '#', 'cl':';','lisp':';'}
source_files = { }
... | 34.32967 | 121 | 0.604033 |
5bc948954ddbc5d9352dfc11d6c0ba8370fd9e74 | 14,307 | py | Python | objectrocket/instances/mongodb.py | objectrocket/python-client | ae739b4946b84cbe7e7f06ead91c6319b8e6b324 | [
"MIT"
] | 5 | 2015-07-15T19:20:33.000Z | 2018-02-13T21:36:49.000Z | objectrocket/instances/mongodb.py | objectrocket/python-client | ae739b4946b84cbe7e7f06ead91c6319b8e6b324 | [
"MIT"
] | 28 | 2015-07-15T17:54:22.000Z | 2020-12-23T13:14:25.000Z | objectrocket/instances/mongodb.py | objectrocket/python-client | ae739b4946b84cbe7e7f06ead91c6319b8e6b324 | [
"MIT"
] | 5 | 2016-04-14T19:01:20.000Z | 2019-06-24T19:50:26.000Z | """MongoDB instance classes and logic."""
import datetime
import json
import logging
import time
import pymongo
import requests
from concurrent import futures
from distutils.version import LooseVersion
from objectrocket import bases
from objectrocket import util
logger = logging.getLogger(__name__)
class Shard(ba... | 41.230548 | 151 | 0.628783 |
5bc9e6c226f00a75b8cdcda4f0faf8b1dc74f397 | 429 | py | Python | quickforex/providers/__init__.py | jean-edouard-boulanger/python-quickforex | be95a795719f8bb77eceeb543d2ab963182b3f56 | [
"MIT"
] | null | null | null | quickforex/providers/__init__.py | jean-edouard-boulanger/python-quickforex | be95a795719f8bb77eceeb543d2ab963182b3f56 | [
"MIT"
] | null | null | null | quickforex/providers/__init__.py | jean-edouard-boulanger/python-quickforex | be95a795719f8bb77eceeb543d2ab963182b3f56 | [
"MIT"
] | null | null | null | from quickforex.providers.base import ProviderBase
from quickforex.providers.provider_metadata import (
ProviderMetadata,
SettingFieldDescription,
)
from quickforex.providers.exchangerate_host import ExchangeRateHostProvider
from quickforex.providers.dummy import DummyProvider
__all__ = [
"ProviderBase",
... | 26.8125 | 75 | 0.797203 |
5bca412f256ff93ff0c9ab5a15be3bb92d689d74 | 5,154 | py | Python | springleaf/generator.py | OMKE/SpringLeaf | 0ee13f9fe53bb62f5ba144672c781ca66dd8164c | [
"MIT"
] | 9 | 2020-06-15T14:44:21.000Z | 2021-01-26T20:17:25.000Z | springleaf/generator.py | OMKE/SpringLeaf | 0ee13f9fe53bb62f5ba144672c781ca66dd8164c | [
"MIT"
] | 6 | 2020-06-17T19:16:25.000Z | 2020-08-25T04:44:28.000Z | springleaf/generator.py | OMKE/SpringLeaf | 0ee13f9fe53bb62f5ba144672c781ca66dd8164c | [
"MIT"
] | null | null | null | from springleaf.utils.file_handler import FileHandler
from springleaf.utils.template_util import TemplateUtil
from .base_generator import BaseGenerator
| 64.425 | 286 | 0.596624 |
5bcacc54aaaf4f3456b49e1b1d734428817a5f4b | 3,722 | py | Python | MetadataProvider/metadata_provider.py | PiotrJTomaszewski/InternetRadioReciever | d7d5654b93b846e754057ad72cbc1c01f7b3ee6e | [
"MIT"
] | null | null | null | MetadataProvider/metadata_provider.py | PiotrJTomaszewski/InternetRadioReciever | d7d5654b93b846e754057ad72cbc1c01f7b3ee6e | [
"MIT"
] | null | null | null | MetadataProvider/metadata_provider.py | PiotrJTomaszewski/InternetRadioReciever | d7d5654b93b846e754057ad72cbc1c01f7b3ee6e | [
"MIT"
] | null | null | null | from mpd_connection import MPDConnection
from processing_metadata import process_metadata, join_metadata
from lastfm_api import LastFmMetadataGetter, LastFmApiException
from multiprocessing.managers import SyncManager
from multiprocessing import Event
import time
# Shared objects
shared_song_metadata = {}
shared_mpd_s... | 41.820225 | 124 | 0.711177 |
5bcb08c67e2fb3285c52b357489d036e67867bc6 | 1,546 | py | Python | src/dataset.py | EmanuelSamir/adaptive-learning-qpcbfclf-elm | d913a8b98600a0d844adf156700b3b69c73c694a | [
"MIT"
] | null | null | null | src/dataset.py | EmanuelSamir/adaptive-learning-qpcbfclf-elm | d913a8b98600a0d844adf156700b3b69c73c694a | [
"MIT"
] | null | null | null | src/dataset.py | EmanuelSamir/adaptive-learning-qpcbfclf-elm | d913a8b98600a0d844adf156700b3b69c73c694a | [
"MIT"
] | null | null | null | from collections import deque, namedtuple
import random
| 28.62963 | 72 | 0.510996 |
5bcd4fe94307999ec0e963c569a27c56d4a42eff | 985 | py | Python | common/stat.py | 7workday/TT | 8887a85652c387a50a65e2598abdc833400e56f3 | [
"Apache-2.0"
] | null | null | null | common/stat.py | 7workday/TT | 8887a85652c387a50a65e2598abdc833400e56f3 | [
"Apache-2.0"
] | null | null | null | common/stat.py | 7workday/TT | 8887a85652c387a50a65e2598abdc833400e56f3 | [
"Apache-2.0"
] | null | null | null | ''''''
OK = 0
def gen_logic_err(name, code):
''' LogicErr (LogicErr )'''
return type(name, (LogicErr,), {'code': code})
SmsErr = gen_logic_err('SmsErr', 1000) #
VcodeErr = gen_logic_err('VcodeErr', 1001) #
LoginRequired = gen_logic_err('LoginRequired', 1002) #
UserForm... | 35.178571 | 85 | 0.690355 |
5bcdccd8610159a86084244c116c9f3fdbd180fe | 372 | py | Python | pythontutor-ru/02_ifelse/09_bishop_move.py | ornichola/learning-new | e567218d8887805e38b1361715d5e3bd51a6bcaf | [
"Unlicense"
] | 2 | 2019-05-24T20:10:16.000Z | 2020-07-11T06:06:43.000Z | pythontutor-ru/02_ifelse/09_bishop_move.py | ornichola/learning-new | e567218d8887805e38b1361715d5e3bd51a6bcaf | [
"Unlicense"
] | null | null | null | pythontutor-ru/02_ifelse/09_bishop_move.py | ornichola/learning-new | e567218d8887805e38b1361715d5e3bd51a6bcaf | [
"Unlicense"
] | 21 | 2019-03-11T20:25:05.000Z | 2022-02-28T13:53:10.000Z | '''
http://pythontutor.ru/lessons/ifelse/problems/bishop_move/
.
, , .
'''
a_x = int(input())
a_y = int(input())
b_x = int(input())
b_y = int(input())
if abs(a_x - b_x) == abs(a_y - b_y):
print('YES')
else:
print('NO')
| 23.25 | 115 | 0.688172 |
5bcebc4ea06b4aa53df97d80529e592e380fed34 | 3,831 | py | Python | zebROS_ws/src/controller_node/scripts/transform_odom.py | mattwalstra/2019RobotCode | 44f2543876b95428a68dc84820f931571244e49d | [
"BSD-3-Clause"
] | 4 | 2020-11-25T18:30:33.000Z | 2021-11-14T04:50:16.000Z | zebROS_ws/src/controller_node/scripts/transform_odom.py | mattwalstra/2019RobotCode | 44f2543876b95428a68dc84820f931571244e49d | [
"BSD-3-Clause"
] | 19 | 2021-03-20T01:10:04.000Z | 2022-01-17T22:51:05.000Z | zebROS_ws/src/controller_node/scripts/transform_odom.py | mattwalstra/2019RobotCode | 44f2543876b95428a68dc84820f931571244e49d | [
"BSD-3-Clause"
] | 3 | 2019-10-29T01:13:09.000Z | 2022-01-14T21:53:06.000Z | #!/usr/bin/env python
import rospy
import tf
from nav_msgs.msg import Odometry
import numpy as np
import sys
import math
if __name__ == "__main__":
rospy.init_node("odom_transform")
# Parse input args
args = rospy.myargv(argv=sys.argv)
if not parse_args(args):
rospy.logfatal("Invalid command... | 42.098901 | 160 | 0.681545 |
5bcff95678159476daf98ca938631d4f52d0298a | 380 | py | Python | Aula07/chef007.py | AdryanPablo/Python | d469d394b41f44dbd753bf9a7f7eebaa81096562 | [
"MIT"
] | null | null | null | Aula07/chef007.py | AdryanPablo/Python | d469d394b41f44dbd753bf9a7f7eebaa81096562 | [
"MIT"
] | null | null | null | Aula07/chef007.py | AdryanPablo/Python | d469d394b41f44dbd753bf9a7f7eebaa81096562 | [
"MIT"
] | null | null | null | # Desenvolva um programa que leia as duas notas de um aluno, calcule e mostre a sua mdia.
nome = str(input("Digite o nome do(a) aluno(a): "))
not1 = float(input("Digite a 1 nota de {}: ".format(nome)))
not2 = float(input("Digite a 2 nota de {}: ".format(nome)))
media = (not1 + not2) / 2
print("J que {} tirou {} e {}... | 38 | 90 | 0.642105 |
5bd0173040b2f2d05f3a1e8d1fe723aa238abeb6 | 421 | py | Python | Windows10_structed_data/get_report_data.py | naporium/tools_for_windows-main | 4be11a033b5b5ee39c1d4af2e2013e7c5b144772 | [
"MIT"
] | null | null | null | Windows10_structed_data/get_report_data.py | naporium/tools_for_windows-main | 4be11a033b5b5ee39c1d4af2e2013e7c5b144772 | [
"MIT"
] | null | null | null | Windows10_structed_data/get_report_data.py | naporium/tools_for_windows-main | 4be11a033b5b5ee39c1d4af2e2013e7c5b144772 | [
"MIT"
] | null | null | null | from json import load, dumps
REPORT_FILE = "report.txt"
with open(REPORT_FILE, "r") as file:
data = load(file)
# EXAMPLE ON ACESSING THE JSON DATA REPORT
print(dumps(data["INTERFACES_INFO"]["Ethernet adapter Ethernet"], indent=4))
print(dumps(data["INTERFACES_INFO"]["Ethernet adapter Ethernet"]["IPv4 ... | 38.272727 | 87 | 0.72209 |
5bd0361cf3603ec414df04eeb5b3c2d7c604b9a7 | 188 | py | Python | fastapi/signals/__init__.py | zhangnian/fastapi | 65eb49ec58041fb1212c3e867d19a405d7e40662 | [
"MIT"
] | 33 | 2017-08-14T09:39:12.000Z | 2021-09-11T14:54:28.000Z | fastapi/signals/__init__.py | zhangnian/fastapi | 65eb49ec58041fb1212c3e867d19a405d7e40662 | [
"MIT"
] | null | null | null | fastapi/signals/__init__.py | zhangnian/fastapi | 65eb49ec58041fb1212c3e867d19a405d7e40662 | [
"MIT"
] | 9 | 2017-12-05T11:54:01.000Z | 2020-11-10T08:03:35.000Z | from blinker import signal
from fastapi.signals.signal_handler import *
sig_user = signal('userinfo_modifiy')
| 17.090909 | 44 | 0.803191 |
5bd092c1901157574c2e9727d580986c03ac6463 | 2,000 | py | Python | kevlar/augment.py | johnsmith2077/kevlar | 3ed06dae62479e89ccd200391728c416d4df8052 | [
"MIT"
] | 24 | 2016-12-07T07:59:09.000Z | 2019-03-11T02:05:36.000Z | kevlar/augment.py | johnsmith2077/kevlar | 3ed06dae62479e89ccd200391728c416d4df8052 | [
"MIT"
] | 325 | 2016-12-07T07:37:17.000Z | 2019-03-12T19:01:40.000Z | kevlar/augment.py | standage/kevlar | 622d1869266550422e91a60119ddc7261eea434a | [
"MIT"
] | 8 | 2017-08-17T01:37:39.000Z | 2019-03-01T16:17:44.000Z | #!/usr/bin/env python
#
# -----------------------------------------------------------------------------
# Copyright (c) 2018 The Regents of the University of California
#
# This file is part of kevlar (http://github.com/dib-lab/kevlar) and is
# licensed under the MIT license: see LICENSE.
# ----------------------------... | 37.037037 | 79 | 0.592 |
5bd0af57ddc333eef3201ac5b0c5716349dabdee | 861 | py | Python | ML.4/animate.py | jfnavarro/old_python_courses | fb500e8eeae6c5d10bf77e1ff52725627527222a | [
"MIT"
] | 1 | 2018-02-20T03:26:35.000Z | 2018-02-20T03:26:35.000Z | ML.4/animate.py | jfnavarro/BioInfo_ML_courses | fb500e8eeae6c5d10bf77e1ff52725627527222a | [
"MIT"
] | null | null | null | ML.4/animate.py | jfnavarro/BioInfo_ML_courses | fb500e8eeae6c5d10bf77e1ff52725627527222a | [
"MIT"
] | null | null | null | '''
Created on 5.10.2010.
@author: Tin Franovic
'''
from Tkinter import *
from PIL import Image, ImageTk
| 23.27027 | 66 | 0.591173 |
5bd160163205780016073f8afc2ec9c199abdcf2 | 797 | py | Python | INFOTC_4320/Anagram_BigO/Anagram_BigO.py | j0shbl0ck/Mizzou_Coding_IT | a730e46113b25daf13ad244e38613b138886206d | [
"Unlicense"
] | null | null | null | INFOTC_4320/Anagram_BigO/Anagram_BigO.py | j0shbl0ck/Mizzou_Coding_IT | a730e46113b25daf13ad244e38613b138886206d | [
"Unlicense"
] | null | null | null | INFOTC_4320/Anagram_BigO/Anagram_BigO.py | j0shbl0ck/Mizzou_Coding_IT | a730e46113b25daf13ad244e38613b138886206d | [
"Unlicense"
] | null | null | null | # October 27th, 2021
# INFOTC 4320
# Josh Block
# Challenge: Anagram Alogrithm and Big-O
# References: https://bradfieldcs.com/algos/analysis/an-anagram-detection-example/
print("===Anagram Dector===")
print("This program determines if two words are anagrams of each other\n")
first_word = input("Please enter first wo... | 23.441176 | 82 | 0.695107 |
5bd168e636c697b8dbaf73f30e8402fe9d300c82 | 1,035 | py | Python | mriutils/utils/tonii.py | kuangmeng/MRIUtils | 3a79e8104071deb0dc17c402ac878f94161d9b4a | [
"MIT"
] | null | null | null | mriutils/utils/tonii.py | kuangmeng/MRIUtils | 3a79e8104071deb0dc17c402ac878f94161d9b4a | [
"MIT"
] | null | null | null | mriutils/utils/tonii.py | kuangmeng/MRIUtils | 3a79e8104071deb0dc17c402ac878f94161d9b4a | [
"MIT"
] | null | null | null | #!/usr/bin/env python
import skimage.io as skio
from skimage.transform import resize
import nibabel as nib
| 28.75 | 90 | 0.607729 |
5bd366b30abb8fedacf7c21ecc291b16250a6276 | 9,194 | py | Python | shc/utils.py | TransparentHealth/healthcards_python_sample_scripts | 85ffa973c21912399a6abc8b14faf99b5ee86f4d | [
"Apache-2.0"
] | 1 | 2022-03-08T22:29:23.000Z | 2022-03-08T22:29:23.000Z | shc/utils.py | TransparentHealth/healthcards_python_sample_scripts | 85ffa973c21912399a6abc8b14faf99b5ee86f4d | [
"Apache-2.0"
] | null | null | null | shc/utils.py | TransparentHealth/healthcards_python_sample_scripts | 85ffa973c21912399a6abc8b14faf99b5ee86f4d | [
"Apache-2.0"
] | 1 | 2021-10-20T13:28:08.000Z | 2021-10-20T13:28:08.000Z | #!/usr/bin/env python
import zlib
import requests
from jose import jwk as jose_jwk, jws
import json
import qrcode
sample_payload = "eyJ6aXAiOiJERUYiLCJhbGciOiJFUzI1NiIsImtpZCI6IjNLZmRnLVh3UC03Z1h5eXd0VWZVQUR3QnVtRE9QS01ReC1pRUxMMTFXOXMifQ.3VRNT9swGP4rkbmmTZxQSnIaZZPWCRBSy3aYOLiOSbw5duSPlq7qf99rp4FOg952WW62Xz_v8-E3O8SN... | 52.83908 | 2,103 | 0.758647 |
5bd463296b1effec64cbf25d42163fc58e8ce63e | 259 | py | Python | setup.py | kevinmooreiii/moldriver | 65a0a9cef8971737076f81720a61aa5b607333d2 | [
"Apache-2.0"
] | null | null | null | setup.py | kevinmooreiii/moldriver | 65a0a9cef8971737076f81720a61aa5b607333d2 | [
"Apache-2.0"
] | null | null | null | setup.py | kevinmooreiii/moldriver | 65a0a9cef8971737076f81720a61aa5b607333d2 | [
"Apache-2.0"
] | null | null | null | """ Install moldriver
"""
from distutils.core import setup
setup(name="moldr",
version="0.1.1",
packages=["moldr",
"autofile",
"autofile.info",
"autofile.file",
"autofile.system"])
| 19.923077 | 35 | 0.490347 |
5bd629978047909abad4e7ab77bfc34163f7b633 | 3,388 | py | Python | satchmo/apps/payment/modules/dummy/processor.py | predatell/satchmo | 6ced1f845aadec240c7e433c3cbf4caca96e0d92 | [
"BSD-3-Clause"
] | 1 | 2019-10-08T16:19:59.000Z | 2019-10-08T16:19:59.000Z | satchmo/apps/payment/modules/dummy/processor.py | predatell/satchmo | 6ced1f845aadec240c7e433c3cbf4caca96e0d92 | [
"BSD-3-Clause"
] | null | null | null | satchmo/apps/payment/modules/dummy/processor.py | predatell/satchmo | 6ced1f845aadec240c7e433c3cbf4caca96e0d92 | [
"BSD-3-Clause"
] | null | null | null | """
This is a stub and used as the default processor.
It doesn't do anything but it can be used to build out another
interface.
See the authorizenet module for the reference implementation
"""
from django.utils.translation import ugettext_lazy as _
from payment.modules.base import BasePaymentProcessor, ProcessorResult... | 39.395349 | 114 | 0.635478 |
5bd77e4c61c0d5d7f63689e483c2e6eeec0b5053 | 310 | py | Python | kitsune/community/urls.py | yfdyh000/kitsune | 9a50b03b715bbabe0543b45d2146875995a6d1e4 | [
"BSD-3-Clause"
] | null | null | null | kitsune/community/urls.py | yfdyh000/kitsune | 9a50b03b715bbabe0543b45d2146875995a6d1e4 | [
"BSD-3-Clause"
] | null | null | null | kitsune/community/urls.py | yfdyh000/kitsune | 9a50b03b715bbabe0543b45d2146875995a6d1e4 | [
"BSD-3-Clause"
] | null | null | null | from django.conf.urls import patterns, url
urlpatterns = patterns(
'kitsune.community.views',
url(r'^/contributor_results$', 'contributor_results', name='community.contributor_results'),
url(r'^/view_all$', 'view_all', name='community.view_all'),
url(r'^$', 'home', name='community.home'),
)
| 31 | 96 | 0.693548 |
5bd81eabed49d75dd2407602a6036e1582495777 | 4,650 | py | Python | sw/groundstation/tools/imu-raw-logger.py | nzjrs/wasp | b763309af59e7784811baa6dd80e17dba1b27d81 | [
"MIT"
] | 2 | 2021-07-11T13:47:17.000Z | 2021-11-08T11:21:51.000Z | sw/groundstation/tools/imu-raw-logger.py | nzjrs/wasp | b763309af59e7784811baa6dd80e17dba1b27d81 | [
"MIT"
] | null | null | null | sw/groundstation/tools/imu-raw-logger.py | nzjrs/wasp | b763309af59e7784811baa6dd80e17dba1b27d81 | [
"MIT"
] | 2 | 2015-10-03T06:24:07.000Z | 2016-01-21T11:36:20.000Z | #!/usr/bin/env python
# vim: ai ts=4 sts=4 et sw=4
import time
import os.path
import optparse
import gobject
import wasp
import wasp.transport as transport
import wasp.communication as communication
import wasp.messages as messages
import calibration
import calibration.utils
FREQ = 25.0 #Hz
STEP_DELAY = 5 ... | 34.191176 | 93 | 0.585161 |
5bda02a714241bd79791ee140a659d57825d9aa5 | 6,434 | py | Python | rainbowtables/directories.py | JustBennnn/rainbowtables | 5ec800ae498ee8d1e1e4c0d016ca36f5a207462c | [
"MIT"
] | 3 | 2021-09-08T13:17:43.000Z | 2021-09-14T05:45:56.000Z | rainbowtables/directories.py | JustBennnn/rainbowtables | 5ec800ae498ee8d1e1e4c0d016ca36f5a207462c | [
"MIT"
] | null | null | null | rainbowtables/directories.py | JustBennnn/rainbowtables | 5ec800ae498ee8d1e1e4c0d016ca36f5a207462c | [
"MIT"
] | 1 | 2021-09-13T11:45:22.000Z | 2021-09-13T11:45:22.000Z | """Manage the directories
This includes options to store the hashtable in a file or keep
it temporarily, where it will be returned from the function...
"""
import json
import os
import platform
from typing import Tuple, Union
from .errors import FilenameError, PathError, SystemNotSupported
__all__ = [
"set_dire... | 35.351648 | 131 | 0.619988 |
5be00ec4042c62d09e71fd43458751614ef646dd | 1,182 | py | Python | emendation_box/serializers.py | fga-eps-mds/2017.2-SiGI-Op_API | 4532019c15414fd17e06bb3aa78501886e00da1d | [
"BSD-3-Clause"
] | 6 | 2017-08-24T13:18:21.000Z | 2017-10-03T18:06:13.000Z | emendation_box/serializers.py | fga-gpp-mds/2017.2-Grupo9 | 4532019c15414fd17e06bb3aa78501886e00da1d | [
"BSD-3-Clause"
] | 173 | 2017-08-31T15:29:01.000Z | 2017-12-14T13:40:13.000Z | emendation_box/serializers.py | fga-gpp-mds/2017.2-SiGI-Op_API | 4532019c15414fd17e06bb3aa78501886e00da1d | [
"BSD-3-Clause"
] | 2 | 2018-11-19T10:33:00.000Z | 2019-06-19T22:35:43.000Z | from rest_framework import serializers
from .models import EmendationBoxStructure, EmendationBoxType, EmendationBox
| 28.829268 | 79 | 0.555838 |
5be0937af64c23aae060b769c001fa1fcce73356 | 14,989 | py | Python | autohandshake/src/HandshakeBrowser.py | cedwards036/autohandshake | 7f57b242a612b0f0aad634bc111a3db3050c6597 | [
"MIT"
] | 3 | 2018-05-18T16:15:32.000Z | 2019-08-01T23:06:44.000Z | autohandshake/src/HandshakeBrowser.py | cedwards036/autohandshake | 7f57b242a612b0f0aad634bc111a3db3050c6597 | [
"MIT"
] | null | null | null | autohandshake/src/HandshakeBrowser.py | cedwards036/autohandshake | 7f57b242a612b0f0aad634bc111a3db3050c6597 | [
"MIT"
] | null | null | null | from selenium import webdriver
from selenium.webdriver.support.ui import WebDriverWait
from selenium.webdriver.support import expected_conditions as EC
from selenium.webdriver.common.by import By
from selenium.common.exceptions import NoSuchElementException, TimeoutException
from enum import Enum
import re
import os
f... | 39.341207 | 123 | 0.635333 |
5be2e58101a5336a454fb0c25ffdd250d09250a0 | 2,058 | py | Python | example/pums_downloader.py | opendp/opendp-pytorch | 5c0fe1dd7bac0fe7554d79f3f56afb4d2e097a12 | [
"MIT"
] | null | null | null | example/pums_downloader.py | opendp/opendp-pytorch | 5c0fe1dd7bac0fe7554d79f3f56afb4d2e097a12 | [
"MIT"
] | null | null | null | example/pums_downloader.py | opendp/opendp-pytorch | 5c0fe1dd7bac0fe7554d79f3f56afb4d2e097a12 | [
"MIT"
] | null | null | null | import zipfile
import requests
import os
import tempfile
# this script downloads additional pums data files
# legend
# https://www2.census.gov/programs-surveys/acs/tech_docs/pums/data_dict/PUMS_Data_Dictionary_2019.txt
def get_pums_data_path(year, record_type, state, **_kwargs):
"""returns path to the first ... | 34.881356 | 122 | 0.689504 |
5be37c14422abd9ec3c208e9edccf25f09246d47 | 5,534 | py | Python | devtracker/test_devtracker.py | satvikel4/devtracker | ea892d6d48aa5d4627b429469b59ae3f0ce7f10f | [
"MIT"
] | 1 | 2019-03-29T00:53:01.000Z | 2019-03-29T00:53:01.000Z | devtracker/test_devtracker.py | satvikel4/devtracker | ea892d6d48aa5d4627b429469b59ae3f0ce7f10f | [
"MIT"
] | null | null | null | devtracker/test_devtracker.py | satvikel4/devtracker | ea892d6d48aa5d4627b429469b59ae3f0ce7f10f | [
"MIT"
] | 1 | 2021-09-14T05:00:20.000Z | 2021-09-14T05:00:20.000Z | import os
import csv
import time
from datetime import datetime
from datetime import timedelta
from pathlib import Path
from .dir_and_path_helpers import get_working_dir, mk_file_path, check_file
from .time_and_date_helpers import get_date, get_sec, get_time, total_time
from .time import current_status, start_time, end... | 34.805031 | 178 | 0.60318 |
5be5e0787b558661beaa8ad1a91e017e093c0a89 | 12,511 | py | Python | ablinfer/model/normalize.py | Auditory-Biophysics-Lab/ablinfer | 94e64eacd8c8b30088637d7dc5fd3f25b70adc0e | [
"BSD-3-Clause"
] | null | null | null | ablinfer/model/normalize.py | Auditory-Biophysics-Lab/ablinfer | 94e64eacd8c8b30088637d7dc5fd3f25b70adc0e | [
"BSD-3-Clause"
] | null | null | null | ablinfer/model/normalize.py | Auditory-Biophysics-Lab/ablinfer | 94e64eacd8c8b30088637d7dc5fd3f25b70adc0e | [
"BSD-3-Clause"
] | null | null | null | #!/usr/bin/env python3
from collections.abc import Collection as ABCCollection
from collections.abc import Mapping as ABCMapping
from collections import OrderedDict as OD
import json
import logging
from numbers import Number
from typing import Mapping, Optional, Collection, Union, IO, Tuple, Dict, Set, Any
from .typin... | 40.62013 | 194 | 0.539285 |
5be7e3e5fb635d52ffc510b5892ea90ed38f68fa | 151 | py | Python | configs/example/spectre_benchmark.py | Yujie-Cui/cleanupspec | 5bdfc551e27e673b170c15b3328559736f3d7848 | [
"BSD-3-Clause"
] | 9 | 2019-12-23T06:06:22.000Z | 2021-05-03T21:33:43.000Z | configs/example/spectre_benchmark.py | limengming/cleanupspec | 5426a0e2e3ce5c00edcb9734617dacf26ab18ef5 | [
"BSD-3-Clause"
] | 1 | 2020-11-12T06:23:36.000Z | 2020-11-12T06:23:36.000Z | configs/example/spectre_benchmark.py | limengming/cleanupspec | 5426a0e2e3ce5c00edcb9734617dacf26ab18ef5 | [
"BSD-3-Clause"
] | 9 | 2020-08-20T10:08:13.000Z | 2022-03-20T13:00:38.000Z | import m5
from m5.objects import *
#Spectre
spectre = Process() # Added by Gururaj
spectre.executable = 'spectre'
spectre.cmd = [spectre.executable]
| 16.777778 | 38 | 0.748344 |
5be8b8cbba14983952b8b1c2bcd0468e376f1933 | 9,038 | py | Python | src/networks/wav2vec2.py | nikvaessen/w2v2-speaker-few-samples | 98139c2234a63532ebc8dffeacb284f3d7403ca2 | [
"MIT"
] | null | null | null | src/networks/wav2vec2.py | nikvaessen/w2v2-speaker-few-samples | 98139c2234a63532ebc8dffeacb284f3d7403ca2 | [
"MIT"
] | null | null | null | src/networks/wav2vec2.py | nikvaessen/w2v2-speaker-few-samples | 98139c2234a63532ebc8dffeacb284f3d7403ca2 | [
"MIT"
] | null | null | null | ################################################################################
#
# Provide embeddings from raw audio with the wav2vec2 model from huggingface.
#
# Author(s): Nik Vaessen
################################################################################
from typing import Optional, List
import torch as... | 36.297189 | 88 | 0.640518 |
5be9d14c46f5ec0e81e233191be816361e7093d2 | 9,384 | py | Python | ai-car-simulation-master/newcar.py | Jeevananthamcse/Palanisamy | 9b62f7dbcb9f7a747e5ef5b722e07111a6648b3c | [
"Unlicense"
] | 2 | 2021-08-30T08:04:04.000Z | 2021-09-27T06:01:05.000Z | ai-car-simulation-master/newcar.py | Jeevananthamcse/Palanisamy | 9b62f7dbcb9f7a747e5ef5b722e07111a6648b3c | [
"Unlicense"
] | 1 | 2022-02-08T00:01:16.000Z | 2022-02-08T00:01:16.000Z | ai-car-simulation-master/newcar.py | Jeevananthamcse/Palanisamy | 9b62f7dbcb9f7a747e5ef5b722e07111a6648b3c | [
"Unlicense"
] | 1 | 2021-09-13T07:03:11.000Z | 2021-09-13T07:03:11.000Z | # This Code is Heavily Inspired By The YouTuber: Cheesy AI
# Code Changed, Optimized And Commented By: NeuralNine (Florian Dedov)
import math
import random
import sys
import os
import neat
import pygame
# Constants
# WIDTH = 1600
# HEIGHT = 880
WIDTH = 1920
HEIGHT = 1080
CAR_SIZE_X = 60
CAR_SIZE_Y = 60
BORDER... | 35.816794 | 175 | 0.59676 |
5bed867c2db74e773ad7534adb7486f3bfecb2cd | 707 | py | Python | calculator/calculator.py | swilltec/calculator | 3c5e076a996e53117ba19ef438369cfe8753a3cc | [
"MIT"
] | null | null | null | calculator/calculator.py | swilltec/calculator | 3c5e076a996e53117ba19ef438369cfe8753a3cc | [
"MIT"
] | null | null | null | calculator/calculator.py | swilltec/calculator | 3c5e076a996e53117ba19ef438369cfe8753a3cc | [
"MIT"
] | null | null | null | """Main module."""
from functools import reduce
| 18.128205 | 49 | 0.478076 |
5bf082466ab074d7189898704732914978f112bb | 1,896 | py | Python | utils.py | nildip/DeepLearn_NUMBERS | 57171abc5d922df3aae24b8b86bc4674371608e9 | [
"MIT"
] | 1 | 2018-08-23T06:31:31.000Z | 2018-08-23T06:31:31.000Z | utils.py | nildip/DeepLearn_NUMBERS | 57171abc5d922df3aae24b8b86bc4674371608e9 | [
"MIT"
] | null | null | null | utils.py | nildip/DeepLearn_NUMBERS | 57171abc5d922df3aae24b8b86bc4674371608e9 | [
"MIT"
] | 1 | 2020-05-25T13:50:14.000Z | 2020-05-25T13:50:14.000Z | import matplotlib.pyplot as plt
import sys
import itertools
import numpy as np
from sklearn.metrics import confusion_matrix
from keras import backend as K
import keras
# function to plot the confusion matrix
# function to visualize 2D CNN filters | 44.093023 | 116 | 0.664557 |
5bf1c0749ddf0180154efbdebf997bae15495e6c | 6,159 | py | Python | Curso de Python USP Part1/Exercicios/ProgramaCompleto_similaridade_COH-PIAH.py | JorgeTranin/Cursos_Coursera | 37d26b5f92d9324225f6701d0eb0fd466cff9d86 | [
"MIT"
] | null | null | null | Curso de Python USP Part1/Exercicios/ProgramaCompleto_similaridade_COH-PIAH.py | JorgeTranin/Cursos_Coursera | 37d26b5f92d9324225f6701d0eb0fd466cff9d86 | [
"MIT"
] | null | null | null | Curso de Python USP Part1/Exercicios/ProgramaCompleto_similaridade_COH-PIAH.py | JorgeTranin/Cursos_Coursera | 37d26b5f92d9324225f6701d0eb0fd466cff9d86 | [
"MIT"
] | null | null | null | import re
def le_assinatura():
"""[A funcao le os valores dos tracos linguisticos do modelo e devolve uma assinatura a ser comparada com os textos fornecidos]
Returns:
[list] -- [description]
"""
print("Bem-vindo ao detector automtico de COH-PIAH.")
print("Informe a assinatura tpica de u... | 26.662338 | 186 | 0.629485 |
5bf3392c6a3a312fe91823c02d2df51fa662cee1 | 1,074 | py | Python | challanges/shape-challenge/find_arrows/webcam_gui.py | fatcloud/PyCV-Climbing-Wall | b9a20d1cf65fb89debbad15d4451efbf77cddb5d | [
"MIT"
] | 55 | 2015-06-20T20:15:33.000Z | 2022-02-10T02:45:14.000Z | challanges/shape-challenge/find_arrows/webcam_gui.py | fatcloud/PyCV-Climbing-Wall | b9a20d1cf65fb89debbad15d4451efbf77cddb5d | [
"MIT"
] | 8 | 2015-06-20T18:46:52.000Z | 2015-10-31T11:08:04.000Z | challanges/shape-challenge/find_arrows/webcam_gui.py | fatcloud/PyCV-Climbing-Wall | b9a20d1cf65fb89debbad15d4451efbf77cddb5d | [
"MIT"
] | 73 | 2015-06-20T15:59:27.000Z | 2020-03-15T22:43:36.000Z | import cv2
if __name__ == "__main__":
cv2.VideoCapture.set(CV_CAP_PROP_FPS, 10)
webcam_gui(edge_filter) | 21.48 | 59 | 0.615456 |
5bf36b81a5557f4a83bb24b4b66ced5aca960191 | 8,132 | py | Python | PDBtoDots.py | RMeli/sensaas | f9a23c65cf6b70d4a6ccf482b233bf17b86c7b3b | [
"BSD-3-Clause"
] | 12 | 2021-06-18T07:58:00.000Z | 2022-01-19T04:57:46.000Z | PDBtoDots.py | RMeli/sensaas | f9a23c65cf6b70d4a6ccf482b233bf17b86c7b3b | [
"BSD-3-Clause"
] | 11 | 2021-06-18T14:38:09.000Z | 2022-01-21T11:53:16.000Z | PDBtoDots.py | RMeli/sensaas | f9a23c65cf6b70d4a6ccf482b233bf17b86c7b3b | [
"BSD-3-Clause"
] | 3 | 2021-06-18T14:28:01.000Z | 2022-01-19T01:16:43.000Z | #!/usr/bin/python3.7
#Author: Lucas GRANDMOUGIN
import sys
import os
import math
import re
import numpy as np
#print('usage: <>.py <file.pdb> \nexecute nsc to generate point-based surface and create tables and if verbose==1 files dotslabel1.xyzrgb dotslabel2.xyzrgb dotslabel3.xyzrgb and dotslabel4.xyzrgb\n')
| 34.457627 | 288 | 0.564191 |
5bf397bbc01a1e8b00e15b192628fbb2035b23a8 | 4,465 | py | Python | test/test_utils.py | duncanmmacleod/cwinpy | fe4c2002f9fd129e6a4eece32b888e1f3e58327e | [
"MIT"
] | null | null | null | test/test_utils.py | duncanmmacleod/cwinpy | fe4c2002f9fd129e6a4eece32b888e1f3e58327e | [
"MIT"
] | null | null | null | test/test_utils.py | duncanmmacleod/cwinpy | fe4c2002f9fd129e6a4eece32b888e1f3e58327e | [
"MIT"
] | null | null | null | """
Test script for utils.py function.
"""
import os
import numpy as np
import pytest
from astropy import units as u
from cwinpy.utils import (
ellipticity_to_q22,
gcd_array,
get_psr_name,
initialise_ephemeris,
int_to_alpha,
is_par_file,
logfactorial,
q22_to_ellipticity,
)
from lalpuls... | 22.325 | 77 | 0.619261 |
5bf631e50626c44c993a9984bac16fda807b9125 | 596 | py | Python | fullcontact/schema/company_schema.py | michaelcredera/fullcontact-python-client | 482970b00b134409e6c9f303e7c2a7a6fc4a4685 | [
"Apache-2.0"
] | 8 | 2020-04-13T15:53:43.000Z | 2022-02-04T07:37:17.000Z | fullcontact/schema/company_schema.py | michaelcredera/fullcontact-python-client | 482970b00b134409e6c9f303e7c2a7a6fc4a4685 | [
"Apache-2.0"
] | 9 | 2020-06-04T15:30:50.000Z | 2022-02-04T07:36:39.000Z | fullcontact/schema/company_schema.py | michaelcredera/fullcontact-python-client | 482970b00b134409e6c9f303e7c2a7a6fc4a4685 | [
"Apache-2.0"
] | 7 | 2020-09-18T16:02:43.000Z | 2022-02-17T09:22:54.000Z | # -*- coding: utf-8 -*-
"""
This module serves the class for validating
FullContact Company Enrich and Search API requests.
"""
from .base.schema_base import BaseRequestSchema
| 18.625 | 52 | 0.706376 |
5bf659522a05710484e11d3e5746211900971315 | 815 | py | Python | tests/test_pure_checker.py | best-doctor/mr_proper | 994b109da759a5b466c3ee53b0d92789395af5e5 | [
"MIT"
] | 10 | 2019-11-27T17:19:53.000Z | 2022-03-03T18:21:57.000Z | tests/test_pure_checker.py | best-doctor/mr_proper | 994b109da759a5b466c3ee53b0d92789395af5e5 | [
"MIT"
] | 14 | 2019-10-28T15:22:56.000Z | 2021-09-26T13:15:25.000Z | tests/test_pure_checker.py | best-doctor/mr_proper | 994b109da759a5b466c3ee53b0d92789395af5e5 | [
"MIT"
] | 5 | 2020-06-01T14:17:33.000Z | 2021-02-13T14:03:13.000Z | import ast
import os
from mr_proper.public_api import is_function_pure
from mr_proper.utils.ast import get_ast_tree
| 23.285714 | 82 | 0.69816 |
5bf865e52df2196a3325cf1ad8afbcae366d75d2 | 18,324 | py | Python | app/forms/validators.py | pricem14pc/eq-questionnaire-runner | 54cc2947ba181a2673ea1fb7cf6b4acdd609e06b | [
"MIT"
] | null | null | null | app/forms/validators.py | pricem14pc/eq-questionnaire-runner | 54cc2947ba181a2673ea1fb7cf6b4acdd609e06b | [
"MIT"
] | null | null | null | app/forms/validators.py | pricem14pc/eq-questionnaire-runner | 54cc2947ba181a2673ea1fb7cf6b4acdd609e06b | [
"MIT"
] | null | null | null | from __future__ import annotations
import re
from datetime import datetime, timezone
from decimal import Decimal, InvalidOperation
from typing import TYPE_CHECKING, Iterable, List, Mapping, Optional, Sequence, Union
import flask_babel
from babel import numbers
from dateutil.relativedelta import relativedelta
from fla... | 35.789063 | 103 | 0.625791 |
5bf8a875ecf531c15a7f8d15eea40ef0738f6a6d | 709 | py | Python | reveries/common/publish/publish_subset.py | davidlatwe/reveries-config | 4a282dd64a32a9b87bd1a070759b6425ff785d68 | [
"MIT"
] | 3 | 2020-04-01T10:51:17.000Z | 2021-08-05T18:35:23.000Z | reveries/common/publish/publish_subset.py | davidlatwe/reveries-config | 4a282dd64a32a9b87bd1a070759b6425ff785d68 | [
"MIT"
] | null | null | null | reveries/common/publish/publish_subset.py | davidlatwe/reveries-config | 4a282dd64a32a9b87bd1a070759b6425ff785d68 | [
"MIT"
] | 1 | 2020-07-05T12:06:30.000Z | 2020-07-05T12:06:30.000Z | from avalon import io
def publish(asset_id, subset_name, families):
"""
Publish subset.
:param asset_id: (object)
:param subset_name: (str)
:param families: (list)
:return:
"""
subset_context = {
'name': subset_name,
'parent': asset_id,
'type': 'subset',
... | 22.15625 | 61 | 0.575458 |
5bfb60401fb3180662fe2cf6854036c39c7bffb8 | 3,352 | py | Python | tests/test_neofoodclub.py | diceroll123/neofoodclub.py | ac82ee32bb6ed4f98ebce222273910bc8acfcd95 | [
"MIT"
] | 2 | 2021-04-21T06:34:50.000Z | 2021-04-21T06:38:09.000Z | tests/test_neofoodclub.py | diceroll123/neofoodclub.py | ac82ee32bb6ed4f98ebce222273910bc8acfcd95 | [
"MIT"
] | 2 | 2021-12-14T00:19:42.000Z | 2022-02-19T02:15:52.000Z | tests/test_neofoodclub.py | diceroll123/neofoodclub.py | ac82ee32bb6ed4f98ebce222273910bc8acfcd95 | [
"MIT"
] | 1 | 2021-05-05T02:25:20.000Z | 2021-05-05T02:25:20.000Z | import unittest
from typing import Tuple
from neofoodclub import NeoFoodClub # type: ignore
from neofoodclub.types import RoundData # type: ignore
# i picked the smallest round I could quickly find
test_round_data: RoundData = {
"currentOdds": [
[1, 2, 13, 3, 5],
[1, 4, 2, 4, 6],
[1, 3, ... | 27.47541 | 120 | 0.498807 |
5bfcf311b8aa728cf923ee0a028bdc0a9bd5b881 | 384 | py | Python | backend/api/migrations/0023_auto_20190823_1611.py | yamamz/BRMI_LOANAPP | e6f79789855a633ee78a168452bca508622bcca8 | [
"MIT"
] | null | null | null | backend/api/migrations/0023_auto_20190823_1611.py | yamamz/BRMI_LOANAPP | e6f79789855a633ee78a168452bca508622bcca8 | [
"MIT"
] | 6 | 2020-06-05T22:43:22.000Z | 2022-02-10T12:32:19.000Z | backend/api/migrations/0023_auto_20190823_1611.py | yamamz/BRMI_LOANAPP | e6f79789855a633ee78a168452bca508622bcca8 | [
"MIT"
] | null | null | null | # Generated by Django 2.1.1 on 2019-08-23 08:11
from django.db import migrations, models
| 20.210526 | 49 | 0.59375 |
5bfdae4e26ca7424c71438bb03e0a6c9225cfd72 | 122 | py | Python | api/urls.py | trinhcaokhoa/Mebook_hub | bb889d990e7b1bc6fd84b2b34733b00151a52f0d | [
"MIT"
] | 1 | 2022-03-30T20:00:33.000Z | 2022-03-30T20:00:33.000Z | api/urls.py | trinhcaokhoa/Mebook_hub | bb889d990e7b1bc6fd84b2b34733b00151a52f0d | [
"MIT"
] | null | null | null | api/urls.py | trinhcaokhoa/Mebook_hub | bb889d990e7b1bc6fd84b2b34733b00151a52f0d | [
"MIT"
] | null | null | null | from django.urls import path
from .views import BookView
urlpatterns = [
path('book_api', BookView.as_view()),
] | 20.333333 | 42 | 0.696721 |
5bfeec944742d552c4975938f3ab15392025675a | 16,566 | py | Python | pythonnest/views.py | d9pouces/PythonNest | 53ad0c53f5c1b411a2af630099869e55a3549d22 | [
"CECILL-B"
] | 1 | 2017-05-01T20:00:14.000Z | 2017-05-01T20:00:14.000Z | pythonnest/views.py | d9pouces/PythonNest | 53ad0c53f5c1b411a2af630099869e55a3549d22 | [
"CECILL-B"
] | null | null | null | pythonnest/views.py | d9pouces/PythonNest | 53ad0c53f5c1b411a2af630099869e55a3549d22 | [
"CECILL-B"
] | 2 | 2015-07-30T18:14:50.000Z | 2019-11-02T10:06:59.000Z | """Here are defined Python functions of views.
Views are binded to URLs in :mod:`.urls`.
"""
import datetime
import hashlib
import json
import os
from distutils.version import LooseVersion
from json.encoder import JSONEncoder
from urllib.parse import quote
from django import forms
from django.conf import settings
from... | 43.825397 | 119 | 0.671315 |
5bff77751373faff40182bd6235ab1b9ab10c668 | 158 | py | Python | dirbot/items.py | lihongqiang/crawl-image | d0132156143942628e041ccf2b8bff07b1873a60 | [
"Apache-2.0"
] | 1 | 2017-03-24T09:46:26.000Z | 2017-03-24T09:46:26.000Z | dirbot/items.py | lihongqiang/crawl-image | d0132156143942628e041ccf2b8bff07b1873a60 | [
"Apache-2.0"
] | 1 | 2017-03-24T08:51:17.000Z | 2017-03-24T08:51:17.000Z | dirbot/items.py | lihongqiang/crawl-image | d0132156143942628e041ccf2b8bff07b1873a60 | [
"Apache-2.0"
] | null | null | null | from scrapy.item import Item, Field
| 15.8 | 35 | 0.651899 |
7500cd4e14f32132aab50eca5049410d1341ad5f | 1,976 | py | Python | olea/core/blueprints/auth/views.py | Pix-00/olea | 98bee1fd8866a3929f685a139255afb7b6813f31 | [
"Apache-2.0"
] | 2 | 2020-06-18T03:25:52.000Z | 2020-06-18T07:33:45.000Z | olea/core/blueprints/auth/views.py | Pix-00/olea | 98bee1fd8866a3929f685a139255afb7b6813f31 | [
"Apache-2.0"
] | 15 | 2021-01-28T07:11:04.000Z | 2021-05-24T07:11:37.000Z | olea/core/blueprints/auth/views.py | Pix-00/olea | 98bee1fd8866a3929f685a139255afb7b6813f31 | [
"Apache-2.0"
] | null | null | null | from flask import g
from flask_json import json_response
from core.auth import allow_anonymous
from . import bp
from .forms import ForgetPwd, Login, Refresh, ResetPwd, SetPwd, VEmail
from .services import LemonMgr, PinkMgr
| 26.702703 | 93 | 0.712551 |
7500edb1cdfbe9210d83cd5db498ecdcdcb19eb8 | 1,073 | py | Python | quantitative_finance/L3/python/setup.py | InAccel/Vitis_Libraries | 876e262201069f46a78050e23a13db20dd73ad8b | [
"Apache-2.0"
] | null | null | null | quantitative_finance/L3/python/setup.py | InAccel/Vitis_Libraries | 876e262201069f46a78050e23a13db20dd73ad8b | [
"Apache-2.0"
] | null | null | null | quantitative_finance/L3/python/setup.py | InAccel/Vitis_Libraries | 876e262201069f46a78050e23a13db20dd73ad8b | [
"Apache-2.0"
] | null | null | null | """Setup inaccel-vitis package."""
from setuptools import find_namespace_packages, setup
setup(
name = 'inaccel-vitis',
packages = find_namespace_packages(include = ['inaccel.*']),
namespace_packages = ['inaccel'],
version = '0.2',
license = 'Apache-2.0',
description = 'InAccel Vitis Libraries'... | 33.53125 | 64 | 0.602982 |
75014674848a2f29086728ea03ae9d8586903acf | 2,472 | py | Python | leavemanager/cli.py | kiki407/leavemanager | a9fb3533d44735518239ece5b9c922062009349c | [
"MIT"
] | null | null | null | leavemanager/cli.py | kiki407/leavemanager | a9fb3533d44735518239ece5b9c922062009349c | [
"MIT"
] | null | null | null | leavemanager/cli.py | kiki407/leavemanager | a9fb3533d44735518239ece5b9c922062009349c | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
"""Console script for leavemanager."""
import sys
import click
import leavemanager
from leavemanager.configuration import getconf, setconf, get_keys
from leavemanager.utils import slightlybeautify, clickDate
from leavemanager.leavemanager import Leave, AllLeave
from datetime import datetime
fro... | 21.310345 | 70 | 0.639159 |