comefrom: <awangdev>Count 1 in Binary_2.java
code: public int countOnes(int num) {
          if (num < 0) {
              return 0;
          }
          String bits = Integer.toBinaryString(num);
          char[] bitArray = bits.toCharArray();
          int sum = 0;
          for (int i = 0; i < bitArray.length; i++) {
              sum += Character.getNumericValue(bitArray[i]);
          }
          return sum;
      }
masked: public int sample_funcname ( int var_0 ) {
    if ( var_0 < 0 ) {
      return 0 ;
    }
    String var_1 = Integer . toBinaryString ( var_0 ) ;
    char [ ] var_2 = var_1 . toCharArray ( ) ;
    int var_3 = 0 ;
    for ( int var_4 = 0 ;
    var_4 < var_2 . length ;
    var_4 ++ ) {
      var_3 += Character . getNumericValue ( var_2 [ var_4 ] ) ;
    }
    return var_3 ;
  }
  