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/bndtools.core/src/bndtools/internal/decorator/ExportedPackageDecoratorJob.java b/bndtools.core/src/bndtools/internal/decorator/ExportedPackageDecoratorJob.java index 164ef0b2..6608d9ec 100644 --- a/bndtools.core/src/bndtools/internal/decorator/ExportedPackageDecoratorJob.java +++ b/bndtools.core/src/bndtoo...
false
true
protected IStatus run(IProgressMonitor monitor) { instances.remove(project.getFullPath().toPortableString()); try { Project model = Workspace.getProject(project.getLocation().toFile()); Collection< ? extends Builder> builders = model.getSubBuilders(); Map<String...
protected IStatus run(IProgressMonitor monitor) { instances.remove(project.getFullPath().toPortableString()); try { Project model = Workspace.getProject(project.getLocation().toFile()); Collection< ? extends Builder> builders = model.getSubBuilders(); Map<String...
diff --git a/src/com/codisimus/plugins/lores/Lores.java b/src/com/codisimus/plugins/lores/Lores.java index d53a574..61baa6c 100644 --- a/src/com/codisimus/plugins/lores/Lores.java +++ b/src/com/codisimus/plugins/lores/Lores.java @@ -1,348 +1,348 @@ package com.codisimus.plugins.lores; import java.util.*; import or...
true
true
public boolean onCommand(CommandSender sender, Command command, String alias, String[] args) { //This Command is only useful to Players if (!(sender instanceof Player)) { sendHelp(sender); return true; } Player player = (Player) sender; ItemStack item...
public boolean onCommand(CommandSender sender, Command command, String alias, String[] args) { //This Command is only useful to Players if (!(sender instanceof Player)) { sendHelp(sender); return true; } Player player = (Player) sender; ItemStack item...
diff --git a/src/test/java/PredicateTests.java b/src/test/java/PredicateTests.java index 1f360f3..b61ff5b 100644 --- a/src/test/java/PredicateTests.java +++ b/src/test/java/PredicateTests.java @@ -1,123 +1,122 @@ import org.junit.Test; import java.util.Objects; import java.util.function.Predicate; import java.uti...
false
true
public void canDoAXOr(){ Predicate<Integer> gt6 = (x) -> x > 6; Predicate<Integer> lt9 = (x) -> x < 9; Predicate<Integer> even = (x) -> x % 2 == 0; Predicate<Integer> all = gt6.xor(lt9).xor(even); assertTrue(all.test(8)); assertFalse(all.test(7)); assertFals...
public void canDoAXOr(){ Predicate<String> containsF = (x) -> x.contains("F"); Predicate<String> startsWithp = (x) -> x.startsWith("p"); Predicate<String> xor = containsF.xor(startsWithp); assertFalse(xor.test("pAndFoo")); assertTrue(xor.test("patty")); assertTrue(x...
diff --git a/src/classes/win32/javax/media/j3d/NativeConfigTemplate3D.java b/src/classes/win32/javax/media/j3d/NativeConfigTemplate3D.java index f52223f..b37af27 100644 --- a/src/classes/win32/javax/media/j3d/NativeConfigTemplate3D.java +++ b/src/classes/win32/javax/media/j3d/NativeConfigTemplate3D.java @@ -1,215 +1,21...
true
true
GraphicsConfiguration getBestConfiguration(GraphicsConfigTemplate3D template, GraphicsConfiguration[] gc) { Win32GraphicsDevice gd = (Win32GraphicsDevice)((Win32GraphicsConfig)gc[0]).getDevice(); /* Not ready to enforce ARB extension in J3D1.3.2, but will lik...
GraphicsConfiguration getBestConfiguration(GraphicsConfigTemplate3D template, GraphicsConfiguration[] gc) { Win32GraphicsDevice gd = (Win32GraphicsDevice)((Win32GraphicsConfig)gc[0]).getDevice(); /* Not ready to enforce ARB extension in J3D1.3.2, but will lik...
diff --git a/src/com/poguico/palmabici/network/synchronizer/NetworkStationAlarm.java b/src/com/poguico/palmabici/network/synchronizer/NetworkStationAlarm.java index c337504..41ef0fe 100644 --- a/src/com/poguico/palmabici/network/synchronizer/NetworkStationAlarm.java +++ b/src/com/poguico/palmabici/network/synchronizer/...
false
true
public void showNotification(Station station) { SharedPreferences mPrefs; SharedPreferences.Editor edit; String message = Formatter.formatBikesAvailableMessage(context, station); Bitmap bigIcon = BitmapFactory.decodeResource(context.getResources(), R.drawable.palmabici_bw); Uri uri= RingtoneManager.get...
public void showNotification(Station station) { SharedPreferences mPrefs; SharedPreferences.Editor edit; String message = Formatter.formatBikesAvailableMessage(context, station); Bitmap bigIcon = BitmapFactory.decodeResource(context.getResources(), R.drawable.palmabici_bw); Uri uri= RingtoneManager.get...
diff --git a/smart-maven-plugin/src/main/java/org/smart/plugin/SmartDeployMojo.java b/smart-maven-plugin/src/main/java/org/smart/plugin/SmartDeployMojo.java index aea2d37..f0b699d 100644 --- a/smart-maven-plugin/src/main/java/org/smart/plugin/SmartDeployMojo.java +++ b/smart-maven-plugin/src/main/java/org/smart/plugin/...
true
true
public void execute() throws MojoExecutionException { File f = jarFile; SecureSmartClient clnt = null; try { clnt = new SecureSmartClient(port, server, "", "", flowsoa); clnt.authenticateAdmin(user, password); clnt.deployJar(jarFile.g...
public void execute() throws MojoExecutionException { File f = jarFile; SecureSmartClient clnt = null; try { clnt = new SecureSmartClient(port, server, "", "", flowsoa); clnt.authenticateAdmin(user, password); String str = jarFile.get...
diff --git a/oak-jcr/src/test/java/org/apache/jackrabbit/oak/jcr/query/QueryFulltextTest.java b/oak-jcr/src/test/java/org/apache/jackrabbit/oak/jcr/query/QueryFulltextTest.java index d0403222e5..bd7125e91c 100644 --- a/oak-jcr/src/test/java/org/apache/jackrabbit/oak/jcr/query/QueryFulltextTest.java +++ b/oak-jcr/src/te...
false
true
public void excerpt() throws Exception { Session session = getAdminSession(); QueryManager qm = session.getWorkspace().getQueryManager(); Node testRootNode = session.getRootNode().addNode("testroot"); Node n1 = testRootNode.addNode("node1"); n1.setProperty("text", "hello worl...
public void excerpt() throws Exception { Session session = getAdminSession(); QueryManager qm = session.getWorkspace().getQueryManager(); Node testRootNode = session.getRootNode().addNode("testroot"); Node n1 = testRootNode.addNode("node1"); n1.setProperty("text", "hello worl...
diff --git a/src/main/java/io/datamine/DataMineClient/DataWrappers/LogEvent.java b/src/main/java/io/datamine/DataMineClient/DataWrappers/LogEvent.java index c29c75d..9d75065 100644 --- a/src/main/java/io/datamine/DataMineClient/DataWrappers/LogEvent.java +++ b/src/main/java/io/datamine/DataMineClient/DataWrappers/LogEv...
true
true
public HashMap<String, Object> toHashMap() { HashMap<String, Object> ret = new HashMap<String, Object>(); ret.put("chunk", this.chunk.toHashMap()); ret.put("type", this.type); ret.put("additional", this.additional); return ret; }
public HashMap<String, Object> toHashMap() { HashMap<String, Object> ret = new HashMap<String, Object>(); if(chunk != null) ret.put("chunk", this.chunk.toHashMap()); ret.put("type", this.type); ret.put("additional", this.additional); return ret; }
diff --git a/fabric/fabric-zookeeper/src/main/java/org/fusesource/fabric/zookeeper/internal/KarafContainerRegistration.java b/fabric/fabric-zookeeper/src/main/java/org/fusesource/fabric/zookeeper/internal/KarafContainerRegistration.java index c611b5a3f..ccaf0dee7 100644 --- a/fabric/fabric-zookeeper/src/main/java/org/f...
true
true
public void onConnected() { logger.trace("onConnected"); try { lock.tryLock(10,TimeUnit.SECONDS); String nodeAlive = CONTAINER_ALIVE.getPath(name); Stat stat = zooKeeper.exists(nodeAlive); if (stat != null) { if (stat.getEphemeralOwner(...
public void onConnected() { logger.trace("onConnected"); try { lock.tryLock(10,TimeUnit.SECONDS); String nodeAlive = CONTAINER_ALIVE.getPath(name); Stat stat = zooKeeper.exists(nodeAlive); if (stat != null) { if (stat.getEphemeralOwner(...
diff --git a/src/java/org/disco/easyb/core/delegates/EnsuringDelegate.java b/src/java/org/disco/easyb/core/delegates/EnsuringDelegate.java index 728aa7e..e7df4d1 100644 --- a/src/java/org/disco/easyb/core/delegates/EnsuringDelegate.java +++ b/src/java/org/disco/easyb/core/delegates/EnsuringDelegate.java @@ -1,94 +1,100...
false
true
public void ensureThrows(final Class<?> clzz, final Closure closure) throws Exception { try { closure.call(); } catch (Throwable e) { if (!clzz.isAssignableFrom(e.getClass()) && (e.getCause() != null) && !(e.getCause().getClass() == clzz)) { throw new VerificationException( "exception caugh...
public void ensureThrows(final Class<?> clzz, final Closure closure) throws Exception { boolean expectedExceptionCaught = false; try { closure.call(); } catch (Throwable e) { if (!clzz.isAssignableFrom(e.getClass()) && (e.getCause() != null) && !(e.getCause().getClass() == clzz)) { throw new Verif...
diff --git a/kmelia/kmelia-war/src/main/java/com/stratelia/webactiv/kmelia/servlets/KmeliaRequestRouter.java b/kmelia/kmelia-war/src/main/java/com/stratelia/webactiv/kmelia/servlets/KmeliaRequestRouter.java index 10c221590..8c4738397 100644 --- a/kmelia/kmelia-war/src/main/java/com/stratelia/webactiv/kmelia/servlets/Km...
false
true
public String getDestination(String function, ComponentSessionController componentSC, HttpServletRequest request) { SilverTrace.info("kmelia", "KmeliaRequestRouter.getDestination()", "root.MSG_GEN_PARAM_VALUE", "function = " + function); String destination = ""; String rootDestination = "/km...
public String getDestination(String function, ComponentSessionController componentSC, HttpServletRequest request) { SilverTrace.info("kmelia", "KmeliaRequestRouter.getDestination()", "root.MSG_GEN_PARAM_VALUE", "function = " + function); String destination = ""; String rootDestination = "/km...
diff --git a/teeda/teeda-extension/src/main/java/org/seasar/teeda/extension/util/ConditionUtil.java b/teeda/teeda-extension/src/main/java/org/seasar/teeda/extension/util/ConditionUtil.java index a3f5a9aa3..a22c8af28 100644 --- a/teeda/teeda-extension/src/main/java/org/seasar/teeda/extension/util/ConditionUtil.java +++ ...
true
true
protected static void renderJavascript(final ResponseWriter writer, final Map conditions, final List forms) throws IOException { writer.write(JsfConstants.LINE_SP); writer.startElement(JsfConstants.SCRIPT_ELEM, null); writer.writeAttribute(JsfConstants.LANGUAG...
protected static void renderJavascript(final ResponseWriter writer, final Map conditions, final List forms) throws IOException { writer.write(JsfConstants.LINE_SP); writer.startElement(JsfConstants.SCRIPT_ELEM, null); writer.writeAttribute(JsfConstants.LANGUAG...
diff --git a/project/src/de/topobyte/livecg/ui/geometryeditor/object/action/ToRingsAction.java b/project/src/de/topobyte/livecg/ui/geometryeditor/object/action/ToRingsAction.java index 68250ac..907140f 100644 --- a/project/src/de/topobyte/livecg/ui/geometryeditor/object/action/ToRingsAction.java +++ b/project/src/de/to...
false
true
public void actionPerformed(ActionEvent e) { Chain shell = polygon.getShell(); Content content = editPane.getContent(); content.removePolygon(polygon); editPane.removeCurrentPolygon(polygon); content.addChain(shell); for (Chain hole : polygon.getHoles()) { content.addChain(hole); } content.fireCont...
public void actionPerformed(ActionEvent e) { Chain shell = polygon.getShell(); shell.removePolygon(polygon); Content content = editPane.getContent(); content.removePolygon(polygon); editPane.removeCurrentPolygon(polygon); content.addChain(shell); for (Chain hole : polygon.getHoles()) { content.addCha...
diff --git a/microsoft-azure-api/src/test/java/com/microsoft/azure/services/serviceBus/IntegrationTestBase.java b/microsoft-azure-api/src/test/java/com/microsoft/azure/services/serviceBus/IntegrationTestBase.java index cce7a5080d..e1904519bc 100644 --- a/microsoft-azure-api/src/test/java/com/microsoft/azure/services/se...
true
true
public void initialize() throws Exception { System.setProperty("http.proxyHost", "157.54.119.101"); System.setProperty("http.proxyPort", "80"); System.setProperty("http.keepAlive", "false"); boolean testAlphaExists = false; ServiceBusClient client = createConfiguration().create(ServiceBusClient.class); ...
public void initialize() throws Exception { System.setProperty("http.proxyHost", "157.54.119.101"); System.setProperty("http.proxyPort", "80"); System.setProperty("http.keepAlive", "false"); boolean testAlphaExists = false; ServiceBusClient client = createConfiguration().create(ServiceBusClient.class); ...
diff --git a/org.eclipse.mylyn.java.ui/src/org/eclipse/mylyn/internal/java/ui/JavaEditingMonitor.java b/org.eclipse.mylyn.java.ui/src/org/eclipse/mylyn/internal/java/ui/JavaEditingMonitor.java index f04102b2d..928a0c276 100644 --- a/org.eclipse.mylyn.java.ui/src/org/eclipse/mylyn/internal/java/ui/JavaEditingMonitor.jav...
false
true
public void handleWorkbenchPartSelection(IWorkbenchPart part, ISelection selection, boolean contributeToContext) { try { IJavaElement selectedElement = null; if (selection instanceof StructuredSelection) { StructuredSelection structuredSelection = (StructuredSelection) selection; if (structuredSelecti...
public void handleWorkbenchPartSelection(IWorkbenchPart part, ISelection selection, boolean contributeToContext) { try { IJavaElement selectedElement = null; if (selection instanceof StructuredSelection) { StructuredSelection structuredSelection = (StructuredSelection) selection; if (structuredSelecti...
diff --git a/public/mbwapi/src/main/java/com/mrd/mbwapi/api/ExchangeRate.java b/public/mbwapi/src/main/java/com/mrd/mbwapi/api/ExchangeRate.java index 6b85de83..3fd62253 100644 --- a/public/mbwapi/src/main/java/com/mrd/mbwapi/api/ExchangeRate.java +++ b/public/mbwapi/src/main/java/com/mrd/mbwapi/api/ExchangeRate.java @...
true
true
protected ExchangeRate(ByteReader reader) throws InsufficientBytesException { name = reader.getString(); time = reader.getLongLE(); currency = reader.getString(); String priceString = reader.getString(); if (priceString.isEmpty()) { price = null; } else { Double ...
protected ExchangeRate(ByteReader reader) throws InsufficientBytesException { name = reader.getString(); time = reader.getLongLE(); currency = reader.getString(); String priceString = reader.getString(); if (priceString.length() == 0) { price = null; } else { Dou...
diff --git a/src/wowebookcom/cz/vity/freerapid/plugins/services/wowebookcom/WowEbookComFileRunner.java b/src/wowebookcom/cz/vity/freerapid/plugins/services/wowebookcom/WowEbookComFileRunner.java index c839d410..032c12c3 100644 --- a/src/wowebookcom/cz/vity/freerapid/plugins/services/wowebookcom/WowEbookComFileRunner.ja...
true
true
public void run() throws Exception { super.run(); logger.info("Starting download in TASK " + fileURL); final GetMethod method = getGetMethod(fileURL); if (makeRedirectedRequest(method)) { checkProblems(); String directURL = PlugUtils.getStringBetween(getConte...
public void run() throws Exception { super.run(); logger.info("Starting download in TASK " + fileURL); final GetMethod method = getGetMethod(fileURL); if (makeRedirectedRequest(method)) { checkProblems(); final String start = "] <a target=\"_blank\" href=\"";...
diff --git a/DataDroid/src/com/foxykeep/datadroid/factory/RssFactory.java b/DataDroid/src/com/foxykeep/datadroid/factory/RssFactory.java index b6eb960..bf2ad6f 100644 --- a/DataDroid/src/com/foxykeep/datadroid/factory/RssFactory.java +++ b/DataDroid/src/com/foxykeep/datadroid/factory/RssFactory.java @@ -1,254 +1,254 @@...
false
true
public void endElement(String namespaceURI, String localName, String qName) throws SAXException { if (TextUtils.isEmpty(namespaceURI)) { if (localName.equals("item")) { mRssFeed.rssItemList.add(mCurrentRssItem); mIsInItem = fals...
public void endElement(String namespaceURI, String localName, String qName) throws SAXException { if (TextUtils.isEmpty(namespaceURI)) { if (localName.equals("item")) { mRssFeed.rssItemList.add(mCurrentRssItem); mIsInItem = fals...
diff --git a/juddi-console/uddi-portlets/src/main/java/org/apache/juddi/portlets/server/service/FindServiceImpl.java b/juddi-console/uddi-portlets/src/main/java/org/apache/juddi/portlets/server/service/FindServiceImpl.java index d485a6ae6..d7a768aa3 100644 --- a/juddi-console/uddi-portlets/src/main/java/org/apache/judd...
true
true
public FindResponse getBusinesses(String nameStr, String[] findQualifyers) { HttpServletRequest request = this.getThreadLocalRequest(); HttpSession session = request.getSession(); String lang = request.getLocale().getLanguage(); FindResponse response = new FindResponse(); try { FindBusiness findBusiness...
public FindResponse getBusinesses(String nameStr, String[] findQualifyers) { HttpServletRequest request = this.getThreadLocalRequest(); HttpSession session = request.getSession(); String lang = request.getLocale().getLanguage(); FindResponse response = new FindResponse(); try { FindBusiness findBusiness...
diff --git a/catalog/src/main/java/com/ning/billing/catalog/PriceList.java b/catalog/src/main/java/com/ning/billing/catalog/PriceList.java index 0c9940d3c..70a23d93c 100644 --- a/catalog/src/main/java/com/ning/billing/catalog/PriceList.java +++ b/catalog/src/main/java/com/ning/billing/catalog/PriceList.java @@ -1,105 +...
true
true
public ValidationErrors validate(Catalog catalog, ValidationErrors errors) { for (Plan cur : getPlans()) { int numPlans = findNumberOfPlans(cur.getProduct(), cur.getBillingPeriod()); if ( numPlans > 1 ) { errors.add(new ValidationError( String.format("There are %d plans in pricelist %s and have ...
public ValidationErrors validate(Catalog catalog, ValidationErrors errors) { for (Plan cur : getPlans()) { int numPlans = findNumberOfPlans(cur.getProduct(), cur.getBillingPeriod()); if ( numPlans > 1 ) { errors.add(new ValidationError( String.format("There are %d plans in pricelist %s and have ...
diff --git a/rwiki-impl/impl/src/java/uk/ac/cam/caret/sakai/rwiki/component/service/impl/SiteEmailNotificationRWiki.java b/rwiki-impl/impl/src/java/uk/ac/cam/caret/sakai/rwiki/component/service/impl/SiteEmailNotificationRWiki.java index 8d8c56a6..67aefeae 100644 --- a/rwiki-impl/impl/src/java/uk/ac/cam/caret/sakai/rwik...
true
true
protected String getMessage(Event event) { // get the content & properties Reference ref = entityManager.newReference(event.getResource()); ResourceProperties props = ref.getProperties(); // get the function // String function = event.getEvent(); // use either the configured site, or if not configured, ...
protected String getMessage(Event event) { // get the content & properties Reference ref = entityManager.newReference(event.getResource()); ResourceProperties props = ref.getProperties(); // get the function // String function = event.getEvent(); // use either the configured site, or if not configured, ...
diff --git a/cuke4duke/src/main/java/cuke4duke/internal/java/SpringFactory.java b/cuke4duke/src/main/java/cuke4duke/internal/java/SpringFactory.java index 579de9f0..8978a0a5 100644 --- a/cuke4duke/src/main/java/cuke4duke/internal/java/SpringFactory.java +++ b/cuke4duke/src/main/java/cuke4duke/internal/java/SpringFactor...
true
true
public Object getComponent(Class<?> type) { List beans = new ArrayList(appContext.getBeansOfType(type).values()); if(beans.size() == 1) { return beans.get(0); } else { throw new RuntimeException("Found " + beans.size() + "Beans for class " + type + ". Expected exactly 1....
public Object getComponent(Class<?> type) { List beans = new ArrayList(appContext.getBeansOfType(type).values()); if(beans.size() == 1) { return beans.get(0); } else { throw new RuntimeException("Found " + beans.size() + " Beans for class " + type + ". Expected exactly 1...
diff --git a/de.fu_berlin.inf.dpp/src/de/fu_berlin/inf/dpp/ui/widgets/RoundedComposite.java b/de.fu_berlin.inf.dpp/src/de/fu_berlin/inf/dpp/ui/widgets/RoundedComposite.java index 4153da73e..e6e1bf099 100644 --- a/de.fu_berlin.inf.dpp/src/de/fu_berlin/inf/dpp/ui/widgets/RoundedComposite.java +++ b/de.fu_berlin.inf.dpp/s...
true
true
public RoundedComposite(Composite parent, final int style) { super(parent, style & ~STYLES); this.style = style & STYLES; /* * Checks whether to display a border */ this.style = style & ~SWT.BORDER; /* * Make sure child widgets respect transparenc...
public RoundedComposite(Composite parent, final int style) { super(parent, style & ~STYLES); this.style = style & STYLES; /* * Checks whether to display a border */ this.style = style & ~SWT.BORDER; /* * Make sure child widgets respect transparenc...
diff --git a/filters/net.sf.okapi.filters.properties/src/net/sf/okapi/filters/properties/PropertiesFilter.java b/filters/net.sf.okapi.filters.properties/src/net/sf/okapi/filters/properties/PropertiesFilter.java index edab8d9cd..907d3e6ce 100644 --- a/filters/net.sf.okapi.filters.properties/src/net/sf/okapi/filters/prop...
true
true
private int readItem (boolean resetBuffer) { try { if ( resetBuffer ) { skel = new GenericSkeleton(); } StringBuilder keyBuffer = new StringBuilder(); StringBuilder textBuffer = new StringBuilder(); String value = ""; String key = ""; boolean isMultiline = false; int startText = 0; ...
private int readItem (boolean resetBuffer) { try { if ( resetBuffer ) { skel = new GenericSkeleton(); } StringBuilder keyBuffer = new StringBuilder(); StringBuilder textBuffer = new StringBuilder(); String value = ""; String key = ""; boolean isMultiline = false; int startText = 0; ...
diff --git a/src/java/org/apache/hadoop/util/RunJar.java b/src/java/org/apache/hadoop/util/RunJar.java index 0f509c075..4e8adc910 100644 --- a/src/java/org/apache/hadoop/util/RunJar.java +++ b/src/java/org/apache/hadoop/util/RunJar.java @@ -1,157 +1,161 @@ /** * Licensed to the Apache Software Foundation (ASF) under...
false
true
public static void main(String[] args) throws Throwable { String usage = "RunJar jarFile [mainClass] args..."; if (args.length < 1) { System.err.println(usage); System.exit(-1); } int firstArg = 0; String fileName = args[firstArg++]; File file = new File(fileName); String mai...
public static void main(String[] args) throws Throwable { String usage = "RunJar jarFile [mainClass] args..."; if (args.length < 1) { System.err.println(usage); System.exit(-1); } int firstArg = 0; String fileName = args[firstArg++]; File file = new File(fileName); String mai...
diff --git a/test/unit/org/apache/cassandra/db/compaction/LeveledCompactionStrategyTest.java b/test/unit/org/apache/cassandra/db/compaction/LeveledCompactionStrategyTest.java index 56f12deab..9392195ed 100644 --- a/test/unit/org/apache/cassandra/db/compaction/LeveledCompactionStrategyTest.java +++ b/test/unit/org/apach...
true
true
public void testValidationMultipleSSTablePerLevel() throws Exception { String ksname = "Keyspace1"; String cfname = "StandardLeveled"; Table table = Table.open(ksname); ColumnFamilyStore store = table.getColumnFamilyStore(cfname); ByteBuffer value = ByteBuffer.wrap(new b...
public void testValidationMultipleSSTablePerLevel() throws Exception { String ksname = "Keyspace1"; String cfname = "StandardLeveled"; Table table = Table.open(ksname); ColumnFamilyStore store = table.getColumnFamilyStore(cfname); ByteBuffer value = ByteBuffer.wrap(new b...
diff --git a/src/org/jimple/Jimple.java b/src/org/jimple/Jimple.java index 2636c46..17d9ff7 100644 --- a/src/org/jimple/Jimple.java +++ b/src/org/jimple/Jimple.java @@ -1,158 +1,158 @@ package org.jimple; /* * This file is part of Jimple. * * Copyright (c) 2013 Kuzmin Leonid * * Permission is hereby granted...
true
true
public ExtendedItem extend(String key, Extender extender) { if (!super.containsKey(key)) { throw new IllegalArgumentException("Identifier " + key + " is not defined."); } Object item = super.get(key); if (item instanceof SimpleItem) { return new ExtendedItem((...
public ExtendedItem extend(String key, Extender extender) { if (!super.containsKey(key)) { throw new IllegalArgumentException("Identifier " + key + " is not defined."); } Object item = super.get(key); if (item instanceof SimpleItem) { return new ExtendedItem((...
diff --git a/analytics/src/main/java/com/ning/billing/analytics/BusinessSubscription.java b/analytics/src/main/java/com/ning/billing/analytics/BusinessSubscription.java index 59c36ee68..441b0647f 100644 --- a/analytics/src/main/java/com/ning/billing/analytics/BusinessSubscription.java +++ b/analytics/src/main/java/com/...
true
true
public BusinessSubscription(final String priceList, final String currentPlan, final String currentPhase, final Currency currency, final DateTime startDate, final SubscriptionState state, final UUID subscriptionId, final UUID bundleId, Catalog catalog) { Plan thePlan = null; PlanPhase thePhase = null...
public BusinessSubscription(final String priceList, final String currentPlan, final String currentPhase, final Currency currency, final DateTime startDate, final SubscriptionState state, final UUID subscriptionId, final UUID bundleId, Catalog catalog) { Plan thePlan = null; PlanPhase thePhase = null...
diff --git a/src/com/example/gpstracker/Data.java b/src/com/example/gpstracker/Data.java index b72bf8b..72e7297 100644 --- a/src/com/example/gpstracker/Data.java +++ b/src/com/example/gpstracker/Data.java @@ -1,64 +1,65 @@ package com.example.gpstracker; import java.io.IOException; import java.io.UnsupportedEncodi...
true
true
public static void sendTo(String host){ JSONObject json = new JSONObject(); try { json.put("login", login); json.put("passwd", password); //TODO check if there's anything to send JSONArray p = new JSONArray(); for(int j = lastSent + 1; j < pos.size(); j++){ p.put(pos.get(j).toJson()); } js...
public static void sendTo(String host){ JSONObject json = new JSONObject(); try { json.put("login", login); json.put("passwd", password); //TODO check if there's anything to send JSONArray p = new JSONArray(); for(int j = lastSent + 1; j < pos.size(); j++){ p.put(pos.get(j).toJson()); } js...
diff --git a/bundles/org.eclipselabs.emongo.components/src/org/eclipselabs/emongo/components/MongoDatabaseConfigurationProviderComponent.java b/bundles/org.eclipselabs.emongo.components/src/org/eclipselabs/emongo/components/MongoDatabaseConfigurationProviderComponent.java index 44300a1..4853834 100644 --- a/bundles/org...
true
true
public void activate(Map<String, Object> properties) { alias = (String) properties.get(MongoAuthenticatedDatabaseConfigurationProvider.PROP_ALIAS); clientId = (String) properties.get(MongoAuthenticatedDatabaseConfigurationProvider.PROP_CLIENT_ID); databaseName = (String) properties.get(MongoAuthenticatedDatabas...
public void activate(Map<String, Object> properties) { alias = (String) properties.get(MongoAuthenticatedDatabaseConfigurationProvider.PROP_ALIAS); clientId = (String) properties.get(MongoAuthenticatedDatabaseConfigurationProvider.PROP_CLIENT_ID); databaseName = (String) properties.get(MongoAuthenticatedDatabas...
diff --git a/src/com/zavteam/plugins/Commands.java b/src/com/zavteam/plugins/Commands.java index 39f030b..b0f6c48 100644 --- a/src/com/zavteam/plugins/Commands.java +++ b/src/com/zavteam/plugins/Commands.java @@ -1,262 +1,264 @@ package com.zavteam.plugins; import java.util.ArrayList; import java.util.HashMap; im...
true
true
public boolean onCommand(CommandSender sender, Command command, String label, String[] args) { String freeVariable; if (args.length == 0 || args[0].equalsIgnoreCase("help")) { if (sender.hasPermission("zavautomessager.view")) { if (args.length == 1 || args.length == 0) { MessagesHandler.listHelpPage(1,...
public boolean onCommand(CommandSender sender, Command command, String label, String[] args) { String freeVariable; if (args.length == 0 || args[0].equalsIgnoreCase("help")) { if (sender.hasPermission("zavautomessager.view")) { if (args.length == 1 || args.length == 0) { MessagesHandler.listHelpPage(1,...
diff --git a/test/com/facebook/buck/testutil/RuleMap.java b/test/com/facebook/buck/testutil/RuleMap.java index a318c07e14..05236fb741 100644 --- a/test/com/facebook/buck/testutil/RuleMap.java +++ b/test/com/facebook/buck/testutil/RuleMap.java @@ -1,49 +1,50 @@ /* * Copyright 2012-present Facebook, Inc. * * Licen...
true
true
private static DependencyGraph createGraphFromBuildRules(Iterable<BuildRule> rules) { MutableDirectedGraph<BuildRule> graph = new MutableDirectedGraph<BuildRule>(); for (BuildRule rule : rules) { for (BuildRule dep : rule.getDeps()) { graph.addEdge(rule, dep); } } return new Depend...
private static DependencyGraph createGraphFromBuildRules(Iterable<BuildRule> rules) { MutableDirectedGraph<BuildRule> graph = new MutableDirectedGraph<BuildRule>(); for (BuildRule rule : rules) { graph.addNode(rule); for (BuildRule dep : rule.getDeps()) { graph.addEdge(rule, dep); } ...
diff --git a/src/net/slipcor/pvparena/command/PAAInfo.java b/src/net/slipcor/pvparena/command/PAAInfo.java index c786f496..b62ff172 100644 --- a/src/net/slipcor/pvparena/command/PAAInfo.java +++ b/src/net/slipcor/pvparena/command/PAAInfo.java @@ -1,265 +1,265 @@ package net.slipcor.pvparena.command; import java.uti...
true
true
public void commit(Arena arena, CommandSender player, String[] args) { String type = arena.type().getName(); player.sendMessage("-----------------------------------------------------"); player.sendMessage("Arena Information about: " + ChatColor.AQUA + arena.name + "�f | [�a"+ arena.prefix +"�f]"); player.s...
public void commit(Arena arena, CommandSender player, String[] args) { String type = arena.type().getName(); player.sendMessage("-----------------------------------------------------"); player.sendMessage("Arena Information about: " + ChatColor.AQUA + arena.name + "�f | [�a"+ arena.prefix +"�f]"); player.s...
diff --git a/plugin/src/edu/berkeley/eduride/base_plugin/isafile/ISAVisitor.java b/plugin/src/edu/berkeley/eduride/base_plugin/isafile/ISAVisitor.java index 6a808fd..d3381bc 100644 --- a/plugin/src/edu/berkeley/eduride/base_plugin/isafile/ISAVisitor.java +++ b/plugin/src/edu/berkeley/eduride/base_plugin/isafile/ISAVisi...
true
true
public boolean visit(IResourceProxy proxy) throws CoreException { if (proxy.getType() == IResource.ROOT) { return true; } else if (proxy.getType() == IResource.PROJECT) { // Project? Keep visiting iff its a Java project IProject iproj = proxy.requestResource().getProject(); return iproj.hasNature(...
public boolean visit(IResourceProxy proxy) throws CoreException { if (proxy.getType() == IResource.ROOT) { return true; } else if (proxy.getType() == IResource.PROJECT) { // Project? Keep visiting iff its a Java project IProject iproj = proxy.requestResource().getProject(); return (iproj.isOpen() ...
diff --git a/src/me/Travja/HungerArena/SpawnsCommand.java b/src/me/Travja/HungerArena/SpawnsCommand.java index f550c15..39c2787 100644 --- a/src/me/Travja/HungerArena/SpawnsCommand.java +++ b/src/me/Travja/HungerArena/SpawnsCommand.java @@ -1,124 +1,153 @@ package me.Travja.HungerArena; import java.util.ArrayList; ...
true
true
public boolean onCommand(CommandSender sender, Command cmd, String commandLabel, String[] args) { Player p = (Player) sender; if(cmd.getName().equalsIgnoreCase("StartPoint")){ if(p.hasPermission("HungerArena.StartPoint")){ if(!plugin.restricted || (plugin.restricted && plugin.worlds.contains(p.getWorld().ge...
public boolean onCommand(CommandSender sender, Command cmd, String commandLabel, String[] args) { Player p = (Player) sender; if(cmd.getName().equalsIgnoreCase("StartPoint")){ if(p.hasPermission("HungerArena.StartPoint")){ if(!plugin.restricted || (plugin.restricted && plugin.worlds.contains(p.getWorld().ge...
diff --git a/native/SampleApps/SmartSyncExplorer/src/com/salesforce/samples/smartsyncexplorer/ui/MainActivity.java b/native/SampleApps/SmartSyncExplorer/src/com/salesforce/samples/smartsyncexplorer/ui/MainActivity.java index 7e4503a71..f713a74ae 100644 --- a/native/SampleApps/SmartSyncExplorer/src/com/salesforce/sample...
true
true
public View getView (int position, View convertView, ViewGroup parent) { if (convertView == null) { convertView = LayoutInflater.from(getContext()).inflate(listItemLayoutId, null); } if (sObjects != null) { final ContactObject sObject = sObjects.get(position); if (sObject != null) { ...
public View getView (int position, View convertView, ViewGroup parent) { if (convertView == null) { convertView = LayoutInflater.from(getContext()).inflate(listItemLayoutId, null); } if (sObjects != null) { final ContactObject sObject = sObjects.get(position); if (sObject != null) { ...
diff --git a/src/api/org/openmrs/util/OpenmrsUtil.java b/src/api/org/openmrs/util/OpenmrsUtil.java index ecec4f4e..a8492f3d 100644 --- a/src/api/org/openmrs/util/OpenmrsUtil.java +++ b/src/api/org/openmrs/util/OpenmrsUtil.java @@ -1,1511 +1,1512 @@ /** * The contents of this file are subject to the OpenMRS Public Li...
true
true
public static PatientFilter toPatientFilter(PatientSearch search, CohortSearchHistory history, EvaluationContext evalContext) { if (search.isSavedSearchReference()) { PatientSearch ps = ((PatientSearchReportObject) Context.getReportObjectService().getReportObject(search.getSavedSearchId())).getPatientSea...
public static PatientFilter toPatientFilter(PatientSearch search, CohortSearchHistory history, EvaluationContext evalContext) { if (search.isSavedSearchReference()) { PatientSearch ps = ((PatientSearchReportObject) Context.getReportObjectService().getReportObject(search.getSavedSearchId())).getPatientSea...
diff --git a/core/src/com/google/zxing/multi/GenericMultipleBarcodeReader.java b/core/src/com/google/zxing/multi/GenericMultipleBarcodeReader.java index 3cd392ee..25079e19 100644 --- a/core/src/com/google/zxing/multi/GenericMultipleBarcodeReader.java +++ b/core/src/com/google/zxing/multi/GenericMultipleBarcodeReader.ja...
false
true
private void doDecodeMultiple(BinaryBitmap image, Hashtable hints, Vector results, int xOffset, int yOffset) { Result result; try { result = delegate.decode(image, hints); ...
private void doDecodeMultiple(BinaryBitmap image, Hashtable hints, Vector results, int xOffset, int yOffset) { Result result; try { result = delegate.decode(image, hints); ...
diff --git a/plugins/test/kg/apc/jmeter/functions/FifoSizeTest.java b/plugins/test/kg/apc/jmeter/functions/FifoSizeTest.java index 383aa7f2..cd5e1bf9 100644 --- a/plugins/test/kg/apc/jmeter/functions/FifoSizeTest.java +++ b/plugins/test/kg/apc/jmeter/functions/FifoSizeTest.java @@ -1,94 +1,94 @@ package kg.apc.jmeter....
true
true
public void testExecute() throws Exception { System.out.println("execute"); SampleResult previousResult = null; Sampler currentSampler = null; LinkedList<CompoundVariable> list = new LinkedList<CompoundVariable>(); list.add(new CompoundVariable("test")); list.add(new ...
public void testExecute() throws Exception { System.out.println("execute"); SampleResult previousResult = null; Sampler currentSampler = null; LinkedList<CompoundVariable> list = new LinkedList<CompoundVariable>(); list.add(new CompoundVariable("test")); list.add(new ...
diff --git a/src/main/java/fr/jules_cesar/Paintball/Util/Objet.java b/src/main/java/fr/jules_cesar/Paintball/Util/Objet.java index bf8a118..6540db2 100644 --- a/src/main/java/fr/jules_cesar/Paintball/Util/Objet.java +++ b/src/main/java/fr/jules_cesar/Paintball/Util/Objet.java @@ -1,54 +1,54 @@ package fr.jules_cesar.P...
true
true
public static ItemMeta deserializeItemMeta(ItemMeta meta, Map<String, Object> args) { if(args.containsKey("display-name")) meta.setDisplayName((String) args.get("display-name")); if(args.containsKey("enchants")){ Map<String, Double> enchantements = (Map<String, Double>) args.get("enchants"); Set<String> list...
public static ItemMeta deserializeItemMeta(ItemMeta meta, Map<String, Object> args) { if(args.containsKey("display-name")) meta.setDisplayName((String) args.get("display-name")); if(args.containsKey("enchants")){ Map<String, Double> enchantements = (Map<String, Double>) args.get("enchants"); Set<String> list...
diff --git a/src/com/zford/jobs/Jobs.java b/src/com/zford/jobs/Jobs.java index 7779075..7a90c50 100644 --- a/src/com/zford/jobs/Jobs.java +++ b/src/com/zford/jobs/Jobs.java @@ -1,1337 +1,1343 @@ /* * Jobs Plugin for Bukkit * Copyright (C) 2011 Zak Ford <zak.j.ford@gmail.com> * * This program is free software...
false
true
public boolean onCommand(CommandSender sender, Command command, String label, String[] args) { if(!label.equalsIgnoreCase("jobs")){ return true; } if(sender instanceof Player){ // player only commands // join if(args.length == 2 && args[0].equalsIgnoreCase("join")){ String jobName = args...
public boolean onCommand(CommandSender sender, Command command, String label, String[] args) { if(!label.equalsIgnoreCase("jobs")){ return true; } if(sender instanceof Player){ // player only commands // join if(args.length == 2 && args[0].equalsIgnoreCase("join")){ String jobName = args...
diff --git a/src/plugin/index-more/src/java/org/apache/nutch/indexer/more/MoreIndexingFilter.java b/src/plugin/index-more/src/java/org/apache/nutch/indexer/more/MoreIndexingFilter.java index 21d38187..78d9bbb8 100644 --- a/src/plugin/index-more/src/java/org/apache/nutch/indexer/more/MoreIndexingFilter.java +++ b/src/pl...
true
true
private long getTime(String date, String url) { long time = -1; try { time = HttpDateFormat.toLong(date); } catch (ParseException e) { // try to parse it as date in alternative format try { Date parsedDate = DateUtils.parseDate(date, new String [] { "EEE MMM dd HH:mm:ss yyyy", ...
private long getTime(String date, String url) { long time = -1; try { time = HttpDateFormat.toLong(date); } catch (ParseException e) { // try to parse it as date in alternative format try { Date parsedDate = DateUtils.parseDate(date, new String [] { "EEE MMM dd HH:mm:ss yyyy", ...
diff --git a/src/org/melonbrew/fe/database/databases/SQLDB.java b/src/org/melonbrew/fe/database/databases/SQLDB.java index e0ce855..65180ac 100755 --- a/src/org/melonbrew/fe/database/databases/SQLDB.java +++ b/src/org/melonbrew/fe/database/databases/SQLDB.java @@ -1,215 +1,215 @@ package org.melonbrew.fe.database.data...
true
true
public void clean(){ checkConnection(); try { SelectQuery query = accounts.select().where("money", plugin.getAPI().getDefaultHoldings()); ResultSet set = query.execute(); boolean executeQuery = false; StringBuilder builder = new StringBuilder("DELETE FROM " + accounts + " WHERE name IN (...
public void clean(){ checkConnection(); try { SelectQuery query = accounts.select().where("money", plugin.getAPI().getDefaultHoldings()); ResultSet set = query.execute(); boolean executeQuery = false; StringBuilder builder = new StringBuilder("DELETE FROM " + accounts + " WHERE name IN (...
diff --git a/software/base/src/test/java/brooklyn/entity/software/mysql/DynamicToyMySqlEntityBuilder.java b/software/base/src/test/java/brooklyn/entity/software/mysql/DynamicToyMySqlEntityBuilder.java index c84b308ae..719af2560 100644 --- a/software/base/src/test/java/brooklyn/entity/software/mysql/DynamicToyMySqlEntit...
true
true
public void apply(final EntityLocal entity) { new MachineLifecycleEffectorTasks() { @Override protected String startProcessesAtMachine(Supplier<MachineLocation> machineS) { DynamicTasks.queue( SshEffectorTasks.ssh( ...
public void apply(final EntityLocal entity) { new MachineLifecycleEffectorTasks() { @Override protected String startProcessesAtMachine(Supplier<MachineLocation> machineS) { DynamicTasks.queue( SshEffectorTasks.ssh( ...
diff --git a/src/net/sf/freecol/client/control/InGameInputHandler.java b/src/net/sf/freecol/client/control/InGameInputHandler.java index d08a93bee..a8a0188a3 100644 --- a/src/net/sf/freecol/client/control/InGameInputHandler.java +++ b/src/net/sf/freecol/client/control/InGameInputHandler.java @@ -1,1744 +1,1744 @@ /** ...
true
true
private Element monarchAction(Element element) { final FreeColClient freeColClient = getFreeColClient(); Player player = freeColClient.getMyPlayer(); Monarch monarch = player.getMonarch(); final MonarchAction action = Enum.valueOf(MonarchAction.class, element.getAttribute("action"));...
private Element monarchAction(Element element) { final FreeColClient freeColClient = getFreeColClient(); Player player = freeColClient.getMyPlayer(); Monarch monarch = player.getMonarch(); final MonarchAction action = Enum.valueOf(MonarchAction.class, element.getAttribute("action"));...
diff --git a/client/ui/src/main/java/de/objectcode/time4u/client/ui/CompactPerspective.java b/client/ui/src/main/java/de/objectcode/time4u/client/ui/CompactPerspective.java index 9544168e..68c30855 100644 --- a/client/ui/src/main/java/de/objectcode/time4u/client/ui/CompactPerspective.java +++ b/client/ui/src/main/java/...
true
true
public void createInitialLayout(final IPageLayout layout) { final String editorArea = layout.getEditorArea(); layout.setEditorAreaVisible(false); layout.addStandaloneView(CalendarView.ID, false, IPageLayout.LEFT, 0.25f, editorArea); layout.addStandaloneViewPlaceholder(TodoTreeView.ID, IPageLayout.R...
public void createInitialLayout(final IPageLayout layout) { final String editorArea = layout.getEditorArea(); layout.setEditorAreaVisible(false); layout.addStandaloneView(CalendarView.ID, false, IPageLayout.LEFT, 0.25f, editorArea); layout.addStandaloneViewPlaceholder(TodoTreeView.ID, IPageLayout.R...
diff --git a/framework/src/nz/ac/otago/orest/RestServlet.java b/framework/src/nz/ac/otago/orest/RestServlet.java index adc13ca..a3bd203 100644 --- a/framework/src/nz/ac/otago/orest/RestServlet.java +++ b/framework/src/nz/ac/otago/orest/RestServlet.java @@ -1,125 +1,126 @@ /* * To change this template, choose Tools |...
false
true
protected void processRequest(HttpServletRequest request, HttpServletResponse response, HttpMethod method) throws ServletException, IOException { logger.debug("Processing request."); String contentType = request.getContentType(); logger.debug("Request Content-Type is '{}'", contentTyp...
protected void processRequest(HttpServletRequest request, HttpServletResponse response, HttpMethod method) throws ServletException, IOException { logger.debug("Processing request."); String contentType = request.getContentType(); logger.debug("Request Content-Type is '{}'", contentTyp...
diff --git a/android/src/org/coolreader/crengine/ReaderView.java b/android/src/org/coolreader/crengine/ReaderView.java index 8788f830..e69d9eca 100644 --- a/android/src/org/coolreader/crengine/ReaderView.java +++ b/android/src/org/coolreader/crengine/ReaderView.java @@ -1,3005 +1,3007 @@ package org.coolreader.crengin...
false
true
public boolean onTouchEvent(MotionEvent event) { if ( !isTouchScreenEnabled ) { return true; } int x = (int)event.getX(); int y = (int)event.getY(); int dx = getWidth(); int dy = getHeight(); int START_DRAG_THRESHOLD = mActivity.getPalmTipPixels(); final int zone = getTapZone(x, y, dx, dy); ...
public boolean onTouchEvent(MotionEvent event) { if ( !isTouchScreenEnabled ) { return true; } int x = (int)event.getX(); int y = (int)event.getY(); int dx = getWidth(); int dy = getHeight(); int START_DRAG_THRESHOLD = mActivity.getPalmTipPixels(); final int zone = getTapZone(x, y, dx, dy); ...
diff --git a/emailcommon/src/com/android/emailcommon/Device.java b/emailcommon/src/com/android/emailcommon/Device.java index a93a17a2..8cd7d561 100644 --- a/emailcommon/src/com/android/emailcommon/Device.java +++ b/emailcommon/src/com/android/emailcommon/Device.java @@ -1,109 +1,114 @@ /* /* * Copyright (C) 2011 T...
true
true
static private String getDeviceIdInternal(Context context) throws IOException { if (context == null) { throw new IllegalStateException("getDeviceId requires a Context"); } File f = context.getFileStreamPath("deviceName"); BufferedReader rdr = null; String id; ...
static private String getDeviceIdInternal(Context context) throws IOException { if (context == null) { throw new IllegalStateException("getDeviceId requires a Context"); } File f = context.getFileStreamPath("deviceName"); BufferedReader rdr = null; String id; ...
diff --git a/JavaLib/src/com/punchline/javalib/entities/components/MultiComponent.java b/JavaLib/src/com/punchline/javalib/entities/components/MultiComponent.java index 023fe57..1c82601 100644 --- a/JavaLib/src/com/punchline/javalib/entities/components/MultiComponent.java +++ b/JavaLib/src/com/punchline/javalib/entitie...
true
true
public void reorder(Array<Integer> order) { //Check for the proper size if (order.size != children.size) throw new IllegalArgumentException("The order array's size does not match the size of the children array."); //Check for duplicates HashSet<Integer> duplicateSet = new HashSet<Integer>(); for (Integ...
public void reorder(Array<Integer> order) { //Check for the proper size if (order.size != children.size) throw new IllegalArgumentException("The order array's size does not match the size of the children array."); //Check for duplicates HashSet<Integer> duplicateSet = new HashSet<Integer>(); for (Integ...
diff --git a/src/com/pilot51/voicenotify/Service.java b/src/com/pilot51/voicenotify/Service.java index a8e54d1..c908b26 100644 --- a/src/com/pilot51/voicenotify/Service.java +++ b/src/com/pilot51/voicenotify/Service.java @@ -1,332 +1,332 @@ package com.pilot51.voicenotify; import java.util.ArrayList; import java.u...
true
true
public void onAccessibilityEvent(AccessibilityEvent event) { long newMsgTime = System.currentTimeMillis(); PackageManager packMan = getPackageManager(); ApplicationInfo appInfo = new ApplicationInfo(); String pkgName = String.valueOf(event.getPackageName()); try { appInfo = packMan.getApplicationInfo(pkgN...
public void onAccessibilityEvent(AccessibilityEvent event) { long newMsgTime = System.currentTimeMillis(); PackageManager packMan = getPackageManager(); ApplicationInfo appInfo = new ApplicationInfo(); String pkgName = String.valueOf(event.getPackageName()); try { appInfo = packMan.getApplicationInfo(pkgN...
diff --git a/src/com/dmdirc/ui/swing/dialogs/wizard/firstrun/CommunicationStep.java b/src/com/dmdirc/ui/swing/dialogs/wizard/firstrun/CommunicationStep.java index ea16fe574..203f16d73 100644 --- a/src/com/dmdirc/ui/swing/dialogs/wizard/firstrun/CommunicationStep.java +++ b/src/com/dmdirc/ui/swing/dialogs/wizard/firstru...
true
true
protected void initComponents() { updatesInfo = new JWrappingLabel("DMDirc can automatically check for " + "updates for various parts of the client, you can globally " + "disable that behaviour here, you can also fine tune the " + "behaviour in...
protected void initComponents() { updatesInfo = new JWrappingLabel("DMDirc can automatically check for " + "updates for various parts of the client, you can globally " + "disable that behaviour here, you can also fine tune the " + "behaviour in...
diff --git a/jnalib/src/com/sun/jna/win32/W32APITypeMapper.java b/jnalib/src/com/sun/jna/win32/W32APITypeMapper.java index 5370ac39..f18eff19 100644 --- a/jnalib/src/com/sun/jna/win32/W32APITypeMapper.java +++ b/jnalib/src/com/sun/jna/win32/W32APITypeMapper.java @@ -1,74 +1,74 @@ /* Copyright (c) 2007 Timothy Wall, Al...
false
true
protected W32APITypeMapper(boolean unicode) { if (unicode) { TypeConverter stringConverter = new TypeConverter() { public Object toNative(Object value, ToNativeContext context) { if (value == null) return null; if (v...
protected W32APITypeMapper(boolean unicode) { if (unicode) { TypeConverter stringConverter = new TypeConverter() { public Object toNative(Object value, ToNativeContext context) { if (value == null) return null; if (v...
diff --git a/src/main/java/com/kurtraschke/wmatagtfsrealtime/GTFSRealtimeProviderImpl.java b/src/main/java/com/kurtraschke/wmatagtfsrealtime/GTFSRealtimeProviderImpl.java index d59a4b0..1b927f8 100644 --- a/src/main/java/com/kurtraschke/wmatagtfsrealtime/GTFSRealtimeProviderImpl.java +++ b/src/main/java/com/kurtraschke...
true
true
private ProcessedVehicleResponse processVehicle(WMATABusPosition bp) throws IOException, SAXException { ProcessedVehicleResponse pvr = new ProcessedVehicleResponse(); String route = bp.getRouteID(); String vehicle = bp.getVehicleID(); String trip = bp.getTripID(); Date date...
private ProcessedVehicleResponse processVehicle(WMATABusPosition bp) throws IOException, SAXException { ProcessedVehicleResponse pvr = new ProcessedVehicleResponse(); String route = bp.getRouteID(); String vehicle = bp.getVehicleID(); String trip = bp.getTripID(); Date date...
diff --git a/driver-core/src/main/java/com/datastax/driver/core/ControlConnection.java b/driver-core/src/main/java/com/datastax/driver/core/ControlConnection.java index 28c83ec77..0ad2121a0 100644 --- a/driver-core/src/main/java/com/datastax/driver/core/ControlConnection.java +++ b/driver-core/src/main/java/com/datasta...
true
true
private void refreshNodeListAndTokenMap(Connection connection) throws ConnectionException, BusyConnectionException, ExecutionException, InterruptedException { // Make sure we're up to date on nodes and tokens ResultSetFuture peersFuture = new ResultSetFuture(null, new QueryMessage(SELECT_PEERS, Con...
private void refreshNodeListAndTokenMap(Connection connection) throws ConnectionException, BusyConnectionException, ExecutionException, InterruptedException { // Make sure we're up to date on nodes and tokens ResultSetFuture peersFuture = new ResultSetFuture(null, new QueryMessage(SELECT_PEERS, Con...
diff --git a/src/main/java/com/ffbit/maven/solr/extract/BootstrapStrategy.java b/src/main/java/com/ffbit/maven/solr/extract/BootstrapStrategy.java index 0132ac4..e1ea1a3 100644 --- a/src/main/java/com/ffbit/maven/solr/extract/BootstrapStrategy.java +++ b/src/main/java/com/ffbit/maven/solr/extract/BootstrapStrategy.java...
true
true
public void bootstrap();
void bootstrap();
diff --git a/modules/elasticsearch/src/main/java/org/elasticsearch/rest/action/support/RestXContentBuilder.java b/modules/elasticsearch/src/main/java/org/elasticsearch/rest/action/support/RestXContentBuilder.java index 0d4fb286f23..3b0c9c3f4db 100644 --- a/modules/elasticsearch/src/main/java/org/elasticsearch/rest/acti...
false
true
public static void restDocumentSource(byte[] source, XContentBuilder builder, ToXContent.Params params) throws IOException { if (LZFDecoder.isCompressed(source)) { BytesStreamInput siBytes = new BytesStreamInput(source); LZFStreamInput siLzf = CachedStreamInput.cachedLzf(siBytes); ...
public static void restDocumentSource(byte[] source, XContentBuilder builder, ToXContent.Params params) throws IOException { if (LZFDecoder.isCompressed(source)) { BytesStreamInput siBytes = new BytesStreamInput(source); LZFStreamInput siLzf = CachedStreamInput.cachedLzf(siBytes); ...
diff --git a/src/main/java/org/bukkit/event/player/PlayerInteractEvent.java b/src/main/java/org/bukkit/event/player/PlayerInteractEvent.java index 4f06f4d7..c3a1f498 100644 --- a/src/main/java/org/bukkit/event/player/PlayerInteractEvent.java +++ b/src/main/java/org/bukkit/event/player/PlayerInteractEvent.java @@ -1,171...
true
true
public PlayerInteractEvent(Player who, Action action, ItemStack item, Block clickedBlock, BlockFace clickedFace) { super(Type.PLAYER_INTERACT, who); this.action = action; this.item = item; this.blockClicked = clickedBlock; this.blockFace = clickedFace; useItemInHand ...
public PlayerInteractEvent(Player who, Action action, ItemStack item, Block clickedBlock, BlockFace clickedFace) { super(Type.PLAYER_INTERACT, who); this.action = action; this.item = item; this.blockClicked = clickedBlock; this.blockFace = clickedFace; useItemInHand ...
diff --git a/src/com/tiwun/tiwunandroidapp/FullscreenActivity.java b/src/com/tiwun/tiwunandroidapp/FullscreenActivity.java index 3d48cbd..d6635a6 100644 --- a/src/com/tiwun/tiwunandroidapp/FullscreenActivity.java +++ b/src/com/tiwun/tiwunandroidapp/FullscreenActivity.java @@ -1,168 +1,168 @@ package com.tiwun.tiwunand...
true
true
protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_fullscreen); final View contentView = findViewById(R.id.tiwunWebView); // Set up an instance of SystemUiHider to control the system UI for // this acti...
protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_fullscreen); final View contentView = findViewById(R.id.tiwunWebView); // Set up an instance of SystemUiHider to control the system UI for // this acti...
diff --git a/org.sonar.ide.eclipse/src/org/sonar/ide/eclipse/internal/ui/texteditor/coverage/CoverageToggleAction.java b/org.sonar.ide.eclipse/src/org/sonar/ide/eclipse/internal/ui/texteditor/coverage/CoverageToggleAction.java index e679d0fa..61f1f3ec 100644 --- a/org.sonar.ide.eclipse/src/org/sonar/ide/eclipse/interna...
true
true
public void setActiveEditor(IAction action, IEditorPart targetEditor) { if (targetEditor instanceof ITextEditor) { editor = (ITextEditor) targetEditor; this.action = action; } else { editor = null; } }
public void setActiveEditor(IAction action, IEditorPart targetEditor) { if (targetEditor instanceof ITextEditor) { editor = (ITextEditor) targetEditor; this.action = action; update(); } else { editor = null; } }
diff --git a/orbisgis-core/src/main/java/org/orbisgis/core/ui/editors/table/TableComponent.java b/orbisgis-core/src/main/java/org/orbisgis/core/ui/editors/table/TableComponent.java index dac8afa93..272c20e01 100644 --- a/orbisgis-core/src/main/java/org/orbisgis/core/ui/editors/table/TableComponent.java +++ b/orbisgis-c...
true
true
private JTextField getWhereTextField() { final JButtonTextField txtFilter = new JButtonTextField(20); cpl = new SQLCompletionProvider(txtFilter); cpl.install(); txtFilter.setBackground(Color.WHITE); txtFilter .setText(I18N .getText("orbisgis.org.orbisgis.core.ui.editors.table.TableComponent.put_a_s...
private JTextField getWhereTextField() { final JButtonTextField txtFilter = new JButtonTextField(20); cpl = new SQLCompletionProvider(txtFilter); cpl.install(); txtFilter.setBackground(Color.WHITE); txtFilter .setText(I18N .getText("orbisgis.org.orbisgis.core.ui.editors.table.TableComponent.put_a_s...
diff --git a/src/main/java/net/pms/encoders/FFmpegVideo.java b/src/main/java/net/pms/encoders/FFmpegVideo.java index 25504308c..63a0c5ba7 100644 --- a/src/main/java/net/pms/encoders/FFmpegVideo.java +++ b/src/main/java/net/pms/encoders/FFmpegVideo.java @@ -1,756 +1,756 @@ /* * PS3 Media Server, for streaming any med...
true
true
protected ProcessWrapperImpl getFFMpegTranscode( String fileName, DLNAResource dlna, DLNAMediaInfo media, OutputParams params, String args[] ) throws IOException { int nThreads = configuration.getNumberOfCpuCores(); List<String> cmdList = new ArrayList<String>(); RendererConfiguration renderer = param...
protected ProcessWrapperImpl getFFMpegTranscode( String fileName, DLNAResource dlna, DLNAMediaInfo media, OutputParams params, String args[] ) throws IOException { int nThreads = configuration.getNumberOfCpuCores(); List<String> cmdList = new ArrayList<String>(); RendererConfiguration renderer = param...
diff --git a/Application/src/mvhsbandinventory/Display.java b/Application/src/mvhsbandinventory/Display.java index c0a7464..4332710 100644 --- a/Application/src/mvhsbandinventory/Display.java +++ b/Application/src/mvhsbandinventory/Display.java @@ -1,708 +1,708 @@ /* * To change this template, choose Tools | Templat...
false
true
private void initComponents() { java.awt.GridBagConstraints gridBagConstraints; jSplitPane1 = new javax.swing.JSplitPane(); jPanel1 = new javax.swing.JPanel(); infoTabs = new javax.swing.JTabbedPane(); detailPanel = new javax.swing.JPanel(); statusLabel = new javax.s...
private void initComponents() { java.awt.GridBagConstraints gridBagConstraints; jSplitPane1 = new javax.swing.JSplitPane(); jPanel1 = new javax.swing.JPanel(); infoTabs = new javax.swing.JTabbedPane(); detailPanel = new javax.swing.JPanel(); statusLabel = new javax.s...
diff --git a/GAE/src/org/waterforpeople/mapping/app/web/rest/security/GoogleAccountsAuthenticationProvider.java b/GAE/src/org/waterforpeople/mapping/app/web/rest/security/GoogleAccountsAuthenticationProvider.java index b0b79d1b5..8553bbc02 100644 --- a/GAE/src/org/waterforpeople/mapping/app/web/rest/security/GoogleAcco...
true
true
private GaeUser findUser(String email) { final com.gallatinsystems.user.domain.User user = userDao.findUserByEmail(email); if (user == null) { return null; } final int authority = getAuthorityLevel(user); final Set<AppRole> roles = EnumSet.noneOf(AppRole.class);...
private GaeUser findUser(String email) { final com.gallatinsystems.user.domain.User user = userDao.findUserByEmail(email.toLowerCase()); if (user == null) { return null; } final int authority = getAuthorityLevel(user); final Set<AppRole> roles = EnumSet.noneOf(A...
diff --git a/poem/src/main/java/org/melati/poem/GroupTable.java b/poem/src/main/java/org/melati/poem/GroupTable.java index f870a0ef2..c798269e9 100644 --- a/poem/src/main/java/org/melati/poem/GroupTable.java +++ b/poem/src/main/java/org/melati/poem/GroupTable.java @@ -1,76 +1,76 @@ /* * $Source$ * $Revision$ * ...
true
true
void postInitialise() { super.postInitialise(); getNameColumn().ensure(administratorsGroup); if (info.getDefaultcanwrite() == null) info.setDefaultcanwrite(getDatabase().administerCapability()); if (info.getCancreate() == null) info.setCancreate(getDatabase().administerCapability()); }
void postInitialise() { super.postInitialise(); administratorsGroup = (Group)getNameColumn().ensure(administratorsGroup); if (info.getDefaultcanwrite() == null) info.setDefaultcanwrite(getDatabase().administerCapability()); if (info.getCancreate() == null) info.setCancreate(getDatabase().a...
diff --git a/works-net/src/test/java/com/worksnet/model/UserServiceTest.java b/works-net/src/test/java/com/worksnet/model/UserServiceTest.java index 4c7eebd..0a6a621 100644 --- a/works-net/src/test/java/com/worksnet/model/UserServiceTest.java +++ b/works-net/src/test/java/com/worksnet/model/UserServiceTest.java @@ -1,3...
true
true
public void testAddUser() throws Exception { User user = new User(); user.setUserName("TestUser"); int userId = service.add(user); user.setId(userId); User dbUser = service.getById(userId); assertEquals(user, dbUser); }
public void testAddUser() throws Exception { if (true) return; //TODO: fix text User user = new User(); user.setUserName("TestUser"); int userId = service.add(user); user.setId(userId); User dbUser = service.getById(userId); assertEquals(user, dbUser); }...
diff --git a/bundles/org.eclipse.team.cvs.ui/src/org/eclipse/team/internal/ccvs/ui/AnnotateView.java b/bundles/org.eclipse.team.cvs.ui/src/org/eclipse/team/internal/ccvs/ui/AnnotateView.java index 4d4e7963c..84a353ed8 100644 --- a/bundles/org.eclipse.team.cvs.ui/src/org/eclipse/team/internal/ccvs/ui/AnnotateView.java +...
false
true
private void listSelectionChanged(IStructuredSelection selection) { // If the editor was closed, reopen it. if (editor == null || editor.getSelectionProvider() == null) { try { contents.reset(); showAnnotations(cvsResource, cvsAnnotateBlocks, contents, false); } catch (CVSException e) { return; ...
private void listSelectionChanged(IStructuredSelection selection) { // If the editor was closed, reopen it. if (editor == null || editor.getSelectionProvider() == null) { try { contents.reset(); showAnnotations(cvsResource, cvsAnnotateBlocks, contents, false); } catch (CVSException e) { return; ...
diff --git a/api/src/main/java/org/openmrs/api/impl/CohortServiceImpl.java b/api/src/main/java/org/openmrs/api/impl/CohortServiceImpl.java index e39e356b..3f5ecb79 100644 --- a/api/src/main/java/org/openmrs/api/impl/CohortServiceImpl.java +++ b/api/src/main/java/org/openmrs/api/impl/CohortServiceImpl.java @@ -1,366 +1,...
true
true
public Cohort saveCohort(Cohort cohort) throws APIException { if (cohort.getCohortId() == null) { Context.requirePrivilege(PrivilegeConstants.ADD_COHORTS); } else { Context.requirePrivilege(PrivilegeConstants.EDIT_COHORTS); } if (cohort.getName() == null) { throw new APIException("Cohort name is requi...
public Cohort saveCohort(Cohort cohort) throws APIException { if (cohort.getCohortId() == null) { Context.requirePrivilege(PrivilegeConstants.ADD_COHORTS); } else { Context.requirePrivilege(PrivilegeConstants.EDIT_COHORTS); } if (cohort.getName() == null) { throw new APIException(Context.getMessageSou...
diff --git a/dk.brics.lightrefactor.eclipse/src/dk/brics/lightrefactor/eclipse/handlers/RenameHandler.java b/dk.brics.lightrefactor.eclipse/src/dk/brics/lightrefactor/eclipse/handlers/RenameHandler.java index 8ec9f4a..fbd8a2a 100644 --- a/dk.brics.lightrefactor.eclipse/src/dk/brics/lightrefactor/eclipse/handlers/Rename...
false
true
public void executeWith(final IWorkbenchWindow window, ITextEditor currentEditor) throws ExecutionException { // Pull some useful objects out of the void ITextSelection sel = (ITextSelection) currentEditor.getEditorSite().getSelectionProvider().getSelection(); IDocument doc = currentEditor.getDocumentProvid...
public void executeWith(final IWorkbenchWindow window, ITextEditor currentEditor) throws ExecutionException { // Pull some useful objects out of the void ITextSelection sel = (ITextSelection) currentEditor.getEditorSite().getSelectionProvider().getSelection(); IDocument doc = currentEditor.getDocumentProvid...
diff --git a/flume-ng-channels/flume-file-channel/src/main/java/org/apache/flume/channel/file/EventQueueBackingStoreFactory.java b/flume-ng-channels/flume-file-channel/src/main/java/org/apache/flume/channel/file/EventQueueBackingStoreFactory.java index faec50b6..a19bdb45 100644 --- a/flume-ng-channels/flume-file-channe...
true
true
static EventQueueBackingStore get(File checkpointFile, int capacity, String name, boolean upgrade) throws Exception { File metaDataFile = Serialization.getMetaDataFile(checkpointFile); RandomAccessFile checkpointFileHandle = null; try { boolean checkpointExists = checkpointFile.exists(); ...
static EventQueueBackingStore get(File checkpointFile, int capacity, String name, boolean upgrade) throws Exception { File metaDataFile = Serialization.getMetaDataFile(checkpointFile); RandomAccessFile checkpointFileHandle = null; try { boolean checkpointExists = checkpointFile.exists(); ...
diff --git a/server/cpw/mods/fml/server/FMLServerHandler.java b/server/cpw/mods/fml/server/FMLServerHandler.java index 1a1934ad..6fcf004f 100644 --- a/server/cpw/mods/fml/server/FMLServerHandler.java +++ b/server/cpw/mods/fml/server/FMLServerHandler.java @@ -1,178 +1,177 @@ /* * The FML Forge Mod Loader suite. Copyr...
true
true
public void beginServerLoading(MinecraftServer minecraftServer) { server = minecraftServer; ObfuscationReflectionHelper.detectObfuscation(World.class); FMLCommonHandler.instance().beginLoading(this); Loader.instance().loadMods(); }
public void beginServerLoading(MinecraftServer minecraftServer) { server = minecraftServer; ObfuscationReflectionHelper.detectObfuscation(World.class); Loader.instance().loadMods(); }
diff --git a/agile-apps/agile-app-milestones/src/main/java/org/headsupdev/agile/app/milestones/WorkRemainingTable.java b/agile-apps/agile-app-milestones/src/main/java/org/headsupdev/agile/app/milestones/WorkRemainingTable.java index 15e4441f..1a334bd3 100644 --- a/agile-apps/agile-app-milestones/src/main/java/org/heads...
true
true
protected WorkRemainingTable( String id, final Project project, final Set<Issue> issueSet ) { super( id ); final boolean burndown = Boolean.parseBoolean( project.getConfigurationValue( StoredProject.CONFIGURATION_TIMETRACKING_BURNDOWN) ); List<User> users = new LinkedLi...
protected WorkRemainingTable( String id, final Project project, final Set<Issue> issueSet ) { super( id ); final boolean burndown = Boolean.parseBoolean( project.getConfigurationValue( StoredProject.CONFIGURATION_TIMETRACKING_BURNDOWN) ); List<User> users = new LinkedLi...
diff --git a/src/main/java/net/h31ix/anticheat/xray/XRayListener.java b/src/main/java/net/h31ix/anticheat/xray/XRayListener.java index 7cce08f..93580f3 100644 --- a/src/main/java/net/h31ix/anticheat/xray/XRayListener.java +++ b/src/main/java/net/h31ix/anticheat/xray/XRayListener.java @@ -1,64 +1,64 @@ /* * AntiCheat...
true
true
public void onBlockBreak(BlockBreakEvent event) { if (config.logXRay()) { Player p = event.getPlayer(); if (p.getGameMode() == GameMode.CREATIVE && !config.trackCreativeXRay()) { return; } String player = p.getName(); if (checkManager.willCheck(p, CheckType.XR...
public void onBlockBreak(BlockBreakEvent event) { if (config.logXRay()) { Player p = event.getPlayer(); if (p.getGameMode() == GameMode.CREATIVE && !config.trackCreativeXRay()) { return; } String player = p.getName(); if (checkManager.willCheck(p, CheckType.XR...
diff --git a/LogicMail/src/org/logicprobe/LogicMail/LogicMail.java b/LogicMail/src/org/logicprobe/LogicMail/LogicMail.java index ca6f0db..33e1f60 100644 --- a/LogicMail/src/org/logicprobe/LogicMail/LogicMail.java +++ b/LogicMail/src/org/logicprobe/LogicMail/LogicMail.java @@ -1,184 +1,184 @@ /*- * Copyright (c) 2009...
true
true
public LogicMail(String[] args) { boolean autoStart = false; for(int i=0; i<args.length; i++) { if(args[i].indexOf("autostartup") != -1) { autoStart = true; } } AppInfo.initialize(args); if(autoStart) { doAutoStart(); } else { // Load...
public LogicMail(String[] args) { boolean autoStart = false; for(int i=0; i<args.length; i++) { if(args[i].indexOf("autostartup") != -1) { autoStart = true; } } AppInfo.initialize(args); if(autoStart) { doAutoStart(); } else { // Load...
diff --git a/jetty/src/main/java/org/mortbay/jetty/handler/ContextHandler.java b/jetty/src/main/java/org/mortbay/jetty/handler/ContextHandler.java index 8d6468cd1..96b21bf4b 100644 --- a/jetty/src/main/java/org/mortbay/jetty/handler/ContextHandler.java +++ b/jetty/src/main/java/org/mortbay/jetty/handler/ContextHandler....
true
true
public boolean handle(String target, HttpServletRequest request, HttpServletResponse response, int dispatch) throws IOException, ServletException { boolean handled=false; boolean new_context=false; Request base_request=null; Context old_context=null; String ol...
public boolean handle(String target, HttpServletRequest request, HttpServletResponse response, int dispatch) throws IOException, ServletException { boolean handled=false; boolean new_context=false; Request base_request=null; Context old_context=null; String ol...
diff --git a/samples/xni/XMLGrammarBuilder.java b/samples/xni/XMLGrammarBuilder.java index d61e31dc8..60ceeefe3 100644 --- a/samples/xni/XMLGrammarBuilder.java +++ b/samples/xni/XMLGrammarBuilder.java @@ -1,325 +1,325 @@ /* * Copyright 1999-2005 The Apache Software Foundation. * * Licensed under the Apache Lice...
true
true
public static void main(String argv[]) { // too few parameters if (argv.length < 2) { printUsage(); System.exit(1); } XMLParserConfiguration parserConfiguration = null; String arg = null; int i = 0; arg = argv[i]; if (arg.equ...
public static void main(String argv[]) { // too few parameters if (argv.length < 2) { printUsage(); System.exit(1); } XMLParserConfiguration parserConfiguration = null; String arg = null; int i = 0; arg = argv[i]; if (arg.equ...
diff --git a/NodeAnimator/src/de/atlassoft/ui/SimulationStatisticDialog.java b/NodeAnimator/src/de/atlassoft/ui/SimulationStatisticDialog.java index a81b523..7905dba 100644 --- a/NodeAnimator/src/de/atlassoft/ui/SimulationStatisticDialog.java +++ b/NodeAnimator/src/de/atlassoft/ui/SimulationStatisticDialog.java @@ -1,5...
false
true
private void initUI() { final I18NService I18N = I18NSingleton.getInstance(); mainStatisticComposite = new Composite (tabFolder, SWT.NULL); mainStatisticComposite.setLayout (new GridLayout(1, true)); double allSec; int min; int sec; //Title of Statistic Label title = new Label(mainStatisticComposite, ...
private void initUI() { final I18NService I18N = I18NSingleton.getInstance(); mainStatisticComposite = new Composite (tabFolder, SWT.NULL); mainStatisticComposite.setLayout (new GridLayout(1, true)); double allSec; int min; int sec; //Title of Statistic Label title = new Label(mainStatisticComposite, ...
diff --git a/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasks/ui/actions/AttachFileAction.java b/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasks/ui/actions/AttachFileAction.java index 147c596ec..0de678aaa 100644 --- a/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasks/ui/acti...
true
true
public void run() { Object selection = super.getStructuredSelection().getFirstElement(); if (selection instanceof AbstractRepositoryTask) { AbstractRepositoryTask repositoryTask = (AbstractRepositoryTask)selection; TaskRepository repository = TasksUiPlugin.getRepositoryManager().getRepository(repositoryTask....
public void run() { Object selection = super.getStructuredSelection().getFirstElement(); if (selection instanceof AbstractRepositoryTask) { AbstractRepositoryTask repositoryTask = (AbstractRepositoryTask)selection; TaskRepository repository = TasksUiPlugin.getRepositoryManager().getRepository(repositoryTask....
diff --git a/src/edu/wcu/Chargen/ChargenUdpClient.java b/src/edu/wcu/Chargen/ChargenUdpClient.java index 8f3a564..982929a 100644 --- a/src/edu/wcu/Chargen/ChargenUdpClient.java +++ b/src/edu/wcu/Chargen/ChargenUdpClient.java @@ -1,151 +1,151 @@ package edu.wcu.Chargen; import java.io.IOException; import java.io.Pr...
true
true
public void printToStream(PrintStream out) throws SocketTimeoutException, SocketException, UnknownHostException, IOException { //ByteArrayOutputStream baos = new ByteArrayOutputStream(); // call helper method to create the clientSocket clientSocket = makeSocket(LOCAL_PORT); ...
public void printToStream(PrintStream out) throws SocketTimeoutException, SocketException, UnknownHostException, IOException { //ByteArrayOutputStream baos = new ByteArrayOutputStream(); // call helper method to create the clientSocket clientSocket = makeSocket(LOCAL_PORT); ...
diff --git a/src/main/java/com/gitblit/utils/JGitUtils.java b/src/main/java/com/gitblit/utils/JGitUtils.java index cf6ec26d..3c1173ce 100644 --- a/src/main/java/com/gitblit/utils/JGitUtils.java +++ b/src/main/java/com/gitblit/utils/JGitUtils.java @@ -1,2095 +1,2098 @@ /* * Copyright 2011 gitblit.com. * * License...
false
true
public static List<RevCommit> searchRevlogs(Repository repository, String objectId, String value, final com.gitblit.Constants.SearchType type, int offset, int maxCount) { final String lcValue = value.toLowerCase(); List<RevCommit> list = new ArrayList<RevCommit>(); if (maxCount == 0) { return list; } i...
public static List<RevCommit> searchRevlogs(Repository repository, String objectId, String value, final com.gitblit.Constants.SearchType type, int offset, int maxCount) { List<RevCommit> list = new ArrayList<RevCommit>(); if (StringUtils.isEmpty(value)) { return list; } if (maxCount == 0) { return lis...
diff --git a/src/net/invisioncraft/plugins/salesmania/commands/salesmania/LocaleCommand.java b/src/net/invisioncraft/plugins/salesmania/commands/salesmania/LocaleCommand.java index 30a9daa..f5c68e3 100644 --- a/src/net/invisioncraft/plugins/salesmania/commands/salesmania/LocaleCommand.java +++ b/src/net/invisioncraft/p...
false
true
public boolean execute(CommandSender sender, Command command, String label, String[] args) { LocaleCommands localeCommand = LocaleCommands.valueOf(args[1].toUpperCase()); Locale locale = plugin.getLocaleHandler().getLocale(sender); switch(localeCommand) { case LIST: ...
public boolean execute(CommandSender sender, Command command, String label, String[] args) { Locale locale = plugin.getLocaleHandler().getLocale(sender); LocaleCommands localeCommand; // Syntax try { localeCommand = LocaleCommands.valueOf(args[1].toUpperCase()); }...
diff --git a/To_DoList/src/csci422/CandN/to_dolist/ListViewsFactory.java b/To_DoList/src/csci422/CandN/to_dolist/ListViewsFactory.java index 7c83220..a21f0bd 100644 --- a/To_DoList/src/csci422/CandN/to_dolist/ListViewsFactory.java +++ b/To_DoList/src/csci422/CandN/to_dolist/ListViewsFactory.java @@ -1,101 +1,101 @@ /*...
true
true
public RemoteViews getViewAt(int position) { RemoteViews row = new RemoteViews(ctxt.getPackageName(), R.layout.widget_row); tasks.moveToPosition(position); row.setTextViewText(android.R.id.text1, tasks.getString(1)); if(tasks.getInt(2) < 95) { row.setImageViewResource(R.id.checkImage, R.drawable.chec...
public RemoteViews getViewAt(int position) { RemoteViews row = new RemoteViews(ctxt.getPackageName(), R.layout.widget_row); tasks.moveToPosition(position); row.setTextViewText(android.R.id.text1, tasks.getString(1)); if(tasks.getInt(2) >= 95) { row.setImageViewResource(R.id.checkImage, R.drawable.che...
diff --git a/test-src/com/redhat/ceylon/ceylondoc/test/CeylonDocToolTest.java b/test-src/com/redhat/ceylon/ceylondoc/test/CeylonDocToolTest.java index 4f25e7613..60ed7c38b 100644 --- a/test-src/com/redhat/ceylon/ceylondoc/test/CeylonDocToolTest.java +++ b/test-src/com/redhat/ceylon/ceylondoc/test/CeylonDocToolTest.java...
false
true
public void moduleA() throws IOException { String pathname = "test-src/com/redhat/ceylon/ceylondoc/test/modules/single"; String testName = "moduleA"; CeylonDocTool tool = tool(pathname, testName, "a"); tool.setShowPrivate(false); tool.setOmitSource(false); tool.makeDo...
public void moduleA() throws IOException { String pathname = "test-src/com/redhat/ceylon/ceylondoc/test/modules/single"; String testName = "moduleA"; CeylonDocTool tool = tool(pathname, testName, "a"); tool.setShowPrivate(false); tool.setOmitSource(false); tool.makeDo...
diff --git a/biz.aQute.repository/src/aQute/bnd/deployer/repository/CachingUriResourceHandle.java b/biz.aQute.repository/src/aQute/bnd/deployer/repository/CachingUriResourceHandle.java index aaa63ca0c..a2f82254a 100644 --- a/biz.aQute.repository/src/aQute/bnd/deployer/repository/CachingUriResourceHandle.java +++ b/biz....
false
true
public File request() throws IOException { if (localFile != null) return localFile; if (cachedFile == null) throw new IllegalStateException("Invalid URLResourceHandle: both local file and cache file location are uninitialised."); // Check whether the cached copy exist and has the right SHA. boolean cach...
public File request() throws IOException { if (localFile != null) return localFile; if (cachedFile == null) throw new IllegalStateException("Invalid URLResourceHandle: both local file and cache file location are uninitialised."); // Check whether the cached copy exist and has the right SHA. boolean cach...
diff --git a/src/cc/hughes/droidchatty/PostFormatter.java b/src/cc/hughes/droidchatty/PostFormatter.java index 65df2b7..57f5b65 100644 --- a/src/cc/hughes/droidchatty/PostFormatter.java +++ b/src/cc/hughes/droidchatty/PostFormatter.java @@ -1,46 +1,46 @@ package cc.hughes.droidchatty; import android.text.Html; imp...
true
true
public static Spanned formatContent(String userName, String content, boolean multiLine) { // special case fix for shacknews links if (userName.equalsIgnoreCase("shacknews")) content = content.replaceAll("&lt;(/?)a(.*?)&gt;", "<$1a$2>"); // convert shack's css into real font ...
public static Spanned formatContent(String userName, String content, boolean multiLine) { // special case fix for shacknews links if (userName.equalsIgnoreCase("shacknews")) content = content.replaceAll("&lt;(/?)a(.*?)&gt;", "<$1a$2>"); // convert shack's css into real font ...
diff --git a/core/src/com/google/zxing/qrcode/QRCodeReader.java b/core/src/com/google/zxing/qrcode/QRCodeReader.java index 33c50b8a..2a12c6dd 100644 --- a/core/src/com/google/zxing/qrcode/QRCodeReader.java +++ b/core/src/com/google/zxing/qrcode/QRCodeReader.java @@ -1,165 +1,166 @@ /* * Copyright 2007 ZXing authors ...
true
true
public static BitMatrix extractPureBits(BitMatrix image) throws NotFoundException { int height = image.getHeight(); int width = image.getWidth(); int minDimension = Math.min(height, width); // And then keep tracking across the top-left black module to determine module size //int moduleEnd = bord...
public static BitMatrix extractPureBits(BitMatrix image) throws NotFoundException { int height = image.getHeight(); int width = image.getWidth(); int minDimension = Math.min(height, width); // And then keep tracking across the top-left black module to determine module size //int moduleEnd = bord...
diff --git a/simbeeotic-core/src/main/java/harvard/robobees/simbeeotic/configuration/VariationIterator.java b/simbeeotic-core/src/main/java/harvard/robobees/simbeeotic/configuration/VariationIterator.java index d3e741a..c481b98 100644 --- a/simbeeotic-core/src/main/java/harvard/robobees/simbeeotic/configuration/Variati...
true
true
public VariationIterator(Scenario rawScenario) { List<AbstractLoopingVariable> variables = null; LoopingVariableFactory varFact = new LoopingVariableFactory(); AbstractLoopingVariable masterSeed = varFact.newMasterSeedVariable(rawScenario.getMasterSeed()); Variables loopingVars = r...
public VariationIterator(Scenario rawScenario) { List<AbstractLoopingVariable> variables = null; LoopingVariableFactory varFact = new LoopingVariableFactory(); AbstractLoopingVariable masterSeed = varFact.newMasterSeedVariable(rawScenario.getMasterSeed()); Variables loopingVars = r...
diff --git a/src/mkpc/fligthcontrol/MKCameraControlWindow.java b/src/mkpc/fligthcontrol/MKCameraControlWindow.java index 8368cc7..37f86c2 100644 --- a/src/mkpc/fligthcontrol/MKCameraControlWindow.java +++ b/src/mkpc/fligthcontrol/MKCameraControlWindow.java @@ -1,182 +1,183 @@ package mkpc.fligthcontrol; import java.a...
true
true
private void initGUI() { try { setDefaultCloseOperation(WindowConstants.DISPOSE_ON_CLOSE); getContentPane().setLayout(null); KeyboardFocusManager manager = KeyboardFocusManager.getCurrentKeyboardFocusManager(); manager.addKeyEventDispatcher(new MKKeyDispatcher()); { btn_makePhoto = new ...
private void initGUI() { try { setDefaultCloseOperation(WindowConstants.DISPOSE_ON_CLOSE); getContentPane().setLayout(null); KeyboardFocusManager manager = KeyboardFocusManager.getCurrentKeyboardFocusManager(); manager.addKeyEventDispatcher(new MKKeyDispatcher()); { btn_makePhoto = new ...
diff --git a/activemq-core/src/main/java/org/apache/activemq/store/jdbc/adapter/BlobJDBCAdapter.java b/activemq-core/src/main/java/org/apache/activemq/store/jdbc/adapter/BlobJDBCAdapter.java index e266876e3..c59cca072 100755 --- a/activemq-core/src/main/java/org/apache/activemq/store/jdbc/adapter/BlobJDBCAdapter.java +...
true
true
public void doAddMessage(TransactionContext c, long sequence, MessageId messageID, ActiveMQDestination destination, byte[] data, long expiration, byte priority) throws SQLException, IOException { PreparedStatement s = null; ResultSet rs = null; cleanupExclusiveLock.readLock().loc...
public void doAddMessage(TransactionContext c, long sequence, MessageId messageID, ActiveMQDestination destination, byte[] data, long expiration, byte priority) throws SQLException, IOException { PreparedStatement s = null; ResultSet rs = null; cleanupExclusiveLock.readLock().loc...
diff --git a/tests/org.jboss.tools.esb.ui.bot.test/src/org/jboss/tools/esb/ui/bot/tests/examples/HelloWorldFileAction.java b/tests/org.jboss.tools.esb.ui.bot.test/src/org/jboss/tools/esb/ui/bot/tests/examples/HelloWorldFileAction.java index 24bf9833d..7ca9a210e 100644 --- a/tests/org.jboss.tools.esb.ui.bot.test/src/org...
true
true
protected void executeExample() { /* Create the data directories needed by the quickstart */ bot.menu("File").menu("New").menu("Folder").click(); bot.tree(0).getTreeItem(projectName).select(); bot.text(1).setText(inputDir); bot.button("&Finish").click(); bot.sleep(Timing.time3S()); bot.menu("File...
protected void executeExample() { /* Create the data directories needed by the quickstart */ bot.menu("File").menu("New").menu("Folder").click(); bot.tree(0).getTreeItem(projectName).select(); bot.text(1).setText(inputDir); bot.button("&Finish").click(); bot.sleep(Timing.time3S()); bot.menu("File...
diff --git a/devel/web/web-application/src/main/java/net/contextfw/web/application/internal/component/ScriptElementBuilder.java b/devel/web/web-application/src/main/java/net/contextfw/web/application/internal/component/ScriptElementBuilder.java index 2664936..3390644 100644 --- a/devel/web/web-application/src/main/java...
true
true
void buildNamedValue(DOMBuilder b, String name, Object value) { if (value != null) { if (value instanceof Script) { ((Script) value).build(b.descend(name), gson, componentBuilder); } else { throw new WebApplicationException("Instance of '"+value.getClass().getN...
void buildNamedValue(DOMBuilder b, String name, Object value) { if (value != null) { if (value instanceof Script) { ((Script) value).build(b.descend(name), gson, componentBuilder); } else { throw new WebApplicationException("Instance of '"+value.getClass().getN...
diff --git a/src/haven/HavenApplet.java b/src/haven/HavenApplet.java index 1afac24..ed8e6eb 100644 --- a/src/haven/HavenApplet.java +++ b/src/haven/HavenApplet.java @@ -1,118 +1,118 @@ package haven; import java.applet.*; import java.net.URL; import java.awt.*; import java.awt.event.*; public class HavenApple...
true
true
public void startgame() { if(running) return; h = new HavenPanel(800, 600); add(h); h.init(); p = new haven.error.ErrorHandler(new ErrorPanel()); Thread main = new Thread(p, new Runnable() { public void run() { Bootstrap b = new Bootstrap(h.ui, false); b.setaddr(getCodeBase().getHost()); ...
public void startgame() { if(running) return; h = new HavenPanel(800, 600); add(h); h.init(); p = new haven.error.ErrorHandler(new ErrorPanel()); Thread main = new Thread(p, new Runnable() { public void run() { Bootstrap b = new Bootstrap(h.ui, false); b.setaddr(getCodeBase().getHost()); ...
diff --git a/core/src/test/java/org/apache/mahout/df/split/OptIgSplitTest.java b/core/src/test/java/org/apache/mahout/df/split/OptIgSplitTest.java index 95eb33fd9..3d83259f6 100644 --- a/core/src/test/java/org/apache/mahout/df/split/OptIgSplitTest.java +++ b/core/src/test/java/org/apache/mahout/df/split/OptIgSplitTest....
true
true
public void testComputeSplit() throws Exception { int n = 100; IgSplit ref = new DefaultIgSplit(); IgSplit opt = new OptIgSplit(); Random rng = RandomUtils.getRandom(); Data data = Utils.randomData(rng, nbAttributes, numInstances); for (int nloop = 0; nloop < n; nloop++) { int attr = ...
public void testComputeSplit() throws Exception { int n = 100; IgSplit ref = new DefaultIgSplit(); IgSplit opt = new OptIgSplit(); Random rng = RandomUtils.getRandom(); Data data = Utils.randomData(rng, nbAttributes, numInstances); for (int nloop = 0; nloop < n; nloop++) { int attr = ...
diff --git a/src/main/java/de/cismet/extensions/timeasy/TimEasyPureNewFeature.java b/src/main/java/de/cismet/extensions/timeasy/TimEasyPureNewFeature.java index 862445f..ce8938d 100644 --- a/src/main/java/de/cismet/extensions/timeasy/TimEasyPureNewFeature.java +++ b/src/main/java/de/cismet/extensions/timeasy/TimEasyPur...
true
true
public void mouseClicked(final PInputEvent event) { try { event.setHandled(noFurtherEventProcessing(event)); final MetaClass metaClass = SessionManager.getProxy().getMetaClass(classId + "@" + domainserver); final String userkey = SessionManager.getSession().getUser().getU...
public void mouseClicked(final PInputEvent event) { try { event.setHandled(noFurtherEventProcessing(event)); final MetaClass metaClass = SessionManager.getProxy().getMetaClass(classId + "@" + domainserver); final String userkey = SessionManager.getSession().getUser().getU...
diff --git a/trunk/src/edu/umich/lsa/cscs/gridsweeper/GridSweeper.java b/trunk/src/edu/umich/lsa/cscs/gridsweeper/GridSweeper.java index dff77f9..4f3a226 100644 --- a/trunk/src/edu/umich/lsa/cscs/gridsweeper/GridSweeper.java +++ b/trunk/src/edu/umich/lsa/cscs/gridsweeper/GridSweeper.java @@ -1,784 +1,784 @@ package ed...
true
true
private void sendEmail(StringList drmaaErrorList, StringList gsErrorList, StringList execErrorList) throws GridSweeperException { String expName = experiment.getName(); String subject = expName + " complete"; // Construct and write out message String messagePath = appendPathComponent(expDir, ".gsw...
private void sendEmail(StringList drmaaErrorList, StringList gsErrorList, StringList execErrorList) throws GridSweeperException { String expName = experiment.getName(); String subject = expName + " complete"; // Construct and write out message String messagePath = appendPathComponent(expDir, ".gsw...
diff --git a/src/Game.java b/src/Game.java index db44a0f..824e453 100644 --- a/src/Game.java +++ b/src/Game.java @@ -1,70 +1,70 @@ /** * Created with IntelliJ IDEA. * User: Notandi * Date: 12.11.2012 * Time: 17:02 */ import java.util.Scanner; public class Game { public User player1; public ...
true
true
public void loop() { boolean isPlayer1 = true; User user; Scanner in = new Scanner(System.in); while (board.checkWinner() == 'X') { user = (isPlayer1) ? player1 : player2; int cell; do { System.out.println(board); ...
public void loop() { boolean isPlayer1 = true; User user; Scanner in = new Scanner(System.in); while (board.checkWinner() == 'x') { user = (isPlayer1) ? player1 : player2; int cell; do { System.out.println(board); ...
diff --git a/java/src/com/android/inputmethod/latin/LatinIME.java b/java/src/com/android/inputmethod/latin/LatinIME.java index 45ecfd2e7..95f89c0cc 100644 --- a/java/src/com/android/inputmethod/latin/LatinIME.java +++ b/java/src/com/android/inputmethod/latin/LatinIME.java @@ -1,2378 +1,2378 @@ /* * Copyright (C) 200...
true
true
private void onStartInputViewInternal(final EditorInfo editorInfo, final boolean restarting) { super.onStartInputView(editorInfo, restarting); final KeyboardSwitcher switcher = mKeyboardSwitcher; final MainKeyboardView mainKeyboardView = switcher.getMainKeyboardView(); if (editorInf...
private void onStartInputViewInternal(final EditorInfo editorInfo, final boolean restarting) { super.onStartInputView(editorInfo, restarting); final KeyboardSwitcher switcher = mKeyboardSwitcher; final MainKeyboardView mainKeyboardView = switcher.getMainKeyboardView(); if (editorInf...
diff --git a/src/ProjectControl/src/org/cvut/wa2/projectcontrol/TeamsServlet.java b/src/ProjectControl/src/org/cvut/wa2/projectcontrol/TeamsServlet.java index d9eb084..c29c88c 100644 --- a/src/ProjectControl/src/org/cvut/wa2/projectcontrol/TeamsServlet.java +++ b/src/ProjectControl/src/org/cvut/wa2/projectcontrol/Teams...
true
true
protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { super.doGet(req, resp); UserService service = UserServiceFactory.getUserService(); User user = service.getCurrentUser(); if(user!= null){ DatastoreService ds = DatastoreServiceFactory.getDatastor...
protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { UserService service = UserServiceFactory.getUserService(); User user = service.getCurrentUser(); if(user!= null){ DatastoreService ds = DatastoreServiceFactory.getDatastoreService(); } else...
diff --git a/ext/complex-types/src/main/java/org/modelinglab/ocl/ext/complextypes/evaluator/date/DateDayOfWeekEvaluator.java b/ext/complex-types/src/main/java/org/modelinglab/ocl/ext/complextypes/evaluator/date/DateDayOfWeekEvaluator.java index 12ee42f..3d6f500 100644 --- a/ext/complex-types/src/main/java/org/modelingl...
true
true
public OclValue<?> visitDate(AGDateObject val, SwitchArgument arg) { return new EnumValue(AGDayOfWeek.getInstance().getLiteral(val.getJodaDateTime().getDayOfWeek())); }
public OclValue<?> visitDate(AGDateObject val, SwitchArgument arg) { return new EnumValue(AGDayOfWeek.getInstance().getLiteral(val.getJodaDateTime().getDayOfWeek() - 1)); }
diff --git a/src/main/java/org/andrill/conop/pp/Placements.java b/src/main/java/org/andrill/conop/pp/Placements.java index 8c8747d..ec704c1 100644 --- a/src/main/java/org/andrill/conop/pp/Placements.java +++ b/src/main/java/org/andrill/conop/pp/Placements.java @@ -1,120 +1,127 @@ package org.andrill.conop.pp; impor...
false
true
public void generate(final Workbook workbook, final RunInfo run) { Sheet sheet = workbook.createSheet(); // sort our sections List<Map<String, String>> sections = run.getSections(); Collections.sort(sections, new Comparator<Map<String, String>>() { @Override public int compare(final Map<String, String> ...
public void generate(final Workbook workbook, final RunInfo run) { Sheet sheet = workbook.createSheet(run.getName()); // sort our sections List<Map<String, String>> sections = run.getSections(); Collections.sort(sections, new Comparator<Map<String, String>>() { @Override public int compare(final Map<Str...