original_string: protected function get_fragments_glue_placeholders($fragments) {
          $fragmentscount = count($fragments);
          if ($fragmentscount <= 1) {
              return [];
          }
          $prefix = '[[$';
          $postfix = ']]';
          $text = join('', $fragments);
          while (preg_match('/' . preg_quote($prefix, '/') . '\\d+' . preg_quote($postfix, '/') . '/', $text)) {
              $prefix .= '$';
          }
          $glues = [];
          for ($i = 1; $i < $fragmentscount; $i++) {
              $glues[$i] = $prefix . $i . $postfix;
          }
          return $glues;
      }
code: protected function get_fragments_glue_placeholders($fragments) {
          $fragmentscount = count($fragments);
          if ($fragmentscount <= 1) {
              return [];
          }
          $prefix = '[[$';
          $postfix = ']]';
          $text = join('', $fragments);
          while (preg_match('/' . preg_quote($prefix, '/') . '\\d+' . preg_quote($postfix, '/') . '/', $text)) {
              $prefix .= '$';
          }
          $glues = [];
          for ($i = 1; $i < $fragmentscount; $i++) {
              $glues[$i] = $prefix . $i . $postfix;
          }
          return $glues;
      }
code_tokens: protected function get_fragments_glue_placeholders ( $ fragments ) { $ fragmentscount = count ( $ fragments ) ; if ( $ fragmentscount <= 1 ) { return [ ] ; } $ prefix = '[[$' ; $ postfix = ']]' ; $ text = join ( '' , $ fragments ) ; while ( preg_match ( '/' . preg_quote ( $ prefix , '/' ) . '\\d+' . preg_quote ( $ postfix , '/' ) . '/' , $ text ) ) { $ prefix .= '$' ; } $ glues = [ ] ; for ( $ i = 1 ; $ i < $ fragmentscount ; $ i ++ ) { $ glues [ $ i ] = $ prefix . $ i . $ postfix ; } return $ glues ; }
docstring: Find strings that we can use to glue the fragments with
  
  These strings have to be all different and neither of them can be present in the text
  
  @param array $fragments
  @return array array with indexes from 1 to count($fragments)-1
docstring_tokens: Find strings that we can use to glue the fragments with