buggy_function
stringlengths
1
391k
fixed_function
stringlengths
0
392k
public void run() { gvrLayout = new com.google.vr.ndk.base.GvrLayout(activity); if (gvrLayout.setAsyncReprojectionEnabled(true)) { com.google.vr.ndk.base.AndroidCompat.setSustainedPerformanceMode(activity, true); } gvrLayout.setPresentationView(new android.view.View(activity)); com.google.vr...
public void run() { gvrLayout = new com.google.vr.ndk.base.GvrLayout(activity); if (gvrLayout.setAsyncReprojectionEnabled(true)) { com.google.vr.ndk.base.AndroidCompat.setSustainedPerformanceMode(activity, true); } gvrLayout.setPresentationView(new android.view.View(activity)); com.google.vr...
public static java.lang.String printBytes(byte[] buffer, int start, int length) { java.lang.StringBuilder sb = new java.lang.StringBuilder((length - start)); for (int i = start; i < (start + length); i++) { sb.append(java.lang.String.format("%%%02x", buffer[i])); } return sb.toString(); }
public static java.lang.String printBytes(byte[] buffer, int start, int length) { java.lang.StringBuilder sb = new java.lang.StringBuilder(length); for (int i = start; i < (start + length); i++) { sb.append(java.lang.String.format("%%%02x", buffer[i])); } return sb.toString(); }
public com.wedriveu.services.authentication.entity.User getUser(java.lang.String username) { com.fasterxml.jackson.databind.ObjectMapper mapper = new com.fasterxml.jackson.databind.ObjectMapper(); try { java.util.List<com.wedriveu.services.authentication.entity.User> users = mapper.readValue(new java.io...
public com.wedriveu.services.authentication.entity.User getUser(java.lang.String username) { com.fasterxml.jackson.databind.ObjectMapper mapper = new com.fasterxml.jackson.databind.ObjectMapper(); try { java.util.List<com.wedriveu.services.authentication.entity.User> users = mapper.readValue(file, new c...
public void setImageResource(int resId) { if (getContext().getResources().getResourceTypeName(resId).equals("raw")) { setImageDrawable(new carbon.drawable.VectorDrawable(getResources(), resId)); }else { super.setImageResource(resId); } }
public void setImageResource(int resId) { if ((resId != 0) && (getContext().getResources().getResourceTypeName(resId).equals("raw"))) { setImageDrawable(new carbon.drawable.VectorDrawable(getResources(), resId)); }else { super.setImageResource(resId); } }
public wseemann.media.Metadata getMetadata(final boolean update_only, final boolean apply_filter) { wseemann.media.Metadata data = new wseemann.media.Metadata(); java.util.HashMap<java.lang.String, java.lang.String> metadata = native_getMetadata(); if (!(data.parse(metadata))) { return null; } ...
public wseemann.media.Metadata getMetadata() { boolean update_only = false; boolean apply_filter = false; wseemann.media.Metadata data = new wseemann.media.Metadata(); java.util.HashMap<java.lang.String, java.lang.String> metadata = null; if ((metadata = native_getMetadata(update_only, apply_filter,...
public void onPageSelected(int position) { if ((placeHoderHeaderLayoutList) == null) { return ; } com.stickheaderlayout.PlaceHoderHeaderLayout placeHoderHeaderLayout = placeHoderHeaderLayoutList.valueAt(position); android.view.View mStickheader = mStickHeaderLayout.getStickHeaderView(); plac...
public void onPageSelected(int position) { if ((placeHoderHeaderLayoutList) == null) { return ; } com.stickheaderlayout.PlaceHoderHeaderLayout placeHoderHeaderLayout = placeHoderHeaderLayoutList.valueAt(position); android.view.View mStickheader = mStickHeaderLayout.getStickHeaderView(); if (...
public void setRefreshing(boolean refreshing) { if ((!(isRefreshing)) && refreshing) { this.state = com.charry.krefresh.KRefreshLayout.REFRESHING; isRefreshing = true; if ((mRefreshHeadView) != null) { mRefreshHeadView.pullAction(0); createAnimTransYForHead(mContentVi...
public void setRefreshing(boolean refreshing) { if ((!(isRefreshing)) && refreshing) { this.state = com.charry.krefresh.KRefreshLayout.REFRESHING; isRefreshing = true; if ((mRefreshHeadView) != null) { mRefreshHeadView.pullAction(0); createAnimTransYForHead(mContentVi...
public void setCharacter(java.lang.Character c, int row, int col) { floor[row][col].setOccupant(c); c.setRow(row); c.setCol(col); if (c instanceof artGame.game.Guard) { guards.add(((artGame.game.Guard) (c))); } }
public void setCharacter(java.lang.Character c, int row, int col) { floor[row][col].setOccupant(c); c.setRow(row); c.setCol(col); if ((c instanceof artGame.game.Guard) && (!(guards.contains(((artGame.game.Guard) (c)))))) { guards.add(((artGame.game.Guard) (c))); } }
public byte[] getAuthenticationData(final java.nio.ByteBuffer buffer, final java.lang.String key) { byte[] bufferAsArray; if (buffer.hasArray()) { bufferAsArray = buffer.array(); }else { bufferAsArray = new byte[buffer.limit()]; } return getAuthenticationData(bufferAsArray, key); }
public byte[] getAuthenticationData(final java.nio.ByteBuffer buffer, final java.lang.String key) { byte[] bufferAsArray; if (buffer.hasArray()) { bufferAsArray = buffer.array(); }else { buffer.position(0); bufferAsArray = new byte[buffer.limit()]; buffer.get(bufferAsArray); ...
public java.util.List<storage.Task> write() throws java.io.IOException { java.io.BufferedWriter writer = new java.io.BufferedWriter(new java.io.FileWriter(this._fileName)); java.util.List<storage.Task> taskList = this._taskCollection.getAll(this._taskDescriptor); for (storage.Task task : taskList) { ...
public java.util.List<storage.Task> write() throws java.io.IOException { java.io.BufferedWriter writer = new java.io.BufferedWriter(new java.io.FileWriter(new java.io.File(this._fileName))); java.util.List<storage.Task> taskList = this._taskCollection.getAll(); for (storage.Task task : taskList) { w...
public void start(javafx.stage.Stage primaryStage) { try { javafx.scene.Parent root = javafx.fxml.FXMLLoader.load(getClass().getResource("/view/LandingView.fxml")); javafx.scene.Scene scene = new javafx.scene.Scene(root); primaryStage.setScene(scene); primaryStage.setTitle("AI User I...
public void start(javafx.stage.Stage primaryStage) { try { javafx.scene.Parent root = javafx.fxml.FXMLLoader.load(getClass().getResource("/view/LandingView.fxml")); javafx.scene.Scene scene = new javafx.scene.Scene(root); primaryStage.setScene(scene); primaryStage.setTitle("AI User I...
public static void main(java.lang.String[] args) { SpMap.insertSP(java.lang.Thread.currentThread().hashCode(), 1); java.lang.Thread.currentThread().setName("OneThreadDemo"); java.lang.Thread t = new java.lang.Thread() { @java.lang.Override public void run() { java.lang.System.out...
public static void main(java.lang.String[] args) { SpMap.insertSP(1, java.lang.Thread.currentThread().hashCode()); java.lang.Thread.currentThread().setName("OneThreadDemo"); java.lang.Thread t = new java.lang.Thread() { @java.lang.Override public void run() { java.lang.System.out...
public void onReceive(android.content.Context context, android.content.Intent intent) { if (intent.hasExtra("message")) { android.os.Bundle bundle = intent.getExtras(); io.voicelayer.voicelayerSdk.VoiceLayerMessage message = ((io.voicelayer.voicelayerSdk.VoiceLayerMessage) (bundle.get("message"))); ...
public void onReceive(android.content.Context context, android.content.Intent intent) { if (intent.hasExtra("message")) { android.os.Bundle bundle = intent.getExtras(); io.voicelayer.voicelayerSdk.VoiceLayerMessage message = ((io.voicelayer.voicelayerSdk.VoiceLayerMessage) (bundle.get("message"))); ...
public void onEvent(org.liquidplayer.service.MicroService service, java.lang.String event, org.json.JSONObject payload) { android.os.Bundle bundle = new android.os.Bundle(); bundle.putString(com.phonemap.phonemap.constants.API.RETURN, payload.toString()); messengerSender.setData(bundle).setMessage(com.phone...
public void onEvent(org.liquidplayer.service.MicroService service, java.lang.String event, org.json.JSONObject payload) { android.os.Bundle bundle = new android.os.Bundle(); bundle.putString(com.phonemap.phonemap.constants.API.RETURN, payload.toString()); messengerSender.setMessage(com.phonemap.phonemap.con...
public void onRequestPermissionsResult(int requestCode, java.lang.String[] permissions, int[] grantResults) { switch (requestCode) { case 10 : if (((grantResults.length) > 0) && ((grantResults[0]) == (android.content.pm.PackageManager.PERMISSION_GRANTED))) { gMap.setMyLocationEna...
public void onRequestPermissionsResult(int requestCode, java.lang.String[] permissions, int[] grantResults) { switch (requestCode) { case 10 : if (((grantResults.length) > 0) && ((grantResults[0]) == (android.content.pm.PackageManager.PERMISSION_GRANTED))) { locationManager = ((a...
public boolean evaluate(org.gephi.graph.api.Graph graph, org.gephi.graph.api.Element element) { java.lang.Object p = partition.getValue(element); if (p != null) { int partCount = partition.count(p); return range.isInRange(partCount); } return false; }
public boolean evaluate(org.gephi.graph.api.Graph graph, org.gephi.graph.api.Element element) { java.lang.Object p = partition.getValue(element, graph); if (p != null) { int partCount = partition.count(p); return range.isInRange(partCount); } return false; }
protected void onPostExecute(java.lang.Object params) { mView.setSwappedBitmap(mBitmap); mView.setFaces(mFaces); mView.invalidate(); com.pierfrancescosoffritti.eyeswapper.EventBus.getInstance().post(new com.pierfrancescosoffritti.eyeswapper.ImageReadyEvent(((mFaces.size()) > 1 ? maxOffsetX : 0), ((mFace...
protected void onPostExecute(java.lang.Object params) { mView.setSwappedBitmap(mBitmap); mView.setFaces(mFaces); mView.invalidate(); com.pierfrancescosoffritti.eyeswapper.EventBus.getInstance().post(new com.pierfrancescosoffritti.eyeswapper.ImageReadyEvent(((mFaces.size()) > 1 ? maxOffsetX : 0), ((mFace...
public void onProgressChanged(android.webkit.WebView view, int progress) { MyActivity.setTitle("Surfing..."); MyActivity.setProgress((progress * 100)); if (progress == 100) { MyActivity.setTitle(R.string.app_name); com.example.zsurfer.History h = new com.example.zsurfer.History(contentView.g...
public void onProgressChanged(android.webkit.WebView view, int progress) { MyActivity.setTitle("Surfing..."); MyActivity.setProgress((progress * 100)); if (progress == 100) { MyActivity.setTitle(R.string.app_name); } currentUrl = contentView.getUrl(); url.setText(currentUrl); }
private void loadEditableSchedule() throws java.sql.SQLException { java.util.List<java.lang.String> clinicianNames = clinicianDao.loadClinicianNames(); this.weekA = new gui.admin.scheduleviewer.IAWeeklyComponent(schedule.getIASessionsA(), clinicianNames, bean.IAWeektype.A); this.weekB = new gui.admin.schedu...
private void loadEditableSchedule() throws java.sql.SQLException { java.util.List<java.lang.String> clinicianNames = clinicianDao.loadClinicianNames(); this.weekA = new gui.admin.scheduleviewer.IAWeeklyComponent(schedule.getIASessionsA(), clinicianNames, bean.IAWeektype.A, schedule); this.weekB = new gui.ad...
protected void buildIndexes(java.sql.DatabaseMetaData metaData, java.lang.String schemaName, org.obeonetwork.dsl.database.Table table) { java.util.Map indices = new java.util.HashMap(); java.sql.ResultSet rs = null; try { rs = metaData.getIndexInfo(null, schemaName, table.getName(), false, false); ...
protected void buildIndexes(java.sql.DatabaseMetaData metaData, org.obeonetwork.dsl.database.Table table) { java.util.Map indices = new java.util.HashMap(); java.sql.ResultSet rs = null; try { rs = metaData.getIndexInfo(null, schemaName, table.getName(), false, false); while (rs.next()) { ...
public com.cooksys.fastbook.models.Post addPostToGroup(java.lang.Integer groupId, com.cooksys.fastbook.models.Post post) { org.hibernate.Session session = sessionFactory.getCurrentSession(); groupWall = groupController.getGroup(groupId); java.util.Set<com.cooksys.fastbook.models.Group> groups = post.getGrou...
public com.cooksys.fastbook.models.Post addPostToGroup(java.lang.Integer groupId, com.cooksys.fastbook.models.Post post) { org.hibernate.Session session = sessionFactory.getCurrentSession(); com.cooksys.fastbook.models.Group groupWall = groupController.getGroup(groupId); java.util.Set<com.cooksys.fastbook.m...
protected T getSingleResult(javax.persistence.Query query) { @java.lang.SuppressWarnings(value = "unchecked") java.util.List<T> list = query.getResultList(); if ((list.size()) == 0) return null; if ((list.size()) == 1) return list.get(0); throw new javax.persistence.NonUniq...
protected T getSingleResult(javax.persistence.Query query) { @java.lang.SuppressWarnings(value = "unchecked") java.util.List<T> list = query.getResultList(); if (list.isEmpty()) return null; if ((list.size()) == 1) return list.get(0); throw new javax.persistence.NonUniqueRe...
public static void prepareTestClass() throws java.lang.Exception { setupIntegrationTestEnvironmentForTransactionalTests(); eu.bittrade.libs.steemj.base.models.AccountName challengedAccount = new eu.bittrade.libs.steemj.base.models.AccountName("dez1337"); eu.bittrade.libs.steemj.base.models.operations.ProveA...
public static void prepareTestClass() throws java.lang.Exception { setupIntegrationTestEnvironmentForTransactionalTests(); eu.bittrade.libs.steemj.base.models.AccountName challengedAccount = new eu.bittrade.libs.steemj.base.models.AccountName("dez1337"); eu.bittrade.libs.steemj.base.models.operations.ProveA...
protected void processPlayRequest() { this.mDelayedStopHandler.removeCallbacksAndMessages(null); if (!(this.mIsStarted)) { this.mIsStarted = true; } if (!(this.mMediaSession.isActive())) { this.mMediaSession.setActive(true); } if (this.isIndexPlayable(this.mCurrentIndexOnQueue, t...
protected void processPlayRequest() { if (!(this.mIsStarted)) { this.mIsStarted = true; } if (!(this.mMediaSession.isActive())) { this.mMediaSession.setActive(true); } if (this.isIndexPlayable(this.mCurrentIndexOnQueue, this.mPlayingQueue)) { this.updateMetadata(); th...
public void sendQuery(java.lang.String query) { java.lang.String sqlConName = guiController.getChosenDatabase(); de.szut.brennecke.SQLiteBrowser.SQL.SQLConnection sqlCon = getSQLConnection(sqlConName); if (sqlCon != null) { java.sql.ResultSet rs = sqlCon.sendQuery(query); if (!(wrongQueryFla...
public void sendQuery(java.lang.String query) { java.lang.String sqlConName = guiController.getChosenDatabase(); de.szut.brennecke.SQLiteBrowser.SQL.SQLConnection sqlCon = getSQLConnection(sqlConName); if (sqlCon != null) { java.sql.ResultSet rs = sqlCon.sendQuery(query); if (!(wrongQueryFla...
public static void lessThan(java.lang.String message, double lhs, double rhs, double margin) { com.johnuckele.vtest.Tester.checkScope(); java.lang.System.out.println(((((((("\t\t" + message) + ": ") + lhs) + " < ") + rhs) + " ± ") + margin)); double difference = lhs - rhs; com.johnuckele.vtest.Tester.te...
public static void lessThan(java.lang.String message, float lhs, float rhs, float margin) { com.johnuckele.vtest.Tester.checkScope(); java.lang.System.out.println(((((((("\t\t" + message) + ": ") + lhs) + " < ") + rhs) + " ± ") + margin)); com.johnuckele.vtest.Tester.test((lhs < (rhs - (java.lang.Math.abs(m...
public void readFromNBT(net.minecraft.nbt.NBTTagCompound nbt) { int length = nbt.getInteger("length"); for (int i = 0; i < length; i++) { prototypes.add((nbt.hasKey(("pro" + i)) ? com.Da_Technomancer.crossroads.API.technomancy.PrototypeInfo.readFromNBT(nbt.getCompoundTag(("pro" + i))) : null)); } ...
public void readFromNBT(net.minecraft.nbt.NBTTagCompound nbt) { int length = nbt.getInteger("length"); for (int i = 0; i < length; i++) { prototypes.add((nbt.hasKey(("pro" + i)) ? com.Da_Technomancer.crossroads.API.technomancy.PrototypeInfo.readFromNBT(nbt.getCompoundTag(("pro" + i))) : null)); } }
if ((s.length()) == 0) return s; while ((s.charAt(((s.length()) - 1))) == '\r') { s = s.subSequence(0, ((s.length()) - 1)); } return s; }
if ((s.length()) == 0) return s; if ((s.charAt(((s.length()) - 1))) == '\r') { s = s.subSequence(0, ((s.length()) - 1)); } return s; }
private void insertCell(com.itextpdf.text.pdf.PdfPTable table, java.lang.String text, int align, int colspan, com.itextpdf.text.Font font) { com.itextpdf.text.pdf.PdfPCell cell = new com.itextpdf.text.pdf.PdfPCell(new com.itextpdf.text.Phrase(text.trim(), font)); cell.setHorizontalAlignment(align); cell.set...
private void insertCell(com.itextpdf.text.pdf.PdfPTable table, java.lang.String text, int align, int colspan, com.itextpdf.text.Font font) { com.itextpdf.text.pdf.PdfPCell cell = new com.itextpdf.text.pdf.PdfPCell(new com.itextpdf.text.Phrase((text == null ? "" : text.trim()), font)); cell.setHorizontalAlignmen...
public github.jschmidt10.survivor.RestResponse handle(github.jschmidt10.survivor.api.Pool pool, com.amazonaws.services.lambda.runtime.Context context) { com.amazonaws.services.lambda.runtime.LambdaLogger logger = context.getLogger(); try { boolean result = execute(pool); return result ? github.j...
public github.jschmidt10.survivor.RestResponse handle(github.jschmidt10.survivor.api.Pool pool, com.amazonaws.services.lambda.runtime.Context context) { com.amazonaws.services.lambda.runtime.LambdaLogger logger = context.getLogger(); try { if (execute(pool)) { return github.jschmidt10.surviv...
public void invalidStockSymbolAlert(android.content.Context context) { android.app.AlertDialog.Builder builder = new android.app.AlertDialog.Builder(mContext); builder.setMessage("The Stock Symbol entered is invalid.\n Please enter a valid Stock Symbol.").setPositiveButton("OK", new android.content.DialogInterf...
public void invalidStockSymbolAlert(android.content.Context context) { android.app.AlertDialog.Builder builder = new android.app.AlertDialog.Builder(context); builder.setMessage("The Stock Symbol entered is invalid.\n Please enter a valid Stock Symbol.").setPositiveButton("OK", new android.content.DialogInterfa...
private static com.magnet.mmx.server.plugin.mmxmgmt.servlet.integration.PushConfigSuppressResource.PushConfigSuppressResponse convertResponse(com.magnet.mmx.server.plugin.mmxmgmt.push.config.model.MMXPushSuppress s) { com.magnet.mmx.server.plugin.mmxmgmt.servlet.integration.PushConfigSuppressResource.PushConfigSupp...
private static com.magnet.mmx.server.plugin.mmxmgmt.servlet.integration.PushConfigSuppressResource.PushConfigSuppressResponse convertResponse(com.magnet.mmx.server.plugin.mmxmgmt.push.config.model.MMXPushSuppress s) { com.magnet.mmx.server.plugin.mmxmgmt.servlet.integration.PushConfigSuppressResource.PushConfigSupp...
public void testDeleteUser() { java.lang.String randomUN = java.util.UUID.randomUUID().toString(); java.lang.String randomPW = java.util.UUID.randomUUID().toString(); codeu.chat.server.DatabaseTest.con.addAccount(randomUN, randomPW); org.junit.Assert.assertTrue(codeu.chat.server.DatabaseTest.con.deleteA...
public void testDeleteUser() { java.lang.String randomUN = java.util.UUID.randomUUID().toString(); java.lang.String randomPW = java.util.UUID.randomUUID().toString(); codeu.chat.server.DatabaseTest.con.addAccount(randomUN, randomPW); assertTrue(codeu.chat.server.DatabaseTest.con.deleteAccount(randomUN))...
public java.lang.Enum getEnumByHashCode(long hashCode) { if ((enums) == null) { return null; } int enumIndex = java.util.Arrays.binarySearch(this.enumNameHashCodes, hashCode); if (enumIndex == (-1)) { return null; } return enums[enumIndex]; }
public java.lang.Enum getEnumByHashCode(long hashCode) { if ((enums) == null) { return null; } int enumIndex = java.util.Arrays.binarySearch(this.enumNameHashCodes, hashCode); if (enumIndex < 0) { return null; } return enums[enumIndex]; }
public void play(java.util.Collection<java.io.File> musicFiles) { try { ch.mobpro.vibra.VibraMusicService.VibraPlayMusicTask playTask = new ch.mobpro.vibra.VibraMusicService.VibraPlayMusicTask(); for (java.io.File musicFile : musicFiles) { while (ch.mobpro.vibra.VibraMusicService.mp.isPl...
public void play(java.util.Collection<java.io.File> musicFiles) { try { ch.mobpro.vibra.VibraMusicService.VibraPlayMusicTask playTask = new ch.mobpro.vibra.VibraMusicService.VibraPlayMusicTask(); for (java.io.File musicFile : musicFiles) { playTask.execute(musicFile); } } cat...
public static void prepareTestClass() throws java.lang.Exception { setupIntegrationTestEnvironmentForTransactionalTests(); eu.bittrade.libs.steemj.base.models.AccountName accountToRecover = new eu.bittrade.libs.steemj.base.models.AccountName("steemj"); eu.bittrade.libs.steemj.base.models.AccountName newReco...
public static void prepareTestClass() throws java.lang.Exception { setupIntegrationTestEnvironmentForTransactionalTests(); eu.bittrade.libs.steemj.base.models.AccountName accountToRecover = new eu.bittrade.libs.steemj.base.models.AccountName("dez1337"); eu.bittrade.libs.steemj.base.models.AccountName newRec...
public void run() { if (((layoutWrapper) != null) && ((this.relativeLayout) != null)) { this.relativeLayout.removeView(layoutWrapper); this.relativeLayout.requestLayout(); layoutWrapper = null; } removed[0] = true; }
public void run() { try { if (((layoutWrapper) != null) && ((this.relativeLayout) != null)) { this.relativeLayout.removeView(layoutWrapper); this.relativeLayout.requestLayout(); layoutWrapper = null; } } finally { removed[0] = true; } }
private void initUmengShare() { com.umeng.socialize.PlatformConfig.setWeixin(ConstantValues.WECHAT_ID, ConstantValues.WECHAT_SECRET); com.umeng.socialize.PlatformConfig.setSinaWeibo(ConstantValues.SINA_KEY, ConstantValues.SINA_SECRET); com.umeng.socialize.PlatformConfig.setQQZone(ConstantValues.TENCENT_ID, ...
private void initUmengShare() { com.umeng.socialize.PlatformConfig.setWeixin(ConstantValues.WECHAT_ID, ConstantValues.WECHAT_SECRET); com.umeng.socialize.PlatformConfig.setSinaWeibo(ConstantValues.SINA_KEY, ConstantValues.SINA_SECRET); com.umeng.socialize.PlatformConfig.setQQZone(ConstantValues.TENCENT_ID, ...
public java.lang.String toString() { java.lang.String geneString = ""; for (int i = 0; i < (size()); i++) { geneString += (getGene(i)) + " "; return geneString; } geneString += "Routes: "; for (int i = 0; i < (ROUTES); i++) { geneString += getRouteLength(i); } return ...
public java.lang.String toString() { java.lang.String geneString = ""; for (int i = 0; i < (size()); i++) { geneString += (getGene(i)) + " "; } geneString += "Routes: "; for (int i = 0; i < (ROUTES); i++) { geneString += getRouteLength(i); } return geneString; }
public int onStartCommand(android.content.Intent intent, int flags, int startId) { buildGoogleApiClient(); spm = new trainedge.companera.SoundProfileManager(this); if (((mGoogleApiClient) != null) && (!(mGoogleApiClient.isConnected()))) { mGoogleApiClient.connect(); } android.widget.Toast.ma...
public int onStartCommand(android.content.Intent intent, int flags, int startId) { buildGoogleApiClient(); spm = new trainedge.companera.SoundProfileManager(this); if (((mGoogleApiClient) != null) && (!(mGoogleApiClient.isConnected()))) { mGoogleApiClient.connect(); } return START_STICKY_COM...
public int predict(java.io.File faceImgFile) { int label; com.example.fanchaozhou.project3.CvMat face = cvLoadImageM(faceImgFile.getPath(), com.example.fanchaozhou.project3.CV_LOAD_IMAGE_GRAYSCALE); com.example.fanchaozhou.project3.CvMat grayFace = face.clone(); cvEqualizeHist(face, grayFace); label...
public int predict(java.io.File faceImgFile) { int label; com.example.fanchaozhou.project3.CvMat face = cvLoadImageM(faceImgFile.getPath(), com.example.fanchaozhou.project3.CV_LOAD_IMAGE_GRAYSCALE); com.example.fanchaozhou.project3.CvMat grayFace = face.clone(); cvEqualizeHist(face, grayFace); label...
public void isSimple() { org.expath.ns.GeoTest.run(("geo:isSimple(<gml:LineString><gml:coordinates>1,1 20,1 10,4 20,-10" + "</gml:coordinates></gml:LineString>)"), "false"); org.expath.ns.GeoTest.error("geo:isSimple(text {'a'})", org.expath.ns.INVCAST_X_X_X.qname()); org.expath.ns.GeoTest.error("geo:isSimpl...
public void isSimple() { org.expath.ns.GeoTest.run(("geo:isSimple(<gml:LineString><gml:coordinates>1,1 20,1 10,4 20,-10" + "</gml:coordinates></gml:LineString>)"), "false"); org.expath.ns.GeoTest.error("geo:isSimple(text {'a'})", org.expath.ns.INVCAST_X_X_X); org.expath.ns.GeoTest.error("geo:isSimple(<gml:u...
private void rebuildShadowTree() { java.util.Map<org.zkoss.zk.ui.Component, java.lang.Integer> oldCacheMap = getIndexCacheMap(); final boolean destroyCacheMap = oldCacheMap == null; try { if (destroyCacheMap) oldCacheMap = initIndexCacheMap(); rebuildSubShadowTree(); ...
private void rebuildShadowTree() { java.util.Map<org.zkoss.zk.ui.Component, java.lang.Integer> oldCacheMap = getIndexCacheMap(); final boolean destroyCacheMap = oldCacheMap == null; try { if (destroyCacheMap) initIndexCacheMap(); rebuildSubShadowTree(); } finally { ...
public boolean isSegment() { insureStreamOpened(); if ((this.contentType) != null) { if (this.contentType.toLowerCase().equals("text/segments-manifest")) { return true; }else if (this.url.toLowerCase().endsWith("segments")) { return true; } ...
public boolean isSegment() { insureStreamOpened(); if ((this.contentType) != null) { if (this.contentType.toLowerCase().equals("text/segments-manifest")) { return true; } }else if (this.url.toLowerCase().endsWith("segments")) { return true; } ...
public void takePicture() { android.content.Intent takePictureIntent = new android.content.Intent(android.provider.MediaStore.ACTION_IMAGE_CAPTURE); java.io.File dir = android.os.Environment.getExternalStoragePublicDirectory(Environment.DIRECTORY_PICTURES); java.lang.String timeStamp = new java.text.SimpleD...
public void takePicture() { android.content.Intent takePictureIntent = new android.content.Intent(android.provider.MediaStore.ACTION_IMAGE_CAPTURE); java.io.File dir = android.os.Environment.getExternalStoragePublicDirectory(Environment.DIRECTORY_PICTURES); java.lang.String timeStamp = new java.text.SimpleD...
public battleships.logic.Ship play(int x, int y) { battleships.logic.Ship ship; if ((inTurn) instanceof battleships.ai.Ai) { battleships.ai.Ai ai = ((battleships.ai.Ai) (inTurn)); x = ai.getShootingCoordinates()[0]; y = ai.getShootingCoordinates()[1]; } ship = opponent.shoot(x, y...
public battleships.logic.Ship play(int x, int y) { battleships.logic.Ship ship; if ((inTurn) instanceof battleships.ai.Ai) { battleships.ai.Ai ai = ((battleships.ai.Ai) (inTurn)); int[] c = ai.getShootingCoordinates(); x = c[0]; y = c[1]; } ship = opponent.shoot(x, y); ...
public boolean contains(Utilities.ItemUtilities.ItemsEnum itemsEnum) { if (itemsEnum == null) { return true; } for (int i = 0; i < (cap); i++) { if ((items[i]) != null) { } if ((items[i].getItemType()) == itemsEnum) { return true; } } return false;...
public boolean contains(Utilities.ItemUtilities.ItemsEnum itemsEnum) { if (itemsEnum == null) { return true; } for (int i = 0; i < (cap); i++) { if ((items[i]) != null) { if ((items[i].getItemType()) == itemsEnum) { return true; } } } r...
public void close() throws java.lang.InterruptedException, java.util.concurrent.ExecutionException { org.opendaylight.sfc.ofrenderer.SfcOfRenderer.LOG.info("SfcOfRenderer auto-closed"); try { if ((sfcOfFlowProgrammer) != null) { sfcOfFlowProgrammer.shutdown(); } if ((pktInReg...
public void close() throws java.lang.Exception { org.opendaylight.sfc.ofrenderer.SfcOfRenderer.LOG.info("SfcOfRenderer auto-closed"); try { if ((sfcOfFlowProgrammer) != null) { sfcOfFlowProgrammer.shutdown(); } if ((pktInRegistration) != null) { pktInRegistration....
public static void loadSignDataInto(java.io.File dataFolder, java.lang.String fileName, org.bukkit.configuration.file.FileConfiguration signDataConfig) { java.io.File signFile = new java.io.File(dataFolder, fileName); if (!(signFile.exists())) { try { signFile.createNewFile(); si...
public static org.bukkit.configuration.file.FileConfiguration loadSignDataInto(java.io.File dataFolder, java.lang.String fileName, org.bukkit.configuration.file.FileConfiguration signDataConfig) { java.io.File signFile = new java.io.File(dataFolder, fileName); if (!(signFile.exists())) { try { ...
public void installYamlFilesFromPackage(com.day.jcr.vault.fs.io.Archive archive, javax.jcr.Session session) throws java.lang.Exception { biz.netcentric.cq.tools.actool.installationhistory.AcInstallationHistoryPojo history = new biz.netcentric.cq.tools.actool.installationhistory.AcInstallationHistoryPojo(); java...
public biz.netcentric.cq.tools.actool.installationhistory.AcInstallationHistoryPojo installYamlFilesFromPackage(com.day.jcr.vault.fs.io.Archive archive, javax.jcr.Session session) throws java.lang.Exception { biz.netcentric.cq.tools.actool.installationhistory.AcInstallationHistoryPojo history = new biz.netcentric.c...
public void append(final java.lang.String name, final java.lang.Number xValue, final java.lang.Number yValue, final org.eclipse.core.runtime.IProgressMonitor monitor) throws java.lang.Exception { if ((this.traceClazz) == (org.eclipse.dawnsci.plotting.api.trace.ILineTrace.class)) throw new java.lang.Exceptio...
public void append(final java.lang.String name, final java.lang.Number xValue, final java.lang.Number yValue, final org.eclipse.core.runtime.IProgressMonitor monitor) throws java.lang.Exception { if ((this.traceClazz) != (org.eclipse.dawnsci.plotting.api.trace.ILineTrace.class)) throw new java.lang.Exceptio...
public void sheetClosed(org.apache.pivot.wtk.Sheet sheet) { if (sheet.getResult()) { java.io.File convertWthFile = browse.getSelectedFile(); convertWthText.setText(convertWthFile.getPath()); pref.put("last_input_raw_wth", convertWthFile.getPath()); } }
public void sheetClosed(org.apache.pivot.wtk.Sheet sheet) { if (sheet.getResult()) { java.io.File convertWthFile = browse.getSelectedFile(); convertWthText.setText(convertWthFile.getPath()); if ((pref) != null) { pref.put("last_input_raw_wth", convertWthFile.getPath()); }...
public java.lang.String departmentForm(@io.khasang.archivarius.controller.PathVariable(value = "id") java.lang.String id, org.springframework.ui.ModelMap model) { io.khasang.archivarius.entity.Department department = departmentService.getDepartmentById(java.lang.Integer.valueOf(id)); model.addAttribute("compani...
public java.lang.String departmentForm(@io.khasang.archivarius.controller.PathVariable(value = "id") java.lang.String id, org.springframework.ui.ModelMap model) { io.khasang.archivarius.entity.Department department = departmentService.getDepartmentById(java.lang.Integer.valueOf(id)); model.addAttribute("compani...
private java.lang.String currentRFID() { java.lang.String currentRFID = "unknown"; if ((com.faradice.firmware.Firmware.currentID) == null) { return currentRFID; } try { currentRFID = com.faradice.firmware.Firmware.currentID.trim(); int endPos = currentRFID.indexOf(" "); i...
private java.lang.String currentRFID() { java.lang.String currentRFID = null; if ((com.faradice.firmware.Firmware.currentID) == null) { return currentRFID; } try { currentRFID = com.faradice.firmware.Firmware.currentID.trim(); int endPos = currentRFID.indexOf(" "); if (en...
private void writeIfPossible() { while (((_buffer.readableBytes()) > 0) && (_ctx.channel().isWritable())) { final int bytesWritten = _buffer.readableBytes(); io.netty.handler.codec.http.HttpContent content = new io.netty.handler.codec.http.DefaultHttpContent(_buffer); _ctx.writeAndFlush(cont...
private void writeIfPossible() { while ((_buffer.readableBytes()) > 0) { final int bytesWritten = _buffer.readableBytes(); io.netty.handler.codec.http.HttpContent content = new io.netty.handler.codec.http.DefaultHttpContent(_buffer); _ctx.writeAndFlush(content).addListener(new io.netty.chann...
public void modifyNFSACL(java.lang.String fspath, com.emc.storageos.isilon.restapi.IsilonNFSACL acl) throws com.emc.storageos.isilon.restapi.IsilonException { try { fspath = java.net.URLEncoder.encode(fspath, "UTF-8"); } catch (java.io.UnsupportedEncodingException e) { e.printStackTrace(); }...
public void modifyNFSACL(java.lang.String fspath, com.emc.storageos.isilon.restapi.IsilonNFSACL acl) throws com.emc.storageos.isilon.restapi.IsilonException { java.lang.String aclUrl = fspath.concat("?acl").substring(1); try { aclUrl = java.net.URLEncoder.encode(aclUrl, "UTF-8"); } catch (java.io.Un...
java.lang.String parseNumericOrStr(org.apache.poi.ss.usermodel.Row row, int columnIndex) { org.apache.poi.ss.usermodel.Cell cell = row.getCell(columnIndex); int type = cell.getCellType(); java.lang.String val = null; if (type == (org.apache.poi.ss.usermodel.Cell.CELL_TYPE_STRING)) { val = cell.g...
java.lang.String parseNumericOrStr(org.apache.poi.ss.usermodel.Row row, int columnIndex) { org.apache.poi.ss.usermodel.Cell cell = row.getCell(columnIndex); if (cell == null) { return null; } int type = cell.getCellType(); java.lang.String val = null; if (type == (org.apache.poi.ss.userm...
public void testAcesUp() { org.doctester.testbrowser.Response response = makeRequest(org.doctester.testbrowser.Request.GET().url(testServerUrl().path(URL_ACES_UP))); org.junit.Assert.assertThat(response.payload, org.hamcrest.CoreMatchers.containsString("Aces Up")); org.junit.Assert.assertThat(response.paylo...
public void testAcesUp() { org.doctester.testbrowser.Response response = makeRequest(org.doctester.testbrowser.Request.GET().url(testServerUrl().path(URL_ACES_UP))); assertThat(response.payload, org.hamcrest.CoreMatchers.containsString("Aces Up")); assertThat(response.payload, org.hamcrest.CoreMatchers.cont...
public void PlayerGetBattleField() throws java.lang.Exception { group5.battleship.src.logic.Player p1 = new group5.battleship.src.logic.Player("p1"); int[][] bla = p1.getBattleField(); for (int i = 0; i < 5; i++) { for (int j = 0; j < 5; j++) { org.junit.Assert.assertEquals(pl.getBattleF...
public void PlayerGetBattleField() throws java.lang.Exception { group5.battleship.src.logic.Player p1 = new group5.battleship.src.logic.Player("p1", 5); int[][] bla = p1.getBattleField(); for (int i = 0; i < 5; i++) { for (int j = 0; j < 5; j++) { org.junit.Assert.assertEquals(pl.getBatt...
public void createPartControl(org.eclipse.swt.widgets.Composite parent) { fParentComposite = parent; if ((this) instanceof org.eclipse.tracecompass.tmf.ui.views.ITmfTimeAligned) { parent.addControlListener(new org.eclipse.swt.events.ControlListener() { @java.lang.Override public ...
public void createPartControl(org.eclipse.swt.widgets.Composite parent) { fParentComposite = parent; if ((this) instanceof org.eclipse.tracecompass.tmf.ui.views.ITmfTimeAligned) { parent.addControlListener(new org.eclipse.swt.events.ControlListener() { @java.lang.Override public ...
private void updatePrincipalContinuation(int currPly, boolean isTerminalNode, com.fluxchess.jcpi.models.GenericMove currMove) { pc[currPly][currPly] = currMove; if (!isTerminalNode) { for (int nextPly = currPly + 1; nextPly < (eubos.board.MiniMaxMoveGenerator.SEARCH_DEPTH_IN_PLY); nextPly++) { ...
private void updatePrincipalContinuation(int currPly, com.fluxchess.jcpi.models.GenericMove currMove) { pc[currPly][currPly] = currMove; for (int nextPly = currPly + 1; nextPly < (eubos.board.MiniMaxMoveGenerator.SEARCH_DEPTH_IN_PLY); nextPly++) { pc[currPly][nextPly] = pc[nextPly][nextPly]; } }
public static void publishInvalidRequest(javax.servlet.http.HttpServletRequest request, org.wso2.carbon.identity.application.authentication.framework.context.AuthenticationContext context) { com.wso2telco.ids.datapublisher.model.UserStatus uStatus = com.wso2telco.ids.datapublisher.util.DataPublisherUtil.buildUserSt...
public static void publishInvalidRequest(javax.servlet.http.HttpServletRequest request) { com.wso2telco.ids.datapublisher.model.UserStatus uStatus = com.wso2telco.ids.datapublisher.util.DataPublisherUtil.buildUserStatusFromRequest(request); uStatus.setStatus(com.wso2telco.ids.datapublisher.util.DataPublisherUti...
private static java.util.Map<java.lang.String, java.lang.Object> getStrengthWorkout(final java.lang.String workoutName, final java.lang.String exerciseName1, final java.lang.String exerciseName2) { return new java.util.HashMap<java.lang.String, java.lang.Object>() { { put(SharedPreferencesHelper...
private static java.util.Map<java.lang.String, java.lang.Object> getStrengthWorkout(final java.lang.String workoutName, final java.lang.String exerciseName1, final java.lang.String exerciseName2) { return new java.util.HashMap<java.lang.String, java.lang.Object>() { { put(SharedPreferencesHelper...
private double getStdrDeviation(double[] values) { double mean = getMean(values); double aux = 0; for (double a : values) { aux += (mean - a) * (mean - a); } return java.lang.Math.sqrt((aux / (values.length))); }
private double getStdrDeviation(double[] values) { double mean = getMean(values); double aux = 0; for (double a : values) { aux += (a - mean) * (a - mean); } return java.lang.Math.sqrt((aux / (values.length))); }
private boolean isGeneralArgument(final com.forgerock.opendj.cli.Argument arg) { boolean general = false; if (arg != null) { final java.lang.String longId = arg.getLongIdentifier(); general = (com.forgerock.opendj.cli.OPTION_LONG_HELP.equals(longId)) || (com.forgerock.opendj.cli.OPTION_LONG_PROD...
private boolean isGeneralArgument(final com.forgerock.opendj.cli.Argument arg) { if (arg != null) { final java.lang.String longId = arg.getLongIdentifier(); return (com.forgerock.opendj.cli.OPTION_LONG_HELP.equals(longId)) || (com.forgerock.opendj.cli.OPTION_LONG_PRODUCT_VERSION.equals(longId)); ...
java.util.ArrayList<mainWindow.Pokemon> getPokemon() { readData(); data = new java.util.ArrayList<mainWindow.Pokemon>(); int i = 0; while (i < (masterList.size())) { data.add(masterList.get(i)); i++; } return data; }
java.util.ArrayList<mainWindow.Pokemon> getPokemon() { readData(); data = new java.util.ArrayList<mainWindow.Pokemon>(); int i = 0; while (i < (masterList.size())) { data.add(new mainWindow.Pokemon(masterList.get(i))); i++; } return data; }
private boolean isValidBiomeName(java.lang.String biomeName) { net.minecraft.world.biome.BiomeGenBase[] allBiomes = net.minecraft.world.biome.BiomeGenBase.getBiomeGenArray(); for (net.minecraft.world.biome.BiomeGenBase allBiome : allBiomes) { if ((allBiome != null) && (allBiome != (net.minecraft.world.b...
private boolean isValidBiomeName(java.lang.String biomeName) { biomeName = biomeName.toLowerCase(); net.minecraft.world.biome.BiomeGenBase[] allBiomes = net.minecraft.world.biome.BiomeGenBase.getBiomeGenArray(); for (net.minecraft.world.biome.BiomeGenBase allBiome : allBiomes) { if ((allBiome != nul...
public void treeWith10kEntriesIsValid() throws RedBlackTreeTest.TreePropertyException { RedBlackTree<java.lang.Integer> tree = new RedBlackTree<java.lang.Integer>(); java.util.Random random = new java.util.Random(); for (int i = 1; i <= 10000; i++) { tree.insert(((random.nextInt(10000)) - 5000)); ...
public void treeWith10kEntriesIsValid() throws RedBlackTreeTest.TreePropertyException { RedBlackTree<java.lang.Integer> tree = new RedBlackTree<java.lang.Integer>(); java.util.Random random = new java.util.Random(); for (int i = 1; i <= 10000; i++) { tree.add(((random.nextInt(10000)) - 5000)); }...
private int getResolvedLongPressOnPowerBehavior() { if (android.os.FactoryTest.isLongPressOnPowerOffEnabled()) { return com.android.server.policy.PhoneWindowManager.LONG_PRESS_POWER_SHUT_OFF_NO_CONFIRM; } if ((mTorchLongPressPowerEnabled) && (!(isScreenOn()))) { return com.android.server.pol...
private int getResolvedLongPressOnPowerBehavior() { if (android.os.FactoryTest.isLongPressOnPowerOffEnabled()) { return com.android.server.policy.PhoneWindowManager.LONG_PRESS_POWER_SHUT_OFF_NO_CONFIRM; } if ((mTorchLongPressPowerEnabled) && (!(isScreenOn()))) { return com.android.server.pol...
public void run() { view.setAlpha(((view.getAlpha()) - 0.02F)); if ((view.getAlpha()) <= 0) { isProductRemoved.remove(pos); guiProducts.remove(pos); adapter.notifyItemRemoved(pos); this.cancel(); } }
public void run() { if ((isProductRemoved.get(pos)) == false) { view.setAlpha(1.0F); this.cancel(); } view.setAlpha(((view.getAlpha()) - 0.02F)); if ((view.getAlpha()) <= 0) { isProductRemoved.remove(pos); guiProducts.remove(pos); adapter.notifyItemRemoved(pos); ...
public void processTweet(Tweet tweet) { long timeDif = tweet.timeBetween(latest); if ((timeDif < (window)) || ((tweet.getHashtags().length) < 2)) return ; if (timeDif > 0) { latest = new java.util.Date(tweet.getTimestamp().getTime()); removeOldEdges(); } addEdges(tweet.g...
public void processTweet(Tweet tweet) { long timeDif = tweet.timeBetween(latest); if (timeDif > 0) { latest = new java.util.Date(tweet.getTimestamp().getTime()); removeOldEdges(); } if ((timeDif < (window)) || ((tweet.getHashtags().length) < 2)) return ; addEdges(tweet.g...
public void testParseNoAssignment() { java.lang.String strSettings = "abc"; org.mrgeo.data.vector.geowave.Map<java.lang.String, java.lang.String> settings = new org.mrgeo.data.vector.geowave.HashMap<java.lang.String, java.lang.String>(); try { org.mrgeo.data.vector.geowave.GeoWaveVectorDataProvider....
public void testParseNoAssignment() { java.lang.String strSettings = "abc"; java.util.Map<java.lang.String, java.lang.String> settings = new java.util.HashMap<java.lang.String, java.lang.String>(); try { org.mrgeo.data.vector.geowave.GeoWaveVectorDataProvider.parseDataSourceSettings(strSettings, set...
public java.lang.Double calculateProfit(java.lang.Integer portfolioid) { java.lang.Double profit = 0.0; java.util.List<com.citi.portfolio.entity.Position> positions = positionService.getAllPositionsOfPortfolio(portfolioid); for (com.citi.portfolio.entity.Position position : positions) { profit += po...
public java.lang.Double calculateProfit(java.lang.Integer portfolioid) { java.lang.Double profit = 0.0; java.util.List<com.citi.portfolio.entity.Position> positions = positionService.getAllPositionsOfPortfolio(portfolioid); for (com.citi.portfolio.entity.Position position : positions) { if ((positio...
if (args == null) { return null; } final java.lang.String[] tokenize = hudson.plugins.msbuild.Util.tokenize(args); if (tokenize == null) { return null; } if ((args != null) && (args.endsWith("\\"))) { tokenize[((tokenize.length) - 1)] = (tokenize[((tokenize.length) - 1)])...
if (args == null) { return null; } final java.lang.String[] tokenize = hudson.plugins.msbuild.Util.tokenize(args); if (args.endsWith("\\")) { tokenize[((tokenize.length) - 1)] = (tokenize[((tokenize.length) - 1)]) + "\\"; } return tokenize; }
protected void doPost(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws java.io.IOException, javax.servlet.ServletException { response.getWriter().append("Served at: ").append(request.getContextPath()); beans.Person p = servlets.BeanProcessor.loadABeanFromDat...
protected void doPost(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws java.io.IOException, javax.servlet.ServletException { response.getWriter().append("Served at: ").append(request.getContextPath()); beans.Person p = servlets.BeanProcessor.loadABeanFromDat...
private long getInitialOffset(org.springframework.integration.kafka.core.KafkaTemplate template, java.lang.String topicName) { try { org.springframework.integration.kafka.core.Partition partition = new org.springframework.integration.kafka.core.Partition(org.springframework.xd.dirt.integration.kafka.KafkaMe...
private long getInitialOffset(org.springframework.integration.kafka.core.KafkaTemplate template, java.lang.String topicName) { try { org.springframework.integration.kafka.core.Partition partition = new org.springframework.integration.kafka.core.Partition(org.springframework.xd.dirt.integration.kafka.KafkaMe...
protected java.net.URI rewriteURI(javax.servlet.http.HttpServletRequest request) { java.lang.String query = request.getQueryString(); if ((this.url) == null) { return getEntityFromServer(query); } return java.net.URI.create((((this.url) + "?") + query)); }
protected java.net.URI rewriteURI(javax.servlet.http.HttpServletRequest request) { java.lang.String query = request.getQueryString(); if ((this.url) == null) { return getEntityFromServer(query); } return query != null ? java.net.URI.create((((this.url) + "?") + query)) : java.net.URI.create(this...
private java.util.List<com.zingkg.arkhamhorrorassistant.xml.CultEncounter> parseCultEncounterResource(int resource) { java.io.Reader reader = readResource(R.raw.cult_encounter); java.util.List<com.zingkg.arkhamhorrorassistant.xml.CultEncounter> cards = com.zingkg.arkhamhorrorassistant.xml.CultEncounter.parseRea...
private java.util.List<com.zingkg.arkhamhorrorassistant.xml.CultEncounter> parseCultEncounterResource(int resource) { java.io.Reader reader = readResource(resource); java.util.List<com.zingkg.arkhamhorrorassistant.xml.CultEncounter> cards = com.zingkg.arkhamhorrorassistant.xml.CultEncounter.parseReader(reader);...
public static java.io.File createEventFile(javax.swing.JFrame parent, java.io.File[] inputFileArray, java.lang.Integer startYear, java.lang.Integer endYear, org.fhaes.enums.FireFilterType fireFilterType, java.lang.Double fireFilterValue, java.lang.Integer minNumberSamples, java.lang.String comments) { java.io.File ...
public static java.io.File createEventFile(javax.swing.JFrame parent, java.io.File[] inputFileArray, java.lang.Integer startYear, java.lang.Integer endYear, org.fhaes.enums.FireFilterType fireFilterType, java.lang.Double fireFilterValue, java.lang.Integer minNumberSamples, java.lang.String comments) { java.io.File ...
public void onItemClick(android.widget.AdapterView<?> parent, android.view.View view, int position, long id) { android.widget.Toast.makeText(getActivity(), ("Click item" + position), Toast.LENGTH_SHORT).show(); listterner.sendid(mDatas.get(position).getId()); }
public void onItemClick(android.widget.AdapterView<?> parent, android.view.View view, int position, long id) { android.widget.Toast.makeText(getActivity(), ("Click item" + position), Toast.LENGTH_SHORT).show(); listterner.sendid(mDatas.get((position - 1)).getId()); }
public boolean checkGuess(java.lang.String input) { if (!(isNumeric(input))) return false; else if ((((java.lang.Integer.parseInt(input)) == 0) || ((java.lang.Integer.parseInt(input)) > 20)) || ((java.lang.Integer.parseInt(input)) < 5)) return false; else return t...
public boolean checkGuess(java.lang.String input) { if (input == null) { return true; } if (!(isNumeric(input))) return false; else if ((((java.lang.Integer.parseInt(input)) == 0) || ((java.lang.Integer.parseInt(input)) > 20)) || ((java.lang.Integer.parseInt(input)) < 5)) ...
public static void createYAMLishActualAndExpected(java.util.Map<java.lang.String, java.lang.Object> yamlish, org.testng.ITestResult testNgTestResult) { java.lang.String expected = org.tap4j.ext.testng.util.TapTestNGYamlUtil.getExpected(testNgTestResult); java.lang.String actual = org.tap4j.ext.testng.util.TapTe...
public static void createYAMLishActualAndExpected(java.util.Map<java.lang.String, java.lang.Object> yamlish, org.testng.ITestResult testNgTestResult) { java.lang.String expected = org.tap4j.ext.testng.util.TapTestNGYamlUtil.getExpected(testNgTestResult); java.lang.String actual = org.tap4j.ext.testng.util.TapTe...
public void stopRequestLocation() { if ((mGoogleApiClient) != null) { LocationServices.FusedLocationApi.removeLocationUpdates(mGoogleApiClient, this); mGoogleApiClient.disconnect(); } if ((routine_check_connection) != null) { routine_check_connection.stopUpdates(); hyjjr.cs16...
public void stopRequestLocation() { if ((mGoogleApiClient) != null) { LocationServices.FusedLocationApi.removeLocationUpdates(mGoogleApiClient, this); mGoogleApiClient.disconnect(); } if ((routine_check_connection) != null) { routine_check_connection.stopUpdates(); } if ((rou...
public static boolean hasGenerators(java.util.HashMap<java.lang.String, java.lang.Object> dome) { if (dome.containsKey("generators")) { java.util.ArrayList<java.util.HashMap<java.lang.String, java.lang.String>> rules = ((java.util.ArrayList<java.util.HashMap<java.lang.String, java.lang.String>>) (dome.get("...
public static boolean hasGenerators(java.util.HashMap<java.lang.String, java.lang.Object> dome) { if (dome.containsKey("generators")) { java.util.ArrayList<java.util.HashMap<java.lang.String, java.lang.String>> rules = ((java.util.ArrayList<java.util.HashMap<java.lang.String, java.lang.String>>) (dome.get("...
public void onClick(android.view.View v) { if ((onItemClickListener) != null) { for (int i = 0; i < (contentLinearLayout.getChildCount()); i++) { contentLinearLayout.getChildAt(i).setBackgroundColor(color.main_background_color); } onItemClickListener.onClick(v, viewPosMap.get(v))...
public void onClick(android.view.View v) { if ((onItemClickListener) != null) { for (int i = 0; i < (contentLinearLayout.getChildCount()); i++) { } onItemClickListener.onClick(v, viewPosMap.get(v)); } }
public static uk.ac.man.cs.llvm.bc.blocks.Block lookup(long id) { if (id == 0) { return uk.ac.man.cs.llvm.bc.blocks.Block.BLOCKINFO; }else if ((id >= (uk.ac.man.cs.llvm.bc.blocks.Block.MODULE.getId())) && (id <= (uk.ac.man.cs.llvm.bc.blocks.Block.METADATA_KIND.getId()))) { return uk....
public static uk.ac.man.cs.llvm.bc.blocks.Block lookup(long id) { if (id == 0) { return uk.ac.man.cs.llvm.bc.blocks.Block.BLOCKINFO; }else if ((id >= (uk.ac.man.cs.llvm.bc.blocks.Block.MODULE.getId())) && (id <= (uk.ac.man.cs.llvm.bc.blocks.Block.METADATA_KIND.getId()))) { int index ...
public static void interact(org.rev317.min.api.methods.SceneObject object, org.rev317.min.api.methods.SceneObjects.Option action) { if (org.rev317.min.api.methods.Game.hasAction4()) { org.rev317.min.api.methods.Menu.sendAction(action.getActionId(), object.getHash(), object.getLocalRegionX(), object.getLocal...
public static void interact(org.rev317.min.api.methods.SceneObject object, org.rev317.min.api.methods.SceneObjects.Option action) { if (org.rev317.min.api.methods.Game.hasAction4()) { org.rev317.min.api.methods.Menu.sendAction(action.getActionId(), object.getId(), object.getLocalRegionX(), object.getLocalRe...
private void requestChunkLoad(net.librofur.scar.world.chunk.ChunkPointer chunkPointer) { if (isChunkInBounds(chunkPointer.x, chunkPointer.y)) { return ; } if ((!(loadedChunks.containsKey(chunkPointer))) && (!(chunksToLoad.contains(chunkPointer)))) { chunksToLoad.add(chunkPointer); } }
private void requestChunkLoad(net.librofur.scar.world.chunk.ChunkPointer chunkPointer) { if (!(isChunkInBounds(chunkPointer.x, chunkPointer.y))) { return ; } if ((!(loadedChunks.containsKey(chunkPointer))) && (!(chunksToLoad.contains(chunkPointer)))) { chunksToLoad.add(chunkPointer); } }
private static learnrxjava.types.JSON json(java.lang.Object... keyOrValue) { learnrxjava.types.JSON json = new learnrxjava.types.JSON(); for (int counter = 0; counter < (keyOrValue.length); counter += 2) { json.put(((java.lang.String) (keyOrValue[counter])), keyOrValue[(counter + 1)]); } return ...
public static learnrxjava.types.JSON json(java.lang.Object... keyOrValue) { learnrxjava.types.JSON json = new learnrxjava.types.JSON(); for (int counter = 0; counter < (keyOrValue.length); counter += 2) { json.put(((java.lang.String) (keyOrValue[counter])), keyOrValue[(counter + 1)]); } return j...
public entity.Wall getWallOn(int x, int y) { for (entity.Entity e : hardEntities) { if ((((e.getX()) == x) && ((e.getY()) == y)) && (e instanceof entity.Wall)) return ((entity.Wall) (e)); } return null; }
public entity.Wall getWallOn(int x, int y) { for (entity.Entity e : hardEntities) { if (((e instanceof entity.Wall) && ((e.getX()) == x)) && ((e.getY()) == y)) return ((entity.Wall) (e)); } return null; }
private void computeDimensionHashTable() { for (int i = 0; i < (m_numOfdimenstions); i++) { for (int j = 0; j < (m_numOfHashFunc); j++) { m_dimentionHashTable[i][j] = this.m_arrayHashFunctions[j].doHash(i); } } }
private void computeDimensionHashTable() { m_dimentionHashTable = new int[m_numOfdimenstions][m_numOfHashFunc]; for (int i = 0; i < (m_numOfdimenstions); i++) { for (int j = 0; j < (m_numOfHashFunc); j++) { m_dimentionHashTable[i][j] = this.m_arrayHashFunctions[j].doHash(i); } } ...
public boolean isLeaseStillValid(int leaseId) { if (leaseId == 0) { return false; } de.fau.cs.mad.kwikshop.common.SynchronizationLease lease; try { lease = leaseDAO.getLease(leaseId); } catch (de.fau.cs.mad.kwikshop.server.exceptions.LeaseNotFoundException e) { return false; ...
public boolean isLeaseStillValid(int leaseId) { if (leaseId == 0) { return false; } de.fau.cs.mad.kwikshop.common.SynchronizationLease lease; try { lease = leaseDAO.getLease(leaseId); } catch (de.fau.cs.mad.kwikshop.server.exceptions.LeaseNotFoundException e) { return false; ...
public static java.lang.String decrypt(java.lang.String toEncrypt) throws java.security.InvalidKeyException, java.security.NoSuchAlgorithmException, javax.crypto.BadPaddingException, javax.crypto.IllegalBlockSizeException, javax.crypto.NoSuchPaddingException { java.lang.String key = "Bar12345Bar12345"; java.sec...
public static java.lang.String decrypt(java.lang.String toEncrypt) throws java.security.InvalidKeyException, java.security.NoSuchAlgorithmException, javax.crypto.BadPaddingException, javax.crypto.IllegalBlockSizeException, javax.crypto.NoSuchPaddingException { java.lang.String key = "Bar12345Bar12345"; java.sec...
public void resetMap(android.view.View v) { android.widget.TextView log = ((android.widget.TextView) (findViewById(R.id.log_viewer))); log.append("Reset Map"); mapView.mapCenterWithPoint(curPoint.x, curPoint.y); mapView.setCurrentZoom(3, curPoint.x, curPoint.y); mapView.refresh(); }
public void resetMap(android.view.View v) { android.widget.TextView log = ((android.widget.TextView) (findViewById(R.id.log_viewer))); log.append("Reset Map"); mapView.mapCenterWithPoint(curPoint.x, curPoint.y); mapView.refresh(); }
void processDiffFrame() { org.opencv.core.Mat tDiffImg = diffImg; org.opencv.core.Mat element; if (diffImg.empty()) return ; com.digitalwonders.ilhan.trackcolor.Imgproc.threshold(tDiffImg, tDiffImg, 1, 255, Imgproc.THRESH_BINARY); element = com.digitalwonders.ilhan.trackcolor.Imgproc.ge...
public void processDiffFrame() { org.opencv.core.Mat tDiffImg = diffImg; org.opencv.core.Mat element; if (diffImg.empty()) return ; com.digitalwonders.ilhan.trackcolor.Imgproc.threshold(tDiffImg, tDiffImg, 1, 255, Imgproc.THRESH_BINARY); element = com.digitalwonders.ilhan.trackcolor.Img...
public org.python.core.PyObject __iter__() { if (((((JyNI.PyCPeerType) (objtype)).nativeMethodFlags) & (PyCPeerType.OB_ITER)) != 0) { return JyNI.JyNI.maybeExc(JyNI.JyNI.JyNI_PyObject_GetIter(objectHandle, JyNI.JyTState.prepareNativeThreadState(org.python.core.Py.getThreadState()))); }else retur...
public org.python.core.PyObject __iter__() { if (((((JyNI.PyCPeerType) (objtype)).nativeMethodFlags) & (PyCPeerType.OB_ITER)) != 0) return JyNI.JyNI.maybeExc(JyNI.JyNI.JyNI_PyObject_GetIter(objectHandle, JyNI.JyTState.prepareNativeThreadState(org.python.core.Py.getThreadState()))); return super.__i...
public void testConvertVariableParameters() throws java.lang.Exception { com.google.javascript.rhino.Node stringKey1 = com.google.javascript.rhino.IR.stringKey("p1"); stringKey1.addChildToFront(com.google.javascript.jscomp.parsing.TypeDeclarationsIRFactory.stringType()); com.google.javascript.rhino.Node str...
public void testConvertVariableParameters() throws java.lang.Exception { com.google.javascript.rhino.Node stringKey1 = com.google.javascript.rhino.IR.stringKey("p1"); stringKey1.addChildToFront(com.google.javascript.jscomp.parsing.TypeDeclarationsIRFactory.stringType()); com.google.javascript.rhino.Node str...
public void createDocumentReferenceWhenPageParameterEmpty() throws java.lang.Exception { org.mockito.Mockito.when(this.componentManager.getInstance(DocumentReferenceResolver.TYPE_REFERENCE, "default")).thenReturn(this.resolver); org.xwiki.model.reference.DocumentReference reference = new org.xwiki.model.referen...
public void createDocumentReferenceWhenPageParameterEmpty() throws java.lang.Exception { when(this.componentManager.getInstance(DocumentReferenceResolver.TYPE_REFERENCE, "default")).thenReturn(this.resolver); org.xwiki.model.reference.DocumentReference reference = new org.xwiki.model.reference.DocumentReference...
protected boolean canBindOneToOneWithSingleColumnAndForeignKey(org.grails.orm.hibernate.cfg.Association currentGrailsProp) { if (currentGrailsProp.isBidirectional()) { final org.grails.orm.hibernate.cfg.Association otherSide = currentGrailsProp.getInverseSide(); if (isHasOne(otherSide)) ...
protected boolean canBindOneToOneWithSingleColumnAndForeignKey(org.grails.orm.hibernate.cfg.Association currentGrailsProp) { if (currentGrailsProp.isBidirectional()) { final org.grails.orm.hibernate.cfg.Association otherSide = currentGrailsProp.getInverseSide(); if (otherSide != null) { ...
public static int range(int from, int to) { if (to < from) { throw new java.lang.IllegalArgumentException(((("to must be higher than from (from: " + from) + ", to:") + to)); } return ((int) ((java.lang.Math.round(((java.lang.Math.random()) * (to - from)))) + to)); }
public static int range(int from, int to) { if (to < from) { throw new java.lang.IllegalArgumentException(((("to must be higher than from (from: " + from) + ", to:") + to)); } return ((int) ((java.lang.Math.round(((java.lang.Math.random()) * (to - from)))) + from)); }