rem stringlengths 1 53.3k | add stringlengths 0 80.5k | context stringlengths 6 326k | meta stringlengths 141 403 | input_ids list | attention_mask list | labels list |
|---|---|---|---|---|---|---|
xsp = jj_scanpos; if (jj_3R_355()) { jj_scanpos = xsp; | final private boolean jj_3R_348() { Token xsp; xsp = jj_scanpos; if (jj_3R_355()) { jj_scanpos = xsp; if (jj_3R_356()) return true; } return false; } | 11192 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/11192/9aa0c6bec51662a685ea4b86bc02a52c9e593d8a/Parser.java/clean/dynamicjava/src/koala/dynamicjava/parser/Parser.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
727,
3238,
1250,
10684,
67,
23,
54,
67,
5026,
28,
1435,
288,
565,
3155,
619,
1752,
31,
565,
619,
1752,
273,
10684,
67,
9871,
917,
31,
565,
309,
261,
78,
78,
67,
23,
54,
67,
23,
2539... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
727,
3238,
1250,
10684,
67,
23,
54,
67,
5026,
28,
1435,
288,
565,
3155,
619,
1752,
31,
565,
619,
1752,
273,
10684,
67,
9871,
917,
31,
565,
309,
261,
78,
78,
67,
23,
54,
67,
23,
2539... | |
-1, -1, -1, -1, 281, 282, 41, -1, -1, 44, -1, -1, -1, 290, 291, -1, 293, 294, 295, 296, 297, -1, -1, 58, 59, -1, 61, -1, 63, 125, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 91, -1, 93, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 347, -1, -1, -1, -1, -1, -1, -1, 0, -1, -1, -1, -1, -1, -1, -1, -1, -1, 10, -1, 125, -1, -1, 262, 263, 264, -1, -1, -1, 268, 269, -1, 271, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 41, -1, -1, 44, -1, -1, -1, 262, 263, 264, -1, -1, 267, 268, 269, -1, 271, 58, 59, -1, 61, -1, 63, -1, -1, 280, 281, 282, -1, -1, -1, -1, -1, -1, -1, 290, 291, -1, 293, 294, 295, 296, 297, -1, -1, -1, -1, 262, 263, 264, 91, -1, 93, 268, 269, -1, 271, -1, -1, -1, -1, -1, -1, -1, -1, 320, 321, 322, 323, 324, 325, 326, 327, 328, 329, 330, 331, 332, 333, -1, -1, 336, 337, 338, 125, -1, 341, -1, -1, -1, -1, -1, 347, -1, 349, -1, 351, -1, 353, 354, 355, 356, 357, 358, 359, -1, 361, 362, 262, 263, 264, -1, -1, 267, 268, 269, -1, 271, -1, -1, -1, -1, 0, -1, -1, -1, -1, 281, 282, -1, -1, -1, 10, -1, -1, -1, 290, 291, -1, 293, 294, 295, 296, 297, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 41, -1, -1, 320, 321, 322, 323, 324, 325, 326, 327, 328, 329, 330, 331, 332, 333, 58, 59, 336, 337, 338, -1, 340, 341, -1, -1, -1, -1, -1, 347, -1, 349, -1, 351, 0, 353, 354, 355, 356, 357, 358, 359, -1, 361, 10, -1, 0, -1, -1, -1, -1, -1, -1, -1, -1, -1, 10, 262, 263, 264, -1, -1, 267, 268, 269, -1, 271, -1, -1, -1, -1, -1, -1, -1, -1, 41, 281, 282, 44, -1, -1, -1, -1, 125, -1, 290, 291, 41, 293, 294, 295, 296, 297, 59, -1, -1, -1, -1, -1, 0, -1, -1, -1, -1, -1, 59, -1, -1, -1, 10, -1, -1, -1, -1, -1, 320, 321, 322, 323, 324, 325, 326, 327, 328, 329, 330, 331, 332, 333, -1, -1, 336, 337, 338, -1, -1, 341, -1, -1, -1, 41, -1, 347, 44, 349, -1, 351, -1, 353, 354, 355, 356, 357, 358, 359, -1, 361, 58, 59, 125, 61, -1, 63, -1, -1, -1, -1, -1, -1, -1, -1, 125, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 91, -1, 93, -1, -1, -1, -1, -1, -1, 0, -1, -1, -1, -1, -1, -1, -1, -1, -1, 10, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 262, 263, 264, -1, 125, 267, 268, 269, -1, 271, -1, -1, -1, -1, -1, -1, -1, -1, -1, 281, 41, -1, -1, 44, -1, -1, -1, -1, 290, 291, -1, 293, 294, 295, 296, 297, -1, 58, 59, -1, 61, -1, 63, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 91, -1, 93, -1, -1, -1, 262, 263, 264, -1, -1, -1, 268, 269, -1, 271, -1, -1, 262, 263, 264, -1, -1, 0, 268, 269, -1, 271, -1, -1, -1, -1, -1, 10, 125, -1, -1, 293, 294, 295, 296, 297, -1, -1, -1, -1, -1, -1, -1, 293, 294, 295, 296, 297, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 41, -1, -1, 44, -1, -1, -1, 262, 263, 264, -1, -1, 267, 268, 269, -1, 271, 58, 59, -1, -1, -1, 63, -1, -1, -1, 281, 282, -1, -1, -1, -1, -1, -1, -1, 290, 291, -1, 293, 294, 295, 296, 297, | -1, -1, -1, 280, 281, 282, -1, 41, -1, -1, 44, -1, -1, 290, 291, -1, 293, 294, 295, 296, 297, -1, -1, -1, 58, 59, -1, -1, -1, -1, -1, -1, 262, 263, 264, -1, -1, -1, 268, 269, -1, 271, 319, 320, 321, 322, 323, 324, 325, 326, 327, 328, 329, 330, 331, 332, 0, -1, 335, 336, 337, -1, -1, 340, -1, -1, 10, -1, -1, 346, -1, 348, -1, 350, -1, 352, 353, 354, 355, 356, 357, 358, -1, 360, 361, -1, -1, -1, -1, -1, -1, 125, -1, -1, -1, -1, -1, 41, -1, -1, 44, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 58, 59, -1, -1, -1, 63, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, | private static final short[] yyCheck2() { return new short[] { -1, 91, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 125, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 257, 258, 259, -1, 261, 262, 263, 264, 265, 266, -1, 268, 269, 270, 271, 272, 273, 274, 275, 276, 277, 278, -1, 280, -1, -1, 283, 284, 285, 286, 287, 288, 289, 290, 291, -1, 293, 294, 295, 296, 297, -1, 299, -1, -1, 302, 303, 304, 305, 306, 307, 308, 309, -1, 311, 312, 313, 314, -1, -1, 317, 318, 319, 320, 321, 322, 323, 324, 325, 326, 327, 328, 329, 330, 331, 332, 333, -1, -1, 336, 337, 338, 339, -1, -1, 342, 343, 344, 345, 346, -1, 348, 349, 350, 351, 352, 353, 354, 355, 356, 357, 358, 359, 360, 361, 362, 363, 364, 365, 366, 367, 368, 257, 258, 259, -1, 261, 262, 263, 264, 265, 266, -1, 268, 269, 270, 271, 272, 273, 274, 275, 276, 277, 278, -1, 280, -1, -1, 283, 284, 285, 286, 287, 288, 289, 290, 291, -1, 293, 294, 295, 296, 297, -1, 299, -1, -1, 302, 303, 304, 305, 306, 307, 308, 309, -1, 311, 312, 313, 314, -1, -1, 317, 318, 319, 320, 321, 322, 323, 324, 325, 326, 327, 328, 329, 330, 331, 332, 333, -1, -1, 336, 337, 338, 339, -1, -1, 342, 343, 344, 345, 346, -1, 348, 349, 350, 351, 352, 353, 354, 355, 356, 357, 358, 359, 360, 361, 362, 363, 364, 365, 366, 367, 368, 0, -1, -1, -1, -1, -1, -1, -1, -1, -1, 10, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 41, -1, -1, 44, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 59, -1, 61, -1, 63, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 91, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 0, -1, -1, -1, -1, -1, -1, -1, -1, -1, 10, -1, -1, 125, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 41, -1, -1, 44, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 59, -1, 61, -1, 63, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 91, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 125, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 257, 258, 259, -1, 261, 262, 263, 264, 265, 266, -1, 268, 269, 270, 271, 272, 273, 274, 275, 276, 277, 278, -1, 280, -1, -1, 283, 284, 285, 286, 287, 288, 289, 290, 291, -1, 293, 294, 295, 296, 297, -1, 299, -1, -1, 302, 303, 304, 305, 306, 307, 308, 309, -1, 311, 312, 313, 314, -1, -1, 317, 318, 319, 320, 321, 322, 323, 324, 325, 326, 327, 328, 329, 330, 331, 332, 333, -1, -1, 336, 337, 338, 339, -1, -1, 342, 343, 344, 345, 346, -1, 348, 349, 350, 351, 352, 353, 354, 355, 356, 357, 358, 359, 360, 361, 362, 363, 364, 365, 366, 367, 368, 257, 258, 259, -1, 261, 262, 263, 264, 265, 266, -1, 268, 269, 270, 271, 272, 273, 274, 275, 276, 277, 278, -1, -1, -1, -1, 283, 284, 285, 286, 287, 288, 289, 290, 291, -1, 293, 294, 295, 296, 297, -1, 299, -1, -1, 302, 303, 304, 305, 306, 307, 308, 309, -1, 311, 312, 313, 314, -1, -1, 317, 318, 319, 320, 321, 322, 323, 324, 325, 326, 327, 328, 329, 330, 331, 332, 333, -1, -1, 336, 337, 338, 339, -1, -1, 342, 343, 344, 345, 346, -1, 348, 349, 350, 351, 352, 353, 354, 355, 356, 357, 358, 359, 360, 361, 0, 363, 364, 365, 366, 367, 368, -1, -1, -1, 10, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 41, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 58, 59, -1, 0, -1, -1, -1, -1, -1, -1, -1, -1, -1, 10, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 41, -1, -1, 44, -1, -1, 41, -1, -1, 44, -1, -1, -1, 41, -1, -1, -1, -1, 0, -1, 61, -1, -1, -1, -1, -1, 61, -1, 10, -1, -1, 59, -1, -1, -1, -1, 125, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 91, -1, -1, -1, -1, -1, 91, -1, -1, 41, -1, -1, 44, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 58, 59, -1, -1, -1, 63, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 125, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 91, -1, 93, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 125, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 257, 258, 259, -1, 261, 262, 263, 264, 265, 266, 267, 268, 269, 270, 271, 272, 273, 274, 275, 276, 277, 278, -1, -1, 281, -1, 283, 284, 285, 286, 287, 288, 289, 290, 291, -1, 293, 294, 295, 296, 297, -1, 299, 0, -1, 302, 303, 304, 305, 306, 307, 308, 309, 10, 311, 312, 313, 314, -1, -1, 317, 318, 319, -1, -1, -1, 262, 263, 264, -1, 279, 280, 268, 269, 331, 271, 279, -1, -1, -1, -1, 338, 339, -1, 41, 342, -1, 344, 345, 346, -1, 348, -1, 350, -1, 352, -1, -1, -1, -1, -1, 58, 59, 360, -1, -1, 363, 364, 365, 366, 367, 368, 262, 263, 264, -1, -1, 267, 268, 269, -1, 271, 331, -1, -1, -1, -1, -1, 331, 338, 280, 281, 282, -1, 343, 338, 93, -1, -1, -1, 290, 291, -1, 293, 294, 295, 296, 297, -1, -1, 359, 0, -1, 362, -1, -1, 359, -1, -1, -1, -1, 10, -1, -1, -1, -1, -1, -1, 125, -1, 320, 321, 322, 323, 324, 325, 326, 327, 328, 329, 330, 331, 332, 333, 0, -1, 336, 337, 338, -1, -1, 341, 41, -1, 10, -1, -1, 347, -1, 349, -1, 351, -1, 353, 354, 355, 356, 357, 358, 359, 59, 361, 362, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 0, 41, -1, -1, 44, -1, -1, -1, -1, -1, 10, -1, -1, -1, -1, -1, -1, -1, 58, 59, -1, -1, -1, 63, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 41, -1, -1, -1, -1, -1, -1, -1, -1, -1, 91, 125, 93, -1, -1, -1, -1, -1, 59, -1, 0, -1, -1, -1, -1, -1, -1, -1, -1, -1, 10, -1, -1, -1, -1, -1, -1, -1, -1, -1, 262, 263, 264, -1, 125, 267, 268, 269, -1, 271, -1, -1, -1, -1, -1, -1, -1, -1, -1, 281, 282, 41, -1, -1, 44, -1, -1, -1, 290, 291, -1, 293, 294, 295, 296, 297, -1, -1, 58, 59, -1, 61, -1, 63, 125, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 91, -1, 93, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 347, -1, -1, -1, -1, -1, -1, -1, 0, -1, -1, -1, -1, -1, -1, -1, -1, -1, 10, -1, 125, -1, -1, 262, 263, 264, -1, -1, -1, 268, 269, -1, 271, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 41, -1, -1, 44, -1, -1, -1, 262, 263, 264, -1, -1, 267, 268, 269, -1, 271, 58, 59, -1, 61, -1, 63, -1, -1, 280, 281, 282, -1, -1, -1, -1, -1, -1, -1, 290, 291, -1, 293, 294, 295, 296, 297, -1, -1, -1, -1, 262, 263, 264, 91, -1, 93, 268, 269, -1, 271, -1, -1, -1, -1, -1, -1, -1, -1, 320, 321, 322, 323, 324, 325, 326, 327, 328, 329, 330, 331, 332, 333, -1, -1, 336, 337, 338, 125, -1, 341, -1, -1, -1, -1, -1, 347, -1, 349, -1, 351, -1, 353, 354, 355, 356, 357, 358, 359, -1, 361, 362, 262, 263, 264, -1, -1, 267, 268, 269, -1, 271, -1, -1, -1, -1, 0, -1, -1, -1, -1, 281, 282, -1, -1, -1, 10, -1, -1, -1, 290, 291, -1, 293, 294, 295, 296, 297, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 41, -1, -1, 320, 321, 322, 323, 324, 325, 326, 327, 328, 329, 330, 331, 332, 333, 58, 59, 336, 337, 338, -1, 340, 341, -1, -1, -1, -1, -1, 347, -1, 349, -1, 351, 0, 353, 354, 355, 356, 357, 358, 359, -1, 361, 10, -1, 0, -1, -1, -1, -1, -1, -1, -1, -1, -1, 10, 262, 263, 264, -1, -1, 267, 268, 269, -1, 271, -1, -1, -1, -1, -1, -1, -1, -1, 41, 281, 282, 44, -1, -1, -1, -1, 125, -1, 290, 291, 41, 293, 294, 295, 296, 297, 59, -1, -1, -1, -1, -1, 0, -1, -1, -1, -1, -1, 59, -1, -1, -1, 10, -1, -1, -1, -1, -1, 320, 321, 322, 323, 324, 325, 326, 327, 328, 329, 330, 331, 332, 333, -1, -1, 336, 337, 338, -1, -1, 341, -1, -1, -1, 41, -1, 347, 44, 349, -1, 351, -1, 353, 354, 355, 356, 357, 358, 359, -1, 361, 58, 59, 125, 61, -1, 63, -1, -1, -1, -1, -1, -1, -1, -1, 125, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 91, -1, 93, -1, -1, -1, -1, -1, -1, 0, -1, -1, -1, -1, -1, -1, -1, -1, -1, 10, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 262, 263, 264, -1, 125, 267, 268, 269, -1, 271, -1, -1, -1, -1, -1, -1, -1, -1, -1, 281, 41, -1, -1, 44, -1, -1, -1, -1, 290, 291, -1, 293, 294, 295, 296, 297, -1, 58, 59, -1, 61, -1, 63, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 91, -1, 93, -1, -1, -1, 262, 263, 264, -1, -1, -1, 268, 269, -1, 271, -1, -1, 262, 263, 264, -1, -1, 0, 268, 269, -1, 271, -1, -1, -1, -1, -1, 10, 125, -1, -1, 293, 294, 295, 296, 297, -1, -1, -1, -1, -1, -1, -1, 293, 294, 295, 296, 297, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 41, -1, -1, 44, -1, -1, -1, 262, 263, 264, -1, -1, 267, 268, 269, -1, 271, 58, 59, -1, -1, -1, 63, -1, -1, -1, 281, 282, -1, -1, -1, -1, -1, -1, -1, 290, 291, -1, 293, 294, 295, 296, 297, -1, -1, -1, -1, -1, -1, -1, 91, -1, 93, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 320, 321, 322, 323, 324, 325, 326, 327, 328, 329, 330, 331, 332, 333, -1, -1, 336, 337, 338, 125, -1, 341, -1, -1, -1, -1, -1, 347, -1, 349, -1, 351, -1, 353, 354, 355, 356, 357, 358, 359, -1, 361, 262, 263, 264, -1, -1, 267, 268, 269, -1, 271, -1, -1, -1, -1, -1, -1, -1, -1, -1, 281, 282, -1, -1, -1, -1, -1, -1, -1, 290, 291, -1, 293, 294, 295, 296, 297, -1, -1, -1, -1, -1, -1, 0, -1, -1, -1, -1, -1, -1, -1, -1, -1, 10, -1, -1, -1, -1, -1, 320, 321, 322, 323, 324, 325, 326, 327, 328, 329, 330, 331, 332, 333, -1, -1, 336, 337, 338, -1, -1, 341, -1, -1, -1, 41, -1, 347, 44, 349, -1, 351, -1, 353, 354, 355, 356, 357, 358, 359, 0, 361, 58, 59, -1, -1, -1, 63, -1, -1, 10, -1, -1, -1, -1, -1, 262, 263, 264, -1, -1, 267, 268, 269, -1, 271, -1, -1, -1, -1, -1, -1, -1, -1, -1, 281, 282, 93, -1, -1, -1, 41, -1, -1, 290, 291, -1, 293, 294, 295, 296, 297, -1, -1, -1, -1, -1, -1, 0, 59, -1, -1, -1, -1, -1, -1, -1, -1, 10, 125, -1, -1, -1, -1, 320, 321, 322, 323, 324, 325, 326, 327, 328, 329, 330, 331, 332, 333, -1, -1, 336, 337, 338, -1, -1, 341, -1, -1, -1, 41, -1, 347, 44, 349, -1, 351, -1, 353, 354, 355, 356, 357, 358, 359, -1, 361, 58, 59, -1, -1, -1, 63, -1, -1, -1, 125, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 91, -1, 93, -1, -1, -1, -1, -1, -1, 0, -1, -1, -1, -1, -1, -1, -1, -1, -1, 10, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 125, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 41, -1, -1, 44, -1, -1, -1, 262, 263, 264, -1, -1, 267, 268, 269, -1, 271, 58, 59, -1, -1, -1, 63, -1, -1, -1, 281, 282, -1, -1, -1, -1, -1, -1, -1, 290, 291, -1, 293, 294, 295, 296, 297, -1, -1, -1, -1, -1, -1, -1, 91, -1, 93, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 262, 263, 264, -1, -1, -1, 268, 269, -1, 271, 0, -1, -1, -1, -1, -1, -1, -1, -1, -1, 10, 125, -1, 341, -1, -1, -1, -1, -1, 347, -1, 293, 294, 295, 296, 297, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 41, -1, -1, 44, -1, -1, -1, 262, 263, 264, -1, -1, 267, 268, 269, -1, 271, 58, 59, -1, -1, -1, 63, -1, -1, -1, 281, 282, -1, -1, -1, -1, -1, -1, -1, 290, 291, -1, 293, 294, 295, 296, 297, -1, -1, -1, -1, -1, -1, -1, 91, -1, 93, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 320, 321, 322, 323, 324, 325, 326, 327, 328, 329, 330, 331, 332, 333, -1, -1, 336, 337, 338, 125, -1, 341, -1, -1, -1, -1, -1, 347, -1, 349, -1, 351, -1, 353, 354, 355, 356, 357, 358, 359, -1, 361, 262, 263, 264, -1, -1, 267, 268, 269, -1, 271, -1, -1, -1, -1, -1, -1, -1, -1, -1, 281, 282, -1, -1, -1, -1, -1, -1, -1, 290, 291, -1, 293, 294, 295, 296, 297, -1, -1, -1, -1, -1, -1, 0, -1, -1, -1, -1, -1, -1, -1, -1, -1, 10, -1, -1, -1, -1, -1, 320, 321, 322, 323, 324, 325, 326, 327, 328, 329, 330, 331, 332, 333, -1, -1, 336, 337, 338, -1, -1, 341, -1, -1, -1, 41, -1, 347, 44, 349, -1, 351, -1, 353, 354, 355, 356, 357, 358, 359, -1, 361, 58, 59, -1, -1, -1, 63, -1, -1, -1, -1, -1, -1, -1, -1, 262, 263, 264, -1, -1, 267, 268, 269, -1, 271, -1, -1, -1, -1, -1, -1, -1, -1, -1, 281, 282, 93, -1, -1, -1, -1, -1, -1, 290, 291, -1, 293, 294, 295, 296, 297, -1, -1, -1, -1, -1, -1, 0, -1, -1, -1, -1, -1, -1, -1, -1, -1, 10, 125, -1, -1, -1, -1, 320, 321, 322, 323, 324, 325, 326, 327, 328, 329, 330, 331, 332, 333, -1, -1, 336, 337, 338, -1, -1, 341, -1, -1, -1, 41, -1, 347, 44, 349, -1, 351, -1, 353, 354, 355, 356, 357, 358, 359, -1, 361, 58, 59, -1, -1, -1, 63, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 91, -1, 93, -1, -1, -1, -1, -1, -1, 0, -1, -1, -1, -1, -1, -1, -1, -1, -1, 10, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 125, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 41, -1, -1, 44, -1, -1, -1, 262, 263, 264, -1, -1, 267, 268, 269, -1, 271, 58, 59, -1, -1, -1, 63, -1, -1, -1, 281, 282, -1, -1, -1, -1, -1, -1, -1, 290, 291, -1, 293, 294, 295, 296, 297, -1, -1, -1, -1, -1, -1, -1, 91, -1, 93, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 0, -1, -1, -1, -1, -1, -1, -1, -1, -1, 10, 125, -1, 341, -1, -1, -1, -1, -1, 347, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 41, -1, -1, 44, -1, -1, -1, 262, 263, 264, -1, -1, 267, 268, 269, -1, 271, 58, 59, -1, -1, -1, 63, -1, -1, -1, 281, 282, -1, -1, -1, -1, -1, -1, -1, 290, 291, -1, 293, 294, 295, 296, 297, -1, -1, -1, -1, -1, -1, -1, 91, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 321, 322, 323, 324, 325, 326, 327, 328, 329, 330, 331, 332, 333, -1, -1, 336, 337, 338, 125, -1, 341, -1, -1, -1, -1, -1, 347, -1, 349, -1, 351, -1, 353, 354, 355, 356, 357, 358, 359, -1, 361, 262, 263, 264, -1, -1, 267, 268, 269, -1, 271, -1, -1, -1, -1, 0, -1, -1, -1, -1, 281, 282, -1, -1, -1, 10, -1, -1, -1, 290, 291, -1, 293, 294, 295, 296, 297, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 41, -1, -1, 44, 321, 322, 323, 324, 325, 326, 327, 328, 329, 330, 331, 332, 333, 58, 59, 336, 337, 338, 63, -1, 341, -1, -1, -1, -1, -1, 347, -1, 349, -1, 351, -1, 353, 354, 355, 356, 357, 358, 359, -1, 361, -1, -1, -1, -1, -1, 91, -1, -1, -1, -1, -1, -1, -1, -1, 262, 263, 264, -1, -1, 267, 268, 269, -1, 271, -1, -1, -1, -1, -1, -1, -1, -1, -1, 281, -1, -1, -1, -1, -1, 125, -1, -1, 290, 291, -1, 293, 294, 295, 296, 297, -1, -1, -1, -1, -1, -1, -1, -1, -1, 0, -1, -1, -1, -1, -1, -1, -1, -1, -1, 10, -1, -1, 320, 321, 322, 323, 324, 325, 326, 327, 328, 329, 330, 331, 332, 333, -1, -1, 336, 337, 338, -1, -1, 341, -1, -1, -1, -1, -1, -1, 41, 349, 0, 351, -1, 353, 354, 355, 356, 357, 358, 359, 10, 361, -1, -1, -1, 58, 59, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 41, -1, -1, 44, -1, -1, -1, -1, -1, 93, -1, -1, -1, -1, -1, -1, -1, 58, 59, -1, -1, -1, 63, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 262, 263, 264, -1, -1, 267, 268, 269, 125, 271, -1, -1, -1, -1, -1, -1, -1, 91, -1, 281, -1, -1, -1, -1, -1, -1, -1, -1, 290, 291, -1, 293, 294, 295, 296, 297, -1, -1, -1, -1, -1, -1, 0, -1, -1, -1, -1, -1, -1, -1, -1, 125, 10, -1, -1, -1, -1, -1, 320, 321, 322, 323, 324, 325, 326, 327, 328, 329, 330, 331, 332, 333, -1, -1, 336, 337, 338, -1, -1, 341, -1, -1, -1, 41, -1, -1, 44, 349, -1, 351, -1, 353, 354, 355, 356, 357, 358, 359, -1, 361, 58, 59, -1, -1, -1, 63, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 93, -1, -1, -1, -1, -1, -1, -1, 0, -1, 262, 263, 264, -1, -1, 267, 268, 269, 10, 271, -1, -1, -1, -1, -1, -1, -1, -1, -1, 281, 282, -1, 125, -1, -1, -1, -1, -1, 290, 291, -1, 293, 294, 295, 296, 297, -1, -1, -1, 41, -1, -1, 44, 262, 263, 264, -1, -1, 267, 268, 269, -1, 271, -1, -1, -1, 58, 59, -1, -1, -1, 63, 281, -1, -1, -1, -1, -1, -1, -1, -1, 290, 291, -1, 293, 294, 295, 296, 297, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 93, -1, -1, -1, -1, -1, -1, -1, -1, -1, 320, 321, 322, 323, 324, 325, 326, 327, 328, 329, 330, 331, 332, 333, -1, -1, 336, 337, 338, -1, -1, 341, 125, -1, -1, -1, -1, -1, -1, 349, -1, 351, -1, 353, 354, 355, 356, 357, 358, 359, -1, 361, -1, -1, 0, -1, -1, -1, -1, -1, -1, -1, -1, -1, 10, -1, 0, -1, 262, 263, 264, -1, -1, 267, 268, 269, 10, 271, -1, -1, -1, -1, -1, -1, -1, -1, -1, 281, 282, -1, -1, -1, -1, -1, -1, 41, 290, 291, 44, 293, 294, 295, 296, 297, -1, -1, -1, 41, -1, -1, 44, -1, 58, 59, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 59, -1, 321, 322, 323, 324, 325, 326, 327, 328, 329, 330, -1, 332, 333, -1, -1, 336, 337, -1, -1, -1, 341, -1, -1, -1, -1, -1, 347, -1, 349, -1, 351, -1, 353, 354, 355, 356, 357, 358, 359, -1, 361, -1, 262, 263, 264, -1, -1, 267, 268, 269, -1, 271, 125, -1, -1, -1, 0, -1, -1, -1, -1, 281, 282, -1, 125, -1, 10, -1, -1, -1, 290, 291, -1, 293, 294, 295, 296, 297, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 41, -1, -1, 44, 321, 322, 323, 324, 325, 326, 327, 328, 329, 330, -1, 332, 333, 58, 59, 336, 337, -1, 63, -1, 341, -1, -1, -1, -1, -1, 347, -1, 349, -1, 351, -1, 353, 354, 355, 356, 357, 358, 359, -1, 361, -1, -1, -1, -1, -1, -1, -1, 93, -1, -1, -1, -1, -1, -1, 0, -1, -1, -1, -1, -1, -1, -1, -1, -1, 10, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 125, -1, -1, -1, -1, -1, -1, -1, 262, 263, 264, -1, -1, 267, 268, 269, 41, 271, -1, 44, 262, 263, 264, -1, -1, -1, 268, 269, -1, 271, -1, -1, -1, 58, 59, -1, -1, -1, 63, 293, 294, 295, 296, 297, -1, -1, -1, -1, 290, 291, -1, 293, 294, 295, 296, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 93, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 341, -1, 0, -1, -1, -1, -1, -1, -1, -1, -1, -1, 10, 125, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 41, -1, -1, 44, -1, -1, -1, 262, 263, 264, -1, -1, 267, 268, 269, -1, 271, 58, 59, -1, -1, -1, 63, -1, -1, -1, 281, 282, -1, -1, -1, -1, -1, -1, -1, 290, 291, -1, 293, 294, 295, 296, 297, -1, -1, -1, -1, -1, -1, -1, -1, -1, 93, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 321, 322, 323, 324, 325, 326, 327, 328, 329, 330, -1, 332, 333, -1, -1, 336, 337, -1, 125, -1, 341, 0, -1, -1, -1, -1, 347, -1, 349, -1, 351, 10, 353, 354, 355, 356, 357, 358, 359, -1, 361, 262, 263, 264, -1, -1, 267, 268, 269, -1, 271, -1, -1, -1, -1, -1, -1, -1, -1, -1, 281, 282, 41, -1, -1, 44, -1, -1, -1, 290, 291, -1, 293, 294, 295, 296, 297, -1, -1, 58, 59, -1, -1, -1, 63, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 321, 322, 323, 324, 325, 326, 327, 328, 329, 330, -1, 332, 333, -1, 93, 336, 337, -1, -1, -1, 341, -1, -1, -1, -1, -1, 347, -1, 349, -1, 351, -1, 353, 354, 355, 356, 357, 358, 359, -1, 361, -1, -1, -1, -1, -1, 125, -1, -1, -1, -1, -1, -1, -1, -1, 262, 263, 264, -1, -1, 267, 268, 269, -1, 271, -1, -1, -1, -1, 0, -1, -1, -1, -1, 281, 282, -1, -1, -1, 10, -1, -1, -1, 290, 291, -1, 293, 294, 295, 296, 297, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 41, -1, -1, 44, 321, 322, 323, 324, 325, 326, 327, 328, 329, 330, -1, 332, 333, 58, 59, 336, 337, -1, 63, -1, 341, -1, -1, -1, -1, -1, 347, -1, 349, -1, 351, -1, 353, 354, 355, 356, 357, 358, 359, -1, 361, -1, -1, -1, -1, -1, -1, -1, 93, -1, -1, -1, -1, -1, -1, 0, -1, -1, -1, -1, -1, -1, -1, -1, -1, 10, -1, -1, -1, 262, 263, 264, -1, -1, 267, 268, 269, -1, 271, -1, 125, -1, -1, -1, -1, -1, -1, -1, 281, 282, -1, -1, -1, -1, -1, -1, 41, 290, 291, 44, 293, 294, 295, 296, 297, -1, -1, -1, -1, -1, -1, -1, -1, -1, 59, -1, 61, -1, 63, -1, -1, -1, -1, -1, -1, -1, -1, -1, 321, 322, 323, 324, 325, 326, 327, 328, 329, 330, -1, 332, 333, -1, -1, 336, 337, -1, 91, -1, 341, -1, -1, -1, -1, -1, 347, -1, 349, -1, 351, -1, 353, 354, 355, 356, 357, 358, 359, -1, 361, 0, -1, -1, -1, -1, -1, -1, -1, -1, -1, 10, 125, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 41, -1, -1, 44, -1, -1, -1, 262, 263, 264, -1, -1, 267, 268, 269, -1, 271, -1, 59, -1, 61, -1, 63, -1, -1, -1, 281, 282, -1, -1, -1, -1, -1, -1, -1, 290, 291, -1, 293, 294, 295, 296, 297, -1, -1, -1, -1, -1, -1, -1, 91, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 321, 322, 323, 324, 325, 326, 327, 328, 329, 330, -1, 332, 333, -1, -1, 336, 337, -1, 125, 0, 341, -1, -1, -1, -1, -1, 347, -1, 349, 10, 351, -1, 353, 354, 355, 356, 357, 358, 359, -1, 361, 262, 263, 264, -1, -1, -1, 268, 269, -1, 271, -1, -1, -1, -1, -1, -1, -1, -1, -1, 41, -1, -1, -1, -1, -1, -1, -1, -1, 290, 291, -1, 293, 294, 295, 296, 297, 58, 59, -1, 0, -1, -1, -1, -1, -1, -1, -1, -1, -1, 10, -1, -1, -1, -1, -1, -1, -1, -1, 320, 321, 322, 323, 324, 325, 326, 327, 328, 329, 330, 331, 332, 333, -1, -1, 336, 337, 338, -1, 340, -1, 41, -1, -1, 44, -1, -1, -1, 349, -1, 351, -1, 353, 354, 355, 356, 357, 358, 359, 59, 361, 61, -1, 63, 125, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 262, 263, 264, -1, -1, -1, 268, 269, -1, 271, -1, }; } | 48072 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/48072/a404cb04ade8bbc527b55cf473199686102428e1/YyTables.java/clean/src/org/jruby/parser/YyTables.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
565,
3238,
760,
727,
3025,
8526,
9016,
1564,
22,
1435,
288,
1377,
327,
394,
3025,
8526,
288,
6647,
300,
21,
16,
282,
26936,
16,
282,
300,
21,
16,
282,
300,
21,
16,
282,
300,
21,
16,
282,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
565,
3238,
760,
727,
3025,
8526,
9016,
1564,
22,
1435,
288,
1377,
327,
394,
3025,
8526,
288,
6647,
300,
21,
16,
282,
26936,
16,
282,
300,
21,
16,
282,
300,
21,
16,
282,
300,
21,
16,
282,
... |
if(hasSameEncoding(encoding)) | if(hasSameEncoding(encoding)) { | protected void doStore() { String encoding = getSelectedEncoding(); if(hasSameEncoding(encoding)) return; IDEEncoding.addIDEEncoding(encoding); if (encoding.equals(getDefaultEnc())) { getPreferenceStore().setToDefault(getPreferenceName()); } else { getPreferenceStore().setValue(getPreferenceName(), encoding); } } | 57470 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57470/e38d295ea613cf9f08aadb93a84a33d2e91abc5f/EncodingFieldEditor.java/clean/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/ide/dialogs/EncodingFieldEditor.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1117,
918,
741,
2257,
1435,
288,
202,
202,
780,
2688,
273,
16625,
4705,
5621,
9506,
202,
430,
12,
5332,
8650,
4705,
12,
5999,
3719,
1082,
202,
2463,
31,
9506,
202,
10385,
4705,
18,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1117,
918,
741,
2257,
1435,
288,
202,
202,
780,
2688,
273,
16625,
4705,
5621,
9506,
202,
430,
12,
5332,
8650,
4705,
12,
5999,
3719,
1082,
202,
2463,
31,
9506,
202,
10385,
4705,
18,
... |
return new Instance(dest.weight(), vals); | inst = new Instance(dest.weight(), vals); | protected Instance mergeInstances(Instance source, Instance dest) throws Exception { Instances outputFormat = outputFormatPeek(); double[] vals = new double[outputFormat.numAttributes()]; for(int i = 0; i < vals.length; i++) { if (m_SelectedCols.isInRange(i)) { if (source != null) { vals[i] = source.value(i); } } else { vals[i] = dest.value(i); } } if (dest instanceof SparseInstance) { return new SparseInstance(dest.weight(), vals); } else { return new Instance(dest.weight(), vals); } } | 6866 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6866/990bad9b8ecbcdb348159fb4d331b15b15b2282d/TimeSeriesTranslateFilter.java/buggy/filters/TimeSeriesTranslateFilter.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
4750,
5180,
2691,
5361,
12,
1442,
1084,
16,
5180,
1570,
13,
565,
1216,
1185,
288,
565,
18357,
27205,
273,
27205,
30950,
5621,
565,
1645,
8526,
5773,
273,
394,
1645,
63,
2844,
1630,
18,
21... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
4750,
5180,
2691,
5361,
12,
1442,
1084,
16,
5180,
1570,
13,
565,
1216,
1185,
288,
565,
18357,
27205,
273,
27205,
30950,
5621,
565,
1645,
8526,
5773,
273,
394,
1645,
63,
2844,
1630,
18,
21... |
return super.toString()+":"+usk; | return super.toString()+ ':' +usk; | public String toString() { return super.toString()+":"+usk; } | 50653 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50653/62fd59041864b4ed1f43adc676de6bfb5ea977f3/USKFetcherWrapper.java/buggy/src/freenet/client/async/USKFetcherWrapper.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
514,
1762,
1435,
288,
202,
202,
2463,
2240,
18,
10492,
1435,
9078,
2773,
15,
407,
79,
31,
202,
97,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
514,
1762,
1435,
288,
202,
202,
2463,
2240,
18,
10492,
1435,
9078,
2773,
15,
407,
79,
31,
202,
97,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
if (variableName != null) { | /* * Bug 84056. If we update the active workbench window, then we * risk falling back to that shell when the active shell has * registered as "none". */ if ((variableName != null) && (!ISources.ACTIVE_WORKBENCH_WINDOW_NAME .equals(variableName))) { | private final void updateCurrentState() { final Iterator providerItr = providers.iterator(); while (providerItr.hasNext()) { final ISourceProvider provider = (ISourceProvider) providerItr .next(); final Map currentState = provider.getCurrentState(); final Iterator variableItr = currentState.entrySet().iterator(); while (variableItr.hasNext()) { final Map.Entry entry = (Map.Entry) variableItr.next(); final String variableName = (String) entry.getKey(); final Object variableValue = entry.getValue(); if (variableName != null) { if (variableValue == null) { context.removeVariable(variableName); } else { context.addVariable(variableName, variableValue); } } } } } | 55805 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/55805/84044ea1f15fa7a97c26f7026df5fc2dfe7b0e71/ContextAuthority.java/buggy/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/contexts/ContextAuthority.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
727,
918,
1089,
3935,
1119,
1435,
288,
202,
202,
6385,
4498,
2893,
28984,
273,
9165,
18,
9838,
5621,
202,
202,
17523,
261,
6778,
28984,
18,
5332,
2134,
10756,
288,
1082,
202,
6... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
727,
918,
1089,
3935,
1119,
1435,
288,
202,
202,
6385,
4498,
2893,
28984,
273,
9165,
18,
9838,
5621,
202,
202,
17523,
261,
6778,
28984,
18,
5332,
2134,
10756,
288,
1082,
202,
6... |
if(patternRegion == null){ | if(patternTile == null){ | public ConcretePatternPaintContext(ColorModel destCM, AffineTransform usr2dev, RenderingHints hints, GraphicsNode node, AffineTransformSource nodeTransformSource, FilterRegion patternRegion, boolean overflow){ if(usr2dev == null){ throw new IllegalArgumentException(); } if(hints == null){ hints = new RenderingHints(null); } if(node == null){ throw new IllegalArgumentException(); } if(patternRegion == null){ throw new IllegalArgumentException(); } AffineTransform nodeTxf = null; if(nodeTransformSource != null){ nodeTxf = nodeTransformSource.getTransform(); } else{ nodeTxf = new AffineTransform(); } Rectangle2D nodeBounds = node.getBounds(); Rectangle2D patternBounds = patternRegion.getRegion(); tileX = patternBounds.getX(); tileY = patternBounds.getY(); tileWidth = patternBounds.getWidth(); tileHeight = patternBounds.getHeight(); // System.out.println("nodeBounds : " + nodeBounds); // System.out.println("patternBounds : " + patternBounds); // // adjustTxf applies the nodeTransform first, then // the translation to move the node rendering into // the pattern region space // AffineTransform adjustTxf = new AffineTransform(); adjustTxf.translate(patternBounds.getX(), patternBounds.getY()); adjustTxf.concatenate(nodeTxf); GraphicsNodeRable gnr = new ConcreteGraphicsNodeRable(node); AffineRable atr = new ConcreteAffineRable(gnr, adjustTxf); Rectangle2D padBounds = (Rectangle2D)patternBounds.clone(); if(overflow){ // System.out.println("Pattern overflow ...."); // // When there is overflow, make sure we take the // full node bounds into account. // /*AffineTransform adjustTxfInv = null; try{ adjustTxfInv = adjustTxf.createInverse(); }catch(NoninvertibleTransformException e){ }finally { if(adjustTxfInv == null){ adjustTxfInv = new AffineTransform(); } }*/ Rectangle2D adjustedNodeBounds = adjustTxf.createTransformedShape(nodeBounds).getBounds2D(); // System.out.println("adjustedBounds : " + adjustedNodeBounds); padBounds.add(adjustedNodeBounds); } // System.out.println("padBounds : " + padBounds); PadRable pad = new ConcretePadRable(atr, padBounds, PadMode.ZERO_PAD); // System.out.println("Created PadRable"); padTxf = new AffineTransform(usr2dev); // Compute area of interest // TO BE DONE: THIS DOES NOT TAKE INTO ACCOUNT THAT // THE AREA OF INTEREST MAY BE A SUB-REGION OF A PATTERN // TILE. RenderContext rc = new RenderContext(padTxf, padBounds, hints); tile = pad.createRendering(rc); // System.out.println("Created rendering"); if(tile == null){ // System.out.println("Tile was null"); WritableRaster wr = rasterCM.createCompatibleWritableRaster(32, 32); tile = new BufferedImage(rasterCM, wr, false, null); } try{ dev2usr = padTxf.createInverse(); }catch(NoninvertibleTransformException e){ // Degenerate case. Use identity dev2usr = new AffineTransform(); } } | 45946 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45946/299454dfb065fd574c4a87058f4b052fca8971ac/ConcretePatternPaintContext.java/clean/sources/org/apache/batik/refimpl/gvt/ConcretePatternPaintContext.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
735,
6883,
3234,
12699,
1042,
12,
2957,
1488,
1570,
9611,
16,
4766,
4202,
23906,
558,
4059,
16575,
22,
5206,
16,
4766,
4202,
22391,
13442,
16,
4766,
4202,
16830,
907,
756,
16,
4766,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
735,
6883,
3234,
12699,
1042,
12,
2957,
1488,
1570,
9611,
16,
4766,
4202,
23906,
558,
4059,
16575,
22,
5206,
16,
4766,
4202,
22391,
13442,
16,
4766,
4202,
16830,
907,
756,
16,
4766,
... |
gc.drawText("(" + String.valueOf(fdCurrent.getSize()) + ")", this.getSize().x - 36, 3); | gc.drawText("(" + String.valueOf(fdCurrent.getSize()) + ")", this.getSize().x - 36, 3); | public void paintControl(PaintEvent pe) { Font fSize = null; Font fCurrent = null; Color cFore = null; GC gc = pe.gc; Font fOld = gc.getFont(); if (cdCurrent != null && bUseColor) { cFore = new Color(this.getDisplay(), cdCurrent.getRed(), cdCurrent.getGreen(), cdCurrent.getBlue()); } else { cFore = new Color(this.getDisplay(), 0, 0, 0); } gc.setForeground(cFore); if (fdCurrent != null) { // Handle styles int iStyle = (fdCurrent.isBold()) ? SWT.BOLD : SWT.NORMAL; iStyle |= (fdCurrent.isItalic()) ? SWT.ITALIC : iStyle; String sFontName = fdCurrent.getName(); if (!bUseSize) { gc.setClipping(2, 2, this.getSize().x - 40, 26); fCurrent = new Font(this.getDisplay(), fdCurrent.getName(), fOld.getFontData()[0].getHeight(), iStyle); } else { fCurrent = new Font(this.getDisplay(), fdCurrent.getName(), (int) fdCurrent.getSize(), iStyle); } gc.setFont(fCurrent); // Calculate the location to render text int iStartX = 5; int iStartY = 3; if (bUseAlignment) { if (fdCurrent.getAlignment().getHorizontalAlignment().equals(HorizontalAlignment.LEFT_LITERAL)) { iStartX = 5; } else if (fdCurrent.getAlignment().getHorizontalAlignment().equals(HorizontalAlignment.CENTER_LITERAL)) { iStartX = this.getSize().x / 2 - (getStringWidth(gc, sFontName).x / 2); } else if (fdCurrent.getAlignment().getHorizontalAlignment().equals(HorizontalAlignment.RIGHT_LITERAL)) { iStartX = this.getSize().x - getStringWidth(gc, sFontName).x; } if (fdCurrent.getAlignment().getVerticalAlignment().equals(VerticalAlignment.TOP_LITERAL)) { iStartY = 3; } else if (fdCurrent.getAlignment().getVerticalAlignment().equals(VerticalAlignment.CENTER_LITERAL)) { iStartY = (this.getSize().y / 2); if (bUseSize) { iStartY -= (getStringWidth(gc, sFontName).y / 2); } else { iStartY -= 15; } } else if (fdCurrent.getAlignment().getVerticalAlignment().equals(VerticalAlignment.BOTTOM_LITERAL)) { iStartY = this.getSize().y; if (bUseSize) { iStartY -= (getStringWidth(gc, sFontName).y); } else { iStartY -= 30; } } } gc.drawText(sFontName, iStartX, iStartY); if (fdCurrent.isUnderline()) { gc.drawLine(iStartX, iStartY + getStringWidth(gc, sFontName).y - gc.getFontMetrics().getDescent(), iStartX + getStringWidth(gc, sFontName).x - gc.getFontMetrics().getDescent(), iStartY + getStringWidth(gc, sFontName).y - gc.getFontMetrics().getDescent()); } if (fdCurrent.isStrikethrough()) { gc.drawLine(iStartX, iStartY + (getStringWidth(gc, sFontName).y / 2) + 1, iStartX + getStringWidth(gc, sFontName).x, iStartY + (getStringWidth(gc, sFontName).y / 2) + 1); } if (!bUseSize) { gc.setClipping(1, 1, this.getSize().x, this.getSize().y); fSize = new Font(this.getDisplay(), "Sans-Serif", 10, SWT.NORMAL); gc.setFont(fSize); gc.drawText("(" + String.valueOf(fdCurrent.getSize()) + ")", this.getSize().x - 36, 3); fSize.dispose(); } fCurrent.dispose(); } cFore.dispose(); gc.setFont(fOld); } | 46013 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46013/7793e94b4d7fab5891f226c6c937e37d85bebad8/FontCanvas.java/clean/chart/org.eclipse.birt.chart.ui.extension/src/org/eclipse/birt/chart/ui/swt/composites/FontCanvas.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
12574,
3367,
12,
12699,
1133,
2804,
13,
565,
288,
3639,
10063,
284,
1225,
273,
446,
31,
3639,
10063,
284,
3935,
273,
446,
31,
3639,
5563,
276,
13573,
273,
446,
31,
3639,
15085,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
12574,
3367,
12,
12699,
1133,
2804,
13,
565,
288,
3639,
10063,
284,
1225,
273,
446,
31,
3639,
10063,
284,
3935,
273,
446,
31,
3639,
5563,
276,
13573,
273,
446,
31,
3639,
15085,... |
public AttributeDescr rule_attribute() throws RecognitionException { AttributeDescr d; AttributeDescr a = null; d = null; try { // C:\Projects\jboss-rules\drools-compiler\src\main\resources\org\drools\lang\drl.g:270:25: (a= salience | a= no_loop | a= agenda_group | a= duration | a= xor_group | a= auto_focus ) int alt29=6; switch ( input.LA(1) ) { case 33: alt29=1; break; case 34: alt29=2; break; case 37: alt29=3; break; case 38: alt29=4; break; case 36: alt29=5; break; case 35: alt29=6; break; default: NoViableAltException nvae = new NoViableAltException("265:1: rule_attribute returns [AttributeDescr d] : (a= salience | a= no_loop | a= agenda_group | a= duration | a= xor_group | a= auto_focus );", 29, 0, input); throw nvae; } switch (alt29) { case 1 : // C:\Projects\jboss-rules\drools-compiler\src\main\resources\org\drools\lang\drl.g:270:25: a= salience { following.push(FOLLOW_salience_in_rule_attribute753); a=salience(); following.pop(); d = a; } break; case 2 : // C:\Projects\jboss-rules\drools-compiler\src\main\resources\org\drools\lang\drl.g:271:25: a= no_loop { following.push(FOLLOW_no_loop_in_rule_attribute763); a=no_loop(); following.pop(); d = a; } break; case 3 : // C:\Projects\jboss-rules\drools-compiler\src\main\resources\org\drools\lang\drl.g:272:25: a= agenda_group { following.push(FOLLOW_agenda_group_in_rule_attribute774); a=agenda_group(); following.pop(); d = a; } break; case 4 : // C:\Projects\jboss-rules\drools-compiler\src\main\resources\org\drools\lang\drl.g:273:25: a= duration { following.push(FOLLOW_duration_in_rule_attribute787); a=duration(); following.pop(); d = a; } break; case 5 : // C:\Projects\jboss-rules\drools-compiler\src\main\resources\org\drools\lang\drl.g:274:25: a= xor_group { following.push(FOLLOW_xor_group_in_rule_attribute801); a=xor_group(); following.pop(); d = a; } break; case 6 : // C:\Projects\jboss-rules\drools-compiler\src\main\resources\org\drools\lang\drl.g:275:25: a= auto_focus { following.push(FOLLOW_auto_focus_in_rule_attribute812); a=auto_focus(); following.pop(); d = a; } break; } } catch (RecognitionException re) { reportError(re); recover(input,re); } finally { } return d; } | 6736 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6736/75f5f3ef6a8af3fa9515d2007a16f1fd6f3ce0d0/RuleParser.java/clean/drools-compiler/src/main/java/org/drools/lang/RuleParser.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
3601,
16198,
1720,
67,
4589,
1435,
1216,
9539,
288,
6647,
3601,
16198,
302,
31,
3639,
3601,
16198,
279,
273,
446,
31,
1171,
202,
202,
72,
273,
446,
31,
540,
202,
3639,
775,
288,
5... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
3601,
16198,
1720,
67,
4589,
1435,
1216,
9539,
288,
6647,
3601,
16198,
302,
31,
3639,
3601,
16198,
279,
273,
446,
31,
1171,
202,
202,
72,
273,
446,
31,
540,
202,
3639,
775,
288,
5... | ||
if (getPsiElement() == null || getPsiElement().getContainingFile() == null){ | final PsiElement psiElement = getPsiElement(); if (psiElement == null || psiElement.getContainingFile() == null){ | private Project getProject(){ if (getPsiElement() == null || getPsiElement().getContainingFile() == null){ return null; } return getPsiElement().getContainingFile().getProject(); } | 17306 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/17306/f7a1c0d5b9c69d4a549ba55ba965cc37918005ef/PackageDependenciesNode.java/buggy/source/com/intellij/packageDependencies/ui/PackageDependenciesNode.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
3238,
5420,
11080,
1435,
95,
565,
727,
453,
7722,
1046,
23921,
1046,
273,
1689,
7722,
1046,
5621,
309,
261,
24275,
1046,
422,
446,
747,
23921,
1046,
18,
588,
24344,
812,
1435,
422,
446,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
3238,
5420,
11080,
1435,
95,
565,
727,
453,
7722,
1046,
23921,
1046,
273,
1689,
7722,
1046,
5621,
309,
261,
24275,
1046,
422,
446,
747,
23921,
1046,
18,
588,
24344,
812,
1435,
422,
446,
1... |
LinearPrinter.println(" done replacing."); | LinearPrinter.println(" done replacing."); | private void makeReplacement(SIRFilter self) { /* if we don't have a linear form for this stream, we are done. */ if(!this.linearityInformation.hasLinearRepresentation(self)) { return; } LinearFilterRepresentation linearRep = this.linearityInformation.getLinearRepresentation(self); /* if there is not an FIR filter, we are done. */ if (!linearRep.isFIR()) { return; } /* now is when we get to the fun part, we have a linear representation * that computes an FIR (ef pop 1, push 1, peek N) and we want to replace it with an FFT. * Note that we can equate N with the block size of the input that we are looking at. */ int x = linearRep.getPeekCount(); int N = calculateN(this.targetNumberOfOutputs,x); int filterSize = N+2*(x-1); LinearPrinter.println(" creating frequency filter. (N=" + N + ",x=" + x + ",size=" + filterSize + ")"); /* make fields to hold the real and imaginary parts of the weights. */ String realWeightName = "freq_weights_r"; String imagWeightName = "freq_weights_i"; JVariableDefinition realWeightField = makeWeightField(realWeightName); JVariableDefinition imagWeightField = makeWeightField(imagWeightName); /* make fields to hold the real and imaginary partial results between executions */ String partialFieldName = "freq_partial"; JVariableDefinition partialField = makeWeightField(partialFieldName); /* wrap them up, along with any fields that the filter already has. */ JFieldDeclaration[] newFields = makeFieldDeclarations(self.getFields(),realWeightField, imagWeightField, partialField); /* make a new init function */ JMethodDeclaration freqInit = makeNewInit(linearRep, realWeightField, imagWeightField, partialField, filterSize, x); /* make the init work function */ JMethodDeclaration freqInitWork = makeNewWork(INITWORK, realWeightField, imagWeightField, partialField, filterSize, x, N); /* make a new work function */ JMethodDeclaration freqWork = makeNewWork(WORK, realWeightField, imagWeightField, partialField, filterSize, x, N); LinearPrinter.println(" done building new IR nodes for " + self); LinearPrinter.println(" creating new two stage filter..."); // Create a new filter that contains all of the new pieces that we have built SIRTwoStageFilter freqFilter; /* Note, we need to have initPeek-initPop == peek-Pop for some scheduling reason * so therefore, we set the peek rate of the work function to be N+2(x-1) even though * it really only needs to be N+x-1.*/ freqFilter = new SIRTwoStageFilter(self.getParent(), /* parent */ "TwoStageFreq" + self.getIdent(),/* ident */ newFields, /* fields */ new JMethodDeclaration[0], /* methods -- init, work, and initWork are special*/ new JIntLiteral(N+x-1 + x-1), /* peek (w/ extra x-1 window...)*/ new JIntLiteral(N+x-1), /* pop */ new JIntLiteral(N+x-1), /* push */ freqWork, /* work */ N+x-1, /* initPeek */ N, /* initPop */ N, /* initPush */ freqInitWork, /* initWork */ self.getInputType(), /* input type */ self.getOutputType()); /* output type */ // need to explicitly set the init function freqFilter.setInit(freqInit); // now replace the current filter (self) with the frequency version self.getParent().replace(self, freqFilter); LinearPrinter.println(" done replacing."); } | 47772 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47772/977e32e346a365dc97a64f732ab342501841f310/FFTWFrequencyReplacer.java/buggy/streams/src/at/dms/kjc/sir/linear/frequency/FFTWFrequencyReplacer.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
1221,
15201,
12,
2320,
54,
1586,
365,
13,
288,
202,
20308,
309,
732,
2727,
1404,
1240,
279,
9103,
646,
364,
333,
1407,
16,
732,
854,
2731,
18,
1195,
202,
430,
12,
5,
2211,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
1221,
15201,
12,
2320,
54,
1586,
365,
13,
288,
202,
20308,
309,
732,
2727,
1404,
1240,
279,
9103,
646,
364,
333,
1407,
16,
732,
854,
2731,
18,
1195,
202,
430,
12,
5,
2211,
... |
parent.replaceChild(n, new Node(TokenStream.PRIMARY, new Integer(TokenStream.TRUE))); | parent.replaceChild(n, new Node(TokenStream.PRIMARY, TokenStream.TRUE)); | void foldConstants(Node n, Node parent){ Node lChild, rChild=null; // children lChild = n.getFirstChild(); if(lChild == null){ // no children -- exit return; }else{ rChild = lChild.getNextSibling(); if(rChild == null){ foldConstants(lChild, n); // one child -- recurse return; } } /* o.w. two children -- recurse on both first and proceed */ foldConstants(lChild, n); foldConstants(rChild, n); /* take care of all the other children */ Node child = rChild.getNextSibling(); while (child != null) { foldConstants(child, n); child = child.getNextSibling(); } /* children can change, so recompute them */ lChild = n.getFirstChild(); if(lChild == null){ // no children -- exit return; }else{ rChild = lChild.getNextSibling(); if(rChild == null){ return; } } /* at this point n has two children or more */ int lt = lChild.getType(); int rt = rChild.getType(); /* two or more children */ switch(n.getType()){ /* numerical addition and string concatenation */ case TokenStream.ADD: /* number addition -- both numbers */ if(lt == TokenStream.NUMBER && rt == TokenStream.NUMBER){ if(lChild.getDatum() instanceof Double || rChild.getDatum() instanceof Double){ parent.replaceChild(n, new Node(TokenStream.NUMBER, new Double(lChild.getDouble() + rChild.getDouble()))); }else{ long longval = lChild.getLong() + rChild.getLong(); parent.replaceChild(n, new Node(TokenStream.NUMBER, toSmallestType(longval))); } }else /* string + string */ if(lt == TokenStream.STRING && rt == TokenStream.STRING){ parent.replaceChild(n, new Node(TokenStream.STRING, lChild.getString() + rChild.getString())); }else /* string + num */ if(lt == TokenStream.STRING && rt == TokenStream.NUMBER){ parent.replaceChild(n, new Node(TokenStream.STRING, lChild.getString() + ScriptRuntime.numberToString(rChild.getDouble(), 10))); }else /* num + string */ if(lt == TokenStream.NUMBER && rt == TokenStream.STRING){ parent.replaceChild(n, new Node(TokenStream.STRING, ScriptRuntime.numberToString(lChild.getDouble(), 10) + rChild.getString())); } /* can't do anything if we don't know both types - since 0 + object is supposed to call toString on the object and do string concantenation rather than addition */ break; /* subtraction */ case TokenStream.SUB: /* both numbers */ if(lt == TokenStream.NUMBER && rt == TokenStream.NUMBER){ if(lChild.getDatum() instanceof Double || rChild.getDatum() instanceof Double){ parent.replaceChild(n, new Node(TokenStream.NUMBER, new Double(lChild.getDouble() - rChild.getDouble()))); }else{ long longval = lChild.getLong() - rChild.getLong(); parent.replaceChild(n, new Node(TokenStream.NUMBER, toSmallestType(longval))); } }else /* first 0: 0-x -> -x */ if(lt == TokenStream.NUMBER && lChild.getDouble() == 0){ parent.replaceChild(n, new Node(TokenStream.UNARYOP, rChild, new Integer(TokenStream.SUB))); }else /* second 0: x-0 -> x */ if(rt == TokenStream.NUMBER && rChild.getDouble() == 0){ parent.replaceChild(n, lChild); } break; /* handle multiplication by zero and one */ case TokenStream.MUL: /* both constants -- just multiply */ if(lt == TokenStream.NUMBER && rt == TokenStream.NUMBER){ /* at least one double */ if(lChild.getDatum() instanceof Double || rChild.getDatum() instanceof Double){ parent.replaceChild(n, new Node(TokenStream.NUMBER, new Double(lChild.getDouble() * rChild.getDouble()))); }else{ long longval = lChild.getLong() * rChild.getLong(); parent.replaceChild(n, new Node(TokenStream.NUMBER, toSmallestType(longval))); } /* one of them is constant -- zero or one */ /* can't do zero, since zero * infinity has to become a NaN */ }else{ if(lt == TokenStream.NUMBER){ double ld = ((Number)lChild.getDatum()).doubleValue(); if(ld == 1){ parent.replaceChild(n, rChild); } }else if(rt == TokenStream.NUMBER){ double rd = ((Number)rChild.getDatum()).doubleValue(); if(rd == 1){ parent.replaceChild(n, lChild); } } } break; case TokenStream.DIV: /* both constants -- just divide */ if(lt == TokenStream.NUMBER && rt == TokenStream.NUMBER){ /* at least one double */ if((lChild.getDatum() instanceof Double || rChild.getDatum() instanceof Double)){ double d = rChild.getDouble(); if(d == 0) return; // division by zero else parent.replaceChild(n, new Node(TokenStream.NUMBER, new Double(lChild.getDouble() / d))); }else{ int d = rChild.getInt(); if(d == 0) return; // division by zero else{ long longval = lChild.getLong() / rChild.getLong(); parent.replaceChild(n, new Node(TokenStream.NUMBER, toSmallestType(longval))); } } /* 0/x , x!=0 */ }else /* x/1 */ if((rt == TokenStream.NUMBER) && // added cast -roger rChild.getDouble()==1){ parent.replaceChild(n, lChild); } break; case TokenStream.AND: /* if the first one is false, replace with FALSE */ if( ((lt == TokenStream.PRIMARY && lChild.getInt() == TokenStream.NULL) || (lt == TokenStream.PRIMARY && lChild.getInt() == TokenStream.UNDEFINED)) && !IRFactory.hasSideEffects(rChild) ){ parent.replaceChild(n, new Node(TokenStream.PRIMARY, new Integer(TokenStream.FALSE))); }else /* if the second one is false, replace with FALSE */ if( ((rt==TokenStream.PRIMARY && rChild.getInt()==TokenStream.NULL) || (rt==TokenStream.PRIMARY && rChild.getInt()==TokenStream.UNDEFINED)) && !IRFactory.hasSideEffects(lChild) ){ parent.replaceChild(n, new Node(TokenStream.PRIMARY, new Integer(TokenStream.FALSE))); }else /* if first is true, set to second */ if( (lt == TokenStream.PRIMARY && ((Integer)lChild.getDatum()).intValue() == TokenStream.TRUE) || (lt == TokenStream.NUMBER && ((Number)lChild.getDatum()).doubleValue() != 0) ){ parent.replaceChild(n, rChild); }else /* if second is true, set to first */ if( (rt == TokenStream.PRIMARY && ((Integer)rChild.getDatum()).intValue() == TokenStream.TRUE) || (rt == TokenStream.NUMBER && ((Number)rChild.getDatum()).doubleValue() != 0) ){ parent.replaceChild(n, lChild); } break; case TokenStream.OR: /* if first is false, set to second */ if( (lt == TokenStream.PRIMARY && lChild.getInt() == TokenStream.NULL) || (lt == TokenStream.PRIMARY && lChild.getInt() == TokenStream.UNDEFINED) || (lt == TokenStream.PRIMARY && lChild.getInt() == TokenStream.FALSE) || (lt == TokenStream.NUMBER && ((Number)lChild.getDatum()).doubleValue() == 0) ){ parent.replaceChild(n, rChild); }else /* if second is true, set to first */ if( (rt == TokenStream.PRIMARY && rChild.getInt() == TokenStream.NULL) || (rt == TokenStream.PRIMARY && rChild.getInt() == TokenStream.UNDEFINED) || (rt == TokenStream.PRIMARY && rChild.getInt() == TokenStream.FALSE) || (rt == TokenStream.NUMBER && ((Number)rChild.getDatum()).doubleValue() == 0) ){ parent.replaceChild(n, lChild); }else /* if first one is true, replace with TRUE */ if( ((lt == TokenStream.PRIMARY && ((Integer)lChild.getDatum()).intValue() == TokenStream.TRUE) || (lt == TokenStream.NUMBER && ((Number)lChild.getDatum()).doubleValue() != 0)) && !IRFactory.hasSideEffects(rChild) ){ parent.replaceChild(n, new Node(TokenStream.PRIMARY, new Integer(TokenStream.TRUE))); }else /* if second one is true, replace with TRUE */ if( ((rt == TokenStream.PRIMARY && ((Integer)rChild.getDatum()).intValue() == TokenStream.TRUE) || (rt == TokenStream.NUMBER && ((Number)rChild.getDatum()).doubleValue() != 0)) && !IRFactory.hasSideEffects(lChild) ){ parent.replaceChild(n, new Node(TokenStream.PRIMARY, new Integer(TokenStream.TRUE))); } break; case TokenStream.BLOCK: /* if statement */ if(lChild.getType() == TokenStream.IFNE){ Node condition = lChild.getFirstChild(); /* if(false) -> replace by the else clause if it exists */ if(condition.getType() == TokenStream.PRIMARY){ int id = condition.getInt(); if(id == TokenStream.FALSE||id == TokenStream.NULL||id == TokenStream.UNDEFINED){ Node elseClause = null; try{ elseClause = rChild.getNextSibling().getNextSibling().getNextSibling().getFirstChild(); }catch(Exception e){ return; } if(elseClause != null){ parent.replaceChild(n, elseClause); } /* if(true) -> replace by the then clause if it exists */ }else if((condition.getType() == TokenStream.PRIMARY && condition.getInt() == TokenStream.TRUE) || (condition.getType() == TokenStream.NUMBER && ((Number)condition.getDatum()).doubleValue() != 0)) { if(rChild.getType() == TokenStream.BLOCK){ parent.replaceChild(n, rChild.getFirstChild()); } } } } break; }//switch } | 47609 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47609/dfdc492a06d12db18bbb6e0ac0de6e19784f642d/Optimizer.java/buggy/js/rhino/src/org/mozilla/javascript/optimizer/Optimizer.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
918,
11590,
2918,
12,
907,
290,
16,
2029,
982,
15329,
3639,
2029,
328,
1763,
16,
436,
1763,
33,
2011,
31,
6647,
368,
2325,
3639,
328,
1763,
273,
290,
18,
588,
3759,
1763,
5621,
3639,
30... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
918,
11590,
2918,
12,
907,
290,
16,
2029,
982,
15329,
3639,
2029,
328,
1763,
16,
436,
1763,
33,
2011,
31,
6647,
368,
2325,
3639,
328,
1763,
273,
290,
18,
588,
3759,
1763,
5621,
3639,
30... |
debug("q: " + q.toString(16)); debug("N: " + N.toString(16)); debug("g: " + g.toString(16)); | log.fine("q: " + q.toString(16)); log.fine("N: " + N.toString(16)); log.fine("g: " + g.toString(16)); | public KeyPair generate() { if (N == null) { BigInteger[] params = generateParameters(); BigInteger q = params[0]; N = params[1]; g = params[2]; if (DEBUG && debuglevel > 0) { debug("q: " + q.toString(16)); debug("N: " + N.toString(16)); debug("g: " + g.toString(16)); } } return (v != null ? hostKeyPair() : userKeyPair()); } | 47947 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47947/8ace3af577b4314374a3cc74fdeae04a0733f7de/SRPKeyPairGenerator.java/buggy/gnu/javax/crypto/key/srp6/SRPKeyPairGenerator.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
28968,
2103,
1435,
225,
288,
565,
309,
261,
50,
422,
446,
13,
1377,
288,
3639,
10246,
8526,
859,
273,
2103,
2402,
5621,
3639,
10246,
1043,
273,
859,
63,
20,
15533,
3639,
423,
273,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
28968,
2103,
1435,
225,
288,
565,
309,
261,
50,
422,
446,
13,
1377,
288,
3639,
10246,
8526,
859,
273,
2103,
2402,
5621,
3639,
10246,
1043,
273,
859,
63,
20,
15533,
3639,
423,
273,
... |
} catch (SQLException e) { throw new SequenceException(e+":"+sql); | } catch (SQLException e) { throw new SequenceException(e + ":" + sql); | public void execute(int limit) throws SequenceException, InvalidQueryException { SequenceDescription seqd = query.getSequenceDescription(); boolean moreRows = true; // will go false on the last batch of SQL int batchStart = 0; // need to know these indexes specifically int queryIDindex = 0; int geneIDindex = 0; int rankIndex = 0; int assemblyIndex = 0; int startIndex = 0; int endIndex = 0; int chromIndex = 0; int strandIndex = 0; List displayIDindices = new ArrayList(); List otherIndices = new ArrayList(); queryID = "transcript_id"; coordStart = "5utr_start"; coordEnd = "5utr_end"; displayIDs.add("transcript_stable_id_v"); displayIDs.add("gene_stable_id_v"); updateQuery(); Attribute[] attributes = query.getAttributes(); String sql = null; try { CompiledSQLQuery csql = new CompiledSQLQuery( conn, query ); String sqlbase = csql.toSQL(); String structure_table = dataset+"_structure"; sqlbase += " order by "+structure_table+".gene_id, "+structure_table+".transcript_id, "+structure_table+".rank"; while (moreRows) { sql = sqlbase; if (limit > 0) { sql += " limit "+limit; moreRows = false; // run entire query for client supplied limit } else { sql += " limit "+batchStart+" , "+batchLength; batchStart += batchLength; } logger.info( "QUERY : " + query ); logger.info( "SQL : " +sql ); PreparedStatement ps = conn.prepareStatement( sql ); int p=1; for( int i=0, n=query.getFilters().length; i<n; ++i) { Filter f = query.getFilters()[i]; String value = f.getValue(); if ( value!=null ) { logger.info("SQL (prepared statement value) : "+p+" = " + value); ps.setString( p++, value); } } ResultSet rs = ps.executeQuery(); ResultSetMetaData rmeta = rs.getMetaData(); // process columnNames for required attribute indices for (int i = 1, nColumns = rmeta.getColumnCount(); i <= nColumns; ++i) { String column = rmeta.getColumnName(i); if (column.equals(queryID)) queryIDindex = i; else if (column.equals(GeneID)) geneIDindex = i; else if (column.equals(Rank)) rankIndex = i; else if (column.equals(AssemblyColumn)) assemblyIndex = i; else if (column.equals(coordStart)) startIndex = i; else if (column.equals(coordEnd)) endIndex = i; else if (column.equals(Chr)) chromIndex = i; else if (column.equals(StrandColumn)) strandIndex = i; else if (displayIDs.contains(column)) displayIDindices.add(new Integer(i)); else otherIndices.add(new Integer(i)); } int rows = 0; // rowcount Integer lastGene = new Integer(0); // will hold last gene, when a new one is encountered while ( rs.next() ) { rows++; Integer geneID = new Integer(rs.getInt(geneIDindex)); Integer tranID = new Integer(rs.getInt(queryIDindex)); Integer rank = new Integer(rs.getInt(rankIndex)); if (! ( geneiDs.containsKey(geneID) ) ) { if (geneiDs.size() > 0) { // process the previous tranID, if this isnt the first time through, then refresh the traniDs TreeMap seqWriter.writeSequences(lastGene); geneiDs = new TreeMap(); } lastGene = geneID; Hashtable geneatts = new Hashtable(); geneatts.put(Assembly, rs.getString(assemblyIndex)); geneatts.put(Transcripts, new TreeMap()); geneiDs.put(geneID, geneatts); } Hashtable geneatts = (Hashtable) geneiDs.get(geneID); TreeMap traniDs = (TreeMap) geneatts.get(Transcripts); if (! ( traniDs.containsKey(tranID) ) ) { Hashtable tranatts = new Hashtable(); tranatts.put(Locations, new TreeMap()); tranatts.put(hasUTR, Boolean.FALSE); // initialize to falst, over ride if necessary traniDs.put(tranID, tranatts); } Hashtable tranatts = (Hashtable) traniDs.get(tranID); int start = rs.getInt(startIndex); if (start > 0) { // if start is not null, create a new SequenceLocation object from the chr, start, end, and strand tranatts.put(hasUTR, Boolean.TRUE); String chr = rs.getString(chromIndex); int end = rs.getInt(endIndex); int strand = rs.getInt(strandIndex); // order the locations by their rank in ascending order ((TreeMap) tranatts.get(Locations)).put(rank, new SequenceLocation(chr, start, end, strand)); // keep track of the lowest start and highest end for the gene if (! ( geneatts.containsKey(Geneloc) ) ) { geneatts.put(Geneloc, new SequenceLocation(chr, start, end, strand)); } else { SequenceLocation geneloc = (SequenceLocation) geneatts.get(Geneloc); if (start < geneloc.getStart()) { geneatts.put(Geneloc, new SequenceLocation(chr, start, geneloc.getEnd(), strand)); // overwrite the previous copy if (end > geneloc.getEnd()) geneatts.put(Geneloc, new SequenceLocation(chr, geneloc.getStart(), end, strand)); // overwrite the previous copy } } } // process displayID, if necessary if (! ( tranatts.containsKey(DisplayID) ) ) { StringBuffer displayID = new StringBuffer(); for (int i = 0, n = displayIDindices.size(); i < n; i++) { if (i>0) displayID.append( separator ); int currindex = ((Integer) displayIDindices.get(i)).intValue(); if ( rs.getString(currindex) != null ) displayID.append( rs.getString(currindex) ); } tranatts.put(DisplayID, displayID.toString()); } // Rest can be duplicates, or novel values for a given field, collect lists of values for each field // currindex is now the last index of the DisplayIDs. Increment it, and iterate over the rest of the ResultSet to print the description for (int i = 0, n = otherIndices.size(); i < n; i++) { int currindex = ((Integer) otherIndices.get(i)).intValue(); if (rs.getString(currindex) != null ) { String field = attributes[currindex-1].getName(); if (! fields.contains(field)) fields.add(field); String value = rs.getString(currindex); if ( tranatts.containsKey(field) ) { if (! ((ArrayList) tranatts.get(field)).contains(value)) ((ArrayList) tranatts.get(field)).add(value); } else { List values = new ArrayList(); values.add(value); tranatts.put(field, values); } } } // add the description, if necessary if (! ( tranatts.containsKey(Description) ) ) tranatts.put( Description, seqd.getDescription() ); } // write the last genes data, if present if (lastGene.intValue() > 0) seqWriter.writeSequences(lastGene); if (rows < batchLength) moreRows = false; } osr.close(); } catch (IOException e) { throw new InvalidQueryException(e); } catch (SQLException e) { throw new SequenceException(e+":"+sql); } } | 2000 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2000/47e8a48fd57c1301cf94459ce61bcbde06c272f7/UpStreamUTRSeqQueryRunner.java/clean/src/java/org/ensembl/mart/explorer/UpStreamUTRSeqQueryRunner.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
1836,
12,
474,
1800,
13,
1216,
8370,
503,
16,
1962,
1138,
503,
288,
202,
202,
4021,
3291,
3833,
72,
273,
843,
18,
588,
4021,
3291,
5621,
377,
1250,
1898,
4300,
273,
638,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
1836,
12,
474,
1800,
13,
1216,
8370,
503,
16,
1962,
1138,
503,
288,
202,
202,
4021,
3291,
3833,
72,
273,
843,
18,
588,
4021,
3291,
5621,
377,
1250,
1898,
4300,
273,
638,
... |
IElementType tokenType = iterator.getTokenType(); | IElementType tokenType = getToken(iterator); | public boolean isStructuralBrace(HighlighterIterator iterator,CharSequence text, FileType fileType) { IElementType tokenType = iterator.getTokenType(); if (fileType == StdFileTypes.JAVA || fileType == StdFileTypes.ASPECT) { return tokenType == JavaTokenType.RBRACE || tokenType == JavaTokenType.LBRACE; } else if (fileType == StdFileTypes.HTML || fileType == StdFileTypes.XML) { return tokenType == XmlTokenType.XML_START_TAG_START || tokenType == XmlTokenType.XML_TAG_END || tokenType == XmlTokenType.XML_EMPTY_ELEMENT_END || ( tokenType == XmlTokenType.XML_TAG_END && ( fileType == StdFileTypes.HTML || fileType == StdFileTypes.JSP ) && isEndOfSingleHtmlTag(text, iterator) ); } else if (fileType == StdFileTypes.JSP || fileType == StdFileTypes.JSPX) { return isJspJspxStructuralBrace(tokenType); } else{ return false; } } | 17306 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/17306/f85099f52d2dfd21d1505b4db03c208994901fae/BraceMatchingUtil.java/clean/source/com/intellij/codeInsight/highlighting/BraceMatchingUtil.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
1250,
353,
14372,
21965,
12,
8573,
23624,
3198,
2775,
16,
2156,
4021,
977,
16,
29449,
21939,
13,
288,
1377,
467,
17481,
22302,
273,
9162,
12,
9838,
1769,
1377,
309,
261,
768,
559,
4... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
1250,
353,
14372,
21965,
12,
8573,
23624,
3198,
2775,
16,
2156,
4021,
977,
16,
29449,
21939,
13,
288,
1377,
467,
17481,
22302,
273,
9162,
12,
9838,
1769,
1377,
309,
261,
768,
559,
4... |
} | public String getPackageName() throws InvalidPackageException { // throwErrorHuh(); // Where we'll build up the package name we find StringBuffer buf = new StringBuffer(); synchronized (_reduced) { int oldLocation = getCurrentLocation(); try { setCurrentLocation(0); final int docLength = getLength(); final String text = getText(0, docLength); // System.out.println("oldlocation: " + oldLocation + ", doclength: " + docLength + ", text: \"" + text + "\""); // The location of the first non-whitespace character that // is not inside quote or comment. int firstNormalLocation = 0; while ((firstNormalLocation < docLength)) { setCurrentLocation(firstNormalLocation); if (_reduced.currentToken().getHighlightState() == HighlightStatus.NORMAL) { // OK, it's normal -- so if it's not whitespace, we found the spot char curChar = text.charAt(firstNormalLocation); if (!Character.isWhitespace(curChar)) { break; } } firstNormalLocation++; } // Now there are two possibilities: firstNormalLocation is at // the first spot of a non-whitespace character that's NORMAL, // or it's at the end of the document. if (firstNormalLocation == docLength) return ""; final int strlen = "package".length(); final int endLocation = firstNormalLocation + strlen; if ((firstNormalLocation + strlen > docLength) || ! text.substring(firstNormalLocation, endLocation).equals("package")) { // the first normal text is not "package" or there is not enough // text for there to be a package statement. // thus, there is no valid package statement. return ""; } // OK, we must have found a package statement. // Now let's find the semicolon. Again, the semicolon must be free. int afterPackage = firstNormalLocation + strlen; int semicolonLocation = afterPackage; do { semicolonLocation = text.indexOf(";", semicolonLocation + 1); if (semicolonLocation == -1) { throw new InvalidPackageException(firstNormalLocation, "No semicolon found to terminate package statement!"); } setCurrentLocation(semicolonLocation); } while (_reduced.currentToken().getHighlightState() != HighlightStatus.NORMAL); // Now we have semicolon location. We'll gather text in between one // character at a time for simplicity. It's inefficient (I think?) // but it's easy, and there shouldn't be much text between // "package" and ";" anyhow. for (int walk = afterPackage + 1; walk < semicolonLocation; walk++) { setCurrentLocation(walk); if (_reduced.currentToken().getHighlightState() == HighlightStatus.NORMAL) { char curChar = text.charAt(walk); if (! Character.isWhitespace(curChar)) buf.append(curChar); } } String toReturn = buf.toString(); if (toReturn.equals("")) { throw new InvalidPackageException(firstNormalLocation, "Package name was not specified after the package keyword!"); } return toReturn; } catch (BadLocationException ble) { throw new UnexpectedException(ble); } finally { setCurrentLocation(0); setCurrentLocation(oldLocation); } } } | 11192 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/11192/35da9b77b7d75aca3d6277e27e3ba3dc86f3eaa9/DefinitionsDocument.java/buggy/drjava/src/edu/rice/cs/drjava/model/definitions/DefinitionsDocument.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
514,
28951,
1435,
1216,
1962,
2261,
503,
288,
565,
368,
21560,
44,
89,
76,
5621,
565,
368,
12177,
732,
5614,
1361,
731,
326,
2181,
508,
732,
1104,
565,
6674,
1681,
273,
394,
6674,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
514,
28951,
1435,
1216,
1962,
2261,
503,
288,
565,
368,
21560,
44,
89,
76,
5621,
565,
368,
12177,
732,
5614,
1361,
731,
326,
2181,
508,
732,
1104,
565,
6674,
1681,
273,
394,
6674,
... | |
public static ProActiveDescriptor getProactiveDescriptor( String xmlDescriptorUrl, boolean hierarchicalSearch) throws ProActiveException { RuntimeFactory.getDefaultRuntime(); if (!xmlDescriptorUrl.startsWith("file:")) { xmlDescriptorUrl = "file:" + xmlDescriptorUrl; } ProActiveRuntimeImpl part = (ProActiveRuntimeImpl) ProActiveRuntimeImpl.getProActiveRuntime(); ProActiveDescriptor pad; | public static ProActiveDescriptor getProactiveDescriptor() throws ProActiveException, IOException { String padURL = System.getProperty("proactive.pad"); | public static ProActiveDescriptor getProactiveDescriptor( String xmlDescriptorUrl, boolean hierarchicalSearch) throws ProActiveException { RuntimeFactory.getDefaultRuntime(); if (!xmlDescriptorUrl.startsWith("file:")) { xmlDescriptorUrl = "file:" + xmlDescriptorUrl; } ProActiveRuntimeImpl part = (ProActiveRuntimeImpl) ProActiveRuntimeImpl.getProActiveRuntime(); ProActiveDescriptor pad; //System.out.println("padurl with id : " + xmlDescriptorUrl) ; try { pad = part.getDescriptor(xmlDescriptorUrl, hierarchicalSearch); } catch (Exception e) { throw new ProActiveException(e); } // if pad found, returns it if (pad != null) { return pad; } //System.out.println("not found parsing : " + xmlDescriptorUrl) ; // else parses it try { if (logger.isInfoEnabled()) { logger.info("************* Reading deployment descriptor: " + xmlDescriptorUrl + " ********************"); } ProActiveDescriptorHandler proActiveDescriptorHandler = ProActiveDescriptorHandler.createProActiveDescriptor(xmlDescriptorUrl); pad = (ProActiveDescriptor) proActiveDescriptorHandler.getResultObject(); part.registerDescriptor(xmlDescriptorUrl + pad.getJobID(), pad); //System.out.println("pad registered with id : " + xmlDescriptorUrl + pad.getJobID()) ; return pad; } catch (org.xml.sax.SAXException e) { e.printStackTrace(); logger.fatal( "a problem occurs when getting the proActiveDescriptor"); throw new ProActiveException(e); } catch (java.io.IOException e) { e.printStackTrace(); logger.fatal( "a problem occurs during the ProActiveDescriptor object creation"); throw new ProActiveException(e); } } | 23362 /local/tlutelli/issta_data/temp/all_java2context/java/2006_temp/2006/23362/1b46c51dd3af85bafb532dedf35294088600e91d/ProActive.java/buggy/src/org/objectweb/proactive/ProActive.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
1186,
3896,
3187,
3570,
3535,
3187,
12,
3639,
514,
2025,
3187,
1489,
16,
1250,
26633,
2979,
13,
3639,
1216,
1186,
3896,
503,
288,
3639,
2509,
1733,
18,
588,
1868,
5576,
5621,
3... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
1186,
3896,
3187,
3570,
3535,
3187,
12,
3639,
514,
2025,
3187,
1489,
16,
1250,
26633,
2979,
13,
3639,
1216,
1186,
3896,
503,
288,
3639,
2509,
1733,
18,
588,
1868,
5576,
5621,
3... |
FontStyle style = (FontStyle) getFontStyleOwnerView().getStyle( NotationPackage.eINSTANCE.getFontStyle()); | FontStyle style = (FontStyle) getFontStyleOwnerView().getStyle(NotationPackage.eINSTANCE.getFontStyle()); | protected void refreshFont() { FontStyle style = (FontStyle) getFontStyleOwnerView().getStyle( NotationPackage.eINSTANCE.getFontStyle()); if (style != null) { FontData fontData = new FontData(style.getFontName(), style.getFontHeight(), (style.isBold() ? org.eclipse.swt.SWT.BOLD : org.eclipse.swt.SWT.NORMAL) | (style.isItalic() ? org.eclipse.swt.SWT.ITALIC : org.eclipse.swt.SWT.NORMAL)); setFont(fontData); } } | 56962 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56962/816096641504ba96db7bef449fe01a4b67ff0d37/PinNameEditPart.java/buggy/plugins/org.eclipse.uml2.diagram.activity/src/org/eclipse/uml2/diagram/activity/edit/parts/PinNameEditPart.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1117,
918,
4460,
5711,
1435,
288,
202,
202,
5711,
2885,
2154,
273,
261,
5711,
2885,
13,
18776,
2885,
5541,
1767,
7675,
588,
2885,
12,
9506,
202,
14818,
2261,
18,
73,
13341,
18,
588,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1117,
918,
4460,
5711,
1435,
288,
202,
202,
5711,
2885,
2154,
273,
261,
5711,
2885,
13,
18776,
2885,
5541,
1767,
7675,
588,
2885,
12,
9506,
202,
14818,
2261,
18,
73,
13341,
18,
588,
... |
List itemsToExpand = new ArrayList(); IContainer parent = container.getParent(); while (parent != null) { itemsToExpand.add(0, parent); parent = parent.getParent(); } treeViewer.setExpandedElements(itemsToExpand.toArray()); treeViewer.setSelection(new StructuredSelection(container), true); } | List itemsToExpand = new ArrayList( ); IContainer parent = container.getParent( ); while ( parent != null ) { itemsToExpand.add( 0, parent ); parent = parent.getParent( ); } treeViewer.setExpandedElements( itemsToExpand.toArray( ) ); treeViewer.setSelection( new StructuredSelection( container ), true ); } | public void setSelectedContainer(IContainer container) { selectedContainer = container; //expand to and select the specified container List itemsToExpand = new ArrayList(); IContainer parent = container.getParent(); while (parent != null) { itemsToExpand.add(0, parent); parent = parent.getParent(); } treeViewer.setExpandedElements(itemsToExpand.toArray()); treeViewer.setSelection(new StructuredSelection(container), true); } | 5230 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5230/eb9617da439d12c40f3451f4e4438472a44aab3d/WizardSaveAsPage.java/buggy/UI/org.eclipse.birt.report.designer.ui.ide/src/org/eclipse/birt/report/designer/ui/ide/wizards/WizardSaveAsPage.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
23006,
2170,
12,
45,
2170,
1478,
13,
288,
3639,
3170,
2170,
273,
1478,
31,
3639,
368,
12320,
358,
471,
2027,
326,
1269,
1478,
3639,
987,
1516,
774,
12271,
273,
394,
2407,
5621,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
23006,
2170,
12,
45,
2170,
1478,
13,
288,
3639,
3170,
2170,
273,
1478,
31,
3639,
368,
12320,
358,
471,
2027,
326,
1269,
1478,
3639,
987,
1516,
774,
12271,
273,
394,
2407,
5621,... |
File sourceFile = new File(sourceDir, sourceFileData .getName()); | File sourceFile = finder.findFile(sourceFileData.getName()); | private void generateSourceFile(SourceFileData sourceFileData) throws IOException { if (!sourceFileData.containsInstrumentationInfo()) { logger.info("Data file does not contain instrumentation " + "information for the file " + sourceFileData.getName() + ". Ensure this class was instrumented, and this " + "data file contains the instrumentation information."); } String filename = sourceFileData.getNormalizedName() + ".html"; File file = new File(destinationDir, filename); PrintStream out = null; try { out = new PrintStream(new FileOutputStream(file)); out.println("<html>"); out.println("<head>"); out.println("<title>Coverage Report</title>"); out .println("<link title=\"Style\" type=\"text/css\" rel=\"stylesheet\" href=\"css/main.css\" />"); out .println("<script type=\"text/javascript\" src=\"js/popup.js\"></script>"); out.println("</head>"); out.println("<body>"); out.print("<h5>Coverage Report - "); String classPackageName = sourceFileData.getPackageName(); if ((classPackageName != null) && classPackageName.length() > 0) { out.print(sourceFileData.getPackageName() + "."); } out.print(sourceFileData.getBaseName()); out.println("</h5>"); // Output the coverage summary for this class out.println("<p>"); out.println("<table class=\"report\">"); out.println(generateTableHeader("Classes in this File", false)); // TODO: Change this to actually show multiple classes. out.println(generateTableRowForSourceFile(sourceFileData)); out.println("</table>"); out.println("</p>"); // Output this class's source code with syntax and coverage highlighting out.println("<p>"); out .println("<table cellspacing=\"0\" cellpadding=\"0\" class=\"src\">"); BufferedReader br = null; try { File sourceFile = new File(sourceDir, sourceFileData .getName()); br = new BufferedReader(new FileReader(sourceFile)); String lineStr; JavaToHtml javaToHtml = new JavaToHtml(); int lineNumber = 1; while ((lineStr = br.readLine()) != null) { out.println("<tr>"); if (sourceFileData.isValidSourceLineNumber(lineNumber)) { long numberOfHits = sourceFileData .getHitCount(lineNumber); out.println(" <td class=\"numLineCover\"> " + lineNumber + "</td>"); if (numberOfHits > 0) { out .println(" <td class=\"nbHitsCovered\"> " + numberOfHits + "</td>"); out .println(" <td class=\"src\"><pre class=\"src\"> " + javaToHtml.process(lineStr) + "</pre></td>"); } else { out .println(" <td class=\"nbHitsUncovered\"> " + numberOfHits + "</td>"); out .println(" <td class=\"src\"><pre class=\"src\"><span class=\"srcUncovered\"> " + javaToHtml.process(lineStr) + "</span></pre></td>"); } } else { out.println(" <td class=\"numLine\"> " + lineNumber + "</td>"); out.println(" <td class=\"nbHits\"> </td>"); out .println(" <td class=\"src\"><pre class=\"src\"> " + javaToHtml.process(lineStr) + "</pre></td>"); } out.println("</tr>"); lineNumber++; } } finally { if (br != null) { br.close(); } } out.println("</table>"); out.println("</p>"); out.println("<div class=\"footer\">"); out .println("Reports generated by <a href=\"http://cobertura.sourceforge.net/\" target=\"_top\">Cobertura</a>."); out.println("</div>"); out.println("</body>"); out.println("</html>"); } finally { if (out != null) { out.close(); } } } | 50197 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50197/12464e2c222b85c4fe40070c50e015403ce5acfe/HTMLReport.java/clean/cobertura/src/net/sourceforge/cobertura/reporting/html/HTMLReport.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
918,
2103,
31150,
12,
31150,
751,
16338,
751,
13,
1082,
202,
15069,
1860,
202,
95,
202,
202,
430,
16051,
3168,
812,
751,
18,
12298,
19228,
367,
966,
10756,
202,
202,
95,
1082,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
918,
2103,
31150,
12,
31150,
751,
16338,
751,
13,
1082,
202,
15069,
1860,
202,
95,
202,
202,
430,
16051,
3168,
812,
751,
18,
12298,
19228,
367,
966,
10756,
202,
202,
95,
1082,
... |
this.opt = opt; | Options opt = optionProvider.getOptionsFor(c); | public String printClass(Options opt, ClassDoc c) { ClassInfo ci; boolean toPrint; this.opt = opt; if ((ci = classnames.get(c.toString())) != null) toPrint = !ci.nodePrinted; else { toPrint = true; classnames.put(c.toString(), ci = new ClassInfo(true, hidden(c))); } if (toPrint && !hidden(c) && (!c.isEnum() || opt.showEnumerations)) { // Associate classname's alias String r = c.toString(); opt.w.println("\t// " + r); // Create label opt.w.print("\t" + ci.name + " ["); r = stereotype(c, 'n') + escapeLG(qualifiedName(r)); if (c.isInterface()) r = guilWrap("interface") + " \\n" + r; if (c.isEnum()) r = guilWrap("enumeration") + " \\n" + r; boolean showMembers = (opt.showAttributes && c.fields().length > 0) || (c.isEnum() && opt.showEnumConstants && c.enumConstants().length > 0) || (opt.showOperations && c.methods().length > 0) || (opt.showConstructors && c.constructors().length > 0); r += tagvalue(c, "\\n", 'r'); if (showMembers) opt.w.print("label=\"{" + r + "\\n|"); else opt.w.print("label=\"" + r + "\""); if (opt.showAttributes) attributes(c.fields()); if (c.isEnum() && opt.showEnumConstants) { for (FieldDoc fd : c.enumConstants()) { opt.w.print(fd.name()); opt.w.print("\\l"); } } if (showMembers) opt.w.print("|"); if (opt.showConstructors && !c.isEnum()) operations(c.constructors()); if (opt.showOperations && !c.isEnum()) operations(c.methods()); if (showMembers) opt.w.print("}\""); // Use ariali [sic] for gif output of abstract classes opt.w.print(", fontname=\"" + (c.isAbstract() ? opt.nodeFontAbstractName : opt.nodeFontName) + "\""); nodeProperties(c.qualifiedName()); ci.nodePrinted = true; } return ci.name; } | 47201 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47201/405b179f20c0c73d6e8668ae781ecb16eb4758ba/ClassGraph.java/clean/src/gr/spinellis/umlgraph/doclet/ClassGraph.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
514,
1172,
797,
12,
1320,
2153,
16,
27785,
276,
13,
288,
202,
19455,
9039,
31,
202,
6494,
358,
5108,
31,
202,
2211,
18,
3838,
273,
2153,
31,
202,
430,
14015,
8450,
273,
667,
1973,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
514,
1172,
797,
12,
1320,
2153,
16,
27785,
276,
13,
288,
202,
19455,
9039,
31,
202,
6494,
358,
5108,
31,
202,
2211,
18,
3838,
273,
2153,
31,
202,
430,
14015,
8450,
273,
667,
1973,... |
ConnectionConsumer createDurableConnectionConsumer(Topic topic, String subscriptionName, String messageSelector, ServerSessionPool sessionPool, int maxMessages) throws JMSException; | ConnectionConsumer createDurableConnectionConsumer( Topic topic, String subscriptionName, String messageSelector, ServerSessionPool sessionPool, int maxMessages) throws JMSException; | ConnectionConsumer createDurableConnectionConsumer(Topic topic, String subscriptionName, String messageSelector, ServerSessionPool sessionPool, int maxMessages) throws JMSException; | 8608 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8608/7f6299004b6fd07dd9a880e63ccd2378de31ada1/TopicConnection.java/buggy/jms/src/java/javax/jms/TopicConnection.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
4050,
5869,
752,
23073,
1952,
5869,
12,
6657,
3958,
16,
514,
4915,
461,
16,
514,
883,
4320,
16,
3224,
2157,
2864,
1339,
2864,
16,
509,
943,
5058,
13,
1216,
20343,
31,
2,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
4050,
5869,
752,
23073,
1952,
5869,
12,
6657,
3958,
16,
514,
4915,
461,
16,
514,
883,
4320,
16,
3224,
2157,
2864,
1339,
2864,
16,
509,
943,
5058,
13,
1216,
20343,
31,
2,
-100,
-100,
-10... |
throw new IOException("No data set to save."); | throw new IOException("No data set to save."); | public void setOptions(String[] options) throws Exception { String outputString = Utils.getOption('o', options); String inputString = Utils.getOption('i', options); String indexString = Utils.getOption('c', options); ArffLoader loader = new ArffLoader(); resetOptions(); if(inputString.length() != 0){ try{ File input = new File(inputString); loader.setFile(input); setInstances(loader.getDataSet()); } catch(Exception ex){ throw new IOException("No data set loaded. Data set has to be arff format."); } } else throw new IOException("No data set to save."); if (outputString.length() != 0){ //add appropriate file extension if(!outputString.endsWith(getFileExtension())){ if(outputString.lastIndexOf('.') != -1) outputString = (outputString.substring(0,outputString.lastIndexOf('.'))) + getFileExtension(); else outputString = outputString + getFileExtension(); } try{ File output = new File(outputString); setFile(output); } catch(Exception ex){ throw new IOException("Cannot create output file."); } finally{ setDestination(retrieveFile()); } } if(indexString.length() != 0){ if(indexString.equals("first")) getInstances().setClassIndex(0); else{ if(indexString.equals("last")) getInstances().setClassIndex(getInstances().numAttributes()-1); else{ int classIndex = Integer.parseInt(indexString); if(classIndex >=0 && classIndex < getInstances().numAttributes()) getInstances().setClassIndex(classIndex); else throw new IOException("Invalid class index"); } } } else getInstances().setClassIndex(getInstances().numAttributes()-1); } | 4179 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4179/62f71dad5907a491db60420b472c41ca939dd18d/C45Saver.java/clean/trunk/weka/core/converters/C45Saver.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
918,
16526,
12,
780,
8526,
702,
13,
1216,
1185,
288,
3639,
514,
876,
780,
273,
6091,
18,
588,
1895,
2668,
83,
2187,
702,
1769,
565,
514,
810,
780,
273,
6091,
18,
588,
1895,
2668,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
918,
16526,
12,
780,
8526,
702,
13,
1216,
1185,
288,
3639,
514,
876,
780,
273,
6091,
18,
588,
1895,
2668,
83,
2187,
702,
1769,
565,
514,
810,
780,
273,
6091,
18,
588,
1895,
2668,
... |
Session hs = HibernateHelper.getSession(); List l = hs.find( "from Membership as ms where " + "ms.owner_id = ? " + "and ms.field.name = ? " + "and ms.field.type = ? " + "and ms.depth > 0 ", new Object[] { g.getUuid(), f.getName(), f.getType().toString() }, new Type[] { Hibernate.STRING, Hibernate.STRING, Hibernate.STRING | Member m = MemberFinder.findBySubject(s, subj); Set effs = findEffectiveMemberships( g.getUuid(), m.getId(), f, via.getUuid(), depth ); if (effs.size() > 0) { try { PrivilegeResolver.getInstance().canPrivDispatch( s, g, s.getSubject(), f.getReadPriv() ); Iterator effsIter = effs.iterator(); while (effsIter.hasNext()) { Membership eff = (Membership) effsIter.next(); eff.setSession(s); mships.add(eff); } | protected static Set findEffectiveMemberships( GrouperSession s, Group g, Field f ) { /* * @caller public Group.getEffectiveMemberships(f) * @caller protected MembershipFinder.findEffectiveMembers(s, g, field) * @filtered true * @session true */ GrouperSession.validate(s); GrouperLog.debug(LOG, s, MSG_FEMSHIPSG_PRO); Set mships = new LinkedHashSet(); try { Session hs = HibernateHelper.getSession(); List l = hs.find( "from Membership as ms where " + "ms.owner_id = ? " + "and ms.field.name = ? " + "and ms.field.type = ? " + "and ms.depth > 0 ", new Object[] { g.getUuid(), f.getName(), f.getType().toString() }, new Type[] { Hibernate.STRING, Hibernate.STRING, Hibernate.STRING } ); hs.close(); GrouperLog.debug(LOG, s, MSG_FEMSHIPSG_PRO + " unfiltered: " + l.size()); mships.addAll( _filterMemberships(s, f, l) ); } catch (HibernateException eH) { GrouperLog.error(LOG, s, MSG_FEMSHIPSG_PRO + ": " + eH.getMessage()); } GrouperLog.debug(LOG, s, MSG_FEMSHIPSG_PRO + " filtered: " + mships.size()); return mships; } // protected static Set findEffectiveMemberships(s, g, f) | 5235 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5235/c0eaa56df7ae25c0db85519017f250650f770a56/MembershipFinder.java/buggy/grouper/src/grouper/edu/internet2/middleware/grouper/MembershipFinder.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
4750,
760,
1000,
1104,
28531,
13447,
87,
12,
565,
3756,
264,
2157,
272,
16,
3756,
314,
16,
2286,
284,
225,
262,
225,
288,
565,
1748,
377,
380,
632,
16140,
565,
1071,
565,
3756,
18,
588,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
4750,
760,
1000,
1104,
28531,
13447,
87,
12,
565,
3756,
264,
2157,
272,
16,
3756,
314,
16,
2286,
284,
225,
262,
225,
288,
565,
1748,
377,
380,
632,
16140,
565,
1071,
565,
3756,
18,
588,... |
throw new RuntimeException("Null InputSource for file " + filename); | logger.error("Null InputSource for file \""+filename+"\""); | public InputSource resolveEntity (String publicId, String systemId) { URL url = null; try { url = new URL(systemId); } catch(Exception e) {} String filename = url.getFile(); // Convert any '\'s to '/'s. filename = filename.replace('\\', '/'); filename = filename.substring(filename.lastIndexOf("/") + 1, filename.length()); InputSource is = null; try { InputStream istream = open(filename); if (istream == null) { throw new RuntimeException("Got null input stream opening file " + filename); } is = new InputSource(istream); } catch(IOException e) { System.err.println("Error getting input source for file " + filename); e.printStackTrace(); } if(is == null) { throw new RuntimeException("Null InputSource for file " + filename); } return is; } | 7982 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7982/4ec6def51391c1201a92e8decb3ead9c85adb739/ConfigFinder.java/buggy/util/src/org/cougaar/util/ConfigFinder.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
23699,
2245,
1943,
261,
780,
1071,
548,
16,
514,
30083,
13,
288,
5411,
1976,
880,
273,
446,
31,
1377,
775,
288,
202,
718,
273,
394,
1976,
12,
4299,
548,
1769,
1377,
289,
1044,
12,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
23699,
2245,
1943,
261,
780,
1071,
548,
16,
514,
30083,
13,
288,
5411,
1976,
880,
273,
446,
31,
1377,
775,
288,
202,
718,
273,
394,
1976,
12,
4299,
548,
1769,
1377,
289,
1044,
12,... |
logger.debug(""+phytNames.length+" phytochorion names set."); | logger.debug(""+(phytNames == null ? 0 : phytNames.length)+" phytochorion names set."); | public void setPhytNames(Pair<String, Integer>[] phytNames) { logger.debug(""+phytNames.length+" phytochorion names set."); this.phytNames = phytNames; setChanged(); notifyObservers("PHYTNAMES_CHANGED"); } | 57211 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57211/36880eba42a79a92f0bcefa4e6fd4070e4fca20c/AddEdit.java/buggy/trunk/src/net/sf/plantlore/client/overview/AddEdit.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
444,
3731,
93,
88,
1557,
12,
4154,
32,
780,
16,
2144,
34,
8526,
1844,
93,
88,
1557,
13,
288,
3639,
1194,
18,
4148,
2932,
6,
15,
12,
844,
93,
88,
1557,
422,
446,
692,
374,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
444,
3731,
93,
88,
1557,
12,
4154,
32,
780,
16,
2144,
34,
8526,
1844,
93,
88,
1557,
13,
288,
3639,
1194,
18,
4148,
2932,
6,
15,
12,
844,
93,
88,
1557,
422,
446,
692,
374,... |
ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, AttributePackage.TEXT__COLOR, oldColor, newColor); if (msgs == null) msgs = notification; else msgs.add(notification); | ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, AttributePackage.TEXT__COLOR, oldColor, newColor); if (msgs == null) msgs = notification; else msgs.add(notification); | public NotificationChain basicSetColor(ColorDefinition newColor, NotificationChain msgs) { ColorDefinition oldColor = color; color = newColor; if (eNotificationRequired()) { ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, AttributePackage.TEXT__COLOR, oldColor, newColor); if (msgs == null) msgs = notification; else msgs.add(notification); } return msgs; } | 15160 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/15160/e5c78f0e8317166d02fa384e14c3dd7aa1796f2c/TextImpl.java/buggy/chart/org.eclipse.birt.chart.engine/src/org/eclipse/birt/chart/model/attribute/impl/TextImpl.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
27050,
5337,
694,
2957,
12,
2957,
1852,
394,
2957,
16,
27050,
8733,
13,
565,
288,
3639,
5563,
1852,
1592,
2957,
273,
2036,
31,
3639,
2036,
273,
394,
2957,
31,
3639,
309,
261,
73,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
27050,
5337,
694,
2957,
12,
2957,
1852,
394,
2957,
16,
27050,
8733,
13,
565,
288,
3639,
5563,
1852,
1592,
2957,
273,
2036,
31,
3639,
2036,
273,
394,
2957,
31,
3639,
309,
261,
73,
... |
public void dispose() { deActivateView(); if (editorListener != null) { getSite().getWorkbenchWindow().getPartService().removePartListener( editorListener); editorListener.dispose(); editorListener = null; }// JFaceResources.getFontRegistry().removeListener(this); if (contextMenuManager != null) { contextMenuManager.dispose(); } selectionActions.clear(); globalActions.clear(); textViewer.getSelectionProvider().removeSelectionChangedListener( selectionChangedListener); textViewer.removeTextListener(textListener); textViewer = null; if (textControl != null) { textControl.dispose(); textControl = null; } if (verifyControl != null) { verifyControl.dispose(); verifyControl = null; tableControl = null; // stackControl = null; // lvtControl = null; stackTable = null; lvtTable = null; } if (errorColor != null) { errorColor.dispose(); errorColor = null; } currentSelection = null; javaEditor = null; javaInput = null; lastChildElement = null; linkWithEditorAction = null; selectionChangedAction = null; showSelectedOnlyAction = null; setRawModeAction = null; toggleASMifierModeAction = null; toggleVerifierAction = null; lastDecompiledResult = null; super.dispose(); } | 8320 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8320/8a0b83d539effa32bafd41a77062d05aff7fce56/BytecodeOutlineView.java/clean/eclipse/plugin/src/de/loskutov/bco/views/BytecodeOutlineView.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1071,
918,
15825,
1435,
288,
323,
21370,
1767,
5621,
430,
261,
9177,
2223,
480,
446,
13,
288,
588,
4956,
7675,
588,
2421,
22144,
3829,
7675,
588,
1988,
1179,
7675,
4479,
1988,
2223,
12,
9177,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1071,
918,
15825,
1435,
288,
323,
21370,
1767,
5621,
430,
261,
9177,
2223,
480,
446,
13,
288,
588,
4956,
7675,
588,
2421,
22144,
3829,
7675,
588,
1988,
1179,
7675,
4479,
1988,
2223,
12,
9177,
... | ||
assertNull( ( (NameManager) design.getNameManager( ) ).getNameSpace( | assertNull( CoreTestUtil.getNameSpace( ( (NameManager) design.getNameManager( ) ), | public void testNameManager( ) throws Exception { openDesign( "DesignElementTest_1.xml" ); //$NON-NLS-1$ assertNotNull( designHandle ); ScalarParameterHandle param = designHandle.getElementFactory( ) .newScalarParameter( null ); assertNotNull( param.getName( ) ); assertEquals( param.getElement( ), ( (NameManager) design .getNameManager( ) ).getNameSpace( Module.PARAMETER_NAME_SPACE ) .getElement( param.getName( ) ) ); // add the parameter into the design and find that // the cached name in the name manger is cleared. designHandle.getParameters( ).add( param ); assertNull( ( (NameManager) design.getNameManager( ) ).getNameSpace( Module.PARAMETER_NAME_SPACE ).getElement( param.getName( ) ) ); } | 5230 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5230/d3d717b342078d1f9dfce85bfecc1cb5d3ec367c/DesignElementTest.java/clean/model/org.eclipse.birt.report.model.tests/test/org/eclipse/birt/report/model/core/DesignElementTest.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
1842,
461,
1318,
12,
262,
1216,
1185,
202,
95,
202,
202,
3190,
15478,
12,
315,
15478,
1046,
4709,
67,
21,
18,
2902,
6,
11272,
4329,
3993,
17,
5106,
17,
21,
8,
202,
202,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
1842,
461,
1318,
12,
262,
1216,
1185,
202,
95,
202,
202,
3190,
15478,
12,
315,
15478,
1046,
4709,
67,
21,
18,
2902,
6,
11272,
4329,
3993,
17,
5106,
17,
21,
8,
202,
202,... |
public void newFolder() { String message = Pooka.getProperty("Folder.newFolder", "Subscribe/create new subfolder of") + " " + getStoreInfo().getStoreID(); JLabel messageLabel = new JLabel(message); JPanel typePanel = new JPanel(); typePanel.setBorder(BorderFactory.createEtchedBorder()); JRadioButton messagesButton = new JRadioButton(Pooka.getProperty("Folder.new.messages.label", "Contains Messages"), true); JRadioButton foldersButton = new JRadioButton(Pooka.getProperty("Folder.new.folders.label", "Contains Folders")); ButtonGroup bg = new ButtonGroup(); bg.add(messagesButton); bg.add(foldersButton); typePanel.add(messagesButton); typePanel.add(foldersButton); Object[] inputPanels = new Object[] { messageLabel, typePanel }; final String response = Pooka.getUIFactory().showInputDialog(inputPanels, Pooka.getProperty("Folder.new.title", "Create new Folder")); int type = javax.mail.Folder.HOLDS_MESSAGES; if (foldersButton.isSelected()) { type = javax.mail.Folder.HOLDS_FOLDERS; } final int finalType = type; if (response != null && response.length() > 0) { getStoreInfo().getStoreThread().addToQueue(new javax.swing.AbstractAction() { public void actionPerformed(java.awt.event.ActionEvent e) { try { getStoreInfo().createSubFolder(response, finalType); } catch (MessagingException me) { final Exception fme = me; SwingUtilities.invokeLater(new Runnable() { public void run() { Pooka.getUIFactory().showError(fme.getMessage()); } }); me.printStackTrace(); } } } , new java.awt.event.ActionEvent(this, 0, "folder-new")); } } | 967 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/967/6d6ba90375f9de34e58b248daf5e8c0025c1433b/StoreNode.java/clean/src/net/suberic/pooka/gui/StoreNode.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
918,
394,
3899,
1435,
288,
565,
514,
883,
273,
453,
1184,
69,
18,
588,
1396,
2932,
3899,
18,
2704,
3899,
3113,
315,
16352,
19,
2640,
394,
31001,
434,
7923,
397,
315,
315,
397,
158... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
918,
394,
3899,
1435,
288,
565,
514,
883,
273,
453,
1184,
69,
18,
588,
1396,
2932,
3899,
18,
2704,
3899,
3113,
315,
16352,
19,
2640,
394,
31001,
434,
7923,
397,
315,
315,
397,
158... | ||
_tsB = _context.clock().now()/1000l; | _tsB = _context.clock().now()/1000l; | private void receiveInbound(ByteBuffer src) { if (_log.shouldLog(Log.DEBUG)) _log.debug(prefix()+"Receiving inbound: prev received=" + _received + " src.remaining=" + src.remaining()); while (_received < _X.length && src.hasRemaining()) { byte c = src.get(); _X[_received++] = c; //if (_log.shouldLog(Log.DEBUG)) _log.debug("recv x" + (int)c + " received=" + _received); if (_received >= _X.length) { if (isCheckInfo(_context, _context.routerHash(), _X)) { _context.statManager().addRateData("ntcp.inboundCheckConnection", 1, 0); fail("Incoming connection was a check connection"); return; } } } while (_received < _X.length + _hX_xor_bobIdentHash.length && src.hasRemaining()) { int i = _received-_X.length; _received++; byte c = src.get(); _hX_xor_bobIdentHash[i] = c; //if (_log.shouldLog(Log.DEBUG)) _log.debug("recv bih" + (int)c + " received=" + _received); } if (_received >= _X.length + _hX_xor_bobIdentHash.length) { if (_dh.getSessionKey() == null) { if (_log.shouldLog(Log.DEBUG)) _log.debug(prefix()+"Enough data for a DH received"); // first verify that Alice knows who she is trying to talk with and that the X // isn't corrupt Hash hX = _context.sha().calculateHash(_X); byte realXor[] = DataHelper.xor(hX.getData(), _context.routerHash().getData()); if (_log.shouldLog(Log.DEBUG)) { //_log.debug(prefix()+"_X = " + Base64.encode(_X)); _log.debug(prefix()+"hx = " + Base64.encode(hX.getData())); _log.debug(prefix()+"bih=" + Base64.encode(_context.routerHash().getData())); _log.debug(prefix()+"xor=" + Base64.encode(realXor)); } if (!DataHelper.eq(realXor, _hX_xor_bobIdentHash)) { _context.statManager().addRateData("ntcp.invalidHXxorBIH", 1, 0); fail("Invalid hX_xor"); return; } try { // ok, they're actually trying to talk to us, and we got their (unauthenticated) X _dh.setPeerPublicValue(_X); _dh.getSessionKey(); // force the calc System.arraycopy(realXor, 16, _prevEncrypted, 0, _prevEncrypted.length); if (_log.shouldLog(Log.DEBUG)) _log.debug(prefix()+"DH session key calculated (" + _dh.getSessionKey().toBase64() + ")"); // now prepare our response: Y+E(H(X+Y)+tsB+padding, sk, Y[239:255]) _Y = _dh.getMyPublicValueBytes(); byte xy[] = new byte[_X.length+_Y.length]; System.arraycopy(_X, 0, xy, 0, _X.length); System.arraycopy(_Y, 0, xy, _X.length, _Y.length); Hash hxy = _context.sha().calculateHash(xy); _tsB = _context.clock().now()/1000l; byte padding[] = new byte[12]; // the encrypted data needs an extra 12 bytes _context.random().nextBytes(padding); byte toEncrypt[] = new byte[hxy.getData().length+4+padding.length]; System.arraycopy(hxy.getData(), 0, toEncrypt, 0, hxy.getData().length); byte tsB[] = DataHelper.toLong(4, _tsB); System.arraycopy(tsB, 0, toEncrypt, hxy.getData().length, tsB.length); //DataHelper.toLong(toEncrypt, hxy.getData().length, 4, _tsB); System.arraycopy(padding, 0,toEncrypt, hxy.getData().length+4, padding.length); if (_log.shouldLog(Log.DEBUG)) { //_log.debug(prefix()+"Y="+Base64.encode(_Y)); //_log.debug(prefix()+"x+y="+Base64.encode(xy)); _log.debug(prefix()+"h(x+y)="+Base64.encode(hxy.getData())); _log.debug(prefix()+"tsb="+Base64.encode(tsB)); _log.debug(prefix()+"unencrypted H(X+Y)+tsB+padding: " + Base64.encode(toEncrypt)); _log.debug(prefix()+"encryption iv= " + Base64.encode(_Y, _Y.length-16, 16)); _log.debug(prefix()+"encryption key= " + _dh.getSessionKey().toBase64()); } _e_hXY_tsB = new byte[toEncrypt.length]; _context.aes().encrypt(toEncrypt, 0, _e_hXY_tsB, 0, _dh.getSessionKey(), _Y, _Y.length-16, toEncrypt.length); if (_log.shouldLog(Log.DEBUG)) _log.debug(prefix()+"encrypted H(X+Y)+tsB+padding: " + Base64.encode(_e_hXY_tsB)); byte write[] = new byte[_Y.length + _e_hXY_tsB.length]; System.arraycopy(_Y, 0, write, 0, _Y.length); System.arraycopy(_e_hXY_tsB, 0, write, _Y.length, _e_hXY_tsB.length); // ok, now that is prepared, we want to actually send it, so make sure we are up for writing _transport.getPumper().wantsWrite(_con, write); if (!src.hasRemaining()) return; } catch (DHSessionKeyBuilder.InvalidPublicParameterException e) { _context.statManager().addRateData("ntcp.invalidDH", 1, 0); fail("Invalid X", e); return; } } // ok, we are onto the encrypted area while (src.hasRemaining() && !_corrupt) { if (_log.shouldLog(Log.DEBUG)) _log.debug(prefix()+"Encrypted bytes available (" + src.hasRemaining() + ")"); while (_curEncryptedOffset < _curEncrypted.length && src.hasRemaining()) { _curEncrypted[_curEncryptedOffset++] = src.get(); _received++; } if (_curEncryptedOffset >= _curEncrypted.length) { _context.aes().decrypt(_curEncrypted, 0, _curDecrypted, 0, _dh.getSessionKey(), _prevEncrypted, 0, _curEncrypted.length); //if (_log.shouldLog(Log.DEBUG)) // _log.debug(prefix()+"full block read and decrypted: " + Base64.encode(_curDecrypted)); byte swap[] = new byte[16]; _prevEncrypted = _curEncrypted; _curEncrypted = swap; _curEncryptedOffset = 0; if (_aliceIdentSize <= 0) { // we are on the first decrypted block _aliceIdentSize = (int)DataHelper.fromLong(_curDecrypted, 0, 2); _sz_aliceIdent_tsA_padding_aliceSigSize = 2 + _aliceIdentSize + 4 + Signature.SIGNATURE_BYTES; int rem = (_sz_aliceIdent_tsA_padding_aliceSigSize % 16); int padding = 0; if (rem > 0) padding = 16-rem; _sz_aliceIdent_tsA_padding_aliceSigSize += padding; try { _sz_aliceIdent_tsA_padding_aliceSig.write(_curDecrypted); } catch (IOException ioe) { if (_log.shouldLog(Log.ERROR)) _log.error(prefix()+"Error writing to the baos?", ioe); } if (_log.shouldLog(Log.DEBUG)) _log.debug(prefix()+"alice ident size decrypted as " + _aliceIdentSize + ", making the padding at " + padding + " and total size at " + _sz_aliceIdent_tsA_padding_aliceSigSize); } else { // subsequent block... try { _sz_aliceIdent_tsA_padding_aliceSig.write(_curDecrypted); } catch (IOException ioe) { if (_log.shouldLog(Log.ERROR)) _log.error(prefix()+"Error writing to the baos?", ioe); } if (_log.shouldLog(Log.DEBUG)) _log.debug(prefix()+"subsequent block decrypted (" + _sz_aliceIdent_tsA_padding_aliceSig.size() + ")"); if (_sz_aliceIdent_tsA_padding_aliceSig.size() >= _sz_aliceIdent_tsA_padding_aliceSigSize) { verifyInbound(); if (!_corrupt && _verified && src.hasRemaining()) prepareExtra(src); if (_log.shouldLog(Log.DEBUG)) _log.debug(prefix()+"verifying size (sz=" + _sz_aliceIdent_tsA_padding_aliceSig.size() + " expected=" + _sz_aliceIdent_tsA_padding_aliceSigSize + " corrupt=" + _corrupt + " verified=" + _verified + " extra=" + (_extra != null ? _extra.length : 0) + ")"); return; } } } else { // no more bytes available in the buffer, and only a partial // block was read, so we can't decrypt it. if (_log.shouldLog(Log.DEBUG)) _log.debug(prefix()+"end of available data with only a partial block read (" + _curEncryptedOffset + ", " + _received + ")"); } } if (_log.shouldLog(Log.DEBUG)) _log.debug(prefix()+"done with the data, not yet complete or corrupt"); } } | 27493 /local/tlutelli/issta_data/temp/all_java2context/java/2006_temp/2006/27493/9325b806e4671b4df3fae20f8918aa1b707cf70c/EstablishState.java/clean/router/java/src/net/i2p/router/transport/ntcp/EstablishState.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
6798,
20571,
12,
12242,
1705,
13,
288,
3639,
309,
261,
67,
1330,
18,
13139,
1343,
12,
1343,
18,
9394,
3719,
5411,
389,
1330,
18,
4148,
12,
3239,
1435,
9078,
4779,
9288,
13357,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
6798,
20571,
12,
12242,
1705,
13,
288,
3639,
309,
261,
67,
1330,
18,
13139,
1343,
12,
1343,
18,
9394,
3719,
5411,
389,
1330,
18,
4148,
12,
3239,
1435,
9078,
4779,
9288,
13357,
... |
public org.quickfix.field.UnderlyingFactor getUnderlyingFactor() throws FieldNotFound { org.quickfix.field.UnderlyingFactor value = new org.quickfix.field.UnderlyingFactor(); | public quickfix.field.UnderlyingFactor getUnderlyingFactor() throws FieldNotFound { quickfix.field.UnderlyingFactor value = new quickfix.field.UnderlyingFactor(); | public org.quickfix.field.UnderlyingFactor getUnderlyingFactor() throws FieldNotFound { org.quickfix.field.UnderlyingFactor value = new org.quickfix.field.UnderlyingFactor(); getField(value); return value; } | 8803 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8803/fecc27f98261270772ff182a1d4dfd94b5daa73d/SecurityStatus.java/clean/src/java/src/quickfix/fix44/SecurityStatus.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
2358,
18,
19525,
904,
18,
1518,
18,
14655,
6291,
6837,
10833,
765,
6291,
6837,
1435,
1216,
2286,
2768,
225,
288,
2358,
18,
19525,
904,
18,
1518,
18,
14655,
6291,
6837,
460,
273,
394... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
2358,
18,
19525,
904,
18,
1518,
18,
14655,
6291,
6837,
10833,
765,
6291,
6837,
1435,
1216,
2286,
2768,
225,
288,
2358,
18,
19525,
904,
18,
1518,
18,
14655,
6291,
6837,
460,
273,
394... |
return !TypeConversionUtil.isPrimitiveAndNotNull(lhsType) && !TypeConversionUtil.isPrimitiveAndNotNull(rhsType); | if (TypeConversionUtil.isPrimitiveAndNotNull(lhsType) || TypeConversionUtil.isPrimitiveAndNotNull(rhsType)) { return false; } return !ErrorUtil.containsError(element); | public boolean satisfiedBy(PsiElement element){ if(!(element instanceof PsiBinaryExpression)){ return false; } if(ErrorUtil.containsError(element)){ return false; } final PsiBinaryExpression expression = (PsiBinaryExpression) element; final PsiJavaToken sign = expression.getOperationSign(); final IElementType tokenType = sign.getTokenType(); if(!tokenType.equals(JavaTokenType.NE) && !tokenType.equals(JavaTokenType.EQEQ)){ return false; } final PsiExpression lhs = expression.getLOperand(); final String lhsText = lhs.getText(); if (PsiKeyword.NULL.equals(lhsText)) { return false; } final PsiType lhsType = lhs.getType(); if(lhsType == null){ return false; } final PsiExpression rhs = expression.getROperand(); if(rhs == null){ return false; } final String rhsText = rhs.getText(); if (PsiKeyword.NULL.equals(rhsText)) { return false; } final PsiType rhsType = rhs.getType(); if(rhsType == null){ return false; } return !TypeConversionUtil.isPrimitiveAndNotNull(lhsType) && !TypeConversionUtil.isPrimitiveAndNotNull(rhsType); } | 17306 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/17306/98ab5a6985e6da9d25cae3a37d988edab0f3fd62/ObjectEqualityPredicate.java/clean/plugins/IntentionPowerPak/src/com/siyeh/ipp/equality/ObjectEqualityPredicate.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
1250,
18958,
858,
12,
52,
7722,
1046,
930,
15329,
3639,
309,
12,
5,
12,
2956,
1276,
453,
7722,
5905,
2300,
3719,
95,
5411,
327,
629,
31,
3639,
289,
3639,
309,
12,
668,
1304,
18,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
1250,
18958,
858,
12,
52,
7722,
1046,
930,
15329,
3639,
309,
12,
5,
12,
2956,
1276,
453,
7722,
5905,
2300,
3719,
95,
5411,
327,
629,
31,
3639,
289,
3639,
309,
12,
668,
1304,
18,
... |
IPersistentStudentCurricularPlan studentCurricularPlanDAO = sp .getIStudentCurricularPlanPersistente(); | List studentCurricularPlanList = studentCurricularPlanDAO .readByDegreeCurricularPlan(executionDegree.getDegreeCurricularPlan()); | public void run(String year) throws FenixServiceException { try { ISuportePersistente sp = PersistenceSupportFactory.getDefaultPersistenceSupport(); IExecutionYear executionYear = null; if (year == null || year.equals("")) { executionYear = sp.getIPersistentExecutionYear().readCurrentExecutionYear(); } else { executionYear = sp.getIPersistentExecutionYear().readExecutionYearByName(year); } IPersistentGratuityValues gratuityValuesDAO = sp.getIPersistentGratuityValues(); IPersistentStudentCurricularPlan studentCurricularPlanDAO = sp .getIStudentCurricularPlanPersistente(); IPersistentGratuitySituation gratuitySituationDAO = sp.getIPersistentGratuitySituation(); // read master degree and specialization execution degrees List executionDegreeList = sp.getIPersistentExecutionDegree() .readByExecutionYearAndDegreeType(executionYear.getYear(), DegreeType.MASTER_DEGREE); for (Iterator iter = executionDegreeList.iterator(); iter.hasNext();) { IExecutionDegree executionDegree = (IExecutionDegree) iter.next(); IGratuityValues gratuityValues = gratuityValuesDAO .readGratuityValuesByExecutionDegree(executionDegree.getIdInternal()); if (gratuityValues == null) { continue; } List studentCurricularPlanList = studentCurricularPlanDAO .readByDegreeCurricularPlan(executionDegree.getDegreeCurricularPlan()); for (Iterator iterator = studentCurricularPlanList.iterator(); iterator.hasNext();) { IStudentCurricularPlan studentCurricularPlan = (IStudentCurricularPlan) iterator .next(); IGratuitySituation gratuitySituation = gratuitySituationDAO .readGratuitySituatuionByStudentCurricularPlanAndGratuityValues( studentCurricularPlan.getIdInternal(), gratuityValues.getIdInternal()); if (gratuitySituation == null) { createGratuitySituation(executionYear, gratuityValues, studentCurricularPlan, gratuitySituationDAO); } else { updateGratuitySituation(executionYear, gratuityValues, gratuitySituation, studentCurricularPlan, gratuitySituationDAO); } } } } catch (ExcepcaoPersistencia ex) { FenixServiceException newEx = new FenixServiceException("Persistence layer error"); newEx.fillInStackTrace(); throw newEx; } } | 2645 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2645/231314cd2dd7afdf9ab64f3ccdbe1775a77d7d43/CreateGratuitySituationsForCurrentExecutionYear.java/buggy/src/net/sourceforge/fenixedu/applicationTier/Servico/masterDegree/administrativeOffice/gratuity/CreateGratuitySituationsForCurrentExecutionYear.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1086,
12,
780,
3286,
13,
1216,
478,
275,
697,
15133,
288,
3639,
775,
288,
5411,
467,
3088,
499,
73,
11906,
73,
1694,
273,
13381,
6289,
1733,
18,
588,
1868,
13182,
6289,
5621,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1086,
12,
780,
3286,
13,
1216,
478,
275,
697,
15133,
288,
3639,
775,
288,
5411,
467,
3088,
499,
73,
11906,
73,
1694,
273,
13381,
6289,
1733,
18,
588,
1868,
13182,
6289,
5621,
... |
super(WorkbenchPlugin.PREFERENCE_PAGE_CATEGORY_SEPARATOR); } | super(WorkbenchPlugin.PREFERENCE_PAGE_CATEGORY_SEPARATOR); } | public PropertyPageManager() { super(WorkbenchPlugin.PREFERENCE_PAGE_CATEGORY_SEPARATOR); } | 56152 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56152/ddc8d69f5f04966c57092aae8ca7979809b9f845/PropertyPageManager.java/clean/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/dialogs/PropertyPageManager.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
4276,
1964,
1318,
1435,
288,
3639,
2240,
12,
2421,
22144,
3773,
18,
3670,
10830,
67,
11219,
67,
24847,
67,
4550,
1769,
565,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
4276,
1964,
1318,
1435,
288,
3639,
2240,
12,
2421,
22144,
3773,
18,
3670,
10830,
67,
11219,
67,
24847,
67,
4550,
1769,
565,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
MetaMessage1 meta2 = new MetaMessage1(new byte[] { 9, -4, 34, 18 }); | byte[] bt = new byte[] { 9, -4, 34, 18 }; MetaMessage1 meta2 = new MetaMessage1(bt); | public void test_getType() throws Exception { MetaMessage meta = new MetaMessage(); assertEquals(meta.getType(), 0); MetaMessage1 meta2 = new MetaMessage1(new byte[] { 9, -4, 34, 18 }); assertEquals(meta2.getType(), 252); meta.setMessage(10, new byte[] { 1, 2, 3, 4 }, 4); assertEquals(meta.getType(), 10); meta.setMessage(27, null, 0); assertEquals(meta.getType(), 27); } | 54769 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54769/91664df1a9210d26d8f4b458f28363e644f9fadb/MetaMessageTest.java/clean/modules/sound/src/test/java/org/apache/harmony/sound/tests/javax/sound/midi/MetaMessageTest.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1842,
67,
588,
559,
1435,
1216,
1185,
288,
3639,
6565,
1079,
2191,
273,
394,
6565,
1079,
5621,
3639,
1815,
8867,
12,
3901,
18,
588,
559,
9334,
374,
1769,
3639,
1160,
8526,
1092... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1842,
67,
588,
559,
1435,
1216,
1185,
288,
3639,
6565,
1079,
2191,
273,
394,
6565,
1079,
5621,
3639,
1815,
8867,
12,
3901,
18,
588,
559,
9334,
374,
1769,
3639,
1160,
8526,
1092... |
if ((flags & 0x20) != 0) { final int nameLen = in.read(); bytesRead += 1; final String colName = in.readString(nameLen); bytesRead += (tdsVersion >= Driver.TDS70) ? nameLen * 2 : nameLen; col.realName = colName; } | if ((flags & 0x20) != 0) { final int nameLen = in.read(); bytesRead += 1; final String colName = in.readString(nameLen); bytesRead += (tdsVersion >= Driver.TDS70) ? nameLen * 2 : nameLen; col.realName = colName; | private void tdsColumnInfoToken() throws IOException, ProtocolException { final int pktLen = in.readShort(); int bytesRead = 0; int columnIndex = 0; // In some cases (e.g. if the user calls 'CREATE CURSOR', the // TDS_TABNAME packet seems to be missing. Weird. if (tables == null) { in.skip(pktLen); } else { while (bytesRead < pktLen) { // Seems like all columns are always returned in the COL_INFO // packet and there might be more than 255 columns, so we'll // just increment a counter instead. // Ignore the column index. in.read(); if (columnIndex >= columns.length) { throw new ProtocolException("Column index " + (columnIndex + 1) + " invalid in TDS_COLINFO packet"); } ColInfo col = columns[columnIndex++]; int tableIndex = in.read(); if (tableIndex > tables.length) { throw new ProtocolException("Table index " + tableIndex + " invalid in TDS_COLINFO packet"); } byte flags = (byte)in.read(); // flags bytesRead += 3; if (tableIndex != 0) { TableMetaData table = tables[tableIndex-1]; col.catalog = table.catalog; col.schema = table.schema; col.tableName = table.name; } col.isKey = (flags & 0x08) != 0; col.isHidden = (flags & 0x10) != 0; // If bit 5 is set, we have a column name if ((flags & 0x20) != 0) { final int nameLen = in.read(); bytesRead += 1; final String colName = in.readString(nameLen); bytesRead += (tdsVersion >= Driver.TDS70) ? nameLen * 2 : nameLen; col.realName = colName; } } } } | 5753 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5753/7893e29b1dfbaa54c3aca50eb3ef78a727cc6427/TdsCore.java/clean/src/main/net/sourceforge/jtds/jdbc/TdsCore.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
268,
2377,
1494,
966,
1345,
1435,
3639,
1216,
1860,
16,
4547,
503,
565,
288,
3639,
727,
509,
11536,
2891,
273,
316,
18,
896,
4897,
5621,
3639,
509,
17244,
273,
374,
31,
3639,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
268,
2377,
1494,
966,
1345,
1435,
3639,
1216,
1860,
16,
4547,
503,
565,
288,
3639,
727,
509,
11536,
2891,
273,
316,
18,
896,
4897,
5621,
3639,
509,
17244,
273,
374,
31,
3639,
... |
return Integer.valueOf(id); } | return Integer.valueOf(id); } | public Integer getId() { return Integer.valueOf(id); } | 45373 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45373/9be6cc5ab22ce8d4b2a130072325019353adb38c/ExecutionQueueImpl.java/buggy/jacob/src/main/java/org/apache/ode/jacob/vpu/ExecutionQueueImpl.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
2144,
2634,
1435,
288,
1377,
327,
2144,
18,
1132,
951,
12,
350,
1769,
565,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
2144,
2634,
1435,
288,
1377,
327,
2144,
18,
1132,
951,
12,
350,
1769,
565,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
if ( callback.getNumUploads() >= | if ( HTTPUploader.getUploadCount() >= | public HTTPManager(Socket s, MessageRouter router, Acceptor acceptor, ActivityCallback callback, boolean isPush) throws IOException { _socket = s; String command=null; FileManager fm = FileManager.getFileManager(); try { //We set the timeout now so we don't block reading //connection strings. If this is a GIV connection, we //reset the timeout immediately before downloading; //otherwise, it isn't touched again. _socket.setSoTimeout(SettingsManager.instance().getTimeout()); _istream = _socket.getInputStream(); _br = new ByteReader(_istream); command = _br.readLine(); /* read in the first line */ if (command==null) throw new IOException(); } catch (IOException e) { /* if there is a problem reading */ throw e; /* must alert the appropriate */ } /* person */ //All IndexOutOfBoundsException and NumberFormatExceptions //are handled below. (They are converted to IOException.) try { if (!isPush) { //Expect "GET /get/0/sample.txt HTTP/1.0" /* I need to get the filename */ String parse[] = HTTPUtil.stringSplit(command, '/'); /* and the index, but i'm */ /* upset this is way hackey */ if (parse.length!=4) throw new IOException(); if (!parse[0].equals("get")) throw new IOException(); _filename = parse[2].substring(0, parse[2].lastIndexOf("HTTP")-1); _index = java.lang.Integer.parseInt(parse[1]); /* is there a better way? */ readRange(); // Prevent excess uploads from starting if ( callback.getNumUploads() >= SettingsManager.instance().getMaxUploads() ) { HTTPUploader.doLimitReached(s); return; } HTTPUploader uploader; uploader = new HTTPUploader(s, _filename, _index, callback, _uploadBegin, _uploadEnd); Thread.currentThread().setName("HTTPUploader (normal)"); uploader.run(); //Ok, since we've already spawned a thread. } else /* isPush */ { //Expect "GIV 0:BC1F6870696111D4A74D0001031AE043/sample.txt\n\n" String next=_br.readLine(); if (next==null || (! next.equals(""))) { throw new IOException(); } //1. Extract file index. IndexOutOfBoundsException // or NumberFormatExceptions will be thrown here if there's // a problem. They're caught below. int i=command.indexOf(":"); _index=Integer.parseInt(command.substring(0,i)); //2. Extract clientID. This can throw // IndexOutOfBoundsException or // IllegalArgumentException, which is caught below. int j=command.indexOf("/", i); byte[] guid=GUID.fromHexString(command.substring(i+1,j)); //3. Extract file name. This can throw // IndexOutOfBoundsException. _filename=command.substring(j+1); //Constructor to HTTPUploader checks that we can accept the //file. HTTPDownloader downloader; downloader = new HTTPDownloader(s, _filename, _index, guid, router, acceptor, callback); Thread.currentThread().setName("HTTPDownload (push)"); downloader.run(); //Ok, since we've already spawned a thread. } } catch (IndexOutOfBoundsException e) { throw new IOException(); } catch (NumberFormatException e) { throw new IOException(); } catch (IllegalArgumentException e) { throw new IOException(); } catch (IllegalAccessException e) { //We never requested the specified file! throw new IOException(); } } | 5134 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5134/52bc2591850f9354aae3ea295a1a73ba066eeda2/HTTPManager.java/clean/components/gnutella-core/src/main/java/com/limegroup/gnutella/HTTPManager.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
2239,
1318,
12,
4534,
272,
16,
2350,
8259,
4633,
16,
8662,
280,
2791,
280,
16,
15604,
9621,
2428,
1348,
16,
1250,
353,
7621,
13,
5411,
1216,
1860,
288,
3639,
389,
7814,
273,
272,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
2239,
1318,
12,
4534,
272,
16,
2350,
8259,
4633,
16,
8662,
280,
2791,
280,
16,
15604,
9621,
2428,
1348,
16,
1250,
353,
7621,
13,
5411,
1216,
1860,
288,
3639,
389,
7814,
273,
272,
... |
LoadXMLAction(JFrame aParent, EventDetailSink eventSink) { mParent = aParent; mHandler = new XMLFileHandler(eventSink); } | LoadXMLAction(JFrame aParent, EventDetailSink eventSink) { mParent = aParent; mHandler = new XMLFileHandler(eventSink); } | LoadXMLAction(JFrame aParent, EventDetailSink eventSink) { mParent = aParent; mHandler = new XMLFileHandler(eventSink); } | 47730 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47730/f78df64197845d2c3a2cb3fecb98416d2dbf5da2/LoadXMLAction.java/clean/src/java/org/apache/log4j/chainsaw/LoadXMLAction.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
4444,
4201,
1803,
12,
46,
3219,
279,
3054,
16,
2587,
6109,
11326,
871,
11326,
13,
565,
288,
3639,
312,
3054,
273,
279,
3054,
31,
3639,
312,
1503,
273,
394,
3167,
28942,
12,
2575,
11326,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
4444,
4201,
1803,
12,
46,
3219,
279,
3054,
16,
2587,
6109,
11326,
871,
11326,
13,
565,
288,
3639,
312,
3054,
273,
279,
3054,
31,
3639,
312,
1503,
273,
394,
3167,
28942,
12,
2575,
11326,
... |
lre.setStart( (Location) EcoreUtil.copy( loStart ) ); | lre.setStart( LocationImpl.copyInstance( loStart ) ); | public PrimitiveRenderEvent copy( ) { LineRenderEvent lre = new LineRenderEvent( source ); if ( lia != null ) { lre.setLineAttributes( (LineAttributes) EcoreUtil.copy( lia ) ); } if ( loStart != null ) { lre.setStart( (Location) EcoreUtil.copy( loStart ) ); } if ( loEnd != null ) { lre.setEnd( (Location) EcoreUtil.copy( loEnd ) ); } return lre; } | 15160 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/15160/ad38cf76f1d641ada210d2a5b0551677d4e55a71/LineRenderEvent.java/buggy/chart/org.eclipse.birt.chart.engine/src/org/eclipse/birt/chart/event/LineRenderEvent.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
14488,
3420,
1133,
1610,
12,
262,
202,
95,
202,
202,
1670,
3420,
1133,
328,
266,
273,
394,
5377,
3420,
1133,
12,
1084,
11272,
202,
202,
430,
261,
328,
1155,
480,
446,
262,
202... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
14488,
3420,
1133,
1610,
12,
262,
202,
95,
202,
202,
1670,
3420,
1133,
328,
266,
273,
394,
5377,
3420,
1133,
12,
1084,
11272,
202,
202,
430,
261,
328,
1155,
480,
446,
262,
202... |
init, primepump); | init, primepump, rawChip); | private static void processFilterTraces(Trace trace, boolean init, boolean primepump, RawChip rawChip) { //create the DRAM commands for trace input and output //this is done before we create the compute code for the filters of the //trace if (trace.getHead().getNext().isFilterTrace()) generateInputFilterDRAMCommand(trace.getHead().getNextFilter(), init, primepump); if (trace.getTail().getPrevious().isFilterTrace()) generateFilterOutputDRAMCommand(trace.getTail().getPrevFilter(), init, primepump); // iterate over the filterNodes //get the first traceNode that can be a filter TraceNode traceNode = trace.getHead().getNext(); while (traceNode != null) { SpaceTimeBackend.println("Rawify: " + traceNode); // do the appropiate code generation if (traceNode.isFilterTrace()) { FilterTraceNode filterNode = (FilterTraceNode) traceNode; assert !filterNode.isPredefined() : "Predefined filters should not appear in the trace traversal: " + trace.toString(); RawTile tile = rawChip.getTile((filterNode).getX(), (filterNode).getY()); // create the filter info class FilterInfo filterInfo = FilterInfo.getFilterInfo(filterNode); // add the dram command if this filter trace is an // endpoint... /* * if (filterInfo.isLinear()) { //assert * FilterInfo.getFilterInfo(filterNode).remaining == 0 : * //"Items remaining on buffer for init for linear filter"; * createSwitchCodeLinear(filterNode, * trace,filterInfo,init,primepump,tile,rawChip); } else { */ createCommunicationCode(filterNode, trace, filterInfo, init, primepump, filterInfo.isLinear(), tile, rawChip); // } // used for debugging, nothing more tile.addFilterTrace(init, primepump, filterNode); // this must come after createswitch code because of // compression addComputeCode(init, primepump, tile, filterInfo); } // get the next tracenode traceNode = traceNode.getNext(); } } | 5955 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5955/0f205a70e06388f0f8b74114084adca7378b159e/Rawify.java/buggy/streams/src/at/dms/kjc/spacetime/Rawify.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
760,
918,
1207,
1586,
29773,
12,
3448,
2606,
16,
1250,
1208,
16,
1250,
17014,
84,
2801,
16,
5411,
6576,
782,
625,
1831,
782,
625,
13,
288,
3639,
368,
2640,
326,
16801,
2192,
4364,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
760,
918,
1207,
1586,
29773,
12,
3448,
2606,
16,
1250,
1208,
16,
1250,
17014,
84,
2801,
16,
5411,
6576,
782,
625,
1831,
782,
625,
13,
288,
3639,
368,
2640,
326,
16801,
2192,
4364,
... |
throw new SqlException(null, "[derby] " + "PrivilegedActionException:" + e.getException()); | throw new SqlException(null, new MessageId (SQLState.ERROR_PRIVILEGED_ACTION), e.getException()); | private static void loadProductVersionHolder() throws SqlException { try { dncProductVersionHolder__ = buildProductVersionHolder(); } catch (java.security.PrivilegedActionException e) { throw new SqlException(null, "[derby] " + "PrivilegedActionException:" + e.getException()); } catch (java.io.IOException ioe) { throw new SqlException(null, "[derby] " + "IOException:" + ioe); } } | 56322 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56322/3d650b1cb0e7096b3c8b3a076a5ded716f7e1c4a/Configuration.java/buggy/java/client/org/apache/derby/client/am/Configuration.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
760,
918,
1262,
4133,
1444,
6064,
1435,
1216,
8855,
503,
288,
3639,
775,
288,
5411,
8800,
71,
4133,
1444,
6064,
972,
273,
1361,
4133,
1444,
6064,
5621,
3639,
289,
1044,
261,
6290,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
760,
918,
1262,
4133,
1444,
6064,
1435,
1216,
8855,
503,
288,
3639,
775,
288,
5411,
8800,
71,
4133,
1444,
6064,
972,
273,
1361,
4133,
1444,
6064,
5621,
3639,
289,
1044,
261,
6290,
1... |
case 9: | case 8: | public IElementType advance() throws java.io.IOException { int zzInput; int zzAction; // cached fields: int zzCurrentPosL; int zzMarkedPosL; int zzEndReadL = zzEndRead; CharSequence zzBufferL = zzBuffer; char [] zzCMapL = ZZ_CMAP; int [] zzTransL = ZZ_TRANS; int [] zzRowMapL = ZZ_ROWMAP; int [] zzAttrL = ZZ_ATTRIBUTE; while (true) { zzMarkedPosL = zzMarkedPos; zzAction = -1; zzCurrentPosL = zzCurrentPos = zzStartRead = zzMarkedPosL; zzState = zzLexicalState; zzForAction: { while (true) { if (zzCurrentPosL < zzEndReadL) zzInput = zzBufferL.charAt(zzCurrentPosL++); else if (zzAtEOF) { zzInput = YYEOF; break zzForAction; } else { // store back cached positions zzCurrentPos = zzCurrentPosL; zzMarkedPos = zzMarkedPosL; boolean eof = zzRefill(); // get translated positions and possibly new buffer zzCurrentPosL = zzCurrentPos; zzMarkedPosL = zzMarkedPos; zzBufferL = zzBuffer; zzEndReadL = zzEndRead; if (eof) { zzInput = YYEOF; break zzForAction; } else { zzInput = zzBufferL.charAt(zzCurrentPosL++); } } int zzNext = zzTransL[ zzRowMapL[zzState] + zzCMapL[zzInput] ]; if (zzNext == -1) break zzForAction; zzState = zzNext; int zzAttributes = zzAttrL[zzState]; if ( (zzAttributes & 1) == 1 ) { zzAction = zzState; zzMarkedPosL = zzCurrentPosL; if ( (zzAttributes & 8) == 8 ) break zzForAction; } } } // store back cached position zzMarkedPos = zzMarkedPosL; switch (zzAction < 0 ? zzAction : ZZ_ACTION[zzAction]) { case 3: { return XmlTokenType.XML_ATTRIBUTE_VALUE_TOKEN; } case 35: break; case 11: { return XmlTokenType.XML_BAD_CHARACTER; } case 36: break; case 28: { yybegin(YYINITIAL); return XmlTokenType.XML_CDATA_END; } case 37: break; case 27: { return elTokenType2; } case 38: break; case 15: { yybegin(ATTR_VALUE_SQ); return XmlTokenType.XML_ATTRIBUTE_VALUE_START_DELIMITER; } case 39: break; case 24: { return elTokenType; } case 40: break; case 31: { return XmlTokenType.XML_DOCTYPE_PUBLIC; } case 41: break; case 30: { return XmlTokenType.XML_CHAR_ENTITY_REF; } case 42: break; case 5: { yybegin(TAG); return XmlTokenType.XML_START_TAG_START; } case 43: break; case 20: { yybegin(END_TAG); return XmlTokenType.XML_END_TAG_START; } case 44: break; case 6: { if(yystate() == YYINITIAL){ return XmlTokenType.XML_BAD_CHARACTER; } else yybegin(popState()); yypushback(yylength()); } case 45: break; case 7: { yybegin(ATTR_LIST); pushState(TAG); return XmlTokenType.XML_NAME; } case 46: break; case 21: { yybegin(YYINITIAL); return XmlTokenType.XML_EMPTY_ELEMENT_END; } case 47: break; case 22: { yybegin(YYINITIAL); return XmlTokenType.XML_PI_END; } case 48: break; case 25: { return XmlTokenType.XML_ENTITY_REF_TOKEN; } case 49: break; case 29: { yybegin(COMMENT); return XmlTokenType.XML_COMMENT_START; } case 50: break; case 33: { yybegin(CDATA); return XmlTokenType.XML_CDATA_START; } case 51: break; case 2: { return XmlTokenType.XML_COMMENT_CHARACTERS; } case 52: break; case 9: { yybegin(ATTR_LIST); pushState(PROCESSING_INSTRUCTION); return XmlTokenType.XML_NAME; } case 53: break; case 18: { yybegin(YYINITIAL); return XmlTokenType.XML_DOCTYPE_END; } case 54: break; case 14: { yybegin(ATTR_VALUE_DQ); return XmlTokenType.XML_ATTRIBUTE_VALUE_START_DELIMITER; } case 55: break; case 16: { return XmlTokenType.XML_EQ; } case 56: break; case 13: { yybegin(ATTR_LIST); yypushback(yylength()); } case 57: break; case 10: { return XmlTokenType.XML_NAME; } case 58: break; case 8: { yybegin(YYINITIAL); return XmlTokenType.XML_TAG_END; } case 59: break; case 26: { yybegin(YYINITIAL); return XmlTokenType.XML_COMMENT_END; } case 60: break; case 23: { return XmlElementType.XML_MARKUP; } case 61: break; case 12: { yybegin(ATTR); return XmlTokenType.XML_NAME; } case 62: break; case 32: { return XmlTokenType.XML_DOCTYPE_SYSTEM; } case 63: break; case 34: { yybegin(DOCTYPE); return XmlTokenType.XML_DOCTYPE_START; } case 64: break; case 17: { yybegin(ATTR_LIST); return XmlTokenType.XML_ATTRIBUTE_VALUE_END_DELIMITER; } case 65: break; case 19: { yybegin(PROCESSING_INSTRUCTION); return XmlTokenType.XML_PI_START; } case 66: break; case 4: { return XmlTokenType.XML_WHITE_SPACE; } case 67: break; case 1: { return XmlTokenType.XML_DATA_CHARACTERS; } case 68: break; default: if (zzInput == YYEOF && zzStartRead <= zzCurrentPos) { zzAtEOF = true; zzDoEOF(); return null; } else { zzScanError(ZZ_NO_MATCH); } } } } | 17306 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/17306/1876ac4a290bfeb7a4321c3232169dabd97367cf/__XmlLexer.java/clean/source/com/intellij/lexer/__XmlLexer.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
467,
17481,
8312,
1435,
1216,
2252,
18,
1594,
18,
14106,
288,
565,
509,
11273,
1210,
31,
565,
509,
11273,
1803,
31,
565,
368,
3472,
1466,
30,
565,
509,
11273,
3935,
1616,
48,
31,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
467,
17481,
8312,
1435,
1216,
2252,
18,
1594,
18,
14106,
288,
565,
509,
11273,
1210,
31,
565,
509,
11273,
1803,
31,
565,
368,
3472,
1466,
30,
565,
509,
11273,
3935,
1616,
48,
31,
... |
throw new ComplexTypeRecoverableError("derivation-ok-restriction", | throw new ComplexTypeRecoverableError("derivation-ok-restriction", | private void traverseComplexContent(Element complexContentElement, XSComplexTypeDecl typeInfo, boolean mixedOnType, XSDocumentInfo schemaDoc, SchemaGrammar grammar) throws ComplexTypeRecoverableError { String typeName = typeInfo.fName; Object[] attrValues = fAttrChecker.checkAttributes(complexContentElement, false, schemaDoc); // ----------------------------------------------------------------------- // Determine if this is mixed content // ----------------------------------------------------------------------- boolean mixedContent = mixedOnType; Boolean mixedAtt = (Boolean) attrValues[XSAttributeChecker.ATTIDX_MIXED]; if (mixedAtt != null) { mixedContent = mixedAtt.booleanValue(); } // ----------------------------------------------------------------------- // Since the type must have complex content, set the simple type validators // to null // ----------------------------------------------------------------------- typeInfo.fDatatypeValidator = null; Element complexContent = checkContent(DOMUtil.getFirstChildElement(complexContentElement), attrValues, schemaDoc); fAttrChecker.returnAttrArray(attrValues, schemaDoc); // If there are no children, return if (complexContent==null) { throw new ComplexTypeRecoverableError(); } // ----------------------------------------------------------------------- // The content should be either "restriction" or "extension" // ----------------------------------------------------------------------- String complexContentName = DOMUtil.getLocalName(complexContent); if (complexContentName.equals(SchemaSymbols.ELT_RESTRICTION)) typeInfo.fDerivedBy = SchemaSymbols.RESTRICTION; else if (complexContentName.equals(SchemaSymbols.ELT_EXTENSION)) typeInfo.fDerivedBy = SchemaSymbols.EXTENSION; else { // REVISIT - should create a msg in properties file reportGenericSchemaError("ComplexType " + typeName + ": " + "Child of complexContent must be restriction or extension"); throw new ComplexTypeRecoverableError(); } if (DOMUtil.getNextSiblingElement(complexContent) != null) { // REVISIT - should create a msg in properties file reportGenericSchemaError("ComplexType " + typeName + ": " + "Invalid child of complexContent"); throw new ComplexTypeRecoverableError(); } attrValues = fAttrChecker.checkAttributes(complexContent, false, schemaDoc); QName baseTypeName = (QName) attrValues[XSAttributeChecker.ATTIDX_BASE]; fAttrChecker.returnAttrArray(attrValues, schemaDoc); // ----------------------------------------------------------------------- // Need a base type. Check that it's a complex type // ----------------------------------------------------------------------- if (baseTypeName==null) { // REVISIT - should create a msg in properties file reportGenericSchemaError("ComplexType " + typeName + ": " + "The base attribute must be specified for the restriction or extension"); throw new ComplexTypeRecoverableError(); } XSTypeDecl type = (XSTypeDecl)fSchemaHandler.getGlobalDecl(schemaDoc, XSDHandler.TYPEDECL_TYPE, baseTypeName); if (type==null) throw new ComplexTypeRecoverableError(); if (! (type instanceof XSComplexTypeDecl)) { // REVISIT - should create a msg in properties file reportGenericSchemaError("ComplexType " + typeName + ": " + "The base type must be complex"); throw new ComplexTypeRecoverableError(); } XSComplexTypeDecl baseType = (XSComplexTypeDecl)type; typeInfo.fBaseType = baseType; // ----------------------------------------------------------------------- // Check that the base permits the derivation // ----------------------------------------------------------------------- if ((baseType.fFinal & typeInfo.fDerivedBy)!=0) { //REVISIT - generate error reportGenericSchemaError("ComplexType " + typeName + ": " + "The base type has a final value that prohibits this derivation"); throw new ComplexTypeRecoverableError(); } // ----------------------------------------------------------------------- // Skip over any potential annotations // ----------------------------------------------------------------------- complexContent = checkContent(DOMUtil.getFirstChildElement(complexContent), null, schemaDoc); // ----------------------------------------------------------------------- // Process the content. Note: should I try to catch any complexType errors // here in order to return the attr array? // ----------------------------------------------------------------------- processComplexContent(complexContent, typeInfo, mixedContent, schemaDoc, grammar); // ----------------------------------------------------------------------- // Compose the final content and attribute uses // ----------------------------------------------------------------------- XSParticleDecl baseContent = baseType.fParticle; if (typeInfo.fDerivedBy==SchemaSymbols.RESTRICTION) { // This is an RESTRICTION if (typeInfo.fParticle==null && (!(baseContent==null || baseContent.emptiable()))) { //REVISIT - need better error msg throw new ComplexTypeRecoverableError("derivation-ok-restriction", null); } if (typeInfo.fParticle!=null && baseContent==null) { //REVISIT - need better error msg throw new ComplexTypeRecoverableError("derivation-ok-restriction", null); } mergeAttributes(baseType.fAttrGrp, typeInfo.fAttrGrp, typeName, false); String error = typeInfo.fAttrGrp.validRestrictionOf(baseType.fAttrGrp); if (error != null) { reportGenericSchemaError("ComplexType " + typeName + ": " + error); throw new ComplexTypeRecoverableError(); } } else { // This is an EXTENSION // // Check if the contentType of the base is consistent with the new type // cos-ct-extends.1.4.2.2 if (baseType.fContentType != XSComplexTypeDecl.CONTENTTYPE_EMPTY) { if (((baseType.fContentType == XSComplexTypeDecl.CONTENTTYPE_ELEMENT) && mixedContent) || ((baseType.fContentType == XSComplexTypeDecl.CONTENTTYPE_MIXED) && !mixedContent)) { // REVISIT - need to add a property message reportGenericSchemaError("cos-ct-extends.1.4.2.2.2.1: The content type of the base type " + baseTypeName + " and derived type " + typeName + " must both be mixed or element-only"); throw new ComplexTypeRecoverableError(); } } // Create the particle if (typeInfo.fParticle == null) { typeInfo.fParticle = baseContent; } else if (baseContent==null) { } else { if (typeInfo.fParticle.fType == XSParticleDecl.PARTICLE_ALL || baseType.fParticle.fType == XSParticleDecl.PARTICLE_ALL) { reportGenericSchemaError("cos-all-limited.1.2: An \"all\" model group that is part of a complex type definition must constitute the entire {content type} of the definition"); throw new ComplexTypeRecoverableError(); } XSParticleDecl temp = new XSParticleDecl(); temp.fType = XSParticleDecl.PARTICLE_SEQUENCE; temp.fValue = baseContent; temp.fOtherValue = typeInfo.fParticle; typeInfo.fParticle = temp; } // Set the contentType if (mixedContent) typeInfo.fContentType = XSComplexTypeDecl.CONTENTTYPE_MIXED; else if (typeInfo.fParticle == null) typeInfo.fContentType = XSComplexTypeDecl.CONTENTTYPE_EMPTY; else typeInfo.fContentType = XSComplexTypeDecl.CONTENTTYPE_ELEMENT; mergeAttributes(baseType.fAttrGrp, typeInfo.fAttrGrp, typeName, true); } } // end of traverseComplexContent | 1831 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1831/7d23b0f822620b832b611e0946e73bb880886a98/XSDComplexTypeTraverser.java/clean/src/org/apache/xerces/impl/v2/XSDComplexTypeTraverser.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
10080,
12795,
1350,
12,
1046,
7233,
1350,
1046,
16,
29159,
1139,
55,
12795,
559,
3456,
23112,
16,
4766,
3639,
1250,
7826,
1398,
559,
16,
1139,
55,
2519,
966,
1963,
1759,
16,
29... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
10080,
12795,
1350,
12,
1046,
7233,
1350,
1046,
16,
29159,
1139,
55,
12795,
559,
3456,
23112,
16,
4766,
3639,
1250,
7826,
1398,
559,
16,
1139,
55,
2519,
966,
1963,
1759,
16,
29... |
throw new IllegalStateException("Unabel to close stream fo DSL config file.", e); | throw new IllegalStateException("Unabel to close stream fo DSL config file. (IOException: " + e.getMessage() + ")"); | public void init(IEditorSite site, IEditorInput editorInput) throws PartInitException { FileEditorInput input = (FileEditorInput)editorInput; setSite(site); setInput(editorInput); setVisibleName( input ); try { InputStream stream = input.getFile().getContents(); model = new NLGrammarModel(); model.load( new InputStreamReader(stream) ); stream.close(); } catch ( CoreException e ) { throw new IllegalStateException("Unable to load DSL configuration file.", e); } catch ( IOException e ) { throw new IllegalStateException("Unabel to close stream fo DSL config file.", e); } } | 6736 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6736/b7240af83d7d884bb1406c1d1374c7ed4d4e89e3/DSLEditor.java/clean/drools-ide/src/main/java/org/drools/ide/dsl/editor/DSLEditor.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1208,
12,
45,
6946,
4956,
2834,
16,
5397,
467,
6946,
1210,
4858,
1210,
13,
1216,
6393,
2570,
503,
288,
3639,
1387,
6946,
1210,
810,
273,
261,
812,
6946,
1210,
13,
9177,
1210,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1208,
12,
45,
6946,
4956,
2834,
16,
5397,
467,
6946,
1210,
4858,
1210,
13,
1216,
6393,
2570,
503,
288,
3639,
1387,
6946,
1210,
810,
273,
261,
812,
6946,
1210,
13,
9177,
1210,
... |
} | } /* | public void elementChanged( DesignElementHandle focus, NotificationEvent ev ) { switch ( ev.getEventType( ) ) { case NotificationEvent.CONTENT_EVENT : case NotificationEvent.STYLE_EVENT : { refresh( ); break; } case NotificationEvent.PROPERTY_EVENT : case NotificationEvent.TEMPLATE_TRANSFORM_EVENT: { refresh( ); this.markDirty( true ); break; } } } | 12803 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12803/24637ecc70d1c09ca29010787e8a3b377b2d6876/ReportDesignEditPart.java/clean/UI/org.eclipse.birt.report.designer.ui/src/org/eclipse/birt/report/designer/internal/ui/editors/schematic/editparts/ReportDesignEditPart.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
930,
5033,
12,
29703,
1046,
3259,
7155,
16,
8050,
1133,
2113,
262,
202,
95,
202,
202,
9610,
261,
2113,
18,
588,
16346,
12,
262,
262,
202,
202,
95,
1082,
202,
3593,
8050,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
930,
5033,
12,
29703,
1046,
3259,
7155,
16,
8050,
1133,
2113,
262,
202,
95,
202,
202,
9610,
261,
2113,
18,
588,
16346,
12,
262,
262,
202,
202,
95,
1082,
202,
3593,
8050,
... |
mBasicOffset = Integer.parseInt(aBasicOffset); | mBasicOffset = aBasicOffset; | public void setBasicOffset(String aBasicOffset) { mBasicOffset = Integer.parseInt(aBasicOffset); } | 50482 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50482/5ab64d22cd73c5f646098ec10d866426a569d63d/IndentationCheck.java/clean/src/checkstyle/com/puppycrawl/tools/checkstyle/checks/indentation/IndentationCheck.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
444,
8252,
2335,
12,
780,
279,
8252,
2335,
13,
565,
288,
3639,
312,
8252,
2335,
273,
279,
8252,
2335,
31,
565,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
444,
8252,
2335,
12,
780,
279,
8252,
2335,
13,
565,
288,
3639,
312,
8252,
2335,
273,
279,
8252,
2335,
31,
565,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
if (curr.getNodeType() != Node.ELEMENT_NODE) break; | static List getChildContentList(Context c, Content parent) { List inlineList = new LinkedList(); List blockList = null; FirstLineStyle firstLineStyle = null; FirstLetterStyle firstLetterStyle = null; TextContent textContent = null; CascadedStyle parentStyle = parent.getStyle(); Element parentElement = parent.getElement(); if (mayHaveFirstLine(parentStyle)) { //put in a marker if there is first-line styling CascadedStyle firstLine = c.css.getPseudoElementStyle(parentElement, "first-line"); if (firstLine != null) { firstLineStyle = new FirstLineStyle(firstLine); } } if (mayHaveFirstLetter(parentStyle)) { //put in a marker if there is first-letter styling CascadedStyle firstLetter = c.css.getPseudoElementStyle(parentElement, "first-letter"); if (firstLetter != null) { firstLetterStyle = new FirstLetterStyle(firstLetter); } } if (parentElement != null) { //TODO: before and after may be block! //<br/> handling should be done by :before content CascadedStyle before = c.css.getPseudoElementStyle(parentElement, "before"); if (before != null && before.hasProperty(CSSName.CONTENT)) { String content = before.propertyByName(CSSName.CONTENT).getValue().getCssText(); if (!content.equals("")) { if (textContent != null) { inlineList.add(textContent); textContent = null; } textContent = new TextContent((Element) parentElement); textContent.append(content.replaceAll("\\\\A", "\n")); inlineList.add(textContent); textContent = null; } //do not reset style here, because if this element is empty, we will not have changed context } } Node node = parentElement; if (node == null) node = ((BodyContent) parent).getNode(); NodeList children = node.getChildNodes(); //each child node can result in only one addition to content for (int i = 0; i < children.getLength(); i++) { Node curr = children.item(i); if (curr.getNodeType() == Node.TEXT_NODE) { String text = curr.getNodeValue(); if (textContent == null) textContent = new TextContent((Element) curr.getParentNode()); textContent.append(text); continue; } if (curr.getNodeType() != Node.ELEMENT_NODE) break;//must be a comment or pi or something Element elem = (Element) curr; CascadedStyle style = c.css.getCascadedStyle(elem); if (isHidden(style)) { continue;//at least for now, don't generate hidden content } //TODO: this replaced thing is Namespace-dependent if (LayoutUtil.isReplaced(c, curr)) { // u.p("adding replaced: " + curr); if (textContent != null) { inlineList.add(textContent); textContent = null; } inlineList.add(new ReplacedContent((Element) curr, style)); continue; } //TODO: check CSS-spec 9.7 for computing values for floats if (isFloated(style)) { // u.p("adding floated block: " + curr); if (textContent != null) { inlineList.add(textContent); textContent = null; } inlineList.add(new FloatedBlockContent((Element) curr, style)); continue; } if (isInlineBlock(style)) { //treat it like a replaced element if (textContent != null) { inlineList.add(textContent); textContent = null; } inlineList.add(new ReplacedContent(elem, style)); continue; } if (isBlockLevel(style)) { if (textContent != null) { inlineList.add(textContent); textContent = null; } if (blockList == null) blockList = new LinkedList(); //TODO: handle run-in here if (inlineList.size() != 0) { blockList.add(new AnonymousBlockContent(parentElement, parentStyle, inlineList)); inlineList = new LinkedList(); } blockList.add(new BlockContent((Element) curr, style)); continue; } //TODO: handle run-in content separately //TODO: how about Absolute and Fixed children? //TODO:list-items, tables, etc. //if we get here, we have inline content, need to get into it. Content inline = new InlineContent(elem, style); List childList = inline.getChildContent(c); if (isBlockContent(childList)) { //need to put current inlineList in front, with a StylePush appended if (textContent != null) { inlineList.add(textContent); textContent = null; } inlineList.add(new StylePush(style)); for (Iterator ci = childList.iterator(); ci.hasNext();) { Object o = ci.next(); if (o instanceof BlockContent) break; ci.remove();//have to take it out to avoid duplicates if (o instanceof AnonymousBlockContent) { inlineList.addAll(((AnonymousBlockContent) o).getChildContent(c)); } else { inlineList.add(o); } } if (blockList == null) blockList = new LinkedList(); //TODO: handle run-in here if (inlineList.size() != 0) { blockList.add(new AnonymousBlockContent(parentElement, parentStyle, inlineList)); inlineList = new LinkedList(); } //extract any trailing AnonymousBlock and put it in the inlineList Object last = childList.get(childList.size() - 1); if (last instanceof AnonymousBlockContent) { inlineList.addAll(((AnonymousBlockContent) last).getChildContent(c)); childList.remove(childList.size() - 1); } //add the rest of the children blockList.addAll(childList); //append StylePop inlineList.add(new StylePop()); } else { inlineList.add(new StylePush(style)); inlineList.addAll(childList); inlineList.add(new StylePop()); } } if (textContent != null) { inlineList.add(textContent); textContent = null; } if (parentElement != null) { //TODO: after may be block! CascadedStyle after = c.css.getPseudoElementStyle(parentElement, "after"); if (after != null && after.hasProperty(CSSName.CONTENT)) { String content = after.propertyByName(CSSName.CONTENT).getValue().getCssText(); if (!content.equals("")) { textContent = new TextContent((Element) parentElement); textContent.append(content.replaceAll("\\\\A", "\n")); inlineList.add(textContent); textContent = null; } } } if (blockList == null) {//this was inline content if (firstLetterStyle != null) { inlineList.add(0, firstLetterStyle); } if (firstLineStyle != null) { inlineList.add(0, firstLineStyle); } return inlineList; } else { if (inlineList.size() != 0) { blockList.add(new AnonymousBlockContent(parentElement, parentStyle, inlineList)); } if (firstLetterStyle != null) { blockList.add(0, firstLetterStyle); } if (firstLineStyle != null) { blockList.add(0, firstLineStyle); } return blockList; } } | 52947 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52947/c2c5341af3eb3938df77711aeca7bb46a2332118/ContentUtil.java/buggy/src/java/org/xhtmlrenderer/layout/content/ContentUtil.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
760,
987,
8154,
1350,
682,
12,
1042,
276,
16,
3697,
982,
13,
288,
3639,
987,
6370,
682,
273,
394,
10688,
5621,
3639,
987,
1203,
682,
273,
446,
31,
3639,
5783,
1670,
2885,
24415,
2885,
2... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
760,
987,
8154,
1350,
682,
12,
1042,
276,
16,
3697,
982,
13,
288,
3639,
987,
6370,
682,
273,
394,
10688,
5621,
3639,
987,
1203,
682,
273,
446,
31,
3639,
5783,
1670,
2885,
24415,
2885,
2... | |
org.exist.xquery.parser.XQueryAST tmp253_AST = null; tmp253_AST = (org.exist.xquery.parser.XQueryAST)astFactory.create(LT(1)); astFactory.addASTChild(currentAST, tmp253_AST); match(130); | org.exist.xquery.parser.XQueryAST tmp261_AST = null; tmp261_AST = (org.exist.xquery.parser.XQueryAST)astFactory.create(LT(1)); astFactory.addASTChild(currentAST, tmp261_AST); match(136); | public final void reverseAxisSpecifier() throws RecognitionException, TokenStreamException { returnAST = null; ASTPair currentAST = new ASTPair(); org.exist.xquery.parser.XQueryAST reverseAxisSpecifier_AST = null; switch ( LA(1)) { case LITERAL_parent: { org.exist.xquery.parser.XQueryAST tmp250_AST = null; tmp250_AST = (org.exist.xquery.parser.XQueryAST)astFactory.create(LT(1)); astFactory.addASTChild(currentAST, tmp250_AST); match(LITERAL_parent); reverseAxisSpecifier_AST = (org.exist.xquery.parser.XQueryAST)currentAST.root; break; } case LITERAL_ancestor: { org.exist.xquery.parser.XQueryAST tmp251_AST = null; tmp251_AST = (org.exist.xquery.parser.XQueryAST)astFactory.create(LT(1)); astFactory.addASTChild(currentAST, tmp251_AST); match(LITERAL_ancestor); reverseAxisSpecifier_AST = (org.exist.xquery.parser.XQueryAST)currentAST.root; break; } case 129: { org.exist.xquery.parser.XQueryAST tmp252_AST = null; tmp252_AST = (org.exist.xquery.parser.XQueryAST)astFactory.create(LT(1)); astFactory.addASTChild(currentAST, tmp252_AST); match(129); reverseAxisSpecifier_AST = (org.exist.xquery.parser.XQueryAST)currentAST.root; break; } case 130: { org.exist.xquery.parser.XQueryAST tmp253_AST = null; tmp253_AST = (org.exist.xquery.parser.XQueryAST)astFactory.create(LT(1)); astFactory.addASTChild(currentAST, tmp253_AST); match(130); reverseAxisSpecifier_AST = (org.exist.xquery.parser.XQueryAST)currentAST.root; break; } default: { throw new NoViableAltException(LT(1), getFilename()); } } returnAST = reverseAxisSpecifier_AST; } | 2909 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2909/ddc6ab496ae303f007a96cb80352f3352974cbcf/XQueryParser.java/clean/src/org/exist/xquery/parser/XQueryParser.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
727,
918,
4219,
6558,
21416,
1435,
1216,
9539,
16,
3155,
1228,
503,
288,
9506,
202,
2463,
9053,
273,
446,
31,
202,
202,
9053,
4154,
783,
9053,
273,
394,
9183,
4154,
5621,
202,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
727,
918,
4219,
6558,
21416,
1435,
1216,
9539,
16,
3155,
1228,
503,
288,
9506,
202,
2463,
9053,
273,
446,
31,
202,
202,
9053,
4154,
783,
9053,
273,
394,
9183,
4154,
5621,
202,
... |
public int getMaxFollowers( final String aType ) { int ret = -1; List<? extends PObject> pobjList = getPObjectList(); for ( PObject pobj : pobjList ) { if ( pobj == null ) { continue; } final List<String> formulas = pobj.getNumFollowers( aType ); if ( formulas == null ) { continue; } for ( String formula : formulas ) { final int val = this.getVariableValue( formula, Constants.EMPTY_STRING, this ).intValue(); ret = Math.max( ret, val ); } } if ( ret != -1 ) {// ret += (int)getBonusValue("FOLLOWERS", aType.toUpperCase()); ret += this.getTotalBonusTo("FOLLOWERS", aType.toUpperCase()); } else { // Old way of handling this // If the character qualifies for any companion mod of this type // they can take unlimited number of them. for ( CompanionMod cMod : Globals.getCompanionMods( aType ) ) { for ( String varName : cMod.getVarMap().keySet() ) { if ( this.getVariableValue(varName, Constants.EMPTY_STRING).intValue() > 0 ) { return -1; } } for ( String key : cMod.getClassMap().keySet() ) { for ( PCClass pcClass : getClassList() ) { if ( pcClass.getKeyName().equals( key ) ) { return -1; } } } } return 0; } return ret; } | 48301 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/48301/376816acf8bf134fa77bd6ea5c602dbe9af9bfbd/PlayerCharacter.java/clean/code/src/java/pcgen/core/PlayerCharacter.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
509,
7288,
8328,
414,
12,
727,
514,
279,
559,
262,
202,
95,
202,
202,
474,
325,
273,
300,
21,
31,
202,
202,
682,
12880,
3231,
453,
921,
34,
293,
2603,
682,
273,
1689,
25979,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
509,
7288,
8328,
414,
12,
727,
514,
279,
559,
262,
202,
95,
202,
202,
474,
325,
273,
300,
21,
31,
202,
202,
682,
12880,
3231,
453,
921,
34,
293,
2603,
682,
273,
1689,
25979,... | ||
temp = ""; | temp = new StringBuffer(); | public void tokenise(Reader reader) throws IOException { char[] nextChar = new char[1]; String temp = ""; this.state = TOKENISER_STATE_READY; this.groupLevel = 0; while(reader.read(nextChar) != -1) { if(this.state == TOKENISER_STATE_READY) { // No influence from previous characters. if(nextChar[0] == '{') { // Open a group this.rtfParser.handleOpenGroup(this.groupLevel); groupLevel++; } else if(nextChar[0] == '}') { // Close a group this.rtfParser.handleCloseGroup(this.groupLevel); groupLevel--; } else if(nextChar[0] == '\\') { this.state = TOKENISER_STATE_SLASH; temp = ""; } else { this.state = TOKENISER_STATE_IN_TEXT; temp = temp + nextChar[0]; } } else if((this.state & TOKENISER_STATE_SLASH) == TOKENISER_STATE_SLASH) { // A slash signals a control character or word or an escaped character if(nextChar[0] == '{') { this.state = TOKENISER_STATE_IN_TEXT; temp = temp + "\\{"; } else if(nextChar[0] == '}') { this.state = TOKENISER_STATE_IN_TEXT; temp = temp + "\\}"; } else if(nextChar[0] == '\\') { this.state = TOKENISER_STATE_IN_TEXT; temp = temp + "\\\\"; } else { if((this.state & TOKENISER_STATE_IN_TEXT) == TOKENISER_STATE_IN_TEXT) { // A control word or character closes previous text token this.rtfParser.handleText(temp, this.groupLevel); temp = ""; } if(nextChar[0] == '|') { this.state = TOKENISER_STATE_READY; this.rtfParser.handleCtrlCharacter("\\|", this.groupLevel); } else if(nextChar[0] == '~') { this.state = TOKENISER_STATE_READY; this.rtfParser.handleCtrlCharacter("\\~", this.groupLevel); } else if(nextChar[0] == '-') { this.state = TOKENISER_STATE_READY; this.rtfParser.handleCtrlCharacter("\\-", this.groupLevel); } else if(nextChar[0] == '_') { this.state = TOKENISER_STATE_READY; this.rtfParser.handleCtrlCharacter("\\_", this.groupLevel); } else if(nextChar[0] == ':') { this.state = TOKENISER_STATE_READY; this.rtfParser.handleCtrlCharacter("\\:", this.groupLevel); } else if(nextChar[0] == '*') { this.state = TOKENISER_STATE_READY; this.rtfParser.handleCtrlCharacter("\\*", this.groupLevel); } else { this.state = TOKENISER_STATE_IN_CTRL_WORD; temp = "\\" + nextChar[0]; } } } else if(this.state == TOKENISER_STATE_IN_CTRL_WORD) { // Control words run until a space, close or open group or another control word is found. if(nextChar[0] == '\n' || nextChar[0] == '\r') { nextChar[0] = ' '; } if(nextChar[0] == '{') { this.rtfParser.handleCtrlWord(temp, this.groupLevel); this.rtfParser.handleOpenGroup(this.groupLevel); groupLevel++; this.state = TOKENISER_STATE_READY; temp = ""; } else if(nextChar[0] == '}') { this.rtfParser.handleCtrlWord(temp, this.groupLevel); this.rtfParser.handleCloseGroup(this.groupLevel); groupLevel--; this.state = TOKENISER_STATE_READY; temp = ""; } else if(nextChar[0] == '\\') { this.rtfParser.handleCtrlWord(temp, this.groupLevel); this.state = TOKENISER_STATE_SLASH; temp = ""; } else if(nextChar[0] == ' ') { this.rtfParser.handleCtrlWord(temp, this.groupLevel); this.rtfParser.handleText(" ", this.groupLevel); this.state = TOKENISER_STATE_READY; temp = ""; } else if(nextChar[0] == ';') { this.rtfParser.handleCtrlWord(temp, this.groupLevel); this.rtfParser.handleText(";", this.groupLevel); this.state = TOKENISER_STATE_READY; temp = ""; } else { temp = temp + nextChar[0]; } } else if(this.state == TOKENISER_STATE_IN_TEXT) { // Text tokens are closed by control characters or words or open and close groups if(nextChar[0] == '{') { this.rtfParser.handleText(temp, this.groupLevel); this.rtfParser.handleOpenGroup(this.groupLevel); groupLevel++; this.state = TOKENISER_STATE_READY; temp = ""; } else if(nextChar[0] == '}') { this.rtfParser.handleText(temp, this.groupLevel); this.rtfParser.handleCloseGroup(this.groupLevel); groupLevel--; this.state = TOKENISER_STATE_READY; temp = ""; } else if(nextChar[0] == '\\') { this.state = TOKENISER_STATE_IN_TEXT | TOKENISER_STATE_SLASH; } else { temp = temp + nextChar[0]; } } } if((this.state & TOKENISER_STATE_IN_TEXT) == TOKENISER_STATE_IN_TEXT && !temp.equals("")) { // If at the end a text token was being parsed, emmit that token. Required for RTF fragments this.rtfParser.handleText(temp, this.groupLevel); } } | 4174 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4174/21d5b73c5c9e7a80b42ec38147e39281791d5fc1/RtfTokeniser.java/clean/src/com/lowagie/text/rtf/direct/RtfTokeniser.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
1147,
784,
12,
2514,
2949,
13,
1216,
1860,
288,
202,
202,
3001,
8526,
21865,
273,
394,
1149,
63,
21,
15533,
202,
202,
780,
1906,
273,
1408,
31,
202,
202,
2211,
18,
2019,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
1147,
784,
12,
2514,
2949,
13,
1216,
1860,
288,
202,
202,
3001,
8526,
21865,
273,
394,
1149,
63,
21,
15533,
202,
202,
780,
1906,
273,
1408,
31,
202,
202,
2211,
18,
2019,
... |
String msg = "failed to add entry " + req.getEntry(); | String msg = "failed to add entry " + req.getEntry() + ": " + e.getMessage(); | public void messageReceived( IoSession session, Object request ) throws Exception { AddRequest req = ( AddRequest ) request; LdapResult result = req.getResultResponse().getLdapResult(); if ( IS_DEBUG ) { log.debug( "Received a Add message : " + req.toString() ); } try { LdapContext ctx = SessionRegistry.getSingleton().getLdapContext( session, null, true ); if ( req.getControls().containsKey( ManageDsaITControl.CONTROL_OID ) ) { ctx.addToEnvironment( Context.REFERRAL, "ignore" ); } else { ctx.addToEnvironment( Context.REFERRAL, "throw" ); } ctx.setRequestControls( ( Control[] ) req.getControls().values().toArray( EMPTY_CONTROLS ) ); ctx.createSubcontext( req.getEntry(), req.getAttributes() ); } catch ( ReferralException e ) { ReferralImpl refs = new ReferralImpl(); result.setReferral( refs ); result.setResultCode( ResultCodeEnum.REFERRAL ); result.setErrorMessage( "Encountered referral attempting to handle add request." ); /* coming up null causing a NPE */ // result.setMatchedDn( e.getResolvedName().toString() ); do { refs.addLdapUrl( ( String ) e.getReferralInfo() ); } while ( e.skipReferral() ); session.write( req.getResultResponse() ); return; } catch ( NamingException e ) { String msg = "failed to add entry " + req.getEntry(); if ( log.isDebugEnabled() ) { msg += ":\n" + ExceptionUtils.getStackTrace( e ); } ResultCodeEnum code; if ( e instanceof LdapException ) { code = ( ( LdapException ) e ).getResultCode(); } else { code = ResultCodeEnum.getBestEstimate( e, req.getType() ); } result.setResultCode( code ); result.setErrorMessage( msg ); if ( ( e.getResolvedName() != null ) && ( ( code == ResultCodeEnum.NOSUCHOBJECT ) || ( code == ResultCodeEnum.ALIASPROBLEM ) || ( code == ResultCodeEnum.INVALIDDNSYNTAX ) || ( code == ResultCodeEnum.ALIASDEREFERENCINGPROBLEM ) ) ) { result.setMatchedDn( (LdapDN)e.getResolvedName() ); } session.write( req.getResultResponse() ); return; } result.setResultCode( ResultCodeEnum.SUCCESS ); session.write( req.getResultResponse() ); } | 10677 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/10677/25fa17a415ff484575f2c46a414c8aec904349e2/AddHandler.java/clean/protocol-ldap/src/main/java/org/apache/directory/server/ldap/support/AddHandler.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
883,
8872,
12,
10495,
2157,
1339,
16,
1033,
590,
262,
1216,
1185,
565,
288,
3639,
1436,
691,
1111,
273,
261,
1436,
691,
262,
590,
31,
3639,
18053,
1253,
563,
273,
1111,
18,
5... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
883,
8872,
12,
10495,
2157,
1339,
16,
1033,
590,
262,
1216,
1185,
565,
288,
3639,
1436,
691,
1111,
273,
261,
1436,
691,
262,
590,
31,
3639,
18053,
1253,
563,
273,
1111,
18,
5... |
private static void testDebugOff() { Properties props = new Properties(); ByteArrayOutputStream out1 = new ByteArrayOutputStream(); ByteArrayOutputStream err1 = new ByteArrayOutputStream(); PrintStream out2 = new PrintStream(out1); PrintStream err2 = new PrintStream(err1); props.put("log4testng.debug", "false"); props.put("log4testng.rootLogger", "WARN"); testInitialize(props, out2, err2); Assert.assertEquals(out1.toString(), ""); Assert.assertEquals(err1.toString(), ""); | private static void testDebugOff() { Properties props= new Properties(); ByteArrayOutputStream out1= new ByteArrayOutputStream(); ByteArrayOutputStream err1= new ByteArrayOutputStream(); PrintStream out2= new PrintStream(out1); PrintStream err2= new PrintStream(err1); props.put("log4testng.debug", "false"); props.put("log4testng.rootLogger", "WARN"); testInitialize(props, out2, err2); Assert.assertEquals(out1.toString(), ""); Assert.assertEquals(err1.toString(), ""); | private static void testDebugOff() { Properties props = new Properties(); ByteArrayOutputStream out1 = new ByteArrayOutputStream(); ByteArrayOutputStream err1 = new ByteArrayOutputStream(); PrintStream out2 = new PrintStream(out1); PrintStream err2 = new PrintStream(err1); props.put("log4testng.debug", "false"); props.put("log4testng.rootLogger", "WARN"); testInitialize(props, out2, err2); Assert.assertEquals(out1.toString(), ""); Assert.assertEquals(err1.toString(), ""); } | 50502 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50502/96769faec3ab62f18300a49b416f1c5e2f108496/Logger.java/clean/src/main/org/testng/log4testng/Logger.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
3238,
760,
918,
1842,
2829,
7210,
1435,
225,
288,
1377,
6183,
3458,
273,
394,
6183,
5621,
1377,
11559,
596,
21,
273,
394,
11559,
5621,
3639,
11559,
393,
21,
273,
394,
11559,
5621,
3639,
2... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
3238,
760,
918,
1842,
2829,
7210,
1435,
225,
288,
1377,
6183,
3458,
273,
394,
6183,
5621,
1377,
11559,
596,
21,
273,
394,
11559,
5621,
3639,
11559,
393,
21,
273,
394,
11559,
5621,
3639,
2... |
MultiPageEditorSite.this.handleSelectionChanged(event); } | MultiPageEditorSite.this.handleSelectionChanged(event); } | public void selectionChanged(SelectionChangedEvent event) { MultiPageEditorSite.this.handleSelectionChanged(event); } | 57470 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57470/3da40908ffda867d9aad0c658d5165d8ef53ebf5/MultiPageEditorSite.java/clean/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/part/MultiPageEditorSite.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1875,
202,
482,
918,
4421,
5033,
12,
6233,
27553,
871,
13,
288,
9506,
202,
5002,
1964,
6946,
4956,
18,
2211,
18,
4110,
6233,
5033,
12,
2575,
1769,
1082,
202,
97,
2,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1875,
202,
482,
918,
4421,
5033,
12,
6233,
27553,
871,
13,
288,
9506,
202,
5002,
1964,
6946,
4956,
18,
2211,
18,
4110,
6233,
5033,
12,
2575,
1769,
1082,
202,
97,
2,
-100,
-100,
-100,
-100,
-... |
public void updateAttributes(TaskRepository repository, Proxy proxySettings, IProgressMonitor monitor) throws CoreException { | public void updateAttributes(TaskRepository repository, Proxy proxySettings, IProgressMonitor monitor) throws CoreException { | public void updateAttributes(TaskRepository repository, Proxy proxySettings, IProgressMonitor monitor) throws CoreException { JiraServerFacade.getDefault().refreshServerSettings(repository); } | 51151 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51151/97fd3accee94b76466f9123039b677db42f77ed3/JiraRepositoryConnector.java/buggy/org.eclipse.mylyn.jira.ui/src/org/eclipse/mylyn/internal/jira/JiraRepositoryConnector.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
1089,
2498,
12,
2174,
3305,
3352,
16,
7659,
2889,
2628,
16,
467,
5491,
7187,
6438,
13,
1216,
30015,
288,
202,
202,
46,
11547,
2081,
12467,
18,
588,
1868,
7675,
9144,
2081,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
1089,
2498,
12,
2174,
3305,
3352,
16,
7659,
2889,
2628,
16,
467,
5491,
7187,
6438,
13,
1216,
30015,
288,
202,
202,
46,
11547,
2081,
12467,
18,
588,
1868,
7675,
9144,
2081,
... |
IWorkbenchPage page = MylarTasksPlugin.getDefault().getWorkbench().getActiveWorkbenchWindow().getActivePage(); if (page == null) return; try { page.openEditor(input, "org.eclipse.mylar.bugzilla.ui.tasks.bugzillaTaskEditor"); } catch (PartInitException ex) { MylarPlugin.log(ex, "couldn't open"); return; } } | OfflineView.refresh(); } | public void run() { // get the active workbench page IWorkbenchPage page = MylarTasksPlugin.getDefault().getWorkbench().getActiveWorkbenchWindow().getActivePage(); // if we couldn't get the page, get out of here if (page == null) return; try { // try to open an editor on the input bug //page.openEditor(input, IBugzillaConstants.EXISTING_BUG_EDITOR_ID); page.openEditor(input, "org.eclipse.mylar.bugzilla.ui.tasks.bugzillaTaskEditor"); } catch (PartInitException ex) { MylarPlugin.log(ex, "couldn't open"); return; } } | 51151 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51151/533bf5f2cac745644765b5e345ba266c512186aa/BugzillaTask.java/clean/org.eclipse.mylyn.bugzilla.ui/src/org/eclipse/mylyn/bugzilla/ui/tasks/BugzillaTask.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
4697,
202,
482,
918,
1086,
1435,
288,
6862,
202,
759,
336,
326,
2695,
1440,
22144,
1363,
6862,
202,
45,
2421,
22144,
1964,
1363,
273,
8005,
7901,
6685,
3773,
18,
588,
1868,
7675,
588,
2421,
22... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
4697,
202,
482,
918,
1086,
1435,
288,
6862,
202,
759,
336,
326,
2695,
1440,
22144,
1363,
6862,
202,
45,
2421,
22144,
1964,
1363,
273,
8005,
7901,
6685,
3773,
18,
588,
1868,
7675,
588,
2421,
22... |
public RepositoryConfiguration getConfiguration(String repositoryUrl, String userName, String password) throws IOException { | public RepositoryConfiguration getConfiguration(String repositoryUrl, String userName, String password, String encoding) throws IOException { | public RepositoryConfiguration getConfiguration(String repositoryUrl, String userName, String password) throws IOException { String configUrlStr = repositoryUrl + CONFIG_RDF_URL; configUrlStr = BugzillaRepositoryUtil.addCredentials(configUrlStr, userName, password); URLConnection c = new URL(configUrlStr).openConnection(); BufferedReader in = new BufferedReader(new InputStreamReader(c.getInputStream())); SaxConfigurationContentHandler contentHandler = new SaxConfigurationContentHandler(); try { StringBuffer result = XmlCleaner.clean(in); StringReader strReader = new StringReader(result.toString()); XMLReader reader = XMLReaderFactory.createXMLReader(); reader.setErrorHandler(new SaxErrorHandler()); reader.setContentHandler(contentHandler); reader.parse(new InputSource(strReader)); } catch (SAXException e) { throw new IOException("Unable to read server configuration."); } return contentHandler.getConfiguration(); } | 51989 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51989/d41c4a120fae710254e27245566966390ce439f9/RepositoryConfigurationFactory.java/clean/org.eclipse.mylyn.bugzilla.core/src/org/eclipse/mylyn/internal/bugzilla/core/RepositoryConfigurationFactory.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
6281,
1750,
10316,
12,
780,
3352,
1489,
16,
514,
12065,
16,
514,
2201,
13,
1216,
1860,
288,
202,
202,
780,
642,
1489,
1585,
273,
3352,
1489,
397,
9128,
67,
30137,
67,
1785,
31... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
6281,
1750,
10316,
12,
780,
3352,
1489,
16,
514,
12065,
16,
514,
2201,
13,
1216,
1860,
288,
202,
202,
780,
642,
1489,
1585,
273,
3352,
1489,
397,
9128,
67,
30137,
67,
1785,
31... |
types[index >> 1] = PathIterator.SEG_QUADTO; | types[index >> 1] = PathIterator.SEG_CUBICTO; | public void curveTo(float x1, float y1, float x2, float y2, float x3, float y3) { ensureSize(index + 6); types[index >> 1] = PathIterator.SEG_QUADTO; points[index++] = x1; points[index++] = y1; points[index++] = x2; points[index++] = y2; points[index++] = x3; points[index++] = y3; } | 45163 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45163/275d463d06dd5dda294643fa50f7dd2384d32d2a/GeneralPath.java/clean/libjava/java/awt/geom/GeneralPath.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
918,
8882,
774,
12,
5659,
619,
21,
16,
1431,
677,
21,
16,
1431,
619,
22,
16,
1431,
677,
22,
16,
8227,
1431,
619,
23,
16,
1431,
677,
23,
13,
225,
288,
565,
3387,
1225,
12,
1615... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
918,
8882,
774,
12,
5659,
619,
21,
16,
1431,
677,
21,
16,
1431,
619,
22,
16,
1431,
677,
22,
16,
8227,
1431,
619,
23,
16,
1431,
677,
23,
13,
225,
288,
565,
3387,
1225,
12,
1615... |
super(workbenchPage.getWorkbenchWindow().getShell()); setShellStyle( SWT.RESIZE | getDefaultOrientation()); | public DetachedWindow(WorkbenchPage workbenchPage) { super(workbenchPage.getWorkbenchWindow().getShell()); setShellStyle( //SWT.CLOSE | SWT.MIN | SWT.MAX | SWT.RESIZE | getDefaultOrientation()); this.page = workbenchPage; folder = new ViewStack(page, false, PresentationFactoryUtil.ROLE_VIEW); } | 55805 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/55805/e7b65bd7eaa667e716c4b78400bfcf61d65827b6/DetachedWindow.java/clean/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/DetachedWindow.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
8083,
2004,
3829,
12,
2421,
22144,
1964,
1440,
22144,
1964,
13,
288,
3639,
2240,
12,
1252,
22144,
1964,
18,
588,
2421,
22144,
3829,
7675,
588,
13220,
10663,
3639,
444,
13220,
2885,
12... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
8083,
2004,
3829,
12,
2421,
22144,
1964,
1440,
22144,
1964,
13,
288,
3639,
2240,
12,
1252,
22144,
1964,
18,
588,
2421,
22144,
3829,
7675,
588,
13220,
10663,
3639,
444,
13220,
2885,
12... | |
if (vt.parent != null) { | if (vt.parent != null) { | static long computeStructuralUID(ValueType vt) { Class c = vt._class; ObjectStreamClass osc = vt._objectStreamClass; ByteArrayOutputStream devnull = new ByteArrayOutputStream(512); long h = 0; try { if (!java.io.Serializable.class.isAssignableFrom(c) || c.isInterface()) { return 0; } if (java.io.Externalizable.class.isAssignableFrom(c)) { return 1; } MessageDigest md = MessageDigest.getInstance("SHA"); DigestOutputStream mdo = new DigestOutputStream(devnull, md); DataOutputStream data = new DataOutputStream(mdo); if (vt.parent != null) { data.writeLong(computeStructuralUID(vt.parent)); } if (vt.hasWriteObject) { data.writeInt(2); } else { data.writeInt(1); } List fieldList = new ArrayList(vt.fields.length); for (int i = 0; i < vt.fields.length; i++) { fieldList.add(vt.fields[i].javaField); } Field[] fields = (Field[]) fieldList.toArray(new Field[fieldList.size()]); Arrays.sort(fields, FieldByNameComparator.SINGLETON); for (int i = 0; i < vt.fields.length; i++) { Field f = fields[i]; data.writeUTF(f.getName()); data.writeUTF(JavaClass.getSignature(f.getType())); } data.flush(); byte[] hasharray = md.digest(); for (int i = 0; i < Math.min(8, hasharray.length); i++) { h += (long) (hasharray[i] & 255) << (i * 8); } return h; } catch (Exception ex) { throw new SystemException(ex); } } | 12474 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12474/9d2c39c906c6955e17daf4ac239b85d4727ddc83/ValueType.java/buggy/modules/interop/src/java/org/apache/geronimo/interop/rmi/iiop/ValueType.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
760,
1525,
3671,
14372,
3060,
12,
17930,
7966,
13,
288,
3639,
1659,
276,
273,
7966,
6315,
1106,
31,
3639,
1033,
1228,
797,
31476,
273,
7966,
6315,
1612,
1228,
797,
31,
3639,
11559,
4461,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
760,
1525,
3671,
14372,
3060,
12,
17930,
7966,
13,
288,
3639,
1659,
276,
273,
7966,
6315,
1106,
31,
3639,
1033,
1228,
797,
31476,
273,
7966,
6315,
1612,
1228,
797,
31,
3639,
11559,
4461,
... |
assertEquals(".java.txt display filename", name, _sdModel.getDisplayFilename(doc)); | assertEquals(".java.txt display filename", name, _sdModel.getDisplayFileName(doc)); | public void testDisplayFilename() throws IOException, OperationCanceledException, AlreadyOpenException { // Untitled OpenDefinitionsDocument doc = _sdModel.getActiveDocument(); assertEquals("untitled display filename", "(Untitled)", _sdModel.getDisplayFilename(doc)); // Ends in ".java" File file = File.createTempFile("DrJava-filename-test", ".java", _tempDir).getCanonicalFile(); file.deleteOnExit(); String name = file.getName(); doc = _sdModel.openFile(new FileSelector(file)); assertEquals(".java display filename", name.substring(0, name.length()-5), _sdModel.getDisplayFilename(doc)); // Doesn't contain ".java" file = File.createTempFile("DrJava-filename-test", ".txt", _tempDir).getCanonicalFile(); file.deleteOnExit(); name = file.getName(); doc = _sdModel.openFile(new FileSelector(file)); assertEquals(".txt display filename", name, _sdModel.getDisplayFilename(doc)); // Doesn't end in ".java" file = File.createTempFile("DrJava-filename-test", ".java.txt", _tempDir).getCanonicalFile(); file.deleteOnExit(); name = file.getName(); doc = _sdModel.openFile(new FileSelector(file)); assertEquals(".java.txt display filename", name, _sdModel.getDisplayFilename(doc));// _log.log("testDisplayFilename completed"); } | 11192 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/11192/838397e908a24e107f724695c1466c1c498ec946/SingleDisplayModelTest.java/clean/drjava/src/edu/rice/cs/drjava/model/SingleDisplayModelTest.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
918,
1842,
4236,
5359,
1435,
1216,
1860,
16,
4189,
23163,
503,
16,
17009,
3678,
503,
288,
565,
368,
23931,
305,
1259,
565,
3502,
7130,
2519,
997,
273,
389,
6427,
1488,
18,
588,
3896... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
918,
1842,
4236,
5359,
1435,
1216,
1860,
16,
4189,
23163,
503,
16,
17009,
3678,
503,
288,
565,
368,
23931,
305,
1259,
565,
3502,
7130,
2519,
997,
273,
389,
6427,
1488,
18,
588,
3896... |
if (cx.isGeneratingDebug()) { | if (!cx.isGeneratingDebugChanged() || cx.isGeneratingDebug()) { | private void generatePrologue(Context cx, Node tree, boolean inFunction, int directParameterCount) { funObjLocal = reserveWordLocal(0); contextLocal = reserveWordLocal(1); variableObjectLocal = reserveWordLocal(2); thisObjLocal = reserveWordLocal(3); if (inFunction && !cx.hasCompileFunctionsWithDynamicScope() && directParameterCount == -1) { // Unless we're either using dynamic scope or we're in a // direct call, use the enclosing scope of the function as our // variable object. aload(funObjLocal); classFile.add(ByteCode.INVOKEINTERFACE, "org/mozilla/javascript/Scriptable", "getParentScope", "()", "Lorg/mozilla/javascript/Scriptable;"); astore(variableObjectLocal); } if (directParameterCount > 0) { for (int i = 0; i < (3 * directParameterCount); i++) reserveWordLocal(i + 4); // reserve 'args' } // reserve 'args[]' argsLocal = reserveWordLocal(directParameterCount <= 0 ? 4 : (3 * directParameterCount) + 4); // These locals are to be pre-allocated since they need function scope. // They are primarily used by the exception handling mechanism Integer localCount = (Integer)(tree.getProp(Node.LOCALCOUNT_PROP)); if (localCount != null) { itsLocalAllocationBase = (short)(argsLocal + 1); for (int i = 0; i < localCount.intValue(); i++) { reserveWordLocal(itsLocalAllocationBase + i); } } hasVarsInRegs = inFunction && !((OptFunctionNode)tree).requiresActivation(); if (hasVarsInRegs) { // No need to create activation. Pad arguments if need be. int parmCount = vars.getParameterCount(); if (inFunction && parmCount > 0 && directParameterCount < 0) { // Set up args array // check length of arguments, pad if need be aload(argsLocal); addByteCode(ByteCode.ARRAYLENGTH); push(parmCount); int label = acquireLabel(); addByteCode(ByteCode.IF_ICMPGE, label); aload(argsLocal); push(parmCount); addScriptRuntimeInvoke("padArguments", "([Ljava/lang/Object;I)", "[Ljava/lang/Object;"); astore(argsLocal); markLabel(label); } // REMIND - only need to initialize the vars that don't get a value // before the next call and are used in the function short firstUndefVar = -1; for (int i = 0; i < vars.size(); i++) { OptLocalVariable lVar = (OptLocalVariable) vars.getVariable(i); if (lVar.isNumber()) { lVar.assignJRegister(getNewWordPairLocal()); push(0.0); dstore(lVar.getJRegister()); } else if (lVar.isParameter()) { if (directParameterCount < 0) { lVar.assignJRegister(getNewWordLocal()); aload(argsLocal); push(i); addByteCode(ByteCode.AALOAD); astore(lVar.getJRegister()); } } else { lVar.assignJRegister(getNewWordLocal()); if (firstUndefVar == -1) { pushUndefined(); firstUndefVar = lVar.getJRegister(); } else { aload(firstUndefVar); } astore(lVar.getJRegister()); } lVar.setStartPC(classFile.getCurrentCodeOffset()); } // Indicate that we should generate debug information for // the variable table. (If we're generating debug info at // all.) debugVars = vars; // Skip creating activation object. return; } if (directParameterCount > 0) { // We're going to create an activation object, so we // need to get an args array with all the arguments in it. aload(argsLocal); push(directParameterCount); addOptRuntimeInvoke("padStart", "([Ljava/lang/Object;I)", "[Ljava/lang/Object;"); astore(argsLocal); for (int i=0; i < directParameterCount; i++) { aload(argsLocal); push(i); // "3" is 1 for Object parm and 2 for double parm, and // "4" is to account for the context, etc. parms aload((short) (3*i+4)); addByteCode(ByteCode.AASTORE); } } String debugVariableName; if (inFunction) { aload(contextLocal); aload(variableObjectLocal); aload(funObjLocal); aload(thisObjLocal); aload(argsLocal); addScriptRuntimeInvoke("initVarObj", "(Lorg/mozilla/javascript/Context;" + "Lorg/mozilla/javascript/Scriptable;" + "Lorg/mozilla/javascript/NativeFunction;" + "Lorg/mozilla/javascript/Scriptable;" + "[Ljava/lang/Object;)", "Lorg/mozilla/javascript/Scriptable;"); debugVariableName = "activation"; } else { aload(contextLocal); aload(variableObjectLocal); aload(funObjLocal); aload(thisObjLocal); push(0); addScriptRuntimeInvoke("initScript", "(Lorg/mozilla/javascript/Context;" + "Lorg/mozilla/javascript/Scriptable;" + "Lorg/mozilla/javascript/NativeFunction;" + "Lorg/mozilla/javascript/Scriptable;Z)", "Lorg/mozilla/javascript/Scriptable;"); debugVariableName = "global"; } astore(variableObjectLocal); Vector fns = (Vector) tree.getProp(Node.FUNCTION_PROP); if (inFunction && fns != null) { for (int i=0; i < fns.size(); i++) { FunctionNode fn = (FunctionNode) fns.elementAt(i); if (fn.getFunctionType() == FunctionNode.FUNCTION_STATEMENT) { visitFunction(fn, true); } } } if (cx.isGeneratingDebug()) { debugVars = new OptVariableTable(); debugVars.addLocal(debugVariableName); OptLocalVariable lv = (OptLocalVariable) debugVars.getVariable(debugVariableName); lv.assignJRegister(variableObjectLocal); lv.setStartPC(classFile.getCurrentCodeOffset()); } if (!inFunction) { // OPT: use dataflow to prove that this assignment is dead scriptResultLocal = getNewWordLocal(); pushUndefined(); astore(scriptResultLocal); } if (inFunction && ((OptFunctionNode)tree).containsCalls(-1)) { if (((OptFunctionNode)tree).containsCalls(0)) { itsZeroArgArray = getNewWordLocal(); classFile.add(ByteCode.GETSTATIC, "org/mozilla/javascript/ScriptRuntime", "emptyArgs", "[Ljava/lang/Object;"); astore(itsZeroArgArray); } if (((OptFunctionNode)tree).containsCalls(1)) { itsOneArgArray = getNewWordLocal(); push(1); addByteCode(ByteCode.ANEWARRAY, "java/lang/Object"); astore(itsOneArgArray); } } } | 11366 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/11366/5425d1691bf0027c3411689a78202b7f4d1cc124/Codegen.java/clean/js/rhino/org/mozilla/javascript/optimizer/Codegen.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
2103,
626,
1330,
344,
12,
1042,
9494,
16,
2029,
2151,
16,
1250,
316,
2083,
16,
21394,
509,
2657,
1662,
1380,
13,
565,
288,
3639,
9831,
2675,
2042,
273,
20501,
3944,
2042,
12,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
2103,
626,
1330,
344,
12,
1042,
9494,
16,
2029,
2151,
16,
1250,
316,
2083,
16,
21394,
509,
2657,
1662,
1380,
13,
565,
288,
3639,
9831,
2675,
2042,
273,
20501,
3944,
2042,
12,
... |
public void perform() { checkForUnsavedProjectOnClose(); JInternalFrame[] frames = DesktopPane.getAllFrames(); try { for(int i = 0; i < frames.length; ++i) { frames[i].setClosed(true); } commitAction.perform(); operatorDesktopSplit.setLeftComponent(null); projectActionsEnable(false); } catch (java.beans.PropertyVetoException pve) {} setTitle("VisualSoar"); }//perform() | 47007 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47007/1b1fc0d1cd3e331f011554311af91290afd09142/MainFrame.java/buggy/OldSoar/trunk/visualsoar/Source/edu/umich/visualsoar/MainFrame.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
3196,
202,
482,
6459,
16092,
1435,
95,
1893,
1290,
984,
14077,
4109,
1398,
4605,
5621,
1082,
202,
46,
3061,
3219,
8526,
10278,
33,
27583,
8485,
18,
588,
1595,
15162,
5621,
1082,
202,
698,
95,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
3196,
202,
482,
6459,
16092,
1435,
95,
1893,
1290,
984,
14077,
4109,
1398,
4605,
5621,
1082,
202,
46,
3061,
3219,
8526,
10278,
33,
27583,
8485,
18,
588,
1595,
15162,
5621,
1082,
202,
698,
95,
... | ||
private Tree singleType(int pos, Type pre, Symbol sym) { | private Tree singleType(int pos, Type.SingleType tp) { | private Tree singleType(int pos, Type pre, Symbol sym) { Tree constr = gen.mkPrimaryConstructorGlobalRef(pos, defs.SINGLETYPE_CLASS); Tree[] args = new Tree[] { gen.mkRef(pos, pre, sym) }; return gen.New(pos, gen.mkApply_V(constr, args)); } | 9617 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/9617/ac4fb5c64af5080d7b583dcf3ebe7a069b1fe47c/TypesAsValuesPhase.java/buggy/sources/scalac/transformer/TypesAsValuesPhase.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
540,
3238,
4902,
2202,
559,
12,
474,
949,
16,
1412,
18,
5281,
559,
8071,
13,
288,
5411,
4902,
14472,
273,
7734,
3157,
18,
24816,
6793,
6293,
5160,
1957,
12,
917,
16,
17588,
18,
20184,
2399,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
540,
3238,
4902,
2202,
559,
12,
474,
949,
16,
1412,
18,
5281,
559,
8071,
13,
288,
5411,
4902,
14472,
273,
7734,
3157,
18,
24816,
6793,
6293,
5160,
1957,
12,
917,
16,
17588,
18,
20184,
2399,
... |
public void decode(EncodedAcl acl, boolean getPrivileges) throws AccessException { decodeWhoType(acl); decodeHow(acl, getPrivileges); | public boolean decode(EncodedAcl acl, boolean getPrivileges, String name, int whoType) throws AccessException { acl.rewind(); while (acl.hasMore()) { decodeWhoType(acl); if ((whoType != getWhoType()) || !whoMatch(name)) { skipHow(acl); } else { decodeHow(acl, getPrivileges); return true; } } return false; | public void decode(EncodedAcl acl, boolean getPrivileges) throws AccessException { decodeWhoType(acl); decodeHow(acl, getPrivileges); } | 50848 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50848/1324aec393994f1f212ff989362372d7c3fae7a0/Ace.java/buggy/calendar3/access/src/edu/rpi/cct/uwcal/access/Ace.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
918,
2495,
12,
10397,
13538,
7895,
16,
5397,
1250,
8248,
8203,
2852,
13,
1216,
5016,
503,
288,
565,
2495,
2888,
83,
559,
12,
10150,
1769,
565,
2495,
44,
543,
12,
10150,
16,
8248,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
918,
2495,
12,
10397,
13538,
7895,
16,
5397,
1250,
8248,
8203,
2852,
13,
1216,
5016,
503,
288,
565,
2495,
2888,
83,
559,
12,
10150,
1769,
565,
2495,
44,
543,
12,
10150,
16,
8248,
... |
IASTTranslationUnit tu = parse( "void f(int par) { int v1; };", ParserLanguage.C ); | IASTTranslationUnit tu = parse( "void f(int par) { int v1; };", ParserLanguage.C); | public void testBug90253() throws Exception { IASTTranslationUnit tu = parse( "void f(int par) { int v1; };", ParserLanguage.C ); //$NON-NLS-1$ CNameCollector col = new CNameCollector(); tu.accept( col ); IFunction f = (IFunction) col.getName(0).resolveBinding(); IParameter p = (IParameter) col.getName(1).resolveBinding(); IVariable v1 = (IVariable) col.getName(2).resolveBinding(); IScope scope = f.getFunctionScope(); IBinding [] bs = scope.find( "par" ); //$NON-NLS-1$ assertEquals( bs.length, 1 ); assertSame( bs[0], p ); bs = scope.find( "v1" ); //$NON-NLS-1$ assertEquals( bs.length, 1 ); assertSame( bs[0], v1 ); } | 6192 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6192/78f1bf90544259bc8541128f8a50137b3f49f862/AST2Tests.java/buggy/core/org.eclipse.cdt.core.tests/parser/org/eclipse/cdt/core/parser/tests/ast2/AST2Tests.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1842,
19865,
9349,
30304,
1435,
1216,
1185,
288,
3639,
467,
9053,
6717,
2802,
28325,
273,
1109,
12,
315,
6459,
284,
12,
474,
779,
13,
288,
509,
331,
21,
31,
289,
31,
3113,
67... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1842,
19865,
9349,
30304,
1435,
1216,
1185,
288,
3639,
467,
9053,
6717,
2802,
28325,
273,
1109,
12,
315,
6459,
284,
12,
474,
779,
13,
288,
509,
331,
21,
31,
289,
31,
3113,
67... |
context.getDataEngine().prepare(report); | context.getDataEngine( ).prepare( report ); | public void execute( Report report, HashMap paramValues ) throws Exception { context.setReport( report ); // Exceute scripts defined in included libraries. For each library, executes // first the included scripts, then the initialize method. // The current release does not supported externally included library files // handle global libraries in the future // execute scripts defined in include-script element of this report // Parameters are not available at this stage Iterator iter = report.getIncludeScripts().iterator(); while (iter.hasNext()) { String fileName= (String)iter.next(); context.loadScript(fileName); } // DE needs to support getInitialize() method // context.execute(report.getInitialize()); // call methods associated with report context.execute(report.getBeforeFactory()); // beforeRender is not supported for now // Set up report parameters setParameters( paramValues ); // Prepare necessary data for this report context.getDataEngine().prepare(report); // Report documents are not supported for now // context.execute(report.getBeforeOpenDoc()); emitter.startReport( report ); // report documents are not supported for now // context.execute(report.getAfterOpenDoc()); // process page set up information handlePageSetup(report); context.pushMasterPage( context.getDefaultMasterPage( ) ); context.pushMasterPage( null ); // process the report body emitter.startBody( ); //assert ( report.getContentCount( ) >= 1 ); // only top-level elements maybe have the master page reference for now for ( int i = 0; i < report.getContentCount( ); i++ ) { builder.startPageFlow( report.getContent( i ).getStyle( ) .getMasterPage( ) ); report.getContent( i ).accept( builder ); builder.endPageFlow( ); } //USED TO FIX BUG 74548 //FIXME: update the master page handle routines. if (report.getContentCount() > 0) { emitter.getPageSetupEmitter( ).endBody( ); } emitter.endBody( ); context.popMasterPage( ); context.popMasterPage( ); // Report document is not supported // context.execute(report.getBeforeCloseDoc()); emitter.endReport( ); // close eport document // Report document is not supported // context.execute(report.getAfterCloseDoc()); //call afterFactory method of the report context.execute(report.getAfterFactory()); context.getDataEngine().shutdown(); } | 46013 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46013/f5a9bea2073cca10b0308809092763f54b6c3f16/ReportExecutor.java/buggy/engine/org.eclipse.birt.report.engine/src/org/eclipse/birt/report/engine/executor/ReportExecutor.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
1836,
12,
8706,
2605,
16,
4317,
579,
1972,
262,
1216,
1185,
202,
95,
202,
202,
2472,
18,
542,
4820,
12,
2605,
11272,
202,
202,
759,
1312,
311,
624,
8873,
2553,
316,
5849,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
1836,
12,
8706,
2605,
16,
4317,
579,
1972,
262,
1216,
1185,
202,
95,
202,
202,
2472,
18,
542,
4820,
12,
2605,
11272,
202,
202,
759,
1312,
311,
624,
8873,
2553,
316,
5849,... |
public Vector generateRows(Object settings) { return LogJPanel.this.generateRows(null); } | public Vector generateRows(Object settings){ List<VirusLog> logList = (List<VirusLog>) settings; Vector allEvents = new Vector(); Vector event = null; for( VirusLog log : logList ){ event = new Vector(7); event.add( log.getCreateDate() ); event.add( log.getAction() ); event.add( log.getClientAddr() + ":" + ((Integer)log.getClientPort()).toString() ); event.add( log.getTraffic() ); event.add( log.getReason() ); event.add( log.getDirection().getDirectionName() ); event.add( log.getServerAddr() + ":" + ((Integer)log.getServerPort()).toString() ); allEvents.insertElementAt(event,0); } return allEvents; } | public Vector generateRows(Object settings) { return LogJPanel.this.generateRows(null); } | 49954 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49954/e959c8f03b9b502d36e0190089207bc9abd8947b/LogJPanel.java/buggy/tran/virus/main/com/metavize/tran/virus/gui/LogJPanel.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
5589,
2103,
4300,
12,
921,
1947,
13,
288,
3639,
327,
1827,
46,
5537,
18,
2211,
18,
7163,
4300,
12,
2011,
1769,
565,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
5589,
2103,
4300,
12,
921,
1947,
13,
288,
3639,
327,
1827,
46,
5537,
18,
2211,
18,
7163,
4300,
12,
2011,
1769,
565,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
else { int x = c.getX(); int y = c.getY(); int cWidth = c.getWidth(); int cHeight = c.getHeight(); Dimension screenSize = getToolkit().getScreenSize(); if ((y + cHeight) > screenSize.height) { if ((screenSize.width / 2 - x) <= 0) { if ((x - width) >= 0) x -= width; else x = 0; } else { if ((x + cWidth + width) <= screenSize.width) x += cWidth; else x = screenSize.width - width; } y = screenSize.height - height; } else if (cWidth > width || cHeight > height) { if ((x + width) > screenSize.width) x = screenSize.width - width; else if (x < 0) x = 0; else x += (cWidth - width) / 2; y += (cHeight - height) / 2; } else { if ((x + width) > screenSize.width) x = screenSize.width - width; else if (x < 0) x = 0; else x -= (width - cWidth) / 2; y -= (height - cHeight) / 2; } setLocation(x, y); } | public void setLocationRelativeTo (Component c) { if (c == null || !c.isShowing ()) { int x = 0; int y = 0; GraphicsEnvironment ge = GraphicsEnvironment.getLocalGraphicsEnvironment (); Point center = ge.getCenterPoint (); x = center.x - (width / 2); y = center.y - (height / 2); setLocation (x, y); } // FIXME: handle case where component is non-null. } | 50763 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50763/bd498c30e250a0c0f87a82da5c5dbb94748e518a/Window.java/buggy/core/src/classpath/java/java/awt/Window.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
469,
288,
509,
619,
273,
276,
18,
588,
60,
5621,
509,
677,
273,
276,
18,
588,
61,
5621,
225,
509,
276,
2384,
273,
276,
18,
588,
2384,
5621,
509,
276,
2686,
273,
276,
18,
588,
2686,
5621,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
469,
288,
509,
619,
273,
276,
18,
588,
60,
5621,
509,
677,
273,
276,
18,
588,
61,
5621,
225,
509,
276,
2384,
273,
276,
18,
588,
2384,
5621,
509,
276,
2686,
273,
276,
18,
588,
2686,
5621,
... | |
initInternal(); initDebug(); initApplication(); try { initMapping(); } catch (IOException e) { throw new UnavailableException (internal.getMessage("configIO", config)); } | initInternal(); initDebug(); initApplication(); try { initMapping(); } catch (IOException e) { throw new UnavailableException (internal.getMessage("configIO", config)); } | public void init() throws ServletException { initActions(); initInternal(); initDebug(); initApplication(); try { initMapping(); } catch (IOException e) { throw new UnavailableException (internal.getMessage("configIO", config)); } initUpload(); initDataSources(); initOther(); initServlet(); } | 48068 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/48068/893cf1f05ff2aed2f868307f45763b5b3bc5a257/ActionServlet.java/buggy/src/share/org/apache/struts/action/ActionServlet.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1208,
1435,
1216,
16517,
288,
3639,
1208,
6100,
5621,
202,
2738,
3061,
5621,
202,
2738,
2829,
5621,
202,
2738,
3208,
5621,
202,
698,
288,
202,
565,
1208,
3233,
5621,
202,
97,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1208,
1435,
1216,
16517,
288,
3639,
1208,
6100,
5621,
202,
2738,
3061,
5621,
202,
2738,
2829,
5621,
202,
2738,
3208,
5621,
202,
698,
288,
202,
565,
1208,
3233,
5621,
202,
97,
1... |
public void testBasicInstall() throws Exception { File testPom = new File( getBasedir(), "target/test-classes/unit/basic-install-test/plugin-config.xml" ); InstallMojo mojo = ( InstallMojo ) lookupMojo( "install", testPom ); assertNotNull( mojo ); File file = new File( getBasedir(), "target/test-classes/unit/basic-install-test/target/" + "maven-install-test-1.0-SNAPSHOT.jar" ); artifact = ( InstallArtifactStub ) getVariableValueFromObject( mojo, "artifact" ); artifact.setFile( file ); mojo.execute(); String groupId = dotToSlashReplacer( artifact.getGroupId() ); String packaging = getVariableValueFromObject( mojo, "packaging" ).toString(); File installedArtifact = new File( LOCAL_REPO + groupId + "/" + artifact.getArtifactId() + "/" + artifact.getVersion() + "/" + artifact.getArtifactId() + "-" + artifact.getVersion() + "." + packaging ); assertTrue( installedArtifact.exists() ); } | 7444 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7444/8418bae8a2e2b5d810a6bbd594f440caf6afbfad/InstallMojoTest.java/clean/maven-install-plugin/src/test/java/org/apache/maven/plugin/install/InstallMojoTest.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
565,
1071,
918,
1842,
8252,
6410,
1435,
4202,
1216,
1185,
282,
288,
4202,
1387,
1842,
52,
362,
273,
394,
1387,
12,
8297,
1214,
9334,
4766,
315,
3299,
19,
3813,
17,
4701,
19,
4873,
19,
13240,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
565,
1071,
918,
1842,
8252,
6410,
1435,
4202,
1216,
1185,
282,
288,
4202,
1387,
1842,
52,
362,
273,
394,
1387,
12,
8297,
1214,
9334,
4766,
315,
3299,
19,
3813,
17,
4701,
19,
4873,
19,
13240,
... | ||
for (int i = 0; i < parameters.length; i++) { final PsiType paramType = parameters[i].getType(); | for(PsiParameter parameter : parameters){ final PsiType paramType = parameter.getType(); | private void addDependenciesForParameters(PsiMethod method) { final PsiParameterList parameterList = method.getParameterList(); final PsiParameter[] parameters = parameterList.getParameters(); for (int i = 0; i < parameters.length; i++) { final PsiType paramType = parameters[i].getType(); addDependency(paramType); } } | 56627 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56627/2d46d291193579a7564649b4881c7ea8e02eda5b/CouplingVisitor.java/clean/plugins/InspectionGadgets/src/com/siyeh/ig/classmetrics/CouplingVisitor.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
527,
8053,
1290,
2402,
12,
52,
7722,
1305,
707,
13,
288,
3639,
727,
453,
7722,
1662,
682,
1569,
682,
273,
707,
18,
588,
1662,
682,
5621,
3639,
727,
453,
7722,
1662,
8526,
147... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
527,
8053,
1290,
2402,
12,
52,
7722,
1305,
707,
13,
288,
3639,
727,
453,
7722,
1662,
682,
1569,
682,
273,
707,
18,
588,
1662,
682,
5621,
3639,
727,
453,
7722,
1662,
8526,
147... |
} else { repos = new RepositoryFinder(project) .find(new SubProgressMonitor(m, 20)); | catch (Throwable err) { throw Activator.error( CoreText.ConnectProviderOperation_creating, err); } } else { Activator.trace("Finding existing repositories."); repos.addAll(new RepositoryFinder(project) .find(new SubProgressMonitor(m, 20))); | public void run(IProgressMonitor m) throws CoreException { if (m == null) { m = new NullProgressMonitor(); } m.beginTask(CoreText.ConnectProviderOperation_connecting, 100); try { final Map repos; if (createRepository) { try { final FullRepository db; m.subTask(CoreText.ConnectProviderOperation_creating); GitCorePlugin.traceVerbose("Creating new GIT repository: " + newGitDir); db = new FullRepository(newGitDir); db.create(); db.close(); // If we don't refresh the project directory right now we // won't later know that a .git directory exists within it // and we won't mark the .git directory as a team-private // member. Failure to do so might allow someone to delete // the .git directory without us stopping them. // project.refreshLocal(IResource.DEPTH_ONE, new SubProgressMonitor(m, 10)); repos = new HashMap(); repos.put(project, newGitDir); m.worked(10); } catch (Throwable err) { throw new CoreException(new Status(IStatus.ERROR, GitCorePlugin.getPluginId(), 1, err.getMessage(), err)); } } else { repos = new RepositoryFinder(project) .find(new SubProgressMonitor(m, 20)); } m.subTask(CoreText.ConnectProviderOperation_recordingMapping); GitProjectData projectData = new GitProjectData(); try { projectData.setProject(project); projectData.setRepositoryMappings(repos); projectData.save(); } catch (IOException err) { throw new CoreException(new Status(IStatus.ERROR, GitCorePlugin .getPluginId(), 1, err.getMessage(), err)); } projectData.markTeamPrivateResources(); project.refreshLocal(IResource.DEPTH_INFINITE, new SubProgressMonitor(m, 75)); RepositoryProvider.map(project, GitProvider.class.getName()); } finally { m.done(); } } | 45532 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45532/95e2adba28c9a11f01009dd846fb7366bec613c5/ConnectProviderOperation.java/clean/org.spearce.egit.core/src/org/spearce/egit/core/op/ConnectProviderOperation.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1086,
12,
45,
5491,
7187,
312,
13,
1216,
30015,
288,
3639,
309,
261,
81,
422,
446,
13,
288,
5411,
312,
273,
394,
4112,
5491,
7187,
5621,
3639,
289,
3639,
312,
18,
10086,
2174... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1086,
12,
45,
5491,
7187,
312,
13,
1216,
30015,
288,
3639,
309,
261,
81,
422,
446,
13,
288,
5411,
312,
273,
394,
4112,
5491,
7187,
5621,
3639,
289,
3639,
312,
18,
10086,
2174... |
sessionHandle = DesignEngine.newSession( Locale.ENGLISH); | sessionHandle = DesignEngine.newSession( ULocale.ENGLISH); | public void testDuplicateLibrary( ) throws Exception { openDesign(fileName); LabelHandle labelHandle = (LabelHandle)designHandle.getElementFactory().newLabel("label1"); designHandle.getBody().add( labelHandle ); sessionHandle = DesignEngine.newSession( Locale.ENGLISH); libraryHandle = sessionHandle.createLibrary(); ElementExportUtil.exportElement( labelHandle, libraryHandle, false ); labelHandle.drop(); LabelHandle label2Handle = (LabelHandle)designHandle.getElementFactory().newLabel("label1"); designHandle.getBody().add( label2Handle ); try { ElementExportUtil.exportElement( label2Handle, libraryHandle, false ); } catch(Exception e) { assertNotNull(e); } } | 58644 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/58644/bc2117a51472c9631803fa1f26c58ab34da73d07/LibraryCreateTest.java/clean/plugins/org.eclipse.birt.report.tests.model/src/org/eclipse/birt/report/tests/model/api/LibraryCreateTest.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
1842,
11826,
9313,
12,
262,
1216,
1185,
202,
95,
202,
202,
3190,
15478,
12,
17812,
1769,
202,
202,
2224,
3259,
1433,
3259,
273,
261,
2224,
3259,
13,
16934,
3259,
18,
21336,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
1842,
11826,
9313,
12,
262,
1216,
1185,
202,
95,
202,
202,
3190,
15478,
12,
17812,
1769,
202,
202,
2224,
3259,
1433,
3259,
273,
261,
2224,
3259,
13,
16934,
3259,
18,
21336,... |
AST tmp2341_AST_in = (AST)_t; | AST tmp2340_AST_in = (AST)_t; | public final void radiosetphrase(AST _t) throws RecognitionException { AST radiosetphrase_AST_in = (_t == ASTNULL) ? null : (AST)_t; AST __t1816 = _t; AST tmp2329_AST_in = (AST)_t; match(_t,RADIOSET); _t = _t.getFirstChild(); { _loop1828: do { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case HORIZONTAL: { AST __t1818 = _t; AST tmp2330_AST_in = (AST)_t; match(_t,HORIZONTAL); _t = _t.getFirstChild(); { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case EXPAND: { AST tmp2331_AST_in = (AST)_t; match(_t,EXPAND); _t = _t.getNextSibling(); break; } case 3: { break; } default: { throw new NoViableAltException(_t); } } } _t = __t1818; _t = _t.getNextSibling(); break; } case VERTICAL: { AST tmp2332_AST_in = (AST)_t; match(_t,VERTICAL); _t = _t.getNextSibling(); break; } case SIZE: case SIZECHARS: case SIZEPIXELS: { { sizephrase(_t); _t = _retTree; } break; } case RADIOBUTTONS: { AST __t1821 = _t; AST tmp2333_AST_in = (AST)_t; match(_t,RADIOBUTTONS); _t = _t.getFirstChild(); { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case QSTRING: { AST tmp2334_AST_in = (AST)_t; match(_t,QSTRING); _t = _t.getNextSibling(); break; } case UNQUOTEDSTRING: { AST tmp2335_AST_in = (AST)_t; match(_t,UNQUOTEDSTRING); _t = _t.getNextSibling(); break; } default: { throw new NoViableAltException(_t); } } } AST tmp2336_AST_in = (AST)_t; match(_t,COMMA); _t = _t.getNextSibling(); { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case LEXDATE: case NUMBER: case QSTRING: case BIGENDIAN: case EXCLUSIVELOCK: case FALSE_KW: case FINDCASESENSITIVE: case FINDGLOBAL: case FINDNEXTOCCURRENCE: case FINDPREVOCCURRENCE: case FINDSELECT: case FINDWRAPAROUND: case HOSTBYTEORDER: case LITTLEENDIAN: case NO: case NOLOCK: case NOWAIT: case NULL_KW: case READAVAILABLE: case READEXACTNUM: case SEARCHSELF: case SEARCHTARGET: case SHARELOCK: case TRUE_KW: case WINDOWDELAYEDMINIMIZE: case WINDOWMAXIMIZED: case WINDOWMINIMIZED: case WINDOWNORMAL: case YES: case UNKNOWNVALUE: case FUNCTIONCALLTYPE: case GETATTRCALLTYPE: case PROCEDURECALLTYPE: case SAXCOMPLETE: case SAXPARSERERROR: case SAXRUNNING: case SAXUNINITIALIZED: case SETATTRCALLTYPE: case ROWUNMODIFIED: case ROWDELETED: case ROWMODIFIED: case ROWCREATED: { constant(_t); _t = _retTree; break; } case TODAY: { AST tmp2337_AST_in = (AST)_t; match(_t,TODAY); _t = _t.getNextSibling(); break; } default: { throw new NoViableAltException(_t); } } } { _loop1827: do { if (_t==null) _t=ASTNULL; if ((_t.getType()==COMMA)) { AST tmp2338_AST_in = (AST)_t; match(_t,COMMA); _t = _t.getNextSibling(); { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case QSTRING: { AST tmp2339_AST_in = (AST)_t; match(_t,QSTRING); _t = _t.getNextSibling(); break; } case UNQUOTEDSTRING: { AST tmp2340_AST_in = (AST)_t; match(_t,UNQUOTEDSTRING); _t = _t.getNextSibling(); break; } default: { throw new NoViableAltException(_t); } } } AST tmp2341_AST_in = (AST)_t; match(_t,COMMA); _t = _t.getNextSibling(); { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case LEXDATE: case NUMBER: case QSTRING: case BIGENDIAN: case EXCLUSIVELOCK: case FALSE_KW: case FINDCASESENSITIVE: case FINDGLOBAL: case FINDNEXTOCCURRENCE: case FINDPREVOCCURRENCE: case FINDSELECT: case FINDWRAPAROUND: case HOSTBYTEORDER: case LITTLEENDIAN: case NO: case NOLOCK: case NOWAIT: case NULL_KW: case READAVAILABLE: case READEXACTNUM: case SEARCHSELF: case SEARCHTARGET: case SHARELOCK: case TRUE_KW: case WINDOWDELAYEDMINIMIZE: case WINDOWMAXIMIZED: case WINDOWMINIMIZED: case WINDOWNORMAL: case YES: case UNKNOWNVALUE: case FUNCTIONCALLTYPE: case GETATTRCALLTYPE: case PROCEDURECALLTYPE: case SAXCOMPLETE: case SAXPARSERERROR: case SAXRUNNING: case SAXUNINITIALIZED: case SETATTRCALLTYPE: case ROWUNMODIFIED: case ROWDELETED: case ROWMODIFIED: case ROWCREATED: { constant(_t); _t = _retTree; break; } case TODAY: { AST tmp2342_AST_in = (AST)_t; match(_t,TODAY); _t = _t.getNextSibling(); break; } default: { throw new NoViableAltException(_t); } } } } else { break _loop1827; } } while (true); } _t = __t1821; _t = _t.getNextSibling(); break; } case TOOLTIP: { tooltip_expr(_t); _t = _retTree; break; } default: { break _loop1828; } } } while (true); } _t = __t1816; _t = _t.getNextSibling(); _retTree = _t; } | 13952 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/13952/041a16c78289f1c3ae5e575d3edc5e893a658e50/JPTreeParser.java/buggy/trunk/org.prorefactor.core/src/org/prorefactor/treeparserbase/JPTreeParser.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
727,
918,
12094,
538,
278,
9429,
12,
9053,
389,
88,
13,
1216,
9539,
288,
9506,
202,
9053,
12094,
538,
278,
9429,
67,
9053,
67,
267,
273,
261,
67,
88,
422,
9183,
8560,
13,
69... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
727,
918,
12094,
538,
278,
9429,
12,
9053,
389,
88,
13,
1216,
9539,
288,
9506,
202,
9053,
12094,
538,
278,
9429,
67,
9053,
67,
267,
273,
261,
67,
88,
422,
9183,
8560,
13,
69... |
profile.addEvalProperties( profileXmlProfile.getProperties() ); | profile.setProperties( profileXmlProfile.getProperties() ); | public static Profile convertFromProfileXmlProfile( org.apache.maven.profiles.Profile profileXmlProfile ) { Profile profile = new Profile(); profile.setSource( "profiles.xml" ); org.apache.maven.profiles.Activation profileActivation = profileXmlProfile.getActivation(); if ( profileActivation != null ) { Activation activation = new Activation(); activation.setJdk( profileActivation.getJdk() ); org.apache.maven.profiles.ActivationProperty profileProp = profileActivation.getProperty(); if ( profileProp != null ) { ActivationProperty prop = new ActivationProperty(); prop.setName( profileProp.getName() ); prop.setValue( profileProp.getValue() ); activation.setProperty( prop ); } profile.setActivation( activation ); } else { profile.setActivation( new AlwaysOnActivation() ); } profile.addEvalProperties( profileXmlProfile.getProperties() ); List repos = profileXmlProfile.getRepositories(); if ( repos != null ) { for ( Iterator it = repos.iterator(); it.hasNext(); ) { profile .addRepository( convertFromSettingsRepository( (org.apache.maven.settings.Repository) it.next() ) ); } } List pluginRepos = profileXmlProfile.getPluginRepositories(); if ( pluginRepos != null ) { for ( Iterator it = pluginRepos.iterator(); it.hasNext(); ) { profile.addPluginRepository( convertFromSettingsRepository( (org.apache.maven.settings.Repository) it .next() ) ); } } return profile; } | 47160 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47160/8a257be6fcf001140fac24fe02bfec429b5b1ce1/ModelNormalizationUtils.java/clean/maven-core/src/main/java/org/apache/maven/model/ModelNormalizationUtils.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
11357,
1765,
1265,
4029,
4432,
4029,
12,
2358,
18,
19211,
18,
81,
7638,
18,
18314,
18,
4029,
3042,
4432,
4029,
262,
565,
288,
3639,
11357,
3042,
273,
394,
11357,
5621,
7734,
30... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
11357,
1765,
1265,
4029,
4432,
4029,
12,
2358,
18,
19211,
18,
81,
7638,
18,
18314,
18,
4029,
3042,
4432,
4029,
262,
565,
288,
3639,
11357,
3042,
273,
394,
11357,
5621,
7734,
30... |
Mouse.poll(); | private static void mainLoop() { angle += 1f; if (angle > 360.0f) angle = 0.0f; Mouse.poll(); if (Mouse.getDX() != 0 || Mouse.getDY() != 0 || Mouse.getDWheel() != 0) System.out.println("Mouse moved " + Mouse.getDX() + " " + Mouse.getDY() + " " + Mouse.getDWheel()); for (int i = 0; i < Mouse.getButtonCount(); i++) if (Mouse.isButtonDown(i)) System.out.println("Button " + i + " down");/* Keyboard.poll(); if (Keyboard.isKeyDown(Keyboard.KEY_ESCAPE)) finished = true;*/ Keyboard.read(); for (int i = 0; i < Keyboard.getNumKeyboardEvents(); i++) { Keyboard.next(); if (Keyboard.getEventKey() == Keyboard.KEY_ESCAPE && Keyboard.getEventKeyState()) finished = true; if (Keyboard.getEventKey() == Keyboard.KEY_T && Keyboard.getEventKeyState()) System.out.println("Current time: " + Sys.getTime()); } } | 5076 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5076/afb8491cfa1301023ffc16f5a9cd2c3c4a5b70fa/VBOTest.java/clean/src/java/org/lwjgl/test/opengl/VBOTest.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1377,
3238,
760,
918,
2774,
6452,
1435,
288,
540,
5291,
1011,
404,
74,
31,
540,
309,
261,
4341,
405,
12360,
18,
20,
74,
13,
2398,
5291,
273,
374,
18,
20,
74,
31,
7734,
309,
261,
9186,
18,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1377,
3238,
760,
918,
2774,
6452,
1435,
288,
540,
5291,
1011,
404,
74,
31,
540,
309,
261,
4341,
405,
12360,
18,
20,
74,
13,
2398,
5291,
273,
374,
18,
20,
74,
31,
7734,
309,
261,
9186,
18,
... | |
Template template = templateEngine.createTemplate(new File("src/grails/templates/grails-app/views/scaffolding/java.lang.Boolean.template")); | Template template = templateEngine.createTemplate(new File("src/grails/templates/grails-app/views/scaffolding/java.lang.Boolean.gsp")); | public void testBooleanTemplate() throws Exception { SimpleTemplateEngine templateEngine = new SimpleTemplateEngine(); Template template = templateEngine.createTemplate(new File("src/grails/templates/grails-app/views/scaffolding/java.lang.Boolean.template")); Map binding = new HashMap(); binding.put("name", "testBoolean"); binding.put("value", new Boolean(true)); binding.put("constraints", null); Document xml = DocumentHelper.parseText(template.make(binding).toString()); assertEquals("input",xml.getRootElement().getName()); assertEquals("checkbox",xml.getRootElement().attributeValue("type")); assertEquals("testBoolean",xml.getRootElement().attributeValue("name")); assertEquals("true",xml.getRootElement().attributeValue("value")); assertEquals("checked",xml.getRootElement().attributeValue("checked")); binding.put("value", new Boolean(false)); xml = DocumentHelper.parseText(template.make(binding).toString()); assertEquals("input",xml.getRootElement().getName()); assertEquals("checkbox",xml.getRootElement().attributeValue("type")); assertEquals("testBoolean",xml.getRootElement().attributeValue("name")); assertEquals("false",xml.getRootElement().attributeValue("value")); assertEquals(null,xml.getRootElement().attributeValue("checked")); } | 46315 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46315/170cbca8dc5aff32646511808fc9564a95ef1465/ScaffoldTemplateTests.java/buggy/grails/test/scaffolding/org/codehaus/groovy/grails/scaffolding/ScaffoldTemplateTests.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1842,
5507,
2283,
1435,
1216,
1185,
288,
3639,
4477,
2283,
4410,
1542,
4410,
273,
394,
4477,
2283,
4410,
5621,
3639,
5035,
1542,
273,
1542,
4410,
18,
2640,
2283,
12,
2704,
1387,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1842,
5507,
2283,
1435,
1216,
1185,
288,
3639,
4477,
2283,
4410,
1542,
4410,
273,
394,
4477,
2283,
4410,
5621,
3639,
5035,
1542,
273,
1542,
4410,
18,
2640,
2283,
12,
2704,
1387,
... |
instanceData.clearValidationErrors(); | instanceData.clearComputedExpressionBinds(); } }); } applyBinds(new BindRunner() { public void applyBind(ModelBind modelBind, DocumentWrapper documentWrapper) { handleCalculateBind(pipelineContext, modelBind, documentWrapper, this); } }); applyComputedExpressionBinds(pipelineContext); if (xformsRecalculateEvent.isSendEvents() && xformsContainingDocument.getXFormsControls() != null) { final XFormsControls xformsControls = xformsContainingDocument.getXFormsControls(); for (Iterator i = instances.iterator(); i.hasNext();) { XFormsUtils.updateInstanceData(((XFormsInstance) i.next()).getDocument(), new XFormsUtils.InstanceWalker() { public void walk(Node node, InstanceData instanceData) { { final boolean previousRequiredState = instanceData.getPreviousRequiredState(); final boolean newRequiredState = instanceData.getRequired().get(); if (previousRequiredState && !newRequiredState) { xformsControls.dispatchEvent(pipelineContext, new XFormsOptionalEvent(node)); } else if (!previousRequiredState && newRequiredState) { xformsControls.dispatchEvent(pipelineContext, new XFormsRequiredEvent(node)); } } { final boolean previousRelevantState = instanceData.getPreviousRelevantState(); final boolean newRelevantState = instanceData.getRelevant().get(); if (previousRelevantState && !newRelevantState) { xformsControls.dispatchEvent(pipelineContext, new XFormsDisabledEvent(node)); } else if (!previousRelevantState && newRelevantState) { xformsControls.dispatchEvent(pipelineContext, new XFormsEnabledEvent(node)); } } { final boolean previousReadonlyState = instanceData.getPreviousReadonlyState(); final boolean newReadonlyState = instanceData.getReadonly().get(); if (previousReadonlyState && !newReadonlyState) { xformsControls.dispatchEvent(pipelineContext, new XFormsReadwriteEvent(node)); } else if (!previousReadonlyState && newReadonlyState) { xformsControls.dispatchEvent(pipelineContext, new XFormsReadonlyEvent(node)); } } } }); } } } else if (XFormsEvents.XFORMS_REVALIDATE.equals(eventName)) { final XFormsRevalidateEvent xformsRevalidateEvent = (XFormsRevalidateEvent) xformsEvent; for (Iterator i = instances.iterator(); i.hasNext();) { XFormsUtils.updateInstanceData(((XFormsInstance) i.next()).getDocument(), new XFormsUtils.InstanceWalker() { public void walk(Node node, InstanceData instanceData) { if (instanceData != null) instanceData.clearValidationBinds(); | public void dispatchEvent(final PipelineContext pipelineContext, XFormsEvent xformsEvent) { final String eventName = xformsEvent.getEventName(); if (XFormsEvents.XXFORMS_INITIALIZE_STATE.equals(eventName)) { // Internal event to restore state loadSchemasIfNeeded(pipelineContext); applyRelevantReadonlyBinds(pipelineContext); dispatchEvent(pipelineContext, new XFormsRevalidateEvent(this, false)); } else if (XFormsEvents.XFORMS_MODEL_CONSTRUCT.equals(eventName)) { // 4.2.1 The xforms-model-construct Event // Bubbles: Yes / Cancelable: No / Context Info: None final Element modelElement = modelDocument.getRootElement(); // 1. All XML Schemas loaded (throws xforms-link-exception) // TODO: support multiple schemas // Get schema URI loadSchemasIfNeeded(pipelineContext); // TODO: throw exception event // 2. Create XPath data model from instance (inline or external) (throws xforms-link-exception) // Instance may not be specified. // TODO: support external instance if (instances == null) { // Build initial instance document List instanceContainers = modelElement.elements(new QName("instance", XFormsConstants.XFORMS_NAMESPACE)); if (instanceContainers.size() > 0) { // Support multiple instances int instancePosition = 0; for (Iterator i = instanceContainers.iterator(); i.hasNext(); instancePosition++) { Element instanceContainer = (Element) i.next(); Document instanceDocument = Dom4jUtils.createDocumentCopyParentNamespaces((Element) instanceContainer.elements().get(0)); setInstanceDocument(pipelineContext, instancePosition, instanceDocument); } } } // TODO: throw exception event // Call special listener to update instance if (instanceConstructListener != null) { for (Iterator i = getInstances().iterator(); i.hasNext();) { instanceConstructListener.updateInstance((XFormsInstance) i.next()); } } // 3. P3P (N/A) // 4. Instance data is constructed. Evaluate binds: // a. Evaluate nodeset // b. Apply model item properties on nodes // c. Throws xforms-binding-exception if the node has already model item property with same name // TODO: a, b, c xxx // 5. xforms-rebuild, xforms-recalculate, xforms-revalidate dispatchEvent(pipelineContext, new XFormsRebuildEvent(this)); dispatchEvent(pipelineContext, new XFormsRecalculateEvent(this)); dispatchEvent(pipelineContext, new XFormsRevalidateEvent(this, false)); } else if (XFormsEvents.XFORMS_MODEL_CONSTRUCT_DONE.equals(eventName)) { // 4.2.2 The xforms-model-construct-done Event // Bubbles: Yes / Cancelable: No / Context Info: None // TODO: if instance exists (for now it does!), check that controls can bind, otherwise control must be "irrelevant" // TODO: implicit lazy instance construction } else if (XFormsEvents.XFORMS_READY.equals(eventName)) { // 4.2.3 The xforms-ready Event // Bubbles: Yes / Cancelable: No / Context Info: None // The default action for this event results in the following: None } else if (XFormsEvents.XFORMS_MODEL_DESTRUCT.equals(eventName)) { // 4.2.4 The xforms-model-destruct Event // Bubbles: No / Cancelable: No / Context Info: None // The default action for this event results in the following: None } else if (XFormsEvents.XFORMS_REBUILD.equals(eventName)) { // 4.3.7 The xforms-rebuild Event // Bubbles: Yes / Cancelable: Yes / Context Info: None // TODO: rebuild computational dependency data structures } else if (XFormsEvents.XFORMS_RECALCULATE.equals(eventName)) { // 4.3.6 The xforms-recalculate Event // Bubbles: Yes / Cancelable: Yes / Context Info: None applyBinds(new BindRunner() { public void applyBind(ModelBind modelBind, DocumentWrapper documentWrapper) { handleCalculateBind(pipelineContext, modelBind, documentWrapper, this); } }); // Here we assume that we update those after recaculate, because recalculate is always // called after values are changed in the instance - may have to be changed... applyRelevantReadonlyBinds(pipelineContext); } else if (XFormsEvents.XFORMS_REVALIDATE.equals(eventName)) { // 4.3.5 The xforms-revalidate Event // Bubbles: Yes / Cancelable: Yes / Context Info: None XFormsRevalidateEvent xformsRevalidateEvent = (XFormsRevalidateEvent) xformsEvent; // Clear all existing errors on instance for (Iterator i = instances.iterator(); i.hasNext();) { XFormsUtils.updateInstanceData(((XFormsInstance) i.next()).getDocument(), new XFormsUtils.InstanceWalker() { public void walk(Node node, InstanceData instanceData) { if (instanceData != null) instanceData.clearValidationErrors(); } }); } // Run validation applySchemasIfNeeded(); applyBinds(new BindRunner() { public void applyBind(ModelBind modelBind, DocumentWrapper documentWrapper) { handleValidationBind(pipelineContext, modelBind, documentWrapper, this); } }); // Send events if needed if (xformsRevalidateEvent.isSendEvents() && xformsContainingDocument.getXFormsControls() != null) { final XFormsControls xformsControls = xformsContainingDocument.getXFormsControls(); for (Iterator i = instances.iterator(); i.hasNext();) { XFormsUtils.updateInstanceData(((XFormsInstance) i.next()).getDocument(), new XFormsUtils.InstanceWalker() { public void walk(Node node, InstanceData instanceData) { // Dispatch xforms-valid/xforms-invalid { final boolean previousValidState = instanceData.getPreviousValidState(); final boolean newValidState = instanceData.getValid().get(); if (previousValidState && !newValidState) { xformsControls.dispatchEvent(pipelineContext, new XFormsInvalidEvent(node)); } else if (!previousValidState && newValidState) { xformsControls.dispatchEvent(pipelineContext, new XFormsValidEvent(node)); } } // Dispatch xforms-optional/xforms-required { final boolean previousRequiredState = instanceData.getPreviousRequiredState(); final boolean newRequiredState = instanceData.getRequired().get(); if (previousRequiredState && !newRequiredState) { xformsControls.dispatchEvent(pipelineContext, new XFormsOptionalEvent(node)); } else if (!previousRequiredState && newRequiredState) { xformsControls.dispatchEvent(pipelineContext, new XFormsRequiredEvent(node)); } } } }); } } } else if (XFormsEvents.XFORMS_REFRESH.equals(eventName)) { // 4.3.4 The xforms-refresh Event // Bubbles: Yes / Cancelable: Yes / Context Info: None // Must ask controls to refresh for this model if (xformsContainingDocument.getXFormsControls() != null) { xformsContainingDocument.getXFormsControls().refreshForModel(pipelineContext, this); } } else if (XFormsEvents.XFORMS_RESET.equals(eventName)) { // 4.3.8 The xforms-reset Event // Bubbles: Yes / Cancelable: Yes / Context Info: None // TODO // "The instance data is reset to the tree structure and values it had immediately // after having processed the xforms-ready event." // "Then, the events xforms-rebuild, xforms-recalculate, xforms-revalidate and // xforms-refresh are dispatched to the model element in sequence." dispatchEvent(pipelineContext, new XFormsRebuildEvent(XFormsModel.this)); dispatchEvent(pipelineContext, new XFormsRecalculateEvent(XFormsModel.this)); dispatchEvent(pipelineContext, new XFormsRevalidateEvent(XFormsModel.this, true)); dispatchEvent(pipelineContext, new XFormsRefreshEvent(XFormsModel.this)); } else if (XFormsEvents.XFORMS_LINK_ERROR.equals(eventName)) { // 4.5.2 The xforms-link-error Event // Bubbles: Yes / Cancelable: No / Context Info: The URI that failed to load (xsd:anyURI) //callEventHandlers(pipelineContext, xformsEvent, eventName, xformsEvent.getControlElement()); // The default action for this event results in the following: None; notification event only. //XFormsLinkError xFormsLinkError = (XFormsLinkError) xformsEvent; // TODO } else if (XFormsEvents.XFORMS_COMPUTE_EXCEPTION.equals(eventName)) { // 4.5.4 The xforms-compute-exception Event // Bubbles: Yes / Cancelable: No / Context Info: Implementation-specific error string. // The default action for this event results in the following: Fatal error. // TODO } else { throw new OXFException("Invalid event dispatched: " + eventName); } } | 57229 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57229/a8e0c5e75c57ce205d16fdbfbec060ace1f2b15f/XFormsModel.java/clean/src/java/org/orbeon/oxf/xforms/XFormsModel.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
15678,
12,
6385,
13671,
1042,
5873,
1042,
16,
1139,
18529,
1133,
619,
9741,
1133,
13,
288,
3639,
727,
514,
7933,
273,
619,
9741,
1133,
18,
588,
24320,
5621,
3639,
309,
261,
60,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
15678,
12,
6385,
13671,
1042,
5873,
1042,
16,
1139,
18529,
1133,
619,
9741,
1133,
13,
288,
3639,
727,
514,
7933,
273,
619,
9741,
1133,
18,
588,
24320,
5621,
3639,
309,
261,
60,... |
RubyThread[] rubyThreads = new RubyThread[rtList.size()]; rtList.toArray(rubyThreads); return rubyThreads; | public synchronized RubyThread[] getActiveRubyThreads() { // all threads in ruby thread group plus main thread List rtList = new ArrayList(rubyThreadList.size()); for (Iterator iter = rubyThreadList.iterator(); iter.hasNext();) { Thread t = (Thread)iter.next(); if (!t.isAlive()) continue; RubyThread rt = getRubyThreadFromThread(t); rtList.add(rt); } RubyThread[] rubyThreads = new RubyThread[rtList.size()]; rtList.toArray(rubyThreads); return rubyThreads; } | 45221 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45221/0b82fd60cc1328792397c3de9cc4a3b9a4a8dbe2/ThreadService.java/clean/src/org/jruby/internal/runtime/ThreadService.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
3852,
19817,
3830,
8526,
11960,
54,
10340,
13233,
1435,
288,
377,
202,
759,
777,
7403,
316,
22155,
2650,
1041,
8737,
2774,
2650,
7734,
987,
8253,
682,
273,
394,
2407,
12,
27768,
3830,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
3852,
19817,
3830,
8526,
11960,
54,
10340,
13233,
1435,
288,
377,
202,
759,
777,
7403,
316,
22155,
2650,
1041,
8737,
2774,
2650,
7734,
987,
8253,
682,
273,
394,
2407,
12,
27768,
3830,... | |
if (!(target instanceof MInstance)) return null; MInstance in = (MInstance) target; String instance_base = ""; Collection col = in.getClassifiers(); if (col != null && (col.size()>0)) { Iterator it = col.iterator(); while (it.hasNext()) { MClassifier cls = (MClassifier)it.next(); if (cls != null && (cls.getName() != null)) { instance_base = cls.getName(); | if (!(target instanceof MInstance)) return null; MInstance in = (MInstance) target; String instance_base = ""; Collection col = in.getClassifiers(); if (col != null && (col.size() > 0)) { Iterator it = col.iterator(); while (it.hasNext()) { MClassifier cls = (MClassifier) it.next(); if (cls != null && (cls.getName() != null)) { instance_base = cls.getName(); | public Object getValueFor(Object target) { if (!(target instanceof MInstance)) return null; MInstance in = (MInstance) target; String instance_base = ""; Collection col = in.getClassifiers(); if (col != null && (col.size()>0)) { Iterator it = col.iterator(); while (it.hasNext()) { MClassifier cls = (MClassifier)it.next(); if (cls != null && (cls.getName() != null)) { instance_base = cls.getName(); } } } return instance_base; } | 7166 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7166/ca3bcb5d6dd283c4553bcbfe50b108dc5d499768/ColumnDescriptor.java/clean/src_new/org/argouml/uml/ColumnDescriptor.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
1033,
2366,
1290,
12,
921,
1018,
13,
288,
565,
309,
16051,
12,
3299,
1276,
490,
1442,
3719,
327,
446,
31,
565,
490,
1442,
316,
273,
261,
49,
1442,
13,
1018,
31,
565,
514,
791,
6... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
1033,
2366,
1290,
12,
921,
1018,
13,
288,
565,
309,
16051,
12,
3299,
1276,
490,
1442,
3719,
327,
446,
31,
565,
490,
1442,
316,
273,
261,
49,
1442,
13,
1018,
31,
565,
514,
791,
6... |
if ( canBeNull( ) && choiceValue == null && defaultValue == null ) { return true; } return choiceValue != null && isEqual( choiceValue, defaultValue ); | return true; | private boolean isDefaultChoice( SelectionChoice choice ) { String choiceValue = choice.getValue( ); String defaultValue = convertToStandardFormat( this.defaultValue ); // if ( choice != dummyChoice ) { if ( canBeNull( ) && choiceValue == null && defaultValue == null ) { return true; } return choiceValue != null && isEqual( choiceValue, defaultValue ); } // return false; } | 12803 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12803/9c65d7f57b06e305f2176ead6cec52109a79efd7/ParameterDialog.java/clean/UI/org.eclipse.birt.report.designer.ui/src/org/eclipse/birt/report/designer/ui/dialogs/ParameterDialog.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
1250,
20652,
10538,
12,
12977,
10538,
6023,
262,
202,
95,
202,
202,
780,
6023,
620,
273,
6023,
18,
24805,
12,
11272,
202,
202,
780,
4593,
273,
8137,
8336,
1630,
12,
333,
18,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
1250,
20652,
10538,
12,
12977,
10538,
6023,
262,
202,
95,
202,
202,
780,
6023,
620,
273,
6023,
18,
24805,
12,
11272,
202,
202,
780,
4593,
273,
8137,
8336,
1630,
12,
333,
18,
... |
Assert.fail( de.getMessage() ); | fail( de.getMessage() ); | public void testDecodeSearchRequestSubstringAnyFinal() { Asn1Decoder ldapDecoder = new LdapDecoder(); ByteBuffer stream = ByteBuffer.allocate( 0x67 ); stream.put( new byte[] { 0x30, 0x65, // LDAPMessage ::=SEQUENCE { 0x02, 0x01, 0x01, // messageID MessageID 0x63, 0x60, // CHOICE { ..., searchRequest SearchRequest, ... // SearchRequest ::= APPLICATION[3] SEQUENCE { 0x04, 0x1F, // baseObject LDAPDN, 'u', 'i', 'd', '=', 'a', 'k', 'a', 'r', 'a', 's', 'u', 'l', 'u', ',', 'd', 'c', '=', 'e', 'x', 'a', 'm', 'p', 'l', 'e', ',', 'd', 'c', '=', 'c', 'o', 'm', 0x0A, 0x01, 0x01, // scope ENUMERATED { // baseObject (0), // singleLevel (1), // wholeSubtree (2) }, 0x0A, 0x01, 0x03, // derefAliases ENUMERATED { // neverDerefAliases (0), // derefInSearching (1), // derefFindingBaseObj (2), // derefAlways (3) }, // sizeLimit INTEGER (0 .. maxInt), (1000) 0x02, 0x02, 0x03, (byte)0xE8, // timeLimit INTEGER (0 .. maxInt), (1000) 0x02, 0x02, 0x03, (byte)0xE8, 0x01, 0x01, (byte)0xFF, // typesOnly BOOLEAN, (TRUE) // filter Filter, (byte)0xA4, 0x15, // Filter ::= CHOICE { // substrings [4] SubstringFilter // } // SubstringFilter ::= SEQUENCE { 0x04, 0x0B, // type AttributeDescription, 'o', 'b', 'j', 'e', 'c', 't', 'c', 'l', 'a', 's', 's', 0x30, 0x06, (byte)0x81, 0x01, 't', // (byte)0x82, 0x01, 't', // 0x30, 0x15, // AttributeDescriptionList ::= SEQUENCE OF AttributeDescription 0x04, 0x05, 'a', 't', 't', 'r', '0', // AttributeDescription ::= LDAPString 0x04, 0x05, 'a', 't', 't', 'r', '1', // AttributeDescription ::= LDAPString 0x04, 0x05, 'a', 't', 't', 'r', '2' // AttributeDescription ::= LDAPString } ); String decodedPdu = StringTools.dumpBytes( stream.array() ); stream.flip(); // Allocate a BindRequest Container IAsn1Container ldapMessageContainer = new LdapMessageContainer(); try { ldapDecoder.decode( stream, ldapMessageContainer ); } catch ( DecoderException de ) { de.printStackTrace(); Assert.fail( de.getMessage() ); } LdapMessage message = ( ( LdapMessageContainer ) ldapMessageContainer ).getLdapMessage(); SearchRequest sr = message.getSearchRequest(); Assert.assertEquals( 1, message.getMessageId() ); Assert.assertEquals( "uid=akarasulu,dc=example,dc=com", sr.getBaseObject().toString() ); Assert.assertEquals( LdapConstants.SCOPE_SINGLE_LEVEL, sr.getScope() ); Assert.assertEquals( LdapConstants.DEREF_ALWAYS, sr.getDerefAliases() ); Assert.assertEquals( 1000, sr.getSizeLimit() ); Assert.assertEquals( 1000, sr.getTimeLimit() ); Assert.assertEquals( true, sr.isTypesOnly() ); // (objectclass=t*) SubstringFilter substringFilter = (SubstringFilter)sr.getFilter(); Assert.assertNotNull(substringFilter); Assert.assertEquals("objectclass", substringFilter.getType().toString()); Assert.assertEquals(null, substringFilter.getInitialSubstrings()); Assert.assertEquals("t", ((LdapString)substringFilter.getAnySubstrings().get(0)).toString()); Assert.assertEquals("t", substringFilter.getFinalSubstrings().toString()); // The attributes Attributes attributes = sr.getAttributes(); for (int i = 0; i < attributes.size(); i++) { Assert.assertNotNull( attributes.get( "attr" + i ) ); } // Check the length Assert.assertEquals(0x67, message.computeLength()); // Check the encoding // We won't check the whole PDU, as it may differs because // attributes may have been reordered try { ByteBuffer bb = message.encode( null ); String encodedPdu = StringTools.dumpBytes( bb.array() ); Assert.assertEquals(encodedPdu.substring( 0, 0x58 ), decodedPdu.substring( 0, 0x58 ) ); } catch ( EncoderException ee ) { ee.printStackTrace(); Assert.fail( ee.getMessage() ); } } | 54578 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54578/3561f4cdd29c534a78cee8464a6bc4c88d5b1783/SearchRequestTest.java/buggy/ldap/src/test/java/org/apache/ldap/common/codec/search/SearchRequestTest.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1842,
6615,
2979,
691,
1676,
1080,
2961,
7951,
1435,
565,
288,
3639,
31277,
21,
7975,
8079,
7975,
273,
394,
18053,
7975,
5621,
3639,
7400,
225,
1407,
1377,
273,
7400,
18,
16247,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1842,
6615,
2979,
691,
1676,
1080,
2961,
7951,
1435,
565,
288,
3639,
31277,
21,
7975,
8079,
7975,
273,
394,
18053,
7975,
5621,
3639,
7400,
225,
1407,
1377,
273,
7400,
18,
16247,
... |
final public Object put(char[] key, Object value) { return put(key, 0, key.length, value); | public Object put(char[] key, int start, int length, Object value) { int i = addIndex(key, start, length); Object oldvalue = valueTable[i]; valueTable[i] = value; return oldvalue; | final public Object put(char[] key, Object value) { return put(key, 0, key.length, value); } | 54911 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54911/fcfbda5c0ed3866a3021c66cf80a46d525748d7f/CharArrayObjectMap.java/buggy/core/org.eclipse.cdt.core/parser/org/eclipse/cdt/core/parser/util/CharArrayObjectMap.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
6385,
1071,
1033,
1378,
12,
3001,
8526,
498,
16,
1033,
460,
13,
288,
202,
202,
2463,
1378,
12,
856,
16,
374,
16,
498,
18,
2469,
16,
460,
1769,
202,
97,
2,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
6385,
1071,
1033,
1378,
12,
3001,
8526,
498,
16,
1033,
460,
13,
288,
202,
202,
2463,
1378,
12,
856,
16,
374,
16,
498,
18,
2469,
16,
460,
1769,
202,
97,
2,
-100,
-100,
-100,
-100,... |
} | } | public void registerKeyboardAction(ActionListener act, KeyStroke stroke, int cond) { registerKeyboardAction(act, null, stroke, cond); } | 50763 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50763/3826e72d9ebe31a854c4d01d6c8f1ec65a8d80fe/JComponent.java/buggy/core/src/classpath/javax/javax/swing/JComponent.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
918,
1744,
17872,
1803,
12,
1803,
2223,
1328,
16,
19694,
1929,
14602,
11040,
16,
4766,
1377,
509,
6941,
13,
202,
95,
565,
1744,
17872,
1803,
12,
621,
16,
446,
16,
11040,
16,
6941,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
918,
1744,
17872,
1803,
12,
1803,
2223,
1328,
16,
19694,
1929,
14602,
11040,
16,
4766,
1377,
509,
6941,
13,
202,
95,
565,
1744,
17872,
1803,
12,
621,
16,
446,
16,
11040,
16,
6941,
... |
return "JFrame"; | return super.paramString(); | protected String paramString() { return "JFrame"; } | 50763 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50763/badba23052f905d992da7c32124c28f4339931fc/JApplet.java/buggy/core/src/classpath/javax/javax/swing/JApplet.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
4750,
514,
579,
780,
1435,
225,
288,
565,
327,
2240,
18,
891,
780,
5621,
225,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
4750,
514,
579,
780,
1435,
225,
288,
565,
327,
2240,
18,
891,
780,
5621,
225,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
final JSplitPane jsp = new JSplitPane(JSplitPane.VERTICAL_SPLIT, scrollPane, details); getContentPane().add(jsp, BorderLayout.CENTER); | aDetailsDivider = new JSplitPane(JSplitPane.VERTICAL_SPLIT, scrollPane, details); getContentPane().add(aDetailsDivider, BorderLayout.CENTER); | private Main() { super("CHAINSAW - Log4J Log Viewer"); // create the all important model final MyTableModel model = new MyTableModel(); //Create the menu bar. final JMenuBar menuBar = new JMenuBar(); setJMenuBar(menuBar); final JMenu menu = new JMenu("File"); menuBar.add(menu); try { final LoadXMLAction lxa = new LoadXMLAction(this, model); final JMenuItem loadMenuItem = new JMenuItem("Load file..."); menu.add(loadMenuItem); loadMenuItem.addActionListener(lxa); } catch (NoClassDefFoundError e) { LOG.info("Missing classes for XML parser", e); JOptionPane.showMessageDialog( this, "XML parser not in classpath - unable to load XML events.", "CHAINSAW", JOptionPane.ERROR_MESSAGE); } catch (Exception e) { LOG.info("Unable to create the action to load XML files", e); JOptionPane.showMessageDialog( this, "Unable to create a XML parser - unable to load XML events.", "CHAINSAW", JOptionPane.ERROR_MESSAGE); } final JMenuItem exitMenuItem = new JMenuItem("Exit"); menu.add(exitMenuItem); exitMenuItem.addActionListener(ExitAction.INSTANCE); // Add control panel final ControlPanel cp = new ControlPanel(model); getContentPane().add(cp, BorderLayout.NORTH); // Create the table final JTable table = new JTable(model); table.setSelectionMode(ListSelectionModel.SINGLE_SELECTION); final JScrollPane scrollPane = new JScrollPane(table); scrollPane.setBorder(BorderFactory.createTitledBorder("Events: ")); scrollPane.setPreferredSize(new Dimension(900, 300)); // Create the details final JPanel details = new DetailPanel(table, model); details.setPreferredSize(new Dimension(900, 100)); // Add the table and stack trace into a splitter final JSplitPane jsp = new JSplitPane(JSplitPane.VERTICAL_SPLIT, scrollPane, details); getContentPane().add(jsp, BorderLayout.CENTER); addWindowListener(new WindowAdapter() { public void windowClosing(WindowEvent aEvent) { ExitAction.INSTANCE.actionPerformed(null); } }); pack(); setVisible(true); setupReceiver(model); } | 47730 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47730/023a5e43555d74ad236bce7a4928768a9d47b94b/Main.java/buggy/src/java/org/apache/log4j/chainsaw/Main.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
12740,
1435,
288,
3639,
2240,
2932,
1792,
6964,
5233,
59,
300,
1827,
24,
46,
1827,
4441,
264,
8863,
3639,
368,
752,
326,
777,
10802,
938,
3639,
727,
8005,
1388,
1488,
938,
273,
394,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
12740,
1435,
288,
3639,
2240,
2932,
1792,
6964,
5233,
59,
300,
1827,
24,
46,
1827,
4441,
264,
8863,
3639,
368,
752,
326,
777,
10802,
938,
3639,
727,
8005,
1388,
1488,
938,
273,
394,... |
public static String getPluginId() { return getDefault().getBundle().getSymbolicName(); | public static String getPluginId() { return getDefault().getBundle().getSymbolicName(); | public static String getPluginId() { return getDefault().getBundle().getSymbolicName(); } | 45532 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45532/a4e486719ce78b8050373e6534dfaf4a1572b269/Activator.java/buggy/org.spearce.egit.ui/src/org/spearce/egit/ui/Activator.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
514,
16319,
548,
1435,
565,
288,
3639,
327,
4829,
7675,
588,
3405,
7675,
588,
10876,
12164,
461,
5621,
565,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
514,
16319,
548,
1435,
565,
288,
3639,
327,
4829,
7675,
588,
3405,
7675,
588,
10876,
12164,
461,
5621,
565,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
addLink(); | addLinkToTable(); | private void createAddDeleteButtons(Composite parent, FormToolkit toolkit) { Composite container = toolkit.createComposite(parent); container.setLayout(new GridLayout(1, true)); Button addButton = toolkit.createButton(container, " Add ", SWT.PUSH | SWT.CENTER); //add.setLayoutData(new TableWrapData(TableWrapData.FILL_GRAB)); addButton.addSelectionListener(new SelectionAdapter() { @Override public void widgetSelected(SelectionEvent e) { addLink(); } }); Button deleteButton = toolkit.createButton(container, "Delete", SWT.PUSH | SWT.CENTER); deleteButton.setText("Delete"); //delete.setLayoutData(new TableWrapData(TableWrapData.FILL_GRAB)); deleteButton.addSelectionListener(new SelectionAdapter() { @Override public void widgetSelected(SelectionEvent e) { removeLink(); } }); } | 51151 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51151/5de72f60fa710fa7efe680600d3c632e85f0c79e/TaskSummaryEditor.java/buggy/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/tasks/ui/TaskSummaryEditor.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
918,
752,
986,
2613,
14388,
12,
9400,
982,
16,
2748,
6364,
8691,
5226,
8691,
13,
288,
202,
202,
9400,
1478,
273,
5226,
8691,
18,
2640,
9400,
12,
2938,
1769,
202,
202,
3782,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
918,
752,
986,
2613,
14388,
12,
9400,
982,
16,
2748,
6364,
8691,
5226,
8691,
13,
288,
202,
202,
9400,
1478,
273,
5226,
8691,
18,
2640,
9400,
12,
2938,
1769,
202,
202,
3782,
1... |
for (int i = 0; i < len; i++) { | RubyClass fixnumClass = getRuntime().getClass("Fixnum"); for (int i = 0; i < minCommon; i++) { | public IRubyObject op_cmp(IRubyObject other) { RubyArray ary = other.convertToArray(); int otherLen = ary.getLength(); int len = getLength(); if (len != otherLen) { return (len > otherLen) ? RubyFixnum.one(getRuntime()) : RubyFixnum.minus_one(getRuntime()); } ThreadContext context = getRuntime().getCurrentContext(); for (int i = 0; i < len; i++) { IRubyObject result = entry(i).callMethod(context, "<=>", ary.entry(i)); if (result.isNil() || ((RubyFixnum)result).getLongValue() != 0) { return result; } } return RubyFixnum.zero(getRuntime()); } | 45298 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45298/c5efec819547c1904f24520251cba220ba8d4a25/RubyArray.java/clean/src/org/jruby/RubyArray.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
15908,
10340,
921,
1061,
67,
9625,
12,
7937,
10340,
921,
1308,
13,
288,
3639,
19817,
1076,
11841,
273,
1308,
18,
6283,
11698,
5621,
3639,
509,
1308,
2891,
273,
11841,
18,
588,
1782,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
15908,
10340,
921,
1061,
67,
9625,
12,
7937,
10340,
921,
1308,
13,
288,
3639,
19817,
1076,
11841,
273,
1308,
18,
6283,
11698,
5621,
3639,
509,
1308,
2891,
273,
11841,
18,
588,
1782,
... |
private void init(String sTitle) { display = Display.getDefault(); | private void init( String sTitle ) { display = Display.getDefault( ); | private void init(String sTitle) { display = Display.getDefault(); if ( PlatformUI.isWorkbenchRunning( ) ) { shell = new Shell( PlatformUI.getWorkbench( ) .getDisplay( ) .getActiveShell( ), SWT.DIALOG_TRIM | SWT.RESIZE | SWT.APPLICATION_MODAL ); } else { shell = new Shell( display, SWT.DIALOG_TRIM | SWT.RESIZE | SWT.APPLICATION_MODAL ); } shell.setText(sTitle); shell.setSize(DEFAULT_WIDTH, DEFAULT_HEIGHT); shell.setLayout(new FillLayout()); // CENTER THE DIALOG ON SCREEN shell.setLocation((display.getClientArea().width / 2) - (shell.getSize().x / 2), (display.getClientArea().height / 2) - (shell.getSize().y / 2)); placeComponents(); shell.setDefaultButton(btnOK); shell.open(); while(!shell.isDisposed()) { if(!display.readAndDispatch()) { display.sleep(); } } } | 15160 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/15160/a9320be9ea7b1e0ded35d1f9f455bafd282468e8/ErrorDialog.java/clean/core/org.eclipse.birt.core.ui/src/org/eclipse/birt/core/ui/frameworks/errordisplay/ErrorDialog.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
1208,
12,
780,
272,
4247,
13,
565,
288,
3639,
2562,
273,
9311,
18,
588,
1868,
5621,
202,
202,
430,
261,
11810,
5370,
18,
291,
2421,
22144,
7051,
12,
262,
262,
202,
202,
95,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
1208,
12,
780,
272,
4247,
13,
565,
288,
3639,
2562,
273,
9311,
18,
588,
1868,
5621,
202,
202,
430,
261,
11810,
5370,
18,
291,
2421,
22144,
7051,
12,
262,
262,
202,
202,
95,
... |
new SQLException("Query was cancelled or timed out.")); | new SQLException("Query was cancelled or timed out.", "HY008")); | protected synchronized void goToNextResult(final SQLWarningChain warningChain, final TdsStatement stmt) throws TdsException, java.io.IOException, SQLException { final boolean isPreparedStmt = stmt instanceof PreparedStatement; final boolean isCallableStmt = stmt instanceof CallableStatement; // SAfe Need to process messages, output parameters and return values // here, or even better, in the processXXX methods. while (moreResults) { final byte next = comm.peek(); // SAfe If the next packet is a rowcount or ResultSet, break if (next == TDS_DONE || next == TDS_COLMETADATA || next == TDS_COL_NAME_TOKEN || (next == TDS_DONEINPROC && isPreparedStmt && !isCallableStmt)) { break; } final PacketResult res = processSubPacket(); if (res instanceof PacketMsgResult) { warningChain.addOrReturn((PacketMsgResult) res); } else if (res instanceof PacketOutputParamResult) { stmt.handleParamResult((PacketOutputParamResult) res); } else if (res instanceof PacketRetStatResult) { stmt.handleRetStat((PacketRetStatResult) res); } else if (res instanceof PacketEndTokenResult) { if (((PacketEndTokenResult) res).wasCanceled()) { warningChain.addException( new SQLException("Query was cancelled or timed out.")); } } } } | 439 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/439/8552aa9a2df546b4d1977c587b04556c7b854ab4/Tds.java/clean/trunk/jtds/src/main/net/sourceforge/jtds/jdbc/Tds.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
4750,
3852,
918,
1960,
774,
2134,
1253,
12,
6385,
3063,
6210,
3893,
3436,
3893,
16,
727,
399,
2377,
3406,
3480,
13,
5411,
1216,
399,
2377,
503,
16,
2252,
18,
1594,
18,
14106,
16,
6483,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
4750,
3852,
918,
1960,
774,
2134,
1253,
12,
6385,
3063,
6210,
3893,
3436,
3893,
16,
727,
399,
2377,
3406,
3480,
13,
5411,
1216,
399,
2377,
503,
16,
2252,
18,
1594,
18,
14106,
16,
6483,
... |
int x = 0; | public static FreenetURI readFullBinaryKey(DataInputStream dis) throws IOException { int x = 0; byte type = dis.readByte(); String keyType; if(type == CHK) keyType = "CHK"; else if(type == SSK) keyType = "SSK"; else throw new MalformedURLException("Unrecognized type "+type); // routingKey is a hash, so is exactly 32 bytes byte[] routingKey = new byte[32]; dis.readFully(routingKey); // cryptoKey is a 256 bit AES key, so likewise byte[] cryptoKey = new byte[32]; dis.readFully(cryptoKey); // Number of bytes of extra depends on key type int extraLen; if(type == CHK) extraLen = ClientCHK.EXTRA_LENGTH; else throw new UnsupportedOperationException("SSKs not implemented yet!"); //extraLen = ClientSSK.EXTRA_LENGTH; byte[] extra = new byte[extraLen]; dis.readFully(extra); String docName = dis.readUTF(); int count = dis.readByte() & 0xff; String[] metaStrings = new String[count]; for(int i=0;i<metaStrings.length;i++) metaStrings[i] = dis.readUTF(); return new FreenetURI(keyType, docName, metaStrings, routingKey, cryptoKey, extra); } | 49933 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49933/5f6cd14357e2fd98f1b8e460aa78526429387ea0/FreenetURI.java/clean/src/freenet/keys/FreenetURI.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
760,
478,
2842,
278,
3098,
855,
5080,
5905,
653,
12,
751,
4348,
1015,
13,
1216,
1860,
288,
202,
202,
474,
619,
273,
374,
31,
202,
202,
7229,
618,
273,
1015,
18,
896,
3216,
5... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
760,
478,
2842,
278,
3098,
855,
5080,
5905,
653,
12,
751,
4348,
1015,
13,
1216,
1860,
288,
202,
202,
474,
619,
273,
374,
31,
202,
202,
7229,
618,
273,
1015,
18,
896,
3216,
5... | |
String table = mapping.getTable(); | String table = mapping.getUnqualifiedTable(); | public boolean generate(XPathContext context, ProgramWriter out) { try { out.print("<?xml version=\"1.0\" encoding=\"UTF-8\"?>"); out.print("\n\n<!-- Generated by OpenXava: "); out.print(new Date()); out.print(" -->"); String componentName = properties.getProperty("arg3"); String aggregateName = properties.getProperty("arg4"); MetaComponent component = MetaComponent.get(componentName); ModelMapping mapping = null; if (aggregateName == null) { mapping = component.getEntityMapping(); } else { mapping = component.getAggregateMapping(aggregateName); } String tableId = Strings.change(mapping.getTable(), ".", "_"); String table = mapping.getTable(); String schema = mapping.getSchema(); out.print(" \n\n<RDBSchema:RDBTable xmi:version=\"2.0\" xmlns:xmi=\"http://www.omg.org/XMI\" xmlns:RDBSchema=\"RDBSchema.xmi\" xmi:id=\""); out.print(tableId); out.print("\" name=\""); out.print(table); out.print("\" primaryKey=\"C4404645\">\n <database href=\"META-INF/backends/OPENXAVA/DB.dbxmi#DB\"/>\n <schema href=\"META-INF/backends/OPENXAVA/"); out.print(schema); out.print(".schxmi#"); out.print(schema); out.print("\"/>\n <columns xmi:type=\"RDBSchema:RDBColumn\" xmi:id=\"DNI\" name=\"DNI\">\n <type xmi:type=\"RDBSchema:DB2AS400CharacterStringType\" xmi:id=\"DB2AS400CharacterStringType_1107953075972\" characterSet=\"800\" length=\"10\">\n <originatingType xmi:type=\"RDBSchema:DB2AS400CharacterStringType\" href=\"DB2UDBAS400_V5_Primitives.xmi#DB2AS400CharacterStringType_3\"/>\n </type>\n </columns>\n <columns xmi:type=\"RDBSchema:RDBColumn\" xmi:id=\"NOMBRE\" name=\"NOMBRE\" allowNull=\"true\">\n <type xmi:type=\"RDBSchema:DB2AS400CharacterStringType\" xmi:id=\"DB2AS400CharacterStringType_1107953075973\" characterSet=\"800\" length=\"20\">\n <originatingType xmi:type=\"RDBSchema:DB2AS400CharacterStringType\" href=\"DB2UDBAS400_V5_Primitives.xmi#DB2AS400CharacterStringType_3\"/>\n </type>\n </columns>\n <columns xmi:type=\"RDBSchema:RDBColumn\" xmi:id=\"APELLIDOS\" name=\"APELLIDOS\" allowNull=\"true\">\n <type xmi:type=\"RDBSchema:DB2AS400CharacterStringType\" xmi:id=\"DB2AS400CharacterStringType_1107953075974\" characterSet=\"800\" length=\"50\">\n <originatingType xmi:type=\"RDBSchema:DB2AS400CharacterStringType\" href=\"DB2UDBAS400_V5_Primitives.xmi#DB2AS400CharacterStringType_3\"/>\n </type>\n </columns>\n <namedGroup xmi:type=\"RDBSchema:SQLReference\" xmi:id=\"C4404645\" name=\"C4404645\" members=\"DNI\" constraint=\"SQLConstraint_1107953075972\"/>\n <constraints xmi:id=\"SQLConstraint_1107953075972\" name=\"C4404645\" type=\"PRIMARYKEY\" primaryKey=\"C4404645\"/>\n</RDBSchema:RDBTable>"); } catch (Exception e) { System.out.println("Exception: "+e.getMessage()); e.printStackTrace(); return false; } return true; } | 14127 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/14127/bb55d319c3d36bb6e749a1706ac75b2b08018f35/WebsphereTblxmiPG.java/buggy/OpenXava/generator/WebsphereTblxmiPG.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
1250,
2103,
12,
14124,
1042,
819,
16,
13586,
2289,
596,
13,
288,
3639,
775,
288,
565,
596,
18,
1188,
2932,
12880,
2902,
1177,
5189,
21,
18,
20,
2412,
2688,
5189,
5159,
17,
28,
241... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
1250,
2103,
12,
14124,
1042,
819,
16,
13586,
2289,
596,
13,
288,
3639,
775,
288,
565,
596,
18,
1188,
2932,
12880,
2902,
1177,
5189,
21,
18,
20,
2412,
2688,
5189,
5159,
17,
28,
241... |
pbeParamSpec = new PBEParameterSpec( new byte[] {1,2,3,4,5,6,7,8}, 10); SecretKeyFactory skf = (provider==null) ? SecretKeyFactory.getInstance(algName) : SecretKeyFactory.getInstance(algName, provider); | pbeParamSpec = new PBEParameterSpec(new byte[] { 1, 2, 3, 4, 5, 6, 7, 8 }, 10); SecretKeyFactory skf = (provider == null) ? SecretKeyFactory .getInstance(algName) : SecretKeyFactory.getInstance(algName, provider); | public TestDataGenerator(String algName, String transformation, byte[] privateKeyInfo, Provider provider) throws AllowedFailure { try { c = (provider==null) ? Cipher.getInstance(transformation!=null?transformation:algName) : Cipher.getInstance(transformation!=null?transformation:algName, provider); } catch (NoSuchAlgorithmException e) { throw new AllowedFailure(e.getMessage()); } catch (NoSuchPaddingException e) { throw new AllowedFailure(e.getMessage()); } try { KeyGenerator kg = (provider==null) ? KeyGenerator.getInstance(algName) : KeyGenerator.getInstance(algName, provider); k = kg.generateKey(); } catch (NoSuchAlgorithmException e) { } if (k == null) { try { KeyPairGenerator kpg = (provider==null) ? KeyPairGenerator.getInstance(algName) : KeyPairGenerator.getInstance(algName, provider); KeyPair kp = kpg.genKeyPair(); k = kp.getPrivate(); pubK = kp.getPublic(); } catch (NoSuchAlgorithmException e) { } } PBEParameterSpec pbeParamSpec = null; if (k == null) { try { pbeParamSpec = new PBEParameterSpec( new byte[] {1,2,3,4,5,6,7,8}, 10); SecretKeyFactory skf = (provider==null) ? SecretKeyFactory.getInstance(algName) : SecretKeyFactory.getInstance(algName, provider); PBEKeySpec ks = new PBEKeySpec("12345678".toCharArray()); try { k = skf.generateSecret(ks); } catch (InvalidKeySpecException e) { throw new AllowedFailure(e.getMessage()); } } catch (NoSuchAlgorithmException e) { throw new AllowedFailure(e.getMessage()); } } try { if (pbeParamSpec == null) { c.init(Cipher.ENCRYPT_MODE, k); } else { c.init(Cipher.ENCRYPT_MODE, k, pbeParamSpec); } } catch (InvalidKeyException e) { throw new AllowedFailure(e.getMessage()); } catch (SecurityException e) { throw new AllowedFailure(e.getMessage()); } catch (InvalidAlgorithmParameterException e) { throw new AllowedFailure(e.getMessage()); } ap = c.getParameters(); try {// int blkS = c.getBlockSize();// blkS = blkS==0?10:blkS;// ct = new byte[c.getOutputSize(privateKeyInfo.length)];// if (blkS != 0) {// int cltOff = 0, ctOff = 0;// for (int i=0; i<privateKeyInfo.length/blkS; i++) {// ctOff += c.update(privateKeyInfo, cltOff, blkS, ct, ctOff);// cltOff += blkS;// }// c.doFinal(privateKeyInfo, cltOff, privateKeyInfo.length%blkS, ct, ctOff);// } else { ct = c.doFinal(privateKeyInfo);// } } catch (IllegalStateException e) { throw new AllowedFailure(e.getMessage()); } catch (IllegalBlockSizeException e) { throw new AllowedFailure(e.getMessage()); } catch (BadPaddingException e) { throw new AllowedFailure(e.getMessage()); }// } catch (ShortBufferException e) {// throw new AllowedFailure(e.getMessage());// } catch (RuntimeException e) { throw new AllowedFailure(e.getMessage()); } try { // try to convert pbeParamSpec->ap if (pbeParamSpec != null) { try { ap = (provider==null) ? AlgorithmParameters.getInstance(algName) : AlgorithmParameters.getInstance(algName, provider); ap.init(pbeParamSpec); pbeParamSpec = null; } catch (NoSuchAlgorithmException e) { // couldn't convert throw new AllowedFailure(e.getMessage()); } catch (InvalidParameterSpecException e) { // couldn't convert throw new AllowedFailure(e.getMessage()); } } if (ap == null) { c.init(Cipher.DECRYPT_MODE, pubK==null ? k : pubK); } else { c.init(Cipher.DECRYPT_MODE, pubK==null ? k : pubK, ap); } } catch (InvalidKeyException e) { throw new AllowedFailure(e.getMessage()); } catch (SecurityException e) { throw new AllowedFailure(e.getMessage()); } catch (InvalidAlgorithmParameterException e) { throw new AllowedFailure(e.getMessage()); } } | 54769 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54769/4d76bfb2eadb70e06c48c35a604c83b3f0eefc76/EncryptedPrivateKeyInfoTest.java/buggy/modules/crypto/src/test/api/java/org/apache/harmony/crypto/tests/javax/crypto/EncryptedPrivateKeyInfoTest.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
540,
1071,
7766,
751,
3908,
12,
780,
11989,
461,
16,
7734,
514,
8620,
16,
1160,
8526,
11896,
966,
16,
7734,
7561,
2893,
13,
1216,
16740,
5247,
288,
5411,
775,
288,
10792,
276,
273,
261,
6778,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
540,
1071,
7766,
751,
3908,
12,
780,
11989,
461,
16,
7734,
514,
8620,
16,
1160,
8526,
11896,
966,
16,
7734,
7561,
2893,
13,
1216,
16740,
5247,
288,
5411,
775,
288,
10792,
276,
273,
261,
6778,
... |
if (javaClass == Object.class) { javaClass = rubyObject.getJavaClass(); } if (javaClass == Boolean.TYPE || javaClass == Boolean.class) { return new Boolean(rubyObject.isTrue()); } if (javaClass == Integer.TYPE || javaClass == Integer.class) { return new Integer((int)((RubyFixnum)rubyObject).getLongValue()); } if (javaClass == Long.TYPE || javaClass == Long.class) { return new Long(((RubyFixnum)rubyObject).getLongValue()); } if (javaClass == Float.TYPE || javaClass == Float.class) { return new Float((float)((RubyFloat)rubyObject).getDoubleValue()); } if (javaClass == Double.TYPE || javaClass == Double.class) { return new Double(((RubyFloat)rubyObject).getDoubleValue()); } if (javaClass == String.class) { return ((RubyString)rubyObject).getValue(); } return ((RubyJavaObject)rubyObject).getValue(); | return rubyObject.toString(); | public static Object convertRubyToJava(Ruby ruby, RubyObject rubyObject, Class javaClass) { if (rubyObject == ruby.getNil()) { return null; } if (javaClass.isArray()) { try { Class arrayClass = javaClass.getComponentType(); int len = (int)((RubyArray)rubyObject).length(); Object javaObject = Array.newInstance(arrayClass, len); for (int i = 0; i < len; i++) { Object item = convertRubyToJava(ruby, ((RubyArray)rubyObject).entry(i), arrayClass); Array.set(javaObject, i, item); } return javaObject; } catch (NegativeArraySizeException ex) { } } if (javaClass == Object.class) { javaClass = rubyObject.getJavaClass(); } if (javaClass == Boolean.TYPE || javaClass == Boolean.class) { return new Boolean(rubyObject.isTrue()); } if (javaClass == Integer.TYPE || javaClass == Integer.class) { return new Integer((int)((RubyFixnum)rubyObject).getLongValue()); } if (javaClass == Long.TYPE || javaClass == Long.class) { return new Long(((RubyFixnum)rubyObject).getLongValue()); } if (javaClass == Float.TYPE || javaClass == Float.class) { return new Float((float)((RubyFloat)rubyObject).getDoubleValue()); } if (javaClass == Double.TYPE || javaClass == Double.class) { return new Double(((RubyFloat)rubyObject).getDoubleValue()); } if (javaClass == String.class) { return ((RubyString)rubyObject).getValue(); } return ((RubyJavaObject)rubyObject).getValue(); } | 49476 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49476/59743974f1f8d5a50153b05647dac2d75d510976/JavaUtil.java/clean/org/jruby/javasupport/JavaUtil.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
1033,
1765,
54,
10340,
774,
5852,
12,
54,
10340,
22155,
16,
19817,
921,
22155,
921,
16,
1659,
2252,
797,
13,
288,
3639,
309,
261,
27768,
921,
422,
22155,
18,
588,
12616,
10756,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
1033,
1765,
54,
10340,
774,
5852,
12,
54,
10340,
22155,
16,
19817,
921,
22155,
921,
16,
1659,
2252,
797,
13,
288,
3639,
309,
261,
27768,
921,
422,
22155,
18,
588,
12616,
10756,... |
/* | public void execute( PrintStream out,HttpInput query_parameters,PlanServiceContext psc,PlanServiceUtilities psu ) throws Exception { if(MonitoringUtils.debug>0) System.out.println("assign psp got called $$$$$$$$$$$$$$$$$$$$$$$"); if(query_parameters.isPostRequest()) { if(MonitoringUtils.debug>0) System.out.println("is post"); //Vector v=query_parameters.getBodyAsString(); //for(int i=0;i<v.size();i++) //{ String x= query_parameters.getBodyAsString(); if(MonitoringUtils.debug>0) System.out.println("got resp element"+x); Vector vec=MonitoringUtils.parseString(x,'&'); //} String type=null; String Sensor=null; String id=null; long unique_id=0; String Analyzer=null; if(!vec.isEmpty()) { if(vec.size()>3) { type=(MonitoringUtils.parseString(vec.elementAt(0).toString(),'=')).elementAt(1).toString(); if(MonitoringUtils.debug>0) System.out.println("type is :"+type); id=(MonitoringUtils.parseString(vec.elementAt(1).toString(),'=')).elementAt(1).toString(); if(MonitoringUtils.debug>0) System.out.println("id in string is :"+id); try { Long lg=new Long (id.trim()); unique_id=lg.longValue(); System.out.println("id in long is :"+unique_id); } catch(Exception exp) { exp.printStackTrace(); } Sensor=(MonitoringUtils.parseString(vec.elementAt(2).toString(),'=')).elementAt(1).toString(); if(MonitoringUtils.debug>0) System.out.println("Sensor is :"+Sensor); Analyzer=(MonitoringUtils.parseString(vec.elementAt(3).toString(),'=')).elementAt(1).toString(); if(MonitoringUtils.debug>0) System.out.println("analyzer is :"+Analyzer); } else { System.out.println("Error in url parameter"); } } Collection response=psc.getServerPlugInSupport().queryForSubscriber(new responsePredicate()); Vector responsetasks= getResponseObj(response,unique_id); if(responsetasks.size()> 1) { System.out.println("too many response::::::::::"); } ResponseObj robj=(ResponseObj)responsetasks.elementAt(0); Organization sensororg= findOrg(robj,Sensor,"sensor"); Organization analyzerorg=findOrg(robj,Analyzer,"Analyzer"); cmdObj cmd= new cmdObj(type,sensororg, analyzerorg); psc.getServerPlugInSupport().publishAddForSubscriber(cmd); out.println("<html>"); out.println( "<body>"); out.print("<h2> Started providing sensor data for event" +type+"</h2>"); out.println("Details" ); out.println("<ul>"); out.println("<li> Sensor from manager agent:"+sensororg.getClusterPG().getClusterIdentifier().getAddress()+"</li>"); out.println("<li> analyzer from manager agent:"+analyzerorg.getClusterPG().getClusterIdentifier().getAddress()+"</li>"); out.println("</ul>"); out.println("<p>"); out.println("Query Parameters are :"+query_parameters); out.println("<p>"); /* ServerPlugInSupport sps; // url and cluster info String clusterID; String encodedClusterID; String base_url; String cluster_url; String cluster_psp_url; String psp_path; sps = psc.getServerPlugInSupport(); // url and cluster info clusterID = sps.getClusterIDAsString(); encodedClusterID = URLEncoder.encode(clusterID); int port = psc.getLocalPort(); String loc; try { loc = psc.getLocalAddress().getLocalHost().getHostAddress(); } catch (Exception e) { System.err.println("UNABLE TO FIND HOST!"); loc = "UNKNOWN"; } base_url = "http://"+loc+":"+port+"/"; cluster_url = base_url+"$"+encodedClusterID; if (clusterID != null) { */ out.print("<a href=\"/Search.PSP\">"); // link to cluster out.print("Search </a> "); for(int i=0;i<responsetasks.size();i++) { if(MonitoringUtils.debug>0) System.out.println("vec element at ::"+i+responsetasks.elementAt(i).toString()); } } else { System.out.println("not a post response"); } out.flush(); out.close(); } | 12869 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12869/24afb93e387b09b61fc6bc70149feaae5a6e0572/PSP_Assign.java/clean/securityservices/src/com/nai/security/monitoring/ui/PSP_Assign.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1836,
12,
21677,
596,
16,
2940,
1210,
843,
67,
3977,
16,
5365,
1179,
1042,
293,
1017,
16,
5365,
1179,
11864,
4250,
89,
262,
1216,
1185,
565,
288,
202,
430,
12,
18410,
1989,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1836,
12,
21677,
596,
16,
2940,
1210,
843,
67,
3977,
16,
5365,
1179,
1042,
293,
1017,
16,
5365,
1179,
11864,
4250,
89,
262,
1216,
1185,
565,
288,
202,
430,
12,
18410,
1989,
1... | |
System.out.println("Provider " + nsdigest.getProvider()); System.out.println("algorithm " + nsdigest.getAlgorithm()); System.out.println("length of digest " + nsdigest.getDigestLength()); if( nsdigestOut.length == nsdigest.getDigestLength() ) { System.out.println("digest output size is " + nsdigestOut.length); | if( mozillaDigestOut.length == mozillaDigest.getDigestLength() ) { System.out.println(mozillaDigest.getAlgorithm() + " " + " digest output size is " + mozillaDigestOut.length); | public static boolean testJSSDigest(String alg, byte[] toBeDigested) throws Exception { byte[] nsdigestOut; byte[] sundigestOut; java.security.MessageDigest nsdigest = java.security.MessageDigest.getInstance(alg, "Mozilla-JSS"); nsdigestOut = nsdigest.digest(toBeDigested); System.out.println("Provider " + nsdigest.getProvider()); System.out.println("algorithm " + nsdigest.getAlgorithm()); System.out.println("length of digest " + nsdigest.getDigestLength()); if( nsdigestOut.length == nsdigest.getDigestLength() ) { System.out.println("digest output size is " + nsdigestOut.length); } else { throw new Exception("ERROR: digest output size is "+ nsdigestOut.length + ", should be "+nsdigest.getDigestLength() ); } return true; } | 51275 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51275/7b145dd9ac02a9b498816737db5aac9deb70c6d1/DigestTest.java/buggy/security/jss/org/mozilla/jss/tests/DigestTest.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
1250,
1842,
46,
1260,
9568,
12,
780,
11989,
16,
1160,
8526,
21333,
4907,
3149,
13,
565,
1216,
1185,
288,
3639,
1160,
8526,
3153,
10171,
1182,
31,
3639,
1160,
8526,
272,
1074,
3... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
1250,
1842,
46,
1260,
9568,
12,
780,
11989,
16,
1160,
8526,
21333,
4907,
3149,
13,
565,
1216,
1185,
288,
3639,
1160,
8526,
3153,
10171,
1182,
31,
3639,
1160,
8526,
272,
1074,
3... |
UserFile file = new UserFile(); file.setContent("simple content of global file!"); file.setOwnerID(Long.valueOf(150)); file.setType(UserFile.UFT_THEME); | public void saveAndLoad() throws DAOException { UserFile file = new UserFile(); file.setContent("simple content of global file!"); file.setOwnerID(Long.valueOf(150)); file.setType(UserFile.UFT_THEME); fileDAO.save(file); UserFile file2 = fileDAO.load(file.getId()); assertEquals(file, file2); } | 48076 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/48076/23a7bf0759d441dcf52f44009903cbc7f2d08b3d/UserFileDAOHibernateImplTest.java/clean/src/tests/dao/hr/fer/zemris/vhdllab/dao/impl/hibernate/UserFileDAOHibernateImplTest.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
1923,
1876,
2563,
1435,
1216,
463,
20463,
503,
288,
202,
202,
1299,
812,
585,
273,
394,
2177,
812,
5621,
202,
202,
768,
18,
542,
1350,
2932,
9647,
913,
434,
2552,
585,
44... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
1923,
1876,
2563,
1435,
1216,
463,
20463,
503,
288,
202,
202,
1299,
812,
585,
273,
394,
2177,
812,
5621,
202,
202,
768,
18,
542,
1350,
2932,
9647,
913,
434,
2552,
585,
44... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.