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/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasks/ui/ScheduleTaskMenuContributor.java b/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasks/ui/ScheduleTaskMenuContributor.java index 8de5e3ca5..432eea9e6 100644 --- a/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasks/u...
false
true
public MenuManager getSubMenuManager(final List<AbstractTaskContainer> selectedElements) { final TaskListManager tasklistManager = TasksUiPlugin.getTaskListManager(); final MenuManager subMenuManager = new MenuManager(LABEL_REMINDER); subMenuManager.setVisible(selectedElements.size() > 0 && selectedElements.g...
public MenuManager getSubMenuManager(final List<AbstractTaskContainer> selectedElements) { final TaskListManager tasklistManager = TasksUiPlugin.getTaskListManager(); final MenuManager subMenuManager = new MenuManager(LABEL_REMINDER); subMenuManager.setVisible(selectedElements.size() > 0 && selectedElements.g...
diff --git a/alchemy-midlet/src/alchemy/fs/rms/FS.java b/alchemy-midlet/src/alchemy/fs/rms/FS.java index 76c1a68..fcef9ff 100644 --- a/alchemy-midlet/src/alchemy/fs/rms/FS.java +++ b/alchemy-midlet/src/alchemy/fs/rms/FS.java @@ -1,575 +1,575 @@ /* * This file is a part of Alchemy OS project. * Copyright (C) 2011 ...
true
true
public synchronized void move(File source, File dest) throws IOException { if (source.parent().equals(dest.parent())) { // move within one directory RSFD parentfd = getFD(source.parent()); RSDirectory parentdir = new RSDirectory(parentfd); int index = parentdir.getIndex(dest.name()); if (index >= 0) t...
public synchronized void move(File source, File dest) throws IOException { if (source.parent().equals(dest.parent())) { // move within one directory RSFD parentfd = getFD(source.parent()); RSDirectory parentdir = new RSDirectory(parentfd); int index = parentdir.getIndex(dest.name()); if (index >= 0) t...
diff --git a/orcid-web/src/main/java/org/orcid/pojo/ajaxForm/Contributor.java b/orcid-web/src/main/java/org/orcid/pojo/ajaxForm/Contributor.java index 097c071ae0..2a00f17388 100644 --- a/orcid-web/src/main/java/org/orcid/pojo/ajaxForm/Contributor.java +++ b/orcid-web/src/main/java/org/orcid/pojo/ajaxForm/Contributor.ja...
true
true
public static Contributor valueOf(org.orcid.jaxb.model.message.Contributor contributor) { Contributor c = new Contributor(); if (contributor != null) { if (contributor.getContributorAttributes() != null) { contributor.getContributorAttributes(); if (contri...
public static Contributor valueOf(org.orcid.jaxb.model.message.Contributor contributor) { Contributor c = new Contributor(); if (contributor != null) { if (contributor.getContributorAttributes() != null) { contributor.getContributorAttributes(); if (contri...
diff --git a/src/main/java/de/cosmocode/palava/jpa/DefaultPersistenceService.java b/src/main/java/de/cosmocode/palava/jpa/DefaultPersistenceService.java index cb6b05a..3cfa59c 100644 --- a/src/main/java/de/cosmocode/palava/jpa/DefaultPersistenceService.java +++ b/src/main/java/de/cosmocode/palava/jpa/DefaultPersistence...
false
true
public void initialize() throws LifecycleException { if (properties == null) { LOG.info("Creatintg entity manager factory"); this.factory = Persistence.createEntityManagerFactory(unitName); } else { LOG.info("Creatintg entity manager factory using {}", properties)...
public void initialize() throws LifecycleException { if (properties == null) { LOG.info("Creating entity manager factory"); this.factory = Persistence.createEntityManagerFactory(unitName); } else { LOG.info("Creating entity manager factory using {}", properties); ...
diff --git a/src/de/todesbaum/jsite/main/Main.java b/src/de/todesbaum/jsite/main/Main.java index a654c49..517f48a 100644 --- a/src/de/todesbaum/jsite/main/Main.java +++ b/src/de/todesbaum/jsite/main/Main.java @@ -1,717 +1,722 @@ /* * jSite - a tool for uploading websites into Freenet * Copyright (C) 2006-2009 Davi...
false
true
public void wizardNextPressed(TWizard wizard) { String pageName = wizard.getPage().getName(); if ("page.node-manager".equals(pageName)) { showPage(PageType.PAGE_PROJECTS); } else if ("page.project".equals(pageName)) { ProjectPage projectPage = (ProjectPage) wizard.getPage(); Project project = projectPag...
public void wizardNextPressed(TWizard wizard) { String pageName = wizard.getPage().getName(); if ("page.node-manager".equals(pageName)) { showPage(PageType.PAGE_PROJECTS); } else if ("page.project".equals(pageName)) { ProjectPage projectPage = (ProjectPage) wizard.getPage(); Project project = projectPag...
diff --git a/src/DVN-EJB/src/java/edu/harvard/iq/dvn/core/visualization/DataVariableMapping.java b/src/DVN-EJB/src/java/edu/harvard/iq/dvn/core/visualization/DataVariableMapping.java index 50c033e2..c13c622d 100644 --- a/src/DVN-EJB/src/java/edu/harvard/iq/dvn/core/visualization/DataVariableMapping.java +++ b/src/DVN-E...
true
true
public boolean equals(Object object) { // TODO: Warning - this method won't work in the case the id fields are not set if (!(object instanceof DataVariableMapping)) { return false; } DataVariableMapping other = (DataVariableMapping) object; if (this == other){ ...
public boolean equals(Object object) { // TODO: Warning - this method won't work in the case the id fields are not set if (!(object instanceof DataVariableMapping)) { return false; } DataVariableMapping other = (DataVariableMapping) object; if (this == other){ ...
diff --git a/src/java/Interpreter.java b/src/java/Interpreter.java index 58a45bd..1880822 100644 --- a/src/java/Interpreter.java +++ b/src/java/Interpreter.java @@ -1,376 +1,376 @@ import java.util.HashMap; import java.util.Iterator; import java.util.logging.Logger; import org.antlr.runtime.ANTLRStringStream; im...
true
true
Object exec(Tree t) { switch (t.getType()) { case 0: // Nil, root of the tree, fall through to 'block' case LogoTurtleParser.BLOCK: return block(t); case LogoTurtleParser.AND: return and(t); // && case LogoTurtleParser.BYNAME: return name(t); case LogoTurtleParser.BYVAL: return val(t); case ...
Object exec(Tree t) { switch (t.getType()) { case 0: // Nil, root of the tree, fall through to 'block' case LogoTurtleParser.BLOCK: return block(t); case LogoTurtleParser.AND: return and(t); // && case LogoTurtleParser.BYNAME: return name(t); case LogoTurtleParser.BYVAL: return val(t); case ...
diff --git a/portal-impl/impl/src/java/org/sakaiproject/portal/charon/handlers/StaticHandler.java b/portal-impl/impl/src/java/org/sakaiproject/portal/charon/handlers/StaticHandler.java index 0942ad2f..27da9228 100644 --- a/portal-impl/impl/src/java/org/sakaiproject/portal/charon/handlers/StaticHandler.java +++ b/portal...
true
true
public void doStatic(HttpServletRequest req, HttpServletResponse res, String[] parts) throws IOException { try { StaticCache[] staticCache = staticCacheHolder.get(); if (staticCache == null) { staticCache = new StaticCache[100]; staticCacheHolder.set(staticCache); } String path = req.get...
public void doStatic(HttpServletRequest req, HttpServletResponse res, String[] parts) throws IOException { try { StaticCache[] staticCache = staticCacheHolder.get(); if (staticCache == null) { staticCache = new StaticCache[100]; staticCacheHolder.set(staticCache); } String path = req.get...
diff --git a/patterns/src/main/java/net/sf/javascribe/patterns/servlet/ServletWebServiceProcessor.java b/patterns/src/main/java/net/sf/javascribe/patterns/servlet/ServletWebServiceProcessor.java index d23a0f2..aafbcb1 100644 --- a/patterns/src/main/java/net/sf/javascribe/patterns/servlet/ServletWebServiceProcessor.java...
true
true
public void process(ServletWebService webService,ProcessorContext ctx) throws JavascribeException { Java5SourceFile src = null; UrlWebServiceType type = null; ctx.setLanguageSupport("Java"); try { System.out.println("Processing servlet web service with path '"+webService.getPath()+"'"); String servi...
public void process(ServletWebService webService,ProcessorContext ctx) throws JavascribeException { Java5SourceFile src = null; UrlWebServiceType type = null; ctx.setLanguageSupport("Java"); try { System.out.println("Processing servlet web service with path '"+webService.getPath()+"'"); String servi...
diff --git a/test/functional/test/java/lang/ClassTest.java b/test/functional/test/java/lang/ClassTest.java index d80c930c..4670bf2f 100644 --- a/test/functional/test/java/lang/ClassTest.java +++ b/test/functional/test/java/lang/ClassTest.java @@ -1,119 +1,119 @@ package test.java.lang; import jvm.TestCase; impor...
false
true
public static void testGetAnnotation() { Tag tag = TaggedClass.class.getAnnotation(Tag.class); assertEquals(Byte.MAX_VALUE, tag.byteValue()); assertEquals(Character.MAX_VALUE, tag.charValue()); assertEquals(Short.MAX_VALUE, tag.shortValue()); assertEquals(Integer.MAX_VALUE, tag.intValue()); a...
public static void testGetAnnotation() { Tag tag = TaggedClass.class.getAnnotation(Tag.class); assertEquals(Byte.MAX_VALUE, tag.byteValue()); assertEquals(Character.MAX_VALUE, tag.charValue()); assertEquals(Short.MAX_VALUE, tag.shortValue()); assertEquals(Integer.MAX_VALUE, tag.intValue()); a...
diff --git a/src/main/java/org/cloudifysource/quality/iTests/framework/utils/CloudBootstrapper.java b/src/main/java/org/cloudifysource/quality/iTests/framework/utils/CloudBootstrapper.java index 842291a3..91de43bf 100644 --- a/src/main/java/org/cloudifysource/quality/iTests/framework/utils/CloudBootstrapper.java +++ b/...
true
true
public String getCustomOptions() throws IOException{ StringBuilder builder = new StringBuilder(); if (noWebServices) { builder.append("-no-web-services "); } if (cloudOverrides != null && !cloudOverrides.isEmpty()) { File cloudOverridesFile = IOUtils.createTempOverridesFile(cloudOverrides); builder...
public String getCustomOptions() throws IOException{ StringBuilder builder = new StringBuilder(); if (noWebServices) { builder.append("-no-web-services "); } if (cloudOverrides != null && !cloudOverrides.isEmpty()) { File cloudOverridesFile = IOUtils.createTempOverridesFile(cloudOverrides); builder...
diff --git a/backend/src/main/java/ru/taskurotta/backend/dependency/links/Graph.java b/backend/src/main/java/ru/taskurotta/backend/dependency/links/Graph.java index 8cb5bc62..c9a898e1 100644 --- a/backend/src/main/java/ru/taskurotta/backend/dependency/links/Graph.java +++ b/backend/src/main/java/ru/taskurotta/backend/d...
true
true
private Set<UUID> updateLinks() { // update reverse map with new links Map<UUID, Set<UUID>> reverseLinks = reverseIt(links); Map<UUID, Set<UUID>> newLinks = modification.getLinks(); if (newLinks != null) { for (Map.Entry<UUID, Set<UUID>> entry : newLinks.entrySet()) {...
private Set<UUID> updateLinks() { // update reverse map with new links Map<UUID, Set<UUID>> reverseLinks = reverseIt(links); Map<UUID, Set<UUID>> newLinks = modification.getLinks(); if (newLinks != null) { for (Map.Entry<UUID, Set<UUID>> entry : newLinks.entrySet()) {...
diff --git a/src/java/org/infoglue/cms/controllers/kernel/impl/simple/ContentController.java b/src/java/org/infoglue/cms/controllers/kernel/impl/simple/ContentController.java index f0d36bfea..b0b6ed7d9 100755 --- a/src/java/org/infoglue/cms/controllers/kernel/impl/simple/ContentController.java +++ b/src/java/org/infogl...
true
true
public /*synchronized*/ Content create(Database db, Integer parentContentId, Integer contentTypeDefinitionId, Integer repositoryId, ContentVO contentVO) throws ConstraintException, SystemException, Exception { Content content = null; try { Content parentContent = ...
public /*synchronized*/ Content create(Database db, Integer parentContentId, Integer contentTypeDefinitionId, Integer repositoryId, ContentVO contentVO) throws ConstraintException, SystemException, Exception { Content content = null; try { Content parentContent = ...
diff --git a/src/com/itmill/toolkit/demo/featurebrowser/ValueInputExample.java b/src/com/itmill/toolkit/demo/featurebrowser/ValueInputExample.java index 4437e042a..8e24b4ce5 100644 --- a/src/com/itmill/toolkit/demo/featurebrowser/ValueInputExample.java +++ b/src/com/itmill/toolkit/demo/featurebrowser/ValueInputExample....
false
true
public ValueInputExample() { final OrderedLayout main = new OrderedLayout(); main.setMargin(true); setCompositionRoot(main); // listener that shows a value change notification final Field.ValueChangeListener listener = new Field.ValueChangeListener() { public voi...
public ValueInputExample() { final OrderedLayout main = new OrderedLayout(); main.setMargin(true); setCompositionRoot(main); // listener that shows a value change notification final Field.ValueChangeListener listener = new Field.ValueChangeListener() { public voi...
diff --git a/app/models/Photo.java b/app/models/Photo.java index f38f671..f6c8838 100644 --- a/app/models/Photo.java +++ b/app/models/Photo.java @@ -1,94 +1,93 @@ package models; import java.awt.image.*; import java.io.*; import java.util.*; import javax.imageio.ImageIO; import javax.persistence.*; import play...
true
true
private Blob createThumbnailBlob(int width, int height) throws IOException { File image = this.image.getFile(); File thumbnail = Thumbnails.of(image) .size(width, height) .crop(Positions.CENTER) .outputFormat("jpg") ...
private Blob createThumbnailBlob(int width, int height) throws IOException { File image = this.image.getFile(); File thumbnail = Thumbnails.of(image) .size(width, height) .crop(Positions.CENTER) .asFiles(Rename.NO_CHA...
diff --git a/src/org/bouncycastle/asn1/x509/KeyUsage.java b/src/org/bouncycastle/asn1/x509/KeyUsage.java index 918173b7..3ffd94b4 100644 --- a/src/org/bouncycastle/asn1/x509/KeyUsage.java +++ b/src/org/bouncycastle/asn1/x509/KeyUsage.java @@ -1,77 +1,77 @@ package org.bouncycastle.asn1.x509; import org.bouncycastle...
true
true
public static KeyUsage getInstance(Object obj) { if (obj instanceof KeyUsage) { return (KeyUsage)obj; } if (obj instanceof X509Extension) { return new KeyUsage(DERBitString.getInstance(X509Extension.convertValueToObject((X509Extension)obj))); ...
public static DERBitString getInstance(Object obj) // needs to be DERBitString for other VMs { if (obj instanceof KeyUsage) { return (KeyUsage)obj; } if (obj instanceof X509Extension) { return new KeyUsage(DERBitString.getInstance(X509Extension....
diff --git a/src/com/benbenedek/parser/Parser.java b/src/com/benbenedek/parser/Parser.java index cfd6982..f6efd45 100644 --- a/src/com/benbenedek/parser/Parser.java +++ b/src/com/benbenedek/parser/Parser.java @@ -1,259 +1,264 @@ package com.benbenedek.parser; import java.io.IOException; import java.net.MalformedUR...
false
true
public void parse() { setState(ParserState.IN_PROGRESS); logger.info("Parse API started."); validateSource(); validateProperties(); logger.info("Parsing " + urlSrc.toString() + "."); Long preTime = new Date().getTime(); this.tagNode = run(); try { page = webClient.getPage(urlSrc); // HACK ...
public void parse() { setState(ParserState.IN_PROGRESS); logger.info("Parse API started."); validateSource(); validateProperties(); logger.info("Parsing " + urlSrc.toString() + "."); Long preTime = new Date().getTime(); this.tagNode = run(); try { page = webClient.getPage(urlSrc); // HACK ...
diff --git a/src/main/gradeapp/ExcelReader.java b/src/main/gradeapp/ExcelReader.java index aa06b76..02396e8 100644 --- a/src/main/gradeapp/ExcelReader.java +++ b/src/main/gradeapp/ExcelReader.java @@ -1,59 +1,59 @@ package gradeapp; import java.io.File; import java.io.FileInputStream; import java.io.IOException; ...
true
true
public ExcelReader (FileInputStream in) throws IOException{ HSSFWorkbook wb = new HSSFWorkbook(in); HSSFSheet MainSheet = wb.getSheetAt(0); HSSFRow KeyRow = MainSheet.getRow(3); HSSFCell QNumCell = KeyRow.getCell(4); int QNum = new Integer(QNumCell.getRichStringCellValu...
public ExcelReader (File in) throws IOException{ HSSFWorkbook wb = new HSSFWorkbook(new FileInputStream(in)); HSSFSheet MainSheet = wb.getSheetAt(0); HSSFRow KeyRow = MainSheet.getRow(3); HSSFCell QNumCell = KeyRow.getCell(4); int QNum = new Integer(QNumCell.getRichStri...
diff --git a/src/test/java/org/freeeed/main/FreeEedMainTest.java b/src/test/java/org/freeeed/main/FreeEedMainTest.java index 2c7f1fef..f477d414 100644 --- a/src/test/java/org/freeeed/main/FreeEedMainTest.java +++ b/src/test/java/org/freeeed/main/FreeEedMainTest.java @@ -1,102 +1,102 @@ /* * * Licensed un...
true
true
public void testMain() { System.out.println("FreeEedMainTest.testMain"); String[] args = new String[2]; args[0] = "-param_file"; String platform = PlatformUtil.getPlatform().toString().toLowerCase(); // this will test local environment args[1] = "sample_freeeed_" + pl...
public void testMain() { System.out.println("FreeEedMainTest.testMain"); String[] args = new String[2]; args[0] = "-param_file"; String platform = PlatformUtil.getPlatform().toString().toLowerCase(); // this will test local environment args[1] = "sample_freeeed_" + pl...
diff --git a/gdx-tests/src/com/badlogic/gdx/tests/Box2DTest.java b/gdx-tests/src/com/badlogic/gdx/tests/Box2DTest.java index eb0c80c67..00f1d4826 100644 --- a/gdx-tests/src/com/badlogic/gdx/tests/Box2DTest.java +++ b/gdx-tests/src/com/badlogic/gdx/tests/Box2DTest.java @@ -1,371 +1,371 @@ /*****************************...
true
true
public void render(Application app) { // first we update the world. For simplicity // we use the delta time provided by the Graphics // instance. Normally you'll want to fix the time // step. long start = System.nanoTime(); world.step( app.getGraphics().getDeltaTime(), 3, 3 ); float updateTime = (Syst...
public void render(Application app) { // first we update the world. For simplicity // we use the delta time provided by the Graphics // instance. Normally you'll want to fix the time // step. long start = System.nanoTime(); world.step( app.getGraphics().getDeltaTime(), 3, 3 ); float updateTime = (Syst...
diff --git a/AeroControl/src/com/aero/control/fragments/CPUFragment.java b/AeroControl/src/com/aero/control/fragments/CPUFragment.java index d94f7e8..cebf34e 100644 --- a/AeroControl/src/com/aero/control/fragments/CPUFragment.java +++ b/AeroControl/src/com/aero/control/fragments/CPUFragment.java @@ -1,714 +1,720 @@ pa...
true
true
final public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setHasOptionsMenu(true); // We have to load the xml layout first; addPreferencesFromResource(R.layout.cpu_fragment); root = this.getPreferenceScreen(); // Remove until back i...
final public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setHasOptionsMenu(true); // We have to load the xml layout first; addPreferencesFromResource(R.layout.cpu_fragment); root = this.getPreferenceScreen(); // Remove until back i...
diff --git a/src/pimp/persistence/DBDataAccessor.java b/src/pimp/persistence/DBDataAccessor.java index 9ef67f8..72e1829 100644 --- a/src/pimp/persistence/DBDataAccessor.java +++ b/src/pimp/persistence/DBDataAccessor.java @@ -1,390 +1,390 @@ package pimp.persistence; import java.awt.Color; import java.lang.reflect....
false
true
private boolean insertIntoTable(String className, Product product) { try { int originalCount = getRecordCount(className); Class<?> c = product.getClass(); Field[] fields = c.getFields(); fields = sortFields(fields); String sql = "INSERT INTO " + className + "("; for (int i = 0; i < fields.lengt...
private boolean insertIntoTable(String className, Product product) { try { int originalCount = getRecordCount(className); Class<?> c = product.getClass(); Field[] fields = c.getFields(); fields = sortFields(fields); String sql = "INSERT INTO " + className + "("; for (int i = 0; i < fields.lengt...
diff --git a/src/main/java/com/twistlet/falcon/controller/ListPatronController.java b/src/main/java/com/twistlet/falcon/controller/ListPatronController.java index 78e1482..ad1b9fe 100644 --- a/src/main/java/com/twistlet/falcon/controller/ListPatronController.java +++ b/src/main/java/com/twistlet/falcon/controller/ListP...
true
true
public String validatePatron(final HttpServletRequest request) { final String stringId = request.getParameter("fieldId"); final String value = request.getParameter("fieldValue"); final String username = request.getParameter("username-patron"); Authentication auth = SecurityContextHolder.getContext().getAuthent...
public String validatePatron(final HttpServletRequest request) { final String stringId = request.getParameter("fieldId"); final String value = request.getParameter("fieldValue"); final String username = request.getParameter("username-patron"); Authentication auth = SecurityContextHolder.getContext().getAuthent...
diff --git a/service/src/main/java/org/jahia/modules/social/SocialService.java b/service/src/main/java/org/jahia/modules/social/SocialService.java index 9ce0a35..7d48f0a 100644 --- a/service/src/main/java/org/jahia/modules/social/SocialService.java +++ b/service/src/main/java/org/jahia/modules/social/SocialService.java...
true
true
public SortedSet<JCRNodeWrapper> getActivities(JCRSessionWrapper jcrSessionWrapper, Set<String> usersPaths, long limit, long offset, String targetTreeRootPath, List<String> activityTypes, long startDate) throws Rep...
public SortedSet<JCRNodeWrapper> getActivities(JCRSessionWrapper jcrSessionWrapper, Set<String> usersPaths, long limit, long offset, String targetTreeRootPath, List<String> activityTypes, long startDate) throws Rep...
diff --git a/solr/src/java/org/apache/solr/core/IndexReaderFactory.java b/solr/src/java/org/apache/solr/core/IndexReaderFactory.java index c7b603151..4204a9ebb 100644 --- a/solr/src/java/org/apache/solr/core/IndexReaderFactory.java +++ b/solr/src/java/org/apache/solr/core/IndexReaderFactory.java @@ -1,66 +1,66 @@ pack...
true
true
public void init(NamedList args) { Integer v = (Integer)args.get("setTermIndexInterval"); if (v != null) { termInfosIndexDivisor = v.intValue(); } }
public void init(NamedList args) { Integer v = (Integer)args.get("setTermIndexDivisor"); if (v != null) { termInfosIndexDivisor = v.intValue(); } }
diff --git a/src/de/ub0r/android/websms/connector/cherrysms/ConnectorCherrySMS.java b/src/de/ub0r/android/websms/connector/cherrysms/ConnectorCherrySMS.java index 2cd37a3..fd171a3 100644 --- a/src/de/ub0r/android/websms/connector/cherrysms/ConnectorCherrySMS.java +++ b/src/de/ub0r/android/websms/connector/cherrysms/Con...
false
true
private void sendData(final Context context, final ConnectorCommand command) throws WebSMSException { // do IO try { // get Connection final StringBuilder url = new StringBuilder(URL); final ConnectorSpec cs = this.getSpec(context); final SharedPreferences p = PreferenceManager .getDefaultSharedPr...
private void sendData(final Context context, final ConnectorCommand command) throws WebSMSException { // do IO try { // get Connection final StringBuilder url = new StringBuilder(URL); final ConnectorSpec cs = this.getSpec(context); final SharedPreferences p = PreferenceManager .getDefaultSharedPr...
diff --git a/framework/src/com/phonegap/api/PluginResult.java b/framework/src/com/phonegap/api/PluginResult.java index 322bcce9..d042d64c 100755 --- a/framework/src/com/phonegap/api/PluginResult.java +++ b/framework/src/com/phonegap/api/PluginResult.java @@ -1,118 +1,121 @@ /* * PhoneGap is available under *either* ...
false
true
public String toSuccessCallbackString(String callbackId) { StringBuffer buf = new StringBuffer(""); if (cast != null) { buf.append("var temp = "+cast+"("+this.getJSONString() + ");\n"); } buf.append("PhoneGap.callbackSuccess('"+callbackId+"', temp );"); return buf.toString(); }
public String toSuccessCallbackString(String callbackId) { StringBuffer buf = new StringBuffer(""); if (cast != null) { buf.append("var temp = "+cast+"("+this.getJSONString() + ");\n"); buf.append("PhoneGap.callbackSuccess('"+callbackId+"',temp);"); } else { buf.append("PhoneGap.callbackSuccess('"+cal...
diff --git a/gui/src/main/java/org/jboss/as/console/client/core/settings/SettingsPresenterWidget.java b/gui/src/main/java/org/jboss/as/console/client/core/settings/SettingsPresenterWidget.java index 7b98c46d..9d3c6a18 100644 --- a/gui/src/main/java/org/jboss/as/console/client/core/settings/SettingsPresenterWidget.java ...
true
true
public void onSaveDialogue(CommonSettings settings) { // see also App.gwt.xml Preferences.set("as7_ui_locale", settings.getLocale()); Console.info(Console.MESSAGES.savedSettings()); }
public void onSaveDialogue(CommonSettings settings) { // see also App.gwt.xml if(settings.getLocale()!=null && !settings.getLocale().equals("")) Preferences.set("as7_ui_locale", settings.getLocale()); Console.info(Console.MESSAGES.savedSettings()); }
diff --git a/grails/src/commons/grails/util/RunTests.java b/grails/src/commons/grails/util/RunTests.java index 85e760f78..c91d89fba 100644 --- a/grails/src/commons/grails/util/RunTests.java +++ b/grails/src/commons/grails/util/RunTests.java @@ -1,78 +1,82 @@ /* * Copyright 2004-2005 the original author or authors. ...
false
true
public static void main(String[] args) { try { ConfigurableApplicationContext appCtx = (ConfigurableApplicationContext)GrailsUtil.bootstrapGrailsFromClassPath(); GrailsApplication application = (GrailsApplication)appCtx.getBean(GrailsApplication.APPLICATION_ID); Class[] allClasses = application.getAllClass...
public static void main(String[] args) { try { log.info("Bootstrapping Grails from classpath"); ConfigurableApplicationContext appCtx = (ConfigurableApplicationContext)GrailsUtil.bootstrapGrailsFromClassPath(); GrailsApplication application = (GrailsApplication)appCtx.getBean(GrailsApplication.APPLICAT...
diff --git a/src/main/java/org/swfparser/operation/TernaryOperation.java b/src/main/java/org/swfparser/operation/TernaryOperation.java index 29ba5b3..839177f 100755 --- a/src/main/java/org/swfparser/operation/TernaryOperation.java +++ b/src/main/java/org/swfparser/operation/TernaryOperation.java @@ -1,68 +1,68 @@ /* ...
true
true
public String getStringValue(int level) { return new StringBuffer() .append(isStatement ? CodeUtil.getIndent(level) : "") .append("(") .append(condition.getStringValue(level)) .append(") ? ") .append(trueOp.getStringValue(level)) .append(" : ") .append(falseOp.getStringValue(level)) ...
public String getStringValue(int level) { StringBuilder buf = new StringBuilder(); buf.append(isStatement ? CodeUtil.getIndent(level) : ""); buf.append("("); buf.append(condition.getStringValue(level)); buf.append(" ? "); buf.append(trueOp.getStringValue(level)); buf.append(...
diff --git a/src/org/openstreetmap/josm/io/OsmReader.java b/src/org/openstreetmap/josm/io/OsmReader.java index f105be39..a4e269cf 100644 --- a/src/org/openstreetmap/josm/io/OsmReader.java +++ b/src/org/openstreetmap/josm/io/OsmReader.java @@ -1,427 +1,428 @@ // License: GPL. Copyright 2007 by Immanuel Scholz and other...
false
true
@Override public void startElement(String namespaceURI, String localName, String qName, Attributes atts) throws SAXException { try { if (qName.equals("osm")) { if (atts == null) throw new SAXException(tr("Unknown version")); if (!allowedVersions.contains(atts.getValue("version"))) throw n...
@Override public void startElement(String namespaceURI, String localName, String qName, Attributes atts) throws SAXException { try { if (qName.equals("osm")) { if (atts == null) throw new SAXException(tr("Unknown version")); if (!allowedVersions.contains(atts.getValue("version"))) throw n...
diff --git a/PuzzleApplet.java b/PuzzleApplet.java index b796aa43..305bae01 100644 --- a/PuzzleApplet.java +++ b/PuzzleApplet.java @@ -1,612 +1,618 @@ /* * PuzzleApplet.java: NestedVM applet for the puzzle collection */ import java.awt.*; import java.awt.event.*; import java.awt.image.BufferedImage; import jav...
false
true
public int call(int cmd, int arg1, int arg2, int arg3) { try { switch(cmd) { case 0: // initialize if (mainWindow != null) mainWindow.setTitle(runtime.cstring(arg1)); if ((arg2 & 1) != 0) buildConfigureMenuItem(); if ((arg2 & 2) != 0) a...
public int call(int cmd, int arg1, int arg2, int arg3) { try { switch(cmd) { case 0: // initialize if (mainWindow != null) mainWindow.setTitle(runtime.cstring(arg1)); if ((arg2 & 1) != 0) buildConfigureMenuItem(); if ((arg2 & 2) != 0) a...
diff --git a/maven-project/src/main/java/org/apache/maven/project/artifact/MavenMetadataSource.java b/maven-project/src/main/java/org/apache/maven/project/artifact/MavenMetadataSource.java index b31f273eb..12f380335 100644 --- a/maven-project/src/main/java/org/apache/maven/project/artifact/MavenMetadataSource.java +++ ...
true
true
public ResolutionGroup retrieve( Artifact artifact, ArtifactRepository localRepository, List remoteRepositories ) throws ArtifactMetadataRetrievalException { MavenProject project = null; Artifact pomArtifact; boolean done = false; do { // TODO: can we...
public ResolutionGroup retrieve( Artifact artifact, ArtifactRepository localRepository, List remoteRepositories ) throws ArtifactMetadataRetrievalException { MavenProject project = null; Artifact pomArtifact; boolean done = false; do { // TODO: can we...
diff --git a/megadesk-curator/src/main/java/com/liveramp/megadesk/curator/state/CuratorPersistence.java b/megadesk-curator/src/main/java/com/liveramp/megadesk/curator/state/CuratorPersistence.java index 9b6f39e..adb1a18 100644 --- a/megadesk-curator/src/main/java/com/liveramp/megadesk/curator/state/CuratorPersistence.j...
false
true
public CuratorPersistence(CuratorFramework curator, String path, SerializationHandler<VALUE> serializer) { super(serializer); this.curator = curator; this.path = path; this.cache = new NodeCache(curator, path); try { if (curator.checkExists().forPath(path) == null) { curator.create(...
public CuratorPersistence(CuratorFramework curator, String path, SerializationHandler<VALUE> serializer) { super(serializer); this.curator = curator; this.path = path; try { if (curator.checkExists().forPath(path) == null) { curator.create().creatingParentsIfNeeded().forPath(path); ...
diff --git a/src/main/java/org/mybatis/spring/SqlSessionTemplate.java b/src/main/java/org/mybatis/spring/SqlSessionTemplate.java index 851fbd7b..817a3895 100644 --- a/src/main/java/org/mybatis/spring/SqlSessionTemplate.java +++ b/src/main/java/org/mybatis/spring/SqlSessionTemplate.java @@ -1,254 +1,254 @@ /* * Co...
true
true
public <T> T getMapper(final Class<T> type) { return (T) java.lang.reflect.Proxy.newProxyInstance(type.getClassLoader(), new Class[]{type}, new InvocationHandler() { public Object invoke(final Object proxy, final Method method, final Object[] args) throws Throwable { ...
public <T> T getMapper(final Class<T> type) { return (T) java.lang.reflect.Proxy.newProxyInstance(type.getClassLoader(), new Class[]{type}, new InvocationHandler() { public Object invoke(final Object proxy, final Method method, final Object[] args) throws Throwable { ...
diff --git a/src/main/java/org/guanxi/idp/util/AttributeMap.java b/src/main/java/org/guanxi/idp/util/AttributeMap.java index cef649d..7d7f8e7 100644 --- a/src/main/java/org/guanxi/idp/util/AttributeMap.java +++ b/src/main/java/org/guanxi/idp/util/AttributeMap.java @@ -1,336 +1,336 @@ //: "The contents of this file are...
true
true
public boolean map(GuanxiPrincipal principal, String spProviderId, String attrName, String attrValue) { int index = -1; boolean mapped = false; Pattern pattern = null; Matcher matcher = null; mappedNames.clear(); mappedValues.clear(); // Look for provider groups that are either specific ...
public boolean map(GuanxiPrincipal principal, String spProviderId, String attrName, String attrValue) { int index = -1; boolean mapped = false; Pattern pattern = null; Matcher matcher = null; mappedNames.clear(); mappedValues.clear(); // Look for provider groups that are either specific ...
diff --git a/sventon/src/main/java/org/sventon/web/ctrl/ConfigurationController.java b/sventon/src/main/java/org/sventon/web/ctrl/ConfigurationController.java index 629a7b41..de9abfc1 100644 --- a/sventon/src/main/java/org/sventon/web/ctrl/ConfigurationController.java +++ b/sventon/src/main/java/org/sventon/web/ctrl/Co...
true
true
protected ModelAndView processFormSubmission(final HttpServletRequest request, final HttpServletResponse response, final Object command, final BindException errors) throws IOException { logger.debug("processFormSubmissi...
protected ModelAndView processFormSubmission(final HttpServletRequest request, final HttpServletResponse response, final Object command, final BindException errors) throws IOException { logger.debug("processFormSubmissi...
diff --git a/src/com/minestar/MineStarWarp/dataManager/DatabaseManager.java b/src/com/minestar/MineStarWarp/dataManager/DatabaseManager.java index d9d798f..dc098ba 100644 --- a/src/com/minestar/MineStarWarp/dataManager/DatabaseManager.java +++ b/src/com/minestar/MineStarWarp/dataManager/DatabaseManager.java @@ -1,657 +...
true
true
private void createTables() throws Exception { // create the table for storing the warps con.createStatement().executeUpdate( "CREATE TABLE IF NOT EXISTS `warps` (" + "`id` INTEGER PRIMARY KEY," + "`name` varchar(32) NOT NULL DEFAULT 'w...
private void createTables() throws Exception { // create the table for storing the warps con.createStatement().executeUpdate( "CREATE TABLE IF NOT EXISTS `warps` (" + "`id` INTEGER PRIMARY KEY," + "`name` varchar(32) NOT NULL DEFAULT 'w...
diff --git a/dndtools/MircDndToolkit/src/org/toj/dnd/irctoolkit/game/battle/behavior/EndsInAFewTurnsBehavior.java b/dndtools/MircDndToolkit/src/org/toj/dnd/irctoolkit/game/battle/behavior/EndsInAFewTurnsBehavior.java index 15b667d..90b55f8 100644 --- a/dndtools/MircDndToolkit/src/org/toj/dnd/irctoolkit/game/battle/beha...
true
true
public String onTurnStart(int round, Combatant current, Combatant owner) { int roundsLeft = Integer.parseInt(this.controllsState.getEndCondition()); if ((endOnRound < roundsLeft + round) && current.getInit() <= this.controllsState.getAppliedOnInit()) { roundsLeft--; this.con...
public String onTurnStart(int round, Combatant current, Combatant owner) { int roundsLeft = Integer.parseInt(this.controllsState.getEndCondition()); if ((endOnRound < roundsLeft + round) && current.getInit() <= this.controllsState.getAppliedOnInit()) { roundsLeft--; this.con...
diff --git a/src/main/java/hudson/remoting/Pipe.java b/src/main/java/hudson/remoting/Pipe.java index 019ffc8e..a6d184b5 100644 --- a/src/main/java/hudson/remoting/Pipe.java +++ b/src/main/java/hudson/remoting/Pipe.java @@ -1,189 +1,190 @@ /* * The MIT License * * Copyright (c) 2004-2009, Sun Microsystems, Inc.,...
false
true
private void readObject(ObjectInputStream ois) throws IOException, ClassNotFoundException { final Channel channel = Channel.current(); assert channel !=null; if(ois.readBoolean()) { // local will write to remote in = null; out = new ProxyOutputStream(chan...
private void readObject(ObjectInputStream ois) throws IOException, ClassNotFoundException { final Channel channel = Channel.current(); assert channel !=null; if(ois.readBoolean()) { // local will write to remote in = null; out = new ProxyOutputStream(chan...
diff --git a/src/main/java/org/lastbamboo/common/ice/MappedTcpOffererServerPool.java b/src/main/java/org/lastbamboo/common/ice/MappedTcpOffererServerPool.java index 89710ba..b2cac10 100644 --- a/src/main/java/org/lastbamboo/common/ice/MappedTcpOffererServerPool.java +++ b/src/main/java/org/lastbamboo/common/ice/MappedT...
true
true
private PortMappedServerSocket randomPortServer() throws IOException { IOException ioe = null; final InetAddress lh = NetworkUtils.getLocalHost(); for (int i = 0; i < 20; i++) { try { final ServerSocket ss = new ServerSocket(); final InetSocketAddr...
private PortMappedServerSocket randomPortServer() throws IOException { IOException ioe = null; final InetAddress lh = NetworkUtils.getLocalHost(); for (int i = 0; i < 20; i++) { try { final ServerSocket ss = this.serverSocketFactory.createServ...
diff --git a/src/org/apache/xerces/impl/XMLEntityScanner.java b/src/org/apache/xerces/impl/XMLEntityScanner.java index 1a0a4822..f43995ae 100644 --- a/src/org/apache/xerces/impl/XMLEntityScanner.java +++ b/src/org/apache/xerces/impl/XMLEntityScanner.java @@ -1,1784 +1,1784 @@ /* * Copyright 1999-2004 The Apache Soft...
false
true
public boolean scanData(String delimiter, XMLStringBuffer buffer) throws IOException { // REVISIT: This method does not need to use a string buffer. // The change would avoid the array copies and increase // performance. -Ac // // Currently...
public boolean scanData(String delimiter, XMLStringBuffer buffer) throws IOException { // REVISIT: This method does not need to use a string buffer. // The change would avoid the array copies and increase // performance. -Ac // // Currently...
diff --git a/src/java/com/sapienter/jbilling/server/pricing/tasks/PriceModelPricingTask.java b/src/java/com/sapienter/jbilling/server/pricing/tasks/PriceModelPricingTask.java index 78ecb14f..31071441 100644 --- a/src/java/com/sapienter/jbilling/server/pricing/tasks/PriceModelPricingTask.java +++ b/src/java/com/sapiente...
true
true
public BigDecimal getPrice(Integer itemId, BigDecimal quantity, Integer userId, Integer currencyId, List<PricingField> fields, BigDecimal defaultPrice, ...
public BigDecimal getPrice(Integer itemId, BigDecimal quantity, Integer userId, Integer currencyId, List<PricingField> fields, BigDecimal defaultPrice, ...
diff --git a/scm-plugins/scm-hg-plugin/src/main/java/sonia/scm/repository/HgHookManager.java b/scm-plugins/scm-hg-plugin/src/main/java/sonia/scm/repository/HgHookManager.java index 698e0f68d..e5b21220b 100644 --- a/scm-plugins/scm-hg-plugin/src/main/java/sonia/scm/repository/HgHookManager.java +++ b/scm-plugins/scm-hg-...
false
true
public void writeHookScript(HttpServletRequest request) throws IOException { if (isScriptWriteAble()) { synchronized (this) { if (isScriptWriteAble()) { StringBuilder url = new StringBuilder(request.getScheme()); url.append("://localhost:").append(request.get...
public void writeHookScript(HttpServletRequest request) throws IOException { if (isScriptWriteAble()) { synchronized (this) { if (isScriptWriteAble()) { StringBuilder url = new StringBuilder(request.getScheme()); url.append("://localhost:").append(request.get...
diff --git a/examples/de/fhpotsdam/unfolding/examples/marker/MarkerSelectionApp.java b/examples/de/fhpotsdam/unfolding/examples/marker/MarkerSelectionApp.java index 65066c5..cba06f2 100644 --- a/examples/de/fhpotsdam/unfolding/examples/marker/MarkerSelectionApp.java +++ b/examples/de/fhpotsdam/unfolding/examples/marker...
true
true
public void setup() { size(800, 600, OPENGL); map = new UnfoldingMap(this); map.zoomAndPanTo(indonesiaLocation, 3); MapUtils.createDefaultEventDispatcher(this, map); List<Feature> countries = GeoJSONReader.loadData(this, "data/ountries.geo.json"); List<Marker> countryMarkers = MapUtils.createSimpleMarker...
public void setup() { size(800, 600, OPENGL); map = new UnfoldingMap(this); map.zoomAndPanTo(indonesiaLocation, 3); MapUtils.createDefaultEventDispatcher(this, map); List<Feature> countries = GeoJSONReader.loadData(this, "data/countries.geo.json"); List<Marker> countryMarkers = MapUtils.createSimpleMarke...
diff --git a/src/bone008/bukkit/deathcontrol/DeathControlEntityListener.java b/src/bone008/bukkit/deathcontrol/DeathControlEntityListener.java index 4f74747..26db1cd 100644 --- a/src/bone008/bukkit/deathcontrol/DeathControlEntityListener.java +++ b/src/bone008/bukkit/deathcontrol/DeathControlEntityListener.java @@ -1,1...
true
true
public void onEntityDeath(EntityDeathEvent event){ if(!(event instanceof PlayerDeathEvent)){ return; } PlayerDeathEvent e = (PlayerDeathEvent)event; assert (e.getEntity() instanceof Player); Player ply = (Player)e.getEntity(); EntityDamageEvent damageEvent = ply.getLastDamageCause(); DeathCau...
public void onEntityDeath(EntityDeathEvent event){ if(!(event instanceof PlayerDeathEvent)){ return; } PlayerDeathEvent e = (PlayerDeathEvent)event; assert (e.getEntity() instanceof Player); Player ply = (Player)e.getEntity(); EntityDamageEvent damageEvent = ply.getLastDamageCause(); DeathCau...
diff --git a/src/main/java/com/mtihc/minecraft/treasurechest/v8/core/TreasureChest.java b/src/main/java/com/mtihc/minecraft/treasurechest/v8/core/TreasureChest.java index bd5be4e..c676de9 100644 --- a/src/main/java/com/mtihc/minecraft/treasurechest/v8/core/TreasureChest.java +++ b/src/main/java/com/mtihc/minecraft/trea...
true
true
public TreasureChest(Map<String, Object> values) { container = (IBlockInventory) values.get("container"); Map<?, ?> msgSection = (Map<?, ?>) values.get("messages"); if(msgSection != null) { Set<?> msgEntries = msgSection.entrySet(); for (Object object : msgEntries) { Map.Entry<?, ?> entry = (M...
public TreasureChest(Map<String, Object> values) { container = (IBlockInventory) values.get("container"); Map<?, ?> msgSection = (Map<?, ?>) values.get("messages"); if(msgSection != null) { Set<?> msgEntries = msgSection.entrySet(); for (Object object : msgEntries) { Map.Entry<?, ?> entry = (M...
diff --git a/src/main/java/com/troiaTester/DataGenerator.java b/src/main/java/com/troiaTester/DataGenerator.java index 9f6c4792..3bff98e3 100644 --- a/src/main/java/com/troiaTester/DataGenerator.java +++ b/src/main/java/com/troiaTester/DataGenerator.java @@ -1,325 +1,325 @@ package main.com.troiaTester; import java...
true
true
public TroiaObjectCollection generateTestObjects(int objectCount, Map<String, Double> categories) { Collection<Double> percentages = categories.values(); double totalPercentage = 0; for (Double percentage : percentages) { totalPercentage += percentage.doubleValue(); ...
public TroiaObjectCollection generateTestObjects(int objectCount, Map<String, Double> categories) { Collection<Double> percentages = categories.values(); double totalPercentage = 0; for (Double percentage : percentages) { totalPercentage += percentage.doubleValue(); ...
diff --git a/api/restfulReminiscens/app/controllers/Application.java b/api/restfulReminiscens/app/controllers/Application.java index 10cad0f..338aebd 100644 --- a/api/restfulReminiscens/app/controllers/Application.java +++ b/api/restfulReminiscens/app/controllers/Application.java @@ -1,201 +1,201 @@ package controller...
false
true
public static Result upload() { play.mvc.Http.MultipartFormData body = request().body() .asMultipartFormData(); play.mvc.Http.MultipartFormData.FilePart file = body.getFile("files[]"); //final Form<FileBean> filledForm = fileForm.bindFromRequest(); if (file != null) { // 1. Get file metadata // //...
public static Result upload() { play.mvc.Http.MultipartFormData body = request().body() .asMultipartFormData(); play.mvc.Http.MultipartFormData.FilePart file = body.getFile("files[]"); //final Form<FileBean> filledForm = fileForm.bindFromRequest(); if (file != null) { // 1. Get file metadata // //...
diff --git a/atlas-web/src/main/java/ae3/service/experiment/AtlasExperimentAnalyticsViewService.java b/atlas-web/src/main/java/ae3/service/experiment/AtlasExperimentAnalyticsViewService.java index 07ee2cb99..76b2259c0 100644 --- a/atlas-web/src/main/java/ae3/service/experiment/AtlasExperimentAnalyticsViewService.java +...
false
true
public BestDesignElementsResult findBestGenesForExperiment( @Nullable ExperimentPart expPart, @Nonnull Predicate<Long> geneIdsPredicate, @Nonnull Predicate<UpDownExpression> upDownPredicate, @Nonnull Predicate<Pair<String, String>> fvPredicate, int of...
public BestDesignElementsResult findBestGenesForExperiment( @Nullable ExperimentPart expPart, @Nonnull Predicate<Long> geneIdsPredicate, @Nonnull Predicate<UpDownExpression> upDownPredicate, @Nonnull Predicate<Pair<String, String>> fvPredicate, int of...
diff --git a/src/main/java/hudson/scm/subversion/WorkspaceUpdaterDescriptor.java b/src/main/java/hudson/scm/subversion/WorkspaceUpdaterDescriptor.java index 7a02535..9e08a8b 100644 --- a/src/main/java/hudson/scm/subversion/WorkspaceUpdaterDescriptor.java +++ b/src/main/java/hudson/scm/subversion/WorkspaceUpdaterDescrip...
true
true
public static DescriptorExtensionList<WorkspaceUpdater,WorkspaceUpdaterDescriptor> all() { return (DescriptorExtensionList)Hudson.getInstance().getDescriptorList(WorkspaceUpdater.class); }
public static DescriptorExtensionList<WorkspaceUpdater,WorkspaceUpdaterDescriptor> all() { return Hudson.getInstance().<WorkspaceUpdater,WorkspaceUpdaterDescriptor>getDescriptorList(WorkspaceUpdater.class); }
diff --git a/src/edu/upenn/mkse212/server/DatabaseImpl.java b/src/edu/upenn/mkse212/server/DatabaseImpl.java index ec94d1c..6c8fca5 100644 --- a/src/edu/upenn/mkse212/server/DatabaseImpl.java +++ b/src/edu/upenn/mkse212/server/DatabaseImpl.java @@ -1,118 +1,119 @@ /*****************************************************...
false
true
public boolean addUser(String username, String password, String firstName, String lastName, String email, String network, String interests, String birthday) { GetAttributesResult result = db.getAttributes( new GetAttributesRequest("users", username)); List<Attribute> attributesList = result.getAttribute...
public boolean addUser(String username, String password, String firstName, String lastName, String email, String network, String interests, String birthday) { GetAttributesResult result = db.getAttributes( new GetAttributesRequest("users", username)); List<Attribute> attributesList = result.getAttribute...
diff --git a/src/main/java/hudson/plugins/perforce/PerforceSCM.java b/src/main/java/hudson/plugins/perforce/PerforceSCM.java index 1d14aa1..db502c7 100644 --- a/src/main/java/hudson/plugins/perforce/PerforceSCM.java +++ b/src/main/java/hudson/plugins/perforce/PerforceSCM.java @@ -1,2829 +1,2830 @@ package hudson.plugi...
false
true
public boolean checkout(AbstractBuild build, Launcher launcher, FilePath workspace, BuildListener listener, File changelogFile) throws IOException, InterruptedException { PrintStream log = listener.getLogger(); changelogFilename = changelogFile.getAbsolutePath(); boolean wipeBe...
public boolean checkout(AbstractBuild build, Launcher launcher, FilePath workspace, BuildListener listener, File changelogFile) throws IOException, InterruptedException { PrintStream log = listener.getLogger(); changelogFilename = changelogFile.getAbsolutePath(); boolean wipeBe...
diff --git a/src/main/java/org/apache/ws/security/message/WSSecEncrypt.java b/src/main/java/org/apache/ws/security/message/WSSecEncrypt.java index 59aeda3c6..b971cfba7 100644 --- a/src/main/java/org/apache/ws/security/message/WSSecEncrypt.java +++ b/src/main/java/org/apache/ws/security/message/WSSecEncrypt.java @@ -1,6...
true
true
private static String encryptElement( Document doc, Element elementToEncrypt, String modifier, WSSConfig config, XMLCipher xmlCipher, SecretKey secretKey, KeyInfo keyInfo ) throws WSSecurityException { boolean content = "Content".equals(modifier) ...
private static String encryptElement( Document doc, Element elementToEncrypt, String modifier, WSSConfig config, XMLCipher xmlCipher, SecretKey secretKey, KeyInfo keyInfo ) throws WSSecurityException { boolean content = "Content".equals(modifier) ...
diff --git a/x10.compiler/src/x10cuda/visit/CUDACodeGenerator.java b/x10.compiler/src/x10cuda/visit/CUDACodeGenerator.java index 50612d62b..dfe492a0e 100644 --- a/x10.compiler/src/x10cuda/visit/CUDACodeGenerator.java +++ b/x10.compiler/src/x10cuda/visit/CUDACodeGenerator.java @@ -1,1086 +1,1086 @@ /* * This file is...
false
true
protected void generateClosureSerializationFunctions(X10CPPContext_c c, String cnamet, StreamWrapper inc, Block block, List<VarInstance<?>> refs) { super.generateClosureSerializationFunctions(c, cnamet, inc, block,refs); if (blockIsKernel(block)) { CUDAKernel cuda_kernel = ((CUDAKernel)block); ArrayLi...
protected void generateClosureSerializationFunctions(X10CPPContext_c c, String cnamet, StreamWrapper inc, Block block, List<VarInstance<?>> refs) { super.generateClosureSerializationFunctions(c, cnamet, inc, block,refs); if (blockIsKernel(block)) { CUDAKernel cuda_kernel = ((CUDAKernel)block); ArrayLi...
diff --git a/su-Jsr-181-RoleAssignmentService-provide/src/main/java/br/usp/ime/ccsl/choreos/middleware/roleassignment/RoleAssignmentService.java b/su-Jsr-181-RoleAssignmentService-provide/src/main/java/br/usp/ime/ccsl/choreos/middleware/roleassignment/RoleAssignmentService.java index d0b4ba90..bd13cff2 100644 --- a/su-...
true
true
public void assignRole(@WebParam(name = "role") String role, @WebParam(name = "role") String uri) { RoleAssignment roleAssignment = new RoleAssignment(); roleAssignment.setRole(role); roleAssignment.setUri(uri); assignRole(roleAssignment); }
public void assignRole(@WebParam(name = "role") String role, @WebParam(name = "uri") String uri) { RoleAssignment roleAssignment = new RoleAssignment(); roleAssignment.setRole(role); roleAssignment.setUri(uri); assignRole(roleAssignment); }
diff --git a/src/com/android/camera/ui/ScrollerView.java b/src/com/android/camera/ui/ScrollerView.java index 37ba8c0a..0552516f 100644 --- a/src/com/android/camera/ui/ScrollerView.java +++ b/src/com/android/camera/ui/ScrollerView.java @@ -1,1849 +1,1851 @@ /* * Copyright (C) 2012 The Android Open Source Project * ...
true
true
public boolean onTouchEvent(MotionEvent ev) { initVelocityTrackerIfNotExists(); mVelocityTracker.addMovement(ev); final int action = ev.getAction(); switch (action & MotionEvent.ACTION_MASK) { case MotionEvent.ACTION_DOWN: { mIsBeingDragged = getChildCoun...
public boolean onTouchEvent(MotionEvent ev) { initVelocityTrackerIfNotExists(); mVelocityTracker.addMovement(ev); final int action = ev.getAction(); switch (action & MotionEvent.ACTION_MASK) { case MotionEvent.ACTION_DOWN: { mIsBeingDragged = getChildCoun...
diff --git a/src/main/java/com/turt2live/antishare/util/ItemMap.java b/src/main/java/com/turt2live/antishare/util/ItemMap.java index 2e9ddee6..9f342c7b 100644 --- a/src/main/java/com/turt2live/antishare/util/ItemMap.java +++ b/src/main/java/com/turt2live/antishare/util/ItemMap.java @@ -1,157 +1,157 @@ /***************...
true
true
public static ASMaterial get(String string){ if(listing.size() <= 0){ try{ load(); }catch(IOException e){ e.printStackTrace(); } } if(string == null){ return null; } string = string.trim().toLowerCase(); String[] parts = string.split(":"); String customData = null; String name = par...
public static ASMaterial get(String string){ if(listing.size() <= 0){ try{ load(); }catch(IOException e){ e.printStackTrace(); } } if(string == null){ return null; } string = string.trim().toLowerCase().replace(" ", ""); String[] parts = string.split(":"); String customData = null; ...
diff --git a/lucene/src/test/org/apache/lucene/search/TestPhraseQuery.java b/lucene/src/test/org/apache/lucene/search/TestPhraseQuery.java index 962388958..3cf7df362 100644 --- a/lucene/src/test/org/apache/lucene/search/TestPhraseQuery.java +++ b/lucene/src/test/org/apache/lucene/search/TestPhraseQuery.java @@ -1,697 +...
true
true
public void testRandomPhrases() throws Exception { Directory dir = newDirectory(); Analyzer analyzer = new MockAnalyzer(random); RandomIndexWriter w = new RandomIndexWriter(random, dir, newIndexWriterConfig(TEST_VERSION_CURRENT, analyzer).setMergePolicy(newLogMergePolicy())); List<List<String>> docs...
public void testRandomPhrases() throws Exception { Directory dir = newDirectory(); Analyzer analyzer = new MockAnalyzer(random); RandomIndexWriter w = new RandomIndexWriter(random, dir, newIndexWriterConfig(TEST_VERSION_CURRENT, analyzer).setMergePolicy(newLogMergePolicy())); List<List<String>> docs...
diff --git a/trunk/GeoBeagle/src/com/google/code/geobeagle/bcaching/progress/ProgressHandler.java b/trunk/GeoBeagle/src/com/google/code/geobeagle/bcaching/progress/ProgressHandler.java index 1f325e33..fc9dbd02 100644 --- a/trunk/GeoBeagle/src/com/google/code/geobeagle/bcaching/progress/ProgressHandler.java +++ b/trunk/...
false
true
public void refresh() { Log.d("GeoBeagle", "REFRESHING"); if (activityVisible.getVisible()) { cacheListRefresher.refresh(); } else Log.d("GeoBeagle", "NOT VISIBLE, punting"); }
public void refresh() { Log.d("GeoBeagle", "REFRESHING"); if (activityVisible.getVisible()) { cacheListRefresher.forceRefresh(); } else Log.d("GeoBeagle", "NOT VISIBLE, punting"); }
diff --git a/src/main/java/net/floodlightcontroller/hand/HANDGangliaHostsResource.java b/src/main/java/net/floodlightcontroller/hand/HANDGangliaHostsResource.java index f0673e20..40c84fcc 100644 --- a/src/main/java/net/floodlightcontroller/hand/HANDGangliaHostsResource.java +++ b/src/main/java/net/floodlightcontroller/...
true
true
private static HANDGangliaHost jsonToGangliaHost(String hostJson) throws IOException{ HANDGangliaHost host = new HANDGangliaHost(); MappingJsonFactory jsonFactory = new MappingJsonFactory(); JsonParser parser; try{ parser = jsonFactory.createJsonParser(hostJson); }catch(JsonParseException e){ ...
private static HANDGangliaHost jsonToGangliaHost(String hostJson) throws IOException{ HANDGangliaHost host = new HANDGangliaHost(); MappingJsonFactory jsonFactory = new MappingJsonFactory(); JsonParser parser; try{ parser = jsonFactory.createJsonParser(hostJson); }catch(JsonParseException e){ ...
diff --git a/org.dawnsci.plotting.draw2d/src/org/dawnsci/plotting/draw2d/swtxy/selection/AbstractRegion.java b/org.dawnsci.plotting.draw2d/src/org/dawnsci/plotting/draw2d/swtxy/selection/AbstractRegion.java index 4aa68927a..c93e14569 100644 --- a/org.dawnsci.plotting.draw2d/src/org/dawnsci/plotting/draw2d/swtxy/selecti...
true
true
protected void fireROIDragged(IROI roi, ROIEvent.DRAG_TYPE type) { if (roiListeners==null) return; if (!regionEventsActive) return; final ROIEvent evt = new ROIEvent(this, roi); evt.setDragType(type); for (IROIListener l : roiListeners) { try { l.roiDragged(evt); } catch (Throwable ne) { ...
protected void fireROIDragged(IROI roi, ROIEvent.DRAG_TYPE type) { if (roiListeners==null) return; if (!regionEventsActive) return; final ROIEvent evt = new ROIEvent(this, roi); evt.setDragType(type); for (IROIListener l : roiListeners) { try { l.roiDragged(evt); } catch (Throwable ne) { ...
diff --git a/server/net/minecraft/src/buildcraft/logisticspipes/items/LogisticsNBTTagCompundItem.java b/server/net/minecraft/src/buildcraft/logisticspipes/items/LogisticsNBTTagCompundItem.java index 87988f0b..03c6c304 100644 --- a/server/net/minecraft/src/buildcraft/logisticspipes/items/LogisticsNBTTagCompundItem.java ...
true
true
public boolean func_46003_i() { return false; }
public boolean func_46003_i() { return true; }
diff --git a/org.eclipse.jdt.debug.ui/ui/org/eclipse/jdt/internal/debug/ui/jres/LibraryStandin.java b/org.eclipse.jdt.debug.ui/ui/org/eclipse/jdt/internal/debug/ui/jres/LibraryStandin.java index 704107892..332087643 100644 --- a/org.eclipse.jdt.debug.ui/ui/org/eclipse/jdt/internal/debug/ui/jres/LibraryStandin.java +++ ...
true
true
IStatus validate() { if (!getSystemLibraryPath().toFile().exists()) { return new Status(IStatus.ERROR, IJavaDebugUIConstants.PLUGIN_ID, IJavaDebugUIConstants.INTERNAL_ERROR,"System library does not exist: " + getSystemLibraryPath().toOSString(), null); //$NON-NLS-1$ } IPath path = getSystemLibrarySourcePath()...
IStatus validate() { if (!getSystemLibraryPath().toFile().exists()) { return new Status(IStatus.ERROR, IJavaDebugUIConstants.PLUGIN_ID, IJavaDebugUIConstants.INTERNAL_ERROR,"System library does not exist: " + getSystemLibraryPath().toOSString(), null); //$NON-NLS-1$ } IPath path = getSystemLibrarySourcePath()...
diff --git a/opentripplanner-routing/src/main/java/org/opentripplanner/routing/edgetype/PlainStreetEdge.java b/opentripplanner-routing/src/main/java/org/opentripplanner/routing/edgetype/PlainStreetEdge.java index 29e90a000..407b7a472 100644 --- a/opentripplanner-routing/src/main/java/org/opentripplanner/routing/edgetyp...
false
true
private State doTraverse(State s0, RoutingRequest options, TraverseMode traverseMode) { Edge backEdge = s0.getBackEdge(); if (backEdge != null && (options.arriveBy ? (backEdge.getToVertex() == fromv) : (backEdge.getFromVertex() == tov))) { // no il...
private State doTraverse(State s0, RoutingRequest options, TraverseMode traverseMode) { Edge backEdge = s0.getBackEdge(); if (backEdge != null && (options.arriveBy ? (backEdge.getToVertex() == fromv) : (backEdge.getFromVertex() == tov))) { // no il...
diff --git a/src/uk/ac/cam/md481/fjava/tick2/SystemMessage.java b/src/uk/ac/cam/md481/fjava/tick2/SystemMessage.java index 94d2d1b..595763d 100644 --- a/src/uk/ac/cam/md481/fjava/tick2/SystemMessage.java +++ b/src/uk/ac/cam/md481/fjava/tick2/SystemMessage.java @@ -1,26 +1,26 @@ package uk.ac.cam.md481.fjava.tick2; ...
true
true
private String getTimeStamp(){ return new SimpleDateFormat("H:m:s").format(this.time); }
private String getTimeStamp(){ return new SimpleDateFormat("HH:mm:ss").format(this.time); }
diff --git a/srcj/com/sun/electric/tool/io/input/HSpiceOut.java b/srcj/com/sun/electric/tool/io/input/HSpiceOut.java index 9bd8c6476..e48cfcad9 100644 --- a/srcj/com/sun/electric/tool/io/input/HSpiceOut.java +++ b/srcj/com/sun/electric/tool/io/input/HSpiceOut.java @@ -1,1009 +1,1010 @@ /* -*- tab-width: 4 -*- * * ...
true
true
private void readTRDCACFile(Stimuli sd, URL fileURL, List<PALine> paList, Analysis.AnalysisType analysisType) throws IOException { if (openBinaryInput(fileURL)) return; eofReached = false; resetBinaryTRACDCReader(); AnalogAnalysis an = new AnalogAnalysis(sd, analysisType, false); startProgressDialog("HSp...
private void readTRDCACFile(Stimuli sd, URL fileURL, List<PALine> paList, Analysis.AnalysisType analysisType) throws IOException { if (openBinaryInput(fileURL)) return; eofReached = false; resetBinaryTRACDCReader(); AnalogAnalysis an = new AnalogAnalysis(sd, analysisType, false); startProgressDialog("HSp...
diff --git a/src/com/loopj/android/http/AsyncHttpClient.java b/src/com/loopj/android/http/AsyncHttpClient.java index ae65e94..2060e90 100644 --- a/src/com/loopj/android/http/AsyncHttpClient.java +++ b/src/com/loopj/android/http/AsyncHttpClient.java @@ -1,476 +1,476 @@ /* Android Asynchronous Http Client Copy...
true
true
public AsyncHttpClient() { BasicHttpParams httpParams = new BasicHttpParams(); ConnManagerParams.setTimeout(httpParams, socketTimeout); ConnManagerParams.setMaxConnectionsPerRoute(httpParams, new ConnPerRouteBean(maxConnections)); ConnManagerParams.setMaxTotalConnections(httpParams,...
public AsyncHttpClient() { BasicHttpParams httpParams = new BasicHttpParams(); ConnManagerParams.setTimeout(httpParams, socketTimeout); ConnManagerParams.setMaxConnectionsPerRoute(httpParams, new ConnPerRouteBean(maxConnections)); ConnManagerParams.setMaxTotalConnections(httpParams,...
diff --git a/Testing/test/qa-functional/src/org/sleuthkit/autopsy/testing/RegressionTest.java b/Testing/test/qa-functional/src/org/sleuthkit/autopsy/testing/RegressionTest.java index a9fa7a9e6..37d50f3dd 100644 --- a/Testing/test/qa-functional/src/org/sleuthkit/autopsy/testing/RegressionTest.java +++ b/Testing/test/qa-...
true
true
public void testConfigureSearch() { logger.info("Search Configure"); JDialog jd = JDialogOperator.waitJDialog("Advanced Keyword Search Configuration", false, false); JDialogOperator jdo = new JDialogOperator(jd); //setListForIngest(); String words = System.getProperty("keywor...
public void testConfigureSearch() { logger.info("Search Configure"); JDialog jd = JDialogOperator.waitJDialog("Advanced Keyword Search Configuration", false, false); JDialogOperator jdo = new JDialogOperator(jd); //setListForIngest(); String words = System.getProperty("keywor...
diff --git a/cluster/src/test/java/org/neo4j/cluster/protocol/atomicbroadcast/multipaxos/MultiPaxosNetworkTest.java b/cluster/src/test/java/org/neo4j/cluster/protocol/atomicbroadcast/multipaxos/MultiPaxosNetworkTest.java index 619f203e..e7384a80 100644 --- a/cluster/src/test/java/org/neo4j/cluster/protocol/atomicbroadc...
true
true
public void testBroadcast() throws ExecutionException, InterruptedException, URISyntaxException, BrokenBarrierException { final LifeSupport life = new LifeSupport(); Config config = new Config( new ConfigurationDefaults( GraphDatabaseSettings.class ).apply( MapUtil.stringMap ...
public void testBroadcast() throws ExecutionException, InterruptedException, URISyntaxException, BrokenBarrierException { final LifeSupport life = new LifeSupport(); Config config = new Config( new ConfigurationDefaults( GraphDatabaseSettings.class ).apply( MapUtil.stringMap ...
diff --git a/src/Modules/Oscillator.java b/src/Modules/Oscillator.java index 9baeb75..42cbe34 100644 --- a/src/Modules/Oscillator.java +++ b/src/Modules/Oscillator.java @@ -1,281 +1,281 @@ package Modules; import Engine.Constants; import Engine.Module; import Engine.Pipe; /** * @author orpheon * */ publ...
true
true
public void run(Engine.EngineMaster engine, int channel) { // Check whether the frequency pipe exists and whether it is mono if (input_pipes[FREQUENCY_PIPE] != null) { if (input_pipes[FREQUENCY_PIPE].get_type() != Constants.MONO) { System.out.println("Error in Oscillator "+index+"; Frequency pipe has ...
public void run(Engine.EngineMaster engine, int channel) { // Check whether the frequency pipe exists and whether it is mono if (input_pipes[FREQUENCY_PIPE] != null) { if (input_pipes[FREQUENCY_PIPE].get_type() != Constants.MONO) { System.out.println("Error in Oscillator "+index+"; Frequency pipe has ...
diff --git a/src/com/herocraftonline/dev/heroes/HEntityListener.java b/src/com/herocraftonline/dev/heroes/HEntityListener.java index e5b65c9..0782f58 100755 --- a/src/com/herocraftonline/dev/heroes/HEntityListener.java +++ b/src/com/herocraftonline/dev/heroes/HEntityListener.java @@ -1,165 +1,169 @@ package com.herocr...
true
true
public void onEntityDeath(EntityDeathEvent event) { Entity defender = event.getEntity(); Player attacker = kills.get(defender.getEntityId()); kills.remove(defender); Properties prop = plugin.getConfigManager().getProperties(); if (defender instanceof Player) { //...
public void onEntityDeath(EntityDeathEvent event) { Entity defender = event.getEntity(); Player attacker = kills.get(defender.getEntityId()); kills.remove(defender); Properties prop = plugin.getConfigManager().getProperties(); if (defender instanceof Player) { //...
diff --git a/coastal-hazards-wps/src/main/java/gov/usgs/cida/coastalhazards/wps/CreateResultsLayerProcess.java b/coastal-hazards-wps/src/main/java/gov/usgs/cida/coastalhazards/wps/CreateResultsLayerProcess.java index 1f7442448..2244c151d 100644 --- a/coastal-hazards-wps/src/main/java/gov/usgs/cida/coastalhazards/wps/Cr...
true
true
protected List<SimpleFeature> joinResultsToTransects(String[] columnHeaders, Map<Long, Double[]> resultMap, FeatureCollection<SimpleFeatureType, SimpleFeature> transects) { List<SimpleFeature> sfList = new LinkedList<SimpleFeature>(); SimpleFeatureType transectFeatureType = ...
protected List<SimpleFeature> joinResultsToTransects(String[] columnHeaders, Map<Long, Double[]> resultMap, FeatureCollection<SimpleFeatureType, SimpleFeature> transects) { List<SimpleFeature> sfList = new LinkedList<SimpleFeature>(); SimpleFeatureType transectFeatureType = ...
diff --git a/src/com/android/settings/inputmethod/InputMethodAndLanguageSettings.java b/src/com/android/settings/inputmethod/InputMethodAndLanguageSettings.java index eee860a..adb0c49 100644 --- a/src/com/android/settings/inputmethod/InputMethodAndLanguageSettings.java +++ b/src/com/android/settings/inputmethod/InputMe...
true
true
public void onCreate(Bundle icicle) { super.onCreate(icicle); addPreferencesFromResource(R.xml.language_settings); try { mDefaultInputMethodSelectorVisibility = Integer.valueOf( getString(R.string.input_method_selector_visibility_default_value)); } c...
public void onCreate(Bundle icicle) { super.onCreate(icicle); addPreferencesFromResource(R.xml.language_settings); try { mDefaultInputMethodSelectorVisibility = Integer.valueOf( getString(R.string.input_method_selector_visibility_default_value)); } c...
diff --git a/hyracks-dataflow-std/src/main/java/edu/uci/ics/hyracks/dataflow/std/group/ExternalGroupOperatorDescriptor.java b/hyracks-dataflow-std/src/main/java/edu/uci/ics/hyracks/dataflow/std/group/ExternalGroupOperatorDescriptor.java index 1cab78d9d..58f9ffae4 100644 --- a/hyracks-dataflow-std/src/main/java/edu/uci/...
true
true
public IOperatorNodePushable createPushRuntime(final IHyracksTaskContext ctx, IRecordDescriptorProvider recordDescProvider, final int partition, int nPartitions) throws HyracksDataException { final IBinaryComparator[] comparators = new IBinaryComparator[comparatorFact...
public IOperatorNodePushable createPushRuntime(final IHyracksTaskContext ctx, IRecordDescriptorProvider recordDescProvider, final int partition, int nPartitions) throws HyracksDataException { final IBinaryComparator[] comparators = new IBinaryComparator[comparatorFact...
diff --git a/activemq-client/src/main/java/org/apache/activemq/transport/failover/FailoverTransport.java b/activemq-client/src/main/java/org/apache/activemq/transport/failover/FailoverTransport.java index 3f711810f..6c92b385d 100755 --- a/activemq-client/src/main/java/org/apache/activemq/transport/failover/FailoverTran...
true
true
final boolean doReconnect() { Exception failure = null; synchronized (reconnectMutex) { // First ensure we are up to date. doUpdateURIsFromDisk(); if (disposed || connectionFailure != null) { reconnectMutex.notifyAll(); } ...
final boolean doReconnect() { Exception failure = null; synchronized (reconnectMutex) { // First ensure we are up to date. doUpdateURIsFromDisk(); if (disposed || connectionFailure != null) { reconnectMutex.notifyAll(); } ...
diff --git a/ui-vaadin/src/main/java/com/mymita/al/ui/search/MainUI.java b/ui-vaadin/src/main/java/com/mymita/al/ui/search/MainUI.java index 3d70e9b..f2985ab 100644 --- a/ui-vaadin/src/main/java/com/mymita/al/ui/search/MainUI.java +++ b/ui-vaadin/src/main/java/com/mymita/al/ui/search/MainUI.java @@ -1,353 +1,357 @@ pa...
false
true
private void showResultDetails(final CustomLayout content, final Table resultTable, final Person person) { final Panel descriptionPanel = new Panel(); descriptionPanel.setStyleName("description"); descriptionPanel.addStyleName(Reindeer.PANEL_LIGHT); descriptionPanel.setCaption("Beschreibung"); de...
private void showResultDetails(final CustomLayout content, final Table resultTable, final Person person) { final Panel descriptionPanel = new Panel(); descriptionPanel.setStyleName("description"); descriptionPanel.addStyleName(Reindeer.PANEL_LIGHT); descriptionPanel.setCaption("Beschreibung"); de...
diff --git a/src/com/android/phone/CallWaitingCheckBoxPreference.java b/src/com/android/phone/CallWaitingCheckBoxPreference.java index ed17de5..6ef8fc0 100644 --- a/src/com/android/phone/CallWaitingCheckBoxPreference.java +++ b/src/com/android/phone/CallWaitingCheckBoxPreference.java @@ -1,121 +1,125 @@ package com.an...
true
true
private void handleGetCallWaitingResponse(Message msg) { AsyncResult ar = (AsyncResult) msg.obj; if (tcpListener != null) { if (msg.arg2 == MESSAGE_SET_CALL_WAITING) { tcpListener.onFinished(CallWaitingCheckBoxPreference.this, false); ...
private void handleGetCallWaitingResponse(Message msg) { AsyncResult ar = (AsyncResult) msg.obj; if (tcpListener != null) { if (msg.arg2 == MESSAGE_SET_CALL_WAITING) { tcpListener.onFinished(CallWaitingCheckBoxPreference.this, false); ...
diff --git a/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/launch/AndroidLaunchController.java b/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/launch/AndroidLaunchController.java index 38d2397f2..16dad906e 100644 --- a/eclipse/plugins/com.and...
true
true
public void launch(final IProject project, String mode, IFile apk, String packageName, String debugPackageName, Boolean debuggable, String requiredApiVersionNumber, final IAndroidLaunchAction launchAction, final AndroidLaunchConfiguration config, final AndroidLaunch launch, ...
public void launch(final IProject project, String mode, IFile apk, String packageName, String debugPackageName, Boolean debuggable, String requiredApiVersionNumber, final IAndroidLaunchAction launchAction, final AndroidLaunchConfiguration config, final AndroidLaunch launch, ...
diff --git a/src/test/java/org/jbpm/simulation/WorkingMemorySimulationRepositoryTest.java b/src/test/java/org/jbpm/simulation/WorkingMemorySimulationRepositoryTest.java index ba231ae..5dfdb3e 100644 --- a/src/test/java/org/jbpm/simulation/WorkingMemorySimulationRepositoryTest.java +++ b/src/test/java/org/jbpm/simulatio...
true
true
public void testWorkingMemorySimulationRepositoryCEPRule() { PathFinder finder = PathFinderFactory.getInstance(this.getClass().getResourceAsStream("/BPMN2-TwoUserTasks.bpmn2")); List<SimulationPath> paths = finder.findPaths(new SimulationFilterPathFormatConverter()); Simula...
public void testWorkingMemorySimulationRepositoryCEPRule() { PathFinder finder = PathFinderFactory.getInstance(this.getClass().getResourceAsStream("/BPMN2-TwoUserTasks.bpmn2")); List<SimulationPath> paths = finder.findPaths(new SimulationFilterPathFormatConverter()); Simula...
diff --git a/src/test/java/npanday/its/NPandayITWithResourceFileTest.java b/src/test/java/npanday/its/NPandayITWithResourceFileTest.java index f042825..dbec223 100644 --- a/src/test/java/npanday/its/NPandayITWithResourceFileTest.java +++ b/src/test/java/npanday/its/NPandayITWithResourceFileTest.java @@ -1,45 +1,45 @@ ...
true
true
public void testWithResourceFile() throws Exception { File testDir = ResourceExtractor.simpleExtractResources( getClass(), "/WithResourceFile" ); Verifier verifier = getVerifier( testDir ); verifier.executeGoal( "test" ); verifier.assertFilePresent( new File( testDir, "Cl...
public void testWithResourceFile() throws Exception { File testDir = ResourceExtractor.simpleExtractResources( getClass(), "/WithResourceFile" ); Verifier verifier = getVerifier( testDir ); verifier.executeGoal( "test" ); verifier.assertFilePresent( new File( testDir, "Cl...
diff --git a/eol-globi-data-tool/src/main/java/org/eol/globi/export/StudyExportUnmatchedTaxaForStudies.java b/eol-globi-data-tool/src/main/java/org/eol/globi/export/StudyExportUnmatchedTaxaForStudies.java index 28dca2a2..572eb11b 100644 --- a/eol-globi-data-tool/src/main/java/org/eol/globi/export/StudyExportUnmatchedTa...
true
true
public void exportStudy(Study study, Writer writer, boolean includeHeader) throws IOException { ExecutionEngine engine = new ExecutionEngine(graphDbService); String query = "START study = node:studies(\"*:*\") " + "MATCH study-[:COLLECTED]->specimen-[:CLASSIFIED_AS]->taxon " + ...
public void exportStudy(Study study, Writer writer, boolean includeHeader) throws IOException { ExecutionEngine engine = new ExecutionEngine(graphDbService); String query = "START study = node:studies(\"*:*\") " + "MATCH study-[:COLLECTED]->specimen-[:CLASSIFIED_AS]->taxon " + ...
diff --git a/components/dotnet-executable/src/main/java/npanday/executable/compiler/impl/DefaultCompiler.java b/components/dotnet-executable/src/main/java/npanday/executable/compiler/impl/DefaultCompiler.java index 83932bd0..cac1a317 100644 --- a/components/dotnet-executable/src/main/java/npanday/executable/compiler/im...
true
true
public List<String> getCommands() throws ExecutionException { if ( compilerContext == null ) { throw new ExecutionException( "NPANDAY-068-000: Compiler has not been initialized with a context" ); } CompilerConfig config = compilerContext.getNetCompilerConfig()...
public List<String> getCommands() throws ExecutionException { if ( compilerContext == null ) { throw new ExecutionException( "NPANDAY-068-000: Compiler has not been initialized with a context" ); } CompilerConfig config = compilerContext.getNetCompilerConfig()...
diff --git a/src/buglinky/BugLinkyServlet.java b/src/buglinky/BugLinkyServlet.java index 46bf554..f520773 100644 --- a/src/buglinky/BugLinkyServlet.java +++ b/src/buglinky/BugLinkyServlet.java @@ -1,91 +1,91 @@ package buglinky; import java.util.logging.Logger; import java.util.regex.Matcher; import java.util.reg...
true
true
private void dispatchEvents(RobotMessageBundle bundle) { for (Event e: bundle.getEvents()) { if (e.getModifiedBy() != ME) { switch (e.getType()) { // One or the other of these should be wired up in // capabilities.xml. If we use BLIP_SUBMITTED, we'll apply // our links once the user clicks "Done"...
private void dispatchEvents(RobotMessageBundle bundle) { for (Event e: bundle.getEvents()) { if (!e.getModifiedBy().equals(ME)) { switch (e.getType()) { // One or the other of these should be wired up in // capabilities.xml. If we use BLIP_SUBMITTED, we'll apply // our links once the user clicks ...
diff --git a/src/main/java/com/mmounirou/spotiboard/SpotiBoard.java b/src/main/java/com/mmounirou/spotiboard/SpotiBoard.java index d54068b..3cefffb 100644 --- a/src/main/java/com/mmounirou/spotiboard/SpotiBoard.java +++ b/src/main/java/com/mmounirou/spotiboard/SpotiBoard.java @@ -1,119 +1,119 @@ package com.mmounirou....
true
true
public static void main(String[] args) throws IOException { if (args.length == 0) { System.err.println("usage : java -jar spotiboard.jar <charts-folder>"); return; } final File resultDir = new File(FileSystemView.getFileSystemView().getDefaultDirectory(), args[0]); resultDir.mkdirs(); Iterable<Str...
public static void main(String[] args) throws IOException { if (args.length == 0) { System.err.println("usage : java -jar spotiboard.jar <charts-folder>"); return; } final File resultDir = new File(args[0]); resultDir.mkdirs(); Iterable<String> chartsRss = getCharts(); TrackCache cache = new Tr...
diff --git a/src/ui/gwt/src/org/grammaticalframework/ui/gwt/client/FridgeApp.java b/src/ui/gwt/src/org/grammaticalframework/ui/gwt/client/FridgeApp.java index c9bfbac44..c9d1bcfcd 100644 --- a/src/ui/gwt/src/org/grammaticalframework/ui/gwt/client/FridgeApp.java +++ b/src/ui/gwt/src/org/grammaticalframework/ui/gwt/clien...
false
true
protected Widget createUI() { ClickListener magnetClickListener = new ClickListener () { public void onClick(Widget widget) { Magnet magnet = (Magnet)widget; textPanel.addMagnet(magnet); } }; magnetFactory = new MagnetFactory(magnetClickListener); textPanel = new FridgeTextPanel(magnetFactory); ...
protected Widget createUI() { ClickListener magnetClickListener = new ClickListener () { public void onClick(Widget widget) { Magnet magnet = (Magnet)widget; textPanel.addMagnet(magnet); } }; magnetFactory = new MagnetFactory(magnetClickListener); textPanel = new FridgeTextPanel(magnetFactory); ...
diff --git a/LinkedChest/src/com/ghomerr/linkedchest/LinkedChest.java b/LinkedChest/src/com/ghomerr/linkedchest/LinkedChest.java index 9217fde..576c68b 100644 --- a/LinkedChest/src/com/ghomerr/linkedchest/LinkedChest.java +++ b/LinkedChest/src/com/ghomerr/linkedchest/LinkedChest.java @@ -1,865 +1,865 @@ package com.gh...
false
true
private boolean loadPluginData() { if (_masterChestsData != null) { if (!_masterChestsData.isEmpty()) { final Set<Object> keys = _masterChestsData.keySet(); final List<String> chestsToRemove = new ArrayList<String>(); // LOAD MASTER CHESTS DATA for (final Object key : keys) { final...
private boolean loadPluginData() { if (_masterChestsData != null) { if (!_masterChestsData.isEmpty()) { final Set<Object> keys = _masterChestsData.keySet(); final List<String> chestsToRemove = new ArrayList<String>(); // LOAD MASTER CHESTS DATA for (final Object key : keys) { final...
diff --git a/sonar-squid-java-plugin/src/main/java/org/sonar/plugins/java/bridges/ChecksBridge.java b/sonar-squid-java-plugin/src/main/java/org/sonar/plugins/java/bridges/ChecksBridge.java index 2fd385a1f..8ce0e1106 100644 --- a/sonar-squid-java-plugin/src/main/java/org/sonar/plugins/java/bridges/ChecksBridge.java +++ ...
true
true
public void onFile(SourceFile squidFile, Resource sonarFile) { Set<CheckMessage> messages = squidFile.getCheckMessages(); if (messages != null) { for (CheckMessage checkMessage : messages) { ActiveRule rule = checkFactory.getActiveRule(checkMessage.getCheck()); Violation violation = Viol...
public void onFile(SourceFile squidFile, Resource sonarFile) { Set<CheckMessage> messages = squidFile.getCheckMessages(); if (messages != null) { for (CheckMessage checkMessage : messages) { ActiveRule rule = checkFactory.getActiveRule(checkMessage.getCheck()); Violation violation = Viol...
diff --git a/src/edu/chalmers/dat255/group09/Alarmed/adapter/BrowseAlarmAdapter.java b/src/edu/chalmers/dat255/group09/Alarmed/adapter/BrowseAlarmAdapter.java index 156c5ad..054ebba 100644 --- a/src/edu/chalmers/dat255/group09/Alarmed/adapter/BrowseAlarmAdapter.java +++ b/src/edu/chalmers/dat255/group09/Alarmed/adapter...
true
true
public View getView(int position, View convertView, ViewGroup parent) { View view = convertView; if (convertView == null) { LayoutInflater inflater = LayoutInflater.from(parent.getContext()); view = inflater.inflate(R.layout.alarms_list_item, parent, false); } TextView textView = (TextView) view.findView...
public View getView(int position, View convertView, ViewGroup parent) { View view = convertView; if (convertView == null) { LayoutInflater inflater = LayoutInflater.from(parent.getContext()); view = inflater.inflate(R.layout.alarms_list_item, parent, false); } TextView textView = (TextView) view.findView...
diff --git a/srcj/com/sun/electric/tool/Tool.java b/srcj/com/sun/electric/tool/Tool.java index 5bcb74e53..0eb1f7974 100755 --- a/srcj/com/sun/electric/tool/Tool.java +++ b/srcj/com/sun/electric/tool/Tool.java @@ -1,458 +1,458 @@ /* -*- tab-width: 4 -*- * * Electric(tm) VLSI Design System * * File: Tool.java ...
true
true
public static void initAllTools() { User.getUserTool().init(); Compaction.getCompactionTool().init(); DRC.getDRCTool().init(); ERC.getERCTool().init(); Extract.getExtractTool().init(); IOTool.getIOTool().init(); LETool.getLETool().init(); NetworkTool.getNetworkTool().init...
public static void initAllTools() { User.getUserTool().init(); Compaction.getCompactionTool().init(); DRC.getDRCTool().init(); ERC.getERCTool().init(); Extract.getExtractTool().init(); IOTool.getIOTool().init(); LETool.getLETool().init(); NetworkTool.getNetworkTool().init...
diff --git a/src/frontend/org/voltdb/sysprocs/saverestore/SnapshotUtil.java b/src/frontend/org/voltdb/sysprocs/saverestore/SnapshotUtil.java index 95b4f6dc6..cdb382b32 100644 --- a/src/frontend/org/voltdb/sysprocs/saverestore/SnapshotUtil.java +++ b/src/frontend/org/voltdb/sysprocs/saverestore/SnapshotUtil.java @@ -1,8...
true
true
public static Pair<Boolean, String> generateSnapshotReport(Long snapshotTxnId, Snapshot snapshot) { CharArrayWriter caw = new CharArrayWriter(); PrintWriter pw = new PrintWriter(caw); boolean snapshotConsistent = true; String indentString = ""; pw.println(indentString + "TxnI...
public static Pair<Boolean, String> generateSnapshotReport(Long snapshotTxnId, Snapshot snapshot) { CharArrayWriter caw = new CharArrayWriter(); PrintWriter pw = new PrintWriter(caw); boolean snapshotConsistent = true; String indentString = ""; pw.println(indentString + "TxnI...
diff --git a/errai-bus/src/main/java/org/jboss/errai/bus/server/util/ConfigUtil.java b/errai-bus/src/main/java/org/jboss/errai/bus/server/util/ConfigUtil.java index 684c3800b..18568dc0f 100644 --- a/errai-bus/src/main/java/org/jboss/errai/bus/server/util/ConfigUtil.java +++ b/errai-bus/src/main/java/org/jboss/errai/bus...
false
true
public static List<File> findAllConfigTargets() { try { Enumeration<URL> t = ConfigUtil.class.getClassLoader().getResources(ERRAI_CONFIG_STUB_NAME); List<File> targets = new LinkedList<File>(); while (t.hasMoreElements()) { String fileName = URLDecoder.dec...
public static List<File> findAllConfigTargets() { try { Enumeration<URL> t = ConfigUtil.class.getClassLoader().getResources(ERRAI_CONFIG_STUB_NAME); List<File> targets = new LinkedList<File>(); while (t.hasMoreElements()) { String fileName = URLDecoder.dec...
diff --git a/src/main/java/org/dita/dost/reader/MergeMapParser.java b/src/main/java/org/dita/dost/reader/MergeMapParser.java index a6be64555..0ef03d078 100644 --- a/src/main/java/org/dita/dost/reader/MergeMapParser.java +++ b/src/main/java/org/dita/dost/reader/MergeMapParser.java @@ -1,264 +1,267 @@ /* * This file i...
false
true
public void startElement(final String uri, final String localName, final String qName, final Attributes attributes) throws SAXException { final String attrValue = attributes.getValue(ATTRIBUTE_NAME_PROCESSING_ROLE); if (attrValue != null) { processStack.push(attrValue); proce...
public void startElement(final String uri, final String localName, final String qName, final Attributes attributes) throws SAXException { final String attrValue = attributes.getValue(ATTRIBUTE_NAME_PROCESSING_ROLE); if (attrValue != null) { processStack.push(attrValue); proce...
diff --git a/src/net/pointysoftware/forcegenchunks/ForcegenChunks.java b/src/net/pointysoftware/forcegenchunks/ForcegenChunks.java index fdb94c6..a80b5ca 100644 --- a/src/net/pointysoftware/forcegenchunks/ForcegenChunks.java +++ b/src/net/pointysoftware/forcegenchunks/ForcegenChunks.java @@ -1,332 +1,332 @@ /* See...
true
true
public boolean onCommand(CommandSender sender, Command cmd, String commandLabel, String[] args) { boolean bCircular = commandLabel.compareToIgnoreCase("forcegencircle") == 0; if (bCircular || commandLabel.compareToIgnoreCase("forcegenchunks") == 0 || commandLabel.compareToIgnoreCase("forcegen") ...
public boolean onCommand(CommandSender sender, Command cmd, String commandLabel, String[] args) { boolean bCircular = commandLabel.compareToIgnoreCase("forcegencircle") == 0; if (bCircular || commandLabel.compareToIgnoreCase("forcegenchunks") == 0 || commandLabel.compareToIgnoreCase("forcegen") ...
diff --git a/src/main/java/openr66/database/data/DbTaskRunner.java b/src/main/java/openr66/database/data/DbTaskRunner.java index 752b0828..5132906b 100644 --- a/src/main/java/openr66/database/data/DbTaskRunner.java +++ b/src/main/java/openr66/database/data/DbTaskRunner.java @@ -1,2520 +1,2524 @@ /** * Copyright 2009...
true
true
private static DbPreparedStatement getFilterCondition( DbPreparedStatement preparedStatement, String srcrequest, int limit, String orderby, String startid, String stopid, Timestamp start, Timestamp stop, String rule, String req, boolean pending, boolean transfer, boolean error, ...
private static DbPreparedStatement getFilterCondition( DbPreparedStatement preparedStatement, String srcrequest, int limit, String orderby, String startid, String stopid, Timestamp start, Timestamp stop, String rule, String req, boolean pending, boolean transfer, boolean error, ...
diff --git a/Android/Controller/src/com/tikoLabs/quadcontrol/MainActivity.java b/Android/Controller/src/com/tikoLabs/quadcontrol/MainActivity.java index ff00a0a..98b9ce7 100644 --- a/Android/Controller/src/com/tikoLabs/quadcontrol/MainActivity.java +++ b/Android/Controller/src/com/tikoLabs/quadcontrol/MainActivity.java...
false
true
protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_main); angleTextView = (TextView) findViewById(R.id.angleTextView); powerTextView = (TextView) findViewById(R.id.powerTextView); textStatus = (TextView) ...
protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_main); angleTextView = (TextView) findViewById(R.id.angleTextView); powerTextView = (TextView) findViewById(R.id.powerTextView); textStatus = (TextView) ...
diff --git a/src/share/org/dianexus/triceps/ExcelDecoder.java b/src/share/org/dianexus/triceps/ExcelDecoder.java index 27b6ac2..900fad7 100644 --- a/src/share/org/dianexus/triceps/ExcelDecoder.java +++ b/src/share/org/dianexus/triceps/ExcelDecoder.java @@ -1,35 +1,37 @@ /* *********************************************...
false
true
static String decode(String s) { if (s.startsWith("\"") && s.endsWith("\"")) { StringBuffer sb = new StringBuffer(); int start=1; int stop=0; while ((stop = s.indexOf("\"\"",start)) != -1) { sb.append(s.substring(start,stop)); sb.append("\""); start = stop+2; } sb.append(s.substring(s...
static String decode(String s) { if (s.startsWith("\"") && s.endsWith("\"") && s.length() > 1) { StringBuffer sb = new StringBuffer(); int start=1; int stop=0; while ((stop = s.indexOf("\"\"",start)) != -1) { sb.append(s.substring(start,stop)); sb.append("\""); start = stop+2; } if (s...
diff --git a/plugins/org.eclipse.mylyn.docs.intent.client.ui/src/org/eclipse/mylyn/docs/intent/client/ui/editor/scanner/IntentStructuredElementScanner.java b/plugins/org.eclipse.mylyn.docs.intent.client.ui/src/org/eclipse/mylyn/docs/intent/client/ui/editor/scanner/IntentStructuredElementScanner.java index 27764406..5fa...
true
true
public IntentStructuredElementScanner(ColorManager colorManager) { super(colorManager); Color backgroundColor = null; Color duForeGroundColor = colorManager.getColor(IntentColorConstants.getDuDefaultForeground()); IToken duToken = new Token(new TextAttribute(duForeGroundColor, backgroundColor, SWT.NONE, ...
public IntentStructuredElementScanner(ColorManager colorManager) { super(colorManager); Color backgroundColor = null; Color duForeGroundColor = colorManager.getColor(IntentColorConstants.getDuDefaultForeground()); IToken duToken = new Token(new TextAttribute(duForeGroundColor, backgroundColor, SWT.NONE, ...
diff --git a/src/org/openstreetmap/josm/data/osm/visitor/NameVisitor.java b/src/org/openstreetmap/josm/data/osm/visitor/NameVisitor.java index 01bf2076..86459dba 100644 --- a/src/org/openstreetmap/josm/data/osm/visitor/NameVisitor.java +++ b/src/org/openstreetmap/josm/data/osm/visitor/NameVisitor.java @@ -1,94 +1,95 @@...
true
true
public void visit(Way w) { name = w.get("name"); if (name == null) name = w.get("ref"); if (name == null) { String what = (w.get("highway") != null) ? "highway " : (w.get("railway") != null) ? "railway " : (w.get("waterway") != null) ? "waterway " : ""; name = what + trn("{0} node", "{0} nodes", w.nodes.si...
public void visit(Way w) { name = w.get("name"); if (name == null) name = w.get("ref"); if (name == null) { String what = (w.get("highway") != null) ? "highway " : (w.get("railway") != null) ? "railway " : (w.get("waterway") != null) ? "waterway " : ""; int nodesNo = new HashSet(w.nodes).size(); name = ...
diff --git a/core/src/main/java/org/apache/commons/vfs/provider/sftp/SftpFileObject.java b/core/src/main/java/org/apache/commons/vfs/provider/sftp/SftpFileObject.java index 46b8eab5..8e61172a 100644 --- a/core/src/main/java/org/apache/commons/vfs/provider/sftp/SftpFileObject.java +++ b/core/src/main/java/org/apache/com...
false
true
protected FileObject[] doListChildrenResolved() throws Exception { // List the contents of the folder Vector<LsEntry> vector = null; final ChannelSftp channel = fileSystem.getChannel(); try { // try the direct way to list the directory on the server to avoid ...
protected FileObject[] doListChildrenResolved() throws Exception { // List the contents of the folder Vector<?> vector = null; final ChannelSftp channel = fileSystem.getChannel(); try { // try the direct way to list the directory on the server to avoid too ma...