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/ufd/FactorAbsolute.java b/src/edu/jas/ufd/FactorAbsolute.java index ca46223e..2f884bab 100644 --- a/src/edu/jas/ufd/FactorAbsolute.java +++ b/src/edu/jas/ufd/FactorAbsolute.java @@ -1,482 +1,482 @@ /* * $Id$ */ package edu.jas.ufd; import java.util.ArrayList; import java.util.List...
false
true
public List<GenPolynomial<AlgebraicNumber<C>>> factorsAbsoluteIrreducible(GenPolynomial<C> P) { if (P == null) { throw new RuntimeException(this.getClass().getName() + " P == null"); } List<GenPolynomial<AlgebraicNumber<C>>> factors = new ArrayList<GenPolynomial<AlgebraicNumber<C...
public List<GenPolynomial<AlgebraicNumber<C>>> factorsAbsoluteIrreducible(GenPolynomial<C> P) { if (P == null) { throw new RuntimeException(this.getClass().getName() + " P == null"); } List<GenPolynomial<AlgebraicNumber<C>>> factors = new ArrayList<GenPolynomial<AlgebraicNumber<C...
diff --git a/core/src/visad/trunk/Contour2D.java b/core/src/visad/trunk/Contour2D.java index 9df1d6fe9..8fd1ef248 100644 --- a/core/src/visad/trunk/Contour2D.java +++ b/core/src/visad/trunk/Contour2D.java @@ -1,808 +1,808 @@ // // Contour2D.java // /* VisAD system for interactive analysis and visualization of ...
true
true
public static void contour( float g[], int nr, int nc, float interval, float lowlimit, float highlimit, float base, float vx1[], float vy1[], int maxv1, int[] numv1, float vx2[], float vy2[], int maxv2, int[] numv2, float vx3[],...
public static void contour( float g[], int nr, int nc, float interval, float lowlimit, float highlimit, float base, float vx1[], float vy1[], int maxv1, int[] numv1, float vx2[], float vy2[], int maxv2, int[] numv2, float vx3[],...
diff --git a/exo.jcr.component.core/src/main/java/org/exoplatform/services/jcr/impl/clean/rdbms/DBCleanService.java b/exo.jcr.component.core/src/main/java/org/exoplatform/services/jcr/impl/clean/rdbms/DBCleanService.java index f1c66e4d1..2c8a246c2 100644 --- a/exo.jcr.component.core/src/main/java/org/exoplatform/servic...
true
true
public static DBClean getDBCleaner(Connection jdbcConn, WorkspaceEntry wsEntry) throws SQLException, RepositoryConfigurationException { boolean multiDb = Boolean.parseBoolean(wsEntry.getContainer().getParameterValue(JDBCWorkspaceDataContainer.MULTIDB)); String containerName = wsEntry.g...
public static DBClean getDBCleaner(Connection jdbcConn, WorkspaceEntry wsEntry) throws SQLException, RepositoryConfigurationException { boolean multiDb = Boolean.parseBoolean(wsEntry.getContainer().getParameterValue(JDBCWorkspaceDataContainer.MULTIDB)); String containerName = wsEntry.g...
diff --git a/org.aspectj.ajdt.core/testsrc/org/aspectj/tools/ajc/AjcTestCase.java b/org.aspectj.ajdt.core/testsrc/org/aspectj/tools/ajc/AjcTestCase.java index 17d2e7fae..e034255ce 100644 --- a/org.aspectj.ajdt.core/testsrc/org/aspectj/tools/ajc/AjcTestCase.java +++ b/org.aspectj.ajdt.core/testsrc/org/aspectj/tools/ajc/...
false
true
public RunResult run(String className, String[] args, final String classpath, boolean useLTW) { lastRunResult = null; StringBuffer cp = new StringBuffer(); if (classpath != null) { // allow replacing this special variable, rather than copying all files to allow tests of jars that don't end in .jar cp.appe...
public RunResult run(String className, String[] args, final String classpath, boolean useLTW) { lastRunResult = null; StringBuffer cp = new StringBuffer(); if (classpath != null) { // allow replacing this special variable, rather than copying all files to allow tests of jars that don't end in .jar cp.appe...
diff --git a/plugins/eu.udig.tools.jgrass/src/eu/udig/tools/jgrass/kml/wizard/KmlExportWizardPage.java b/plugins/eu.udig.tools.jgrass/src/eu/udig/tools/jgrass/kml/wizard/KmlExportWizardPage.java index 15da5a4cc..72237a1d4 100644 --- a/plugins/eu.udig.tools.jgrass/src/eu/udig/tools/jgrass/kml/wizard/KmlExportWizardPage....
true
true
public void createControl( Composite parent ) { Composite mainComposite = new Composite(parent, SWT.NONE); GridLayout gridLayout = new GridLayout(3, false); gridLayout.verticalSpacing = 10; mainComposite.setLayout(gridLayout); ILayer selectedLayer = ApplicationGIS.getActive...
public void createControl( Composite parent ) { Composite mainComposite = new Composite(parent, SWT.NONE); GridLayout gridLayout = new GridLayout(3, false); gridLayout.verticalSpacing = 10; mainComposite.setLayout(gridLayout); ILayer selectedLayer = ApplicationGIS.getActive...
diff --git a/src/edu/osu/cse/meisam/interpreter/Interpreter.java b/src/edu/osu/cse/meisam/interpreter/Interpreter.java index 61e17d7..c523365 100644 --- a/src/edu/osu/cse/meisam/interpreter/Interpreter.java +++ b/src/edu/osu/cse/meisam/interpreter/Interpreter.java @@ -1,57 +1,57 @@ /** * Lisp Subinterpreter, an inte...
true
true
public static void main(final String[] args) { try { final Interpreter interpreter = new Interpreter(System.in, System.out); interpreter.interpret(); } catch (final Exception ex) { System.err.println("Error: " + ex.getMessage()); } ...
public static void main(final String[] args) { try { final Interpreter interpreter = new Interpreter(System.in, System.out); interpreter.interpret(); } catch (final Exception ex) { System.out.println("Error: " + ex.getMessage()); } ...
diff --git a/announcement-impl/impl/src/java/org/sakaiproject/announcement/impl/BaseAnnouncementService.java b/announcement-impl/impl/src/java/org/sakaiproject/announcement/impl/BaseAnnouncementService.java index 7170c61..df88d97 100644 --- a/announcement-impl/impl/src/java/org/sakaiproject/announcement/impl/BaseAnnoun...
true
true
public void transferCopyEntities(String fromContext, String toContext, List resourceIds) { // get the channel associated with this site String oChannelRef = channelReference(fromContext, SiteService.MAIN_CONTAINER); AnnouncementChannel oChannel = null; try { oChannel = (AnnouncementChannel) getChannel(oC...
public void transferCopyEntities(String fromContext, String toContext, List resourceIds) { // get the channel associated with this site String oChannelRef = channelReference(fromContext, SiteService.MAIN_CONTAINER); AnnouncementChannel oChannel = null; try { oChannel = (AnnouncementChannel) getChannel(oC...
diff --git a/src/org/apache/xerces/jaxp/validation/XMLSchemaFactory.java b/src/org/apache/xerces/jaxp/validation/XMLSchemaFactory.java index 51c42793..2c941d49 100644 --- a/src/org/apache/xerces/jaxp/validation/XMLSchemaFactory.java +++ b/src/org/apache/xerces/jaxp/validation/XMLSchemaFactory.java @@ -1,480 +1,482 @@ ...
true
true
public Schema newSchema( Source[] schemas ) throws SAXException { // this will let the loader store parsed Grammars into the pool. XMLGrammarPoolImplExtension pool = new XMLGrammarPoolImplExtension(); fXMLGrammarPoolWrapper.setGrammarPool(pool); XMLInputSource[] xml...
public Schema newSchema( Source[] schemas ) throws SAXException { // this will let the loader store parsed Grammars into the pool. XMLGrammarPoolImplExtension pool = new XMLGrammarPoolImplExtension(); fXMLGrammarPoolWrapper.setGrammarPool(pool); XMLInputSource[] xml...
diff --git a/src/java/com/idega/block/login/presentation/Login.java b/src/java/com/idega/block/login/presentation/Login.java index 36cc6d4..51ae05b 100644 --- a/src/java/com/idega/block/login/presentation/Login.java +++ b/src/java/com/idega/block/login/presentation/Login.java @@ -1,1187 +1,1186 @@ //idega 2000 Grimur ...
false
true
private void isLoggedOn(IWContext iwc) throws Exception { if (this.loggedOffPageId != -1){ myForm.setPageToSubmitTo(loggedOffPageId); } User user = (User)getUser(iwc); if (sendUserToHomePage && LoginBusinessBean.isLogOnAction(iwc)) { com.idega.user.data.User newUser = Converter.convertToNewUser(user...
private void isLoggedOn(IWContext iwc) throws Exception { if (this.loggedOffPageId != -1){ myForm.setPageToSubmitTo(loggedOffPageId); } User user = (User)getUser(iwc); if (sendUserToHomePage && LoginBusinessBean.isLogOnAction(iwc)) { com.idega.user.data.User newUser = Converter.convertToNewUser(user...
diff --git a/birdeye/src/com/reed/birdseye/Assets.java b/birdeye/src/com/reed/birdseye/Assets.java index 053435f..72ef1dd 100644 --- a/birdeye/src/com/reed/birdseye/Assets.java +++ b/birdeye/src/com/reed/birdseye/Assets.java @@ -1,70 +1,70 @@ package com.reed.birdseye; import com.badlogic.gdx.Gdx; import com.badlo...
true
true
public static void load(){ level = new Texture(Gdx.files.internal("map1test.png")); itemSelector = new Texture(Gdx.files.internal("itemselector.png")); crop = new Texture(Gdx.files.internal("crop.png")); // floor = new Texture(Gdx.files.internal("floor.png")); lake = new Texture(Gdx.files.internal("lake.png"...
public static void load(){ level = new Texture(Gdx.files.internal("map1test.png")); itemSelector = new Texture(Gdx.files.internal("itemselector.png")); crop = new Texture(Gdx.files.internal("crop.png")); // floor = new Texture(Gdx.files.internal("floor.png")); lake = new Texture(Gdx.files.internal("lake.png"...
diff --git a/app/controllers/Auth.java b/app/controllers/Auth.java index 4dfd0ca..98f4e1b 100755 --- a/app/controllers/Auth.java +++ b/app/controllers/Auth.java @@ -1,74 +1,74 @@ package controllers; import java.io.UnsupportedEncodingException; import java.net.URLEncoder; import models.User; import play.Play; ...
true
true
public static void login() { flash.keep("return.to"); if(OpenID.isAuthenticationResponse()) { // Retrieve the verified id UserInfo userinfo = OpenID.getVerifiedID(); if(userinfo == null) { flash.error("不妙,登陆错误。"); login(); } else { Str...
public static void login() { flash.keep("return.to"); if(OpenID.isAuthenticationResponse()) { // Retrieve the verified id UserInfo userinfo = OpenID.getVerifiedID(); if(userinfo == null) { flash.error("不妙,登陆错误。"); login(); } else { Str...
diff --git a/syncronizer/src/org/sync/githelper/GitHelper.java b/syncronizer/src/org/sync/githelper/GitHelper.java index d8cee7e..1aab9be 100644 --- a/syncronizer/src/org/sync/githelper/GitHelper.java +++ b/syncronizer/src/org/sync/githelper/GitHelper.java @@ -1,159 +1,159 @@ /*****************************************...
false
true
private boolean findExecutable(String preferedPath) { String os = System.getProperty("os.name"); if(null != preferedPath) { String fileExtension = ""; if(os.equalsIgnoreCase("Windows")) { fileExtension = ".exe"; } File gitExec = new File(preferedPath + File.separator + "git" + fileExtension); if...
private boolean findExecutable(String preferedPath) { String os = System.getProperty("os.name"); if(null != preferedPath) { String fileExtension = ""; if(os.contains("indow")) { fileExtension = ".exe"; } File gitExec = new File(preferedPath + File.separator + "git" + fileExtension); if(gitExec.e...
diff --git a/containers/grizzly2-http/src/main/java/org/glassfish/jersey/grizzly2/httpserver/GrizzlyHttpContainer.java b/containers/grizzly2-http/src/main/java/org/glassfish/jersey/grizzly2/httpserver/GrizzlyHttpContainer.java index bb51957fe..7ea889cd6 100644 --- a/containers/grizzly2-http/src/main/java/org/glassfish/...
false
true
public void service(final Request request, final Response response) { final ResponseWriter responseWriter = new ResponseWriter(response); try { logger.debugLog("GrizzlyHttpContaner.service(...) started"); URI baseUri = getBaseUri(request); ContainerRequest request...
public void service(final Request request, final Response response) { final ResponseWriter responseWriter = new ResponseWriter(response); try { logger.debugLog("GrizzlyHttpContainer.service(...) started"); URI baseUri = getBaseUri(request); ContainerRequest reques...
diff --git a/src/template/lombok/ast/template/TemplateProcessor.java b/src/template/lombok/ast/template/TemplateProcessor.java index 9714da6..468571d 100644 --- a/src/template/lombok/ast/template/TemplateProcessor.java +++ b/src/template/lombok/ast/template/TemplateProcessor.java @@ -1,825 +1,825 @@ /* * Copyright ©...
false
true
private void generateSourceFile(Element originatingElement, String className, String extending, List<String> implementing, List<FieldData> fields, List<ExecutableElement> methodsToCopy) throws IOException { JavaFileObject file = processingEnv.getFiler().createSourceFile(className, originatingElement); Writer...
private void generateSourceFile(Element originatingElement, String className, String extending, List<String> implementing, List<FieldData> fields, List<ExecutableElement> methodsToCopy) throws IOException { JavaFileObject file = processingEnv.getFiler().createSourceFile(className, originatingElement); Writer...
diff --git a/src/edu/buffalo/cse/ir/wikiindexer/tokenizer/test/DateRuleTest.java b/src/edu/buffalo/cse/ir/wikiindexer/tokenizer/test/DateRuleTest.java index 691afab..c70a492 100644 --- a/src/edu/buffalo/cse/ir/wikiindexer/tokenizer/test/DateRuleTest.java +++ b/src/edu/buffalo/cse/ir/wikiindexer/tokenizer/test/DateRuleT...
false
true
public void testRule() { if (rule == null) { fail("Rule not implemented"); } else { try { if (isPreTokenization) { assertArrayEquals( new Object[] { "Vidya Balan born 19780101 is an Indian actress." }, runtest("Vidya Balan born 1 January 1978 is an Indian actress.")); assertArray...
public void testRule() { if (rule == null) { fail("Rule not implemented"); } else { try { if (isPreTokenization) { assertArrayEquals( new Object[] { "Vidya Balan born 19780101 is an Indian actress." }, runtest("Vidya Balan born 1 January 1978 is an Indian actress.")); assertArray...
diff --git a/src/main/java/ru/tehkode/modifyworld/handlers/PlayerListener.java b/src/main/java/ru/tehkode/modifyworld/handlers/PlayerListener.java index 7ea2439..31d2c8f 100644 --- a/src/main/java/ru/tehkode/modifyworld/handlers/PlayerListener.java +++ b/src/main/java/ru/tehkode/modifyworld/handlers/PlayerListener.java...
true
true
public void onPlayerInteract(PlayerInteractEvent event) { Action action = event.getAction(); if (action == Action.RIGHT_CLICK_AIR || action == Action.RIGHT_CLICK_BLOCK) { // item restriction check this.checkPlayerInventory(event.getPlayer()); } Player player = event.getPlayer(); if (action == Action.RI...
public void onPlayerInteract(PlayerInteractEvent event) { Action action = event.getAction(); if (action == Action.RIGHT_CLICK_AIR || action == Action.RIGHT_CLICK_BLOCK) { // item restriction check this.checkPlayerInventory(event.getPlayer()); } Player player = event.getPlayer(); if (action == Action.RI...
diff --git a/editor/server/src/org/oryxeditor/server/XFormsExportServlet.java b/editor/server/src/org/oryxeditor/server/XFormsExportServlet.java index 2ee22d94..ec3a5cb7 100644 --- a/editor/server/src/org/oryxeditor/server/XFormsExportServlet.java +++ b/editor/server/src/org/oryxeditor/server/XFormsExportServlet.java @...
true
true
protected void doPost(HttpServletRequest req, HttpServletResponse res) throws ServletException, IOException { res.setContentType("text/xhtml"); String rdf = req.getParameter("data"); String cssUrl = req.getParameter("css"); try { DocumentBuilderFactory factory = DocumentBuilderFactory.newInstance()...
protected void doPost(HttpServletRequest req, HttpServletResponse res) throws ServletException, IOException { res.setContentType("text/xhtml"); String rdf = req.getParameter("data"); String cssUrl = req.getParameter("css"); try { DocumentBuilderFactory factory = DocumentBuilderFactory.newInstance()...
diff --git a/fusion_plugin/src/com/xpandit/fusionplugin/FusionComponentChart.java b/fusion_plugin/src/com/xpandit/fusionplugin/FusionComponentChart.java index 8d13e83..b82bac8 100644 --- a/fusion_plugin/src/com/xpandit/fusionplugin/FusionComponentChart.java +++ b/fusion_plugin/src/com/xpandit/fusionplugin/FusionCompone...
true
true
public void setData(Map<String, ArrayList<IPentahoResultSet>> resultSets) throws InvalidDataResultSetException { if(resultSets==null) throw new InvalidDataResultSetException(InvalidDataResultSetException.ERROR_001 , "Result Set is null"); //if is the bubble charts if(graph.getGra...
public void setData(Map<String, ArrayList<IPentahoResultSet>> resultSets) throws InvalidDataResultSetException { if(resultSets==null) throw new InvalidDataResultSetException(InvalidDataResultSetException.ERROR_001 , "Result Set is null"); //if is the bubble charts if(graph.getGra...
diff --git a/apvs/src/main/java/ch/cern/atlas/apvs/client/APVS.java b/apvs/src/main/java/ch/cern/atlas/apvs/client/APVS.java index 639d56e6..f5ca5016 100644 --- a/apvs/src/main/java/ch/cern/atlas/apvs/client/APVS.java +++ b/apvs/src/main/java/ch/cern/atlas/apvs/client/APVS.java @@ -1,445 +1,444 @@ package ch.cern.atla...
true
true
private void start() { remoteEventBus = clientFactory.getRemoteEventBus(); placeController = clientFactory.getPlaceController(); settingsPersister = new SettingsPersister(remoteEventBus); // get first div element NodeList<Element> divs = Document.get().getElementsByTagName("div"); if (divs.getLength()...
private void start() { remoteEventBus = clientFactory.getRemoteEventBus(); placeController = clientFactory.getPlaceController(); settingsPersister = new SettingsPersister(remoteEventBus); // get first div element NodeList<Element> divs = Document.get().getElementsByTagName("div"); if (divs.getLength()...
diff --git a/modules/foundation/appbase/src/classes/org/jdesktop/wonderland/modules/appbase/client/HUDDisplayer.java b/modules/foundation/appbase/src/classes/org/jdesktop/wonderland/modules/appbase/client/HUDDisplayer.java index 85f668734..4d1f149fe 100644 --- a/modules/foundation/appbase/src/classes/org/jdesktop/wonde...
true
true
public View2D createView (Window2D window) { // Don't ever show frame headers in the HUD if (window instanceof WindowSwingHeader) return null; HUDComponent component = mainHUD.createComponent(window); component.setName(app.getName()); component.setPreferredLocation(Layout.N...
public View2D createView (Window2D window) { // Don't ever show frame headers in the HUD if (window instanceof WindowSwingHeader) return null; HUDComponent component = mainHUD.createComponent(window); component.setName(app.getName()); component.setPreferredLocation(Layout.C...
diff --git a/java/orng-connector/src/main/java/edu/ucsf/orng/shindig/spi/RdfJsonLDService.java b/java/orng-connector/src/main/java/edu/ucsf/orng/shindig/spi/RdfJsonLDService.java index baee03da1..b06426daa 100644 --- a/java/orng-connector/src/main/java/edu/ucsf/orng/shindig/spi/RdfJsonLDService.java +++ b/java/orng-con...
true
true
public JSONObject getRDF(String uri, String output, String containerSessionId, SecurityToken token) throws Exception { String url = uri; boolean local = false; // custom way to convert URI to URL in case standard LOD mechanisms will not work if (systemDomain != null && url.toLowerCase().startsWith(systemDom...
public JSONObject getRDF(String uri, String output, String containerSessionId, SecurityToken token) throws Exception { String url = uri; boolean local = false; // custom way to convert URI to URL in case standard LOD mechanisms will not work if (systemDomain != null && url.toLowerCase().startsWith(systemDom...
diff --git a/platform-infrastructure/sns/socialdata/src/main/java/org/societies/platform/socialdata/converters/ActivityConverterFromFacebook.java b/platform-infrastructure/sns/socialdata/src/main/java/org/societies/platform/socialdata/converters/ActivityConverterFromFacebook.java index 6d7cb6d90..94426b88f 100644 --- a...
true
true
private void fixEntry(ActivityEntry entry, JSONObject elm) throws JSONException{ String story = entry.getContent(); // VERB Tagged - Object - Actor - Author Myself Pattern p1 = Pattern.compile(".* was tagged in .* (photo|album)(?:\\s(.*))?."); Matcher m1 = p1.matcher(story); if (m1.find(...
private void fixEntry(ActivityEntry entry, JSONObject elm) throws JSONException{ String story = entry.getContent(); // VERB Tagged - Object - Actor - Author Myself Pattern p1 = Pattern.compile(".* was tagged in .* (photo|album)(?:\\s(.*))?."); Matcher m1 = p1.matcher(story); if (m1.find(...
diff --git a/baixing_quanleimu/src/com/quanleimu/view/GoodDetailView.java b/baixing_quanleimu/src/com/quanleimu/view/GoodDetailView.java index c680c67e..c351468e 100644 --- a/baixing_quanleimu/src/com/quanleimu/view/GoodDetailView.java +++ b/baixing_quanleimu/src/com/quanleimu/view/GoodDetailView.java @@ -1,1328 +1,133...
false
true
protected void init() { this.keepSilent = false;//magic flag to refuse unexpected touch event WindowManager wm = (WindowManager)QuanleimuApplication.getApplication().getApplicationContext().getSystemService(Context.WINDOW_SERVICE); type = wm.getDefaultDisplay().getWidth(); //different padding for...
protected void init() { this.keepSilent = false;//magic flag to refuse unexpected touch event WindowManager wm = (WindowManager)QuanleimuApplication.getApplication().getApplicationContext().getSystemService(Context.WINDOW_SERVICE); type = wm.getDefaultDisplay().getWidth(); //different padding for...
diff --git a/src/com/herocraftonline/dev/heroes/command/commands/AdminClassCommand.java b/src/com/herocraftonline/dev/heroes/command/commands/AdminClassCommand.java index d54ba181..f23e903f 100644 --- a/src/com/herocraftonline/dev/heroes/command/commands/AdminClassCommand.java +++ b/src/com/herocraftonline/dev/heroes/c...
true
true
public boolean execute(CommandSender sender, String identifier, String[] args) { Player player = plugin.getServer().getPlayer(args[0]); // Check the Player exists. if (player == null) { Messaging.send(sender, "Failed to find a matching Player for '$1'. Offline players are not sup...
public boolean execute(CommandSender sender, String identifier, String[] args) { Player player = plugin.getServer().getPlayer(args[0]); // Check the Player exists. if (player == null) { Messaging.send(sender, "Failed to find a matching Player for '$1'. Offline players are not sup...
diff --git a/src/jpcsp/HLE/pspdisplay.java b/src/jpcsp/HLE/pspdisplay.java index 3f6cc615..f2230a00 100644 --- a/src/jpcsp/HLE/pspdisplay.java +++ b/src/jpcsp/HLE/pspdisplay.java @@ -1,609 +1,609 @@ /* Function: - HLE everything in http://psp.jim.sh/pspsdk-doc/pspdisplay_8h.html This file is part of jpcsp. J...
true
true
public void display(GLAutoDrawable drawable) { final GL gl = drawable.getGL(); if (createTex) { int[] textures = new int[1]; if (texFb != -1) { textures[0] = texFb; gl.glDeleteTextures(1, textures, 0); } gl.glGenTexture...
public void display(GLAutoDrawable drawable) { final GL gl = drawable.getGL(); if (createTex) { int[] textures = new int[1]; if (texFb != -1) { textures[0] = texFb; gl.glDeleteTextures(1, textures, 0); } gl.glGenTexture...
diff --git a/sahi/src/com/redhat/qe/jon/sahi/tests/plugins/eap6/domain/ServerGroupsManagementTest.java b/sahi/src/com/redhat/qe/jon/sahi/tests/plugins/eap6/domain/ServerGroupsManagementTest.java index 14805ceb..e28a6bfd 100644 --- a/sahi/src/com/redhat/qe/jon/sahi/tests/plugins/eap6/domain/ServerGroupsManagementTest.ja...
false
true
public void restartServerGroup() { for (HTTPClient c : managedServerClients) { Assert.assertTrue(c.isRunning(), "Managed server is rachable via HTTP"); } // we'll check startup time only for one of servers in group Date startupDate = sshClient.getStartupTime("domain/servers/server-one/boot...
public void restartServerGroup() { for (HTTPClient c : managedServerClients) { Assert.assertTrue(c.isRunning(), "Managed server is rachable via HTTP"); } // we'll check startup time only for one of servers in group Date startupDate = sshClient.getStartupTime("domain/servers/server-one/log/...
diff --git a/eclipse/plugins/org.xronos.orcc/src/org/xronos/orcc/backend/VerilogAddGoDone.java b/eclipse/plugins/org.xronos.orcc/src/org/xronos/orcc/backend/VerilogAddGoDone.java index 9a1db3f..2602c52 100644 --- a/eclipse/plugins/org.xronos.orcc/src/org/xronos/orcc/backend/VerilogAddGoDone.java +++ b/eclipse/plugins/o...
false
true
public void addGoDone() { File newVerilogFile = new File(tgtPath + File.separator + instance.getSimpleName() + ".v"); try { // Old Verilog Instance without Go and Done String oVerilogFile = srcPath + File.separator + instance.getSimpleName() + ".v"; FileInputStream iStream = new FileInputStream(o...
public void addGoDone() { File newVerilogFile = new File(tgtPath + File.separator + instance.getSimpleName() + ".v"); try { // Old Verilog Instance without Go and Done String oVerilogFile = srcPath + File.separator + instance.getSimpleName() + ".v"; FileInputStream iStream = new FileInputStream(o...
diff --git a/src/main/java/org/sagebionetworks/web/client/widget/entity/renderer/TableOfContentsWidgetViewImpl.java b/src/main/java/org/sagebionetworks/web/client/widget/entity/renderer/TableOfContentsWidgetViewImpl.java index fdb289ecf..145f3630c 100644 --- a/src/main/java/org/sagebionetworks/web/client/widget/entity/...
true
true
protected void onLoad() { super.onLoad(); if (!hasLoaded) { hasLoaded = true; FlowPanel linkContainer = new FlowPanel(); linkContainer.add(new HTML("<h4>Table Of Contents</h4>")); HTMLPanel parentPanel = (HTMLPanel)this.getParent(); //look for these special header ids (that were added by the markdow...
protected void onLoad() { super.onLoad(); if (!hasLoaded) { hasLoaded = true; FlowPanel linkContainer = new FlowPanel(); linkContainer.add(new HTML("<h4>Table Of Contents</h4>")); HTMLPanel parentPanel = (HTMLPanel)this.getParent(); //look for these special header ids (that were added by the markdow...
diff --git a/flume-ng-channels/flume-recoverable-memory-channel/src/main/java/org/apache/flume/channel/recoverable/memory/RecoverableMemoryChannel.java b/flume-ng-channels/flume-recoverable-memory-channel/src/main/java/org/apache/flume/channel/recoverable/memory/RecoverableMemoryChannel.java index 2d08b686..0622f279 10...
true
true
public void configure(Context context) { memoryChannel.configure(context); String homePath = System.getProperty("user.home").replace('\\', '/'); String dataDir = context.getString(WAL_DATA_DIR, homePath + "/.flume/recoverable-memory-channel"); if(wal != null) { try { wal.close(); ...
public void configure(Context context) { memoryChannel.configure(context); String homePath = System.getProperty("user.home").replace('\\', '/'); String dataDir = context.getString(WAL_DATA_DIR, homePath + "/.flume/recoverable-memory-channel"); if(wal != null) { try { wal.close(); ...
diff --git a/test/demo/jvmti/DemoRun.java b/test/demo/jvmti/DemoRun.java index 1958a1eff..7a1a42d62 100644 --- a/test/demo/jvmti/DemoRun.java +++ b/test/demo/jvmti/DemoRun.java @@ -1,227 +1,231 @@ /* * Copyright 2004-2007 Sun Microsystems, Inc. All Rights Reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR TH...
false
true
public void runit(String class_name, String vm_options[]) { String jre_home = System.getProperty("java.home"); String sdk_home = (jre_home.endsWith("jre") ? (jre_home + File.separator + "..") : jre_home ); String cdir = Syste...
public void runit(String class_name, String vm_options[]) { String jre_home = System.getProperty("java.home"); String sdk_home = (jre_home.endsWith("jre") ? (jre_home + File.separator + "..") : jre_home ); String cdir = Syste...
diff --git a/src/main/java/me/shock/avatarpvp/commands/Anti.java b/src/main/java/me/shock/avatarpvp/commands/Anti.java index 8cf1fe6..01152e5 100644 --- a/src/main/java/me/shock/avatarpvp/commands/Anti.java +++ b/src/main/java/me/shock/avatarpvp/commands/Anti.java @@ -1,156 +1,156 @@ package me.shock.avatarpvp.command...
true
true
public boolean onCommand(CommandSender sender, Command cmd, String label, String[] args) { String apvp = ChatColor.BLUE + "[" + ChatColor.WHITE + "AvatarPvP" + ChatColor.BLUE + "]" + ChatColor.WHITE + ": "; String noperm = apvp + "You don't have permission to use this."; /** * Quick check if sender is pla...
public boolean onCommand(CommandSender sender, Command cmd, String label, String[] args) { String apvp = ChatColor.BLUE + "[" + ChatColor.WHITE + "AvatarPvP" + ChatColor.BLUE + "]" + ChatColor.WHITE + ": "; String noperm = apvp + "You don't have permission to use this."; /** * Quick check if sender is pla...
diff --git a/src/gov/nih/nci/rembrandt/web/graphing/data/GenePlotDataSet.java b/src/gov/nih/nci/rembrandt/web/graphing/data/GenePlotDataSet.java index c6923c6b..325d96a3 100755 --- a/src/gov/nih/nci/rembrandt/web/graphing/data/GenePlotDataSet.java +++ b/src/gov/nih/nci/rembrandt/web/graphing/data/GenePlotDataSet.java @...
true
true
public GenePlotDataSet(String gene, String reporter,InstitutionCriteria institutionCriteria ,GeneExpressionDataSetType geneExpressionDataSetType, String sessionId ) { //Determine which type of query we will need to run based on the algorithm we are passing in (GeneExpressionDataSetType enum) Resultant re...
public GenePlotDataSet(String gene, String reporter,InstitutionCriteria institutionCriteria ,GeneExpressionDataSetType geneExpressionDataSetType, String sessionId ) { //Determine which type of query we will need to run based on the algorithm we are passing in (GeneExpressionDataSetType enum) Resultant re...
diff --git a/src/main/java/com/greatmancode/craftconomy3/converter/converters/Essentials.java b/src/main/java/com/greatmancode/craftconomy3/converter/converters/Essentials.java index a62bb53..acaeaa6 100644 --- a/src/main/java/com/greatmancode/craftconomy3/converter/converters/Essentials.java +++ b/src/main/java/com/gr...
true
true
public boolean importData(String sender) { File accountsFolder = new File("plugins/Essentials/userdata/"); if (!accountsFolder.isDirectory()){ return false; } File[] accounts = accountsFolder.listFiles(new FilenameFilter(){ public boolean accept(File file, String name){ return name.toLowerCase().en...
public boolean importData(String sender) { File accountsFolder = new File("plugins/Essentials/userdata/"); if (!accountsFolder.isDirectory()){ return false; } File[] accounts = accountsFolder.listFiles(new FilenameFilter(){ public boolean accept(File file, String name){ return name.toLowerCase().en...
diff --git a/beddit_alarm/src/ohtu/beddit/activity/MainActivity.java b/beddit_alarm/src/ohtu/beddit/activity/MainActivity.java index c4eddcb..f5739ce 100755 --- a/beddit_alarm/src/ohtu/beddit/activity/MainActivity.java +++ b/beddit_alarm/src/ohtu/beddit/activity/MainActivity.java @@ -1,243 +1,243 @@ package ohtu.beddi...
true
true
public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.main); setAlarmService(new AlarmServiceImpl(this)); //initialize default values for settings if called for the first time PreferenceManager.setDefaultValues(thi...
public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.main); setAlarmService(new AlarmServiceImpl(this)); //initialize default values for settings if called for the first time PreferenceManager.setDefaultValues(thi...
diff --git a/client/src/main/java/com/metamx/druid/query/timeseries/TimeseriesQueryQueryToolChest.java b/client/src/main/java/com/metamx/druid/query/timeseries/TimeseriesQueryQueryToolChest.java index 99bf679c00..0e5d96b385 100644 --- a/client/src/main/java/com/metamx/druid/query/timeseries/TimeseriesQueryQueryToolChes...
false
true
public CacheStrategy<Result<TimeseriesResultValue>, TimeseriesQuery> getCacheStrategy(final TimeseriesQuery query) { return new CacheStrategy<Result<TimeseriesResultValue>, TimeseriesQuery>() { private final List<AggregatorFactory> aggs = query.getAggregatorSpecs(); private final List<PostAggreg...
public CacheStrategy<Result<TimeseriesResultValue>, TimeseriesQuery> getCacheStrategy(final TimeseriesQuery query) { return new CacheStrategy<Result<TimeseriesResultValue>, TimeseriesQuery>() { private final List<AggregatorFactory> aggs = query.getAggregatorSpecs(); private final List<PostAggreg...
diff --git a/src/jmt/gui/common/editors/DefaultsEditor.java b/src/jmt/gui/common/editors/DefaultsEditor.java index c2f7d77..4559e8f 100644 --- a/src/jmt/gui/common/editors/DefaultsEditor.java +++ b/src/jmt/gui/common/editors/DefaultsEditor.java @@ -1,810 +1,810 @@ /** * Copyright (C) 2006, Laboratorio di Valuta...
false
true
protected void initComponents(int target) { // Creates a main panel and adds margins to it JPanel mainpanel = new JPanel(new BorderLayout()); mainpanel.setLayout(new BorderLayout()); mainpanel.setBorder(BorderFactory.createEmptyBorder(BORDERSIZE, BORDERSIZE, BORDERSIZE, BORDERSIZE));...
protected void initComponents(int target) { // Creates a main panel and adds margins to it JPanel mainpanel = new JPanel(new BorderLayout()); mainpanel.setLayout(new BorderLayout()); mainpanel.setBorder(BorderFactory.createEmptyBorder(BORDERSIZE, BORDERSIZE, BORDERSIZE, BORDERSIZE));...
diff --git a/src/com/android/bluetooth/btservice/BondStateMachine.java b/src/com/android/bluetooth/btservice/BondStateMachine.java index 012b16a..f416003 100644 --- a/src/com/android/bluetooth/btservice/BondStateMachine.java +++ b/src/com/android/bluetooth/btservice/BondStateMachine.java @@ -1,361 +1,367 @@ /* * Cop...
true
true
public boolean processMessage(Message msg) { BluetoothDevice dev = (BluetoothDevice)msg.obj; boolean result = false; if (mDevices.contains(dev) && msg.what != CANCEL_BOND && msg.what != BONDING_STATE_CHANGE) { deferMessage(msg); ...
public boolean processMessage(Message msg) { BluetoothDevice dev = (BluetoothDevice)msg.obj; boolean result = false; if (mDevices.contains(dev) && msg.what != CANCEL_BOND && msg.what != BONDING_STATE_CHANGE) { deferMessage(msg); ...
diff --git a/src/main/java/edu/jhu/rebar/riak/RiakQueryClient.java b/src/main/java/edu/jhu/rebar/riak/RiakQueryClient.java index 33c2eb3..6618494 100644 --- a/src/main/java/edu/jhu/rebar/riak/RiakQueryClient.java +++ b/src/main/java/edu/jhu/rebar/riak/RiakQueryClient.java @@ -1,136 +1,138 @@ /** * */ package edu...
true
true
public List<Vertex> sampleVertices(double fraction) throws RebarException { List<Vertex> vList = new ArrayList<>(1000000); if (fraction > 1.0) throw new RebarException("Can't get over 100% of the data."); else if (fraction < 0.0) throw new RebarException("Can't get l...
public List<Vertex> sampleVertices(double fraction) throws RebarException { List<Vertex> vList = new ArrayList<>(1000000); if (fraction > 1.0) throw new RebarException("Can't get over 100% of the data."); else if (fraction < 0.0) throw new RebarException("Can't get l...
diff --git a/src/jp/upset/horoscope/GCMIntentService.java b/src/jp/upset/horoscope/GCMIntentService.java index e1383f0..fc26db0 100644 --- a/src/jp/upset/horoscope/GCMIntentService.java +++ b/src/jp/upset/horoscope/GCMIntentService.java @@ -1,80 +1,81 @@ package jp.upset.horoscope; import android.app.Notification; ...
false
true
protected void onMessage(Context context, Intent intent) { // TODO Auto-generated method stub try { String t = intent.getStringExtra("type"); String s = intent.getExtras().getString("msg_count"); int type = Integer.parseInt(t); int count = Integer.parseInt(s); Preference.setMessageCount(context, co...
protected void onMessage(Context context, Intent intent) { // TODO Auto-generated method stub try { String t = intent.getStringExtra("type"); String s = intent.getExtras().getString("msg_count"); int type = Integer.parseInt(t); int count = Integer.parseInt(s); Preference.setMessageCount(context, co...
diff --git a/common/net/minecraftforge/common/ForgeHooks.java b/common/net/minecraftforge/common/ForgeHooks.java index 48273e1cc..a3328af3a 100644 --- a/common/net/minecraftforge/common/ForgeHooks.java +++ b/common/net/minecraftforge/common/ForgeHooks.java @@ -1,286 +1,287 @@ package net.minecraftforge.common; impo...
true
true
public static boolean onPickBlock(MovingObjectPosition target, EntityPlayer player, World world) { ItemStack result = null; boolean isCreative = player.capabilities.isCreativeMode; if (target.typeOfHit == EnumMovingObjectType.TILE) { int x = target.blockX; ...
public static boolean onPickBlock(MovingObjectPosition target, EntityPlayer player, World world) { ItemStack result = null; boolean isCreative = player.capabilities.isCreativeMode; if (target.typeOfHit == EnumMovingObjectType.TILE) { int x = target.blockX; ...
diff --git a/framework/src/play/mvc/Router.java b/framework/src/play/mvc/Router.java index ee0c1ab0..6b3acac1 100644 --- a/framework/src/play/mvc/Router.java +++ b/framework/src/play/mvc/Router.java @@ -1,888 +1,888 @@ package play.mvc; import java.io.File; import java.io.IOException; import java.io.UnsupportedEn...
true
true
public static ActionDefinition reverse(String action, Map<String, Object> args) { String encoding = Http.Response.current().encoding; if (action.startsWith("controllers.")) { action = action.substring(12); } Map<String, Object> argsbackup = new HashMap<String, Object>(a...
public static ActionDefinition reverse(String action, Map<String, Object> args) { String encoding = Http.Response.current() == null ? "utf-8" : Http.Response.current().encoding; if (action.startsWith("controllers.")) { action = action.substring(12); } Map<String, Object...
diff --git a/LittleSmartTool2/src/littlesmarttool2/model/ModelUtil.java b/LittleSmartTool2/src/littlesmarttool2/model/ModelUtil.java index 818d8d2..9165a78 100644 --- a/LittleSmartTool2/src/littlesmarttool2/model/ModelUtil.java +++ b/LittleSmartTool2/src/littlesmarttool2/model/ModelUtil.java @@ -1,207 +1,223 @@ /* *...
false
true
public static void SendConfigurationToSnapper(Configuration conf, SerialController comm) throws IOException { try{ AutoServoPuller.Stop(comm); try { Thread.sleep(1000); } catch (InterruptedException ex) {/*Cough*/} comm.setSyncTimeout(1000); ...
public static void SendConfigurationToSnapper(Configuration conf, SerialController comm) throws IOException { try{ AutoServoPuller.Stop(comm); try { Thread.sleep(1000); } catch (InterruptedException ex) {/*Cough*/} comm.setSyncTimeout(1000); ...
diff --git a/core/src/test/java/org/zenoss/zep/dao/impl/ConfigDaoIT.java b/core/src/test/java/org/zenoss/zep/dao/impl/ConfigDaoIT.java index e9c4c5b..dcd9c98 100644 --- a/core/src/test/java/org/zenoss/zep/dao/impl/ConfigDaoIT.java +++ b/core/src/test/java/org/zenoss/zep/dao/impl/ConfigDaoIT.java @@ -1,43 +1,44 @@ /* ...
true
true
public void testConfig() throws ZepException { ZepConfig.Builder builder = ZepConfig.newBuilder(); builder.setEventAgeDisableSeverity(EventSeverity.SEVERITY_CRITICAL); builder.setEventAgeIntervalMinutes(60); builder.setEventArchiveIntervalMinutes(7*24*60); builder.setEventArc...
public void testConfig() throws ZepException { ZepConfig.Builder builder = ZepConfig.newBuilder(); builder.setEventAgeDisableSeverity(EventSeverity.SEVERITY_CRITICAL); builder.setEventAgeIntervalMinutes(60); builder.setEventArchiveIntervalMinutes(7*24*60); builder.setEventArc...
diff --git a/kmean/src/mapreduce/KmeansDriver.java b/kmean/src/mapreduce/KmeansDriver.java index 4c45f7c..0ce9509 100644 --- a/kmean/src/mapreduce/KmeansDriver.java +++ b/kmean/src/mapreduce/KmeansDriver.java @@ -1,122 +1,122 @@ package mapreduce; import java.util.Date; import org.apache.hadoop.conf.Configuratio...
true
true
public static void main(String[] args) { Date start = new Date(); if (args.length < 2) { System.out .println("Usage: program <input> <clusters> [max iteration]"); System.exit(0); } Configuration conf = new Configuration(); Counter converge = null; Counter total = null; Counter totalfile = n...
public static void main(String[] args) { Date start = new Date(); if (args.length < 2) { System.out .println("Usage: program <input> <clusters> [max iteration]"); System.exit(0); } Configuration conf = new Configuration(); Counter converge = null; Counter total = null; Counter totalfile = n...
diff --git a/modules/foundation/appbase/src/classes/org/jdesktop/wonderland/modules/appbase/client/cell/App2DCell.java b/modules/foundation/appbase/src/classes/org/jdesktop/wonderland/modules/appbase/client/cell/App2DCell.java index 9c8d7efbc..8359545f3 100644 --- a/modules/foundation/appbase/src/classes/org/jdesktop/w...
true
true
protected void setStatus(CellStatus status, boolean increasing) { super.setStatus(status, increasing); switch (status) { // The cell is now visible case ACTIVE: if (increasing) { if (menuFactory == null) { menuFact...
protected void setStatus(CellStatus status, boolean increasing) { super.setStatus(status, increasing); switch (status) { // The cell is now visible case ACTIVE: if (increasing) { if (menuFactory == null) { menuFact...
diff --git a/srcj/com/sun/electric/tool/extract/Connectivity.java b/srcj/com/sun/electric/tool/extract/Connectivity.java index 889883411..cef44a139 100644 --- a/srcj/com/sun/electric/tool/extract/Connectivity.java +++ b/srcj/com/sun/electric/tool/extract/Connectivity.java @@ -1,4588 +1,4594 @@ /* -*- tab-width: 4 -*- ...
false
true
private boolean extractVias(PolyMerge merge, PolyMerge originalMerge, Cell oldCell, Cell newCell) { // make a list of all via/cut layers in the technology and count the number of vias/cuts int totalCuts = 0; List<Layer> layers = new ArrayList<Layer>(); for (Layer layer : allCutLayers.keySet()) { layers.a...
private boolean extractVias(PolyMerge merge, PolyMerge originalMerge, Cell oldCell, Cell newCell) { // make a list of all via/cut layers in the technology and count the number of vias/cuts int totalCuts = 0; List<Layer> layers = new ArrayList<Layer>(); for (Layer layer : allCutLayers.keySet()) { layers.a...
diff --git a/org.eclipse.mylyn.bugzilla.ui/src/org/eclipse/mylyn/internal/bugzilla/ui/editor/RepositoryTextViewer.java b/org.eclipse.mylyn.bugzilla.ui/src/org/eclipse/mylyn/internal/bugzilla/ui/editor/RepositoryTextViewer.java index e3b0a6e4d..021bcf513 100644 --- a/org.eclipse.mylyn.bugzilla.ui/src/org/eclipse/mylyn/i...
false
true
public RepositoryTextScanner() { IToken bugToken = new Token(new TextAttribute(URL_COLOR)); IRule[] rules = new IRule[8]; rules[0] = (new SingleLineRule("http://", " ", bugToken)); rules[1] = (new SingleLineRule("https://", " ", bugToken)); rules[2] = (new MultiLineRule("bug#", " ", bugToken)); rul...
public RepositoryTextScanner() { IToken bugToken = new Token(new TextAttribute(URL_COLOR)); IRule[] rules = new IRule[7]; rules[0] = (new SingleLineRule("http://", " ", bugToken)); rules[1] = (new SingleLineRule("https://", " ", bugToken)); rules[2] = (new MultiLineRule("bug#", " ", bugToken)); rul...
diff --git a/Essentials/src/com/earth2me/essentials/EssentialsConf.java b/Essentials/src/com/earth2me/essentials/EssentialsConf.java index 846a7b4b..89fb53d3 100644 --- a/Essentials/src/com/earth2me/essentials/EssentialsConf.java +++ b/Essentials/src/com/earth2me/essentials/EssentialsConf.java @@ -1,394 +1,396 @@ pack...
false
true
public void load() { configFile = configFile.getAbsoluteFile(); if (!configFile.getParentFile().exists()) { if (!configFile.getParentFile().mkdirs()) { LOGGER.log(Level.SEVERE, _("failedToCreateConfig", configFile.toString())); } } // This will delete files where the first character is 0. In mo...
public void load() { configFile = configFile.getAbsoluteFile(); if (!configFile.getParentFile().exists()) { if (!configFile.getParentFile().mkdirs()) { LOGGER.log(Level.SEVERE, _("failedToCreateConfig", configFile.toString())); } } // This will delete files where the first character is 0. In mo...
diff --git a/src/org/biojava/bio/program/sax/blastxml/BlastOutputHandler.java b/src/org/biojava/bio/program/sax/blastxml/BlastOutputHandler.java index 437e6cddd..d231b4c94 100644 --- a/src/org/biojava/bio/program/sax/blastxml/BlastOutputHandler.java +++ b/src/org/biojava/bio/program/sax/blastxml/BlastOutputHandler.java...
true
true
private void initDelegation() { // delegate handling of <BlastOutput_param> // super.addHandler(new ElementRecognizer.ByLocalName("BlastOutput_param"), // BlastOutputParamHandler.BLAST_OUTPUT_PARAM_HANDLER_FACTORY); // delegate handling of <BlastOutput_program> super.a...
private void initDelegation() { // delegate handling of <BlastOutput_param> // super.addHandler(new ElementRecognizer.ByLocalName("BlastOutput_param"), // BlastOutputParamHandler.BLAST_OUTPUT_PARAM_HANDLER_FACTORY); // delegate handling of <BlastOutput_program> super.a...
diff --git a/whois-commons/src/main/java/net/ripe/db/whois/common/domain/IpRanges.java b/whois-commons/src/main/java/net/ripe/db/whois/common/domain/IpRanges.java index 19d7ca179..fc56e972e 100644 --- a/whois-commons/src/main/java/net/ripe/db/whois/common/domain/IpRanges.java +++ b/whois-commons/src/main/java/net/ripe/...
true
true
public void setRipeRanges(final String... ripeRanges) { final Set<Interval> ipResources = Sets.newLinkedHashSetWithExpectedSize(ripeRanges.length); for (final String ripeRange : ripeRanges) { ipResources.add(IpInterval.parse(ripeRange)); } this.ripeRanges = ipResources; ...
public void setRipeRanges(final String... ripeRanges) { final Set<Interval> ipResources = Sets.newLinkedHashSetWithExpectedSize(ripeRanges.length); for (final String ripeRange : ripeRanges) { ipResources.add(IpInterval.parse(ripeRange)); } this.ripeRanges = ipResources; ...
diff --git a/src/frontend/org/voltdb/dtxn/MailboxTracker.java b/src/frontend/org/voltdb/dtxn/MailboxTracker.java index 5715e51ab..fc965f705 100644 --- a/src/frontend/org/voltdb/dtxn/MailboxTracker.java +++ b/src/frontend/org/voltdb/dtxn/MailboxTracker.java @@ -1,210 +1,217 @@ /* This file is part of VoltDB. * Copyri...
false
true
private void getAndWatchSites() throws Exception { List<String> children = m_zk.getChildren("/mailboxes/executionsites", new Watcher() { @Override public void process(WatchedEvent event) { try { getAndWatchSites(); } catch (Exceptio...
private void getAndWatchSites() throws Exception { List<String> children = m_zk.getChildren("/mailboxes/executionsites", new Watcher() { @Override public void process(WatchedEvent event) { try { getAndWatchSites(); } catch (Exceptio...
diff --git a/dbproject/src/my/triviagame/xmcd/XmcdDiscStream.java b/dbproject/src/my/triviagame/xmcd/XmcdDiscStream.java index fe4d1f2..e73a5e5 100644 --- a/dbproject/src/my/triviagame/xmcd/XmcdDiscStream.java +++ b/dbproject/src/my/triviagame/xmcd/XmcdDiscStream.java @@ -1,99 +1,97 @@ package my.triviagame.xmcd; i...
false
true
public XmcdDisc next() throws XmcdExtractionException, XmcdMissingInformationException { XmcdDisc xmcdDisc; try { // Get to the next file, skipping any directory entries along the way while ((nextEntry != null) && (nextEntry.isDirectory())) { nextEntry = tar.g...
public XmcdDisc next() throws XmcdExtractionException, XmcdMissingInformationException, XmcdFormatException { XmcdDisc xmcdDisc; String dirName = null; try { // Get to the next file, skipping any directory entries along the way while ((nextEntry != null) && (nextEntry...
diff --git a/src/net/sf/gogui/gui/MessageDialogs.java b/src/net/sf/gogui/gui/MessageDialogs.java index 5428ba9f..59feccf8 100644 --- a/src/net/sf/gogui/gui/MessageDialogs.java +++ b/src/net/sf/gogui/gui/MessageDialogs.java @@ -1,264 +1,266 @@ //--------------------------------------------------------------------------...
true
true
private Object show(String disableKey, Component parent, String title, String mainMessage, String optionalMessage, int messageType, Object[] options, Object defaultOption) { Box box = Box.createVerticalBox(); JLabel label = ...
private Object show(String disableKey, Component parent, String title, String mainMessage, String optionalMessage, int messageType, Object[] options, Object defaultOption) { if (optionalMessage == null) optionalMessage =...
diff --git a/src/model/Classes.java b/src/model/Classes.java index a4fa3e1..2f86af9 100644 --- a/src/model/Classes.java +++ b/src/model/Classes.java @@ -1,219 +1,219 @@ package model; import java.util.*; import java.awt.*; import java.io.*; public class Classes implements java.io.Serializable { /** * Clas...
false
true
private void exportFields(BufferedWriter outputStream) throws IOException { for (Field field : getAllFields() ) { String type = field.getType(); String name = field.getLabel(); if (field.getClass() != new Method("").getClass() ) { outputStream.write("\tprivate "+type+" "+name+";"); outputStream.newL...
private void exportFields(BufferedWriter outputStream) throws IOException { for (Field field : getAllFields() ) { String type = field.getType(); String name = field.getLabel(); if (field.getClass() != new Method("").getClass() ) { outputStream.write("\tprivate "+type+" "+name+";"); outputStream.newL...
diff --git a/GAE/src/org/waterforpeople/mapping/dataexport/RawDataSpreadsheetImporter.java b/GAE/src/org/waterforpeople/mapping/dataexport/RawDataSpreadsheetImporter.java index 5bb3783b8..74f6231c9 100644 --- a/GAE/src/org/waterforpeople/mapping/dataexport/RawDataSpreadsheetImporter.java +++ b/GAE/src/org/waterforpeopl...
false
true
public void executeImport(File file, String serverBase, Map<String, String> criteria) { try { int rows = 0; errorIds = new ArrayList<String>(); jobQueue = new LinkedBlockingQueue<Runnable>(); threadPool = new ThreadPoolExecutor(5, 5, 10, TimeUnit.SECONDS, jobQueue); DateFormat df = new Simple...
public void executeImport(File file, String serverBase, Map<String, String> criteria) { try { int rows = 0; errorIds = new ArrayList<String>(); jobQueue = new LinkedBlockingQueue<Runnable>(); threadPool = new ThreadPoolExecutor(5, 5, 10, TimeUnit.SECONDS, jobQueue); DateFormat df = new Simple...
diff --git a/src/com/redhat/ceylon/compiler/java/codegen/CallableBuilder.java b/src/com/redhat/ceylon/compiler/java/codegen/CallableBuilder.java index 4a521d5cf..d4be59d32 100644 --- a/src/com/redhat/ceylon/compiler/java/codegen/CallableBuilder.java +++ b/src/com/redhat/ceylon/compiler/java/codegen/CallableBuilder.java...
false
true
private JCTree makeDefaultedCall(int i, boolean isVariadic, java.util.List<ProducedType> parameterTypes) { // collect every parameter int a = 0; ListBuffer<JCStatement> stmts = new ListBuffer<JCStatement>(); for(Parameter param : paramLists.getParameters()){ // don't read...
private JCTree makeDefaultedCall(int i, boolean isVariadic, java.util.List<ProducedType> parameterTypes) { // collect every parameter int a = 0; ListBuffer<JCStatement> stmts = new ListBuffer<JCStatement>(); for(Parameter param : paramLists.getParameters()){ // don't read...
diff --git a/src/denoflionsx/minefactoryreloaded/modhelpers/forestry/extratrees/ExtraTrees.java b/src/denoflionsx/minefactoryreloaded/modhelpers/forestry/extratrees/ExtraTrees.java index 3d888d1..8c49a02 100644 --- a/src/denoflionsx/minefactoryreloaded/modhelpers/forestry/extratrees/ExtraTrees.java +++ b/src/denoflions...
true
true
public void init(FMLInitializationEvent evt) { try { if (Loader.isModLoaded("ExtraTrees")) { for (Field f : Class.forName("binnie.extratrees.PluginExtraTrees").getDeclaredFields()) { if (f.getType().equals(Block.class)) { if (f.getName().toLowerCase().contains("log")) { FMLInterModComms.send...
public void init(FMLInitializationEvent evt) { try { if (Loader.isModLoaded("ExtraTrees")) { for (Field f : Class.forName("binnie.extratrees.ExtraTrees").getDeclaredFields()) { if (f.getType().equals(Block.class)) { if (f.getName().toLowerCase().contains("log")) { FMLInterModComms.sendMessag...
diff --git a/src/it/crs4/seal/read_sort/MergeAlignments.java b/src/it/crs4/seal/read_sort/MergeAlignments.java index c35ca30..20119f2 100644 --- a/src/it/crs4/seal/read_sort/MergeAlignments.java +++ b/src/it/crs4/seal/read_sort/MergeAlignments.java @@ -1,533 +1,533 @@ // Copyright (C) 2011-2012 CRS4. // // This file...
false
true
private void scanOptions(String[] args) { Options options = new Options(); Option ref = OptionBuilder .withDescription("root path to the reference used to create the SAM data") .hasArg() .withArgName("REF_PATH") .withLongOpt("reference") ...
private void scanOptions(String[] args) { Options options = new Options(); Option ref = OptionBuilder .withDescription("root path to the reference used to create the SAM data") .hasArg() .withArgName("REF_PATH") .withLongOpt("reference") ...
diff --git a/Interpreter/src/edu/tum/lua/Environment.java b/Interpreter/src/edu/tum/lua/Environment.java index fb0df72..d0197a7 100644 --- a/Interpreter/src/edu/tum/lua/Environment.java +++ b/Interpreter/src/edu/tum/lua/Environment.java @@ -1,172 +1,171 @@ package edu.tum.lua; import java.util.ArrayList; import ja...
true
true
Environment() { set("assert", new Assert()); set("collectgarbage", new VoidFunction()); set("dofile", new NotImplementedFunction()); set("error", new Error()); set("_G", this); set("getfenv", new NotImplementedFunction()); set("getmetatable", new GetMetatable()); set("ipairs", new IPairs()); set("loa...
Environment() { set("assert", new Assert()); set("collectgarbage", new VoidFunction()); set("dofile", new NotImplementedFunction()); set("error", new Error()); set("_G", this); set("getfenv", new NotImplementedFunction()); set("getmetatable", new GetMetatable()); set("ipairs", new IPairs()); set("loa...
diff --git a/src/programming/calculator/MainActivity.java b/src/programming/calculator/MainActivity.java index 69fc353..303f4b0 100644 --- a/src/programming/calculator/MainActivity.java +++ b/src/programming/calculator/MainActivity.java @@ -1,1498 +1,1498 @@ /***********************************************************...
true
true
public void send_equal(View view) { TextView display_main = (TextView) findViewById(R.id.display_main); TextView display_secondary = (TextView) findViewById(R.id.display_secondary); TextView display_operation = (TextView) findViewById(R.id.display_operation); //button locking Button d_button = (Button) findV...
public void send_equal(View view) { TextView display_main = (TextView) findViewById(R.id.display_main); TextView display_secondary = (TextView) findViewById(R.id.display_secondary); TextView display_operation = (TextView) findViewById(R.id.display_operation); //button locking Button d_button = (Button) findV...
diff --git a/Dashboard/src/dashboard/servlet/RegistrationServlet.java b/Dashboard/src/dashboard/servlet/RegistrationServlet.java index 68567b7..8f3b105 100644 --- a/Dashboard/src/dashboard/servlet/RegistrationServlet.java +++ b/Dashboard/src/dashboard/servlet/RegistrationServlet.java @@ -1,96 +1,96 @@ package dashboar...
true
true
private void addStudent(HttpServletRequest req, HttpServletResponse resp) throws IOException { String username = req.getParameter("username"); String email = req.getParameter("mail"); String firstName = req.getParameter("firstname"); String lastName = req.getParameter("lastname"); String password = req.ge...
private void addStudent(HttpServletRequest req, HttpServletResponse resp) throws IOException { String username = req.getParameter("username"); String email = req.getParameter("mail"); String firstName = req.getParameter("firstname"); String lastName = req.getParameter("lastname"); String password = req.ge...
diff --git a/svnkit/src/main/java/org/tmatesoft/svn/core/internal/wc17/db/statement/SVNWCDbSelectSHA1Checksum.java b/svnkit/src/main/java/org/tmatesoft/svn/core/internal/wc17/db/statement/SVNWCDbSelectSHA1Checksum.java index 5ec4f721e..9edf11540 100644 --- a/svnkit/src/main/java/org/tmatesoft/svn/core/internal/wc17/db/...
true
true
protected boolean isFilterPassed() throws SVNException { String md5Checksum = (String) getBind(1); return md5Checksum.equals(getColumnString(SVNWCDbSchema.PRISTINE__Fields.checksum)); }
protected boolean isFilterPassed() throws SVNException { String md5Checksum = (String) getBind(1); return md5Checksum.equals(getColumnString(SVNWCDbSchema.PRISTINE__Fields.md5_checksum)); }
diff --git a/src/ualberta/g12/adventurecreator/StoryEditActivity.java b/src/ualberta/g12/adventurecreator/StoryEditActivity.java index a9e4fb3..5e0c1ae 100644 --- a/src/ualberta/g12/adventurecreator/StoryEditActivity.java +++ b/src/ualberta/g12/adventurecreator/StoryEditActivity.java @@ -1,234 +1,234 @@ package ualb...
true
true
protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.android_story_editor); // Load our story from the intent Intent i = getIntent(); int id = i.getIntExtra(INTENT_STORY_ID, INVALID_STORY_ID); story = (Story...
protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.android_story_editor); // Load our story from the intent Intent i = getIntent(); int id = i.getIntExtra(INTENT_STORY_ID, INVALID_STORY_ID); story = (Story...
diff --git a/ccalc/rpc/src/main/java/org/gwtapp/ccalc/rpc/proc/calculator/Calculator.java b/ccalc/rpc/src/main/java/org/gwtapp/ccalc/rpc/proc/calculator/Calculator.java index 4eb2df12..65c31490 100644 --- a/ccalc/rpc/src/main/java/org/gwtapp/ccalc/rpc/proc/calculator/Calculator.java +++ b/ccalc/rpc/src/main/java/org/gw...
true
true
private void calculate(Currency currency) { List<Point> plus = new ArrayList<Point>(); List<Point> minus = new ArrayList<Point>(); if (currency != baseCurrency) { double SP = 0.0; double SM = 0.0; for (int i = 0; i < calculations.size(); i++) { Calculation calculation = calculations.get(i); if (...
private void calculate(Currency currency) { List<Point> plus = new ArrayList<Point>(); List<Point> minus = new ArrayList<Point>(); if (currency != baseCurrency) { double SP = 0.0; double SM = 0.0; for (int i = 0; i < calculations.size(); i++) { Calculation calculation = calculations.get(i); if (...
diff --git a/code/org.flupes.ljf.grannyroomba.pctests/src/org/flupes/ljf/grannyroomba/pctests/GrannyRoombaKeyboardUi.java b/code/org.flupes.ljf.grannyroomba.pctests/src/org/flupes/ljf/grannyroomba/pctests/GrannyRoombaKeyboardUi.java index dd3fa17..890df4d 100644 --- a/code/org.flupes.ljf.grannyroomba.pctests/src/org/fl...
true
true
public static void main(String[] args) { Mode connectMode = Mode.PRIVATE; String modeStr = System.getProperties().getProperty("connection"); if ( modeStr != null ) { // override default connection mode if ( 0 == modeStr.compareToIgnoreCase(Mode.LOCAL.mode) ) { connectMode = Mode.LOCAL; } else if (...
public static void main(String[] args) { Mode connectMode = Mode.PRIVATE; String modeStr = System.getProperties().getProperty("connection"); if ( modeStr != null ) { // override default connection mode if ( 0 == modeStr.compareToIgnoreCase(Mode.LOCAL.mode) ) { connectMode = Mode.LOCAL; } else if (...
diff --git a/org.thingml.compilers/src/test/java/org/thingml/graphexport/test/StandaloneParserTestLoadFile.java b/org.thingml.compilers/src/test/java/org/thingml/graphexport/test/StandaloneParserTestLoadFile.java index 28dc1a0d8..b52855096 100644 --- a/org.thingml.compilers/src/test/java/org/thingml/graphexport/test/St...
false
true
public void runTest() throws IOException { // Register the generated package and the XMI Factory EPackage.Registry.INSTANCE.put(ThingmlPackage.eNS_URI, ThingmlPackage.eINSTANCE); Resource.Factory.Registry.INSTANCE.getExtensionToFactoryMap().put("thingml", new ThingmlResourceFactory()); ...
public void runTest() throws IOException { // Register the generated package and the XMI Factory EPackage.Registry.INSTANCE.put(ThingmlPackage.eNS_URI, ThingmlPackage.eINSTANCE); Resource.Factory.Registry.INSTANCE.getExtensionToFactoryMap().put("thingml", new ThingmlResourceFactory()); ...
diff --git a/phone/com/android/internal/policy/impl/LockScreen.java b/phone/com/android/internal/policy/impl/LockScreen.java index 4244a8e..5fdf00e 100644 --- a/phone/com/android/internal/policy/impl/LockScreen.java +++ b/phone/com/android/internal/policy/impl/LockScreen.java @@ -1,860 +1,862 @@ /* * Copyright (C) 2...
true
true
LockScreen(Context context, Configuration configuration, LockPatternUtils lockPatternUtils, KeyguardUpdateMonitor updateMonitor, KeyguardScreenCallback callback) { super(context); mLockPatternUtils = lockPatternUtils; mUpdateMonitor = updateMonitor; mCallback ...
LockScreen(Context context, Configuration configuration, LockPatternUtils lockPatternUtils, KeyguardUpdateMonitor updateMonitor, KeyguardScreenCallback callback) { super(context); mLockPatternUtils = lockPatternUtils; mUpdateMonitor = updateMonitor; mCallback ...
diff --git a/src/com/connectsy/notifications/NotificationService.java b/src/com/connectsy/notifications/NotificationService.java index b59f4d8..782716b 100644 --- a/src/com/connectsy/notifications/NotificationService.java +++ b/src/com/connectsy/notifications/NotificationService.java @@ -1,50 +1,51 @@ package com.conn...
true
true
public void onStart(Intent intent, int startId) { if (intent.getAction().equals("com.connectsy.START_NOTIFICATIONS")) { if (!listener.isRunning()) listener.start(this); } super.onStart(intent, startId); }
public void onStart(Intent intent, int startId) { String action = intent.getAction(); if (action != null || !action.equals("com.connectsy.STOP_NOTIFICATIONS")) { if (!listener.isRunning()) listener.start(this); } super.onStart(intent, startId); }
diff --git a/src/org/apache/xerces/impl/XMLVersionDetector.java b/src/org/apache/xerces/impl/XMLVersionDetector.java index ad16a1ea7..9fa44308e 100644 --- a/src/org/apache/xerces/impl/XMLVersionDetector.java +++ b/src/org/apache/xerces/impl/XMLVersionDetector.java @@ -1,266 +1,268 @@ /* * The Apache Software License...
false
true
public short determineDocVersion(XMLInputSource inputSource) throws IOException { fEncoding = fEntityManager.setupCurrentEntity(fXMLSymbol, inputSource, false, true); // must assume 1.1 at this stage so that whitespace // handling is correct in the XML decl... fEntityManager.setScan...
public short determineDocVersion(XMLInputSource inputSource) throws IOException { fEncoding = fEntityManager.setupCurrentEntity(fXMLSymbol, inputSource, false, true); // must assume 1.1 at this stage so that whitespace // handling is correct in the XML decl... fEntityManager.setScan...
diff --git a/src/minecraft/biomesoplenty/items/ItemBOPFood.java b/src/minecraft/biomesoplenty/items/ItemBOPFood.java index e3818c504..fb2133301 100644 --- a/src/minecraft/biomesoplenty/items/ItemBOPFood.java +++ b/src/minecraft/biomesoplenty/items/ItemBOPFood.java @@ -1,230 +1,230 @@ package biomesoplenty.items; im...
false
true
private ItemStack addFoodAndSaturation(World world, ItemStack itemstack, EntityPlayer player, int food, float saturation) { --itemstack.stackSize; FoodStats foodstats = player.getFoodStats(); Field flfield = null; Field[] fields = foodstats.getClass().getDeclaredFields(); for ...
private ItemStack addFoodAndSaturation(World world, ItemStack itemstack, EntityPlayer player, int food, float saturation) { --itemstack.stackSize; FoodStats foodstats = player.getFoodStats(); Field flfield = null; Field[] fields = foodstats.getClass().getDeclaredFields(); for ...
diff --git a/src/main/java/com/anjuke/romar/http/jetty/RomarRESTMain.java b/src/main/java/com/anjuke/romar/http/jetty/RomarRESTMain.java index e30a372..4d4314d 100644 --- a/src/main/java/com/anjuke/romar/http/jetty/RomarRESTMain.java +++ b/src/main/java/com/anjuke/romar/http/jetty/RomarRESTMain.java @@ -1,76 +1,81 @@ ...
true
true
public static void main(String[] args) throws Exception { java.util.logging.Logger rootLogger = java.util.logging.LogManager .getLogManager().getLogger(""); java.util.logging.Handler[] logHandlers = rootLogger.getHandlers(); for (int i = 0; i < logHandlers.length; i++) { ...
public static void main(String[] args) throws Exception { java.util.logging.Logger rootLogger = java.util.logging.LogManager .getLogManager().getLogger(""); java.util.logging.Handler[] logHandlers = rootLogger.getHandlers(); for (int i = 0; i < logHandlers.length; i++) { ...
diff --git a/src/main/java/com/wormhole_xtreme/wormhole/command/Complete.java b/src/main/java/com/wormhole_xtreme/wormhole/command/Complete.java index 38f8a36..8730b05 100644 --- a/src/main/java/com/wormhole_xtreme/wormhole/command/Complete.java +++ b/src/main/java/com/wormhole_xtreme/wormhole/command/Complete.java @@ ...
true
true
private static boolean doComplete(Player player, String[] args) { final Player p = player; final String[] a = args; final String name = args[0].trim().replace("\n", "").replace("\r", ""); if ( name.length() < 12) { final Stargate dupName = StargateManager.get...
private static boolean doComplete(Player player, String[] args) { final Player p = player; final String[] a = args; final String name = args[0].trim().replace("\n", "").replace("\r", ""); if ( name.length() < 12) { final Stargate dupName = StargateManager.get...
diff --git a/hazelcast-hibernate/src/main/java/com/hazelcast/hibernate/local/LocalRegionCache.java b/hazelcast-hibernate/src/main/java/com/hazelcast/hibernate/local/LocalRegionCache.java index 428c489aab..fb45dceccf 100644 --- a/hazelcast-hibernate/src/main/java/com/hazelcast/hibernate/local/LocalRegionCache.java +++ b...
true
true
void cleanup() { final int maxSize; final long timeToLive; if (config != null) { maxSize = config.getMaxSizeConfig().getSize(); timeToLive = config.getTimeToLiveSeconds() * 1000L; } else { maxSize = 100000; timeToLive = CacheEnvironment...
void cleanup() { final int maxSize; final long timeToLive; if (config != null) { maxSize = config.getMaxSizeConfig().getSize(); timeToLive = config.getTimeToLiveSeconds() * 1000L; } else { maxSize = 100000; timeToLive = CacheEnvironment...
diff --git a/de.unisiegen.gtitool.ui/source/de/unisiegen/gtitool/ui/style/parser/StyledParserDocument.java b/de.unisiegen.gtitool.ui/source/de/unisiegen/gtitool/ui/style/parser/StyledParserDocument.java index 735b7435..a2d65eb3 100644 --- a/de.unisiegen.gtitool.ui/source/de/unisiegen/gtitool/ui/style/parser/StyledParse...
false
true
public final Object parse () { this.externExceptionList.clear (); this.parsedObject = null; setCharacterAttributes ( 0, getLength (), this.normalSet, true ); ArrayList < ScannerException > newExceptionList = new ArrayList < ScannerException > (); try { /* * Start scanner ...
public final Object parse () { this.exceptionList.clear (); this.externExceptionList.clear (); this.parsedObject = null; setCharacterAttributes ( 0, getLength (), this.normalSet, true ); try { /* * Start scanner */ int offset = 0; String content = getText ( o...
diff --git a/TechGuard/x1337x/Archers/Arrow/ArrowHandler.java b/TechGuard/x1337x/Archers/Arrow/ArrowHandler.java index f1631a0..5fb7103 100644 --- a/TechGuard/x1337x/Archers/Arrow/ArrowHandler.java +++ b/TechGuard/x1337x/Archers/Arrow/ArrowHandler.java @@ -1,69 +1,70 @@ package TechGuard.x1337x.Archers.Arrow; impor...
true
true
public static void onArrowDestroy(EntityDamageByProjectileEvent event){ Arrow arrow = (Arrow)((CraftArrow)event.getProjectile()).getHandle(); event.setDamage(arrow.material.getDamageValue()); arrow.destroy(); if(arrow.material == EnumBowMaterial.FIRE){ event.getEntity().setFireTicks(80); } else if(arr...
public static void onArrowDestroy(EntityDamageByProjectileEvent event){ Arrow arrow = (Arrow)((CraftArrow)event.getProjectile()).getHandle(); event.setDamage(arrow.material.getDamageValue()); arrow.destroy(); if(arrow.material == EnumBowMaterial.FIRE){ event.getEntity().setFireTicks(80); } else if(arr...
diff --git a/OpenSudoku/src/cz/romario/opensudoku/gui/SudokuListActivity.java b/OpenSudoku/src/cz/romario/opensudoku/gui/SudokuListActivity.java index a92225a..ac96426 100644 --- a/OpenSudoku/src/cz/romario/opensudoku/gui/SudokuListActivity.java +++ b/OpenSudoku/src/cz/romario/opensudoku/gui/SudokuListActivity.java @@ ...
true
true
protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setDefaultKeyMode(DEFAULT_KEYS_SHORTCUT); Intent intent = getIntent(); if (intent.hasExtra(EXTRAS_FOLDER_ID)) { mFolderID = intent.getLongExtra(EXTRAS_FOLDER_ID, 0); } else { Log.d(TAG, "No 'folder_id' extra prov...
protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setDefaultKeyMode(DEFAULT_KEYS_SHORTCUT); Intent intent = getIntent(); if (intent.hasExtra(EXTRAS_FOLDER_ID)) { mFolderID = intent.getLongExtra(EXTRAS_FOLDER_ID, 0); } else { Log.d(TAG, "No 'folder_id' extra prov...
diff --git a/trunk/waterview/src/main/java/com/cyclopsgroup/waterview/core/DefaultModuleManager.java b/trunk/waterview/src/main/java/com/cyclopsgroup/waterview/core/DefaultModuleManager.java index 9e3101b6..e6cccdb2 100644 --- a/trunk/waterview/src/main/java/com/cyclopsgroup/waterview/core/DefaultModuleManager.java +++...
true
true
public Path parsePath(String modulePath) { String packageAlias = defaultPackageAlias; String packageName = (String) packageNames.get(packageAlias); if (StringUtils.isEmpty(modulePath)) { return new DefaultPath(packageName, packageAlias, "/Index.jelly"); } ...
public Path parsePath(String modulePath) { String packageAlias = defaultPackageAlias; String packageName = (String) packageNames.get(packageAlias); if (StringUtils.isEmpty(modulePath)) { return new DefaultPath(packageName, packageAlias, "/Index.jelly"); } ...
diff --git a/uk.ac.diamond.scisoft.analysis.test/src/uk/ac/diamond/scisoft/analysis/io/RawBinaryTest.java b/uk.ac.diamond.scisoft.analysis.test/src/uk/ac/diamond/scisoft/analysis/io/RawBinaryTest.java index 35565ef9e..af7a24fc9 100644 --- a/uk.ac.diamond.scisoft.analysis.test/src/uk/ac/diamond/scisoft/analysis/io/RawBi...
false
true
public void test2DSaveFile() throws ScanFileHolderException { String filePath2D = "test2DSaveFile.raw"; DataHolder dh = new DataHolder(); data = DatasetUtils.linSpace(0, range, range, AbstractDataset.FLOAT64); data.setShape(sizex, sizey); data.setName("test 2D"); testValue1 = data.getDouble(sizex-1); tes...
public void test2DSaveFile() throws ScanFileHolderException { String filePath2D = "test2DSaveFile.raw"; DataHolder dh = new DataHolder(); data = DatasetUtils.linSpace(0, range, range, AbstractDataset.FLOAT64); data.setShape(sizex, sizey); data.setName("test 2D"); testValue1 = data.getDouble(sizex-1, 0); ...
diff --git a/src/com/android/browser/Controller.java b/src/com/android/browser/Controller.java index 02f1e7c4..b79acabf 100644 --- a/src/com/android/browser/Controller.java +++ b/src/com/android/browser/Controller.java @@ -1,2543 +1,2539 @@ /* * Copyright (C) 2010 The Android Open Source Project * * Licensed und...
true
true
protected void onCreateContextMenu(ContextMenu menu, View v, ContextMenuInfo menuInfo) { if (v instanceof TitleBarBase) { return; } if (!(v instanceof WebView)) { return; } final WebView webview = (WebView) v; WebView.HitTestResult ...
protected void onCreateContextMenu(ContextMenu menu, View v, ContextMenuInfo menuInfo) { if (v instanceof TitleBarBase) { return; } if (!(v instanceof WebView)) { return; } final WebView webview = (WebView) v; WebView.HitTestResult ...
diff --git a/org.eclipse.mylyn.bugzilla.ui/src/org/eclipse/mylyn/internal/bugzilla/ui/tasklist/BugzillaRepositorySettingsPage.java b/org.eclipse.mylyn.bugzilla.ui/src/org/eclipse/mylyn/internal/bugzilla/ui/tasklist/BugzillaRepositorySettingsPage.java index c8694d089..f09c9f2f3 100644 --- a/org.eclipse.mylyn.bugzilla.ui...
true
true
protected void createAdditionalControls(Composite parent) { addRepositoryTemplatesToServerUrlCombo(); Label shortLoginLabel = new Label(parent, SWT.NONE); shortLoginLabel.setText(LABEL_SHORT_LOGINS); cleanQAContact = new Button(parent, SWT.CHECK | SWT.LEFT); if (repository != null) { boolean shortLogin = ...
protected void createAdditionalControls(Composite parent) { addRepositoryTemplatesToServerUrlCombo(); Label shortLoginLabel = new Label(parent, SWT.NONE); shortLoginLabel.setText(LABEL_SHORT_LOGINS); cleanQAContact = new Button(parent, SWT.CHECK | SWT.LEFT); if (repository != null) { boolean shortLogin = ...
diff --git a/modules/activiti-webapp-rest/src/main/java/org/activiti/rest/api/cycle/FolderPost.java b/modules/activiti-webapp-rest/src/main/java/org/activiti/rest/api/cycle/FolderPost.java index 3e51aef65..8c10ae5e8 100644 --- a/modules/activiti-webapp-rest/src/main/java/org/activiti/rest/api/cycle/FolderPost.java +++ ...
true
true
void execute(ActivitiRequest req, Status status, Cache cache, Map<String, Object> model) { ActivitiRequestObject obj = req.getBody(); String connectorId = req.getMandatoryString(obj, "connectorId"); String parentFolderId = req.getMandatoryString(obj, "parentFolderId"); String name = req.getMandatoryS...
void execute(ActivitiRequest req, Status status, Cache cache, Map<String, Object> model) { ActivitiRequestObject obj = req.getBody(); String connectorId = req.getMandatoryString(obj, "connectorId"); String parentFolderId = req.getMandatoryString(obj, "parentFolderId"); String name = req.getMandatoryS...
diff --git a/src/java/azkaban/utils/WebUtils.java b/src/java/azkaban/utils/WebUtils.java index 95fc6aa0..31322e63 100644 --- a/src/java/azkaban/utils/WebUtils.java +++ b/src/java/azkaban/utils/WebUtils.java @@ -1,173 +1,177 @@ /* * Copyright 2012 LinkedIn Corp. * * Licensed under the Apache License, Version 2.0...
false
true
public String formatPeriod(ReadablePeriod period) { String periodStr = "n"; if (period == null) { return periodStr; } if (period.get(DurationFieldType.months()) > 0) { int months = period.get(DurationFieldType.months()); periodStr = months + " mont...
public String formatPeriod(ReadablePeriod period) { String periodStr = "null"; if (period == null) { return periodStr; } if (period.get(DurationFieldType.years()) > 0) { int years = period.get(DurationFieldType.years()); periodStr = years + " year(s)"; ...
diff --git a/src/main/java/io/scif/ome/formats/OMEXMLFormat.java b/src/main/java/io/scif/ome/formats/OMEXMLFormat.java index 086146a..4bc7e6e 100644 --- a/src/main/java/io/scif/ome/formats/OMEXMLFormat.java +++ b/src/main/java/io/scif/ome/formats/OMEXMLFormat.java @@ -1,847 +1,848 @@ /* * #%L * SCIFIO support for ...
true
true
public ByteArrayPlane openPlane(final int imageIndex, final long planeIndex, final ByteArrayPlane plane, final long[] offsets, final long[] lengths, final SCIFIOConfig config) throws FormatException, IOException { final byte[] buf = plane.getBytes(); final Metadata meta = getMetadata(); FormatToo...
public ByteArrayPlane openPlane(final int imageIndex, final long planeIndex, final ByteArrayPlane plane, final long[] offsets, final long[] lengths, final SCIFIOConfig config) throws FormatException, IOException { final byte[] buf = plane.getBytes(); final Metadata meta = getMetadata(); FormatToo...
diff --git a/CodeGenerator/src/visitors/PossessionVisitor.java b/CodeGenerator/src/visitors/PossessionVisitor.java index b99b4d5..5fc8264 100644 --- a/CodeGenerator/src/visitors/PossessionVisitor.java +++ b/CodeGenerator/src/visitors/PossessionVisitor.java @@ -1,373 +1,386 @@ package visitors; import java.util.List...
false
true
public void visit(Period period) { currentPossession = new Possession(); boolean madeShot = false; boolean missedFirstFT = false; ListIterator<Play> playIterator = period.getPlays().listIterator(); while (playIterator.hasNext()) { Play p = playIterator.next(); currentPlay = p; if (!curren...
public void visit(Period period) { currentPossession = new Possession(); boolean madeShot = false; boolean missedFirstFT = false; ListIterator<Play> playIterator = period.getPlays().listIterator(); while (playIterator.hasNext()) { Play p = playIterator.next(); currentPlay = p; if (!curren...
diff --git a/src/main/java/org/apache/log4j/spi/LoggingEvent.java b/src/main/java/org/apache/log4j/spi/LoggingEvent.java index 2bacb50a..1069ef6b 100644 --- a/src/main/java/org/apache/log4j/spi/LoggingEvent.java +++ b/src/main/java/org/apache/log4j/spi/LoggingEvent.java @@ -1,639 +1,638 @@ /* * Licensed to the Apach...
true
true
void readLevel(ObjectInputStream ois) throws java.io.IOException, ClassNotFoundException { int p = ois.readInt(); try { String className = (String) ois.readObject(); if(className == null) { level = Level.toLevel(p); } else { Method m = (Method) methodCache.get(classN...
void readLevel(ObjectInputStream ois) throws java.io.IOException, ClassNotFoundException { int p = ois.readInt(); try { String className = (String) ois.readObject(); if(className == null) { level = Level.toLevel(p); } else { Method m = (Method) methodCache.get(classN...
diff --git a/main/src/cgeo/geocaching/export/GpxExport.java b/main/src/cgeo/geocaching/export/GpxExport.java index e7579f30d..554db2ca9 100644 --- a/main/src/cgeo/geocaching/export/GpxExport.java +++ b/main/src/cgeo/geocaching/export/GpxExport.java @@ -1,328 +1,328 @@ package cgeo.geocaching.export; import cgeo.geo...
false
true
protected Boolean doInBackground(Void... params) { // quick check for being able to write the GPX file if (!Environment.getExternalStorageState().equals(Environment.MEDIA_MOUNTED)) { return false; } Writer gpx = null; try { ...
protected Boolean doInBackground(Void... params) { // quick check for being able to write the GPX file if (!Environment.getExternalStorageState().equals(Environment.MEDIA_MOUNTED)) { return false; } Writer gpx = null; try { ...
diff --git a/src/org/broeuschmeul/android/gps/nmea/util/NmeaParser.java b/src/org/broeuschmeul/android/gps/nmea/util/NmeaParser.java index d226a0a..2c5db10 100644 --- a/src/org/broeuschmeul/android/gps/nmea/util/NmeaParser.java +++ b/src/org/broeuschmeul/android/gps/nmea/util/NmeaParser.java @@ -1,563 +1,563 @@ /* *...
false
true
public String parseNmeaSentence(String gpsSentence) throws SecurityException { String nmeaSentence = null; Log.v(LOG_TAG, "data: "+System.currentTimeMillis()+" "+gpsSentence); Pattern xx = Pattern.compile("\\$([^*$]*)\\*([0-9A-F][0-9A-F])?\r\n"); Matcher m = xx.matcher(gpsSentence); if (m.matches()){ nmea...
public String parseNmeaSentence(String gpsSentence) throws SecurityException { String nmeaSentence = null; Log.v(LOG_TAG, "data: "+System.currentTimeMillis()+" "+gpsSentence); Pattern xx = Pattern.compile("\\$([^*$]*)(?:\\*([0-9A-F][0-9A-F]))?\r\n"); Matcher m = xx.matcher(gpsSentence); if (m.matches()){ ...
diff --git a/client/ui/src/main/java/de/objectcode/time4u/client/ui/dialogs/WorkItemDialog.java b/client/ui/src/main/java/de/objectcode/time4u/client/ui/dialogs/WorkItemDialog.java index c979cc4d..77642a46 100644 --- a/client/ui/src/main/java/de/objectcode/time4u/client/ui/dialogs/WorkItemDialog.java +++ b/client/ui/sr...
true
true
protected Control createDialogArea(final Composite parent) { final Composite composite = (Composite) super.createDialogArea(parent); final Composite root = new Composite(composite, SWT.NONE); root.setLayout(new GridLayout(4, false)); root.setLayoutData(new GridData(GridData.FILL_BOTH)); final L...
protected Control createDialogArea(final Composite parent) { final Composite composite = (Composite) super.createDialogArea(parent); final Composite root = new Composite(composite, SWT.NONE); root.setLayout(new GridLayout(4, false)); root.setLayoutData(new GridData(GridData.FILL_BOTH)); final L...
diff --git a/debug/org.eclipse.ptp.debug.ui/src/org/eclipse/ptp/debug/internal/ui/UIDebugManager.java b/debug/org.eclipse.ptp.debug.ui/src/org/eclipse/ptp/debug/internal/ui/UIDebugManager.java index 4395c1f58..383078eb3 100644 --- a/debug/org.eclipse.ptp.debug.ui/src/org/eclipse/ptp/debug/internal/ui/UIDebugManager.jav...
true
true
private synchronized void handleDebugEvents(IPCDIEvent[] events, IProgressMonitor monitor) { for (int i = 0; i < events.length; i++) { Object condition = null; IPCDIEvent event = events[i]; System.out.println("===================== event: " + event); // all events must be running under a job IPJob job...
private synchronized void handleDebugEvents(IPCDIEvent[] events, IProgressMonitor monitor) { for (int i = 0; i < events.length; i++) { Object condition = null; IPCDIEvent event = events[i]; System.out.println("===================== event: " + event); // all events must be running under a job IPJob job...
diff --git a/apps/SdkSetup/src/com/android/sdksetup/DefaultActivity.java b/apps/SdkSetup/src/com/android/sdksetup/DefaultActivity.java index db6385ca..56f43a46 100644 --- a/apps/SdkSetup/src/com/android/sdksetup/DefaultActivity.java +++ b/apps/SdkSetup/src/com/android/sdksetup/DefaultActivity.java @@ -1,57 +1,55 @@ /*...
false
true
protected void onCreate(Bundle icicle) { super.onCreate(icicle); // Add a persistent setting to allow other apps to know the device has been provisioned. Settings.Secure.putInt(getContentResolver(), Settings.Secure.DEVICE_PROVISIONED, 1); // Enable the GPS. // Not n...
protected void onCreate(Bundle icicle) { super.onCreate(icicle); // Add a persistent setting to allow other apps to know the device has been provisioned. Settings.Secure.putInt(getContentResolver(), Settings.Secure.DEVICE_PROVISIONED, 1); // Enable the GPS. // Not n...
diff --git a/org.maven.ide.eclipse.integration.tests/src/org/maven/ide/eclipse/integration/tests/wtp/MEclipse173SimpleWebAppTest.java b/org.maven.ide.eclipse.integration.tests/src/org/maven/ide/eclipse/integration/tests/wtp/MEclipse173SimpleWebAppTest.java index 65d93d9d..8091add2 100644 --- a/org.maven.ide.eclipse.int...
true
true
public void testSimpleWebApp() throws Exception { installTomcat6(); // Import the test project tempDir = doImport("projects/ch07project.zip"); // Add the hsqldb.jar to the dependencies so it can be found at runtime IProject simpleWebAppProject = ResourcesPlugin.getWorkspace().getRoot().getProje...
public void testSimpleWebApp() throws Exception { installTomcat6(); // Import the test project tempDir = doImport("projects/ch07project.zip"); // Add the hsqldb.jar to the dependencies so it can be found at runtime IProject simpleWebAppProject = ResourcesPlugin.getWorkspace().getRoot().getProje...
diff --git a/br.org.archimedes.intersector.circleline/trunk/src/br/org/archimedes/intersector/circleline/CircleLineIntersector.java b/br.org.archimedes.intersector.circleline/trunk/src/br/org/archimedes/intersector/circleline/CircleLineIntersector.java index e1d9276a..83bd936b 100644 --- a/br.org.archimedes.intersector...
true
true
public Collection<Point> getIntersections(Element element, Element otherElement) throws NullArgumentException { if (element == null || otherElement == null) throw new NullArgumentException(); Collection<Point> intersections = new ArrayList<Point>(); Line line; Circle circle; if (element.getClass(...
public Collection<Point> getIntersections(Element element, Element otherElement) throws NullArgumentException { if (element == null || otherElement == null) throw new NullArgumentException(); Collection<Point> intersections = new ArrayList<Point>(); Line line; Circle circle; if (element.getClass(...
diff --git a/src/main/java/de/jardas/migrator/internal/MigrationExecution.java b/src/main/java/de/jardas/migrator/internal/MigrationExecution.java index ffeb0d5..7d55a3e 100644 --- a/src/main/java/de/jardas/migrator/internal/MigrationExecution.java +++ b/src/main/java/de/jardas/migrator/internal/MigrationExecution.java...
false
true
public void execute() throws SQLException { final List<MigrationSource> selectedMigrations = selectMigrations(migrations); if (selectedMigrations.isEmpty()) { LOG.info("Database is up to date, no migration required."); return; } LOG.info("Going to execute {} migrations.", selectedMigrations.size()); ...
public void execute() throws SQLException { final List<MigrationSource> selectedMigrations = selectMigrations(migrations); if (selectedMigrations.isEmpty()) { LOG.info("Database is up to date, no migration required."); return; } LOG.info("Going to execute {} migrations.", selectedMigrations.size()); ...
diff --git a/modules/elasticsearch/src/main/java/org/elasticsearch/transport/netty/MessageChannelHandler.java b/modules/elasticsearch/src/main/java/org/elasticsearch/transport/netty/MessageChannelHandler.java index 35b4595d7c9..9cef4537173 100644 --- a/modules/elasticsearch/src/main/java/org/elasticsearch/transport/net...
false
true
@Override public void messageReceived(ChannelHandlerContext ctx, MessageEvent event) throws Exception { ChannelBuffer buffer = (ChannelBuffer) event.getMessage(); int size = buffer.getInt(buffer.readerIndex() - 4); transportServiceAdapter.received(size + 4); int markedReaderIndex ...
@Override public void messageReceived(ChannelHandlerContext ctx, MessageEvent event) throws Exception { ChannelBuffer buffer = (ChannelBuffer) event.getMessage(); int size = buffer.getInt(buffer.readerIndex() - 4); transportServiceAdapter.received(size + 4); int markedReaderIndex ...
diff --git a/plugins/com.aptana.editor.erb/src/com/aptana/editor/erb/html/outline/RHTMLOutlineLabelProvider.java b/plugins/com.aptana.editor.erb/src/com/aptana/editor/erb/html/outline/RHTMLOutlineLabelProvider.java index fb334f4..9043f54 100644 --- a/plugins/com.aptana.editor.erb/src/com/aptana/editor/erb/html/outline/...
true
true
private String getDisplayText(ERBScript script) { StringBuilder text = new StringBuilder(); text.append(script.getStartTag()); String source = new String(fParseState.getSource()); // locates the ruby source IRubyScript ruby = script.getScript(); source = source.substring(ruby.getStartingOffset(), ruby.get...
private String getDisplayText(ERBScript script) { StringBuilder text = new StringBuilder(); text.append(script.getStartTag()); String source = new String(fParseState.getSource()); // locates the ruby source IRubyScript ruby = script.getScript(); source = source.substring(ruby.getStartingOffset(), Math.min...
diff --git a/src/common/com/ForgeEssentials/commands/CommandWarp.java b/src/common/com/ForgeEssentials/commands/CommandWarp.java index 10907809c..502fd6443 100644 --- a/src/common/com/ForgeEssentials/commands/CommandWarp.java +++ b/src/common/com/ForgeEssentials/commands/CommandWarp.java @@ -1,144 +1,144 @@ package co...
false
true
public void processCommandPlayer(EntityPlayer sender, String[] args) { NBTTagCompound warpdata = DataStorage.getData("warpdata"); if(args.length == 0) { sender.sendChatToPlayer(Localization.get("command.warp.list")); String msg = ""; for(Object temp : warpdata.getTags()) { NBTTagCompound warp = ...
public void processCommandPlayer(EntityPlayer sender, String[] args) { NBTTagCompound warpdata = DataStorage.getData("warpdata"); if(args.length == 0) { sender.sendChatToPlayer(Localization.get("command.warp.list")); String msg = ""; for(Object temp : warpdata.getTags()) { NBTTagCompound warp = ...
diff --git a/bootstrap/src/main/java/org/soluvas/web/bootstrap/widget/PersonSelect2.java b/bootstrap/src/main/java/org/soluvas/web/bootstrap/widget/PersonSelect2.java index 6e0e2c2c..96ca9a4f 100644 --- a/bootstrap/src/main/java/org/soluvas/web/bootstrap/widget/PersonSelect2.java +++ b/bootstrap/src/main/java/org/soluv...
true
true
protected void onInitialize() { super.onInitialize(); setProvider(new PersonChoiceProvider()); getSettings().setFormatResult( "function(object, container, query) {" + "container.append($('<img>').css({float: 'left'}).attr({src: object.photoUri, width: 50, height: 50}));" + "container.append($('<img>')...
protected void onInitialize() { super.onInitialize(); setProvider(new PersonChoiceProvider()); getSettings().setFormatResult( "function(object, container, query) {" + "container.append($('<img>').css({float: 'left'}).attr({src: object.photoUri, width: 50, height: 50}));" + "container.append($('<img>')...
diff --git a/src/test/java/MyUnitTest.java b/src/test/java/MyUnitTest.java index b8f6075..d790ee1 100644 --- a/src/test/java/MyUnitTest.java +++ b/src/test/java/MyUnitTest.java @@ -1,13 +1,13 @@ package test.java; import org.junit.*; public class MyUnitTest { @Test public void testFirstTest() { Assert....
true
true
public void testFirstTest() { Assert.assertEquals(4, 2 + 2); Assert.assertEquals("Hello World", "Goodbye Cruel World"); }
public void testFirstTest() { Assert.assertEquals(4, 2 + 2); Assert.assertEquals("Hello World", "Hello World"); }
diff --git a/core/cc.warlock.rcp.userstreams/src/cc/warlock/rcp/userstreams/ui/views/UserStream.java b/core/cc.warlock.rcp.userstreams/src/cc/warlock/rcp/userstreams/ui/views/UserStream.java index 26aa4bdf..6fc17661 100644 --- a/core/cc.warlock.rcp.userstreams/src/cc/warlock/rcp/userstreams/ui/views/UserStream.java +++...
false
true
protected void appendText (WarlockString string) { // Add our buffer to the beginning if we have any. if (this.lineBuffer != null) { this.lineBuffer.append(string); string = this.lineBuffer; this.lineBuffer = null; } // Remove the end of our line if it isn't closed by a "\n" int lastReturn = string...
protected void appendText (WarlockString string) { // Add our buffer to the beginning if we have any. if (this.lineBuffer != null) { this.lineBuffer.append(string); string = this.lineBuffer; this.lineBuffer = null; } // Remove the end of our line if it isn't closed by a "\n" int lastReturn = string...
diff --git a/src/com/example/hushcal/SyncCal.java b/src/com/example/hushcal/SyncCal.java index eb608e3..bcae4ca 100644 --- a/src/com/example/hushcal/SyncCal.java +++ b/src/com/example/hushcal/SyncCal.java @@ -1,271 +1,272 @@ package com.example.hushcal; import java.util.ArrayList; import java.util.Calendar; impor...
true
true
public void onItemSelected(AdapterView<?> parent, View view, int pos, long id) { List<Event> tmp_events_list = handler.getAllEvents(); //turn this into event_status_map event_status_map = new HashMap<String, String>(); for (Event event : tmp_events_list) { String title = event.getName(); Stri...
public void onItemSelected(AdapterView<?> parent, View view, int pos, long id) { List<Event> tmp_events_list = handler.getAllEvents(); //turn this into event_status_map event_status_map = new HashMap<String, String>(); for (Event event : tmp_events_list) { String title = event.getName(); Stri...