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/extrabiomes/src/extrabiomes/module/fabrica/recipe/WoodCookBook.java b/extrabiomes/src/extrabiomes/module/fabrica/recipe/WoodCookBook.java index 47a947b9..e3314c46 100644 --- a/extrabiomes/src/extrabiomes/module/fabrica/recipe/WoodCookBook.java +++ b/extrabiomes/src/extrabiomes/module/fabrica/recipe/WoodCoo...
false
true
private static void addPlankCustomRecipes() { Optional<? extends Block> stairs = BlockManager.ACACIASTAIRS .getBlock(); if (stairs.isPresent()) { final IRecipe recipe = new ShapedOreRecipe(new ItemStack( stairs.get(), 4), new String[] { "p ", "pp ", "ppp" }, 'p', "plankAcacia"); Extrabiomes....
private static void addPlankCustomRecipes() { Optional<? extends Block> stairs = BlockManager.ACACIASTAIRS .getBlock(); if (stairs.isPresent()) { final IRecipe recipe = new ShapedOreRecipe(new ItemStack( stairs.get(), 4), new String[] { "p ", "pp ", "ppp" }, 'p', "plankAcacia"); Extrabiomes....
diff --git a/core/src/main/java/eu/europeana/core/util/web/ExceptionResolver.java b/core/src/main/java/eu/europeana/core/util/web/ExceptionResolver.java index 365ee526..96c9fcae 100644 --- a/core/src/main/java/eu/europeana/core/util/web/ExceptionResolver.java +++ b/core/src/main/java/eu/europeana/core/util/web/Exceptio...
true
true
public ModelAndView resolveException(HttpServletRequest request, HttpServletResponse response, Object object, Exception exception) { PortalTheme theme = ThemeInterceptor.getTheme(); if (theme == null) { theme = themeHandler.getDefaultTheme(); } final EmailTarget emailTarg...
public ModelAndView resolveException(HttpServletRequest request, HttpServletResponse response, Object object, Exception exception) { PortalTheme theme = ThemeInterceptor.getTheme(); if (theme == null) { theme = themeHandler.getDefaultTheme(); } final EmailTarget emailTarg...
diff --git a/branches/andpet/GeoBeagleTest/test/com/google/code/geobeagle/actions/CacheActionViewTest.java b/branches/andpet/GeoBeagleTest/test/com/google/code/geobeagle/actions/CacheActionViewTest.java index 9b65a691..5dbcbab2 100644 --- a/branches/andpet/GeoBeagleTest/test/com/google/code/geobeagle/actions/CacheActio...
false
true
public void testActionView() { Intent intent = PowerMock.createMock(Intent.class); Context context = PowerMock.createMock(Context.class); Geocache geocache = PowerMock.createMock(Geocache.class); expect(intent.setAction(GeocacheListController.SELECT_CACHE)).andReturn(intent); ...
public void testActionView() { Intent intent = PowerMock.createMock(Intent.class); Context context = PowerMock.createMock(Context.class); Geocache geocache = PowerMock.createMock(Geocache.class); expect(geocache.getId()).andReturn("id1"); expect(intent.setAction(GeocacheList...
diff --git a/activiti-webapp-rest/src/main/java/org/activiti/rest/api/process/ProcessInstancePost.java b/activiti-webapp-rest/src/main/java/org/activiti/rest/api/process/ProcessInstancePost.java index c4ce0256d..7429dbe91 100644 --- a/activiti-webapp-rest/src/main/java/org/activiti/rest/api/process/ProcessInstancePost....
true
true
protected void executeWebScript(ActivitiRequest req, Status status, Cache cache, Map<String, Object> model) { ActivitiRequestObject obj = req.getBody(); String processDefinitionId = req.getMandatoryString(obj, "processDefinitionId"); Map<String, Object> variables = req.getFormVariables(); variables.re...
protected void executeWebScript(ActivitiRequest req, Status status, Cache cache, Map<String, Object> model) { ActivitiRequestObject obj = req.getBody(); String processDefinitionId = req.getMandatoryString(obj, "processDefinitionId"); Map<String, Object> variables = req.getFormVariables(); variables.re...
diff --git a/p002-LeapYear/LeapYear.java b/p002-LeapYear/LeapYear.java index be0726e..05d0f33 100644 --- a/p002-LeapYear/LeapYear.java +++ b/p002-LeapYear/LeapYear.java @@ -1,37 +1,38 @@ import java.util.Scanner; public class LeapYear { /** * Determine if a year is a leap year * * @author Drausin Wu...
false
true
public static void main(String[] args) { // declare our Scanner object to read input from the user Scanner sc = new Scanner(System.in); // declare our year variable int year; // prompt user for year to check System.out.print("Enter a year: "); year = sc.nextInt(); // check whether year is d...
public static void main(String[] args) { // declare our Scanner object to read input from the user Scanner sc = new Scanner(System.in); // declare our year variable int year; // prompt user for year to check System.out.print("Enter a year: "); year = sc.nextInt(); sc.close(); // check whe...
diff --git a/Rania/src/com/game/rania/userdata/IOStream.java b/Rania/src/com/game/rania/userdata/IOStream.java index 0663fc6..82ca7ca 100644 --- a/Rania/src/com/game/rania/userdata/IOStream.java +++ b/Rania/src/com/game/rania/userdata/IOStream.java @@ -1,91 +1,91 @@ package com.game.rania.userdata; import java.io.D...
false
true
public Command readCommand() throws IOException{ int idCommand = iStream.readInt(); int controlCRC = iStream.readInt(); int len = iStream.readInt(); int buffCount = (len / 1024)+1; if (buffCount > 1024) { Gdx.app.log("BufferCount","Big size buffer"); return null; } byte[] data = new byte...
public Command readCommand() throws IOException{ int idCommand = iStream.readInt(); int controlCRC = iStream.readInt(); int len = iStream.readInt(); int buffCount = (len / 1024)+1; if (buffCount > 1024) { Gdx.app.log("BufferCount","Big size buffer"); return null; } byte[] data = new byte[le...
diff --git a/src/main/java/com/bitcup/configurator/FileConfig.java b/src/main/java/com/bitcup/configurator/FileConfig.java index b0a98f4..e74989e 100644 --- a/src/main/java/com/bitcup/configurator/FileConfig.java +++ b/src/main/java/com/bitcup/configurator/FileConfig.java @@ -1,129 +1,129 @@ package com.bitcup.configu...
false
true
public FileConfig(String filename) { if (Context.getInstance().hasConfigPath()) { final String fn = Context.getInstance().getConfigPath() + File.separator + filename; URL fileUrl = ConfigurationUtils.locate(fn); if (fileUrl != null) { try { ...
public FileConfig(String filename) { if (Context.getInstance().hasConfigPath()) { final String fn = Context.getInstance().getConfigPath() + File.separator + filename; URL fileUrl = ConfigurationUtils.locate(fn); if (fileUrl != null) { try { ...
diff --git a/src/com/android/calendar/alerts/SnoozeAlarmsService.java b/src/com/android/calendar/alerts/SnoozeAlarmsService.java index 2eac1a71..6ef983d5 100644 --- a/src/com/android/calendar/alerts/SnoozeAlarmsService.java +++ b/src/com/android/calendar/alerts/SnoozeAlarmsService.java @@ -1,88 +1,89 @@ /* * Copyrig...
true
true
public void onHandleIntent(Intent intent) { long eventId = intent.getLongExtra(AlertUtils.EVENT_ID_KEY, -1); long eventStart = intent.getLongExtra(AlertUtils.EVENT_START_KEY, -1); long eventEnd = intent.getLongExtra(AlertUtils.EVENT_END_KEY, -1); // The ID reserved for the expired ...
public void onHandleIntent(Intent intent) { long eventId = intent.getLongExtra(AlertUtils.EVENT_ID_KEY, -1); long eventStart = intent.getLongExtra(AlertUtils.EVENT_START_KEY, -1); long eventEnd = intent.getLongExtra(AlertUtils.EVENT_END_KEY, -1); // The ID reserved for the expired ...
diff --git a/trunk/xmlvm/src/xmlvm2objc/compat-lib/java/org/xmlvm/iphone/UIAlertView.java b/trunk/xmlvm/src/xmlvm2objc/compat-lib/java/org/xmlvm/iphone/UIAlertView.java index 92ed2401..d2881107 100644 --- a/trunk/xmlvm/src/xmlvm2objc/compat-lib/java/org/xmlvm/iphone/UIAlertView.java +++ b/trunk/xmlvm/src/xmlvm2objc/com...
false
true
private void doLayout() { int x; int y; int width; int height; // Compute AlertView's boundary if (buttons.size() != 2) { width = 2 * FRAME_SIZE + 2 * INSETS + FULL_BUTTON_WIDTH; height = 2 * FRAME_SIZE + LABEL_INSETS + buttons.size() * INSETS...
private void doLayout() { int x; int y; int width; int height; // Compute AlertView's boundary if (buttons.size() != 2) { width = 2 * FRAME_SIZE + 2 * INSETS + FULL_BUTTON_WIDTH; height = 2 * FRAME_SIZE + LABEL_INSETS + buttons.size() * INSETS...
diff --git a/examples/simple-messaging-pubsub/src/main/java/brooklyn/demo/Subscribe.java b/examples/simple-messaging-pubsub/src/main/java/brooklyn/demo/Subscribe.java index 877efcf11..6e852ad7f 100644 --- a/examples/simple-messaging-pubsub/src/main/java/brooklyn/demo/Subscribe.java +++ b/examples/simple-messaging-pubsu...
true
true
public static void main(String...argv) throws Exception { Preconditions.checkElementIndex(0, argv.length, "Must specify broker URL"); String url = argv[0]; // Set Qpid client properties System.setProperty(ClientProperties.AMQP_VERSION, "0-10"); System.setProperty(ClientPrope...
public static void main(String...argv) throws Exception { Preconditions.checkElementIndex(0, argv.length, "Must specify broker URL"); String url = argv[0]; // Set Qpid client properties System.setProperty(ClientProperties.AMQP_VERSION, "0-10"); System.setProperty(ClientPrope...
diff --git a/src/main/java/pta/calc/CalcMSD.java b/src/main/java/pta/calc/CalcMSD.java index 48bc238..ad64b6a 100644 --- a/src/main/java/pta/calc/CalcMSD.java +++ b/src/main/java/pta/calc/CalcMSD.java @@ -1,118 +1,119 @@ package pta.calc; import ij.IJ; import ij.measure.Calibration; import java.util.ArrayList; i...
true
true
public void run(){ try { if (pointlist.size()<leastLength) return; int calcFrameLen = leastLength; calcFrameLen = calcFrameLen>pointlist.get(pointlist.size()-1).getFrame()-pointlist.get(0).getFrame()? pointlist.get(pointlist.size()-1).getFrame()-pointlist.get(0).getFrame():calcFrameLen; calcF...
public void run(){ try { if (pointlist.size()<leastLength) return; int calcFrameLen = leastLength; calcFrameLen = calcFrameLen>pointlist.get(pointlist.size()-1).getFrame()-pointlist.get(0).getFrame()? pointlist.get(pointlist.size()-1).getFrame()-pointlist.get(0).getFrame():calcFrameLen; calcF...
diff --git a/src/com/android/mms/ui/SlideView.java b/src/com/android/mms/ui/SlideView.java index 6e293dbb..41c6c9fb 100644 --- a/src/com/android/mms/ui/SlideView.java +++ b/src/com/android/mms/ui/SlideView.java @@ -1,546 +1,547 @@ /* * Copyright (C) 2008 Esmertec AG. * Copyright (C) 2008 The Android Open Source Pr...
true
true
public void enableMMSConformanceMode(int textLeft, int textTop, int imageLeft, int imageTop) { mConformanceMode = true; if (mScrollViewPort == null) { mScrollViewPort = new ScrollView(mContext) { private int mBottomY; @Override ...
public void enableMMSConformanceMode(int textLeft, int textTop, int imageLeft, int imageTop) { mConformanceMode = true; if (mScrollViewPort == null) { mScrollViewPort = new ScrollView(mContext) { private int mBottomY; @Override ...
diff --git a/openejb/examples/dynamic-dao-implementation/src/test/java/org/superbiz/dynamic/DynamicUserDaoTest.java b/openejb/examples/dynamic-dao-implementation/src/test/java/org/superbiz/dynamic/DynamicUserDaoTest.java index b1fcdacad..b025dfbaa 100644 --- a/openejb/examples/dynamic-dao-implementation/src/test/java/o...
true
true
@Test public void query() { Map<String, Object> params = new HashMap<String, Object> (); params.put("name", "foo"); Collection<User> users = dao.namedQuery("dynamic-ejb-impl-test.query", params, 0, 100); assertEquals(4, users.size()); users = dao.namedQuery("dynamic-ejb-imp...
@Test public void query() { Map<String, Object> params = new HashMap<String, Object> (); params.put("name", "foo"); Collection<User> users = dao.namedQuery("dynamic-ejb-impl-test.query", params, 0, 100); assertEquals(4, users.size()); users = dao.namedQuery("dynamic-ejb-imp...
diff --git a/hudson-core/src/main/java/hudson/cli/UpdateJobCommand.java b/hudson-core/src/main/java/hudson/cli/UpdateJobCommand.java index ff9ca259..c648b05d 100644 --- a/hudson-core/src/main/java/hudson/cli/UpdateJobCommand.java +++ b/hudson-core/src/main/java/hudson/cli/UpdateJobCommand.java @@ -1,155 +1,156 @@ /***...
false
true
protected int run() throws Exception { Team targetTeam = validateTeam(team, create, stderr); Hudson h = Hudson.getInstance(); TeamManager teamManager = h.getTeamManager(); if (team != null && targetTeam == null) { return -1; } String qualifiedJob...
protected int run() throws Exception { Team targetTeam = validateTeam(team, create, stderr); Hudson h = Hudson.getInstance(); TeamManager teamManager = h.getTeamManager(); if (team != null && targetTeam == null) { return -1; } String qualifiedJob...
diff --git a/modules/variant/org/molgenis/mutation/ServiceLocator.java b/modules/variant/org/molgenis/mutation/ServiceLocator.java index 8942bb204..4c5441509 100644 --- a/modules/variant/org/molgenis/mutation/ServiceLocator.java +++ b/modules/variant/org/molgenis/mutation/ServiceLocator.java @@ -1,115 +1,115 @@ packag...
true
true
public static final ServiceLocator instance() { if (context == null) { // context = new org.springframework.context.support.ClassPathXmlApplicationContext(); context = new org.springframework.context.annotation.AnnotationConfigApplicationContext(); ((org.springframework.context.annota...
public static final ServiceLocator instance() { if (context == null) { context = new org.springframework.context.support.ClassPathXmlApplicationContext(); // context = new org.springframework.context.annotation.AnnotationConfigApplicationContext(); // ((org.springframework.context.anno...
diff --git a/src/net/bubbaland/trivia/client/AddTabDialog.java b/src/net/bubbaland/trivia/client/AddTabDialog.java index 8811b9f..d16117b 100644 --- a/src/net/bubbaland/trivia/client/AddTabDialog.java +++ b/src/net/bubbaland/trivia/client/AddTabDialog.java @@ -1,130 +1,135 @@ package net.bubbaland.trivia.client; im...
false
true
public AddTabDialog(TriviaFrame panel, TriviaClient client, DnDTabbedPane pane) { super(); this.client = client; Set<String> tabNameSet = client.getTabNames(); String[] tabNames = new String[tabNameSet.size()]; tabNameSet.toArray(tabNames); Arrays.sort(tabNames, new TabCompare()); // Set up layout con...
public AddTabDialog(TriviaFrame panel, TriviaClient client, DnDTabbedPane pane) { super(); this.client = client; Set<String> tabNameSet = client.getTabNames(); String[] tabNames = new String[tabNameSet.size()]; tabNameSet.toArray(tabNames); Arrays.sort(tabNames, new TabCompare()); // Set up layout con...
diff --git a/lapg/lapg-tool/tests/org/textmapper/lapg/test/unicode/UnicodeTest.java b/lapg/lapg-tool/tests/org/textmapper/lapg/test/unicode/UnicodeTest.java index 7dfd43b2..37e63150 100644 --- a/lapg/lapg-tool/tests/org/textmapper/lapg/test/unicode/UnicodeTest.java +++ b/lapg/lapg-tool/tests/org/textmapper/lapg/test/un...
true
true
public void testUnicodeData() throws IOException { final Map<String, Builder> allCharset = new HashMap<String, Builder>(); for (String category : UnicodeParser.CATEGORIES) { allCharset.put(category, new Builder()); } new UnicodeParser().parseData(UnicodeTest.class.getResource("data/UnicodeData.txt"), new ...
public void testUnicodeData() throws IOException { final Map<String, Builder> allCharset = new HashMap<String, Builder>(); for (String category : UnicodeParser.CATEGORIES) { allCharset.put(category, new Builder()); } URL resource = UnicodeTest.class.getResource("data/UnicodeData.txt"); assertNotNull("ca...
diff --git a/bundles/org.eclipse.wst.xsd.ui/src-adt/org/eclipse/wst/xsd/adt/design/DesignViewGraphicalViewer.java b/bundles/org.eclipse.wst.xsd.ui/src-adt/org/eclipse/wst/xsd/adt/design/DesignViewGraphicalViewer.java index 2c54dfd79..46a469a60 100644 --- a/bundles/org.eclipse.wst.xsd.ui/src-adt/org/eclipse/wst/xsd/adt/...
false
true
public void selectionChanged(SelectionChangedEvent event) { Object selectedObject = ((StructuredSelection) event.getSelection()).getFirstElement(); // TODO (cs) It seems like there's way more selection going on than there should // be!! There's at least 2 selections getting fired when something is...
public void selectionChanged(SelectionChangedEvent event) { Object selectedObject = ((StructuredSelection) event.getSelection()).getFirstElement(); // TODO (cs) It seems like there's way more selection going on than there should // be!! There's at least 2 selections getting fired when something is...
diff --git a/src/java/org/codehaus/groovy/grails/web/errors/GrailsExceptionResolver.java b/src/java/org/codehaus/groovy/grails/web/errors/GrailsExceptionResolver.java index 9821ff809..756dd0e85 100644 --- a/src/java/org/codehaus/groovy/grails/web/errors/GrailsExceptionResolver.java +++ b/src/java/org/codehaus/groovy/gr...
true
true
public ModelAndView resolveException(HttpServletRequest request, HttpServletResponse response, Object handler, Exception ex) { if ((ex instanceof InvokerInvocationException)||(ex instanceof GrailsMVCException)) { Throwable t = getRootCause(ex); if(t instanceof Exception) { ...
public ModelAndView resolveException(HttpServletRequest request, HttpServletResponse response, Object handler, Exception ex) { if ((ex instanceof InvokerInvocationException)||(ex instanceof GrailsMVCException)) { Throwable t = getRootCause(ex); if(t instanceof Exception) { ...
diff --git a/src/com/csipsimple/ui/prefs/PrefsNetwork.java b/src/com/csipsimple/ui/prefs/PrefsNetwork.java index d9aaf09a..05163c28 100644 --- a/src/com/csipsimple/ui/prefs/PrefsNetwork.java +++ b/src/com/csipsimple/ui/prefs/PrefsNetwork.java @@ -1,85 +1,86 @@ /** * Copyright (C) 2010 Regis Montoya (aka r3gis - www....
true
true
protected void afterBuildPrefs() { super.afterBuildPrefs(); TelephonyManager telephonyManager = (TelephonyManager) getApplicationContext().getSystemService(TELEPHONY_SERVICE); if (telephonyManager.getPhoneType() == TelephonyManager.PHONE_TYPE_CDMA) { hidePreference("for_incoming", "use_gprs_in"); hidePr...
protected void afterBuildPrefs() { super.afterBuildPrefs(); TelephonyManager telephonyManager = (TelephonyManager) getApplicationContext().getSystemService(TELEPHONY_SERVICE); if (telephonyManager.getPhoneType() == TelephonyManager.PHONE_TYPE_CDMA) { hidePreference("for_incoming", "use_gprs_in"); hidePr...
diff --git a/src/realms/drizzt/movingcircle/MovingCircleFragment.java b/src/realms/drizzt/movingcircle/MovingCircleFragment.java index 64b4cbe..a62935b 100644 --- a/src/realms/drizzt/movingcircle/MovingCircleFragment.java +++ b/src/realms/drizzt/movingcircle/MovingCircleFragment.java @@ -1,92 +1,93 @@ package realms.d...
true
true
public void onDestroy() { //Release the thread lock so it can quit circleView.getThread().setState(MovingCircleThread.STATE_STOPPING); synchronized (circleView.getThread()) { circleView.getThread().notifyAll(); } boolean retry = true; circleView.getThread().setRunning(false);...
public void onDestroy() { super.onDestroy(); //Release the thread lock so it can quit circleView.getThread().setState(MovingCircleThread.STATE_STOPPING); synchronized (circleView.getThread()) { circleView.getThread().notifyAll(); } boolean retry = true; circleView.getThr...
diff --git a/src/com/spartansoftwareinc/vistatec/rwb/segment/SegmentView.java b/src/com/spartansoftwareinc/vistatec/rwb/segment/SegmentView.java index e35ef0d..ae1e85f 100644 --- a/src/com/spartansoftwareinc/vistatec/rwb/segment/SegmentView.java +++ b/src/com/spartansoftwareinc/vistatec/rwb/segment/SegmentView.java @@ ...
false
true
public void parseXLIFFFile(FileInputStream file) { RawDocument fileDoc = new RawDocument(file, "UTF-8", LocaleId.EMPTY, LocaleId.EMPTY); this.filter = new XLIFFFilter(); this.filter.open(fileDoc); int fileEventNum = 0; String fileOriginal = ""; while(this.filter.hasN...
public void parseXLIFFFile(FileInputStream file) { RawDocument fileDoc = new RawDocument(file, "UTF-8", LocaleId.EMPTY, LocaleId.EMPTY); this.filter = new XLIFFFilter(); this.filter.open(fileDoc); int fileEventNum = 0; String fileOriginal = ""; while(this.filter.hasN...
diff --git a/src/main/java/com/survivorserver/GlobalMarket/ListingsInterface.java b/src/main/java/com/survivorserver/GlobalMarket/ListingsInterface.java index 111dca2..b84841b 100644 --- a/src/main/java/com/survivorserver/GlobalMarket/ListingsInterface.java +++ b/src/main/java/com/survivorserver/GlobalMarket/ListingsIn...
true
true
public ItemStack prepareItem(MarketItem marketItem, InterfaceViewer viewer, int page, int slot, boolean leftClick, boolean shiftClick) { Listing listing = (Listing) marketItem; ItemStack item = listing.getItem(); ItemMeta meta = item.getItemMeta().clone(); boolean isSeller = viewer.getViewer().equalsIgnoreC...
public ItemStack prepareItem(MarketItem marketItem, InterfaceViewer viewer, int page, int slot, boolean leftClick, boolean shiftClick) { Listing listing = (Listing) marketItem; ItemStack item = listing.getItem(); ItemMeta meta = item.getItemMeta().clone(); boolean isSeller = viewer.getViewer().equalsIgnoreC...
diff --git a/src/com/terxiii/nogrind/DamageCauseListener.java b/src/com/terxiii/nogrind/DamageCauseListener.java index fd74a79..232bac9 100644 --- a/src/com/terxiii/nogrind/DamageCauseListener.java +++ b/src/com/terxiii/nogrind/DamageCauseListener.java @@ -1,212 +1,222 @@ package com.terxiii.nogrind; import java.ut...
false
true
public void onEntityDeath(EntityDeathEvent event) { if(isEnabled) { if(!(event.getEntity() instanceof Player)) { if(tag_duration>0) { if(!(DamageCauseListener.tagged.contains(event.getEntity()))) { List<org.bukkit.inventory.ItemStack> drp = event.getDrops(); org.bukkit.inventor...
public void onEntityDeath(EntityDeathEvent event) { if(isEnabled) { if(!(event.getEntity() instanceof Player)) { if(tag_duration>0) { if(!(DamageCauseListener.tagged.contains(event.getEntity()))) { List<org.bukkit.inventory.ItemStack> drp = event.getDrops(); org.bukkit.inventor...
diff --git a/eclipse/plugins/net.sf.orcc.ui/src/net/sf/orcc/ui/launching/OrccRunLaunchDelegate.java b/eclipse/plugins/net.sf.orcc.ui/src/net/sf/orcc/ui/launching/OrccRunLaunchDelegate.java index 5affa9993..ca4faa224 100644 --- a/eclipse/plugins/net.sf.orcc.ui/src/net/sf/orcc/ui/launching/OrccRunLaunchDelegate.java +++ ...
true
true
public void launch(ILaunchConfiguration configuration, String mode, ILaunch launch, IProgressMonitor monitor) throws CoreException { OrccProcess process = new OrccProcess(launch, configuration, monitor); launch.addProcess(process); try { monitor.subTask("Launching backend..."); // Configure the logge...
public void launch(ILaunchConfiguration configuration, String mode, ILaunch launch, IProgressMonitor monitor) throws CoreException { OrccProcess process = new OrccProcess(launch, configuration, monitor); launch.addProcess(process); try { monitor.subTask("Launching backend..."); // Configure the logge...
diff --git a/src/main/java/org/terasology/launcher/util/GameStarter.java b/src/main/java/org/terasology/launcher/util/GameStarter.java index 03eaeb5..01e5eab 100644 --- a/src/main/java/org/terasology/launcher/util/GameStarter.java +++ b/src/main/java/org/terasology/launcher/util/GameStarter.java @@ -1,138 +1,139 @@ /*...
false
true
private boolean startProcess(final TerasologyGameVersion gameVersion, final List<String> processParameters) { final ProcessBuilder pb = new ProcessBuilder(processParameters); pb.redirectErrorStream(true); pb.directory(gameVersion.getInstallationPath()); logger.debug("Starting game pr...
private boolean startProcess(final TerasologyGameVersion gameVersion, final List<String> processParameters) { final ProcessBuilder pb = new ProcessBuilder(processParameters); pb.redirectErrorStream(true); pb.directory(gameVersion.getInstallationPath()); logger.debug("Starting game pr...
diff --git a/asm/src/org/objectweb/asm/commons/AnalyzerAdapter.java b/asm/src/org/objectweb/asm/commons/AnalyzerAdapter.java index 26100acb..c66c6aef 100644 --- a/asm/src/org/objectweb/asm/commons/AnalyzerAdapter.java +++ b/asm/src/org/objectweb/asm/commons/AnalyzerAdapter.java @@ -1,873 +1,877 @@ /*** * ASM: a very...
true
true
private void execute(final int opcode, final int iarg, final String sarg) { if (this.locals == null) { labels = null; return; } Object t1, t2, t3, t4; switch (opcode) { case Opcodes.NOP: case Opcodes.INEG: case Opcodes.LNEG:...
private void execute(final int opcode, final int iarg, final String sarg) { if (this.locals == null) { labels = null; return; } Object t1, t2, t3, t4; switch (opcode) { case Opcodes.NOP: case Opcodes.INEG: case Opcodes.LNEG:...
diff --git a/usage/camp/src/main/java/io/brooklyn/camp/brooklyn/spi/creation/BrooklynEntityMatcher.java b/usage/camp/src/main/java/io/brooklyn/camp/brooklyn/spi/creation/BrooklynEntityMatcher.java index 69735abbf..1274bc559 100644 --- a/usage/camp/src/main/java/io/brooklyn/camp/brooklyn/spi/creation/BrooklynEntityMatch...
true
true
public boolean apply(Object deploymentPlanItem, AssemblyTemplateConstructor atc) { Object item = lookup(deploymentPlanItem); if (item==null) return false; log.debug("Item "+deploymentPlanItem+" being instantiated with "+item); Object old = atc.getInstantiator(); if (old!=nu...
public boolean apply(Object deploymentPlanItem, AssemblyTemplateConstructor atc) { Object item = lookup(deploymentPlanItem); if (item==null) return false; log.debug("Item "+deploymentPlanItem+" being instantiated with "+item); Object old = atc.getInstantiator(); if (old!=nu...
diff --git a/src/main/java/com/datascience/gal/service/Service.java b/src/main/java/com/datascience/gal/service/Service.java index 66b91a48..9ece781f 100644 --- a/src/main/java/com/datascience/gal/service/Service.java +++ b/src/main/java/com/datascience/gal/service/Service.java @@ -1,813 +1,813 @@ /*******************...
true
true
public Response pingDB() { final String id = "1234512345"; Set<Category> categories = new HashSet<Category>(); categories.add(new Category("mock")); DawidSkene ds = new BatchDawidSkene(id, categories); try { setup(context); String message = ""; DawidSkene dsInserted = dscache.inser...
public Response pingDB() { final String id = "1234512345"; Set<Category> categories = new HashSet<Category>(); categories.add(new Category("mock")); DawidSkene ds = new BatchDawidSkene(id, categories); try { setup(context); String message = ""; DawidSkene dsInserted = dscache.inser...
diff --git a/api/src/main/java/org/openmrs/validator/EncounterValidator.java b/api/src/main/java/org/openmrs/validator/EncounterValidator.java index 65468870..e0bfe527 100644 --- a/api/src/main/java/org/openmrs/validator/EncounterValidator.java +++ b/api/src/main/java/org/openmrs/validator/EncounterValidator.java @@ -1...
true
true
public void validate(Object obj, Errors errors) throws APIException { if (log.isDebugEnabled()) log.debug(this.getClass().getName() + ".validate..."); if (obj == null || !(obj instanceof Encounter)) throw new IllegalArgumentException("The parameter obj should not be null and must be of type " + Encounter....
public void validate(Object obj, Errors errors) throws APIException { if (log.isDebugEnabled()) log.debug(this.getClass().getName() + ".validate..."); if (obj == null || !(obj instanceof Encounter)) throw new IllegalArgumentException("The parameter obj should not be null and must be of type " + Encounter....
diff --git a/src/main/java/com/elections/Main.java b/src/main/java/com/elections/Main.java index fad03d3..03774c5 100644 --- a/src/main/java/com/elections/Main.java +++ b/src/main/java/com/elections/Main.java @@ -1,55 +1,57 @@ package com.elections; import org.eclipse.jetty.server.Server; import org.eclipse.jetty.we...
false
true
public static void main(String[] args) throws Exception{ String webappDirLocation = "src/main/webapp/scndpt"; String webappDirLocation2 = "src/main/webapp/elections"; //The port that we should run on can be set into an environment variable //Look for that variable and default to 8080 if i...
public static void main(String[] args) throws Exception{ String scndptLocation = "src/main/webapp/scndpt"; String electionLocation = "src/main/webapp/elections"; //The port that we should run on can be set into an environment variable //Look for that variable and default to 8080 if it isn...
diff --git a/src/org/eclipse/imp/lpg/editor/JikesPGReferenceResolver.java b/src/org/eclipse/imp/lpg/editor/JikesPGReferenceResolver.java index a2a03e8..143a78c 100644 --- a/src/org/eclipse/imp/lpg/editor/JikesPGReferenceResolver.java +++ b/src/org/eclipse/imp/lpg/editor/JikesPGReferenceResolver.java @@ -1,63 +1,63 @@ ...
true
true
public Object getLinkTarget(Object node, IParseController parseController) { if (!(node instanceof ASTNode)) return null; JikesPG ast = (JikesPG) parseController.getCurrentAst(); final ASTNode def= ASTUtils.findDefOf((IASTNodeToken) node, (JikesPG) ast); return def; }
public Object getLinkTarget(Object node, IParseController parseController) { if (!(node instanceof IASTNodeToken)) return null; JikesPG ast = (JikesPG) parseController.getCurrentAst(); final ASTNode def= ASTUtils.findDefOf((IASTNodeToken) node, (JikesPG) ast); return def; }
diff --git a/plugins/org.eclipse.dltk.ruby.ui/src/org/eclipse/dltk/ruby/internal/ui/docs/RiHelper.java b/plugins/org.eclipse.dltk.ruby.ui/src/org/eclipse/dltk/ruby/internal/ui/docs/RiHelper.java index 3a36a0f6..f7586b75 100644 --- a/plugins/org.eclipse.dltk.ruby.ui/src/org/eclipse/dltk/ruby/internal/ui/docs/RiHelper.ja...
true
true
protected synchronized void runRiProcess() throws CoreException, IOException { IInterpreterInstall install = ScriptLaunchUtil .getDefaultInterpreterInstall(RubyNature.NATURE_ID, LocalEnvironment.ENVIRONMENT_ID); if (install == null) { throw new CoreException(Status.CANCEL_STATUS); } IEnvironment en...
protected synchronized void runRiProcess() throws CoreException, IOException { IInterpreterInstall install = ScriptLaunchUtil .getDefaultInterpreterInstall(RubyNature.NATURE_ID, LocalEnvironment.ENVIRONMENT_ID); if (install == null) { throw new CoreException(Status.CANCEL_STATUS); } IEnvironment en...
diff --git a/hazelcast/src/main/java/com/hazelcast/map/operation/PartitionWideEntryOperation.java b/hazelcast/src/main/java/com/hazelcast/map/operation/PartitionWideEntryOperation.java index 17efa98a62..a9cd03cb6c 100644 --- a/hazelcast/src/main/java/com/hazelcast/map/operation/PartitionWideEntryOperation.java +++ b/ha...
true
true
public void run() { response = new MapEntrySet(); MapEntrySimple entry; final RecordStore recordStore = mapService.getRecordStore(getPartitionId(), name); final Map<Data, Record> records = recordStore.getReadonlyRecordMap(); for (final Map.Entry<Data, Record> recordEntry : re...
public void run() { response = new MapEntrySet(); MapEntrySimple entry; final RecordStore recordStore = mapService.getRecordStore(getPartitionId(), name); final Map<Data, Record> records = recordStore.getReadonlyRecordMap(); for (final Map.Entry<Data, Record> recordEntry : re...
diff --git a/src/com/atlauncher/data/Downloadable.java b/src/com/atlauncher/data/Downloadable.java index 0852808e..2da738f9 100644 --- a/src/com/atlauncher/data/Downloadable.java +++ b/src/com/atlauncher/data/Downloadable.java @@ -1,402 +1,404 @@ /** * Copyright 2013 by ATLauncher and Contributors * * This work ...
false
true
public void download(boolean downloadAsLibrary, boolean force) { if (this.file == null) { App.settings.log("Cannot download " + this.url + " to file as one wasn't specified!", LogMessageType.error, false); return; } if (instanceInstaller != null) {...
public void download(boolean downloadAsLibrary, boolean force) { if (this.file == null) { App.settings.log("Cannot download " + this.url + " to file as one wasn't specified!", LogMessageType.error, false); return; } if (instanceInstaller != null) {...
diff --git a/src/main/java/org/halvors/lupi/util/RandomNameUtil.java b/src/main/java/org/halvors/lupi/util/RandomNameUtil.java index adf9f6d..cf9747a 100644 --- a/src/main/java/org/halvors/lupi/util/RandomNameUtil.java +++ b/src/main/java/org/halvors/lupi/util/RandomNameUtil.java @@ -1,67 +1,68 @@ package org.halvors....
true
true
private void initRandomNames() { try { BufferedReader bufferedReader = new BufferedReader(new InputStreamReader(WolfManager.class.getResourceAsStream("wolfnames.txt"))); while (true) { String s1; if ((s1 = bufferedReader....
private void initRandomNames() { try { BufferedReader bufferedReader = new BufferedReader(new InputStreamReader(WolfManager.class.getResourceAsStream("wolfnames.txt"))); while (true) { String s1; if ((s1 = bufferedReader....
diff --git a/javasvn/src/org/tmatesoft/svn/core/internal/io/fs/FSWriter.java b/javasvn/src/org/tmatesoft/svn/core/internal/io/fs/FSWriter.java index 0ab79020a..f6e42586c 100644 --- a/javasvn/src/org/tmatesoft/svn/core/internal/io/fs/FSWriter.java +++ b/javasvn/src/org/tmatesoft/svn/core/internal/io/fs/FSWriter.java @@ ...
true
true
public static FSID writeFinalRevision(FSID newId, final RandomAccessFile protoFile, long revision, FSID id, String startNodeId, String startCopyId, File reposRootDir) throws SVNException, IOException { newId = null; /* Check to see if this is a transaction node. */ if(!id.isTxn()){ ...
public static FSID writeFinalRevision(FSID newId, final RandomAccessFile protoFile, long revision, FSID id, String startNodeId, String startCopyId, File reposRootDir) throws SVNException, IOException { newId = null; /* Check to see if this is a transaction node. */ if(!id.isTxn()){ ...
diff --git a/src/java/publicholidays/Database.java b/src/java/publicholidays/Database.java index 76e70e9..b649e3b 100644 --- a/src/java/publicholidays/Database.java +++ b/src/java/publicholidays/Database.java @@ -1,261 +1,262 @@ package publicholidays; import entity.DateEntry; import java.io.IOException; import j...
true
true
public List findLongWeekend(HttpServletRequest request) { List<List<DateEntry>> allLongWeekends = new ArrayList<List<DateEntry>>(); String startDate = request.getParameter("startDate"); String endDate = request.getParameter("endDate"); getUserDates(request); //Set up...
public List findLongWeekend(HttpServletRequest request) { List<List<DateEntry>> allLongWeekends = new ArrayList<List<DateEntry>>(); String startDate = request.getParameter("startDate"); String endDate = request.getParameter("endDate"); getUserDates(request); //Set up...
diff --git a/src/java/org/wings/plaf/css/ProgressBarCG.java b/src/java/org/wings/plaf/css/ProgressBarCG.java index 1b3f8aac..ee1e088a 100644 --- a/src/java/org/wings/plaf/css/ProgressBarCG.java +++ b/src/java/org/wings/plaf/css/ProgressBarCG.java @@ -1,141 +1,141 @@ /* * $Id$ * Copyright 2000,2005 wingS developmen...
false
true
public void writeContent(final Device device, final SComponent _c) throws IOException { final SProgressBar component = (SProgressBar) _c; //--- code from write-template. String style = component.getStyle(); /* FIXME: The problem here is that the com...
public void writeContent(final Device device, final SComponent _c) throws IOException { final SProgressBar component = (SProgressBar) _c; //--- code from write-template. String style = component.getStyle(); /* FIXME: The problem here is that the com...
diff --git a/src/main/java/net/h31ix/anticheat/Anticheat.java b/src/main/java/net/h31ix/anticheat/Anticheat.java index 20ee1d3..16043e6 100644 --- a/src/main/java/net/h31ix/anticheat/Anticheat.java +++ b/src/main/java/net/h31ix/anticheat/Anticheat.java @@ -1,331 +1,331 @@ /* * AntiCheat for Bukkit. * Copyright (C)...
true
true
public void onEnable() { manager = new AnticheatManager(this); config = manager.getConfiguration(); checkConfig(); verbose = config.verboseStartup(); updateFolder = config.updateFolder(); checkForUpdate(); eventList.add(new PlayerListener()); even...
public void onEnable() { manager = new AnticheatManager(this); config = manager.getConfiguration(); checkConfig(); verbose = config.verboseStartup(); updateFolder = config.updateFolder(); checkForUpdate(); eventList.add(new PlayerListener()); even...
diff --git a/plugins/transformer/handle/src/main/java/au/edu/usq/fascinator/redbox/plugins/handle/HandleTransformer.java b/plugins/transformer/handle/src/main/java/au/edu/usq/fascinator/redbox/plugins/handle/HandleTransformer.java index f820cfa..56cb6ba 100644 --- a/plugins/transformer/handle/src/main/java/au/edu/usq/f...
true
true
public DigitalObject transform(DigitalObject in, String jsonConfig) throws TransformerException { // Read item config and reset before we start JsonSimpleConfig itemConfig = null; try { itemConfig = new JsonSimpleConfig(jsonConfig); } catch (IOException ex) { ...
public DigitalObject transform(DigitalObject in, String jsonConfig) throws TransformerException { // Read item config and reset before we start JsonSimpleConfig itemConfig = null; try { itemConfig = new JsonSimpleConfig(jsonConfig); } catch (IOException ex) { ...
diff --git a/src/main/java/com/solidstategroup/radar/web/panels/DemographicsPanel.java b/src/main/java/com/solidstategroup/radar/web/panels/DemographicsPanel.java index 51ad013e..891005d5 100644 --- a/src/main/java/com/solidstategroup/radar/web/panels/DemographicsPanel.java +++ b/src/main/java/com/solidstategroup/radar...
false
true
public DemographicsPanel(String id, final IModel<Long> radarNumberModel) { super(id); setOutputMarkupId(true); setOutputMarkupPlaceholderTag(true); // Set up model - if given radar number loadable detachable getting demographics by radar number final CompoundPropertyModel<De...
public DemographicsPanel(String id, final IModel<Long> radarNumberModel) { super(id); setOutputMarkupId(true); setOutputMarkupPlaceholderTag(true); // Set up model - if given radar number loadable detachable getting demographics by radar number final CompoundPropertyModel<De...
diff --git a/BetterWifiOnOff/src/com/asksven/betterwifionoff/WifiOffAlarmReceiver.java b/BetterWifiOnOff/src/com/asksven/betterwifionoff/WifiOffAlarmReceiver.java index 5e4c7b7..c6aeacf 100644 --- a/BetterWifiOnOff/src/com/asksven/betterwifionoff/WifiOffAlarmReceiver.java +++ b/BetterWifiOnOff/src/com/asksven/betterwif...
true
true
public void onReceive(Context context, Intent intent) { Log.d(TAG, "Alarm received: preparing to turn Wifi off"); EventLogger.getInstance(context).addStatusChangedEvent(context.getString(R.string.event_alarm)); try { //SharedPreferences prefs = PreferenceManager.getDefaultSharedPreferences(context.getAppli...
public void onReceive(Context context, Intent intent) { Log.d(TAG, "Alarm received: preparing to turn Wifi off"); EventLogger.getInstance(context).addStatusChangedEvent(context.getString(R.string.event_alarm)); try { //SharedPreferences prefs = PreferenceManager.getDefaultSharedPreferences(context.getAppli...
diff --git a/src/com/herocraftonline/dev/heroes/skill/skills/SkillPort.java b/src/com/herocraftonline/dev/heroes/skill/skills/SkillPort.java index dea6f204..a418b1cf 100644 --- a/src/com/herocraftonline/dev/heroes/skill/skills/SkillPort.java +++ b/src/com/herocraftonline/dev/heroes/skill/skills/SkillPort.java @@ -1,34 ...
false
true
public boolean use(Hero hero, String[] args) { Player player = hero.getPlayer(); if (getSetting(hero.getHeroClass(), args[0].toLowerCase(), null) != null) { String[] splitArg = getSetting(hero.getHeroClass(), args[0], null).split(":"); player.teleport(new Location(hero.getPla...
public boolean use(Hero hero, String[] args) { Player player = hero.getPlayer(); if (getSetting(hero.getHeroClass(), args[0].toLowerCase(), null) != null) { try { String[] splitArg = getSetting(hero.getHeroClass(), args[0].toLowerCase(), null).split(":"); player.t...
diff --git a/src/org/linphone/EditContactFragment.java b/src/org/linphone/EditContactFragment.java index c442ad4..019af59 100644 --- a/src/org/linphone/EditContactFragment.java +++ b/src/org/linphone/EditContactFragment.java @@ -1,527 +1,527 @@ package org.linphone; import java.io.InputStream; import java.util.Arr...
false
true
public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) { this.inflater = inflater; Contact contact = null; if (getArguments() != null && getArguments().getSerializable("Contact") != null) { contact = (Contact) getArguments().getSerializable("Contact"); isNewCon...
public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) { this.inflater = inflater; Contact contact = null; if (getArguments() != null && getArguments().getSerializable("Contact") != null) { contact = (Contact) getArguments().getSerializable("Contact"); isNewCon...
diff --git a/treeview/src/main/uk/ac/starlink/treeview/Driver.java b/treeview/src/main/uk/ac/starlink/treeview/Driver.java index 8744999b2..8155de136 100644 --- a/treeview/src/main/uk/ac/starlink/treeview/Driver.java +++ b/treeview/src/main/uk/ac/starlink/treeview/Driver.java @@ -1,215 +1,216 @@ package uk.ac.starlink...
false
true
public static void main( String[] args ) { boolean textView = false; short orient = StaticTreeViewer.DETAIL_BESIDE; /* Get the name we are running under. */ String cmdName = System.getProperty( CMDNAME_PROPERTY ); if ( cmdName == null ) { cmdName = "...
public static void main( String[] args ) { boolean textView = false; short orient = StaticTreeViewer.DETAIL_BESIDE; /* Get the name we are running under. */ String cmdName = System.getProperty( CMDNAME_PROPERTY ); if ( cmdName == null ) { cmdName = "...
diff --git a/jpa-moxy/jpa-moxy.simple/src/main/java/eclipselink/example/jpamoxy/simple/InitDB.java b/jpa-moxy/jpa-moxy.simple/src/main/java/eclipselink/example/jpamoxy/simple/InitDB.java index 3c068af..8893a33 100755 --- a/jpa-moxy/jpa-moxy.simple/src/main/java/eclipselink/example/jpamoxy/simple/InitDB.java +++ b/jpa-m...
true
true
public static void main(String[] args) { Map<String, Object> properties = new HashMap<String, Object>(); properties.put("eclipselink.ddl-generation", "drop-and-create-tables"); properties.put("eclipselink.ddl-generation.output-mode", "database"); properties.put("eclipselink.logging.level", "FINE"); EntityMan...
public static void main(String[] args) { Map<String, Object> properties = new HashMap<>(); properties.put("eclipselink.ddl-generation", "drop-and-create-tables"); properties.put("eclipselink.ddl-generation.output-mode", "database"); properties.put("eclipselink.logging.level", "FINE"); EntityManagerFactory em...
diff --git a/src/com/bekvon/bukkit/residence/Residence.java b/src/com/bekvon/bukkit/residence/Residence.java index 06ecb46..e1568eb 100644 --- a/src/com/bekvon/bukkit/residence/Residence.java +++ b/src/com/bekvon/bukkit/residence/Residence.java @@ -1,1926 +1,1928 @@ /* * To change this template, choose Tools | Templ...
false
true
public boolean onCommand(CommandSender sender, Command command, String label, String[] args) { ResidenceCommandEvent cevent = new ResidenceCommandEvent(command.getName(),args,sender); server.getPluginManager().callEvent(cevent); if(cevent.isCancelled()) return true; if(co...
public boolean onCommand(CommandSender sender, Command command, String label, String[] args) { ResidenceCommandEvent cevent = new ResidenceCommandEvent(command.getName(),args,sender); server.getPluginManager().callEvent(cevent); if(cevent.isCancelled()) return true; if(co...
diff --git a/src/org/rsbot/script/methods/Walking.java b/src/org/rsbot/script/methods/Walking.java index f51995e7..9b15c675 100644 --- a/src/org/rsbot/script/methods/Walking.java +++ b/src/org/rsbot/script/methods/Walking.java @@ -1,551 +1,567 @@ package org.rsbot.script.methods; import org.rsbot.script.wrappers.*;...
true
true
public boolean walkTileMM(final RSTile t, final int x, final int y) { RSTile dest = new RSTile(t.getX() + random(0, x), t.getY() + random(0, y)); if (!methods.calc.tileOnMap(dest)) { dest = getClosestTileOnMap(dest); } Point p = methods.calc.tileToMinimap(dest); if (p.x != -1 && p.y != -1) { int xx...
public boolean walkTileMM(final RSTile t, final int x, final int y) { /*RSTile dest = new RSTile(t.getX() + random(0, x), t.getY() + random(0, y)); You can't just add randomness to the tile, it should be subtracted.*/ int xx = dest.getX(), yy = dest.getY(); if (x > 0) { if (random(1, 2) == random(1, 2)) ...
diff --git a/packages/SystemUI/src/com/android/systemui/quicksettings/HybridTile.java b/packages/SystemUI/src/com/android/systemui/quicksettings/HybridTile.java index 1168d19b..07d63c74 100644 --- a/packages/SystemUI/src/com/android/systemui/quicksettings/HybridTile.java +++ b/packages/SystemUI/src/com/android/systemui...
false
true
public HybridTile(Context context, LayoutInflater inflater, QuickSettingsContainerView container, QuickSettingsController qsc, Handler handler) { super(context, inflater, container, qsc); mContext = context; mDefaultLabel = context.getString(R.string.quick_settings_hybrid_label)...
public HybridTile(Context context, LayoutInflater inflater, QuickSettingsContainerView container, QuickSettingsController qsc, Handler handler) { super(context, inflater, container, qsc); mDefaultLabel = context.getString(R.string.quick_settings_hybrid_label); mLabel = mDefaultL...
diff --git a/m3base/src/main/java/org/jcoderz/m3util/intern/util/Environment.java b/m3base/src/main/java/org/jcoderz/m3util/intern/util/Environment.java index 62acb75..a64b5d3 100644 --- a/m3base/src/main/java/org/jcoderz/m3util/intern/util/Environment.java +++ b/m3base/src/main/java/org/jcoderz/m3util/intern/util/Envi...
true
true
public static synchronized File getLibraryHome() { if (m3LibraryHome != null) { String root = System.getProperty(M3_LIBRARY_HOME_KEY); if (root == null) { root = System.getenv(M3_LIBRARY_HOME_KEY); } File rootFolder = null; if (root...
public static synchronized File getLibraryHome() { if (m3LibraryHome == null) { String root = System.getProperty(M3_LIBRARY_HOME_KEY); if (root == null) { root = System.getenv(M3_LIBRARY_HOME_KEY); } File rootFolder = null; if (root...
diff --git a/src/pspnetparty/client/swt/ConnectAddressDialog.java b/src/pspnetparty/client/swt/ConnectAddressDialog.java index 89fddf9..0570573 100644 --- a/src/pspnetparty/client/swt/ConnectAddressDialog.java +++ b/src/pspnetparty/client/swt/ConnectAddressDialog.java @@ -1,134 +1,141 @@ /* Copyright (C) 2011 monte ...
true
true
protected Control createDialogArea(Composite parent) { Composite composite = new Composite(parent, SWT.NONE); composite.setLayout(new GridLayout(4, false)); composite.setLayoutData(new GridData(SWT.FILL, SWT.CENTER, true, false)); GridData gridData; { Label label = new Label(composite, SWT.NONE); lab...
protected Control createDialogArea(Composite parent) { Composite composite = new Composite(parent, SWT.NONE); composite.setLayout(new GridLayout(4, false)); composite.setLayoutData(new GridData(SWT.FILL, SWT.CENTER, true, false)); GridData gridData; { Label label = new Label(composite, SWT.NONE); lab...
diff --git a/src/main/java/org/apache/commons/net/ftp/parser/MLSxEntryParser.java b/src/main/java/org/apache/commons/net/ftp/parser/MLSxEntryParser.java index 9050eb2c..7abf5ecf 100644 --- a/src/main/java/org/apache/commons/net/ftp/parser/MLSxEntryParser.java +++ b/src/main/java/org/apache/commons/net/ftp/parser/MLSxEn...
false
true
public FTPFile parseFTPEntry(String entry) { String parts[] = entry.split(" ",2); // Path may contain space if (parts.length != 2) { return null; } FTPFile file = new FTPFile(); file.setRawListing(entry); file.setName(parts[1]); String[] facts = pa...
public FTPFile parseFTPEntry(String entry) { String parts[] = entry.split(" ",2); // Path may contain space if (parts.length != 2) { return null; } FTPFile file = new FTPFile(); file.setRawListing(entry); file.setName(parts[1]); String[] facts = pa...
diff --git a/src/main/java/org/gatein/portal/examples/games/entities/Games.java b/src/main/java/org/gatein/portal/examples/games/entities/Games.java index 89ed762..400f813 100644 --- a/src/main/java/org/gatein/portal/examples/games/entities/Games.java +++ b/src/main/java/org/gatein/portal/examples/games/entities/Games....
true
true
public boolean equals(Object object) { // TODO: Warning - this method won't work in the case the id fields are not set if (!(object instanceof Games)) { return false; } Games other = (Games) object; if ((this.id == null && other.id != null) |...
public boolean equals(Object object) { if (!(object instanceof Games)) { return false; } Games other = (Games) object; if ((this.id == null && other.id != null) || (this.id != null && !this.id.equals(other.id))) { retu...
diff --git a/jsf/plugins/org.eclipse.jst.pagedesigner/src/org/eclipse/jst/pagedesigner/dtmanager/converter/internal/provisional/DTTagConverter.java b/jsf/plugins/org.eclipse.jst.pagedesigner/src/org/eclipse/jst/pagedesigner/dtmanager/converter/internal/provisional/DTTagConverter.java index cbb1dc2e5..45083b396 100644 -...
false
true
public void copyChildren(Element srcElement, Element destElement) { NodeList childNodes = srcElement.getChildNodes(); for (int i = 0; i < childNodes.getLength(); i++) { Node curNode = childNodes.item(i); if ( curNode.getNodeType() == Node.ELEMENT_NODE || curNode.getNodeType() == Node.TEXT_NODE || ...
public void copyChildren(Element srcElement, Element destElement) { int index = 0; NodeList childNodes = srcElement.getChildNodes(); for (int i = 0; i < childNodes.getLength(); i++) { Node curNode = childNodes.item(i); if ( curNode.getNodeType() == Node.ELEMENT_NODE || curNode.getNodeType() == N...
diff --git a/sensor/src/main/java/dk/dtu/imm/distributedsystems/projects/sensornetwork/sensor/Sensor.java b/sensor/src/main/java/dk/dtu/imm/distributedsystems/projects/sensornetwork/sensor/Sensor.java index d8848f4..7bbc11c 100644 --- a/sensor/src/main/java/dk/dtu/imm/distributedsystems/projects/sensornetwork/sensor/Se...
true
true
public static void main(String[] args) { if (args.length != 1) { System.out .println("Please provide only one parameter - a suitable property file"); return; } Sensor sensor = null; try { sensor = SensorUtility.getSensorInstance(args[0]); } catch (NodeInitializationException e) { System.o...
public static void main(String[] args) { if (args.length != 1) { System.out .println("Please provide only one parameter - a suitable property file"); return; } Sensor sensor = null; try { sensor = SensorUtility.getSensorInstance(args[0]); } catch (NodeInitializationException e) { System.o...
diff --git a/src/files/Rewriter.java b/src/files/Rewriter.java index cdb5ad3..4490be4 100644 --- a/src/files/Rewriter.java +++ b/src/files/Rewriter.java @@ -1,100 +1,100 @@ package files; import java.io.BufferedReader; import java.io.File; import java.io.IOException; import java.io.InputStream; import java.io.I...
true
true
public Rewriter() throws IOException { //Ready input and outputs InputStream b = getClass().getResourceAsStream("kdv_unload.txt"); BufferedReader input = new BufferedReader(new InputStreamReader(b)); File road_1 = new File("./src/Files/highways.txt"); File road_2 = new File("./src/Files/expressway...
public Rewriter() throws IOException { //Ready input and outputs InputStream b = getClass().getResourceAsStream("kdv_unload.txt"); BufferedReader input = new BufferedReader(new InputStreamReader(b)); File road_1 = new File("./src/Files/highways.txt"); File road_2 = new File("./src/Files/expressway...
diff --git a/src/main/java/archimulator/service/impl/ExperimentServiceImpl.java b/src/main/java/archimulator/service/impl/ExperimentServiceImpl.java index 0d03a94f..abff90af 100644 --- a/src/main/java/archimulator/service/impl/ExperimentServiceImpl.java +++ b/src/main/java/archimulator/service/impl/ExperimentServiceImp...
true
true
public void initialize() { this.cleanUpExperiments(); //TODO: to be exposed as import/upload experiment pack via web UI try { TransactionManager.callInTransaction(getConnectionSource(), new Callable<Void>() { public Void call() throws...
public void initialize() { this.cleanUpExperiments(); //TODO: to be exposed as import/upload experiment pack via web UI try { TransactionManager.callInTransaction(getConnectionSource(), new Callable<Void>() { public Void call() throws...
diff --git a/TFC_Shared/src/TFC/TileEntities/TileEntityForge.java b/TFC_Shared/src/TFC/TileEntities/TileEntityForge.java index 8e07250a9..eaafc6380 100644 --- a/TFC_Shared/src/TFC/TileEntities/TileEntityForge.java +++ b/TFC_Shared/src/TFC/TileEntities/TileEntityForge.java @@ -1,723 +1,724 @@ package TFC.TileEntities; ...
true
true
public void careForInventorySlot(int i, float startTemp) { NBTTagCompound inputCompound; float mod = 1; if(i == 0) { if(fireItemStacks[5] != null) { mod = 0.8F; } else { mod = 0.6F; if(fireItemSta...
public void careForInventorySlot(int i, float startTemp) { NBTTagCompound inputCompound; float mod = 1; if(i == 0) { if(fireItemStacks[5] != null) { mod = 0.8F; } else { mod = 0.6F; if(fireItemSta...
diff --git a/src/org/jwildfire/create/tina/variation/EllipticFunc.java b/src/org/jwildfire/create/tina/variation/EllipticFunc.java index 1febb04d..2a62298e 100644 --- a/src/org/jwildfire/create/tina/variation/EllipticFunc.java +++ b/src/org/jwildfire/create/tina/variation/EllipticFunc.java @@ -1,66 +1,67 @@ /* JWil...
true
true
public void transform(FlameTransformationContext pContext, XForm pXForm, XYZPoint pAffineTP, XYZPoint pVarTP, double pAmount) { double tmp = pAffineTP.y * pAffineTP.y + pAffineTP.x * pAffineTP.x + 1.0; double x2 = 2.0 * pAffineTP.x; double xmax = 0.5 * (sqrt(tmp + x2) + sqrt(tmp - x2)); double a = pA...
public void transform(FlameTransformationContext pContext, XForm pXForm, XYZPoint pAffineTP, XYZPoint pVarTP, double pAmount) { double tmp = pAffineTP.y * pAffineTP.y + pAffineTP.x * pAffineTP.x + 1.0; double x2 = 2.0 * pAffineTP.x; double xmax = 0.5 * (sqrt(tmp + x2) + sqrt(tmp - x2)); double a = pA...
diff --git a/jsf_chat/src/main/java/catchatbb/AddUserBB.java b/jsf_chat/src/main/java/catchatbb/AddUserBB.java index 12efc4a..cc41138 100644 --- a/jsf_chat/src/main/java/catchatbb/AddUserBB.java +++ b/jsf_chat/src/main/java/catchatbb/AddUserBB.java @@ -1,64 +1,62 @@ /* * To change this template, choose Tools | Templ...
false
true
public String register() { UserAccount user = new UserAccount(username, password); System.out.println(username); System.out.println(password); chat = ChatFactory.getChat(PU); if(chat.getByName(username)==null){ chat.add(user); return "REGISTERE...
public String register() { chat = ChatFactory.getChat(PU); if(chat.getByName(username)==null){ UserAccount user = new UserAccount(username, password); chat.add(user); return "REGISTER_SUCCESS"; } else{ return "REGISTER_FAIL"; } ...
diff --git a/gatekeeper-agent/src/main/java/com/xorlev/gatekeeper/nginx/PidReader.java b/gatekeeper-agent/src/main/java/com/xorlev/gatekeeper/nginx/PidReader.java index 290f7dd..7f04cee 100644 --- a/gatekeeper-agent/src/main/java/com/xorlev/gatekeeper/nginx/PidReader.java +++ b/gatekeeper-agent/src/main/java/com/xorlev...
true
true
public int getPid() { try { BufferedReader reader = new BufferedReader(new FileReader(pidFile)); String line = reader.readLine(); return Integer.parseInt(line); } catch (NumberFormatException e) { throw new InvalidPidException("Could not parse pid", e...
public int getPid() { try { BufferedReader reader = new BufferedReader(new FileReader(pidFile)); String line = reader.readLine(); return Integer.parseInt(line); } catch (NumberFormatException e) { throw new InvalidPidException("Could not parse pid", e...
diff --git a/src/uk/ac/gla/dcs/tp3/w/algorithm/Graph.java b/src/uk/ac/gla/dcs/tp3/w/algorithm/Graph.java index af27fef..f99a65c 100644 --- a/src/uk/ac/gla/dcs/tp3/w/algorithm/Graph.java +++ b/src/uk/ac/gla/dcs/tp3/w/algorithm/Graph.java @@ -1,147 +1,147 @@ package uk.ac.gla.dcs.tp3.w.algorithm; import java.util.Lin...
true
true
public Graph(League l, Team t) { if (l == null || t == null) return; // Number of team nodes is one less than total number of teams. // The team nodes do not include the team being tested for elimination. int teamTotal = l.getTeams().length; // The r-combination of teamTotal for length 2 is the number of ...
public Graph(League l, Team t) { if (l == null || t == null) return; // Number of team nodes is one less than total number of teams. // The team nodes do not include the team being tested for elimination. int teamTotal = l.getTeams().length; // The r-combination of teamTotal for length 2 is the number of ...
diff --git a/org.eclipse.stem.jobs/src/org/eclipse/stem/jobs/simulation/Simulation.java b/org.eclipse.stem.jobs/src/org/eclipse/stem/jobs/simulation/Simulation.java index 88248411..7fcabbf9 100644 --- a/org.eclipse.stem.jobs/src/org/eclipse/stem/jobs/simulation/Simulation.java +++ b/org.eclipse.stem.jobs/src/org/eclips...
true
true
protected IStatus run(final IProgressMonitor monitor) { IStatus retValue = Status.OK_STATUS; try { setSimulationState(SimulationState.RUNNING); keepRunning = true; // Did we get a request to reset? if (reset) { // Yes scenario.reset(); reset = false; } assert scenario.sane(); ...
protected IStatus run(final IProgressMonitor monitor) { IStatus retValue = Status.OK_STATUS; try { setSimulationState(SimulationState.RUNNING); keepRunning = true; // Did we get a request to reset? if (reset) { // Yes scenario.reset(); reset = false; } assert scenario.sane(); ...
diff --git a/src/java/org/jivesoftware/spark/ui/status/StatusBar.java b/src/java/org/jivesoftware/spark/ui/status/StatusBar.java index e2f4e36f..d7c96589 100644 --- a/src/java/org/jivesoftware/spark/ui/status/StatusBar.java +++ b/src/java/org/jivesoftware/spark/ui/status/StatusBar.java @@ -1,555 +1,557 @@ /** * $Rev...
false
true
public void showPopup(MouseEvent e) { final JPopupMenu popup = new JPopupMenu(); List custom = CustomMessages.load(); if (custom == null) { custom = new ArrayList(); } // Build menu from StatusList for(final StatusItem statusItem : statusList){ ...
public void showPopup(MouseEvent e) { final JPopupMenu popup = new JPopupMenu(); List custom = CustomMessages.load(); if (custom == null) { custom = new ArrayList(); } // Build menu from StatusList for (final StatusItem statusItem : statusList) { ...
diff --git a/org.eclipse.search.tests/src/org/eclipse/search/tests/filesearch/AnnotationManagerTest.java b/org.eclipse.search.tests/src/org/eclipse/search/tests/filesearch/AnnotationManagerTest.java index 37fccca73..25579e596 100644 --- a/org.eclipse.search.tests/src/org/eclipse/search/tests/filesearch/AnnotationManage...
false
true
public void testAddAnnotation() throws Exception { NewSearchUI.runQueryInForeground(null, fQuery1); AbstractTextSearchResult result= (AbstractTextSearchResult) fQuery1.getSearchResult(); Object[] files= result.getElements(); try { for (int i= 0; i < files.length; i++) { IFile file= (IFile) files[0]; ...
public void testAddAnnotation() throws Exception { NewSearchUI.runQueryInForeground(null, fQuery1); AbstractTextSearchResult result= (AbstractTextSearchResult) fQuery1.getSearchResult(); Object[] files= result.getElements(); try { System.out.println("AnnotationManagerTest.testAddAnnotation> file count: = " ...
diff --git a/src/main/java/iTests/framework/testng/report/LogFetcher.java b/src/main/java/iTests/framework/testng/report/LogFetcher.java index 2bfd01d..b71e581 100644 --- a/src/main/java/iTests/framework/testng/report/LogFetcher.java +++ b/src/main/java/iTests/framework/testng/report/LogFetcher.java @@ -1,312 +1,312 @@...
true
true
private static void createLogs(String tagToSearch, String buildNumber, File testFolder) throws IOException { Set<String> fileNames = new HashSet<String>(); Properties props; try { LogUtils.log("SGTEST ROOT DIR IS - " + SGTestHelper.getSGTestRootDir()); props = IOUt...
private static void createLogs(String tagToSearch, String buildNumber, File testFolder) throws IOException { Set<String> fileNames = new HashSet<String>(); Properties props; try { LogUtils.log("SGTEST ROOT DIR IS - " + SGTestHelper.getSGTestRootDir()); props = IOUt...
diff --git a/deegree-datastores/deegree-tilestores/deegree-tilestore-geotiff/src/main/java/org/deegree/tile/persistence/geotiff/GeoTIFFTileMatrix.java b/deegree-datastores/deegree-tilestores/deegree-tilestore-geotiff/src/main/java/org/deegree/tile/persistence/geotiff/GeoTIFFTileMatrix.java index ddea476a59..33b13cba43 ...
true
true
public GeoTIFFTile getTile( int x, int y ) { double width = metadata.getTileWidth(); double height = metadata.getTileHeight(); Envelope env = metadata.getSpatialMetadata().getEnvelope(); double minx = width * x + env.getMin().get0() - metadata.getResolution() / 2; double miny...
public GeoTIFFTile getTile( int x, int y ) { double width = metadata.getTileWidth(); double height = metadata.getTileHeight(); Envelope env = metadata.getSpatialMetadata().getEnvelope(); double minx = width * x + env.getMin().get0(); double miny = env.getMax().get1() - height...
diff --git a/src/de/ueller/gps/tools/HelperRoutines.java b/src/de/ueller/gps/tools/HelperRoutines.java index be0a0b9f..d1be7430 100644 --- a/src/de/ueller/gps/tools/HelperRoutines.java +++ b/src/de/ueller/gps/tools/HelperRoutines.java @@ -1,206 +1,206 @@ /* * GpsMid - Copyright (c) 2007 Harald Mueller james22 at use...
false
true
public static final String formatDistance(float dist) { if (Configuration.getCfgBitState(Configuration.CFGBIT_METRIC)) { if (dist < 100) { return Integer.toString((int)dist) + "m"; } else if (dist < 1000) { return Integer.toString((int)(dist/10)*10) + "m"; } else if (dist < 10000) { return Float...
public static final String formatDistance(float dist) { if (Configuration.getCfgBitState(Configuration.CFGBIT_METRIC)) { if (dist < 100) { return Integer.toString((int)dist) + "m"; } else if (dist < 1000) { return Integer.toString((int)(dist/10)*10) + "m"; } else if (dist < 10000) { return Float...
diff --git a/src/org/zdevra/guice/mvc/MethodInvokerFilter.java b/src/org/zdevra/guice/mvc/MethodInvokerFilter.java index c5d38fb..c57603c 100644 --- a/src/org/zdevra/guice/mvc/MethodInvokerFilter.java +++ b/src/org/zdevra/guice/mvc/MethodInvokerFilter.java @@ -1,75 +1,75 @@ /*******************************************...
true
true
public ModelAndView invoke(InvokeData data) { if (!agreedWithRequestType(data.getReqType())) { return null; } String path = data.getRequest().getPathInfo(); if ((path == null) && (path.length() == 0)) { path = data.getRequest().getServletPath(); } Matcher m = pathPattern.matcher(path); ...
public ModelAndView invoke(InvokeData data) { if (!agreedWithRequestType(data.getReqType())) { return null; } String path = data.getRequest().getPathInfo(); if ((path == null) || (path.length() == 0)) { path = data.getRequest().getServletPath(); } Matcher m = pathPattern.matcher(path); ...
diff --git a/commons/src/main/java/org/soluvas/commons/shell/ExtCommandSupport.java b/commons/src/main/java/org/soluvas/commons/shell/ExtCommandSupport.java index bbd0382d..10bfeceb 100644 --- a/commons/src/main/java/org/soluvas/commons/shell/ExtCommandSupport.java +++ b/commons/src/main/java/org/soluvas/commons/shell/...
true
true
public Object execute(CommandSession session) throws Exception { final CommandRequestAttributes reqAttrs = new CommandRequestAttributes(session); try { // threadCommandSession.set(session); threadRequestAttributes.set(reqAttrs); try (ThreadLocalProgress progress = new ThreadLocalProgress(monitor)) { re...
public Object execute(CommandSession session) throws Exception { final CommandRequestAttributes reqAttrs = new CommandRequestAttributes(session); try { // threadCommandSession.set(session); threadRequestAttributes.set(reqAttrs); try (ThreadLocalProgress progress = new ThreadLocalProgress(monitor)) { re...
diff --git a/org.eclipse.mylyn.tasks.core/src/org/eclipse/mylyn/internal/tasks/core/ScheduledTaskContainer.java b/org.eclipse.mylyn.tasks.core/src/org/eclipse/mylyn/internal/tasks/core/ScheduledTaskContainer.java index 271c53dda..1c7e20bf0 100644 --- a/org.eclipse.mylyn.tasks.core/src/org/eclipse/mylyn/internal/tasks/c...
true
true
public Collection<ITask> getChildren() { // TODO: Cache this information until the next modification to pertinent data Set<ITask> children = new HashSet<ITask>(); // All tasks scheduled for this date range for (ITask task : activityManager.getScheduledTasks(range)) { if (!task.isCompleted()) { childr...
public Collection<ITask> getChildren() { // TODO: Cache this information until the next modification to pertinent data Set<ITask> children = new HashSet<ITask>(); // All tasks scheduled for this date range for (ITask task : activityManager.getScheduledTasks(range)) { if (!task.isCompleted() || (task...
diff --git a/app/pdf/PdfGenerator.java b/app/pdf/PdfGenerator.java index 334ade8..9550655 100644 --- a/app/pdf/PdfGenerator.java +++ b/app/pdf/PdfGenerator.java @@ -1,60 +1,60 @@ package pdf; import com.itextpdf.text.Font; import com.itextpdf.text.FontFactory; import play.Play; import java.io.File; import jav...
true
true
public PdfGenerator() { rootPath = Play.configuration.getProperty("my.pdf.resources.path"); String mode = Play.configuration.getProperty("application.mode"); if (mode.equals("dev")) { rootPath = "public/pdf/resources/"; } else { rootPath = "/public/pdf/reso...
public PdfGenerator() { rootPath = Play.configuration.getProperty("my.pdf.resources.path"); String mode = Play.configuration.getProperty("application.mode"); if (mode.equals("dev")) { rootPath = "public/pdf/resources/"; } else { rootPath = "/app/public/pdf/...
diff --git a/src/de/ueller/gpsmid/graphics/ImageCollector.java b/src/de/ueller/gpsmid/graphics/ImageCollector.java index 96e3f404..edbf8a63 100644 --- a/src/de/ueller/gpsmid/graphics/ImageCollector.java +++ b/src/de/ueller/gpsmid/graphics/ImageCollector.java @@ -1,709 +1,710 @@ /* * GpsMid - Copyright (c) 2007 Haral...
true
true
public void run() { PaintContext createPC = null; final byte MAXCRASHES = 5; byte crash = 0; do { try { while (!shutdown) { if (!needRedraw || suspended) { synchronized (this) { try { /* FIXME: We still have some situations where redraw is not done automatically immediately, ...
public void run() { PaintContext createPC = null; final byte MAXCRASHES = 5; byte crash = 0; do { try { while (!shutdown) { if (!needRedraw || suspended) { synchronized (this) { try { /* FIXME: We still have some situations where redraw is not done automatically immediately, ...
diff --git a/openFaces/source/org/openfaces/renderkit/input/SpinnerRenderer.java b/openFaces/source/org/openfaces/renderkit/input/SpinnerRenderer.java index 1207e04d7..e2df4d670 100644 --- a/openFaces/source/org/openfaces/renderkit/input/SpinnerRenderer.java +++ b/openFaces/source/org/openfaces/renderkit/input/SpinnerR...
true
true
protected InitScript renderInitScript(FacesContext context, DropDownComponent dropDown) throws IOException { Spinner spinner = (Spinner) dropDown; if (spinner.getStep().doubleValue() <= 0) { throw new FacesException("The 'step' attribute of <o:spinner> with id " + spinner.getClientId(con...
protected InitScript renderInitScript(FacesContext context, DropDownComponent dropDown) throws IOException { Spinner spinner = (Spinner) dropDown; if (spinner.getStep().doubleValue() <= 0) { throw new FacesException("The 'step' attribute of <o:spinner> with id " + spinner.getClientId(con...
diff --git a/apps/syndie/java/src/net/i2p/syndie/sml/HTMLPreviewRenderer.java b/apps/syndie/java/src/net/i2p/syndie/sml/HTMLPreviewRenderer.java index c528d8658..f8052742b 100644 --- a/apps/syndie/java/src/net/i2p/syndie/sml/HTMLPreviewRenderer.java +++ b/apps/syndie/java/src/net/i2p/syndie/sml/HTMLPreviewRenderer.java...
false
true
public void receiveEnd() { _postBodyBuffer.append("</td></tr>\n"); _postBodyBuffer.append("<tr ").append(getClass("summDetail")).append(" >\n"); _postBodyBuffer.append("<form action=\"").append(getAttachmentURLBase()).append("\">\n"); _postBodyBuffer.append("<td colspan=\"2\" valign...
public void receiveEnd() { _postBodyBuffer.append("</td></tr>\n"); _postBodyBuffer.append("<tr ").append(getClass("summDetail")).append(" >\n"); _postBodyBuffer.append("<form action=\"").append(getAttachmentURLBase()).append("\">\n"); _postBodyBuffer.append("<td colspan=\"2\" valign...
diff --git a/src/main/java/org/w3c/tidy/AttrCheckImpl.java b/src/main/java/org/w3c/tidy/AttrCheckImpl.java index 06215c4..1f73a83 100644 --- a/src/main/java/org/w3c/tidy/AttrCheckImpl.java +++ b/src/main/java/org/w3c/tidy/AttrCheckImpl.java @@ -1,935 +1,935 @@ /* * Java HTML Tidy - JTidy * HTML parser and pretty...
true
true
public void check(Lexer lexer, Node node, AttVal attval) { int escapeCount = 0; boolean backslashFound = false; if (!attval.hasValue()) { lexer.report.attrError(lexer, node, attval, ErrorCode.MISSING_ATTR_VALUE); return; } ...
public void check(Lexer lexer, Node node, AttVal attval) { int escapeCount = 0; boolean backslashFound = false; if (!attval.hasValue()) { lexer.report.attrError(lexer, node, attval, ErrorCode.MISSING_ATTR_VALUE); return; } ...
diff --git a/src/org/apache/xalan/templates/ElemVariable.java b/src/org/apache/xalan/templates/ElemVariable.java index 70a1fee2..94236aea 100644 --- a/src/org/apache/xalan/templates/ElemVariable.java +++ b/src/org/apache/xalan/templates/ElemVariable.java @@ -1,523 +1,527 @@ /* * The Apache Software License, Version ...
false
true
public XObject getValue(TransformerImpl transformer, int sourceNode) throws TransformerException { XObject var; XPathContext xctxt = transformer.getXPathContext(); xctxt.pushCurrentNode(sourceNode); try { if (null != m_selectPattern) { var = m_selectPattern.exec...
public XObject getValue(TransformerImpl transformer, int sourceNode) throws TransformerException { XObject var; XPathContext xctxt = transformer.getXPathContext(); xctxt.pushCurrentNode(sourceNode); try { if (null != m_selectPattern) { var = m_selectPattern.exec...
diff --git a/src/com/android/deskclock/DeskClock.java b/src/com/android/deskclock/DeskClock.java index f8b7129..e7060b5 100644 --- a/src/com/android/deskclock/DeskClock.java +++ b/src/com/android/deskclock/DeskClock.java @@ -1,733 +1,739 @@ /* * Copyright (C) 2009 The Android Open Source Project * * Licensed und...
false
true
private void initViews() { // give up any internal focus before we switch layouts final View focused = getCurrentFocus(); if (focused != null) focused.clearFocus(); setContentView(R.layout.desk_clock); mTime = (DigitalClock) findViewById(R.id.time); mDate = (TextVie...
private void initViews() { // give up any internal focus before we switch layouts final View focused = getCurrentFocus(); if (focused != null) focused.clearFocus(); setContentView(R.layout.desk_clock); mTime = (DigitalClock) findViewById(R.id.time); mDate = (TextVie...
diff --git a/src/main/java/com/conventnunnery/libraries/config/ConventConfigurationManager.java b/src/main/java/com/conventnunnery/libraries/config/ConventConfigurationManager.java index a79b5be..7231487 100644 --- a/src/main/java/com/conventnunnery/libraries/config/ConventConfigurationManager.java +++ b/src/main/java/...
true
true
public ConventConfigurationGroup loadConventConfigurationGroup(File directory) throws IllegalArgumentException { if (directory == null) { throw new IllegalArgumentException(directory.getPath() + " cannot be null"); } if (!directory.isDirectory()) { throw new IllegalArgumentException(directory.getPath() + "...
public ConventConfigurationGroup loadConventConfigurationGroup(File directory) throws IllegalArgumentException { if (directory == null) { throw new IllegalArgumentException(directory.getPath() + " cannot be null"); } if (!directory.isDirectory()) { throw new IllegalArgumentException(directory.getPath() + "...
diff --git a/Sara/src/teach/testrig/testTypes/StringIntToStringTest.java b/Sara/src/teach/testrig/testTypes/StringIntToStringTest.java index 1d0591a..2d1df84 100644 --- a/Sara/src/teach/testrig/testTypes/StringIntToStringTest.java +++ b/Sara/src/teach/testrig/testTypes/StringIntToStringTest.java @@ -1,16 +1,16 @@ pack...
true
true
public Object test(Object arg) { Object[] args = (Object[])arg; return test((String)args[0], (int)args[1]); }
public Object test(Object arg) { Object[] args = (Object[])arg; return test((String)args[0], Integer.parseInt((String)args[1])); }
diff --git a/qalingo-apis/qalingo-api-core/qalingo-api-core-common/src/main/java/fr/hoteia/qalingo/core/dao/impl/CustomerConnectionLogDaoImpl.java b/qalingo-apis/qalingo-api-core/qalingo-api-core-common/src/main/java/fr/hoteia/qalingo/core/dao/impl/CustomerConnectionLogDaoImpl.java index 57d82a53..9c7b4881 100644 --- a...
true
true
public List<CustomerConnectionLog> findCustomerConnectionLogsByCustomerIdAndAppCode(final Long customerId, final String appCode) { Session session = (Session) em.getDelegate(); String sql = "FROM CustomerConnectionLog WHERE userId = :customerId AND app = :appCode ORDER BY loginDate"; Query query = session.create...
public List<CustomerConnectionLog> findCustomerConnectionLogsByCustomerIdAndAppCode(final Long customerId, final String appCode) { Session session = (Session) em.getDelegate(); String sql = "FROM CustomerConnectionLog WHERE customerId = :customerId AND app = :appCode ORDER BY loginDate"; Query query = session.cr...
diff --git a/sos/sos-env/src/main/java/sorcer/installer/Installer.java b/sos/sos-env/src/main/java/sorcer/installer/Installer.java index 42afd4a1..5c3afdfb 100644 --- a/sos/sos-env/src/main/java/sorcer/installer/Installer.java +++ b/sos/sos-env/src/main/java/sorcer/installer/Installer.java @@ -1,462 +1,462 @@ /** * ...
true
true
public void install() { for (String group : groupDirMap.keySet()) { String dir = groupDirMap.get(group); String version = versionsMap.get(group); if (dir == null || version == null || !new File(Resolver.getRootDir() + "/" + dir).exists()) { logger.severe(...
public void install() { for (String group : groupDirMap.keySet()) { String dir = groupDirMap.get(group); String version = versionsMap.get(group); if (dir == null || version == null || !new File(Resolver.getRootDir() + "/" + dir).exists()) { logger.severe(...
diff --git a/src/com/xorcode/andtweet/AndTweetService.java b/src/com/xorcode/andtweet/AndTweetService.java index f5ea879d..866851b6 100644 --- a/src/com/xorcode/andtweet/AndTweetService.java +++ b/src/com/xorcode/andtweet/AndTweetService.java @@ -1,485 +1,485 @@ /* * Copyright (C) 2008 Torgny Bjers * * Licensed...
true
true
private void notifyNewTweets(int numTweets, int msgType) { // If no notifications are enabled, return if (!mNotificationsEnabled) { return; } final SharedPreferences sp = PreferenceManager.getDefaultSharedPreferences(getApplicationContext()); boolean notificationsMessages = sp.getBoolean("notifications_m...
private void notifyNewTweets(int numTweets, int msgType) { // If no notifications are enabled, return if (!mNotificationsEnabled) { return; } final SharedPreferences sp = PreferenceManager.getDefaultSharedPreferences(getApplicationContext()); boolean notificationsMessages = sp.getBoolean("notifications_m...
diff --git a/src/com/antonzherdev/objd/markers/ClassChildrenProvider.java b/src/com/antonzherdev/objd/markers/ClassChildrenProvider.java index b354e0e..b15a9cd 100644 --- a/src/com/antonzherdev/objd/markers/ClassChildrenProvider.java +++ b/src/com/antonzherdev/objd/markers/ClassChildrenProvider.java @@ -1,47 +1,53 @@ ...
false
true
protected void collectNavigationMarkers(@NotNull PsiElement element, Collection<? super RelatedItemLineMarkerInfo> result) { if(element instanceof ObjDClassStatement) { final ObjDClassName nmElement = ((ObjDClassStatement) element).getClassName(); final String name = nmElement.getNam...
protected void collectNavigationMarkers(@NotNull PsiElement element, Collection<? super RelatedItemLineMarkerInfo> result) { if(element instanceof ObjDClassStatement) { final ObjDClassName nmElement = ((ObjDClassStatement) element).getClassName(); final String name = nmElement.getNam...
diff --git a/src/main/java/trumpet/maven/util/TemplatingStatementLocator.java b/src/main/java/trumpet/maven/util/TemplatingStatementLocator.java index 465d2bf..01d39c7 100644 --- a/src/main/java/trumpet/maven/util/TemplatingStatementLocator.java +++ b/src/main/java/trumpet/maven/util/TemplatingStatementLocator.java @@ ...
true
true
public String locate(final String statementName, final StatementContext context) throws Exception { if (StringUtils.isEmpty(statementName)) { throw new IllegalStateException("Statement Name can not be empty/null!"); } if (statementName.charAt(0) == '#') { // Mult...
public String locate(final String statementName, final StatementContext context) throws Exception { if (StringUtils.isEmpty(statementName)) { throw new IllegalStateException("Statement Name can not be empty/null!"); } if (statementName.charAt(0) == '#') { // Mult...
diff --git a/src/jwsmv/wsman/operation/CreateOperation.java b/src/jwsmv/wsman/operation/CreateOperation.java index 59faeab..341e5e3 100755 --- a/src/jwsmv/wsman/operation/CreateOperation.java +++ b/src/jwsmv/wsman/operation/CreateOperation.java @@ -1,184 +1,192 @@ // Copyright (C) 2012 jOVAL.org. All rights reserved....
true
true
public Object dispatch(Port port) throws IOException, JAXBException, FaultException, FailedLoginException { Object obj = dispatch0(port); if (obj instanceof ResourceCreated) { // // ResourceCreated is ambiguous, so its children will be Nodes. We must determine the appropriate // type and un...
public Object dispatch(Port port) throws IOException, JAXBException, FaultException, FailedLoginException { Object obj = dispatch0(port); if (obj instanceof List) { for (Object elt : (List)obj) { if (elt instanceof ResourceCreated) { obj = elt; break; } } } if (obj instanceof Re...
diff --git a/src/com/android/camera/Storage.java b/src/com/android/camera/Storage.java index 564c0881..38a6d489 100644 --- a/src/com/android/camera/Storage.java +++ b/src/com/android/camera/Storage.java @@ -1,130 +1,136 @@ /* * Copyright (C) 2010 The Android Open Source Project * * Licensed under the Apache Lice...
true
true
public static Uri addImage(ContentResolver resolver, String title, long date, Location location, int orientation, byte[] jpeg, int width, int height) { // Save the image. String path = DIRECTORY + '/' + title + ".jpg"; FileOutputStream out = null; try { ou...
public static Uri addImage(ContentResolver resolver, String title, long date, Location location, int orientation, byte[] jpeg, int width, int height) { // Save the image. String path = DIRECTORY + '/' + title + ".jpg"; FileOutputStream out = null; try { ou...
diff --git a/src/test/java/org/molgenis/genotype/vcf/VcfVariantLineMapperTest.java b/src/test/java/org/molgenis/genotype/vcf/VcfVariantLineMapperTest.java index a0bb02c..27cf61c 100644 --- a/src/test/java/org/molgenis/genotype/vcf/VcfVariantLineMapperTest.java +++ b/src/test/java/org/molgenis/genotype/vcf/VcfVariantLin...
true
true
public void mapLineSnp() { String line = "1 565286 rs1578391 C T . flt NS=1;DP=5;AF=1.000;ANNOT=INT;GI=LOC100131754 GT:DP:EC:CONFS 1/1:5:5:5.300,5.300,1.000,1.000,1.000,1.000,1.000"; VariantLineMapper mapper = new VcfVariantLineMapper(COL_NAMES, Collections.<Annotation> emptyList(), Collections.<String, Stri...
public void mapLineSnp() { String line = "1 565286 rs1578391 C T . flt NS=1;DP=5;AF=1.000;ANNOT=INT;GI=LOC100131754 GT:DP:EC:CONFS 1/1:5:5:5.300,5.300,1.000,1.000,1.000,1.000,1.000"; VariantLineMapper mapper = new VcfVariantLineMapper(COL_NAMES, Collections.<Annotation> emptyList(), Collections.<String, Stri...
diff --git a/android-app/src/main/java/com/afzaln/mi_chat/resource/Page.java b/android-app/src/main/java/com/afzaln/mi_chat/resource/Page.java index aaa4551..4b62d36 100644 --- a/android-app/src/main/java/com/afzaln/mi_chat/resource/Page.java +++ b/android-app/src/main/java/com/afzaln/mi_chat/resource/Page.java @@ -1,2...
true
true
private Info processInfo(Node node) { NodeList infos = node.getChildNodes(); long userId = 0; String userName = null; int userRole = 0; int channelId = 0; String channelName = null; boolean loggedIn = true; if (infos.getLength() < 1) return null; ...
private Info processInfo(Node node) { NodeList infos = node.getChildNodes(); long userId = 0; String userName = null; int userRole = 0; int channelId = 0; String channelName = null; boolean loggedIn = true; if (infos.getLength() < 1) return null; ...
diff --git a/weechat-relay/src/com/ubergeek42/weechat/relay/messagehandler/HotlistManager.java b/weechat-relay/src/com/ubergeek42/weechat/relay/messagehandler/HotlistManager.java index 4b66162..7ae7186 100644 --- a/weechat-relay/src/com/ubergeek42/weechat/relay/messagehandler/HotlistManager.java +++ b/weechat-relay/src...
true
true
public void handleMessage(RelayObject obj, String id) { if (id.equals("_buffer_line_added")){ // New line added...what is it? Log.d(TAG, "buffer_line_added called"); Hdata hdata = (Hdata) obj; for(int i=0;i<hdata.getCount(); i++) { HdataEntry hde = hdata.getItem(i); // TODO: check last it...
public void handleMessage(RelayObject obj, String id) { if (id.equals("_buffer_line_added")){ // New line added...what is it? Log.d(TAG, "buffer_line_added called"); Hdata hdata = (Hdata) obj; for(int i=0;i<hdata.getCount(); i++) { HdataEntry hde = hdata.getItem(i); // TODO: check last it...
diff --git a/src/de/danoeh/antennapod/activity/MediaplayerActivity.java b/src/de/danoeh/antennapod/activity/MediaplayerActivity.java index 309f658a..272cd8b0 100644 --- a/src/de/danoeh/antennapod/activity/MediaplayerActivity.java +++ b/src/de/danoeh/antennapod/activity/MediaplayerActivity.java @@ -1,854 +1,856 @@ pack...
false
true
private void setupGUI() { setContentView(R.layout.mediaplayer_activity); sbPosition = (SeekBar) findViewById(R.id.sbPosition); txtvPosition = (TextView) findViewById(R.id.txtvPosition); txtvLength = (TextView) findViewById(R.id.txtvLength); butPlay = (ImageButton) findViewById(R.id.butPlay); butRev = (Imag...
private void setupGUI() { setContentView(R.layout.mediaplayer_activity); sbPosition = (SeekBar) findViewById(R.id.sbPosition); txtvPosition = (TextView) findViewById(R.id.txtvPosition); txtvLength = (TextView) findViewById(R.id.txtvLength); butPlay = (ImageButton) findViewById(R.id.butPlay); butRev = (Imag...
diff --git a/src/main/java/net/kingdomsofarden/andrew2060/anticombatlog/listeners/CombatLogListener.java b/src/main/java/net/kingdomsofarden/andrew2060/anticombatlog/listeners/CombatLogListener.java index f034938..e3f261b 100644 --- a/src/main/java/net/kingdomsofarden/andrew2060/anticombatlog/listeners/CombatLogListene...
true
true
public void onPlayerQuit(PlayerQuitEvent event) { Player p = event.getPlayer(); Hero h = heroes.getCharacterManager().getHero(event.getPlayer()); CombatInformation cI = Util.isInCombatWithPlayer(h); if(!cI.isInCombat()) { return; } if(p.getHealth() != 0) { String target = cI.getLastCombatant().get...
public void onPlayerQuit(PlayerQuitEvent event) { Player p = event.getPlayer(); Hero h = heroes.getCharacterManager().getHero(event.getPlayer()); CombatInformation cI = Util.isInCombatWithPlayer(h); if(!cI.isInCombat()) { return; } if(p.getHealth() != 0) { String target = cI.getLastCombatant().get...
diff --git a/java/src/eu/semaine/components/dummy/QueuingDummyBMLRealiser.java b/java/src/eu/semaine/components/dummy/QueuingDummyBMLRealiser.java index baeb85d8..981f2ef1 100644 --- a/java/src/eu/semaine/components/dummy/QueuingDummyBMLRealiser.java +++ b/java/src/eu/semaine/components/dummy/QueuingDummyBMLRealiser.ja...
true
true
public QueuingDummyBMLRealiser() throws JMSException { super("QueuingDummyBMLRealiser", "semaine.data.synthesis.prepare.plan", "semaine.data.synthesis.lowlevel.video.FAP", "semaine.data.synthesis.lowlevel.command", false); }
public QueuingDummyBMLRealiser() throws JMSException { super("QueuingDummyBMLRealiser", "semaine.data.synthesis.prepare", "semaine.data.synthesis.lowlevel.video.FAP", "semaine.data.synthesis.lowlevel.command", false); }
diff --git a/src/vialab/SMT/SMTZonePicker.java b/src/vialab/SMT/SMTZonePicker.java index c60b5b1..f311975 100644 --- a/src/vialab/SMT/SMTZonePicker.java +++ b/src/vialab/SMT/SMTZonePicker.java @@ -1,186 +1,187 @@ package vialab.SMT; import java.util.ArrayList; import java.util.Collections; import java.util.Linked...
false
true
public Zone pick(Touch t) { int pickColor = -1; // prevent ArrayOutOfBoundsException, although maybe this should be done // in Touch itself int x = t.x; int y = t.y; if (t.y >= applet.g.height) { y = applet.g.height - 1; } if (t.x >= applet.g.width) { x = applet.g.width - 1; } if (t.y < 0) {...
public Zone pick(Touch t) { int pickColor = -1; // prevent ArrayOutOfBoundsException, although maybe this should be done // in Touch itself int x = t.x; int y = t.y; if (t.y >= applet.g.height) { y = applet.g.height - 1; } if (t.x >= applet.g.width) { x = applet.g.width - 1; } if (t.y < 0) {...
diff --git a/src/core/org/apache/hadoop/ipc/RPC.java b/src/core/org/apache/hadoop/ipc/RPC.java index 94b0ec82e..5fe7b6fa6 100644 --- a/src/core/org/apache/hadoop/ipc/RPC.java +++ b/src/core/org/apache/hadoop/ipc/RPC.java @@ -1,575 +1,578 @@ /** * Licensed to the Apache Software Foundation (ASF) under one * or more...
true
true
public Writable call(Class<?> protocol, Writable param, long receivedTime) throws IOException { try { Invocation call = (Invocation)param; if (verbose) log("Call: " + call); Method method = protocol.getMethod(call.getMethodName(), call...
public Writable call(Class<?> protocol, Writable param, long receivedTime) throws IOException { try { Invocation call = (Invocation)param; if (verbose) log("Call: " + call); Method method = protocol.getMethod(call.getMethodName(), call...
diff --git a/src/com/android/settings/cyanogenmod/PerformanceSettings.java b/src/com/android/settings/cyanogenmod/PerformanceSettings.java index f3f6a81c..0c100e56 100644 --- a/src/com/android/settings/cyanogenmod/PerformanceSettings.java +++ b/src/com/android/settings/cyanogenmod/PerformanceSettings.java @@ -1,112 +1,...
true
true
public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); if (getPreferenceManager() != null) { addPreferencesFromResource(R.xml.performance_settings); PreferenceScreen prefSet = getPreferenceScreen(); String useDithering = SystemPr...
public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); if (getPreferenceManager() != null) { addPreferencesFromResource(R.xml.performance_settings); PreferenceScreen prefSet = getPreferenceScreen(); String useDithering = SystemPr...
diff --git a/src/com/jidesoft/plaf/aqua/AquaJideUtils.java b/src/com/jidesoft/plaf/aqua/AquaJideUtils.java index 8dfd12a6..759ef618 100644 --- a/src/com/jidesoft/plaf/aqua/AquaJideUtils.java +++ b/src/com/jidesoft/plaf/aqua/AquaJideUtils.java @@ -1,590 +1,590 @@ /* * @(#)AquaJideUtils.java * * Copyright 2002 JID...
false
true
public static void initComponentDefaults(UIDefaults table) { Toolkit toolkit = Toolkit.getDefaultToolkit(); WindowsDesktopProperty defaultTextColor = new WindowsDesktopProperty("win.button.textColor", table.get("controlText"), toolkit); Object defaultBackgroundColor = table.get("Panel.back...
public static void initComponentDefaults(UIDefaults table) { Toolkit toolkit = Toolkit.getDefaultToolkit(); WindowsDesktopProperty defaultTextColor = new WindowsDesktopProperty("win.button.textColor", table.get("controlText"), toolkit); Object defaultBackgroundColor = table.get("Panel.back...
diff --git a/me/hgilman/Spells/Executors/SpellCommandExecutor.java b/me/hgilman/Spells/Executors/SpellCommandExecutor.java index 554caa6..e08c0f4 100644 --- a/me/hgilman/Spells/Executors/SpellCommandExecutor.java +++ b/me/hgilman/Spells/Executors/SpellCommandExecutor.java @@ -1,85 +1,85 @@ package me.hgilman.Spells.Ex...
false
true
public boolean onCommand(CommandSender sender, Command command, String label, String[] args) { Player player; if(sender instanceof Player) { player = (Player) sender; if(command.getName().equalsIgnoreCase("spellinfo")) { if(player.getItemInHand().getType() == Material.GOLD_HOE) { if(args....
public boolean onCommand(CommandSender sender, Command command, String label, String[] args) { Player player; if(sender instanceof Player) { player = (Player) sender; if(command.getName().equalsIgnoreCase("spellinfo")) { if(player.getItemInHand().getType() == Material.GOLD_HOE) { if(args....
diff --git a/spock-core/src/main/java/org/spockframework/compiler/AstUtil.java b/spock-core/src/main/java/org/spockframework/compiler/AstUtil.java index 166987e0..ba77ace6 100755 --- a/spock-core/src/main/java/org/spockframework/compiler/AstUtil.java +++ b/spock-core/src/main/java/org/spockframework/compiler/AstUtil.ja...
true
true
public static Expression toArgumentArray(List<Expression> argList, IRewriteResourceProvider resourceProvider) { List<Expression> normalArgs = new ArrayList<Expression>(); List<Expression> spreadArgs = new ArrayList<Expression>(); List<ConstantExpression> spreadPositions = new ArrayList<ConstantExpression>...
public static Expression toArgumentArray(List<Expression> argList, IRewriteResourceProvider resourceProvider) { List<Expression> normalArgs = new ArrayList<Expression>(); List<Expression> spreadArgs = new ArrayList<Expression>(); List<Expression> spreadPositions = new ArrayList<Expression>(); for (in...