{'fraction_non_alphanumeric': 0.04075774971297359, 'fraction_numerical': 0.01722158438576349, 'mean_word_length': 4.677524429967427, 'pattern_counts': {'":': 0, '<': 0, '<?xml version=': 0, '>': 0, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
All-optical NRZ-to-RZ data format conversion with optically injected laser diode or semiconductor optical amplifier

By injecting the optical NRZ data into a Fabry-Perot laser diode (FPLD) synchronously modulated at below threshold condition or a semiconductor optical amplifier (SOA) gain-depleted with a backward injected clock stream, the all-optical non-return to zero (NRZ) to return-to-zero (RZ) format conversion of a STM-64 date-stream for synchronous digital hierarchy (SDH) or an OC-192 data stream for synchronous optical network (SONET) in high-speed fiber-optic communication link can be performed. Without the assistance of any complicated RF electronic circuitry, the output RZ data-stream at bit rate of up to 10 Gbit/s is successfully transformed in the optically NRZ injection-locked FPLD, in which the incoming NRZ data induces gain-switching of the FPLD without DC driving current or at below threshold condition. A power penalty of 1.2 dB is measured after NRZ-to-RZ transformation in the FPLD. Alternatively, the all-optical 10Gbits/s NRZ-to-RZ format conversion can also be demonstrated in a semiconductor optical amplifier under a backward dark-optical-comb injection with its duty-cycle 70%, which is obtained by reshaping from the received data clock at 10 GHz. The incoming optical NRZ data-stream is transformed into a pulsed RZ data-stream with its duty-cycle, rms timing jitter, and conversion gain of 15%, 4ps, and 3dB, respectively. In contrast to the FPLD, the SOA based NRZ-to-RZ converter exhibits an enhanced extinction ratio from 7 to 13 dB, and BER of 10-13 at -18.5 dBm. In particular, the power penalty of the received RZ data-stream has greatly improved by 5 dB as compared to that obtained from FPLD.