buggy_function
stringlengths
1
391k
fixed_function
stringlengths
0
392k
public static com.mayacarlsen.article.Article getArticle(java.lang.Integer articleId) { try (org.sql2o.Connection conn = com.mayacarlsen.article.ArticleDAO.sql2o.beginTransaction()) { return conn.createQuery(com.mayacarlsen.article.ArticleDAO.SELECT_ARTICLE_SQL).addParameter("article_id", articleId).execute...
public static com.mayacarlsen.article.Article getArticle(java.lang.Integer articleId) { try (org.sql2o.Connection conn = com.mayacarlsen.article.ArticleDAO.sql2o.open()) { return conn.createQuery(com.mayacarlsen.article.ArticleDAO.SELECT_ARTICLE_SQL).addParameter("article_id", articleId).executeAndFetchFirs...
public eu.luminis.brains.TransmitResult transmit() { if ((excitation) > (threshold)) { eu.luminis.brains.TransmitResult result = new eu.luminis.brains.TransmitResult(excitation, axons); excitation = 0; return result; }else { this.excitation = ((this.excitation) > 0) ? (this.excit...
public eu.luminis.brains.TransmitResult<eu.luminis.brains.Axon> transmit() { if ((excitation) > (threshold)) { eu.luminis.brains.TransmitResult<eu.luminis.brains.Axon> result = new eu.luminis.brains.TransmitResult(excitation, axons); excitation = 0; return result; }else { this.ex...
public java.lang.String modificarCaso(@javax.ws.rs.QueryParam(value = "usrKey") java.lang.String usuarioActual, @javax.ws.rs.QueryParam(value = "iUEUsado") java.lang.String iUEUsado, @javax.ws.rs.QueryParam(value = "iUE") java.lang.String iUE, @javax.ws.rs.QueryParam(value = "juzgado") java.lang.String juzgado, @javax....
public java.lang.String modificarCaso(@javax.ws.rs.QueryParam(value = "usrKey") java.lang.String usuarioActual, @javax.ws.rs.QueryParam(value = "iUEUsado") java.lang.String iUEUsado, @javax.ws.rs.QueryParam(value = "iUE") java.lang.String iUE, @javax.ws.rs.QueryParam(value = "juzgado") java.lang.String juzgado, @javax....
public void visit(de.uni.bremen.monty.moco.ast.statement.ConditionalStatement node) { visitDoubleDispatched(node.getCondition()); boolean needsReturnStatementCopy = needsReturnStatement; visitDoubleDispatched(node.getThenBlock()); boolean needsReturnStatementCopyThen = needsReturnStatement; visitDou...
public void visit(de.uni.bremen.monty.moco.ast.statement.ConditionalStatement node) { visitDoubleDispatched(node.getCondition()); final boolean needsReturnStatementCopy = this.needsReturnStatement; visitDoubleDispatched(node.getThenBlock()); final boolean needsReturnStatementCopyThen = this.needsReturnS...
public void run() { mPager.setCurrentItem(0, false); org.ei.opensrp.view.fragment.SecuredNativeSmartRegisterFragment registerFragment = ((org.ei.opensrp.view.fragment.SecuredNativeSmartRegisterFragment) (findFragmentByPosition(0))); if ((registerFragment != null) && (data != null)) { registerFragmen...
public void run() { mPager.setCurrentItem(0, false); org.ei.opensrp.view.fragment.SecuredNativeSmartRegisterFragment registerFragment = ((org.ei.opensrp.view.fragment.SecuredNativeSmartRegisterFragment) (findFragmentByPosition(0))); if ((registerFragment != null) && (data != null)) { registerFragmen...
private static java.lang.String getFractionToString(double itemPrice, int digits) { double fractionalPart = (itemPrice % 1) * 100; int intFraction = java.lang.Integer.parseInt(java.lang.String.valueOf(fractionalPart)); java.lang.String stringFraction = ve.com.soted.softparkmulti.components.TfhkaPrinter.fill...
private static java.lang.String getFractionToString(double itemPrice, int digits) { double fractionalPart = (itemPrice % 1) * 100; long intFraction = ((long) (fractionalPart)); java.lang.String stringFraction = ve.com.soted.softparkmulti.components.TfhkaPrinter.fillWithZeros(intFraction, digits); return...
public java.lang.String[] getQueryableAttributs() { return new java.lang.String[]{ "name" , "type" , "color" , "oracle" , "mana" , "cmc" , "power" , "toughness" , "loyalty" , "is" , "rarity" , "cube" , "artist" , "flavor" , "watermark" , "border" , "frame" , "set" , "custom" }; }
public java.lang.String[] getQueryableAttributs() { return new java.lang.String[]{ "name" , "custom" , "type" , "color" , "oracle" , "mana" , "cmc" , "power" , "toughness" , "loyalty" , "is" , "rarity" , "cube" , "artist" , "flavor" , "watermark" , "border" , "frame" , "set" }; }
public void testCase2() { me.chiwang.leetcode.ListNode l1 = me.chiwang.leetcode.ListNodes.getListNodes(1, 2, 3, 4, 5); solution.reverseKGroup(l1, 3); me.chiwang.leetcode.ListNode l2 = me.chiwang.leetcode.ListNodes.getListNodes(3, 2, 1, 4, 5); assertListNodeEquals(l2, l1); }
public void testCase2() { me.chiwang.leetcode.ListNode l1 = me.chiwang.leetcode.ListNodes.getListNodes(1, 2, 3, 4, 5); l1 = solution.reverseKGroup(l1, 3); me.chiwang.leetcode.ListNode l2 = me.chiwang.leetcode.ListNodes.getListNodes(3, 2, 1, 4, 5); assertListNodeEquals(l2, l1); }
protected java.util.List<org.eclipse.ltk.core.refactoring.Change> getChanges(ru.runa.gpd.lang.model.Variable oldVariable, ru.runa.gpd.lang.model.Variable newVariable) throws java.lang.Exception { java.util.List<org.eclipse.ltk.core.refactoring.Change> changes = new java.util.ArrayList<>(); if (swimlaneInitializ...
protected java.util.List<org.eclipse.ltk.core.refactoring.Change> getChanges(ru.runa.gpd.lang.model.Variable oldVariable, ru.runa.gpd.lang.model.Variable newVariable) throws java.lang.Exception { java.util.List<org.eclipse.ltk.core.refactoring.Change> changes = new java.util.ArrayList<>(); if (((swimlaneInitial...
public void onDataChange(com.google.firebase.database.DataSnapshot dataSnapshot) { if ((dataSnapshot.getValue()) == null) new com.whirlwind.school1.popup.SnackbarPopup("You aren't logged in a schooool", android.support.design.widget.Snackbar.LENGTH_INDEFINITE, false).setAction("Open me", new android.view.Vi...
public void onDataChange(com.google.firebase.database.DataSnapshot dataSnapshot) { if ((dataSnapshot.getValue()) == null) new com.whirlwind.school1.popup.SnackbarPopup("You aren't logged in a schooool", android.support.design.widget.Snackbar.LENGTH_INDEFINITE, false).setAction("Open me", new android.view.Vi...
public void stopWatching() { if ((watcher) != null) { try { java.lang.System.out.println("Watcher stop called"); key.cancel(); watcher.close(); } catch (java.io.IOException e) { e.printStackTrace(); } } }
public void stopWatching() { if ((watcher) != null) { try { java.lang.System.out.println("Watcher stop called"); if ((key) != null) key.cancel(); watcher.close(); } catch (java.io.IOException e) { e.printStackTrace(); ...
public void showParkRatings(android.view.View view) { android.content.Intent intent = new android.content.Intent(this, de.uulm.dbis.coaster2go.activities.RatingActivity.class); intent.putExtra("reviewedId", parkId); intent.putExtra("reviewedName", park.getName()); intent.putExtra("isParkAdmin", ((park.g...
public void showParkRatings(android.view.View view) { android.content.Intent intent = new android.content.Intent(this, de.uulm.dbis.coaster2go.activities.RatingActivity.class); intent.putExtra("reviewedId", parkId); intent.putExtra("reviewedName", park.getName()); if ((user) != null) { intent.pu...
static java.io.File concatFolders(java.io.File projectBaseDir, java.lang.String... folderNames) { java.lang.StringBuilder b = new java.lang.StringBuilder(); for (java.lang.String folder : folderNames) { b.append(folder); b.append(java.io.File.separator); } return new java.io.File(project...
@com.google.common.annotations.VisibleForTesting static java.io.File concatFolders(final java.io.File projectBaseDir, final java.lang.String... folderNames) { java.lang.StringBuilder b = new java.lang.StringBuilder(); for (java.lang.String folder : folderNames) { b.append(folder); b.append(java....
public void getMaster() { org.junit.Assert.assertTrue("wrong store state:", dms.roleMap.isEmpty()); testStore.put(org.onosproject.store.mastership.impl.DistributedMastershipStoreTest.DID1, org.onosproject.store.mastership.impl.DistributedMastershipStoreTest.N1, true, false, false); org.onosproject.net.inten...
public void getMaster() { org.junit.Assert.assertTrue("wrong store state:", dms.roleMap.isEmpty()); testStore.put(org.onosproject.store.mastership.impl.DistributedMastershipStoreTest.DID1, org.onosproject.store.mastership.impl.DistributedMastershipStoreTest.N1, true, false, false); org.junit.Assert.assertEq...
private void checkButton() { wordB = ((android.widget.EditText) (findViewById(R.id.editText))).getText().toString().trim(); dbm.incrementWordTry(wordId); if ((!(wordB.isEmpty())) || (nl.mprog.axel.wrds_programmeerproject.Algorithms.AnswerComparison.checkCorrect(wordA, wordB))) { updateProgressBar();...
private void checkButton() { wordB = ((android.widget.EditText) (findViewById(R.id.editText))).getText().toString().trim(); dbm.incrementWordTry(wordId); if ((!(wordB.isEmpty())) && (nl.mprog.axel.wrds_programmeerproject.Algorithms.AnswerComparison.checkCorrect(wordA, wordB))) { updateProgressBar();...
private java.lang.String getPlayerAmount() { return (((((((org.bukkit.ChatColor.GRAY) + "[") + (org.bukkit.ChatColor.RED)) + (this.players.size())) + "/") + (this.maxPlayer)) + (org.bukkit.ChatColor.GRAY)) + "]"; }
private java.lang.String getPlayerAmount() { return (((((((((org.bukkit.ChatColor.GRAY) + "[") + (org.bukkit.ChatColor.RED)) + (this.players.size())) + (org.bukkit.ChatColor.GRAY)) + "/") + (org.bukkit.ChatColor.RED)) + (this.maxPlayer)) + (org.bukkit.ChatColor.GRAY)) + "]"; }
public static boolean writeBytes(android.content.Context context, byte[] data, java.lang.String fileName, android.net.Uri rootUri, java.lang.String... subDirs) { android.support.v4.provider.DocumentFile parent = ml.puredark.hviewer.utils.DocumentUtil.getDirDocument(context, rootUri, subDirs); if (parent == null...
public static boolean writeBytes(android.content.Context context, byte[] data, java.lang.String fileName, android.net.Uri rootUri, java.lang.String... subDirs) { android.support.v4.provider.DocumentFile parent = ml.puredark.hviewer.utils.DocumentUtil.getDirDocument(context, rootUri, subDirs); if (parent == null...
public void testRenderError() { java.lang.String message = "jöksdifuwe9823hkldhf"; wicketTester.getSession().getFeedbackMessages().error(null, message); wicketTester.startComponentInPage(new de.flower.rmt.ui.common.form.FormFeedbackPanel()); wicketTester.dumpComponentWithPage(); wicketTester.assertV...
public void testRenderError() { java.lang.String message = "jöksdifuwe9823hkldhf"; wicketTester.getSession().getFeedbackMessages().error(null, message); wicketTester.startComponentInPage(new de.flower.rmt.ui.common.form.FormFeedbackPanel(null)); wicketTester.dumpComponentWithPage(); wicketTester.ass...
public java.lang.String getFileExtension(java.lang.String filepath, java.lang.String defaultExtension) { java.lang.String extension = ""; if (filepath != null) { int i = filepath.lastIndexOf('.'); if (i > 0) { extension = filepath.substring(i); }else { extension =...
public java.lang.String getFileExtension(java.lang.String filepath, java.lang.String defaultExtension) { java.lang.String extension = ""; if (filepath != null) { int i = filepath.lastIndexOf('.'); if (i > 0) { extension = filepath.substring((i + 1)); }else { exten...
public void addPlayer(players.Player player) { boolean presence = false; for (players.Player giocatore : players) { if (giocatore.getName().equals(player.getName())) { presence = true; } } if (presence == false) { players.add(player); player.setStake(settings....
public void addPlayer(players.Player player) { boolean presence = false; for (players.Player giocatore : players) { if (giocatore.getName().equals(player.getName())) { presence = true; } } if (presence == false) { players.add(player); }else { throw new pok...
private void normalize() { name = ((name) == null) ? "" : name.trim(); number = com.everypay.sdk.model.Card.normalizeNumber(number); expMonth = com.everypay.sdk.model.Card.normalizeNumber(expMonth); expYear = com.everypay.sdk.model.Card.normalizeNumber(expYear); cvc = com.everypay.sdk.model.Card.nor...
private void normalize() { name = ((name) == null) ? "" : name; number = com.everypay.sdk.model.Card.normalizeNumber(number); expMonth = com.everypay.sdk.model.Card.normalizeNumber(expMonth); expYear = com.everypay.sdk.model.Card.normalizeNumber(expYear); cvc = com.everypay.sdk.model.Card.normalizeN...
public static void insertGameTester(ca.ubc.cs.cs304.steemproject.base.development.GameTester aGameTester) throws java.sql.SQLException { if ((ca.ubc.cs.cs304.steemproject.access.oraclejdbc.Inserts.fInsertGameTesterStatement) == null) { ca.ubc.cs.cs304.steemproject.access.oraclejdbc.Inserts.fInsertGameTester...
public static void insertGameTester(ca.ubc.cs.cs304.steemproject.base.development.GameTester aGameTester) throws java.sql.SQLException { if ((ca.ubc.cs.cs304.steemproject.access.oraclejdbc.Inserts.fInsertGameTesterStatement) == null) { ca.ubc.cs.cs304.steemproject.access.oraclejdbc.Inserts.fInsertGameTester...
public void testCountAllByCustomSearch1() { int count = 15; for (int i = 0; i < count; i++) { com.huntering.common.entity.User user = createUser(); user.getBaseInfo().setRealname(("zhang" + i)); userRepository2.save(user); } com.huntering.common.entity.search.Searchable search = ...
public void testCountAllByCustomSearch1() { int count = 15; for (int i = 0; i < count; i++) { com.huntering.common.entity.User user = createUser(); user.getBaseInfo().setRealname(("zhang" + i)); userRepository2.save(user); } com.huntering.common.entity.search.Searchable search = ...
public void run() { android.os.Message message = android.os.Message.obtain(); appDelegate.saveWalletJSONEnabled = false; appDelegate.recoverHDWallet(mnemonicPassphrase, false); appDelegate.refreshHDWalletAccounts(true); appDelegate.refreshApp(mnemonicPassphrase, false); appDelegate.saveWalletJSO...
public void run() { android.os.Message message = android.os.Message.obtain(); appDelegate.saveWalletJSONEnabled = false; appDelegate.recoverHDWallet(mnemonicPassphrase, false); appDelegate.refreshHDWalletAccounts(true); appDelegate.refreshApp(mnemonicPassphrase, false); appDelegate.saveWalletJSO...
public com.thrashplay.jounce.entity.GameObject createTopWall() { com.thrashplay.luna.api.geom.Rectangle gameBounds = jounce.getGameBoardDimensions(); com.thrashplay.jounce.entity.GameObject topWall = new com.thrashplay.jounce.entity.GameObject("topWall"); topWall.addComponent(new com.thrashplay.jounce.entit...
public com.thrashplay.jounce.entity.GameObject createTopWall() { com.thrashplay.luna.api.geom.Rectangle gameBounds = jounce.getGameBoardDimensions(); com.thrashplay.jounce.entity.GameObject topWall = new com.thrashplay.jounce.entity.GameObject("topWall"); topWall.addComponent(new com.thrashplay.jounce.entit...
public void visit(int version, int access, @mockit.internal.expectations.mocking.NotNull java.lang.String name, @mockit.internal.expectations.mocking.Nullable java.lang.String signature, @mockit.internal.expectations.mocking.Nullable java.lang.String superName, @mockit.internal.expectations.mocking.Nullable java.lang.S...
public void visit(int version, int access, @mockit.internal.expectations.mocking.NotNull java.lang.String name, @mockit.internal.expectations.mocking.Nullable java.lang.String signature, @mockit.internal.expectations.mocking.Nullable java.lang.String superName, @mockit.internal.expectations.mocking.Nullable java.lang.S...
public static void setCooldownTime(net.minecraft.entity.player.EntityPlayer player, int skill, int cd) { net.minecraft.item.ItemStack item = player.getCurrentArmor(1); if ((item == null) || (!(item.hasTagCompound()))) return ; item.setTagInfo(("cd" + skill), new net.minecraft.nbt.NBTTagInt(cd))...
public static void setCooldownTime(net.minecraft.entity.player.EntityPlayer player, int skill, int cd) { net.minecraft.item.ItemStack item = player.getCurrentArmor(1); if (item == null) return ; item.setTagInfo(("cd" + skill), new net.minecraft.nbt.NBTTagInt(cd)); }
public java.lang.String readMsg(java.net.Socket socket) throws java.io.IOException { java.io.BufferedReader bufferedReader = new java.io.BufferedReader(new java.io.InputStreamReader(socket.getInputStream())); char[] buffer = new char[500]; int amount = bufferedReader.read(buffer, 0, 500); message = new ...
public java.lang.String readMsg(java.net.Socket socket) throws java.io.IOException { java.io.BufferedReader bufferedReader = new java.io.BufferedReader(new java.io.InputStreamReader(socket.getInputStream())); char[] buffer = new char[500]; int amount = bufferedReader.read(buffer, 0, 500); message = new ...
public boolean onMenuItemClick(android.view.MenuItem item) { switch (item.getItemId()) { case R.id.menu_thumb_waterfall : if ((currentMode) == (com.jing.app.jjgallery.viewsystem.sub.wall.WallActivity.MODE_FOLDER)) { startFileWaterFallView(); beforeDestroy(); ...
public boolean onMenuItemClick(android.view.MenuItem item) { switch (item.getItemId()) { case R.id.menu_thumb_waterfall : if ((currentMode) == (com.jing.app.jjgallery.viewsystem.sub.wall.WallActivity.MODE_FOLDER)) { startFileWaterFallView(); }else if (...
public boolean onOptionsItemSelected(android.view.MenuItem item) { int id = item.getItemId(); if (id == (R.id.action_compose)) { composeTweet(); return true; } if (id == (R.id.action_profile)) { viewUserProfile(); } if (id == (R.id.action_logout)) { client.clearAc...
public boolean onOptionsItemSelected(android.view.MenuItem item) { int id = item.getItemId(); if (id == (R.id.action_compose)) { composeTweet(); return true; } if (id == (R.id.action_profile)) { viewUserProfile(); return true; } if (id == (R.id.action_logout)) { ...
public void run() { while (true) { beginTurn(); if ((getWinner()) == null) { while (activePlayer.canPlayCards()) { activePlayer.playCard(opponentPlayer); } endTurn(); }else { de.kimminich.kata.tcg.Game.logger.info(((getWinner()...
public void run() { while (true) { if ((getWinner()) == null) { beginTurn(); while (activePlayer.canPlayCards()) { activePlayer.playCard(opponentPlayer); } endTurn(); }else { de.kimminich.kata.tcg.Game.logger.info(((getWinn...
public void setupTabs(android.content.Intent intent, boolean isIncognito) { mTabsModel.initializeTabs(((android.app.Activity) (mView)), intent, isIncognito).subscribe(new acr.browser.lightning.react.OnSubscribe<java.lang.Void>() { @java.lang.Override public void onNext(java.lang.Void item) { ...
public void setupTabs(@android.support.annotation.Nullable android.content.Intent intent, boolean isIncognito) { mTabsModel.initializeTabs(((android.app.Activity) (mView)), intent, isIncognito).subscribe(new acr.browser.lightning.react.OnSubscribe<java.lang.Void>() { @java.lang.Override public void ...
public void dragStart(org.eclipse.swt.dnd.DragSourceEvent dragsourceevent) { super.dragStart(dragsourceevent); final java.lang.Object target = this.getTargetModel(dragsourceevent); if (target != null) { final org.eclipse.gef.dnd.TemplateTransfer transfer = ((org.eclipse.gef.dnd.TemplateTransfer) (th...
public void dragStart(org.eclipse.swt.dnd.DragSourceEvent dragsourceevent) { super.dragStart(dragsourceevent); final java.lang.Object target = getTargetModel(dragsourceevent); if (target != null) { final org.eclipse.gef.dnd.TemplateTransfer transfer = ((org.eclipse.gef.dnd.TemplateTransfer) (getTran...
public boolean sendRequest(edu.umass.cs.gigapaxos.interfaces.Request request, edu.umass.cs.gigapaxos.interfaces.RequestCallback callback) throws java.io.IOException { if (request instanceof edu.umass.cs.reconfiguration.reconfigurationpackets.ClientReconfigurationPacket) { return this.sendRequest(((edu.umass...
public java.lang.Long sendRequest(edu.umass.cs.gigapaxos.interfaces.Request request, edu.umass.cs.gigapaxos.interfaces.RequestCallback callback) throws java.io.IOException { assert (!(request instanceof edu.umass.cs.reconfiguration.reconfigurationpackets.ClientReconfigurationPacket)) && (!(request instanceof edu.um...
protected void onCreate(android.os.Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.splash); android.view.SurfaceView v = ((android.view.SurfaceView) (findViewById(R.id.surfaceView1))); gif.decoder.GifRun w = GifRun(); w.LoadGiff(v, this, R.drawable.giphy); }
protected void onCreate(android.os.Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.splash); android.view.SurfaceView v = ((android.view.SurfaceView) (findViewById(R.id.surfaceView1))); gif.decoder.GifRun w = new gif.decoder.GifRun(); w.LoadGiff(v, this, R.dra...
private int getActuallyPosition(int position) { int max = mAdapter.getCount(); position += VISIBLE_VIEWS; while ((position < 0) || (position >= max)) { if (position < 0) { position += max; }else if (position >= max) { position -= max; } ...
private int getActuallyPosition(int position) { if ((mAdapter) == null) return position; int max = mAdapter.getCount(); position += VISIBLE_VIEWS; while ((position < 0) || (position >= max)) { if (position < 0) { position += max; }else if (position >=...
public void fileSaved(snap.project.WebFile aFile) { if ((aFile.isDir()) || (aFile == (getClassPath().getFile()))) readSettings(); if (!(aFile.isDir())) addBuildFile(aFile); }
public void fileSaved(snap.project.WebFile aFile) { if ((aFile.isDir()) && (aFile == (getClassPath().getFile()))) readSettings(); if (!(aFile.isDir())) addBuildFile(aFile); }
public synchronized org.entrystore.Entry getByEntryURI(java.net.URI entryURI) { org.entrystore.Entry entry = cache.getByEntryURI(entryURI); if (entry != null) { return entry; } try { return getByMMdURIDirect(entryURI); } catch (org.openrdf.repository.RepositoryException e) { ...
public org.entrystore.Entry getByEntryURI(java.net.URI entryURI) { synchronized(cache) { org.entrystore.Entry entry = cache.getByEntryURI(entryURI); if (entry != null) { return entry; } try { return getByMMdURIDirect(entryURI); } catch (org.openrdf.rep...
public android.view.View getGroupView(int groupPosition, boolean isExpanded, android.view.View convertView, android.view.ViewGroup parent) { if (convertView == null) { convertView = android.view.View.inflate(mParent, android.R.layout.simple_list_item_1, null); convertView.setPadding(70, 0, 0, 0); ...
public android.view.View getGroupView(int groupPosition, boolean isExpanded, android.view.View convertView, android.view.ViewGroup parent) { if (convertView == null) { convertView = android.view.View.inflate(mParent, android.R.layout.simple_list_item_1, null); convertView.setPadding(70, 0, 0, 0); ...
public synchronized org.eclipse.koneki.ldt.parser.ast.LuaSourceRoot buildAST(final java.lang.String string) { lua = loadLuaModule(); pushLuaModule(lua); lua.getField((-1), "build"); lua.pushString(string); lua.call(1, 1); org.eclipse.koneki.ldt.parser.ast.LuaSourceRoot luaSourceRoot = lua.checkJ...
public synchronized org.eclipse.koneki.ldt.parser.ast.LuaSourceRoot buildAST(final java.lang.String string) { if ((lua) == null) lua = loadLuaModule(); pushLuaModule(lua); lua.getField((-1), "build"); lua.pushString(string); lua.call(1, 1); org.eclipse.koneki.ldt.parser.ast.LuaSourc...
public boolean onOptionsItemSelected(android.view.MenuItem item) { if ((item.getItemId()) == (R.id.menu_customer_list_cab_addCustomer)) { customersAdapter.insert(new com.passioncreativestudio.myandroidplayground.models.Customer(("Inserted Customer " + (java.lang.Integer.toString(customersAdapter.getCount())...
public boolean onOptionsItemSelected(android.view.MenuItem item) { if ((item.getItemId()) == (R.id.menu_customer_list_cab_addCustomer)) { customersAdapter.insert(new com.passioncreativestudio.myandroidplayground.models.Customer(("Inserted Customer " + (java.lang.Integer.toString(((customersAdapter.getCount(...
protected void onCreate(android.os.Bundle savedInstanceState) { super.onCreate(savedInstanceState); android.util.Log.i("HS U", "onCreate"); setContentView(R.layout.activity_hsmain); initViews(); java.lang.String myMobile = HSApplication.asp.read(SPAppInner.MOBILE, ""); if (android.text.TextUtils...
protected void onCreate(android.os.Bundle savedInstanceState) { super.onCreate(savedInstanceState); android.util.Log.i("HS U", "onCreate"); setContentView(R.layout.activity_hsmain); initViews(); java.lang.String myMobile = HSApplication.asp.read(SPAppInner.MOBILE, ""); if (android.text.TextUtils...
private boolean isPlugCommandAvailable(boolean plug) { return ((((getSelectedItems()) != null) && ((getSelectedItems().size()) > 0)) && (isPlugAvailableByDisks(plug))) && ((isVmDown()) || ((isHotPlugAvailable()) && (getIsDiskHotPlugSupported()))); }
private boolean isPlugCommandAvailable(boolean plug) { return ((((getSelectedItems()) != null) && ((getSelectedItems().size()) > 0)) && (isPlugAvailableByDisks(plug))) && ((isVmDown()) || (isHotPlugAvailable())); }
public void update() { super.update(); if (((routing.SojongRouter.warmUpEnded) == false) && ((routing.SojongRouter.isWarmUp()) == false)) { routing.SojongRouter.warmUpEnded = true; routing.SojongRouter.warmUpEnd(); } if ((isTransferring()) || (!(canStartTransfer()))) { return ; ...
public void update() { super.update(); if (((routing.SojongRouter.warmUpEnded) == false) && ((routing.SojongRouter.isWarmUp()) == false)) { routing.SojongRouter.warmUpEnded = true; routing.SojongRouter.warmUpEnd(); } if ((isTransferring()) || (!(canStartTransfer()))) { return ; ...
private boolean isSockReadSyscall(spade.reporter.audit.SYSCALL syscall) { boolean returnValue = isFileReadSyscall(syscall); if (syscall != null) { switch (syscall) { case RECV : case RECVMSG : case RECVFROM : returnValue = returnValue || true; ...
private boolean isSockReadSyscall(spade.reporter.audit.SYSCALL syscall) { boolean returnValue = isFileReadSyscall(syscall); if (syscall != null) { switch (syscall) { case RECV : case RECVMSG : case RECVFROM : returnValue = returnValue || true; ...
public void testIncorrectActionWall() { abandoned.house.Room curRoom = abandoned.entities.test.HandleActionTest.house.getRoom("kitchen"); abandoned.entities.test.HandleActionTest.player.setCurrentRoom(curRoom); abandoned.entities.test.HandleActionTest.player.setCurrentWall(curRoom.getWestWall()); abando...
public void testIncorrectActionWall() { abandoned.house.Room curRoom = abandoned.entities.test.HandleActionTest.house.getRoom("kitchen"); abandoned.entities.test.HandleActionTest.player.setCurrentRoom(curRoom); abandoned.entities.test.HandleActionTest.player.setCurrentWall(curRoom.getWestWall()); abando...
private void setTotalCheckins(hotelmanagement.RoomTypeEnum roomType, int month) { TotalCheckins = 0; for (hotelmanagement.Reservation res : TheArchives) { if (((res.IsCheckedIn()) && (res.getRoom().getType().equals(roomType.toString()))) && ((res.getStartDate().getMonth()) == month)) { (Tota...
private void setTotalCheckins(hotelmanagement.RoomTypeEnum roomType, int month) { TotalCheckins = 0; for (hotelmanagement.Reservation res : TheArchives) { if (((res.IsCheckedIn()) && (res.getRoom().getType().equals(roomType))) && ((res.getStartDate().getMonth()) == (month - 1))) { (TotalChec...
public void onClick(android.view.View v) { com.example.acer.taxiapp.fragments.ConfigFragment configFragment = ((com.example.acer.taxiapp.fragments.ConfigFragment) (fManager.findFragmentByTag("TAG_CONFIG_FRAGMENT"))); if ((configFragment == null) || (!(configFragment.isVisible()))) { android.app.Fragment...
public void onClick(android.view.View v) { com.example.acer.taxiapp.fragments.ConfigFragment configFragment = ((com.example.acer.taxiapp.fragments.ConfigFragment) (fManager.findFragmentByTag("TAG_CONFIG_FRAGMENT"))); if ((configFragment != null) && (configFragment.isVisible())) { return ; } andr...
private void updatePotions() { for (net.minecraft.potion.PotionType potiontype : net.minecraft.potion.PotionType.REGISTRY) { java.lang.String potion = potiontype.getRegistryName().toString(); net.minecraftforge.fml.common.FMLLog.info(("Potion: " + potion)); java.lang.String[] modName = potio...
private void updatePotions() { for (net.minecraft.potion.PotionType potiontype : net.minecraft.potion.PotionType.REGISTRY) { java.lang.String potion = potiontype.getRegistryName().toString(); java.lang.String[] modName = potion.split("\\W", 3); universalcoins.util.UCItemPricer.ucModnameMap.p...
void generateDoc(java.util.Map<javax.lang.model.element.TypeElement, java.util.Map<java.lang.Integer, com.hazelcast.client.protocol.generator.CodecModel>> model, freemarker.template.Template codecTemplate) { java.lang.String content = generateFromTemplate(codecTemplate, model); java.lang.String fileName = "Haze...
void generateDoc(java.util.Map<javax.lang.model.element.TypeElement, java.util.Map<java.lang.Integer, com.hazelcast.client.protocol.generator.CodecModel>> model, freemarker.template.Template codecTemplate) { java.lang.String content = generateFromTemplate(codecTemplate, model); java.lang.String fileName = "Haze...
public int compare(wildtornado.databug.objects.Distance o1, wildtornado.databug.objects.Distance o2) { if ((o1.getDistance()) < (o2.getDistance())) return -1; if ((o1.getDistance()) > (o1.getDistance())) return 1; return 0; }
public int compare(wildtornado.databug.objects.Distance o1, wildtornado.databug.objects.Distance o2) { if ((o1.getDistance()) < (o2.getDistance())) return -1; if ((o1.getDistance()) > (o2.getDistance())) return 1; return 0; }
private void modifyConsumer() { if (!(verifyData())) { return ; } if ((mConsumerDao.update(mConsumerDetail)) > 0) { com.classic.core.utils.ToastUtil.showToast(mAppContext, R.string.modify_consumer_success); notifyDataSetChanged(); finish(); }else { com.classic.cor...
private void modifyConsumer() { if (!(verifyData())) { return ; } if ((mConsumerDao.update(mConsumerDetail)) > 0) { com.classic.core.utils.ToastUtil.showToast(mAppContext, R.string.modify_consumer_success); finish(); }else { com.classic.core.utils.ToastUtil.showToast(mApp...
private org.springframework.security.saml.key.KeyManager keyManager() { org.springframework.core.io.DefaultResourceLoader loader = new org.springframework.core.io.DefaultResourceLoader(); org.springframework.core.io.Resource storeFile = loader.getResource(("classpath:/" + (keystorePath))); java.util.Map<jav...
private org.springframework.security.saml.key.KeyManager keyManager() { org.springframework.core.io.DefaultResourceLoader loader = new org.springframework.core.io.DefaultResourceLoader(); org.springframework.core.io.Resource storeFile = loader.getResource(keystorePath); java.util.Map<java.lang.String, java....
public void remove(com.palmergames.bukkit.towny.object.Town attacker, com.palmergames.bukkit.towny.object.Nation nation) throws com.palmergames.bukkit.towny.exceptions.NotRegisteredException { townScored(attacker, com.palmergames.bukkit.towny.TownySettings.getWarPointsForNation(), nation, 0); warringNations.rem...
private void remove(com.palmergames.bukkit.towny.object.Town attacker, com.palmergames.bukkit.towny.object.Nation nation) throws com.palmergames.bukkit.towny.exceptions.NotRegisteredException { townScored(attacker, com.palmergames.bukkit.towny.TownySettings.getWarPointsForNation(), nation, 0); warringNations.re...
public void removeJob(org.cytoscape.jobs.CyJob job) { synchronized(jobsList) { java.lang.System.out.println(("Removing job " + (job.toString()))); jobsList.remove(job); } jobHandlerMap.remove(job); intervalMap.remove(job); if ((jobsList.size()) == 0) { resetTimer(); } }
public void removeJob(org.cytoscape.jobs.CyJob job) { synchronized(jobsList) { jobsList.remove(job); } jobHandlerMap.remove(job); intervalMap.remove(job); if ((jobsList.size()) == 0) { resetTimer(); } }
public static java.lang.String convertStringToBinary(java.lang.String s) { byte[] bytes = s.getBytes(); java.lang.String result = ""; for (byte b : bytes) { int val = b; for (int i = 1; i < 8; i++) { result += ((val & 128) == 0) ? 0 : 1; val <<= 1; } } ...
public static java.lang.String convertStringToBinary(java.lang.String s) { byte[] bytes = s.getBytes(); java.lang.String result = ""; for (byte b : bytes) { int val = b; for (int i = 0; i < 8; i++) { if (i == 0) { val <<= 1; continue; }...
private void logEventInfo(java.lang.String type, android.view.MotionEvent event) { com.kaedea.widget.swipeloadingview.util.LogUtil.d(com.kaedea.widget.swipeloadingview.SwipeDetectorView.TAG, ((((("[onTouchEvent][logEventInfo] " + type) + " getY= ") + (event.getY())) + "; getRawY=") + (event.getRawY()))); }
private void logEventInfo(java.lang.String type, android.view.MotionEvent event) { com.kaedea.widget.swipeloadingview.util.LogUtil.d(com.kaedea.widget.swipeloadingview.SwipeDetectorView.TAG, ((((("[onTouchEvent][logEventInfo] " + type) + " getY= ") + (event.getY(0))) + "; getRawY=") + (event.getRawY()))); }
private void crearTablero(int total) { int i = 2; boolean encontrado = false; while ((i <= 9) && (!encontrado)) { if (((total / 2) % i) == 0) { tablero = new CartasIguales.Tablero(i, i); encontrado = true; this.getContentPane().add(tablero, java.awt.BorderLayout.N...
private void crearTablero(int total) { int i = 2; boolean encontrado = false; while ((i <= 9) && (!encontrado)) { if (((total / 2) % i) == 0) { tablero = new CartasIguales.Tablero((total / 2), (total / 2)); encontrado = true; this.getContentPane().add(tablero, jav...
public java.util.List<pe.com.rc.mobile.model.Lugar> listarLugaresByDefault(java.lang.String distrito, java.util.List<pe.com.rc.mobile.model.TipoLugar> tipoLugar, java.util.List<pe.com.rc.mobile.model.MusicaLugar> musicaLugar, java.lang.String idUsuario) throws pe.com.rc.mobile.core.exception.DaoException { java.uti...
public java.util.List<pe.com.rc.mobile.model.Lugar> listarLugaresByDefault(java.lang.String distrito, java.util.List<pe.com.rc.mobile.model.TipoLugar> tipoLugar, java.util.List<pe.com.rc.mobile.model.MusicaLugar> musicaLugar, java.lang.String idUsuario) throws pe.com.rc.mobile.core.exception.DaoException { java.uti...
private void settingTrackersAndView() { setupTokenTracker(); setupProfileTracker(); mTokenTracker.startTracking(); mProfileTracker.startTracking(); com.facebook.Profile profile = com.facebook.Profile.getCurrentProfile(); mTextDetails = ((android.widget.TextView) (findViewById(R.id.facebook_text)...
private void settingTrackersAndView() { setupTokenTracker(); setupProfileTracker(); mTokenTracker.startTracking(); mProfileTracker.startTracking(); com.facebook.Profile profile = com.facebook.Profile.getCurrentProfile(); mTextDetails = ((android.widget.TextView) (findViewById(R.id.facebook_text)...
public void tearDown() throws java.lang.Exception { java.lang.System.clearProperty("javax.net.ssl.trustStore"); java.lang.System.clearProperty("javax.net.ssl.trustStorePassword"); java.lang.System.clearProperty("javax.net.ssl.trustStoreType"); java.lang.System.clearProperty("javax.net.ssl.keyStore"); ...
public void tearDown() throws java.lang.Exception { java.lang.System.clearProperty("javax.net.ssl.trustStore"); java.lang.System.clearProperty("javax.net.ssl.trustStorePassword"); java.lang.System.clearProperty("javax.net.ssl.trustStoreType"); java.lang.System.clearProperty("javax.net.ssl.keyStore"); ...
if ((mCallbacks) != null) { java.lang.String lastBecause = null; if ((mHost) != null) { } try { if (DEBUG) com.mobilesolutionworks.android.app.LOGGER.fine((" onCreated in " + loader)); mCallbacks.onCreated(mId, loader); } ...
if ((mCallbacks) != null) { java.lang.String lastBecause = null; try { if (DEBUG) com.mobilesolutionworks.android.app.LOGGER.fine((" onCreated in " + loader)); mCallbacks.onCreated(mId, loader); } finally { } } }
public java.lang.String viewIndividualStats(@site.fitify.controllers.PathVariable long id, org.springframework.ui.Model model) { site.fitify.models.MyStat myStat = myStatsDao.findOne(id); if (myStat == null) { return ("redirect:/stats/" + (userSvc.loggedInUser().getId())) + "/edit"; }else { ...
public java.lang.String viewIndividualStats(@site.fitify.controllers.PathVariable long id, org.springframework.ui.Model model) { site.fitify.models.MyStat myStat = myStatsDao.findOne(id); if (myStat == null) { return ("redirect:/stats/" + (userSvc.loggedInUser().getId())) + "/edit"; } model.addA...
public void addNote(android.view.View view) { com.example.max.myapplication.Note note = new com.example.max.myapplication.Note(title.getText().toString(), mainText.getText().toString()); note.setNoteID(id); if ((id) == null) { com.example.max.myapplication.MemCacheDataStorage.getInstance().addNote(n...
public void addNote(android.view.View view) { com.example.max.myapplication.Note note = new com.example.max.myapplication.Note(title.getText().toString(), mainText.getText().toString()); note.setNoteID(id); if ((id) == null) { com.example.max.myapplication.MemCacheDataStorage.getInstance().addNote(n...
protected com.ubikz.scraper.core.provider.db.qb.Select getBaseSelect(com.ubikz.scraper.core.app.dal.filter.AbstractDalFilter filter, boolean isCount) { com.ubikz.scraper.core.provider.db.qb.QueryBuilder qb = new com.ubikz.scraper.core.provider.db.qb.QueryBuilder(); com.ubikz.scraper.core.provider.db.qb.Select s...
protected com.ubikz.scraper.core.provider.db.qb.Select getBaseSelect(com.ubikz.scraper.core.app.dal.filter.AbstractDalFilter filter, boolean isCount) { com.ubikz.scraper.core.provider.db.qb.QueryBuilder qb = new com.ubikz.scraper.core.provider.db.qb.QueryBuilder(); com.ubikz.scraper.core.provider.db.qb.Select s...
public void testScreenNameAttribute() throws java.lang.Throwable { @com.orhanobut.tracklytics.ScreenNameAttribute(key = "name", excludeLast = 2, delimiter = "-") class BasePresenter { @com.orhanobut.tracklytics.TrackEvent(value = "event") public void base() { } } class FooBarBase...
public void testScreenNameAttribute() throws java.lang.Throwable { @com.orhanobut.tracklytics.ScreenNameAttribute(key = "name", excludeLast = 2, delimiter = "-") class BasePresenter { @com.orhanobut.tracklytics.TrackEvent(value = "event") public void base() { } } class FooBarBase...
private synchronized void grow() { int newCapacity = (size) * 2; newCapacity = (newCapacity > (MAX_SIZE)) ? MAX_SIZE : newCapacity; E[] target = ((E[]) (new java.lang.Object[newCapacity])); java.lang.System.arraycopy(elements, 0, target, 0, size); elements = target; }
private synchronized void grow() { int newCapacity = (size) * 2; newCapacity = ((newCapacity > (MAX_SIZE)) || (newCapacity < (size))) ? MAX_SIZE : newCapacity; E[] target = ((E[]) (new java.lang.Object[newCapacity])); java.lang.System.arraycopy(elements, 0, target, 0, size); elements = target; }
public void onBackPressed() { super.onBackPressed(); if (com.velsedu.praks.velseduapp.StudentDetailActivity.isActvie) { android.content.Intent intent = new android.content.Intent(this, com.velsedu.praks.velseduapp.StudentDetailActivity.class); startActivity(intent); }else { android.c...
public void onBackPressed() { super.onBackPressed(); if (com.velsedu.praks.velseduapp.StudentDetailActivity.isActvie) { android.content.Intent intent = new android.content.Intent(this, com.velsedu.praks.velseduapp.StudentDetailActivity.class); com.velsedu.praks.velseduapp.StudentDetailActivity.i...
public java.util.List<device.Device> getDevices() { if (devices.isEmpty()) { updateDeviceList(); return devices.isEmpty() ? java.util.Collections.emptyList() : java.util.Collections.unmodifiableList(devices); }else { return java.util.Collections.unmodifiableList(devices); } }
public java.util.List<device.Device> getDevices() { if (devices.isEmpty()) { updateDeviceList(); return devices.isEmpty() ? java.util.Collections.emptyList() : new java.util.ArrayList(devices); }else { return new java.util.ArrayList(devices); } }
public void setNumber(java.lang.String number) { number = (((((("+" + (number.charAt(0))) + " (") + (number.substring(1, 4))) + ") ") + (number.substring(4, 7))) + "-") + (number.substring(7)); this.number = number; }
public void setNumber(java.lang.String number) { if ((number.length()) > 7) number = (((((("+" + (number.charAt(0))) + " (") + (number.substring(1, 4))) + ") ") + (number.substring(4, 7))) + "-") + (number.substring(7)); this.number = number; }
public void put(double amount) { double sum = (curSum) + ((decimals) / 100.0); sum += amount; curSum = ((int) (sum)); decimals = ((int) ((sum - (curSum)) * 100)); }
public void put(double amount) { double sum = (curSum) + ((decimals) / 100.0); sum += amount; curSum = ((int) (sum)); decimals = ((int) (java.lang.Math.round(((sum * 100) - ((curSum) * 100))))); }
private boolean doAction(java.lang.String playersName) { if ((playersName.length()) < 2) { java.lang.System.out.println(("\nInvalid players name: " + "The name must be greater than one character in length")); return false; } byui.cit260.HideAndSeek.model.Player player = byui.cit260.HideAndSe...
public boolean doAction(java.lang.String playersName) { if ((playersName.length()) < 2) { java.lang.System.out.println(("\nInvalid players name: " + "The name must be greater than one character in length")); return false; } byui.cit260.HideAndSeek.model.Player player = byui.cit260.HideAndSee...
private void handleRight(javafx.scene.input.KeyEvent e) { if (((currentPosInLine) < (charCounterInLine)) && (((this.getLength()) - (this.getCaretPosition())) <= (charCounterInLine))) { (currentPosInLine)++; }else { e.consume(); } }
private void handleRight(javafx.scene.input.KeyEvent e) { if (((currentPosInLine) < (charCounterInLine)) && ((((this.getLength()) - 1) - (this.getCaretPosition())) <= (charCounterInLine))) { (currentPosInLine)++; }else { e.consume(); } }
private void checkResultAddStaff(java.lang.String staffName, ca.mcgill.ecse321.foodtruck.model.FoodTruckManager ftms) { assertEquals(staffName, ftms.getEmployee(0)); assertEquals(1, ftms.getEmployees().size()); assertEquals(true, ftms.hasEmployees()); }
private void checkResultAddStaff(java.lang.String staffName, ca.mcgill.ecse321.foodtruck.model.FoodTruckManager ftms) { assertEquals(staffName, ftms.getEmployee(0).getName()); assertEquals(1, ftms.getEmployees().size()); assertEquals(true, ftms.hasEmployees()); }
public void configureGlobal(org.springframework.security.config.annotation.authentication.builders.AuthenticationManagerBuilder auth) throws java.lang.Exception { auth.ldapAuthentication().userDetailsContextMapper(new org.csiro.igsn.security.UserDetailsContextMapperImpl()).userSearchBase("ou=People").userSearchFilt...
public void configureGlobal(org.springframework.security.config.annotation.authentication.builders.AuthenticationManagerBuilder auth) throws java.lang.Exception { auth.ldapAuthentication().userDetailsContextMapper(new org.csiro.igsn.security.UserDetailsContextMapperImpl()).userSearchFilter("(&(sAMAccountName={0}))"...
public void sortToFile(final java.io.File output) throws java.io.IOException { final java.util.List<java.io.File> cacheFiles; try (final java.io.BufferedReader bufferedReader = java.nio.file.Files.newBufferedReader(this.file.toPath())) { cacheFiles = this.splitFile(bufferedReader, this.file.getCanonical...
public void sortToFile(final java.io.File output) throws java.io.IOException { final java.util.List<java.io.File> cacheFiles; try (final java.io.BufferedReader bufferedReader = java.nio.file.Files.newBufferedReader(this.file.toPath())) { cacheFiles = this.splitFile(bufferedReader, this.file.getCanonical...
private void loadAll() { android.util.Log.e(com.dev.town.small.brewtopia.Timer.TimerBoilAdditions.LOG, "Entering: loadAll"); java.util.List<com.dev.town.small.brewtopia.DataClass.BoilAdditionsSchema> boilAdditionsSchemaList = new java.util.ArrayList<com.dev.town.small.brewtopia.DataClass.BoilAdditionsSchema>();...
private void loadAll() { android.util.Log.e(com.dev.town.small.brewtopia.Timer.TimerBoilAdditions.LOG, "Entering: loadAll"); java.util.List<com.dev.town.small.brewtopia.DataClass.BoilAdditionsSchema> boilAdditionsSchemaList = new java.util.ArrayList<com.dev.town.small.brewtopia.DataClass.BoilAdditionsSchema>();...
public static com.door43.translationstudio.core.TranslationViewMode getLastViewMode(java.lang.String targetTranslationId) { android.content.SharedPreferences prefs = com.door43.translationstudio.App.sInstance.getSharedPreferences(com.door43.translationstudio.App.PREFERENCES_NAME, Context.MODE_PRIVATE); try { ...
public static com.door43.translationstudio.core.TranslationViewMode getLastViewMode(java.lang.String targetTranslationId) { android.content.SharedPreferences prefs = com.door43.translationstudio.App.sInstance.getSharedPreferences(com.door43.translationstudio.App.PREFERENCES_NAME, Context.MODE_PRIVATE); try { ...
public void configure(org.apache.hadoop.mapred.JobConf job) { super.configure(job); java.lang.String[] temp = job.get("timedistance").split(","); this.time = temp[1]; this.interval = java.lang.Integer.parseInt(temp[0]); this.distance = java.lang.Integer.parseInt(job.get("spacedistance")); }
public void configure(org.apache.hadoop.mapred.JobConf job) { super.configure(job); java.lang.String value = job.get("timedistance"); java.lang.String[] temp = value.split(","); this.time = temp[1]; this.interval = java.lang.Integer.parseInt(temp[0]); this.distance = java.lang.Integer.parseInt(j...
public void run() { dismissLoadingProgress(); mAdapter.notifyDataSetChanged(); mMessageListView.setSelection(((mAdapter.getCount()) - 1)); android.util.Log.d(org.matrix.androidsdk.fragments.MatrixMessageListFragment.LOG_TAG, "onInitialMessagesLoaded"); mIsInitialSyncing = false; mMessageListView...
public void run() { dismissLoadingProgress(); if ((mAdapter.getCount()) > 0) { mAdapter.notifyDataSetChanged(); mMessageListView.setSelection(((mAdapter.getCount()) - 1)); } android.util.Log.d(org.matrix.androidsdk.fragments.MatrixMessageListFragment.LOG_TAG, "onInitialMessagesLoaded"); ...
private static com.spectralogic.ds3client.models.bulk.BulkObject getBlobFromPosition(final com.google.common.collect.ImmutableMultimap<com.spectralogic.ds3client.models.bulk.BulkObject, com.google.common.collect.Range> blobs, final long position) { if (com.spectralogic.ds3client.utils.Guard.isMultiMapNullOrEmpty(bl...
private static com.spectralogic.ds3client.models.bulk.BulkObject getBlobFromPosition(final com.google.common.collect.ImmutableMultimap<com.spectralogic.ds3client.models.bulk.BulkObject, com.google.common.collect.Range> blobs, final long position) { if (com.spectralogic.ds3client.utils.Guard.isMultiMapNullOrEmpty(bl...
public boolean onKeyDown(int keyCode, android.view.KeyEvent event) { if (keyCode == (android.view.KeyEvent.KEYCODE_BACK)) { if ((currentPath.indexOf(TPStrings.SLASH, 2)) != (-1)) { getDir(parentPath); }else { return super.onKeyDown(keyCode, event); } return tr...
public boolean onKeyDown(int keyCode, android.view.KeyEvent event) { if (keyCode == (android.view.KeyEvent.KEYCODE_BACK)) { if (!(currentPath.equals(TPStrings.SLASH))) { getDir(parentPath); }else { return super.onKeyDown(keyCode, event); } return true; }el...
public org.apache.struts.action.ActionForward execute(org.apache.struts.action.ActionMapping mapping, org.apache.struts.action.ActionForm form, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws java.lang.Exception { com.team404.Customer cForm = ((com.team404.Cust...
public org.apache.struts.action.ActionForward execute(org.apache.struts.action.ActionMapping mapping, org.apache.struts.action.ActionForm form, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws java.lang.Exception { com.team404.Customer cForm = ((com.team404.Cust...
public void testDeleteEntity() throws java.io.IOException { io.restassured.RestAssured.given().when().delete((((mResourceUrlPath) + "/") + (mExpectedEntity.getId()))).then().statusCode(200); final E thePersistedEntityAfterDelete = mEntityRepository.findOne(mExpectedEntity.getId()); org.testng.Assert.assertN...
public void testDeleteEntity() throws java.io.IOException { io.restassured.RestAssured.given().when().delete((((mResourceUrlPath) + "/") + (mExpectedEntity.getId()))).then().statusCode(200); final E thePersistedEntityAfterDelete = mEntityRepository.findOne(mExpectedEntity.getId()).get(); org.testng.Assert.a...
public java.lang.String setFirst(java.lang.String key, java.lang.String valueToSet, java.lang.String input) { java.lang.String value = extractOne(key, input); java.lang.String keyVal = ((key + "={") + value) + "}"; java.lang.String newKeyVal = ((key + "={") + valueToSet) + "}"; java.lang.String replaced...
public java.lang.String setFirst(java.lang.String key, java.lang.String valueToSet, java.lang.String input) { java.lang.String value = extractOne(key, input); java.lang.String keyVal = ((key + "={") + value) + "}"; java.lang.String newKeyVal = ((key + "={") + valueToSet) + "}"; java.lang.String replaced...
private void ProcessJavascript(java.lang.String js, java.lang.String callbackFunction) { android.util.Log.d("EpubReader", (callbackFunction + " Called")); if ((Build.VERSION.SDK_INT) > 19) { this.evaluateJavascript((("(function(){" + js) + "})()"), new android.webkit.ValueCallback<java.lang.String>() { ...
private void ProcessJavascript(java.lang.String js, java.lang.String callbackFunction) { if ((Build.VERSION.SDK_INT) > 19) { this.evaluateJavascript((("(function(){" + js) + "})()"), new android.webkit.ValueCallback<java.lang.String>() { @java.lang.Override public void onReceiveValue...
public void scheduleNotification() { android.content.Intent notificationIntent = new android.content.Intent(ben.avgmovies.notifications.NotificationPublisher.context, ben.avgmovies.notifications.NotificationPublisher.class); android.app.PendingIntent pendingIntent = android.app.PendingIntent.getBroadcast(ben.av...
public void scheduleNotification(android.content.Context context) { android.content.Intent notificationIntent = new android.content.Intent(context, ben.avgmovies.notifications.NotificationPublisher.class); android.app.PendingIntent pendingIntent = android.app.PendingIntent.getBroadcast(context, 0, notificationI...
public java.util.Map<java.lang.String, java.lang.Object> getConstants() { android.util.Log.d(LOG_TAG, "Getting constants"); jobScheduler = ((android.app.job.JobScheduler) (getReactApplicationContext().getSystemService(Context.JOB_SCHEDULER_SERVICE))); mJobs = jobScheduler.getAllPendingJobs(); mInitializ...
public java.util.Map<java.lang.String, java.lang.Object> getConstants() { android.util.Log.d(LOG_TAG, "Getting constants"); jobScheduler = ((android.app.job.JobScheduler) (getReactApplicationContext().getSystemService(Context.JOB_SCHEDULER_SERVICE))); if ((jobScheduler) != null) { mJobs = jobSchedul...
private void syncAllServices() { for (java.util.Map.Entry<java.lang.String, ir.atitec.signalgo.util.ClientDuplex> entry : mPendingServices.entrySet()) { syncService(entry.getKey()); } currentState = GoSocketListener.SocketState.Connected; if ((socketListener) != null) { socketListener.on...
private void syncAllServices() { for (java.util.Map.Entry<java.lang.String, ir.atitec.signalgo.util.ClientDuplex> entry : mPendingServices.entrySet()) { syncService(entry.getKey()); } if ((socketListener) != null) { socketListener.onSocketChange(lastState, currentState); } }
void createXMLResponse(javax.servlet.http.HttpServletResponse response, java.util.List<ch.systemsx.sybit.crkwebui.shared.model.PdbInfo> pdbList) throws java.io.IOException, javax.xml.bind.JAXBException { if (pdbList == null) return ; response.setContentType("text/xml"); response.setCharacterEnc...
void createXMLResponse(javax.servlet.http.HttpServletResponse response, java.util.List<ch.systemsx.sybit.crkwebui.shared.model.PdbInfo> pdbList) throws java.io.IOException, javax.xml.bind.JAXBException { if (pdbList == null) return ; response.setContentType("text/xml"); response.setCharacterEnc...
private java.util.List<org.uengine.essencia.modeling.canvas.ElementView> findCanvasChildElementViewList(java.lang.String[] toEdges) { java.util.List<org.uengine.essencia.modeling.canvas.ElementView> canvasChildElementViewList = new java.util.ArrayList<>(); for (java.lang.String toEdge : toEdges) { for (...
private java.util.List<org.uengine.essencia.modeling.canvas.ElementView> findCanvasChildElementViewList(java.lang.String[] toEdges) { java.util.List<org.uengine.essencia.modeling.canvas.ElementView> canvasChildElementViewList = new java.util.ArrayList<>(); for (org.uengine.essencia.modeling.canvas.ElementView e...
public void onConfigurationChanged(android.content.res.Configuration newConfig) { super.onConfigurationChanged(newConfig); if ((newConfig.orientation) == (android.content.res.Configuration.ORIENTATION_LANDSCAPE)) { com.qsp.player.Utility.WriteLog("Config changed: landscape"); hideTitle(); }e...
public void onConfigurationChanged(android.content.res.Configuration newConfig) { super.onConfigurationChanged(newConfig); if ((newConfig.orientation) == (android.content.res.Configuration.ORIENTATION_LANDSCAPE)) { com.qsp.player.Utility.WriteLog("Config changed: landscape"); hideTitle(); }e...
private boolean updateGames(java.lang.String user, boolean won) { java.util.Map<java.lang.String, java.lang.Object> userInfo = data.get(user); int gamesPlayed = ((java.lang.Integer) (userInfo.get(groupn.spin_counter.model.LocalScoreManager.GamesPlayedKey))); int gamesWon = ((java.lang.Integer) (userInfo.get...
private boolean updateGames(java.lang.String user, boolean won) { java.util.Map<java.lang.String, java.lang.Object> userInfo = data.get(user); int gamesPlayed = ((java.lang.Integer) (userInfo.get(groupn.spin_counter.model.LocalScoreManager.GamesPlayedKey))); int gamesWon = ((java.lang.Integer) (userInfo.get...
private static java.awt.Component modifySavedComponents(int index, boolean remove) { java.awt.Component component = SmartInterface.components.get(index); if (remove) { SmartInterface.savedComponents.remove(component); return null; }else { SmartInterface.savedComponents.add(((((compon...
private static java.awt.Component modifySavedComponents(int index, boolean remove) { java.awt.Component component = SmartInterface.components.get(index); if (remove) { return null; }else { SmartInterface.savedComponents.add(((((component.getIdentifier()) + "`") + index) + '`')); retu...
public java.lang.Object instantiateItem(android.view.ViewGroup container, int position) { nl.tue.san.tasks.TaskSet displayed = taskSetManager.get(position); android.widget.ListView listView = new android.widget.ListView(getContext()); listView.setAdapter(new nl.tue.san.ui.TaskSetFragment.TaskAdapter(taskSet...
public java.lang.Object instantiateItem(android.view.ViewGroup container, int position) { android.widget.ListView listView = new android.widget.ListView(getContext()); listView.setAdapter(new nl.tue.san.ui.TaskSetFragment.TaskAdapter(taskSetManager.get(position))); container.addView(listView, ViewGroup.Layo...
public boolean onPreferenceClick(android.preference.Preference preference) { java.lang.String preferenceKey = ((preference.getKey()) != null) ? preference.getKey() : ""; if (preferenceKey.equals(getString(R.string.pref_key_passcode_toggle))) { return handlePasscodeToggleClick(); }else if (pr...
public boolean onPreferenceClick(android.preference.Preference preference) { java.lang.String preferenceKey = ((preference.getKey()) != null) ? preference.getKey() : ""; if (preferenceKey.equals(getString(R.string.pref_key_change_passcode))) { return handleChangePasscodeClick(); } return false; ...
public void update() { if (((sprite) != null) && ((body) != null)) sprite.setPosition((((body.getPosition().x) * (MainGameClass.PPM)) - ((sprite.getWidth()) / 2)), (((body.getPosition().y) * (MainGameClass.PPM)) - ((sprite.getHeight()) / 2))); }
public void update() { if (((sprite) != null) && ((body) != null)) sprite.setPosition(((body.getPosition().x) - ((sprite.getWidth()) / 2)), ((body.getPosition().y) - ((sprite.getHeight()) / 2))); }
protected void onCreate(android.os.Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_new_target_translation); if ((findViewById(R.id.fragment_container)) != null) { if (savedInstanceState != null) { return ; } mFragment = ne...
protected void onCreate(android.os.Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_new_target_translation); if ((findViewById(R.id.fragment_container)) != null) { if (savedInstanceState == null) { mFragment = new com.door43.translationstu...
public static java.lang.String getCurBatchInfo(org.agmip.dome.BatchEngine batEngine, boolean isBatchApplied) { if (batEngine == null) { return ""; }else { if (isBatchApplied) { return ("[Batch-" + (batEngine.getCurGroupId())) + "] "; }else { return ("[Batch-" + (b...
public static java.lang.String getCurGroupId(org.agmip.dome.BatchEngine batEngine, boolean isBatchApplied) { if (batEngine == null) { return ""; }else { if (isBatchApplied) { return batEngine.getCurGroupId(); }else { return batEngine.getNextGroupId(); } ...
public java.lang.String register() { message = ""; transactionFailure = null; if ((controller.getPerson(username)) != null) { setMessage("This username already exists. Please, choose another one."); return "login"; }else { controller.createPerson(username, email, name, password, ...
public java.lang.String register() { message = ""; transactionFailure = null; if ((controller.getPerson(username)) != true) { setMessage("This username already exists. Please, choose another one."); return "login"; }else { controller.createPerson(username, email, name, password, ...