buggy_function
stringlengths
1
391k
fixed_function
stringlengths
0
392k
private void loadPlugin(alien4cloud.plugin.Plugin plugin) throws alien4cloud.plugin.exception.PluginLoadingException { try { java.nio.file.Path pluginPath = getPluginPath(plugin.getPluginPathId()); java.nio.file.Path pluginUiPath = getPluginUiPath(plugin.getPluginPathId()); loadPlugin(plugin...
private void loadPlugin(alien4cloud.plugin.Plugin plugin) throws alien4cloud.plugin.exception.PluginLoadingException { try { java.nio.file.Path pluginPath = getPluginPath(plugin.getPluginPathId()); java.nio.file.Path pluginUiPath = getPluginUiPath(plugin.getPluginPathId()); loadPlugin(plugin...
public void startProcessorService() { com.njlabs.showjava.utils.Utils.killAllProcessorServices(this); android.content.Intent mServiceIntent = new android.content.Intent(getContext(), com.njlabs.showjava.processor.ProcessService.class); mServiceIntent.setAction(Constants.ACTION.START_PROCESS); mServiceIn...
private void startProcessorService() { com.njlabs.showjava.utils.Utils.killAllProcessorServices(this); android.content.Intent mServiceIntent = new android.content.Intent(getContext(), com.njlabs.showjava.processor.ProcessService.class); mServiceIntent.setAction(Constants.ACTION.START_PROCESS); mServiceI...
public java.lang.String[] getCode(java.util.UUID uuid) { java.sql.PreparedStatement state = db.prepareStatement(getCode); try { state.setString(1, uuid.toString()); java.sql.ResultSet set = state.executeQuery(); return set.next() ? new java.lang.String[]{ "" + (set.getInt("code")) , set....
public java.lang.String[] getCode(java.util.UUID uuid) { java.sql.PreparedStatement state = db.prepareStatement(getCode); try { state.setString(1, uuid.toString()); java.sql.ResultSet set = state.executeQuery(); return set.next() ? new java.lang.String[]{ "" + (set.getString("code")) , s...
public com.hp.application.automation.tools.sse.sdk.Response httpGet(java.lang.String url, java.lang.String queryString, java.util.Map<java.lang.String, java.lang.String> headers, com.hp.application.automation.tools.sse.sdk.ResourceAccessLevel resourceAccessLevel) { com.hp.application.automation.tools.sse.sdk.Respon...
public com.hp.application.automation.tools.sse.sdk.Response httpGet(java.lang.String url, java.lang.String queryString, java.util.Map<java.lang.String, java.lang.String> headers, com.hp.application.automation.tools.sse.sdk.ResourceAccessLevel resourceAccessLevel) { com.hp.application.automation.tools.sse.sdk.Respon...
public int getAnomalyValueCount() { org.bham.aucom.data.timeseries.TimeSeries<org.bham.aucom.data.Classification> list = getTimeSeries(); int numberFaults = 0; synchronized(list) { for (int i = 0; i < (list.size()); i++) { org.bham.aucom.data.Classification s = list.get(i); n...
public int getAnomalyValueCount() { org.bham.aucom.data.timeseries.TimeSeries<org.bham.aucom.data.Classification> list = getTimeSeries(); int numberFaults = 0; for (int i = 0; i < (list.size()); i++) { org.bham.aucom.data.Classification s = list.get(i); numberFaults += s.getStatusAsDouble();...
public boolean oneCanPlace(java.util.Set<java.util.UUID> players) { vg.civcraft.mc.citadel.reinforcement.PlayerReinforcement reinforcement = getReinforcement(); if (reinforcement == null) return true; for (java.util.UUID player : players) { if (player != null) if (reinforcem...
public boolean oneCanPlace(java.util.Set<java.util.UUID> players) { vg.civcraft.mc.citadel.reinforcement.PlayerReinforcement reinforcement = getReinforcement(); if (reinforcement == null) return true; for (java.util.UUID player : players) { if (player != null) if (reinforcem...
public org.jenkinsci.plugins.codedx.Action getProjectAction(org.jenkinsci.plugins.codedx.AbstractProject<?, ?> project) { org.jenkinsci.plugins.codedx.CodeDxClient client = new org.jenkinsci.plugins.codedx.CodeDxClient(url, key); java.lang.String latestUrl = null; if (((projectId.length()) != 0) && (!(proje...
public org.jenkinsci.plugins.codedx.Action getProjectAction(org.jenkinsci.plugins.codedx.AbstractProject<?, ?> project) { java.lang.String latestUrl = null; if (((projectId.length()) != 0) && (!(projectId.equals("-1")))) { latestUrl = client.buildLatestAnalysisRunUrl(java.lang.Integer.parseInt(projectId...
public org.eclipse.jface.resource.ImageDescriptor getImageDescriptor(mesfavoris.url.internal.Context context, mesfavoris.model.Bookmark bookmark) { java.lang.String iconAsBase64 = bookmark.getPropertyValue(mesfavoris.url.UrlBookmarkProperties.PROP_FAVICON); if (iconAsBase64 == null) { iconAsBase64 = boo...
public org.eclipse.jface.resource.ImageDescriptor getImageDescriptor(mesfavoris.url.internal.Context context, mesfavoris.model.Bookmark bookmark) { java.lang.String iconAsBase64 = bookmark.getPropertyValue(mesfavoris.url.UrlBookmarkProperties.PROP_ICON); if (iconAsBase64 == null) { iconAsBase64 = bookma...
public com.dianping.cat.message.Heartbeat newHeartbeat(java.lang.String type, java.lang.String name) { if (!(m_manager.hasContext())) { m_manager.setup(); } if (m_manager.isMessageEnabled()) { com.dianping.cat.message.internal.DefaultHeartbeat heartbeat = new com.dianping.cat.message.interna...
public com.dianping.cat.message.Heartbeat newHeartbeat(java.lang.String type, java.lang.String name) { if (!(m_manager.hasContext())) { m_manager.setup(); } if (m_manager.isMessageEnabled()) { com.dianping.cat.message.internal.DefaultHeartbeat heartbeat = new com.dianping.cat.message.interna...
public static java.lang.String askFor(java.lang.String prompt) { java.lang.String result = null; java.lang.System.out.print((prompt + ": ")); if ((java.lang.System.console()) == null) { new java.util.Scanner(java.lang.System.in).nextLine(); }else { result = java.lang.System.console().rea...
public static java.lang.String askFor(java.lang.String prompt) { java.lang.String result = null; java.lang.System.out.print((prompt + ": ")); if ((java.lang.System.console()) == null) { result = new java.util.Scanner(java.lang.System.in).nextLine(); }else { result = java.lang.System.cons...
public void loadFragment(android.app.Fragment fragment, int currentFragmentId, boolean addToBackStack) { this.currentFragmentId = currentFragmentId; android.os.Bundle args = new android.os.Bundle(); fragment.setArguments(args); android.app.FragmentManager fragmentManager = getFragmentManager(); andr...
public void loadFragment(android.app.Fragment fragment, int currentFragmentId, boolean addToBackStack) { this.currentFragmentId = currentFragmentId; android.app.FragmentManager fragmentManager = getFragmentManager(); android.app.FragmentTransaction fragmentTransaction = fragmentManager.beginTransaction().re...
public void run() { try { if (!(isPaused())) { player.play(); } if (player.isComplete()) { java.lang.System.out.println(("COMPLETE: " + (top.getSong(getUUID()).getPath()))); if ((top) != null) { top.notifyDone(uuid); }else { ...
public void run() { try { player.play(); if (player.isComplete()) { if ((top) != null) { top.notifyDone(uuid); } } } catch (java.lang.Exception e) { e.printStackTrace(); } }
public static double getBudget() { java.lang.String queryString = "SELECT budget FROM Budget"; android.database.Cursor cursor = andrewly.receiptme.model.dao.SQLDatabaseConnector.getInstance().getReadableDatabase().rawQuery(queryString, new java.lang.String[0]); while (cursor.moveToNext()) { double b...
public static double getBudget() { java.lang.String queryString = "SELECT budget FROM Budget"; double budget = 0; android.database.Cursor cursor = andrewly.receiptme.model.dao.SQLDatabaseConnector.getInstance().getReadableDatabase().rawQuery(queryString, new java.lang.String[0]); while (cursor.moveToNex...
public void removeName(java.lang.String name) { for (int i = 0; i < (content.size()); i++) { if (content.get(i).equals(name)) { content.remove(i); notifyDataSetChanged(); setNoContent(true); return ; } } }
public void removeName(java.lang.String name) { for (int i = 0; i < (content.size()); i++) { if (content.get(i).equals(name)) { content.remove(i); notifyDataSetChanged(); break; } } setNoContent(); }
private void updateVisibilityOfObject(java.lang.String objectType, int numberOfObject, boolean visible) { switch (objectType) { case "Text" : textHandler.setVisible(numberOfObject, visible); break; case "Image" : imageHandler.setVisible(numberOfObject, visible); ...
private void updateVisibilityOfObject(java.lang.String objectType, int numberOfObject, boolean visible) { switch (objectType) { case "Text" : textHandler.setVisible(numberOfObject, visible); break; case "Image" : imageHandler.setVisible(numberOfObject, visible); ...
public void onMapSharedElements(java.util.List<java.lang.String> names, java.util.Map<java.lang.String, android.view.View> sharedElements) { if (mIsReturning) { android.view.View v = mRecyclerView.findViewWithTag(names.get(0)); if (v != null) { sharedElements.clear(); sharedE...
public void onMapSharedElements(java.util.List<java.lang.String> names, java.util.Map<java.lang.String, android.view.View> sharedElements) { if ((mIsReturning) && ((names.size()) > 0)) { android.view.View v = mRecyclerView.findViewWithTag(names.get(0)); if (v != null) { sharedElements.cl...
public static void saveToBuilder(com.sitewhere.rest.model.device.event.DeviceCommandResponse event, org.influxdb.dto.Point.Builder builder) throws com.sitewhere.spi.SiteWhereException { builder.tag(com.sitewhere.influx.device.InfluxDbDeviceCommandResponse.RSP_ORIGINATING_EVENT_ID, event.getOriginatingEventId()); ...
public static void saveToBuilder(com.sitewhere.rest.model.device.event.DeviceCommandResponse event, org.influxdb.dto.Point.Builder builder) throws com.sitewhere.spi.SiteWhereException { builder.tag(com.sitewhere.influx.device.InfluxDbDeviceCommandResponse.RSP_ORIGINATING_EVENT_ID, event.getOriginatingEventId()); ...
public void shouldNotBeRecordingIfVideoDisabled() { org.testng.ITestResult result = prepareMock(testMethod); com.automation.remarks.testng.VideoListener listener = new com.automation.remarks.testng.VideoListener(); listener.onTestStart(result); listener.onTestSuccess(result); java.io.File file = com...
public void shouldNotBeRecordingIfVideoDisabled() { org.testng.ITestResult result = prepareMock(testMethod); com.automation.remarks.testng.VideoListener listener = new com.automation.remarks.testng.VideoListener(); listener.onTestStart(result); listener.onTestSuccess(result); java.io.File file = com...
public static org.jruby.runtime.builtin.IRubyObject open19(org.jruby.runtime.ThreadContext context, org.jruby.runtime.builtin.IRubyObject recv, org.jruby.runtime.builtin.IRubyObject[] args, org.jruby.runtime.Block block) { org.jruby.Ruby runtime = recv.getRuntime(); args[0] = org.jruby.runtime.Helpers.invoke(co...
public static org.jruby.runtime.builtin.IRubyObject open19(org.jruby.runtime.ThreadContext context, org.jruby.runtime.builtin.IRubyObject recv, org.jruby.runtime.builtin.IRubyObject[] args, org.jruby.runtime.Block block) { org.jruby.Ruby runtime = recv.getRuntime(); args[0] = org.jruby.runtime.Helpers.invoke(co...
private static java.util.Properties loadPropertiesFile(java.lang.String filename) { java.util.Properties properties = new java.util.Properties(); java.io.InputStream in; in = com.xdrop.passlock.PassLock.class.getClassLoader().getResourceAsStream(filename); try { properties.load(in); } catch ...
public static java.util.Properties loadPropertiesFile(java.lang.String filename) { java.util.Properties properties = new java.util.Properties(); java.io.InputStream in; in = com.xdrop.passlock.PassLock.class.getClassLoader().getResourceAsStream(filename); try { properties.load(in); } catch (...
public static java.lang.String formatStringToHtml(final io.toast.tk.dao.domain.impl.test.block.line.TestLine line) { if ((line.getTestResult()) != null) { java.lang.String message = line.getTestResult().getMessage(); message = (message != null) ? io.toast.tk.runtime.report.TemplateHelper.prettyXmlTe...
public static java.lang.String formatStringToHtml(final io.toast.tk.dao.domain.impl.test.block.line.TestLine line) { if ((line.getTestResult()) != null) { java.lang.String message = line.getTestResult().getMessage(); message = (message != null) ? io.toast.tk.runtime.report.TemplateHelper.returnResul...
public void registerKanttype(org.iish.hsn.invoer.service.akte.GeboorteAkteFlowState geboorteAkteFlow) { org.iish.hsn.invoer.service.akte.Gebknd gebknd = geboorteAkteFlow.getGebknd(); org.iish.hsn.invoer.service.akte.Gebkant gebkant = geboorteAkteFlow.getGebkant(); gebkant.setIdnr(gebknd.getIdnr()); if (...
public void registerKanttype(org.iish.hsn.invoer.service.akte.GeboorteAkteFlowState geboorteAkteFlow) { org.iish.hsn.invoer.service.akte.Gebkant gebkant = geboorteAkteFlow.getGebkant(); gebkant.setIdnr(geboorteAkteFlow.getGebknd().getIdnr()); inputMetadata.saveToEntity(gebkant); gebkant = gebkantReposit...
public void parse(List[] newList, java.io.File file) throws java.io.FileNotFoundException { java.lang.String line; int index; scan = new java.util.Scanner(file); scan.useDelimiter("[^\\p{Alpha}-|\']+"); while (scan.hasNext()) { line = scan.next(); addWord(newList, line); } s...
public void parse(List[] newList, java.io.File file) throws java.io.FileNotFoundException { java.lang.String line; scan = new java.util.Scanner(file); scan.useDelimiter("[^\\p{Alpha}-|\']+"); while (scan.hasNext()) { line = scan.next(); addWord(newList, line); } scan.close(); }
public static void main(java.lang.String[] args) throws java.lang.Exception { org.glassfish.tyrus.server.Server server = new org.glassfish.tyrus.server.Server("0.0.0.0", 80, "/", null, async.MyApplicationConfig.class); try { server.start(); java.io.BufferedReader reader = new java.io.BufferedRea...
public static void main(java.lang.String[] args) throws java.lang.Exception { org.glassfish.tyrus.server.Server server = new org.glassfish.tyrus.server.Server("0.0.0.0", 80, "/", null, async.MyApplicationConfig.class); try { server.start(); java.io.BufferedReader reader = new java.io.BufferedRea...
public int finduseridbydocid(int docid) { org.hibernate.Session session = sessionFactory.openSession().getSession(); session.beginTransaction(); org.hibernate.query.Query query = session.createSQLQuery("SELECT userid FROM documents WHERE docid =?"); query.setParameter(0, docid); int userid = ((int) ...
public int finduseridbydocid(int docid) { org.hibernate.Session session = sessionFactory.openSession(); session.beginTransaction(); org.hibernate.query.Query query = session.createSQLQuery("SELECT userid FROM documents WHERE docid =?"); query.setParameter(0, docid); int userid = ((int) (query.list()...
public void setStartTime(java.time.LocalTime newStartTime) throws taskie.exceptions.TaskDateInvalidException, taskie.exceptions.TaskDateNotSetException { if ((_startDate) == null) { throw new taskie.exceptions.TaskDateNotSetException("Start date not set"); } if (newStartTime == null) { _star...
public void setStartTime(java.time.LocalTime newStartTime) throws taskie.exceptions.TaskDateInvalidException, taskie.exceptions.TaskDateNotSetException { if ((_startDate) == null) { throw new taskie.exceptions.TaskDateNotSetException("Start date not set"); } if (newStartTime == null) { _star...
public static org.openqa.selenium.WebDriver getDriver() { org.openqa.selenium.WebDriver driver = ((net.thucydides.core.webdriver.ThucydidesWebDriverSupport.currentRequestedDriver.get()) != null) ? net.thucydides.core.webdriver.ThucydidesWebDriverSupport.getWebdriverManager().getWebdriver(net.thucydides.core.webdriv...
public static org.openqa.selenium.WebDriver getDriver() { if ((net.thucydides.core.webdriver.ThucydidesWebDriverSupport.currentRequestedDriver.get()) != null) { return net.thucydides.core.webdriver.ThucydidesWebDriverSupport.getWebdriverManager().getWebdriver(net.thucydides.core.webdriver.ThucydidesWebDrive...
public static void main(java.lang.String[] args) { java.lang.System.out.println("server main"); ncu.sw.gameServer.ServerGameController gameController = new ncu.sw.gameServer.ServerGameController(100, 20, 20); ncu.sw.gameServer.TCPMultiServer server = new ncu.sw.gameServer.TCPMultiServer(9000); new java....
public static void main(java.lang.String[] args) { java.lang.System.out.println("server main"); ncu.sw.gameServer.ServerGameController gameController = new ncu.sw.gameServer.ServerGameController(100, 20, 20); ncu.sw.gameServer.UDPBroadCastClient.getInstance().setCmd(gameController.getCmd()); ncu.sw.game...
public void manageDatabase() { while (true) { java.lang.System.out.println("Wybierz działanie:"); java.lang.System.out.println("[0] Wycofaj do głównego menu"); java.lang.System.out.println("[1] Dodaj konto ucznia"); java.lang.System.out.println("[2] Dodaj konto nauczyciela"); ...
public void manageDatabase() { while (true) { java.lang.System.out.println("Wybierz działanie:"); java.lang.System.out.println("[0] Wycofaj do głównego menu"); java.lang.System.out.println("[1] Dodaj konto ucznia"); java.lang.System.out.println("[2] Dodaj konto nauczyciela"); ...
public static void displayArray() { for (int x = 0; x < (DebugEleven4.boatArray.length); --x) javax.swing.JOptionPane.showMessageDialog(null, (("Boat #" + (x + 1)) + (DebugEleven4.boatArray[x].toString()))); }
public static void displayArray() { for (int x = 0; x < (DebugEleven4.boatArray.length); ++x) javax.swing.JOptionPane.showMessageDialog(null, (("Boat #" + (x + 1)) + (DebugEleven4.boatArray[x].toString()))); }
public java.math.BigDecimal calculateRight(java.math.BigDecimal n) { return calculateRight6(n).add(calculateRight5(n).add(calculateRight4(n).add(calculateRight3(n).add(calculateRight2(n).add(calculateRight1(n).add(calculateRight0(n))))))); }
private java.math.BigDecimal calculateRight(java.math.BigDecimal n) { return calculateRight6(n).add(calculateRight5(n).add(calculateRight4(n).add(calculateRight3(n).add(calculateRight2(n).add(calculateRight1(n).add(calculateRight0(n))))))); }
public android.view.View onCreateView(android.view.LayoutInflater inflater, android.view.ViewGroup container, android.os.Bundle savedInstanceState) { android.view.View v = inflater.inflate(R.layout.records_layout, container, false); imageView = ((android.widget.ImageView) (v.findViewById(R.id.league_records_log...
public android.view.View onCreateView(android.view.LayoutInflater inflater, android.view.ViewGroup container, android.os.Bundle savedInstanceState) { v = inflater.inflate(R.layout.records_layout, container, false); imageView = ((android.widget.ImageView) (v.findViewById(R.id.league_records_logo))); textView...
private static retrofit2.Retrofit getTokenAdapter() { okhttp3.logging.HttpLoggingInterceptor interceptor = new okhttp3.logging.HttpLoggingInterceptor(); interceptor.setLevel(HttpLoggingInterceptor.Level.BODY); okhttp3.OkHttpClient client = com.xsolla.android.sdk.api.XRestAdapter.getOkHttpBuilderWithTlsSuppo...
private static retrofit2.Retrofit getTokenAdapter() { okhttp3.OkHttpClient client = com.xsolla.android.sdk.api.XRestAdapter.getOkHttpBuilderWithTlsSupport().build(); return new retrofit2.Retrofit.Builder().baseUrl(com.xsolla.android.sdk.api.XRestAdapter.BASE_URL_TOKEN).client(client).addCallAdapterFactory(retro...
private synchronized void update(java.util.ArrayList<android.content.ContentProviderOperation> updateList) { if (!(updateList.isEmpty())) { try { getContentResolver().applyBatch(TvBrowserContentProvider.AUTHORITY, updateList); } catch (android.os.RemoteException e) { e.printS...
private synchronized void update(java.util.ArrayList<android.content.ContentProviderOperation> updateList) { if ((updateList != null) && (!(updateList.isEmpty()))) { try { getContentResolver().applyBatch(TvBrowserContentProvider.AUTHORITY, updateList); } catch (android.os.RemoteException...
public org.wisdom.template.thymeleaf.impl.ThymeLeafTemplateImplementation addTemplate(org.osgi.framework.Bundle bundle, java.net.URL templateURL) { org.wisdom.template.thymeleaf.impl.ThymeLeafTemplateImplementation template = getTemplateByURL(templateURL); if (template != null) { return template; } ...
public org.wisdom.template.thymeleaf.impl.ThymeLeafTemplateImplementation addTemplate(org.osgi.framework.Bundle bundle, java.net.URL templateURL) { org.wisdom.template.thymeleaf.impl.ThymeLeafTemplateImplementation template = getTemplateByURL(templateURL); if (template != null) { return template; } ...
public java.util.ArrayList<java.lang.String> getAvailableSkills() { availableSkills.clear(); java.util.ArrayList<model.project.Skill> skills = core.getSkills(); for (model.project.Skill skill : skills) { if (!(skillsInUse.contains(skill.getSkillName()))) availableSkills.add(skill.getSkil...
private java.util.ArrayList<java.lang.String> getAvailableSkills() { availableSkills.clear(); java.util.ArrayList<model.project.Skill> skills = core.getSkills(); for (model.project.Skill skill : skills) { if (!(skillsInUse.contains(skill.getSkillName()))) availableSkills.add(skill.getSki...
public static void playSound(net.minecraft.entity.player.EntityPlayer player, net.minecraft.util.math.BlockPos pos, net.minecraft.util.SoundEvent soundIn, net.minecraft.util.SoundCategory cat) { if (player == null) { ModCyclic.logger.warn("Null player object attempting to play sound [2]"); return ; ...
public static void playSound(net.minecraft.entity.player.EntityPlayer player, net.minecraft.util.math.BlockPos pos, net.minecraft.util.SoundEvent soundIn, net.minecraft.util.SoundCategory cat) { if (player == null) { return ; } net.minecraft.util.math.BlockPos here = (pos == null) ? player.getPositi...
public void resetToTop() { try { this.jbHeaderScroll.animateHeaderDown(); wvBrowser.setY(rlToolbarCont.getHeight()); } catch (java.lang.Exception ex) { android.util.Log.e(LOG_TAG, ("animateHeaderDown: " + (ex.toString()))); } }
public void resetToTop() { try { if ((this.jbHeaderScroll) != null) this.jbHeaderScroll.animateHeaderDown(); if ((wvBrowser) != null) wvBrowser.setY(rlToolbarCont.getHeight()); } catch (java.lang.Exception ex) { android.util.Log.e(LOG_TAG, ("anim...
private com.telan.werewolf.result.WeBaseResult<com.telan.werewolf.game.process.GameInfo> quitGameBeforeStart(com.telan.werewolf.game.process.GameInfo gameInfo, long playerId) { com.telan.werewolf.result.WeBaseResult<com.telan.werewolf.game.process.GameInfo> result = new com.telan.werewolf.result.WeBaseResult(); ...
private com.telan.werewolf.result.WeBaseResult<com.telan.werewolf.game.process.GameInfo> quitGameBeforeStart(com.telan.werewolf.game.process.GameInfo gameInfo, long playerId) { com.telan.werewolf.result.WeBaseResult<com.telan.werewolf.game.process.GameInfo> result = new com.telan.werewolf.result.WeBaseResult(); ...
public void onDialogPositiveClick(android.app.DialogFragment dialog, int id, java.lang.String spotName, float spotRating) { if (dialog instanceof de.admuc.gruppe12.workingtitle.CreateNewSpotDialog) { queuePOI(spotName, spotRating, tempMarker.getPosition()); }else if (dialog instanceof de.admuc.g...
public void onDialogPositiveClick(android.app.DialogFragment dialog, int id, java.lang.String spotName, float spotRating) { if (dialog instanceof de.admuc.gruppe12.workingtitle.CreateNewSpotDialog) { queuePOI(spotName, spotRating, tempMarker.getPosition()); if ((tempMarker) != null) { te...
public void checkBubbles() { java.util.Iterator<model.Bubble> i = bubbles.iterator(); while (i.hasNext()) { model.Bubble bubble = i.next(); if ((bubble.checkPop()) & (!(bubble.getIsPrisonBubble()))) { i.remove(); levelController.getScreenController().removeSprite(bubble);...
public void checkBubbles() { java.util.Iterator<model.Bubble> i = bubbles.iterator(); while (i.hasNext()) { model.Bubble bubble = i.next(); if ((bubble.checkPop()) && (!(bubble.getIsPrisonBubble()))) { i.remove(); levelController.getScreenController().removeSprite(bubble)...
byte[] hkdfExtract(byte[] inputKeyingMaterial, byte[] salt) { if (salt == null) { salt = new byte[macFactory.macHashLengthByte()]; } if ((inputKeyingMaterial == null) || ((inputKeyingMaterial.length) <= 0)) { throw new java.lang.IllegalArgumentException("provided inputKeyingMaterial must be ...
byte[] hkdfExtract(byte[] inputKeyingMaterial, byte[] salt) { if ((salt == null) || ((salt.length) == 0)) { salt = new byte[macFactory.macHashLengthByte()]; } if ((inputKeyingMaterial == null) || ((inputKeyingMaterial.length) <= 0)) { throw new java.lang.IllegalArgumentException("provided in...
public static void MarshallToJSON(java.io.PrintStream stream, generated.People people) throws java.io.IOException { com.fasterxml.jackson.databind.ObjectMapper mapper = new com.fasterxml.jackson.databind.ObjectMapper(); com.fasterxml.jackson.module.jaxb.JaxbAnnotationModule module = new com.fasterxml.jackson.mo...
public static void MarshallToJSON(java.io.PrintStream stream, generated.People people) throws java.io.IOException { com.fasterxml.jackson.databind.ObjectMapper mapper = new com.fasterxml.jackson.databind.ObjectMapper(); com.fasterxml.jackson.module.jaxb.JaxbAnnotationModule module = new com.fasterxml.jackson.mo...
public void playersDraw(se.academy.game.Player[] players) { for (int i = 0; i < ((players.length) - 1); i++) { for (int j = i + 1; j < (players.length); j++) { if (i != j) { playerDraw(players[i], players[j]); } } } }
public void playersDraw() { for (int i = 0; i < ((players.length) - 1); i++) { for (int j = i + 1; j < (players.length); j++) { if (i != j) { playerDraw(players[i], players[j]); } } } }
private boolean isSelectedRecursively(augsburg.se.alltagsguide.common.Page item, int mCurrentPageId) { augsburg.se.alltagsguide.common.Page curPage = item; while (curPage != null) { if (augsburg.se.alltagsguide.utilities.Objects.equals(curPage.getId(), mCurrentPageId)) { return true; ...
private boolean isSelectedRecursively(augsburg.se.alltagsguide.common.Page item, int mCurrentPageId) { augsburg.se.alltagsguide.common.Page curPage = item; while (curPage != null) { if (augsburg.se.alltagsguide.utilities.Objects.equals(curPage.getId(), mCurrentPageId)) { return true; ...
public void setIdAttributeValue(final T entity, final java.io.Serializable id) { org.springframework.util.Assert.notNull(entity); org.springframework.util.Assert.notNull(id); org.springframework.data.mapping.PersistentPropertyAccessor accessor = new org.springframework.data.mapping.model.ConvertingPropertyA...
public void setIdAttributeValue(final T entity, final java.io.Serializable id) { org.springframework.util.Assert.notNull(entity); org.springframework.data.mapping.PersistentPropertyAccessor accessor = new org.springframework.data.mapping.model.ConvertingPropertyAccessor(this.persistentEntity.getPropertyAccessor...
public boolean onOptionsItemSelected(android.view.MenuItem item) { switch (item.getItemId()) { case R.id.mniAnalytics : android.content.Intent intentAnalytics = new android.content.Intent(this, com.andrejjj.pocketsecretary.activities.Analytics.class); startActivity(intentAnalytics); ...
public boolean onOptionsItemSelected(android.view.MenuItem item) { switch (item.getItemId()) { case R.id.mniAnalytics : android.content.Intent intentAnalytics = new android.content.Intent(this, com.andrejjj.pocketsecretary.activities.Analytics.class); startActivity(intentAnalytics); ...
public void testValidatePool() throws javax.naming.ConfigurationException { java.util.Map<java.lang.String, java.lang.Object> par = new java.util.HashMap(com.cloud.hypervisor.ovm3.resources.helpers.Ovm3ConfigurationTest.params); par.put("cluster", "1"); par.put("ovm3vip", "this is not an IP!"); ovm3conf...
public void testValidatePool() throws javax.naming.ConfigurationException { java.util.HashMap<java.lang.String, java.lang.Object> par = new java.util.HashMap<java.lang.String, java.lang.Object>(com.cloud.hypervisor.ovm3.resources.helpers.Ovm3ConfigurationTest.params); par.put("cluster", "1"); par.put("ovm3v...
public void testInput() { mySolo.clickOnText("UserName"); mySolo.enterText(1, "meinname"); mySolo.enterText(0, "password"); mySolo.clickOnText("name"); mySolo.clickOnText("password"); mySolo.enterText(0, "123"); mySolo.clickOnButton("Sign in"); boolean actual = mySolo.searchText("meinnam...
public void testInput() { mySolo.enterText(1, "meinname"); mySolo.enterText(0, "password"); mySolo.enterText(0, "123"); mySolo.clickOnButton("Sign in"); boolean actual = mySolo.searchText("meinname"); assertEquals("Fail", true, actual); }
public void actionPerformed(java.awt.event.ActionEvent e) { java.lang.String s = getSelectedItem(false); if (s != null) { java.io.File prev = getPreviousFile(file_map.get(s).getName()); if (prev != null) new PrintPage("Report", file_map.get(s).getAbsolutePath(), prev.getAbsolutePath(...
public void actionPerformed(java.awt.event.ActionEvent e) { java.lang.String s = getSelectedItem(false); if (s != null) { java.io.File prev = getPreviousFile(file_map.get(s).getName()); if (prev != null) new PrintPage("Report", prev.getAbsolutePath(), file_map.get(s).getAbsolutePath(...
private static boolean hasMovedToTape() { boolean tapeness = false; org.usfirst.frc.team339.robot.Autonomous.MainState returnState = org.usfirst.frc.team339.robot.Autonomous.MainState.FORWARDS_UNTIL_TAPE; Hardware.transmission.controls(1.0, 1.0); if ((Hardware.leftIR.isOn()) || (Hardware.rightIR.isOn())...
private static boolean hasMovedToTape() { boolean tapeness = false; org.usfirst.frc.team339.robot.Autonomous.MainState returnState = org.usfirst.frc.team339.robot.Autonomous.MainState.FORWARDS_UNTIL_TAPE; Hardware.transmission.controls(1.0, 1.0); if ((Hardware.leftIR.isOn()) || (Hardware.rightIR.isOn())...
private void output(java.io.File intermediate) throws java.io.IOException { if ((fArguments.size()) >= 3) { java.io.File output = new java.io.File(fArguments.get(2)); intermediate.renameTo(output); } try (java.io.FileInputStream iStream = new java.io.FileInputStream(intermediate)) { ...
private void output(java.io.File intermediate) throws java.io.IOException { if ((fArguments.size()) >= 3) { java.io.File output = new java.io.File(fArguments.get(2)); intermediate.renameTo(output); }else { try (java.io.FileInputStream iStream = new java.io.FileInputStream(intermediate)) ...
public int getBestStore() { java.lang.String[] price = this.getPrice(); java.lang.String bestPrice = this.getBestPrice(); for (int index = 0; index < (price.length); index++) { if (price[index].equals(bestPrice)) { return index; } } return 0; }
public int getBestStore() { java.lang.String[] price = this.getPrice(); java.lang.String bestPrice = this.getBestPrice(); for (int index = 0; index < (price.length); index++) { if (price[index].equals(bestPrice)) { return index; } } return -1; }
private void eContainmentAdd(org.eclipse.emf.ecore.EObject eContainer, org.eclipse.emf.ecore.EReference eContainmentReference, org.eclipse.emf.ecore.EObject eObject) { java.lang.Object value = eContainer.eGet(eContainmentReference); if (value instanceof org.eclipse.emf.common.util.EList<?>) { org.eclips...
private void eContainmentAdd(org.eclipse.emf.ecore.EObject eContainer, org.eclipse.emf.ecore.EReference eContainmentReference, org.eclipse.emf.ecore.EObject eObject) { java.lang.Object value = eContainer.eGet(eContainmentReference); if (value instanceof org.eclipse.emf.common.util.EList<?>) { @java.lang...
public void addRules(java.io.File file) { try { java.io.BufferedReader br = new java.io.BufferedReader(new java.io.InputStreamReader(new java.io.FileInputStream(file))); java.lang.String string; while ((string = br.readLine()) == null) { addRule(string); } br.clo...
public void addRules(java.io.File file) { try { java.io.BufferedReader br = new java.io.BufferedReader(new java.io.InputStreamReader(new java.io.FileInputStream(file))); java.lang.String string = null; while ((string = br.readLine()) != null) { addRule(string); } ...
public void onClick(android.view.View v) { android.widget.EditText sessionIdText = ((android.widget.EditText) (findViewById(R.id.sessionId))); java.lang.String sessionId = sessionIdText.getText().toString(); if (!(sessionId.isEmpty())) { android.content.Intent intent = new android.content.Intent(get...
public void onClick(android.view.View v) { java.lang.String sessionId = sessionIdText.getText().toString(); if (!(sessionId.isEmpty())) { android.content.Intent intent = new android.content.Intent(getApplicationContext(), org.wso2.carbon.iot.android.sense.speech.detector.WordRecognitionActivity.class); ...
private int extractNodeIndex(java.lang.String line) throws java.lang.NumberFormatException { java.lang.String attributeName = "index="; java.lang.String restOfLine = line.substring(((line.indexOf(attributeName)) + (attributeName.length()))); int indexOfNextSpace = restOfLine.indexOf(" "); return java.la...
public int extractNodeIndex(java.lang.String line) throws java.lang.NumberFormatException { java.lang.String attributeName = "index="; java.lang.String restOfLine = line.substring(((line.indexOf(attributeName)) + (attributeName.length()))); int indexOfNextSpace = restOfLine.indexOf(" "); return java.lan...
public it.musichub.server.library.model.Song getSong(it.musichub.server.library.model.Song song) { if ((songs) != null) { for (it.musichub.server.library.model.Song s : songs) { try { if (java.nio.file.Files.isSameFile(s.getFile().toPath(), song.getFile().toPath())) ...
public it.musichub.server.library.model.Song getSong(it.musichub.server.library.model.Song song) { if ((songs) != null) { for (it.musichub.server.library.model.Song s : songs) { try { if (java.nio.file.Files.isSameFile(s.getFile().toPath(), song.getFile().toPath())) ...
public static java.lang.String toString(org.wordpress.android.fluxc.model.post.PostStatus status) { switch (status) { case PUBLISHED : return "publish"; case DRAFT : return "draft"; case PRIVATE : return "private"; case PENDING : return...
public java.lang.String toString() { switch (this) { case PUBLISHED : return "publish"; case DRAFT : return "draft"; case PRIVATE : return "private"; case PENDING : return "pending"; case TRASHED : return "trash"; ...
public void translate(float x, float y, float z) { float[] trans = new float[]{ 1 , 0 , 0 , x , 0 , 1 , 0 , y , 0 , 0 , 1 , z , 0 , 0 , 0 , 1 }; translateMatrix.setMatrix(trans); translateVector.setXYZ(x, y, z); }
public void translate(float x, float y, float z) { float[] trans = new float[]{ 1 , 0 , 0 , x , 0 , 1 , 0 , -y , 0 , 0 , 1 , z , 0 , 0 , 0 , 1 }; translateMatrix.setMatrix(trans); translateVector.setXYZ(x, (-y), z); }
private void init(android.content.Context context) { android.view.SurfaceHolder holder = getHolder(); holder.addCallback(this); thread = new org.urobot.controller.CamView.MultipartJpegViewThread(holder, context); setFocusable(true); overlayPaint = new android.graphics.Paint(); overlayPaint.setTe...
public void init(android.content.Context context) { android.view.SurfaceHolder holder = getHolder(); holder.addCallback(this); thread = new org.urobot.controller.CamView.MultipartJpegViewThread(holder, context); setFocusable(true); overlayPaint = new android.graphics.Paint(); overlayPaint.setTex...
public java.util.List<th.co.gosoft.go10.model.TopicModel> getHotTopicList() { java.lang.System.out.println(">>>>>>>>>>>>>>>>>>> getHotTopicList()"); java.util.List<th.co.gosoft.go10.model.TopicModel> topicModelList = th.co.gosoft.go10.rest.TopicService.db.findByIndex(getHotTopicListJsonString(), th.co.gosoft.go...
public java.util.List<th.co.gosoft.go10.model.TopicModel> getHotTopicList() { java.lang.System.out.println(">>>>>>>>>>>>>>>>>>> getHotTopicList()"); java.util.List<th.co.gosoft.go10.model.TopicModel> topicModelList = th.co.gosoft.go10.rest.TopicService.db.findByIndex(getHotTopicListJsonString(), th.co.gosoft.go...
public void run() { int index = anonscanlations.downloader.Downloader.getIndex(); try { anonscanlations.downloader.Downloader.execute(index, c, d); } catch (java.lang.Exception e) { anonscanlations.downloader.DownloaderUtils.error("Error while running chapter", e, true); anonscanlati...
public void run() { int index = anonscanlations.downloader.Downloader.getIndex(); try { anonscanlations.downloader.Downloader.execute(index, c, d); } catch (java.lang.Exception e) { anonscanlations.downloader.DownloaderUtils.error("Error while running chapter", e, false); anonscanlat...
private void validateSaveExit() { java.lang.String groupID = checkNonEmpty(R.id.txtGroupID, "Group ID"); java.lang.String groupPsswd = checkNonEmpty(R.id.txtGroupPsswd, "Password"); android.content.Intent intent = new android.content.Intent(getApplication().getBaseContext(), com.example.project.forrent.Main...
private void validateSaveExit() { java.lang.String groupID = checkNonEmpty(R.id.txtGroupID, "Group ID"); java.lang.String groupPsswd = checkNonEmpty(R.id.txtGroupPsswd, "Password"); if ((groupID != null) && (groupPsswd != null)) { android.content.Intent intent = new android.content.Intent(getApplica...
public void received(java.lang.String data, ch.heigvd.res.cesar.net.Channel channel) { int intKey = java.lang.Integer.parseInt(data); java.lang.System.out.printf("Received intKey: %x\n", intKey); sharedKey = ch.heigvd.res.cesar.net.DH.computeKey(intKey, privateKey, Parameters.P); java.lang.System.out.pr...
public void received(java.lang.String data, ch.heigvd.res.cesar.net.Channel channel) { int intKey = java.lang.Integer.parseInt(data); sharedKey = ch.heigvd.res.cesar.net.DH.computeKey(intKey, privateKey, Parameters.P); java.lang.System.out.printf("Established shared key: %x\n", sharedKey); hasKey = true...
protected android.location.Address doInBackground(java.lang.Double... args) { double latitude = args[0]; double longitude = args[1]; try { return org.wordpress.android.util.GeocoderUtils.getAddressFromCoords(getActivity(), latitude, longitude); } catch (java.lang.IllegalArgumentException iae) { ...
protected android.location.Address doInBackground(java.lang.Double... args) { if ((getActivity()) == null) { return null; } double latitude = args[0]; double longitude = args[1]; try { return org.wordpress.android.util.GeocoderUtils.getAddressFromCoords(getActivity(), latitude, longi...
protected org.gradle.internal.filewatch.FileWatcherFactory createFileWatcherFactory() { if (javaVersion.isJava7Compatible()) { java.lang.Class clazz; try { clazz = classLoader.loadClass("org.gradle.internal.filewatch.jdk7.Jdk7FileWatcherFactory"); return org.gradle.internal.C...
protected org.gradle.internal.filewatch.FileWatcherFactory createFileWatcherFactory() { if (javaVersion.isJava7Compatible()) { java.lang.Class clazz; try { clazz = classLoader.loadClass("org.gradle.internal.filewatch.jdk7.Jdk7FileWatcherFactory"); return org.gradle.internal.C...
private static com.google.api.services.storage.Storage getService() throws java.io.IOException, java.security.GeneralSecurityException { if (null == (com.ciandt.techgallery.persistence.dao.storage.StorageDAOImpl.storageService)) { com.google.api.client.googleapis.auth.oauth2.GoogleCredential credential = co...
private static com.google.api.services.storage.Storage getService() throws java.io.IOException, java.security.GeneralSecurityException { if (null == (com.ciandt.techgallery.persistence.dao.storage.StorageDAOImpl.storageService)) { com.google.api.client.http.HttpTransport httpTransport = com.google.api.clien...
public java.lang.Double getLongitude(java.lang.String fieldname) { java.lang.String[] parts = getSpaceDelimitedFieldParts(fieldname); if (parts == null) return null; if ((parts.length) > 1) { try { return java.lang.Double.parseDouble(parts[0]); } catch (java.lang.Num...
public java.lang.Double getLongitude(java.lang.String fieldname) { java.lang.String[] parts = getSpaceDelimitedFieldParts(fieldname); if (parts == null) return null; if ((parts.length) > 1) { try { return java.lang.Double.parseDouble(parts[1]); } catch (java.lang.Num...
public void compareLevelSix() { java.lang.String tear = "Tear"; java.lang.String sheen = "Sheen"; java.lang.String hammer = "Caulfield's Warhammer"; java.lang.String dirk = "Serrated Dirk"; java.lang.String phage = "Phage"; addScenarioLevel(tear, 6); addScenarioLevel(sheen, 6); addScenar...
public void compareLevelSix() { java.lang.String tear = "Tear"; java.lang.String sheen = "Sheen"; java.lang.String hammer = "Caulfield's Warhammer"; java.lang.String dirk = "Serrated Dirk"; java.lang.String phage = "Phage"; addScenarioLevel(tear, 6, "Tear"); addScenarioLevel(sheen, 6, "Sheen...
protected java.lang.String doInBackground(java.lang.Void... params) { java.lang.String itemName = null; try { com.example.benjamin.tingle2.networking.OutpanFetcher of = new com.example.benjamin.tingle2.networking.OutpanFetcher(mContext); java.lang.String jsonstring = of.getUrlString(mCode); ...
protected java.lang.String doInBackground(java.lang.Void... params) { java.lang.String itemName = null; try { com.example.benjamin.tingle2.networking.OutpanFetcher of = new com.example.benjamin.tingle2.networking.OutpanFetcher(mContext); java.lang.String jsonstring = of.getUrlString(mCode); ...
protected void shoot() { if (!(isDestroyed())) { ru.makproductions.geekbrains.gameproject.common.Bullet bullet = bulletPool.obtain(); bulletPosition.x = position.x; bulletPosition.y = (position.y) + (bullet_margin); bullet.setBullet(this, bulletTexture, bulletPosition, bulletSpeed, b...
protected void shoot() { if (!(isDestroyed())) { ru.makproductions.geekbrains.gameproject.common.Bullet bullet = bulletPool.obtain(); bulletPosition.x = position.x; bulletPosition.y = (position.y) + (bullet_margin); bullet.setBullet(this, bulletTexture, bulletPosition, bulletSpeed, b...
public void callBeforeApplicationCreateBootstraps() { if ((!(args.isLoadExtensions())) || ((args.getBootstrapClassNames()) != null)) { return ; } extensionLoader.runBeforeApplicationCreateBootstrap(instrumentation, args.getBootstrapClassNames().split(",")); }
public void callBeforeApplicationCreateBootstraps() { if ((!(args.isLoadExtensions())) || ((args.getBootstrapClassNames()) == null)) { return ; } extensionLoader.runBeforeApplicationCreateBootstrap(instrumentation, args.getBootstrapClassNames().split(",")); }
public void canDeactivateForAdmin() throws java.lang.Exception { org.mockito.Mockito.doReturn(mockSession).when(controller).getAuthenticatedSession(org.sagebionetworks.bridge.Roles.ADMIN); controller.deleteStudy(study.getIdentifier(), "false"); org.mockito.Mockito.verify(mockStudyService).deactivateStudy(st...
public void canDeactivateForAdmin() throws java.lang.Exception { org.mockito.Mockito.doReturn(mockSession).when(controller).getAuthenticatedSession(org.sagebionetworks.bridge.Roles.ADMIN); controller.deleteStudy(study.getIdentifier(), "false"); org.mockito.Mockito.verify(mockStudyService).deactivateStudy(st...
public void onDateSet(android.widget.DatePicker view, int year, int month, int dayOfMonth) { this.year = year; this.month = month; this.day = dayOfMonth; int displayMonth = (this.month) + 1; editTextDate.setText(((((displayMonth + "/") + (this.day)) + "/") + (this.year))); }
public void onDateSet(android.widget.DatePicker view, int year, int month, int dayOfMonth) { this.year = year; this.month = month; this.day = dayOfMonth; displayMonth = (this.month) + 1; editTextDate.setText((((((displayMonth) + "/") + (this.day)) + "/") + (this.year))); }
public void updateVScrollBar() { double scale = this.controller.getZoomScalingFactor(); double size = ModelWrapper.VIEW_HEIGHT; cs355.GUIFunctions.setVScrollBarPosit(((int) (this.controller.getViewTopLeftCorner().y))); cs355.GUIFunctions.setVScrollBarKnob(((int) (size / scale))); }
public void updateVScrollBar() { double scale = this.controller.getZoomScalingFactor(); double size = ModelWrapper.VIEW_HEIGHT; cs355.GUIFunctions.setVScrollBarKnob(((int) (size / scale))); cs355.GUIFunctions.setVScrollBarPosit(((int) (this.controller.getViewTopLeftCorner().y))); cs355.GUIFunctions....
public void continueForm(android.view.View v) { PTakenActivity.photoData = dataToPass; PTakenActivity.thePic = bitmap; PTakenActivity.timetaken = theTime; PTakenActivity.filename = filename; releaseCamera(); android.content.Intent i = new android.content.Intent(this, com.example.mmalo.prototype2...
public void continueForm(android.view.View v) { PTakenActivity.photoData = dataToPass; PTakenActivity.thePic = bitmap; PTakenActivity.timetaken = theTime; PTakenActivity.filename = theTime.toString(); releaseCamera(); android.content.Intent i = new android.content.Intent(this, com.example.mmalo....
public org.avidj.zuul.core.LockTreeNode visit(org.avidj.zuul.core.LockTreeNode node) { synchronized(node.mutex) { (node.writes)--; if ((node.subtreeEmpty()) && ((node.parent) != null)) { node.parent.children.remove(node.key); return null; } return node; } ...
public org.avidj.zuul.core.LockTreeNode visit(org.avidj.zuul.core.LockTreeNode node) { synchronized(node) { (node.writes)--; if ((node.subtreeEmpty()) && ((node.parent) != null)) { node.parent.children.remove(node.key); return null; } return node; } }
public static void appendLog(float log) { if (ui.GlanetRunner.args[CommandLineArguments.DebugMode.value()].equalsIgnoreCase(Commons.ARG_DEBUG_MODE)) { if ((ui.GlanetRunner.getMainView()) == null) java.lang.System.out.println(log); else ui.GlanetRunner.getMainView().appendNewT...
public static void appendLog(float log) { if (((ui.GlanetRunner.getMainView()) == null) && (ui.GlanetRunner.args[CommandLineArguments.DebugMode.value()].equalsIgnoreCase(Commons.ARG_DEBUG_MODE))) java.lang.System.out.println(log); else ui.GlanetRunner.getMainView().appendNewTextToLogArea(log); ...
public void run() { mViewImpl.closeHandlingDialog(); com.hyphenate.chat.EMMessage emMessage = com.lwk.familycontact.im.helper.HxChatHelper.getInstance().createVideoMessage(getChatTypeFromConType(conType), conId, filePath, thumbPath, ((int) (duration / 1000))); emMessage.setMessageStatusCallback(new com.lwk....
public void run() { mViewImpl.closeHandlingDialog(); com.hyphenate.chat.EMMessage emMessage = com.lwk.familycontact.im.helper.HxChatHelper.getInstance().createVideoMessage(getChatTypeFromConType(conType), conId, filePath, thumbPath, ((int) (duration / 1000))); emMessage.setMessageStatusCallback(new com.lwk....
public void onSwipeSingle(int position, int direction) { com.elzup.pictter.pictter.PictureStatus status = pictureStatusAdapter.getItem(position); pictureStatusAdapter.remove(status); switch (direction) { case com.wdullaer.swipeactionadapter.SwipeDirections.DIRECTION_NORMAL_LEFT : case com.wd...
public void onSwipeSingle(int position, int direction) { com.elzup.pictter.pictter.PictureStatus status = pictureStatusAdapter.getItem((position - 1)); pictureStatusAdapter.remove(status); switch (direction) { case com.wdullaer.swipeactionadapter.SwipeDirections.DIRECTION_NORMAL_LEFT : case ...
public void defaultList(java.lang.String path, java.util.List<?> type) { if (!(getConfig().contains(path))) { getConfig().addDefault(path, type); getConfig().options().copyDefaults(true); } saveConfig(); }
public void defaultList(java.lang.String path, java.util.List<?> type) { if (!(p.getConfig().contains(path))) { p.getConfig().addDefault(path, type); p.getConfig().options().copyDefaults(true); } p.saveConfig(); }
public void showWarningBar(java.lang.String warning) { if ((warningBar_) == null) { warningBar_ = new org.rstudio.studio.client.workbench.views.source.editors.text.InfoBar(InfoBar.WARNING, new com.google.gwt.event.dom.client.ClickHandler() { @java.lang.Override public void onClick(co...
public void showWarningBar(java.lang.String warning) { if ((warningBar_) == null) { warningBar_ = new org.rstudio.studio.client.workbench.views.source.editors.text.InfoBar(InfoBar.WARNING, new com.google.gwt.event.dom.client.ClickHandler() { @java.lang.Override public void onClick(co...
public void paintComponent(java.awt.Graphics2D g) { int count = 0; for (int i = 0; i < (maxY); i++) { for (int j = 0; j < (maxX); j++) { tiles[j][i].paintComponent(g); } } }
public void paintComponent(java.awt.Graphics2D g) { for (int i = 0; i < (maxY); i++) { for (int j = 0; j < (maxX); j++) { tiles[j][i].paintComponent(g); } } }
public List<java.lang.String[]> solveNQueens(int n) { List<java.lang.String[]> solutions = new ArrayList<java.lang.String[]>(); char[][] board = new char[n][n]; for (int row = 0; row < n; row++) { for (int col = 0; col < n; col++) board[row][col] = '.'; } solveNQueens(so...
public List<java.lang.String[]> solveNQueens(int n) { ArrayList<java.lang.String[]> solutions = new ArrayList<java.lang.String[]>(); int[] rows = new int[n]; solveNQueens(solutions, rows, 0); return solutions; }
public void setConfiguration(long flags, net.minecraft.entity.player.EntityPlayerMP changer) { unregisterLabel(); super.setConfiguration(flags, changer); flags = flags >> 3; Label = ((int) (flags & 65535L)); if ((flags & (1 << ((Buttons.PRIVATE.ordinal()) + 3))) != 0) { Player = changer.getD...
public void setConfiguration(long flags, net.minecraft.entity.player.EntityPlayerMP changer) { unregisterLabel(); super.setConfiguration(flags, changer); flags = flags >> 3; Label = ((int) (flags & 65535L)); if ((flags & (1 << (Buttons.PRIVATE.ordinal()))) != 0) { Player = changer.getDisplay...
public java.lang.String substringData(final int offset, final int count) throws org.w3c.dom.DOMException { if (offset < 0) { throw new org.w3c.dom.DOMException(org.w3c.dom.DOMException.INDEX_SIZE_ERR, "offset is out of bounds"); } if ((cdata) == null) { throw new org.w3c.dom.DOMException(org...
public java.lang.String substringData(final int offset, final int count) throws org.w3c.dom.DOMException { if ((offset < 0) || (count < 0)) { throw new org.w3c.dom.DOMException(org.w3c.dom.DOMException.INDEX_SIZE_ERR, "offset is out of bounds"); } if ((cdata) == null) { throw new org.w3c.dom...
public void start() { for (int i = 0; i < (minWorkerCount); i++) { workers.add(new ru.sbt.hometask13.threadpool.ScalableThreadPool.Worker()); workers.get(i).start(); } synchronized(lock) { isStarted = true; } }
public void start() { synchronized(lock) { if (!(isStarted)) { for (int i = 0; i < (minWorkerCount); i++) { workers.add(new ru.sbt.hometask13.threadpool.ScalableThreadPool.Worker()); workers.get(i).start(); } isStarted = true; } ...
public void printCSV(java.lang.String doc) { java.util.Map<pl.edu.icm.cermine.evaluation.tools.EvalInformationType, pl.edu.icm.cermine.evaluation.tools.SingleInformationDocResult> docResults = results.get(doc); java.lang.System.out.print(doc); for (pl.edu.icm.cermine.evaluation.tools.EvalInformationType typ...
public void printCSV(java.lang.String doc) { java.util.Map<pl.edu.icm.cermine.evaluation.tools.EvalInformationType, pl.edu.icm.cermine.evaluation.tools.SingleInformationDocResult> docResults = results.get(doc); java.lang.System.out.print(doc); for (pl.edu.icm.cermine.evaluation.tools.EvalInformationType typ...
public java.lang.String dayNames(int x) { int y = x + (counter); java.lang.String ret = ""; switch (y % 7) { case 1 : ret = "Tuesday: "; break; case 2 : ret = "Wednesday: "; break; case 3 : ret = "Thursday: "; br...
public java.lang.String dayNames(int x) { int y = x + (counter); java.lang.String ret = ""; switch (y % 7) { case 1 : ret = "Tuesday: "; break; case 2 : ret = "Wednesday: "; break; case 3 : ret = "Thursday: "; br...
public java.lang.Double rateMatch(iad.Neuron n) { java.lang.Double dist = 0.0; for (int i = 0; (i < (this.val.size())) && (1 < (n.weight.length)); i++) { final java.lang.Double d = (n.weight[i]) - (this.val.get(i)); dist += d * d; } return java.lang.Math.sqrt(dist); }
public java.lang.Double rateMatch(iad.Neuron n) { java.lang.Double dist = 0.0; for (int i = 0; (i < (this.val.size())) && (i < (n.weight.length)); i++) { final java.lang.Double d = (n.weight[i]) - (this.val.get(i)); dist += d * d; } return java.lang.Math.sqrt(dist); }
public void read() throws java.io.FileNotFoundException, java.io.IOException { java.io.File file = new java.io.File(this.fileName); int fileSize = ((int) (file.length())); char[] s = new char[fileSize]; java.io.FileReader fr = new java.io.FileReader(file); fr.read(s); java.lang.String data = new...
private void read() throws java.io.FileNotFoundException, java.io.IOException { java.io.File file = new java.io.File(this.fileName); int fileSize = ((int) (file.length())); char[] s = new char[fileSize]; java.io.FileReader fr = new java.io.FileReader(file); fr.read(s); java.lang.String data = ne...
private soot.toolkits.exceptions.ThrowableSet registerSetIfNew(java.util.Set<soot.RefLikeType> include, java.util.Set<soot.AnySubType> exclude) { if (soot.toolkits.exceptions.ThrowableSet.INSTRUMENTING) { (registrationCalls)++; } soot.toolkits.exceptions.ThrowableSet result = new soot.toolkits.excep...
private soot.toolkits.exceptions.ThrowableSet registerSetIfNew(java.util.Set<soot.RefLikeType> include, java.util.Set<soot.AnySubType> exclude) { if (soot.toolkits.exceptions.ThrowableSet.INSTRUMENTING) { (registrationCalls)++; } soot.toolkits.exceptions.ThrowableSet result = new soot.toolkits.excep...
public static void visibleViews(android.view.View... views) { for (android.view.View view : views) { view.setVisibility(View.VISIBLE); view.animate().alpha(1).setDuration(200).setInterpolator(new android.view.animation.AccelerateDecelerateInterpolator()); } }
public static void visibleViews(android.view.View... views) { for (android.view.View view : views) { if (view == null) continue; view.setVisibility(View.VISIBLE); view.animate().alpha(1).setDuration(200).setInterpolator(new android.view.animation.AccelerateDecelerateInte...
public void set(java.lang.String key, java.lang.String value) throws java.lang.Exception { redis.clients.jedis.Jedis jedis = null; java.lang.String subUserHashKey = ((localConstant.getProjectName()) + ":") + key; try { jedis = jedisPool.getResource(); jedis.set(subUserHashKey, value); } ...
public void set(java.lang.String key, java.lang.String value) throws java.lang.Exception { redis.clients.jedis.Jedis jedis = null; java.lang.String subUserHashKey = ((localConstant.getProjectName()) + ":") + key; try { jedis = jedisPool.getResource(); jedis.set(subUserHashKey, value); } ...
public boolean execute() { _ble.relayOff(_address, new nl.dobots.bluenet.ble.base.callbacks.IStatusCallback() { @java.lang.Override public void onSuccess() { android.util.Log.i(nl.dobots.crownstone.gui.control.ControlMainFragment.TAG, "relay off success"); updateLightBulb(fal...
public boolean execute() { _ble.relayOff(_address, new nl.dobots.bluenet.ble.base.callbacks.IStatusCallback() { @java.lang.Override public void onSuccess() { android.util.Log.i(nl.dobots.crownstone.gui.control.ControlMainFragment.TAG, "relay off success"); done(); } ...
this.creationTime = java.lang.System.currentTimeMillis(); this.sessionPointer = pointer; this.sessionId = sessionId; initPeerCertChain(ssl); initx509PeerCertChain(ssl); initCipherSuite(ssl); initProtcol(ssl); }
this.creationTime = java.lang.System.currentTimeMillis(); this.sessionPointer = pointer; this.sessionId = sessionId; initPeerCertChain(ssl); initCipherSuite(ssl); initProtcol(ssl); }
public static void main(java.lang.String[] args) { java.lang.System.out.println("*****"); interpreter.SeqStmt stmt = parser.Sandbox.grammar.parse("print foo; foo = 3; print foo; foo = 0; if foo then (print 2; print 3) else (print 4; print 5)"); stmt.eval(); java.lang.System.out.println("*****"); int...
public static void main(java.lang.String[] args) { java.lang.System.out.println("*****"); interpreter.SeqStmt stmt = parser.Sandbox.grammar.parse("print foo; foo = 3; print foo; foo = 0; if foo then (print 2; print 3) else (print 4; print 5)"); java.lang.System.out.println("*****"); interpreter.SeqStmt ...
protected void updateHandleVisibility(boolean toVisible) { if (((requestedHandleVisibility) != null) && ((requestedHandleVisibility) == toVisible)) { return ; } requestedHandleVisibility = toVisible; handle.clearAnimation(); android.util.Log.d(com.devbrackets.android.recyclerext.widget.FastS...
protected void updateHandleVisibility(boolean toVisible) { if ((requestedHandleVisibility) == toVisible) { return ; } requestedHandleVisibility = toVisible; handle.clearAnimation(); android.util.Log.d(com.devbrackets.android.recyclerext.widget.FastScroll.TAG, ("updating handle visibility " +...
private static boolean isHeaderLine(int lineIndex, java.util.List<org.talend.dataprep.api.dataset.ColumnMetadata> columns) { boolean headerLine = false; for (org.talend.dataprep.api.dataset.ColumnMetadata columnMetadata : columns) { if (lineIndex < (columnMetadata.getHeaderSize())) { headerL...
public static boolean isHeaderLine(int lineIndex, java.util.List<org.talend.dataprep.api.dataset.ColumnMetadata> columns) { boolean headerLine = false; for (org.talend.dataprep.api.dataset.ColumnMetadata columnMetadata : columns) { if (lineIndex < (columnMetadata.getHeaderSize())) { headerLi...