bugged stringlengths 6 599k | fixed stringlengths 10 599k | __index_level_0__ int64 0 1.13M |
|---|---|---|
public void run() { int n = 0; int counter = 0; // lets give him more to do ;-)// while (((new Date().getTime() - GlobalVars.TIME_STAMP.getTime()) / 600000) > 0) { for (int i = 0; i <= 5000; i++) { System.out.println("--- INTERVAL: " + ++n + " ---"); int supply = Math.min(water, logWaterRequest); // wa... | public void run() { int n = 0; int counter = 0; // lets give him more to do ;-)// while (((new Date().getTime() - GlobalVars.TIME_STAMP.getTime()) / 600000) > 0) { for (int i = 0; i <= 5000; i++) { System.out.println("--- INTERVAL: " + ++n + " ---"); int supply = Math.min(water, logWaterRequest); // wa... | 1,101,995 |
public void run() { int n = 0; int counter = 0; // lets give him more to do ;-)// while (((new Date().getTime() - GlobalVars.TIME_STAMP.getTime()) / 600000) > 0) { for (int i = 0; i <= 5000; i++) { System.out.println("--- INTERVAL: " + ++n + " ---"); int supply = Math.min(water, logWaterRequest); // wa... | public void run() { int n = 0; int counter = 0; // lets give him more to do ;-)// while (((new Date().getTime() - GlobalVars.TIME_STAMP.getTime()) / 600000) > 0) { for (int i = 0; i <= 5000; i++) { System.out.println("--- INTERVAL: " + ++n + " ---"); int supply = Math.min(water, logWaterRequest); // wa... | 1,101,996 |
public void run() { int n = 0; int counter = 0; // lets give him more to do ;-)// while (((new Date().getTime() - GlobalVars.TIME_STAMP.getTime()) / 600000) > 0) { for (int i = 0; i <= 5000; i++) { System.out.println("--- INTERVAL: " + ++n + " ---"); int supply = Math.min(water, logWaterRequest); // wa... | public void run() { int n = 0; int counter = 0; // lets give him more to do ;-)// while (((new Date().getTime() - GlobalVars.TIME_STAMP.getTime()) / 600000) > 0) { for (int i = 0; i <= 5000; i++) { System.out.println("--- INTERVAL: " + ++n + " ---"); int supply = Math.min(water, logWaterRequest); // wa... | 1,101,997 |
public Element(short tmpAngle, short tmpPosX, short tmpPosY, int tmpWater) { System.out.println("--- Element Constructor SPAWNED ---"); id = ++GlobalVars.ELEMENTCOUNTER; angle = tmpAngle; posX = tmpPosX; posY = tmpPosY; water = tmpWater; length = new MathFloat(2000, (byte)3); thickness = new MathFloat(10... | public Element(short tmpAngle, short tmpPosX, short tmpPosY, int tmpWater) { System.out.println("--- Element Constructor SPAWNED ---"); id = ++GlobalVars.ELEMENTCOUNTER; angle = tmpAngle; posX = tmpPosX; posY = tmpPosY; water = tmpWater; length = new MathFloat(2000, (byte)3); thickness = new MathFloat(10... | 1,101,999 |
public Element(short tmpAngle, short tmpPosX, short tmpPosY, int tmpWater) { System.out.println("--- Element Constructor SPAWNED ---"); id = ++GlobalVars.ELEMENTCOUNTER; angle = tmpAngle; posX = tmpPosX; posY = tmpPosY; water = tmpWater; length = new MathFloat(2000, (byte)3); thickness = new MathFloat(10... | public Element(short tmpAngle, short tmpPosX, short tmpPosY, int tmpWater) { System.out.println("--- Element Constructor SPAWNED ---"); id = ++GlobalVars.COUNTERELEMENT; angle = tmpAngle; posX = tmpPosX; posY = tmpPosY; water = tmpWater; length = new MathFloat(2000, (byte)3); thickness = new MathFloat(10... | 1,102,000 |
public Element(short tmpAngle, short tmpPosX, short tmpPosY, int tmpWater) { System.out.println("--- Element Constructor SPAWNED ---"); id = ++GlobalVars.ELEMENTCOUNTER; angle = tmpAngle; posX = tmpPosX; posY = tmpPosY; water = tmpWater; length = new MathFloat(2000, (byte)3); thickness = new MathFloat(10... | public Element(short tmpAngle, short tmpPosX, short tmpPosY, int tmpWater) { System.out.println("--- Element Constructor SPAWNED ---"); id = ++GlobalVars.ELEMENTCOUNTER; angle = tmpAngle; posX = tmpPosX; posY = tmpPosY; water = tmpWater; length = new MathFloat(2000, (byte)3); thickness = new MathFloat(10... | 1,102,001 |
public Element(short tmpAngle, short tmpPosX, short tmpPosY, int tmpWater) { System.out.println("--- Element Constructor SPAWNED ---"); id = ++GlobalVars.ELEMENTCOUNTER; angle = tmpAngle; posX = tmpPosX; posY = tmpPosY; water = tmpWater; length = new MathFloat(2000, (byte)3); thickness = new MathFloat(10... | public Element(short tmpAngle, short tmpPosX, short tmpPosY, int tmpWater) { System.out.println("--- Element Constructor SPAWNED ---"); id = ++GlobalVars.ELEMENTCOUNTER; angle = tmpAngle; posX = tmpPosX; posY = tmpPosY; water = tmpWater; length = new MathFloat(2000, (byte)3); thickness = new MathFloat(10... | 1,102,002 |
public int getChildWaterRequest() { System.out.println("--- ID: "+ id +" | Element WaterRequest BEGINN ---"); int tmpChildWaterRequest = 0; System.out.println("--- ID: "+ id +" | Water: " + water + " ---"); demand = (thickness.value * length.value / 10000); System.out.println("--- ID: "+ id +" | Demand: " + d... | public int getChildWaterRequest() { System.out.println("--- ID: "+ id +" | Element WaterRequest BEGINN ---"); int tmpChildWaterRequest = 0; System.out.println("--- ID: "+ id +" | Water: " + water + " ---"); demand = (thickness.value * length.value / 10000); System.out.println("--- ID: "+ id +" | Demand: " + d... | 1,102,004 |
public int getChildWaterRequest() { System.out.println("--- ID: "+ id +" | Element WaterRequest BEGINN ---"); int tmpChildWaterRequest = 0; System.out.println("--- ID: "+ id +" | Water: " + water + " ---"); demand = (thickness.value * length.value / 10000); System.out.println("--- ID: "+ id +" | Demand: " + d... | public int getChildWaterRequest() { System.out.println("--- ID: "+ id +" | Element WaterRequest BEGINN ---"); int tmpChildWaterRequest = 0; System.out.println("--- ID: "+ id +" | Water: " + water + " ---"); demand = (thickness.value * length.value / 10000); System.out.println("--- ID: "+ id +" | Demand: " + d... | 1,102,005 |
public int getChildWaterRequest() { System.out.println("--- ID: "+ id +" | Element WaterRequest BEGINN ---"); int tmpChildWaterRequest = 0; System.out.println("--- ID: "+ id +" | Water: " + water + " ---"); demand = (thickness.value * length.value / 10000); System.out.println("--- ID: "+ id +" | Demand: " + d... | public int getChildWaterRequest() { System.out.println("--- ID: "+ id +" | Element WaterRequest BEGINN ---"); int tmpChildWaterRequest = 0; System.out.println("--- ID: "+ id +" | Water: " + water + " ---"); demand = (thickness.value * length.value / 10000); System.out.println("--- ID: "+ id +" | Demand: " + d... | 1,102,006 |
public int getChildWaterRequest() { System.out.println("--- ID: "+ id +" | Element WaterRequest BEGINN ---"); int tmpChildWaterRequest = 0; System.out.println("--- ID: "+ id +" | Water: " + water + " ---"); demand = (thickness.value * length.value / 10000); System.out.println("--- ID: "+ id +" | Demand: " + d... | public int getChildWaterRequest() { System.out.println("--- ID: "+ id +" | Element WaterRequest BEGINN ---"); int tmpChildWaterRequest = 0; System.out.println("--- ID: "+ id +" | Water: " + water + " ---"); demand = (thickness.value * length.value / 10000); System.out.println("--- ID: "+ id +" | Demand: " + d... | 1,102,007 |
public int getChildWaterRequest() { System.out.println("--- ID: "+ id +" | Element WaterRequest BEGINN ---"); int tmpChildWaterRequest = 0; System.out.println("--- ID: "+ id +" | Water: " + water + " ---"); demand = (thickness.value * length.value / 10000); System.out.println("--- ID: "+ id +" | Demand: " + d... | public int getChildWaterRequest() { System.out.println("--- ID: "+ id +" | Element WaterRequest BEGINN ---"); int tmpChildWaterRequest = 0; System.out.println("--- ID: "+ id +" | Water: " + water + " ---"); demand = (thickness.value * length.value / 10000); System.out.println("--- ID: "+ id +" | Demand: " + d... | 1,102,008 |
public int getChildWaterRequest() { System.out.println("--- ID: "+ id +" | Element WaterRequest BEGINN ---"); int tmpChildWaterRequest = 0; System.out.println("--- ID: "+ id +" | Water: " + water + " ---"); demand = (thickness.value * length.value / 10000); System.out.println("--- ID: "+ id +" | Demand: " + d... | public int getChildWaterRequest() { System.out.println("--- ID: "+ id +" | Element WaterRequest BEGINN ---"); int tmpChildWaterRequest = 0; System.out.println("--- ID: "+ id +" | Water: " + water + " ---"); demand = (thickness.value * length.value / 10000); System.out.println("--- ID: "+ id +" | Demand: " + d... | 1,102,009 |
public int getChildWaterRequest() { System.out.println("--- ID: "+ id +" | Element WaterRequest BEGINN ---"); int tmpChildWaterRequest = 0; System.out.println("--- ID: "+ id +" | Water: " + water + " ---"); demand = (thickness.value * length.value / 10000); System.out.println("--- ID: "+ id +" | Demand: " + d... | public int getChildWaterRequest() { System.out.println("--- ID: "+ id +" | Element WaterRequest BEGINN ---"); int tmpChildWaterRequest = 0; System.out.println("--- ID: "+ id +" | Water: " + water + " ---"); demand = (thickness.value * length.value / 10000); System.out.println("--- ID: "+ id +" | Demand: " + d... | 1,102,010 |
public int getChildWaterRequest() { System.out.println("--- ID: "+ id +" | Element WaterRequest BEGINN ---"); int tmpChildWaterRequest = 0; System.out.println("--- ID: "+ id +" | Water: " + water + " ---"); demand = (thickness.value * length.value / 10000); System.out.println("--- ID: "+ id +" | Demand: " + d... | public int getChildWaterRequest() { System.out.println("--- ID: "+ id +" | Element WaterRequest BEGINN ---"); int tmpChildWaterRequest = 0; System.out.println("--- ID: "+ id +" | Water: " + water + " ---"); demand = (thickness.value * length.value / 10000); System.out.println("--- ID: "+ id +" | Demand: " + d... | 1,102,011 |
public int getChildWaterRequest() { System.out.println("--- ID: "+ id +" | Element WaterRequest BEGINN ---"); int tmpChildWaterRequest = 0; System.out.println("--- ID: "+ id +" | Water: " + water + " ---"); demand = (thickness.value * length.value / 10000); System.out.println("--- ID: "+ id +" | Demand: " + d... | public int getChildWaterRequest() { System.out.println("--- ID: "+ id +" | Element WaterRequest BEGINN ---"); int tmpChildWaterRequest = 0; System.out.println("--- ID: "+ id +" | Water: " + water + " ---"); demand = (thickness.value * length.value / 10000); System.out.println("--- ID: "+ id +" | Demand: " + d... | 1,102,012 |
public int getChildWaterRequest() { System.out.println("--- ID: "+ id +" | Element WaterRequest BEGINN ---"); int tmpChildWaterRequest = 0; System.out.println("--- ID: "+ id +" | Water: " + water + " ---"); demand = (thickness.value * length.value / 10000); System.out.println("--- ID: "+ id +" | Demand: " + d... | public int getChildWaterRequest() { System.out.println("--- ID: "+ id +" | Element WaterRequest BEGINN ---"); int tmpChildWaterRequest = 0; System.out.println("--- ID: "+ id +" | Water: " + water + " ---"); demand = (thickness.value * length.value / 10000); System.out.println("--- ID: "+ id +" | Demand: " + d... | 1,102,013 |
public int getChildWaterRequest() { System.out.println("--- ID: "+ id +" | Element WaterRequest BEGINN ---"); int tmpChildWaterRequest = 0; System.out.println("--- ID: "+ id +" | Water: " + water + " ---"); demand = (thickness.value * length.value / 10000); System.out.println("--- ID: "+ id +" | Demand: " + d... | public int getChildWaterRequest() { System.out.println("--- ID: "+ id +" | Element WaterRequest BEGINN ---"); int tmpChildWaterRequest = 0; System.out.println("--- ID: "+ id +" | Water: " + water + " ---"); demand = (thickness.value * length.value / 10000); System.out.println("--- ID: "+ id +" | Demand: " + d... | 1,102,014 |
public void draw(Graphics g) { System.out.println("--- Element Draw BEGINN ---"); short tmpPosX = posX; short tmpPosY = posY; boolean thicknessEven = false; boolean drawHorizontal = false; if (angle >= 21 || angle <= 3 || (angle >= 9 && angle <= 15)) { drawHorizontal = true; tmpPosX -= thickness.getSho... | public void draw(Graphics g) { System.out.println("--- ID: "+ id +" | Element Draw BEGINN ---"); short tmpPosX = posX; short tmpPosY = posY; boolean thicknessEven = false; boolean drawHorizontal = false; if (angle >= 21 || angle <= 3 || (angle >= 9 && angle <= 15)) { drawHorizontal = true; tmpPosX -= t... | 1,102,015 |
public void draw(Graphics g) { System.out.println("--- Element Draw BEGINN ---"); short tmpPosX = posX; short tmpPosY = posY; boolean thicknessEven = false; boolean drawHorizontal = false; if (angle >= 21 || angle <= 3 || (angle >= 9 && angle <= 15)) { drawHorizontal = true; tmpPosX -= thickness.getSho... | public void draw(Graphics g) { System.out.println("--- Element Draw BEGINN ---"); short tmpPosX = posX; short tmpPosY = posY; boolean thicknessEven = false; boolean drawHorizontal = false; if (angle >= 21 || angle <= 3 || (angle >= 9 && angle <= 15)) { drawHorizontal = true; tmpPosX -= thickness.getSho... | 1,102,016 |
public void draw(Graphics g) { System.out.println("--- Element Draw BEGINN ---"); short tmpPosX = posX; short tmpPosY = posY; boolean thicknessEven = false; boolean drawHorizontal = false; if (angle >= 21 || angle <= 3 || (angle >= 9 && angle <= 15)) { drawHorizontal = true; tmpPosX -= thickness.getSho... | public void draw(Graphics g) { System.out.println("--- Element Draw BEGINN ---"); short tmpPosX = posX; short tmpPosY = posY; boolean thicknessEven = false; boolean drawHorizontal = false; if (angle >= 21 || angle <= 3 || (angle >= 9 && angle <= 15)) { drawHorizontal = true; tmpPosX -= thickness.getSho... | 1,102,017 |
public void draw(Graphics g) { System.out.println("--- Element Draw BEGINN ---"); short tmpPosX = posX; short tmpPosY = posY; boolean thicknessEven = false; boolean drawHorizontal = false; if (angle >= 21 || angle <= 3 || (angle >= 9 && angle <= 15)) { drawHorizontal = true; tmpPosX -= thickness.getSho... | public void draw(Graphics g) { System.out.println("--- Element Draw BEGINN ---"); short tmpPosX = posX; short tmpPosY = posY; boolean thicknessEven = false; boolean drawHorizontal = false; if (angle >= 21 || angle <= 3 || (angle >= 9 && angle <= 15)) { drawHorizontal = true; tmpPosX -= thickness.getSho... | 1,102,018 |
public void draw(Graphics g) { System.out.println("--- Element Draw BEGINN ---"); short tmpPosX = posX; short tmpPosY = posY; boolean thicknessEven = false; boolean drawHorizontal = false; if (angle >= 21 || angle <= 3 || (angle >= 9 && angle <= 15)) { drawHorizontal = true; tmpPosX -= thickness.getSho... | public void draw(Graphics g) { System.out.println("--- Element Draw BEGINN ---"); short tmpPosX = posX; short tmpPosY = posY; boolean thicknessEven = false; boolean drawHorizontal = false; if (angle >= 21 || angle <= 3 || (angle >= 9 && angle <= 15)) { drawHorizontal = true; tmpPosX -= thickness.getSho... | 1,102,019 |
public void draw(Graphics g) { System.out.println("--- Element Draw BEGINN ---"); short tmpPosX = posX; short tmpPosY = posY; boolean thicknessEven = false; boolean drawHorizontal = false; if (angle >= 21 || angle <= 3 || (angle >= 9 && angle <= 15)) { drawHorizontal = true; tmpPosX -= thickness.getSho... | public void draw(Graphics g) { System.out.println("--- Element Draw BEGINN ---"); short tmpPosX = posX; short tmpPosY = posY; boolean thicknessEven = false; boolean drawHorizontal = false; if (angle >= 21 || angle <= 3 || (angle >= 9 && angle <= 15)) { drawHorizontal = true; tmpPosX -= thickness.getSho... | 1,102,020 |
public void draw(Graphics g) { System.out.println("--- Element Draw BEGINN ---"); short tmpPosX = posX; short tmpPosY = posY; boolean thicknessEven = false; boolean drawHorizontal = false; if (angle >= 21 || angle <= 3 || (angle >= 9 && angle <= 15)) { drawHorizontal = true; tmpPosX -= thickness.getSho... | public void draw(Graphics g) { System.out.println("--- Element Draw BEGINN ---"); short tmpPosX = posX; short tmpPosY = posY; boolean thicknessEven = false; boolean drawHorizontal = false; if (angle >= 21 || angle <= 3 || (angle >= 9 && angle <= 15)) { drawHorizontal = true; tmpPosX -= thickness.getSho... | 1,102,021 |
public void draw(Graphics g) { System.out.println("--- Element Draw BEGINN ---"); short tmpPosX = posX; short tmpPosY = posY; boolean thicknessEven = false; boolean drawHorizontal = false; if (angle >= 21 || angle <= 3 || (angle >= 9 && angle <= 15)) { drawHorizontal = true; tmpPosX -= thickness.getSho... | public void draw(Graphics g) { System.out.println("--- Element Draw BEGINN ---"); short tmpPosX = posX; short tmpPosY = posY; boolean thicknessEven = false; boolean drawHorizontal = false; if (angle >= 21 || angle <= 3 || (angle >= 9 && angle <= 15)) { drawHorizontal = true; tmpPosX -= thickness.getSho... | 1,102,022 |
public void draw(Graphics g) { System.out.println("--- Element Draw BEGINN ---"); short tmpPosX = posX; short tmpPosY = posY; boolean thicknessEven = false; boolean drawHorizontal = false; if (angle >= 21 || angle <= 3 || (angle >= 9 && angle <= 15)) { drawHorizontal = true; tmpPosX -= thickness.getSho... | public void draw(Graphics g) { System.out.println("--- Element Draw BEGINN ---"); short tmpPosX = posX; short tmpPosY = posY; boolean thicknessEven = false; boolean drawHorizontal = false; if (angle >= 21 || angle <= 3 || (angle >= 9 && angle <= 15)) { drawHorizontal = true; tmpPosX -= thickness.getSho... | 1,102,023 |
public void grow (int supply) { System.out.println("--- ID: "+ id +" | Element Grow BEGINN ---"); System.out.println("--- ID: "+ id +" | Supply: " + supply + "---"); // Usage int supplyTaken = 0; short waterPercentage = (short)(water * 100 / (demand * 100)); if ((childLeft != null || childCenter != null || c... | public void grow (int supply) { System.out.println("--- ID: "+ id +" | Element Grow BEGINN ---"); // Usage int supplyTaken = 0; short waterPercentage = (short)(water * 100 / (demand * 100)); if ((childLeft != null || childCenter != null || childRight != null) && childWaterRequest/2 > supply && waterPercenta... | 1,102,024 |
public void grow (int supply) { System.out.println("--- ID: "+ id +" | Element Grow BEGINN ---"); System.out.println("--- ID: "+ id +" | Supply: " + supply + "---"); // Usage int supplyTaken = 0; short waterPercentage = (short)(water * 100 / (demand * 100)); if ((childLeft != null || childCenter != null || c... | public void grow (int supply) { System.out.println("--- ID: "+ id +" | Element Grow BEGINN ---"); System.out.println("--- ID: "+ id +" | Supply: " + supply + "---"); // Usage int supplyTaken = 0; short waterPercentage = (short)(water * 100 / (demand * 100)); if ((childLeft != null || childCenter != null || c... | 1,102,025 |
public void grow (int supply) { System.out.println("--- ID: "+ id +" | Element Grow BEGINN ---"); System.out.println("--- ID: "+ id +" | Supply: " + supply + "---"); // Usage int supplyTaken = 0; short waterPercentage = (short)(water * 100 / (demand * 100)); if ((childLeft != null || childCenter != null || c... | public void grow (int supply) { System.out.println("--- ID: "+ id +" | Element Grow BEGINN ---"); System.out.println("--- ID: "+ id +" | Supply: " + supply + "---"); // Usage int supplyTaken = 0; short waterPercentage = (short)(water * 100 / (demand * 100)); if ((childLeft != null || childCenter != null || c... | 1,102,026 |
public void grow (int supply) { System.out.println("--- ID: "+ id +" | Element Grow BEGINN ---"); System.out.println("--- ID: "+ id +" | Supply: " + supply + "---"); // Usage int supplyTaken = 0; short waterPercentage = (short)(water * 100 / (demand * 100)); if ((childLeft != null || childCenter != null || c... | public void grow (int supply) { System.out.println("--- ID: "+ id +" | Element Grow BEGINN ---"); System.out.println("--- ID: "+ id +" | Supply: " + supply + "---"); // Usage int supplyTaken = 0; short waterPercentage = (short)(water * 100 / (demand * 100)); if ((childLeft != null || childCenter != null || c... | 1,102,027 |
public void grow (int supply) { System.out.println("--- ID: "+ id +" | Element Grow BEGINN ---"); System.out.println("--- ID: "+ id +" | Supply: " + supply + "---"); // Usage int supplyTaken = 0; short waterPercentage = (short)(water * 100 / (demand * 100)); if ((childLeft != null || childCenter != null || c... | public void grow (int supply) { System.out.println("--- ID: "+ id +" | Element Grow BEGINN ---"); System.out.println("--- ID: "+ id +" | Supply: " + supply + "---"); // Usage int supplyTaken = 0; short waterPercentage = (short)(water * 100 / (demand * 100)); if ((childLeft != null || childCenter != null || c... | 1,102,028 |
public void grow (int supply) { System.out.println("--- ID: "+ id +" | Element Grow BEGINN ---"); System.out.println("--- ID: "+ id +" | Supply: " + supply + "---"); // Usage int supplyTaken = 0; short waterPercentage = (short)(water * 100 / (demand * 100)); if ((childLeft != null || childCenter != null || c... | public void grow (int supply) { System.out.println("--- ID: "+ id +" | Element Grow BEGINN ---"); System.out.println("--- ID: "+ id +" | Supply: " + supply + "---"); // Usage int supplyTaken = 0; short waterPercentage = (short)(water * 100 / (demand * 100)); if ((childLeft != null || childCenter != null || c... | 1,102,029 |
public void grow (int supply) { System.out.println("--- ID: "+ id +" | Element Grow BEGINN ---"); System.out.println("--- ID: "+ id +" | Supply: " + supply + "---"); // Usage int supplyTaken = 0; short waterPercentage = (short)(water * 100 / (demand * 100)); if ((childLeft != null || childCenter != null || c... | public void grow (int supply) { System.out.println("--- ID: "+ id +" | Element Grow BEGINN ---"); System.out.println("--- ID: "+ id +" | Supply: " + supply + "---"); // Usage int supplyTaken = 0; short waterPercentage = (short)(water * 100 / (demand * 100)); if ((childLeft != null || childCenter != null || c... | 1,102,030 |
public void grow (int supply) { System.out.println("--- ID: "+ id +" | Element Grow BEGINN ---"); System.out.println("--- ID: "+ id +" | Supply: " + supply + "---"); // Usage int supplyTaken = 0; short waterPercentage = (short)(water * 100 / (demand * 100)); if ((childLeft != null || childCenter != null || c... | public void grow (int supply) { System.out.println("--- ID: "+ id +" | Element Grow BEGINN ---"); System.out.println("--- ID: "+ id +" | Supply: " + supply + "---"); // Usage int supplyTaken = 0; short waterPercentage = (short)(water * 100 / (demand * 100)); if ((childLeft != null || childCenter != null || c... | 1,102,031 |
public void grow (int supply) { System.out.println("--- ID: "+ id +" | Element Grow BEGINN ---"); System.out.println("--- ID: "+ id +" | Supply: " + supply + "---"); // Usage int supplyTaken = 0; short waterPercentage = (short)(water * 100 / (demand * 100)); if ((childLeft != null || childCenter != null || c... | public void grow (int supply) { System.out.println("--- ID: "+ id +" | Element Grow BEGINN ---"); System.out.println("--- ID: "+ id +" | Supply: " + supply + "---"); // Usage int supplyTaken = 0; short waterPercentage = (short)(water * 100 / (demand * 100)); if ((childLeft != null || childCenter != null || c... | 1,102,032 |
public void grow (int supply) { System.out.println("--- ID: "+ id +" | Element Grow BEGINN ---"); System.out.println("--- ID: "+ id +" | Supply: " + supply + "---"); // Usage int supplyTaken = 0; short waterPercentage = (short)(water * 100 / (demand * 100)); if ((childLeft != null || childCenter != null || c... | public void grow (int supply) { System.out.println("--- ID: "+ id +" | Element Grow BEGINN ---"); System.out.println("--- ID: "+ id +" | Supply: " + supply + "---"); // Usage int supplyTaken = 0; short waterPercentage = (short)(water * 100 / (demand * 100)); if ((childLeft != null || childCenter != null || c... | 1,102,033 |
public void writeData(int data) { System.out.println("--- IO WRITE (INT)---"); try { dos.writeInt(data); System.out.println("--- IO WRITE VALUE: " + data + " ---"); } catch (IOException e) { System.out.println("--- IO WRITE ERROR VALUE: " + data + " ---"); e.printStackTrace(); } } | public void writeData(String data) { System.out.println("--- IO WRITE (INT)---"); try { dos.writeInt(data); System.out.println("--- IO WRITE VALUE: " + data + " ---"); } catch (IOException e) { System.out.println("--- IO WRITE ERROR VALUE: " + data + " ---"); e.printStackTrace(); } } | 1,102,034 |
public void writeData(int data) { System.out.println("--- IO WRITE (INT)---"); try { dos.writeInt(data); System.out.println("--- IO WRITE VALUE: " + data + " ---"); } catch (IOException e) { System.out.println("--- IO WRITE ERROR VALUE: " + data + " ---"); e.printStackTrace(); } } | public void writeData(int data) { System.out.println("--- IO WRITE (STRING)---"); try { dos.writeInt(data); System.out.println("--- IO WRITE VALUE: " + data + " ---"); } catch (IOException e) { System.out.println("--- IO WRITE ERROR VALUE: " + data + " ---"); e.printStackTrace(); } } | 1,102,035 |
public void writeData(int data) { System.out.println("--- IO WRITE (INT)---"); try { dos.writeInt(data); System.out.println("--- IO WRITE VALUE: " + data + " ---"); } catch (IOException e) { System.out.println("--- IO WRITE ERROR VALUE: " + data + " ---"); e.printStackTrace(); } } | public void writeData(int data) { System.out.println("--- IO WRITE (INT)---"); try { dos.writeUTF(data); System.out.println("--- IO WRITE VALUE: " + data + " ---"); } catch (IOException e) { System.out.println("--- IO WRITE ERROR VALUE: " + data + " ---"); e.printStackTrace(); } } | 1,102,036 |
public void writeData(FileIO data) { boolean tmpChildLeft = false; boolean tmpChildCenter = false; boolean tmpChildRight = false; if (childLeft != null) { tmpChildLeft = true; } if (childCenter != null) { tmpChildCenter = true; } if (childRight != null) { tmpChildRight = true; } // write Vars data.w... | public void writeData(FileIO data) { boolean tmpChildLeft = false; boolean tmpChildCenter = false; boolean tmpChildRight = false; if (childLeft != null) { tmpChildLeft = true; } if (childCenter != null) { tmpChildCenter = true; } if (childRight != null) { tmpChildRight = true; } // write Vars data.w... | 1,102,037 |
public void commandAction(Command c, Displayable d){ body=t.getString(); if (body.length()==0) body=null; if (c==cmdInsMe) { t.insert("/me ", 0); return; } if (c==cmdSmile) { new SmilePicker(display, this); return; } if (c==cmdInsNick) { new AppendNick(display, to); return... | public void commandAction(Command c, Displayable d){ body=t.getString(); if (body.length()==0) body=null; if (c==cmdInsMe) { t.insert("/me ", 0); return; } if (c==cmdSmile) { new SmilePicker(display, this); return; } if (c==cmdInsNick) { new AppendNick(display, to); return... | 1,102,038 |
public void commandAction(Command c, Displayable d){ body=t.getString(); if (body.length()==0) body=null; if (c==cmdInsMe) { t.insert("/me ", 0); return; } if (c==cmdSmile) { new SmilePicker(display, this); return; } if (c==cmdInsNick) { new AppendNick(display, to); return... | public void commandAction(Command c, Displayable d){ body=t.getString(); if (body.length()==0) body=null; if (c==cmdInsMe) { t.insert("/me ", 0); return; } if (c==cmdSmile) { new SmilePicker(display, this); return; } if (c==cmdInsNick) { new AppendNick(display, to); return... | 1,102,039 |
public void commandAction(Command c, Displayable d){ body=t.getString(); if (body.length()==0) body=null; if (c==cmdInsMe) { t.insert("/me ", 0); return; } if (c==cmdSmile) { new SmilePicker(display, this); return; } if (c==cmdInsNick) { new AppendNick(display, to); return... | public void commandAction(Command c, Displayable d){ body=t.getString(); if (body.length()==0) body=null; if (c==cmdInsMe) { t.insert("/me ", 0); return; } if (c==cmdSmile) { new SmilePicker(display, this); return; } if (c==cmdInsNick) { new AppendNick(display, to); return... | 1,102,040 |
public void blockArrived( JabberDataBlock data ) { try { if( data instanceof Iq ) { String type = (String) data.getTypeAttribute(); String id=(String) data.getAttribute("id"); if (id!=null) { if (id.startsW... | public void blockArrived( JabberDataBlock data ) { try { if( data instanceof Iq ) { String type = (String) data.getTypeAttribute(); String id=(String) data.getAttribute("id"); if (id!=null) { if (id.startsW... | 1,102,041 |
public void userKeyPressed(int keyCode){ if (keyCode==KEY_NUM0 /* || keyCode==MOTOE680_REALPLAYER CONFLICT WITH ALCATEL. (platform=J2ME)*/) { if (messageCount==0) return; Object atcursor=getFocusedObject(); Contact c=null; if (atcursor instanceof Contact) c=(Conta... | public void userKeyPressed(int keyCode){ if (keyCode==KEY_NUM0 /* || keyCode==MOTOE680_REALPLAYER CONFLICT WITH ALCATEL. (platform=J2ME)*/) { if (messageCount==0) return; Object atcursor=getFocusedObject(); Contact c=null; if (atcursor instanceof Contact) c=(Conta... | 1,102,042 |
private void key(int keyCode) { boolean isSiemens=false; if (Version.getPlatformName().indexOf("SIE") > -1) isSiemens=true; if (keyCode==-22) { if (isSiemens) { sd.roster.setLight(false); new KeyBlock(display, getTitleItem(), cf.keyLock, cf.ghostMotor, t... | private void key(int keyCode) { boolean isSiemens=false; if (Version.getPlatformName().indexOf("SIE") > -1) isSiemens=true; if (keyCode==-22) { if (isSiemens) { new KeyBlock(display, getTitleItem(), cf.keyLock, cf.ghostMotor, true); retur... | 1,102,043 |
public static List removeInvalidJobs(List jobs, ConverterOptions converterOptions) { List newJobs = new ArrayList(); for (int i = 0; i < jobs.size(); i++) { boolean validOutput = true; if (jobs.get(i) instanceof OutputVideoInfo) { OutputVideoInfo outputVideoInfo = (OutputVideoInfo) jobs.get(i); if (!outp... | public static List removeInvalidJobs(List jobs, ConverterOptions converterOptions) { List newJobs = new ArrayList(); for (int i = 0; i < jobs.size(); i++) { boolean validOutput = true; if (jobs.get(i) instanceof OutputVideoInfo) { OutputVideoInfo outputVideoInfo = (OutputVideoInfo) jobs.get(i); if (!outp... | 1,102,044 |
public static List removeInvalidJobs(List jobs, ConverterOptions converterOptions) { List newJobs = new ArrayList(); for (int i = 0; i < jobs.size(); i++) { boolean validOutput = true; if (jobs.get(i) instanceof OutputVideoInfo) { OutputVideoInfo outputVideoInfo = (OutputVideoInfo) jobs.get(i); if (!outp... | public static List removeInvalidJobs(List jobs, ConverterOptions converterOptions) { List newJobs = new ArrayList(); for (int i = 0; i < jobs.size(); i++) { boolean validOutput = true; if (jobs.get(i) instanceof OutputVideoInfo) { OutputVideoInfo outputVideoInfo = (OutputVideoInfo) jobs.get(i); if (!outp... | 1,102,045 |
public void run(){ int status=getSel().getImageIndex(); try { Roster.isAway=false; if (status==6) { Roster.autoReconnect=false; } else { Roster.autoReconnect=true; } //StaticData.getInstance().rost... | public void run(){ int status=getSel().getImageIndex(); try { Roster.isAway=false; if (status==5) { Roster.autoReconnect=false; } else { Roster.autoReconnect=true; } //StaticData.getInstance().rost... | 1,102,046 |
public void commandAction(Command c, Displayable d){ if (c==cmdAdd){ destroyView(); try { new ContactMessageList((Contact) getFocusedObject(), display); } catch (Exception e) {} return; } if (c==cmdBack) destroyView(); } | public void commandAction(Command c, Displayable d){ if (c==cmdAdd){ destroyView(); try { new ContactMessageList((Contact) getFocusedObject(), display); } catch (Exception e) {} return; } if (c==cmdBack) destroyView(); } | 1,102,047 |
public void eventOk(){ /*Form f=(Form)vcards.elementAt(cursor); display.setCurrent(f); f.setCommandListener(this); f.addCommand(cmdBack); f.addCommand(cmdAdd);*/ new ContactMessageList((Contact) getFocusedObject(), display); } | public void eventOk(){ /*Form f=(Form)vcards.elementAt(cursor); display.setCurrent(f); f.setCommandListener(this); f.addCommand(cmdBack); f.addCommand(cmdAdd);*/ try { new ContactMessageList((Contact) getFocusedObject(), display); } catch (Exception e) {} } | 1,102,048 |
public void execute() throws EnunciateException, IOException { if (this.config == null) { this.config = getConfig(); } final List<DeploymentModule> deploymentModules = this.config.getEnabledModules(); int target = getTarget().ordinal(); for (DeploymentModule deploymentModule : deploymentModules) {... | public void execute() throws EnunciateException, IOException { if (this.config == null) { this.config = loadConfig(); } final List<DeploymentModule> deploymentModules = this.config.getEnabledModules(); int target = getTarget().ordinal(); for (DeploymentModule deploymentModule : deploymentModules) ... | 1,102,049 |
public ColorForm(Display display) { super(); this.display=display; parentView=display.getCurrent(); cl.loadFromStorage(); reloadSkin(); selectionList = new List("Colors", List.IMPLICIT, NAMES, null); selectionLis... | public ColorForm(Display display) { super(); this.display=display; parentView=display.getCurrent(); reloadSkin(); selectionList = new List("Colors", List.IMPLICIT, NAMES, null); selectionList.addCommand(cmdOk); ... | 1,102,050 |
public ColorForm(Display display) { super(); this.display=display; parentView=display.getCurrent(); cl.loadFromStorage(); reloadSkin(); selectionList = new List("Colors", List.IMPLICIT, NAMES, null); selectionLis... | public ColorForm(Display display) { super(); this.display=display; parentView=display.getCurrent(); cl.loadFromStorage(); reloadSkin(); selectionList = new List("Colors", List.IMPLICIT, NAMES, null); selectionLis... | 1,102,051 |
public void commandAction(Command c, Displayable d) { int pos = selectionList.getSelectedIndex(); if (c==cmdLoad) { loadSkin("/skins/skin.txt"); destroyView(); } if (c==cmdCancel) { destroyView(); } else { if (pos == NAMES.length - 1) ... | public void commandAction(Command c, Displayable d) { int pos = selectionList.getSelectedIndex(); if (c==cmdLoad) { loadSkin("/skins/skin.txt"); destroyView(); } if (c==cmdCancel) { destroyView(); } else { if (pos == NAMES.length - 1) ... | 1,102,052 |
public void commandAction(Command c, Displayable d) { int pos = selectionList.getSelectedIndex(); if (c==cmdLoad) { loadSkin("/skins/skin.txt"); destroyView(); } if (c==cmdCancel) { destroyView(); } else { if (pos == NAMES.length - 1) ... | public void commandAction(Command c, Displayable d) { int pos = selectionList.getSelectedIndex(); if (c==cmdLoad) { loadSkin("/skins/skin.txt"); destroyView(); } if (c==cmdCancel) { destroyView(); } else { if (pos == NAMES.length - 1) ... | 1,102,053 |
public void destroyView(){ if (display!=null) display.setCurrent(parentView); ((Canvas)parentView).setFullScreenMode(Config.getInstance().fullscreen); } | public void destroyView(){ if (display!=null) display.setCurrent(parentView); } | 1,102,054 |
public static void reloadSkin() { int[] COLORS = {cl.BALLOON_INK, cl.BALLOON_BGND, cl.LIST_BGND, cl.LIST_BGND_EVEN, cl.LIST_INK, cl.MSG_... | public static void reloadSkin() { int[] COLORS = {cl.BALLOON_INK, cl.BALLOON_BGND, cl.LIST_BGND, cl.LIST_BGND_EVEN, cl.LIST_INK, cl.MSG_... | 1,102,055 |
public void userKeyPressed(int keyCode){ if (keyCode==KEY_NUM0 /* || keyCode==MOTOE680_REALPLAYER CONFLICT WITH ALCATEL. (platform=J2ME)*/) { if (messageCount==0) return; Object atcursor=getFocusedObject(); Contact c=null; if (atcursor instanceof Contact) c=(Conta... | public void userKeyPressed(int keyCode){ if (keyCode==KEY_NUM0 /* || keyCode==MOTOE680_REALPLAYER CONFLICT WITH ALCATEL. (platform=J2ME)*/) { if (messageCount==0) return; Object atcursor=getFocusedObject(); Contact c=null; if (atcursor instanceof Contact) c=(Conta... | 1,102,056 |
public IndirectError(String msg, String returnTo) { this(msg, returnTo, false); } | protected IndirectError(String msg, String returnTo) { this(msg, returnTo, false); } | 1,102,057 |
public void setupServices() throws MalformedURLException { TransportManager transportManager = XFireFactory.newInstance().getXFire().getTransportManager(); ServiceFactory serviceFactory = new JAXWSServiceFactory(transportManager); HashMap<String, Object> properties = new HashMap<String, Object>(); propert... | public void setupServices() throws MalformedURLException { TransportManager transportManager = XFireFactory.newInstance().getXFire().getTransportManager(); ServiceFactory serviceFactory = new JAXWSServiceFactory(transportManager); HashMap<String, Object> properties = new HashMap<String, Object>(); propert... | 1,102,059 |
public ArchiveList(Display display, TextBox target) { super (); this.target=target; setCommandListener(this); addCommand(cmdBack); addCommand(cmdDelete);//#if (FILE_IO) addCommand(cmdExport);//#endif if (target!=null) { addCommand(cmdPaste); addCommand(cmdJid); } attachDisplay(display... | public ArchiveList(Display display, TextBox target) { super (); this.target=target; setCommandListener(this); addCommand(cmdBack); addCommand(cmdDelete);//#if (FILE_IO) addCommand(cmdExport);//#endif if (target!=null) { addCommand(cmdPaste); addCommand(cmdJid); } attachDisplay(display... | 1,102,060 |
private void pasteData(int field) { if (target==null) return; Msg m=getMessage(cursor); if (m==null) return; String data; switch (field) { case 1: data=m.subject; break; case 2: data=m.from; break; default: data=m.getBody(); } try { int paste=target.getMaxSize()-target.size(); if (past... | private void pasteData(int field) { if (target==null) return; Msg m=getMessage(cursor); if (m==null) return; String data; switch (field) { case 1: data=m.subject; break; case 2: data=m.from; break; default: data=m.getBody(); } try { int paste=target.getMaxSize()-target.size(); if (past... | 1,102,061 |
public RootElementDeclaration findRootElementDeclaration(ClassDeclaration declaration, TypeDefinition typeDefinition) { int index = Collections.binarySearch(this.rootElements, declaration, CLASS_COMPARATOR); if (index >= 0) { return this.rootElements.get(index); } return null; } | public RootElementDeclaration findRootElementDeclaration(ClassDeclaration declaration) { int index = Collections.binarySearch(this.rootElements, declaration, CLASS_COMPARATOR); if (index >= 0) { return this.rootElements.get(index); } return null; } | 1,102,062 |
public void add(MathFloat operand) { if (operand.decimal > decimal) { value *= MathCalc.power(10, (operand.decimal - decimal)); value += operand.value; value /= MathCalc.power(10, (operand.decimal - decimal)); } else { value += operand.value * MathCalc.power(10, (decimal - operand.decimal)); } } | public void add(MathFloat operand) { if (operand.decimal > decimal) { value *= MathCalc.power(10, (operand.decimal - decimal)); value += operand.value; value /= MathCalc.power(10, (operand.decimal - decimal)); } else { value += operand.value * MathCalc.power(10, (decimal - operand.decimal)); } } | 1,102,063 |
public void divide(int operand) { value *= MathCalc.power(10, decimal) / operand * MathCalc.power(10, decimal); } | public void divide(int operand) { value /= operand; } | 1,102,064 |
public int getInt() { return value / MathCalc.power(10, decimal); } | public int getInt() { return (int)(value / 1000); } | 1,102,065 |
public short getShort() { return (short)(value / MathCalc.power(10, decimal)); } | public short getShort() { return (short)(value / 1000); } | 1,102,066 |
public void multiply(MathFloat operand) { if (operand.decimal > decimal) {// System.out.println("--- MathFloat MULTIPLY: value|decimal|operandValue|operandDecimal: " + value + "|" + decimal + "|" + operand.value + "|" + operand.decimal + " ---"); value *= MathCalc.power(10, (operand.decimal - decimal)); value *... | public void multiply(MathFloat operand) { if (operand.decimal > decimal) {// System.out.println("--- MathFloat MULTIPLY: value|decimal|operandValue|operandDecimal: " + value + "|" + decimal + "|" + operand.value + "|" + operand.decimal + " ---"); value *= MathCalc.power(10, (operand.decimal - decimal)); value *... | 1,102,067 |
public void subtract(int operand) { value -= operand * MathCalc.power(10, decimal); } | public void subtract(int operand) { value -= operand * 1000; } | 1,102,068 |
private int calcDemand() { return 0; } | private int calcDemand() { return (int)(thickness.value * length.value / 10000); } | 1,102,069 |
public short calcX2(short tmpX) { short tmpAngle = (short)(angle - 6); if (tmpAngle < 0) { tmpAngle += 24; } MathFloat tmpPos = new MathFloat(GlobalVars.COSINUS_TABLE[tmpAngle].value, GlobalVars.COSINUS_TABLE[tmpAngle].decimal); tmpPos.multiply(length); return (short)(tmpX + tmpPos.getShort()); } | public short calcX2(short tmpX) { short tmpAngle = (short)(angle - 6); if (tmpAngle < 0) { tmpAngle += 24; } MathFloat tmpPos = new MathFloat((int)GlobalVars.COSINUS_TABLE[tmpAngle].value); tmpPos.multiply(length); return (short)(tmpX + tmpPos.getShort()); } | 1,102,070 |
public short calcY2(short tmpY) { MathFloat tmpPos = new MathFloat(GlobalVars.COSINUS_TABLE[angle].value, GlobalVars.COSINUS_TABLE[angle].decimal); tmpPos.multiply(length); return (short)(tmpY - tmpPos.getShort()); } | public short calcY2(short tmpY) { MathFloat tmpPos = new MathFloat((int)GlobalVars.COSINUS_TABLE[angle].value); tmpPos.multiply(length); return (short)(tmpY - tmpPos.getShort()); } | 1,102,071 |
public void loginSuccess() { // залогинились. теперь, если был реконнект, то просто пошлём статус if (reconnect) { querysign=reconnect=false; //sendPresence(myStatus); sendPresence(cf.loginstatus); return; } // иначе будем читать ростер... | public void loginSuccess() { // залогинились. теперь, если был реконнект, то просто пошлём статус if (reconnect) { querysign=reconnect=false; //sendPresence(myStatus); sendPresence(cf.loginstatus); return; } // иначе будем читать ростер... | 1,102,072 |
public static void main(String args[]) { int j; MersenneTwisterFast r; // CORRECTNESS TEST // COMPARE WITH http://www.math.keio.ac.jp/matumoto/CODES/MT2002/mt19937ar.out r = new MersenneTwisterFast(new int[]{0x123, 0x234, 0x345, 0x456}); System.out.println("Output of... | public static void main(String args[]) { int j; MersenneTwisterFast r; // CORRECTNESS TEST // COMPARE WITH http://www.math.keio.ac.jp/matumoto/CODES/MT2002/mt19937ar.out r = new MersenneTwisterFast(new int[]{0x123, 0x234, 0x345, 0x456}); System.out.println("Output of... | 1,102,073 |
public final boolean nextBoolean() { int y; if (mti >= N) // generate N words at one time { int kk; final int[] mt = this.mt; // locals are slightly faster final int[] mag01 = this.mag01; // locals are slightly faster for (kk = 0; kk < N ... | public final boolean nextBoolean() { int y; if (mti >= N) // generate N words at one time { int kk; final int[] mt = this.mt; // locals are slightly faster final int[] mag01 = this.mag01; // locals are slightly faster for (kk = 0; kk < N ... | 1,102,074 |
public static double random() { return _instance.nextDouble(); } | public static double random() { return _instance.nextDouble(); } | 1,102,075 |
synchronized public void setSeed(final int[] array) { int i, j, k; setSeed(19650218); i=1; j=0; k = (N>array.length ? N : array.length); for (; k!=0; k--) { mt[i] = (mt[i] ^ ((mt[i-1] ^ (mt[i-1] >>> 30)) * 1664525)) + array[j] + j; /* non linear */ ... | synchronized public void setSeed(final int[] array) { int i, j, k; setSeed(19650218); i=1; j=0; k = (N>array.length ? N : array.length); for (; k!=0; k--) { mt[i] = (mt[i] ^ ((mt[i-1] ^ (mt[i-1] >>> 30)) * 1664525)) + array[j] + j; /* non linear */ ... | 1,102,076 |
public String echoBack( String message1, String message2 ) { return message1 + message2; } | public boolean echoBack( boolean b ) { return message1 + message2; } | 1,102,078 |
public String echoBack( String message1, String message2 ) { return message1 + message2; } | public String echoBack( String message1, String message2 ) { return b; } | 1,102,079 |
public int getColor() { return 0; } | public int getColor() { return Colors.LIST_INK; } | 1,102,081 |
protected SOSQuery readGetObservationXML(DOMReader domReader, Element requestElt) throws SOSException { SOSQuery query = new SOSQuery(); // read main request parameters query.setOffering(domReader.getElementValue(requestElt, "offering")); query.setFormat(domReader.getElementValue(requestElt, "resultFormat")); ... | protected SOSQuery readGetObservationXML(DOMReader domReader, Element requestElt) throws SOSException { SOSQuery query = new SOSQuery(); // read main request parameters query.setOffering(domReader.getElementValue(requestElt, "offering")); String resFormat = domReader.getElementValue(requestElt, "resultFormat"); ... | 1,102,082 |
public void exportData(String arhPath) { Config cf=Config.getInstance(); byte[] bodyMessage; int items=getItemCount(); for(int i=0; i<items-1; i++){ Msg m=getMessage(i); StringBuffer body=new StringBuffer(m.getDayT... | public void exportData(String arhPath) { Config cf=Config.getInstance(); byte[] bodyMessage; int items=getItemCount(); for(int i=0; i<items-1; i++){ Msg m=getMessage(i); body.append(m.getDayTime()); ... | 1,102,085 |
public void exportData(String arhPath) { Config cf=Config.getInstance(); byte[] bodyMessage; int items=getItemCount(); for(int i=0; i<items-1; i++){ Msg m=getMessage(i); StringBuffer body=new StringBuffer(m.getDayT... | public void exportData(String arhPath) { Config cf=Config.getInstance(); byte[] bodyMessage; int items=getItemCount(); for(int i=0; i<items-1; i++){ Msg m=getMessage(i); StringBuffer body=new StringBuffer(m.getDayT... | 1,102,087 |
public void eventOk(){ TextBox t=(TextBox)parentView; try { String nick=((Contact)getFocusedObject()).getJid(); int rp=nick.indexOf('/'); StringBuffer b=new StringBuffer(nick.substring(rp+1)); if (t.size()>0) { b.insert(0, (char)0x... | public void eventOk(){ TextBox t=(TextBox)parentView; try { String nick=((Contact)getFocusedObject()).getJid(); int rp=nick.indexOf('/'); StringBuffer b=new StringBuffer(nick.substring(rp+1)); if (t.size()>0) { b.insert(0, (char)0x... | 1,102,090 |
protected void keyPressed(int keyCode) { super.keyPressed(keyCode); if (keyCode==SE_CLEAR) { Contact c=(Contact)getFocusedObject(); if (c.getGroupType()!=Groups.TYPE_TRANSP && c.getGroupType()!=Groups.TYPE_SELF && c.getGroupType()!=Groups.TYPE_SEARCH_RESULT && c.origin<Co... | protected void keyPressed(int keyCode) { super.keyPressed(keyCode); if (keyCode==SE_CLEAR) { Contact c=(Contact)getFocusedObject(); if (c.getGroupType()!=Groups.TYPE_TRANSP && c.getGroupType()!=Groups.TYPE_SELF && c.getGroupType()!=Groups.TYPE_SEARCH_RESULT && c.origin<Co... | 1,102,091 |
public OMEUploader(String server, String user, String pass) throws UploadException { this.server = server; this.user = user; this.pass = pass; login(server, user, pass); files = new Vector(); } | public OMEUploader(String server, String user, String pass) throws UploadException { this.server = server; this.user = user; this.pass = pass; login(server, user, pass); files = new Vector(); } | 1,102,092 |
public int uploadPlanes(byte[][] planes, int first, int last, int step, MetadataStore store, boolean close) throws UploadException { if (!validLogin) throw new UploadException("Not logged in to the server."); OMEXMLMetadataStore xmlStore = (OMEXMLMetadataStore) store; int sizeX = xmlStore.getSizeX(null)... | public int uploadPlanes(byte[][] planes, int first, int last, int step, MetadataStore store, boolean close) throws UploadException { if (!validLogin) throw new UploadException("Not logged in to the server."); OMEXMLMetadataStore xmlStore = (OMEXMLMetadataStore) store; int sizeX = xmlStore.getSizeX(null)... | 1,102,093 |
static TimeZone toTimeZone(final DateTimeZone dtz) { if (dtz.isFixed()) { return dtz.toTimeZone(); } // efficient for UTC TimeZone tz = new TimeZone() { public void setRawOffset(int n) { throw new UnsupportedOperationException(); } public boolean useDaylightTime() { retur... | static TimeZone toTimeZone(final DateTimeZone dtz) { if (dtz.isFixed()) { return dtz.toTimeZone(); } // efficient for UTC TimeZone tz = new TimeZone() { public void setRawOffset(int n) { throw new UnsupportedOperationException(); } public boolean useDaylightTime() { retur... | 1,102,095 |
static TimeZone toTimeZone(final DateTimeZone dtz) { if (dtz.isFixed()) { return dtz.toTimeZone(); } // efficient for UTC TimeZone tz = new TimeZone() { public void setRawOffset(int n) { throw new UnsupportedOperationException(); } public boolean useDaylightTime() { retur... | static TimeZone toTimeZone(final DateTimeZone dtz) { if (dtz.isFixed()) { return dtz.toTimeZone(); } // efficient for UTC TimeZone tz = new TimeZone() { public void setRawOffset(int n) { throw new UnsupportedOperationException(); } public boolean useDaylightTime() { retur... | 1,102,096 |
public short readDataInit() { System.out.println("--- IO READ ---"); boolean recordExists = false; RecordStore rs = null; byte[] record = null; String[] recordList = RecordStore.listRecordStores() ; System.out.println ("--- IO RECORDNAME: " + recordName + " ---"); System.out.println ("--- IO RECORD LIST... | public short readDataInit() { System.out.println("--- IO READ ---"); boolean recordExists = false; RecordStore rs = null; byte[] record = null; String[] recordList = RecordStore.listRecordStores() ; System.out.println ("--- IO RECORDNAME: " + recordName + " ---"); System.out.println ("--- IO RECORD LIST... | 1,102,097 |
public int getBytesS() { return this.bytesRecv; } | public int getBytesS() { return this.bytesSent; } | 1,102,098 |
public static Profile[] getAllProfiles() { String[] profilesStrings = new File(Config.getPackageDataDir() + "/profiles/").list(new ProfileFilter()); Profile[] profiles = new Profile[profilesStrings.length]; for (int i = 0; i < profiles.length; i++) profiles[i] = new Profile(new File(Config.getPackageDataDir() + "... | public static Profile[] getAllProfiles() { String[] profilesStrings = new File(Config.getPackageDataDir() + File.separator + "profiles" + File.separator).list(new ProfileFilter()); Profile[] profiles = new Profile[profilesStrings.length]; for (int i = 0; i < profiles.length; i++) profiles[i] = new Profile(new Fil... | 1,102,099 |
public static Profile[] getAllProfiles() { String[] profilesStrings = new File(Config.getPackageDataDir() + "/profiles/").list(new ProfileFilter()); Profile[] profiles = new Profile[profilesStrings.length]; for (int i = 0; i < profiles.length; i++) profiles[i] = new Profile(new File(Config.getPackageDataDir() + "... | public static Profile[] getAllProfiles() { String[] profilesStrings = new File(Config.getPackageDataDir() + "/profiles/").list(new ProfileFilter()); Profile[] profiles = new Profile[profilesStrings.length]; for (int i = 0; i < profiles.length; i++) profiles[i] = new Profile(new File(Config.getPackageDataDir() + F... | 1,102,100 |
public static Profile getProfile(String profileName) { return new Profile(new File(Config.getPackageDataDir() + "/profiles/" + profileName + ".profile")); } | public static Profile getProfile(String profileName) { return new Profile(new File(Config.getPackageDataDir() + File.separator + "profiles" + File.separator + profileName + ".profile")); } | 1,102,101 |
public String echoBack( String message ) { return message; } | public String echoBack( String message1, String message2 ) { return message; } | 1,102,102 |
public String echoBack( String message ) { return message; } | public String echoBack( String message ) { return message1 + message2; } | 1,102,103 |
public SimplePosition(boolean fs, boolean fe, int p) { this(fs,fe,p,p,null); } | public SimplePosition(boolean fs, boolean fe, int p) { this(fs,fe,p,p,null); } | 1,102,104 |
private static Class createInvocationClass( ClassLoader classLoader, Method interfaceMethod ) throws CannotCompileException { Class invocationClass; final CtClass ctClass = JavassistUtils.createClass( getSimpleName( interfaceMethod.getDeclaringClass() ) + "_" + interfaceMe... | private static Class createInvocationClass( ClassLoader classLoader, Method interfaceMethod ) throws CannotCompileException { Class invocationClass; final CtClass ctClass = JavassistUtils.createClass( getSimpleName( interfaceMethod.getDeclaringClass() ) + "_" + interfaceMe... | 1,102,105 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.