id int64 0 458k | file_name stringlengths 4 119 | file_path stringlengths 14 227 | content stringlengths 24 9.96M | size int64 24 9.96M | language stringclasses 1
value | extension stringclasses 14
values | total_lines int64 1 219k | avg_line_length float64 2.52 4.63M | max_line_length int64 5 9.91M | alphanum_fraction float64 0 1 | repo_name stringlengths 7 101 | repo_stars int64 100 139k | repo_forks int64 0 26.4k | repo_open_issues int64 0 2.27k | repo_license stringclasses 12
values | repo_extraction_date stringclasses 433
values |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
2,287,300 | 0015_starlog.py | Aftendo_Afternote/db/migrations/0015_starlog.py | # Generated by Django 4.1.7 on 2024-01-15 03:11
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('db', '0014_flipnote_blue_star_flipnote_green_star_and_more'),
]
operations = [
... | 1,087 | Python | .py | 23 | 37.173913 | 129 | 0.620397 | Aftendo/Afternote | 8 | 2 | 1 | GPL-2.0 | 9/5/2024, 10:48:09 PM (Europe/Amsterdam) |
2,287,301 | 0004_user_ban.py | Aftendo_Afternote/db/migrations/0004_user_ban.py | # Generated by Django 4.1.7 on 2024-01-14 11:22
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('db', '0003_alter_session_user'),
]
operations = [
migrations.AddField(
model_name='user',
name='ban',
fi... | 377 | Python | .py | 13 | 21.769231 | 53 | 0.607242 | Aftendo/Afternote | 8 | 2 | 1 | GPL-2.0 | 9/5/2024, 10:48:09 PM (Europe/Amsterdam) |
2,287,302 | 0014_flipnote_blue_star_flipnote_green_star_and_more.py | Aftendo_Afternote/db/migrations/0014_flipnote_blue_star_flipnote_green_star_and_more.py | # Generated by Django 4.1.7 on 2024-01-15 00:43
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('db', '0013_user_blue_star_user_green_star_user_purple_star_and_more'),
]
operations = [
migrations.AddField(
model_name='flipnot... | 1,038 | Python | .py | 33 | 21.69697 | 80 | 0.563 | Aftendo/Afternote | 8 | 2 | 1 | GPL-2.0 | 9/5/2024, 10:48:09 PM (Europe/Amsterdam) |
2,287,303 | 0002_flipnote_saved_flipnote_views_and_more.py | Aftendo_Afternote/db/migrations/0002_flipnote_saved_flipnote_views_and_more.py | # Generated by Django 4.1.7 on 2024-01-14 02:27
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('db', '0001_initial'),
]
operations = [
migrations.AddField(
model_name='flipnote',
name='saved',
field=m... | 766 | Python | .py | 25 | 21.28 | 63 | 0.570652 | Aftendo/Afternote | 8 | 2 | 1 | GPL-2.0 | 9/5/2024, 10:48:09 PM (Europe/Amsterdam) |
2,287,304 | 0003_alter_flipnote_saved_alter_flipnote_views.py | Aftendo_Afternote/db/migrations/0003_alter_flipnote_saved_alter_flipnote_views.py | # Generated by Django 4.1.7 on 2024-01-14 02:28
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('db', '0002_flipnote_saved_flipnote_views_and_more'),
]
operations = [
migrations.AlterField(
model_name='flipnote',
... | 554 | Python | .py | 18 | 22.388889 | 62 | 0.595104 | Aftendo/Afternote | 8 | 2 | 1 | GPL-2.0 | 9/5/2024, 10:48:09 PM (Europe/Amsterdam) |
2,287,305 | 0017_flipnote_date.py | Aftendo_Afternote/db/migrations/0017_flipnote_date.py | # Generated by Django 4.1.7 on 2024-01-15 04:27
from django.db import migrations, models
import django.utils.timezone
class Migration(migrations.Migration):
dependencies = [
('db', '0016_flipnote_total'),
]
operations = [
migrations.AddField(
model_name='flipnote',
... | 479 | Python | .py | 15 | 24.733333 | 89 | 0.638344 | Aftendo/Afternote | 8 | 2 | 1 | GPL-2.0 | 9/5/2024, 10:48:09 PM (Europe/Amsterdam) |
2,287,306 | 0016_flipnote_total.py | Aftendo_Afternote/db/migrations/0016_flipnote_total.py | # Generated by Django 4.1.7 on 2024-01-15 04:07
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('db', '0015_starlog'),
]
operations = [
migrations.AddField(
model_name='flipnote',
name='total',
field=m... | 368 | Python | .py | 13 | 21.076923 | 49 | 0.602857 | Aftendo/Afternote | 8 | 2 | 1 | GPL-2.0 | 9/5/2024, 10:48:09 PM (Europe/Amsterdam) |
2,287,307 | 0003_alter_session_user.py | Aftendo_Afternote/db/migrations/0003_alter_session_user.py | # Generated by Django 4.1.7 on 2024-01-14 11:18
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('db', '0002_session'),
]
operations = [
migrations.AlterField(
... | 506 | Python | .py | 15 | 27.333333 | 121 | 0.668724 | Aftendo/Afternote | 8 | 2 | 1 | GPL-2.0 | 9/5/2024, 10:48:09 PM (Europe/Amsterdam) |
2,287,308 | 0008_alter_user_fsid_alter_user_mac.py | Aftendo_Afternote/db/migrations/0008_alter_user_fsid_alter_user_mac.py | # Generated by Django 4.1.7 on 2024-01-14 13:28
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('db', '0007_session_fsid_session_mac'),
]
operations = [
migrations.AlterField(
model_name='user',
name='fsid',
... | 579 | Python | .py | 18 | 23.777778 | 74 | 0.591727 | Aftendo/Afternote | 8 | 2 | 1 | GPL-2.0 | 9/5/2024, 10:48:09 PM (Europe/Amsterdam) |
2,287,309 | 0010_category_channel.py | Aftendo_Afternote/db/migrations/0010_category_channel.py | # Generated by Django 4.1.7 on 2024-01-14 17:58
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('db', '0009_flipnote_made_by_alter_user_fsid_alter_user_mac'),
]
operations = [
migrations.CreateModel(
name='Category',
... | 906 | Python | .py | 24 | 27.208333 | 91 | 0.559863 | Aftendo/Afternote | 8 | 2 | 1 | GPL-2.0 | 9/5/2024, 10:48:09 PM (Europe/Amsterdam) |
2,287,310 | 0009_flipnote_made_by_alter_user_fsid_alter_user_mac.py | Aftendo_Afternote/db/migrations/0009_flipnote_made_by_alter_user_fsid_alter_user_mac.py | # Generated by Django 4.1.7 on 2024-01-14 14:03
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('db', '0008_alter_user_fsid_alter_user_mac'),
]
operations = [
migrations.A... | 936 | Python | .py | 26 | 27.423077 | 121 | 0.61989 | Aftendo/Afternote | 8 | 2 | 1 | GPL-2.0 | 9/5/2024, 10:48:09 PM (Europe/Amsterdam) |
2,287,311 | 0007_session_fsid_session_mac.py | Aftendo_Afternote/db/migrations/0007_session_fsid_session_mac.py | # Generated by Django 4.1.7 on 2024-01-14 13:23
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('db', '0006_session_temp_alter_session_token'),
]
operations = [
migrations.AddField(
model_name='session',
name='fsi... | 637 | Python | .py | 20 | 23 | 62 | 0.581699 | Aftendo/Afternote | 8 | 2 | 1 | GPL-2.0 | 9/5/2024, 10:48:09 PM (Europe/Amsterdam) |
2,287,312 | ugo.py | Aftendo_Afternote/util/ugo.py | """
ugo.py
Conversion by ChatGPT
Based off jaames and sudofox class.ugomenu.php: https://github.com/Sudomemo/sudomemo-utils/blob/master/php/class.ugomenu.php
"""
import base64
import os
import struct
class UgoMenu:
def __init__(self):
self.types = {
"0": "0",
"1": "1",
... | 6,478 | Python | .py | 174 | 24.114943 | 124 | 0.448248 | Aftendo/Afternote | 8 | 2 | 1 | GPL-2.0 | 9/5/2024, 10:48:09 PM (Europe/Amsterdam) |
2,287,313 | ppm.py | Aftendo_Afternote/util/ppm.py | # ========================================
# ppm.py version 1.0.0, fork for AfterNote
# ========================================
# Class for parsing Flipnote Studio's .ppm animation format
# Implementation by James Daniel (aka jaames) (github.com/jaames | rakujira.jp)
# Modified by Rixy for Afternote purposes, origina... | 4,127 | Python | .py | 93 | 39.967742 | 118 | 0.668243 | Aftendo/Afternote | 8 | 2 | 1 | GPL-2.0 | 9/5/2024, 10:48:09 PM (Europe/Amsterdam) |
2,287,314 | settings.py | Aftendo_Afternote/ugoflip/settings.py | """
Django settings for ugoflip project.
Generated by 'django-admin startproject' using Django 4.1.7.
For more information on this file, see
https://docs.djangoproject.com/en/4.1/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/4.1/ref/settings/
"""
from pathlib... | 3,308 | Python | .py | 92 | 31.48913 | 91 | 0.717699 | Aftendo/Afternote | 8 | 2 | 1 | GPL-2.0 | 9/5/2024, 10:48:09 PM (Europe/Amsterdam) |
2,287,315 | asgi.py | Aftendo_Afternote/ugoflip/asgi.py | """
ASGI config for ugoflip project.
It exposes the ASGI callable as a module-level variable named ``application``.
For more information on this file, see
https://docs.djangoproject.com/en/4.1/howto/deployment/asgi/
"""
import os
from django.core.asgi import get_asgi_application
os.environ.setdefault('DJANGO_SETTI... | 391 | Python | .py | 10 | 37.5 | 78 | 0.802667 | Aftendo/Afternote | 8 | 2 | 1 | GPL-2.0 | 9/5/2024, 10:48:09 PM (Europe/Amsterdam) |
2,287,316 | urls.py | Aftendo_Afternote/ugoflip/urls.py | """ugoflip URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/4.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... | 809 | Python | .py | 20 | 37.55 | 77 | 0.716645 | Aftendo/Afternote | 8 | 2 | 1 | GPL-2.0 | 9/5/2024, 10:48:09 PM (Europe/Amsterdam) |
2,287,317 | wsgi.py | Aftendo_Afternote/ugoflip/wsgi.py | """
WSGI config for ugoflip project.
It exposes the WSGI callable as a module-level variable named ``application``.
For more information on this file, see
https://docs.djangoproject.com/en/4.1/howto/deployment/wsgi/
"""
import os
from django.core.wsgi import get_wsgi_application
os.environ.setdefault('DJANGO_SETTI... | 391 | Python | .py | 10 | 37.5 | 78 | 0.802667 | Aftendo/Afternote | 8 | 2 | 1 | GPL-2.0 | 9/5/2024, 10:48:09 PM (Europe/Amsterdam) |
2,287,318 | main.py | Bbalduzz_phantomplus/main.py | from src.auth import DisneyPlusLogin
from src.api import DisneyPlusAPI
from src.parser import DisneyPlusParser
from src.m3u8_formatter import M3U8
from utils import utils
from pywidevine.decrypt.wvdecrypt import WvDecrypt
from collections import OrderedDict
from pathlib import Path
import m3u8, requests, base64, os, ... | 7,349 | Python | .py | 173 | 38.069364 | 163 | 0.679916 | Bbalduzz/phantomplus | 8 | 2 | 1 | AGPL-3.0 | 9/5/2024, 10:48:09 PM (Europe/Amsterdam) |
2,287,319 | api.py | Bbalduzz_phantomplus/src/api.py | import json
import uuid
import requests
import base64
import pycountry
class DisneyPlusAPI:
def __init__(self, dsny_id, token, media_type, language="english", season=None, episode=None):
self.is_movie = media_type.lower() == 'movie'
self.dsny_id = dsny_id
self.token = token
self.co... | 8,914 | Python | .py | 178 | 37.466292 | 212 | 0.563096 | Bbalduzz/phantomplus | 8 | 2 | 1 | AGPL-3.0 | 9/5/2024, 10:48:09 PM (Europe/Amsterdam) |
2,287,320 | m3u8_formatter.py | Bbalduzz_phantomplus/src/m3u8_formatter.py | # ex:ts=4:sw=4:sts=4:et
# -*- tab-width: 4; c-basic-offset: 4; indent-tabs-mode: nil -*-
from __future__ import absolute_import
import binascii
import copy
import os
import random
import re
import time
from datetime import datetime
from datetime import timedelta
from cryptography.hazmat.backends import default_backen... | 17,573 | Python | .py | 378 | 30.981481 | 149 | 0.496287 | Bbalduzz/phantomplus | 8 | 2 | 1 | AGPL-3.0 | 9/5/2024, 10:48:09 PM (Europe/Amsterdam) |
2,287,321 | auth.py | Bbalduzz_phantomplus/src/auth.py | import json
import re
import requests
class DisneyPlusLogin:
def __init__(self, email, password, proxies=None):
self.email = email
self.password = password
self.web_page = 'https://www.disneyplus.com/login'
self.devices_url = "https://global.edge.bamgrid.com/devices"
self.lo... | 4,902 | Python | .py | 101 | 38.732673 | 144 | 0.61132 | Bbalduzz/phantomplus | 8 | 2 | 1 | AGPL-3.0 | 9/5/2024, 10:48:09 PM (Europe/Amsterdam) |
2,287,322 | parser.py | Bbalduzz_phantomplus/src/parser.py | import requests
import re
import sys
import pycountry
from src.m3u8_formatter import M3U8
language_codes = {
"zh-Hans": "zhoS",
"zh-Hant": "zhoT",
"pt-BR": "brPor",
"es-ES": "euSpa",
"en-GB": "enGB",
"en-PH": "enPH",
"nl-BE": "nlBE",
"fil": "enPH",
"yue": "zhoS",
'fr-CA': 'caFra... | 7,131 | Python | .py | 149 | 31.986577 | 107 | 0.465284 | Bbalduzz/phantomplus | 8 | 2 | 1 | AGPL-3.0 | 9/5/2024, 10:48:09 PM (Europe/Amsterdam) |
2,287,323 | cdm.py | Bbalduzz_phantomplus/pywidevine/cdm/cdm.py | import base64
import os
import time
import binascii
from google.protobuf.message import DecodeError
from google.protobuf import text_format
from pywidevine.cdm.formats import wv_proto2_pb2 as wv_proto2
from pywidevine.cdm.session import Session
from pywidevine.cdm.key import Key
from Cryptodome.Random import get_ran... | 13,315 | Python | .py | 301 | 40.458472 | 122 | 0.749884 | Bbalduzz/phantomplus | 8 | 2 | 1 | AGPL-3.0 | 9/5/2024, 10:48:09 PM (Europe/Amsterdam) |
2,287,324 | key.py | Bbalduzz_phantomplus/pywidevine/cdm/key.py | import binascii
class Key:
def __init__(self, kid, type, key, permissions=[]):
self.kid = kid
self.type = type
self.key = key
self.permissions = permissions
def __repr__(self):
if self.type == "OPERATOR_SESSION":
return "key(kid={}, type={}, key={}, permissio... | 521 | Python | .py | 12 | 35.75 | 138 | 0.595661 | Bbalduzz/phantomplus | 8 | 2 | 1 | AGPL-3.0 | 9/5/2024, 10:48:09 PM (Europe/Amsterdam) |
2,287,325 | vmp.py | Bbalduzz_phantomplus/pywidevine/cdm/vmp.py | try:
from google.protobuf.internal.decoder import _DecodeVarint as _di # this was tested to work with protobuf 3, but it's an internal API (any varint decoder might work)
except ImportError:
# this is generic and does not depend on pb internals, however it will decode "larger" possible numbers than pb decoder which... | 3,075 | Python | .py | 82 | 31.902439 | 167 | 0.653729 | Bbalduzz/phantomplus | 8 | 2 | 1 | AGPL-3.0 | 9/5/2024, 10:48:09 PM (Europe/Amsterdam) |
2,287,326 | session.py | Bbalduzz_phantomplus/pywidevine/cdm/session.py | class Session:
def __init__(self, session_id, init_data, device_config, offline):
self.session_id = session_id
self.init_data = init_data
self.offline = offline
self.device_config = device_config
self.device_key = None
self.session_key = None
self.derived_keys... | 576 | Python | .py | 18 | 23 | 70 | 0.560932 | Bbalduzz/phantomplus | 8 | 2 | 1 | AGPL-3.0 | 9/5/2024, 10:48:09 PM (Europe/Amsterdam) |
2,287,327 | deviceconfig.py | Bbalduzz_phantomplus/pywidevine/cdm/deviceconfig.py | import os
private_l3_cdm = {
'name': 'private_l3_cdm',
'description': 'Pixel 6 firmware Pie',
'security_level': 3,
'session_id_type': 'android',
'private_key_available': True,
'vmp': False,
'send_key_control_nonce': True,
}
devices_available = [private_l3_cdm]
FILES_FOLDER = 'devices'
cl... | 2,834 | Python | .py | 44 | 56.181818 | 251 | 0.654317 | Bbalduzz/phantomplus | 8 | 2 | 1 | AGPL-3.0 | 9/5/2024, 10:48:09 PM (Europe/Amsterdam) |
2,287,328 | wv_proto2_pb2.py | Bbalduzz_phantomplus/pywidevine/cdm/formats/wv_proto2_pb2.py | # Generated by the protocol buffer compiler. DO NOT EDIT!
# source: pywidevine/cdm/formats/wv_proto2.proto
import sys
_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1'))
from google.protobuf.internal import enum_type_wrapper
from google.protobuf import descriptor as _descriptor
from google.prot... | 137,199 | Python | .py | 3,179 | 38.50928 | 14,111 | 0.740885 | Bbalduzz/phantomplus | 8 | 2 | 1 | AGPL-3.0 | 9/5/2024, 10:48:09 PM (Europe/Amsterdam) |
2,287,329 | wv_proto3_pb2.py | Bbalduzz_phantomplus/pywidevine/cdm/formats/wv_proto3_pb2.py | # Generated by the protocol buffer compiler. DO NOT EDIT!
# source: wv_proto3.proto
import sys
_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1'))
from google.protobuf.internal import enum_type_wrapper
from google.protobuf import descriptor as _descriptor
from google.protobuf import message as ... | 108,748 | Python | .py | 2,566 | 37.731878 | 11,437 | 0.738097 | Bbalduzz/phantomplus | 8 | 2 | 1 | AGPL-3.0 | 9/5/2024, 10:48:09 PM (Europe/Amsterdam) |
2,287,330 | wvdecryptconfig.py | Bbalduzz_phantomplus/pywidevine/decrypt/wvdecryptconfig.py | import pywidevine.downloader.wvdownloaderconfig as wvdl_cfg
class WvDecryptConfig(object):
def __init__(self, filename, tracktype, trackno, license, init_data_b64, cert_data_b64=None):
self.filename = filename
self.tracktype = tracktype
self.trackno = trackno
self.init_data_b64 = in... | 1,187 | Python | .py | 24 | 40.166667 | 116 | 0.664655 | Bbalduzz/phantomplus | 8 | 2 | 1 | AGPL-3.0 | 9/5/2024, 10:48:09 PM (Europe/Amsterdam) |
2,287,331 | wvdecrypt.py | Bbalduzz_phantomplus/pywidevine/decrypt/wvdecrypt.py | import logging
import subprocess
import re
from tqdm import tqdm
import base64
from pywidevine.cdm import cdm, deviceconfig
class WvDecrypt(object):
WV_SYSTEM_ID = [237, 239, 139, 169, 121, 214, 74, 206, 163, 200, 39, 220, 213, 29, 33, 237]
def __init__(self, PSSH):
self.logger = logging.getLogger(__... | 1,720 | Python | .py | 42 | 30.404762 | 123 | 0.573929 | Bbalduzz/phantomplus | 8 | 2 | 1 | AGPL-3.0 | 9/5/2024, 10:48:09 PM (Europe/Amsterdam) |
2,287,332 | utils.py | Bbalduzz_phantomplus/utils/utils.py | import sys
def progress_bar(total, progress, textname):
barLength, status = 20, ""
progress = float(progress) / float(total)
if progress >= 1.:
progress, status = 1, "\r\n"
block = int(round(barLength * progress))
text = "\r[+] Merging: {} [{}] {:.0f}% {}".format(
textname, "#" * block + "-" * (barLength - blo... | 404 | Python | .py | 12 | 31.666667 | 78 | 0.641221 | Bbalduzz/phantomplus | 8 | 2 | 1 | AGPL-3.0 | 9/5/2024, 10:48:09 PM (Europe/Amsterdam) |
2,287,333 | setup.py | moyanj_AList3SDK/setup.py | from setuptools import setup, find_packages
import time
setup(
name="alist3",
version="1.1.4",
description="AListV3 PythonSDK",
author="MoYan",
packages=find_packages(),
long_description=open("readme.md").read(), # 包的详细描述
long_description_content_type="text/markdown", # 描述的内容类型
instal... | 682 | Python | .py | 22 | 23.590909 | 61 | 0.628433 | moyanj/AList3SDK | 8 | 1 | 0 | LGPL-2.1 | 9/5/2024, 10:48:18 PM (Europe/Amsterdam) |
2,287,334 | test.py | moyanj_AList3SDK/test.py | from alist import AList, AListUser
adm = AListUser("admin", "12r5jhdgchghjkrttjnbg6gxnkuufj[p8tcr8ufyy")
print(adm.dumps(rawpwd=True)) | 135 | Python | .py | 3 | 44 | 69 | 0.825758 | moyanj/AList3SDK | 8 | 1 | 0 | LGPL-2.1 | 9/5/2024, 10:48:18 PM (Europe/Amsterdam) |
2,287,335 | error.py | moyanj_AList3SDK/alist/error.py | class AListError(Exception):
pass
class AuthenticationError(AListError):
pass
class ServerError(AListError):
pass
class SecurityWarning(Warning):
pass | 170 | Python | .py | 8 | 17.875 | 38 | 0.798742 | moyanj/AList3SDK | 8 | 1 | 0 | LGPL-2.1 | 9/5/2024, 10:48:18 PM (Europe/Amsterdam) |
2,287,336 | download.py | moyanj_AList3SDK/alist/download.py | from concurrent.futures import ThreadPoolExecutor
from requests import get, head
import time
class downloader:
def __init__(self, url, num, name):
self.url = url # url
self.num = num # 线程数量
self.name = name # 保存名称
self.getsize = 0 # 文件大小
r = head(self.url, allow_red... | 2,908 | Python | .py | 66 | 32.090909 | 152 | 0.563277 | moyanj/AList3SDK | 8 | 1 | 0 | LGPL-2.1 | 9/5/2024, 10:48:18 PM (Europe/Amsterdam) |
2,287,337 | folder.py | moyanj_AList3SDK/alist/folder.py | class AListFolder:
'''
AList文件夹
'''
def __init__(self, path:str, init:dict):
'''
初始化
Args:
path (str):文件夹路径
init (dict):初始化字典
'''
self.path = path
self.provider = init["provider"]
self.size = i... | 493 | Python | .py | 18 | 15.944444 | 44 | 0.49635 | moyanj/AList3SDK | 8 | 1 | 0 | LGPL-2.1 | 9/5/2024, 10:48:18 PM (Europe/Amsterdam) |
2,287,338 | file.py | moyanj_AList3SDK/alist/file.py | import requests as _req
class AListFile:
def __init__(self, path, init):
self.path = path
self.name = init["name"]
self.provider = init["provider"]
self.size = init["size"]
self.modified = init["modified"]
self.created = init["created"]
self.url = init["raw_... | 1,808 | Python | .py | 53 | 23.283019 | 69 | 0.545235 | moyanj/AList3SDK | 8 | 1 | 0 | LGPL-2.1 | 9/5/2024, 10:48:18 PM (Europe/Amsterdam) |
2,287,339 | utils.py | moyanj_AList3SDK/alist/utils.py | from typing import Union
class ToClass:
def __init__(self, conf: dict):
self._conf_Dict = conf
self.__name__ = "<Standard Dictionary>"
self.update()
def __getattr__(self, name):
if name in self._conf_Dict:
return self._conf_Dict[name]
else:
rais... | 1,019 | Python | .py | 30 | 22.133333 | 86 | 0.485656 | moyanj/AList3SDK | 8 | 1 | 0 | LGPL-2.1 | 9/5/2024, 10:48:18 PM (Europe/Amsterdam) |
2,287,340 | __init__.py | moyanj_AList3SDK/alist/__init__.py | from .main import AList, AListUser, AListAdmin
from .folder import AListFolder
from .file import AListFile
from .error import *
| 128 | Python | .py | 4 | 31 | 46 | 0.830645 | moyanj/AList3SDK | 8 | 1 | 0 | LGPL-2.1 | 9/5/2024, 10:48:18 PM (Europe/Amsterdam) |
2,287,341 | main.py | moyanj_AList3SDK/alist/main.py | # pylint:disable=W0707
import requests
import hashlib
import json
import os.path
import sys
import pickle
import base64
import warnings
from platform import platform
from urllib.parse import quote
from typing import Union
from urllib.parse import urljoin
from . import error, file, folder, utils
class AListUser:
... | 13,962 | Python | .py | 409 | 20.958435 | 97 | 0.51866 | moyanj/AList3SDK | 8 | 1 | 0 | LGPL-2.1 | 9/5/2024, 10:48:18 PM (Europe/Amsterdam) |
2,287,342 | main.py | holgerson97_pr-labeler/main.py | import os
from pydriller.metrics.process.lines_count import LinesCount
def get_diff_stats(repo_path: str, base: str, head: str) -> int:
metric = LinesCount(path_to_repo=repo_path,
from_commit=base,
to_commit=head)
changed_lines = 0
for lines in metric.count... | 909 | Python | .py | 20 | 38.85 | 120 | 0.632839 | holgerson97/pr-labeler | 8 | 0 | 1 | GPL-3.0 | 9/5/2024, 10:48:18 PM (Europe/Amsterdam) |
2,287,343 | runserver.py | calhacks_hammer/runserver.py | # Forked from Gavel by HackMIT / Anish Athalye (me@anishathalye.com)
#
# This software and Gavel are both released under AGPLv3.
# See the included LICENSE.txt for details.
if __name__ == '__main__':
from hammer import app
import os
extra_files = []
if os.environ.get('DEBUG', False):
app.debu... | 492 | Python | .py | 16 | 25.5 | 68 | 0.634249 | calhacks/hammer | 8 | 1 | 0 | AGPL-3.0 | 9/5/2024, 10:48:18 PM (Europe/Amsterdam) |
2,287,344 | initialize.py | calhacks_hammer/initialize.py | # Forked from Gavel by HackMIT / Anish Athalye (me@anishathalye.com)
#
# This software and Gavel are both released under AGPLv3.
# See the included LICENSE.txt for details.
if __name__ == '__main__':
from hammer.models import db
db.create_all()
| 255 | Python | .py | 7 | 34 | 68 | 0.720648 | calhacks/hammer | 8 | 1 | 0 | AGPL-3.0 | 9/5/2024, 10:48:18 PM (Europe/Amsterdam) |
2,287,345 | crowd_bt.py | calhacks_hammer/hammer/crowd_bt.py | from numpy import (
exp,
log,
)
from scipy.special import (
betaln,
psi,
)
# See this paper for more information:
# http://people.stern.nyu.edu/xchen3/images/crowd_pairwise.pdf
# parameters chosen according to experiments in paper
GAMMA = float(0.1) # tradeoff parameter
LAMBDA = float(1) # regularizat... | 5,140 | Python | .py | 86 | 53.5 | 141 | 0.62021 | calhacks/hammer | 8 | 1 | 0 | AGPL-3.0 | 9/5/2024, 10:48:18 PM (Europe/Amsterdam) |
2,287,346 | settings.py | calhacks_hammer/hammer/settings.py | import hammer.constants as constants
import os
import yaml
BASE_DIR = os.path.dirname(__file__)
CONFIG_FILE = os.path.join(BASE_DIR, '..', 'config.yaml')
NONE_SENTINEL = object() # because default may be None
class Config(object):
def __init__(self, config_file):
if not _bool(os.environ.get('IGNORE_CON... | 4,880 | Python | .py | 84 | 52.547619 | 122 | 0.586293 | calhacks/hammer | 8 | 1 | 0 | AGPL-3.0 | 9/5/2024, 10:48:18 PM (Europe/Amsterdam) |
2,287,347 | constants.py | calhacks_hammer/hammer/constants.py | ANNOTATOR_ID = 'annotator_id'
SENDGRID_URL = "https://api.sendgrid.com/v3/mail/send"
# Setting
# keys
SETTING_WAVE = '0' # boolean
# values
SETTING_TRUE = 'true'
SETTING_FALSE = 'false'
# Defaults
# these can be overridden via the config file
DEFAULT_WELCOME_MESSAGE = '''
Welcome to the judging portion of Hack The Im... | 2,992 | Python | .py | 64 | 45.265625 | 83 | 0.780572 | calhacks/hammer | 8 | 1 | 0 | AGPL-3.0 | 9/5/2024, 10:48:18 PM (Europe/Amsterdam) |
2,287,348 | utils.py | calhacks_hammer/hammer/utils.py | from hammer import celery
import hammer.settings as settings
import hammer.crowd_bt as crowd_bt
import hammer.constants as constants
from flask import Markup, Response, request, render_template
import markdown
import requests
from functools import wraps
import base64
import os
import csv
import io
import re
import smtp... | 4,891 | Python | .py | 127 | 32.338583 | 110 | 0.667299 | calhacks/hammer | 8 | 1 | 0 | AGPL-3.0 | 9/5/2024, 10:48:18 PM (Europe/Amsterdam) |
2,287,349 | __init__.py | calhacks_hammer/hammer/__init__.py | # Forked from Gavel by HackMIT / Anish Athalye (me@anishathalye.com)
#
# This software and Gavel are both released under AGPLv3.
# See the included LICENSE.txt for details.
from flask import Flask
app = Flask(__name__)
import hammer.settings as settings
app.config['SQLALCHEMY_DATABASE_URI'] = settings.DB_URI
app.con... | 1,188 | Python | .py | 33 | 34 | 68 | 0.77245 | calhacks/hammer | 8 | 1 | 0 | AGPL-3.0 | 9/5/2024, 10:48:18 PM (Europe/Amsterdam) |
2,287,350 | template_filters.py | calhacks_hammer/hammer/template_filters.py | from hammer import app
from humanize import naturaltime
@app.template_filter('utcdatetime_local')
def _jinja2_filter_datetime_local(datetime):
if datetime is None:
return 'None'
return naturaltime(datetime)
@app.template_filter('utcdatetime_epoch')
def _jinja2_filter_datetime_epoch(datetime):
if d... | 389 | Python | .py | 12 | 28.583333 | 44 | 0.754667 | calhacks/hammer | 8 | 1 | 0 | AGPL-3.0 | 9/5/2024, 10:48:18 PM (Europe/Amsterdam) |
2,287,351 | item.py | calhacks_hammer/hammer/models/item.py | from hammer.models import db
import hammer.crowd_bt as crowd_bt
from sqlalchemy.orm.exc import NoResultFound
view_table = db.Table('view',
db.Column('item_id', db.Integer, db.ForeignKey('item.id')),
db.Column('annotator_id', db.Integer, db.ForeignKey('annotator.id'))
)
class Item(db.Model):
id = db.Column... | 1,317 | Python | .py | 34 | 32.411765 | 72 | 0.667449 | calhacks/hammer | 8 | 1 | 0 | AGPL-3.0 | 9/5/2024, 10:48:18 PM (Europe/Amsterdam) |
2,287,352 | decision.py | calhacks_hammer/hammer/models/decision.py | from hammer.models import db
from datetime import datetime
class Decision(db.Model):
id = db.Column(db.Integer, primary_key=True, nullable=False)
annotator_id = db.Column(db.Integer, db.ForeignKey('annotator.id'))
annotator = db.relationship('Annotator', foreign_keys=[annotator_id], uselist=False)
winn... | 810 | Python | .py | 15 | 48.866667 | 88 | 0.712484 | calhacks/hammer | 8 | 1 | 0 | AGPL-3.0 | 9/5/2024, 10:48:18 PM (Europe/Amsterdam) |
2,287,353 | setting.py | calhacks_hammer/hammer/models/setting.py | from hammer.models import db
from sqlalchemy.orm.exc import NoResultFound
class Setting(db.Model):
key = db.Column(db.Text, unique=True, nullable=False, primary_key=True)
value = db.Column(db.Text, nullable=False)
def __init__(self, key, value):
self.key = key
self.value = value
@clas... | 908 | Python | .py | 30 | 22.166667 | 75 | 0.592211 | calhacks/hammer | 8 | 1 | 0 | AGPL-3.0 | 9/5/2024, 10:48:18 PM (Europe/Amsterdam) |
2,287,354 | annotator.py | calhacks_hammer/hammer/models/annotator.py | from hammer.models import db
import hammer.utils as utils
import hammer.crowd_bt as crowd_bt
from sqlalchemy.orm.exc import NoResultFound
from datetime import datetime
ignore_table = db.Table('ignore',
db.Column('annotator_id', db.Integer, db.ForeignKey('annotator.id')),
db.Column('item_id', db.Integer, db.For... | 2,407 | Python | .py | 57 | 35.280702 | 90 | 0.664959 | calhacks/hammer | 8 | 1 | 0 | AGPL-3.0 | 9/5/2024, 10:48:18 PM (Europe/Amsterdam) |
2,287,355 | __init__.py | calhacks_hammer/hammer/models/__init__.py | import hammer.crowd_bt as crowd_bt
from flask_sqlalchemy import SQLAlchemy
import sqlalchemy.exc
import psycopg2.errors
class SerializableAlchemy(SQLAlchemy):
def apply_driver_hacks(self, app, info, options):
if not 'isolation_level' in options:
# XXX is this slow? are there better ways?
... | 1,274 | Python | .py | 33 | 32.606061 | 86 | 0.726537 | calhacks/hammer | 8 | 1 | 0 | AGPL-3.0 | 9/5/2024, 10:48:18 PM (Europe/Amsterdam) |
2,287,356 | error.py | calhacks_hammer/hammer/controllers/error.py | from hammer import app
from flask import render_template
@app.errorhandler(404)
def error_404(e):
return (
render_template('error.html', message='Page not found.'),
404
)
@app.errorhandler(403)
def error_403(e):
return (
render_template('error.html', message='Forbidden. Go back, re... | 541 | Python | .py | 20 | 22.3 | 102 | 0.662162 | calhacks/hammer | 8 | 1 | 0 | AGPL-3.0 | 9/5/2024, 10:48:18 PM (Europe/Amsterdam) |
2,287,357 | default.py | calhacks_hammer/hammer/controllers/default.py | from hammer import app
from flask import send_from_directory
import os
@app.route('/favicon.ico')
def favicon():
return send_from_directory(
os.path.join(app.root_path, 'static'),
'favicon.ico',
mimetype='image/vnd.microsoft.icon'
)
| 266 | Python | .py | 10 | 22.3 | 46 | 0.690196 | calhacks/hammer | 8 | 1 | 0 | AGPL-3.0 | 9/5/2024, 10:48:18 PM (Europe/Amsterdam) |
2,287,358 | api.py | calhacks_hammer/hammer/controllers/api.py | from hammer import app
from hammer.models import *
import hammer.utils as utils
from flask import Response
@app.route('/api/items.csv')
@app.route('/api/projects.csv')
@utils.requires_auth
def item_dump():
items = Item.query.order_by(desc(Item.mu)).all()
data = [['Mu', 'Sigma Squared', 'Name', 'Location', 'Des... | 1,380 | Python | .py | 44 | 26.386364 | 81 | 0.637659 | calhacks/hammer | 8 | 1 | 0 | AGPL-3.0 | 9/5/2024, 10:48:18 PM (Europe/Amsterdam) |
2,287,359 | csrf_protection.py | calhacks_hammer/hammer/controllers/csrf_protection.py | from hammer import app
import hammer.utils as utils
from flask import abort, request, session
@app.before_request
def csrf_protect():
if request.method == "POST":
token = session.get('_csrf_token', None)
if not token or token != request.form.get('_csrf_token'):
abort(403)
def generate_... | 518 | Python | .py | 14 | 32.357143 | 65 | 0.684631 | calhacks/hammer | 8 | 1 | 0 | AGPL-3.0 | 9/5/2024, 10:48:18 PM (Europe/Amsterdam) |
2,287,360 | __init__.py | calhacks_hammer/hammer/controllers/__init__.py | import hammer.controllers.default
import hammer.controllers.csrf_protection
import hammer.controllers.admin
import hammer.controllers.api
import hammer.controllers.judge
import hammer.controllers.error
| 202 | Python | .py | 6 | 32.666667 | 41 | 0.903061 | calhacks/hammer | 8 | 1 | 0 | AGPL-3.0 | 9/5/2024, 10:48:18 PM (Europe/Amsterdam) |
2,287,361 | admin.py | calhacks_hammer/hammer/controllers/admin.py | from hammer import app
from hammer.models import *
from hammer.constants import *
import hammer.settings as settings
import hammer.utils as utils
from flask import (
redirect,
render_template,
request,
url_for,
)
import urllib.parse
import xlrd
ALLOWED_EXTENSIONS = set(['csv', 'xlsx', 'xls'])
@app.rou... | 9,504 | Python | .py | 245 | 29.873469 | 257 | 0.598247 | calhacks/hammer | 8 | 1 | 0 | AGPL-3.0 | 9/5/2024, 10:48:18 PM (Europe/Amsterdam) |
2,287,362 | judge.py | calhacks_hammer/hammer/controllers/judge.py | from hammer import app
from hammer.models import *
from hammer.constants import *
import hammer.settings as settings
import hammer.utils as utils
import hammer.crowd_bt as crowd_bt
from flask import (
redirect,
render_template,
request,
session,
url_for,
)
from numpy.random import choice, random, sh... | 8,710 | Python | .py | 224 | 30.209821 | 120 | 0.626019 | calhacks/hammer | 8 | 1 | 0 | AGPL-3.0 | 9/5/2024, 10:48:18 PM (Europe/Amsterdam) |
2,287,363 | prestartup_script.py | sdfxai_SDFXBridgeForComfyUI/prestartup_script.py | import argparse
import os
import sys
import json
# Hack to pass extra args to main.py
def parse_args_override(self, args=None, namespace=None):
namespace, _ = self.parse_known_args(args, namespace)
return namespace
argparse.ArgumentParser.parse_args = parse_args_override
parser = argparse.ArgumentParser()
... | 2,631 | Python | .py | 63 | 36.904762 | 107 | 0.66927 | sdfxai/SDFXBridgeForComfyUI | 8 | 2 | 4 | AGPL-3.0 | 9/5/2024, 10:48:18 PM (Europe/Amsterdam) |
2,287,364 | __init__.py | sdfxai_SDFXBridgeForComfyUI/__init__.py | from functools import reduce
from .libs.prompt_parser import get_learned_conditioning_prompt_schedules,conditioning_set_timeset_range_prompt_mapper
from .sdfx_path import load_sdfx_extra_path_config
load_sdfx_extra_path_config()
from .server import add_sdfx_routes
add_sdfx_routes()
class SDFXClipTextEncode:
@cla... | 1,409 | Python | .py | 32 | 39.125 | 164 | 0.700292 | sdfxai/SDFXBridgeForComfyUI | 8 | 2 | 4 | AGPL-3.0 | 9/5/2024, 10:48:18 PM (Europe/Amsterdam) |
2,287,365 | sdfx_path.py | sdfxai_SDFXBridgeForComfyUI/sdfx_path.py | import os
import argparse
import json
import folder_paths
parser = argparse.ArgumentParser()
parser.add_argument("--sdfx-config-file", type=str, default=None, help="Path for sdfx config file")
args = parser.parse_args()
sdfx_config_file_name = 'sdfx.config.json'
#=== Best effort to find sdfx_config_file_path ===
def... | 4,028 | Python | .py | 101 | 34.366337 | 107 | 0.676312 | sdfxai/SDFXBridgeForComfyUI | 8 | 2 | 4 | AGPL-3.0 | 9/5/2024, 10:48:18 PM (Europe/Amsterdam) |
2,287,366 | server.py | sdfxai_SDFXBridgeForComfyUI/server.py | import os
from aiohttp import web
import server
import hashlib
import folder_paths
import uuid
import time
import json
from .libs.prompt_parser import get_learned_conditioning_prompt_schedules
from .sdfx_path import get_gallery_path, get_workflows_path, get_templates_path
gallery_path = get_gallery_path()
workflows_pa... | 12,729 | Python | .py | 282 | 38.12766 | 160 | 0.64333 | sdfxai/SDFXBridgeForComfyUI | 8 | 2 | 4 | AGPL-3.0 | 9/5/2024, 10:48:18 PM (Europe/Amsterdam) |
2,287,367 | prompt_parser.py | sdfxai_SDFXBridgeForComfyUI/libs/prompt_parser.py | from __future__ import annotations
import re
from collections import namedtuple
from typing import List
import lark
schedule_parser = lark.Lark(r"""
!start: (prompt | /[][():]/+)*
prompt: (emphasized | scheduled | plain | WHITESPACE)*
!emphasized: "(" prompt ")"
| "(" prompt ":" prompt ")"
| "[" promp... | 4,051 | Python | .py | 112 | 27.589286 | 135 | 0.489812 | sdfxai/SDFXBridgeForComfyUI | 8 | 2 | 4 | AGPL-3.0 | 9/5/2024, 10:48:18 PM (Europe/Amsterdam) |
2,287,368 | char_recognizer_scripts_fake_actuator_server.py.sisc | cyiyang_miniros/drug-deliverer.si4project/cache/parse/char_recognizer_scripts_fake_actuator_server.py.sisc | 0 T ) ê Õµ Õµ Öµ Öµ ¥ÜÕÕµ ¥Ä©
Õµ ... | 3,586 | Python | .py | 27 | 131.851852 | 536 | 0.145787 | cyiyang/miniros | 8 | 1 | 0 | GPL-2.0 | 9/5/2024, 10:48:18 PM (Europe/Amsterdam) |
2,287,369 | deliver_scheduler_scripts_examples_StateMachineTest.py.sisc | cyiyang_miniros/drug-deliverer.si4project/cache/parse/deliver_scheduler_scripts_examples_StateMachineTest.py.sisc | 0 T ) ë Õµ Õµ Öµ Öµ ¥ÜÕÕµ ¥Ä©
Õµ ... | 5,339 | Python | .py | 24 | 221.5 | 536 | 0.164033 | cyiyang/miniros | 8 | 1 | 0 | GPL-2.0 | 9/5/2024, 10:48:18 PM (Europe/Amsterdam) |
2,287,370 | deliver_scheduler_scripts_scheduler_server.py.sisc | cyiyang_miniros/drug-deliverer.si4project/cache/parse/deliver_scheduler_scripts_scheduler_server.py.sisc | 0 T ) 5 Õµ Õµ Öµ Öµ ¥ÜÕÕµ ¥Ä©
Õµ ... | 7,305 | Python | .py | 34 | 213.882353 | 739 | 0.185644 | cyiyang/miniros | 8 | 1 | 0 | GPL-2.0 | 9/5/2024, 10:48:18 PM (Europe/Amsterdam) |
2,287,371 | actuator_scripts_actuator_points.py.sisc | cyiyang_miniros/drug-deliverer.si4project/cache/parse/actuator_scripts_actuator_points.py.sisc | 0 T ) Õ Õµ Õµ Öµ Öµ ¥ÜÕÕµ ¥Ä©
Õµ ... | 5,781 | Python | .py | 20 | 288.1 | 593 | 0.156716 | cyiyang/miniros | 8 | 1 | 0 | GPL-2.0 | 9/5/2024, 10:48:18 PM (Europe/Amsterdam) |
2,287,372 | deliver_scheduler_scripts_SocketService.py.sisc | cyiyang_miniros/drug-deliverer.si4project/cache/parse/deliver_scheduler_scripts_SocketService.py.sisc | 0 T ) Ç Õµ Õµ Öµ Öµ ¥ÜÕÕµ ¥Ä©
Õµ ... | 9,051 | Python | .py | 42 | 214.52381 | 1,281 | 0.163485 | cyiyang/miniros | 8 | 1 | 0 | GPL-2.0 | 9/5/2024, 10:48:18 PM (Europe/Amsterdam) |
2,287,373 | deliver_scheduler_scripts_examples_regressionTests.py.sisc | cyiyang_miniros/drug-deliverer.si4project/cache/parse/deliver_scheduler_scripts_examples_regressionTests.py.sisc | 0 T ) Í Õµ Õµ Öµ Öµ ¥ÜÕÕµ ¥Ä©
Õµ ... | 2,573 | Python | .py | 8 | 320.75 | 557 | 0.129384 | cyiyang/miniros | 8 | 1 | 0 | GPL-2.0 | 9/5/2024, 10:48:18 PM (Europe/Amsterdam) |
2,287,374 | deliver_scheduler_scripts_examples_CoolingTimeRefreshTest.py.sisc | cyiyang_miniros/drug-deliverer.si4project/cache/parse/deliver_scheduler_scripts_examples_CoolingTimeRefreshTest.py.sisc | 0 T ) Ô Õµ Õµ Öµ Öµ ¥ÜÕÕµ ¥Ä©
Õµ ... | 2,872 | Python | .py | 13 | 220 | 536 | 0.122727 | cyiyang/miniros | 8 | 1 | 0 | GPL-2.0 | 9/5/2024, 10:48:18 PM (Europe/Amsterdam) |
2,287,375 | deliver_scheduler_scripts_scheduler.py.sisc | cyiyang_miniros/drug-deliverer.si4project/cache/parse/deliver_scheduler_scripts_scheduler.py.sisc | 0 T ) V} Υµ Υµ Φµ Φµ ¥άΥΥµ ¥Δ©
Υµ ... | 34,598 | Python | .py | 121 | 284.942149 | 1,851 | 0.11358 | cyiyang/miniros | 8 | 1 | 0 | GPL-2.0 | 9/5/2024, 10:48:18 PM (Europe/Amsterdam) |
2,287,376 | actuator_scripts_mission_server.py.sisc | cyiyang_miniros/drug-deliverer.si4project/cache/parse/actuator_scripts_mission_server.py.sisc | 0 T ) ê Õµ Õµ Öµ Öµ ¥ÜÕÕµ ¥Ä©
Õµ ... | 4,418 | Python | .py | 20 | 219.95 | 536 | 0.151853 | cyiyang/miniros | 8 | 1 | 0 | GPL-2.0 | 9/5/2024, 10:48:18 PM (Europe/Amsterdam) |
2,287,377 | deliver_scheduler_scripts_reloadable_timer.py.sisc | cyiyang_miniros/drug-deliverer.si4project/cache/parse/deliver_scheduler_scripts_reloadable_timer.py.sisc | 0 T ) ú$ Õµ Õµ Öµ Öµ ¥ÜÕÕµ ¥Ä©
Õµ ... | 10,250 | Python | .py | 40 | 255.275 | 1,109 | 0.156106 | cyiyang/miniros | 8 | 1 | 0 | GPL-2.0 | 9/5/2024, 10:48:18 PM (Europe/Amsterdam) |
2,287,378 | char_recognizer_scripts_recognizer.py.sisc | cyiyang_miniros/drug-deliverer.si4project/cache/parse/char_recognizer_scripts_recognizer.py.sisc | 0 T ) ¨ Õµ Õµ Öµ Öµ ¥ÜÕÕµ ¥Ä©
Õµ ... | 780 | Python | .py | 2 | 389.5 | 536 | 0.073171 | cyiyang/miniros | 8 | 1 | 0 | GPL-2.0 | 9/5/2024, 10:48:18 PM (Europe/Amsterdam) |
2,287,379 | actuator_scripts_permission_client.py.sisc | cyiyang_miniros/drug-deliverer.si4project/cache/parse/actuator_scripts_permission_client.py.sisc | 0 T ) à յ Õµ Öµ Öµ ¥ÜÕÕµ ¥Ä©
Õµ ... | 4,883 | Python | .py | 23 | 211.347826 | 536 | 0.142563 | cyiyang/miniros | 8 | 1 | 0 | GPL-2.0 | 9/5/2024, 10:48:18 PM (Europe/Amsterdam) |
2,287,380 | deliver_scheduler_scripts_examples_SchedulerExample.py.sisc | cyiyang_miniros/drug-deliverer.si4project/cache/parse/deliver_scheduler_scripts_examples_SchedulerExample.py.sisc | 0 T ) x Õµ Õµ Öµ Öµ ¥ÜÕÕµ ¥Ä©
Õµ ... | 3,556 | Python | .py | 13 | 272.615385 | 536 | 0.148138 | cyiyang/miniros | 8 | 1 | 0 | GPL-2.0 | 9/5/2024, 10:48:18 PM (Europe/Amsterdam) |
2,287,381 | actuator_scripts_actuator_watcher.py.sisc | cyiyang_miniros/drug-deliverer.si4project/cache/parse/actuator_scripts_actuator_watcher.py.sisc | 0 T ) 6K Õµ Õµ Öµ Öµ ¥ÜÕÕµ ¥Ä©
Õµ ... | 20,394 | Python | .py | 98 | 207.112245 | 1,020 | 0.17239 | cyiyang/miniros | 8 | 1 | 0 | GPL-2.0 | 9/5/2024, 10:48:18 PM (Europe/Amsterdam) |
2,287,382 | send_goals_scripts_send_goals_node_python.py.sisc | cyiyang_miniros/drug-deliverer.si4project/cache/parse/send_goals_scripts_send_goals_node_python.py.sisc | 0 T ) % Õµ Õµ Öµ Öµ ¥ÜÕÕµ ¥Ä©
Õµ ... | 10,005 | Python | .py | 47 | 211.893617 | 1,028 | 0.177528 | cyiyang/miniros | 8 | 1 | 0 | GPL-2.0 | 9/5/2024, 10:48:18 PM (Europe/Amsterdam) |
2,287,383 | board_reminder_scripts_reminder_basic.py.sisc | cyiyang_miniros/drug-deliverer.si4project/cache/parse/board_reminder_scripts_reminder_basic.py.sisc | 0 T ) -1 Õµ Õµ Öµ Öµ ¥ÜÕÕµ ¥Ä©
Õµ ... | 13,557 | Python | .py | 52 | 259.730769 | 1,211 | 0.168073 | cyiyang/miniros | 8 | 1 | 0 | GPL-2.0 | 9/5/2024, 10:48:18 PM (Europe/Amsterdam) |
2,287,384 | deliver_scheduler_scripts_examples_RestartWithIntervalTest.py.sisc | cyiyang_miniros/drug-deliverer.si4project/cache/parse/deliver_scheduler_scripts_examples_RestartWithIntervalTest.py.sisc | 0 T ) à յ Õµ Öµ Öµ ¥ÜÕÕµ ¥Ä©
Õµ ... | 2,463 | Python | .py | 10 | 245.4 | 536 | 0.137734 | cyiyang/miniros | 8 | 1 | 0 | GPL-2.0 | 9/5/2024, 10:48:18 PM (Europe/Amsterdam) |
2,287,385 | deliver_scheduler_scripts_examples_ReloadableTimerTests.py.sisc | cyiyang_miniros/drug-deliverer.si4project/cache/parse/deliver_scheduler_scripts_examples_ReloadableTimerTests.py.sisc | 0 T ) ¯ Õµ Õµ Öµ Öµ ¥ÜÕÕµ ¥Ä©
Õµ ... | 3,299 | Python | .py | 15 | 219 | 536 | 0.144597 | cyiyang/miniros | 8 | 1 | 0 | GPL-2.0 | 9/5/2024, 10:48:18 PM (Europe/Amsterdam) |
2,287,386 | board_reminder_scripts_reminder_client.py.sisc | cyiyang_miniros/drug-deliverer.si4project/cache/parse/board_reminder_scripts_reminder_client.py.sisc | 0 T ) Õµ Õµ Öµ Öµ ¥ÜÕÕµ ¥Ä©
Õµ ... | 7,469 | Python | .py | 34 | 218.705882 | 949 | 0.168908 | cyiyang/miniros | 8 | 1 | 0 | GPL-2.0 | 9/5/2024, 10:48:18 PM (Europe/Amsterdam) |
2,287,387 | deliver_scheduler_scripts_examples_multicarTest.py.sisc | cyiyang_miniros/drug-deliverer.si4project/cache/parse/deliver_scheduler_scripts_examples_multicarTest.py.sisc | 0 T ) †
Õµ Õµ Öµ Öµ ¥ÜÕÕµ ¥Ä©
Õµ ... | 2,934 | Python | .py | 15 | 194.666667 | 518 | 0.141096 | cyiyang/miniros | 8 | 1 | 0 | GPL-2.0 | 9/5/2024, 10:48:18 PM (Europe/Amsterdam) |
2,287,388 | actuator_points.py | cyiyang_miniros/actuator/scripts/actuator_points.py | #! /usr/bin/env python
# -*- coding: utf-8 -*-
from geometry_msgs.msg import Point, Pose, Quaternion
from tf.transformations import quaternion_from_euler
from math import pi
quaternions = list()
euler_angles = (
pi / 2,
pi / 2,
pi / 2,
0,
-pi / 2,
-pi / 2,
-pi / 2,
-pi / 2,
0,
... | 2,176 | Python | .py | 65 | 28.292308 | 61 | 0.594608 | cyiyang/miniros | 8 | 1 | 0 | GPL-2.0 | 9/5/2024, 10:48:18 PM (Europe/Amsterdam) |
2,287,389 | permission_client.py | cyiyang_miniros/actuator/scripts/permission_client.py | #! /usr/bin/env python
# -*- coding: utf-8 -*-
# 虚假的cv节点,模仿识别数字板的行为
import rospy
from actuator.srv import PermissionMsg, PermissionMsgRequest, PermissionMsgResponse
if __name__ == "__main__":
rospy.init_node("CVnode")
client = rospy.ServiceProxy("permission", PermissionMsg)
client.wait_for_service()
... | 793 | Python | .py | 23 | 25.695652 | 83 | 0.616783 | cyiyang/miniros | 8 | 1 | 0 | GPL-2.0 | 9/5/2024, 10:48:18 PM (Europe/Amsterdam) |
2,287,390 | actuator_master.py | cyiyang_miniros/actuator/scripts/actuator_master.py | #! /usr/bin/env python
# -*- coding: utf-8 -*-
import threading
from actuator_points import point_ABC_master, point_1234_master, point_special_master
import actionlib
import rospy
from actionlib_msgs.msg import GoalStatus
from move_base_msgs.msg import MoveBaseAction, MoveBaseGoal
from playsound import playsound
from ... | 13,518 | Python | .py | 303 | 30.290429 | 90 | 0.605776 | cyiyang/miniros | 8 | 1 | 0 | GPL-2.0 | 9/5/2024, 10:48:18 PM (Europe/Amsterdam) |
2,287,391 | mission_server.py | cyiyang_miniros/actuator/scripts/mission_server.py | #! /usr/bin/env python
# -*- coding: utf-8 -*-
# 制作虚假的服务器,进行调试
# 模仿scheduler的节点
import rospy
from actuator.srv import DestinationMsg, DestinationMsgResponse
import random
def doPrint(request):
response = DestinationMsgResponse()
rospy.loginfo(
"车辆编号:%d,请求类型:%s", request.car_no, requestType_dic[requ... | 1,255 | Python | .py | 29 | 33.241379 | 86 | 0.680037 | cyiyang/miniros | 8 | 1 | 0 | GPL-2.0 | 9/5/2024, 10:48:18 PM (Europe/Amsterdam) |
2,287,392 | actuator_slave.py | cyiyang_miniros/actuator/scripts/actuator_slave.py | #! /usr/bin/env python
# -*- coding: utf-8 -*-
import threading
from actuator_points import point_ABC_slave, point_1234_slave, point_special_slave
import actionlib
import rospy
from actionlib_msgs.msg import GoalStatus
from move_base_msgs.msg import MoveBaseAction, MoveBaseGoal
from playsound import playsound
from sta... | 12,277 | Python | .py | 274 | 31.974453 | 158 | 0.626346 | cyiyang/miniros | 8 | 1 | 0 | GPL-2.0 | 9/5/2024, 10:48:18 PM (Europe/Amsterdam) |
2,287,393 | actuator_watcher.py | cyiyang_miniros/actuator/scripts/actuator_watcher.py | #! /usr/bin/env python
# -*- coding: utf-8 -*-
import os
import threading
from actuator_points import point_special_watcher
import actionlib
import rospy
from actionlib_msgs.msg import GoalStatus
from move_base_msgs.msg import MoveBaseAction, MoveBaseGoal
from statemachine import State, StateMachine
from actuator.msg i... | 4,815 | Python | .py | 122 | 28.721311 | 88 | 0.632791 | cyiyang/miniros | 8 | 1 | 0 | GPL-2.0 | 9/5/2024, 10:48:18 PM (Europe/Amsterdam) |
2,287,394 | recognizer.py | cyiyang_miniros/char_recognizer/scripts/recognizer.py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import rospy
import glob
import cv2
import numpy as np
import imutils
import cv_bridge
import random
import sys
from sensor_msgs.msg import Image
from char_recognizer.srv import (
NeedToSeeMsg,
NeedToSeeMsgResponse,
DestinationMsg,
PermissionMsg,
)
class ... | 13,943 | Python | .py | 299 | 30.602007 | 96 | 0.549346 | cyiyang/miniros | 8 | 1 | 0 | GPL-2.0 | 9/5/2024, 10:48:18 PM (Europe/Amsterdam) |
2,287,395 | fake_actuator_server.py | cyiyang_miniros/char_recognizer/scripts/fake_actuator_server.py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import rospy
from char_recognizer.srv import PermissionMsg, PermissionMsgResponse
def doSomething(req):
response = PermissionMsgResponse()
if req.request == 0:
response.permission = 1
rospy.loginfo("[fake_actuator]收到“想看”, 已回复“能看”")
else:
... | 664 | Python | .py | 17 | 31.882353 | 82 | 0.695652 | cyiyang/miniros | 8 | 1 | 0 | GPL-2.0 | 9/5/2024, 10:48:18 PM (Europe/Amsterdam) |
2,287,396 | send_goals_node_python.py | cyiyang_miniros/send_goals/scripts/send_goals_node_python.py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# 动作通信:该例程在任一仿真环境下,执行/action_client通信,消息类型move_base_msgs/MoveBaseAction MoveBaseGoal
import roslib
import rospy
import actionlib
from actionlib_msgs.msg import *
from geometry_msgs.msg import Pose, Point, Quaternion
from move_base_msgs.msg import MoveBaseAction, MoveBaseGo... | 2,559 | Python | .py | 64 | 30.890625 | 84 | 0.637744 | cyiyang/miniros | 8 | 1 | 0 | GPL-2.0 | 9/5/2024, 10:48:18 PM (Europe/Amsterdam) |
2,287,397 | scheduler_server.py | cyiyang_miniros/deliver_scheduler/scripts/scheduler_server.py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import sys
import threading
import rospy
from scheduler import CoolingTimePlan, NeedToSeePlan, NeedToChangeStatus
from scheduler_ros import SchedulerROS
from SocketService import SocketServiceMaster
# Future warning 不知道是干什么的
# sys.path.append("/home/ncut/scheduler_ws/deve... | 2,989 | Python | .py | 61 | 36 | 95 | 0.693111 | cyiyang/miniros | 8 | 1 | 0 | GPL-2.0 | 9/5/2024, 10:48:18 PM (Europe/Amsterdam) |
2,287,398 | reloadable_timer.py | cyiyang_miniros/deliver_scheduler/scripts/reloadable_timer.py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import threading
import time
class ReloadableTimer(object):
def __init__(self, interval, autoReload, function, args=[], kwargs={}):
self.interval = interval
self.reloadInterval = interval
self.function = function
self.args = args
... | 2,902 | Python | .py | 73 | 25.767123 | 81 | 0.623709 | cyiyang/miniros | 8 | 1 | 0 | GPL-2.0 | 9/5/2024, 10:48:18 PM (Europe/Amsterdam) |
2,287,399 | SocketService.py | cyiyang_miniros/deliver_scheduler/scripts/SocketService.py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import json
import socket
import time
class SocketServiceMaster(object):
def __init__(
self,
slave_addr,
slave_port,
slave_ready_port,
use_full_socket=False,
time_to_return=5,
):
self.slave_addr = slave_addr
... | 2,946 | Python | .py | 75 | 25.653333 | 87 | 0.588189 | cyiyang/miniros | 8 | 1 | 0 | GPL-2.0 | 9/5/2024, 10:48:18 PM (Europe/Amsterdam) |