nus-yam/ex-repair huggingface dataset:
Program: 54534
Project: 54534
Buggy source:
private String getFileFromClassPath(String filename){
  InputStream in=null;
  try {
    in=getClass().getClassLoader().getResourceAsStream(filename);
    try {
      if (in == null) {
        err.println("String_Node_Str" + filename);
        System.exit(-1);
      }
      StringWriter sw=new StringWriter();
      int ch;
      while ((ch=in.read()) != -1) {
        sw.write(ch);
      }
      return sw.toString();
    }
  finally {
      if (in != null) {
        in.close();
      }
    }
  }
 catch (  IOException e) {
    throw new RuntimeException(e);
  }
}

Fixed version (ground truth):
private String getFileFromClassPath(String filename){
  InputStream in=null;
  try {
    in=getClass().getClassLoader().getResourceAsStream(filename);
    try {
      if (in == null) {
        throw new RuntimeException("String_Node_Str" + filename);
      }
      StringWriter sw=new StringWriter();
      int ch;
      while ((ch=in.read()) != -1) {
        sw.write(ch);
      }
      return sw.toString();
    }
  finally {
      if (in != null) {
        in.close();
      }
    }
  }
 catch (  IOException e) {
    throw new RuntimeException(e);
  }
}
Program: 54535
Project: 54535
Buggy source:
private static void split(String[] files) throws IOException {
  BufferedReader reader=null;
  String prefix=null;
  File inputFile=null;
  for (int i=0; i < files.length; i++) {
    if (reader != null) {
      reader.close();
    }
    String file=files[i];
    inputFile=new File(file);
    if (!inputFile.exists()) {
      System.err.println("String_Node_Str" + inputFile.getPath());
      return;
    }
    reader=new BufferedReader(new FileReader(inputFile));
    File outFile=null;
    PrintWriter writer=null;
    String line=reader.readLine();
    while (line != null) {
      if (prefix == null) {
        prefix=line.trim();
        if (prefix.length() == 0) {
          prefix=null;
        }
      }
 else       if (line.startsWith(prefix)) {
        if (writer != null) {
          writer.close();
        }
        String outPath=line.substring(prefix.length()).trim();
        outFile=new File(outPath);
        if (!outFile.isAbsolute()) {
          File absoluteParentDir=inputFile.getCanonicalFile().getParentFile();
          outFile=new File(absoluteParentDir,outPath);
          outFile.getParentFile().mkdirs();
        }
        writer=new PrintWriter(new FileWriter(outFile),true);
        writer.println("String_Node_Str");
      }
 else       if (writer != null) {
        writer.println(line);
      }
 else {
      }
      line=reader.readLine();
    }
    if (writer != null) {
      writer.close();
    }
  }
}

Fixed version (ground truth):
private static void split(String[] files) throws IOException {
  String prefix=null;
  File inputFile=null;
  for (int i=0; i < files.length; i++) {
    BufferedReader reader=null;
    try {
      String file=files[i];
      inputFile=new File(file);
      if (!inputFile.exists()) {
        System.err.println("String_Node_Str" + inputFile.getPath());
        return;
      }
      reader=new BufferedReader(new FileReader(inputFile));
      File outFile=null;
      PrintWriter writer=null;
      String line=reader.readLine();
      while (line != null) {
        if (prefix == null) {
          prefix=line.trim();
          if (prefix.length() == 0) {
            prefix=null;
          }
        }
 else         if (line.startsWith(prefix)) {
          if (writer != null) {
            writer.close();
          }
          String outPath=line.substring(prefix.length()).trim();
          outFile=new File(outPath);
          if (!outFile.isAbsolute()) {
            File absoluteParentDir=inputFile.getCanonicalFile().getParentFile();
            outFile=new File(absoluteParentDir,outPath);
            outFile.getParentFile().mkdirs();
          }
          writer=new PrintWriter(new FileWriter(outFile),true);
          writer.println("String_Node_Str");
        }
 else         if (writer != null) {
          writer.println(line);
        }
 else {
        }
        line=reader.readLine();
      }
      if (writer != null) {
        writer.close();
      }
    }
  finally {
      if (reader != null) {
        reader.close();
      }
    }
  }
}
Program: 54536
Project: 54536
Buggy source:
/** 
 * Determines whether or not the URL is relative.
 * @param src the test url
 * @return <code>true</code> if the URL is relative, <code>false</code> if not
 */
@SuppressWarnings("String_Node_Str") protected static boolean isRelativeURL(String src){
  if (src.startsWith("String_Node_Str")) {
    return false;
  }
  try {
    URL testUrl=new URL(src);
    return false;
  }
 catch (  MalformedURLException e) {
  }
  return true;
}

Fixed version (ground truth):
/** 
 * Determines whether or not the URL is relative.
 * @param src the test url
 * @return <code>true</code> if the URL is relative, <code>false</code> if not
 */
@SuppressWarnings("String_Node_Str") protected static boolean isRelativeURL(String src){
  if (src.startsWith("String_Node_Str")) {
    return false;
  }
  try {
    new URL(src);
    return false;
  }
 catch (  MalformedURLException e) {
  }
  return true;
}
Program: 54537
Project: 54537
Buggy source:
private void writeArtifactToFile(TreeLogger logger,EmittedArtifact artifact,File outFile,Set<String> createdDirs) throws UnableToCompleteException {
  if (!outFile.exists() || (outFile.lastModified() <= artifact.getLastModified())) {
    mkdirs(outFile.getParentFile(),createdDirs);
    try {
      FileOutputStream out=new FileOutputStream(outFile);
      artifact.writeTo(logger,out);
      out.close();
    }
 catch (    IOException e) {
      logger.log(TreeLogger.ERROR,"String_Node_Str" + outFile.getAbsolutePath() + "String_Node_Str",e);
      throw new UnableToCompleteException();
    }
    outFile.setLastModified(artifact.getLastModified());
  }
}

Fixed version (ground truth):
private void writeArtifactToFile(TreeLogger logger,EmittedArtifact artifact,File outFile,Set<String> createdDirs) throws UnableToCompleteException {
  if (!outFile.exists() || (outFile.lastModified() <= artifact.getLastModified())) {
    if (!mkdirs(outFile.getParentFile(),createdDirs)) {
      logger.log(TreeLogger.ERROR,"String_Node_Str" + outFile.getAbsolutePath() + "String_Node_Str");
    }
 else {
      try {
        FileOutputStream out=new FileOutputStream(outFile);
        artifact.writeTo(logger,out);
        out.close();
      }
 catch (      IOException e) {
        logger.log(TreeLogger.ERROR,"String_Node_Str" + outFile.getAbsolutePath() + "String_Node_Str",e);
        throw new UnableToCompleteException();
      }
      outFile.setLastModified(artifact.getLastModified());
    }
  }
}
Program: 54538
Project: 54538
Buggy source:
/** 
 * A faster bulk version of   {@link File#mkdirs()} that takes advantage ofcached state to avoid a lot of file system access.
 */
