bugged stringlengths 6 599k | fixed stringlengths 6 40.8M | __index_level_0__ int64 0 3.24M |
|---|---|---|
public InlineBox createInline(Context c, Node node, String text, InlineBox prev, InlineBox prev_align, int avail, int max, Font font) { InlineBox inline = new InlineBox(); inline.setNode(node); CalculatedStyle style = c.css.getStyle(node); inline.whitespace = getWhitespace(style); ... | public InlineBox createInline(Context c, Node node, String text, InlineBox prev, InlineBox prev_align, int avail, int max, Font font) { InlineBox inline = new InlineBox(); inline.setNode(node); CalculatedStyle style = c.css.getStyle(node); inline.whitespace = getWhitespace(style); ... | 52,925 |
public String getWhitespace(CalculatedStyle style) { String whitespace = style.getStringProperty("white-space"); if (whitespace == null) {//should never happen whitespace = "normal"; } return whitespace; } | public static String getWhitespace(CalculatedStyle style) { String whitespace = style.getStringProperty("white-space"); if (whitespace == null) {//should never happen whitespace = "normal"; } return whitespace; } | 52,926 |
public String stripWhitespace(CalculatedStyle style, InlineBox prev, String text) { String whitespace = getWhitespace(style); //u.p("stripWhitespace: text = -" + text + "-"); //u.p("whitespace = " + whitespace); // do step 1 if (whitespace.equals("normal") || ... | public static String stripWhitespace(CalculatedStyle style, InlineBox prev, String text) { String whitespace = getWhitespace(style); //u.p("stripWhitespace: text = -" + text + "-"); //u.p("whitespace = " + whitespace); // do step 1 if (whitespace.equals("normal") || ... | 52,927 |
public void unbreakable(InlineBox box, int n) { if (box.start_index == -1) { box.start_index = 0; } box.setSubstring(box.start_index, box.start_index + n); return; } | public static void unbreakable(InlineBox box, int n) { if (box.start_index == -1) { box.start_index = 0; } box.setSubstring(box.start_index, box.start_index + n); return; } | 52,928 |
private static Box layout(LayoutContext c, Box block, Content content, StyleSetListener listener) { //OK, first set up the current style. All depends on this... CascadedStyle pushed = content.getStyle(); if (pushed != null) { c.pushStyle(pushed); } boolean oldFirstLine ... | private static Box layout(LayoutContext c, Box block, Content content, StyleSetListener listener) { //OK, first set up the current style. All depends on this... CascadedStyle pushed = content.getStyle(); if (pushed != null) { c.pushStyle(pushed); } boolean oldFirstLine ... | 52,929 |
public InlineText findTrailingText() { if (getInlineChildCount() == 0) { return null; } InlineText result = null; for (int offset = getInlineChildCount() - 1; offset >= 0; offset--) { Object child = getInlineChild(offset); if (child instan... | public InlineText findTrailingText() { if (getInlineChildCount() == 0) { return null; } InlineText result = null; for (int offset = getInlineChildCount() - 1; offset >= 0; offset--) { Object child = getInlineChild(offset); if (child instan... | 52,931 |
public void loadPage(String url_text, XHTMLPanel panel) throws Exception { Document doc = null; URL ref = null; if (url_text.startsWith("demo:")) { Uu.p("starts with demo"); DemoMarker marker = new DemoMarker(); Uu.p("url text = " + url_text); ... | public void loadPage(String url_text, XHTMLPanel panel) throws Exception { Document doc = null; URL ref = null; if (url_text.startsWith("demo:")) { Uu.p("starts with demo"); DemoMarker marker = new DemoMarker(); Uu.p("url text = " + url_text); ... | 52,932 |
public void loadPage(String url_text, XHTMLPanel panel) throws Exception { Document doc = null; URL ref = null; if (url_text.startsWith("demo:")) { Uu.p("starts with demo"); DemoMarker marker = new DemoMarker(); Uu.p("url text = " + url_text); ... | public void loadPage(String url_text, XHTMLPanel panel) throws Exception { Document doc = null; URL ref = null; if (url_text.startsWith("demo:")) { Uu.p("starts with demo"); DemoMarker marker = new DemoMarker(); Uu.p("url text = " + url_text); ... | 52,933 |
public void loadPage(String url_text, XHTMLPanel panel) throws Exception { Document doc = null; URL ref = null; if (url_text.startsWith("demo:")) { Uu.p("starts with demo"); DemoMarker marker = new DemoMarker(); Uu.p("url text = " + url_text); ... | public void loadPage(String url_text, XHTMLPanel panel) throws Exception { Document doc = null; URL ref = null; if (url_text.startsWith("demo:")) { Uu.p("starts with demo"); DemoMarker marker = new DemoMarker(); Uu.p("url text = " + url_text); ... | 52,934 |
public void loadPage(String url_text, XHTMLPanel panel) throws Exception { Document doc = null; URL ref = null; if (url_text.startsWith("demo:")) { Uu.p("starts with demo"); DemoMarker marker = new DemoMarker(); Uu.p("url text = " + url_text); ... | public void loadPage(String url_text, XHTMLPanel panel) throws Exception { Document doc = null; URL ref = null; if (url_text.startsWith("demo:")) { Uu.p("starts with demo"); DemoMarker marker = new DemoMarker(); Uu.p("url text = " + url_text); ... | 52,935 |
public void addNotify() { if (peer == null) peer = getToolkit().createFileDialog(this); super.addNotify(); } | public void addNotify() { if (peer == null) peer = getToolkit().createFileDialog(this); super.addNotify(); } | 52,937 |
public void addNotify() { if (peer == null) peer = getToolkit().createFileDialog(this); super.addNotify(); } | public void addNotify() { if (peer == null) peer = getToolkit().createFileDialog(this); super.addNotify(); } | 52,938 |
public FilenameFilter getFilenameFilter() { return (filter); } | public FilenameFilter getFilenameFilter() { return (filter); } | 52,939 |
public int getMode() { return (mode); } | public int getMode() { return (mode); } | 52,940 |
protected String paramString() { return ("dir=" + dir + ",file=" + file + ",mode=" + mode + "," + super.paramString()); } | protected String paramString() { return ("dir=" + dir + ",file=" + file + ",mode=" + mode + "," + super.paramString()); } | 52,941 |
public synchronized void setDirectory(String dir) { this.dir = dir; if (peer != null) { FileDialogPeer f = (FileDialogPeer) peer; f.setDirectory(dir); } } | public synchronized void setDirectory(String dir) { this.dir = dir; if (peer != null) { FileDialogPeer f = (FileDialogPeer) peer; f.setDirectory(dir); } } | 52,942 |
public synchronized void setDirectory(String dir) { this.dir = dir; if (peer != null) { FileDialogPeer f = (FileDialogPeer) peer; f.setDirectory(dir); } } | public synchronized void setDirectory(String dir) { this.dir = dir; if (peer != null) { FileDialogPeer f = (FileDialogPeer) peer; f.setDirectory(dir); } } | 52,943 |
public synchronized void setDirectory(String dir) { this.dir = dir; if (peer != null) { FileDialogPeer f = (FileDialogPeer) peer; f.setDirectory(dir); } } | public synchronized void setDirectory(String dir) { this.dir = dir; if (peer != null) { FileDialogPeer f = (FileDialogPeer) peer; f.setDirectory(dir); } } | 52,944 |
public synchronized void setFile(String file) { this.file = file; if (peer != null) { FileDialogPeer f = (FileDialogPeer) peer; f.setFile(file); } } | public synchronized void setFile(String file) { this.file = file; if (peer != null) { FileDialogPeer f = (FileDialogPeer) peer; f.setFile(file); } } | 52,946 |
public synchronized void setFile(String file) { this.file = file; if (peer != null) { FileDialogPeer f = (FileDialogPeer) peer; f.setFile(file); } } | public synchronized void setFile(String file) { this.file = file; if (peer != null) { FileDialogPeer f = (FileDialogPeer) peer; f.setFile(file); } } | 52,947 |
public synchronized void setFile(String file) { this.file = file; if (peer != null) { FileDialogPeer f = (FileDialogPeer) peer; f.setFile(file); } } | public synchronized void setFile(String file) { this.file = file; if (peer != null) { FileDialogPeer f = (FileDialogPeer) peer; f.setFile(file); } } | 52,948 |
public synchronized void setFilenameFilter(FilenameFilter filter) { this.filter = filter; if (peer != null) { FileDialogPeer f = (FileDialogPeer) peer; f.setFilenameFilter(filter); } } | public synchronized void setFilenameFilter(FilenameFilter filter) { this.filter = filter; if (peer != null) { FileDialogPeer f = (FileDialogPeer) peer; f.setFilenameFilter(filter); } } | 52,950 |
public synchronized void setFilenameFilter(FilenameFilter filter) { this.filter = filter; if (peer != null) { FileDialogPeer f = (FileDialogPeer) peer; f.setFilenameFilter(filter); } } | public synchronized void setFilenameFilter(FilenameFilter filter) { this.filter = filter; if (peer != null) { FileDialogPeer f = (FileDialogPeer) peer; f.setFilenameFilter(filter); } } | 52,951 |
public synchronized void setFilenameFilter(FilenameFilter filter) { this.filter = filter; if (peer != null) { FileDialogPeer f = (FileDialogPeer) peer; f.setFilenameFilter(filter); } } | public synchronized void setFilenameFilter(FilenameFilter filter) { this.filter = filter; if (peer != null) { FileDialogPeer f = (FileDialogPeer) peer; f.setFilenameFilter(filter); } } | 52,952 |
public void setMode(int mode) { if ((mode != LOAD) && (mode != SAVE)) throw new IllegalArgumentException("Bad mode: " + mode); this.mode = mode; } | public void setMode(int mode) { if ((mode != LOAD) && (mode != SAVE)) throw new IllegalArgumentException("Bad mode: " + mode); this.mode = mode; } | 52,954 |
public void setMode(int mode) { if ((mode != LOAD) && (mode != SAVE)) throw new IllegalArgumentException("Bad mode: " + mode); this.mode = mode; } | public void setMode(int mode) { if ((mode != LOAD) && (mode != SAVE)) throw new IllegalArgumentException("Bad mode: " + mode); this.mode = mode; } | 52,955 |
ResultLayout(Point labelPosition, float lineWidth, int color) { if(labelPosition != null) this.labelPosition = new Point(labelPosition.x, labelPosition.y); this.lineWidth = lineWidth; this.color = color; } | ResultLayout(Point2D labelPosition, float lineWidth, int color) { if(labelPosition != null) this.labelPosition = new Point(labelPosition.x, labelPosition.y); this.lineWidth = lineWidth; this.color = color; } | 52,956 |
ResultLayout(Point labelPosition, float lineWidth, int color) { if(labelPosition != null) this.labelPosition = new Point(labelPosition.x, labelPosition.y); this.lineWidth = lineWidth; this.color = color; } | ResultLayout(Point labelPosition, float lineWidth, int color) { if(labelPosition != null) this.labelPosition = labelPosition; this.lineWidth = lineWidth; this.color = color; } | 52,957 |
private static InlineBox calculateInline(LayoutContext c, Content content, int avail, int max_width, InlineBox prev_align, boolean isFirstLetter, CascadedStyle firstLetterStyle, LineBox curr_line, int start, InlineBlockBox pendi... | private static InlineBox calculateInline(LayoutContext c, Content content, int avail, int max_width, InlineBox prev_align, boolean isFirstLetter, CascadedStyle firstLetterStyle, LineBox curr_line, int start, InlineBlockBox pendi... | 52,958 |
private static InlineBox calculateInline(LayoutContext c, Content content, int avail, int max_width, InlineBox prev_align, boolean isFirstLetter, CascadedStyle firstLetterStyle, LineBox curr_line, int start, InlineBlockBox pendi... | private static InlineBox calculateInline(LayoutContext c, Content content, int avail, int max_width, InlineBox prev_align, boolean isFirstLetter, CascadedStyle firstLetterStyle, LineBox curr_line, int start, InlineBlockBox pendi... | 52,959 |
public static void layoutContent(LayoutContext c, Box box, List contentList) { //Here we should always be inside something that corresponds to a block-level element //for formatting purposes Rectangle bounds = new Rectangle(); bounds.width = c.getExtents().width; validateBounds(bo... | public static void layoutContent(LayoutContext c, Box box, List contentList) { //Here we should always be inside something that corresponds to a block-level element //for formatting purposes Rectangle bounds = new Rectangle(); bounds.width = c.getExtents().width; validateBounds(bo... | 52,960 |
public static void layoutContent(LayoutContext c, Box box, List contentList) { //Here we should always be inside something that corresponds to a block-level element //for formatting purposes Rectangle bounds = new Rectangle(); bounds.width = c.getExtents().width; validateBounds(bo... | public static void layoutContent(LayoutContext c, Box box, List contentList) { //Here we should always be inside something that corresponds to a block-level element //for formatting purposes Rectangle bounds = new Rectangle(); bounds.width = c.getExtents().width; validateBounds(bo... | 52,961 |
public static void layoutContent(LayoutContext c, Box box, List contentList) { //Here we should always be inside something that corresponds to a block-level element //for formatting purposes Rectangle bounds = new Rectangle(); bounds.width = c.getExtents().width; validateBounds(bo... | public static void layoutContent(LayoutContext c, Box box, List contentList) { //Here we should always be inside something that corresponds to a block-level element //for formatting purposes Rectangle bounds = new Rectangle(); bounds.width = c.getExtents().width; validateBounds(bo... | 52,962 |
public static void layoutContent(LayoutContext c, Box box, List contentList) { //Here we should always be inside something that corresponds to a block-level element //for formatting purposes Rectangle bounds = new Rectangle(); bounds.width = c.getExtents().width; validateBounds(bo... | public static void layoutContent(LayoutContext c, Box box, List contentList) { //Here we should always be inside something that corresponds to a block-level element //for formatting purposes Rectangle bounds = new Rectangle(); bounds.width = c.getExtents().width; validateBounds(bo... | 52,963 |
public static void layoutContent(LayoutContext c, Box box, List contentList) { //Here we should always be inside something that corresponds to a block-level element //for formatting purposes Rectangle bounds = new Rectangle(); bounds.width = c.getExtents().width; validateBounds(bo... | public static void layoutContent(LayoutContext c, Box box, List contentList) { //Here we should always be inside something that corresponds to a block-level element //for formatting purposes Rectangle bounds = new Rectangle(); bounds.width = c.getExtents().width; validateBounds(bo... | 52,964 |
public static void layoutContent(LayoutContext c, Box box, List contentList) { //Here we should always be inside something that corresponds to a block-level element //for formatting purposes Rectangle bounds = new Rectangle(); bounds.width = c.getExtents().width; validateBounds(bo... | public static void layoutContent(LayoutContext c, Box box, List contentList) { //Here we should always be inside something that corresponds to a block-level element //for formatting purposes Rectangle bounds = new Rectangle(); bounds.width = c.getExtents().width; validateBounds(bo... | 52,965 |
public static void layoutContent(LayoutContext c, Box box, List contentList) { //Here we should always be inside something that corresponds to a block-level element //for formatting purposes Rectangle bounds = new Rectangle(); bounds.width = c.getExtents().width; validateBounds(bo... | public static void layoutContent(LayoutContext c, Box box, List contentList) { //Here we should always be inside something that corresponds to a block-level element //for formatting purposes Rectangle bounds = new Rectangle(); bounds.width = c.getExtents().width; validateBounds(bo... | 52,966 |
public static void layoutContent(LayoutContext c, Box box, List contentList) { //Here we should always be inside something that corresponds to a block-level element //for formatting purposes Rectangle bounds = new Rectangle(); bounds.width = c.getExtents().width; validateBounds(bo... | public static void layoutContent(LayoutContext c, Box box, List contentList) { //Here we should always be inside something that corresponds to a block-level element //for formatting purposes Rectangle bounds = new Rectangle(); bounds.width = c.getExtents().width; validateBounds(bo... | 52,967 |
public static void layoutContent(LayoutContext c, Box box, List contentList) { //Here we should always be inside something that corresponds to a block-level element //for formatting purposes Rectangle bounds = new Rectangle(); bounds.width = c.getExtents().width; validateBounds(bo... | public static void layoutContent(LayoutContext c, Box box, List contentList) { //Here we should always be inside something that corresponds to a block-level element //for formatting purposes Rectangle bounds = new Rectangle(); bounds.width = c.getExtents().width; validateBounds(bo... | 52,968 |
public static void layoutContent(LayoutContext c, Box box, List contentList) { //Here we should always be inside something that corresponds to a block-level element //for formatting purposes Rectangle bounds = new Rectangle(); bounds.width = c.getExtents().width; validateBounds(bo... | public static void layoutContent(LayoutContext c, Box box, List contentList) { //Here we should always be inside something that corresponds to a block-level element //for formatting purposes Rectangle bounds = new Rectangle(); bounds.width = c.getExtents().width; validateBounds(bo... | 52,969 |
public static void layoutContent(LayoutContext c, Box box, List contentList) { //Here we should always be inside something that corresponds to a block-level element //for formatting purposes Rectangle bounds = new Rectangle(); bounds.width = c.getExtents().width; validateBounds(bo... | public static void layoutContent(LayoutContext c, Box box, List contentList) { //Here we should always be inside something that corresponds to a block-level element //for formatting purposes Rectangle bounds = new Rectangle(); bounds.width = c.getExtents().width; validateBounds(bo... | 52,970 |
private static LineBox newLine(Box box, Rectangle bounds, LineBox prev_line, LineMetrics blockLineMetrics, LayoutContext c) { LineBox curr_line = new LineBox(); c.pushStyle(CascadedStyle.emptyCascadedStyle); curr_line.setStyle(new Style(c.getCurrentStyle(), 0, c)); c.popStyle(); /... | private static LineBox newLine(Box box, Rectangle bounds, LineBox prev_line, LineMetrics blockLineMetrics, LayoutContext c) { LineBox curr_line = new LineBox(); c.pushStyle(CascadedStyle.emptyCascadedStyle); curr_line.setStyle(new Style(c.getCurrentStyle(), 0)); c.popStyle(); //if... | 52,971 |
private static void saveLine(LineBox line_to_save, LineBox prev_line, Rectangle bounds, LayoutContext c, Box block, int minHeight, LinkedList pushedOnFirstLine) { if (c.hasFirstLineStyles()) { //first pop element styles pushed on first line for (int i = 0... | private static void saveLine(LineBox line_to_save, LineBox prev_line, Rectangle bounds, LayoutContext c, Box block, int minHeight, List pushedOnFirstLine) { if (c.hasFirstLineStyles()) { //first pop element styles pushed on first line for (int i = 0; i < ... | 52,972 |
public synchronized boolean accept(Routable routable) { try { Message mess = (Message)routable; // Set the identifiers values Iterator i = identifiers.values().iterator(); while (i.hasNext()) { Identifier id = (Identifier) i.next(); ... | public synchronized boolean accept(Routable routable) { try { Message mess = (Message)routable; // Set the identifiers values Iterator i = identifiers.values().iterator(); while (i.hasNext()) { Identifier id = (Identifier) i.next(); ... | 52,973 |
protected static void postDeliver(SessionDelegate sess, String receiverID, Message m, boolean isConnectionConsumer) { try { //If this is the callback-handler for a connection consumer we don't want //to acknowledge or add anything to the tx for this session if (!isConnectionConsum... | protected static void postDeliver(SessionDelegate sess, String receiverID, Message m, boolean isConnectionConsumer) { try { //If this is the callback-handler for a connection consumer we don't want //to acknowledge or add anything to the tx for this session if (!isConnectionConsum... | 52,974 |
protected static void preDeliver(SessionDelegate sess, String receiverID, Message m, boolean isConnectionConsumer) { try { //If this is the callback-handler for a connection consumer we don't want //to acknowledge or add anything to the tx for this session if (!isConnectionConsume... | protected static void preDeliver(SessionDelegate sess, String receiverID, Message m, boolean isConnectionConsumer) { try { //If this is the callback-handler for a connection consumer we don't want //to acknowledge or add anything to the tx for this session if (!isConnectionConsume... | 52,975 |
ServerConsumerEndpoint(int id, Channel messageQueue, String queueName, ServerSessionEndpoint sessionEndpoint, String selector, boolean noLocal, JBossDestination dest) throws InvalidSelectorException { if (trace) { log.trace("constructing ... | ServerConsumerEndpoint(int id, Channel messageQueue, String queueName, ServerSessionEndpoint sessionEndpoint, String selector, boolean noLocal, JBossDestination dest) throws InvalidSelectorException { if (trace) { log.trace("constructing ... | 52,976 |
public Delivery handle(DeliveryObserver observer, MessageReference ref, Transaction tx) { if (trace) { log.trace(this + " receives " + ref + " for delivery"); } // This is ok to have outside lock - is volatile if (!clientAccepting) { if (trace) { log.trace(this + " the client is n... | public Delivery handle(DeliveryObserver observer, MessageReference ref, Transaction tx) { if (trace) { log.trace(this + " receives " + ref + " for delivery"); } // This is ok to have outside lock - is volatile if (!clientAccepting) { if (trace) { log.trace(this + " the client is n... | 52,977 |
public Delivery handle(DeliveryObserver observer, MessageReference ref, Transaction tx) { if (trace) { log.trace(this + " receives " + ref + " for delivery"); } // This is ok to have outside lock - is volatile if (!clientAccepting) { if (trace) { log.trace(this + " the client is n... | public Delivery handle(DeliveryObserver observer, MessageReference ref, Transaction tx) { if (trace) { log.trace(this + " receives " + ref + " for delivery"); } // This is ok to have outside lock - is volatile if (!clientAccepting) { if (trace) { log.trace(this + " the client is n... | 52,978 |
public Delivery handle(DeliveryObserver observer, MessageReference ref, Transaction tx) { if (trace) { log.trace(this + " receives " + ref + " for delivery"); } // This is ok to have outside lock - is volatile if (!clientAccepting) { if (trace) { log.trace(this + " the client is n... | public Delivery handle(DeliveryObserver observer, MessageReference ref, Transaction tx) { if (trace) { log.trace(this + " receives " + ref + " for delivery"); } // This is ok to have outside lock - is volatile if (!clientAccepting) { if (trace) { log.trace(this + " the client is n... | 52,979 |
public Delivery handle(DeliveryObserver observer, MessageReference ref, Transaction tx) { if (trace) { log.trace(this + " receives " + ref + " for delivery"); } // This is ok to have outside lock - is volatile if (!clientAccepting) { if (trace) { log.trace(this + " the client is n... | log.error("Failed to handle callback", e); return null; log.error("Failed to handle callback", e); return null; log.error("Failed to handle callback", e); return null; publiclog.error("Failed to handle callback", e); return null; Deliverylog.error("Failed to handle callback", e); return null; handle(DeliveryObserv... | 52,980 |
public Delivery handle(DeliveryObserver observer, MessageReference ref, Transaction tx) { if (trace) { log.trace(this + " receives " + ref + " for delivery"); } // This is ok to have outside lock - is volatile if (!clientAccepting) { if (trace) { log.trace(this + " the client is n... | public Delivery handle(DeliveryObserver observer, MessageReference ref, Transaction tx) { if (trace) { log.trace(this + " receives " + ref + " for delivery"); } // This is ok to have outside lock - is volatile if (!clientAccepting) { if (trace) { log.trace(this + " the client is n... | 52,981 |
protected Font createFont(RenderingContext ctx, Font root_font, float size, IdentValue weight, IdentValue style, IdentValue variant) { //Uu.p("creating font: " + root_font + " size = " + size + // " weight = " + weight + " style = " + style + " variant = " + variant); int font_const = Font.P... | protected static Font createFont(RenderingContext ctx, Font root_font, float size, IdentValue weight, IdentValue style, IdentValue variant) { //Uu.p("creating font: " + root_font + " size = " + size + // " weight = " + weight + " style = " + style + " variant = " + variant); int font_const =... | 52,982 |
protected String getFontInstanceHashName(String name, float size, IdentValue weight, IdentValue style, IdentValue variant) { return name + "-" + size + "-" + weight + "-" + style + "-" + variant; } | protected static String getFontInstanceHashName(String name, float size, IdentValue weight, IdentValue style, IdentValue variant) { return name + "-" + size + "-" + weight + "-" + style + "-" + variant; } | 52,983 |
SAXParser(boolean validating, boolean namespaceAware, boolean xIncludeAware) { this.validating = validating; this.namespaceAware = namespaceAware; this.xIncludeAware = xIncludeAware; } | public SAXParser() { this.validating = validating; this.namespaceAware = namespaceAware; this.xIncludeAware = xIncludeAware; } | 52,984 |
SAXParser(boolean validating, boolean namespaceAware, boolean xIncludeAware) { this.validating = validating; this.namespaceAware = namespaceAware; this.xIncludeAware = xIncludeAware; } | SAXParser(boolean validating, boolean namespaceAware, boolean xIncludeAware) { this.validating = validating; this.namespaceAware = namespaceAware; this.xIncludeAware = xIncludeAware; } | 52,985 |
public String getType(int index) { return reader.getAttributeType(index); } | public String getType(int index) { String ret = reader.getAttributeType(index); return ("ENUMERATION".equals(ret)) ? "NMTOKEN" : ret; } | 52,987 |
public String getURI(int index) { return reader.getAttributeNamespace(index); } | public String getURI(int index) { String ret = reader.getAttributeNamespace(index); return (ret == null) ? "" : ret; } | 52,988 |
public synchronized void parse(InputSource input) throws IOException, SAXException { reset(); String systemId = input.getSystemId(); InputStream in = input.getByteStream(); if (in != null) parser = new XMLParser(in, systemId, validating, nam... | public synchronized void parse(InputSource input) throws IOException, SAXException { reset(); String systemId = input.getSystemId(); InputStream in = input.getByteStream(); if (in != null) parser = new XMLParser(in, systemId, validating, nam... | 52,989 |
public synchronized void parse(InputSource input) throws IOException, SAXException { reset(); String systemId = input.getSystemId(); InputStream in = input.getByteStream(); if (in != null) parser = new XMLParser(in, systemId, validating, nam... | public synchronized void parse(InputSource input) throws IOException, SAXException { reset(); String systemId = input.getSystemId(); InputStream in = input.getByteStream(); if (in != null) parser = new XMLParser(in, systemId, validating, nam... | 52,990 |
public synchronized void parse(InputSource input) throws IOException, SAXException { reset(); String systemId = input.getSystemId(); InputStream in = input.getByteStream(); if (in != null) parser = new XMLParser(in, systemId, validating, nam... | public synchronized void parse(InputSource input) throws IOException, SAXException { reset(); String systemId = input.getSystemId(); InputStream in = input.getByteStream(); if (in != null) parser = new XMLParser(in, systemId, validating, nam... | 52,991 |
public synchronized void parse(InputSource input) throws IOException, SAXException { reset(); String systemId = input.getSystemId(); InputStream in = input.getByteStream(); if (in != null) parser = new XMLParser(in, systemId, validating, nam... | public synchronized void parse(InputSource input) throws IOException, SAXException { reset(); String systemId = input.getSystemId(); InputStream in = input.getByteStream(); if (in != null) parser = new XMLParser(in, systemId, validating, nam... | 52,992 |
public synchronized void parse(InputSource input) throws IOException, SAXException { reset(); String systemId = input.getSystemId(); InputStream in = input.getByteStream(); if (in != null) parser = new XMLParser(in, systemId, validating, nam... | public synchronized void parse(InputSource input) throws IOException, SAXException { reset(); String systemId = input.getSystemId(); InputStream in = input.getByteStream(); if (in != null) parser = new XMLParser(in, systemId, validating, nam... | 52,993 |
public synchronized void parse(InputSource input) throws IOException, SAXException { reset(); String systemId = input.getSystemId(); InputStream in = input.getByteStream(); if (in != null) parser = new XMLParser(in, systemId, validating, nam... | } else if ('e' == c) { Object entity = doctype.getEntity(name); if (entity instanceof String) { if (declHandler != null) declHandler.internalEntityDecl(name, (String) entity); } else { XMLParser.ExternalIds ids = (XMLParser.ExternalIds) entity; if (ids.notationName != null) { if (dtdHandler != null) { String pub = ids... | 52,994 |
public synchronized void parse(InputSource input) throws IOException, SAXException { reset(); String systemId = input.getSystemId(); InputStream in = input.getByteStream(); if (in != null) parser = new XMLParser(in, systemId, validating, nam... | public synchronized void parse(InputSource input) throws IOException, SAXException { String systemId = input.getSystemId(); InputStream in = input.getByteStream(); if (in != null) parser = new XMLParser(in, systemId, validating, namespaceAwa... | 52,995 |
public InputStream resolve(String uri) throws XMLStreamException { if (entityResolver != null) { try { InputSource input = entityResolver.resolveEntity(null, uri); if (input != null) return input.getByteStream(); } catch (SAXException e) ... | public InputStream resolve(String uri) throws XMLStreamException { if (entityResolver != null) { try { InputSource input = entityResolver.resolveEntity(null, uri); if (input != null) return input.getByteStream(); } catch (SAXException e) ... | 52,998 |
public void setProperty(String name, Object value) throws SAXNotRecognizedException, SAXNotSupportedException { if (parser != null) throw new IllegalStateException("parsing in progress"); String FEATURES = "http://xml.org/sax/features/"; String PROPERTIES = "http://xml.org/sax/properties/"; if ((... | public void setProperty(String name, Object value) throws SAXNotRecognizedException, SAXNotSupportedException { if (parser != null) throw new IllegalStateException("parsing in progress"); String FEATURES = "http://xml.org/sax/features/"; String PROPERTIES = "http://xml.org/sax/properties/"; if ((... | 52,999 |
public void setProperty(String name, Object value) throws SAXNotRecognizedException, SAXNotSupportedException { if (parser != null) throw new IllegalStateException("parsing in progress"); String FEATURES = "http://xml.org/sax/features/"; String PROPERTIES = "http://xml.org/sax/properties/"; if ((... | public void setProperty(String name, Object value) throws SAXNotRecognizedException, SAXNotSupportedException { if (parser != null) throw new IllegalStateException("parsing in progress"); String FEATURES = "http://xml.org/sax/features/"; String PROPERTIES = "http://xml.org/sax/properties/"; if ((... | 53,000 |
public void setProperty(String name, Object value) throws SAXNotRecognizedException, SAXNotSupportedException { if (parser != null) throw new IllegalStateException("parsing in progress"); String FEATURES = "http://xml.org/sax/features/"; String PROPERTIES = "http://xml.org/sax/properties/"; if ((... | public void setProperty(String name, Object value) throws SAXNotRecognizedException, SAXNotSupportedException { if (parser != null) throw new IllegalStateException("parsing in progress"); String FEATURES = "http://xml.org/sax/features/"; String PROPERTIES = "http://xml.org/sax/properties/"; if ((... | 53,001 |
public void setProperty(String name, Object value) throws SAXNotRecognizedException, SAXNotSupportedException { if (parser != null) throw new IllegalStateException("parsing in progress"); String FEATURES = "http://xml.org/sax/features/"; String PROPERTIES = "http://xml.org/sax/properties/"; if ((... | public void setProperty(String name, Object value) throws SAXNotRecognizedException, SAXNotSupportedException { if (parser != null) throw new IllegalStateException("parsing in progress"); String FEATURES = "http://xml.org/sax/features/"; String PROPERTIES = "http://xml.org/sax/properties/"; if ((... | 53,002 |
private void OpcodeNotImplemented(String name) { System.out.println(name + " not implemented"); } | private void OpcodeNotImplemented(String name) { System.out.println(name + " not implemented"); } | 53,004 |
private void PrepareForOperation(Item destAndSource, Item source) { // WARNING: source was on top of the virtual stack (thus higher than destAndSource) // x86 can only deal with one complex argument // destAndSource must be a register source.loadIf(eContext, (Item.STACK | Item.FREGISTER)); destAndSource.load(eCon... | private void PrepareForOperation(Item destAndSource, Item source) { // WARNING: source was on top of the virtual stack (thus higher than destAndSource) // x86 can only deal with one complex argument // destAndSource must be a register source.loadIf(eContext, (Item.STACK | Item.FREGISTER)); destAndSource.load(eCon... | 53,005 |
public X86BytecodeVisitor(NativeStream outputStream, CompiledMethod cm, boolean isBootstrap, X86CompilerContext context) { this.os = (AbstractX86Stream) outputStream; this.context = context; this.helper = new X86CompilerHelper(os, context, isBootstrap); this.cm = cm; this.slotSize = VmX86Architecture.SLOT_SIZE... | public X86BytecodeVisitor(NativeStream outputStream, CompiledMethod cm, boolean isBootstrap, X86CompilerContext context) { this.os = (AbstractX86Stream) outputStream; this.context = context; this.helper = new X86CompilerHelper(os, context, isBootstrap); this.cm = cm; this.slotSize = VmX86Architecture.SLOT_SIZE... | 53,006 |
private void assertCondition(boolean cond) { if (!cond) throw new Error("assert failed"); } | private void assertCondition(boolean cond) { if (!cond) throw new Error("assert failed"); } | 53,007 |
private final void checkBounds(RefItem ref, IntItem index) { /* * helper.writePUSH(arrayRef, VmArray.LENGTH_OFFSET * slotSize); * os.writeDEC(SP, 0); * helper.writePUSH(0); * os.writeBOUND(index, SP, 0); * os.writeLEA(SP, SP, 8); */ final Label ok = new Label(curInstrLabel + "$$cbok"); // CMP length, in... | private final void checkBounds(RefItem ref, IntItem index) { /* * helper.writePUSH(arrayRef, VmArray.LENGTH_OFFSET * slotSize); * os.writeDEC(SP, 0); * helper.writePUSH(0); * os.writeBOUND(index, SP, 0); * os.writeLEA(SP, SP, 8); */ final Label ok = new Label(curInstrLabel + "$$cbok"); // CMP length, in... | 53,008 |
private final void checkBounds(RefItem ref, IntItem index) { /* * helper.writePUSH(arrayRef, VmArray.LENGTH_OFFSET * slotSize); * os.writeDEC(SP, 0); * helper.writePUSH(0); * os.writeBOUND(index, SP, 0); * os.writeLEA(SP, SP, 8); */ final Label ok = new Label(curInstrLabel + "$$cbok"); // CMP length, in... | private final void checkBounds(RefItem ref, IntItem index) { /* * helper.writePUSH(arrayRef, VmArray.LENGTH_OFFSET * slotSize); * os.writeDEC(SP, 0); * helper.writePUSH(0); * os.writeBOUND(index, SP, 0); * os.writeLEA(SP, SP, 8); */ final Label ok = new Label(curInstrLabel + "$$cbok"); // CMP length, in... | 53,009 |
public void endBasicBlock() { //TODO: flush vstack if (log) { os.log("End of basic block"); } } | public void endBasicBlock() { //TODO: flush vstack if (log) { os.log("End of basic block"); } } | 53,010 |
public void endInlinedMethod(VmMethod previousMethod) { //TODO: port to orp-style helper.setMethod(previousMethod); os.setObjectRef(endOfInlineLabel); } | public void endInlinedMethod(VmMethod previousMethod) { //TODO: port to orp-style helper.setMethod(previousMethod); os.setObjectRef(endOfInlineLabel); } | 53,011 |
public void endInstruction() { //TODO: port to orp-style // Nothing to do here } | public void endInstruction() { //TODO: port to orp-style // Nothing to do here } | 53,012 |
public void endMethod() { //TODO: port to orp-style stackFrame.emitTrailer(maxLocals); } | public void endMethod() { //TODO: port to orp-style stackFrame.emitTrailer(maxLocals); } | 53,013 |
private final void instanceOf(Label trueLabel) { //TODO: port to orp-style final Label loopLabel = new Label(this.curInstrLabel + "loop"); final Label notInstanceOfLabel = new Label(this.curInstrLabel + "notInstanceOf"); /* Is objectref null? */ os.writeTEST(ECX, ECX); os.writeJCC(notInstanceOfLabel, X86Const... | private final void instanceOf(Label trueLabel) { //TODO: port to orp-style final Label loopLabel = new Label(this.curInstrLabel + "loop"); final Label notInstanceOfLabel = new Label(this.curInstrLabel + "notInstanceOf"); /* Is objectref null? */ os.writeTEST(ECX, ECX); os.writeJCC(notInstanceOfLabel, X86Const... | 53,014 |
private final void instanceOf(Label trueLabel) { //TODO: port to orp-style final Label loopLabel = new Label(this.curInstrLabel + "loop"); final Label notInstanceOfLabel = new Label(this.curInstrLabel + "notInstanceOf"); /* Is objectref null? */ os.writeTEST(ECX, ECX); os.writeJCC(notInstanceOfLabel, X86Const... | private final void instanceOf(Label trueLabel) { //TODO: port to orp-style final Label loopLabel = new Label(this.curInstrLabel + "loop"); final Label notInstanceOfLabel = new Label(this.curInstrLabel + "notInstanceOf"); /* Is objectref null? */ os.writeTEST(ECX, ECX); os.writeJCC(notInstanceOfLabel, X86Const... | 53,015 |
private final void instanceOf(Label trueLabel) { //TODO: port to orp-style final Label loopLabel = new Label(this.curInstrLabel + "loop"); final Label notInstanceOfLabel = new Label(this.curInstrLabel + "notInstanceOf"); /* Is objectref null? */ os.writeTEST(ECX, ECX); os.writeJCC(notInstanceOfLabel, X86Const... | private final void instanceOf(Label trueLabel) { //TODO: port to orp-style final Label loopLabel = new Label(this.curInstrLabel + "loop"); final Label notInstanceOfLabel = new Label(this.curInstrLabel + "notInstanceOf"); /* Is objectref null? */ os.writeTEST(ECX, ECX); os.writeJCC(notInstanceOfLabel, X86Const... | 53,016 |
private void pushReturnValue(String signature){ char t = signature.charAt(signature.length()-1); if (t != 'V') { int type = Item.SignatureToType(t); vstack.pushStack(type); } } | private void pushReturnValue(String signature){ char t = signature.charAt(signature.length()-1); if (t != 'V') { int type = Item.SignatureToType(t); vstack.pushStack(type); } } | 53,017 |
public void setParser(BytecodeParser parser) { // Nothing to do here } | public void setParser(BytecodeParser parser) { // Nothing to do here } | 53,018 |
public void startBasicBlock(BasicBlock bb) { if (log) { os.log("Start of basic block " + bb); } helper.reset(); startOfBB = true; this.vstack = new VirtualStack(); } | public void startBasicBlock(BasicBlock bb) { if (log) { os.log("Start of basic block " + bb); } helper.reset(); startOfBB = true; this.vstack = new VirtualStack(); } | 53,019 |
public void startInlinedMethod(VmMethod inlinedMethod, int newMaxLocals) { //TODO: port to orp-style maxLocals = newMaxLocals; endOfInlineLabel = new Label(curInstrLabel + "_end_of_inline"); helper.startInlinedMethod(inlinedMethod, curInstrLabel); } | public void startInlinedMethod(VmMethod inlinedMethod, int newMaxLocals) { //TODO: port to orp-style maxLocals = newMaxLocals; endOfInlineLabel = new Label(curInstrLabel + "_end_of_inline"); helper.startInlinedMethod(inlinedMethod, curInstrLabel); } | 53,020 |
public void startInstruction(int address) { //TODO: port to orp-style this.curInstrLabel = helper.getInstrLabel(address); if (startOfBB) { os.setObjectRef(curInstrLabel); startOfBB = false; } final int offset = os.getLength() - startOffset; cm.add(address, offset); } | public void startInstruction(int address) { //TODO: port to orp-style this.curInstrLabel = helper.getInstrLabel(address); if (startOfBB) { os.setObjectRef(curInstrLabel); startOfBB = false; } final int offset = os.getLength() - startOffset; cm.add(address, offset); } | 53,021 |
public void startMethod(VmMethod method) { this.maxLocals = method.getBytecode().getNoLocals(); this.loader = method.getDeclaringClass().getLoader(); helper.setMethod(method); this.startOffset = os.getLength(); this.stackFrame = new X86StackFrame(os, helper, method, context, cm); stackFrame.emitHeader(); } | public void startMethod(VmMethod method) { this.maxLocals = method.getBytecode().getNoLocals(); this.loader = method.getDeclaringClass().getLoader(); helper.setMethod(method); this.startOffset = os.getLength(); this.stackFrame = new X86StackFrame(os, helper, method, context, cm); stackFrame.emitHeader(); } | 53,022 |
public final void visit_aaload() { IntItem idx = vstack.popInt(); RefItem ref = vstack.popRef(); idx.loadIf(eContext, ~Item.CONSTANT); ref.load(eContext); Register refReg = ref.getRegister(); checkBounds(ref, idx); if (idx.getKind() == Item.CONSTANT) { final int offset = idx.getValue(); os.writeMOV(INTSIZE,... | public final void visit_aaload() { IntItem idx = vstack.popInt(); RefItem ref = vstack.popRef(); idx.loadIf(eContext, ~Item.CONSTANT); ref.load(eContext); Register refReg = ref.getRegister(); checkBounds(ref, idx); if (idx.getKind() == Item.CONSTANT) { final int offset = idx.getValue(); os.writeMOV(INTSIZE,... | 53,023 |
public final void visit_aaload() { IntItem idx = vstack.popInt(); RefItem ref = vstack.popRef(); idx.loadIf(eContext, ~Item.CONSTANT); ref.load(eContext); Register refReg = ref.getRegister(); checkBounds(ref, idx); if (idx.getKind() == Item.CONSTANT) { final int offset = idx.getValue(); os.writeMOV(INTSIZE,... | public final void visit_aaload() { IntItem idx = vstack.popInt(); RefItem ref = vstack.popRef(); idx.loadIf(eContext, ~Item.CONSTANT); ref.load(eContext); Register refReg = ref.getRegister(); checkBounds(ref, idx); if (idx.getKind() == Item.CONSTANT) { final int offset = idx.getValue(); os.writeMOV(INTSIZE,... | 53,024 |
public final void visit_aastore() { RefItem val = vstack.popRef(); IntItem idx = vstack.popInt(); RefItem ref = vstack.popRef(); //IMPROVE: optimize case with const value val.load(eContext); idx.loadIf(eContext, ~Item.CONSTANT); ref.load(eContext); Register r = ref.getRegister(); checkBounds(ref, idx); i... | public final void visit_aastore() { RefItem val = vstack.popRef(); IntItem idx = vstack.popInt(); RefItem ref = vstack.popRef(); //IMPROVE: optimize case with const value val.load(eContext); idx.loadIf(eContext, ~Item.CONSTANT); ref.load(eContext); Register r = ref.getRegister(); checkBounds(ref, idx); i... | 53,025 |
public final void visit_aastore() { RefItem val = vstack.popRef(); IntItem idx = vstack.popInt(); RefItem ref = vstack.popRef(); //IMPROVE: optimize case with const value val.load(eContext); idx.loadIf(eContext, ~Item.CONSTANT); ref.load(eContext); Register r = ref.getRegister(); checkBounds(ref, idx); i... | public final void visit_aastore() { RefItem val = vstack.popRef(); IntItem idx = vstack.popInt(); RefItem ref = vstack.popRef(); //IMPROVE: optimize case with const value val.load(eContext); idx.loadIf(eContext, ~Item.CONSTANT); ref.load(eContext); Register r = ref.getRegister(); checkBounds(ref, idx); i... | 53,026 |
public final void visit_aconst_null() { vstack.pushItem(RefItem.createConst(null));// os.writeMOV_Const(T0, 0);// helper.writePUSH(T0); } | public final void visit_aconst_null() { vstack.pushItem(RefItem.createConst(null));// os.writeMOV_Const(T0, 0);// helper.writePUSH(T0); } | 53,027 |
public final void visit_aload(int index) { vstack.pushItem(RefItem.createLocal(stackFrame.getEbpOffset(index)));// final int ebpOfs = stackFrame.getEbpOffset(index);// os.writeMOV(INTSIZE, T0, FP, ebpOfs);// helper.writePUSH(T0); } | public final void visit_aload(int index) { vstack.pushItem(RefItem.createLocal(stackFrame.getEbpOffset(index)));// final int ebpOfs = stackFrame.getEbpOffset(index);// os.writeMOV(INTSIZE, T0, FP, ebpOfs);// helper.writePUSH(T0); } | 53,028 |
public final void visit_anewarray(VmConstClass classRef) { //TODO: port to orp-style OpcodeNotImplemented("anewarray"); vstack.push(eContext); writeResolveAndLoadClassToEAX(classRef, S0); helper.writePOP(S0); /* Count */ stackFrame.writePushMethodRef(); helper.writePUSH(EAX); /* Class */ helper.writePUSH(S0)... | public final void visit_anewarray(VmConstClass classRef) { //TODO: port to orp-style OpcodeNotImplemented("anewarray"); vstack.push(eContext); writeResolveAndLoadClassToEAX(classRef, S0); helper.writePOP(S0); /* Count */ stackFrame.writePushMethodRef(); helper.writePUSH(EAX); /* Class */ helper.writePUSH(S0)... | 53,029 |
public final void visit_anewarray(VmConstClass classRef) { //TODO: port to orp-style OpcodeNotImplemented("anewarray"); vstack.push(eContext); writeResolveAndLoadClassToEAX(classRef, S0); helper.writePOP(S0); /* Count */ stackFrame.writePushMethodRef(); helper.writePUSH(EAX); /* Class */ helper.writePUSH(S0)... | public final void visit_anewarray(VmConstClass classRef) { //TODO: port to orp-style OpcodeNotImplemented("anewarray"); vstack.push(eContext); writeResolveAndLoadClassToEAX(classRef, S0); helper.writePOP(S0); /* Count */ stackFrame.writePushMethodRef(); helper.writePUSH(EAX); /* Class */ helper.writePUSH(S0)... | 53,030 |
public final void visit_anewarray(VmConstClass classRef) { //TODO: port to orp-style OpcodeNotImplemented("anewarray"); vstack.push(eContext); writeResolveAndLoadClassToEAX(classRef, S0); helper.writePOP(S0); /* Count */ stackFrame.writePushMethodRef(); helper.writePUSH(EAX); /* Class */ helper.writePUSH(S0)... | public final void visit_anewarray(VmConstClass classRef) { //TODO: port to orp-style OpcodeNotImplemented("anewarray"); vstack.push(eContext); writeResolveAndLoadClassToEAX(classRef, S0); helper.writePOP(S0); /* Count */ stackFrame.writePushMethodRef(); helper.writePUSH(EAX); /* Class */ helper.writePUSH(S0)... | 53,031 |
public final void visit_areturn() { vstack.requestRegister(eContext, EAX); RefItem i = vstack.popRef(); i.loadTo(eContext, EAX); // helper.writePOP(T0); visit_return(); } | public final void visit_areturn() { vstack.requestRegister(eContext, EAX); RefItem i = vstack.popRef(); i.loadTo(eContext, EAX); // helper.writePOP(T0); visit_return(); } | 53,032 |
public final void visit_arraylength() { //TODO: port to orp-style OpcodeNotImplemented("arraylength"); vstack.push(eContext); RefItem ref = vstack.popRef(); helper.writePOP(T0); // Arrayref os.writeMOV(INTSIZE, T1, T0, VmArray.LENGTH_OFFSET * slotSize); helper.writePUSH(T1); ref.release(eContext); vstack.... | public final void visit_arraylength() { //TODO: port to orp-style OpcodeNotImplemented("arraylength"); vstack.push(eContext); RefItem ref = vstack.popRef(); helper.writePOP(T0); // Arrayref os.writeMOV(INTSIZE, T1, T0, VmArray.LENGTH_OFFSET * slotSize); helper.writePUSH(T1); ref.release(eContext); vstack.... | 53,033 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.