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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
80fb338cada946f58190ce2610fb07b263d9785b | 5,361 | py | Python | arctic_cruise/saildrone_sentinel2_true_color_image_each_usv.py | agonmer/Saildrone | 47e618390be6ef160382bd22bb3bdf2482a8644a | [
"Apache-2.0"
] | 3 | 2019-07-08T11:55:44.000Z | 2021-10-06T15:11:18.000Z | arctic_cruise/saildrone_sentinel2_true_color_image_each_usv.py | agonmer/Saildrone | 47e618390be6ef160382bd22bb3bdf2482a8644a | [
"Apache-2.0"
] | null | null | null | arctic_cruise/saildrone_sentinel2_true_color_image_each_usv.py | agonmer/Saildrone | 47e618390be6ef160382bd22bb3bdf2482a8644a | [
"Apache-2.0"
] | 3 | 2020-06-08T06:29:22.000Z | 2020-06-16T15:43:46.000Z | #!/usr/bin/env python
# coding: utf-8
# In[3]:
import gdal
import urllib.request
import xarray as xr
import numpy as np
import time
from datetime import datetime, date, time, timedelta
from matplotlib.pyplot import figure
import matplotlib.pyplot as plt
import cartopy.crs as ccrs
import urllib
import requests
import... | 34.587097 | 355 | 0.688864 |
80fbb0bb49bd69b0d4c6b4cd19dfc72ce812fabe | 896 | py | Python | tests/snapshots/snapshots/snap_test_query_snapshots.py | adeoke/django-quarantine-workout-graphql | 7d53bb17f8ee9e5276b496d00ff92c4b458af31f | [
"MIT"
] | 1 | 2020-06-01T11:41:52.000Z | 2020-06-01T11:41:52.000Z | tests/snapshots/snapshots/snap_test_query_snapshots.py | adeoke/django-quarantine-workout-graphql | 7d53bb17f8ee9e5276b496d00ff92c4b458af31f | [
"MIT"
] | 5 | 2020-06-06T15:14:21.000Z | 2021-06-10T19:25:55.000Z | tests/snapshots/snapshots/snap_test_query_snapshots.py | adeoke/django-quarantine-workout-graphql | 7d53bb17f8ee9e5276b496d00ff92c4b458af31f | [
"MIT"
] | 1 | 2022-01-19T22:17:44.000Z | 2022-01-19T22:17:44.000Z | # -*- coding: utf-8 -*-
# snapshottest: v1 - https://goo.gl/zC4yUc
from __future__ import unicode_literals
from snapshottest import Snapshot
snapshots = Snapshot()
snapshots['TestAppQueriesSnapshot::test_equipment_against_snapshot equipment_snapshot_resp'] = {
'data': {
'levels': [
{
... | 21.853659 | 99 | 0.482143 |
80fc4ddd97fb95cbb42815223da62558449dfb21 | 3,753 | py | Python | healthtools/tests/nurse.py | DavidLemayian/HealthTools.KE-api | a0848784985adb91cb0107655186fad81febb054 | [
"MIT"
] | 9 | 2019-07-05T12:39:30.000Z | 2020-10-02T05:20:36.000Z | healthtools/tests/nurse.py | ChrisAchinga/HealthTools.API | 3aeac2e95732d876a720b6681f3f251f81025e3f | [
"MIT"
] | 49 | 2017-07-14T12:33:48.000Z | 2019-01-13T18:44:53.000Z | healthtools/tests/nurse.py | ChrisAchinga/HealthTools.API | 3aeac2e95732d876a720b6681f3f251f81025e3f | [
"MIT"
] | 9 | 2019-10-09T11:12:05.000Z | 2021-07-23T23:19:00.000Z | """
This test for nurses end point
"""
import unittest
from healthtools.manage import app
from healthtools.search.nurses import get_nurses_from_nc_registry
| 36.086538 | 95 | 0.679456 |
80fc711d831d4747a33d2fccf9dfb1487eab792f | 2,626 | py | Python | src/beehive/controls/datamaker.py | i-pan/honeycomb | 1f5f8c6c37f2a66b3109412e803994a9dc6ad10d | [
"MIT"
] | 2 | 2020-11-09T05:32:59.000Z | 2021-07-06T07:51:50.000Z | src/beehive/controls/datamaker.py | i-pan/honeycomb | 1f5f8c6c37f2a66b3109412e803994a9dc6ad10d | [
"MIT"
] | null | null | null | src/beehive/controls/datamaker.py | i-pan/honeycomb | 1f5f8c6c37f2a66b3109412e803994a9dc6ad10d | [
"MIT"
] | 1 | 2020-12-10T19:20:22.000Z | 2020-12-10T19:20:22.000Z | import logging
import numpy as np
import pandas as pd
import os, os.path as osp
from ..builder import build_dataset, build_dataloader
| 33.240506 | 68 | 0.640518 |
037dc06068dc0af9522cd2267f30af8e21e1a997 | 376 | py | Python | Previous_State_On_Repo/WordLevelDataAndProcessing/English/toggler.py | rohun-tripati/pythonRepo | 91a7d536f7be05adc15e4d5add0a8a4a08c28c62 | [
"Unlicense"
] | 1 | 2018-06-25T19:20:48.000Z | 2018-06-25T19:20:48.000Z | Previous_State_On_Repo/WordLevelDataAndProcessing/English/toggler.py | rohun-tripati/pythonRepo | 91a7d536f7be05adc15e4d5add0a8a4a08c28c62 | [
"Unlicense"
] | null | null | null | Previous_State_On_Repo/WordLevelDataAndProcessing/English/toggler.py | rohun-tripati/pythonRepo | 91a7d536f7be05adc15e4d5add0a8a4a08c28c62 | [
"Unlicense"
] | null | null | null | #!/usr/bin/env python
import os, sys, time
import Image
import pprint
import numpy as np | 16.347826 | 32 | 0.643617 |
038103ef2240aabfd8cc0c60138c47f1f616f668 | 1,578 | py | Python | libs/Python_Server.py | yingshaoxo/E_Python | 1d971e5e16681a5a641d5362e1f2f719fd828fd5 | [
"MIT"
] | 17 | 2018-08-24T14:34:20.000Z | 2021-02-24T02:40:14.000Z | libs/Python_Server.py | yingshaoxo/E_Python | 1d971e5e16681a5a641d5362e1f2f719fd828fd5 | [
"MIT"
] | 1 | 2018-06-20T19:11:19.000Z | 2018-06-21T13:47:00.000Z | libs/Python_Server.py | yingshaoxo/E_Python | 1d971e5e16681a5a641d5362e1f2f719fd828fd5 | [
"MIT"
] | 6 | 2019-03-24T15:34:50.000Z | 2021-09-30T07:42:20.000Z | import sys
import os
import subprocess
EXEC = sys.executable #local pythonw.exe
from flask import Flask, request
app = Flask(__name__)
if __name__ == '__main__':
app.run()
| 27.206897 | 119 | 0.612801 |
0382a0bf6c523947842fd109b2d9bb5a190e9498 | 7,796 | py | Python | data.py | domfarolino/memory-cache-experiments | a84bf2138478396a4f3df8023618bea6690b537a | [
"Apache-2.0"
] | null | null | null | data.py | domfarolino/memory-cache-experiments | a84bf2138478396a4f3df8023618bea6690b537a | [
"Apache-2.0"
] | null | null | null | data.py | domfarolino/memory-cache-experiments | a84bf2138478396a4f3df8023618bea6690b537a | [
"Apache-2.0"
] | null | null | null | import matplotlib.pyplot as plt
import numpy as np
import sys
import csv
###########################################
# [HISTOGRAM]: Data for HISTOGRAM event.
async_script_histogram_data = {"kLoad": 0, "kUse": 0, "kReload": 0, "kRevalidate": 0}
###########################################
# [LOAD]: Data for LOAD even... | 28.452555 | 105 | 0.68843 |
0382db25417fae1cb9a82dae1650705be38a3663 | 2,062 | py | Python | paramikosshrsa/learntossh_updated_Sam.py | ryankimball/pyna | 86b67e775925953abdc8d3ecaf786dda08d91bfa | [
"MIT"
] | null | null | null | paramikosshrsa/learntossh_updated_Sam.py | ryankimball/pyna | 86b67e775925953abdc8d3ecaf786dda08d91bfa | [
"MIT"
] | null | null | null | paramikosshrsa/learntossh_updated_Sam.py | ryankimball/pyna | 86b67e775925953abdc8d3ecaf786dda08d91bfa | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
## std library imports on top
import os
## 3rd party imports below
import paramiko
## work assigned to a junior programming asset on our team
from jrprogrammer import cmdissue
# while True:
# try:
# cmd = input("What command would you like to run? Press Ctrl C to quit\n... | 26.779221 | 125 | 0.56741 |
0384d896ee9aa5e8128b188d58ec411b0796b93b | 4,909 | py | Python | src/elchempy/indexer/EC_index.py | MyPyDavid/ECpy | b74842b64eca86d2181067fdb22bfa8fa4b2c8bb | [
"MIT"
] | 3 | 2022-01-04T09:06:15.000Z | 2022-03-05T08:24:01.000Z | src/elchempy/indexer/EC_index.py | MyPyDavid/ECpy | b74842b64eca86d2181067fdb22bfa8fa4b2c8bb | [
"MIT"
] | null | null | null | src/elchempy/indexer/EC_index.py | MyPyDavid/ECpy | b74842b64eca86d2181067fdb22bfa8fa4b2c8bb | [
"MIT"
] | 1 | 2022-03-05T12:17:49.000Z | 2022-03-05T12:17:49.000Z | """ Collects the files of index files of a folder"""
from pathlib import Path
from collections import Counter
from functools import wraps
import datetime
from typing import Tuple, List, Dict, Union, Collection
# import re
# import copy
import logging
logger = logging.getLogger(__name__)
logger.setLevel(logging.DEB... | 29.220238 | 94 | 0.65716 |
038576c4c54a502ae3fea546a14b8861fa4938ab | 1,271 | py | Python | Finance_Project/login/migrations/0001_initial.py | Sharvil24600/Personal-Finance-Manager | 18f6621422e475cdf262958125f4247d5e208d6d | [
"Apache-2.0"
] | null | null | null | Finance_Project/login/migrations/0001_initial.py | Sharvil24600/Personal-Finance-Manager | 18f6621422e475cdf262958125f4247d5e208d6d | [
"Apache-2.0"
] | null | null | null | Finance_Project/login/migrations/0001_initial.py | Sharvil24600/Personal-Finance-Manager | 18f6621422e475cdf262958125f4247d5e208d6d | [
"Apache-2.0"
] | null | null | null | # Generated by Django 3.1.7 on 2021-03-26 19:53
from django.db import migrations, models
| 31 | 84 | 0.52557 |
0385d5fe370d2f68ea94283b4a443ec6d8a7e020 | 4,102 | py | Python | inference_evaluation/inference_utils/image_utils.py | embedded-machine-learning/eml-tools | 9c9d12f9b970a42360bc6ca350f3b67ad822b141 | [
"Apache-2.0"
] | null | null | null | inference_evaluation/inference_utils/image_utils.py | embedded-machine-learning/eml-tools | 9c9d12f9b970a42360bc6ca350f3b67ad822b141 | [
"Apache-2.0"
] | null | null | null | inference_evaluation/inference_utils/image_utils.py | embedded-machine-learning/eml-tools | 9c9d12f9b970a42360bc6ca350f3b67ad822b141 | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
Image handling utilities
License_info:
# ==============================================================================
# ISC License (ISC)
# Copyright 2020 Christian Doppler Laboratory for Embedded Machine Learning
#
# Permission to use, copy, modify, and/or distribu... | 35.059829 | 115 | 0.684057 |
038616b45c12c7c5aab0395285a81ab4509f1b05 | 2,013 | py | Python | molecule/upgrade/tests/test_default.py | cmu-sei/ansible-role-yaf | 5fed4a5805e0751e37d8b05d459556b9367041e6 | [
"Apache-2.0"
] | null | null | null | molecule/upgrade/tests/test_default.py | cmu-sei/ansible-role-yaf | 5fed4a5805e0751e37d8b05d459556b9367041e6 | [
"Apache-2.0"
] | 1 | 2021-02-22T15:48:44.000Z | 2021-02-22T15:48:44.000Z | molecule/upgrade/tests/test_default.py | cmu-sei/ansible-role-yaf | 5fed4a5805e0751e37d8b05d459556b9367041e6 | [
"Apache-2.0"
] | null | null | null | # Copyright 2020 Carnegie Mellon University.
# NO WARRANTY. THIS CARNEGIE MELLON UNIVERSITY AND SOFTWARE ENGINEERING
# INSTITUTE MATERIAL IS FURNISHED ON AN "AS-IS" BASIS. CARNEGIE MELLON
# UNIVERSITY MAKES NO WARRANTIES OF ANY KIND, EITHER EXPRESSED OR IMPLIED, AS
# TO ANY MATTER INCLUDING, BUT NOT LIMITED TO, WARRANT... | 38.711538 | 87 | 0.762047 |
03895f641c1dcc508acc7bfd2ad2e29b29a5ad04 | 18,329 | py | Python | fuel_agent/fuel_agent/tests/test_nailgun.py | Axam/nsx-web | 4f60d71c05e08740cbdf19b6c9bb0c4cb1e29ad5 | [
"Apache-2.0"
] | 1 | 2021-04-06T16:13:35.000Z | 2021-04-06T16:13:35.000Z | fuel_agent/fuel_agent/tests/test_nailgun.py | Axam/nsx-web | 4f60d71c05e08740cbdf19b6c9bb0c4cb1e29ad5 | [
"Apache-2.0"
] | null | null | null | fuel_agent/fuel_agent/tests/test_nailgun.py | Axam/nsx-web | 4f60d71c05e08740cbdf19b6c9bb0c4cb1e29ad5 | [
"Apache-2.0"
] | null | null | null | # Copyright 2014 Mirantis, Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing... | 37.482618 | 78 | 0.420809 |
038b2ae476e554b9904f92fe273204412a8e43f0 | 1,143 | py | Python | myblog/myblog/models.py | 610yilingliu/blog_for_fun | a4e7b93ec1bbdd4722ea1178910b8c967832b6ec | [
"MIT"
] | null | null | null | myblog/myblog/models.py | 610yilingliu/blog_for_fun | a4e7b93ec1bbdd4722ea1178910b8c967832b6ec | [
"MIT"
] | 7 | 2021-03-18T22:47:42.000Z | 2022-03-12T00:12:00.000Z | myblog/myblog/models.py | 610yilingliu/blog_for_fun | a4e7b93ec1bbdd4722ea1178910b8c967832b6ec | [
"MIT"
] | null | null | null | from django.db import models
from django.urls import reverse
| 27.878049 | 70 | 0.694663 |
038c2d87bdf66ab34919ec05d38821c57168aa89 | 3,100 | py | Python | examples/proxy/broadcast.py | KangFengjian/maro | 2694a75731d5174ba5b33780670ba38d776d8c5a | [
"MIT"
] | 1 | 2021-04-16T14:53:47.000Z | 2021-04-16T14:53:47.000Z | examples/proxy/broadcast.py | KangFengjian/maro | 2694a75731d5174ba5b33780670ba38d776d8c5a | [
"MIT"
] | 2 | 2020-12-15T09:13:43.000Z | 2020-12-16T08:02:41.000Z | examples/proxy/broadcast.py | KangFengjian/maro | 2694a75731d5174ba5b33780670ba38d776d8c5a | [
"MIT"
] | 1 | 2021-10-01T09:17:43.000Z | 2021-10-01T09:17:43.000Z | # Copyright (c) Microsoft Corporation.
# Licensed under the MIT license.
import multiprocessing as mp
from maro.communication import Proxy, SessionType
def worker(group_name):
"""
The main worker logic includes initialize proxy and handle jobs from the master.
Args:
group_name (str): Identifie... | 36.904762 | 117 | 0.662903 |
038c3b268e2edad7c0c53700732f427733b24ccf | 475 | py | Python | pyobs/comm/xmpp/xep_0009_timeout/stanza/RPC.py | pyobs/pyobs-core | e3401e63eb31587c2bc535f7346b7e4ef69d64ab | [
"MIT"
] | 4 | 2020-02-14T10:50:03.000Z | 2022-03-25T04:15:06.000Z | pyobs/comm/xmpp/xep_0009_timeout/stanza/RPC.py | pyobs/pyobs-core | e3401e63eb31587c2bc535f7346b7e4ef69d64ab | [
"MIT"
] | 60 | 2020-09-14T09:10:20.000Z | 2022-03-25T17:51:42.000Z | pyobs/comm/xmpp/xep_0009_timeout/stanza/RPC.py | pyobs/pyobs-core | e3401e63eb31587c2bc535f7346b7e4ef69d64ab | [
"MIT"
] | 2 | 2020-10-14T09:34:57.000Z | 2021-04-27T09:35:57.000Z | from sleekxmpp.xmlstream.stanzabase import ElementBase
| 26.388889 | 58 | 0.684211 |
038cf33c1d7fd6155754a4405e0fe8c36ec12927 | 543 | py | Python | rospy-builder/setup.py | timlukins/simple | c1ed66d79167f04e09e17f61cb2f3c0259c24da0 | [
"Apache-2.0"
] | null | null | null | rospy-builder/setup.py | timlukins/simple | c1ed66d79167f04e09e17f61cb2f3c0259c24da0 | [
"Apache-2.0"
] | null | null | null | rospy-builder/setup.py | timlukins/simple | c1ed66d79167f04e09e17f61cb2f3c0259c24da0 | [
"Apache-2.0"
] | null | null | null | from setuptools import setup
setup(
name="rospy-builder",
version="0.2.0",
description="rospy package build tool",
author="Tamamki Nishino",
author_email="otamachan@gmail.com",
url="https://rospypi.github.io/simple",
packages=["rospy_builder"],
install_requires=[
"catkin_pkg",
... | 22.625 | 70 | 0.581952 |
038e61fc70b89533f7fa02d99b0ce5d016a01e70 | 270 | py | Python | gatenlp/processing/matcher.py | gitter-badger/python-gatenlp | bfed863b404cfd62c98a6cb08ad287c3b4b6ccae | [
"Apache-2.0"
] | 30 | 2020-04-18T12:28:15.000Z | 2022-02-18T21:31:18.000Z | gatenlp/processing/matcher.py | gitter-badger/python-gatenlp | bfed863b404cfd62c98a6cb08ad287c3b4b6ccae | [
"Apache-2.0"
] | 133 | 2019-10-16T07:41:59.000Z | 2022-03-31T07:27:07.000Z | gatenlp/processing/matcher.py | gitter-badger/python-gatenlp | bfed863b404cfd62c98a6cb08ad287c3b4b6ccae | [
"Apache-2.0"
] | 4 | 2021-01-20T08:12:19.000Z | 2021-10-21T13:29:44.000Z | """
Module that defines classes for matchers other than gazetteers which match e.g. regular expressions
of strings or annotations.
"""
# class AnnotationRegexMatcher:
# """ """
# pass
| 15 | 99 | 0.67037 |
038e6d50ab6c21396044a16b0e1fba76ef2bb5a3 | 5,045 | py | Python | bacpypes/bvll/bip_simple.py | cbergmiller/bacpypes | 7b1f2e989787c2c1f807680fee5ee7a71b3689ab | [
"MIT"
] | 1 | 2018-01-11T13:10:15.000Z | 2018-01-11T13:10:15.000Z | bacpypes/bvll/bip_simple.py | cbergmiller/bacpypes | 7b1f2e989787c2c1f807680fee5ee7a71b3689ab | [
"MIT"
] | null | null | null | bacpypes/bvll/bip_simple.py | cbergmiller/bacpypes | 7b1f2e989787c2c1f807680fee5ee7a71b3689ab | [
"MIT"
] | null | null | null | import logging
from ..comm import Client, Server
from ..link import Address, LocalBroadcast, PDU
from .bvlpdu import ForwardedNPDU, OriginalBroadcastNPDU, OriginalUnicastNPDU, ReadBroadcastDistributionTableAck, \
ReadForeignDeviceTableAck, Result, WriteBroadcastDistributionTable, ReadBroadcastDistributionTable, \
... | 45.863636 | 117 | 0.636075 |
038f3d71a5ee7441b570179467e32a175ce1b735 | 8,174 | py | Python | classifier.py | maxvays/TCGA_classifier | ad3b92ac76273e0701e9b41ce2e4aa3688f597a5 | [
"MIT"
] | null | null | null | classifier.py | maxvays/TCGA_classifier | ad3b92ac76273e0701e9b41ce2e4aa3688f597a5 | [
"MIT"
] | null | null | null | classifier.py | maxvays/TCGA_classifier | ad3b92ac76273e0701e9b41ce2e4aa3688f597a5 | [
"MIT"
] | null | null | null | '''
Trains TensorFlow DNNClassifier on training examples in TFRecord format, with
each training example comprising methylation betas for one aliquot and the 0/1
label.
Outputs statistics on the number of input features with non-zero weights in the
hidden layer (dnn/hiddenlayer_0/kernel).
Upon completion of training, wr... | 33.363265 | 148 | 0.661488 |
038f505b334cb3a60e56c15adf216d9924d30d0c | 4,721 | py | Python | pytint/interpreters.py | semicolonTransistor/PyTint | 0f70fe756c285cda38b3a91318af02382a505263 | [
"MIT"
] | 1 | 2020-08-14T19:41:45.000Z | 2020-08-14T19:41:45.000Z | pytint/interpreters.py | semicolonTransistor/PyTint | 0f70fe756c285cda38b3a91318af02382a505263 | [
"MIT"
] | null | null | null | pytint/interpreters.py | semicolonTransistor/PyTint | 0f70fe756c285cda38b3a91318af02382a505263 | [
"MIT"
] | null | null | null | from typing import List, Deque, Dict, Set, Iterable
Symbol = str
State = str
FAConfigurations = List[FAConfiguration]
FAComputationHistory = List[FAConfigurations]
FATransitions = Dict[State, Dict[Symbol, Set[State]]]
| 38.696721 | 113 | 0.606863 |
03931adf4192a67a2e5bf6d1a7a219b56c9a984e | 5,893 | py | Python | src/prediction_knn.py | pedrohenriquebr/web-face-recognition | 5a1fac7ce6e4186bca33f7e0ead2de42670786e0 | [
"MIT"
] | 1 | 2020-09-14T03:46:12.000Z | 2020-09-14T03:46:12.000Z | src/prediction_knn.py | pedrohenriquebr/web-face-recognition | 5a1fac7ce6e4186bca33f7e0ead2de42670786e0 | [
"MIT"
] | 13 | 2019-01-21T22:11:33.000Z | 2019-08-18T18:47:26.000Z | src/prediction_knn.py | pedrohenriquebr/web-face-recognition | 5a1fac7ce6e4186bca33f7e0ead2de42670786e0 | [
"MIT"
] | null | null | null |
import math
from sklearn import neighbors
import os
from os import environ
import os.path
import pickle
import face_recognition
from face_recognition.face_recognition_cli import image_files_in_folder
import sys
ALLOWED_EXTENSIONS = {'png', 'jpg', 'jpeg'}
THRESHOLD = os.getenv('THRESHOLD', 'TRUE')
def predict_frame(... | 42.092857 | 119 | 0.686408 |
039335152213cd42a81495fdc65184f34dc5e488 | 510 | py | Python | pip_services_runtime/cache/__init__.py | pip-services-archive/pip-services-runtime-python | 70eca1ffc44bfdc45c9c65b0ee347fa578368849 | [
"MIT"
] | null | null | null | pip_services_runtime/cache/__init__.py | pip-services-archive/pip-services-runtime-python | 70eca1ffc44bfdc45c9c65b0ee347fa578368849 | [
"MIT"
] | null | null | null | pip_services_runtime/cache/__init__.py | pip-services-archive/pip-services-runtime-python | 70eca1ffc44bfdc45c9c65b0ee347fa578368849 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
"""
pip_services_runtime.cache.__init__
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Cache module initialization
:copyright: Digital Living Software Corp. 2015-2016, see AUTHORS for more details.
:license: MIT, see LICENSE for more details.
"""
__all__ = ['CacheEntry', 'Ab... | 26.842105 | 86 | 0.67451 |
03942ff247857cfc7ab89958bfa86b31937706ed | 269 | py | Python | mytime/mytime.py | lamter/mydealutil | 26934e6e61b40327cb9cabc43e41cd01caf5bd2b | [
"MIT"
] | null | null | null | mytime/mytime.py | lamter/mydealutil | 26934e6e61b40327cb9cabc43e41cd01caf5bd2b | [
"MIT"
] | null | null | null | mytime/mytime.py | lamter/mydealutil | 26934e6e61b40327cb9cabc43e41cd01caf5bd2b | [
"MIT"
] | null | null | null | # coding: utf-8
import doctest
import datetime
def d2s(date):
"""
>>> d2s(datetime.date(2016, 8, 16))
'2016-08-16'
:param date:
:return:
"""
return date.strftime("%Y-%m-%d")
if __name__ == "__mian__":
doctest.testmod()
| 12.809524 | 39 | 0.565056 |
039430910e7060e427d541a78522663bedae56d1 | 4,342 | py | Python | lejian/apis/user.py | PuZheng/LEJAIN-backend | 1647b63cb409842566f3d2cd9771f8b8856c1a03 | [
"MIT"
] | null | null | null | lejian/apis/user.py | PuZheng/LEJAIN-backend | 1647b63cb409842566f3d2cd9771f8b8856c1a03 | [
"MIT"
] | 13 | 2015-10-23T04:43:51.000Z | 2015-12-19T14:30:33.000Z | lejian/apis/user.py | PuZheng/lejian-backend | 1647b63cb409842566f3d2cd9771f8b8856c1a03 | [
"MIT"
] | null | null | null | # -*- coding: UTF-8 -*-
import os.path
from flask import _request_ctx_stack, current_app, request, url_for
from flask.ext import login
from flask.ext.principal import identity_changed, Identity, AnonymousIdentity
from itsdangerous import URLSafeTimedSerializer, BadTimeSignature
from sqlalchemy.orm.exc import NoResultFo... | 31.23741 | 79 | 0.638415 |
03949fe3c139236ce23fd812f327cdb38c04a7b6 | 9,449 | py | Python | pymtl3/passes/backends/verilog/translation/structural/VStructuralTranslatorL4.py | pymtl/pymtl3 | 1cb7ade157a20c8264e777c0992f4751236c085b | [
"BSD-3-Clause"
] | 152 | 2020-06-03T02:34:11.000Z | 2022-03-30T04:16:45.000Z | pymtl3/passes/backends/verilog/translation/structural/VStructuralTranslatorL4.py | pymtl/pymtl3 | 1cb7ade157a20c8264e777c0992f4751236c085b | [
"BSD-3-Clause"
] | 33 | 2020-05-19T15:42:52.000Z | 2022-03-03T20:56:41.000Z | pymtl3/passes/backends/verilog/translation/structural/VStructuralTranslatorL4.py | pymtl/pymtl3 | 1cb7ade157a20c8264e777c0992f4751236c085b | [
"BSD-3-Clause"
] | 22 | 2020-05-18T13:42:05.000Z | 2022-03-11T08:37:51.000Z | #=========================================================================
# VStructuralTranslatorL4.py
#=========================================================================
"""Provide SystemVerilog structural translator implementation."""
from textwrap import dedent
from pymtl3.passes.backends.generic.structura... | 40.728448 | 97 | 0.610223 |
0396a6b05dfc7e436c9b8b5a48d97d3c46c80580 | 4,822 | py | Python | utils/load.py | KyleDavisSA/pde-surrogate | 41ad2c9eb73c323e389174080f4b3df6cbd3c900 | [
"MIT"
] | null | null | null | utils/load.py | KyleDavisSA/pde-surrogate | 41ad2c9eb73c323e389174080f4b3df6cbd3c900 | [
"MIT"
] | null | null | null | utils/load.py | KyleDavisSA/pde-surrogate | 41ad2c9eb73c323e389174080f4b3df6cbd3c900 | [
"MIT"
] | null | null | null | """
Load args and model from a directory
"""
import torch
from torch.utils.data import DataLoader, TensorDataset
from argparse import Namespace
import h5py
import json
import meshio
import numpy as np
def load_data_vtk_train(hdf5_file, imsize, input_channels, ndata, batch_size, only_input=True, return_stats=False):
... | 38.576 | 115 | 0.592285 |
03970b2533b2ca57d1a6281354a0bf6b80e84225 | 2,324 | py | Python | tests/fs/test_base.py | mikiec84/mrjob | 801fffffdc6af860edd7813c948f9da341305b21 | [
"Apache-2.0"
] | null | null | null | tests/fs/test_base.py | mikiec84/mrjob | 801fffffdc6af860edd7813c948f9da341305b21 | [
"Apache-2.0"
] | null | null | null | tests/fs/test_base.py | mikiec84/mrjob | 801fffffdc6af860edd7813c948f9da341305b21 | [
"Apache-2.0"
] | null | null | null | # Copyright 2009-2015 Yelp and Contributors
#
# 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 i... | 34.176471 | 74 | 0.61833 |
0397f4e8843e1786622b1eaaa945cb10043ae58c | 931 | py | Python | WebODM-master/app/templatetags/plugins.py | abhinavsri000/UAVision | 895fd883c1f5f492b4dcb573568b60ef03132cf6 | [
"MIT"
] | null | null | null | WebODM-master/app/templatetags/plugins.py | abhinavsri000/UAVision | 895fd883c1f5f492b4dcb573568b60ef03132cf6 | [
"MIT"
] | 8 | 2019-11-24T14:15:19.000Z | 2020-04-19T09:06:04.000Z | WebODM-master/app/templatetags/plugins.py | abhinavsri000/UAVision | 895fd883c1f5f492b4dcb573568b60ef03132cf6 | [
"MIT"
] | null | null | null | from django import template
from app.plugins import get_active_plugins
import itertools
register = template.Library()
| 40.478261 | 112 | 0.745435 |
03998c5d830b7f944385c3c0a7a6f0123d3a1156 | 1,114 | py | Python | dask/store/tests/test_store.py | rolando-contribute/dask | a7e7ef16475e0486f3d3e8e80016f9a23f62c710 | [
"BSD-3-Clause"
] | null | null | null | dask/store/tests/test_store.py | rolando-contribute/dask | a7e7ef16475e0486f3d3e8e80016f9a23f62c710 | [
"BSD-3-Clause"
] | null | null | null | dask/store/tests/test_store.py | rolando-contribute/dask | a7e7ef16475e0486f3d3e8e80016f9a23f62c710 | [
"BSD-3-Clause"
] | 1 | 2021-11-11T13:45:57.000Z | 2021-11-11T13:45:57.000Z | from dask.store import Store
from operator import add, mul
from dask.utils import raises
| 21.018868 | 60 | 0.528725 |
0399f8d11a55a533cbe1bcfb45223a3acc4ce972 | 4,132 | py | Python | omh_nbi/handlers/uni_set.py | BroadbandForum/obbaa-vomci | 949ad64e1b0521a892f223b7cf97e4e792b2ea1f | [
"Apache-2.0"
] | null | null | null | omh_nbi/handlers/uni_set.py | BroadbandForum/obbaa-vomci | 949ad64e1b0521a892f223b7cf97e4e792b2ea1f | [
"Apache-2.0"
] | null | null | null | omh_nbi/handlers/uni_set.py | BroadbandForum/obbaa-vomci | 949ad64e1b0521a892f223b7cf97e4e792b2ea1f | [
"Apache-2.0"
] | null | null | null | # Copyright 2020 Broadband Forum
#
# 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 writi... | 37.225225 | 121 | 0.669409 |
039bf52827205dd5799cf017fb621c4a333c409f | 4,269 | py | Python | application/dash_application/views/runreport.py | oicr-gsi/dashi | 34bf96a7d447095df525df3ad27dbe10f4e3dde0 | [
"MIT"
] | 2 | 2020-03-27T21:20:20.000Z | 2022-02-09T07:42:51.000Z | application/dash_application/views/runreport.py | oicr-gsi/dashi | 34bf96a7d447095df525df3ad27dbe10f4e3dde0 | [
"MIT"
] | 89 | 2019-06-06T18:31:19.000Z | 2022-03-07T20:38:36.000Z | application/dash_application/views/runreport.py | oicr-gsi/dashi | 34bf96a7d447095df525df3ad27dbe10f4e3dde0 | [
"MIT"
] | 2 | 2019-06-06T17:50:53.000Z | 2019-06-06T17:52:32.000Z | import dash_html_components as html
import dash_core_components as core
from dash.dependencies import Input, Output
from ..dash_id import init_ids
import json
import pandas
import numpy
import plotly.figure_factory as ff
import gsiqcetl.load
from gsiqcetl.runreport.constants import CacheSchema
page_name = "runreport/... | 31.160584 | 88 | 0.635278 |
039d26f5b0893b66b5a9af6d7de3662450287ccc | 4,570 | py | Python | app.py | learnTech/tass-calendar | c0f130438d594b5856e9f24917d864a1fa5dfeda | [
"MIT"
] | null | null | null | app.py | learnTech/tass-calendar | c0f130438d594b5856e9f24917d864a1fa5dfeda | [
"MIT"
] | null | null | null | app.py | learnTech/tass-calendar | c0f130438d594b5856e9f24917d864a1fa5dfeda | [
"MIT"
] | null | null | null | from flask import Flask, escape, request, make_response
import os
import requests
from Crypto.Cipher import AES
import urllib
import base64
from datetime import datetime, timedelta
# These variables should be configured as per your own parameters for each application in your API Gateway Maintanence portal.
# They can ... | 35.426357 | 126 | 0.650109 |
039d58f8df8f1a6c6b5b34a51d35079ea0d2d111 | 948 | py | Python | oppoudpsdk/async_helpers.py | simbaja/oppoudpsdk | e2b08ce51a15ced6c4e96583a9b61b21f6a8cc59 | [
"MIT"
] | 1 | 2022-02-17T20:17:21.000Z | 2022-02-17T20:17:21.000Z | oppoudpsdk/async_helpers.py | simbaja/oppoudpsdk | e2b08ce51a15ced6c4e96583a9b61b21f6a8cc59 | [
"MIT"
] | null | null | null | oppoudpsdk/async_helpers.py | simbaja/oppoudpsdk | e2b08ce51a15ced6c4e96583a9b61b21f6a8cc59 | [
"MIT"
] | null | null | null | import asyncio
from typing import AsyncIterator
| 29.625 | 118 | 0.712025 |
039ddd7ec3fbf7309dac9c7083e3a7f3f5c0a95b | 3,455 | py | Python | Project-2/Ishan Pandey/google_search.py | Mercury1508/IEEE-LEAD-2.0 | 91d24ccf2f24c62f92f0d23bcfcb3988e6d5acd8 | [
"MIT"
] | 1 | 2021-06-03T16:08:33.000Z | 2021-06-03T16:08:33.000Z | Project-2/Ishan Pandey/google_search.py | Mercury1508/IEEE-LEAD-2.0 | 91d24ccf2f24c62f92f0d23bcfcb3988e6d5acd8 | [
"MIT"
] | 16 | 2021-04-27T12:58:03.000Z | 2021-05-28T14:02:14.000Z | Project-2/Ishan Pandey/google_search.py | Mercury1508/IEEE-LEAD-2.0 | 91d24ccf2f24c62f92f0d23bcfcb3988e6d5acd8 | [
"MIT"
] | 70 | 2021-04-26T13:48:35.000Z | 2021-05-28T21:04:34.000Z | from PIL import ImageTk
import PIL.Image
from tkinter import *
import urllib
from bs4 import BeautifulSoup
import requests
from selenium import webdriver
# -------URL generator----------
# ---------GOOGLE SEARCH----------
# GUI App
root = Tk()
root.geometry("1000x650")
root.title("Google.com")
root.configure(b... | 30.307018 | 139 | 0.707959 |
039ffde3f9ae262159889d92dcb803cf3d4e8069 | 1,910 | py | Python | cooper/demo/sweep_weights.py | ajclaros/rl_legged_walker | 26d0e124ef38045943449c2772b966571117683b | [
"MIT"
] | null | null | null | cooper/demo/sweep_weights.py | ajclaros/rl_legged_walker | 26d0e124ef38045943449c2772b966571117683b | [
"MIT"
] | null | null | null | cooper/demo/sweep_weights.py | ajclaros/rl_legged_walker | 26d0e124ef38045943449c2772b966571117683b | [
"MIT"
] | null | null | null | """
To run this module, execute `python -m cooper.demo.sweep_weights`
from this repository's base directory.
To save the outputs to a file, use stdout redirection:
`python -m cooper.demo.sweep_weights > data.csv`
"""
from typing import List
from typing_extensions import TypeAlias
from multiprocessing import P... | 26.527778 | 89 | 0.669634 |
03a0253a80d8409783b6104ce76182534fc2fd5c | 494 | py | Python | en/add_symbol.py | Gabriel-Chen/Narcissus | 998a9d9c4dfed0e537c934acd94389aeeb35cf6b | [
"MIT"
] | null | null | null | en/add_symbol.py | Gabriel-Chen/Narcissus | 998a9d9c4dfed0e537c934acd94389aeeb35cf6b | [
"MIT"
] | null | null | null | en/add_symbol.py | Gabriel-Chen/Narcissus | 998a9d9c4dfed0e537c934acd94389aeeb35cf6b | [
"MIT"
] | null | null | null | import json
words_sheet = open('key_words_en.json', 'r')
try:
reader = json.load(words_sheet)
words_sheet.close()
for item in reader:
key_word = item['Environmental Keywords in English']
symbol = item['symbol']
f = open(key_word + '.json', 'r')
gf = json.load(f)
f.cl... | 26 | 60 | 0.566802 |
03a07eb534129cfd4a3571d4128f4f075810e968 | 866 | py | Python | code/dextrems-independence/rehastim-integration-lib/ems_interface/tools-and-abstractions/sweepdown.py | humancomputerintegration/dextrEMS | 7a355ee5138d56998ccc99011e5ad4c26a6fd944 | [
"MIT"
] | 4 | 2021-09-30T19:22:36.000Z | 2022-01-11T05:20:37.000Z | code/dextrems-pose-precision/rehastim-integration-lib/ems_interface/tools-and-abstractions/sweepdown.py | humancomputerintegration/dextrEMS | 7a355ee5138d56998ccc99011e5ad4c26a6fd944 | [
"MIT"
] | null | null | null | code/dextrems-pose-precision/rehastim-integration-lib/ems_interface/tools-and-abstractions/sweepdown.py | humancomputerintegration/dextrEMS | 7a355ee5138d56998ccc99011e5ad4c26a6fd944 | [
"MIT"
] | null | null | null | #!/sr/bin/python
# Filename: sweepdown.py
import singlepulse
import time
version = '0.1'
# End of sweepdown.py
| 33.307692 | 97 | 0.569284 |
03a15bc2b5fae16f8bf2447da7c6452fa67788e4 | 12,718 | py | Python | ml/tensorflow/iris/pipeline.py | obulpathi/cloud | 17d5f5cf78209868cec42de912fdfa5631283b1e | [
"Apache-2.0"
] | 4 | 2015-10-29T13:15:54.000Z | 2016-10-11T13:43:24.000Z | ml/tensorflow/iris/pipeline.py | datalabai/cloud | 5f2ef4abb8458f948414d28b4830de74b55a0636 | [
"Apache-2.0"
] | null | null | null | ml/tensorflow/iris/pipeline.py | datalabai/cloud | 5f2ef4abb8458f948414d28b4830de74b55a0636 | [
"Apache-2.0"
] | null | null | null | #/!/usr/bin/env python
# Copyright 2016 Google Inc. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless require... | 37.964179 | 80 | 0.647193 |
03a171ff1e04756ab7e71d65f6b4386a31a3421e | 2,453 | py | Python | volatility/volatility_compare.py | larrys54321/quant_corner | 3dc6f3f3d1ce1fa002c226bd5c5f845b91710687 | [
"MIT"
] | null | null | null | volatility/volatility_compare.py | larrys54321/quant_corner | 3dc6f3f3d1ce1fa002c226bd5c5f845b91710687 | [
"MIT"
] | null | null | null | volatility/volatility_compare.py | larrys54321/quant_corner | 3dc6f3f3d1ce1fa002c226bd5c5f845b91710687 | [
"MIT"
] | null | null | null | import yfinance as yf
from datetime import datetime
import pandas as pd
import matplotlib.pyplot as plt
import numpy as np
from arch import arch_model
from volatility.utils import get_percent_chg, Option, set_plot, get_ATR
start = datetime(2000, 1, 1)
end = datetime(2021, 3, 17)
symbol = 'QQQ'
tickerData = yf.Ticker(... | 42.293103 | 110 | 0.653893 |
03a24ae5d5f90ce732d9ff0c7b909cd8a3827243 | 1,588 | py | Python | enhanced_purchase.py | RadekD/gmp | 5b413ef71f09389f80afdd94750189c4b34fde99 | [
"BSD-2-Clause"
] | null | null | null | enhanced_purchase.py | RadekD/gmp | 5b413ef71f09389f80afdd94750189c4b34fde99 | [
"BSD-2-Clause"
] | null | null | null | enhanced_purchase.py | RadekD/gmp | 5b413ef71f09389f80afdd94750189c4b34fde99 | [
"BSD-2-Clause"
] | null | null | null | from .event import event
| 26.032787 | 76 | 0.612091 |
03a35033c40c291fd45a784eb8bab0f9516b6496 | 5,022 | py | Python | modules/manager.py | horsy-ml/horsy | 1161df2e83c201784ea674bd1d53e76831b15a0f | [
"MIT"
] | null | null | null | modules/manager.py | horsy-ml/horsy | 1161df2e83c201784ea674bd1d53e76831b15a0f | [
"MIT"
] | null | null | null | modules/manager.py | horsy-ml/horsy | 1161df2e83c201784ea674bd1d53e76831b15a0f | [
"MIT"
] | null | null | null | import json
import threading
from rich import print
from modules.request import request
import modules.vars as horsy_vars
import os
import zipfile
from modules.virustotal import scan_to_cli
from modules.http_status import handle
from ezzdl import dl
def install(package):
"""
Install an app
:param package:... | 35.617021 | 110 | 0.545599 |
03a4223d11ef6ce96b39c23302d12d9c2d63b9be | 1,310 | py | Python | setup.py | aheadlead/download_wrapper | 036bc7cb071eadc0bc24a445bcaa5c2305d48083 | [
"MIT"
] | 1 | 2021-06-20T14:22:11.000Z | 2021-06-20T14:22:11.000Z | setup.py | aheadlead/download_wrapper | 036bc7cb071eadc0bc24a445bcaa5c2305d48083 | [
"MIT"
] | null | null | null | setup.py | aheadlead/download_wrapper | 036bc7cb071eadc0bc24a445bcaa5c2305d48083 | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
# coding=utf-8
import sys
import download_wrapper
from setuptools import setup, find_packages
cmdclass = {}
try:
from sphinx.setup_command import BuildDoc
cmdclass = {'build_sphinx': BuildDoc}
except ImportError:
pass
name = download_wrapper.__NAME__
version = download_wrapper.__V... | 26.734694 | 51 | 0.654198 |
03a5e21dafdefde75656c0d87df88f69357dab32 | 167 | py | Python | pandas_xyz/__init__.py | aaron-schroeder/pandas-xyz | 1620ee48c4da937abd5a5cba21daac6cfe10f9bd | [
"MIT"
] | null | null | null | pandas_xyz/__init__.py | aaron-schroeder/pandas-xyz | 1620ee48c4da937abd5a5cba21daac6cfe10f9bd | [
"MIT"
] | null | null | null | pandas_xyz/__init__.py | aaron-schroeder/pandas-xyz | 1620ee48c4da937abd5a5cba21daac6cfe10f9bd | [
"MIT"
] | null | null | null | from .accessor import PositionAccessor
# from .algorithms import *
# from .scalar import flat_earth, great_circle
__version__ = '0.0.5'
__all__ = ['PositionAccessor'] | 27.833333 | 46 | 0.772455 |
03a72e466e1226d0b6e3c163d098b311997359d4 | 149 | py | Python | tubbs/formatter/scala/__init__.py | tek/tubbs | cd4c174c31b6c58a6935ca8a5f0f141377a9a04c | [
"MIT"
] | null | null | null | tubbs/formatter/scala/__init__.py | tek/tubbs | cd4c174c31b6c58a6935ca8a5f0f141377a9a04c | [
"MIT"
] | null | null | null | tubbs/formatter/scala/__init__.py | tek/tubbs | cd4c174c31b6c58a6935ca8a5f0f141377a9a04c | [
"MIT"
] | null | null | null | from tubbs.formatter.scala.breaker import VimBreaker
from tubbs.formatter.scala.indenter import VimIndenter
__all__ = ('VimBreaker', 'VimIndenter')
| 29.8 | 54 | 0.818792 |
03a8d439dddaf2665f37e662edaa92e5c9ecce9c | 9,055 | py | Python | tests/yuv_test.py | antmicro/raviewer | 7529664d37e994d4c2f4c450a5577b79d73c4bb0 | [
"Apache-2.0"
] | 12 | 2021-11-18T09:38:34.000Z | 2022-03-24T19:33:44.000Z | tests/yuv_test.py | antmicro/raviewer | 7529664d37e994d4c2f4c450a5577b79d73c4bb0 | [
"Apache-2.0"
] | 1 | 2022-02-14T12:07:02.000Z | 2022-03-21T19:29:11.000Z | tests/yuv_test.py | antmicro/raviewer | 7529664d37e994d4c2f4c450a5577b79d73c4bb0 | [
"Apache-2.0"
] | null | null | null | import unittest
import numpy
import os
from unittest.mock import (Mock, patch)
from raviewer.parser.yuv import ParserYUV420, ParserYUV422, ParserYUV420Planar, ParserYUV422Planar
from enum import Enum
if __name__ == "__main__":
unittest.main()
| 42.313084 | 98 | 0.570955 |
03ab0016f0b0391b66c8b9b3187fa06f886fc4f6 | 7,179 | py | Python | combo_e2e/pages/uicomponents/datepicker.py | AdCombo/combo-e2e | 7b28240ef749d36f78342610f8c8d10312b2733b | [
"MIT"
] | 2 | 2021-06-23T07:25:37.000Z | 2021-06-23T07:32:22.000Z | combo_e2e/pages/uicomponents/datepicker.py | AdCombo/combo-e2e | 7b28240ef749d36f78342610f8c8d10312b2733b | [
"MIT"
] | 5 | 2021-08-02T16:54:17.000Z | 2022-03-17T15:04:58.000Z | combo_e2e/pages/uicomponents/datepicker.py | AdCombo/combo-e2e | 7b28240ef749d36f78342610f8c8d10312b2733b | [
"MIT"
] | 1 | 2021-07-06T14:31:42.000Z | 2021-07-06T14:31:42.000Z | """
This class wraps date-picker(ngx-daterangepicker-material) input and allows to interact with it.
Time is set accoring to client time zone!
"""
from datetime import date, datetime
from typing import Callable, Optional
from combo_e2e.helpers.exceptions import DatePickerNotFound, DatePickerException, DatePickerAttri... | 39.229508 | 113 | 0.675164 |
03ab4c838a6711fc02fa4100be3e33b67cda97d6 | 542 | py | Python | timeweb/timewebapp/migrations/0077_settingsmodel_default_dropdown_assignment_tags.py | snapsnap123/TimeWeb | 9e3a3459fa71f6edf730addf3c7e15d87b6c80b5 | [
"Apache-2.0"
] | 1 | 2021-11-29T18:37:02.000Z | 2021-11-29T18:37:02.000Z | timeweb/timewebapp/migrations/0077_settingsmodel_default_dropdown_assignment_tags.py | renardtnt1/TimeWeb | 3684bb2ba368b55a4d50995e7e0e3b9405cba004 | [
"Apache-2.0"
] | null | null | null | timeweb/timewebapp/migrations/0077_settingsmodel_default_dropdown_assignment_tags.py | renardtnt1/TimeWeb | 3684bb2ba368b55a4d50995e7e0e3b9405cba004 | [
"Apache-2.0"
] | null | null | null | # Generated by Django 3.2.7 on 2021-09-30 23:04
from django.db import migrations, models
import timewebapp.models
| 27.1 | 135 | 0.684502 |
03ac01fd1a6c4846aeb2f1e3b6476d9fc533c05d | 2,249 | py | Python | saefportal/datalakes/models/local_datalake.py | harry-consulting/SAEF1 | 055d6e492ba76f90e3248b9da2985fdfe0c6b430 | [
"BSD-2-Clause"
] | null | null | null | saefportal/datalakes/models/local_datalake.py | harry-consulting/SAEF1 | 055d6e492ba76f90e3248b9da2985fdfe0c6b430 | [
"BSD-2-Clause"
] | null | null | null | saefportal/datalakes/models/local_datalake.py | harry-consulting/SAEF1 | 055d6e492ba76f90e3248b9da2985fdfe0c6b430 | [
"BSD-2-Clause"
] | 1 | 2020-12-16T15:02:52.000Z | 2020-12-16T15:02:52.000Z | import io
import json
import logging
import os
import shutil
from pathlib import Path
import pandas as pd
from django.db import models
from datalakes.util import get_wanted_file
logger = logging.getLogger(__name__)
| 33.567164 | 120 | 0.655847 |
03ae81522e3beb368f2e7e1784f87746e2f971d3 | 766 | py | Python | tracing/tracing/value/add_device_info.py | ravitejavalluri/catapult | 246a39a82c2213d913a96fff020a263838dc76e6 | [
"BSD-3-Clause"
] | null | null | null | tracing/tracing/value/add_device_info.py | ravitejavalluri/catapult | 246a39a82c2213d913a96fff020a263838dc76e6 | [
"BSD-3-Clause"
] | null | null | null | tracing/tracing/value/add_device_info.py | ravitejavalluri/catapult | 246a39a82c2213d913a96fff020a263838dc76e6 | [
"BSD-3-Clause"
] | 1 | 2020-07-24T05:13:01.000Z | 2020-07-24T05:13:01.000Z | # Copyright 2016 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
import json
import tempfile
from tracing.value import add_shared_diagnostic
| 30.64 | 80 | 0.721932 |
03afdcb8ce074b115b45a4eebc1daa532aca42d3 | 9,803 | py | Python | fast_knn_nmt/data/utils.py | Crazy-Chick/fast-knn-nmt | 7336bbe0be1240e70d3c3ac71c4e7cfb4f4ea4ff | [
"Apache-2.0"
] | null | null | null | fast_knn_nmt/data/utils.py | Crazy-Chick/fast-knn-nmt | 7336bbe0be1240e70d3c3ac71c4e7cfb4f4ea4ff | [
"Apache-2.0"
] | null | null | null | fast_knn_nmt/data/utils.py | Crazy-Chick/fast-knn-nmt | 7336bbe0be1240e70d3c3ac71c4e7cfb4f4ea4ff | [
"Apache-2.0"
] | null | null | null | # encoding: utf-8
"""
@desc:
"""
import numpy as np
import math
from fairseq.data import data_utils
from fairseq.tasks.translation import TranslationTask
from fairseq.data.language_pair_dataset import LanguagePairDataset
from tqdm import tqdm
from multiprocessing import Pool
from typing import Tuple
from fast_k... | 37.703846 | 137 | 0.624605 |
03b09e85b4641e24b2163f9fb84c1ad44350f628 | 334 | py | Python | src/algorithms/crush.py | apierr/_hackerrank | 5bea44fed2fc6b454b31566c36c9bf66c04fa11e | [
"MIT"
] | null | null | null | src/algorithms/crush.py | apierr/_hackerrank | 5bea44fed2fc6b454b31566c36c9bf66c04fa11e | [
"MIT"
] | 5 | 2019-09-25T11:20:07.000Z | 2020-06-30T09:58:05.000Z | src/algorithms/crush.py | apierr/hackerrank | 5bea44fed2fc6b454b31566c36c9bf66c04fa11e | [
"MIT"
] | 1 | 2021-02-02T15:06:58.000Z | 2021-02-02T15:06:58.000Z |
n, inputs = [int(n) for n in input().split(" ")]
list = [0]*(n+1)
for _ in range(inputs):
print('\n')
x, y, incr = [int(n) for n in input().split(" ")]
list[x-1] += incr
if((y) <= len(list)):
list[y] -= incr
print(list)
max = x = 0
for i in list:
x = x+i
if(max < x):
max =... | 17.578947 | 53 | 0.47006 |
03b2c8c3274e13294cf562d33c9027f75adff0b9 | 1,993 | py | Python | app.py | royhzq/sg-headlines-rnn | cef84f1ffe7f18a37386e9602166082c10e9020b | [
"MIT"
] | null | null | null | app.py | royhzq/sg-headlines-rnn | cef84f1ffe7f18a37386e9602166082c10e9020b | [
"MIT"
] | 13 | 2020-01-28T23:05:24.000Z | 2022-02-10T00:34:57.000Z | app.py | royhzq/sg-headlines-rnn | cef84f1ffe7f18a37386e9602166082c10e9020b | [
"MIT"
] | null | null | null | from flask import Flask, request, jsonify
from utils import generate_headlines
import tensorflow as tf
import json
tf.enable_eager_execution()
import numpy as np
app = Flask(__name__)
char2idx = json.loads(open("./data/st_char2idx.txt", 'br').read().decode(encoding='utf-8'))
idx2char = np.array(json.loads(open("./da... | 30.661538 | 103 | 0.656297 |
03b48010ad3cd8943b83873c6007c3a73442461a | 9,572 | py | Python | crits/emails/email.py | dicato/crits | 8d500f7175855f1aeefa94caa783f981062ba869 | [
"MIT"
] | null | null | null | crits/emails/email.py | dicato/crits | 8d500f7175855f1aeefa94caa783f981062ba869 | [
"MIT"
] | null | null | null | crits/emails/email.py | dicato/crits | 8d500f7175855f1aeefa94caa783f981062ba869 | [
"MIT"
] | null | null | null | import datetime
from dateutil.parser import parse as date_parser
from mongoengine import Document, StringField, ListField
from django.conf import settings
from cybox.common import String, DateTime
from cybox.core import Observable
from cybox.objects.address_object import Address, EmailAddress
from cybox.objects.email_... | 38.910569 | 125 | 0.570205 |
03b7e0e6620e7937b8035ee5d2db08dc54dcd32a | 18,147 | py | Python | scratchpad/tomostream_roi/tomostream/tomostream3d.py | arshadzahangirchowdhury/TomoEncoders | 9c2b15fd515d864079f198546821faee5d78df17 | [
"BSD-3-Clause"
] | null | null | null | scratchpad/tomostream_roi/tomostream/tomostream3d.py | arshadzahangirchowdhury/TomoEncoders | 9c2b15fd515d864079f198546821faee5d78df17 | [
"BSD-3-Clause"
] | null | null | null | scratchpad/tomostream_roi/tomostream/tomostream3d.py | arshadzahangirchowdhury/TomoEncoders | 9c2b15fd515d864079f198546821faee5d78df17 | [
"BSD-3-Clause"
] | null | null | null |
'''
Adaptation of Tomostream orthoslice code for doing full 3d reconstructions
Then to apply DL-based image processing or computer vision steps.
'''
import pvaccess as pva
import numpy as np
import queue
import time
import h5py
import threading
import signal
import util
import log
from epics import PV
import so... | 42.698824 | 175 | 0.58737 |
03b8734c360f66455710a790f4a8290958137378 | 1,351 | py | Python | userbot/modules/help.py | masbentoooredoo/WeebProject | d34c14b42801915518a87831f952e5ade95183e2 | [
"Naumen",
"Condor-1.1",
"MS-PL"
] | null | null | null | userbot/modules/help.py | masbentoooredoo/WeebProject | d34c14b42801915518a87831f952e5ade95183e2 | [
"Naumen",
"Condor-1.1",
"MS-PL"
] | null | null | null | userbot/modules/help.py | masbentoooredoo/WeebProject | d34c14b42801915518a87831f952e5ade95183e2 | [
"Naumen",
"Condor-1.1",
"MS-PL"
] | 10 | 2020-12-13T14:32:47.000Z | 2021-04-11T06:45:35.000Z | # Copyright (C) 2019 The Raphielscape Company LLC.
#
# Licensed under the Raphielscape Public License, Version 1.c (the "License");
# you may not use this file except in compliance with the License.
#
"""Userbot help command"""
from userbot import CMD_HELP
from userbot.events import register
| 33.775 | 79 | 0.513694 |
03b9f80c573256626bf4885c7bbd2f75f05f862a | 4,076 | py | Python | vistrails/packages/spreadsheet/spreadsheet_registry.py | celiafish/VisTrails | d8cb575b8b121941de190fe608003ad1427ef9f6 | [
"BSD-3-Clause"
] | 1 | 2015-05-11T16:46:49.000Z | 2015-05-11T16:46:49.000Z | vistrails/packages/spreadsheet/spreadsheet_registry.py | celiafish/VisTrails | d8cb575b8b121941de190fe608003ad1427ef9f6 | [
"BSD-3-Clause"
] | null | null | null | vistrails/packages/spreadsheet/spreadsheet_registry.py | celiafish/VisTrails | d8cb575b8b121941de190fe608003ad1427ef9f6 | [
"BSD-3-Clause"
] | null | null | null | ###############################################################################
##
## Copyright (C) 2011-2014, NYU-Poly.
## Copyright (C) 2006-2011, University of Utah.
## All rights reserved.
## Contact: contact@vistrails.org
##
## This file is part of VisTrails.
##
## "Redistribution and use in source and binary for... | 38.819048 | 80 | 0.609176 |
03bb6948a075551b1b577cc28c8637a3fab83ee4 | 5,300 | py | Python | cognite/experimental/_api/transformation_notifications.py | AlexThunder/cognite-sdk-python-experimental | 468d29e7809793ed45cef5da25dca22418839972 | [
"Apache-2.0"
] | null | null | null | cognite/experimental/_api/transformation_notifications.py | AlexThunder/cognite-sdk-python-experimental | 468d29e7809793ed45cef5da25dca22418839972 | [
"Apache-2.0"
] | null | null | null | cognite/experimental/_api/transformation_notifications.py | AlexThunder/cognite-sdk-python-experimental | 468d29e7809793ed45cef5da25dca22418839972 | [
"Apache-2.0"
] | null | null | null | from typing import List, Optional, Union
from cognite.client import utils
from cognite.client._api_client import APIClient
from cognite.experimental._constants import HANDLER_FILE_NAME, LIST_LIMIT_CEILING, LIST_LIMIT_DEFAULT, MAX_RETRIES
from cognite.experimental.data_classes import (
OidcCredentials,
Transfo... | 42.4 | 231 | 0.675472 |
03bb90b3312fca9d9a089bd4f563f11678d9d344 | 2,110 | py | Python | 2020/day13.py | PintarM/AdventOfCode | 5837c42ab1ce98efb02aec1ac17967611e2a3851 | [
"MIT"
] | null | null | null | 2020/day13.py | PintarM/AdventOfCode | 5837c42ab1ce98efb02aec1ac17967611e2a3851 | [
"MIT"
] | null | null | null | 2020/day13.py | PintarM/AdventOfCode | 5837c42ab1ce98efb02aec1ac17967611e2a3851 | [
"MIT"
] | 1 | 2020-12-02T13:27:52.000Z | 2020-12-02T13:27:52.000Z | # -*- coding: utf-8 -*-
"""Advent Of Code 2020, Day 13
@author: Matevz
"""
from sympy.ntheory.modular import crt
def get_input(file_name):
"""Process input text file."""
try:
file = open(file_name, 'r')
content = file.read()
except IOError:
print('Cannot read file {}'.format(fil... | 27.402597 | 79 | 0.652133 |
03bc2db31d5b23278c12c999b5cd41ea7128ebff | 276 | py | Python | logging/__init__.py | ligz08/pdqa | b2af027daf544e30d58358de20281d4648322b87 | [
"Apache-2.0"
] | null | null | null | logging/__init__.py | ligz08/pdqa | b2af027daf544e30d58358de20281d4648322b87 | [
"Apache-2.0"
] | null | null | null | logging/__init__.py | ligz08/pdqa | b2af027daf544e30d58358de20281d4648322b87 | [
"Apache-2.0"
] | null | null | null | def make_log_msg(title, status, detail=None, extra=None, sep='::'):
"""
Make a message that looks like this:
Title::status::detail::extra
Any None will be skipped.
"""
strings = [title, status, detail, extra]
return sep.join(filter(None, strings))
| 30.666667 | 67 | 0.644928 |
03bc7308d95fe63376ad94bd08a689fdbb65b6f5 | 49 | py | Python | bigbrain/__init__.py | gmischl1/bigbrain | 1920363e19c296fa69c27be0dcdf2b5b6c4ababb | [
"Apache-2.0"
] | 2 | 2020-03-13T22:08:27.000Z | 2020-03-13T22:08:47.000Z | bigbrain/__init__.py | gmischl1/bigbrain | 1920363e19c296fa69c27be0dcdf2b5b6c4ababb | [
"Apache-2.0"
] | null | null | null | bigbrain/__init__.py | gmischl1/bigbrain | 1920363e19c296fa69c27be0dcdf2b5b6c4ababb | [
"Apache-2.0"
] | 1 | 2020-03-13T22:09:07.000Z | 2020-03-13T22:09:07.000Z | from bigbrain.ai import AI
__version__ = "0.1.2" | 16.333333 | 26 | 0.734694 |
03bd2bfd0c61d2a79ebac5bc28f8f5b65ddc6392 | 5,154 | py | Python | conveyorclient/v1/plans.py | Hybrid-Cloud/conveyorclient | 329fe37ef4fb7229e5bec9575a86c06e5d4da934 | [
"Apache-2.0"
] | null | null | null | conveyorclient/v1/plans.py | Hybrid-Cloud/conveyorclient | 329fe37ef4fb7229e5bec9575a86c06e5d4da934 | [
"Apache-2.0"
] | null | null | null | conveyorclient/v1/plans.py | Hybrid-Cloud/conveyorclient | 329fe37ef4fb7229e5bec9575a86c06e5d4da934 | [
"Apache-2.0"
] | null | null | null | # Copyright (c) 2017 Huawei, Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or a... | 32.828025 | 78 | 0.569461 |
03bd7fc88e1ab0df9ab78abcf865b46a9d55c33e | 1,931 | py | Python | submissions/Miner/myCSPs.py | omarmartinez97/aima-python | c8d5aa86382fb72e9ddec4938706599fee439bbb | [
"MIT"
] | null | null | null | submissions/Miner/myCSPs.py | omarmartinez97/aima-python | c8d5aa86382fb72e9ddec4938706599fee439bbb | [
"MIT"
] | null | null | null | submissions/Miner/myCSPs.py | omarmartinez97/aima-python | c8d5aa86382fb72e9ddec4938706599fee439bbb | [
"MIT"
] | null | null | null | import csp
rgb = ['R', 'G', 'B']
d2 = {'A': rgb, 'B': rgb, 'C': ['R'], 'D': rgb}
v2 = d2.keys()
n2 = {'A': ['B', 'C', 'D'],
'B': ['A', 'C', 'D'],
'C': ['A', 'B'],
'D': ['A', 'B']}
c2 = csp.CSP(v2, d2, n2, constraints)
c2.label = 'Really Lame'
colors = ['R', 'G', 'B', 'Y']
domains = {
'Rif... | 21.943182 | 87 | 0.51942 |
03be4922cf34a2e0414b43d8fd34bbb658de3dc7 | 247 | py | Python | sample/scoping/__init__.py | diko316/python-sample | f8a61da465bc1b3589dabe29dac72a8c25ce0239 | [
"MIT"
] | null | null | null | sample/scoping/__init__.py | diko316/python-sample | f8a61da465bc1b3589dabe29dac72a8c25ce0239 | [
"MIT"
] | null | null | null | sample/scoping/__init__.py | diko316/python-sample | f8a61da465bc1b3589dabe29dac72a8c25ce0239 | [
"MIT"
] | null | null | null | """Nothing special, just calling sample.test.show()"""
from sample.scoping import function
| 11.227273 | 54 | 0.57085 |
03bf606f96d7db50104b5beeafeafef7cf2ccc0a | 2,504 | py | Python | bot.py | Stienvdh/IEToolie | bfa5cb35cdb63a4dceba935c5098e6ab6729228c | [
"BSD-Source-Code"
] | null | null | null | bot.py | Stienvdh/IEToolie | bfa5cb35cdb63a4dceba935c5098e6ab6729228c | [
"BSD-Source-Code"
] | null | null | null | bot.py | Stienvdh/IEToolie | bfa5cb35cdb63a4dceba935c5098e6ab6729228c | [
"BSD-Source-Code"
] | null | null | null | """
Copyright (c) 2021 Cisco and/or its affiliates.
This software is licensed to you under the terms of the Cisco Sample
Code License, Version 1.1 (the "License"). You may obtain a copy of the
License at
https://developer.cisco.com/docs/licenses
All use of the material herein must be in accordance with t... | 32.519481 | 72 | 0.708866 |
03c0d7a2bce24dca073f581faa19144a145e5531 | 1,174 | py | Python | extras/Roll_A_Dice_Or_Two.py | namangoel05/area4 | 69be5dcb24a14d8e5be9e88d2deb72fdc6510136 | [
"MIT"
] | null | null | null | extras/Roll_A_Dice_Or_Two.py | namangoel05/area4 | 69be5dcb24a14d8e5be9e88d2deb72fdc6510136 | [
"MIT"
] | null | null | null | extras/Roll_A_Dice_Or_Two.py | namangoel05/area4 | 69be5dcb24a14d8e5be9e88d2deb72fdc6510136 | [
"MIT"
] | null | null | null | from random import randint
import time
import random
while input("\n\nDo you want to roll a dice? [y|n]") == 'y':
One_OR_Two()
else:
print("Maybe next time")
# Hoped this helps under standing for the random function, i also added some time function witch you can use by just typing time.sleep(and the number of ... | 58.7 | 205 | 0.682283 |
03c1692548de12b27e2465162cb0ac18bb61a489 | 5,224 | py | Python | stats_eddie/SVM.py | dalakada/TwiCSv2 | 40672a99a201f6e2aab9dd085e1f4a29e8253f3b | [
"MIT"
] | 2 | 2019-04-01T00:54:39.000Z | 2021-06-22T18:02:47.000Z | stats_eddie/SVM.py | dalakada/TwiCSv2 | 40672a99a201f6e2aab9dd085e1f4a29e8253f3b | [
"MIT"
] | null | null | null | stats_eddie/SVM.py | dalakada/TwiCSv2 | 40672a99a201f6e2aab9dd085e1f4a29e8253f3b | [
"MIT"
] | 2 | 2018-06-20T14:50:03.000Z | 2020-08-27T01:55:34.000Z |
# coding: utf-8
import pandas as pd
import numpy as np
from sklearn.ensemble import RandomForestClassifier
from sklearn import svm
from scipy import stats
'''
# In[109]:
ali.to_csv("Classifier_Results.csv", sep=',', encoding='utf-8')
# In[68]:
pred_class=clf.predict(testArr)
print(pred_class)
# In[69]:
testR... | 20.730159 | 120 | 0.626723 |
03c1918314d95df834d6cdd5e651896610e70399 | 836 | py | Python | pyviews/rendering/tests/setup_tests.py | eumis/pyviews | 9f3a3a72eddda2bd33bbb16b45d9fa4f9ebfcc0b | [
"MIT"
] | 6 | 2018-02-16T14:37:53.000Z | 2020-03-20T13:22:17.000Z | pyviews/rendering/tests/setup_tests.py | eumis/pyviews | 9f3a3a72eddda2bd33bbb16b45d9fa4f9ebfcc0b | [
"MIT"
] | null | null | null | pyviews/rendering/tests/setup_tests.py | eumis/pyviews | 9f3a3a72eddda2bd33bbb16b45d9fa4f9ebfcc0b | [
"MIT"
] | 1 | 2019-03-15T12:47:42.000Z | 2019-03-15T12:47:42.000Z | from os.path import abspath
from injectool import resolve, SingletonResolver
from pytest import mark
from pyviews.rendering import RenderingPipeline
from pyviews.rendering.setup import use_rendering
| 26.967742 | 92 | 0.721292 |
03c266ba0c3fa77c77f277fa9c8c15adc29fe57b | 7,166 | py | Python | util.py | sekunder/ergm | b60bc2b1cb64d2969bcab2dbe75511eb732a113d | [
"CC0-1.0"
] | 2 | 2020-12-14T09:13:35.000Z | 2021-03-22T07:28:37.000Z | util.py | sekunder/ergm | b60bc2b1cb64d2969bcab2dbe75511eb732a113d | [
"CC0-1.0"
] | null | null | null | util.py | sekunder/ergm | b60bc2b1cb64d2969bcab2dbe75511eb732a113d | [
"CC0-1.0"
] | null | null | null | """
utility functions for ergm
"""
import numpy as np
import datetime
import sys
import networkx as nx
from itertools import combinations
# from scipy import sparse
def log_msg(*args, out=sys.stdout, **kwargs):
"""Print message m with a timestamp if out is not None."""
if out:
print(datetime.datetime... | 37.915344 | 145 | 0.652107 |
03c2eb282e47a2c54bf098cbd77a6d4905f87e9b | 533 | py | Python | deneme.py | github21yandex/Calismalarim-Python | 1dad342b13c3e4000d5dd8cb79d776e3fc665e3a | [
"Unlicense"
] | null | null | null | deneme.py | github21yandex/Calismalarim-Python | 1dad342b13c3e4000d5dd8cb79d776e3fc665e3a | [
"Unlicense"
] | null | null | null | deneme.py | github21yandex/Calismalarim-Python | 1dad342b13c3e4000d5dd8cb79d776e3fc665e3a | [
"Unlicense"
] | null | null | null |
import sys
import locale
locale.setlocale(locale.LC_ALL, "tr_TR.utf-8")
cumle = "merhaba\tiyi\tmisiN?"
sesli="ouieaIOUEA"
sesliler =""
sessizler=""
gecici=""
tur = ""
ing = "giusocGIUSOC"
liste = ["ali", "veli", "samet"]
liste = [[1,2,3],[4,5,6],[7,8,9,10]]
liste2 = [1, 2, 3, "mehmed"]
w = open("deneme.txt", "... | 14.805556 | 52 | 0.60788 |
03c346bda5036c16e0584f1e697773c94ff92837 | 1,377 | py | Python | benchmark.py | btclib-org/btclib_libsecp256k1 | b7bdd0df121c9c674edc88a55ea6cadad75dafef | [
"MIT"
] | null | null | null | benchmark.py | btclib-org/btclib_libsecp256k1 | b7bdd0df121c9c674edc88a55ea6cadad75dafef | [
"MIT"
] | null | null | null | benchmark.py | btclib-org/btclib_libsecp256k1 | b7bdd0df121c9c674edc88a55ea6cadad75dafef | [
"MIT"
] | null | null | null | import time
import btclib.ecc.dsa
import btclib.ecc.ssa
import coincurve
from btclib.hashes import reduce_to_hlen
from btclib.to_pub_key import pub_keyinfo_from_prv_key
import btclib_libsecp256k1.dsa
import btclib_libsecp256k1.ssa
prvkey = 1
pubkey_bytes = pub_keyinfo_from_prv_key(prvkey)[0]
msg_bytes = reduce_to_h... | 25.036364 | 87 | 0.777778 |
03c353c49d50ef67c6d81977950a525f9133c41a | 904 | py | Python | face_pose_dataset/estimation/interface.py | samuelbaltanas/face-pose-dataset | 84c864c155ac7c0b231032d403c0e2b2bc10b871 | [
"MIT"
] | 1 | 2020-06-18T07:58:46.000Z | 2020-06-18T07:58:46.000Z | face_pose_dataset/estimation/interface.py | samuelbaltanas/face-pose-dataset | 84c864c155ac7c0b231032d403c0e2b2bc10b871 | [
"MIT"
] | null | null | null | face_pose_dataset/estimation/interface.py | samuelbaltanas/face-pose-dataset | 84c864c155ac7c0b231032d403c0e2b2bc10b871 | [
"MIT"
] | null | null | null | import abc
import numpy as np
from face_pose_dataset import core
| 26.588235 | 82 | 0.622788 |
03c4437ca693f17d281bdd30bb65c08f78eb2db5 | 7,392 | py | Python | hah_classification/data.py | jieguangzhou/AIChallenger_SentimentAnalysis | 4dcd10c2e12bd266fb19c6b5cf50346766a4a37b | [
"MIT"
] | null | null | null | hah_classification/data.py | jieguangzhou/AIChallenger_SentimentAnalysis | 4dcd10c2e12bd266fb19c6b5cf50346766a4a37b | [
"MIT"
] | null | null | null | hah_classification/data.py | jieguangzhou/AIChallenger_SentimentAnalysis | 4dcd10c2e12bd266fb19c6b5cf50346766a4a37b | [
"MIT"
] | null | null | null | from collections import Counter
import logging
import random
import numpy as np
import jieba
from hah_classification.develop.IO import read_file, write_file
import pandas as pd
import os
logger = logging.getLogger(__file__)
logger.setLevel(logging.INFO)
PAD_IDX = 0
UNK_IDX = 1
COLUMNS = ['location_traffic_convenienc... | 36.235294 | 115 | 0.645157 |
03c52c6e87b48e4cd8e5aedb1e34b9798cbe5aba | 5,458 | py | Python | lumapps/cli.py | aureldent/lumapps-sdk | 9ee7ddbb0e5c94ec098f1d6c053bfd82698c2e8b | [
"MIT"
] | null | null | null | lumapps/cli.py | aureldent/lumapps-sdk | 9ee7ddbb0e5c94ec098f1d6c053bfd82698c2e8b | [
"MIT"
] | 1 | 2018-12-12T10:06:52.000Z | 2018-12-12T10:31:56.000Z | lumapps/cli.py | aureldent/lumapps-sdk | 9ee7ddbb0e5c94ec098f1d6c053bfd82698c2e8b | [
"MIT"
] | null | null | null | #!/usr/bin/env python
from __future__ import print_function, unicode_literals
import sys
import argparse
import json
from lumapps.utils import ApiCallError, get_conf, set_conf, FILTERS
from lumapps.client import ApiClient
import logging
LIST_CONFIGS = "***LIST_CONFIGS***"
if __name__ == "__main__":
main(... | 30.662921 | 88 | 0.601869 |
03c75ce6159591454805a4dc5c10c17e271ffe14 | 8,397 | py | Python | webpreview/previews.py | taghash/webpreview | b86cb6d547ddbca40fe69ca59c11a0c6e058f6d5 | [
"MIT"
] | null | null | null | webpreview/previews.py | taghash/webpreview | b86cb6d547ddbca40fe69ca59c11a0c6e058f6d5 | [
"MIT"
] | 2 | 2020-07-02T23:20:05.000Z | 2020-07-03T07:26:36.000Z | webpreview/previews.py | taghash/webpreview | b86cb6d547ddbca40fe69ca59c11a0c6e058f6d5 | [
"MIT"
] | 1 | 2022-03-05T06:33:38.000Z | 2022-03-05T06:33:38.000Z | import re
import requests
from requests.exceptions import *
from bs4 import BeautifulSoup
from .excepts import *
from .helpers import process_image_url
def web_preview(url, timeout=None, headers=None, absolute_image_url=False, content=None, parser=None):
"""
Extract title, description and image from Op... | 40.960976 | 150 | 0.617959 |
03c782e3bc4c98e44210318ac8cb634e86e76e91 | 13,832 | py | Python | publicAPI/crest_endpoint.py | EVEprosper/ProsperAPI | 2d25b9210d32ca777204b1dddb56848d7075dd85 | [
"MIT"
] | 13 | 2017-03-27T13:10:52.000Z | 2020-07-30T09:33:11.000Z | publicAPI/crest_endpoint.py | EVEprosper/ProsperAPI | 2d25b9210d32ca777204b1dddb56848d7075dd85 | [
"MIT"
] | 19 | 2016-11-14T00:58:54.000Z | 2018-06-11T16:54:25.000Z | publicAPI/crest_endpoint.py | EVEprosper/ProsperAPI | 2d25b9210d32ca777204b1dddb56848d7075dd85 | [
"MIT"
] | 5 | 2017-04-19T01:12:06.000Z | 2021-03-07T02:23:45.000Z | """crest_endpoint.py: collection of public crest endpoints for Prosper"""
import sys
from os import path
from datetime import datetime
from enum import Enum
import logging
import ujson as json
from flask import Flask, Response, jsonify
from flask_restful import reqparse, Api, Resource, request
import publicAPI.forec... | 31.579909 | 74 | 0.52393 |
03c7c1d39078369622ad7852e9cd54cf976ecdc8 | 1,536 | py | Python | script-diagnostico-covid19/conexao_db.py | am1701/estudos-python | 67b82161782a6862c3a81ab59ee3d92d7c262b36 | [
"MIT"
] | null | null | null | script-diagnostico-covid19/conexao_db.py | am1701/estudos-python | 67b82161782a6862c3a81ab59ee3d92d7c262b36 | [
"MIT"
] | null | null | null | script-diagnostico-covid19/conexao_db.py | am1701/estudos-python | 67b82161782a6862c3a81ab59ee3d92d7c262b36 | [
"MIT"
] | null | null | null | #!/bin/python3
import sys
from time import sleep
try:
import mysql.connector
except:
print('''Voc precisa do modulo mysql_connector instalado, no README.md tem todos os passos necessrios para
a instalao deste modulo.''')
print('='*30)
pritn("O script ir encerrar em 3 segundos. Bye!!")
sleep(3)
sys.exit(1)
... | 22.925373 | 172 | 0.673177 |
03cf66408abae7099aee97c7a650861c8b31d19d | 3,233 | py | Python | 2021/day_18.py | Javitronxo/AdventOfCode | 3a31544824881d353d899bc820d92b005af6b4eb | [
"MIT"
] | 1 | 2021-12-03T14:37:28.000Z | 2021-12-03T14:37:28.000Z | 2021/day_18.py | Javitronxo/AdventOfCode | 3a31544824881d353d899bc820d92b005af6b4eb | [
"MIT"
] | null | null | null | 2021/day_18.py | Javitronxo/AdventOfCode | 3a31544824881d353d899bc820d92b005af6b4eb | [
"MIT"
] | null | null | null | import collections
import itertools
from dataclasses import dataclass
from typing import List
if __name__ == "__main__":
main()
| 33.677083 | 99 | 0.519332 |
03d1137912ab50699b6179c220fe8310bb178774 | 4,428 | py | Python | server.py | Celnardur/simple_server | 930f0066b26781d5a77ae3ac60caa0ac9b685b9f | [
"MIT"
] | null | null | null | server.py | Celnardur/simple_server | 930f0066b26781d5a77ae3ac60caa0ac9b685b9f | [
"MIT"
] | null | null | null | server.py | Celnardur/simple_server | 930f0066b26781d5a77ae3ac60caa0ac9b685b9f | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
from http.server import BaseHTTPRequestHandler, HTTPServer, SimpleHTTPRequestHandler
import json
import os
import mimetypes
import sys
# import api
bufsize = 4096
base_path = "./www"
if __name__ == "__main__":
host_name = "localhost"
server_port = 8080
arg_n = 1
arg_len = l... | 30.75 | 84 | 0.536811 |
03d16b56e7eb71686fb7086761419a2ac514491c | 5,771 | py | Python | contents/1_command_line_reinforcement_learning/treasure_on_right.py | Pankaj-Baranwal/Reinforcement-learning-with-tensorflow | cf738d3e975aa9d2384dcd1a65dbdd156ddd970f | [
"MIT"
] | null | null | null | contents/1_command_line_reinforcement_learning/treasure_on_right.py | Pankaj-Baranwal/Reinforcement-learning-with-tensorflow | cf738d3e975aa9d2384dcd1a65dbdd156ddd970f | [
"MIT"
] | null | null | null | contents/1_command_line_reinforcement_learning/treasure_on_right.py | Pankaj-Baranwal/Reinforcement-learning-with-tensorflow | cf738d3e975aa9d2384dcd1a65dbdd156ddd970f | [
"MIT"
] | null | null | null | """
A simple example for Reinforcement Learning using table lookup Q-learning method.
An agent "o" is on the left of a 1 dimensional world, the treasure is on the rightmost location.
Run this program and to see how the agent will improve its strategy of finding the treasure.
View more on my tutorial page: https://morv... | 40.929078 | 603 | 0.666609 |
03d430af1217994371a7fc92b45f322c0f6446ff | 6,427 | py | Python | common/data.py | looselyconnected/fastai | 12d38d760393f1a677cc825d99283c8efcffbef5 | [
"MIT"
] | null | null | null | common/data.py | looselyconnected/fastai | 12d38d760393f1a677cc825d99283c8efcffbef5 | [
"MIT"
] | null | null | null | common/data.py | looselyconnected/fastai | 12d38d760393f1a677cc825d99283c8efcffbef5 | [
"MIT"
] | null | null | null | import pandas as pd
import numpy as np
from fastai.structured import apply_cats
from io import StringIO
from sklearn.metrics import mean_squared_error
import matplotlib.pyplot as plt
import seaborn as sns
import time
import os
from contextlib import contextmanager
from sklearn.metrics import mean_squared_error
#... | 34.005291 | 110 | 0.632644 |
03d56a3fb87b437933882dff43b9721b0cb74ab5 | 86 | py | Python | run.py | heston/label-commander | 327c1e105bce83b8b674b55411f7fe2650d3a610 | [
"MIT"
] | 3 | 2019-03-25T04:33:01.000Z | 2021-01-03T22:21:04.000Z | run.py | heston/label-commander | 327c1e105bce83b8b674b55411f7fe2650d3a610 | [
"MIT"
] | 4 | 2020-03-26T06:56:18.000Z | 2022-01-02T19:50:12.000Z | run.py | heston/label-commander | 327c1e105bce83b8b674b55411f7fe2650d3a610 | [
"MIT"
] | 1 | 2021-11-30T22:33:41.000Z | 2021-11-30T22:33:41.000Z | from labelcommander import listener
if __name__ == '__main__':
listener.listen()
| 17.2 | 35 | 0.744186 |
03d58fb77cc50e8c7e2d0563b74268be5018aa59 | 314 | py | Python | src/Zadanie3/Checker.py | TestowanieAutomatyczneUG/laboratorium-9-LudwikaMalinowska | 264823f21d220a353528e5aa4fba9ff424a7ed5b | [
"MIT"
] | null | null | null | src/Zadanie3/Checker.py | TestowanieAutomatyczneUG/laboratorium-9-LudwikaMalinowska | 264823f21d220a353528e5aa4fba9ff424a7ed5b | [
"MIT"
] | null | null | null | src/Zadanie3/Checker.py | TestowanieAutomatyczneUG/laboratorium-9-LudwikaMalinowska | 264823f21d220a353528e5aa4fba9ff424a7ed5b | [
"MIT"
] | null | null | null |
from Zadanie3.AlarmClock import AlarmClock
| 19.625 | 46 | 0.640127 |
03d5e71eac1ee63a4847306cf3c4d429e8818a82 | 1,039 | py | Python | passmate/config.py | TobiasKaiser/passmate | 49c7d528a71ced7a9c395fafa22cc4cc2dddfc7e | [
"Apache-2.0"
] | 11 | 2018-02-05T16:32:22.000Z | 2022-02-11T06:56:17.000Z | passmate/config.py | TobiasKaiser/passmate | 49c7d528a71ced7a9c395fafa22cc4cc2dddfc7e | [
"Apache-2.0"
] | 15 | 2017-10-08T13:23:03.000Z | 2019-02-16T23:03:40.000Z | passmate/config.py | TobiasKaiser/passmate | 49c7d528a71ced7a9c395fafa22cc4cc2dddfc7e | [
"Apache-2.0"
] | 1 | 2019-05-03T03:49:11.000Z | 2019-05-03T03:49:11.000Z | import platform
from pathlib import Path
from dataclasses import dataclass
| 31.484848 | 82 | 0.641001 |
03d72a96e0bb111eee8bbb9b6df1fc3b8c2f4ed6 | 101 | py | Python | intervalmap/__init__.py | marciogameiro/intervalmap | 2ae87100dc3954a67e62d30f1f7882ea40a0e326 | [
"MIT"
] | null | null | null | intervalmap/__init__.py | marciogameiro/intervalmap | 2ae87100dc3954a67e62d30f1f7882ea40a0e326 | [
"MIT"
] | null | null | null | intervalmap/__init__.py | marciogameiro/intervalmap | 2ae87100dc3954a67e62d30f1f7882ea40a0e326 | [
"MIT"
] | null | null | null | # __init__.py
# Marcio Gameiro
# 2021-01-05
# MIT LICENSE
from intervalmap.PlotIntervalMap import *
| 14.428571 | 41 | 0.762376 |
03d7a95c066c675726f7f6a54e1d1bc42d1e9abc | 4,902 | py | Python | neural_network_lyapunov/examples/tinydiffsim/learn_ca_dyn.py | hongkai-dai/neural-network-lyapunov-1 | 8843c13f69f7f39cbb939ab250413e76f61843f6 | [
"MIT"
] | 58 | 2021-06-21T08:59:52.000Z | 2022-03-31T14:35:23.000Z | neural_network_lyapunov/examples/tinydiffsim/learn_ca_dyn.py | StanfordASL/neural-network-lyapunov | 9e5db1c7f91b42df729026c9aa8575bc126f66b6 | [
"MIT"
] | 8 | 2021-08-22T05:31:23.000Z | 2022-03-29T03:47:07.000Z | neural_network_lyapunov/examples/tinydiffsim/learn_ca_dyn.py | StanfordASL/neural-network-lyapunov | 9e5db1c7f91b42df729026c9aa8575bc126f66b6 | [
"MIT"
] | 11 | 2021-06-21T04:29:59.000Z | 2022-03-30T05:54:43.000Z | import neural_network_lyapunov.worlds as worlds
import neural_network_lyapunov.utils as utils
import neural_network_lyapunov.control_affine_system as mut
import pytinydiffsim as pd
import argparse
import torch
import yaml
if __name__ == "__main__":
parser = argparse.ArgumentParser(
description="train... | 33.806897 | 77 | 0.583639 |
03d8328b61bc799b5ba1024c6c14cfed870ecffb | 1,038 | py | Python | Python Code/Wh_manage-master/Wh_manage-master/wh_manage/productDetails/models.py | AkashKV-1998/Warehouse-Management-System | 33d96c52064262156ddcd459a36e2f63d4df2c30 | [
"Apache-2.0"
] | 3 | 2021-09-05T16:09:58.000Z | 2022-03-25T14:32:34.000Z | Python Code/Wh_manage-master/Wh_manage-master/wh_manage/productDetails/models.py | AkashKV-1998/Warehouse-Management-System | 33d96c52064262156ddcd459a36e2f63d4df2c30 | [
"Apache-2.0"
] | null | null | null | Python Code/Wh_manage-master/Wh_manage-master/wh_manage/productDetails/models.py | AkashKV-1998/Warehouse-Management-System | 33d96c52064262156ddcd459a36e2f63d4df2c30 | [
"Apache-2.0"
] | null | null | null | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import models
| 30.529412 | 80 | 0.735067 |
03d85822a20ea24f7c4d4a8477238913b316792b | 417 | py | Python | base/migrations/0035_outline_morale_on.py | rafsaf/Plemiona_Planer | 1a0e2da0c4b18f1abd1df876f688c6442cba17ce | [
"Apache-2.0"
] | 2 | 2020-11-15T12:50:07.000Z | 2020-11-17T21:54:54.000Z | base/migrations/0035_outline_morale_on.py | rafsaf/Plemiona_Planer | 1a0e2da0c4b18f1abd1df876f688c6442cba17ce | [
"Apache-2.0"
] | 21 | 2021-11-01T14:04:19.000Z | 2022-03-25T06:31:03.000Z | base/migrations/0035_outline_morale_on.py | rafsaf/Tribal-Wars-Planer | 083af9b1efe814be3abe975b9ac8faccc00ebb09 | [
"Apache-2.0"
] | null | null | null | # Generated by Django 4.0.2 on 2022-02-17 22:16
from django.db import migrations, models
| 21.947368 | 73 | 0.628297 |
03da330638b8a1576e15bc62abc446e553a243a9 | 5,210 | py | Python | WF_SDK/dmm.py | Digilent/WaveForms-SDK-Getting-Started | ae33d5e19552dea41ddfca6ec038fe462a922c73 | [
"MIT"
] | 3 | 2021-12-14T18:08:11.000Z | 2022-02-26T11:06:30.000Z | WF_SDK/dmm.py | Digilent/WaveForms-SDK-Getting-Started | ae33d5e19552dea41ddfca6ec038fe462a922c73 | [
"MIT"
] | null | null | null | WF_SDK/dmm.py | Digilent/WaveForms-SDK-Getting-Started | ae33d5e19552dea41ddfca6ec038fe462a922c73 | [
"MIT"
] | null | null | null | """ DIGITAL MULTIMETER CONTROL FUNCTIONS: open, measure, close """
import ctypes # import the C compatible data types
from sys import platform, path # this is needed to check the OS type and get the PATH
from os import sep # OS specific file path separators
# load the dynamic lib... | 43.057851 | 149 | 0.638196 |
03db6243c45ed78fbff736368c5df610046c336d | 403 | py | Python | camproxy/app/routes.py | k-wojcik/hassio-addons | 4d82843136d593fbee5d839b45713680594a1f28 | [
"Apache-2.0"
] | null | null | null | camproxy/app/routes.py | k-wojcik/hassio-addons | 4d82843136d593fbee5d839b45713680594a1f28 | [
"Apache-2.0"
] | null | null | null | camproxy/app/routes.py | k-wojcik/hassio-addons | 4d82843136d593fbee5d839b45713680594a1f28 | [
"Apache-2.0"
] | null | null | null | from datetime import datetime
from flask import Flask, render_template, request, Response
import stream
import json
from shared import logger
from main import app | 26.866667 | 71 | 0.74938 |
03db670dee02fd2299659dad3e38740bdd61a32c | 2,107 | py | Python | partition_type.py | DenisNovac/GPTUtils | cecb3f63e616df5eb77e67bb8684e82b86e101d1 | [
"MIT"
] | null | null | null | partition_type.py | DenisNovac/GPTUtils | cecb3f63e616df5eb77e67bb8684e82b86e101d1 | [
"MIT"
] | null | null | null | partition_type.py | DenisNovac/GPTUtils | cecb3f63e616df5eb77e67bb8684e82b86e101d1 | [
"MIT"
] | null | null | null | # Enumeration for GPT disks utility (for Python 3)
#
# Other GPT utilities https://github.com/DenisNovac/GPTUtils
# Documentation https://en.wikipedia.org/wiki/GUID_Partition_Table
from enum import Enum
| 50.166667 | 92 | 0.78168 |
03db6cf4674ca4c09f270ace6aad4ada5abd8720 | 446 | py | Python | api/app/celery/celery_app.py | VidroX/recommdo | fe518158b1a63225816054fb129f680e1d0c7d9c | [
"MIT"
] | null | null | null | api/app/celery/celery_app.py | VidroX/recommdo | fe518158b1a63225816054fb129f680e1d0c7d9c | [
"MIT"
] | null | null | null | api/app/celery/celery_app.py | VidroX/recommdo | fe518158b1a63225816054fb129f680e1d0c7d9c | [
"MIT"
] | null | null | null | from celery import Celery
from app import settings
broker_url = 'redis://:' + settings.REDIS_PASSWORD + '@redis:6379/0'
celery_app = Celery('recommdo', broker=broker_url, include=['app.celery.celery_worker'])
celery_app.conf.task_routes = {
"app.celery.celery_worker.import_and_analyze_purchases": {'queue': 'celer... | 34.307692 | 88 | 0.755605 |
03db746274ce14f01fd2c68bd4565066f688e0cc | 4,765 | py | Python | ActionSystem.py | Rookfighter/TextAdventure | f24176065c9be26bd3bee983c2a63215452cb314 | [
"MIT"
] | 2 | 2016-03-21T15:26:02.000Z | 2016-03-21T15:26:05.000Z | ActionSystem.py | Rookfighter/TextAdventure | f24176065c9be26bd3bee983c2a63215452cb314 | [
"MIT"
] | null | null | null | ActionSystem.py | Rookfighter/TextAdventure | f24176065c9be26bd3bee983c2a63215452cb314 | [
"MIT"
] | null | null | null | from EventSystem import Event
import utils | 30.741935 | 87 | 0.583631 |
03dcb1403bf2626fa9e60230581256736ccc99ba | 1,192 | py | Python | yafas/auth/resources.py | lallamilagro/yafas-server | 8bd8b64c7bfdaeeadffe0daf91eecf91091fcb94 | [
"MIT"
] | null | null | null | yafas/auth/resources.py | lallamilagro/yafas-server | 8bd8b64c7bfdaeeadffe0daf91eecf91091fcb94 | [
"MIT"
] | null | null | null | yafas/auth/resources.py | lallamilagro/yafas-server | 8bd8b64c7bfdaeeadffe0daf91eecf91091fcb94 | [
"MIT"
] | null | null | null | import falcon
from . import CookieCreator, data_api, schemas
| 24.326531 | 72 | 0.687081 |
03deed2eb45e83f7284046e17bf2aaf69dbbad88 | 14,394 | py | Python | train_model.py | taiducvu/VNG-NSFW-DETECTION | f49b6ad21ed9c8646c402a37015a80258fb79a68 | [
"MIT"
] | null | null | null | train_model.py | taiducvu/VNG-NSFW-DETECTION | f49b6ad21ed9c8646c402a37015a80258fb79a68 | [
"MIT"
] | null | null | null | train_model.py | taiducvu/VNG-NSFW-DETECTION | f49b6ad21ed9c8646c402a37015a80258fb79a68 | [
"MIT"
] | null | null | null | from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
import os
import tensorflow as tf
import data as dt
import vng_model as md
import time
import csv
import math
FLAGS = tf.app.flags.FLAGS
tf.app.flags.DEFINE_string('train_dir', '/home/taivu/workspace/Pycharm_... | 41.481268 | 118 | 0.553633 |
03deff63d4fe5a3fc6c43174f1b43ca9ad27e1c4 | 1,417 | py | Python | scanpy_gene_filtering.py | granatumx/gbox-py | b3e264a22bc6a041f2dd631d952eae29c0ecae21 | [
"MIT"
] | null | null | null | scanpy_gene_filtering.py | granatumx/gbox-py | b3e264a22bc6a041f2dd631d952eae29c0ecae21 | [
"MIT"
] | 1 | 2020-06-16T17:14:45.000Z | 2020-06-16T17:14:45.000Z | scanpy_gene_filtering.py | granatumx/gbox-py | b3e264a22bc6a041f2dd631d952eae29c0ecae21 | [
"MIT"
] | 2 | 2020-06-16T16:42:40.000Z | 2020-08-28T16:59:42.000Z | import math
import scanpy.api as sc
import numpy as np
from granatum_sdk import Granatum
if __name__ == "__main__":
main()
| 26.735849 | 129 | 0.637262 |
03e220ad44802d7ccaad8ff67ed213cf295d4afb | 37,309 | py | Python | stores/apps/preferences/views.py | diassor/CollectorCity-Market-Place | 892ad220b8cf1c0fc7433f625213fe61729522b2 | [
"Apache-2.0"
] | 135 | 2015-03-19T13:28:18.000Z | 2022-03-27T06:41:42.000Z | stores/apps/preferences/views.py | dfcoding/CollectorCity-Market-Place | e59acec3d600c049323397b17cae14fdcaaaec07 | [
"Apache-2.0"
] | null | null | null | stores/apps/preferences/views.py | dfcoding/CollectorCity-Market-Place | e59acec3d600c049323397b17cae14fdcaaaec07 | [
"Apache-2.0"
] | 83 | 2015-01-30T01:00:15.000Z | 2022-03-08T17:25:10.000Z | """
Edit shop preferences
"""
import datetime
from preferences.forms import MarketingForm, TaxStateEditForm
import logging
from django.conf import settings
from django.core.urlresolvers import reverse
from django.http import HttpResponseRedirect, HttpResponse, Http404, HttpResponseForbidden
from django.shortcuts i... | 38.265641 | 152 | 0.638613 |
03e365fc58c1889f65eac6521d7aecdc3431dbf8 | 3,538 | py | Python | pagapp/application_api/album_api.py | eugeneandrienko/PyArtistsGallery | b75114955859d45d9dfb5c901213f25a6e09f488 | [
"MIT"
] | null | null | null | pagapp/application_api/album_api.py | eugeneandrienko/PyArtistsGallery | b75114955859d45d9dfb5c901213f25a6e09f488 | [
"MIT"
] | null | null | null | pagapp/application_api/album_api.py | eugeneandrienko/PyArtistsGallery | b75114955859d45d9dfb5c901213f25a6e09f488 | [
"MIT"
] | null | null | null | """Handlers for albums' API calls."""
import json
from flask import request, current_app
from flask_login import login_required
from pagapp.support_functions import remove_danger_symbols
from pagapp.application_api import application_api
from pagapp.models import db
from pagapp.models.albums import Albums
from pagapp... | 31.589286 | 80 | 0.644997 |
03e4c99b5e129d999b826ed6583329b22a13afb6 | 2,097 | py | Python | DNBC4tools/tools/utils.py | lishuangshuang0616/DNBC4dev | 2fc54e87edc5586e92d470669b6aa37661ac016a | [
"MIT"
] | null | null | null | DNBC4tools/tools/utils.py | lishuangshuang0616/DNBC4dev | 2fc54e87edc5586e92d470669b6aa37661ac016a | [
"MIT"
] | null | null | null | DNBC4tools/tools/utils.py | lishuangshuang0616/DNBC4dev | 2fc54e87edc5586e92d470669b6aa37661ac016a | [
"MIT"
] | null | null | null | import os,sys
import time
import logging
import sys
from datetime import timedelta
from subprocess import check_call
from DNBC4tools.__init__ import _root_dir
| 33.285714 | 93 | 0.593705 |
03e53a24fd233c0d84133edd52d9952b5a344c50 | 346 | py | Python | bot.py | parityapp/mattermost-bot | 80f9a21ed8962226d74266e492f3a763d45314b4 | [
"MIT"
] | null | null | null | bot.py | parityapp/mattermost-bot | 80f9a21ed8962226d74266e492f3a763d45314b4 | [
"MIT"
] | null | null | null | bot.py | parityapp/mattermost-bot | 80f9a21ed8962226d74266e492f3a763d45314b4 | [
"MIT"
] | null | null | null | import re
from mattermost_bot.bot import listen_to
from mattermost_bot.bot import respond_to
| 23.066667 | 60 | 0.731214 |