private static void mkdirs(File dir,Set<String> createdDirs){
  if (dir == null) {
    return;
  }
  String path=dir.getPath();
  if (createdDirs.contains(path)) {
    return;
  }
  if (!dir.exists()) {
    mkdirs(dir.getParentFile(),createdDirs);
    dir.mkdir();
  }
  createdDirs.add(path);
}

Fixed version (ground truth):
/** 
 * A faster bulk version of   {@link File#mkdirs()} that takes advantage ofcached state to avoid a lot of file system access.
 */
private static boolean mkdirs(File dir,Set<String> createdDirs){
  if (dir == null) {
    return true;
  }
  String path=dir.getPath();
  if (createdDirs.contains(path)) {
    return true;
  }
  if (!dir.exists()) {
    if (!mkdirs(dir.getParentFile(),createdDirs)) {
      return false;
    }
    if (!dir.mkdir()) {
      return false;
    }
  }
  createdDirs.add(path);
  return true;
}
Program: 54539
Project: 54539
Buggy source:
/** 
 * Used to record dependencies of a program.
 * @param jprogram
 * @param workDir
 * @param permutationId
 * @param logger
 * @return The file that the dependencies are recorded in
 */
public File recordDependencies(JProgram jprogram,File workDir,int permutationId,TreeLogger logger){
  logger=logger.branch(TreeLogger.INFO,"String_Node_Str");
  ControlFlowAnalyzer dependencyAnalyzer=new ControlFlowAnalyzer(jprogram);
  dependencyAnalyzer.setDependencyRecorder(this);
  File appendDepFile=new File(workDir,"String_Node_Str" + permutationId + "String_Node_Str");
  try {
    FileOutputStream stream=new FileOutputStream(appendDepFile,true);
    writer=new OutputStreamWriter(new GZIPOutputStream(stream),"String_Node_Str");
    appendDepFile.getParentFile().mkdirs();
    pw=new PrintWriter(writer);
    htmlOut=new HtmlTextOutput(pw,false);
  }
 catch (  Throwable e) {
    logger.log(TreeLogger.ERROR,"String_Node_Str",e);
  }
  printPre();
  for (  JMethod method : jprogram.getAllEntryMethods()) {
    dependencyAnalyzer.traverseFrom(method);
  }
  printPost();
  pw.close();
  Utility.close(writer);
  logger.log(TreeLogger.INFO,"String_Node_Str");
  return appendDepFile;
}

Fixed version (ground truth):
/** 
 * Used to record dependencies of a program.
 * @param jprogram
 * @param workDir
 * @param permutationId
 * @param logger
 * @return The file that the dependencies are recorded in
 */
public File recordDependencies(JProgram jprogram,File workDir,int permutationId,TreeLogger logger){
  logger=logger.branch(TreeLogger.INFO,"String_Node_Str");
  ControlFlowAnalyzer dependencyAnalyzer=new ControlFlowAnalyzer(jprogram);
  dependencyAnalyzer.setDependencyRecorder(this);
  File appendDepFile=new File(workDir,"String_Node_Str" + permutationId + "String_Node_Str");
  try {
    appendDepFile.getParentFile().mkdirs();
    FileOutputStream stream=new FileOutputStream(appendDepFile,true);
    writer=new OutputStreamWriter(new GZIPOutputStream(stream),"String_Node_Str");
    pw=new PrintWriter(writer);
    htmlOut=new HtmlTextOutput(pw,false);
  }
 catch (  Throwable e) {
    logger.log(TreeLogger.ERROR,"String_Node_Str",e);
  }
  printPre();
  for (  JMethod method : jprogram.getAllEntryMethods()) {
    dependencyAnalyzer.traverseFrom(method);
  }
  printPost();
  pw.close();
  Utility.close(writer);
  logger.log(TreeLogger.INFO,"String_Node_Str");
  return appendDepFile;
}
Program: 54542
Project: 54542
Buggy source:
public static long parseLong(String orig,int intRadix) throws NumberFormatException {
  if (orig == null) {
    throw new NumberFormatException("String_Node_Str");
  }
  if (orig.length() == 0) {
    throw NumberFormatException.forInputString(orig);
  }
  if (intRadix < Character.MIN_RADIX || intRadix > Character.MAX_RADIX) {
    throw new NumberFormatException("String_Node_Str" + intRadix + "String_Node_Str");
  }
  boolean neg=false;
  String s;
  if (orig.charAt(0) == '-') {
    neg=true;
    s=orig.substring(1);
  }
 else {
    s=orig;
  }
  long result=0;
  if (intRadix == 16) {
    result=parseHex(s);
  }
 else {
    long radix=intRadix;
    for (int i=0, len=s.length(); i < len; ++i) {
      if (result < 0) {
        throw NumberFormatException.forInputString(s);
      }
      result*=radix;
      char c=s.charAt(i);
      int value=Character.digit(c,intRadix);
      if (value < 0) {
        throw NumberFormatException.forInputString(s);
      }
      result+=value;
    }
  }
  if (result < 0 && result != MIN_VALUE) {
    throw NumberFormatException.forInputString(s);
  }
  if (neg) {
    return -result;
  }
 else {
    return result;
  }
}

Fixed version (ground truth):
public static long parseLong(String orig,int intRadix) throws NumberFormatException {
  if (orig == null) {
    throw new NumberFormatException("String_Node_Str");
  }
  if (orig.length() == 0) {
    throw NumberFormatException.forInputString(orig);
  }
  if (intRadix < Character.MIN_RADIX || intRadix > Character.MAX_RADIX) {
    throw new NumberFormatException("String_Node_Str" + intRadix + "String_Node_Str");
  }
  boolean neg=false;
  String s;
  if (orig.charAt(0) == '-') {
    neg=true;
    s=orig.substring(1);
    if (s.equals("String_Node_Str")) {
      throw NumberFormatException.forInputString(orig);
    }
  }
 else {
    s=orig;
  }
  long result=0;
  if (intRadix == 16) {
    result=parseHex(s);
  }
 else {
    long radix=intRadix;
    for (int i=0, len=s.length(); i < len; ++i) {
      if (result < 0) {
        throw NumberFormatException.forInputString(s);
      }
      result*=radix;
      char c=s.charAt(i);
      int value=Character.digit(c,intRadix);
      if (value < 0) {
        throw NumberFormatException.forInputString(s);
      }
      result+=value;
    }
  }
  if (result < 0 && result != MIN_VALUE) {
    throw NumberFormatException.forInputString(s);
  }
  if (neg) {
    return -result;
  }
 else {
    return result;
  }
}
Program: 54544
Project: 54544
Buggy source:
/** 
 * Returns the permutation's strong name. This can be used to distinguish between different permutations of the same module. In hosted mode, this method will return   {@value #HOSTED_MODE_PERMUTATION_ID}.
 */
