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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
36a9b87e26910ffc305f742982f6fa1a3f99417f | 5,673 | py | Python | tests/cli_test.py | de-code/layered-vision | 5cb34ed2fb787fb1e3a8dd7ee7f4f932fe81c038 | [
"MIT"
] | 5 | 2021-01-03T11:38:40.000Z | 2021-08-31T19:33:02.000Z | tests/cli_test.py | de-code/layered-vision | 5cb34ed2fb787fb1e3a8dd7ee7f4f932fe81c038 | [
"MIT"
] | 41 | 2020-12-01T06:59:24.000Z | 2022-03-31T13:23:23.000Z | tests/cli_test.py | de-code/layered-vision | 5cb34ed2fb787fb1e3a8dd7ee7f4f932fe81c038 | [
"MIT"
] | 2 | 2021-02-02T07:48:34.000Z | 2021-05-29T21:19:34.000Z | from pathlib import Path
from typing import Union
import cv2
import pytest
from layered_vision.cli import (
parse_value_expression,
parse_set_value,
get_merged_set_values,
main
)
EXAMPLE_IMAGE_URL = (
r'https://raw.githubusercontent.com/numpy/numpy'
r'/v1.20.1/branding/logo/logomark/numpylo... | 29.701571 | 83 | 0.559845 |
36aa46d45cf3ea3334546c1c84c23f98e38d06f3 | 5,958 | py | Python | src/discordbot/writeToken.py | mavjav-edu/discordpy | c3da0903bd7772d089536f935a381b301efb8fd5 | [
"MIT"
] | 1 | 2020-06-22T01:15:49.000Z | 2020-06-22T01:15:49.000Z | src/discordbot/writeToken.py | mavjav-edu/discordpy | c3da0903bd7772d089536f935a381b301efb8fd5 | [
"MIT"
] | 2 | 2020-09-24T20:34:37.000Z | 2021-06-25T15:38:45.000Z | src/discordbot/writeToken.py | mavjav-edu/discordpy | c3da0903bd7772d089536f935a381b301efb8fd5 | [
"MIT"
] | null | null | null | import os
import re
import base64
import keyring
from cryptography.fernet import Fernet
# Make sure the key, Fernet objects within scope of future dependencies
# by setting to here (to nothing, for now)
frn = Fernet(base64.b64encode(bytes(list(range(32)))))
key = bytes(0)
if os.path.isfile('./key'): # Check the 'key... | 36.777778 | 79 | 0.659785 |
36abaa99b236edf5ae7e28366041af627d5c697a | 38,462 | py | Python | Deprecated/three_stmts.py | FrankVolpe/SIMFIN | 63631d8cc7a7f19570b21aa1f7c49995fa0765d7 | [
"BSD-3-Clause"
] | 1 | 2019-07-29T04:35:25.000Z | 2019-07-29T04:35:25.000Z | Deprecated/three_stmts.py | FrankVolpe/SIMFIN | 63631d8cc7a7f19570b21aa1f7c49995fa0765d7 | [
"BSD-3-Clause"
] | null | null | null | Deprecated/three_stmts.py | FrankVolpe/SIMFIN | 63631d8cc7a7f19570b21aa1f7c49995fa0765d7 | [
"BSD-3-Clause"
] | 1 | 2020-12-23T23:26:17.000Z | 2020-12-23T23:26:17.000Z | from base_classes import *
| 49.500644 | 89 | 0.371094 |
36abdd1471f5a742fa98e77ecb26e8e8f6f70696 | 4,127 | py | Python | agents/ag_useHisExplorDecayedP.py | a-pedram/kaggle-mab | 5d9d6d47541f6b71a5a886146928aa57a5c77591 | [
"MIT"
] | null | null | null | agents/ag_useHisExplorDecayedP.py | a-pedram/kaggle-mab | 5d9d6d47541f6b71a5a886146928aa57a5c77591 | [
"MIT"
] | null | null | null | agents/ag_useHisExplorDecayedP.py | a-pedram/kaggle-mab | 5d9d6d47541f6b71a5a886146928aa57a5c77591 | [
"MIT"
] | null | null | null | import numpy as np
from collections import Counter
decay_rate = 0.97
n_rounds = 2000
bandit_count = 100
total_reward = None
last_bandit = None
last_reward = None
his_hits = None
his_record = None
my_record = None
my_hits = None
wins = None
losses = None
bandits_record = None
record_index = None
x1 = None
x2 = None
... | 35.886957 | 121 | 0.642598 |
36ac48e2ab27df3c0677dca73c8d8951f0e9ae52 | 1,156 | py | Python | principles-of-computing/Practice Exercises/Solitaire Mancala/Solitaire Mancala/poc_simpletest.py | kingwatam/misc-python | 8a10f14eb79b9d93bbe889175fe5ab532da73c70 | [
"MIT"
] | 1 | 2019-09-03T03:47:39.000Z | 2019-09-03T03:47:39.000Z | principles-of-computing/Practice Exercises/Solitaire Mancala/Solitaire Mancala/poc_simpletest.py | kingwatam/misc-python | 8a10f14eb79b9d93bbe889175fe5ab532da73c70 | [
"MIT"
] | null | null | null | principles-of-computing/Practice Exercises/Solitaire Mancala/Solitaire Mancala/poc_simpletest.py | kingwatam/misc-python | 8a10f14eb79b9d93bbe889175fe5ab532da73c70 | [
"MIT"
] | null | null | null | """
Lightweight testing class inspired by unittest from Pyunit
https://docs.python.org/2/library/unittest.html
Note that code is designed to be much simpler than unittest
and does NOT replicate uinittest functionality
"""
| 31.243243 | 62 | 0.554498 |
36ad7dd9946b30b8edbad769fd9fe67f2dcb1c2d | 2,014 | py | Python | jwc_core/jwc_sender.py | Inetgeek/Notice-Pusher | 052e4ecbf7520ae93e16af6ae89f560d6a6d888a | [
"MIT"
] | 2 | 2021-09-16T04:19:52.000Z | 2022-03-28T03:48:29.000Z | jwc_core/jwc_sender.py | Inetgeek/Notice-Pusher | 052e4ecbf7520ae93e16af6ae89f560d6a6d888a | [
"MIT"
] | null | null | null | jwc_core/jwc_sender.py | Inetgeek/Notice-Pusher | 052e4ecbf7520ae93e16af6ae89f560d6a6d888a | [
"MIT"
] | 1 | 2021-09-16T04:21:08.000Z | 2021-09-16T04:21:08.000Z | #!/usr/bin/python3
# coding: utf-8
import sys
import os, time, datetime
import smtplib
from email import (header)
from email.mime import (text, multipart)
with open(r'/home/jwc_notice.txt', "r+", encoding="utf-8") as file: #
a = file.read()
send_title = ""
send_head = '<p style="color:#507383"></p>'
send_content... | 36.618182 | 205 | 0.600298 |
36adec35d9afaf6063824fc88cc7373dff86a943 | 6,328 | py | Python | distributed_systems/ftp/frontend.py | JRhodes95/net-sys-cw | 926ea3b133416c4a6f8065be5caa34a5e5b49878 | [
"MIT"
] | null | null | null | distributed_systems/ftp/frontend.py | JRhodes95/net-sys-cw | 926ea3b133416c4a6f8065be5caa34a5e5b49878 | [
"MIT"
] | null | null | null | distributed_systems/ftp/frontend.py | JRhodes95/net-sys-cw | 926ea3b133416c4a6f8065be5caa34a5e5b49878 | [
"MIT"
] | null | null | null | import os
os.environ["PYRO_LOGFILE"] = "pyro.log"
os.environ["PYRO_LOGLEVEL"] = "DEBUG"
import Pyro4
import Pyro4.util
import Pyro4.naming
import sys
import pprint
"""
Front end controller for the 2017/18 Networks and Distributed Systems
Summative Assignment.
Author: Z0954757
"""
sys.excepthook = Pyro4.util.excepth... | 34.769231 | 109 | 0.62658 |
36ae9333eaabebfa5f7eb2cc25d299b4c6d41d73 | 4,501 | py | Python | tests/test_hexamer/test_search_hexamer.py | zyxue/kleat3 | 861b02797937eea51e99f9c29d195fb3e7dea376 | [
"MIT"
] | null | null | null | tests/test_hexamer/test_search_hexamer.py | zyxue/kleat3 | 861b02797937eea51e99f9c29d195fb3e7dea376 | [
"MIT"
] | null | null | null | tests/test_hexamer/test_search_hexamer.py | zyxue/kleat3 | 861b02797937eea51e99f9c29d195fb3e7dea376 | [
"MIT"
] | null | null | null | import unittest
from kleat.hexamer.search import plus_search, minus_search, search
from kleat.hexamer.hexamer import extract_seq
# Good drawing example, utilize them later
# def test_extract_seq_where_for_plus_strand_clv_supported_by_suffix():
# """
# AATAAA AA <-tail of suffix contig
# ... | 36.008 | 91 | 0.608309 |
36afd304529f60846fb23519859a8bcc5c007db7 | 3,825 | py | Python | _mod_Community/LineDrawer/Lines_Callbacks.py | tianlunjiang/_NukeStudio_v2 | 5ed9b9217aff16d903bdcda5c2f1e1cd3bebe367 | [
"CNRI-Python"
] | 6 | 2019-08-27T01:30:15.000Z | 2020-11-17T00:40:01.000Z | _mod_Community/LineDrawer/Lines_Callbacks.py | tianlunjiang/_NukeMods | 47861bfc273262abba55b9f9a61782a5d89479b1 | [
"CNRI-Python"
] | 2 | 2019-01-22T04:09:28.000Z | 2019-01-23T15:11:39.000Z | _mod_Community/LineDrawer/Lines_Callbacks.py | tianlunjiang/_NukeMods | 47861bfc273262abba55b9f9a61782a5d89479b1 | [
"CNRI-Python"
] | 1 | 2020-08-03T22:43:23.000Z | 2020-08-03T22:43:23.000Z | import nuke
| 30.11811 | 136 | 0.614641 |
36b0624ad538450600494ca8e1dbfc5af431fa64 | 907 | py | Python | 臺灣言語平臺/management/commands/加sheet的json.py | sih4sing5hong5/tai5-uan5_gian5-gi2_phing5-tai5 | 26f93e06176d8637556938d635a2e101ae7eb1ab | [
"MIT"
] | 14 | 2016-03-22T15:02:06.000Z | 2018-10-10T02:08:25.000Z | 臺灣言語平臺/management/commands/加sheet的json.py | sih4sing5hong5/tai5-uan5_gian5-gi2_gi2-liau7_phing5-thai5 | 26f93e06176d8637556938d635a2e101ae7eb1ab | [
"MIT"
] | 160 | 2015-10-15T10:34:39.000Z | 2019-03-03T11:54:02.000Z | 臺灣言語平臺/management/commands/加sheet的json.py | sih4sing5hong5/tai5-uan5_gian5-gi2_gi2-liau7_phing5-thai5 | 26f93e06176d8637556938d635a2e101ae7eb1ab | [
"MIT"
] | 5 | 2016-06-19T13:41:08.000Z | 2020-12-15T06:58:06.000Z | import json
from django.core.management.base import BaseCommand
from . import sheet
from django.conf import settings
| 23.868421 | 74 | 0.55237 |
36b163e4e896ecc59896f84da3ea4de1f6c5f0dd | 6,851 | py | Python | flask_googlelogin.py | leakim34/flask-googlelogin | 67346d232414fdba7283f516cb7540d41134d175 | [
"MIT"
] | 35 | 2015-01-28T16:13:55.000Z | 2022-02-12T20:53:32.000Z | flask_googlelogin.py | fnokeke/flask-googlelogin | 67346d232414fdba7283f516cb7540d41134d175 | [
"MIT"
] | 4 | 2015-08-14T13:33:47.000Z | 2018-12-04T10:33:17.000Z | flask_googlelogin.py | fnokeke/flask-googlelogin | 67346d232414fdba7283f516cb7540d41134d175 | [
"MIT"
] | 29 | 2015-01-28T10:23:47.000Z | 2022-02-12T20:53:34.000Z | """
Flask-GoogleLogin
"""
from base64 import (urlsafe_b64encode as b64encode,
urlsafe_b64decode as b64decode)
from urllib import urlencode
from urlparse import parse_qsl
from functools import wraps
from flask import request, redirect, abort, current_app, url_for
from flask_login import LoginManage... | 31 | 77 | 0.591301 |
36b22bde35972eb29f3533959fb0afa7c884f64c | 11,729 | py | Python | datajoint_utilities/dj_search/search.py | iamamutt/datajoint-utilities | e5c87cf968d4a50f6819fd6ab743f264641947cc | [
"MIT"
] | 1 | 2022-02-03T18:19:50.000Z | 2022-02-03T18:19:50.000Z | datajoint_utilities/dj_search/search.py | iamamutt/datajoint-utilities | e5c87cf968d4a50f6819fd6ab743f264641947cc | [
"MIT"
] | 4 | 2021-12-07T01:42:24.000Z | 2022-02-21T17:36:56.000Z | datajoint_utilities/dj_search/search.py | iamamutt/datajoint-utilities | e5c87cf968d4a50f6819fd6ab743f264641947cc | [
"MIT"
] | 2 | 2021-11-08T14:47:41.000Z | 2022-01-20T19:44:32.000Z | import datajoint as dj
import re
import inspect
from termcolor import colored
| 50.339056 | 103 | 0.499446 |
36b29aea512c076457ac717e34101b418e8451d8 | 1,838 | py | Python | acvrct.py | lyzcoote/VRChat-Py-Launcher | 307fc26d2a464ba97e93293f757e7fdaa29098de | [
"MIT"
] | null | null | null | acvrct.py | lyzcoote/VRChat-Py-Launcher | 307fc26d2a464ba97e93293f757e7fdaa29098de | [
"MIT"
] | null | null | null | acvrct.py | lyzcoote/VRChat-Py-Launcher | 307fc26d2a464ba97e93293f757e7fdaa29098de | [
"MIT"
] | null | null | null | ################################################################################
# #
# Modules #
# ... | 40.844444 | 80 | 0.259521 |
36b2e2e2a3deb4780a06fa5d022548e328c4c7a6 | 16,002 | py | Python | keepercommander/vault.py | Keeper-Security/commander | 93fee5d2ba56f2288e00ab33003597d00a302b5c | [
"MIT"
] | null | null | null | keepercommander/vault.py | Keeper-Security/commander | 93fee5d2ba56f2288e00ab33003597d00a302b5c | [
"MIT"
] | null | null | null | keepercommander/vault.py | Keeper-Security/commander | 93fee5d2ba56f2288e00ab33003597d00a302b5c | [
"MIT"
] | null | null | null | # _ __
# | |/ /___ ___ _ __ ___ _ _
# | ' </ -_) -_) '_ \/ -_) '_|
# |_|\_\___\___| .__/\___|_|
# |_|
#
# Keeper Commander
# Contact: ops@keepersecurity.com
#
import abc
import datetime
import json
from typing import Optional, List, Tuple, Iterable, Type, Union, Dict, Any
import itertools
from .para... | 37.213953 | 118 | 0.541057 |
36b37042d59ea92a31e186729793c7340e94c845 | 773 | py | Python | tests/test_quaternionic.py | mhostetter/quaternionic | 159ba7caa41afe33172373ebe4119209577812c1 | [
"MIT"
] | 40 | 2020-08-11T22:13:49.000Z | 2022-03-25T08:10:19.000Z | tests/test_quaternionic.py | mhostetter/quaternionic | 159ba7caa41afe33172373ebe4119209577812c1 | [
"MIT"
] | 28 | 2020-08-27T17:09:34.000Z | 2022-03-27T19:56:57.000Z | tests/test_quaternionic.py | mhostetter/quaternionic | 159ba7caa41afe33172373ebe4119209577812c1 | [
"MIT"
] | 6 | 2020-09-05T13:12:51.000Z | 2022-03-10T02:59:05.000Z | import warnings
import numpy as np
import quaternionic
import pytest
| 38.65 | 69 | 0.659767 |
36b4217be63fc502a7a8b608b61caf14733e4c6e | 1,477 | py | Python | carla_ros_bridge/src/carla_ros_bridge/coordinate_converter.py | OlafOrangi/ros-bridge | 732d5f99e5e1f4d0ea7e4873ccc34f0a40f1203c | [
"MIT"
] | null | null | null | carla_ros_bridge/src/carla_ros_bridge/coordinate_converter.py | OlafOrangi/ros-bridge | 732d5f99e5e1f4d0ea7e4873ccc34f0a40f1203c | [
"MIT"
] | null | null | null | carla_ros_bridge/src/carla_ros_bridge/coordinate_converter.py | OlafOrangi/ros-bridge | 732d5f99e5e1f4d0ea7e4873ccc34f0a40f1203c | [
"MIT"
] | null | null | null | #!/usr/bin/env python
from geometry_msgs.msg import Pose, Point, Quaternion, Vector3
import numpy as np
import tf
def convert_pose(pose):
"""
convert pose between left and right-hand coordinate system
:param pose: pose to be converted
:return: converted pose
"""
data = Pose()
data.position... | 26.375 | 74 | 0.688558 |
36b50824ddb6f2e96f0d94699793a7e9265c44f3 | 518 | py | Python | models/IFR_generalized_SB.py | rileymcmorrow/C-SFRAT | c696942940118172dfb2c3b8cc27b8d2fd5a5a17 | [
"MIT"
] | null | null | null | models/IFR_generalized_SB.py | rileymcmorrow/C-SFRAT | c696942940118172dfb2c3b8cc27b8d2fd5a5a17 | [
"MIT"
] | 3 | 2021-03-09T16:13:59.000Z | 2021-09-20T16:50:07.000Z | models/IFR_generalized_SB.py | rileymcmorrow/C-SFRAT | c696942940118172dfb2c3b8cc27b8d2fd5a5a17 | [
"MIT"
] | 4 | 2021-07-20T18:01:12.000Z | 2021-11-22T10:13:35.000Z | from core.model import Model
| 24.666667 | 50 | 0.525097 |
36b666e75f8d2123fc2f466527229d2f55e94174 | 1,263 | py | Python | TrendTrading/ProbModel/CheckScripts/updated market indicator.py | benjabee10/WKUResearch | 5cc384c0e0c1afc82c38a9e6eb63b80c85af7c97 | [
"MIT"
] | null | null | null | TrendTrading/ProbModel/CheckScripts/updated market indicator.py | benjabee10/WKUResearch | 5cc384c0e0c1afc82c38a9e6eb63b80c85af7c97 | [
"MIT"
] | null | null | null | TrendTrading/ProbModel/CheckScripts/updated market indicator.py | benjabee10/WKUResearch | 5cc384c0e0c1afc82c38a9e6eb63b80c85af7c97 | [
"MIT"
] | null | null | null | import numpy as np
import pandas as pd
import talib
big= 200
small= 50
threshold=0.02
#context.market (shortperiod, longperiod):
#Market Values= 0-negative, 1-no trend, 2-positive
| 25.26 | 61 | 0.639747 |
36b8262c6d34969be77ba59f989410637bf778e2 | 6,097 | py | Python | google_drive_online_decompression.py | xunyixiangchao/Google-Drive-Online-Decompression | 02121e3c25ad0ef3ceb0652a4a4e16f803e8463a | [
"Apache-2.0"
] | null | null | null | google_drive_online_decompression.py | xunyixiangchao/Google-Drive-Online-Decompression | 02121e3c25ad0ef3ceb0652a4a4e16f803e8463a | [
"Apache-2.0"
] | null | null | null | google_drive_online_decompression.py | xunyixiangchao/Google-Drive-Online-Decompression | 02121e3c25ad0ef3ceb0652a4a4e16f803e8463a | [
"Apache-2.0"
] | 1 | 2021-06-04T16:08:35.000Z | 2021-06-04T16:08:35.000Z | # -*- coding: utf-8 -*-
"""Google_Drive_Online_Decompression.ipynb
Automatically generated by Colaboratory.
Original file is located at
https://colab.research.google.com/drive/16e0tv3LEkAFaYHmKH2H63Cg6rpCNWFky
# ** GoogleDrive**
"""
#@markdown GoogleDrive
from google.colab import drive
drive.mount('/content/dr... | 23.360153 | 102 | 0.657865 |
36b8b92109f8c9655104ce9dade2ed763cbf2735 | 678 | py | Python | hackerearth/Algorithms/A plane journey/solution.py | ATrain951/01.python-com_Qproject | c164dd093954d006538020bdf2e59e716b24d67c | [
"MIT"
] | 4 | 2020-07-24T01:59:50.000Z | 2021-07-24T15:14:08.000Z | hackerearth/Algorithms/A plane journey/solution.py | ATrain951/01.python-com_Qproject | c164dd093954d006538020bdf2e59e716b24d67c | [
"MIT"
] | null | null | null | hackerearth/Algorithms/A plane journey/solution.py | ATrain951/01.python-com_Qproject | c164dd093954d006538020bdf2e59e716b24d67c | [
"MIT"
] | null | null | null | """
# Sample code to perform I/O:
name = input() # Reading input from STDIN
print('Hi, %s.' % name) # Writing output to STDOUT
# Warning: Printing unwanted or ill-formatted data to output will cause the test cases to fail
"""
# Write your code here
n, m = map(int, input().strip().split())
a ... | 26.076923 | 94 | 0.538348 |
36b8bfd65b80b877d57938c5b868d8f66abde496 | 65 | py | Python | ml/av/io/__init__.py | necla-ml/ml | 7ebd29382326e3958297607da7182c211865e7ff | [
"BSD-3-Clause"
] | 1 | 2022-02-21T21:06:29.000Z | 2022-02-21T21:06:29.000Z | ml/av/io/__init__.py | necla-ml/ml | 7ebd29382326e3958297607da7182c211865e7ff | [
"BSD-3-Clause"
] | null | null | null | ml/av/io/__init__.py | necla-ml/ml | 7ebd29382326e3958297607da7182c211865e7ff | [
"BSD-3-Clause"
] | null | null | null | """APIs from ml.vision.io and ml.audio.io
"""
from .api import * | 16.25 | 41 | 0.661538 |
36b8ccb8c50334dfa92a74050719c2548bf9dec4 | 738 | py | Python | addon.py | codingPF/plugin.video.newsApp | 64f7c3e2e742cef5cd7c3303e2ffb3ec07771476 | [
"MIT"
] | null | null | null | addon.py | codingPF/plugin.video.newsApp | 64f7c3e2e742cef5cd7c3303e2ffb3ec07771476 | [
"MIT"
] | null | null | null | addon.py | codingPF/plugin.video.newsApp | 64f7c3e2e742cef5cd7c3303e2ffb3ec07771476 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
"""
The main addon module
SPDX-License-Identifier: MIT
"""
# -- Imports ------------------------------------------------
import xbmcaddon
import resources.lib.appContext as appContext
import resources.lib.settings as Settings
import resources.lib.logger as Logger
import resources.lib.main as ... | 29.52 | 129 | 0.647696 |
36ba21d593e601f39648ce3de11ea90f9d215efd | 6,226 | py | Python | bfgame/components/equipment.py | ChrisLR/BasicDungeonRL | b293d40bd9a0d3b7aec41b5e1d58441165997ff1 | [
"MIT"
] | 3 | 2017-10-28T11:28:38.000Z | 2018-09-12T09:47:00.000Z | bfgame/components/equipment.py | ChrisLR/BasicDungeonRL | b293d40bd9a0d3b7aec41b5e1d58441165997ff1 | [
"MIT"
] | null | null | null | bfgame/components/equipment.py | ChrisLR/BasicDungeonRL | b293d40bd9a0d3b7aec41b5e1d58441165997ff1 | [
"MIT"
] | null | null | null | from bflib import units
from core import contexts
from core.components import Component, listing
from core.messaging import StringBuilder, Actor, Target, Verb
| 37.506024 | 115 | 0.625442 |
36ba65041a866ce133db66a746c7905283d02484 | 544 | py | Python | students/K33402/Shuginin_Yurii/LR2/homework_board/board_app/urls.py | emina13/ITMO_ICT_WebDevelopment_2021-2022 | 498a6138e352e7e0ca40d1eb301bc29416158f51 | [
"MIT"
] | null | null | null | students/K33402/Shuginin_Yurii/LR2/homework_board/board_app/urls.py | emina13/ITMO_ICT_WebDevelopment_2021-2022 | 498a6138e352e7e0ca40d1eb301bc29416158f51 | [
"MIT"
] | null | null | null | students/K33402/Shuginin_Yurii/LR2/homework_board/board_app/urls.py | emina13/ITMO_ICT_WebDevelopment_2021-2022 | 498a6138e352e7e0ca40d1eb301bc29416158f51 | [
"MIT"
] | 1 | 2022-03-19T09:24:42.000Z | 2022-03-19T09:24:42.000Z | from django.urls import path
from . import views
urlpatterns = [
path('', views.StartPageView.as_view()),
path('accounts/created/', views.NotificationView.as_view()),
path('accounts/<int:pk>/update/', views.StudentUpdate.as_view()),
path('profile/', views.ProfilePageView.as_view()),
path('profile/a... | 38.857143 | 69 | 0.71875 |
36bbde81383cafa0b00f9d5defddc4acebc151af | 4,478 | py | Python | tests/enviroments_test/test_environments.py | DKE-Data/agrirouter-sdk-python | 6d6b26606f7d424c62289af56da55acf412772fc | [
"Apache-2.0"
] | null | null | null | tests/enviroments_test/test_environments.py | DKE-Data/agrirouter-sdk-python | 6d6b26606f7d424c62289af56da55acf412772fc | [
"Apache-2.0"
] | null | null | null | tests/enviroments_test/test_environments.py | DKE-Data/agrirouter-sdk-python | 6d6b26606f7d424c62289af56da55acf412772fc | [
"Apache-2.0"
] | null | null | null | """Test agrirouter/environments/environments.py"""
from agrirouter.environments.environments import ProductionEnvironment as PE
from agrirouter.environments.environments import QAEnvironment as QAE
from tests.constants import application_id
| 42.245283 | 143 | 0.712818 |
36bbe5261935347fbb62f2ff569d538d41679679 | 556 | py | Python | foursquare/tests/test_lang.py | milind-shakya-sp/foursquare | 1df90777f9b86d8247e8d79e7fbe8e88c8cdd467 | [
"MIT"
] | 1 | 2019-06-10T21:12:01.000Z | 2019-06-10T21:12:01.000Z | foursquare/tests/test_lang.py | milind-shakya-sp/foursquare | 1df90777f9b86d8247e8d79e7fbe8e88c8cdd467 | [
"MIT"
] | null | null | null | foursquare/tests/test_lang.py | milind-shakya-sp/foursquare | 1df90777f9b86d8247e8d79e7fbe8e88c8cdd467 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
# -*- coding: UTF-8 -*-
# (c) 2016 Mike Lewis
import logging; log = logging.getLogger(__name__)
from . import MultilangEndpointTestCase
| 27.8 | 85 | 0.652878 |
36bc7e0436f464b768c92e41f855171401f6f554 | 4,923 | py | Python | src/tests/model_deployment_tests.py | vravisrpi/mlops-vertex | 0944b22996a5405f64d7ae162bd2427ffd81884d | [
"Apache-2.0"
] | null | null | null | src/tests/model_deployment_tests.py | vravisrpi/mlops-vertex | 0944b22996a5405f64d7ae162bd2427ffd81884d | [
"Apache-2.0"
] | null | null | null | src/tests/model_deployment_tests.py | vravisrpi/mlops-vertex | 0944b22996a5405f64d7ae162bd2427ffd81884d | [
"Apache-2.0"
] | null | null | null | # Copyright 2021 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, ... | 31.557692 | 95 | 0.672354 |
36bd2fc4cc690280e24a0e546825f3792edd1b9b | 266 | py | Python | noxfile.py | aodag/asbool | 1c5d74c9b2f641a3452c1e7118a4a83ffe665ab5 | [
"MIT"
] | 8 | 2015-11-20T01:20:13.000Z | 2021-02-20T04:24:08.000Z | noxfile.py | aodag/asbool | 1c5d74c9b2f641a3452c1e7118a4a83ffe665ab5 | [
"MIT"
] | 2 | 2020-12-08T05:16:48.000Z | 2021-02-16T11:12:06.000Z | noxfile.py | aodag/asbool | 1c5d74c9b2f641a3452c1e7118a4a83ffe665ab5 | [
"MIT"
] | null | null | null | import nox
nox.options.sessions = ["test"]
| 17.733333 | 45 | 0.593985 |
36bdb06f6f3497fa1d06a8cb17f94061f6766f18 | 9,085 | py | Python | selectGoodFeatures.py | TimSC/PyFeatureTrack | 11668181e56fb9472a0c8db291c88546e7fae0cf | [
"BSD-2-Clause"
] | 33 | 2015-02-24T18:23:11.000Z | 2022-03-08T09:55:02.000Z | selectGoodFeatures.py | Nestart/PyFeatureTrack | 11668181e56fb9472a0c8db291c88546e7fae0cf | [
"BSD-2-Clause"
] | 1 | 2017-03-08T21:07:33.000Z | 2017-06-04T21:58:01.000Z | selectGoodFeatures.py | Nestart/PyFeatureTrack | 11668181e56fb9472a0c8db291c88546e7fae0cf | [
"BSD-2-Clause"
] | 15 | 2016-06-29T08:55:58.000Z | 2020-06-04T03:01:39.000Z |
from __future__ import print_function
import math, numpy as np
from PIL import Image
from klt import *
from error import *
from convolve import *
from klt_util import *
import goodFeaturesUtils
KLT_verbose = 1
#*********************************************************************
#**********************************... | 30.692568 | 128 | 0.681233 |
36be052ecd5aed78815486dfc598f4e2ff2a749d | 3,345 | py | Python | pysparsdr/pySparSDR.py | ucsdwcsng/pySparSDR | 6622fce9c75b180b8601d9deecafff401e6a4d9f | [
"Apache-2.0"
] | null | null | null | pysparsdr/pySparSDR.py | ucsdwcsng/pySparSDR | 6622fce9c75b180b8601d9deecafff401e6a4d9f | [
"Apache-2.0"
] | null | null | null | pysparsdr/pySparSDR.py | ucsdwcsng/pySparSDR | 6622fce9c75b180b8601d9deecafff401e6a4d9f | [
"Apache-2.0"
] | null | null | null | #/bin/python3
import numpy as np
from scipy import signal as sig | 37.166667 | 295 | 0.635277 |
36bf9270f81abe8f83096f56129e26e2554011cc | 803 | py | Python | dirtyclean/tests/test_dirtyclean.py | paultopia/dirtyclean | 1b93b29e070b53afede22ff28497fd68f28d0326 | [
"MIT"
] | 2 | 2017-12-04T16:58:57.000Z | 2021-03-02T04:59:54.000Z | dirtyclean/tests/test_dirtyclean.py | paultopia/dirtyclean | 1b93b29e070b53afede22ff28497fd68f28d0326 | [
"MIT"
] | null | null | null | dirtyclean/tests/test_dirtyclean.py | paultopia/dirtyclean | 1b93b29e070b53afede22ff28497fd68f28d0326 | [
"MIT"
] | null | null | null | from dirtyclean import clean
import unittest
| 33.458333 | 124 | 0.617684 |
36bfb2d78d16ac861521aa10b4dcdbc76d656637 | 1,321 | py | Python | findNearestControl.py | petrarch1603/SurveyApplications | 129a4e24123bf81687c0a60cccbe3d0a83f63e40 | [
"MIT"
] | 1 | 2019-08-24T20:29:05.000Z | 2019-08-24T20:29:05.000Z | findNearestControl.py | petrarch1603/SurveyApplications | 129a4e24123bf81687c0a60cccbe3d0a83f63e40 | [
"MIT"
] | null | null | null | findNearestControl.py | petrarch1603/SurveyApplications | 129a4e24123bf81687c0a60cccbe3d0a83f63e40 | [
"MIT"
] | null | null | null | import csv
control = "/Users/patrickmcgranaghan1/Documents/Python/python_work/SurveyApplications/source_data/control.csv"
set_points = "/Users/patrickmcgranaghan1/Documents/Python/python_work/SurveyApplications/source_data/setPoints.csv"
max_hypotenuse = 200 # Integer in feet
# Note in the State Plane Coordinate Sys... | 48.925926 | 115 | 0.650265 |
36c07f8de0ab1e4bb4abec5686212164de45b5a1 | 2,118 | py | Python | stac_compose/collections/controller.py | dgi-catalog/stac-compose | 1cae4a58fcfb36082c203db3c99e2779fc207400 | [
"MIT"
] | null | null | null | stac_compose/collections/controller.py | dgi-catalog/stac-compose | 1cae4a58fcfb36082c203db3c99e2779fc207400 | [
"MIT"
] | 14 | 2021-03-01T20:59:20.000Z | 2021-11-24T19:14:49.000Z | stac_compose/collections/controller.py | dgi-catalog/stac-compose | 1cae4a58fcfb36082c203db3c99e2779fc207400 | [
"MIT"
] | null | null | null | from json import dumps
from pprint import PrettyPrinter
from cerberus.validator import Validator
from flask import request
from flask_restx import Resource
from werkzeug.exceptions import BadRequest
from stac_compose.collections import ns as api
from stac_compose.collections.business import CollectionsBusiness
from s... | 29.830986 | 92 | 0.715297 |
36c20378107325500044b16060b5655f3ad7826c | 6,070 | py | Python | python/tvm/auto_scheduler/workload_registry.py | jiangzoi/incubator-tvm | 144c6f45f7217b9df2f5605e06f0903e470ac11c | [
"Apache-2.0"
] | 2 | 2020-07-07T07:38:45.000Z | 2021-06-02T07:08:09.000Z | python/tvm/auto_scheduler/workload_registry.py | jiangzoi/incubator-tvm | 144c6f45f7217b9df2f5605e06f0903e470ac11c | [
"Apache-2.0"
] | 1 | 2020-07-29T07:29:17.000Z | 2020-07-29T07:29:17.000Z | python/tvm/auto_scheduler/workload_registry.py | jiangzoi/incubator-tvm | 144c6f45f7217b9df2f5605e06f0903e470ac11c | [
"Apache-2.0"
] | 1 | 2021-07-03T08:09:32.000Z | 2021-07-03T08:09:32.000Z | # Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not u... | 31.614583 | 99 | 0.682208 |
36c26ea8b70af852028240a4c83a673def2fbdd3 | 485 | py | Python | main/xrandr/template.py | RoastVeg/cports | 803c7f07af341eb32f791b6ec1f237edb2764bd5 | [
"BSD-2-Clause"
] | null | null | null | main/xrandr/template.py | RoastVeg/cports | 803c7f07af341eb32f791b6ec1f237edb2764bd5 | [
"BSD-2-Clause"
] | null | null | null | main/xrandr/template.py | RoastVeg/cports | 803c7f07af341eb32f791b6ec1f237edb2764bd5 | [
"BSD-2-Clause"
] | null | null | null | pkgname = "xrandr"
pkgver = "1.5.1"
pkgrel = 0
build_style = "gnu_configure"
hostmakedepends = ["pkgconf"]
makedepends = ["libxrandr-devel"]
pkgdesc = "Command line interface to X RandR extension"
maintainer = "q66 <q66@chimera-linux.org>"
license = "MIT"
url = "https://xorg.freedesktop.org"
source = f"$(XORG_SITE)/app... | 30.3125 | 75 | 0.748454 |
36c29207131a5d0aabb533544ef1349cab67ea61 | 2,477 | py | Python | src/arch/riscv/RiscvCPU.py | yclin99/CS251A_final_gem5 | 391ca1d7c9484f4d58fce9a4424821dcbb2463ac | [
"BSD-3-Clause"
] | 1 | 2022-03-25T13:18:26.000Z | 2022-03-25T13:18:26.000Z | src/arch/riscv/RiscvCPU.py | yclin99/CS251A_final_gem5 | 391ca1d7c9484f4d58fce9a4424821dcbb2463ac | [
"BSD-3-Clause"
] | 1 | 2022-03-25T14:15:30.000Z | 2022-03-25T14:15:30.000Z | src/arch/riscv/RiscvCPU.py | ksco/gem5-xiangshan | 0baf1b5229885d81d689a677102f0665aaac5514 | [
"BSD-3-Clause"
] | null | null | null | # Copyright 2021 Google, Inc.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are
# met: redistributions of source code must retain the above copyright
# notice, this list of conditions and the following disclaimer;
# redistribu... | 44.232143 | 72 | 0.805006 |
36c4f0d8dd30675016f1cde8a4e0b430d5e215ed | 164 | py | Python | misc/validateInput.py | viju4you/Python | 3c4a3a46265e71fc21da62d2cb204d20dcd9ec62 | [
"CC0-1.0"
] | 110 | 2017-03-11T23:37:46.000Z | 2021-07-12T11:51:32.000Z | misc/validateInput.py | viju4you/Python | 3c4a3a46265e71fc21da62d2cb204d20dcd9ec62 | [
"CC0-1.0"
] | null | null | null | misc/validateInput.py | viju4you/Python | 3c4a3a46265e71fc21da62d2cb204d20dcd9ec62 | [
"CC0-1.0"
] | 52 | 2016-11-27T19:50:40.000Z | 2022-02-09T06:37:24.000Z | # Validate input
while True:
print('Enter your age:')
age = input()
if age.isdecimal():
break
print('Pleas enter a number for your age.')
| 16.4 | 47 | 0.597561 |
36c5772cb7b021a7fd6965ba28a4663832c436d3 | 1,003 | py | Python | ckan/migration/versions/041_resource_new_fields.py | florianm/ckan | 1cfd98d591ac70b4eb81048bcd227b6c1354b1bf | [
"Apache-2.0"
] | 12 | 2015-08-28T16:59:07.000Z | 2020-03-08T01:39:30.000Z | ckan/migration/versions/041_resource_new_fields.py | florianm/ckan | 1cfd98d591ac70b4eb81048bcd227b6c1354b1bf | [
"Apache-2.0"
] | 13 | 2019-05-02T21:01:28.000Z | 2020-10-20T23:34:48.000Z | ckan/migration/versions/041_resource_new_fields.py | florianm/ckan | 1cfd98d591ac70b4eb81048bcd227b6c1354b1bf | [
"Apache-2.0"
] | 10 | 2015-05-08T04:33:20.000Z | 2020-03-03T15:17:58.000Z | from migrate import *
| 30.393939 | 65 | 0.731805 |
36c6dd4f5d4854726c666ad63dd36dff26b82159 | 1,153 | py | Python | src/train_model.py | hzdr/dvc_tutorial_series | f53eee599cc05e2c2ea31f6e2fd567a4ac3061a3 | [
"BSD-3-Clause"
] | 2 | 2021-06-24T13:39:39.000Z | 2022-02-27T13:35:02.000Z | src/train_model.py | hzdr/dvc_tutorial_series | f53eee599cc05e2c2ea31f6e2fd567a4ac3061a3 | [
"BSD-3-Clause"
] | null | null | null | src/train_model.py | hzdr/dvc_tutorial_series | f53eee599cc05e2c2ea31f6e2fd567a4ac3061a3 | [
"BSD-3-Clause"
] | null | null | null | import pickle
import pandas as pd
import yaml
from sklearn.linear_model import ElasticNet, LogisticRegression
from sklearn.ensemble import RandomForestRegressor
from config import Config
Config.MODELS_PATH.mkdir(parents=True, exist_ok=True)
with open ("params.yaml", "r") as fd:
params = yaml.safe_load(fd)
model... | 28.825 | 75 | 0.743278 |
36c6fc43e8d2fdc269e708e857550cc5862aa1c5 | 8,226 | py | Python | opentracing/harness/api_check.py | autocracy/opentracing-python | ac45df0c39b4cce8e6e6ca40dedc2b9f6c388328 | [
"MIT"
] | null | null | null | opentracing/harness/api_check.py | autocracy/opentracing-python | ac45df0c39b4cce8e6e6ca40dedc2b9f6c388328 | [
"MIT"
] | null | null | null | opentracing/harness/api_check.py | autocracy/opentracing-python | ac45df0c39b4cce8e6e6ca40dedc2b9f6c388328 | [
"MIT"
] | null | null | null | # Copyright (c) 2016 The OpenTracing Authors.
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without limitation the rights
# to use, copy, modify, merge, pub... | 39.358852 | 79 | 0.612205 |
36c93b1ef9b9eeb9b865aada75df7cf42d64021f | 29,950 | py | Python | Colab/vision_transformer_dogs_and_cats_python_generator.py | Thanusan19/Vision_Transformer | 80179d57e617ef6cd9599de93c7c7633f891f9a9 | [
"Apache-2.0"
] | 1 | 2021-07-02T13:55:11.000Z | 2021-07-02T13:55:11.000Z | Colab/vision_transformer_dogs_and_cats_python_generator.py | Thanusan19/Vision_Transformer | 80179d57e617ef6cd9599de93c7c7633f891f9a9 | [
"Apache-2.0"
] | null | null | null | Colab/vision_transformer_dogs_and_cats_python_generator.py | Thanusan19/Vision_Transformer | 80179d57e617ef6cd9599de93c7c7633f891f9a9 | [
"Apache-2.0"
] | null | null | null | # -*- coding: utf-8 -*-
"""Vision Transformer Dogs and Cats Python Generator
Automatically generated by Colaboratory.
Original file is located at
https://colab.research.google.com/drive/12u7r2OMkt_rFmOQq2g5FtX7Z0EbyPYFN
See code at https://github.com/google-research/vision_transformer/
See paper at https://arxi... | 38.007614 | 1,046 | 0.67576 |
36c9545921e82accc771994b4028870845e16cb0 | 19,349 | py | Python | tests/test_cli.py | jameswilkerson/elex | 27733e3c473fef48676f8bdd56247bee49ad32ea | [
"Apache-2.0"
] | 183 | 2015-11-25T15:13:47.000Z | 2022-01-07T23:02:36.000Z | tests/test_cli.py | jameswilkerson/elex | 27733e3c473fef48676f8bdd56247bee49ad32ea | [
"Apache-2.0"
] | 198 | 2015-11-24T16:48:48.000Z | 2020-10-26T10:38:56.000Z | tests/test_cli.py | jameswilkerson/elex | 27733e3c473fef48676f8bdd56247bee49ad32ea | [
"Apache-2.0"
] | 65 | 2015-12-03T21:29:38.000Z | 2021-08-10T20:03:49.000Z | import csv
import sys
import json
import tests
try:
from cStringIO import StringIO
except ImportError:
from io import StringIO
from six import with_metaclass
from elex.cli.app import ElexApp
from collections import OrderedDict
DATA_FILE = 'tests/data/20151103_national.json'
DATA_ELECTION_DATE = '2015-11-03'
DE... | 33.826923 | 80 | 0.567213 |
36cad5c25faaf8cf1d768a98197ce4f6fa877fa3 | 4,321 | py | Python | unipipeline/worker/uni_worker_consumer.py | aliaksandr-master/unipipeline | d8eac38534172aee59ab5777321cabe67f3779ef | [
"MIT"
] | null | null | null | unipipeline/worker/uni_worker_consumer.py | aliaksandr-master/unipipeline | d8eac38534172aee59ab5777321cabe67f3779ef | [
"MIT"
] | 1 | 2021-09-14T13:08:13.000Z | 2021-09-14T13:08:13.000Z | unipipeline/worker/uni_worker_consumer.py | aliaksandr-master/unipipeline | d8eac38534172aee59ab5777321cabe67f3779ef | [
"MIT"
] | null | null | null | from typing import TypeVar, Generic, Optional, Type, Any, Union, Dict, TYPE_CHECKING
from unipipeline.errors.uni_payload_error import UniPayloadParsingError, UniAnswerPayloadParsingError
from unipipeline.errors.uni_sending_to_worker_error import UniSendingToWorkerError
from unipipeline.answer.uni_answer_message import... | 61.728571 | 207 | 0.765564 |
36cae8cc11223214274fe92b0ac8c6515461f9fe | 1,825 | py | Python | funing/_ui/about.py | larryw3i/Funing | 8ef88af8766f0246614517fa00f3b322ba722d6b | [
"MIT"
] | 1 | 2021-08-22T05:56:09.000Z | 2021-08-22T05:56:09.000Z | funing/_ui/about.py | larryw3i/Funing | 8ef88af8766f0246614517fa00f3b322ba722d6b | [
"MIT"
] | null | null | null | funing/_ui/about.py | larryw3i/Funing | 8ef88af8766f0246614517fa00f3b322ba722d6b | [
"MIT"
] | null | null | null |
import gettext
import os
import re
import subprocess
import sys
import time
import tkinter as tk
import tkinter.filedialog as tkf
import uuid
import webbrowser
from datetime import date, datetime
from enum import Enum
from tkinter import *
from tkinter import messagebox
from tkinter.ttk import *
import cv2
import num... | 23.397436 | 73 | 0.656438 |
36cd33528502d61cfd130bce552b6359665140f3 | 8,039 | py | Python | pysnmp-with-texts/Fore-Common-MIB.py | agustinhenze/mibs.snmplabs.com | 1fc5c07860542b89212f4c8ab807057d9a9206c7 | [
"Apache-2.0"
] | 8 | 2019-05-09T17:04:00.000Z | 2021-06-09T06:50:51.000Z | pysnmp-with-texts/Fore-Common-MIB.py | agustinhenze/mibs.snmplabs.com | 1fc5c07860542b89212f4c8ab807057d9a9206c7 | [
"Apache-2.0"
] | 4 | 2019-05-31T16:42:59.000Z | 2020-01-31T21:57:17.000Z | pysnmp-with-texts/Fore-Common-MIB.py | agustinhenze/mibs.snmplabs.com | 1fc5c07860542b89212f4c8ab807057d9a9206c7 | [
"Apache-2.0"
] | 10 | 2019-04-30T05:51:36.000Z | 2022-02-16T03:33:41.000Z | #
# PySNMP MIB module Fore-Common-MIB (http://snmplabs.com/pysmi)
# ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/Fore-Common-MIB
# Produced by pysmi-0.3.4 at Wed May 1 13:14:34 2019
# On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4
# Using Python version 3.7.3 (default, Mar 27... | 73.752294 | 1,461 | 0.707302 |
36d0e1753fba4845d6f1c53b001fd0c1077f6cbc | 2,753 | py | Python | lib/logger.py | YahiaKandeel/ironport-correlator | cb426f412dba403f056c40eef631f0c252eada08 | [
"Apache-2.0"
] | 6 | 2019-10-28T01:18:51.000Z | 2022-01-26T11:43:14.000Z | lib/logger.py | YahiaKandeel/ironport-correlator | cb426f412dba403f056c40eef631f0c252eada08 | [
"Apache-2.0"
] | null | null | null | lib/logger.py | YahiaKandeel/ironport-correlator | cb426f412dba403f056c40eef631f0c252eada08 | [
"Apache-2.0"
] | 2 | 2020-04-30T11:17:27.000Z | 2021-11-17T02:26:48.000Z | ################################################################################
# Styler & Logger
################################################################################
from logging.handlers import SysLogHandler
import logging
import json
import pprint
import time
from .decoder import decode
import collectio... | 27.808081 | 81 | 0.564475 |
36d148c1ce0bdea8709582045309f0f2acad2b33 | 954 | py | Python | services/web/apps/inv/inv/plugins/log.py | prorevizor/noc | 37e44b8afc64318b10699c06a1138eee9e7d6a4e | [
"BSD-3-Clause"
] | 84 | 2017-10-22T11:01:39.000Z | 2022-02-27T03:43:48.000Z | services/web/apps/inv/inv/plugins/log.py | prorevizor/noc | 37e44b8afc64318b10699c06a1138eee9e7d6a4e | [
"BSD-3-Clause"
] | 22 | 2017-12-11T07:21:56.000Z | 2021-09-23T02:53:50.000Z | services/web/apps/inv/inv/plugins/log.py | prorevizor/noc | 37e44b8afc64318b10699c06a1138eee9e7d6a4e | [
"BSD-3-Clause"
] | 23 | 2017-12-06T06:59:52.000Z | 2022-02-24T00:02:25.000Z | # ---------------------------------------------------------------------
# inv.inv log plugin
# ---------------------------------------------------------------------
# Copyright (C) 2007-2018 The NOC Project
# See LICENSE for details
# ---------------------------------------------------------------------
# NOC modules
... | 28.909091 | 71 | 0.336478 |
36d22a39c7974086f08155ff6bf52d3cb2267f62 | 574 | py | Python | blender/arm/logicnode/transform/LN_separate_quaternion.py | niacdoial/armory | 3f9b633fbf772017c576a3f77695a6c28d9956e1 | [
"Zlib"
] | null | null | null | blender/arm/logicnode/transform/LN_separate_quaternion.py | niacdoial/armory | 3f9b633fbf772017c576a3f77695a6c28d9956e1 | [
"Zlib"
] | null | null | null | blender/arm/logicnode/transform/LN_separate_quaternion.py | niacdoial/armory | 3f9b633fbf772017c576a3f77695a6c28d9956e1 | [
"Zlib"
] | null | null | null | from arm.logicnode.arm_nodes import *
| 31.888889 | 57 | 0.679443 |
36d3212ee65298917f85198d847d449f780e78c7 | 3,110 | py | Python | tools/exporter_python/exporter.py | moriyalb/hades | ea2743a23022f65b3931eb482b6ec18804410ba3 | [
"MIT"
] | 5 | 2018-05-18T10:01:46.000Z | 2021-08-18T13:59:47.000Z | tools/exporter_python/exporter.py | moriyalb/hades | ea2743a23022f65b3931eb482b6ec18804410ba3 | [
"MIT"
] | null | null | null | tools/exporter_python/exporter.py | moriyalb/hades | ea2743a23022f65b3931eb482b6ec18804410ba3 | [
"MIT"
] | null | null | null | import getopt
import sys
import os
import schema
import server
import orm
CLIENT_TYPE = {
'--client_lua_path' : "lua",
'--client_cs_path' : "cs",
'--client_cpp_path' : "cpp",
'--client_js_path' : "js",
'--client_python_path' : "python",
}
if __name__ == "__main__":
#try:
export()
#ex... | 31.734694 | 104 | 0.684566 |
36d456418e0f32038550bac5f2b5a0f1d2148fc5 | 707 | py | Python | python/python project/te330.py | WhitePhosphorus4/xh-learning-code | 025e31500d9f46d97ea634d7fd311c65052fd78e | [
"Apache-2.0"
] | null | null | null | python/python project/te330.py | WhitePhosphorus4/xh-learning-code | 025e31500d9f46d97ea634d7fd311c65052fd78e | [
"Apache-2.0"
] | null | null | null | python/python project/te330.py | WhitePhosphorus4/xh-learning-code | 025e31500d9f46d97ea634d7fd311c65052fd78e | [
"Apache-2.0"
] | null | null | null | import wx
app = App()
f = wx.Frame(None, -1, "Hello", [700, 500])
wx.Button(f, size = [0, 0])
#s = wx.Image("uu.png", wx.BITMAP_TYPE_ANY).ConvertToBitmap()
b = wx.Button(f, -1,'Hello', size = [80, 30], style = wx.BORDER_NONE)
#bb= wx.StaticBitmap(b, -1, wx.Image("uu.png", wx.BITMAP_TYPE_ANY).ConvertToBitmap())
b.SetBa... | 27.192308 | 85 | 0.666195 |
36d4d897387b020fc8db80ecfcfac7847d28fc17 | 2,048 | py | Python | examples/sneswii2gamepad/code.py | dglaude/CircuitPython_Joystic_Controller | a9ef8855b9be457b25c9a436fcbbf6aebe39b4e9 | [
"Unlicense",
"MIT-0",
"MIT"
] | null | null | null | examples/sneswii2gamepad/code.py | dglaude/CircuitPython_Joystic_Controller | a9ef8855b9be457b25c9a436fcbbf6aebe39b4e9 | [
"Unlicense",
"MIT-0",
"MIT"
] | null | null | null | examples/sneswii2gamepad/code.py | dglaude/CircuitPython_Joystic_Controller | a9ef8855b9be457b25c9a436fcbbf6aebe39b4e9 | [
"Unlicense",
"MIT-0",
"MIT"
] | null | null | null | # SPDX-FileCopyrightText: 2021 ladyada for Adafruit Industries
# SPDX-License-Identifier: MIT
# You must add a gamepad HID device inside your boot.py file
# in order to use this example.
# See this Learn Guide for details:
# https://learn.adafruit.com/customizing-usb-devices-in-circuitpython/hid-devices#custom-hid-dev... | 23.54023 | 110 | 0.605957 |
36d54bbaca57e4631b154f3ca77d029d7fd103ad | 3,345 | py | Python | spleeter/util.py | ashirviskas/spleeter-pytorch | 853d4bb6048fae879543342a8278c298854637f3 | [
"MIT"
] | 28 | 2019-11-29T10:23:16.000Z | 2022-03-28T13:02:29.000Z | spleeter/util.py | ashirviskas/spleeter-pytorch | 853d4bb6048fae879543342a8278c298854637f3 | [
"MIT"
] | 2 | 2020-05-07T04:07:50.000Z | 2020-07-13T02:40:41.000Z | spleeter/util.py | ashirviskas/spleeter-pytorch | 853d4bb6048fae879543342a8278c298854637f3 | [
"MIT"
] | 6 | 2020-05-31T08:23:56.000Z | 2022-02-22T16:38:19.000Z | import numpy as np
import tensorflow as tf
from .unet import UNet
| 36.358696 | 88 | 0.529746 |
36d54c415ce82d548b3b02e02ceb85813202d7ef | 1,920 | py | Python | SDEprocesses/explicit.py | PyPaperParrot/pystoch | 14d1dbeefaeb3696378e0db6e565347df87a02bc | [
"MIT"
] | 1 | 2019-06-06T13:53:51.000Z | 2019-06-06T13:53:51.000Z | SDEprocesses/explicit.py | PyPaperParrot/pystoch | 14d1dbeefaeb3696378e0db6e565347df87a02bc | [
"MIT"
] | null | null | null | SDEprocesses/explicit.py | PyPaperParrot/pystoch | 14d1dbeefaeb3696378e0db6e565347df87a02bc | [
"MIT"
] | null | null | null | import numpy as np
import exceptions as ex
# 4. -
# 6.
| 34.285714 | 207 | 0.611458 |
36d5db401ea4ab6c6ef162a66fa84ae2937cecdb | 3,847 | py | Python | oscontainer/cgroup_v2_subsystem.py | Lothiraldan/oscontainer | 140504711372494f919b4de7bf84e80d11013fa0 | [
"MIT"
] | null | null | null | oscontainer/cgroup_v2_subsystem.py | Lothiraldan/oscontainer | 140504711372494f919b4de7bf84e80d11013fa0 | [
"MIT"
] | null | null | null | oscontainer/cgroup_v2_subsystem.py | Lothiraldan/oscontainer | 140504711372494f919b4de7bf84e80d11013fa0 | [
"MIT"
] | null | null | null | import math
from oscontainer.constants import CGROUP_TYPE_V2, PER_CPU_SHARES, NO_LIMIT
from oscontainer.cgroup_subsystem import CgroupController, CgroupSubsystem
from oscontainer.utils import limit_from_str
CPU_WEIGHT = "cpu.weight"
CPU_MAX = "cpu.max"
CPU_CPUSET_CPUS = "cpuset.cpus"
CPU_CPUSET_CPUS_EFFECTIVE = "cpus... | 34.044248 | 102 | 0.641279 |
36d6b30d341d10b3fc5496de476fb8b78f692188 | 460 | py | Python | openapi/tests/matchers.py | suihanki/openapi | c67ee4ec0284bc1da5bda2c6b8497d6a33bb69a0 | [
"Apache-2.0"
] | 25 | 2016-08-09T18:40:42.000Z | 2019-07-15T20:37:13.000Z | openapi/tests/matchers.py | suihanki/openapi | c67ee4ec0284bc1da5bda2c6b8497d6a33bb69a0 | [
"Apache-2.0"
] | 5 | 2016-08-16T18:34:44.000Z | 2020-03-24T21:01:26.000Z | openapi/tests/matchers.py | suihanki/openapi | c67ee4ec0284bc1da5bda2c6b8497d6a33bb69a0 | [
"Apache-2.0"
] | 11 | 2016-09-14T09:12:49.000Z | 2020-01-31T19:27:07.000Z | """
Custom hamcrest matchers.
"""
from hamcrest.core.base_matcher import BaseMatcher
from json import dumps, loads
equal_to_json = JSONMatcher
| 18.4 | 70 | 0.671739 |
36d743457c72e522cd69762028d8c4a8aaf9d131 | 2,741 | py | Python | build-container/docxify3.py | signaux-faibles/datapi | 296ee922dc47eea4176f5c7bdde35c218bf9c817 | [
"MIT"
] | null | null | null | build-container/docxify3.py | signaux-faibles/datapi | 296ee922dc47eea4176f5c7bdde35c218bf9c817 | [
"MIT"
] | 31 | 2020-04-23T11:29:16.000Z | 2021-06-23T05:45:08.000Z | build-container/docxify3.py | signaux-faibles/datapi | 296ee922dc47eea4176f5c7bdde35c218bf9c817 | [
"MIT"
] | null | null | null | # coding: utf-8
import sys
import json
from mailmerge import MailMerge
# Le template contient ce jour les champs :
# auteur l'auteur du document
# date_edition la date d'dition du document
# confidentialite le destinataire du document
# raison_sociale la raison sociale de l'entreprise
# siret le numro de SIRET de l't... | 38.069444 | 108 | 0.785845 |
36d88c360c0960445e0699b390c5bc46416d33e6 | 406 | py | Python | super32assembler/super32assembler/preprocessor/asmdirectives.py | Projektstudium-Mikroprozessor/Super32 | d502d2d5885ac0408d06e57e0f5a67fe2a2fee15 | [
"BSD-3-Clause"
] | 1 | 2019-12-07T01:56:31.000Z | 2019-12-07T01:56:31.000Z | super32assembler/super32assembler/preprocessor/asmdirectives.py | Projektstudium-Mikroprozessor/Super32 | d502d2d5885ac0408d06e57e0f5a67fe2a2fee15 | [
"BSD-3-Clause"
] | 42 | 2020-05-15T10:39:30.000Z | 2020-08-30T10:59:43.000Z | super32assembler/preprocessor/asmdirectives.py | xsjad0/Super32 | 75cf5828b17cdbce144447a69ff3d1be7ad601f2 | [
"BSD-3-Clause"
] | 4 | 2019-11-27T15:05:33.000Z | 2020-05-13T06:51:21.000Z | """
Enum Assembler-Directives
"""
from enum import Enum, auto
| 18.454545 | 53 | 0.549261 |
36d90f9194a3f4a5adea321bf4cf9176ed0ded59 | 250 | py | Python | Wyklad/OOP/Sheep.py | tborzyszkowski/PythonWorld | dc776d3ab4569297b6b6681e4390aeedf1262c78 | [
"MIT"
] | 3 | 2019-02-24T07:49:33.000Z | 2022-01-09T11:27:21.000Z | Wyklad/OOP/Sheep.py | tborzyszkowski/PythonWorld | dc776d3ab4569297b6b6681e4390aeedf1262c78 | [
"MIT"
] | null | null | null | Wyklad/OOP/Sheep.py | tborzyszkowski/PythonWorld | dc776d3ab4569297b6b6681e4390aeedf1262c78 | [
"MIT"
] | 17 | 2018-12-09T08:44:52.000Z | 2022-01-25T15:08:04.000Z | from Animal import Animal
| 16.666667 | 47 | 0.704 |
36da2e9adf116505c11742d74e8d8a7c885d7c7d | 1,034 | py | Python | python/python-algorithm-intervew/8-linked-list/16-add-two-numbers-2.py | bum12ark/algorithm | b6e262b0c29a8b5fb551db5a177a40feebc411b4 | [
"MIT"
] | 1 | 2022-03-06T03:49:31.000Z | 2022-03-06T03:49:31.000Z | python/python-algorithm-intervew/8-linked-list/16-add-two-numbers-2.py | bum12ark/algorithm | b6e262b0c29a8b5fb551db5a177a40feebc411b4 | [
"MIT"
] | null | null | null | python/python-algorithm-intervew/8-linked-list/16-add-two-numbers-2.py | bum12ark/algorithm | b6e262b0c29a8b5fb551db5a177a40feebc411b4 | [
"MIT"
] | null | null | null |
if __name__ == '__main__':
solution = Solution()
param1 = ListNode(2, ListNode(4, ListNode(5)))
param2 = ListNode(5, ListNode(6, ListNode(4)))
print(solution.addTwoNumbers(param1, param2).print_list())
| 24.619048 | 72 | 0.500967 |
36dbe66f53ea99cba7463f1defbdf1646e602362 | 15,516 | py | Python | pyjokes/jokes_pl.py | r0d0dendr0n/pyjokes | 382065cba91007302be7fd04c5c35a9957e173b2 | [
"BSD-3-Clause"
] | null | null | null | pyjokes/jokes_pl.py | r0d0dendr0n/pyjokes | 382065cba91007302be7fd04c5c35a9957e173b2 | [
"BSD-3-Clause"
] | null | null | null | pyjokes/jokes_pl.py | r0d0dendr0n/pyjokes | 382065cba91007302be7fd04c5c35a9957e173b2 | [
"BSD-3-Clause"
] | null | null | null | # -*- coding: utf-8 -*-
"""
Jokes below come from the "jokes_en.py" file.
Translation to Polish: Tomasz Rozynek - provided under CC BY-SA 3.0
"""
neutral = [
"W 2030 roku Beata z ulg usuna Python'a 2.7 ze swoich maszyn. 'No!' westchna, by za chwil przeczyta ogoszenia na temat Python'a 4.4.",
"Zapytanie SQL wc... | 77.969849 | 147 | 0.743942 |
36dc5f7d17dd68b5094396174551645ca5e9fe1c | 2,335 | py | Python | pele_platform/Utilities/Helpers/launcher.py | gabrii/pele_platform | 64ef9affdd1740fc2e0545c706f30eb2723aa300 | [
"Apache-2.0"
] | null | null | null | pele_platform/Utilities/Helpers/launcher.py | gabrii/pele_platform | 64ef9affdd1740fc2e0545c706f30eb2723aa300 | [
"Apache-2.0"
] | null | null | null | pele_platform/Utilities/Helpers/launcher.py | gabrii/pele_platform | 64ef9affdd1740fc2e0545c706f30eb2723aa300 | [
"Apache-2.0"
] | null | null | null | from dataclasses import dataclass
import pele_platform.Checker.main as ck
import pele_platform.Frag.simulation as fr
import pele_platform.Adaptive.simulation as ad
from pele_platform.Allosteric.main import run_allosteric
import pele_platform.gpcr.main as gpcr
import pele_platform.out_in.main as outin
from pele_platform... | 37.063492 | 93 | 0.68137 |
36dc9e14a8dd2c4fe9c4599b6173dd0c635c5f35 | 1,607 | py | Python | Project/AuditReport/Aw/audit_aw.py | StarryHome/MultiToolsPlatform | 2bd2b7e0700dbf542f0272ece3590a4afde328a4 | [
"MIT"
] | null | null | null | Project/AuditReport/Aw/audit_aw.py | StarryHome/MultiToolsPlatform | 2bd2b7e0700dbf542f0272ece3590a4afde328a4 | [
"MIT"
] | null | null | null | Project/AuditReport/Aw/audit_aw.py | StarryHome/MultiToolsPlatform | 2bd2b7e0700dbf542f0272ece3590a4afde328a4 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
from .pandas_aw import PandasAw
if __name__ == '__main__':
audit = AuditAw()
visit_data_path = r'C:\Users\Administrator\Desktop\test\.xlsx'
visit_demand_path = r'C:\Users\Administrator\Desktop\test\.xlsx'
outliers_path = r'C:\Users\Administrator\Desktop\test\.xlsx'
audit.a... | 30.903846 | 109 | 0.655881 |
36de3480ccf6ebc0ee5035bf6d2e1a0522de31d5 | 812 | py | Python | libs/subsets_of_subset.py | nishio/atcoder | 8db36537b5d8580745d5f98312162506ad7d7ab4 | [
"MIT"
] | 1 | 2021-03-09T04:28:13.000Z | 2021-03-09T04:28:13.000Z | libs/subsets_of_subset.py | nishio/atcoder | 8db36537b5d8580745d5f98312162506ad7d7ab4 | [
"MIT"
] | null | null | null | libs/subsets_of_subset.py | nishio/atcoder | 8db36537b5d8580745d5f98312162506ad7d7ab4 | [
"MIT"
] | null | null | null | """
all subsets of given subset
"""
# --- end of library ---
def debugprint(g):
for x in g:
print(f"{x:06b}")
TEST_1 = """
>>> debugprint(subsets_of_subset(0b010101))
010101
010100
010001
010000
000101
000100
000001
000000
"""
if __name__ == "__main__":
import sys
input = sys.stdin.buffer.re... | 15.615385 | 59 | 0.566502 |
36df1c98bfbc556da9445e6a4a358b0bfd225e8a | 9,312 | py | Python | models/backbone.py | kakaobrain/sparse-detr | 1ea7a062ca6d1dd57768d65b14352cfd1a65ab52 | [
"Apache-2.0"
] | 83 | 2021-11-29T04:45:39.000Z | 2022-03-30T13:39:46.000Z | models/backbone.py | kakaobrain/sparse-detr | 1ea7a062ca6d1dd57768d65b14352cfd1a65ab52 | [
"Apache-2.0"
] | 4 | 2021-12-18T21:24:50.000Z | 2022-03-18T07:22:04.000Z | models/backbone.py | kakaobrain/sparse-detr | 1ea7a062ca6d1dd57768d65b14352cfd1a65ab52 | [
"Apache-2.0"
] | 3 | 2021-12-29T12:07:20.000Z | 2022-02-11T08:26:16.000Z | # ------------------------------------------------------------------------------------
# Sparse DETR
# Copyright (c) 2021 KakaoBrain. All Rights Reserved.
# Licensed under the Apache License, Version 2.0 [see LICENSE for details]
# ------------------------------------------------------------------------------------
# M... | 38.962343 | 107 | 0.578393 |
36dfbf17404b4b4327586ca76fafeed5dd3aea90 | 496 | py | Python | resonate-carla/risk_calculation/function_test.py | scope-lab-vu/Resonate-Dynamic-Risk | 46972bdb0a2b6b08cc188a9f1f6567971c9d263d | [
"MIT"
] | 3 | 2021-08-15T05:02:17.000Z | 2022-03-16T11:25:45.000Z | resonate-carla/risk_calculation/function_test.py | scope-lab-vu/Resonate-Dynamic-Risk | 46972bdb0a2b6b08cc188a9f1f6567971c9d263d | [
"MIT"
] | null | null | null | resonate-carla/risk_calculation/function_test.py | scope-lab-vu/Resonate-Dynamic-Risk | 46972bdb0a2b6b08cc188a9f1f6567971c9d263d | [
"MIT"
] | 2 | 2021-03-21T02:35:17.000Z | 2021-06-02T22:40:07.000Z | from bowtie_diagram import BowTie
import matplotlib.pyplot as plt
EXAMPLE_MONITOR_VALUES = [x for x in range(-5, 21)]
bowtie = BowTie()
state = {"monitor_values": {"lec_martingale": None}}
true_y_vals = []
true_x_vals = []
for x_val in EXAMPLE_MONITOR_VALUES:
true_x_vals.append(x_val)
state["monitor_values"]... | 24.8 | 53 | 0.737903 |
36dfdaf21f66ae9305bc8e42cb69c1de214c4d13 | 3,760 | py | Python | hw_asr/model/dsmodel.py | ivan-gorin/asr_project_template | 6a9f908d7f287ac2a66d5740fa6c73133825845a | [
"MIT"
] | null | null | null | hw_asr/model/dsmodel.py | ivan-gorin/asr_project_template | 6a9f908d7f287ac2a66d5740fa6c73133825845a | [
"MIT"
] | null | null | null | hw_asr/model/dsmodel.py | ivan-gorin/asr_project_template | 6a9f908d7f287ac2a66d5740fa6c73133825845a | [
"MIT"
] | null | null | null | #from https://www.assemblyai.com/blog/end-to-end-speech-recognition-pytorch/
from torch import nn
import torch.nn.functional as F
from hw_asr.base import BaseModel
| 35.471698 | 116 | 0.614894 |
36e0a5cff93ebca1eb7f6ddcf88fb764dd56d580 | 9,198 | py | Python | reminders/menu.py | elanorstark/reminder_pi | e6419f9bce29a1a06e0fee1b9e79156779a08c8b | [
"MIT"
] | null | null | null | reminders/menu.py | elanorstark/reminder_pi | e6419f9bce29a1a06e0fee1b9e79156779a08c8b | [
"MIT"
] | null | null | null | reminders/menu.py | elanorstark/reminder_pi | e6419f9bce29a1a06e0fee1b9e79156779a08c8b | [
"MIT"
] | null | null | null | import datetime
from typing import List
from reminders.events import Buttons, Alerts
from reminders.screen import Screen
# highest level, things that can be in a list menu
# an item in a menu that does something other than going to another menu
# an action item that is displayed on a menu with a checkbox
# pa... | 31.717241 | 112 | 0.607741 |
36e0bc6b9fd730df1ea36e866d1ae6f2849b3e37 | 2,127 | py | Python | custom_components/goldair_climate/configuration.py | jwhite/homeassistant-goldair-climate | cca1831a1d257c507f3831ca053478e1e7643c75 | [
"MIT"
] | 8 | 2019-05-31T00:17:13.000Z | 2021-01-12T21:43:21.000Z | custom_components/goldair_climate/configuration.py | jwhite/homeassistant-goldair-climate | cca1831a1d257c507f3831ca053478e1e7643c75 | [
"MIT"
] | 25 | 2019-07-04T06:46:30.000Z | 2021-07-15T03:13:46.000Z | custom_components/goldair_climate/configuration.py | nicole-ashley/homeassistant-goldair-climate | df5f895db20d826b673142e785477944497d9402 | [
"MIT"
] | 9 | 2019-11-22T02:46:55.000Z | 2021-07-04T21:57:41.000Z | import voluptuous as vol
from homeassistant.const import CONF_HOST, CONF_NAME
from .const import (
CONF_CHILD_LOCK,
CONF_CLIMATE,
CONF_DEVICE_ID,
CONF_DISPLAY_LIGHT,
CONF_LOCAL_KEY,
CONF_TYPE,
CONF_TYPE_AUTO,
CONF_TYPE_DEHUMIDIFIER,
CONF_TYPE_FAN,
CONF_TYPE_GECO_HEATER,
CONF... | 25.023529 | 76 | 0.550071 |
36e0e9a9d4e28937589b02ccb2d38ccef3931ed6 | 255 | py | Python | 20-29/nlp23.py | emergent/nlp100.python | 636546ce1c4368faa6685eec315773c5c9fb424a | [
"Apache-2.0"
] | null | null | null | 20-29/nlp23.py | emergent/nlp100.python | 636546ce1c4368faa6685eec315773c5c9fb424a | [
"Apache-2.0"
] | null | null | null | 20-29/nlp23.py | emergent/nlp100.python | 636546ce1c4368faa6685eec315773c5c9fb424a | [
"Apache-2.0"
] | null | null | null | from nlp20 import get_england
import re
str = get_england()
lines = str.split('\n')
p = re.compile(r'^(=+)\s*(.+?)\s*=+')
for l in lines:
m = re.search(p, l)
if m is not None:
level = len(m.group(1)) - 1
print(m.group(2), level)
| 19.615385 | 37 | 0.556863 |
36e117d0d57d57188bd69bce4d500df94875ceb8 | 4,913 | py | Python | platform_reports/prometheus_grammars.py | neuro-inc/platform-reports | 161c18733370235af0b63a772de49343e956c35c | [
"Apache-2.0"
] | null | null | null | platform_reports/prometheus_grammars.py | neuro-inc/platform-reports | 161c18733370235af0b63a772de49343e956c35c | [
"Apache-2.0"
] | 9 | 2021-12-23T03:10:40.000Z | 2022-03-31T03:15:52.000Z | platform_reports/prometheus_grammars.py | neuro-inc/platform-reports | 161c18733370235af0b63a772de49343e956c35c | [
"Apache-2.0"
] | null | null | null | PROMQL = """
start: query
// Binary operations are defined separately in order to support precedence
?query\
: or_match
| matrix
| subquery
| offset
?or_match\
: and_unless_match
| or_match OR grouping? and_unless_match
?and_unless_match\
: comparison_match
| and_unless_match (AND | ... | 17.996337 | 77 | 0.65113 |
36e1fd31cd58507e88abf55b7c02a2da45a269b3 | 2,750 | py | Python | usersmanagement/models.py | Open-CMMS/openCMMS_backend | 56511ebac83a5dc1fb8768a98bc675e88530a447 | [
"BSD-3-Clause"
] | 3 | 2021-03-08T19:14:38.000Z | 2022-02-01T17:57:31.000Z | usersmanagement/models.py | Open-CMMS/openCMMS_backend | 56511ebac83a5dc1fb8768a98bc675e88530a447 | [
"BSD-3-Clause"
] | null | null | null | usersmanagement/models.py | Open-CMMS/openCMMS_backend | 56511ebac83a5dc1fb8768a98bc675e88530a447 | [
"BSD-3-Clause"
] | null | null | null | """This file contain the model for the usermanagement app."""
from django.contrib.auth.models import AbstractUser, Group, Permission
from django.db import models
| 28.350515 | 92 | 0.627273 |
36e3612bbbacdd9cd6a33c5bc043ceb7c94b8118 | 572 | py | Python | resrc/utils/templatetags/gravatar.py | theWhiteFox/resrc | d62bcf3ba2a55f50ae38a1e606072ee3d6025da5 | [
"MIT"
] | 274 | 2015-01-02T08:57:58.000Z | 2022-03-11T11:44:44.000Z | resrc/utils/templatetags/gravatar.py | ninjaCheery/resrc | 8af3a1a3617fd305a2c8aecffb609ed3e9c1addc | [
"MIT"
] | 8 | 2015-05-19T02:54:49.000Z | 2016-07-07T18:10:40.000Z | resrc/utils/templatetags/gravatar.py | ninjaCheery/resrc | 8af3a1a3617fd305a2c8aecffb609ed3e9c1addc | [
"MIT"
] | 112 | 2015-01-03T18:59:23.000Z | 2019-10-08T11:49:18.000Z | # -*- coding: utf-8 -*-:
from django import template
import urllib
import hashlib
register = template.Library()
register.simple_tag(gravatar)
| 26 | 86 | 0.631119 |
36e397fd23e48d333c1f759c070a0a56a3fe0024 | 11,149 | py | Python | utils/torch_utils.py | misads/torch_image_template | db55be6fcebdb6b0c5c739e505b8a7a2eb81c3c1 | [
"MIT"
] | 5 | 2019-12-23T05:13:15.000Z | 2020-04-09T03:47:53.000Z | utils/torch_utils.py | misads/torch_image_template | db55be6fcebdb6b0c5c739e505b8a7a2eb81c3c1 | [
"MIT"
] | null | null | null | utils/torch_utils.py | misads/torch_image_template | db55be6fcebdb6b0c5c739e505b8a7a2eb81c3c1 | [
"MIT"
] | null | null | null | # encoding=utf-8
"""
Misc PyTorch utils
Author: xuhaoyu@tju.edu.cn
update 12.7
Usage:
`from torch_utils import *`
`func_name()` # to call functions in this file
"""
from datetime import datetime
import math
import os
import torch
import torch.nn as nn
from tensorboardX import SummaryWriter
##############... | 28.296954 | 101 | 0.544713 |
36e43c1fea8564dd6886b6925030fdbb9a39b677 | 19,421 | py | Python | library/route_vpn.py | sebbbastien/ansible-stonesoft | ebc0d1c0720f8d79224ae58a80d3e9155bda4385 | [
"Apache-2.0"
] | null | null | null | library/route_vpn.py | sebbbastien/ansible-stonesoft | ebc0d1c0720f8d79224ae58a80d3e9155bda4385 | [
"Apache-2.0"
] | null | null | null | library/route_vpn.py | sebbbastien/ansible-stonesoft | ebc0d1c0720f8d79224ae58a80d3e9155bda4385 | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/python
# Copyright (c) 2017 David LePage
# GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt)
ANSIBLE_METADATA = {
'metadata_version': '1.1',
'status': ['preview'],
'supported_by': 'community'
}
DOCUMENTATION = '''
---
module: route_vpn
short_description... | 37.204981 | 118 | 0.563771 |
36e64aadf7aac130d35406e0cf99b998faa79a22 | 6,407 | py | Python | tfx/experimental/pipeline_testing/pipeline_recorder_utils.py | ntakouris/tfx | deb618730dc7675c8e9dc75e03b8ca795d49653d | [
"Apache-2.0"
] | 1 | 2020-06-09T03:50:59.000Z | 2020-06-09T03:50:59.000Z | tfx/experimental/pipeline_testing/pipeline_recorder_utils.py | tommywei110/tfx | 2152534c81dbc06dc90de37c56e4d63bf810f150 | [
"Apache-2.0"
] | null | null | null | tfx/experimental/pipeline_testing/pipeline_recorder_utils.py | tommywei110/tfx | 2152534c81dbc06dc90de37c56e4d63bf810f150 | [
"Apache-2.0"
] | null | null | null | # Lint as: python3
# Copyright 2020 Google LLC. 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 ... | 39.795031 | 82 | 0.74044 |
36e67ff06717bc841187da318c7c341f30def84e | 16,034 | py | Python | src/third_party/wiredtiger/lang/python/setup_pip.py | SunguckLee/real-mongodb | fef0e44fafc6d3709a84101327e7d2f54dd18d88 | [
"Apache-2.0"
] | 4 | 2018-02-06T01:53:12.000Z | 2018-02-20T01:47:36.000Z | src/third_party/wiredtiger/lang/python/setup_pip.py | SunguckLee/real-mongodb | fef0e44fafc6d3709a84101327e7d2f54dd18d88 | [
"Apache-2.0"
] | null | null | null | src/third_party/wiredtiger/lang/python/setup_pip.py | SunguckLee/real-mongodb | fef0e44fafc6d3709a84101327e7d2f54dd18d88 | [
"Apache-2.0"
] | 3 | 2018-02-06T01:53:18.000Z | 2021-07-28T09:48:15.000Z | #!/usr/bin/env python
#
# Public Domain 2014-2016 MongoDB, Inc.
# Public Domain 2008-2014 WiredTiger, Inc.
#
# This is free and unencumbered software released into the public domain.
#
# Anyone is free to copy, modify, publish, use, compile, sell, or
# distribute this software, either in source code form or as ... | 39.202934 | 81 | 0.641574 |
36e6a531b83457a4c48394e73a9fc94d96c25f64 | 77 | py | Python | 2022-02-24-ftx-rest-api-python/local_settings.py | georgehaan/analyzingalpha | f1f821e8d74d64addf410bfd205cb089ddf5517e | [
"Unlicense"
] | null | null | null | 2022-02-24-ftx-rest-api-python/local_settings.py | georgehaan/analyzingalpha | f1f821e8d74d64addf410bfd205cb089ddf5517e | [
"Unlicense"
] | null | null | null | 2022-02-24-ftx-rest-api-python/local_settings.py | georgehaan/analyzingalpha | f1f821e8d74d64addf410bfd205cb089ddf5517e | [
"Unlicense"
] | null | null | null | ftxus = {
'api_key':'YOUR_API_KEY',
'api_secret':'YOUR_API_SECRET'
}
| 15.4 | 34 | 0.636364 |
36e87b1e11d644470443480a35f8b9e8b72438cd | 4,387 | py | Python | src/rechub/parameters.py | yusanshi/easy-rec | 86db0bbd1eb0caf94c4b0ec4198bf49e64f65f24 | [
"MIT"
] | null | null | null | src/rechub/parameters.py | yusanshi/easy-rec | 86db0bbd1eb0caf94c4b0ec4198bf49e64f65f24 | [
"MIT"
] | null | null | null | src/rechub/parameters.py | yusanshi/easy-rec | 86db0bbd1eb0caf94c4b0ec4198bf49e64f65f24 | [
"MIT"
] | null | null | null | import argparse
from distutils.util import strtobool
| 38.823009 | 99 | 0.56713 |
36e9553b230e4e00a0c8f9a0c28cdd825854c4a3 | 4,955 | py | Python | course_difficulty.py | ewang26/dailytimedschedule | 1d891828af67caab47ef6286051da7e84b980b2a | [
"MIT"
] | null | null | null | course_difficulty.py | ewang26/dailytimedschedule | 1d891828af67caab47ef6286051da7e84b980b2a | [
"MIT"
] | null | null | null | course_difficulty.py | ewang26/dailytimedschedule | 1d891828af67caab47ef6286051da7e84b980b2a | [
"MIT"
] | null | null | null | # Koki Kapoor
# CSC 630
# Course Difficulty.py file
# have each homework assignment be ranked based on difficulty of the course and on difficulty of the assignment itself
# list_of_courses_and_difficulty only takes into consideration the difficulty of the course, not the assignment
from array import *
# install num... | 36.703704 | 166 | 0.70333 |
36e98b5ce7e26ba1ac762413ca0565df029c2001 | 1,826 | py | Python | src/esss_fix_format/hooks.py | nicoddemus/esss_fix_format | 1f46e0d1c05cc88fd47be2f0b0f120d8265a759e | [
"MIT"
] | 20 | 2016-12-05T12:09:27.000Z | 2021-11-23T21:57:59.000Z | src/esss_fix_format/hooks.py | nicoddemus/esss_fix_format | 1f46e0d1c05cc88fd47be2f0b0f120d8265a759e | [
"MIT"
] | 43 | 2016-07-20T12:21:16.000Z | 2022-03-14T20:31:07.000Z | src/esss_fix_format/hooks.py | nicoddemus/esss_fix_format | 1f46e0d1c05cc88fd47be2f0b0f120d8265a759e | [
"MIT"
] | 8 | 2016-09-27T20:02:44.000Z | 2021-04-16T14:58:08.000Z | import abc
import textwrap
def _add_hook(hook):
name = hook.name()
if name not in _HOOKS:
_HOOKS[name] = hook
else:
raise KeyError(f"A hook named '{name}' already exists")
# All hooks available by default
_HOOKS = {}
_add_hook(FixFormatGitHook())
def get_default_hook(name):
"""
... | 23.714286 | 99 | 0.557503 |
36e9aa3443706da87ee4f539703a4f5d9195cf72 | 166 | py | Python | Solutions/print all subset.py | Adityasriram0901/Python-Thunder | 192920c48092ce1783d56c7b45cdd7e7a50246fa | [
"MIT"
] | 81 | 2020-09-25T15:02:11.000Z | 2020-10-12T14:20:31.000Z | Solutions/print all subset.py | Adityasriram0901/Python-Thunder | 192920c48092ce1783d56c7b45cdd7e7a50246fa | [
"MIT"
] | 196 | 2020-09-25T13:52:13.000Z | 2020-10-12T20:20:00.000Z | Solutions/print all subset.py | Adityasriram0901/Python-Thunder | 192920c48092ce1783d56c7b45cdd7e7a50246fa | [
"MIT"
] | 209 | 2020-09-25T16:15:46.000Z | 2020-10-12T20:08:08.000Z | a = [1, 2, 3, 4]
print(subset(a, n=4))
| 13.833333 | 52 | 0.415663 |
36eb37aac32d06e68b8f0f03ae15c8cd3b04fb1f | 49 | py | Python | trees/dasgupta/__init__.py | islamazhar/trees | 502565c5bf02503c7bece09cddd93f9368da02c3 | [
"MIT"
] | null | null | null | trees/dasgupta/__init__.py | islamazhar/trees | 502565c5bf02503c7bece09cddd93f9368da02c3 | [
"MIT"
] | null | null | null | trees/dasgupta/__init__.py | islamazhar/trees | 502565c5bf02503c7bece09cddd93f9368da02c3 | [
"MIT"
] | null | null | null | from trees.dasgupta.costtree import DasguptaTree
| 24.5 | 48 | 0.877551 |
36eb6ff512aad2f53a0ace07b5c62237d039ba4a | 11,810 | py | Python | examples/references/segmentation/pascal_voc2012/code/scripts/training.py | 1nF0rmed/ignite | cfcd667e3cb9d67b67d928d12fa3ccdac05f7a3e | [
"BSD-3-Clause"
] | null | null | null | examples/references/segmentation/pascal_voc2012/code/scripts/training.py | 1nF0rmed/ignite | cfcd667e3cb9d67b67d928d12fa3ccdac05f7a3e | [
"BSD-3-Clause"
] | null | null | null | examples/references/segmentation/pascal_voc2012/code/scripts/training.py | 1nF0rmed/ignite | cfcd667e3cb9d67b67d928d12fa3ccdac05f7a3e | [
"BSD-3-Clause"
] | null | null | null | # This a training script launched with py_config_runner
# It should obligatory contain `run(config, **kwargs)` method
import sys
from collections.abc import Mapping
from pathlib import Path
import torch
from apex import amp
from dataflow.datasets import VOCSegmentationOpencv
from py_config_runner.config_utils import ... | 35.896657 | 120 | 0.676545 |
36ec49281113de21af1d91215fc919058901c862 | 17,387 | py | Python | src/instaBot.py | pabloqb2000/py-instabot | 2bfdd51d588050d370d069db5d0352d29fd4560d | [
"Apache-2.0"
] | null | null | null | src/instaBot.py | pabloqb2000/py-instabot | 2bfdd51d588050d370d069db5d0352d29fd4560d | [
"Apache-2.0"
] | null | null | null | src/instaBot.py | pabloqb2000/py-instabot | 2bfdd51d588050d370d069db5d0352d29fd4560d | [
"Apache-2.0"
] | null | null | null | from selenium import webdriver
from selenium.webdriver.common.keys import Keys
from time import sleep
from tqdm import tqdm
import random
from EmailSender import *
| 38.897092 | 256 | 0.572554 |
36ede9c0901ffceceb90ea9e2eb43efe24230727 | 813 | py | Python | BattleCity-NES/main.py | iOsnaaente/Kata-train_Code | 22cdf9d087bad879875c1f70029bda0771242c50 | [
"MIT"
] | null | null | null | BattleCity-NES/main.py | iOsnaaente/Kata-train_Code | 22cdf9d087bad879875c1f70029bda0771242c50 | [
"MIT"
] | null | null | null | BattleCity-NES/main.py | iOsnaaente/Kata-train_Code | 22cdf9d087bad879875c1f70029bda0771242c50 | [
"MIT"
] | null | null | null | #! usr/bin/dev python
from stages import Stages #Le as fases
from code import tanks #Responsvel pelos tanques do player
from images import imagens #imagens do jogo
import pygame
import random
screen_Dimension=[32*20,32*20]
pygame.init()
screen = pygame.display.set_mode(screen_Dimension)
pygame.display.s... | 16.591837 | 62 | 0.719557 |
36ee554e3410e965f70042cc4e96c4361520515d | 6,271 | py | Python | n_queens.py | lkk7/n-queens-genetic-solver | d8b87b49970e58d4599618eb014c1b12e4f471fa | [
"MIT"
] | null | null | null | n_queens.py | lkk7/n-queens-genetic-solver | d8b87b49970e58d4599618eb014c1b12e4f471fa | [
"MIT"
] | null | null | null | n_queens.py | lkk7/n-queens-genetic-solver | d8b87b49970e58d4599618eb014c1b12e4f471fa | [
"MIT"
] | null | null | null | from typing import Dict
from numba import njit
import numpy as np
import matplotlib.pyplot as plt
plt.rcParams['image.cmap'] = 'binary'
def read_parameters(filename: str) -> Dict[str, float]:
"""Read parameters from a file to a dictionary and return it."""
parameters = {}
with open(filename, "r") as file:... | 38.237805 | 76 | 0.591293 |
36f0a039978f0025fa6da35feb5807f99a23cd6a | 1,362 | py | Python | tests/plugins/test_ustreamtv.py | RomanKornev/streamlink | acdefee0822b9c10628b91a166f9abe084e44800 | [
"BSD-2-Clause"
] | 2 | 2019-09-17T15:01:47.000Z | 2019-09-21T16:26:50.000Z | tests/plugins/test_ustreamtv.py | RomanKornev/streamlink | acdefee0822b9c10628b91a166f9abe084e44800 | [
"BSD-2-Clause"
] | 1 | 2020-06-02T02:36:30.000Z | 2020-06-02T02:36:30.000Z | tests/plugins/test_ustreamtv.py | bumplzz69/streamlink | 34abc43875d7663ebafa241573dece272e93d88b | [
"BSD-2-Clause"
] | 1 | 2020-08-12T08:27:22.000Z | 2020-08-12T08:27:22.000Z | import unittest
from streamlink import Streamlink
try:
from unittest.mock import ANY, MagicMock, call
except ImportError:
from mock import ANY, MagicMock, call
from streamlink.plugins.ustreamtv import UStreamTV
| 30.954545 | 105 | 0.64978 |
36f2445925b38eafa6fa76d91317ba20cacff47f | 1,241 | py | Python | test/unit/object/test_collaboration_allowlist_entry.py | box/box-python-sdk | 5c6766a17bac0315bede7a1f5909c912d194a793 | [
"Apache-2.0"
] | 367 | 2015-02-10T05:55:45.000Z | 2022-03-16T23:39:58.000Z | test/unit/object/test_collaboration_allowlist_entry.py | box/box-python-sdk | 5c6766a17bac0315bede7a1f5909c912d194a793 | [
"Apache-2.0"
] | 686 | 2015-02-10T01:21:28.000Z | 2022-03-31T11:40:22.000Z | test/unit/object/test_collaboration_allowlist_entry.py | box/box-python-sdk | 5c6766a17bac0315bede7a1f5909c912d194a793 | [
"Apache-2.0"
] | 260 | 2015-02-16T17:35:06.000Z | 2022-03-20T17:45:28.000Z | # coding: utf-8
from __future__ import unicode_literals, absolute_import
from boxsdk.config import API
| 42.793103 | 118 | 0.767929 |
36f7aca45d40f82d8142db3d4804603a2675f264 | 1,463 | py | Python | jumpy/setup.py | bharadwaj1098/brax | 3108a0535b9b59725c97ef35732ed0378c0fd5cc | [
"Apache-2.0"
] | 1,162 | 2021-06-03T20:15:05.000Z | 2022-03-31T19:53:06.000Z | jumpy/setup.py | bharadwaj1098/brax | 3108a0535b9b59725c97ef35732ed0378c0fd5cc | [
"Apache-2.0"
] | 160 | 2021-06-05T02:32:39.000Z | 2022-03-31T11:39:58.000Z | jumpy/setup.py | bharadwaj1098/brax | 3108a0535b9b59725c97ef35732ed0378c0fd5cc | [
"Apache-2.0"
] | 117 | 2021-06-04T17:18:21.000Z | 2022-03-30T18:04:48.000Z | # Copyright 2021 The Brax 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 applicable law or agreed to in wri... | 29.857143 | 74 | 0.673274 |
36f7ebcb27998b0af7e58a152f1c6385a165aa9d | 33,411 | py | Python | simulation/Distance2.py | vivirodrigues/carrinheiros-heuristics | 92c8c4a8384f8e3a86e9c53b41bcb2ab001de5f5 | [
"MIT"
] | null | null | null | simulation/Distance2.py | vivirodrigues/carrinheiros-heuristics | 92c8c4a8384f8e3a86e9c53b41bcb2ab001de5f5 | [
"MIT"
] | null | null | null | simulation/Distance2.py | vivirodrigues/carrinheiros-heuristics | 92c8c4a8384f8e3a86e9c53b41bcb2ab001de5f5 | [
"MIT"
] | null | null | null | import json
import scipy.stats
import matplotlib.pyplot as plt
import scipy.stats as st
from decimal import Decimal, ROUND_HALF_UP
from xml.dom import minidom
import numpy as np
files = [
'../data/results/m38.49999603681327_m12.962358080558504_m38.47398437502447_m12.932893255527242_0_30_length_heuristic_SP... | 103.12037 | 160 | 0.829427 |
36f815fa18399e9d17f81a9738794e259e786f45 | 9,134 | py | Python | spatial_interpolators/radial_basis.py | tsutterley/spatial-interpolators | 6949807dd3ee4cbc7cd9bd323dbf3304fbd19ca2 | [
"MIT"
] | 18 | 2018-09-14T04:12:01.000Z | 2021-08-03T11:14:45.000Z | spatial_interpolators/radial_basis.py | tsutterley/spatial-interpolators | 6949807dd3ee4cbc7cd9bd323dbf3304fbd19ca2 | [
"MIT"
] | 2 | 2021-07-08T16:17:10.000Z | 2022-01-04T16:26:55.000Z | spatial_interpolators/radial_basis.py | tsutterley/spatial-interpolators | 6949807dd3ee4cbc7cd9bd323dbf3304fbd19ca2 | [
"MIT"
] | 3 | 2018-09-19T06:34:42.000Z | 2019-10-03T12:22:23.000Z | #!/usr/bin/env python
u"""
radial_basis.py
Written by Tyler Sutterley (01/2022)
Interpolates data using radial basis functions
CALLING SEQUENCE:
ZI = radial_basis(xs, ys, zs, XI, YI, polynomial=0,
smooth=smooth, epsilon=epsilon, method='inverse')
INPUTS:
xs: scaled input X data
ys: scaled input Y... | 33.214545 | 78 | 0.637837 |
36fae5ad374222c00d5bde1c50b8adc1fc9b19c3 | 465 | py | Python | oldstuff/api1.py | miusuarioamigo/python-Le | dbb653255dab7d11b87f25eec94bcce63a86aa42 | [
"MIT"
] | null | null | null | oldstuff/api1.py | miusuarioamigo/python-Le | dbb653255dab7d11b87f25eec94bcce63a86aa42 | [
"MIT"
] | null | null | null | oldstuff/api1.py | miusuarioamigo/python-Le | dbb653255dab7d11b87f25eec94bcce63a86aa42 | [
"MIT"
] | null | null | null | from flask import Flask, jsonify, request
app = Flask(__name__)
if __name__ == "__main__":
app.run(debug=True)
| 25.833333 | 51 | 0.612903 |
36fb1e4b44269afa44164c5c335b64583671d7bf | 5,129 | py | Python | tests/mock/tests/settings.py | magicjoey/django-knowledge | ce6faa904a88e5d4f565763bc1d5cd07e6b5c5bd | [
"ISC"
] | 199 | 2015-01-22T05:07:30.000Z | 2022-03-28T06:59:46.000Z | tests/mock/tests/settings.py | tzangms/django-knowledge | 8238b1f4c1c6e12acb7f3fc327346776379a7a68 | [
"0BSD"
] | 3 | 2015-10-20T09:48:58.000Z | 2018-03-14T21:16:29.000Z | tests/mock/tests/settings.py | tzangms/django-knowledge | 8238b1f4c1c6e12acb7f3fc327346776379a7a68 | [
"0BSD"
] | 78 | 2015-02-09T02:23:16.000Z | 2021-12-25T07:02:08.000Z | from mock.tests.base import TestCase
from django.test.client import Client
from django.contrib.auth.models import User
from django.core.urlresolvers import reverse
from django.template.defaultfilters import slugify
from knowledge import settings
from knowledge.models import Question, Response
from knowledge.forms imp... | 32.66879 | 105 | 0.580425 |
36fd537a07164889366087995d08455fc14bd19e | 828 | py | Python | Batch_sentiment/spark_hashtag.py | malli3131/SparkApps | b24763eaf6411cba3c22a4c070a45d6fe96dfa1d | [
"Apache-2.0"
] | 3 | 2018-01-17T05:51:10.000Z | 2018-11-22T16:59:53.000Z | Batch_sentiment/spark_hashtag.py | malli3131/SparkApps | b24763eaf6411cba3c22a4c070a45d6fe96dfa1d | [
"Apache-2.0"
] | 2 | 2016-12-15T13:15:42.000Z | 2016-12-15T13:19:19.000Z | Batch_sentiment/spark_hashtag.py | malli3131/SparkApps | b24763eaf6411cba3c22a4c070a45d6fe96dfa1d | [
"Apache-2.0"
] | 4 | 2018-02-12T06:37:04.000Z | 2020-01-04T11:30:24.000Z | import re
import string
import sys
from pyspark import SparkContext
exclude = set(string.punctuation)
sc = SparkContext("local", "Finidng Hash Tags")
rmPunc = sc.broadcast(exclude)
mydata = sc.textFile("hdfs://<hostname>:<port>/path/to/parsedata<first job output>")
wordsRDD = mydata.flatMap( lambda line : line.split... | 30.666667 | 84 | 0.695652 |
7fc0ed53e23bdf7182409dab9a83d9dcb7cb0ae5 | 417 | py | Python | backend/apps/risks/urls.py | intellisense/risks | e98b8c6e5694b895603f7ff1b3c04b6057aa1136 | [
"MIT"
] | null | null | null | backend/apps/risks/urls.py | intellisense/risks | e98b8c6e5694b895603f7ff1b3c04b6057aa1136 | [
"MIT"
] | null | null | null | backend/apps/risks/urls.py | intellisense/risks | e98b8c6e5694b895603f7ff1b3c04b6057aa1136 | [
"MIT"
] | null | null | null | from django.conf.urls import url
from rest_framework.urlpatterns import format_suffix_patterns
from . import views
urlpatterns = [
url(r'^risks/$', views.RiskTypeList.as_view(), name='risks_list'),
url(r'^risks/(?P<pk>[0-9]+)/$', views.RiskTypeDetail.as_view(), name='risk_details'),
url(r'^fields/$', views... | 34.75 | 89 | 0.729017 |
7fc0f798553336843920795f3c9cd1c0cfdb4288 | 534 | py | Python | src/main.py | sguzman/Dbase_Channel_Grab | 30a9e3abd72ed93cd3c7ea80d44b664a0a76d8af | [
"Unlicense"
] | null | null | null | src/main.py | sguzman/Dbase_Channel_Grab | 30a9e3abd72ed93cd3c7ea80d44b664a0a76d8af | [
"Unlicense"
] | null | null | null | src/main.py | sguzman/Dbase_Channel_Grab | 30a9e3abd72ed93cd3c7ea80d44b664a0a76d8af | [
"Unlicense"
] | null | null | null | import json
import bs4
import requests
url_base = 'https://dbase.tube/chart/channels/subscribers/all?page=%s&spf=navigate'
max_page = 19084
html_doc = requests.get(url_base).text
for i in range(max_page):
url = url_base % i
hot_bod = requests.get(url).text
json_blob = json.loads(hot_bod)
html_body = j... | 28.105263 | 83 | 0.687266 |
7fc44269a458fb1cbf6dc4894b2532e5211304c0 | 1,166 | py | Python | kanban_board/admin.py | Zeerooth/django-kanban-board | d390635017199a90da666bba3a74cafc86838884 | [
"BSD-3-Clause"
] | null | null | null | kanban_board/admin.py | Zeerooth/django-kanban-board | d390635017199a90da666bba3a74cafc86838884 | [
"BSD-3-Clause"
] | 2 | 2021-06-10T17:52:06.000Z | 2021-09-22T18:00:26.000Z | kanban_board/admin.py | Zeerooth/django-kanban-board | d390635017199a90da666bba3a74cafc86838884 | [
"BSD-3-Clause"
] | null | null | null | from django.contrib import admin
from ordered_model.admin import OrderedStackedInline, OrderedInlineModelAdminMixin
from kanban_board.models import KanbanBoard, KanbanBoardState, Workflow, KanbanBoardElement
admin.site.register(KanbanBoard, KanbanBoardAdmin)
admin.site.register(KanbanBoardState)
admin.site.register(... | 37.612903 | 101 | 0.762436 |
7fc4576c38452997b1f8bd1ddca0fc4d69cf33db | 16,705 | py | Python | certbot-nginx/certbot_nginx/tests/nginxparser_test.py | jcollie/certbot | 1df778859b7ace699c02039b269abd426058a237 | [
"Apache-2.0"
] | 4 | 2020-04-09T21:57:23.000Z | 2020-04-11T13:26:54.000Z | certbot-nginx/certbot_nginx/tests/nginxparser_test.py | jcollie/certbot | 1df778859b7ace699c02039b269abd426058a237 | [
"Apache-2.0"
] | 32 | 2019-02-20T14:51:48.000Z | 2019-02-27T10:11:34.000Z | certbot-nginx/certbot_nginx/tests/nginxparser_test.py | jcollie/certbot | 1df778859b7ace699c02039b269abd426058a237 | [
"Apache-2.0"
] | 1 | 2020-02-06T15:04:02.000Z | 2020-02-06T15:04:02.000Z | """Test for certbot_nginx.nginxparser."""
import copy
import operator
import tempfile
import unittest
from pyparsing import ParseException
from certbot_nginx.nginxparser import (
RawNginxParser, loads, load, dumps, dump, UnspacedList)
from certbot_nginx.tests import util
FIRST = operator.itemgetter(0)
if __... | 37.879819 | 95 | 0.449386 |
7fc49c5390bfb96b900f097bb43b1a2528a313d1 | 6,522 | py | Python | pysnmp-with-texts/Intel-Common-MIB.py | agustinhenze/mibs.snmplabs.com | 1fc5c07860542b89212f4c8ab807057d9a9206c7 | [
"Apache-2.0"
] | 8 | 2019-05-09T17:04:00.000Z | 2021-06-09T06:50:51.000Z | pysnmp-with-texts/Intel-Common-MIB.py | agustinhenze/mibs.snmplabs.com | 1fc5c07860542b89212f4c8ab807057d9a9206c7 | [
"Apache-2.0"
] | 4 | 2019-05-31T16:42:59.000Z | 2020-01-31T21:57:17.000Z | pysnmp-with-texts/Intel-Common-MIB.py | agustinhenze/mibs.snmplabs.com | 1fc5c07860542b89212f4c8ab807057d9a9206c7 | [
"Apache-2.0"
] | 10 | 2019-04-30T05:51:36.000Z | 2022-02-16T03:33:41.000Z | #
# PySNMP MIB module Intel-Common-MIB (http://snmplabs.com/pysmi)
# ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/Intel-Common-MIB
# Produced by pysmi-0.3.4 at Wed May 1 13:54:14 2019
# On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4
# Using Python version 3.7.3 (default, Mar ... | 103.52381 | 1,274 | 0.713891 |
7fc5dfd088a228987587fd982a1eb94c9c4b2b71 | 4,430 | py | Python | src/python/pants/jvm/resolve/coursier_setup.py | Eric-Arellano/pants | aaa9756bc4f2cc97bb97851a4295a0de85f374b1 | [
"Apache-2.0"
] | null | null | null | src/python/pants/jvm/resolve/coursier_setup.py | Eric-Arellano/pants | aaa9756bc4f2cc97bb97851a4295a0de85f374b1 | [
"Apache-2.0"
] | 12 | 2022-01-06T23:20:22.000Z | 2022-03-17T05:06:37.000Z | src/python/pants/jvm/resolve/coursier_setup.py | Eric-Arellano/pants | aaa9756bc4f2cc97bb97851a4295a0de85f374b1 | [
"Apache-2.0"
] | null | null | null | # Copyright 2021 Pants project contributors (see CONTRIBUTORS.md).
# Licensed under the Apache License, Version 2.0 (see LICENSE).
from __future__ import annotations
import textwrap
from dataclasses import dataclass
from typing import ClassVar, Iterable
from pants.core.util_rules.external_tool import (
Downloade... | 31.41844 | 106 | 0.66614 |