buggy_function
stringlengths
1
391k
fixed_function
stringlengths
0
392k
public boolean isLessThan(assignment.HugeInteger that) { if ((this.length) > (that.length)) { return false; } for (int i = 0; i < (this.length); i++) { if ((this.getNumber()[i]) > (that.getNumber()[i])) { return false; } } return true; }
public boolean isLessThan(assignment.HugeInteger that) { if ((this.length) > (that.length)) { return false; }else if ((this.length) < (that.length)) { return true; } for (int i = 0; i < (this.length); i++) { if ((this.getNumber()[i]) > (that.getNumber()[i])) ...
public int GetPreparedFeature(java.lang.String RawFeature) { int Result = 0; if (MainCounterSorted.contains(RawFeature)) { java.lang.Integer ID = MainCounterSorted.get(RawFeature); if (ID < (maxID)) { Result = ID; } } return Result; }
public int GetPreparedFeature(java.lang.String RawFeature) { int Result = 0; if (MainCounterSorted.contains(RawFeature)) { java.lang.Integer ID = MainCounterSorted.get(RawFeature); if (ID <= (maxID)) { Result = ID; } } return Result; }
private java.lang.String getUrlToDependentModule(org.openl.rules.lang.xls.syntax.TableSyntaxNode node) { java.lang.String url = org.openl.rules.webstudio.web.util.WebStudioUtils.getWebStudio().url("table", node.getUri()); if (url.endsWith("table")) { url += (("?" + (org.openl.rules.webstudio.web.util.Co...
private java.lang.String getUrlToDependentModule(org.openl.rules.lang.xls.syntax.TableSyntaxNode node) { java.lang.String url = org.openl.rules.webstudio.web.util.WebStudioUtils.getWebStudio().url("table", node.getUri()); if ((url != null) && (url.endsWith("table"))) { url += (("?" + (org.openl.rules.we...
private void startSignIn() { mUsername = prefs.getString("username", ""); android.util.Log.d("prefs", "musername"); if (mUsername.equals("")) { android.content.Intent intent = new android.content.Intent(getActivity(), com.github.nkzawa.socketio.androidchat.LoginActivity.class); startActivity...
private void startSignIn() { mUsername = prefs.getString("username", ""); android.util.Log.d("prefs", mUsername); if (mUsername.equals("")) { android.content.Intent intent = new android.content.Intent(getActivity(), com.github.nkzawa.socketio.androidchat.LoginActivity.class); startActivityFo...
public void onClick(android.view.View view) { switch (view.getId()) { case R.id.spinnerProposal : if ((proposalList.size()) > 0) { java.lang.String[] occuArr = new java.lang.String[proposalList.size()]; occuArr = proposalList.toArray(occuArr); com....
public void onClick(android.view.View view) { switch (view.getId()) { case R.id.spinnerProposal : if ((proposalList.size()) > 0) { java.lang.String[] occuArr = new java.lang.String[proposalList.size()]; occuArr = proposalList.toArray(occuArr); com....
public net.minecraft.util.EnumActionResult onItemUse(net.minecraft.entity.player.EntityPlayer player, net.minecraft.world.World world, net.minecraft.util.math.BlockPos pos, net.minecraft.util.EnumHand hand, net.minecraft.util.EnumFacing side, float hitX, float hitY, float hitZ) { java.lang.System.out.printf("Hammer...
public net.minecraft.util.EnumActionResult onItemUse(net.minecraft.entity.player.EntityPlayer player, net.minecraft.world.World world, net.minecraft.util.math.BlockPos pos, net.minecraft.util.EnumHand hand, net.minecraft.util.EnumFacing side, float hitX, float hitY, float hitZ) { com.elytradev.architecture.common.t...
public void onSurfaceCreated(javax.microedition.khronos.opengles.GL10 gl, javax.microedition.khronos.egl.EGLConfig config) { glGraphics.setGL(gl); synchronized(stateChanged) { if ((state) == (se.tribestar.mage.backend.gl.GLBackendController.GLGameState.Initialized)) world = getWorld(); ...
public void onSurfaceCreated(javax.microedition.khronos.opengles.GL10 gl, javax.microedition.khronos.egl.EGLConfig config) { glGraphics.setGL(gl); synchronized(stateChanged) { if ((state) == (se.tribestar.mage.backend.gl.GLBackendController.GLGameState.Initialized)) world = getWorld(); ...
private void saveGame() { this.console.println("*** saveGame Function called ***"); java.lang.System.out.println("\nEnter the file path for file where the game is to be saved."); java.lang.String filePath = this.getInput(); try { Control.GameControls.saveGame(BiseJosephTeam.game, filePath); ...
private void saveGame() { console.println("\nEnter the file path for file where the game is to be saved."); java.lang.String filePath = this.getInput(); try { Control.GameControls.saveGame(BiseJosephTeam.game, filePath); } catch (java.lang.Exception ex) { View.ErrorView.display("MainMenu...
static int calculateCommonPrefixLength(final java.lang.String s1, final java.lang.String s2) { final int minLength = java.lang.Math.min(s1.length(), s2.length()); int commonPrefixLength = 0; for (int i = 0; i < minLength; ++i) { if ((s1.charAt(i)) != (s2.charAt(i))) return commonPrefixLe...
static int calculateCommonPrefixLength(final java.lang.String s1, final java.lang.String s2) { final int minLength = java.lang.Math.min(s1.length(), s2.length()); int commonPrefixLength = 0; for (; commonPrefixLength < minLength; ++commonPrefixLength) { if ((s1.charAt(commonPrefixLength)) != (s2.cha...
protected void retrievedTargetEntities(java.util.Collection<java.lang.Object> targetEntitiesIds) throws java.sql.SQLException { if ((cachedEntities) == null) { this.cachedEntities = new java.util.concurrent.ConcurrentHashMap<>(); }else { targetEntitiesIds.clear(); targetEntitiesIds.addAl...
protected void retrievedTargetEntities(java.util.Collection<java.lang.Object> targetEntitiesIds) throws java.sql.SQLException { if ((cachedEntities) == null) { this.cachedEntities = new java.util.concurrent.ConcurrentHashMap<>(); }else { this.targetEntitiesIds.clear(); this.targetEntitie...
public void process(us.codecraft.webmagic.Page page) { try { if (page == null) { throw new java.lang.Exception("page is null"); } for (movie.PageProcessor.ConcreteProcessor.BaseProcessor processor : processors) { if (processor.accept(page)) { process(p...
public void process(us.codecraft.webmagic.Page page) { try { if (page == null) { throw new java.lang.Exception("page is null"); } for (movie.PageProcessor.ConcreteProcessor.BaseProcessor processor : processors) { if (processor.accept(page)) { processor...
public java.awt.image.VolatileImage retrieveFromCache(@lombok.NonNull final com.valkryst.VTerminal.AsciiCharacter character) { final int hash = character.getCacheHash(); java.awt.image.VolatileImage image = cachedImages.getIfPresent(hash); if ((image == null) || (image.contentsLost())) { java.awt.im...
public java.awt.image.VolatileImage retrieveFromCache(@lombok.NonNull final com.valkryst.VTerminal.AsciiCharacter character) { final int hash = character.getCacheHash(); java.awt.image.VolatileImage image = cachedImages.getIfPresent(hash); if ((image == null) || (image.contentsLost())) { java.awt.im...
public void showGetGoalDialog() { android.support.v7.app.AlertDialog.Builder builder = new android.support.v7.app.AlertDialog.Builder(this); builder.setTitle("ゴール!").setMessage("目標文字数に到達しました。").setPositiveButton(R.string.OK, new android.content.DialogInterface.OnClickListener() { @java.lang.Override ...
private void showGetGoalDialog() { android.support.v7.app.AlertDialog.Builder builder = new android.support.v7.app.AlertDialog.Builder(this); builder.setTitle("ゴール!").setMessage("目標文字数に到達しました。").setPositiveButton(R.string.OK, new android.content.DialogInterface.OnClickListener() { @java.lang.Override ...
public void onDataChange(com.google.firebase.database.DataSnapshot dataSnapshot) { com.uchicago.yifan.meditreader.Model.User user = dataSnapshot.getValue(com.uchicago.yifan.meditreader.Model.User.class); if (user == null) { android.util.Log.e(com.uchicago.yifan.meditreader.Activities.CreatePost.CreatePo...
public void onDataChange(com.google.firebase.database.DataSnapshot dataSnapshot) { com.uchicago.yifan.meditreader.Model.User user = dataSnapshot.getValue(com.uchicago.yifan.meditreader.Model.User.class); if (user == null) { android.util.Log.e(com.uchicago.yifan.meditreader.Activities.CreatePost.CreatePo...
public void onSpeakStarted(java.lang.String speakingText) { listener.onSpeakStarted(speakingText); if (!(isHelloSpeak)) { isHelloSpeak = false; if ((body) != null) { body.doSpeakingAction(); }else if ((transparentBody) != null) { transparentBody.do...
public void onSpeakStarted(java.lang.String speakingText) { listener.onSpeakStarted(speakingText); if (isHelloSpeak) { isHelloSpeak = false; }else { if ((body) != null) { body.doSpeakingAction(); }else if ((transparentBody) != null) { transpare...
public int addCounsellor() throws java.lang.ClassNotFoundException, java.sql.SQLException { int rowsInserted = 0; java.sql.Connection c = com.leadmngmt.util.Database.getConnection(); java.sql.PreparedStatement statement = c.prepareStatement("INSERT INTO counsellor VALUES(?, ?, ?, ?)"); statement.setStri...
public int addCounsellor() throws java.lang.ClassNotFoundException, java.sql.SQLException { int rowsInserted = 0; java.sql.Connection c = com.leadmngmt.util.Database.getConnection(); java.sql.PreparedStatement statement = c.prepareStatement("INSERT INTO counsellor VALUES(?, ?, ?, ?)"); statement.setStri...
public static void main(java.lang.String[] args) { int times = com.example.javamavenjunithelloworld.HelloApp.DEFAULT_TIMES; if ((args.length) >= 1) { try { times = java.lang.Integer.valueOf(args[0]); } catch (java.lang.NumberFormatException e) { java.lang.System.exit(com....
public static void main(java.lang.String[] args) { int times = com.example.javamavenjunithelloworld.HelloApp.DEFAULT_TIMES; if ((args.length) >= 1) { try { times = java.lang.Integer.parseInt(args[0]); } catch (java.lang.NumberFormatException e) { java.lang.System.exit(com...
public void onClick(android.view.View v) { if (!(userChoice.isEmpty())) { android.widget.TextView welcomeTag = ((android.widget.TextView) (findViewById(R.id.welcomeText))); welcomeTag.setText("Entering Magic World!"); android.content.Intent toNavigation = new android.content.Intent(this, com...
public void onClick(android.view.View v) { if (!(userChoice.isEmpty())) { android.content.Intent toNavigation = new android.content.Intent(this, com.wordpress.kaiyima.autismappjam.NavigationListActivity.class); toNavigation.putExtra("userName", userChoice); startActivity(toNavigation); }...
public java.lang.String encodeURL(javax.servlet.ServletContext ctx, javax.servlet.ServletRequest request, javax.servlet.ServletResponse response, java.lang.String url, org.zkoss.web.servlet.http.Encodes.URLEncoder defaultEncoder) throws java.lang.Exception { if (url.endsWith("zkau")) { if (request instanceo...
public java.lang.String encodeURL(javax.servlet.ServletContext ctx, javax.servlet.ServletRequest request, javax.servlet.ServletResponse response, java.lang.String url, org.zkoss.web.servlet.http.Encodes.URLEncoder defaultEncoder) throws java.lang.Exception { if (request instanceof org.zkoss.web.portlet.RenderHttpSe...
public void onUpdate() { super.onUpdate(); if ((randomDir) == 0) { this.randomDir = worldObj.rand.nextInt(360); } if ((randomDir2) == 0) { this.randomDir2 = (worldObj.rand.nextInt(15)) + 10; } }
public void onUpdate() { super.onUpdate(); if ((randomDir) == 0) { randomDir = worldObj.rand.nextInt(360); } if ((randomDir2) == 0) { randomDir2 = (worldObj.rand.nextInt(15)) + 10; } }
protected java.util.List<java.util.Map<java.lang.String, java.lang.Object>> doInBackground(java.lang.String... params) { java.util.List<java.util.Map<java.lang.String, java.lang.Object>> list; java.lang.String str = com.lincanbin.carbonforum.util.HttpUtil.getRequest(params[0]); android.util.Log.v("JSON", st...
protected java.util.List<java.util.Map<java.lang.String, java.lang.Object>> doInBackground(java.lang.String... params) { java.util.List<java.util.Map<java.lang.String, java.lang.Object>> list; java.lang.String str = com.lincanbin.carbonforum.util.HttpUtil.getRequest(params[0]); list = com.lincanbin.carbonfo...
public void shouldSetAccountIdAndLbIdForHealthMonitorResource() { org.openstack.atlas.api.resources.HealthMonitorResource healthMonitorResource = org.mockito.Mockito.mock(org.openstack.atlas.api.resources.HealthMonitorResource.class); loadBalancerResource.setHealthMonitorResource(healthMonitorResource); loa...
public void shouldSetAccountIdAndLbIdForHealthMonitorResource() { org.openstack.atlas.api.resources.HealthMonitorResource healthMonitorResource = mock(org.openstack.atlas.api.resources.HealthMonitorResource.class); loadBalancerResource.setHealthMonitorResource(healthMonitorResource); loadBalancerResource.re...
public boolean authenticateLoginInfo(java.lang.String userName, java.lang.String password) { org.hibernate.criterion.Criterion[] criterion = new org.hibernate.criterion.Criterion[]{ org.hibernate.criterion.Restrictions.eq("account_name", userName) }; java.util.List<com.ipcs.model.Person> persons = personDao.cre...
public boolean authenticateLoginInfo(java.lang.String userName, java.lang.String password) { org.hibernate.criterion.Criterion[] criterion = new org.hibernate.criterion.Criterion[]{ org.hibernate.criterion.Restrictions.eq("account_name", userName) }; java.util.List<com.ipcs.model.Person> persons = personDao.cre...
private void onSubscriptionAlreadyClosed(org.wso2.andes.kernel.DeliverableAndesMetadata message, org.wso2.andes.subscription.LocalSubscription subscription) throws org.wso2.andes.kernel.AndesException { message.markDeliveredChannelAsClosed(subscription.getChannelID()); if (subscription.isDurable()) { me...
private void onSubscriptionAlreadyClosed(org.wso2.andes.kernel.DeliverableAndesMetadata message, org.wso2.andes.subscription.LocalSubscription subscription) throws org.wso2.andes.kernel.AndesException { message.markDeliveredChannelAsClosed(subscription.getChannelID()); if (!(subscription.isDurable())) { ...
private com.emc.storageos.coordinator.client.model.DbConsistencyStatus markResult() { com.emc.storageos.coordinator.client.model.DbConsistencyStatus status = dbChecker.getStatusFromZk(); if ((status.getInconsistencyCount()) > 0) { com.emc.storageos.systemservices.impl.jobs.consumer.DbConsistencyJobConsu...
private com.emc.storageos.coordinator.client.model.DbConsistencyStatus markResult() { com.emc.storageos.coordinator.client.model.DbConsistencyStatus status = dbChecker.getStatusFromZk(); if ((status.getInconsistencyCount()) > 0) { com.emc.storageos.systemservices.impl.jobs.consumer.DbConsistencyJobConsu...
public void actionPerformed(java.awt.event.ActionEvent arg0) { generator.GenerateList(((int) (minLengthField.getValue())), ((int) (maxLengthField.getValue())), ((int) (linePerFileField.getValue())), targetFileField.getText(), charset); }
public void actionPerformed(java.awt.event.ActionEvent arg0) { generator.GenerateList(targetFileField.getText(), ((int) (minLengthField.getValue())), ((int) (maxLengthField.getValue())), ((int) (linePerFileField.getValue())), charset); }
public void actionPerformed(java.awt.event.ActionEvent arg0) { if ((register.isActiveSale()) && ((register.getCurrentSaleTotal()) != (new java.math.BigDecimal(0).setScale(2, java.math.BigDecimal.ROUND_HALF_EVEN)))) { java.math.BigDecimal exactAmount = register.getCurrentSaleTotal(); if ((exactAmount...
public void actionPerformed(java.awt.event.ActionEvent arg0) { if ((register.isActiveSale()) && ((register.getCurrentSaleTotal()) != (new java.math.BigDecimal(0).setScale(2, java.math.BigDecimal.ROUND_HALF_EVEN)))) { java.math.BigDecimal exactAmount = register.getCurrentSaleTotal(); if ((exactAmount...
public uk.ac.ebi.metabolights.repository.model.webservice.RestResponse<java.util.List<uk.ac.ebi.metabolights.webservice.controllers.CompoundSearchResult>> getCompoundByName(@uk.ac.ebi.metabolights.webservice.controllers.PathVariable(value = "compoundName") final java.lang.String compoundName) { uk.ac.ebi.metaboligh...
public uk.ac.ebi.metabolights.repository.model.webservice.RestResponse<java.util.List<uk.ac.ebi.metabolights.webservice.controllers.CompoundSearchResult>> getCompoundByName(@uk.ac.ebi.metabolights.webservice.controllers.PathVariable(value = "compoundName") final java.lang.String compoundName) { uk.ac.ebi.metaboligh...
private void levelCameraOnPlayerPosition() { int calculatedY = ((int) (this.getY())); if ((calculatedY - (sk.tuke.gamedev.iddqd.tukequest.TukeQuestGame.SCREEN_HEIGHT)) <= 0) { calculatedY = (sk.tuke.gamedev.iddqd.tukequest.TukeQuestGame.SCREEN_HEIGHT) / 2; } camera.position.y = calculatedY; ...
private void levelCameraOnPlayerPosition() { int calculatedY = ((int) (this.getY())); if ((calculatedY - ((sk.tuke.gamedev.iddqd.tukequest.TukeQuestGame.SCREEN_HEIGHT) / 2)) <= 0) { calculatedY = (sk.tuke.gamedev.iddqd.tukequest.TukeQuestGame.SCREEN_HEIGHT) / 2; } camera.position.y = calculatedY...
public void run() throws java.io.FileNotFoundException { startElection(); while (true) { try { common.Connection connection = acceptor.accept(); connections.put(connection.getDest(), connection); java.lang.Thread t = new java.lang.Thread(connection); SendC...
public void run() throws java.io.FileNotFoundException { while (true) { try { common.Connection connection = acceptor.accept(); connections.put(connection.getDest(), connection); java.lang.Thread t = new java.lang.Thread(connection); t.start(); } catch...
public void set(T value) { if ((value != null) && (!(tClazz.isAssignableFrom(value.getClass())))) { throw new java.lang.IllegalArgumentException(("value is not assignable " + value)); } V temp = ((V) (value)); map.put(key, temp); super.setValue(value); }
public void set(T value) { if ((value != null) && (!(tClazz.isAssignableFrom(value.getClass())))) { throw new java.lang.IllegalArgumentException(("value is not assignable " + value)); } V temp = ((V) (value)); map.put(key, temp); super.set(value); }
public org.ballerinalang.model.values.BValue[] execute(org.ballerinalang.bre.Context ctx) { long start = getIntArgument(ctx, 0); long end = getIntArgument(ctx, 1); long random = java.util.concurrent.ThreadLocalRandom.current().nextLong(start, (end + 1)); return getBValues(new org.ballerinalang.model.val...
public org.ballerinalang.model.values.BValue[] execute(org.ballerinalang.bre.Context ctx) { long start = getIntArgument(ctx, 0); long end = getIntArgument(ctx, 1); long random = java.util.concurrent.ThreadLocalRandom.current().nextLong(start, end); return getBValues(new org.ballerinalang.model.values.BI...
public java.util.List<Pair> remainingPair(java.util.List<java.lang.String> remainingCandidates) { java.util.List<Pair> remainingPairs = new java.util.ArrayList<Pair>(); for (java.lang.String s : valuesPersonMap.keySet()) { for (java.lang.String v : valuesPersonMap.get(s)) { if (remainingCand...
public java.util.List<Pair> remainingPair(java.util.List<java.lang.String> remainingCandidates) { java.util.List<Pair> remainingPairs = new java.util.ArrayList<Pair>(); for (java.lang.String s : valuesPersonMap.keySet()) { for (java.lang.String v : valuesPersonMap.get(s)) { if (remainingCand...
public Item removeLast() { validateRm(); Item item = last.item; last.item = null; last = last.prev; last.next = null; (N)--; if (isEmpty()) { first = null; last = null; } assert check(); return item; }
public Item removeLast() { validateRm(); Item item = last.item; last.item = null; last.next = null; last = last.prev; (N)--; if (isEmpty()) { first = null; last = null; } assert check(); return item; }
public void onItemClick(android.widget.AdapterView<?> av, android.view.View v, int arg2, long arg3) { java.lang.String info = ((android.widget.TextView) (v.findViewById(R.id.textView))).getText().toString(); java.lang.String address = info.substring(((info.length()) - 17)); android.content.Intent i = new an...
public void onItemClick(android.widget.AdapterView<?> av, android.view.View v, int arg2, long arg3) { java.lang.String info = ((android.widget.TextView) (v.findViewById(R.id.textView))).getText().toString(); address = info.substring(((info.length()) - 17)); android.content.Intent i = new android.content.Int...
public static void sort(java.lang.Comparable[] a, int lo, int hi) { for (int i = lo; i <= hi; i++) { for (int j = i; (j > lo) && (edu.princeton.cs.algs4.Insertion.less(a[j], a[(j - 1)])); j--) { edu.princeton.cs.algs4.Insertion.exch(a, j, (j - 1)); } } assert edu.princeton.cs.alg...
public static void sort(java.lang.Comparable[] a, int lo, int hi) { for (int i = lo; i < hi; i++) { for (int j = i; (j > lo) && (edu.princeton.cs.algs4.Insertion.less(a[j], a[(j - 1)])); j--) { edu.princeton.cs.algs4.Insertion.exch(a, j, (j - 1)); } } assert edu.princeton.cs.algs...
public void onSuccess(int statusCode, org.apache.http.Header[] headers, byte[] response) { try { org.json.JSONObject obj = new org.json.JSONObject(new java.lang.String(response, "UTF-8")); my_pin = obj.getInt("pin"); countDown = obj.getInt("countDown"); java.lang.System.out.println((...
public void onSuccess(int statusCode, org.apache.http.Header[] headers, byte[] response) { try { org.json.JSONObject obj = new org.json.JSONObject(new java.lang.String(response, "UTF-8")); my_pin = obj.getInt("pin"); countDown = obj.getInt("countDown"); startSharingLocation(); } ...
public void switchCamera(android.view.View view) { int oppositeCamera = org.geneanet.customcamera.ManagerCamera.determineOppositeCamera(); initCameraResource(oppositeCamera); android.widget.FrameLayout cameraPreview = ((android.widget.FrameLayout) (findViewById(R.id.camera_preview))); cameraPreview.remo...
public void switchCamera(android.view.View view) { int oppositeCamera = org.geneanet.customcamera.ManagerCamera.determineOppositeCamera(); initCameraResource(oppositeCamera); android.widget.FrameLayout cameraPreview = ((android.widget.FrameLayout) (findViewById(R.id.camera_preview))); cameraPreview.remo...
public void testFetchOrder() { siena.core.async.SienaFuture<java.util.List<siena.base.test.model.PersonUUID>> future = queryPersonUUIDOrderBy("firstName", "", false).fetch(); java.util.List<siena.base.test.model.PersonUUID> people = future.get(); assertNotNull(people); assertEquals(3, people.size()); ...
public void testFetchOrder() { java.util.List<siena.base.test.model.PersonUUID> people = queryPersonUUIDOrderBy("firstName", "", false).fetch(); assertNotNull(people); assertEquals(3, people.size()); assertEquals(siena.base.test.BaseAsyncTest.UUID_EINSTEIN, people.get(0)); assertEquals(siena.base.te...
public void filterTable() { updateVar(); updateTableAll(); filterSkill(); filterJK(); if (!(search())) { javax.swing.JOptionPane.showMessageDialog(null, "Not found!"); updateTableAll(); showRow(); }else { updateTableAll(); showRow(); } }
public void filterTable() { updateVar(); updateTableAll(); filterSkill(); filterJK(); if (!(search())) { javax.swing.JOptionPane.showMessageDialog(null, "Not found!"); updateTableAll(); }else { updateTableAll(); } showRow(); }
private void moveHoverCell(float x, float y) { int w = mHoverCell.getWidth(); int h = mHoverCell.getHeight(); int top = mHoverCell.getTop(); int left = mHoverCell.getLeft(); mHoverCell.setTranslationX((x - (left + (w / 2)))); mHoverCell.setTranslationY((y - (top + (h / 2)))); }
private void moveHoverCell(float x, float y) { int w = mHoverCell.getWidth(); int h = mHoverCell.getHeight(); int top = mHoverCell.getTop(); int left = mHoverCell.getLeft(); mHoverCell.setTranslationX((x - (w / 2))); mHoverCell.setTranslationY((y - (h / 2))); }
public void setUp() throws java.lang.Exception { org.powermock.api.mockito.PowerMockito.mockStatic(com.taobao.weex.utils.WXSoInstallMgrSdk.class); org.powermock.api.mockito.PowerMockito.mockStatic(android.text.TextUtils.class); org.powermock.api.mockito.PowerMockito.mockStatic(com.taobao.weex.ui.component.W...
public void setUp() throws java.lang.Exception { org.powermock.api.mockito.PowerMockito.mockStatic(com.taobao.weex.utils.WXSoInstallMgrSdk.class); org.powermock.api.mockito.PowerMockito.mockStatic(android.text.TextUtils.class); org.powermock.api.mockito.PowerMockito.mockStatic(com.taobao.weex.ui.component.W...
protected void onCreate(android.os.Bundle savedInstanceState) { super.onCreate(savedInstanceState); com.twitter.sdk.android.core.Twitter.initialize(this); setContentView(R.layout.activity_main); mTextMessage = findViewById(R.id.message); android.support.design.widget.BottomNavigationView navigation ...
protected void onCreate(android.os.Bundle savedInstanceState) { super.onCreate(savedInstanceState); com.twitter.sdk.android.core.Twitter.initialize(this); setContentView(R.layout.activity_main); mTextMessage = findViewById(R.id.message); android.support.design.widget.BottomNavigationView navigation ...
public void configure(org.springframework.security.config.annotation.web.builders.HttpSecurity http) throws java.lang.Exception { http.requestMatchers().antMatchers("/sso/me/**", "/sso/internal/**", "/settings/**", "/api-docs/**").and().authorizeRequests().antMatchers("/settings/**").hasRole("ADMINISTRATOR").antMat...
public void configure(org.springframework.security.config.annotation.web.builders.HttpSecurity http) throws java.lang.Exception { http.requestMatchers().antMatchers("/sso/me/**", "/sso/internal/**", "/settings/**").and().authorizeRequests().antMatchers("/settings/**").hasRole("ADMINISTRATOR").antMatchers("/sso/inte...
public java.util.Map<java.lang.String, java.lang.Object> cityDataAsMap() { java.util.Map<java.lang.String, java.lang.Object> cityPrefs = cityPrefCache.entries(cityPrefCacheKey()); if (cityPrefs.isEmpty()) { java.lang.System.out.println(("ApplicationThreadLocals.getDomainName()>>>>>>>>>" + (org.egov.infr...
public java.util.Map<java.lang.String, java.lang.Object> cityDataAsMap() { java.util.Map<java.lang.String, java.lang.Object> cityPrefs = cityPrefCache.entries(cityPrefCacheKey()); if (cityPrefs.isEmpty()) { cityPrefCache.putAll(cityPrefCacheKey(), getCityByURL(org.egov.infra.config.core.ApplicationThrea...
public void createsJoinForOptionalAssociation() { javax.persistence.criteria.CriteriaBuilder builder = em.getCriteriaBuilder(); javax.persistence.criteria.CriteriaQuery<org.springframework.data.jpa.domain.sample.User> query = builder.createQuery(org.springframework.data.jpa.domain.sample.User.class); javax....
public void createsJoinForOptionalAssociation() { javax.persistence.criteria.CriteriaBuilder builder = em.getCriteriaBuilder(); javax.persistence.criteria.CriteriaQuery<org.springframework.data.jpa.domain.sample.User> query = builder.createQuery(org.springframework.data.jpa.domain.sample.User.class); javax....
private void newAnonymousUser(com.argo.sdk.protobuf.PAppSession.Builder builder) { builder.setUserId(0); builder.setUserName(com.argo.sdk.core.AppSessionAbstractImpl.GUEST); builder.setUserKind(0); builder.setRealName(com.argo.sdk.core.AppSessionAbstractImpl.GUEST); builder.setProfileImageUrl(""); ...
private void newAnonymousUser(com.argo.sdk.protobuf.PAppSession.Builder builder) { builder.setUserId(0); builder.setUserName(com.argo.sdk.core.AppSessionAbstractImpl.GUEST); builder.setUserKind(0); builder.setRealName(com.argo.sdk.core.AppSessionAbstractImpl.GUEST); builder.setProfileImageUrl(""); ...
private static void createBodies(java.lang.Iterable<com.smokebox.lib.utils.geom.Line> edges, com.badlogic.gdx.physics.box2d.World box2dWorld) { for (com.smokebox.lib.utils.geom.Line l : edges) { com.badlogic.gdx.physics.box2d.EdgeShape edgeShape = new com.badlogic.gdx.physics.box2d.EdgeShape(); edge...
private void createBodies(java.lang.Iterable<com.smokebox.lib.utils.geom.Line> edges) { for (com.smokebox.lib.utils.geom.Line l : edges) { com.badlogic.gdx.physics.box2d.EdgeShape edgeShape = new com.badlogic.gdx.physics.box2d.EdgeShape(); edgeShape.set(l.x, l.y, l.x2, l.y2); com.badlogic.gd...
private void resetTextColor() { if ((textColorStateList) == null) { textColorStateList = new android.content.res.ColorStateList(new int[][]{ new int[]{ android.R.attr.state_enabled } , EMPTY_STATE_SET }, new int[]{ ((baseColor) & 16777215) | -553648128 , ((baseColor) & 16777215) | 1140850688 }); set...
private void resetTextColor() { if ((textColorStateList) == null) { textColorStateList = new android.content.res.ColorStateList(new int[][]{ new int[]{ android.R.attr.state_enabled } , EMPTY_STATE_SET }, new int[]{ ((baseColor) & 16777215) | -553648128 , ((baseColor) & 16777215) | 1140850688 }); set...
public void addFeatures(java.util.Set<de.tudarmstadt.ukp.dkpro.tc.api.features.Feature> features) { java.util.List<de.tudarmstadt.ukp.dkpro.tc.api.features.Feature> featTmp = new java.util.ArrayList<de.tudarmstadt.ukp.dkpro.tc.api.features.Feature>(); for (de.tudarmstadt.ukp.dkpro.tc.api.features.Feature f : fe...
public void addFeatures(java.util.Set<de.tudarmstadt.ukp.dkpro.tc.api.features.Feature> features) { java.util.List<de.tudarmstadt.ukp.dkpro.tc.api.features.Feature> featTmp = new java.util.ArrayList<de.tudarmstadt.ukp.dkpro.tc.api.features.Feature>(); for (de.tudarmstadt.ukp.dkpro.tc.api.features.Feature f : th...
public com.pm.server.response.PacdotCountResponse getPacdotCount(javax.servlet.http.HttpServletResponse response) { com.pm.server.controller.PacdotController.log.debug("Mapped GET /pacdots/count"); com.pm.server.response.PacdotCountResponse countResponse = new com.pm.server.response.PacdotCountResponse(); j...
public com.pm.server.response.PacdotCountResponse getPacdotCount(javax.servlet.http.HttpServletResponse response) { com.pm.server.controller.PacdotController.log.info("Mapped GET /pacdots/count"); com.pm.server.response.PacdotCountResponse countResponse = new com.pm.server.response.PacdotCountResponse(); ja...
public void onBackPressed() { com.seafile.seadroid2.account.Account account = accountManager.getCurrentAccount(); if (account == null) { com.seafile.seadroid2.ui.activity.Intent i = new com.seafile.seadroid2.ui.activity.Intent(this, com.seafile.seadroid2.ui.activity.BrowserActivity.class); i.set...
public void onBackPressed() { com.seafile.seadroid2.account.Account account = accountManager.getCurrentAccount(); if (account != null) { android.content.Intent i = new android.content.Intent(this, com.seafile.seadroid2.ui.activity.BrowserActivity.class); i.setFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP...
public java.lang.String insertValuesIntoString(java.lang.String statement, java.lang.String[] values) { for (int i = 0; i < (values.length); i++) { statement = statement.replaceFirst("[?]", values[i]); } java.lang.System.out.println(statement); return statement; }
public java.lang.String insertValuesIntoString(java.lang.String statement, java.lang.String[] values) { for (int i = 0; i < (values.length); i++) { statement = statement.replaceFirst("[?]", values[i]); } return statement; }
public void AddBuilding(Pieces b) { if (this.HasTroubleMaker()) { java.lang.System.out.println("This area has a trouble marker, you cannot build a building"); }else if ((this.GetMinionCount(b.GetPieceColor())) > 0) { if (this.IsBuilt) { java.lang.System.out.println("E...
public boolean AddBuilding(Pieces b) { if (this.HasTroubleMaker()) { java.lang.System.out.println("This area has a trouble marker, you cannot build a building"); return false; }else if ((this.GetMinionCount(b.GetPieceColor())) > 0) { if (this.IsBuilt) { java.l...
public void setInitValue(java.util.List<java.lang.Object> list) { java.lang.Object obj2; if ((collectionType) == null) obj2 = list.get(0); else { obj2 = collectionType.fromList(list, getItemClass()); } this.initValue = obj2; }
public void setInitValue(java.util.List<java.lang.Object> list) { java.lang.Object obj2; if ((collectionType) == null) { if (!(list.isEmpty())) obj2 = list.get(0); else obj2 = null; }else { obj2 = collectionType.fromList(list, getItemClass()); } ...
public static dev.xesam.android.kit.util.PackageUtils.Version getVersion(android.content.Context context) { dev.xesam.android.kit.util.PackageUtils.Version version = new dev.xesam.android.kit.util.PackageUtils.Version(); try { android.content.pm.PackageManager pm = context.getPackageManager(); a...
public static dev.xesam.android.kit.util.PackageUtils.Version getVersion(android.content.Context context) { dev.xesam.android.kit.util.PackageUtils.Version version = new dev.xesam.android.kit.util.PackageUtils.Version(); try { android.content.pm.PackageManager pm = context.getPackageManager(); a...
public void processInput() { java.lang.String[] items = super.parseItems(); for (java.lang.String item : items) { java.util.List<java.lang.String> fields = processItem(item); leczner.jon.HurtLocker.Grocery grocery = leczner.jon.HurtLocker.Grocery.groceryFactory(fields); groceryList.add(g...
public void processInput() { java.lang.String[] items = super.parseItems(); for (java.lang.String item : items) { java.util.List<java.lang.String> fields = processItem(item); leczner.jon.HurtLocker.Grocery grocery = leczner.jon.HurtLocker.Grocery.groceryFactory(fields); if (grocery != nu...
public void onAuthStateChanged(@android.support.annotation.NonNull com.google.firebase.auth.FirebaseAuth firebaseAuth) { com.google.firebase.auth.FirebaseUser user = mAuth.getCurrentUser(); if (user != null) { getSupportActionBar().setTitle((("Welcome, " + (RegisterActivity.firstName)) + "!")); ...
public void onAuthStateChanged(@android.support.annotation.NonNull com.google.firebase.auth.FirebaseAuth firebaseAuth) { com.google.firebase.auth.FirebaseUser user = mAuth.getCurrentUser(); if (user != null) { getSupportActionBar().setTitle((("Welcome, " + (user.getDisplayName())) + "!")); if ((...
public static double SpendBudgetBid(double currentBid, double dailyNeeds, double unitBudget) { double bid = 0; double deficit = dailyNeeds; double budget = unitBudget * deficit; if (deficit > 0) { if (deficit < (budget / currentBid)) { bid = deficit; }else { bid =...
public static double SpendBudgetBid(double currentBid, double dailyNeeds, double budget) { double bid = 0; double deficit = dailyNeeds; if (deficit > 0) { if (deficit < (budget / currentBid)) { bid = deficit; }else { bid = budget / currentBid; } } retu...
public void updateUserBalance(java.lang.Integer userID, java.lang.Integer balance) { main.unsolidwinner.model.User user = em.find(main.unsolidwinner.model.User.class, userID); em.getTransaction().begin(); user.setBalance(balance); em.getTransaction().commit(); }
public void updateUserBalance(java.lang.Integer userID, java.lang.Double balance) { main.unsolidwinner.model.User user = em.find(main.unsolidwinner.model.User.class, userID); em.getTransaction().begin(); user.setBalance(balance); em.getTransaction().commit(); }
public void onPageSelected(int position) { java.lang.String title = ""; switch (position) { case 0 : reli.reliapp.co.il.reli.main.HomeFragment.runningMy = true; reli.reliapp.co.il.reli.main.HomeFragment.runningAll = false; title = getString(R.string.middle_tab); ...
public void onPageSelected(int position) { java.lang.String title = ""; switch (position) { case 0 : title = getString(R.string.middle_tab); break; case 1 : title = getString(R.string.right_tab); break; } ((reli.reliapp.co.il.reli.custom.Cu...
private void setAttribute(java.lang.reflect.Field field, java.lang.Object o, java.lang.Object value) { if (field != null) { try { field.setAccessible(true); field.set(o, value); } catch (java.lang.Throwable e) { com.arangodb.impl.AnnotationHandler.logger.error(("c...
private void setAttribute(java.lang.reflect.Field field, java.lang.Object o, java.lang.Object value) { if (field != null) { try { field.setAccessible(true); field.set(o, value); } catch (java.lang.Exception e) { com.arangodb.impl.AnnotationHandler.logger.error(("c...
private static boolean store(final android.content.Context context, final java.lang.String key, final java.lang.String value) { final android.content.SharedPreferences.Editor editor = context.getSharedPreferences("settings", Context.MODE_PRIVATE).edit(); editor.putString(key, android.util.Base64.encodeToString(...
private static void store(final android.content.Context context, final java.lang.String key, final java.lang.String value) { final android.content.SharedPreferences.Editor editor = context.getSharedPreferences("settings", Context.MODE_PRIVATE).edit(); editor.putString(key, android.util.Base64.encodeToString(val...
protected java.awt.image.BufferedImage convolve(java.awt.image.BufferedImage img, float[] kernel, int filterWidth, int filterHeight) { java.awt.image.BufferedImage result = new java.awt.image.BufferedImage(img.getWidth(), img.getHeight(), img.getType()); java.awt.image.Kernel k = createKernel(kernel, filterWidt...
private java.awt.image.BufferedImage convolve(java.awt.image.BufferedImage img, float[] kernel, int filterWidth, int filterHeight) { java.awt.image.BufferedImage result = new java.awt.image.BufferedImage(img.getWidth(), img.getHeight(), img.getType()); java.awt.image.Kernel k = createKernel(kernel, filterWidth,...
public java.util.List<swqm.examples.payment.PaymentMethod> getAcceptedMethods(swqm.examples.payment.Address address, int amount, java.util.Currency currency) throws java.lang.IllegalArgumentException { int eurAmount = amount; if (!(currency.equals(swqm.examples.payment.fx.PaymentMethodServiceFxImpl.EUR))) { ...
public java.util.List<swqm.examples.payment.PaymentMethod> getAcceptedMethods(swqm.examples.payment.Address address, int amount, java.util.Currency currency) throws java.lang.IllegalArgumentException { int eurAmount = amount; if (!(currency.equals(swqm.examples.payment.fx.PaymentMethodServiceFxImpl.EUR))) { ...
public void setInitModel(org.springframework.ui.Model model, java.lang.String email) { model.addAttribute("user", userDao.getByEmail(email)); java.util.List<candrun.model.GoalRelation> goalRelations = goalService.getGoalRelations(email); model.addAttribute("goalRelations", goalRelations); model.addAttri...
public void setInitModel(org.springframework.ui.Model model, java.lang.String email) { model.addAttribute("user", userDao.getByEmail(email)); java.util.List<candrun.model.GoalRelation> goalRelations = goalService.getGoalRelations(email); model.addAttribute("goalRelations", goalRelations); if (goalRelati...
public void mouseClicked(java.awt.event.MouseEvent evt) { javax.swing.JList list = ((javax.swing.JList) (evt.getSource())); if ((evt.getClickCount()) == 2) { opdracht1d.Models.Reservering res = ((opdracht1d.Models.Reservering) (list.getSelectedValue())); try { InitUI(res); } ...
public void mouseClicked(java.awt.event.MouseEvent evt) { javax.swing.JList list = ((javax.swing.JList) (evt.getSource())); if ((evt.getClickCount()) == 2) { res = ((opdracht1d.Models.Reservering) (list.getSelectedValue())); try { InitUI(res); } catch (java.lang.Exception e) ...
public void onMessage(org.ikasan.component.endpoint.jms.consumer.Message message) { if ((this.eventListener) == null) { throw new java.lang.RuntimeException("No active eventListeners registered!"); } try { org.ikasan.spec.flow.FlowEvent<?, ?> flowEvent = flowEventFactory.newEvent(this.manage...
public void onMessage(org.ikasan.component.endpoint.jms.consumer.Message message) { if ((this.eventListener) == null) { throw new java.lang.RuntimeException("No active eventListeners registered!"); } org.ikasan.spec.flow.FlowEvent<?, ?> flowEvent = flowEventFactory.newEvent(this.managedEventIdentifi...
protected void map(org.apache.hadoop.io.LongWritable key, org.apache.hadoop.io.Text value, org.apache.hadoop.mapreduce.Mapper.Context context) throws java.io.IOException, java.lang.InterruptedException { java.lang.String[] split = value.toString().split("\t"); k.set(split[0]); v.set(java.lang.Integer.parseI...
protected void map(org.apache.hadoop.io.LongWritable key, org.apache.hadoop.io.Text value, org.apache.hadoop.mapreduce.Mapper.Context context) throws java.io.IOException, java.lang.InterruptedException { java.lang.String[] split = value.toString().split("\t"); k.set(split[0]); v.set(java.lang.Integer.parseI...
public long getWorkingTime() throws Tree2.src.Exceptions.BusyTaskException { checkBusy(); long time = 0; if ((usingDate) != null) { for (java.util.Date[] d : usingDate) { time += (d[1].getTime()) - (d[0].getTime()); } } return time; }
public long getWorkingTime() throws Tree2.src.Exceptions.BusyTaskException { checkBusy(); long time = 0; if ((usingDate) != null) { for (java.util.Date[] d : usingDate) { if ((d[1]) != null) time += (d[1].getTime()) - (d[0].getTime()); } } ret...
protected void setup() throws ioio.lib.api.exception.ConnectionLostException { led_ = ioio_.openDigitalOutput(IOIO.LED_PIN, true); uart_1 = ioio_.openUart(new ioio.lib.api.DigitalInput.Spec(ioio.lib.api.IOIO.INVALID_PIN, DigitalInput.Spec.Mode.FLOATING), new ioio.lib.api.DigitalOutput.Spec(my.subject.HelloIOIOu...
protected void setup() throws ioio.lib.api.exception.ConnectionLostException { led_ = ioio_.openDigitalOutput(IOIO.LED_PIN, true); uart_1 = ioio_.openUart(null, new ioio.lib.api.DigitalOutput.Spec(my.subject.HelloIOIOuart.HelloIOIOuartActivity.IOIOThread.PIN_TX, DigitalOutput.Spec.Mode.OPEN_DRAIN), 31250, Uart....
public float sumConsuptionAbove() { float sum = 0.0F; float mid = midConsumptionValue(); for (by.tarif.web.databuffer.Register register : list) { if ((register.getConsumption()) >= mid) { sum += register.getConsumption(); } } return sum; }
public float sumConsuptionAbove() { float sum = 0.0F; float mid = midConsumptionValue(); for (by.tarif.web.databuffer.Register register : this.list) { if ((register.getConsumption()) >= mid) { sum += register.getConsumption(); } } return sum; }
public static <T> T getFeatureResult(java.lang.String result, java.lang.String feature) throws java.lang.IllegalAccessException, java.lang.InstantiationException { com.first.wuapi.domain.Parsable element = null; java.lang.Class<? extends com.first.wuapi.domain.WUElement> clazz = com.first.wuapi.domain.Feature.v...
public static <T> T getFeatureResult(java.lang.String result, java.lang.String feature) throws java.lang.IllegalAccessException, java.lang.InstantiationException { com.first.wuapi.domain.Parsable element = null; java.lang.Class<? extends com.first.wuapi.domain.WUElement> clazz = com.first.wuapi.domain.Feature.v...
public static void iphonePush(java.lang.String content, java.lang.String token, java.lang.String certificate, java.lang.String sid) { java.lang.System.out.println(certificate); edu.ut.softlab.rate.ApnsService service = edu.ut.softlab.rate.APNS.newService().withCert(certificate, edu.ut.softlab.rate.Utility.accou...
public static void iphonePush(java.lang.String content, java.lang.String token, java.lang.String certificate, java.lang.String sid) { edu.ut.softlab.rate.ApnsService service = edu.ut.softlab.rate.APNS.newService().withCert(certificate, edu.ut.softlab.rate.Utility.account_information.getProperty("PUSH_PWD")).withSan...
private android.app.Dialog D_introInfo() { android.content.res.Resources r = getResources(); android.app.AlertDialog.Builder builder = new android.app.AlertDialog.Builder(this); builder.setTitle(r.getString(R.string.D_introInfo_title)).setMessage(r.getString(R.string.D_introInfo)).setPositiveButton(R.string...
private android.app.Dialog D_introInfo() { android.content.res.Resources r = getResources(); android.app.AlertDialog.Builder builder = new android.app.AlertDialog.Builder(this); builder.setTitle(r.getString(R.string.D_introInfo_title)).setMessage(r.getString(R.string.D_introInfo)).setPositiveButton(R.string...
public boolean dispatchKeyEvent(android.view.KeyEvent e) { if (((e.getKeyCode()) == (android.view.KeyEvent.KEYCODE_BACK)) && ((getVisibility()) == (android.view.View.VISIBLE))) { hideCircularly(((android.app.Activity) (getContext()))); return true; } return super.dispatchKeyEvent(e); }
public boolean dispatchKeyEvent(android.view.KeyEvent e) { if (((e.getKeyCode()) == (android.view.KeyEvent.KEYCODE_BACK)) && ((getVisibility()) == (android.view.View.VISIBLE))) { hideCircularly(((android.app.Activity) (getContext()))); return false; } return super.dispatchKeyEvent(e); }
public static boolean processNameIncomePair(java.lang.String name, int income) { if (com.tangzhixiong.zjbrohw.Person.persons.containsKey(name)) { com.tangzhixiong.zjbrohw.Person.persons.get(name).changeIncome(income); return false; }else { com.tangzhixiong.zjbrohw.Person p = new com.tang...
public static boolean processNameIncomePair(java.lang.String name, int income) { com.tangzhixiong.zjbrohw.Person p = new com.tangzhixiong.zjbrohw.Person(name, income); com.tangzhixiong.zjbrohw.Person.personsList.add(p); if (com.tangzhixiong.zjbrohw.Person.persons.containsKey(name)) { com.tangzhixion...
protected void setupListViewListener(android.widget.ListView lvItems) { lvItems.setAdapter(new android.widget.ArrayAdapter(this, android.R.layout.simple_list_item_1, com.nineworldsdeep.gauntlet.hive.HiveLobeType.values())); lvItems.setOnItemClickListener(new android.widget.AdapterView.OnItemClickListener() { ...
protected void setupListViewListener(android.widget.ListView lvItems) { lvItems.setAdapter(new android.widget.ArrayAdapter(this, android.R.layout.simple_list_item_1, cmds)); lvItems.setOnItemClickListener(new android.widget.AdapterView.OnItemClickListener() { @java.lang.Override public void onIt...
public void actionPerformed(java.awt.event.ActionEvent e) { if (isEmpty(number)) { buttons.get(number).setIcon(iconX); weightField[((number) % 3)][((number) / 3)] = -1; if (!(isWin(X))) { turnAI(); }else { trueWinner(X); } } }
public void actionPerformed(java.awt.event.ActionEvent e) { if (isEmpty(number)) { buttons.get(number).setIcon(iconX); weightField[((number) % 3)][((number) / 3)] = X; if (!(isWin(X))) { turnAI(); }else { trueWinner(X); } } }
private java.nio.ByteBuffer[] toBuffers(byte[][] bytes) { java.nio.ByteBuffer[] buffers = new java.nio.ByteBuffer[bytes.length]; for (int i = 0; i < (buffers.length); i++) { buffers[i] = java.nio.ByteBuffer.allocateDirect(org.apache.hadoop.io.ec.rawcoder.TestXorRawEncoder.CHUNK_SIZE); buffers[i]...
private java.nio.ByteBuffer[] toBuffers(byte[][] bytes) { java.nio.ByteBuffer[] buffers = new java.nio.ByteBuffer[bytes.length]; for (int i = 0; i < (buffers.length); i++) { buffers[i] = java.nio.ByteBuffer.allocateDirect(bytes[i].length); buffers[i].put(bytes[i]); buffers[i].flip(); ...
public void find(java.lang.String objtosearch, java.lang.String atr2) { if (objtosearch != null) { if (atr2.equals(null)) { new commandline.controller.helperUtilies.MyFileSearch(objtosearch, currentLocation.getAbsolutePath()); }else { if ((locationController(atr2)) != null) {...
public void find(java.lang.String objtosearch, java.lang.String atr2) { if (objtosearch != null) { if (atr2 == null) { new commandline.controller.helperUtilies.MyFileSearch(objtosearch, currentLocation.getAbsolutePath()); }else { if ((locationController(atr2)) != null) { ...
public void populateSpinner() { android.widget.Spinner spinner = ((android.widget.Spinner) (findViewById(R.id.date_spinner))); android.widget.ArrayAdapter<java.lang.CharSequence> adapter = android.widget.ArrayAdapter.createFromResource(getApplicationContext(), R.array.within_last_days_array, android.R.layout.si...
public void populateSpinner() { android.widget.ArrayAdapter<java.lang.CharSequence> adapter = android.widget.ArrayAdapter.createFromResource(getApplicationContext(), R.array.within_last_days_array, android.R.layout.simple_spinner_dropdown_item); adapter.setDropDownViewResource(android.R.layout.simple_spinner_dr...
private double handleOp(com.rymader.calculator.Operator op) { double display = 0; reset = false; if (onLeft) { onLeft = false; operator = op; display = numLeft; }else { display = calculate(numLeft, numRight, operator); numLeft = display; operator = op; ...
private double handleOp(com.rymader.calculator.Operator op) { double display; reset = false; if (onLeft) { onLeft = false; operator = op; display = numLeft; }else { display = calculate(numLeft, numRight, operator); numLeft = display; operator = op; } ...
public static boolean validateRole(java.lang.String role) throws dto.Validator.InputException { for (int i = 0; i < (dto.Validator.validRoles.length); i++) { if (!(role.equals(dto.Validator.validRoles[i]))) { throw new dto.Validator.InputException("This is not a valid role."); } } ...
public static boolean validateRole(java.lang.String role) throws dto.Validator.InputException { for (int i = 0; i < (dto.Validator.validRoles.length); i++) { if (role.equals(dto.Validator.validRoles[i])) { return true; } } throw new dto.Validator.InputException("This is not a val...
public static boolean safeSetBlock(net.minecraft.world.World world, int x, int y, int z, net.minecraft.block.Block block) { net.minecraft.block.Block blockToReplace = world.getBlock(x, y, z); if ((blockToReplace.getBlockHardness(world, x, y, z)) > 0.0F) return world.setBlock(x, y, z, block); re...
public static boolean safeSetBlock(net.minecraft.world.World world, int x, int y, int z, net.minecraft.block.Block block) { net.minecraft.block.Block blockToReplace = world.getBlock(x, y, z); if ((blockToReplace.getBlockHardness(world, x, y, z)) >= 0.0F) return world.setBlock(x, y, z, block); r...
public void notifyClusterUpdate(final java.lang.String dcName, final java.lang.String clusterName) { fixedThreadPool.submit(new com.ctrip.xpipe.redis.console.service.notifier.MetaNotifyTask("notifyClusterUpdate", config.getConsoleNotifyRetryTimes(), new com.ctrip.xpipe.redis.console.service.notifier.MetaNotifyRetry...
public void notifyClusterUpdate(final java.lang.String dcName, final java.lang.String clusterName) { fixedThreadPool.submit(new com.ctrip.xpipe.redis.console.service.notifier.MetaNotifyTask<java.lang.Void>("notifyClusterUpdate", config.getConsoleNotifyRetryTimes(), new com.ctrip.xpipe.redis.console.service.notifier...
public void onManagerConnected(int status) { switch (status) { case org.opencv.android.LoaderCallbackInterface.SUCCESS : android.util.Log.i(com.rayboot.scanner.ScanCorpActivity.TAG, "OpenCV loaded successfully"); java.io.File file = new java.io.File(mContentImagePath); if...
public void onManagerConnected() { android.util.Log.i(com.rayboot.scanner.ScanCorpActivity.TAG, "OpenCV loaded successfully"); java.io.File file = new java.io.File(mContentImagePath); if (file.exists()) { mOpenCVManager.findBrim(mContentImagePath); showProgressDialog(getString(R.string.scan_...
public void changeProtocol_OfNode1ToD1R1OnInstant3WhileSimulatingNetwork3ForDestination0_MessageCountIs16() throws java.lang.Exception { addons.eventhandlers.MessageAndDetectionCountHandler handler = new addons.eventhandlers.MessageAndDetectionCountHandler(); handler.register(engine.getEventGenerator()); ad...
public void changeProtocol_OfNode1ToD1R1OnInstant3WhileSimulatingNetwork3ForDestination0_MessageCountIs16() throws java.lang.Exception { addons.eventhandlers.MessageAndDetectionCountHandler handler = new addons.eventhandlers.MessageAndDetectionCountHandler(); handler.register(engine.getEventGenerator()); si...
public java.util.List<eventplannerPD.Event> getEvents(@javax.ws.rs.DefaultValue(value = "0") @javax.ws.rs.QueryParam(value = "page") java.lang.String page, @javax.ws.rs.DefaultValue(value = "10") @javax.ws.rs.QueryParam(value = "per_page") java.lang.String perPage) { java.util.List<eventplannerPD.Event> events = ev...
public java.util.List<eventplannerPD.Event> getEvents(@javax.ws.rs.DefaultValue(value = "0") @javax.ws.rs.QueryParam(value = "page") java.lang.String page, @javax.ws.rs.DefaultValue(value = "10") @javax.ws.rs.QueryParam(value = "per_page") java.lang.String perPage) { java.util.List<eventplannerPD.Event> events = ev...
public void draw(org.reactome.web.diagram.util.AdvancedContext2d ctx, org.reactome.web.diagram.data.layout.DiagramObject item, java.lang.Double factor, org.reactome.web.diagram.data.layout.Coordinate offset) { if (!(isVisible(item))) return ; super.draw(ctx, item, factor, offset); org.reactome....
public void draw(org.reactome.web.diagram.util.AdvancedContext2d ctx, org.reactome.web.diagram.data.layout.DiagramObject item, java.lang.Double factor, org.reactome.web.diagram.data.layout.Coordinate offset) { if (!(isVisible(item))) return ; super.draw(ctx, item, factor, offset); org.reactome....
public boolean exists(java.lang.Integer customerID) { java.util.ArrayList<com.netbuilder.entities.Customer> customer = dummyData.getEntityList(new com.netbuilder.entities.Customer()); for (int i = 0; i < (customer.size()); i++) { if ((customer.get(i).getCustomerID()) == customerID) { return ...
public boolean exists(java.lang.Integer customerID) { java.util.ArrayList<com.netbuilder.entities.Customer> customer = dummyData.getEntityList(new com.netbuilder.entities.Customer()); for (int i = 0; i < (customer.size()); i++) { if ((customer.get(i).getCustomerID()) == customerID) { return ...
public void onFinishInflateImpl(@android.support.annotation.NonNull V v) { if (v.isButtery()) butterknife.ButterKnife.bind(v); allowScreenViewCalls = true; v.onInflate(); allowScreenViewCalls = false; VP presenter = getPresenter(v); if (presenter != null) presenter.onFinishI...
public void onFinishInflateImpl(@android.support.annotation.NonNull V v) { VP presenter = getPresenter(v, true); if (v.isButtery()) butterknife.ButterKnife.bind(v); allowScreenViewCalls = true; v.onInflate(); allowScreenViewCalls = false; if (presenter != null) presenter.onF...
public twitter4j.IDs getFollowersIDs(java.lang.String arg0, long arg1, int arg2) throws twitter4j.TwitterException { if ((limits[2]) == 14) { SocialNetworkAnalysis.TwitterWrapper.timelimited[0] = new java.util.Date(); limit.reached(); limits[2] = 0; } java.lang.System.out.println("li...
public twitter4j.IDs getFollowersIDs(java.lang.String arg0, long arg1, int arg2) throws twitter4j.TwitterException { if ((limits[2]) == 14) { SocialNetworkAnalysis.TwitterWrapper.timelimited[0] = new java.util.Date(); limit.reached(); limits[2] = 0; } java.lang.System.out.print("limi...
private void rewind(javafx.event.Event event) { if (((pos) > 0) && (((player().position()) == 0) || (((java.lang.System.currentTimeMillis()) - (lastRewind)) < (skipbackTimeout)))) { player().pause(); (pos)--; configurePlayer(); } lastRewind = java.lang.System.currentTimeMillis(); ...
private void rewind(javafx.event.Event event) { if (((pos) > 0) && (((player().position()) == 0) || (((java.lang.System.currentTimeMillis()) - (lastRewind)) < (skipbackTimeout)))) { player().pause(); configurePlayer(((pos) - 1)); } lastRewind = java.lang.System.currentTimeMillis(); playe...
private void updateInstruction() { if ((Build.VERSION.SDK_INT) >= (Build.VERSION_CODES.N)) { instruction.setText(android.text.Html.fromHtml(mRoute.steps.get(mStep).htmlInstruction, Html.FROM_HTML_MODE_LEGACY)); }else { instruction.setText(android.text.Html.fromHtml(mRoute.steps.get(mStep).htmlIn...
private void updateInstruction(java.lang.String text) { if ((Build.VERSION.SDK_INT) >= (Build.VERSION_CODES.N)) { instruction.setText(android.text.Html.fromHtml(text, Html.FROM_HTML_MODE_LEGACY)); }else { instruction.setText(android.text.Html.fromHtml(text)); } }
public com.taskerlite.taskLogic.mAction getActionObject() { if ((actionObject) == null) { java.lang.Class deserializationClass = null; switch (actionType) { case TIMER : deserializationClass = com.taskerlite.taskLogic.aTimer.class; break; case ...
public com.taskerlite.taskLogic.mAction getActionObject() { if ((actionObject) == null) { switch (actionType) { case TIMER : actionObject = new com.google.gson.GsonBuilder().create().fromJson(actionINStr, com.taskerlite.taskLogic.aTimer.class); break; ...
public void onReceivedHttpError(android.webkit.WebView view, android.webkit.WebResourceRequest request, android.webkit.WebResourceResponse errorResponse) { android.util.Log.d(com.mobideck.appdeck.SmartWebViewChrome.TAG, ((("HTTP Error:" + (errorResponse.getStatusCode())) + ":") + (errorResponse.getReasonPhrase())))...
public void onReceivedHttpError(android.webkit.WebView view, android.webkit.WebResourceRequest request, android.webkit.WebResourceResponse errorResponse) { android.util.Log.d(com.mobideck.appdeck.SmartWebViewChrome.TAG, ((("HTTP Error:" + (errorResponse.getStatusCode())) + ":") + (errorResponse.getReasonPhrase())))...
public void onReceive(android.content.Context context, android.content.Intent intent) { mIsPlaying = true; byte[] imageData = android.util.Base64.decode(mCurrentRadioStation.getIcon(), Base64.DEFAULT); mPlayerSelectedIcon.setImageBitmap(android.graphics.BitmapFactory.decodeByteArray(imageData, 0, imageData....
public void onReceive(android.content.Context context, android.content.Intent intent) { if ((mCurrentRadioStation) != null) { mIsPlaying = true; byte[] imageData = android.util.Base64.decode(mCurrentRadioStation.getIcon(), Base64.DEFAULT); mPlayerSelectedIcon.setImageBitmap(android.graphics....
public java.util.ArrayList<resources.InputParameter> convertStringToInputParameter(java.util.ArrayList<java.lang.String> source) { java.util.ArrayList<resources.InputParameter> array = new java.util.ArrayList<resources.InputParameter>(); if (source != null) { for (java.lang.String s : source) { ...
public java.util.ArrayList<resources.InputParameter> convertStringToInputParameter(java.lang.String[] source) { java.util.ArrayList<resources.InputParameter> array = new java.util.ArrayList<resources.InputParameter>(); if (source != null) { for (java.lang.String s : source) { java.lang.Syste...
private static double calculation(char operationID, double left, double right) { switch (operationID) { case '+' : return left + right; case '−' : return left - right; case '×' : return left * right; case '÷' : return left / right; ...
private static double calculation(char operationID, double right, double left) { switch (operationID) { case '+' : return left + right; case '−' : return left - right; case '×' : return left * right; case '÷' : return left / right; ...