public static String getPermutationStrongName(){
  if (GWT.isScript()) {
    return Impl.getPermutationStrongName();
  }
 else {
    return HOSTED_MODE_PERMUTATION_STRONG_NAME;
  }
}

Fixed version (ground truth):
/** 
 * Returns the permutation's strong name. This can be used to distinguish between different permutations of the same module. In hosted mode, this method will return   {@value #HOSTED_MODE_PERMUTATION_STRONG_NAME}.
 */
public static String getPermutationStrongName(){
  if (GWT.isScript()) {
    return Impl.getPermutationStrongName();
  }
 else {
    return HOSTED_MODE_PERMUTATION_STRONG_NAME;
  }
}
Program: 54545
Project: 54545
Buggy source:
/** 
 * Gets the element to which the mouse pointer was moved (only valid for  {@link Event#ONMOUSEOUT}).
 * @deprecated use {@link NativeEvent#getRelatedTarget()} instead
 * @return the element to which the mouse pointer was moved
 */
@Deprecated public final Element getToElement(){
  return DOM.eventGetToElement(this);
}

Fixed version (ground truth):
/** 
 * Gets the element to which the mouse pointer was moved (only valid for  {@link Event#ONMOUSEOUT}).
 * @deprecated use {@link NativeEvent#getRelatedEventTarget()} instead
 * @return the element to which the mouse pointer was moved
 */
@Deprecated public final Element getToElement(){
  return DOM.eventGetToElement(this);
}
Program: 54546
Project: 54546
Buggy source:
/** 
 * Gets the element from which the mouse pointer was moved (only valid for  {@link Event#ONMOUSEOVER}).
 * @deprecated use {@link NativeEvent#getRelatedTarget()} instead
 * @return the element from which the mouse pointer was moved
 */
@Deprecated public final Element getFromElement(){
  return DOM.eventGetFromElement(this);
}

Fixed version (ground truth):
/** 
 * Gets the element from which the mouse pointer was moved (only valid for  {@link Event#ONMOUSEOVER}).
 * @deprecated use {@link NativeEvent#getRelatedEventTarget()} instead
 * @return the element from which the mouse pointer was moved
 */
@Deprecated public final Element getFromElement(){
  return DOM.eventGetFromElement(this);
}
Program: 54547
Project: 54547
Buggy source:
/** 
 * Removes a previously added handler interface.
 * @param handler the handler to remove
 * @deprecated Use the {@link HandlerRegistration#removeHandler} method on the object returned by an add*Handler method instead
 */
@Deprecated void removeEventHandler(DisclosureHandler handler);

Fixed version (ground truth):
/** 
 * Removes a previously added handler interface.
 * @param handler the handler to remove
 * @deprecated Use the {@link HandlerRegistration#removeHandler}method on the object returned by an add*Handler method instead
 */
@Deprecated void removeEventHandler(DisclosureHandler handler);
Program: 54548
Project: 54548
Buggy source:
/** 
 * Removes a previously added handler interface.
 * @param handler the handler interface to remove
 * @deprecated Use the {@link HandlerRegistration#removeHandler} method on the object returned by an add*Handler method instead
 */
@Deprecated void removeFormHandler(FormHandler handler);

Fixed version (ground truth):
/** 
 * Removes a previously added handler interface.
 * @param handler the handler interface to remove
 * @deprecated Use the {@link HandlerRegistration#removeHandler}method on the object returned by an add*Handler method instead
 */
@Deprecated void removeFormHandler(FormHandler handler);
Program: 54549
Project: 54549
Buggy source:
/** 
 * Adds a handler interface to receive click events.
 * @deprecated Use {@link FormPanel#addSubmitCompleteHandler FormPanel.addSubmitCompleteHandler} and{@link FormPanel#addSubmitHandler FormPanel.addSubmitHandler} instead
 * @param handler the handler interface to add
 */
@Deprecated void addFormHandler(FormHandler handler);

Fixed version (ground truth):
/** 
 * Adds a handler interface to receive click events.
 * @deprecated Use {@link FormPanel#addSubmitCompleteHandler} and{@link FormPanel#addSubmitHandler} instead
 * @param handler the handler interface to add
 */
@Deprecated void addFormHandler(FormHandler handler);
Program: 54550
Project: 54550
Buggy source:
/** 
 * Removes a previously added handler interface.
 * @param handler the handler to remove
 * @deprecated Use the {@link HandlerRegistration#removeHandler} method on the object returned by an add*Handler method instead
 */
@Deprecated void removeEventHandler(SuggestionHandler handler);

Fixed version (ground truth):
/** 
 * Removes a previously added handler interface.
 * @param handler the handler to remove
 * @deprecated Use the {@link HandlerRegistration#removeHandler}method on the object returned by an add*Handler method instead
 */
@Deprecated void removeEventHandler(SuggestionHandler handler);
Program: 54551
Project: 54551
Buggy source:
/** 
 * @deprecated Use the {@link HandlerRegistration#removeHandler}method on the object returned by   {@link addScrollHandler} instead
 */
@Deprecated public void removeScrollListener(ScrollListener listener){
  ListenerWrapper.WrappedScrollListener.remove(this,listener);
}

Fixed version (ground truth):
/** 
 * @deprecated Use the {@link HandlerRegistration#removeHandler}method on the object returned by   {@link #addScrollHandler} instead
 */
@Deprecated public void removeScrollListener(ScrollListener listener){
  ListenerWrapper.WrappedScrollListener.remove(this,listener);
}
Program: 54552
Project: 54552
Buggy source:
/** 
 * Removes a previously added listener interface.
 * @param listener the listener interface to remove
 * @deprecated Use the {@link HandlerRegistration#removeHandler}method on the object returned by   {@link #addChangeHandler} instead
 */
