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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
2d1a1494c0666c00a049928dca6072b9f51fbac0 | 997 | py | Python | jacky_python/16_3Sum_Closest.py | jackyyeh5111/leetcode | 13197e1bd6f2adfe19b0ec5c57b14346b3269f00 | [
"MIT"
] | null | null | null | jacky_python/16_3Sum_Closest.py | jackyyeh5111/leetcode | 13197e1bd6f2adfe19b0ec5c57b14346b3269f00 | [
"MIT"
] | null | null | null | jacky_python/16_3Sum_Closest.py | jackyyeh5111/leetcode | 13197e1bd6f2adfe19b0ec5c57b14346b3269f00 | [
"MIT"
] | null | null | null | from typing import List
nums = [-1,2,1,-4]
target = 1
solution = Solution()
print (solution.threeSumClosest(nums, target)) | 27.694444 | 67 | 0.399198 |
2d1a2b30f6fe176c4f77006f268ca280feaf8b60 | 9,652 | py | Python | train/manager.py | LiuTed/gym-TD | 66fda4fbd877ceb0ce815e7a6a746ac0afde21a0 | [
"MIT"
] | null | null | null | train/manager.py | LiuTed/gym-TD | 66fda4fbd877ceb0ce815e7a6a746ac0afde21a0 | [
"MIT"
] | null | null | null | train/manager.py | LiuTed/gym-TD | 66fda4fbd877ceb0ce815e7a6a746ac0afde21a0 | [
"MIT"
] | null | null | null | import os
import shutil
import re
from collections import OrderedDict
import subprocess
import numpy as np
import atexit
if __name__ == '__main__':
results = OrderedDict()
print('Checking files')
load_files()
print('Results:')
result_list()
while True:
cmd = input('> ')
... | 34.106007 | 117 | 0.423436 |
2d1adcf9576413e99c39f705340235365fb3ff9b | 29,251 | py | Python | api/cueSearch/elasticSearch/elastic_search_indexing.py | cuebook/CueSearch | 8bf047de273b27bba41b8bf4e266aac1eee7f81a | [
"Apache-2.0"
] | 3 | 2022-02-10T17:00:19.000Z | 2022-03-29T14:31:25.000Z | api/cueSearch/elasticSearch/elastic_search_indexing.py | cuebook/CueSearch | 8bf047de273b27bba41b8bf4e266aac1eee7f81a | [
"Apache-2.0"
] | null | null | null | api/cueSearch/elasticSearch/elastic_search_indexing.py | cuebook/CueSearch | 8bf047de273b27bba41b8bf4e266aac1eee7f81a | [
"Apache-2.0"
] | null | null | null | import os
import time
import logging
from typing import List, Dict
from collections import deque
# from search import app
from elasticsearch import Elasticsearch
from elasticsearch.helpers import parallel_bulk
from datetime import datetime
# from config import ELASTICSEARCH_URL
import threading
from .utils import Uti... | 41.025245 | 140 | 0.487607 |
2d1b6cf1027a4acfa73e0e7e170f9c6bc8460649 | 3,012 | py | Python | back2back/use_cases/natdiscovery.py | excentis/ByteBlower_python_examples | 0e082e17413abf5e25f6d14b85e50e7f73e7f965 | [
"BSD-3-Clause"
] | 2 | 2018-10-04T10:55:55.000Z | 2018-11-29T08:51:38.000Z | back2back/use_cases/natdiscovery.py | excentis/ByteBlower_python_examples | 0e082e17413abf5e25f6d14b85e50e7f73e7f965 | [
"BSD-3-Clause"
] | null | null | null | back2back/use_cases/natdiscovery.py | excentis/ByteBlower_python_examples | 0e082e17413abf5e25f6d14b85e50e7f73e7f965 | [
"BSD-3-Clause"
] | 3 | 2018-10-04T10:56:29.000Z | 2019-10-28T10:19:40.000Z | """
A simple example of NATDiscovery between ByteBlower ports.
To discover the public IP address we will send a single packet
upstream, capture this packet at the WAN side and finally
pick it apart.
This example demonstrates:
* How to transmit a single custom packet.
* How to cap... | 27.381818 | 79 | 0.723108 |
2d1cdb8c16bb2b3f1d6f22088415125ae731aadd | 1,510 | py | Python | scripts/plot.py | dfvella/vtol | a4dfca2c29cae653156f2681d58ba6c83d3639f3 | [
"MIT"
] | null | null | null | scripts/plot.py | dfvella/vtol | a4dfca2c29cae653156f2681d58ba6c83d3639f3 | [
"MIT"
] | null | null | null | scripts/plot.py | dfvella/vtol | a4dfca2c29cae653156f2681d58ba6c83d3639f3 | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
import sys
import matplotlib.pyplot as plt
try:
filename = sys.argv[1]
except IndexError:
print('error: data file not specified')
exit(1)
#response = [ 0.1, 0.1, 0.1, 0.1, 0.1, 0.1, 0.1, 0.1, 0.1, 0.1 ]
#response = [ 0.2, 0.2, 0.2, 0.2, 0.1, 0.05, 0.02, 0.02, 0.01, 0.0 ]
#response... | 23.968254 | 79 | 0.541722 |
2d1d1af9b4d1faf815bb166860eb45a8e47de65c | 1,239 | py | Python | iv/Leetcode/easy/594_longest_harmonius_subseuence.py | iamsuman/iv | bf68d3fd45455b6041e74b09272f69503bf7a8ac | [
"MIT"
] | 2 | 2020-09-19T22:28:15.000Z | 2020-10-03T01:44:53.000Z | iv/Leetcode/easy/594_longest_harmonius_subseuence.py | iamsuman/iv | bf68d3fd45455b6041e74b09272f69503bf7a8ac | [
"MIT"
] | null | null | null | iv/Leetcode/easy/594_longest_harmonius_subseuence.py | iamsuman/iv | bf68d3fd45455b6041e74b09272f69503bf7a8ac | [
"MIT"
] | 1 | 2020-10-03T01:43:30.000Z | 2020-10-03T01:43:30.000Z |
nums = [1,3,2,2,5,2,3,7]
nums = [1,2,3,4]
nums = [1,1,1,1]
nums = [1,3,5,7,9,11,13,15,17]
nums = [1,2,-1,1,2,5,2,5,2]
nums = [3,2,2,3,2,1,3,3,3,-2,0,3,2,1,0,3,1,0,1,3,0,3,3]
s = Solution()
print(s.findLHS(nums))
| 27.533333 | 63 | 0.405973 |
2d20aa97d17b794b0ada73ea9dbd90eae5f17a3d | 805 | py | Python | constants/config.py | daniele21/Financial_Sentiment_Analysis | 3734733f2d1d291c81a6239de121edcce861b463 | [
"MIT"
] | null | null | null | constants/config.py | daniele21/Financial_Sentiment_Analysis | 3734733f2d1d291c81a6239de121edcce861b463 | [
"MIT"
] | null | null | null | constants/config.py | daniele21/Financial_Sentiment_Analysis | 3734733f2d1d291c81a6239de121edcce861b463 | [
"MIT"
] | 1 | 2021-08-18T01:40:56.000Z | 2021-08-18T01:40:56.000Z | MAX_WORD_SENTENCE = 40
# VECTORIZATIONS
TDIDF_EMBEDDING = 'tdidf'
TOKENIZER = 'tokenizer'
# IMBALANCE
SMOTE_IMBALANCE = 'smote'
# DATASET TYPES
FINANCIAL_DATASET = 'financial_phrases_bank'
MOVIE_DATASET = 'movie_data'
SST_DATASET = 'sst_dataset'
TWITTER_DATASET = 'twitter_data'
YAHOO_DATASET = 'yahoo_data'
NN_DATASE... | 24.393939 | 70 | 0.803727 |
2d21657ca0ef41aaa023846b0dd757a170b8bb63 | 211 | py | Python | game/serializers/question_with_answer_serializer.py | dimadk24/english-fight-api | 506a3eb2cb4cb91203b1e023b5248c27975df075 | [
"MIT"
] | null | null | null | game/serializers/question_with_answer_serializer.py | dimadk24/english-fight-api | 506a3eb2cb4cb91203b1e023b5248c27975df075 | [
"MIT"
] | null | null | null | game/serializers/question_with_answer_serializer.py | dimadk24/english-fight-api | 506a3eb2cb4cb91203b1e023b5248c27975df075 | [
"MIT"
] | null | null | null | from rest_framework import serializers
from game.serializers.question_serializer import QuestionSerializer
| 26.375 | 67 | 0.862559 |
2d244b053fbd72372fcf48df0ff878197d4a3649 | 4,674 | py | Python | examples/overlapping_gaussians.py | neurodata/honest-forests | a25c2b10c1e8d9f2db2b31f411440d43050bb4b4 | [
"MIT"
] | 7 | 2022-02-15T14:40:11.000Z | 2022-02-22T22:45:13.000Z | examples/overlapping_gaussians.py | neurodata/honest-forests | a25c2b10c1e8d9f2db2b31f411440d43050bb4b4 | [
"MIT"
] | 3 | 2022-02-20T20:55:20.000Z | 2022-02-21T07:43:03.000Z | examples/overlapping_gaussians.py | neurodata/honest-forests | a25c2b10c1e8d9f2db2b31f411440d43050bb4b4 | [
"MIT"
] | 2 | 2022-02-22T22:39:28.000Z | 2022-03-31T22:57:32.000Z | """A comparison of forest calibration"""
# Authors: Ronan Perry
# Adopted from: https://github.com/rflperry/ProgLearn/blob/UF/
# License: MIT
# and https://github.com/scikit-learn/scikit-learn/
# License: BSD 3 clause
import numpy as np
from sklearn import datasets
from sklearn.ensemble import RandomForestClassifier
f... | 27.333333 | 85 | 0.608686 |
2d2636e3be00beaf683ce1a6c4e1571fde6f168e | 7,280 | py | Python | cwc/models/density_estimators.py | perellonieto/background_check | a5b6549a62be276c7199e87e78a94a64af688ab9 | [
"MIT"
] | 4 | 2017-01-14T12:59:58.000Z | 2021-06-21T10:55:17.000Z | cwc/models/density_estimators.py | REFRAME/background_check | 7da967bad4a6d8cbc924b5301041f3c99ba39595 | [
"MIT"
] | null | null | null | cwc/models/density_estimators.py | REFRAME/background_check | 7da967bad4a6d8cbc924b5301041f3c99ba39595 | [
"MIT"
] | null | null | null | from sklearn import svm
from ..data_wrappers import reject
import numpy as np
from scipy.stats import multivariate_normal
from sklearn.mixture import GMM
from sklearn.neighbors import KernelDensity
class MyMultivariateKernelDensity(object):
| 33.860465 | 85 | 0.593681 |
2d263e5b201c53646dfb63b01b0b12af6c504dd2 | 9,027 | py | Python | components/homme/scripts_for_paper/dictionaries.py | cjvogl/E3SM | d8990bc2efda76b6f9096f989eed46bd3ab87463 | [
"FTL",
"zlib-acknowledgement",
"RSA-MD"
] | 1 | 2019-12-11T16:41:13.000Z | 2019-12-11T16:41:13.000Z | components/homme/scripts_for_paper/dictionaries.py | cjvogl/E3SM | d8990bc2efda76b6f9096f989eed46bd3ab87463 | [
"FTL",
"zlib-acknowledgement",
"RSA-MD"
] | null | null | null | components/homme/scripts_for_paper/dictionaries.py | cjvogl/E3SM | d8990bc2efda76b6f9096f989eed46bd3ab87463 | [
"FTL",
"zlib-acknowledgement",
"RSA-MD"
] | null | null | null | from netCDF4 import Dataset
import glob
# This is meant to be an all-inclusive list of possible methods
methodDict = {'KGU35-native': 5,
'ARS232-native': 7,
'KGU35': 21,
'ARS232': 22,
'DBM453': 23,
'ARS222': 24,
'ARS233': 25,
... | 34.719231 | 101 | 0.519442 |
2d29153c114bd986a95158918299447f1b171cef | 1,945 | py | Python | ptt/page.py | rayhzh/pttpost-parser | 340b8ac41041fe6421f5251ed7454e19cf981129 | [
"MIT"
] | 1 | 2021-06-17T13:38:16.000Z | 2021-06-17T13:38:16.000Z | ptt/page.py | rayhzh/pttpost-parser | 340b8ac41041fe6421f5251ed7454e19cf981129 | [
"MIT"
] | null | null | null | ptt/page.py | rayhzh/pttpost-parser | 340b8ac41041fe6421f5251ed7454e19cf981129 | [
"MIT"
] | null | null | null | import re
from .type import Url
from typing import Iterator, List
import urllib.parse as urlpasre
from abc import ABC, abstractmethod
| 28.602941 | 72 | 0.590746 |
2d2de350e0e722810f7b4e17086205068cb456da | 1,093 | py | Python | regparser/grammar/interpretation_headers.py | cfpb/regulations-parser | 9b6e1ab2dbec93a915eb6da9a2d88c723b9ac424 | [
"CC0-1.0"
] | 36 | 2015-01-05T21:17:36.000Z | 2020-04-28T21:02:55.000Z | regparser/grammar/interpretation_headers.py | DalavanCloud/regulations-parser | 9b6e1ab2dbec93a915eb6da9a2d88c723b9ac424 | [
"CC0-1.0"
] | 49 | 2015-01-28T15:54:25.000Z | 2018-08-20T20:20:08.000Z | regparser/grammar/interpretation_headers.py | DalavanCloud/regulations-parser | 9b6e1ab2dbec93a915eb6da9a2d88c723b9ac424 | [
"CC0-1.0"
] | 23 | 2015-01-28T15:34:18.000Z | 2021-02-20T10:53:34.000Z | from pyparsing import LineEnd, LineStart, SkipTo, Regex
from regparser.grammar import atomic, unified
section = (
atomic.section_marker.copy().leaveWhitespace()
+ unified.part_section
+ SkipTo(LineEnd())
)
par = (
atomic.section.copy().leaveWhitespace()
+ unified.depth1_p
+ SkipTo(LineEnd()... | 27.325 | 75 | 0.694419 |
2d2fd8c8117a19c737b5b11595190e83eb76db85 | 8,154 | py | Python | Turbo_I2C/BMP280.py | emwtur/Turbo_Python | 58967b122c9804b697470b5ab909f5e157b08f24 | [
"MIT"
] | null | null | null | Turbo_I2C/BMP280.py | emwtur/Turbo_Python | 58967b122c9804b697470b5ab909f5e157b08f24 | [
"MIT"
] | null | null | null | Turbo_I2C/BMP280.py | emwtur/Turbo_Python | 58967b122c9804b697470b5ab909f5e157b08f24 | [
"MIT"
] | null | null | null | # Copyright (c) 2014 Adafruit Industries
import logging
import time
| 37.232877 | 144 | 0.705789 |
2d30bc3c0d1a844334891013f6f54315d433c738 | 1,707 | py | Python | classes/perms.py | Geekid812/tournament-master | 0b357b996e98859f87de0079f83f645e768e8fac | [
"MIT"
] | 1 | 2020-11-28T23:29:36.000Z | 2020-11-28T23:29:36.000Z | classes/perms.py | Geekid812/tournament-master | 0b357b996e98859f87de0079f83f645e768e8fac | [
"MIT"
] | null | null | null | classes/perms.py | Geekid812/tournament-master | 0b357b996e98859f87de0079f83f645e768e8fac | [
"MIT"
] | null | null | null | # Perms Class
# Importing Libraries
import discord
from discord.ext import commands
from classes.channel import Channel
def authorized(ctx, user=None, level=5, to=False):
"""
Checks if the specified user has the required permissions.
Level 1 - Mini Mod
Level 2 - Mod
Level 3 - Super Mod
Lev... | 22.168831 | 94 | 0.636204 |
2d31fb36bbc127eece967cc6d7bfbeedbbe21933 | 225,425 | pyt | Python | LinkedDataConnector.pyt | gengchenmai/esri-linked-data-connector | bd68a3526dae77f221d60d04a5dbb96b2e456407 | [
"Apache-2.0"
] | 2 | 2020-02-18T06:35:51.000Z | 2020-07-21T12:57:54.000Z | LinkedDataConnector.pyt | gengchenmai/esri-linked-data-connector | bd68a3526dae77f221d60d04a5dbb96b2e456407 | [
"Apache-2.0"
] | null | null | null | LinkedDataConnector.pyt | gengchenmai/esri-linked-data-connector | bd68a3526dae77f221d60d04a5dbb96b2e456407 | [
"Apache-2.0"
] | 2 | 2020-06-17T13:51:39.000Z | 2020-08-28T00:01:29.000Z | import arcpy
import os
import json
import requests
import re
import os
import collections
import datetime
import numpy
from sets import Set
from collections import OrderedDict
from collections import defaultdict
from collections import namedtuple
from decimal import Decimal
from arcpy import env
... | 43.417758 | 269 | 0.708595 |
2d330ccf20b0bd4e34bb3a01592990cc76bca7e3 | 188 | py | Python | music/shape/audio/fourier/coefficient/alpha.py | jedhsu/music | dea68c4a82296cd4910e786f533b2cbf861377c3 | [
"MIT"
] | null | null | null | music/shape/audio/fourier/coefficient/alpha.py | jedhsu/music | dea68c4a82296cd4910e786f533b2cbf861377c3 | [
"MIT"
] | null | null | null | music/shape/audio/fourier/coefficient/alpha.py | jedhsu/music | dea68c4a82296cd4910e786f533b2cbf861377c3 | [
"MIT"
] | null | null | null | """
*Alpha-Coefficient*
The alpha term in the fourier coefficient.
"""
from ._coefficient import FourierCoefficient
| 11.75 | 44 | 0.712766 |
2d3598ee4e5aabfea09ea77913d15276ad388685 | 4,904 | py | Python | neural_seq/utils.py | Dragon-hxl/LARC | c9f13f110a56aa2ecf837e464745375d9521409e | [
"MIT"
] | null | null | null | neural_seq/utils.py | Dragon-hxl/LARC | c9f13f110a56aa2ecf837e464745375d9521409e | [
"MIT"
] | null | null | null | neural_seq/utils.py | Dragon-hxl/LARC | c9f13f110a56aa2ecf837e464745375d9521409e | [
"MIT"
] | null | null | null | import argparse
| 40.866667 | 116 | 0.418434 |
2d359bca45bc6e6f2073a2891a9bc99f4d08e0df | 7,168 | py | Python | pypillometry/fakedata.py | wsojka00/pypillometry | 6c2258f1df2a435e6474ce33ebc46ce595d3d25e | [
"MIT"
] | 13 | 2020-07-01T02:00:23.000Z | 2021-11-18T22:49:54.000Z | pypillometry/fakedata.py | wsojka00/pypillometry | 6c2258f1df2a435e6474ce33ebc46ce595d3d25e | [
"MIT"
] | 17 | 2020-06-24T10:26:09.000Z | 2022-01-27T13:36:10.000Z | pypillometry/fakedata.py | wsojka00/pypillometry | 6c2258f1df2a435e6474ce33ebc46ce595d3d25e | [
"MIT"
] | 5 | 2020-06-30T20:03:36.000Z | 2022-01-27T13:22:34.000Z | """
fakedata.py
====================================
Generate artificial pupil-data.
"""
import numpy as np
import scipy.stats as stats
from .baseline import *
from .pupil import *
def generate_pupil_data(event_onsets, fs=1000, pad=5000, baseline_lowpass=0.2,
evoked_response_perc=0.02, respon... | 37.726316 | 130 | 0.667411 |
2d373b4ad5acb25372312662f936a4b9444821b2 | 608 | py | Python | Day 5/how_about_a_nice_game_of_chess_1.py | Shunderpooch/AdventOfCode2016 | 9651c829e2c1906fac82de1ec19e46561543362d | [
"MIT"
] | null | null | null | Day 5/how_about_a_nice_game_of_chess_1.py | Shunderpooch/AdventOfCode2016 | 9651c829e2c1906fac82de1ec19e46561543362d | [
"MIT"
] | null | null | null | Day 5/how_about_a_nice_game_of_chess_1.py | Shunderpooch/AdventOfCode2016 | 9651c829e2c1906fac82de1ec19e46561543362d | [
"MIT"
] | null | null | null | """
Arthur Dooner
Advent of Code Day 5
Challenge 1
"""
import sys
import hashlib
INTEGER_ID = 0
PASSWORD = ""
if len(sys.argv) < 2:
print("Please pass the puzzle input as a command line argument.")
exit(0)
while len(PASSWORD) < 8:
temp_md5 = md5_func(sys.argv[1] + str(INTEGER_ID))
if temp_md5[:5] ==... | 20.266667 | 69 | 0.661184 |
2d374d88bde8bd0c94df7c1ad08ceb013ac1f4c3 | 5,725 | py | Python | muvimaker/core/sound.py | JannisNe/muvi_maker | 5599789ccd12402f273a05b7421f03503087ab9b | [
"MIT"
] | 2 | 2021-06-11T08:56:18.000Z | 2021-12-18T11:40:05.000Z | muvimaker/core/sound.py | JannisNe/muvimaker | 5599789ccd12402f273a05b7421f03503087ab9b | [
"MIT"
] | 49 | 2021-06-10T12:20:51.000Z | 2022-03-01T09:03:42.000Z | muvimaker/core/sound.py | JannisNe/muvimaker | 5599789ccd12402f273a05b7421f03503087ab9b | [
"MIT"
] | null | null | null | import librosa, copy
import numpy as np
from muvimaker import main_logger
logger = main_logger.getChild(__name__)
standard_fmin = 32.7
| 34.281437 | 118 | 0.606638 |
2d376984cf7521c9d0b8668970e457c5497e11d2 | 1,204 | py | Python | estudiantes/migrations/0008_auto_20180411_2345.py | jlopez0591/SIGIA | e857e2273daa43ab64fa78df254275af2dbcc2a5 | [
"MIT"
] | null | null | null | estudiantes/migrations/0008_auto_20180411_2345.py | jlopez0591/SIGIA | e857e2273daa43ab64fa78df254275af2dbcc2a5 | [
"MIT"
] | 7 | 2020-02-12T00:42:15.000Z | 2022-03-11T23:23:48.000Z | estudiantes/migrations/0008_auto_20180411_2345.py | jlopez0591/SIGIA | e857e2273daa43ab64fa78df254275af2dbcc2a5 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
# Generated by Django 1.11.8 on 2018-04-12 04:45
from __future__ import unicode_literals
from django.db import migrations, models
import django.db.models.deletion
| 37.625 | 175 | 0.675249 |
2d381c92d99c3d97332feb4ffb198a371008ed12 | 2,945 | py | Python | api/migrations/0001_initial.py | backdev96/yamdb_final | ba61132adca74952eded09d0218ded6e234af9ee | [
"Apache-2.0"
] | null | null | null | api/migrations/0001_initial.py | backdev96/yamdb_final | ba61132adca74952eded09d0218ded6e234af9ee | [
"Apache-2.0"
] | 3 | 2021-06-05T00:11:14.000Z | 2021-09-22T19:57:18.000Z | api/migrations/0001_initial.py | backdev96/api_yamdb | 36210130bde3d6c7e5a7cbce6ab978b66c510067 | [
"MIT"
] | null | null | null | # Generated by Django 3.0.5 on 2020-12-07 16:56
import django.db.models.deletion
from django.conf import settings
from django.db import migrations, models
| 43.955224 | 133 | 0.582003 |
2d3b26e07e971889dea5e2310f72f3d78b472ae3 | 3,363 | py | Python | src/proj/urls.py | Liosha1366/Django_new | ace2ab3301ff5fc5dabb6967c08cd3145ba29377 | [
"Apache-2.0"
] | null | null | null | src/proj/urls.py | Liosha1366/Django_new | ace2ab3301ff5fc5dabb6967c08cd3145ba29377 | [
"Apache-2.0"
] | null | null | null | src/proj/urls.py | Liosha1366/Django_new | ace2ab3301ff5fc5dabb6967c08cd3145ba29377 | [
"Apache-2.0"
] | null | null | null | """proj URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/3.1/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: path('', views.home, name='home')
Class-based vi... | 43.115385 | 95 | 0.732084 |
2d3b855417b5b01166e9c53aefdcacbf633fd636 | 370 | py | Python | PythonExercicios/ex005.py | gabjohann/python_3 | 380cb622669ed82d6b22fdd09d41f02f1ad50a73 | [
"MIT"
] | null | null | null | PythonExercicios/ex005.py | gabjohann/python_3 | 380cb622669ed82d6b22fdd09d41f02f1ad50a73 | [
"MIT"
] | null | null | null | PythonExercicios/ex005.py | gabjohann/python_3 | 380cb622669ed82d6b22fdd09d41f02f1ad50a73 | [
"MIT"
] | null | null | null | # Faa um programa que leia um nmero inteiro e mostre na tela o seu sucessor e seu antecessor
num = int(input('Digite um nmero inteiro: '))
ant = num - 1
suc = num + 1
print('O sucessor de {} {} e seu antecessor {}'.format(num, suc, ant))
# Resoluo com somente uma varivel:
# print('O sucessor de {} {} e seu anteces... | 37 | 94 | 0.667568 |
2d3ce3e54e71945a04f010ae135aa8c962618bc4 | 369 | py | Python | modules/audio/settings.py | mlc2307/pyradio | 94b3705faea4d019f3f62efb49aa4f502c1a556e | [
"MIT"
] | null | null | null | modules/audio/settings.py | mlc2307/pyradio | 94b3705faea4d019f3f62efb49aa4f502c1a556e | [
"MIT"
] | null | null | null | modules/audio/settings.py | mlc2307/pyradio | 94b3705faea4d019f3f62efb49aa4f502c1a556e | [
"MIT"
] | null | null | null | """
Default audio settings.
"""
import numpy as np
from modules.socket.settings import PACKAGE_SIZE
# Number of sound channels.
CHANNELS = 2
# The size of the streaming buffer, that needs to fit into the socket buffer.
CHUNK_SIZE = PACKAGE_SIZE // CHANNELS // np.dtype(np.int16).itemsize
# Sound device frame rate. ... | 21.705882 | 77 | 0.742547 |
2d3e7531cb32703d410fe2028a3adbe23d3c323b | 46 | py | Python | Config/config.py | Sijiu/Xbill | b4f18d3e7db3b17ed4ccddc6a8971c25931428eb | [
"MIT"
] | 14 | 2020-03-15T13:40:02.000Z | 2021-06-15T18:04:08.000Z | Config/config.py | Sijiu/Xbill | b4f18d3e7db3b17ed4ccddc6a8971c25931428eb | [
"MIT"
] | 1 | 2020-05-24T13:14:46.000Z | 2020-05-24T13:14:46.000Z | Config/config.py | Sijiu/Xbill | b4f18d3e7db3b17ed4ccddc6a8971c25931428eb | [
"MIT"
] | 3 | 2020-05-05T00:23:36.000Z | 2021-06-10T01:18:16.000Z | START_DAY_OF_MONTH = 1
BUDGET_OF_MONTH = 7000
| 15.333333 | 22 | 0.826087 |
2d3ebd665cfd74c4bca8613faf2a14d58829782d | 445 | py | Python | pybline/__init__.py | arkottke/pybline | 6174047e94573d058c5af9556ed8b1dc394d758e | [
"MIT"
] | null | null | null | pybline/__init__.py | arkottke/pybline | 6174047e94573d058c5af9556ed8b1dc394d758e | [
"MIT"
] | null | null | null | pybline/__init__.py | arkottke/pybline | 6174047e94573d058c5af9556ed8b1dc394d758e | [
"MIT"
] | 1 | 2021-02-25T14:05:37.000Z | 2021-02-25T14:05:37.000Z | #!/usr/bin/python
# -*- coding: utf-8 -*-
"""pybline module."""
from pkg_resources import get_distribution
from scipy import constants
# Gravity in cm/sec/sec
# Used by modules of the package
GRAV = constants.g / constants.centi
from . import (
models,
tools
)
__author__ = 'Albert Kottke'
__copyright__ ... | 17.115385 | 49 | 0.719101 |
2d3ff46ea305f135c31ae254d262e3ccc6815b7c | 8,442 | py | Python | kicker/controllers/kicker.py | OpenTinyFootbal/kicker | f1ea6b1e5c4c570106840fbb1171596d224af113 | [
"MIT"
] | null | null | null | kicker/controllers/kicker.py | OpenTinyFootbal/kicker | f1ea6b1e5c4c570106840fbb1171596d224af113 | [
"MIT"
] | 3 | 2019-03-15T23:52:44.000Z | 2019-12-02T18:39:52.000Z | kicker/controllers/kicker.py | openkicker/kicker | f1ea6b1e5c4c570106840fbb1171596d224af113 | [
"MIT"
] | null | null | null | import ast
import base64
import jinja2
import logging
import random
import datetime
from functools import reduce
import werkzeug
from odoo import SUPERUSER_ID
from odoo import api, http
from odoo.exceptions import UserError
from odoo.http import request
from odoo.modules import get_module_resource
from odoo.addons.web... | 45.387097 | 172 | 0.602227 |
2d404ddffb52c313e2728aba0594c50a8c449448 | 2,231 | py | Python | parsl/dataflow/states.py | cylondata/parsl | 00ff9372bd841dafef8a0b3566c79ffe68f0e367 | [
"Apache-2.0"
] | 323 | 2017-07-28T21:31:27.000Z | 2022-03-05T13:06:05.000Z | parsl/dataflow/states.py | cylondata/parsl | 00ff9372bd841dafef8a0b3566c79ffe68f0e367 | [
"Apache-2.0"
] | 1,286 | 2017-06-01T16:50:00.000Z | 2022-03-31T16:45:14.000Z | parsl/dataflow/states.py | cylondata/parsl | 00ff9372bd841dafef8a0b3566c79ffe68f0e367 | [
"Apache-2.0"
] | 113 | 2017-06-03T11:38:40.000Z | 2022-03-26T16:43:05.000Z | from enum import IntEnum
FINAL_STATES = [States.exec_done, States.memo_done, States.failed, States.dep_fail]
"""States from which we will never move to another state, because the job has
either definitively completed or failed."""
FINAL_FAILURE_STATES = [States.failed, States.dep_fail]
"""States which are final and... | 32.808824 | 83 | 0.702824 |
2d440f8dd3dad819fd7125de07384635b8ab0e7b | 4,593 | py | Python | neuralxc/tests/test_neuralxc.py | semodi/neuralxc | 2af313646e1a2f05d7400075d5d803e771935cda | [
"BSD-3-Clause"
] | 24 | 2019-12-12T14:08:24.000Z | 2022-03-18T01:08:42.000Z | neuralxc/tests/test_neuralxc.py | semodi/neuralxc | 2af313646e1a2f05d7400075d5d803e771935cda | [
"BSD-3-Clause"
] | 13 | 2019-05-16T17:41:12.000Z | 2021-10-16T17:46:46.000Z | neuralxc/tests/test_neuralxc.py | semodi/neuralxc | 2af313646e1a2f05d7400075d5d803e771935cda | [
"BSD-3-Clause"
] | 6 | 2020-05-15T01:32:42.000Z | 2022-03-11T13:54:01.000Z | """
Unit and regression test for the neuralxc package.
"""
import copy
import os
import sys
from abc import ABC, abstractmethod
import dill as pickle
import matplotlib.pyplot as plt
import numpy as np
import pytest
# Import package, test suite, and other packages as needed
import neuralxc as xc
from neuralxc.constan... | 34.533835 | 117 | 0.661441 |
2d452fd0ed1784839bb6b621736562bb653b7348 | 3,848 | py | Python | dataWork/gathering/press/_1.py | eiriniavraam/digital-leadership-center | 91d940825c705c2e8bebfd14be8ae7cd493b8ae0 | [
"MIT"
] | null | null | null | dataWork/gathering/press/_1.py | eiriniavraam/digital-leadership-center | 91d940825c705c2e8bebfd14be8ae7cd493b8ae0 | [
"MIT"
] | null | null | null | dataWork/gathering/press/_1.py | eiriniavraam/digital-leadership-center | 91d940825c705c2e8bebfd14be8ae7cd493b8ae0 | [
"MIT"
] | null | null | null | #!/usr/bin/python3
"""
Docstring
------------------------------------------------------------------------------
_1.py | creting corpus of text to upload to Mongo
------------------------------------------------------------------------------
Author: Simone Santoni, simone.santoni.1@city.ac.uk
Dates:
- created M... | 23.753086 | 78 | 0.631237 |
2d464bb2b382adc56b7664d71eeadee804346536 | 1,056 | py | Python | stock_news_beta/stock_news_beta/apps/focus/migrations/0004_auto_20190125_1724.py | zws910/stock-news | dcf90d25a36a903e44ddfd04bb655f665b692b36 | [
"MIT"
] | null | null | null | stock_news_beta/stock_news_beta/apps/focus/migrations/0004_auto_20190125_1724.py | zws910/stock-news | dcf90d25a36a903e44ddfd04bb655f665b692b36 | [
"MIT"
] | null | null | null | stock_news_beta/stock_news_beta/apps/focus/migrations/0004_auto_20190125_1724.py | zws910/stock-news | dcf90d25a36a903e44ddfd04bb655f665b692b36 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
# Generated by Django 1.11.11 on 2019-01-25 09:24
from __future__ import unicode_literals
from django.db import migrations
| 29.333333 | 94 | 0.568182 |
740a7318bc969a8f59812b25ba2062f1998de315 | 1,062 | py | Python | show_perturbations.py | HKJL10201/fast-feature-fool | bdd44212461628e94e62e75e528fefcf6467336c | [
"MIT"
] | null | null | null | show_perturbations.py | HKJL10201/fast-feature-fool | bdd44212461628e94e62e75e528fefcf6467336c | [
"MIT"
] | null | null | null | show_perturbations.py | HKJL10201/fast-feature-fool | bdd44212461628e94e62e75e528fefcf6467336c | [
"MIT"
] | null | null | null | import numpy as np
from PIL import Image
nets = ["caffenet", "googlenet", "vggf", "vgg16", "vgg19"]
if __name__ == "__main__":
connet(load(nets))
| 27.947368 | 81 | 0.582863 |
740a7b1481ebaf3cbbb84dcc9d2729d347265a1d | 3,835 | py | Python | data_selection/wmt/common.py | DionysisChristopoulos/google-research | 7f59ef421beef32ca16c2a7215be74f7eba01a0f | [
"Apache-2.0"
] | 23,901 | 2018-10-04T19:48:53.000Z | 2022-03-31T21:27:42.000Z | data_selection/wmt/common.py | DionysisChristopoulos/google-research | 7f59ef421beef32ca16c2a7215be74f7eba01a0f | [
"Apache-2.0"
] | 891 | 2018-11-10T06:16:13.000Z | 2022-03-31T10:42:34.000Z | data_selection/wmt/common.py | admariner/google-research | 7cee4b22b925581d912e8d993625c180da2a5a4f | [
"Apache-2.0"
] | 6,047 | 2018-10-12T06:31:02.000Z | 2022-03-31T13:59:28.000Z | # coding=utf-8
# Copyright 2021 The Google Research Authors.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicab... | 37.23301 | 78 | 0.694915 |
740c314fee18fcc54e46f473eae0b931455a5de1 | 5,353 | py | Python | samples/flower_classification_pytorch/data/build.py | Berumotto1/ml-platform-sdk-python | fc30300552bbeed5d97e8846beb040c9d262d23e | [
"MIT"
] | 11 | 2021-09-08T09:20:54.000Z | 2022-02-18T06:45:47.000Z | samples/flower_classification_pytorch/data/build.py | Berumotto1/ml-platform-sdk-python | fc30300552bbeed5d97e8846beb040c9d262d23e | [
"MIT"
] | 1 | 2021-09-24T03:21:07.000Z | 2021-09-24T06:32:26.000Z | samples/flower_classification_pytorch/data/build.py | Berumotto1/ml-platform-sdk-python | fc30300552bbeed5d97e8846beb040c9d262d23e | [
"MIT"
] | 4 | 2021-09-23T07:54:06.000Z | 2021-11-27T09:40:55.000Z | # --------------------------------------------------------
# Swin Transformer
# Copyright (c) 2021 Microsoft
# Licensed under The MIT License [see LICENSE for details]
# Written by Ze Liu
# --------------------------------------------------------
import numpy as np
import torch
import torch.distributed as dist
from dat... | 32.442424 | 107 | 0.603587 |
740d353b9f80b71b113ed3547ee3d62a1303eea8 | 526 | py | Python | tests/wsgi.py | arterial-io/mesh | bdf8e759132bb4b6f61cd68be7d140f9a608fb44 | [
"Linux-OpenIB"
] | null | null | null | tests/wsgi.py | arterial-io/mesh | bdf8e759132bb4b6f61cd68be7d140f9a608fb44 | [
"Linux-OpenIB"
] | null | null | null | tests/wsgi.py | arterial-io/mesh | bdf8e759132bb4b6f61cd68be7d140f9a608fb44 | [
"Linux-OpenIB"
] | null | null | null | from wsgiref.simple_server import WSGIServer
| 25.047619 | 47 | 0.608365 |
741190ef4d317d0383f06f67e74962e5969abf5b | 198 | py | Python | samples/driver-hello-world/lib/__init__.py | bafu/lib-python-databox | fc5f0184e2fdcf5cc8d2fc45546105232b5ada5a | [
"MIT"
] | null | null | null | samples/driver-hello-world/lib/__init__.py | bafu/lib-python-databox | fc5f0184e2fdcf5cc8d2fc45546105232b5ada5a | [
"MIT"
] | null | null | null | samples/driver-hello-world/lib/__init__.py | bafu/lib-python-databox | fc5f0184e2fdcf5cc8d2fc45546105232b5ada5a | [
"MIT"
] | null | null | null | from lib.utils import *
#from lib.catalog import *
from lib.export import *
#from lib.subscriptions import *
#from lib.key_value import *
##from lib.time_series import *
from lib.core_store import * | 28.285714 | 32 | 0.767677 |
74122aef427f247dfc2e648f0c2f015f62ef43f2 | 17,397 | py | Python | grblocalization/GRBToyModel3D.py | marivasq/gamma-ai | 735953e80901afea3e5cdeb2a7b27c9ab5725434 | [
"MIT"
] | 6 | 2020-01-29T07:24:14.000Z | 2022-03-16T10:05:25.000Z | grblocalization/GRBToyModel3D.py | marivasq/gamma-ai | 735953e80901afea3e5cdeb2a7b27c9ab5725434 | [
"MIT"
] | 6 | 2020-07-03T00:31:10.000Z | 2021-09-10T07:45:01.000Z | grblocalization/GRBToyModel3D.py | marivasq/gamma-ai | 735953e80901afea3e5cdeb2a7b27c9ab5725434 | [
"MIT"
] | 5 | 2019-02-27T22:56:49.000Z | 2019-08-24T19:01:41.000Z | ###################################################################################################
#
# GRBToyModel.py
#
# Copyright (C) by Andreas Zoglauer, Anna Shang & Jasmine Singh.
# All rights reserved.
#
# Please see the file LICENSE in the main repository for the copyright-notice.
#
#########################... | 30.255652 | 298 | 0.643559 |
7413151026afd30b763fe8db6b833b0a87962105 | 12,546 | py | Python | utils/db_util.py | haodaohong/zimt8 | 41c1a8493775002b8a29075125b362991035cfe8 | [
"Apache-2.0"
] | 1 | 2021-09-30T05:46:44.000Z | 2021-09-30T05:46:44.000Z | utils/db_util.py | haodaohong/zimt8 | 41c1a8493775002b8a29075125b362991035cfe8 | [
"Apache-2.0"
] | null | null | null | utils/db_util.py | haodaohong/zimt8 | 41c1a8493775002b8a29075125b362991035cfe8 | [
"Apache-2.0"
] | 1 | 2021-09-24T15:46:39.000Z | 2021-09-24T15:46:39.000Z | # -*- coding: utf-8 -*-
#
# connect()host.remote.comfourmMySQL
# db = MySQLdb.connect(host="remote.com",user="user",passwd="xxx",db="fourm" )
# connect()
# host(localhost)
# user
# passwd
# db
# convPythonMySQLdb.converters.conversions
# cursorclasscursor()MySQLdb.cursors.Cursor
# compress
# named_pipewindows
# init_c... | 30.674817 | 156 | 0.579468 |
74133509b5f6f9685c6054bf5cf8386f25c605cd | 994 | py | Python | sound.py | Artemia76/discord-audio-pipe | 2023e5c72c33fe8b0c63c7830c4b949cf6caa2dd | [
"MIT"
] | null | null | null | sound.py | Artemia76/discord-audio-pipe | 2023e5c72c33fe8b0c63c7830c4b949cf6caa2dd | [
"MIT"
] | null | null | null | sound.py | Artemia76/discord-audio-pipe | 2023e5c72c33fe8b0c63c7830c4b949cf6caa2dd | [
"MIT"
] | null | null | null | import numpy as np
import sounddevice as sd
MME = 0
sd.default.channels = 2
sd.default.dtype = 'int16'
sd.default.latency = 'low'
sd.default.samplerate = 48000
| 23.666667 | 80 | 0.569416 |
7416d45cc45e25eb82d5dcc0eba90daf073a56ec | 9,063 | py | Python | implement.py | vl-18/CSFL-Non-IID-data | e1186f94a415bc9d97a5b70f1a168931095edba8 | [
"MIT"
] | null | null | null | implement.py | vl-18/CSFL-Non-IID-data | e1186f94a415bc9d97a5b70f1a168931095edba8 | [
"MIT"
] | null | null | null | implement.py | vl-18/CSFL-Non-IID-data | e1186f94a415bc9d97a5b70f1a168931095edba8 | [
"MIT"
] | null | null | null | __all__ = [
'VGG', 'vgg11', 'vgg11_bn', 'vgg13', 'vgg13_bn', 'vgg16', 'vgg16_bn',
'vgg19_bn', 'vgg19',
]
model_urls = {
'vgg11': 'https://download.pytorch.org/models/vgg11-bbd30ac9.pth',
'vgg13': 'https://download.pytorch.org/models/vgg13-c768596a.pth',
'vgg16': 'https://download.pytorch.org/model... | 35.964286 | 153 | 0.605649 |
74194393a2a0c798cf6a174a23769a621a13af3a | 10,540 | py | Python | server/openapi_server/utils/request.py | mintproject/MINT-ModelCatalogIngestionAPI | 026d3495483a3e48ea3c1364d0dda09beeea69e4 | [
"Apache-2.0"
] | 2 | 2019-05-30T21:33:43.000Z | 2019-09-27T21:04:38.000Z | server/openapi_server/utils/request.py | mintproject/model-catalog-api | 2ad7016691891497bba37afe8ceb0fea8fe769e5 | [
"Apache-2.0"
] | 82 | 2019-10-08T16:35:34.000Z | 2022-03-15T18:25:27.000Z | server/openapi_server/utils/request.py | mintproject/model-catalog-api | 2ad7016691891497bba37afe8ceb0fea8fe769e5 | [
"Apache-2.0"
] | null | null | null | import json
import typing
from typing import Dict
import uuid
import validators
from rdflib import Graph
from openapi_server import query_manager
from openapi_server.settings import ENDPOINT, PREFIX, GRAPH_BASE, UPDATE_ENDPOINT
from openapi_server import logger
primitives = typing.Union[int, str, bool, float]
def g... | 31.746988 | 109 | 0.632068 |
7419775f51f2a3c2ac774e538fd0d8a277cb4720 | 2,321 | py | Python | tests/conftest.py | sjakthol/python-aws-dynamodb-parallel-scan | cd2d1af57fd2d4d88a808d0ed010327695eedf3c | [
"MIT"
] | null | null | null | tests/conftest.py | sjakthol/python-aws-dynamodb-parallel-scan | cd2d1af57fd2d4d88a808d0ed010327695eedf3c | [
"MIT"
] | 49 | 2021-11-03T16:54:05.000Z | 2022-03-30T19:01:48.000Z | tests/conftest.py | sjakthol/python-aws-dynamodb-parallel-scan | cd2d1af57fd2d4d88a808d0ed010327695eedf3c | [
"MIT"
] | 1 | 2022-02-17T06:07:36.000Z | 2022-02-17T06:07:36.000Z | import importlib
import unittest.mock
import boto3
import botocore.exceptions
import more_itertools
import moto # type: ignore
import pytest
from . import utils
TEST_TABLE_NAME = "dynamodb-parallel-scan-testtable"
TEST_TABLE_ITEM_COUNT = 205
MOCK_SCAN_ITEMS = utils.generate_items(TEST_TABLE_ITEM_COUNT)
def mock_s... | 28.654321 | 87 | 0.719087 |
741df634e38f20d2e4078d3f862adf5ed58400b0 | 2,687 | py | Python | mobo/cluster.py | seatonullberg/mobo | 4824b5ca8b9de288735fc8fe6585b69c18a8b088 | [
"BSD-2-Clause"
] | null | null | null | mobo/cluster.py | seatonullberg/mobo | 4824b5ca8b9de288735fc8fe6585b69c18a8b088 | [
"BSD-2-Clause"
] | null | null | null | mobo/cluster.py | seatonullberg/mobo | 4824b5ca8b9de288735fc8fe6585b69c18a8b088 | [
"BSD-2-Clause"
] | null | null | null | from abc import ABC
import numpy as np
from sklearn.cluster import DBSCAN, KMeans
from typing import Callable, Optional, Union
| 36.808219 | 85 | 0.483439 |
741f62c48cccbfe22679afc807e7b8d69ec70407 | 6,030 | py | Python | tests/clean/infra/log/utils/colors/test_termcolors.py | bahnlink/pyclean | 558d75341082472606788e088809831f6ea543c0 | [
"MIT"
] | null | null | null | tests/clean/infra/log/utils/colors/test_termcolors.py | bahnlink/pyclean | 558d75341082472606788e088809831f6ea543c0 | [
"MIT"
] | 2 | 2021-03-25T21:49:39.000Z | 2021-06-01T22:12:00.000Z | tests/clean/infra/log/utils/colors/test_termcolors.py | bahnlink/pyclean | 558d75341082472606788e088809831f6ea543c0 | [
"MIT"
] | 1 | 2018-06-07T17:31:56.000Z | 2018-06-07T17:31:56.000Z | from clean.infra.log.utils.colors.termcolors import (
DARK_PALETTE, DEFAULT_PALETTE, LIGHT_PALETTE, NOCOLOR_PALETTE, PALETTES,
colorize, parse_color_setting,
)
| 36.993865 | 117 | 0.689055 |
7423002cf8afcc26729f947edfd744da89e5aa6d | 6,715 | py | Python | opstestfw/switch/CLI/lagHeartbeat.py | r-cc-c/ops-ft-framework | 06ffd5a292e9bd0398d76b91dc327bf12025f9e2 | [
"Apache-2.0"
] | null | null | null | opstestfw/switch/CLI/lagHeartbeat.py | r-cc-c/ops-ft-framework | 06ffd5a292e9bd0398d76b91dc327bf12025f9e2 | [
"Apache-2.0"
] | null | null | null | opstestfw/switch/CLI/lagHeartbeat.py | r-cc-c/ops-ft-framework | 06ffd5a292e9bd0398d76b91dc327bf12025f9e2 | [
"Apache-2.0"
] | 1 | 2021-09-10T08:21:59.000Z | 2021-09-10T08:21:59.000Z | # (C) Copyright 2015 Hewlett Packard Enterprise Development LP
# 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/LICEN... | 39.733728 | 79 | 0.604021 |
7424ecfc4b5c612c6bb7f7b27f85b12940b4e2ab | 1,735 | py | Python | source/topicModel.py | arrismo/tripods-testing | 4ab9a7059df84cfd1f8984960900a3cf80b5c13c | [
"ECL-2.0"
] | 2 | 2019-09-27T20:17:46.000Z | 2020-06-24T22:15:52.000Z | source/topicModel.py | arrismo/tripods-testing | 4ab9a7059df84cfd1f8984960900a3cf80b5c13c | [
"ECL-2.0"
] | 3 | 2021-03-31T19:53:37.000Z | 2021-12-13T20:44:25.000Z | source/topicModel.py | arrismo/tripods-testing | 4ab9a7059df84cfd1f8984960900a3cf80b5c13c | [
"ECL-2.0"
] | 1 | 2019-05-22T18:55:39.000Z | 2019-05-22T18:55:39.000Z | """
--Do we need this file?--
"""
from sklearn.model_selection import train_test_split
from sklearn import tree,metrics
from sklearn.tree.export import export_text
from sklearn.tree import export_graphviz
import seaborn as sns
sns.set_style('whitegrid')
import pandas as pd
# Helper function
| 34.019608 | 113 | 0.678963 |
742544bdcfca824872b67275ce967316bc392d11 | 2,592 | py | Python | neural_network.py | narulaakshay01/DataScience | 13ba4b9ea71504cc00c2cee6ca1a6b61705679ed | [
"CC-BY-3.0"
] | null | null | null | neural_network.py | narulaakshay01/DataScience | 13ba4b9ea71504cc00c2cee6ca1a6b61705679ed | [
"CC-BY-3.0"
] | null | null | null | neural_network.py | narulaakshay01/DataScience | 13ba4b9ea71504cc00c2cee6ca1a6b61705679ed | [
"CC-BY-3.0"
] | null | null | null | import numpy as np
| 40.5 | 160 | 0.636188 |
74254b7b90cfc0efc1bfc67b61af489b33a9bc98 | 862 | py | Python | data_conversion_subsystem/config/config.py | diego-hermida/ClimateChangeApp | 576d49ec5b76f709cc86874ffb03f4a38dbbbbfd | [
"MIT"
] | 2 | 2018-07-01T20:36:46.000Z | 2019-11-01T22:47:06.000Z | data_conversion_subsystem/config/config.py | diego-hermida/ClimateChangeApp | 576d49ec5b76f709cc86874ffb03f4a38dbbbbfd | [
"MIT"
] | 1 | 2021-06-10T20:28:53.000Z | 2021-06-10T20:28:53.000Z | data_conversion_subsystem/config/config.py | diego-hermida/ClimateChangeApp | 576d49ec5b76f709cc86874ffb03f4a38dbbbbfd | [
"MIT"
] | null | null | null | from os import environ
from utilities.util import get_config
DCS_CONFIG = get_config(__file__)
DCS_CONFIG.update(get_config(__file__.replace('config.py', 'docker_config.py')) if environ.get('DOCKER_MODE', False)
else get_config(__file__.replace('config.py', 'dev_config.py')))
DCS_CONFIG['DATA_CONVERSION_SUBSYS... | 66.307692 | 116 | 0.778422 |
74256c7e42cd643ec84746fe5efffae68e8a55b9 | 6,480 | py | Python | InsightFace.py | quangtm199/DeepFace | aae47ca199ef1b33824d4c26ace3047ed02b35ae | [
"MIT"
] | null | null | null | InsightFace.py | quangtm199/DeepFace | aae47ca199ef1b33824d4c26ace3047ed02b35ae | [
"MIT"
] | null | null | null | InsightFace.py | quangtm199/DeepFace | aae47ca199ef1b33824d4c26ace3047ed02b35ae | [
"MIT"
] | null | null | null | import argparse
import os
import cv2
import numpy as np
import torch
from torch import nn
from deepface.backbones.iresnet import iresnet18, iresnet34, iresnet50, iresnet100, iresnet200
from deepface.backbones.mobilefacenet import get_mbf
from deepface.commons import functions
import gdown
url={
'ms1mv3_r50':'https:... | 55.862069 | 285 | 0.752469 |
7427b54151c1c0a26c6b9fbd390ea3687053f8a5 | 2,886 | py | Python | Trakttv.bundle/Contents/Libraries/Shared/plugin/core/configuration.py | disrupted/Trakttv.bundle | 24712216c71f3b22fd58cb5dd89dad5bb798ed60 | [
"RSA-MD"
] | 1,346 | 2015-01-01T14:52:24.000Z | 2022-03-28T12:50:48.000Z | Trakttv.bundle/Contents/Libraries/Shared/plugin/core/configuration.py | alcroito/Plex-Trakt-Scrobbler | 4f83fb0860dcb91f860d7c11bc7df568913c82a6 | [
"RSA-MD"
] | 474 | 2015-01-01T10:27:46.000Z | 2022-03-21T12:26:16.000Z | Trakttv.bundle/Contents/Libraries/Shared/plugin/core/configuration.py | alcroito/Plex-Trakt-Scrobbler | 4f83fb0860dcb91f860d7c11bc7df568913c82a6 | [
"RSA-MD"
] | 191 | 2015-01-02T18:27:22.000Z | 2022-03-29T10:49:48.000Z | from plugin.core.environment import Environment
from ConfigParser import NoOptionError, NoSectionError, ParsingError, SafeConfigParser
import logging
import os
log = logging.getLogger(__name__)
CONFIGURATION_FILES = [
'advanced'
]
| 26.236364 | 101 | 0.625087 |
7428589617b5281cd908d4bfca26feb01581f0e2 | 730 | py | Python | src/jaws_scripts/client/list_effective_alarms.py | JeffersonLab/kafka-alarm-scripts | e8bdc5dc5079be828825b7f8c21e2a3aea1cd4e1 | [
"MIT"
] | null | null | null | src/jaws_scripts/client/list_effective_alarms.py | JeffersonLab/kafka-alarm-scripts | e8bdc5dc5079be828825b7f8c21e2a3aea1cd4e1 | [
"MIT"
] | null | null | null | src/jaws_scripts/client/list_effective_alarms.py | JeffersonLab/kafka-alarm-scripts | e8bdc5dc5079be828825b7f8c21e2a3aea1cd4e1 | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
"""
Lists the effective alarms.
"""
import click
from jaws_libp.clients import EffectiveAlarmConsumer
# pylint: disable=missing-function-docstring,no-value-for-parameter
if __name__ == "__main__":
click_main()
| 26.071429 | 83 | 0.747945 |
7428fb5c49423f5ded79cbc1edb63e3f2d8f66b4 | 995 | py | Python | statement_renamer/readers/filename_reader.py | mkazin/StatementRenamer | ef03c71f0e627a15a4bba08e45bfa90ecacd28fc | [
"Apache-2.0"
] | null | null | null | statement_renamer/readers/filename_reader.py | mkazin/StatementRenamer | ef03c71f0e627a15a4bba08e45bfa90ecacd28fc | [
"Apache-2.0"
] | 15 | 2018-05-01T12:48:30.000Z | 2021-05-14T02:52:48.000Z | statement_renamer/readers/filename_reader.py | mkazin/StatementRenamer | ef03c71f0e627a15a4bba08e45bfa90ecacd28fc | [
"Apache-2.0"
] | 1 | 2019-07-09T22:59:50.000Z | 2019-07-09T22:59:50.000Z | from .reader import Reader
# This is the contents of my old AmEx statement renamer, which
# used the filename as the data source.
# import os
# import re
# month_names = ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun',
# 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec']
# path = './'
# listing = os.listdir(path)
# for i... | 27.638889 | 92 | 0.568844 |
742939c5616cb184b51b637dcb4e5526301b312b | 391 | py | Python | Pre-term/Computational Thinking and Problem Solving/Lecture 9/prog1.py | BedrockDev/CAU2019 | c8c462190fcf3ece0d8fa6159a45566c9db93b28 | [
"MIT"
] | null | null | null | Pre-term/Computational Thinking and Problem Solving/Lecture 9/prog1.py | BedrockDev/CAU2019 | c8c462190fcf3ece0d8fa6159a45566c9db93b28 | [
"MIT"
] | null | null | null | Pre-term/Computational Thinking and Problem Solving/Lecture 9/prog1.py | BedrockDev/CAU2019 | c8c462190fcf3ece0d8fa6159a45566c9db93b28 | [
"MIT"
] | null | null | null | # 2019-02-18
# sentence to dictionary meaning
sentence = "It is truth universally acknowledged"
f = open('dict_test.TXT', 'r', encoding='utf-8')
dictionary = {}
for line in f:
word = line[:-1].split(" : ", 1)
dictionary.update({word[0]:word[-1]})
f.close()
print("Sentence :", sentence)
for word in senten... | 18.619048 | 54 | 0.634271 |
742a0f07079de7303a6ba0aed27c3b8e8500b054 | 8,591 | py | Python | datatree/tests/test_mapping.py | TomNicholas/datatree | df6925faa80bdc24a9f1b60cb37fef81d82f7846 | [
"Apache-2.0"
] | 31 | 2021-08-24T17:17:34.000Z | 2022-02-14T21:21:18.000Z | datatree/tests/test_mapping.py | TomNicholas/datatree | df6925faa80bdc24a9f1b60cb37fef81d82f7846 | [
"Apache-2.0"
] | 31 | 2021-08-24T00:22:01.000Z | 2022-02-18T00:35:27.000Z | datatree/tests/test_mapping.py | TomNicholas/datatree | df6925faa80bdc24a9f1b60cb37fef81d82f7846 | [
"Apache-2.0"
] | 3 | 2021-08-24T21:01:07.000Z | 2022-02-25T23:12:10.000Z | import pytest
import xarray as xr
from datatree.datatree import DataTree
from datatree.mapping import TreeIsomorphismError, check_isomorphic, map_over_subtree
from datatree.testing import assert_equal
from datatree.treenode import TreeNode
from .test_datatree import create_test_datatree
empty = xr.Dataset()
| 33.169884 | 120 | 0.632173 |
742c629872c253a648f1215ce205843f4b6f52f6 | 2,317 | py | Python | setup.py | awalker125/forumsentry-sdk-for-python | 2e8b688012c28d77f4160219bad33a60ec28fab0 | [
"MIT"
] | 2 | 2017-11-16T17:50:22.000Z | 2020-05-14T13:34:12.000Z | setup.py | awalker125/forumsentry-sdk-for-python | 2e8b688012c28d77f4160219bad33a60ec28fab0 | [
"MIT"
] | 6 | 2017-11-17T13:06:37.000Z | 2021-06-01T21:48:36.000Z | setup.py | awalker125/forumsentry-sdk-for-python | 2e8b688012c28d77f4160219bad33a60ec28fab0 | [
"MIT"
] | null | null | null | import os
import sys
from setuptools import setup
from setuptools.command.install import install
from setuptools import find_packages
#Change this on major/minor version number change. You must create a git tag at the same tag called with the same value
# git tag "0.1"
# git push --tags
VERSION = "0.17"
#Change thi... | 29.329114 | 119 | 0.65861 |
742c86cd46e8e9f93f48f31d8642e73a3bcd4147 | 1,386 | py | Python | rivebot/rivebot.py | coredump-ch/moss | 8a4140329caf5424f2a8c761e53407838dc61bae | [
"MIT"
] | null | null | null | rivebot/rivebot.py | coredump-ch/moss | 8a4140329caf5424f2a8c761e53407838dc61bae | [
"MIT"
] | null | null | null | rivebot/rivebot.py | coredump-ch/moss | 8a4140329caf5424f2a8c761e53407838dc61bae | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
from __future__ import print_function, division, absolute_import, unicode_literals
import sys
import json
from cStringIO import StringIO
from rivescript import RiveScript
def parse_input():
"""Read JSON from input."""
request = StringIO()
while True:
line = raw_input()
... | 26.653846 | 82 | 0.590188 |
74304517fcd450f8df39d08e73401ad1e5b3ef7a | 533 | py | Python | DiretoryBrute.py | Moleey/DiretoryBrute.py | ba33aa4ed4c6aeea358af92e06e58eae3548bb34 | [
"MIT"
] | 1 | 2021-11-23T12:36:34.000Z | 2021-11-23T12:36:34.000Z | DiretoryBrute.py | Moleey/DiretoryBrute.py | ba33aa4ed4c6aeea358af92e06e58eae3548bb34 | [
"MIT"
] | null | null | null | DiretoryBrute.py | Moleey/DiretoryBrute.py | ba33aa4ed4c6aeea358af92e06e58eae3548bb34 | [
"MIT"
] | null | null | null | from os import system
from requests import get
from pyfiglet import figlet_format
from colored import fore, back, style, attr
attr(0)
print(back.BLACK)
print(fore.BLUE_VIOLET + style.BOLD)
system("clear")
print(figlet_format("DIRETORY BRUTE\nBY MOLEEY", width=58, justify="center", font="smslant"))
site = input("Link ... | 24.227273 | 93 | 0.726079 |
74321ea05511377ab22824f92434af97786eebc8 | 244 | py | Python | testdust/diffusion/__init__.py | ibackus/testdust | 29e78e4cd2f3466dd503ce863c6db9014da07a04 | [
"MIT"
] | null | null | null | testdust/diffusion/__init__.py | ibackus/testdust | 29e78e4cd2f3466dd503ce863c6db9014da07a04 | [
"MIT"
] | null | null | null | testdust/diffusion/__init__.py | ibackus/testdust | 29e78e4cd2f3466dd503ce863c6db9014da07a04 | [
"MIT"
] | null | null | null | #!/usr/bin/env python2
# -*- coding: utf-8 -*-
"""
This package is for generating and analyzing the dustydiffusion test of
Price & Laibe 2015
Created on Thu Mar 16 16:41:03 2017
@author: ibackus
"""
import makeICs
import analyze
import plot
| 17.428571 | 72 | 0.72541 |
74324a51da60181a530ae6e51d1b71f12fe807ea | 648 | py | Python | progress.py | gyupro/korean_ads_downloader | 031d2df399ae581d4688ccfd36b66ee488f5420a | [
"MIT"
] | 1 | 2021-05-20T03:01:47.000Z | 2021-05-20T03:01:47.000Z | progress.py | gyupro/korean_ads_downloader | 031d2df399ae581d4688ccfd36b66ee488f5420a | [
"MIT"
] | null | null | null | progress.py | gyupro/korean_ads_downloader | 031d2df399ae581d4688ccfd36b66ee488f5420a | [
"MIT"
] | null | null | null | import sys
import time
if __name__ == '__main__':
for i in range(0, 100):
print_progress(i, 100, 'Progress:', 'Complete', 1, 50)
| 38.117647 | 95 | 0.601852 |
7436d343dd53757025641ec1f8b0deae1089f72e | 645 | py | Python | guiModule.py | xianc78/guiModule | 5d2dc1e5a50db1b3c7adb40edacefe40496e29b8 | [
"0BSD"
] | null | null | null | guiModule.py | xianc78/guiModule | 5d2dc1e5a50db1b3c7adb40edacefe40496e29b8 | [
"0BSD"
] | null | null | null | guiModule.py | xianc78/guiModule | 5d2dc1e5a50db1b3c7adb40edacefe40496e29b8 | [
"0BSD"
] | null | null | null | # Module for simple GUI functions. ONLY WORKS IN WINDOWS
import ctypes | 25.8 | 66 | 0.717829 |
7437242aebcdc39142761605d71fd8ac6df32f75 | 348 | py | Python | venv/lib/python3.8/site-packages/azureml/_tracing/__init__.py | amcclead7336/Enterprise_Data_Science_Final | ccdc0aa08d4726bf82d71c11a1cc0c63eb301a28 | [
"Unlicense",
"MIT"
] | null | null | null | venv/lib/python3.8/site-packages/azureml/_tracing/__init__.py | amcclead7336/Enterprise_Data_Science_Final | ccdc0aa08d4726bf82d71c11a1cc0c63eb301a28 | [
"Unlicense",
"MIT"
] | null | null | null | venv/lib/python3.8/site-packages/azureml/_tracing/__init__.py | amcclead7336/Enterprise_Data_Science_Final | ccdc0aa08d4726bf82d71c11a1cc0c63eb301a28 | [
"Unlicense",
"MIT"
] | 2 | 2021-05-23T16:46:31.000Z | 2021-05-26T23:51:09.000Z | # ---------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# ---------------------------------------------------------
from azureml._base_sdk_common import __version__ as VERSION
from ._tracer_factory import get_tracer
__version__ = VERSION
__all_... | 26.769231 | 60 | 0.488506 |
7437f734d21080dab33659b723dd44a24a2311d8 | 19,475 | py | Python | src/stk/molecular/topology_graphs/topology_graph/topology_graph/topology_graph.py | stevenbennett96/stk | 6e5af87625b83e0bfc7243bc42d8c7a860cbeb76 | [
"MIT"
] | null | null | null | src/stk/molecular/topology_graphs/topology_graph/topology_graph/topology_graph.py | stevenbennett96/stk | 6e5af87625b83e0bfc7243bc42d8c7a860cbeb76 | [
"MIT"
] | null | null | null | src/stk/molecular/topology_graphs/topology_graph/topology_graph/topology_graph.py | stevenbennett96/stk | 6e5af87625b83e0bfc7243bc42d8c7a860cbeb76 | [
"MIT"
] | null | null | null | """
Topology Graph
==============
"""
from __future__ import annotations
import typing
from collections import abc
from functools import partial
import numpy as np
from stk.utilities import flatten
from ....molecules import BuildingBlock
from ....reactions import ReactionFactory
from ..construction_result import ... | 32.56689 | 71 | 0.616791 |
74388d3317a473fd1cf6e8817b010aec0288146a | 3,837 | py | Python | nmeatoolkit/pipes/seatalk.py | dakk/nmeatoolkit | 6378d2aa6937732e8ad1c47ce7a9ad0f629f5351 | [
"MIT"
] | null | null | null | nmeatoolkit/pipes/seatalk.py | dakk/nmeatoolkit | 6378d2aa6937732e8ad1c47ce7a9ad0f629f5351 | [
"MIT"
] | null | null | null | nmeatoolkit/pipes/seatalk.py | dakk/nmeatoolkit | 6378d2aa6937732e8ad1c47ce7a9ad0f629f5351 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
# Copyright (C) 2021 Davide Gessa
'''
MIT License
Copyright (c) 2021 Davide Gessa
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without li... | 36.198113 | 97 | 0.609591 |
74392be75a25359b077926e8e16806629ba266d4 | 3,693 | py | Python | blackduck/Reporting.py | rishianand06/hub-rest-api-python | 06ff0136b5e8f54a8947b70eca6fd26d72a9c6ea | [
"Apache-2.0"
] | null | null | null | blackduck/Reporting.py | rishianand06/hub-rest-api-python | 06ff0136b5e8f54a8947b70eca6fd26d72a9c6ea | [
"Apache-2.0"
] | null | null | null | blackduck/Reporting.py | rishianand06/hub-rest-api-python | 06ff0136b5e8f54a8947b70eca6fd26d72a9c6ea | [
"Apache-2.0"
] | null | null | null | import logging
import requests
import json
from operator import itemgetter
import urllib.parse
from .Utils import object_id
logger = logging.getLogger(__name__)
valid_categories = ['VERSION','CODE_LOCATIONS','COMPONENTS','SECURITY','FILES', 'ATTACHMENTS', 'CRYPTO_ALGORITHMS', 'PROJECT_VERSION_CUSTOM_FIELDS', 'BOM_CO... | 43.964286 | 207 | 0.721094 |
743bf38636435755c9ffb7ddc1a07e96b2063afd | 3,346 | py | Python | server/adb.py | narata/answerot_new_1 | 65d3dee0f4a1f0b743b17b82fbaf17479052f6be | [
"Apache-2.0"
] | null | null | null | server/adb.py | narata/answerot_new_1 | 65d3dee0f4a1f0b743b17b82fbaf17479052f6be | [
"Apache-2.0"
] | null | null | null | server/adb.py | narata/answerot_new_1 | 65d3dee0f4a1f0b743b17b82fbaf17479052f6be | [
"Apache-2.0"
] | null | null | null |
import subprocess,re
import ConfigParser | 28.355932 | 110 | 0.50269 |
743cb4202b8785aa2ff3b3c1677fc68dcec51ea7 | 1,691 | py | Python | ocr/utils/calcIoU.py | takuya-motoshima/document-scanner | 7e4c2821ec21ba96468bcbe512bd0d40f653b0e1 | [
"MIT"
] | null | null | null | ocr/utils/calcIoU.py | takuya-motoshima/document-scanner | 7e4c2821ec21ba96468bcbe512bd0d40f653b0e1 | [
"MIT"
] | null | null | null | ocr/utils/calcIoU.py | takuya-motoshima/document-scanner | 7e4c2821ec21ba96468bcbe512bd0d40f653b0e1 | [
"MIT"
] | null | null | null | def calcIoU(rectA, rectB):
"""Calculate IoU for two rectangles.
Args:
rectA: Rectangular bounding box ([top left X, top left Y, bottom right X, bottom right Y]).
rectB: Rectangular bounding box ([top left X, top left Y, bottom right X, bottom right Y]).
Returns:
Returns IoU, intersection area, r... | 43.358974 | 109 | 0.668244 |
743e7dcbfc91fc1e84f2a9fc432bf5ddae55f07b | 2,392 | py | Python | main_pycharm_v01.py | TonySoloProjects/network_log_visualization | bcf1b648009abcd15a3d71a7057610a583ee0dde | [
"FTL",
"OML"
] | null | null | null | main_pycharm_v01.py | TonySoloProjects/network_log_visualization | bcf1b648009abcd15a3d71a7057610a583ee0dde | [
"FTL",
"OML"
] | null | null | null | main_pycharm_v01.py | TonySoloProjects/network_log_visualization | bcf1b648009abcd15a3d71a7057610a583ee0dde | [
"FTL",
"OML"
] | null | null | null | """
Routines to interactively visualize network server error log files
to graphically determine which servers tend to fail and to potentially
find relations between failing connections.
Created by: Tony Held tony.held@gmail.com
Created on: 2020/09/10
Copyright 2020 Tony Held. All rights reserved.
"""
from IPython.d... | 37.968254 | 88 | 0.688963 |
743f85faa1f8e7f11f0f6168a98c451b6426d577 | 2,439 | py | Python | Utils.py | BoChenGroup/WeTe | 2ad80a664609dcd15b3544e6f6d1f66f958b553c | [
"Apache-2.0"
] | 4 | 2022-03-25T05:45:49.000Z | 2022-03-30T12:34:10.000Z | Utils.py | BoChenGroup/WeTe | 2ad80a664609dcd15b3544e6f6d1f66f958b553c | [
"Apache-2.0"
] | null | null | null | Utils.py | BoChenGroup/WeTe | 2ad80a664609dcd15b3544e6f6d1f66f958b553c | [
"Apache-2.0"
] | 1 | 2022-02-16T09:49:08.000Z | 2022-02-16T09:49:08.000Z | #!/usr/bin/python3
# -*- coding: utf-8 -*-
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~----->>>
# _ _
# .__(.)< ?? >(.)__.
# \___) (___/
# @Time : 2022/3/20 10:06
# @Author : wds -->> hellowds2014@gmail.com
# @File : util.py
# ~~~~~~~~~... | 30.4875 | 97 | 0.537105 |
7441bd95b6465fa3864a116467ce2c5d66e46a23 | 283 | py | Python | ged4py/__init__.py | haney/ged4py | d4ae4baa030caa23961fd1c15298f9e3a225c67d | [
"MIT"
] | 1 | 2022-01-06T22:56:38.000Z | 2022-01-06T22:56:38.000Z | ged4py/__init__.py | haney/ged4py | d4ae4baa030caa23961fd1c15298f9e3a225c67d | [
"MIT"
] | null | null | null | ged4py/__init__.py | haney/ged4py | d4ae4baa030caa23961fd1c15298f9e3a225c67d | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
"""Top-level package for GEDCOM parser for Python."""
__author__ = """Andy Salnikov"""
__email__ = 'ged4py@py-dev.com'
__version__ = '0.1.10'
from . import codecs # noqa: F401, needed to register ANSEL codec
from .parser import GedcomReader # noqa: F401
| 25.727273 | 66 | 0.689046 |
74420935d01b554c5fcec41d054c6daf42c2218a | 1,600 | py | Python | src/auth.py | 4shub/weExist | 5b3187ecdd11ee079b3a0ce85bd1a1aeee242b16 | [
"MIT"
] | null | null | null | src/auth.py | 4shub/weExist | 5b3187ecdd11ee079b3a0ce85bd1a1aeee242b16 | [
"MIT"
] | null | null | null | src/auth.py | 4shub/weExist | 5b3187ecdd11ee079b3a0ce85bd1a1aeee242b16 | [
"MIT"
] | null | null | null | """
Original: Shelley Pham
New Author: Shubham Naik
"""
from __future__ import print_function
import httplib2
import os
import re
import time
import base64
from apiclient import discovery
from apiclient import errors
from oauth2client import client
from oauth2client import tools
from oauth2client.file import Storage
... | 27.118644 | 75 | 0.719375 |
7443b633febb6146eb36d1d718e8670523cfb0c3 | 5,602 | py | Python | netmgt/migrations/0001_initial.py | drscream/django-netmgt | 9c9c2b393d378e52d5bf6d012920a8976acd60dc | [
"BSD-2-Clause"
] | 1 | 2017-10-13T15:55:45.000Z | 2017-10-13T15:55:45.000Z | netmgt/migrations/0001_initial.py | drscream/django-netmgt | 9c9c2b393d378e52d5bf6d012920a8976acd60dc | [
"BSD-2-Clause"
] | null | null | null | netmgt/migrations/0001_initial.py | drscream/django-netmgt | 9c9c2b393d378e52d5bf6d012920a8976acd60dc | [
"BSD-2-Clause"
] | 2 | 2016-05-05T15:00:11.000Z | 2018-03-11T17:01:30.000Z | # Generated by Django 2.2.6 on 2019-10-29 09:27
from django.db import migrations, models
import django.db.models.deletion
| 50.927273 | 391 | 0.544091 |
7445bb6b5d5d54d39878d1c0db391f23d5030f90 | 396 | py | Python | picky/wsgi.py | Wilfred/Picky | 48c40ad3e5bcb531c76439384094b1acfb174824 | [
"Python-2.0"
] | 2 | 2018-10-18T00:02:21.000Z | 2020-03-01T07:11:34.000Z | picky/wsgi.py | Wilfred/Picky | 48c40ad3e5bcb531c76439384094b1acfb174824 | [
"Python-2.0"
] | null | null | null | picky/wsgi.py | Wilfred/Picky | 48c40ad3e5bcb531c76439384094b1acfb174824 | [
"Python-2.0"
] | null | null | null | import os
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "picky.settings")
# This application object is used by the development server
# as well as any WSGI server configured to use this file.
from django.core.wsgi import get_wsgi_application
from raven.contrib.django.raven_compat.middleware.wsgi import Sentry
from ... | 33 | 68 | 0.820707 |
744740c25492cd193acb8f86ba79136bde1411c5 | 594 | py | Python | label_maker/utils.py | cgoodier/label-maker | 4e8774ff2790234352a78de82b92d762697a65d2 | [
"MIT"
] | 1 | 2021-03-21T13:37:46.000Z | 2021-03-21T13:37:46.000Z | label_maker/utils.py | cgoodier/label-maker | 4e8774ff2790234352a78de82b92d762697a65d2 | [
"MIT"
] | null | null | null | label_maker/utils.py | cgoodier/label-maker | 4e8774ff2790234352a78de82b92d762697a65d2 | [
"MIT"
] | null | null | null | """Provide utility functions"""
import numpy as np
def url(tile, imagery):
"""Return a tile url provided an imagery template and a tile"""
return imagery.replace('{x}', tile[0]).replace('{y}', tile[1]).replace('{z}', tile[2])
def class_match(ml_type, label, i):
"""Determine if a label matches a given clas... | 34.941176 | 90 | 0.638047 |
7447d7b3a019bd279405b648831f0c93ba29759f | 3,550 | py | Python | utils/actions.py | zagaran/instant-census | 62dd5bbc62939f43776a10708ef663722ead98af | [
"MIT"
] | 1 | 2021-06-01T17:03:47.000Z | 2021-06-01T17:03:47.000Z | utils/actions.py | zagaran/instant-census | 62dd5bbc62939f43776a10708ef663722ead98af | [
"MIT"
] | null | null | null | utils/actions.py | zagaran/instant-census | 62dd5bbc62939f43776a10708ef663722ead98af | [
"MIT"
] | null | null | null | from inspect import getargspec
from uuid import uuid4
from utils.logging import log_error
ACTIONS = {}
DYNAMIC_PARAMS = ["user", "parser_return", "execution_state", "resend", "delay"]
def Action(name):
""" Registers any function with this decorator onto the ACTIONS dict
under the key of it's name; thi... | 41.764706 | 95 | 0.629014 |
7447dae093fa58c7201a8b195467ffc68e268826 | 5,464 | py | Python | FER/em_network/models/Conv2D.py | Zber5/OpenRadar | 701cf166203c3f3e1ba4873cd132a7ccba4f0863 | [
"Apache-2.0"
] | 1 | 2021-07-09T18:40:24.000Z | 2021-07-09T18:40:24.000Z | FER/em_network/models/Conv2D.py | Zber5/OpenRadar | 701cf166203c3f3e1ba4873cd132a7ccba4f0863 | [
"Apache-2.0"
] | null | null | null | FER/em_network/models/Conv2D.py | Zber5/OpenRadar | 701cf166203c3f3e1ba4873cd132a7ccba4f0863 | [
"Apache-2.0"
] | 1 | 2021-11-13T05:33:50.000Z | 2021-11-13T05:33:50.000Z | import torch
import torch.nn as nn
import torch.nn.functional as F
from FER.em_network.models.model import TimeDistributed
if __name__ == "__main__":
# device = torch.device('cuda')
# model = PhaseNet()
# model = model.to(device)
#
# input1 = torch.randn(8, 12, 10, 100)
# input1 = input1.... | 28.458333 | 85 | 0.538982 |
744939994e227d0b6b7c94dcb8010fec20ecb0bf | 267 | py | Python | elm-finder/apps/homepage/admin.py | martin-jahn/elm-finder | 7510e38d52eebaf462ae5c5ce961e4884b1709bd | [
"MIT"
] | 2 | 2019-04-28T21:32:46.000Z | 2019-05-13T05:27:09.000Z | elm-finder/apps/homepage/admin.py | martin-jahn/elm-finder | 7510e38d52eebaf462ae5c5ce961e4884b1709bd | [
"MIT"
] | null | null | null | elm-finder/apps/homepage/admin.py | martin-jahn/elm-finder | 7510e38d52eebaf462ae5c5ce961e4884b1709bd | [
"MIT"
] | null | null | null | from django.contrib import admin
from apps.homepage.models import PSA, Dpotw, Gotw
| 19.071429 | 49 | 0.745318 |
744966ab2f30b26d35cfd82483b84e8043c64525 | 2,702 | py | Python | vb_baseapp/admin/actions/basemodel_with_softdelete.py | vbyazilim/django-vb-baseapp | 83a62a9d7cb349351ea64aeeb616afe9a94cda5d | [
"MIT"
] | null | null | null | vb_baseapp/admin/actions/basemodel_with_softdelete.py | vbyazilim/django-vb-baseapp | 83a62a9d7cb349351ea64aeeb616afe9a94cda5d | [
"MIT"
] | 1 | 2021-10-30T16:44:15.000Z | 2021-10-30T16:44:15.000Z | vb_baseapp/admin/actions/basemodel_with_softdelete.py | vbyazilim/django-vb-baseapp | 83a62a9d7cb349351ea64aeeb616afe9a94cda5d | [
"MIT"
] | null | null | null | from django.contrib.admin import helpers
from django.contrib.admin.utils import model_ngettext
from django.core.exceptions import PermissionDenied
from django.template.response import TemplateResponse
from django.utils.translation import ugettext_lazy as _
from console import console
__all__ = ['recover_selected', 'h... | 37.013699 | 112 | 0.695041 |
744980d7dc32c6dde0ae8b27db252f2f1899d241 | 26,204 | py | Python | debug-hugging_face_baseline.py | kongwilson/kaggle-feedback-prize | 475cbc88fea6618cdd2281e051c9cb69dd8bc2d7 | [
"MIT"
] | null | null | null | debug-hugging_face_baseline.py | kongwilson/kaggle-feedback-prize | 475cbc88fea6618cdd2281e051c9cb69dd8bc2d7 | [
"MIT"
] | null | null | null | debug-hugging_face_baseline.py | kongwilson/kaggle-feedback-prize | 475cbc88fea6618cdd2281e051c9cb69dd8bc2d7 | [
"MIT"
] | null | null | null | """
https://www.kaggle.com/weicongkong/feedback-prize-huggingface-baseline-training/edit
Copyright (C) Weicong Kong, 23/02/2022
"""
# %% [markdown]
# # HuggingFace Training Baseline
#
# I wanted to create my own baseline for this competition, and I tried to do so "without peeking" at the kernels published by others. ... | 42.957377 | 291 | 0.718402 |
7449e4cac17ed016fac5ca67316d8bffabed1d94 | 808 | py | Python | appname/mailers/teams.py | Dnida/Ignite | 38ac6042c9b16cdccf5ef066a1ee80b741b51a37 | [
"BSD-2-Clause"
] | 53 | 2017-12-12T06:58:25.000Z | 2022-03-24T17:58:37.000Z | appname/mailers/teams.py | Dnida/Ignite | 38ac6042c9b16cdccf5ef066a1ee80b741b51a37 | [
"BSD-2-Clause"
] | 144 | 2018-01-22T15:15:41.000Z | 2022-03-28T09:02:00.000Z | appname/mailers/teams.py | Dnida/Ignite | 38ac6042c9b16cdccf5ef066a1ee80b741b51a37 | [
"BSD-2-Clause"
] | 19 | 2017-12-12T07:04:14.000Z | 2022-03-23T00:20:00.000Z | from flask import render_template, url_for
from appname.mailers import Mailer
| 35.130435 | 89 | 0.679455 |
744bfc8ef10bc788337d88adf19a91962b74ebc7 | 886 | py | Python | hooks/pre_gen_project.py | JayThibs/orbyter-cookiecutter | 479bf9fb3103e921abce2374397858a2cc4de9ec | [
"MIT"
] | 66 | 2019-12-11T13:53:06.000Z | 2022-03-11T01:09:53.000Z | hooks/pre_gen_project.py | JayThibs/orbyter-cookiecutter | 479bf9fb3103e921abce2374397858a2cc4de9ec | [
"MIT"
] | 44 | 2019-12-10T05:16:34.000Z | 2021-12-01T22:21:28.000Z | hooks/pre_gen_project.py | JayThibs/orbyter-cookiecutter | 479bf9fb3103e921abce2374397858a2cc4de9ec | [
"MIT"
] | 20 | 2020-02-13T17:22:11.000Z | 2022-02-17T18:25:28.000Z | """Python module name validation.
Compatible with python 2 and python 3, to ensure cookiecutter support
across various platforms
"""
import logging
import sys
import re
logging.basicConfig()
logger = logging.getLogger(__name__)
REF_URL = "https://www.python.org/dev/peps/pep-0008/#package-and-module-names"
def vali... | 30.551724 | 84 | 0.71219 |
744cd6bb1eb26fbde0da3fa1db370c1066848b73 | 1,915 | py | Python | graphstar/tests/graph.py | pengboomouch/graphstar | f7f3537aa92118765b358dd3a47b4fa5cea8587c | [
"MIT"
] | null | null | null | graphstar/tests/graph.py | pengboomouch/graphstar | f7f3537aa92118765b358dd3a47b4fa5cea8587c | [
"MIT"
] | null | null | null | graphstar/tests/graph.py | pengboomouch/graphstar | f7f3537aa92118765b358dd3a47b4fa5cea8587c | [
"MIT"
] | null | null | null | import pytest
from graphstar import graph
def test_get_node_by_id(g):
"""Test the node_by_id method"""
n1 = g.make_node(1, 1)
n2 = g.node_by_id(n1.id)
assert n1 is n2 and n1.id == n2.id
def test_node_id_is_unique(g):
"""Test incremental ids work"""
for i in range(0, 10):
n = g.make_node(i, i)
assert n.... | 21.277778 | 56 | 0.710705 |
744d99c237509f277cae64b7e0c4abf3eccd8e90 | 182 | py | Python | lists.py | the-visserd/two-hearts | fa45b04d36abf73db82b491c127e1c4b9889aa5c | [
"MIT"
] | null | null | null | lists.py | the-visserd/two-hearts | fa45b04d36abf73db82b491c127e1c4b9889aa5c | [
"MIT"
] | null | null | null | lists.py | the-visserd/two-hearts | fa45b04d36abf73db82b491c127e1c4b9889aa5c | [
"MIT"
] | null | null | null | # Set number of participants
num_dyads = 4
num_participants = num_dyads*2
# Create lists for iterations
participants = list(range(num_participants))
dyads = list(range(num_dyads)) | 20.222222 | 44 | 0.785714 |
744e69288081cc9b791db7d1405598e51164998f | 25,870 | py | Python | advent_tools.py | moink/AoC2017 | 5b500e792a4e3d518197a2bf4c43f646f9a03083 | [
"MIT"
] | null | null | null | advent_tools.py | moink/AoC2017 | 5b500e792a4e3d518197a2bf4c43f646f9a03083 | [
"MIT"
] | null | null | null | advent_tools.py | moink/AoC2017 | 5b500e792a4e3d518197a2bf4c43f646f9a03083 | [
"MIT"
] | null | null | null | """Tools to help solve advent of code problems faster"""
import abc
import collections
import contextlib
import copy
import datetime
import hashlib
import itertools
import os
import re
import shutil
import urllib.request
import scipy
from matplotlib import pyplot as plt
import numpy as np
def set_up_directory(day):... | 32.096774 | 79 | 0.617627 |
745219b0851f1baa5824dd6400806eb8f5b3f6a7 | 4,227 | py | Python | networking_kaloom/ml2/drivers/kaloom/db/kaloom_models.py | ramupreetham/neutron | 3089935e01ae2bd063b1c6f754452a5bc06837f0 | [
"Apache-2.0"
] | 3 | 2019-05-14T12:22:13.000Z | 2019-10-10T18:42:48.000Z | networking_kaloom/ml2/drivers/kaloom/db/kaloom_models.py | ramupreetham/neutron | 3089935e01ae2bd063b1c6f754452a5bc06837f0 | [
"Apache-2.0"
] | 1 | 2021-02-09T22:56:35.000Z | 2021-02-09T22:56:35.000Z | networking_kaloom/ml2/drivers/kaloom/db/kaloom_models.py | ramupreetham/neutron | 3089935e01ae2bd063b1c6f754452a5bc06837f0 | [
"Apache-2.0"
] | 2 | 2019-06-18T15:49:22.000Z | 2020-06-03T02:22:51.000Z | # Copyright 2019 Kaloom, 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 required by app... | 45.945652 | 119 | 0.683227 |
7452e14d90ee89dce38e2b779f06bcdfbe502433 | 11,061 | py | Python | tests/test_admin.py | hongquan/django-improved-user | ae91086adf58aeca81d6e0fe1aeb4c7f3f4c2a77 | [
"BSD-2-Clause"
] | null | null | null | tests/test_admin.py | hongquan/django-improved-user | ae91086adf58aeca81d6e0fe1aeb4c7f3f4c2a77 | [
"BSD-2-Clause"
] | null | null | null | tests/test_admin.py | hongquan/django-improved-user | ae91086adf58aeca81d6e0fe1aeb4c7f3f4c2a77 | [
"BSD-2-Clause"
] | null | null | null | """Test Admin interface provided by Improved User"""
import os
import re
from django import VERSION as DjangoVersion
from django.contrib.admin.models import LogEntry
from django.contrib.auth import SESSION_KEY
from django.test import TestCase, override_settings
from django.test.utils import patch_logger
from django.ut... | 38.810526 | 79 | 0.610975 |
7452f3144187c68fb2da27ba8d944e84c17c89dd | 42 | py | Python | shutDown.py | Dinuda/ShutDown | b276372794b326c311c881eb1264885f5eb05bc2 | [
"MIT"
] | 3 | 2021-02-15T13:56:10.000Z | 2021-03-29T16:19:54.000Z | shutDown.py | Dinuda/ShutDown | b276372794b326c311c881eb1264885f5eb05bc2 | [
"MIT"
] | null | null | null | shutDown.py | Dinuda/ShutDown | b276372794b326c311c881eb1264885f5eb05bc2 | [
"MIT"
] | null | null | null | import os
os.system("shutdown /s /t 1") | 14 | 29 | 0.642857 |
745316c7157493fe1dd72ef3ab34d3264ee57efa | 6,875 | py | Python | micropython/src/thermal_printer_alarm.py | fabianDadada/thermal_printer_alarm_clock | 573e098c9ac7843ac5cbaf04c0ee847d4d49ea91 | [
"MIT"
] | null | null | null | micropython/src/thermal_printer_alarm.py | fabianDadada/thermal_printer_alarm_clock | 573e098c9ac7843ac5cbaf04c0ee847d4d49ea91 | [
"MIT"
] | null | null | null | micropython/src/thermal_printer_alarm.py | fabianDadada/thermal_printer_alarm_clock | 573e098c9ac7843ac5cbaf04c0ee847d4d49ea91 | [
"MIT"
] | null | null | null | """This module contains all the actual logic of the project.
The main method is run when the microcontroller starts and afer each sleep cycle.
"""
import logging
import machine
import network
import ntptime
import os
import sdcard
import ujson
import urequests
import utime
from Adafruit_Thermal import Adafruit_Therma... | 28.061224 | 100 | 0.618182 |
7453848ed01d992ed0f50764c366b0776ef07914 | 11,478 | py | Python | vmcnet/mcmc/metropolis.py | nilin/vmcnet | 1d04acf6e99a265671bf276a53c111c3e77a7f14 | [
"MIT"
] | 17 | 2021-12-16T20:50:51.000Z | 2021-12-20T01:00:32.000Z | vmcnet/mcmc/metropolis.py | nilin/vmcnet | 1d04acf6e99a265671bf276a53c111c3e77a7f14 | [
"MIT"
] | 6 | 2021-12-16T01:14:20.000Z | 2022-03-16T01:41:50.000Z | vmcnet/mcmc/metropolis.py | nilin/vmcnet | 1d04acf6e99a265671bf276a53c111c3e77a7f14 | [
"MIT"
] | 4 | 2021-12-15T18:50:20.000Z | 2021-12-22T18:42:57.000Z | """Proposal and acceptance fns for Metropolis-Hastings Markov-Chain Monte Carlo."""
import logging
from typing import Callable, Tuple, cast
import jax
import jax.numpy as jnp
import vmcnet.utils as utils
from vmcnet.utils.typing import Array, D, P, PRNGKey
MetropolisStep = Callable[[P, D, PRNGKey], Tuple[jnp.float32... | 38.908475 | 88 | 0.677993 |
7454293e13312ee705f2fc3945097505c0c97567 | 946 | py | Python | project/evaluate/views.py | ktzoulas/stateless-password-manager | c2b8a5cad878758a924a5d8550e5b80b50d7a60b | [
"MIT"
] | null | null | null | project/evaluate/views.py | ktzoulas/stateless-password-manager | c2b8a5cad878758a924a5d8550e5b80b50d7a60b | [
"MIT"
] | null | null | null | project/evaluate/views.py | ktzoulas/stateless-password-manager | c2b8a5cad878758a924a5d8550e5b80b50d7a60b | [
"MIT"
] | 1 | 2019-10-03T14:24:07.000Z | 2019-10-03T14:24:07.000Z | """
Contains the views of the 'evaluate' blueprint.
"""
# pylint: disable=invalid-name
from flask import Blueprint, render_template, request
from project.evaluate.forms import EvaluateForm
from project.evaluate.helpers import evaluate_pass
evaluate_blueprint = Blueprint('evaluate', __name__, url_prefix='/evaluate... | 35.037037 | 79 | 0.664905 |
745591f3c3a8fe1b0c22eb517aa17dbfc93facac | 2,772 | py | Python | main.py | lx0hacker/xinling | 6411cfacd90a4b1a291545744252b7e05e88d33b | [
"MIT"
] | null | null | null | main.py | lx0hacker/xinling | 6411cfacd90a4b1a291545744252b7e05e88d33b | [
"MIT"
] | 1 | 2021-06-01T22:06:57.000Z | 2021-06-01T22:06:57.000Z | main.py | lx0hacker/xinling | 6411cfacd90a4b1a291545744252b7e05e88d33b | [
"MIT"
] | null | null | null | #!/usr/bin/env python
#-*- coding:utf-8 -*-
'''
@author: lx0hacker
@date:2018-02-07
'''
import requests
from urllib.parse import unquote,urlparse
import re
import os
import os.path
from bs4 import BeautifulSoup
requests.packages.urllib3.disable_warnings()
import time
import random
'''
@url :
@return
'''
'''
@folder... | 22.721311 | 69 | 0.568903 |
74567cd1f0051ad1de21abc06cb168001cf8a9f8 | 8,757 | py | Python | main_dpir_sisr_real_applications.py | HedgehogCode/DPIR | a3a7e92987e27dea87e161c3afda6a67059c388a | [
"MIT"
] | 328 | 2020-08-28T23:09:58.000Z | 2022-03-28T08:49:09.000Z | main_dpir_sisr_real_applications.py | HedgehogCode/DPIR | a3a7e92987e27dea87e161c3afda6a67059c388a | [
"MIT"
] | 17 | 2020-09-28T07:37:06.000Z | 2022-03-20T08:34:41.000Z | main_dpir_sisr_real_applications.py | HedgehogCode/DPIR | a3a7e92987e27dea87e161c3afda6a67059c388a | [
"MIT"
] | 61 | 2020-09-03T15:16:09.000Z | 2022-03-09T01:59:40.000Z | import os.path
import glob
import cv2
import logging
import time
import numpy as np
from datetime import datetime
from collections import OrderedDict
import hdf5storage
import torch
from utils import utils_deblur
from utils import utils_logger
from utils import utils_model
from utils import utils_pnp as pnp
from uti... | 39.624434 | 163 | 0.517529 |
7457d920cfc6444acc0e2d57941c84cbbc902130 | 370 | py | Python | metoo/db/redis.py | Kevin-Huang-NZ/fastapi_face_recognition | ef0811260a79c441816e007f1f9ca2a0597fc055 | [
"MIT"
] | null | null | null | metoo/db/redis.py | Kevin-Huang-NZ/fastapi_face_recognition | ef0811260a79c441816e007f1f9ca2a0597fc055 | [
"MIT"
] | null | null | null | metoo/db/redis.py | Kevin-Huang-NZ/fastapi_face_recognition | ef0811260a79c441816e007f1f9ca2a0597fc055 | [
"MIT"
] | null | null | null | from aioredis import Redis, from_url
from core.config import settings
| 23.125 | 45 | 0.618919 |
745bbc4caaea3c9f5506be81fd14951d3127dccf | 3,471 | py | Python | mlrepricer/oldsql/listener.py | elcolumbio/mlrepricer | a3bec00179b7028731793c9b3fae0eb9b9c68ad2 | [
"Apache-2.0"
] | 9 | 2018-05-17T16:42:34.000Z | 2021-03-08T06:59:09.000Z | mlrepricer/oldsql/.ipynb_checkpoints/listener-checkpoint.py | elcolumbio/mlrepricer | a3bec00179b7028731793c9b3fae0eb9b9c68ad2 | [
"Apache-2.0"
] | 6 | 2018-05-18T11:04:24.000Z | 2018-06-22T04:56:56.000Z | mlrepricer/oldsql/.ipynb_checkpoints/listener-checkpoint.py | elcolumbio/mlrepricer | a3bec00179b7028731793c9b3fae0eb9b9c68ad2 | [
"Apache-2.0"
] | 3 | 2018-05-17T16:42:36.000Z | 2020-03-23T06:53:30.000Z | # -*- coding: utf-8 -*-
"""
Get messages save them locally and delete them from the queue.
It's very fast we get thousands messages per minute.
If the queue is empty we sleep for 20 seconds.
We store the messages in yamlfiles, it will create some markers like !!omap.
Besides that we use it for readability.
"""
import... | 31.844037 | 77 | 0.668971 |
745be9afbf20554842d59bbe7c124be4cf0bfdab | 97,830 | py | Python | alibabacloud/clients/smartag_20180313.py | wallisyan/alibabacloud-python-sdk-v2 | 6e024c97cded2403025a7dd8fea8261e41872156 | [
"Apache-2.0"
] | 21 | 2018-12-20T07:34:13.000Z | 2020-03-05T14:32:08.000Z | alibabacloud/clients/smartag_20180313.py | wallisyan/alibabacloud-python-sdk-v2 | 6e024c97cded2403025a7dd8fea8261e41872156 | [
"Apache-2.0"
] | 22 | 2018-12-21T13:22:33.000Z | 2020-06-29T08:37:09.000Z | alibabacloud/clients/smartag_20180313.py | wallisyan/alibabacloud-python-sdk-v2 | 6e024c97cded2403025a7dd8fea8261e41872156 | [
"Apache-2.0"
] | 12 | 2018-12-29T05:45:55.000Z | 2022-01-05T09:59:30.000Z | # Copyright 2019 Alibaba Cloud 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 required by applicable la... | 37.525892 | 100 | 0.560258 |
745d1a46ecf6814c2b13e81ed398f292273ef6d5 | 1,216 | py | Python | tests/test_altitudo.py | milesgranger/altitudo | 9b047f484565a45c7624e69260d82869c52d653c | [
"Unlicense"
] | null | null | null | tests/test_altitudo.py | milesgranger/altitudo | 9b047f484565a45c7624e69260d82869c52d653c | [
"Unlicense"
] | 36 | 2018-10-09T19:06:39.000Z | 2019-08-12T04:23:22.000Z | tests/test_altitudo.py | milesgranger/altitudo | 9b047f484565a45c7624e69260d82869c52d653c | [
"Unlicense"
] | 1 | 2022-02-18T02:21:06.000Z | 2022-02-18T02:21:06.000Z | #!/usr/bin/env python
# -*- coding: utf-8 -*-
"""Tests for `altitudo` package."""
import pytest
from click.testing import CliRunner
from altitudo import cli, altitudo
def test_command_line_interface():
"""Test the CLI."""
runner = CliRunner()
result = runner.invoke(cli.main, ['--', 39.90974, -106.17188... | 31.179487 | 81 | 0.691612 |
745ec4a1a4107300db6c0b26707d8947baa091a5 | 496 | py | Python | reproschema/models/utils.py | sanuann/reproschema-py | ece78068b185018ec3d7f56ef9498e6e366d1e70 | [
"Apache-2.0"
] | 3 | 2020-06-22T06:58:46.000Z | 2021-04-19T03:59:47.000Z | reproschema/models/utils.py | sanuann/reproschema-py | ece78068b185018ec3d7f56ef9498e6e366d1e70 | [
"Apache-2.0"
] | 10 | 2020-07-02T08:56:21.000Z | 2021-08-03T15:38:25.000Z | reproschema/models/utils.py | Remi-Gau/reproschema-py | 9597b24d0a63210508911d152f1e94175138c32e | [
"Apache-2.0"
] | 3 | 2020-06-21T19:28:40.000Z | 2020-07-03T06:53:08.000Z | import json
from . import Protocol, Activity, Item
| 29.176471 | 45 | 0.66129 |
745f2477baf41a07960567b22767aef178a6b007 | 1,138 | py | Python | backend/api/fixtures/operational/0029_update_notifications.py | kuanfan99/zeva | 57b506a108fe57438506569d5503c90c52216b2f | [
"Apache-2.0"
] | 3 | 2020-03-25T03:06:20.000Z | 2021-01-20T23:36:03.000Z | backend/api/fixtures/operational/0029_update_notifications.py | kuanfan99/zeva | 57b506a108fe57438506569d5503c90c52216b2f | [
"Apache-2.0"
] | 740 | 2019-12-16T15:53:39.000Z | 2022-03-26T08:25:10.000Z | backend/api/fixtures/operational/0029_update_notifications.py | kuanfan99/zeva | 57b506a108fe57438506569d5503c90c52216b2f | [
"Apache-2.0"
] | 11 | 2019-11-28T20:39:15.000Z | 2022-01-31T17:53:31.000Z | from django.db import transaction
from api.management.data_script import OperationalDataScript
from api.models.notification import Notification
script_class = UpdateNotifications
| 33.470588 | 94 | 0.739016 |
745fd82ce62ab2730c797bebd1dec7307747441a | 2,612 | py | Python | leviathan/__init__.py | scottywz/leviathan-player | 31e19efd0e88959455371dd605981d98bddd388b | [
"Apache-2.0"
] | null | null | null | leviathan/__init__.py | scottywz/leviathan-player | 31e19efd0e88959455371dd605981d98bddd388b | [
"Apache-2.0"
] | null | null | null | leviathan/__init__.py | scottywz/leviathan-player | 31e19efd0e88959455371dd605981d98bddd388b | [
"Apache-2.0"
] | null | null | null | # Leviathan Music Manager
# A command-line utility to manage your music collection.
#
# Copyright (C) 2010-2011, 2020 S. Zeid
# https://code.s.zeid.me/leviathan
#
#
# 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... | 45.824561 | 80 | 0.765697 |