buggy_function
stringlengths
1
391k
fixed_function
stringlengths
0
392k
public void handleMessage(android.os.Message msg) { io.mstream.mstream.player.MStreamAudioService service = mWeakReference.get(); if ((service != null) && ((service.playbackManager.getPlayback()) != null)) { if (service.playbackManager.getPlayback().isPlaying()) { android.util.Log.d(io.mstre...
public void handleMessage(android.os.Message msg) { io.mstream.mstream.player.MStreamAudioService service = mWeakReference.get(); if ((service != null) && ((service.playbackManager.getPlayback()) != null)) { if (service.playbackManager.getPlayback().isPlaying()) { android.util.Log.d(io.mstre...
protected void onCreate(android.os.Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_select_training_plan); android.app.FragmentManager fragmentManager = getFragmentManager(); android.app.FragmentTransaction fragmentTransaction = fragmentManager.beginTrans...
protected void onCreate(android.os.Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_select_training_plan); android.app.FragmentManager fragmentManager = getFragmentManager(); android.app.FragmentTransaction fragmentTransaction = fragmentManager.beginTrans...
public void run() { loc = ((ETPSYSTEM.ChannelValue) (read.channel.in().read())); java.lang.System.out.println("processO - sum1: Received loc through read"); ETPSYSTEM.Sum1O.repl1O rep = new ETPSYSTEM.Sum1O.repl1O(this.spotcheck, this.topa, this.read, this.loc); org.jcsp.lang.ProcessManager manager = new...
public void run() { while (true) { loc = ((ETPSYSTEM.ChannelValue) (read.channel.in().read())); java.lang.System.out.println("processO - sum1: Received loc through read"); ETPSYSTEM.Sum1O.repl1O rep = new ETPSYSTEM.Sum1O.repl1O(this.spotcheck, this.topa, this.read, this.loc); org.jcs...
public boolean accept(T t) { if ((t == null) && ((this.matching) == null)) { return true; } if (t == null) { return false; } return t.equals(t); }
public boolean accept(T t) { if ((t == null) && ((this.matching) == null)) { return true; } if (t == null) { return false; } return t.equals(matching); }
public java.util.List<mg.angular.db.Contact> findAll() { java.util.List<mg.angular.db.Contact> allContacts; try { java.sql.Connection connection = dbConfig.getConnection(); mg.util.db.persist.DB db = new mg.util.db.persist.DB(connection); mg.angular.db.Contact contact = new mg.angular.db...
public java.util.List<mg.angular.db.Contact> findAll() throws java.lang.ClassNotFoundException, java.sql.SQLException, mg.util.db.persist.DBMappingException, mg.util.db.persist.DBValidityException { java.util.List<mg.angular.db.Contact> allContacts; java.sql.Connection connection = dbConfig.getConnection(); ...
private void updateDetails() { new self.hideki.popularmovies.FetchReviewsTask(reviewAdapter).execute(movie.getId()); new self.hideki.popularmovies.FetchVideoTask(trailerAdapter).execute(movie.getId()); try { favorite = self.hideki.popularmovies.data.PopularMoviesDbHelper.isFavoriteMovie(getActivity(...
private void updateDetails() { new self.hideki.popularmovies.FetchReviewsTask(reviewAdapter).execute(movie.getId()); new self.hideki.popularmovies.FetchVideoTask(trailerAdapter).execute(movie.getId()); try { favorite = self.hideki.popularmovies.data.PopularMoviesDbHelper.isFavoriteMovie(getActivity(...
public void updateStats() { ray = (ray) * (Utils.Global.ratioH); ostr.setCenterX(((getX()) * (Utils.Global.ratioW))); ostr.setCenterY(((getY()) * (Utils.Global.ratioH))); ostr = new org.newdawn.slick.geom.Circle(ostr.getCenterX(), ostr.getCenterY(), ray); maxW = (maxW) * (Utils.Global.ratioW); m...
public void updateStats() { ray = (ray) * (Utils.Global.ratioH); ostr.setCenterX(((ostr.getCenterX()) * (Utils.Global.ratioW))); ostr.setCenterY(((ostr.getCenterY()) * (Utils.Global.ratioH))); ostr = new org.newdawn.slick.geom.Circle(ostr.getCenterX(), ostr.getCenterY(), ray); maxW = (maxW) * (Utils...
private boolean tryRegister(java.lang.String user, java.lang.String password) { try { PwdManager.Registration.registerUser(user, password); return true; } catch (java.nio.file.FileAlreadyExistsException e) { PwdManager.UI.UIUtility.errorMessage("Registration.", (("User " + user) + " alre...
private boolean tryRegister(java.lang.String user, java.lang.String password) { try { new PwdManager.Registration(user, password); return true; } catch (java.nio.file.FileAlreadyExistsException e) { PwdManager.UI.UIUtility.errorMessage("Registration.", (("User " + user) + " already exist...
private void setXYDisplacements() { switch (angleStr) { case org.esa.s1tbx.fex.gpf.texture.GLCMOp.ANGLE_0 : displacementX = displacement; displacementY = 0; break; case org.esa.s1tbx.fex.gpf.texture.GLCMOp.ANGLE_45 : displacementX = displacement; ...
private void setXYDisplacements() { switch (angleStr) { case org.esa.s1tbx.fex.gpf.texture.GLCMOp.ANGLE_0 : displacementX = displacement; displacementY = 0; break; case org.esa.s1tbx.fex.gpf.texture.GLCMOp.ANGLE_45 : displacementX = -(displacement); ...
public static java.util.ArrayList<dhbw.timetable.data.Appointment> GetAppointmentsOfDay(java.util.GregorianCalendar day, java.util.ArrayList<dhbw.timetable.data.Appointment> list) { java.util.ArrayList<dhbw.timetable.data.Appointment> dayAppointments = new java.util.ArrayList<>(); java.lang.String currDate = ne...
public static java.util.ArrayList<dhbw.timetable.data.Appointment> GetAppointmentsOfDay(java.util.GregorianCalendar day, java.util.ArrayList<dhbw.timetable.data.Appointment> list) { java.util.ArrayList<dhbw.timetable.data.Appointment> dayAppointments = new java.util.ArrayList<>(); if (list == null) retu...
public static boolean isUserAdmin(net.dv8tion.jda.core.entities.User user) { if (com.xelitexirish.elitedeveloperbot.UserPrivs.adminUsers.contains(user)) { return true; }else { for (net.dv8tion.jda.core.entities.Role role : user.getJDA().getGuildById(Constants.DISCORD_SERVER_ID).getMember(user).g...
public static boolean isUserAdmin(net.dv8tion.jda.core.entities.User user) { if (com.xelitexirish.elitedeveloperbot.UserPrivs.adminUsers.contains(user)) { return true; }else { for (net.dv8tion.jda.core.entities.Role role : user.getJDA().getGuildById(Constants.DISCORD_SERVER_ID).getMember(user).g...
public void changePassword(java.lang.String username, java.lang.String newPassword) { org.molgenis.auth.MolgenisUser user = dataService.query(org.molgenis.security.account.MOLGENIS_USER, org.molgenis.auth.MolgenisUser.class).eq(org.molgenis.security.account.USERNAME, username).findOne(); if (user == null) { ...
public void changePassword(java.lang.String username, java.lang.String newPassword) { org.molgenis.auth.MolgenisUser user = dataService.query(org.molgenis.security.account.MOLGENIS_USER, org.molgenis.auth.MolgenisUser.class).eq(org.molgenis.security.account.USERNAME, username).findOne(); if (user == null) { ...
public void setCurrentFile(com.alperez.bt_microphone.rest.response.commonmodels.DeviceFile devFile) { setCurrentTimeStart(devFile.startTime()); setCurrentDuration(java.lang.Long.toString(devFile.durationMillis())); setCurrentPosition(java.lang.Long.toString(devFile.currentPosition())); setCurrentSampleR...
public void setCurrentFile(com.alperez.bt_microphone.rest.response.commonmodels.DeviceFile devFile) { setCurrentTimeStart(devFile.startTime()); setCurrentDuration(devFile.durationMillis()); setCurrentPosition(devFile.currentPosition()); setCurrentSampleRate(java.lang.Integer.toString(devFile.sampleRate(...
private void startQuickGame() { final int MIN_OPPONENTS = 1; final int MAX_OPPONENTS = 1; android.os.Bundle autoMatchCriteria = com.google.android.gms.games.multiplayer.realtime.RoomConfig.createAutoMatchCriteria(MIN_OPPONENTS, MAX_OPPONENTS, 0); com.google.android.gms.games.multiplayer.realtime.RoomCon...
private void startQuickGame() { final int MIN_OPPONENTS = 1; final int MAX_OPPONENTS = 1; android.os.Bundle autoMatchCriteria = com.google.android.gms.games.multiplayer.realtime.RoomConfig.createAutoMatchCriteria(MIN_OPPONENTS, MAX_OPPONENTS, 0); com.google.android.gms.games.multiplayer.realtime.RoomCon...
public void onItemClick(android.widget.AdapterView<?> parent, android.view.View view, int position, long id) { android.widget.Toast.makeText(parent.getContext(), "OPENNN", Toast.LENGTH_LONG); com.lucianofabris.booklistingapp.Volume currentVolume = adapter.getItem(position); android.net.Uri webPageUri = andr...
public void onItemClick(android.widget.AdapterView<?> parent, android.view.View view, int position, long id) { com.lucianofabris.booklistingapp.Volume currentVolume = adapter.getItem(position); android.net.Uri webPageUri = android.net.Uri.parse(currentVolume.getInfoLink()); android.content.Intent webIntent ...
public static org.auraframework.instance.Application getApplication(@org.auraframework.system.Annotations.Key(value = "name", loggable = true) java.lang.String name, @org.auraframework.system.Annotations.Key(value = "attributes") java.util.Map<java.lang.String, java.lang.Object> attributes) throws org.auraframework.thr...
public static org.auraframework.instance.Application getApplication(@org.auraframework.system.Annotations.Key(value = "name", loggable = true) java.lang.String name, @org.auraframework.system.Annotations.Key(value = "attributes") java.util.Map<java.lang.String, java.lang.Object> attributes) throws org.auraframework.thr...
public void standUp() { loadBalancerService = org.mockito.Mockito.mock(org.openstack.atlas.service.domain.services.LoadBalancerService.class); reverseProxyLoadBalancerService = org.mockito.Mockito.mock(org.openstack.atlas.api.integration.ReverseProxyLoadBalancerService.class); asyncService = org.mockito.Moc...
public void standUp() { loadBalancerService = mock(org.openstack.atlas.service.domain.services.LoadBalancerService.class); reverseProxyLoadBalancerService = mock(org.openstack.atlas.api.integration.ReverseProxyLoadBalancerService.class); asyncService = mock(org.openstack.atlas.api.integration.AsyncService.c...
public void onReceive(android.content.Context context, android.content.Intent intent) { super.onReceive(context, intent); timber.log.Timber.d("Intent Received"); if (QuoteSyncJob.ACTION_DATA_UPDATED.equals(intent.getAction())) { android.appwidget.AppWidgetManager appWidgetManager = android.appwidget...
public void onReceive(@android.support.annotation.NonNull android.content.Context context, @android.support.annotation.NonNull android.content.Intent intent) { super.onReceive(context, intent); timber.log.Timber.d("Intent Received"); if (QuoteSyncJob.ACTION_DATA_UPDATED.equals(intent.getAction())) { ...
public sun.java2d.SurfaceData replaceSurfaceData() { if (((peer) == null) || (getBounds().isEmpty())) { surfaceData = sun.java2d.NullSurfaceData.theInstance; return surfaceData; } sun.awt.CGraphicsConfig gc = ((sun.awt.CGraphicsConfig) (getGraphicsConfiguration())); surfaceData = gc.crea...
public sun.java2d.SurfaceData replaceSurfaceData() { if (getBounds().isEmpty()) { surfaceData = sun.java2d.NullSurfaceData.theInstance; return surfaceData; } sun.awt.CGraphicsConfig gc = ((sun.awt.CGraphicsConfig) (getGraphicsConfiguration())); surfaceData = gc.createSurfaceData(this); ...
private void dispatchAckSend(org.json.JSONObject income) throws org.json.JSONException { org.json.JSONObject data = income.getJSONObject("data"); if ((chatListener) != null) { ru.mail.park.chat.models.Message message = new ru.mail.park.chat.models.Message(income, getContext()); chatListener.onAc...
private void dispatchAckSend(org.json.JSONObject income) throws org.json.JSONException { org.json.JSONObject data = income.getJSONObject("data"); if ((chatListener) != null) { ru.mail.park.chat.models.Message message = new ru.mail.park.chat.models.Message(data, getContext()); chatListener.onAckn...
public org.nd4j.linalg.api.ndarray.INDArray scalar(float value) { if ((dtype) == (DataBuffer.Type.FLOAT)) return create(new float[]{ value }, new int[]{ 1 }, new int[]{ 1 }, 0); else if ((dtype) == (DataBuffer.Type.DOUBLE)) return scalar(((double) (value))); else ...
public org.nd4j.linalg.api.ndarray.INDArray scalar(float value) { if ((dtype) == (DataBuffer.Type.FLOAT)) return create(new float[]{ value }, new int[]{ 1 , 1 }, new int[]{ 1 , 1 }, 0); else if ((dtype) == (DataBuffer.Type.DOUBLE)) return scalar(((double) (value))); else ...
public static void showPlayers(final games.strategy.engine.framework.IGame game, final java.awt.Component parent) { final games.strategy.triplea.ui.PlayersPanel panel = new games.strategy.triplea.ui.PlayersPanel(game.getPlayerManager(), game.getData()); games.strategy.util.EventThreadJOptionPane.showMessageDial...
public static void showPlayers(final games.strategy.engine.framework.IGame game, final java.awt.Component parent) { final games.strategy.triplea.ui.PlayersPanel panel = new games.strategy.triplea.ui.PlayersPanel(game.getPlayerManager(), game.getData()); javax.swing.JOptionPane.showMessageDialog(javax.swing.JOpt...
public final void dispose() { java.lang.System.out.println(("Disposing of BaseConsole with id of " + (getId()))); java.util.ArrayList<com.n9mtq4.logwindow.listener.ListenerContainer> listenerContainers1 = getListenerContainers(); for (com.n9mtq4.logwindow.listener.ListenerContainer listenerContainer : liste...
public final void dispose() { if (disposed) return ; java.lang.System.out.println(("Disposing of BaseConsole with id of " + (getId()))); java.util.ArrayList<com.n9mtq4.logwindow.listener.ListenerContainer> listenerContainers1 = getListenerContainers(); for (com.n9mtq4.logwindow.listener.Lis...
private static java.lang.Object getValue(java.lang.Object object, java.lang.String... args) { if ((args.length) > 0) { java.lang.String arg = args[0]; java.lang.Object obj = ((org.json.simple.JSONObject) (object)).get(arg); java.lang.String[] newArgs = ((java.lang.String[]) (org.apache.commo...
private static java.lang.Object getValue(java.lang.Object object, java.lang.String... args) { if (((args.length) > 0) && (object instanceof org.json.simple.JSONObject)) { java.lang.String arg = args[0]; java.lang.Object obj = ((org.json.simple.JSONObject) (object)).get(arg); java.lang.String...
public com.tetris.saar.tetris.Blocks moveLeft(com.tetris.saar.tetris.Blocks block, int[][] board) { com.tetris.saar.tetris.Blocks temp = block.getNextBlock(); temp.setPlace(((block.getPlace()[0]) - 1), block.getPlace()[1]); setEmptySpaceBlockPos(temp, board); return temp; }
public com.tetris.saar.tetris.Blocks moveLeft(com.tetris.saar.tetris.Blocks block, int[][] board) { com.tetris.saar.tetris.Blocks temp = block.getNextBlock(); temp.setPlace(block.getPlace()[0], block.getPlace()[1]); setEmptySpaceBlockPos(temp, board); return temp; }
public void initProgram(java.lang.String vertexCode, java.lang.String fragCode) { mProgram = cn.dream.android.opengles20.utils.ShaderUtil.createProgram(vertexCode, fragCode); vertexHandle = android.opengl.GLES20.glGetAttribLocation(mProgram, "aPosition"); textureHandle = android.opengl.GLES20.glGetAttribLoc...
public void initProgram() { vertexHandle = android.opengl.GLES20.glGetAttribLocation(mProgram, "aPosition"); textureHandle = android.opengl.GLES20.glGetAttribLocation(mProgram, "aTexture"); uMVPMatrixHandle = android.opengl.GLES20.glGetUniformLocation(mProgram, "uMVPMatrix"); sTextureHandle = android.op...
public void setEnabled(boolean enabled) { super.setEnabled(enabled); if ((isProgress) || ((mSuccessAnimationState.key) >= (com.miruker.fabprogress.Fab.SUCCESS_ANIMATION.ON.key))) { setAlpha(1.0F); }else { setAlpha((enabled ? 1.0F : com.miruker.fabprogress.Fab.FAB_DISABLED_ALPHA)); } }
public void setEnabled(boolean enabled) { super.setEnabled(enabled); if ((isProgress) || ((mSuccessAnimationState) >= (com.miruker.fabprogress.Fab.SUCCESS_ANIMATION.ON))) { setAlpha(1.0F); }else { setAlpha((enabled ? 1.0F : com.miruker.fabprogress.Fab.FAB_DISABLED_ALPHA)); } }
public void remove(java.lang.String key) { com.cdoframework.cdolib.data.cdo.Field objExt = hmItem.remove(key); if (((objExt.getType().getDataType()) == (com.cdoframework.cdolib.base.DataType.FILE_TYPE)) && (!(key.contains(".")))) { (fileCount)--; } }
public void remove(java.lang.String key) { com.cdoframework.cdolib.data.cdo.Field objExt = hmItem.remove(key); if (((objExt != null) && ((objExt.getType().getDataType()) == (com.cdoframework.cdolib.base.DataType.FILE_TYPE))) && (!(key.contains(".")))) { (fileCount)--; } }
public static <T> java.util.List<T> toList(T... values) { java.util.List<T> list = new java.util.ArrayList<T>(values.length); for (T val : values) list.add(val); return list; }
public static <T> java.util.List<T> toList(T... values) { java.util.List<T> list = new java.util.ArrayList<T>(values.length); for (T val : values) { list.add(val); } return list; }
private java.lang.String[] solveConfirmationRedeemMCoupon(java.lang.String message) { org.json.JSONObject json = new org.json.JSONObject(message); java.lang.String[] params = new java.lang.String[4]; params[0] = json.getString("nrid"); params[1] = json.getString("idmerchant"); params[2] = json.getSt...
private java.lang.String[] solveConfirmationRedeemMCoupon(java.lang.String message) { org.json.JSONObject json = new org.json.JSONObject(message); java.lang.String[] params = new java.lang.String[4]; params[2] = json.getString("signaturemerchant"); params[3] = json.getString("signatureissuer"); retu...
private org.esbtools.message.admin.model.MetadataField searchField(org.esbtools.message.admin.model.MetadataField tree, org.esbtools.message.admin.model.MetadataField field) { org.esbtools.message.admin.model.MetadataField result = null; if ((tree != null) && (field != null)) { if ((tree.getId()) == (fi...
private org.esbtools.message.admin.model.MetadataField searchField(org.esbtools.message.admin.model.MetadataField tree, org.esbtools.message.admin.model.MetadataField field) { org.esbtools.message.admin.model.MetadataField result = null; if ((tree != null) && (field != null)) { if (tree.getId().equals(f...
public java.lang.String createDNPath(org.apache.directory.api.ldap.model.name.Dn dn) { java.lang.StringBuilder path = new java.lang.StringBuilder(); for (org.apache.directory.api.ldap.model.name.Rdn rnd : dn.getRdns()) { if ((path.length()) > 0) { path.append('/'); } path.app...
private static java.lang.String createDNPath(org.apache.directory.api.ldap.model.name.Dn dn) { java.lang.StringBuilder path = new java.lang.StringBuilder(); for (org.apache.directory.api.ldap.model.name.Rdn rnd : dn.getRdns()) { if ((path.length()) > 0) { path.append('/'); } ...
public boolean equals(java.lang.Object obj) { if ((this) == obj) return true; if (!(obj instanceof gov.gtas.model.Document)) return false; final gov.gtas.model.Document other = ((gov.gtas.model.Document) (obj)); return ((java.util.Objects.equals(this.documentType, other.documen...
public boolean equals(java.lang.Object obj) { if ((this) == obj) return true; if (!(obj instanceof gov.gtas.model.Document)) return false; final gov.gtas.model.Document other = ((gov.gtas.model.Document) (obj)); return java.util.Objects.equals(this.documentNumber, other.documen...
public void map_should_map_numbers_to_itself_on_providing_ItselfMapper() { java.util.List<java.lang.Integer> numbers = new java.util.ArrayList<java.lang.Integer>(); numbers.add(1); numbers.add(2); numbers.add(3); ListMapper mapper = new IdentityMapper(); java.lang.String expected = numbers.toStr...
public void map_should_map_numbers_to_itself_on_providing_ItselfMapper() { java.util.List<java.lang.Integer> numbers = new java.util.ArrayList<java.lang.Integer>(); numbers.add(1); numbers.add(2); numbers.add(3); ListMapper mapper = new IdentityMapper(); java.util.List<java.lang.Integer> result ...
public void refresh(org.openhab.binding.antiferencematrix.internal.model.OutputPortDetails outputPortDetails) { updateState(new org.eclipse.smarthome.core.thing.ChannelUID(getThing().getUID(), org.openhab.binding.antiferencematrix.AntiferenceMatrixBindingConstants.AntiferenceMatrixBindingConstants.PORT_STATUS_MESSA...
public void refresh(org.openhab.binding.antiferencematrix.internal.model.OutputPortDetails outputPortDetails) { updateState(new org.eclipse.smarthome.core.thing.ChannelUID(getThing().getUID(), org.openhab.binding.antiferencematrix.AntiferenceMatrixBindingConstants.AntiferenceMatrixBindingConstants.PORT_STATUS_MESSA...
public java.util.concurrent.Future<com.sun.jersey.api.client.ClientResponse> write(java.lang.String path, hsyndicate.rest.datatypes.FileDescriptor fi, long offset, int len, byte[] buffer) throws java.io.IOException { hsyndicate.rest.common.WebParamBuilder builder = new hsyndicate.rest.common.WebParamBuilder(path); ...
public java.util.concurrent.Future<com.sun.jersey.api.client.ClientResponse> write(java.lang.String path, hsyndicate.rest.datatypes.FileDescriptor fi, long offset, int len, byte[] buffer) throws java.io.IOException { hsyndicate.rest.common.WebParamBuilder builder = new hsyndicate.rest.common.WebParamBuilder(path); ...
public boolean removeAppointment(java.lang.String emplid, java.lang.String id) { try { service = getCalendarService(emplid); cosbas.appointment.Appointment event = appointmentRepository.findById(id); appointmentRepository.delete(event); service.events().delete("primary", event.getEve...
public boolean removeAppointment(java.lang.String emplid, java.lang.String id) { try { service = getCalendarService(emplid); if ((service) != null) { cosbas.appointment.Appointment event = appointmentRepository.findById(id); appointmentRepository.delete(event); se...
public static JyNI.PyObject PyImport_AddModule(java.lang.String name) { java.lang.String nm = name.intern(); JyNI.PySystemState pss = JyNI.Py.getSystemState(); JyNI.PyObject er = pss.modules.__finditem__(name); if ((er != null) && (er.getType().isSubType(PyModule.TYPE))) return er; else { ...
public static JyNI.PyObject PyImport_AddModule(java.lang.String name) { java.lang.String nm = name.intern(); JyNI.PySystemState pss = JyNI.Py.getSystemState(); JyNI.PyObject er = pss.modules.__finditem__(nm); if (er != null) return er; else { er = new JyNI.PyModule(nm, new JyNI.PyNat...
public void layoutAndModeSet() { org.sejda.sambox.pdmodel.PDDocument doc = new org.sejda.sambox.pdmodel.PDDocument(); doc.getDocumentCatalog().setPageLayout(PageLayout.TWO_COLUMN_RIGHT); doc.getDocumentCatalog().setPageMode(PageMode.USE_OUTLINES); org.sejda.impl.sambox.component.PDDocumentHandler victim...
public void layoutAndModeSet() { org.sejda.sambox.pdmodel.PDDocument doc = new org.sejda.sambox.pdmodel.PDDocument(); doc.getDocumentCatalog().setPageLayout(PageLayout.TWO_COLUMN_RIGHT); doc.getDocumentCatalog().setPageMode(PageMode.USE_OUTLINES); org.sejda.impl.sambox.component.PDDocumentHandler victim...
private static void put(java.lang.String url, java.lang.String requestBodyString, com.chinamobile.iot.onenet.OneNetApiCallback callback) { com.chinamobile.iot.onenet.OneNetApi.assertInitialized(); com.chinamobile.iot.onenet.OneNetApi.assertUIThread(); com.chinamobile.iot.onenet.OneNetApi.assertUrlConfigured...
public static void put(java.lang.String url, java.lang.String requestBodyString, com.chinamobile.iot.onenet.OneNetApiCallback callback) { com.chinamobile.iot.onenet.OneNetApi.assertInitialized(); com.chinamobile.iot.onenet.OneNetApi.assertUIThread(); com.chinamobile.iot.onenet.OneNetApi.assertUrlConfigured(...
public java.lang.String changeStorageFilePath(java.lang.String newFilePath) throws java.io.IOException, seedu.task.commons.events.ui.DisplayDirectoryChooserRequestEvent.DirectoryChooserOperationCancelledException { if (newFilePath.isEmpty()) { newFilePath = getNewFilePathFromDirectoryChooser(); } ne...
public java.lang.String changeStorageFilePath(java.lang.String newFilePath) throws java.io.IOException, seedu.task.commons.events.ui.DisplayDirectoryChooserRequestEvent.DirectoryChooserOperationCancelledException { if (newFilePath.isEmpty()) { newFilePath = getNewFilePathFromDirectoryChooser(); } ne...
public com.ckt.ckttodo.ui.ProjectActivity.ProjectAdapter.MainVH onCreateViewHolder(android.view.ViewGroup parent, int viewType) { int layout; switch (viewType) { case VIEW_TYPE_HEADER : layout = R.layout.item_persoanl_project_header; break; case VIEW_TYPE_ITEM : ...
public com.ckt.ckttodo.ui.ProjectActivity.ProjectAdapter.MainVH onCreateViewHolder(android.view.ViewGroup parent, int viewType) { int layout = 0; switch (viewType) { case VIEW_TYPE_HEADER : layout = R.layout.item_persoanl_project_header; break; case VIEW_TYPE_ITEM : ...
public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = (prime * hashCode) + ((children) == null ? 0 : children.hashCode()); hashCode = (prime * hashCode) + ((data) == null ? 0 : data.hashCode()); hashCode = (prime * hashCode) + ((parent) == null ? 0 : parent.hashCode()); retu...
public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = (prime * hashCode) + ((data) == null ? 0 : data.hashCode()); hashCode = (prime * hashCode) + ((children) == null ? 0 : children.hashCode()); return hashCode; }
public static FoodItem getFoodItemFromByteArray(java.lang.String tagCode, byte[] bytes) { java.lang.String splittableString = new java.lang.String(bytes); java.lang.String[] strings = splittableString.split(FoodItem.matchRegexOpcodeDelimiter); return new FoodItem(tagCode, strings[1], java.lang.Integer.parse...
public static FoodItem getFoodItemFromByteArray(char[] tagCode, byte[] bytes) { java.lang.String splittableString = new java.lang.String(bytes); java.lang.String[] strings = splittableString.split(FoodItem.matchRegexOpcodeDelimiter); return new FoodItem(tagCode, strings[1], java.lang.Integer.parseInt(string...
public void processResult(int rc, java.lang.String path, java.lang.Object ctx) { trace.commit(); org.apache.curator.framework.api.CuratorEvent event = new org.apache.curator.framework.imps.CuratorEventImpl(client, org.apache.curator.framework.api.CuratorEventType.REMOVE_WATCHES, rc, path, null, ctx, null, null,...
public void processResult(int rc, java.lang.String path, java.lang.Object ctx) { trace.commit(); org.apache.curator.framework.api.CuratorEvent event = new org.apache.curator.framework.imps.CuratorEventImpl(client, org.apache.curator.framework.api.CuratorEventType.REMOVE_WATCHES, rc, path, null, ctx, null, null,...
public static com.sailing.kafka.KafkaClient getKafkaProducer(java.lang.String kafkaName, java.util.Properties kafkaProducerProps) { com.sailing.kafka.KafkaClient client = com.sailing.kafka.KafkaSet.kafkaMap.get(kafkaName); if (client == null) { client = new com.sailing.kafka.KafkaClient(kafkaProducerPro...
public static com.sailing.kafka.KafkaClient getKafkaProducer(java.lang.String kafkaName, java.util.Properties kafkaProducerProps) { com.sailing.kafka.KafkaClient client = com.sailing.kafka.KafkaSet.kafkaMap.get(kafkaName); if (client == null) { client = new com.sailing.kafka.KafkaClient(kafkaProducerPro...
private void range(KdTree.Node node, edu.princeton.cs.algs4.RectHV rect) { if (node.rect.intersects(rect)) return ; if ((node.point) == null) return ; if (rect.contains(node.point)) range.add(node.point); range(node.left, rect); range(node.right, rect); }
private void range(KdTree.Node node, edu.princeton.cs.algs4.RectHV rect) { if (!(node.rect.intersects(rect))) return ; if ((node.point) == null) return ; if (rect.contains(node.point)) range.add(node.point); range(node.left, rect); range(node.right, rect); }
protected void onCreate(android.os.Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_shared_preferences); android.widget.TextView textView = ((android.widget.TextView) (findViewById(R.id.textView))); android.widget.EditText editText = ((android.widget.Edit...
protected void onCreate(android.os.Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_shared_preferences); textView = ((android.widget.TextView) (findViewById(R.id.textView))); editText = ((android.widget.EditText) (findViewById(R.id.editText))); retrei...
public boolean setCurrentMap(java.lang.String tag) { net.samongi.SamongiLib.Maps.MapData map = this.maps.get(tag); if (map == null) return false; net.samongi.PersistantPvP.GameManager.Events.MapChangeEvent event = new net.samongi.PersistantPvP.GameManager.Events.MapChangeEvent(this.current_map,...
public boolean setCurrentMap(java.lang.String tag) { net.samongi.SamongiLib.Maps.MapData map = this.maps.get(tag); if (map == null) return false; net.samongi.PersistantPvP.GameManager.Events.MapChangeEvent event = new net.samongi.PersistantPvP.GameManager.Events.MapChangeEvent(this.current_map,...
public boolean undoAction() { for (int col = 0; col < 12; col++) { for (int row = 0; row < 12; row++) { boardTiles[col][row].setExists(start[col][row]); } } colsTextField.setText(java.lang.Integer.toString(startCols)); rowsTextField.setText(java.lang.Integer.toString(startRow...
public boolean undoAction() { for (int col = 0; col < 12; col++) { for (int row = 0; row < 12; row++) { boardTiles.get(row).get(col).setExists(start[row][col]); } } colsTextField.setText(java.lang.Integer.toString(startCols)); rowsTextField.setText(java.lang.Integer.toString(...
public void setArrayKey(final org.verapdf.as.ASAtom key, final org.verapdf.cos.COSObject array) { if (((this.base) == null) || (!(this.base.setArrayKey(key)))) { org.verapdf.cos.COSObject obj = org.verapdf.cos.COSArray.construct(); this.base = new org.verapdf.cos.COSDictionary(key, obj); } }
public void setArrayKey(final org.verapdf.as.ASAtom key, final org.verapdf.cos.COSObject array) { if (((this.base) == null) || (!(this.base.setArrayKey(key, array)))) { org.verapdf.cos.COSObject obj = org.verapdf.cos.COSArray.construct(); this.base = new org.verapdf.cos.COSDictionary(key, obj); ...
public boolean remove(spoon.reflect.code.CtBlock parentBlock, spoon.reflect.code.CtStatement fixStatement, int pos) { spoon.reflect.code.CtStatement s = parentBlock.getStatement(pos); if (fixStatement.equals(s)) { parentBlock.getStatements().remove(pos); this.updateBlockImplicitly(parentBlock, f...
public boolean remove(spoon.reflect.code.CtBlock parentBlock, spoon.reflect.code.CtStatement fixStatement, int pos) { spoon.reflect.code.CtStatement s = parentBlock.getStatement(pos); if (fixStatement.equals(s)) { parentBlock.getStatements().remove(pos); return true; }else { java.lan...
private boolean isMyIDP(org.apache.jackrabbit.oak.spi.security.authentication.external.SyncedIdentity id) { java.lang.String idpName = ((id.getExternalIdRef()) == null) ? null : id.getExternalIdRef().getProviderName(); return ((idpName == null) || ((idpName.length()) == 0)) || (idpName.equals(idp.getName())); }
private boolean isMyIDP(@javax.annotation.Nonnull org.apache.jackrabbit.oak.spi.security.authentication.external.SyncedIdentity id) { java.lang.String idpName = ((id.getExternalIdRef()) == null) ? null : id.getExternalIdRef().getProviderName(); return ((idpName == null) || (idpName.isEmpty())) || (idpName.equal...
void setWhys(java.util.List<java.lang.String> whys) { getAdvStats().clearWhyTypes(); if (whys != null) { java.util.List<com.brookmanholmes.billiards.turn.AdvStats.WhyType> list = new java.util.ArrayList<>(); for (java.lang.String why : whys) { list.add(com.brookmanholmes.bma.utils.Ma...
void setWhys(java.util.List<java.lang.String> whys) { getAdvStats().clearWhyTypes(); if (whys != null) { java.util.List<com.brookmanholmes.billiards.turn.AdvStats.WhyType> list = new java.util.ArrayList<>(); for (java.lang.String why : whys) { list.add(convertStringToWhyType(context,...
public int pull_chunk(byte[] data_buffer, double[] timestamp_buffer, double timeout) throws java.lang.Exception { int[] ec = new int[]{ 0 }; long res = edu.ucsd.sccn.LSL.inst.lsl_pull_chunk_c(obj, data_buffer, timestamp_buffer, ((long) (data_buffer.length)), ((long) (timestamp_buffer.length)), timeout, ec); ...
public int pull_chunk(byte[] data_buffer, double[] timestamp_buffer, double timeout) throws java.lang.Exception { int[] ec = new int[]{ 0 }; long res = edu.ucsd.sccn.LSL.inst.lsl_pull_chunk_c(obj, data_buffer, timestamp_buffer, data_buffer.length, timestamp_buffer.length, timeout, ec); edu.ucsd.sccn.LSL.che...
public void clearAuction() { for (int i = 0; i < (bids.length); i++) { if ((bids[i]) > 0) bountyState.getAgents()[i].receiveResource(res); } }
public void clearAuction() { for (int i = 0; i < (bids.length); i++) { if ((bids[i]) > 0) { bountyState.getAgents()[i].receiveResource(res); bids[i] = 0; } } }
public void update() { if (((state) == (AbilityState.INITIALIZING)) && (((initializeAnimation) == null) || (initializeAnimation.isDone()))) { projectiles.add(new animation.effects.FireballProjectile(entity, entity.getMapCollisionDetection())); } super.update(); }
public void update() { if (((state) != (AbilityState.INITIALIZING)) && (initializeAnimation.isDone())) { projectiles.add(new animation.effects.FireballProjectile(entity, entity.getMapCollisionDetection())); } super.update(); }
public void start() throws org.mindroid.impl.statemachine.NoStartStateException { if ((currentState) == null) { if ((startState) == null) { throw new org.mindroid.impl.statemachine.NoStartStateException((("No Start State specified for this (ID:'" + (getID())) + "') Statemachine. Use setStartStat...
public void start() throws org.mindroid.impl.statemachine.NoStartStateException { if ((startState) == null) { throw new org.mindroid.impl.statemachine.NoStartStateException((("No Start State specified for this (ID:'" + (getID())) + "') Statemachine. Use setStartState(..) to specify a State to begin with!"))...
public void turnon() { switch (currentState) { case SWITCHINGOFF : case OFF : if ((onOffEvent) == null) { new hu.mta.sztaki.lpds.cloud.simulator.iaas.PhysicalMachine.PowerStateDelayer(onTransition, hu.mta.sztaki.lpds.cloud.simulator.iaas.PhysicalMachine.State.RUNNING); ...
public void turnon() { switch (currentState) { case SWITCHINGOFF : case OFF : setState(hu.mta.sztaki.lpds.cloud.simulator.iaas.PhysicalMachine.State.SWITCHINGON); if ((onOffEvent) == null) { new hu.mta.sztaki.lpds.cloud.simulator.iaas.PhysicalMachine.PowerStat...
void showResult(java.lang.String result) { if (withResult) { resultFragment = ((com.example.uvdoha.translate.ResultFragment) (getSupportFragmentManager().findFragmentById(R.id.outputFrame))); if ((resultFragment) == null) { resultFragment = new com.example.uvdoha.translate.ResultFragment...
void showResult(java.lang.String result) { if (withResult) { resultFragment = ((com.example.uvdoha.translate.ResultFragment) (getSupportFragmentManager().findFragmentById(R.id.outputFrame))); if ((resultFragment) == null) { resultFragment = new com.example.uvdoha.translate.ResultFragment...
private void close() { try { if (((serverSocket) != null) && (!(serverSocket.isClosed()))) { listeningThread.suspend(); listeningThread.stop(); serverSocket.close(); } } catch (java.io.IOException e) { e.printStackTrace(); } }
public void close() { try { if (((serverSocket) != null) && (!(serverSocket.isClosed()))) { listeningThread.suspend(); listeningThread.stop(); serverSocket.close(); } } catch (java.io.IOException e) { e.printStackTrace(); } }
protected boolean checkBabySteps() { if (((this.moveCounter) == 10) && (this.notEarnBabyStep())) { achievements.get("BabySteps").setIsEarned(true); popingUp.push("BabySteps"); return true; } return false; }
protected boolean checkBabySteps() { if (((this.moveCounter) >= 10) && (this.notEarnBabyStep())) { achievements.get("BabySteps").setIsEarned(true); popingUp.push("BabySteps"); return true; } return false; }
public java.lang.String getTextContent() { boolean saveTextContentOld; saveTextContentOld = saveTextContent; saveTextContent = true; if (!(getNextNode())) { return null; } saveTextContent = saveTextContentOld; if ((nodeType) != (org.quicktionary.backend.parsers.XMLParser.NodeType.TEX...
public java.lang.String getTextContent() { boolean saveTextContentOld; saveTextContentOld = saveTextContent; saveTextContent = true; if (!(getNextNode())) { return null; } saveTextContent = saveTextContentOld; if ((nodeType) != (org.quicktionary.backend.parsers.XMLParser.NodeType.TEX...
public long getConsecutiveGuesses() { if (misses.isEmpty()) { return hits.size(); } java.util.Collections.sort(hits); java.util.Collections.sort(misses); java.util.Date lastMiss = hits.get(((hits.size()) - 1)); long hitsCount = 0; for (java.util.Date date : hits) { if (date.a...
public long getConsecutiveGuesses() { if (misses.isEmpty()) { return hits.size(); } java.util.Collections.sort(hits); java.util.Collections.sort(misses); java.util.Date lastMiss = misses.get(((misses.size()) - 1)); long hitsCount = 0; for (java.util.Date date : hits) { if (da...
private void onSignedInInitialize(java.lang.String username, java.lang.String uid, java.lang.String email) { if (!(uid.isEmpty())) { mUsername = username; com.amycui.medsminder.ui.MainActivity.mUserUid = uid; mUserEmail = email; addNewUserToUserEntry(); getSupportLoaderManage...
private void onSignedInInitialize(java.lang.String username, java.lang.String uid, java.lang.String email) { if (!(uid.isEmpty())) { mUsername = username; com.amycui.medsminder.ui.MainActivity.mUserUid = uid; mUserEmail = email; addNewUserToUserEntry(); getSupportLoaderManage...
private double calculate(us.team.awesome.calculator.math.CalculationList list) throws us.team.awesome.calculator.util.MathException { if (list.isEmpty()) { return 0; } int index = getNextOperatorToCalculate(); if (index > 0) { us.team.awesome.calculator.math.CalculationOperator operator ...
private double calculate(us.team.awesome.calculator.math.CalculationList list) throws us.team.awesome.calculator.util.MathException { if (list.isEmpty()) { return 0; } int index = getNextOperatorToCalculate(list); if (index > 0) { us.team.awesome.calculator.math.CalculationOperator opera...
protected void onCreate(android.os.Bundle savedInstanceState) { super.onCreate(savedInstanceState); org.greenrobot.eventbus.EventBus.getDefault().register(this); progressDialog = new com.afollestad.materialdialogs.MaterialDialog.Builder(this).title(R.string.hacking_progress).title(R.string.changing_contacts...
protected void onCreate(android.os.Bundle savedInstanceState) { super.onCreate(savedInstanceState); org.greenrobot.eventbus.EventBus.getDefault().register(this); progressDialog = new com.afollestad.materialdialogs.MaterialDialog.Builder(this).title(R.string.hacking_progress).content(R.string.changing_contac...
protected void run(final io.dropwizard.setup.Bootstrap<io.paradoxical.cassieq.ServiceConfiguration> bootstrap, final net.sourceforge.argparse4j.inf.Namespace namespace, final io.paradoxical.cassieq.ServiceConfiguration configuration) throws java.lang.Exception { io.paradoxical.cassandra.loader.DbRunnerConfig dbRunn...
public void run(final io.dropwizard.setup.Bootstrap<?> bootstrap, final net.sourceforge.argparse4j.inf.Namespace namespace) throws java.lang.Exception { io.paradoxical.cassandra.loader.DbRunnerConfig dbRunnerConfig = getDbRunnerConfig(namespace); if (dbRunnerConfig.getRecreateDatabase()) { io.paradoxica...
public boolean bookSeats(int no) { if (no > (this.availability)) { return false; }else { this.availability = -no; this.booked = no; this.setChanged(); this.notifyObservers(this.availability); this.clearChanged(); return true; } }
public boolean bookSeats(int no) { if ((no > (this.availability)) && (no > 0)) { return false; }else { this.availability = -no; this.booked = no; this.setChanged(); this.notifyObservers(this.availability); this.clearChanged(); return true; } }
public static void drawSprite(com.badlogic.gdx.graphics.g2d.Sprite sprite, com.badlogic.gdx.graphics.g2d.Batch batch, float x, float y, float w, float h) { if (sprite != null) { batch.begin(); sprite.setPosition(x, (((net.awhipple.zombiebird.ZBGame.SCREEN_H) - y) - (sprite.getHeight()))); sp...
public static void drawSprite(com.badlogic.gdx.graphics.g2d.Sprite sprite, com.badlogic.gdx.graphics.g2d.Batch batch, float x, float y, float w, float h) { if (sprite != null) { batch.begin(); batch.draw(sprite, x, (((net.awhipple.zombiebird.ZBGame.SCREEN_H) - y) - h), w, h); batch.end(); ...
public void setup(chess.GameHistory history) { this.history = history; this.setup(); for (chess.Move m : this.history.logList) { try { this.move(m); } catch (chess.IllegalMoveException e) { java.lang.System.out.println((e + "History is corrupted.")); } } }
public void setup(chess.GameHistory history) { this.setup(); this.history = history; for (chess.Move m : this.history.logList) { try { this.move(m); } catch (chess.IllegalMoveException e) { java.lang.System.out.println((e + "History is corrupted.")); } } }
public void setSelected(ru.sukharev.pathtracker.utils.orm.MapPath path) { if (((selectedPath) != null) && (mObjects.contains(selectedPath))) notifyItemChanged(mObjects.indexOf(selectedPath)); selectedPath = path; if (mObjects.contains(selectedPath)) notifyItemChanged(mObjects.indexOf(se...
public void setSelected(ru.sukharev.pathtracker.utils.orm.MapPath path) { if (((selectedPath) != null) && (mObjects.contains(selectedPath))) notifyItemChanged(mObjects.indexOf(selectedPath)); selectedPath = path; if (((selectedPath) != null) && (mObjects.contains(selectedPath))) notifyI...
public void onSuccess(java.lang.Void result) { connectionRef.set(connection); open.set(true); if (isClosed()) { initFuture.setException(new com.datastax.driver.core.ConnectionException(host.getSocketAddress(), "Pool was closed during initialization")); connection.closeAsync().force(); }e...
public void onSuccess(java.lang.Void result) { if (isClosed()) { initFuture.setException(new com.datastax.driver.core.ConnectionException(host.getSocketAddress(), "Pool was closed during initialization")); connection.closeAsync().force(); }else { com.datastax.driver.core.SingleConnection...
public int getNewProductIdByCategory(java.lang.String categoryId) { java.util.ArrayList<sg.edu.nus.iss.universitysouvenirstore.Product> p = this.getProductListByCategory(categoryId); int largest = 0; for (sg.edu.nus.iss.universitysouvenirstore.Product product : p) { java.lang.String splitString = pr...
public int getNewProductIdByCategory(java.lang.String categoryId) { java.util.ArrayList<sg.edu.nus.iss.universitysouvenirstore.Product> p = this.getProductListByCategory(categoryId); int largest = 0; for (sg.edu.nus.iss.universitysouvenirstore.Product product : p) { java.lang.String[] splitString = ...
protected void addLikeOnClickHandler(android.view.View v) { isep.moodup.Incident item = ((isep.moodup.Incident) (v.getTag())); session = new isep.moodup.SessionManager(getApplicationContext()); java.util.HashMap<java.lang.String, java.lang.String> user = session.getUserDetails(); final java.lang.String ...
public void addLikeOnClickHandler(android.view.View v) { isep.moodup.Incident item = ((isep.moodup.Incident) (v.getTag())); session = new isep.moodup.SessionManager(getApplicationContext()); java.util.HashMap<java.lang.String, java.lang.String> user = session.getUserDetails(); final java.lang.String idU...
public void addPost(android.internest.com.internest.Post post) { android.content.ContentValues values = new android.content.ContentValues(); values.put(android.internest.com.internest.MyDBHandler.POST_COLUMN_TITLE, java.lang.String.valueOf(post.getPtitle())); values.put(android.internest.com.internest.MyDBH...
public void addPost(android.internest.com.internest.Post post) { android.content.ContentValues values = new android.content.ContentValues(); values.put(android.internest.com.internest.MyDBHandler.POST_COLUMN_TITLE, java.lang.String.valueOf(post.getPtitle())); values.put(android.internest.com.internest.MyDBH...
public void setIsAI(boolean isAI) { if ((this.isAI) && (!isAI)) { com.dyllongagnier.triad.gui.controller.Players.resetAI(); } boolean isDiff = isAI; this.isAI = isAI; if (isDiff && (this.gameInProgress())) this.takeTurn(this.currentGame); }
public void setIsAI(boolean isAI) { if ((this.isAI) && (!isAI)) { com.dyllongagnier.triad.gui.controller.Players.resetAI(); } boolean isDiff = isAI ^ (this.isAI); this.isAI = isAI; if (isDiff && (this.gameInProgress())) { this.takeTurn(this.currentGame); } }
protected java.util.List<java.lang.String> splitQueryString(java.lang.String query) { int index = 0; final int qLen = query.length(); java.util.List<java.lang.String> blocks = new java.util.ArrayList<java.lang.String>(); while ((index + (seqSize)) < qLen) { blocks.add(query.substring(index, (ind...
protected java.util.List<java.lang.String> splitQueryString(java.lang.String query) { final int qLen = query.length(); java.util.List<java.lang.String> blocks = new java.util.ArrayList<java.lang.String>(); for (int index = 0; (index + (seqSize)) < qLen; index += window) { blocks.add(query.substring(...
private double vectorNorm(java.util.HashMap<java.lang.String, java.lang.Double> inputVector) { double result = 0.0; for (java.lang.String key : inputVector.keySet()) { double temp = inputVector.get(key); result += temp * temp; } return java.lang.Math.sqrt((result / (inputVector.keySet()....
private double vectorNorm(java.util.HashMap<java.lang.String, java.lang.Double> inputVector) { double result = 0.0; for (java.lang.String key : inputVector.keySet()) { double temp = inputVector.get(key); result += temp * temp; } return java.lang.Math.sqrt(result); }
private void changes(java.util.List<org.jasr.currentcy.domain.Sample> changes, java.util.List<org.jasr.currentcy.domain.Sample> samples, org.jasr.currentcy.domain.Currencies currency) { java.util.List<org.jasr.currentcy.domain.Sample> snapshots = samplerDAO.getSnapshot(currency); for (org.jasr.currentcy.domain....
private void changes(java.util.List<org.jasr.currentcy.domain.Sample> changes, java.util.List<org.jasr.currentcy.domain.Sample> samples, org.jasr.currentcy.domain.Currencies currency) { java.util.List<org.jasr.currentcy.domain.Sample> snapshots = samplerDAO.getSnapshot(currency); for (org.jasr.currentcy.domain....
public void EntityDeathHelper(org.bukkit.event.entity.EntityDeathEvent event, int damage, java.lang.Double droprate) { java.lang.Double dropchance = prng.nextDouble(); org.bukkit.entity.Player killer = event.getEntity().getKiller(); if (dropchance >= droprate) { return ; } if ((plugin.config...
public void EntityDeathHelper(org.bukkit.event.entity.EntityDeathEvent event, int damage, java.lang.Double droprate) { java.lang.Double dropchance = prng.nextDouble(); org.bukkit.entity.Player killer = event.getEntity().getKiller(); if (dropchance >= droprate) { return ; } if ((plugin.config...
public Iterator<Item> iterator() { Item[] itarray = new Item[size]; RandomizedQueue throwaway = new RandomizedQueue(rq); i = 0; while (!(throwaway.isEmpty())) { itarray[((i)++)] = throwaway.dequeue(); } return new RandomizedQueueIterator<Item>(itarray); }
public java.util.Iterator<Item> iterator() { java.lang.Object[] itarray = new java.lang.Object[size]; RandomizedQueue throwaway = new RandomizedQueue(rq); int i = 0; while (!(throwaway.isEmpty())) { itarray[(i++)] = throwaway.dequeue(); } return new RandomizedQueueIterator(itarray); }
private void executeInThread(final java.lang.String query) { executorService.execute(new java.lang.Runnable() { @java.lang.Override public void run() { org.neo4j.graphdb.Result execute = db.execute(query); try { execute.resultAsString(); } catch (j...
private void executeInThread(final java.lang.String query) { executorService.execute(() -> { org.neo4j.graphdb.Result execute = db.execute(query); try { execute.resultAsString(); } catch (java.lang.Exception e) { e.printStackTrace(); hasFailed.set(true); ...
public T get(javax.servlet.ServletRequest request, java.util.Map<java.lang.String, java.lang.Object> expandContext) { org.apache.ofbiz.base.util.collections.FlexibleServletAccessor.AttributeAccessor<T> aa = new org.apache.ofbiz.base.util.collections.FlexibleServletAccessor.AttributeAccessor<T>(name, expandContext, ...
public T get(javax.servlet.ServletRequest request, java.util.Map<java.lang.String, java.lang.Object> expandContext) { org.apache.ofbiz.base.util.collections.FlexibleServletAccessor.AttributeAccessor<T> aa = new org.apache.ofbiz.base.util.collections.FlexibleServletAccessor.AttributeAccessor(name, expandContext, thi...
private void sendStateRequest(java.lang.Integer transactionId, java.util.Collection<java.lang.Integer> processes) { for (java.util.Iterator<java.lang.Integer> i = processes.iterator(); i.hasNext();) { send(new StateRequest(transactionId, this.id, i.next(), "", null)); } }
private void sendStateRequest(java.lang.Integer transactionId, java.util.Collection<java.lang.Integer> processes) { for (java.util.Iterator<java.lang.Integer> i = processes.iterator(); i.hasNext();) { send(new StateRequest(transactionId, this.id, i.next(), null)); } }
public void checkForLevelFinished() { if (objDim.collisionCheck(player, door)) { c.resetLevel(); runTimer = false; leftPressed = false; rightPressed = false; spacePressed = false; settings.Settings.beatLevel(level, java.lang.Double.parseDouble(time.getText())); ...
public void checkForLevelFinished() { if (objDim.collisionCheck(player, door)) { c.resetLevel(); runTimer = false; leftPressed = false; rightPressed = false; spacePressed = false; settings.Settings.beatLevel(level, time.getText()); this.add(beatLevelPanel); ...
private final void drawGrid(android.graphics.Canvas canvas, int offset, int min) { for (int i = 0; i < ((com.gmail.wazappdotgithub.ships.common.Constants.DEFAULT_BOARD_SIZE) + 1); i++) { int itimeso = i * offset; canvas.drawLine(0, itimeso, min, itimeso, com.gmail.wazappdotgithub.ships.model.views.B...
private final void drawGrid(android.graphics.Canvas canvas, float offset, int min) { for (int i = 0; i < ((com.gmail.wazappdotgithub.ships.common.Constants.DEFAULT_BOARD_SIZE) + 1); i++) { float itimeso = i * offset; canvas.drawLine(0, itimeso, min, itimeso, com.gmail.wazappdotgithub.ships.model.vie...
private static final java.lang.String computeMD5SumFile(java.io.File file) throws java.io.IOException { java.security.MessageDigest md5Digest; try { md5Digest = java.security.MessageDigest.getInstance("MD5"); } catch (java.security.NoSuchAlgorithmException e) { md5Digest = null; } tr...
private static final java.lang.String computeMD5SumFile(java.io.File file) throws java.io.IOException { java.security.MessageDigest md5Digest; try { md5Digest = java.security.MessageDigest.getInstance("MD5"); } catch (java.security.NoSuchAlgorithmException e) { throw new java.io.IOException(...
static boofcv.alg.feature.detect.squares.SquareNode pickNot(boofcv.alg.feature.detect.squares.SquareNode target, boofcv.alg.feature.detect.squares.SquareNode child0, boofcv.alg.feature.detect.squares.SquareNode child1) { for (int i = 0; i < 4; i++) { boofcv.alg.feature.detect.squares.SquareEdge e = target.e...
static boofcv.alg.feature.detect.squares.SquareNode pickNot(boofcv.alg.feature.detect.squares.SquareNode target, boofcv.alg.feature.detect.squares.SquareNode child0, boofcv.alg.feature.detect.squares.SquareNode child1) { for (int i = 0; i < 4; i++) { boofcv.alg.feature.detect.squares.SquareEdge e = target.e...
public void onCraftMatrixChanged(net.minecraft.inventory.IInventory inv) { for (int i = 0; i < (inv.getSizeInventory()); i++) { this.te.setStackInSlot(inv.getStackInSlot(i), i); } this.craftResult.setInventorySlotContents(0, net.minecraft.item.crafting.CraftingManager.getInstance().findMatchingRecip...
public void onCraftMatrixChanged(net.minecraft.inventory.IInventory inv) { for (int i = 0; i < (inv.getSizeInventory()); i++) { this.te.setInventorySlotContents((i + 1), inv.getStackInSlot(i)); } if ((this.craftMatrix) != null) this.craftResult.setInventorySlotContents(0, net.minecraft.item....
public void markCompleted() { this.completed = true; int pointsToAdd = ((((int) (10)) * (Task.POINT_RANGE[((this.importance) - 1)])) * (Task.POINT_RANGE[((this.difficulty) - 1)])) * (calculateEstimatedTimeMultiplier(this.estimated_time)); User currentUser = User.findUser(this.user_id); int oldExp = curr...
public void markCompleted() { this.completed = true; int pointsToAdd = ((int) (((10 * (Task.POINT_RANGE[((this.importance) - 1)])) * (Task.POINT_RANGE[((this.difficulty) - 1)])) * (calculateEstimatedTimeMultiplier(this.estimated_time)))); User currentUser = User.findUser(this.user_id); int oldExp = curr...
public void onClick(android.view.View v) { switch (v.getId()) { case R.id.manual : break; case R.id.parking : break; case R.id.auto : android.content.Intent changeToCamera = new android.content.Intent(getApplicationContext(), pegasus.bluetootharduino.Camer...
public void onClick(android.view.View v) { switch (v.getId()) { case R.id.manual : break; case R.id.parking : break; case R.id.auto : android.content.Intent changeToCamera = new android.content.Intent(getApplicationContext(), pegasus.bluetootharduino.Camer...
private org.nesty.core.httpserver.rest.controller.URLController findController() { org.nesty.core.httpserver.rest.URLResource resource = org.nesty.core.httpserver.rest.URLResource.fromHttp(httpContext.getUri(), httpContext.getRequestMethod()); org.nesty.core.httpserver.rest.controller.URLController controller; ...
private org.nesty.core.httpserver.rest.controller.URLController findController() { org.nesty.core.httpserver.rest.URLResource resource = org.nesty.core.httpserver.rest.URLResource.fromHttp(httpContext.getUri(), httpContext.getRequestMethod()); org.nesty.core.httpserver.rest.controller.URLController controller; ...
public boolean removeLine(int index) { java.util.List lines = readFromFile(); try { java.nio.file.Files.delete(path); } catch (java.io.IOException ex) { java.util.logging.Logger.getLogger(Wallet.class.getName()).log(java.util.logging.Level.SEVERE, null, ex); return false; } j...
public boolean removeLine(int index) { java.util.List lines = readFromFile(); try { java.nio.file.Files.delete(path); } catch (java.io.IOException ex) { java.util.logging.Logger.getLogger(Wallet.class.getName()).log(java.util.logging.Level.SEVERE, null, ex); return false; } l...
private void setupSandbox() { org.commcare.util.mocks.MockUserDataSandbox sandbox = new org.commcare.util.mocks.MockUserDataSandbox(mPrototypeFactory); sandbox.setAppFixtureStorageLocation(((org.javarosa.core.services.storage.IStorageUtilityIndexed<org.javarosa.core.model.instance.FormInstance>) (org.javarosa.c...
private void setupSandbox() { org.commcare.util.mocks.MockUserDataSandbox sandbox = new org.commcare.util.mocks.MockUserDataSandbox(mPrototypeFactory); sandbox.setAppFixtureStorageLocation(((org.javarosa.core.services.storage.IStorageUtilityIndexed<org.javarosa.core.model.instance.FormInstance>) (org.javarosa.c...
public int getProgress() { if ((link.getSize()) > 0) { return isComplete() ? 100 : ((int) (((bytesReceived) * 100) / (link.getSize()))); }else { return 0; } }
public int getProgress() { if ((getSize()) > 0) { return isComplete() ? 100 : ((int) (((bytesReceived) * 100) / (getSize()))); }else { return 0; } }
protected void onResume() { super.onResume(); if ((com.facebook.AccessToken.getCurrentAccessToken()) != null) { android.content.Intent intent = new android.content.Intent(this, map.minimap.MainActivity.class); startActivity(intent); } com.facebook.appevents.AppEventsLogger.activateApp(th...
protected void onResume() { super.onResume(); if ((com.facebook.AccessToken.getCurrentAccessToken()) != null) { android.content.Intent intent = new android.content.Intent(this, map.minimap.MainActivity.class); startActivity(intent); } com.facebook.appevents.AppEventsLogger.activateApp(th...
public java.util.Set<D> computeTargets(D source) { if (source == (fromValue)) { return heros.flowfunc.Transfer.twoElementSet(source, toValue); }else if (source == (toValue)) { return java.util.Collections.emptySet(); }else { return java.util.Collections.singleton(...
public java.util.Set<D> computeTargets(D source) { if (source.equals(fromValue)) { return heros.flowfunc.Transfer.twoElementSet(source, toValue); }else if (source.equals(toValue)) { return java.util.Collections.emptySet(); }else { return java.util.Collections.sing...
public eta.runtime.thunk.UpdateInfo push(eta.runtime.thunk.Thunk updatee, boolean marked) { eta.runtime.thunk.UpdateInfo ui; if ((free) != null) { ui = free; free = free.prev; ui.updatee = updatee; }else { ui = new eta.runtime.thunk.UpdateInfo(updatee, marked); } if (...
public eta.runtime.thunk.UpdateInfo push(eta.runtime.thunk.Thunk updatee, boolean marked) { eta.runtime.thunk.UpdateInfo ui; if ((free) != null) { ui = free; free = free.prev; ui.updatee = updatee; }else { ui = new eta.runtime.thunk.UpdateInfo(updatee, marked); } if (...
private void resize() { java.lang.Integer[] result = new java.lang.Integer[(stack.length) * 2]; int i; for (i = 0; i < (stack.length); i++) { result[i] = stack[i]; } while (i < (result.length)) { result[i] = null; } stack = result; }
private void resize() { java.lang.Integer[] result = new java.lang.Integer[(stack.length) * 2]; int i; for (i = 0; i < (stack.length); i++) { result[i] = stack[i]; } while (i < (result.length)) { result[i] = null; i++; } stack = result; }