@Deprecated void removeChangeListener(ChangeListener listener);

Fixed version (ground truth):
/** 
 * Removes a previously added listener interface.
 * @param listener the listener interface to remove
 * @deprecated Use the {@link HandlerRegistration#removeHandler}method on the object returned by   {@link HasChangeHandlers#addChangeHandler}instead
 */
@Deprecated void removeChangeListener(ChangeListener listener);
Program: 54553
Project: 54553
Buggy source:
/** 
 * Removes a previously added listener interface.
 * @param listener the listener interface to remove
 * @deprecated Use the {@link HandlerRegistration#removeHandler}method on the object returned by   {@link #addClickHandler} instead
 */
@Deprecated void removeClickListener(ClickListener listener);

Fixed version (ground truth):
/** 
 * Removes a previously added listener interface.
 * @param listener the listener interface to remove
 * @deprecated Use the {@link HandlerRegistration#removeHandler}method on the object returned by   {@link HasClickHandlers#addClickHandler}instead
 */
@Deprecated void removeClickListener(ClickListener listener);
Program: 54554
Project: 54554
Buggy source:
/** 
 * Adds a listener interface to receive focus events.
 * @param listener the listener interface to add
 * @deprecated use <code>addFocusHandler</code> and <cod>addBlurHandler</code>instead.
 */
@Deprecated void addFocusListener(FocusListener listener);

Fixed version (ground truth):
/** 
 * Adds a listener interface to receive focus events.
 * @param listener the listener interface to add
 * @deprecated use addFocusHandler and addBlurHandler instead.
 */
@Deprecated void addFocusListener(FocusListener listener);
Program: 54555
Project: 54555
Buggy source:
/** 
 * Removes a previously added listener interface.
 * @param listener the listener interface to remove
 * @deprecated Use the {@link HandlerRegistration#removeHandler}method on the object returned by   {@link #addFocusHandler} instead
 */
@Deprecated void removeFocusListener(FocusListener listener);

Fixed version (ground truth):
/** 
 * Removes a previously added listener interface.
 * @param listener the listener interface to remove
 * @deprecated Use the {@link HandlerRegistration#removeHandler}method on the object returned by   {@link HasFocusHandlers#addFocusHandler}instead
 */
@Deprecated void removeFocusListener(FocusListener listener);
Program: 54556
Project: 54556
Buggy source:
/** 
 * Removes a previously added listener interface.
 * @param listener the listener interface to remove
 * @deprecated Use the {@link HandlerRegistration#removeHandler}method on the object returned by   {@link HasLoadHandlers#addLoadListener} instead
 */
@Deprecated void removeLoadListener(LoadListener listener);

Fixed version (ground truth):
/** 
 * Removes a previously added listener interface.
 * @param listener the listener interface to remove
 * @deprecated Use the {@link HandlerRegistration#removeHandler}method on the object returned by   {@link HasLoadHandlers#addLoadHandler}instead
 */
@Deprecated void removeLoadListener(LoadListener listener);
Program: 54557
Project: 54557
Buggy source:
/** 
 * Adds a listener interface to receive mouse events.
 * @param listener the listener interface to add
 * @deprecated use add* methods of {@link com.google.gwt.event.dom.client.HasAllMouseHandlers}instead
 */
@Deprecated void addMouseListener(MouseListener listener);

Fixed version (ground truth):
/** 
 * Adds a listener interface to receive mouse events.
 * @param listener the listener interface to add
 * @deprecated use add* methods of {@link HasAllMouseHandlers} instead
 */
@Deprecated void addMouseListener(MouseListener listener);
Program: 54558
Project: 54558
Buggy source:
/** 
 * Adds a listener interface to receive mouse events.
 * @param listener the listener interface to add
 * @deprecated Use {@link com.google.gwt.event.dom.client.HasMouseWheelHandlers#addMouseWheelHandler}instead
 */
@Deprecated void addMouseWheelListener(MouseWheelListener listener);

Fixed version (ground truth):
/** 
 * Adds a listener interface to receive mouse events.
 * @param listener the listener interface to add
 * @deprecated Use {@link HasMouseWheelHandlers#addMouseWheelHandler} instead
 */
@Deprecated void addMouseWheelListener(MouseWheelListener listener);
Program: 54559
Project: 54559
Buggy source:
/** 
 * Removes a previously added listener interface.
 * @param listener the listener interface to remove
 * @deprecated Use the {@link HandlerRegistration#removeHandler}method on the object returned by   {@link com.google.gwt.event.dom.client.HasMouseWheelHandlers#addMouseWheelHandler}instead
 */
@Deprecated void removeMouseWheelListener(MouseWheelListener listener);

Fixed version (ground truth):
/** 
 * Removes a previously added listener interface.
 * @param listener the listener interface to remove
 * @deprecated Use the {@link HandlerRegistration#removeHandler}method on the object returned by  {@link HasMouseWheelHandlers#addMouseWheelHandler} instead
 */
@Deprecated void removeMouseWheelListener(MouseWheelListener listener);
Program: 54560
Project: 54560
Buggy source:
/** 
 * Adds a listener interface to receive popup events.
 * @param listener the listener interface to add.
 * @deprecated use {@link com.google.gwt.event.logical.shared.HasCloseHandlers#addCloseHandler}instead
 */
@Deprecated void addPopupListener(PopupListener listener);

Fixed version (ground truth):
/** 
 * Adds a listener interface to receive popup events.
 * @param listener the listener interface to add.
 * @deprecated use {@link HasCloseHandlers#addCloseHandler} instead
 */
@Deprecated void addPopupListener(PopupListener listener);
Program: 54561
Project: 54561
Buggy source:
/** 
 * Removes a previously added popup listener.
 * @param listener the listener interface to remove.
 * @deprecated Use the {@link HandlerRegistration#removeHandler}method on the object returned by   {@link com.google.gwt.event.logical.shared.HasCloseHandlers#addCloseHandler}instead
 */
@Deprecated void removePopupListener(PopupListener listener);

Fixed version (ground truth):
/** 
 * Removes a previously added popup listener.
 * @param listener the listener interface to remove.
 * @deprecated Use the {@link HandlerRegistration#removeHandler}method on the object returned by   {@link HasCloseHandlers#addCloseHandler}instead
 */
@Deprecated void removePopupListener(PopupListener listener);
Program: 54562
Project: 54562
Buggy source:
/** 
 * Load the Google Gears BHO if possible.
 * @return true if Gears was successfully loaded and initialized
 */
