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,289,400 | custom_env.py | WindyLab_Gym-PPS/example_pps/custom_env.py | import gym
from gym import spaces
import numpy as np
"""Define your own Observation and Reward in this script:
You may use the following properties to define your observation/reward functions:
self.env.p, dp, ddp, theta, heading, d_b2b_center, is_collide_b2b, energy
"""
class MyObs(gym.ObservationWrapper):
def ... | 852 | Python | .py | 24 | 28.458333 | 97 | 0.642225 | WindyLab/Gym-PPS | 8 | 2 | 1 | GPL-2.0 | 9/5/2024, 10:48:35 PM (Europe/Amsterdam) |
2,289,401 | test_pps.py | WindyLab_Gym-PPS/example_pps/test_pps.py | import os
import json
import numpy as np
import time
import gym
from gym.wrappers import PredatorPreySwarmCustomizer
from custom_env import MyObs, MyReward
## Define the Predator-Prey Swarm (PPS) environment
scenario_name = 'PredatorPreySwarm-v0'
# customize PPS environment parameters in the .json file
custom_param... | 1,298 | Python | .py | 33 | 33.454545 | 88 | 0.648281 | WindyLab/Gym-PPS | 8 | 2 | 1 | GPL-2.0 | 9/5/2024, 10:48:35 PM (Europe/Amsterdam) |
2,289,402 | custom_param.py | WindyLab_Gym-PPS/example_pps/custom_param.py | '''
Specify parameters of the PredatorPreySwarm environment
'''
from typing import Union
import numpy as np
import argparse
parser = argparse.ArgumentParser("Gym-PredatorPreySwarm Arguments")
parser.add_argument("--n-p", type=int, default=3, help='number of predators')
parser.add_argument("--n-e", type=int, default=... | 884 | Python | .py | 14 | 61.428571 | 136 | 0.737875 | WindyLab/Gym-PPS | 8 | 2 | 1 | GPL-2.0 | 9/5/2024, 10:48:35 PM (Europe/Amsterdam) |
2,289,403 | generate_json.py | WindyLab_Gym-PPS/scripts/generate_json.py | from gym import envs, spaces, logger
import json
import os
import sys
import argparse
from gym.envs.tests.spec_list import should_skip_env_spec_for_tests
from gym.envs.tests.test_envs_semantics import generate_rollout_hash, hash_object
DATA_DIR = os.path.join(os.path.dirname(__file__), os.pardir, "gym", "envs", "test... | 3,910 | Python | .py | 102 | 31.441176 | 93 | 0.64996 | WindyLab/Gym-PPS | 8 | 2 | 1 | GPL-2.0 | 9/5/2024, 10:48:35 PM (Europe/Amsterdam) |
2,289,404 | lint_python.yml | WindyLab_Gym-PPS/.github/workflows/lint_python.yml | name: lint_python
on: [pull_request, push]
jobs:
lint_python:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v2
- run: pip install isort mypy pytest pyupgrade safety
- run: isort --check-only --profile black . || true
- run: pip install -e ... | 544 | Python | .pyt | 15 | 31 | 71 | 0.620038 | WindyLab/Gym-PPS | 8 | 2 | 1 | GPL-2.0 | 9/5/2024, 10:48:35 PM (Europe/Amsterdam) |
2,289,405 | test_frame_stack.py | WindyLab_Gym-PPS/gym/wrappers/test_frame_stack.py | import pytest
pytest.importorskip("atari_py")
import numpy as np
import gym
from gym.wrappers import FrameStack
try:
import lz4
except ImportError:
lz4 = None
@pytest.mark.parametrize("env_id", ["CartPole-v1", "Pendulum-v0", "Pong-v0"])
@pytest.mark.parametrize("num_stack", [2, 3, 4])
@pytest.mark.parametr... | 1,387 | Python | .tac | 42 | 27.642857 | 77 | 0.632012 | WindyLab/Gym-PPS | 8 | 2 | 1 | GPL-2.0 | 9/5/2024, 10:48:35 PM (Europe/Amsterdam) |
2,289,406 | frame_stack.py | WindyLab_Gym-PPS/gym/wrappers/frame_stack.py | from collections import deque
import numpy as np
from gym.spaces import Box
from gym import ObservationWrapper
class LazyFrames(object):
r"""Ensures common frames are only stored once to optimize memory use.
To further reduce the memory use, it is optionally to turn on lz4 to
compress the observations.
... | 3,939 | Python | .tac | 90 | 35.611111 | 91 | 0.641865 | WindyLab/Gym-PPS | 8 | 2 | 1 | GPL-2.0 | 9/5/2024, 10:48:35 PM (Europe/Amsterdam) |
2,289,407 | sensor.py | TeDeVPrime_energy_grabber_by_ted/sensor.py | import logging
from datetime import timedelta, datetime
from bs4 import BeautifulSoup
from homeassistant.components.sensor import SensorEntity
from homeassistant.core import callback
from homeassistant.helpers.aiohttp_client import async_get_clientsession
from homeassistant.helpers.update_coordinator import DataUpdateC... | 5,407 | Python | .py | 131 | 32.137405 | 105 | 0.61974 | TeDeVPrime/energy_grabber_by_ted | 8 | 1 | 0 | GPL-3.0 | 9/5/2024, 10:48:35 PM (Europe/Amsterdam) |
2,289,408 | config_flow.py | TeDeVPrime_energy_grabber_by_ted/config_flow.py | import voluptuous as vol
from homeassistant import config_entries
from homeassistant.core import HomeAssistant
from homeassistant.const import CONF_NAME, CONF_URL
from homeassistant.helpers.aiohttp_client import async_get_clientsession
from .const import DOMAIN, CONF_URL
import logging
_LOGGER = logging.getLogger(__na... | 3,196 | Python | .py | 65 | 39.076923 | 148 | 0.633333 | TeDeVPrime/energy_grabber_by_ted | 8 | 1 | 0 | GPL-3.0 | 9/5/2024, 10:48:35 PM (Europe/Amsterdam) |
2,289,409 | const.py | TeDeVPrime_energy_grabber_by_ted/const.py | # Constants file for Greek Energy Prices Monitor
DOMAIN = "energy_grabber_by_ted"
CONF_URL = 'url' # This is the configuration key for URL used in the config flow and sensor setup
| 181 | Python | .py | 3 | 59.333333 | 98 | 0.775281 | TeDeVPrime/energy_grabber_by_ted | 8 | 1 | 0 | GPL-3.0 | 9/5/2024, 10:48:35 PM (Europe/Amsterdam) |
2,289,410 | __init__.py | TeDeVPrime_energy_grabber_by_ted/__init__.py | from homeassistant.core import HomeAssistant
from homeassistant import config_entries
from homeassistant.helpers.dispatcher import async_dispatcher_send
import logging
from .const import DOMAIN, CONF_URL
_LOGGER = logging.getLogger(__name__)
async def async_setup(hass: HomeAssistant, config: dict):
"""Set up the... | 2,142 | Python | .py | 40 | 48.55 | 107 | 0.726839 | TeDeVPrime/energy_grabber_by_ted | 8 | 1 | 0 | GPL-3.0 | 9/5/2024, 10:48:35 PM (Europe/Amsterdam) |
2,289,411 | sensor.py | TeDeVPrime_energy_grabber_by_ted/custom_components/energy_grabber_by_ted/sensor.py | import logging
from datetime import timedelta, datetime
from bs4 import BeautifulSoup
from homeassistant.components.sensor import SensorEntity
from homeassistant.core import callback
from homeassistant.helpers.aiohttp_client import async_get_clientsession
from homeassistant.helpers.update_coordinator import DataUpdateC... | 5,407 | Python | .py | 131 | 32.137405 | 105 | 0.61974 | TeDeVPrime/energy_grabber_by_ted | 8 | 1 | 0 | GPL-3.0 | 9/5/2024, 10:48:35 PM (Europe/Amsterdam) |
2,289,412 | config_flow.py | TeDeVPrime_energy_grabber_by_ted/custom_components/energy_grabber_by_ted/config_flow.py | import voluptuous as vol
from homeassistant import config_entries
from homeassistant.core import HomeAssistant
from homeassistant.const import CONF_NAME, CONF_URL
from homeassistant.helpers.aiohttp_client import async_get_clientsession
from .const import DOMAIN, CONF_URL
import logging
_LOGGER = logging.getLogger(__na... | 3,196 | Python | .py | 65 | 39.076923 | 148 | 0.633333 | TeDeVPrime/energy_grabber_by_ted | 8 | 1 | 0 | GPL-3.0 | 9/5/2024, 10:48:35 PM (Europe/Amsterdam) |
2,289,413 | const.py | TeDeVPrime_energy_grabber_by_ted/custom_components/energy_grabber_by_ted/const.py | # Constants file for Greek Energy Prices Monitor
DOMAIN = "energy_grabber_by_ted"
CONF_URL = 'url' # This is the configuration key for URL used in the config flow and sensor setup
| 181 | Python | .py | 3 | 59.333333 | 98 | 0.775281 | TeDeVPrime/energy_grabber_by_ted | 8 | 1 | 0 | GPL-3.0 | 9/5/2024, 10:48:35 PM (Europe/Amsterdam) |
2,289,414 | __init__.py | TeDeVPrime_energy_grabber_by_ted/custom_components/energy_grabber_by_ted/__init__.py | from homeassistant.core import HomeAssistant
from homeassistant import config_entries
from homeassistant.helpers.dispatcher import async_dispatcher_send
import logging
from .const import DOMAIN, CONF_URL
_LOGGER = logging.getLogger(__name__)
async def async_setup(hass: HomeAssistant, config: dict):
"""Set up the... | 2,142 | Python | .py | 40 | 48.55 | 107 | 0.726839 | TeDeVPrime/energy_grabber_by_ted | 8 | 1 | 0 | GPL-3.0 | 9/5/2024, 10:48:35 PM (Europe/Amsterdam) |
2,289,415 | detr3d_roscene_res101.py | roscenes_RoScenes/examples/mmdet3d/configs/detr3d_roscene_res101.py | _base_ = [
'/mmdetection3d/configs/_base_/datasets/nus-3d.py',
'/mmdetection3d/configs/_base_/default_runtime.py'
]
plugin=True
plugin_dir='projects/mmdet3d_plugin/'
# If point cloud range is changed, the models should also change their point
# cloud range accordingly
point_cloud_range = [-400., -40., -0., 40... | 8,175 | Python | .py | 216 | 28.541667 | 176 | 0.592294 | roscenes/RoScenes | 8 | 0 | 2 | GPL-3.0 | 9/5/2024, 10:48:43 PM (Europe/Amsterdam) |
2,289,416 | roscenes_dataset.py | roscenes_RoScenes/examples/mmdet3d/mmdet3d_plugin/datasets/roscenes_dataset.py | # RoScenes
# Copyright (C) 2024 Alibaba Cloud
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# ... | 13,791 | Python | .py | 297 | 34.750842 | 201 | 0.547855 | roscenes/RoScenes | 8 | 0 | 2 | GPL-3.0 | 9/5/2024, 10:48:43 PM (Europe/Amsterdam) |
2,289,417 | __init__.py | roscenes_RoScenes/examples/mmdet3d/mmdet3d_plugin/datasets/__init__.py | ###################### OTHER IMPORTS ######################
###################### OTHER IMPORTS ######################
###################### OTHER IMPORTS ######################
"..."
from .roscenes_dataset import RoScenesDataset
__all__ = [
'...'
'...'
'...'
'...'
'RoScenesDataset'
]
| 309 | Python | .py | 12 | 23 | 59 | 0.317568 | roscenes/RoScenes | 8 | 0 | 2 | GPL-3.0 | 9/5/2024, 10:48:43 PM (Europe/Amsterdam) |
2,289,418 | transform.py | roscenes_RoScenes/roscenes/transform.py | # RoScenes
# Copyright (C) 2024 Alibaba Cloud
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# ... | 10,588 | Python | .py | 311 | 25.681672 | 180 | 0.466817 | roscenes/RoScenes | 8 | 0 | 2 | GPL-3.0 | 9/5/2024, 10:48:43 PM (Europe/Amsterdam) |
2,289,419 | __init__.py | roscenes_RoScenes/roscenes/__init__.py | # RoScenes
# Copyright (C) 2024 Alibaba Cloud
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# ... | 854 | Python | .py | 20 | 41.55 | 75 | 0.760529 | roscenes/RoScenes | 8 | 0 | 2 | GPL-3.0 | 9/5/2024, 10:48:43 PM (Europe/Amsterdam) |
2,289,420 | consts.py | roscenes_RoScenes/roscenes/consts.py | # RoScenes
# Copyright (C) 2024 Alibaba Cloud
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# ... | 1,395 | Python | .py | 38 | 33.078947 | 190 | 0.682927 | roscenes/RoScenes | 8 | 0 | 2 | GPL-3.0 | 9/5/2024, 10:48:43 PM (Europe/Amsterdam) |
2,289,421 | misc.py | roscenes_RoScenes/roscenes/misc.py | # RoScenes
# Copyright (C) 2024 Alibaba Cloud
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# ... | 13,299 | Python | .py | 354 | 29.087571 | 164 | 0.569819 | roscenes/RoScenes | 8 | 0 | 2 | GPL-3.0 | 9/5/2024, 10:48:43 PM (Europe/Amsterdam) |
2,289,422 | typing.py | roscenes_RoScenes/roscenes/typing.py | # RoScenes
# Copyright (C) 2024 Alibaba Cloud
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# ... | 851 | Python | .py | 19 | 43.789474 | 75 | 0.747596 | roscenes/RoScenes | 8 | 0 | 2 | GPL-3.0 | 9/5/2024, 10:48:43 PM (Europe/Amsterdam) |
2,289,423 | clip.py | roscenes_RoScenes/roscenes/data/clip.py | # RoScenes
# Copyright (C) 2024 Alibaba Cloud
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# ... | 6,288 | Python | .py | 151 | 34.860927 | 170 | 0.6096 | roscenes/RoScenes | 8 | 0 | 2 | GPL-3.0 | 9/5/2024, 10:48:43 PM (Europe/Amsterdam) |
2,289,424 | camera.py | roscenes_RoScenes/roscenes/data/camera.py | # RoScenes
# Copyright (C) 2024 Alibaba Cloud
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# ... | 1,918 | Python | .py | 44 | 40.363636 | 154 | 0.685086 | roscenes/RoScenes | 8 | 0 | 2 | GPL-3.0 | 9/5/2024, 10:48:43 PM (Europe/Amsterdam) |
2,289,425 | metadata.py | roscenes_RoScenes/roscenes/data/metadata.py | # RoScenes
# Copyright (C) 2024 Alibaba Cloud
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# ... | 1,361 | Python | .py | 49 | 24.612245 | 75 | 0.699081 | roscenes/RoScenes | 8 | 0 | 2 | GPL-3.0 | 9/5/2024, 10:48:43 PM (Europe/Amsterdam) |
2,289,426 | __init__.py | roscenes_RoScenes/roscenes/data/__init__.py | # RoScenes
# Copyright (C) 2024 Alibaba Cloud
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# ... | 968 | Python | .py | 29 | 31.482759 | 75 | 0.72572 | roscenes/RoScenes | 8 | 0 | 2 | GPL-3.0 | 9/5/2024, 10:48:43 PM (Europe/Amsterdam) |
2,289,427 | frame.py | roscenes_RoScenes/roscenes/data/frame.py | # RoScenes
# Copyright (C) 2024 Alibaba Cloud
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# ... | 7,081 | Python | .py | 129 | 47.813953 | 232 | 0.640704 | roscenes/RoScenes | 8 | 0 | 2 | GPL-3.0 | 9/5/2024, 10:48:43 PM (Europe/Amsterdam) |
2,289,428 | scene.py | roscenes_RoScenes/roscenes/data/scene.py | # RoScenes
# Copyright (C) 2024 Alibaba Cloud
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# ... | 7,301 | Python | .py | 170 | 34.811765 | 199 | 0.6363 | roscenes/RoScenes | 8 | 0 | 2 | GPL-3.0 | 9/5/2024, 10:48:43 PM (Europe/Amsterdam) |
2,289,429 | __init__.py | roscenes_RoScenes/roscenes/evaluation/__init__.py | # RoScenes
# Copyright (C) 2024 Alibaba Cloud
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# ... | 756 | Python | .py | 16 | 46.3125 | 75 | 0.747638 | roscenes/RoScenes | 8 | 0 | 2 | GPL-3.0 | 9/5/2024, 10:48:43 PM (Europe/Amsterdam) |
2,289,430 | result.py | roscenes_RoScenes/roscenes/evaluation/detection/result.py | # RoScenes
# Copyright (C) 2024 Alibaba Cloud
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# ... | 9,304 | Python | .py | 222 | 33.418919 | 178 | 0.597589 | roscenes/RoScenes | 8 | 0 | 2 | GPL-3.0 | 9/5/2024, 10:48:43 PM (Europe/Amsterdam) |
2,289,431 | handlers.py | roscenes_RoScenes/roscenes/evaluation/detection/handlers.py | # RoScenes
# Copyright (C) 2024 Alibaba Cloud
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# ... | 7,394 | Python | .py | 143 | 44.979021 | 250 | 0.675526 | roscenes/RoScenes | 8 | 0 | 2 | GPL-3.0 | 9/5/2024, 10:48:43 PM (Europe/Amsterdam) |
2,289,432 | config.py | roscenes_RoScenes/roscenes/evaluation/detection/config.py | # RoScenes
# Copyright (C) 2024 Alibaba Cloud
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# ... | 3,169 | Python | .py | 66 | 42.621212 | 186 | 0.707081 | roscenes/RoScenes | 8 | 0 | 2 | GPL-3.0 | 9/5/2024, 10:48:43 PM (Europe/Amsterdam) |
2,289,433 | aggregator.py | roscenes_RoScenes/roscenes/evaluation/detection/aggregator.py | # RoScenes
# Copyright (C) 2024 Alibaba Cloud
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# ... | 1,679 | Python | .py | 32 | 47.75 | 144 | 0.719586 | roscenes/RoScenes | 8 | 0 | 2 | GPL-3.0 | 9/5/2024, 10:48:43 PM (Europe/Amsterdam) |
2,289,434 | prediction.py | roscenes_RoScenes/roscenes/evaluation/detection/prediction.py | # RoScenes
# Copyright (C) 2024 Alibaba Cloud
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# ... | 1,590 | Python | .py | 36 | 40.166667 | 178 | 0.717419 | roscenes/RoScenes | 8 | 0 | 2 | GPL-3.0 | 9/5/2024, 10:48:43 PM (Europe/Amsterdam) |
2,289,435 | __init__.py | roscenes_RoScenes/roscenes/evaluation/detection/__init__.py | # RoScenes
# Copyright (C) 2024 Alibaba Cloud
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# ... | 948 | Python | .py | 18 | 51.722222 | 91 | 0.780881 | roscenes/RoScenes | 8 | 0 | 2 | GPL-3.0 | 9/5/2024, 10:48:43 PM (Europe/Amsterdam) |
2,289,436 | evaluator.py | roscenes_RoScenes/roscenes/evaluation/detection/evaluator.py | # RoScenes
# Copyright (C) 2024 Alibaba Cloud
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# ... | 12,179 | Python | .py | 192 | 53.697917 | 339 | 0.676485 | roscenes/RoScenes | 8 | 0 | 2 | GPL-3.0 | 9/5/2024, 10:48:43 PM (Europe/Amsterdam) |
2,289,437 | __main__.py | roscenes_RoScenes/roscenes/visualizer/__main__.py | # RoScenes
# Copyright (C) 2024 Alibaba Cloud
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# ... | 6,640 | Python | .py | 143 | 37.937063 | 171 | 0.613162 | roscenes/RoScenes | 8 | 0 | 2 | GPL-3.0 | 9/5/2024, 10:48:43 PM (Europe/Amsterdam) |
2,289,438 | __init__.py | roscenes_RoScenes/roscenes/visualizer/__init__.py | # RoScenes
# Copyright (C) 2024 Alibaba Cloud
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# ... | 836 | Python | .py | 18 | 45.5 | 75 | 0.746032 | roscenes/RoScenes | 8 | 0 | 2 | GPL-3.0 | 9/5/2024, 10:48:43 PM (Europe/Amsterdam) |
2,289,439 | rename_lexmark_functions.py | boredpentester_pwn2own_lexmark/rename_lexmark_functions.py | # dirty script to rename Lexmark subroutines based on logging strings
from idc import *
from ida_xref import *
import idautils
# You must have identified the printf function.
def printf_follow(addr):
instcount = 0
xref_addr = addr
func = idaapi.get_func(addr)
addr = func.startEA
print("-... | 5,835 | Python | .py | 104 | 45.865385 | 474 | 0.598027 | boredpentester/pwn2own_lexmark | 8 | 0 | 0 | GPL-3.0 | 9/5/2024, 10:48:43 PM (Europe/Amsterdam) |
2,289,440 | rename_lexmark_pagemaker_sym_table.py | boredpentester_pwn2own_lexmark/rename_lexmark_pagemaker_sym_table.py | '''
Lexmark's Pagemaker has what appears to be a symbol table for Postscript (and other) handlers.
.rodata:00378A1C sym_table postscript_handler <aAbs, sub_103A10, 0, 0>
.rodata:00378A1C ; DATA XREF: sub_6690C+48↑o
.rodata:00378A1C ... | 3,380 | Python | .py | 55 | 57.581818 | 106 | 0.632073 | boredpentester/pwn2own_lexmark | 8 | 0 | 0 | GPL-3.0 | 9/5/2024, 10:48:43 PM (Europe/Amsterdam) |
2,289,441 | main.py | wish2333_VideoExtractAndConcat/main.py | import sys
# import logging
import os
# 第三方库
from PySide6.QtCore import Qt
from PySide6.QtGui import QIcon
from PySide6.QtWidgets import QApplication, QWidget
from qfluentwidgets import FluentWindow, FluentIcon, NavigationItemPosition
# 自定义模块
from modules.logger_config import logger
from modules.setting_Interface impor... | 3,632 | Python | .py | 76 | 40.894737 | 138 | 0.754762 | wish2333/VideoExtractAndConcat | 8 | 0 | 0 | LGPL-2.1 | 9/5/2024, 10:48:43 PM (Europe/Amsterdam) |
2,289,442 | Ui_vcodecInterfacee.py | wish2333_VideoExtractAndConcat/modules/Ui_vcodecInterfacee.py | # -*- coding: utf-8 -*-
################################################################################
## Form generated from reading UI file 'vencoInterface.ui'
##
## Created by: Qt User Interface Compiler version 6.7.0
##
## WARNING! All changes made in this file will be lost when recompiling UI file!
############... | 26,328 | Python | .py | 477 | 46.234801 | 146 | 0.69668 | wish2333/VideoExtractAndConcat | 8 | 0 | 0 | LGPL-2.1 | 9/5/2024, 10:48:43 PM (Europe/Amsterdam) |
2,289,443 | Ui_VautocutInterface.py | wish2333_VideoExtractAndConcat/modules/Ui_VautocutInterface.py | # -*- coding: utf-8 -*-
################################################################################
## Form generated from reading UI file 'VautocutInterface.ui'
##
## Created by: Qt User Interface Compiler version 6.7.0
##
## WARNING! All changes made in this file will be lost when recompiling UI file!
#########... | 31,143 | Python | .py | 457 | 59.201313 | 147 | 0.752676 | wish2333/VideoExtractAndConcat | 8 | 0 | 0 | LGPL-2.1 | 9/5/2024, 10:48:43 PM (Europe/Amsterdam) |
2,289,444 | config.py | wish2333_VideoExtractAndConcat/modules/config.py | import os
import configparser
from modules.logger_config import logger
def init_ffpath():
configinit = configparser.ConfigParser()
configinit.read('.\\modules\\config.ini', 'UTF-8')
if configinit['PATHS']['ffmpeg_path'] == '':
ffmpeg_path_relative = '.\\FFmpeg\\bin\\ffmpeg.exe'
ffprobe_pa... | 3,690 | Python | .py | 74 | 40.864865 | 81 | 0.6461 | wish2333/VideoExtractAndConcat | 8 | 0 | 0 | LGPL-2.1 | 9/5/2024, 10:48:43 PM (Europe/Amsterdam) |
2,289,445 | VautocutInterface.py | wish2333_VideoExtractAndConcat/modules/VautocutInterface.py | import os
from PySide6.QtCore import QThread, Qt, Signal, QObject
from PySide6.QtWidgets import QWidget, QFileDialog, QListWidgetItem
from qfluentwidgets import MessageBox
from modules.config import autopath, ffpath
from modules.autoEditorApi import AutoEditor
from modules.Ui_VautocutInterface import Ui_VautocutInterf... | 17,431 | Python | .py | 340 | 39.691176 | 191 | 0.639431 | wish2333/VideoExtractAndConcat | 8 | 0 | 0 | LGPL-2.1 | 9/5/2024, 10:48:43 PM (Europe/Amsterdam) |
2,289,446 | autoEditorApi.py | wish2333_VideoExtractAndConcat/modules/autoEditorApi.py | # autoEditorApi.py
# 实现了FFmpeg的命令行接口,可以对视频进行各种操作,如截取、合并、转码、截图等。
import subprocess
import os
from modules.logger_config import logger
import time
import threading
from modules.config import autopath
import configparser
class AutoEditor:
# 初始化函数,用于初始化实例的ffmpeg_path属性
def __init__(
self,
... | 4,069 | Python | .py | 96 | 23.458333 | 66 | 0.529325 | wish2333/VideoExtractAndConcat | 8 | 0 | 0 | LGPL-2.1 | 9/5/2024, 10:48:43 PM (Europe/Amsterdam) |
2,289,447 | about_Interface.py | wish2333_VideoExtractAndConcat/modules/about_Interface.py | from PySide6.QtCore import QUrl
from PySide6.QtGui import QDesktopServices
from PySide6.QtWidgets import QWidget, QFileDialog, QMessageBox, QListWidgetItem
from qfluentwidgets import FluentIcon
from modules.config import ffpath, set_config
from modules.Ui_aboutInterface import Ui_AboutInterface
class AboutInterface(Q... | 1,511 | Python | .py | 32 | 38.90625 | 91 | 0.736062 | wish2333/VideoExtractAndConcat | 8 | 0 | 0 | LGPL-2.1 | 9/5/2024, 10:48:43 PM (Europe/Amsterdam) |
2,289,448 | Ui_vcodecpInterface.py | wish2333_VideoExtractAndConcat/modules/Ui_vcodecpInterface.py | # -*- coding: utf-8 -*-
################################################################################
## Form generated from reading UI file 'vcodecpInterface.ui'
##
## Created by: Qt User Interface Compiler version 6.7.0
##
## WARNING! All changes made in this file will be lost when recompiling UI file!
##########... | 35,063 | Python | .py | 516 | 59 | 167 | 0.753283 | wish2333/VideoExtractAndConcat | 8 | 0 | 0 | LGPL-2.1 | 9/5/2024, 10:48:43 PM (Europe/Amsterdam) |
2,289,449 | vcodecp_Interface.py | wish2333_VideoExtractAndConcat/modules/vcodecp_Interface.py | from modules.logger_config import logger
import os
from PySide6.QtCore import Qt, QThread, Signal, QObject, QTime
from PySide6.QtGui import QPixmap, QPainter, QColor
from PySide6.QtWidgets import QWidget, QFileDialog, QMessageBox, QListWidgetItem
from qfluentwidgets import MessageBox
from modules.config import ffpath... | 54,329 | Python | .py | 715 | 56.753846 | 264 | 0.666542 | wish2333/VideoExtractAndConcat | 8 | 0 | 0 | LGPL-2.1 | 9/5/2024, 10:48:43 PM (Europe/Amsterdam) |
2,289,450 | ffmpegApi.py | wish2333_VideoExtractAndConcat/modules/ffmpegApi.py | # ffmpegApi.py
# 实现了FFmpeg的命令行接口,可以对视频进行各种操作,如截取、合并、转码、截图等。
import subprocess
import os
from modules.logger_config import logger
import time
import threading
from modules.config import ffpath
class FFmpeg:
# 初始化函数,用于初始化实例的ffmpeg_path属性
def __init__(self,
ffmpeg_path=ffpath.ffmpeg_path,
ffpr... | 16,894 | Python | .py | 420 | 24.354762 | 419 | 0.507869 | wish2333/VideoExtractAndConcat | 8 | 0 | 0 | LGPL-2.1 | 9/5/2024, 10:48:43 PM (Europe/Amsterdam) |
2,289,451 | VfilterInterface.py | wish2333_VideoExtractAndConcat/modules/VfilterInterface.py |
import os
from PySide6.QtCore import Qt, QThread, Signal, QObject, QTime
from PySide6.QtGui import QPixmap, QPainter, QColor
from PySide6.QtWidgets import QWidget, QFileDialog, QMessageBox, QListWidgetItem
from qfluentwidgets import MessageBox
from modules.config import ffpath
from modules.ffmpegApi import FFmpeg
fr... | 17,047 | Python | .py | 296 | 40.462838 | 176 | 0.617463 | wish2333/VideoExtractAndConcat | 8 | 0 | 0 | LGPL-2.1 | 9/5/2024, 10:48:43 PM (Europe/Amsterdam) |
2,289,452 | setting_Interface.py | wish2333_VideoExtractAndConcat/modules/setting_Interface.py | from modules.logger_config import logger
import os
import configparser
from PySide6.QtCore import Qt, QThread, Signal, QObject, QTime
from PySide6.QtGui import QPixmap, QPainter, QColor
from PySide6.QtWidgets import QWidget, QFileDialog, QMessageBox, QListWidgetItem
from qfluentwidgets import MessageBox
from modules.... | 4,341 | Python | .py | 93 | 35.763441 | 98 | 0.672353 | wish2333/VideoExtractAndConcat | 8 | 0 | 0 | LGPL-2.1 | 9/5/2024, 10:48:43 PM (Europe/Amsterdam) |
2,289,453 | __init__.py | wish2333_VideoExtractAndConcat/modules/__init__.py | from PySide6.QtCore import *
from PySide6.QtGui import *
from PySide6.QtWidgets import *
import os
| 99 | Python | .py | 4 | 23.75 | 31 | 0.831579 | wish2333/VideoExtractAndConcat | 8 | 0 | 0 | LGPL-2.1 | 9/5/2024, 10:48:43 PM (Europe/Amsterdam) |
2,289,454 | Ui_VfilterInterface.py | wish2333_VideoExtractAndConcat/modules/Ui_VfilterInterface.py | # -*- coding: utf-8 -*-
################################################################################
## Form generated from reading UI file 'VfilterInterface.ui'
##
## Created by: Qt User Interface Compiler version 6.7.0
##
## WARNING! All changes made in this file will be lost when recompiling UI file!
##########... | 18,840 | Python | .py | 290 | 56.241379 | 219 | 0.750947 | wish2333/VideoExtractAndConcat | 8 | 0 | 0 | LGPL-2.1 | 9/5/2024, 10:48:43 PM (Europe/Amsterdam) |
2,289,455 | logger_config.py | wish2333_VideoExtractAndConcat/modules/logger_config.py | import logging
import logging.handlers
import os
# 日志配置
logger = logging.getLogger(__name__)
logger.setLevel(logging.DEBUG)
if not os.path.exists(r'log'):
os.mkdir(r'log')
file_handler = logging.handlers.RotatingFileHandler(r'log/log.txt', mode='a', encoding='utf-8', maxBytes=1024 * 1024 * 5, backupCount=5)
file... | 706 | Python | .py | 17 | 39.529412 | 136 | 0.781065 | wish2333/VideoExtractAndConcat | 8 | 0 | 0 | LGPL-2.1 | 9/5/2024, 10:48:43 PM (Europe/Amsterdam) |
2,289,456 | Ui_remuxInterface.py | wish2333_VideoExtractAndConcat/modules/Ui_remuxInterface.py | # -*- coding: utf-8 -*-
################################################################################
## Form generated from reading UI file 'remuxInterface.ui'
##
## Created by: Qt User Interface Compiler version 6.7.0
##
## WARNING! All changes made in this file will be lost when recompiling UI file!
############... | 17,046 | Python | .py | 269 | 54.66171 | 139 | 0.746887 | wish2333/VideoExtractAndConcat | 8 | 0 | 0 | LGPL-2.1 | 9/5/2024, 10:48:43 PM (Europe/Amsterdam) |
2,289,457 | vcodec_Interface.py | wish2333_VideoExtractAndConcat/modules/vcodec_Interface.py | from modules.logger_config import logger
import os
from PySide6.QtCore import Qt, QThread, Signal, QObject
from PySide6.QtGui import QPixmap, QPainter, QColor
from PySide6.QtWidgets import QWidget, QFileDialog, QMessageBox
from qfluentwidgets import MessageBox
from modules.config import ffpath
from modules.ffmpegApi ... | 22,456 | Python | .py | 351 | 45.908832 | 237 | 0.615477 | wish2333/VideoExtractAndConcat | 8 | 0 | 0 | LGPL-2.1 | 9/5/2024, 10:48:43 PM (Europe/Amsterdam) |
2,289,458 | ffmpegApi_filter.py | wish2333_VideoExtractAndConcat/modules/ffmpegApi_filter.py | # ffmpegApi.py
# 实现了FFmpeg的命令行接口,可以对视频进行各种操作,如截取、合并、转码、截图等。
import subprocess
import os
from modules.logger_config import logger
import time
import threading
from modules.config import ffpath
import configparser
class FFmpegFilter:
# 初始化函数,用于初始化实例的ffmpeg_path属性
def __init__(
self,
ff... | 9,645 | Python | .py | 186 | 33.360215 | 366 | 0.538536 | wish2333/VideoExtractAndConcat | 8 | 0 | 0 | LGPL-2.1 | 9/5/2024, 10:48:43 PM (Europe/Amsterdam) |
2,289,459 | Ui_aboutInterface.py | wish2333_VideoExtractAndConcat/modules/Ui_aboutInterface.py | # -*- coding: utf-8 -*-
################################################################################
## Form generated from reading UI file 'aboutInterface.ui'
##
## Created by: Qt User Interface Compiler version 6.7.0
##
## WARNING! All changes made in this file will be lost when recompiling UI file!
############... | 13,668 | Python | .py | 210 | 56.704762 | 800 | 0.752684 | wish2333/VideoExtractAndConcat | 8 | 0 | 0 | LGPL-2.1 | 9/5/2024, 10:48:43 PM (Europe/Amsterdam) |
2,289,460 | remuxInterface.py | wish2333_VideoExtractAndConcat/modules/remuxInterface.py |
import os
from PySide6.QtCore import Qt, QThread, Signal, QObject, QTime
from PySide6.QtGui import QPixmap, QPainter, QColor
from PySide6.QtWidgets import QWidget, QFileDialog, QMessageBox, QListWidgetItem
from qfluentwidgets import MessageBox
from modules.config import ffpath
from modules.ffmpegApi import FFmpeg
fr... | 16,077 | Python | .py | 269 | 39.286245 | 173 | 0.596419 | wish2333/VideoExtractAndConcat | 8 | 0 | 0 | LGPL-2.1 | 9/5/2024, 10:48:43 PM (Europe/Amsterdam) |
2,289,461 | Ui_settingInterface.py | wish2333_VideoExtractAndConcat/modules/Ui_settingInterface.py | # -*- coding: utf-8 -*-
################################################################################
## Form generated from reading UI file 'settingInterface.ui'
##
## Created by: Qt User Interface Compiler version 6.7.0
##
## WARNING! All changes made in this file will be lost when recompiling UI file!
##########... | 11,587 | Python | .py | 183 | 54.874317 | 148 | 0.758056 | wish2333/VideoExtractAndConcat | 8 | 0 | 0 | LGPL-2.1 | 9/5/2024, 10:48:43 PM (Europe/Amsterdam) |
2,289,462 | venco_Interface.cpython-311.pyc | wish2333_VideoExtractAndConcat/modules/__pycache__/venco_Interface.cpython-311.pyc | §
[@f¸P ã ó< — d dl Z d dlZd dlmZmZmZmZ d dlmZm Z m
Z
d dlmZm
Z
mZ d dlmZ d dlmZ d dlmZ d dlmZ e j d ej › �¦ « e j d
ej › �¦ « G d„ de¦ « Z G d
„ de¦ « ... | 30,908 | Python | .py | 59 | 522.813559 | 3,657 | 0.286062 | wish2333/VideoExtractAndConcat | 8 | 0 | 0 | LGPL-2.1 | 9/5/2024, 10:48:43 PM (Europe/Amsterdam) |
2,289,463 | ffmpegApi.cpython-311.pyc | wish2333_VideoExtractAndConcat/modules/__pycache__/ffmpegApi.cpython-311.pyc | §
»ÏIf+> ã óT — d dl Z d dlZd dlZd dlZd dlZd dlmZ G d„ d¦ « ZdS )é N)Úffpathc óÜ — e Zd Zej ej ddfd„Zdd„Zd„ Zd„ Z d„ Z
d „ Zd
„ Zd„ Z
dd„Z dd„Z dd„Zd d„Z d!d„Z... | 17,152 | Python | .py | 68 | 251.014706 | 1,242 | 0.322212 | wish2333/VideoExtractAndConcat | 8 | 0 | 0 | LGPL-2.1 | 9/5/2024, 10:48:43 PM (Europe/Amsterdam) |
2,289,464 | __init__.cpython-311.pyc | wish2333_VideoExtractAndConcat/modules/__pycache__/__init__.cpython-311.pyc | §
bV?fg ã ó& |