<commit_before><?php
/**
* Adds service field to the page list in admin table, makes service field bulk and quick editable
*/

function check_some_other_plugin() {
  if ( is_plugin_active('advanced-custom-fields/acf.php') ) {
      // Add the custom columns header "service" to the page psot type:
      add_filter( 'manage_page_posts_columns', 'set_custom_edit_page_columns' );
      function set_custom_edit_page_columns($columns) {
          if (!isset($columns['service_offering']))
                      $columns['service_offering'] = "Service";

          return $columns;
      }

      // Add the service field data to the custom columns for service
      add_action( 'manage_page_posts_custom_column' , 'custom_page_column', 10, 2 );
      function custom_page_column( $column, $post_ID ) {
          if ($column == 'service_offering') {
              $service = get_post_meta($post_ID, 'service_offering', TRUE);
              if ($service) {
                echo '<div id="service_offering-' . $post_ID . '">' . $service . '</div>';
              }
              else {
                echo '—';
              }
          }
      }

      // Add the field for service to the bulk and quick edit screens (same function for both actions)
      add_action( 'bulk_edit_custom_box', 'add_service_to_bulk_quick_edit_custom_box', 10, 2 );
      add_action( 'quick_edit_custom_box', 'add_service_to_bulk_quick_edit_custom_box', 10, 2 );
      function add_service_to_bulk_quick_edit_custom_box( $column_name, $post_type ) {
         switch ( $post_type ) {
            case 'page':

               switch( $column_name ) {
                  case 'service_offering':
                     ?><fieldset class="inline-edit-col-right" style="width: 100%; dispaly: block; margin-top: 5px">
                        <div class="inline-edit-group" style="padding-left: 5px;">
                           <label>
                              <span class="title">Service</span><br />
                              <input type="text" name="service_offering" value="" />
                           </label>
                        </div>
                     </fieldset><?php
                     break;<commit_msg>[ITC-1070] tweaks for the live site display<commit_after><?php
/**
* Adds service field to the page list in admin table, makes service field bulk and quick editable
*/

function check_some_other_plugin() {
  if ( is_plugin_active('advanced-custom-fields/acf.php') ) {
      // Add the custom columns header "service" to the page psot type:
      add_filter( 'manage_page_posts_columns', 'set_custom_edit_page_columns' );
      function set_custom_edit_page_columns($columns) {
          if (!isset($columns['service_offering']))
                      $columns['service_offering'] = "Service";

          return $columns;
      }

      // Add the service field data to the custom columns for service
      add_action( 'manage_page_posts_custom_column' , 'custom_page_column', 10, 2 );
      function custom_page_column( $column, $post_ID ) {
          if ($column == 'service_offering') {
              $service = get_post_meta($post_ID, 'service_offering', TRUE);
              if ($service) {
                echo '<div id="service_offering-' . $post_ID . '">' . $service . '</div>';
              }
              else {
                echo '—';
              }
          }
      }

      // Add the field for service to the bulk and quick edit screens (same function for both actions)
      add_action( 'bulk_edit_custom_box', 'add_service_to_bulk_quick_edit_custom_box', 10, 2 );
      add_action( 'quick_edit_custom_box', 'add_service_to_bulk_quick_edit_custom_box', 10, 2 );
      function add_service_to_bulk_quick_edit_custom_box( $column_name, $post_type ) {
         switch ( $post_type ) {
            case 'page':

               switch( $column_name ) {
                  case 'service_offering':
                     ?><fieldset class="inline-edit-col-right" style="width: 100%; dispaly: block; margin-top: 2px">
                        <div class="inline-edit-group" style="padding-left: 5px;">
                           <label>
                              <span class="title">Service</span>
                              <input type="text" name="service_offering" value="" />
                           </label>
                        </div>
                     </fieldset><?php
                     break;
{'fraction_non_alphanumeric': 0.11281588447653429, 'fraction_numerical': 0.007220216606498195, 'mean_word_length': 1.9871967654986522, 'pattern_counts': {'":': 0, '<': 30, '<?xml version=': 0, '>': 28, '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': '5100977', 'n_tokens_mistral': 1280, 'n_tokens_neox': 1214, 'n_words': 293}