buggy_function
stringlengths
1
391k
fixed_function
stringlengths
0
392k
private void addToList(java.nio.file.Path p) { java.nio.file.PathMatcher matcher = java.nio.file.FileSystems.getDefault().getPathMatcher("glob:**.{BIN,TXT,JPG}"); if (matcher.matches(p)) { if (!(filePaths.contains(p))) { filePaths.add(p.getFileName()); } java.lang.System.out....
private void addToList(java.nio.file.Path p) { java.nio.file.PathMatcher matcher = java.nio.file.FileSystems.getDefault().getPathMatcher("glob:**.{BIN,TXT,JPG}"); if ((matcher.matches(p)) && (!(filePaths.contains(p)))) { filePaths.add(p.getFileName()); } }
public void updateWeather() { android.net.ConnectivityManager manager = ((android.net.ConnectivityManager) (getActivity().getSystemService(Context.CONNECTIVITY_SERVICE))); android.net.NetworkInfo networkInfo = manager.getActiveNetworkInfo(); if ((networkInfo != null) && (networkInfo.isConnected())) { ...
public void updateWeather() { android.net.ConnectivityManager manager = ((android.net.ConnectivityManager) (getActivity().getSystemService(Context.CONNECTIVITY_SERVICE))); android.net.NetworkInfo networkInfo = manager.getActiveNetworkInfo(); if ((networkInfo != null) && (networkInfo.isConnected())) { ...
private void addCity() { try { com.google.android.gms.location.places.AutocompleteFilter typeFilter = new com.google.android.gms.location.places.AutocompleteFilter.Builder().setTypeFilter(AutocompleteFilter.TYPE_FILTER_CITIES).build(); android.content.Intent intent = new com.google.android.gms.locat...
private void addCity() { try { com.google.android.gms.location.places.AutocompleteFilter typeFilter = new com.google.android.gms.location.places.AutocompleteFilter.Builder().setTypeFilter(AutocompleteFilter.TYPE_FILTER_CITIES).build(); android.content.Intent intent = new com.google.android.gms.locat...
public void run() { if (!(view.isComputingLayout())) { if (preCount == 0) { notifyItemRangeInserted(0, postCount); }else { view.swapAdapter(this, true); view.scrollBy(0, 0); } }else { view.postDelayed(new java.lang.Runnable() { @jav...
public void run() { if (!(view.isComputingLayout())) { if (preCount == 0) { notifyItemRangeInserted(0, postCount); }else { view.swapAdapter(this, true); } }else { view.postDelayed(new java.lang.Runnable() { @java.lang.Override publi...
public java.lang.String getImageUrlOrPath(android.content.Context context) { java.io.File localFile = com.medo.pravoslavenkalendar.utils.FileUtils.getOutputPictureFile(context, dayOfYear, false); if (localFile.exists()) { return "file:" + (localFile.getAbsolutePath()); }else { return ((com.m...
public java.lang.String getImageUrlOrPath(android.content.Context context) { java.io.File localFile = com.medo.pravoslavenkalendar.utils.FileUtils.getOutputPictureFile(context, dayOfYear, false); if ((localFile != null) && (localFile.exists())) { return "file:" + (localFile.getAbsolutePath()); }else...
public void run() { java.lang.String msg = ""; com.sn.work.output.TopTenBst.log.info((("calculating top 10 bst:" + (com.sn.work.output.TopTenBst.evs.getBst10())) + " for opt 1")); com.sn.work.output.TopTenBst.res = com.sn.work.output.TopTenBst.evs.getBst10(); com.sn.work.output.TopTenBst.log.info(("retu...
public void run() { java.lang.String msg = ""; com.sn.work.output.TopTenBst.log.info((("calculating top 10 bst:" + (com.sn.work.output.TopTenBst.res)) + " for opt 1")); com.sn.work.output.TopTenBst.res = com.sn.work.output.TopTenBst.evs.getBst10(); com.sn.work.output.TopTenBst.log.info(("return best top...
protected void onPause() { super.onPause(); if ((isLoggedIn) && (locationUpdater.isRunning())) { locationUpdater.stop(); } locationManager.removeUpdates(this); android.support.v4.content.LocalBroadcastManager.getInstance(this).unregisterReceiver(loginStatusReceiver); android.support.v4.c...
protected void onPause() { super.onPause(); locationManager.removeUpdates(this); android.support.v4.content.LocalBroadcastManager.getInstance(this).unregisterReceiver(loginStatusReceiver); android.support.v4.content.LocalBroadcastManager.getInstance(this).unregisterReceiver(popupMessageReceiver); an...
protected void applyFitCenter(@android.support.annotation.NonNull android.view.TextureView view, @android.support.annotation.NonNull android.graphics.Matrix transformMatrix) { float xScale = ((float) (view.getWidth())) / (intrinsicVideoSize.x); float yScale = ((float) (view.getHeight())) / (intrinsicVideoSize.y...
protected void applyFitCenter(@android.support.annotation.NonNull android.view.TextureView view, @android.support.annotation.NonNull android.graphics.Matrix transformMatrix) { float xScale = ((float) (view.getWidth())) / (intrinsicVideoSize.x); float yScale = ((float) (view.getHeight())) / (intrinsicVideoSize.y...
public void onAnimationEnd(android.animation.Animator animation) { setStatus(com.developer.paul.itimerecycleviewgroup.ITimeRecycleViewGroup.STOP); if ((onScroll) != null) { com.developer.paul.itimerecycleviewgroup.AwesomeViewGroup a = getFirstShownAwesomeViewGroup(awesomeViewGroupList); com.deve...
public void onAnimationEnd(android.animation.Animator animation) { setStatus(com.developer.paul.itimerecycleviewgroup.ITimeRecycleViewGroup.STOP); if ((onScroll) != null) { com.developer.paul.itimerecycleviewgroup.AwesomeViewGroup a = getFirstShownAwesomeViewGroup(awesomeViewGroupList); com.deve...
public void onReceiveNewSession(com.quickblox.videochat.webrtc.QBRTCSession session) { android.util.Log.d(com.quickblox.q_municate_core.qb.helpers.QBVideoChatHelper.CALL_INTEGRATION, "QBVideoChatHelper. RTCClient. onReceiveNewSession"); if ((getVideoChatHelperState()) != (com.quickblox.q_municate_core.qb.helper...
public void onReceiveNewSession(com.quickblox.videochat.webrtc.QBRTCSession session) { android.util.Log.d(com.quickblox.q_municate_core.qb.helpers.QBVideoChatHelper.CALL_INTEGRATION, "QBVideoChatHelper. RTCClient. onReceiveNewSession"); if ((getVideoChatHelperState()) != (com.quickblox.q_municate_core.qb.helper...
private void parseRule() { blossom.compiler.RuleParser rp = new blossom.compiler.RuleParser(); blossom.compiler.Rule rule = rp.parse(); position += rp.position; programme.addRule(rule.name, rule); rules.put(rule.name, rule); }
private void parseRule() { blossom.compiler.RuleParser rp = new blossom.compiler.RuleParser(text.substring(position)); blossom.compiler.Rule rule = rp.parse(); position += rp.position; programme.addRule(rule.name, rule); rules.put(rule.name, rule); }
private boolean areDoublesInListEqual(java.util.List<java.lang.Double> l) { boolean areDoublesEqual = true; for (java.lang.Double d : l) { for (java.lang.Double d2 : l) { if (!(d.equals(d2))) { areDoublesEqual = false; } } } return areDoublesEqual;...
public boolean areDoublesInListEqual(java.util.List<java.lang.Double> l) { boolean areDoublesEqual = true; for (java.lang.Double d : l) { for (java.lang.Double d2 : l) { if (!(d.equals(d2))) { areDoublesEqual = false; } } } return areDoublesEqual; ...
public void onClick(android.view.View view) { java.lang.String quantityText = quantity_input.getText().toString(); dbPopulator.getGroceriesListHandler().addGroceriesList(new yithian.cosacompro.db.dbclasses.GroceriesList(java.lang.Integer.parseInt(quantityText), defaultList, productIdSelected[0])); clearAddP...
public void onClick(android.view.View view) { java.lang.String quantityText = quantity_input.getText().toString(); dbPopulator.getGroceriesListHandler().addGroceriesList(new yithian.cosacompro.db.dbclasses.GroceriesList(java.lang.Integer.parseInt(quantityText), defaultList, productIdSelected)); clearAddProd...
public void onClick(android.view.View v) { mPager.setCurrentItem(2); ll2.setBackground(new android.graphics.drawable.ColorDrawable(android.graphics.Color.rgb(30, 136, 229))); imageButton2.setImageResource(R.drawable.ic_filter_drama_white_24dp); textButton2.setTextColor(Color.WHITE); ResetLayout(); ...
public void onClick(android.view.View v) { ResetLayout(); ResetLast(ll2, imageButton2, textButton2); mPager.setCurrentItem(2); ll2.setBackground(new android.graphics.drawable.ColorDrawable(android.graphics.Color.rgb(30, 136, 229))); imageButton2.setImageResource(R.drawable.ic_filter_drama_white_24dp...
public java.lang.String[] getClientNames() { Services.UserService userService = new Services.UserService(); java.util.ArrayList<Models.User> clients = userService.getClients(); java.util.ArrayList<java.lang.String> clientNames = new java.util.ArrayList<java.lang.String>(); for (Models.User client : clie...
public java.lang.String[] getClientNames() { Services.UserService userService = new Services.UserService(); java.util.ArrayList<Models.User> clients = userService.getClients(); java.util.ArrayList<java.lang.String> clientNames = new java.util.ArrayList<java.lang.String>(); for (Models.User client : clie...
public boolean onOptionsItemSelected(android.view.MenuItem item) { if (drawerToggle.onOptionsItemSelected(item)) { return true; } int id = item.getItemId(); switch (id) { case R.id.action_search : startActivity(new android.content.Intent(this, com.pea.jay.redditlists.userInte...
public boolean onOptionsItemSelected(android.view.MenuItem item) { if (drawerToggle.onOptionsItemSelected(item)) { return true; } int id = item.getItemId(); switch (id) { case R.id.action_search : android.util.Log.d(TAG, " Onclick searchview"); break; case...
public java.lang.String randomString(int length) { java.lang.StringBuilder sb = new java.lang.StringBuilder(); for (int i = 0; i < length; i++) { sb.append(((random.nextInt(('z' - '!'))) + '!')); } return sb.toString(); }
public java.lang.String randomString(int length) { java.lang.StringBuilder sb = new java.lang.StringBuilder(); for (int i = 0; i < length; i++) { sb.append(((char) ((random.nextInt(('z' - '!'))) + '!'))); } return sb.toString(); }
private void prepareApplicationThreadLocal(javax.servlet.http.HttpSession session, javax.servlet.http.HttpServletRequest request) { org.egov.infra.config.core.ApplicationThreadLocals.setCityCode(((java.lang.String) (session.getAttribute(org.egov.infra.utils.ApplicationConstant.CITY_CODE_KEY)))); org.egov.infra....
private void prepareApplicationThreadLocal(javax.servlet.http.HttpSession session) { org.egov.infra.config.core.ApplicationThreadLocals.setCityCode(((java.lang.String) (session.getAttribute(org.egov.infra.utils.ApplicationConstant.CITY_CODE_KEY)))); org.egov.infra.config.core.ApplicationThreadLocals.setCityName...
private static java.util.List<Reindeer> getReindeerNames() { java.util.List<Reindeer> reindeer = new java.util.ArrayList<Reindeer>(); java.lang.System.out.println("Enter names for the nine reindeer: "); java.lang.String name = ""; for (int i = 0; i < (Game.NUMBER_OF_REINDEER); i++) { java.lang.S...
private static java.util.List<Reindeer> getReindeerNames() { java.util.List<Reindeer> reindeer = new java.util.ArrayList<Reindeer>(); java.lang.System.out.println("Enter names for the nine reindeer: "); for (int i = 0; i < (Game.NUMBER_OF_REINDEER); i++) { java.lang.System.out.print(((i + 1) + ". ")...
public void bundleChanged(org.apache.jackrabbit.oak.blob.composite.BundleEvent event) { if ((event.getType()) == (BundleEvent.STARTED)) { org.apache.jackrabbit.oak.blob.composite.CompositeDataStore.LOG.info("FDSS - Bundle {} started, checking for data stores", event.getBundle().getSymbolicName()); a...
public void bundleChanged(org.apache.jackrabbit.oak.blob.composite.BundleEvent event) { if ((event.getType()) == (BundleEvent.STARTED)) { addDataStoresFromBundle(event.getBundle()); }else if ((event.getType()) == (BundleEvent.STOPPING)) { traversalStrategy.removeDelegateDataStoresFor...
public void onClick(android.view.View v) { android.media.MediaPlayer nextButtonMediaPlayer = android.media.MediaPlayer.create(getBaseContext(), R.raw.effect_btn_shut); nextButtonMediaPlayer.start(); if ((shipCount) < 10) { shipView.setImageResource(shipImages[shipCount]); shipNo.setText(ship...
public void onClick(android.view.View v) { android.media.MediaPlayer nextButtonMediaPlayer = android.media.MediaPlayer.create(getBaseContext(), R.raw.effect_btn_shut); nextButtonMediaPlayer.start(); (shipCount)++; if ((shipCount) < 10) { shipView.setImageResource(shipImages[shipCount]); ...
public com.github.ddth.djs.bo.log.TaskLogBo setTimestampFinish(java.util.Date timestamp) { setAttribute(com.github.ddth.djs.bo.log.TaskLogBo.ATTR_TIMESTAMP_FINISH, timestamp); if (timestamp == null) { setAttribute(com.github.ddth.djs.bo.log.TaskLogBo.ATTR_DURATION_FINISH, null); } java.util.Date...
public com.github.ddth.djs.bo.log.TaskLogBo setTimestampFinish(java.util.Date timestamp) { setAttribute(com.github.ddth.djs.bo.log.TaskLogBo.ATTR_TIMESTAMP_FINISH, timestamp); if (timestamp == null) { setAttribute(com.github.ddth.djs.bo.log.TaskLogBo.ATTR_DURATION_FINISH, null); }else { java...
public void leafNode(final org.opendaylight.yangtools.yang.data.api.YangInstanceIdentifier.NodeIdentifier name, final java.lang.Object value) throws java.io.IOException { final org.opendaylight.yangtools.yang.model.api.LeafSchemaNode schema = tracker.leafNode(name); final org.opendaylight.yangtools.yang.data.co...
public void leafNode(final org.opendaylight.yangtools.yang.data.api.YangInstanceIdentifier.NodeIdentifier name, final java.lang.Object value) throws java.io.IOException { final org.opendaylight.yangtools.yang.model.api.LeafSchemaNode schema = tracker.leafNode(name); final org.opendaylight.yangtools.yang.data.co...
public static int height(TreeNode root) { if (root == null) return 0; int leftDepth = TreeNode.height(root.left); int rightDepth = TreeNode.height(root.right); int bigger = java.lang.Math.max(leftDepth, rightDepth); return bigger + 1; }
public static int height(TreeNode root) { if (root == null) return -1; int leftDepth = TreeNode.height(root.left); int rightDepth = TreeNode.height(root.right); int bigger = java.lang.Math.max(leftDepth, rightDepth); return bigger + 1; }
public boolean createNodeConnection(java.util.UUID node1, java.util.UUID node2) { if ((exitNodeMap.containsKey(node1)) || (exitNodeMap.containsKey(node2))) { return false; } graphServer.addEdge(node1, node2); graphServer.addEdge(node2, node1); return true; }
public boolean createNodeConnection(java.util.UUID node1, java.util.UUID node2) { if ((exitNodeMap.containsKey(node1)) || (exitNodeMap.containsKey(node2))) { return false; } return (graphServer.addEdge(node1, node2)) && (graphServer.addEdge(node2, node1)); }
private void addConstructorParameterAndTypeField(com.squareup.javapoet.TypeName typeName, java.lang.String variableName, com.squareup.javapoet.TypeSpec.Builder factoryBuilder, com.squareup.javapoet.MethodSpec.Builder constructorBuilder) { com.squareup.javapoet.FieldSpec field = com.squareup.javapoet.FieldSpec.build...
private com.squareup.javapoet.FieldSpec addConstructorParameterAndTypeField(com.squareup.javapoet.TypeName typeName, java.lang.String variableName, com.squareup.javapoet.TypeSpec.Builder factoryBuilder, com.squareup.javapoet.MethodSpec.Builder constructorBuilder) { com.squareup.javapoet.FieldSpec field = com.square...
private java.lang.String getContext(eu.clarin.cmdi.vlo.importer.Pattern path, java.util.Map<eu.clarin.cmdi.vlo.importer.Pattern, java.lang.String> pathConceptLinkMapping) { java.lang.String context = null; java.lang.String cpath = path.getPattern(); while ((context == null) && (!(cpath.equals("/text()")))) ...
private java.lang.String getContext(eu.clarin.cmdi.vlo.importer.Pattern path, java.util.Map<eu.clarin.cmdi.vlo.importer.Pattern, java.lang.String> pathConceptLinkMapping) { java.lang.String context = null; java.lang.String cpath = path.getPattern(); while ((context == null) && (!(cpath.equals("/text()")))) ...
void pieceDropped() { java.lang.System.out.println("piece dropped"); for (int[] coord : curPiece.getCoords()) { int x = (coord[0]) + (curX); int y = (coord[1]) + (curY); dropped[x][y] = curPiece.tetrominoes; } removeFullLines(); hasDropped = true; }
void pieceDropped() { for (int[] coord : curPiece.getCoords()) { int x = (coord[0]) + (curX); int y = (coord[1]) + (curY); dropped[x][y] = curPiece.tetrominoes; } removeFullLines(); hasDropped = true; }
public org.apache.drill.exec.planner.logical.CreateTableEntry createStatsTable(java.lang.String tableName) { org.apache.drill.exec.store.dfs.WorkspaceSchemaFactory.ensureNotStatsTable(tableName); final java.lang.String statsTableName = org.apache.drill.exec.store.dfs.WorkspaceSchemaFactory.getStatsTableName(tab...
public org.apache.drill.exec.planner.logical.CreateTableEntry createStatsTable(java.lang.String tableName) { org.apache.drill.exec.store.dfs.WorkspaceSchemaFactory.ensureNotStatsTable(tableName); final java.lang.String statsTableName = getStatsTableName(tableName); org.apache.drill.exec.store.dfs.FormatPlug...
public void timerStartService() { android.content.Intent myIntent = new android.content.Intent(this, dolkand.tips.AlarmReceiver.class); android.app.AlarmManager am = ((android.app.AlarmManager) (getSystemService(Context.ALARM_SERVICE))); android.app.PendingIntent pendingIntent = android.app.PendingIntent.ge...
public void timerStartService() { android.content.Intent myIntent = new android.content.Intent(this, dolkand.tips.AlarmReceiver.class); android.app.AlarmManager am = ((android.app.AlarmManager) (getSystemService(Context.ALARM_SERVICE))); android.app.PendingIntent pendingIntent = android.app.PendingIntent.ge...
public int stringCompareToList(java.lang.String input, java.lang.String[] keywordsInInput) { for (int i = 0; i < (keywordsInInput.length); i++) { if (keywordsInInput[i].equalsIgnoreCase(input)) { return i; } } return -1; }
public int stringCompareToList(java.lang.String input, java.lang.String[] keywordsInInput) { if ((input != null) && (keywordsInInput != null)) { for (int i = 0; i < (keywordsInInput.length); i++) { if (keywordsInInput[i].equalsIgnoreCase(input)) { return i; } ...
public void orphan(database.DBSet db) { if ((service) == 10) { utils.StorageUtils.processOrphan(getData(), signature, getNameStorageDB()); }else { removeFromBlogMapOnDemand(getNameStorageDB()); } this.creator.setConfirmedBalance(this.creator.getConfirmedBalance(db).add(this.fee), db); ...
public void orphan(database.DBSet db) { if ((service) == 10) { utils.StorageUtils.processOrphan(getData(), signature, db); }else { removeFromBlogMapOnDemand(db); } this.creator.setConfirmedBalance(this.creator.getConfirmedBalance(db).add(this.fee), db); this.creator.setLastReference(...
public boolean isDataParsed(java.lang.String json_data) { com.fasterxml.jackson.databind.ObjectMapper mapper = new com.fasterxml.jackson.databind.ObjectMapper(); try { if (!(json_data.isEmpty())) { JSONParsedData = mapper.readTree(json_data); return true; }else { ...
public boolean isDataParsed(java.lang.String json_data) { com.fasterxml.jackson.databind.ObjectMapper mapper = new com.fasterxml.jackson.databind.ObjectMapper(); try { if ((json_data != null) & (!(json_data.isEmpty()))) { JSONParsedData = mapper.readTree(json_data); return true; ...
private java.lang.Object addPlacemarkToMap(com.google.maps.android.kml.KmlPlacemark placemark, boolean placemarkVisibility) { java.lang.String placemarkId = placemark.getStyleId(); com.google.maps.android.kml.KmlGeometry geometry = placemark.getGeometry(); com.google.maps.android.kml.KmlStyle style = getPla...
private java.lang.Object addPlacemarkToMap(com.google.maps.android.kml.KmlPlacemark placemark, boolean placemarkVisibility) { if ((placemark.getGeometry()) != null) { java.lang.String placemarkId = placemark.getStyleId(); com.google.maps.android.kml.KmlGeometry geometry = placemark.getGeometry(); ...
public void testPersistNullBatches() { java.lang.System.out.println("Testing OrionCKANSinkTest.persistBatch (null batches)"); java.lang.String attrPersistence = "row"; java.lang.String enableGrouping = "true"; org.apache.flume.Context context = createContext(attrPersistence, enableGrouping); sink.co...
public void testPersistNullBatches() { java.lang.System.out.println("Testing OrionCKANSinkTest.persistBatch (null batches)"); attrPersistence = "row"; enableGrouping = "true"; org.apache.flume.Context context = createContext(attrPersistence, enableGrouping); sink.configure(context); sink.setChan...
public java.lang.String getSimPath() { java.lang.String root = properties.getRoot(); java.lang.String simName = properties.getSim(); if (!(fileStem.getText().trim().equals(""))) { return (((root + (java.io.File.separator)) + simName) + (java.io.File.separator)) + (fileStem.getText().trim()); } ...
public java.lang.String getSimPath() { java.lang.String root = properties.getRoot(); java.lang.String simName = properties.getId(); if (!(fileStem.getText().trim().equals(""))) { return (((root + (java.io.File.separator)) + simName) + (java.io.File.separator)) + (fileStem.getText().trim()); } ...
protected org.json.JSONObject doInBackground(java.lang.String... parameters) { org.json.JSONObject json = null; if (parameters[2].equals("GET")) { json = sendGet(parameters); }else if (parameters[2].equals("POST")) { json = sendPost(parameters); } return json; }
protected java.lang.Void doInBackground(java.lang.String... parameters) { if (parameters[2].equals("GET")) { sendGet(parameters); }else if (parameters[2].equals("POST")) { sendPost(parameters); } return null; }
public void setDelay(int tag, long delay) { if (delay < 0) { delay = 0; } synchronized(mSchedulerMap) { com.heaven7.java.logic.AbstractLogicAction.Schedulers s = new com.heaven7.java.logic.AbstractLogicAction.Schedulers(); s.delay = delay; mSchedulerMap.append(tag, s); } ...
public void setDelay(int tag, long delay) { if (delay < 0) { delay = 0; } com.heaven7.java.logic.AbstractLogicAction.Schedulers s; synchronized(mSchedulerMap) { s = mSchedulerMap.get(tag); if (s == null) { s = new com.heaven7.java.logic.AbstractLogicAction.Schedulers(...
public void testSearchTermInResults() { final java.lang.String searchTerm = "tiger"; final com.autonomy.abc.selenium.find.results.ListView results = findService.search(searchTerm); for (final org.openqa.selenium.WebElement searchElement : results.resultsContainingString(searchTerm)) { if (searchElem...
public void testSearchTermInResults() { final java.lang.String searchTerm = "tiger"; final com.autonomy.abc.selenium.find.results.ListView results = findService.search(searchTerm); for (final org.openqa.selenium.WebElement searchElement : results.resultsContainingString(searchTerm)) { if (searchElem...
public void testDefaultConfiguration() throws java.lang.Exception { final com.puppycrawl.tools.checkstyle.DefaultConfiguration checkConfig = createCheckConfig(com.puppycrawl.tools.checkstyle.checks.imports.CustomImportOrderCheck.class); java.lang.String[] expected = org.apache.commons.lang3.ArrayUtils.EMPTY_STR...
public void testDefaultConfiguration() throws java.lang.Exception { final com.puppycrawl.tools.checkstyle.DefaultConfiguration checkConfig = createCheckConfig(com.puppycrawl.tools.checkstyle.checks.imports.CustomImportOrderCheck.class); java.lang.String[] expected = org.apache.commons.lang3.ArrayUtils.EMPTY_STR...
public boolean afterInvoke(java.lang.Object target, java.lang.reflect.Method method, java.lang.Object result) { java.util.Iterator<com.zhizus.forest.core.interceptor.InvokerInterceptor> iterator = interceptors.iterator(); boolean noInterrupt = true; while ((iterator.hasNext()) && true) { noInterrupt...
public boolean afterInvoke(java.lang.Object target, java.lang.reflect.Method method, java.lang.Object result) { java.util.Iterator<com.zhizus.forest.core.interceptor.InvokerInterceptor> iterator = interceptors.iterator(); boolean noInterrupt = true; while ((iterator.hasNext()) && noInterrupt) { noIn...
public void onSuccess(com.hdm.Application.shared.bo.AppUser result) { com.hdm.Application.client.ClientsideSettings.getLogger().severe(("Success EditNoteCallback: " + (result.getClass().getSimpleName()))); currentUser = result; Application.userLabel.setText(("Sie sind eingeloggt als: " + (currentUser.getUse...
public void onSuccess(com.hdm.Application.shared.bo.AppUser result) { com.hdm.Application.client.ClientsideSettings.getLogger().severe(("Success EditNoteCallback: " + (result.getClass().getSimpleName()))); currentUser = result; com.hdm.Application.client.gui.Update update = new com.hdm.Application.client.gu...
public boolean accept(java.io.File pathname) { return ((prefix.length()) <= (pathname.length())) && (pathname.getName().substring(0, prefix.length()).equals(prefix)); }
public boolean accept(java.io.File pathname) { return ((prefix.length()) <= (pathname.getName().length())) && (pathname.getName().substring(0, prefix.length()).equals(prefix)); }
private boolean removeWirelessTransmitter(java.lang.String channelName, org.bukkit.Location loc, java.lang.String world) { net.licks92.WirelessRedstone.Storage.WirelessChannel channel = getWirelessChannel(channelName); if (channel != null) { channel.removeTransmitterAt(loc, world); return remove...
private boolean removeWirelessTransmitter(java.lang.String channelName, org.bukkit.Location loc, java.lang.String world) { net.licks92.WirelessRedstone.Storage.WirelessChannel channel = getWirelessChannel(channelName, true); if (channel != null) { channel.removeTransmitterAt(loc, world); return ...
public static void main(java.lang.String[] args) throws java.io.IOException { java.io.FileOutputStream out; java.io.PrintStream p; try { out = new java.io.FileOutputStream("myfile.txt"); p = new java.io.PrintStream(out); p.println("This is written to a file"); p.close(); ...
public static void main(java.lang.String[] args) throws java.io.IOException { java.io.FileOutputStream out; java.io.PrintStream p; try { out = new java.io.FileOutputStream("myfile.txt"); p = new java.io.PrintStream(out); p.println("This is written to a file"); p.close(); ...
public int hit(int armor) { int damage; if ((armor > 0) && (armor < 20)) damage = ((DAMAGE) - armor) + armor; else damage = (DAMAGE) - armor; if (damage < 0) { return 0; } return damage; }
public int hit(int armor) { int damage; if ((armor > 0) && (armor < 20)) damage = DAMAGE; else damage = (DAMAGE) - armor; if (damage < 0) { return 0; } return damage; }
public void initializeData() { if (moneyDeal) { owner.setDocument(new king.flow.action.DefaultTextFieldAction.MoneyInputLimit()); }else if ((type) == (king.flow.action.DefaultTextFieldAction.InputType.NUMBER)) { owner.setDocument(new king.flow.action.DefaultTextFieldAction.NumberInpu...
public void initializeData() { if (!(editable)) { owner.setEnabled(editable); }else if (moneyDeal) { owner.setDocument(new king.flow.action.DefaultTextFieldAction.MoneyInputLimit()); }else if ((type) == (king.flow.action.DefaultTextFieldAction.InputType.NUMBER)) {...
public java.lang.Object clone() { try { gdsc.core.utils.TurboList<?> v = ((gdsc.core.utils.TurboList<?>) (super.clone())); v.elementData = java.util.Arrays.copyOf(elementData, size); return v; } catch (java.lang.CloneNotSupportedException e) { throw new java.lang.InternalError(e)...
public java.lang.Object clone() { try { gdsc.core.utils.TurboList<?> v = ((gdsc.core.utils.TurboList<?>) (super.clone())); v.elementData = java.util.Arrays.copyOf(elementData, size); return v; } catch (java.lang.CloneNotSupportedException e) { throw new java.lang.InternalError();...
private javax.xml.transform.Source urlSource(java.lang.String path) throws javax.xml.transform.TransformerException { try { final java.net.URL url = new java.net.URL(path); return new javax.xml.transform.stream.StreamSource(url.openStream()); } catch (final java.io.FileNotFoundException e) { ...
private javax.xml.transform.Source urlSource(final java.lang.String path) throws javax.xml.transform.TransformerException { try { final java.net.URL url = new java.net.URL(path); return new javax.xml.transform.stream.StreamSource(url.openStream()); } catch (final java.io.IOException e) { ...
public com.mediator.model.VideoEntry apply(com.mediator.model.tmdb.TMDbTVEpisodeResult tmdbTVEpisodeResult) { com.mediator.helpers.TinyLogger.d(("title found: " + (tmdbTVEpisodeResult.getName()))); videoEntry.setEpisodeNumber(tmdbTVEpisodeResult.getEpisodeNumber()); videoEntry.setSeasonNumber(tmdbTVEpisodeR...
public com.mediator.model.VideoEntry apply(com.mediator.model.tmdb.TMDbTVEpisodeResult tmdbTVEpisodeResult) { com.mediator.helpers.TinyLogger.d(("title found: " + (tmdbTVEpisodeResult.getName()))); videoEntry.setEpisodeNumber(tmdbTVEpisodeResult.getEpisodeNumber()); videoEntry.setSeasonNumber(tmdbTVEpisodeR...
public static java.lang.String asString(java.util.Collection<java.lang.Long> activities) { java.lang.String str = ""; for (java.lang.Long actId : activities) { org.sleepfactory.sleeplog.scale.Activity act = org.sleepfactory.sleeplog.scale.Activity.enumValueOf(actId); str += (act.qualitative()) +...
public static java.lang.String asString(java.util.Collection<java.lang.Long> activities) { if (activities == null) return ""; java.lang.String str = ""; for (java.lang.Long actId : activities) { org.sleepfactory.sleeplog.scale.Activity act = org.sleepfactory.sleeplog.scale.Activity.enum...
public void henkiloOidHetuNimiByHetuDuplicateHetus() throws java.lang.Exception { org.mockito.BDDMockito.given(this.henkiloService.getHenkiloOidHetuNimiByHetu("081296-967T")).willThrow(new fi.vm.sade.oppijanumerorekisteri.exceptions.DuplicateHetuException()); this.mvc.perform(get("/henkilo/henkiloPerusByHetu/08...
public void henkiloOidHetuNimiByHetuDuplicateHetus() throws java.lang.Exception { org.mockito.BDDMockito.given(this.henkiloService.getHenkiloOidHetuNimiByHetu("081296-967T")).willThrow(new fi.vm.sade.oppijanumerorekisteri.exceptions.DuplicateHetuException()); this.mvc.perform(get("/henkilo/henkiloPerusByHetu/08...
public double checkNorth() { int y = this.getY(); if ((!(y == (Main.endCoord[1]))) && (!(Main.maze[(y + 1)][x].isWall()))) { return Main.maze[(y + 1)][x].getPheromone(); } return 0; }
public double checkNorth() { int y = this.getY(); if ((y != (Main.maze.length)) && (!(Main.maze[(y + 1)][x].isWall()))) { return Main.maze[(y + 1)][x].getPheromone(); } return 0; }
public E get(int index) { rangeCheck(index); traceCall("get", new java.lang.String[]{ java.lang.Integer.toString(index) }, 1, java.lang.Math.min(index, ((size) - index))); return elementData(index); }
public E get(int index) { rangeCheck(index); traceCall("get", new java.lang.String[]{ java.lang.Integer.toString(index) }, 1, java.lang.Math.min((index + 1), ((size) - index))); return elementData(index); }
public void share(java.lang.CharSequence title, android.net.Uri hyperlink) { android.content.Intent intent = new android.content.Intent(android.content.Intent.ACTION_SEND); intent.setType(org.gem.indo.dooit.helpers.social.SocialSharer.TYPE_TEXT); intent.putExtra(Intent.EXTRA_TEXT, hyperlink.toString()); ...
public void share(java.lang.CharSequence title, android.net.Uri hyperlink) { query(org.gem.indo.dooit.helpers.social.SocialSharer.TYPE_TEXT); android.content.Intent intent = new android.content.Intent(android.content.Intent.ACTION_SEND); intent.setType(org.gem.indo.dooit.helpers.social.SocialSharer.TYPE_TEX...
public java.lang.String loadLanding(org.springframework.ui.ModelMap map, javax.servlet.http.HttpSession session, com.ssbb.kanban.data.impl.User user) { if (null != (session.getAttribute(Constants.USER))) { map.addAttribute(Constants.PROJECT, project); if (null == (session.getAttribute(Constants.PROJ...
public java.lang.String loadLanding(org.springframework.ui.ModelMap map, javax.servlet.http.HttpSession session, com.ssbb.kanban.data.impl.User user) { if (null != (session.getAttribute(Constants.USER))) { map.addAttribute(Constants.PROJECT, project); map.addAttribute(Constants.USER, user); ...
public static int getType(java.lang.String username) { int type = Employee.DOCTOR; try { boolean isCorrectType = EmployeeFactory.tryQuery("Doctors", username); if (!isCorrectType) { type = Employee.TECHNICIAN; isCorrectType = EmployeeFactory.tryQuery("Technicians", userna...
public static int getType(java.lang.String username) { int type = Employee.DOCTOR; boolean isCorrectType = EmployeeFactory.tryQuery("Doctors", username); if (!isCorrectType) { type = Employee.TECHNICIAN; isCorrectType = EmployeeFactory.tryQuery("Technicians", username); if (!isCorrec...
public double getNumeroSorte() { double n = 101.0; if ((dataNascimento.ehBissexto()) && (((vida) >= 80) || ((vida) <= 90))) return n * (-33); else if ((!(dataNascimento.ehBissexto())) && (((nome) == "Seixas") || ((nome) == "Meireles"))) return (n * 33) % 100; re...
public double getNumeroSorte() { double n = 101.0; if ((dataNascimento.ehBissexto()) && (((vida) >= 80) || ((vida) <= 90))) return n * (-33); else if ((!(dataNascimento.ehBissexto())) && ((nome.equals("Seixas")) || (nome.equals("Meireles")))) return (n * 33) % 100; ...
public java.util.Map<fr.utbm.info.vi51.framework.math.Point2f, java.lang.Integer> solveConflicts() { java.util.Map<fr.utbm.info.vi51.framework.math.Point2f, java.lang.Integer> z = new java.util.HashMap<fr.utbm.info.vi51.framework.math.Point2f, java.lang.Integer>(); for (fr.utbm.info.vi51.framework.environment.I...
public java.util.Map<fr.utbm.info.vi51.framework.math.Point2f, java.lang.Integer> solveConflicts() { java.util.Map<fr.utbm.info.vi51.framework.math.Point2f, java.lang.Integer> z = new java.util.HashMap<fr.utbm.info.vi51.framework.math.Point2f, java.lang.Integer>(); for (fr.utbm.info.vi51.framework.environment.I...
public void datePicked(java.lang.String date) { java.util.Date datePicked = com.extenprise.mapp.medico.util.Utility.getStrAsDate(date, "dd/MM/yyyy"); if (!(com.extenprise.mapp.medico.util.Utility.isDateAfterToday(datePicked))) { com.extenprise.mapp.medico.customer.data.Customer customer = com.extenprise...
public void datePicked(java.lang.String date) { java.util.Date datePicked = com.extenprise.mapp.medico.util.Utility.getStrAsDate(date, "dd/MM/yyyy"); if (!(com.extenprise.mapp.medico.util.Utility.isDateAfterToday(datePicked))) { com.extenprise.mapp.medico.customer.data.Customer customer = com.extenprise...
public org.springframework.web.servlet.ModelAndView note(@org.springframework.web.bind.annotation.PathVariable java.lang.Integer noteId, org.springframework.web.servlet.ModelAndView mav, @org.springframework.web.bind.annotation.ModelAttribute com.henry.entity.User user) { com.henry.entity.Note note = noteService.se...
public org.springframework.web.servlet.ModelAndView note(@org.springframework.web.bind.annotation.PathVariable java.lang.Integer noteId, org.springframework.web.servlet.ModelAndView mav, @org.springframework.web.bind.annotation.ModelAttribute com.henry.entity.User user) { com.henry.entity.Note note = noteService.se...
private java.lang.String calculateTabs(java.lang.String toPrint, int count) { int tab_count = 0; java.lang.String tab = "\t"; while (((toPrint.length()) + (tab_count * 4)) < 24) { tab_count++; tab += "\t"; } return tab; }
private java.lang.String calculateTabs(java.lang.String toPrint, int count) { int tab_count = 0; java.lang.String tab = "\t"; while (((toPrint.length()) + (tab_count * 4)) < count) { tab_count++; tab += "\t"; } return tab; }
public void setup() { java.lang.System.out.println("Running setup"); rgSpace = null; agentList = new java.util.ArrayList(); schedule = new uchicago.src.sim.engine.Schedule(1); if ((displaySurf) != null) { displaySurf.dispose(); } displaySurf = null; displaySurf = new uchicago.src...
public void setup() { rgSpace = null; agentList = new java.util.ArrayList(); schedule = new uchicago.src.sim.engine.Schedule(1); if ((displaySurf) != null) { displaySurf.dispose(); } displaySurf = null; displaySurf = new uchicago.src.sim.gui.DisplaySurface(this, "Rabbit Grass Model W...
private org.eclipse.emf.ecore.resource.ResourceSet initProgressMonitor(org.eclipse.core.runtime.IProgressMonitor monitor) { org.osate.aadl2.modelsupport.resources.OsateResourceUtil.refreshResourceSet(); org.eclipse.emf.ecore.resource.ResourceSet rs = org.osate.aadl2.modelsupport.resources.OsateResourceUtil.crea...
private org.eclipse.emf.ecore.resource.ResourceSet initProgressMonitor(org.eclipse.core.runtime.IProgressMonitor monitor) { org.eclipse.emf.ecore.resource.ResourceSet rs = org.osate.aadl2.modelsupport.resources.OsateResourceUtil.createResourceSet(); org.osate.aadl2.modelsupport.resources.OsateResourceUtil.refre...
public void addInvoice(com.at.ac.tuwien.sepm.ss15.edulium.domain.Invoice invoice) throws com.at.ac.tuwien.sepm.ss15.edulium.domain.validation.ValidationException, com.at.ac.tuwien.sepm.ss15.edulium.service.ServiceException { com.at.ac.tuwien.sepm.ss15.edulium.service.impl.InvoiceServiceImpl.LOGGER.debug(("Entering ...
public void addInvoice(com.at.ac.tuwien.sepm.ss15.edulium.domain.Invoice invoice) throws com.at.ac.tuwien.sepm.ss15.edulium.domain.validation.ValidationException, com.at.ac.tuwien.sepm.ss15.edulium.service.ServiceException { com.at.ac.tuwien.sepm.ss15.edulium.service.impl.InvoiceServiceImpl.LOGGER.debug(("Entering ...
public void onDateSet(android.widget.DatePicker view, int year, int monthOfYear, int dayOfMonth) { java.lang.String infrm = (((("You birthday is: " + dayOfMonth) + ".") + monthOfYear) + ".") + year; android.widget.TextView tv = ((android.widget.TextView) (getActivity().findViewById(R.id.text_date))); tv.set...
public void onDateSet(android.widget.DatePicker view, int year, int monthOfYear, int dayOfMonth) { java.lang.String infrm = (((("You birthday is: " + dayOfMonth) + ".") + (monthOfYear + 1)) + ".") + year; android.widget.TextView tv = ((android.widget.TextView) (getActivity().findViewById(R.id.text_date))); ...
public android.content.ServiceConnection unbindPlayerService(android.support.v4.app.FragmentActivity activity) { if (isRegistered) { if (activity != null) { activity.unbindService(playerConnection); }else if ((getActivity()) != null) { getActivity().unbindServ...
public void unbindPlayerService(android.support.v4.app.FragmentActivity activity) { if (isRegistered) { if (activity != null) { activity.unbindService(playerConnection); }else if ((getActivity()) != null) { getActivity().unbindService(playerConnection); ...
public static org.wso2.carbon.identity.oauth.dao.OAuthAppDO getAppInformationByClientId(java.lang.String clientId) throws org.wso2.carbon.identity.oauth.common.exception.InvalidOAuthClientException, org.wso2.carbon.identity.oauth2.IdentityOAuth2Exception { org.wso2.carbon.identity.oauth.dao.OAuthAppDO oAuthAppDO = ...
public static org.wso2.carbon.identity.oauth.dao.OAuthAppDO getAppInformationByClientId(java.lang.String clientId) throws org.wso2.carbon.identity.oauth.common.exception.InvalidOAuthClientException, org.wso2.carbon.identity.oauth2.IdentityOAuth2Exception { org.wso2.carbon.identity.oauth.dao.OAuthAppDO oAuthAppDO = ...
public void onClick(android.view.View v) { android.content.Intent intent; intent = new android.content.Intent(); android.widget.Toast.makeText(this, "Intent Created", Toast.LENGTH_SHORT).show(); intent.putExtra("fileName", selectedFilePath); android.widget.Toast.makeText(this, "DIS EXTRA SUFF S+DIEN...
public void onClick(android.view.View v) { android.content.Intent intent; intent = new android.content.Intent(); intent.putExtra("fileName", selectedFilePath); intent.putExtra("shortFileName", selectedFileName); setResult(2, intent); this.finish(); }
private boolean loadParserResult() { try { hudson.XmlFile file = getParserResultFile(); if ((file.exists()) && (!(this.classDataLoaded))) { this.result = ((hudson.plugins.analysis.core.ParserResult) (file.read())); this.classDataLoaded = true; return true; ...
private boolean loadParserResult() { try { hudson.XmlFile file = getParserResultFile(); if (file.exists()) { this.result = ((hudson.plugins.analysis.core.ParserResult) (file.read())); return true; } } catch (java.io.IOException io) { java.lang.System.out.p...
public java.lang.String toString() { return (((((((("Auto met kenteken:" + (kenteken)) + " van het merk: ") + (merk)) + " en model ") + (model)) + " heeft ") + (afspraakGemaakt)) != null) || ((afspraakGemaakt) != false) ? (" geen afspraak gemaakt en is " + (laatsteBezoek)) + " voor het laatst geweest" : (" een afsp...
public java.lang.String toString() { return (((((("Auto met kenteken:" + (kenteken)) + " van het merk: ") + (merk)) + " en model ") + (model)) + " heeft ") + ((afspraakGemaakt) != false ? (" geen afspraak gemaakt en is " + (laatsteBezoek)) + " voor het laatst geweest" : (" een afspraak gemaakt op " + (volgendOnderh...
private void transferProcessFromMemToReady() { java.lang.Process p = memory.checkMemory(clock); while (p != null) { round_robin.Event event = cpu.insertProcess(p, clock); p.leftMemoryQueue(clock); if (event != null) { eventQueue.insertEvent(event); } memory.pr...
private void transferProcessFromMemToReady() { java.lang.Process p = memory.checkMemory(clock); while (p != null) { round_robin.Event event = cpu.insertProcess(p, clock); p.leftMemoryQueue(clock); if (event != null) { eventQueue.insertEvent(event); } memory.pr...
public T delete() { if ((size) == 0) { throw new java.util.NoSuchElementException(); }else { T out = data[1]; data[1] = null; for (int i = 0; i < ((data.length) - 1); i++) { data[i] = data[(i + 1)]; } (size)--; heapify(); return out; ...
public T delete() { if ((size) == 0) { throw new java.util.NoSuchElementException(); }else { T out = data[1]; data[1] = null; for (int i = 0; i < (size); i++) { data[i] = data[(i + 1)]; } (size)--; heapify(); data[((size) + 1)] = null; ...
public void onCreate() { super.onCreate(); android.support.multidex.MultiDex.install(this); com.grandmagic.readingmate.base.AppBaseApplication.ctx = this; com.facebook.stetho.Stetho.initializeWithDefaults(this); com.squareup.leakcanary.LeakCanary.install(this); com.umeng.analytics.MobclickAgent....
public void onCreate() { super.onCreate(); android.support.multidex.MultiDex.install(this); com.grandmagic.readingmate.base.AppBaseApplication.ctx = this; com.facebook.stetho.Stetho.initializeWithDefaults(this); com.squareup.leakcanary.LeakCanary.install(this); com.umeng.analytics.MobclickAgent....
public boolean handleResponse(com.google.api.client.http.HttpRequest request, com.google.api.client.http.HttpResponse response, boolean supportsRetry) throws java.io.IOException { if (wrappedCredential.handleResponse(request, response, supportsRetry)) { return true; }else if (backoffHandler.hand...
public boolean handleResponse(com.google.api.client.http.HttpRequest request, com.google.api.client.http.HttpResponse response, boolean supportsRetry) throws java.io.IOException { if (wrappedCredential.handleResponse(request, response, supportsRetry)) { return true; }else if (backoffHandler.hand...
public void nuevoPedidoIndividualPara(ar.edu.unq.chasqui.model.Cliente cliente, ar.edu.unq.chasqui.model.Pedido nuevoPedido) throws ar.edu.unq.chasqui.exceptions.ClienteNoPerteneceAGCCException { java.lang.String email = cliente.getEmail(); ar.edu.unq.chasqui.model.MiembroDeGCC miembro = this.findMiembro(email)...
public void nuevoPedidoIndividualPara(java.lang.String email, ar.edu.unq.chasqui.model.Pedido nuevoPedido) throws ar.edu.unq.chasqui.exceptions.ClienteNoPerteneceAGCCException { ar.edu.unq.chasqui.model.MiembroDeGCC miembro = this.findMiembro(email); if (miembro == null) { throw new ar.edu.unq.chasqui.e...
private weka.core.Instance UncertaintyCompleteGraph(double[] p_outVal) throws java.lang.Exception { weka.core.Instance retVal = null; int index = FindIndexFromId(0); if (m_graphs.elementAt(index).m_Points.isEmpty()) MergeChildren(0); Debugger.DebugPrint("Started Dikjstras on root graph, thi...
private weka.core.Instance UncertaintyCompleteGraph(double[] p_outVal) throws java.lang.Exception { weka.core.Instance retVal = null; int index = FindIndexFromId(0); if (m_graphs.elementAt(index).m_Points.isEmpty()) MergeChildren(0, 0); Debugger.DebugPrint("Started Dikjstras on root graph, ...
private void color(int value) { if (value == 100) { color(java.awt.Color.GREEN); }else if (value >= 50) { color(java.awt.Color.ORANGE); }else if (value >= 0) { color(java.awt.Color.RED); }else { color(java.awt.Color.BLUE...
private void color(int value) { if (value == 100) { color(java.awt.Color.GREEN); }else if (value >= 50) { color(java.awt.Color.ORANGE); }else if (value >= 0) { color(java.awt.Color.RED); }else { color(java.awt.Color.BLUE...
public void enqueue(Item item) { if (item == null) throw new java.lang.NullPointerException(); if ((itemCount) == (qArray.length)) resize((2 * (qArray.length))); qArray[((itemCount)++)] = item; }
public void enqueue(Item item) { if (item == null) throw new java.lang.NullPointerException(); if ((itemCount) == (qArray.length)) resize((2 * (qArray.length))); qArray[((itemCount)++)] = item; end = (itemCount) - 1; }
public void onClick(android.view.View v) { switch (v.getId()) { case R.id.ibAC_carWash : android.content.Intent intent = new android.content.Intent(view.getContext(), com.example.porownywarkapaliw.MapPart.Maps.class); intent.putExtra(MainActivity.KEY_MAP_CRITERIA, true); ...
public void onClick(android.view.View v) { switch (v.getId()) { case R.id.ibAC_carWash : android.content.Intent intent = new android.content.Intent(getActivity(), com.example.porownywarkapaliw.MapPart.Maps.class); intent.putExtra(MainActivity.KEY_MAP_CRITERIA, true); star...
java.util.ArrayList<instancefactory.service.Eintrag> newList = ((java.util.ArrayList<instancefactory.service.Eintrag>) (list.clone())); for (int i = 0; i < (newList.size()); i++) { newList.get(i).value = (newList.get(i).value) + shiftValue; } return newList; }
java.util.ArrayList<instancefactory.service.Eintrag> newList = ((java.util.ArrayList<instancefactory.service.Eintrag>) (list.clone())); for (int i = 0; i < (newList.size()); i++) { newList.get(i).value = (newList.get(i).value) - shiftValue; } return newList; }
public void propagateAsErrorIfCancelException(final java.lang.Throwable t) { try { final java.lang.RuntimeException opCanceledException = this.getPlatformOperationCanceledException(t); boolean _notEquals = !(com.google.common.base.Objects.equal(opCanceledException, null)); if (_notEquals) { ...
public void propagateAsErrorIfCancelException(final java.lang.Throwable t) { try { if (t instanceof org.eclipse.xtext.service.OperationCanceledError) { throw t; } final java.lang.RuntimeException opCanceledException = this.getPlatformOperationCanceledException(t); boolean...
public com.dwtech.android.houyi.HouyiScene load(byte[] data, int size, java.lang.String filePath, int options) { long scene = nativeLoad(data, size, (filePath == null ? "" : filePath), options); return scene == 0 ? null : new com.dwtech.android.houyi.HouyiScene(scene); }
public com.dwtech.android.houyi.HouyiScene load(byte[] data, int size, java.lang.String filePath, int options) { long scene = nativeLoad(data, size, (filePath == null ? "" : filePath), 1); return scene == 0 ? null : new com.dwtech.android.houyi.HouyiScene(scene); }
private void setPrev() { if (((_index) - 1) < 0) { return ; } final java.util.List<com.estvis.oaslibrary.Data.AdditionalInfo.AddInfo> aiList = _aiList.getList(); final com.estvis.oaslibrary.Data.AdditionalInfo.AddInfo ai = aiList.get((--(_index))); _reference = ai.getReference(); _infoTy...
private void setPrev() { if ((((_index) - 1) < 0) || (null == (_aiList))) { return ; } final java.util.List<com.estvis.oaslibrary.Data.AdditionalInfo.AddInfo> aiList = _aiList.getList(); final com.estvis.oaslibrary.Data.AdditionalInfo.AddInfo ai = aiList.get((--(_index))); _reference = ai.ge...
private java.lang.String getLayoutName(java.lang.Object handler) { org.springframework.web.method.HandlerMethod handlerMethod = ((org.springframework.web.method.HandlerMethod) (handler)); org.thymeleaf.spring.support.Layout layout = getMethodOrTypeAnnotation(handlerMethod); if (layout == null) { ret...
private java.lang.String getLayoutName(java.lang.Object handler) { if (handler instanceof org.springframework.web.method.HandlerMethod) { org.springframework.web.method.HandlerMethod handlerMethod = ((org.springframework.web.method.HandlerMethod) (handler)); org.thymeleaf.spring.support.Layout layou...
public void handleMessage(android.os.Message msg) { switch (msg.what) { case com.brucegiese.perfectposture.OrientationService.MSG_START_MONITORING : android.util.Log.d(com.brucegiese.perfectposture.OrientationService.TAG, "got message: MSG_START_MONITORING"); com.brucegiese.perfectpo...
public void handleMessage(android.os.Message msg) { switch (msg.what) { case com.brucegiese.perfectposture.OrientationService.MSG_START_MONITORING : android.util.Log.d(com.brucegiese.perfectposture.OrientationService.TAG, "got message: MSG_START_MONITORING"); startChecking(); ...
public void onLoadComplete(android.media.SoundPool soundPool, int soundId, int status) { int resourceId = toResourceId(soundId); jp.techblog.epsiloncode.soundpoolwrapper.SoundPoolWrapper.OnLoadCompleteCallback callback = mResourceIdToCallbackMap.get(resourceId); if (callback != null) { callback.onLo...
public void onLoadComplete(android.media.SoundPool soundPool, int soundId, int status) { int resourceId = toResourceId(soundId); mLoadedResourceIds.add(resourceId); jp.techblog.epsiloncode.soundpoolwrapper.SoundPoolWrapper.OnLoadCompleteCallback callback = mResourceIdToCallbackMap.get(resourceId); if (c...
public void onCreate(android.os.Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_permission); if (com.reversecoder.permission.util.PermissionUtil.isAllPermissionGranted(this)) { finish(); } listViewPermission = ((android.widget.ListView) (find...
public void onCreate(android.os.Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_permission); listViewPermission = ((android.widget.ListView) (findViewById(R.id.listview_permission))); java.util.ArrayList<com.reversecoder.permission.model.ManifestPermissi...
private void closeCamera() { if ((livecamThread) != null) { livecamThread.interrupt(); livecamThread = null; } if (isCameraDetected()) { if ((slCam.getValue()) == 1) { com.github.sarxos.webcam.Webcam webcam = com.github.sarxos.webcam.Webcam.getDefault(); if (w...
private void closeCamera() { if ((livecamThread) != null) { livecamThread.interrupt(); livecamThread = null; } com.github.sarxos.webcam.Webcam webcam = com.github.sarxos.webcam.Webcam.getDefault(); if (webcam.isOpen()) { webcam.close(); } }
protected void computeStatsFillModel(hex.pca.PCAModel pca, hex.svd.SVDModel svd) { pca._output._normSub = svd._output._normSub; pca._output._normMul = svd._output._normMul; pca._output._permutation = svd._output._permutation; pca._output._nnums = svd._output._nnums; pca._output._ncats = svd._output....
protected void computeStatsFillModel(hex.pca.PCAModel pca, hex.svd.SVDModel svd) { pca._output._normSub = svd._output._normSub; pca._output._normMul = svd._output._normMul; pca._output._permutation = svd._output._permutation; pca._output._nnums = svd._output._nnums; pca._output._ncats = svd._output....
public static int selectGradeType(int courseElement) { int policySize = GradeTrackerDriver.registeredCourses.get(courseElement).getGradingPolicy().size(); if (policySize == 0) { return -1; } int gradeTypeElement = policySize; GradeTrackerDriver.displayGradePolicy(); gradeTypeElement = Ut...
public static int selectGradeType(int courseElement) { int policySize = GradeTrackerDriver.registeredCourses.get(courseElement).getGradingPolicy().size(); if (policySize == 0) { return -1; } int gradeTypeElement = policySize; GradeTrackerDriver.displayGradePolicy(courseElement); gradeTyp...
public kekbit.channel.ChannelAddress receive(java.nio.ByteBuffer data) throws java.io.IOException { if (open) { while (open) { kekbit.channel.LocalMessage msg = channelAddress.readMessage(); if (msg != null) { if ((msg.data) != data) { kekbit.mem.B...
public kekbit.channel.ChannelAddress receive(java.nio.ByteBuffer data) throws java.io.IOException { if (open) { while (open) { kekbit.channel.LocalMessage msg = channelAddress.readMessage(); if (msg != null) { kekbit.mem.ByteBufferUtils.copyTo(msg.data, data); ...
public org.restlet.engine.resource.ThrowableAnnotationInfo getThrowableAnnotationInfo(java.lang.reflect.Method javaMethod, int errorCode) { for (java.lang.Class<?> clazz : javaMethod.getExceptionTypes()) { org.restlet.engine.resource.ThrowableAnnotationInfo tai = getThrowableAnnotationInfo(clazz); i...
public org.restlet.engine.resource.ThrowableAnnotationInfo getThrowableAnnotationInfo(java.lang.reflect.Method javaMethod, int errorCode) { for (java.lang.Class<?> clazz : javaMethod.getExceptionTypes()) { org.restlet.engine.resource.ThrowableAnnotationInfo tai = getThrowableAnnotationInfo(clazz); i...
public boolean onOptionsItemSelected(android.view.MenuItem menuItem) { android.content.Intent intent = null; super.onOptionsItemSelected(menuItem); switch (menuItem.getItemId()) { case android.R.id.home : finish(); break; case R.id.home_button : intent = n...
public boolean onOptionsItemSelected(android.view.MenuItem menuItem) { android.content.Intent intent = null; super.onOptionsItemSelected(menuItem); switch (menuItem.getItemId()) { case android.R.id.home : finish(); break; case R.id.home_button : intent = n...
public void testAddMissingParameterValueAnnotation() throws java.lang.Exception { createTargetClass(org.jboss.forge.addon.parser.java.ui.JavaAddAnnotationCommandTest.TEST_CLASS_STRING); createCommandController(); commandController.initialize(); java.lang.String complexAnnotation = "Test(param1=)"; c...
public void testAddMissingParameterValueAnnotation() throws java.lang.Exception { createTargetClass(org.jboss.forge.addon.parser.java.ui.JavaAddAnnotationCommandTest.TEST_CLASS_STRING); createCommandController(); commandController.initialize(); java.lang.String complexAnnotation = "Test(param1=)"; c...
public BoxTask.Info addTaskToFile(java.lang.String token, java.lang.String fileId, java.lang.String message, org.joda.time.DateTime dueAt) throws java.lang.Exception { com.box.sdk.BoxFile file = boxFacade.getFile(token, fileId); if (file != null) { return file.addTask(BoxTask.Action.REVIEW, message, due...
public BoxTask.Info addTaskToFile(java.lang.String token, java.lang.String fileId, java.lang.String message, org.joda.time.DateTime dueAt) throws java.lang.Exception { com.box.sdk.BoxFile file = boxFacade.getFile(token, fileId); if (file != null) { java.util.Date date = null; if (dueAt != null) ...
public synchronized void write(byte[] b, int off, int len) throws java.io.IOException { if ((StrBuffer) == null) { com.necla.am.zwutils.Misc.Misc.FAIL("%s: Output stream already closed", Name); } java.lang.CharSequence Seq = new java.lang.String(b); StrBuffer.append(Seq, off, len); flushln(f...
public synchronized void write(byte[] b, int off, int len) throws java.io.IOException { if ((StrBuffer) == null) { com.necla.am.zwutils.Misc.Misc.FAIL("%s: Output stream already closed", Name); } StrBuffer.append(new java.lang.String(b, off, len)); flushln(false); }
private boolean isValidationReady(java.lang.String date, java.lang.String hour) { boolean validationNotReady = false; if (((partition_dt) == null) || ((partition_hour) == null)) { partition_dt = date; partition_hour = hour; }else if ((!(partition_dt.equalsIgnoreCase(date))) || (!(par...
public boolean isValidationReady(java.lang.String date, java.lang.String hour) { boolean validationNotReady = false; if (((partition_hour) == null) || ((partition_dt) == null)) { partition_dt = date; partition_hour = hour; }else if ((!(partition_hour.equalsIgnoreCase(hour))) || (!(pa...
public void testEvaluateWithNulls() { org.gbif.dwc.terms.Term[] columnMapping = new org.gbif.dwc.terms.Term[]{ org.gbif.dwc.terms.DwcTerm.occurrenceID , org.gbif.dwc.terms.DwcTerm.eventDate , org.gbif.dwc.terms.DcTerm.modified }; org.gbif.validation.evaluator.record.OccurrenceInterpretationEvaluator evaluator =...
public void testEvaluateWithNulls() { org.gbif.dwc.terms.Term[] columnMapping = new org.gbif.dwc.terms.Term[]{ org.gbif.dwc.terms.DwcTerm.occurrenceID , org.gbif.dwc.terms.DwcTerm.eventDate , org.gbif.dwc.terms.DcTerm.modified }; org.gbif.validation.evaluator.record.OccurrenceInterpretationEvaluator evaluator =...
public void onClick(android.view.View v) { if ((holder.projectOverview.getVisibility()) == (android.view.View.GONE)) { holder.showOverview.setImageResource(R.drawable.project_list_arrow_up); holder.projectDetails.setVisibility(View.GONE); holder.projectName.setSingleLine(true); setPr...
public void onClick(android.view.View v) { if ((holder.projectOverview.getVisibility()) == (android.view.View.GONE)) { holder.showOverview.setImageResource(R.drawable.project_list_arrow_up); setProjectOverview(projectName, holder); }else { holder.showOverview.setImageResource(R.drawable....