public boolean startGears(){
  try {
    GUID appClsid=getClassID("String_Node_Str");
    if (appClsid == null) {
      return false;
    }
  }
 catch (  SWTException e) {
    return false;
  }
  int[] address=new int[1];
  if (COM.CoCreateInstance(appClsid,0,COM.CLSCTX_INPROC_SERVER,COM.IIDIUnknown,address) != COM.S_OK) {
    return false;
  }
  IUnknown obj=new IUnknown(address[0]);
  int[] ppvObject=new int[1];
  if (obj.QueryInterface(COM.IIDIObjectWithSite,ppvObject) == COM.S_OK) {
    IObjectWithSite objectWithSite=new IObjectWithSite(ppvObject[0]);
    objectWithSite.SetSite(objIUnknown);
    objectWithSite.Release();
    return true;
  }
  return false;
}

Fixed version (ground truth):
/** 
 * Load the Google Gears BHO if possible.
 * @return true if Gears was successfully loaded and initialized
 */
public boolean startGears(){
  GUID appClsid=null;
  try {
    appClsid=getClassID("String_Node_Str");
    if (appClsid == null) {
      return false;
    }
  }
 catch (  SWTException e) {
    return false;
  }
  int[] address=new int[1];
  if (COM.CoCreateInstance(appClsid,0,COM.CLSCTX_INPROC_SERVER,COM.IIDIUnknown,address) != COM.S_OK) {
    return false;
  }
  IUnknown obj=new IUnknown(address[0]);
  int[] ppvObject=new int[1];
  if (obj.QueryInterface(COM.IIDIObjectWithSite,ppvObject) == COM.S_OK) {
    IObjectWithSite objectWithSite=new IObjectWithSite(ppvObject[0]);
    objectWithSite.SetSite(objIUnknown);
    objectWithSite.Release();
    return true;
  }
  return false;
}
Program: 54563
Project: 54563
Buggy source:
/** 
 * The control is unavailable in this context.
 * @see <a href="http://www.w3.org/TR/1999/REC-html401-19991224/interact/forms.html#adef-disabled">W3C HTML Specification</a>
 */
public final native void setDisabled(String disabled);

Fixed version (ground truth):
/** 
 * The control is unavailable in this context.
 * @see <a href="http://www.w3.org/TR/1999/REC-html401-19991224/interact/forms.html#adef-disabled">W3C HTML Specification</a>
 * @deprecated use {@link #setDisabled(boolean)} instead
 */
public final native void setDisabled(String disabled);
Program: 54564
Project: 54564
Buggy source:
/** 
 * The control is unavailable in this context.
 * @see <a href="http://www.w3.org/TR/1999/REC-html401-19991224/interact/forms.html#adef-disabled">W3C HTML Specification</a>
 */
public final native String getDisabled();

Fixed version (ground truth):
/** 
 * The control is unavailable in this context.
 * @see <a href="http://www.w3.org/TR/1999/REC-html401-19991224/interact/forms.html#adef-disabled">W3C HTML Specification</a>
 * @deprecated use {@link #isDisabled()} instead.
 */
public final native String getDisabled();
Program: 54565
Project: 54565
Buggy source:
/** 
 * Enables/disables the link. This is currently only used for style sheet links, and may be used to activate or deactivate style sheets.
 */
public final native boolean getDisabled();

Fixed version (ground truth):
/** 
 * Enables/disables the link. This is currently only used for style sheet links, and may be used to activate or deactivate style sheets.
 * @deprecated use {@link #isDisabled()} instead.
 */
public final native boolean getDisabled();
Program: 54566
Project: 54566
Buggy source:
/** 
 * Enables/disables the style sheet.
 */
public final native boolean getDisabled();

Fixed version (ground truth):
/** 
 * Enables/disables the style sheet.
 * @deprecated use {@link #isDisabled()} instead
 */
public final native boolean getDisabled();
Program: 54567
Project: 54567
Buggy source:
public final native boolean getDisabled();

Fixed version (ground truth):
/** 
 * @deprecated use {@link #isDisabled()} instead
 */
public final native boolean getDisabled();
Program: 54568
Project: 54568
Buggy source:
public final native boolean getReadOnly();

Fixed version (ground truth):
/** 
 * @deprecated use {@link #isReadOnly()} instead.
 */
public final native boolean getReadOnly();
Program: 54569
Project: 54569
Buggy source:
/** 
 * Removes a previously added handler interface.
 * @param handler the handler to remove
 * @deprecated Use the {@link HandlerRegistration#removeHandler}method on the object returned by an add*Handler method instead
 */
@Deprecated void removeEventHandler(DisclosureHandler handler);

Fixed version (ground truth):
/** 
 * Removes a previously added handler interface.
 * @param handler the handler to remove
 * @deprecated Use the{@link com.google.gwt.event.shared.HandlerRegistration#removeHandler}method on the object returned by an add*Handler method instead
 */
@Deprecated void removeEventHandler(DisclosureHandler handler);
Program: 54570
Project: 54570
Buggy source:
/** 
 * Removes a previously added handler interface.
 * @param handler the handler interface to remove
 * @deprecated Use the {@link HandlerRegistration#removeHandler}method on the object returned by an add*Handler method instead
 */
@Deprecated void removeFormHandler(FormHandler handler);

Fixed version (ground truth):
/** 
 * Removes a previously added handler interface.
 * @param handler the handler interface to remove
 * @deprecated Use the{@link com.google.gwt.event.shared.HandlerRegistration#removeHandler}method on the object returned by an add*Handler method instead
 */
@Deprecated void removeFormHandler(FormHandler handler);
Program: 54571
Project: 54571
Buggy source:
/** 
 * Removes a previously added handler interface.
 * @param handler the handler to remove
 * @deprecated Use the {@link HandlerRegistration#removeHandler}method on the object returned by an add*Handler method instead
 */
@Deprecated void removeEventHandler(SuggestionHandler handler);

Fixed version (ground truth):
/** 
 * Removes a previously added handler interface.
 * @param handler the handler to remove
 * @deprecated Use the{@link com.google.gwt.event.shared.HandlerRegistration#removeHandler}method on the object returned by an add*Handler method instead
 */
@Deprecated void removeEventHandler(SuggestionHandler handler);
Program: 54572
Project: 54572
Buggy source:
/** 
 * Removes a previously added listener interface.
 * @param listener the listener interface to remove
 * @deprecated Use the {@link HandlerRegistration#removeHandler}method on the object returned by   {@link HasChangeHandlers#addChangeHandler}instead
 */
