comefrom: <gouthampradhan>math_SolveTheEquation_1.java
code: private int[] calculate(String num, boolean isNeg, int xSum, int rest) {
      int[] A = new int[2];
      if (num.contains("x")) {
        num = num.substring(0, num.length() - 1);
        if (isNeg) {
          xSum -= num.isEmpty() ? 1 : Integer.parseInt(num);
        } else {
          xSum += num.isEmpty() ? 1 : Integer.parseInt(num);
        }
      } else {
        if (isNeg) {
          rest -= Integer.parseInt(num);
        } else {
          rest += Integer.parseInt(num);
        }
      }
      A[0] = xSum;
      A[1] = rest;
      return A;
    }
masked: private int [ ] sample_funcname ( String var_0 , boolean var_1 , int var_2 , int var_3 ) {
    int [ ] var_4 = new int [ 2 ] ;
    if ( var_0 . contains ( "x" ) ) {
      var_0 = var_0 . substring ( 0 , var_0 . length ( ) - 1 ) ;
      if ( var_1 ) {
        var_2 -= var_0 . isEmpty ( ) ? 1 : Integer . parseInt ( var_0 ) ;
      }
      else {
        var_2 += var_0 . isEmpty ( ) ? 1 : Integer . parseInt ( var_0 ) ;
      }
    }
    else {
      if ( var_1 ) {
        var_3 -= Integer . parseInt ( var_0 ) ;
      }
      else {
        var_3 += Integer . parseInt ( var_0 ) ;
      }
    }
    var_4 [ 0 ] = var_2 ;
    var_4 [ 1 ] = var_3 ;
    return var_4 ;
  }
  