buggy_function
stringlengths
1
391k
fixed_function
stringlengths
0
392k
public java.lang.String toString() { try { java.io.ByteArrayOutputStream out = new java.io.ByteArrayOutputStream(); org.semanticweb.owlapi.model.OWLOntologyManager manager = ontology.getOWLOntologyManager(); manager.saveOntology(ontology, out); return new java.lang.String(out.toByteA...
public java.lang.String toString() { try { java.io.ByteArrayOutputStream out = new java.io.ByteArrayOutputStream(); org.semanticweb.owlapi.model.OWLOntologyManager manager = ontology.getOWLOntologyManager(); manager.saveOntology(ontology, out); return new java.lang.String(out.toByteA...
public void testIterFullLongManualID() { siena.core.async.SienaFuture<java.lang.Iterable<siena.base.test.model.PersonLongManualID>> future = pm.createQuery(siena.base.test.model.PersonLongManualID.class).order("n").iter(); java.lang.Iterable<siena.base.test.model.PersonLongManualID> people = future.get(); a...
public void testIterFullLongManualID() { java.lang.Iterable<siena.base.test.model.PersonLongManualID> people = pm.createQuery(siena.base.test.model.PersonLongManualID.class).order("n").iter(); assertNotNull(people); siena.base.test.model.PersonLongManualID[] array = new siena.base.test.model.PersonLongManua...
public void madeChoice(core.agent.Message message) { core.restaurant.agent.Customer customer = message.get(0); synchronized(m_customers) { for (core.restaurant.agent.Waiter.CustomerHandler c : m_customers) { if ((c.customer) == customer) { c.state = core.restaurant.agent.Wait...
public void madeChoice(core.agent.Message message) { core.restaurant.agent.Customer customer = message.get(0); for (core.restaurant.agent.Waiter.CustomerHandler c : m_customers) { if ((c.customer) == customer) { c.state = core.restaurant.agent.Waiter.CustomerStateEnum.ReadyToOrder; ...
public void onRestoreInstanceState(android.os.Bundle savedInstanceState) { super.onRestoreInstanceState(savedInstanceState); try { byte[] byteArray = savedInstanceState.getByteArray(getString(R.string.item_image)); itemPic = android.graphics.BitmapFactory.decodeByteArray(byteArray, 0, byteArray....
public void onRestoreInstanceState(android.os.Bundle savedInstanceState) { super.onRestoreInstanceState(savedInstanceState); byte[] byteArray = savedInstanceState.getByteArray(getString(R.string.item_image)); if (byteArray != null) { itemPic = android.graphics.BitmapFactory.decodeByteArray(byteArray...
private void addField(java.lang.String fieldName) { java.util.Map.Entry<java.lang.reflect.Field, java.lang.Object> fieldEntry = field(fieldName, rootClass); java.lang.Class<?> fieldType = getFieldType(fieldEntry.getKey()); if (!(com.github.francofabio.vraptor.jackson.serialization.JacksonSerializer.isNonPoj...
private void addField(java.lang.String fieldName) { if ((rootClass) == null) { return ; } java.util.Map.Entry<java.lang.reflect.Field, java.lang.Object> fieldEntry = field(fieldName, rootClass); java.lang.Class<?> fieldType = getFieldType(fieldEntry.getKey()); if (!(com.github.francofabio.vr...
private int getSbOperatorRowNumber(java.util.List<java.util.List<java.lang.String>> exceldata, int apiRowNumber, int appDetailsEndRow, java.lang.String operator) { int operatorNumber = 0; for (int x = apiRowNumber; x <= appDetailsEndRow; x++) { if (exceldata.get(x).get(4).trim().equalsIgnoreCase(operato...
private int getSbOperatorRowNumber(java.util.List<java.util.List<java.lang.String>> exceldata, int apiRowNumber, int appDetailsEndRow, java.lang.String operator) { int operatorNumber = 0; for (int x = apiRowNumber; x <= appDetailsEndRow; x++) { if (exceldata.get(x).get(4).trim().equalsIgnoreCase(operato...
public static void main(java.lang.String[] args) { if ((args.length) != 2) { java.lang.System.out.println("Usage: java mypackage.MultiRobotCoordination [robotCount] [roundroubin=1 | random=2]"); }else { mypackage.MultiRobotCoordination.robotCount = java.lang.Integer.parseInt(args[0]); my...
public static void main(java.lang.String[] args) { if ((args.length) != 2) { java.lang.System.out.println("Usage: java mypackage.MultiRobotCoordination [robotCount] [roundroubin=1 | random=2]"); }else { mypackage.MultiRobotCoordination.robotCount = java.lang.Integer.parseInt(args[0]); my...
public void setCount(int count) { if (count > (this.maxCount)) { this.setCount((count - 1)); } if (count < (this.minCount)) { this.setCount((count + 1)); } this.count = count; super.setSwitchId((count - (this.minCount))); }
public void setCount(int count) { if (count > (this.maxCount)) { this.setCount((count - 1)); return ; } if (count < (this.minCount)) { this.setCount((count + 1)); return ; } this.count = count; super.setSwitchId((count - (this.minCount))); }
public void exitVector(@org.antlr.v4.runtime.misc.NotNull wich.parser.WichParser.VectorContext ctx) { if ((ctx.expr_list()) != null) { for (wich.parser.WichParser.ExprContext elem : ctx.expr_list().expr()) { if (!(wich.semantics.TypeHelper.typesAreCompatible(elem, SymbolTable._float))) { ...
public void exitVector(@org.antlr.v4.runtime.misc.NotNull wich.parser.WichParser.VectorContext ctx) { if ((ctx.expr_list()) != null) { for (wich.parser.WichParser.ExprContext elem : ctx.expr_list().expr()) { if ((elem.exprType) != null) { if (!(wich.semantics.TypeHelper.typesAreC...
public void onSelect(com.sencha.gxt.widget.core.client.event.SelectEvent event) { unsavedChanges = false; final com.sencha.gxt.widget.core.client.box.MessageBox box = edu.arizona.biosemantics.etcsite.client.common.Alerter.startLoading(); matrixGenerationService.completeReview(edu.arizona.biosemantics.etcsit...
private void completeReview(final com.sencha.gxt.widget.core.client.box.MessageBox box) { matrixGenerationService.completeReview(edu.arizona.biosemantics.etcsite.client.common.Authentication.getInstance().getToken(), task, new com.google.gwt.user.client.rpc.AsyncCallback<edu.arizona.biosemantics.etcsite.shared.mode...
public void onClick(android.view.View view) { int oldPosition = selectedPosition; selectedPosition = getLayoutPosition(); boolean selected = oldPosition != (selectedPosition); notifyItemChanged(selectedPosition); if (selected) notifyItemChanged(oldPosition); onClickListener.onItemCl...
public void onClick(android.view.View view) { int oldPosition = selectedPosition; selectedPosition = getLayoutPosition(); boolean selected = oldPosition != (selectedPosition); if (selected) { notifyItemChanged(oldPosition); }else { selectedPosition = -1; } notifyItemChanged(g...
private void encryptBuffer(java.nio.ByteBuffer out) throws java.io.IOException { int inputSize = inBuffer.remaining(); try { int n = cipher.update(inBuffer, out); if (n < inputSize) { cipher.doFinal(inBuffer, outBuffer); cipherReset = true; } } catch (javax.cr...
private void encryptBuffer(java.nio.ByteBuffer out) throws java.io.IOException { int inputSize = inBuffer.remaining(); try { int n = cipher.update(inBuffer, out); if (n < inputSize) { cipher.doFinal(inBuffer, out); cipherReset = true; } } catch (javax.crypto.S...
boolean logoutInternal() { if (com.samsung.msca.samsungvr.ui.UILib.DEBUG) { android.util.Log.d(com.samsung.msca.samsungvr.ui.UILib.TAG, ("logoutInternal this: " + (this))); } if (saveSessionCreds(null, null)) { updateCutoffTimestampLocked(); mBus.post(mBusCallback, new com.samsung.ms...
boolean logoutInternal() { if (com.samsung.msca.samsungvr.ui.UILib.DEBUG) { android.util.Log.d(com.samsung.msca.samsungvr.ui.UILib.TAG, ("logoutInternal this: " + (this))); } if (saveSessionCreds(null, null)) { mBus.post(mBusCallback, new com.samsung.msca.samsungvr.ui.Bus.LoggedOutEvent(this...
public void close() throws java.io.IOException { if ((out) != null) { out.close(); fileChannel.force(true); }else { java.io.File extFile = new java.io.File(pathName); if (!(extFile.exists())) { throw new java.io.IOException(("File must be created: " + (pathName))); ...
public void close() throws java.io.IOException { if ((out) != null) { fileChannel.force(true); out.close(); }else { java.io.File extFile = new java.io.File(pathName); if (!(extFile.exists())) { throw new java.io.IOException(("File must be created: " + (pathName))); ...
public void onSuccess(nl.dobots.loopback.loopback.User user) { final java.lang.String username = ((java.lang.String) (user.get("username"))); runOnUiThread(new java.lang.Runnable() { @java.lang.Override public void run() { _txtTitle.setText(java.lang.String.format("Hi %s", username))...
public void onSuccess(nl.dobots.loopback.loopback.User user) { final java.lang.String username = ((java.lang.String) (user.get("username"))); if (username != null) { runOnUiThread(new java.lang.Runnable() { @java.lang.Override public void run() { _txtTitle.setText...
public void actionPerformed(java.awt.event.ActionEvent e) { if ((dt) == 0) { dt = engine.CustomOptionMenu.doubleInput("Enter dt."); } try { save.doClick(); thread.start(); java.lang.System.out.println("started"); } catch (java.lang.Exception ex) { } paused = false...
public void actionPerformed(java.awt.event.ActionEvent e) { if ((dt) == 0) { dt = engine.CustomOptionMenu.doubleInput("Enter dt."); } if ((dt) != 0) { try { save.doClick(); thread.start(); java.lang.System.out.println("started"); } catch (java.lang...
private boolean isEof() throws java.io.IOException { if ((bufferedStream.available()) == 0) return true; byte[] bytes = new byte[16]; int read = bufferedStream.read(bytes, 0, bytes.length); bufferedStream.unread(bytes, 0, read); return (bufferedStream.available()) == 0; }
private boolean isEof() throws java.io.IOException { if ((bufferedStream.available()) == 0) return true; byte[] bytes = new byte[16]; int read = bufferedStream.read(bytes, 0, bytes.length); if (read == (-1)) return true; bufferedStream.unread(bytes, 0, read); return (bu...
public void up() { int idx = java.lang.Math.min(((m_selectionIdx) + 1), ((m_history.length()) - 1)); if (idx == (-1)) { return ; } if ((m_selectionIdx) == (-1)) { m_currentCache = getCurrentInputLine(); } m_selectionIdx = idx; java.lang.System.out.println(m_selectionIdx); ...
public void up() { int idx = java.lang.Math.min(((m_selectionIdx) + 1), ((m_history.length()) - 1)); if (idx == (-1)) { return ; } if ((m_selectionIdx) == (-1)) { m_currentCache = getCurrentInputLine(); } m_selectionIdx = idx; java.lang.String sel = m_history.get(idx); se...
public java.lang.String execute() throws java.lang.Exception { java.lang.System.out.println("UploadAction execute()"); java.lang.System.out.println(this.getFileFileName()); for (int i = 0; i < (file.size()); i++) { this.uploadFile(i); } return "success"; }
public java.lang.String execute() throws java.lang.Exception { java.lang.System.out.println(file); java.lang.System.out.println(this.getFileFileName()); if ((file) != null) { for (int i = 0; i < (file.size()); i++) { this.uploadFile(i); } } return "success"; }
public void onCheckedChanged(android.widget.CompoundButton buttonView, boolean isChecked) { android.util.Log.d(com.boostcamp.hyeon.wallpaper.setting.view.SettingFragment.TAG, ("onCheckedChanged: " + isChecked)); switch (buttonView.getId()) { case R.id.sw_wallpaper_type : setWallpaperValue(De...
public void onCheckedChanged(android.widget.CompoundButton buttonView, boolean isChecked) { android.util.Log.d(com.boostcamp.hyeon.wallpaper.setting.view.SettingFragment.TAG, ("onCheckedChanged: " + isChecked)); switch (buttonView.getId()) { case R.id.sw_wallpaper_type : setWallpaperValue(De...
public java.util.List<obj.Triangle> getTris() { if (!(calcTris.isEmpty())) return calcTris; if ((detail) > 0) getTris(tris); for (int i = 0; i < ((detail) - 1); i++) { getTris(calcTris); } return calcTris; }
public java.util.List<obj.Triangle> getTris() { if (!(calcTris.isEmpty())) return calcTris; if ((detail) == 0) return tris; getTris(tris); for (int i = 0; i < ((detail) - 1); i++) { getTris(calcTris); } return calcTris; }
private boolean validateUnitParam(java.lang.String unit) { if (com.robot.Utils.isNumeric(unit)) { int x = java.lang.Integer.parseInt(unit); if (x <= (robotInfo.getMaxUnits())) { return true; }else { printErrorInfo("Sorry,unit not allowed to greater then MAX_UNITS"); ...
private boolean validateUnitParam(java.lang.String unit) { if (com.robot.Utils.isNumeric(unit)) { int x = java.lang.Integer.parseInt(unit); if ((x < (robotInfo.getMaxUnits())) && (x > (-1))) { return true; }else { printErrorInfo("Sorry,unit not allowed to greater then...
private void sliderOn() { double majorTick = java.lang.Math.floor(((totalSteps) / 10)); slider.setDisable(false); slider.setMax(totalSteps); slider.setMajorTickUnit((majorTick <= 0 ? 1 : majorTick)); slider.setMinorTickCount((((int) (java.lang.Math.floor(slider.getMajorTickUnit()))) / 5)); slide...
private void sliderOn() { double majorTick = java.lang.Math.floor((((totalSteps) - 1) / 10)); slider.setDisable(false); slider.setMax(((totalSteps) - 1)); slider.setMajorTickUnit((majorTick <= 0 ? 1 : majorTick)); slider.setMinorTickCount((((int) (java.lang.Math.floor(slider.getMajorTickUnit()))) / ...
private void recoverChildView() { final int childCount = getChildCount(); for (int i = 0; i < childCount; i++) { getChildAt(i).animate().translationX(1).translationY(1).scaleX(1).scaleX(1).start(); } requestLayout(); }
private void recoverChildView() { final int childCount = getChildCount(); for (int i = 0; i < childCount; i++) { getChildAt(i).animate().translationX(0).translationY(0).scaleX(1).scaleX(1).start(); } }
protected void showPopupMenu(java.awt.event.MouseEvent evt) { org.openstreetmap.josm.gui.history.HistoryBrowserModel.VersionTableModel model = getVersionTableModel(); int row = rowAtPoint(evt.getPoint()); if (!(model.isLatest(row))) { org.openstreetmap.josm.data.osm.history.HistoryOsmPrimitive primi...
protected void showPopupMenu(java.awt.event.MouseEvent evt) { org.openstreetmap.josm.gui.history.HistoryBrowserModel.VersionTableModel model = getVersionTableModel(); int row = rowAtPoint(evt.getPoint()); if ((row > (-1)) && (!(model.isLatest(row)))) { org.openstreetmap.josm.data.osm.history.History...
public void layoutSubviews() { super.layoutSubviews(); mocha.ui.Rect bounds = this.getBounds(); mocha.ui.Rect contentRect = this.getContentRectForBounds(bounds); this.backgroundImageView.setFrame(this.getBackgroundRectForBounds(bounds)); this.imageView.setFrame(this.getImageRectForContentRect(conten...
public void layoutSubviews() { super.layoutSubviews(); mocha.ui.Rect bounds = this.getBounds(); mocha.ui.Rect contentRect = this.getContentRectForBounds(bounds); this.backgroundImageView.setFrame(this.getBackgroundRectForBounds(bounds)); this.imageView.setFrame(this.getImageRectForContentRect(conten...
public void printNotices() { java.lang.String file = ""; for (org.thingml.compilers.checker.Checker.CheckerInfo i : Notices) { if (!(i.file.equals(file))) { java.lang.System.out.println(("Notices in file " + (i.file))); file = i.file; } java.lang.System.out.print(...
public void printNotices() { java.lang.String file = ""; for (org.thingml.compilers.checker.Checker.CheckerInfo i : Notices) { if (((i.file) != null) && (!(i.file.equals(file)))) { java.lang.System.out.println(("Notices in file " + (i.file))); file = i.file; } jav...
public void earthGrabSelf() { closestEntity = player; getGround(); if ((groundBlock) == null) return ; ParticleEffect.BLOCK_CRACK.display(((com.projectkorra.projectkorra.util.ParticleEffect.ParticleData) (new com.projectkorra.projectkorra.util.ParticleEffect.BlockData(blockType, blockByte))...
public void earthGrabSelf() { closestEntity = player; groundBlock = getGround(); if ((groundBlock) == null) return ; ParticleEffect.BLOCK_CRACK.display(((com.projectkorra.projectkorra.util.ParticleEffect.ParticleData) (new com.projectkorra.projectkorra.util.ParticleEffect.BlockData(blockTyp...
public void call(com.smoothcsv.framework.component.SCFrame.FileDroppedEvent ev) { command.app.OpenFileCommand command = new command.app.OpenFileCommand(); if (ev.getFile().isFile()) { command.run(ev.getFile()); }else if (ev.getFile().isDirectory()) { command.chooseAndOpenFile(ev....
public void run() { command.app.OpenFileCommand command = new command.app.OpenFileCommand(); if (ev.getFile().isFile()) { command.run(ev.getFile()); }else if (ev.getFile().isDirectory()) { command.chooseAndOpenFile(ev.getFile()); } }
private void buildDefaultChart() { ds = createBlankDataset(); this.elevationChart = org.jfree.chart.ChartFactory.createXYLineChart("Height Chart", X_AXIS_LABEL, Y_AXIS_LABEL, ds, PlotOrientation.VERTICAL, true, true, false); cp = new org.jfree.chart.ChartPanel(elevationChart, true, true, true, true, true); ...
private void buildDefaultChart() { ds = createBlankDataset(); this.elevationChart = org.jfree.chart.ChartFactory.createXYLineChart("Height Chart", X_AXIS_LABEL, Y_AXIS_LABEL, ds, PlotOrientation.VERTICAL, true, true, false); cp = new org.jfree.chart.ChartPanel(elevationChart, true, true, true, true, true); ...
public void handleEvent(final org.cytoscape.view.vizmap.events.VisualStyleAddedEvent e) { final org.cytoscape.view.vizmap.VisualStyle vs = e.getVisualStyleAdded(); boolean changed = false; synchronized(this) { changed = visualStyles.add(vs); } if ((changed && (cytoscapeStarted)) && (!(loadin...
public void handleEvent(final org.cytoscape.view.vizmap.events.VisualStyleAddedEvent e) { if (!(cytoscapeStarted)) return ; final org.cytoscape.view.vizmap.VisualStyle vs = e.getVisualStyleAdded(); boolean changed = false; synchronized(this) { changed = visualStyles.add(vs); } ...
public void testMangosteenSleepwithoutwater4Days() { sleepless.farmapp.model.PlantList.Mangosteen m = new sleepless.farmapp.model.PlantList.Mangosteen(); for (int i = 0; i < 4; i++) { m.plantSleep(); } assertEquals(0, m.getContPlantWater()); assertEquals(10, m.getContHealth()); }
public void testMangosteenSleepwithoutwater4Days() { sleepless.farmapp.model.PlantList.Mangosteen m = new sleepless.farmapp.model.PlantList.Mangosteen(); for (int i = 0; i < 4; i++) { m.plantSleep(); } assertEquals(4, m.getContPlantWater()); assertEquals(10, m.getContHealth()); }
public void delete() { ru.tesei7.textEditor.editor.document.Line currentLine = document.getCurrentLine(); if ((currentLine.getOffset()) == (currentLine.getLenght())) { concatLines(currentLine, currentLine.getNext()); }else { lineEditor.delete(currentLine); } }
public void delete() { ru.tesei7.textEditor.editor.document.Line currentLine = document.getCurrentLine(); if ((currentLine.getOffset()) == (currentLine.getLenght())) { concatLines(currentLine, currentLine.getNext(), false); }else { lineEditor.delete(currentLine); } }
public void onEnable() { team.crazynetwork.raids.SkyBlockRaids.self = this; org.bukkit.Bukkit.getServer().getPluginManager().registerEvents(new team.crazynetwork.raids.skyfactory.Crook(), this); org.bukkit.Bukkit.addRecipe(team.crazynetwork.raids.skyfactory.Crook.recipe()[0]); org.bukkit.Bukkit.addRecip...
public void onEnable() { team.crazynetwork.raids.SkyBlockRaids.self = this; org.bukkit.Bukkit.getServer().getPluginManager().registerEvents(new team.crazynetwork.raids.skyfactory.Crook(), this); getServer().addRecipe(team.crazynetwork.raids.skyfactory.Crook.recipe()[0]); getServer().addRecipe(team.crazy...
public void addValue(final java.lang.String name, final java.lang.Integer value, final java.lang.String description) { final org.opendaylight.yangtools.binding.generator.util.generated.type.builder.EnumerationBuilderImpl.EnumPairImpl p = new org.opendaylight.yangtools.binding.generator.util.generated.type.builder.E...
public void addValue(final java.lang.String name, final int value, final java.lang.String description) { final org.opendaylight.yangtools.binding.generator.util.generated.type.builder.EnumerationBuilderImpl.EnumPairImpl p = new org.opendaylight.yangtools.binding.generator.util.generated.type.builder.EnumerationBuil...
public void onSuccess(java.lang.Boolean warnUser) { if (warnUser) { final com.sencha.gxt.widget.core.client.box.MessageBox box = edu.arizona.biosemantics.etcsite.client.common.Alerter.semanticMarkupWarnUserTooManyWords(); box.getButton(PredefinedButton.YES).addSelectHandler(new com.sencha.gxt.widget...
public void onSuccess(java.lang.Boolean warnUser) { if (warnUser) { final com.sencha.gxt.widget.core.client.box.MessageBox box = edu.arizona.biosemantics.etcsite.client.common.Alerter.semanticMarkupWarnUserTooManyWords(); box.getButton(PredefinedButton.YES).addSelectHandler(new com.sencha.gxt.widget...
public boolean judgeSquareSum(int c) { for (int i = 1; i <= (c / 2); i++) { double a = java.lang.Math.sqrt(i); double b = java.lang.Math.sqrt((c - i)); if ((a == ((int) (a))) && (b == ((int) (b)))) { return true; } } return false; }
public boolean judgeSquareSum(int c) { if (c == 0) { return true; } for (int i = 1; i <= (java.lang.Math.sqrt(c)); i++) { int a = i * i; if (a > c) { break; } double b = java.lang.Math.sqrt((c - a)); if (b == ((int) (b))) { return true;...
protected void onCreate(android.os.Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_main); if (savedInstanceState == null) { getSupportFragmentManager().beginTransaction().add(R.id.container, new be.ludovicbonivert.rockett.model.MainActivity.TimerInfo...
protected void onCreate(android.os.Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_main); if (savedInstanceState == null) { getSupportFragmentManager().beginTransaction().add(R.id.container, new be.ludovicbonivert.rockett.model.MainActivity.TimerInfo...
public static net.minecraft.block.Block registerDoor(biomesoplenty.common.block.BlockBOPDoor door_block, java.lang.String name, net.minecraft.item.Item door_item) { net.minecraft.block.Block block = biomesoplenty.common.init.ModBlocks.registerBlock(door_block, (name + "_block"), null); door_item = biomesoplenty...
public static net.minecraft.block.Block registerDoor(biomesoplenty.common.block.BlockBOPDoor door_block, java.lang.String name, net.minecraft.item.Item door_item) { net.minecraft.block.Block block = biomesoplenty.common.init.ModBlocks.registerBlock(door_block, (name + "_block"), null, false); door_item = biomes...
public E remove(int index) { Collection.Concrete.ArrayList.checkIndex(index); if (index == ((size) - 1)) { return removeLast(); } E result = elements[index]; synchronized(this) { java.lang.System.arraycopy(elements, (index + 1), elements, index, (((size) - index) - 1)); (size...
public E remove(int index) { Collection.Concrete.ArrayList.checkIndex(index); E result = elements[index]; java.lang.System.arraycopy(elements, (index + 1), elements, index, (((size) - index) - 1)); elements[(--(size))] = null; return result; }
public void showEmotion(java.lang.String emotion, int time) { switch (emotion) { case "Neutral" : showNeutral(time); break; case "SmileVerySlight" : showVerySlightSmile(time); break; case "SmileSlight" : showSmileSlight(time); ...
public void showEmotion(java.lang.String emotion, int time) { switch (emotion) { case "Neutral" : showNeutral(time); break; case "SmileVerySlight" : showVerySlightSmile(time); break; case "SmileSlight" : showSmileSlight(time); ...
protected void afterHookedMethod(nz.pbomb.xposed.anzmods.MethodHookParam param) throws java.lang.Throwable { nz.pbomb.xposed.anzmods.XposedMod.refreshSharedPreferences(); if (nz.pbomb.xposed.anzmods.XposedMod.prefs.getBoolean(PREFERENCES.KEYS.ANZ.SPOOF_DEVICE, PREFERENCES.DEFAULT_VALUES.ANZ.SPOOF_DEVICE)) { ...
protected void afterHookedMethod(nz.pbomb.xposed.anzmods.MethodHookParam param) throws java.lang.Throwable { nz.pbomb.xposed.anzmods.XposedMod.refreshSharedPreferences(); if (nz.pbomb.xposed.anzmods.XposedMod.prefs.getBoolean(PREFERENCES.KEYS.ANZ.SPOOF_DEVICE, PREFERENCES.DEFAULT_VALUES.ANZ.SPOOF_DEVICE)) { ...
private void flush() throws java.io.IOException { if (null != (buffer)) { final int p = buffer.position(); buffer.limit(p); position += p; buffer.position(0); assert p == (buffer.remaining()); file.write(buffer); } }
private void flush() throws java.io.IOException { if (null != (buffer)) { final int p = buffer.position(); buffer.limit(p); buffer.position(0); assert p == (buffer.remaining()); file.write(buffer, position); position += p; } }
public boolean onNavigationItemSelected(android.view.MenuItem item) { android.support.v4.app.Fragment fragment = getFragmentByNavigationItem(item.getItemId()); if (null != fragment) { openFragment(fragment); }else { android.util.Log.e(se.accidis.fmfg.app.ui.MainActivity.TAG, "Trying to navig...
public boolean onNavigationItemSelected(android.view.MenuItem item) { android.support.v4.app.Fragment fragment = getFragmentByNavigationItem(item.getItemId()); if (null != fragment) { openFragment(fragment); }else { android.util.Log.e(se.accidis.fmfg.app.ui.MainActivity.TAG, "Trying to navig...
public void addFragment(android.support.v4.app.Fragment fragment, boolean animated) { if (fragment instanceof com.silverway.mboychenko.silverthread.fragments.MeditationsFragment) { collapsedAppBar(); }else { defAppBar(); } android.support.v4.app.FragmentTransaction fragmentTransaction = ...
public void addFragment(android.support.v4.app.Fragment fragment, boolean animated) { android.support.v4.app.FragmentTransaction fragmentTransaction = getSupportFragmentManager().beginTransaction(); if (animated) { fragmentTransaction.setCustomAnimations(android.R.anim.fade_in, android.R.anim.fade_out, ...
public void changed(com.wotf.gui.view.ChangeEvent event, com.badlogic.gdx.scenes.scene2d.Actor actor) { try { gameSettings.setMaxTime(java.lang.Integer.parseInt(timerbox.getSelected().toString())); session.setGameSettings(gameSettings); session.startGame(); } catch (java.rmi.RemoteExcept...
public void changed(com.wotf.gui.view.ChangeEvent event, com.badlogic.gdx.scenes.scene2d.Actor actor) { try { gameSettings.setMaxTime(java.lang.Integer.parseInt(timerbox.getSelected().toString())); session.setGameSettings(gameSettings); } catch (java.rmi.RemoteException ex) { java.util.l...
public static void left_rotate(RBTree.Node node) { RBTree.Node node_up = node.right; node.right = node_up.left; node.right.parent = node; if ((node.parent) == (RBTree.NIL)) RBTree.root = node_up; else if (node == (node.parent.left)) node.parent.left = node_up; els...
public static void left_rotate(RBTree.Node node) { RBTree.Node node_up = node.right; node.right = node_up.left; node.right.parent = node; if ((node.parent) == (RBTree.NIL)) RBTree.root = node_up; else if (node == (node.parent.left)) node.parent.left = node_up; els...
private static synchronized org.mathpiper.mpreduce.Interpreter2 getStaticInterpreter() { if ((geogebra.cas.mpreduce.CASmpreduce.mpreduce_static) == null) { geogebra.cas.mpreduce.CASmpreduce.mpreduce_static = new org.mathpiper.mpreduce.Interpreter2(); try { geogebra.cas.mpreduce.CASmpredu...
public static synchronized org.mathpiper.mpreduce.Interpreter2 getStaticInterpreter() { if ((geogebra.cas.mpreduce.CASmpreduce.mpreduce_static) == null) { geogebra.cas.mpreduce.CASmpreduce.mpreduce_static = new org.mathpiper.mpreduce.Interpreter2(); try { geogebra.cas.mpreduce.CASmpreduc...
public long exceptsPerCycle(int cycle) { net.openhft.chronicle.queue.impl.single.SingleChronicleQueueExcerpts.StoreTailer tailer = acquireTailer(); try { long index = rollCycle.toIndex(cycle, 0); if (tailer.moveToIndex(index)) { assert (tailer.store.refCount()) > 1; retur...
public long exceptsPerCycle(int cycle) { net.openhft.chronicle.queue.impl.single.SingleChronicleQueueExcerpts.StoreTailer tailer = acquireTailer(); try { long index = rollCycle.toIndex(cycle, 0); if (tailer.moveToIndex(index)) { assert (tailer.store.refCount()) > 0; retur...
public void testAtomicOperationFromTransactionFailsIfVersionChangesWithCommit() { org.cinchapi.concourse.server.storage.Transaction txn = ((org.cinchapi.concourse.server.storage.Transaction) (this.store)); org.cinchapi.concourse.server.storage.AtomicOperation operation = txn.startAtomicOperation(); operatio...
public void testAtomicOperationFromTransactionFailsIfVersionChangesWithCommit() { org.cinchapi.concourse.server.storage.Transaction txn = ((org.cinchapi.concourse.server.storage.Transaction) (this.store)); org.cinchapi.concourse.server.storage.AtomicOperation operation = txn.startAtomicOperation(); operatio...
public void testEveryCellHasCorrectCoordinates() { for (int i = 0; i < (cells.length); i++) { for (int j = 0; j < (cells[i].length); j++) { assertCoordinatesAreEquals((i + 1), cells[i][j].getRow(), (j + 1), cells[i][j].getCol()); } } }
public void testEveryCellHasCorrectCoordinates() { for (int i = 0; i < (cells.length); i++) { for (int j = 0; j < (cells[i].length); j++) { assertCoordinatesAreEquals(i, j, cells[i][j].getRow(), cells[i][j].getCol()); } } }
public static boolean isUnique(char[] a, boolean omitCheck) { if ((a.length) < 2) return true; if ((!omitCheck) && (!(com.github.methylene.sym.ArrayUtil.isSorted(a)))) a = com.github.methylene.sym.ArrayUtil.sortedCopy(a); char previous = a[0]; for (char i : a) if (i == ...
public static boolean isUnique(char[] a, boolean omitCheck) { if ((a.length) < 2) return true; if ((!omitCheck) && (!(com.github.methylene.sym.ArrayUtil.isSorted(a)))) a = com.github.methylene.sym.ArrayUtil.sortedCopy(a); for (int i = 1; i < (a.length); i++) if ((a[i]) == (...
public void testSetChordInversionsMultipleQuality() { com.jcortez.musiceartrainer.rest.chordtrainer.model.ChordCharacteristicsToTest characteristics = new com.jcortez.musiceartrainer.rest.chordtrainer.model.ChordCharacteristicsToTest(); java.lang.String[] testChordInversionsNames = new java.lang.String[3]; ...
public void testSetChordInversionsMultipleQuality() { com.jcortez.musiceartrainer.rest.chordtrainer.model.ChordCharacteristicsToTest characteristics = new com.jcortez.musiceartrainer.rest.chordtrainer.model.ChordCharacteristicsToTest(); java.lang.String[] testChordInversionsNames = new java.lang.String[3]; ...
public final org.alicebot.ab.Nodemapper match(java.lang.String input, java.lang.String that, java.lang.String topic) { org.alicebot.ab.Nodemapper n = brain.match2(input, that, topic); if (n != null) { lastUtteranceId = java.lang.Integer.parseInt(n.category.getFilename()); } return n; }
public final org.alicebot.ab.Nodemapper match(java.lang.String input, java.lang.String that, java.lang.String topic) { org.alicebot.ab.Nodemapper n = brain.match2(input, that, topic); if (n != null) { lastUtteranceId = java.lang.Integer.parseInt(n.category.getFilename()); }else { lastUtteran...
public <T> net.spy.memcached.internal.CollectionFuture<java.util.Map<java.lang.String, T>> asyncMopGet(java.lang.String key, boolean withDelete, boolean dropIfEmpty, net.spy.memcached.transcoders.Transcoder<T> tc) { java.util.List<java.lang.String> mkeyList = new java.util.ArrayList<java.lang.String>(); net.spy...
public <T> net.spy.memcached.internal.CollectionFuture<java.util.Map<java.lang.String, T>> asyncMopGet(java.lang.String key, boolean withDelete, boolean dropIfEmpty, net.spy.memcached.transcoders.Transcoder<T> tc) { java.util.List<java.lang.String> mkeyList = new java.util.ArrayList<java.lang.String>(); net.spy...
public static void handleTouchEvents(android.view.MotionEvent event, android.widget.ImageView button, com.doleh.Jukebox.Interfaces.IFunction touchHandler) { switch (event.getAction()) { case android.view.MotionEvent.ACTION_DOWN : { button.setColorFilter(1996488704, PorterDuff.Mod...
public static void handleTouchEvents(android.view.MotionEvent event, android.widget.ImageView button, com.doleh.Jukebox.Interfaces.IFunction touchHandler) { switch (event.getAction()) { case android.view.MotionEvent.ACTION_DOWN : { button.setColorFilter(1996488704, PorterDuff.Mod...
public java.lang.String[] getNames() { java.lang.String[] names = new java.lang.String[client.length]; for (int x = 0; x < (client.length); x++) { names[x] = client[x].getName(); } return names; }
private java.lang.String[] getNames() { java.lang.String[] names = new java.lang.String[client.length]; for (int x = 0; x < (client.length); x++) { names[x] = client[x].getName(); } return names; }
protected void onCreate(android.os.Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.resultactivity); eng.waterloo.what2eat.ResultActivity.displayTV = ((android.widget.TextView) (findViewById(R.id.resultTV))); eng.waterloo.what2eat.ResultActivity.displayTV.setText(...
protected void onCreate(android.os.Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.resultactivity); eng.waterloo.what2eat.ResultActivity.displayTV = ((android.widget.TextView) (findViewById(R.id.resultTV))); eng.waterloo.what2eat.ResultActivity.displayTV.setText(...
public void visitStringNode(org.maxwe.epub.parser.Text string) { if (flag) { java.lang.String text = string.getText(); java.lang.System.out.println(("=====================================================" + text)); if (!("".equals(text.trim().replaceAll(java.lang.System.getProperty("line.sep...
public void visitStringNode(org.maxwe.epub.parser.Text string) { if (flag) { java.lang.String text = string.getText(); if (!("".equals(text.trim().replaceAll(java.lang.System.getProperty("line.separator"), "")))) { linkedHashMap.put(attribute, text); } } }
public void testParseSettingMissingClosingQuotes() throws java.io.IOException { java.lang.String strSetting = "abc=\"bad value"; org.mrgeo.data.vector.geowave.Map<java.lang.String, java.lang.String> settings = new org.mrgeo.data.vector.geowave.HashMap<java.lang.String, java.lang.String>(); try { org...
public void testParseSettingMissingClosingQuotes() throws java.io.IOException { java.lang.String strSetting = "abc=\"bad value"; java.util.Map<java.lang.String, java.lang.String> settings = new java.util.HashMap<java.lang.String, java.lang.String>(); try { org.mrgeo.data.vector.geowave.GeoWaveVector...
public boolean isLightGreenAtTime(double time) { boolean willBeGreen = true; double newTimeUntilChange = timeUntilColorChange; while (time > newTimeUntilChange) { time -= newTimeUntilChange; if ((this.currentColor) == (simulator.models.StopLight.Color.GREEN)) { willBeGreen = true...
public boolean isLightGreenAtTime(double time) { boolean willBeGreen = false; if ((this.currentColor) == (simulator.models.StopLight.Color.GREEN)) { willBeGreen = true; } double newTimeUntilChange = timeUntilColorChange; while (time > newTimeUntilChange) { time -= newTimeUntilChange;...
public static int getChangedScore(model.BoardData boardData, int col, int row) { model.PieceColor[][] data = boardData.getData(); model.PieceColor pieceColor = data[col][row]; data[col][row] = null; int score = -(model.Score.getScoreByPosition(data, col, row)); data[col][row] = pieceColor; score...
private static int getChangedScore(model.BoardData boardData, int col, int row) { model.PieceColor[][] data = boardData.getData(); model.PieceColor pieceColor = data[col][row]; data[col][row] = null; int score = -(model.Score.getScoreByPosition(data, col, row)); data[col][row] = pieceColor; scor...
public void initialize() { javafx.beans.property.StringProperty speedProperty = new javafx.beans.property.SimpleStringProperty("0,0"); speedLabel.textProperty().bind(speedProperty); javafx.beans.property.StringProperty fuelConsumedProperty = new javafx.beans.property.SimpleStringProperty("0,0"); fuelCon...
public void initialize() { javafx.beans.property.StringProperty speedProperty = new javafx.beans.property.SimpleStringProperty("0,0"); speedLabel.textProperty().bind(speedProperty); javafx.beans.property.StringProperty fuelConsumedProperty = new javafx.beans.property.SimpleStringProperty("0,0"); fuelCon...
public void buildLocalUnitSheet() { domain.Unit localUnit; if ((currentChar) instanceof domain.ChildCharacter) { localUnit = new domain.Unit(((domain.ChildCharacter) (currentChar)), currentJob, currentRoute, fixedParentInputStats, fixedParent, variedParentInputStats, variedParent, startLevel); }else...
public void buildLocalUnitSheet() { domain.Unit localUnit; if ((currentChar) instanceof domain.ChildCharacter) { localUnit = new domain.Unit(((domain.ChildCharacter) (currentChar)), currentJob, currentRoute, fixedParentInputStats, fixedParent, variedParentInputStats, variedParent, startLevel); }else...
public void discardDerivedState(org.eclipse.xtext.resource.DerivedStateAwareResource resource) { org.eclipse.emf.common.util.TreeIterator<org.eclipse.emf.ecore.EObject> temp = resource.getAllContents(); while (temp.hasNext()) { org.eclipse.emf.ecore.EObject obj = temp.next(); if (obj instanceof ...
public void discardDerivedState(org.eclipse.xtext.resource.DerivedStateAwareResource resource) { org.eclipse.emf.common.util.TreeIterator<org.eclipse.emf.ecore.EObject> temp = resource.getAllContents(); while (temp.hasNext()) { org.eclipse.emf.ecore.EObject obj = temp.next(); if (obj instanceof ...
public android.database.Cursor SelectModelInSerial(java.lang.String serial) { android.database.sqlite.SQLiteDatabase db = this.getReadableDatabase(); android.database.Cursor cursor = db.query(com.int10.belt.dbHelper.TABLE_NAME, new java.lang.String[]{ "_id" , com.int10.belt.dbHelper.FIELD_MODEL }, ((((com.int10...
public android.database.Cursor SelectModelInSerial(java.lang.String serial) { android.database.sqlite.SQLiteDatabase db = this.getReadableDatabase(); android.database.Cursor cursor = db.query(com.int10.belt.dbHelper.TABLE_NAME, new java.lang.String[]{ "_id" , com.int10.belt.dbHelper.FIELD_MODEL }, ((((com.int10...
private void validateAnswer(android.view.View view) { answerContainer.setVisibility(View.VISIBLE); android.widget.RadioButton radio = ((android.widget.RadioButton) (group.findViewById(group.getCheckedRadioButtonId()))); if (radio.getText().toString().equals(correctAnswer.getText().toString())) { ans...
private void validateAnswer(android.view.View view) { answerContainer.setVisibility(View.VISIBLE); android.widget.RadioButton radio = ((android.widget.RadioButton) (group.findViewById(group.getCheckedRadioButtonId()))); if ((radio != null) && (radio.getText().toString().equals(correctAnswer.getText().toStri...
public static java.util.List<com.fkeglevich.rawdumper.camera.CaptureSize> convertSizeList(java.util.List<android.hardware.Camera.Size> list) { java.util.List<com.fkeglevich.rawdumper.camera.CaptureSize> result = new java.util.ArrayList<com.fkeglevich.rawdumper.camera.CaptureSize>(); for (android.hardware.Camera...
public static java.util.List<com.fkeglevich.rawdumper.camera.CaptureSize> convertSizeList(java.util.List<android.hardware.Camera.Size> list) { if (list == null) return new java.util.ArrayList<>(); java.util.List<com.fkeglevich.rawdumper.camera.CaptureSize> result = new java.util.ArrayList<com.fkegl...
private int rotZ(int x, int z) { if ((rotation) == 90) { return x; }else if (((rotation) == (-90)) || ((rotation) == 270)) { return 15 - x; }else if (((rotation) == 180) || ((rotation) == (-180))) { return 15 - z; } re...
private int rotZ(int x, int z) { if ((rotation) == 90) { return 15 - x; }else if (((rotation) == (-90)) || ((rotation) == 270)) { return x; }else if (((rotation) == 180) || ((rotation) == (-180))) { return 15 - z; } re...
protected boolean updateFitParameters(double[] a, int[] gradientIndices, int m, double[] da, double[] ap) { for (int j = m; (j--) > 0;) ap[gradientIndices[j]] = (a[gradientIndices[j]]) + (da[j]); return true; }
protected void updateFitParameters(double[] a, int[] gradientIndices, int m, double[] da, double[] ap) { for (int j = m; (j--) > 0;) ap[gradientIndices[j]] = (a[gradientIndices[j]]) + (da[j]); }
public void test_140_AddACLTest(edu.umass.cs.gnsclient.client.util.GuidEntry westyEntry, edu.umass.cs.gnsclient.client.util.GuidEntry samEntry) { try { try { edu.umass.cs.gnsclient.client.integrationtests.ServerIntegrationTest.client.aclAdd(AclAccessType.READ_WHITELIST, westyEntry, "environment"...
public void test_140_AddACLTest(edu.umass.cs.gnsclient.client.util.GuidEntry westyEntry, edu.umass.cs.gnsclient.client.util.GuidEntry samEntry) { try { try { edu.umass.cs.gnsclient.client.integrationtests.ServerIntegrationTest.client.aclAdd(AclAccessType.READ_WHITELIST, westyEntry, "environment"...
public void onViewClicked(android.view.View view) { switch (view.getId()) { case R.id.btn_enter_login : java.lang.String email = etEmailLogin.getText().toString(); java.lang.String password = etPasswordLogin.getText().toString(); presenter.login(email, password); ...
public void onViewClicked(android.view.View view) { switch (view.getId()) { case R.id.btn_enter_login : java.lang.String email = etEmailLogin.getText().toString().trim(); java.lang.String password = etPasswordLogin.getText().toString().trim(); presenter.login(email, passw...
public int egreedyActionSelection(competition.richmario.StateAction sa) { if ((util.RNG.randomDouble()) < (phi)) { return policyReuse(sa); }else if ((util.RNG.randomDouble()) < (epsilon)) { return util.RNG.randomInt(getNumActions()); }else { return greedyActionSel...
public int egreedyActionSelection(competition.richmario.StateAction sa, boolean update) { if ((util.RNG.randomDouble()) < (phi)) { return policyReuse(sa); }else if ((util.RNG.randomDouble()) < (epsilon)) { return util.RNG.randomInt(getNumActions()); }else { return...
public boolean trySet(long n) { int bit = 1 << n; int index = ((int) (n >>> 5)); int current = elements.get(index); int value = current | bit; if ((current == value) || (elements.compareAndSet(index, current, value))) { return true; } return false; }
public boolean trySet(long n) { int bit = 1 << n; int index = ((int) (n >>> 5)); int current; int value; do { current = elements.get(index); value = current | bit; if (current == value) { return false; } } while (!(elements.compareAndSet(index, current...
public static boolean isPalindrome(int x) { if (x < 0) return false; if ((0 <= x) && (x <= 11)) return true; if ((x % 10) == 0) return false; int reverse = 0; while (x > reverse) { reverse = (10 * reverse) + (x % 10); x = x / 10; } retu...
public static boolean isPalindrome(int x) { if (x < 0) return false; if ((0 <= x) && (x < 10)) return true; if ((x % 10) == 0) return false; int reverse = 0; while (x > reverse) { reverse = (10 * reverse) + (x % 10); x = x / 10; } retur...
private void writeDns(nl.sidn.pcap.support.PacketCombination p) { writeOK = dnsWriter.checkFilterDomainList(); if (writeOK) { dnsWriter.write(p); (counter)++; (totalCounter)++; (dnsWritten)++; if ((counter) >= (parquetMaxPackets)) { dnsWriter.close(); ...
private void writeDns(nl.sidn.pcap.support.PacketCombination p) { boolean writeOK = dnsWriter.checkFilterDomainList(p); if (writeOK) { dnsWriter.write(p); (counter)++; (totalCounter)++; (dnsWritten)++; if ((counter) >= (parquetMaxPackets)) { dnsWriter.close();...
private void runOnUiThread(java.lang.Runnable runnable) { com.app.freethinkers.sensorlogger.FileOperations myFileOperations = new com.app.freethinkers.sensorlogger.FileOperations(); java.lang.String ts = myFileOperations.getCurrentTimeStamp(); writeLogToDisc("LogFile1.txt", (((((((((ts + ": ") + (mySensorVa...
private void runOnUiThread(java.lang.Runnable runnable) { com.app.freethinkers.sensorlogger.FileOperations myFileOperations = new com.app.freethinkers.sensorlogger.FileOperations(); java.lang.String ts = myFileOperations.getCurrentTimeStamp(); writeLogToDisc("LogFile1.txt", (((((((ts + ": ") + (mySensorValu...
public void onClick(android.view.View v) { android.widget.EditText editName = ((android.widget.EditText) (findViewById(R.id.contact_edit_name))); mContact.setName(editName.getText().toString()); mContact.phoneNumbers.clear(); mContact.emails.clear(); mContact.phoneNumbers.addAll(getSectionValues(R.i...
public void onClick(android.view.View v) { android.widget.EditText editName = ((android.widget.EditText) (findViewById(R.id.contact_edit_name))); mContact.setName(editName.getText().toString()); mContact.phoneNumbers.clear(); mContact.emails.clear(); mContact.phoneNumbers.addAll(getSectionValues(R.i...
android.net.Uri uri = mUri; if (null != uri) { java.lang.String placeId = PlacesContract.PlacesEntry.getPlaceIdFromUri(uri); android.net.Uri updatedUri = PlacesContract.PlacesEntry.buildPlaceUri(_id); mUri = updatedUri; getLoaderManager().restartLoader(net.brightron.jayaneetha.vi...
android.net.Uri uri = mUri; if (null != uri) { java.lang.String placeId = PlacesContract.PlacesEntry.getPlaceIdFromUri(uri); android.net.Uri updatedUri = PlacesContract.PlacesEntry.buildPlaceUri(_id); mUri = updatedUri; getLoaderManager().restartLoader(net.brightron.jayaneetha.vi...
private org.json.JSONObject getInfo(java.lang.String personId, java.lang.String keyType) throws com.facepp.error.FaceppParseException { org.json.JSONObject personResult = null; if (keyType == (KEY_PERSON_ID)) personResult = httpRequests.personGetInfo(new com.facepp.http.PostParameters().setPersonId(pers...
private org.json.JSONObject getInfo(java.lang.String personId, java.lang.String keyType) throws com.facepp.error.FaceppParseException { org.json.JSONObject personResult = null; if (keyType == (KEY_PERSON_ID)) { java.lang.System.out.println(personId); personResult = httpRequests.personGetInfo(new...
static <VH extends RecyclerView.ViewHolder> com.staticbloc.widgets.recyclerview.ReordererAdapterDecorator<VH> decorateAdapter(final android.support.v7.widget.RecyclerView.Adapter<VH> adapterToDecorate, android.content.ClipData clipData) { if (adapterToDecorate == null) { throw new java.lang.NullPointerExcep...
static <VH extends RecyclerView.ViewHolder> com.staticbloc.widgets.recyclerview.ReordererAdapterDecorator<VH> decorateAdapter(final android.support.v7.widget.RecyclerView.Adapter<VH> adapterToDecorate, android.content.ClipData clipData) { if (adapterToDecorate == null) { throw new java.lang.NullPointerExcep...
public static android.support.v4.provider.DocumentFile createDirIfNotExist(android.support.v4.provider.DocumentFile root, java.lang.String... subDirs) { android.support.v4.provider.DocumentFile parent = root; for (int i = 0; i < (subDirs.length); i++) { java.lang.String subDirName = android.net.Uri.deco...
public static android.support.v4.provider.DocumentFile createDirIfNotExist(android.support.v4.provider.DocumentFile root, java.lang.String... subDirs) { android.support.v4.provider.DocumentFile parent = root; for (int i = 0; i < (subDirs.length); i++) { java.lang.String subDirName = subDirs[i]; ...
public main.Distance getDistanceFrom(main.Sentence sentence) { if (nearlyEquals(sentence)) return Distance.CORRECT; java.lang.String str = sentence.getFormatted().replaceAll(" ", ""); int d = main.SentenceUtil.getDistance(this.formatted.replaceAll(" ", ""), str); if (d <= 3) { retur...
public main.Distance getDistanceFrom(main.Sentence sentence) { if (nearlyEquals(sentence)) return Distance.CORRECT; if (this.equals("")) return Distance.INCORRECT; java.lang.String str = sentence.getFormatted().replaceAll(" ", ""); int d = main.SentenceUtil.getDistance(this.for...
private android.support.v4.app.Fragment getHomeFragment() { switch (com.reader.quranreader.MainActivity.navItemIndex) { case 0 : return com.reader.quranreader.HomeFragment.newInstance(2); case 1 : com.reader.quranreader.ShuffleFragment shuffleFragment = new com.reader.quranre...
private android.support.v4.app.Fragment getHomeFragment() { switch (com.reader.quranreader.MainActivity.navItemIndex) { case 0 : return com.reader.quranreader.HomeFragment.newInstance(1); case 1 : com.reader.quranreader.ShuffleFragment shuffleFragment = new com.reader.quranre...
private int estimatePlainWidth(org.geogebra.common.awt.GGraphics2D g2, int cols) { org.geogebra.common.awt.font.GTextLayout layout = getLayout(g2, getWidthestPlainItem(), optionFont); double w = ((layout.getBounds().getWidth()) + (2 * (getOptionsItemHGap()))) * cols; org.geogebra.common.main.App.debug(("[DR...
private int estimatePlainWidth(org.geogebra.common.awt.GGraphics2D g2, int cols) { org.geogebra.common.awt.font.GTextLayout layout = getLayout(g2, getWidthestPlainItem(), optionFont); double w = ((layout.getBounds().getWidth()) + (2 * (getOptionsItemHGap()))) * cols; return ((int) (w)); }
private void ensureLib() { ensureArgsParsed(); if (argsParsed.hasOption(org.kyupi.apps.App.OPT_LIB)) { java.lang.String val = argsParsed.getOptionValue(org.kyupi.apps.App.OPT_LIB).toUpperCase(); if (val.startsWith("N")) lib = new org.kyupi.graph.LibraryNangate(); else ...
private void ensureLib() { ensureArgsParsed(); if (argsParsed.hasOption(org.kyupi.apps.App.OPT_LIB)) { java.lang.String val = argsParsed.getOptionValue(org.kyupi.apps.App.OPT_LIB).toUpperCase(); if (val.startsWith("N")) lib = new org.kyupi.graph.LibraryNangate(); else ...
public void run(int param) throws com.awprog.scroidv2.AlphaScript.ErrorDialog.ScriptException { double result = java.lang.Math.log10(((com.awprog.scroidv2.AlphaScript.NumberData) (getParams().inRight)).getValue()); if ((result == (java.lang.Double.NaN)) || (result == (java.lang.Double.NEGATIVE_INFINITY))) ...
public void run(int param) throws com.awprog.scroidv2.AlphaScript.ErrorDialog.ScriptException { double result = java.lang.Math.log10(((com.awprog.scroidv2.AlphaScript.NumberData) (getParams().inRight)).getValue()); if (result == (java.lang.Double.NaN)) throw new com.awprog.scroidv2.AlphaScript.ErrorDial...
public boolean onOptionsItemSelected(android.view.MenuItem item) { int id = item.getItemId(); if (id == (R.id.action_about)) { new android.support.v7.app.AlertDialog.Builder(this).setCancelable(true).setView(R.layout.about_dialog).create().show(); return true; } if (id == (R.id.action_sh...
public boolean onOptionsItemSelected(android.view.MenuItem item) { int id = item.getItemId(); if (id == (R.id.action_about)) { new android.support.v7.app.AlertDialog.Builder(this).setCancelable(true).setView(R.layout.about_dialog).create().show(); return true; } if (id == (R.id.action_sh...
public void writeDouble(double value) { long longBits = java.lang.Double.doubleToLongBits(value); writeInt(((int) (longBits >>> 32))); writeInt(((int) (longBits))); position += 8; }
public void writeDouble(double value) { long longBits = java.lang.Double.doubleToLongBits(value); writeInt(((int) (longBits >> 32))); writeInt(((int) (longBits))); position += 8; }
public jk.kamoru.crazy.video.domain.Video getVideo(java.lang.String opus) { videoSource(); if (videoMap.containsKey(opus.toLowerCase())) return videoMap.get(opus.toLowerCase()); else if (isArchive) return new jk.kamoru.crazy.video.domain.Video(); else throw ne...
public jk.kamoru.crazy.video.domain.Video getVideo(java.lang.String opus) { videoSource(); if (videoMap.containsKey(opus.toLowerCase())) return videoMap.get(opus.toLowerCase()); else if (isArchive) return null; else throw new jk.kamoru.crazy.video.VideoNotFoun...
private java.lang.String decodeAuthorizationHeader(java.lang.String authorizationHeader) { java.lang.String[] splitValues = authorizationHeader.trim().split(" "); byte[] decodedBytes = org.apache.axiom.util.base64.Base64Utils.decode(splitValues[1].trim()); if (decodedBytes != null) { return new java...
private java.lang.String decodeAuthorizationHeader(java.lang.String authorizationHeader) { if (authorizationHeader == null) { return null; } java.lang.String[] splitValues = authorizationHeader.trim().split(" "); byte[] decodedBytes = org.apache.axiom.util.base64.Base64Utils.decode(splitValues[1...
protected void onAttachedToWindow() { if ((mCamera) == null) { mCamera = com.ddeath.ZebraScanner.ZebraScannerView.getCameraInstance(); mPreview = new com.ddeath.ZebraScanner.CameraPreview(zebraContext, mCamera, previewCb, autoFocusCB); addView(mPreview, 200, 200); mCamera.startPrevie...
protected void onAttachedToWindow() { super.onAttachedToWindow(); if ((mCamera) == null) { mCamera = com.ddeath.ZebraScanner.ZebraScannerView.getCameraInstance(); mPreview = new com.ddeath.ZebraScanner.CameraPreview(zebraContext, mCamera, previewCb, autoFocusCB); addView(mPreview, 200, 2...
java.lang.Integer workId = t.getWorkId(); nna.base.util.concurrent.Worker worker = balancedWorkerList.get(workId.intValue()); java.lang.Long taskSeq = t.getIndex(); java.util.concurrent.ConcurrentHashMap<java.lang.Long, nna.base.util.concurrent.AbstractTasks> workMap = worker.getWorkMap(); nna.base....
java.lang.Integer workId = t.getWorkId(); nna.base.util.concurrent.Worker worker = balancedWorkerList.get(workId); java.lang.Long taskSeq = t.getIndex(); java.util.concurrent.ConcurrentHashMap<java.lang.Long, nna.base.util.concurrent.AbstractTasks> workMap = worker.getWorkMap(); nna.base.util.concur...
public void activate(final org.cloudcoder.app.client.model.Session session, org.cloudcoder.app.shared.util.SubscriptionRegistrar subscriptionRegistrar) { this.session = session; session.subscribe(Session.Event.ADDED_OBJECT, this, subscriptionRegistrar); this.user = session.get(org.cloudcoder.app.shared.mode...
public void activate(final org.cloudcoder.app.client.model.Session session, org.cloudcoder.app.shared.util.SubscriptionRegistrar subscriptionRegistrar) { session.subscribe(Session.Event.ADDED_OBJECT, this, subscriptionRegistrar); org.cloudcoder.app.shared.model.ProblemAndSubmissionReceipt[] problemAndSubmission...
public static javax.crypto.Mac getMac(com.rockaport.alice.AliceContext.MacAlgorithm macAlgorithm, char[] password) throws java.security.GeneralSecurityException { if (macAlgorithm == null) { throw new java.lang.IllegalArgumentException("Algorithm is null"); } if ((password == null) || ((password.len...
private javax.crypto.Mac getMac(com.rockaport.alice.AliceContext.MacAlgorithm macAlgorithm, char[] password) throws java.security.GeneralSecurityException { javax.crypto.Mac mac = javax.crypto.Mac.getInstance(macAlgorithm.toString()); mac.init(new javax.crypto.spec.SecretKeySpec(com.rockaport.alice.Alice.toByte...
private void newGroup(java.util.ArrayList<java.lang.String> usernames) { java.util.ArrayList<client.User> users = new java.util.ArrayList<client.User>(usernames.size()); for (java.lang.String S : usernames) users.add(new client.User(S, getIP(S))); groups.add(new client.Group(users)); }
public void newGroup(java.lang.String name, java.util.ArrayList<java.lang.String> usernames) { java.util.ArrayList<client.User> users = new java.util.ArrayList<client.User>(usernames.size()); for (java.lang.String S : usernames) users.add(new client.User(S, getIP(S))); groups.add(new client.Gro...
private void checkPrivateProjectPhase(com.topcoder.management.project.Project projectHeader, com.topcoder.management.project.Project projectPhases) { for (com.topcoder.project.service.impl.Phase p : projectPhases.getAllPhases()) { if ((p.getPhaseType().getId()) == (PhaseType.REGISTRATION_PHASE.getId())) { ...
private void checkPrivateProjectPhase(com.topcoder.management.project.Project projectHeader, com.topcoder.management.project.Project projectPhases) { for (com.topcoder.project.service.impl.Phase p : projectPhases.getAllPhases()) { if ((p.getPhaseType().getId()) == (PhaseType.REGISTRATION_PHASE.getId())) { ...
private void setMultiListLoadingMessage() { if ((emptyContentContainer) != null) { emptyContentHeadline.setText(R.string.file_list_loading); emptyContentMessage.setText(""); emptyContentIcon.setVisibility(View.GONE); multiListProgressBar.getIndeterminateDrawable().setColorFilter(com....
private void setMultiListLoadingMessage() { if ((emptyContentContainer) != null) { emptyContentHeadline.setText(R.string.file_list_loading); emptyContentMessage.setText(""); emptyContentIcon.setVisibility(View.GONE); emptyContentMessage.setVisibility(View.GONE); multiListProg...
public void run() { final java.lang.String threadName = java.lang.Thread.currentThread().getName(); org.junit.Assert.assertFalse(threadInvocationRegistry.containsKey(threadName)); standFunnel.post(new java.lang.Object(), com.google.protobuf.Any.getDefaultInstance()); threadInvocationRegistry.put(threadN...
public void run() { final java.lang.String threadName = java.lang.Thread.currentThread().getName(); org.junit.Assert.assertFalse(threadInvocationRegistry.contains(threadName)); standFunnel.post(new java.lang.Object(), com.google.protobuf.Any.getDefaultInstance()); threadInvocationRegistry.add(threadName...
private org.eclipse.sirius.viewpoint.Style createAndAffectWorkspaceImageCustomized(final org.eclipse.sirius.diagram.DDiagramElement dde, final org.eclipse.sirius.diagram.description.style.WorkspaceImageDescription wid) { org.eclipse.sirius.viewpoint.Style newStyle = null; if (dde instanceof org.eclipse.sirius.d...
private org.eclipse.sirius.viewpoint.Style createAndAffectWorkspaceImageCustomized(final org.eclipse.sirius.diagram.DDiagramElement dde, final org.eclipse.sirius.diagram.description.style.WorkspaceImageDescription wid) { org.eclipse.sirius.viewpoint.Style newStyle = null; if (dde instanceof org.eclipse.sirius.d...