@Deprecated void removeChangeListener(ChangeListener listener);

Fixed version (ground truth):
/** 
 * Removes a previously added listener interface.
 * @param listener the listener interface to remove
 * @deprecated Use the{@link com.google.gwt.event.shared.HandlerRegistration#removeHandler}method on the object returned by  {@link com.google.gwt.event.dom.client.HasChangeHandlers#addChangeHandler}instead
 */
@Deprecated void removeChangeListener(ChangeListener listener);
Program: 54573
Project: 54573
Buggy source:
/** 
 * Adds a listener interface to receive change events.
 * @param listener the listener interface to add
 * @deprecated use <code>addChangeHandler</code> or<code>addValueChangeHandler</code> instead
 */
@Deprecated void addChangeListener(ChangeListener listener);

Fixed version (ground truth):
/** 
 * Adds a listener interface to receive change events.
 * @param listener the listener interface to add
 * @deprecated use addChangeHandler or addValueChangeHandler instead
 */
@Deprecated void addChangeListener(ChangeListener listener);
Program: 54574
Project: 54574
Buggy source:
/** 
 * Removes a previously added listener interface.
 * @param listener the listener interface to remove
 * @deprecated Use the {@link HandlerRegistration#removeHandler}method on the object returned by   {@link HasClickHandlers#addClickHandler}instead
 */
@Deprecated void removeClickListener(ClickListener listener);

Fixed version (ground truth):
/** 
 * Removes a previously added listener interface.
 * @param listener the listener interface to remove
 * @deprecated Use the{@link com.google.gwt.event.shared.HandlerRegistration#removeHandler}method on the object returned by  {@link com.google.gwt.event.dom.client.HasClickHandlers#addClickHandler}instead
 */
@Deprecated void removeClickListener(ClickListener listener);
Program: 54575
Project: 54575
Buggy source:
/** 
 * Removes a previously added listener interface.
 * @param listener the listener interface to remove
 * @deprecated Use the {@link HandlerRegistration#removeHandler}method on the object returned by   {@link HasFocusHandlers#addFocusHandler}instead
 */
@Deprecated void removeFocusListener(FocusListener listener);

Fixed version (ground truth):
/** 
 * Removes a previously added listener interface.
 * @param listener the listener interface to remove
 * @deprecated Use the{@link com.google.gwt.event.shared.HandlerRegistration#removeHandler}method on the object returned by  {@link com.google.gwt.event.dom.client.HasFocusHandlers#addFocusHandler}instead
 */
@Deprecated void removeFocusListener(FocusListener listener);
Program: 54576
Project: 54576
Buggy source:
/** 
 * Adds a listener interface to receive keyboard events.
 * @param listener the listener interface to add
 * @deprecated use<code>addKeyPressHandler/addKeyDownKeyDownHandler/addKeyUpHandler</code> instead
 */
@Deprecated void addKeyboardListener(KeyboardListener listener);

Fixed version (ground truth):
/** 
 * Adds a listener interface to receive keyboard events.
 * @param listener the listener interface to add
 * @deprecated use addKeyPressHandler/addKeyDownKeyDownHandler/addKeyUpHandlerinstead
 */
@Deprecated void addKeyboardListener(KeyboardListener listener);
Program: 54577
Project: 54577
Buggy source:
/** 
 * Removes a previously added listener interface.
 * @param listener the listener interface to remove
 * @deprecated Use the {@link HandlerRegistration#removeHandler}method on the object returned by an add*Handler method instead
 */
@Deprecated void removeKeyboardListener(KeyboardListener listener);

Fixed version (ground truth):
/** 
 * Removes a previously added listener interface.
 * @param listener the listener interface to remove
 * @deprecated Use the{@link com.google.gwt.event.shared.HandlerRegistration#removeHandler}method on the object returned by an add*Handler method instead
 */
@Deprecated void removeKeyboardListener(KeyboardListener listener);
Program: 54578
Project: 54578
Buggy source:
/** 
 * Adds a listener interface to receive load events.
 * @param listener the listener interface to add
 * @deprecated use {@link HasLoadHandlers#addLoadHandler} instead
 */
@Deprecated void addLoadListener(LoadListener listener);

Fixed version (ground truth):
/** 
 * Adds a listener interface to receive load events.
 * @param listener the listener interface to add
 * @deprecated use{@link com.google.gwt.event.dom.client.HasLoadHandlers#addLoadHandler}instead
 */
@Deprecated void addLoadListener(LoadListener listener);
Program: 54579
Project: 54579
Buggy source:
/** 
 * Removes a previously added listener interface.
 * @param listener the listener interface to remove
 * @deprecated Use the {@link HandlerRegistration#removeHandler}method on the object returned by   {@link HasLoadHandlers#addLoadHandler}instead
 */
@Deprecated void removeLoadListener(LoadListener listener);

Fixed version (ground truth):
/** 
 * Removes a previously added listener interface.
 * @param listener the listener interface to remove
 * @deprecated Use the{@link com.google.gwt.event.shared.HandlerRegistration#removeHandler}method on the object returned by  {@link com.google.gwt.event.dom.client.HasLoadHandlers#addLoadHandler}instead
 */
@Deprecated void removeLoadListener(LoadListener listener);
Program: 54580
Project: 54580
Buggy source:
/** 
 * Removes a previously added listener interface.
 * @param listener the listener interface to remove
 * @deprecated Use the {@link HandlerRegistration#removeHandler}method on the object returned by an add*Handler method instead
 */
@Deprecated void removeMouseListener(MouseListener listener);

Fixed version (ground truth):
/** 
 * Removes a previously added listener interface.
 * @param listener the listener interface to remove
 * @deprecated Use the{@link com.google.gwt.event.shared.HandlerRegistration#removeHandler}method on the object returned by an add*Handler method instead
 */
@Deprecated void removeMouseListener(MouseListener listener);
Program: 54581
Project: 54581
Buggy source:
/** 
 * Adds a listener interface to receive mouse events.
 * @param listener the listener interface to add
 * @deprecated use add* methods of {@link HasAllMouseHandlers} instead
 */
@Deprecated void addMouseListener(MouseListener listener);

Fixed version (ground truth):
/** 
 * Adds a listener interface to receive mouse events.
 * @param listener the listener interface to add
 * @deprecated use add* methods of{@link com.google.gwt.event.dom.client.HasAllMouseHandlers} instead
 */
