comefrom: <gouthampradhan>string_StringCompression_1.java
code: public int compress(char[] chars) {
      int count = 0;
      int i = 0;
      int p = 0;
      for (int j = 0; j < chars.length; j++) {
        if (chars[i] == chars[j]) {
          count++;
        } else {
          chars[p] = chars[i];
          p++;
          if (count > 1) {
            String countStr = String.valueOf(count);
            for (int l = 0; l < countStr.length(); l++) {
              chars[p++] = countStr.charAt(l);
            }
          }
          i = j;
          count = 1;
        }
      }
      chars[p] = chars[i];
      p++;
      if (count > 1) {
        String countStr = String.valueOf(count);
        for (int l = 0; l < countStr.length(); l++) {
          chars[p++] = countStr.charAt(l);
        }
      }
      return p;
    }
masked: public int sample_funcname ( char [ ] var_0 ) {
    int var_1 = 0 ;
    int var_2 = 0 ;
    int var_3 = 0 ;
    for ( int var_4 = 0 ;
    var_4 < var_0 . length ;
    var_4 ++ ) {
      if ( var_0 [ var_2 ] == var_0 [ var_4 ] ) {
        var_1 ++ ;
      }
      else {
        var_0 [ var_3 ] = var_0 [ var_2 ] ;
        var_3 ++ ;
        if ( var_1 > 1 ) {
          String var_5 = String . valueOf ( var_1 ) ;
          for ( int var_6 = 0 ;
          var_6 < var_5 . length ( ) ;
          var_6 ++ ) {
            var_0 [ var_3 ++ ] = var_5 . charAt ( var_6 ) ;
          }
        }
        var_2 = var_4 ;
        var_1 = 1 ;
      }
    }
    var_0 [ var_3 ] = var_0 [ var_2 ] ;
    var_3 ++ ;
    if ( var_1 > 1 ) {
      String var_5 = String . valueOf ( var_1 ) ;
      for ( int var_6 = 0 ;
      var_6 < var_5 . length ( ) ;
      var_6 ++ ) {
        var_0 [ var_3 ++ ] = var_5 . charAt ( var_6 ) ;
      }
    }
    return var_3 ;
  }
  