Datasets:

diff
stringlengths
262
553k
is_single_chunk
bool
2 classes
is_single_function
bool
1 class
buggy_function
stringlengths
20
391k
fixed_function
stringlengths
0
392k
diff --git a/src/FE_SRC_COMMON/com/ForgeEssentials/commands/CommandSpawn.java b/src/FE_SRC_COMMON/com/ForgeEssentials/commands/CommandSpawn.java index 7cf4f7f48..00aeef602 100644 --- a/src/FE_SRC_COMMON/com/ForgeEssentials/commands/CommandSpawn.java +++ b/src/FE_SRC_COMMON/com/ForgeEssentials/commands/CommandSpawn.java...
false
true
public void processCommandPlayer(EntityPlayer sender, String[] args) { if (args.length >= 1 && PermissionsAPI.checkPermAllowed(new PermQueryPlayer(sender, getCommandPerm() + ".others"))) { EntityPlayer player = FunctionHelper.getPlayerFromUsername(args[0]); if(PlayerSelector.hasArguments(args[0])) { ...
public void processCommandPlayer(EntityPlayer sender, String[] args) { if (args.length >= 1) { if(PermissionsAPI.checkPermAllowed(new PermQueryPlayer(sender, getCommandPerm() + ".others"))) { OutputHandler.chatError(sender, Localization.get(Localization.ERROR_NOPERMISSION)); } EntityPlayer player ...
diff --git a/src/main/java/mozart/core/validator/DateValidator.java b/src/main/java/mozart/core/validator/DateValidator.java index 6422211..e5d94ea 100644 --- a/src/main/java/mozart/core/validator/DateValidator.java +++ b/src/main/java/mozart/core/validator/DateValidator.java @@ -1,26 +1,27 @@ package mozart.core.vali...
true
true
public void validate(ErrorWrapper errorWrapper, Annotation annot, String paramName, String value) throws Exception { Date date = (Date) annot; String format = date.format(); try { DateTimeFormat.forPattern(format).parseDateTime(value); } catch (Exception e) { errorWrapper .registerError(...
public void validate(ErrorWrapper errorWrapper, Annotation annot, String paramName, String value) throws Exception { Date date = (Date) annot; String format = date.format(); try { DateTimeFormat.forPattern(format).parseDateTime(value); } catch (Exception e) { errorWrapper.registerError(new Erro...
diff --git a/src/jag/kumamoto/apps/StampRally/ArriveWatcherService.java b/src/jag/kumamoto/apps/StampRally/ArriveWatcherService.java index 6c6b3ac..426442f 100644 --- a/src/jag/kumamoto/apps/StampRally/ArriveWatcherService.java +++ b/src/jag/kumamoto/apps/StampRally/ArriveWatcherService.java @@ -1,532 +1,532 @@ packag...
true
true
@Override public void onLocationChanged(Location location) { LocationDistanceCalculator calc = new LocationDistanceCalculator( (float)location.getLatitude(), (float)location.getLongitude()); //許容誤差計算 float accuracy = location.getAccuracy(); float allowErrorRange = AllowErrroRange + accuracy; ...
@Override public void onLocationChanged(Location location) { LocationDistanceCalculator calc = new LocationDistanceCalculator( (float)location.getLatitude(), (float)location.getLongitude()); //許容誤差計算 float accuracy = location.getAccuracy(); float allowErrorRange = AllowErrroRange + accuracy; ...
diff --git a/src/com/android/email/activity/setup/AccountSettingsFragment.java b/src/com/android/email/activity/setup/AccountSettingsFragment.java index adbf8897..f82da289 100644 --- a/src/com/android/email/activity/setup/AccountSettingsFragment.java +++ b/src/com/android/email/activity/setup/AccountSettingsFragment.ja...
true
true
private void loadSettings() { // We can only do this once, so prevent repeat mLoaded = true; // Once loaded the data is ready to be saved, as well mSaveOnExit = false; PreferenceCategory topCategory = (PreferenceCategory) findPreference(PREFERENCE_CATEGORY_TOP); ...
private void loadSettings() { // We can only do this once, so prevent repeat mLoaded = true; // Once loaded the data is ready to be saved, as well mSaveOnExit = false; PreferenceCategory topCategory = (PreferenceCategory) findPreference(PREFERENCE_CATEGORY_TOP); ...
diff --git a/srcj/com/sun/electric/tool/routing/InteractiveRouter.java b/srcj/com/sun/electric/tool/routing/InteractiveRouter.java index 89e7e8228..0ffca8b0c 100644 --- a/srcj/com/sun/electric/tool/routing/InteractiveRouter.java +++ b/srcj/com/sun/electric/tool/routing/InteractiveRouter.java @@ -1,1493 +1,1498 @@ /* -...
true
true
public Route planRoute(Cell cell, ElectricObject startObj, ElectricObject endObj, Point2D clicked, PolyMerge stayInside, boolean extendArcHead, boolean extendArcTail, Rectangle2D contactArea, Dimension2D alignment) { EditingPreferences ep = cell.getEditingPreferences(); Route route = new Ro...
public Route planRoute(Cell cell, ElectricObject startObj, ElectricObject endObj, Point2D clicked, PolyMerge stayInside, boolean extendArcHead, boolean extendArcTail, Rectangle2D contactArea, Dimension2D alignment) { EditingPreferences ep = cell.getEditingPreferences(); Route route = new Ro...
diff --git a/src/main/java/net/slintes/raspi/RaspiFunAmpelAndMatrix.java b/src/main/java/net/slintes/raspi/RaspiFunAmpelAndMatrix.java index 2cdd3c9..8b48b41 100644 --- a/src/main/java/net/slintes/raspi/RaspiFunAmpelAndMatrix.java +++ b/src/main/java/net/slintes/raspi/RaspiFunAmpelAndMatrix.java @@ -1,60 +1,60 @@ pack...
true
true
public static void main(String[] args) throws IOException { Adafruit8x8LEDMatrix leds = new Adafruit8x8LEDMatrix(I2C_BUS_NR, LED_PACK_ADDRESS); Ampel ampel = new Ampel(GPIO_PIN_RED, GPIO_PIN_YELLOW, GPIO_PIN_GREEN); while(true){ for (int row = 0; row < 8; row++) { ...
public static void main(String[] args) throws IOException { Adafruit8x8LEDMatrix leds = new Adafruit8x8LEDMatrix(I2C_BUS_NR, LED_PACK_ADDRESS); Ampel ampel = new Ampel(GPIO_PIN_RED, GPIO_PIN_YELLOW, GPIO_PIN_GREEN); while(true){ for (int row = 0; row < 8; row++) { ...
diff --git a/CSipSimple/src/com/csipsimple/utils/CollectLogs.java b/CSipSimple/src/com/csipsimple/utils/CollectLogs.java index 49218f69..b0437139 100644 --- a/CSipSimple/src/com/csipsimple/utils/CollectLogs.java +++ b/CSipSimple/src/com/csipsimple/utils/CollectLogs.java @@ -1,225 +1,225 @@ /** * Copyright (C) 2010-2...
true
true
public static Intent getLogReportIntent(String userComment, Context ctx) { LogResult logs = getLogs(ctx); Intent sendIntent = new Intent(Intent.ACTION_SEND); sendIntent.putExtra(Intent.EXTRA_SUBJECT, "CSipSimple Error-Log report"); sendIntent.putExtra(Intent.EXTRA_EMAIL, new String[] { Custom...
public static Intent getLogReportIntent(String userComment, Context ctx) { LogResult logs = getLogs(ctx); Intent sendIntent = new Intent(Intent.ACTION_SEND); sendIntent.putExtra(Intent.EXTRA_SUBJECT, "CSipSimple Error-Log report"); sendIntent.putExtra(Intent.EXTRA_EMAIL, new String[] { Custom...
diff --git a/nexus/nexus-rest-api/src/main/java/org/sonatype/nexus/rest/AbstractResourceStoreContentPlexusResource.java b/nexus/nexus-rest-api/src/main/java/org/sonatype/nexus/rest/AbstractResourceStoreContentPlexusResource.java index bf7251e5b..2b7f1a00b 100644 --- a/nexus/nexus-rest-api/src/main/java/org/sonatype/nex...
true
true
protected Object renderItem( Context context, Request req, Response res, Variant variant, ResourceStore store, StorageItem item ) throws IOException, AccessDeniedException, NoSuchResourceStoreException, IllegalOperationException, ItemNotFoundException, StorageExcepti...
protected Object renderItem( Context context, Request req, Response res, Variant variant, ResourceStore store, StorageItem item ) throws IOException, AccessDeniedException, NoSuchResourceStoreException, IllegalOperationException, ItemNotFoundException, StorageExcepti...
diff --git a/src/com/github/st3iny/jxml/XDocument.java b/src/com/github/st3iny/jxml/XDocument.java index 6e716da..6385757 100644 --- a/src/com/github/st3iny/jxml/XDocument.java +++ b/src/com/github/st3iny/jxml/XDocument.java @@ -1,81 +1,81 @@ package com.github.st3iny.jxml; import java.io.File; import java.io.File...
true
true
private static XDocument parse(File file) throws ParserConfigurationException, SAXException, IOException, DOMException, XException { if (!file.exists()) throw new FileNotFoundException("The specified XML document wasn't found!"); DocumentBuilderFactory factory = DocumentBuilderFactory.newInstance(); factory.s...
public static XDocument parse(File file) throws ParserConfigurationException, SAXException, IOException, DOMException, XException { if (!file.exists()) throw new FileNotFoundException("The specified XML document wasn't found!"); DocumentBuilderFactory factory = DocumentBuilderFactory.newInstance(); factory.se...
diff --git a/src/main/java/com/alta189/cyborg/commandkit/tell/TellCommands.java b/src/main/java/com/alta189/cyborg/commandkit/tell/TellCommands.java index f171fd3..ad16c3f 100644 --- a/src/main/java/com/alta189/cyborg/commandkit/tell/TellCommands.java +++ b/src/main/java/com/alta189/cyborg/commandkit/tell/TellCommands....
true
true
public CommandResult showtells(CommandSource source, CommandContext context) { if (source.getSource() != CommandSource.Source.USER) { return null; } if (context.getPrefix() == null || !context.getPrefix().equals(".")) { return null; } List<TellEntry> entries = getDatabase().select(TellEntry.class).whe...
public CommandResult showtells(CommandSource source, CommandContext context) { if (source.getSource() != CommandSource.Source.USER) { return null; } if (context.getPrefix() == null || !context.getPrefix().equals(".")) { return null; } List<TellEntry> entries = getDatabase().select(TellEntry.class).whe...
diff --git a/xlthotel_core/src/main/java/com/xlthotel/core/controller/LoginController.java b/xlthotel_core/src/main/java/com/xlthotel/core/controller/LoginController.java index 46fef21..3ff9a33 100644 --- a/xlthotel_core/src/main/java/com/xlthotel/core/controller/LoginController.java +++ b/xlthotel_core/src/main/java/c...
false
true
public ModelAndView userLogin(Model model, HttpServletRequest request, HttpServletResponse response) throws IOException { Map<String, Object> returnModel = new HashMap<String, Object>(); String nameLogin = SimpleServletRequestUtils.getStringParameter( request, "nameLogin", ""); String password = SimpleSer...
public ModelAndView userLogin(Model model, HttpServletRequest request, HttpServletResponse response) throws IOException { Map<String, Object> returnModel = new HashMap<String, Object>(); String nameLogin = SimpleServletRequestUtils.getStringParameter( request, "nameLogin", ""); String password = SimpleSer...
diff --git a/se/sics/mspsim/core/MSP430Core.java b/se/sics/mspsim/core/MSP430Core.java index fd1e2ca..20c8f69 100644 --- a/se/sics/mspsim/core/MSP430Core.java +++ b/se/sics/mspsim/core/MSP430Core.java @@ -1,1642 +1,1640 @@ /** * Copyright (c) 2007, 2008, 2009, Swedish Institute of Computer Science. * All rights re...
true
true
public boolean emulateOP(long maxCycles) throws EmulationException { //System.out.println("CYCLES BEFORE: " + cycles); int pc = readRegister(PC); long startCycles = cycles; // ------------------------------------------------------------------- // Interrupt processing [after the last instruct...
public boolean emulateOP(long maxCycles) throws EmulationException { //System.out.println("CYCLES BEFORE: " + cycles); int pc = readRegister(PC); long startCycles = cycles; // ------------------------------------------------------------------- // Interrupt processing [after the last instruct...
diff --git a/cruisecontrol/main/src/net/sourceforge/cruisecontrol/BuildOutputLoggerManager.java b/cruisecontrol/main/src/net/sourceforge/cruisecontrol/BuildOutputLoggerManager.java index 067732c7..e84360a9 100644 --- a/cruisecontrol/main/src/net/sourceforge/cruisecontrol/BuildOutputLoggerManager.java +++ b/cruisecontro...
true
true
public BuildOutputLogger lookupOrCreate(final String projectName, final File outputFile) { BuildOutputLogger logger; if (projectName == null) { // eg: AntBootstrapper executes with empty buildProperties object, so no 'projectName' prop will exist, // so we can't cache the log...
public BuildOutputLogger lookupOrCreate(final String projectName, final File outputFile) { BuildOutputLogger logger; if (projectName == null) { // eg: AntBootstrapper executes with empty buildProperties object, so no 'projectName' prop will exist, // so we can't cache the log...
diff --git a/portal2/src/main/java/eu/europeana/portal2/services/impl/ClickStreamLogServiceImpl.java b/portal2/src/main/java/eu/europeana/portal2/services/impl/ClickStreamLogServiceImpl.java index eb11b866..782f757a 100644 --- a/portal2/src/main/java/eu/europeana/portal2/services/impl/ClickStreamLogServiceImpl.java +++...
true
true
private static String printLogAffix(HttpServletRequest request, ModelAndView page) { DateTime date = new DateTime(); String ip = request.getRemoteAddr(); String reqUrl = getRequestUrl(request); User user = null; if (page != null) { PageData model = (PageData)page.getModel().get(PageData.PARAM_MODEL); u...
private static String printLogAffix(HttpServletRequest request, ModelAndView page) { DateTime date = new DateTime(); String ip = request.getRemoteAddr(); String reqUrl = getRequestUrl(request); User user = null; if (page != null) { PageData model = (PageData)page.getModel().get(PageData.PARAM_MODEL); u...
diff --git a/config/src/main/java/org/springframework/security/config/annotation/web/builders/WebSecurity.java b/config/src/main/java/org/springframework/security/config/annotation/web/builders/WebSecurity.java index c7ddd2cca..7cc60e646 100644 --- a/config/src/main/java/org/springframework/security/config/annotation/w...
true
true
protected Filter performBuild() throws Exception { Assert.state(!securityFilterChainBuilders.isEmpty(), "At least one SecurityFilterBuilder needs to be specified. Invoke FilterChainProxyBuilder.securityFilterChains"); int chainSize = ignoredRequests.size() + securityFilterChainBuilders.size(); ...
protected Filter performBuild() throws Exception { Assert.state(!securityFilterChainBuilders.isEmpty(), "At least one SecurityBuilder<? extends SecurityFilterChain> needs to be specified. Typically this done by adding a @Configuration that extends WebSecurityConfigurerAdapter. More advanced ...
diff --git a/min/app/controllers/Tasks.java b/min/app/controllers/Tasks.java index ce11b2d..e30b92c 100755 --- a/min/app/controllers/Tasks.java +++ b/min/app/controllers/Tasks.java @@ -1,200 +1,202 @@ package controllers; import com.mortennobel.imagescaling.ResampleOp; import models.Attachment; import models.Memb...
true
true
public static void save(@Valid Task task, File[] attachments) throws Exception { Member loggedInUser = Member.connected(); notFoundIfNull(loggedInUser); if (Validation.hasErrors()) { boolean editing = true; renderTemplate("Tasks/_show.html", task, editing); ...
public static void save(@Valid Task task, File[] attachments) throws Exception { Member loggedInUser = Member.connected(); notFoundIfNull(loggedInUser); if (Validation.hasErrors()) { boolean editing = true; renderTemplate("Tasks/_show.html", task, editing); ...
diff --git a/tika-api/src/main/java/it/tika/URLAbstractResource.java b/tika-api/src/main/java/it/tika/URLAbstractResource.java index c31f1fd..db637a2 100644 --- a/tika-api/src/main/java/it/tika/URLAbstractResource.java +++ b/tika-api/src/main/java/it/tika/URLAbstractResource.java @@ -1,137 +1,137 @@ package it.tika; ...
true
true
private URLAbstract find() { URLAbstract result = null; Form form = this.getQuery(); try { String url = form.getFirst("url").getValue(); boolean nocache = false; if (form.getFirst("nocache") != null) { nocache = Boolean.getBoolean(form.get...
private URLAbstract find() { URLAbstract result = null; Form form = this.getQuery(); try { String url = form.getFirst("url").getValue(); boolean nocache = false; if (form.getFirst("nocache") != null) { nocache = Boolean.valueOf(form.getFir...
diff --git a/src/ro/zg/netcell/vaadin/action/UserActionListHandler.java b/src/ro/zg/netcell/vaadin/action/UserActionListHandler.java index 803e45a..8ccc0fd 100644 --- a/src/ro/zg/netcell/vaadin/action/UserActionListHandler.java +++ b/src/ro/zg/netcell/vaadin/action/UserActionListHandler.java @@ -1,174 +1,177 @@ /*****...
true
true
public void handle(final ActionContext actionContext) throws Exception { ComponentContainer displayArea = actionContext.getTargetContainer(); displayArea.removeAllComponents(); UserActionList ual = (UserActionList) actionContext.getUserAction(); final OpenGroupsApplication app = actionContext.getApp(); final...
public void handle(final ActionContext actionContext) throws Exception { ComponentContainer displayArea = actionContext.getTargetContainer(); displayArea.removeAllComponents(); UserActionList ual = (UserActionList) actionContext.getUserAction(); final OpenGroupsApplication app = actionContext.getApp(); final...
diff --git a/src/com/cooliris/media/GridInputProcessor.java b/src/com/cooliris/media/GridInputProcessor.java index fd65f66..2f0c0b4 100644 --- a/src/com/cooliris/media/GridInputProcessor.java +++ b/src/com/cooliris/media/GridInputProcessor.java @@ -1,828 +1,837 @@ package com.cooliris.media; import android.content....
false
true
public boolean onKeyDown(int keyCode, KeyEvent event, int state) { GridLayer layer = mLayer; if (keyCode == KeyEvent.KEYCODE_BACK) { if (layer.getViewIntent()) return false; if (layer.getHud().getMode() == HudLayer.MODE_SELECT) { layer.deselect...
public boolean onKeyDown(int keyCode, KeyEvent event, int state) { GridLayer layer = mLayer; if (keyCode == KeyEvent.KEYCODE_BACK) { if (layer.getViewIntent()) return false; if (layer.getHud().getMode() == HudLayer.MODE_SELECT) { layer.deselect...
diff --git a/xsdlib/src/com/sun/msv/datatype/xsd/DatatypeFactory.java b/xsdlib/src/com/sun/msv/datatype/xsd/DatatypeFactory.java index 25f3c4d4..f29667ed 100644 --- a/xsdlib/src/com/sun/msv/datatype/xsd/DatatypeFactory.java +++ b/xsdlib/src/com/sun/msv/datatype/xsd/DatatypeFactory.java @@ -1,269 +1,269 @@ /* * @(#)$...
true
true
public static XSDatatype getTypeByName( String dataTypeName ) throws DatatypeException { XSDatatype dt = (XSDatatype)builtinType.get(dataTypeName); if(dt!=null) return dt; try { // types may be not added to the map. if( dataTypeName.equals("float") ) add( builtinType, FloatType.theInstance ); els...
public synchronized static XSDatatype getTypeByName( String dataTypeName ) throws DatatypeException { XSDatatype dt = (XSDatatype)builtinType.get(dataTypeName); if(dt!=null) return dt; try { // types may be not added to the map. if( dataTypeName.equals("float") ) add( builtinType, FloatType.theInsta...
diff --git a/src/com/android/email/activity/MoveMessageToDialog.java b/src/com/android/email/activity/MoveMessageToDialog.java index c05fa56a..70eab225 100644 --- a/src/com/android/email/activity/MoveMessageToDialog.java +++ b/src/com/android/email/activity/MoveMessageToDialog.java @@ -1,286 +1,286 @@ /* * Copyright...
true
true
public Long loadInBackground() { final Context c = getContext(); long accountId = -1; // -1 == account not found yet. for (long messageId : mMessageIds) { // TODO This shouln't restore a full Message object. final Message message = Message.re...
public Long loadInBackground() { final Context c = getContext(); long accountId = -1; // -1 == account not found yet. for (long messageId : mMessageIds) { // TODO This shouln't restore a full Message object. final Message message = Message.re...
diff --git a/src/net/tsz/afinal/db/table/Property.java b/src/net/tsz/afinal/db/table/Property.java index 2fc2b08..1ee7f64 100644 --- a/src/net/tsz/afinal/db/table/Property.java +++ b/src/net/tsz/afinal/db/table/Property.java @@ -1,138 +1,138 @@ /** * Copyright (c) 2012-2013, Michael Yang 杨福海 (www.yangfuhai.com). *...
true
true
public void setValue(Object receiver , Object value){ if(set!=null){ try { if (dataType == String.class) { set.invoke(receiver, value.toString()); } else if (dataType == int.class || dataType == Integer.class) { set.invoke(receiver, value == null ? (Integer) null : Integer.parseInt(value.toStrin...
public void setValue(Object receiver , Object value){ if(set!=null && value!=null){ try { if (dataType == String.class) { set.invoke(receiver, value.toString()); } else if (dataType == int.class || dataType == Integer.class) { set.invoke(receiver, value == null ? (Integer) null : Integer.parseIn...
diff --git a/src/brut/androlib/res/AndrolibResources.java b/src/brut/androlib/res/AndrolibResources.java index cde5d94..67bfee0 100644 --- a/src/brut/androlib/res/AndrolibResources.java +++ b/src/brut/androlib/res/AndrolibResources.java @@ -1,378 +1,378 @@ /* * Copyright 2010 Ryszard Wiśniewski <brut.alll@gmail.com...
true
true
public static String escapeForResXml(String value) { if (value.isEmpty()) { return value; } StringBuilder out = new StringBuilder(value.length() + 10); char[] chars = value.toCharArray(); switch (chars[0]) { case '@': case '#': ...
public static String escapeForResXml(String value) { if (value.isEmpty()) { return value; } StringBuilder out = new StringBuilder(value.length() + 10); char[] chars = value.toCharArray(); switch (chars[0]) { case '@': case '#': ...
diff --git a/src/main/java/org/codehaus/mojo/clirr/ClirrCheckMojo.java b/src/main/java/org/codehaus/mojo/clirr/ClirrCheckMojo.java index 2fa984f..46d657d 100644 --- a/src/main/java/org/codehaus/mojo/clirr/ClirrCheckMojo.java +++ b/src/main/java/org/codehaus/mojo/clirr/ClirrCheckMojo.java @@ -1,136 +1,136 @@ package or...
false
true
protected void doExecute() throws MojoExecutionException, MojoFailureException { if ( !canGenerate() ) { return; } ClirrDiffListener listener; try { listener = executeClirr(); } catch ( MissingPreviousException e ) ...
protected void doExecute() throws MojoExecutionException, MojoFailureException { if ( !canGenerate() ) { return; } ClirrDiffListener listener; try { listener = executeClirr(); } catch ( MissingPreviousException e ) ...
diff --git a/src/interiores/core/presentation/TerminalController.java b/src/interiores/core/presentation/TerminalController.java index ff8e6cc..05d92ff 100644 --- a/src/interiores/core/presentation/TerminalController.java +++ b/src/interiores/core/presentation/TerminalController.java @@ -1,244 +1,244 @@ package interi...
true
true
private void exec(String line) { iostream.putIntoInputBuffer(line); String actionName, commandName; commandName = iostream.readString(); if(commandName.equals("quit")) { quit(); return; } if(commandName.equals("he...
private void exec(String line) { iostream.putIntoInputBuffer(line); String actionName, commandName; commandName = iostream.readString(); if(commandName.equals("quit")) { quit(); return; } if(commandName.equals("he...
diff --git a/src/org/jets3t/gui/ManageDistributionsDialog.java b/src/org/jets3t/gui/ManageDistributionsDialog.java index 80bbf53..35916ca 100644 --- a/src/org/jets3t/gui/ManageDistributionsDialog.java +++ b/src/org/jets3t/gui/ManageDistributionsDialog.java @@ -1,627 +1,627 @@ /* * jets3t : Java Extra-Tasty S3 Toolki...
true
true
public void actionPerformed(ActionEvent event) { if (event.getSource().equals(finishedButton)) { this.setVisible(false); } else if (event.getActionCommand().equals("AddCname")) { cnamesTableModel.addCname("New CNAME"); int newRowIndex = cnamesTable.getRowCount() -...
public void actionPerformed(ActionEvent event) { if (event.getSource().equals(finishedButton)) { this.setVisible(false); } else if (event.getActionCommand().equals("AddCname")) { cnamesTableModel.addCname("New CNAME"); int newRowIndex = cnamesTable.getRowCount() -...
diff --git a/tools/idegen/src/Configuration.java b/tools/idegen/src/Configuration.java index 392cb5d2..2f800b11 100644 --- a/tools/idegen/src/Configuration.java +++ b/tools/idegen/src/Configuration.java @@ -1,263 +1,267 @@ /* * Copyright (C) 2008 The Android Open Source Project * * Licensed under the Apache Lice...
true
true
private static void traverse(File directory, Set<File> sourceRoots, Collection<File> jarFiles, Collection<File> excludedDirs, Excludes excludes) throws IOException { /* * Note it would be faster to stop traversing a source root as soon as * we encounter the first .j...
private static void traverse(File directory, Set<File> sourceRoots, Collection<File> jarFiles, Collection<File> excludedDirs, Excludes excludes) throws IOException { /* * Note it would be faster to stop traversing a source root as soon as * we encounter the first .j...
diff --git a/org.caleydo.rcp/src/org/caleydo/rcp/views/opengl/AGLViewPart.java b/org.caleydo.rcp/src/org/caleydo/rcp/views/opengl/AGLViewPart.java index 0cb20b13a..9d47f214d 100644 --- a/org.caleydo.rcp/src/org/caleydo/rcp/views/opengl/AGLViewPart.java +++ b/org.caleydo.rcp/src/org/caleydo/rcp/views/opengl/AGLViewPart....
true
true
protected AGLEventListener createGLEventListener(ECommandType glViewType, int iParentCanvasID, boolean bRegisterToOverallMediator) { IGeneralManager generalManager = GeneralManager.get(); ISet set = generalManager.getUseCase().getSet(); CmdCreateGLEventListener cmdView = (CmdCreateGLEventListener) general...
protected AGLEventListener createGLEventListener(ECommandType glViewType, int iParentCanvasID, boolean bRegisterToOverallMediator) { IGeneralManager generalManager = GeneralManager.get(); ISet set = generalManager.getUseCase().getSet(); CmdCreateGLEventListener cmdView = (CmdCreateGLEventListener) general...
diff --git a/htroot/PerformanceMemory_p.java b/htroot/PerformanceMemory_p.java index 57b827a52..6b6adf1f4 100644 --- a/htroot/PerformanceMemory_p.java +++ b/htroot/PerformanceMemory_p.java @@ -1,227 +1,224 @@ //PerformaceMemory_p.java //----------------------- //part of YaCy //(C) by Michael Peter Christen; mc@anom...
false
true
public static serverObjects respond(httpHeader header, serverObjects post, serverSwitch env) { // return variable that accumulates replacements serverObjects prop = new serverObjects(); if (defaultSettings == null) { defaultSettings = serverFileUtils.loadHashMap(new File(env.getR...
public static serverObjects respond(httpHeader header, serverObjects post, serverSwitch env) { // return variable that accumulates replacements serverObjects prop = new serverObjects(); if (defaultSettings == null) { defaultSettings = serverFileUtils.loadHashMap(new File(env.getR...
diff --git a/src/eu/trentorise/smartcampus/ac/authorities/AnonymousAuthority.java b/src/eu/trentorise/smartcampus/ac/authorities/AnonymousAuthority.java index 43f4436..176c95d 100644 --- a/src/eu/trentorise/smartcampus/ac/authorities/AnonymousAuthority.java +++ b/src/eu/trentorise/smartcampus/ac/authorities/AnonymousAu...
true
true
public void authenticate(final Activity activity, final AuthListener listener, final String clientId, final String clientSecret) { mActivity = activity; mAuthListener = listener; mClientId = clientId; mClientSecret = clientSecret; mToken = new DeviceUuidFactory(activity).getDeviceUuid().toString(); }
public void authenticate(final Activity activity, final AuthListener listener, final String clientId, final String clientSecret) { mActivity = activity; mAuthListener = listener; mClientId = clientId; mClientSecret = clientSecret; mToken = new DeviceUuidFactory(activity).getDeviceUuid().toString(); setUp()...
diff --git a/src/mediafire/cz/vity/freerapid/plugins/services/mediafire/MediafireRunner.java b/src/mediafire/cz/vity/freerapid/plugins/services/mediafire/MediafireRunner.java index 80e0f978..93ceb3bd 100644 --- a/src/mediafire/cz/vity/freerapid/plugins/services/mediafire/MediafireRunner.java +++ b/src/mediafire/cz/vity...
true
true
public void run() throws Exception { super.run(); HttpMethod method = getGetMethod(fileURL); if (makeRedirectedRequest(method)) { checkProblems(); if (isList()) { runList(); return; } checkNameAndSize(); ...
public void run() throws Exception { super.run(); HttpMethod method = getGetMethod(fileURL); if (makeRedirectedRequest(method)) { checkProblems(); if (isList()) { runList(); return; } checkNameAndSize(); ...
diff --git a/Feedo/src/main/java/de/feedo/android/FeedItemActivity.java b/Feedo/src/main/java/de/feedo/android/FeedItemActivity.java index 689bf2d..1156da9 100644 --- a/Feedo/src/main/java/de/feedo/android/FeedItemActivity.java +++ b/Feedo/src/main/java/de/feedo/android/FeedItemActivity.java @@ -1,99 +1,109 @@ package...
false
true
private void setupUI() { String content = mFeedItem.content; if(content.isEmpty()) content = mFeedItem.summary; String html = "<html><body>" + content + "</body></html>"; String mime = "text/html"; String encoding = "utf-8"; mWebView.getSettings().setBuil...
private void setupUI() { String content = mFeedItem.content; if(content.isEmpty()) content = mFeedItem.summary; String html = "<html>" + "<head>" + "<style>img{\n" + " width: auto;\n" + " max-width: 100%;\n" + ...
diff --git a/src/com/android/settings/paranoid/Toolbar.java b/src/com/android/settings/paranoid/Toolbar.java index 959833121..af74ec60d 100644 --- a/src/com/android/settings/paranoid/Toolbar.java +++ b/src/com/android/settings/paranoid/Toolbar.java @@ -1,159 +1,159 @@ /* * Copyright (C) 2012 ParanoidAndroid Project ...
true
true
public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); addPreferencesFromResource(R.xml.tool_bar_settings); PreferenceScreen prefSet = getPreferenceScreen(); mContext = getActivity(); mShowClock = (CheckBoxPreference) prefSet.findPreference(KE...
public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); addPreferencesFromResource(R.xml.tool_bar_settings); PreferenceScreen prefSet = getPreferenceScreen(); mContext = getActivity(); mShowClock = (CheckBoxPreference) prefSet.findPreference(KE...
diff --git a/src/main/java/io/cloudsoft/marklogic/MarkLogicSshDriver.java b/src/main/java/io/cloudsoft/marklogic/MarkLogicSshDriver.java index f9dba14..6a97ed5 100644 --- a/src/main/java/io/cloudsoft/marklogic/MarkLogicSshDriver.java +++ b/src/main/java/io/cloudsoft/marklogic/MarkLogicSshDriver.java @@ -1,112 +1,112 @@...
true
true
public void install() { // TODO Where do we get join-cluster.xqy etc from? DownloadResolver resolver = entity.getApplication().getManagementContext().getEntityDownloadsManager().newDownloader(this); List<String> urls = resolver.getTargets(); String saveAs = resolver.getFilename(); ...
public void install() { // TODO Where do we get join-cluster.xqy etc from? DownloadResolver resolver = entity.getApplication().getManagementContext().getEntityDownloadsManager().newDownloader(this); List<String> urls = resolver.getTargets(); String saveAs = resolver.getFilename(); ...
diff --git a/src/com/untamedears/ItemExchange/utility/ItemExchange.java b/src/com/untamedears/ItemExchange/utility/ItemExchange.java index 93011af..86c804b 100644 --- a/src/com/untamedears/ItemExchange/utility/ItemExchange.java +++ b/src/com/untamedears/ItemExchange/utility/ItemExchange.java @@ -1,355 +1,356 @@ /* *...
true
true
public void playerResponse(Player player, ItemStack itemStack, Location location) { //If the player has interacted with this exchange previously if (ruleIndex.containsKey(player) && locationRecord.containsKey(player) && location.equals(locationRecord.get(player))) { //If the hand is not empty if (itemStack !...
public void playerResponse(Player player, ItemStack itemStack, Location location) { //If the player has interacted with this exchange previously if (ruleIndex.containsKey(player) && locationRecord.containsKey(player) && location.equals(locationRecord.get(player))) { //If the hand is not empty if (itemStack !...
diff --git a/src/compiler/VCGPrinter.java b/src/compiler/VCGPrinter.java index 88b5ba7..7c171fe 100644 --- a/src/compiler/VCGPrinter.java +++ b/src/compiler/VCGPrinter.java @@ -1,363 +1,363 @@ package compiler; import java.io.FileNotFoundException; import java.io.FileOutputStream; import java.io.PrintStream; i...
true
true
private void buildVirtualRegisters(PrintStream vcgOut) { vcgOut.println("\nedge.class: 3\n"+ "edge.color: lightgreen\n"+ "node.color: darkgreen\n"+ "node.textcolor: lightgreen\n"+ "node.bordercolor: green\n"); String edgeClass...
private void buildVirtualRegisters(PrintStream vcgOut) { vcgOut.println("\nedge.class: 3\n"+ "edge.color: lightgreen\n"+ "node.color: darkgreen\n"+ "node.textcolor: lightgreen\n"+ "node.bordercolor: green\n"); String edgeClass...
diff --git a/libraries/javalib/java/text/MessageFormat.java b/libraries/javalib/java/text/MessageFormat.java index 5f6b3b2a8..6d58bc132 100644 --- a/libraries/javalib/java/text/MessageFormat.java +++ b/libraries/javalib/java/text/MessageFormat.java @@ -1,332 +1,335 @@ /* * Java core library component. * * Copyri...
true
true
private void parseFormat(String argument, MessagePatternDescription desc, int argcount) { int anumber; String aformat; String astyle; int nend = argument.indexOf(','); int fstart = nend + 1; if (nend == -1) { nend = argument.length(); fstart = nend; } int fend = argument.indexOf(',', nend+1); int sstar...
private void parseFormat(String argument, MessagePatternDescription desc, int argcount) { int anumber; String aformat; String astyle; int nend = argument.indexOf(','); int fstart = nend + 1; if (nend == -1) { nend = argument.length(); fstart = nend; } int fend = argument.indexOf(',', nend+1); int sstar...
diff --git a/bppAlgorithm/AlmostWorstFit.java b/bppAlgorithm/AlmostWorstFit.java index 0bb5090..17df140 100644 --- a/bppAlgorithm/AlmostWorstFit.java +++ b/bppAlgorithm/AlmostWorstFit.java @@ -1,56 +1,57 @@ /** * @author Luuk Holleman * @date 16 april */ package bppAlgorithm; import java.util.ArrayList; imp...
true
true
public Bin calculateBin(Product product, ArrayList<Bin> bins) { //Kopieer de arraylist bins = new ArrayList<Bin>(bins); //Sorteer de bins in op volgorde van veel inhoud naar weinig inhoud Collections.sort(bins, new Comparator<Bin>() { public int compare(Bin one, Bin two) { return ((Integer) (one.ge...
public Bin calculateBin(Product product, ArrayList<Bin> bins) { //Kopieer de arraylist bins = new ArrayList<Bin>(bins); //Sorteer de bins in op volgorde van veel inhoud naar weinig inhoud Collections.sort(bins, new Comparator<Bin>() { public int compare(Bin one, Bin two) { return ((Integer) (one.ge...
diff --git a/src/com/icecondor/nest/Pigeon.java b/src/com/icecondor/nest/Pigeon.java index bda5061..0a66f6b 100644 --- a/src/com/icecondor/nest/Pigeon.java +++ b/src/com/icecondor/nest/Pigeon.java @@ -1,430 +1,430 @@ package com.icecondor.nest; import java.io.IOException; import java.io.UnsupportedEncodingExceptio...
true
true
public void onCreate() { Log.i(appTag, "*** service created."); super.onCreate(); /* GPS */ locationManager = (LocationManager) getSystemService(LOCATION_SERVICE); Log.i(appTag, "GPS provider enabled: "+locationManager.isProviderEnabled(LocationManager.GPS_PROVIDER)); Log.i(appTag, "NETWORK provider ena...
public void onCreate() { Log.i(appTag, "*** service created."); super.onCreate(); /* GPS */ locationManager = (LocationManager) getSystemService(LOCATION_SERVICE); Log.i(appTag, "GPS provider enabled: "+locationManager.isProviderEnabled(LocationManager.GPS_PROVIDER)); Log.i(appTag, "NETWORK provider ena...
diff --git a/common/mrkirby153/MscHouses/core/MscHouses.java b/common/mrkirby153/MscHouses/core/MscHouses.java index e1673f4..acfada2 100644 --- a/common/mrkirby153/MscHouses/core/MscHouses.java +++ b/common/mrkirby153/MscHouses/core/MscHouses.java @@ -1,203 +1,203 @@ package mrkirby153.MscHouses.core; import java....
true
true
public void preInit(FMLPreInitializationEvent event) { config = new MscHousesConfiguration(new File(event.getModConfigurationDirectory(), "MscHouses/main.conf")); try{ config.load(); Property oreCopperId = config.get(Configuration.CATEGORY_BLOCK, "copperOre.id", BlockId.ORE_COPPER_DEFAULT); oreCoppe...
public void preInit(FMLPreInitializationEvent event) { config = new MscHousesConfiguration(new File(event.getModConfigurationDirectory(), "MscHouses/main.conf")); try{ config.load(); Property oreCopperId = config.get(Configuration.CATEGORY_BLOCK, "copperOre.id", BlockId.ORE_COPPER_DEFAULT); oreCoppe...
diff --git a/ini/trakem2/vector/VectorString3D.java b/ini/trakem2/vector/VectorString3D.java index 41476675..7dbd5a96 100644 --- a/ini/trakem2/vector/VectorString3D.java +++ b/ini/trakem2/vector/VectorString3D.java @@ -1,1747 +1,1748 @@ /** TrakEM2 plugin for ImageJ(C). Copyright (C) 2007 Albert Cardona. This p...
true
true
private void resample(final boolean with_source) { // parameters final double MAX_DISTANCE = 2.5 * delta; final int MA = (int)(MAX_DISTANCE / getAverageDelta()); final int MAX_AHEAD = MA < 6 ? 6 : MA; // convenient data carrier and editor final ResamplingData r = new ResamplingData(this.length, this.dep);...
private void resample(final boolean with_source) { // parameters final double MAX_DISTANCE = 2.5 * delta; final int MA = (int)(MAX_DISTANCE / getAverageDelta()); final int MAX_AHEAD = MA < 6 ? 6 : MA; // convenient data carrier and editor final ResamplingData r = new ResamplingData(this.length, this.dep);...
diff --git a/VSPLogin/src/vsp/servlet/handler/RegisterHandler.java b/VSPLogin/src/vsp/servlet/handler/RegisterHandler.java index 5cd8d33..c64642b 100644 --- a/VSPLogin/src/vsp/servlet/handler/RegisterHandler.java +++ b/VSPLogin/src/vsp/servlet/handler/RegisterHandler.java @@ -1,56 +1,56 @@ package vsp.servlet.handler;...
true
true
public void process(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { RegisterForm registrationForm = new RegisterForm(); registrationForm.setUserName(request.getParameter("userName")); registrationForm.setPassword(request.getParameter("password")); ...
public void process(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { RegisterForm registrationForm = new RegisterForm(); registrationForm.setUserName(request.getParameter("userName")); registrationForm.setPassword(request.getParameter("password")); ...
diff --git a/src/com/android/mms/ui/MessageListItem.java b/src/com/android/mms/ui/MessageListItem.java index 53a430a..a52d0cd 100644 --- a/src/com/android/mms/ui/MessageListItem.java +++ b/src/com/android/mms/ui/MessageListItem.java @@ -1,569 +1,570 @@ /* * Copyright (C) 2008 Esmertec AG. * Copyright (C) 2008 The ...
true
true
public void onMessageListItemClick() { URLSpan[] spans = mBodyTextView.getUrls(); if (spans.length == 0) { // Do nothing. } else if (spans.length == 1) { Uri uri = Uri.parse(spans[0].getURL()); Intent intent = new Intent(Intent.ACTION_VIEW, uri); ...
public void onMessageListItemClick() { URLSpan[] spans = mBodyTextView.getUrls(); if (spans.length == 0) { // Do nothing. } else if (spans.length == 1) { Uri uri = Uri.parse(spans[0].getURL()); Intent intent = new Intent(Intent.ACTION_VIEW, uri); ...
diff --git a/src/uk/org/downesward/dirtside/CombatResolutionActivity.java b/src/uk/org/downesward/dirtside/CombatResolutionActivity.java index 3e38f4a..dceb3b5 100644 --- a/src/uk/org/downesward/dirtside/CombatResolutionActivity.java +++ b/src/uk/org/downesward/dirtside/CombatResolutionActivity.java @@ -1,504 +1,507 @@...
false
true
public CombatResolutionResult resolveNormalCombat( CombatResolutionConfig config) { Weapon weapon = new Weapon(config.getWeaponType(), ""); weapon.setSize(config.getWeaponSize()); Integer weaponType = 0; StringBuilder resultOut = new StringBuilder(); StringBuilder hitResult = new StringBuilder(); String...
public CombatResolutionResult resolveNormalCombat( CombatResolutionConfig config) { Weapon weapon = new Weapon(config.getWeaponType(), ""); weapon.setSize(config.getWeaponSize()); Integer weaponType = 0; StringBuilder resultOut = new StringBuilder(); StringBuilder hitResult = new StringBuilder(); String...
diff --git a/src/uk/co/timwise/sqlhawk/db/write/DbWriter.java b/src/uk/co/timwise/sqlhawk/db/write/DbWriter.java index 1a47e28..1eed000 100644 --- a/src/uk/co/timwise/sqlhawk/db/write/DbWriter.java +++ b/src/uk/co/timwise/sqlhawk/db/write/DbWriter.java @@ -1,264 +1,264 @@ /* This file is a part of the sqlHawk project....
true
true
private void runScriptDirectory(Config config, Connection connection, File scriptFolder, String batch, int strip) throws IOException, Exception { File[] files = scriptFolder.listFiles(); Arrays.sort(files, new Comparator<File>() { Pattern fileNumbers = Pattern.compile("^([0-9]+)(.*)"); @Override public...
private void runScriptDirectory(Config config, Connection connection, File scriptFolder, String batch, int strip) throws IOException, Exception { File[] files = scriptFolder.listFiles(); Arrays.sort(files, new Comparator<File>() { Pattern fileNumbers = Pattern.compile("^([0-9]+)(.*)"); @Override public...
diff --git a/src/main/java/org/apache/hadoop/hbase/thrift/ThriftServer.java b/src/main/java/org/apache/hadoop/hbase/thrift/ThriftServer.java index d551478d6..be5f36d55 100644 --- a/src/main/java/org/apache/hadoop/hbase/thrift/ThriftServer.java +++ b/src/main/java/org/apache/hadoop/hbase/thrift/ThriftServer.java @@ -1,1...
true
true
static private void doMain(final String[] args) throws Exception { Log LOG = LogFactory.getLog("ThriftServer"); Options options = new Options(); options.addOption("b", "bind", true, "Address to bind the Thrift server to. Not supported by the Nonblocking and HsHa server [default: 0.0.0.0]"); options.a...
static private void doMain(final String[] args) throws Exception { Log LOG = LogFactory.getLog("ThriftServer"); Options options = new Options(); options.addOption("b", "bind", true, "Address to bind the Thrift server to. Not supported by the Nonblocking and HsHa server [default: 0.0.0.0]"); options.a...
diff --git a/src/org/team1277/robot/ImageProcessor.java b/src/org/team1277/robot/ImageProcessor.java index d144fbf..039f4e3 100644 --- a/src/org/team1277/robot/ImageProcessor.java +++ b/src/org/team1277/robot/ImageProcessor.java @@ -1,39 +1,40 @@ /* * To change this template, choose Tools | Templates * and open th...
true
true
public static void Process() { NetworkTable server = NetworkTable.getTable("SmartDashboard"); try { System.out.println("\\/***\\/"); //System.out.println(server.getNumber("test")); System.out.println(server.containsKey("IMAGE_COUNT")); ...
public static void Process() { NetworkTable server = NetworkTable.getTable("SmartDashboard"); try { System.out.println("\\/***\\/"); //System.out.println(server.getNumber("test")); //Try updating roborealm System.out.println(server.con...
diff --git a/src/TestOwlAPI.java b/src/TestOwlAPI.java index 9fb9194..d9cee89 100644 --- a/src/TestOwlAPI.java +++ b/src/TestOwlAPI.java @@ -1,54 +1,54 @@ /** * File: TestOwlAPI.java * Date: Apr 21, 2012 * Author: Morteza Ansarinia <ansarinia@me.com> */ import java.io.File; import org.semanticweb.owlap...
true
true
public static void main(String[] args) { try{ OWLOntologyManager manager = OWLManager.createOWLOntologyManager(); // Load an ontology from the web (via document IRI) IRI documentIRI = IRI.create("http://www.co-ode.org/ontologies/pizza/pizza.owl"); OWLOntology pizzaOntology = manager.loadOntologyFromO...
public static void main(String[] args) { try{ OWLOntologyManager manager = OWLManager.createOWLOntologyManager(); // Load an ontology from the web (via document IRI) IRI documentIRI = IRI.create("http://www.co-ode.org/ontologies/pizza/pizza.owl"); OWLOntology pizzaOntology = manager.loadOntologyFromO...
diff --git a/weasis-core/weasis-core-api/src/main/java/org/weasis/core/api/command/Options.java b/weasis-core/weasis-core-api/src/main/java/org/weasis/core/api/command/Options.java index 18630cb27..1ddb87397 100644 --- a/weasis-core/weasis-core-api/src/main/java/org/weasis/core/api/command/Options.java +++ b/weasis-cor...
false
true
public Option parse(List<? extends Object> argv, boolean skipArg0) { reset(); List<Object> args = new ArrayList<Object>(); args.addAll(Arrays.asList(defArgs)); for (Object arg : argv) { if (skipArg0) { skipArg0 = false; usageName = arg.toS...
public Option parse(List<? extends Object> argv, boolean skipArg0) { reset(); List<Object> args = new ArrayList<Object>(); args.addAll(Arrays.asList(defArgs)); for (Object arg : argv) { if (skipArg0) { skipArg0 = false; usageName = arg.toS...
diff --git a/memory_structure/src/main/java/fr/sciencespo/medialab/hci/memorystructure/util/LRUUtil.java b/memory_structure/src/main/java/fr/sciencespo/medialab/hci/memorystructure/util/LRUUtil.java index f6cefe07..2f56cd39 100644 --- a/memory_structure/src/main/java/fr/sciencespo/medialab/hci/memorystructure/util/LRUU...
false
true
public static String revertLRU(String lru) { if(lru == null) { return null; } lru = lru.trim(); if(StringUtils.isEmpty(lru)) { return null; } String url = ""; Scanner scanner = new Scanner(lru); scanner.useDelimiter("\\|"); ...
public static String revertLRU(String lru) { if(lru == null) { return null; } lru = lru.trim(); if(StringUtils.isEmpty(lru)) { return null; } String url = ""; Scanner scanner = new Scanner(lru); scanner.useDelimiter("\\|"); ...
diff --git a/src/main/ch/hszt/mdp/chatplus/gui/ChatWindow.java b/src/main/ch/hszt/mdp/chatplus/gui/ChatWindow.java index af247dd..e67540f 100644 --- a/src/main/ch/hszt/mdp/chatplus/gui/ChatWindow.java +++ b/src/main/ch/hszt/mdp/chatplus/gui/ChatWindow.java @@ -1,459 +1,461 @@ package ch.hszt.mdp.chatplus.gui; impor...
false
true
private void initComponents() { jPopupMenu1 = new JPopupMenu(); messageDisplayScroll = new JScrollPane(); messageDisplay = new JTextArea(); messageDisplay.setMargin(new Insets(10, 10, 10, 10)); messageWritingScroll = new JScrollPane(); messageWriting = new JTextArea(); messageWriting.setMargin(new Inset...
private void initComponents() { jPopupMenu1 = new JPopupMenu(); messageDisplayScroll = new JScrollPane(); messageDisplay = new JTextArea(); messageDisplay.setMargin(new Insets(10, 10, 10, 10)); messageWritingScroll = new JScrollPane(); messageWriting = new JTextArea(); messageWriting.setMargin(new Inset...
diff --git a/core/src/main/java/org/apache/mina/filter/codec/CumulativeProtocolDecoder.java b/core/src/main/java/org/apache/mina/filter/codec/CumulativeProtocolDecoder.java index 5d3b25af..29b4c7ca 100644 --- a/core/src/main/java/org/apache/mina/filter/codec/CumulativeProtocolDecoder.java +++ b/core/src/main/java/org/a...
true
true
public void decode(IoSession session, IoBuffer in, ProtocolDecoderOutput out) throws Exception { if (!session.getTransportMetadata().hasFragmentation()) { while (in.hasRemaining() ) { doDecode(session, in, out); } return; } bo...
public void decode(IoSession session, IoBuffer in, ProtocolDecoderOutput out) throws Exception { if (!session.getTransportMetadata().hasFragmentation()) { while (in.hasRemaining()) { if (!doDecode(session, in, out)) { break; } ...
diff --git a/gdms/src/main/java/org/gdms/data/indexes/IndexManager.java b/gdms/src/main/java/org/gdms/data/indexes/IndexManager.java index 02db5e0eb..75c73cb97 100644 --- a/gdms/src/main/java/org/gdms/data/indexes/IndexManager.java +++ b/gdms/src/main/java/org/gdms/data/indexes/IndexManager.java @@ -1,533 +1,532 @@ /*...
true
true
public void buildIndex(String dsName, String fieldName, String indexId, ProgressMonitor pm) throws IndexException, NoSuchTableException { if (pm == null) { pm = new NullProgressMonitor(); } dsName = dsf.getSourceManager().ge...
public void buildIndex(String dsName, String fieldName, String indexId, ProgressMonitor pm) throws IndexException, NoSuchTableException { if (pm == null) { pm = new NullProgressMonitor(); } dsName = dsf.getSourceManager().ge...
diff --git a/src/main/java/org/codinglabs/rss2epub/BookMaker.java b/src/main/java/org/codinglabs/rss2epub/BookMaker.java index 7caa86e..9d3da83 100644 --- a/src/main/java/org/codinglabs/rss2epub/BookMaker.java +++ b/src/main/java/org/codinglabs/rss2epub/BookMaker.java @@ -1,234 +1,234 @@ package org.codinglabs.rss2epu...
false
true
public void make(String configFilePath, String outputFilePath) { BookConfig config = this.parseConfig(configFilePath); ArrayList<SyndFeed> feeds = this.readFeeds(config); Pattern pattern = Pattern .compile("src=\"(http[s]?://[-a-zA-Z0-9+&@#/%?=~_|!:,.;]+)\\.(png|jpg|jpeg|gif|...
public void make(String configFilePath, String outputFilePath) { BookConfig config = this.parseConfig(configFilePath); ArrayList<SyndFeed> feeds = this.readFeeds(config); Pattern pattern = Pattern .compile("src=\"(http[s]?://[-a-zA-Z0-9+&@#/%?=~_|!:,.;]+)\\.(png|jpg|jpeg|gif|...
diff --git a/spi/src/main/java/org/qi4j/spi/service/importer/InstanceImporter.java b/spi/src/main/java/org/qi4j/spi/service/importer/InstanceImporter.java index fd79b95c7..5b977b9e1 100644 --- a/spi/src/main/java/org/qi4j/spi/service/importer/InstanceImporter.java +++ b/spi/src/main/java/org/qi4j/spi/service/importer/I...
true
true
public Object importService( ImportedServiceDescriptor serviceDescriptor ) throws ServiceImporterException { Object instance = serviceDescriptor.metaInfo().get( serviceDescriptor.type() ); if (instance != null) { instance = module.metaInfo().get(serviceDescriptor.type() ); ...
public Object importService( ImportedServiceDescriptor serviceDescriptor ) throws ServiceImporterException { Object instance = serviceDescriptor.metaInfo().get( serviceDescriptor.type() ); if (instance == null) { instance = module.metaInfo().get(serviceDescriptor.type() ); ...
diff --git a/src/com/flaptor/util/remote/RmiCodeGeneration.java b/src/com/flaptor/util/remote/RmiCodeGeneration.java index 4e1510d..a704172 100644 --- a/src/com/flaptor/util/remote/RmiCodeGeneration.java +++ b/src/com/flaptor/util/remote/RmiCodeGeneration.java @@ -1,286 +1,286 @@ package com.flaptor.util.remote; im...
true
true
public static Class getRemoteInterface(String remoteClassName, Class[] interfaces) { try{ ClassPool cp = ClassPool.getDefault(); logger.debug("interface name " + remoteClassName); Class handlerInterface = classMap.get(remoteClassName); if (handlerInterface ==...
public static Class getRemoteInterface(String remoteClassName, Class[] interfaces) { try{ ClassPool cp = ClassPool.getDefault(); logger.debug("interface name " + remoteClassName); Class handlerInterface = classMap.get(remoteClassName); if (handlerInterface ==...
diff --git a/modules/foundation/appbase/src/classes/org/jdesktop/wonderland/modules/appbase/client/HUDDisplayer.java b/modules/foundation/appbase/src/classes/org/jdesktop/wonderland/modules/appbase/client/HUDDisplayer.java index f6064daed..1290c430a 100644 --- a/modules/foundation/appbase/src/classes/org/jdesktop/wonde...
true
true
public View2D createView (Window2D window) { // Don't ever show frame headers in the HUD if (window instanceof WindowSwingHeader) return null; HUDComponent component = mainHUD.createComponent(window); component.setPreferredLocation(Layout.CENTER); hudComponents.add(componen...
public View2D createView (Window2D window) { // Don't ever show frame headers in the HUD if (window instanceof WindowSwingHeader) return null; HUDComponent component = mainHUD.createComponent(window); component.setName(app.getName()); component.setPreferredLocation(Layout.C...
diff --git a/org.eclipse.mylyn.commons.core/src/org/eclipse/mylyn/internal/commons/core/ErrorReporterManager.java b/org.eclipse.mylyn.commons.core/src/org/eclipse/mylyn/internal/commons/core/ErrorReporterManager.java index 7ebc31a0..e32ba5de 100644 --- a/org.eclipse.mylyn.commons.core/src/org/eclipse/mylyn/internal/com...
true
true
public void fail(IStatus status) { readExtensions(); int priority = AbstractErrorReporter.PRIORITY_NONE; List<AbstractErrorReporter> interestedReporters = new ArrayList<AbstractErrorReporter>(); for (AbstractErrorReporter reporter : errorReporters) { int newPriority = reporter.getPriority(status); if (n...
public void fail(IStatus status) { readExtensions(); int priority = AbstractErrorReporter.PRIORITY_NONE; List<AbstractErrorReporter> interestedReporters = new ArrayList<AbstractErrorReporter>(); for (AbstractErrorReporter reporter : errorReporters) { int newPriority = reporter.getPriority(status); if (n...
diff --git a/src/com/minestar/MineStarWarp/dataManager/WarpManager.java b/src/com/minestar/MineStarWarp/dataManager/WarpManager.java index b2a1101..8632f7a 100644 --- a/src/com/minestar/MineStarWarp/dataManager/WarpManager.java +++ b/src/com/minestar/MineStarWarp/dataManager/WarpManager.java @@ -1,490 +1,490 @@ /* *...
true
true
public Entry<String, Warp> getSimiliarWarp(String name) { if (warps.containsKey(name)) return warps.ceilingEntry(name); String lowerName = name.toLowerCase(); if (warps.containsKey(lowerName)) return warps.ceilingEntry(name); Entry<String, Warp> found = nul...
public Entry<String, Warp> getSimiliarWarp(String name) { if (warps.containsKey(name)) return warps.ceilingEntry(name); String lowerName = name.toLowerCase(); if (warps.containsKey(lowerName)) return warps.ceilingEntry(lowerName); Entry<String, Warp> found ...
diff --git a/cadpage/src/net/anei/cadpage/parsers/ME/MEYorkCountyParser.java b/cadpage/src/net/anei/cadpage/parsers/ME/MEYorkCountyParser.java index 014077859..4540d4fe1 100644 --- a/cadpage/src/net/anei/cadpage/parsers/ME/MEYorkCountyParser.java +++ b/cadpage/src/net/anei/cadpage/parsers/ME/MEYorkCountyParser.java @@ ...
true
true
public boolean parseMsg(String subject, String body, Data data) { if (!subject.equals("Page")) return false; Matcher match = MASTER.matcher(body); if (!match.matches()) return false; data.strCall = match.group(1); String sAddr = match.group(2).trim(); parseAddress(StartType.START_ADDR, FL...
public boolean parseMsg(String subject, String body, Data data) { if (!subject.equals("Page")) return false; Matcher match = MASTER.matcher(body); if (!match.matches()) return false; data.strCall = match.group(1); String sAddr = match.group(2).trim().replace(".", " & "); parseAddress(Star...
diff --git a/src/main/java/org/vaadin/vol/client/ui/VMarker.java b/src/main/java/org/vaadin/vol/client/ui/VMarker.java index db43bcd..9ffcc6d 100644 --- a/src/main/java/org/vaadin/vol/client/ui/VMarker.java +++ b/src/main/java/org/vaadin/vol/client/ui/VMarker.java @@ -1,81 +1,86 @@ package org.vaadin.vol.client.ui; ...
false
true
public void updateFromUIDL(UIDL childUIDL, final ApplicationConnection client) { if (client.updateComponent(this, childUIDL, false)) { return; } if (marker != null) { getLayer().removeMarker(marker); } double lon = childUIDL.getDoubleAttribute("lon"); double lat = childUIDL.getDoubleAttribute("lat");...
public void updateFromUIDL(UIDL childUIDL, final ApplicationConnection client) { if (client.updateComponent(this, childUIDL, false)) { return; } if (marker != null) { getLayer().removeMarker(marker); } double lon = childUIDL.getDoubleAttribute("lon"); double lat = childUIDL.getDoubleAttribute("lat...
diff --git a/proxy/src/main/java/org/fedoraproject/candlepin/resource/PoolResource.java b/proxy/src/main/java/org/fedoraproject/candlepin/resource/PoolResource.java index 2a2904735..2a141c9f4 100644 --- a/proxy/src/main/java/org/fedoraproject/candlepin/resource/PoolResource.java +++ b/proxy/src/main/java/org/fedoraproj...
true
true
public List<Pool> list(@QueryParam("owner") String ownerId, @QueryParam("consumer") String consumerUuid, @QueryParam("product") String productId, @QueryParam("listall") @DefaultValue("false") boolean listAll, @QueryParam("activeon") String activeOn) { // Make sure we...
public List<Pool> list(@QueryParam("owner") String ownerId, @QueryParam("consumer") String consumerUuid, @QueryParam("product") String productId, @QueryParam("listall") @DefaultValue("false") boolean listAll, @QueryParam("activeon") String activeOn) { // Make sure we...
diff --git a/app/service/YearCourseService.java b/app/service/YearCourseService.java index 6555690..5cc6c7e 100644 --- a/app/service/YearCourseService.java +++ b/app/service/YearCourseService.java @@ -1,132 +1,132 @@ package service; import exceptions.CoreException; import helpers.YearCourseHelper; import models....
true
true
public List<YearCourse> getAvailableCoursesForUser(User user) { // if (user.skills.isEmpty()) { // return new ArrayList<YearCourse>(); // } Query query = YearCourse.em().createQuery("select yc from YearCourse yc " + "join fetch yc.course c " + "wher...
public List<YearCourse> getAvailableCoursesForUser(User user) { if (user.skills.isEmpty()) { return new ArrayList<YearCourse>(); } Query query = YearCourse.em().createQuery("select yc from YearCourse yc " + "join fetch yc.course c " + "where c in...
diff --git a/studio-apacheds-schemaeditor/src/main/java/org/apache/directory/studio/apacheds/schemaeditor/view/editors/attributetype/ATEMatchingRulesComboComparator.java b/studio-apacheds-schemaeditor/src/main/java/org/apache/directory/studio/apacheds/schemaeditor/view/editors/attributetype/ATEMatchingRulesComboCompara...
true
true
public int compare( Object o1, Object o2 ) { if ( o1 instanceof MatchingRuleImpl && o2 instanceof MatchingRuleImpl ) { String[] mr1Names = ( ( MatchingRuleImpl ) o1 ).getNames(); String[] mr2Names = ( ( MatchingRuleImpl ) o2 ).getNames(); if ( ( mr1Names != n...
public int compare( Object o1, Object o2 ) { if ( o1 instanceof MatchingRuleImpl && o2 instanceof MatchingRuleImpl ) { String[] mr1Names = ( ( MatchingRuleImpl ) o1 ).getNames(); String[] mr2Names = ( ( MatchingRuleImpl ) o2 ).getNames(); if ( ( mr1Names != n...
diff --git a/src/de/jaschastarke/minecraft/integration/xAuth.java b/src/de/jaschastarke/minecraft/integration/xAuth.java index 05bc96c..fcea1a2 100644 --- a/src/de/jaschastarke/minecraft/integration/xAuth.java +++ b/src/de/jaschastarke/minecraft/integration/xAuth.java @@ -1,42 +1,42 @@ /* * Limited Creative - (Bukki...
true
true
public static boolean isLoggedInNotGuest(Player player) { xAuthPlayer xpl = getAuth().getPlyrMngr().getPlayer(player.getName()); boolean li = true; if (!xpl.isAuthenticated()) li = false; else if (xpl.isGuest()) li = false; Core.debug("xAuth: "+player....
public static boolean isLoggedInNotGuest(Player player) { xAuthPlayer xpl = getAuth().getPlayerManager().getPlayer(player); boolean li = true; if (!xpl.isAuthenticated()) li = false; else if (xpl.isGuest()) li = false; Core.debug("xAuth: "+player.getNa...
diff --git a/plugins/org.bonitasoft.studio.validation/src/org/bonitasoft/studio/validation/BatchValidationHandler.java b/plugins/org.bonitasoft.studio.validation/src/org/bonitasoft/studio/validation/BatchValidationHandler.java index 6b0c9c7669..d77e14a7f6 100644 --- a/plugins/org.bonitasoft.studio.validation/src/org/bo...
false
true
public Object execute(ExecutionEvent event) throws ExecutionException { if(PlatformUI.isWorkbenchRunning()){ Map<?,?> parameters = event.getParameters(); Set<Diagram> toValidate = new HashSet<Diagram>(); if(parameters != null && !parameters.isEmpty()){ final Object diagramParameters = parameters.get("di...
public Object execute(ExecutionEvent event) throws ExecutionException { if(PlatformUI.isWorkbenchRunning()){ Map<?,?> parameters = event.getParameters(); Set<Diagram> toValidate = new HashSet<Diagram>(); if(parameters != null && !parameters.isEmpty()){ final Object diagramParameters = parameters.get("di...
diff --git a/edu/mit/wi/haploview/tagger/TaggerController.java b/edu/mit/wi/haploview/tagger/TaggerController.java index ac1a372..d6e8521 100755 --- a/edu/mit/wi/haploview/tagger/TaggerController.java +++ b/edu/mit/wi/haploview/tagger/TaggerController.java @@ -1,173 +1,177 @@ package edu.mit.wi.haploview.tagger; im...
false
true
public TaggerController(HaploData hd, Vector included, Vector excluded, Vector sitesToCapture, Hashtable designScores, int aggressionLevel, int maxNumTags,boolean findTags) throws TaggerException{ Vector taggerSNPs = new Vector(); snpHash = new Hashtable(); ...
public TaggerController(HaploData hd, Vector included, Vector excluded, Vector sitesToCapture, Hashtable designScores, int aggressionLevel, int maxNumTags,boolean findTags) throws TaggerException{ Vector taggerSNPs = new Vector(); snpHash = new Hashtable(); ...
diff --git a/fabric/fabric-core/src/main/scala/org/fusesource/fabric/service/ChildContainerProvider.java b/fabric/fabric-core/src/main/scala/org/fusesource/fabric/service/ChildContainerProvider.java index 867c602c2..0df66a5a4 100644 --- a/fabric/fabric-core/src/main/scala/org/fusesource/fabric/service/ChildContainerPro...
true
true
public Set<CreateContainerChildMetadata> create(final CreateContainerChildOptions options) throws Exception { final Set<CreateContainerChildMetadata> result = new LinkedHashSet<CreateContainerChildMetadata>(); final String parentName = options.getParent(); final Container parent = service.ge...
public Set<CreateContainerChildMetadata> create(final CreateContainerChildOptions options) throws Exception { final Set<CreateContainerChildMetadata> result = new LinkedHashSet<CreateContainerChildMetadata>(); final String parentName = options.getParent(); final Container parent = service.ge...
diff --git a/src/main/java/fcatools/conexpng/gui/lattice/Label.java b/src/main/java/fcatools/conexpng/gui/lattice/Label.java index 3f52199..584e6c1 100644 --- a/src/main/java/fcatools/conexpng/gui/lattice/Label.java +++ b/src/main/java/fcatools/conexpng/gui/lattice/Label.java @@ -1,95 +1,94 @@ package fcatools.conexpn...
true
true
public void update(int x, int y, boolean first) { int updateX = this.x + x; int updateY = this.y + y; this.setBounds(updateX, updateY, getBounds().width, getBounds().height); this.x = updateX; this.y = updateY; if (getParent() != null) { getParent().repa...
public void update(int x, int y, boolean first) { int updateX = this.x + x; int updateY = this.y + y; this.x = updateX; this.y = updateY; if (getParent() != null) { getParent().repaint(); } }
diff --git a/eclipse/org.k3.language.ui/src/org/k3/language/ui/wizards/WizardNewProjectK3Plugin.java b/eclipse/org.k3.language.ui/src/org/k3/language/ui/wizards/WizardNewProjectK3Plugin.java index b0a2f305..ab7be516 100644 --- a/eclipse/org.k3.language.ui/src/org/k3/language/ui/wizards/WizardNewProjectK3Plugin.java +++...
true
true
public boolean createProjectWithEcore(IProgressMonitor monitor) { boolean returnVal = true; try { final IProject project = ResourcesPlugin.getWorkspace().getRoot().getProject(this.context.ecoreIFile.getName() +".metamodel"); project.create(monitor); project.open(monitor); Boolean tabNature[] = {true...
public boolean createProjectWithEcore(IProgressMonitor monitor) { boolean returnVal = true; try { final IProject project = ResourcesPlugin.getWorkspace().getRoot().getProject(this.context.ecoreIFile.getName() +".metamodel"); project.create(monitor); project.open(monitor); Boolean tabNature[] = {true...
diff --git a/src/keepcalm/mods/bukkit/asm/libraryHandlers/BukkitGSonDownload.java b/src/keepcalm/mods/bukkit/asm/libraryHandlers/BukkitGSonDownload.java index 4df7e1c..058ce3c 100644 --- a/src/keepcalm/mods/bukkit/asm/libraryHandlers/BukkitGSonDownload.java +++ b/src/keepcalm/mods/bukkit/asm/libraryHandlers/BukkitGSonD...
true
true
public String[] getHashes() { return new String[] {"881bf5cf5adb67e406df8dd5061c61bb4c3e143a"}; }
public String[] getHashes() { return new String[] {"bbf47ddc2e8931665390d4de33caf0ece9d3ff75"}; }
diff --git a/netbout/netbout-hub/src/main/java/com/netbout/hub/DefaultHub.java b/netbout/netbout-hub/src/main/java/com/netbout/hub/DefaultHub.java index 4e3a2b3d8..9de410709 100644 --- a/netbout/netbout-hub/src/main/java/com/netbout/hub/DefaultHub.java +++ b/netbout/netbout-hub/src/main/java/com/netbout/hub/DefaultHub....
true
true
public Helper promote(final Identity identity, final URL location) { if (!(identity instanceof HubIdentity)) { throw new IllegalArgumentException( String.format( "Can't promote '%s' since it's not from Hub", identity.name() ...
public Helper promote(final Identity identity, final URL location) { if (!(identity instanceof HubIdentity)) { throw new IllegalArgumentException( Logger.format( "Can't promote '%s' (%[type]s) since it's not from Hub", identity, ...
diff --git a/src/org/coode/dlquery/DLQueryListCellRenderer.java b/src/org/coode/dlquery/DLQueryListCellRenderer.java index fcffed0..c1d4256 100644 --- a/src/org/coode/dlquery/DLQueryListCellRenderer.java +++ b/src/org/coode/dlquery/DLQueryListCellRenderer.java @@ -1,56 +1,55 @@ package org.coode.dlquery; import org...
true
true
public Component getListCellRendererComponent(JList list, Object value, int index, boolean isSelected, boolean cellHasFocus) { Object renderableValue = value; if (value instanceof DLQueryResultsSectionItem) { DLQueryResultsSectionItem ite...
public Component getListCellRendererComponent(JList list, Object value, int index, boolean isSelected, boolean cellHasFocus) { Object renderableValue = value; if (value instanceof DLQueryResultsSectionItem) { DLQueryResultsSectionItem ite...
diff --git a/examples/undocumented/java_modular/classifier_knn_modular.java b/examples/undocumented/java_modular/classifier_knn_modular.java index 820385d31..4fe764ed3 100644 --- a/examples/undocumented/java_modular/classifier_knn_modular.java +++ b/examples/undocumented/java_modular/classifier_knn_modular.java @@ -1,3...
true
true
public static void main(String argv[]) { Features.init_shogun_with_defaults(); double k = 3; DoubleMatrix traindata_real = Load.load_numbers("../../data/toy/fm_train_real.dat"); DoubleMatrix testdata_real = Load.load_numbers("../../data/toy/fm_test_real.dat"); DoubleMatrix trainlab = Load.load_labels("../....
public static void main(String argv[]) { Features.init_shogun_with_defaults(); int k = 3; DoubleMatrix traindata_real = Load.load_numbers("../../data/toy/fm_train_real.dat"); DoubleMatrix testdata_real = Load.load_numbers("../../data/toy/fm_test_real.dat"); DoubleMatrix trainlab = Load.load_labels("../../d...
diff --git a/software/examples/java/ExampleSimple.java b/software/examples/java/ExampleSimple.java index ffeff27..7622c2f 100644 --- a/software/examples/java/ExampleSimple.java +++ b/software/examples/java/ExampleSimple.java @@ -1,31 +1,31 @@ import com.tinkerforge.BrickletBarometer; import com.tinkerforge.IPConnecti...
true
true
public static void main(String args[]) throws Exception { IPConnection ipcon = new IPConnection(); // Create IP connection BrickletBarometer b = new BrickletBarometer(UID, ipcon); // Create device object ipcon.connect(HOST, PORT); // Connect to brickd // Don't use device before ipcon is connected // Get cu...
public static void main(String args[]) throws Exception { IPConnection ipcon = new IPConnection(); // Create IP connection BrickletBarometer b = new BrickletBarometer(UID, ipcon); // Create device object ipcon.connect(HOST, PORT); // Connect to brickd // Don't use device before ipcon is connected // Get cu...
diff --git a/src/com/github/Gamecube762/BAH/Main.java b/src/com/github/Gamecube762/BAH/Main.java index d0984c0..9041e0c 100644 --- a/src/com/github/Gamecube762/BAH/Main.java +++ b/src/com/github/Gamecube762/BAH/Main.java @@ -1,108 +1,108 @@ package com.github.Gamecube762.BAH; import java.util.HashMap; import org...
true
true
public boolean onCommand(CommandSender sender, Command cmd, String labal, String[] args) { String cmdName = cmd.getName(); String cmdPerm = cmd.getPermission(); int PlayersOnline = Bukkit.getServer().getOnlinePlayers().length; Player s = Bukkit.getServer().getPlayer(sender.getName()); //boolean sIsPlayer ...
public boolean onCommand(CommandSender sender, Command cmd, String labal, String[] args) { String cmdName = cmd.getName(); String cmdPerm = cmd.getPermission(); int PlayersOnline = Bukkit.getServer().getOnlinePlayers().length; Player s = Bukkit.getServer().getPlayer(sender.getName()); //boolean sIsPlayer ...
diff --git a/agile-apps/agile-app-milestones/src/main/java/org/headsupdev/agile/app/milestones/ExportDurationWorked.java b/agile-apps/agile-app-milestones/src/main/java/org/headsupdev/agile/app/milestones/ExportDurationWorked.java index 6ea210dd..e735d206 100644 --- a/agile-apps/agile-app-milestones/src/main/java/org/h...
true
true
protected void exportMilestone( Milestone milestone, StringBuffer ret ) { final boolean burndown = Boolean.parseBoolean( milestone.getProject().getConfigurationValue( StoredProject.CONFIGURATION_TIMETRACKING_BURNDOWN ) ); ret.append( "\"" ); ret.append( milestone.getName...
protected void exportMilestone( Milestone milestone, StringBuffer ret ) { final boolean burndown = Boolean.parseBoolean( milestone.getProject().getConfigurationValue( StoredProject.CONFIGURATION_TIMETRACKING_BURNDOWN ) ); ret.append( "\"" ); ret.append( milestone.getName...
diff --git a/src/editor/inspections/bugs/UnbalancedAssignmentInspection.java b/src/editor/inspections/bugs/UnbalancedAssignmentInspection.java index 95537f4f..39b332ea 100644 --- a/src/editor/inspections/bugs/UnbalancedAssignmentInspection.java +++ b/src/editor/inspections/bugs/UnbalancedAssignmentInspection.java @@ -1...
true
true
public PsiElementVisitor buildVisitor(@NotNull final ProblemsHolder holder, boolean isOnTheFly) { return new LuaElementVisitor() { public void visitAssignment(LuaAssignmentStatement assign) { super.visitAssignment(assign); LuaIdentifierList left = assign.getLeftEx...
public PsiElementVisitor buildVisitor(@NotNull final ProblemsHolder holder, boolean isOnTheFly) { return new LuaElementVisitor() { public void visitAssignment(LuaAssignmentStatement assign) { super.visitAssignment(assign); LuaIdentifierList left = assign.getLeftEx...
diff --git a/Madz.DatabaseMetaData/src/main/java/net/madz/db/core/impl/mysql/MySQLDatabaseGeneratorImpl.java b/Madz.DatabaseMetaData/src/main/java/net/madz/db/core/impl/mysql/MySQLDatabaseGeneratorImpl.java index a0a41f0..6faf0cb 100644 --- a/Madz.DatabaseMetaData/src/main/java/net/madz/db/core/impl/mysql/MySQLDatabase...
false
true
private void GenerateTables(final MySQLSchemaMetaData metaData, final Connection conn, final String targetDatabaseName) throws SQLException { final Statement stmt = conn.createStatement(); conn.setAutoCommit(false); stmt.executeUpdate("USE `" + targetDatabaseName + "`"); for ( final ...
private void GenerateTables(final MySQLSchemaMetaData metaData, final Connection conn, final String targetDatabaseName) throws SQLException { final Statement stmt = conn.createStatement(); conn.setAutoCommit(false); stmt.executeUpdate("USE `" + targetDatabaseName + "`"); for ( final ...
diff --git a/src/main/java/eu/trentorise/smartcampus/filestorage/managers/SocialManager.java b/src/main/java/eu/trentorise/smartcampus/filestorage/managers/SocialManager.java index be13eb7..0d7db29 100644 --- a/src/main/java/eu/trentorise/smartcampus/filestorage/managers/SocialManager.java +++ b/src/main/java/eu/trento...
true
true
public boolean isOwnedBy(User user, String entityId) { try { Entity entity = socialClient .readEntity(Long.decode(entityId), null); it.unitn.disi.sweb.webapi.model.smartcampus.social.User socialUser = socialClient .readUser(user.getSocialId()); return entity.getOwnerId().equals(socialUser.getEntit...
public boolean isOwnedBy(User user, String entityId) { try { Entity entity = socialClient .readEntity(Long.decode(entityId), null); it.unitn.disi.sweb.webapi.model.smartcampus.social.User socialUser = socialClient .readUser(Long.valueOf(user.getSocialId())); return entity.getOwnerId().equals(socia...
diff --git a/moho-sample/MidCallRecord/src/main/java/com/voxeo/moho/sample/MidCallRecord.java b/moho-sample/MidCallRecord/src/main/java/com/voxeo/moho/sample/MidCallRecord.java index 616f6b2d..b62807ce 100755 --- a/moho-sample/MidCallRecord/src/main/java/com/voxeo/moho/sample/MidCallRecord.java +++ b/moho-sample/MidCal...
true
true
public void inputComplete(final InputCompleteEvent evt) { switch (evt.getCause()) { case MATCH: URL media = null; try { media = new URL(_mediaLocation + System.getProperty("file.separator") + "_" + new Date().getTime() + "_recording.au"); Recording recordin...
public void inputComplete(final InputCompleteEvent evt) { switch (evt.getCause()) { case MATCH: URL media = null; try { media = new URL(_mediaLocation + System.getProperty("file.separator") + new Date().getTime() + "_recording.au"); Recording recording = ((...
diff --git a/contrib/socketServer/server/org/prevayler/socketserver/server/Main.java b/contrib/socketServer/server/org/prevayler/socketserver/server/Main.java index 0337827..1b49ede 100644 --- a/contrib/socketServer/server/org/prevayler/socketserver/server/Main.java +++ b/contrib/socketServer/server/org/prevayler/socke...
true
true
private static void initPrevayler() throws Exception { // Set up the repository location //String prevalenceBase = System.getProperty("user.dir") + "/prevalenceBase"; String prevalenceBase = (String) ServerConfig.properties.get("Repository"); Log.message("Snapshot/log file dir: " + p...
private static void initPrevayler() throws Exception { // Set up the repository location //String prevalenceBase = System.getProperty("user.dir") + "/prevalenceBase"; String prevalenceBase = (String) ServerConfig.properties.get("Repository"); Log.message("Snapshot/log file dir: " + p...
diff --git a/test/wssec/PackageTests.java b/test/wssec/PackageTests.java index 132d67d1d..af98aff94 100644 --- a/test/wssec/PackageTests.java +++ b/test/wssec/PackageTests.java @@ -1,82 +1,81 @@ /* * Copyright 2003-2004 The Apache Software Foundation. * * Licensed under the Apache License, Version 2.0 (the "Li...
true
true
public static Test suite() { TestSuite suite = new TestSuite(); suite.addTestSuite(TestWSSecurity.class); suite.addTestSuite(TestWSSecurity2.class); suite.addTestSuite(TestWSSecurity3.class); // suite.addTestSuite(TestWSSecurity4.class); suite.addTestSuite(TestWSSecuri...
public static Test suite() { TestSuite suite = new TestSuite(); suite.addTestSuite(TestWSSecurity.class); suite.addTestSuite(TestWSSecurity2.class); suite.addTestSuite(TestWSSecurity3.class); // suite.addTestSuite(TestWSSecurity4.class); suite.addTestSuite(TestWSSecuri...
diff --git a/cermine-tools/src/main/java/pl/edu/icm/cermine/pubmed/PubmedXMLGenerator.java b/cermine-tools/src/main/java/pl/edu/icm/cermine/pubmed/PubmedXMLGenerator.java index 84ef9352..aaf897eb 100644 --- a/cermine-tools/src/main/java/pl/edu/icm/cermine/pubmed/PubmedXMLGenerator.java +++ b/cermine-tools/src/main/java...
true
true
public BxDocument generateTrueViz(InputStream pdfStream, InputStream nlmStream) throws AnalysisException, ParserConfigurationException, SAXException, IOException, XPathExpressionException, TransformationException { XPath xpath = XPathFactory.newInstance().newXPath(); DocumentBuilderFactory db...
public BxDocument generateTrueViz(InputStream pdfStream, InputStream nlmStream) throws AnalysisException, ParserConfigurationException, SAXException, IOException, XPathExpressionException, TransformationException { XPath xpath = XPathFactory.newInstance().newXPath(); DocumentBuilderFactory db...
diff --git a/source/de/anomic/http/httpHeader.java b/source/de/anomic/http/httpHeader.java index 031f678c8..57034b583 100644 --- a/source/de/anomic/http/httpHeader.java +++ b/source/de/anomic/http/httpHeader.java @@ -1,943 +1,943 @@ // httpHeader.java // ----------------------- // (C) by Michael Peter Christen; mc@...
false
true
public static Properties parseRequestLine(String cmd, String args, Properties prop, String virtualHost) { // getting the last request line for debugging purposes String prevRequestLine = prop.containsKey(CONNECTION_PROP_REQUESTLINE)? prop.getProperty(CONNECTION_PROP_REQUESTL...
public static Properties parseRequestLine(String cmd, String args, Properties prop, String virtualHost) { // getting the last request line for debugging purposes String prevRequestLine = prop.containsKey(CONNECTION_PROP_REQUESTLINE)? prop.getProperty(CONNECTION_PROP_REQUESTL...
diff --git a/demo/src/main/java/de/bit/camel/security/beans/EmployeeBean.java b/demo/src/main/java/de/bit/camel/security/beans/EmployeeBean.java index d085b0b..b7b7896 100644 --- a/demo/src/main/java/de/bit/camel/security/beans/EmployeeBean.java +++ b/demo/src/main/java/de/bit/camel/security/beans/EmployeeBean.java @@ ...
true
true
public Employee getEmployeeData(final String empId) { try { Employee emp = simpleJdbcTemplate.queryForObject(QUERY_FOR_EMP, new RowMapper<Employee>() { @Override public Employee mapRow(ResultSet rs, int rowNum) throws SQLException { Employee em...
public Employee getEmployeeData(final String empId) { try { Employee emp = simpleJdbcTemplate.queryForObject(QUERY_FOR_EMP, new RowMapper<Employee>() { @Override public Employee mapRow(ResultSet rs, int rowNum) throws SQLException { Employee em...
diff --git a/ide/org.codehaus.groovy.eclipse.ui/src/org/codehaus/groovy/eclipse/editor/GroovyTagScanner.java b/ide/org.codehaus.groovy.eclipse.ui/src/org/codehaus/groovy/eclipse/editor/GroovyTagScanner.java index 274d0e958..836fb41a8 100644 --- a/ide/org.codehaus.groovy.eclipse.ui/src/org/codehaus/groovy/eclipse/editor...
false
true
public static List<IRule> createGroovyRules(IColorManager manager, List<IRule> additionalRules, List<String> additionalGJDKKeywords, List<String> additionalGroovyKeywords) { List<IRule> rules = new ArrayList<IRule>(); // Add generic whitespace rule. rules.add(new WhitespaceRule(new...
public static List<IRule> createGroovyRules(IColorManager manager, List<IRule> additionalRules, List<String> additionalGJDKKeywords, List<String> additionalGroovyKeywords) { List<IRule> rules = new ArrayList<IRule>(); // Add generic whitespace rule. rules.add(new WhitespaceRule(new...
diff --git a/axis2/src/main/java/org/apache/ode/axis2/service/DeploymentWebService.java b/axis2/src/main/java/org/apache/ode/axis2/service/DeploymentWebService.java index 97f2c87fc..d16981c03 100644 --- a/axis2/src/main/java/org/apache/ode/axis2/service/DeploymentWebService.java +++ b/axis2/src/main/java/org/apache/ode...
true
true
public void invokeBusinessLogic(MessageContext messageContext) throws AxisFault { String operation = messageContext.getAxisOperation().getName().getLocalPart(); SOAPFactory factory = getSOAPFactory(messageContext); boolean unknown = false; try { i...
public void invokeBusinessLogic(MessageContext messageContext) throws AxisFault { String operation = messageContext.getAxisOperation().getName().getLocalPart(); SOAPFactory factory = getSOAPFactory(messageContext); boolean unknown = false; try { i...
diff --git a/maven-core/src/main/java/org/apache/maven/plugin/PluginParameterException.java b/maven-core/src/main/java/org/apache/maven/plugin/PluginParameterException.java index ad35215f9..09864ee7b 100644 --- a/maven-core/src/main/java/org/apache/maven/plugin/PluginParameterException.java +++ b/maven-core/src/main/ja...
true
true
private static void decomposeParameterIntoUserInstructions( MojoDescriptor mojo, Parameter param, StringBuffer messageBuffer ) { String expression = param.getExpression(); if ( param.isEditable() ) { messageBuff...
private static void decomposeParameterIntoUserInstructions( MojoDescriptor mojo, Parameter param, StringBuffer messageBuffer ) { String expression = param.getExpression(); if ( param.isEditable() ) { messageBuff...
diff --git a/src/openblocks/common/tileentity/TileEntityGoldenEgg.java b/src/openblocks/common/tileentity/TileEntityGoldenEgg.java index b025060f..d63400dc 100644 --- a/src/openblocks/common/tileentity/TileEntityGoldenEgg.java +++ b/src/openblocks/common/tileentity/TileEntityGoldenEgg.java @@ -1,140 +1,140 @@ package ...
true
true
public void updateEntity() { super.updateEntity(); if (!worldObj.isRemote) { if (stageElapsed()) { incrementStage(); System.out.println("Egg entering stage" + stage.getValue()); } if (stage.getValue() >= 1) { } if (stage.getValue() >= 2) { } if (stage.getValue() >= 3) { } if (...
public void updateEntity() { super.updateEntity(); if (!worldObj.isRemote) { if (stageElapsed()) { incrementStage(); System.out.println("Egg entering stage" + stage.getValue()); } if (stage.getValue() >= 1) { } if (stage.getValue() >= 2) { } if (stage.getValue() >= 3) { } if (...
diff --git a/src/org/graphstream/graph/implementations/AbstractGraph.java b/src/org/graphstream/graph/implementations/AbstractGraph.java index bc71363..2dfa0bd 100644 --- a/src/org/graphstream/graph/implementations/AbstractGraph.java +++ b/src/org/graphstream/graph/implementations/AbstractGraph.java @@ -1,929 +1,929 @@...
true
true
protected <T extends Edge> T addEdge_(String sourceId, long timeId, String edgeId, AbstractNode src, String srcId, AbstractNode dst, String dstId, boolean directed) { AbstractEdge edge = getEdge(edgeId); if (edge != null) { if (strictChecking) throw new IdAlreadyInUseException("id \"" + edgeId +...
protected <T extends Edge> T addEdge_(String sourceId, long timeId, String edgeId, AbstractNode src, String srcId, AbstractNode dst, String dstId, boolean directed) { AbstractEdge edge = getEdge(edgeId); if (edge != null) { if (strictChecking) throw new IdAlreadyInUseException("id \"" + edgeId +...
diff --git a/bundles/org.eclipse.team.cvs.ui/src/org/eclipse/team/internal/ccvs/ui/mappings/ChangeSetContentProvider.java b/bundles/org.eclipse.team.cvs.ui/src/org/eclipse/team/internal/ccvs/ui/mappings/ChangeSetContentProvider.java index 20221e68a..fb908206a 100644 --- a/bundles/org.eclipse.team.cvs.ui/src/org/eclipse...
true
true
public void changeSetChanges(final CollectorChangeEvent event, IProgressMonitor monitor) { ChangeSet[] addedSets = event.getAddedSets(); final ChangeSet[] visibleAddedSets = getVisibleSets(addedSets); ChangeSet[] removedSets = event.getRemovedSets(); final ChangeSet[] visibleRemovedSets = getVisibleSets(r...
public void changeSetChanges(final CollectorChangeEvent event, IProgressMonitor monitor) { ChangeSet[] addedSets = event.getAddedSets(); final ChangeSet[] visibleAddedSets = getVisibleSets(addedSets); ChangeSet[] removedSets = event.getRemovedSets(); final ChangeSet[] visibleRemovedSets = getVisibleSets(r...
diff --git a/src/ui/VirtualList.java b/src/ui/VirtualList.java index b3e27fcd..36fac8d1 100644 --- a/src/ui/VirtualList.java +++ b/src/ui/VirtualList.java @@ -1,1444 +1,1444 @@ /* * VirtualList.java * * Created on 30.01.2005, 14:46 * * Copyright (c) 2005-2008, Eugene Stahov (evgs), http://bombus-im.org * ...
false
true
public void paint(Graphics g) { mHeight = 0; iHeight = 0; if (messagesWidth == 0) { messagesWidth = getListWidth(); } beginPaint(); //#ifdef POPUPS PopUp.getInstance().init(g, width, height); //#endif //StaticData.getInstance().screenWidth=width; ...
public synchronized void paint(Graphics g) { mHeight = 0; iHeight = 0; if (messagesWidth == 0) { messagesWidth = getListWidth(); } beginPaint(); //#ifdef POPUPS PopUp.getInstance().init(g, width, height); //#endif //StaticData.getInstance().screen...
diff --git a/om/src/main/java/de/escidoc/core/om/business/renderer/VelocityXmlContainerRenderer.java b/om/src/main/java/de/escidoc/core/om/business/renderer/VelocityXmlContainerRenderer.java index aacab18..7172ad8 100644 --- a/om/src/main/java/de/escidoc/core/om/business/renderer/VelocityXmlContainerRenderer.java +++ b...
false
true
private static void addPropertiesValus(final Map<String, Object> values, final Container container) throws TripleStoreSystemException, EncodingSystemException, IntegritySystemException, FedoraSystemException, WebserverSystemException { final String id = container.getId(); values.put...
private static void addPropertiesValus(final Map<String, Object> values, final Container container) throws TripleStoreSystemException, EncodingSystemException, IntegritySystemException, FedoraSystemException, WebserverSystemException { final String id = container.getId(); values.put...
diff --git a/src/java/cascading/jdbc/asterdata/AsterDataScheme.java b/src/java/cascading/jdbc/asterdata/AsterDataScheme.java index f5f7bda..827fcf5 100644 --- a/src/java/cascading/jdbc/asterdata/AsterDataScheme.java +++ b/src/java/cascading/jdbc/asterdata/AsterDataScheme.java @@ -1,130 +1,132 @@ /* * Copyright (c) 2...
true
true
protected Tuple cleanTuple( Tuple result ) { for( int i = 0; i < result.size(); i++ ) { Comparable value = result.get( i ); if( value instanceof String ) { result.set( i, ( (String) value ).replaceAll( "'", "''" ) ); result.set( i, ( (String) value ).replaceAll( "\n"...
protected Tuple cleanTuple( Tuple result ) { for( int i = 0; i < result.size(); i++ ) { Comparable value = result.get( i ); if( value instanceof String ) { value = ( (String) value ).replaceAll( "'", "''" ); value = ( (String) value ).replaceAll( "\t", "\\t" ); ...
diff --git a/src/main/java/br/com/camiloporto/cloudfinance/web/AbstractOperationResponse.java b/src/main/java/br/com/camiloporto/cloudfinance/web/AbstractOperationResponse.java index b49d7e0..7c742de 100644 --- a/src/main/java/br/com/camiloporto/cloudfinance/web/AbstractOperationResponse.java +++ b/src/main/java/br/com...
true
true
private void configureErrorMessages( Set<ConstraintViolation<?>> constraintViolations) { this.errors = new String[constraintViolations.size()]; int i = 0; for (ConstraintViolation<?> cv : constraintViolations) { System.out .println("AbstractOperationResponse.configureErrorMessages() " + cv.getProperty...
private void configureErrorMessages( Set<ConstraintViolation<?>> constraintViolations) { this.errors = new String[constraintViolations.size()]; int i = 0; for (ConstraintViolation<?> cv : constraintViolations) { System.out .println("AbstractOperationResponse.configureErrorMessages() " + cv.getMessageT...
diff --git a/src/com/herocraftonline/dev/heroes/party/PartyCustomListener.java b/src/com/herocraftonline/dev/heroes/party/PartyCustomListener.java index 4ecd529e..ef02d25d 100644 --- a/src/com/herocraftonline/dev/heroes/party/PartyCustomListener.java +++ b/src/com/herocraftonline/dev/heroes/party/PartyCustomListener.ja...
true
true
public void onCustomEvent(Event event) { if (event instanceof ExperienceGainEvent) { ExperienceGainEvent subEvent = (ExperienceGainEvent) event; if (subEvent.getHero().getParty() == null) { return; } if (!subEvent.getHero().getParty().getExp()...
public void onCustomEvent(Event event) { if (event instanceof ExperienceGainEvent) { ExperienceGainEvent subEvent = (ExperienceGainEvent) event; if (subEvent.getHero().getParty() == null) { return; } if (!subEvent.getHero().getParty().getExp()...
diff --git a/wf-core/src/main/java/ru/taskurotta/internal/proxy/ProxyInvocationHandler.java b/wf-core/src/main/java/ru/taskurotta/internal/proxy/ProxyInvocationHandler.java index 435dcbbc..48fd9eed 100644 --- a/wf-core/src/main/java/ru/taskurotta/internal/proxy/ProxyInvocationHandler.java +++ b/wf-core/src/main/java/ru...
false
true
public Object invoke(Object proxy, Method method, Object[] args) throws Throwable { long startTime = System.currentTimeMillis(); MethodDescriptor methodDescriptor = method2TaskTargetCache.get(method); ArgType[] argTypes = methodDescriptor.getArgTypes(); int positionActorScheduling...
public Object invoke(Object proxy, Method method, Object[] args) throws Throwable { long startTime = -1; MethodDescriptor methodDescriptor = method2TaskTargetCache.get(method); ArgType[] argTypes = methodDescriptor.getArgTypes(); int positionActorSchedulingOptions = methodDescript...
diff --git a/src/cytoscape/data/readers/XGMMLReader.java b/src/cytoscape/data/readers/XGMMLReader.java index 24f2585d3..58c80d1f7 100644 --- a/src/cytoscape/data/readers/XGMMLReader.java +++ b/src/cytoscape/data/readers/XGMMLReader.java @@ -1,1503 +1,1505 @@ /* File: XGMMLReader.java Copyright (c) 2006, The Cyto...
true
true
private void readAttribute(final CyAttributes attributes, final String targetName, final Att curAtt, final String type, final GraphicNode parent) { final ObjectType dataType = curAtt.getType(); /* check args if (dataType == null) { return; } */ // null value only ok when...
private void readAttribute(final CyAttributes attributes, final String targetName, final Att curAtt, final String type, final GraphicNode parent) { final ObjectType dataType = curAtt.getType(); /* check args if (dataType == null) { return; } */ // null value only ok when...
diff --git a/src/main/java/ez/dork/dbTool/servlet/GridViewServlet.java b/src/main/java/ez/dork/dbTool/servlet/GridViewServlet.java index cf0ed47..45e9eea 100644 --- a/src/main/java/ez/dork/dbTool/servlet/GridViewServlet.java +++ b/src/main/java/ez/dork/dbTool/servlet/GridViewServlet.java @@ -1,96 +1,97 @@ package ez.d...
false
true
public void doPost(HttpServletRequest request, HttpServletResponse response) throws IOException, ServletException { response.setCharacterEncoding("utf8"); String sqls = request.getParameter("sql"); Map<String, Object> result = new HashMap<String, Object>(); result.put("msg", ""); if (sqls != null) { for...
public void doPost(HttpServletRequest request, HttpServletResponse response) throws IOException, ServletException { response.setCharacterEncoding("utf8"); String sqls = request.getParameter("sql"); Map<String, Object> result = new HashMap<String, Object>(); result.put("msg", ""); if (sqls != null) { for...