@Deprecated void addMouseListener(MouseListener listener);
Program: 54582
Project: 54582
Buggy source:
/** 
 * Adds a listener interface to receive mouse events.
 * @param listener the listener interface to add
 * @deprecated Use {@link HasMouseWheelHandlers#addMouseWheelHandler} instead
 */
@Deprecated void addMouseWheelListener(MouseWheelListener listener);

Fixed version (ground truth):
/** 
 * Adds a listener interface to receive mouse events.
 * @param listener the listener interface to add
 * @deprecated Use{@link com.google.gwt.event.dom.client.HasMouseWheelHandlers#addMouseWheelHandler}instead
 */
@Deprecated void addMouseWheelListener(MouseWheelListener listener);
Program: 54583
Project: 54583
Buggy source:
/** 
 * Removes a previously added listener interface.
 * @param listener the listener interface to remove
 * @deprecated Use the {@link HandlerRegistration#removeHandler}method on the object returned by  {@link HasMouseWheelHandlers#addMouseWheelHandler} instead
 */
@Deprecated void removeMouseWheelListener(MouseWheelListener listener);

Fixed version (ground truth):
/** 
 * Removes a previously added listener interface.
 * @param listener the listener interface to remove
 * @deprecated Use the{@link com.google.gwt.event.shared.HandlerRegistration#removeHandler}method on the object returned by  {@link com.google.gwt.event.dom.client.HasMouseWheelHandlers#addMouseWheelHandler}instead
 */
@Deprecated void removeMouseWheelListener(MouseWheelListener listener);
Program: 54584
Project: 54584
Buggy source:
/** 
 * Adds a listener interface to receive popup events.
 * @param listener the listener interface to add.
 * @deprecated use {@link HasCloseHandlers#addCloseHandler} instead
 */
@Deprecated void addPopupListener(PopupListener listener);

Fixed version (ground truth):
/** 
 * Adds a listener interface to receive popup events.
 * @param listener the listener interface to add.
 * @deprecated use{@link com.google.gwt.event.logical.shared.HasCloseHandlers#addCloseHandler}instead
 */
@Deprecated void addPopupListener(PopupListener listener);
Program: 54585
Project: 54585
Buggy source:
/** 
 * Removes a previously added popup listener.
 * @param listener the listener interface to remove.
 * @deprecated Use the {@link HandlerRegistration#removeHandler}method on the object returned by   {@link HasCloseHandlers#addCloseHandler}instead
 */
@Deprecated void removePopupListener(PopupListener listener);

Fixed version (ground truth):
/** 
 * Removes a previously added popup listener.
 * @param listener the listener interface to remove.
 * @deprecated Use the{@link com.google.gwt.event.shared.HandlerRegistration#removeHandler}method on the object returned by  {@link com.google.gwt.event.logical.shared.HasCloseHandlers#addCloseHandler}instead
 */
@Deprecated void removePopupListener(PopupListener listener);
Program: 54586
Project: 54586
Buggy source:
public void onClick(ClickEvent event){
  ValueChangeEvent.fireIfNotEqual(CheckBox.this,valueBeforeClick,getValue());
}

Fixed version (ground truth):
public void onClick(ClickEvent event){
  ValueChangeEvent.fire(CheckBox.this,getValue());
}
Program: 54587
Project: 54587
Buggy source:
public HandlerRegistration addValueChangeHandler(ValueChangeHandler<Boolean> handler){
  if (!valueChangeHandlerInitialized) {
    this.addKeyUpHandler(new KeyUpHandler(){
      public void onKeyUp(      KeyUpEvent event){
        valueBeforeClick=getValue();
      }
    }
);
    this.addMouseUpHandler(new MouseUpHandler(){
      public void onMouseUp(      MouseUpEvent event){
        valueBeforeClick=getValue();
      }
    }
);
    this.addClickHandler(new ClickHandler(){
      public void onClick(      ClickEvent event){
        ValueChangeEvent.fireIfNotEqual(CheckBox.this,valueBeforeClick,getValue());
      }
    }
);
    valueChangeHandlerInitialized=true;
  }
  return addHandler(handler,ValueChangeEvent.getType());
}

Fixed version (ground truth):
public HandlerRegistration addValueChangeHandler(ValueChangeHandler<Boolean> handler){
  if (!valueChangeHandlerInitialized) {
    ensureDomEventHandlers();
    valueChangeHandlerInitialized=true;
  }
  return addHandler(handler,ValueChangeEvent.getType());
}
Program: 54588
Project: 54588
Buggy source:
@Override public void sinkEvents(int eventBitsToAdd){
  if (isOrWasAttached()) {
    Event.sinkEvents(inputElem,eventBitsToAdd | Event.getEventsSunk(inputElem));
    Event.sinkEvents(labelElem,eventBitsToAdd | Event.getEventsSunk(labelElem));
  }
 else {
    super.sinkEvents(eventBitsToAdd);
  }
}

Fixed version (ground truth):
@Override public void sinkEvents(int eventBitsToAdd){
  if (isOrWasAttached()) {
    Event.sinkEvents(inputElem,eventBitsToAdd | Event.getEventsSunk(inputElem));
  }
 else {
    super.sinkEvents(eventBitsToAdd);
  }
}
Program: 54589
Project: 54589
Buggy source:
public void onClick(Widget sender){
  ++fired;
}

Fixed version (ground truth):
public void onClick(ClickEvent arg0){
  clickCount[0]++;
}
Program: 54590
Project: 54590
Buggy source:
private void visitInNewContext(List<CssNode> nodes){
  MergeRulesByContentVisitor v=new MergeRulesByContentVisitor();
  v.accept(nodes);
  rulesInOrder.addAll(v.rulesInOrder);
}

Fixed version (ground truth):
private void visitInNewContext(List<CssNode> nodes){
  MergeRulesByContentVisitor v=new MergeRulesByContentVisitor();
  v.acceptWithInsertRemove(nodes);
  rulesInOrder.addAll(v.rulesInOrder);
}
Program: 54592
Project: 54592
Buggy source:
/** 
 * Maps each split point number to its corresponding generated <code>runAsync</code> method. If that method has been discarded, then map the split point number to <code>null</code>.
 */
