Datasets:

diff
stringlengths
262
553k
is_single_chunk
bool
2 classes
is_single_function
bool
1 class
buggy_function
stringlengths
20
391k
fixed_function
stringlengths
0
392k
diff --git a/src/edu/jas/arith/ModLong.java b/src/edu/jas/arith/ModLong.java index 98bfcf8f..d4b785ea 100644 --- a/src/edu/jas/arith/ModLong.java +++ b/src/edu/jas/arith/ModLong.java @@ -1,578 +1,578 @@ /* * $Id$ */ package edu.jas.arith; import edu.jas.structure.GcdRingElem; import edu.jas.structure.NotI...
true
true
public ModLong[] egcd(ModLong S) { ModLong[] ret = new ModLong[3]; ret[0] = null; ret[1] = null; ret[2] = null; if (S == null || S.isZERO()) { ret[0] = this; return ret; } if (isZERO()) { ret[0] = S; return ret; ...
public ModLong[] egcd(ModLong S) { ModLong[] ret = new ModLong[3]; ret[0] = null; ret[1] = null; ret[2] = null; if (S == null || S.isZERO()) { ret[0] = this; return ret; } if (isZERO()) { ret[0] = S; return ret; ...
diff --git a/sip-servlets-impl/src/main/java/org/mobicents/servlet/sip/message/SipServletRequestImpl.java b/sip-servlets-impl/src/main/java/org/mobicents/servlet/sip/message/SipServletRequestImpl.java index 7074ba890..aee267780 100644 --- a/sip-servlets-impl/src/main/java/org/mobicents/servlet/sip/message/SipServletReq...
true
true
public void send() { checkReadOnly(); final Request request = (Request) super.message; final MobicentsSipSession session = getSipSession(); try { ProxyImpl proxy = null; if(session != null) { proxy = session.getProxy(); } final SipNetworkInterfaceManager sipNetworkInterfaceManager = sipFa...
public void send() { checkReadOnly(); final Request request = (Request) super.message; final MobicentsSipSession session = getSipSession(); try { ProxyImpl proxy = null; if(session != null) { proxy = session.getProxy(); } final SipNetworkInterfaceManager sipNetworkInterfaceManager = sipFa...
diff --git a/src/main/java/org/richfaces/demo/components/sh/SyntaxHighlighter.java b/src/main/java/org/richfaces/demo/components/sh/SyntaxHighlighter.java index 8fc46fdbf..2cdf84f9a 100644 --- a/src/main/java/org/richfaces/demo/components/sh/SyntaxHighlighter.java +++ b/src/main/java/org/richfaces/demo/components/sh/Sy...
true
true
public void encodeEnd(FacesContext context) throws IOException { ResponseWriter writer = context.getResponseWriter(); writer.startElement("div", null); writer.writeAttribute("id", this.getClientId(), null); writer.writeAttribute("class", this.getStyleClass(), null); writer.wr...
public void encodeEnd(FacesContext context) throws IOException { ResponseWriter writer = context.getResponseWriter(); writer.startElement("div", null); writer.writeAttribute("id", this.getClientId(context), null); writer.writeAttribute("class", this.getStyleClass(), null); wr...
diff --git a/jetty-deploy/src/test/java/org/eclipse/jetty/deploy/test/XmlConfiguredJetty.java b/jetty-deploy/src/test/java/org/eclipse/jetty/deploy/test/XmlConfiguredJetty.java index 6ff072728..89e03dd26 100644 --- a/jetty-deploy/src/test/java/org/eclipse/jetty/deploy/test/XmlConfiguredJetty.java +++ b/jetty-deploy/src...
true
true
public XmlConfiguredJetty(String testname) throws IOException { xmlConfigurations = new ArrayList<URL>(); properties = new Properties(); String jettyHomeBase = MavenTestingUtils.getTargetTestingDir(testname).getAbsolutePath(); // Ensure we have a new (pristene) directory to work...
public XmlConfiguredJetty(String testname) throws IOException { xmlConfigurations = new ArrayList<URL>(); properties = new Properties(); String jettyHomeBase = MavenTestingUtils.getTargetTestingDir(testname).getAbsolutePath(); // Ensure we have a new (pristene) directory to work...
diff --git a/src/run/KahluaCommandLineState.java b/src/run/KahluaCommandLineState.java index da766bf2..90ea8853 100644 --- a/src/run/KahluaCommandLineState.java +++ b/src/run/KahluaCommandLineState.java @@ -1,183 +1,184 @@ /* * Copyright 2010 Jon S Akhtar (Sylvanaar) * * Licensed under the Apache License, Version...
true
true
public ExecutionResult execute(@NotNull final Executor executor, @NotNull ProgramRunner runner) throws ExecutionException { log.info("execute " + executor.getActionName()); final ProcessHandler processHandler = startProcess(); final TextConsoleBuilder builder = getConsoleBuilder(); ...
public ExecutionResult execute(@NotNull final Executor executor, @NotNull ProgramRunner runner) throws ExecutionException { log.info("execute " + executor.getActionName()); final ProcessHandler processHandler = startProcess(); final TextConsoleBuilder builder = getConsoleBuilder(); ...
diff --git a/AE-go_GameServer/src/com/aionemu/gameserver/network/aion/clientpackets/CM_ATTACK.java b/AE-go_GameServer/src/com/aionemu/gameserver/network/aion/clientpackets/CM_ATTACK.java index 4832bc33..c6a65e3a 100644 --- a/AE-go_GameServer/src/com/aionemu/gameserver/network/aion/clientpackets/CM_ATTACK.java +++ b/AE-...
true
true
protected void runImpl() { //Player player = getConnection().getActivePlayer(); //if(player == null) // return; Player player = getConnection().getActivePlayer(); int playerobjid = player.getObjectId(); sendPacket(new SM_ATTACK(playerobjid,targetObjectId,attackno,time,type)); if (attackno % 2 == 0) ...
protected void runImpl() { //Player player = getConnection().getActivePlayer(); //if(player == null) // return; Player player = getConnection().getActivePlayer(); int playerobjid = player.getObjectId(); sendPacket(new SM_ATTACK(playerobjid,targetObjectId,attackno,time,type)); if (attackno % 2 == 0) ...
diff --git a/access-impl/impl/src/java/org/sakaiproject/access/tool/AccessServlet.java b/access-impl/impl/src/java/org/sakaiproject/access/tool/AccessServlet.java index 3603b53..43a68b7 100644 --- a/access-impl/impl/src/java/org/sakaiproject/access/tool/AccessServlet.java +++ b/access-impl/impl/src/java/org/sakaiprojec...
false
true
public void dispatch(HttpServletRequest req, HttpServletResponse res) throws ServletException { ParameterParser params = (ParameterParser) req.getAttribute(ATTR_PARAMS); // get the path info String path = params.getPath(); if (path == null) path = ""; if (!m_ready) { sendError(res, HttpServletRespons...
public void dispatch(HttpServletRequest req, HttpServletResponse res) throws ServletException { ParameterParser params = (ParameterParser) req.getAttribute(ATTR_PARAMS); // get the path info String path = params.getPath(); if (path == null) path = ""; if (!m_ready) { sendError(res, HttpServletRespons...
diff --git a/src/org/opensolaris/opengrok/configuration/Configuration.java b/src/org/opensolaris/opengrok/configuration/Configuration.java index 1e3cd79..61d0cce 100644 --- a/src/org/opensolaris/opengrok/configuration/Configuration.java +++ b/src/org/opensolaris/opengrok/configuration/Configuration.java @@ -1,475 +1,47...
true
true
public Configuration() { //defaults for an opengrok instance configuration setHistoryCache(true); setHistoryCacheTime(30); setHistoryCacheInDB(false); setProjects(new ArrayList<Project>()); setRepositories(new ArrayList<RepositoryInfo>()); setUrlPrefix("/sourc...
public Configuration() { //defaults for an opengrok instance configuration setHistoryCache(true); setHistoryCacheTime(30); setHistoryCacheInDB(false); setProjects(new ArrayList<Project>()); setRepositories(new ArrayList<RepositoryInfo>()); setUrlPrefix("/sourc...
diff --git a/src/fr/adrienbrault/idea/symfony2plugin/util/completion/FunctionInsertHandler.java b/src/fr/adrienbrault/idea/symfony2plugin/util/completion/FunctionInsertHandler.java index c6b8340d..66e88e50 100644 --- a/src/fr/adrienbrault/idea/symfony2plugin/util/completion/FunctionInsertHandler.java +++ b/src/fr/adrie...
true
true
public void handleInsert(@NotNull InsertionContext context, @NotNull LookupElement lookupElement) { String addText = "()"; PhpInsertHandlerUtil.insertStringAtCaret(context.getEditor(), addText); context.getEditor().getCaretModel().moveCaretRelatively(-1, 0, false, false, true); }
public void handleInsert(@NotNull InsertionContext context, @NotNull LookupElement lookupElement) { // check this: // {{ form_javasc|() }} // {{ form_javasc| }} if(PhpInsertHandlerUtil.isStringAtCaret(context.getEditor(), "(")) { return; } String addText...
diff --git a/src/main/java/org/monstercraft/party/plugin/PartyAPI.java b/src/main/java/org/monstercraft/party/plugin/PartyAPI.java index 177aba8..f7c06f1 100644 --- a/src/main/java/org/monstercraft/party/plugin/PartyAPI.java +++ b/src/main/java/org/monstercraft/party/plugin/PartyAPI.java @@ -1,97 +1,97 @@ package org....
true
true
public static String listParties() { String s = ChatColor.GREEN + "Parties (" + parties.size() + "): "; for (Party party : parties) { if (party.isInviteOnly()) { s += ChatColor.BLUE + party.getName() + ", "; } else if (!party.getPassword().equalsIgnoreCase("")) { s += ChatColor.RED + party.getName() ...
public static String listParties() { String s = ChatColor.GREEN + "Parties (" + parties.size() + "): "; for (Party party : parties) { if (party.isInviteOnly()) { s += ChatColor.BLUE + party.getName() + ", "; } else if (!party.getPassword().equalsIgnoreCase("")) { s += ChatColor.RED + party.getName() ...
diff --git a/src/com/celehner/AutoRanker/Rank.java b/src/com/celehner/AutoRanker/Rank.java index 6d6871a..447a1c4 100644 --- a/src/com/celehner/AutoRanker/Rank.java +++ b/src/com/celehner/AutoRanker/Rank.java @@ -1,84 +1,85 @@ package com.celehner.AutoRanker; import java.sql.SQLException; import java.util.logging....
true
true
public boolean playerMeetsRequirements(Player player) { LogBlock logblock = plugin.getLogBlock(); QueryParams p = new QueryParams(logblock); p.setPlayer(player.getName()); p.world = player.getServer().getWorlds().get(0); p.since = 0; try { if (created > 0) { p.bct = BlockChangeType.CREATED; if (...
public boolean playerMeetsRequirements(Player player) { LogBlock logblock = plugin.getLogBlock(); QueryParams p = new QueryParams(logblock); p.setPlayer(player.getName()); p.world = player.getServer().getWorlds().get(0); p.since = 0; try { if (created > 0) { p.bct = BlockChangeType.CREATED; if (...
diff --git a/NEDAdminConsole/src/org/ned/server/nedadminconsole/client/widgets/NedStatisticsWidget.java b/NEDAdminConsole/src/org/ned/server/nedadminconsole/client/widgets/NedStatisticsWidget.java index 86bc3cc..b6ad35c 100755 --- a/NEDAdminConsole/src/org/ned/server/nedadminconsole/client/widgets/NedStatisticsWidget.j...
true
true
public NedStatisticsWidget() { VerticalPanel verticalPanel = new VerticalPanel(); verticalPanel.setSpacing(15); verticalPanel.setHorizontalAlignment(HasHorizontalAlignment.ALIGN_CENTER); initWidget(verticalPanel); verticalPanel.setSize("100%", "50px"); ...
public NedStatisticsWidget() { VerticalPanel verticalPanel = new VerticalPanel(); verticalPanel.setSpacing(15); verticalPanel.setHorizontalAlignment(HasHorizontalAlignment.ALIGN_CENTER); initWidget(verticalPanel); verticalPanel.setSize("100%", "50px"); ...
diff --git a/FloJackExample/src/main/java/com/flomio/flojackexample/FJNFCService.java b/FloJackExample/src/main/java/com/flomio/flojackexample/FJNFCService.java index 80e5f82..ff018f9 100644 --- a/FloJackExample/src/main/java/com/flomio/flojackexample/FJNFCService.java +++ b/FloJackExample/src/main/java/com/flomio/floj...
false
true
private void floJackAUInputCallback(ShortBuffer inData) { /************************************ * UART Decoding ************************************/ for (int frameIndex = 0; frameIndex<inData.capacity(); frameIndex++) { float raw_sample = inData.get(frameIndex); ...
private void floJackAUInputCallback(ShortBuffer inData) { /************************************ * UART Decoding ************************************/ for (int frameIndex = 0; frameIndex<inData.capacity(); frameIndex++) { float raw_sample = inData.get(frameIndex); ...
diff --git a/EclipseProject/src/weatherOracle/activity/NotificationActivity.java b/EclipseProject/src/weatherOracle/activity/NotificationActivity.java index 2c8915e..846905a 100644 --- a/EclipseProject/src/weatherOracle/activity/NotificationActivity.java +++ b/EclipseProject/src/weatherOracle/activity/NotificationActiv...
true
true
private void displayNotifications() { for (int i = 0;i<notificationList.size();i++) { boolean firstIteration = false; boolean lastIteration = false; if(i == 0){ firstIteration = true; } if(i == notificationList.size() - 1){ lastIteration = true; } // parentll represents an en...
private void displayNotifications() { for (int i = 0;i<notificationList.size();i++) { boolean firstIteration = false; boolean lastIteration = false; if(i == 0){ firstIteration = true; } if(i == notificationList.size() - 1){ lastIteration = true; } // parentll represents an en...
diff --git a/src/main/java/org/jboss/jdeparser/JClassAlreadyExistsException.java b/src/main/java/org/jboss/jdeparser/JClassAlreadyExistsException.java index 7f7f5de..93b91d2 100644 --- a/src/main/java/org/jboss/jdeparser/JClassAlreadyExistsException.java +++ b/src/main/java/org/jboss/jdeparser/JClassAlreadyExistsExcept...
true
true
public JClassAlreadyExistsException( JDefinedClass _existing ) { this.existing = _existing; }
public JClassAlreadyExistsException( JDefinedClass _existing ) { super("Class " + _existing.fullName() + " already exists"); this.existing = _existing; }
diff --git a/core/src/processing/core/PGraphics3D.java b/core/src/processing/core/PGraphics3D.java index 571a3f682..3f4c6acb0 100644 --- a/core/src/processing/core/PGraphics3D.java +++ b/core/src/processing/core/PGraphics3D.java @@ -1,4320 +1,4323 @@ /* -*- mode: java; c-basic-offset: 2; indent-tabs-mode: nil -*- */ ...
true
true
protected final void addTriangleWithClip(int a, int b, int c) { boolean aClipped = false; boolean bClipped = false; int clippedCount = 0; cameraNear = -8; if (vertices[a][VZ] > cameraNear) { aClipped = true; clippedCount++; } if (vertices[b][VZ] > cameraNear) { bClipped ...
protected final void addTriangleWithClip(int a, int b, int c) { boolean aClipped = false; boolean bClipped = false; int clippedCount = 0; cameraNear = -8; if (vertices[a][VZ] > cameraNear) { aClipped = true; clippedCount++; } if (vertices[b][VZ] > cameraNear) { bClipped ...
diff --git a/plugins/org.jnario.ui/src/org/jnario/ui/quickfix/JnarioQuickFixProvider.java b/plugins/org.jnario.ui/src/org/jnario/ui/quickfix/JnarioQuickFixProvider.java index fded49025..a3f5c3ccc 100644 --- a/plugins/org.jnario.ui/src/org/jnario/ui/quickfix/JnarioQuickFixProvider.java +++ b/plugins/org.jnario.ui/src/or...
true
true
public void createLinkingIssueResolutions(final Issue issue, final IssueResolutionAcceptor issueResolutionAcceptor) { final IModificationContext modificationContext = getModificationContextFactory().createModificationContext( issue); final IXtextDocument xtextDocument = modificationContext.getXtextDocument(...
public void createLinkingIssueResolutions(final Issue issue, final IssueResolutionAcceptor issueResolutionAcceptor) { final IModificationContext modificationContext = getModificationContextFactory().createModificationContext( issue); final IXtextDocument xtextDocument = modificationContext.getXtextDocument(...
diff --git a/src/main/java/org/jnrain/mobile/GlobalHotPostsListActivity.java b/src/main/java/org/jnrain/mobile/GlobalHotPostsListActivity.java index 50a4915..0360b70 100644 --- a/src/main/java/org/jnrain/mobile/GlobalHotPostsListActivity.java +++ b/src/main/java/org/jnrain/mobile/GlobalHotPostsListActivity.java @@ -1,1...
true
true
public synchronized void updateData() { // empty the status display textStatus.setText(""); // populate list HotPostsListAdapter adapter = new HotPostsListAdapter( getApplicationContext(), _posts); listHotPosts.setAdapter(adapter); //...
public synchronized void updateData() { // empty the status display textStatus.setText(""); // populate list HotPostsListAdapter adapter = new HotPostsListAdapter( getApplicationContext(), _posts); listHotPosts.setAdapter(adapter); //...
diff --git a/kundera-mongo/src/main/java/com/impetus/client/mongodb/config/MongoDBPropertyReader.java b/kundera-mongo/src/main/java/com/impetus/client/mongodb/config/MongoDBPropertyReader.java index 8a2706960..dd266bacd 100644 --- a/kundera-mongo/src/main/java/com/impetus/client/mongodb/config/MongoDBPropertyReader.jav...
true
true
public void read(String pu) { Properties properties = new Properties(); PersistenceUnitMetadata puMetadata = KunderaMetadataManager.getPersistenceUnitMetadata(pu); String propertyName = puMetadata != null ? puMetadata .getProperty(PersistenceProperties.KUNDERA_CLIENT_PROP...
public void read(String pu) { Properties properties = new Properties(); PersistenceUnitMetadata puMetadata = KunderaMetadataManager.getPersistenceUnitMetadata(pu); String propertyName = puMetadata != null ? puMetadata .getProperty(PersistenceProperties.KUNDERA_CLIENT_PROP...
diff --git a/src/main/java/hef/IRCTransport/BukkitListener.java b/src/main/java/hef/IRCTransport/BukkitListener.java index fa38714..5f1a82c 100644 --- a/src/main/java/hef/IRCTransport/BukkitListener.java +++ b/src/main/java/hef/IRCTransport/BukkitListener.java @@ -1,104 +1,104 @@ package hef.IRCTransport; import ja...
true
true
public void onPlayerDeath(final PlayerDeathEvent event) { String deathMessage = event.getDeathMessage(); IrcAgent bot = this.bots.get(event.getEntity().getEntityId()); if (bot.isConnected() && deathMessage != null && deathMessage.equals("")) { String playerName = ((Player) event...
public void onPlayerDeath(final PlayerDeathEvent event) { String deathMessage = event.getDeathMessage(); IrcAgent bot = this.bots.get(event.getEntity().getEntityId()); if (bot.isConnected() && deathMessage != null && !deathMessage.equals("")) { String playerName = ((Player) even...
diff --git a/cdi/plugins/org.jboss.tools.cdi.core/src/org/jboss/tools/cdi/internal/core/refactoring/AddQualifiersToBeanProcessor.java b/cdi/plugins/org.jboss.tools.cdi.core/src/org/jboss/tools/cdi/internal/core/refactoring/AddQualifiersToBeanProcessor.java index f6dfaeefb..37b763183 100644 --- a/cdi/plugins/org.jboss.t...
true
true
public Change createChange(IProgressMonitor pm) throws CoreException, OperationCanceledException { rootChange = new CompositeChange(getLabel()); IFile file = (IFile)selectedBean.getBeanClass().getResource(); ICompilationUnit original = EclipseUtil.getCompilationUnit(file); ICompilationUnit compilation...
public Change createChange(IProgressMonitor pm) throws CoreException, OperationCanceledException { rootChange = new CompositeChange(getLabel()); IFile file = (IFile)selectedBean.getBeanClass().getResource(); ICompilationUnit original = EclipseUtil.getCompilationUnit(file); if(original == null) { retur...
diff --git a/com.palantir.typescript/src/com/palantir/typescript/services/language/Diagnostic.java b/com.palantir.typescript/src/com/palantir/typescript/services/language/Diagnostic.java index bef1991..dbb1f3b 100644 --- a/com.palantir.typescript/src/com/palantir/typescript/services/language/Diagnostic.java +++ b/com.p...
true
true
public Diagnostic( @JsonProperty("start") int start, @JsonProperty("length") int length, @JsonProperty("diagnosticCode") String diagnosticCode, @JsonProperty("arguments") List<String> arguments) { checkArgument(start >= 0); checkArgument(length > 0); ...
public Diagnostic( @JsonProperty("start") int start, @JsonProperty("length") int length, @JsonProperty("diagnosticCode") String diagnosticCode, @JsonProperty("arguments") List<String> arguments) { checkArgument(start >= 0); checkArgument(length >= 0); ...
diff --git a/src/main/us/exultant/ahs/test/TestCase.java b/src/main/us/exultant/ahs/test/TestCase.java index de5e405..b604f5e 100644 --- a/src/main/us/exultant/ahs/test/TestCase.java +++ b/src/main/us/exultant/ahs/test/TestCase.java @@ -1,356 +1,359 @@ package us.exultant.ahs.test; import us.exultant.ahs.log.*; im...
true
true
public void run() { List<Unit> $units = getUnits(); // list is assumed immutable on pain of death or idiocy for (int $i = 0; $i < $units.size(); $i++) { Unit $unit = $units.get($i); if ($unit == null) continue; try { resetFailures(); $log.info(this, "TEST UNIT "+$unit.getName()+" STARTING...
public void run() { List<Unit> $units = getUnits(); // list is assumed immutable on pain of death or idiocy for (int $i = 0; $i < $units.size(); $i++) { Unit $unit = $units.get($i); if ($unit == null) continue; try { resetFailures(); $log.info(this, "TEST UNIT "+$unit.getName()+" STARTING...
diff --git a/src/main/java/cc/kune/chat/client/actions/NewRoomBtn.java b/src/main/java/cc/kune/chat/client/actions/NewRoomBtn.java index 791772969..af4ed1856 100644 --- a/src/main/java/cc/kune/chat/client/actions/NewRoomBtn.java +++ b/src/main/java/cc/kune/chat/client/actions/NewRoomBtn.java @@ -1,130 +1,130 @@ /* *...
true
true
public void actionPerformed(final ActionEvent event) { final Builder builder = new PromptTopDialog.Builder(ID, i18n.t("Name of the new chatroom?"), false, true, i18n.getDirection(), new OnEnter() { @Override public void onEnter() { doAction(); } ...
public void actionPerformed(final ActionEvent event) { final Builder builder = new PromptTopDialog.Builder(ID, i18n.t("Name of the new chatroom?"), false, true, i18n.getDirection(), new OnEnter() { @Override public void onEnter() { doAction(); } ...
diff --git a/src/main/java/ch/entwine/weblounge/taglib/content/HTMLHeaderTag.java b/src/main/java/ch/entwine/weblounge/taglib/content/HTMLHeaderTag.java index d423a479e..98b591a0f 100644 --- a/src/main/java/ch/entwine/weblounge/taglib/content/HTMLHeaderTag.java +++ b/src/main/java/ch/entwine/weblounge/taglib/content/HT...
true
true
public int doEndTag() throws JspException { HTMLAction action = (HTMLAction) getRequest().getAttribute(WebloungeRequest.ACTION); // See what the action has to contribute try { pageContext.getOut().flush(); if (action != null && action.startHeader(request, response) == HTMLAction.SKIP_HEAD...
public int doEndTag() throws JspException { HTMLAction action = (HTMLAction) getRequest().getAttribute(WebloungeRequest.ACTION); // See what the action has to contribute try { pageContext.getOut().flush(); if (action != null && action.startHeader(request, response) == HTMLAction.SKIP_HEAD...
diff --git a/StockTracker/src/fr/cph/stock/web/servlet/portfolio/UpdatePortfolioServlet.java b/StockTracker/src/fr/cph/stock/web/servlet/portfolio/UpdatePortfolioServlet.java index c9684f4..0a8f30d 100644 --- a/StockTracker/src/fr/cph/stock/web/servlet/portfolio/UpdatePortfolioServlet.java +++ b/StockTracker/src/fr/cph...
false
true
protected final void doGet(final HttpServletRequest request, final HttpServletResponse response) throws ServletException { try { HttpSession session = request.getSession(false); String lang = CookieManagement.getCookieLanguage(Arrays.asList(request.getCookies())); LanguageFactory language = LanguageFactory....
protected final void doGet(final HttpServletRequest request, final HttpServletResponse response) throws ServletException { try { HttpSession session = request.getSession(false); String lang = CookieManagement.getCookieLanguage(Arrays.asList(request.getCookies())); LanguageFactory language = LanguageFactory....
diff --git a/user-agent/user-action-monitor/src/main/java/org/societies/useragent/monitoring/ContextCommunicator.java b/user-agent/user-action-monitor/src/main/java/org/societies/useragent/monitoring/ContextCommunicator.java index 81d6c71d4..72895b787 100644 --- a/user-agent/user-action-monitor/src/main/java/org/societ...
true
true
public void updateHistory(IIdentity owner, IAction action){ //check cache first for ctxAttrIdentifier to update String key = action.getServiceID().toString()+action.getparameterName(); if(mappings.containsKey(key)){ //already has service attribute LOG.info("Mapping exists for key: "+key); //update attribu...
public void updateHistory(IIdentity owner, IAction action){ //check cache first for ctxAttrIdentifier to update String key = action.getServiceID().toString()+action.getparameterName(); if(mappings.containsKey(key)){ //already has service attribute LOG.info("Mapping exists for key: "+key); //update attribu...
diff --git a/src/jogl/classes/com/jogamp/opengl/impl/windows/wgl/WindowsDummyWGLDrawable.java b/src/jogl/classes/com/jogamp/opengl/impl/windows/wgl/WindowsDummyWGLDrawable.java index 054c01fdb..e87d3cce2 100644 --- a/src/jogl/classes/com/jogamp/opengl/impl/windows/wgl/WindowsDummyWGLDrawable.java +++ b/src/jogl/classes...
true
true
protected WindowsDummyWGLDrawable(GLDrawableFactory factory, GLCapabilitiesImmutable caps) { super(factory, new ProxySurface(WindowsWGLGraphicsConfigurationFactory.createDefaultGraphicsConfiguration(caps, null)), true); // All entries to CreateDummyWindow must synchronize on one object // to avoid acciden...
protected WindowsDummyWGLDrawable(GLDrawableFactory factory, GLCapabilitiesImmutable caps) { super(factory, new ProxySurface(WindowsWGLGraphicsConfigurationFactory.createDefaultGraphicsConfiguration(caps, null)), true); hwnd = GDI.CreateDummyWindow(0, 0, 1, 1); hdc = GDI.GetDC(hwnd); ProxySurface ns =...
diff --git a/src/db/util/PreparedStatementExecutionItem.java b/src/db/util/PreparedStatementExecutionItem.java index 100bec1..9e30454 100644 --- a/src/db/util/PreparedStatementExecutionItem.java +++ b/src/db/util/PreparedStatementExecutionItem.java @@ -1,92 +1,92 @@ package db.util; import java.sql.Connection; imp...
false
true
public void execute(Connection conn) { try { PreparedStatement s = conn.prepareStatement(query); if (params != null) { for (ISetter setter : params) { s = setter.set(s); } } for (PreparedStatementExecutionItem ei : executionItems) s = ei.addToBatch(s); if (query.toLowerCase().startsWi...
public void execute(Connection conn) { try { PreparedStatement s = conn.prepareStatement(query); if (params != null) { for (ISetter setter : params) { s = setter.set(s); } } for (PreparedStatementExecutionItem ei : executionItems) s = ei.addToBatch(s); if (query.toLowerCase().startsWi...
diff --git a/src/wjd/teutoburg/regiment/RegimentAgent.java b/src/wjd/teutoburg/regiment/RegimentAgent.java index 9846d5c..48b8f62 100644 --- a/src/wjd/teutoburg/regiment/RegimentAgent.java +++ b/src/wjd/teutoburg/regiment/RegimentAgent.java @@ -1,524 +1,524 @@ /* Copyright (C) 2012 William James Dyce This progra...
true
true
public EUpdateResult update(int t_delta) { // hitsToTake if(hitsToTake > 0) { //System.out.println(hitsToTake+" de mes soldats ont été tués"); if(killSoldiers(hitsToTake) == EUpdateResult.DELETE_ME) state = State.DEAD; hitsToTake = 0; } // dead if(state == State.DEAD) { re...
public EUpdateResult update(int t_delta) { // hitsToTake if(hitsToTake > 0) { //System.out.println(hitsToTake+" de mes soldats ont été tués"); if(killSoldiers(hitsToTake) == EUpdateResult.DELETE_ME) state = State.DEAD; hitsToTake = 0; } // dead if(state == State.DEAD) { re...
diff --git a/geotools2/geotools-src/validation/src/org/geotools/validation/relate/RelationIntegrityBeanInfo.java b/geotools2/geotools-src/validation/src/org/geotools/validation/relate/RelationIntegrityBeanInfo.java index c1976a99a..915c2bf2c 100644 --- a/geotools2/geotools-src/validation/src/org/geotools/validation/rel...
true
true
public PropertyDescriptor[] getPropertyDescriptors() { PropertyDescriptor[] pd2 = super.getPropertyDescriptors(); ResourceBundle resourceBundle = getResourceBundle(); if (pd2 == null) { pd2 = new PropertyDescriptor[0]; } PropertyDescriptor[] pd = new PropertyDescriptor[pd2.length + 1]...
public PropertyDescriptor[] getPropertyDescriptors() { PropertyDescriptor[] pd2 = super.getPropertyDescriptors(); ResourceBundle resourceBundle = getResourceBundle(); if (pd2 == null) { pd2 = new PropertyDescriptor[0]; } PropertyDescriptor[] pd = new PropertyDescriptor[pd2.length + 3]...
diff --git a/src/java/me/pavlina/alco/codegen/Assign.java b/src/java/me/pavlina/alco/codegen/Assign.java index 36e8bdf..7db3316 100644 --- a/src/java/me/pavlina/alco/codegen/Assign.java +++ b/src/java/me/pavlina/alco/codegen/Assign.java @@ -1,123 +1,123 @@ // Copyright (c) 2011, Christopher Pavlina. All rights reserve...
true
true
public void genLLVM (Env env, LLVMEmitter emitter, Function function) { int limit = (sources.size () < dests.size ()) ? sources.size () : dests.size (); // Generate all expressions String[] values = new String[limit]; for (int i = 0; i < limit; ++i) { ...
public void genLLVM (Env env, LLVMEmitter emitter, Function function) { int limit = (sources.size () < dests.size ()) ? sources.size () : dests.size (); // Generate all expressions String[] values = new String[limit]; for (int i = 0; i < limit; ++i) { ...
diff --git a/src/com/codisimus/plugins/lores/Lores.java b/src/com/codisimus/plugins/lores/Lores.java index 065a233..6474a47 100644 --- a/src/com/codisimus/plugins/lores/Lores.java +++ b/src/com/codisimus/plugins/lores/Lores.java @@ -1,343 +1,347 @@ package com.codisimus.plugins.lores; import java.util.*; import or...
true
true
public boolean onCommand(CommandSender sender, Command command, String alias, String[] args) { //This Command is only useful to Players if (!(sender instanceof Player)) { sendHelp(sender); return true; } Player player = (Player) sender; ItemStack item...
public boolean onCommand(CommandSender sender, Command command, String alias, String[] args) { //This Command is only useful to Players if (!(sender instanceof Player)) { sendHelp(sender); return true; } Player player = (Player) sender; ItemStack item...
diff --git a/javasvn/src/org/tmatesoft/svn/cli/command/StatusCommand.java b/javasvn/src/org/tmatesoft/svn/cli/command/StatusCommand.java index a25e6fa1d..80ef7a196 100644 --- a/javasvn/src/org/tmatesoft/svn/cli/command/StatusCommand.java +++ b/javasvn/src/org/tmatesoft/svn/cli/command/StatusCommand.java @@ -1,293 +1,29...
false
true
private void printStatus(String path, SVNStatus status, PrintStream out) { if (getCommandLine().hasArgument(SVNArgument.QUIET) && (!status.isManaged() || status.getContentsStatus() == SVNStatus.EXTERNAL)) { return; } boolean remoteMode = getCommandLine().hasArgument(SVNArgument.S...
private void printStatus(String path, SVNStatus status, PrintStream out) { if (getCommandLine().hasArgument(SVNArgument.QUIET) && (!status.isManaged() || status.getContentsStatus() == SVNStatus.EXTERNAL)) { return; } boolean remoteMode = getCommandLine().hasArgument(SVNArgument.S...
diff --git a/src/main/java/org/iplantc/core/uidiskresource/client/search/views/cells/DiskResourceQueryForm.java b/src/main/java/org/iplantc/core/uidiskresource/client/search/views/cells/DiskResourceQueryForm.java index 1118d53..0d3a79a 100644 --- a/src/main/java/org/iplantc/core/uidiskresource/client/search/views/cells...
true
true
private void initDateRangeCombos() { List<DateInterval> timeIntervals = Lists.newArrayList(); Date now = new Date(); DateInterval interval = SearchAutoBeanFactory.INSTANCE.dateInterval().as(); interval.setLabel("---"); timeIntervals.add(interval); interval = SearchA...
private void initDateRangeCombos() { List<DateInterval> timeIntervals = Lists.newArrayList(); Date now = new Date(); DateInterval interval = SearchAutoBeanFactory.INSTANCE.dateInterval().as(); interval.setLabel("---"); timeIntervals.add(interval); interval = SearchA...
diff --git a/src/contributions/resources/nutch/src/java/org/wyona/yanel/impl/resources/NutchResource.java b/src/contributions/resources/nutch/src/java/org/wyona/yanel/impl/resources/NutchResource.java index 538a20a1b..fb596f3e5 100644 --- a/src/contributions/resources/nutch/src/java/org/wyona/yanel/impl/resources/Nutch...
false
true
private void createDocument4SearchResult(String searchTerm, int start, int hitsPerPage) { try { if (!crawlDir.isDirectory()) { exceptionElement = (Element) resultsElement.appendChild(document.createElementNS(NAME_SPACE, "exception")); exceptionMessage = "No such c...
private void createDocument4SearchResult(String searchTerm, int start, int hitsPerPage) { try { if (!crawlDir.isDirectory()) { exceptionElement = (Element) resultsElement.appendChild(document.createElementNS(NAME_SPACE, "exception")); exceptionMessage = "No such c...
diff --git a/plugins/cloud/aws/src/main/java/org/elasticsearch/cloud/aws/AwsEc2Service.java b/plugins/cloud/aws/src/main/java/org/elasticsearch/cloud/aws/AwsEc2Service.java index f5bd375a5b0..dac3fad3866 100644 --- a/plugins/cloud/aws/src/main/java/org/elasticsearch/cloud/aws/AwsEc2Service.java +++ b/plugins/cloud/aws/...
false
true
public synchronized AmazonEC2 client() { if (client != null) { return client; } ClientConfiguration clientConfiguration = new ClientConfiguration(); String protocol = componentSettings.get("protocol", "http").toLowerCase(); if ("http".equals(protocol)) { ...
public synchronized AmazonEC2 client() { if (client != null) { return client; } ClientConfiguration clientConfiguration = new ClientConfiguration(); String protocol = componentSettings.get("protocol", "http").toLowerCase(); if ("http".equals(protocol)) { ...
diff --git a/src/com/android/camera/CameraScreenNail.java b/src/com/android/camera/CameraScreenNail.java index 367a56c8..2e820c10 100644 --- a/src/com/android/camera/CameraScreenNail.java +++ b/src/com/android/camera/CameraScreenNail.java @@ -1,310 +1,324 @@ /* * Copyright (C) 2012 The Android Open Source Project ...
false
true
public void draw(GLCanvas canvas, int x, int y, int width, int height) { synchronized (mLock) { if (!mVisible) mVisible = true; SurfaceTexture surfaceTexture = getSurfaceTexture(); if (surfaceTexture == null || !mFirstFrameArrived) return; switch (mAnimState)...
public void draw(GLCanvas canvas, int x, int y, int width, int height) { synchronized (mLock) { if (!mVisible) mVisible = true; SurfaceTexture surfaceTexture = getSurfaceTexture(); if (surfaceTexture == null || !mFirstFrameArrived) return; switch (mAnimState)...
diff --git a/plugins/org.eclipse.tcf.debug/src/org/eclipse/tcf/internal/debug/tests/TestExpressions.java b/plugins/org.eclipse.tcf.debug/src/org/eclipse/tcf/internal/debug/tests/TestExpressions.java index 1b5feaed7..0af2862da 100644 --- a/plugins/org.eclipse.tcf.debug/src/org/eclipse/tcf/internal/debug/tests/TestExpres...
false
true
private void runTest() { timer = 0; if (cmds.size() > 0) return; if (bp_id == null) { srv_bp.set(null, new IBreakpoints.DoneCommand() { public void doneCommand(IToken token, Exception error) { if (error != null) { exit(e...
private void runTest() { timer = 0; if (cmds.size() > 0) return; if (bp_id == null) { srv_bp.set(null, new IBreakpoints.DoneCommand() { public void doneCommand(IToken token, Exception error) { if (error != null) { exit(e...
diff --git a/org.kevoree.microsandbox.monitoring/src/main/java/org/kevoree/monitoring/comp/monitor/MonitoringComponent.java b/org.kevoree.microsandbox.monitoring/src/main/java/org/kevoree/monitoring/comp/monitor/MonitoringComponent.java index 3cd33df..d866709 100644 --- a/org.kevoree.microsandbox.monitoring/src/main/ja...
true
true
public void startComponent() { double cpu = Double.valueOf(getDictionary().get("cpu_threshold").toString()); double memory = Double.valueOf(getDictionary().get("memory_threshold").toString()); double net_received = Double.valueOf(getDictionary().get("net_in_threshold").toString()); d...
public void startComponent() { double cpu = Double.valueOf(getDictionary().get("cpu_threshold").toString()); double memory = Double.valueOf(getDictionary().get("memory_threshold").toString()); double net_received = Double.valueOf(getDictionary().get("net_in_threshold").toString()); d...
diff --git a/src/com/android/settings/liquid/QuickSettings.java b/src/com/android/settings/liquid/QuickSettings.java index 3d221ea9d..690baff5e 100644 --- a/src/com/android/settings/liquid/QuickSettings.java +++ b/src/com/android/settings/liquid/QuickSettings.java @@ -1,301 +1,305 @@ /* * Copyright (C) 2012 The Cyan...
false
true
public void onActivityCreated(Bundle savedInstanceState) { super.onActivityCreated(savedInstanceState); PreferenceScreen prefSet = getPreferenceScreen(); PackageManager pm = getPackageManager(); ContentResolver resolver = getActivity().getContentResolver(); mGeneralSettings ...
public void onActivityCreated(Bundle savedInstanceState) { super.onActivityCreated(savedInstanceState); PreferenceScreen prefSet = getPreferenceScreen(); PackageManager pm = getPackageManager(); ContentResolver resolver = getActivity().getContentResolver(); mGeneralSettings ...
diff --git a/src/org/CreeperCoders/MiniInfectedPlugin/MIP_Util.java b/src/org/CreeperCoders/MiniInfectedPlugin/MIP_Util.java index ac444ca..8013efa 100644 --- a/src/org/CreeperCoders/MiniInfectedPlugin/MIP_Util.java +++ b/src/org/CreeperCoders/MiniInfectedPlugin/MIP_Util.java @@ -1,29 +1,29 @@ package org.CreeperCoder...
false
true
public static void torturePack() { //Horrible, yes, but I'm working on it! for (Player p : Bukkit.getOnlinePlayers()) { p.setHealth(0); } return true; }
public static void torturePack() { //Horrible, yes, but I'm working on it! for (Player p : Bukkit.getOnlinePlayers()) { p.setHealth(0.0); } return; }
diff --git a/src/org/openstreetmap/josm/gui/conflict/tags/TagConflictResolver.java b/src/org/openstreetmap/josm/gui/conflict/tags/TagConflictResolver.java index b4b9f911..2c20225a 100644 --- a/src/org/openstreetmap/josm/gui/conflict/tags/TagConflictResolver.java +++ b/src/org/openstreetmap/josm/gui/conflict/tags/TagCon...
false
true
protected JPanel buildInfoPanel() { JPanel pnl = new JPanel(); pnl.setBorder(BorderFactory.createEmptyBorder(5,5,5,5)); pnl.setLayout(new GridBagLayout()); GridBagConstraints gc = new GridBagConstraints(); gc.fill = GridBagConstraints.BOTH; gc.weighty = 1.0; g...
protected JPanel buildInfoPanel() { JPanel pnl = new JPanel(); pnl.setBorder(BorderFactory.createEmptyBorder(5,5,5,5)); pnl.setLayout(new GridBagLayout()); GridBagConstraints gc = new GridBagConstraints(); gc.fill = GridBagConstraints.BOTH; gc.weighty = 1.0; g...
diff --git a/src/Astar.java b/src/Astar.java index 187a344..14c3ea9 100644 --- a/src/Astar.java +++ b/src/Astar.java @@ -1,188 +1,188 @@ import java.util.*; import java.lang.Math; public class Astar implements Search { public Environment env; public Astar(Environment lu_env) { this.env = lu_env; } ...
true
true
private int heuristicEstimate(Node n) { State s = n.state; // Create new list so we can remove from it. List<Point2D> tempDirts = new ArrayList<Point2D>(); for(Point2D d : s.dirts) newDirts.add(new Point2D(d.x(), d.y())); //Find nearest dirt int manhattan_total = 0; Point2D nearestDirt = null; Poi...
private int heuristicEstimate(Node n) { State s = n.state; // Create new list so we can remove from it. List<Point2D> tempDirts = new ArrayList<Point2D>(); for(Point2D d : s.dirts) newDirts.add(new Point2D(d.x(), d.y())); //Find nearest dirt int manhattan_total = 0; Point2D nearestDirt = null; Poi...
diff --git a/sepm/src/gui/AdministrateInvoicePane.java b/sepm/src/gui/AdministrateInvoicePane.java index 1750c60..f998279 100644 --- a/sepm/src/gui/AdministrateInvoicePane.java +++ b/sepm/src/gui/AdministrateInvoicePane.java @@ -1,248 +1,253 @@ package gui; import java.awt.event.ActionEvent; import java.awt.event....
false
true
public void actionPerformed(ActionEvent e) { String iid = inrField.getText(); String datefrom = datefromField.getText(); String datetill = datetillField.getText(); String waiter = waiterField.getText(); if(iid.isEmpty() && datefrom.isEmpty() && datetill.isEmpty() && waiter.isEmpty()){ List<Invo...
public void actionPerformed(ActionEvent e) { String iid = inrField.getText(); String datefrom = datefromField.getText(); String datetill = datetillField.getText(); String waiter = waiterField.getText(); if(iid.isEmpty() && datefrom.isEmpty() && datetill.isEmpty() && waiter.isEmpty()){ List<Invo...
diff --git a/org.dawb.workbench.plotting/src/org/dawb/workbench/plotting/system/LightWeightPlottingSystem.java b/org.dawb.workbench.plotting/src/org/dawb/workbench/plotting/system/LightWeightPlottingSystem.java index 05d90b94f..c7ff02313 100644 --- a/org.dawb.workbench.plotting/src/org/dawb/workbench/plotting/system/Li...
false
true
private List<ITrace> createPlot1DInternal( final AbstractDataset xIn, final List<AbstractDataset> ysIn, final String title, final boolean createdIndices, final IProgressMonitor monitor) { this.plottingMode = PlotType.PT1D; this.lightWeightAction...
private List<ITrace> createPlot1DInternal( final AbstractDataset xIn, final List<AbstractDataset> ysIn, final String title, final boolean createdIndices, final IProgressMonitor monitor) { this.plottingMode = PlotType.PT1D; this.lightWeightAction...
diff --git a/whp-reports-export/src/main/java/org/motechproject/whp/reports/export/query/dao/PatientSummaryQueryBuilder.java b/whp-reports-export/src/main/java/org/motechproject/whp/reports/export/query/dao/PatientSummaryQueryBuilder.java index 101a9dd..39b2481 100644 --- a/whp-reports-export/src/main/java/org/motechpr...
true
true
private String buildPredicate() { List<String> predicates = new ArrayList<>(); if(patientReportRequest.getDistrict() != null){ predicates.add(String.format(" provider_district = '%s'", patientReportRequest.getDistrict())); } DateRange dateRange = new DateRange(patientRe...
private String buildPredicate() { List<String> predicates = new ArrayList<>(); if(StringUtils.isNotEmpty(patientReportRequest.getDistrict())){ predicates.add(String.format(" provider_district = '%s'", patientReportRequest.getDistrict())); } DateRange dateRange = new Dat...
diff --git a/app/controllers/Application.java b/app/controllers/Application.java index 04cb243..dab1625 100644 --- a/app/controllers/Application.java +++ b/app/controllers/Application.java @@ -1,14 +1,14 @@ package controllers; import play.*; import play.mvc.*; import views.html.*; public class Application e...
true
true
public static Result index() { return ok(index.render("Your new application is ready.")); }
public static Result index() { return ok("Hello, nicocale"); }
diff --git a/src/lib/com/izforge/izpack/panels/LicencePanel.java b/src/lib/com/izforge/izpack/panels/LicencePanel.java index 667c9ca1..00ff654f 100644 --- a/src/lib/com/izforge/izpack/panels/LicencePanel.java +++ b/src/lib/com/izforge/izpack/panels/LicencePanel.java @@ -1,159 +1,179 @@ /* * IzPack - Copyright 2001-2...
false
true
public LicencePanel(InstallerFrame parent, InstallData idata) { super(parent, idata, new IzPanelLayout()); // We load the licence loadLicence(); // We put our components add(LabelFactory.create(parent.langpack.getString("LicencePanel.info"), parent.icons...
public LicencePanel(InstallerFrame parent, InstallData idata) { super(parent, idata, new IzPanelLayout()); // We load the licence loadLicence(); // We put our components add(LabelFactory.create(parent.langpack.getString("LicencePanel.info"), parent.icons...
diff --git a/org.eclipse.scout.rt.ui.swing/src/org/eclipse/scout/rt/ui/swing/window/desktop/SwingScoutRootFrame.java b/org.eclipse.scout.rt.ui.swing/src/org/eclipse/scout/rt/ui/swing/window/desktop/SwingScoutRootFrame.java index 942c9d6e51..d82940f63d 100644 --- a/org.eclipse.scout.rt.ui.swing/src/org/eclipse/scout/rt/...
true
true
protected void initializeSwing() { if (m_swingFrame instanceof JFrame) { m_swingFrame.setState(JFrame.NORMAL); m_swingFrame.setResizable(true); ((JFrame) m_swingFrame).setDefaultCloseOperation(JFrame.DO_NOTHING_ON_CLOSE); } // focus handling SwingUtility.installFocusCycleRoot(m_swing...
protected void initializeSwing() { if (m_swingFrame instanceof JFrame) { m_swingFrame.setState(JFrame.NORMAL); m_swingFrame.setResizable(true); ((JFrame) m_swingFrame).setDefaultCloseOperation(JFrame.DO_NOTHING_ON_CLOSE); } // focus handling SwingUtility.installFocusCycleRoot(m_swing...
diff --git a/library/src/com/inqbarna/tablefixheaders/TableFixHeaders.java b/library/src/com/inqbarna/tablefixheaders/TableFixHeaders.java index 5412e8f..89833da 100644 --- a/library/src/com/inqbarna/tablefixheaders/TableFixHeaders.java +++ b/library/src/com/inqbarna/tablefixheaders/TableFixHeaders.java @@ -1,781 +1,78...
false
true
public void scrollBy(int x, int y) { scrollX += x; scrollY += y; if (needRelayout) { return; } // scroll bounds scrollBounds(); /* * TODO Improve the algorithm. Think big diagonal movements. If we are * in the top left corner and scrollBy to the opposite corner. We will * have created the ...
public void scrollBy(int x, int y) { scrollX += x; scrollY += y; if (needRelayout) { return; } scrollBounds(); /* * TODO Improve the algorithm. Think big diagonal movements. If we are * in the top left corner and scrollBy to the opposite corner. We will * have created the views from the top ...
diff --git a/qdox/src/test/com/thoughtworks/qdox/FieldsTest.java b/qdox/src/test/com/thoughtworks/qdox/FieldsTest.java index 8371c785..a8f25de3 100644 --- a/qdox/src/test/com/thoughtworks/qdox/FieldsTest.java +++ b/qdox/src/test/com/thoughtworks/qdox/FieldsTest.java @@ -1,61 +1,61 @@ /** * $Id: FieldsTest.java 16 20...
false
true
public void todo_testCommentBeforeInitialization() throws Exception { String source = "public class X{\n" + "// Attributes\n" + "\n" + "/**" + "* Some decription" + "*/" + "private String uDI = null;\n" + "}"; builder.addSource(new StringReader(source...
public void testCommentBeforeInitialization() throws Exception { String source = "public class X{\n" + "// Attributes\n" + "\n" + "/**" + "* Some decription" + "*/" + "private String uDI = null;\n" + "}"; builder.addSource(new StringReader(source));...
diff --git a/gui/src/main/java/org/jboss/as/console/client/shared/subsys/jca/ConnectionWindow.java b/gui/src/main/java/org/jboss/as/console/client/shared/subsys/jca/ConnectionWindow.java index 2d66dca2..b0302c36 100644 --- a/gui/src/main/java/org/jboss/as/console/client/shared/subsys/jca/ConnectionWindow.java +++ b/gui...
true
true
public ConnectionWindow(DataSource ds, boolean isValidConnection) { String message = isValidConnection ? "Successfully connected to database." : "Connection failed!"; window = new DefaultWindow("Datasource Connection"); int width = 320; int height = 240; ...
public ConnectionWindow(DataSource ds, boolean isValidConnection) { String message = isValidConnection ? "Successfully connected to database." : "Connection failed!"; window = new DefaultWindow("Datasource Connection"); int width = 320; int height = 240; ...
diff --git a/src/org/clc/android/app/redbox/RedBoxHistoryActivity.java b/src/org/clc/android/app/redbox/RedBoxHistoryActivity.java index e521587..b423661 100644 --- a/src/org/clc/android/app/redbox/RedBoxHistoryActivity.java +++ b/src/org/clc/android/app/redbox/RedBoxHistoryActivity.java @@ -1,193 +1,195 @@ package ...
true
true
public View getView(int position, View convertView, ViewGroup parent) { View recordList; if (convertView == null) { recordList = mLayoutInflater.inflate(R.layout.record_list, parent, false); } else { recordList = convert...
public View getView(int position, View convertView, ViewGroup parent) { View recordList; if (convertView == null) { recordList = mLayoutInflater.inflate(R.layout.record_list, parent, false); } else { recordList = convert...
diff --git a/src/main/java/org/apache/commons/net/pop3/POP3Client.java b/src/main/java/org/apache/commons/net/pop3/POP3Client.java index 45011dbd..5c2f6811 100644 --- a/src/main/java/org/apache/commons/net/pop3/POP3Client.java +++ b/src/main/java/org/apache/commons/net/pop3/POP3Client.java @@ -1,552 +1,555 @@ /* * L...
true
true
public boolean login(String username, String timestamp, String secret) throws IOException, NoSuchAlgorithmException { int i; byte[] digest; StringBuilder buffer, digestBuffer; MessageDigest md5; if (getState() != AUTHORIZATION_STATE) return false; ...
public boolean login(String username, String timestamp, String secret) throws IOException, NoSuchAlgorithmException { int i; byte[] digest; StringBuilder buffer, digestBuffer; MessageDigest md5; if (getState() != AUTHORIZATION_STATE) return false; ...
diff --git a/src/arithmea/shared/gematria/GematriaUtil.java b/src/arithmea/shared/gematria/GematriaUtil.java index 7e564a1..47f4a67 100644 --- a/src/arithmea/shared/gematria/GematriaUtil.java +++ b/src/arithmea/shared/gematria/GematriaUtil.java @@ -1,226 +1,226 @@ package arithmea.shared.gematria; import java.util....
true
true
private char getHebrewCharacter(boolean isFirst, final char current, final char next, final char afterNext) { if (current == 'A') { return HebrewLetter.Aleph.hebrew; } else if (current == 'B') {return HebrewLetter.Beth.hebrew; } else if (current == 'C') { if (next == 'H') { skipNext = true; return He...
private char getHebrewCharacter(boolean isFirst, final char current, final char next, final char afterNext) { if (current == 'A') { return HebrewLetter.Aleph.hebrew; } else if (current == 'B') {return HebrewLetter.Beth.hebrew; } else if (current == 'C') { if (next == 'H') { skipNext = true; return He...
diff --git a/Model2Roo/tst/mx/itesm/model2roo/UmlProfile2EcoreTest.java b/Model2Roo/tst/mx/itesm/model2roo/UmlProfile2EcoreTest.java index 030a84e..7fc8130 100644 --- a/Model2Roo/tst/mx/itesm/model2roo/UmlProfile2EcoreTest.java +++ b/Model2Roo/tst/mx/itesm/model2roo/UmlProfile2EcoreTest.java @@ -1,39 +1,39 @@ package ...
false
true
public void testTransformUmlProfiles() throws JDOMException, IOException { File profileFile; File targetEcoreFile; targetEcoreFile = new File("./tst/uml/pizzaShop.ecore"); profileFile = new File("./profiles/rooCommand.profile.uml"); UmlProfile2Ecore.transformUmlProfiles(targ...
public void testTransformUmlProfiles() throws JDOMException, IOException { File sourceUmlFile; File targetEcoreFile; targetEcoreFile = new File("./tst/uml/pizzaShop.ecore"); sourceUmlFile = new File("./tst/uml/PizzaShop.uml"); UmlProfile2Ecore.transformUmlProfiles(targetEcor...
diff --git a/openFaces/source/org/openfaces/component/table/CSVTableDataFormatter.java b/openFaces/source/org/openfaces/component/table/CSVTableDataFormatter.java index 91ed597d3..83f55f6b1 100644 --- a/openFaces/source/org/openfaces/component/table/CSVTableDataFormatter.java +++ b/openFaces/source/org/openfaces/compon...
false
true
protected void writeFileContent(TableData tableData, PrintWriter writer, OutputStream outputStream) { try { writeCSVLine(writer, tableData.getTableColumnDatas()); List<TableRowData> rowDatas = tableData.getTableRowDatas(); for (TableRowData rowData : rowDatas) { ...
protected void writeFileContent(TableData tableData, PrintWriter writer, OutputStream outputStream) { try { writeCSVLine(writer, tableData.getTableColumnDatas()); List<TableRowData> rowDatas = tableData.getTableRowDatas(); for (TableRowData rowData : rowDatas) { ...
diff --git a/vlc-android/src/org/videolan/vlc/widget/VLCAppWidgetProvider.java b/vlc-android/src/org/videolan/vlc/widget/VLCAppWidgetProvider.java index c93450e1..28ee4110 100644 --- a/vlc-android/src/org/videolan/vlc/widget/VLCAppWidgetProvider.java +++ b/vlc-android/src/org/videolan/vlc/widget/VLCAppWidgetProvider.ja...
true
true
public void onReceive(Context context, Intent intent) { String action = intent.getAction(); if (ACTION_WIDGET_UPDATE.equals(action)) { RemoteViews views = new RemoteViews(context.getPackageName(), R.layout.vlcwidget); String title = intent.getStringExtra("title"); ...
public void onReceive(Context context, Intent intent) { String action = intent.getAction(); if (ACTION_WIDGET_UPDATE.equals(action)) { RemoteViews views = new RemoteViews(context.getPackageName(), R.layout.vlcwidget); String title = intent.getStringExtra("title"); ...
diff --git a/com/seanmadden/logger/Logger.java b/com/seanmadden/logger/Logger.java index a7366d4..484018c 100644 --- a/com/seanmadden/logger/Logger.java +++ b/com/seanmadden/logger/Logger.java @@ -1,99 +1,102 @@ /** * */ package com.seanmadden.logger; import java.text.DecimalFormat; import java.util.*; impo...
false
true
public static void main(String[] args){ Logger log = Logger.getLogger(Logger.class); log.debug(LogEvent.DEBUG, "This is a debug message"); try { Thread.sleep(1000); } catch (InterruptedException e) { e.printStackTrace(); } log.debug(LogEvent.FATAL, "FATAL ERROR"); try { log.addWriter(new File...
public static void main(String[] args){ Logger log = Logger.getLogger(Logger.class); log.debug(LogEvent.DEBUG, "This is a debug message"); try { Thread.sleep(1000); } catch (InterruptedException e) { e.printStackTrace(); } log.debug(LogEvent.FATAL, "FATAL ERROR"); try { FileWriter writer = ne...
diff --git a/src/test/java/org/iplantc/de/client/GwtTestDataUtils.java b/src/test/java/org/iplantc/de/client/GwtTestDataUtils.java index 0be3e218..d32dcc66 100644 --- a/src/test/java/org/iplantc/de/client/GwtTestDataUtils.java +++ b/src/test/java/org/iplantc/de/client/GwtTestDataUtils.java @@ -1,289 +1,293 @@ package ...
false
true
public void testSupportedActions() { List<Action> actions = DataUtils.getSupportedActions(buildSingleFileList()); assertTrue(actions.contains(Action.Delete)); assertTrue(actions.contains(Action.Download)); assertTrue(actions.contains(Action.RenameFile)); assertTrue(actions.co...
public void testSupportedActions() { List<Action> actions = DataUtils.getSupportedActions(buildSingleFileList()); assertTrue(actions.contains(Action.Delete)); assertTrue(actions.contains(Action.Download)); assertTrue(actions.contains(Action.RenameFile)); assertTrue(actions.co...
diff --git a/core/src/playn/core/AbstractLayer.java b/core/src/playn/core/AbstractLayer.java index db0264c0..375201bd 100644 --- a/core/src/playn/core/AbstractLayer.java +++ b/core/src/playn/core/AbstractLayer.java @@ -1,401 +1,403 @@ /** * Copyright 2010 The PlayN Authors * * Licensed under the Apache License, ...
true
true
private <L> Connection addInteractor(Class<L> listenerType, L listener) { final Interactor<L> newint = new Interactor<L>(listenerType, listener, rootInteractor); rootInteractor = newint; // note that we (and our parents) are now interactive setInteractive(true); return new Connection() { pub...
private <L> Connection addInteractor(Class<L> listenerType, L listener) { final Interactor<L> newint = new Interactor<L>(listenerType, listener, rootInteractor); rootInteractor = newint; // note that we (and our parents) are now interactive setInteractive(true); return new Connection() { pub...
diff --git a/src/java/com/zhoujie/test/LzoPBMutiMapTest.java b/src/java/com/zhoujie/test/LzoPBMutiMapTest.java index 7f5f92c..3b76db6 100644 --- a/src/java/com/zhoujie/test/LzoPBMutiMapTest.java +++ b/src/java/com/zhoujie/test/LzoPBMutiMapTest.java @@ -1,111 +1,111 @@ package com.zhoujie.test; import java.io.IOExce...
false
true
public int run(String[] args) throws Exception { if (args.length != 2) { System.err .println(LzoPBMutiMapTest.class.getSimpleName() + "<in> <out>"); return 1; } Configuration conf = this.getConf(); Job job = new Job(conf); job.set...
public int run(String[] args) throws Exception { if (args.length != 2) { System.err .println(LzoPBMutiMapTest.class.getSimpleName() + "<in> <out>"); return 1; } Configuration conf = this.getConf(); Job job = new Job(conf); job.set...
diff --git a/target_explorer/plugins/org.eclipse.tcf.te.ui.views/src/org/eclipse/tcf/te/ui/views/listeners/WorkbenchPartListener.java b/target_explorer/plugins/org.eclipse.tcf.te.ui.views/src/org/eclipse/tcf/te/ui/views/listeners/WorkbenchPartListener.java index 1649f023e..f248a4e78 100644 --- a/target_explorer/plugins...
false
true
public void partActivated(IWorkbenchPartReference partRef) { if (IUIConstants.ID_EXPLORER.equals(partRef.getId())) { IWorkbenchPart part = partRef.getPart(false); if (part != null && part.getSite() != null) { IContextService service = (IContextService)part.getSite().getService(IContextService.class); i...
public void partActivated(IWorkbenchPartReference partRef) { if (IUIConstants.ID_EXPLORER.equals(partRef.getId()) || IUIConstants.ID_EDITOR.equals(partRef.getId())) { IWorkbenchPart part = partRef.getPart(false); if (part != null && part.getSite() != null) { IContextService service = (IContextService...
diff --git a/sirocco-rest-cimi-apis/src/main/java/org/ow2/sirocco/apis/rest/cimi/converter/ObjectCommonConverter.java b/sirocco-rest-cimi-apis/src/main/java/org/ow2/sirocco/apis/rest/cimi/converter/ObjectCommonConverter.java index db243bb..cde09d2 100644 --- a/sirocco-rest-cimi-apis/src/main/java/org/ow2/sirocco/apis/r...
true
true
protected void fill(final CimiContext context, final Resource dataService, final CimiObjectCommon dataCimi) { if (true == context.mustBeExpanded(dataCimi)) { this.fill(dataService, dataCimi); dataCimi.setResourceURI(dataCimi.getExchangeType().getResourceURI()); dataCimi.s...
protected void fill(final CimiContext context, final Resource dataService, final CimiObjectCommon dataCimi) { if (true == context.mustBeExpanded(dataCimi)) { this.fill(dataService, dataCimi); dataCimi.setResourceURI(dataCimi.getExchangeType().getResourceURI()); dataCimi.s...
diff --git a/tools/gem/org.eclipse.ptp.gem/src/org/eclipse/ptp/gem/popup/actions/VerificationPopUpAction.java b/tools/gem/org.eclipse.ptp.gem/src/org/eclipse/ptp/gem/popup/actions/VerificationPopUpAction.java index babbf81f5..e135f0104 100644 --- a/tools/gem/org.eclipse.ptp.gem/src/org/eclipse/ptp/gem/popup/actions/Ver...
false
true
public void run(IAction action) { if (this.selection == null) { return; } // Check that the selection is valid if (this.selection.toString().equals("<empty selection>")) { //$NON-NLS-1$ GemUtilities.showErrorDialog(Messages.VerificationPopUpAction_0); } else { final Object selectionElement = this....
public void run(IAction action) { if (this.selection == null) { return; } // Check that the selection is valid if (this.selection.toString().equals("<empty selection>")) { //$NON-NLS-1$ GemUtilities.showErrorDialog(Messages.VerificationPopUpAction_0); } else { final Object selectionElement = this....
diff --git a/src/uk/co/ipodling/skeuosc/MainActivity.java b/src/uk/co/ipodling/skeuosc/MainActivity.java index 983bfac..852a103 100644 --- a/src/uk/co/ipodling/skeuosc/MainActivity.java +++ b/src/uk/co/ipodling/skeuosc/MainActivity.java @@ -1,268 +1,277 @@ package uk.co.ipodling.skeuosc; import java.net.SocketExcep...
false
true
protected void onCreate(Bundle savedInstanceState) { requestWindowFeature(Window.FEATURE_NO_TITLE); //kinda not good way to do it if it takes a second to load but gets the job done final java.lang.Object[] args = {"hello"}; prefs = new SkeuOSCPrefs(getApplicationContext()); grid = new GridSystem(getApplication...
protected void onCreate(Bundle savedInstanceState) { requestWindowFeature(Window.FEATURE_NO_TITLE); //kinda not good way to do it if it takes a second to load but gets the job done final java.lang.Object[] args = {"hello"}; prefs = new SkeuOSCPrefs(getApplicationContext()); grid = new GridSystem(getApplication...
diff --git a/src/de/osmui/model/pipelinemodel/AbstractPipelineModel.java b/src/de/osmui/model/pipelinemodel/AbstractPipelineModel.java index 263a79e..d2cec88 100644 --- a/src/de/osmui/model/pipelinemodel/AbstractPipelineModel.java +++ b/src/de/osmui/model/pipelinemodel/AbstractPipelineModel.java @@ -1,218 +1,220 @@ /*...
false
true
public AbstractPipe connectTasks(AbstractTask parent, AbstractTask child) throws TasksNotCompatibleException, TasksNotInModelException { if (parent == null || child == null) { throw new TasksNotCompatibleException("parent or child is null"); } else if (parent.getModel() != this || child.getModel() != this) {...
public AbstractPipe connectTasks(AbstractTask parent, AbstractTask child) throws TasksNotCompatibleException, TasksNotInModelException { if (parent == null || child == null) { throw new TasksNotCompatibleException("parent or child is null"); } else if (parent.getModel() != this || child.getModel() != this) {...
diff --git a/aplikasi-absensi/src/main/java/com/artivisi/absensi/controller/KehadiranController.java b/aplikasi-absensi/src/main/java/com/artivisi/absensi/controller/KehadiranController.java index db0fd3b..aee3bf3 100644 --- a/aplikasi-absensi/src/main/java/com/artivisi/absensi/controller/KehadiranController.java +++ b...
true
true
public String prosesForm(@ModelAttribute @Valid Kehadiran x, BindingResult errors){ System.out.println("Memproses form kehadiran"); System.out.println("Peserta : "+x.getPeserta().getNomor()); System.out.println("Jam Masuk : "+x.getJamMasuk()); System.out.println("Jam Pulang : "+x.get...
public String prosesForm(@ModelAttribute @Valid Kehadiran x, BindingResult errors){ System.out.println("Memproses form kehadiran"); if(x.getPeserta() != null){ System.out.println("Peserta : "+x.getPeserta().getNomor()); } System.out.println("Jam Masuk : "+x.getJamMasuk())...
diff --git a/src/java/com/cloudera/flume/master/commands/CreateLogicalNodeForm.java b/src/java/com/cloudera/flume/master/commands/CreateLogicalNodeForm.java index 2ac2c7d3..7a049dff 100644 --- a/src/java/com/cloudera/flume/master/commands/CreateLogicalNodeForm.java +++ b/src/java/com/cloudera/flume/master/commands/Crea...
true
true
public static Execable buildExecable() { return new Execable() { @Override public void exec(String[] args) throws MasterExecException, IOException { Preconditions.checkArgument(args.length == 2); String physical = args[0]; String logical = args[1]; if (!FlumeMaster.get...
public static Execable buildExecable() { return new Execable() { @Override public void exec(String[] args) throws MasterExecException, IOException { Preconditions.checkArgument(args.length == 2); String physical = args[0]; String logical = args[1]; if (!FlumeMaster.get...
diff --git a/src/ca/mcgill/hs/serv/UploaderService.java b/src/ca/mcgill/hs/serv/UploaderService.java index 4beac39..a1e7629 100644 --- a/src/ca/mcgill/hs/serv/UploaderService.java +++ b/src/ca/mcgill/hs/serv/UploaderService.java @@ -1,276 +1,276 @@ package ca.mcgill.hs.serv; import java.io.File; import java.io.IOE...
true
true
public void onStart(final Intent intent, final int startId) { addFiles(); if (filesToUpload.size() == 0) { makeToast(getResources().getString(R.string.uploader_no_new_files), Toast.LENGTH_SHORT); return; } HSAndroid.uploading = true; HSAndroid.uploadButton.setEnabled(false); HSAndroid.uploadButt...
public void onStart(final Intent intent, final int startId) { addFiles(); if (filesToUpload.size() == 0) { makeToast(getResources().getString(R.string.uploader_no_new_files), Toast.LENGTH_SHORT); return; } HSAndroid.uploading = true; HSAndroid.uploadButton.setEnabled(false); HSAndroid.uploadButt...
diff --git a/ddms/libs/ddmuilib/src/com/android/ddmuilib/log/event/DisplaySyncPerf.java b/ddms/libs/ddmuilib/src/com/android/ddmuilib/log/event/DisplaySyncPerf.java index 9ce704550..b484f2666 100644 --- a/ddms/libs/ddmuilib/src/com/android/ddmuilib/log/event/DisplaySyncPerf.java +++ b/ddms/libs/ddmuilib/src/com/android...
true
true
void newEvent(EventContainer event, EventLogParser logParser) { super.newEvent(event, logParser); // Handle sync operation try { if (event.mTag == EVENT_DB_OPERATION) { // 52000 db_operation (name|3),(op_type|1|5),(time|2|3) String tip = event.getValueAsSt...
void newEvent(EventContainer event, EventLogParser logParser) { super.newEvent(event, logParser); // Handle sync operation try { if (event.mTag == EVENT_DB_OPERATION) { // 52000 db_operation (name|3),(op_type|1|5),(time|2|3) String tip = event.getValueAsSt...
diff --git a/xwiki-commons-core/xwiki-commons-extension/xwiki-platform-extension-repositories/xwiki-platform-extension-repository-aether/src/main/java/org/xwiki/extension/repository/aether/internal/AetherExtensionRepository.java b/xwiki-commons-core/xwiki-commons-extension/xwiki-platform-extension-repositories/xwiki-pl...
true
true
public AetherExtension resolveMaven(ExtensionDependency extensionDependency) throws ResolveException { Artifact artifact; if (extensionDependency instanceof AetherExtensionDependency) { artifact = ((AetherExtensionDependency) extensionDependency).getAetherDependency().getArtifact(); ...
public AetherExtension resolveMaven(ExtensionDependency extensionDependency) throws ResolveException { Artifact artifact; if (extensionDependency instanceof AetherExtensionDependency) { artifact = ((AetherExtensionDependency) extensionDependency).getAetherDependency().getArtifact(); ...
diff --git a/src/test/java/Main2.java b/src/test/java/Main2.java index ef9f696..a6933eb 100755 --- a/src/test/java/Main2.java +++ b/src/test/java/Main2.java @@ -1,31 +1,33 @@ /** * Copyright (C) 2008 Ovea <dev@testatoo.org> * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use t...
true
true
public static void main(String... args) throws Exception { Selenium s = new DefaultSelenium("localhost", 4444, "*firefox", "http://www.amazon.ca/"); s.start(); s.open("/"); Thread.sleep(5000); s.close(); }
public static void main(String... args) throws Exception { Selenium s = new DefaultSelenium("localhost", 4444, "*firefox", "http://www.amazon.ca/"); s.start(); s.open("/"); for (String s1 : s.getAllButtons()) { System.out.println(s1); } Thread.sleep(10000)...
diff --git a/src/main/java/ru/shutoff/caralarm/MapView.java b/src/main/java/ru/shutoff/caralarm/MapView.java index 96e9382..7c9fd3e 100644 --- a/src/main/java/ru/shutoff/caralarm/MapView.java +++ b/src/main/java/ru/shutoff/caralarm/MapView.java @@ -1,235 +1,235 @@ package ru.shutoff.caralarm; import android.app.Ala...
true
true
public String getData() { Cars.Car[] cars = Cars.getCars(getBaseContext()); String[] car_data = new String[cars.length]; for (int i = 0; i < cars.length; i++) { String id = cars[i].id; String data = id + ";" + preferenc...
public String getData() { Cars.Car[] cars = Cars.getCars(getBaseContext()); String[] car_data = new String[cars.length]; for (int i = 0; i < cars.length; i++) { String id = cars[i].id; String data = id + ";" + preferenc...
diff --git a/examples/src/net/sourceforge/stripes/examples/bugzooky/web/RegisterActionBean.java b/examples/src/net/sourceforge/stripes/examples/bugzooky/web/RegisterActionBean.java index 47f37ec1..59af9fea 100644 --- a/examples/src/net/sourceforge/stripes/examples/bugzooky/web/RegisterActionBean.java +++ b/examples/src...
true
true
public void validate(ValidationErrors errors) { if ( new PersonManager().getPerson(this.user.getUsername()) != null ) { errors.add("user.username", new LocalizableError("/bugzooky/Register.action.usernameTaken", this.user.getUser...
public void validate(ValidationErrors errors) { if ( new PersonManager().getPerson(this.user.getUsername()) != null ) { errors.add("user.username", new LocalizableError("/bugzooky/Register.action.usernameTaken")); } // We have to check the password for nul...
diff --git a/src/main/java/de/lessvoid/nifty/elements/tools/TextBreak.java b/src/main/java/de/lessvoid/nifty/elements/tools/TextBreak.java index d0a9c173..d376eea5 100644 --- a/src/main/java/de/lessvoid/nifty/elements/tools/TextBreak.java +++ b/src/main/java/de/lessvoid/nifty/elements/tools/TextBreak.java @@ -1,93 +1,9...
true
true
private List < String > processWords() { List < String > result = new ArrayList < String > (); int i = 0, length; String currentWord = ""; StringBuffer currentLine = new StringBuffer(); while (isValidIndex(i)) { //Empty StringBuffer currentLine.setLength(0); length = 0; whil...
private List < String > processWords() { List < String > result = new ArrayList < String > (); int i = 0, length; String currentWord = ""; StringBuffer currentLine = new StringBuffer(); while (isValidIndex(i)) { //Empty StringBuffer currentLine.setLength(0); length = 0; whil...
diff --git a/sonar-php-plugin/src/main/java/org/sonar/plugins/php/phpdepend/PhpDependSummaryReportParser.java b/sonar-php-plugin/src/main/java/org/sonar/plugins/php/phpdepend/PhpDependSummaryReportParser.java index d97bd229..306a9ae7 100644 --- a/sonar-php-plugin/src/main/java/org/sonar/plugins/php/phpdepend/PhpDependS...
false
true
public void parse(java.io.File reportXml) { if (!reportXml.exists()) { throw new SonarException("PDepdend result file not found: " + reportXml.getAbsolutePath() + "."); } MetricsNode metricsNode = getMetrics(reportXml); metricsNode.findMatchingMetrics(); for (FileNode fileNode : metricsNod...
public void parse(java.io.File reportXml) { if (!reportXml.exists()) { throw new SonarException("PDepdend result file not found: " + reportXml.getAbsolutePath() + "."); } MetricsNode metricsNode = getMetrics(reportXml); metricsNode.findMatchingMetrics(); for (FileNode fileNode : metricsNod...
diff --git a/com.piece_framework.makegood.ui/src/com/piece_framework/makegood/ui/views/TestResultViewSetter.java b/com.piece_framework.makegood.ui/src/com/piece_framework/makegood/ui/views/TestResultViewSetter.java index 95a407dd..40040259 100644 --- a/com.piece_framework.makegood.ui/src/com/piece_framework/makegood/ui...
false
true
public void terminate(ILaunch launch) { for (IProcess process: launch.getProcesses()) { try { if (process.getExitValue() != 0) { return; } } catch (DebugException e) { } } String log = null; try ...
public void terminate(ILaunch launch) { for (IProcess process: launch.getProcesses()) { try { if (process.getExitValue() != 0) { showDebugOutput(); return; } } catch (DebugException e) { } } ...
diff --git a/src/edu/cornell/mannlib/vitro/webapp/edit/n3editing/configuration/generators/AddRoleToPersonTwoStageGenerator.java b/src/edu/cornell/mannlib/vitro/webapp/edit/n3editing/configuration/generators/AddRoleToPersonTwoStageGenerator.java index c0b29da..770e539 100644 --- a/src/edu/cornell/mannlib/vitro/webapp/ed...
true
true
public EditConfigurationVTwo getEditConfiguration(VitroRequest vreq, HttpSession session) { EditConfigurationVTwo editConfiguration = new EditConfigurationVTwo(); initProcessParameters(vreq, session, editConfiguration); editConfiguration.setVarNameForSubject("person"); ...
public EditConfigurationVTwo getEditConfiguration(VitroRequest vreq, HttpSession session) { EditConfigurationVTwo editConfiguration = new EditConfigurationVTwo(); initProcessParameters(vreq, session, editConfiguration); editConfiguration.setVarNameForSubject("person"); ...
diff --git a/java/src/JythonFactory.java b/java/src/JythonFactory.java index 9f442fc..89e973d 100644 --- a/java/src/JythonFactory.java +++ b/java/src/JythonFactory.java @@ -1,47 +1,47 @@ import java.io.File; import org.python.util.PythonInterpreter; public class JythonFactory { private static JythonFactory...
false
true
public static Object getJythonObject(String interfaceName, String pathToJythonModule) { Object jyObject = null; PythonInterpreter interpreter = new PythonInterpreter(); interpreter.execfile(pathToJythonModule); String tempName = pathToJythonModule.substring(pathToJythonModule.l...
public static Object getJythonObject(String interfaceName, String pathToJythonModule) { Object jyObject = null; PythonInterpreter interpreter = new PythonInterpreter(); interpreter.execfile(pathToJythonModule); String tempName = pathToJythonModule.substring(pathToJythonModule.l...
diff --git a/solr/core/src/test/org/apache/solr/handler/TestReplicationHandler.java b/solr/core/src/test/org/apache/solr/handler/TestReplicationHandler.java index afc5f2649..1cdb72a97 100644 --- a/solr/core/src/test/org/apache/solr/handler/TestReplicationHandler.java +++ b/solr/core/src/test/org/apache/solr/handler/Tes...
true
true
private void doTestBackup() throws Exception { String configFile = "solrconfig-master1.xml"; boolean addNumberToKeepInRequest = true; String backupKeepParamName = ReplicationHandler.NUMBER_BACKUPS_TO_KEEP_REQUEST_PARAM; if(random().nextBoolean()) { configFile = "solrconfig-master1-keepOneBackup....
private void doTestBackup() throws Exception { String configFile = "solrconfig-master1.xml"; boolean addNumberToKeepInRequest = true; String backupKeepParamName = ReplicationHandler.NUMBER_BACKUPS_TO_KEEP_REQUEST_PARAM; if(random().nextBoolean()) { configFile = "solrconfig-master1-keepOneBackup....
diff --git a/module-api/src/test/java/org/xbrlapi/data/dom/tests/StoreImplXBRLTestCase.java b/module-api/src/test/java/org/xbrlapi/data/dom/tests/StoreImplXBRLTestCase.java index 701513f0..1c9205c0 100644 --- a/module-api/src/test/java/org/xbrlapi/data/dom/tests/StoreImplXBRLTestCase.java +++ b/module-api/src/test/java...
true
true
public void testFilteredQuerying() throws Exception { URI uri1 = this.getURI(this.STARTING_POINT_INSTANCE_1); loader.discover(uri1); URI uri2 = this.getURI(this.STARTING_POINT_INSTANCE_2); loader.discover(uri2); logger.info("Done with loading the data."); ...
public void testFilteredQuerying() throws Exception { URI uri1 = this.getURI(this.STARTING_POINT_INSTANCE_1); loader.discover(uri1); URI uri2 = this.getURI(this.STARTING_POINT_INSTANCE_2); loader.discover(uri2); logger.info("Done with loading the data."); ...
diff --git a/source/com/mucommander/ui/main/DrivePopupButton.java b/source/com/mucommander/ui/main/DrivePopupButton.java index 7f6c1d21..5d7570c7 100644 --- a/source/com/mucommander/ui/main/DrivePopupButton.java +++ b/source/com/mucommander/ui/main/DrivePopupButton.java @@ -1,555 +1,555 @@ /* * This file is part of ...
true
true
public JPopupMenu getPopupMenu() { JPopupMenu popupMenu = new JPopupMenu(); // Update the list of volumes in case new ones were mounted volumes = getDisplayableVolumes(); // Add volumes int nbVolumes = volumes.length; final MainFrame mainFrame = folderPanel.getMainF...
public JPopupMenu getPopupMenu() { JPopupMenu popupMenu = new JPopupMenu(); // Update the list of volumes in case new ones were mounted volumes = getDisplayableVolumes(); // Add volumes int nbVolumes = volumes.length; final MainFrame mainFrame = folderPanel.getMainF...
diff --git a/query-transform-control-spi/src/main/java/no/schibstedsok/searchportal/query/transform/AgefilterQueryTransformer.java b/query-transform-control-spi/src/main/java/no/schibstedsok/searchportal/query/transform/AgefilterQueryTransformer.java index 5d791ae55..0abbe0505 100644 --- a/query-transform-control-spi/s...
true
true
public String getFilter(final Map parameters) { String ageSymbol = config.getAgeSymbol(); if (config.getAgeSymbol() == null) { ageSymbol = parameters.get(AGE_PARAMETER) instanceof String[] ? ((String[]) parameters.get(AGE_PARAMETER))[0] : (String)...
public String getFilter(final Map parameters) { String ageSymbol = config.getAgeSymbol(); if (config.getAgeSymbol() == null) { ageSymbol = parameters.get(AGE_PARAMETER) instanceof String[] ? ((String[]) parameters.get(AGE_PARAMETER))[0] : (String)...
diff --git a/src/ch/jbead/action/ToolFillAction.java b/src/ch/jbead/action/ToolFillAction.java index 2cce16f..d8262a5 100644 --- a/src/ch/jbead/action/ToolFillAction.java +++ b/src/ch/jbead/action/ToolFillAction.java @@ -1,48 +1,48 @@ /** jbead - http://www.jbead.ch Copyright (C) 2001-2012 Damian Brunold ...
true
true
public ToolFillAction(JBeadFrame frame) { super(NAME, ImageFactory.getIcon(NAME), frame); putValue(SHORT_DESCRIPTION, localization.getString("action.tool.fill.description")); putValue(MNEMONIC_KEY, KeyEvent.VK_F); putValue(ACCELERATOR_KEY, KeyStroke.getKeyStroke("control 2")); }
public ToolFillAction(JBeadFrame frame) { super(NAME, ImageFactory.getIcon(NAME), frame); putValue(SHORT_DESCRIPTION, localization.getString("action.tool.fill.description")); putValue(MNEMONIC_KEY, KeyEvent.VK_F); putValue(ACCELERATOR_KEY, KeyStroke.getKeyStroke("control 3")); }
diff --git a/java/com/objogate/wl/probe/SingleComponentFinder.java b/java/com/objogate/wl/probe/SingleComponentFinder.java index 97bd2ed..aee1be1 100644 --- a/java/com/objogate/wl/probe/SingleComponentFinder.java +++ b/java/com/objogate/wl/probe/SingleComponentFinder.java @@ -1,46 +1,50 @@ package com.objogate.wl.prob...
false
true
public void describeTo(Description description) { description.appendText("exactly 1 ") .appendDescriptionOf(finder); if (finder.isSatisfied() && !isSingle()) { description.appendText("\nbut found " + components().size()); } }
public void describeTo(Description description) { description.appendText("exactly 1 ") .appendDescriptionOf(finder); if (finder.isSatisfied()) { if (isSingle()) { description.appendText("\nFound ").appendDescriptionOf(finder); } else { ...
diff --git a/dtgov-war/src/main/java/org/overlord/sramp/governance/workflow/jbpm/EmbeddedJbpmManager.java b/dtgov-war/src/main/java/org/overlord/sramp/governance/workflow/jbpm/EmbeddedJbpmManager.java index 2d8ce2c..5b2e17d 100644 --- a/dtgov-war/src/main/java/org/overlord/sramp/governance/workflow/jbpm/EmbeddedJbpmMan...
false
true
public long newProcessInstance(String deploymentId, String processId, Map<String, Object> context) throws WorkflowException { HttpURLConnection connection = null; Governance governance = new Governance(); final String username = governance.getOverlordUser(); final String password = gover...
public long newProcessInstance(String deploymentId, String processId, Map<String, Object> context) throws WorkflowException { HttpURLConnection connection = null; Governance governance = new Governance(); final String username = governance.getOverlordUser(); final String password = gover...
diff --git a/src/main/java/org/jcompas/model/RelojRunner.java b/src/main/java/org/jcompas/model/RelojRunner.java index 147f1ad..c36f01c 100644 --- a/src/main/java/org/jcompas/model/RelojRunner.java +++ b/src/main/java/org/jcompas/model/RelojRunner.java @@ -1,93 +1,93 @@ /* *********************************************...
false
true
public void run() { if (period < 1) throw new IllegalStateException( "invalid period: "+period+" ms." ); double positionInCompas = 0; final long timeStep = 1000 / defaultFps; final double compasStep = 1d / (defaultFps * (period / 1000d)); long nextTime = startTime + timeStep; while (true) { whi...
public void run() { if (period < 1) throw new IllegalStateException( "invalid period: "+period+" ms." ); double positionInCompas = 0; final long timeStep = 1000 / defaultFps; final double compasStep = 1d / (defaultFps * (period / 1000d)); long nextTime = startTime + timeStep; while (true) { whi...
diff --git a/edu/mit/wi/haploview/IndividualDialog.java b/edu/mit/wi/haploview/IndividualDialog.java index 59c2c3c..c6d8665 100644 --- a/edu/mit/wi/haploview/IndividualDialog.java +++ b/edu/mit/wi/haploview/IndividualDialog.java @@ -1,225 +1,226 @@ package edu.mit.wi.haploview; import edu.mit.wi.pedfile.Individual;...
true
true
public IndividualDialog (HaploView h, String title) { super(h,title); JPanel contents = new JPanel(); JTable table; contents.setLayout(new BoxLayout(contents,BoxLayout.Y_AXIS)); Vector people = h.theData.getPedFile().getAllIndividuals(); Vector excludedPeople = h.t...
public IndividualDialog (HaploView h, String title) { super(h,title); JPanel contents = new JPanel(); JTable table; contents.setLayout(new BoxLayout(contents,BoxLayout.Y_AXIS)); Vector people = h.theData.getPedFile().getAllIndividuals(); Vector excludedPeople = h.t...
diff --git a/scm-plugins/scm-svn-plugin/src/main/java/sonia/scm/repository/spi/SvnLogCommand.java b/scm-plugins/scm-svn-plugin/src/main/java/sonia/scm/repository/spi/SvnLogCommand.java index 838d0c90b..c26ef9eaf 100644 --- a/scm-plugins/scm-svn-plugin/src/main/java/sonia/scm/repository/spi/SvnLogCommand.java +++ b/scm-...
true
true
public ChangesetPagingResult getChangesets(LogCommandRequest request) throws IOException, RepositoryException { if (logger.isDebugEnabled()) { logger.debug("fetch changesets for {}", request); } ChangesetPagingResult changesets = null; SVNRepository repository = null; String...
public ChangesetPagingResult getChangesets(LogCommandRequest request) throws IOException, RepositoryException { if (logger.isDebugEnabled()) { logger.debug("fetch changesets for {}", request); } ChangesetPagingResult changesets = null; SVNRepository repository = null; String...
diff --git a/impl-base/src/test/java/org/jboss/shrinkwrap/impl/base/exporter/ZipExporterTestCase.java b/impl-base/src/test/java/org/jboss/shrinkwrap/impl/base/exporter/ZipExporterTestCase.java index 858cbebd..a1a9d66a 100644 --- a/impl-base/src/test/java/org/jboss/shrinkwrap/impl/base/exporter/ZipExporterTestCase.java ...
false
true
public void exportShouldFailIfTargetExist() throws IOException { File target = new File(createTempDirectory("exportShouldFailIfTargetExist.jar").getAbsolutePath()); if (target.exists()) { Assert.assertTrue(target.delete()); } Assert.assertFalse(target.exists()); c...
public void exportShouldFailIfTargetExist() throws IOException { File target = new File(createTempDirectory("exportShouldFailIfTargetExist").getAbsolutePath() + "exportShouldFailIfTargetExist.jar"); if (target.exists()) { Assert.assertTrue(target.delete()); } ...
diff --git a/modules/cpr/src/main/java/org/atmosphere/client/TrackMessageSizeFilter.java b/modules/cpr/src/main/java/org/atmosphere/client/TrackMessageSizeFilter.java index 51d741647..fe296fa1b 100644 --- a/modules/cpr/src/main/java/org/atmosphere/client/TrackMessageSizeFilter.java +++ b/modules/cpr/src/main/java/org/a...
true
true
public BroadcastAction filter(HttpServletRequest request, HttpServletResponse response, Object message) { if (request.getHeader("X-Atmosphere-TrackMessageSize").equalsIgnoreCase("true") && String.class.isAssignableFrom(message.getClass())) { String msg = message.toString(); msg = "!...
public BroadcastAction filter(HttpServletRequest request, HttpServletResponse response, Object message) { if (request.getHeader("X-Atmosphere-TrackMessageSize").equalsIgnoreCase("true") && String.class.isAssignableFrom(message.getClass())) { String msg = message.toString(); msg = ms...
diff --git a/user/test/com/google/gwt/jsonp/client/JsonpRequestTest.java b/user/test/com/google/gwt/jsonp/client/JsonpRequestTest.java index a9bf26c4c..c3aefba95 100644 --- a/user/test/com/google/gwt/jsonp/client/JsonpRequestTest.java +++ b/user/test/com/google/gwt/jsonp/client/JsonpRequestTest.java @@ -1,321 +1,321 @@...
true
true
public void testCancel() { delayTestFinish(2000); // setup a server request that will delay for 500ms JsonpRequest<String> req = jsonp.requestString(echoDelayed("A", 500), new AssertFailureCallback<String>("A")); // cancel it before it comes back req.cancel(); // wait 1s to make sure w...
public void testCancel() { delayTestFinish(2000); // setup a server request that will delay for 500ms JsonpRequest<String> req = jsonp.requestString(echoDelayed("'A'", 500), new AssertFailureCallback<String>("A")); // cancel it before it comes back req.cancel(); // wait 1s to make sure...
diff --git a/student/grid/Critter.java b/student/grid/Critter.java index cd377ff..18d80d3 100644 --- a/student/grid/Critter.java +++ b/student/grid/Critter.java @@ -1,402 +1,402 @@ /* * To change this template, choose Tools | Templates * and open the template in the editor. */ package student.grid; import st...
true
true
public void forward() { mem[4] -= mem[3] * MOVE_COST; Reference<Tile> newPos = pos.adj(dir); if(!(newPos==null||newPos.contents().rock())){ /*if(newPos.contents().rock()) System.out.println("Won't do that; it's a rock"); else {*/ pos.contents().removeC...
public void forward() { mem[4] -= mem[3] * MOVE_COST; Reference<Tile> newPos = pos.adj(dir); if(!(newPos==null||newPos.contents().rock())){ /*if(newPos.contents().rock()) System.out.println("Won't do that; it's a rock"); else {*/ pos.contents().removeC...
diff --git a/src/org/cloudcoder/daemon/DaemonLauncher.java b/src/org/cloudcoder/daemon/DaemonLauncher.java index e9c6708..684f586 100644 --- a/src/org/cloudcoder/daemon/DaemonLauncher.java +++ b/src/org/cloudcoder/daemon/DaemonLauncher.java @@ -1,206 +1,209 @@ // Copyright (c) 2012, David H. Hovemeyer <david.hovemeyer...
true
true
public void launch(String instanceName, Class<?> daemonClass) throws DaemonException { // Check to see if the instance is already running Integer pid; pid = Util.readPid(instanceName); if (pid != null) { // Is the instance still running? if (Util.isRunning(pid)) { throw new DaemonException("Process "...
public void launch(String instanceName, Class<?> daemonClass) throws DaemonException { // Check to see if the instance is already running Integer pid; pid = Util.readPid(instanceName); if (pid != null) { // Is the instance still running? if (Util.isRunning(pid)) { throw new DaemonException("Process "...
diff --git a/src/java/org/codehaus/groovy/grails/context/annotation/ClosureClassIgnoringComponentScanBeanDefinitionParser.java b/src/java/org/codehaus/groovy/grails/context/annotation/ClosureClassIgnoringComponentScanBeanDefinitionParser.java index 68969995d..2655d63a1 100644 --- a/src/java/org/codehaus/groovy/grails/c...
false
true
protected ClassPathBeanDefinitionScanner configureScanner(ParserContext parserContext, Element element) { final ClassPathBeanDefinitionScanner scanner = super.configureScanner(parserContext, element); final PathMatchingResourcePatternResolver resourceResolver = new PathMatchingResourcePatternResolve...
protected ClassPathBeanDefinitionScanner configureScanner(ParserContext parserContext, Element element) { final ClassPathBeanDefinitionScanner scanner = super.configureScanner(parserContext, element); final PathMatchingResourcePatternResolver resourceResolver = new PathMatchingResourcePatternResolve...
diff --git a/src/com/cyanogenmod/lockclock/misc/Preferences.java b/src/com/cyanogenmod/lockclock/misc/Preferences.java index e665f9c..495e672 100644 --- a/src/com/cyanogenmod/lockclock/misc/Preferences.java +++ b/src/com/cyanogenmod/lockclock/misc/Preferences.java @@ -1,165 +1,165 @@ /* * Copyright (C) 2012 The Cyan...
true
true
public static long lookAheadTimeInMs(Context context) { long lookAheadTime; String preferenceSetting = getPrefs(context).getString(Constants.CALENDAR_LOOKAHEAD, "1209600000"); if (preferenceSetting.equals("today")) { long now = System.currentTimeMillis(); Calendar c...
public static long lookAheadTimeInMs(Context context) { long lookAheadTime; String preferenceSetting = getPrefs(context).getString(Constants.CALENDAR_LOOKAHEAD, "1209600000"); if (preferenceSetting.equals("today")) { long now = System.currentTimeMillis(); Calendar c...
diff --git a/desktop/src/main/java/com/soupcan/the_love_of_rice/java/TheLoveOfRiceDesktop.java b/desktop/src/main/java/com/soupcan/the_love_of_rice/java/TheLoveOfRiceDesktop.java index a43f447..e3a9783 100644 --- a/desktop/src/main/java/com/soupcan/the_love_of_rice/java/TheLoveOfRiceDesktop.java +++ b/desktop/src/main/...
false
true
public static void main(String[] args) { LwjglApplicationConfiguration config = new LwjglApplicationConfiguration(); config.useGL20 = true; config.width = 1280 - 96; config.height = 768; config.title = "The Love of Rice"; new LwjglApplication(TheLoveOfRice.instance, config); }
public static void main(String[] args) { LwjglApplicationConfiguration config = new LwjglApplicationConfiguration(); config.useGL20 = true; config.width = 1280 - 96; config.height = 768; config.title = "The Love of Rice"; new LwjglApplication(TheLoveOfRice.instanc...
diff --git a/src/main/java/lcmc/gui/resources/VMSVirtualDomainInfo.java b/src/main/java/lcmc/gui/resources/VMSVirtualDomainInfo.java index 216331d3..967aa8ce 100644 --- a/src/main/java/lcmc/gui/resources/VMSVirtualDomainInfo.java +++ b/src/main/java/lcmc/gui/resources/VMSVirtualDomainInfo.java @@ -1,5326 +1,5327 @@ /*...
true
true
public void updateParameters() { final DefaultMutableTreeNode thisNode = getNode(); if (thisNode == null) { return; } final List<String> runningOnHosts = new ArrayList<String>(); final List<String> suspendedOnHosts = new ArrayList<String>(); final List<Str...
public void updateParameters() { final DefaultMutableTreeNode thisNode = getNode(); if (thisNode == null) { return; } final List<String> runningOnHosts = new ArrayList<String>(); final List<String> suspendedOnHosts = new ArrayList<String>(); final List<Str...