Wei-Peng Chen

59 papers A* 5A 5B 7C 2Journal 13Unranked 25
YearRankTypeTitle / Venue / Authors
2025 A conf
CIKM
Lei Liu, So Hasegawa, Shailaja Keyur Sampat, Mehdi Bahrami, Wei-Peng Chen, Kodai Toyota, Takashi Kato, Takumi Akazaki, Akira Ura, Tatsuya Asai
2025 A* conf
AAAI
Anay Majee, Maria Xenochristou, Wei-Peng Chen
2025 J jnl
CoRR
Anay Majee, Maria Xenochristou, Wei-Peng Chen
2024 A* conf
ASE
Lei Liu, So Hasegawa, Shailaja Keyur Sampat, Maria Xenochristou, Wei-Peng Chen, Takashi Kato, Taisei Kakibuchi, Tatsuya Asai
2022 A conf
ICWS
Mehdi Assefi, Mehdi Bahrami, Sarthak Arora, Thiab R. Taha, Hamid R. Arabnia, Khaled M. Rasheed, Wei-Peng Chen
2022 A* conf
ASE
Lei Liu, Wei-Peng Chen, Mehdi Bahrami, Mukul R. Prasad
2022 conf
AutoML
Mehdi Bahrami, Wei-Peng Chen, Lei Liu, Mukul R. Prasad
2021 conf
ACL/IJCNLP (1)
Vardaan Pahuja, Yu Gu, Wenhu Chen, Mehdi Bahrami, Lei Liu, Wei-Peng Chen, Yu Su
2021 J jnl
CoRR
Vardaan Pahuja, Yu Gu, Wenhu Chen, Mehdi Bahrami, Lei Liu, Wei-Peng Chen, Yu Su
2021 J jnl
CoRR
Mehdi Bahrami, N. C. Shrikanth, Yuji Mizobuchi, Lei Liu, Masahiro Fukuyori, Wei-Peng Chen, Kazuki Munakata
2021 J jnl
CoRR
Mehdi Bahrami, N. C. Shrikanth, Shade Ruangwan, Lei Liu, Yuji Mizobuchi, Masahiro Fukuyori, Wei-Peng Chen, Kazuki Munakata, Tim Menzies
2020 conf
SCC
Mehdi Bahrami, Wei-Peng Chen
2020 A* conf
ASE
Lei Liu, Mehdi Bahrami, Wei-Peng Chen
2020 B conf
SMC
Mehdi Bahrami, Mehdi Assefi, Ian Thomas, Wei-Peng Chen, Shridhar Choudhary, Hamid R. Arabnia
2020 A conf
ICWS
Lei Liu, Mehdi Bahrami, Junhee Park, Wei-Peng Chen
2019 conf
IEEE BigData
Mehdi Bahrami, Wei-Peng Chen
2018 conf
WWW (Companion Volume)
Mehdi Bahrami, Junhee Park, Lei Liu, Wei-Peng Chen
2018 A* conf
WWW
Ziyu Yao, Daniel S. Weld, Wei-Peng Chen, Huan Sun
2018 J jnl
CoRR
Ziyu Yao, Daniel S. Weld, Wei-Peng Chen, Huan Sun
2018 J jnl
JOCN
Arash Deylamsalehi, Dylan A. P. Davis, Pegah Afsharlar, Mehdi Bahrami, Wei-Peng Chen, Vinod M. Vokkarane
2017 J jnl
CoRR
Ying Liu, Lei Liu, Wei-Peng Chen
2017 conf
ITSC
Ying Liu, Lei Liu, Wei-Peng Chen
2017 conf
SmartCloud
Mehdi Bahrami, Mukesh Singhal, Wei-Peng Chen
2016 conf
ISGT Europe
Wei-Peng Chen, Daisuke Mashima
2016 C conf
CIT
Wei-Peng Chen, Chuan-Ming Liu
2016 conf
SmartGridComm
Daisuke Mashima, Wei-Peng Chen
2016 conf
WF-IoT
Mohammad-Mahdi Moazzami, Guoliang Xing, Daisuke Mashima, Wei-Peng Chen, Ulrich Herberg
2016 conf
UbiComp Adjunct
Mohammad-Mahdi Moazzami, Daisuke Mashima, Ulrich Herberg, Wei-Peng Chen, Guoliang Xing
2015 J jnl
IEEE Trans. Commun.
Ahmed R. Elsherif, Wei-Peng Chen, Akira Ito, Zhi Ding
2015 C conf
IECON
Kasun Amarasinghe, Dumidu Wijayasekara, Howard J. Carey, Milos Manic, Dawei He, Wei-Peng Chen
2015 J jnl
IEEE J. Sel. Areas Commun.
Ahmed R. Elsherif, Wei-Peng Chen, Akira Ito, Zhi Ding
2014 conf
ISGT
Daisuke Mashima, Ulrich Herberg, Wei-Peng Chen
2013 conf
ICC
Ahmed R. Elsherif, Wei-Peng Chen, Akira Ito, Zhi Ding
2013 conf
SEGS@CCS
Gaurav Lahoti, Daisuke Mashima, Wei-Peng Chen
2013 B conf
PIMRC
Ahmed R. Elsherif, Wei-Peng Chen, Akira Ito, Zhi Ding
2013 conf
ISGT
Sankaranarayanan Subbayya, Jorjeta G. Jetcheva, Wei-Peng Chen
2012 conf
ICCVE
Mostafa Majidpour, Wei-Peng Chen
2011 conf
CoNLL Shared Task
Wei-Peng Chen, Muyu Zhang, Bing Qin
2011 conf
WWIC
Wei-Peng Chen, Chenxi Zhu, Takao Naito
2011 B conf
PIMRC
Wei-Peng Chen
2010 B conf
GLOBECOM
Vishwanath Ramamurthi, Wei-Peng Chen
2010 conf
BWCCA
Vishwanath Ramamurthi, Wei-Peng Chen
2008 conf
WICON
Hui Zeng, Chenxi Zhu, Wei-Peng Chen
2007 A conf
MSWiM
Guanghui He, Jennifer C. Hou, Wei-Peng Chen, Takeo Hamada
2007 B conf
GLOBECOM
Guanghui He, Jennifer C. Hou, Wei-Peng Chen, Takeo Hamada
2007 conf
ICC
Wei-Peng Chen, Steven Licking, Takashi Ohno, Satoshi Okuyama, Takeo Hamada
2006 J jnl
IEEE Wirel. Commun.
Ahmed Sobeih, Jennifer C. Hou, Lu-Chuan Kung, Ning Li, Honghai Zhang, Wei-Peng Chen, Hung-Ying Tyan, Hyuk Lim
2005 ch.
Handbook of Sensor Networks
Wei-Peng Chen, Jennifer C. Hou
2005 conf
Annual Simulation Symposium
Ahmed Sobeih, Wei-Peng Chen, Jennifer C. Hou, Lu-Chuan Kung, Ning Li, Hyuk Lim, Hung-Ying Tyan, Honghai Zhang
2004
Wei-Peng Chen
2004 conf
IPSN
Wei-Peng Chen, Lui Sha
2004 J jnl
IEEE Trans. Mob. Comput.
Wei-Peng Chen, Jennifer C. Hou, Lui Sha
2003 conf
IPSN
Qixin Wang, Wei-Peng Chen, Rong Zheng, Kihwal Lee, Lui Sha
2003 B conf
ICNP
Wei-Peng Chen, Jennifer C. Hou, Lui Sha
2002 B conf
GLOBECOM
Wei-Peng Chen, Jennifer C. Hou
2002 conf
MWCN
Wei-Peng Chen, Jennifer C. Hou
2002 J jnl
Wirel. Commun. Mob. Comput.
Wei-Peng Chen, Yung-Ching Hsiao, Jennifer C. Hou, Ye Ge, Michael P. Fitz
2001 A conf
ICDCS
Chunlei Liu, Ye Ge, Michael P. Fitz, Jennifer C. Hou, Wei-Peng Chen, Raj Jain
1997 J jnl
IEEE Trans. Speech Audio Process.
Hsin-Min Wang, Tai-Hsuan Ho, Rung-Chiung Yang, Jia-Lin Shen, Bo-Ren Bai, Jenn-Chau Hong, Wei-Peng Chen, Tong-Lo Yu, Lin-Shan Lee
redb/utils/wrapper_run_sort_files.py
← Index redb/utils/wrapper_run_sort_files.py python
import os
import subprocess
import multiprocessing
import logging
from concurrent.futures import ThreadPoolExecutor
import signal