private static Map<Integer,JMethod> findRunAsyncMethods(JProgram program) throws NumberFormatException {
  Map<Integer,JMethod> splitPointToLoadMethod=new HashMap<Integer,JMethod>();
  for (  JReferenceType type : program.getDeclaredTypes()) {
    Matcher matcher=LOADER_CLASS_PATTERN.matcher(type.getName());
    if (matcher.matches()) {
      int sp=Integer.parseInt(matcher.group(1));
      JMethod loadMethod=null;
      for (      JMethod meth : type.methods) {
        if (meth.getName().equals(FragmentLoaderCreator.LOADER_METHOD_RUN_ASYNC)) {
          loadMethod=meth;
        }
      }
      splitPointToLoadMethod.put(sp,loadMethod);
    }
  }
  return splitPointToLoadMethod;
}

Fixed version (ground truth):
/** 
 * Maps each split point number to its corresponding generated <code>runAsync</code> method. If that method has been discarded, then map the split point number to <code>null</code>.
 */
private static Map<Integer,JMethod> findRunAsyncMethods(JProgram program) throws NumberFormatException {
  Map<Integer,JMethod> splitPointToLoadMethod=new HashMap<Integer,JMethod>();
  for (  JDeclaredType type : program.getDeclaredTypes()) {
    Matcher matcher=LOADER_CLASS_PATTERN.matcher(type.getName());
    if (matcher.matches()) {
      int sp=Integer.parseInt(matcher.group(1));
      JMethod loadMethod=null;
      for (      JMethod meth : type.getMethods()) {
        if (meth.getName().equals(FragmentLoaderCreator.LOADER_METHOD_RUN_ASYNC)) {
          loadMethod=meth;
        }
      }
      splitPointToLoadMethod.put(sp,loadMethod);
    }
  }
  return splitPointToLoadMethod;
}
Program: 54593
Project: 54593
Buggy source:
public static double[] shr(double[] a,int n){
  n&=63;
  double shiftFact=pwrAsDouble(n);
  double newHigh=a[HIGH] / shiftFact;
  double newLow=Math.floor(a[LOW] / shiftFact);
  return create(newLow,newHigh);
}

Fixed version (ground truth):
public static double[] shr(double[] a,int n){
  n&=63;
  double shiftFact=pwrAsDouble(n);
  double newHigh=Math.floor(a[HIGH] / shiftFact);
  double newLow=Math.floor(a[LOW] / shiftFact);
  return create(newLow,newHigh);
}
Program: 54594
Project: 54594
Buggy source:
public void testShift(){
  assertEquals(longFromBits(0xd048d115,0x9d159c00),LongLib.shl(longFromBits(0x12341234,0x45674567),10));
  assertEquals(longFromBits(0x48d04,0x8d1159d1),LongLib.shr(longFromBits(0x12341234,0x45674567),10));
  assertEquals(longFromBits(0x48d04,0x8d1159d1),LongLib.shru(longFromBits(0x12341234,0x45674567),10));
  assertEquals(longFromBits(0xd048d115,0x9d159c00),LongLib.shl(longFromBits(0x92341234,0x45674567),10));
  assertEquals(longFromBits(0xffe48d04,0x8d1159d1),LongLib.shr(longFromBits(0x92341234,0x45674567),10));
  assertEquals(longFromBits(0x248d04,0x8d1159d1),LongLib.shru(longFromBits(0x92341234,0x45674567),10));
  assertEquals(LongLib.fromInt(-1),LongLib.shr(LongLib.fromInt(-1),10));
  assertEquals(LongLib.fromInt(-1 << 5),LongLib.shl(LongLib.fromInt(-1),5));
  assertEquals(LongLib.fromInt(-1),LongLib.shl(LongLib.fromInt(-1),0));
  assertEquals(LongLib.neg(LongLib.typeChange(0x4000000000000000L)),LongLib.shr(LongLib.shl(LongLib.fromInt(1),63),1));
  assertEquals(LongLib.fromInt(0),LongLib.shl(LongLib.shl(LongLib.fromInt(-1),32),32));
  assertEquals(Const.MIN_VALUE,LongLib.shl(Const.MIN_VALUE,0));
  assertEquals(LongLib.fromInt(0),LongLib.shl(Const.MIN_VALUE,1));
  assertEquals(longFromBits(0xfffffffc,0x00000000),LongLib.shr(LongLib.neg(longFromBits(8,0)),1));
  assertEquals(longFromBits(0x7ffffffc,0x0),LongLib.shru(LongLib.neg(longFromBits(8,0)),1));
}

Fixed version (ground truth):
public void testShift(){
  assertEquals(longFromBits(0xd048d115,0x9d159c00),LongLib.shl(longFromBits(0x12341234,0x45674567),10));
  assertEquals(longFromBits(0x48d04,0x8d1159d1),LongLib.shr(longFromBits(0x12341234,0x45674567),10));
  assertEquals(longFromBits(0x48d04,0x8d1159d1),LongLib.shru(longFromBits(0x12341234,0x45674567),10));
  assertEquals(longFromBits(0xd048d115,0x9d159c00),LongLib.shl(longFromBits(0x92341234,0x45674567),10));
  assertEquals(longFromBits(0xffe48d04,0x8d1159d1),LongLib.shr(longFromBits(0x92341234,0x45674567),10));
  assertEquals(LongLib.fromInt(67108863),LongLib.shr(longFromBits(0xFFFFFFF,0xFFFFFFFF),34));
  assertEquals(longFromBits(0x248d04,0x8d1159d1),LongLib.shru(longFromBits(0x92341234,0x45674567),10));
  assertEquals(LongLib.fromInt(-1),LongLib.shr(LongLib.fromInt(-1),10));
  assertEquals(LongLib.fromInt(-1),LongLib.shr(LongLib.fromInt(-1),63));
  assertEquals(LongLib.fromInt(-1 << 5),LongLib.shl(LongLib.fromInt(-1),5));
  assertEquals(LongLib.fromInt(-1),LongLib.shl(LongLib.fromInt(-1),0));
  assertEquals(LongLib.neg(LongLib.typeChange(0x4000000000000000L)),LongLib.shr(LongLib.shl(LongLib.fromInt(1),63),1));
  assertEquals(LongLib.fromInt(0),LongLib.shl(LongLib.shl(LongLib.fromInt(-1),32),32));
  assertEquals(Const.MIN_VALUE,LongLib.shl(Const.MIN_VALUE,0));
  assertEquals(LongLib.fromInt(0),LongLib.shl(Const.MIN_VALUE,1));
  assertEquals(longFromBits(0xfffffffc,0x00000000),LongLib.shr(LongLib.neg(longFromBits(8,0)),1));
  assertEquals(longFromBits(0x7ffffffc,0x0),LongLib.shru(LongLib.neg(longFromBits(8,0)),1));
}