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_2 = new int [ 121 ] ;
    for ( int var_3 : var_0 ) {
      var_2 [ var_3 ] ++ ;
    }
    int var_5 = 0 ;
    for ( int var_7 = 15 ;
    var_7 < 121 ;
    var_7 ++ ) {
      for ( int var_10 = ( int ) ( var_7 * 0.5 + 8 ) ;
      var_10 <= var_7 ;
      var_10 ++ ) {
        var_5 += var_7 == var_10 ? var_2 [ var_10 ] * ( var_2 [ var_7 ] - 1 ) : var_2 [ var_10 ] * var_2 [ var_7 ] ;
      }
    }
    return var_5 ;
  }
  