# Variables (replace these with actual values)
src_root_folder_path = "/mnt/samples/consilience/malware/vx-bazaar-expanded/"
dst_root_folder_path = "/mnt/samples/consilience/malware/_sorted_samples/vx-bazaar/"
log_folder_path = "/mnt/samples/consilience/malware/ops-logs/"
folder_names = ["Bazaar.2022.01", "Bazaar.2022.02", "Bazaar.2022.03", "Bazaar.2022.04"]  # List of folder names
script_name = "sort_files_by_type.py"
dry_run = True  # Set to True for testing without execution


# Ensure the log folder exists
os.makedirs(log_folder_path, exist_ok=True)

# Configure logging
main_log_name = "20241229-main_script.log"
main_log_file = os.path.join(log_folder_path, main_log_name)
if not os.path.exists(main_log_file):
    open(main_log_file, 'a').close()  # Create the log file if it doesn't exist
# main_log_file = os.path.join(log_folder_path, main_log_name)
# try:
#     with open(main_log_file, 'a') as f:
#         print(f"Successfully created/opened log file at: {main_log_file}")
#     # Verify the file exists
#     if os.path.exists(main_log_file):
#         print(f"Confirmed log file exists at: {main_log_file}")
#         print(f"File size: {os.path.getsize(main_log_file)} bytes")
# except Exception as e:
#     print(f"Error with log file: {e}")

