buggy_function
stringlengths
1
391k
fixed_function
stringlengths
0
392k
private boolean updateExpressionList() { com.org.gnos.services.Expressions expressions = new com.org.gnos.services.Expressions(); this.allDefinedExpressions = expressionBuilderGrid.getDefinedExpressions(); if ((this.allDefinedExpressions) == null) { return false; } for (com.org.gnos.services...
private boolean updateExpressionList() { this.allDefinedExpressions = expressionBuilderGrid.getDefinedExpressions(); if ((this.allDefinedExpressions) == null) { return false; } for (com.org.gnos.services.Expression expression : this.allDefinedExpressions) { com.org.gnos.services.Expressi...
public void brake(int motorNum) throws ioio.lib.api.exception.ConnectionLostException { if (closed_) return ; if ((motorNum == 1) || (motorNum == 3)) { motor1Out1_.write(true); motor1Out2_.write(true); motor1PWM_.setDutyCycle(1); }else if ((motorNum == 2) || (mot...
public void brake(int motorNum) throws ioio.lib.api.exception.ConnectionLostException { if (closed_) return ; if ((motorNum == 1) || (motorNum == 3)) { motor1Out1_.write(true); motor1Out2_.write(true); motor1PWM_.setDutyCycle(1); } if ((motorNum == 2) || (motorNum ==...
public ai.grakn.graql.analytics.SumQuery visitSum(ai.grakn.graql.internal.antlr.GraqlParser.SumContext ctx) { ai.grakn.graql.analytics.SumQuery sum = queryBuilder.compute().sum(); if ((ctx.ofList()) != null) { sum = sum.of(visitOfList(ctx.ofList())); } if ((ctx.inList()) != null) { sum =...
public ai.grakn.graql.analytics.SumQuery visitSum(ai.grakn.graql.internal.antlr.GraqlParser.SumContext ctx) { ai.grakn.graql.analytics.SumQuery sum = queryBuilder.compute().sum().of(visitOfList(ctx.ofList())); if ((ctx.inList()) != null) { sum = sum.in(visitInList(ctx.inList())); } return sum; }
public java.lang.String addSkills(@org.springframework.web.bind.annotation.RequestParam java.lang.String label, @org.springframework.web.bind.annotation.RequestParam java.lang.String description, org.springframework.ui.Model model) { com.amaydanskiy.model.Skill newSkill = new com.amaydanskiy.model.Skill(); newS...
public java.lang.String addSkills(@org.springframework.web.bind.annotation.RequestParam java.lang.String label, @org.springframework.web.bind.annotation.RequestParam java.lang.String description, org.springframework.ui.Model model) { com.amaydanskiy.model.Skill newSkill = new com.amaydanskiy.model.Skill(); newS...
public void onSelectDate(java.util.Date date, android.view.View view) { java.util.Calendar calendar = java.util.Calendar.getInstance(); calendar.setTime(date); com.fitgoose.fitgoosedemo.MyDate myDate = new com.fitgoose.fitgoosedemo.MyDate(); myDate.setFromCalendar(calendar); com.fitgoose.fitgoosedem...
public void onSelectDate(java.util.Date date, android.view.View view) { java.util.Calendar calendar = java.util.Calendar.getInstance(); calendar.setTime(date); com.fitgoose.fitgoosedemo.MyDate myDate = new com.fitgoose.fitgoosedemo.MyDate(); myDate.setFromCalendar(calendar); com.fitgoose.fitgoosedem...
private java.lang.String toString(java.nio.ByteBuffer buffer) { int offset = buffer.arrayOffset(); byte[] source = buffer.array(); int length = (source.length) - offset; return new java.lang.String(source, offset, length); }
private static java.lang.String toString(java.nio.ByteBuffer buffer) { int offset = buffer.arrayOffset(); byte[] source = buffer.array(); int length = (source.length) - offset; return new java.lang.String(source, offset, length); }
public void run() { android.graphics.Bitmap screen = screenGrabber.grabScreen(); java.lang.String appraiseText = ocr.getAppraisalText(screen); java.lang.String hash = appraiseText.substring(0, appraiseText.indexOf("#")); java.lang.String text = appraiseText.substring(((appraiseText.indexOf("#")) + 1)); ...
public void run() { android.graphics.Bitmap screen = screenGrabber.grabScreen(); if (screen != null) { java.lang.String appraiseText = ocr.getAppraisalText(screen); java.lang.String hash = appraiseText.substring(0, appraiseText.indexOf("#")); java.lang.String text = appraiseText.substrin...
private static java.lang.String getAnnotationValue(org.objectweb.asm.tree.AnnotationNode annotation, java.lang.String key, java.lang.Class<?> annotationClass) { java.lang.String value = org.spongepowered.asm.util.ASMHelper.getAnnotationValue(annotation, key); if (value == null) { try { value...
private static java.lang.String getAnnotationValue(org.objectweb.asm.tree.AnnotationNode annotation, java.lang.String key, java.lang.Class<?> annotationClass) { java.lang.String value = org.spongepowered.asm.util.ASMHelper.getAnnotationValue(annotation, key); if (value == null) { try { value...
public void onEventMainThread(com.app.afridge.dom.SyncEvent event) { getActivity().sendBroadcast(new android.content.Intent(com.app.afridge.ui.MainActivity.ACTION_FINISHED_SYNC)); if (isAdded()) { setLastSyncTimestamp(); if ((swipeRefreshLayout) != null) { swipeRefreshLayout.setRefre...
public void onEventMainThread(com.app.afridge.dom.SyncEvent event) { if (isAdded()) { setLastSyncTimestamp(); if ((swipeRefreshLayout) != null) { swipeRefreshLayout.setRefreshing(false); } } switch (event.message) { case IDLE : break; case SYNC...
public T get(java.lang.Object iKey) { final java.lang.Object lastIndexResult = lastIndex.get(iKey); final java.util.Set<com.orientechnologies.orient.core.db.record.OIdentifiable> result = new java.util.HashSet<com.orientechnologies.orient.core.db.record.OIdentifiable>(); result.addAll(applyTailIndexes(lastI...
public T get(java.lang.Object iKey) { final java.lang.Object lastIndexResult = lastIndex.get(iKey); final java.util.Set<com.orientechnologies.orient.core.db.record.OIdentifiable> result = new java.util.HashSet<com.orientechnologies.orient.core.db.record.OIdentifiable>(); if (lastIndexResult != null) ...
public static <K> java.util.Map<K, java.lang.Double> normalize(java.util.Map<K, java.lang.Double> map) { double z = 0.0; for (java.lang.Double d : map.values()) z += d; for (java.util.Map.Entry<K, java.lang.Double> e : map.entrySet()) e.setValue(((e.getValue()) / z)); return ma...
public static <K> java.util.Map<K, java.lang.Double> normalize(java.util.Map<K, java.lang.Double> map) { double z = 0.0; for (java.lang.Double d : map.values()) z += d; if (z == 0) return map; for (java.util.Map.Entry<K, java.lang.Double> e : map.entrySet()) e.setValue(...
public T removeFirst() { cn.young.ds.LinkedList<T>.Node tmp = first; if (tmp == null) return null; T item = tmp.record; first = tmp.next; if (isEmpty()) { last = null; } tmp = null; (size)--; return item; }
public T removeFirst() { if (isEmpty()) return null; cn.young.ds.LinkedList<T>.Node tmp = first; T item = tmp.record; first = tmp.next; (size)--; if (isEmpty()) { last = null; } tmp = null; return item; }
public boolean deleteWorkspace(java.lang.String wsId) { edu.asu.spring.quadriga.dto.WorkspaceDTO workspace = getWorkspaceDTO(wsId); if (workspace == null) { edu.asu.spring.quadriga.dao.impl.workspace.WorkspaceDAO.logger.error("Workspace does not exist."); return false; } deleteWorkspaceP...
public boolean deleteWorkspace(java.lang.String wsId) { edu.asu.spring.quadriga.dto.WorkspaceDTO workspace = getWorkspaceDTO(wsId); if (workspace == null) { edu.asu.spring.quadriga.dao.impl.workspace.WorkspaceDAO.logger.error("Workspace does not exist."); return false; } deleteWorkspaceP...
public void uiNewValueForCharacteristic(android.bluetooth.BluetoothGatt gatt, android.bluetooth.BluetoothDevice device, android.bluetooth.BluetoothGattService service, android.bluetooth.BluetoothGattCharacteristic ch, final java.lang.String strValue) { org.esec.mcg.utils.logger.LogUtils.d("read characteristic callb...
public void uiNewValueForCharacteristic(android.bluetooth.BluetoothGatt gatt, android.bluetooth.BluetoothDevice device, android.bluetooth.BluetoothGattService service, android.bluetooth.BluetoothGattCharacteristic ch, final java.lang.String strValue) { mContext.runOnUiThread(new java.lang.Runnable() { @java...
public static int daysLeft(int population) { int days = 1; int healthy = population - 1; int infected = 1; int newInfected; while (healthy > 0) { newInfected = infected * 2; infected += newInfected; healthy -= newInfected; days++; } return days; }
public static int daysLeft(int population) { int days = 1; int healthy = population - 1; int infected = 1; int newInfected = infected; while (healthy > 0) { newInfected *= 2; infected += newInfected; healthy -= newInfected; days++; } return days; }
private com.spinalcraft.slipdisk.Profile getProfile(java.lang.String username) { java.lang.String query = "SELECT uuid FROM slip_users WHERE username = ?"; java.sql.PreparedStatement stmt; try { stmt = com.spinalcraft.spinalpack.Spinalpack.prepareStatement(query); stmt.setString(1, username)...
private com.spinalcraft.slipdisk.Profile getProfile(java.lang.String username) { java.lang.String query = "SELECT uuid FROM slip_users WHERE username = ?"; java.sql.PreparedStatement stmt; try { stmt = com.spinalcraft.spinalpack.Spinalpack.prepareStatement(query); stmt.setString(1, username)...
private static boolean shouldContinue(com.google.pubsub.flic.common.LoadtestProto.StartRequest request, int numberOfMessages) { switch (request.getStopConditionsCase()) { case STOP_TIME : return (java.lang.System.currentTimeMillis()) < ((request.getStopTime().getSeconds()) * 1000); case ...
private static boolean shouldContinue(com.google.pubsub.flic.common.LoadtestProto.StartRequest request, int numberOfMessages) { switch (request.getStopConditionsCase()) { case STOP_TIME : return (java.lang.System.currentTimeMillis()) < ((request.getStopTime().getSeconds()) * 1000); case ...
public void tearDown() throws java.lang.Exception { org.apache.atlas.typesystem.types.TypeSystem.getInstance().reset(); graphProvider.get().shutdown(); try { com.thinkaurelius.titan.core.util.TitanCleanup.clear(graphProvider.get()); } catch (java.lang.Exception e) { e.printStackTrace(); ...
public void tearDown() throws java.lang.Exception { org.apache.atlas.typesystem.types.TypeSystem.getInstance().reset(); try { graphProvider.get().shutdown(); } catch (java.lang.Exception e) { e.printStackTrace(); } try { com.thinkaurelius.titan.core.util.TitanCleanup.clear(gr...
private void publish() { java.lang.Boolean allReady = false; for (com.peebeekay.fx.simulation.data.IDataSubscriber subscriber : subscribers) { allReady &= subscriber.isReady(); } if (allReady) { com.peebeekay.fx.simulation.data.Price publishPrice = cache.poll(); for (com.peebeeka...
private void publish() { java.lang.Boolean allReady = true; for (com.peebeekay.fx.simulation.data.IDataSubscriber subscriber : subscribers) { allReady &= subscriber.isReady(); } if (allReady) { com.peebeekay.fx.simulation.data.Price publishPrice = cache.poll(); for (com.peebeekay...
public com.redhat.ceylon.model.typechecker.model.ProducedType substitute(java.util.Map<com.redhat.ceylon.model.typechecker.model.TypeParameter, com.redhat.ceylon.model.typechecker.model.ProducedType> substitutions, java.util.Map<com.redhat.ceylon.model.typechecker.model.TypeParameter, com.redhat.ceylon.model.typechecke...
public com.redhat.ceylon.model.typechecker.model.ProducedType substitute(java.util.Map<com.redhat.ceylon.model.typechecker.model.TypeParameter, com.redhat.ceylon.model.typechecker.model.ProducedType> substitutions, java.util.Map<com.redhat.ceylon.model.typechecker.model.TypeParameter, com.redhat.ceylon.model.typechecke...
public void onBindViewHolder(acodexm.futuremindapp.ContentListAdapter.RepoViewHolder holder, int position) { acodexm.futuremindapp.DataRepo repo = mData.get(position); holder.mTitle.setText(repo.getTitle()); holder.mDesc.setText(repo.getDescription()); holder.mDate.setText(repo.getModificationDate()); ...
public void onBindViewHolder(acodexm.futuremindapp.ContentListAdapter.RepoViewHolder holder, int position) { acodexm.futuremindapp.DataRepo repo = mData.get(position); holder.mTitle.setText(repo.getTitle()); holder.mDate.setText(repo.getModificationDate()); it.sephiroth.android.library.picasso.Picasso.w...
public java.util.List<java.lang.String> cfgSysConSortByHeader(java.lang.String header, java.lang.String orderKey, java.util.List<java.lang.String> sortIdList) { org.hibernate.Session session = getSessionFactory(); org.hibernate.Transaction tx = session.beginTransaction(); java.lang.String sql = ((((super.ge...
public java.util.List<java.lang.String> cfgSysConSortByHeader(java.lang.String header, java.lang.String orderKey, java.util.List<java.lang.String> sortIdList) { org.hibernate.Session session = getSessionFactory(); java.lang.String sql = ((((super.getSqlStatment(Sqlmapping.CFG_SYSTEM_CONFIG_DATA_SORT_BY_HEANDER)...
public static com.swiftrunner.raincloud.serialization.RCDatabase DeserializeFromFile(java.lang.String path) { byte[] buffer = null; try { java.io.BufferedInputStream stream = new java.io.BufferedInputStream(new java.io.FileInputStream(path)); buffer = new byte[stream.available()]; stream...
public static com.swiftrunner.raincloud.serialization.RCDatabase DeserializeFromFile(java.lang.String path) { byte[] buffer = null; try { java.io.BufferedInputStream stream = new java.io.BufferedInputStream(new java.io.FileInputStream(path)); buffer = new byte[stream.available()]; stream...
void serviceRemoved() { if ((installedServices.decrementAndGet()) > 0) return ; org.jboss.msc.txn.ServiceRegistryImpl.NotificationEntry removeObservers; synchronized(this) { removeObservers = this.removeObservers; this.removeObservers = null; } while (removeObservers != ...
void serviceRemoved() { org.jboss.msc.txn.ServiceRegistryImpl.NotificationEntry removeObservers; synchronized(this) { if ((--(installedServices)) > 0) return ; removeObservers = this.removeObservers; this.removeObservers = null; } while (removeObservers != nu...
public void set(us.ihmc.robotics.dataStructures.variable.DoubleYoVariable time, us.ihmc.robotics.math.frames.YoFramePoint position, us.ihmc.robotics.math.frames.YoFrameQuaternion orientation, us.ihmc.robotics.math.frames.YoFrameVector linearVelocity, us.ihmc.robotics.math.frames.YoFrameVector angularVelocity) { set...
public void set(us.ihmc.robotics.dataStructures.variable.DoubleYoVariable time, us.ihmc.robotics.math.frames.YoFramePoint position, us.ihmc.robotics.math.frames.YoFrameQuaternion orientation, us.ihmc.robotics.math.frames.YoFrameVector linearVelocity, us.ihmc.robotics.math.frames.YoFrameVector angularVelocity) { thi...
public void onCheckedChanged(android.widget.CompoundButton buttonView, boolean isChecked) { int id = buttonView.getId(); switch (id) { case R.id.switch_theme : themeChanged = true; if (isChecked) { settingsManager.setThemeDark(); }else { ...
public void onCheckedChanged(android.widget.CompoundButton buttonView, boolean isChecked) { int id = buttonView.getId(); switch (id) { case R.id.switch_theme : themeChanged = true; if (isChecked) { settingsManager.setThemeDark(); }else { ...
public void onClick(android.content.DialogInterface dialogInterface, int which) { java.lang.String placeID = selected.getPlaceID(); android.support.v4.app.DialogFragment dialog = com.kappa_labs.ohunter.client.utilities.Wizard.getServerCommunicationDialog(com.kappa_labs.ohunter.client.activities.DummyApplication...
public void onClick(android.content.DialogInterface dialogInterface, int which) { java.lang.String placeID = selected.getPlaceID(); android.support.v4.app.DialogFragment dialog = com.kappa_labs.ohunter.client.utilities.Wizard.getServerCommunicationDialog(this); com.kappa_labs.ohunter.client.utilities.Respon...
private void finishWithResult(java.io.File file) { if (file != null) { android.net.Uri uri = android.net.Uri.fromFile(file); android.widget.Toast.makeText(this, uri.toString(), Toast.LENGTH_SHORT).show(); setResult(sharedcode.turboeditor.activity.RESULT_OK, new android.content.Intent().setDa...
private void finishWithResult(java.io.File file) { if (file != null) { android.net.Uri uri = android.net.Uri.fromFile(file); setResult(sharedcode.turboeditor.activity.RESULT_OK, new android.content.Intent().setData(uri)); finish(); }else { setResult(sharedcode.turboeditor.activit...
public void load() { try { net.minecraft.world.storage.MapStorage data = getData(); net.minecraft.world.WorldSavedData wsd = data.loadData(getClass(), getName()); net.minecraft.nbt.NBTTagCompound nbt = new net.minecraft.nbt.NBTTagCompound(); wsd.writeToNBT(nbt); readFromNBT(n...
public void load() { synchronized(this) { try { net.minecraft.world.storage.MapStorage data = getData(); net.minecraft.world.WorldSavedData wsd = data.loadData(getClass(), getName()); net.minecraft.nbt.NBTTagCompound nbt = new net.minecraft.nbt.NBTTagCompound(); ...
public boolean moveVert() { if (!(movingVert())) { return false; } java.lang.System.out.println("hey dogg"); setCenterY(((centerY) + ((moveInc) * (java.lang.Math.signum(((destY) - (centerY))))))); return true; }
public boolean moveVert() { if (!(movingVert())) { return false; } setCenterY(((centerY) + ((moveInc) * (java.lang.Math.signum(((destY) - (centerY))))))); return true; }
public static void finish() { java.lang.System.out.println("finishing!"); nachos.threads.Lib.debug(nachos.threads.KThread.dbgThread, ("Finishing thread: " + (nachos.threads.KThread.currentThread.toString()))); nachos.threads.Machine.interrupt().disable(); nachos.threads.Machine.autoGrader().finishingCur...
public static void finish() { nachos.threads.Lib.debug(nachos.threads.KThread.dbgThread, ("Finishing thread: " + (nachos.threads.KThread.currentThread.toString()))); nachos.threads.Machine.interrupt().disable(); nachos.threads.Machine.autoGrader().finishingCurrentThread(); nachos.threads.Lib.assertTrue(...
public boolean onOptionsItemSelected(android.view.MenuItem item) { int id = item.getItemId(); if (id == (R.id.action_settings)) { android.content.Intent SettingsIntent = new android.content.Intent(getApplicationContext(), de.logbooker.AppSettings.class); SettingsIntent.putExtra(de.logbooker.Sele...
public boolean onOptionsItemSelected(android.view.MenuItem item) { int id = item.getItemId(); if (id == (R.id.action_settings)) { android.content.Intent SettingsIntent = new android.content.Intent(this, de.logbooker.AppSettings.class); SettingsIntent.putExtra(de.logbooker.SelectTripActivity.ORIG...
public void onResume() { super.onResume(); android.util.Log.i("RESUME", "onResume performed from SessionListFragment"); try { items = it.dei.unipd.esp1415.utils.LocalStorage.getSessionInfos(); } catch (java.io.IOException e) { android.util.Log.i("ERROR", "Error getting session list - Loc...
public void onResume() { super.onResume(); try { items = it.dei.unipd.esp1415.utils.LocalStorage.getSessionInfos(); } catch (java.io.IOException e) { android.util.Log.i("ERROR", "Error getting session list - LocalStorage"); } setListAdapter(new it.dei.unipd.esp1415.adapters.SessionAd...
public static void generatePrintMessage(java.util.ArrayList<grammars.grammars.PrintableObject> names, grammars.grammars.GrammarsGeneral grammar, java.lang.String type, boolean usePronoun, boolean useAnd) { grammars.grammars.GrammarIndividual grammarIndividual = grammar.getRandomGrammar(); main.Main.printMessage...
public static void generatePrintMessage(java.util.ArrayList<grammars.grammars.PrintableObject> names, grammars.grammars.GrammarsGeneral grammar, java.lang.String type, boolean usePronoun, boolean useAnd) { grammars.grammars.GrammarIndividual grammarIndividual = grammar.getRandomGrammar(); main.Main.printMessage...
public final org.takes.Response exit(final org.takes.Response response, final org.takes.facets.auth.Identity identity) throws java.io.IOException { try { return this.all.get(this.index).exit(response, identity); } catch (final java.lang.IndexOutOfBoundsException exc) { throw new java.io.IOExcept...
public final org.takes.Response exit(final org.takes.Response response, final org.takes.facets.auth.Identity identity) throws java.io.IOException { if ((this.index) < (this.all.size())) { return this.all.get(this.index).exit(response, identity); }else { throw new java.io.IOException("Index of id...
protected static java.lang.String decodePercent(java.lang.String str) { java.lang.String decoded = null; try { decoded = java.net.URLDecoder.decode(str, "UTF8"); } catch (java.io.UnsupportedEncodingException ignored) { android.util.Log.i("SimpleWebServer", "Encoding not supported, ignored");...
protected static java.lang.String decodePercent(java.lang.String str) { java.lang.String decoded = null; try { decoded = java.net.URLDecoder.decode(str, "UTF8"); } catch (java.io.UnsupportedEncodingException ignored) { com.wade.webserver.NanoHTTPD.LOG.log(java.util.logging.Level.WARNING, "En...
private void handleReady(org.json.JSONObject json) { try { lock.lock(); lockStop.lock(); if ((connectedDevices.containsKey(json.getString(PinchInfo.ADDRESS))) && (!(stop))) { lockStop.unlock(); connectedDevices.get(json.getString(PinchInfo.ADDRESS)).setReadyReceived(t...
private void handleReady(org.json.JSONObject json) { try { lock.lock(); if (connectedDevices.containsKey(json.getString(PinchInfo.ADDRESS))) { connectedDevices.get(json.getString(PinchInfo.ADDRESS)).setReadyReceived(true); } lock.unlock(); } catch (org.json.JSONExcept...
public boolean addCellPairLazy() { int cellCount = getCellCount(); while (cellCount < 2) { java.lang.Integer freeCell = findFreeCell(); if (freeCell == null) { return false; } _cellMask._values[freeCell] = 1.0F; _cellAges._values[freeCell] = 0.0F; ++ce...
private boolean addCellPairLazy() { int cellCount = getCellCount(); while (cellCount < 2) { java.lang.Integer freeCell = findFreeCell(); if (freeCell == null) { return false; } _cellMask._values[freeCell] = 1.0F; _cellAges._values[freeCell] = 0.0F; ++c...
public android.view.View onCreateView(android.view.LayoutInflater inflater, android.view.ViewGroup container, android.os.Bundle savedInstanceState) { final android.view.View view = inflater.inflate(R.layout.fragment_settings, container, false); unbinder = butterknife.ButterKnife.bind(this, view); mPicasso =...
public android.view.View onCreateView(android.view.LayoutInflater inflater, android.view.ViewGroup container, android.os.Bundle savedInstanceState) { final android.view.View view = inflater.inflate(R.layout.fragment_settings, container, false); unbinder = butterknife.ButterKnife.bind(this, view); mPicasso =...
public void channelRead(io.netty.channel.ChannelHandlerContext ctx, java.lang.Object msg) throws java.lang.Exception { super.channelRead(ctx, msg); java.lang.System.out.println("IN channelRead Metrics"); if (msg instanceof io.netty.handler.codec.http.HttpRequest) { oneConnectionStat.setUri(((io.nett...
public void channelRead(io.netty.channel.ChannelHandlerContext ctx, java.lang.Object msg) throws java.lang.Exception { super.channelRead(ctx, msg); java.lang.System.out.println("IN channelRead Metrics"); if (msg instanceof io.netty.handler.codec.http.HttpRequest) { oneConnectionStat.setUri(((io.nett...
protected void onNewIntent(android.content.Intent intent) { super.onNewIntent(intent); com.android.agnetty.utils.LogUtil.d("onNewIntent .........."); android.net.Uri uri = intent.getData(); java.lang.String params = uri.getQueryParameter("params"); java.lang.String sign = uri.getQueryParameter("sign...
protected void onNewIntent(android.content.Intent intent) { super.onNewIntent(intent); com.android.agnetty.utils.LogUtil.d("onNewIntent .........."); android.net.Uri uri = intent.getData(); if (uri == null) return ; java.lang.String params = uri.getQueryParameter("params"); java.lan...
public void testGetObjectNotFound() { try { getPersonUUID(""); fail(); } catch (java.lang.Exception e) { java.lang.System.out.println("Everything is OK"); } assertNull(pm.createQuery(siena.base.test.model.PersonUUID.class).filter("firstName", "John").get().get()); }
public void testGetObjectNotFound() { try { getPersonUUID(""); fail(); } catch (java.lang.Exception e) { java.lang.System.out.println("Everything is OK"); } assertNull(pm.createQuery(siena.base.test.model.PersonUUID.class).filter("firstName", "John").get()); }
public void encode(java.io.DataOutputStream dos) throws java.io.IOException { dos.writeInt(tank.id); dos.writeInt(messageType); dos.writeInt(tank.x); dos.writeInt(tank.y); dos.writeInt(tank.life); dos.writeBoolean(tank.role); dos.writeBoolean(tank.isLive); }
public void encode(java.io.DataOutputStream dos) throws java.io.IOException { dos.writeInt(tank.id); dos.writeInt(messageType); dos.writeInt(tank.x); dos.writeInt(tank.y); dos.writeInt(tank.life); dos.writeBoolean(tank.role); }
public org.springframework.web.servlet.ModelAndView showDialog(@org.springframework.web.bind.annotation.RequestParam java.lang.Long dealId, org.springframework.ui.ModelMap map, javax.servlet.http.HttpSession session) { org.springframework.web.servlet.ModelAndView modelAndView = new org.springframework.web.servlet.M...
public org.springframework.web.servlet.ModelAndView showDialog(@org.springframework.web.bind.annotation.RequestParam long dealId, org.springframework.ui.ModelMap map, javax.servlet.http.HttpSession session) { org.springframework.web.servlet.ModelAndView modelAndView = new org.springframework.web.servlet.ModelAndVie...
public void refresh() { com.netboard.message.RefreshMessage refRequestMsg = new com.netboard.message.RefreshMessage(null, null); com.netboard.message.CommsBridge.writeMessage(s, refRequestMsg); com.netboard.message.RefreshMessage refResponseMsg = com.netboard.message.CommsBridge.readMessage(s); this.pla...
public void refresh() { com.netboard.message.RefreshMessage refRequestMsg = new com.netboard.message.RefreshMessage(null, null); writeMessage(refRequestMsg); com.netboard.message.RefreshMessage refResponseMsg = readMessage(); this.playerInfo = refResponseMsg.getPlayerLobby(); this.supportedGames = r...
private void checkIfValidUser(com.hazardmanager.users.models.User user) { user.validateFirstName(user.getFirstName()); user.validateLastName(user.getLastName()); user.validateUserName(user.getUserName()); user.validatePassword(user.getPassword()); user.validateEmail(user.getEmail()); user.valida...
private void checkIfValidUser(com.hazardmanager.users.models.User user) { user.validateFirstName(user.getFirstName()); user.validateLastName(user.getLastName()); user.validateUserName(user.getUserName()); user.validateEmail(user.getEmail()); user.validatePhoneNumber(user.getPhoneNumber()); }
public void getItemOffsets(android.graphics.Rect outRect, android.view.View view, android.support.v7.widget.RecyclerView parent, android.support.v7.widget.RecyclerView.State state) { int position = parent.getChildAdapterPosition(view); if (position < ((parent.getAdapter().getItemCount()) - (columns))) { ...
public void getItemOffsets(android.graphics.Rect outRect, android.view.View view, android.support.v7.widget.RecyclerView parent, android.support.v7.widget.RecyclerView.State state) { int position = parent.getChildAdapterPosition(view); if (position < ((parent.getAdapter().getItemCount()) - (columns))) { ...
public void sessionChanged(final org.parosproxy.paros.model.Session session) { if ((getView()) != null) { return ; } if (java.awt.EventQueue.isDispatchThread()) { sessionChangedEventHandler(session); }else { try { java.awt.EventQueue.invokeAndWait(new java.lang.Runnab...
public void sessionChanged(final org.parosproxy.paros.model.Session session) { if ((getView()) == null) { return ; } if (java.awt.EventQueue.isDispatchThread()) { sessionChangedEventHandler(session); }else { try { java.awt.EventQueue.invokeAndWait(new java.lang.Runnab...
public void addKaeufer() { pos1_Projekt.Zufall zufall = new pos1_Projekt.Zufall(); pos1_Projekt.Kaeufer k = new pos1_Projekt.Kaeufer(); k.setName(zufall.getKaeuferBezeichnung(this.getKaeuferListe().size())); k.setUnternehmen(this); this.kaeuferliste.add(k); }
public void addKaeufer() { pos1_Projekt.Zufall zufall = new pos1_Projekt.Zufall(); pos1_Projekt.Kaeufer k = new pos1_Projekt.Kaeufer(); k.setName(zufall.getKaeuferBezeichnung()); k.setUnternehmen(this); this.kaeuferliste.add(k); }
public static boolean operator_equals(org.eclipse.smarthome.core.types.Type type, java.lang.Number x) { if ((type != null) && (type instanceof org.eclipse.smarthome.core.library.types.DecimalType)) { return (((org.eclipse.smarthome.core.library.types.DecimalType) (type)).toBigDecimal().compareTo(org.eclipse...
public static boolean operator_equals(org.eclipse.smarthome.core.types.Type type, java.lang.Number x) { if (((type != null) && (type instanceof org.eclipse.smarthome.core.library.types.DecimalType)) && (x != null)) { return (((org.eclipse.smarthome.core.library.types.DecimalType) (type)).toBigDecimal().comp...
public boolean hit(int amount, boolean planetCollision) { if (!planetCollision) { if ((getShieldCharge()) > 0) { reduceShieldCharge(); return false; }else { hitpoints -= amount; return (hitpoints) > 0; } }else { isAlive = false; ...
public boolean hit(int amount, boolean planetCollision) { if ((hitpoints) < 1) { isAlive = false; return true; } if (!planetCollision) { if ((getShieldCharge()) > 0) { reduceShieldCharge(); return false; }else { hitpoints -= amount; ...
private java.lang.reflect.Field findObserverField(java.lang.String mappedBy, java.lang.Class<?> observableClass) { java.lang.reflect.Field observerField = null; for (java.lang.Class<?> klass = observableClass; klass != (java.lang.Object.class); klass = klass.getSuperclass()) { try { observer...
private java.lang.reflect.Field findObserverField(java.lang.String mappedBy, java.lang.Class<?> observableClass) { java.lang.reflect.Field observerField = null; for (java.lang.Class<?> klass = observableClass; (null != klass) && (klass != (java.lang.Object.class)); klass = klass.getSuperclass()) { try {...
public org.dspace.rest.common.MetadataField getMetadataFieldUnqualified(@javax.ws.rs.PathParam(value = "schema_prefix") java.lang.String schemaPrefix, @javax.ws.rs.PathParam(value = "element") java.lang.String element, @javax.ws.rs.QueryParam(value = "expand") java.lang.String expand, @javax.ws.rs.QueryParam(value = "u...
public org.dspace.rest.common.MetadataField getMetadataFieldUnqualified(@javax.ws.rs.PathParam(value = "schema_prefix") java.lang.String schemaPrefix, @javax.ws.rs.PathParam(value = "element") java.lang.String element, @javax.ws.rs.QueryParam(value = "expand") java.lang.String expand, @javax.ws.rs.QueryParam(value = "u...
public void moveElevator(double speed) { if ((winch.getPosition()) <= 0) { if (speed < 0) { speed = 0; } } if ((winch.getPosition()) >= 66) { if (speed > 0) { speed = 0; } } changeControlModeWinch(ControlMode.Speed); winch.set(speed); }
public void moveElevator(double speed) { if ((getPosition()) <= 0) { if (speed < 0) { speed = 0; } } if ((getPosition()) >= 66) { if (speed > 0) { speed = 0; } } changeControlModeWinch(ControlMode.Speed); winch.set(speed); }
private java.util.ArrayList<com.grouter.flocking.Fly> getFliesFromTile(int row_index, int col_index) { if ((((row_index < 0) || (col_index < 0)) || (col_index >= (cols))) || (row_index >= (rows))) { return new java.util.ArrayList<com.grouter.flocking.Fly>(); }else { return flyGrid.get(row_index)...
private java.util.ArrayList<java.lang.Integer> getFliesFromTile(int row_index, int col_index) { if ((((row_index < 0) || (col_index < 0)) || (col_index >= (cols))) || (row_index >= (rows))) { return new java.util.ArrayList<java.lang.Integer>(); }else { return flyGrid.get(row_index).get(col_index...
public java.util.List<com.dexpert.feecollection.main.users.applicant.AppBean> getAllStudentList() { org.hibernate.Session session = com.dexpert.feecollection.main.users.applicant.AppDAO.factory.openSession(); try { org.hibernate.Criteria criteria = session.createCriteria(com.dexpert.feecollection.main.u...
public java.util.List<com.dexpert.feecollection.main.users.applicant.AppBean> getAllStudentList() { org.hibernate.Session session = com.dexpert.feecollection.main.users.applicant.AppDAO.factory.openSession(); org.hibernate.Criteria criteria = session.createCriteria(com.dexpert.feecollection.main.users.applicant...
private java.lang.Long parseInt() throws org.lorecraft.phparser.SerializedPhpParserException { int delimiter = this.input.indexOf(';', this.index); if (delimiter == (-1)) { throw new org.lorecraft.phparser.SerializedPhpParserException("Unexpected end of serialized integer!", this.index); } this....
private java.lang.Long parseInt() throws org.lorecraft.phparser.SerializedPhpParserException { int delimiter = this.input.indexOf(';', this.index); if (delimiter == (-1)) { throw new org.lorecraft.phparser.SerializedPhpParserException("Unexpected end of serialized integer!", this.index); } check...
public void onPlotFlagAdd(com.plotsquared.bukkit.events.PlotFlagAddEvent event) { if (event.getFlag().getName().equals("musicLink")) { for (com.intellectualcrafters.plot.object.PlotPlayer plotPlayer : event.getPlot().getPlayersInPlot()) { net.openaudiomc.actions.Command.stopRegion(plotPlayer.get...
public void onPlotFlagAdd(com.plotsquared.bukkit.events.PlotFlagAddEvent event) { if (event.getFlag().getName().equals("musicLink")) { for (com.intellectualcrafters.plot.object.PlotPlayer plotPlayer : event.getPlot().getPlayersInPlot()) { net.openaudiomc.actions.Command.playRegion(plotPlayer.get...
public org.kframework.backend.java.symbolic.PersistentUniqueList<E> plusAll(int i, java.util.Collection<? extends E> collection) { org.kframework.backend.java.symbolic.PersistentUniqueList<E> result = this; for (E e : collection) { result = result.plus((i++), e); } return result; }
public org.kframework.backend.java.symbolic.PersistentUniqueList<E> plusAll(int i, java.util.Collection<? extends E> collection) { org.kframework.backend.java.symbolic.PersistentUniqueList<E> result = this; for (E e : collection) { result = result.plus(((i + (result.size())) - (size())), e); } r...
public static java.util.List<org.carbondata.core.load.LoadMetadataDetails> identifySegmentsToBeMerged(java.lang.String storeLocation, org.carbondata.spark.load.CarbonLoadModel carbonLoadModel, int partitionCount, long compactionSize, java.util.List<org.carbondata.core.load.LoadMetadataDetails> segments, org.carbondata....
public static java.util.List<org.carbondata.core.load.LoadMetadataDetails> identifySegmentsToBeMerged(java.lang.String storeLocation, org.carbondata.spark.load.CarbonLoadModel carbonLoadModel, int partitionCount, long compactionSize, java.util.List<org.carbondata.core.load.LoadMetadataDetails> segments, org.carbondata....
public boolean isUserDirectlyInRole(int userId, int userRoleId) throws com.stratelia.webactiv.organization.AdminPersistenceException { int[] ids = new int[]{ userId , userRoleId }; java.lang.Integer result = getInteger(com.stratelia.webactiv.organization.UserRoleTable.SELECT_COUNT_USERROLE_USER_REL, ids); r...
private boolean isUserDirectlyInRole(int userId, int userRoleId) throws com.stratelia.webactiv.organization.AdminPersistenceException { int[] ids = new int[]{ userId , userRoleId }; java.lang.Integer result = getInteger(com.stratelia.webactiv.organization.UserRoleTable.SELECT_COUNT_USERROLE_USER_REL, ids); ...
public void removeClient(com.rbruno.irc.templates.Client client) { ops.remove(client); voiceList.remove(client); clients.remove(client); if ((((this.clients.size()) == 0) && (this.isTemporary())) && (com.rbruno.irc.Server.getServer().getConfig().getProperty("RemoveChannelOnEmpty").equals("true"))) { ...
public void removeClient(com.rbruno.irc.templates.Client client) { voiceList.remove(client); clients.remove(client); if ((((this.clients.size()) == 0) && (this.isTemporary())) && (com.rbruno.irc.Server.getServer().getConfig().getProperty("RemoveChannelOnEmpty").equals("true"))) { com.rbruno.irc.Serv...
public boolean synchronize() { @java.lang.SuppressWarnings(value = "unchecked") java.util.ArrayList<java.lang.String> urlList = ((java.util.ArrayList<java.lang.String>) (this.jsonUrlList.keySet())); for (int i = 0; i < (urlList.size()); i++) { this.fetchJsonFile(urlList.get(i)); } this.synch...
public boolean synchronize() { java.util.Set<java.lang.String> urlList = this.jsonUrlList.keySet(); for (java.lang.String key : urlList) { this.fetchJsonFile(key); } this.synchronizedData = this.parseJsonFiles(); return this.synchronizedData; }
public boolean addUserProfile(UserProfile up) { boolean repeat = true; java.lang.String userName = up.getUserName(); while (repeat) { repeat = false; for (int x = 0; x < (profiles.size()); x++) { if (userName.equals(profiles.get(x).getUserName())) { return false; ...
public boolean addUserProfile(UserProfile up) { boolean repeat = true; java.lang.String userName = up.getUserName(); while (repeat) { repeat = false; for (int x = 0; x < (profiles.size()); x++) { if (userName.equals(profiles.get(x).getUserName())) { return false; ...
public void overFlowCheck() { player.setMana(((player.getMana()) - 2)); if ((player.getMana()) >= (player.getMaxMana())) { CE.overflow = true; } if (CE.split) { (CE.splitTimer)--; } if ((CE.splitTimer) <= 0) { CE.split = false; CE.splitAmount = 0; } }
public void overFlowCheck() { if ((player.getMana()) >= (player.getMaxMana())) { CE.overflow = true; } if (CE.split) { (CE.splitTimer)--; } if ((CE.splitTimer) <= 0) { CE.split = false; CE.splitAmount = 0; } }
private void removePhotoDone(android.os.Bundle data) { com.extenprise.mapp.medico.util.Utility.showProgressDialog(this, false); if (data.getBoolean("status")) { com.extenprise.mapp.medico.util.Utility.showMessage(this, R.string.msg_photo_removed); mCust = com.extenprise.mapp.medico.data.WorkingD...
private void removePhotoDone(android.os.Bundle data) { com.extenprise.mapp.medico.util.Utility.showProgressDialog(this, false); if (data.getBoolean("status")) { com.extenprise.mapp.medico.util.Utility.showMessage(this, R.string.msg_photo_removed); mCust = com.extenprise.mapp.medico.data.WorkingD...
public int run(java.lang.String[] args) throws java.lang.Exception { org.apache.hadoop.mapreduce.Job job = setup(org.apache.hadoop.mapreduce.lib.input.TextInputFormat.class, org.apache.hadoop.mapreduce.lib.output.NullOutputFormat.class, org.apache.hadoop.io.Text.class, org.apache.hadoop.io.LongWritable.class, org.a...
public int run(java.lang.String[] args) throws java.lang.Exception { org.apache.hadoop.mapreduce.Job job = setup(org.apache.hadoop.mapreduce.lib.input.TextInputFormat.class, org.apache.hadoop.mapreduce.lib.output.NullOutputFormat.class, org.apache.hadoop.io.LongWritable.class, org.apache.hadoop.io.LongWritable.clas...
private java.util.LinkedList<org.bson.Document> changeOrderProduct(java.util.LinkedList<org.bson.Document> productlist) { java.lang.String s = "Select the one you want to change:\n"; for (int i = 0; i < (productlist.size()); i++) { s += (i + " : ") + (productlist.get(i).get("name")); } int index...
private java.util.LinkedList<org.bson.Document> changeOrderProduct(java.util.LinkedList<org.bson.Document> productlist) { java.lang.String s = "Select the one you want to change:\n"; for (int i = 0; i < (productlist.size()); i++) { s += ((i + " : ") + (productlist.get(i).get("name"))) + "\n"; } ...
public void close() { synchronized(mySocketObject) { try { if ((myDebuggerReader) != null) { myDebuggerReader.stop(); } } finally { if ((mySocket) != null) { try { mySocket.close(); } catch (java....
public void close() { try { if ((myDebuggerReader) != null) { myDebuggerReader.stop(); } } finally { synchronized(mySocketObject) { if ((mySocket) != null) { try { mySocket.close(); } catch (java.io.IOException i...
public static void renderModel(net.minecraft.client.model.ModelBiped model, net.minecraft.entity.Entity entity, float limbSwing, float limbSwingAmount, float rotation, float rotationYaw, float rotationPitch, float scale) { MinecraftForge.EVENT_BUS.post(new net.ilexiconn.llibrary.client.event.PlayerModelEvent.Render...
public static void renderModel(net.minecraft.client.model.ModelBiped model, net.minecraft.entity.Entity entity, float limbSwing, float limbSwingAmount, float rotation, float rotationYaw, float rotationPitch, float scale) { if (entity instanceof net.minecraft.entity.player.EntityPlayer) { MinecraftForge.EVEN...
public void run() { final java.util.List<codng.hgx.ChangeSet> changeSets = cache.get(); codng.hgx.Cache.saveHistory(id, changeSets); codng.hgx.Cache.saveLastRevision(id, ((int) (codng.hgx.ChangeSet.last(changeSets).id.seqNo))); java.lang.System.out.println("Cache updated."); }
public void run() { final java.util.List<codng.hgx.ChangeSet> changeSets = cache.get(); codng.hgx.Cache.saveHistory(id, changeSets); codng.hgx.Cache.saveLastRevision(id, codng.hgx.ChangeSet.last(changeSets).id.seqNo); java.lang.System.out.println("Cache updated."); }
private static com.google.maps.android.geojson.GeoJsonMultiPolygon createGeoJsonMultiPolygon(com.vividsolutions.jts.geom.MultiPolygon geometry, com.google.android.gms.maps.Projection projection) { java.util.List<com.google.maps.android.geojson.GeoJsonPolygon> polygonList = new java.util.ArrayList<>(); for (int ...
private static com.google.maps.android.geojson.GeoJsonMultiPolygon createGeoJsonMultiPolygon(com.vividsolutions.jts.geom.MultiPolygon geometry) { java.util.List<com.google.maps.android.geojson.GeoJsonPolygon> polygonList = new java.util.ArrayList<>(); for (int i = 0; i < (geometry.getNumGeometries()); i++) { ...
public void removeUsedNPCs(generation.TradeNode node, java.util.List<entities.NPC> npcs) { if (node.isTrade()) { npcs.remove(node.npc); } if ((node.getChildren()) == null) return ; for (generation.TradeNode child : node.getChildren()) { removeUsedNPCs(child, npcs); } }
public void removeUsedNPCs(generation.TradeNode node, java.util.List<entities.NPC> npcs) { if (node.isTrade()) { while (npcs.contains(node.npc)) { npcs.remove(node.npc); } } if ((node.getChildren()) == null) return ; for (generation.TradeNode child : node.getChi...
public void onCheckedChanged(android.widget.CompoundButton buttonView, boolean isChecked) { if ((mItemTouchHelper) == null) { filter(mQuery, mToggleButton.isChecked()); }else { if (isChecked) { mItemTouchHelper.attachToRecyclerView(null); }else { mItemTouchHelper....
public void onCheckedChanged(android.widget.CompoundButton buttonView, boolean isChecked) { if ((mItemTouchHelper) == null) { filter(mQuery, mToggleButton.isChecked()); }else { if (isChecked) { mItemTouchHelper.attachToRecyclerView(null); filter(mQuery, mToggleButton.isCh...
private static java.lang.String getStringField(final java.util.Map<java.lang.String, java.lang.String> sampleDatum, final java.lang.String name) { java.lang.String str = sampleDatum.get(name); if (null != str) str = str.trim(); if ((null == str) || (str.isEmpty())) return null; ...
private static java.lang.String getStringField(final java.util.Map<java.lang.String, java.lang.String> sampleDatum, final java.lang.String name) { java.lang.String str = sampleDatum.get(name.toUpperCase()); if (null != str) str = str.trim(); if ((null == str) || (str.isEmpty())) return ...
private void entferneVormerkKarte(de.uni_hamburg.informatik.swt.se2.mediathek.materialien.medien.Medium medium, de.uni_hamburg.informatik.swt.se2.mediathek.materialien.Kunde kunde) throws de.uni_hamburg.informatik.swt.se2.mediathek.services.verleih.ProtokollierException { de.uni_hamburg.informatik.swt.se2.mediathek...
private void entferneVormerkKarte(de.uni_hamburg.informatik.swt.se2.mediathek.materialien.medien.Medium medium, de.uni_hamburg.informatik.swt.se2.mediathek.materialien.Kunde kunde) throws de.uni_hamburg.informatik.swt.se2.mediathek.services.verleih.ProtokollierException { de.uni_hamburg.informatik.swt.se2.mediathek...
public void onBlueGattDisConnect(android.bluetooth.BluetoothGatt gatt) { android.util.Log.i(Util.TAG, ("onBlueGattDisConnect::adress == " + (gatt.getDevice().getAddress()))); if ((mConnectBleInfo) == null) return ; if (!(gatt.getDevice().getAddress().equals(mConnectBleInfo.getAdress()))) ...
public void onBlueGattDisConnect(android.bluetooth.BluetoothGatt gatt) { android.util.Log.i(Util.TAG, ("onBlueGattDisConnect::adress == " + (gatt.getDevice().getAddress()))); if ((mConnectBleInfo) == null) return ; if (!(gatt.getDevice().getAddress().equals(mConnectBleInfo.getAdress()))) ...
private java.util.Set<fr.solsid.model.AccessRight> extractAccessRights(org.apache.poi.ss.usermodel.Row row) { java.util.Set<fr.solsid.model.AccessRight> accessRights = new java.util.HashSet<>(); for (int i = 2; i <= 7; i++) { java.lang.Integer accessRight = getNumericValueOf(row, i); if (hasRigh...
private java.util.Set<fr.solsid.model.AccessRight> extractAccessRights(org.apache.poi.ss.usermodel.Row row) { java.util.Set<fr.solsid.model.AccessRight> accessRights = new java.util.HashSet<>(); for (int i = 2; i <= 7; i++) { int accessRight = getNumericValueOf(row, i); if (hasRight(accessRight)...
public static voldemort.utils.Props getPropsFromJob(org.apache.hadoop.conf.Configuration conf) { java.lang.String propsString = conf.get("azkaban.props"); if (propsString == null) throw new voldemort.utils.UndefinedPropertyException("The required property azkaban.props was not found in the Configuration...
public static voldemort.utils.Props getPropsFromJob(org.apache.hadoop.conf.Configuration conf) { java.lang.String propsString = conf.get("azkaban.props"); if (propsString == null) throw new voldemort.utils.UndefinedPropertyException("The required property azkaban.props was not found in the Configuration...
private void messageUser(java.lang.String msg) { android.widget.Toast toast = android.widget.Toast.makeText(getApplicationContext(), msg, ((msg.length()) > 24 ? android.widget.Toast.LENGTH_LONG : android.widget.Toast.LENGTH_SHORT)); toast.setGravity(((android.view.Gravity.TOP) | (android.view.Gravity.CENTER_HOR...
private void messageUser(java.lang.String msg) { android.widget.Toast toast = android.widget.Toast.makeText(this, msg, ((msg.length()) > 24 ? android.widget.Toast.LENGTH_LONG : android.widget.Toast.LENGTH_SHORT)); toast.setGravity(((android.view.Gravity.TOP) | (android.view.Gravity.CENTER_HORIZONTAL)), 0, 0); ...
public boolean loadCert(gov.usdot.cv.security.crypto.CryptoProvider cryptoProvider, java.lang.String name, java.nio.file.Path certFilePath, java.nio.file.Path privateKeyReconFilePath, java.nio.file.Path seedPrivateKeyFilePath) throws com.oss.asn1.DecodeFailedException, com.oss.asn1.DecodeNotSupportedException, com.oss....
public boolean loadCert(gov.usdot.cv.security.crypto.CryptoProvider cryptoProvider, java.lang.String name, java.nio.file.Path certFilePath, java.nio.file.Path privateKeyReconFilePath, java.nio.file.Path seedPrivateKeyFilePath) throws com.oss.asn1.DecodeFailedException, com.oss.asn1.DecodeNotSupportedException, com.oss....
public void animatedStepProgress(int count) { progressBar.setFill(((progressBar.getFillAmount()) + (count * (stepInFill)))); if ((progressBar.getFillAmount()) >= (thresholds.get(0).value)) { reachedThreshold(); } starsToNextThresholdLabel.setText(java.lang.Integer.toString((((starsToNextUnlock(c...
public void animatedStepProgress(int count) { progressBar.setFill(((progressBar.getFillAmount()) + (count * (stepInFill)))); if ((progressBar.getFillAmount()) >= (thresholds.get(0).value)) { reachedThreshold(); } starsToNextThresholdLabel.setText(java.lang.Integer.toString((((starsToNextUnlock(c...
private int count(de.blau.android.util.rtree.RTree.Node n) { assert n != null; if (n.isLeaf()) { return n.data.size(); }else { int sum = 0; for (int i = 0; i < (n.children.size()); i++) sum += count(n.children.get(i)); return sum; } }
private int count(de.blau.android.util.rtree.RTree.Node n) { if (n.isLeaf()) { return n.data.size(); }else { int sum = 0; for (int i = 0; i < (n.children.size()); i++) sum += count(n.children.get(i)); return sum; } }
private void menuMainClearClick() { for (int i = (mTagContent.getChildCount()) - 1; i >= 0; i--) { se.anyro.nfc_reader.View view = mTagContent.getChildAt(i); if ((view.getId()) != (R.id.tag_viewer_text)) { mTagContent.removeViewAt(i); } } }
private void menuMainClearClick() { for (int i = (mTagContent.getChildCount()) - 1; i >= 0; i--) { android.view.View view = mTagContent.getChildAt(i); if ((view.getId()) != (R.id.tag_viewer_text)) { mTagContent.removeViewAt(i); } } }
public void start() { java.io.File fileToLoad; try { jaxbContext = javax.xml.bind.JAXBContext.newInstance(org.eclipse.ice.datastructures.ICEObject.ICEList.class, org.eclipse.ice.datastructures.form.Material.class, org.eclipse.ice.datastructures.form.MaterialStack.class); } catch (javax.xml.bind.JAXB...
public void start() { java.io.File fileToLoad; try { jaxbContext = javax.xml.bind.JAXBContext.newInstance(org.eclipse.ice.datastructures.ICEObject.ICEList.class, org.eclipse.ice.datastructures.form.Material.class, org.eclipse.ice.datastructures.form.MaterialStack.class); } catch (javax.xml.bind.JAXB...
private void setTitle() { de.westnordost.osmapi.map.data.OsmElement element = getOsmElement(); if ((element != null) && ((element.getTags()) != null)) { java.lang.String name = element.getTags().get("name"); setTitle(getResources().getString(R.string.quest_busStopShelter_name_title, name)); ...
private void setTitle() { de.westnordost.osmapi.map.data.OsmElement element = getOsmElement(); java.lang.String name = ((element != null) && ((element.getTags()) != null)) ? element.getTags().get("name") : null; if ((name != null) && (!(name.trim().isEmpty()))) { setTitle(getResources().getString(R....
public void onScreenStarted() { android.util.Log.d(es.ulpgc.eite.clean.mvp.sample.category.TAG, "calling onScreenStarted()"); if (isViewRunning()) { getView().setLabelSearch(getModel().getSearchLabel()); getView().setAddLabel(getModel().getAddLabel()); getView().setItems(getModel().getIt...
public void onScreenStarted() { android.util.Log.d(es.ulpgc.eite.clean.mvp.sample.category.TAG, "calling onScreenStarted()"); if (isViewRunning()) { getView().setLabelSearch(getModel().getSearchLabel()); getView().setAddLabel(getModel().getAddLabel()); } }
public void nextFragment() { java.lang.System.out.println(("***brandname CameraActivity nextFragment: " + (brandName))); if ((currentFragment) instanceof org.akvo.akvoqr.CameraPrepareFragment) { currentFragment = org.akvo.akvoqr.CameraInstructionFragment.newInstance(brandName); }else if ((cu...
public void nextFragment() { if ((currentFragment) instanceof org.akvo.akvoqr.CameraPrepareFragment) { currentFragment = org.akvo.akvoqr.CameraInstructionFragment.newInstance(brandName); }else if ((currentFragment) instanceof org.akvo.akvoqr.CameraInstructionFragment) { currentFragme...
public void testReplaceExistingMovie() { com.example.user.movierankings.Ranking rankings = new com.example.user.movierankings.Ranking(movies); int rank = 10; com.example.user.movierankings.Movie newMovie = new com.example.user.movierankings.Movie("The Lord of the Rings: The Fellowship of the Ring", "Fantasy...
public void testReplaceExistingMovie() { com.example.user.movierankings.Ranking rankings = new com.example.user.movierankings.Ranking(movies); int rank = 10; com.example.user.movierankings.Movie newMovie = new com.example.user.movierankings.Movie("The Lord of the Rings: The Fellowship of the Ring", "Fantasy...
public void sendImageMessage(com.hyphenate.chat.EMConversation.EMConversationType conType, java.lang.String conId, java.lang.String filePath, boolean sendOriginFile) { com.hyphenate.chat.EMMessage emMessage = com.lwk.familycontact.im.helper.HxChatHelper.getInstance().createImageMessage(getChatTypeFromConType(conTyp...
public void sendImageMessage(com.hyphenate.chat.EMConversation.EMConversationType conType, java.lang.String conId, java.lang.String filePath, boolean sendOriginFile) { com.hyphenate.chat.EMMessage emMessage = com.lwk.familycontact.im.helper.HxChatHelper.getInstance().createImageMessage(getChatTypeFromConType(conTyp...
public long deleteAssignment(int id) { android.database.sqlite.SQLiteDatabase db = dbHelper.getWritableDatabase(); try { return db.delete(dbHelper.TABLE_ASSIGNMENTS, (((dbHelper.ASSIGNMENTS__id) + "=") + id), null); } catch (java.lang.Exception e) { return -1; } }
public long deleteAssignment(int id) { android.database.sqlite.SQLiteDatabase db = dbHelper.getWritableDatabase(); try { int i = db.delete(dbHelper.TABLE_ASSIGNMENTS, (((dbHelper.ASSIGNMENTS__id) + "=") + id), null); return db.delete(dbHelper.TABLE_ASSIGNMENTS, (((dbHelper.ASSIGNMENTS__id) + "="...
private void allocateAndSlice(int capacity, int sliceSize) { io.netty.buffer.ChannelBuffer newSlab = create(order, capacity); slabs.add(newSlab); for (int j = 0; j < (newSlab.capacity()); j += sliceSize) { io.netty.buffer.ChannelBuffer aSlice = newSlab.slice(j, (j + sliceSize)); buffers.add(...
private void allocateAndSlice(int capacity, int sliceSize) { io.netty.buffer.ChannelBuffer newSlab = create(order, capacity); slabs.add(newSlab); for (int j = 0; j < (newSlab.capacity()); j += sliceSize) { io.netty.buffer.ChannelBuffer aSlice = newSlab.slice(j, sliceSize); buffers.add(new io...
public void onClick(android.content.DialogInterface dialog, int which) { final im.ene.lab.wordy.result.ResultItem item = parent.getItem(position); parent.removeItem(item); mRealm.executeTransaction(new io.realm.Realm.Transaction() { @java.lang.Override public void execute(io.realm.Realm real...
public void onClick(android.content.DialogInterface dialog, int which) { final im.ene.lab.wordy.result.ResultItem item = parent.getItem(position); mRealm.executeTransaction(new io.realm.Realm.Transaction() { @java.lang.Override public void execute(io.realm.Realm realm) { io.realm.Rea...
private android.app.AlertDialog removePinMsgDialog(final com.google.android.gms.maps.model.Marker marker) { android.app.AlertDialog.Builder removeMarkerbuilder = new android.app.AlertDialog.Builder(com.aroundme.common.AroundMeApp.getContext()); removeMarkerbuilder.setMessage(R.string.remove_pin_msg_question).se...
private android.app.AlertDialog removePinMsgDialog(final com.google.android.gms.maps.model.Marker marker) { android.app.AlertDialog.Builder removeMarkerbuilder = new android.app.AlertDialog.Builder(this); removeMarkerbuilder.setMessage(R.string.remove_pin_msg_question).setPositiveButton(R.string.yes, new androi...
public void onCardAdded(java.util.ArrayList<com.example.guest.pomodoro.models.Card> cards) { mCards = cards; android.util.Log.d("cards", ((mCards) + "")); com.example.guest.pomodoro.ui.CreateDeckDisplayFragment displayFrag = ((com.example.guest.pomodoro.ui.CreateDeckDisplayFragment) (getSupportFragmentManag...
public void onCardAdded(java.util.ArrayList<com.example.guest.pomodoro.models.Card> cards) { mCards = cards; com.example.guest.pomodoro.ui.CreateDeckDisplayFragment displayFrag = ((com.example.guest.pomodoro.ui.CreateDeckDisplayFragment) (getSupportFragmentManager().findFragmentById(R.id.fragmentDisplay))); ...
public Location getLocationByName(java.lang.String name) { for (GraphNode<Location, Path> v : vertices) { if (v.getVertexData().getName().equals(name)) { return v.getVertexData(); } } return null; }
public Location getLocationByName(java.lang.String name) { name = name.toLowerCase(); for (GraphNode<Location, Path> v : vertices) { if (v.getVertexData().getName().equals(name)) { return v.getVertexData(); } } return null; }
public void load(net.minecraftforge.common.config.Configuration config, boolean isReload) { loadAll(); enabled = config.get("PermissionScheduler", "enabled", false, com.forgeessentials.permissions.core.PermissionScheduler.HELP).getBoolean(); if (com.forgeessentials.util.ServerUtil.isServerRunning()) { ...
public void load(net.minecraftforge.common.config.Configuration config, boolean isReload) { enabled = config.get("PermissionScheduler", "enabled", false, com.forgeessentials.permissions.core.PermissionScheduler.HELP).getBoolean(); if (com.forgeessentials.util.ServerUtil.isServerRunning()) { if (enabled)...
public void addTargetRequests(java.util.List<java.lang.String> requests) { synchronized(targetRequests) { for (java.lang.String s : requests) { if (((org.apache.commons.lang3.StringUtils.isBlank(s)) || (s.equals("#"))) || (s.startsWith("javascript:"))) { break; } ...
public void addTargetRequests(java.util.List<java.lang.String> requests) { synchronized(targetRequests) { for (java.lang.String s : requests) { if (((org.apache.commons.lang3.StringUtils.isBlank(s)) || (s.equals("#"))) || (s.startsWith("javascript:"))) { continue; } ...
public void execute(cz.cvut.fit.brabepa1.run.interpret.VirtualMachine vm) { java.lang.Integer value1 = ((java.lang.Integer) (vm.stackPop())); java.lang.Integer value2 = ((java.lang.Integer) (vm.stackPop())); if (value1 <= value2) { vm.incrementPc(); }else { vm.addOffsetToPc(branchOffset)...
public void execute(cz.cvut.fit.brabepa1.run.interpret.VirtualMachine vm) { java.lang.Integer value1 = ((java.lang.Integer) (vm.stackPop())); java.lang.Integer value2 = ((java.lang.Integer) (vm.stackPop())); if (value2 <= value1) { vm.incrementPc(); }else { vm.addOffsetToPc(branchOffset)...
protected void damageTarget(int id, int type, Helpers.Vector3 dir) { log(("pocisk trafił w cell o id = " + id)); struckTarget = null; for (target.Target target : targets) { if ((target.getId()) == id) struckTarget = target; } if ((struckTarget) != null) { log("zn...
protected void damageTarget(int id, int type, Helpers.Vector3 dir) { log(("pocisk trafił w cell o id = " + id)); for (target.Target target : targets) { if ((target.getId()) == id) struckTarget = target; } if ((struckTarget) != null) { log("znalezione ten cel, usuwamy...