comefrom: <awangdev>Friends Of Appropriate Ages_1.java
code: public int numFriendRequests(int[] ages) {
          int[] count = new int[121];
          for (int age: ages) {
              count[age]++;
          }
          int rst = 0;
          for (int i = 15; i < 121; i++) {
              for (int j = (int)(i * 0.5 + 8); j <= i; j++) {
                  rst += i == j ? count[j] * (count[i] - 1) : count[j] * count[i];
              }
          }
          return rst;
      }
masked: public int sample_funcname ( int [ ] var_0 ) {
    int [ ] var_1 = new int [ 121 ] ;
    for ( int var_2 : var_0 ) {
      var_1 [ var_2 ] ++ ;
    }
    int var_3 = 0 ;
    for ( int var_4 = 15 ;
    var_4 < 121 ;
    var_4 ++ ) {
      for ( int var_5 = ( int ) ( var_4 * 0.5 + 8 ) ;
      var_5 <= var_4 ;
      var_5 ++ ) {
        var_3 += var_4 == var_5 ? var_1 [ var_5 ] * ( var_1 [ var_4 ] - 1 ) : var_1 [ var_5 ] * var_1 [ var_4 ] ;
      }
    }
    return var_3 ;
  }
  