rem stringlengths 0 477k | add stringlengths 0 313k | context stringlengths 6 599k | meta stringlengths 141 403 |
|---|---|---|---|
while (ISSPACE(c)) { | while (isSpace(c)) { | private int parse_quotedwords(int term, int paren) { Node qwords = null; int strstart; int c; int nest = 0; strstart = ruby.getSourceLine(); newtok(); c = nextc(); while (ISSPACE(c)) { c = nextc(); } /* * skip preceding spaces... | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/d31a76ee29d5978a9bec41e3ac9134cee024bcab/DefaultRubyScanner.java/buggy/org/jruby/parser/DefaultRubyScanner.java |
if (!ISSPACE(c)) { | if (!isSpace(c)) { | private int parse_quotedwords(int term, int paren) { Node qwords = null; int strstart; int c; int nest = 0; strstart = ruby.getSourceLine(); newtok(); c = nextc(); while (ISSPACE(c)) { c = nextc(); } /* * skip preceding spaces... | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/d31a76ee29d5978a9bec41e3ac9134cee024bcab/DefaultRubyScanner.java/buggy/org/jruby/parser/DefaultRubyScanner.java |
} else if (ISSPACE(c)) { | } else if (isSpace(c)) { | private int parse_quotedwords(int term, int paren) { Node qwords = null; int strstart; int c; int nest = 0; strstart = ruby.getSourceLine(); newtok(); c = nextc(); while (ISSPACE(c)) { c = nextc(); } /* * skip preceding spaces... | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/d31a76ee29d5978a9bec41e3ac9134cee024bcab/DefaultRubyScanner.java/buggy/org/jruby/parser/DefaultRubyScanner.java |
tokfix(); | private int parse_quotedwords(int term, int paren) { Node qwords = null; int strstart; int c; int nest = 0; strstart = ruby.getSourceLine(); newtok(); c = nextc(); while (ISSPACE(c)) { c = nextc(); } /* * skip preceding spaces... | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/d31a76ee29d5978a9bec41e3ac9134cee024bcab/DefaultRubyScanner.java/buggy/org/jruby/parser/DefaultRubyScanner.java | |
while (ISSPACE(c)) { | while (isSpace(c)) { | private int parse_quotedwords(int term, int paren) { Node qwords = null; int strstart; int c; int nest = 0; strstart = ruby.getSourceLine(); newtok(); c = nextc(); while (ISSPACE(c)) { c = nextc(); } /* * skip preceding spaces... | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/d31a76ee29d5978a9bec41e3ac9134cee024bcab/DefaultRubyScanner.java/buggy/org/jruby/parser/DefaultRubyScanner.java |
tokfix(); | private int parse_quotedwords(int term, int paren) { Node qwords = null; int strstart; int c; int nest = 0; strstart = ruby.getSourceLine(); newtok(); c = nextc(); while (ISSPACE(c)) { c = nextc(); } /* * skip preceding spaces... | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/d31a76ee29d5978a9bec41e3ac9134cee024bcab/DefaultRubyScanner.java/buggy/org/jruby/parser/DefaultRubyScanner.java | |
tokfix(); | private int parse_regx(int term, int paren) { int c; char kcode = 0; boolean once = false; int nest = 0; int options = 0; int re_start = ruby.getSourceLine(); Node list = null; newtok(); regx_end : while ((c = nextc()) != -1) { if (c == term ... | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/d31a76ee29d5978a9bec41e3ac9134cee024bcab/DefaultRubyScanner.java/buggy/org/jruby/parser/DefaultRubyScanner.java | |
yyVal = rb_reg_new(tok(), toklen(), options | kcode); | yyVal = newRegexp(tok(), toklen(), options | kcode); | private int parse_regx(int term, int paren) { int c; char kcode = 0; boolean once = false; int nest = 0; int options = 0; int re_start = ruby.getSourceLine(); Node list = null; newtok(); regx_end : while ((c = nextc()) != -1) { if (c == term ... | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/d31a76ee29d5978a9bec41e3ac9134cee024bcab/DefaultRubyScanner.java/buggy/org/jruby/parser/DefaultRubyScanner.java |
yyVal = RubyString.newString(ruby, lex_curline, lex_pend - 1); lex_p = lex_pend; | yyVal = RubyString.newString(ruby, support.readLine()); | private int parse_string(int func, int term, int paren) { int c; Node list = null; int strstart; int nest = 0; if (func == '\'') { return parse_qstring(term, paren); } if (func == 0) { // read 1 line for heredoc // -1 for chomp ... | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/d31a76ee29d5978a9bec41e3ac9134cee024bcab/DefaultRubyScanner.java/buggy/org/jruby/parser/DefaultRubyScanner.java |
tokfix(); | private int parse_string(int func, int term, int paren) { int c; Node list = null; int strstart; int nest = 0; if (func == '\'') { return parse_qstring(term, paren); } if (func == 0) { // read 1 line for heredoc // -1 for chomp ... | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/d31a76ee29d5978a9bec41e3ac9134cee024bcab/DefaultRubyScanner.java/buggy/org/jruby/parser/DefaultRubyScanner.java | |
return lex_p != lex_pend && c == lex_curline.charAt(lex_p); | return source.isNext((char) c); | private boolean peek(int c) { return lex_p != lex_pend && c == lex_curline.charAt(lex_p); } | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/d31a76ee29d5978a9bec41e3ac9134cee024bcab/DefaultRubyScanner.java/buggy/org/jruby/parser/DefaultRubyScanner.java |
if (c == -1) { return; } lex_p--; | source.unread(); | private void pushback(int c) { if (c == -1) { return; } lex_p--; } | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/d31a76ee29d5978a9bec41e3ac9134cee024bcab/DefaultRubyScanner.java/buggy/org/jruby/parser/DefaultRubyScanner.java |
c = (int) scan_hex(lex_curline, lex_p, 2, numlen); lex_p += numlen[0]; | c = (int) support.readHexAsInt(2); | private int read_escape() { int c; switch (c = nextc()) { case '\\' : // Backslash return c; case 'n' : // newline return '\n'; case 't' : // horizontal tab return '\t'; case 'r' : // carriage-return ... | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/d31a76ee29d5978a9bec41e3ac9134cee024bcab/DefaultRubyScanner.java/buggy/org/jruby/parser/DefaultRubyScanner.java |
boolean is_float; boolean seen_point; boolean seen_e; boolean seen_uc; | boolean is_float = false; boolean seen_point = false; boolean seen_e = false; boolean seen_uc = false; | private int start_num(int c) { boolean is_float; boolean seen_point; boolean seen_e; boolean seen_uc; is_float = seen_point = seen_e = seen_uc = false; ph.setLexState(LexState.EXPR_END); newtok(); if (c == '-' || c == '+') { tokadd(c); c ... | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/d31a76ee29d5978a9bec41e3ac9134cee024bcab/DefaultRubyScanner.java/buggy/org/jruby/parser/DefaultRubyScanner.java |
is_float = seen_point = seen_e = seen_uc = false; | private int start_num(int c) { boolean is_float; boolean seen_point; boolean seen_e; boolean seen_uc; is_float = seen_point = seen_e = seen_uc = false; ph.setLexState(LexState.EXPR_END); newtok(); if (c == '-' || c == '+') { tokadd(c); c ... | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/d31a76ee29d5978a9bec41e3ac9134cee024bcab/DefaultRubyScanner.java/buggy/org/jruby/parser/DefaultRubyScanner.java | |
if (!ISXDIGIT(c)) { | if (!isHexDigit(c)) { | private int start_num(int c) { boolean is_float; boolean seen_point; boolean seen_e; boolean seen_uc; is_float = seen_point = seen_e = seen_uc = false; ph.setLexState(LexState.EXPR_END); newtok(); if (c == '-' || c == '+') { tokadd(c); c ... | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/d31a76ee29d5978a9bec41e3ac9134cee024bcab/DefaultRubyScanner.java/buggy/org/jruby/parser/DefaultRubyScanner.java |
tokfix(); | private int start_num(int c) { boolean is_float; boolean seen_point; boolean seen_e; boolean seen_uc; is_float = seen_point = seen_e = seen_uc = false; ph.setLexState(LexState.EXPR_END); newtok(); if (c == '-' || c == '+') { tokadd(c); c ... | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/d31a76ee29d5978a9bec41e3ac9134cee024bcab/DefaultRubyScanner.java/buggy/org/jruby/parser/DefaultRubyScanner.java | |
yyVal = rb_cstr2inum(tok(), 16); | yyVal = getNumFromString(tok(), 16); | private int start_num(int c) { boolean is_float; boolean seen_point; boolean seen_e; boolean seen_uc; is_float = seen_point = seen_e = seen_uc = false; ph.setLexState(LexState.EXPR_END); newtok(); if (c == '-' || c == '+') { tokadd(c); c ... | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/d31a76ee29d5978a9bec41e3ac9134cee024bcab/DefaultRubyScanner.java/buggy/org/jruby/parser/DefaultRubyScanner.java |
tokfix(); | private int start_num(int c) { boolean is_float; boolean seen_point; boolean seen_e; boolean seen_uc; is_float = seen_point = seen_e = seen_uc = false; ph.setLexState(LexState.EXPR_END); newtok(); if (c == '-' || c == '+') { tokadd(c); c ... | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/d31a76ee29d5978a9bec41e3ac9134cee024bcab/DefaultRubyScanner.java/buggy/org/jruby/parser/DefaultRubyScanner.java | |
yyVal = rb_cstr2inum(tok(), 2); | yyVal = getNumFromString(tok(), 2); | private int start_num(int c) { boolean is_float; boolean seen_point; boolean seen_e; boolean seen_uc; is_float = seen_point = seen_e = seen_uc = false; ph.setLexState(LexState.EXPR_END); newtok(); if (c == '-' || c == '+') { tokadd(c); c ... | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/d31a76ee29d5978a9bec41e3ac9134cee024bcab/DefaultRubyScanner.java/buggy/org/jruby/parser/DefaultRubyScanner.java |
tokfix(); | private int start_num(int c) { boolean is_float; boolean seen_point; boolean seen_e; boolean seen_uc; is_float = seen_point = seen_e = seen_uc = false; ph.setLexState(LexState.EXPR_END); newtok(); if (c == '-' || c == '+') { tokadd(c); c ... | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/d31a76ee29d5978a9bec41e3ac9134cee024bcab/DefaultRubyScanner.java/buggy/org/jruby/parser/DefaultRubyScanner.java | |
yyVal = rb_cstr2inum(tok(), 8); | yyVal = getNumFromString(tok(), 8); | private int start_num(int c) { boolean is_float; boolean seen_point; boolean seen_e; boolean seen_uc; is_float = seen_point = seen_e = seen_uc = false; ph.setLexState(LexState.EXPR_END); newtok(); if (c == '-' || c == '+') { tokadd(c); c ... | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/d31a76ee29d5978a9bec41e3ac9134cee024bcab/DefaultRubyScanner.java/buggy/org/jruby/parser/DefaultRubyScanner.java |
if (!is_identchar(c)) { | if (!isIdentifierChar(c)) { | private Node str_extend(Node list, int term) { int c; int brace = -1; RubyObject ss; Node node; int nest; c = nextc(); switch (c) { case '$' : case '@' : case '{' : break; default : tokadd('#')... | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/d31a76ee29d5978a9bec41e3ac9134cee024bcab/DefaultRubyScanner.java/buggy/org/jruby/parser/DefaultRubyScanner.java |
while (is_identchar(c)) { | while (isIdentifierChar(c)) { | private Node str_extend(Node list, int term) { int c; int brace = -1; RubyObject ss; Node node; int nest; c = nextc(); switch (c) { case '$' : case '@' : case '{' : break; default : tokadd('#')... | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/d31a76ee29d5978a9bec41e3ac9134cee024bcab/DefaultRubyScanner.java/buggy/org/jruby/parser/DefaultRubyScanner.java |
while (is_identchar(c)) { | while (isIdentifierChar(c)) { | private Node str_extend(Node list, int term) { int c; int brace = -1; RubyObject ss; Node node; int nest; c = nextc(); switch (c) { case '$' : case '@' : case '{' : break; default : tokadd('#')... | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/d31a76ee29d5978a9bec41e3ac9134cee024bcab/DefaultRubyScanner.java/buggy/org/jruby/parser/DefaultRubyScanner.java |
tokfix(); | private Node str_extend(Node list, int term) { int c; int brace = -1; RubyObject ss; Node node; int nest; c = nextc(); switch (c) { case '$' : case '@' : case '{' : break; default : tokadd('#')... | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/d31a76ee29d5978a9bec41e3ac9134cee024bcab/DefaultRubyScanner.java/buggy/org/jruby/parser/DefaultRubyScanner.java | |
tokfix(); | private Node str_extend(Node list, int term) { int c; int brace = -1; RubyObject ss; Node node; int nest; c = nextc(); switch (c) { case '$' : case '@' : case '{' : break; default : tokadd('#')... | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/d31a76ee29d5978a9bec41e3ac9134cee024bcab/DefaultRubyScanner.java/buggy/org/jruby/parser/DefaultRubyScanner.java | |
int[] numlen = new int[1]; scan_hex(lex_curline, lex_p, 2, numlen); while (numlen[0]-- != 0) { tokadd(nextc()); | String hex = support.readHex(2); for (int i = 0; i < hex.length(); i++) { tokadd(hex.charAt(i)); | private int tokadd_escape(int term) { /* * FIX 1.6.5 */ int c; switch (c = nextc()) { case '\n' : return 0; /* * just ignore */ case '0' : case '1' : case '2' : ... | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/d31a76ee29d5978a9bec41e3ac9134cee024bcab/DefaultRubyScanner.java/buggy/org/jruby/parser/DefaultRubyScanner.java |
private void yyerror(String msg) { System.err.println(msg); | private final void yyerror(String msg) { ph.rb_errmess(msg); | private void yyerror(String msg) { System.err.println(msg); } | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/d31a76ee29d5978a9bec41e3ac9134cee024bcab/DefaultRubyScanner.java/buggy/org/jruby/parser/DefaultRubyScanner.java |
kwtable kw; | Keyword kw; | private int yylex() { int c; int space_seen = 0; kwtable kw; retry : for (;;) { switch (c = nextc()) { case '\0' : // NUL case '\004' : // ^D case '\032' : // ^Z case -1 : //end of script. return 0;... | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/d31a76ee29d5978a9bec41e3ac9134cee024bcab/DefaultRubyScanner.java/buggy/org/jruby/parser/DefaultRubyScanner.java |
if (IS_ARG() && space_seen != 0 && !ISSPACE(c)) { | if (isArgState() && space_seen != 0 && !isSpace(c)) { | private int yylex() { int c; int space_seen = 0; kwtable kw; retry : for (;;) { switch (c = nextc()) { case '\0' : // NUL case '\004' : // ^D case '\032' : // ^Z case -1 : //end of script. return 0;... | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/d31a76ee29d5978a9bec41e3ac9134cee024bcab/DefaultRubyScanner.java/buggy/org/jruby/parser/DefaultRubyScanner.java |
if (lex_p == 1) { | if (source.getColumn() == 1) { | private int yylex() { int c; int space_seen = 0; kwtable kw; retry : for (;;) { switch (c = nextc()) { case '\0' : // NUL case '\004' : // ^D case '\032' : // ^Z case -1 : //end of script. return 0;... | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/d31a76ee29d5978a9bec41e3ac9134cee024bcab/DefaultRubyScanner.java/buggy/org/jruby/parser/DefaultRubyScanner.java |
if (lex_curline.startsWith("=begin") && (lex_pend == 6 || ISSPACE(lex_curline.charAt(6)))) { | if (support.isNext("begin") && Character.isWhitespace(support.getCharAt(5))) { | private int yylex() { int c; int space_seen = 0; kwtable kw; retry : for (;;) { switch (c = nextc()) { case '\0' : // NUL case '\004' : // ^D case '\032' : // ^Z case -1 : //end of script. return 0;... | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/d31a76ee29d5978a9bec41e3ac9134cee024bcab/DefaultRubyScanner.java/buggy/org/jruby/parser/DefaultRubyScanner.java |
lex_p = lex_pend; | private int yylex() { int c; int space_seen = 0; kwtable kw; retry : for (;;) { switch (c = nextc()) { case '\0' : // NUL case '\004' : // ^D case '\032' : // ^Z case -1 : //end of script. return 0;... | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/d31a76ee29d5978a9bec41e3ac9134cee024bcab/DefaultRubyScanner.java/buggy/org/jruby/parser/DefaultRubyScanner.java | |
} if (c != '=') { | } else if (c != '=') { | private int yylex() { int c; int space_seen = 0; kwtable kw; retry : for (;;) { switch (c = nextc()) { case '\0' : // NUL case '\004' : // ^D case '\032' : // ^Z case -1 : //end of script. return 0;... | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/d31a76ee29d5978a9bec41e3ac9134cee024bcab/DefaultRubyScanner.java/buggy/org/jruby/parser/DefaultRubyScanner.java |
} if (lex_curline.substring(lex_p, lex_p + 3).equals("end") && (lex_p + 3 == lex_pend || ISSPACE(lex_curline.charAt(lex_p + 3)))) { | } else if (source.getColumn() == 1 && support.isNext("end") && Character.isWhitespace(support.getCharAt(3))) { | private int yylex() { int c; int space_seen = 0; kwtable kw; retry : for (;;) { switch (c = nextc()) { case '\0' : // NUL case '\004' : // ^D case '\032' : // ^Z case -1 : //end of script. return 0;... | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/d31a76ee29d5978a9bec41e3ac9134cee024bcab/DefaultRubyScanner.java/buggy/org/jruby/parser/DefaultRubyScanner.java |
lex_p = lex_pend; | support.readLine(); | private int yylex() { int c; int space_seen = 0; kwtable kw; retry : for (;;) { switch (c = nextc()) { case '\0' : // NUL case '\004' : // ^D case '\032' : // ^Z case -1 : //end of script. return 0;... | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/d31a76ee29d5978a9bec41e3ac9134cee024bcab/DefaultRubyScanner.java/buggy/org/jruby/parser/DefaultRubyScanner.java |
&& (!IS_ARG() || space_seen != 0)) { | && (!isArgState() || space_seen != 0)) { | private int yylex() { int c; int space_seen = 0; kwtable kw; retry : for (;;) { switch (c = nextc()) { case '\0' : // NUL case '\004' : // ^D case '\032' : // ^Z case -1 : //end of script. return 0;... | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/d31a76ee29d5978a9bec41e3ac9134cee024bcab/DefaultRubyScanner.java/buggy/org/jruby/parser/DefaultRubyScanner.java |
int indent = 0; | boolean indent = false; | private int yylex() { int c; int space_seen = 0; kwtable kw; retry : for (;;) { switch (c = nextc()) { case '\0' : // NUL case '\004' : // ^D case '\032' : // ^Z case -1 : //end of script. return 0;... | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/d31a76ee29d5978a9bec41e3ac9134cee024bcab/DefaultRubyScanner.java/buggy/org/jruby/parser/DefaultRubyScanner.java |
indent = 1; | indent = true; | private int yylex() { int c; int space_seen = 0; kwtable kw; retry : for (;;) { switch (c = nextc()) { case '\0' : // NUL case '\004' : // ^D case '\032' : // ^Z case -1 : //end of script. return 0;... | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/d31a76ee29d5978a9bec41e3ac9134cee024bcab/DefaultRubyScanner.java/buggy/org/jruby/parser/DefaultRubyScanner.java |
if (!ISSPACE(c2) && ("\"'`".indexOf(c2) != -1 || is_identchar(c2))) { return here_document(c2, indent); | if (!isSpace(c2) && ("\"'`".indexOf(c2) != -1 || isIdentifierChar(c2))) { return parseHereDocument(c2, indent); | private int yylex() { int c; int space_seen = 0; kwtable kw; retry : for (;;) { switch (c = nextc()) { case '\0' : // NUL case '\004' : // ^D case '\032' : // ^Z case -1 : //end of script. return 0;... | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/d31a76ee29d5978a9bec41e3ac9134cee024bcab/DefaultRubyScanner.java/buggy/org/jruby/parser/DefaultRubyScanner.java |
if (IS_ARG() && ISSPACE(c)) { | if (isArgState() && isSpace(c)) { | private int yylex() { int c; int space_seen = 0; kwtable kw; retry : for (;;) { switch (c = nextc()) { case '\0' : // NUL case '\004' : // ^D case '\032' : // ^Z case -1 : //end of script. return 0;... | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/d31a76ee29d5978a9bec41e3ac9134cee024bcab/DefaultRubyScanner.java/buggy/org/jruby/parser/DefaultRubyScanner.java |
if (IS_ARG() && space_seen != 0 && !ISSPACE(c)) { | if (isArgState() && space_seen != 0 && !isSpace(c)) { | private int yylex() { int c; int space_seen = 0; kwtable kw; retry : for (;;) { switch (c = nextc()) { case '\0' : // NUL case '\004' : // ^D case '\032' : // ^Z case -1 : //end of script. return 0;... | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/d31a76ee29d5978a9bec41e3ac9134cee024bcab/DefaultRubyScanner.java/buggy/org/jruby/parser/DefaultRubyScanner.java |
if (ph.getLexState() == LexState.EXPR_BEG || ph.getLexState() == LexState.EXPR_MID || (IS_ARG() && space_seen != 0 && !ISSPACE(c))) { if (IS_ARG()) { | if (ph.getLexState() == LexState.EXPR_BEG || ph.getLexState() == LexState.EXPR_MID || (isArgState() && space_seen != 0 && !isSpace(c))) { if (isArgState()) { | private int yylex() { int c; int space_seen = 0; kwtable kw; retry : for (;;) { switch (c = nextc()) { case '\0' : // NUL case '\004' : // ^D case '\032' : // ^Z case -1 : //end of script. return 0;... | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/d31a76ee29d5978a9bec41e3ac9134cee024bcab/DefaultRubyScanner.java/buggy/org/jruby/parser/DefaultRubyScanner.java |
if (ph.getLexState() == LexState.EXPR_BEG || ph.getLexState() == LexState.EXPR_MID || (IS_ARG() && space_seen != 0 && !ISSPACE(c))) { if (IS_ARG()) { | if (ph.getLexState() == LexState.EXPR_BEG || ph.getLexState() == LexState.EXPR_MID || (isArgState() && space_seen != 0 && !isSpace(c))) { if (isArgState()) { | private int yylex() { int c; int space_seen = 0; kwtable kw; retry : for (;;) { switch (c = nextc()) { case '\0' : // NUL case '\004' : // ^D case '\032' : // ^Z case -1 : //end of script. return 0;... | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/d31a76ee29d5978a9bec41e3ac9134cee024bcab/DefaultRubyScanner.java/buggy/org/jruby/parser/DefaultRubyScanner.java |
if (ph.getLexState() == LexState.EXPR_BEG || ph.getLexState() == LexState.EXPR_MID || (IS_ARG() && space_seen != 0)) { | if (ph.getLexState() == LexState.EXPR_BEG || ph.getLexState() == LexState.EXPR_MID || (isArgState() && space_seen != 0)) { | private int yylex() { int c; int space_seen = 0; kwtable kw; retry : for (;;) { switch (c = nextc()) { case '\0' : // NUL case '\004' : // ^D case '\032' : // ^Z case -1 : //end of script. return 0;... | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/d31a76ee29d5978a9bec41e3ac9134cee024bcab/DefaultRubyScanner.java/buggy/org/jruby/parser/DefaultRubyScanner.java |
if (ph.getLexState() == LexState.EXPR_END || ISSPACE(c)) { | if (ph.getLexState() == LexState.EXPR_END || isSpace(c)) { | private int yylex() { int c; int space_seen = 0; kwtable kw; retry : for (;;) { switch (c = nextc()) { case '\0' : // NUL case '\004' : // ^D case '\032' : // ^Z case -1 : //end of script. return 0;... | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/d31a76ee29d5978a9bec41e3ac9134cee024bcab/DefaultRubyScanner.java/buggy/org/jruby/parser/DefaultRubyScanner.java |
if (IS_ARG() && space_seen != 0) { if (!ISSPACE(c)) { | if (isArgState() && space_seen != 0) { if (!isSpace(c)) { | private int yylex() { int c; int space_seen = 0; kwtable kw; retry : for (;;) { switch (c = nextc()) { case '\0' : // NUL case '\004' : // ^D case '\032' : // ^Z case -1 : //end of script. return 0;... | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/d31a76ee29d5978a9bec41e3ac9134cee024bcab/DefaultRubyScanner.java/buggy/org/jruby/parser/DefaultRubyScanner.java |
} else if (IS_ARG() && space_seen != 0) { | } else if (isArgState() && space_seen != 0) { | private int yylex() { int c; int space_seen = 0; kwtable kw; retry : for (;;) { switch (c = nextc()) { case '\0' : // NUL case '\004' : // ^D case '\032' : // ^Z case -1 : //end of script. return 0;... | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/d31a76ee29d5978a9bec41e3ac9134cee024bcab/DefaultRubyScanner.java/buggy/org/jruby/parser/DefaultRubyScanner.java |
quotation : for (;;) { | private int yylex() { int c; int space_seen = 0; kwtable kw; retry : for (;;) { switch (c = nextc()) { case '\0' : // NUL case '\004' : // ^D case '\032' : // ^Z case -1 : //end of script. return 0;... | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/d31a76ee29d5978a9bec41e3ac9134cee024bcab/DefaultRubyScanner.java/buggy/org/jruby/parser/DefaultRubyScanner.java | |
int term; int paren; c = nextc(); if (!Character.isLetterOrDigit((char) c)) { term = c; c = 'Q'; } else { term = nextc(); } if (c == -1 || term == -1) { ph.rb_compile_error("unterminated quoted string meets end of file"); return 0; } paren = term; if (term == '(') { term = ')'; } else if (term == '[') { term = ']'; } ... | return parseQuotation(nextc()); | private int yylex() { int c; int space_seen = 0; kwtable kw; retry : for (;;) { switch (c = nextc()) { case '\0' : // NUL case '\004' : // ^D case '\032' : // ^Z case -1 : //end of script. return 0;... | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/d31a76ee29d5978a9bec41e3ac9134cee024bcab/DefaultRubyScanner.java/buggy/org/jruby/parser/DefaultRubyScanner.java |
if (IS_ARG() && space_seen != 0 && !ISSPACE(c)) { pushback(c); continue quotation; } break quotation; } | if (isArgState() && space_seen != 0 && !isSpace(c)) { return parseQuotation(c); } | private int yylex() { int c; int space_seen = 0; kwtable kw; retry : for (;;) { switch (c = nextc()) { case '\0' : // NUL case '\004' : // ^D case '\032' : // ^Z case -1 : //end of script. return 0;... | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/d31a76ee29d5978a9bec41e3ac9134cee024bcab/DefaultRubyScanner.java/buggy/org/jruby/parser/DefaultRubyScanner.java |
if (is_identchar(c)) { | if (isIdentifierChar(c)) { | private int yylex() { int c; int space_seen = 0; kwtable kw; retry : for (;;) { switch (c = nextc()) { case '\0' : // NUL case '\004' : // ^D case '\032' : // ^Z case -1 : //end of script. return 0;... | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/d31a76ee29d5978a9bec41e3ac9134cee024bcab/DefaultRubyScanner.java/buggy/org/jruby/parser/DefaultRubyScanner.java |
tokfix(); yyVal = tok(); | yyVal = tok(); | private int yylex() { int c; int space_seen = 0; kwtable kw; retry : for (;;) { switch (c = nextc()) { case '\0' : // NUL case '\004' : // ^D case '\032' : // ^Z case -1 : //end of script. return 0;... | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/d31a76ee29d5978a9bec41e3ac9134cee024bcab/DefaultRubyScanner.java/buggy/org/jruby/parser/DefaultRubyScanner.java |
tokfix(); yyVal = tok(); | yyVal = tok(); | private int yylex() { int c; int space_seen = 0; kwtable kw; retry : for (;;) { switch (c = nextc()) { case '\0' : // NUL case '\004' : // ^D case '\032' : // ^Z case -1 : //end of script. return 0;... | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/d31a76ee29d5978a9bec41e3ac9134cee024bcab/DefaultRubyScanner.java/buggy/org/jruby/parser/DefaultRubyScanner.java |
if (is_identchar(c)) { | if (isIdentifierChar(c)) { | private int yylex() { int c; int space_seen = 0; kwtable kw; retry : for (;;) { switch (c = nextc()) { case '\0' : // NUL case '\004' : // ^D case '\032' : // ^Z case -1 : //end of script. return 0;... | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/d31a76ee29d5978a9bec41e3ac9134cee024bcab/DefaultRubyScanner.java/buggy/org/jruby/parser/DefaultRubyScanner.java |
tokfix(); | private int yylex() { int c; int space_seen = 0; kwtable kw; retry : for (;;) { switch (c = nextc()) { case '\0' : // NUL case '\004' : // ^D case '\032' : // ^Z case -1 : //end of script. return 0;... | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/d31a76ee29d5978a9bec41e3ac9134cee024bcab/DefaultRubyScanner.java/buggy/org/jruby/parser/DefaultRubyScanner.java | |
if (!is_identchar(c)) { | if (!isIdentifierChar(c)) { | private int yylex() { int c; int space_seen = 0; kwtable kw; retry : for (;;) { switch (c = nextc()) { case '\0' : // NUL case '\004' : // ^D case '\032' : // ^Z case -1 : //end of script. return 0;... | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/d31a76ee29d5978a9bec41e3ac9134cee024bcab/DefaultRubyScanner.java/buggy/org/jruby/parser/DefaultRubyScanner.java |
if (!is_identchar(c)) { | if (!isIdentifierChar(c)) { | private int yylex() { int c; int space_seen = 0; kwtable kw; retry : for (;;) { switch (c = nextc()) { case '\0' : // NUL case '\004' : // ^D case '\032' : // ^Z case -1 : //end of script. return 0;... | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/d31a76ee29d5978a9bec41e3ac9134cee024bcab/DefaultRubyScanner.java/buggy/org/jruby/parser/DefaultRubyScanner.java |
if (!is_identchar(c) || Character.isDigit((char) c)) { | if (!isIdentifierChar(c) || Character.isDigit((char) c)) { | private int yylex() { int c; int space_seen = 0; kwtable kw; retry : for (;;) { switch (c = nextc()) { case '\0' : // NUL case '\004' : // ^D case '\032' : // ^Z case -1 : //end of script. return 0;... | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/d31a76ee29d5978a9bec41e3ac9134cee024bcab/DefaultRubyScanner.java/buggy/org/jruby/parser/DefaultRubyScanner.java |
while (is_identchar(c)) { | while (isIdentifierChar(c)) { | private int yylex() { int c; int space_seen = 0; kwtable kw; retry : for (;;) { switch (c = nextc()) { case '\0' : // NUL case '\004' : // ^D case '\032' : // ^Z case -1 : //end of script. return 0;... | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/d31a76ee29d5978a9bec41e3ac9134cee024bcab/DefaultRubyScanner.java/buggy/org/jruby/parser/DefaultRubyScanner.java |
if ((c == '!' || c == '?') && is_identchar(tok().charAt(0)) && !peek('=')) { | if ((c == '!' || c == '?') && isIdentifierChar(tok().charAt(0)) && !peek('=')) { | private int yylex() { int c; int space_seen = 0; kwtable kw; retry : for (;;) { switch (c = nextc()) { case '\0' : // NUL case '\004' : // ^D case '\032' : // ^Z case -1 : //end of script. return 0;... | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/d31a76ee29d5978a9bec41e3ac9134cee024bcab/DefaultRubyScanner.java/buggy/org/jruby/parser/DefaultRubyScanner.java |
tokfix(); | private int yylex() { int c; int space_seen = 0; kwtable kw; retry : for (;;) { switch (c = nextc()) { case '\0' : // NUL case '\004' : // ^D case '\032' : // ^Z case -1 : //end of script. return 0;... | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/d31a76ee29d5978a9bec41e3ac9134cee024bcab/DefaultRubyScanner.java/buggy/org/jruby/parser/DefaultRubyScanner.java | |
kw = rb_reserved_word(tok(), toklen()); | kw = getKeyword(tok(), toklen()); | private int yylex() { int c; int space_seen = 0; kwtable kw; retry : for (;;) { switch (c = nextc()) { case '\0' : // NUL case '\004' : // ^D case '\032' : // ^Z case -1 : //end of script. return 0;... | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/d31a76ee29d5978a9bec41e3ac9134cee024bcab/DefaultRubyScanner.java/buggy/org/jruby/parser/DefaultRubyScanner.java |
if ((c = nextc()) == '=' && !peek('~') && !peek('>') && (!peek('=') || lex_p + 1 < lex_pend && lex_curline.charAt(lex_p + 1) == '>')) { | if ((c = nextc()) == '=' && !peek('~') && !peek('>') && (!peek('=') || support.getCharAt(1) == '>')) { | private int yylex() { int c; int space_seen = 0; kwtable kw; retry : for (;;) { switch (c = nextc()) { case '\0' : // NUL case '\004' : // ^D case '\032' : // ^Z case -1 : //end of script. return 0;... | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/d31a76ee29d5978a9bec41e3ac9134cee024bcab/DefaultRubyScanner.java/buggy/org/jruby/parser/DefaultRubyScanner.java |
if (ph.getLexState() == LexState.EXPR_BEG || ph.getLexState() == LexState.EXPR_DOT || ph.getLexState() == LexState.EXPR_ARG) { | if (ph.getLexState() == LexState.EXPR_BEG || ph.getLexState() == LexState.EXPR_DOT || ph.getLexState() == LexState.EXPR_ARG) { | private int yylex() { int c; int space_seen = 0; kwtable kw; retry : for (;;) { switch (c = nextc()) { case '\0' : // NUL case '\004' : // ^D case '\032' : // ^Z case -1 : //end of script. return 0;... | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/d31a76ee29d5978a9bec41e3ac9134cee024bcab/DefaultRubyScanner.java/buggy/org/jruby/parser/DefaultRubyScanner.java |
tokfix(); yyVal = tok(); | yyVal = tok(); | private int yylex() { int c; int space_seen = 0; kwtable kw; retry : for (;;) { switch (c = nextc()) { case '\0' : // NUL case '\004' : // ^D case '\032' : // ^Z case -1 : //end of script. return 0;... | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/d31a76ee29d5978a9bec41e3ac9134cee024bcab/DefaultRubyScanner.java/buggy/org/jruby/parser/DefaultRubyScanner.java |
setToolTipText(((SemanticTypeTree.TreeNode)value).getFQName()); | public Component getTreeCellRendererComponent(JTree tree, Object value, boolean sel, boolean expanded, boolean leaf, int row, boolean hasFocus) { super.getTree... | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/4eb7129fd009b6f34f1eda2cdfe74bc4a184ee93/HeatMapTreeRenderer.java/clean/SRC/org/openmicroscopy/shoola/agents/browser/heatmap/HeatMapTreeRenderer.java | |
return (IRubyObject) getMethod().invoke( isStaticMethod ? null : recv, reflectionArguments); | return (IRubyObject) getMethod().invoke(isStaticMethod ? null : recv, reflectionArguments); | protected IRubyObject invokeMethod(IRubyObject recv, Object[] methodArgs) { Object[] reflectionArguments = packageArgumentsForReflection(methodArgs, recv); try { return (IRubyObject) getMethod().invoke( isStaticMethod ? null : recv, reflectionArguments); ... | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/3acff782b00a5f6892fe6bd44e0665cc6194f9aa/ReflectionCallbackMethod.java/clean/org/jruby/runtime/ReflectionCallbackMethod.java |
recv.getRuntime().getJavaSupport().handleNativeException( (Exception) itExcptn.getTargetException()); | recv.getRuntime().getJavaSupport().handleNativeException((Exception) itExcptn.getTargetException()); | protected IRubyObject invokeMethod(IRubyObject recv, Object[] methodArgs) { Object[] reflectionArguments = packageArgumentsForReflection(methodArgs, recv); try { return (IRubyObject) getMethod().invoke( isStaticMethod ? null : recv, reflectionArguments); ... | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/3acff782b00a5f6892fe6bd44e0665cc6194f9aa/ReflectionCallbackMethod.java/clean/org/jruby/runtime/ReflectionCallbackMethod.java |
System.arraycopy( originalArgs, args.length - 1, restArray, 0, originalArgs.length - (args.length - 1)); | System.arraycopy(originalArgs, args.length - 1, restArray, 0, originalArgs.length - (args.length - 1)); | private final Object[] packageRestArgumentsForReflection(final Object[] originalArgs) { IRubyObject[] restArray = new IRubyObject[originalArgs.length - (args.length - 1)]; Object[] result = new Object[args.length]; try { System.arraycopy( originalArgs, a... | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/3acff782b00a5f6892fe6bd44e0665cc6194f9aa/ReflectionCallbackMethod.java/clean/org/jruby/runtime/ReflectionCallbackMethod.java |
private Object[] packageStaticArgumentsForReflection( Object[] arguments, Ruby ruby, IRubyObject rubyClass) { Object[] result = new Object[arguments.length + 2]; result[0] = ruby; result[1] = rubyClass; System.arraycopy(arguments, 0, result, 2, arguments.length); | private Object[] packageStaticArgumentsForReflection(Object[] arguments, Ruby ruby, IRubyObject rubyClass) { Object[] result = new Object[arguments.length + 1]; result[0] = rubyClass; System.arraycopy(arguments, 0, result, 1, arguments.length); | private Object[] packageStaticArgumentsForReflection( Object[] arguments, Ruby ruby, IRubyObject rubyClass) { Object[] result = new Object[arguments.length + 2]; result[0] = ruby; result[1] = rubyClass; System.arraycopy(arguments, 0, result, 2, arguments.length); ... | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/3acff782b00a5f6892fe6bd44e0665cc6194f9aa/ReflectionCallbackMethod.java/clean/org/jruby/runtime/ReflectionCallbackMethod.java |
continue; | break; | public void run() { int period = now(); while( !isInterrupted()) { try { sleep(_duration); } catch (InterruptedException e) { continue; } int newPeriod = now(); while (period != newPeriod) { if (++period >= _periods) period = 0; ... | 52513 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52513/65c210c2e5230f99b78b769799e9e54e3fcce30a/TimeLoop.java/clean/webmacro/src/org/webmacro/util/TimeLoop.java |
return (modes & RDWR) != 0 || (modes & WRONLY) != 0 || (modes & CREAT) != 0; | return isWritable(); | public boolean isWriteable() { return (modes & RDWR) != 0 || (modes & WRONLY) != 0 || (modes & CREAT) != 0; } | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/54e6b8da799629e0b7db879c45149399878f5f84/IOModes.java/buggy/src/org/jruby/util/IOModes.java |
public RGBPane() { manager = new RGBPaneManager(this); } | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/8a4d5e12d87798c81c0e8de88f3ca3fd97e8a6cc/RGBPane.java/buggy/SRC/org/openmicroscopy/shoola/agents/rnd/model/RGBPane.java | ||
private void buildBody() { contents = new JPanel(); contents.setBorder(BorderFactory.createEmptyBorder(5, 10, 5, 10)); GridBagLayout gridbag = new GridBagLayout(); contents.setLayout(gridbag); GridBagConstraints cst = new GridBagConstraints(); cst.ipadx = RenderingAgtUIF.H_SPACE; cst.weightx = 0.5; cst.fill = ... | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/8a4d5e12d87798c81c0e8de88f3ca3fd97e8a6cc/RGBPane.java/buggy/SRC/org/openmicroscopy/shoola/agents/rnd/model/RGBPane.java | ||
removeAll(); | private void buildGUI() { buildBody(); setLayout(new FlowLayout(FlowLayout.LEFT)); setBorder(BorderFactory.createEmptyBorder(0, 10, 0, 10)); add(contents); } | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/8a4d5e12d87798c81c0e8de88f3ca3fd97e8a6cc/RGBPane.java/buggy/SRC/org/openmicroscopy/shoola/agents/rnd/model/RGBPane.java | |
DOEditor editor = EditorFactory.getEditor(); | EditorUI editor = EditorFactory.getEditor(); | public void setAnnotations(Map map) { if (model.getState() != LOADING_ANNOTATION) throw new IllegalStateException("This method can only be invoked" + " in the LOADING_ANNOTATION state."); if (map == null) throw new IllegalArgumentException("No annotations."); DO... | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/87529caa0141a437103c7c854aeb743ee032cbac/TreeViewerComponent.java/buggy/SRC/org/openmicroscopy/shoola/agents/treeviewer/view/TreeViewerComponent.java |
DOEditor editor = EditorFactory.getEditor(); | EditorUI editor = EditorFactory.getEditor(); | public void setDataObjectThumbnail(BufferedImage thumbnail) { if (model.getState() != LOADING_THUMBNAIL) throw new IllegalStateException("This method can only be invoked" + " in the LOADING_THUMBNAIL state."); if (thumbnail == null) throw new IllegalArgument... | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/87529caa0141a437103c7c854aeb743ee032cbac/TreeViewerComponent.java/buggy/SRC/org/openmicroscopy/shoola/agents/treeviewer/view/TreeViewerComponent.java |
DOEditor editor = EditorFactory.getEditor(); | EditorUI editor = EditorFactory.getEditor(); | public void setRetrievedClassification(Set paths) { if (model.getState() != LOADING_CLASSIFICATION) throw new IllegalStateException("This method should only be " + "invoked in the LOADING_CLASSIFICATION state."); if (paths == null) throw new IllegalArgumentE... | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/87529caa0141a437103c7c854aeb743ee032cbac/TreeViewerComponent.java/buggy/SRC/org/openmicroscopy/shoola/agents/treeviewer/view/TreeViewerComponent.java |
DOEditor panel = EditorFactory.getEditor(this, object, editorType); panel.addPropertyChangeListener(DOEditor.CANCEL_EDITION_PROPERTY, | EditorUI panel = EditorFactory.getEditor(this, object, editorType); panel.addPropertyChangeListener(EditorUI.CANCEL_EDITION_PROPERTY, | public void showProperties(DataObject object, int editorType) { if (editorType == PROPERTIES_EDITOR || editorType == CREATE_EDITOR) model.setEditorType(editorType); else return; model.setDataObject(object); DOEditor panel = EditorFactory.getEditor(this, object, editorType);... | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/87529caa0141a437103c7c854aeb743ee032cbac/TreeViewerComponent.java/buggy/SRC/org/openmicroscopy/shoola/agents/treeviewer/view/TreeViewerComponent.java |
if(getInstanceVariables().size() > 0) { StringBuffer part = new StringBuffer(); String cname = getMetaClass().getRealClass().getName(); part.append("#<").append(cname).append(":0x"); part.append(Integer.toHexString(System.identityHashCode(this))); part.append(" "); if(!getRuntime().registerInspecting(this)) { /* 6:tags... | public IRubyObject inspect() { // TODO Review this and either remove the comment, or do it // if (TYPE(obj) == T_OBJECT // && ROBJECT(obj)->iv_tbl // && ROBJECT(obj)->iv_tbl->num_entries > 0) { // VALUE str; // char *c; // // c = rb_class2name(CLASS_O... | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/adc018ace5f125349d8d0975b3035f19b603568c/RubyObject.java/buggy/src/org/jruby/RubyObject.java | |
File sourceDirectory) throws IOException | FileFinder finder) throws IOException | public XMLReport(ProjectData projectData, File destinationDir, File sourceDirectory) throws IOException { this.sourceDirectory = sourceDirectory; pw = new PrintWriter(new FileWriter(new File(destinationDir, "coverage.xml"))); try { println("<?xml version=\"1.0\"?>"); println("<!DOCTYPE coverage SYSTEM \"h... | 50197 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50197/12464e2c222b85c4fe40070c50e015403ce5acfe/XMLReport.java/clean/cobertura/src/net/sourceforge/cobertura/reporting/xml/XMLReport.java |
this.sourceDirectory = sourceDirectory; | this.finder = finder; | public XMLReport(ProjectData projectData, File destinationDir, File sourceDirectory) throws IOException { this.sourceDirectory = sourceDirectory; pw = new PrintWriter(new FileWriter(new File(destinationDir, "coverage.xml"))); try { println("<?xml version=\"1.0\"?>"); println("<!DOCTYPE coverage SYSTEM \"h... | 50197 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50197/12464e2c222b85c4fe40070c50e015403ce5acfe/XMLReport.java/clean/cobertura/src/net/sourceforge/cobertura/reporting/xml/XMLReport.java |
dumpSources(sourceDirectory); | dumpSources(); | public XMLReport(ProjectData projectData, File destinationDir, File sourceDirectory) throws IOException { this.sourceDirectory = sourceDirectory; pw = new PrintWriter(new FileWriter(new File(destinationDir, "coverage.xml"))); try { println("<?xml version=\"1.0\"?>"); println("<!DOCTYPE coverage SYSTEM \"h... | 50197 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50197/12464e2c222b85c4fe40070c50e015403ce5acfe/XMLReport.java/clean/cobertura/src/net/sourceforge/cobertura/reporting/xml/XMLReport.java |
double ccn = Util.getCCN(new File(sourceDirectory, classData | double ccn = Util.getCCN(finder.findFile(classData | private void dumpClass(ClassData classData) { logger.debug("Dumping class " + classData.getName()); double ccn = Util.getCCN(new File(sourceDirectory, classData .getSourceFileName()), false); println("<class name=\"" + classData.getName() + "\" filename=\"" + classData.getSourceFileName() + "\" line-rate=\"" ... | 50197 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50197/12464e2c222b85c4fe40070c50e015403ce5acfe/XMLReport.java/clean/cobertura/src/net/sourceforge/cobertura/reporting/xml/XMLReport.java |
double ccn = Util.getCCN(new File(sourceDirectory, packageData .getSourceFileName()), false); | double ccn = Util.getCCN(finder.findFile(packageData.getSourceFileName()), false); | private void dumpPackage(PackageData packageData) { logger.debug("Dumping package " + packageData.getName()); double ccn = Util.getCCN(new File(sourceDirectory, packageData .getSourceFileName()), false); println("<package name=\"" + packageData.getName() + "\" line-rate=\"" + packageData.getLineCoverageRate()... | 50197 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50197/12464e2c222b85c4fe40070c50e015403ce5acfe/XMLReport.java/clean/cobertura/src/net/sourceforge/cobertura/reporting/xml/XMLReport.java |
private void dumpSources(File sourceDirectory) | private void dumpSources() | private void dumpSources(File sourceDirectory) { if (sourceDirectory == null) return; println("<sources>"); increaseIndentation(); dumpSource(sourceDirectory); decreaseIndentation(); println("</sources>"); } | 50197 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50197/12464e2c222b85c4fe40070c50e015403ce5acfe/XMLReport.java/clean/cobertura/src/net/sourceforge/cobertura/reporting/xml/XMLReport.java |
if (sourceDirectory == null) return; | private void dumpSources(File sourceDirectory) { if (sourceDirectory == null) return; println("<sources>"); increaseIndentation(); dumpSource(sourceDirectory); decreaseIndentation(); println("</sources>"); } | 50197 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50197/12464e2c222b85c4fe40070c50e015403ce5acfe/XMLReport.java/clean/cobertura/src/net/sourceforge/cobertura/reporting/xml/XMLReport.java | |
dumpSource(sourceDirectory); | for (Iterator it = finder.getBaseDirectories().iterator(); it.hasNext(); ) { File dir = (File) it.next(); dumpSource(dir); } | private void dumpSources(File sourceDirectory) { if (sourceDirectory == null) return; println("<sources>"); increaseIndentation(); dumpSource(sourceDirectory); decreaseIndentation(); println("</sources>"); } | 50197 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50197/12464e2c222b85c4fe40070c50e015403ce5acfe/XMLReport.java/clean/cobertura/src/net/sourceforge/cobertura/reporting/xml/XMLReport.java |
FastWriter fw = new FastWriter(os, "UTF8"); | FastWriter fw = new FastWriter(os, context.getEncoding()); | public Object evaluate(Context context) throws ContextException { try { ByteArrayOutputStream os = new ByteArrayOutputStream(256); FastWriter fw = new FastWriter(os, "UTF8"); write(fw,context); fw.flush(); return os.toString("UTF8"); } catch (IOException e) { ... | 52513 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52513/9dc4324fb914abcbf2ec188e4eb77b1bf503f330/ForeachDirective.java/clean/webmacro/src/org/webmacro/engine/ForeachDirective.java |
return os.toString("UTF8"); | return os.toString(context.getEncoding()); | public Object evaluate(Context context) throws ContextException { try { ByteArrayOutputStream os = new ByteArrayOutputStream(256); FastWriter fw = new FastWriter(os, "UTF8"); write(fw,context); fw.flush(); return os.toString("UTF8"); } catch (IOException e) { ... | 52513 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52513/9dc4324fb914abcbf2ec188e4eb77b1bf503f330/ForeachDirective.java/clean/webmacro/src/org/webmacro/engine/ForeachDirective.java |
annotatedObjectID = -1; annotatedObjectIndex = -1; annotationStatus = INITIAL; | init(); | ClipBoardModel(HiViewer parentModel) { if (parentModel == null) throw new NullPointerException("No parent model."); this.parentModel = parentModel; annotatedObjectID = -1; annotatedObjectIndex = -1; annotationStatus = INITIAL; } | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/b4992016524102ee0a5c7465d4cc7a94e9ffce2d/ClipBoardModel.java/clean/SRC/org/openmicroscopy/shoola/agents/hiviewer/clipboard/ClipBoardModel.java |
sortedAnnotations.put(ownerID, CollectionSorter.sortAnnotationDataByDate( (List) sortedAnnotations.get(ownerID))); | annotations = (List) sortedAnnotations.get(ownerID); k = annotations.iterator(); m = new HashMap(annotations.size()); timestamps = new ArrayList(annotations.size()); while (k.hasNext()) { data = (AnnotationData) k.next(); m.put(data.getLastModified(), data); timestamps.add(data.getLastModified()); } results = sorter.so... | void setAnnotations(Map map) { if (map == null) throw new NullPointerException("No annotations"); HashMap sortedAnnotations = new HashMap(); Set set; Integer index; Iterator i = map.keySet().iterator(); Iterator j; AnnotationData annotation; Integer ownerI... | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/b4992016524102ee0a5c7465d4cc7a94e9ffce2d/ClipBoardModel.java/clean/SRC/org/openmicroscopy/shoola/agents/hiviewer/clipboard/ClipBoardModel.java |
area.setEnabled(false); | private JPanel buildContentPanel(Map details) { JPanel content = new JPanel(); content.setLayout(new GridBagLayout()); content.setBorder(BorderFactory.createEmptyBorder(5, 10, 5, 10)); GridBagConstraints c = new GridBagConstraints(); c.fill = GridBagConstraints.HORIZONTAL; ... | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/38a31e9c570bc8c0bbfb871c8b12b0e52420f22c/InfoPaneUI.java/clean/SRC/org/openmicroscopy/shoola/agents/hiviewer/clipboard/info/InfoPaneUI.java | |
public void onDataObjectSave(DataObject data, int operation) { int state = model.getState(); if (operation == REMOVE_OBJECT && state != SAVE) throw new IllegalStateException("This method cannot be " + "invoked in the SAVE state"); switch (state) { cas... | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/fc0b268aabfe722365161921f8c052bd9642f3b6/TreeViewerComponent.java/clean/SRC/org/openmicroscopy/shoola/agents/treeviewer/view/TreeViewerComponent.java | ||
int state = model.getState(); if (state != NEW && state != READY) throw new IllegalStateException("This method should only be " + "invoked in the NEW or READY state."); | switch (model.getState()) { case READY: case NEW: break; default: throw new IllegalStateException("This method should only be " + "invoked in the READY or NEW state."); } | public void removeObject(DataObject object) { int state = model.getState(); if (state != NEW && state != READY) throw new IllegalStateException("This method should only be " + "invoked in the NEW or READY state."); model.fireDataObjectDeletion(object); fi... | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/fc0b268aabfe722365161921f8c052bd9642f3b6/TreeViewerComponent.java/clean/SRC/org/openmicroscopy/shoola/agents/treeviewer/view/TreeViewerComponent.java |
if (model.getState() != READY) throw new IllegalStateException("This method should only be " + "invoked in the READY state."); | switch (model.getState()) { case READY: case NEW: break; default: throw new IllegalStateException("This method should only be " + "invoked in the READY or NEW state."); } | public void showClassifier(ImageData object, int mode) { if (model.getState() != READY) throw new IllegalStateException("This method should only be " + "invoked in the READY state."); if (object == null) throw new IllegalArgumentException("Object cannot be null... | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/fc0b268aabfe722365161921f8c052bd9642f3b6/TreeViewerComponent.java/clean/SRC/org/openmicroscopy/shoola/agents/treeviewer/view/TreeViewerComponent.java |
case DISCARDED: case SAVE: throw new IllegalStateException( "This method cannot be invoked in the DISCARDED or SAVE " + "state."); | case READY: case NEW: break; default: throw new IllegalStateException("This method should only be " + "invoked in the READY or NEW state."); | public void showFinder(boolean b) { switch (model.getState()) { case DISCARDED: case SAVE: throw new IllegalStateException( "This method cannot be invoked in the DISCARDED or SAVE " + "state."); } if (model.getSelecte... | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/fc0b268aabfe722365161921f8c052bd9642f3b6/TreeViewerComponent.java/clean/SRC/org/openmicroscopy/shoola/agents/treeviewer/view/TreeViewerComponent.java |
return new RubyArray(ruby, list); | return RubyArray.newArray(ruby, list); | public static RubyArray list(Ruby ruby, RubyObject recv) { ArrayList list = new ArrayList(); Iterator iter = ruby.objectSpace.iterator(ruby.getClasses().getThreadClass()); while (iter.hasNext()) { list.add(iter.next()); } return new RubyArray(ruby, list); } | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/62333c275b1a643f18c9a79af5bbb2f0027f4392/RubyThread.java/clean/org/jruby/RubyThread.java |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.