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/component/application-registry/src/main/java/org/exoplatform/application/registry/impl/ApplicationRegistryServiceImpl.java b/component/application-registry/src/main/java/org/exoplatform/application/registry/impl/ApplicationRegistryServiceImpl.java index e6731e02a..f0d09836d 100644 --- a/component/applicati...
true
true
public void importAllPortlets() throws Exception { ContentRegistry registry = getContentRegistry(); // log.info("About to import portlets in application registry"); // ExoContainer manager = ExoContainerContext.getCurrentContainer(); PortletInvoker portletInvoker = (PortletIn...
public void importAllPortlets() throws Exception { ContentRegistry registry = getContentRegistry(); // log.info("About to import portlets in application registry"); // ExoContainer manager = ExoContainerContext.getCurrentContainer(); PortletInvoker portletInvoker = (PortletIn...
diff --git a/src/main/java/com/redhat/ceylon/compiler/js/InvocationGenerator.java b/src/main/java/com/redhat/ceylon/compiler/js/InvocationGenerator.java index a704a897..5a18ca24 100644 --- a/src/main/java/com/redhat/ceylon/compiler/js/InvocationGenerator.java +++ b/src/main/java/com/redhat/ceylon/compiler/js/Invocation...
false
true
void generateInvocation(Tree.InvocationExpression that) { if (that.getNamedArgumentList()!=null) { Tree.NamedArgumentList argList = that.getNamedArgumentList(); if (gen.isInDynamicBlock() && that.getPrimary() instanceof Tree.MemberOrTypeExpression && ((Tree.Member...
void generateInvocation(Tree.InvocationExpression that) { if (that.getNamedArgumentList()!=null) { Tree.NamedArgumentList argList = that.getNamedArgumentList(); if (gen.isInDynamicBlock() && that.getPrimary() instanceof Tree.MemberOrTypeExpression && ((Tree.Member...
diff --git a/src/org/clapper/curn/output/html/HTMLOutputHandler.java b/src/org/clapper/curn/output/html/HTMLOutputHandler.java index 28da724..6012d7e 100644 --- a/src/org/clapper/curn/output/html/HTMLOutputHandler.java +++ b/src/org/clapper/curn/output/html/HTMLOutputHandler.java @@ -1,312 +1,315 @@ /*----------------...
true
true
public void displayChannel (RSSChannel channel, FeedInfo feedInfo) throws FeedException { Collection items = channel.getItems(); if (items.size() == 0) return; int i = 0; Iterator it; Date date; ...
public void displayChannel (RSSChannel channel, FeedInfo feedInfo) throws FeedException { Collection items = channel.getItems(); if (items.size() == 0) return; int i = 0; Iterator it; Date date; ...
diff --git a/src/main/java/net/aufdemrand/denizen/objects/dEntity.java b/src/main/java/net/aufdemrand/denizen/objects/dEntity.java index 07e6161d5..0cd22d693 100644 --- a/src/main/java/net/aufdemrand/denizen/objects/dEntity.java +++ b/src/main/java/net/aufdemrand/denizen/objects/dEntity.java @@ -1,1993 +1,1994 @@ pack...
false
true
public String getAttribute(Attribute attribute) { if (attribute == null) return null; if (entity == null) { dB.echoError("dEntity has returned null."); return Element.NULL.getAttribute(attribute); } ///////////////////// // DEBUG ATTRIBUTES ...
public String getAttribute(Attribute attribute) { if (attribute == null) return null; if (entity == null) { dB.echoError("dEntity has returned null."); return Element.NULL.getAttribute(attribute); } ///////////////////// // DEBUG ATTRIBUTES ...
diff --git a/org.eclipse.swtbot.swt.finder.test/src/org/eclipse/swtbot/swt/finder/keyboard/KeyboardTest.java b/org.eclipse.swtbot.swt.finder.test/src/org/eclipse/swtbot/swt/finder/keyboard/KeyboardTest.java index 143eb44..546625a 100644 --- a/org.eclipse.swtbot.swt.finder.test/src/org/eclipse/swtbot/swt/finder/keyboard...
true
true
public void setUp() throws Exception { super.setUp(); bot = new SWTBot(); keyboard = new Keyboard(display); bot.shell("SWT Custom Controls").activate(); bot.tabItem("StyledText").activate(); bot.checkBox("Horizontal Fill").select(); bot.checkBox("Vertical Fill").select(); bot.checkBox("Listen").deselec...
public void setUp() throws Exception { super.setUp(); bot = new SWTBot(); keyboard = new Keyboard(); bot.shell("SWT Custom Controls").activate(); bot.tabItem("StyledText").activate(); bot.checkBox("Horizontal Fill").select(); bot.checkBox("Vertical Fill").select(); bot.checkBox("Listen").deselect(); ...
diff --git a/container/openejb-core/src/main/java/org/apache/openejb/config/DeploymentsResolver.java b/container/openejb-core/src/main/java/org/apache/openejb/config/DeploymentsResolver.java index 14eaa1fdd9..f095b07334 100644 --- a/container/openejb-core/src/main/java/org/apache/openejb/config/DeploymentsResolver.java...
true
true
private static void loadFromClasspath(FileUtils base, List<String> jarList, ClassLoader classLoader) { Deployments deployment = null; String include = null; String exclude = null; String path = null; include = SystemInstance.get().getProperty(CLASSPATH_INCLUDE, ""); ...
private static void loadFromClasspath(FileUtils base, List<String> jarList, ClassLoader classLoader) { Deployments deployment = null; String include = null; String exclude = null; String path = null; include = SystemInstance.get().getProperty(CLASSPATH_INCLUDE, ""); ...
diff --git a/src/com/leppie/dhd/PSCalibrator.java b/src/com/leppie/dhd/PSCalibrator.java index 18b17b7..91f10e5 100644 --- a/src/com/leppie/dhd/PSCalibrator.java +++ b/src/com/leppie/dhd/PSCalibrator.java @@ -1,340 +1,340 @@ package com.leppie.dhd; import java.util.*; import java.io.*; import android.app.Activi...
true
true
public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.main); context = getApplicationContext(); psevent = this; sensormanager = (SensorManager)getSystemService(SENSOR_SERVICE); ps = sensormanager.getDefaultSensor(Sensor.T...
public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.main); context = getApplicationContext(); psevent = this; sensormanager = (SensorManager)getSystemService(SENSOR_SERVICE); ps = sensormanager.getDefaultSensor(Sensor.T...
diff --git a/org.eclipse.egit.ui/src/org/eclipse/egit/ui/internal/push/PushOperationUI.java b/org.eclipse.egit.ui/src/org/eclipse/egit/ui/internal/push/PushOperationUI.java index 15e0ec7c..7d96b554 100644 --- a/org.eclipse.egit.ui/src/org/eclipse/egit/ui/internal/push/PushOperationUI.java +++ b/org.eclipse.egit.ui/src/...
false
true
public PushOperationResult execute(IProgressMonitor monitor) throws CoreException { if (spec == null) { // we don't use the configuration directly, as it may contain // unsaved changes and as we may need // to add the default push RefSpec here spec = new PushOperationSpecification(); List<URIish> ...
public PushOperationResult execute(IProgressMonitor monitor) throws CoreException { if (spec == null) { // we don't use the configuration directly, as it may contain // unsaved changes and as we may need // to add the default push RefSpec here spec = new PushOperationSpecification(); List<URIish> ...
diff --git a/ttools/src/main/uk/ac/starlink/ttools/task/SkyMatch2Mapper.java b/ttools/src/main/uk/ac/starlink/ttools/task/SkyMatch2Mapper.java index 14b9525e0..fe0e84a36 100644 --- a/ttools/src/main/uk/ac/starlink/ttools/task/SkyMatch2Mapper.java +++ b/ttools/src/main/uk/ac/starlink/ttools/task/SkyMatch2Mapper.java @@ ...
true
true
public SkyMatch2Mapper() { raParams_ = new Parameter[ 2 ]; decParams_ = new Parameter[ 2 ]; for ( int i = 0; i < 2; i++ ) { int i1 = i + 1; Parameter raParam = new Parameter( "ra" + i1 ); Parameter decParam = new Parameter( "dec" + i1 ); raPara...
public SkyMatch2Mapper() { raParams_ = new Parameter[ 2 ]; decParams_ = new Parameter[ 2 ]; for ( int i = 0; i < 2; i++ ) { int i1 = i + 1; Parameter raParam = new Parameter( "ra" + i1 ); Parameter decParam = new Parameter( "dec" + i1 ); raPara...
diff --git a/exporting-server/java/highcharts-export/highcharts-export-convert/src/main/java/com/highcharts/export/pool/ServerObjectFactory.java b/exporting-server/java/highcharts-export/highcharts-export-convert/src/main/java/com/highcharts/export/pool/ServerObjectFactory.java index 66847d080..173356f19 100644 --- a/e...
true
true
public void afterBeanInit() { String jarLocation = getClass().getProtectionDomain().getCodeSource().getLocation().getPath(); try { jarLocation = URLDecoder.decode(jarLocation, "utf-8"); // get filesystem depend path jarLocation = new File(jarLocation).getCanonicalPath(); } catch (UnsupportedEncodingExce...
public void afterBeanInit() { String jarLocation = getClass().getProtectionDomain().getCodeSource().getLocation().getPath().split("!")[0].replace("file:/", ""); try { jarLocation = URLDecoder.decode(jarLocation, "utf-8"); // get filesystem depend path jarLocation = new File(jarLocation).getCanonicalPath()...
diff --git a/src/armitage/ArmitageApplication.java b/src/armitage/ArmitageApplication.java index 5da7dab..ed702fd 100644 --- a/src/armitage/ArmitageApplication.java +++ b/src/armitage/ArmitageApplication.java @@ -1,209 +1,209 @@ package armitage; import javax.swing.*; import javax.swing.event.*; import java.awt...
true
true
public void _addTab(final String title, JComponent tab, final ActionListener removeListener) { final Component component = tabs.add("", tab); final JLabel label = new JLabel(title + " "); JPanel control = new JPanel(); control.setOpaque(false); control.setLayout(new BorderLayout()); control.add(label, B...
public void _addTab(final String title, JComponent tab, final ActionListener removeListener) { final Component component = tabs.add("", tab); final JLabel label = new JLabel(title + " "); JPanel control = new JPanel(); control.setOpaque(false); control.setLayout(new BorderLayout()); control.add(label, B...
diff --git a/grisu-core/src/main/java/grisu/backend/model/FileSystemCache.java b/grisu-core/src/main/java/grisu/backend/model/FileSystemCache.java index f051007c..cd140872 100644 --- a/grisu-core/src/main/java/grisu/backend/model/FileSystemCache.java +++ b/grisu-core/src/main/java/grisu/backend/model/FileSystemCache.ja...
true
true
public FileSystem getFileSystem(final String rootUrl, String fqan) throws FileSystemException { synchronized (rootUrl) { Cred credToUse = null; MountPoint temp = null; try { String tmp = fqan; System.out.println(tmp); temp = user.getResponsibleMountpointForAbsoluteFile(rootUrl); } catch ...
public FileSystem getFileSystem(final String rootUrl, String fqan) throws FileSystemException { synchronized (rootUrl) { Cred credToUse = null; MountPoint temp = null; try { String tmp = fqan; System.out.println(tmp); temp = user.getResponsibleMountpointForAbsoluteFile(rootUrl); } catch ...
diff --git a/controllers/SupervisorController/SupervisorController.java b/controllers/SupervisorController/SupervisorController.java index ef87824..a59eed5 100644 --- a/controllers/SupervisorController/SupervisorController.java +++ b/controllers/SupervisorController/SupervisorController.java @@ -1,583 +1,583 @@ import...
true
true
public void run() { while (step(TIME_STEP) != -1) { byte[] nnFit; float finished = -1; drawRobotsPosition(); // As long as individual is being evaluated, print current fitness and return int n = receiver.getQueueLength(); if (n > 0) ...
public void run() { while (step(TIME_STEP) != -1) { byte[] nnFit; float finished = -1; drawRobotsPosition(); // As long as individual is being evaluated, print current fitness and return int n = receiver.getQueueLength(); if (n > 0) ...
diff --git a/sonar-python-plugin/src/test/java/org/sonar/plugins/python/pylint/PylintConfigurationTest.java b/sonar-python-plugin/src/test/java/org/sonar/plugins/python/pylint/PylintConfigurationTest.java index 0dfdfb0a..4a835eb8 100644 --- a/sonar-python-plugin/src/test/java/org/sonar/plugins/python/pylint/PylintConfi...
true
true
public void shouldGetCorrectPylintPath() { Configuration conf = new BaseConfiguration(); PylintConfiguration pylintConfiguration = new PylintConfiguration(conf); ProjectFileSystem pfs = mock(ProjectFileSystem.class); when(pfs.getBasedir()).thenReturn(new File("/projectroot")); Project project = n...
public void shouldGetCorrectPylintPath() { Configuration conf = new BaseConfiguration(); PylintConfiguration pylintConfiguration = new PylintConfiguration(conf); ProjectFileSystem pfs = mock(ProjectFileSystem.class); when(pfs.getBasedir()).thenReturn(new File("/projectroot")); Project project = n...
diff --git a/src/java/org/wings/plaf/css/IconTextCompound.java b/src/java/org/wings/plaf/css/IconTextCompound.java index c0babbf9..c3026968 100644 --- a/src/java/org/wings/plaf/css/IconTextCompound.java +++ b/src/java/org/wings/plaf/css/IconTextCompound.java @@ -1,99 +1,99 @@ /* * $Id$ * Copyright 2000,2005 wingS ...
true
true
public void writeCompound(Device device, SComponent component, int horizontal, int vertical) throws IOException { if (horizontal == SConstants.NO_ALIGN) horizontal = SConstants.RIGHT; if (vertical == SConstants.NO_ALIGN) vertical = SConstants.CENTER; boolean order = v...
public void writeCompound(Device device, SComponent component, int horizontal, int vertical) throws IOException { if (horizontal == SConstants.NO_ALIGN) horizontal = SConstants.RIGHT; if (vertical == SConstants.NO_ALIGN) vertical = SConstants.CENTER; boolean order = v...
diff --git a/src/main/java/org/jenkinsci/plugins/rallyBuild/RallyBuild.java b/src/main/java/org/jenkinsci/plugins/rallyBuild/RallyBuild.java index 1718430..c2ac757 100644 --- a/src/main/java/org/jenkinsci/plugins/rallyBuild/RallyBuild.java +++ b/src/main/java/org/jenkinsci/plugins/rallyBuild/RallyBuild.java @@ -1,394 +...
true
true
public boolean perform(AbstractBuild build, Launcher launcher, BuildListener listener) throws IOException, InterruptedException { EnvVars env = build.getEnvironment(listener); String expandedCommentText = env.expand(commentText); String expandedPreConditionText = env.expand(preCommentTex...
public boolean perform(AbstractBuild build, Launcher launcher, BuildListener listener) throws IOException, InterruptedException { EnvVars env = build.getEnvironment(listener); String expandedCommentText = env.expand(commentText); String expandedPreConditionText = env.expand(preCommentTex...
diff --git a/src/main/java/org/drpowell/xlifyvcf/XLifyVcf.java b/src/main/java/org/drpowell/xlifyvcf/XLifyVcf.java index 97377b9..8bcd3ef 100644 --- a/src/main/java/org/drpowell/xlifyvcf/XLifyVcf.java +++ b/src/main/java/org/drpowell/xlifyvcf/XLifyVcf.java @@ -1,265 +1,265 @@ package org.drpowell.xlifyvcf; import j...
true
true
private void writeRow(VCFVariant v) { rowNum++; ArrayList<String> data = new ArrayList<String>(headers.length); Row r = dataSheet.createRow(rowNum); data.addAll(Arrays.asList(v.toString().split("\t", -1))); for (String i : vcfParser.infos().keySet()) { data.add(v.getInfoField(i)); } String [] calls = ...
private void writeRow(VCFVariant v) { rowNum++; ArrayList<String> data = new ArrayList<String>(headers.length); Row r = dataSheet.createRow(rowNum); data.addAll(Arrays.asList(v.toString().split("\t", -1))); for (String i : vcfParser.infos().keySet()) { data.add(v.getInfoField(i)); } String [] calls = ...
diff --git a/src/microcontroller/threads/PresenceThread.java b/src/microcontroller/threads/PresenceThread.java index b31030a..b30d281 100644 --- a/src/microcontroller/threads/PresenceThread.java +++ b/src/microcontroller/threads/PresenceThread.java @@ -1,81 +1,83 @@ package microcontroller.threads; import java.util...
true
true
public void run() { while (true) { try { System.out.println("Presence service is running"); LinkedList<String> previousNearbyUsers = new LinkedList<String>(); /* * Find out current devices in the room */ this.nearbyUsersSemaphore.acquire(); if (!this.nearbyUsers.isEmpty()) { pre...
public void run() { while (true) { try { System.out.println("Presence service is running"); LinkedList<String> previousNearbyUsers = new LinkedList<String>(); /* * Find out current devices in the room */ this.nearbyUsersSemaphore.acquire(); if (!this.nearbyUsers.isEmpty()) { pre...
diff --git a/src/main/java/org/candlepin/resource/DistributorVersionResource.java b/src/main/java/org/candlepin/resource/DistributorVersionResource.java index 37d265274..4cfefdd37 100644 --- a/src/main/java/org/candlepin/resource/DistributorVersionResource.java +++ b/src/main/java/org/candlepin/resource/DistributorVers...
true
true
public DistributorVersion create(DistributorVersion dv, @Context Principal principal) { DistributorVersion existing = curator.findByName(dv.getName()); if (existing != null) { throw new BadRequestException( i18n.tr("A distributor version with name {0}" + ...
public DistributorVersion create(DistributorVersion dv, @Context Principal principal) { DistributorVersion existing = curator.findByName(dv.getName()); if (existing != null) { throw new BadRequestException( i18n.tr("A distributor version with name {0} " + ...
diff --git a/src/net/slipcor/pvparena/commands/PAG_Join.java b/src/net/slipcor/pvparena/commands/PAG_Join.java index 307ef265..e1fbfe97 100644 --- a/src/net/slipcor/pvparena/commands/PAG_Join.java +++ b/src/net/slipcor/pvparena/commands/PAG_Join.java @@ -1,71 +1,74 @@ package net.slipcor.pvparena.commands; import n...
false
true
public void commit(Arena arena, CommandSender sender, String[] args) { if (!this.hasPerms(sender, arena)) { return; } if (!this.argCountValid(sender, arena, args, new Integer[]{0,1})) { return; } if (!(sender instanceof Player)) { Arena.pmsg(sender, Language.parse(MSG.ERROR_ONLY_PLAYERS)); ...
public void commit(Arena arena, CommandSender sender, String[] args) { if (!this.hasPerms(sender, arena)) { return; } if (!this.argCountValid(sender, arena, args, new Integer[]{0,1})) { return; } if (!(sender instanceof Player)) { Arena.pmsg(sender, Language.parse(MSG.ERROR_ONLY_PLAYERS)); ...
diff --git a/backend/skynet_backend/src/main/java/toctep/skynet/backend/dal/dao/impl/mysql/UserDaoImpl.java b/backend/skynet_backend/src/main/java/toctep/skynet/backend/dal/dao/impl/mysql/UserDaoImpl.java index 4010c9c..8ac0358 100644 --- a/backend/skynet_backend/src/main/java/toctep/skynet/backend/dal/dao/impl/mysql/U...
true
true
public User selectUser(String name) { Connection conn = DaoConnectionImpl.getInstance().getConnection(); User user = null; Statement stmt = null; ResultSet rs = null; try { stmt = (Statement) conn.createStatement(); rs = stmt.executeQuery("SELECT name FROM twitter_user WHERE name = '" + name ...
public User selectUser(String name) { Connection conn = DaoConnectionImpl.getInstance().getConnection(); User user = null; Statement stmt = null; ResultSet rs = null; try { stmt = (Statement) conn.createStatement(); rs = stmt.executeQuery("SELECT name FROM twitter_user WHERE name = '" + name ...
diff --git a/syncronizer/src/org/sync/MainEntry.java b/syncronizer/src/org/sync/MainEntry.java index b35684e..1151009 100644 --- a/syncronizer/src/org/sync/MainEntry.java +++ b/syncronizer/src/org/sync/MainEntry.java @@ -1,197 +1,198 @@ /***************************************************************************** ...
true
true
public static void main(String[] args) { CmdLineParser parser = new CmdLineParser(); CmdLineParser.Option selectHost = parser.addStringOption('h', "host"); CmdLineParser.Option selectPort = parser.addIntegerOption('P', "port"); CmdLineParser.Option selectProject = parser.addStringOption('p', "project"); CmdL...
public static void main(String[] args) { CmdLineParser parser = new CmdLineParser(); CmdLineParser.Option selectHost = parser.addStringOption('h', "host"); CmdLineParser.Option selectPort = parser.addIntegerOption('P', "port"); CmdLineParser.Option selectProject = parser.addStringOption('p', "project"); CmdL...
diff --git a/AndroidRally/src/se/chalmers/dryleafsoftware/androidrally/controller/AIRobotController.java b/AndroidRally/src/se/chalmers/dryleafsoftware/androidrally/controller/AIRobotController.java index 2e1ae78..053fae2 100644 --- a/AndroidRally/src/se/chalmers/dryleafsoftware/androidrally/controller/AIRobotControlle...
false
true
private void placeCards() { if (chosenCards.size() == 5) { return; } boolean isRightDirection = false; for (Integer direction : getDirections()) { // Check if the robot stand in a correct direction if (this.direction == direction) { isRightDirection = true; } } if (isRightDirection) { if...
private void placeCards() { if (chosenCards.size() == 5) { return; } boolean isRightDirection = false; for (Integer direction : getDirections()) { // Check if the robot stand in a correct direction if (this.direction == direction.intValue()) { isRightDirection = true; } } if (isRightDirecti...
diff --git a/citations-impl/impl/src/java/org/sakaiproject/citation/impl/CitationListAccessServlet.java b/citations-impl/impl/src/java/org/sakaiproject/citation/impl/CitationListAccessServlet.java index 4c831e5..a8bb988 100644 --- a/citations-impl/impl/src/java/org/sakaiproject/citation/impl/CitationListAccessServlet.j...
true
true
protected void handleViewRequest(HttpServletRequest req, HttpServletResponse res, Reference ref) throws EntityPermissionException, EntityAccessOverloadException, EntityNotDefinedException { if(! ContentHostingService.allowGetResource(ref.getId())) { String user = ""; if(req.getUserPrincipal() != null) ...
protected void handleViewRequest(HttpServletRequest req, HttpServletResponse res, Reference ref) throws EntityPermissionException, EntityAccessOverloadException, EntityNotDefinedException { if(! ContentHostingService.allowGetResource(ref.getId())) { String user = ""; if(req.getUserPrincipal() != null) ...
diff --git a/application/src/main/java/org/mifos/customers/office/business/OfficeBO.java b/application/src/main/java/org/mifos/customers/office/business/OfficeBO.java index 673a20434..8d762e040 100644 --- a/application/src/main/java/org/mifos/customers/office/business/OfficeBO.java +++ b/application/src/main/java/org/m...
true
true
private OfficeBO(final UserContext userContext, final Short officeId, final OfficeLevel level, final OfficeBO parentOffice, final String searchId, final List<CustomFieldDto> customFields, final String officeName, final String shortName, final Address address, final OperationMode operationMod...
private OfficeBO(final UserContext userContext, final Short officeId, final OfficeLevel level, final OfficeBO parentOffice, final String searchId, final List<CustomFieldDto> customFields, final String officeName, final String shortName, final Address address, final OperationMode operationMod...
diff --git a/Server/VoiceServer.java b/Server/VoiceServer.java index f022aca..0ba4c4a 100644 --- a/Server/VoiceServer.java +++ b/Server/VoiceServer.java @@ -1,82 +1,81 @@ import java.util.*; import java.io.*; import java.net.*; public class VoiceServer implements Runnable { private int _port = 0; Arr...
false
true
public void run() { System.out.println("Voice Server started."); try { // create a socket for handling incoming requests DatagramSocket serverSocket = new DatagramSocket(_port); while(true) { // receive...
public void run() { System.out.println("Voice Server started."); try { // create a socket for handling incoming requests DatagramSocket serverSocket = new DatagramSocket(_port); while(true) { // receive...
diff --git a/JsTestDriver/src/com/google/jstestdriver/config/DefaultConfiguration.java b/JsTestDriver/src/com/google/jstestdriver/config/DefaultConfiguration.java index 5058fdf..d811020 100644 --- a/JsTestDriver/src/com/google/jstestdriver/config/DefaultConfiguration.java +++ b/JsTestDriver/src/com/google/jstestdriver/...
true
true
public String getServer(String flagValue, int port, HandlerPathPrefix handlerPrefix) { if (flagValue != null && !flagValue.isEmpty()) { return handlerPrefix.suffixServer(flagValue); } if (port == -1) { throw new RuntimeException("Oh Snap! No server defined!"); } return handlerPrefix.s...
public String getServer(String flagValue, int port, HandlerPathPrefix handlerPrefix) { if (flagValue != null && !flagValue.isEmpty()) { return handlerPrefix.suffixServer(flagValue); } if (port == -1) { throw new RuntimeException("Oh Snap! No server defined!"); } return handlerPrefix.s...
diff --git a/hibernate-entitymanager/src/main/java/org/hibernate/jpa/boot/scan/spi/AbstractScannerImpl.java b/hibernate-entitymanager/src/main/java/org/hibernate/jpa/boot/scan/spi/AbstractScannerImpl.java index da5af94f25..3d2c441370 100644 --- a/hibernate-entitymanager/src/main/java/org/hibernate/jpa/boot/scan/spi/Abs...
true
true
public ScanResult scan(PersistenceUnitDescriptor persistenceUnit, ScanOptions scanOptions) { final ResultCollector resultCollector = new ResultCollector( scanOptions ); if ( persistenceUnit.getJarFileUrls() != null ) { for ( URL url : persistenceUnit.getJarFileUrls() ) { final ArchiveDescriptor descriptor ...
public ScanResult scan(PersistenceUnitDescriptor persistenceUnit, ScanOptions scanOptions) { final ResultCollector resultCollector = new ResultCollector( scanOptions ); if ( persistenceUnit.getJarFileUrls() != null ) { for ( URL url : persistenceUnit.getJarFileUrls() ) { final ArchiveDescriptor descriptor ...
diff --git a/issues/jira/src/main/java/uk/org/sappho/code/heatmap/issues/jira/JiraService.java b/issues/jira/src/main/java/uk/org/sappho/code/heatmap/issues/jira/JiraService.java index a0ed733..6119ff1 100644 --- a/issues/jira/src/main/java/uk/org/sappho/code/heatmap/issues/jira/JiraService.java +++ b/issues/jira/src/m...
false
true
protected void getAllowedIssues() throws IssueManagementException { /** * note: this is a bit rubbish but because jira's soap interface doesn't have a getParent function it's the only way to fake it * making this better will require an installed plugin * **/ LOG.info("Get...
protected void getAllowedIssues() throws IssueManagementException { /** * note: this is a bit rubbish but because jira's soap interface doesn't have a getParent function it's the only way to fake it * making this better will require an installed plugin * **/ LOG.info("Get...
diff --git a/HBaseAdapter/src/main/java/com/nearinfinity/hbaseclient/ColumnInfo.java b/HBaseAdapter/src/main/java/com/nearinfinity/hbaseclient/ColumnInfo.java index c70d9cd8..735b0dbd 100644 --- a/HBaseAdapter/src/main/java/com/nearinfinity/hbaseclient/ColumnInfo.java +++ b/HBaseAdapter/src/main/java/com/nearinfinity/h...
true
true
public ColumnInfo(long id, String name, ColumnMetadata metadata) { this.id = id; this.name = name; this.metadata = new ColumnMetadata(); }
public ColumnInfo(long id, String name, ColumnMetadata metadata) { this.id = id; this.name = name; this.metadata = metadata; }
diff --git a/cadpageTest/src/net/anei/cadpage/parsers/PA/PANorthamptonCountyParserTest.java b/cadpageTest/src/net/anei/cadpage/parsers/PA/PANorthamptonCountyParserTest.java index 83e955fc9..b58ea9a78 100644 --- a/cadpageTest/src/net/anei/cadpage/parsers/PA/PANorthamptonCountyParserTest.java +++ b/cadpageTest/src/net/an...
true
true
public void testActive911() { doTest("T1", "[#8ICT Northampton County PA CAD] [e46]BLS >BASIC LIFE SUPPORT CALL 6303 HANOVERVILLE RD EAST ALLEN SARA HILBERT Map: Grids:0,0 Cad: 2012-0000098761\n" + "Sent by Northampton County Alert Network powered by Cooper Notification's Roam Secure Alert Netwo...
public void testActive911() { doTest("T1", "[#8ICT Northampton County PA CAD] [e46]BLS >BASIC LIFE SUPPORT CALL 6303 HANOVERVILLE RD EAST ALLEN SARA HILBERT Map: Grids:0,0 Cad: 2012-0000098761\n" + "Sent by Northampton County Alert Network powered by Cooper Notification's Roam Secure Alert Netwo...
diff --git a/src/main/java/net/dockter/infoguide/gui/GUIGuide.java b/src/main/java/net/dockter/infoguide/gui/GUIGuide.java index 38dc3e8..f58dae4 100644 --- a/src/main/java/net/dockter/infoguide/gui/GUIGuide.java +++ b/src/main/java/net/dockter/infoguide/gui/GUIGuide.java @@ -1,334 +1,334 @@ /** * This file is part ...
true
true
public GUIGuide(SpoutPlayer player) { super(); this.player = player; GenericLabel label = new GenericLabel(); label.setText(Main.getInstance().getConfig().getString("PromptTitle")); label.setAnchor(WidgetAnchor.CENTER_CENTER); label.shiftXPos(-35).shiftYPos(-122); label.setPriority(RenderPriority.Highes...
public GUIGuide(SpoutPlayer player) { super(); this.player = player; GenericLabel label = new GenericLabel(); label.setText(Main.getInstance().getConfig().getString("PromptTitle")); label.setAnchor(WidgetAnchor.CENTER_CENTER); label.shiftXPos(-35).shiftYPos(-122); label.setPriority(RenderPriority.Highes...
diff --git a/plugins/com.aptana.editor.erb/src/com/aptana/editor/erb/html/outline/RHTMLOutlineLabelProvider.java b/plugins/com.aptana.editor.erb/src/com/aptana/editor/erb/html/outline/RHTMLOutlineLabelProvider.java index 47bec58..73b0d48 100644 --- a/plugins/com.aptana.editor.erb/src/com/aptana/editor/erb/html/outline/...
true
true
private String getDisplayText(ERBScript script) { StringBuilder text = new StringBuilder(); text.append(script.getStartTag()); String source = fDocument.get(); // locates the ruby source IRubyScript ruby = script.getScript(); source = source.substring(ruby.getStartingOffset(), Math.min(ruby.getEndingOffse...
private String getDisplayText(ERBScript script) { StringBuilder text = new StringBuilder(); text.append(script.getStartTag()); String source = fDocument.get(); // locates the ruby source IRubyScript ruby = script.getScript(); source = source.substring(Math.max(ruby.getStartingOffset(), 0), Math.min(ru...
diff --git a/nuxeo-core-event/src/main/java/org/nuxeo/ecm/core/event/impl/ReconnectedEventBundleImpl.java b/nuxeo-core-event/src/main/java/org/nuxeo/ecm/core/event/impl/ReconnectedEventBundleImpl.java index a6905b99d..dcd0c22eb 100644 --- a/nuxeo-core-event/src/main/java/org/nuxeo/ecm/core/event/impl/ReconnectedEventBu...
true
true
protected List<Event> getReconnectedEvents() { if (reconnectedEvents == null) { reconnectedEvents = new ArrayList<Event>(); for (Event event : sourceEventBundle) { EventContext ctx = event.getContext(); CoreSession session = ctx.getRepositoryName() == ...
protected List<Event> getReconnectedEvents() { if (reconnectedEvents == null) { reconnectedEvents = new ArrayList<Event>(); for (Event event : sourceEventBundle) { EventContext ctx = event.getContext(); CoreSession session = ctx.getRepositoryName() == ...
diff --git a/src/kundera-cassandra/src/test/java/com/impetus/kundera/client/crud/inheritence/InheritenceDomainTest.java b/src/kundera-cassandra/src/test/java/com/impetus/kundera/client/crud/inheritence/InheritenceDomainTest.java index 7b3159c87..039823a12 100644 --- a/src/kundera-cassandra/src/test/java/com/impetus/kun...
true
true
private void assertRelation(EntityManager em) { List<SocialProfile> profiles = new ArrayList<SocialProfile>(); FacebookProfile fbprofile = new FacebookProfile(); fbprofile.setId(103l); fbprofile.setFacebookId("fb1"); fbprofile.setFacebookUser("facebook"); fbprofi...
private void assertRelation(EntityManager em) { List<SocialProfile> profiles = new ArrayList<SocialProfile>(); FacebookProfile fbprofile = new FacebookProfile(); fbprofile.setId(103l); fbprofile.setFacebookId("fb1"); fbprofile.setFacebookUser("facebook"); fbprofi...
diff --git a/src/com/modcrafting/diablodrops/items/Socket.java b/src/com/modcrafting/diablodrops/items/Socket.java index 3187064..2dffa42 100644 --- a/src/com/modcrafting/diablodrops/items/Socket.java +++ b/src/com/modcrafting/diablodrops/items/Socket.java @@ -1,69 +1,70 @@ package com.modcrafting.diablodrops.items; ...
true
true
public Socket(final Material mat) { super(mat); ChatColor color = null; switch (DiabloDrops.getInstance().gen.nextInt(3)) { case 1: color = ChatColor.RED; break; case 2: color = ChatColor.BLUE; ...
public Socket(final Material mat) { super(mat); ChatColor color = null; switch (DiabloDrops.getInstance().gen.nextInt(3)) { case 1: color = ChatColor.RED; break; case 2: color = ChatColor.BLUE; ...
diff --git a/commons/src/main/java/net/oauth/client/OAuthResponseMessage.java b/commons/src/main/java/net/oauth/client/OAuthResponseMessage.java index 71e7473..5e0c8f4 100644 --- a/commons/src/main/java/net/oauth/client/OAuthResponseMessage.java +++ b/commons/src/main/java/net/oauth/client/OAuthResponseMessage.java @@ ...
true
true
public OAuthProblemException toOAuthProblemException() throws IOException { OAuthProblemException problem = new OAuthProblemException(); try { getParameters(); // decode the response body } catch (IOException ignored) { } problem.getParameters().putAll(getDump());...
public OAuthProblemException toOAuthProblemException() throws IOException { OAuthProblemException problem = new OAuthProblemException(); try { getParameters(); // decode the response body } catch (IOException ignored) { } catch (IllegalArgumentException ignored) { ...
diff --git a/jboss-as7/extension/src/main/java/org/switchyard/as7/extension/admin/SwitchYardSubsystemUpdateThrottling.java b/jboss-as7/extension/src/main/java/org/switchyard/as7/extension/admin/SwitchYardSubsystemUpdateThrottling.java index 7362a83..8ecbb4b 100644 --- a/jboss-as7/extension/src/main/java/org/switchyard/...
true
true
public void execute(final OperationContext context, final ModelNode operation) throws OperationFailedException { context.addStep(new OperationStepHandler() { @Override public void execute(final OperationContext context, final ModelNode operation) throws Operation...
public void execute(final OperationContext context, final ModelNode operation) throws OperationFailedException { context.addStep(new OperationStepHandler() { @Override public void execute(final OperationContext context, final ModelNode operation) throws Operation...
diff --git a/src/main/java/com/ripariandata/timberwolf/exchange/SyncFolderItemIterator.java b/src/main/java/com/ripariandata/timberwolf/exchange/SyncFolderItemIterator.java index f126833..32d221f 100644 --- a/src/main/java/com/ripariandata/timberwolf/exchange/SyncFolderItemIterator.java +++ b/src/main/java/com/riparian...
true
true
protected Iterator<MailboxItem> createIterator() { try { if (syncState == null) { // if this is the first run, just get the stored sync state syncState = folder.getSyncStateToken(); } else { ...
protected Iterator<MailboxItem> createIterator() { try { if (syncState == null) { // if this is the first run, just get the stored sync state syncState = folder.getSyncStateToken(); } else { ...
diff --git a/android-app/RPInfo/src/org/rpi/rpinfo/DetailedView/DetailedViewActivity.java b/android-app/RPInfo/src/org/rpi/rpinfo/DetailedView/DetailedViewActivity.java index cf43f44..2d72135 100644 --- a/android-app/RPInfo/src/org/rpi/rpinfo/DetailedView/DetailedViewActivity.java +++ b/android-app/RPInfo/src/org/rpi/r...
true
true
protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.detailed_data_view); Bundle b = getIntent().getExtras(); if( b == null ){ finish(); } //Extract the selected person from the intent PersonModel selectedPerson = (PersonModel)b.getS...
protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.detailed_data_view); Bundle b = getIntent().getExtras(); if( b == null ){ finish(); } //Extract the selected person from the intent PersonModel selectedPerson = (PersonModel)b.getS...
diff --git a/cube-client-core/src/main/java/ch/admin/vbs/cube/core/vm/ctrtasks/Start.java b/cube-client-core/src/main/java/ch/admin/vbs/cube/core/vm/ctrtasks/Start.java index 03925f6..8028263 100644 --- a/cube-client-core/src/main/java/ch/admin/vbs/cube/core/vm/ctrtasks/Start.java +++ b/cube-client-core/src/main/java/c...
false
true
public void run() { EncryptionKey vmKey = null; EncryptionKey rtKey = null; try { Chronos c = new Chronos(); vmModel.fireVmStateUpdatedEvent(vm); c.zap("fireVmStateUpdateEvent()"); // set temporary status ctrl.setTempStatus(vm, VmState.STARTING); // vm.setProgressMessage(I18nBundleProvider.g...
public void run() { EncryptionKey vmKey = null; EncryptionKey rtKey = null; try { Chronos c = new Chronos(); vmModel.fireVmStateUpdatedEvent(vm); c.zap("fireVmStateUpdateEvent()"); // set temporary status ctrl.setTempStatus(vm, VmState.STARTING); // vm.setProgressMessage(I18nBundleProvider.g...
diff --git a/src/com/android/gallery3d/app/AbstractGalleryActivity.java b/src/com/android/gallery3d/app/AbstractGalleryActivity.java index f674c0b..144485d 100644 --- a/src/com/android/gallery3d/app/AbstractGalleryActivity.java +++ b/src/com/android/gallery3d/app/AbstractGalleryActivity.java @@ -1,269 +1,269 @@ /* *...
true
true
protected void onStart() { super.onStart(); if (getExternalCacheDir() == null) { OnCancelListener onCancel = new OnCancelListener() { @Override public void onCancel(DialogInterface dialog) { finish(); } }; ...
protected void onStart() { super.onStart(); if (getExternalCacheDir() == null) { OnCancelListener onCancel = new OnCancelListener() { @Override public void onCancel(DialogInterface dialog) { finish(); } }; ...
diff --git a/flexodesktop/model/flexoutils/src/test/java/org/openflexo/antar/binding/TestBinding.java b/flexodesktop/model/flexoutils/src/test/java/org/openflexo/antar/binding/TestBinding.java index 6a4fce307..d2844c666 100644 --- a/flexodesktop/model/flexoutils/src/test/java/org/openflexo/antar/binding/TestBinding.jav...
true
true
public static void genericTest(String bindingPath, Type expectedType, Object expectedResult) { System.out.println("Evaluate " + bindingPath); AbstractBinding binding = BINDING_FACTORY.convertFromString(bindingPath); binding.setBindingDefinition(new BindingDefinition("test", expectedType, BindingDefinitionType....
public static void genericTest(String bindingPath, Type expectedType, Object expectedResult) { System.out.println("Evaluate " + bindingPath); AbstractBinding binding = BINDING_FACTORY.convertFromString(bindingPath, BINDING_CONTEXT); binding.setBindingDefinition(new BindingDefinition("test", expectedType, Bindi...
diff --git a/jetty-http/src/main/java/org/eclipse/jetty/http/AbstractGenerator.java b/jetty-http/src/main/java/org/eclipse/jetty/http/AbstractGenerator.java index 15d680df0..7d42a27d7 100644 --- a/jetty-http/src/main/java/org/eclipse/jetty/http/AbstractGenerator.java +++ b/jetty-http/src/main/java/org/eclipse/jetty/htt...
true
true
public void reset(boolean returnBuffers) { _state = STATE_HEADER; _status = 0; _version = HttpVersions.HTTP_1_1_ORDINAL; _reason = null; _last = false; _head = false; _noContent=false; _persistent = true; _contentWritten = 0; _conte...
public void reset(boolean returnBuffers) { _state = STATE_HEADER; _status = 0; _version = HttpVersions.HTTP_1_1_ORDINAL; _reason = null; _last = false; _head = false; _noContent=false; _persistent = null; _contentWritten = 0; _conte...
diff --git a/enabler/src/com/openxc/enabler/preferences/NetworkSourcePreferenceManager.java b/enabler/src/com/openxc/enabler/preferences/NetworkSourcePreferenceManager.java index 79b2cfa3..f71b8498 100644 --- a/enabler/src/com/openxc/enabler/preferences/NetworkSourcePreferenceManager.java +++ b/enabler/src/com/openxc/e...
false
true
private void setNetworkSourceStatus(boolean enabled) { Log.i(TAG, "Setting network data source to " + enabled); if(enabled) { String address = getPreferenceString(R.string.network_host_key); if(!NetworkVehicleDataSource.validateAddress(address)) { String erro...
private void setNetworkSourceStatus(boolean enabled) { Log.i(TAG, "Setting network data source to " + enabled); if(enabled) { String address = getPreferenceString(R.string.network_host_key); if(!NetworkVehicleDataSource.validateAddress(address)) { String erro...
diff --git a/src/main/java/org/sandag/abm/accessibilities/SkimsAppender.java b/src/main/java/org/sandag/abm/accessibilities/SkimsAppender.java index 266aa84f..187e3a38 100644 --- a/src/main/java/org/sandag/abm/accessibilities/SkimsAppender.java +++ b/src/main/java/org/sandag/abm/accessibilities/SkimsAppender.java @@ -1...
false
true
private void runSkimsAppender(ResourceBundle rb) { HashMap<String, String> rbMap = ResourceUtil.changeResourceBundleIntoHashMap(rb); // instantiate these objects right away TazDataManager tazs = TazDataManager.getInstance(rbMap); MgraDataManager mgraManager = MgraDataManager.ge...
private void runSkimsAppender(ResourceBundle rb) { HashMap<String, String> rbMap = ResourceUtil.changeResourceBundleIntoHashMap(rb); // instantiate these objects right away TazDataManager tazs = TazDataManager.getInstance(rbMap); MgraDataManager mgraManager = MgraDataManager.ge...
diff --git a/src/test/java/org/apache/commons/logging/security/MockSecurityManager.java b/src/test/java/org/apache/commons/logging/security/MockSecurityManager.java index d9620f5..462c26e 100644 --- a/src/test/java/org/apache/commons/logging/security/MockSecurityManager.java +++ b/src/test/java/org/apache/commons/loggi...
true
true
public void checkPermission(Permission p) throws SecurityException { if (setSecurityManagerPerm.implies(p)) { // ok, allow this; we don't want to block any calls to setSecurityManager // otherwise this custom security manager cannot be reset to the original. // System.out...
public void checkPermission(Permission p) throws SecurityException { if (setSecurityManagerPerm.implies(p)) { // ok, allow this; we don't want to block any calls to setSecurityManager // otherwise this custom security manager cannot be reset to the original. // System.out...
diff --git a/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasks/ui/planner/DateSelectionDialog.java b/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasks/ui/planner/DateSelectionDialog.java index 813f8a05e..425e08a4b 100644 --- a/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasks/u...
true
true
protected Control createDialogArea(Composite parent) { getShell().setText(title); DatePickerPanel datePanel = new DatePickerPanel(parent, SWT.NULL, initialCalendar); datePanel.addSelectionChangedListener(new ISelectionChangedListener() { public void selectionChanged(SelectionChangedEvent event) { if (!...
protected Control createDialogArea(Composite parent) { getShell().setText(title); DatePickerPanel datePanel = new DatePickerPanel(parent, SWT.NULL, initialCalendar); datePanel.addSelectionChangedListener(new ISelectionChangedListener() { public void selectionChanged(SelectionChangedEvent event) { if (!...
diff --git a/src/com/android/providers/contacts/ContactsProvider2.java b/src/com/android/providers/contacts/ContactsProvider2.java index 331c1a3f..a56021e4 100644 --- a/src/com/android/providers/contacts/ContactsProvider2.java +++ b/src/com/android/providers/contacts/ContactsProvider2.java @@ -1,7988 +1,7993 @@ /* *...
true
true
protected Cursor queryLocal(Uri uri, String[] projection, String selection, String[] selectionArgs, String sortOrder, long directoryId) { if (VERBOSE_LOGGING) { Log.v(TAG, "query: " + uri); } // Default active DB to the contacts DB if none has been set. if (m...
protected Cursor queryLocal(Uri uri, String[] projection, String selection, String[] selectionArgs, String sortOrder, long directoryId) { if (VERBOSE_LOGGING) { Log.v(TAG, "query: " + uri); } // Default active DB to the contacts DB if none has been set. if (m...
diff --git a/dotnet/sonar/sonar-plugin-dotnet-cpd/src/main/java/org/sonar/plugin/dotnet/cpd/DotnetCpdPlugin.java b/dotnet/sonar/sonar-plugin-dotnet-cpd/src/main/java/org/sonar/plugin/dotnet/cpd/DotnetCpdPlugin.java index fab9c2905..706cba983 100644 --- a/dotnet/sonar/sonar-plugin-dotnet-cpd/src/main/java/org/sonar/plug...
true
true
public List<Class<? extends Extension>> getExtensions() { List<Class<? extends Extension>> list = new ArrayList<Class<? extends Extension>>(); list.add(CpdSensor.class); list.add(SumDuplicationsDecorator.class); list.add(DuplicationDensityDecorator.class); list.add(CsCpdMapping.class); return list; }
public List<Class<? extends Extension>> getExtensions() { List<Class<? extends Extension>> list = new ArrayList<Class<? extends Extension>>(); list.add(CpdSensor.class); //list.add(SumDuplicationsDecorator.class); //list.add(DuplicationDensityDecorator.class); //list.add(CsCpdMapping.class); return list;...
diff --git a/src/framework/java/com/flexive/shared/FxContext.java b/src/framework/java/com/flexive/shared/FxContext.java index 6b50db9d..99dfe368 100644 --- a/src/framework/java/com/flexive/shared/FxContext.java +++ b/src/framework/java/com/flexive/shared/FxContext.java @@ -1,826 +1,826 @@ /***************************...
true
true
public static FxContext storeInfos(HttpServletRequest request, boolean dynamicContent, int divisionId, boolean isWebdav) { FxContext si = new FxContext(request, divisionId, isWebdav); // Set basic informations needed for the user ticket retrieval info.set(si); // Do user ticket retri...
public static FxContext storeInfos(HttpServletRequest request, boolean dynamicContent, int divisionId, boolean isWebdav) { FxContext si = new FxContext(request, divisionId, isWebdav); // Set basic informations needed for the user ticket retrieval info.set(si); // Do user ticket retri...
diff --git a/fstcomp/composer/rules/rtcomp/c/CRuntimeFeatureSelection.java b/fstcomp/composer/rules/rtcomp/c/CRuntimeFeatureSelection.java index a6702e98b..57f43533a 100644 --- a/fstcomp/composer/rules/rtcomp/c/CRuntimeFeatureSelection.java +++ b/fstcomp/composer/rules/rtcomp/c/CRuntimeFeatureSelection.java @@ -1,183 +...
false
true
public void processRestrictions() { Scanner scanner = null; try { scanner = new Scanner(cnfFile); } catch (FileNotFoundException e) { System.out.println("model restrictions file not found!"); System.out.println("looked in: " + cnfFile); throw new RuntimeException(); } scanner.useDelimiter("\\...
public void processRestrictions() { Scanner scanner = null; try { scanner = new Scanner(cnfFile); } catch (FileNotFoundException e) { System.out.println("model restrictions file not found!"); System.out.println("looked in: " + cnfFile); throw new RuntimeException(); } scanner.useDelimiter("\\...
diff --git a/kundera-core/src/main/java/com/impetus/kundera/lifecycle/states/ManagedState.java b/kundera-core/src/main/java/com/impetus/kundera/lifecycle/states/ManagedState.java index 0569c5e83..0b19008e5 100644 --- a/kundera-core/src/main/java/com/impetus/kundera/lifecycle/states/ManagedState.java +++ b/kundera-core/...
false
true
public void handleFind(NodeStateContext nodeStateContext) { //Fetch Node data from Client Client client = nodeStateContext.getClient(); Class<?> nodeDataClass = nodeStateContext.getDataClass(); EntityMetadata entityMetadata = KunderaMetadataManager.getEntityMetadata(nodeDataClass...
public void handleFind(NodeStateContext nodeStateContext) { //Fetch Node data from Client Client client = nodeStateContext.getClient(); Class<?> nodeDataClass = nodeStateContext.getDataClass(); EntityMetadata entityMetadata = KunderaMetadataManager.getEntityMetadata(nodeDataClass...
diff --git a/src/so/sauru/sr_gallery/OrganizeActivity.java b/src/so/sauru/sr_gallery/OrganizeActivity.java index ed929f4..39db529 100644 --- a/src/so/sauru/sr_gallery/OrganizeActivity.java +++ b/src/so/sauru/sr_gallery/OrganizeActivity.java @@ -1,408 +1,410 @@ package so.sauru.sr_gallery; import java.io.File; impo...
true
true
public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) { View rV = inflater.inflate(R.layout.fragment_gallorg_file, container, false); EditText etUri = (EditText) rV.findViewById(R.id.go_file_uri_value); EditText etPath = (EditText) rV.findViewById(R.id.go_...
public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) { View rV = inflater.inflate(R.layout.fragment_gallorg_file, container, false); EditText etUri = (EditText) rV.findViewById(R.id.go_file_uri_value); EditText etPath = (EditText) rV.findViewById(R.id.go_...
diff --git a/src/org/gridlab/gridsphere/provider/portletui/beans/FileInputBean.java b/src/org/gridlab/gridsphere/provider/portletui/beans/FileInputBean.java index ef9474a2a..2a5e7cd7e 100644 --- a/src/org/gridlab/gridsphere/provider/portletui/beans/FileInputBean.java +++ b/src/org/gridlab/gridsphere/provider/portletui/...
true
true
public void saveFile(String filePath) throws IOException { if (!filePath.endsWith("/")) filePath += "/"; File file = new File(filePath); try { if (!file.exists()) file.createNewFile(); if (savedFileItem != null) savedFileItem.write(file); } catch (Exception...
public void saveFile(String filePath) throws IOException { String pathChar = File.separator; if (!filePath.endsWith(pathChar)) filePath += pathChar; File file = new File(filePath); try { if (!file.exists()) file.createNewFile(); if (savedFileItem != null) s...
diff --git a/src/net/sf/freecol/client/gui/panel/NegotiationDialog.java b/src/net/sf/freecol/client/gui/panel/NegotiationDialog.java index 14a417596..036505e1b 100644 --- a/src/net/sf/freecol/client/gui/panel/NegotiationDialog.java +++ b/src/net/sf/freecol/client/gui/panel/NegotiationDialog.java @@ -1,744 +1,744 @@ /*...
true
true
public void initialize() { int foreignGold = 0; Element report = getCanvas().getClient().getInGameController().getForeignAffairsReport(); int number = report.getChildNodes().getLength(); for (int i = 0; i < number; i++) { Element enemyElement = (Element) report.getChildN...
public void initialize() { int foreignGold = 0; Element report = getCanvas().getClient().getInGameController().getForeignAffairsReport(); int number = report.getChildNodes().getLength(); for (int i = 0; i < number; i++) { Element enemyElement = (Element) report.getChildN...
diff --git a/shell/src/main/java/org/jboss/seam/forge/shell/plugins/builtin/NewProjectPlugin.java b/shell/src/main/java/org/jboss/seam/forge/shell/plugins/builtin/NewProjectPlugin.java index 5f822d5c..a93f108e 100644 --- a/shell/src/main/java/org/jboss/seam/forge/shell/plugins/builtin/NewProjectPlugin.java +++ b/shell/...
true
true
public void create( @Option(name = "named", description = "The name of the new project", required = true) final String name, @Option(name = "topLevelPackage", description = "The top level package for your Java source files [e.g: \...
public void create( @Option(name = "named", description = "The name of the new project", required = true) final String name, @Option(name = "topLevelPackage", description = "The top level package for your Java source files [e.g: \...
diff --git a/jetty-osgi/jetty-osgi-boot/src/main/java/org/eclipse/jetty/osgi/boot/internal/webapp/WebappRegistrationHelper.java b/jetty-osgi/jetty-osgi-boot/src/main/java/org/eclipse/jetty/osgi/boot/internal/webapp/WebappRegistrationHelper.java index ca6fa6cb..090b3e49 100644 --- a/jetty-osgi/jetty-osgi-boot/src/main/j...
true
true
public void setup(BundleContext context, Map<String, String> configProperties) throws Exception { Enumeration<?> enUrls = context.getBundle().findEntries("/etc", "jetty.xml", false); if (enUrls != null && enUrls.hasMoreElements()) { URL url = (URL) enUrls.nextElement(); if (url != nul...
public void setup(BundleContext context, Map<String, String> configProperties) throws Exception { Enumeration<?> enUrls = context.getBundle().findEntries("/etc", "jetty.xml", false); if (enUrls != null && enUrls.hasMoreElements()) { URL url = (URL) enUrls.nextElement(); if (url != nul...
diff --git a/src/main/java/com/typesafe/config/impl/ConfigUtil.java b/src/main/java/com/typesafe/config/impl/ConfigUtil.java index 65ae09a..fff540e 100644 --- a/src/main/java/com/typesafe/config/impl/ConfigUtil.java +++ b/src/main/java/com/typesafe/config/impl/ConfigUtil.java @@ -1,118 +1,118 @@ package com.typesafe.c...
false
true
public static String unicodeTrim(String s) { // this is dumb because it looks like there aren't any whitespace // characters that need surrogate encoding. But, points for // pedantic correctness! It's future-proof or something. // String.trim() actually is broken, since there are ple...
public static String unicodeTrim(String s) { // this is dumb because it looks like there aren't any whitespace // characters that need surrogate encoding. But, points for // pedantic correctness! It's future-proof or something. // String.trim() actually is broken, since there are ple...
diff --git a/src/jpcsp/graphics/RE/software/RendererTemplate.java b/src/jpcsp/graphics/RE/software/RendererTemplate.java index acf7c913..b240a3ef 100644 --- a/src/jpcsp/graphics/RE/software/RendererTemplate.java +++ b/src/jpcsp/graphics/RE/software/RendererTemplate.java @@ -1,1574 +1,1575 @@ /* This file is part of j...
true
true
private static void doRender(final BasePrimitiveRenderer renderer) { final PixelState pixel = renderer.pixel; final PrimitiveState prim = renderer.prim; final IRendererWriter rendererWriter = renderer.rendererWriter; final IRandomTextureAccess textureAccess = renderer.textureAccess; doRenderStart(renderer);...
private static void doRender(final BasePrimitiveRenderer renderer) { final PixelState pixel = renderer.pixel; final PrimitiveState prim = renderer.prim; final IRendererWriter rendererWriter = renderer.rendererWriter; final IRandomTextureAccess textureAccess = renderer.textureAccess; doRenderStart(renderer);...
diff --git a/src/rpisdd/rpgme/gamelogic/quests/DateHelper.java b/src/rpisdd/rpgme/gamelogic/quests/DateHelper.java index 11697a0..d823700 100644 --- a/src/rpisdd/rpgme/gamelogic/quests/DateHelper.java +++ b/src/rpisdd/rpgme/gamelogic/quests/DateHelper.java @@ -1,47 +1,47 @@ package rpisdd.rpgme.gamelogic.quests; im...
true
true
public static String formatDate(DateTime date) { String formatDate = DateTimeFormat.forPattern("M/d/Y 'at' h:m a") .print(date); return formatDate; }
public static String formatDate(DateTime date) { String formatDate = DateTimeFormat.forPattern("M/d/Y 'at' h:mm a") .print(date); return formatDate; }
diff --git a/dspace-jspui/dspace-jspui-api/src/main/java/org/dspace/app/webui/servlet/admin/MetadataFieldRegistryServlet.java b/dspace-jspui/dspace-jspui-api/src/main/java/org/dspace/app/webui/servlet/admin/MetadataFieldRegistryServlet.java index e3cf6bfea..bd8f6ab61 100644 --- a/dspace-jspui/dspace-jspui-api/src/main/...
true
true
protected void doDSPost(Context context, HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException, SQLException, AuthorizeException { String button = UIUtil.getSubmitButton(request, "submit"); int schemaID = getSchemaID(request); ...
protected void doDSPost(Context context, HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException, SQLException, AuthorizeException { String button = UIUtil.getSubmitButton(request, "submit"); int schemaID = getSchemaID(request); ...
diff --git a/fingerpaint/src/nl/tue/fingerpaint/client/gui/CustomTreeModel.java b/fingerpaint/src/nl/tue/fingerpaint/client/gui/CustomTreeModel.java index e752f85..dde5a33 100644 --- a/fingerpaint/src/nl/tue/fingerpaint/client/gui/CustomTreeModel.java +++ b/fingerpaint/src/nl/tue/fingerpaint/client/gui/CustomTreeModel....
true
true
private void createMixingWidgets() { // Initialise a listener for when a new step is entered to the // protocol StepAddedListener l = new StepAddedListener() { @Override public void onStepAdded(MixingStep step) { addStep(step); } }; as.getGeometry().addStepAddedListener(l); // Initialise the ...
private void createMixingWidgets() { // Initialise a listener for when a new step is entered to the // protocol StepAddedListener l = new StepAddedListener() { @Override public void onStepAdded(MixingStep step) { addStep(step); } }; as.getGeometry().addStepAddedListener(l); // Initialise the ...
diff --git a/Model/src/java/fr/cg95/cvq/dao/request/hibernate/RequestActionDAO.java b/Model/src/java/fr/cg95/cvq/dao/request/hibernate/RequestActionDAO.java index 4abe9c08c..bbae764d0 100644 --- a/Model/src/java/fr/cg95/cvq/dao/request/hibernate/RequestActionDAO.java +++ b/Model/src/java/fr/cg95/cvq/dao/request/hiberna...
true
true
public boolean hasAction(final Long requestId, final RequestActionType type) { return !BigInteger.ZERO.equals(HibernateUtil.getSession() .createQuery("select count(*) from RequestAction where request_id = :requestId and type = :type") .setLong("requestId", requestId).setString("t...
public boolean hasAction(final Long requestId, final RequestActionType type) { return !Long.valueOf(0).equals(HibernateUtil.getSession() .createQuery("select count(*) from RequestAction where request_id = :requestId and type = :type") .setLong("requestId", requestId).setString("t...
diff --git a/src/main/java/com/google/gwtexpui/clippy/client/CopyableLabel.java b/src/main/java/com/google/gwtexpui/clippy/client/CopyableLabel.java index e2e91ed74..1beee4c86 100644 --- a/src/main/java/com/google/gwtexpui/clippy/client/CopyableLabel.java +++ b/src/main/java/com/google/gwtexpui/clippy/client/CopyableLa...
true
true
private void showTextBox() { if (textBox == null) { textBox = new TextBox(); textBox.setText(getText()); textBox.setVisibleLength(visibleLen); textBox.addKeyPressHandler(new KeyPressHandler() { @Override public void onKeyPress(final KeyPressEvent event) { if (even...
private void showTextBox() { if (textBox == null) { textBox = new TextBox(); textBox.setText(getText()); textBox.setVisibleLength(visibleLen); textBox.addKeyPressHandler(new KeyPressHandler() { @Override public void onKeyPress(final KeyPressEvent event) { if (even...
diff --git a/podd-webapp-lib/src/main/java/com/github/podd/impl/purl/PoddPurlManagerImpl.java b/podd-webapp-lib/src/main/java/com/github/podd/impl/purl/PoddPurlManagerImpl.java index 9c7f3e6b..fb1c233b 100644 --- a/podd-webapp-lib/src/main/java/com/github/podd/impl/purl/PoddPurlManagerImpl.java +++ b/podd-webapp-lib/sr...
false
true
public Set<PoddPurlReference> extractPurlReferences(final URI parentUri, final RepositoryConnection repositoryConnection, final URI... contexts) throws PurlProcessorNotHandledException, RepositoryException { final Set<PoddPurlReference> internalPurlResults = Collectio...
public Set<PoddPurlReference> extractPurlReferences(final URI parentUri, final RepositoryConnection repositoryConnection, final URI... contexts) throws PurlProcessorNotHandledException, RepositoryException { final Set<PoddPurlReference> internalPurlResults = Collectio...
diff --git a/osmdroid-third-party/src/main/java/org/osmdroid/google/wrapper/v2/OsmdroidMapWrapper.java b/osmdroid-third-party/src/main/java/org/osmdroid/google/wrapper/v2/OsmdroidMapWrapper.java index a5df285..9a12665 100644 --- a/osmdroid-third-party/src/main/java/org/osmdroid/google/wrapper/v2/OsmdroidMapWrapper.java...
true
true
public void addMarker(final Marker aMarker) { if (mItemizedOverlay == null) { // XXX this is a bit cumbersome. Maybe we should just do a simple ItemizedIconOverlay with null listener mItemizedOverlay = new ItemizedOverlayWithFocus<OverlayItem>(new ArrayList<OverlayItem>(), new ItemizedIconOverlay.OnItemGesture...
public void addMarker(final Marker aMarker) { if (mItemizedOverlay == null) { // XXX this is a bit cumbersome. Maybe we should just do a simple ItemizedIconOverlay with null listener mItemizedOverlay = new ItemizedOverlayWithFocus<OverlayItem>(new ArrayList<OverlayItem>(), new ItemizedIconOverlay.OnItemGesture...
diff --git a/src/main/java/com/gimranov/zandy/app/task/APIRequest.java b/src/main/java/com/gimranov/zandy/app/task/APIRequest.java index 920c3c2..23aebb7 100644 --- a/src/main/java/com/gimranov/zandy/app/task/APIRequest.java +++ b/src/main/java/com/gimranov/zandy/app/task/APIRequest.java @@ -1,1239 +1,1239 @@ /*******...
true
true
public void issue(Database db, ServerCredentials cred) throws APIException { URI uri; // Add the API key, if missing and we have it if (!query.contains("key=") && key != null) { String suffix = (query.contains("?")) ? "&key="+key : "?key="+key; query = query + suffix; } // Force lower-case method ...
public void issue(Database db, ServerCredentials cred) throws APIException { URI uri; // Add the API key, if missing and we have it if (!query.contains("key=") && key != null) { String suffix = (query.contains("?")) ? "&key="+key : "?key="+key; query = query + suffix; } // Force lower-case method ...
diff --git a/Player.java b/Player.java index 27672bf..78b06b4 100644 --- a/Player.java +++ b/Player.java @@ -1,388 +1,388 @@ import java.awt.*; import java.awt.event.KeyEvent; import java.util.*; public class Player extends Shape { static final int WIDTH = 30; static final int HEIGHT = 30; int x = Volfied.B...
false
true
public void attack(int keyCode) { switch (keyCode) { case KeyEvent.VK_UP: if (isValidAttack(keyCode) && isAttacking) { if (first_time) { this.trail.add(new Point(this.x, this.y)); first_time = false; } if (this.y - this.pase < 0) this.y = 0; else this.y -= this.pas...
public void attack(int keyCode) { switch (keyCode) { case KeyEvent.VK_UP: if (isValidAttack(keyCode) && isAttacking) { if (first_time) { this.trail.add(new Point(this.x, this.y)); first_time = false; } if (this.y - this.pase < 0) this.y = 0; else this.y -= this.pas...
diff --git a/TheatreProjectWeb/src/theatreProject/client/AdminInventory.java b/TheatreProjectWeb/src/theatreProject/client/AdminInventory.java index 89a5a5d..0b542b1 100644 --- a/TheatreProjectWeb/src/theatreProject/client/AdminInventory.java +++ b/TheatreProjectWeb/src/theatreProject/client/AdminInventory.java @@ -1,2...
true
true
public static void adminOnlyInventory(final String ID){ final TextArea txtDescription = new TextArea(); final TextArea txtDisclaimers = new TextArea(); final TextBox txtShowDate = new TextBox(); final TextBox txtLocation = new TextBox(); final TextBox lblStatus = new TextBox(); final TextBox txtbxEmailAd...
public static void adminOnlyInventory(final String ID){ final TextArea txtDescription = new TextArea(); final TextArea txtDisclaimers = new TextArea(); final TextBox txtShowDate = new TextBox(); final TextBox txtLocation = new TextBox(); final TextBox lblStatus = new TextBox(); final TextBox txtbxEmailAd...
diff --git a/src/org/mozilla/javascript/DToA.java b/src/org/mozilla/javascript/DToA.java index 732898c4..b4ae3fdb 100644 --- a/src/org/mozilla/javascript/DToA.java +++ b/src/org/mozilla/javascript/DToA.java @@ -1,1260 +1,1262 @@ /* -*- Mode: java; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 4 -*- * * ****...
true
true
static int JS_dtoa(double d, int mode, boolean biasUp, int ndigits, boolean[] sign, StringBuilder buf) { /* Arguments ndigits, decpt, sign are similar to those of ecvt and fcvt; trailing zeros are suppressed from the returned string. If not null, *rve is...
static int JS_dtoa(double d, int mode, boolean biasUp, int ndigits, boolean[] sign, StringBuilder buf) { /* Arguments ndigits, decpt, sign are similar to those of ecvt and fcvt; trailing zeros are suppressed from the returned string. If not null, *rve is...
diff --git a/demos/pax-britannica/pax-britannica/src/de/swagner/paxbritannica/Ship.java b/demos/pax-britannica/pax-britannica/src/de/swagner/paxbritannica/Ship.java index 6afec21eb..d7ce097dd 100644 --- a/demos/pax-britannica/pax-britannica/src/de/swagner/paxbritannica/Ship.java +++ b/demos/pax-britannica/pax-britannic...
true
true
public void draw(Batch batch) { delta = Math.min(0.06f, Gdx.graphics.getDeltaTime()); aliveTime += delta; collisionPoints.get(0).set( this.getVertices()[0], this.getVertices()[1]); collisionPoints.get(1).set( this.getVertices()[5], this.getVertices()[6]); collisionPoints.get(2).set( this.getVertices()[10]...
public void draw(Batch batch) { delta = Math.min(0.06f, Gdx.graphics.getDeltaTime()); aliveTime += delta; collisionPoints.get(0).set( this.getVertices()[0], this.getVertices()[1]); collisionPoints.get(1).set( this.getVertices()[5], this.getVertices()[6]); collisionPoints.get(2).set( this.getVertices()[10]...
diff --git a/gwt-client/src/main/java/org/mule/galaxy/web/client/SessionKilledDialog.java b/gwt-client/src/main/java/org/mule/galaxy/web/client/SessionKilledDialog.java index 88eb0bab..17812d7f 100644 --- a/gwt-client/src/main/java/org/mule/galaxy/web/client/SessionKilledDialog.java +++ b/gwt-client/src/main/java/org/m...
true
true
public SessionKilledDialog(final Galaxy galaxy, final HeartbeatTimer timer) { heartbeatTimer = timer; setText("Connection Terminated by Server"); setStyleName("sessionKilledDialogBox"); loginNowBtn = new Button("Login Now"); //loginNowBtn.setTitle("Ignore and try to login n...
public SessionKilledDialog(final Galaxy galaxy, final HeartbeatTimer timer) { heartbeatTimer = timer; setText("Connection Terminated by Server"); setStyleName("sessionKilledDialogBox"); loginNowBtn = new Button("Login Now"); //loginNowBtn.setTitle("Ignore and try to login n...
diff --git a/src/org/proofpad/Acl2Parser.java b/src/org/proofpad/Acl2Parser.java index 5c0b384..1dc032c 100644 --- a/src/org/proofpad/Acl2Parser.java +++ b/src/org/proofpad/Acl2Parser.java @@ -1,684 +1,686 @@ package org.proofpad; import java.awt.Color; import java.io.File; import java.io.FileNotFoundException; ...
true
true
public ParseResult parse(RSyntaxDocument doc, String style /* ignored */) { DefaultParseResult result = new DefaultParseResult(this); int lines = doc.getDefaultRootElement().getElementCount(); result.setParsedLines(0, lines); functions = new HashSet<String>(); macros = new HashSet<String>(Arrays.asList(new S...
public ParseResult parse(RSyntaxDocument doc, String style /* ignored */) { DefaultParseResult result = new DefaultParseResult(this); int lines = doc.getDefaultRootElement().getElementCount(); result.setParsedLines(0, lines); functions = new HashSet<String>(); macros = new HashSet<String>(Arrays.asList(new S...
diff --git a/EventManagmentSystem/src/GUI/CommitteePanel.java b/EventManagmentSystem/src/GUI/CommitteePanel.java index 0fe997c..495c701 100644 --- a/EventManagmentSystem/src/GUI/CommitteePanel.java +++ b/EventManagmentSystem/src/GUI/CommitteePanel.java @@ -1,839 +1,839 @@ /* * To change this template, choose Tools |...
false
true
private void initComponents() { committeeChangeButton = new javax.swing.JButton(); removeTaskButton = new javax.swing.JButton(); addTaskButton = new javax.swing.JButton(); removeMemberButton = new javax.swing.JButton(); addMemberButton = new javax.swing.JButton(); ad...
private void initComponents() { committeeChangeButton = new javax.swing.JButton(); removeTaskButton = new javax.swing.JButton(); addTaskButton = new javax.swing.JButton(); removeMemberButton = new javax.swing.JButton(); addMemberButton = new javax.swing.JButton(); ad...
diff --git a/Compiler/JoosPrograms/SyntacticallyValidPrograms/ArithmeticOperations.java b/Compiler/JoosPrograms/SyntacticallyValidPrograms/ArithmeticOperations.java index dc2184a4..731d3667 100644 --- a/Compiler/JoosPrograms/SyntacticallyValidPrograms/ArithmeticOperations.java +++ b/Compiler/JoosPrograms/SyntacticallyV...
true
true
public int m(int x) { int x = +1; return -2*x+87%x-(x/7); }
public int m(int x) { return -2*x+87%x-(x/7); }
diff --git a/tests/org.jboss.tools.ui.bot.ext/src/org/jboss/tools/ui/bot/ext/config/TestConfiguration.java b/tests/org.jboss.tools.ui.bot.ext/src/org/jboss/tools/ui/bot/ext/config/TestConfiguration.java index 9b1018976..1d8387f3b 100644 --- a/tests/org.jboss.tools.ui.bot.ext/src/org/jboss/tools/ui/bot/ext/config/TestCo...
true
true
private boolean checkConfig() throws Exception { if (java != null) checkDirExists(java.javaHome); if (seam != null) checkDirExists(seam.seamHome); if (server != null) checkDirExists(server.runtimeHome); if (esb != null) checkDirExists(esb.esbHome); // special checks capturing dependency ...
private boolean checkConfig() throws Exception { if (java != null) checkDirExists(java.javaHome); if (seam != null) checkDirExists(seam.seamHome); if (server != null) checkDirExists(server.runtimeHome); if (esb != null) checkDirExists(esb.esbHome); // special checks capturing dependency ...
diff --git a/bundles/org.eclipse.orion.server.search/src/org/eclipse/orion/internal/server/search/SearchServlet.java b/bundles/org.eclipse.orion.server.search/src/org/eclipse/orion/internal/server/search/SearchServlet.java index 609abad2..12f8f25f 100644 --- a/bundles/org.eclipse.orion.server.search/src/org/eclipse/ori...
true
true
private SolrQuery buildSolrQuery(HttpServletRequest req) { SolrQuery query = new SolrQuery(); query.setParam(CommonParams.WT, "json"); //$NON-NLS-1$ query.setParam(CommonParams.FL, FIELD_NAMES); String queryString = req.getParameter(CommonParams.Q).trim(); if (queryString.length() > 0) { String processedQ...
private SolrQuery buildSolrQuery(HttpServletRequest req) { SolrQuery query = new SolrQuery(); query.setParam(CommonParams.WT, "json"); //$NON-NLS-1$ query.setParam(CommonParams.FL, FIELD_NAMES); String queryString = req.getParameter(CommonParams.Q).trim(); if (queryString.length() > 0) { String processedQ...
diff --git a/src/main/java/org/Barteks2x/b173gen/generator/ChunkProviderGenerate.java b/src/main/java/org/Barteks2x/b173gen/generator/ChunkProviderGenerate.java index 10bf311..fc73a3d 100644 --- a/src/main/java/org/Barteks2x/b173gen/generator/ChunkProviderGenerate.java +++ b/src/main/java/org/Barteks2x/b173gen/generato...
false
true
public void getChunkAt(IChunkProvider chunkprovider, int i, int j) { BlockSand.instaFall = true; int k = i * 16; int l = j * 16; BiomeGenBase biome = this.wcm.getBiome(k + 16, l + 16); rand.setSeed(world.getSeed()); long l1 = (rand.nextLong() / 2L) * 2L + 1L; long l2 = (rand.nextLong() / 2L) * 2L + 1L; ...
public void getChunkAt(IChunkProvider chunkprovider, int i, int j) { BlockSand.instaFall = true; int k = i * 16; int l = j * 16; BiomeGenBase biome = this.wcm.getBiome(k + 16, l + 16); rand.setSeed(world.getSeed()); long l1 = (rand.nextLong() / 2L) * 2L + 1L; long l2 = (rand.nextLong() / 2L) * 2L + 1L; ...
diff --git a/bundles/org.eclipse.e4.core.contexts/src/org/eclipse/e4/core/internal/contexts/TrackableComputationExt.java b/bundles/org.eclipse.e4.core.contexts/src/org/eclipse/e4/core/internal/contexts/TrackableComputationExt.java index 582f7d8a5..e6a8e9808 100644 --- a/bundles/org.eclipse.e4.core.contexts/src/org/ecli...
false
true
public boolean update(ContextChangeEvent event) { // is this a structural event? // structural changes: INITIAL, DISPOSE, UNINJECTED are always processed right away int eventType = event.getEventType(); if ((runnable instanceof RunAndTrackExt) && ((RunAndTrackExt) runnable).batchProcess()) { if ((eventType ...
public boolean update(ContextChangeEvent event) { // is this a structural event? // structural changes: INITIAL, DISPOSE, UNINJECTED are always processed right away int eventType = event.getEventType(); if ((runnable instanceof RunAndTrackExt) && ((RunAndTrackExt) runnable).batchProcess()) { if ((eventType ...
diff --git a/JavaSource/org/aitools/programd/processor/aiml/RandomProcessor.java b/JavaSource/org/aitools/programd/processor/aiml/RandomProcessor.java index d710031..e8afb5f 100644 --- a/JavaSource/org/aitools/programd/processor/aiml/RandomProcessor.java +++ b/JavaSource/org/aitools/programd/processor/aiml/RandomProces...
true
true
public String process(Element element, TemplateParser parser) throws ProcessorException { // Construct the identifying string (botid + userid + element // contents). String userid = parser.getUserID(); String identifier = parser.getBotID() + userid + element.toString(); ...
public String process(Element element, TemplateParser parser) throws ProcessorException { // Construct the identifying string (botid + userid + element // contents). String userid = parser.getUserID(); String identifier = parser.getBotID() + userid + element.hashCode(); ...
diff --git a/org.eclipse.scout.rt.client/src/org/eclipse/scout/rt/client/ui/basic/table/columns/AbstractColumn.java b/org.eclipse.scout.rt.client/src/org/eclipse/scout/rt/client/ui/basic/table/columns/AbstractColumn.java index 6570f2ecbd..25c111e2d6 100644 --- a/org.eclipse.scout.rt.client/src/org/eclipse/scout/rt/clie...
true
true
public void validateColumnValue(ITableRow row, IFormField editor, boolean singleColValidation, T value) { if (row == null) { LOG.error("validateColumnValue called with row=null"); return; } if (!(row instanceof InternalTableRow)) { LOG.info("validateColumnValue called with row not of typ...
public void validateColumnValue(ITableRow row, IFormField editor, boolean singleColValidation, T value) { if (row == null) { LOG.error("validateColumnValue called with row=null"); return; } if (!(row instanceof InternalTableRow)) { LOG.info("validateColumnValue called with row not of typ...
diff --git a/plugins/org.eclipse.birt.report.engine/src/org/eclipse/birt/report/engine/toc/TOCBuilder.java b/plugins/org.eclipse.birt.report.engine/src/org/eclipse/birt/report/engine/toc/TOCBuilder.java index 817e90573..b511a0593 100644 --- a/plugins/org.eclipse.birt.report.engine/src/org/eclipse/birt/report/engine/toc...
true
true
public TOCEntry startEntry( TOCEntry parent, String displayString, String bookmark ) { assert displayString != null; assert bookmark != null; if ( parent == null ) { parent = rootEntry; } TOCNode parentNode = parent.node; TOCNode node = new TOCNode( ); String id = parentNode.getNodeID( ); if ...
public TOCEntry startEntry( TOCEntry parent, String displayString, String bookmark ) { assert displayString != null; if ( parent == null ) { parent = rootEntry; } TOCNode parentNode = parent.node; TOCNode node = new TOCNode( ); String id = parentNode.getNodeID( ); if ( id == null ) { id = ...
diff --git a/mifosng-provider/src/main/java/org/mifosplatform/portfolio/search/service/SearchReadPlatformServiceImpl.java b/mifosng-provider/src/main/java/org/mifosplatform/portfolio/search/service/SearchReadPlatformServiceImpl.java index a5aba0c87..7347bad0a 100644 --- a/mifosng-provider/src/main/java/org/mifosplatfor...
false
true
public String searchSchema(final SearchConditions searchConditions) { String union = " union all "; String clientExactMatchSql = " (select 'CLIENT' as entityType, c.id as entityId, c.display_name as entityName, c.external_id as entityExternalId, c.account_no as entityAccountNo " ...
public String searchSchema(final SearchConditions searchConditions) { String union = " union all "; String clientExactMatchSql = " (select 'CLIENT' as entityType, c.id as entityId, c.display_name as entityName, c.external_id as entityExternalId, c.account_no as entityAccountNo " ...
diff --git a/src/android/PushNotification.java b/src/android/PushNotification.java index 9cfb55d..b1ce030 100644 --- a/src/android/PushNotification.java +++ b/src/android/PushNotification.java @@ -1,152 +1,152 @@ package org.usergrid.cordova; import java.util.HashMap; import org.apache.cordova.api.Plugin; imp...
true
true
public PluginResult execute(String action, JSONArray args, String callbackId) { webView = this; try{ if (action.equals("registerWithPushProvider")) { Client client = new Client(); JSONObject options = args.getJSONObject(0); String apiUrl = null; if(options.has("apiUrl")) { apiUrl = opt...
public PluginResult execute(String action, JSONArray args, String callbackId) { webView = this; try{ if (action.equals("registerWithPushProvider")) { Client client = new Client(); JSONObject options = args.getJSONObject(0); String apiUrl = null; if(options.has("apiUrl")) { apiUrl = opt...
diff --git a/src/main/java/fi/csc/microarray/client/workflow/WorkflowManager.java b/src/main/java/fi/csc/microarray/client/workflow/WorkflowManager.java index 2371997aa..42de20f42 100644 --- a/src/main/java/fi/csc/microarray/client/workflow/WorkflowManager.java +++ b/src/main/java/fi/csc/microarray/client/workflow/Work...
true
true
public void runScript(final URL workflowUrl, final AtEndListener listener) { Runnable runnable = new Runnable() { public void run() { BufferedReader in = null; boolean success = false; try { in = new BufferedReader(new InputStreamReader(workflowUrl.openConnection().getInputStream())); ...
public void runScript(final URL workflowUrl, final AtEndListener listener) { Runnable runnable = new Runnable() { public void run() { BufferedReader in = null; boolean success = false; try { in = new BufferedReader(new InputStreamReader(workflowUrl.openConnection().getInputStream())); ...
diff --git a/src/de/danoeh/antennapod/util/FileNameGenerator.java b/src/de/danoeh/antennapod/util/FileNameGenerator.java index 37fac28a..702df62b 100644 --- a/src/de/danoeh/antennapod/util/FileNameGenerator.java +++ b/src/de/danoeh/antennapod/util/FileNameGenerator.java @@ -1,36 +1,36 @@ package de.danoeh.antennapod.u...
false
true
public static String generateFileName(String string) { StringBuilder builder = new StringBuilder(); for (int i = 0; i < string.length(); i++) { char c = string.charAt(i); if (Arrays.binarySearch(ILLEGAL_CHARACTERS, c) < 0) { builder.append(c).replaceFirst(" *$",""); } } return builder.toString();...
public static String generateFileName(String string) { StringBuilder builder = new StringBuilder(); for (int i = 0; i < string.length(); i++) { char c = string.charAt(i); if (Arrays.binarySearch(ILLEGAL_CHARACTERS, c) < 0) { builder.append(c); } } return builder.toString().replaceFirst(" *$","");...
diff --git a/src/cello/jtablet/installer/JTabletExtension.java b/src/cello/jtablet/installer/JTabletExtension.java index c861c27..6067716 100644 --- a/src/cello/jtablet/installer/JTabletExtension.java +++ b/src/cello/jtablet/installer/JTabletExtension.java @@ -1,212 +1,212 @@ package cello.jtablet.installer; import...
true
true
private static String getLegacyJTabletVersion() { try { // Get a class object through Reflection API Class<?> jtablet = Class.forName("cello.tablet.JTablet"); // Create an instance of the object Object tablet = jtablet.newInstance(); try { // getVersion() was added in 0.2 BETA 2 // You can saf...
private static String getLegacyJTabletVersion() { try { // Get a class object through Reflection API Class<?> jtablet = Class.forName("cello.tablet.JTablet"); // Create an instance of the object Object tablet = jtablet.newInstance(); try { // getVersion() was added in 0.2 BETA 2 // You can saf...
diff --git a/pdfbox/src/main/java/org/apache/pdfbox/util/PDFStreamEngine.java b/pdfbox/src/main/java/org/apache/pdfbox/util/PDFStreamEngine.java index 0103b17c..2836ea7e 100644 --- a/pdfbox/src/main/java/org/apache/pdfbox/util/PDFStreamEngine.java +++ b/pdfbox/src/main/java/org/apache/pdfbox/util/PDFStreamEngine.java @...
true
true
public void processEncodedText( byte[] string ) throws IOException { /* Note on variable names. There are three different units being used * in this code. Character sizes are given in glyph units, text locations * are initially given in text units, and we want to save the data in ...
public void processEncodedText( byte[] string ) throws IOException { /* Note on variable names. There are three different units being used * in this code. Character sizes are given in glyph units, text locations * are initially given in text units, and we want to save the data in ...
diff --git a/src/com/android/wakemeski/core/Report.java b/src/com/android/wakemeski/core/Report.java index 8378f88..a95a47b 100644 --- a/src/com/android/wakemeski/core/Report.java +++ b/src/com/android/wakemeski/core/Report.java @@ -1,711 +1,711 @@ /* * Copyright (c) 2008 nombre.usario@gmail.com * All rights reser...
true
true
private static Report loadReportWithAppendUrl(Context c, ConnectivityManager cm, Resort resort, WakeMeSkiServer server, String appendUrl) { // A report will be in the format: // location = OSOALP // date = 12-6-2008 // lifts.open = 5 // lifts.total = 10 // trails.open = 0 // trails.total = 10 // ...
private static Report loadReportWithAppendUrl(Context c, ConnectivityManager cm, Resort resort, WakeMeSkiServer server, String appendUrl) { // A report will be in the format: // location = OSOALP // date = 12-6-2008 // lifts.open = 5 // lifts.total = 10 // trails.open = 0 // trails.total = 10 // ...
diff --git a/weboo-webapp/src/main/java/no/f12/jzx/weboo/server/WebServer.java b/weboo-webapp/src/main/java/no/f12/jzx/weboo/server/WebServer.java index f65c038..ea093c9 100644 --- a/weboo-webapp/src/main/java/no/f12/jzx/weboo/server/WebServer.java +++ b/weboo-webapp/src/main/java/no/f12/jzx/weboo/server/WebServer.java...
true
true
private Server startWebServer(File webAppContextPath, String applicationContext) { Assert.isTrue(webAppContextPath.exists(), "The context path you have specified does not exist"); Assert.notNull(applicationContext, "You must specify the context path of the application: " + webAppContextPath); int startPort = 0;...
private Server startWebServer(File webAppContextPath, String applicationContext) { Assert.isTrue(webAppContextPath.exists(), "The context path you have specified does not exist: " + webAppContextPath); Assert.notNull(applicationContext, "You must specify the context path of the application"); int startPort = 0;...
diff --git a/src/org/apache/fop/fo/flow/TableBody.java b/src/org/apache/fop/fo/flow/TableBody.java index fdd3afe89..67d1931be 100644 --- a/src/org/apache/fop/fo/flow/TableBody.java +++ b/src/org/apache/fop/fo/flow/TableBody.java @@ -1,300 +1,304 @@ /*-- $Id$ -- =====================================================...
true
true
public Status layout(Area area) throws FOPException { if (this.marker == BREAK_AFTER) { return new Status(Status.OK); } if (this.marker == START) { String fontFamily = this.properties.get("font-family").getString(); String fontStyle = this.properties.get("font-style").getS...
public Status layout(Area area) throws FOPException { if (this.marker == BREAK_AFTER) { return new Status(Status.OK); } if (this.marker == START) { String fontFamily = this.properties.get("font-family").getString(); String fontStyle = this.properties.get("font-style").getS...
diff --git a/src/main/java/com/laytonsmith/abstraction/bukkit/events/BukkitPlayerEvents.java b/src/main/java/com/laytonsmith/abstraction/bukkit/events/BukkitPlayerEvents.java index 2ee2e735..287f2ae6 100644 --- a/src/main/java/com/laytonsmith/abstraction/bukkit/events/BukkitPlayerEvents.java +++ b/src/main/java/com/lay...
true
true
public boolean modifyEvent(String key, Construct value, Object event) { if (event instanceof EntityDeathEvent) { EntityDeathEvent e = (EntityDeathEvent) event; if (key.equals("xp")) { //Change this parameter in e to value e.setD...
public boolean modifyEvent(String key, Construct value, Object event) { if (event instanceof EntityDeathEvent) { EntityDeathEvent e = (EntityDeathEvent) event; if (key.equals("xp")) { //Change this parameter in e to value e.setD...
diff --git a/jetty-servlet/src/test/java/org/eclipse/jetty/servlet/DefaultServletTest.java b/jetty-servlet/src/test/java/org/eclipse/jetty/servlet/DefaultServletTest.java index 001f57111..50c3510bc 100644 --- a/jetty-servlet/src/test/java/org/eclipse/jetty/servlet/DefaultServletTest.java +++ b/jetty-servlet/src/test/ja...
false
true
public void testListingXSS() throws Exception { ServletHolder defholder = context.addServlet(DefaultServlet.class,"/*"); defholder.setInitParameter("dirAllowed","true"); defholder.setInitParameter("redirectWelcome","false"); defholder.setInitParameter("gzip","false"); Fi...
public void testListingXSS() throws Exception { ServletHolder defholder = context.addServlet(DefaultServlet.class,"/listing/*"); defholder.setInitParameter("dirAllowed","true"); defholder.setInitParameter("redirectWelcome","false"); defholder.setInitParameter("gzip","false"); ...
diff --git a/kernel-impl/src/main/java/org/sakaiproject/authz/impl/DbAuthzGroupService.java b/kernel-impl/src/main/java/org/sakaiproject/authz/impl/DbAuthzGroupService.java index 06fa4aa5..d5d96fdd 100644 --- a/kernel-impl/src/main/java/org/sakaiproject/authz/impl/DbAuthzGroupService.java +++ b/kernel-impl/src/main/jav...
true
true
public void refreshAuthzGroup(BaseAuthzGroup realm) { M_log.debug("refreshAuthzGroup()"); if ((realm == null) || (m_provider == null)) return; boolean synchWithContainingRealm = serverConfigurationService().getBoolean("authz.synchWithContainingRealm", true); // check to see whether this is of gro...
public void refreshAuthzGroup(BaseAuthzGroup realm) { M_log.debug("refreshAuthzGroup()"); if ((realm == null) || (m_provider == null)) return; boolean synchWithContainingRealm = serverConfigurationService().getBoolean("authz.synchWithContainingRealm", true); // check to see whether this is of gro...
diff --git a/src/main/java/net/robbytu/banjoserver/bungee/pm/ReplyCommand.java b/src/main/java/net/robbytu/banjoserver/bungee/pm/ReplyCommand.java index 13b16f5..0a9d450 100644 --- a/src/main/java/net/robbytu/banjoserver/bungee/pm/ReplyCommand.java +++ b/src/main/java/net/robbytu/banjoserver/bungee/pm/ReplyCommand.java...
true
true
public void execute(CommandSender sender, String[] args) { if(!PmSession.replyTo.containsKey(Main.instance.getProxy().getPlayer(sender.getName()))) { sender.sendMessage(ChatColor.GRAY + "Je hebt geen bericht om op te reageren."); return; } if(args.length < 1) { ...
public void execute(CommandSender sender, String[] args) { if(!PmSession.replyTo.containsKey(Main.instance.getProxy().getPlayer(sender.getName()))) { sender.sendMessage(ChatColor.GRAY + "Je hebt geen bericht om op te reageren."); return; } if(args.length < 1) { ...
diff --git a/src/org/eclipse/core/internal/localstore/UnifiedTree.java b/src/org/eclipse/core/internal/localstore/UnifiedTree.java index bfbd1b19..0e96b0ae 100644 --- a/src/org/eclipse/core/internal/localstore/UnifiedTree.java +++ b/src/org/eclipse/core/internal/localstore/UnifiedTree.java @@ -1,338 +1,338 @@ package ...
true
true
protected void addChildren(UnifiedTreeNode node) throws CoreException { IResource parent = node.getResource(); /* is there a possibility to have children? */ if (parent.getType() == IResource.FILE && node.isFile()) return; /* get the list of resources in the file system */ String parentLocalLocation = node.get...
protected void addChildren(UnifiedTreeNode node) throws CoreException { IResource parent = node.getResource(); /* is there a possibility to have children? */ if (parent.getType() == IResource.FILE && node.isFile()) return; /* get the list of resources in the file system */ String parentLocalLocation = node.get...
diff --git a/src/Main.java b/src/Main.java index 4c7c6b0..770df1d 100644 --- a/src/Main.java +++ b/src/Main.java @@ -1,5 +1,5 @@ public class Main { public static void main(String[] args) { - System.out.println("Hello Android!"); + System.out.println("Hi Android!"); } }
true
true
public static void main(String[] args) { System.out.println("Hello Android!"); }
public static void main(String[] args) { System.out.println("Hi Android!"); }
diff --git a/activemq-core/src/test/java/org/apache/activemq/bugs/AMQ2645Test.java b/activemq-core/src/test/java/org/apache/activemq/bugs/AMQ2645Test.java index d745c3bbc..dea6e7730 100644 --- a/activemq-core/src/test/java/org/apache/activemq/bugs/AMQ2645Test.java +++ b/activemq-core/src/test/java/org/apache/activemq/b...
true
true
public void testWaitForTransportInterruptionProcessingHang() throws Exception { final ConnectionFactory fac = new ActiveMQConnectionFactory( "failover:(" + this.bindAddress + ")"); final Connection connection = fac.createConnection(); try { final Sessi...
public void testWaitForTransportInterruptionProcessingHang() throws Exception { final ConnectionFactory fac = new ActiveMQConnectionFactory( "failover:(" + this.bindAddress + ")"); final Connection connection = fac.createConnection(); try { final Sessi...
diff --git a/src/voidfinger/VoidFinger.java b/src/voidfinger/VoidFinger.java index e35b751..a695fe0 100644 --- a/src/voidfinger/VoidFinger.java +++ b/src/voidfinger/VoidFinger.java @@ -1,28 +1,32 @@ package voidfinger; import java.io.FileNotFoundException; import java.io.IOException; import octree.*; public cl...
true
true
public VoidFinger(String filename) { try { this.molecule = Octree.parseFromFile(filename); } catch (FileNotFoundException fe) { System.out.println(fe.getLocalizedMessage()); this.molecule = null; } catch (IOException ioe) { System.out.println(i...
public VoidFinger(String filename) { try { this.molecule = Octree.parseFromFile(filename); } catch (FileNotFoundException fe) { System.out.println(fe.getLocalizedMessage()); this.molecule = null; } catch (IOException ioe) { System.out.println(i...