<commit_before><?php

    class Exp extends Page {
        
        public static $arg_list = array(

            // Filters
            'CONTAINERID' => '\d+',
            'BLSAMPLEID' => '\d+',


            // Replacement for DiffractionPlan in various tables
            'DATACOLLECTIONPLANID' => '\d+',


            // DiffractionPlan (=>DataCollectionPlan)
            'DIFFRACTIONPLANID' => '\d+',
            'BLSAMPLEID' => '\d+',
            'EXPERIMENTKIND' => '\w+',
            'EXPOSURETIME' => '\d+(.\d+)?',
            'REQUIREDRESOLUTION' => '\d+(.\d+)?',
            'PREFERREDBEAMSIZEX' => '\d+',
            'PREFERREDBEAMSIZEY' => '\d+',
            'BOXSIZEX' => '\d+',
            'BOXSIZEY' => '\d+',
            'NUMBEROFIMAGES' => '\d+',
            'AXISSTART' => '-?\d+(.\d+)?',
            'AXISRANGE' => '\d+(.\d+)?',
            'TRANSMISSION' => '\d+(.\d+)?',
            'ENERGY' => '\d+(.\d+)?',
            'MONOCHROMATOR' => '\w+',
            'MONOBANDWIDTH' => '\d+(.\d+)?',
            'COMMENTS' => '.*',
            'PLANORDER' => '\d+',


            // Detector
            'DETECTORID' => '\d+',
            'DETECTORTYPE' => '[\w-]+',
            'DETECTORMANUFACTURER' => '[\w-]+',
            'DETECTORMODEL' => '[\w-]+',
            'DETECTORPIXELSIZEHORIZONTAL' => '\d+',
            'DETECTORPIXELSIZEVERTICAL' => '\d+',
            'DETECTORDISTANCEMIN' => '\d+',
            'DETECTORDISTANCEMAX' => '\d+',
            'DENSITY' => '\d+(.\d+)?',
            'COMPOSITION' => '\w+',


            // Scan Param Service
            'SCANPARAMETERSSERVICEID' => '\d+',
            'NAME' => '[\w|\s|-]+',
            'DESCRIPTION' => '.*',


            // Scan Param Model
            'SCANPARAMETERSMODELID' => '\d+',
            'SEQUENCENUMBER' => '\d+',
            'START' => '\d+(.\d+)?',
            'STOP' => '\d+(.\d+)?',
            'STEP' => '\d+(.\d+)?',
            'ARRAY' => '[\d+(.\d+)?)\s,]+',

            
            // DCPlan has Detector
            'DATACOLLECTIONPLANHASDETECTORID' => '\d+',
            'EXPOSURETIME' => '\d+(.\d+)?',
            'DISTANCE' => '\d+(.\d+)?',
            'ROLL' => '\d+(.\d+)?',

        );
        
        
        public static $dispatch = array(
            array('/plans(/:DIFFRACTIONPLANID)', 'get', '_get_diffraction_plans'),
            array('/plans', 'post', '_add_diffraction_plan'),
            array('/plans/:DIFFRACTIONPLANID', 'patch', '_update_diffraction_plan'),
            array('/plans/:DIFFRACTIONPLANID', 'delete', '_delete_diffraction_plan'),

            array('/detectors(:DETECTORID)', 'get', '_detectors'),
            array('/detectors', 'post', '_add_detector'),<commit_msg>fix single detector route<commit_after><?php

    class Exp extends Page {
        
        public static $arg_list = array(

            // Filters
            'CONTAINERID' => '\d+',
            'BLSAMPLEID' => '\d+',


            // Replacement for DiffractionPlan in various tables
            'DATACOLLECTIONPLANID' => '\d+',


            // DiffractionPlan (=>DataCollectionPlan)
            'DIFFRACTIONPLANID' => '\d+',
            'BLSAMPLEID' => '\d+',
            'EXPERIMENTKIND' => '\w+',
            'EXPOSURETIME' => '\d+(.\d+)?',
            'REQUIREDRESOLUTION' => '\d+(.\d+)?',
            'PREFERREDBEAMSIZEX' => '\d+',
            'PREFERREDBEAMSIZEY' => '\d+',
            'BOXSIZEX' => '\d+',
            'BOXSIZEY' => '\d+',
            'NUMBEROFIMAGES' => '\d+',
            'AXISSTART' => '-?\d+(.\d+)?',
            'AXISRANGE' => '\d+(.\d+)?',
            'TRANSMISSION' => '\d+(.\d+)?',
            'ENERGY' => '\d+(.\d+)?',
            'MONOCHROMATOR' => '\w+',
            'MONOBANDWIDTH' => '\d+(.\d+)?',
            'COMMENTS' => '.*',
            'PLANORDER' => '\d+',


            // Detector
            'DETECTORID' => '\d+',
            'DETECTORTYPE' => '[\w-]+',
            'DETECTORMANUFACTURER' => '[\w-]+',
            'DETECTORMODEL' => '[\w-]+',
            'DETECTORPIXELSIZEHORIZONTAL' => '\d+',
            'DETECTORPIXELSIZEVERTICAL' => '\d+',
            'DETECTORDISTANCEMIN' => '\d+',
            'DETECTORDISTANCEMAX' => '\d+',
            'DENSITY' => '\d+(.\d+)?',
            'COMPOSITION' => '\w+',


            // Scan Param Service
            'SCANPARAMETERSSERVICEID' => '\d+',
            'NAME' => '[\w|\s|-]+',
            'DESCRIPTION' => '.*',


            // Scan Param Model
            'SCANPARAMETERSMODELID' => '\d+',
            'SEQUENCENUMBER' => '\d+',
            'START' => '\d+(.\d+)?',
            'STOP' => '\d+(.\d+)?',
            'STEP' => '\d+(.\d+)?',
            'ARRAY' => '[\d+(.\d+)?)\s,]+',

            
            // DCPlan has Detector
            'DATACOLLECTIONPLANHASDETECTORID' => '\d+',
            'EXPOSURETIME' => '\d+(.\d+)?',
            'DISTANCE' => '\d+(.\d+)?',
            'ROLL' => '\d+(.\d+)?',

        );
        
        
        public static $dispatch = array(
            array('/plans(/:DIFFRACTIONPLANID)', 'get', '_get_diffraction_plans'),
            array('/plans', 'post', '_add_diffraction_plan'),
            array('/plans/:DIFFRACTIONPLANID', 'patch', '_update_diffraction_plan'),
            array('/plans/:DIFFRACTIONPLANID', 'delete', '_delete_diffraction_plan'),

            array('/detectors(/:DETECTORID)', 'get', '_detectors'),
            array('/detectors', 'post', '_add_detector'),
{'fraction_non_alphanumeric': 0.22980680772769088, 'fraction_numerical': 0.0, 'mean_word_length': 1.5509150633505397, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 93, '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': '6252398', 'n_tokens_mistral': 1873, 'n_tokens_neox': 1850, 'n_words': 274}