# Configure logging
logging.basicConfig(
    filename=main_log_file,
    level=logging.INFO,
    format="%(asctime)s - %(levelname)s - %(message)s",
    force=True,
    filemode='a'
)

logging.info("Logging initialization test message")

# Add logging handler to flush immediately
class FlushableFileHandler(logging.FileHandler):
    def emit(self, record):
        super().emit(record)
        self.flush()

for handler in logging.getLogger().handlers:
    if isinstance(handler, logging.FileHandler):
        handler.flush()

# Global flag for graceful termination
terminate_flag = False

def signal_handler(signum, frame):
    global terminate_flag
    terminate_flag = True
    logging.warning("Termination signal received. Attempting to shut down gracefully.")

# Register signal handler
signal.signal(signal.SIGINT, signal_handler)
signal.signal(signal.SIGTERM, signal_handler)

# Define the worker function
def process_folder(folder):
    global terminate_flag
    if terminate_flag:
        logging.warning(f"Skipping folder {folder} due to termination signal.")
        return

    try:
        # Extract the word and date fields from the folder name
        word, year, month = folder.split('.')

        # Construct source, destination, and log paths
        src_folder = os.path.join(src_root_folder_path, folder)
        dst_folder = os.path.join(dst_root_folder_path, folder)
        log_file = os.path.join(
            log_folder_path, f"20241229-SORT_FILES-bazaar_{year}.{month}.output.log"
        )

        if not os.path.exists(log_file):
            open(log_file, 'a').close()  # Create the log file if it doesn't exist

        # Build the command
        command = ["python3", script_name, src_folder, dst_folder]

        if dry_run:
            logging.info(f"Dry run: Would execute: {command}, log: {log_file}")
            print(f"Dry run: Would execute: {command}, log: {log_file}")
        else:
            logging.info(f"Starting task for folder: {folder}")
            with open(log_file, "w") as log:
                subprocess.run(command, stdout=log, stderr=subprocess.STDOUT, check=True)
            logging.info(f"Task completed for folder: {folder}")

    except subprocess.CalledProcessError as e:
        logging.error(f"Subprocess failed for folder {folder} with return code {e.returncode}: {e}")
        print(f"Subprocess failed for folder {folder}: {e}")
    except Exception as e:
        logging.error(f"Error while processing folder {folder}: {e}")
        print(f"Error while processing folder {folder}: {e}")

# Determine the number of processors
num_processors = multiprocessing.cpu_count()

try:
    # Process folders using ThreadPoolExecutor
    with ThreadPoolExecutor(max_workers=num_processors-1) as executor:
        executor.map(process_folder, folder_names)

except Exception as e:
    logging.critical(f"Critical error in the main execution: {e}")
    print(f"Critical error: {e}")

logging.info("All tasks completed.")
print("All tasks completed.")