<commit_before># Part of the pfile-tools package
# Copyright (c) 2012, Board of Regents of the University of Wisconsin
# Written by <NAME> <<EMAIL>>
#
# Contains the ctypes Structure for a GE P-file header.

from ctypes import *


class R20PfileHeader(LittleEndianStructure):
    _pack_ = 1

    _fields_ = [
        ('revision', c_float),
        ('pad_0', c_char * 12),
        ('scan_date', c_char * 10),
        ('scan_time', c_char * 8),
        ('pad_1', c_char * 30),
        ('pass_count', c_short),
        ('pad_2', c_char * 2),
        ('slice_count', c_ushort),
        ('echo_count', c_short),
        ('pad_3', c_char * 2),
        ('frame_count', c_short),
        ('pad_4', c_char * 4),
        ('frame_size', c_ushort),
        ('pad_5', c_char * 20),
        ('acq_x_res', c_ushort),
        ('acq_y_Res', c_short),
        ('recon_x_res', c_short),
        ('recon_y_res', c_short),
        ('image_size', c_short),
        ('recon_z_res', c_int),
        ('pad_6', c_char * 100),
        ('rh_user_0', c_float),
        ('rh_user_1', c_float),<commit_msg>Slightly clarify a field names.<commit_after># Part of the pfile-tools package
# Copyright (c) 2012, Board of Regents of the University of Wisconsin
# Written by <NAME> <<EMAIL>>
#
# Contains the ctypes Structure for a GE P-file header.

from ctypes import *


class R20PfileHeader(LittleEndianStructure):
    _pack_ = 1

    _fields_ = [
        ('revision', c_float),
        ('pad_0', c_char * 12),
        ('scan_date_str', c_char * 10),
        ('scan_time_str', c_char * 8),
        ('pad_1', c_char * 30),
        ('pass_count', c_short),
        ('pad_2', c_char * 2),
        ('slice_count', c_ushort),
        ('echo_count', c_short),
        ('pad_3', c_char * 2),
        ('frame_count', c_short),
        ('pad_4', c_char * 4),
        ('frame_size', c_ushort),
        ('pad_5', c_char * 20),
        ('acq_x_res', c_ushort),
        ('acq_y_Res', c_short),
        ('recon_x_res', c_short),
        ('recon_y_res', c_short),
        ('image_size', c_short),
        ('recon_z_res', c_int),
        ('pad_6', c_char * 100),
        ('rh_user_0', c_float),
        ('rh_user_1', c_float),
{'fraction_non_alphanumeric': 0.16038602941176472, 'fraction_numerical': 0.02849264705882353, 'mean_word_length': 2.5, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 9, '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}}
{'dir': 'git-commits-cleaned', 'id': '6681562', 'n_tokens_mistral': 846, 'n_tokens_neox': 789, 'n_words': 189}