buggy_function
stringlengths
1
391k
fixed_function
stringlengths
0
392k
public void insertMemoryData(org.exbin.deltahex.delta.MemorySegment memorySegment, long position, org.exbin.utils.binary_data.BinaryData insertedData, long insertedDataOffset, long insertedDataLength) { org.exbin.deltahex.delta.MemoryDataSource memorySource = memorySegment.getSource(); org.exbin.deltahex.delta....
public void insertMemoryData(org.exbin.deltahex.delta.MemorySegment memorySegment, long position, org.exbin.utils.binary_data.BinaryData insertedData, long insertedDataOffset, long insertedDataLength) { org.exbin.deltahex.delta.MemoryDataSource memorySource = memorySegment.getSource(); org.exbin.deltahex.delta....
public boolean remove(com.ivstuart.tmud.person.carried.Money money) { if ((money.type) != (type)) { return false; } if ((money.quantity) > (quantity)) { return false; } com.ivstuart.tmud.person.carried.Money.LOGGER.debug(((("Current quantity is " + (quantity)) + " new quantity is ") ...
public boolean remove(com.ivstuart.tmud.person.carried.Money money) { if ((money.type) != (type)) { return false; } if ((money.quantity) > (quantity)) { return false; } com.ivstuart.tmud.person.carried.Money.LOGGER.debug(((("Current quantity is " + (quantity)) + " new quantity is ") ...
public <T extends org.javers.core.metamodel.type.ManagedType> T getJaversManagedType(java.lang.Class javaClass, java.lang.Class<T> expectedType) { org.javers.core.metamodel.type.JaversType mType = getJaversType(javaClass); if (expectedType.isAssignableFrom(mType.getClass())) { return ((T) (mType)); ...
public <T extends org.javers.core.metamodel.type.ManagedType> T getJaversManagedType(java.lang.Class javaClass, java.lang.Class<T> expectedType) { org.javers.core.metamodel.type.JaversType mType = getJaversType(javaClass); if (expectedType.isAssignableFrom(mType.getClass())) { return ((T) (mType)); ...
protected void onActivityResult(int requestCode, int resultCode, android.content.Intent data) { if (requestCode == (FILTER_REQUEST_CODE)) { int date = data.getExtras().getInt("date", 0); sortOrder = data.getExtras().getString("sortOrder"); fields = data.getExtras().getStringArrayList("fields...
protected void onActivityResult(int requestCode, int resultCode, android.content.Intent data) { if (requestCode == (FILTER_REQUEST_CODE)) { sortOrder = data.getExtras().getString("sortOrder"); fields = data.getExtras().getStringArrayList("fields"); beginDate = data.getExtras().getInt("date",...
public void setModel_withZeroItemsAndLoadingFalse_setsAdapterItemsAndLoading() { final java.util.List<org.edx.mobile.profiles.BadgeAssertion> items = java.util.Collections.emptyList(); view.setModel(new org.edx.mobile.profiles.UserProfileAccomplishmentsPresenter.ViewModel(items, false)); org.mockito.Mockito...
public void setModel_withZeroItemsAndLoadingFalse_setsAdapterItemsAndLoading() { final java.util.List<org.edx.mobile.profiles.BadgeAssertion> items = java.util.Collections.emptyList(); view.setModel(new org.edx.mobile.profiles.UserProfileAccomplishmentsPresenter.ViewModel(items, false, false)); org.mockito....
public void bind(final com.example.karan.popularmovies.Movie movie, final com.example.karan.popularmovies.OnPosterClickListener onPosterClickListener) { movieName.setText(movie.getTitle()); com.squareup.picasso.Picasso.with(context).load(movie.getMoviePosterURL()).resizeDimen(R.dimen.activity_discover_poster_wi...
public void bind(final com.example.karan.popularmovies.Movie movie, final com.example.karan.popularmovies.OnPosterClickListener onPosterClickListener) { movieName.setText(movie.getTitle()); com.squareup.picasso.Picasso.with(context).load(movie.getMoviePosterURL()).resizeDimen(R.dimen.activity_discover_poster_wi...
public static int calculateHighScorePosition(int playerScore) { if (playerScore > 1000) { return 1; }else if ((playerScore > 500) <= 1000) { return 2; }else if ((playerScore > 100) <= 500) { return 3; }else { return 4; ...
public static int calculateHighScorePosition(int playerScore) { if (playerScore > 1000) { return 1; }else if ((playerScore > 500) && (playerScore <= 1000)) { return 2; }else if ((playerScore > 100) && (playerScore <= 500)) { return 3; }...
private java.lang.String getRetailItemValue() { java.lang.StringBuffer value = new java.lang.StringBuffer(java.lang.String.valueOf(counter.getAndIncrement())); int length = value.length(); for (int i = 1; i <= (10 - length); i++) { value.append("0"); } return value.toString(); }
private java.lang.String getRetailItemValue() { java.lang.StringBuilder value = new java.lang.StringBuilder(java.lang.String.valueOf(counter.getAndIncrement())); int length = value.length(); for (int i = 1; i <= (10 - length); i++) { value.append("0"); } return value.toString(); }
public void deleteUser(java.lang.String name) { if (codeu.chat.client.ClientUser.usersByName.containsValue(name)) { codeu.chat.common.User userObject = codeu.chat.client.ClientUser.usersByName.getValue(name); for (java.util.Map.Entry<codeu.chat.common.Uuid, codeu.chat.common.User> entry : usersById....
public void deleteUser(java.lang.String name) { if (codeu.chat.client.ClientUser.usersByName.containsValue(name)) { codeu.chat.common.User userObject = codeu.chat.client.ClientUser.usersByName.first(name); for (java.util.Map.Entry<codeu.chat.common.Uuid, codeu.chat.common.User> entry : usersById.ent...
public java.lang.String getPersonJson(final java.lang.String userName, final java.lang.String password) throws java.io.IOException { java.net.Authenticator.setDefault(new java.net.Authenticator() { protected java.net.PasswordAuthentication getPasswordAuthentication() { if ((com.mobidevday.demo.n...
public java.lang.String getPersonJson(final java.lang.String userName, final java.lang.String password) throws java.io.IOException { com.mobidevday.demo.network.BasicHelper.mRetries = 0; java.net.Authenticator.setDefault(new java.net.Authenticator() { protected java.net.PasswordAuthentication getPasswor...
public java.lang.String memRegisterSubmit(javax.servlet.http.HttpServletRequest request, @org.springframework.web.bind.annotation.RequestParam(value = "email", required = false) java.lang.String email, @org.springframework.web.bind.annotation.RequestParam(value = "pw", required = false) java.lang.String pw) { if ((...
public java.lang.String memRegisterSubmit(javax.servlet.http.HttpServletRequest request, @org.springframework.web.bind.annotation.RequestParam(value = "email", required = false) java.lang.String email, @org.springframework.web.bind.annotation.RequestParam(value = "pw", required = false) java.lang.String pw) { if ((...
public void readFully(long pos, byte[] bytes, int off, int len) throws java.io.IOException { this.in.seek(pos); if ((this.in.getPos()) != pos) { throw new java.io.IOException(("Cannot find position : " + pos)); } super.read(bytes, off, len); }
public void readFully(long pos, byte[] bytes, int off, int len) throws java.io.IOException { this.in.seek(pos); if ((this.in.getPos()) != pos) { throw new java.io.IOException(("Cannot find position : " + pos)); } this.in.read(bytes, off, len); }
public android.view.View getContentLayout(android.view.View view) { this.draftListView = ((android.widget.ListView) (view.findViewById(R.id.draft_list))); this.sendAllButton = ((android.widget.Button) (view.findViewById(R.id.send_all_button))); initializeDraftList(this.draftManager, this.draftListView); ...
public android.view.View getContentLayout(android.view.View view) { this.sendAllButton = ((android.widget.Button) (view.findViewById(R.id.send_all_button))); this.draftListView = ((android.widget.ListView) (view.findViewById(R.id.draft_list))); initializeDraftList(this.draftManager); initializeSendAllBu...
protected void doPost(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws java.io.IOException, javax.servlet.ServletException { java.lang.String quizName = request.getParameter("quizName"); java.util.ArrayList<Interfaces.QuestionInterface> questions = new java....
protected void doPost(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws java.io.IOException, javax.servlet.ServletException { java.lang.String quizName = request.getParameter("quizName"); java.util.ArrayList<Interfaces.QuestionInterface> questions = new java....
public static java.lang.String toJson(java.lang.Object obj) { try { com.google.gson.Gson gson = new com.google.gson.GsonBuilder().serializeNulls().excludeFieldsWithoutExposeAnnotation().create(); java.lang.String result = gson.toJson(obj); return result; } catch (java.lang.Exception e) {...
public static java.lang.String toJson(java.lang.Object obj) { try { com.google.gson.Gson gson = new com.google.gson.GsonBuilder().serializeNulls().create(); java.lang.String result = gson.toJson(obj); return result; } catch (java.lang.Exception e) { e.printStackTrace(); r...
public void givenAFirmwareLocationConfigurationWith(final java.lang.String firmwareDomainConfig, final java.lang.String firmwarePathConfig, final java.lang.String firmwareExtensionConfig) { com.alliander.osgp.acceptancetests.firmwaremanagement.UpdateFirmwareSteps.LOGGER.info("[Given a firmware location configuratio...
public void givenAFirmwareLocationConfigurationWith(final java.lang.String firmwareDomainConfig, final java.lang.String firmwarePathConfig, final java.lang.String firmwareExtensionConfig) { com.alliander.osgp.acceptancetests.firmwaremanagement.UpdateFirmwareSteps.LOGGER.info("[Given a firmware location configuratio...
public static void calculatePackages() { for (data.Order order : main.PackageCalculator.orders) { for (main.Link link : order.links) { data.Warehouse warehouse = link.warehouse; data.ProductType product = link.product; helperClasses.Position position = order.position; ...
public static void calculatePackages() { for (data.Order order : main.PackageCalculator.orders) { for (main.Link link : order.links) { data.Warehouse warehouse = link.warehouse; data.ProductType product = link.product; helperClasses.Position position = order.position; ...
protected void doSetValue(java.lang.Object value) { final java.lang.String strValue = ((java.lang.String) (value)); final java.lang.String oldValue = ((java.lang.String) (beanConfigUtil.getAttributeValue(selectedElement, GlobalBeanEIP.PROP_CLASS))); if (!(oldValue.contentEquals(strValue))) { beanCon...
protected void doSetValue(java.lang.String value) { final java.lang.String strValue = value; final java.lang.String oldValue = ((java.lang.String) (beanConfigUtil.getAttributeValue(selectedElement, GlobalBeanEIP.PROP_CLASS))); if (((strValue != null) && (oldValue == null)) || ((oldValue != null) && (!(oldVa...
public void updateStatus() throws java.lang.Exception { com.iota.iri.controllers.TransactionRequester.instance().clearTransactionRequest(getHash()); if (quickSetSolid()) { com.iota.iri.TransactionValidator.addSolidTransaction(getHash()); } if ((getApprovers().size()) == 0) { com.iota.iri...
public void updateStatus() throws java.lang.Exception { com.iota.iri.controllers.TransactionRequester.instance().clearTransactionRequest(getHash()); if (quickSetSolid()) { } if ((getApprovers().size()) == 0) { com.iota.iri.controllers.TipsViewModel.addTipHash(getHash()); } }
private void setReminderTabBackground() { if ((gui.LookupHelper.getAllDueReminders(o_thread).size()) > 0) { o_tabs.setTitleAt(5, "Reminders *"); o_tabs.setBackgroundAt(5, java.awt.Color.red); }else { o_tabs.setTitleAt(5, "Reminders"); o_tabs.setBackgroundAt(5, o_tabs.getBackgroun...
private void setReminderTabBackground() { if ((gui.LookupHelper.getAllDueReminders(o_thread).size()) > 0) { o_tabs.setTitleAt(5, "Reminders *"); o_tabs.setBackgroundAt(5, java.awt.Color.red); }else { o_tabs.setTitleAt(5, "Reminders"); o_tabs.setBackgroundAt(5, o_tabs.getBackgroun...
public void actionPerformed(java.awt.event.ActionEvent e) { if (doublemoveButton.isSelected()) { taxiButton.setSelected(false); busButton.setSelected(false); undergroundButton.setSelected(false); secretButton.setSelected(false); possibleLoc.setSelected(false); firstMo...
public void actionPerformed(java.awt.event.ActionEvent e) { if (doublemoveButton.isSelected()) { taxiButton.setSelected(false); busButton.setSelected(false); undergroundButton.setSelected(false); secretButton.setSelected(false); firstMove = true; mainMap(); }else ...
public static void main(java.lang.String[] args) { try { java.lang.String s = "(2/2/X)"; com.ruh.exprcal.fragments.Constant.addConstant("X", 4.0); com.ruh.exprcal.renderer.ExpressionRenderer e = new com.ruh.exprcal.renderer.ExpressionRenderer(s, com.ruh.exprcal.renderer.ExpressionRenderer.DE...
public static void main(java.lang.String[] args) { try { java.lang.String s = "(2/2/X)"; com.ruh.exprcal.fragments.Constant.add("X", 4.0); com.ruh.exprcal.renderer.ExpressionRenderer e = new com.ruh.exprcal.renderer.ExpressionRenderer(s, com.ruh.exprcal.renderer.ExpressionRenderer.DEGREE, 4)...
public void run() { try { java.io.File imageFile = jFileChooser.getSelectedFile(); if (imageFile != null) { attachImage(imageFile, imageFile.getAbsolutePath()); } } catch (java.lang.Exception e) { name.kion.twipstr.gui.NotificationService.errorMessage(e, frameTwipstr)...
public void run() { try { java.io.File imageFile = jFileChooser.getSelectedFile(); if (imageFile != null) { attachImage(imageFile, imageFile.getAbsolutePath()); } } catch (java.lang.Exception e) { name.kion.twipstr.gui.NotificationService.errorMessage(e, frameTwipstr)...
private boolean canUseCommands(org.bukkit.command.CommandSender sender) { boolean canUse = sender.isOp(); if (fr.crazyws.mccrestart.utils.ConfigUtils.active) { if (((!canUse) && (sender instanceof org.bukkit.entity.Player)) && ((fr.crazyws.mccrestart.MCCRestart.instance.permissions) != null)) { ...
private boolean canUseCommands(org.bukkit.command.CommandSender sender) { boolean canUse = sender.isOp(); if (((!canUse) && (sender instanceof org.bukkit.entity.Player)) && ((fr.crazyws.mccrestart.MCCRestart.instance.permissions) != null)) { canUse = fr.crazyws.mccrestart.MCCRestart.instance.permissions...
public <T> T getFromListCache(java.lang.Object key, com.jfinal.plugin.ehcache.IDataLoader dataloader) { java.util.List<java.lang.String> inCacheKeys = com.jfinal.plugin.ehcache.CacheKit.get(io.jpress.model.CACHE_NAME, "cachekeys"); java.util.List<java.lang.String> cacheKeyList = new java.util.ArrayList<java.lan...
public <T> T getFromListCache(java.lang.Object key, com.jfinal.plugin.ehcache.IDataLoader dataloader) { java.util.Set<java.lang.String> inCacheKeys = com.jfinal.plugin.ehcache.CacheKit.get(io.jpress.model.CACHE_NAME, "cachekeys"); java.util.Set<java.lang.String> cacheKeyList = new java.util.HashSet<java.lang.St...
private com.netflix.dyno.connectionpool.HostConnectionPool<CL> getHostPoolForOperationOrTokenInLocalZone(com.netflix.dyno.connectionpool.BaseOperation<CL, ?> op, java.lang.Long token) { com.netflix.dyno.connectionpool.HostConnectionPool<CL> hostPool; try { if (!(localRack.isEmpty())) { hostP...
private com.netflix.dyno.connectionpool.HostConnectionPool<CL> getHostPoolForOperationOrTokenInLocalZone(com.netflix.dyno.connectionpool.BaseOperation<CL, ?> op, java.lang.Long token) { com.netflix.dyno.connectionpool.HostConnectionPool<CL> hostPool; try { if (!(localSelector.isEmpty())) { h...
private void updateAppointment() { if ((_selectedTask) != null) { _currentStoreAppointment.setStoreTask(_selectedTask); _currentStoreAppointment.setStartDate(_selectedWorker.getNextAvailability(false)); _txtStartTime.setText(_currentStoreAppointment.getFormattedStartDate()); _txtEndT...
private void updateAppointment() { if ((_selectedTask) != null) { _currentStoreAppointment.setStoreTask(_selectedTask); _currentStoreAppointment.setStartDate(_selectedWorker.getNextAvailability()); _txtStartTime.setText(_currentStoreAppointment.getFormattedStartDate()); _txtEndTime.s...
protected void okPressed() { if ((combo.getItemCount()) == 0) { cceclipseplugin.ui.dialogs.MessageDialog.createDialog(DialogStrings.AddProjectDialog_NoProjectsErr).open(); return ; } org.eclipse.core.resources.IProject selectedProject = localProjects[combo.getSelectionIndex()]; cceclipse...
protected void okPressed() { if ((combo.getItemCount()) == 0) { cceclipseplugin.ui.dialogs.MessageDialog.createDialog(DialogStrings.AddProjectDialog_NoProjectsErr).open(); return ; } if ((combo.getSelectionIndex()) == (-1)) { return ; } org.eclipse.core.resources.IProject sel...
public com.microsoft.azure.shortcuts.resources.implementation.PublicIpAddressImpl withLeafDomainLabel(java.lang.String dnsName) { com.microsoft.azure.management.network.models.PublicIpAddressDnsSettings dnsSettings; if (dnsName == null) { this.inner().setDnsSettings(null); return this; }else...
public com.microsoft.azure.shortcuts.resources.implementation.PublicIpAddressImpl withLeafDomainLabel(java.lang.String dnsName) { com.microsoft.azure.management.network.models.PublicIpAddressDnsSettings dnsSettings; if (dnsName == null) { this.inner().setDnsSettings(null); return this; }else...
protected void setUp() { if (!(tests.ChartTests.setupDone)) { csvReader = new csv.CSVReader(); csvReader.uploadCSV("2_week_campaign_2/server_log.csv", "serverlog"); csvReader.uploadCSV("2_week_campaign_2/click_log.csv", "clicklog"); csvReader.uploadCSV("2_week_campaign_2/impression_l...
protected void setUp() { if (!(tests.ChartTests.setupDone)) { csvReader = new csv.CSVReader(); csvReader.uploadCSV("2_week_campaign_2/server_log.csv", "serverlog"); csvReader.uploadCSV("2_week_campaign_2/click_log.csv", "clicklog"); csvReader.uploadCSV("2_week_campaign_2/impression_l...
public void onClick(android.view.View view) { de.appphil.categories.CategoriesApplication application = ((de.appphil.categories.CategoriesApplication) (getApplication())); application.getRealTimeGameData().sendMessageToPartner(new de.appphil.categories.messages.InputMessage(adapter.getInput(), application.getRe...
public void onClick(android.view.View view) { de.appphil.categories.CategoriesApplication application = ((de.appphil.categories.CategoriesApplication) (getApplication())); application.getRealTimeGameData().sendMessageToPartner(new de.appphil.categories.messages.InputMessage(getInput(), application.getRealTimeGa...
protected void onCreate(android.os.Bundle savedInstanceState) { super.onCreate(savedInstanceState); com.mayi.jni_l3.JNILib.init(getAssets()); com.mayi.jni_l3.JNILib.readAsset(); android.opengl.GLSurfaceView surfaceView = new android.opengl.GLSurfaceView(this); surfaceView.setEGLContextClientVersion(...
protected void onCreate(android.os.Bundle savedInstanceState) { super.onCreate(savedInstanceState); surfaceView = new android.opengl.GLSurfaceView(this); surfaceView.setEGLContextClientVersion(2); surfaceView.setRenderer(new com.mayi.jni_l3.GLRenderer()); surfaceView.setRenderMode(GLSurfaceView.REND...
public java.util.ArrayList<biocode.fims.digester.Entity> getEntititesWithAttributeUri(java.lang.String uri) { java.util.ArrayList<biocode.fims.digester.Entity> entities = new java.util.ArrayList<>(); for (biocode.fims.digester.Entity entity : entities) { for (biocode.fims.digester.Attribute attribute : ...
public java.util.ArrayList<biocode.fims.digester.Entity> getEntititesWithAttributeUri(java.lang.String uri) { java.util.ArrayList<biocode.fims.digester.Entity> entities = new java.util.ArrayList<>(); for (biocode.fims.digester.Entity entity : this.entities) { for (biocode.fims.digester.Attribute attribu...
public void addViewControllers(org.springframework.web.servlet.config.annotation.ViewControllerRegistry registry) { registry.addViewController("/").setViewName("platform"); registry.addViewController("/home").setViewName("platform"); registry.addViewController("/login").setViewName("login"); registry.ad...
public void addViewControllers(org.springframework.web.servlet.config.annotation.ViewControllerRegistry registry) { registry.addViewController("/").setViewName("platform"); registry.addViewController("/login").setViewName("login"); registry.addViewController("/register").setViewName("register"); registr...
protected void convert(com.chad.library.adapter.base.BaseViewHolder holder, java.lang.Object item) { switch (holder.getItemViewType()) { case com.chad.library.adapter.base.BaseSectionQuickAdapter.SECTION_HEADER_VIEW : if ((holder.itemView.getLayoutParams()) instanceof android.support.v7.widget.S...
protected void convert(com.chad.library.adapter.base.BaseViewHolder holder, java.lang.Object item) { switch (holder.getItemViewType()) { case com.chad.library.adapter.base.BaseSectionQuickAdapter.SECTION_HEADER_VIEW : setFullSpan(holder); convertHead(holder, ((T) (item))); ...
static byte[] readFully(java.io.InputStream is, int numBytes) throws java.io.IOException { byte[] b = new byte[numBytes]; int n = is.read(b); if (n != numBytes) throw new java.lang.RuntimeException("unexpected"); return b; }
static byte[] readFully(java.io.InputStream is, int numBytes) throws java.io.IOException { byte[] b = new byte[numBytes]; int count = 0; do { int n = is.read(b, count, (numBytes - count)); if (n > 0) { count += n; }else { throw new java.lang.RuntimeException("...
public java.lang.String display(java.lang.String name) { java.util.List<com.giisoo.framework.common.Stat> list = names.get(name); if ((list != null) && ((list.size()) > 0)) { return list.get(0).getDisplay(); } return com.giisoo.core.bean.X.EMPTY; }
public java.lang.String display(java.lang.String name) { java.util.List<com.giisoo.framework.common.Stat> list = names.get(name); if ((list != null) && ((list.size()) > 0)) { return list.get(0).toString(); } return com.giisoo.core.bean.X.EMPTY; }
public void add(int value) { (counter)++; if ((counter) != (divider)) { sum += value; }else { notifyListeners(((int) ((sum) / (divider)))); counter = 0; sum = 0; } }
public void add(int value) { (counter)++; if ((counter) != (divider)) { sum += value; }else { sum += value; notifyListeners(((int) ((sum) / (divider)))); counter = 0; sum = 0; } }
public void onEnterPressed() { if ((answerTimer) == null) return ; int l = answerText.length(); int r; if (l > 0) { java.lang.String s = answerText.getText().toString(); r = java.lang.Integer.valueOf(s); onAnswer((r == (mRightAnswer)), s); } }
public void onEnterPressed() { if ((answerTimer) == null) return ; int l = answerText.length(); if (l > 0) { java.lang.String s = answerText.getText().toString(); onAnswer(s.equals(java.lang.String.valueOf(mRightAnswer)), s); } }
public void setWeights(org.ejml.data.DenseMatrix64F weight) { for (int i = 0; i < 3; i++) { weightVector.set(i, 0, weight.get(i, 0)); hasWeight = ((weight.get(i, 0)) != (us.ihmc.commonWalkingControlModules.controllerCore.command.SolverWeightLevels.HARD_CONSTRAINT)) && (hasWeight); } }
public void setWeights(org.ejml.data.DenseMatrix64F weight) { hasWeight = true; for (int i = 0; i < 3; i++) { weightVector.set(i, 0, weight.get(i, 0)); if ((weight.get(i, 0)) == (us.ihmc.commonWalkingControlModules.controllerCore.command.SolverWeightLevels.HARD_CONSTRAINT)) hasWeight...
private boolean isHittingWallOrGroundUpwards(int xPosition, float yPosition) { if (!(isWithinView(xPosition))) { throw new java.lang.Error("Logic error: this should never be checked out of the level matrix"); } return (isOnLevelMatrix(xPosition, ((int) (yPosition - 0.01)))) && (MarioAI.graph.edges.E...
private boolean isHittingWallOrGroundUpwards(int xPosition, float yPosition) { return (isOnLevelMatrix(xPosition, ((int) (yPosition - 0.01)))) && (MarioAI.graph.edges.EdgeCreator.isSolid(observationGraph[xPosition][((int) (yPosition - 0.01))])); }
public java.lang.String arrayListToString(java.util.ArrayList felipe) { java.lang.String result = "["; for (int i = 0; i < (felipe.size()); i++) { result += (felipe.get(i)) + " "; } result += "]"; return result; }
public java.lang.String arrayListToString(java.util.ArrayList felipe) { java.lang.String result = "["; for (int i = 0; i < (felipe.size()); i++) { if (i == ((felipe.size()) - 1)) { result += felipe.get(i); }else { result += (felipe.get(i)) + " "; } } resu...
public void addFirst(T value) { if (((head) == (tail)) && ((storage[head]) != null)) { resize(); } storage[head] = value; head = ((head) - 1) % (storage.length); }
public void addFirst(T value) { if ((size) == (storage.length)) { resize(); } storage[(((storage.length) + (head)) % (storage.length))] = value; head = ((storage.length) + ((head) - 1)) % (storage.length); (size)++; }
public static synchronized void saveSeries(final com.drknotter.episodilyzer.server.model.SaveSeriesInfo seriesInfo) { if (seriesInfo == null) { return ; } if (!(com.drknotter.episodilyzer.utils.SeriesUtils.saveSeriesTaskMap.containsKey(seriesInfo.seriesId))) { com.drknotter.episodilyzer.serv...
public static synchronized void saveSeries(final com.drknotter.episodilyzer.server.model.SaveSeriesInfo seriesInfo) { if (seriesInfo == null) { return ; } if (!(com.drknotter.episodilyzer.utils.SeriesUtils.saveSeriesTaskMap.containsKey(seriesInfo.seriesId))) { com.drknotter.episodilyzer.serv...
private void addContent() { javax.swing.JButton buttonLeft = new javax.swing.JButton("<"); javax.swing.JLabel dateLabel = new javax.swing.JLabel("11-09-2001"); javax.swing.JButton buttonRight = new javax.swing.JButton(">"); this.add(buttonLeft); this.add(dateLabel); this.add(buttonRight); }
private void addContent() { buttonLeft = new javax.swing.JButton("<"); dateLabel = new javax.swing.JLabel(); buttonRight = new javax.swing.JButton(">"); this.add(buttonLeft); this.add(dateLabel); this.add(buttonRight); }
private void changeVisualCharacter(final int columnIndex, final int rowIndex, final char character) { if ((columnIndex < 0) || (columnIndex > (maxHorizontalCharacters))) { return ; } if ((rowIndex < 0) || (rowIndex > (maxVerticalCharacters))) { return ; } final com.valkryst.VTerminal...
private void changeVisualCharacter(final int columnIndex, final int rowIndex, final char character) { if ((columnIndex < 0) || (columnIndex >= (maxHorizontalCharacters))) { return ; } if ((rowIndex < 0) || (rowIndex >= (maxVerticalCharacters))) { return ; } final com.valkryst.VTermin...
protected com.weinyc.sa.core.db.DatabaseHandler getDatabaseHandler() { if ((databaseHandler) == null) { databaseHandler = ((com.weinyc.sa.core.db.DatabaseHandler) (this.getAppContext().getBean("databaseHandler"))); } if ((databaseHandler) == null) { this.databaseHandler = new com.weinyc.sa.c...
protected com.weinyc.sa.core.db.DatabaseHandler getDatabaseHandler() { if ((databaseHandler) == null) { databaseHandler = ((com.weinyc.sa.core.db.DatabaseHandler) (this.getBean("databaseHandler"))); } if ((databaseHandler) == null) { this.databaseHandler = new com.weinyc.sa.core.db.DatabaseH...
private static java.lang.String createPupilUsername(java.lang.String firstName, java.lang.String lastName) { return (firstName.charAt(0)) + (lastName.substring(0, java.lang.Math.min(lastName.length(), ((models.util.db.PupilBank.MaxUsernameLength) - 1)))); }
private static java.lang.String createPupilUsername(java.lang.String firstName, java.lang.String lastName) { return (firstName.toLowerCase().charAt(0)) + (lastName.toLowerCase().substring(0, java.lang.Math.min(lastName.length(), ((models.util.db.PupilBank.MaxUsernameLength) - 1)))); }
private java.lang.String getResponseString(org.apache.http.HttpResponse lastResponse) { java.lang.StringBuilder result = new java.lang.StringBuilder(); try (java.io.BufferedReader rd = new java.io.BufferedReader(new java.io.InputStreamReader(lastResponse.getEntity().getContent()))) { java.lang.String li...
private java.lang.String getResponseString(org.apache.http.HttpResponse lastResponse) { java.lang.StringBuilder result = new java.lang.StringBuilder(); try (java.io.BufferedReader rd = new java.io.BufferedReader(new java.io.InputStreamReader(lastResponse.getEntity().getContent()))) { java.lang.String li...
public dnd.core.FightModule fight() { dnd.core.FightModule fightModule = null; if ((this.getContentType()) == (dnd.tools.various.ContentType.Monster)) { java.lang.Character monster = ((java.lang.Character) (this.getCurrentRoom().getContent())); fightModule = new dnd.core.FightModuleImpl(this.pla...
public dnd.core.FightModule fight() { dnd.core.FightModule fightModule = null; if ((this.getCurrentRoom().getContentType()) == (dnd.tools.various.ContentType.Monster)) { java.lang.Character monster = ((java.lang.Character) (this.getCurrentRoom().getContent())); fightModule = new dnd.core.FightMo...
public void testSplitForOneCard() { models.Game g = new models.Game(); models.User u = new models.User(); u.hostGame = g; models.Card card1 = new models.Card(8, Suit.Clubs, true); g.dealCardToCol(0, card1); u.split(); assertEquals(false, u.isSplit); }
public void testSplitForOneCard() { models.Game g = new models.Game(); models.User u = new models.User(); models.Card card1 = new models.Card(8, Suit.Clubs, true); u.dealCardToCol(0, card1); u.split(); assertEquals(false, u.isSplit); }
public data_structures.user.User getUserByName(java.lang.String username) { try { java.lang.System.err.println(("Method getuserbyname: " + username)); return core.CoreModel.getInstance().addCommand(new frontend.Requests.GetUserByNameCommand(username)).get(); } catch (java.lang.InterruptedExcepti...
public data_structures.user.User getUserByName(java.lang.String username) { try { return core.CoreModel.getInstance().addCommand(new frontend.Requests.GetUserByNameCommand(username)).get(); } catch (java.lang.InterruptedException e) { e.printStackTrace(); } catch (java.util.concurrent.Execut...
void stopListeners(javafx.scene.input.MouseEvent event) { java.util.concurrent.ConcurrentHashMap<java.lang.String, java.util.ArrayList<java.lang.String>> streamerToStreamSourcesMap = IM.getStreamerToStreamMap(); java.util.Set<java.util.Map.Entry<java.lang.String, java.util.ArrayList<java.lang.String>>> setOfEnt...
void stopListeners(javafx.scene.input.MouseEvent event) { java.util.concurrent.ConcurrentHashMap<java.lang.String, java.util.ArrayList<java.lang.String>> streamerToStreamSourcesMap = IM.getStreamerToStreamMap(); java.util.Set<java.util.Map.Entry<java.lang.String, java.util.ArrayList<java.lang.String>>> setOfEnt...
public void toggleEEState(robot.RoboticArm robot) { int edx = (robot.getActiveEEIdx()) - 1; int curState = robot.getEEState(); if (curState == (global.Fields.ON)) { robot.setEEState(edx, Fields.OFF); }else { robot.setEEState(edx, Fields.ON); } robot.checkPickupCollision(activeSce...
public void toggleEEState(robot.RoboticArm robot) { int edx = robot.getActiveEEIdx(); int curState = robot.getEEState(); if (curState == (global.Fields.ON)) { robot.setEEState(edx, Fields.OFF); }else { robot.setEEState(edx, Fields.ON); } robot.checkPickupCollision(activeScenario)...
public long getFalseNegative(T label) { de.tudarmstadt.ukp.dkpro.core.api.frequency.util.FrequencyDistribution<T> fd = cfd.getFrequencyDistribution(label); long total = 0L; for (T key : fd.getKeys()) { if (!(key.equals(label))) { total += fd.getCount(key); } } return tota...
public long getFalseNegative(T label) { de.tudarmstadt.ukp.dkpro.core.api.frequency.util.FrequencyDistribution<T> fd = cfd.getFrequencyDistribution(label); long total = 0L; if (fd == null) { return total; } for (T key : fd.getKeys()) { if (!(key.equals(label))) { total +=...
private void addValue(java.lang.Object key, java.lang.Object value) throws java.lang.IllegalAccessException, java.lang.IllegalArgumentException { java.util.Map map = ((java.util.Map) (f.get(bean))); if (map == null) { map = new java.util.HashMap(); f.set(bean, map); } map.put(key, value)...
protected void addValue(java.lang.String key, java.lang.String value) throws java.lang.IllegalAccessException, java.lang.IllegalArgumentException { java.util.Map map = ((java.util.Map) (f.get(bean))); if (map == null) { map = new java.util.HashMap(); f.set(bean, map); } map.put(key, valu...
public void initiateFederateRestore(final java.lang.String label, final java.lang.String federateName, final hla.rti1516e.FederateHandle federateHandle) throws hla.rti1516e.exceptions.FederateInternalError { this.logger.info(((((("initiateFederateRestore label=" + label) + ", federateName=") + federateName) + ", fe...
public void initiateFederateRestore(final java.lang.String label, final java.lang.String federateName, final hla.rti1516e.FederateHandle federateHandle) throws hla.rti1516e.exceptions.FederateInternalError { this.logger.info(((((("initiateFederateRestore label=" + label) + ", federateName=") + federateName) + ", fe...
public boolean add(T value) { CoarseGrainedListSet<T>.LLNode newNode = new LLNode(); newNode.next = null; newNode.value = value; listLock.lock(); end.next = newNode; end = end.next; listLock.unlock(); return true; }
public boolean add(T value) { if (!(contains(value))) { CoarseGrainedListSet<T>.LLNode newNode = new LLNode(); newNode.next = null; newNode.value = value; listLock.lock(); end.next = newNode; end = end.next; listLock.unlock(); return true; } re...
public java.util.ArrayList<bwta.Region> getRegionsWithStatus(SCBot.RegionGraph.RegionStatus status) { SCBot.RegionGraph.Node[] sorted = ((SCBot.RegionGraph.Node[]) (nodes.values().toArray())); java.util.Arrays.sort(sorted); java.util.ArrayList<bwta.Region> regions = new java.util.ArrayList<bwta.Region>(sort...
public java.util.ArrayList<bwta.Region> getRegionsWithStatus(SCBot.RegionGraph.RegionStatus status) { SCBot.RegionGraph.Node[] sorted = ((SCBot.RegionGraph.Node[]) (this.nodes.values().toArray())); java.util.Arrays.sort(sorted); java.util.ArrayList<bwta.Region> regions = new java.util.ArrayList<bwta.Region>...
public void onClick(android.content.DialogInterface dialog, int id) { touchedTask.setName(("[Completed] " + (touchedTask.getName()))); tasks.add(touchedTask); tasks.remove(touchedTask); touchedTask.setComplete(true); setUpTasksWithNewTasks(); taskAdapter.notifyDataSetChanged(); parent.notify...
public void onClick(android.content.DialogInterface dialog, int id) { tasks.add(touchedTask); tasks.remove(touchedTask); touchedTask.setComplete(true); setUpTasksWithNewTasks(); taskAdapter.notifyDataSetChanged(); com.todome.ToDoMeActivity.writeTasks(ToDoMeActivity.tasks); }
public int run(final java.lang.String[] args) { if ((args.length) > 0) { java.lang.System.err.println(((appName()) + ": too many arguments")); return 1; } generadorDePaketes.Ice.ObjectAdapter adapter = communicator().createObjectAdapter("Server"); adapter.add(new generadorDePaketes.Servi...
public int run(final java.lang.String[] args) { if ((args.length) > 0) { return 1; } generadorDePaketes.Ice.ObjectAdapter adapter = communicator().createObjectAdapter("Server"); adapter.add(new generadorDePaketes.Servicios(), Ice.Util.stringToIdentity("server")); adapter.activate(); comm...
public void operationComplete(org.jboss.netty.channel.ChannelFuture future) throws java.lang.Exception { if (!(future.isSuccess())) { com.alibaba.jstorm.message.netty.StormClientHandler.LOG.warn("Failed to send requests:", future.getCause()); future.getChannel().close(); }else { } if (be...
public void operationComplete(org.jboss.netty.channel.ChannelFuture future) throws java.lang.Exception { if (!(future.isSuccess())) { com.alibaba.jstorm.message.netty.StormClientHandler.LOG.warn("Failed to send requests:", future.getCause()); future.getChannel().close(); }else { } }
public void addBcc(java.lang.String email) { try { for (java.lang.String mail : email.split(";")) if (canSendTo(mail)) this.bcc.add(new javax.mail.internet.InternetAddress(mail)); } catch (javax.mail.internet.AddressException e) { throw new java....
public void addBcc(java.lang.String email) { try { for (java.lang.String mail : email.split(";")) this.bcc.add(new javax.mail.internet.InternetAddress(mail)); } catch (javax.mail.internet.AddressException e) { throw new java.lang.RuntimeException(e); } }
public void run() { try { java.lang.String output = ""; for (int index = outputIndex; index < ((outputIndex) + 7); index++) { int val = wireMonitor.getValue(index); output += java.lang.String.valueOf(val); } java.lang.System.out.println(output); } catch (j...
public void run() { try { java.lang.String output = ""; for (int index = outputIndex; index < ((outputIndex) + 7); index++) { int val = wireMonitor.getValue(index); output = (java.lang.String.valueOf(val)) + output; } java.lang.System.out.println(output); ...
private boolean isCalculatable(Calculator.Expression expression) { if ((expression.GetType()) == (Calculator.Expression.ExpressionType.Digit)) return true; if ((expression.GetType()) == (Calculator.Expression.ExpressionType.Variable)) if ((((Calculator.Variable) (expression)).variable_type)...
private static boolean isCalculatable(Calculator.Expression expression) { if ((expression.GetType()) == (Calculator.Expression.ExpressionType.Digit)) return true; if ((expression.GetType()) == (Calculator.Expression.ExpressionType.Variable)) if ((((Calculator.Variable) (expression)).variabl...
public void update(int screenWidth, int screenHeight, boolean centerCamera) { setScreenBounds(0, 0, screenWidth, screenHeight); final float aspectRatio = ((float) (screenWidth)) / ((float) (screenHeight)); setWorldSize((screenWidth * (unitsPerPixel)), (screenHeight * (unitsPerPixel))); apply(centerCamer...
public void update(int screenWidth, int screenHeight, boolean centerCamera) { setScreenBounds(0, 0, screenWidth, screenHeight); setWorldSize((screenWidth * (unitsPerPixel)), (screenHeight * (unitsPerPixel))); apply(centerCamera); }
public void actionPerformed(java.awt.event.ActionEvent arg0) { if (arg0.getActionCommand().equals("pvc")) { java.lang.System.out.println("[TODO]"); }else if (arg0.getActionCommand().equals("pvp")) { startGame(true); } }
public void actionPerformed(java.awt.event.ActionEvent arg0) { if (arg0.getActionCommand().equals("pvc")) { java.lang.System.out.println("[TODO]"); startGame(false); }else if (arg0.getActionCommand().equals("pvp")) { startGame(true); } }
public byte[] readBytesFull() throws java.io.IOException { byte[] buffer = new byte[io.kaitai.struct.KaitaiStream.DEFAULT_BUFFER_SIZE]; java.io.ByteArrayOutputStream baos = new java.io.ByteArrayOutputStream(); int readCount = 0; while ((-1) != (readCount = st.read(buffer))) baos.write(buffer, 0,...
public byte[] readBytesFull() throws java.io.IOException { byte[] buffer = new byte[io.kaitai.struct.KaitaiStream.DEFAULT_BUFFER_SIZE]; java.io.ByteArrayOutputStream baos = new java.io.ByteArrayOutputStream(); int readCount; while ((-1) != (readCount = st.read(buffer))) baos.write(buffer, 0, rea...
private void enableProcessors() { org.esa.beam.framework.ui.command.CommandManager commandManager = getAppContext().getApplicationPage().getCommandManager(); java.lang.String namesToExclude = gov.nasa.gsfc.seadas.processing.general.ProcessorTypeInfo.getExcludedProcessorNames(); for (java.lang.String process...
private void enableProcessors() { org.esa.beam.framework.ui.command.CommandManager commandManager = getAppContext().getApplicationPage().getCommandManager(); java.lang.String namesToExclude = gov.nasa.gsfc.seadas.processing.general.ProcessorTypeInfo.getExcludedProcessorNames(); for (java.lang.String process...
protected void onStopLoading() { progressBar.setVisibility(View.GONE); butterknife.ButterKnife.apply(radios, new butterknife.ButterKnife.Action<android.view.View>() { @java.lang.Override public void apply(android.view.View view, int index) { view.setEnabled(true); } }); }
protected void onStopLoading() { super.onStopLoading(); progressBar.setVisibility(View.GONE); butterknife.ButterKnife.apply(radios, new butterknife.ButterKnife.Action<android.view.View>() { @java.lang.Override public void apply(android.view.View view, int index) { view.setEnabled...
public void print(android.widget.TextView view) { java.lang.String s = (((("YAW: " + (java.lang.Double.toString(yaw))) + " PITCH: ") + (java.lang.Double.toString(pitch))) + " ROLL: ") + (java.lang.Double.toString(roll)); if (view != null) { view.setText(s); }else { java.lang.System.out.print...
public void print(android.widget.TextView view) { java.lang.String s = (((("YAW: " + (java.lang.Integer.toString(yaw))) + " PITCH: ") + (java.lang.Integer.toString(pitch))) + " ROLL: ") + (java.lang.Integer.toString(roll)); if (view != null) { view.setText(s); }else { java.lang.System.out.pr...
public static com.zhzx.uip.commons.module.ResponseVo buildFailResponse(com.zhzx.uip.commons.enums.ErrorEnum errorEnum) { com.zhzx.uip.commons.module.ResponseVo responseVo = new com.zhzx.uip.commons.module.ResponseVo(); responseVo.setCode(errorEnum.getErrorCode()); responseVo.setMessage(errorEnum.getErrorMsg...
public static com.zhzx.uip.commons.module.ResponseVo buildFailResponse(com.zhzx.uip.commons.enums.ErrorEnum errorEnum, java.lang.String msg) { com.zhzx.uip.commons.module.ResponseVo responseVo = new com.zhzx.uip.commons.module.ResponseVo(); responseVo.setCode(errorEnum.getErrorCode()); responseVo.setMessage...
public static boolean isPlayerOwner(net.minecraft.entity.player.EntityPlayer player, openmodularturrets.tileentity.turretbase.TurretBase base) { return (base.getOwner().equals(player.getUniqueID().toString())) || ((openmodularturrets.handler.ConfigHandler.offlineModeSupport) && (base.getOwnerName().equals(player.ge...
public static boolean isPlayerOwner(net.minecraft.entity.player.EntityPlayer player, openmodularturrets.tileentity.turretbase.TurretBase base) { return (base.getOwner().equals(player.getUniqueID().toString())) || ((openmodularturrets.handler.ConfigHandler.offlineModeSupport) && (base.getOwner().equals(player.getDis...
private void scan(java.util.Set<java.lang.Integer> blank, int[] beforeIndex, int[] afterIndex, boolean isPositive) { if (isPositive) { scan(lowerGhost, beforeIndex); scan(upperGhost, afterIndex); }else { scan(upperGhost, beforeIndex); scan(lowerGhost, afterIndex); } for (...
private void scan(int[] beforeIndex, int[] afterIndex, boolean isPositive) { if (isPositive) { scan(lowerGhost, beforeIndex); scan(upperGhost, afterIndex); }else { scan(upperGhost, beforeIndex); scan(lowerGhost, afterIndex); } }
public void initUserCache() { ro.fortech.model.User user = null; for (int i = 0; i < 10; i++) { user = new ro.fortech.model.User(); user.setCountry("Romania"); user.setId(1); user.setUsername(("user" + i)); user.setPassword(("pass" + i)); userCache.getUserCache()....
public void initUserCache() { ro.fortech.model.User user = null; for (int i = 0; i < 10; i++) { user = new ro.fortech.model.User(); user.setCountry("Romania"); user.setUsername(("user" + i)); user.setPassword(("pass" + i)); userCache.getUserCache().put(user.getUsername(),...
public java.lang.String getPosition(legends.model.HistoricalFigure hf) { legends.model.Entity e = legends.model.World.getEntity(entityId); legends.model.EntityPositionAssignment a = e.getAssignment(positionProfileId); legends.model.EntityPosition p = e.getPosition(a.getPositionId()); if (p == null) ...
public java.lang.String getPosition(legends.model.HistoricalFigure hf) { legends.model.Entity e = legends.model.World.getEntity(entityId); legends.model.EntityPositionAssignment a = e.getAssignment(positionProfileId); if (a == null) return "" + (positionProfileId); legends.model.EntityPosit...
public void saveToDisk(java.util.ArrayList<com.dalexiv.yandextest.musicbrowser.dataModel.Performer> listForSave) { try { java.io.BufferedOutputStream bos = new java.io.BufferedOutputStream(new java.io.FileOutputStream(file)); bos.write(com.dalexiv.yandextest.musicbrowser.net.DiskCache.gson.toJson(li...
public void saveToDisk(java.util.ArrayList<com.dalexiv.yandextest.musicbrowser.dataModel.Performer> listForSave) { try { java.io.BufferedOutputStream bos = new java.io.BufferedOutputStream(new java.io.FileOutputStream(file)); bos.write(com.dalexiv.yandextest.musicbrowser.net.DiskCache.gson.toJson(li...
public dnd.api.FightReport nextAttack() { double dealtDamage = dmgCalculator.calcDamage(currentAttacker.getExperience(), currentAttacker.getWeapon().getDamage()); boolean defenderDied = this.currentAttacker.takeHit(dealtDamage); dnd.api.FightReport fightReport = new dnd.core.FightReportImpl(this.currentAtta...
public dnd.api.FightReport nextAttack() { double dealtDamage = this.dmgCalculator.calcDamage(currentAttacker.getExperience(), currentAttacker.getWeapon().getDamage()); boolean defenderDied = this.currentAttacker.takeHit(dealtDamage); dnd.api.FightReport fightReport = new dnd.core.FightReportImpl(this.curren...
protected void onSaveInstanceState(android.os.Bundle outState) { super.onSaveInstanceState(outState); if (((mLastPath) == null) || (mLastPath.equals(""))) return ; org.brandroid.utils.Logger.LogDebug(("Saving instance last path = " + (mLastPath.getPath()))); outState.putString("last", mLast...
protected void onSaveInstanceState(android.os.Bundle outState) { if (((mLastPath) == null) || (mLastPath.equals(""))) return ; org.brandroid.utils.Logger.LogDebug(("Saving instance last path = " + (mLastPath.getPath()))); outState.putString("last", mLastPath.getPath()); super.onSaveInstance...
public void propertyChange(java.beans.PropertyChangeEvent evt) { final java.lang.String attrName = ((java.lang.String) (evt.getNewValue())); if ((attrName != null) && (!(attrName.trim().isEmpty()))) { ((org.cytoscape.tableimport.internal.ui.PreviewTablePanel.PreviewTableModel) (getPreviewTable().getMode...
public void propertyChange(java.beans.PropertyChangeEvent evt) { final java.lang.String attrName = ((java.lang.String) (evt.getNewValue())); if ((attrName != null) && (!(attrName.trim().isEmpty()))) { ((org.cytoscape.tableimport.internal.ui.PreviewTablePanel.PreviewTableModel) (getPreviewTable().getMode...
public static final boolean nextLineIsComment(java.io.BufferedReader reader) { boolean result = false; try { reader.mark(10000); java.lang.String nextline = reader.readLine(); result = daikon.FileIO.isComment(nextline); } catch (java.io.IOException e) { result = false; } ...
public static final boolean nextLineIsComment(java.io.BufferedReader reader) { boolean result = false; try { reader.mark(10000); java.lang.String nextline = reader.readLine(); result = daikon.FileIO.isComment(nextline); } catch (java.io.IOException e) { result = false; } ...
public boolean equals(java.lang.Object obj) { if ((this) == obj) return true; if (obj == null) return false; if ((getClass()) != (obj.getClass())) return false; com.potatoes.cultivation.logic.GameMap.MapCoordinates other = ((com.potatoes.cultivation.logic.GameMap.M...
public boolean equals(java.lang.Object obj) { if ((this) == obj) return true; if (obj == null) return false; if ((getClass()) != (obj.getClass())) return false; com.potatoes.cultivation.logic.GameMap.MapCoordinates other = ((com.potatoes.cultivation.logic.GameMap.M...
public void disconnect() { if (((execChannel) != null) && (execChannel.isConnected())) { execChannel.disconnect(); org.connid.bundles.unix.UnixConnection.LOG.info("Channel Exec is disconnected."); } if (((session) != null) && (session.isConnected())) { session.disconnect(); o...
public void disconnect() { if (((execChannel) != null) && (execChannel.isConnected())) { execChannel.disconnect(); org.connid.bundles.unix.UnixConnection.LOG.info("Channel Exec is disconnected."); } if (((session) != null) && (session.isConnected())) { session.disconnect(); o...
private void check(org.kframework.definition.Rule rule) { if (rule.att().contains("unblock")) return ; resetVars(); gatherVars(rule.body()); gatherVars(rule.requires()); gatherVars(rule.ensures()); check(rule.body()); check(rule.requires()); check(rule.ensures()); }
private void check(org.kframework.definition.Rule rule) { if (rule.att().contains("unblock")) return ; resetVars(); gatherVars(rule.body()); check(rule.body(), true); check(rule.requires(), false); check(rule.ensures(), false); }
private void packMetadata(org.gradle.caching.internal.tasks.origin.TaskOutputOriginWriter writeMetadata, org.apache.tools.tar.TarOutputStream outputStream) throws java.io.IOException { org.apache.tools.tar.TarEntry entry = new org.apache.tools.tar.TarEntry(org.gradle.caching.internal.tasks.TarTaskOutputPacker.METAD...
private void packMetadata(org.gradle.caching.internal.tasks.origin.TaskOutputOriginWriter writeMetadata, org.apache.tools.tar.TarOutputStream outputStream) throws java.io.IOException { org.apache.tools.tar.TarEntry entry = new org.apache.tools.tar.TarEntry(org.gradle.caching.internal.tasks.TarTaskOutputPacker.METAD...
public void onGameEvent(net.demilich.metastone.game.events.GameEvent event) { net.demilich.metastone.game.entities.Entity host = event.getGameContext().resolveSingleTarget(getHostReference()); if ((((expirationTrigger) != null) && (interestedIn(event.getEventType()))) && (expirationTrigger.fires(event, host))) ...
public void onGameEvent(net.demilich.metastone.game.events.GameEvent event) { net.demilich.metastone.game.entities.Entity host = event.getGameContext().resolveSingleTarget(getHostReference()); if ((((expirationTrigger) != null) && ((event.getEventType()) == (expirationTrigger.interestedIn()))) && (expirationTri...
public void onItemClick(android.widget.AdapterView<?> parent, android.view.View view, int position, long id) { android.content.Intent intent = new android.content.Intent(this.getApplicationContext(), com.ismth.activity.ArticleActivity.class); com.ismth.bean.TodayHotBean thb = ((com.ismth.bean.TodayHotBean) (par...
public void onItemClick(android.widget.AdapterView<?> parent, android.view.View view, int position, long id) { android.content.Intent intent = new android.content.Intent(getApplicationContext(), com.ismth.activity.ArticleActivity.class); com.ismth.bean.TodayHotBean thb = ((com.ismth.bean.TodayHotBean) (parent.g...
private void fillEmptyRows(int rowTo, int rowFrom) { for (; rowTo <= rowFrom; rowTo++) { for (int i = 0; i < (WIDTH); i++) { grid[i][rowTo] = false; } widthOfRows[rowTo] = 0; } }
private void fillEmptyRows(int rowTo, int rowFrom) { for (; rowTo < rowFrom; rowTo++) { for (int i = 0; i < (WIDTH); i++) { grid[i][rowTo] = false; } widthOfRows[rowTo] = 0; } }
public void endLoadingMore() { if ((loaderView) != null) { scrollTo(0, 0); android.view.View childView = contentView.getChildAt(1); contentView.scrollBy(0, ((childView.getHeight()) + (ITEM_DIVIDE_SIZE))); isLoadingMore = false; } }
public void endLoadingMore() { if ((loaderView) != null) { scrollTo(0, 0); android.view.View childView = contentView.getChildAt(1); contentView.scrollBy(0, (((childView.getHeight()) + (ITEM_DIVIDE_SIZE)) + 1)); isLoadingMore = false; } }
public io.grpc.internal.ServerImpl shutdownNow() { shutdown(); java.util.Collection<io.grpc.internal.ServerTransport> transportsCopy; io.grpc.Status nowStatus = Status.UNAVAILABLE.withDescription("Server shutdownNow invoked"); boolean savedServerShutdownCallbackInvoked; synchronized(lock) { ...
public io.grpc.internal.ServerImpl shutdownNow() { shutdown(); java.util.Collection<io.grpc.internal.ServerTransport> transportsCopy; io.grpc.Status nowStatus = Status.UNAVAILABLE.withDescription("Server shutdownNow invoked"); boolean savedServerShutdownCallbackInvoked; synchronized(lock) { ...
private void sendMessage() { java.lang.String msg = jTextFieldMessage.getText(); jTextFieldMessage.setText(""); java.util.List<java.lang.String> users = new java.util.ArrayList<>(); if (jToggleButtonSelectUsers.isSelected()) { users = jListUsers.getSelectedValuesList(); } con.sendMessage...
private void sendMessage() { java.lang.String text = jTextFieldMessage.getText(); java.lang.String msg = text.trim(); jTextFieldMessage.setText(""); java.util.List<java.lang.String> users = new java.util.ArrayList<>(); if (jToggleButtonSelectUsers.isSelected()) { users = jListUsers.getSelect...
protected void sendRequestIfNeeded(int downstreamIdx) { int size = bucketBuilder.size(downstreamIdx); if ((size >= (io.crate.Constants.PAGE_SIZE)) || ((remainingUpstreams.get()) <= 0)) { io.crate.executor.transport.distributed.DistributingDownstream.Downstream downstream = downstreams[downstreamIdx]; ...
private void sendRequestIfNeeded(int downstreamIdx) { int size = bucketBuilder.size(downstreamIdx); if ((size >= (io.crate.Constants.PAGE_SIZE)) || ((remainingUpstreams.get()) <= 0)) { io.crate.executor.transport.distributed.DistributingDownstream.Downstream downstream = downstreams[downstreamIdx]; ...
private void Message_EditorPaneKeyPressed(java.awt.event.KeyEvent evt) { if ((evt.getKeyCode()) == (java.awt.event.KeyEvent.VK_ENTER)) { evt.consume(); Message_EditorPane.setText(""); clientnet.Send("hi", chatRoomid); resetToggleButton(); } }
private void Message_EditorPaneKeyPressed(java.awt.event.KeyEvent evt) { if ((evt.getKeyCode()) == (java.awt.event.KeyEvent.VK_ENTER)) { evt.consume(); Message_EditorPane.setText(""); clientnet.Send(Message_EditorPane.getText(), chatRoomid); resetToggleButton(); } }
public void onScrolled(android.support.v7.widget.RecyclerView recyclerView, int dx, int dy) { if ((recyclerView.getScrollState()) == (android.support.v7.widget.RecyclerView.SCROLL_STATE_SETTLING)) { post(new java.lang.Runnable() { @java.lang.Override public void run() { ...
public void onScrolled(android.support.v7.widget.RecyclerView recyclerView, int dx, int dy) { post(new java.lang.Runnable() { @java.lang.Override public void run() { mCalendarAdapter.notifyDataSetChanged(); } }); if ((calendarListener) != null) { calendarListener....
public java.util.Map<java.lang.String, java.lang.Object> delete(@org.springframework.web.bind.annotation.RequestBody java.util.Map data) { try { productService.delete(data.get("data")); java.util.Map<java.lang.String, java.lang.Object> modelMap = new java.util.HashMap<>(); modelMap.put("succ...
public java.util.Map<java.lang.String, java.lang.Object> delete(@org.springframework.web.bind.annotation.RequestBody java.util.Map data) { try { productService.delete(data.get("data")); java.util.Map<java.lang.String, java.lang.Object> modelMap = new java.util.HashMap<>(1); modelMap.put("suc...
public void removeDocument() { java.lang.String documentName = "testdoc"; at.fhj.swd13.pse.db.entity.Document doc = at.fhj.swd13.pse.test.service.DocumentServiceIT.documentService.store(documentName, getClass().getResource("/testDocs/no_img.png").getFile()); at.fhj.swd13.pse.db.entity.Document doc2 = at.fhj...
public void removeDocument() { java.lang.String documentName = "testdoc"; at.fhj.swd13.pse.db.entity.Document doc = at.fhj.swd13.pse.test.service.DocumentServiceIT.documentService.store(documentName, getClass().getResource("/testDocs/no_img.png").getFile()); at.fhj.swd13.pse.db.entity.Document doc2 = at.fhj...
public void signalResponseAvailable(java.lang.String responseJSON) { this.queueResponseJSON.push(responseJSON); final android.webkit.WebView webView = ((android.webkit.WebView) (getView().findViewById(org.opendatakit.tables.R.id.webkit))); this.getActivity().runOnUiThread(new java.lang.Runnable() { ...
public void signalResponseAvailable(java.lang.String responseJSON) { this.queueResponseJSON.add(responseJSON); final android.webkit.WebView webView = ((android.webkit.WebView) (getView().findViewById(org.opendatakit.tables.R.id.webkit))); this.getActivity().runOnUiThread(new java.lang.Runnable() { @...
public void visitAssign(com.sun.tools.javac.tree.JCTree.JCAssign tree) { isLefts.add(isLeft); isLeft = true; tree.lhs = translate(tree.lhs); isLeft = isLefts.remove(((isLefts.size()) - 1)); tree.rhs = translate(tree.rhs); result = tree; }
public void visitAssign(com.sun.tools.javac.tree.JCTree.JCAssign tree) { isLefts.add(isLeft); isLeft = true; tree.lhs = translate(tree.lhs); isLeft = false; tree.rhs = translate(tree.rhs); isLeft = isLefts.remove(((isLefts.size()) - 1)); result = tree; }
private org.jgrapht.alg.Neighbors<V> getSuccessors(V v) { org.jgrapht.alg.Neighbors<V> neighbors = successorMap.get(v); if (neighbors == null) { neighbors = new org.jgrapht.alg.Neighbors(v, org.jgrapht.alg.Graphs.successorListOf(graph, v)); successorMap.put(v, neighbors); } return neighb...
private org.jgrapht.alg.Neighbors<V> getSuccessors(V v) { org.jgrapht.alg.Neighbors<V> neighbors = successorMap.get(v); if (neighbors == null) { neighbors = new org.jgrapht.alg.Neighbors(org.jgrapht.alg.Graphs.successorListOf(graph, v)); successorMap.put(v, neighbors); } return neighbors...
private void initializeData(long shoppingListId) { shoppingListDAO.open(); productDAO.open(); existingProductDAO.open(); products = productDAO.getAllFromCurrentShoppingList(shoppingListId); if ((products) == null) { products = new java.util.ArrayList<>(); } existingProducts = existin...
private void initializeData(long shoppingListId) { products = productDAO.getAllFromCurrentShoppingList(shoppingListId); if ((products) == null) { products = new java.util.ArrayList<>(); } existingProducts = existingProductDAO.getAllFromCurrentShoppingList(shoppingListId); if ((existingProduc...