rem stringlengths 0 477k | add stringlengths 0 313k | context stringlengths 6 599k |
|---|---|---|
id = ++GlobalVars.ELEMENTCOUNTER; | id = ++GlobalVars.COUNTERELEMENT; | 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... |
angle = tmpAngle; posX = tmpPosX; posY = tmpPosY; water = tmpWater; | length = new MathFloat(data.readDataInt()); thickness = new MathFloat(data.readDataInt()); angle = data.readDataShort(); posX = data.readDataShort(); posY = data.readDataShort(); water = data.readDataInt(); health = data.readDataShort(); growStop = data.readDataBoolean(); | 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... |
length = new MathFloat(2000, (byte)3); thickness = new MathFloat(1000, (byte)3); | boolean tmpChildLeft = data.readDataBoolean(); boolean tmpChildCenter = data.readDataBoolean(); boolean tmpChildRight = data.readDataBoolean(); | 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... |
if (tmpChildLeft) { childLeft = new Element(data); } if (tmpChildCenter) { childCenter = new Element(data); } if (tmpChildRight) { childRight = new Element(data); } | 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... | |
System.out.println("--- ID: "+ id +" | Water: " + water + " ---"); demand = (thickness.value * length.value / 10000); System.out.println("--- ID: "+ id +" | Demand: " + demand + " ---"); | demand = calcDemand(); | 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... |
System.out.println("--- ID: "+ id +" | WaterPercentage: " + waterPercentage + " ---"); | 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... | |
System.out.println("--- ID: "+ id +" | ChildLeft WaterRequest: " + childWaterRequest + " ---"); | 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... | |
System.out.println("--- ID: "+ id +" | ChildCenter TmpWaterRequest: " + tmpChildWaterRequest + " ---"); | 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... | |
System.out.println("--- ID: "+ id +" | ChildCenter WaterRequest: " + childWaterRequest + " ---"); | 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... | |
System.out.println("--- ID: "+ id +" | ChildRight TmpWaterRequest: " + tmpChildWaterRequest + " ---"); | 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... | |
System.out.println("--- ID: "+ id +" | ChildRight WaterRequest: " + childWaterRequest + " ---"); | 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... | |
System.out.println("--- ID: "+ id +" | WaterRequest: " + childWaterRequest + " ---"); System.out.println("--- ID: "+ id +" | TmpWaterRequest: " + tmpChildWaterRequest + " ---"); | 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... | |
System.out.println("--- ID: "+ id +" | ChildWaterDivider: " + childWaterDivider + " ---"); | 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... | |
waterRequest = new MathFloat(demand, (byte)0); | waterRequest = new MathFloat(demand*1000); | 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... |
System.out.println("--- ID: "+ id +" | WaterRequest|Factor: " + waterRequest.getInt() + "|" + GlobalVars.REQUEST_WATER_FACTOR[n].value + " ---"); | 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... | |
System.out.println("--- Element Draw BEGINN ---"); | System.out.println("--- ID: "+ id +" | Element Draw BEGINN ---"); | 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... |
System.out.println("--- DrawHorizontal: " + drawHorizontal + " ---"); | 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... | |
System.out.println("--- ThicknessEven: " + thicknessEven + " ---"); | 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... | |
System.out.println("--- PosX|Y: " + tmpPosX + "|" + tmpPosY + " : " + tmpPosX2 + "|" + tmpPosY2 + " ---"); | 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... | |
System.out.println("--- ColorSteps: " + colorSteps + " ---"); | 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... | |
System.out.println("--- LOOP BEGINN ---"); | 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... | |
System.out.println("--- N: " + n + " ---"); | 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... | |
System.out.println("--- LOOP END ---"); | 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... | |
System.out.println("--- Element Draw END ---"); | System.out.println("--- ID: "+ id +" | Element Draw END ---"); | 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... |
System.out.println("--- ID: "+ id +" | Supply: " + supply + "---"); | 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... | |
System.out.println("--- ID: "+ id +" | SOCIAL ACT ---"); | 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... | |
System.out.println("--- ID: "+ id +" | SupplyTaken: " + supplyTaken + " ---"); | 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... | |
demand = (thickness.value * length.value / 10000); | demand = calcDemand(); | 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... |
System.out.println("--- ID: "+ id +" | HEALTH I: "+ i +" ---"); | 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... | |
System.out.println("--- ID: "+ id +" | Health|HEALTH_INC: " + health + "|" + tmpHealthInc + " ---"); | 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... | |
System.out.println("--- ID: "+ id +" | Thickness: " + thickness.getInt() + " ---"); | 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... | |
System.out.println("--- ID: "+ id +" | Length|Thickness: " + length.getInt() + "|" + thickness.getInt() + " ---"); | 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... | |
short tmpAngle = 0; | 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... | |
System.out.println("--- ID: "+ id +" | SpawnRandom: " + tmpRandom + " ---"); | 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 writeData(int data) { | public void writeData(String data) { | 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(); } } |
System.out.println("--- IO WRITE (INT)---"); | System.out.println("--- IO WRITE (STRING)---"); | 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(); } } |
dos.writeInt(data); | dos.writeUTF(data); | 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(); } } |
data.writeData(length.getInt()); data.writeData(thickness.getInt()); | data.writeData(length.value); data.writeData(thickness.value); | 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... |
if (c==cmdSmile) { new SmilePicker(display, this); return; } if (c==cmdInsNick) { new AppendNick(display, to); return; } | if (c==cmdSmile) { new SmilePicker(display, this, t.getCaretPosition()); return; } if (c==cmdInsNick) { new AppendNick(display, to, this, t.getCaretPosition()); 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... |
if (c==cmdPaste) { new ArchiveList(display, t); return; } | if (c==cmdPaste) { new ArchiveList(display, this, t.getCaretPosition()); 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... |
if (c==cmdTemplate) { new AppendTemplate(display, t); return; } | if (c==cmdTemplate) { new AppendTemplate(display, this, t.getCaretPosition()); 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... |
} else sendPresence(Presence.PRESENCE_ONLINE); | } else sendPresence(myStatus); | 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... |
} | } if (keyCode==-21 || keyCode==-22 || keyCode==21 || keyCode==22) { if (cf.ghostMotor) { new RosterMenu(display, getFocusedObject()); } } | 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... |
sd.roster.setLight(false); | 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... | |
if (new File(singleVideoInfo.getInputVideo()).exists() && !singleVideoInfo.getOutputVideo().equals("") && validOutput) | if (new File(singleVideoInfo.getInputVideo()).exists() && validOutput) | 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... |
if (!dvdInfo.getDrive().equals("") && !dvdInfo.getOutputVideo().equals("") && validOutput) | if (!dvdInfo.getDrive().equals("") && validOutput) | 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... |
if (status==6) { | if (status==5) { | public void run(){ int status=getSel().getImageIndex(); try { Roster.isAway=false; if (status==6) { Roster.autoReconnect=false; } else { Roster.autoReconnect=true; } //StaticData.getInstance().rost... |
try { new ContactMessageList((Contact) getFocusedObject(), display); } catch (Exception e) {} | new ContactEdit(display, (Contact)getFocusedObject()); | 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(); } |
new ContactMessageList((Contact) getFocusedObject(), display); | try { new ContactMessageList((Contact) getFocusedObject(), display); } catch (Exception e) {} | 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); } |
this.config = getConfig(); | this.config = loadConfig(); | 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) {... |
cl.loadFromStorage(); | public ColorForm(Display display) { super(); this.display=display; parentView=display.getCurrent(); cl.loadFromStorage(); reloadSkin(); selectionList = new List("Colors", List.IMPLICIT, NAMES, null); selectionLis... | |
selectionList.addCommand(cmdLoad); | public ColorForm(Display display) { super(); this.display=display; parentView=display.getCurrent(); cl.loadFromStorage(); reloadSkin(); selectionList = new List("Colors", List.IMPLICIT, NAMES, null); selectionLis... | |
if (c==cmdLoad) { loadSkin("/skins/skin.txt"); destroyView(); } | 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) ... | |
} else { if (pos == NAMES.length - 1) { } else { | return; } if (c==cmdOk) { 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) ... |
((Canvas)parentView).setFullScreenMode(Config.getInstance().fullscreen); | public void destroyView(){ if (display!=null) display.setCurrent(parentView); ((Canvas)parentView).setFullScreenMode(Config.getInstance().fullscreen); } | |
public static void reloadSkin() { int[] COLORS = {cl.BALLOON_INK, | public final static void reloadSkin() { cl.loadFromStorage(); final int[] COLORS = { cl.BALLOON_INK, | public static void reloadSkin() { int[] COLORS = {cl.BALLOON_INK, cl.BALLOON_BGND, cl.LIST_BGND, cl.LIST_BGND_EVEN, cl.LIST_INK, cl.MSG_... |
if (keyCode==-22) { setLight(false); new KeyBlock(display, getTitleItem(), cf.keyLock, cf.ghostMotor, true); } | 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 IndirectError(String msg, String returnTo) | protected IndirectError(String msg, String returnTo) | public IndirectError(String msg, String returnTo) { this(msg, returnTo, false); } |
else { config = new EnunciateConfiguration(); } proxy.setConfig(config); | public void execute() throws BuildException { if (basedir == null) { throw new BuildException("A base directory must be specified."); } DirectoryScanner scanner = getDirectoryScanner(basedir); scanner.scan(); String[] files = scanner.getIncludedFiles(); for (int i = 0; i < files.length; i++) { ... | |
TransportManager transportManager = XFireFactory.newInstance().getXFire().getTransportManager(); ServiceFactory serviceFactory = new JAXWSServiceFactory(transportManager); | EnunciatedJAXWSServiceFactory serviceFactory = new EnunciatedJAXWSServiceFactory(); | 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 ArchiveList(Display display, TextBox target) { super (); this.target=target; | public ArchiveList(Display display, MessageEdit target, int caretPos) { super (); this.target=target; this.caretPos=caretPos; | 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... |
try { int paste=target.getMaxSize()-target.size(); if (paste>data.length()) paste=data.length(); target.insert(data.substring(0,paste), target.size()); } catch (Exception e) { e.printStackTrace(); } | target.insertText(data, caretPos); | 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... |
public RootElementDeclaration findRootElementDeclaration(ClassDeclaration declaration, TypeDefinition typeDefinition) { | public RootElementDeclaration findRootElementDeclaration(ClassDeclaration declaration) { | 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 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(int operand) { value += operand * 1000; | 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)); } } |
value *= MathCalc.power(10, decimal) / operand * MathCalc.power(10, decimal); | value /= operand; | public void divide(int operand) { value *= MathCalc.power(10, decimal) / operand * MathCalc.power(10, decimal); } |
return value / MathCalc.power(10, decimal); | return (int)(value / 1000); | public int getInt() { return value / MathCalc.power(10, decimal); } |
return (short)(value / MathCalc.power(10, decimal)); | return (short)(value / 1000); | public short getShort() { return (short)(value / MathCalc.power(10, decimal)); } |
public void multiply(MathFloat operand) { if (operand.decimal > decimal) { value *= MathCalc.power(10, (operand.decimal - decimal)); value *= operand.value; value /= MathCalc.power(10, operand.decimal); value /= MathCalc.power(10, (operand.decimal - decimal)); } else { value *= operand.value * MathCalc.power(10, (dec... | public void multiply(int operand) { value *= operand; | 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 *... |
value -= operand * MathCalc.power(10, decimal); | value -= operand * 1000; | public void subtract(int operand) { value -= operand * MathCalc.power(10, decimal); } |
return 0; | return (int)(thickness.value * length.value / 10000); | private int calcDemand() { return 0; } |
MathFloat tmpPos = new MathFloat(GlobalVars.COSINUS_TABLE[tmpAngle].value, GlobalVars.COSINUS_TABLE[tmpAngle].decimal); | MathFloat tmpPos = new MathFloat((int)GlobalVars.COSINUS_TABLE[tmpAngle].value); | 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()); } |
MathFloat tmpPos = new MathFloat(GlobalVars.COSINUS_TABLE[angle].value, GlobalVars.COSINUS_TABLE[angle].decimal); | MathFloat tmpPos = new MathFloat((int)GlobalVars.COSINUS_TABLE[angle].value); | 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()); } |
theStream.addBlockListener(new BookmarkQuery(BookmarkQuery.LOAD)); | public void loginSuccess() { // залогинились. теперь, если был реконнект, то просто пошлём статус if (reconnect) { querysign=reconnect=false; //sendPresence(myStatus); sendPresence(cf.loginstatus); return; } // иначе будем читать ростер... | |
{ int j; MersenneTwisterFast r; r = new MersenneTwisterFast(new int[]{0x123, 0x234, 0x345, 0x456}); System.out.println("Output of MersenneTwisterFast with new (2002/1/26) seeding mechanism"); for (j=0;j<1000;j++) { long l = (long)r.nextInt(); if (l < 0 ) l += 4294967296L; String s = String.valueOf(l); while(s.len... | { int j; MersenneTwisterFast r; r = new MersenneTwisterFast(new int[]{ 0x123, 0x234, 0x345, 0x456 }); System.out.println("Output of MersenneTwisterFast with new (2002/1/26) seeding mechanism"); for (j = 0; j < 1000; j++) { long l = (long) r.nextInt(); if (l < 0) { l += 4294967296L; } String s = String.valueOf(l);... | 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... |
return (y >>> 31) != 0; } | return (boolean) ((y >>> 31) != 0); } | 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 static double random() { return _instance.nextDouble(); } | public static final double random() { return tl.get().nextDouble(); } | public static double random() { return _instance.nextDouble(); } |
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; mt[i] &= 0xffffffff; i++; j++; if (i>=N) { mt[0] = mt[N-1]; i=1; } if (j>=array.length... | synchronized public void setSeed(final long seed) { __haveNextNextGaussian = false; mt = new int[N]; mag01 = new int[2]; mag01[0] = 0x0; mag01[1] = MATRIX_A; mt[0] = (int) (seed & 0xffffffff); for (mti = 1; mti < N; mti++) { mt[mti] = (1812433253 * (mt[mti - 1] ^ (mt[mti - 1] >>> 30)) + mti); mt[mti] &= 0xffff... | 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 */ ... |
*/ | public void writeObject(Object object, MessageWriter writer, MessageContext context) throws XFireFault { Person person = (Person) object; Object property; //attributes. property = person.getFirstName(); if (property == null) { Type type = getTypeMapping().getType(String.class); MessageWriter ... | |
public String echoBack( String message1, String message2 ) | public boolean echoBack( boolean b ) | public String echoBack( String message1, String message2 ) { return message1 + message2; } |
return message1 + message2; | return b; | public String echoBack( String message1, String message2 ) { return message1 + message2; } |
f.addCommand(cmdSavePhoto); | public vCardForm(Display display, VCard vcard, boolean editable) { this.display=display; parentView=display.getCurrent(); this.vcard=vcard; f=new Form(SR.MS_VCARD); f.append(vcard.getJid()); photoType=vcard.getPhotoType(); for (int index=0; in... | |
public int getColor() { return 0; } | public int getColor() { return Colors.LIST_INK; } | public int getColor() { return 0; } |
query.setFormat(domReader.getElementValue(requestElt, "resultFormat")); | String resFormat = domReader.getElementValue(requestElt, "resultFormat"); if(resFormat == null) resFormat = domReader.getElementValue(requestElt, "responseFormat"); query.setFormat(resFormat); | 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")); ... |
autoAwayTime=inputStream.readInt(); setAutoStatus=inputStream.readBoolean(); defGcRoom=inputStream.readUTF(); | protected void loadFromStorage(){ try { DataInputStream inputStream=NvStorage.ReadFileRecord("config", 0); accountIndex = inputStream.readInt(); showOfflineContacts=inputStream.readBoolean(); fullscreen=inputStream.readBoolean(); def_profile = inputStream.readInt(); smiles=inputStream.readBo... | |
outputStream.writeInt(autoAwayTime); outputStream.writeBoolean(setAutoStatus); outputStream.writeUTF(defGcRoom); | public void saveToStorage(){ DataOutputStream outputStream=NvStorage.CreateDataOutputStream(); try { outputStream.writeInt(accountIndex); outputStream.writeBoolean(showOfflineContacts); outputStream.writeBoolean(fullscreen); outputStream.writeInt(def_profile); outputStream.writeBoolean(smiles)... | |
StringBuffer body=new StringBuffer(m.getDayTime()); | body.append(m.getDayTime()); | 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... | |
} | 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... | |
CURSOR_OUTLINE=inputStream.readInt(); | protected void loadFromStorage(){ try { DataInputStream inputStream=NvStorage.ReadFileRecord("ColorDB", 0); BALLOON_INK=inputStream.readInt(); BALLOON_BGND=inputStream.readInt(); LIST_BGND=inputStream.readInt(); LIST_BGND_EVEN=inputStream.readInt(); ... | |
outputStream.writeInt(CURSOR_OUTLINE); | public void saveToStorage(){ DataOutputStream outputStream=NvStorage.CreateDataOutputStream(); try { outputStream.writeInt(BALLOON_INK); outputStream.writeInt(BALLOON_BGND); outputStream.writeInt(LIST_BGND); outputStream.writeInt(LIST_BGND_EVEN); outputStream.writeInt(LIST_INK); ... | |
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)0x20); b.insert(0, t.getString()); b.append(' '); } else { b.append(": "); } t.setString(b.toString()); } catch ... | try { String nick=((Contact)getFocusedObject()).getJid(); int rp=nick.indexOf('/'); StringBuffer b=new StringBuffer(nick.substring(rp+1)); if (caretPos==0) b.append(':'); me.insertText(b.toString(), caretPos); } catch (Exception e) {} | 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... |
new YesNoAlert(display, this, SR.MS_DELETE_ASK, c.getNickJid()){ public void yes() { deleteContact((Contact)getFocusedObject()); }; }; | deleteContact((Contact)getFocusedObject()); | 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... |
public OMEUploader(String server, String user, String pass) throws UploadException { this.server = server; this.user = user; this.pass = pass; login(server, user, pass); | public OMEUploader(String server) { this.server = server; | 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 int uploadPlanes(byte[][] planes, int first, int last, int step, MetadataStore store, boolean close) throws UploadException | public int uploadPlanes(BufferedImage[] planes, int first, int last, int step, MetadataStore store, boolean close) throws UploadException | 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)... |
System.out.println("RANDOM SEED " + seed + " : " + getName()); rand = new Random(seed); | protected void setUp() throws Exception { super.setUp(); } | |
DateTime dt = new DateTime(year, month + 1, day, hour, minute, second, millis, dtz); | DateTime dt = null; try { dt = new DateTime(year, month + 1, day, hour, minute, second, millis, dtz); } catch (IllegalArgumentException ex) { if (hour < 23) { dt = new DateTime(year, month + 1, day, hour + 1, minute, second, millis, dtz); } else { Calendar c = new GregorianCalendar(); c.clear(); c.setTimeZone(Time... | 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... |
DateTime stdDt = new DateTime(year, month + 1, day, hour, minute, second, millis, standardTz(offset)); | DateTime stdDt = new DateTime( year, month + 1, day, hour, minute, second, millis, DateTimeZone.forOffsetMillis(offset)); | 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... |
if (recordList[i] == recordName) { | if (recordList[i].compareTo(recordName) == 0) { | 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... |
return this.bytesRecv; | return this.bytesSent; | public int getBytesS() { return this.bytesRecv; } |
String[] profilesStrings = new File(Config.getPackageDataDir() + "/profiles/").list(new ProfileFilter()); | String[] profilesStrings = new File(Config.getPackageDataDir() + File.separator + "profiles" + File.separator).list(new ProfileFilter()); | 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() + "... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.